@moduix/react 2.5.1 → 2.7.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 (204) hide show
  1. package/README.md +24 -3
  2. package/THIRD_PARTY_NOTICES.md +49 -0
  3. package/dist/components/accordion/Accordion.js +20 -21
  4. package/dist/components/alert/Alert.js +18 -19
  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 +29 -71
  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 +14 -57
  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 -8
  24. package/dist/components/card/Card.d.ts +15 -15
  25. package/dist/components/card/Card.js +30 -31
  26. package/dist/components/card/Card_module.css +2 -18
  27. package/dist/components/carousel/Carousel.d.ts +1 -1
  28. package/dist/components/carousel/Carousel.js +34 -35
  29. package/dist/components/carousel/Carousel_module.css +7 -0
  30. package/dist/components/chart/Chart.d.ts +9 -8
  31. package/dist/components/chart/Chart.js +21 -22
  32. package/dist/components/chart/Chart_module.css +0 -2
  33. package/dist/components/checkbox/Checkbox.d.ts +3 -2
  34. package/dist/components/checkbox/Checkbox.js +20 -43
  35. package/dist/components/clipboard/Clipboard.js +27 -27
  36. package/dist/components/close-button/CloseButton.js +1 -2
  37. package/dist/components/close-button/CloseButton_module.css +1 -10
  38. package/dist/components/collapsible/Collapsible.js +17 -20
  39. package/dist/components/collapsible/Collapsible_module.css +2 -4
  40. package/dist/components/color-picker/ColorPicker.d.ts +4 -3
  41. package/dist/components/color-picker/ColorPicker.js +79 -92
  42. package/dist/components/color-picker/ColorPicker_module.css +0 -1
  43. package/dist/components/combobox/Combobox.d.ts +5 -5
  44. package/dist/components/combobox/Combobox.js +51 -60
  45. package/dist/components/combobox/Combobox_module.css +0 -1
  46. package/dist/components/command-palette/CommandPalette.d.ts +7 -18
  47. package/dist/components/command-palette/CommandPalette.js +99 -126
  48. package/dist/components/command-palette/CommandPalette_module.css +11 -18
  49. package/dist/components/container/Container.js +1 -2
  50. package/dist/components/container/Container_module.css +1 -1
  51. package/dist/components/date-input/DateInput.d.ts +7 -9
  52. package/dist/components/date-input/DateInput.js +24 -54
  53. package/dist/components/date-input/DateInput_module.css +0 -1
  54. package/dist/components/date-picker/DatePicker.d.ts +1 -1
  55. package/dist/components/date-picker/DatePicker.js +84 -93
  56. package/dist/components/date-picker/DatePicker.module.js +1 -1
  57. package/dist/components/date-picker/DatePicker_module.css +5 -2
  58. package/dist/components/dialog/Dialog.d.ts +1 -1
  59. package/dist/components/dialog/Dialog.js +31 -32
  60. package/dist/components/drawer/Drawer.d.ts +6 -3
  61. package/dist/components/drawer/Drawer.js +63 -54
  62. package/dist/components/editable/Editable.d.ts +1 -1
  63. package/dist/components/editable/Editable.js +27 -28
  64. package/dist/components/empty/Empty.js +18 -19
  65. package/dist/components/field/Field.js +29 -30
  66. package/dist/components/fieldset/Fieldset.js +15 -16
  67. package/dist/components/file-upload/FileUpload.d.ts +3 -2
  68. package/dist/components/file-upload/FileUpload.js +52 -79
  69. package/dist/components/file-upload/FileUpload_module.css +4 -13
  70. package/dist/components/floating-panel/FloatingPanel.d.ts +3 -3
  71. package/dist/components/floating-panel/FloatingPanel.js +36 -37
  72. package/dist/components/floating-panel/FloatingPanel_module.css +4 -17
  73. package/dist/components/floating-panel/index.d.ts +1 -0
  74. package/dist/components/heading/Heading.js +1 -2
  75. package/dist/components/highlight/Highlight.js +1 -2
  76. package/dist/components/hover-card/HoverCard.d.ts +3 -2
  77. package/dist/components/hover-card/HoverCard.js +24 -15
  78. package/dist/components/hover-card/HoverCard.module.js +1 -0
  79. package/dist/components/hover-card/HoverCard_module.css +18 -3
  80. package/dist/components/hover-card/index.d.ts +1 -0
  81. package/dist/components/image/Image.js +1 -2
  82. package/dist/components/image-cropper/ImageCropper.d.ts +1 -1
  83. package/dist/components/image-cropper/ImageCropper.js +21 -22
  84. package/dist/components/input/Input.d.ts +4 -4
  85. package/dist/components/input/Input.js +1 -2
  86. package/dist/components/input-group/InputGroup.d.ts +5 -5
  87. package/dist/components/input-group/InputGroup.js +5 -6
  88. package/dist/components/json-tree-view/JsonTreeView.js +3 -4
  89. package/dist/components/json-tree-view/JsonTreeView_module.css +26 -10
  90. package/dist/components/kbd/Kbd.js +6 -7
  91. package/dist/components/lightbox/Lightbox.d.ts +1 -1
  92. package/dist/components/lightbox/Lightbox.js +38 -39
  93. package/dist/components/lightbox/Lightbox_module.css +0 -2
  94. package/dist/components/list/List.js +2 -3
  95. package/dist/components/listbox/Listbox.d.ts +5 -5
  96. package/dist/components/listbox/Listbox.js +50 -56
  97. package/dist/components/listbox/Listbox.module.js +2 -2
  98. package/dist/components/listbox/Listbox_module.css +3 -13
  99. package/dist/components/marquee/Marquee.js +18 -19
  100. package/dist/components/menu/Menu.d.ts +2 -1
  101. package/dist/components/menu/Menu.js +72 -79
  102. package/dist/components/menu/Menu.module.js +1 -1
  103. package/dist/components/menu/Menu_module.css +8 -8
  104. package/dist/components/native-select/NativeSelect.js +2 -3
  105. package/dist/components/native-select/NativeSelect_module.css +0 -1
  106. package/dist/components/navigation-menu/NavigationMenu.js +39 -58
  107. package/dist/components/navigation-menu/NavigationMenu.module.js +2 -3
  108. package/dist/components/navigation-menu/NavigationMenu_module.css +15 -32
  109. package/dist/components/number-input/NumberInput.js +25 -26
  110. package/dist/components/pagination/Pagination.js +28 -31
  111. package/dist/components/pagination/Pagination_module.css +1 -5
  112. package/dist/components/password-input/PasswordInput.js +20 -21
  113. package/dist/components/pin-input/PinInput.d.ts +3 -2
  114. package/dist/components/pin-input/PinInput.js +20 -61
  115. package/dist/components/popover/Popover.d.ts +5 -3
  116. package/dist/components/popover/Popover.js +41 -42
  117. package/dist/components/progress-circular/ProgressCircular.js +24 -25
  118. package/dist/components/progress-circular/ProgressCircular.module.js +1 -3
  119. package/dist/components/progress-circular/ProgressCircular_module.css +0 -10
  120. package/dist/components/progress-linear/ProgressLinear.js +21 -22
  121. package/dist/components/progress-linear/ProgressLinear.module.js +1 -5
  122. package/dist/components/progress-linear/ProgressLinear_module.css +0 -20
  123. package/dist/components/qr-code/QrCode.js +18 -19
  124. package/dist/components/radio-group/RadioGroup.d.ts +1 -0
  125. package/dist/components/radio-group/RadioGroup.js +25 -39
  126. package/dist/components/radio-group/RadioGroup_module.css +0 -1
  127. package/dist/components/rating-group/RatingGroup.d.ts +1 -0
  128. package/dist/components/rating-group/RatingGroup.js +19 -36
  129. package/dist/components/rating-group/RatingGroup_module.css +1 -1
  130. package/dist/components/scroll-area/ScrollArea.js +7 -8
  131. package/dist/components/segment-group/SegmentGroup.d.ts +1 -0
  132. package/dist/components/segment-group/SegmentGroup.js +28 -42
  133. package/dist/components/segment-group/SegmentGroup_module.css +4 -0
  134. package/dist/components/select/Select.d.ts +4 -7
  135. package/dist/components/select/Select.js +69 -119
  136. package/dist/components/select/Select.module.js +1 -1
  137. package/dist/components/select/Select_module.css +4 -31
  138. package/dist/components/separator/Separator.d.ts +6 -6
  139. package/dist/components/separator/Separator.js +1 -2
  140. package/dist/components/sidebar/Sidebar.d.ts +16 -16
  141. package/dist/components/sidebar/Sidebar.js +81 -86
  142. package/dist/components/sidebar/Sidebar.module.js +2 -3
  143. package/dist/components/sidebar/Sidebar_module.css +62 -158
  144. package/dist/components/signature-pad/SignaturePad.d.ts +5 -8
  145. package/dist/components/signature-pad/SignaturePad.js +28 -57
  146. package/dist/components/signature-pad/SignaturePad_module.css +0 -1
  147. package/dist/components/simple-grid/SimpleGrid.js +13 -8
  148. package/dist/components/skeleton/Skeleton.d.ts +2 -2
  149. package/dist/components/skeleton/Skeleton.js +1 -2
  150. package/dist/components/slider/Slider.d.ts +2 -2
  151. package/dist/components/slider/Slider.js +38 -52
  152. package/dist/components/spinner/Spinner.d.ts +2 -2
  153. package/dist/components/spinner/Spinner.js +1 -2
  154. package/dist/components/split-button/SplitButton.d.ts +7 -7
  155. package/dist/components/split-button/SplitButton.js +25 -17
  156. package/dist/components/splitter/Splitter.js +14 -15
  157. package/dist/components/splitter/Splitter_module.css +2 -10
  158. package/dist/components/stack/Stack.d.ts +6 -6
  159. package/dist/components/stack/Stack.js +4 -5
  160. package/dist/components/stack/Stack_module.css +1 -1
  161. package/dist/components/steps/Steps.js +35 -36
  162. package/dist/components/steps/Steps_module.css +2 -3
  163. package/dist/components/swap/Swap.js +9 -10
  164. package/dist/components/switch/Switch.d.ts +3 -2
  165. package/dist/components/switch/Switch.js +17 -40
  166. package/dist/components/switch/Switch_module.css +0 -1
  167. package/dist/components/table/Table.d.ts +5 -5
  168. package/dist/components/table/Table.js +35 -36
  169. package/dist/components/tabs/Tabs.js +18 -19
  170. package/dist/components/tabs/Tabs_module.css +5 -10
  171. package/dist/components/tag/Tag.js +5 -6
  172. package/dist/components/tag/Tag_module.css +2 -4
  173. package/dist/components/tags-input/TagsInput.d.ts +3 -3
  174. package/dist/components/tags-input/TagsInput.js +37 -91
  175. package/dist/components/tags-input/TagsInput_module.css +0 -1
  176. package/dist/components/text/Text.js +1 -2
  177. package/dist/components/textarea/Textarea.js +1 -2
  178. package/dist/components/timer/Timer.js +21 -22
  179. package/dist/components/toast/Toast.d.ts +1 -1
  180. package/dist/components/toast/Toast.js +15 -16
  181. package/dist/components/toast/Toast_module.css +1 -2
  182. package/dist/components/toc/Toc.js +29 -30
  183. package/dist/components/toc/Toc_module.css +2 -2
  184. package/dist/components/toggle/Toggle.js +6 -7
  185. package/dist/components/toggle-group/ToggleGroup.d.ts +1 -1
  186. package/dist/components/toggle-group/ToggleGroup.js +3 -4
  187. package/dist/components/tooltip/Tooltip.d.ts +1 -1
  188. package/dist/components/tooltip/Tooltip.js +17 -18
  189. package/dist/components/tooltip/Tooltip_module.css +1 -1
  190. package/dist/components/tour/Tour.d.ts +1 -1
  191. package/dist/components/tour/Tour.js +39 -40
  192. package/dist/components/tree-view/TreeView.d.ts +4 -4
  193. package/dist/components/tree-view/TreeView.js +47 -48
  194. package/dist/components/tree-view/TreeView_module.css +39 -12
  195. package/dist/components/typeset/Typeset.js +2 -3
  196. package/dist/components/typeset/Typeset_module.css +300 -159
  197. package/dist/internal/icons/ui/Icons.d.ts +9 -30
  198. package/dist/internal/icons/ui/Icons.js +67 -807
  199. package/dist/internal/icons/ui/index.d.ts +1 -1
  200. package/dist/styles/animations.css +310 -0
  201. package/dist/styles/style.css +168 -2
  202. package/package.json +23 -23
  203. package/dist/internal/normalizeClassName.d.ts +0 -1
  204. package/dist/internal/normalizeClassName.js +0 -2
@@ -1,13 +1,14 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { ark } from "@ark-ui/react/factory";
4
+ import { Splitter } from "@ark-ui/react/splitter";
4
5
  import { clsx } from "clsx";
5
6
  import { createContext, forwardRef, useContext } from "react";
6
7
  import { ChevronLeftIcon } from "../../internal/icons/ui/index.js";
7
- import { normalizeClassName } from "../../internal/normalizeClassName.js";
8
8
  import { Input } from "../input/index.js";
9
9
  import { Separator } from "../separator/index.js";
10
- import { Splitter, useSplitterContext } from "../splitter/index.js";
10
+ import { Splitter as index_js_Splitter, useSplitterContext } from "../splitter/index.js";
11
+ import Splitter_module from "../splitter/Splitter.module.js";
11
12
  import { Tooltip } from "../tooltip/index.js";
12
13
  import Sidebar_module from "./Sidebar.module.js";
13
14
  const sidebarPanel = {
@@ -53,7 +54,7 @@ function toggleSidebarPanel(splitter, panelId) {
53
54
  if (splitter.isPanelCollapsed(panelId)) return void splitter.expandPanel(panelId);
54
55
  splitter.collapsePanel(panelId);
55
56
  }
56
- const Sidebar_SidebarRoot = /*#__PURE__*/ forwardRef(function({ className, defaultSize, panelId = 'sidebar', side = 'left', ...props }, ref) {
57
+ const Sidebar_SidebarRoot = /*#__PURE__*/ forwardRef(function({ className, defaultSize, panelId = 'sidebar', side = 'left', style, ...props }, ref) {
57
58
  return /*#__PURE__*/ jsx(SidebarConfigContext.Provider, {
58
59
  value: {
59
60
  panelId,
@@ -67,7 +68,12 @@ const Sidebar_SidebarRoot = /*#__PURE__*/ forwardRef(function({ className, defau
67
68
  orientation: "horizontal",
68
69
  "data-side": side,
69
70
  "data-slot": "sidebar-root",
70
- className: clsx(Sidebar_module.root, normalizeClassName(className))
71
+ className: clsx(Splitter_module.root, Sidebar_module.root, className),
72
+ style: {
73
+ width: 'var(--moduix-splitter-width, 100%)',
74
+ height: 'var(--moduix-splitter-height, 28rem)',
75
+ ...style
76
+ }
71
77
  })
72
78
  });
73
79
  });
@@ -93,7 +99,7 @@ const Sidebar_SidebarPanel = /*#__PURE__*/ forwardRef(function({ className, ...p
93
99
  "data-side": config.side,
94
100
  "data-slot": "sidebar-panel",
95
101
  "data-state": collapsed ? 'collapsed' : 'expanded',
96
- className: clsx(Sidebar_module.panel, normalizeClassName(className))
102
+ className: clsx(Splitter_module.panel, Sidebar_module.panel, className)
97
103
  });
98
104
  });
99
105
  const Sidebar_SidebarInset = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -104,21 +110,22 @@ const Sidebar_SidebarInset = /*#__PURE__*/ forwardRef(function({ className, ...p
104
110
  id: "content",
105
111
  "data-side": side,
106
112
  "data-slot": "sidebar-inset",
107
- className: clsx(Sidebar_module.inset, normalizeClassName(className))
113
+ className: clsx(Splitter_module.panel, Sidebar_module.inset, className)
108
114
  });
109
115
  });
110
- const Sidebar_SidebarResizeTrigger = /*#__PURE__*/ forwardRef(function({ children, className, 'aria-label': ariaLabel = 'Resize sidebar', ...props }, ref) {
116
+ const Sidebar_SidebarResizeTrigger = /*#__PURE__*/ forwardRef(function({ asChild, children, className, 'aria-label': ariaLabel = 'Resize sidebar', ...props }, ref) {
111
117
  const { panelId, side } = useContext(SidebarConfigContext);
112
118
  const id = 'left' === side ? `${panelId}:content` : `content:${panelId}`;
113
119
  return /*#__PURE__*/ jsx(Splitter.ResizeTrigger, {
114
120
  ...props,
115
121
  ref: ref,
122
+ asChild: asChild,
116
123
  id: id,
117
124
  "aria-label": ariaLabel,
118
125
  "data-side": side,
119
126
  "data-slot": "sidebar-resize-trigger",
120
- className: clsx(Sidebar_module.resizeTrigger, normalizeClassName(className)),
121
- children: children
127
+ className: clsx(Splitter_module.resizeTrigger, Sidebar_module.resizeTrigger, className),
128
+ children: void 0 !== children || asChild ? children : /*#__PURE__*/ jsx(index_js_Splitter.ResizeTriggerIndicator, {})
122
129
  });
123
130
  });
124
131
  const Sidebar_SidebarTrigger = /*#__PURE__*/ forwardRef(function({ className, children, onClick, type = 'button', 'aria-label': ariaLabel = 'Toggle sidebar', ...props }, ref) {
@@ -138,11 +145,11 @@ const Sidebar_SidebarTrigger = /*#__PURE__*/ forwardRef(function({ className, ch
138
145
  "data-scope": "sidebar",
139
146
  "data-part": "trigger",
140
147
  "data-side": config.side,
141
- "data-slot": "sidebar-trigger",
142
148
  "data-state": collapsed ? 'collapsed' : 'expanded',
143
- className: clsx(Sidebar_module.trigger, normalizeClassName(className)),
149
+ className: clsx(Sidebar_module.trigger, className),
144
150
  onClick: handleClick,
145
151
  ...props,
152
+ "data-slot": "sidebar-trigger",
146
153
  children: children ?? /*#__PURE__*/ jsx(ChevronLeftIcon, {})
147
154
  });
148
155
  });
@@ -151,9 +158,9 @@ const Sidebar_SidebarLabel = /*#__PURE__*/ forwardRef(function({ className, ...p
151
158
  ref: ref,
152
159
  "data-scope": "sidebar",
153
160
  "data-part": "label",
154
- "data-slot": "sidebar-label",
155
- className: clsx(Sidebar_module.label, normalizeClassName(className)),
156
- ...props
161
+ className: clsx(Sidebar_module.label, className),
162
+ ...props,
163
+ "data-slot": "sidebar-label"
157
164
  });
158
165
  });
159
166
  const Sidebar_SidebarHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -161,9 +168,9 @@ const Sidebar_SidebarHeader = /*#__PURE__*/ forwardRef(function({ className, ...
161
168
  ref: ref,
162
169
  "data-scope": "sidebar",
163
170
  "data-part": "header",
164
- "data-slot": "sidebar-header",
165
- className: clsx(Sidebar_module.header, normalizeClassName(className)),
166
- ...props
171
+ className: clsx(Sidebar_module.header, className),
172
+ ...props,
173
+ "data-slot": "sidebar-header"
167
174
  });
168
175
  });
169
176
  const Sidebar_SidebarContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -171,9 +178,9 @@ const Sidebar_SidebarContent = /*#__PURE__*/ forwardRef(function({ className, ..
171
178
  ref: ref,
172
179
  "data-scope": "sidebar",
173
180
  "data-part": "content",
174
- "data-slot": "sidebar-content",
175
- className: clsx(Sidebar_module.content, normalizeClassName(className)),
176
- ...props
181
+ className: clsx(Sidebar_module.content, className),
182
+ ...props,
183
+ "data-slot": "sidebar-content"
177
184
  });
178
185
  });
179
186
  const Sidebar_SidebarExpandedContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -182,9 +189,9 @@ const Sidebar_SidebarExpandedContent = /*#__PURE__*/ forwardRef(function({ class
182
189
  ref: ref,
183
190
  "data-scope": "sidebar",
184
191
  "data-part": "expanded-content",
185
- "data-slot": "sidebar-expanded-content",
186
- className: normalizeClassName(className),
192
+ className: className,
187
193
  ...props,
194
+ "data-slot": "sidebar-expanded-content",
188
195
  hidden: collapsed
189
196
  });
190
197
  });
@@ -194,9 +201,9 @@ const Sidebar_SidebarCollapsedContent = /*#__PURE__*/ forwardRef(function({ clas
194
201
  ref: ref,
195
202
  "data-scope": "sidebar",
196
203
  "data-part": "collapsed-content",
197
- "data-slot": "sidebar-collapsed-content",
198
- className: normalizeClassName(className),
204
+ className: className,
199
205
  ...props,
206
+ "data-slot": "sidebar-collapsed-content",
200
207
  hidden: !collapsed
201
208
  });
202
209
  });
@@ -205,9 +212,9 @@ const Sidebar_SidebarFooter = /*#__PURE__*/ forwardRef(function({ className, ...
205
212
  ref: ref,
206
213
  "data-scope": "sidebar",
207
214
  "data-part": "footer",
208
- "data-slot": "sidebar-footer",
209
- className: clsx(Sidebar_module.footer, normalizeClassName(className)),
210
- ...props
215
+ className: clsx(Sidebar_module.footer, className),
216
+ ...props,
217
+ "data-slot": "sidebar-footer"
211
218
  });
212
219
  });
213
220
  const Sidebar_SidebarGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -215,9 +222,9 @@ const Sidebar_SidebarGroup = /*#__PURE__*/ forwardRef(function({ className, ...p
215
222
  ref: ref,
216
223
  "data-scope": "sidebar",
217
224
  "data-part": "group",
218
- "data-slot": "sidebar-group",
219
- className: clsx(Sidebar_module.group, normalizeClassName(className)),
220
- ...props
225
+ className: clsx(Sidebar_module.group, className),
226
+ ...props,
227
+ "data-slot": "sidebar-group"
221
228
  });
222
229
  });
223
230
  const Sidebar_SidebarGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -225,30 +232,30 @@ const Sidebar_SidebarGroupLabel = /*#__PURE__*/ forwardRef(function({ className,
225
232
  ref: ref,
226
233
  "data-scope": "sidebar",
227
234
  "data-part": "group-label",
228
- "data-slot": "sidebar-group-label",
229
- className: clsx(Sidebar_module.groupLabel, normalizeClassName(className)),
230
- ...props
235
+ className: clsx(Sidebar_module.groupLabel, className),
236
+ ...props,
237
+ "data-slot": "sidebar-group-label"
231
238
  });
232
239
  });
233
- const Sidebar_SidebarGroupAction = /*#__PURE__*/ forwardRef(function({ className, type = 'button', ...props }, ref) {
234
- return /*#__PURE__*/ jsx(ark.button, {
240
+ const Sidebar_SidebarGroupHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
241
+ return /*#__PURE__*/ jsx(ark.div, {
235
242
  ref: ref,
236
- type: type,
237
243
  "data-scope": "sidebar",
238
- "data-part": "group-action",
239
- "data-slot": "sidebar-group-action",
240
- className: clsx(Sidebar_module.groupAction, normalizeClassName(className)),
241
- ...props
244
+ "data-part": "group-header",
245
+ className: clsx(Sidebar_module.groupHeader, className),
246
+ ...props,
247
+ "data-slot": "sidebar-group-header"
242
248
  });
243
249
  });
244
- const Sidebar_SidebarGroupContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
245
- return /*#__PURE__*/ jsx(ark.div, {
250
+ const Sidebar_SidebarGroupAction = /*#__PURE__*/ forwardRef(function({ className, type = 'button', ...props }, ref) {
251
+ return /*#__PURE__*/ jsx(ark.button, {
246
252
  ref: ref,
253
+ type: type,
247
254
  "data-scope": "sidebar",
248
- "data-part": "group-content",
249
- "data-slot": "sidebar-group-content",
250
- className: clsx(Sidebar_module.groupContent, normalizeClassName(className)),
251
- ...props
255
+ "data-part": "group-action",
256
+ className: clsx(Sidebar_module.groupAction, className),
257
+ ...props,
258
+ "data-slot": "sidebar-group-action"
252
259
  });
253
260
  });
254
261
  const Sidebar_SidebarNavigationList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -256,9 +263,9 @@ const Sidebar_SidebarNavigationList = /*#__PURE__*/ forwardRef(function({ classN
256
263
  ref: ref,
257
264
  "data-scope": "sidebar",
258
265
  "data-part": "navigation-list",
259
- "data-slot": "sidebar-navigation-list",
260
- className: clsx(Sidebar_module.menu, normalizeClassName(className)),
261
- ...props
266
+ className: clsx(Sidebar_module.menu, className),
267
+ ...props,
268
+ "data-slot": "sidebar-navigation-list"
262
269
  });
263
270
  });
264
271
  const Sidebar_SidebarNavigationItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -266,9 +273,9 @@ const Sidebar_SidebarNavigationItem = /*#__PURE__*/ forwardRef(function({ classN
266
273
  ref: ref,
267
274
  "data-scope": "sidebar",
268
275
  "data-part": "navigation-item",
269
- "data-slot": "sidebar-navigation-item",
270
- className: clsx(Sidebar_module.menuItem, normalizeClassName(className)),
271
- ...props
276
+ className: clsx(Sidebar_module.menuItem, className),
277
+ ...props,
278
+ "data-slot": "sidebar-navigation-item"
272
279
  });
273
280
  });
274
281
  const Sidebar_SidebarNavigationButton = /*#__PURE__*/ forwardRef(function({ active = false, className, size = 'md', type = 'button', 'aria-current': ariaCurrent, ...props }, ref) {
@@ -278,32 +285,21 @@ const Sidebar_SidebarNavigationButton = /*#__PURE__*/ forwardRef(function({ acti
278
285
  "aria-current": ariaCurrent ?? (active ? 'page' : void 0),
279
286
  "data-scope": "sidebar",
280
287
  "data-part": "navigation-button",
281
- "data-slot": "sidebar-navigation-button",
282
288
  "data-active": active ? '' : void 0,
283
289
  "data-size": size,
284
- className: clsx(Sidebar_module.menuButton, normalizeClassName(className)),
285
- ...props
286
- });
287
- });
288
- const Sidebar_SidebarNavigationAction = /*#__PURE__*/ forwardRef(function({ className, type = 'button', ...props }, ref) {
289
- return /*#__PURE__*/ jsx(ark.button, {
290
- ref: ref,
291
- type: type,
292
- "data-scope": "sidebar",
293
- "data-part": "navigation-action",
294
- "data-slot": "sidebar-navigation-action",
295
- className: clsx(Sidebar_module.menuAction, normalizeClassName(className)),
296
- ...props
290
+ className: clsx(Sidebar_module.menuButton, className),
291
+ ...props,
292
+ "data-slot": "sidebar-navigation-button"
297
293
  });
298
294
  });
299
295
  const Sidebar_SidebarNavigationBadge = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
300
- return /*#__PURE__*/ jsx(ark.div, {
296
+ return /*#__PURE__*/ jsx(ark.span, {
301
297
  ref: ref,
302
298
  "data-scope": "sidebar",
303
299
  "data-part": "navigation-badge",
304
- "data-slot": "sidebar-navigation-badge",
305
- className: clsx(Sidebar_module.menuBadge, normalizeClassName(className)),
306
- ...props
300
+ className: clsx(Sidebar_module.menuBadge, className),
301
+ ...props,
302
+ "data-slot": "sidebar-navigation-badge"
307
303
  });
308
304
  });
309
305
  const Sidebar_SidebarNavigationSubList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -311,9 +307,9 @@ const Sidebar_SidebarNavigationSubList = /*#__PURE__*/ forwardRef(function({ cla
311
307
  ref: ref,
312
308
  "data-scope": "sidebar",
313
309
  "data-part": "navigation-sub-list",
314
- "data-slot": "sidebar-navigation-sub-list",
315
- className: clsx(Sidebar_module.menuSub, normalizeClassName(className)),
316
- ...props
310
+ className: clsx(Sidebar_module.menuSub, className),
311
+ ...props,
312
+ "data-slot": "sidebar-navigation-sub-list"
317
313
  });
318
314
  });
319
315
  const Sidebar_SidebarNavigationSubItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -321,9 +317,9 @@ const Sidebar_SidebarNavigationSubItem = /*#__PURE__*/ forwardRef(function({ cla
321
317
  ref: ref,
322
318
  "data-scope": "sidebar",
323
319
  "data-part": "navigation-sub-item",
324
- "data-slot": "sidebar-navigation-sub-item",
325
- className: clsx(Sidebar_module.menuSubItem, normalizeClassName(className)),
326
- ...props
320
+ className: clsx(Sidebar_module.menuSubItem, className),
321
+ ...props,
322
+ "data-slot": "sidebar-navigation-sub-item"
327
323
  });
328
324
  });
329
325
  const Sidebar_SidebarNavigationSubButton = /*#__PURE__*/ forwardRef(function({ active = false, children, className, 'aria-current': ariaCurrent, ...props }, ref) {
@@ -332,10 +328,10 @@ const Sidebar_SidebarNavigationSubButton = /*#__PURE__*/ forwardRef(function({ a
332
328
  "aria-current": ariaCurrent ?? (active ? 'page' : void 0),
333
329
  "data-scope": "sidebar",
334
330
  "data-part": "navigation-sub-button",
335
- "data-slot": "sidebar-navigation-sub-button",
336
331
  "data-active": active ? '' : void 0,
337
- className: clsx(Sidebar_module.menuSubButton, normalizeClassName(className)),
332
+ className: clsx(Sidebar_module.menuSubButton, className),
338
333
  ...props,
334
+ "data-slot": "sidebar-navigation-sub-button",
339
335
  children: 'string' == typeof children ? /*#__PURE__*/ jsx("span", {
340
336
  "data-slot": "sidebar-navigation-sub-label",
341
337
  children: children
@@ -370,17 +366,17 @@ const Sidebar_SidebarTooltip = function({ children, content, openDelay = 200, cl
370
366
  const Sidebar_SidebarInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
371
367
  return /*#__PURE__*/ jsx(Input.Root, {
372
368
  ref: ref,
373
- "data-slot": "sidebar-input",
374
- className: clsx(Sidebar_module.input, normalizeClassName(className)),
375
- ...props
369
+ className: clsx(Sidebar_module.input, className),
370
+ ...props,
371
+ "data-slot": "sidebar-input"
376
372
  });
377
373
  });
378
374
  const Sidebar_SidebarSeparator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
379
375
  return /*#__PURE__*/ jsx(Separator.Root, {
380
376
  ref: ref,
381
- "data-slot": "sidebar-separator",
382
- className: clsx(Sidebar_module.separator, normalizeClassName(className)),
383
- ...props
377
+ className: clsx(Sidebar_module.separator, className),
378
+ ...props,
379
+ "data-slot": "sidebar-separator"
384
380
  });
385
381
  });
386
382
  const Sidebar = Object.assign(Sidebar_SidebarRoot, {
@@ -398,14 +394,13 @@ const Sidebar = Object.assign(Sidebar_SidebarRoot, {
398
394
  Footer: Sidebar_SidebarFooter,
399
395
  Separator: Sidebar_SidebarSeparator,
400
396
  Group: Sidebar_SidebarGroup,
397
+ GroupHeader: Sidebar_SidebarGroupHeader,
401
398
  GroupLabel: Sidebar_SidebarGroupLabel,
402
399
  GroupAction: Sidebar_SidebarGroupAction,
403
- GroupContent: Sidebar_SidebarGroupContent,
404
400
  NavigationList: Sidebar_SidebarNavigationList,
405
401
  NavigationItem: Sidebar_SidebarNavigationItem,
406
402
  Tooltip: Sidebar_SidebarTooltip,
407
403
  NavigationButton: Sidebar_SidebarNavigationButton,
408
- NavigationAction: Sidebar_SidebarNavigationAction,
409
404
  NavigationBadge: Sidebar_SidebarNavigationBadge,
410
405
  NavigationSubList: Sidebar_SidebarNavigationSubList,
411
406
  NavigationSubItem: Sidebar_SidebarNavigationSubItem,
@@ -10,17 +10,16 @@ const Sidebar_module = {
10
10
  groupLabel: "groupLabel-IvBtsR",
11
11
  menuSub: "menuSub-xn2r86",
12
12
  groupAction: "groupAction-aoQPc4",
13
- menuAction: "menuAction-_BDfHY",
14
- menuBadge: "menuBadge-GKf4u4",
15
13
  input: "input-nqDU3w",
16
14
  menuButton: "menuButton-OAl6eQ",
17
15
  inset: "inset-FQP9mn",
18
16
  resizeTrigger: "resizeTrigger-xFDgel",
19
17
  trigger: "trigger-_fUcgc",
20
- groupContent: "groupContent-_s9yul",
18
+ groupHeader: "groupHeader-N4qFFK",
21
19
  menu: "menu-UwagMF",
22
20
  menuItem: "menuItem-ktGhRk",
23
21
  menuSubItem: "menuSubItem-NeKVH5",
22
+ menuBadge: "menuBadge-GKf4u4",
24
23
  menuSubButton: "menuSubButton-MjeEfX",
25
24
  separator: "separator-KuEG4k"
26
25
  };