@egose/shadcn-theme-ng-tw 0.0.27 → 0.1.0

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 (316) hide show
  1. package/README.md +130 -13
  2. package/accordion/README.md +3 -0
  3. package/accordion/fesm2022/accordion.mjs +160 -0
  4. package/accordion/package.json +25 -0
  5. package/accordion/types/accordion.d.ts +49 -0
  6. package/alert/README.md +2 -63
  7. package/alert/fesm2022/alert.mjs +31 -26
  8. package/alert/package.json +25 -0
  9. package/alert-dialog/README.md +11 -0
  10. package/alert-dialog/fesm2022/alert-dialog.mjs +287 -0
  11. package/alert-dialog/package.json +25 -0
  12. package/alert-dialog/types/alert-dialog.d.ts +90 -0
  13. package/aspect-ratio/README.md +11 -0
  14. package/aspect-ratio/fesm2022/aspect-ratio.mjs +62 -0
  15. package/aspect-ratio/package.json +25 -0
  16. package/aspect-ratio/types/aspect-ratio.d.ts +21 -0
  17. package/autocomplete/README.md +3 -0
  18. package/autocomplete/fesm2022/autocomplete.mjs +409 -0
  19. package/autocomplete/package.json +24 -0
  20. package/autocomplete/types/autocomplete.d.ts +96 -0
  21. package/avatar/README.md +11 -0
  22. package/avatar/fesm2022/avatar.mjs +178 -0
  23. package/avatar/package.json +25 -0
  24. package/avatar/types/avatar.d.ts +50 -0
  25. package/badge/README.md +2 -63
  26. package/badge/fesm2022/badge.mjs +16 -10
  27. package/badge/package.json +25 -0
  28. package/basic-alert/README.md +2 -63
  29. package/basic-alert/fesm2022/basic-alert.mjs +12 -8
  30. package/basic-alert/package.json +24 -0
  31. package/basic-alert/{index.d.ts → types/basic-alert.d.ts} +1 -1
  32. package/breadcrumb/README.md +11 -0
  33. package/breadcrumb/fesm2022/breadcrumb.mjs +224 -0
  34. package/breadcrumb/package.json +25 -0
  35. package/breadcrumb/types/breadcrumb.d.ts +57 -0
  36. package/button/README.md +2 -63
  37. package/button/fesm2022/button.mjs +100 -26
  38. package/button/package.json +25 -0
  39. package/button/{index.d.ts → types/button.d.ts} +31 -10
  40. package/button-group/README.md +11 -0
  41. package/button-group/fesm2022/button-group.mjs +102 -0
  42. package/button-group/package.json +25 -0
  43. package/button-group/types/button-group.d.ts +30 -0
  44. package/calendar/README.md +2 -63
  45. package/calendar/fesm2022/calendar.mjs +869 -547
  46. package/calendar/package.json +24 -0
  47. package/calendar/types/calendar.d.ts +94 -0
  48. package/card/README.md +11 -0
  49. package/card/fesm2022/card.mjs +169 -0
  50. package/card/package.json +25 -0
  51. package/card/types/card.d.ts +54 -0
  52. package/carousel/README.md +11 -0
  53. package/carousel/fesm2022/carousel.mjs +309 -0
  54. package/carousel/package.json +25 -0
  55. package/carousel/types/carousel.d.ts +84 -0
  56. package/checkbox/README.md +3 -0
  57. package/checkbox/fesm2022/checkbox.mjs +153 -0
  58. package/checkbox/package.json +24 -0
  59. package/checkbox/types/checkbox.d.ts +56 -0
  60. package/collapsible/README.md +11 -0
  61. package/collapsible/fesm2022/collapsible.mjs +77 -0
  62. package/collapsible/package.json +25 -0
  63. package/collapsible/types/collapsible.d.ts +27 -0
  64. package/combobox/README.md +11 -0
  65. package/combobox/fesm2022/combobox.mjs +683 -0
  66. package/combobox/package.json +25 -0
  67. package/combobox/types/combobox.d.ts +151 -0
  68. package/command/README.md +11 -0
  69. package/command/fesm2022/command.mjs +361 -0
  70. package/command/package.json +25 -0
  71. package/command/types/command.d.ts +89 -0
  72. package/confirmation-dialog/README.md +3 -0
  73. package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +105 -0
  74. package/confirmation-dialog/package.json +24 -0
  75. package/confirmation-dialog/types/confirmation-dialog.d.ts +28 -0
  76. package/context-menu/README.md +11 -0
  77. package/context-menu/fesm2022/context-menu.mjs +89 -0
  78. package/context-menu/package.json +25 -0
  79. package/context-menu/types/context-menu.d.ts +34 -0
  80. package/date-picker/README.md +2 -63
  81. package/date-picker/fesm2022/date-picker.mjs +1274 -308
  82. package/date-picker/package.json +24 -0
  83. package/date-picker/types/date-picker.d.ts +555 -0
  84. package/dialog/README.md +3 -0
  85. package/dialog/fesm2022/dialog.mjs +307 -0
  86. package/dialog/package.json +24 -0
  87. package/dialog/types/dialog.d.ts +95 -0
  88. package/drawer/README.md +11 -0
  89. package/drawer/fesm2022/drawer.mjs +271 -0
  90. package/drawer/package.json +25 -0
  91. package/drawer/types/drawer.d.ts +76 -0
  92. package/dropdown-menu/README.md +11 -0
  93. package/dropdown-menu/fesm2022/dropdown-menu.mjs +554 -0
  94. package/dropdown-menu/package.json +25 -0
  95. package/dropdown-menu/types/dropdown-menu.d.ts +180 -0
  96. package/empty/README.md +11 -0
  97. package/empty/fesm2022/empty.mjs +151 -0
  98. package/empty/package.json +25 -0
  99. package/empty/types/empty.d.ts +54 -0
  100. package/field/README.md +11 -0
  101. package/field/fesm2022/field.mjs +367 -0
  102. package/field/package.json +25 -0
  103. package/field/types/field.d.ts +107 -0
  104. package/form-checkbox/README.md +3 -0
  105. package/form-checkbox/fesm2022/form-checkbox.mjs +172 -0
  106. package/form-checkbox/package.json +24 -0
  107. package/form-checkbox/types/form-checkbox.d.ts +33 -0
  108. package/form-date-picker/README.md +2 -63
  109. package/form-date-picker/fesm2022/form-date-picker.mjs +95 -53
  110. package/form-date-picker/package.json +24 -0
  111. package/form-date-picker/{index.d.ts → types/form-date-picker.d.ts} +7 -1
  112. package/form-field/README.md +2 -63
  113. package/form-field/fesm2022/form-field.mjs +54 -28
  114. package/form-field/package.json +25 -0
  115. package/form-field/types/form-field.d.ts +46 -0
  116. package/form-field-simple/README.md +2 -63
  117. package/form-field-simple/fesm2022/form-field-simple.mjs +15 -10
  118. package/form-field-simple/package.json +24 -0
  119. package/form-searchable-multiselect/README.md +3 -0
  120. package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs +178 -0
  121. package/form-searchable-multiselect/package.json +24 -0
  122. package/form-searchable-multiselect/types/form-searchable-multiselect.d.ts +36 -0
  123. package/form-select/README.md +2 -63
  124. package/form-select/fesm2022/form-select.mjs +178 -84
  125. package/form-select/package.json +24 -0
  126. package/form-select/{index.d.ts → types/form-select.d.ts} +7 -1
  127. package/form-text-input/README.md +2 -63
  128. package/form-text-input/fesm2022/form-text-input.mjs +99 -82
  129. package/form-text-input/package.json +24 -0
  130. package/form-text-input/{index.d.ts → types/form-text-input.d.ts} +9 -12
  131. package/form-textarea/README.md +2 -63
  132. package/form-textarea/fesm2022/form-textarea.mjs +90 -47
  133. package/form-textarea/package.json +24 -0
  134. package/form-textarea/{index.d.ts → types/form-textarea.d.ts} +8 -1
  135. package/hover-card/README.md +11 -0
  136. package/hover-card/fesm2022/hover-card.mjs +123 -0
  137. package/hover-card/package.json +25 -0
  138. package/hover-card/types/hover-card.d.ts +36 -0
  139. package/icon/README.md +2 -63
  140. package/icon/fesm2022/icon.mjs +12 -10
  141. package/icon/package.json +25 -0
  142. package/input/README.md +2 -63
  143. package/input/fesm2022/input.mjs +25 -70
  144. package/input/package.json +25 -0
  145. package/input/types/input.d.ts +19 -0
  146. package/input-group/README.md +11 -0
  147. package/input-group/fesm2022/input-group.mjs +199 -0
  148. package/input-group/package.json +25 -0
  149. package/input-group/types/input-group.d.ts +52 -0
  150. package/input-otp/README.md +11 -0
  151. package/input-otp/fesm2022/input-otp.mjs +141 -0
  152. package/input-otp/package.json +25 -0
  153. package/input-otp/types/input-otp.d.ts +43 -0
  154. package/item/README.md +11 -0
  155. package/item/fesm2022/item.mjs +278 -0
  156. package/item/package.json +25 -0
  157. package/item/types/item.d.ts +101 -0
  158. package/kbd/README.md +11 -0
  159. package/kbd/fesm2022/kbd.mjs +61 -0
  160. package/kbd/package.json +25 -0
  161. package/kbd/types/kbd.d.ts +22 -0
  162. package/label/README.md +2 -63
  163. package/label/fesm2022/label.mjs +12 -11
  164. package/label/package.json +25 -0
  165. package/label/{index.d.ts → types/label.d.ts} +1 -1
  166. package/layout-simple/README.md +3 -0
  167. package/layout-simple/fesm2022/layout-simple.mjs +770 -0
  168. package/layout-simple/package.json +24 -0
  169. package/layout-simple/types/layout-simple.d.ts +167 -0
  170. package/menu/README.md +3 -0
  171. package/menu/fesm2022/menu.mjs +461 -0
  172. package/menu/package.json +24 -0
  173. package/menu/types/menu.d.ts +137 -0
  174. package/menubar/README.md +11 -0
  175. package/menubar/fesm2022/menubar.mjs +108 -0
  176. package/menubar/package.json +25 -0
  177. package/menubar/types/menubar.d.ts +40 -0
  178. package/native-select/README.md +11 -0
  179. package/native-select/fesm2022/native-select.mjs +207 -0
  180. package/native-select/package.json +25 -0
  181. package/native-select/types/native-select.d.ts +70 -0
  182. package/navigation-menu/README.md +11 -0
  183. package/navigation-menu/fesm2022/navigation-menu.mjs +206 -0
  184. package/navigation-menu/package.json +25 -0
  185. package/navigation-menu/types/navigation-menu.d.ts +54 -0
  186. package/package.json +284 -63
  187. package/pagination/README.md +11 -0
  188. package/pagination/fesm2022/pagination.mjs +808 -0
  189. package/pagination/package.json +25 -0
  190. package/pagination/types/pagination.d.ts +192 -0
  191. package/popover/README.md +2 -63
  192. package/popover/fesm2022/popover.mjs +124 -30
  193. package/popover/package.json +24 -0
  194. package/popover/types/popover.d.ts +54 -0
  195. package/progress/README.md +11 -0
  196. package/progress/fesm2022/progress.mjs +77 -0
  197. package/progress/package.json +25 -0
  198. package/progress/types/progress.d.ts +27 -0
  199. package/radio-group/README.md +3 -0
  200. package/radio-group/fesm2022/radio-group.mjs +207 -0
  201. package/radio-group/package.json +25 -0
  202. package/radio-group/types/radio-group.d.ts +71 -0
  203. package/resizable/README.md +11 -0
  204. package/resizable/fesm2022/resizable.mjs +111 -0
  205. package/resizable/package.json +25 -0
  206. package/resizable/types/resizable.d.ts +32 -0
  207. package/scroll-area/README.md +11 -0
  208. package/scroll-area/fesm2022/scroll-area.mjs +51 -0
  209. package/scroll-area/package.json +25 -0
  210. package/scroll-area/types/scroll-area.d.ts +16 -0
  211. package/searchable-multiselect/README.md +3 -0
  212. package/searchable-multiselect/fesm2022/searchable-multiselect.mjs +272 -0
  213. package/searchable-multiselect/package.json +24 -0
  214. package/searchable-multiselect/types/searchable-multiselect.d.ts +45 -0
  215. package/select/README.md +2 -63
  216. package/select/fesm2022/select.mjs +382 -192
  217. package/select/package.json +25 -0
  218. package/select/types/select.d.ts +121 -0
  219. package/separator/README.md +2 -63
  220. package/separator/fesm2022/separator.mjs +17 -15
  221. package/separator/package.json +24 -0
  222. package/separator/{index.d.ts → types/separator.d.ts} +4 -5
  223. package/sheet/README.md +2 -63
  224. package/sheet/fesm2022/sheet.mjs +51 -44
  225. package/sheet/package.json +24 -0
  226. package/sidebar/README.md +11 -0
  227. package/sidebar/fesm2022/sidebar.mjs +950 -0
  228. package/sidebar/package.json +25 -0
  229. package/sidebar/types/sidebar.d.ts +237 -0
  230. package/skeleton/README.md +11 -0
  231. package/skeleton/fesm2022/skeleton.mjs +44 -0
  232. package/skeleton/package.json +25 -0
  233. package/skeleton/types/skeleton.d.ts +16 -0
  234. package/slider/README.md +11 -0
  235. package/slider/fesm2022/slider.mjs +144 -0
  236. package/slider/package.json +25 -0
  237. package/slider/types/slider.d.ts +19 -0
  238. package/sonner/README.md +2 -63
  239. package/sonner/fesm2022/sonner.mjs +30 -35
  240. package/sonner/package.json +25 -0
  241. package/spinner/README.md +2 -63
  242. package/spinner/fesm2022/spinner.mjs +18 -14
  243. package/spinner/package.json +25 -0
  244. package/switch/README.md +2 -63
  245. package/switch/fesm2022/switch.mjs +29 -28
  246. package/switch/package.json +25 -0
  247. package/table/README.md +11 -0
  248. package/table/fesm2022/table.mjs +211 -0
  249. package/table/package.json +25 -0
  250. package/table/types/table.d.ts +87 -0
  251. package/tabs/README.md +3 -0
  252. package/tabs/fesm2022/tabs.mjs +286 -0
  253. package/tabs/package.json +25 -0
  254. package/tabs/types/tabs.d.ts +71 -0
  255. package/textarea/README.md +11 -0
  256. package/textarea/fesm2022/textarea.mjs +47 -0
  257. package/textarea/package.json +25 -0
  258. package/textarea/types/textarea.d.ts +18 -0
  259. package/toggle/README.md +11 -0
  260. package/toggle/fesm2022/toggle.mjs +78 -0
  261. package/toggle/package.json +25 -0
  262. package/toggle/types/toggle.d.ts +27 -0
  263. package/toggle-group/README.md +11 -0
  264. package/toggle-group/fesm2022/toggle-group.mjs +117 -0
  265. package/toggle-group/package.json +25 -0
  266. package/toggle-group/types/toggle-group.d.ts +45 -0
  267. package/tooltip/README.md +3 -0
  268. package/tooltip/fesm2022/tooltip.mjs +72 -0
  269. package/tooltip/package.json +25 -0
  270. package/tooltip/types/tooltip.d.ts +22 -0
  271. package/typography/README.md +11 -0
  272. package/typography/fesm2022/typography.mjs +242 -0
  273. package/typography/package.json +25 -0
  274. package/typography/types/typography.d.ts +94 -0
  275. package/utils/README.md +2 -63
  276. package/utils/fesm2022/utils.mjs +209 -2
  277. package/utils/package.json +25 -0
  278. package/utils/types/utils.d.ts +13 -0
  279. package/alert/fesm2022/alert.mjs.map +0 -1
  280. package/badge/fesm2022/badge.mjs.map +0 -1
  281. package/basic-alert/fesm2022/basic-alert.mjs.map +0 -1
  282. package/button/fesm2022/button.mjs.map +0 -1
  283. package/calendar/fesm2022/calendar.mjs.map +0 -1
  284. package/calendar/index.d.ts +0 -111
  285. package/date-picker/fesm2022/date-picker.mjs.map +0 -1
  286. package/date-picker/index.d.ts +0 -227
  287. package/form-date-picker/fesm2022/form-date-picker.mjs.map +0 -1
  288. package/form-field/fesm2022/form-field.mjs.map +0 -1
  289. package/form-field/index.d.ts +0 -37
  290. package/form-field-simple/fesm2022/form-field-simple.mjs.map +0 -1
  291. package/form-select/fesm2022/form-select.mjs.map +0 -1
  292. package/form-text-input/fesm2022/form-text-input.mjs.map +0 -1
  293. package/form-textarea/fesm2022/form-textarea.mjs.map +0 -1
  294. package/icon/fesm2022/icon.mjs.map +0 -1
  295. package/input/fesm2022/input.mjs.map +0 -1
  296. package/input/index.d.ts +0 -41
  297. package/label/fesm2022/label.mjs.map +0 -1
  298. package/popover/fesm2022/popover.mjs.map +0 -1
  299. package/popover/index.d.ts +0 -30
  300. package/select/fesm2022/select.mjs.map +0 -1
  301. package/select/index.d.ts +0 -92
  302. package/separator/fesm2022/separator.mjs.map +0 -1
  303. package/sheet/fesm2022/sheet.mjs.map +0 -1
  304. package/sonner/fesm2022/sonner.mjs.map +0 -1
  305. package/spinner/fesm2022/spinner.mjs.map +0 -1
  306. package/switch/fesm2022/switch.mjs.map +0 -1
  307. package/utils/fesm2022/utils.mjs.map +0 -1
  308. package/utils/index.d.ts +0 -5
  309. /package/alert/{index.d.ts → types/alert.d.ts} +0 -0
  310. /package/badge/{index.d.ts → types/badge.d.ts} +0 -0
  311. /package/form-field-simple/{index.d.ts → types/form-field-simple.d.ts} +0 -0
  312. /package/icon/{index.d.ts → types/icon.d.ts} +0 -0
  313. /package/sheet/{index.d.ts → types/sheet.d.ts} +0 -0
  314. /package/sonner/{index.d.ts → types/sonner.d.ts} +0 -0
  315. /package/spinner/{index.d.ts → types/spinner.d.ts} +0 -0
  316. /package/switch/{index.d.ts → types/switch.d.ts} +0 -0
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "alert",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^20.2.0 || ^22.0.0",
6
+ "@angular/core": "^20.2.0 || ^22.0.0",
7
+ "@spartan-ng/brain": "^0.0.1-alpha.512"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "^2.3.0"
11
+ },
12
+ "sideEffects": false,
13
+ "module": "fesm2022/alert.mjs",
14
+ "typings": "types/alert.d.ts",
15
+ "exports": {
16
+ "./package.json": {
17
+ "default": "./package.json"
18
+ },
19
+ ".": {
20
+ "types": "./types/alert.d.ts",
21
+ "default": "./fesm2022/alert.mjs"
22
+ }
23
+ },
24
+ "type": "module"
25
+ }
@@ -0,0 +1,11 @@
1
+ # AlertDialog
2
+
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli).
4
+
5
+ ## Building
6
+
7
+ To build the library, run:
8
+
9
+ ```bash
10
+ ng build alert-dialog
11
+ ```
@@ -0,0 +1,287 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, computed, effect, untracked, Directive, forwardRef, ChangeDetectionStrategy, Component, signal, NgModule } 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 '@egose/shadcn-theme-ng-tw/utils';
9
+ import * as i1$1 from '@egose/shadcn-theme-ng-tw/button';
10
+ import { HlmBtn, provideBrnButtonConfig } from '@egose/shadcn-theme-ng-tw/button';
11
+
12
+ class HlmAlertDialogOverlay {
13
+ _classSettable = injectCustomClassSettable({ optional: true, host: true });
14
+ userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
15
+ _computedClass = computed(() => hlm('tw:data-open:animate-in tw:data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 tw:isolate tw:bg-black/10 tw:duration-100 tw:supports-backdrop-filter:backdrop-blur-xs', this.userClass()), /* @ts-ignore */
16
+ ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
17
+ constructor() {
18
+ effect(() => {
19
+ const classValue = this._computedClass();
20
+ untracked(() => this._classSettable?.setClassToCustomElement(classValue));
21
+ });
22
+ }
23
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogOverlay, deps: [], target: i0.ɵɵFactoryTarget.Directive });
24
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", 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 });
25
+ }
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogOverlay, decorators: [{
27
+ type: Directive,
28
+ args: [{
29
+ selector: '[hlmAlertDialogOverlay],hlm-alert-dialog-overlay',
30
+ hostDirectives: [BrnAlertDialogOverlay],
31
+ }]
32
+ }], ctorParameters: () => [], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
33
+
34
+ class HlmAlertDialog extends BrnAlertDialog {
35
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialog, deps: null, target: i0.ɵɵFactoryTarget.Component });
36
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.3", type: HlmAlertDialog, isStandalone: true, selector: "hlm-alert-dialog", providers: [
37
+ {
38
+ provide: BrnDialog,
39
+ useExisting: forwardRef(() => HlmAlertDialog),
40
+ },
41
+ provideBrnDialogDefaultOptions({
42
+ ...BRN_ALERT_DIALOG_DEFAULT_OPTIONS,
43
+ }),
44
+ ], exportAs: ["hlmAlertDialog"], usesInheritance: true, ngImport: i0, template: `
45
+ <hlm-alert-dialog-overlay />
46
+ <ng-content />
47
+ `, isInline: true, dependencies: [{ kind: "directive", type: HlmAlertDialogOverlay, selector: "[hlmAlertDialogOverlay],hlm-alert-dialog-overlay", inputs: ["class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
48
+ }
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialog, decorators: [{
50
+ type: Component,
51
+ args: [{
52
+ selector: 'hlm-alert-dialog',
53
+ exportAs: 'hlmAlertDialog',
54
+ imports: [HlmAlertDialogOverlay],
55
+ providers: [
56
+ {
57
+ provide: BrnDialog,
58
+ useExisting: forwardRef(() => HlmAlertDialog),
59
+ },
60
+ provideBrnDialogDefaultOptions({
61
+ ...BRN_ALERT_DIALOG_DEFAULT_OPTIONS,
62
+ }),
63
+ ],
64
+ changeDetection: ChangeDetectionStrategy.OnPush,
65
+ template: `
66
+ <hlm-alert-dialog-overlay />
67
+ <ng-content />
68
+ `,
69
+ }]
70
+ }] });
71
+
72
+ class HlmAlertDialogAction {
73
+ type = input('button', /* @ts-ignore */
74
+ ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
75
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogAction, deps: [], target: i0.ɵɵFactoryTarget.Directive });
76
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", 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.HlmBtn, inputs: ["variant", "variant", "size", "size"] }], ngImport: i0 });
77
+ }
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogAction, decorators: [{
79
+ type: Directive,
80
+ args: [{
81
+ selector: 'button[hlmAlertDialogAction]',
82
+ hostDirectives: [{ directive: HlmBtn, 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
+ type = input('button', /* @ts-ignore */
89
+ ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
90
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogCancel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
91
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", 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.HlmBtn, inputs: ["variant", "variant", "size", "size"] }], ngImport: i0 });
92
+ }
93
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogCancel, decorators: [{
94
+ type: Directive,
95
+ args: [{
96
+ selector: 'button[hlmAlertDialogCancel]',
97
+ providers: [provideBrnButtonConfig({ variant: 'outline' })],
98
+ hostDirectives: [BrnDialogClose, { directive: HlmBtn, inputs: ['variant', 'size'] }],
99
+ host: { 'data-slot': 'alert-dialog-cancel', '[type]': 'type()' },
100
+ }]
101
+ }], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
102
+
103
+ class HlmAlertDialogContent {
104
+ _stateProvider = injectExposesStateProvider({ optional: true, host: true });
105
+ state = this._stateProvider?.state ?? signal('closed');
106
+ size = input('default', /* @ts-ignore */
107
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
108
+ constructor() {
109
+ classes(() => 'tw:data-open:animate-in tw:data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 tw:data-closed:zoom-out-95 tw:data-open:zoom-in-95 tw:bg-popover tw:text-popover-foreground tw:ring-foreground/10 tw:gap-6 tw:rounded-xl tw:p-6 tw:ring-1 tw:duration-100 tw:data-[size=default]:max-w-xs tw:data-[size=sm]:max-w-xs tw:data-[size=default]:sm:max-w-lg tw:group/alert-dialog-content tw:grid tw:w-full tw:outline-none');
110
+ }
111
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
112
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", 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: "22.1.3", 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(() => 'tw:text-muted-foreground tw:*:[a]:hover:text-foreground tw:text-sm tw:text-balance tw:md:text-pretty tw:*:[a]:underline tw:*:[a]:underline-offset-3');
129
+ }
130
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
131
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", 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: "22.1.3", 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(() => 'tw:flex tw:flex-col-reverse tw:gap-2 tw:group-data-[size=sm]/alert-dialog-content:grid tw:group-data-[size=sm]/alert-dialog-content:grid-cols-2 tw:sm:flex-row tw:sm:justify-end');
145
+ }
146
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive });
147
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", 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: "22.1.3", 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(() => 'tw:grid tw:grid-rows-[auto_1fr] tw:place-items-center tw:gap-1.5 tw:text-center tw:has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] tw:has-data-[slot=alert-dialog-media]:gap-x-6 tw:sm:group-data-[size=default]/alert-dialog-content:place-items-start tw:sm:group-data-[size=default]/alert-dialog-content:text-start tw:sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]');
160
+ }
161
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
162
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", 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: "22.1.3", 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(() => "tw:bg-muted tw:mb-2 tw:inline-flex tw:size-16 tw:items-center tw:justify-center tw:rounded-md tw:sm:group-data-[size=default]/alert-dialog-content:row-span-2 tw:*:[ng-icon:not([class*='text-'])]:text-[length:--spacing(8)]");
175
+ }
176
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogMedia, deps: [], target: i0.ɵɵFactoryTarget.Directive });
177
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", 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: "22.1.3", 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 ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive });
189
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", 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: "22.1.3", 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(() => 'tw:text-lg tw:font-medium tw:sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2');
202
+ }
203
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
204
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", 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: "22.1.3", 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 ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
217
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", 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: "22.1.3", 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
+ /*
231
+ * Public API Surface of alert-dialog
232
+ */
233
+ const HlmAlertDialogImports = [
234
+ HlmAlertDialog,
235
+ HlmAlertDialogAction,
236
+ HlmAlertDialogCancel,
237
+ HlmAlertDialogContent,
238
+ HlmAlertDialogDescription,
239
+ HlmAlertDialogFooter,
240
+ HlmAlertDialogHeader,
241
+ HlmAlertDialogMedia,
242
+ HlmAlertDialogOverlay,
243
+ HlmAlertDialogPortal,
244
+ HlmAlertDialogTitle,
245
+ HlmAlertDialogTrigger,
246
+ ];
247
+ class HlmAlertDialogModule {
248
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
249
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogModule, imports: [HlmAlertDialog,
250
+ HlmAlertDialogAction,
251
+ HlmAlertDialogCancel,
252
+ HlmAlertDialogContent,
253
+ HlmAlertDialogDescription,
254
+ HlmAlertDialogFooter,
255
+ HlmAlertDialogHeader,
256
+ HlmAlertDialogMedia,
257
+ HlmAlertDialogOverlay,
258
+ HlmAlertDialogPortal,
259
+ HlmAlertDialogTitle,
260
+ HlmAlertDialogTrigger], exports: [HlmAlertDialog,
261
+ HlmAlertDialogAction,
262
+ HlmAlertDialogCancel,
263
+ HlmAlertDialogContent,
264
+ HlmAlertDialogDescription,
265
+ HlmAlertDialogFooter,
266
+ HlmAlertDialogHeader,
267
+ HlmAlertDialogMedia,
268
+ HlmAlertDialogOverlay,
269
+ HlmAlertDialogPortal,
270
+ HlmAlertDialogTitle,
271
+ HlmAlertDialogTrigger] });
272
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogModule });
273
+ }
274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAlertDialogModule, decorators: [{
275
+ type: NgModule,
276
+ args: [{
277
+ imports: [...HlmAlertDialogImports],
278
+ exports: [...HlmAlertDialogImports],
279
+ }]
280
+ }] });
281
+
282
+ /**
283
+ * Generated bundle index. Do not edit.
284
+ */
285
+
286
+ export { HlmAlertDialog, HlmAlertDialogAction, HlmAlertDialogCancel, HlmAlertDialogContent, HlmAlertDialogDescription, HlmAlertDialogFooter, HlmAlertDialogHeader, HlmAlertDialogImports, HlmAlertDialogMedia, HlmAlertDialogModule, HlmAlertDialogOverlay, HlmAlertDialogPortal, HlmAlertDialogTitle, HlmAlertDialogTrigger };
287
+
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "alert-dialog",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^22.0.0",
6
+ "@angular/core": "^22.0.0",
7
+ "@spartan-ng/brain": "^1.1.1"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "^2.3.0"
11
+ },
12
+ "sideEffects": false,
13
+ "module": "fesm2022/alert-dialog.mjs",
14
+ "typings": "types/alert-dialog.d.ts",
15
+ "exports": {
16
+ "./package.json": {
17
+ "default": "./package.json"
18
+ },
19
+ ".": {
20
+ "types": "./types/alert-dialog.d.ts",
21
+ "default": "./fesm2022/alert-dialog.mjs"
22
+ }
23
+ },
24
+ "type": "module"
25
+ }
@@ -0,0 +1,90 @@
1
+ import * as i1$2 from '@spartan-ng/brain/alert-dialog';
2
+ import { BrnAlertDialog } from '@spartan-ng/brain/alert-dialog';
3
+ import * as i0 from '@angular/core';
4
+ import * as i1 from '@egose/shadcn-theme-ng-tw/button';
5
+ import * as i1$1 from '@spartan-ng/brain/dialog';
6
+ import { ClassValue } from 'clsx';
7
+
8
+ declare class HlmAlertDialog extends BrnAlertDialog {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialog, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<HlmAlertDialog, "hlm-alert-dialog", ["hlmAlertDialog"], {}, {}, never, ["*"], true, never>;
11
+ }
12
+
13
+ declare class HlmAlertDialogAction {
14
+ readonly type: i0.InputSignal<"button" | "submit" | "reset">;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogAction, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogAction, "button[hlmAlertDialogAction]", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HlmBtn; inputs: { "variant": "variant"; "size": "size"; }; outputs: {}; }]>;
17
+ }
18
+
19
+ declare class HlmAlertDialogCancel {
20
+ readonly type: i0.InputSignal<"button" | "submit" | "reset">;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogCancel, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogCancel, "button[hlmAlertDialogCancel]", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1$1.BrnDialogClose; inputs: {}; outputs: {}; }, { directive: typeof i1.HlmBtn; inputs: { "variant": "variant"; "size": "size"; }; outputs: {}; }]>;
23
+ }
24
+
25
+ declare class HlmAlertDialogContent {
26
+ private readonly _stateProvider;
27
+ readonly state: i0.Signal<"open" | "closed">;
28
+ readonly size: i0.InputSignal<"default" | "sm">;
29
+ constructor();
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogContent, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogContent, "[hlmAlertDialogContent],hlm-alert-dialog-content", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
32
+ }
33
+
34
+ declare class HlmAlertDialogDescription {
35
+ constructor();
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogDescription, never>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogDescription, "[hlmAlertDialogDescription]", never, {}, {}, never, never, true, [{ directive: typeof i1$2.BrnAlertDialogDescription; inputs: {}; outputs: {}; }]>;
38
+ }
39
+
40
+ declare class HlmAlertDialogFooter {
41
+ constructor();
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogFooter, never>;
43
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogFooter, "[hlmAlertDialogFooter],hlm-alert-dialog-footer", never, {}, {}, never, never, true, never>;
44
+ }
45
+
46
+ declare class HlmAlertDialogHeader {
47
+ constructor();
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogHeader, never>;
49
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogHeader, "[hlmAlertDialogHeader],hlm-alert-dialog-header", never, {}, {}, never, never, true, never>;
50
+ }
51
+
52
+ declare class HlmAlertDialogMedia {
53
+ constructor();
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogMedia, never>;
55
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogMedia, "[hlmAlertDialogMedia],hlm-alert-dialog-media", never, {}, {}, never, never, true, never>;
56
+ }
57
+
58
+ declare class HlmAlertDialogOverlay {
59
+ private readonly _classSettable;
60
+ readonly userClass: i0.InputSignal<ClassValue>;
61
+ protected readonly _computedClass: i0.Signal<string>;
62
+ constructor();
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogOverlay, never>;
64
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogOverlay, "[hlmAlertDialogOverlay],hlm-alert-dialog-overlay", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1$2.BrnAlertDialogOverlay; inputs: {}; outputs: {}; }]>;
65
+ }
66
+
67
+ declare class HlmAlertDialogPortal {
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogPortal, never>;
69
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogPortal, "[hlmAlertDialogPortal]", never, {}, {}, never, never, true, [{ directive: typeof i1$2.BrnAlertDialogContent; inputs: { "context": "context"; "class": "class"; }; outputs: {}; }]>;
70
+ }
71
+
72
+ declare class HlmAlertDialogTitle {
73
+ constructor();
74
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogTitle, never>;
75
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogTitle, "[hlmAlertDialogTitle]", never, {}, {}, never, never, true, [{ directive: typeof i1$2.BrnAlertDialogTitle; inputs: {}; outputs: {}; }]>;
76
+ }
77
+
78
+ declare class HlmAlertDialogTrigger {
79
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogTrigger, never>;
80
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAlertDialogTrigger, "button[hlmAlertDialogTrigger],button[hlmAlertDialogTriggerFor]", never, {}, {}, never, never, true, [{ directive: typeof i1$2.BrnAlertDialogTrigger; inputs: { "id": "id"; "brnAlertDialogTriggerFor": "hlmAlertDialogTriggerFor"; "type": "type"; }; outputs: {}; }]>;
81
+ }
82
+
83
+ declare const HlmAlertDialogImports: readonly [typeof HlmAlertDialog, typeof HlmAlertDialogAction, typeof HlmAlertDialogCancel, typeof HlmAlertDialogContent, typeof HlmAlertDialogDescription, typeof HlmAlertDialogFooter, typeof HlmAlertDialogHeader, typeof HlmAlertDialogMedia, typeof HlmAlertDialogOverlay, typeof HlmAlertDialogPortal, typeof HlmAlertDialogTitle, typeof HlmAlertDialogTrigger];
84
+ declare class HlmAlertDialogModule {
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAlertDialogModule, never>;
86
+ static ɵmod: i0.ɵɵNgModuleDeclaration<HlmAlertDialogModule, never, [typeof HlmAlertDialog, typeof HlmAlertDialogAction, typeof HlmAlertDialogCancel, typeof HlmAlertDialogContent, typeof HlmAlertDialogDescription, typeof HlmAlertDialogFooter, typeof HlmAlertDialogHeader, typeof HlmAlertDialogMedia, typeof HlmAlertDialogOverlay, typeof HlmAlertDialogPortal, typeof HlmAlertDialogTitle, typeof HlmAlertDialogTrigger], [typeof HlmAlertDialog, typeof HlmAlertDialogAction, typeof HlmAlertDialogCancel, typeof HlmAlertDialogContent, typeof HlmAlertDialogDescription, typeof HlmAlertDialogFooter, typeof HlmAlertDialogHeader, typeof HlmAlertDialogMedia, typeof HlmAlertDialogOverlay, typeof HlmAlertDialogPortal, typeof HlmAlertDialogTitle, typeof HlmAlertDialogTrigger]>;
87
+ static ɵinj: i0.ɵɵInjectorDeclaration<HlmAlertDialogModule>;
88
+ }
89
+
90
+ export { HlmAlertDialog, HlmAlertDialogAction, HlmAlertDialogCancel, HlmAlertDialogContent, HlmAlertDialogDescription, HlmAlertDialogFooter, HlmAlertDialogHeader, HlmAlertDialogImports, HlmAlertDialogMedia, HlmAlertDialogModule, HlmAlertDialogOverlay, HlmAlertDialogPortal, HlmAlertDialogTitle, HlmAlertDialogTrigger };
@@ -0,0 +1,11 @@
1
+ # AspectRatio
2
+
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli).
4
+
5
+ ## Building
6
+
7
+ To build the library, run:
8
+
9
+ ```bash
10
+ ng build aspect-ratio
11
+ ```
@@ -0,0 +1,62 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, Directive, NgModule } from '@angular/core';
3
+ import { coerceNumberProperty } from '@angular/cdk/coercion';
4
+ import { classes } from '@egose/shadcn-theme-ng-tw/utils';
5
+
6
+ const parseDividedString = (value) => {
7
+ if (typeof value !== 'string' || !value.includes('/'))
8
+ return value;
9
+ return value
10
+ .split('/')
11
+ .map((v) => Number.parseInt(v, 10))
12
+ .reduce((a, b) => a / b);
13
+ };
14
+ class HlmAspectRatio {
15
+ /**
16
+ * Aspect ratio of the element, defined as width / height.
17
+ */
18
+ ratio = input(1, { ...(ngDevMode ? { debugName: "ratio" } : /* istanbul ignore next */ {}), alias: 'hlmAspectRatio',
19
+ transform: (value) => {
20
+ const coerced = coerceNumberProperty(parseDividedString(value));
21
+ return coerced <= 0 ? 1 : coerced;
22
+ } });
23
+ constructor() {
24
+ classes(() => 'tw:relative tw:aspect-(--ratio)');
25
+ }
26
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAspectRatio, deps: [], target: i0.ɵɵFactoryTarget.Directive });
27
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: HlmAspectRatio, isStandalone: true, selector: "[hlmAspectRatio]", inputs: { ratio: { classPropertyName: "ratio", publicName: "hlmAspectRatio", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "aspect-ratio" }, properties: { "style.--ratio": "ratio()" } }, ngImport: i0 });
28
+ }
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAspectRatio, decorators: [{
30
+ type: Directive,
31
+ args: [{
32
+ selector: '[hlmAspectRatio]',
33
+ host: {
34
+ 'data-slot': 'aspect-ratio',
35
+ '[style.--ratio]': 'ratio()',
36
+ },
37
+ }]
38
+ }], ctorParameters: () => [], propDecorators: { ratio: [{ type: i0.Input, args: [{ isSignal: true, alias: "hlmAspectRatio", required: false }] }] } });
39
+
40
+ /*
41
+ * Public API Surface of aspect-ratio
42
+ */
43
+ const HlmAspectRatioImports = [HlmAspectRatio];
44
+ class HlmAspectRatioModule {
45
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAspectRatioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
46
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmAspectRatioModule, imports: [HlmAspectRatio], exports: [HlmAspectRatio] });
47
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAspectRatioModule });
48
+ }
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmAspectRatioModule, decorators: [{
50
+ type: NgModule,
51
+ args: [{
52
+ imports: [...HlmAspectRatioImports],
53
+ exports: [...HlmAspectRatioImports],
54
+ }]
55
+ }] });
56
+
57
+ /**
58
+ * Generated bundle index. Do not edit.
59
+ */
60
+
61
+ export { HlmAspectRatio, HlmAspectRatioImports, HlmAspectRatioModule };
62
+
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "aspect-ratio",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^22.0.0",
6
+ "@angular/core": "^22.0.0",
7
+ "@spartan-ng/brain": "^1.1.1"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "^2.3.0"
11
+ },
12
+ "sideEffects": false,
13
+ "module": "fesm2022/aspect-ratio.mjs",
14
+ "typings": "types/aspect-ratio.d.ts",
15
+ "exports": {
16
+ "./package.json": {
17
+ "default": "./package.json"
18
+ },
19
+ ".": {
20
+ "types": "./types/aspect-ratio.d.ts",
21
+ "default": "./fesm2022/aspect-ratio.mjs"
22
+ }
23
+ },
24
+ "type": "module"
25
+ }
@@ -0,0 +1,21 @@
1
+ import * as i0 from '@angular/core';
2
+ import { NumberInput } from '@angular/cdk/coercion';
3
+
4
+ declare class HlmAspectRatio {
5
+ /**
6
+ * Aspect ratio of the element, defined as width / height.
7
+ */
8
+ readonly ratio: i0.InputSignalWithTransform<number, NumberInput>;
9
+ constructor();
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAspectRatio, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmAspectRatio, "[hlmAspectRatio]", never, { "ratio": { "alias": "hlmAspectRatio"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
12
+ }
13
+
14
+ declare const HlmAspectRatioImports: readonly [typeof HlmAspectRatio];
15
+ declare class HlmAspectRatioModule {
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmAspectRatioModule, never>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<HlmAspectRatioModule, never, [typeof HlmAspectRatio], [typeof HlmAspectRatio]>;
18
+ static ɵinj: i0.ɵɵInjectorDeclaration<HlmAspectRatioModule>;
19
+ }
20
+
21
+ export { HlmAspectRatio, HlmAspectRatioImports, HlmAspectRatioModule };
@@ -0,0 +1,3 @@
1
+ # Autocomplete Subpath
2
+
3
+ This project ships only as `@egose/shadcn-theme-ng/autocomplete` or `@egose/shadcn-theme-ng-tw/autocomplete`. See the [package README](../../README.md) for installation, compatibility, Tailwind variant, test, and release guidance. Do not publish this project directory independently.