@customafk/lunas-ui 0.1.99 → 0.2.1

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 (264) hide show
  1. package/dist/{button-8vMj-_no.d.mts → button-Bji_SqMI.d.cts} +6 -6
  2. package/dist/button-C58TS8Pc.cjs +2 -0
  3. package/dist/button-C58TS8Pc.cjs.map +1 -0
  4. package/dist/button-DXPSlb3I.mjs +2 -0
  5. package/dist/button-DXPSlb3I.mjs.map +1 -0
  6. package/dist/{button-Dy39kE9k.d.cts → button-PV-Xnryv.d.mts} +6 -6
  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-e9Pu8pNj.mjs → calendar-CEF9LSd4.mjs} +2 -2
  12. package/dist/{calendar-e9Pu8pNj.mjs.map → calendar-CEF9LSd4.mjs.map} +1 -1
  13. package/dist/{calendar-DgLMLD8R.cjs → calendar-DT0NPRhB.cjs} +2 -2
  14. package/dist/{calendar-DgLMLD8R.cjs.map → calendar-DT0NPRhB.cjs.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/name.cjs +1 -1
  33. package/dist/data-display/name.mjs +1 -1
  34. package/dist/data-display/statistic.d.cts +2 -2
  35. package/dist/data-display/statistic.d.mts +2 -2
  36. package/dist/data-display/user.cjs +1 -1
  37. package/dist/data-display/user.mjs +1 -1
  38. package/dist/date-By93kONr.mjs +2 -0
  39. package/dist/date-By93kONr.mjs.map +1 -0
  40. package/dist/date-em5f7hCx.cjs +2 -0
  41. package/dist/date-em5f7hCx.cjs.map +1 -0
  42. package/dist/{dialog-BtlJFvlf.d.cts → dialog-7127ChM2.d.cts} +12 -12
  43. package/dist/{dialog-DTz8ngeU.mjs → dialog-CxELDK98.mjs} +2 -2
  44. package/dist/{dialog-DTz8ngeU.mjs.map → dialog-CxELDK98.mjs.map} +1 -1
  45. package/dist/{dialog-ArqTBRVT.d.mts → dialog-DKZ8BLxc.d.mts} +12 -12
  46. package/dist/{dialog-2N-D9B9o.cjs → dialog-DjRiV5vR.cjs} +2 -2
  47. package/dist/{dialog-2N-D9B9o.cjs.map → dialog-DjRiV5vR.cjs.map} +1 -1
  48. package/dist/dialogs/confirm-dialog.cjs +1 -1
  49. package/dist/dialogs/confirm-dialog.mjs +1 -1
  50. package/dist/dialogs/detail-dialog/components/sidebar.cjs +1 -1
  51. package/dist/dialogs/detail-dialog/components/sidebar.d.cts +26 -26
  52. package/dist/dialogs/detail-dialog/components/sidebar.d.mts +26 -26
  53. package/dist/dialogs/detail-dialog/components/sidebar.mjs +1 -1
  54. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  55. package/dist/dialogs/detail-dialog/index.mjs +1 -1
  56. package/dist/dialogs/error-dialog.cjs +1 -1
  57. package/dist/dialogs/error-dialog.mjs +1 -1
  58. package/dist/dialogs/loading-dialog.cjs +1 -1
  59. package/dist/dialogs/loading-dialog.mjs +1 -1
  60. package/dist/features/descriptions/index.cjs +1 -1
  61. package/dist/features/descriptions/index.mjs +1 -1
  62. package/dist/features/search-modal/index.cjs +1 -1
  63. package/dist/features/search-modal/index.d.cts +2 -2
  64. package/dist/features/search-modal/index.d.mts +2 -2
  65. package/dist/features/search-modal/index.mjs +1 -1
  66. package/dist/features/tables/index.cjs +1 -1
  67. package/dist/features/tables/index.cjs.map +1 -1
  68. package/dist/features/tables/index.d.cts +1 -1
  69. package/dist/features/tables/index.d.mts +1 -1
  70. package/dist/features/tables/index.mjs +1 -1
  71. package/dist/features/tables/index.mjs.map +1 -1
  72. package/dist/features/tanstack-form/index.cjs +1 -1
  73. package/dist/features/tanstack-form/index.cjs.map +1 -1
  74. package/dist/features/tanstack-form/index.d.cts +58 -51
  75. package/dist/features/tanstack-form/index.d.mts +58 -51
  76. package/dist/features/tanstack-form/index.mjs +1 -1
  77. package/dist/features/tanstack-form/index.mjs.map +1 -1
  78. package/dist/{input-DqoSygui.d.cts → input-D0enZTLC.d.cts} +6 -6
  79. package/dist/{input-DERBzcV_.d.mts → input-DkvHV_UU.d.mts} +4 -4
  80. package/dist/layouts/cms-layout/index.cjs +1 -1
  81. package/dist/layouts/cms-layout/index.cjs.map +1 -1
  82. package/dist/layouts/cms-layout/index.mjs +1 -1
  83. package/dist/layouts/cms-layout/index.mjs.map +1 -1
  84. package/dist/layouts/flex.d.cts +2 -2
  85. package/dist/layouts/flex.d.mts +4 -4
  86. package/dist/layouts/payment-layout/index.cjs +1 -1
  87. package/dist/layouts/payment-layout/index.mjs +1 -1
  88. package/dist/pages/FeatureDeveloping.cjs +1 -1
  89. package/dist/pages/FeatureDeveloping.d.cts +2 -2
  90. package/dist/pages/FeatureDeveloping.d.mts +2 -2
  91. package/dist/pages/FeatureDeveloping.mjs +1 -1
  92. package/dist/pages/FeatureFixing.cjs +1 -1
  93. package/dist/pages/FeatureFixing.d.cts +2 -2
  94. package/dist/pages/FeatureFixing.d.mts +2 -2
  95. package/dist/pages/FeatureFixing.mjs +1 -1
  96. package/dist/pages/NotAuthorized.cjs +1 -1
  97. package/dist/pages/NotAuthorized.d.cts +2 -2
  98. package/dist/pages/NotAuthorized.d.mts +2 -2
  99. package/dist/pages/NotAuthorized.mjs +1 -1
  100. package/dist/pages/NotFound.cjs +1 -1
  101. package/dist/pages/NotFound.d.cts +2 -2
  102. package/dist/pages/NotFound.d.mts +2 -2
  103. package/dist/pages/NotFound.mjs +1 -1
  104. package/dist/{paragraph-BBye8n4M.cjs → paragraph-B72bHMf7.cjs} +2 -2
  105. package/dist/paragraph-B72bHMf7.cjs.map +1 -0
  106. package/dist/{paragraph-BS88Xdo7.mjs → paragraph-moBSTPmT.mjs} +2 -2
  107. package/dist/paragraph-moBSTPmT.mjs.map +1 -0
  108. package/dist/typography/paragraph.cjs +1 -1
  109. package/dist/typography/paragraph.d.cts +6 -6
  110. package/dist/typography/paragraph.d.mts +4 -4
  111. package/dist/typography/paragraph.mjs +1 -1
  112. package/dist/typography/title.d.cts +2 -2
  113. package/dist/typography/title.d.mts +2 -2
  114. package/dist/ui/alert-dialog.cjs +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 +7 -7
  119. package/dist/ui/alert.d.mts +7 -7
  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/badge.d.cts +4 -4
  125. package/dist/ui/badge.d.mts +4 -4
  126. package/dist/ui/breadcrumb.d.cts +8 -8
  127. package/dist/ui/breadcrumb.d.mts +8 -8
  128. package/dist/ui/button-group.d.cts +6 -6
  129. package/dist/ui/button-group.d.mts +6 -6
  130. package/dist/ui/button.cjs +1 -1
  131. package/dist/ui/button.d.cts +1 -1
  132. package/dist/ui/button.d.mts +1 -1
  133. package/dist/ui/button.mjs +1 -1
  134. package/dist/ui/buttons/add-new.cjs +1 -1
  135. package/dist/ui/buttons/add-new.mjs +1 -1
  136. package/dist/ui/buttons/edit.cjs +1 -1
  137. package/dist/ui/buttons/edit.mjs +1 -1
  138. package/dist/ui/buttons/refresh.cjs +1 -1
  139. package/dist/ui/buttons/refresh.mjs +1 -1
  140. package/dist/ui/buttons/trash.cjs +1 -1
  141. package/dist/ui/buttons/trash.mjs +1 -1
  142. package/dist/ui/buttons/upload-image.cjs +1 -1
  143. package/dist/ui/buttons/upload-image.mjs +1 -1
  144. package/dist/ui/calendar.cjs +1 -1
  145. package/dist/ui/calendar.d.cts +4 -4
  146. package/dist/ui/calendar.d.mts +4 -4
  147. package/dist/ui/calendar.mjs +1 -1
  148. package/dist/ui/card.cjs +1 -1
  149. package/dist/ui/card.d.cts +8 -8
  150. package/dist/ui/card.d.mts +8 -8
  151. package/dist/ui/card.mjs +1 -1
  152. package/dist/ui/carousel.cjs +1 -1
  153. package/dist/ui/carousel.d.cts +7 -7
  154. package/dist/ui/carousel.d.mts +7 -7
  155. package/dist/ui/carousel.mjs +1 -1
  156. package/dist/ui/checkbox.d.cts +2 -2
  157. package/dist/ui/checkbox.d.mts +2 -2
  158. package/dist/ui/collapsible.d.cts +4 -4
  159. package/dist/ui/collapsible.d.mts +4 -4
  160. package/dist/ui/command.cjs +1 -1
  161. package/dist/ui/command.d.cts +11 -11
  162. package/dist/ui/command.d.mts +11 -11
  163. package/dist/ui/command.mjs +1 -1
  164. package/dist/ui/context-menu.d.cts +16 -16
  165. package/dist/ui/context-menu.d.mts +16 -16
  166. package/dist/ui/dialog.cjs +1 -1
  167. package/dist/ui/dialog.d.cts +1 -1
  168. package/dist/ui/dialog.d.mts +1 -1
  169. package/dist/ui/dialog.mjs +1 -1
  170. package/dist/ui/drawer.d.cts +11 -11
  171. package/dist/ui/drawer.d.mts +11 -11
  172. package/dist/ui/dropdown-menu.d.cts +16 -16
  173. package/dist/ui/dropdown-menu.d.mts +16 -16
  174. package/dist/ui/empty.d.cts +9 -9
  175. package/dist/ui/empty.d.mts +9 -9
  176. package/dist/ui/field.d.cts +13 -13
  177. package/dist/ui/field.d.mts +13 -13
  178. package/dist/ui/file-uploader.cjs +1 -1
  179. package/dist/ui/file-uploader.d.cts +2 -2
  180. package/dist/ui/file-uploader.d.mts +2 -2
  181. package/dist/ui/file-uploader.mjs +1 -1
  182. package/dist/ui/form.d.cts +7 -7
  183. package/dist/ui/form.d.mts +11 -11
  184. package/dist/ui/hover-card.d.cts +4 -4
  185. package/dist/ui/hover-card.d.mts +4 -4
  186. package/dist/ui/input-otp.d.cts +5 -5
  187. package/dist/ui/input-otp.d.mts +5 -5
  188. package/dist/ui/input.d.cts +1 -1
  189. package/dist/ui/input.d.mts +1 -1
  190. package/dist/ui/inputs/search-input.d.cts +3 -3
  191. package/dist/ui/inputs/search-input.d.mts +3 -3
  192. package/dist/ui/item.d.cts +12 -12
  193. package/dist/ui/item.d.mts +15 -15
  194. package/dist/ui/label.d.cts +2 -2
  195. package/dist/ui/label.d.mts +2 -2
  196. package/dist/ui/menubar.d.cts +17 -17
  197. package/dist/ui/menubar.d.mts +17 -17
  198. package/dist/ui/multi-select.cjs +1 -1
  199. package/dist/ui/multi-select.d.cts +2 -2
  200. package/dist/ui/multi-select.d.mts +1 -1
  201. package/dist/ui/multi-select.mjs +1 -1
  202. package/dist/ui/navigation-menu.d.cts +11 -11
  203. package/dist/ui/navigation-menu.d.mts +11 -11
  204. package/dist/ui/pagination.cjs +1 -1
  205. package/dist/ui/pagination.d.cts +9 -9
  206. package/dist/ui/pagination.d.mts +9 -9
  207. package/dist/ui/pagination.mjs +1 -1
  208. package/dist/ui/popover.d.cts +6 -6
  209. package/dist/ui/popover.d.mts +6 -6
  210. package/dist/ui/progress.d.cts +2 -2
  211. package/dist/ui/progress.d.mts +2 -2
  212. package/dist/ui/radio-group.d.cts +3 -3
  213. package/dist/ui/radio-group.d.mts +3 -3
  214. package/dist/ui/resizable.d.cts +1 -1
  215. package/dist/ui/resizable.d.mts +9 -9
  216. package/dist/ui/scroll-area.d.cts +3 -3
  217. package/dist/ui/scroll-area.d.mts +6 -6
  218. package/dist/ui/select.d.cts +9 -9
  219. package/dist/ui/select.d.mts +9 -9
  220. package/dist/ui/separator.d.cts +2 -2
  221. package/dist/ui/separator.d.mts +2 -2
  222. package/dist/ui/sheet.d.cts +9 -9
  223. package/dist/ui/sheet.d.mts +9 -9
  224. package/dist/ui/sidebar.cjs +1 -1
  225. package/dist/ui/sidebar.d.cts +26 -26
  226. package/dist/ui/sidebar.d.mts +26 -26
  227. package/dist/ui/sidebar.mjs +1 -1
  228. package/dist/ui/skeleton.d.cts +2 -2
  229. package/dist/ui/skeleton.d.mts +2 -2
  230. package/dist/ui/slider.d.cts +2 -2
  231. package/dist/ui/slider.d.mts +2 -2
  232. package/dist/ui/sonner.d.cts +2 -2
  233. package/dist/ui/sonner.d.mts +2 -2
  234. package/dist/ui/spinner.d.cts +2 -2
  235. package/dist/ui/spinner.d.mts +2 -2
  236. package/dist/ui/switch.d.cts +2 -2
  237. package/dist/ui/switch.d.mts +2 -2
  238. package/dist/ui/table.d.cts +18 -18
  239. package/dist/ui/table.d.mts +9 -9
  240. package/dist/ui/tabs.d.cts +5 -5
  241. package/dist/ui/tabs.d.mts +5 -5
  242. package/dist/ui/textarea.d.cts +2 -2
  243. package/dist/ui/textarea.d.mts +2 -2
  244. package/dist/ui/toggle-group.d.cts +3 -3
  245. package/dist/ui/toggle-group.d.mts +3 -3
  246. package/dist/ui/toggle.d.cts +2 -2
  247. package/dist/ui/toggle.d.mts +4 -4
  248. package/dist/ui/tooltip.d.cts +5 -5
  249. package/dist/ui/tooltip.d.mts +5 -5
  250. package/package.json +2 -2
  251. package/dist/button-8Snjc8iT.cjs +0 -2
  252. package/dist/button-8Snjc8iT.cjs.map +0 -1
  253. package/dist/button-C_yZHudZ.mjs +0 -2
  254. package/dist/button-C_yZHudZ.mjs.map +0 -1
  255. package/dist/button.variants-8QOIR433.cjs +0 -2
  256. package/dist/button.variants-8QOIR433.cjs.map +0 -1
  257. package/dist/button.variants-CL2rLGYO.mjs +0 -2
  258. package/dist/button.variants-CL2rLGYO.mjs.map +0 -1
  259. package/dist/date-CK7XBqG9.mjs +0 -2
  260. package/dist/date-CK7XBqG9.mjs.map +0 -1
  261. package/dist/date-CTmoK8tv.cjs +0 -2
  262. package/dist/date-CTmoK8tv.cjs.map +0 -1
  263. package/dist/paragraph-BBye8n4M.cjs.map +0 -1
  264. package/dist/paragraph-BS88Xdo7.mjs.map +0 -1
@@ -1,36 +1,36 @@
1
1
  import { VariantProps } from "class-variance-authority";
2
- import * as react_jsx_runtime91 from "react/jsx-runtime";
3
- import * as class_variance_authority_types2 from "class-variance-authority/types";
2
+ import * as react_jsx_runtime87 from "react/jsx-runtime";
3
+ import * as class_variance_authority_types4 from "class-variance-authority/types";
4
4
 
5
5
  //#region packages/components/ui/empty.d.ts
6
6
  declare function Empty({
7
7
  className,
8
8
  ...props
9
- }: React.ComponentProps<'div'>): react_jsx_runtime91.JSX.Element;
9
+ }: React.ComponentProps<'div'>): react_jsx_runtime87.JSX.Element;
10
10
  declare function EmptyHeader({
11
11
  className,
12
12
  ...props
13
- }: React.ComponentProps<'div'>): react_jsx_runtime91.JSX.Element;
13
+ }: React.ComponentProps<'div'>): react_jsx_runtime87.JSX.Element;
14
14
  declare const emptyMediaVariants: (props?: ({
15
15
  variant?: "default" | "icon" | null | undefined;
16
- } & class_variance_authority_types2.ClassProp) | undefined) => string;
16
+ } & class_variance_authority_types4.ClassProp) | undefined) => string;
17
17
  declare function EmptyMedia({
18
18
  className,
19
19
  variant,
20
20
  ...props
21
- }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime91.JSX.Element;
21
+ }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime87.JSX.Element;
22
22
  declare function EmptyTitle({
23
23
  className,
24
24
  ...props
25
- }: React.ComponentProps<'div'>): react_jsx_runtime91.JSX.Element;
25
+ }: React.ComponentProps<'div'>): react_jsx_runtime87.JSX.Element;
26
26
  declare function EmptyDescription({
27
27
  className,
28
28
  ...props
29
- }: React.ComponentProps<'p'>): react_jsx_runtime91.JSX.Element;
29
+ }: React.ComponentProps<'p'>): react_jsx_runtime87.JSX.Element;
30
30
  declare function EmptyContent({
31
31
  className,
32
32
  ...props
33
- }: React.ComponentProps<'div'>): react_jsx_runtime91.JSX.Element;
33
+ }: React.ComponentProps<'div'>): react_jsx_runtime87.JSX.Element;
34
34
  //#endregion
35
35
  export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
36
36
  //# sourceMappingURL=empty.d.mts.map
@@ -1,56 +1,56 @@
1
1
  import { Label } from "./label.cjs";
2
- import * as react_jsx_runtime39 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime168 from "react/jsx-runtime";
3
3
  import * as react4 from "react";
4
- import * as class_variance_authority_types3 from "class-variance-authority/types";
4
+ import * as class_variance_authority_types9 from "class-variance-authority/types";
5
5
  import { VariantProps } from "class-variance-authority";
6
6
 
7
7
  //#region packages/components/ui/field.d.ts
8
8
  declare const FieldSet: react4.MemoExoticComponent<({
9
9
  className,
10
10
  ...props
11
- }: React.ComponentProps<"fieldset">) => react_jsx_runtime39.JSX.Element>;
11
+ }: React.ComponentProps<"fieldset">) => react_jsx_runtime168.JSX.Element>;
12
12
  declare const FieldLegend: react4.MemoExoticComponent<({
13
13
  className,
14
14
  variant,
15
15
  ...props
16
16
  }: React.ComponentProps<"legend"> & {
17
17
  variant?: "legend" | "label";
18
- }) => react_jsx_runtime39.JSX.Element>;
18
+ }) => react_jsx_runtime168.JSX.Element>;
19
19
  declare const FieldGroup: react4.MemoExoticComponent<({
20
20
  className,
21
21
  ...props
22
- }: React.ComponentProps<"div">) => react_jsx_runtime39.JSX.Element>;
22
+ }: React.ComponentProps<"div">) => react_jsx_runtime168.JSX.Element>;
23
23
  declare const fieldVariants: (props?: ({
24
24
  orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
25
- } & class_variance_authority_types3.ClassProp) | undefined) => string;
25
+ } & class_variance_authority_types9.ClassProp) | undefined) => string;
26
26
  declare const Field: react4.MemoExoticComponent<({
27
27
  className,
28
28
  orientation,
29
29
  ...props
30
- }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime39.JSX.Element>;
30
+ }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime168.JSX.Element>;
31
31
  declare const FieldContent: react4.MemoExoticComponent<({
32
32
  className,
33
33
  ...props
34
- }: React.ComponentProps<"div">) => react_jsx_runtime39.JSX.Element>;
34
+ }: React.ComponentProps<"div">) => react_jsx_runtime168.JSX.Element>;
35
35
  declare const FieldLabel: react4.MemoExoticComponent<({
36
36
  className,
37
37
  ...props
38
- }: React.ComponentProps<typeof Label>) => react_jsx_runtime39.JSX.Element>;
38
+ }: React.ComponentProps<typeof Label>) => react_jsx_runtime168.JSX.Element>;
39
39
  declare const FieldTitle: react4.MemoExoticComponent<({
40
40
  className,
41
41
  ...props
42
- }: React.ComponentProps<"div">) => react_jsx_runtime39.JSX.Element>;
42
+ }: React.ComponentProps<"div">) => react_jsx_runtime168.JSX.Element>;
43
43
  declare const FieldDescription: react4.MemoExoticComponent<({
44
44
  className,
45
45
  ...props
46
- }: React.ComponentProps<"p">) => react_jsx_runtime39.JSX.Element>;
46
+ }: React.ComponentProps<"p">) => react_jsx_runtime168.JSX.Element>;
47
47
  declare const FieldSeparator: react4.MemoExoticComponent<({
48
48
  children,
49
49
  className,
50
50
  ...props
51
51
  }: React.ComponentProps<"div"> & {
52
52
  children?: React.ReactNode;
53
- }) => react_jsx_runtime39.JSX.Element>;
53
+ }) => react_jsx_runtime168.JSX.Element>;
54
54
  declare const FieldError: react4.MemoExoticComponent<({
55
55
  className,
56
56
  children,
@@ -60,7 +60,7 @@ declare const FieldError: react4.MemoExoticComponent<({
60
60
  errors?: Array<{
61
61
  message?: string;
62
62
  } | undefined>;
63
- }) => react_jsx_runtime39.JSX.Element | null>;
63
+ }) => react_jsx_runtime168.JSX.Element | null>;
64
64
  //#endregion
65
65
  export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
66
66
  //# sourceMappingURL=field.d.cts.map
@@ -1,56 +1,56 @@
1
1
  import { Label } from "./label.mjs";
2
2
  import { VariantProps } from "class-variance-authority";
3
3
  import * as react1 from "react";
4
- import * as react_jsx_runtime97 from "react/jsx-runtime";
5
- import * as class_variance_authority_types3 from "class-variance-authority/types";
4
+ import * as react_jsx_runtime131 from "react/jsx-runtime";
5
+ import * as class_variance_authority_types5 from "class-variance-authority/types";
6
6
 
7
7
  //#region packages/components/ui/field.d.ts
8
8
  declare const FieldSet: react1.MemoExoticComponent<({
9
9
  className,
10
10
  ...props
11
- }: React.ComponentProps<"fieldset">) => react_jsx_runtime97.JSX.Element>;
11
+ }: React.ComponentProps<"fieldset">) => react_jsx_runtime131.JSX.Element>;
12
12
  declare const FieldLegend: react1.MemoExoticComponent<({
13
13
  className,
14
14
  variant,
15
15
  ...props
16
16
  }: React.ComponentProps<"legend"> & {
17
17
  variant?: "legend" | "label";
18
- }) => react_jsx_runtime97.JSX.Element>;
18
+ }) => react_jsx_runtime131.JSX.Element>;
19
19
  declare const FieldGroup: react1.MemoExoticComponent<({
20
20
  className,
21
21
  ...props
22
- }: React.ComponentProps<"div">) => react_jsx_runtime97.JSX.Element>;
22
+ }: React.ComponentProps<"div">) => react_jsx_runtime131.JSX.Element>;
23
23
  declare const fieldVariants: (props?: ({
24
24
  orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
25
- } & class_variance_authority_types3.ClassProp) | undefined) => string;
25
+ } & class_variance_authority_types5.ClassProp) | undefined) => string;
26
26
  declare const Field: react1.MemoExoticComponent<({
27
27
  className,
28
28
  orientation,
29
29
  ...props
30
- }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime97.JSX.Element>;
30
+ }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime131.JSX.Element>;
31
31
  declare const FieldContent: react1.MemoExoticComponent<({
32
32
  className,
33
33
  ...props
34
- }: React.ComponentProps<"div">) => react_jsx_runtime97.JSX.Element>;
34
+ }: React.ComponentProps<"div">) => react_jsx_runtime131.JSX.Element>;
35
35
  declare const FieldLabel: react1.MemoExoticComponent<({
36
36
  className,
37
37
  ...props
38
- }: React.ComponentProps<typeof Label>) => react_jsx_runtime97.JSX.Element>;
38
+ }: React.ComponentProps<typeof Label>) => react_jsx_runtime131.JSX.Element>;
39
39
  declare const FieldTitle: react1.MemoExoticComponent<({
40
40
  className,
41
41
  ...props
42
- }: React.ComponentProps<"div">) => react_jsx_runtime97.JSX.Element>;
42
+ }: React.ComponentProps<"div">) => react_jsx_runtime131.JSX.Element>;
43
43
  declare const FieldDescription: react1.MemoExoticComponent<({
44
44
  className,
45
45
  ...props
46
- }: React.ComponentProps<"p">) => react_jsx_runtime97.JSX.Element>;
46
+ }: React.ComponentProps<"p">) => react_jsx_runtime131.JSX.Element>;
47
47
  declare const FieldSeparator: react1.MemoExoticComponent<({
48
48
  children,
49
49
  className,
50
50
  ...props
51
51
  }: React.ComponentProps<"div"> & {
52
52
  children?: React.ReactNode;
53
- }) => react_jsx_runtime97.JSX.Element>;
53
+ }) => react_jsx_runtime131.JSX.Element>;
54
54
  declare const FieldError: react1.MemoExoticComponent<({
55
55
  className,
56
56
  children,
@@ -60,7 +60,7 @@ declare const FieldError: react1.MemoExoticComponent<({
60
60
  errors?: Array<{
61
61
  message?: string;
62
62
  } | undefined>;
63
- }) => react_jsx_runtime97.JSX.Element | null>;
63
+ }) => react_jsx_runtime131.JSX.Element | null>;
64
64
  //#endregion
65
65
  export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
66
66
  //# sourceMappingURL=field.d.mts.map
@@ -1,3 +1,3 @@
1
- "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-8QOIR433.cjs`);const t=require(`../button-8Snjc8iT.cjs`),n=require(`./progress.cjs`);let r=require(`@customafk/react-toolkit/utils`),i=require(`react`),a=require(`react/jsx-runtime`),o=require(`lucide-react`),s=require(`react-dropzone`);s=e.t(s);let c=require(`@customafk/react-toolkit/hooks/useControllableState`),l=require(`sonner`);function u(e){let{value:t,onValueChange:n,onUpload:u,progresses:p,accept:m={"image/*":[]},maxSize:h=1024*1024*2,maxFileCount:g=1,multiple:_=!1,disabled:v=!1,showText:y=!0,iconSize:b,className:x,...S}=e,[C,w]=(0,c.useControllableState)({prop:t,onChange:n}),T=(0,i.useCallback)((e,t)=>{if(!_&&g===1&&e.length>1){l.toast.error(`Cannot upload more than 1 file at a time`);return}if((C?.length??0)+e.length>g){l.toast.error(`Cannot upload more than ${g} files`);return}let n=e.map(e=>Object.assign(e,{preview:URL.createObjectURL(e)})),r=C?[...C,...n]:n;if(w(r),t.length>0&&t.forEach(({file:e})=>{l.toast.error(`File ${e.name} was rejected`)}),u&&r.length>0&&r.length<=g){let e=r.length>0?`${r.length} files`:`file`;u(r).then(()=>{w([]),(0,l.toast)(`${e} uploaded`)})}},[C,g,_,u,w]);function E(e){if(!C)return;f(C[e])&&URL.revokeObjectURL(C[e].preview);let t=C.filter((t,n)=>n!==e);w(t),n?.(t)}(0,i.useEffect)(()=>()=>{C&&C.forEach(e=>{f(e)&&URL.revokeObjectURL(e.preview)})},[]);let D=v||(C?.length??0)>=g;return(0,a.jsxs)(`div`,{className:`relative flex w-full flex-col gap-6`,children:[(0,a.jsx)(s.default,{onDrop:T,accept:m,maxSize:h,maxFiles:g,multiple:g>1||_,disabled:D,children:({getRootProps:e,getInputProps:t,isDragActive:n})=>(0,a.jsxs)(`div`,{...e(),className:(0,r.cn)(`group`,`border-border-weak`,`hover:bg-border-weak/20`,`relative grid h-52 w-full cursor-pointer place-items-center rounded-lg border-2 border-dashed px-5 py-2.5 text-center transition`,`ring-offset-background`,`focus-visible:ring-primary-weak`,`focus-visible:ring-2`,`focus-visible:ring-offset-2`,`focus-visible:outline-hidden`,n&&`border-border-primary-strong bg-border-weak/40`,D&&`pointer-events-none opacity-60`,x),...S,children:[(0,a.jsx)(`input`,{...t()}),n?(0,a.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[(0,a.jsx)(`div`,{className:`rounded-full border border-dashed p-3`,children:(0,a.jsx)(o.Upload,{className:`text-text-positive-muted size-7`,"aria-hidden":`true`})}),(0,a.jsx)(`p`,{className:`text-text-positive-muted font-medium`,children:`Drop the files here`})]}):(0,a.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[(0,a.jsx)(`div`,{className:`rounded-full border border-dashed p-3`,children:(0,a.jsx)(o.Upload,{size:b||24,className:`text-muted-foreground`,"aria-hidden":`true`})}),y&&(0,a.jsxs)(`div`,{className:`flex flex-col gap-px`,children:[(0,a.jsxs)(`p`,{className:`text-text-positive-weak text-xs font-medium`,children:[`Drag `,`'n'`,` drop files here, or click to select files`]}),(0,a.jsxs)(`p`,{className:`text-text-positive-muted text-xs`,children:[`You can upload`,g>1?` ${g===1/0?`multiple`:g}
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-rdXrPUao.cjs`);const t=require(`../button-C58TS8Pc.cjs`),n=require(`./progress.cjs`);let r=require(`@customafk/react-toolkit/utils`),i=require(`react`),a=require(`react/jsx-runtime`),o=require(`lucide-react`),s=require(`react-dropzone`);s=e.t(s);let c=require(`@customafk/react-toolkit/hooks/useControllableState`),l=require(`sonner`);function u(e){let{value:t,onValueChange:n,onUpload:u,progresses:p,accept:m={"image/*":[]},maxSize:h=1024*1024*2,maxFileCount:g=1,multiple:_=!1,disabled:v=!1,showText:y=!0,iconSize:b,className:x,...S}=e,[C,w]=(0,c.useControllableState)({prop:t,onChange:n}),T=(0,i.useCallback)((e,t)=>{if(!_&&g===1&&e.length>1){l.toast.error(`Cannot upload more than 1 file at a time`);return}if((C?.length??0)+e.length>g){l.toast.error(`Cannot upload more than ${g} files`);return}let n=e.map(e=>Object.assign(e,{preview:URL.createObjectURL(e)})),r=C?[...C,...n]:n;if(w(r),t.length>0&&t.forEach(({file:e})=>{l.toast.error(`File ${e.name} was rejected`)}),u&&r.length>0&&r.length<=g){let e=r.length>0?`${r.length} files`:`file`;u(r).then(()=>{w([]),(0,l.toast)(`${e} uploaded`)})}},[C,g,_,u,w]);function E(e){if(!C)return;f(C[e])&&URL.revokeObjectURL(C[e].preview);let t=C.filter((t,n)=>n!==e);w(t),n?.(t)}(0,i.useEffect)(()=>()=>{C&&C.forEach(e=>{f(e)&&URL.revokeObjectURL(e.preview)})},[]);let D=v||(C?.length??0)>=g;return(0,a.jsxs)(`div`,{className:`relative flex w-full flex-col gap-6`,children:[(0,a.jsx)(s.default,{onDrop:T,accept:m,maxSize:h,maxFiles:g,multiple:g>1||_,disabled:D,children:({getRootProps:e,getInputProps:t,isDragActive:n})=>(0,a.jsxs)(`div`,{...e(),className:(0,r.cn)(`group`,`border-border-weak`,`hover:bg-border-weak/20`,`relative grid h-52 w-full cursor-pointer place-items-center rounded-lg border-2 border-dashed px-5 py-2.5 text-center transition`,`ring-offset-background`,`focus-visible:ring-primary-weak`,`focus-visible:ring-2`,`focus-visible:ring-offset-2`,`focus-visible:outline-hidden`,n&&`border-border-primary-strong bg-border-weak/40`,D&&`pointer-events-none opacity-60`,x),...S,children:[(0,a.jsx)(`input`,{...t()}),n?(0,a.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[(0,a.jsx)(`div`,{className:`rounded-full border border-dashed p-3`,children:(0,a.jsx)(o.Upload,{className:`text-text-positive-muted size-7`,"aria-hidden":`true`})}),(0,a.jsx)(`p`,{className:`text-text-positive-muted font-medium`,children:`Drop the files here`})]}):(0,a.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[(0,a.jsx)(`div`,{className:`rounded-full border border-dashed p-3`,children:(0,a.jsx)(o.Upload,{size:b||24,className:`text-muted-foreground`,"aria-hidden":`true`})}),y&&(0,a.jsxs)(`div`,{className:`flex flex-col gap-px`,children:[(0,a.jsxs)(`p`,{className:`text-text-positive-weak text-xs font-medium`,children:[`Drag `,`'n'`,` drop files here, or click to select files`]}),(0,a.jsxs)(`p`,{className:`text-text-positive-muted text-xs`,children:[`You can upload`,g>1?` ${g===1/0?`multiple`:g}
2
2
  files (up to ${(0,r.formatBytes)(h)} each)`:` a file with ${(0,r.formatBytes)(h)}`]})]})]})]})}),C?.length?(0,a.jsxs)(`div`,{className:`h-fit w-full overflow-y-auto`,children:[(0,a.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-2.5`,children:[(0,a.jsxs)(`div`,{className:`text-text-positive-weak flex items-center gap-1`,children:[(0,a.jsx)(o.Image,{size:16,"aria-hidden":`true`}),(0,a.jsxs)(`p`,{className:`text-sm`,children:[`Ảnh đã tải lên (`,C.length,`)`]})]}),(0,a.jsxs)(`button`,{className:`hover:text-text-positive text-text-positive-muted flex cursor-pointer items-center gap-1 transition-colors duration-200`,onClick:()=>{C&&(C.forEach(e=>{f(e)&&URL.revokeObjectURL(e.preview)}),w([]),n?.([]))},children:[(0,a.jsx)(o.Trash2,{size:16,"aria-hidden":`true`}),(0,a.jsx)(`p`,{className:`text-sm`,children:`Xóa tất cả`})]})]}),(0,a.jsx)(`div`,{className:`flex flex-col gap-2.5`,children:C?.map((e,t)=>(0,a.jsx)(d,{file:e,onRemove:()=>E(t),progress:p?.[e.name]},t))})]}):null]})}function d({file:e,progress:i,onRemove:s}){return(0,a.jsxs)(`div`,{className:`border-border-weak hover:border-border relative flex items-center gap-4 rounded-md border py-2 pr-3 pl-2 shadow-xs transition-colors`,children:[(0,a.jsxs)(`div`,{className:`flex flex-1 gap-2.5`,children:[f(e)?(0,a.jsx)(p,{file:e}):null,(0,a.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[(0,a.jsxs)(`div`,{className:`flex flex-col gap-y-0.5`,children:[(0,a.jsx)(`p`,{className:`text-text-positive line-clamp-1 text-sm`,children:e.name}),(0,a.jsx)(`p`,{className:`text-text-positive-muted text-xs`,children:(0,r.formatBytes)(e.size)})]}),i?(0,a.jsx)(n.Progress,{value:i}):null]})]}),(0,a.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,a.jsxs)(t.t,{type:`button`,variant:`ghost`,color:`secondary`,size:`icon`,className:`size-7`,onClick:s,children:[(0,a.jsx)(o.Trash2,{size:16,className:`text-text-positive-muted`,"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:`sr-only`,children:`Remove file`})]})})]})}function f(e){return`preview`in e&&typeof e.preview==`string`}function p({file:e}){return e.type.startsWith(`image/`)?(0,a.jsx)(`img`,{src:e.preview,className:`border-border aspect-square size-10 shrink-0 rounded border object-cover object-top shadow-sm`}):(0,a.jsx)(o.FileText,{className:`text-text-positive-muted size-10 border`,"aria-hidden":`true`})}exports.FileUploader=u;
3
3
  //# sourceMappingURL=file-uploader.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime196 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime117 from "react/jsx-runtime";
2
2
  import { DropzoneProps } from "react-dropzone";
3
3
 
4
4
  //#region packages/components/ui/file-uploader.d.ts
@@ -72,7 +72,7 @@ interface FileUploaderProps extends React.HTMLAttributes<HTMLDivElement> {
72
72
  showText?: boolean;
73
73
  iconSize?: number;
74
74
  }
75
- declare function FileUploader(props: FileUploaderProps): react_jsx_runtime196.JSX.Element;
75
+ declare function FileUploader(props: FileUploaderProps): react_jsx_runtime117.JSX.Element;
76
76
  //#endregion
77
77
  export { FileUploader };
78
78
  //# sourceMappingURL=file-uploader.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime220 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime162 from "react/jsx-runtime";
2
2
  import { DropzoneProps } from "react-dropzone";
3
3
 
4
4
  //#region packages/components/ui/file-uploader.d.ts
@@ -72,7 +72,7 @@ interface FileUploaderProps extends React.HTMLAttributes<HTMLDivElement> {
72
72
  showText?: boolean;
73
73
  iconSize?: number;
74
74
  }
75
- declare function FileUploader(props: FileUploaderProps): react_jsx_runtime220.JSX.Element;
75
+ declare function FileUploader(props: FileUploaderProps): react_jsx_runtime162.JSX.Element;
76
76
  //#endregion
77
77
  export { FileUploader };
78
78
  //# sourceMappingURL=file-uploader.d.mts.map
@@ -1,3 +1,3 @@
1
- "use client";import"../button.variants-CL2rLGYO.mjs";import{t as e}from"../button-C_yZHudZ.mjs";import{Progress as t}from"./progress.mjs";import{cn as n,formatBytes as r}from"@customafk/react-toolkit/utils";import{useCallback as i,useEffect as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";import{FileText as c,Image as l,Trash2 as u,Upload as d}from"lucide-react";import f from"react-dropzone";import{useControllableState as p}from"@customafk/react-toolkit/hooks/useControllableState";import{toast as m}from"sonner";function h(e){let{value:t,onValueChange:c,onUpload:h,progresses:v,accept:y={"image/*":[]},maxSize:b=1024*1024*2,maxFileCount:x=1,multiple:S=!1,disabled:C=!1,showText:w=!0,iconSize:T,className:E,...D}=e,[O,k]=p({prop:t,onChange:c}),A=i((e,t)=>{if(!S&&x===1&&e.length>1){m.error(`Cannot upload more than 1 file at a time`);return}if((O?.length??0)+e.length>x){m.error(`Cannot upload more than ${x} files`);return}let n=e.map(e=>Object.assign(e,{preview:URL.createObjectURL(e)})),r=O?[...O,...n]:n;if(k(r),t.length>0&&t.forEach(({file:e})=>{m.error(`File ${e.name} was rejected`)}),h&&r.length>0&&r.length<=x){let e=r.length>0?`${r.length} files`:`file`;h(r).then(()=>{k([]),m(`${e} uploaded`)})}},[O,x,S,h,k]);function j(e){if(!O)return;_(O[e])&&URL.revokeObjectURL(O[e].preview);let t=O.filter((t,n)=>n!==e);k(t),c?.(t)}a(()=>()=>{O&&O.forEach(e=>{_(e)&&URL.revokeObjectURL(e.preview)})},[]);let M=C||(O?.length??0)>=x;return s(`div`,{className:`relative flex w-full flex-col gap-6`,children:[o(f,{onDrop:A,accept:y,maxSize:b,maxFiles:x,multiple:x>1||S,disabled:M,children:({getRootProps:e,getInputProps:t,isDragActive:i})=>s(`div`,{...e(),className:n(`group`,`border-border-weak`,`hover:bg-border-weak/20`,`relative grid h-52 w-full cursor-pointer place-items-center rounded-lg border-2 border-dashed px-5 py-2.5 text-center transition`,`ring-offset-background`,`focus-visible:ring-primary-weak`,`focus-visible:ring-2`,`focus-visible:ring-offset-2`,`focus-visible:outline-hidden`,i&&`border-border-primary-strong bg-border-weak/40`,M&&`pointer-events-none opacity-60`,E),...D,children:[o(`input`,{...t()}),i?s(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[o(`div`,{className:`rounded-full border border-dashed p-3`,children:o(d,{className:`text-text-positive-muted size-7`,"aria-hidden":`true`})}),o(`p`,{className:`text-text-positive-muted font-medium`,children:`Drop the files here`})]}):s(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[o(`div`,{className:`rounded-full border border-dashed p-3`,children:o(d,{size:T||24,className:`text-muted-foreground`,"aria-hidden":`true`})}),w&&s(`div`,{className:`flex flex-col gap-px`,children:[s(`p`,{className:`text-text-positive-weak text-xs font-medium`,children:[`Drag `,`'n'`,` drop files here, or click to select files`]}),s(`p`,{className:`text-text-positive-muted text-xs`,children:[`You can upload`,x>1?` ${x===1/0?`multiple`:x}
1
+ "use client";import"../button.variants-DuuH1O0_.mjs";import{t as e}from"../button-DXPSlb3I.mjs";import{Progress as t}from"./progress.mjs";import{cn as n,formatBytes as r}from"@customafk/react-toolkit/utils";import{useCallback as i,useEffect as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";import{FileText as c,Image as l,Trash2 as u,Upload as d}from"lucide-react";import f from"react-dropzone";import{useControllableState as p}from"@customafk/react-toolkit/hooks/useControllableState";import{toast as m}from"sonner";function h(e){let{value:t,onValueChange:c,onUpload:h,progresses:v,accept:y={"image/*":[]},maxSize:b=1024*1024*2,maxFileCount:x=1,multiple:S=!1,disabled:C=!1,showText:w=!0,iconSize:T,className:E,...D}=e,[O,k]=p({prop:t,onChange:c}),A=i((e,t)=>{if(!S&&x===1&&e.length>1){m.error(`Cannot upload more than 1 file at a time`);return}if((O?.length??0)+e.length>x){m.error(`Cannot upload more than ${x} files`);return}let n=e.map(e=>Object.assign(e,{preview:URL.createObjectURL(e)})),r=O?[...O,...n]:n;if(k(r),t.length>0&&t.forEach(({file:e})=>{m.error(`File ${e.name} was rejected`)}),h&&r.length>0&&r.length<=x){let e=r.length>0?`${r.length} files`:`file`;h(r).then(()=>{k([]),m(`${e} uploaded`)})}},[O,x,S,h,k]);function j(e){if(!O)return;_(O[e])&&URL.revokeObjectURL(O[e].preview);let t=O.filter((t,n)=>n!==e);k(t),c?.(t)}a(()=>()=>{O&&O.forEach(e=>{_(e)&&URL.revokeObjectURL(e.preview)})},[]);let M=C||(O?.length??0)>=x;return s(`div`,{className:`relative flex w-full flex-col gap-6`,children:[o(f,{onDrop:A,accept:y,maxSize:b,maxFiles:x,multiple:x>1||S,disabled:M,children:({getRootProps:e,getInputProps:t,isDragActive:i})=>s(`div`,{...e(),className:n(`group`,`border-border-weak`,`hover:bg-border-weak/20`,`relative grid h-52 w-full cursor-pointer place-items-center rounded-lg border-2 border-dashed px-5 py-2.5 text-center transition`,`ring-offset-background`,`focus-visible:ring-primary-weak`,`focus-visible:ring-2`,`focus-visible:ring-offset-2`,`focus-visible:outline-hidden`,i&&`border-border-primary-strong bg-border-weak/40`,M&&`pointer-events-none opacity-60`,E),...D,children:[o(`input`,{...t()}),i?s(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[o(`div`,{className:`rounded-full border border-dashed p-3`,children:o(d,{className:`text-text-positive-muted size-7`,"aria-hidden":`true`})}),o(`p`,{className:`text-text-positive-muted font-medium`,children:`Drop the files here`})]}):s(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[o(`div`,{className:`rounded-full border border-dashed p-3`,children:o(d,{size:T||24,className:`text-muted-foreground`,"aria-hidden":`true`})}),w&&s(`div`,{className:`flex flex-col gap-px`,children:[s(`p`,{className:`text-text-positive-weak text-xs font-medium`,children:[`Drag `,`'n'`,` drop files here, or click to select files`]}),s(`p`,{className:`text-text-positive-muted text-xs`,children:[`You can upload`,x>1?` ${x===1/0?`multiple`:x}
2
2
  files (up to ${r(b)} each)`:` a file with ${r(b)}`]})]})]})]})}),O?.length?s(`div`,{className:`h-fit w-full overflow-y-auto`,children:[s(`div`,{className:`flex items-center justify-between px-3 py-2.5`,children:[s(`div`,{className:`text-text-positive-weak flex items-center gap-1`,children:[o(l,{size:16,"aria-hidden":`true`}),s(`p`,{className:`text-sm`,children:[`Ảnh đã tải lên (`,O.length,`)`]})]}),s(`button`,{className:`hover:text-text-positive text-text-positive-muted flex cursor-pointer items-center gap-1 transition-colors duration-200`,onClick:()=>{O&&(O.forEach(e=>{_(e)&&URL.revokeObjectURL(e.preview)}),k([]),c?.([]))},children:[o(u,{size:16,"aria-hidden":`true`}),o(`p`,{className:`text-sm`,children:`Xóa tất cả`})]})]}),o(`div`,{className:`flex flex-col gap-2.5`,children:O?.map((e,t)=>o(g,{file:e,onRemove:()=>j(t),progress:v?.[e.name]},t))})]}):null]})}function g({file:n,progress:i,onRemove:a}){return s(`div`,{className:`border-border-weak hover:border-border relative flex items-center gap-4 rounded-md border py-2 pr-3 pl-2 shadow-xs transition-colors`,children:[s(`div`,{className:`flex flex-1 gap-2.5`,children:[_(n)?o(v,{file:n}):null,s(`div`,{className:`flex w-full flex-col gap-2`,children:[s(`div`,{className:`flex flex-col gap-y-0.5`,children:[o(`p`,{className:`text-text-positive line-clamp-1 text-sm`,children:n.name}),o(`p`,{className:`text-text-positive-muted text-xs`,children:r(n.size)})]}),i?o(t,{value:i}):null]})]}),o(`div`,{className:`flex items-center gap-2`,children:s(e,{type:`button`,variant:`ghost`,color:`secondary`,size:`icon`,className:`size-7`,onClick:a,children:[o(u,{size:16,className:`text-text-positive-muted`,"aria-hidden":`true`}),o(`span`,{className:`sr-only`,children:`Remove file`})]})})]})}function _(e){return`preview`in e&&typeof e.preview==`string`}function v({file:e}){return e.type.startsWith(`image/`)?o(`img`,{src:e.preview,className:`border-border aspect-square size-10 shrink-0 rounded border object-cover object-top shadow-sm`}):o(c,{className:`text-text-positive-muted size-10 border`,"aria-hidden":`true`})}export{h as FileUploader};
3
3
  //# sourceMappingURL=file-uploader.mjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime33 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime108 from "react/jsx-runtime";
2
2
  import * as react1 from "react";
3
3
  import { Label, Slot } from "radix-ui";
4
4
  import * as react_hook_form0 from "react-hook-form";
@@ -8,7 +8,7 @@ import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
8
8
  declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form0.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
9
9
  declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
10
10
  ...props
11
- }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime33.JSX.Element;
11
+ }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime108.JSX.Element;
12
12
  declare const useFormField: () => {
13
13
  invalid: boolean;
14
14
  isDirty: boolean;
@@ -29,22 +29,22 @@ declare const FormItem: react1.MemoExoticComponent<({
29
29
  ...props
30
30
  }: React.ComponentProps<"div"> & {
31
31
  orientation?: "vertical" | "horizontal" | "responsive";
32
- }) => react_jsx_runtime33.JSX.Element>;
32
+ }) => react_jsx_runtime108.JSX.Element>;
33
33
  declare const FormLabel: react1.MemoExoticComponent<({
34
34
  ...props
35
- }: React.ComponentProps<typeof Label.Root>) => react_jsx_runtime33.JSX.Element>;
35
+ }: React.ComponentProps<typeof Label.Root>) => react_jsx_runtime108.JSX.Element>;
36
36
  declare const FormControl: react1.MemoExoticComponent<({
37
37
  ...props
38
- }: React.ComponentProps<typeof Slot.Slot>) => react_jsx_runtime33.JSX.Element>;
38
+ }: React.ComponentProps<typeof Slot.Slot>) => react_jsx_runtime108.JSX.Element>;
39
39
  declare function FormDescription({
40
40
  className,
41
41
  ...props
42
- }: React.ComponentProps<'p'>): react_jsx_runtime33.JSX.Element;
42
+ }: React.ComponentProps<'p'>): react_jsx_runtime108.JSX.Element;
43
43
  declare function FormMessage({
44
44
  className,
45
45
  children,
46
46
  ...props
47
- }: React.ComponentProps<'p'>): react_jsx_runtime33.JSX.Element;
47
+ }: React.ComponentProps<'p'>): react_jsx_runtime108.JSX.Element;
48
48
  //#endregion
49
49
  export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
50
50
  //# sourceMappingURL=form.d.cts.map
@@ -1,5 +1,5 @@
1
- import * as react23 from "react";
2
- import * as react_jsx_runtime170 from "react/jsx-runtime";
1
+ import * as react11 from "react";
2
+ import * as react_jsx_runtime156 from "react/jsx-runtime";
3
3
  import { Label, Slot } from "radix-ui";
4
4
  import * as react_hook_form0 from "react-hook-form";
5
5
  import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
@@ -8,7 +8,7 @@ import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
8
8
  declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form0.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
9
9
  declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
10
10
  ...props
11
- }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime170.JSX.Element;
11
+ }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime156.JSX.Element;
12
12
  declare const useFormField: () => {
13
13
  invalid: boolean;
14
14
  isDirty: boolean;
@@ -23,28 +23,28 @@ declare const useFormField: () => {
23
23
  formDescriptionId: string;
24
24
  formMessageId: string;
25
25
  };
26
- declare const FormItem: react23.MemoExoticComponent<({
26
+ declare const FormItem: react11.MemoExoticComponent<({
27
27
  className,
28
28
  orientation,
29
29
  ...props
30
30
  }: React.ComponentProps<"div"> & {
31
31
  orientation?: "vertical" | "horizontal" | "responsive";
32
- }) => react_jsx_runtime170.JSX.Element>;
33
- declare const FormLabel: react23.MemoExoticComponent<({
32
+ }) => react_jsx_runtime156.JSX.Element>;
33
+ declare const FormLabel: react11.MemoExoticComponent<({
34
34
  ...props
35
- }: React.ComponentProps<typeof Label.Root>) => react_jsx_runtime170.JSX.Element>;
36
- declare const FormControl: react23.MemoExoticComponent<({
35
+ }: React.ComponentProps<typeof Label.Root>) => react_jsx_runtime156.JSX.Element>;
36
+ declare const FormControl: react11.MemoExoticComponent<({
37
37
  ...props
38
- }: React.ComponentProps<typeof Slot.Slot>) => react_jsx_runtime170.JSX.Element>;
38
+ }: React.ComponentProps<typeof Slot.Slot>) => react_jsx_runtime156.JSX.Element>;
39
39
  declare function FormDescription({
40
40
  className,
41
41
  ...props
42
- }: React.ComponentProps<'p'>): react_jsx_runtime170.JSX.Element;
42
+ }: React.ComponentProps<'p'>): react_jsx_runtime156.JSX.Element;
43
43
  declare function FormMessage({
44
44
  className,
45
45
  children,
46
46
  ...props
47
- }: React.ComponentProps<'p'>): react_jsx_runtime170.JSX.Element;
47
+ }: React.ComponentProps<'p'>): react_jsx_runtime156.JSX.Element;
48
48
  //#endregion
49
49
  export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
50
50
  //# sourceMappingURL=form.d.mts.map
@@ -1,19 +1,19 @@
1
- import * as react_jsx_runtime107 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime114 from "react/jsx-runtime";
2
2
  import { HoverCard as HoverCard$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/hover-card.d.ts
5
5
  declare function HoverCard({
6
6
  ...props
7
- }: React.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime107.JSX.Element;
7
+ }: React.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime114.JSX.Element;
8
8
  declare function HoverCardTrigger({
9
9
  ...props
10
- }: React.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime107.JSX.Element;
10
+ }: React.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime114.JSX.Element;
11
11
  declare function HoverCardContent({
12
12
  className,
13
13
  align,
14
14
  sideOffset,
15
15
  ...props
16
- }: React.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime107.JSX.Element;
16
+ }: React.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime114.JSX.Element;
17
17
  //#endregion
18
18
  export { HoverCard, HoverCardContent, HoverCardTrigger };
19
19
  //# sourceMappingURL=hover-card.d.cts.map
@@ -1,19 +1,19 @@
1
- import * as react_jsx_runtime120 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime113 from "react/jsx-runtime";
2
2
  import { HoverCard as HoverCard$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/hover-card.d.ts
5
5
  declare function HoverCard({
6
6
  ...props
7
- }: React.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime120.JSX.Element;
7
+ }: React.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime113.JSX.Element;
8
8
  declare function HoverCardTrigger({
9
9
  ...props
10
- }: React.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime120.JSX.Element;
10
+ }: React.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime113.JSX.Element;
11
11
  declare function HoverCardContent({
12
12
  className,
13
13
  align,
14
14
  sideOffset,
15
15
  ...props
16
- }: React.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime120.JSX.Element;
16
+ }: React.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime113.JSX.Element;
17
17
  //#endregion
18
18
  export { HoverCard, HoverCardContent, HoverCardTrigger };
19
19
  //# sourceMappingURL=hover-card.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime165 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime118 from "react/jsx-runtime";
2
2
  import { OTPInput } from "input-otp";
3
3
 
4
4
  //#region packages/components/ui/input-otp.d.ts
@@ -8,21 +8,21 @@ declare function InputOTP({
8
8
  ...props
9
9
  }: React.ComponentProps<typeof OTPInput> & {
10
10
  containerClassName?: string;
11
- }): react_jsx_runtime165.JSX.Element;
11
+ }): react_jsx_runtime118.JSX.Element;
12
12
  declare function InputOTPGroup({
13
13
  className,
14
14
  ...props
15
- }: React.ComponentProps<'div'>): react_jsx_runtime165.JSX.Element;
15
+ }: React.ComponentProps<'div'>): react_jsx_runtime118.JSX.Element;
16
16
  declare function InputOTPSlot({
17
17
  index,
18
18
  className,
19
19
  ...props
20
20
  }: React.ComponentProps<'div'> & {
21
21
  index: number;
22
- }): react_jsx_runtime165.JSX.Element;
22
+ }): react_jsx_runtime118.JSX.Element;
23
23
  declare function InputOTPSeparator({
24
24
  ...props
25
- }: React.ComponentProps<'div'>): react_jsx_runtime165.JSX.Element;
25
+ }: React.ComponentProps<'div'>): react_jsx_runtime118.JSX.Element;
26
26
  //#endregion
27
27
  export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
28
28
  //# sourceMappingURL=input-otp.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime244 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime167 from "react/jsx-runtime";
2
2
  import { OTPInput } from "input-otp";
3
3
 
4
4
  //#region packages/components/ui/input-otp.d.ts
@@ -8,21 +8,21 @@ declare function InputOTP({
8
8
  ...props
9
9
  }: React.ComponentProps<typeof OTPInput> & {
10
10
  containerClassName?: string;
11
- }): react_jsx_runtime244.JSX.Element;
11
+ }): react_jsx_runtime167.JSX.Element;
12
12
  declare function InputOTPGroup({
13
13
  className,
14
14
  ...props
15
- }: React.ComponentProps<'div'>): react_jsx_runtime244.JSX.Element;
15
+ }: React.ComponentProps<'div'>): react_jsx_runtime167.JSX.Element;
16
16
  declare function InputOTPSlot({
17
17
  index,
18
18
  className,
19
19
  ...props
20
20
  }: React.ComponentProps<'div'> & {
21
21
  index: number;
22
- }): react_jsx_runtime244.JSX.Element;
22
+ }): react_jsx_runtime167.JSX.Element;
23
23
  declare function InputOTPSeparator({
24
24
  ...props
25
- }: React.ComponentProps<'div'>): react_jsx_runtime244.JSX.Element;
25
+ }: React.ComponentProps<'div'>): react_jsx_runtime167.JSX.Element;
26
26
  //#endregion
27
27
  export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
28
28
  //# sourceMappingURL=input-otp.d.mts.map
@@ -1,2 +1,2 @@
1
- import { n as InputVariantProps, r as inputVariants, t as Input } from "../input-DqoSygui.cjs";
1
+ import { n as InputVariantProps, r as inputVariants, t as Input } from "../input-D0enZTLC.cjs";
2
2
  export { Input, InputVariantProps, inputVariants };
@@ -1,2 +1,2 @@
1
- import { n as InputVariantProps, r as inputVariants, t as Input } from "../input-DERBzcV_.mjs";
1
+ import { n as InputVariantProps, r as inputVariants, t as Input } from "../input-DkvHV_UU.mjs";
2
2
  export { Input, InputVariantProps, inputVariants };
@@ -1,12 +1,12 @@
1
- import { t as Input } from "../../input-DqoSygui.cjs";
2
- import * as react_jsx_runtime99 from "react/jsx-runtime";
1
+ import { t as Input } from "../../input-D0enZTLC.cjs";
2
+ import * as react_jsx_runtime32 from "react/jsx-runtime";
3
3
 
4
4
  //#region packages/components/ui/inputs/search-input.d.ts
5
5
  type Props = React.ComponentPropsWithoutRef<typeof Input>;
6
6
  declare const SearchInput: ({
7
7
  className,
8
8
  ...rest
9
- }: Props) => react_jsx_runtime99.JSX.Element;
9
+ }: Props) => react_jsx_runtime32.JSX.Element;
10
10
  //#endregion
11
11
  export { SearchInput };
12
12
  //# sourceMappingURL=search-input.d.cts.map
@@ -1,12 +1,12 @@
1
- import { t as Input } from "../../input-DERBzcV_.mjs";
2
- import * as react_jsx_runtime29 from "react/jsx-runtime";
1
+ import { t as Input } from "../../input-DkvHV_UU.mjs";
2
+ import * as react_jsx_runtime64 from "react/jsx-runtime";
3
3
 
4
4
  //#region packages/components/ui/inputs/search-input.d.ts
5
5
  type Props = React.ComponentPropsWithoutRef<typeof Input>;
6
6
  declare const SearchInput: ({
7
7
  className,
8
8
  ...rest
9
- }: Props) => react_jsx_runtime29.JSX.Element;
9
+ }: Props) => react_jsx_runtime64.JSX.Element;
10
10
  //#endregion
11
11
  export { SearchInput };
12
12
  //# sourceMappingURL=search-input.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { Separator } from "./separator.cjs";
2
- import * as react_jsx_runtime154 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime143 from "react/jsx-runtime";
3
3
  import * as class_variance_authority_types6 from "class-variance-authority/types";
4
4
  import { VariantProps } from "class-variance-authority";
5
5
 
@@ -7,13 +7,13 @@ import { VariantProps } from "class-variance-authority";
7
7
  declare function ItemGroup({
8
8
  className,
9
9
  ...props
10
- }: React.ComponentProps<'div'>): react_jsx_runtime154.JSX.Element;
10
+ }: React.ComponentProps<'div'>): react_jsx_runtime143.JSX.Element;
11
11
  declare function ItemSeparator({
12
12
  className,
13
13
  ...props
14
- }: React.ComponentProps<typeof Separator>): react_jsx_runtime154.JSX.Element;
14
+ }: React.ComponentProps<typeof Separator>): react_jsx_runtime143.JSX.Element;
15
15
  declare const itemVariants: (props?: ({
16
- variant?: "muted" | "default" | "outline" | null | undefined;
16
+ variant?: "default" | "outline" | "muted" | null | undefined;
17
17
  size?: "sm" | "default" | null | undefined;
18
18
  } & class_variance_authority_types6.ClassProp) | undefined) => string;
19
19
  declare function Item({
@@ -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_runtime154.JSX.Element;
27
+ }): react_jsx_runtime143.JSX.Element;
28
28
  declare const itemMediaVariants: (props?: ({
29
29
  variant?: "default" | "image" | "icon" | null | undefined;
30
30
  } & class_variance_authority_types6.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_runtime154.JSX.Element;
35
+ }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>): react_jsx_runtime143.JSX.Element;
36
36
  declare function ItemContent({
37
37
  className,
38
38
  ...props
39
- }: React.ComponentProps<'div'>): react_jsx_runtime154.JSX.Element;
39
+ }: React.ComponentProps<'div'>): react_jsx_runtime143.JSX.Element;
40
40
  declare function ItemTitle({
41
41
  className,
42
42
  ...props
43
- }: React.ComponentProps<'div'>): react_jsx_runtime154.JSX.Element;
43
+ }: React.ComponentProps<'div'>): react_jsx_runtime143.JSX.Element;
44
44
  declare function ItemDescription({
45
45
  className,
46
46
  ...props
47
- }: React.ComponentProps<'p'>): react_jsx_runtime154.JSX.Element;
47
+ }: React.ComponentProps<'p'>): react_jsx_runtime143.JSX.Element;
48
48
  declare function ItemActions({
49
49
  className,
50
50
  ...props
51
- }: React.ComponentProps<'div'>): react_jsx_runtime154.JSX.Element;
51
+ }: React.ComponentProps<'div'>): react_jsx_runtime143.JSX.Element;
52
52
  declare function ItemHeader({
53
53
  className,
54
54
  ...props
55
- }: React.ComponentProps<'div'>): react_jsx_runtime154.JSX.Element;
55
+ }: React.ComponentProps<'div'>): react_jsx_runtime143.JSX.Element;
56
56
  declare function ItemFooter({
57
57
  className,
58
58
  ...props
59
- }: React.ComponentProps<'div'>): react_jsx_runtime154.JSX.Element;
59
+ }: React.ComponentProps<'div'>): react_jsx_runtime143.JSX.Element;
60
60
  //#endregion
61
61
  export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
62
62
  //# sourceMappingURL=item.d.cts.map