@egose/shadcn-theme-ng 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/accordion/fesm2022/accordion.mjs +25 -25
  2. package/accordion/fesm2022/accordion.mjs.map +1 -1
  3. package/alert/fesm2022/alert.mjs +109 -33
  4. package/alert/fesm2022/alert.mjs.map +1 -1
  5. package/alert/index.d.ts +6 -3
  6. package/autocomplete/README.md +64 -0
  7. package/autocomplete/fesm2022/autocomplete.mjs +524 -0
  8. package/autocomplete/fesm2022/autocomplete.mjs.map +1 -0
  9. package/autocomplete/index.d.ts +158 -0
  10. package/badge/fesm2022/badge.mjs +5 -5
  11. package/badge/fesm2022/badge.mjs.map +1 -1
  12. package/basic-alert/README.md +64 -0
  13. package/basic-alert/fesm2022/basic-alert.mjs +111 -0
  14. package/basic-alert/fesm2022/basic-alert.mjs.map +1 -0
  15. package/basic-alert/index.d.ts +14 -0
  16. package/button/fesm2022/button.mjs +16 -14
  17. package/button/fesm2022/button.mjs.map +1 -1
  18. package/button/index.d.ts +1 -1
  19. package/calendar/README.md +64 -0
  20. package/calendar/fesm2022/calendar.mjs +637 -0
  21. package/calendar/fesm2022/calendar.mjs.map +1 -0
  22. package/calendar/index.d.ts +111 -0
  23. package/confirmation-dialog/README.md +64 -0
  24. package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +93 -0
  25. package/confirmation-dialog/fesm2022/confirmation-dialog.mjs.map +1 -0
  26. package/confirmation-dialog/index.d.ts +24 -0
  27. package/date-picker/README.md +64 -0
  28. package/date-picker/fesm2022/date-picker.mjs +599 -0
  29. package/date-picker/fesm2022/date-picker.mjs.map +1 -0
  30. package/date-picker/index.d.ts +227 -0
  31. package/dialog/README.md +64 -0
  32. package/dialog/fesm2022/dialog.mjs +278 -0
  33. package/dialog/fesm2022/dialog.mjs.map +1 -0
  34. package/dialog/index.d.ts +89 -0
  35. package/exports.json +1 -1
  36. package/form-date-picker/README.md +64 -0
  37. package/form-date-picker/fesm2022/form-date-picker.mjs +146 -0
  38. package/form-date-picker/fesm2022/form-date-picker.mjs.map +1 -0
  39. package/form-date-picker/index.d.ts +32 -0
  40. package/form-field/fesm2022/form-field.mjs +19 -17
  41. package/form-field/fesm2022/form-field.mjs.map +1 -1
  42. package/form-select/README.md +64 -0
  43. package/form-select/fesm2022/form-select.mjs +165 -0
  44. package/form-select/fesm2022/form-select.mjs.map +1 -0
  45. package/form-select/index.d.ts +33 -0
  46. package/form-text-input/README.md +64 -0
  47. package/form-text-input/fesm2022/form-text-input.mjs +197 -0
  48. package/form-text-input/fesm2022/form-text-input.mjs.map +1 -0
  49. package/form-text-input/index.d.ts +47 -0
  50. package/form-textarea/README.md +64 -0
  51. package/form-textarea/fesm2022/form-textarea.mjs +156 -0
  52. package/form-textarea/fesm2022/form-textarea.mjs.map +1 -0
  53. package/form-textarea/index.d.ts +33 -0
  54. package/icon/fesm2022/icon.mjs +7 -7
  55. package/input/fesm2022/input.mjs +11 -11
  56. package/input/fesm2022/input.mjs.map +1 -1
  57. package/label/fesm2022/label.mjs +9 -9
  58. package/label/fesm2022/label.mjs.map +1 -1
  59. package/package.json +56 -5
  60. package/popover/README.md +64 -0
  61. package/popover/fesm2022/popover.mjs +69 -0
  62. package/popover/fesm2022/popover.mjs.map +1 -0
  63. package/popover/index.d.ts +30 -0
  64. package/radio-group/fesm2022/radio-group.mjs +17 -17
  65. package/radio-group/fesm2022/radio-group.mjs.map +1 -1
  66. package/select/fesm2022/select.mjs +42 -42
  67. package/select/fesm2022/select.mjs.map +1 -1
  68. package/separator/README.md +64 -0
  69. package/separator/fesm2022/separator.mjs +46 -0
  70. package/separator/fesm2022/separator.mjs.map +1 -0
  71. package/separator/index.d.ts +19 -0
  72. package/sonner/fesm2022/sonner.mjs +9 -9
  73. package/sonner/fesm2022/sonner.mjs.map +1 -1
  74. package/spinner/fesm2022/spinner.mjs +10 -10
  75. package/spinner/fesm2022/spinner.mjs.map +1 -1
  76. package/switch/fesm2022/switch.mjs +13 -13
  77. package/switch/fesm2022/switch.mjs.map +1 -1
  78. package/tabs/fesm2022/tabs.mjs +27 -27
  79. package/tabs/fesm2022/tabs.mjs.map +1 -1
  80. package/tooltip/fesm2022/tooltip.mjs +10 -10
  81. package/utils/fesm2022/utils.mjs +2 -2
  82. package/utils/fesm2022/utils.mjs.map +1 -1
  83. package/utils/index.d.ts +2 -2
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { inject, input, computed, Directive, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
3
  import * as i1 from '@spartan-ng/brain/accordion';
4
4
  import { BrnAccordion, BrnAccordionContent, BrnAccordionItem, BrnAccordionTrigger } from '@spartan-ng/brain/accordion';
5
- import { cn } from '@egose/shadcn-theme-ng/utils';
5
+ import { hlm } from '@egose/shadcn-theme-ng/utils';
6
6
  import { provideIcons } from '@ng-icons/core';
7
7
  import { lucideChevronDown } from '@ng-icons/lucide';
8
8
  import { provideHlmIconConfig } from '@egose/shadcn-theme-ng/icon';
@@ -10,11 +10,11 @@ import { provideHlmIconConfig } from '@egose/shadcn-theme-ng/icon';
10
10
  class HlmAccordion {
11
11
  _brn = inject(BrnAccordion);
12
12
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
13
- _computedClass = computed(() => cn('tw:flex', this._brn.orientation() === 'horizontal' ? 'tw:flex-row' : 'tw:flex-col', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
14
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAccordion, deps: [], target: i0.ɵɵFactoryTarget.Directive });
15
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.0", type: HlmAccordion, isStandalone: true, selector: "[hlmAccordion], hlm-accordion", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnAccordion, inputs: ["type", "type", "dir", "dir", "orientation", "orientation"] }], ngImport: i0 });
13
+ _computedClass = computed(() => hlm('tw:flex', this._brn.orientation() === 'horizontal' ? 'tw:flex-row' : 'tw:flex-col', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
14
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordion, deps: [], target: i0.ɵɵFactoryTarget.Directive });
15
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmAccordion, isStandalone: true, selector: "[hlmAccordion], hlm-accordion", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnAccordion, inputs: ["type", "type", "dir", "dir", "orientation", "orientation"] }], ngImport: i0 });
16
16
  }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAccordion, decorators: [{
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordion, decorators: [{
18
18
  type: Directive,
19
19
  args: [{
20
20
  selector: '[hlmAccordion], hlm-accordion',
@@ -29,10 +29,10 @@ class HlmAccordionContent extends BrnAccordionContent {
29
29
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
30
30
  _computedClass = computed(() => {
31
31
  const gridRows = this.state() === 'open' ? 'tw:grid-rows-[1fr]' : 'tw:hidden';
32
- return cn('tw:grid tw:text-sm tw:transition-all', gridRows, this.userClass());
32
+ return hlm('tw:grid tw:text-sm tw:transition-all', gridRows, this.userClass());
33
33
  }, ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
34
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAccordionContent, deps: null, target: i0.ɵɵFactoryTarget.Component });
35
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.0", type: HlmAccordionContent, isStandalone: true, selector: "hlm-accordion-content", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, usesInheritance: true, ngImport: i0, template: `
34
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionContent, deps: null, target: i0.ɵɵFactoryTarget.Component });
35
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.1", type: HlmAccordionContent, isStandalone: true, selector: "hlm-accordion-content", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, usesInheritance: true, ngImport: i0, template: `
36
36
  <div [attr.inert]="_addInert()" style="tw:overflow:hidden">
37
37
  <div class="tw:flex tw:flex-col tw:gap-4 tw:text-balance tw:pb-4 tw:pt-0">
38
38
  <ng-content />
@@ -40,7 +40,7 @@ class HlmAccordionContent extends BrnAccordionContent {
40
40
  </div>
41
41
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
42
42
  }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAccordionContent, decorators: [{
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionContent, decorators: [{
44
44
  type: Component,
45
45
  args: [{
46
46
  selector: 'hlm-accordion-content',
@@ -61,11 +61,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
61
61
 
62
62
  class HlmAccordionIcon {
63
63
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
64
- _computedClass = computed(() => cn('tw:text-muted-foreground tw:pointer-events-none tw:size-4 tw:shrink-0 tw:translate-y-0.5 tw:transition-transform tw:duration-200', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
65
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAccordionIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
66
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.0", type: HlmAccordionIcon, isStandalone: true, selector: "ng-icon[egAccordionIcon], ng-icon[hlmAccIcon]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, providers: [provideIcons({ lucideChevronDown }), provideHlmIconConfig({ size: 'sm' })], ngImport: i0 });
64
+ _computedClass = computed(() => hlm('tw:text-muted-foreground tw:pointer-events-none tw:size-4 tw:shrink-0 tw:translate-y-0.5 tw:transition-transform tw:duration-200', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
65
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
66
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmAccordionIcon, isStandalone: true, selector: "ng-icon[egAccordionIcon], ng-icon[hlmAccIcon]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, providers: [provideIcons({ lucideChevronDown }), provideHlmIconConfig({ size: 'sm' })], ngImport: i0 });
67
67
  }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAccordionIcon, decorators: [{
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionIcon, decorators: [{
69
69
  type: Directive,
70
70
  args: [{
71
71
  selector: 'ng-icon[egAccordionIcon], ng-icon[hlmAccIcon]',
@@ -78,11 +78,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
78
78
 
79
79
  class HlmAccordionItem {
80
80
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
81
- _computedClass = computed(() => cn('tw:border-border tw:flex tw:flex-1 tw:flex-col tw:border-b', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
82
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAccordionItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
83
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.0", type: HlmAccordionItem, isStandalone: true, selector: "[hlmAccordionItem],brn-accordion-item[hlm],hlm-accordion-item", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnAccordionItem, inputs: ["isOpened", "isOpened"] }], ngImport: i0 });
81
+ _computedClass = computed(() => hlm('tw:border-border tw:flex tw:flex-1 tw:flex-col tw:border-b', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
82
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
83
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmAccordionItem, isStandalone: true, selector: "[hlmAccordionItem],brn-accordion-item[hlm],hlm-accordion-item", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnAccordionItem, inputs: ["isOpened", "isOpened"] }], ngImport: i0 });
84
84
  }
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAccordionItem, decorators: [{
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionItem, decorators: [{
86
86
  type: Directive,
87
87
  args: [{
88
88
  selector: '[hlmAccordionItem],brn-accordion-item[hlm],hlm-accordion-item',
@@ -100,11 +100,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
100
100
 
101
101
  class HlmAccordionTrigger {
102
102
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
103
- _computedClass = computed(() => cn('tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:flex tw:flex-1 tw:items-start tw:justify-between tw:gap-4 tw:rounded-md tw:py-4 tw:text-left tw:text-sm tw:font-medium tw:outline-none tw:transition-all tw:hover:underline tw:focus-visible:ring-[3px] tw:disabled:pointer-events-none tw:disabled:opacity-50 tw:[&[data-state=open]>[egAccIcon]]:rotate-180', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
104
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAccordionTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
105
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.0", type: HlmAccordionTrigger, isStandalone: true, selector: "[hlmAccordionTrigger]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--tw-ring-offset-shadow": "\"0 0 #000\"", "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnAccordionTrigger }], ngImport: i0 });
103
+ _computedClass = computed(() => hlm('tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:flex tw:flex-1 tw:items-start tw:justify-between tw:gap-4 tw:rounded-md tw:py-4 tw:text-left tw:text-sm tw:font-medium tw:outline-none tw:transition-all tw:hover:underline tw:focus-visible:ring-[3px] tw:disabled:pointer-events-none tw:disabled:opacity-50 tw:[&[data-state=open]>[egAccIcon]]:rotate-180', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
104
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
105
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmAccordionTrigger, isStandalone: true, selector: "[hlmAccordionTrigger]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--tw-ring-offset-shadow": "\"0 0 #000\"", "class": "_computedClass()" } }, hostDirectives: [{ directive: i1.BrnAccordionTrigger }], ngImport: i0 });
106
106
  }
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAccordionTrigger, decorators: [{
107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionTrigger, decorators: [{
108
108
  type: Directive,
109
109
  args: [{
110
110
  selector: '[hlmAccordionTrigger]',
@@ -127,8 +127,8 @@ const HlmAccordionImports = [
127
127
  HlmAccordionContent,
128
128
  ];
129
129
  class HlmAccordionModule {
130
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
131
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: HlmAccordionModule, imports: [HlmAccordion,
130
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
131
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionModule, imports: [HlmAccordion,
132
132
  HlmAccordionItem,
133
133
  HlmAccordionTrigger,
134
134
  HlmAccordionIcon,
@@ -137,9 +137,9 @@ class HlmAccordionModule {
137
137
  HlmAccordionTrigger,
138
138
  HlmAccordionIcon,
139
139
  HlmAccordionContent] });
140
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAccordionModule });
140
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionModule });
141
141
  }
142
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAccordionModule, decorators: [{
142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAccordionModule, decorators: [{
143
143
  type: NgModule,
144
144
  args: [{
145
145
  imports: [...HlmAccordionImports],
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.mjs","sources":["../../../projects/accordion/src/lib/accordion.ts","../../../projects/accordion/src/lib/accordion-content.ts","../../../projects/accordion/src/lib/accordion-icon.ts","../../../projects/accordion/src/lib/accordion-item.ts","../../../projects/accordion/src/lib/accordion-trigger.ts","../../../projects/accordion/src/public-api.ts","../../../projects/accordion/src/accordion.ts"],"sourcesContent":["import { Directive, computed, inject, input } from '@angular/core';\nimport { BrnAccordion } from '@spartan-ng/brain/accordion';\nimport { cn } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmAccordion], hlm-accordion',\n host: {\n '[class]': '_computedClass()',\n },\n hostDirectives: [{ directive: BrnAccordion, inputs: ['type', 'dir', 'orientation'] }],\n})\nexport class HlmAccordion {\n private readonly _brn = inject(BrnAccordion);\n\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n cn('tw:flex', this._brn.orientation() === 'horizontal' ? 'tw:flex-row' : 'tw:flex-col', this.userClass()),\n );\n}\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, input } from '@angular/core';\nimport { BrnAccordionContent } from '@spartan-ng/brain/accordion';\nimport { cn } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Component({\n selector: 'hlm-accordion-content',\n template: `\n <div [attr.inert]=\"_addInert()\" style=\"tw:overflow:hidden\">\n <div class=\"tw:flex tw:flex-col tw:gap-4 tw:text-balance tw:pb-4 tw:pt-0\">\n <ng-content />\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmAccordionContent extends BrnAccordionContent {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() => {\n const gridRows = this.state() === 'open' ? 'tw:grid-rows-[1fr]' : 'tw:hidden';\n return cn('tw:grid tw:text-sm tw:transition-all', gridRows, this.userClass());\n });\n}\n","import { Directive, computed, input } from '@angular/core';\nimport { provideIcons } from '@ng-icons/core';\nimport { lucideChevronDown } from '@ng-icons/lucide';\nimport { provideHlmIconConfig } from '@egose/shadcn-theme-ng/icon';\nimport { cn } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: 'ng-icon[egAccordionIcon], ng-icon[hlmAccIcon]',\n providers: [provideIcons({ lucideChevronDown }), provideHlmIconConfig({ size: 'sm' })],\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmAccordionIcon {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n cn(\n 'tw:text-muted-foreground tw:pointer-events-none tw:size-4 tw:shrink-0 tw:translate-y-0.5 tw:transition-transform tw:duration-200',\n this.userClass(),\n ),\n );\n}\n","import { Directive, computed, input } from '@angular/core';\nimport { BrnAccordionItem } from '@spartan-ng/brain/accordion';\nimport { cn } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmAccordionItem],brn-accordion-item[hlm],hlm-accordion-item',\n host: {\n '[class]': '_computedClass()',\n },\n hostDirectives: [\n {\n directive: BrnAccordionItem,\n inputs: ['isOpened'],\n },\n ],\n})\nexport class HlmAccordionItem {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n cn('tw:border-border tw:flex tw:flex-1 tw:flex-col tw:border-b', this.userClass()),\n );\n}\n","import { Directive, computed, input } from '@angular/core';\nimport { BrnAccordionTrigger } from '@spartan-ng/brain/accordion';\nimport { cn } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmAccordionTrigger]',\n host: {\n '[style.--tw-ring-offset-shadow]': '\"0 0 #000\"',\n '[class]': '_computedClass()',\n },\n hostDirectives: [BrnAccordionTrigger],\n})\nexport class HlmAccordionTrigger {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n cn(\n 'tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:flex tw:flex-1 tw:items-start tw:justify-between tw:gap-4 tw:rounded-md tw:py-4 tw:text-left tw:text-sm tw:font-medium tw:outline-none tw:transition-all tw:hover:underline tw:focus-visible:ring-[3px] tw:disabled:pointer-events-none tw:disabled:opacity-50 tw:[&[data-state=open]>[egAccIcon]]:rotate-180',\n this.userClass(),\n ),\n );\n}\n","/*\n * Public API Surface of accordion\n */\n\nimport { NgModule } from '@angular/core';\n\nimport { HlmAccordion } from './lib/accordion';\nimport { HlmAccordionContent } from './lib/accordion-content';\nimport { HlmAccordionIcon } from './lib/accordion-icon';\nimport { HlmAccordionItem } from './lib/accordion-item';\nimport { HlmAccordionTrigger } from './lib/accordion-trigger';\n\nexport * from './lib/accordion';\nexport * from './lib/accordion-content';\nexport * from './lib/accordion-icon';\nexport * from './lib/accordion-item';\nexport * from './lib/accordion-trigger';\n\nexport const HlmAccordionImports = [\n HlmAccordion,\n HlmAccordionItem,\n HlmAccordionTrigger,\n HlmAccordionIcon,\n HlmAccordionContent,\n] as const;\n\n@NgModule({\n imports: [...HlmAccordionImports],\n exports: [...HlmAccordionImports],\n})\nexport class HlmAccordionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAYa,YAAY,CAAA;AACN,IAAA,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC;AAE5B,IAAA,SAAS,GAAG,KAAK,CAAa,EAAE,6CAAI,KAAK,EAAE,OAAO,EAAA,CAAA,GAAA,CAAhB,EAAE,KAAK,EAAE,OAAO,EAAE,GAAC;AAClD,IAAA,cAAc,GAAG,QAAQ,CAAC,MAC3C,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,YAAY,GAAG,aAAa,GAAG,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,0DAC1G;uGANU,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,+BAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,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+ {"version":3,"file":"accordion.mjs","sources":["../../../projects/accordion/src/lib/accordion.ts","../../../projects/accordion/src/lib/accordion-content.ts","../../../projects/accordion/src/lib/accordion-icon.ts","../../../projects/accordion/src/lib/accordion-item.ts","../../../projects/accordion/src/lib/accordion-trigger.ts","../../../projects/accordion/src/public-api.ts","../../../projects/accordion/src/accordion.ts"],"sourcesContent":["import { Directive, computed, inject, input } from '@angular/core';\nimport { BrnAccordion } from '@spartan-ng/brain/accordion';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmAccordion], hlm-accordion',\n host: {\n '[class]': '_computedClass()',\n },\n hostDirectives: [{ directive: BrnAccordion, inputs: ['type', 'dir', 'orientation'] }],\n})\nexport class HlmAccordion {\n private readonly _brn = inject(BrnAccordion);\n\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm('tw:flex', this._brn.orientation() === 'horizontal' ? 'tw:flex-row' : 'tw:flex-col', this.userClass()),\n );\n}\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, input } from '@angular/core';\nimport { BrnAccordionContent } from '@spartan-ng/brain/accordion';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Component({\n selector: 'hlm-accordion-content',\n template: `\n <div [attr.inert]=\"_addInert()\" style=\"tw:overflow:hidden\">\n <div class=\"tw:flex tw:flex-col tw:gap-4 tw:text-balance tw:pb-4 tw:pt-0\">\n <ng-content />\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmAccordionContent extends BrnAccordionContent {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() => {\n const gridRows = this.state() === 'open' ? 'tw:grid-rows-[1fr]' : 'tw:hidden';\n return hlm('tw:grid tw:text-sm tw:transition-all', gridRows, this.userClass());\n });\n}\n","import { Directive, computed, input } from '@angular/core';\nimport { provideIcons } from '@ng-icons/core';\nimport { lucideChevronDown } from '@ng-icons/lucide';\nimport { provideHlmIconConfig } from '@egose/shadcn-theme-ng/icon';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: 'ng-icon[egAccordionIcon], ng-icon[hlmAccIcon]',\n providers: [provideIcons({ lucideChevronDown }), provideHlmIconConfig({ size: 'sm' })],\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmAccordionIcon {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm(\n 'tw:text-muted-foreground tw:pointer-events-none tw:size-4 tw:shrink-0 tw:translate-y-0.5 tw:transition-transform tw:duration-200',\n this.userClass(),\n ),\n );\n}\n","import { Directive, computed, input } from '@angular/core';\nimport { BrnAccordionItem } from '@spartan-ng/brain/accordion';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmAccordionItem],brn-accordion-item[hlm],hlm-accordion-item',\n host: {\n '[class]': '_computedClass()',\n },\n hostDirectives: [\n {\n directive: BrnAccordionItem,\n inputs: ['isOpened'],\n },\n ],\n})\nexport class HlmAccordionItem {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm('tw:border-border tw:flex tw:flex-1 tw:flex-col tw:border-b', this.userClass()),\n );\n}\n","import { Directive, computed, input } from '@angular/core';\nimport { BrnAccordionTrigger } from '@spartan-ng/brain/accordion';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmAccordionTrigger]',\n host: {\n '[style.--tw-ring-offset-shadow]': '\"0 0 #000\"',\n '[class]': '_computedClass()',\n },\n hostDirectives: [BrnAccordionTrigger],\n})\nexport class HlmAccordionTrigger {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm(\n 'tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:flex tw:flex-1 tw:items-start tw:justify-between tw:gap-4 tw:rounded-md tw:py-4 tw:text-left tw:text-sm tw:font-medium tw:outline-none tw:transition-all tw:hover:underline tw:focus-visible:ring-[3px] tw:disabled:pointer-events-none tw:disabled:opacity-50 tw:[&[data-state=open]>[egAccIcon]]:rotate-180',\n this.userClass(),\n ),\n );\n}\n","/*\n * Public API Surface of accordion\n */\n\nimport { NgModule } from '@angular/core';\n\nimport { HlmAccordion } from './lib/accordion';\nimport { HlmAccordionContent } from './lib/accordion-content';\nimport { HlmAccordionIcon } from './lib/accordion-icon';\nimport { HlmAccordionItem } from './lib/accordion-item';\nimport { HlmAccordionTrigger } from './lib/accordion-trigger';\n\nexport * from './lib/accordion';\nexport * from './lib/accordion-content';\nexport * from './lib/accordion-icon';\nexport * from './lib/accordion-item';\nexport * from './lib/accordion-trigger';\n\nexport const HlmAccordionImports = [\n HlmAccordion,\n HlmAccordionItem,\n HlmAccordionTrigger,\n HlmAccordionIcon,\n HlmAccordionContent,\n] as const;\n\n@NgModule({\n imports: [...HlmAccordionImports],\n exports: [...HlmAccordionImports],\n})\nexport class HlmAccordionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAYa,YAAY,CAAA;AACN,IAAA,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC;AAE5B,IAAA,SAAS,GAAG,KAAK,CAAa,EAAE,6CAAI,KAAK,EAAE,OAAO,EAAA,CAAA,GAAA,CAAhB,EAAE,KAAK,EAAE,OAAO,EAAE,GAAC;AAClD,IAAA,cAAc,GAAG,QAAQ,CAAC,MAC3C,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,YAAY,GAAG,aAAa,GAAG,aAAa,EAAE,IAA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A,mBAAmB,aAJnB,YAAY;YACZ,gBAAgB;YAChB,mBAAmB;YACnB,gBAAgB;YAChB,mBAAmB,CAAA,EAAA,CAAA;wGAOR,kBAAkB,EAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,mBAAmB,CAAC;AACjC,oBAAA,OAAO,EAAE,CAAC,GAAG,mBAAmB,CAAC;AAClC,iBAAA;;;AC7BD;;AAEG;;;;"}
@@ -1,39 +1,115 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, computed, Directive, NgModule } from '@angular/core';
3
- import { cn } from '@egose/shadcn-theme-ng/utils';
3
+ import { hlm } from '@egose/shadcn-theme-ng/utils';
4
4
  import { cva } from 'class-variance-authority';
5
5
  import { provideHlmIconConfig } from '@egose/shadcn-theme-ng/icon';
6
6
 
7
7
  const alertVariants = cva('tw:relative tw:w-full tw:items-start tw:gap-y-0.5 tw:rounded-lg tw:border tw:px-4 tw:py-3 tw:text-sm tw:has-[>[hlmAlertIcon]]:grid tw:has-[>[hlmAlertIcon]]:grid-cols-[calc(theme(spacing.1)*4)_1fr] tw:has-[>[hlmAlertIcon]]:gap-x-3 tw:[&>[hlmAlertIcon]]:size-4 tw:[&>[hlmAlertIcon]]:translate-y-0.5 tw:[&>[hlmAlertIcon]]:text-current', {
8
8
  variants: {
9
9
  variant: {
10
- primary: 'tw:bg-primary tw:text-primary-foreground tw:[&>[hlmAlertDescription]]:text-primary-foreground/90 tw:[&>[hlmAlertDesc]]:text-primary-foreground/90',
11
- secondary: 'tw:bg-secondary tw:text-secondary-foreground tw:[&>[hlmAlertDescription]]:text-secondary-foreground/90 tw:[&>[hlmAlertDesc]]:text-secondary-foreground/90',
12
- success: 'tw:bg-success tw:text-success-foreground tw:[&>[hlmAlertDescription]]:text-success-foreground/90 tw:[&>[hlmAlertDesc]]:text-success-foreground/90',
13
- warning: 'tw:bg-warning tw:text-warning-foreground tw:[&>[hlmAlertDescription]]:text-warning-foreground/90 tw:[&>[hlmAlertDesc]]:text-warning-foreground/90',
14
- danger: 'tw:bg-danger tw:text-danger-foreground tw:[&>[hlmAlertDescription]]:text-danger-foreground/90 tw:[&>[hlmAlertDesc]]:text-danger-foreground/90',
15
- info: 'tw:bg-info tw:text-info-foreground tw:[&>[hlmAlertDescription]]:text-info-foreground/90 tw:[&>[hlmAlertDesc]]:text-info-foreground/90',
16
- light: 'tw:bg-light tw:text-light-foreground tw:[&>[hlmAlertDescription]]:text-light-foreground/90 tw:[&>[hlmAlertDesc]]:text-light-foreground/90',
17
- dark: 'tw:bg-dark tw:text-dark-foreground tw:[&>[hlmAlertDescription]]:text-dark-foreground/90 tw:[&>[hlmAlertDesc]]:text-dark-foreground/90',
18
- accent: 'tw:bg-accent tw:text-accent-foreground tw:[&>[hlmAlertDescription]]:text-accent-foreground/90 tw:[&>[hlmAlertDesc]]:text-accent-foreground/90',
19
- destructive: 'tw:bg-destructive tw:text-destructive-foreground tw:[&>[hlmAlertDescription]]:text-destructive-foreground/90 tw:[&>[hlmAlertDesc]]:text-destructive-foreground/90',
20
- muted: 'tw:bg-muted tw:text-muted-foreground tw:[&>[hlmAlertDescription]]:text-muted-foreground/90 tw:[&>[hlmAlertDesc]]:text-muted-foreground/90',
21
- link: 'tw:text-primary tw:underline-offset-4 tw:[&>[hlmAlertDescription]]:text-primary/90 tw:[&>[hlmAlertDesc]]:text-primary/90',
22
- ghost: 'tw:[&>[hlmAlertDescription]]:text-muted-foreground tw:[&>[hlmAlertDesc]]:text-muted-foreground',
10
+ primary: 'tw:bg-primary tw:text-primary-foreground tw:[&>[hlmAlertDescription]]:text-primary-foreground/90',
11
+ secondary: 'tw:bg-secondary tw:text-secondary-foreground tw:[&>[hlmAlertDescription]]:text-secondary-foreground/90',
12
+ success: 'tw:bg-success tw:text-success-foreground tw:[&>[hlmAlertDescription]]:text-success-foreground/90',
13
+ warning: 'tw:bg-warning tw:text-warning-foreground tw:[&>[hlmAlertDescription]]:text-warning-foreground/90',
14
+ danger: 'tw:bg-danger tw:text-danger-foreground tw:[&>[hlmAlertDescription]]:text-danger-foreground/90',
15
+ info: 'tw:bg-info tw:text-info-foreground tw:[&>[hlmAlertDescription]]:text-info-foreground/90',
16
+ light: 'tw:bg-light tw:text-light-foreground tw:[&>[hlmAlertDescription]]:text-light-foreground/90',
17
+ dark: 'tw:bg-dark tw:text-dark-foreground tw:[&>[hlmAlertDescription]]:text-dark-foreground/90',
18
+ accent: 'tw:bg-accent tw:text-accent-foreground tw:[&>[hlmAlertDescription]]:text-accent-foreground/90',
19
+ destructive: 'tw:bg-destructive tw:text-destructive-foreground tw:[&>[hlmAlertDescription]]:text-destructive-foreground/90',
20
+ muted: 'tw:bg-muted tw:text-muted-foreground tw:[&>[hlmAlertDescription]]:text-muted-foreground/90',
21
+ link: 'tw:text-primary tw:underline-offset-4 tw:[&>[hlmAlertDescription]]:text-primary/90',
22
+ ghost: 'tw:[&>[hlmAlertDescription]]:text-muted-foreground',
23
+ },
24
+ appearance: {
25
+ solid: '',
26
+ light: 'tw:text-semibold',
23
27
  },
24
28
  },
29
+ compoundVariants: [
30
+ {
31
+ variant: 'primary',
32
+ appearance: 'light',
33
+ class: 'tw:bg-primary/20 tw:text-primary tw:[&>[hlmAlertDescription]]:text-primary',
34
+ },
35
+ {
36
+ variant: 'secondary',
37
+ appearance: 'light',
38
+ class: 'tw:bg-secondary/20 tw:text-secondary tw:[&>[hlmAlertDescription]]:text-secondary',
39
+ },
40
+ {
41
+ variant: 'success',
42
+ appearance: 'light',
43
+ class: 'tw:bg-success/20 tw:text-success tw:[&>[hlmAlertDescription]]:text-success',
44
+ },
45
+ {
46
+ variant: 'warning',
47
+ appearance: 'light',
48
+ class: 'tw:bg-warning/20 tw:text-warning tw:[&>[hlmAlertDescription]]:text-warning',
49
+ },
50
+ {
51
+ variant: 'danger',
52
+ appearance: 'light',
53
+ class: 'tw:bg-danger/20 tw:text-danger tw:[&>[hlmAlertDescription]]:text-danger',
54
+ },
55
+ {
56
+ variant: 'info',
57
+ appearance: 'light',
58
+ class: 'tw:bg-info/20 tw:text-info tw:[&>[hlmAlertDescription]]:text-info',
59
+ },
60
+ {
61
+ variant: 'light',
62
+ appearance: 'light',
63
+ class: 'tw:bg-light/20 tw:text-light tw:[&>[hlmAlertDescription]]:text-light',
64
+ },
65
+ {
66
+ variant: 'dark',
67
+ appearance: 'light',
68
+ class: 'tw:bg-dark/20 tw:text-dark tw:[&>[hlmAlertDescription]]:text-dark',
69
+ },
70
+ {
71
+ variant: 'accent',
72
+ appearance: 'light',
73
+ class: 'tw:bg-accent/20 tw:text-accent tw:[&>[hlmAlertDescription]]:text-accent',
74
+ },
75
+ {
76
+ variant: 'destructive',
77
+ appearance: 'light',
78
+ class: 'tw:bg-destructive/20 tw:text-destructive tw:[&>[hlmAlertDescription]]:text-destructive',
79
+ },
80
+ {
81
+ variant: 'muted',
82
+ appearance: 'light',
83
+ class: 'tw:bg-muted/20 tw:text-muted tw:[&>[hlmAlertDescription]]:text-muted',
84
+ },
85
+ {
86
+ variant: 'link',
87
+ appearance: 'light',
88
+ class: 'tw:bg-primary/10 tw:text-primary tw:[&>[hlmAlertDescription]]:text-primary',
89
+ },
90
+ {
91
+ variant: 'ghost',
92
+ appearance: 'light',
93
+ class: 'tw:bg-muted/10 tw:text-muted-foreground tw:[&>[hlmAlertDescription]]:text-muted-foreground',
94
+ },
95
+ ],
25
96
  defaultVariants: {
26
97
  variant: 'primary',
98
+ appearance: 'solid',
27
99
  },
28
100
  });
29
101
  class HlmAlert {
30
102
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
31
- _computedClass = computed(() => cn(alertVariants({ variant: this.variant() }), this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
32
103
  variant = input('primary', ...(ngDevMode ? [{ debugName: "variant" }] : []));
33
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAlert, deps: [], target: i0.ɵɵFactoryTarget.Directive });
34
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.0", type: HlmAlert, isStandalone: true, selector: "[hlmAlert]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "alert" }, properties: { "class": "_computedClass()" } }, ngImport: i0 });
104
+ appearance = input('solid', ...(ngDevMode ? [{ debugName: "appearance" }] : []));
105
+ _computedClass = computed(() => hlm(alertVariants({
106
+ variant: this.variant(),
107
+ appearance: this.appearance(),
108
+ }), this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
109
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAlert, deps: [], target: i0.ɵɵFactoryTarget.Directive });
110
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmAlert, isStandalone: true, selector: "[hlmAlert]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "alert" }, properties: { "class": "_computedClass()" } }, ngImport: i0 });
35
111
  }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAlert, decorators: [{
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAlert, decorators: [{
37
113
  type: Directive,
38
114
  args: [{
39
115
  selector: '[hlmAlert]',
@@ -46,11 +122,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
46
122
 
47
123
  class HlmAlertDescription {
48
124
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
49
- _computedClass = computed(() => cn('tw:text-current tw:col-start-2 tw:grid tw:justify-items-start tw:gap-1 tw:text-sm tw:[&_p]:leading-relaxed', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
50
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAlertDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
51
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.0", type: HlmAlertDescription, isStandalone: true, selector: "[hlmAlertDesc],[hlmAlertDescription]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
125
+ _computedClass = computed(() => hlm('tw:text-current tw:col-start-2 tw:grid tw:justify-items-start tw:gap-1 tw:text-sm tw:[&_p]:leading-relaxed', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
126
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAlertDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
127
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmAlertDescription, isStandalone: true, selector: "[hlmAlertDesc],[hlmAlertDescription]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
52
128
  }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAlertDescription, decorators: [{
129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAlertDescription, decorators: [{
54
130
  type: Directive,
55
131
  args: [{
56
132
  selector: '[hlmAlertDesc],[hlmAlertDescription]',
@@ -61,10 +137,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
61
137
  }] });
62
138
 
63
139
  class HlmAlertIcon {
64
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAlertIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
65
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.0", type: HlmAlertIcon, isStandalone: true, selector: "[hlmAlertIcon]", providers: [provideHlmIconConfig({ size: 'sm' })], ngImport: i0 });
140
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAlertIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
141
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.1", type: HlmAlertIcon, isStandalone: true, selector: "[hlmAlertIcon]", providers: [provideHlmIconConfig({ size: 'sm' })], ngImport: i0 });
66
142
  }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAlertIcon, decorators: [{
143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAlertIcon, decorators: [{
68
144
  type: Directive,
69
145
  args: [{
70
146
  selector: '[hlmAlertIcon]',
@@ -74,11 +150,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
74
150
 
75
151
  class HlmAlertTitle {
76
152
  userClass = input('', ...(ngDevMode ? [{ debugName: "userClass", alias: 'class' }] : [{ alias: 'class' }]));
77
- _computedClass = computed(() => cn('tw:col-start-2 tw:line-clamp-1 tw:min-h-4 tw:text-md tw:font-medium tw:tracking-tight', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
78
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAlertTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
79
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.0", type: HlmAlertTitle, isStandalone: true, selector: "[hlmAlertTitle]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
153
+ _computedClass = computed(() => hlm('tw:col-start-2 tw:line-clamp-1 tw:min-h-4 tw:text-md tw:font-semibold tw:tracking-tight', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : []));
154
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAlertTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
155
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.1", type: HlmAlertTitle, isStandalone: true, selector: "[hlmAlertTitle]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
80
156
  }
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAlertTitle, decorators: [{
157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAlertTitle, decorators: [{
82
158
  type: Directive,
83
159
  args: [{
84
160
  selector: '[hlmAlertTitle]',
@@ -93,11 +169,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
93
169
  */
94
170
  const HlmAlertImports = [HlmAlert, HlmAlertTitle, HlmAlertDescription, HlmAlertIcon];
95
171
  class HlmAlertModule {
96
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
97
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.0", ngImport: i0, type: HlmAlertModule, imports: [HlmAlert, HlmAlertTitle, HlmAlertDescription, HlmAlertIcon], exports: [HlmAlert, HlmAlertTitle, HlmAlertDescription, HlmAlertIcon] });
98
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAlertModule });
172
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
173
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.1", ngImport: i0, type: HlmAlertModule, imports: [HlmAlert, HlmAlertTitle, HlmAlertDescription, HlmAlertIcon], exports: [HlmAlert, HlmAlertTitle, HlmAlertDescription, HlmAlertIcon] });
174
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAlertModule });
99
175
  }
100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: HlmAlertModule, decorators: [{
176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: HlmAlertModule, decorators: [{
101
177
  type: NgModule,
102
178
  args: [{
103
179
  imports: [...HlmAlertImports],
@@ -1 +1 @@
1
- {"version":3,"file":"alert.mjs","sources":["../../../projects/alert/src/lib/alert.ts","../../../projects/alert/src/lib/alert-description.ts","../../../projects/alert/src/lib/alert-icon.ts","../../../projects/alert/src/lib/alert-title.ts","../../../projects/alert/src/public-api.ts","../../../projects/alert/src/alert.ts"],"sourcesContent":["import { Directive, computed, input } from '@angular/core';\nimport { cn } from '@egose/shadcn-theme-ng/utils';\nimport { type VariantProps, cva } from 'class-variance-authority';\nimport type { ClassValue } from 'clsx';\n\nconst alertVariants = cva(\n 'tw:relative tw:w-full tw:items-start tw:gap-y-0.5 tw:rounded-lg tw:border tw:px-4 tw:py-3 tw:text-sm tw:has-[>[hlmAlertIcon]]:grid tw:has-[>[hlmAlertIcon]]:grid-cols-[calc(theme(spacing.1)*4)_1fr] tw:has-[>[hlmAlertIcon]]:gap-x-3 tw:[&>[hlmAlertIcon]]:size-4 tw:[&>[hlmAlertIcon]]:translate-y-0.5 tw:[&>[hlmAlertIcon]]:text-current',\n {\n variants: {\n variant: {\n primary:\n 'tw:bg-primary tw:text-primary-foreground tw:[&>[hlmAlertDescription]]:text-primary-foreground/90 tw:[&>[hlmAlertDesc]]:text-primary-foreground/90',\n secondary:\n 'tw:bg-secondary tw:text-secondary-foreground tw:[&>[hlmAlertDescription]]:text-secondary-foreground/90 tw:[&>[hlmAlertDesc]]:text-secondary-foreground/90',\n success:\n 'tw:bg-success tw:text-success-foreground tw:[&>[hlmAlertDescription]]:text-success-foreground/90 tw:[&>[hlmAlertDesc]]:text-success-foreground/90',\n warning:\n 'tw:bg-warning tw:text-warning-foreground tw:[&>[hlmAlertDescription]]:text-warning-foreground/90 tw:[&>[hlmAlertDesc]]:text-warning-foreground/90',\n danger:\n 'tw:bg-danger tw:text-danger-foreground tw:[&>[hlmAlertDescription]]:text-danger-foreground/90 tw:[&>[hlmAlertDesc]]:text-danger-foreground/90',\n info: 'tw:bg-info tw:text-info-foreground tw:[&>[hlmAlertDescription]]:text-info-foreground/90 tw:[&>[hlmAlertDesc]]:text-info-foreground/90',\n light:\n 'tw:bg-light tw:text-light-foreground tw:[&>[hlmAlertDescription]]:text-light-foreground/90 tw:[&>[hlmAlertDesc]]:text-light-foreground/90',\n dark: 'tw:bg-dark tw:text-dark-foreground tw:[&>[hlmAlertDescription]]:text-dark-foreground/90 tw:[&>[hlmAlertDesc]]:text-dark-foreground/90',\n accent:\n 'tw:bg-accent tw:text-accent-foreground tw:[&>[hlmAlertDescription]]:text-accent-foreground/90 tw:[&>[hlmAlertDesc]]:text-accent-foreground/90',\n destructive:\n 'tw:bg-destructive tw:text-destructive-foreground tw:[&>[hlmAlertDescription]]:text-destructive-foreground/90 tw:[&>[hlmAlertDesc]]:text-destructive-foreground/90',\n muted:\n 'tw:bg-muted tw:text-muted-foreground tw:[&>[hlmAlertDescription]]:text-muted-foreground/90 tw:[&>[hlmAlertDesc]]:text-muted-foreground/90',\n link: 'tw:text-primary tw:underline-offset-4 tw:[&>[hlmAlertDescription]]:text-primary/90 tw:[&>[hlmAlertDesc]]:text-primary/90',\n ghost: 'tw:[&>[hlmAlertDescription]]:text-muted-foreground tw:[&>[hlmAlertDesc]]:text-muted-foreground',\n },\n },\n defaultVariants: {\n variant: 'primary',\n },\n },\n);\n\nexport type AlertVariants = VariantProps<typeof alertVariants>;\nexport type VariantType = NonNullable<AlertVariants['variant']>;\n\n@Directive({\n selector: '[hlmAlert]',\n host: {\n role: 'alert',\n '[class]': '_computedClass()',\n },\n})\nexport class HlmAlert {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() => cn(alertVariants({ variant: this.variant() }), this.userClass()));\n\n public readonly variant = input<AlertVariants['variant']>('primary');\n}\n","import { Directive, computed, input } from '@angular/core';\nimport { cn } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmAlertDesc],[hlmAlertDescription]',\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmAlertDescription {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n cn(\n 'tw:text-current tw:col-start-2 tw:grid tw:justify-items-start tw:gap-1 tw:text-sm tw:[&_p]:leading-relaxed',\n this.userClass(),\n ),\n );\n}\n","import { Directive } from '@angular/core';\nimport { provideHlmIconConfig } from '@egose/shadcn-theme-ng/icon';\n\n@Directive({\n selector: '[hlmAlertIcon]',\n providers: [provideHlmIconConfig({ size: 'sm' })],\n})\nexport class HlmAlertIcon {}\n","import { Directive, computed, input } from '@angular/core';\nimport { cn } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmAlertTitle]',\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmAlertTitle {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n cn('tw:col-start-2 tw:line-clamp-1 tw:min-h-4 tw:text-md tw:font-medium tw:tracking-tight', this.userClass()),\n );\n}\n","/*\n * Public API Surface of alert\n */\n\nimport { NgModule } from '@angular/core';\n\nimport { HlmAlert } from './lib/alert';\nimport { HlmAlertDescription } from './lib/alert-description';\nimport { HlmAlertIcon } from './lib/alert-icon';\nimport { HlmAlertTitle } from './lib/alert-title';\n\nexport * from './lib/alert';\nexport * from './lib/alert-description';\nexport * from './lib/alert-icon';\nexport * from './lib/alert-title';\n\nexport const HlmAlertImports = [HlmAlert, HlmAlertTitle, HlmAlertDescription, HlmAlertIcon] as const;\n\n@NgModule({\n imports: [...HlmAlertImports],\n exports: [...HlmAlertImports],\n})\nexport class HlmAlertModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAKA,MAAM,aAAa,GAAG,GAAG,CACvB,6UAA6U,EAC7U;AACE,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EACL,mJAAmJ;AACrJ,YAAA,SAAS,EACP,2JAA2J;AAC7J,YAAA,OAAO,EACL,mJAAmJ;AACrJ,YAAA,OAAO,EACL,mJAAmJ;AACrJ,YAAA,MAAM,EACJ,+IAA+I;AACjJ,YAAA,IAAI,EAAE,uIAAuI;AAC7I,YAAA,KAAK,EACH,2IAA2I;AAC7I,YAAA,IAAI,EAAE,uIAAuI;AAC7I,YAAA,MAAM,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AAA,UAAA,EAAA,CAAA;kBANzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,kBAAkB;AAC9B,qBAAA;AACF,iBAAA;;;ACTD;;AAEG;AAcI,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY;MAM7E,cAAc,CAAA;uGAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,EAAA,OAAA,EAAA,CANK,QAAQ,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY,CAAA,EAAA,OAAA,EAAA,CAA1D,QAAQ,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY,CAAA,EAAA,CAAA;wGAM7E,cAAc,EAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,eAAe,CAAC;AAC7B,oBAAA,OAAO,EAAE,CAAC,GAAG,eAAe,CAAC;AAC9B,iBAAA;;;ACrBD;;AAEG;;;;"}
1
+ {"version":3,"file":"alert.mjs","sources":["../../../projects/alert/src/lib/alert.ts","../../../projects/alert/src/lib/alert-description.ts","../../../projects/alert/src/lib/alert-icon.ts","../../../projects/alert/src/lib/alert-title.ts","../../../projects/alert/src/public-api.ts","../../../projects/alert/src/alert.ts"],"sourcesContent":["import { Directive, computed, input } from '@angular/core';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport { type VariantProps, cva } from 'class-variance-authority';\nimport type { ClassValue } from 'clsx';\n\nconst alertVariants = cva(\n 'tw:relative tw:w-full tw:items-start tw:gap-y-0.5 tw:rounded-lg tw:border tw:px-4 tw:py-3 tw:text-sm tw:has-[>[hlmAlertIcon]]:grid tw:has-[>[hlmAlertIcon]]:grid-cols-[calc(theme(spacing.1)*4)_1fr] tw:has-[>[hlmAlertIcon]]:gap-x-3 tw:[&>[hlmAlertIcon]]:size-4 tw:[&>[hlmAlertIcon]]:translate-y-0.5 tw:[&>[hlmAlertIcon]]:text-current',\n {\n variants: {\n variant: {\n primary: 'tw:bg-primary tw:text-primary-foreground tw:[&>[hlmAlertDescription]]:text-primary-foreground/90',\n secondary:\n 'tw:bg-secondary tw:text-secondary-foreground tw:[&>[hlmAlertDescription]]:text-secondary-foreground/90',\n success: 'tw:bg-success tw:text-success-foreground tw:[&>[hlmAlertDescription]]:text-success-foreground/90',\n warning: 'tw:bg-warning tw:text-warning-foreground tw:[&>[hlmAlertDescription]]:text-warning-foreground/90',\n danger: 'tw:bg-danger tw:text-danger-foreground tw:[&>[hlmAlertDescription]]:text-danger-foreground/90',\n info: 'tw:bg-info tw:text-info-foreground tw:[&>[hlmAlertDescription]]:text-info-foreground/90',\n light: 'tw:bg-light tw:text-light-foreground tw:[&>[hlmAlertDescription]]:text-light-foreground/90',\n dark: 'tw:bg-dark tw:text-dark-foreground tw:[&>[hlmAlertDescription]]:text-dark-foreground/90',\n accent: 'tw:bg-accent tw:text-accent-foreground tw:[&>[hlmAlertDescription]]:text-accent-foreground/90',\n destructive:\n 'tw:bg-destructive tw:text-destructive-foreground tw:[&>[hlmAlertDescription]]:text-destructive-foreground/90',\n muted: 'tw:bg-muted tw:text-muted-foreground tw:[&>[hlmAlertDescription]]:text-muted-foreground/90',\n link: 'tw:text-primary tw:underline-offset-4 tw:[&>[hlmAlertDescription]]:text-primary/90',\n ghost: 'tw:[&>[hlmAlertDescription]]:text-muted-foreground',\n },\n appearance: {\n solid: '',\n light: 'tw:text-semibold',\n },\n },\n compoundVariants: [\n {\n variant: 'primary',\n appearance: 'light',\n class: 'tw:bg-primary/20 tw:text-primary tw:[&>[hlmAlertDescription]]:text-primary',\n },\n {\n variant: 'secondary',\n appearance: 'light',\n class: 'tw:bg-secondary/20 tw:text-secondary tw:[&>[hlmAlertDescription]]:text-secondary',\n },\n {\n variant: 'success',\n appearance: 'light',\n class: 'tw:bg-success/20 tw:text-success tw:[&>[hlmAlertDescription]]:text-success',\n },\n {\n variant: 'warning',\n appearance: 'light',\n class: 'tw:bg-warning/20 tw:text-warning tw:[&>[hlmAlertDescription]]:text-warning',\n },\n {\n variant: 'danger',\n appearance: 'light',\n class: 'tw:bg-danger/20 tw:text-danger tw:[&>[hlmAlertDescription]]:text-danger',\n },\n {\n variant: 'info',\n appearance: 'light',\n class: 'tw:bg-info/20 tw:text-info tw:[&>[hlmAlertDescription]]:text-info',\n },\n {\n variant: 'light',\n appearance: 'light',\n class: 'tw:bg-light/20 tw:text-light tw:[&>[hlmAlertDescription]]:text-light',\n },\n {\n variant: 'dark',\n appearance: 'light',\n class: 'tw:bg-dark/20 tw:text-dark tw:[&>[hlmAlertDescription]]:text-dark',\n },\n {\n variant: 'accent',\n appearance: 'light',\n class: 'tw:bg-accent/20 tw:text-accent tw:[&>[hlmAlertDescription]]:text-accent',\n },\n {\n variant: 'destructive',\n appearance: 'light',\n class: 'tw:bg-destructive/20 tw:text-destructive tw:[&>[hlmAlertDescription]]:text-destructive',\n },\n {\n variant: 'muted',\n appearance: 'light',\n class: 'tw:bg-muted/20 tw:text-muted tw:[&>[hlmAlertDescription]]:text-muted',\n },\n {\n variant: 'link',\n appearance: 'light',\n class: 'tw:bg-primary/10 tw:text-primary tw:[&>[hlmAlertDescription]]:text-primary',\n },\n {\n variant: 'ghost',\n appearance: 'light',\n class: 'tw:bg-muted/10 tw:text-muted-foreground tw:[&>[hlmAlertDescription]]:text-muted-foreground',\n },\n ],\n defaultVariants: {\n variant: 'primary',\n appearance: 'solid',\n },\n },\n);\nexport type AlertVariants = VariantProps<typeof alertVariants>;\nexport type VariantType = NonNullable<AlertVariants['variant']>;\nexport type AppearanceType = NonNullable<AlertVariants['appearance']>;\n@Directive({\n selector: '[hlmAlert]',\n host: {\n role: 'alert',\n '[class]': '_computedClass()',\n },\n})\nexport class HlmAlert {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n public readonly variant = input<AlertVariants['variant']>('primary');\n public readonly appearance = input<AlertVariants['appearance']>('solid');\n protected readonly _computedClass = computed(() =>\n hlm(\n alertVariants({\n variant: this.variant(),\n appearance: this.appearance(),\n }),\n this.userClass(),\n ),\n );\n}\n","import { Directive, computed, input } from '@angular/core';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmAlertDesc],[hlmAlertDescription]',\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmAlertDescription {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm(\n 'tw:text-current tw:col-start-2 tw:grid tw:justify-items-start tw:gap-1 tw:text-sm tw:[&_p]:leading-relaxed',\n this.userClass(),\n ),\n );\n}\n","import { Directive } from '@angular/core';\nimport { provideHlmIconConfig } from '@egose/shadcn-theme-ng/icon';\n\n@Directive({\n selector: '[hlmAlertIcon]',\n providers: [provideHlmIconConfig({ size: 'sm' })],\n})\nexport class HlmAlertIcon {}\n","import { Directive, computed, input } from '@angular/core';\nimport { hlm } from '@egose/shadcn-theme-ng/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n selector: '[hlmAlertTitle]',\n host: {\n '[class]': '_computedClass()',\n },\n})\nexport class HlmAlertTitle {\n public readonly userClass = input<ClassValue>('', { alias: 'class' });\n protected readonly _computedClass = computed(() =>\n hlm('tw:col-start-2 tw:line-clamp-1 tw:min-h-4 tw:text-md tw:font-semibold tw:tracking-tight', this.userClass()),\n );\n}\n","/*\n * Public API Surface of alert\n */\n\nimport { NgModule } from '@angular/core';\n\nimport { HlmAlert } from './lib/alert';\nimport { HlmAlertDescription } from './lib/alert-description';\nimport { HlmAlertIcon } from './lib/alert-icon';\nimport { HlmAlertTitle } from './lib/alert-title';\n\nexport * from './lib/alert';\nexport * from './lib/alert-description';\nexport * from './lib/alert-icon';\nexport * from './lib/alert-title';\n\nexport const HlmAlertImports = [HlmAlert, HlmAlertTitle, HlmAlertDescription, HlmAlertIcon] as const;\n\n@NgModule({\n imports: [...HlmAlertImports],\n exports: [...HlmAlertImports],\n})\nexport class HlmAlertModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAKA,MAAM,aAAa,GAAG,GAAG,CACvB,6UAA6U,EAC7U;AACE,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,kGAAkG;AAC3G,YAAA,SAAS,EACP,wGAAwG;AAC1G,YAAA,OAAO,EAAE,kGAAkG;AAC3G,YAAA,OAAO,EAAE,kGAAkG;AAC3G,YAAA,MAAM,EAAE,+FAA+F;AACvG,YAAA,IAAI,EAAE,yFAAyF;AAC/F,YAAA,KAAK,EAAE,4FAA4F;AACnG,YAAA,IAAI,EAAE,yFAAyF;AAC/F,YAAA,MAAM,EAAE,+FAA+F;AACvG,YAAA,WAAW,EACT,8GAA8G;AAChH,YAAA,KAAK,EAAE,4FAA4F;AACnG,YAAA,IAAI,EAAE,oFAAoF;AAC1F,YAAA,KAAK,EAAE,oDAAoD;AAC5D,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,KAAK,EAAE,EAAE;AACT,YAAA,KAAK,EAAE,kBAAkB;AAC1B,SAAA;AACF,KAAA;AACD,IAAA,gBAAgB,EAAE;AAChB,QAAA;AACE,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,UAAU,EAAE,OAAO;AACnB,YAAA,KAAK,EAAE,4EAA4E;AACpF,SAAA;AACD,QAAA;AACE,YAAA,OAAO,EAAE,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"warning" | "danger" | "info" | "light" | "dark" | "accent" | "destructive" | "muted" | "link" | "ghost" | null | undefined;
8
+ appearance?: "light" | "solid" | null | undefined;
8
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
10
  type AlertVariants = VariantProps<typeof alertVariants>;
10
11
  type VariantType = NonNullable<AlertVariants['variant']>;
12
+ type AppearanceType = NonNullable<AlertVariants['appearance']>;
11
13
  declare class HlmAlert {
12
14
  readonly userClass: i0.InputSignal<ClassValue>;
13
- protected readonly _computedClass: i0.Signal<string>;
14
15
  readonly variant: i0.InputSignal<"primary" | "secondary" | "success" | "warning" | "danger" | "info" | "light" | "dark" | "accent" | "destructive" | "muted" | "link" | "ghost" | null | undefined>;
16
+ readonly appearance: i0.InputSignal<"light" | "solid" | null | undefined>;
17
+ protected readonly _computedClass: i0.Signal<string>;
15
18
  static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlert, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlert, "[hlmAlert]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlert, "[hlmAlert]", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
17
20
  }
18
21
 
19
22
  declare class HlmAlertDescription {
@@ -43,4 +46,4 @@ declare class HlmAlertModule {
43
46
  }
44
47
 
45
48
  export { HlmAlert, HlmAlertDescription, HlmAlertIcon, HlmAlertImports, HlmAlertModule, HlmAlertTitle };
46
- export type { AlertVariants, VariantType };
49
+ export type { AlertVariants, AppearanceType, VariantType };
@@ -0,0 +1,64 @@
1
+ # Autocomplete
2
+
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.3.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
8
+
9
+ ```bash
10
+ ng generate component component-name
11
+ ```
12
+
13
+ For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
14
+
15
+ ```bash
16
+ ng generate --help
17
+ ```
18
+
19
+ ## Building
20
+
21
+ To build the library, run:
22
+
23
+ ```bash
24
+ ng build autocomplete
25
+ ```
26
+
27
+ This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
+
29
+ ### Publishing the Library
30
+
31
+ Once the project is built, you can publish your library by following these steps:
32
+
33
+ 1. Navigate to the `dist` directory:
34
+
35
+ ```bash
36
+ cd dist/autocomplete
37
+ ```
38
+
39
+ 2. Run the `npm publish` command to publish your library to the npm registry:
40
+ ```bash
41
+ npm publish
42
+ ```
43
+
44
+ ## Running unit tests
45
+
46
+ To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
47
+
48
+ ```bash
49
+ ng test
50
+ ```
51
+
52
+ ## Running end-to-end tests
53
+
54
+ For end-to-end (e2e) testing, run:
55
+
56
+ ```bash
57
+ ng e2e
58
+ ```
59
+
60
+ Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
61
+
62
+ ## Additional Resources
63
+
64
+ For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.