@customafk/lunas-ui 0.1.17 → 0.1.18

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 (250) hide show
  1. package/dist/{avatar-Cp9PebV0.mjs → avatar-BNU7KL48.mjs} +1 -1
  2. package/dist/{avatar-Cp9PebV0.mjs.map → avatar-BNU7KL48.mjs.map} +1 -1
  3. package/dist/{button-BLm2W-rK.d.cts → button-C8HSrN_3.d.cts} +6 -6
  4. package/dist/{button-CqxqZbcQ.mjs → button-JJaTl28Z.mjs} +2 -2
  5. package/dist/{button-CqxqZbcQ.mjs.map → button-JJaTl28Z.mjs.map} +1 -1
  6. package/dist/{button-Q8sFW-l8.d.mts → button-vNDXA78a.d.mts} +4 -4
  7. package/dist/{button.variants-CXNnQvXs.mjs → button.variants-CgCCe7qb.mjs} +1 -1
  8. package/dist/{button.variants-CXNnQvXs.mjs.map → button.variants-CgCCe7qb.mjs.map} +1 -1
  9. package/dist/{card-BTswGEgi.mjs → card-C8fcblBB.mjs} +1 -1
  10. package/dist/{card-BTswGEgi.mjs.map → card-C8fcblBB.mjs.map} +1 -1
  11. package/dist/cards/grid-product-card.mjs +1 -1
  12. package/dist/cards/product-card.mjs +1 -1
  13. package/dist/cards/simple-card.mjs +1 -1
  14. package/dist/{close-Bb5Pi28f.mjs → close-B_PnUzNN.mjs} +1 -1
  15. package/dist/{close-Bb5Pi28f.mjs.map → close-B_PnUzNN.mjs.map} +1 -1
  16. package/dist/{command-D_f6JoHE.mjs → command-CtWxCsMm.mjs} +2 -2
  17. package/dist/{command-D_f6JoHE.mjs.map → command-CtWxCsMm.mjs.map} +1 -1
  18. package/dist/data-display/country.d.cts +1 -1
  19. package/dist/data-display/country.d.mts +1 -1
  20. package/dist/data-display/country.mjs +1 -1
  21. package/dist/data-display/date-tooltip.mjs +1 -1
  22. package/dist/data-display/date.mjs +1 -1
  23. package/dist/data-display/name.mjs +1 -1
  24. package/dist/data-display/phone-number.mjs +1 -1
  25. package/dist/data-display/role-badge.d.cts +1 -1
  26. package/dist/data-display/role-badge.d.mts +1 -1
  27. package/dist/data-display/role-badge.mjs +1 -1
  28. package/dist/data-display/statistic.d.cts +2 -2
  29. package/dist/data-display/statistic.d.mts +2 -2
  30. package/dist/data-display/user.mjs +1 -1
  31. package/dist/{date-DtgYKyyk.mjs → date-SmlhDFZs.mjs} +1 -1
  32. package/dist/{date-DtgYKyyk.mjs.map → date-SmlhDFZs.mjs.map} +1 -1
  33. package/dist/{dialog-D5bBgIs8.mjs → dialog-4ZJcWPar.mjs} +2 -2
  34. package/dist/{dialog-D5bBgIs8.mjs.map → dialog-4ZJcWPar.mjs.map} +1 -1
  35. package/dist/{dialog-D5WkhH7J.d.mts → dialog-CoSwDi4O.d.cts} +12 -12
  36. package/dist/{dialog-D4LocfVZ.d.cts → dialog-DU7tobKF.d.mts} +12 -12
  37. package/dist/dialogs/confirm-dialog.mjs +1 -1
  38. package/dist/dialogs/detail-dialog/component/sidebar.d.cts +30 -30
  39. package/dist/dialogs/detail-dialog/component/sidebar.d.mts +28 -28
  40. package/dist/dialogs/detail-dialog/component/sidebar.mjs +1 -1
  41. package/dist/dialogs/detail-dialog/index.mjs +1 -1
  42. package/dist/dialogs/error-dialog.mjs +1 -1
  43. package/dist/dialogs/loading-dialog.mjs +1 -1
  44. package/dist/{dist-1xnmIjvR.mjs → dist-D2ydYRc4.mjs} +1 -1
  45. package/dist/{dist-1xnmIjvR.mjs.map → dist-D2ydYRc4.mjs.map} +1 -1
  46. package/dist/{drawer-D8hxCiVo.mjs → drawer-B2QxYWMi.mjs} +1 -1
  47. package/dist/{drawer-D8hxCiVo.mjs.map → drawer-B2QxYWMi.mjs.map} +1 -1
  48. package/dist/{dropdown-menu-Bt3WFMXE.mjs → dropdown-menu-BwcDzb4B.mjs} +1 -1
  49. package/dist/{dropdown-menu-Bt3WFMXE.mjs.map → dropdown-menu-BwcDzb4B.mjs.map} +1 -1
  50. package/dist/features/search-modal/index.d.cts +2 -2
  51. package/dist/features/search-modal/index.d.mts +2 -2
  52. package/dist/features/search-modal/index.mjs +1 -1
  53. package/dist/features/tanstack-form/index.mjs +1 -1
  54. package/dist/{image-iVki2lFP.mjs → image-xsA4ZQ-u.mjs} +2 -2
  55. package/dist/{image-iVki2lFP.mjs.map → image-xsA4ZQ-u.mjs.map} +1 -1
  56. package/dist/{input-DiGjXQJb.d.cts → input-CEwMjaj3.d.cts} +5 -5
  57. package/dist/{input-D-Wrz2-9.mjs → input-CYFvmWQU.mjs} +1 -1
  58. package/dist/{input-D-Wrz2-9.mjs.map → input-CYFvmWQU.mjs.map} +1 -1
  59. package/dist/{input-CUGmNdG9.d.mts → input-ttkmXaOF.d.mts} +5 -5
  60. package/dist/{label-D7-mzz0l.mjs → label-11tIftbr.mjs} +1 -1
  61. package/dist/{label-D7-mzz0l.mjs.map → label-11tIftbr.mjs.map} +1 -1
  62. package/dist/layouts/app-layout/index.d.cts +5 -5
  63. package/dist/layouts/app-layout/index.d.mts +28 -28
  64. package/dist/layouts/app-layout/index.mjs +1 -1
  65. package/dist/layouts/cms-layout/index.cjs +2 -0
  66. package/dist/layouts/cms-layout/index.cjs.map +1 -0
  67. package/dist/layouts/cms-layout/index.d.cts +20 -0
  68. package/dist/layouts/cms-layout/index.d.mts +20 -0
  69. package/dist/layouts/cms-layout/index.mjs +2 -0
  70. package/dist/layouts/cms-layout/index.mjs.map +1 -0
  71. package/dist/layouts/flex.d.cts +4 -4
  72. package/dist/layouts/flex.d.mts +2 -2
  73. package/dist/layouts/service-layout/index.d.cts +3 -3
  74. package/dist/layouts/service-layout/index.d.mts +15 -15
  75. package/dist/layouts/service-layout/index.mjs +1 -1
  76. package/dist/pages/FeatureDeveloping.d.cts +2 -2
  77. package/dist/pages/FeatureDeveloping.d.mts +2 -2
  78. package/dist/pages/FeatureDeveloping.mjs +1 -1
  79. package/dist/pages/FeatureFixing.d.cts +2 -2
  80. package/dist/pages/FeatureFixing.d.mts +2 -2
  81. package/dist/pages/FeatureFixing.mjs +1 -1
  82. package/dist/pages/NotAuthorized.d.cts +2 -2
  83. package/dist/pages/NotAuthorized.d.mts +2 -2
  84. package/dist/pages/NotAuthorized.mjs +1 -1
  85. package/dist/pages/NotFound.d.cts +2 -2
  86. package/dist/pages/NotFound.d.mts +2 -2
  87. package/dist/pages/NotFound.mjs +1 -1
  88. package/dist/{scroll-area-CROqtJiH.mjs → scroll-area-4UBa5t9-.mjs} +1 -1
  89. package/dist/{scroll-area-CROqtJiH.mjs.map → scroll-area-4UBa5t9-.mjs.map} +1 -1
  90. package/dist/{separator-D1uPzKkT.d.mts → separator-Be9cbVN8.d.mts} +3 -3
  91. package/dist/{separator-CZM2q-Ac.mjs → separator-Bf0gymN4.mjs} +1 -1
  92. package/dist/{separator-CZM2q-Ac.mjs.map → separator-Bf0gymN4.mjs.map} +1 -1
  93. package/dist/{separator-WeqUQUgF.d.cts → separator-DiP2uw3M.d.cts} +3 -3
  94. package/dist/{sheet-CUMpo5F_.mjs → sheet-oadGRiie.mjs} +1 -1
  95. package/dist/{sheet-CUMpo5F_.mjs.map → sheet-oadGRiie.mjs.map} +1 -1
  96. package/dist/{skeleton-C02GuVQz.mjs → skeleton-6MpPv0K3.mjs} +1 -1
  97. package/dist/{skeleton-C02GuVQz.mjs.map → skeleton-6MpPv0K3.mjs.map} +1 -1
  98. package/dist/{tabs-BFHJXVlX.mjs → tabs-BIo6ZB9g.mjs} +1 -1
  99. package/dist/{tabs-BFHJXVlX.mjs.map → tabs-BIo6ZB9g.mjs.map} +1 -1
  100. package/dist/{title-B6SztKEv.mjs → title-DcNd812E.mjs} +1 -1
  101. package/dist/{title-B6SztKEv.mjs.map → title-DcNd812E.mjs.map} +1 -1
  102. package/dist/{tooltip-BCmg3WjF.d.mts → tooltip-CwJnif3V.d.mts} +6 -6
  103. package/dist/{tooltip-B7cSlbI6.mjs → tooltip-DGiat0Dt.mjs} +1 -1
  104. package/dist/{tooltip-B7cSlbI6.mjs.map → tooltip-DGiat0Dt.mjs.map} +1 -1
  105. package/dist/{tooltip-CT8tMc9R.d.cts → tooltip-xl-O4did.d.cts} +6 -6
  106. package/dist/{types-CIlhkWg6.d.mts → types-BB_E2uE0.d.mts} +1 -1
  107. package/dist/{types-BpxD38pa.mjs → types-BQMTFD_z.mjs} +1 -1
  108. package/dist/{types-BpxD38pa.mjs.map → types-BQMTFD_z.mjs.map} +1 -1
  109. package/dist/{types-DfDk2h0N.d.cts → types-CwAGHByL.d.cts} +1 -1
  110. package/dist/typography/paragraph.d.cts +2 -2
  111. package/dist/typography/paragraph.d.mts +2 -2
  112. package/dist/typography/title.d.cts +2 -2
  113. package/dist/typography/title.d.mts +2 -2
  114. package/dist/typography/title.mjs +1 -1
  115. package/dist/ui/alert-dialog.d.cts +12 -12
  116. package/dist/ui/alert-dialog.d.mts +12 -12
  117. package/dist/ui/alert-dialog.mjs +1 -1
  118. package/dist/ui/alert.d.cts +6 -6
  119. package/dist/ui/alert.d.mts +6 -6
  120. package/dist/ui/aspect-ratio.d.cts +2 -2
  121. package/dist/ui/aspect-ratio.d.mts +2 -2
  122. package/dist/ui/avatar.d.cts +4 -4
  123. package/dist/ui/avatar.d.mts +4 -4
  124. package/dist/ui/avatar.mjs +1 -1
  125. package/dist/ui/badge.d.cts +4 -4
  126. package/dist/ui/badge.d.mts +2 -2
  127. package/dist/ui/breadcrumb.d.cts +8 -8
  128. package/dist/ui/breadcrumb.d.mts +8 -8
  129. package/dist/ui/breadcrumb.mjs +1 -1
  130. package/dist/ui/button-group.d.cts +7 -7
  131. package/dist/ui/button-group.d.mts +7 -7
  132. package/dist/ui/button-group.mjs +1 -1
  133. package/dist/ui/button.d.cts +1 -1
  134. package/dist/ui/button.d.mts +1 -1
  135. package/dist/ui/button.mjs +1 -1
  136. package/dist/ui/buttons/add-new.mjs +1 -1
  137. package/dist/ui/buttons/edit.mjs +1 -1
  138. package/dist/ui/buttons/refresh.mjs +1 -1
  139. package/dist/ui/buttons/trash.mjs +1 -1
  140. package/dist/ui/buttons/upload-image.mjs +1 -1
  141. package/dist/ui/calendar.d.cts +4 -4
  142. package/dist/ui/calendar.d.mts +4 -4
  143. package/dist/ui/calendar.mjs +1 -1
  144. package/dist/ui/card.d.cts +8 -8
  145. package/dist/ui/card.d.mts +8 -8
  146. package/dist/ui/card.mjs +1 -1
  147. package/dist/ui/carousel.d.cts +7 -7
  148. package/dist/ui/carousel.d.mts +7 -7
  149. package/dist/ui/carousel.mjs +1 -1
  150. package/dist/ui/collapsible.d.cts +4 -4
  151. package/dist/ui/collapsible.d.mts +4 -4
  152. package/dist/ui/command.d.cts +11 -11
  153. package/dist/ui/command.d.mts +11 -11
  154. package/dist/ui/command.mjs +1 -1
  155. package/dist/ui/context-menu.d.cts +16 -16
  156. package/dist/ui/context-menu.d.mts +16 -16
  157. package/dist/ui/dialog.d.cts +1 -1
  158. package/dist/ui/dialog.d.mts +1 -1
  159. package/dist/ui/dialog.mjs +1 -1
  160. package/dist/ui/drawer.d.cts +11 -11
  161. package/dist/ui/drawer.d.mts +11 -11
  162. package/dist/ui/drawer.mjs +1 -1
  163. package/dist/ui/dropdown-menu.d.cts +16 -16
  164. package/dist/ui/dropdown-menu.d.mts +16 -16
  165. package/dist/ui/dropdown-menu.mjs +1 -1
  166. package/dist/ui/empty.d.cts +7 -7
  167. package/dist/ui/empty.d.mts +9 -9
  168. package/dist/ui/field.d.cts +22 -22
  169. package/dist/ui/field.d.mts +13 -13
  170. package/dist/ui/field.mjs +1 -1
  171. package/dist/ui/file-uploader.d.cts +2 -2
  172. package/dist/ui/file-uploader.d.mts +2 -2
  173. package/dist/ui/file-uploader.mjs +1 -1
  174. package/dist/ui/form.d.cts +11 -11
  175. package/dist/ui/form.d.mts +7 -7
  176. package/dist/ui/form.mjs +1 -1
  177. package/dist/ui/hover-card.d.cts +4 -4
  178. package/dist/ui/hover-card.d.mts +4 -4
  179. package/dist/ui/image.mjs +1 -1
  180. package/dist/ui/input-otp.d.cts +5 -5
  181. package/dist/ui/input-otp.d.mts +5 -5
  182. package/dist/ui/input.d.cts +1 -1
  183. package/dist/ui/input.d.mts +1 -1
  184. package/dist/ui/input.mjs +1 -1
  185. package/dist/ui/inputs/search-input.d.cts +3 -3
  186. package/dist/ui/inputs/search-input.d.mts +3 -3
  187. package/dist/ui/inputs/search-input.mjs +1 -1
  188. package/dist/ui/item.d.cts +12 -12
  189. package/dist/ui/item.d.mts +12 -12
  190. package/dist/ui/item.mjs +1 -1
  191. package/dist/ui/label.d.cts +2 -2
  192. package/dist/ui/label.d.mts +2 -2
  193. package/dist/ui/label.mjs +1 -1
  194. package/dist/ui/menubar.d.cts +17 -17
  195. package/dist/ui/menubar.d.mts +17 -17
  196. package/dist/ui/multi-select.d.cts +2 -2
  197. package/dist/ui/multi-select.d.mts +3 -3
  198. package/dist/ui/multi-select.mjs +1 -1
  199. package/dist/ui/navigation-menu.d.cts +9 -9
  200. package/dist/ui/navigation-menu.d.mts +11 -11
  201. package/dist/ui/pagination.d.cts +9 -9
  202. package/dist/ui/pagination.d.mts +9 -9
  203. package/dist/ui/pagination.mjs +1 -1
  204. package/dist/ui/popover.d.cts +5 -5
  205. package/dist/ui/popover.d.mts +5 -5
  206. package/dist/ui/progress.d.cts +2 -2
  207. package/dist/ui/progress.d.mts +2 -2
  208. package/dist/ui/radio-group.d.cts +3 -3
  209. package/dist/ui/radio-group.d.mts +3 -3
  210. package/dist/ui/resizable.d.cts +4 -4
  211. package/dist/ui/resizable.d.mts +4 -4
  212. package/dist/ui/scroll-area.d.cts +6 -6
  213. package/dist/ui/scroll-area.d.mts +6 -6
  214. package/dist/ui/scroll-area.mjs +1 -1
  215. package/dist/ui/select.d.cts +11 -11
  216. package/dist/ui/select.d.mts +11 -11
  217. package/dist/ui/separator.d.cts +1 -1
  218. package/dist/ui/separator.d.mts +1 -1
  219. package/dist/ui/separator.mjs +1 -1
  220. package/dist/ui/sheet.d.cts +9 -9
  221. package/dist/ui/sheet.d.mts +9 -9
  222. package/dist/ui/sheet.mjs +1 -1
  223. package/dist/ui/sidebar.d.cts +28 -28
  224. package/dist/ui/sidebar.d.mts +30 -30
  225. package/dist/ui/sidebar.mjs +1 -1
  226. package/dist/ui/skeleton.d.cts +2 -2
  227. package/dist/ui/skeleton.d.mts +2 -2
  228. package/dist/ui/skeleton.mjs +1 -1
  229. package/dist/ui/slider.d.cts +2 -2
  230. package/dist/ui/slider.d.mts +2 -2
  231. package/dist/ui/sonner.d.cts +2 -2
  232. package/dist/ui/sonner.d.mts +2 -2
  233. package/dist/ui/spinner.d.cts +2 -2
  234. package/dist/ui/spinner.d.mts +2 -2
  235. package/dist/ui/switch.d.cts +2 -2
  236. package/dist/ui/table.d.cts +9 -9
  237. package/dist/ui/table.d.mts +18 -18
  238. package/dist/ui/tabs.d.cts +5 -5
  239. package/dist/ui/tabs.d.mts +5 -5
  240. package/dist/ui/tabs.mjs +1 -1
  241. package/dist/ui/textarea.d.cts +2 -2
  242. package/dist/ui/textarea.d.mts +2 -2
  243. package/dist/ui/toggle-group.d.cts +3 -3
  244. package/dist/ui/toggle-group.d.mts +3 -3
  245. package/dist/ui/toggle.d.cts +2 -2
  246. package/dist/ui/toggle.d.mts +4 -4
  247. package/dist/ui/tooltip.d.cts +1 -1
  248. package/dist/ui/tooltip.d.mts +1 -1
  249. package/dist/ui/tooltip.mjs +1 -1
  250. package/package.json +5 -1
@@ -1,5 +1,5 @@
1
- import { t as Separator } from "../separator-D1uPzKkT.mjs";
2
- import * as react_jsx_runtime172 from "react/jsx-runtime";
1
+ import { t as Separator } from "../separator-Be9cbVN8.mjs";
2
+ import * as react_jsx_runtime123 from "react/jsx-runtime";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
  import * as class_variance_authority_types5 from "class-variance-authority/types";
5
5
 
@@ -7,11 +7,11 @@ import * as class_variance_authority_types5 from "class-variance-authority/types
7
7
  declare function ItemGroup({
8
8
  className,
9
9
  ...props
10
- }: React.ComponentProps<'div'>): react_jsx_runtime172.JSX.Element;
10
+ }: React.ComponentProps<'div'>): react_jsx_runtime123.JSX.Element;
11
11
  declare function ItemSeparator({
12
12
  className,
13
13
  ...props
14
- }: React.ComponentProps<typeof Separator>): react_jsx_runtime172.JSX.Element;
14
+ }: React.ComponentProps<typeof Separator>): react_jsx_runtime123.JSX.Element;
15
15
  declare const itemVariants: (props?: ({
16
16
  variant?: "muted" | "default" | "outline" | null | undefined;
17
17
  size?: "sm" | "default" | null | undefined;
@@ -24,7 +24,7 @@ declare function Item({
24
24
  ...props
25
25
  }: React.ComponentProps<'div'> & VariantProps<typeof itemVariants> & {
26
26
  asChild?: boolean;
27
- }): react_jsx_runtime172.JSX.Element;
27
+ }): react_jsx_runtime123.JSX.Element;
28
28
  declare const itemMediaVariants: (props?: ({
29
29
  variant?: "image" | "default" | "icon" | null | undefined;
30
30
  } & class_variance_authority_types5.ClassProp) | undefined) => string;
@@ -32,31 +32,31 @@ declare function ItemMedia({
32
32
  className,
33
33
  variant,
34
34
  ...props
35
- }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>): react_jsx_runtime172.JSX.Element;
35
+ }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>): react_jsx_runtime123.JSX.Element;
36
36
  declare function ItemContent({
37
37
  className,
38
38
  ...props
39
- }: React.ComponentProps<'div'>): react_jsx_runtime172.JSX.Element;
39
+ }: React.ComponentProps<'div'>): react_jsx_runtime123.JSX.Element;
40
40
  declare function ItemTitle({
41
41
  className,
42
42
  ...props
43
- }: React.ComponentProps<'div'>): react_jsx_runtime172.JSX.Element;
43
+ }: React.ComponentProps<'div'>): react_jsx_runtime123.JSX.Element;
44
44
  declare function ItemDescription({
45
45
  className,
46
46
  ...props
47
- }: React.ComponentProps<'p'>): react_jsx_runtime172.JSX.Element;
47
+ }: React.ComponentProps<'p'>): react_jsx_runtime123.JSX.Element;
48
48
  declare function ItemActions({
49
49
  className,
50
50
  ...props
51
- }: React.ComponentProps<'div'>): react_jsx_runtime172.JSX.Element;
51
+ }: React.ComponentProps<'div'>): react_jsx_runtime123.JSX.Element;
52
52
  declare function ItemHeader({
53
53
  className,
54
54
  ...props
55
- }: React.ComponentProps<'div'>): react_jsx_runtime172.JSX.Element;
55
+ }: React.ComponentProps<'div'>): react_jsx_runtime123.JSX.Element;
56
56
  declare function ItemFooter({
57
57
  className,
58
58
  ...props
59
- }: React.ComponentProps<'div'>): react_jsx_runtime172.JSX.Element;
59
+ }: React.ComponentProps<'div'>): react_jsx_runtime123.JSX.Element;
60
60
  //#endregion
61
61
  export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
62
62
  //# sourceMappingURL=item.d.mts.map
package/dist/ui/item.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{t as e}from"../dist-1xnmIjvR.mjs";import{t}from"../separator-CZM2q-Ac.mjs";import{cn as n}from"@customafk/react-toolkit/utils";import{jsx as r}from"react/jsx-runtime";import{cva as i}from"class-variance-authority";function a({className:e,...t}){return r(`div`,{role:`list`,"data-slot":`item-group`,className:n(`group/item-group flex flex-col`,e),...t})}function o({className:e,...i}){return r(t,{"data-slot":`item-separator`,orientation:`horizontal`,className:n(`my-0`,e),...i})}const s=i(`group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-primary-strong focus-visible:ring-primary-weak focus-visible:ring-[3px]`,{variants:{variant:{default:`bg-transparent`,outline:`border-border`,muted:`bg-muted-weak`},size:{default:`p-4 gap-4 `,sm:`py-3 px-4 gap-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function c({className:t,variant:i=`default`,size:a=`default`,asChild:o=!1,...c}){return r(o?e:`div`,{"data-slot":`item`,"data-variant":i,"data-size":a,className:n(s({variant:i,size:a,className:t})),...c})}const l=i(`flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5`,{variants:{variant:{default:`bg-transparent`,icon:`size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4`,image:`size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function u({className:e,variant:t=`default`,...i}){return r(`div`,{"data-slot":`item-media`,"data-variant":t,className:n(l({variant:t,className:e})),...i})}function d({className:e,...t}){return r(`div`,{"data-slot":`item-content`,className:n(`flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none`,e),...t})}function f({className:e,...t}){return r(`div`,{"data-slot":`item-title`,className:n(`flex w-fit items-center gap-2 text-sm leading-snug font-medium`,e),...t})}function p({className:e,...t}){return r(`p`,{"data-slot":`item-description`,className:n(`text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,e),...t})}function m({className:e,...t}){return r(`div`,{"data-slot":`item-actions`,className:n(`flex items-center gap-2`,e),...t})}function h({className:e,...t}){return r(`div`,{"data-slot":`item-header`,className:n(`flex basis-full items-center justify-between gap-2`,e),...t})}function g({className:e,...t}){return r(`div`,{"data-slot":`item-footer`,className:n(`flex basis-full items-center justify-between gap-2`,e),...t})}export{c as Item,m as ItemActions,d as ItemContent,p as ItemDescription,g as ItemFooter,a as ItemGroup,h as ItemHeader,u as ItemMedia,o as ItemSeparator,f as ItemTitle};
1
+ import{t as e}from"../dist-D2ydYRc4.mjs";import{t}from"../separator-Bf0gymN4.mjs";import{cn as n}from"@customafk/react-toolkit/utils";import{jsx as r}from"react/jsx-runtime";import{cva as i}from"class-variance-authority";function a({className:e,...t}){return r(`div`,{role:`list`,"data-slot":`item-group`,className:n(`group/item-group flex flex-col`,e),...t})}function o({className:e,...i}){return r(t,{"data-slot":`item-separator`,orientation:`horizontal`,className:n(`my-0`,e),...i})}const s=i(`group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-primary-strong focus-visible:ring-primary-weak focus-visible:ring-[3px]`,{variants:{variant:{default:`bg-transparent`,outline:`border-border`,muted:`bg-muted-weak`},size:{default:`p-4 gap-4 `,sm:`py-3 px-4 gap-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function c({className:t,variant:i=`default`,size:a=`default`,asChild:o=!1,...c}){return r(o?e:`div`,{"data-slot":`item`,"data-variant":i,"data-size":a,className:n(s({variant:i,size:a,className:t})),...c})}const l=i(`flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5`,{variants:{variant:{default:`bg-transparent`,icon:`size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4`,image:`size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function u({className:e,variant:t=`default`,...i}){return r(`div`,{"data-slot":`item-media`,"data-variant":t,className:n(l({variant:t,className:e})),...i})}function d({className:e,...t}){return r(`div`,{"data-slot":`item-content`,className:n(`flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none`,e),...t})}function f({className:e,...t}){return r(`div`,{"data-slot":`item-title`,className:n(`flex w-fit items-center gap-2 text-sm leading-snug font-medium`,e),...t})}function p({className:e,...t}){return r(`p`,{"data-slot":`item-description`,className:n(`text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,e),...t})}function m({className:e,...t}){return r(`div`,{"data-slot":`item-actions`,className:n(`flex items-center gap-2`,e),...t})}function h({className:e,...t}){return r(`div`,{"data-slot":`item-header`,className:n(`flex basis-full items-center justify-between gap-2`,e),...t})}function g({className:e,...t}){return r(`div`,{"data-slot":`item-footer`,className:n(`flex basis-full items-center justify-between gap-2`,e),...t})}export{c as Item,m as ItemActions,d as ItemContent,p as ItemDescription,g as ItemFooter,a as ItemGroup,h as ItemHeader,u as ItemMedia,o as ItemSeparator,f as ItemTitle};
2
2
  //# sourceMappingURL=item.mjs.map
@@ -1,11 +1,11 @@
1
- import * as react_jsx_runtime176 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime197 from "react/jsx-runtime";
2
2
  import { Label as Label$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/label.d.ts
5
5
  declare function Label({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<typeof Label$1.Root>): react_jsx_runtime176.JSX.Element;
8
+ }: React.ComponentProps<typeof Label$1.Root>): react_jsx_runtime197.JSX.Element;
9
9
  //#endregion
10
10
  export { Label };
11
11
  //# sourceMappingURL=label.d.cts.map
@@ -1,11 +1,11 @@
1
- import * as react_jsx_runtime102 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime122 from "react/jsx-runtime";
2
2
  import { Label as Label$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/label.d.ts
5
5
  declare function Label({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<typeof Label$1.Root>): react_jsx_runtime102.JSX.Element;
8
+ }: React.ComponentProps<typeof Label$1.Root>): react_jsx_runtime122.JSX.Element;
9
9
  //#endregion
10
10
  export { Label };
11
11
  //# sourceMappingURL=label.d.mts.map
package/dist/ui/label.mjs CHANGED
@@ -1 +1 @@
1
- "use client";import{t as e}from"../label-D7-mzz0l.mjs";export{e as Label};
1
+ "use client";import{t as e}from"../label-11tIftbr.mjs";export{e as Label};
@@ -1,34 +1,34 @@
1
- import * as react_jsx_runtime199 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime181 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_runtime199.JSX.Element;
8
+ }: React.ComponentProps<typeof Menubar$1.Root>): react_jsx_runtime181.JSX.Element;
9
9
  declare function MenubarMenu({
10
10
  ...props
11
- }: React.ComponentProps<typeof Menubar$1.Menu>): react_jsx_runtime199.JSX.Element;
11
+ }: React.ComponentProps<typeof Menubar$1.Menu>): react_jsx_runtime181.JSX.Element;
12
12
  declare function MenubarGroup({
13
13
  ...props
14
- }: React.ComponentProps<typeof Menubar$1.Group>): react_jsx_runtime199.JSX.Element;
14
+ }: React.ComponentProps<typeof Menubar$1.Group>): react_jsx_runtime181.JSX.Element;
15
15
  declare function MenubarPortal({
16
16
  ...props
17
- }: React.ComponentProps<typeof Menubar$1.Portal>): react_jsx_runtime199.JSX.Element;
17
+ }: React.ComponentProps<typeof Menubar$1.Portal>): react_jsx_runtime181.JSX.Element;
18
18
  declare function MenubarRadioGroup({
19
19
  ...props
20
- }: React.ComponentProps<typeof Menubar$1.RadioGroup>): react_jsx_runtime199.JSX.Element;
20
+ }: React.ComponentProps<typeof Menubar$1.RadioGroup>): react_jsx_runtime181.JSX.Element;
21
21
  declare function MenubarTrigger({
22
22
  className,
23
23
  ...props
24
- }: React.ComponentProps<typeof Menubar$1.Trigger>): react_jsx_runtime199.JSX.Element;
24
+ }: React.ComponentProps<typeof Menubar$1.Trigger>): react_jsx_runtime181.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_runtime199.JSX.Element;
31
+ }: React.ComponentProps<typeof Menubar$1.Content>): react_jsx_runtime181.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_runtime199.JSX.Element;
40
+ }): react_jsx_runtime181.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_runtime199.JSX.Element;
46
+ }: React.ComponentProps<typeof Menubar$1.CheckboxItem>): react_jsx_runtime181.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_runtime199.JSX.Element;
51
+ }: React.ComponentProps<typeof Menubar$1.RadioItem>): react_jsx_runtime181.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_runtime199.JSX.Element;
58
+ }): react_jsx_runtime181.JSX.Element;
59
59
  declare function MenubarSeparator({
60
60
  className,
61
61
  ...props
62
- }: React.ComponentProps<typeof Menubar$1.Separator>): react_jsx_runtime199.JSX.Element;
62
+ }: React.ComponentProps<typeof Menubar$1.Separator>): react_jsx_runtime181.JSX.Element;
63
63
  declare function MenubarShortcut({
64
64
  className,
65
65
  ...props
66
- }: React.ComponentProps<'span'>): react_jsx_runtime199.JSX.Element;
66
+ }: React.ComponentProps<'span'>): react_jsx_runtime181.JSX.Element;
67
67
  declare function MenubarSub({
68
68
  ...props
69
- }: React.ComponentProps<typeof Menubar$1.Sub>): react_jsx_runtime199.JSX.Element;
69
+ }: React.ComponentProps<typeof Menubar$1.Sub>): react_jsx_runtime181.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_runtime199.JSX.Element;
77
+ }): react_jsx_runtime181.JSX.Element;
78
78
  declare function MenubarSubContent({
79
79
  className,
80
80
  ...props
81
- }: React.ComponentProps<typeof Menubar$1.SubContent>): react_jsx_runtime199.JSX.Element;
81
+ }: React.ComponentProps<typeof Menubar$1.SubContent>): react_jsx_runtime181.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.cts.map
@@ -1,34 +1,34 @@
1
- import * as react_jsx_runtime242 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime153 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_runtime242.JSX.Element;
8
+ }: React.ComponentProps<typeof Menubar$1.Root>): react_jsx_runtime153.JSX.Element;
9
9
  declare function MenubarMenu({
10
10
  ...props
11
- }: React.ComponentProps<typeof Menubar$1.Menu>): react_jsx_runtime242.JSX.Element;
11
+ }: React.ComponentProps<typeof Menubar$1.Menu>): react_jsx_runtime153.JSX.Element;
12
12
  declare function MenubarGroup({
13
13
  ...props
14
- }: React.ComponentProps<typeof Menubar$1.Group>): react_jsx_runtime242.JSX.Element;
14
+ }: React.ComponentProps<typeof Menubar$1.Group>): react_jsx_runtime153.JSX.Element;
15
15
  declare function MenubarPortal({
16
16
  ...props
17
- }: React.ComponentProps<typeof Menubar$1.Portal>): react_jsx_runtime242.JSX.Element;
17
+ }: React.ComponentProps<typeof Menubar$1.Portal>): react_jsx_runtime153.JSX.Element;
18
18
  declare function MenubarRadioGroup({
19
19
  ...props
20
- }: React.ComponentProps<typeof Menubar$1.RadioGroup>): react_jsx_runtime242.JSX.Element;
20
+ }: React.ComponentProps<typeof Menubar$1.RadioGroup>): react_jsx_runtime153.JSX.Element;
21
21
  declare function MenubarTrigger({
22
22
  className,
23
23
  ...props
24
- }: React.ComponentProps<typeof Menubar$1.Trigger>): react_jsx_runtime242.JSX.Element;
24
+ }: React.ComponentProps<typeof Menubar$1.Trigger>): react_jsx_runtime153.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_runtime242.JSX.Element;
31
+ }: React.ComponentProps<typeof Menubar$1.Content>): react_jsx_runtime153.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_runtime242.JSX.Element;
40
+ }): react_jsx_runtime153.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_runtime242.JSX.Element;
46
+ }: React.ComponentProps<typeof Menubar$1.CheckboxItem>): react_jsx_runtime153.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_runtime242.JSX.Element;
51
+ }: React.ComponentProps<typeof Menubar$1.RadioItem>): react_jsx_runtime153.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_runtime242.JSX.Element;
58
+ }): react_jsx_runtime153.JSX.Element;
59
59
  declare function MenubarSeparator({
60
60
  className,
61
61
  ...props
62
- }: React.ComponentProps<typeof Menubar$1.Separator>): react_jsx_runtime242.JSX.Element;
62
+ }: React.ComponentProps<typeof Menubar$1.Separator>): react_jsx_runtime153.JSX.Element;
63
63
  declare function MenubarShortcut({
64
64
  className,
65
65
  ...props
66
- }: React.ComponentProps<'span'>): react_jsx_runtime242.JSX.Element;
66
+ }: React.ComponentProps<'span'>): react_jsx_runtime153.JSX.Element;
67
67
  declare function MenubarSub({
68
68
  ...props
69
- }: React.ComponentProps<typeof Menubar$1.Sub>): react_jsx_runtime242.JSX.Element;
69
+ }: React.ComponentProps<typeof Menubar$1.Sub>): react_jsx_runtime153.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_runtime242.JSX.Element;
77
+ }): react_jsx_runtime153.JSX.Element;
78
78
  declare function MenubarSubContent({
79
79
  className,
80
80
  ...props
81
- }: React.ComponentProps<typeof Menubar$1.SubContent>): react_jsx_runtime242.JSX.Element;
81
+ }: React.ComponentProps<typeof Menubar$1.SubContent>): react_jsx_runtime153.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,5 +1,5 @@
1
1
  import { Command as Command$1 } from "./command.cjs";
2
- import * as react14 from "react";
2
+ import * as react16 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: react14.ForwardRefExoticComponent<MultipleSelectorProps & react14.RefAttributes<MultipleSelectorRef>>;
77
+ declare const MultipleSelector: react16.ForwardRefExoticComponent<MultipleSelectorProps & react16.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-D5WkhH7J.mjs";
1
+ import "../dialog-DU7tobKF.mjs";
2
2
  import { Command as Command$1 } from "./command.mjs";
3
- import * as react24 from "react";
3
+ import * as react16 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: react16.ForwardRefExoticComponent<MultipleSelectorProps & react16.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"../button.variants-CXNnQvXs.mjs";import{t as e}from"../button-CqxqZbcQ.mjs";import"../close-Bb5Pi28f.mjs";import"../dialog-D5bBgIs8.mjs";import{c as t,i as n,o as r,s as ee,t as te}from"../command-D_f6JoHE.mjs";import{cn as i}from"@customafk/react-toolkit/utils";import{Fragment as a,jsx as o,jsxs as s}from"react/jsx-runtime";import{PlusIcon as ne,X as c}from"lucide-react";import{forwardRef as l,useCallback as u,useEffect as d,useImperativeHandle as re,useMemo as ie,useRef as f,useState as p}from"react";import{Command as m,useCommandState as h}from"cmdk";function g(e,t){let[n,r]=p(e);return d(()=>{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=l(({className:e,...t},n)=>h(e=>e.filtered.count===0)?o(`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=l(({value:l,onChange:h,placeholder:y,defaultOptions:b=[],options:x,delay:se,onSearch:S,onSearchSync:C,loadingIndicator:ce,emptyIndicator:w,maxSelected:T=2**53-1,onMaxSelected:E,hidePlaceholderWhenSelected:D,disabled:O,groupBy:k,className:A,badgeClassName:le,selectFirstItem:ue=!0,creatable:j=!1,triggerSearchOnFocus:M=!1,commandProps:N,inputProps:P,hideClearAllButton:F=!1,onAddNewItem:I},de)=>{let L=f(null),R=f(null),[z,B]=p(!1),[V,H]=p(!1),[U,W]=p(!1),[G,K]=p(l||[]),[q,J]=p(_(b,k)),[Y,X]=p(``),Z=g(Y,se||500);re(de,()=>({selectedValue:[...G],input:L.current,focus:()=>L?.current?.focus(),reset:()=>K([])}),[G]);let Q=u(e=>{R.current&&!R.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&(B(!1),L.current.blur())},[]),$=u(e=>{let t=G.filter(t=>t.value!==e.value);K(t),h?.(t)},[h,G]),fe=u(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]);d(()=>(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]),d(()=>{l&&K(l)},[l]),d(()=>{if(!x||S)return;let e=_(x||[],k);JSON.stringify(e)!==JSON.stringify(q)&&J(e)},[b,x,k,S,q]),d(()=>{let e=()=>{let e=C?.(Z);J(_(e||[],k))};(async()=>{!C||!z||(M&&e(),Z&&e())})()},[Z,k,z,M]),d(()=>{let e=async()=>{W(!0),J(_(await S?.(Z)||[],k)),W(!1)};(async()=>{!S||!z||(M&&await e(),Z&&await e())})()},[Z,k,z,M]);let pe=()=>{if(!j||oe(q,[{value:Y,label:Y}])||G.find(e=>e.value===Y))return;let e=o(r,{value:Y,className:`cursor-pointer`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:e=>{if(G.length>=T){E?.(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=u(()=>{if(w)return S&&!j&&Object.keys(q).length===0?o(r,{value:`-`,disabled:!0,children:w}):o(v,{children:w})},[j,w,S,q]),he=ie(()=>ae(q,G),[q,G]),ge=u(()=>{if(N?.filter)return N.filter;if(j)return(e,t)=>e.toLowerCase().includes(t.toLowerCase())?1:-1},[j,N?.filter]);return s(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:[o(`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`,!O&&G.length!==0&&`cursor-text`,!F&&`pe-9`,A),onClick:()=>{O||L?.current?.focus()},children:s(`div`,{className:`flex flex-wrap gap-1`,children:[G.map(e=>s(`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":O||void 0,children:[e.label,o(`button`,{type:`button`,disabled:O||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:o(c,{size:14,strokeWidth:2,"aria-hidden":`true`})})]},e.value)),o(m.Input,{...P,ref:L,value:Y,disabled:O,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:D&&G.length!==0?``:y,className:i(`placeholder:text-text-positive-muted flex-1 bg-transparent outline-hidden`,`disabled:placeholder:text-transparent`,{"w-full":D,"px-3 py-2":G.length===0,"ml-1":G.length!==0},P?.className)}),o(`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||O||G.length<1||G.filter(({fixed:e})=>e).length===G.length)&&`hidden`),"aria-label":`Clear all`,children:o(c,{size:16,strokeWidth:2,"aria-hidden":`true`})})]})}),o(`div`,{className:`relative`,children:o(`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&&s(ee,{className:`shadow-lg outline-hidden`,onMouseLeave:()=>{H(!1)},onMouseEnter:()=>{H(!0)},onMouseUp:()=>{L?.current?.focus()},children:[I&&s(a,{children:[o(t,{}),o(n,{children:s(e,{type:`button`,variant:`ghost`,className:`w-full font-normal [&_div]:justify-start`,onClick:I,children:[o(ne,{size:14,className:`opacity-60`,"aria-hidden":`true`}),`Thêm mới`]})})]}),U?ce:s(a,{children:[me(),pe(),!ue&&o(r,{value:`-`,className:`hidden`}),Object.entries(he).map(([e,t])=>o(n,{heading:e,className:`h-full overflow-auto`,children:t.map(e=>o(r,{value:e.value,disabled:e.disable,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:()=>{if(G.length>=T){E?.(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"../button.variants-CgCCe7qb.mjs";import{t as e}from"../button-JJaTl28Z.mjs";import"../close-B_PnUzNN.mjs";import"../dialog-4ZJcWPar.mjs";import{c as t,i as n,o as r,s as ee,t as te}from"../command-CtWxCsMm.mjs";import{cn as i}from"@customafk/react-toolkit/utils";import{Fragment as a,jsx as o,jsxs as s}from"react/jsx-runtime";import{PlusIcon as ne,X as c}from"lucide-react";import{forwardRef as l,useCallback as u,useEffect as d,useImperativeHandle as re,useMemo as ie,useRef as f,useState as p}from"react";import{Command as m,useCommandState as h}from"cmdk";function g(e,t){let[n,r]=p(e);return d(()=>{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=l(({className:e,...t},n)=>h(e=>e.filtered.count===0)?o(`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=l(({value:l,onChange:h,placeholder:y,defaultOptions:b=[],options:x,delay:se,onSearch:S,onSearchSync:C,loadingIndicator:ce,emptyIndicator:w,maxSelected:T=2**53-1,onMaxSelected:E,hidePlaceholderWhenSelected:D,disabled:O,groupBy:k,className:A,badgeClassName:le,selectFirstItem:ue=!0,creatable:j=!1,triggerSearchOnFocus:M=!1,commandProps:N,inputProps:P,hideClearAllButton:F=!1,onAddNewItem:I},de)=>{let L=f(null),R=f(null),[z,B]=p(!1),[V,H]=p(!1),[U,W]=p(!1),[G,K]=p(l||[]),[q,J]=p(_(b,k)),[Y,X]=p(``),Z=g(Y,se||500);re(de,()=>({selectedValue:[...G],input:L.current,focus:()=>L?.current?.focus(),reset:()=>K([])}),[G]);let Q=u(e=>{R.current&&!R.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&(B(!1),L.current.blur())},[]),$=u(e=>{let t=G.filter(t=>t.value!==e.value);K(t),h?.(t)},[h,G]),fe=u(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]);d(()=>(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]),d(()=>{l&&K(l)},[l]),d(()=>{if(!x||S)return;let e=_(x||[],k);JSON.stringify(e)!==JSON.stringify(q)&&J(e)},[b,x,k,S,q]),d(()=>{let e=()=>{let e=C?.(Z);J(_(e||[],k))};(async()=>{!C||!z||(M&&e(),Z&&e())})()},[Z,k,z,M]),d(()=>{let e=async()=>{W(!0),J(_(await S?.(Z)||[],k)),W(!1)};(async()=>{!S||!z||(M&&await e(),Z&&await e())})()},[Z,k,z,M]);let pe=()=>{if(!j||oe(q,[{value:Y,label:Y}])||G.find(e=>e.value===Y))return;let e=o(r,{value:Y,className:`cursor-pointer`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:e=>{if(G.length>=T){E?.(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=u(()=>{if(w)return S&&!j&&Object.keys(q).length===0?o(r,{value:`-`,disabled:!0,children:w}):o(v,{children:w})},[j,w,S,q]),he=ie(()=>ae(q,G),[q,G]),ge=u(()=>{if(N?.filter)return N.filter;if(j)return(e,t)=>e.toLowerCase().includes(t.toLowerCase())?1:-1},[j,N?.filter]);return s(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:[o(`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`,!O&&G.length!==0&&`cursor-text`,!F&&`pe-9`,A),onClick:()=>{O||L?.current?.focus()},children:s(`div`,{className:`flex flex-wrap gap-1`,children:[G.map(e=>s(`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":O||void 0,children:[e.label,o(`button`,{type:`button`,disabled:O||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:o(c,{size:14,strokeWidth:2,"aria-hidden":`true`})})]},e.value)),o(m.Input,{...P,ref:L,value:Y,disabled:O,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:D&&G.length!==0?``:y,className:i(`placeholder:text-text-positive-muted flex-1 bg-transparent outline-hidden`,`disabled:placeholder:text-transparent`,{"w-full":D,"px-3 py-2":G.length===0,"ml-1":G.length!==0},P?.className)}),o(`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||O||G.length<1||G.filter(({fixed:e})=>e).length===G.length)&&`hidden`),"aria-label":`Clear all`,children:o(c,{size:16,strokeWidth:2,"aria-hidden":`true`})})]})}),o(`div`,{className:`relative`,children:o(`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&&s(ee,{className:`shadow-lg outline-hidden`,onMouseLeave:()=>{H(!1)},onMouseEnter:()=>{H(!0)},onMouseUp:()=>{L?.current?.focus()},children:[I&&s(a,{children:[o(t,{}),o(n,{children:s(e,{type:`button`,variant:`ghost`,className:`w-full font-normal [&_div]:justify-start`,onClick:I,children:[o(ne,{size:14,className:`opacity-60`,"aria-hidden":`true`}),`Thêm mới`]})})]}),U?ce:s(a,{children:[me(),pe(),!ue&&o(r,{value:`-`,className:`hidden`}),Object.entries(he).map(([e,t])=>o(n,{heading:e,className:`h-full overflow-auto`,children:t.map(e=>o(r,{value:e.value,disabled:e.disable,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onSelect:()=>{if(G.length>=T){E?.(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,4 +1,4 @@
1
- import * as react_jsx_runtime191 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime214 from "react/jsx-runtime";
2
2
  import * as class_variance_authority_types7 from "class-variance-authority/types";
3
3
  import { NavigationMenu as NavigationMenu$1 } from "radix-ui";
4
4
 
@@ -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_runtime191.JSX.Element;
13
+ }): react_jsx_runtime214.JSX.Element;
14
14
  declare function NavigationMenuList({
15
15
  className,
16
16
  ...props
17
- }: React.ComponentProps<typeof NavigationMenu$1.List>): react_jsx_runtime191.JSX.Element;
17
+ }: React.ComponentProps<typeof NavigationMenu$1.List>): react_jsx_runtime214.JSX.Element;
18
18
  declare function NavigationMenuItem({
19
19
  className,
20
20
  ...props
21
- }: React.ComponentProps<typeof NavigationMenu$1.Item>): react_jsx_runtime191.JSX.Element;
21
+ }: React.ComponentProps<typeof NavigationMenu$1.Item>): react_jsx_runtime214.JSX.Element;
22
22
  declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types7.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_runtime191.JSX.Element;
27
+ }: React.ComponentProps<typeof NavigationMenu$1.Trigger>): react_jsx_runtime214.JSX.Element;
28
28
  declare function NavigationMenuContent({
29
29
  className,
30
30
  ...props
31
- }: React.ComponentProps<typeof NavigationMenu$1.Content>): react_jsx_runtime191.JSX.Element;
31
+ }: React.ComponentProps<typeof NavigationMenu$1.Content>): react_jsx_runtime214.JSX.Element;
32
32
  declare function NavigationMenuViewport({
33
33
  className,
34
34
  ...props
35
- }: React.ComponentProps<typeof NavigationMenu$1.Viewport>): react_jsx_runtime191.JSX.Element;
35
+ }: React.ComponentProps<typeof NavigationMenu$1.Viewport>): react_jsx_runtime214.JSX.Element;
36
36
  declare function NavigationMenuLink({
37
37
  className,
38
38
  ...props
39
- }: React.ComponentProps<typeof NavigationMenu$1.Link>): react_jsx_runtime191.JSX.Element;
39
+ }: React.ComponentProps<typeof NavigationMenu$1.Link>): react_jsx_runtime214.JSX.Element;
40
40
  declare function NavigationMenuIndicator({
41
41
  className,
42
42
  ...props
43
- }: React.ComponentProps<typeof NavigationMenu$1.Indicator>): react_jsx_runtime191.JSX.Element;
43
+ }: React.ComponentProps<typeof NavigationMenu$1.Indicator>): react_jsx_runtime214.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_runtime140 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime142 from "react/jsx-runtime";
2
2
  import { NavigationMenu as NavigationMenu$1 } from "radix-ui";
3
- import * as class_variance_authority_types4 from "class-variance-authority/types";
3
+ import * as class_variance_authority_types7 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_runtime140.JSX.Element;
13
+ }): react_jsx_runtime142.JSX.Element;
14
14
  declare function NavigationMenuList({
15
15
  className,
16
16
  ...props
17
- }: React.ComponentProps<typeof NavigationMenu$1.List>): react_jsx_runtime140.JSX.Element;
17
+ }: React.ComponentProps<typeof NavigationMenu$1.List>): react_jsx_runtime142.JSX.Element;
18
18
  declare function NavigationMenuItem({
19
19
  className,
20
20
  ...props
21
- }: React.ComponentProps<typeof NavigationMenu$1.Item>): react_jsx_runtime140.JSX.Element;
22
- declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types4.ClassProp | undefined) => string;
21
+ }: React.ComponentProps<typeof NavigationMenu$1.Item>): react_jsx_runtime142.JSX.Element;
22
+ declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types7.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_runtime140.JSX.Element;
27
+ }: React.ComponentProps<typeof NavigationMenu$1.Trigger>): react_jsx_runtime142.JSX.Element;
28
28
  declare function NavigationMenuContent({
29
29
  className,
30
30
  ...props
31
- }: React.ComponentProps<typeof NavigationMenu$1.Content>): react_jsx_runtime140.JSX.Element;
31
+ }: React.ComponentProps<typeof NavigationMenu$1.Content>): react_jsx_runtime142.JSX.Element;
32
32
  declare function NavigationMenuViewport({
33
33
  className,
34
34
  ...props
35
- }: React.ComponentProps<typeof NavigationMenu$1.Viewport>): react_jsx_runtime140.JSX.Element;
35
+ }: React.ComponentProps<typeof NavigationMenu$1.Viewport>): react_jsx_runtime142.JSX.Element;
36
36
  declare function NavigationMenuLink({
37
37
  className,
38
38
  ...props
39
- }: React.ComponentProps<typeof NavigationMenu$1.Link>): react_jsx_runtime140.JSX.Element;
39
+ }: React.ComponentProps<typeof NavigationMenu$1.Link>): react_jsx_runtime142.JSX.Element;
40
40
  declare function NavigationMenuIndicator({
41
41
  className,
42
42
  ...props
43
- }: React.ComponentProps<typeof NavigationMenu$1.Indicator>): react_jsx_runtime140.JSX.Element;
43
+ }: React.ComponentProps<typeof NavigationMenu$1.Indicator>): react_jsx_runtime142.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,18 +1,18 @@
1
- import { t as Button } from "../button-BLm2W-rK.cjs";
2
- import * as react_jsx_runtime180 from "react/jsx-runtime";
1
+ import { t as Button } from "../button-C8HSrN_3.cjs";
2
+ import * as react_jsx_runtime198 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_runtime180.JSX.Element;
8
+ }: React.ComponentProps<'nav'>): react_jsx_runtime198.JSX.Element;
9
9
  declare function PaginationContent({
10
10
  className,
11
11
  ...props
12
- }: React.ComponentProps<'ul'>): react_jsx_runtime180.JSX.Element;
12
+ }: React.ComponentProps<'ul'>): react_jsx_runtime198.JSX.Element;
13
13
  declare function PaginationItem({
14
14
  ...props
15
- }: React.ComponentProps<'li'>): react_jsx_runtime180.JSX.Element;
15
+ }: React.ComponentProps<'li'>): react_jsx_runtime198.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_runtime180.JSX.Element;
24
+ }: PaginationLinkProps): react_jsx_runtime198.JSX.Element;
25
25
  declare function PaginationPrevious({
26
26
  className,
27
27
  ...props
28
- }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime180.JSX.Element;
28
+ }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime198.JSX.Element;
29
29
  declare function PaginationNext({
30
30
  className,
31
31
  ...props
32
- }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime180.JSX.Element;
32
+ }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime198.JSX.Element;
33
33
  declare function PaginationEllipsis({
34
34
  className,
35
35
  ...props
36
- }: React.ComponentProps<'span'>): react_jsx_runtime180.JSX.Element;
36
+ }: React.ComponentProps<'span'>): react_jsx_runtime198.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-Q8sFW-l8.mjs";
2
- import * as react_jsx_runtime104 from "react/jsx-runtime";
1
+ import { t as Button } from "../button-vNDXA78a.mjs";
2
+ import * as react_jsx_runtime179 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_runtime104.JSX.Element;
8
+ }: React.ComponentProps<'nav'>): react_jsx_runtime179.JSX.Element;
9
9
  declare function PaginationContent({
10
10
  className,
11
11
  ...props
12
- }: React.ComponentProps<'ul'>): react_jsx_runtime104.JSX.Element;
12
+ }: React.ComponentProps<'ul'>): react_jsx_runtime179.JSX.Element;
13
13
  declare function PaginationItem({
14
14
  ...props
15
- }: React.ComponentProps<'li'>): react_jsx_runtime104.JSX.Element;
15
+ }: React.ComponentProps<'li'>): react_jsx_runtime179.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_runtime104.JSX.Element;
24
+ }: PaginationLinkProps): react_jsx_runtime179.JSX.Element;
25
25
  declare function PaginationPrevious({
26
26
  className,
27
27
  ...props
28
- }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime104.JSX.Element;
28
+ }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime179.JSX.Element;
29
29
  declare function PaginationNext({
30
30
  className,
31
31
  ...props
32
- }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime104.JSX.Element;
32
+ }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime179.JSX.Element;
33
33
  declare function PaginationEllipsis({
34
34
  className,
35
35
  ...props
36
- }: React.ComponentProps<'span'>): react_jsx_runtime104.JSX.Element;
36
+ }: React.ComponentProps<'span'>): react_jsx_runtime179.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-CXNnQvXs.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-CgCCe7qb.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