@egose/shadcn-theme-ng 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 +148 -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 +58 -53
  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 +391 -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 +69 -63
  27. package/badge/package.json +25 -0
  28. package/basic-alert/README.md +2 -63
  29. package/basic-alert/fesm2022/basic-alert.mjs +14 -22
  30. package/basic-alert/package.json +24 -0
  31. package/breadcrumb/README.md +11 -0
  32. package/breadcrumb/fesm2022/breadcrumb.mjs +218 -0
  33. package/breadcrumb/package.json +25 -0
  34. package/breadcrumb/types/breadcrumb.d.ts +57 -0
  35. package/button/README.md +2 -63
  36. package/button/fesm2022/button.mjs +201 -177
  37. package/button/package.json +25 -0
  38. package/button/{index.d.ts → types/button.d.ts} +31 -10
  39. package/button-group/README.md +11 -0
  40. package/button-group/fesm2022/button-group.mjs +102 -0
  41. package/button-group/package.json +25 -0
  42. package/button-group/types/button-group.d.ts +30 -0
  43. package/calendar/README.md +2 -63
  44. package/calendar/fesm2022/calendar.mjs +178 -570
  45. package/calendar/package.json +24 -0
  46. package/calendar/types/calendar.d.ts +94 -0
  47. package/card/README.md +11 -0
  48. package/card/fesm2022/card.mjs +169 -0
  49. package/card/package.json +25 -0
  50. package/card/types/card.d.ts +54 -0
  51. package/carousel/README.md +11 -0
  52. package/carousel/fesm2022/carousel.mjs +267 -0
  53. package/carousel/package.json +25 -0
  54. package/carousel/types/carousel.d.ts +84 -0
  55. package/checkbox/README.md +3 -0
  56. package/checkbox/fesm2022/checkbox.mjs +113 -0
  57. package/checkbox/package.json +24 -0
  58. package/checkbox/types/checkbox.d.ts +56 -0
  59. package/collapsible/README.md +11 -0
  60. package/collapsible/fesm2022/collapsible.mjs +77 -0
  61. package/collapsible/package.json +25 -0
  62. package/collapsible/types/collapsible.d.ts +27 -0
  63. package/combobox/README.md +11 -0
  64. package/combobox/fesm2022/combobox.mjs +547 -0
  65. package/combobox/package.json +25 -0
  66. package/combobox/types/combobox.d.ts +151 -0
  67. package/command/README.md +11 -0
  68. package/command/fesm2022/command.mjs +301 -0
  69. package/command/package.json +25 -0
  70. package/command/types/command.d.ts +89 -0
  71. package/confirmation-dialog/README.md +3 -0
  72. package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +79 -0
  73. package/confirmation-dialog/package.json +24 -0
  74. package/confirmation-dialog/types/confirmation-dialog.d.ts +28 -0
  75. package/context-menu/README.md +11 -0
  76. package/context-menu/fesm2022/context-menu.mjs +89 -0
  77. package/context-menu/package.json +25 -0
  78. package/context-menu/types/context-menu.d.ts +34 -0
  79. package/date-picker/README.md +2 -63
  80. package/date-picker/fesm2022/date-picker.mjs +1104 -352
  81. package/date-picker/package.json +24 -0
  82. package/date-picker/types/date-picker.d.ts +555 -0
  83. package/dialog/README.md +3 -0
  84. package/dialog/fesm2022/dialog.mjs +281 -0
  85. package/dialog/package.json +24 -0
  86. package/dialog/types/dialog.d.ts +95 -0
  87. package/drawer/README.md +11 -0
  88. package/drawer/fesm2022/drawer.mjs +261 -0
  89. package/drawer/package.json +25 -0
  90. package/drawer/types/drawer.d.ts +76 -0
  91. package/dropdown-menu/README.md +11 -0
  92. package/dropdown-menu/fesm2022/dropdown-menu.mjs +554 -0
  93. package/dropdown-menu/package.json +25 -0
  94. package/dropdown-menu/types/dropdown-menu.d.ts +180 -0
  95. package/empty/README.md +11 -0
  96. package/empty/fesm2022/empty.mjs +151 -0
  97. package/empty/package.json +25 -0
  98. package/empty/types/empty.d.ts +54 -0
  99. package/field/README.md +11 -0
  100. package/field/fesm2022/field.mjs +351 -0
  101. package/field/package.json +25 -0
  102. package/field/types/field.d.ts +107 -0
  103. package/form-checkbox/README.md +3 -0
  104. package/form-checkbox/fesm2022/form-checkbox.mjs +94 -0
  105. package/form-checkbox/package.json +24 -0
  106. package/form-checkbox/types/form-checkbox.d.ts +33 -0
  107. package/form-date-picker/README.md +2 -63
  108. package/form-date-picker/fesm2022/form-date-picker.mjs +74 -120
  109. package/form-date-picker/package.json +24 -0
  110. package/form-date-picker/{index.d.ts → types/form-date-picker.d.ts} +7 -1
  111. package/form-field/README.md +2 -63
  112. package/form-field/fesm2022/form-field.mjs +54 -28
  113. package/form-field/package.json +25 -0
  114. package/form-field/types/form-field.d.ts +46 -0
  115. package/form-field-simple/README.md +2 -63
  116. package/form-field-simple/fesm2022/form-field-simple.mjs +15 -10
  117. package/form-field-simple/package.json +24 -0
  118. package/form-searchable-multiselect/README.md +3 -0
  119. package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs +98 -0
  120. package/form-searchable-multiselect/package.json +24 -0
  121. package/form-searchable-multiselect/types/form-searchable-multiselect.d.ts +36 -0
  122. package/form-select/README.md +2 -63
  123. package/form-select/fesm2022/form-select.mjs +85 -141
  124. package/form-select/package.json +24 -0
  125. package/form-select/{index.d.ts → types/form-select.d.ts} +7 -1
  126. package/form-text-input/README.md +2 -63
  127. package/form-text-input/fesm2022/form-text-input.mjs +86 -171
  128. package/form-text-input/package.json +24 -0
  129. package/form-text-input/{index.d.ts → types/form-text-input.d.ts} +9 -12
  130. package/form-textarea/README.md +2 -63
  131. package/form-textarea/fesm2022/form-textarea.mjs +77 -128
  132. package/form-textarea/package.json +24 -0
  133. package/form-textarea/{index.d.ts → types/form-textarea.d.ts} +8 -1
  134. package/hover-card/README.md +11 -0
  135. package/hover-card/fesm2022/hover-card.mjs +123 -0
  136. package/hover-card/package.json +25 -0
  137. package/hover-card/types/hover-card.d.ts +36 -0
  138. package/icon/README.md +2 -63
  139. package/icon/fesm2022/icon.mjs +12 -10
  140. package/icon/package.json +25 -0
  141. package/input/README.md +2 -63
  142. package/input/fesm2022/input.mjs +25 -70
  143. package/input/package.json +25 -0
  144. package/input/types/input.d.ts +19 -0
  145. package/input-group/README.md +11 -0
  146. package/input-group/fesm2022/input-group.mjs +199 -0
  147. package/input-group/package.json +25 -0
  148. package/input-group/types/input-group.d.ts +52 -0
  149. package/input-otp/README.md +11 -0
  150. package/input-otp/fesm2022/input-otp.mjs +141 -0
  151. package/input-otp/package.json +25 -0
  152. package/input-otp/types/input-otp.d.ts +43 -0
  153. package/item/README.md +11 -0
  154. package/item/fesm2022/item.mjs +278 -0
  155. package/item/package.json +25 -0
  156. package/item/types/item.d.ts +101 -0
  157. package/kbd/README.md +11 -0
  158. package/kbd/fesm2022/kbd.mjs +61 -0
  159. package/kbd/package.json +25 -0
  160. package/kbd/types/kbd.d.ts +22 -0
  161. package/label/README.md +2 -63
  162. package/label/fesm2022/label.mjs +12 -11
  163. package/label/package.json +25 -0
  164. package/label/{index.d.ts → types/label.d.ts} +1 -1
  165. package/layout-simple/README.md +3 -0
  166. package/layout-simple/fesm2022/layout-simple.mjs +388 -0
  167. package/layout-simple/package.json +24 -0
  168. package/layout-simple/types/layout-simple.d.ts +167 -0
  169. package/menu/README.md +3 -0
  170. package/menu/fesm2022/menu.mjs +455 -0
  171. package/menu/package.json +24 -0
  172. package/menu/types/menu.d.ts +137 -0
  173. package/menubar/README.md +11 -0
  174. package/menubar/fesm2022/menubar.mjs +108 -0
  175. package/menubar/package.json +25 -0
  176. package/menubar/types/menubar.d.ts +40 -0
  177. package/native-select/README.md +11 -0
  178. package/native-select/fesm2022/native-select.mjs +207 -0
  179. package/native-select/package.json +25 -0
  180. package/native-select/types/native-select.d.ts +70 -0
  181. package/navigation-menu/README.md +11 -0
  182. package/navigation-menu/fesm2022/navigation-menu.mjs +194 -0
  183. package/navigation-menu/package.json +25 -0
  184. package/navigation-menu/types/navigation-menu.d.ts +54 -0
  185. package/package.json +284 -63
  186. package/pagination/README.md +11 -0
  187. package/pagination/fesm2022/pagination.mjs +522 -0
  188. package/pagination/package.json +25 -0
  189. package/pagination/types/pagination.d.ts +192 -0
  190. package/popover/README.md +2 -63
  191. package/popover/fesm2022/popover.mjs +124 -30
  192. package/popover/package.json +24 -0
  193. package/popover/types/popover.d.ts +54 -0
  194. package/progress/README.md +11 -0
  195. package/progress/fesm2022/progress.mjs +77 -0
  196. package/progress/package.json +25 -0
  197. package/progress/types/progress.d.ts +27 -0
  198. package/radio-group/README.md +3 -0
  199. package/radio-group/fesm2022/radio-group.mjs +207 -0
  200. package/radio-group/package.json +25 -0
  201. package/radio-group/types/radio-group.d.ts +71 -0
  202. package/resizable/README.md +11 -0
  203. package/resizable/fesm2022/resizable.mjs +103 -0
  204. package/resizable/package.json +25 -0
  205. package/resizable/types/resizable.d.ts +32 -0
  206. package/scroll-area/README.md +11 -0
  207. package/scroll-area/fesm2022/scroll-area.mjs +51 -0
  208. package/scroll-area/package.json +25 -0
  209. package/scroll-area/types/scroll-area.d.ts +16 -0
  210. package/searchable-multiselect/README.md +3 -0
  211. package/searchable-multiselect/fesm2022/searchable-multiselect.mjs +136 -0
  212. package/searchable-multiselect/package.json +24 -0
  213. package/searchable-multiselect/types/searchable-multiselect.d.ts +45 -0
  214. package/select/README.md +2 -63
  215. package/select/fesm2022/select.mjs +340 -198
  216. package/select/package.json +25 -0
  217. package/select/types/select.d.ts +121 -0
  218. package/separator/README.md +2 -63
  219. package/separator/fesm2022/separator.mjs +17 -15
  220. package/separator/package.json +24 -0
  221. package/separator/{index.d.ts → types/separator.d.ts} +4 -5
  222. package/sheet/README.md +2 -63
  223. package/sheet/fesm2022/sheet.mjs +56 -61
  224. package/sheet/package.json +24 -0
  225. package/sidebar/README.md +11 -0
  226. package/sidebar/fesm2022/sidebar.mjs +846 -0
  227. package/sidebar/package.json +25 -0
  228. package/sidebar/types/sidebar.d.ts +237 -0
  229. package/skeleton/README.md +11 -0
  230. package/skeleton/fesm2022/skeleton.mjs +44 -0
  231. package/skeleton/package.json +25 -0
  232. package/skeleton/types/skeleton.d.ts +16 -0
  233. package/slider/README.md +11 -0
  234. package/slider/fesm2022/slider.mjs +74 -0
  235. package/slider/package.json +25 -0
  236. package/slider/types/slider.d.ts +19 -0
  237. package/sonner/README.md +2 -63
  238. package/sonner/fesm2022/sonner.mjs +34 -39
  239. package/sonner/package.json +25 -0
  240. package/spinner/README.md +2 -63
  241. package/spinner/fesm2022/spinner.mjs +20 -16
  242. package/spinner/package.json +25 -0
  243. package/switch/README.md +2 -63
  244. package/switch/fesm2022/switch.mjs +28 -27
  245. package/switch/package.json +25 -0
  246. package/table/README.md +11 -0
  247. package/table/fesm2022/table.mjs +211 -0
  248. package/table/package.json +25 -0
  249. package/table/types/table.d.ts +87 -0
  250. package/tabs/README.md +3 -0
  251. package/tabs/fesm2022/tabs.mjs +210 -0
  252. package/tabs/package.json +25 -0
  253. package/tabs/types/tabs.d.ts +71 -0
  254. package/textarea/README.md +11 -0
  255. package/textarea/fesm2022/textarea.mjs +47 -0
  256. package/textarea/package.json +25 -0
  257. package/textarea/types/textarea.d.ts +18 -0
  258. package/toggle/README.md +11 -0
  259. package/toggle/fesm2022/toggle.mjs +78 -0
  260. package/toggle/package.json +25 -0
  261. package/toggle/types/toggle.d.ts +27 -0
  262. package/toggle-group/README.md +11 -0
  263. package/toggle-group/fesm2022/toggle-group.mjs +117 -0
  264. package/toggle-group/package.json +25 -0
  265. package/toggle-group/types/toggle-group.d.ts +45 -0
  266. package/tooltip/README.md +3 -0
  267. package/tooltip/fesm2022/tooltip.mjs +72 -0
  268. package/tooltip/package.json +25 -0
  269. package/tooltip/types/tooltip.d.ts +22 -0
  270. package/typography/README.md +11 -0
  271. package/typography/fesm2022/typography.mjs +242 -0
  272. package/typography/package.json +25 -0
  273. package/typography/types/typography.d.ts +94 -0
  274. package/utils/README.md +2 -63
  275. package/utils/fesm2022/utils.mjs +209 -2
  276. package/utils/package.json +25 -0
  277. package/utils/types/utils.d.ts +13 -0
  278. package/alert/fesm2022/alert.mjs.map +0 -1
  279. package/badge/fesm2022/badge.mjs.map +0 -1
  280. package/basic-alert/fesm2022/basic-alert.mjs.map +0 -1
  281. package/button/fesm2022/button.mjs.map +0 -1
  282. package/calendar/fesm2022/calendar.mjs.map +0 -1
  283. package/calendar/index.d.ts +0 -111
  284. package/date-picker/fesm2022/date-picker.mjs.map +0 -1
  285. package/date-picker/index.d.ts +0 -227
  286. package/form-date-picker/fesm2022/form-date-picker.mjs.map +0 -1
  287. package/form-field/fesm2022/form-field.mjs.map +0 -1
  288. package/form-field/index.d.ts +0 -37
  289. package/form-field-simple/fesm2022/form-field-simple.mjs.map +0 -1
  290. package/form-select/fesm2022/form-select.mjs.map +0 -1
  291. package/form-text-input/fesm2022/form-text-input.mjs.map +0 -1
  292. package/form-textarea/fesm2022/form-textarea.mjs.map +0 -1
  293. package/icon/fesm2022/icon.mjs.map +0 -1
  294. package/input/fesm2022/input.mjs.map +0 -1
  295. package/input/index.d.ts +0 -41
  296. package/label/fesm2022/label.mjs.map +0 -1
  297. package/popover/fesm2022/popover.mjs.map +0 -1
  298. package/popover/index.d.ts +0 -30
  299. package/select/fesm2022/select.mjs.map +0 -1
  300. package/select/index.d.ts +0 -92
  301. package/separator/fesm2022/separator.mjs.map +0 -1
  302. package/sheet/fesm2022/sheet.mjs.map +0 -1
  303. package/sonner/fesm2022/sonner.mjs.map +0 -1
  304. package/spinner/fesm2022/spinner.mjs.map +0 -1
  305. package/switch/fesm2022/switch.mjs.map +0 -1
  306. package/utils/fesm2022/utils.mjs.map +0 -1
  307. package/utils/index.d.ts +0 -5
  308. /package/alert/{index.d.ts → types/alert.d.ts} +0 -0
  309. /package/badge/{index.d.ts → types/badge.d.ts} +0 -0
  310. /package/basic-alert/{index.d.ts → types/basic-alert.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,11 @@
1
+ # Textarea
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 textarea
11
+ ```
@@ -0,0 +1,47 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Directive, NgModule } from '@angular/core';
3
+ import * as i2 from '@spartan-ng/brain/field';
4
+ import { BrnFieldControlDescribedBy } from '@spartan-ng/brain/field';
5
+ import * as i1 from '@spartan-ng/brain/textarea';
6
+ import { BrnTextarea } from '@spartan-ng/brain/textarea';
7
+ import { classes } from '@egose/shadcn-theme-ng/utils';
8
+
9
+ class HlmTextarea {
10
+ constructor() {
11
+ classes(() => "border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 rounded-md border bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 md:text-sm placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-50");
12
+ }
13
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmTextarea, deps: [], target: i0.ɵɵFactoryTarget.Directive });
14
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmTextarea, isStandalone: true, selector: "[hlmTextarea]", host: { attributes: { "data-slot": "textarea" } }, hostDirectives: [{ directive: i1.BrnTextarea, inputs: ["id", "id", "forceInvalid", "forceInvalid"] }, { directive: i2.BrnFieldControlDescribedBy }], ngImport: i0 });
15
+ }
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmTextarea, decorators: [{
17
+ type: Directive,
18
+ args: [{
19
+ selector: '[hlmTextarea]',
20
+ hostDirectives: [{ directive: BrnTextarea, inputs: ['id', 'forceInvalid'] }, BrnFieldControlDescribedBy],
21
+ host: { 'data-slot': 'textarea' },
22
+ }]
23
+ }], ctorParameters: () => [] });
24
+
25
+ /*
26
+ * Public API Surface of textarea
27
+ */
28
+ const HlmTextareaImports = [HlmTextarea];
29
+ class HlmTextareaModule {
30
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmTextareaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
31
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmTextareaModule, imports: [HlmTextarea], exports: [HlmTextarea] });
32
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmTextareaModule });
33
+ }
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmTextareaModule, decorators: [{
35
+ type: NgModule,
36
+ args: [{
37
+ imports: [...HlmTextareaImports],
38
+ exports: [...HlmTextareaImports],
39
+ }]
40
+ }] });
41
+
42
+ /**
43
+ * Generated bundle index. Do not edit.
44
+ */
45
+
46
+ export { HlmTextarea, HlmTextareaImports, HlmTextareaModule };
47
+
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "textarea",
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/textarea.mjs",
14
+ "typings": "types/textarea.d.ts",
15
+ "exports": {
16
+ "./package.json": {
17
+ "default": "./package.json"
18
+ },
19
+ ".": {
20
+ "types": "./types/textarea.d.ts",
21
+ "default": "./fesm2022/textarea.mjs"
22
+ }
23
+ },
24
+ "type": "module"
25
+ }
@@ -0,0 +1,18 @@
1
+ import * as i0 from '@angular/core';
2
+ import * as i1 from '@spartan-ng/brain/textarea';
3
+ import * as i2 from '@spartan-ng/brain/field';
4
+
5
+ declare class HlmTextarea {
6
+ constructor();
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmTextarea, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmTextarea, "[hlmTextarea]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnTextarea; inputs: { "id": "id"; "forceInvalid": "forceInvalid"; }; outputs: {}; }, { directive: typeof i2.BrnFieldControlDescribedBy; inputs: {}; outputs: {}; }]>;
9
+ }
10
+
11
+ declare const HlmTextareaImports: readonly [typeof HlmTextarea];
12
+ declare class HlmTextareaModule {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmTextareaModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<HlmTextareaModule, never, [typeof HlmTextarea], [typeof HlmTextarea]>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<HlmTextareaModule>;
16
+ }
17
+
18
+ export { HlmTextarea, HlmTextareaImports, HlmTextareaModule };
@@ -0,0 +1,11 @@
1
+ # Toggle
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 toggle
11
+ ```
@@ -0,0 +1,78 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, Directive, NgModule } from '@angular/core';
3
+ import * as i1 from '@spartan-ng/brain/toggle';
4
+ import { BrnToggle } from '@spartan-ng/brain/toggle';
5
+ import { classes } from '@egose/shadcn-theme-ng/utils';
6
+ import { cva } from 'class-variance-authority';
7
+
8
+ const toggleVariants = cva("hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 gap-1 rounded-md text-sm font-medium transition-[color,box-shadow] [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] group/toggle hover:bg-muted inline-flex items-center justify-center whitespace-nowrap outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0", {
9
+ variants: {
10
+ variant: {
11
+ default: "bg-transparent",
12
+ outline: "border-input hover:bg-muted border bg-transparent shadow-xs",
13
+ },
14
+ size: {
15
+ default: "h-9 min-w-9 px-2.5",
16
+ sm: "h-8 min-w-8 px-2.5",
17
+ lg: "h-10 min-w-10 px-2.5",
18
+ },
19
+ },
20
+ defaultVariants: {
21
+ variant: 'default',
22
+ size: 'default',
23
+ },
24
+ });
25
+ class HlmToggle {
26
+ variant = input('default', /* @ts-ignore */
27
+ ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
28
+ size = input('default', /* @ts-ignore */
29
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
30
+ constructor() {
31
+ classes(() => toggleVariants({
32
+ variant: this.variant(),
33
+ size: this.size(),
34
+ }));
35
+ }
36
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToggle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
37
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: HlmToggle, isStandalone: true, selector: "button[hlmToggle]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "toggle" } }, hostDirectives: [{ directive: i1.BrnToggle, inputs: ["id", "id", "value", "value", "disabled", "disabled", "state", "state", "aria-label", "aria-label", "type", "type"], outputs: ["stateChange", "stateChange"] }], ngImport: i0 });
38
+ }
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToggle, decorators: [{
40
+ type: Directive,
41
+ args: [{
42
+ selector: 'button[hlmToggle]',
43
+ hostDirectives: [
44
+ {
45
+ directive: BrnToggle,
46
+ inputs: ['id', 'value', 'disabled', 'state', 'aria-label', 'type'],
47
+ outputs: ['stateChange'],
48
+ },
49
+ ],
50
+ host: {
51
+ 'data-slot': 'toggle',
52
+ },
53
+ }]
54
+ }], ctorParameters: () => [], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
55
+
56
+ /*
57
+ * Public API Surface of toggle
58
+ */
59
+ const HlmToggleImports = [HlmToggle];
60
+ class HlmToggleModule {
61
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToggleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
62
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmToggleModule, imports: [HlmToggle], exports: [HlmToggle] });
63
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToggleModule });
64
+ }
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToggleModule, decorators: [{
66
+ type: NgModule,
67
+ args: [{
68
+ imports: [...HlmToggleImports],
69
+ exports: [...HlmToggleImports],
70
+ }]
71
+ }] });
72
+
73
+ /**
74
+ * Generated bundle index. Do not edit.
75
+ */
76
+
77
+ export { HlmToggle, HlmToggleImports, HlmToggleModule, toggleVariants };
78
+
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "toggle",
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/toggle.mjs",
14
+ "typings": "types/toggle.d.ts",
15
+ "exports": {
16
+ "./package.json": {
17
+ "default": "./package.json"
18
+ },
19
+ ".": {
20
+ "types": "./types/toggle.d.ts",
21
+ "default": "./fesm2022/toggle.mjs"
22
+ }
23
+ },
24
+ "type": "module"
25
+ }
@@ -0,0 +1,27 @@
1
+ import * as i0 from '@angular/core';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import * as i1 from '@spartan-ng/brain/toggle';
5
+
6
+ declare const toggleVariants: (props?: ({
7
+ variant?: "default" | "outline" | null | undefined;
8
+ size?: "default" | "sm" | "lg" | null | undefined;
9
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
10
+ type ToggleVariants = VariantProps<typeof toggleVariants>;
11
+ declare class HlmToggle {
12
+ readonly variant: i0.InputSignal<"default" | "outline" | null | undefined>;
13
+ readonly size: i0.InputSignal<"default" | "sm" | "lg" | null | undefined>;
14
+ constructor();
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmToggle, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmToggle, "button[hlmToggle]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnToggle; inputs: { "id": "id"; "value": "value"; "disabled": "disabled"; "state": "state"; "aria-label": "aria-label"; "type": "type"; }; outputs: { "stateChange": "stateChange"; }; }]>;
17
+ }
18
+
19
+ declare const HlmToggleImports: readonly [typeof HlmToggle];
20
+ declare class HlmToggleModule {
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmToggleModule, never>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<HlmToggleModule, never, [typeof HlmToggle], [typeof HlmToggle]>;
23
+ static ɵinj: i0.ɵɵInjectorDeclaration<HlmToggleModule>;
24
+ }
25
+
26
+ export { HlmToggle, HlmToggleImports, HlmToggleModule, toggleVariants };
27
+ export type { ToggleVariants };
@@ -0,0 +1,11 @@
1
+ # ToggleGroup
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 toggle-group
11
+ ```
@@ -0,0 +1,117 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, inject, input, numberAttribute, Directive, computed, NgModule } from '@angular/core';
3
+ import * as i1 from '@spartan-ng/brain/toggle-group';
4
+ import { BrnToggleGroup, BrnToggleGroupItem } from '@spartan-ng/brain/toggle-group';
5
+ import { classes } from '@egose/shadcn-theme-ng/utils';
6
+ import { toggleVariants } from '@egose/shadcn-theme-ng/toggle';
7
+
8
+ const HlmToggleGroupToken = new InjectionToken('HlmToggleGroupToken');
9
+ function injectHlmToggleGroup() {
10
+ return inject(HlmToggleGroupToken);
11
+ }
12
+ function provideHlmToggleGroup(toggleGroup) {
13
+ return { provide: HlmToggleGroupToken, useExisting: toggleGroup };
14
+ }
15
+
16
+ class HlmToggleGroup {
17
+ variant = input('default', /* @ts-ignore */
18
+ ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
19
+ size = input('default', /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
21
+ spacing = input(0, { ...(ngDevMode ? { debugName: "spacing" } : /* istanbul ignore next */ {}), transform: numberAttribute });
22
+ orientation = input('horizontal', /* @ts-ignore */
23
+ ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
24
+ constructor() {
25
+ classes(() => "rounded-md data-[spacing=0]:data-[variant=outline]:shadow-xs group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] data-vertical:flex-col data-vertical:items-stretch");
26
+ }
27
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToggleGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
28
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: HlmToggleGroup, isStandalone: true, selector: "[hlmToggleGroup],hlm-toggle-group", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "toggle-group" }, properties: { "attr.data-variant": "variant()", "attr.data-size": "size()", "attr.data-spacing": "spacing()", "attr.data-orientation": "orientation()", "style.--gap": "spacing()" } }, providers: [provideHlmToggleGroup(HlmToggleGroup)], hostDirectives: [{ directive: i1.BrnToggleGroup, inputs: ["type", "type", "value", "value", "nullable", "nullable", "disabled", "disabled"], outputs: ["valueChange", "valueChange"] }], ngImport: i0 });
29
+ }
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToggleGroup, decorators: [{
31
+ type: Directive,
32
+ args: [{
33
+ selector: '[hlmToggleGroup],hlm-toggle-group',
34
+ providers: [provideHlmToggleGroup(HlmToggleGroup)],
35
+ hostDirectives: [
36
+ {
37
+ directive: BrnToggleGroup,
38
+ inputs: ['type', 'value', 'nullable', 'disabled'],
39
+ outputs: ['valueChange'],
40
+ },
41
+ ],
42
+ host: {
43
+ 'data-slot': 'toggle-group',
44
+ '[attr.data-variant]': 'variant()',
45
+ '[attr.data-size]': 'size()',
46
+ '[attr.data-spacing]': 'spacing()',
47
+ '[attr.data-orientation]': 'orientation()',
48
+ '[style.--gap]': 'spacing()',
49
+ },
50
+ }]
51
+ }], ctorParameters: () => [], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }] } });
52
+
53
+ class HlmToggleGroupItem {
54
+ _toggleGroup = injectHlmToggleGroup();
55
+ variant = input('default', /* @ts-ignore */
56
+ ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
57
+ size = input('default', /* @ts-ignore */
58
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
59
+ _variant = computed(() => this._toggleGroup.variant() || this.variant(), /* @ts-ignore */
60
+ ...(ngDevMode ? [{ debugName: "_variant" }] : /* istanbul ignore next */ []));
61
+ _size = computed(() => this._toggleGroup.size() || this.size(), /* @ts-ignore */
62
+ ...(ngDevMode ? [{ debugName: "_size" }] : /* istanbul ignore next */ []));
63
+ constructor() {
64
+ classes(() => [
65
+ "data-[state=on]:bg-muted group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 group-data-[spacing=0]/toggle-group:shadow-none group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-s-md group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-md group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-e-md group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-md shrink-0 focus:z-10 focus-visible:z-10 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-s-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-s group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",
66
+ toggleVariants({
67
+ variant: this._variant(),
68
+ size: this._size(),
69
+ }),
70
+ ]);
71
+ }
72
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToggleGroupItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
73
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: HlmToggleGroupItem, isStandalone: true, selector: "button[hlmToggleGroupItem]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "toggle-group-item" }, properties: { "attr.data-variant": "_variant()", "attr.data-size": "_size()", "attr.data-spacing": "_toggleGroup.spacing()" } }, hostDirectives: [{ directive: i1.BrnToggleGroupItem, inputs: ["id", "id", "value", "value", "disabled", "disabled", "state", "state", "aria-label", "aria-label", "type", "type"], outputs: ["stateChange", "stateChange"] }], ngImport: i0 });
74
+ }
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToggleGroupItem, decorators: [{
76
+ type: Directive,
77
+ args: [{
78
+ selector: 'button[hlmToggleGroupItem]',
79
+ hostDirectives: [
80
+ {
81
+ directive: BrnToggleGroupItem,
82
+ inputs: ['id', 'value', 'disabled', 'state', 'aria-label', 'type'],
83
+ outputs: ['stateChange'],
84
+ },
85
+ ],
86
+ host: {
87
+ 'data-slot': 'toggle-group-item',
88
+ '[attr.data-variant]': '_variant()',
89
+ '[attr.data-size]': '_size()',
90
+ '[attr.data-spacing]': '_toggleGroup.spacing()',
91
+ },
92
+ }]
93
+ }], ctorParameters: () => [], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
94
+
95
+ /*
96
+ * Public API Surface of toggle-group
97
+ */
98
+ const HlmToggleGroupImports = [HlmToggleGroup, HlmToggleGroupItem];
99
+ class HlmToggleGroupModule {
100
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToggleGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
101
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmToggleGroupModule, imports: [HlmToggleGroup, HlmToggleGroupItem], exports: [HlmToggleGroup, HlmToggleGroupItem] });
102
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToggleGroupModule });
103
+ }
104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToggleGroupModule, decorators: [{
105
+ type: NgModule,
106
+ args: [{
107
+ imports: [...HlmToggleGroupImports],
108
+ exports: [...HlmToggleGroupImports],
109
+ }]
110
+ }] });
111
+
112
+ /**
113
+ * Generated bundle index. Do not edit.
114
+ */
115
+
116
+ export { HlmToggleGroup, HlmToggleGroupImports, HlmToggleGroupItem, HlmToggleGroupModule, HlmToggleGroupToken, injectHlmToggleGroup, provideHlmToggleGroup };
117
+
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "toggle-group",
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/toggle-group.mjs",
14
+ "typings": "types/toggle-group.d.ts",
15
+ "exports": {
16
+ "./package.json": {
17
+ "default": "./package.json"
18
+ },
19
+ ".": {
20
+ "types": "./types/toggle-group.d.ts",
21
+ "default": "./fesm2022/toggle-group.mjs"
22
+ }
23
+ },
24
+ "type": "module"
25
+ }
@@ -0,0 +1,45 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { InputSignal, InputSignalWithTransform, InjectionToken, Type, ExistingProvider } from '@angular/core';
3
+ import { NumberInput } from '@angular/cdk/coercion';
4
+ import * as i1 from '@spartan-ng/brain/toggle-group';
5
+ import { ToggleVariants } from '@egose/shadcn-theme-ng/toggle';
6
+
7
+ declare class HlmToggleGroup {
8
+ readonly variant: _angular_core.InputSignal<"default" | "outline" | null | undefined>;
9
+ readonly size: _angular_core.InputSignal<"default" | "sm" | "lg" | null | undefined>;
10
+ readonly spacing: _angular_core.InputSignalWithTransform<number, NumberInput>;
11
+ readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
12
+ constructor();
13
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmToggleGroup, never>;
14
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmToggleGroup, "[hlmToggleGroup],hlm-toggle-group", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnToggleGroup; inputs: { "type": "type"; "value": "value"; "nullable": "nullable"; "disabled": "disabled"; }; outputs: { "valueChange": "valueChange"; }; }]>;
15
+ }
16
+
17
+ interface HlmToggleGroupContext {
18
+ readonly variant: InputSignal<ToggleVariants['variant']>;
19
+ readonly size: InputSignal<ToggleVariants['size']>;
20
+ readonly spacing: InputSignalWithTransform<number, NumberInput>;
21
+ }
22
+ declare const HlmToggleGroupToken: InjectionToken<HlmToggleGroupContext>;
23
+ declare function injectHlmToggleGroup(): HlmToggleGroupContext;
24
+ declare function provideHlmToggleGroup(toggleGroup: Type<HlmToggleGroupContext>): ExistingProvider;
25
+
26
+ declare class HlmToggleGroupItem {
27
+ protected readonly _toggleGroup: HlmToggleGroupContext;
28
+ readonly variant: _angular_core.InputSignal<"default" | "outline" | null | undefined>;
29
+ readonly size: _angular_core.InputSignal<"default" | "sm" | "lg" | null | undefined>;
30
+ protected readonly _variant: _angular_core.Signal<"default" | "outline" | null | undefined>;
31
+ protected readonly _size: _angular_core.Signal<"default" | "sm" | "lg" | null | undefined>;
32
+ constructor();
33
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmToggleGroupItem, never>;
34
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmToggleGroupItem, "button[hlmToggleGroupItem]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.BrnToggleGroupItem; inputs: { "id": "id"; "value": "value"; "disabled": "disabled"; "state": "state"; "aria-label": "aria-label"; "type": "type"; }; outputs: { "stateChange": "stateChange"; }; }]>;
35
+ }
36
+
37
+ declare const HlmToggleGroupImports: readonly [typeof HlmToggleGroup, typeof HlmToggleGroupItem];
38
+ declare class HlmToggleGroupModule {
39
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmToggleGroupModule, never>;
40
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<HlmToggleGroupModule, never, [typeof HlmToggleGroup, typeof HlmToggleGroupItem], [typeof HlmToggleGroup, typeof HlmToggleGroupItem]>;
41
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<HlmToggleGroupModule>;
42
+ }
43
+
44
+ export { HlmToggleGroup, HlmToggleGroupImports, HlmToggleGroupItem, HlmToggleGroupModule, HlmToggleGroupToken, injectHlmToggleGroup, provideHlmToggleGroup };
45
+ export type { HlmToggleGroupContext };
@@ -0,0 +1,3 @@
1
+ # Tooltip Subpath
2
+
3
+ This project ships only as `@egose/shadcn-theme-ng/tooltip` or `@egose/shadcn-theme-ng-tw/tooltip`. See the [package README](../../README.md) for installation, compatibility, Tailwind variant, test, and release guidance. Do not publish this project directory independently.
@@ -0,0 +1,72 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Directive, NgModule } from '@angular/core';
3
+ import * as i1 from '@spartan-ng/brain/tooltip';
4
+ import { provideBrnTooltipDefaultOptions, BrnTooltip } from '@spartan-ng/brain/tooltip';
5
+ import { hlm } from '@egose/shadcn-theme-ng/utils';
6
+ import { cva } from 'class-variance-authority';
7
+
8
+ const DEFAULT_TOOLTIP_SVG_CLASS = 'bg-foreground fill-foreground z-50 block size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]';
9
+ const DEFAULT_TOOLTIP_CONTENT_CLASSES = hlm("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs bg-foreground text-background data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) text-balance");
10
+ const tooltipPositionVariants = cva("absolute", {
11
+ variants: {
12
+ position: {
13
+ top: "bottom-0 left-[calc(50%-5px)] translate-y-full",
14
+ bottom: "-top-2.5 left-[calc(50%-5px)] translate-y-0 rotate-180",
15
+ left: "-end-2.5 top-[calc(50%-5px)] translate-y-0 rotate-270 rtl:-rotate-270",
16
+ right: "-start-2.5 top-[calc(50%-5px)] translate-y-0 rotate-90 rtl:-rotate-90",
17
+ },
18
+ },
19
+ });
20
+ class HlmTooltip {
21
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive });
22
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmTooltip, isStandalone: true, selector: "[hlmTooltip]", providers: [
23
+ provideBrnTooltipDefaultOptions({
24
+ svgClasses: DEFAULT_TOOLTIP_SVG_CLASS,
25
+ tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
26
+ arrowClasses: (position) => hlm(tooltipPositionVariants({ position })),
27
+ }),
28
+ ], hostDirectives: [{ directive: i1.BrnTooltip, inputs: ["brnTooltip", "hlmTooltip", "position", "position", "hideDelay", "hideDelay", "showDelay", "showDelay", "tooltipDisabled", "tooltipDisabled"] }], ngImport: i0 });
29
+ }
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmTooltip, decorators: [{
31
+ type: Directive,
32
+ args: [{
33
+ selector: '[hlmTooltip]',
34
+ providers: [
35
+ provideBrnTooltipDefaultOptions({
36
+ svgClasses: DEFAULT_TOOLTIP_SVG_CLASS,
37
+ tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
38
+ arrowClasses: (position) => hlm(tooltipPositionVariants({ position })),
39
+ }),
40
+ ],
41
+ hostDirectives: [
42
+ {
43
+ directive: BrnTooltip,
44
+ inputs: ['brnTooltip: hlmTooltip', 'position', 'hideDelay', 'showDelay', 'tooltipDisabled'],
45
+ },
46
+ ],
47
+ }]
48
+ }] });
49
+
50
+ /*
51
+ * Public API Surface of tooltip
52
+ */
53
+ const HlmTooltipImports = [HlmTooltip];
54
+ class HlmTooltipModule {
55
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
56
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmTooltipModule, imports: [HlmTooltip], exports: [HlmTooltip] });
57
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmTooltipModule });
58
+ }
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmTooltipModule, decorators: [{
60
+ type: NgModule,
61
+ args: [{
62
+ imports: [...HlmTooltipImports],
63
+ exports: [...HlmTooltipImports],
64
+ }]
65
+ }] });
66
+
67
+ /**
68
+ * Generated bundle index. Do not edit.
69
+ */
70
+
71
+ export { DEFAULT_TOOLTIP_CONTENT_CLASSES, DEFAULT_TOOLTIP_SVG_CLASS, HlmTooltip, HlmTooltipImports, HlmTooltipModule, tooltipPositionVariants };
72
+
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "tooltip",
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/tooltip.mjs",
14
+ "typings": "types/tooltip.d.ts",
15
+ "exports": {
16
+ "./package.json": {
17
+ "default": "./package.json"
18
+ },
19
+ ".": {
20
+ "types": "./types/tooltip.d.ts",
21
+ "default": "./fesm2022/tooltip.mjs"
22
+ }
23
+ },
24
+ "type": "module"
25
+ }
@@ -0,0 +1,22 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as i0 from '@angular/core';
3
+ import * as i1 from '@spartan-ng/brain/tooltip';
4
+
5
+ declare const DEFAULT_TOOLTIP_SVG_CLASS = "bg-foreground fill-foreground z-50 block size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]";
6
+ declare const DEFAULT_TOOLTIP_CONTENT_CLASSES: string;
7
+ declare const tooltipPositionVariants: (props?: ({
8
+ position?: "top" | "bottom" | "left" | "right" | null | undefined;
9
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
10
+ declare class HlmTooltip {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmTooltip, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmTooltip, "[hlmTooltip]", never, {}, {}, never, never, true, [{ directive: typeof i1.BrnTooltip; inputs: { "brnTooltip": "hlmTooltip"; "position": "position"; "hideDelay": "hideDelay"; "showDelay": "showDelay"; "tooltipDisabled": "tooltipDisabled"; }; outputs: {}; }]>;
13
+ }
14
+
15
+ declare const HlmTooltipImports: readonly [typeof HlmTooltip];
16
+ declare class HlmTooltipModule {
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmTooltipModule, never>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<HlmTooltipModule, never, [typeof HlmTooltip], [typeof HlmTooltip]>;
19
+ static ɵinj: i0.ɵɵInjectorDeclaration<HlmTooltipModule>;
20
+ }
21
+
22
+ export { DEFAULT_TOOLTIP_CONTENT_CLASSES, DEFAULT_TOOLTIP_SVG_CLASS, HlmTooltip, HlmTooltipImports, HlmTooltipModule, tooltipPositionVariants };
@@ -0,0 +1,11 @@
1
+ # Typography
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 typography
11
+ ```