@customafk/lunas-ui 0.1.98 → 0.2.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 (267) hide show
  1. package/dist/button-6-3G2PiR.mjs +2 -0
  2. package/dist/{button-C_yZHudZ.mjs.map → button-6-3G2PiR.mjs.map} +1 -1
  3. package/dist/button-D0WaocKO.cjs +2 -0
  4. package/dist/button-D0WaocKO.cjs.map +1 -0
  5. package/dist/{button-BnpEQNcI.d.cts → button-D0YsVKtm.d.cts} +5 -5
  6. package/dist/{button-DmtBrsu5.d.mts → button-L3Ts3X9d.d.mts} +3 -3
  7. package/dist/button.variants-DuuH1O0_.mjs +2 -0
  8. package/dist/button.variants-DuuH1O0_.mjs.map +1 -0
  9. package/dist/button.variants-rdXrPUao.cjs +2 -0
  10. package/dist/button.variants-rdXrPUao.cjs.map +1 -0
  11. package/dist/{calendar-DgLMLD8R.cjs → calendar-CO20ceyB.cjs} +2 -2
  12. package/dist/{calendar-DgLMLD8R.cjs.map → calendar-CO20ceyB.cjs.map} +1 -1
  13. package/dist/{calendar-e9Pu8pNj.mjs → calendar-D3hTjPxn.mjs} +2 -2
  14. package/dist/{calendar-e9Pu8pNj.mjs.map → calendar-D3hTjPxn.mjs.map} +1 -1
  15. package/dist/cards/grid-product-card.cjs +1 -1
  16. package/dist/cards/grid-product-card.mjs +1 -1
  17. package/dist/cards/product-card.cjs +1 -1
  18. package/dist/cards/product-card.mjs +1 -1
  19. package/dist/cards/simple-card.cjs +1 -1
  20. package/dist/cards/simple-card.d.mts +2 -2
  21. package/dist/cards/simple-card.mjs +1 -1
  22. package/dist/{command-Uq5FAdtW.mjs → command-DhBTNTqz.mjs} +2 -2
  23. package/dist/{command-Uq5FAdtW.mjs.map → command-DhBTNTqz.mjs.map} +1 -1
  24. package/dist/{command-Dd4OnuB0.cjs → command-_zpTaaIk.cjs} +2 -2
  25. package/dist/{command-Dd4OnuB0.cjs.map → command-_zpTaaIk.cjs.map} +1 -1
  26. package/dist/data-display/country.cjs +1 -1
  27. package/dist/data-display/country.mjs +1 -1
  28. package/dist/data-display/date-tooltip.cjs +1 -1
  29. package/dist/data-display/date-tooltip.mjs +1 -1
  30. package/dist/data-display/date.cjs +1 -1
  31. package/dist/data-display/date.mjs +1 -1
  32. package/dist/data-display/empty.d.cts +2 -2
  33. package/dist/data-display/name.cjs +1 -1
  34. package/dist/data-display/name.mjs +1 -1
  35. package/dist/data-display/statistic.d.cts +2 -2
  36. package/dist/data-display/statistic.d.mts +2 -2
  37. package/dist/data-display/user.cjs +1 -1
  38. package/dist/data-display/user.mjs +1 -1
  39. package/dist/date-By93kONr.mjs +2 -0
  40. package/dist/date-By93kONr.mjs.map +1 -0
  41. package/dist/date-em5f7hCx.cjs +2 -0
  42. package/dist/date-em5f7hCx.cjs.map +1 -0
  43. package/dist/{dialog-BWDpdfq4.d.cts → dialog-C3T_1iTB.d.cts} +12 -12
  44. package/dist/{dialog-CfAXxmem.d.mts → dialog-COoKGA4Q.d.mts} +12 -12
  45. package/dist/{dialog-DTz8ngeU.mjs → dialog-CxELDK98.mjs} +2 -2
  46. package/dist/{dialog-DTz8ngeU.mjs.map → dialog-CxELDK98.mjs.map} +1 -1
  47. package/dist/{dialog-2N-D9B9o.cjs → dialog-DjRiV5vR.cjs} +2 -2
  48. package/dist/{dialog-2N-D9B9o.cjs.map → dialog-DjRiV5vR.cjs.map} +1 -1
  49. package/dist/dialogs/confirm-dialog.cjs +1 -1
  50. package/dist/dialogs/confirm-dialog.cjs.map +1 -1
  51. package/dist/dialogs/confirm-dialog.mjs +1 -1
  52. package/dist/dialogs/confirm-dialog.mjs.map +1 -1
  53. package/dist/dialogs/detail-dialog/components/sidebar.cjs +1 -1
  54. package/dist/dialogs/detail-dialog/components/sidebar.d.cts +26 -26
  55. package/dist/dialogs/detail-dialog/components/sidebar.d.mts +24 -24
  56. package/dist/dialogs/detail-dialog/components/sidebar.mjs +1 -1
  57. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  58. package/dist/dialogs/detail-dialog/index.mjs +1 -1
  59. package/dist/dialogs/error-dialog.cjs +1 -1
  60. package/dist/dialogs/error-dialog.mjs +1 -1
  61. package/dist/dialogs/loading-dialog.cjs +1 -1
  62. package/dist/dialogs/loading-dialog.mjs +1 -1
  63. package/dist/features/descriptions/index.cjs +1 -1
  64. package/dist/features/descriptions/index.d.cts +4 -4
  65. package/dist/features/descriptions/index.mjs +1 -1
  66. package/dist/features/search-modal/index.cjs +1 -1
  67. package/dist/features/search-modal/index.d.cts +2 -2
  68. package/dist/features/search-modal/index.d.mts +2 -2
  69. package/dist/features/search-modal/index.mjs +1 -1
  70. package/dist/features/tables/index.cjs +1 -1
  71. package/dist/features/tables/index.cjs.map +1 -1
  72. package/dist/features/tables/index.d.cts +1 -1
  73. package/dist/features/tables/index.d.mts +1 -1
  74. package/dist/features/tables/index.mjs +1 -1
  75. package/dist/features/tables/index.mjs.map +1 -1
  76. package/dist/features/tanstack-form/index.cjs +1 -1
  77. package/dist/features/tanstack-form/index.cjs.map +1 -1
  78. package/dist/features/tanstack-form/index.d.cts +231 -224
  79. package/dist/features/tanstack-form/index.d.mts +58 -51
  80. package/dist/features/tanstack-form/index.mjs +1 -1
  81. package/dist/features/tanstack-form/index.mjs.map +1 -1
  82. package/dist/{input-B4scaWjT.d.mts → input-C3M7uZqX.d.cts} +4 -4
  83. package/dist/{input-Bq2N5bvL.d.cts → input-C9dS5env.d.mts} +5 -5
  84. package/dist/layouts/cms-layout/index.cjs +1 -1
  85. package/dist/layouts/cms-layout/index.cjs.map +1 -1
  86. package/dist/layouts/cms-layout/index.d.cts +3 -0
  87. package/dist/layouts/cms-layout/index.d.mts +3 -0
  88. package/dist/layouts/cms-layout/index.mjs +1 -1
  89. package/dist/layouts/cms-layout/index.mjs.map +1 -1
  90. package/dist/layouts/flex.d.cts +2 -2
  91. package/dist/layouts/flex.d.mts +2 -2
  92. package/dist/layouts/payment-layout/index.cjs +1 -1
  93. package/dist/layouts/payment-layout/index.mjs +1 -1
  94. package/dist/pages/FeatureDeveloping.cjs +1 -1
  95. package/dist/pages/FeatureDeveloping.d.cts +2 -2
  96. package/dist/pages/FeatureDeveloping.d.mts +2 -2
  97. package/dist/pages/FeatureDeveloping.mjs +1 -1
  98. package/dist/pages/FeatureFixing.cjs +1 -1
  99. package/dist/pages/FeatureFixing.d.cts +2 -2
  100. package/dist/pages/FeatureFixing.d.mts +2 -2
  101. package/dist/pages/FeatureFixing.mjs +1 -1
  102. package/dist/pages/NotAuthorized.cjs +1 -1
  103. package/dist/pages/NotAuthorized.d.cts +2 -2
  104. package/dist/pages/NotAuthorized.mjs +1 -1
  105. package/dist/pages/NotFound.cjs +1 -1
  106. package/dist/pages/NotFound.d.cts +2 -2
  107. package/dist/pages/NotFound.d.mts +2 -2
  108. package/dist/pages/NotFound.mjs +1 -1
  109. package/dist/{paragraph-BBye8n4M.cjs → paragraph-B72bHMf7.cjs} +2 -2
  110. package/dist/paragraph-B72bHMf7.cjs.map +1 -0
  111. package/dist/{paragraph-BS88Xdo7.mjs → paragraph-moBSTPmT.mjs} +2 -2
  112. package/dist/paragraph-moBSTPmT.mjs.map +1 -0
  113. package/dist/typography/paragraph.cjs +1 -1
  114. package/dist/typography/paragraph.d.cts +6 -6
  115. package/dist/typography/paragraph.d.mts +4 -4
  116. package/dist/typography/paragraph.mjs +1 -1
  117. package/dist/typography/title.d.cts +2 -2
  118. package/dist/ui/alert-dialog.cjs +1 -1
  119. package/dist/ui/alert-dialog.d.cts +12 -12
  120. package/dist/ui/alert-dialog.d.mts +12 -12
  121. package/dist/ui/alert-dialog.mjs +1 -1
  122. package/dist/ui/alert.d.cts +6 -6
  123. package/dist/ui/alert.d.mts +4 -4
  124. package/dist/ui/aspect-ratio.d.cts +2 -2
  125. package/dist/ui/aspect-ratio.d.mts +2 -2
  126. package/dist/ui/avatar.d.cts +4 -4
  127. package/dist/ui/avatar.d.mts +4 -4
  128. package/dist/ui/badge.d.cts +2 -2
  129. package/dist/ui/badge.d.mts +4 -4
  130. package/dist/ui/breadcrumb.d.cts +8 -8
  131. package/dist/ui/breadcrumb.d.mts +8 -8
  132. package/dist/ui/button-group.d.cts +6 -6
  133. package/dist/ui/button-group.d.mts +6 -6
  134. package/dist/ui/button.cjs +1 -1
  135. package/dist/ui/button.d.cts +1 -1
  136. package/dist/ui/button.d.mts +1 -1
  137. package/dist/ui/button.mjs +1 -1
  138. package/dist/ui/buttons/add-new.cjs +1 -1
  139. package/dist/ui/buttons/add-new.mjs +1 -1
  140. package/dist/ui/buttons/edit.cjs +1 -1
  141. package/dist/ui/buttons/edit.mjs +1 -1
  142. package/dist/ui/buttons/refresh.cjs +1 -1
  143. package/dist/ui/buttons/refresh.mjs +1 -1
  144. package/dist/ui/buttons/trash.cjs +1 -1
  145. package/dist/ui/buttons/trash.mjs +1 -1
  146. package/dist/ui/buttons/upload-image.cjs +1 -1
  147. package/dist/ui/buttons/upload-image.mjs +1 -1
  148. package/dist/ui/calendar.cjs +1 -1
  149. package/dist/ui/calendar.d.cts +4 -4
  150. package/dist/ui/calendar.d.mts +4 -4
  151. package/dist/ui/calendar.mjs +1 -1
  152. package/dist/ui/card.cjs +1 -1
  153. package/dist/ui/card.d.cts +8 -8
  154. package/dist/ui/card.d.mts +8 -8
  155. package/dist/ui/card.mjs +1 -1
  156. package/dist/ui/carousel.cjs +1 -1
  157. package/dist/ui/carousel.d.cts +7 -7
  158. package/dist/ui/carousel.d.mts +7 -7
  159. package/dist/ui/carousel.mjs +1 -1
  160. package/dist/ui/checkbox.d.cts +2 -2
  161. package/dist/ui/checkbox.d.mts +2 -2
  162. package/dist/ui/collapsible.d.cts +4 -4
  163. package/dist/ui/collapsible.d.mts +4 -4
  164. package/dist/ui/command.cjs +1 -1
  165. package/dist/ui/command.d.cts +11 -11
  166. package/dist/ui/command.d.mts +11 -11
  167. package/dist/ui/command.mjs +1 -1
  168. package/dist/ui/context-menu.d.cts +16 -16
  169. package/dist/ui/context-menu.d.mts +16 -16
  170. package/dist/ui/dialog.cjs +1 -1
  171. package/dist/ui/dialog.d.cts +1 -1
  172. package/dist/ui/dialog.d.mts +1 -1
  173. package/dist/ui/dialog.mjs +1 -1
  174. package/dist/ui/drawer.d.cts +11 -11
  175. package/dist/ui/drawer.d.mts +11 -11
  176. package/dist/ui/dropdown-menu.d.cts +16 -16
  177. package/dist/ui/dropdown-menu.d.mts +16 -16
  178. package/dist/ui/empty.d.cts +9 -9
  179. package/dist/ui/empty.d.mts +9 -9
  180. package/dist/ui/field.d.cts +24 -24
  181. package/dist/ui/field.d.mts +24 -24
  182. package/dist/ui/file-uploader.cjs +1 -1
  183. package/dist/ui/file-uploader.d.cts +2 -2
  184. package/dist/ui/file-uploader.d.mts +2 -2
  185. package/dist/ui/file-uploader.mjs +1 -1
  186. package/dist/ui/form.d.cts +11 -11
  187. package/dist/ui/form.d.mts +11 -11
  188. package/dist/ui/hover-card.d.cts +4 -4
  189. package/dist/ui/hover-card.d.mts +4 -4
  190. package/dist/ui/input-otp.d.cts +5 -5
  191. package/dist/ui/input-otp.d.mts +5 -5
  192. package/dist/ui/input.d.cts +1 -1
  193. package/dist/ui/input.d.mts +1 -1
  194. package/dist/ui/inputs/search-input.d.cts +3 -3
  195. package/dist/ui/inputs/search-input.d.mts +3 -3
  196. package/dist/ui/item.d.cts +14 -14
  197. package/dist/ui/item.d.mts +14 -14
  198. package/dist/ui/label.d.cts +2 -2
  199. package/dist/ui/label.d.mts +2 -2
  200. package/dist/ui/menubar.d.cts +17 -17
  201. package/dist/ui/menubar.d.mts +17 -17
  202. package/dist/ui/multi-select.cjs +1 -1
  203. package/dist/ui/multi-select.d.cts +2 -2
  204. package/dist/ui/multi-select.d.mts +3 -3
  205. package/dist/ui/multi-select.mjs +1 -1
  206. package/dist/ui/navigation-menu.d.cts +11 -11
  207. package/dist/ui/navigation-menu.d.mts +11 -11
  208. package/dist/ui/pagination.cjs +1 -1
  209. package/dist/ui/pagination.d.cts +9 -9
  210. package/dist/ui/pagination.d.mts +9 -9
  211. package/dist/ui/pagination.mjs +1 -1
  212. package/dist/ui/popover.d.cts +6 -6
  213. package/dist/ui/popover.d.mts +6 -6
  214. package/dist/ui/progress.d.cts +2 -2
  215. package/dist/ui/progress.d.mts +2 -2
  216. package/dist/ui/radio-group.d.cts +3 -3
  217. package/dist/ui/radio-group.d.mts +3 -3
  218. package/dist/ui/resizable.d.cts +9 -9
  219. package/dist/ui/resizable.d.mts +9 -9
  220. package/dist/ui/scroll-area.d.cts +6 -6
  221. package/dist/ui/scroll-area.d.mts +6 -6
  222. package/dist/ui/select.d.cts +9 -9
  223. package/dist/ui/select.d.mts +9 -9
  224. package/dist/ui/separator.d.cts +2 -2
  225. package/dist/ui/separator.d.mts +2 -2
  226. package/dist/ui/sheet.d.cts +9 -9
  227. package/dist/ui/sheet.d.mts +9 -9
  228. package/dist/ui/sidebar.cjs +1 -1
  229. package/dist/ui/sidebar.d.cts +28 -28
  230. package/dist/ui/sidebar.d.mts +28 -28
  231. package/dist/ui/sidebar.mjs +1 -1
  232. package/dist/ui/skeleton.d.cts +2 -2
  233. package/dist/ui/skeleton.d.mts +2 -2
  234. package/dist/ui/slider.d.cts +2 -2
  235. package/dist/ui/slider.d.mts +2 -2
  236. package/dist/ui/sonner.d.cts +2 -2
  237. package/dist/ui/sonner.d.mts +2 -2
  238. package/dist/ui/spinner.d.cts +2 -2
  239. package/dist/ui/spinner.d.mts +2 -2
  240. package/dist/ui/switch.d.cts +2 -2
  241. package/dist/ui/switch.d.mts +2 -2
  242. package/dist/ui/table.d.cts +18 -18
  243. package/dist/ui/table.d.mts +18 -18
  244. package/dist/ui/tabs.d.cts +5 -5
  245. package/dist/ui/tabs.d.mts +5 -5
  246. package/dist/ui/textarea.d.cts +2 -2
  247. package/dist/ui/textarea.d.mts +2 -2
  248. package/dist/ui/toggle-group.d.cts +3 -3
  249. package/dist/ui/toggle-group.d.mts +3 -3
  250. package/dist/ui/toggle.d.cts +4 -4
  251. package/dist/ui/toggle.d.mts +4 -4
  252. package/dist/ui/tooltip.d.cts +5 -5
  253. package/dist/ui/tooltip.d.mts +5 -5
  254. package/package.json +2 -2
  255. package/dist/button-8Snjc8iT.cjs +0 -2
  256. package/dist/button-8Snjc8iT.cjs.map +0 -1
  257. package/dist/button-C_yZHudZ.mjs +0 -2
  258. package/dist/button.variants-8QOIR433.cjs +0 -2
  259. package/dist/button.variants-8QOIR433.cjs.map +0 -1
  260. package/dist/button.variants-CL2rLGYO.mjs +0 -2
  261. package/dist/button.variants-CL2rLGYO.mjs.map +0 -1
  262. package/dist/date-CK7XBqG9.mjs +0 -2
  263. package/dist/date-CK7XBqG9.mjs.map +0 -1
  264. package/dist/date-CTmoK8tv.cjs +0 -2
  265. package/dist/date-CTmoK8tv.cjs.map +0 -1
  266. package/dist/paragraph-BBye8n4M.cjs.map +0 -1
  267. package/dist/paragraph-BS88Xdo7.mjs.map +0 -1
@@ -1,34 +1,34 @@
1
- import * as react_jsx_runtime191 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime260 from "react/jsx-runtime";
2
2
  import { Menubar as Menubar$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/menubar.d.ts
5
5
  declare function Menubar({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<typeof Menubar$1.Root>): react_jsx_runtime191.JSX.Element;
8
+ }: React.ComponentProps<typeof Menubar$1.Root>): react_jsx_runtime260.JSX.Element;
9
9
  declare function MenubarMenu({
10
10
  ...props
11
- }: React.ComponentProps<typeof Menubar$1.Menu>): react_jsx_runtime191.JSX.Element;
11
+ }: React.ComponentProps<typeof Menubar$1.Menu>): react_jsx_runtime260.JSX.Element;
12
12
  declare function MenubarGroup({
13
13
  ...props
14
- }: React.ComponentProps<typeof Menubar$1.Group>): react_jsx_runtime191.JSX.Element;
14
+ }: React.ComponentProps<typeof Menubar$1.Group>): react_jsx_runtime260.JSX.Element;
15
15
  declare function MenubarPortal({
16
16
  ...props
17
- }: React.ComponentProps<typeof Menubar$1.Portal>): react_jsx_runtime191.JSX.Element;
17
+ }: React.ComponentProps<typeof Menubar$1.Portal>): react_jsx_runtime260.JSX.Element;
18
18
  declare function MenubarRadioGroup({
19
19
  ...props
20
- }: React.ComponentProps<typeof Menubar$1.RadioGroup>): react_jsx_runtime191.JSX.Element;
20
+ }: React.ComponentProps<typeof Menubar$1.RadioGroup>): react_jsx_runtime260.JSX.Element;
21
21
  declare function MenubarTrigger({
22
22
  className,
23
23
  ...props
24
- }: React.ComponentProps<typeof Menubar$1.Trigger>): react_jsx_runtime191.JSX.Element;
24
+ }: React.ComponentProps<typeof Menubar$1.Trigger>): react_jsx_runtime260.JSX.Element;
25
25
  declare function MenubarContent({
26
26
  className,
27
27
  align,
28
28
  alignOffset,
29
29
  sideOffset,
30
30
  ...props
31
- }: React.ComponentProps<typeof Menubar$1.Content>): react_jsx_runtime191.JSX.Element;
31
+ }: React.ComponentProps<typeof Menubar$1.Content>): react_jsx_runtime260.JSX.Element;
32
32
  declare function MenubarItem({
33
33
  className,
34
34
  inset,
@@ -37,36 +37,36 @@ declare function MenubarItem({
37
37
  }: React.ComponentProps<typeof Menubar$1.Item> & {
38
38
  inset?: boolean;
39
39
  variant?: 'default' | 'destructive';
40
- }): react_jsx_runtime191.JSX.Element;
40
+ }): react_jsx_runtime260.JSX.Element;
41
41
  declare function MenubarCheckboxItem({
42
42
  className,
43
43
  children,
44
44
  checked,
45
45
  ...props
46
- }: React.ComponentProps<typeof Menubar$1.CheckboxItem>): react_jsx_runtime191.JSX.Element;
46
+ }: React.ComponentProps<typeof Menubar$1.CheckboxItem>): react_jsx_runtime260.JSX.Element;
47
47
  declare function MenubarRadioItem({
48
48
  className,
49
49
  children,
50
50
  ...props
51
- }: React.ComponentProps<typeof Menubar$1.RadioItem>): react_jsx_runtime191.JSX.Element;
51
+ }: React.ComponentProps<typeof Menubar$1.RadioItem>): react_jsx_runtime260.JSX.Element;
52
52
  declare function MenubarLabel({
53
53
  className,
54
54
  inset,
55
55
  ...props
56
56
  }: React.ComponentProps<typeof Menubar$1.Label> & {
57
57
  inset?: boolean;
58
- }): react_jsx_runtime191.JSX.Element;
58
+ }): react_jsx_runtime260.JSX.Element;
59
59
  declare function MenubarSeparator({
60
60
  className,
61
61
  ...props
62
- }: React.ComponentProps<typeof Menubar$1.Separator>): react_jsx_runtime191.JSX.Element;
62
+ }: React.ComponentProps<typeof Menubar$1.Separator>): react_jsx_runtime260.JSX.Element;
63
63
  declare function MenubarShortcut({
64
64
  className,
65
65
  ...props
66
- }: React.ComponentProps<'span'>): react_jsx_runtime191.JSX.Element;
66
+ }: React.ComponentProps<'span'>): react_jsx_runtime260.JSX.Element;
67
67
  declare function MenubarSub({
68
68
  ...props
69
- }: React.ComponentProps<typeof Menubar$1.Sub>): react_jsx_runtime191.JSX.Element;
69
+ }: React.ComponentProps<typeof Menubar$1.Sub>): react_jsx_runtime260.JSX.Element;
70
70
  declare function MenubarSubTrigger({
71
71
  className,
72
72
  inset,
@@ -74,11 +74,11 @@ declare function MenubarSubTrigger({
74
74
  ...props
75
75
  }: React.ComponentProps<typeof Menubar$1.SubTrigger> & {
76
76
  inset?: boolean;
77
- }): react_jsx_runtime191.JSX.Element;
77
+ }): react_jsx_runtime260.JSX.Element;
78
78
  declare function MenubarSubContent({
79
79
  className,
80
80
  ...props
81
- }: React.ComponentProps<typeof Menubar$1.SubContent>): react_jsx_runtime191.JSX.Element;
81
+ }: React.ComponentProps<typeof Menubar$1.SubContent>): react_jsx_runtime260.JSX.Element;
82
82
  //#endregion
83
83
  export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
84
84
  //# sourceMappingURL=menubar.d.mts.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../heading-BEm5CCSE.cjs`),require(`../paragraph-BBye8n4M.cjs`),require(`../button.variants-8QOIR433.cjs`);const t=require(`../button-8Snjc8iT.cjs`);require(`../close-D_Ge7gnP.cjs`),require(`../dialog-2N-D9B9o.cjs`);const n=require(`../command-Dd4OnuB0.cjs`);let r=require(`@customafk/react-toolkit/utils`),i=require(`react`),a=require(`react/jsx-runtime`),o=require(`lucide-react`),s=require(`cmdk`);function c(e,t){let[n,r]=(0,i.useState)(e);return(0,i.useEffect)(()=>{let n=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(n)}},[e,t]),n}function l(e,t){if(e.length===0)return{};if(!t)return{"":e};let n={};return e.forEach(e=>{let r=e[t]||``;n[r]||(n[r]=[]),n[r].push(e)}),n}function u(e,t){let n=JSON.parse(JSON.stringify(e));for(let[e,r]of Object.entries(n))n[e]=r.filter(e=>!t.find(t=>t.value===e.value));return n}function d(e,t){for(let[,n]of Object.entries(e))if(n.some(e=>t.find(t=>t.value===e.value)))return!0;return!1}const f=(0,i.forwardRef)(({className:e,...t},n)=>(0,s.useCommandState)(e=>e.filtered.count===0)?(0,a.jsx)(`div`,{ref:n,className:(0,r.cn)(`px-2 py-4 text-center text-sm`,e),"cmdk-empty":``,role:`presentation`,...t}):null);f.displayName=`CommandEmpty`;const p=(0,i.forwardRef)(({value:e,onChange:p,placeholder:m,defaultOptions:h=[],options:g,delay:_,onSearch:v,onSearchSync:y,loadingIndicator:b,emptyIndicator:x,maxSelected:S=2**53-1,onMaxSelected:C,hidePlaceholderWhenSelected:w,disabled:T,groupBy:E,className:D,badgeClassName:O,selectFirstItem:k=!0,creatable:A=!1,triggerSearchOnFocus:j=!1,commandProps:M,inputProps:N,hideClearAllButton:P=!1,onAddNewItem:F},I)=>{let L=(0,i.useRef)(null),R=(0,i.useRef)(null),[z,B]=(0,i.useState)(!1),[V,H]=(0,i.useState)(!1),[U,W]=(0,i.useState)(!1),[G,K]=(0,i.useState)(e||[]),[q,J]=(0,i.useState)(l(h,E)),[Y,X]=(0,i.useState)(``),Z=c(Y,_||500);(0,i.useImperativeHandle)(I,()=>({selectedValue:[...G],input:L.current,focus:()=>L?.current?.focus(),reset:()=>K([])}),[G]);let Q=(0,i.useCallback)(e=>{R.current&&!R.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&(B(!1),L.current.blur())},[]),$=(0,i.useCallback)(e=>{let t=G.filter(t=>t.value!==e.value);K(t),p?.(t)},[p,G]),ee=(0,i.useCallback)(e=>{let t=L.current;t&&((e.key===`Delete`||e.key===`Backspace`)&&t.value===``&&G.length>0&&(G[G.length-1].fixed||$(G[G.length-1])),e.key===`Escape`&&t.blur())},[$,G]);(0,i.useEffect)(()=>(z?(document.addEventListener(`mousedown`,Q),document.addEventListener(`touchend`,Q)):(document.removeEventListener(`mousedown`,Q),document.removeEventListener(`touchend`,Q)),()=>{document.removeEventListener(`mousedown`,Q),document.removeEventListener(`touchend`,Q)}),[z]),(0,i.useEffect)(()=>{e&&K(e)},[e]),(0,i.useEffect)(()=>{if(!g||v)return;let e=l(g||[],E);JSON.stringify(e)!==JSON.stringify(q)&&J(e)},[h,g,E,v,q]),(0,i.useEffect)(()=>{let e=()=>{let e=y?.(Z);J(l(e||[],E))};(async()=>{!y||!z||(j&&e(),Z&&e())})()},[Z,E,z,j]),(0,i.useEffect)(()=>{let e=async()=>{W(!0),J(l(await v?.(Z)||[],E)),W(!1)};(async()=>{!v||!z||(j&&await e(),Z&&await e())})()},[Z,E,z,j]);let te=()=>{if(!A||d(q,[{value:Y,label:Y}])||G.find(e=>e.value===Y))return;let e=(0,a.jsx)(n.o,{value:Y,className:`cursor-pointer`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:e=>{if(G.length>=S){C?.(G.length);return}X(``);let t=[...G,{value:e,label:e}];K(t),p?.(t)},children:`Create "${Y}"`});if(!v&&Y.length>0||v&&Z.length>0&&!U)return e},ne=(0,i.useCallback)(()=>{if(x)return v&&!A&&Object.keys(q).length===0?(0,a.jsx)(n.o,{value:`-`,disabled:!0,children:x}):(0,a.jsx)(f,{children:x})},[A,x,v,q]),re=(0,i.useMemo)(()=>u(q,G),[q,G]),ie=(0,i.useCallback)(()=>{if(M?.filter)return M.filter;if(A)return(e,t)=>e.toLowerCase().includes(t.toLowerCase())?1:-1},[A,M?.filter]);return(0,a.jsxs)(n.t,{ref:R,...M,onKeyDown:e=>{ee(e),M?.onKeyDown?.(e)},className:(0,r.cn)(`h-auto overflow-visible bg-transparent`,M?.className),shouldFilter:M?.shouldFilter===void 0?!v:M.shouldFilter,filter:ie(),children:[(0,a.jsx)(`div`,{className:(0,r.cn)(`border-border-weak relative rounded-md border text-sm transition-shadow`,`focus-within:border-primary`,`focus-within:ring-primary-weak`,`focus-within:ring-4`,`focus-within:outline-hidden`,`has-disabled:bg-muted`,`has-disabled:text-muted-foreground`,G.length!==0&&`p-1`,!T&&G.length!==0&&`cursor-text`,!P&&`pe-9`,D),onClick:()=>{T||L?.current?.focus()},children:(0,a.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[G.map(e=>(0,a.jsxs)(`div`,{className:(0,r.cn)(`animate-fadeIn`,`bg-background`,`hover:bg-background`,`border-border-weak border border-solid`,`text-text-positive-weak relative inline-flex h-7 cursor-default items-center rounded-md ps-2 pe-7 pl-2 text-xs font-medium transition-all`,`disabled:cursor-not-allowed`,`disabled:opacity-50`,`data-fixed:pe-2`,O),"data-fixed":e.fixed,"data-disabled":T||void 0,children:[e.label,(0,a.jsx)(`button`,{type:`button`,disabled:T||e.fixed,className:(0,r.cn)(`text-text-positive-muted absolute -inset-y-px -end-px flex size-7 items-center justify-center rounded-e-lg border border-transparent p-0 outline-0 transition-colors`,`hover:text-foreground`,`focus-visible:outline`,`focus-visible:outline-2`,`focus-visible:outline-primary-weak`,`disabled:hover:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`),onKeyDown:t=>{t.key===`Enter`&&$(e)},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:()=>$(e),"aria-label":`Remove`,children:(0,a.jsx)(o.X,{size:14,strokeWidth:2,"aria-hidden":`true`})})]},e.value)),(0,a.jsx)(s.Command.Input,{...N,ref:L,value:Y,disabled:T,onValueChange:e=>{X(e),N?.onValueChange?.(e)},onBlur:e=>{V||B(!1),N?.onBlur?.(e)},onFocus:e=>{B(!0),j&&v?.(Z),N?.onFocus?.(e)},placeholder:w&&G.length!==0?``:m,className:(0,r.cn)(`placeholder:text-text-positive-muted flex-1 bg-transparent outline-hidden`,`disabled:placeholder:text-transparent`,{"w-full":w,"px-3 py-2":G.length===0,"ml-1":G.length!==0},N?.className)}),(0,a.jsx)(`button`,{type:`button`,onClick:()=>{K(G.filter(e=>e.fixed)),p?.(G.filter(e=>e.fixed))},className:(0,r.cn)(`text-muted-foreground/80`,`absolute end-0 top-0 flex size-9 items-center justify-center rounded-lg border border-transparent transition-colors`,`focus-visible:outline-2`,`hover:text-text-positive`,`focus-visible:outline-primary-weak`,(P||T||G.length<1||G.filter(({fixed:e})=>e).length===G.length)&&`hidden`),"aria-label":`Clear all`,children:(0,a.jsx)(o.X,{size:16,strokeWidth:2,"aria-hidden":`true`})})]})}),(0,a.jsx)(`div`,{className:`relative`,children:(0,a.jsx)(`div`,{className:(0,r.cn)(`shadow-dropdown absolute top-2 z-10 w-full overflow-hidden rounded-lg`,`data-[state=open]:animate-in`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,`data-[state=open]:fade-in-0`,`data-[state=closed]:zoom-out-95`,`data-[state=open]:zoom-in-95`,!z&&`hidden`),"data-state":z?`open`:`closed`,children:z&&(0,a.jsxs)(n.s,{className:`shadow-lg outline-hidden`,onMouseLeave:()=>{H(!1)},onMouseEnter:()=>{H(!0)},onMouseUp:()=>{L?.current?.focus()},children:[F&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.c,{}),(0,a.jsx)(n.i,{children:(0,a.jsxs)(t.t,{type:`button`,variant:`ghost`,className:`w-full font-normal [&_div]:justify-start`,onClick:F,children:[(0,a.jsx)(o.PlusIcon,{size:14,className:`opacity-60`,"aria-hidden":`true`}),`Thêm mới`]})})]}),U?b:(0,a.jsxs)(a.Fragment,{children:[ne(),te(),!k&&(0,a.jsx)(n.o,{value:`-`,className:`hidden`}),Object.entries(re).map(([e,t])=>(0,a.jsx)(n.i,{heading:e,className:`h-full overflow-auto`,children:t.map(e=>(0,a.jsx)(n.o,{value:e.value,disabled:e.disable,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:()=>{if(G.length>=S){C?.(G.length);return}let t=[...G,e];X(``),K(t),p?.(t)},className:(0,r.cn)(`cursor-pointer`,e.disable&&`cursor-not-allowed opacity-50`),children:e.label},e.value))},e))]})]})})})]})});p.displayName=`MultipleSelector`,exports.MultipleSelector=p,exports.useDebounce=c;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../heading-BEm5CCSE.cjs`),require(`../paragraph-B72bHMf7.cjs`),require(`../button.variants-rdXrPUao.cjs`);const t=require(`../button-D0WaocKO.cjs`);require(`../close-D_Ge7gnP.cjs`),require(`../dialog-DjRiV5vR.cjs`);const n=require(`../command-_zpTaaIk.cjs`);let r=require(`@customafk/react-toolkit/utils`),i=require(`react`),a=require(`react/jsx-runtime`),o=require(`lucide-react`),s=require(`cmdk`);function c(e,t){let[n,r]=(0,i.useState)(e);return(0,i.useEffect)(()=>{let n=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(n)}},[e,t]),n}function l(e,t){if(e.length===0)return{};if(!t)return{"":e};let n={};return e.forEach(e=>{let r=e[t]||``;n[r]||(n[r]=[]),n[r].push(e)}),n}function u(e,t){let n=JSON.parse(JSON.stringify(e));for(let[e,r]of Object.entries(n))n[e]=r.filter(e=>!t.find(t=>t.value===e.value));return n}function d(e,t){for(let[,n]of Object.entries(e))if(n.some(e=>t.find(t=>t.value===e.value)))return!0;return!1}const f=(0,i.forwardRef)(({className:e,...t},n)=>(0,s.useCommandState)(e=>e.filtered.count===0)?(0,a.jsx)(`div`,{ref:n,className:(0,r.cn)(`px-2 py-4 text-center text-sm`,e),"cmdk-empty":``,role:`presentation`,...t}):null);f.displayName=`CommandEmpty`;const p=(0,i.forwardRef)(({value:e,onChange:p,placeholder:m,defaultOptions:h=[],options:g,delay:_,onSearch:v,onSearchSync:y,loadingIndicator:b,emptyIndicator:x,maxSelected:S=2**53-1,onMaxSelected:C,hidePlaceholderWhenSelected:w,disabled:T,groupBy:E,className:D,badgeClassName:O,selectFirstItem:k=!0,creatable:A=!1,triggerSearchOnFocus:j=!1,commandProps:M,inputProps:N,hideClearAllButton:P=!1,onAddNewItem:F},I)=>{let L=(0,i.useRef)(null),R=(0,i.useRef)(null),[z,B]=(0,i.useState)(!1),[V,H]=(0,i.useState)(!1),[U,W]=(0,i.useState)(!1),[G,K]=(0,i.useState)(e||[]),[q,J]=(0,i.useState)(l(h,E)),[Y,X]=(0,i.useState)(``),Z=c(Y,_||500);(0,i.useImperativeHandle)(I,()=>({selectedValue:[...G],input:L.current,focus:()=>L?.current?.focus(),reset:()=>K([])}),[G]);let Q=(0,i.useCallback)(e=>{R.current&&!R.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&(B(!1),L.current.blur())},[]),$=(0,i.useCallback)(e=>{let t=G.filter(t=>t.value!==e.value);K(t),p?.(t)},[p,G]),ee=(0,i.useCallback)(e=>{let t=L.current;t&&((e.key===`Delete`||e.key===`Backspace`)&&t.value===``&&G.length>0&&(G[G.length-1].fixed||$(G[G.length-1])),e.key===`Escape`&&t.blur())},[$,G]);(0,i.useEffect)(()=>(z?(document.addEventListener(`mousedown`,Q),document.addEventListener(`touchend`,Q)):(document.removeEventListener(`mousedown`,Q),document.removeEventListener(`touchend`,Q)),()=>{document.removeEventListener(`mousedown`,Q),document.removeEventListener(`touchend`,Q)}),[z]),(0,i.useEffect)(()=>{e&&K(e)},[e]),(0,i.useEffect)(()=>{if(!g||v)return;let e=l(g||[],E);JSON.stringify(e)!==JSON.stringify(q)&&J(e)},[h,g,E,v,q]),(0,i.useEffect)(()=>{let e=()=>{let e=y?.(Z);J(l(e||[],E))};(async()=>{!y||!z||(j&&e(),Z&&e())})()},[Z,E,z,j]),(0,i.useEffect)(()=>{let e=async()=>{W(!0),J(l(await v?.(Z)||[],E)),W(!1)};(async()=>{!v||!z||(j&&await e(),Z&&await e())})()},[Z,E,z,j]);let te=()=>{if(!A||d(q,[{value:Y,label:Y}])||G.find(e=>e.value===Y))return;let e=(0,a.jsx)(n.o,{value:Y,className:`cursor-pointer`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:e=>{if(G.length>=S){C?.(G.length);return}X(``);let t=[...G,{value:e,label:e}];K(t),p?.(t)},children:`Create "${Y}"`});if(!v&&Y.length>0||v&&Z.length>0&&!U)return e},ne=(0,i.useCallback)(()=>{if(x)return v&&!A&&Object.keys(q).length===0?(0,a.jsx)(n.o,{value:`-`,disabled:!0,children:x}):(0,a.jsx)(f,{children:x})},[A,x,v,q]),re=(0,i.useMemo)(()=>u(q,G),[q,G]),ie=(0,i.useCallback)(()=>{if(M?.filter)return M.filter;if(A)return(e,t)=>e.toLowerCase().includes(t.toLowerCase())?1:-1},[A,M?.filter]);return(0,a.jsxs)(n.t,{ref:R,...M,onKeyDown:e=>{ee(e),M?.onKeyDown?.(e)},className:(0,r.cn)(`h-auto overflow-visible bg-transparent`,M?.className),shouldFilter:M?.shouldFilter===void 0?!v:M.shouldFilter,filter:ie(),children:[(0,a.jsx)(`div`,{className:(0,r.cn)(`border-border-weak relative rounded-md border text-sm transition-shadow`,`focus-within:border-primary`,`focus-within:ring-primary-weak`,`focus-within:ring-4`,`focus-within:outline-hidden`,`has-disabled:bg-muted`,`has-disabled:text-muted-foreground`,G.length!==0&&`p-1`,!T&&G.length!==0&&`cursor-text`,!P&&`pe-9`,D),onClick:()=>{T||L?.current?.focus()},children:(0,a.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[G.map(e=>(0,a.jsxs)(`div`,{className:(0,r.cn)(`animate-fadeIn`,`bg-background`,`hover:bg-background`,`border-border-weak border border-solid`,`text-text-positive-weak relative inline-flex h-7 cursor-default items-center rounded-md ps-2 pe-7 pl-2 text-xs font-medium transition-all`,`disabled:cursor-not-allowed`,`disabled:opacity-50`,`data-fixed:pe-2`,O),"data-fixed":e.fixed,"data-disabled":T||void 0,children:[e.label,(0,a.jsx)(`button`,{type:`button`,disabled:T||e.fixed,className:(0,r.cn)(`text-text-positive-muted absolute -inset-y-px -end-px flex size-7 items-center justify-center rounded-e-lg border border-transparent p-0 outline-0 transition-colors`,`hover:text-foreground`,`focus-visible:outline`,`focus-visible:outline-2`,`focus-visible:outline-primary-weak`,`disabled:hover:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`),onKeyDown:t=>{t.key===`Enter`&&$(e)},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:()=>$(e),"aria-label":`Remove`,children:(0,a.jsx)(o.X,{size:14,strokeWidth:2,"aria-hidden":`true`})})]},e.value)),(0,a.jsx)(s.Command.Input,{...N,ref:L,value:Y,disabled:T,onValueChange:e=>{X(e),N?.onValueChange?.(e)},onBlur:e=>{V||B(!1),N?.onBlur?.(e)},onFocus:e=>{B(!0),j&&v?.(Z),N?.onFocus?.(e)},placeholder:w&&G.length!==0?``:m,className:(0,r.cn)(`placeholder:text-text-positive-muted flex-1 bg-transparent outline-hidden`,`disabled:placeholder:text-transparent`,{"w-full":w,"px-3 py-2":G.length===0,"ml-1":G.length!==0},N?.className)}),(0,a.jsx)(`button`,{type:`button`,onClick:()=>{K(G.filter(e=>e.fixed)),p?.(G.filter(e=>e.fixed))},className:(0,r.cn)(`text-muted-foreground/80`,`absolute end-0 top-0 flex size-9 items-center justify-center rounded-lg border border-transparent transition-colors`,`focus-visible:outline-2`,`hover:text-text-positive`,`focus-visible:outline-primary-weak`,(P||T||G.length<1||G.filter(({fixed:e})=>e).length===G.length)&&`hidden`),"aria-label":`Clear all`,children:(0,a.jsx)(o.X,{size:16,strokeWidth:2,"aria-hidden":`true`})})]})}),(0,a.jsx)(`div`,{className:`relative`,children:(0,a.jsx)(`div`,{className:(0,r.cn)(`shadow-dropdown absolute top-2 z-10 w-full overflow-hidden rounded-lg`,`data-[state=open]:animate-in`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,`data-[state=open]:fade-in-0`,`data-[state=closed]:zoom-out-95`,`data-[state=open]:zoom-in-95`,!z&&`hidden`),"data-state":z?`open`:`closed`,children:z&&(0,a.jsxs)(n.s,{className:`shadow-lg outline-hidden`,onMouseLeave:()=>{H(!1)},onMouseEnter:()=>{H(!0)},onMouseUp:()=>{L?.current?.focus()},children:[F&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.c,{}),(0,a.jsx)(n.i,{children:(0,a.jsxs)(t.t,{type:`button`,variant:`ghost`,className:`w-full font-normal [&_div]:justify-start`,onClick:F,children:[(0,a.jsx)(o.PlusIcon,{size:14,className:`opacity-60`,"aria-hidden":`true`}),`Thêm mới`]})})]}),U?b:(0,a.jsxs)(a.Fragment,{children:[ne(),te(),!k&&(0,a.jsx)(n.o,{value:`-`,className:`hidden`}),Object.entries(re).map(([e,t])=>(0,a.jsx)(n.i,{heading:e,className:`h-full overflow-auto`,children:t.map(e=>(0,a.jsx)(n.o,{value:e.value,disabled:e.disable,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:()=>{if(G.length>=S){C?.(G.length);return}let t=[...G,e];X(``),K(t),p?.(t)},className:(0,r.cn)(`cursor-pointer`,e.disable&&`cursor-not-allowed opacity-50`),children:e.label},e.value))},e))]})]})})})]})});p.displayName=`MultipleSelector`,exports.MultipleSelector=p,exports.useDebounce=c;
2
2
  //# sourceMappingURL=multi-select.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { Command as Command$1 } from "./command.cjs";
2
- import * as react9 from "react";
2
+ import * as react14 from "react";
3
3
  import { Command } from "cmdk";
4
4
 
5
5
  //#region packages/components/ui/multi-select.d.ts
@@ -74,7 +74,7 @@ interface MultipleSelectorRef {
74
74
  reset: () => void;
75
75
  }
76
76
  declare function useDebounce<T>(value: T, delay?: number): T;
77
- declare const MultipleSelector: react9.ForwardRefExoticComponent<MultipleSelectorProps & react9.RefAttributes<MultipleSelectorRef>>;
77
+ declare const MultipleSelector: react14.ForwardRefExoticComponent<MultipleSelectorProps & react14.RefAttributes<MultipleSelectorRef>>;
78
78
  //#endregion
79
79
  export { MultipleSelector, MultipleSelectorRef, Option, useDebounce };
80
80
  //# sourceMappingURL=multi-select.d.cts.map
@@ -1,6 +1,6 @@
1
- import "../dialog-CfAXxmem.mjs";
1
+ import "../dialog-COoKGA4Q.mjs";
2
2
  import { Command as Command$1 } from "./command.mjs";
3
- import * as react24 from "react";
3
+ import * as react21 from "react";
4
4
  import { Command } from "cmdk";
5
5
 
6
6
  //#region packages/components/ui/multi-select.d.ts
@@ -75,7 +75,7 @@ interface MultipleSelectorRef {
75
75
  reset: () => void;
76
76
  }
77
77
  declare function useDebounce<T>(value: T, delay?: number): T;
78
- declare const MultipleSelector: react24.ForwardRefExoticComponent<MultipleSelectorProps & react24.RefAttributes<MultipleSelectorRef>>;
78
+ declare const MultipleSelector: react21.ForwardRefExoticComponent<MultipleSelectorProps & react21.RefAttributes<MultipleSelectorRef>>;
79
79
  //#endregion
80
80
  export { MultipleSelector, MultipleSelectorRef, Option, useDebounce };
81
81
  //# sourceMappingURL=multi-select.d.mts.map
@@ -1,2 +1,2 @@
1
- "use client";import"../heading--VmdIi7C.mjs";import"../paragraph-BS88Xdo7.mjs";import"../button.variants-CL2rLGYO.mjs";import{t as e}from"../button-C_yZHudZ.mjs";import"../close-DfuHB7kq.mjs";import"../dialog-DTz8ngeU.mjs";import{c as t,i as n,o as r,s as ee,t as te}from"../command-Uq5FAdtW.mjs";import{cn as i}from"@customafk/react-toolkit/utils";import{forwardRef as a,useCallback as o,useEffect as s,useImperativeHandle as c,useMemo as ne,useRef as l,useState as u}from"react";import{Fragment as d,jsx as f,jsxs as p}from"react/jsx-runtime";import{PlusIcon as re,X as m}from"lucide-react";import{Command as ie,useCommandState as h}from"cmdk";function g(e,t){let[n,r]=u(e);return s(()=>{let n=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(n)}},[e,t]),n}function _(e,t){if(e.length===0)return{};if(!t)return{"":e};let n={};return e.forEach(e=>{let r=e[t]||``;n[r]||(n[r]=[]),n[r].push(e)}),n}function ae(e,t){let n=JSON.parse(JSON.stringify(e));for(let[e,r]of Object.entries(n))n[e]=r.filter(e=>!t.find(t=>t.value===e.value));return n}function oe(e,t){for(let[,n]of Object.entries(e))if(n.some(e=>t.find(t=>t.value===e.value)))return!0;return!1}const v=a(({className:e,...t},n)=>h(e=>e.filtered.count===0)?f(`div`,{ref:n,className:i(`px-2 py-4 text-center text-sm`,e),"cmdk-empty":``,role:`presentation`,...t}):null);v.displayName=`CommandEmpty`;const y=a(({value:a,onChange:h,placeholder:y,defaultOptions:b=[],options:x,delay:se,onSearch:S,onSearchSync:C,loadingIndicator:w,emptyIndicator:T,maxSelected:E=2**53-1,onMaxSelected:D,hidePlaceholderWhenSelected:O,disabled:k,groupBy:A,className:ce,badgeClassName:le,selectFirstItem:ue=!0,creatable:j=!1,triggerSearchOnFocus:M=!1,commandProps:N,inputProps:P,hideClearAllButton:F=!1,onAddNewItem:I},de)=>{let L=l(null),R=l(null),[z,B]=u(!1),[V,H]=u(!1),[U,W]=u(!1),[G,K]=u(a||[]),[q,J]=u(_(b,A)),[Y,X]=u(``),Z=g(Y,se||500);c(de,()=>({selectedValue:[...G],input:L.current,focus:()=>L?.current?.focus(),reset:()=>K([])}),[G]);let Q=o(e=>{R.current&&!R.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&(B(!1),L.current.blur())},[]),$=o(e=>{let t=G.filter(t=>t.value!==e.value);K(t),h?.(t)},[h,G]),fe=o(e=>{let t=L.current;t&&((e.key===`Delete`||e.key===`Backspace`)&&t.value===``&&G.length>0&&(G[G.length-1].fixed||$(G[G.length-1])),e.key===`Escape`&&t.blur())},[$,G]);s(()=>(z?(document.addEventListener(`mousedown`,Q),document.addEventListener(`touchend`,Q)):(document.removeEventListener(`mousedown`,Q),document.removeEventListener(`touchend`,Q)),()=>{document.removeEventListener(`mousedown`,Q),document.removeEventListener(`touchend`,Q)}),[z]),s(()=>{a&&K(a)},[a]),s(()=>{if(!x||S)return;let e=_(x||[],A);JSON.stringify(e)!==JSON.stringify(q)&&J(e)},[b,x,A,S,q]),s(()=>{let e=()=>{let e=C?.(Z);J(_(e||[],A))};(async()=>{!C||!z||(M&&e(),Z&&e())})()},[Z,A,z,M]),s(()=>{let e=async()=>{W(!0),J(_(await S?.(Z)||[],A)),W(!1)};(async()=>{!S||!z||(M&&await e(),Z&&await e())})()},[Z,A,z,M]);let pe=()=>{if(!j||oe(q,[{value:Y,label:Y}])||G.find(e=>e.value===Y))return;let e=f(r,{value:Y,className:`cursor-pointer`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:e=>{if(G.length>=E){D?.(G.length);return}X(``);let t=[...G,{value:e,label:e}];K(t),h?.(t)},children:`Create "${Y}"`});if(!S&&Y.length>0||S&&Z.length>0&&!U)return e},me=o(()=>{if(T)return S&&!j&&Object.keys(q).length===0?f(r,{value:`-`,disabled:!0,children:T}):f(v,{children:T})},[j,T,S,q]),he=ne(()=>ae(q,G),[q,G]),ge=o(()=>{if(N?.filter)return N.filter;if(j)return(e,t)=>e.toLowerCase().includes(t.toLowerCase())?1:-1},[j,N?.filter]);return p(te,{ref:R,...N,onKeyDown:e=>{fe(e),N?.onKeyDown?.(e)},className:i(`h-auto overflow-visible bg-transparent`,N?.className),shouldFilter:N?.shouldFilter===void 0?!S:N.shouldFilter,filter:ge(),children:[f(`div`,{className:i(`border-border-weak relative rounded-md border text-sm transition-shadow`,`focus-within:border-primary`,`focus-within:ring-primary-weak`,`focus-within:ring-4`,`focus-within:outline-hidden`,`has-disabled:bg-muted`,`has-disabled:text-muted-foreground`,G.length!==0&&`p-1`,!k&&G.length!==0&&`cursor-text`,!F&&`pe-9`,ce),onClick:()=>{k||L?.current?.focus()},children:p(`div`,{className:`flex flex-wrap gap-1`,children:[G.map(e=>p(`div`,{className:i(`animate-fadeIn`,`bg-background`,`hover:bg-background`,`border-border-weak border border-solid`,`text-text-positive-weak relative inline-flex h-7 cursor-default items-center rounded-md ps-2 pe-7 pl-2 text-xs font-medium transition-all`,`disabled:cursor-not-allowed`,`disabled:opacity-50`,`data-fixed:pe-2`,le),"data-fixed":e.fixed,"data-disabled":k||void 0,children:[e.label,f(`button`,{type:`button`,disabled:k||e.fixed,className:i(`text-text-positive-muted absolute -inset-y-px -end-px flex size-7 items-center justify-center rounded-e-lg border border-transparent p-0 outline-0 transition-colors`,`hover:text-foreground`,`focus-visible:outline`,`focus-visible:outline-2`,`focus-visible:outline-primary-weak`,`disabled:hover:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`),onKeyDown:t=>{t.key===`Enter`&&$(e)},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:()=>$(e),"aria-label":`Remove`,children:f(m,{size:14,strokeWidth:2,"aria-hidden":`true`})})]},e.value)),f(ie.Input,{...P,ref:L,value:Y,disabled:k,onValueChange:e=>{X(e),P?.onValueChange?.(e)},onBlur:e=>{V||B(!1),P?.onBlur?.(e)},onFocus:e=>{B(!0),M&&S?.(Z),P?.onFocus?.(e)},placeholder:O&&G.length!==0?``:y,className:i(`placeholder:text-text-positive-muted flex-1 bg-transparent outline-hidden`,`disabled:placeholder:text-transparent`,{"w-full":O,"px-3 py-2":G.length===0,"ml-1":G.length!==0},P?.className)}),f(`button`,{type:`button`,onClick:()=>{K(G.filter(e=>e.fixed)),h?.(G.filter(e=>e.fixed))},className:i(`text-muted-foreground/80`,`absolute end-0 top-0 flex size-9 items-center justify-center rounded-lg border border-transparent transition-colors`,`focus-visible:outline-2`,`hover:text-text-positive`,`focus-visible:outline-primary-weak`,(F||k||G.length<1||G.filter(({fixed:e})=>e).length===G.length)&&`hidden`),"aria-label":`Clear all`,children:f(m,{size:16,strokeWidth:2,"aria-hidden":`true`})})]})}),f(`div`,{className:`relative`,children:f(`div`,{className:i(`shadow-dropdown absolute top-2 z-10 w-full overflow-hidden rounded-lg`,`data-[state=open]:animate-in`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,`data-[state=open]:fade-in-0`,`data-[state=closed]:zoom-out-95`,`data-[state=open]:zoom-in-95`,!z&&`hidden`),"data-state":z?`open`:`closed`,children:z&&p(ee,{className:`shadow-lg outline-hidden`,onMouseLeave:()=>{H(!1)},onMouseEnter:()=>{H(!0)},onMouseUp:()=>{L?.current?.focus()},children:[I&&p(d,{children:[f(t,{}),f(n,{children:p(e,{type:`button`,variant:`ghost`,className:`w-full font-normal [&_div]:justify-start`,onClick:I,children:[f(re,{size:14,className:`opacity-60`,"aria-hidden":`true`}),`Thêm mới`]})})]}),U?w:p(d,{children:[me(),pe(),!ue&&f(r,{value:`-`,className:`hidden`}),Object.entries(he).map(([e,t])=>f(n,{heading:e,className:`h-full overflow-auto`,children:t.map(e=>f(r,{value:e.value,disabled:e.disable,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:()=>{if(G.length>=E){D?.(G.length);return}let t=[...G,e];X(``),K(t),h?.(t)},className:i(`cursor-pointer`,e.disable&&`cursor-not-allowed opacity-50`),children:e.label},e.value))},e))]})]})})})]})});y.displayName=`MultipleSelector`;export{y as MultipleSelector,g as useDebounce};
1
+ "use client";import"../heading--VmdIi7C.mjs";import"../paragraph-moBSTPmT.mjs";import"../button.variants-DuuH1O0_.mjs";import{t as e}from"../button-6-3G2PiR.mjs";import"../close-DfuHB7kq.mjs";import"../dialog-CxELDK98.mjs";import{c as t,i as n,o as r,s as ee,t as te}from"../command-DhBTNTqz.mjs";import{cn as i}from"@customafk/react-toolkit/utils";import{forwardRef as a,useCallback as o,useEffect as s,useImperativeHandle as c,useMemo as ne,useRef as l,useState as u}from"react";import{Fragment as d,jsx as f,jsxs as p}from"react/jsx-runtime";import{PlusIcon as re,X as m}from"lucide-react";import{Command as ie,useCommandState as h}from"cmdk";function g(e,t){let[n,r]=u(e);return s(()=>{let n=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(n)}},[e,t]),n}function _(e,t){if(e.length===0)return{};if(!t)return{"":e};let n={};return e.forEach(e=>{let r=e[t]||``;n[r]||(n[r]=[]),n[r].push(e)}),n}function ae(e,t){let n=JSON.parse(JSON.stringify(e));for(let[e,r]of Object.entries(n))n[e]=r.filter(e=>!t.find(t=>t.value===e.value));return n}function oe(e,t){for(let[,n]of Object.entries(e))if(n.some(e=>t.find(t=>t.value===e.value)))return!0;return!1}const v=a(({className:e,...t},n)=>h(e=>e.filtered.count===0)?f(`div`,{ref:n,className:i(`px-2 py-4 text-center text-sm`,e),"cmdk-empty":``,role:`presentation`,...t}):null);v.displayName=`CommandEmpty`;const y=a(({value:a,onChange:h,placeholder:y,defaultOptions:b=[],options:x,delay:se,onSearch:S,onSearchSync:C,loadingIndicator:w,emptyIndicator:T,maxSelected:E=2**53-1,onMaxSelected:D,hidePlaceholderWhenSelected:O,disabled:k,groupBy:A,className:ce,badgeClassName:le,selectFirstItem:ue=!0,creatable:j=!1,triggerSearchOnFocus:M=!1,commandProps:N,inputProps:P,hideClearAllButton:F=!1,onAddNewItem:I},de)=>{let L=l(null),R=l(null),[z,B]=u(!1),[V,H]=u(!1),[U,W]=u(!1),[G,K]=u(a||[]),[q,J]=u(_(b,A)),[Y,X]=u(``),Z=g(Y,se||500);c(de,()=>({selectedValue:[...G],input:L.current,focus:()=>L?.current?.focus(),reset:()=>K([])}),[G]);let Q=o(e=>{R.current&&!R.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&(B(!1),L.current.blur())},[]),$=o(e=>{let t=G.filter(t=>t.value!==e.value);K(t),h?.(t)},[h,G]),fe=o(e=>{let t=L.current;t&&((e.key===`Delete`||e.key===`Backspace`)&&t.value===``&&G.length>0&&(G[G.length-1].fixed||$(G[G.length-1])),e.key===`Escape`&&t.blur())},[$,G]);s(()=>(z?(document.addEventListener(`mousedown`,Q),document.addEventListener(`touchend`,Q)):(document.removeEventListener(`mousedown`,Q),document.removeEventListener(`touchend`,Q)),()=>{document.removeEventListener(`mousedown`,Q),document.removeEventListener(`touchend`,Q)}),[z]),s(()=>{a&&K(a)},[a]),s(()=>{if(!x||S)return;let e=_(x||[],A);JSON.stringify(e)!==JSON.stringify(q)&&J(e)},[b,x,A,S,q]),s(()=>{let e=()=>{let e=C?.(Z);J(_(e||[],A))};(async()=>{!C||!z||(M&&e(),Z&&e())})()},[Z,A,z,M]),s(()=>{let e=async()=>{W(!0),J(_(await S?.(Z)||[],A)),W(!1)};(async()=>{!S||!z||(M&&await e(),Z&&await e())})()},[Z,A,z,M]);let pe=()=>{if(!j||oe(q,[{value:Y,label:Y}])||G.find(e=>e.value===Y))return;let e=f(r,{value:Y,className:`cursor-pointer`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:e=>{if(G.length>=E){D?.(G.length);return}X(``);let t=[...G,{value:e,label:e}];K(t),h?.(t)},children:`Create "${Y}"`});if(!S&&Y.length>0||S&&Z.length>0&&!U)return e},me=o(()=>{if(T)return S&&!j&&Object.keys(q).length===0?f(r,{value:`-`,disabled:!0,children:T}):f(v,{children:T})},[j,T,S,q]),he=ne(()=>ae(q,G),[q,G]),ge=o(()=>{if(N?.filter)return N.filter;if(j)return(e,t)=>e.toLowerCase().includes(t.toLowerCase())?1:-1},[j,N?.filter]);return p(te,{ref:R,...N,onKeyDown:e=>{fe(e),N?.onKeyDown?.(e)},className:i(`h-auto overflow-visible bg-transparent`,N?.className),shouldFilter:N?.shouldFilter===void 0?!S:N.shouldFilter,filter:ge(),children:[f(`div`,{className:i(`border-border-weak relative rounded-md border text-sm transition-shadow`,`focus-within:border-primary`,`focus-within:ring-primary-weak`,`focus-within:ring-4`,`focus-within:outline-hidden`,`has-disabled:bg-muted`,`has-disabled:text-muted-foreground`,G.length!==0&&`p-1`,!k&&G.length!==0&&`cursor-text`,!F&&`pe-9`,ce),onClick:()=>{k||L?.current?.focus()},children:p(`div`,{className:`flex flex-wrap gap-1`,children:[G.map(e=>p(`div`,{className:i(`animate-fadeIn`,`bg-background`,`hover:bg-background`,`border-border-weak border border-solid`,`text-text-positive-weak relative inline-flex h-7 cursor-default items-center rounded-md ps-2 pe-7 pl-2 text-xs font-medium transition-all`,`disabled:cursor-not-allowed`,`disabled:opacity-50`,`data-fixed:pe-2`,le),"data-fixed":e.fixed,"data-disabled":k||void 0,children:[e.label,f(`button`,{type:`button`,disabled:k||e.fixed,className:i(`text-text-positive-muted absolute -inset-y-px -end-px flex size-7 items-center justify-center rounded-e-lg border border-transparent p-0 outline-0 transition-colors`,`hover:text-foreground`,`focus-visible:outline`,`focus-visible:outline-2`,`focus-visible:outline-primary-weak`,`disabled:hover:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`),onKeyDown:t=>{t.key===`Enter`&&$(e)},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:()=>$(e),"aria-label":`Remove`,children:f(m,{size:14,strokeWidth:2,"aria-hidden":`true`})})]},e.value)),f(ie.Input,{...P,ref:L,value:Y,disabled:k,onValueChange:e=>{X(e),P?.onValueChange?.(e)},onBlur:e=>{V||B(!1),P?.onBlur?.(e)},onFocus:e=>{B(!0),M&&S?.(Z),P?.onFocus?.(e)},placeholder:O&&G.length!==0?``:y,className:i(`placeholder:text-text-positive-muted flex-1 bg-transparent outline-hidden`,`disabled:placeholder:text-transparent`,{"w-full":O,"px-3 py-2":G.length===0,"ml-1":G.length!==0},P?.className)}),f(`button`,{type:`button`,onClick:()=>{K(G.filter(e=>e.fixed)),h?.(G.filter(e=>e.fixed))},className:i(`text-muted-foreground/80`,`absolute end-0 top-0 flex size-9 items-center justify-center rounded-lg border border-transparent transition-colors`,`focus-visible:outline-2`,`hover:text-text-positive`,`focus-visible:outline-primary-weak`,(F||k||G.length<1||G.filter(({fixed:e})=>e).length===G.length)&&`hidden`),"aria-label":`Clear all`,children:f(m,{size:16,strokeWidth:2,"aria-hidden":`true`})})]})}),f(`div`,{className:`relative`,children:f(`div`,{className:i(`shadow-dropdown absolute top-2 z-10 w-full overflow-hidden rounded-lg`,`data-[state=open]:animate-in`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,`data-[state=open]:fade-in-0`,`data-[state=closed]:zoom-out-95`,`data-[state=open]:zoom-in-95`,!z&&`hidden`),"data-state":z?`open`:`closed`,children:z&&p(ee,{className:`shadow-lg outline-hidden`,onMouseLeave:()=>{H(!1)},onMouseEnter:()=>{H(!0)},onMouseUp:()=>{L?.current?.focus()},children:[I&&p(d,{children:[f(t,{}),f(n,{children:p(e,{type:`button`,variant:`ghost`,className:`w-full font-normal [&_div]:justify-start`,onClick:I,children:[f(re,{size:14,className:`opacity-60`,"aria-hidden":`true`}),`Thêm mới`]})})]}),U?w:p(d,{children:[me(),pe(),!ue&&f(r,{value:`-`,className:`hidden`}),Object.entries(he).map(([e,t])=>f(n,{heading:e,className:`h-full overflow-auto`,children:t.map(e=>f(r,{value:e.value,disabled:e.disable,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:()=>{if(G.length>=E){D?.(G.length);return}let t=[...G,e];X(``),K(t),h?.(t)},className:i(`cursor-pointer`,e.disable&&`cursor-not-allowed opacity-50`),children:e.label},e.value))},e))]})]})})})]})});y.displayName=`MultipleSelector`;export{y as MultipleSelector,g as useDebounce};
2
2
  //# sourceMappingURL=multi-select.mjs.map
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime230 from "react/jsx-runtime";
2
- import * as class_variance_authority_types7 from "class-variance-authority/types";
1
+ import * as react_jsx_runtime205 from "react/jsx-runtime";
2
+ import * as class_variance_authority_types9 from "class-variance-authority/types";
3
3
  import { NavigationMenu as NavigationMenu$1 } from "radix-ui";
4
4
 
5
5
  //#region packages/components/ui/navigation-menu.d.ts
@@ -10,37 +10,37 @@ declare function NavigationMenu({
10
10
  ...props
11
11
  }: React.ComponentProps<typeof NavigationMenu$1.Root> & {
12
12
  viewport?: boolean;
13
- }): react_jsx_runtime230.JSX.Element;
13
+ }): react_jsx_runtime205.JSX.Element;
14
14
  declare function NavigationMenuList({
15
15
  className,
16
16
  ...props
17
- }: React.ComponentProps<typeof NavigationMenu$1.List>): react_jsx_runtime230.JSX.Element;
17
+ }: React.ComponentProps<typeof NavigationMenu$1.List>): react_jsx_runtime205.JSX.Element;
18
18
  declare function NavigationMenuItem({
19
19
  className,
20
20
  ...props
21
- }: React.ComponentProps<typeof NavigationMenu$1.Item>): react_jsx_runtime230.JSX.Element;
22
- declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types7.ClassProp | undefined) => string;
21
+ }: React.ComponentProps<typeof NavigationMenu$1.Item>): react_jsx_runtime205.JSX.Element;
22
+ declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types9.ClassProp | undefined) => string;
23
23
  declare function NavigationMenuTrigger({
24
24
  className,
25
25
  children,
26
26
  ...props
27
- }: React.ComponentProps<typeof NavigationMenu$1.Trigger>): react_jsx_runtime230.JSX.Element;
27
+ }: React.ComponentProps<typeof NavigationMenu$1.Trigger>): react_jsx_runtime205.JSX.Element;
28
28
  declare function NavigationMenuContent({
29
29
  className,
30
30
  ...props
31
- }: React.ComponentProps<typeof NavigationMenu$1.Content>): react_jsx_runtime230.JSX.Element;
31
+ }: React.ComponentProps<typeof NavigationMenu$1.Content>): react_jsx_runtime205.JSX.Element;
32
32
  declare function NavigationMenuViewport({
33
33
  className,
34
34
  ...props
35
- }: React.ComponentProps<typeof NavigationMenu$1.Viewport>): react_jsx_runtime230.JSX.Element;
35
+ }: React.ComponentProps<typeof NavigationMenu$1.Viewport>): react_jsx_runtime205.JSX.Element;
36
36
  declare function NavigationMenuLink({
37
37
  className,
38
38
  ...props
39
- }: React.ComponentProps<typeof NavigationMenu$1.Link>): react_jsx_runtime230.JSX.Element;
39
+ }: React.ComponentProps<typeof NavigationMenu$1.Link>): react_jsx_runtime205.JSX.Element;
40
40
  declare function NavigationMenuIndicator({
41
41
  className,
42
42
  ...props
43
- }: React.ComponentProps<typeof NavigationMenu$1.Indicator>): react_jsx_runtime230.JSX.Element;
43
+ }: React.ComponentProps<typeof NavigationMenu$1.Indicator>): react_jsx_runtime205.JSX.Element;
44
44
  //#endregion
45
45
  export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
46
46
  //# sourceMappingURL=navigation-menu.d.cts.map
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime219 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime227 from "react/jsx-runtime";
2
2
  import { NavigationMenu as NavigationMenu$1 } from "radix-ui";
3
- import * as class_variance_authority_types9 from "class-variance-authority/types";
3
+ import * as class_variance_authority_types8 from "class-variance-authority/types";
4
4
 
5
5
  //#region packages/components/ui/navigation-menu.d.ts
6
6
  declare function NavigationMenu({
@@ -10,37 +10,37 @@ declare function NavigationMenu({
10
10
  ...props
11
11
  }: React.ComponentProps<typeof NavigationMenu$1.Root> & {
12
12
  viewport?: boolean;
13
- }): react_jsx_runtime219.JSX.Element;
13
+ }): react_jsx_runtime227.JSX.Element;
14
14
  declare function NavigationMenuList({
15
15
  className,
16
16
  ...props
17
- }: React.ComponentProps<typeof NavigationMenu$1.List>): react_jsx_runtime219.JSX.Element;
17
+ }: React.ComponentProps<typeof NavigationMenu$1.List>): react_jsx_runtime227.JSX.Element;
18
18
  declare function NavigationMenuItem({
19
19
  className,
20
20
  ...props
21
- }: React.ComponentProps<typeof NavigationMenu$1.Item>): react_jsx_runtime219.JSX.Element;
22
- declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types9.ClassProp | undefined) => string;
21
+ }: React.ComponentProps<typeof NavigationMenu$1.Item>): react_jsx_runtime227.JSX.Element;
22
+ declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types8.ClassProp | undefined) => string;
23
23
  declare function NavigationMenuTrigger({
24
24
  className,
25
25
  children,
26
26
  ...props
27
- }: React.ComponentProps<typeof NavigationMenu$1.Trigger>): react_jsx_runtime219.JSX.Element;
27
+ }: React.ComponentProps<typeof NavigationMenu$1.Trigger>): react_jsx_runtime227.JSX.Element;
28
28
  declare function NavigationMenuContent({
29
29
  className,
30
30
  ...props
31
- }: React.ComponentProps<typeof NavigationMenu$1.Content>): react_jsx_runtime219.JSX.Element;
31
+ }: React.ComponentProps<typeof NavigationMenu$1.Content>): react_jsx_runtime227.JSX.Element;
32
32
  declare function NavigationMenuViewport({
33
33
  className,
34
34
  ...props
35
- }: React.ComponentProps<typeof NavigationMenu$1.Viewport>): react_jsx_runtime219.JSX.Element;
35
+ }: React.ComponentProps<typeof NavigationMenu$1.Viewport>): react_jsx_runtime227.JSX.Element;
36
36
  declare function NavigationMenuLink({
37
37
  className,
38
38
  ...props
39
- }: React.ComponentProps<typeof NavigationMenu$1.Link>): react_jsx_runtime219.JSX.Element;
39
+ }: React.ComponentProps<typeof NavigationMenu$1.Link>): react_jsx_runtime227.JSX.Element;
40
40
  declare function NavigationMenuIndicator({
41
41
  className,
42
42
  ...props
43
- }: React.ComponentProps<typeof NavigationMenu$1.Indicator>): react_jsx_runtime219.JSX.Element;
43
+ }: React.ComponentProps<typeof NavigationMenu$1.Indicator>): react_jsx_runtime227.JSX.Element;
44
44
  //#endregion
45
45
  export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
46
46
  //# sourceMappingURL=navigation-menu.d.mts.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-Bmb41Sf3.cjs`),t=require(`../button.variants-8QOIR433.cjs`);let n=require(`@customafk/react-toolkit/utils`),r=require(`react/jsx-runtime`),i=require(`lucide-react`);function a({className:e,...t}){return(0,r.jsx)(`nav`,{role:`navigation`,"aria-label":`pagination`,"data-slot":`pagination`,className:(0,n.cn)(`mx-auto flex w-full justify-center`,e),...t})}function o({className:e,...t}){return(0,r.jsx)(`ul`,{"data-slot":`pagination-content`,className:(0,n.cn)(`flex flex-row items-center gap-1`,e),...t})}function s({...e}){return(0,r.jsx)(`li`,{"data-slot":`pagination-item`,...e})}function c({className:e,isActive:i,size:a=`icon`,...o}){return(0,r.jsx)(`a`,{"aria-current":i?`page`:void 0,"data-slot":`pagination-link`,"data-active":i,className:(0,n.cn)(t.n({variant:i?`outline`:`ghost`,size:a}),e),...o})}function l({className:e,...t}){return(0,r.jsxs)(c,{"aria-label":`Go to previous page`,size:`default`,className:(0,n.cn)(`gap-1 px-2.5 sm:pl-2.5`,e),...t,children:[(0,r.jsx)(i.ChevronLeftIcon,{}),(0,r.jsx)(`span`,{className:`hidden sm:block`,children:`Previous`})]})}function u({className:e,...t}){return(0,r.jsxs)(c,{"aria-label":`Go to next page`,size:`default`,className:(0,n.cn)(`gap-1 px-2.5 sm:pr-2.5`,e),...t,children:[(0,r.jsx)(`span`,{className:`hidden sm:block`,children:`Next`}),(0,r.jsx)(i.ChevronRightIcon,{})]})}function d({className:e,...t}){return(0,r.jsxs)(`span`,{"aria-hidden":!0,"data-slot":`pagination-ellipsis`,className:(0,n.cn)(`flex size-9 items-center justify-center`,e),...t,children:[(0,r.jsx)(i.MoreHorizontalIcon,{className:`size-4`}),(0,r.jsx)(`span`,{className:`sr-only`,children:`More pages`})]})}exports.Pagination=a,exports.PaginationContent=o,exports.PaginationEllipsis=d,exports.PaginationItem=s,exports.PaginationLink=c,exports.PaginationNext=u,exports.PaginationPrevious=l;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`),t=require(`../button.variants-rdXrPUao.cjs`);let n=require(`@customafk/react-toolkit/utils`),r=require(`react/jsx-runtime`),i=require(`lucide-react`);function a({className:e,...t}){return(0,r.jsx)(`nav`,{role:`navigation`,"aria-label":`pagination`,"data-slot":`pagination`,className:(0,n.cn)(`mx-auto flex w-full justify-center`,e),...t})}function o({className:e,...t}){return(0,r.jsx)(`ul`,{"data-slot":`pagination-content`,className:(0,n.cn)(`flex flex-row items-center gap-1`,e),...t})}function s({...e}){return(0,r.jsx)(`li`,{"data-slot":`pagination-item`,...e})}function c({className:e,isActive:i,size:a=`icon`,...o}){return(0,r.jsx)(`a`,{"aria-current":i?`page`:void 0,"data-slot":`pagination-link`,"data-active":i,className:(0,n.cn)(t.n({variant:i?`outline`:`ghost`,size:a}),e),...o})}function l({className:e,...t}){return(0,r.jsxs)(c,{"aria-label":`Go to previous page`,size:`default`,className:(0,n.cn)(`gap-1 px-2.5 sm:pl-2.5`,e),...t,children:[(0,r.jsx)(i.ChevronLeftIcon,{}),(0,r.jsx)(`span`,{className:`hidden sm:block`,children:`Previous`})]})}function u({className:e,...t}){return(0,r.jsxs)(c,{"aria-label":`Go to next page`,size:`default`,className:(0,n.cn)(`gap-1 px-2.5 sm:pr-2.5`,e),...t,children:[(0,r.jsx)(`span`,{className:`hidden sm:block`,children:`Next`}),(0,r.jsx)(i.ChevronRightIcon,{})]})}function d({className:e,...t}){return(0,r.jsxs)(`span`,{"aria-hidden":!0,"data-slot":`pagination-ellipsis`,className:(0,n.cn)(`flex size-9 items-center justify-center`,e),...t,children:[(0,r.jsx)(i.MoreHorizontalIcon,{className:`size-4`}),(0,r.jsx)(`span`,{className:`sr-only`,children:`More pages`})]})}exports.Pagination=a,exports.PaginationContent=o,exports.PaginationEllipsis=d,exports.PaginationItem=s,exports.PaginationLink=c,exports.PaginationNext=u,exports.PaginationPrevious=l;
2
2
  //# sourceMappingURL=pagination.cjs.map
@@ -1,18 +1,18 @@
1
- import { t as Button } from "../button-BnpEQNcI.cjs";
2
- import * as react_jsx_runtime109 from "react/jsx-runtime";
1
+ import { t as Button } from "../button-D0YsVKtm.cjs";
2
+ import * as react_jsx_runtime213 from "react/jsx-runtime";
3
3
 
4
4
  //#region packages/components/ui/pagination.d.ts
5
5
  declare function Pagination({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<'nav'>): react_jsx_runtime109.JSX.Element;
8
+ }: React.ComponentProps<'nav'>): react_jsx_runtime213.JSX.Element;
9
9
  declare function PaginationContent({
10
10
  className,
11
11
  ...props
12
- }: React.ComponentProps<'ul'>): react_jsx_runtime109.JSX.Element;
12
+ }: React.ComponentProps<'ul'>): react_jsx_runtime213.JSX.Element;
13
13
  declare function PaginationItem({
14
14
  ...props
15
- }: React.ComponentProps<'li'>): react_jsx_runtime109.JSX.Element;
15
+ }: React.ComponentProps<'li'>): react_jsx_runtime213.JSX.Element;
16
16
  type PaginationLinkProps = {
17
17
  isActive?: boolean;
18
18
  } & Pick<React.ComponentProps<typeof Button>, 'size'> & React.ComponentProps<'a'>;
@@ -21,19 +21,19 @@ declare function PaginationLink({
21
21
  isActive,
22
22
  size,
23
23
  ...props
24
- }: PaginationLinkProps): react_jsx_runtime109.JSX.Element;
24
+ }: PaginationLinkProps): react_jsx_runtime213.JSX.Element;
25
25
  declare function PaginationPrevious({
26
26
  className,
27
27
  ...props
28
- }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime109.JSX.Element;
28
+ }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime213.JSX.Element;
29
29
  declare function PaginationNext({
30
30
  className,
31
31
  ...props
32
- }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime109.JSX.Element;
32
+ }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime213.JSX.Element;
33
33
  declare function PaginationEllipsis({
34
34
  className,
35
35
  ...props
36
- }: React.ComponentProps<'span'>): react_jsx_runtime109.JSX.Element;
36
+ }: React.ComponentProps<'span'>): react_jsx_runtime213.JSX.Element;
37
37
  //#endregion
38
38
  export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
39
39
  //# sourceMappingURL=pagination.d.cts.map
@@ -1,18 +1,18 @@
1
- import { t as Button } from "../button-DmtBrsu5.mjs";
2
- import * as react_jsx_runtime172 from "react/jsx-runtime";
1
+ import { t as Button } from "../button-L3Ts3X9d.mjs";
2
+ import * as react_jsx_runtime105 from "react/jsx-runtime";
3
3
 
4
4
  //#region packages/components/ui/pagination.d.ts
5
5
  declare function Pagination({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<'nav'>): react_jsx_runtime172.JSX.Element;
8
+ }: React.ComponentProps<'nav'>): react_jsx_runtime105.JSX.Element;
9
9
  declare function PaginationContent({
10
10
  className,
11
11
  ...props
12
- }: React.ComponentProps<'ul'>): react_jsx_runtime172.JSX.Element;
12
+ }: React.ComponentProps<'ul'>): react_jsx_runtime105.JSX.Element;
13
13
  declare function PaginationItem({
14
14
  ...props
15
- }: React.ComponentProps<'li'>): react_jsx_runtime172.JSX.Element;
15
+ }: React.ComponentProps<'li'>): react_jsx_runtime105.JSX.Element;
16
16
  type PaginationLinkProps = {
17
17
  isActive?: boolean;
18
18
  } & Pick<React.ComponentProps<typeof Button>, 'size'> & React.ComponentProps<'a'>;
@@ -21,19 +21,19 @@ declare function PaginationLink({
21
21
  isActive,
22
22
  size,
23
23
  ...props
24
- }: PaginationLinkProps): react_jsx_runtime172.JSX.Element;
24
+ }: PaginationLinkProps): react_jsx_runtime105.JSX.Element;
25
25
  declare function PaginationPrevious({
26
26
  className,
27
27
  ...props
28
- }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime172.JSX.Element;
28
+ }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime105.JSX.Element;
29
29
  declare function PaginationNext({
30
30
  className,
31
31
  ...props
32
- }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime172.JSX.Element;
32
+ }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime105.JSX.Element;
33
33
  declare function PaginationEllipsis({
34
34
  className,
35
35
  ...props
36
- }: React.ComponentProps<'span'>): react_jsx_runtime172.JSX.Element;
36
+ }: React.ComponentProps<'span'>): react_jsx_runtime105.JSX.Element;
37
37
  //#endregion
38
38
  export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
39
39
  //# sourceMappingURL=pagination.d.mts.map
@@ -1,2 +1,2 @@
1
- "use client";import{n as e}from"../button.variants-CL2rLGYO.mjs";import{cn as t}from"@customafk/react-toolkit/utils";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{ChevronLeftIcon as i,ChevronRightIcon as a,MoreHorizontalIcon as o}from"lucide-react";function s({className:e,...r}){return n(`nav`,{role:`navigation`,"aria-label":`pagination`,"data-slot":`pagination`,className:t(`mx-auto flex w-full justify-center`,e),...r})}function c({className:e,...r}){return n(`ul`,{"data-slot":`pagination-content`,className:t(`flex flex-row items-center gap-1`,e),...r})}function l({...e}){return n(`li`,{"data-slot":`pagination-item`,...e})}function u({className:r,isActive:i,size:a=`icon`,...o}){return n(`a`,{"aria-current":i?`page`:void 0,"data-slot":`pagination-link`,"data-active":i,className:t(e({variant:i?`outline`:`ghost`,size:a}),r),...o})}function d({className:e,...a}){return r(u,{"aria-label":`Go to previous page`,size:`default`,className:t(`gap-1 px-2.5 sm:pl-2.5`,e),...a,children:[n(i,{}),n(`span`,{className:`hidden sm:block`,children:`Previous`})]})}function f({className:e,...i}){return r(u,{"aria-label":`Go to next page`,size:`default`,className:t(`gap-1 px-2.5 sm:pr-2.5`,e),...i,children:[n(`span`,{className:`hidden sm:block`,children:`Next`}),n(a,{})]})}function p({className:e,...i}){return r(`span`,{"aria-hidden":!0,"data-slot":`pagination-ellipsis`,className:t(`flex size-9 items-center justify-center`,e),...i,children:[n(o,{className:`size-4`}),n(`span`,{className:`sr-only`,children:`More pages`})]})}export{s as Pagination,c as PaginationContent,p as PaginationEllipsis,l as PaginationItem,u as PaginationLink,f as PaginationNext,d as PaginationPrevious};
1
+ "use client";import{n as e}from"../button.variants-DuuH1O0_.mjs";import{cn as t}from"@customafk/react-toolkit/utils";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{ChevronLeftIcon as i,ChevronRightIcon as a,MoreHorizontalIcon as o}from"lucide-react";function s({className:e,...r}){return n(`nav`,{role:`navigation`,"aria-label":`pagination`,"data-slot":`pagination`,className:t(`mx-auto flex w-full justify-center`,e),...r})}function c({className:e,...r}){return n(`ul`,{"data-slot":`pagination-content`,className:t(`flex flex-row items-center gap-1`,e),...r})}function l({...e}){return n(`li`,{"data-slot":`pagination-item`,...e})}function u({className:r,isActive:i,size:a=`icon`,...o}){return n(`a`,{"aria-current":i?`page`:void 0,"data-slot":`pagination-link`,"data-active":i,className:t(e({variant:i?`outline`:`ghost`,size:a}),r),...o})}function d({className:e,...a}){return r(u,{"aria-label":`Go to previous page`,size:`default`,className:t(`gap-1 px-2.5 sm:pl-2.5`,e),...a,children:[n(i,{}),n(`span`,{className:`hidden sm:block`,children:`Previous`})]})}function f({className:e,...i}){return r(u,{"aria-label":`Go to next page`,size:`default`,className:t(`gap-1 px-2.5 sm:pr-2.5`,e),...i,children:[n(`span`,{className:`hidden sm:block`,children:`Next`}),n(a,{})]})}function p({className:e,...i}){return r(`span`,{"aria-hidden":!0,"data-slot":`pagination-ellipsis`,className:t(`flex size-9 items-center justify-center`,e),...i,children:[n(o,{className:`size-4`}),n(`span`,{className:`sr-only`,children:`More pages`})]})}export{s as Pagination,c as PaginationContent,p as PaginationEllipsis,l as PaginationItem,u as PaginationLink,f as PaginationNext,d as PaginationPrevious};
2
2
  //# sourceMappingURL=pagination.mjs.map
@@ -1,26 +1,26 @@
1
- import * as react_jsx_runtime172 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime163 from "react/jsx-runtime";
2
2
  import { Popover as Popover$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/popover.d.ts
5
5
  declare function Popover({
6
6
  ...props
7
- }: React.ComponentProps<typeof Popover$1.Root>): react_jsx_runtime172.JSX.Element;
7
+ }: React.ComponentProps<typeof Popover$1.Root>): react_jsx_runtime163.JSX.Element;
8
8
  declare function PopoverTrigger({
9
9
  ...props
10
- }: React.ComponentProps<typeof Popover$1.Trigger>): react_jsx_runtime172.JSX.Element;
10
+ }: React.ComponentProps<typeof Popover$1.Trigger>): react_jsx_runtime163.JSX.Element;
11
11
  declare function PopoverContent({
12
12
  className,
13
13
  align,
14
14
  sideOffset,
15
15
  ...props
16
- }: React.ComponentProps<typeof Popover$1.Content>): react_jsx_runtime172.JSX.Element;
16
+ }: React.ComponentProps<typeof Popover$1.Content>): react_jsx_runtime163.JSX.Element;
17
17
  declare function PopoverAnchor({
18
18
  ...props
19
- }: React.ComponentProps<typeof Popover$1.Anchor>): react_jsx_runtime172.JSX.Element;
19
+ }: React.ComponentProps<typeof Popover$1.Anchor>): react_jsx_runtime163.JSX.Element;
20
20
  declare function PopoverClose({
21
21
  className,
22
22
  ...props
23
- }: React.ComponentProps<typeof Popover$1.Close>): react_jsx_runtime172.JSX.Element;
23
+ }: React.ComponentProps<typeof Popover$1.Close>): react_jsx_runtime163.JSX.Element;
24
24
  //#endregion
25
25
  export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger };
26
26
  //# sourceMappingURL=popover.d.cts.map
@@ -1,26 +1,26 @@
1
- import * as react_jsx_runtime167 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime53 from "react/jsx-runtime";
2
2
  import { Popover as Popover$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/popover.d.ts
5
5
  declare function Popover({
6
6
  ...props
7
- }: React.ComponentProps<typeof Popover$1.Root>): react_jsx_runtime167.JSX.Element;
7
+ }: React.ComponentProps<typeof Popover$1.Root>): react_jsx_runtime53.JSX.Element;
8
8
  declare function PopoverTrigger({
9
9
  ...props
10
- }: React.ComponentProps<typeof Popover$1.Trigger>): react_jsx_runtime167.JSX.Element;
10
+ }: React.ComponentProps<typeof Popover$1.Trigger>): react_jsx_runtime53.JSX.Element;
11
11
  declare function PopoverContent({
12
12
  className,
13
13
  align,
14
14
  sideOffset,
15
15
  ...props
16
- }: React.ComponentProps<typeof Popover$1.Content>): react_jsx_runtime167.JSX.Element;
16
+ }: React.ComponentProps<typeof Popover$1.Content>): react_jsx_runtime53.JSX.Element;
17
17
  declare function PopoverAnchor({
18
18
  ...props
19
- }: React.ComponentProps<typeof Popover$1.Anchor>): react_jsx_runtime167.JSX.Element;
19
+ }: React.ComponentProps<typeof Popover$1.Anchor>): react_jsx_runtime53.JSX.Element;
20
20
  declare function PopoverClose({
21
21
  className,
22
22
  ...props
23
- }: React.ComponentProps<typeof Popover$1.Close>): react_jsx_runtime167.JSX.Element;
23
+ }: React.ComponentProps<typeof Popover$1.Close>): react_jsx_runtime53.JSX.Element;
24
24
  //#endregion
25
25
  export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger };
26
26
  //# sourceMappingURL=popover.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime161 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime222 from "react/jsx-runtime";
2
2
  import { Progress as Progress$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/progress.d.ts
@@ -6,7 +6,7 @@ declare function Progress({
6
6
  className,
7
7
  value,
8
8
  ...props
9
- }: React.ComponentProps<typeof Progress$1.Root>): react_jsx_runtime161.JSX.Element;
9
+ }: React.ComponentProps<typeof Progress$1.Root>): react_jsx_runtime222.JSX.Element;
10
10
  //#endregion
11
11
  export { Progress };
12
12
  //# sourceMappingURL=progress.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime283 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime71 from "react/jsx-runtime";
2
2
  import { Progress as Progress$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/progress.d.ts
@@ -6,7 +6,7 @@ declare function Progress({
6
6
  className,
7
7
  value,
8
8
  ...props
9
- }: React.ComponentProps<typeof Progress$1.Root>): react_jsx_runtime283.JSX.Element;
9
+ }: React.ComponentProps<typeof Progress$1.Root>): react_jsx_runtime71.JSX.Element;
10
10
  //#endregion
11
11
  export { Progress };
12
12
  //# sourceMappingURL=progress.d.mts.map
@@ -1,15 +1,15 @@
1
- import * as react_jsx_runtime187 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime220 from "react/jsx-runtime";
2
2
  import { RadioGroup as RadioGroup$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/radio-group.d.ts
5
5
  declare function RadioGroup({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime187.JSX.Element;
8
+ }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime220.JSX.Element;
9
9
  declare function RadioGroupItem({
10
10
  className,
11
11
  ...props
12
- }: React.ComponentProps<typeof RadioGroup$1.Item>): react_jsx_runtime187.JSX.Element;
12
+ }: React.ComponentProps<typeof RadioGroup$1.Item>): react_jsx_runtime220.JSX.Element;
13
13
  //#endregion
14
14
  export { RadioGroup, RadioGroupItem };
15
15
  //# sourceMappingURL=radio-group.d.cts.map
@@ -1,15 +1,15 @@
1
- import * as react_jsx_runtime285 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime58 from "react/jsx-runtime";
2
2
  import { RadioGroup as RadioGroup$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/radio-group.d.ts
5
5
  declare function RadioGroup({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime285.JSX.Element;
8
+ }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime58.JSX.Element;
9
9
  declare function RadioGroupItem({
10
10
  className,
11
11
  ...props
12
- }: React.ComponentProps<typeof RadioGroup$1.Item>): react_jsx_runtime285.JSX.Element;
12
+ }: React.ComponentProps<typeof RadioGroup$1.Item>): react_jsx_runtime58.JSX.Element;
13
13
  //#endregion
14
14
  export { RadioGroup, RadioGroupItem };
15
15
  //# sourceMappingURL=radio-group.d.mts.map