@moduix/react 2.6.0 → 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 (72) hide show
  1. package/dist/components/accordion/Accordion.js +13 -13
  2. package/dist/components/alert/Alert.js +12 -12
  3. package/dist/components/angle-slider/AngleSlider.js +16 -16
  4. package/dist/components/avatar/Avatar.js +7 -7
  5. package/dist/components/button/Button_module.css +0 -1
  6. package/dist/components/card/Card.js +30 -30
  7. package/dist/components/card/Card_module.css +1 -1
  8. package/dist/components/carousel/Carousel.d.ts +1 -1
  9. package/dist/components/carousel/Carousel.js +22 -22
  10. package/dist/components/chart/Chart.js +19 -19
  11. package/dist/components/checkbox/Checkbox.js +12 -12
  12. package/dist/components/clipboard/Clipboard.js +19 -18
  13. package/dist/components/collapsible/Collapsible.js +11 -11
  14. package/dist/components/color-picker/ColorPicker.js +47 -47
  15. package/dist/components/combobox/Combobox.js +31 -31
  16. package/dist/components/command-palette/CommandPalette.js +48 -48
  17. package/dist/components/container/Container_module.css +1 -1
  18. package/dist/components/date-input/DateInput.js +14 -14
  19. package/dist/components/date-picker/DatePicker.js +51 -51
  20. package/dist/components/dialog/Dialog.js +20 -20
  21. package/dist/components/drawer/Drawer.js +30 -30
  22. package/dist/components/editable/Editable.js +17 -17
  23. package/dist/components/empty/Empty.js +12 -12
  24. package/dist/components/field/Field.js +19 -19
  25. package/dist/components/fieldset/Fieldset.js +10 -10
  26. package/dist/components/file-upload/FileUpload.js +28 -28
  27. package/dist/components/floating-panel/FloatingPanel.d.ts +1 -1
  28. package/dist/components/floating-panel/FloatingPanel.js +22 -22
  29. package/dist/components/floating-panel/index.d.ts +1 -0
  30. package/dist/components/hover-card/HoverCard.d.ts +1 -1
  31. package/dist/components/hover-card/HoverCard.js +11 -11
  32. package/dist/components/hover-card/index.d.ts +1 -0
  33. package/dist/components/image-cropper/ImageCropper.js +14 -14
  34. package/dist/components/kbd/Kbd.js +4 -4
  35. package/dist/components/lightbox/Lightbox.js +25 -25
  36. package/dist/components/listbox/Listbox.js +31 -31
  37. package/dist/components/marquee/Marquee.js +12 -12
  38. package/dist/components/menu/Menu.js +41 -41
  39. package/dist/components/navigation-menu/NavigationMenu.js +24 -24
  40. package/dist/components/number-input/NumberInput.js +16 -16
  41. package/dist/components/pagination/Pagination.js +11 -11
  42. package/dist/components/password-input/PasswordInput.js +13 -13
  43. package/dist/components/pin-input/PinInput.js +11 -11
  44. package/dist/components/popover/Popover.js +25 -25
  45. package/dist/components/progress-circular/ProgressCircular.js +16 -16
  46. package/dist/components/progress-linear/ProgressLinear.js +14 -14
  47. package/dist/components/qr-code/QrCode.js +12 -12
  48. package/dist/components/radio-group/RadioGroup.js +14 -14
  49. package/dist/components/rating-group/RatingGroup.js +11 -11
  50. package/dist/components/segment-group/SegmentGroup.js +14 -14
  51. package/dist/components/select/Select.js +33 -33
  52. package/dist/components/sidebar/Sidebar.js +52 -44
  53. package/dist/components/signature-pad/SignaturePad.js +11 -11
  54. package/dist/components/slider/Slider.js +22 -22
  55. package/dist/components/split-button/SplitButton.d.ts +6 -6
  56. package/dist/components/split-button/SplitButton.js +18 -13
  57. package/dist/components/splitter/Splitter.js +9 -9
  58. package/dist/components/steps/Steps.js +23 -23
  59. package/dist/components/swap/Swap.js +6 -6
  60. package/dist/components/switch/Switch.js +9 -9
  61. package/dist/components/table/Table.js +23 -23
  62. package/dist/components/tabs/Tabs.js +12 -12
  63. package/dist/components/tags-input/TagsInput.js +20 -20
  64. package/dist/components/timer/Timer.js +14 -14
  65. package/dist/components/toast/Toast.js +8 -8
  66. package/dist/components/toc/Toc.js +19 -19
  67. package/dist/components/toggle/Toggle.js +4 -4
  68. package/dist/components/tooltip/Tooltip.js +11 -11
  69. package/dist/components/tour/Tour.js +25 -25
  70. package/dist/components/tree-view/TreeView.js +30 -30
  71. package/dist/styles/animations.css +8 -8
  72. package/package.json +1 -1
@@ -14,12 +14,12 @@ const Select_SelectRoot = /*#__PURE__*/ forwardRef(function({ asChild, children,
14
14
  portalRef: portalRef,
15
15
  children: /*#__PURE__*/ jsx(Select.Root, {
16
16
  ref: ref,
17
- "data-slot": "select-root",
18
17
  className: clsx(Select_module.root, className),
19
18
  asChild: asChild,
20
19
  lazyMount: lazyMount,
21
20
  unmountOnExit: unmountOnExit,
22
21
  ...props,
22
+ "data-slot": "select-root",
23
23
  children: children
24
24
  })
25
25
  });
@@ -30,12 +30,12 @@ const Select_SelectRootProvider = /*#__PURE__*/ forwardRef(function({ asChild, c
30
30
  portalRef: portalRef,
31
31
  children: /*#__PURE__*/ jsx(Select.RootProvider, {
32
32
  ref: ref,
33
- "data-slot": "select-root-provider",
34
33
  className: clsx(Select_module.root, className),
35
34
  asChild: asChild,
36
35
  lazyMount: lazyMount,
37
36
  unmountOnExit: unmountOnExit,
38
37
  ...props,
38
+ "data-slot": "select-root-provider",
39
39
  children: children
40
40
  })
41
41
  });
@@ -43,34 +43,34 @@ const Select_SelectRootProvider = /*#__PURE__*/ forwardRef(function({ asChild, c
43
43
  const Select_SelectLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
44
44
  return /*#__PURE__*/ jsx(Select.Label, {
45
45
  ref: ref,
46
- "data-slot": "select-label",
47
46
  className: clsx(Select_module.label, className),
48
- ...props
47
+ ...props,
48
+ "data-slot": "select-label"
49
49
  });
50
50
  });
51
51
  const Select_SelectControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
52
52
  return /*#__PURE__*/ jsx(Select.Control, {
53
53
  ref: ref,
54
- "data-slot": "select-control",
55
54
  className: clsx(Select_module.control, className),
56
- ...props
55
+ ...props,
56
+ "data-slot": "select-control"
57
57
  });
58
58
  });
59
59
  const Select_SelectTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
60
60
  return /*#__PURE__*/ jsx(Select.Trigger, {
61
61
  ref: ref,
62
- "data-slot": "select-trigger",
63
62
  asChild: asChild,
64
63
  className: clsx(!asChild && Select_module.trigger, className),
65
- ...props
64
+ ...props,
65
+ "data-slot": "select-trigger"
66
66
  });
67
67
  });
68
68
  const Select_SelectValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
69
69
  return /*#__PURE__*/ jsx(Select.ValueText, {
70
70
  ref: ref,
71
- "data-slot": "select-value-text",
72
71
  className: clsx(Select_module.valueText, className),
73
- ...props
72
+ ...props,
73
+ "data-slot": "select-value-text"
74
74
  });
75
75
  });
76
76
  const Select_SelectClearTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }, ref) {
@@ -78,11 +78,11 @@ const Select_SelectClearTrigger = /*#__PURE__*/ forwardRef(function({ asChild, c
78
78
  return /*#__PURE__*/ jsx(Select.ClearTrigger, {
79
79
  ref: ref,
80
80
  asChild: true,
81
- "data-slot": "select-clear-trigger",
82
81
  className: triggerClassName,
83
82
  "aria-label": asChild ? ariaLabel : void 0,
84
83
  "aria-labelledby": asChild ? ariaLabelledBy : void 0,
85
84
  ...props,
85
+ "data-slot": "select-clear-trigger",
86
86
  children: asChild ? children : /*#__PURE__*/ jsx(CloseButton.Root, {
87
87
  "aria-label": ariaLabel ?? (null == ariaLabelledBy ? 'Clear selection' : void 0),
88
88
  "aria-labelledby": ariaLabelledBy,
@@ -93,9 +93,9 @@ const Select_SelectClearTrigger = /*#__PURE__*/ forwardRef(function({ asChild, c
93
93
  const Select_SelectIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
94
94
  return /*#__PURE__*/ jsx(Select.Indicator, {
95
95
  ref: ref,
96
- "data-slot": "select-indicator",
97
96
  className: clsx(Select_module.indicator, className),
98
97
  ...props,
98
+ "data-slot": "select-indicator",
99
99
  children: children ?? /*#__PURE__*/ jsx(ChevronUpDownIcon, {})
100
100
  });
101
101
  });
@@ -122,91 +122,91 @@ const Select_SelectPositioner = /*#__PURE__*/ forwardRef(function({ className, .
122
122
  return /*#__PURE__*/ jsx(OverlayPortal, {
123
123
  children: /*#__PURE__*/ jsx(Select.Positioner, {
124
124
  ref: ref,
125
- "data-slot": "select-positioner",
126
125
  className: clsx(Select_module.positioner, className),
127
- ...props
126
+ ...props,
127
+ "data-slot": "select-positioner"
128
128
  })
129
129
  });
130
130
  });
131
131
  const Select_SelectContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
132
132
  return /*#__PURE__*/ jsx(Select.Content, {
133
133
  ref: ref,
134
- "data-slot": "select-content",
135
134
  className: clsx(Select_module.content, className),
136
- ...props
135
+ ...props,
136
+ "data-slot": "select-content"
137
137
  });
138
138
  });
139
139
  const Select_SelectList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
140
140
  return /*#__PURE__*/ jsx(Select.List, {
141
141
  ref: ref,
142
- "data-slot": "select-list",
143
142
  className: clsx(Select_module.list, className),
144
- ...props
143
+ ...props,
144
+ "data-slot": "select-list"
145
145
  });
146
146
  });
147
147
  const Select_SelectItemGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
148
148
  return /*#__PURE__*/ jsx(Select.ItemGroup, {
149
149
  ref: ref,
150
- "data-slot": "select-item-group",
151
150
  className: clsx(Select_module.itemGroup, className),
152
- ...props
151
+ ...props,
152
+ "data-slot": "select-item-group"
153
153
  });
154
154
  });
155
155
  const Select_SelectItemGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
156
156
  return /*#__PURE__*/ jsx(Select.ItemGroupLabel, {
157
157
  ref: ref,
158
- "data-slot": "select-item-group-label",
159
158
  className: clsx(Select_module.itemGroupLabel, className),
160
- ...props
159
+ ...props,
160
+ "data-slot": "select-item-group-label"
161
161
  });
162
162
  });
163
163
  const Select_SelectItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
164
164
  return /*#__PURE__*/ jsx(Select.Item, {
165
165
  ref: ref,
166
- "data-slot": "select-item",
167
166
  className: clsx(Select_module.item, className),
168
- ...props
167
+ ...props,
168
+ "data-slot": "select-item"
169
169
  });
170
170
  });
171
171
  const Select_SelectItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
172
172
  return /*#__PURE__*/ jsx(Select.ItemText, {
173
173
  ref: ref,
174
- "data-slot": "select-item-text",
175
174
  className: clsx(Select_module.itemText, className),
176
- ...props
175
+ ...props,
176
+ "data-slot": "select-item-text"
177
177
  });
178
178
  });
179
179
  const Select_SelectItemIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
180
180
  return /*#__PURE__*/ jsx(Select.ItemIndicator, {
181
181
  ref: ref,
182
- "data-slot": "select-item-indicator",
183
182
  className: clsx(Select_module.itemIndicator, className),
184
183
  ...props,
184
+ "data-slot": "select-item-indicator",
185
185
  children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
186
186
  });
187
187
  });
188
188
  const Select_SelectItemTextContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
189
189
  return /*#__PURE__*/ jsx(ark.span, {
190
190
  ref: ref,
191
- "data-slot": "select-item-text-content",
192
191
  className: clsx(Select_module.itemTextContent, className),
193
- ...props
192
+ ...props,
193
+ "data-slot": "select-item-text-content"
194
194
  });
195
195
  });
196
196
  const Select_SelectItemTextIcon = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
197
197
  return /*#__PURE__*/ jsx(ark.span, {
198
198
  ref: ref,
199
- "data-slot": "select-item-text-icon",
200
199
  className: clsx(Select_module.itemTextIcon, className),
201
- ...props
200
+ ...props,
201
+ "data-slot": "select-item-text-icon"
202
202
  });
203
203
  });
204
204
  const Select_SelectItemTextLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
205
205
  return /*#__PURE__*/ jsx(ark.span, {
206
206
  ref: ref,
207
- "data-slot": "select-item-text-label",
208
207
  className: clsx(Select_module.itemTextLabel, className),
209
- ...props
208
+ ...props,
209
+ "data-slot": "select-item-text-label"
210
210
  });
211
211
  });
212
212
  const Select_Select = Object.assign(Select_SelectRoot, {
@@ -1,12 +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
8
  import { Input } from "../input/index.js";
8
9
  import { Separator } from "../separator/index.js";
9
- 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";
10
12
  import { Tooltip } from "../tooltip/index.js";
11
13
  import Sidebar_module from "./Sidebar.module.js";
12
14
  const sidebarPanel = {
@@ -52,7 +54,7 @@ function toggleSidebarPanel(splitter, panelId) {
52
54
  if (splitter.isPanelCollapsed(panelId)) return void splitter.expandPanel(panelId);
53
55
  splitter.collapsePanel(panelId);
54
56
  }
55
- 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) {
56
58
  return /*#__PURE__*/ jsx(SidebarConfigContext.Provider, {
57
59
  value: {
58
60
  panelId,
@@ -66,7 +68,12 @@ const Sidebar_SidebarRoot = /*#__PURE__*/ forwardRef(function({ className, defau
66
68
  orientation: "horizontal",
67
69
  "data-side": side,
68
70
  "data-slot": "sidebar-root",
69
- className: clsx(Sidebar_module.root, 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
+ }
70
77
  })
71
78
  });
72
79
  });
@@ -92,7 +99,7 @@ const Sidebar_SidebarPanel = /*#__PURE__*/ forwardRef(function({ className, ...p
92
99
  "data-side": config.side,
93
100
  "data-slot": "sidebar-panel",
94
101
  "data-state": collapsed ? 'collapsed' : 'expanded',
95
- className: clsx(Sidebar_module.panel, className)
102
+ className: clsx(Splitter_module.panel, Sidebar_module.panel, className)
96
103
  });
97
104
  });
98
105
  const Sidebar_SidebarInset = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -103,21 +110,22 @@ const Sidebar_SidebarInset = /*#__PURE__*/ forwardRef(function({ className, ...p
103
110
  id: "content",
104
111
  "data-side": side,
105
112
  "data-slot": "sidebar-inset",
106
- className: clsx(Sidebar_module.inset, className)
113
+ className: clsx(Splitter_module.panel, Sidebar_module.inset, className)
107
114
  });
108
115
  });
109
- 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) {
110
117
  const { panelId, side } = useContext(SidebarConfigContext);
111
118
  const id = 'left' === side ? `${panelId}:content` : `content:${panelId}`;
112
119
  return /*#__PURE__*/ jsx(Splitter.ResizeTrigger, {
113
120
  ...props,
114
121
  ref: ref,
122
+ asChild: asChild,
115
123
  id: id,
116
124
  "aria-label": ariaLabel,
117
125
  "data-side": side,
118
126
  "data-slot": "sidebar-resize-trigger",
119
- className: clsx(Sidebar_module.resizeTrigger, className),
120
- 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, {})
121
129
  });
122
130
  });
123
131
  const Sidebar_SidebarTrigger = /*#__PURE__*/ forwardRef(function({ className, children, onClick, type = 'button', 'aria-label': ariaLabel = 'Toggle sidebar', ...props }, ref) {
@@ -137,11 +145,11 @@ const Sidebar_SidebarTrigger = /*#__PURE__*/ forwardRef(function({ className, ch
137
145
  "data-scope": "sidebar",
138
146
  "data-part": "trigger",
139
147
  "data-side": config.side,
140
- "data-slot": "sidebar-trigger",
141
148
  "data-state": collapsed ? 'collapsed' : 'expanded',
142
149
  className: clsx(Sidebar_module.trigger, className),
143
150
  onClick: handleClick,
144
151
  ...props,
152
+ "data-slot": "sidebar-trigger",
145
153
  children: children ?? /*#__PURE__*/ jsx(ChevronLeftIcon, {})
146
154
  });
147
155
  });
@@ -150,9 +158,9 @@ const Sidebar_SidebarLabel = /*#__PURE__*/ forwardRef(function({ className, ...p
150
158
  ref: ref,
151
159
  "data-scope": "sidebar",
152
160
  "data-part": "label",
153
- "data-slot": "sidebar-label",
154
161
  className: clsx(Sidebar_module.label, className),
155
- ...props
162
+ ...props,
163
+ "data-slot": "sidebar-label"
156
164
  });
157
165
  });
158
166
  const Sidebar_SidebarHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -160,9 +168,9 @@ const Sidebar_SidebarHeader = /*#__PURE__*/ forwardRef(function({ className, ...
160
168
  ref: ref,
161
169
  "data-scope": "sidebar",
162
170
  "data-part": "header",
163
- "data-slot": "sidebar-header",
164
171
  className: clsx(Sidebar_module.header, className),
165
- ...props
172
+ ...props,
173
+ "data-slot": "sidebar-header"
166
174
  });
167
175
  });
168
176
  const Sidebar_SidebarContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -170,9 +178,9 @@ const Sidebar_SidebarContent = /*#__PURE__*/ forwardRef(function({ className, ..
170
178
  ref: ref,
171
179
  "data-scope": "sidebar",
172
180
  "data-part": "content",
173
- "data-slot": "sidebar-content",
174
181
  className: clsx(Sidebar_module.content, className),
175
- ...props
182
+ ...props,
183
+ "data-slot": "sidebar-content"
176
184
  });
177
185
  });
178
186
  const Sidebar_SidebarExpandedContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -181,9 +189,9 @@ const Sidebar_SidebarExpandedContent = /*#__PURE__*/ forwardRef(function({ class
181
189
  ref: ref,
182
190
  "data-scope": "sidebar",
183
191
  "data-part": "expanded-content",
184
- "data-slot": "sidebar-expanded-content",
185
192
  className: className,
186
193
  ...props,
194
+ "data-slot": "sidebar-expanded-content",
187
195
  hidden: collapsed
188
196
  });
189
197
  });
@@ -193,9 +201,9 @@ const Sidebar_SidebarCollapsedContent = /*#__PURE__*/ forwardRef(function({ clas
193
201
  ref: ref,
194
202
  "data-scope": "sidebar",
195
203
  "data-part": "collapsed-content",
196
- "data-slot": "sidebar-collapsed-content",
197
204
  className: className,
198
205
  ...props,
206
+ "data-slot": "sidebar-collapsed-content",
199
207
  hidden: !collapsed
200
208
  });
201
209
  });
@@ -204,9 +212,9 @@ const Sidebar_SidebarFooter = /*#__PURE__*/ forwardRef(function({ className, ...
204
212
  ref: ref,
205
213
  "data-scope": "sidebar",
206
214
  "data-part": "footer",
207
- "data-slot": "sidebar-footer",
208
215
  className: clsx(Sidebar_module.footer, className),
209
- ...props
216
+ ...props,
217
+ "data-slot": "sidebar-footer"
210
218
  });
211
219
  });
212
220
  const Sidebar_SidebarGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -214,9 +222,9 @@ const Sidebar_SidebarGroup = /*#__PURE__*/ forwardRef(function({ className, ...p
214
222
  ref: ref,
215
223
  "data-scope": "sidebar",
216
224
  "data-part": "group",
217
- "data-slot": "sidebar-group",
218
225
  className: clsx(Sidebar_module.group, className),
219
- ...props
226
+ ...props,
227
+ "data-slot": "sidebar-group"
220
228
  });
221
229
  });
222
230
  const Sidebar_SidebarGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -224,9 +232,9 @@ const Sidebar_SidebarGroupLabel = /*#__PURE__*/ forwardRef(function({ className,
224
232
  ref: ref,
225
233
  "data-scope": "sidebar",
226
234
  "data-part": "group-label",
227
- "data-slot": "sidebar-group-label",
228
235
  className: clsx(Sidebar_module.groupLabel, className),
229
- ...props
236
+ ...props,
237
+ "data-slot": "sidebar-group-label"
230
238
  });
231
239
  });
232
240
  const Sidebar_SidebarGroupHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -234,9 +242,9 @@ const Sidebar_SidebarGroupHeader = /*#__PURE__*/ forwardRef(function({ className
234
242
  ref: ref,
235
243
  "data-scope": "sidebar",
236
244
  "data-part": "group-header",
237
- "data-slot": "sidebar-group-header",
238
245
  className: clsx(Sidebar_module.groupHeader, className),
239
- ...props
246
+ ...props,
247
+ "data-slot": "sidebar-group-header"
240
248
  });
241
249
  });
242
250
  const Sidebar_SidebarGroupAction = /*#__PURE__*/ forwardRef(function({ className, type = 'button', ...props }, ref) {
@@ -245,9 +253,9 @@ const Sidebar_SidebarGroupAction = /*#__PURE__*/ forwardRef(function({ className
245
253
  type: type,
246
254
  "data-scope": "sidebar",
247
255
  "data-part": "group-action",
248
- "data-slot": "sidebar-group-action",
249
256
  className: clsx(Sidebar_module.groupAction, className),
250
- ...props
257
+ ...props,
258
+ "data-slot": "sidebar-group-action"
251
259
  });
252
260
  });
253
261
  const Sidebar_SidebarNavigationList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -255,9 +263,9 @@ const Sidebar_SidebarNavigationList = /*#__PURE__*/ forwardRef(function({ classN
255
263
  ref: ref,
256
264
  "data-scope": "sidebar",
257
265
  "data-part": "navigation-list",
258
- "data-slot": "sidebar-navigation-list",
259
266
  className: clsx(Sidebar_module.menu, className),
260
- ...props
267
+ ...props,
268
+ "data-slot": "sidebar-navigation-list"
261
269
  });
262
270
  });
263
271
  const Sidebar_SidebarNavigationItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -265,9 +273,9 @@ const Sidebar_SidebarNavigationItem = /*#__PURE__*/ forwardRef(function({ classN
265
273
  ref: ref,
266
274
  "data-scope": "sidebar",
267
275
  "data-part": "navigation-item",
268
- "data-slot": "sidebar-navigation-item",
269
276
  className: clsx(Sidebar_module.menuItem, className),
270
- ...props
277
+ ...props,
278
+ "data-slot": "sidebar-navigation-item"
271
279
  });
272
280
  });
273
281
  const Sidebar_SidebarNavigationButton = /*#__PURE__*/ forwardRef(function({ active = false, className, size = 'md', type = 'button', 'aria-current': ariaCurrent, ...props }, ref) {
@@ -277,11 +285,11 @@ const Sidebar_SidebarNavigationButton = /*#__PURE__*/ forwardRef(function({ acti
277
285
  "aria-current": ariaCurrent ?? (active ? 'page' : void 0),
278
286
  "data-scope": "sidebar",
279
287
  "data-part": "navigation-button",
280
- "data-slot": "sidebar-navigation-button",
281
288
  "data-active": active ? '' : void 0,
282
289
  "data-size": size,
283
290
  className: clsx(Sidebar_module.menuButton, className),
284
- ...props
291
+ ...props,
292
+ "data-slot": "sidebar-navigation-button"
285
293
  });
286
294
  });
287
295
  const Sidebar_SidebarNavigationBadge = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -289,9 +297,9 @@ const Sidebar_SidebarNavigationBadge = /*#__PURE__*/ forwardRef(function({ class
289
297
  ref: ref,
290
298
  "data-scope": "sidebar",
291
299
  "data-part": "navigation-badge",
292
- "data-slot": "sidebar-navigation-badge",
293
300
  className: clsx(Sidebar_module.menuBadge, className),
294
- ...props
301
+ ...props,
302
+ "data-slot": "sidebar-navigation-badge"
295
303
  });
296
304
  });
297
305
  const Sidebar_SidebarNavigationSubList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -299,9 +307,9 @@ const Sidebar_SidebarNavigationSubList = /*#__PURE__*/ forwardRef(function({ cla
299
307
  ref: ref,
300
308
  "data-scope": "sidebar",
301
309
  "data-part": "navigation-sub-list",
302
- "data-slot": "sidebar-navigation-sub-list",
303
310
  className: clsx(Sidebar_module.menuSub, className),
304
- ...props
311
+ ...props,
312
+ "data-slot": "sidebar-navigation-sub-list"
305
313
  });
306
314
  });
307
315
  const Sidebar_SidebarNavigationSubItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
@@ -309,9 +317,9 @@ const Sidebar_SidebarNavigationSubItem = /*#__PURE__*/ forwardRef(function({ cla
309
317
  ref: ref,
310
318
  "data-scope": "sidebar",
311
319
  "data-part": "navigation-sub-item",
312
- "data-slot": "sidebar-navigation-sub-item",
313
320
  className: clsx(Sidebar_module.menuSubItem, className),
314
- ...props
321
+ ...props,
322
+ "data-slot": "sidebar-navigation-sub-item"
315
323
  });
316
324
  });
317
325
  const Sidebar_SidebarNavigationSubButton = /*#__PURE__*/ forwardRef(function({ active = false, children, className, 'aria-current': ariaCurrent, ...props }, ref) {
@@ -320,10 +328,10 @@ const Sidebar_SidebarNavigationSubButton = /*#__PURE__*/ forwardRef(function({ a
320
328
  "aria-current": ariaCurrent ?? (active ? 'page' : void 0),
321
329
  "data-scope": "sidebar",
322
330
  "data-part": "navigation-sub-button",
323
- "data-slot": "sidebar-navigation-sub-button",
324
331
  "data-active": active ? '' : void 0,
325
332
  className: clsx(Sidebar_module.menuSubButton, className),
326
333
  ...props,
334
+ "data-slot": "sidebar-navigation-sub-button",
327
335
  children: 'string' == typeof children ? /*#__PURE__*/ jsx("span", {
328
336
  "data-slot": "sidebar-navigation-sub-label",
329
337
  children: children
@@ -358,17 +366,17 @@ const Sidebar_SidebarTooltip = function({ children, content, openDelay = 200, cl
358
366
  const Sidebar_SidebarInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
359
367
  return /*#__PURE__*/ jsx(Input.Root, {
360
368
  ref: ref,
361
- "data-slot": "sidebar-input",
362
369
  className: clsx(Sidebar_module.input, className),
363
- ...props
370
+ ...props,
371
+ "data-slot": "sidebar-input"
364
372
  });
365
373
  });
366
374
  const Sidebar_SidebarSeparator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
367
375
  return /*#__PURE__*/ jsx(Separator.Root, {
368
376
  ref: ref,
369
- "data-slot": "sidebar-separator",
370
377
  className: clsx(Sidebar_module.separator, className),
371
- ...props
378
+ ...props,
379
+ "data-slot": "sidebar-separator"
372
380
  });
373
381
  });
374
382
  const Sidebar = Object.assign(Sidebar_SidebarRoot, {
@@ -16,10 +16,10 @@ const SignaturePad_SignaturePadRoot = /*#__PURE__*/ forwardRef(function({ asChil
16
16
  value: readOnly,
17
17
  children: /*#__PURE__*/ jsx(SignaturePad.Root, {
18
18
  ref: ref,
19
- "data-slot": "signature-pad-root",
20
19
  className: clsx(SignaturePad_module.root, className),
21
20
  asChild: asChild,
22
21
  ...props,
22
+ "data-slot": "signature-pad-root",
23
23
  children: children
24
24
  })
25
25
  });
@@ -30,10 +30,10 @@ const SignaturePad_SignaturePadRootProvider = /*#__PURE__*/ forwardRef(function(
30
30
  value: readOnly,
31
31
  children: /*#__PURE__*/ jsx(SignaturePad.RootProvider, {
32
32
  ref: ref,
33
- "data-slot": "signature-pad-root-provider",
34
33
  className: clsx(SignaturePad_module.root, className),
35
34
  asChild: asChild,
36
35
  ...props,
36
+ "data-slot": "signature-pad-root-provider",
37
37
  children: children
38
38
  })
39
39
  });
@@ -41,33 +41,33 @@ const SignaturePad_SignaturePadRootProvider = /*#__PURE__*/ forwardRef(function(
41
41
  const SignaturePad_SignaturePadLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
42
42
  return /*#__PURE__*/ jsx(SignaturePad.Label, {
43
43
  ref: ref,
44
- "data-slot": "signature-pad-label",
45
44
  className: clsx(SignaturePad_module.label, className),
46
- ...props
45
+ ...props,
46
+ "data-slot": "signature-pad-label"
47
47
  });
48
48
  });
49
49
  const SignaturePad_SignaturePadControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
50
50
  return /*#__PURE__*/ jsx(SignaturePad.Control, {
51
51
  ref: ref,
52
- "data-slot": "signature-pad-control",
53
52
  className: clsx(SignaturePad_module.control, className),
54
- ...props
53
+ ...props,
54
+ "data-slot": "signature-pad-control"
55
55
  });
56
56
  });
57
57
  const SignaturePad_SignaturePadSegment = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
58
58
  return /*#__PURE__*/ jsx(SignaturePad.Segment, {
59
59
  ref: ref,
60
- "data-slot": "signature-pad-segment",
61
60
  className: clsx(SignaturePad_module.segment, className),
62
- ...props
61
+ ...props,
62
+ "data-slot": "signature-pad-segment"
63
63
  });
64
64
  });
65
65
  const SignaturePad_SignaturePadGuide = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
66
66
  return /*#__PURE__*/ jsx(SignaturePad.Guide, {
67
67
  ref: ref,
68
- "data-slot": "signature-pad-guide",
69
68
  className: clsx(SignaturePad_module.guide, className),
70
- ...props
69
+ ...props,
70
+ "data-slot": "signature-pad-guide"
71
71
  });
72
72
  });
73
73
  const SignaturePad_SignaturePadClearTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }, ref) {
@@ -76,11 +76,11 @@ const SignaturePad_SignaturePadClearTrigger = /*#__PURE__*/ forwardRef(function(
76
76
  return /*#__PURE__*/ jsx(SignaturePad.ClearTrigger, {
77
77
  ref: ref,
78
78
  asChild: true,
79
- "data-slot": "signature-pad-clear-trigger",
80
79
  className: triggerClassName,
81
80
  "aria-label": asChild ? ariaLabel : void 0,
82
81
  "aria-labelledby": asChild ? ariaLabelledBy : void 0,
83
82
  ...props,
83
+ "data-slot": "signature-pad-clear-trigger",
84
84
  disabled: readOnly || props.disabled,
85
85
  children: asChild ? children : /*#__PURE__*/ jsx(CloseButton.Root, {
86
86
  "aria-label": ariaLabel,