@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
@@ -1,11 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Signal, ValueProvider } from '@angular/core';
3
3
  import { ClassValue } from 'clsx';
4
- import * as i1 from '@egose/shadcn-theme-ng/input';
4
+ import * as i1 from '@egose/shadcn-theme-ng-tw/input';
5
5
  import { BooleanInput } from '@angular/cdk/coercion';
6
6
  import * as i1$1 from '@spartan-ng/brain/tooltip';
7
- import * as i1$2 from '@egose/shadcn-theme-ng/separator';
8
- import * as i1$3 from '@egose/shadcn-theme-ng/button';
7
+ import * as i1$2 from '@egose/shadcn-theme-ng-tw/separator';
8
+ import * as i1$3 from '@egose/shadcn-theme-ng-tw/button';
9
9
 
10
10
  type SidebarVariant = 'sidebar' | 'floating' | 'inset';
11
11
  declare class HlmSidebarService {
@@ -4,12 +4,12 @@ import { classes } from '@egose/shadcn-theme-ng-tw/utils';
4
4
 
5
5
  class HlmSkeleton {
6
6
  constructor() {
7
- classes(() => 'bg-muted rounded-md block motion-safe:animate-pulse');
7
+ classes(() => 'tw:bg-muted tw:rounded-md tw:block tw:motion-safe:animate-pulse');
8
8
  }
9
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSkeleton, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmSkeleton, isStandalone: true, selector: "[hlmSkeleton],hlm-skeleton", host: { attributes: { "data-slot": "skeleton" } }, ngImport: i0 });
9
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSkeleton, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmSkeleton, isStandalone: true, selector: "[hlmSkeleton],hlm-skeleton", host: { attributes: { "data-slot": "skeleton" } }, ngImport: i0 });
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSkeleton, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSkeleton, decorators: [{
13
13
  type: Directive,
14
14
  args: [{
15
15
  selector: '[hlmSkeleton],hlm-skeleton',
@@ -24,11 +24,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
24
24
  */
25
25
  const HlmSkeletonImports = [HlmSkeleton];
26
26
  class HlmSkeletonModule {
27
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSkeletonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
28
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: HlmSkeletonModule, imports: [HlmSkeleton], exports: [HlmSkeleton] });
29
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSkeletonModule });
27
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSkeletonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
28
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmSkeletonModule, imports: [HlmSkeleton], exports: [HlmSkeleton] });
29
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSkeletonModule });
30
30
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSkeletonModule, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSkeletonModule, decorators: [{
32
32
  type: NgModule,
33
33
  args: [{
34
34
  imports: [...HlmSkeletonImports],
@@ -41,4 +41,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
41
41
  */
42
42
 
43
43
  export { HlmSkeleton, HlmSkeletonImports, HlmSkeletonModule };
44
- //# sourceMappingURL=skeleton.mjs.map
44
+
@@ -8,25 +8,25 @@ class HlmSlider {
8
8
  _slider = injectBrnSlider();
9
9
  constructor() {
10
10
  classes(() => [
11
- 'group flex w-full touch-none flex-col select-none data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-row data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
11
+ 'tw:group tw:flex tw:w-full tw:touch-none tw:flex-col tw:select-none tw:data-vertical:h-full tw:data-vertical:min-h-40 tw:data-vertical:w-auto tw:data-vertical:flex-row tw:data-[disabled]:pointer-events-none tw:data-[disabled]:opacity-50',
12
12
  ]);
13
13
  }
14
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSlider, deps: [], target: i0.ɵɵFactoryTarget.Component });
15
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: HlmSlider, isStandalone: true, selector: "hlm-slider, brn-slider [hlm]", hostDirectives: [{ directive: i1.BrnSlider, inputs: ["id", "id", "value", "value", "disabled", "disabled", "min", "min", "max", "max", "step", "step", "minStepsBetweenThumbs", "minStepsBetweenThumbs", "inverted", "inverted", "orientation", "orientation", "showTicks", "showTicks", "maxTicks", "maxTicks", "tickLabelInterval", "tickLabelInterval", "formatTick", "formatTick", "draggableRange", "draggableRange", "draggableRangeOnly", "draggableRangeOnly", "aria-label", "aria-label", "aria-labelledby", "aria-labelledby"], outputs: ["valueChange", "valueChange"] }], ngImport: i0, template: `
16
- <div class="relative flex w-full items-center group-data-vertical:w-auto group-data-vertical:flex-col">
14
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSlider, deps: [], target: i0.ɵɵFactoryTarget.Component });
15
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: HlmSlider, isStandalone: true, selector: "hlm-slider, brn-slider [hlm]", hostDirectives: [{ directive: i1.BrnSlider, inputs: ["id", "id", "value", "value", "disabled", "disabled", "min", "min", "max", "max", "step", "step", "minStepsBetweenThumbs", "minStepsBetweenThumbs", "inverted", "inverted", "orientation", "orientation", "showTicks", "showTicks", "maxTicks", "maxTicks", "tickLabelInterval", "tickLabelInterval", "formatTick", "formatTick", "draggableRange", "draggableRange", "draggableRangeOnly", "draggableRangeOnly", "aria-label", "aria-label", "aria-labelledby", "aria-labelledby"], outputs: ["valueChange", "valueChange"] }], ngImport: i0, template: `
16
+ <div class="tw:relative tw:flex tw:w-full tw:items-center tw:group-data-vertical:w-auto tw:group-data-vertical:flex-col">
17
17
  <div
18
18
  brnSliderTrack
19
- class="bg-muted rounded-full data-horizontal:h-1.5 data-horizontal:w-full data-vertical:h-full data-vertical:w-1.5 relative grow overflow-hidden"
19
+ class="tw:bg-muted tw:rounded-full tw:data-horizontal:h-1.5 tw:data-horizontal:w-full tw:data-vertical:h-full tw:data-vertical:w-1.5 tw:relative tw:grow tw:overflow-hidden"
20
20
  >
21
21
  <div
22
- class="bg-primary absolute select-none data-draggable-range:cursor-move data-horizontal:h-full data-vertical:w-full"
22
+ class="tw:bg-primary tw:absolute tw:select-none tw:data-draggable-range:cursor-move tw:data-horizontal:h-full tw:data-vertical:w-full"
23
23
  brnSliderRange
24
24
  ></div>
25
25
  </div>
26
26
 
27
27
  @for (i of _slider.thumbIndexes(); track i) {
28
28
  <span
29
- class="border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden absolute block shrink-0 select-none after:absolute after:-inset-2"
29
+ class="tw:border-primary tw:ring-ring/50 tw:size-4 tw:rounded-full tw:border tw:bg-white tw:shadow-sm tw:transition-[color,box-shadow] tw:hover:ring-4 tw:focus-visible:ring-4 tw:focus-visible:outline-hidden tw:absolute tw:block tw:shrink-0 tw:select-none tw:after:absolute tw:after:-inset-2"
30
30
  brnSliderThumb
31
31
  ></span>
32
32
  }
@@ -34,22 +34,22 @@ class HlmSlider {
34
34
 
35
35
  @if (_slider.showTicks()) {
36
36
  <div
37
- class="px-2 group-data-vertical:px-0 group-data-vertical:py-2 text-muted-foreground mt-3 flex w-full items-start justify-between gap-1 text-xs font-medium group-data-horizontal:group-data-inverted:flex-row-reverse group-data-vertical:ms-3 group-data-vertical:mt-0 group-data-vertical:w-auto group-data-vertical:flex-col-reverse group-data-vertical:group-data-inverted:flex-col"
37
+ class="tw:px-2 tw:group-data-vertical:px-0 tw:group-data-vertical:py-2 tw:text-muted-foreground tw:mt-3 tw:flex tw:w-full tw:items-start tw:justify-between tw:gap-1 tw:text-xs tw:font-medium tw:group-data-horizontal:group-data-inverted:flex-row-reverse tw:group-data-vertical:ms-3 tw:group-data-vertical:mt-0 tw:group-data-vertical:w-auto tw:group-data-vertical:flex-col-reverse tw:group-data-vertical:group-data-inverted:flex-col"
38
38
  >
39
39
  <div
40
40
  *brnSliderTick="let tick; let formattedTick = formattedTick"
41
- class="group flex w-0 flex-col items-center justify-center gap-2 group-data-vertical:h-0 group-data-vertical:w-auto group-data-vertical:flex-row"
41
+ class="tw:group tw:flex tw:w-0 tw:flex-col tw:items-center tw:justify-center tw:gap-2 tw:group-data-vertical:h-0 tw:group-data-vertical:w-auto tw:group-data-vertical:flex-row"
42
42
  >
43
43
  <div
44
- class="bg-muted-foreground/70 h-1 w-px group-data-vertical:h-px group-data-vertical:w-1 group-data-horizontal:group-data-[skip]:h-0.5 group-data-vertical:group-data-[skip]:w-0.5"
44
+ class="tw:bg-muted-foreground/70 tw:h-1 tw:w-px tw:group-data-vertical:h-px tw:group-data-vertical:w-1 tw:group-data-horizontal:group-data-[skip]:h-0.5 tw:group-data-vertical:group-data-[skip]:w-0.5"
45
45
  ></div>
46
- <div class="text-center group-data-[skip]:opacity-0">{{ formattedTick }}</div>
46
+ <div class="tw:text-center tw:group-data-[skip]:opacity-0">{{ formattedTick }}</div>
47
47
  </div>
48
48
  </div>
49
49
  }
50
50
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.BrnSliderTrack, selector: "[brnSliderTrack]" }, { kind: "directive", type: i1.BrnSliderThumb, selector: "[brnSliderThumb]" }, { kind: "directive", type: i1.BrnSliderRange, selector: "[brnSliderRange]" }, { kind: "directive", type: i1.BrnSliderTick, selector: "[brnSliderTick]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
51
51
  }
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSlider, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSlider, decorators: [{
53
53
  type: Component,
54
54
  args: [{
55
55
  selector: 'hlm-slider, brn-slider [hlm]',
@@ -81,20 +81,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
81
81
  },
82
82
  ],
83
83
  template: `
84
- <div class="relative flex w-full items-center group-data-vertical:w-auto group-data-vertical:flex-col">
84
+ <div class="tw:relative tw:flex tw:w-full tw:items-center tw:group-data-vertical:w-auto tw:group-data-vertical:flex-col">
85
85
  <div
86
86
  brnSliderTrack
87
- class="bg-muted rounded-full data-horizontal:h-1.5 data-horizontal:w-full data-vertical:h-full data-vertical:w-1.5 relative grow overflow-hidden"
87
+ class="tw:bg-muted tw:rounded-full tw:data-horizontal:h-1.5 tw:data-horizontal:w-full tw:data-vertical:h-full tw:data-vertical:w-1.5 tw:relative tw:grow tw:overflow-hidden"
88
88
  >
89
89
  <div
90
- class="bg-primary absolute select-none data-draggable-range:cursor-move data-horizontal:h-full data-vertical:w-full"
90
+ class="tw:bg-primary tw:absolute tw:select-none tw:data-draggable-range:cursor-move tw:data-horizontal:h-full tw:data-vertical:w-full"
91
91
  brnSliderRange
92
92
  ></div>
93
93
  </div>
94
94
 
95
95
  @for (i of _slider.thumbIndexes(); track i) {
96
96
  <span
97
- class="border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden absolute block shrink-0 select-none after:absolute after:-inset-2"
97
+ class="tw:border-primary tw:ring-ring/50 tw:size-4 tw:rounded-full tw:border tw:bg-white tw:shadow-sm tw:transition-[color,box-shadow] tw:hover:ring-4 tw:focus-visible:ring-4 tw:focus-visible:outline-hidden tw:absolute tw:block tw:shrink-0 tw:select-none tw:after:absolute tw:after:-inset-2"
98
98
  brnSliderThumb
99
99
  ></span>
100
100
  }
@@ -102,16 +102,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
102
102
 
103
103
  @if (_slider.showTicks()) {
104
104
  <div
105
- class="px-2 group-data-vertical:px-0 group-data-vertical:py-2 text-muted-foreground mt-3 flex w-full items-start justify-between gap-1 text-xs font-medium group-data-horizontal:group-data-inverted:flex-row-reverse group-data-vertical:ms-3 group-data-vertical:mt-0 group-data-vertical:w-auto group-data-vertical:flex-col-reverse group-data-vertical:group-data-inverted:flex-col"
105
+ class="tw:px-2 tw:group-data-vertical:px-0 tw:group-data-vertical:py-2 tw:text-muted-foreground tw:mt-3 tw:flex tw:w-full tw:items-start tw:justify-between tw:gap-1 tw:text-xs tw:font-medium tw:group-data-horizontal:group-data-inverted:flex-row-reverse tw:group-data-vertical:ms-3 tw:group-data-vertical:mt-0 tw:group-data-vertical:w-auto tw:group-data-vertical:flex-col-reverse tw:group-data-vertical:group-data-inverted:flex-col"
106
106
  >
107
107
  <div
108
108
  *brnSliderTick="let tick; let formattedTick = formattedTick"
109
- class="group flex w-0 flex-col items-center justify-center gap-2 group-data-vertical:h-0 group-data-vertical:w-auto group-data-vertical:flex-row"
109
+ class="tw:group tw:flex tw:w-0 tw:flex-col tw:items-center tw:justify-center tw:gap-2 tw:group-data-vertical:h-0 tw:group-data-vertical:w-auto tw:group-data-vertical:flex-row"
110
110
  >
111
111
  <div
112
- class="bg-muted-foreground/70 h-1 w-px group-data-vertical:h-px group-data-vertical:w-1 group-data-horizontal:group-data-[skip]:h-0.5 group-data-vertical:group-data-[skip]:w-0.5"
112
+ class="tw:bg-muted-foreground/70 tw:h-1 tw:w-px tw:group-data-vertical:h-px tw:group-data-vertical:w-1 tw:group-data-horizontal:group-data-[skip]:h-0.5 tw:group-data-vertical:group-data-[skip]:w-0.5"
113
113
  ></div>
114
- <div class="text-center group-data-[skip]:opacity-0">{{ formattedTick }}</div>
114
+ <div class="tw:text-center tw:group-data-[skip]:opacity-0">{{ formattedTick }}</div>
115
115
  </div>
116
116
  </div>
117
117
  }
@@ -124,11 +124,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
124
124
  */
125
125
  const HlmSliderImports = [HlmSlider];
126
126
  class HlmSliderModule {
127
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
128
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: HlmSliderModule, imports: [HlmSlider], exports: [HlmSlider] });
129
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSliderModule });
127
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
128
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmSliderModule, imports: [HlmSlider], exports: [HlmSlider] });
129
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSliderModule });
130
130
  }
131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSliderModule, decorators: [{
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSliderModule, decorators: [{
132
132
  type: NgModule,
133
133
  args: [{
134
134
  imports: [...HlmSliderImports],
@@ -141,4 +141,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
141
141
  */
142
142
 
143
143
  export { HlmSlider, HlmSliderImports, HlmSliderModule };
144
- //# sourceMappingURL=slider.mjs.map
144
+
package/sonner/README.md CHANGED
@@ -1,64 +1,3 @@
1
- # Sonner
1
+ # Sonner Subpath
2
2
 
3
- This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.2.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 sonner
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/sonner
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/sonner` or `@egose/shadcn-theme-ng-tw/sonner`. See the [package README](../../README.md) for installation, compatibility, Tailwind variant, test, and release guidance. Do not publish this project directory independently.
@@ -31,10 +31,10 @@ class HlmToaster {
31
31
  ...(ngDevMode ? [{ debugName: "dir" }] : /* istanbul ignore next */ []));
32
32
  userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
33
33
  userStyle = input({}, { ...(ngDevMode ? { debugName: "userStyle" } : /* istanbul ignore next */ {}), alias: 'style' });
34
- _computedClass = computed(() => hlm('toaster group', this.userClass()), /* @ts-ignore */
34
+ _computedClass = computed(() => hlm('toaster tw:group', this.userClass()), /* @ts-ignore */
35
35
  ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
36
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmToaster, deps: [], target: i0.ɵɵFactoryTarget.Component });
37
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.7", type: HlmToaster, isStandalone: true, selector: "hlm-toaster", inputs: { invert: { classPropertyName: "invert", publicName: "invert", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, hotKey: { classPropertyName: "hotKey", publicName: "hotKey", isSignal: true, isRequired: false, transformFunction: null }, richColors: { classPropertyName: "richColors", publicName: "richColors", isSignal: true, isRequired: false, transformFunction: null }, expand: { classPropertyName: "expand", publicName: "expand", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, visibleToasts: { classPropertyName: "visibleToasts", publicName: "visibleToasts", isSignal: true, isRequired: false, transformFunction: null }, closeButton: { classPropertyName: "closeButton", publicName: "closeButton", isSignal: true, isRequired: false, transformFunction: null }, toastOptions: { classPropertyName: "toastOptions", publicName: "toastOptions", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, userStyle: { classPropertyName: "userStyle", publicName: "style", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
36
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToaster, deps: [], target: i0.ɵɵFactoryTarget.Component });
37
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.3", type: HlmToaster, isStandalone: true, selector: "hlm-toaster", inputs: { invert: { classPropertyName: "invert", publicName: "invert", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, hotKey: { classPropertyName: "hotKey", publicName: "hotKey", isSignal: true, isRequired: false, transformFunction: null }, richColors: { classPropertyName: "richColors", publicName: "richColors", isSignal: true, isRequired: false, transformFunction: null }, expand: { classPropertyName: "expand", publicName: "expand", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, visibleToasts: { classPropertyName: "visibleToasts", publicName: "visibleToasts", isSignal: true, isRequired: false, transformFunction: null }, closeButton: { classPropertyName: "closeButton", publicName: "closeButton", isSignal: true, isRequired: false, transformFunction: null }, toastOptions: { classPropertyName: "toastOptions", publicName: "toastOptions", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, userStyle: { classPropertyName: "userStyle", publicName: "style", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
38
38
  <ngx-sonner-toaster
39
39
  [class]="_computedClass()"
40
40
  [invert]="invert()"
@@ -53,7 +53,7 @@ class HlmToaster {
53
53
  />
54
54
  `, isInline: true, dependencies: [{ kind: "component", type: NgxSonnerToaster, selector: "ngx-sonner-toaster", inputs: ["invert", "theme", "position", "hotKey", "richColors", "expand", "duration", "visibleToasts", "closeButton", "toastOptions", "offset", "dir", "class", "style"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
55
55
  }
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmToaster, decorators: [{
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToaster, decorators: [{
57
57
  type: Component,
58
58
  args: [{
59
59
  selector: 'hlm-toaster',
@@ -85,11 +85,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
85
85
  */
86
86
  const HlmToasterImports = [HlmToaster];
87
87
  class HlmToasterModule {
88
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmToasterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
89
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: HlmToasterModule, imports: [HlmToaster], exports: [HlmToaster] });
90
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmToasterModule, imports: [HlmToasterImports] });
88
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToasterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
89
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmToasterModule, imports: [HlmToaster], exports: [HlmToaster] });
90
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToasterModule, imports: [HlmToasterImports] });
91
91
  }
92
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmToasterModule, decorators: [{
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmToasterModule, decorators: [{
93
93
  type: NgModule,
94
94
  args: [{
95
95
  imports: [...HlmToasterImports],
@@ -102,4 +102,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
102
102
  */
103
103
 
104
104
  export { HlmToaster, HlmToasterImports, HlmToasterModule };
105
- //# sourceMappingURL=sonner.mjs.map
105
+
package/spinner/README.md CHANGED
@@ -1,64 +1,3 @@
1
- # Spinner
1
+ # Spinner Subpath
2
2
 
3
- This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.2.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 spinner
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/spinner
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/spinner` or `@egose/shadcn-theme-ng-tw/spinner`. See the [package README](../../README.md) for installation, compatibility, Tailwind variant, test, and release guidance. Do not publish this project directory independently.
@@ -22,10 +22,10 @@ class HlmSpinner {
22
22
  _iconClass = computed(() => hlm('tw:[&>svg]:animate-spin tw:[&>svg]:text-primary tw:[&>svg]:w-[inherit]! tw:[&>svg]:h-[inherit]!', // base svg styles
23
23
  this.spinnerClass()), /* @ts-ignore */
24
24
  ...(ngDevMode ? [{ debugName: "_iconClass" }] : /* istanbul ignore next */ []));
25
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSpinner, deps: [], target: i0.ɵɵFactoryTarget.Component });
26
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.7", type: HlmSpinner, isStandalone: true, selector: "hlm-spinner", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, show: { classPropertyName: "show", publicName: "show", isSignal: true, isRequired: false, transformFunction: null }, wrapperClass: { classPropertyName: "wrapperClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, spinnerClass: { classPropertyName: "spinnerClass", publicName: "spinnerClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "status" }, properties: { "class": "_containerClass()" } }, ngImport: i0, template: `<ng-icon [svg]="icon" [size]="size()" [class]="_iconClass()" />`, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
25
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSpinner, deps: [], target: i0.ɵɵFactoryTarget.Component });
26
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.3", type: HlmSpinner, isStandalone: true, selector: "hlm-spinner", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, show: { classPropertyName: "show", publicName: "show", isSignal: true, isRequired: false, transformFunction: null }, wrapperClass: { classPropertyName: "wrapperClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, spinnerClass: { classPropertyName: "spinnerClass", publicName: "spinnerClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "status" }, properties: { "class": "_containerClass()" } }, ngImport: i0, template: `<ng-icon [svg]="icon" [size]="size()" [class]="_iconClass()" />`, isInline: true, dependencies: [{ kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
27
27
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSpinner, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSpinner, decorators: [{
29
29
  type: Component,
30
30
  args: [{
31
31
  selector: 'hlm-spinner',
@@ -45,11 +45,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
45
45
  */
46
46
  const HlmSpinnerImports = [HlmSpinner];
47
47
  class HlmSpinnerModule {
48
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
49
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: HlmSpinnerModule, imports: [HlmSpinner], exports: [HlmSpinner] });
50
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSpinnerModule, imports: [HlmSpinnerImports] });
48
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
49
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmSpinnerModule, imports: [HlmSpinner], exports: [HlmSpinner] });
50
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSpinnerModule, imports: [HlmSpinnerImports] });
51
51
  }
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSpinnerModule, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSpinnerModule, decorators: [{
53
53
  type: NgModule,
54
54
  args: [{
55
55
  imports: [...HlmSpinnerImports],
@@ -62,4 +62,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
62
62
  */
63
63
 
64
64
  export { HlmSpinner, HlmSpinnerImports, HlmSpinnerModule };
65
- //# sourceMappingURL=spinner.mjs.map
65
+
package/switch/README.md CHANGED
@@ -1,64 +1,3 @@
1
- # Switch
1
+ # Switch Subpath
2
2
 
3
- This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.2.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 switch
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/switch
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/switch` or `@egose/shadcn-theme-ng-tw/switch`. See the [package README](../../README.md) for installation, compatibility, Tailwind variant, test, and release guidance. Do not publish this project directory independently.
@@ -8,10 +8,10 @@ class HlmSwitchThumb {
8
8
  userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
9
9
  _computedClass = computed(() => hlm('tw:bg-background tw:dark:group-data-[state=unchecked]:bg-foreground tw:dark:group-data-[state=checked]:bg-primary-foreground tw:pointer-events-none tw:block tw:size-4 tw:rounded-full tw:ring-0 tw:transition-transform tw:data-[state=unchecked]:translate-x-0 tw:group-data-[state=checked]:translate-x-[calc(100%-2px)]', this.userClass()), /* @ts-ignore */
10
10
  ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
11
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSwitchThumb, deps: [], target: i0.ɵɵFactoryTarget.Directive });
12
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.7", type: HlmSwitchThumb, isStandalone: true, selector: "brn-switch-thumb[hlm],[hlmSwitchThumb]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
11
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSwitchThumb, deps: [], target: i0.ɵɵFactoryTarget.Directive });
12
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: HlmSwitchThumb, isStandalone: true, selector: "brn-switch-thumb[hlm],[hlmSwitchThumb]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0 });
13
13
  }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSwitchThumb, decorators: [{
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSwitchThumb, decorators: [{
15
15
  type: Directive,
16
16
  args: [{
17
17
  selector: 'brn-switch-thumb[hlm],[hlmSwitchThumb]',
@@ -69,12 +69,11 @@ class HlmSwitch {
69
69
  setDisabledState(isDisabled) {
70
70
  this._disabled.set(isDisabled);
71
71
  }
72
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSwitch, deps: [], target: i0.ɵɵFactoryTarget.Component });
73
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.7", type: HlmSwitch, isStandalone: true, selector: "hlm-switch", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", changed: "changed" }, host: { properties: { "attr.id": "null", "attr.aria-label": "null", "attr.aria-labelledby": "null", "attr.aria-describedby": "null" }, classAttribute: "contents" }, providers: [EG_SWITCH_VALUE_ACCESSOR], ngImport: i0, template: `
72
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSwitch, deps: [], target: i0.ɵɵFactoryTarget.Component });
73
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.3", type: HlmSwitch, isStandalone: true, selector: "hlm-switch", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", changed: "changed" }, host: { properties: { "attr.id": "null", "attr.aria-label": "null", "attr.aria-labelledby": "null", "attr.aria-describedby": "null" }, classAttribute: "contents" }, providers: [EG_SWITCH_VALUE_ACCESSOR], ngImport: i0, template: `
74
74
  <brn-switch
75
75
  [class]="_computedClass()"
76
76
  [checked]="checked()"
77
- @ts-ignore
78
77
  (changed)="handleChange($event)"
79
78
  (touched)="_onTouched?.()"
80
79
  [disabled]="_disabled()"
@@ -87,13 +86,13 @@ class HlmSwitch {
87
86
  </brn-switch>
88
87
  `, isInline: true, dependencies: [{ kind: "component", type: BrnSwitchThumb, selector: "brn-switch-thumb" }, { kind: "component", type: BrnSwitch, selector: "brn-switch", inputs: ["checked", "id", "name", "class", "hostStyles", "size", "aria-label", "aria-labelledby", "aria-describedby", "required", "disabled", "tabIndex"], outputs: ["checkedChange", "touched"] }, { kind: "directive", type: HlmSwitchThumb, selector: "brn-switch-thumb[hlm],[hlmSwitchThumb]", inputs: ["class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
89
88
  }
90
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSwitch, decorators: [{
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSwitch, decorators: [{
91
90
  type: Component,
92
91
  args: [{
93
92
  selector: 'hlm-switch',
94
93
  imports: [BrnSwitchThumb, BrnSwitch, HlmSwitchThumb],
95
94
  host: {
96
- class: 'contents',
95
+ class: "tw:contents",
97
96
  '[attr.id]': 'null',
98
97
  '[attr.aria-label]': 'null',
99
98
  '[attr.aria-labelledby]': 'null',
@@ -104,7 +103,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
104
103
  <brn-switch
105
104
  [class]="_computedClass()"
106
105
  [checked]="checked()"
107
- @ts-ignore
108
106
  (changed)="handleChange($event)"
109
107
  (touched)="_onTouched?.()"
110
108
  [disabled]="_disabled()"
@@ -126,11 +124,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
126
124
  */
127
125
  const HlmSwitchImports = [HlmSwitch, HlmSwitchThumb];
128
126
  class HlmSwitchModule {
129
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
130
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: HlmSwitchModule, imports: [HlmSwitch, HlmSwitchThumb], exports: [HlmSwitch, HlmSwitchThumb] });
131
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSwitchModule, imports: [HlmSwitch] });
127
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
128
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmSwitchModule, imports: [HlmSwitch, HlmSwitchThumb], exports: [HlmSwitch, HlmSwitchThumb] });
129
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSwitchModule, imports: [HlmSwitch] });
132
130
  }
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmSwitchModule, decorators: [{
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmSwitchModule, decorators: [{
134
132
  type: NgModule,
135
133
  args: [{
136
134
  imports: [...HlmSwitchImports],
@@ -143,4 +141,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
143
141
  */
144
142
 
145
143
  export { EG_SWITCH_VALUE_ACCESSOR, HlmSwitch, HlmSwitchImports, HlmSwitchModule, HlmSwitchThumb };
146
- //# sourceMappingURL=switch.mjs.map
144
+