@egose/shadcn-theme-ng 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 (201) hide show
  1. package/README.md +130 -13
  2. package/accordion/README.md +2 -63
  3. package/accordion/fesm2022/accordion.mjs +27 -39
  4. package/alert/README.md +2 -63
  5. package/alert/fesm2022/alert.mjs +47 -47
  6. package/alert-dialog/fesm2022/alert-dialog.mjs +47 -47
  7. package/aspect-ratio/fesm2022/aspect-ratio.mjs +9 -9
  8. package/autocomplete/README.md +2 -63
  9. package/autocomplete/fesm2022/autocomplete.mjs +53 -71
  10. package/avatar/fesm2022/avatar.mjs +32 -32
  11. package/badge/README.md +2 -63
  12. package/badge/fesm2022/badge.mjs +57 -57
  13. package/basic-alert/README.md +2 -63
  14. package/basic-alert/fesm2022/basic-alert.mjs +6 -18
  15. package/breadcrumb/fesm2022/breadcrumb.mjs +33 -39
  16. package/button/README.md +2 -63
  17. package/button/fesm2022/button.mjs +126 -176
  18. package/button/types/button.d.ts +2 -2
  19. package/button-group/fesm2022/button-group.mjs +20 -20
  20. package/calendar/README.md +2 -63
  21. package/calendar/fesm2022/calendar.mjs +29 -743
  22. package/card/fesm2022/card.mjs +33 -33
  23. package/carousel/fesm2022/carousel.mjs +36 -78
  24. package/checkbox/README.md +2 -63
  25. package/checkbox/fesm2022/checkbox.mjs +20 -58
  26. package/checkbox/types/checkbox.d.ts +5 -4
  27. package/collapsible/fesm2022/collapsible.mjs +15 -15
  28. package/combobox/fesm2022/combobox.mjs +88 -224
  29. package/command/fesm2022/command.mjs +49 -109
  30. package/confirmation-dialog/README.md +2 -63
  31. package/confirmation-dialog/fesm2022/confirmation-dialog.mjs +15 -40
  32. package/confirmation-dialog/types/confirmation-dialog.d.ts +8 -4
  33. package/context-menu/fesm2022/context-menu.mjs +9 -9
  34. package/date-picker/README.md +2 -63
  35. package/date-picker/fesm2022/date-picker.mjs +63 -266
  36. package/date-picker/types/date-picker.d.ts +7 -3
  37. package/dialog/README.md +2 -63
  38. package/dialog/fesm2022/dialog.mjs +45 -71
  39. package/drawer/fesm2022/drawer.mjs +44 -54
  40. package/dropdown-menu/fesm2022/dropdown-menu.mjs +82 -70
  41. package/dropdown-menu/types/dropdown-menu.d.ts +4 -0
  42. package/empty/fesm2022/empty.mjs +30 -30
  43. package/field/fesm2022/field.mjs +56 -72
  44. package/form-checkbox/README.md +2 -63
  45. package/form-checkbox/fesm2022/form-checkbox.mjs +25 -85
  46. package/form-checkbox/types/form-checkbox.d.ts +7 -1
  47. package/form-date-picker/README.md +2 -63
  48. package/form-date-picker/fesm2022/form-date-picker.mjs +31 -84
  49. package/form-date-picker/types/form-date-picker.d.ts +7 -1
  50. package/form-field/README.md +2 -63
  51. package/form-field/fesm2022/form-field.mjs +33 -19
  52. package/form-field/types/form-field.d.ts +28 -20
  53. package/form-field-simple/README.md +2 -63
  54. package/form-field-simple/fesm2022/form-field-simple.mjs +4 -4
  55. package/form-searchable-multiselect/README.md +2 -63
  56. package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs +31 -91
  57. package/form-searchable-multiselect/types/form-searchable-multiselect.d.ts +7 -1
  58. package/form-select/README.md +2 -63
  59. package/form-select/fesm2022/form-select.mjs +32 -149
  60. package/form-select/types/form-select.d.ts +7 -1
  61. package/form-text-input/README.md +2 -63
  62. package/form-text-input/fesm2022/form-text-input.mjs +35 -149
  63. package/form-text-input/types/form-text-input.d.ts +9 -12
  64. package/form-textarea/README.md +2 -63
  65. package/form-textarea/fesm2022/form-textarea.mjs +34 -109
  66. package/form-textarea/types/form-textarea.d.ts +8 -1
  67. package/hover-card/fesm2022/hover-card.mjs +19 -19
  68. package/icon/README.md +2 -63
  69. package/icon/fesm2022/icon.mjs +8 -8
  70. package/input/README.md +2 -63
  71. package/input/fesm2022/input.mjs +17 -12
  72. package/input/types/input.d.ts +2 -1
  73. package/input-group/fesm2022/input-group.mjs +33 -33
  74. package/input-otp/fesm2022/input-otp.mjs +26 -26
  75. package/item/fesm2022/item.mjs +53 -53
  76. package/kbd/fesm2022/kbd.mjs +12 -12
  77. package/label/README.md +2 -63
  78. package/label/fesm2022/label.mjs +10 -10
  79. package/label/types/label.d.ts +1 -1
  80. package/layout-simple/README.md +2 -63
  81. package/layout-simple/fesm2022/layout-simple.mjs +98 -429
  82. package/layout-simple/types/layout-simple.d.ts +25 -11
  83. package/menu/README.md +3 -0
  84. package/menu/fesm2022/menu.mjs +455 -0
  85. package/menu/package.json +24 -0
  86. package/menu/types/menu.d.ts +137 -0
  87. package/menubar/fesm2022/menubar.mjs +13 -13
  88. package/native-select/fesm2022/native-select.mjs +19 -19
  89. package/navigation-menu/fesm2022/navigation-menu.mjs +35 -47
  90. package/package.json +183 -154
  91. package/pagination/fesm2022/pagination.mjs +45 -331
  92. package/popover/README.md +2 -63
  93. package/popover/fesm2022/popover.mjs +30 -30
  94. package/progress/fesm2022/progress.mjs +13 -13
  95. package/radio-group/README.md +2 -63
  96. package/radio-group/fesm2022/radio-group.mjs +22 -19
  97. package/resizable/fesm2022/resizable.mjs +18 -26
  98. package/scroll-area/fesm2022/scroll-area.mjs +9 -9
  99. package/searchable-multiselect/README.md +2 -63
  100. package/searchable-multiselect/fesm2022/searchable-multiselect.mjs +28 -117
  101. package/searchable-multiselect/types/searchable-multiselect.d.ts +8 -2
  102. package/select/README.md +2 -63
  103. package/select/fesm2022/select.mjs +71 -111
  104. package/select/types/select.d.ts +3 -1
  105. package/separator/README.md +2 -63
  106. package/separator/fesm2022/separator.mjs +9 -9
  107. package/separator/types/separator.d.ts +1 -1
  108. package/sheet/README.md +2 -63
  109. package/sheet/fesm2022/sheet.mjs +41 -53
  110. package/sidebar/fesm2022/sidebar.mjs +125 -227
  111. package/skeleton/fesm2022/skeleton.mjs +9 -9
  112. package/slider/fesm2022/slider.mjs +10 -80
  113. package/sonner/README.md +2 -63
  114. package/sonner/fesm2022/sonner.mjs +13 -13
  115. package/spinner/README.md +2 -63
  116. package/spinner/fesm2022/spinner.mjs +11 -11
  117. package/switch/README.md +2 -63
  118. package/switch/fesm2022/switch.mjs +13 -15
  119. package/table/fesm2022/table.mjs +41 -41
  120. package/tabs/README.md +2 -63
  121. package/tabs/fesm2022/tabs.mjs +35 -111
  122. package/textarea/fesm2022/textarea.mjs +9 -9
  123. package/toggle/fesm2022/toggle.mjs +13 -13
  124. package/toggle-group/fesm2022/toggle-group.mjs +13 -13
  125. package/toggle-group/types/toggle-group.d.ts +13 -7
  126. package/tooltip/README.md +2 -63
  127. package/tooltip/fesm2022/tooltip.mjs +14 -14
  128. package/typography/fesm2022/typography.mjs +53 -53
  129. package/typography/types/typography.d.ts +12 -12
  130. package/utils/README.md +2 -63
  131. package/utils/fesm2022/utils.mjs +68 -44
  132. package/accordion/fesm2022/accordion.mjs.map +0 -1
  133. package/alert/fesm2022/alert.mjs.map +0 -1
  134. package/alert-dialog/fesm2022/alert-dialog.mjs.map +0 -1
  135. package/aspect-ratio/fesm2022/aspect-ratio.mjs.map +0 -1
  136. package/autocomplete/fesm2022/autocomplete.mjs.map +0 -1
  137. package/avatar/fesm2022/avatar.mjs.map +0 -1
  138. package/badge/fesm2022/badge.mjs.map +0 -1
  139. package/basic-alert/fesm2022/basic-alert.mjs.map +0 -1
  140. package/breadcrumb/fesm2022/breadcrumb.mjs.map +0 -1
  141. package/button/fesm2022/button.mjs.map +0 -1
  142. package/button-group/fesm2022/button-group.mjs.map +0 -1
  143. package/calendar/fesm2022/calendar.mjs.map +0 -1
  144. package/card/fesm2022/card.mjs.map +0 -1
  145. package/carousel/fesm2022/carousel.mjs.map +0 -1
  146. package/checkbox/fesm2022/checkbox.mjs.map +0 -1
  147. package/collapsible/fesm2022/collapsible.mjs.map +0 -1
  148. package/combobox/fesm2022/combobox.mjs.map +0 -1
  149. package/command/fesm2022/command.mjs.map +0 -1
  150. package/confirmation-dialog/fesm2022/confirmation-dialog.mjs.map +0 -1
  151. package/context-menu/fesm2022/context-menu.mjs.map +0 -1
  152. package/date-picker/fesm2022/date-picker.mjs.map +0 -1
  153. package/dialog/fesm2022/dialog.mjs.map +0 -1
  154. package/drawer/fesm2022/drawer.mjs.map +0 -1
  155. package/dropdown-menu/fesm2022/dropdown-menu.mjs.map +0 -1
  156. package/empty/fesm2022/empty.mjs.map +0 -1
  157. package/field/fesm2022/field.mjs.map +0 -1
  158. package/form-checkbox/fesm2022/form-checkbox.mjs.map +0 -1
  159. package/form-date-picker/fesm2022/form-date-picker.mjs.map +0 -1
  160. package/form-field/fesm2022/form-field.mjs.map +0 -1
  161. package/form-field-simple/fesm2022/form-field-simple.mjs.map +0 -1
  162. package/form-searchable-multiselect/fesm2022/form-searchable-multiselect.mjs.map +0 -1
  163. package/form-select/fesm2022/form-select.mjs.map +0 -1
  164. package/form-text-input/fesm2022/form-text-input.mjs.map +0 -1
  165. package/form-textarea/fesm2022/form-textarea.mjs.map +0 -1
  166. package/hover-card/fesm2022/hover-card.mjs.map +0 -1
  167. package/icon/fesm2022/icon.mjs.map +0 -1
  168. package/input/fesm2022/input.mjs.map +0 -1
  169. package/input-group/fesm2022/input-group.mjs.map +0 -1
  170. package/input-otp/fesm2022/input-otp.mjs.map +0 -1
  171. package/item/fesm2022/item.mjs.map +0 -1
  172. package/kbd/fesm2022/kbd.mjs.map +0 -1
  173. package/label/fesm2022/label.mjs.map +0 -1
  174. package/layout-simple/fesm2022/layout-simple.mjs.map +0 -1
  175. package/menubar/fesm2022/menubar.mjs.map +0 -1
  176. package/native-select/fesm2022/native-select.mjs.map +0 -1
  177. package/navigation-menu/fesm2022/navigation-menu.mjs.map +0 -1
  178. package/pagination/fesm2022/pagination.mjs.map +0 -1
  179. package/popover/fesm2022/popover.mjs.map +0 -1
  180. package/progress/fesm2022/progress.mjs.map +0 -1
  181. package/radio-group/fesm2022/radio-group.mjs.map +0 -1
  182. package/resizable/fesm2022/resizable.mjs.map +0 -1
  183. package/scroll-area/fesm2022/scroll-area.mjs.map +0 -1
  184. package/searchable-multiselect/fesm2022/searchable-multiselect.mjs.map +0 -1
  185. package/select/fesm2022/select.mjs.map +0 -1
  186. package/separator/fesm2022/separator.mjs.map +0 -1
  187. package/sheet/fesm2022/sheet.mjs.map +0 -1
  188. package/sidebar/fesm2022/sidebar.mjs.map +0 -1
  189. package/skeleton/fesm2022/skeleton.mjs.map +0 -1
  190. package/slider/fesm2022/slider.mjs.map +0 -1
  191. package/sonner/fesm2022/sonner.mjs.map +0 -1
  192. package/spinner/fesm2022/spinner.mjs.map +0 -1
  193. package/switch/fesm2022/switch.mjs.map +0 -1
  194. package/table/fesm2022/table.mjs.map +0 -1
  195. package/tabs/fesm2022/tabs.mjs.map +0 -1
  196. package/textarea/fesm2022/textarea.mjs.map +0 -1
  197. package/toggle/fesm2022/toggle.mjs.map +0 -1
  198. package/toggle-group/fesm2022/toggle-group.mjs.map +0 -1
  199. package/tooltip/fesm2022/tooltip.mjs.map +0 -1
  200. package/typography/fesm2022/typography.mjs.map +0 -1
  201. package/utils/fesm2022/utils.mjs.map +0 -1
@@ -8,69 +8,69 @@ import { HlmSpinner } from '@egose/shadcn-theme-ng/spinner';
8
8
  import { cva } from 'class-variance-authority';
9
9
 
10
10
  const buttonVariants = cva([
11
- 'cursor-pointer',
12
- 'active:translate-y-[0.5px]',
13
- 'disabled:pointer-events-none',
14
- 'disabled:opacity-50',
15
- 'focus-visible:outline-none',
16
- 'focus-visible:ring-1',
17
- 'focus-visible:ring-ring',
18
- 'font-medium',
19
- 'gap-2',
20
- 'inline-flex',
21
- 'items-center',
22
- 'justify-center',
23
- 'rounded-sm',
24
- 'text-sm',
25
- 'transform',
26
- 'transition',
27
- 'transition-colors',
28
- 'whitespace-nowrap',
29
- '[&_svg]:pointer-events-none',
30
- '[&_svg]:shrink-0',
31
- '[&_svg]:size-4',
32
- 'no-underline',
11
+ "cursor-pointer",
12
+ "active:translate-y-[0.5px]",
13
+ "disabled:pointer-events-none",
14
+ "disabled:opacity-50",
15
+ "focus-visible:outline-none",
16
+ "focus-visible:ring-1",
17
+ "focus-visible:ring-ring",
18
+ "font-medium",
19
+ "gap-2",
20
+ "inline-flex",
21
+ "items-center",
22
+ "justify-center",
23
+ "rounded-sm",
24
+ "text-sm",
25
+ "transform",
26
+ "transition",
27
+ "transition-colors",
28
+ "whitespace-nowrap",
29
+ "[&_svg]:pointer-events-none",
30
+ "[&_svg]:shrink-0",
31
+ "[&_svg]:size-4",
32
+ "no-underline",
33
33
  ], {
34
34
  variants: {
35
35
  variant: {
36
- default: 'border border-primary bg-primary text-primary-foreground shadow-sm hover:bg-primary/90',
37
- primary: 'border border-primary bg-primary text-primary-foreground shadow-sm hover:bg-primary/90',
38
- secondary: 'border border-secondary bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/90',
39
- success: 'border border-success bg-success text-success-foreground shadow-sm hover:bg-success/90',
40
- warning: 'border border-warning bg-warning text-warning-foreground shadow-sm hover:bg-warning/90',
41
- danger: 'border border-danger bg-danger text-danger-foreground shadow-sm hover:bg-danger/90',
42
- info: 'border border-info bg-info text-info-foreground shadow-sm hover:bg-info/90',
43
- light: 'border border-light bg-light text-light-foreground shadow-sm hover:bg-light/90',
44
- dark: 'border border-dark bg-dark text-dark-foreground shadow-sm hover:bg-dark/90',
45
- accent: 'border border-accent bg-accent text-accent-foreground shadow-sm hover:bg-accent/90',
46
- destructive: 'border border-destructive bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90',
47
- muted: 'border border-muted bg-muted text-muted-foreground shadow-sm hover:bg-muted/90',
48
- outline: 'border border-primary bg-white text-primary shadow-sm hover:bg-primary/10',
49
- link: 'text-primary underline-offset-4 hover:underline',
50
- ghost: 'hover:bg-light hover:text-light-foreground',
36
+ default: "border border-primary bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",
37
+ primary: "border border-primary bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",
38
+ secondary: "border border-secondary bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/90",
39
+ success: "border border-success bg-success text-success-foreground shadow-sm hover:bg-success/90",
40
+ warning: "border border-warning bg-warning text-warning-foreground shadow-sm hover:bg-warning/90",
41
+ danger: "border border-danger bg-danger text-danger-foreground shadow-sm hover:bg-danger/90",
42
+ info: "border border-info bg-info text-info-foreground shadow-sm hover:bg-info/90",
43
+ light: "border border-light bg-light text-light-foreground shadow-sm hover:bg-light/90",
44
+ dark: "border border-dark bg-dark text-dark-foreground shadow-sm hover:bg-dark/90",
45
+ accent: "border border-accent bg-accent text-accent-foreground shadow-sm hover:bg-accent/90",
46
+ destructive: "border border-destructive bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
47
+ muted: "border border-muted bg-muted text-muted-foreground shadow-sm hover:bg-muted/90",
48
+ outline: "border border-primary bg-white text-primary shadow-sm hover:bg-primary/10",
49
+ link: "text-primary underline-offset-4 hover:underline",
50
+ ghost: "hover:bg-light hover:text-light-foreground",
51
51
  },
52
52
  size: {
53
- xs: 'h-7 rounded-xs px-2 text-xs',
54
- sm: 'h-8 rounded-sm px-3',
55
- default: 'h-9 px-4 py-2',
56
- lg: 'h-10 rounded-sm px-7 text-base',
57
- icon: 'h-9 w-9',
58
- 'icon-xs': 'h-6 w-6 rounded-xs',
59
- 'icon-sm': 'h-8 w-8 rounded-sm',
60
- 'icon-lg': 'h-10 w-10 rounded-sm',
61
- 'compact-xs': 'h-6 px-2 py-1 text-xs',
62
- 'compact-sm': 'h-7 px-2 py-1',
63
- 'compact-default': 'h-8 px-2 py-1',
64
- 'compact-lg': 'h-9 px-2 py-1 text-base',
65
- 'compact-icon': 'h-8 w-8',
53
+ xs: "h-7 rounded-xs px-2 text-xs",
54
+ sm: "h-8 rounded-sm px-3",
55
+ default: "h-9 px-4 py-2",
56
+ lg: "h-10 rounded-sm px-7 text-base",
57
+ icon: "h-9 w-9",
58
+ 'icon-xs': "h-6 w-6 rounded-xs",
59
+ 'icon-sm': "h-8 w-8 rounded-sm",
60
+ 'icon-lg': "h-10 w-10 rounded-sm",
61
+ 'compact-xs': "h-6 px-2 py-1 text-xs",
62
+ 'compact-sm': "h-7 px-2 py-1",
63
+ 'compact-default': "h-8 px-2 py-1",
64
+ 'compact-lg': "h-9 px-2 py-1 text-base",
65
+ 'compact-icon': "h-8 w-8",
66
66
  },
67
67
  appearance: {
68
68
  solid: '',
69
- outline: 'bg-white border',
70
- 'outline-filled': 'bg-white border',
69
+ outline: "bg-white border",
70
+ 'outline-filled': "bg-white border",
71
71
  },
72
72
  loading: {
73
- true: 'pointer-events-none',
73
+ true: "pointer-events-none",
74
74
  false: null,
75
75
  },
76
76
  },
@@ -118,7 +118,7 @@ class HlmButton {
118
118
  appearance: this.appearance(),
119
119
  loading: this.loading(),
120
120
  className: this.userClass(),
121
- }), outlineClasses, this.loading() ? 'pointer-events-none' : '', this._additionalClasses());
121
+ }), outlineClasses, this.loading() ? "pointer-events-none" : '', this._additionalClasses());
122
122
  }, /* @ts-ignore */
123
123
  ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
124
124
  /** Computed spinner classes */
@@ -135,113 +135,88 @@ class HlmButton {
135
135
  /** Helper functions */
136
136
  getOutlineClasses(variant) {
137
137
  const colors = {
138
- default: 'border-primary text-primary shadow-sm hover:bg-primary/10',
139
- primary: 'border-primary text-primary shadow-sm hover:bg-primary/10',
140
- secondary: 'border-secondary text-secondary shadow-sm hover:bg-secondary/10',
141
- success: 'border-success text-success shadow-sm hover:bg-success/10',
142
- warning: 'border-warning text-warning shadow-sm hover:bg-warning/10',
143
- danger: 'border-danger text-danger shadow-sm hover:bg-danger/10',
144
- info: 'border-info text-info shadow-sm hover:bg-info/10',
145
- light: 'border-light text-light-foreground shadow-sm hover:bg-light/10',
146
- dark: 'border-dark text-dark shadow-sm hover:bg-dark/10',
147
- accent: 'border-accent text-accent shadow-sm hover:bg-accent/10',
148
- destructive: 'border-destructive text-destructive shadow-sm hover:bg-destructive/10',
149
- muted: 'border-muted text-muted-foreground shadow-sm hover:bg-muted/10',
150
- outline: 'border-primary text-primary shadow-sm hover:bg-primary/10',
151
- link: 'text-primary',
152
- ghost: 'text-light-foreground',
138
+ default: "border-primary text-primary shadow-sm hover:bg-primary/10",
139
+ primary: "border-primary text-primary shadow-sm hover:bg-primary/10",
140
+ secondary: "border-secondary text-secondary shadow-sm hover:bg-secondary/10",
141
+ success: "border-success text-success shadow-sm hover:bg-success/10",
142
+ warning: "border-warning text-warning shadow-sm hover:bg-warning/10",
143
+ danger: "border-danger text-danger shadow-sm hover:bg-danger/10",
144
+ info: "border-info text-info shadow-sm hover:bg-info/10",
145
+ light: "border-light text-light-foreground shadow-sm hover:bg-light/10",
146
+ dark: "border-dark text-dark shadow-sm hover:bg-dark/10",
147
+ accent: "border-accent text-accent shadow-sm hover:bg-accent/10",
148
+ destructive: "border-destructive text-destructive shadow-sm hover:bg-destructive/10",
149
+ muted: "border-muted text-muted-foreground shadow-sm hover:bg-muted/10",
150
+ outline: "border-primary text-primary shadow-sm hover:bg-primary/10",
151
+ link: "text-primary",
152
+ ghost: "text-light-foreground",
153
153
  };
154
154
  return colors[variant];
155
155
  }
156
156
  getOutlineFilledClasses(variant) {
157
157
  const colors = {
158
- default: 'hover:bg-primary hover:text-primary-foreground',
159
- primary: 'hover:bg-primary hover:text-primary-foreground',
160
- secondary: 'hover:bg-secondary hover:text-secondary-foreground',
161
- success: 'hover:bg-success hover:text-success-foreground',
162
- warning: 'hover:bg-warning hover:text-warning-foreground',
163
- danger: 'hover:bg-danger hover:text-danger-foreground',
164
- info: 'hover:bg-info hover:text-info-foreground',
165
- light: 'hover:bg-light hover:text-light-foreground',
166
- dark: 'hover:bg-dark hover:text-dark-foreground',
167
- accent: 'hover:bg-accent hover:text-accent-foreground',
168
- destructive: 'hover:bg-destructive hover:text-destructive-foreground',
169
- muted: 'hover:bg-muted hover:text-muted-foreground',
170
- outline: 'hover:bg-primary hover:text-primary-foreground',
171
- link: 'hover:underline',
172
- ghost: 'hover:bg-light',
158
+ default: "hover:bg-primary hover:text-primary-foreground",
159
+ primary: "hover:bg-primary hover:text-primary-foreground",
160
+ secondary: "hover:bg-secondary hover:text-secondary-foreground",
161
+ success: "hover:bg-success hover:text-success-foreground",
162
+ warning: "hover:bg-warning hover:text-warning-foreground",
163
+ danger: "hover:bg-danger hover:text-danger-foreground",
164
+ info: "hover:bg-info hover:text-info-foreground",
165
+ light: "hover:bg-light hover:text-light-foreground",
166
+ dark: "hover:bg-dark hover:text-dark-foreground",
167
+ accent: "hover:bg-accent hover:text-accent-foreground",
168
+ destructive: "hover:bg-destructive hover:text-destructive-foreground",
169
+ muted: "hover:bg-muted hover:text-muted-foreground",
170
+ outline: "hover:bg-primary hover:text-primary-foreground",
171
+ link: "hover:underline",
172
+ ghost: "hover:bg-light",
173
173
  };
174
174
  return colors[variant];
175
175
  }
176
176
  getSpinnerClasses(variant) {
177
177
  const colors = {
178
- default: '[&>svg]:text-primary-foreground',
179
- primary: '[&>svg]:text-primary-foreground',
180
- secondary: '[&>svg]:text-secondary-foreground',
181
- success: '[&>svg]:text-success-foreground',
182
- warning: '[&>svg]:text-warning-foreground',
183
- danger: '[&>svg]:text-danger-foreground',
184
- info: '[&>svg]:text-info-foreground',
185
- light: '[&>svg]:text-light-foreground',
186
- dark: '[&>svg]:text-dark-foreground',
187
- accent: '[&>svg]:text-accent-foreground',
188
- destructive: '[&>svg]:text-destructive-foreground',
189
- muted: '[&>svg]:text-muted-foreground',
190
- outline: '[&>svg]:text-primary',
191
- link: '[&>svg]:text-primary',
192
- ghost: '[&>svg]:text-light-foreground',
178
+ default: "[&>svg]:text-primary-foreground",
179
+ primary: "[&>svg]:text-primary-foreground",
180
+ secondary: "[&>svg]:text-secondary-foreground",
181
+ success: "[&>svg]:text-success-foreground",
182
+ warning: "[&>svg]:text-warning-foreground",
183
+ danger: "[&>svg]:text-danger-foreground",
184
+ info: "[&>svg]:text-info-foreground",
185
+ light: "[&>svg]:text-light-foreground",
186
+ dark: "[&>svg]:text-dark-foreground",
187
+ accent: "[&>svg]:text-accent-foreground",
188
+ destructive: "[&>svg]:text-destructive-foreground",
189
+ muted: "[&>svg]:text-muted-foreground",
190
+ outline: "[&>svg]:text-primary",
191
+ link: "[&>svg]:text-primary",
192
+ ghost: "[&>svg]:text-light-foreground",
193
193
  };
194
194
  return colors[variant];
195
195
  }
196
196
  getOutlineSpinnerClasses(variant) {
197
197
  const colors = {
198
- default: '[&>svg]:text-primary',
199
- primary: '[&>svg]:text-primary',
200
- secondary: '[&>svg]:text-secondary',
201
- success: '[&>svg]:text-success',
202
- warning: '[&>svg]:text-warning',
203
- danger: '[&>svg]:text-danger',
204
- info: '[&>svg]:text-info',
205
- light: '[&>svg]:text-light',
206
- dark: '[&>svg]:text-dark',
207
- accent: '[&>svg]:text-accent',
208
- destructive: '[&>svg]:text-destructive',
209
- muted: '[&>svg]:text-muted-foreground',
210
- outline: '[&>svg]:text-primary',
211
- link: '[&>svg]:text-primary',
212
- ghost: '[&>svg]:text-light-foreground',
198
+ default: "[&>svg]:text-primary",
199
+ primary: "[&>svg]:text-primary",
200
+ secondary: "[&>svg]:text-secondary",
201
+ success: "[&>svg]:text-success",
202
+ warning: "[&>svg]:text-warning",
203
+ danger: "[&>svg]:text-danger",
204
+ info: "[&>svg]:text-info",
205
+ light: "[&>svg]:text-light",
206
+ dark: "[&>svg]:text-dark",
207
+ accent: "[&>svg]:text-accent",
208
+ destructive: "[&>svg]:text-destructive",
209
+ muted: "[&>svg]:text-muted-foreground",
210
+ outline: "[&>svg]:text-primary",
211
+ link: "[&>svg]:text-primary",
212
+ ghost: "[&>svg]:text-light-foreground",
213
213
  };
214
214
  return colors[variant];
215
215
  }
216
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
217
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: HlmButton, isStandalone: true, selector: "button[hlmButton], a[hlmButton]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, spinnerUserClass: { classPropertyName: "spinnerUserClass", publicName: "spinnerUserClass", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()", "attr.aria-busy": "loading() || null", "attr.disabled": "(loading() || disabled()) ? true : null", "attr.type": "type()" } }, hostDirectives: [{ directive: i1.BrnButton, inputs: ["disabled", "disabled"] }], ngImport: i0, template: `
218
- <ng-template #projected>
219
- <ng-content></ng-content>
220
- </ng-template>
221
-
222
- @if (loading()) {
223
- <div class="relative inline-flex items-center">
224
- <span class="invisible">
225
- <ng-container *ngTemplateOutlet="projected" />
226
- </span>
227
- <span class="absolute inset-0 flex items-center justify-center">
228
- <hlm-spinner [spinnerClass]="spinnerClass()" />
229
- </span>
230
- </div>
231
- } @else {
232
- <div class="flex items-center gap-1">
233
- @if (icon() && iconPosition() === 'left') {
234
- <ng-container *ngTemplateOutlet="icon()" />
235
- }
236
- <ng-container *ngTemplateOutlet="projected" />
237
- @if (icon() && iconPosition() === 'right') {
238
- <ng-container *ngTemplateOutlet="icon()" />
239
- }
240
- </div>
241
- }
242
- `, isInline: true, dependencies: [{ kind: "component", type: HlmSpinner, selector: "hlm-spinner", inputs: ["size", "show", "class", "spinnerClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
216
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
217
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: HlmButton, isStandalone: true, selector: "button[hlmButton], a[hlmButton]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPosition: { classPropertyName: "iconPosition", publicName: "iconPosition", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, spinnerUserClass: { classPropertyName: "spinnerUserClass", publicName: "spinnerUserClass", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_computedClass()", "attr.aria-busy": "loading() || null", "attr.disabled": "(loading() || disabled()) ? true : null", "attr.type": "type()" } }, hostDirectives: [{ directive: i1.BrnButton, inputs: ["disabled", "disabled"] }], ngImport: i0, template: "\n <ng-template #projected>\n <ng-content></ng-content>\n </ng-template>\n\n @if (loading()) {\n <div class=\"relative inline-flex items-center\">\n <span class=\"invisible\">\n <ng-container *ngTemplateOutlet=\"projected\" />\n </span>\n <span class=\"absolute inset-0 flex items-center justify-center\">\n <hlm-spinner [spinnerClass]=\"spinnerClass()\" />\n </span>\n </div>\n } @else {\n <div class=\"flex items-center gap-1\">\n @if (icon() && iconPosition() === 'left') {\n <ng-container *ngTemplateOutlet=\"icon()\" />\n }\n <ng-container *ngTemplateOutlet=\"projected\" />\n @if (icon() && iconPosition() === 'right') {\n <ng-container *ngTemplateOutlet=\"icon()\" />\n }\n </div>\n }\n ", isInline: true, dependencies: [{ kind: "component", type: HlmSpinner, selector: "hlm-spinner", inputs: ["size", "show", "class", "spinnerClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
243
218
  }
244
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmButton, decorators: [{
219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmButton, decorators: [{
245
220
  type: Component,
246
221
  args: [{
247
222
  selector: 'button[hlmButton], a[hlmButton]',
@@ -254,32 +229,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
254
229
  '[attr.disabled]': '(loading() || disabled()) ? true : null',
255
230
  '[attr.type]': 'type()',
256
231
  },
257
- template: `
258
- <ng-template #projected>
259
- <ng-content></ng-content>
260
- </ng-template>
261
-
262
- @if (loading()) {
263
- <div class="relative inline-flex items-center">
264
- <span class="invisible">
265
- <ng-container *ngTemplateOutlet="projected" />
266
- </span>
267
- <span class="absolute inset-0 flex items-center justify-center">
268
- <hlm-spinner [spinnerClass]="spinnerClass()" />
269
- </span>
270
- </div>
271
- } @else {
272
- <div class="flex items-center gap-1">
273
- @if (icon() && iconPosition() === 'left') {
274
- <ng-container *ngTemplateOutlet="icon()" />
275
- }
276
- <ng-container *ngTemplateOutlet="projected" />
277
- @if (icon() && iconPosition() === 'right') {
278
- <ng-container *ngTemplateOutlet="icon()" />
279
- }
280
- </div>
281
- }
282
- `,
232
+ template: "\n <ng-template #projected>\n <ng-content></ng-content>\n </ng-template>\n\n @if (loading()) {\n <div class=\"relative inline-flex items-center\">\n <span class=\"invisible\">\n <ng-container *ngTemplateOutlet=\"projected\" />\n </span>\n <span class=\"absolute inset-0 flex items-center justify-center\">\n <hlm-spinner [spinnerClass]=\"spinnerClass()\" />\n </span>\n </div>\n } @else {\n <div class=\"flex items-center gap-1\">\n @if (icon() && iconPosition() === 'left') {\n <ng-container *ngTemplateOutlet=\"icon()\" />\n }\n <ng-container *ngTemplateOutlet=\"projected\" />\n @if (icon() && iconPosition() === 'right') {\n <ng-container *ngTemplateOutlet=\"icon()\" />\n }\n </div>\n }\n ",
283
233
  }]
284
234
  }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPosition", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], spinnerUserClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "spinnerUserClass", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
285
235
 
@@ -314,10 +264,10 @@ class HlmBtn {
314
264
  setClass(classes) {
315
265
  this._additionalClasses.set(classes);
316
266
  }
317
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmBtn, deps: [], target: i0.ɵɵFactoryTarget.Directive });
318
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.7", type: HlmBtn, isStandalone: true, selector: "button[hlmBtn], a[hlmBtn]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "button" }, properties: { "class": "_computedClass()", "attr.type": "type()" } }, exportAs: ["hlmBtn"], hostDirectives: [{ directive: i1.BrnButton, inputs: ["disabled", "disabled"] }], ngImport: i0 });
267
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmBtn, deps: [], target: i0.ɵɵFactoryTarget.Directive });
268
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: HlmBtn, isStandalone: true, selector: "button[hlmBtn], a[hlmBtn]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "button" }, properties: { "class": "_computedClass()", "attr.type": "type()" } }, exportAs: ["hlmBtn"], hostDirectives: [{ directive: i1.BrnButton, inputs: ["disabled", "disabled"] }], ngImport: i0 });
319
269
  }
320
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmBtn, decorators: [{
270
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmBtn, decorators: [{
321
271
  type: Directive,
322
272
  args: [{
323
273
  selector: 'button[hlmBtn], a[hlmBtn]',
@@ -337,11 +287,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
337
287
  */
338
288
  const HlmButtonImports = [HlmButton, HlmBtn];
339
289
  class HlmButtonModule {
340
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
341
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: HlmButtonModule, imports: [HlmButton, HlmBtn], exports: [HlmButton, HlmBtn] });
342
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmButtonModule, imports: [HlmButton] });
290
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
291
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmButtonModule, imports: [HlmButton, HlmBtn], exports: [HlmButton, HlmBtn] });
292
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmButtonModule, imports: [HlmButton] });
343
293
  }
344
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmButtonModule, decorators: [{
294
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmButtonModule, decorators: [{
345
295
  type: NgModule,
346
296
  args: [{
347
297
  imports: [...HlmButtonImports],
@@ -354,4 +304,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
354
304
  */
355
305
 
356
306
  export { HlmBtn, HlmButton, HlmButtonImports, HlmButtonModule, buttonVariants, injectBrnButtonConfig, provideBrnButtonConfig };
357
- //# sourceMappingURL=button.mjs.map
307
+
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { ValueProvider } from '@angular/core';
2
+ import { TemplateRef, ValueProvider } from '@angular/core';
3
3
  import { ClassValue } from 'clsx';
4
4
  import * as i1 from '@spartan-ng/brain/button';
5
5
  import * as class_variance_authority_types from 'class-variance-authority/types';
@@ -34,7 +34,7 @@ declare class HlmButton {
34
34
  readonly size: _angular_core.InputSignal<SizeType>;
35
35
  readonly appearance: _angular_core.InputSignal<AppearanceType>;
36
36
  readonly loading: _angular_core.InputSignal<boolean>;
37
- readonly icon: _angular_core.InputSignal<any>;
37
+ readonly icon: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
38
38
  readonly iconPosition: _angular_core.InputSignal<"left" | "right">;
39
39
  readonly userClass: _angular_core.InputSignal<ClassValue>;
40
40
  readonly spinnerUserClass: _angular_core.InputSignal<ClassValue>;
@@ -5,11 +5,11 @@ import { cva } from 'class-variance-authority';
5
5
  import * as i1 from '@spartan-ng/brain/separator';
6
6
  import { provideBrnSeparatorConfig, BrnSeparator } from '@spartan-ng/brain/separator';
7
7
 
8
- const buttonGroupVariants = cva("has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
8
+ const buttonGroupVariants = cva("has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
9
9
  variants: {
10
10
  orientation: {
11
- horizontal: '[&>[data-slot]:not(:has(~[data-slot]))]:rounded-e-md [&>*:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:border-s-0 [&>*:not(:last-child)]:rounded-e-none',
12
- vertical: '[&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-md flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none',
11
+ horizontal: "[&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
12
+ vertical: "[&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none",
13
13
  },
14
14
  },
15
15
  defaultVariants: {
@@ -22,10 +22,10 @@ class HlmButtonGroup {
22
22
  }
23
23
  orientation = input('horizontal', /* @ts-ignore */
24
24
  ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
25
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
26
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.7", type: HlmButtonGroup, isStandalone: true, selector: "[hlmButtonGroup],hlm-button-group", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "button-group", "role": "group" }, properties: { "attr.data-orientation": "orientation()" } }, ngImport: i0 });
25
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
26
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: HlmButtonGroup, isStandalone: true, selector: "[hlmButtonGroup],hlm-button-group", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "button-group", "role": "group" }, properties: { "attr.data-orientation": "orientation()" } }, ngImport: i0 });
27
27
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmButtonGroup, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmButtonGroup, decorators: [{
29
29
  type: Directive,
30
30
  args: [{
31
31
  selector: '[hlmButtonGroup],hlm-button-group',
@@ -40,15 +40,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
40
40
  class HlmButtonGroupSeparator {
41
41
  constructor() {
42
42
  classes(() => [
43
- 'bg-input relative self-stretch data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto',
43
+ "bg-input relative self-stretch data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto",
44
44
  // separator classes
45
- 'shrink-0 data-horizontal:h-px data-vertical:w-px data-vertical:self-stretch',
45
+ "shrink-0 data-horizontal:h-px data-vertical:w-px data-vertical:self-stretch",
46
46
  ]);
47
47
  }
48
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmButtonGroupSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
49
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmButtonGroupSeparator, isStandalone: true, selector: "[hlmButtonGroupSeparator],hlm-button-group-separator", host: { attributes: { "data-slot": "button-group-separator" } }, providers: [provideBrnSeparatorConfig({ orientation: 'vertical' })], hostDirectives: [{ directive: i1.BrnSeparator, inputs: ["orientation", "orientation", "decorative", "decorative"] }], ngImport: i0 });
48
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmButtonGroupSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
49
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmButtonGroupSeparator, isStandalone: true, selector: "[hlmButtonGroupSeparator],hlm-button-group-separator", host: { attributes: { "data-slot": "button-group-separator" } }, providers: [provideBrnSeparatorConfig({ orientation: 'vertical' })], hostDirectives: [{ directive: i1.BrnSeparator, inputs: ["orientation", "orientation", "decorative", "decorative"] }], ngImport: i0 });
50
50
  }
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmButtonGroupSeparator, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmButtonGroupSeparator, decorators: [{
52
52
  type: Directive,
53
53
  args: [{
54
54
  selector: '[hlmButtonGroupSeparator],hlm-button-group-separator',
@@ -62,12 +62,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
62
62
 
63
63
  class HlmButtonGroupText {
64
64
  constructor() {
65
- classes(() => "bg-muted gap-2 rounded-md border px-2.5 text-sm font-medium shadow-xs [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center [&_ng-icon]:pointer-events-none");
65
+ classes(() => "bg-muted gap-2 rounded-lg border px-2.5 text-sm font-medium shadow-xs [&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center [&_ng-icon]:pointer-events-none");
66
66
  }
67
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmButtonGroupText, deps: [], target: i0.ɵɵFactoryTarget.Directive });
68
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.7", type: HlmButtonGroupText, isStandalone: true, selector: "[hlmButtonGroupText],hlm-button-group-text", host: { attributes: { "data-slot": "button-group-text" } }, ngImport: i0 });
67
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmButtonGroupText, deps: [], target: i0.ɵɵFactoryTarget.Directive });
68
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: HlmButtonGroupText, isStandalone: true, selector: "[hlmButtonGroupText],hlm-button-group-text", host: { attributes: { "data-slot": "button-group-text" } }, ngImport: i0 });
69
69
  }
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmButtonGroupText, decorators: [{
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmButtonGroupText, decorators: [{
71
71
  type: Directive,
72
72
  args: [{
73
73
  selector: '[hlmButtonGroupText],hlm-button-group-text',
@@ -82,11 +82,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
82
82
  */
83
83
  const HlmButtonGroupImports = [HlmButtonGroup, HlmButtonGroupText, HlmButtonGroupSeparator];
84
84
  class HlmButtonGroupModule {
85
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
86
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: HlmButtonGroupModule, imports: [HlmButtonGroup, HlmButtonGroupText, HlmButtonGroupSeparator], exports: [HlmButtonGroup, HlmButtonGroupText, HlmButtonGroupSeparator] });
87
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmButtonGroupModule });
85
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
86
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: HlmButtonGroupModule, imports: [HlmButtonGroup, HlmButtonGroupText, HlmButtonGroupSeparator], exports: [HlmButtonGroup, HlmButtonGroupText, HlmButtonGroupSeparator] });
87
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmButtonGroupModule });
88
88
  }
89
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: HlmButtonGroupModule, decorators: [{
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: HlmButtonGroupModule, decorators: [{
90
90
  type: NgModule,
91
91
  args: [{
92
92
  imports: [...HlmButtonGroupImports],
@@ -99,4 +99,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
99
99
  */
100
100
 
101
101
  export { HlmButtonGroup, HlmButtonGroupImports, HlmButtonGroupModule, HlmButtonGroupSeparator, HlmButtonGroupText };
102
- //# sourceMappingURL=button-group.mjs.map
102
+
@@ -1,64 +1,3 @@
1
- # Calendar
1
+ # Calendar 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 calendar
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/calendar
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/calendar` or `@egose/shadcn-theme-ng-tw/calendar`. See the [package README](../../README.md) for installation, compatibility, Tailwind variant, test, and release guidance. Do not publish this project directory independently.