yukit-web 0.0.1

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 (196) hide show
  1. package/.npm/_logs/2026-08-20T08_40_55_706Z-debug-0.log +38 -0
  2. package/.npm/_logs/2026-08-20T08_40_56_280Z-debug-0.log +14 -0
  3. package/README.md +1465 -0
  4. package/fesm2022/yukit-web-helm-accordion.mjs +141 -0
  5. package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -0
  6. package/fesm2022/yukit-web-helm-alert-dialog.mjs +250 -0
  7. package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -0
  8. package/fesm2022/yukit-web-helm-alert.mjs +94 -0
  9. package/fesm2022/yukit-web-helm-alert.mjs.map +1 -0
  10. package/fesm2022/yukit-web-helm-aspect-ratio.mjs +47 -0
  11. package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -0
  12. package/fesm2022/yukit-web-helm-attachment.mjs +211 -0
  13. package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -0
  14. package/fesm2022/yukit-web-helm-autocomplete.mjs +361 -0
  15. package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -0
  16. package/fesm2022/yukit-web-helm-avatar.mjs +152 -0
  17. package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -0
  18. package/fesm2022/yukit-web-helm-badge.mjs +47 -0
  19. package/fesm2022/yukit-web-helm-badge.mjs.map +1 -0
  20. package/fesm2022/yukit-web-helm-breadcrumb.mjs +196 -0
  21. package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -0
  22. package/fesm2022/yukit-web-helm-bubble.mjs +121 -0
  23. package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -0
  24. package/fesm2022/yukit-web-helm-button-group.mjs +86 -0
  25. package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -0
  26. package/fesm2022/yukit-web-helm-button.mjs +77 -0
  27. package/fesm2022/yukit-web-helm-button.mjs.map +1 -0
  28. package/fesm2022/yukit-web-helm-calendar.mjs +937 -0
  29. package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -0
  30. package/fesm2022/yukit-web-helm-card.mjs +141 -0
  31. package/fesm2022/yukit-web-helm-card.mjs.map +1 -0
  32. package/fesm2022/yukit-web-helm-carousel.mjs +270 -0
  33. package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -0
  34. package/fesm2022/yukit-web-helm-checkbox.mjs +147 -0
  35. package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -0
  36. package/fesm2022/yukit-web-helm-collapsible.mjs +62 -0
  37. package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -0
  38. package/fesm2022/yukit-web-helm-combobox.mjs +624 -0
  39. package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -0
  40. package/fesm2022/yukit-web-helm-command.mjs +315 -0
  41. package/fesm2022/yukit-web-helm-command.mjs.map +1 -0
  42. package/fesm2022/yukit-web-helm-context-menu.mjs +71 -0
  43. package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -0
  44. package/fesm2022/yukit-web-helm-date-picker.mjs +1517 -0
  45. package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -0
  46. package/fesm2022/yukit-web-helm-dialog.mjs +271 -0
  47. package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -0
  48. package/fesm2022/yukit-web-helm-drawer.mjs +233 -0
  49. package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -0
  50. package/fesm2022/yukit-web-helm-dropdown-menu.mjs +508 -0
  51. package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -0
  52. package/fesm2022/yukit-web-helm-empty.mjs +125 -0
  53. package/fesm2022/yukit-web-helm-empty.mjs.map +1 -0
  54. package/fesm2022/yukit-web-helm-field.mjs +325 -0
  55. package/fesm2022/yukit-web-helm-field.mjs.map +1 -0
  56. package/fesm2022/yukit-web-helm-hover-card.mjs +102 -0
  57. package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -0
  58. package/fesm2022/yukit-web-helm-input-group.mjs +171 -0
  59. package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -0
  60. package/fesm2022/yukit-web-helm-input-otp.mjs +127 -0
  61. package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -0
  62. package/fesm2022/yukit-web-helm-input.mjs +32 -0
  63. package/fesm2022/yukit-web-helm-input.mjs.map +1 -0
  64. package/fesm2022/yukit-web-helm-item.mjs +242 -0
  65. package/fesm2022/yukit-web-helm-item.mjs.map +1 -0
  66. package/fesm2022/yukit-web-helm-kbd.mjs +46 -0
  67. package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -0
  68. package/fesm2022/yukit-web-helm-label.mjs +30 -0
  69. package/fesm2022/yukit-web-helm-label.mjs.map +1 -0
  70. package/fesm2022/yukit-web-helm-marker.mjs +77 -0
  71. package/fesm2022/yukit-web-helm-marker.mjs.map +1 -0
  72. package/fesm2022/yukit-web-helm-menubar.mjs +90 -0
  73. package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -0
  74. package/fesm2022/yukit-web-helm-message.mjs +115 -0
  75. package/fesm2022/yukit-web-helm-message.mjs.map +1 -0
  76. package/fesm2022/yukit-web-helm-native-select.mjs +180 -0
  77. package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -0
  78. package/fesm2022/yukit-web-helm-navigation-menu.mjs +173 -0
  79. package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -0
  80. package/fesm2022/yukit-web-helm-pagination.mjs +745 -0
  81. package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -0
  82. package/fesm2022/yukit-web-helm-popover.mjs +136 -0
  83. package/fesm2022/yukit-web-helm-popover.mjs.map +1 -0
  84. package/fesm2022/yukit-web-helm-progress.mjs +60 -0
  85. package/fesm2022/yukit-web-helm-progress.mjs.map +1 -0
  86. package/fesm2022/yukit-web-helm-radio-group.mjs +185 -0
  87. package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -0
  88. package/fesm2022/yukit-web-helm-resizable.mjs +98 -0
  89. package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -0
  90. package/fesm2022/yukit-web-helm-scroll-area.mjs +36 -0
  91. package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -0
  92. package/fesm2022/yukit-web-helm-select.mjs +412 -0
  93. package/fesm2022/yukit-web-helm-select.mjs.map +1 -0
  94. package/fesm2022/yukit-web-helm-separator.mjs +33 -0
  95. package/fesm2022/yukit-web-helm-separator.mjs.map +1 -0
  96. package/fesm2022/yukit-web-helm-sheet.mjs +254 -0
  97. package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -0
  98. package/fesm2022/yukit-web-helm-sidebar.mjs +857 -0
  99. package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -0
  100. package/fesm2022/yukit-web-helm-skeleton.mjs +29 -0
  101. package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -0
  102. package/fesm2022/yukit-web-helm-slider.mjs +123 -0
  103. package/fesm2022/yukit-web-helm-slider.mjs.map +1 -0
  104. package/fesm2022/yukit-web-helm-sonner.mjs +126 -0
  105. package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -0
  106. package/fesm2022/yukit-web-helm-spinner.mjs +48 -0
  107. package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -0
  108. package/fesm2022/yukit-web-helm-switch.mjs +126 -0
  109. package/fesm2022/yukit-web-helm-switch.mjs.map +1 -0
  110. package/fesm2022/yukit-web-helm-table.mjs +180 -0
  111. package/fesm2022/yukit-web-helm-table.mjs.map +1 -0
  112. package/fesm2022/yukit-web-helm-tabs.mjs +251 -0
  113. package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -0
  114. package/fesm2022/yukit-web-helm-textarea.mjs +32 -0
  115. package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -0
  116. package/fesm2022/yukit-web-helm-toggle-group.mjs +95 -0
  117. package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -0
  118. package/fesm2022/yukit-web-helm-toggle.mjs +61 -0
  119. package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -0
  120. package/fesm2022/yukit-web-helm-tooltip.mjs +57 -0
  121. package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -0
  122. package/fesm2022/yukit-web-helm-typography.mjs +205 -0
  123. package/fesm2022/yukit-web-helm-typography.mjs.map +1 -0
  124. package/fesm2022/yukit-web-helm-utils.mjs +272 -0
  125. package/fesm2022/yukit-web-helm-utils.mjs.map +1 -0
  126. package/fesm2022/yukit-web.mjs +3592 -0
  127. package/fesm2022/yukit-web.mjs.map +1 -0
  128. package/package.json +291 -0
  129. package/src/lib/theme/spartan-overwrites/accordion.css +4 -0
  130. package/src/lib/theme/theme.css +161 -0
  131. package/src/lib/theme/tokens/color.css +356 -0
  132. package/src/lib/theme/tokens/component-colors.css +167 -0
  133. package/src/lib/theme/tokens/radius.css +18 -0
  134. package/src/lib/theme/tokens/typography.css +201 -0
  135. package/types/yukit-web-helm-accordion.d.ts +32 -0
  136. package/types/yukit-web-helm-alert-dialog.d.ts +85 -0
  137. package/types/yukit-web-helm-alert.d.ts +37 -0
  138. package/types/yukit-web-helm-aspect-ratio.d.ts +16 -0
  139. package/types/yukit-web-helm-attachment.d.ts +80 -0
  140. package/types/yukit-web-helm-autocomplete.d.ts +91 -0
  141. package/types/yukit-web-helm-avatar.d.ts +45 -0
  142. package/types/yukit-web-helm-badge.d.ts +19 -0
  143. package/types/yukit-web-helm-breadcrumb.d.ts +52 -0
  144. package/types/yukit-web-helm-bubble.d.ts +46 -0
  145. package/types/yukit-web-helm-button-group.d.ts +25 -0
  146. package/types/yukit-web-helm-button.d.ts +33 -0
  147. package/types/yukit-web-helm-calendar.d.ts +89 -0
  148. package/types/yukit-web-helm-card.d.ts +49 -0
  149. package/types/yukit-web-helm-carousel.d.ts +79 -0
  150. package/types/yukit-web-helm-checkbox.d.ts +60 -0
  151. package/types/yukit-web-helm-collapsible.d.ts +22 -0
  152. package/types/yukit-web-helm-combobox.d.ts +150 -0
  153. package/types/yukit-web-helm-command.d.ts +84 -0
  154. package/types/yukit-web-helm-context-menu.d.ts +29 -0
  155. package/types/yukit-web-helm-date-picker.d.ts +574 -0
  156. package/types/yukit-web-helm-dialog.d.ts +90 -0
  157. package/types/yukit-web-helm-drawer.d.ts +71 -0
  158. package/types/yukit-web-helm-dropdown-menu.d.ts +171 -0
  159. package/types/yukit-web-helm-empty.d.ts +49 -0
  160. package/types/yukit-web-helm-field.d.ts +102 -0
  161. package/types/yukit-web-helm-hover-card.d.ts +31 -0
  162. package/types/yukit-web-helm-input-group.d.ts +47 -0
  163. package/types/yukit-web-helm-input-otp.d.ts +40 -0
  164. package/types/yukit-web-helm-input.d.ts +13 -0
  165. package/types/yukit-web-helm-item.d.ts +96 -0
  166. package/types/yukit-web-helm-kbd.d.ts +17 -0
  167. package/types/yukit-web-helm-label.d.ts +12 -0
  168. package/types/yukit-web-helm-marker.d.ts +31 -0
  169. package/types/yukit-web-helm-menubar.d.ts +35 -0
  170. package/types/yukit-web-helm-message.d.ts +44 -0
  171. package/types/yukit-web-helm-native-select.d.ts +65 -0
  172. package/types/yukit-web-helm-navigation-menu.d.ts +49 -0
  173. package/types/yukit-web-helm-pagination.d.ts +187 -0
  174. package/types/yukit-web-helm-popover.d.ts +49 -0
  175. package/types/yukit-web-helm-progress.d.ts +22 -0
  176. package/types/yukit-web-helm-radio-group.d.ts +66 -0
  177. package/types/yukit-web-helm-resizable.d.ts +27 -0
  178. package/types/yukit-web-helm-scroll-area.d.ts +11 -0
  179. package/types/yukit-web-helm-select.d.ts +114 -0
  180. package/types/yukit-web-helm-separator.d.ts +13 -0
  181. package/types/yukit-web-helm-sheet.d.ts +75 -0
  182. package/types/yukit-web-helm-sidebar.d.ts +232 -0
  183. package/types/yukit-web-helm-skeleton.d.ts +11 -0
  184. package/types/yukit-web-helm-slider.d.ts +14 -0
  185. package/types/yukit-web-helm-sonner.d.ts +52 -0
  186. package/types/yukit-web-helm-spinner.d.ts +18 -0
  187. package/types/yukit-web-helm-switch.d.ts +54 -0
  188. package/types/yukit-web-helm-table.d.ts +82 -0
  189. package/types/yukit-web-helm-tabs.d.ts +66 -0
  190. package/types/yukit-web-helm-textarea.d.ts +13 -0
  191. package/types/yukit-web-helm-toggle-group.d.ts +34 -0
  192. package/types/yukit-web-helm-toggle.d.ts +22 -0
  193. package/types/yukit-web-helm-tooltip.d.ts +17 -0
  194. package/types/yukit-web-helm-typography.d.ts +89 -0
  195. package/types/yukit-web-helm-utils.d.ts +44 -0
  196. package/types/yukit-web.d.ts +2426 -0
@@ -0,0 +1,141 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Directive, ChangeDetectionStrategy, Component, input, computed } from '@angular/core';
3
+ import * as i1 from '@spartan-ng/brain/accordion';
4
+ import { BrnAccordion, BrnAccordionContent, BrnAccordionItem, BrnAccordionImports } from '@spartan-ng/brain/accordion';
5
+ import { classes, hlm } from 'yukit-web/helm/utils';
6
+ import { NgIcon, provideIcons } from '@ng-icons/core';
7
+ import { lucideChevronUp, lucideChevronDown } from '@ng-icons/lucide';
8
+
9
+ class HlmAccordion {
10
+ constructor() {
11
+ classes(() => 'flex w-full flex-col');
12
+ }
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAccordion, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
14
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmAccordion, isStandalone: true, selector: "[hlmAccordion], hlm-accordion", host: { attributes: { "data-slot": "accordion" } }, hostDirectives: [{ directive: i1.BrnAccordion, inputs: ["type", "type", "orientation", "orientation"] }], ngImport: i0 }); }
15
+ }
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAccordion, decorators: [{
17
+ type: Directive,
18
+ args: [{
19
+ selector: '[hlmAccordion], hlm-accordion',
20
+ hostDirectives: [{ directive: BrnAccordion, inputs: ['type', 'orientation'] }],
21
+ host: {
22
+ 'data-slot': 'accordion',
23
+ },
24
+ }]
25
+ }], ctorParameters: () => [] });
26
+
27
+ class HlmAccordionContent {
28
+ constructor() {
29
+ classes(() => 'text-sm transition-all data-[state=closed]:h-0 data-[state=open]:h-(--brn-accordion-content-height)');
30
+ }
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAccordionContent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
32
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.8", type: HlmAccordionContent, isStandalone: true, selector: "hlm-accordion-content", host: { attributes: { "data-slot": "accordion-content" } }, hostDirectives: [{ directive: i1.BrnAccordionContent, inputs: ["style", "style"] }], ngImport: i0, template: `
33
+ <div
34
+ class="pt-0 pb-2.5 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4"
35
+ >
36
+ <ng-content />
37
+ </div>
38
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
39
+ }
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAccordionContent, decorators: [{
41
+ type: Component,
42
+ args: [{
43
+ selector: 'hlm-accordion-content',
44
+ changeDetection: ChangeDetectionStrategy.OnPush,
45
+ hostDirectives: [{ directive: BrnAccordionContent, inputs: ['style'] }],
46
+ host: {
47
+ 'data-slot': 'accordion-content',
48
+ },
49
+ template: `
50
+ <div
51
+ class="pt-0 pb-2.5 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4"
52
+ >
53
+ <ng-content />
54
+ </div>
55
+ `,
56
+ }]
57
+ }], ctorParameters: () => [] });
58
+
59
+ class HlmAccordionItem {
60
+ constructor() {
61
+ classes(() => 'not-last:border-b flex flex-col');
62
+ }
63
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAccordionItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
64
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmAccordionItem, isStandalone: true, selector: "[hlmAccordionItem],hlm-accordion-item", host: { attributes: { "data-slot": "accordion-item" } }, hostDirectives: [{ directive: i1.BrnAccordionItem, inputs: ["isOpened", "isOpened", "disabled", "disabled"], outputs: ["openedChange", "openedChange"] }], ngImport: i0 }); }
65
+ }
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAccordionItem, decorators: [{
67
+ type: Directive,
68
+ args: [{
69
+ selector: '[hlmAccordionItem],hlm-accordion-item',
70
+ hostDirectives: [
71
+ {
72
+ directive: BrnAccordionItem,
73
+ inputs: ['isOpened', 'disabled'],
74
+ outputs: ['openedChange'],
75
+ },
76
+ ],
77
+ host: {
78
+ 'data-slot': 'accordion-item',
79
+ },
80
+ }]
81
+ }], ctorParameters: () => [] });
82
+
83
+ class HlmAccordionTrigger {
84
+ constructor() {
85
+ this.triggerClass = input('', ...(ngDevMode ? [{ debugName: "triggerClass" }] : /* istanbul ignore next */ []));
86
+ this._computedTriggerClass = computed(() => hlm('focus-visible:ring-ring/50 focus-visible:border-ring focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground! rounded-lg py-2.5 text-start text-sm font-medium hover:underline focus-visible:ring-3 **:data-[slot=accordion-trigger-icon]:ms-auto **:data-[slot=accordion-trigger-icon]:text-[length:--spacing(4)] group/accordion-trigger relative flex flex-1 items-start justify-between border border-transparent transition-all outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50', this.triggerClass()), ...(ngDevMode ? [{ debugName: "_computedTriggerClass" }] : /* istanbul ignore next */ []));
87
+ }
88
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAccordionTrigger, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
89
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", type: HlmAccordionTrigger, isStandalone: true, selector: "hlm-accordion-trigger", inputs: { triggerClass: { classPropertyName: "triggerClass", publicName: "triggerClass", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideIcons({ lucideChevronDown, lucideChevronUp })], ngImport: i0, template: `
90
+ <h3 brnAccordionHeader class="flex">
91
+ <button brnAccordionTrigger data-slot="accordion-trigger" [class]="_computedTriggerClass()">
92
+ <ng-content />
93
+ <ng-icon
94
+ name="lucideChevronDown"
95
+ data-slot="accordion-trigger-icon"
96
+ class="pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"
97
+ />
98
+ <ng-icon
99
+ name="lucideChevronUp"
100
+ data-slot="accordion-trigger-icon"
101
+ class="pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:inline group-aria-[expanded=false]/accordion-trigger:hidden"
102
+ />
103
+ </button>
104
+ </h3>
105
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.BrnAccordionHeader, selector: "[brnAccordionHeader]" }, { kind: "directive", type: i1.BrnAccordionTrigger, selector: "button[brnAccordionTrigger]" }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
106
+ }
107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAccordionTrigger, decorators: [{
108
+ type: Component,
109
+ args: [{
110
+ selector: 'hlm-accordion-trigger',
111
+ imports: [BrnAccordionImports, NgIcon],
112
+ providers: [provideIcons({ lucideChevronDown, lucideChevronUp })],
113
+ changeDetection: ChangeDetectionStrategy.OnPush,
114
+ template: `
115
+ <h3 brnAccordionHeader class="flex">
116
+ <button brnAccordionTrigger data-slot="accordion-trigger" [class]="_computedTriggerClass()">
117
+ <ng-content />
118
+ <ng-icon
119
+ name="lucideChevronDown"
120
+ data-slot="accordion-trigger-icon"
121
+ class="pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"
122
+ />
123
+ <ng-icon
124
+ name="lucideChevronUp"
125
+ data-slot="accordion-trigger-icon"
126
+ class="pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:inline group-aria-[expanded=false]/accordion-trigger:hidden"
127
+ />
128
+ </button>
129
+ </h3>
130
+ `,
131
+ }]
132
+ }], propDecorators: { triggerClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerClass", required: false }] }] } });
133
+
134
+ const HlmAccordionImports = [HlmAccordion, HlmAccordionItem, HlmAccordionContent, HlmAccordionTrigger];
135
+
136
+ /**
137
+ * Generated bundle index. Do not edit.
138
+ */
139
+
140
+ export { HlmAccordion, HlmAccordionContent, HlmAccordionImports, HlmAccordionItem, HlmAccordionTrigger };
141
+ //# sourceMappingURL=yukit-web-helm-accordion.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yukit-web-helm-accordion.mjs","sources":["../../../projects/yukit-web/helm/accordion/src/lib/hlm-accordion.ts","../../../projects/yukit-web/helm/accordion/src/lib/hlm-accordion-content.ts","../../../projects/yukit-web/helm/accordion/src/lib/hlm-accordion-item.ts","../../../projects/yukit-web/helm/accordion/src/lib/hlm-accordion-trigger.ts","../../../projects/yukit-web/helm/accordion/src/index.ts","../../../projects/yukit-web/helm/accordion/src/yukit-web-helm-accordion.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { BrnAccordion } from '@spartan-ng/brain/accordion';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmAccordion], hlm-accordion',\n\thostDirectives: [{ directive: BrnAccordion, inputs: ['type', 'orientation'] }],\n\thost: {\n\t\t'data-slot': 'accordion',\n\t},\n})\nexport class HlmAccordion {\n\tconstructor() {\n\t\tclasses(() => 'flex w-full flex-col');\n\t}\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { BrnAccordionContent } from '@spartan-ng/brain/accordion';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-accordion-content',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thostDirectives: [{ directive: BrnAccordionContent, inputs: ['style'] }],\n\thost: {\n\t\t'data-slot': 'accordion-content',\n\t},\n\ttemplate: `\n\t\t<div\n\t\t\tclass=\"pt-0 pb-2.5 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4\"\n\t\t>\n\t\t\t<ng-content />\n\t\t</div>\n\t`,\n})\nexport class HlmAccordionContent {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'text-sm transition-all data-[state=closed]:h-0 data-[state=open]:h-(--brn-accordion-content-height)',\n\t\t);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnAccordionItem } from '@spartan-ng/brain/accordion';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmAccordionItem],hlm-accordion-item',\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: BrnAccordionItem,\n\t\t\tinputs: ['isOpened', 'disabled'],\n\t\t\toutputs: ['openedChange'],\n\t\t},\n\t],\n\thost: {\n\t\t'data-slot': 'accordion-item',\n\t},\n})\nexport class HlmAccordionItem {\n\tconstructor() {\n\t\tclasses(() => 'not-last:border-b flex flex-col');\n\t}\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideChevronDown, lucideChevronUp } from '@ng-icons/lucide';\nimport { BrnAccordionImports } from '@spartan-ng/brain/accordion';\nimport { hlm } from 'yukit-web/helm/utils';\nimport type { ClassValue } from 'clsx';\n\n@Component({\n\tselector: 'hlm-accordion-trigger',\n\timports: [BrnAccordionImports, NgIcon],\n\tproviders: [provideIcons({ lucideChevronDown, lucideChevronUp })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<h3 brnAccordionHeader class=\"flex\">\n\t\t\t<button brnAccordionTrigger data-slot=\"accordion-trigger\" [class]=\"_computedTriggerClass()\">\n\t\t\t\t<ng-content />\n\t\t\t\t<ng-icon\n\t\t\t\t\tname=\"lucideChevronDown\"\n\t\t\t\t\tdata-slot=\"accordion-trigger-icon\"\n\t\t\t\t\tclass=\"pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden\"\n\t\t\t\t/>\n\t\t\t\t<ng-icon\n\t\t\t\t\tname=\"lucideChevronUp\"\n\t\t\t\t\tdata-slot=\"accordion-trigger-icon\"\n\t\t\t\t\tclass=\"pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:inline group-aria-[expanded=false]/accordion-trigger:hidden\"\n\t\t\t\t/>\n\t\t\t</button>\n\t\t</h3>\n\t`,\n})\nexport class HlmAccordionTrigger {\n\tpublic readonly triggerClass = input<ClassValue>('');\n\n\tprotected readonly _computedTriggerClass = computed(() =>\n\t\thlm(\n\t\t\t'focus-visible:ring-ring/50 focus-visible:border-ring focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground! rounded-lg py-2.5 text-start text-sm font-medium hover:underline focus-visible:ring-3 **:data-[slot=accordion-trigger-icon]:ms-auto **:data-[slot=accordion-trigger-icon]:text-[length:--spacing(4)] group/accordion-trigger relative flex flex-1 items-start justify-between border border-transparent transition-all outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50',\n\t\t\tthis.triggerClass(),\n\t\t),\n\t);\n}\n","import { HlmAccordion } from './lib/hlm-accordion';\nimport { HlmAccordionContent } from './lib/hlm-accordion-content';\nimport { HlmAccordionItem } from './lib/hlm-accordion-item';\nimport { HlmAccordionTrigger } from './lib/hlm-accordion-trigger';\n\nexport * from './lib/hlm-accordion';\nexport * from './lib/hlm-accordion-content';\nexport * from './lib/hlm-accordion-item';\nexport * from './lib/hlm-accordion-trigger';\n\nexport const HlmAccordionImports = [HlmAccordion, HlmAccordionItem, HlmAccordionContent, HlmAccordionTrigger] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAWa,YAAY,CAAA;AACxB,IAAA,WAAA,GAAA;AACC,QAAA,OAAO,CAAC,MAAM,sBAAsB,CAAC;IACtC;8GAHY,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,+BAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,WAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,YAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,aAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAPxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,+BAA+B;AACzC,oBAAA,cAAc,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,CAAC;AAC9E,oBAAA,IAAI,EAAE;AACL,wBAAA,WAAW,EAAE,WAAW;AACxB,qBAAA;AACD,iBAAA;;;MCSY,mBAAmB,CAAA;AAC/B,IAAA,WAAA,GAAA;AACC,QAAA,OAAO,CACN,MACC,qGAAqG,CACtG;IACF;8GANY,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAA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AA,EApBpB,CAAC,YAAY,CAAC,EAAE,iBAAiB,EAAE,eAAe,EAAE,CAAC,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAEvD;;;;;;;;;;;;;;;;AAgBT,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAnB8B,MAAM,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,KAAA,EAAA,MAAA,EAAA,aAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAqBzB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAvB/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,OAAO,EAAE,CAAC,mBAAmB,EAAE,MAAM,CAAC;oBACtC,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,iBAAiB,EAAE,eAAe,EAAE,CAAC,CAAC;oBACjE,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;AAgBT,CAAA,CAAA;AACD,iBAAA;;;ACnBM,MAAM,mBAAmB,GAAG,CAAC,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,mBAAmB;;ACV5G;;AAEG;;;;"}
@@ -0,0 +1,250 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, computed, effect, untracked, Directive, forwardRef, ChangeDetectionStrategy, Component, signal } from '@angular/core';
3
+ import * as i1 from '@spartan-ng/brain/alert-dialog';
4
+ import { BrnAlertDialogOverlay, BrnAlertDialog, BRN_ALERT_DIALOG_DEFAULT_OPTIONS, BrnAlertDialogDescription, BrnAlertDialogContent, BrnAlertDialogTitle, BrnAlertDialogTrigger } from '@spartan-ng/brain/alert-dialog';
5
+ import * as i1$2 from '@spartan-ng/brain/dialog';
6
+ import { BrnDialog, provideBrnDialogDefaultOptions, BrnDialogClose } from '@spartan-ng/brain/dialog';
7
+ import { injectCustomClassSettable, injectExposesStateProvider } from '@spartan-ng/brain/core';
8
+ import { hlm, classes } from 'yukit-web/helm/utils';
9
+ import * as i1$1 from 'yukit-web/helm/button';
10
+ import { HlmButton, provideBrnButtonConfig } from 'yukit-web/helm/button';
11
+
12
+ class HlmAlertDialogOverlay {
13
+ constructor() {
14
+ this._classSettable = injectCustomClassSettable({ optional: true, host: true });
15
+ this.userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
16
+ this._computedClass = computed(() => hlm('data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 isolate bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs', this.userClass()), ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
17
+ effect(() => {
18
+ const classValue = this._computedClass();
19
+ untracked(() => this._classSettable?.setClassToCustomElement(classValue));
20
+ });
21
+ }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogOverlay, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
23
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.8", type: HlmAlertDialogOverlay, isStandalone: true, selector: "[hlmAlertDialogOverlay],hlm-alert-dialog-overlay", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, hostDirectives: [{ directive: i1.BrnAlertDialogOverlay }], ngImport: i0 }); }
24
+ }
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogOverlay, decorators: [{
26
+ type: Directive,
27
+ args: [{
28
+ selector: '[hlmAlertDialogOverlay],hlm-alert-dialog-overlay',
29
+ hostDirectives: [BrnAlertDialogOverlay],
30
+ }]
31
+ }], ctorParameters: () => [], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
32
+
33
+ class HlmAlertDialog extends BrnAlertDialog {
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialog, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
35
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.8", type: HlmAlertDialog, isStandalone: true, selector: "hlm-alert-dialog", providers: [
36
+ {
37
+ provide: BrnDialog,
38
+ useExisting: forwardRef(() => HlmAlertDialog),
39
+ },
40
+ provideBrnDialogDefaultOptions({
41
+ ...BRN_ALERT_DIALOG_DEFAULT_OPTIONS,
42
+ }),
43
+ ], exportAs: ["hlmAlertDialog"], usesInheritance: true, ngImport: i0, template: `
44
+ <hlm-alert-dialog-overlay />
45
+ <ng-content />
46
+ `, isInline: true, dependencies: [{ kind: "directive", type: HlmAlertDialogOverlay, selector: "[hlmAlertDialogOverlay],hlm-alert-dialog-overlay", inputs: ["class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
47
+ }
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialog, decorators: [{
49
+ type: Component,
50
+ args: [{
51
+ selector: 'hlm-alert-dialog',
52
+ exportAs: 'hlmAlertDialog',
53
+ imports: [HlmAlertDialogOverlay],
54
+ providers: [
55
+ {
56
+ provide: BrnDialog,
57
+ useExisting: forwardRef(() => HlmAlertDialog),
58
+ },
59
+ provideBrnDialogDefaultOptions({
60
+ ...BRN_ALERT_DIALOG_DEFAULT_OPTIONS,
61
+ }),
62
+ ],
63
+ changeDetection: ChangeDetectionStrategy.OnPush,
64
+ template: `
65
+ <hlm-alert-dialog-overlay />
66
+ <ng-content />
67
+ `,
68
+ }]
69
+ }] });
70
+
71
+ class HlmAlertDialogAction {
72
+ constructor() {
73
+ this.type = input('button', ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
74
+ }
75
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogAction, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
76
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.8", type: HlmAlertDialogAction, isStandalone: true, selector: "button[hlmAlertDialogAction]", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "alert-dialog-action" }, properties: { "type": "type()" } }, hostDirectives: [{ directive: i1$1.HlmButton, inputs: ["variant", "variant", "size", "size"] }], ngImport: i0 }); }
77
+ }
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogAction, decorators: [{
79
+ type: Directive,
80
+ args: [{
81
+ selector: 'button[hlmAlertDialogAction]',
82
+ hostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],
83
+ host: { 'data-slot': 'alert-dialog-action', '[type]': 'type()' },
84
+ }]
85
+ }], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
86
+
87
+ class HlmAlertDialogCancel {
88
+ constructor() {
89
+ this.type = input('button', ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
90
+ }
91
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogCancel, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
92
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.8", type: HlmAlertDialogCancel, isStandalone: true, selector: "button[hlmAlertDialogCancel]", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "alert-dialog-cancel" }, properties: { "type": "type()" } }, providers: [provideBrnButtonConfig({ variant: 'outline' })], hostDirectives: [{ directive: i1$2.BrnDialogClose }, { directive: i1$1.HlmButton, inputs: ["variant", "variant", "size", "size"] }], ngImport: i0 }); }
93
+ }
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogCancel, decorators: [{
95
+ type: Directive,
96
+ args: [{
97
+ selector: 'button[hlmAlertDialogCancel]',
98
+ providers: [provideBrnButtonConfig({ variant: 'outline' })],
99
+ hostDirectives: [BrnDialogClose, { directive: HlmButton, inputs: ['variant', 'size'] }],
100
+ host: { 'data-slot': 'alert-dialog-cancel', '[type]': 'type()' },
101
+ }]
102
+ }], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
103
+
104
+ class HlmAlertDialogContent {
105
+ constructor() {
106
+ this._stateProvider = injectExposesStateProvider({ optional: true, host: true });
107
+ this.state = this._stateProvider?.state ?? signal('closed');
108
+ this.size = input('default', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
109
+ classes(() => 'data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-popover text-popover-foreground ring-foreground/10 gap-4 rounded-xl p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm group/alert-dialog-content grid w-full outline-none');
110
+ }
111
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
112
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.8", type: HlmAlertDialogContent, isStandalone: true, selector: "[hlmAlertDialogContent],hlm-alert-dialog-content", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "alert-dialog-content" }, properties: { "attr.data-state": "state()", "attr.data-size": "size()" } }, ngImport: i0 }); }
113
+ }
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogContent, decorators: [{
115
+ type: Directive,
116
+ args: [{
117
+ selector: '[hlmAlertDialogContent],hlm-alert-dialog-content',
118
+ host: {
119
+ 'data-slot': 'alert-dialog-content',
120
+ '[attr.data-state]': 'state()',
121
+ '[attr.data-size]': 'size()',
122
+ },
123
+ }]
124
+ }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
125
+
126
+ class HlmAlertDialogDescription {
127
+ constructor() {
128
+ classes(() => 'text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3');
129
+ }
130
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
131
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmAlertDialogDescription, isStandalone: true, selector: "[hlmAlertDialogDescription]", host: { attributes: { "data-slot": "alert-dialog-description" } }, hostDirectives: [{ directive: i1.BrnAlertDialogDescription }], ngImport: i0 }); }
132
+ }
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogDescription, decorators: [{
134
+ type: Directive,
135
+ args: [{
136
+ selector: '[hlmAlertDialogDescription]',
137
+ hostDirectives: [BrnAlertDialogDescription],
138
+ host: { 'data-slot': 'alert-dialog-description' },
139
+ }]
140
+ }], ctorParameters: () => [] });
141
+
142
+ class HlmAlertDialogFooter {
143
+ constructor() {
144
+ classes(() => 'bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end');
145
+ }
146
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
147
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmAlertDialogFooter, isStandalone: true, selector: "[hlmAlertDialogFooter],hlm-alert-dialog-footer", host: { attributes: { "data-slot": "alert-dialog-footer" } }, ngImport: i0 }); }
148
+ }
149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogFooter, decorators: [{
150
+ type: Directive,
151
+ args: [{
152
+ selector: '[hlmAlertDialogFooter],hlm-alert-dialog-footer',
153
+ host: { 'data-slot': 'alert-dialog-footer' },
154
+ }]
155
+ }], ctorParameters: () => [] });
156
+
157
+ class HlmAlertDialogHeader {
158
+ constructor() {
159
+ classes(() => 'grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]');
160
+ }
161
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
162
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmAlertDialogHeader, isStandalone: true, selector: "[hlmAlertDialogHeader],hlm-alert-dialog-header", host: { attributes: { "data-slot": "alert-dialog-header" } }, ngImport: i0 }); }
163
+ }
164
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogHeader, decorators: [{
165
+ type: Directive,
166
+ args: [{
167
+ selector: '[hlmAlertDialogHeader],hlm-alert-dialog-header',
168
+ host: { 'data-slot': 'alert-dialog-header' },
169
+ }]
170
+ }], ctorParameters: () => [] });
171
+
172
+ class HlmAlertDialogMedia {
173
+ constructor() {
174
+ classes(() => "bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[ng-icon:not([class*='text-'])]:text-[length:--spacing(6)]");
175
+ }
176
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogMedia, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
177
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmAlertDialogMedia, isStandalone: true, selector: "[hlmAlertDialogMedia],hlm-alert-dialog-media", host: { attributes: { "data-slot": "alert-dialog-media" } }, ngImport: i0 }); }
178
+ }
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogMedia, decorators: [{
180
+ type: Directive,
181
+ args: [{
182
+ selector: '[hlmAlertDialogMedia],hlm-alert-dialog-media',
183
+ host: { 'data-slot': 'alert-dialog-media' },
184
+ }]
185
+ }], ctorParameters: () => [] });
186
+
187
+ class HlmAlertDialogPortal {
188
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
189
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmAlertDialogPortal, isStandalone: true, selector: "[hlmAlertDialogPortal]", hostDirectives: [{ directive: i1.BrnAlertDialogContent, inputs: ["context", "context", "class", "class"] }], ngImport: i0 }); }
190
+ }
191
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogPortal, decorators: [{
192
+ type: Directive,
193
+ args: [{
194
+ selector: '[hlmAlertDialogPortal]',
195
+ hostDirectives: [{ directive: BrnAlertDialogContent, inputs: ['context', 'class'] }],
196
+ }]
197
+ }] });
198
+
199
+ class HlmAlertDialogTitle {
200
+ constructor() {
201
+ classes(() => 'text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2');
202
+ }
203
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
204
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmAlertDialogTitle, isStandalone: true, selector: "[hlmAlertDialogTitle]", host: { attributes: { "data-slot": "alert-dialog-title" } }, hostDirectives: [{ directive: i1.BrnAlertDialogTitle }], ngImport: i0 }); }
205
+ }
206
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogTitle, decorators: [{
207
+ type: Directive,
208
+ args: [{
209
+ selector: '[hlmAlertDialogTitle]',
210
+ hostDirectives: [BrnAlertDialogTitle],
211
+ host: { 'data-slot': 'alert-dialog-title' },
212
+ }]
213
+ }], ctorParameters: () => [] });
214
+
215
+ class HlmAlertDialogTrigger {
216
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
217
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmAlertDialogTrigger, isStandalone: true, selector: "button[hlmAlertDialogTrigger],button[hlmAlertDialogTriggerFor]", host: { attributes: { "data-slot": "alert-dialog-trigger" } }, hostDirectives: [{ directive: i1.BrnAlertDialogTrigger, inputs: ["id", "id", "brnAlertDialogTriggerFor", "hlmAlertDialogTriggerFor", "type", "type"] }], ngImport: i0 }); }
218
+ }
219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDialogTrigger, decorators: [{
220
+ type: Directive,
221
+ args: [{
222
+ selector: 'button[hlmAlertDialogTrigger],button[hlmAlertDialogTriggerFor]',
223
+ hostDirectives: [
224
+ { directive: BrnAlertDialogTrigger, inputs: ['id', 'brnAlertDialogTriggerFor: hlmAlertDialogTriggerFor', 'type'] },
225
+ ],
226
+ host: { 'data-slot': 'alert-dialog-trigger' },
227
+ }]
228
+ }] });
229
+
230
+ const HlmAlertDialogImports = [
231
+ HlmAlertDialog,
232
+ HlmAlertDialogAction,
233
+ HlmAlertDialogCancel,
234
+ HlmAlertDialogContent,
235
+ HlmAlertDialogDescription,
236
+ HlmAlertDialogFooter,
237
+ HlmAlertDialogHeader,
238
+ HlmAlertDialogMedia,
239
+ HlmAlertDialogOverlay,
240
+ HlmAlertDialogPortal,
241
+ HlmAlertDialogTitle,
242
+ HlmAlertDialogTrigger,
243
+ ];
244
+
245
+ /**
246
+ * Generated bundle index. Do not edit.
247
+ */
248
+
249
+ export { HlmAlertDialog, HlmAlertDialogAction, HlmAlertDialogCancel, HlmAlertDialogContent, HlmAlertDialogDescription, HlmAlertDialogFooter, HlmAlertDialogHeader, HlmAlertDialogImports, HlmAlertDialogMedia, HlmAlertDialogOverlay, HlmAlertDialogPortal, HlmAlertDialogTitle, HlmAlertDialogTrigger };
250
+ //# sourceMappingURL=yukit-web-helm-alert-dialog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yukit-web-helm-alert-dialog.mjs","sources":["../../../projects/yukit-web/helm/alert-dialog/src/lib/hlm-alert-dialog-overlay.ts","../../../projects/yukit-web/helm/alert-dialog/src/lib/hlm-alert-dialog.ts","../../../projects/yukit-web/helm/alert-dialog/src/lib/hlm-alert-dialog-action.ts","../../../projects/yukit-web/helm/alert-dialog/src/lib/hlm-alert-dialog-cancel.ts","../../../projects/yukit-web/helm/alert-dialog/src/lib/hlm-alert-dialog-content.ts","../../../projects/yukit-web/helm/alert-dialog/src/lib/hlm-alert-dialog-description.ts","../../../projects/yukit-web/helm/alert-dialog/src/lib/hlm-alert-dialog-footer.ts","../../../projects/yukit-web/helm/alert-dialog/src/lib/hlm-alert-dialog-header.ts","../../../projects/yukit-web/helm/alert-dialog/src/lib/hlm-alert-dialog-media.ts","../../../projects/yukit-web/helm/alert-dialog/src/lib/hlm-alert-dialog-portal.ts","../../../projects/yukit-web/helm/alert-dialog/src/lib/hlm-alert-dialog-title.ts","../../../projects/yukit-web/helm/alert-dialog/src/lib/hlm-alert-dialog-trigger.ts","../../../projects/yukit-web/helm/alert-dialog/src/index.ts","../../../projects/yukit-web/helm/alert-dialog/src/yukit-web-helm-alert-dialog.ts"],"sourcesContent":["import { Directive, computed, effect, input, untracked } from '@angular/core';\nimport { BrnAlertDialogOverlay } from '@spartan-ng/brain/alert-dialog';\nimport { injectCustomClassSettable } from '@spartan-ng/brain/core';\nimport { hlm } from 'yukit-web/helm/utils';\nimport type { ClassValue } from 'clsx';\n\n@Directive({\n\tselector: '[hlmAlertDialogOverlay],hlm-alert-dialog-overlay',\n\thostDirectives: [BrnAlertDialogOverlay],\n})\nexport class HlmAlertDialogOverlay {\n\tprivate readonly _classSettable = injectCustomClassSettable({ optional: true, host: true });\n\n\tpublic readonly userClass = input<ClassValue>('', { alias: 'class' });\n\tprotected readonly _computedClass = computed(() => hlm('data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 isolate bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs', this.userClass()));\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst classValue = this._computedClass();\n\t\t\tuntracked(() => this._classSettable?.setClassToCustomElement(classValue));\n\t\t});\n\t}\n}\n","import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';\nimport { BRN_ALERT_DIALOG_DEFAULT_OPTIONS, BrnAlertDialog } from '@spartan-ng/brain/alert-dialog';\nimport { BrnDialog, provideBrnDialogDefaultOptions } from '@spartan-ng/brain/dialog';\nimport { HlmAlertDialogOverlay } from './hlm-alert-dialog-overlay';\n\n@Component({\n\tselector: 'hlm-alert-dialog',\n\texportAs: 'hlmAlertDialog',\n\timports: [HlmAlertDialogOverlay],\n\tproviders: [\n\t\t{\n\t\t\tprovide: BrnDialog,\n\t\t\tuseExisting: forwardRef(() => HlmAlertDialog),\n\t\t},\n\t\tprovideBrnDialogDefaultOptions({\n\t\t\t...BRN_ALERT_DIALOG_DEFAULT_OPTIONS,\n\t\t}),\n\t],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<hlm-alert-dialog-overlay />\n\t\t<ng-content />\n\t`,\n})\nexport class HlmAlertDialog extends BrnAlertDialog {}\n","import { Directive, input } from '@angular/core';\nimport { HlmButton } from 'yukit-web/helm/button';\n\n@Directive({\n\tselector: 'button[hlmAlertDialogAction]',\n\thostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],\n\thost: { 'data-slot': 'alert-dialog-action', '[type]': 'type()' },\n})\nexport class HlmAlertDialogAction {\n\tpublic readonly type = input<'button' | 'submit' | 'reset'>('button');\n}\n","import { Directive, input } from '@angular/core';\nimport { BrnDialogClose } from '@spartan-ng/brain/dialog';\nimport { HlmButton, provideBrnButtonConfig } from 'yukit-web/helm/button';\n\n@Directive({\n\tselector: 'button[hlmAlertDialogCancel]',\n\tproviders: [provideBrnButtonConfig({ variant: 'outline' })],\n\thostDirectives: [BrnDialogClose, { directive: HlmButton, inputs: ['variant', 'size'] }],\n\thost: { 'data-slot': 'alert-dialog-cancel', '[type]': 'type()' },\n})\nexport class HlmAlertDialogCancel {\n\tpublic readonly type = input<'button' | 'submit' | 'reset'>('button');\n}\n","import { Directive, input, signal } from '@angular/core';\nimport { injectExposesStateProvider } from '@spartan-ng/brain/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmAlertDialogContent],hlm-alert-dialog-content',\n\thost: {\n\t\t'data-slot': 'alert-dialog-content',\n\t\t'[attr.data-state]': 'state()',\n\t\t'[attr.data-size]': 'size()',\n\t},\n})\nexport class HlmAlertDialogContent {\n\tprivate readonly _stateProvider = injectExposesStateProvider({ optional: true, host: true });\n\tpublic readonly state = this._stateProvider?.state ?? signal('closed');\n\n\tpublic readonly size = input<'sm' | 'default'>('default');\n\n\tconstructor() {\n\t\tclasses(() => 'data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-popover text-popover-foreground ring-foreground/10 gap-4 rounded-xl p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm group/alert-dialog-content grid w-full outline-none');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnAlertDialogDescription } from '@spartan-ng/brain/alert-dialog';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmAlertDialogDescription]',\n\thostDirectives: [BrnAlertDialogDescription],\n\thost: { 'data-slot': 'alert-dialog-description' },\n})\nexport class HlmAlertDialogDescription {\n\tconstructor() {\n\t\tclasses(() => 'text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmAlertDialogFooter],hlm-alert-dialog-footer',\n\thost: { 'data-slot': 'alert-dialog-footer' },\n})\nexport class HlmAlertDialogFooter {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end',\n\t\t);\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmAlertDialogHeader],hlm-alert-dialog-header',\n\thost: { 'data-slot': 'alert-dialog-header' },\n})\nexport class HlmAlertDialogHeader {\n\tconstructor() {\n\t\tclasses(() => 'grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmAlertDialogMedia],hlm-alert-dialog-media',\n\thost: { 'data-slot': 'alert-dialog-media' },\n})\nexport class HlmAlertDialogMedia {\n\tconstructor() {\n\t\tclasses(() => \"bg-muted mb-2 inline-flex size-10 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[ng-icon:not([class*='text-'])]:text-[length:--spacing(6)]\");\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnAlertDialogContent } from '@spartan-ng/brain/alert-dialog';\n\n@Directive({\n\tselector: '[hlmAlertDialogPortal]',\n\thostDirectives: [{ directive: BrnAlertDialogContent, inputs: ['context', 'class'] }],\n})\nexport class HlmAlertDialogPortal {}\n","import { Directive } from '@angular/core';\nimport { BrnAlertDialogTitle } from '@spartan-ng/brain/alert-dialog';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmAlertDialogTitle]',\n\thostDirectives: [BrnAlertDialogTitle],\n\thost: { 'data-slot': 'alert-dialog-title' },\n})\nexport class HlmAlertDialogTitle {\n\tconstructor() {\n\t\tclasses(() => 'text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { BrnAlertDialogTrigger } from '@spartan-ng/brain/alert-dialog';\n\n@Directive({\n\tselector: 'button[hlmAlertDialogTrigger],button[hlmAlertDialogTriggerFor]',\n\thostDirectives: [\n\t\t{ directive: BrnAlertDialogTrigger, inputs: ['id', 'brnAlertDialogTriggerFor: hlmAlertDialogTriggerFor', 'type'] },\n\t],\n\thost: { 'data-slot': 'alert-dialog-trigger' },\n})\nexport class HlmAlertDialogTrigger {}\n","import { HlmAlertDialog } from './lib/hlm-alert-dialog';\nimport { HlmAlertDialogAction } from './lib/hlm-alert-dialog-action';\nimport { HlmAlertDialogCancel } from './lib/hlm-alert-dialog-cancel';\nimport { HlmAlertDialogContent } from './lib/hlm-alert-dialog-content';\nimport { HlmAlertDialogDescription } from './lib/hlm-alert-dialog-description';\nimport { HlmAlertDialogFooter } from './lib/hlm-alert-dialog-footer';\nimport { HlmAlertDialogHeader } from './lib/hlm-alert-dialog-header';\nimport { HlmAlertDialogMedia } from './lib/hlm-alert-dialog-media';\nimport { HlmAlertDialogOverlay } from './lib/hlm-alert-dialog-overlay';\nimport { HlmAlertDialogPortal } from './lib/hlm-alert-dialog-portal';\nimport { HlmAlertDialogTitle } from './lib/hlm-alert-dialog-title';\nimport { HlmAlertDialogTrigger } from './lib/hlm-alert-dialog-trigger';\n\nexport * from './lib/hlm-alert-dialog';\nexport * from './lib/hlm-alert-dialog-action';\nexport * from './lib/hlm-alert-dialog-cancel';\nexport * from './lib/hlm-alert-dialog-content';\nexport * from './lib/hlm-alert-dialog-description';\nexport * from './lib/hlm-alert-dialog-footer';\nexport * from './lib/hlm-alert-dialog-header';\nexport * from './lib/hlm-alert-dialog-media';\nexport * from './lib/hlm-alert-dialog-overlay';\nexport * from './lib/hlm-alert-dialog-portal';\nexport * from './lib/hlm-alert-dialog-title';\nexport * from './lib/hlm-alert-dialog-trigger';\n\nexport const HlmAlertDialogImports = [\n\tHlmAlertDialog,\n\tHlmAlertDialogAction,\n\tHlmAlertDialogCancel,\n\tHlmAlertDialogContent,\n\tHlmAlertDialogDescription,\n\tHlmAlertDialogFooter,\n\tHlmAlertDialogHeader,\n\tHlmAlertDialogMedia,\n\tHlmAlertDialogOverlay,\n\tHlmAlertDialogPortal,\n\tHlmAlertDialogTitle,\n\tHlmAlertDialogTrigger,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;MAUa,qBAAqB,CAAA;AAMjC,IAAA,WAAA,GAAA;AALiB,QAAA,IAAA,CAAA,cAAc,GAAG,yBAAyB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAE3E,IAAA,CAAA,SAAS,GAAG,KAAK,CAAa,EAAE,iFAAI,KAAK,EAAE,OAAO,EAAA,CAAG;AAClD,QAAA,IAAA,CAAA,cAAc,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,oKAAoK,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,qFAAC;QAG9O,MAAM,CAAC,MAAK;AACX,YAAA,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,EAAE;AACxC,YAAA,SAAS,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,uBAAuB,C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AAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,gEAAgE;AAC1E,oBAAA,cAAc,EAAE;AACf,wBAAA,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,EAAE,CAAC,IAAI,EAAE,oDAAoD,EAAE,MAAM,CAAC,EAAE;AAClH,qBAAA;AACD,oBAAA,IAAI,EAAE,EAAE,WAAW,EAAE,sBAAsB,EAAE;AAC7C,iBAAA;;;ACiBM,MAAM,qBAAqB,GAAG;IACpC,cAAc;IACd,oBAAoB;IACpB,oBAAoB;IACpB,qBAAqB;IACrB,yBAAyB;IACzB,oBAAoB;IACpB,oBAAoB;IACpB,mBAAmB;IACnB,qBAAqB;IACrB,oBAAoB;IACpB,mBAAmB;IACnB,qBAAqB;;;ACtCtB;;AAEG;;;;"}
@@ -0,0 +1,94 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, Directive } from '@angular/core';
3
+ import { classes } from 'yukit-web/helm/utils';
4
+ import { cva } from 'class-variance-authority';
5
+
6
+ const alertVariants = cva("grid gap-0.5 rounded-lg border px-2.5 py-2 text-start text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pe-18 has-[>ng-icon]:grid-cols-[auto_1fr] has-[>ng-icon]:gap-x-2 *:[ng-icon]:row-span-2 *:[ng-icon]:translate-y-0.5 *:[ng-icon]:text-current *:[ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] group/alert relative w-full", {
7
+ variants: {
8
+ variant: {
9
+ default: 'bg-card text-card-foreground',
10
+ destructive: 'text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[ng-icon]:text-current',
11
+ },
12
+ },
13
+ defaultVariants: {
14
+ variant: 'default',
15
+ },
16
+ });
17
+ class HlmAlert {
18
+ constructor() {
19
+ this.variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
20
+ classes(() => alertVariants({ variant: this.variant() }));
21
+ }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlert, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
23
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.8", type: HlmAlert, isStandalone: true, selector: "hlm-alert,[hlmAlert]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "alert", "role": "alert" } }, ngImport: i0 }); }
24
+ }
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlert, decorators: [{
26
+ type: Directive,
27
+ args: [{
28
+ selector: 'hlm-alert,[hlmAlert]',
29
+ host: {
30
+ 'data-slot': 'alert',
31
+ role: 'alert',
32
+ },
33
+ }]
34
+ }], ctorParameters: () => [], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
35
+
36
+ class HlmAlertAction {
37
+ constructor() {
38
+ classes(() => 'absolute end-2 top-2');
39
+ }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertAction, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
41
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmAlertAction, isStandalone: true, selector: "[hlmAlertAction]", host: { attributes: { "data-slot": "alert-action" } }, ngImport: i0 }); }
42
+ }
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertAction, decorators: [{
44
+ type: Directive,
45
+ args: [{
46
+ selector: '[hlmAlertAction]',
47
+ host: {
48
+ 'data-slot': 'alert-action',
49
+ },
50
+ }]
51
+ }], ctorParameters: () => [] });
52
+
53
+ class HlmAlertDescription {
54
+ constructor() {
55
+ classes(() => 'text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3');
56
+ }
57
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
58
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmAlertDescription, isStandalone: true, selector: "[hlmAlertDescription]", host: { attributes: { "data-slot": "alert-description" } }, ngImport: i0 }); }
59
+ }
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertDescription, decorators: [{
61
+ type: Directive,
62
+ args: [{
63
+ selector: '[hlmAlertDescription]',
64
+ host: {
65
+ 'data-slot': 'alert-description',
66
+ },
67
+ }]
68
+ }], ctorParameters: () => [] });
69
+
70
+ class HlmAlertTitle {
71
+ constructor() {
72
+ classes(() => 'font-medium group-has-[>ng-icon]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3');
73
+ }
74
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
75
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.8", type: HlmAlertTitle, isStandalone: true, selector: "[hlmAlertTitle]", host: { attributes: { "data-slot": "alert-title" } }, ngImport: i0 }); }
76
+ }
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: HlmAlertTitle, decorators: [{
78
+ type: Directive,
79
+ args: [{
80
+ selector: '[hlmAlertTitle]',
81
+ host: {
82
+ 'data-slot': 'alert-title',
83
+ },
84
+ }]
85
+ }], ctorParameters: () => [] });
86
+
87
+ const HlmAlertImports = [HlmAlert, HlmAlertAction, HlmAlertDescription, HlmAlertTitle];
88
+
89
+ /**
90
+ * Generated bundle index. Do not edit.
91
+ */
92
+
93
+ export { HlmAlert, HlmAlertAction, HlmAlertDescription, HlmAlertImports, HlmAlertTitle };
94
+ //# sourceMappingURL=yukit-web-helm-alert.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yukit-web-helm-alert.mjs","sources":["../../../projects/yukit-web/helm/alert/src/lib/hlm-alert.ts","../../../projects/yukit-web/helm/alert/src/lib/hlm-alert-action.ts","../../../projects/yukit-web/helm/alert/src/lib/hlm-alert-description.ts","../../../projects/yukit-web/helm/alert/src/lib/hlm-alert-title.ts","../../../projects/yukit-web/helm/alert/src/index.ts","../../../projects/yukit-web/helm/alert/src/yukit-web-helm-alert.ts"],"sourcesContent":["import { Directive, input } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nconst alertVariants = cva(\"grid gap-0.5 rounded-lg border px-2.5 py-2 text-start text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pe-18 has-[>ng-icon]:grid-cols-[auto_1fr] has-[>ng-icon]:gap-x-2 *:[ng-icon]:row-span-2 *:[ng-icon]:translate-y-0.5 *:[ng-icon]:text-current *:[ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] group/alert relative w-full\", {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: 'bg-card text-card-foreground',\n\t\t\tdestructive: 'text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[ng-icon]:text-current',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'default',\n\t},\n});\n\nexport type AlertVariants = VariantProps<typeof alertVariants>;\n\n@Directive({\n\tselector: 'hlm-alert,[hlmAlert]',\n\thost: {\n\t\t'data-slot': 'alert',\n\t\trole: 'alert',\n\t},\n})\nexport class HlmAlert {\n\tpublic readonly variant = input<AlertVariants['variant']>('default');\n\n\tconstructor() {\n\t\tclasses(() => alertVariants({ variant: this.variant() }));\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmAlertAction]',\n\thost: {\n\t\t'data-slot': 'alert-action',\n\t},\n})\nexport class HlmAlertAction {\n\tconstructor() {\n\t\tclasses(() => 'absolute end-2 top-2');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmAlertDescription]',\n\thost: {\n\t\t'data-slot': 'alert-description',\n\t},\n})\nexport class HlmAlertDescription {\n\tconstructor() {\n\t\tclasses(() => 'text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmAlertTitle]',\n\thost: {\n\t\t'data-slot': 'alert-title',\n\t},\n})\nexport class HlmAlertTitle {\n\tconstructor() {\n\t\tclasses(() => 'font-medium group-has-[>ng-icon]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3');\n\t}\n}\n","import { HlmAlert } from './lib/hlm-alert';\nimport { HlmAlertAction } from './lib/hlm-alert-action';\nimport { HlmAlertDescription } from './lib/hlm-alert-description';\nimport { HlmAlertTitle } from './lib/hlm-alert-title';\n\nexport * from './lib/hlm-alert';\nexport * from './lib/hlm-alert-action';\nexport * from './lib/hlm-alert-description';\nexport * from './lib/hlm-alert-title';\n\nexport const HlmAlertImports = [HlmAlert, HlmAlertAction, HlmAlertDescription, HlmAlertTitle] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA,MAAM,aAAa,GAAG,GAAG,CAAC,wWAAwW,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