@moduix/react 2.5.1 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/README.md +24 -3
  2. package/THIRD_PARTY_NOTICES.md +49 -0
  3. package/dist/components/accordion/Accordion.js +7 -8
  4. package/dist/components/alert/Alert.js +6 -7
  5. package/dist/components/alert/Alert_module.css +3 -16
  6. package/dist/components/angle-slider/AngleSlider.d.ts +5 -11
  7. package/dist/components/angle-slider/AngleSlider.js +17 -59
  8. package/dist/components/aspect-ratio/AspectRatio.js +1 -2
  9. package/dist/components/aspect-ratio/AspectRatio_module.css +0 -13
  10. package/dist/components/avatar/Avatar.d.ts +3 -6
  11. package/dist/components/avatar/Avatar.js +7 -50
  12. package/dist/components/avatar/Avatar.module.js +1 -2
  13. package/dist/components/avatar/Avatar_module.css +0 -6
  14. package/dist/components/badge/Badge.d.ts +2 -2
  15. package/dist/components/badge/Badge.js +5 -10
  16. package/dist/components/badge/Badge_module.css +7 -14
  17. package/dist/components/bleed/Bleed.js +1 -2
  18. package/dist/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
  19. package/dist/components/breadcrumbs/Breadcrumbs.js +16 -32
  20. package/dist/components/breadcrumbs/Breadcrumbs_module.css +12 -14
  21. package/dist/components/button/Button.d.ts +4 -4
  22. package/dist/components/button/Button.js +1 -2
  23. package/dist/components/button/Button_module.css +2 -7
  24. package/dist/components/card/Card.d.ts +15 -15
  25. package/dist/components/card/Card.js +10 -11
  26. package/dist/components/card/Card_module.css +1 -17
  27. package/dist/components/carousel/Carousel.js +12 -13
  28. package/dist/components/carousel/Carousel_module.css +7 -0
  29. package/dist/components/chart/Chart.d.ts +9 -8
  30. package/dist/components/chart/Chart.js +7 -8
  31. package/dist/components/chart/Chart_module.css +0 -2
  32. package/dist/components/checkbox/Checkbox.d.ts +3 -2
  33. package/dist/components/checkbox/Checkbox.js +12 -35
  34. package/dist/components/clipboard/Clipboard.js +8 -9
  35. package/dist/components/close-button/CloseButton.js +1 -2
  36. package/dist/components/close-button/CloseButton_module.css +1 -10
  37. package/dist/components/collapsible/Collapsible.js +6 -9
  38. package/dist/components/collapsible/Collapsible_module.css +2 -4
  39. package/dist/components/color-picker/ColorPicker.d.ts +4 -3
  40. package/dist/components/color-picker/ColorPicker.js +32 -45
  41. package/dist/components/color-picker/ColorPicker_module.css +0 -1
  42. package/dist/components/combobox/Combobox.d.ts +5 -5
  43. package/dist/components/combobox/Combobox.js +20 -29
  44. package/dist/components/combobox/Combobox_module.css +0 -1
  45. package/dist/components/command-palette/CommandPalette.d.ts +7 -18
  46. package/dist/components/command-palette/CommandPalette.js +51 -78
  47. package/dist/components/command-palette/CommandPalette_module.css +11 -18
  48. package/dist/components/container/Container.js +1 -2
  49. package/dist/components/date-input/DateInput.d.ts +7 -9
  50. package/dist/components/date-input/DateInput.js +14 -44
  51. package/dist/components/date-input/DateInput_module.css +0 -1
  52. package/dist/components/date-picker/DatePicker.d.ts +1 -1
  53. package/dist/components/date-picker/DatePicker.js +34 -43
  54. package/dist/components/date-picker/DatePicker.module.js +1 -1
  55. package/dist/components/date-picker/DatePicker_module.css +5 -2
  56. package/dist/components/dialog/Dialog.d.ts +1 -1
  57. package/dist/components/dialog/Dialog.js +11 -12
  58. package/dist/components/drawer/Drawer.d.ts +6 -3
  59. package/dist/components/drawer/Drawer.js +33 -24
  60. package/dist/components/editable/Editable.d.ts +1 -1
  61. package/dist/components/editable/Editable.js +10 -11
  62. package/dist/components/empty/Empty.js +6 -7
  63. package/dist/components/field/Field.js +10 -11
  64. package/dist/components/fieldset/Fieldset.js +5 -6
  65. package/dist/components/file-upload/FileUpload.d.ts +3 -2
  66. package/dist/components/file-upload/FileUpload.js +28 -55
  67. package/dist/components/file-upload/FileUpload_module.css +4 -13
  68. package/dist/components/floating-panel/FloatingPanel.d.ts +2 -2
  69. package/dist/components/floating-panel/FloatingPanel.js +14 -15
  70. package/dist/components/floating-panel/FloatingPanel_module.css +4 -17
  71. package/dist/components/heading/Heading.js +1 -2
  72. package/dist/components/highlight/Highlight.js +1 -2
  73. package/dist/components/hover-card/HoverCard.d.ts +2 -1
  74. package/dist/components/hover-card/HoverCard.js +15 -6
  75. package/dist/components/hover-card/HoverCard.module.js +1 -0
  76. package/dist/components/hover-card/HoverCard_module.css +18 -3
  77. package/dist/components/image/Image.js +1 -2
  78. package/dist/components/image-cropper/ImageCropper.d.ts +1 -1
  79. package/dist/components/image-cropper/ImageCropper.js +7 -8
  80. package/dist/components/input/Input.d.ts +4 -4
  81. package/dist/components/input/Input.js +1 -2
  82. package/dist/components/input-group/InputGroup.d.ts +5 -5
  83. package/dist/components/input-group/InputGroup.js +5 -6
  84. package/dist/components/json-tree-view/JsonTreeView.js +3 -4
  85. package/dist/components/json-tree-view/JsonTreeView_module.css +26 -10
  86. package/dist/components/kbd/Kbd.js +2 -3
  87. package/dist/components/lightbox/Lightbox.d.ts +1 -1
  88. package/dist/components/lightbox/Lightbox.js +13 -14
  89. package/dist/components/lightbox/Lightbox_module.css +0 -2
  90. package/dist/components/list/List.js +2 -3
  91. package/dist/components/listbox/Listbox.d.ts +5 -5
  92. package/dist/components/listbox/Listbox.js +19 -25
  93. package/dist/components/listbox/Listbox.module.js +2 -2
  94. package/dist/components/listbox/Listbox_module.css +3 -13
  95. package/dist/components/marquee/Marquee.js +6 -7
  96. package/dist/components/menu/Menu.d.ts +2 -1
  97. package/dist/components/menu/Menu.js +34 -41
  98. package/dist/components/menu/Menu.module.js +1 -1
  99. package/dist/components/menu/Menu_module.css +8 -8
  100. package/dist/components/native-select/NativeSelect.js +2 -3
  101. package/dist/components/native-select/NativeSelect_module.css +0 -1
  102. package/dist/components/navigation-menu/NavigationMenu.js +17 -36
  103. package/dist/components/navigation-menu/NavigationMenu.module.js +2 -3
  104. package/dist/components/navigation-menu/NavigationMenu_module.css +15 -32
  105. package/dist/components/number-input/NumberInput.js +9 -10
  106. package/dist/components/pagination/Pagination.js +17 -20
  107. package/dist/components/pagination/Pagination_module.css +1 -5
  108. package/dist/components/password-input/PasswordInput.js +7 -8
  109. package/dist/components/pin-input/PinInput.d.ts +3 -2
  110. package/dist/components/pin-input/PinInput.js +13 -54
  111. package/dist/components/popover/Popover.d.ts +5 -3
  112. package/dist/components/popover/Popover.js +16 -17
  113. package/dist/components/progress-circular/ProgressCircular.js +8 -9
  114. package/dist/components/progress-circular/ProgressCircular.module.js +1 -3
  115. package/dist/components/progress-circular/ProgressCircular_module.css +0 -10
  116. package/dist/components/progress-linear/ProgressLinear.js +7 -8
  117. package/dist/components/progress-linear/ProgressLinear.module.js +1 -5
  118. package/dist/components/progress-linear/ProgressLinear_module.css +0 -20
  119. package/dist/components/qr-code/QrCode.js +6 -7
  120. package/dist/components/radio-group/RadioGroup.d.ts +1 -0
  121. package/dist/components/radio-group/RadioGroup.js +13 -27
  122. package/dist/components/radio-group/RadioGroup_module.css +0 -1
  123. package/dist/components/rating-group/RatingGroup.d.ts +1 -0
  124. package/dist/components/rating-group/RatingGroup.js +12 -29
  125. package/dist/components/rating-group/RatingGroup_module.css +1 -1
  126. package/dist/components/scroll-area/ScrollArea.js +7 -8
  127. package/dist/components/segment-group/SegmentGroup.d.ts +1 -0
  128. package/dist/components/segment-group/SegmentGroup.js +16 -30
  129. package/dist/components/segment-group/SegmentGroup_module.css +4 -0
  130. package/dist/components/select/Select.d.ts +4 -7
  131. package/dist/components/select/Select.js +36 -86
  132. package/dist/components/select/Select.module.js +1 -1
  133. package/dist/components/select/Select_module.css +4 -31
  134. package/dist/components/separator/Separator.d.ts +6 -6
  135. package/dist/components/separator/Separator.js +1 -2
  136. package/dist/components/sidebar/Sidebar.d.ts +16 -16
  137. package/dist/components/sidebar/Sidebar.js +35 -48
  138. package/dist/components/sidebar/Sidebar.module.js +2 -3
  139. package/dist/components/sidebar/Sidebar_module.css +62 -158
  140. package/dist/components/signature-pad/SignaturePad.d.ts +5 -8
  141. package/dist/components/signature-pad/SignaturePad.js +17 -46
  142. package/dist/components/signature-pad/SignaturePad_module.css +0 -1
  143. package/dist/components/simple-grid/SimpleGrid.js +13 -8
  144. package/dist/components/skeleton/Skeleton.d.ts +2 -2
  145. package/dist/components/skeleton/Skeleton.js +1 -2
  146. package/dist/components/slider/Slider.d.ts +2 -2
  147. package/dist/components/slider/Slider.js +18 -32
  148. package/dist/components/spinner/Spinner.d.ts +2 -2
  149. package/dist/components/spinner/Spinner.js +1 -2
  150. package/dist/components/split-button/SplitButton.d.ts +4 -4
  151. package/dist/components/split-button/SplitButton.js +11 -8
  152. package/dist/components/splitter/Splitter.js +5 -6
  153. package/dist/components/splitter/Splitter_module.css +2 -10
  154. package/dist/components/stack/Stack.d.ts +6 -6
  155. package/dist/components/stack/Stack.js +4 -5
  156. package/dist/components/stack/Stack_module.css +1 -1
  157. package/dist/components/steps/Steps.js +12 -13
  158. package/dist/components/steps/Steps_module.css +2 -3
  159. package/dist/components/swap/Swap.js +3 -4
  160. package/dist/components/switch/Switch.d.ts +3 -2
  161. package/dist/components/switch/Switch.js +12 -35
  162. package/dist/components/switch/Switch_module.css +0 -1
  163. package/dist/components/table/Table.d.ts +5 -5
  164. package/dist/components/table/Table.js +12 -13
  165. package/dist/components/tabs/Tabs.js +6 -7
  166. package/dist/components/tabs/Tabs_module.css +5 -10
  167. package/dist/components/tag/Tag.js +5 -6
  168. package/dist/components/tag/Tag_module.css +2 -4
  169. package/dist/components/tags-input/TagsInput.d.ts +3 -3
  170. package/dist/components/tags-input/TagsInput.js +21 -75
  171. package/dist/components/tags-input/TagsInput_module.css +0 -1
  172. package/dist/components/text/Text.js +1 -2
  173. package/dist/components/textarea/Textarea.js +1 -2
  174. package/dist/components/timer/Timer.js +7 -8
  175. package/dist/components/toast/Toast.d.ts +1 -1
  176. package/dist/components/toast/Toast.js +7 -8
  177. package/dist/components/toast/Toast_module.css +1 -2
  178. package/dist/components/toc/Toc.js +10 -11
  179. package/dist/components/toc/Toc_module.css +2 -2
  180. package/dist/components/toggle/Toggle.js +2 -3
  181. package/dist/components/toggle-group/ToggleGroup.d.ts +1 -1
  182. package/dist/components/toggle-group/ToggleGroup.js +3 -4
  183. package/dist/components/tooltip/Tooltip.d.ts +1 -1
  184. package/dist/components/tooltip/Tooltip.js +6 -7
  185. package/dist/components/tooltip/Tooltip_module.css +1 -1
  186. package/dist/components/tour/Tour.d.ts +1 -1
  187. package/dist/components/tour/Tour.js +14 -15
  188. package/dist/components/tree-view/TreeView.d.ts +4 -4
  189. package/dist/components/tree-view/TreeView.js +17 -18
  190. package/dist/components/tree-view/TreeView_module.css +39 -12
  191. package/dist/components/typeset/Typeset.js +2 -3
  192. package/dist/components/typeset/Typeset_module.css +300 -159
  193. package/dist/internal/icons/ui/Icons.d.ts +9 -30
  194. package/dist/internal/icons/ui/Icons.js +67 -807
  195. package/dist/internal/icons/ui/index.d.ts +1 -1
  196. package/dist/styles/animations.css +310 -0
  197. package/dist/styles/style.css +168 -2
  198. package/package.json +23 -23
  199. package/dist/internal/normalizeClassName.d.ts +0 -1
  200. package/dist/internal/normalizeClassName.js +0 -2
@@ -4,14 +4,13 @@ import { Editable, useEditable, useEditableContext } from "@ark-ui/react/editabl
4
4
  import { clsx } from "clsx";
5
5
  import { forwardRef } from "react";
6
6
  import { CheckIcon, CloseIcon, PencilIcon } from "../../internal/icons/ui/index.js";
7
- import { normalizeClassName } from "../../internal/normalizeClassName.js";
8
7
  import Editable_module from "./Editable.module.js";
9
8
  const Editable_EditableRoot = /*#__PURE__*/ forwardRef(function({ activationMode = 'dblclick', className, ...props }, ref) {
10
9
  return /*#__PURE__*/ jsx(Editable.Root, {
11
10
  ref: ref,
12
11
  "data-slot": "editable-root",
13
12
  activationMode: activationMode,
14
- className: clsx(Editable_module.root, normalizeClassName(className)),
13
+ className: clsx(Editable_module.root, className),
15
14
  ...props
16
15
  });
17
16
  });
@@ -19,7 +18,7 @@ const Editable_EditableRootProvider = /*#__PURE__*/ forwardRef(function({ classN
19
18
  return /*#__PURE__*/ jsx(Editable.RootProvider, {
20
19
  ref: ref,
21
20
  "data-slot": "editable-root-provider",
22
- className: clsx(Editable_module.root, normalizeClassName(className)),
21
+ className: clsx(Editable_module.root, className),
23
22
  ...props
24
23
  });
25
24
  });
@@ -27,7 +26,7 @@ const Editable_EditableLabel = /*#__PURE__*/ forwardRef(function({ className, ..
27
26
  return /*#__PURE__*/ jsx(Editable.Label, {
28
27
  ref: ref,
29
28
  "data-slot": "editable-label",
30
- className: clsx(Editable_module.label, normalizeClassName(className)),
29
+ className: clsx(Editable_module.label, className),
31
30
  ...props
32
31
  });
33
32
  });
@@ -35,7 +34,7 @@ const Editable_EditableArea = /*#__PURE__*/ forwardRef(function({ className, ...
35
34
  return /*#__PURE__*/ jsx(Editable.Area, {
36
35
  ref: ref,
37
36
  "data-slot": "editable-area",
38
- className: clsx(Editable_module.area, normalizeClassName(className)),
37
+ className: clsx(Editable_module.area, className),
39
38
  ...props
40
39
  });
41
40
  });
@@ -43,7 +42,7 @@ const Editable_EditableInput = /*#__PURE__*/ forwardRef(function({ className, ..
43
42
  return /*#__PURE__*/ jsx(Editable.Input, {
44
43
  ref: ref,
45
44
  "data-slot": "editable-input",
46
- className: clsx(Editable_module.input, normalizeClassName(className)),
45
+ className: clsx(Editable_module.input, className),
47
46
  ...props
48
47
  });
49
48
  });
@@ -51,7 +50,7 @@ const Editable_EditablePreview = /*#__PURE__*/ forwardRef(function({ className,
51
50
  return /*#__PURE__*/ jsx(Editable.Preview, {
52
51
  ref: ref,
53
52
  "data-slot": "editable-preview",
54
- className: clsx(Editable_module.preview, normalizeClassName(className)),
53
+ className: clsx(Editable_module.preview, className),
55
54
  ...props
56
55
  });
57
56
  });
@@ -59,7 +58,7 @@ const Editable_EditableControl = /*#__PURE__*/ forwardRef(function({ className,
59
58
  return /*#__PURE__*/ jsx(Editable.Control, {
60
59
  ref: ref,
61
60
  "data-slot": "editable-control",
62
- className: clsx(Editable_module.control, normalizeClassName(className)),
61
+ className: clsx(Editable_module.control, className),
63
62
  ...props
64
63
  });
65
64
  });
@@ -67,7 +66,7 @@ const Editable_EditableEditTrigger = /*#__PURE__*/ forwardRef(function({ classNa
67
66
  return /*#__PURE__*/ jsx(Editable.EditTrigger, {
68
67
  ref: ref,
69
68
  "data-slot": "editable-edit-trigger",
70
- className: clsx(Editable_module.trigger, normalizeClassName(className)),
69
+ className: clsx(Editable_module.trigger, className),
71
70
  ...props,
72
71
  children: children ?? /*#__PURE__*/ jsx(PencilIcon, {})
73
72
  });
@@ -76,7 +75,7 @@ const Editable_EditableSubmitTrigger = /*#__PURE__*/ forwardRef(function({ class
76
75
  return /*#__PURE__*/ jsx(Editable.SubmitTrigger, {
77
76
  ref: ref,
78
77
  "data-slot": "editable-submit-trigger",
79
- className: clsx(Editable_module.trigger, normalizeClassName(className)),
78
+ className: clsx(Editable_module.trigger, className),
80
79
  ...props,
81
80
  children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
82
81
  });
@@ -85,7 +84,7 @@ const Editable_EditableCancelTrigger = /*#__PURE__*/ forwardRef(function({ class
85
84
  return /*#__PURE__*/ jsx(Editable.CancelTrigger, {
86
85
  ref: ref,
87
86
  "data-slot": "editable-cancel-trigger",
88
- className: clsx(Editable_module.trigger, normalizeClassName(className)),
87
+ className: clsx(Editable_module.trigger, className),
89
88
  ...props,
90
89
  children: children ?? /*#__PURE__*/ jsx(CloseIcon, {})
91
90
  });
@@ -2,7 +2,6 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { ark } from "@ark-ui/react/factory";
3
3
  import { clsx } from "clsx";
4
4
  import { forwardRef } from "react";
5
- import { normalizeClassName } from "../../internal/normalizeClassName.js";
6
5
  import Empty_module from "./Empty.module.js";
7
6
  const Empty_EmptyRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
8
7
  return /*#__PURE__*/ jsx(ark.div, {
@@ -10,7 +9,7 @@ const Empty_EmptyRoot = /*#__PURE__*/ forwardRef(function({ className, ...props
10
9
  "data-scope": "empty",
11
10
  "data-part": "root",
12
11
  "data-slot": "empty-root",
13
- className: clsx(Empty_module.root, normalizeClassName(className)),
12
+ className: clsx(Empty_module.root, className),
14
13
  ...props
15
14
  });
16
15
  });
@@ -20,7 +19,7 @@ const Empty_EmptyIcon = /*#__PURE__*/ forwardRef(function({ className, ...props
20
19
  "data-scope": "empty",
21
20
  "data-part": "icon",
22
21
  "data-slot": "empty-icon",
23
- className: clsx(Empty_module.icon, normalizeClassName(className)),
22
+ className: clsx(Empty_module.icon, className),
24
23
  ...props
25
24
  });
26
25
  });
@@ -30,7 +29,7 @@ const Empty_EmptyContent = /*#__PURE__*/ forwardRef(function({ className, ...pro
30
29
  "data-scope": "empty",
31
30
  "data-part": "content",
32
31
  "data-slot": "empty-content",
33
- className: clsx(Empty_module.content, normalizeClassName(className)),
32
+ className: clsx(Empty_module.content, className),
34
33
  ...props
35
34
  });
36
35
  });
@@ -40,7 +39,7 @@ const Empty_EmptyTitle = /*#__PURE__*/ forwardRef(function({ className, ...props
40
39
  "data-scope": "empty",
41
40
  "data-part": "title",
42
41
  "data-slot": "empty-title",
43
- className: clsx(Empty_module.title, normalizeClassName(className)),
42
+ className: clsx(Empty_module.title, className),
44
43
  ...props
45
44
  });
46
45
  });
@@ -50,7 +49,7 @@ const Empty_EmptyDescription = /*#__PURE__*/ forwardRef(function({ className, ..
50
49
  "data-scope": "empty",
51
50
  "data-part": "description",
52
51
  "data-slot": "empty-description",
53
- className: clsx(Empty_module.description, normalizeClassName(className)),
52
+ className: clsx(Empty_module.description, className),
54
53
  ...props
55
54
  });
56
55
  });
@@ -60,7 +59,7 @@ const Empty_EmptyActions = /*#__PURE__*/ forwardRef(function({ className, ...pro
60
59
  "data-scope": "empty",
61
60
  "data-part": "actions",
62
61
  "data-slot": "empty-actions",
63
- className: clsx(Empty_module.actions, normalizeClassName(className)),
62
+ className: clsx(Empty_module.actions, className),
64
63
  ...props
65
64
  });
66
65
  });
@@ -3,13 +3,12 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { Field, useField, useFieldContext } from "@ark-ui/react/field";
4
4
  import { clsx } from "clsx";
5
5
  import { forwardRef } from "react";
6
- import { normalizeClassName } from "../../internal/normalizeClassName.js";
7
6
  import Field_module from "./Field.module.js";
8
7
  const Field_FieldRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
9
8
  return /*#__PURE__*/ jsx(Field.Root, {
10
9
  ref: ref,
11
10
  "data-slot": "field-root",
12
- className: clsx(Field_module.root, normalizeClassName(className)),
11
+ className: clsx(Field_module.root, className),
13
12
  ...props
14
13
  });
15
14
  });
@@ -17,7 +16,7 @@ const Field_FieldRootProvider = /*#__PURE__*/ forwardRef(function({ className, .
17
16
  return /*#__PURE__*/ jsx(Field.RootProvider, {
18
17
  ref: ref,
19
18
  "data-slot": "field-root-provider",
20
- className: clsx(Field_module.root, normalizeClassName(className)),
19
+ className: clsx(Field_module.root, className),
21
20
  ...props
22
21
  });
23
22
  });
@@ -27,7 +26,7 @@ const Field_FieldItem = /*#__PURE__*/ forwardRef(function({ className, children,
27
26
  children: /*#__PURE__*/ jsx("div", {
28
27
  ref: ref,
29
28
  "data-slot": "field-item",
30
- className: clsx(Field_module.item, normalizeClassName(className)),
29
+ className: clsx(Field_module.item, className),
31
30
  ...props,
32
31
  children: children
33
32
  })
@@ -37,7 +36,7 @@ const Field_FieldLabel = /*#__PURE__*/ forwardRef(function({ className, ...props
37
36
  return /*#__PURE__*/ jsx(Field.Label, {
38
37
  ref: ref,
39
38
  "data-slot": "field-label",
40
- className: clsx(Field_module.label, normalizeClassName(className)),
39
+ className: clsx(Field_module.label, className),
41
40
  ...props
42
41
  });
43
42
  });
@@ -45,7 +44,7 @@ const Field_FieldInput = /*#__PURE__*/ forwardRef(function({ className, ...props
45
44
  return /*#__PURE__*/ jsx(Field.Input, {
46
45
  ref: ref,
47
46
  "data-slot": "field-input",
48
- className: clsx(Field_module.control, normalizeClassName(className)),
47
+ className: clsx(Field_module.control, className),
49
48
  ...props
50
49
  });
51
50
  });
@@ -53,7 +52,7 @@ const Field_FieldTextarea = /*#__PURE__*/ forwardRef(function({ className, ...pr
53
52
  return /*#__PURE__*/ jsx(Field.Textarea, {
54
53
  ref: ref,
55
54
  "data-slot": "field-textarea",
56
- className: clsx(Field_module.control, Field_module.textarea, normalizeClassName(className)),
55
+ className: clsx(Field_module.control, Field_module.textarea, className),
57
56
  ...props
58
57
  });
59
58
  });
@@ -61,7 +60,7 @@ const Field_FieldSelect = /*#__PURE__*/ forwardRef(function({ className, ...prop
61
60
  return /*#__PURE__*/ jsx(Field.Select, {
62
61
  ref: ref,
63
62
  "data-slot": "field-select",
64
- className: clsx(Field_module.control, normalizeClassName(className)),
63
+ className: clsx(Field_module.control, className),
65
64
  ...props
66
65
  });
67
66
  });
@@ -69,7 +68,7 @@ const Field_FieldHelperText = /*#__PURE__*/ forwardRef(function({ className, ...
69
68
  return /*#__PURE__*/ jsx(Field.HelperText, {
70
69
  ref: ref,
71
70
  "data-slot": "field-helper-text",
72
- className: clsx(Field_module.helperText, normalizeClassName(className)),
71
+ className: clsx(Field_module.helperText, className),
73
72
  ...props
74
73
  });
75
74
  });
@@ -77,7 +76,7 @@ const Field_FieldErrorText = /*#__PURE__*/ forwardRef(function({ className, ...p
77
76
  return /*#__PURE__*/ jsx(Field.ErrorText, {
78
77
  ref: ref,
79
78
  "data-slot": "field-error-text",
80
- className: clsx(Field_module.errorText, normalizeClassName(className)),
79
+ className: clsx(Field_module.errorText, className),
81
80
  ...props
82
81
  });
83
82
  });
@@ -85,7 +84,7 @@ const Field_FieldRequiredIndicator = /*#__PURE__*/ forwardRef(function({ classNa
85
84
  return /*#__PURE__*/ jsx(Field.RequiredIndicator, {
86
85
  ref: ref,
87
86
  "data-slot": "field-required-indicator",
88
- className: clsx(Field_module.requiredIndicator, normalizeClassName(className)),
87
+ className: clsx(Field_module.requiredIndicator, className),
89
88
  ...props
90
89
  });
91
90
  });
@@ -3,13 +3,12 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { Fieldset, useFieldset, useFieldsetContext } from "@ark-ui/react/fieldset";
4
4
  import { clsx } from "clsx";
5
5
  import { forwardRef } from "react";
6
- import { normalizeClassName } from "../../internal/normalizeClassName.js";
7
6
  import Fieldset_module from "./Fieldset.module.js";
8
7
  const Fieldset_FieldsetRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
9
8
  return /*#__PURE__*/ jsx(Fieldset.Root, {
10
9
  ref: ref,
11
10
  "data-slot": "fieldset-root",
12
- className: clsx(Fieldset_module.root, normalizeClassName(className)),
11
+ className: clsx(Fieldset_module.root, className),
13
12
  ...props
14
13
  });
15
14
  });
@@ -17,7 +16,7 @@ const Fieldset_FieldsetRootProvider = /*#__PURE__*/ forwardRef(function({ classN
17
16
  return /*#__PURE__*/ jsx(Fieldset.RootProvider, {
18
17
  ref: ref,
19
18
  "data-slot": "fieldset-root-provider",
20
- className: clsx(Fieldset_module.root, normalizeClassName(className)),
19
+ className: clsx(Fieldset_module.root, className),
21
20
  ...props
22
21
  });
23
22
  });
@@ -25,7 +24,7 @@ const Fieldset_FieldsetLegend = /*#__PURE__*/ forwardRef(function({ className, .
25
24
  return /*#__PURE__*/ jsx(Fieldset.Legend, {
26
25
  ref: ref,
27
26
  "data-slot": "fieldset-legend",
28
- className: clsx(Fieldset_module.legend, normalizeClassName(className)),
27
+ className: clsx(Fieldset_module.legend, className),
29
28
  ...props
30
29
  });
31
30
  });
@@ -33,7 +32,7 @@ const Fieldset_FieldsetHelperText = /*#__PURE__*/ forwardRef(function({ classNam
33
32
  return /*#__PURE__*/ jsx(Fieldset.HelperText, {
34
33
  ref: ref,
35
34
  "data-slot": "fieldset-helper-text",
36
- className: clsx(Fieldset_module.helperText, normalizeClassName(className)),
35
+ className: clsx(Fieldset_module.helperText, className),
37
36
  ...props
38
37
  });
39
38
  });
@@ -41,7 +40,7 @@ const Fieldset_FieldsetErrorText = /*#__PURE__*/ forwardRef(function({ className
41
40
  return /*#__PURE__*/ jsx(Fieldset.ErrorText, {
42
41
  ref: ref,
43
42
  "data-slot": "fieldset-error-text",
44
- className: clsx(Fieldset_module.errorText, normalizeClassName(className)),
43
+ className: clsx(Fieldset_module.errorText, className),
45
44
  ...props
46
45
  });
47
46
  });
@@ -1,6 +1,6 @@
1
1
  import type { HTMLArkProps } from '@ark-ui/react/factory';
2
2
  import { FileUpload as FileUploadPrimitive, useFileUpload, useFileUploadContext } from '@ark-ui/react/file-upload';
3
- import type { ComponentProps, ReactNode } from 'react';
3
+ import type { ComponentProps } from 'react';
4
4
  declare function FileUploadDropzoneIcon({ className, children, ...props }: HTMLArkProps<'span'>): import("react").JSX.Element;
5
5
  declare function FileUploadItemPreviewIcon({ className, ...props }: ComponentProps<'svg'>): import("react").JSX.Element;
6
6
  declare function FileUploadItemMetadata({ file, className, ...props }: HTMLArkProps<'div'> & {
@@ -10,7 +10,8 @@ declare function FileUploadItems(): import("react").JSX.Element[];
10
10
  declare const FileUpload: import("react").ForwardRefExoticComponent<Omit<FileUploadPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
11
11
  Root: import("react").ForwardRefExoticComponent<Omit<FileUploadPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
12
12
  RootProvider: import("react").ForwardRefExoticComponent<Omit<FileUploadPrimitive.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
13
- Context: (props: FileUploadPrimitive.ContextProps) => ReactNode;
13
+ Context: (props: FileUploadPrimitive.ContextProps) => import("react").ReactNode;
14
+ HiddenInput: import("react").ForwardRefExoticComponent<FileUploadPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
14
15
  Label: import("react").ForwardRefExoticComponent<Omit<FileUploadPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
15
16
  Dropzone: import("react").ForwardRefExoticComponent<Omit<FileUploadPrimitive.DropzoneProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
16
17
  DropzoneIcon: typeof FileUploadDropzoneIcon;
@@ -1,38 +1,33 @@
1
1
  "use client";
2
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { ark } from "@ark-ui/react/factory";
4
4
  import { FileUpload, useFileUpload, useFileUploadContext } from "@ark-ui/react/file-upload";
5
5
  import { clsx } from "clsx";
6
- import { Children, cloneElement, forwardRef } from "react";
6
+ import { forwardRef } from "react";
7
7
  import { CloseIcon, FileIcon, TrashIcon, UploadIcon } from "../../internal/icons/ui/index.js";
8
- import { normalizeClassName } from "../../internal/normalizeClassName.js";
9
8
  import { CloseButton } from "../close-button/index.js";
10
9
  import FileUpload_module from "./FileUpload.module.js";
11
- const FileUpload_FileUploadRoot = /*#__PURE__*/ forwardRef(function({ asChild, children, className, ...props }, ref) {
10
+ const FileUpload_FileUploadRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
12
11
  return /*#__PURE__*/ jsx(FileUpload.Root, {
13
12
  ref: ref,
14
- asChild: asChild,
15
13
  "data-slot": "file-upload-root",
16
- className: clsx(FileUpload_module.root, normalizeClassName(className)),
17
- ...props,
18
- children: withHiddenInput(children, asChild)
14
+ className: clsx(FileUpload_module.root, className),
15
+ ...props
19
16
  });
20
17
  });
21
- const FileUpload_FileUploadRootProvider = /*#__PURE__*/ forwardRef(function({ asChild, children, className, ...props }, ref) {
18
+ const FileUpload_FileUploadRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
22
19
  return /*#__PURE__*/ jsx(FileUpload.RootProvider, {
23
20
  ref: ref,
24
- asChild: asChild,
25
21
  "data-slot": "file-upload-root-provider",
26
- className: clsx(FileUpload_module.root, normalizeClassName(className)),
27
- ...props,
28
- children: withHiddenInput(children, asChild)
22
+ className: clsx(FileUpload_module.root, className),
23
+ ...props
29
24
  });
30
25
  });
31
26
  const FileUpload_FileUploadLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
32
27
  return /*#__PURE__*/ jsx(FileUpload.Label, {
33
28
  ref: ref,
34
29
  "data-slot": "file-upload-label",
35
- className: clsx(FileUpload_module.label, normalizeClassName(className)),
30
+ className: clsx(FileUpload_module.label, className),
36
31
  ...props
37
32
  });
38
33
  });
@@ -40,7 +35,7 @@ const FileUpload_FileUploadDropzone = /*#__PURE__*/ forwardRef(function({ classN
40
35
  return /*#__PURE__*/ jsx(FileUpload.Dropzone, {
41
36
  ref: ref,
42
37
  "data-slot": "file-upload-dropzone",
43
- className: clsx(FileUpload_module.dropzone, normalizeClassName(className)),
38
+ className: clsx(FileUpload_module.dropzone, className),
44
39
  ...props
45
40
  });
46
41
  });
@@ -48,7 +43,7 @@ function FileUploadDropzoneIcon({ className, children, ...props }) {
48
43
  return /*#__PURE__*/ jsx(ark.span, {
49
44
  "aria-hidden": "true",
50
45
  "data-slot": "file-upload-dropzone-icon",
51
- className: clsx(FileUpload_module.dropzoneIcon, normalizeClassName(className)),
46
+ className: clsx(FileUpload_module.dropzoneIcon, className),
52
47
  ...props,
53
48
  children: children ?? /*#__PURE__*/ jsx(UploadIcon, {})
54
49
  });
@@ -57,28 +52,15 @@ const FileUpload_FileUploadTrigger = /*#__PURE__*/ forwardRef(function({ classNa
57
52
  return /*#__PURE__*/ jsx(FileUpload.Trigger, {
58
53
  ref: ref,
59
54
  "data-slot": "file-upload-trigger",
60
- className: clsx(FileUpload_module.trigger, normalizeClassName(className)),
55
+ className: clsx(FileUpload_module.trigger, className),
61
56
  ...props
62
57
  });
63
58
  });
64
- function withHiddenInput(children, asChild) {
65
- const hiddenInput = /*#__PURE__*/ jsx(FileUpload.HiddenInput, {
66
- "data-slot": "file-upload-hidden-input"
67
- });
68
- if (!asChild) return /*#__PURE__*/ jsxs(Fragment, {
69
- children: [
70
- children,
71
- hiddenInput
72
- ]
73
- });
74
- const child = Children.only(children);
75
- return /*#__PURE__*/ cloneElement(child, {}, child.props.children, hiddenInput);
76
- }
77
59
  const FileUpload_FileUploadItemGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
78
60
  return /*#__PURE__*/ jsx(FileUpload.ItemGroup, {
79
61
  ref: ref,
80
62
  "data-slot": "file-upload-item-group",
81
- className: clsx(FileUpload_module.itemGroup, normalizeClassName(className)),
63
+ className: clsx(FileUpload_module.itemGroup, className),
82
64
  ...props
83
65
  });
84
66
  });
@@ -86,7 +68,7 @@ const FileUpload_FileUploadItem = /*#__PURE__*/ forwardRef(function({ className,
86
68
  return /*#__PURE__*/ jsx(FileUpload.Item, {
87
69
  ref: ref,
88
70
  "data-slot": "file-upload-item",
89
- className: clsx(FileUpload_module.item, normalizeClassName(className)),
71
+ className: clsx(FileUpload_module.item, className),
90
72
  ...props
91
73
  });
92
74
  });
@@ -94,7 +76,7 @@ const FileUpload_FileUploadItemPreview = /*#__PURE__*/ forwardRef(function({ cla
94
76
  return /*#__PURE__*/ jsx(FileUpload.ItemPreview, {
95
77
  ref: ref,
96
78
  "data-slot": "file-upload-item-preview",
97
- className: clsx(FileUpload_module.itemPreview, normalizeClassName(className)),
79
+ className: clsx(FileUpload_module.itemPreview, className),
98
80
  ...props
99
81
  });
100
82
  });
@@ -102,14 +84,14 @@ const FileUpload_FileUploadItemPreviewImage = /*#__PURE__*/ forwardRef(function(
102
84
  return /*#__PURE__*/ jsx(FileUpload.ItemPreviewImage, {
103
85
  ref: ref,
104
86
  "data-slot": "file-upload-item-preview-image",
105
- className: clsx(FileUpload_module.itemPreviewImage, normalizeClassName(className)),
87
+ className: clsx(FileUpload_module.itemPreviewImage, className),
106
88
  ...props
107
89
  });
108
90
  });
109
91
  function FileUploadItemPreviewIcon({ className, ...props }) {
110
92
  return /*#__PURE__*/ jsx(FileIcon, {
111
93
  "data-slot": "file-upload-item-preview-icon",
112
- className: clsx(FileUpload_module.itemPreviewIcon, normalizeClassName(className)),
94
+ className: clsx(FileUpload_module.itemPreviewIcon, className),
113
95
  ...props
114
96
  });
115
97
  }
@@ -124,7 +106,7 @@ const FileUpload_FileUploadItemName = /*#__PURE__*/ forwardRef(function({ classN
124
106
  return /*#__PURE__*/ jsx(FileUpload.ItemName, {
125
107
  ref: ref,
126
108
  "data-slot": "file-upload-item-name",
127
- className: clsx(FileUpload_module.itemName, normalizeClassName(className)),
109
+ className: clsx(FileUpload_module.itemName, className),
128
110
  ...props
129
111
  });
130
112
  });
@@ -132,14 +114,14 @@ const FileUpload_FileUploadItemSizeText = /*#__PURE__*/ forwardRef(function({ cl
132
114
  return /*#__PURE__*/ jsx(FileUpload.ItemSizeText, {
133
115
  ref: ref,
134
116
  "data-slot": "file-upload-item-size-text",
135
- className: clsx(FileUpload_module.itemSizeText, normalizeClassName(className)),
117
+ className: clsx(FileUpload_module.itemSizeText, className),
136
118
  ...props
137
119
  });
138
120
  });
139
121
  function FileUploadItemMetadata({ file, className, ...props }) {
140
122
  return /*#__PURE__*/ jsxs(ark.div, {
141
123
  "data-slot": "file-upload-item-metadata",
142
- className: clsx(FileUpload_module.itemMetadata, normalizeClassName(className)),
124
+ className: clsx(FileUpload_module.itemMetadata, className),
143
125
  ...props,
144
126
  children: [
145
127
  /*#__PURE__*/ jsx(ark.span, {
@@ -153,7 +135,7 @@ const FileUpload_FileUploadItemDeleteTrigger = /*#__PURE__*/ forwardRef(function
153
135
  return /*#__PURE__*/ jsx(FileUpload.ItemDeleteTrigger, {
154
136
  ref: ref,
155
137
  "data-slot": "file-upload-item-delete-trigger",
156
- className: clsx(FileUpload_module.itemDeleteTrigger, normalizeClassName(className)),
138
+ className: clsx(FileUpload_module.itemDeleteTrigger, className),
157
139
  ...props,
158
140
  children: children ?? /*#__PURE__*/ jsx(TrashIcon, {})
159
141
  });
@@ -163,10 +145,8 @@ function FileUploadItems() {
163
145
  return acceptedFiles.map((file)=>/*#__PURE__*/ jsxs(FileUpload_FileUploadItem, {
164
146
  file: file,
165
147
  children: [
166
- isImageFile(file) ? /*#__PURE__*/ jsx(FileUpload_FileUploadItemPreview, {
167
- children: /*#__PURE__*/ jsx(FileUpload_FileUploadItemPreviewImage, {})
168
- }) : /*#__PURE__*/ jsx(FileUpload_FileUploadItemPreview, {
169
- children: /*#__PURE__*/ jsx(FileUploadItemPreviewIcon, {})
148
+ /*#__PURE__*/ jsx(FileUpload_FileUploadItemPreview, {
149
+ children: isImageFile(file) ? /*#__PURE__*/ jsx(FileUpload_FileUploadItemPreviewImage, {}) : /*#__PURE__*/ jsx(FileUploadItemPreviewIcon, {})
170
150
  }),
171
151
  /*#__PURE__*/ jsx(FileUpload_FileUploadItemName, {}),
172
152
  /*#__PURE__*/ jsx(FileUploadItemMetadata, {
@@ -180,24 +160,16 @@ function FileUploadItems() {
180
160
  }
181
161
  const FileUpload_FileUploadClearTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }, ref) {
182
162
  const clearLabel = ariaLabel ?? (null == ariaLabelledBy ? 'Clear files' : void 0);
183
- const triggerClassName = clsx(FileUpload_module.clearTrigger, null != children && FileUpload_module.clearTriggerWithContent, normalizeClassName(className));
184
- if (asChild) return /*#__PURE__*/ jsx(FileUpload.ClearTrigger, {
185
- ref: ref,
186
- asChild: true,
187
- "data-slot": "file-upload-clear-trigger",
188
- className: triggerClassName,
189
- "aria-label": clearLabel,
190
- "aria-labelledby": ariaLabelledBy,
191
- ...props,
192
- children: children
193
- });
163
+ const triggerClassName = clsx(FileUpload_module.clearTrigger, null != children && FileUpload_module.clearTriggerWithContent, className);
194
164
  return /*#__PURE__*/ jsx(FileUpload.ClearTrigger, {
195
165
  ref: ref,
196
166
  asChild: true,
197
167
  "data-slot": "file-upload-clear-trigger",
198
168
  className: triggerClassName,
169
+ "aria-label": asChild ? clearLabel : void 0,
170
+ "aria-labelledby": asChild ? ariaLabelledBy : void 0,
199
171
  ...props,
200
- children: /*#__PURE__*/ jsx(CloseButton.Root, {
172
+ children: asChild ? children : /*#__PURE__*/ jsx(CloseButton.Root, {
201
173
  "aria-label": clearLabel,
202
174
  "aria-labelledby": ariaLabelledBy,
203
175
  children: children ?? /*#__PURE__*/ jsx(CloseIcon, {})
@@ -208,6 +180,7 @@ const FileUpload_FileUpload = Object.assign(FileUpload_FileUploadRoot, {
208
180
  Root: FileUpload_FileUploadRoot,
209
181
  RootProvider: FileUpload_FileUploadRootProvider,
210
182
  Context: FileUpload.Context,
183
+ HiddenInput: FileUpload.HiddenInput,
211
184
  Label: FileUpload_FileUploadLabel,
212
185
  Dropzone: FileUpload_FileUploadDropzone,
213
186
  DropzoneIcon: FileUploadDropzoneIcon,
@@ -241,10 +241,6 @@
241
241
  overflow: hidden;
242
242
  }
243
243
 
244
- .item-ZdUuIF:has([data-slot="file-upload-item-preview"]) .itemName-LSyV_n {
245
- grid-column: 2;
246
- }
247
-
248
244
  .itemSizeText-euWMRd {
249
245
  color: var(--moduix-file-upload-item-size-color, var(--moduix-color-muted-foreground));
250
246
  font-size: var(--moduix-file-upload-item-size-font-size, var(--moduix-text-xs));
@@ -252,14 +248,6 @@
252
248
  grid-column: 1;
253
249
  }
254
250
 
255
- .item-ZdUuIF:has([data-slot="file-upload-item-preview"]) .itemSizeText-euWMRd {
256
- grid-column: 2;
257
- }
258
-
259
- .item-ZdUuIF:has([data-slot="file-upload-item-preview"]) .itemMetadata-EmEskK {
260
- grid-column: 2;
261
- }
262
-
263
251
  .itemDeleteTrigger-DgPANB {
264
252
  box-sizing: border-box;
265
253
  width: var(--moduix-file-upload-action-size, var(--moduix-size-sm));
@@ -312,6 +300,10 @@
312
300
  grid-row: 1 / span 2;
313
301
  }
314
302
 
303
+ .item-ZdUuIF:has([data-slot="file-upload-item-preview"]) .itemName-LSyV_n, .item-ZdUuIF:has([data-slot="file-upload-item-preview"]) .itemSizeText-euWMRd, .item-ZdUuIF:has([data-slot="file-upload-item-preview"]) .itemMetadata-EmEskK {
304
+ grid-column: 2;
305
+ }
306
+
315
307
  .item-ZdUuIF:has([data-slot="file-upload-item-preview"]) .itemDeleteTrigger-DgPANB {
316
308
  grid-column: 3;
317
309
  }
@@ -353,7 +345,6 @@
353
345
  --moduix-close-button-color: var(--moduix-file-upload-clear-trigger-color, var(--moduix-color-muted-foreground));
354
346
  --moduix-close-button-color-hover: var(--moduix-file-upload-action-color-hover, var(--moduix-color-foreground));
355
347
  --moduix-close-button-icon-size: var(--moduix-file-upload-action-icon-size, var(--moduix-spacing-4));
356
- --moduix-close-button-transition: var(--moduix-file-upload-transition, var(--moduix-transition-default));
357
348
  --moduix-close-button-focus-ring-width: var(--moduix-file-upload-focus-ring-width, var(--moduix-focus-ring-width, var(--moduix-border-width-md)));
358
349
  --moduix-close-button-focus-ring-color: var(--moduix-file-upload-focus-ring-color, var(--moduix-color-ring));
359
350
  --moduix-close-button-focus-ring-offset: var(--moduix-file-upload-focus-ring-offset, var(--moduix-border-width-sm));
@@ -1,7 +1,7 @@
1
1
  import { FloatingPanel as FloatingPanelPrimitive, useFloatingPanel, useFloatingPanelContext, type FloatingPanelResizeTriggerAxis } from '@ark-ui/react/floating-panel';
2
2
  import type { ComponentProps } from 'react';
3
- import { type OverlayPortalProps } from '../../internal/overlayPortal';
4
- declare const resizeTriggerAxes: ("s" | "w" | "e" | "n" | "sw" | "nw" | "se" | "ne")[];
3
+ import { type OverlayPortalProps } from '../../internal/overlayPortal.js';
4
+ declare const resizeTriggerAxes: ("e" | "n" | "ne" | "nw" | "s" | "se" | "sw" | "w")[];
5
5
  type FloatingPanelRootProps = ComponentProps<typeof FloatingPanelPrimitive.Root> & OverlayPortalProps;
6
6
  type FloatingPanelRootProviderProps = ComponentProps<typeof FloatingPanelPrimitive.RootProvider> & OverlayPortalProps;
7
7
  declare function FloatingPanelRoot({ closeOnEscape, lazyMount, persistRect, portalled, portalRef, unmountOnExit, ...props }: FloatingPanelRootProps): import("react").JSX.Element;