@moduix/react-tailwind 1.0.0 → 1.1.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 (69) 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/bleed/Bleed.js +1 -1
  6. package/dist/components/card/Card.js +33 -33
  7. package/dist/components/carousel/Carousel.d.ts +1 -1
  8. package/dist/components/carousel/Carousel.js +22 -22
  9. package/dist/components/chart/Chart.js +18 -18
  10. package/dist/components/checkbox/Checkbox.js +12 -12
  11. package/dist/components/clipboard/Clipboard.js +19 -18
  12. package/dist/components/collapsible/Collapsible.js +11 -11
  13. package/dist/components/color-picker/ColorPicker.js +47 -47
  14. package/dist/components/combobox/Combobox.js +31 -31
  15. package/dist/components/command-palette/CommandPalette.js +48 -48
  16. package/dist/components/container/Container.js +5 -5
  17. package/dist/components/date-input/DateInput.js +14 -14
  18. package/dist/components/date-picker/DatePicker.js +51 -51
  19. package/dist/components/dialog/Dialog.js +20 -20
  20. package/dist/components/drawer/Drawer.js +30 -30
  21. package/dist/components/editable/Editable.js +17 -17
  22. package/dist/components/empty/Empty.js +13 -13
  23. package/dist/components/field/Field.js +19 -19
  24. package/dist/components/file-upload/FileUpload.js +28 -28
  25. package/dist/components/floating-panel/FloatingPanel.d.ts +1 -1
  26. package/dist/components/floating-panel/FloatingPanel.js +22 -22
  27. package/dist/components/floating-panel/index.d.ts +1 -0
  28. package/dist/components/hover-card/HoverCard.d.ts +1 -1
  29. package/dist/components/hover-card/HoverCard.js +11 -11
  30. package/dist/components/image-cropper/ImageCropper.js +14 -14
  31. package/dist/components/input-group/InputGroup.js +1 -1
  32. package/dist/components/lightbox/Lightbox.js +25 -25
  33. package/dist/components/listbox/Listbox.js +31 -31
  34. package/dist/components/marquee/Marquee.js +12 -12
  35. package/dist/components/menu/Menu.js +42 -42
  36. package/dist/components/navigation-menu/NavigationMenu.js +24 -24
  37. package/dist/components/number-input/NumberInput.js +16 -16
  38. package/dist/components/pagination/Pagination.js +11 -11
  39. package/dist/components/password-input/PasswordInput.js +13 -13
  40. package/dist/components/pin-input/PinInput.js +11 -11
  41. package/dist/components/popover/Popover.js +25 -25
  42. package/dist/components/progress-circular/ProgressCircular.js +16 -16
  43. package/dist/components/progress-linear/ProgressLinear.js +14 -14
  44. package/dist/components/qr-code/QrCode.js +12 -12
  45. package/dist/components/radio-group/RadioGroup.js +14 -14
  46. package/dist/components/rating-group/RatingGroup.js +11 -11
  47. package/dist/components/segment-group/SegmentGroup.js +14 -14
  48. package/dist/components/select/Select.js +33 -33
  49. package/dist/components/sidebar/Sidebar.js +51 -44
  50. package/dist/components/signature-pad/SignaturePad.js +11 -11
  51. package/dist/components/slider/Slider.js +22 -22
  52. package/dist/components/split-button/SplitButton.d.ts +6 -6
  53. package/dist/components/split-button/SplitButton.js +17 -13
  54. package/dist/components/splitter/Splitter.js +9 -9
  55. package/dist/components/steps/Steps.js +23 -23
  56. package/dist/components/swap/Swap.js +6 -6
  57. package/dist/components/switch/Switch.js +9 -9
  58. package/dist/components/table/Table.js +23 -23
  59. package/dist/components/tabs/Tabs.js +12 -12
  60. package/dist/components/tags-input/TagsInput.js +20 -20
  61. package/dist/components/timer/Timer.js +14 -14
  62. package/dist/components/toast/Toast.js +8 -8
  63. package/dist/components/toc/Toc.js +19 -19
  64. package/dist/components/toggle/Toggle.js +4 -4
  65. package/dist/components/tooltip/Tooltip.js +11 -11
  66. package/dist/components/tour/Tour.js +26 -26
  67. package/dist/components/tree-view/TreeView.js +30 -30
  68. package/dist/styles/animations.css +8 -8
  69. package/package.json +1 -1
@@ -16,7 +16,6 @@ const DatePicker_DatePickerRoot = /*#__PURE__*/ forwardRef(function({ className,
16
16
  portalRef: portalRef,
17
17
  children: /*#__PURE__*/ jsx(DatePicker.Root, {
18
18
  ref: ref,
19
- "data-slot": "date-picker-root",
20
19
  className: cn("group/date-picker inline-flex w-75 max-w-full flex-col items-start gap-1 text-foreground has-[input[data-index='1']]:w-96 data-disabled:opacity-50 data-readonly:opacity-50", className),
21
20
  disabled: disabled ?? field?.disabled ?? fieldset?.disabled,
22
21
  invalid: invalid ?? field?.invalid ?? fieldset?.invalid,
@@ -24,7 +23,8 @@ const DatePicker_DatePickerRoot = /*#__PURE__*/ forwardRef(function({ className,
24
23
  readOnly: readOnly ?? field?.readOnly,
25
24
  required: required ?? field?.required,
26
25
  unmountOnExit: unmountOnExit,
27
- ...props
26
+ ...props,
27
+ "data-slot": "date-picker-root"
28
28
  })
29
29
  });
30
30
  });
@@ -34,28 +34,28 @@ const DatePicker_DatePickerRootProvider = /*#__PURE__*/ forwardRef(function({ cl
34
34
  portalRef: portalRef,
35
35
  children: /*#__PURE__*/ jsx(DatePicker.RootProvider, {
36
36
  ref: ref,
37
- "data-slot": "date-picker-root-provider",
38
37
  className: cn("group/date-picker inline-flex w-75 max-w-full flex-col items-start gap-1 text-foreground has-[input[data-index='1']]:w-96 data-disabled:opacity-50 data-readonly:opacity-50", className),
39
38
  lazyMount: lazyMount,
40
39
  unmountOnExit: unmountOnExit,
41
- ...props
40
+ ...props,
41
+ "data-slot": "date-picker-root-provider"
42
42
  })
43
43
  });
44
44
  });
45
45
  const DatePicker_DatePickerLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
46
46
  return /*#__PURE__*/ jsx(DatePicker.Label, {
47
47
  ref: ref,
48
- "data-slot": "date-picker-label",
49
48
  className: cn('inline-flex items-center text-sm leading-5 font-medium text-foreground select-none', className),
50
- ...props
49
+ ...props,
50
+ "data-slot": "date-picker-label"
51
51
  });
52
52
  });
53
53
  const DatePicker_DatePickerControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
54
54
  return /*#__PURE__*/ jsx(DatePicker.Control, {
55
55
  ref: ref,
56
- "data-slot": "date-picker-control",
57
56
  className: cn('group/date-picker-control relative flex w-full min-w-0 items-center gap-2 text-foreground', className),
58
- ...props
57
+ ...props,
58
+ "data-slot": "date-picker-control"
59
59
  });
60
60
  });
61
61
  const DatePicker_DatePickerField = /*#__PURE__*/ forwardRef(function({ clearLabel, clearTriggerProps, inputProps, placeholder, triggerLabel, triggerProps, ...props }, ref) {
@@ -122,18 +122,18 @@ const DatePicker_DatePickerRangeField = /*#__PURE__*/ forwardRef(function({ clea
122
122
  const DatePicker_DatePickerInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
123
123
  return /*#__PURE__*/ jsx(DatePicker.Input, {
124
124
  ref: ref,
125
- "data-slot": "date-picker-input",
126
125
  className: cn("readonly:cursor-default h-control-md w-full min-w-30 flex-1 rounded-md border border-border bg-background ps-3.5 pe-17 text-md leading-6 text-current outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,color,outline-color,opacity] duration-200 ease-in-out group-has-[input[data-index='1']]/date-picker:pe-3.5 group-data-focus/date-picker-control:border-ring group-data-focus/date-picker-control:outline-ring placeholder:text-muted-foreground focus:border-ring focus:outline-ring disabled:cursor-default aria-invalid:border-destructive aria-invalid:outline-destructive data-disabled:cursor-default data-invalid:border-destructive data-invalid:outline-destructive data-readonly:cursor-default data-[index='1']:pe-17 motion-reduce:transition-none", 'py-1', className),
127
- ...props
126
+ ...props,
127
+ "data-slot": "date-picker-input"
128
128
  });
129
129
  });
130
130
  const DatePicker_DatePickerTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, ...props }, ref) {
131
131
  return /*#__PURE__*/ jsx(DatePicker.Trigger, {
132
132
  ref: ref,
133
- "data-slot": "date-picker-trigger",
134
133
  asChild: asChild,
135
134
  className: cn(!asChild && 'absolute end-2 top-1/2 inline-flex size-control-xs shrink-0 -translate-y-1/2 cursor-pointer items-center justify-center rounded-sm bg-transparent p-0 leading-none text-muted-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring motion-reduce:transition-none [&>svg]:block [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:text-foreground', className),
136
135
  ...props,
136
+ "data-slot": "date-picker-trigger",
137
137
  children: children ?? /*#__PURE__*/ jsx(CalendarIcon, {})
138
138
  });
139
139
  });
@@ -141,7 +141,6 @@ const DatePicker_DatePickerClearTrigger = /*#__PURE__*/ forwardRef(function({ as
141
141
  return /*#__PURE__*/ jsx(DatePicker.ClearTrigger, {
142
142
  ref: ref,
143
143
  asChild: true,
144
- "data-slot": "date-picker-clear-trigger",
145
144
  className: cn('absolute end-[2.125rem] top-1/2 inline-flex size-control-xs shrink-0 -translate-y-1/2 cursor-pointer items-center justify-center rounded-sm bg-transparent p-0 leading-none text-muted-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring motion-reduce:transition-none [&>svg]:block [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:text-foreground', className),
146
145
  ...asChild && void 0 !== ariaLabel ? {
147
146
  'aria-label': ariaLabel
@@ -150,6 +149,7 @@ const DatePicker_DatePickerClearTrigger = /*#__PURE__*/ forwardRef(function({ as
150
149
  'aria-labelledby': ariaLabelledBy
151
150
  } : {},
152
151
  ...props,
152
+ "data-slot": "date-picker-clear-trigger",
153
153
  children: asChild ? children : /*#__PURE__*/ jsx(CloseButton.Root, {
154
154
  ...void 0 === ariaLabel ? {} : {
155
155
  'aria-label': ariaLabel
@@ -166,71 +166,71 @@ const DatePicker_DatePickerPositioner = /*#__PURE__*/ forwardRef(function({ clas
166
166
  return /*#__PURE__*/ jsx(OverlayPortal, {
167
167
  children: /*#__PURE__*/ jsx(DatePicker.Positioner, {
168
168
  ref: ref,
169
- "data-slot": "date-picker-positioner",
170
169
  className: cn('z-[var(--z-index)] outline-0', className),
171
- ...props
170
+ ...props,
171
+ "data-slot": "date-picker-positioner"
172
172
  })
173
173
  });
174
174
  });
175
175
  const DatePicker_DatePickerContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
176
176
  return /*#__PURE__*/ jsx(DatePicker.Content, {
177
177
  ref: ref,
178
- "data-slot": "date-picker-content",
179
178
  className: cn('z-[calc(60+var(--layer-index,0))] w-75 max-w-[min(calc(100vw-2rem),var(--available-width))] min-w-[min(18.75rem,var(--available-width))] origin-[var(--transform-origin)] rounded-md border border-border bg-popover p-3 text-popover-foreground shadow-lg outline-0 data-inline:min-w-72 data-inline:shadow-none data-[state=closed]:pointer-events-none data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms]', className),
180
- ...props
179
+ ...props,
180
+ "data-slot": "date-picker-content"
181
181
  });
182
182
  });
183
183
  const DatePicker_DatePickerView = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
184
184
  return /*#__PURE__*/ jsx(DatePicker.View, {
185
185
  ref: ref,
186
- "data-slot": "date-picker-view",
187
186
  className: cn('grid gap-3', className),
188
- ...props
187
+ ...props,
188
+ "data-slot": "date-picker-view"
189
189
  });
190
190
  });
191
191
  const DatePicker_DatePickerViewControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
192
192
  return /*#__PURE__*/ jsx(DatePicker.ViewControl, {
193
193
  ref: ref,
194
- "data-slot": "date-picker-view-control",
195
194
  className: cn('flex min-w-0 items-center justify-between gap-2', className),
196
- ...props
195
+ ...props,
196
+ "data-slot": "date-picker-view-control"
197
197
  });
198
198
  });
199
199
  const DatePicker_DatePickerPrevTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, ...props }, ref) {
200
200
  return /*#__PURE__*/ jsx(DatePicker.PrevTrigger, {
201
201
  ref: ref,
202
- "data-slot": "date-picker-prev-trigger",
203
202
  asChild: asChild,
204
203
  className: cn(!asChild && 'inline-flex size-control-sm shrink-0 cursor-pointer items-center justify-center rounded-sm bg-transparent p-0 leading-none text-muted-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring motion-reduce:transition-none [&>svg]:block [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:text-foreground', className),
205
204
  ...props,
205
+ "data-slot": "date-picker-prev-trigger",
206
206
  children: children ?? /*#__PURE__*/ jsx(ChevronLeftIcon, {})
207
207
  });
208
208
  });
209
209
  const DatePicker_DatePickerNextTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, ...props }, ref) {
210
210
  return /*#__PURE__*/ jsx(DatePicker.NextTrigger, {
211
211
  ref: ref,
212
- "data-slot": "date-picker-next-trigger",
213
212
  asChild: asChild,
214
213
  className: cn(!asChild && 'inline-flex size-control-sm shrink-0 cursor-pointer items-center justify-center rounded-sm bg-transparent p-0 leading-none text-muted-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring motion-reduce:transition-none [&>svg]:block [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:text-foreground', className),
215
214
  ...props,
215
+ "data-slot": "date-picker-next-trigger",
216
216
  children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {})
217
217
  });
218
218
  });
219
219
  const DatePicker_DatePickerRangeText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
220
220
  return /*#__PURE__*/ jsx(DatePicker.RangeText, {
221
221
  ref: ref,
222
- "data-slot": "date-picker-range-text",
223
222
  className: cn('min-w-0 overflow-hidden text-ellipsis whitespace-nowrap', className),
224
- ...props
223
+ ...props,
224
+ "data-slot": "date-picker-range-text"
225
225
  });
226
226
  });
227
227
  const DatePicker_DatePickerViewTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, ...props }, ref) {
228
228
  return /*#__PURE__*/ jsx(DatePicker.ViewTrigger, {
229
229
  ref: ref,
230
- "data-slot": "date-picker-view-trigger",
231
230
  asChild: asChild,
232
231
  className: cn(!asChild && 'inline-flex min-h-control-sm min-w-0 flex-1 shrink-0 cursor-pointer items-center justify-center gap-2 rounded-sm bg-transparent px-2 text-sm leading-5 font-medium text-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring motion-reduce:transition-none [&>svg]:block [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:text-foreground', className),
233
232
  ...props,
233
+ "data-slot": "date-picker-view-trigger",
234
234
  children: children ?? /*#__PURE__*/ jsxs(Fragment, {
235
235
  children: [
236
236
  /*#__PURE__*/ jsx(DatePicker_DatePickerRangeText, {}),
@@ -242,73 +242,73 @@ const DatePicker_DatePickerViewTrigger = /*#__PURE__*/ forwardRef(function({ asC
242
242
  const DatePicker_DatePickerTable = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
243
243
  return /*#__PURE__*/ jsx(DatePicker.Table, {
244
244
  ref: ref,
245
- "data-slot": "date-picker-table",
246
245
  className: cn('w-full table-fixed border-separate border-spacing-0.5', className),
247
- ...props
246
+ ...props,
247
+ "data-slot": "date-picker-table"
248
248
  });
249
249
  });
250
250
  const DatePicker_DatePickerTableHead = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
251
251
  return /*#__PURE__*/ jsx(DatePicker.TableHead, {
252
252
  ref: ref,
253
- "data-slot": "date-picker-table-head",
254
253
  className: className,
255
- ...props
254
+ ...props,
255
+ "data-slot": "date-picker-table-head"
256
256
  });
257
257
  });
258
258
  const DatePicker_DatePickerTableBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
259
259
  return /*#__PURE__*/ jsx(DatePicker.TableBody, {
260
260
  ref: ref,
261
- "data-slot": "date-picker-table-body",
262
261
  className: className,
263
- ...props
262
+ ...props,
263
+ "data-slot": "date-picker-table-body"
264
264
  });
265
265
  });
266
266
  const DatePicker_DatePickerTableRow = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
267
267
  return /*#__PURE__*/ jsx(DatePicker.TableRow, {
268
268
  ref: ref,
269
- "data-slot": "date-picker-table-row",
270
269
  className: className,
271
- ...props
270
+ ...props,
271
+ "data-slot": "date-picker-table-row"
272
272
  });
273
273
  });
274
274
  const DatePicker_DatePickerTableHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
275
275
  return /*#__PURE__*/ jsx(DatePicker.TableHeader, {
276
276
  ref: ref,
277
- "data-slot": "date-picker-table-header",
278
277
  className: cn('h-7 w-control-sm text-center text-xs leading-4 font-medium text-muted-foreground', className),
279
- ...props
278
+ ...props,
279
+ "data-slot": "date-picker-table-header"
280
280
  });
281
281
  });
282
282
  const DatePicker_DatePickerWeekNumberHeaderCell = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
283
283
  return /*#__PURE__*/ jsx(DatePicker.WeekNumberHeaderCell, {
284
284
  ref: ref,
285
- "data-slot": "date-picker-week-number-header-cell",
286
285
  className: cn('h-7 w-control-sm text-center text-xs leading-4 font-medium text-muted-foreground tabular-nums', className),
287
- ...props
286
+ ...props,
287
+ "data-slot": "date-picker-week-number-header-cell"
288
288
  });
289
289
  });
290
290
  const DatePicker_DatePickerWeekNumberCell = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
291
291
  return /*#__PURE__*/ jsx(DatePicker.WeekNumberCell, {
292
292
  ref: ref,
293
- "data-slot": "date-picker-week-number-cell",
294
293
  className: cn('h-7 w-control-sm text-center text-xs leading-4 font-medium text-muted-foreground tabular-nums', className),
295
- ...props
294
+ ...props,
295
+ "data-slot": "date-picker-week-number-cell"
296
296
  });
297
297
  });
298
298
  const DatePicker_DatePickerTableCell = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
299
299
  return /*#__PURE__*/ jsx(DatePicker.TableCell, {
300
300
  ref: ref,
301
- "data-slot": "date-picker-table-cell",
302
301
  className: cn('h-control-sm w-control-sm p-0 text-center', className),
303
- ...props
302
+ ...props,
303
+ "data-slot": "date-picker-table-cell"
304
304
  });
305
305
  });
306
306
  const DatePicker_DatePickerTableCellTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
307
307
  return /*#__PURE__*/ jsx(DatePicker.TableCellTrigger, {
308
308
  ref: ref,
309
- "data-slot": "date-picker-table-cell-trigger",
310
309
  className: cn('inline-flex h-control-sm w-full min-w-control-sm cursor-pointer items-center justify-center rounded-sm bg-transparent p-0 text-sm leading-5 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring data-in-hover-range:bg-muted data-in-hover-range:text-foreground data-in-range:bg-muted data-in-range:text-foreground data-outside-range:text-muted-foreground data-selected:bg-primary data-selected:text-primary-foreground data-today:border-ring data-unavailable:text-muted-foreground motion-reduce:transition-none [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-selected]):hover]:bg-accent [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-selected]):hover]:text-accent-foreground', className),
311
- ...props
310
+ ...props,
311
+ "data-slot": "date-picker-table-cell-trigger"
312
312
  });
313
313
  });
314
314
  const DatePicker_DatePickerDayTable = /*#__PURE__*/ forwardRef(function({ offset, showHeader = true, showWeekNumbers = false, ...props }, ref) {
@@ -363,34 +363,34 @@ const DatePicker_DatePickerDayTable = /*#__PURE__*/ forwardRef(function({ offset
363
363
  const DatePicker_DatePickerMonthSelect = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
364
364
  return /*#__PURE__*/ jsx(DatePicker.MonthSelect, {
365
365
  ref: ref,
366
- "data-slot": "date-picker-month-select",
367
366
  className: cn('min-h-control-sm w-full min-w-0 flex-1 cursor-pointer rounded-sm border border-border bg-background px-2 py-1 text-sm leading-5 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,outline-color] duration-200 ease-in-out focus:border-ring focus:outline-ring motion-reduce:transition-none', className),
368
- ...props
367
+ ...props,
368
+ "data-slot": "date-picker-month-select"
369
369
  });
370
370
  });
371
371
  const DatePicker_DatePickerYearSelect = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
372
372
  return /*#__PURE__*/ jsx(DatePicker.YearSelect, {
373
373
  ref: ref,
374
- "data-slot": "date-picker-year-select",
375
374
  className: cn('min-h-control-sm w-full min-w-0 flex-1 cursor-pointer rounded-sm border border-border bg-background px-2 py-1 text-sm leading-5 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,outline-color] duration-200 ease-in-out focus:border-ring focus:outline-ring motion-reduce:transition-none', className),
376
- ...props
375
+ ...props,
376
+ "data-slot": "date-picker-year-select"
377
377
  });
378
378
  });
379
379
  const DatePicker_DatePickerPresetTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
380
380
  return /*#__PURE__*/ jsx(DatePicker.PresetTrigger, {
381
381
  ref: ref,
382
- "data-slot": "date-picker-preset-trigger",
383
382
  asChild: asChild,
384
383
  className: cn(!asChild && 'inline-flex min-h-control-sm shrink-0 cursor-pointer items-center justify-center rounded-sm bg-muted px-2 text-sm leading-5 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,color,outline-color,opacity] duration-200 ease-in-out focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 data-focus:outline-ring data-selected:bg-primary data-selected:text-primary-foreground motion-reduce:transition-none [&>svg]:block [&>svg]:size-4 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-muted [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:text-foreground [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):not([data-selected]):hover]:bg-accent', className),
385
- ...props
384
+ ...props,
385
+ "data-slot": "date-picker-preset-trigger"
386
386
  });
387
387
  });
388
388
  const DatePicker_DatePickerValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
389
389
  return /*#__PURE__*/ jsx(DatePicker.ValueText, {
390
390
  ref: ref,
391
- "data-slot": "date-picker-value-text",
392
391
  className: cn('min-w-0 overflow-hidden text-ellipsis whitespace-nowrap', className),
393
- ...props
392
+ ...props,
393
+ "data-slot": "date-picker-value-text"
394
394
  });
395
395
  });
396
396
  const DatePicker_DatePicker = Object.assign(DatePicker_DatePickerRoot, {
@@ -33,18 +33,18 @@ const Dialog_DialogTrigger = /*#__PURE__*/ forwardRef(function({ asChild, classN
33
33
  return /*#__PURE__*/ jsx(Dialog.Trigger, {
34
34
  ref: ref,
35
35
  asChild: asChild,
36
- "data-slot": "dialog-trigger",
37
36
  className: cn(!asChild && 'inline-flex min-h-control-md cursor-pointer items-center justify-center rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground transition-[background-color,border-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:hover:bg-accent', className),
38
- ...props
37
+ ...props,
38
+ "data-slot": "dialog-trigger"
39
39
  });
40
40
  });
41
41
  const Dialog_DialogBackdrop = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
42
42
  return /*#__PURE__*/ jsx(OverlayPortal, {
43
43
  children: /*#__PURE__*/ jsx(Dialog.Backdrop, {
44
44
  ref: ref,
45
- "data-slot": "dialog-backdrop",
46
45
  className: cn('fixed inset-0 z-[calc(40+var(--layer-index,0))] bg-overlay backdrop-blur-[4px] data-[state=closed]:animate-[moduix-fade-out_200ms_ease-in-out_forwards] data-[state=open]:animate-[moduix-fade-in_200ms_ease-in-out] motion-reduce:animate-none', className),
47
- ...props
46
+ ...props,
47
+ "data-slot": "dialog-backdrop"
48
48
  })
49
49
  });
50
50
  });
@@ -52,43 +52,43 @@ const Dialog_DialogPositioner = /*#__PURE__*/ forwardRef(function({ className, .
52
52
  return /*#__PURE__*/ jsx(OverlayPortal, {
53
53
  children: /*#__PURE__*/ jsx(Dialog.Positioner, {
54
54
  ref: ref,
55
- "data-slot": "dialog-positioner",
56
55
  className: cn('fixed inset-0 z-[calc(50+var(--layer-index,0))] grid [scrollbar-gutter:stable_both-edges] place-items-center overflow-y-auto overscroll-contain p-4', className),
57
- ...props
56
+ ...props,
57
+ "data-slot": "dialog-positioner"
58
58
  })
59
59
  });
60
60
  });
61
61
  const Dialog_DialogContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
62
62
  return /*#__PURE__*/ jsx(Dialog.Content, {
63
63
  ref: ref,
64
- "data-slot": "dialog-content",
65
64
  className: cn("relative max-h-[calc(100dvh-2rem)] w-[min(28rem,calc(100vw-2rem))] max-w-full origin-top rounded-lg border border-border bg-popover p-6 text-popover-foreground shadow-lg outline-0 transition-[scale,translate] duration-200 ease-in-out after:pointer-events-none after:absolute after:inset-0 after:z-1 after:rounded-[inherit] after:bg-black/5 after:opacity-0 after:transition-opacity after:duration-200 after:ease-in-out after:content-[''] data-[has-nested]:[translate:0_calc(2.5rem*var(--nested-layer-count,0))] data-[has-nested]:[scale:calc(1-0.05*var(--nested-layer-count,0))] data-[has-nested]:after:opacity-100 data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:animate-none motion-reduce:transition-none", className),
66
- ...props
65
+ ...props,
66
+ "data-slot": "dialog-content"
67
67
  });
68
68
  });
69
69
  const Dialog_DialogTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
70
70
  return /*#__PURE__*/ jsx(Dialog.Title, {
71
71
  ref: ref,
72
- "data-slot": "dialog-title",
73
72
  className: cn('text-lg font-semibold text-popover-foreground', className),
74
- ...props
73
+ ...props,
74
+ "data-slot": "dialog-title"
75
75
  });
76
76
  });
77
77
  const Dialog_DialogDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
78
78
  return /*#__PURE__*/ jsx(Dialog.Description, {
79
79
  ref: ref,
80
- "data-slot": "dialog-description",
81
80
  className: cn('text-md text-muted-foreground', className),
82
- ...props
81
+ ...props,
82
+ "data-slot": "dialog-description"
83
83
  });
84
84
  });
85
85
  const Dialog_DialogCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
86
86
  return /*#__PURE__*/ jsx(Dialog.CloseTrigger, {
87
87
  ref: ref,
88
88
  asChild: asChild,
89
- "data-slot": "dialog-close-trigger",
90
89
  className: cn(!asChild && 'inline-flex min-h-control-md cursor-pointer items-center justify-center rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground transition-[background-color,border-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:hover:bg-accent', className),
91
- ...props
90
+ ...props,
91
+ "data-slot": "dialog-close-trigger"
92
92
  });
93
93
  });
94
94
  const Dialog_DialogCloseIcon = /*#__PURE__*/ forwardRef(function({ className, children, 'aria-label': ariaLabel = DEFAULT_CLOSE_BUTTON_LABEL, ...props }, ref) {
@@ -107,25 +107,25 @@ const Dialog_DialogCloseIcon = /*#__PURE__*/ forwardRef(function({ className, ch
107
107
  const Dialog_DialogHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
108
108
  return /*#__PURE__*/ jsx(ark.div, {
109
109
  ref: ref,
110
- "data-slot": "dialog-header",
111
110
  className: cn("grid grid-cols-[minmax(0,1fr)_auto] items-start gap-1 [&>[data-slot='dialog-close-trigger']]:col-start-2 [&>[data-slot='dialog-close-trigger']]:justify-self-end [&>[data-slot='dialog-description']]:col-span-2 [&>[data-slot='dialog-title']]:col-start-1", className),
112
- ...props
111
+ ...props,
112
+ "data-slot": "dialog-header"
113
113
  });
114
114
  });
115
115
  const Dialog_DialogBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
116
116
  return /*#__PURE__*/ jsx(ark.div, {
117
117
  ref: ref,
118
- "data-slot": "dialog-body",
119
118
  className: cn('mt-4 text-md text-muted-foreground', className),
120
- ...props
119
+ ...props,
120
+ "data-slot": "dialog-body"
121
121
  });
122
122
  });
123
123
  const Dialog_DialogFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
124
124
  return /*#__PURE__*/ jsx(ark.div, {
125
125
  ref: ref,
126
- "data-slot": "dialog-footer",
127
126
  className: cn('mt-6 flex justify-end gap-2', className),
128
- ...props
127
+ ...props,
128
+ "data-slot": "dialog-footer"
129
129
  });
130
130
  });
131
131
  const Dialog_Dialog = Object.assign(DialogRoot, {
@@ -43,18 +43,18 @@ const Drawer_DrawerTrigger = /*#__PURE__*/ forwardRef(function({ asChild, classN
43
43
  return /*#__PURE__*/ jsx(Drawer.Trigger, {
44
44
  ref: ref,
45
45
  asChild: asChild,
46
- "data-slot": "drawer-trigger",
47
46
  className: cn(!asChild && 'box-border inline-flex min-h-control-md cursor-pointer items-center justify-center rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground transition-[background-color,border-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:hover:bg-accent', className),
48
- ...props
47
+ ...props,
48
+ "data-slot": "drawer-trigger"
49
49
  });
50
50
  });
51
51
  const Drawer_DrawerBackdrop = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
52
52
  return /*#__PURE__*/ jsx(OverlayPortal, {
53
53
  children: /*#__PURE__*/ jsx(Drawer.Backdrop, {
54
54
  ref: ref,
55
- "data-slot": "drawer-backdrop",
56
55
  className: cn('fixed inset-0 z-[calc(40+var(--layer-index,0))] min-h-dvh bg-overlay backdrop-blur-xs [transition:opacity_calc(var(--drawer-swipe-strength,1)*450ms)_ease-out,backdrop-filter_calc(var(--drawer-swipe-strength,1)*450ms)_ease-out] data-[state=closed]:animate-moduix-drawer-backdrop-out data-[state=open]:animate-moduix-drawer-backdrop-in data-[state=open]:data-swiping:[transition-duration:0s] motion-reduce:[transition-duration:1ms] motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms] [&[hidden]:has(~[data-slot=drawer-positioner]:not([hidden]))]:block', className),
57
- ...props
56
+ ...props,
57
+ "data-slot": "drawer-backdrop"
58
58
  })
59
59
  });
60
60
  });
@@ -62,9 +62,9 @@ const Drawer_DrawerPositioner = /*#__PURE__*/ forwardRef(function({ className, .
62
62
  return /*#__PURE__*/ jsx(OverlayPortal, {
63
63
  children: /*#__PURE__*/ jsx(Drawer.Positioner, {
64
64
  ref: ref,
65
- "data-slot": "drawer-positioner",
66
65
  className: cn('fixed inset-0 z-[calc(50+var(--layer-index,0))] box-border flex items-end justify-center overflow-hidden overscroll-contain p-0 has-[>[data-slot=drawer-content][data-variant=island]]:pt-[max(1rem,env(safe-area-inset-top,0px))] has-[>[data-slot=drawer-content][data-variant=island]]:pr-[max(1rem,env(safe-area-inset-right,0px))] has-[>[data-slot=drawer-content][data-variant=island]]:pb-[max(1rem,env(safe-area-inset-bottom,0px))] has-[>[data-slot=drawer-content][data-variant=island]]:pl-[max(1rem,env(safe-area-inset-left,0px))] data-[swipe-direction=left]:items-stretch data-[swipe-direction=left]:justify-start data-[swipe-direction=right]:items-stretch data-[swipe-direction=right]:justify-end data-[swipe-direction=up]:items-start [&:not([hidden])_[data-slot=drawer-content][hidden]]:flex', className),
67
- ...props
66
+ ...props,
67
+ "data-slot": "drawer-positioner"
68
68
  })
69
69
  });
70
70
  });
@@ -72,51 +72,51 @@ const Drawer_DrawerContent = /*#__PURE__*/ forwardRef(function({ className, vari
72
72
  const rootVariant = useContext(DrawerVariantContext);
73
73
  return /*#__PURE__*/ jsx(Drawer.Content, {
74
74
  ref: ref,
75
- "data-slot": "drawer-content",
76
75
  "data-variant": variant ?? rootVariant,
77
76
  className: cn("group/drawer relative box-border flex h-full max-h-[80dvh] w-full max-w-[100vw] origin-bottom [translate:0_0] [scale:1] flex-col overscroll-contain rounded-t-xl rounded-b-none border border-border bg-popover px-6 pt-3 pb-[calc(1rem+env(safe-area-inset-bottom,0px))] text-popover-foreground shadow-lg outline-0 [transition:transform_calc(var(--drawer-swipe-strength,1)*450ms)_cubic-bezier(0,0,0.2,1),scale_450ms_cubic-bezier(0.32,0.72,0,1),translate_450ms_cubic-bezier(0.32,0.72,0,1)] after:pointer-events-none after:absolute after:inset-x-0 after:top-full after:h-control-xl after:bg-inherit after:content-[''] data-dragging:select-none data-nested-drawer-swiping:[transition-duration:0s] data-[nested-drawer-open]:[scale:calc(1-0.05*var(--nested-drawers,0))] data-[state=closed]:animate-moduix-drawer-content-out-down data-[state=open]:animate-moduix-drawer-content-in-down data-[state=open]:data-swiping:[transition-duration:0s] data-[swipe-direction=down]:data-[nested-drawer-open]:[translate:0_calc(-1*40px*var(--nested-drawers,0))] data-[swipe-direction=left]:h-full data-[swipe-direction=left]:max-h-none data-[swipe-direction=left]:w-[min(22rem,calc(100vw-2rem))] data-[swipe-direction=left]:origin-left data-[swipe-direction=left]:rounded-s-none data-[swipe-direction=left]:rounded-e-xl data-[swipe-direction=left]:p-6 data-[swipe-direction=left]:after:inset-x-auto data-[swipe-direction=left]:after:inset-y-0 data-[swipe-direction=left]:after:top-0 data-[swipe-direction=left]:after:right-full data-[swipe-direction=left]:after:h-auto data-[swipe-direction=left]:after:w-control-xl data-[swipe-direction=left]:data-[nested-drawer-open]:[translate:calc(40px*var(--nested-drawers,0))_0] data-[swipe-direction=left]:data-[state=closed]:animate-moduix-drawer-content-out-left data-[swipe-direction=left]:data-[state=open]:animate-moduix-drawer-content-in-left data-[swipe-direction=right]:h-full data-[swipe-direction=right]:max-h-none data-[swipe-direction=right]:w-[min(22rem,calc(100vw-2rem))] data-[swipe-direction=right]:origin-right data-[swipe-direction=right]:rounded-s-xl data-[swipe-direction=right]:rounded-e-none data-[swipe-direction=right]:p-6 data-[swipe-direction=right]:after:inset-x-auto data-[swipe-direction=right]:after:inset-y-0 data-[swipe-direction=right]:after:top-0 data-[swipe-direction=right]:after:left-full data-[swipe-direction=right]:after:h-auto data-[swipe-direction=right]:after:w-control-xl data-[swipe-direction=right]:data-[nested-drawer-open]:[translate:calc(-1*40px*var(--nested-drawers,0))_0] data-[swipe-direction=right]:data-[state=closed]:animate-moduix-drawer-content-out-right data-[swipe-direction=right]:data-[state=open]:animate-moduix-drawer-content-in-right data-[swipe-direction=up]:origin-top data-[swipe-direction=up]:rounded-t-none data-[swipe-direction=up]:rounded-b-xl data-[swipe-direction=up]:pt-[calc(1rem+env(safe-area-inset-top,0px))] data-[swipe-direction=up]:pb-4 data-[swipe-direction=up]:after:top-auto data-[swipe-direction=up]:after:bottom-full data-[swipe-direction=up]:data-[nested-drawer-open]:[translate:0_calc(40px*var(--nested-drawers,0))] data-[swipe-direction=up]:data-[state=closed]:animate-moduix-drawer-content-out-up data-[swipe-direction=up]:data-[state=open]:animate-moduix-drawer-content-in-up data-[variant=island]:rounded-xl data-[variant=island]:after:hidden motion-reduce:[transition-duration:1ms] motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms]", className),
78
- ...props
77
+ ...props,
78
+ "data-slot": "drawer-content"
79
79
  });
80
80
  });
81
81
  const Drawer_DrawerGrabber = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
82
82
  return /*#__PURE__*/ jsx(Drawer.Grabber, {
83
83
  ref: ref,
84
- "data-slot": "drawer-grabber",
85
84
  className: cn('group/grabber flex w-full shrink-0 cursor-grab items-center justify-center pb-1 select-none group-data-[swipe-direction=left]/drawer:hidden group-data-[swipe-direction=right]/drawer:hidden active:cursor-grabbing', className),
86
- ...props
85
+ ...props,
86
+ "data-slot": "drawer-grabber"
87
87
  });
88
88
  });
89
89
  const Drawer_DrawerGrabberIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
90
90
  return /*#__PURE__*/ jsx(Drawer.GrabberIndicator, {
91
91
  ref: ref,
92
- "data-slot": "drawer-grabber-indicator",
93
92
  className: cn('h-1 w-12 rounded-full bg-muted-foreground opacity-[0.45] transition-[background-color,opacity] duration-200 ease-in-out motion-reduce:transition-none [@media(hover:hover)]:group-hover/grabber:opacity-70', className),
94
- ...props
93
+ ...props,
94
+ "data-slot": "drawer-grabber-indicator"
95
95
  });
96
96
  });
97
97
  const Drawer_DrawerTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
98
98
  return /*#__PURE__*/ jsx(Drawer.Title, {
99
99
  ref: ref,
100
- "data-slot": "drawer-title",
101
100
  className: cn('text-lg font-semibold text-popover-foreground', className),
102
- ...props
101
+ ...props,
102
+ "data-slot": "drawer-title"
103
103
  });
104
104
  });
105
105
  const Drawer_DrawerDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
106
106
  return /*#__PURE__*/ jsx(Drawer.Description, {
107
107
  ref: ref,
108
- "data-slot": "drawer-description",
109
108
  className: cn('text-md leading-6 text-muted-foreground', className),
110
- ...props
109
+ ...props,
110
+ "data-slot": "drawer-description"
111
111
  });
112
112
  });
113
113
  const Drawer_DrawerCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
114
114
  return /*#__PURE__*/ jsx(Drawer.CloseTrigger, {
115
115
  ref: ref,
116
116
  asChild: asChild,
117
- "data-slot": "drawer-close-trigger",
118
117
  className: cn(!asChild && 'box-border inline-flex min-h-control-md cursor-pointer items-center justify-center rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground transition-[background-color,border-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:hover:bg-accent', className),
119
- ...props
118
+ ...props,
119
+ "data-slot": "drawer-close-trigger"
120
120
  });
121
121
  });
122
122
  const Drawer_DrawerCloseIcon = /*#__PURE__*/ forwardRef(function({ className, children, 'aria-label': ariaLabel = DEFAULT_CLOSE_BUTTON_LABEL, ...props }, ref) {
@@ -135,46 +135,46 @@ const Drawer_DrawerCloseIcon = /*#__PURE__*/ forwardRef(function({ className, ch
135
135
  const Drawer_DrawerSwipeArea = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
136
136
  return /*#__PURE__*/ jsx(Drawer.SwipeArea, {
137
137
  ref: ref,
138
- "data-slot": "drawer-swipe-area",
139
138
  className: cn('fixed z-50 touch-none data-disabled:pointer-events-none data-[swipe-direction=down]:start-0 data-[swipe-direction=down]:end-0 data-[swipe-direction=down]:top-0 data-[swipe-direction=down]:h-10 data-[swipe-direction=left]:end-0 data-[swipe-direction=left]:top-0 data-[swipe-direction=left]:bottom-0 data-[swipe-direction=left]:w-10 data-[swipe-direction=right]:start-0 data-[swipe-direction=right]:top-0 data-[swipe-direction=right]:bottom-0 data-[swipe-direction=right]:w-10 data-[swipe-direction=up]:start-0 data-[swipe-direction=up]:end-0 data-[swipe-direction=up]:bottom-0 data-[swipe-direction=up]:h-10', className),
140
- ...props
139
+ ...props,
140
+ "data-slot": "drawer-swipe-area"
141
141
  });
142
142
  });
143
143
  const Drawer_DrawerIndent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
144
144
  return /*#__PURE__*/ jsx(Drawer.Indent, {
145
145
  ref: ref,
146
- "data-slot": "drawer-indent",
147
146
  className: cn('relative origin-top [translate:0_0] [scale:1] transition-[transform,border-radius] duration-[450ms] ease-spring data-active:[translate:0_calc(8px*(1-var(--drawer-swipe-progress,0)))] data-active:[scale:calc(0.97+(1-0.97)*var(--drawer-swipe-progress,0))] data-active:rounded-t-lg data-active:rounded-b-none motion-reduce:[transition-duration:1ms]', className),
148
- ...props
147
+ ...props,
148
+ "data-slot": "drawer-indent"
149
149
  });
150
150
  });
151
151
  const Drawer_DrawerIndentBackground = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
152
152
  return /*#__PURE__*/ jsx(Drawer.IndentBackground, {
153
153
  ref: ref,
154
- "data-slot": "drawer-indent-background",
155
154
  className: cn('pointer-events-none absolute inset-0 bg-foreground opacity-0 transition-opacity duration-[450ms] ease-spring data-active:opacity-[calc(1-var(--drawer-swipe-progress,0))] motion-reduce:[transition-duration:1ms]', className),
156
- ...props
155
+ ...props,
156
+ "data-slot": "drawer-indent-background"
157
157
  });
158
158
  });
159
159
  function DrawerHeader({ className, ...props }) {
160
160
  return /*#__PURE__*/ jsx(ark.div, {
161
- "data-slot": "drawer-header",
162
161
  className: cn("grid grid-cols-[minmax(0,1fr)_auto] items-start gap-1 [&>[data-slot='drawer-close-icon']]:col-start-2 [&>[data-slot='drawer-close-icon']]:justify-self-end [&>[data-slot='drawer-close-trigger']]:col-start-2 [&>[data-slot='drawer-close-trigger']]:justify-self-end [&>[data-slot='drawer-description']]:col-span-2 [&>[data-slot='drawer-title']]:col-start-1", className),
163
- ...props
162
+ ...props,
163
+ "data-slot": "drawer-header"
164
164
  });
165
165
  }
166
166
  function DrawerBody({ className, ...props }) {
167
167
  return /*#__PURE__*/ jsx(ark.div, {
168
- "data-slot": "drawer-body",
169
168
  className: cn('mt-4 min-h-0 overflow-y-auto text-md leading-6 text-muted-foreground', className),
170
- ...props
169
+ ...props,
170
+ "data-slot": "drawer-body"
171
171
  });
172
172
  }
173
173
  function DrawerFooter({ className, ...props }) {
174
174
  return /*#__PURE__*/ jsx(ark.div, {
175
- "data-slot": "drawer-footer",
176
175
  className: cn('mt-6 flex justify-end gap-2', className),
177
- ...props
176
+ ...props,
177
+ "data-slot": "drawer-footer"
178
178
  });
179
179
  }
180
180
  const Drawer_Drawer = Object.assign(DrawerRoot, {