@egose/shadcn-theme-ng-tw 0.0.28 → 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 (209) hide show
  1. package/README.md +130 -13
  2. package/accordion/README.md +2 -63
  3. package/accordion/fesm2022/accordion.mjs +20 -20
  4. package/alert/README.md +2 -63
  5. package/alert/fesm2022/alert.mjs +18 -18
  6. package/alert-dialog/fesm2022/alert-dialog.mjs +48 -48
  7. package/alert-dialog/types/alert-dialog.d.ts +1 -1
  8. package/aspect-ratio/fesm2022/aspect-ratio.mjs +9 -9
  9. package/autocomplete/README.md +2 -63
  10. package/autocomplete/fesm2022/autocomplete.mjs +54 -54
  11. package/autocomplete/types/autocomplete.d.ts +1 -1
  12. package/avatar/fesm2022/avatar.mjs +32 -32
  13. package/badge/README.md +2 -63
  14. package/badge/fesm2022/badge.mjs +4 -4
  15. package/basic-alert/README.md +2 -63
  16. package/basic-alert/fesm2022/basic-alert.mjs +4 -4
  17. package/basic-alert/types/basic-alert.d.ts +1 -1
  18. package/breadcrumb/fesm2022/breadcrumb.mjs +34 -34
  19. package/button/README.md +2 -63
  20. package/button/fesm2022/button.mjs +11 -11
  21. package/button/types/button.d.ts +2 -2
  22. package/button-group/fesm2022/button-group.mjs +20 -20
  23. package/calendar/README.md +2 -63
  24. package/calendar/fesm2022/calendar.mjs +154 -154
  25. package/card/fesm2022/card.mjs +33 -33
  26. package/carousel/fesm2022/carousel.mjs +44 -44
  27. package/carousel/types/carousel.d.ts +1 -1
  28. package/checkbox/README.md +2 -63
  29. package/checkbox/fesm2022/checkbox.mjs +22 -20
  30. package/checkbox/types/checkbox.d.ts +5 -4
  31. package/collapsible/fesm2022/collapsible.mjs +15 -15
  32. package/combobox/fesm2022/combobox.mjs +92 -92
  33. package/combobox/types/combobox.d.ts +1 -1
  34. package/command/fesm2022/command.mjs +56 -56
  35. package/confirmation-dialog/README.md +2 -63
  36. package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +13 -12
  37. package/confirmation-dialog/types/confirmation-dialog.d.ts +9 -5
  38. package/context-menu/fesm2022/context-menu.mjs +9 -9
  39. package/date-picker/README.md +2 -63
  40. package/date-picker/fesm2022/date-picker.mjs +79 -68
  41. package/date-picker/types/date-picker.d.ts +8 -4
  42. package/dialog/README.md +2 -63
  43. package/dialog/fesm2022/dialog.mjs +48 -48
  44. package/drawer/fesm2022/drawer.mjs +45 -45
  45. package/dropdown-menu/fesm2022/dropdown-menu.mjs +85 -73
  46. package/dropdown-menu/types/dropdown-menu.d.ts +4 -0
  47. package/empty/fesm2022/empty.mjs +31 -31
  48. package/field/fesm2022/field.mjs +59 -59
  49. package/field/types/field.d.ts +1 -1
  50. package/form-checkbox/README.md +2 -63
  51. package/form-checkbox/fesm2022/form-checkbox.mjs +37 -19
  52. package/form-checkbox/types/form-checkbox.d.ts +7 -1
  53. package/form-date-picker/README.md +2 -63
  54. package/form-date-picker/fesm2022/form-date-picker.mjs +59 -24
  55. package/form-date-picker/types/form-date-picker.d.ts +7 -1
  56. package/form-field/README.md +2 -63
  57. package/form-field/fesm2022/form-field.mjs +30 -16
  58. package/form-field/types/form-field.d.ts +28 -20
  59. package/form-field-simple/README.md +2 -63
  60. package/form-field-simple/fesm2022/form-field-simple.mjs +4 -4
  61. package/form-searchable-multiselect/README.md +2 -63
  62. package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs +41 -21
  63. package/form-searchable-multiselect/types/form-searchable-multiselect.d.ts +8 -2
  64. package/form-select/README.md +2 -63
  65. package/form-select/fesm2022/form-select.mjs +62 -29
  66. package/form-select/types/form-select.d.ts +7 -1
  67. package/form-text-input/README.md +2 -63
  68. package/form-text-input/fesm2022/form-text-input.mjs +43 -55
  69. package/form-text-input/types/form-text-input.d.ts +9 -12
  70. package/form-textarea/README.md +2 -63
  71. package/form-textarea/fesm2022/form-textarea.mjs +42 -23
  72. package/form-textarea/types/form-textarea.d.ts +8 -1
  73. package/hover-card/fesm2022/hover-card.mjs +19 -19
  74. package/icon/README.md +2 -63
  75. package/icon/fesm2022/icon.mjs +8 -8
  76. package/input/README.md +2 -63
  77. package/input/fesm2022/input.mjs +17 -12
  78. package/input/types/input.d.ts +2 -1
  79. package/input-group/fesm2022/input-group.mjs +37 -37
  80. package/input-group/types/input-group.d.ts +3 -3
  81. package/input-otp/fesm2022/input-otp.mjs +27 -27
  82. package/item/fesm2022/item.mjs +54 -54
  83. package/kbd/fesm2022/kbd.mjs +13 -13
  84. package/label/README.md +2 -63
  85. package/label/fesm2022/label.mjs +9 -9
  86. package/label/types/label.d.ts +1 -1
  87. package/layout-simple/README.md +2 -63
  88. package/layout-simple/fesm2022/layout-simple.mjs +88 -37
  89. package/layout-simple/types/layout-simple.d.ts +26 -12
  90. package/menu/README.md +3 -0
  91. package/menu/fesm2022/menu.mjs +461 -0
  92. package/menu/package.json +24 -0
  93. package/menu/types/menu.d.ts +137 -0
  94. package/menubar/fesm2022/menubar.mjs +13 -13
  95. package/native-select/fesm2022/native-select.mjs +19 -19
  96. package/navigation-menu/fesm2022/navigation-menu.mjs +37 -37
  97. package/package.json +183 -154
  98. package/pagination/fesm2022/pagination.mjs +63 -63
  99. package/popover/README.md +2 -63
  100. package/popover/fesm2022/popover.mjs +30 -30
  101. package/progress/fesm2022/progress.mjs +13 -13
  102. package/radio-group/README.md +2 -63
  103. package/radio-group/fesm2022/radio-group.mjs +22 -19
  104. package/resizable/fesm2022/resizable.mjs +19 -19
  105. package/scroll-area/fesm2022/scroll-area.mjs +9 -9
  106. package/searchable-multiselect/README.md +2 -63
  107. package/searchable-multiselect/fesm2022/searchable-multiselect.mjs +63 -16
  108. package/searchable-multiselect/types/searchable-multiselect.d.ts +8 -2
  109. package/select/README.md +2 -63
  110. package/select/fesm2022/select.mjs +80 -72
  111. package/select/types/select.d.ts +3 -1
  112. package/separator/README.md +2 -63
  113. package/separator/fesm2022/separator.mjs +9 -9
  114. package/separator/types/separator.d.ts +1 -1
  115. package/sheet/README.md +2 -63
  116. package/sheet/fesm2022/sheet.mjs +30 -30
  117. package/sidebar/fesm2022/sidebar.mjs +136 -134
  118. package/sidebar/types/sidebar.d.ts +3 -3
  119. package/skeleton/fesm2022/skeleton.mjs +9 -9
  120. package/slider/fesm2022/slider.mjs +25 -25
  121. package/sonner/README.md +2 -63
  122. package/sonner/fesm2022/sonner.mjs +9 -9
  123. package/spinner/README.md +2 -63
  124. package/spinner/fesm2022/spinner.mjs +8 -8
  125. package/switch/README.md +2 -63
  126. package/switch/fesm2022/switch.mjs +12 -14
  127. package/table/fesm2022/table.mjs +41 -41
  128. package/tabs/README.md +2 -63
  129. package/tabs/fesm2022/tabs.mjs +38 -38
  130. package/textarea/fesm2022/textarea.mjs +9 -9
  131. package/toggle/fesm2022/toggle.mjs +14 -14
  132. package/toggle-group/fesm2022/toggle-group.mjs +13 -13
  133. package/toggle-group/types/toggle-group.d.ts +13 -7
  134. package/tooltip/README.md +2 -63
  135. package/tooltip/fesm2022/tooltip.mjs +14 -14
  136. package/typography/fesm2022/typography.mjs +53 -53
  137. package/typography/types/typography.d.ts +12 -12
  138. package/utils/README.md +2 -63
  139. package/utils/fesm2022/utils.mjs +68 -44
  140. package/accordion/fesm2022/accordion.mjs.map +0 -1
  141. package/alert/fesm2022/alert.mjs.map +0 -1
  142. package/alert-dialog/fesm2022/alert-dialog.mjs.map +0 -1
  143. package/aspect-ratio/fesm2022/aspect-ratio.mjs.map +0 -1
  144. package/autocomplete/fesm2022/autocomplete.mjs.map +0 -1
  145. package/avatar/fesm2022/avatar.mjs.map +0 -1
  146. package/badge/fesm2022/badge.mjs.map +0 -1
  147. package/basic-alert/fesm2022/basic-alert.mjs.map +0 -1
  148. package/breadcrumb/fesm2022/breadcrumb.mjs.map +0 -1
  149. package/button/fesm2022/button.mjs.map +0 -1
  150. package/button-group/fesm2022/button-group.mjs.map +0 -1
  151. package/calendar/fesm2022/calendar.mjs.map +0 -1
  152. package/card/fesm2022/card.mjs.map +0 -1
  153. package/carousel/fesm2022/carousel.mjs.map +0 -1
  154. package/checkbox/fesm2022/checkbox.mjs.map +0 -1
  155. package/collapsible/fesm2022/collapsible.mjs.map +0 -1
  156. package/combobox/fesm2022/combobox.mjs.map +0 -1
  157. package/command/fesm2022/command.mjs.map +0 -1
  158. package/confirmation-dialog/fesm2022/confirmation-dialog.mjs.map +0 -1
  159. package/context-menu/fesm2022/context-menu.mjs.map +0 -1
  160. package/date-picker/fesm2022/date-picker.mjs.map +0 -1
  161. package/dialog/fesm2022/dialog.mjs.map +0 -1
  162. package/drawer/fesm2022/drawer.mjs.map +0 -1
  163. package/dropdown-menu/fesm2022/dropdown-menu.mjs.map +0 -1
  164. package/empty/fesm2022/empty.mjs.map +0 -1
  165. package/field/fesm2022/field.mjs.map +0 -1
  166. package/form-checkbox/fesm2022/form-checkbox.mjs.map +0 -1
  167. package/form-date-picker/fesm2022/form-date-picker.mjs.map +0 -1
  168. package/form-field/fesm2022/form-field.mjs.map +0 -1
  169. package/form-field-simple/fesm2022/form-field-simple.mjs.map +0 -1
  170. package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs.map +0 -1
  171. package/form-select/fesm2022/form-select.mjs.map +0 -1
  172. package/form-text-input/fesm2022/form-text-input.mjs.map +0 -1
  173. package/form-textarea/fesm2022/form-textarea.mjs.map +0 -1
  174. package/hover-card/fesm2022/hover-card.mjs.map +0 -1
  175. package/icon/fesm2022/icon.mjs.map +0 -1
  176. package/input/fesm2022/input.mjs.map +0 -1
  177. package/input-group/fesm2022/input-group.mjs.map +0 -1
  178. package/input-otp/fesm2022/input-otp.mjs.map +0 -1
  179. package/item/fesm2022/item.mjs.map +0 -1
  180. package/kbd/fesm2022/kbd.mjs.map +0 -1
  181. package/label/fesm2022/label.mjs.map +0 -1
  182. package/layout-simple/fesm2022/layout-simple.mjs.map +0 -1
  183. package/menubar/fesm2022/menubar.mjs.map +0 -1
  184. package/native-select/fesm2022/native-select.mjs.map +0 -1
  185. package/navigation-menu/fesm2022/navigation-menu.mjs.map +0 -1
  186. package/pagination/fesm2022/pagination.mjs.map +0 -1
  187. package/popover/fesm2022/popover.mjs.map +0 -1
  188. package/progress/fesm2022/progress.mjs.map +0 -1
  189. package/radio-group/fesm2022/radio-group.mjs.map +0 -1
  190. package/resizable/fesm2022/resizable.mjs.map +0 -1
  191. package/scroll-area/fesm2022/scroll-area.mjs.map +0 -1
  192. package/searchable-multiselect/fesm2022/searchable-multiselect.mjs.map +0 -1
  193. package/select/fesm2022/select.mjs.map +0 -1
  194. package/separator/fesm2022/separator.mjs.map +0 -1
  195. package/sheet/fesm2022/sheet.mjs.map +0 -1
  196. package/sidebar/fesm2022/sidebar.mjs.map +0 -1
  197. package/skeleton/fesm2022/skeleton.mjs.map +0 -1
  198. package/slider/fesm2022/slider.mjs.map +0 -1
  199. package/sonner/fesm2022/sonner.mjs.map +0 -1
  200. package/spinner/fesm2022/spinner.mjs.map +0 -1
  201. package/switch/fesm2022/switch.mjs.map +0 -1
  202. package/table/fesm2022/table.mjs.map +0 -1
  203. package/tabs/fesm2022/tabs.mjs.map +0 -1
  204. package/textarea/fesm2022/textarea.mjs.map +0 -1
  205. package/toggle/fesm2022/toggle.mjs.map +0 -1
  206. package/toggle-group/fesm2022/toggle-group.mjs.map +0 -1
  207. package/tooltip/fesm2022/tooltip.mjs.map +0 -1
  208. package/typography/fesm2022/typography.mjs.map +0 -1
  209. package/utils/fesm2022/utils.mjs.map +0 -1
@@ -8,19 +8,19 @@ import * as i1$1 from '@egose/shadcn-theme-ng-tw/label';
8
8
  import { HlmLabel } from '@egose/shadcn-theme-ng-tw/label';
9
9
  import { HlmSeparator } from '@egose/shadcn-theme-ng-tw/separator';
10
10
 
11
- const fieldVariants = cva('data-[matches-spartan-invalid=true]:text-destructive gap-3 group/field flex w-full', {
11
+ const fieldVariants = cva('tw:data-[matches-spartan-invalid=true]:text-destructive tw:gap-3 tw:group/field tw:flex tw:w-full', {
12
12
  variants: {
13
13
  orientation: {
14
- vertical: 'flex-col *:w-full [&>.sr-only]:w-auto',
14
+ vertical: 'tw:flex-col tw:*:w-full tw:[&>.sr-only]:w-auto',
15
15
  horizontal: [
16
- 'flex-row items-center',
17
- '*:data-[slot=field-label]:flex-auto',
18
- 'has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px',
16
+ 'tw:flex-row tw:items-center',
17
+ 'tw:*:data-[slot=field-label]:flex-auto',
18
+ 'tw:has-[>[data-slot=field-content]]:items-start tw:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px',
19
19
  ],
20
20
  responsive: [
21
- 'flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto [&>.sr-only]:w-auto',
22
- '@md/field-group:*:data-[slot=field-label]:flex-auto',
23
- '@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px',
21
+ 'tw:flex-col tw:*:w-full tw:@md/field-group:flex-row tw:@md/field-group:items-center tw:@md/field-group:*:w-auto tw:[&>.sr-only]:w-auto',
22
+ 'tw:@md/field-group:*:data-[slot=field-label]:flex-auto',
23
+ 'tw:@md/field-group:has-[>[data-slot=field-content]]:items-start tw:@md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px',
24
24
  ],
25
25
  },
26
26
  },
@@ -34,10 +34,10 @@ class HlmField {
34
34
  constructor() {
35
35
  classes(() => fieldVariants({ orientation: this.orientation() }));
36
36
  }
37
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmField, deps: [], target: i0.ɵɵFactoryTarget.Directive });
38
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.7", type: HlmField, isStandalone: true, selector: "[hlmField],hlm-field", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group", "data-slot": "field" }, properties: { "attr.data-orientation": "orientation()" } }, hostDirectives: [{ directive: i1.BrnField, inputs: ["data-invalid", "data-invalid", "forceInvalid", "forceInvalid"] }], ngImport: i0 });
37
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmField, deps: [], target: i0.ɵɵFactoryTarget.Directive });
38
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: HlmField, isStandalone: true, selector: "[hlmField],hlm-field", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group", "data-slot": "field" }, properties: { "attr.data-orientation": "orientation()" } }, hostDirectives: [{ directive: i1.BrnField, inputs: ["data-invalid", "data-invalid", "forceInvalid", "forceInvalid"] }], ngImport: i0 });
39
39
  }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmField, decorators: [{
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmField, decorators: [{
41
41
  type: Directive,
42
42
  args: [{
43
43
  selector: '[hlmField],hlm-field',
@@ -52,12 +52,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
52
52
 
53
53
  class HlmFieldContent {
54
54
  constructor() {
55
- classes(() => 'gap-1 group/field-content flex flex-1 flex-col leading-snug');
55
+ classes(() => 'tw:gap-1 tw:group/field-content tw:flex tw:flex-1 tw:flex-col tw:leading-snug');
56
56
  }
57
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
58
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmFieldContent, isStandalone: true, selector: "[hlmFieldContent],hlm-field-content", host: { attributes: { "data-slot": "field-content" } }, ngImport: i0 });
57
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
58
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmFieldContent, isStandalone: true, selector: "[hlmFieldContent],hlm-field-content", host: { attributes: { "data-slot": "field-content" } }, ngImport: i0 });
59
59
  }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldContent, decorators: [{
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldContent, decorators: [{
61
61
  type: Directive,
62
62
  args: [{
63
63
  selector: '[hlmFieldContent],hlm-field-content',
@@ -88,9 +88,9 @@ class HlmFieldDescription {
88
88
  : null;
89
89
  constructor() {
90
90
  classes(() => [
91
- 'text-muted-foreground text-start text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-data-horizontal/field:text-balance',
92
- 'last:mt-0 nth-last-2:-mt-1',
93
- '[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4',
91
+ 'tw:text-muted-foreground tw:text-start tw:text-sm tw:[[data-variant=legend]+&]:-mt-1.5 tw:leading-normal tw:font-normal tw:group-has-data-horizontal/field:text-balance',
92
+ 'tw:last:mt-0 tw:nth-last-2:-mt-1',
93
+ 'tw:[&>a:hover]:text-primary tw:[&>a]:underline tw:[&>a]:underline-offset-4',
94
94
  ]);
95
95
  }
96
96
  ngOnDestroy() {
@@ -99,10 +99,10 @@ class HlmFieldDescription {
99
99
  this._a11y?.unregisterDescription(this._registeredId);
100
100
  }
101
101
  }
102
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
103
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.7", type: HlmFieldDescription, isStandalone: true, selector: "[hlmFieldDescription],hlm-field-description", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-description" }, properties: { "attr.id": "id()" } }, ngImport: i0 });
102
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
103
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: HlmFieldDescription, isStandalone: true, selector: "[hlmFieldDescription],hlm-field-description", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-description" }, properties: { "attr.id": "id()" } }, ngImport: i0 });
104
104
  }
105
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldDescription, decorators: [{
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldDescription, decorators: [{
106
106
  type: Directive,
107
107
  args: [{
108
108
  selector: '[hlmFieldDescription],hlm-field-description',
@@ -161,7 +161,7 @@ class HlmFieldError {
161
161
  })
162
162
  : null;
163
163
  constructor() {
164
- classes(() => 'text-destructive text-sm font-normal');
164
+ classes(() => 'tw:text-destructive tw:text-sm tw:font-normal');
165
165
  }
166
166
  ngOnDestroy() {
167
167
  this._cleanup?.destroy();
@@ -169,14 +169,14 @@ class HlmFieldError {
169
169
  this._a11y?.unregisterError(this._registeredId);
170
170
  }
171
171
  }
172
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldError, deps: [], target: i0.ɵɵFactoryTarget.Component });
173
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: HlmFieldError, isStandalone: true, selector: "hlm-field-error", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, validator: { classPropertyName: "validator", publicName: "validator", isSignal: true, isRequired: false, transformFunction: null }, forceShow: { classPropertyName: "forceShow", publicName: "forceShow", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "alert", "data-slot": "field-error" }, properties: { "attr.id": "id()", "hidden": "!_display()" } }, ngImport: i0, template: `
172
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldError, deps: [], target: i0.ɵɵFactoryTarget.Component });
173
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: HlmFieldError, isStandalone: true, selector: "hlm-field-error", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, validator: { classPropertyName: "validator", publicName: "validator", isSignal: true, isRequired: false, transformFunction: null }, forceShow: { classPropertyName: "forceShow", publicName: "forceShow", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "alert", "data-slot": "field-error" }, properties: { "attr.id": "id()", "hidden": "!_display()" } }, ngImport: i0, template: `
174
174
  @if (_display()) {
175
175
  <ng-content />
176
176
  }
177
177
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
178
178
  }
179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldError, decorators: [{
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldError, decorators: [{
180
180
  type: Component,
181
181
  args: [{
182
182
  selector: 'hlm-field-error',
@@ -197,12 +197,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
197
197
 
198
198
  class HlmFieldGroup {
199
199
  constructor() {
200
- classes(() => 'gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4 group/field-group @container/field-group flex w-full flex-col');
200
+ classes(() => 'tw:gap-7 tw:data-[slot=checkbox-group]:gap-3 tw:*:data-[slot=field-group]:gap-4 tw:group/field-group tw:@container/field-group tw:flex tw:w-full tw:flex-col');
201
201
  }
202
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
203
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmFieldGroup, isStandalone: true, selector: "[hlmFieldGroup],hlm-field-group", host: { attributes: { "data-slot": "field-group" } }, ngImport: i0 });
202
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
203
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmFieldGroup, isStandalone: true, selector: "[hlmFieldGroup],hlm-field-group", host: { attributes: { "data-slot": "field-group" } }, ngImport: i0 });
204
204
  }
205
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldGroup, decorators: [{
205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldGroup, decorators: [{
206
206
  type: Directive,
207
207
  args: [{
208
208
  selector: '[hlmFieldGroup],hlm-field-group',
@@ -213,14 +213,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
213
213
  class HlmFieldLabel {
214
214
  constructor() {
215
215
  classes(() => [
216
- 'has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border *:data-[slot=field]:p-3 group/field-label peer/field-label flex w-fit',
217
- 'has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col',
216
+ 'tw:has-data-checked:bg-primary/5 tw:has-data-checked:border-primary/30 tw:dark:has-data-checked:border-primary/20 tw:dark:has-data-checked:bg-primary/10 tw:gap-2 tw:leading-snug tw:group-data-[disabled=true]/field:opacity-50 tw:has-[>[data-slot=field]]:rounded-md tw:has-[>[data-slot=field]]:border tw:*:data-[slot=field]:p-3 tw:group/field-label tw:peer/field-label tw:flex tw:w-fit',
217
+ 'tw:has-[>[data-slot=field]]:w-full tw:has-[>[data-slot=field]]:flex-col',
218
218
  ]);
219
219
  }
220
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
221
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmFieldLabel, isStandalone: true, selector: "[hlmFieldLabel],hlm-field-label", host: { attributes: { "data-slot": "field-label" } }, hostDirectives: [{ directive: i1$1.HlmLabel }], ngImport: i0 });
220
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
221
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmFieldLabel, isStandalone: true, selector: "[hlmFieldLabel],hlm-field-label", host: { attributes: { "data-slot": "field-label" } }, hostDirectives: [{ directive: i1$1.HlmLabel }], ngImport: i0 });
222
222
  }
223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldLabel, decorators: [{
223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldLabel, decorators: [{
224
224
  type: Directive,
225
225
  args: [{
226
226
  selector: '[hlmFieldLabel],hlm-field-label',
@@ -233,12 +233,12 @@ class HlmFieldLegend {
233
233
  variant = input('legend', /* @ts-ignore */
234
234
  ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
235
235
  constructor() {
236
- classes(() => 'mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base');
236
+ classes(() => 'tw:mb-3 tw:font-medium tw:data-[variant=label]:text-sm tw:data-[variant=legend]:text-base');
237
237
  }
238
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldLegend, deps: [], target: i0.ɵɵFactoryTarget.Directive });
239
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.7", type: HlmFieldLegend, isStandalone: true, selector: "legend[hlmFieldLegend]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-legend" }, properties: { "attr.data-variant": "variant()" } }, ngImport: i0 });
238
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldLegend, deps: [], target: i0.ɵɵFactoryTarget.Directive });
239
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: HlmFieldLegend, isStandalone: true, selector: "legend[hlmFieldLegend]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-legend" }, properties: { "attr.data-variant": "variant()" } }, ngImport: i0 });
240
240
  }
241
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldLegend, decorators: [{
241
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldLegend, decorators: [{
242
242
  type: Directive,
243
243
  args: [{
244
244
  selector: 'legend[hlmFieldLegend]',
@@ -251,20 +251,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
251
251
 
252
252
  class HlmFieldSeparator {
253
253
  constructor() {
254
- classes(() => '-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2 relative');
254
+ classes(() => 'tw:-my-2 tw:h-5 tw:text-sm tw:group-data-[variant=outline]/field-group:-mb-2 tw:relative');
255
255
  }
256
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldSeparator, deps: [], target: i0.ɵɵFactoryTarget.Component });
257
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.7", type: HlmFieldSeparator, isStandalone: true, selector: "hlm-field-separator", host: { attributes: { "data-slot": "field-separator" } }, ngImport: i0, template: `
258
- <hlm-separator class="absolute inset-0 top-1/2" />
256
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldSeparator, deps: [], target: i0.ɵɵFactoryTarget.Component });
257
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.3", type: HlmFieldSeparator, isStandalone: true, selector: "hlm-field-separator", host: { attributes: { "data-slot": "field-separator" } }, ngImport: i0, template: `
258
+ <hlm-separator class="tw:absolute tw:inset-0 tw:top-1/2" />
259
259
  <span
260
260
  data-slot="field-separator-content"
261
- class="text-muted-foreground px-2 bg-background relative mx-auto block w-fit"
261
+ class="tw:text-muted-foreground tw:px-2 tw:bg-background tw:relative tw:mx-auto tw:block tw:w-fit"
262
262
  >
263
263
  <ng-content />
264
264
  </span>
265
265
  `, isInline: true, dependencies: [{ kind: "directive", type: HlmSeparator, selector: "[hlmSeparator],hlm-separator" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
266
266
  }
267
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldSeparator, decorators: [{
267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldSeparator, decorators: [{
268
268
  type: Component,
269
269
  args: [{
270
270
  selector: 'hlm-field-separator',
@@ -272,10 +272,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
272
272
  changeDetection: ChangeDetectionStrategy.OnPush,
273
273
  host: { 'data-slot': 'field-separator' },
274
274
  template: `
275
- <hlm-separator class="absolute inset-0 top-1/2" />
275
+ <hlm-separator class="tw:absolute tw:inset-0 tw:top-1/2" />
276
276
  <span
277
277
  data-slot="field-separator-content"
278
- class="text-muted-foreground px-2 bg-background relative mx-auto block w-fit"
278
+ class="tw:text-muted-foreground tw:px-2 tw:bg-background tw:relative tw:mx-auto tw:block tw:w-fit"
279
279
  >
280
280
  <ng-content />
281
281
  </span>
@@ -285,12 +285,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
285
285
 
286
286
  class HlmFieldSet {
287
287
  constructor() {
288
- classes(() => 'gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col');
288
+ classes(() => 'tw:gap-6 tw:has-[>[data-slot=checkbox-group]]:gap-3 tw:has-[>[data-slot=radio-group]]:gap-3 tw:flex tw:flex-col');
289
289
  }
290
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldSet, deps: [], target: i0.ɵɵFactoryTarget.Directive });
291
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmFieldSet, isStandalone: true, selector: "fieldset[hlmFieldSet]", host: { attributes: { "data-slot": "field-set" } }, ngImport: i0 });
290
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldSet, deps: [], target: i0.ɵɵFactoryTarget.Directive });
291
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmFieldSet, isStandalone: true, selector: "fieldset[hlmFieldSet]", host: { attributes: { "data-slot": "field-set" } }, ngImport: i0 });
292
292
  }
293
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldSet, decorators: [{
293
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldSet, decorators: [{
294
294
  type: Directive,
295
295
  args: [{
296
296
  selector: 'fieldset[hlmFieldSet]',
@@ -300,12 +300,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
300
300
 
301
301
  class HlmFieldTitle {
302
302
  constructor() {
303
- classes(() => 'gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center');
303
+ classes(() => 'tw:gap-2 tw:text-sm tw:leading-snug tw:font-medium tw:group-data-[disabled=true]/field:opacity-50 tw:flex tw:w-fit tw:items-center');
304
304
  }
305
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
306
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmFieldTitle, isStandalone: true, selector: "[hlmFieldTitle],hlm-field-title", host: { attributes: { "data-slot": "field-label" } }, ngImport: i0 });
305
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
306
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmFieldTitle, isStandalone: true, selector: "[hlmFieldTitle],hlm-field-title", host: { attributes: { "data-slot": "field-label" } }, ngImport: i0 });
307
307
  }
308
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldTitle, decorators: [{
308
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldTitle, decorators: [{
309
309
  type: Directive,
310
310
  args: [{
311
311
  selector: '[hlmFieldTitle],hlm-field-title',
@@ -329,8 +329,8 @@ const HlmFieldImports = [
329
329
  HlmFieldTitle,
330
330
  ];
331
331
  class HlmFieldModule {
332
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
333
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldModule, imports: [HlmField,
332
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
333
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldModule, imports: [HlmField,
334
334
  HlmFieldContent,
335
335
  HlmFieldDescription,
336
336
  HlmFieldError,
@@ -349,9 +349,9 @@ class HlmFieldModule {
349
349
  HlmFieldSeparator,
350
350
  HlmFieldSet,
351
351
  HlmFieldTitle] });
352
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldModule });
352
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldModule });
353
353
  }
354
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmFieldModule, decorators: [{
354
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmFieldModule, decorators: [{
355
355
  type: NgModule,
356
356
  args: [{
357
357
  imports: [...HlmFieldImports],
@@ -364,4 +364,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
364
364
  */
365
365
 
366
366
  export { HlmField, HlmFieldContent, HlmFieldDescription, HlmFieldError, HlmFieldGroup, HlmFieldImports, HlmFieldLabel, HlmFieldLegend, HlmFieldModule, HlmFieldSeparator, HlmFieldSet, HlmFieldTitle };
367
- //# sourceMappingURL=field.mjs.map
367
+
@@ -4,7 +4,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import * as i1 from '@spartan-ng/brain/field';
6
6
  import { BooleanInput } from '@angular/cdk/coercion';
7
- import * as i1$1 from '@egose/shadcn-theme-ng/label';
7
+ import * as i1$1 from '@egose/shadcn-theme-ng-tw/label';
8
8
 
9
9
  declare const fieldVariants: (props?: ({
10
10
  orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
@@ -1,64 +1,3 @@
1
- # FormCheckbox
1
+ # Form Checkbox Subpath
2
2
 
3
- This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.3.0.
4
-
5
- ## Code scaffolding
6
-
7
- Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
8
-
9
- ```bash
10
- ng generate component component-name
11
- ```
12
-
13
- For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
14
-
15
- ```bash
16
- ng generate --help
17
- ```
18
-
19
- ## Building
20
-
21
- To build the library, run:
22
-
23
- ```bash
24
- ng build form-checkbox
25
- ```
26
-
27
- This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
-
29
- ### Publishing the Library
30
-
31
- Once the project is built, you can publish your library by following these steps:
32
-
33
- 1. Navigate to the `dist` directory:
34
-
35
- ```bash
36
- cd dist/form-checkbox
37
- ```
38
-
39
- 2. Run the `npm publish` command to publish your library to the npm registry:
40
- ```bash
41
- npm publish
42
- ```
43
-
44
- ## Running unit tests
45
-
46
- To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
47
-
48
- ```bash
49
- ng test
50
- ```
51
-
52
- ## Running end-to-end tests
53
-
54
- For end-to-end (e2e) testing, run:
55
-
56
- ```bash
57
- ng e2e
58
- ```
59
-
60
- Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
61
-
62
- ## Additional Resources
63
-
64
- For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
3
+ This project ships only as `@egose/shadcn-theme-ng/form-checkbox` or `@egose/shadcn-theme-ng-tw/form-checkbox`. See the [package README](../../README.md) for installation, compatibility, Tailwind variant, test, and release guidance. Do not publish this project directory independently.
@@ -1,14 +1,16 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import { inject, input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import * as i1 from '@angular/forms';
4
- import { ReactiveFormsModule, FormGroupDirective, ControlContainer } from '@angular/forms';
4
+ import { FormGroupDirective, ReactiveFormsModule, ControlContainer } from '@angular/forms';
5
5
  import { HlmLabel } from '@egose/shadcn-theme-ng-tw/label';
6
6
  import { HlmCheckbox } from '@egose/shadcn-theme-ng-tw/checkbox';
7
- import { HlmError, HlmHint } from '@egose/shadcn-theme-ng-tw/form-field';
7
+ import { HlmFormIdGenerator, HlmError, HlmHint } from '@egose/shadcn-theme-ng-tw/form-field';
8
8
  import { EgFormField } from '@egose/shadcn-theme-ng-tw/form-field-simple';
9
9
  import { hlm } from '@egose/shadcn-theme-ng-tw/utils';
10
10
 
11
11
  class EgFormCheckbox {
12
+ formGroupDirective = inject(FormGroupDirective);
13
+ generatedId = inject(HlmFormIdGenerator).generate('eg-form-checkbox');
12
14
  // Classes
13
15
  userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
14
16
  _computedClass = computed(() => hlm('', this.userClass()), /* @ts-ignore */
@@ -24,7 +26,7 @@ class EgFormCheckbox {
24
26
  ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
25
27
  hint = input(undefined, /* @ts-ignore */
26
28
  ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
27
- id = input(crypto.randomUUID(), /* @ts-ignore */
29
+ id = input(undefined, /* @ts-ignore */
28
30
  ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
29
31
  name = input(undefined, /* @ts-ignore */
30
32
  ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
@@ -34,6 +36,20 @@ class EgFormCheckbox {
34
36
  ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
35
37
  disabled = input(false, /* @ts-ignore */
36
38
  ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
39
+ effectiveId = computed(() => this.controlId() || this.id() || this.generatedId, /* @ts-ignore */
40
+ ...(ngDevMode ? [{ debugName: "effectiveId" }] : /* istanbul ignore next */ []));
41
+ errorId = computed(() => `${this.effectiveId()}-error`, /* @ts-ignore */
42
+ ...(ngDevMode ? [{ debugName: "errorId" }] : /* istanbul ignore next */ []));
43
+ hintId = computed(() => `${this.effectiveId()}-hint`, /* @ts-ignore */
44
+ ...(ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []));
45
+ describedBy() {
46
+ const control = this.formGroupDirective.form.get(this.controlName());
47
+ return this.error() && control?.invalid && (control.dirty || control.touched)
48
+ ? this.errorId()
49
+ : this.hint()
50
+ ? this.hintId()
51
+ : null;
52
+ }
37
53
  // Styling
38
54
  checkboxClass = input('', /* @ts-ignore */
39
55
  ...(ngDevMode ? [{ debugName: "checkboxClass" }] : /* istanbul ignore next */ []));
@@ -48,10 +64,9 @@ class EgFormCheckbox {
48
64
  ...(ngDevMode ? [{ debugName: "$errorClass" }] : /* istanbul ignore next */ []));
49
65
  $hintClass = input('', /* @ts-ignore */
50
66
  ...(ngDevMode ? [{ debugName: "$hintClass" }] : /* istanbul ignore next */ []));
51
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: EgFormCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
52
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: EgFormCheckbox, isStandalone: true, selector: "eg-form-checkbox", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, controlId: { classPropertyName: "controlId", publicName: "controlId", isSignal: true, isRequired: false, transformFunction: null }, controlName: { classPropertyName: "controlName", publicName: "controlName", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, checkboxClass: { classPropertyName: "checkboxClass", publicName: "checkboxClass", isSignal: true, isRequired: false, transformFunction: null }, labelClass: { classPropertyName: "labelClass", publicName: "labelClass", isSignal: true, isRequired: false, transformFunction: null }, $errorClass: { classPropertyName: "$errorClass", publicName: "$errorClass", isSignal: true, isRequired: false, transformFunction: null }, $hintClass: { classPropertyName: "$hintClass", publicName: "$hintClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, providers: [{ provide: ControlContainer, useExisting: FormGroupDirective }], ngImport: i0, template: `
67
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: EgFormCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
68
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: EgFormCheckbox, isStandalone: true, selector: "eg-form-checkbox", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, controlId: { classPropertyName: "controlId", publicName: "controlId", isSignal: true, isRequired: false, transformFunction: null }, controlName: { classPropertyName: "controlName", publicName: "controlName", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, checkboxClass: { classPropertyName: "checkboxClass", publicName: "checkboxClass", isSignal: true, isRequired: false, transformFunction: null }, labelClass: { classPropertyName: "labelClass", publicName: "labelClass", isSignal: true, isRequired: false, transformFunction: null }, $errorClass: { classPropertyName: "$errorClass", publicName: "$errorClass", isSignal: true, isRequired: false, transformFunction: null }, $hintClass: { classPropertyName: "$hintClass", publicName: "$hintClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, providers: [{ provide: ControlContainer, useExisting: FormGroupDirective }], ngImport: i0, template: `
53
69
  @let lbl = label();
54
- @let cid = controlId();
55
70
  @let cnm = controlName();
56
71
  @let err = error();
57
72
  @let hnt = hint();
@@ -60,14 +75,16 @@ class EgFormCheckbox {
60
75
  <eg-form-field>
61
76
  <div class="tw:flex tw:items-center tw:gap-1">
62
77
  <hlm-checkbox
63
- [id]="cid || id()"
78
+ [id]="effectiveId()"
64
79
  [name]="cnm || name() || null"
65
80
  [formControlName]="cnm"
66
81
  [class]="$checkboxClass()"
67
82
  [checked]="checked()"
68
83
  [required]="rqrd"
84
+ [wrapperDisabled]="disabled()"
85
+ [aria-describedby]="describedBy()"
69
86
  />
70
- <label hlmLabel [for]="id()" [class]="$labelClass()">
87
+ <label hlmLabel [for]="effectiveId()" [class]="$labelClass()">
71
88
  {{ lbl }}
72
89
  @if (rqrd) {
73
90
  <span class="tw:text-red-500">*</span>
@@ -76,20 +93,20 @@ class EgFormCheckbox {
76
93
  </div>
77
94
 
78
95
  @if (err) {
79
- <hlm-error [class]="$errorClass()">
96
+ <hlm-error [id]="errorId()" [class]="$errorClass()">
80
97
  {{ err }}
81
98
  </hlm-error>
82
99
  }
83
100
 
84
101
  @if (hnt) {
85
- <hlm-hint [class]="$hintClass()">
102
+ <hlm-hint [id]="hintId()" [class]="$hintClass()">
86
103
  {{ hnt }}
87
104
  </hlm-hint>
88
105
  }
89
106
  </eg-form-field>
90
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: HlmCheckbox, selector: "hlm-checkbox", inputs: ["class", "id", "aria-label", "aria-labelledby", "aria-describedby", "checked", "name", "required", "disabled"], outputs: ["checkedChange", "changed"] }, { kind: "directive", type: HlmLabel, selector: "[hlmLabel]", inputs: ["class"] }, { kind: "component", type: EgFormField, selector: "eg-form-field", inputs: ["class"] }, { kind: "directive", type: HlmError, selector: "hlm-error", inputs: ["class"] }, { kind: "directive", type: HlmHint, selector: "hlm-hint", inputs: ["class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
107
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: HlmCheckbox, selector: "hlm-checkbox", inputs: ["class", "id", "aria-label", "aria-labelledby", "aria-describedby", "checked", "name", "required", "disabled", "wrapperDisabled"], outputs: ["checkedChange", "changed"] }, { kind: "directive", type: HlmLabel, selector: "[hlmLabel]", inputs: ["class"] }, { kind: "component", type: EgFormField, selector: "eg-form-field", inputs: ["class"] }, { kind: "directive", type: HlmError, selector: "hlm-error", inputs: ["class"] }, { kind: "directive", type: HlmHint, selector: "hlm-hint", inputs: ["class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
91
108
  }
92
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: EgFormCheckbox, decorators: [{
109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: EgFormCheckbox, decorators: [{
93
110
  type: Component,
94
111
  args: [{
95
112
  selector: 'eg-form-checkbox',
@@ -102,7 +119,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
102
119
  providers: [{ provide: ControlContainer, useExisting: FormGroupDirective }],
103
120
  template: `
104
121
  @let lbl = label();
105
- @let cid = controlId();
106
122
  @let cnm = controlName();
107
123
  @let err = error();
108
124
  @let hnt = hint();
@@ -111,14 +127,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
111
127
  <eg-form-field>
112
128
  <div class="tw:flex tw:items-center tw:gap-1">
113
129
  <hlm-checkbox
114
- [id]="cid || id()"
130
+ [id]="effectiveId()"
115
131
  [name]="cnm || name() || null"
116
132
  [formControlName]="cnm"
117
133
  [class]="$checkboxClass()"
118
134
  [checked]="checked()"
119
135
  [required]="rqrd"
136
+ [wrapperDisabled]="disabled()"
137
+ [aria-describedby]="describedBy()"
120
138
  />
121
- <label hlmLabel [for]="id()" [class]="$labelClass()">
139
+ <label hlmLabel [for]="effectiveId()" [class]="$labelClass()">
122
140
  {{ lbl }}
123
141
  @if (rqrd) {
124
142
  <span class="tw:text-red-500">*</span>
@@ -127,13 +145,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
127
145
  </div>
128
146
 
129
147
  @if (err) {
130
- <hlm-error [class]="$errorClass()">
148
+ <hlm-error [id]="errorId()" [class]="$errorClass()">
131
149
  {{ err }}
132
150
  </hlm-error>
133
151
  }
134
152
 
135
153
  @if (hnt) {
136
- <hlm-hint [class]="$hintClass()">
154
+ <hlm-hint [id]="hintId()" [class]="$hintClass()">
137
155
  {{ hnt }}
138
156
  </hlm-hint>
139
157
  }
@@ -151,4 +169,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
151
169
  */
152
170
 
153
171
  export { EgFormCheckbox };
154
- //# sourceMappingURL=form-checkbox.mjs.map
172
+
@@ -2,6 +2,8 @@ import * as _angular_core from '@angular/core';
2
2
  import { ClassValue } from 'clsx';
3
3
 
4
4
  declare class EgFormCheckbox {
5
+ private readonly formGroupDirective;
6
+ private readonly generatedId;
5
7
  readonly userClass: _angular_core.InputSignal<ClassValue>;
6
8
  protected readonly _computedClass: _angular_core.Signal<string>;
7
9
  label: _angular_core.InputSignal<string>;
@@ -9,11 +11,15 @@ declare class EgFormCheckbox {
9
11
  controlName: _angular_core.InputSignal<string>;
10
12
  error: _angular_core.InputSignal<string | undefined>;
11
13
  hint: _angular_core.InputSignal<string | undefined>;
12
- id: _angular_core.InputSignal<string>;
14
+ id: _angular_core.InputSignal<string | undefined>;
13
15
  name: _angular_core.InputSignal<string | undefined>;
14
16
  checked: _angular_core.InputSignal<boolean>;
15
17
  required: _angular_core.InputSignal<boolean>;
16
18
  disabled: _angular_core.InputSignal<boolean>;
19
+ readonly effectiveId: _angular_core.Signal<string>;
20
+ readonly errorId: _angular_core.Signal<string>;
21
+ readonly hintId: _angular_core.Signal<string>;
22
+ describedBy(): string | null;
17
23
  checkboxClass: _angular_core.InputSignal<string>;
18
24
  labelClass: _angular_core.InputSignal<string>;
19
25
  $checkboxClass: _angular_core.Signal<string>;
@@ -1,64 +1,3 @@
1
- # FormDatePicker
1
+ # Form Date Picker Subpath
2
2
 
3
- This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.3.0.
4
-
5
- ## Code scaffolding
6
-
7
- Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
8
-
9
- ```bash
10
- ng generate component component-name
11
- ```
12
-
13
- For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
14
-
15
- ```bash
16
- ng generate --help
17
- ```
18
-
19
- ## Building
20
-
21
- To build the library, run:
22
-
23
- ```bash
24
- ng build form-date-picker
25
- ```
26
-
27
- This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
-
29
- ### Publishing the Library
30
-
31
- Once the project is built, you can publish your library by following these steps:
32
-
33
- 1. Navigate to the `dist` directory:
34
-
35
- ```bash
36
- cd dist/form-date-picker
37
- ```
38
-
39
- 2. Run the `npm publish` command to publish your library to the npm registry:
40
- ```bash
41
- npm publish
42
- ```
43
-
44
- ## Running unit tests
45
-
46
- To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
47
-
48
- ```bash
49
- ng test
50
- ```
51
-
52
- ## Running end-to-end tests
53
-
54
- For end-to-end (e2e) testing, run:
55
-
56
- ```bash
57
- ng e2e
58
- ```
59
-
60
- Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
61
-
62
- ## Additional Resources
63
-
64
- For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
3
+ This project ships only as `@egose/shadcn-theme-ng/form-date-picker` or `@egose/shadcn-theme-ng-tw/form-date-picker`. See the [package README](../../README.md) for installation, compatibility, Tailwind variant, test, and release guidance. Do not publish this project directory independently.