Commit Graph

32 Commits

Author SHA1 Message Date
Patrick ba74c53c97 refactor: split dialog and overlay primitives 2026-06-13 14:32:40 -04:00
Patrick 179ec6af8f fix: coordinate overlay lifecycle with animations
Replace fixed close delays with lifecycle-driven disposal so overlays remain responsive.
Wait only for exit animations that actually start and centralize Escape, backdrop, and
outside-pointer dismissal.

BREAKING CHANGE: remove the closeDelay input and configuration option. Remove explicit delay
values; closed-state exit animations are now detected automatically.
2026-06-13 14:32:40 -04:00
Marc Stammerjohann 47d323450c feat(dialog): wrap overlay class with hlm for style replacing 2026-06-11 12:52:58 +02:00
Marc Stammerjohann 3c03ca82d0 feat(dialog): add style support 2026-06-11 12:48:34 +02:00
Dafnik ced64d7dff feat(dialog): add showCloseButton option to HlmDialogService open (#1351)
* feat: add showCloseButton option to HlmDialogService open

Fixes #1220

* test: add dynamic dialog showCloseButton tests

* chore: format

---------

Co-authored-by: Marc Stammerjohann <8985933+marcjulian@users.noreply.github.com>
2026-05-05 17:31:52 +02:00
alisterpineda a7efefbdaa fix(dialog,alert-dialog): prevent content width collapse in CDK overlay pane (#1323)
The `w-full max-w-[calc(100%-2rem)]` pattern resolves against the
auto-width `.cdk-overlay-pane`, which collapses to min-content when
dialog content is narrower than `sm:max-w-lg` (32rem). Switching to
`w-[calc(100vw-2rem)]` makes the width resolve against the viewport
so `sm:max-w-lg` functions as intended. The `sm:max-w-lg` ceiling is
retained so consumer overrides via `sm:max-w-*` continue to work.

Closes #1320
2026-05-01 16:05:22 +02:00
Merlin 16b9f64519 fix: remove dialogclosebtn 2026-02-09 17:08:55 +01:00
Merlin 7fc4ea0274 feat(dialog,sheet): polish close 2026-02-09 15:15:35 +01:00
Marc Stammerjohann e5d5e2a5cc feat: replace *brn*Content w/ *hlm*Portal (#1180)
* feat(dialog): add hlmDialogPortal to expose *brnDialogContent

* feat(alert-dialog): add hlmAlertDialogPortal to expose *brnAlertDialogContent

* feat(popover): add hlmPopoverPortal to expose *brnPopoverContent

* feat(sheet): add hlmSheetPortal to expose *brnSheetContent

* feat(navigation-menu): add hlmNavigationMenuPortal to expose *brnNavigationMenuContent

* chore: add dialog portal healtcheck and migration

* chore: dogfood dialog portal migration

* chore: fix imports

* chore: use importAlias for popover helm import

* chore: remove importAlias in healthcheck

* feat(popover): update hlm-popover-content selector

* feat(sheet): add showCloseButton input and use hlmBtn for close button

* feat(navigation-menu): update HlmNavigationMenuContent selector

* feat(autocomplete): update HlmAutocompleteContent selector and add autocomplete portal

* chore: add no-scrollbar util to tailwind preset used by autocomplete/combobox/command

* feat(combobox): update HlmComboboxContent selector and use combobox portal

* chore: update snapshot

* fix: storybook imports

* fix(sheet): apply data-slot on button directly and fix test

* otherwise hlmBtn slot is used

* fix(popover): storybook template error
2026-02-04 11:38:58 +01:00
Marc Stammerjohann 4e762331a4 feat: command polishing (#1116)
* feat(command): add brnCommandSeparator and hide when data-empty

* feat(command): use afterNextRender

* feat(command): add command empty state w/ brnCommandEmpty as host directive

* feat(command): use data-hidden for separator

* feat(command): remove command icon

* docs(command): remove BrnCommandImports

* feat(command): update styles

* feat(dialog): add showCloseButton input

* feat(command): update command dialog styles and remove command dialog close button

* use dialog-content which has the close button

* feat(command): sort imports

* chore: format classes function

* feat(command): use linkedSignal for input state
2026-01-07 18:10:52 +01:00
Marc Stammerjohann 04d568c7cc chore: format classes functions 2026-01-05 11:38:23 +01:00
oussema sahbeni be33d851fc fix(dialog): update positioning class for RTL support in dialog close button 2025-12-28 14:33:51 +01:00
oussema sahbeni 08a223bcbf fix: update text alignment classes for RTL support in alert dialog and table header 2025-12-27 23:05:38 +01:00
Ashley Hunter 3c0ab73226 refactor: replace hlm with new classes utility (#1086)
* feat: adding classes util

* fix: improving hlm

* fix: classes

* fix: classes tests and linting

* feat: adding tests

* fix: perf

* fix: perf improvements

* test: fixing tests
2025-12-22 16:06:40 +01:00
Max Hovens 73379a1042 feat(dialog): allow setting default options for dynamically created dialogs (#1056)
Closes #1044
2025-12-09 16:26:26 +01:00
Marc Stammerjohann 29192af454 feat: improve dialog, alert-dialog, sheet and popover (#1059)
* feat(dialog): change dialogs to directive

* docs(popover): add name to  popover template selector

* feat(dialog): simplify dialog overlay

* feat(dialog): use BrnDialogTitle as hostDirective, add data-slot

* feat(dialog): use hostDirectives, change components to directives

* add data-slot

* feat(alert-dialog): use directives, add data-slot

* feat(sheet): use directives, add data-slot

* feat(dialog): add hlm trigger directive

* feat(popover): remove unused popover-close

* feat(popover): add hlm-popover

* feat: update snapshot and selectors

* feat(dialog): add healthcheck and migration

* feat(popover): expose more inputs/outputs

* feat(dialog): dogfeeding healthcheck and migration

* feat(dialog): add types to inputs

* feat(popover): expose more inputs

* feat(dialog): use hlmDialogTrigger

* feat(dialog): remove unused importAlias

* feat(dialog): add input types
2025-12-04 10:20:12 +01:00
Merlin Moos 4160d4a350 Merge remote-tracking branch 'origin/main' into component-template
# Conflicts:
#	libs/brain/alert-dialog/src/lib/brn-alert-dialog-overlay.ts
#	libs/brain/alert-dialog/src/lib/brn-alert-dialog.ts
#	libs/brain/avatar/src/lib/brn-avatar.ts
#	libs/brain/dialog/src/lib/brn-dialog-overlay.ts
#	libs/brain/dialog/src/lib/brn-dialog.ts
#	libs/brain/popover/src/lib/brn-popover.ts
#	libs/brain/radio-group/src/lib/brn-radio.ts
#	libs/brain/select/src/lib/brn-select-value.ts
#	libs/brain/sheet/src/lib/brn-sheet-overlay.ts
#	libs/brain/sheet/src/lib/brn-sheet.ts
#	libs/brain/tooltip/src/lib/brn-tooltip-content.ts
#	libs/helm/accordion/src/lib/hlm-accordion-content.ts
#	libs/helm/alert-dialog/src/lib/hlm-alert-dialog-content.ts
#	libs/helm/alert-dialog/src/lib/hlm-alert-dialog-footer.ts
#	libs/helm/alert-dialog/src/lib/hlm-alert-dialog-header.ts
#	libs/helm/alert-dialog/src/lib/hlm-alert-dialog.ts
#	libs/helm/avatar/src/lib/hlm-avatar.ts
#	libs/helm/carousel/src/lib/hlm-carousel-content.ts
#	libs/helm/carousel/src/lib/hlm-carousel-item.ts
#	libs/helm/carousel/src/lib/hlm-carousel-next.ts
#	libs/helm/carousel/src/lib/hlm-carousel-previous.ts
#	libs/helm/carousel/src/lib/hlm-carousel.ts
#	libs/helm/dialog/src/lib/hlm-dialog-content.ts
#	libs/helm/dialog/src/lib/hlm-dialog.ts
#	libs/helm/sheet/src/lib/hlm-sheet.ts
#	tools/eslint-rules/index.ts
2025-11-12 23:38:47 +01:00
Merlin Moos fd3229abe6 fix: add order 2025-11-12 23:08:18 +01:00
Ashley Hunter 87715502c4 build: eslint rule for styles and encapsulation 2025-11-12 21:33:40 +00:00
Merlin 6d60dc9d7d feat: add lint rule template last 2025-11-12 15:05:31 +01:00
Merlin 64f82d8b79 feat(item): run format all 2025-10-22 15:40:07 +02:00
Merlin c6e6387739 refactor: align eslint rules 2025-09-29 15:59:20 +02:00
moosme adf55dbdd3 refactor: polish imports (#890)
Co-authored-by: Merlin <merlin.moos@oldendorff.com>
2025-09-27 17:52:14 -04:00
Marc Stammerjohann c4e03a5622 feat: dialog polishing (#836)
* feat(dialog): update styles and sort classes

# Conflicts:
#	libs/helm/dialog/src/lib/hlm-dialog-close.ts
#	libs/helm/dialog/src/lib/hlm-dialog-content.ts

* fix(dialog): control dialog close button height w/ flex

* button size was 16x24px w/ an icon of 16x16px
* using flex changes the sizes of the button to 16x16px

* feat(dialog): add --radiux-xs styles used by shadcn/ui

* fix(dialog): use outline-none for close button again

* docs(dialog): update example headings, form field and preview

# Conflicts:
#	apps/app/src/app/pages/(components)/components/(dialog)/dialog.preview.ts

* docs(dialog): update bottom nav

* feat(dialog): replace mutable state using computed + signal w/ linkedSignal

* fix(dialog): remove [&_ng-icon]:pointer-events-none to fix e2e tests

* fix(dialog): use duration-200 for state open and closed

* fix(dialog): apply same styles like hlm-alert-dialog-content

* fix(dialog): center dialog on mobile using mx-auto

* justify-self-center is not applied in firefox/safari - parent container needs to be display grid
2025-09-01 19:11:21 +02:00
Marc Stammerjohann 9f4484fabf feat: add prettier tailwind function sorting config and docs (#842)
* chore: rename prettier config

* chore: configure tailwind to sort hlm and cva functions

* docs: add sorting classes section to installation guide

* explain how to sort classes in hlm and cva functions
* update TailwindCSS to Tailwind CSS

* chore: format hlm and cva tailwind classes
2025-09-01 12:11:35 +02:00
moosme 556a3a5133 Export hlm from brain to helm (#856)
* chore: nightly release 2025-08-24 ⚡

* chore: nightly release 2025-08-25 ⚡

* chore: nightly release 2025-08-26 ⚡

* feat: move hlm from brain to hlm #843

* feat: add utils installation #843

* feat: move tailwind-merge to dependencies #840

* fix: fix tests and add utils test

---------

Co-authored-by: Leonidas <leonidas@spartan.ng>
2025-08-31 18:14:40 +02:00
Benjamin Heiss c27c53cf42 fix(dialog): add context type check (#809) 2025-08-07 08:44:04 +02:00
Ashley Hunter b1ed68e0d0 refactor: use the latest angular naming conventions (#766)
* refactor: use the latest angular naming conventions

* build: merge

* docs: fixing unexpected component rename

Co-authored-by: Ajit Panigrahi <ajitzero@gmail.com>

* build: fix generated code

* build: fixing build

* build: fix directive

* feat: adding helm migration

* build: health check detection improvements

* build: checking file type

* build: fix formatting

---------

Co-authored-by: Ajit Panigrahi <ajitzero@gmail.com>
2025-07-30 22:32:02 +02:00
MerlinMoos ced805c807 fix: make access modifier consistent #755 (#758)
* fix: make access modifier consistent #755

* fix: run format

* fix: resolve build issues

---------

Co-authored-by: Merlin Moos <merlin.moos@oldendorff.com>
2025-07-22 17:43:20 +02:00
Ashley Hunter e66a64d76b feat: new york theme (#711)
* feat: new york theme

* refactor: toggle group

* fix: colors

* fix: tests

* docs: updating previews

* fix: updating previews

* build: resolve build failure

* fix: review fixes

* fix: build

* build: adding generated files
2025-07-09 18:40:19 +02:00
Jeevan fb3d95a340 Remove standalone property (#701)
* feat: remove standalone property from various directives and components in the Helm UI library

* feat: enable strictStandalone option in Angular compiler settings
2025-06-10 22:00:48 +02:00
Ashley Hunter 0eeeb17b1a refactor: helm secondary entrypoints 2025-05-29 20:59:16 +01:00