@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
@@ -13,11 +13,11 @@ const Combobox_ComboboxRoot = /*#__PURE__*/ forwardRef(function({ className, laz
13
13
  portalRef: portalRef,
14
14
  children: /*#__PURE__*/ jsx(Combobox.Root, {
15
15
  ref: ref,
16
- "data-slot": "combobox-root",
17
16
  className: cn('box-border flex w-64 max-w-full min-w-0 flex-col gap-1.5 text-foreground', className),
18
17
  lazyMount: lazyMount,
19
18
  unmountOnExit: unmountOnExit,
20
- ...props
19
+ ...props,
20
+ "data-slot": "combobox-root"
21
21
  })
22
22
  });
23
23
  });
@@ -27,37 +27,37 @@ const Combobox_ComboboxRootProvider = /*#__PURE__*/ forwardRef(function({ classN
27
27
  portalRef: portalRef,
28
28
  children: /*#__PURE__*/ jsx(Combobox.RootProvider, {
29
29
  ref: ref,
30
- "data-slot": "combobox-root-provider",
31
30
  className: cn('box-border flex w-64 max-w-full min-w-0 flex-col gap-1.5 text-foreground', className),
32
31
  lazyMount: lazyMount,
33
32
  unmountOnExit: unmountOnExit,
34
- ...props
33
+ ...props,
34
+ "data-slot": "combobox-root-provider"
35
35
  })
36
36
  });
37
37
  });
38
38
  const Combobox_ComboboxLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
39
39
  return /*#__PURE__*/ jsx(Combobox.Label, {
40
40
  ref: ref,
41
- "data-slot": "combobox-label",
42
41
  className: cn('inline-flex items-center text-sm font-medium text-foreground select-none data-disabled:opacity-50', className),
43
- ...props
42
+ ...props,
43
+ "data-slot": "combobox-label"
44
44
  });
45
45
  });
46
46
  const Combobox_ComboboxControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
47
47
  return /*#__PURE__*/ jsx(Combobox.Control, {
48
48
  ref: ref,
49
- "data-slot": "combobox-control",
50
49
  className: cn('group/combobox-control relative flex w-full min-w-0 items-center rounded-md border border-border bg-background text-foreground outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,outline-color] duration-200 ease-in-out data-disabled:opacity-50 data-focus:border-ring data-focus:outline-ring data-invalid:border-destructive data-invalid:outline-destructive data-[state=open]:border-ring data-[state=open]:outline-ring motion-reduce:transition-none', className),
51
- ...props
50
+ ...props,
51
+ "data-slot": "combobox-control"
52
52
  });
53
53
  });
54
54
  const Combobox_ComboboxInput = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
55
55
  return /*#__PURE__*/ jsx(Combobox.Input, {
56
56
  ref: ref,
57
- "data-slot": "combobox-input",
58
57
  asChild: asChild,
59
58
  className: cn(!asChild && 'm-0 box-border h-control-md w-full min-w-0 rounded-[inherit] border-0 bg-transparent px-3.5 text-inherit outline-0 [font:inherit] group-has-[>[data-slot=combobox-clear-trigger]]/combobox-control:pe-[4.375rem] group-has-[>[data-slot=combobox-trigger]]/combobox-control:pe-11 group-has-[>[data-slot=combobox-clear-trigger]]/combobox-control:group-has-[>[data-slot=combobox-trigger]]/combobox-control:pe-[4.375rem] placeholder:text-muted-foreground', className),
60
- ...props
59
+ ...props,
60
+ "data-slot": "combobox-input"
61
61
  });
62
62
  });
63
63
  const Combobox_ComboboxClearTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }, ref) {
@@ -65,11 +65,11 @@ const Combobox_ComboboxClearTrigger = /*#__PURE__*/ forwardRef(function({ asChil
65
65
  return /*#__PURE__*/ jsx(Combobox.ClearTrigger, {
66
66
  ref: ref,
67
67
  asChild: true,
68
- "data-slot": "combobox-clear-trigger",
69
68
  className: triggerClassName,
70
69
  "aria-label": asChild ? ariaLabel : void 0,
71
70
  "aria-labelledby": asChild ? ariaLabelledBy : void 0,
72
71
  ...props,
72
+ "data-slot": "combobox-clear-trigger",
73
73
  children: asChild ? children : /*#__PURE__*/ jsx(CloseButton.Root, {
74
74
  "aria-label": ariaLabel ?? (null == ariaLabelledBy ? 'Clear selection' : void 0),
75
75
  "aria-labelledby": ariaLabelledBy,
@@ -80,9 +80,9 @@ const Combobox_ComboboxClearTrigger = /*#__PURE__*/ forwardRef(function({ asChil
80
80
  const Combobox_ComboboxTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
81
81
  return /*#__PURE__*/ jsx(Combobox.Trigger, {
82
82
  ref: ref,
83
- "data-slot": "combobox-trigger",
84
83
  className: cn('absolute end-2 top-1/2 m-0 box-border inline-flex size-control-xs shrink-0 -translate-y-1/2 cursor-pointer items-center justify-center rounded-sm border-0 bg-transparent p-0 [line-height:0] text-muted-foreground transition-[background-color,color,opacity] duration-200 ease-in-out focus-visible:outline-1 focus-visible:outline-offset-1 focus-visible:outline-ring disabled:cursor-default data-disabled:cursor-default 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),
85
84
  ...props,
85
+ "data-slot": "combobox-trigger",
86
86
  children: children ?? /*#__PURE__*/ jsx(ChevronUpDownIcon, {})
87
87
  });
88
88
  });
@@ -90,82 +90,82 @@ const Combobox_ComboboxPositioner = /*#__PURE__*/ forwardRef(function({ classNam
90
90
  return /*#__PURE__*/ jsx(OverlayPortal, {
91
91
  children: /*#__PURE__*/ jsx(Combobox.Positioner, {
92
92
  ref: ref,
93
- "data-slot": "combobox-positioner",
94
93
  className: cn('z-[var(--z-index)] outline-0', className),
95
- ...props
94
+ ...props,
95
+ "data-slot": "combobox-positioner"
96
96
  })
97
97
  });
98
98
  });
99
99
  const Combobox_ComboboxContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
100
100
  return /*#__PURE__*/ jsx(Combobox.Content, {
101
101
  ref: ref,
102
- "data-slot": "combobox-content",
103
102
  className: cn('z-[calc(60+var(--layer-index,0))] box-border flex max-h-[min(24rem,var(--available-height))] max-w-[var(--available-width)] min-w-[var(--reference-width)] origin-[var(--transform-origin)] scroll-py-1 flex-col overflow-auto overscroll-contain rounded-md border border-border bg-popover py-1 text-popover-foreground shadow-lg outline-0 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),
104
- ...props
103
+ ...props,
104
+ "data-slot": "combobox-content"
105
105
  });
106
106
  });
107
107
  const Combobox_ComboboxEmpty = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
108
108
  return /*#__PURE__*/ jsx(Combobox.Empty, {
109
109
  ref: ref,
110
- "data-slot": "combobox-empty",
111
110
  className: cn('px-4 py-1 text-sm text-muted-foreground', className),
112
- ...props
111
+ ...props,
112
+ "data-slot": "combobox-empty"
113
113
  });
114
114
  });
115
115
  const Combobox_ComboboxStatus = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
116
116
  return /*#__PURE__*/ jsx(ark.div, {
117
117
  ref: ref,
118
- "data-slot": "combobox-status",
119
118
  className: cn('px-4 py-1 text-sm text-muted-foreground', className),
120
- ...props
119
+ ...props,
120
+ "data-slot": "combobox-status"
121
121
  });
122
122
  });
123
123
  const Combobox_ComboboxList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
124
124
  return /*#__PURE__*/ jsx(Combobox.List, {
125
125
  ref: ref,
126
- "data-slot": "combobox-list",
127
126
  className: cn('flex min-h-0 flex-col outline-0 data-empty:hidden', className),
128
- ...props
127
+ ...props,
128
+ "data-slot": "combobox-list"
129
129
  });
130
130
  });
131
131
  const Combobox_ComboboxItemGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
132
132
  return /*#__PURE__*/ jsx(Combobox.ItemGroup, {
133
133
  ref: ref,
134
- "data-slot": "combobox-item-group",
135
134
  className: cn('flex flex-col [&+&]:mt-2', className),
136
- ...props
135
+ ...props,
136
+ "data-slot": "combobox-item-group"
137
137
  });
138
138
  });
139
139
  const Combobox_ComboboxItemGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
140
140
  return /*#__PURE__*/ jsx(Combobox.ItemGroupLabel, {
141
141
  ref: ref,
142
- "data-slot": "combobox-item-group-label",
143
142
  className: cn('sticky -top-1 z-1 bg-popover px-2.5 py-1 text-xs font-normal text-muted-foreground', className),
144
- ...props
143
+ ...props,
144
+ "data-slot": "combobox-item-group-label"
145
145
  });
146
146
  });
147
147
  const Combobox_ComboboxItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
148
148
  return /*#__PURE__*/ jsx(Combobox.Item, {
149
149
  ref: ref,
150
- "data-slot": "combobox-item",
151
150
  className: cn('relative mx-1 box-border flex min-h-control-sm w-[calc(100%-0.5rem)] cursor-default items-center justify-between gap-2 rounded-sm border-0 bg-transparent px-3 py-1 text-sm text-popover-foreground outline-0 select-none data-disabled:pointer-events-none data-disabled:text-muted-foreground data-disabled:opacity-50 data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[state=checked]:text-popover-foreground', className),
152
- ...props
151
+ ...props,
152
+ "data-slot": "combobox-item"
153
153
  });
154
154
  });
155
155
  const Combobox_ComboboxItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
156
156
  return /*#__PURE__*/ jsx(Combobox.ItemText, {
157
157
  ref: ref,
158
- "data-slot": "combobox-item-text",
159
158
  className: cn('min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap', className),
160
- ...props
159
+ ...props,
160
+ "data-slot": "combobox-item-text"
161
161
  });
162
162
  });
163
163
  const Combobox_ComboboxItemIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
164
164
  return /*#__PURE__*/ jsx(Combobox.ItemIndicator, {
165
165
  ref: ref,
166
- "data-slot": "combobox-item-indicator",
167
166
  className: cn('inline-flex size-3 shrink-0 items-center justify-center [&>svg]:size-full', className),
168
167
  ...props,
168
+ "data-slot": "combobox-item-indicator",
169
169
  children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
170
170
  });
171
171
  });
@@ -60,18 +60,18 @@ const CommandPalette_CommandPaletteTrigger = /*#__PURE__*/ forwardRef(function({
60
60
  return /*#__PURE__*/ jsx(Dialog.Trigger, {
61
61
  ref: ref,
62
62
  asChild: asChild,
63
- "data-slot": "command-palette-trigger",
64
63
  className: cn(!asChild && 'inline-flex min-h-control-md cursor-pointer items-center justify-center gap-2 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 [@media(hover:hover)]:hover:bg-accent', className),
65
- ...props
64
+ ...props,
65
+ "data-slot": "command-palette-trigger"
66
66
  });
67
67
  });
68
68
  const CommandPalette_CommandPaletteBackdrop = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
69
69
  return /*#__PURE__*/ jsx(OverlayPortal, {
70
70
  children: /*#__PURE__*/ jsx(Dialog.Backdrop, {
71
71
  ref: ref,
72
- "data-slot": "command-palette-backdrop",
73
72
  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),
74
- ...props
73
+ ...props,
74
+ "data-slot": "command-palette-backdrop"
75
75
  })
76
76
  });
77
77
  });
@@ -79,18 +79,18 @@ const CommandPalette_CommandPalettePositioner = /*#__PURE__*/ forwardRef(functio
79
79
  return /*#__PURE__*/ jsx(OverlayPortal, {
80
80
  children: /*#__PURE__*/ jsx(Dialog.Positioner, {
81
81
  ref: ref,
82
- "data-slot": "command-palette-positioner",
83
82
  className: cn('fixed inset-0 z-[calc(50+var(--layer-index,0))] grid items-start justify-items-center overflow-hidden overscroll-contain px-4 pt-[10dvh] pb-4', className),
84
- ...props
83
+ ...props,
84
+ "data-slot": "command-palette-positioner"
85
85
  })
86
86
  });
87
87
  });
88
88
  const CommandPalette_CommandPaletteContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
89
89
  return /*#__PURE__*/ jsx(Dialog.Content, {
90
90
  ref: ref,
91
- "data-slot": "command-palette-content",
92
91
  className: cn('flex max-h-[min(34rem,calc(100dvh-5rem))] w-[min(37.5rem,calc(100vw-2rem))] origin-top flex-col overflow-hidden rounded-lg border border-border/84 bg-popover bg-linear-to-b from-white/4 to-transparent text-popover-foreground shadow-lg outline-0 data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:animate-none', className),
93
- ...props
92
+ ...props,
93
+ "data-slot": "command-palette-content"
94
94
  });
95
95
  });
96
96
  const CommandPalette_CommandPalettePanel = /*#__PURE__*/ forwardRef(function({ children, ...props }, ref) {
@@ -112,33 +112,33 @@ const CommandPalette_CommandPalettePanel = /*#__PURE__*/ forwardRef(function({ c
112
112
  const CommandPalette_CommandPaletteTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
113
113
  return /*#__PURE__*/ jsx(Dialog.Title, {
114
114
  ref: ref,
115
- "data-slot": "command-palette-title",
116
115
  className: cn('text-md leading-6 font-semibold text-popover-foreground', className),
117
- ...props
116
+ ...props,
117
+ "data-slot": "command-palette-title"
118
118
  });
119
119
  });
120
120
  const CommandPalette_CommandPaletteDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
121
121
  return /*#__PURE__*/ jsx(Dialog.Description, {
122
122
  ref: ref,
123
- "data-slot": "command-palette-description",
124
123
  className: cn('text-sm leading-5 text-muted-foreground', className),
125
- ...props
124
+ ...props,
125
+ "data-slot": "command-palette-description"
126
126
  });
127
127
  });
128
128
  const CommandPalette_CommandPaletteHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
129
129
  return /*#__PURE__*/ jsx(ark.div, {
130
130
  ref: ref,
131
- "data-slot": "command-palette-header",
132
131
  className: cn('grid gap-1 px-4 pt-4', className),
133
- ...props
132
+ ...props,
133
+ "data-slot": "command-palette-header"
134
134
  });
135
135
  });
136
136
  const CommandPalette_CommandPaletteBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
137
137
  return /*#__PURE__*/ jsx(ark.div, {
138
138
  ref: ref,
139
- "data-slot": "command-palette-body",
140
139
  className: cn('flex min-h-0 flex-1 flex-col', className),
141
- ...props
140
+ ...props,
141
+ "data-slot": "command-palette-body"
142
142
  });
143
143
  });
144
144
  const CommandPalette_CommandPaletteCombobox = /*#__PURE__*/ forwardRef(function({ className, open = true, inputBehavior = 'autohighlight', selectionBehavior = 'preserve', closeOnSelect = true, disableLayer = true, onSelect, ...props }, ref) {
@@ -149,7 +149,6 @@ const CommandPalette_CommandPaletteCombobox = /*#__PURE__*/ forwardRef(function(
149
149
  };
150
150
  return /*#__PURE__*/ jsx(Combobox.Root, {
151
151
  ref: ref,
152
- "data-slot": "command-palette-combobox",
153
152
  className: cn('flex min-h-0 flex-1 flex-col overflow-hidden', className),
154
153
  open: open,
155
154
  inputBehavior: inputBehavior,
@@ -157,23 +156,24 @@ const CommandPalette_CommandPaletteCombobox = /*#__PURE__*/ forwardRef(function(
157
156
  closeOnSelect: closeOnSelect,
158
157
  disableLayer: disableLayer,
159
158
  onSelect: handleSelect,
160
- ...props
159
+ ...props,
160
+ "data-slot": "command-palette-combobox"
161
161
  });
162
162
  });
163
163
  const CommandPalette_CommandPaletteControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
164
164
  return /*#__PURE__*/ jsx(Combobox.Control, {
165
165
  ref: ref,
166
- "data-slot": "command-palette-control",
167
166
  className: cn('relative mx-3 mt-3 flex min-h-control-md flex-none items-center gap-2 rounded-md border border-border bg-background px-3 py-1 text-foreground transition-[background-color,border-color] duration-200 ease-in-out has-[[aria-invalid=true]]:border-destructive has-[[data-invalid]]:border-destructive', className),
168
- ...props
167
+ ...props,
168
+ "data-slot": "command-palette-control"
169
169
  });
170
170
  });
171
171
  const CommandPalette_CommandPaletteInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
172
172
  return /*#__PURE__*/ jsx(Combobox.Input, {
173
173
  ref: ref,
174
- "data-slot": "command-palette-input",
175
174
  className: cn('h-auto w-full min-w-0 flex-1 bg-transparent text-sm leading-5 text-inherit outline-0 placeholder:text-muted-foreground data-invalid:text-destructive', className),
176
- ...props
175
+ ...props,
176
+ "data-slot": "command-palette-input"
177
177
  });
178
178
  });
179
179
  const CommandPalette_CommandPaletteSearch = /*#__PURE__*/ forwardRef(function({ 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }, ref) {
@@ -218,9 +218,9 @@ const CommandPalette_CommandPaletteClearTrigger = /*#__PURE__*/ forwardRef(funct
218
218
  const CommandPalette_CommandPaletteList = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
219
219
  return /*#__PURE__*/ jsx(Combobox.Content, {
220
220
  ref: ref,
221
- "data-slot": "command-palette-list",
222
221
  className: cn('group/list flex min-h-0 flex-1 overflow-hidden outline-0', className),
223
222
  ...props,
223
+ "data-slot": "command-palette-list",
224
224
  children: /*#__PURE__*/ jsx(ScrollArea, {
225
225
  "data-slot": "command-palette-scroll-area",
226
226
  className: "h-auto min-h-0 flex-1",
@@ -239,106 +239,106 @@ const CommandPalette_CommandPaletteList = /*#__PURE__*/ forwardRef(function({ cl
239
239
  const CommandPalette_CommandPaletteEmpty = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
240
240
  return /*#__PURE__*/ jsx(Combobox.Empty, {
241
241
  ref: ref,
242
- "data-slot": "command-palette-empty",
243
242
  className: cn('[&:not(:empty)]:px-4 [&:not(:empty)]:py-3 [&:not(:empty)]:text-sm [&:not(:empty)]:leading-5 [&:not(:empty)]:text-muted-foreground', className),
244
- ...props
243
+ ...props,
244
+ "data-slot": "command-palette-empty"
245
245
  });
246
246
  });
247
247
  const CommandPalette_CommandPaletteItemGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
248
248
  return /*#__PURE__*/ jsx(Combobox.ItemGroup, {
249
249
  ref: ref,
250
- "data-slot": "command-palette-item-group",
251
250
  className: cn('grid gap-1 [&:not(:last-child)]:pb-2', className),
252
- ...props
251
+ ...props,
252
+ "data-slot": "command-palette-item-group"
253
253
  });
254
254
  });
255
255
  const CommandPalette_CommandPaletteItemGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
256
256
  return /*#__PURE__*/ jsx(Combobox.ItemGroupLabel, {
257
257
  ref: ref,
258
- "data-slot": "command-palette-item-group-label",
259
258
  className: cn('sticky top-0 z-1 block bg-popover px-3 py-1 text-xs leading-4 font-normal text-muted-foreground', className),
260
- ...props
259
+ ...props,
260
+ "data-slot": "command-palette-item-group-label"
261
261
  });
262
262
  });
263
263
  const CommandPalette_CommandPaletteItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
264
264
  return /*#__PURE__*/ jsx(Combobox.Item, {
265
265
  ref: ref,
266
- "data-slot": "command-palette-item",
267
266
  className: cn('relative z-0 grid min-h-control-sm cursor-default grid-cols-[auto_minmax(0,1fr)_auto_auto] items-center gap-3 rounded-md px-3 py-1 text-sm leading-5 text-popover-foreground outline-0 select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-highlighted:bg-accent data-highlighted:text-foreground data-[state=checked]:text-foreground', className),
268
- ...props
267
+ ...props,
268
+ "data-slot": "command-palette-item"
269
269
  });
270
270
  });
271
271
  const CommandPalette_CommandPaletteItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
272
272
  return /*#__PURE__*/ jsx(Combobox.ItemText, {
273
273
  ref: ref,
274
- "data-slot": "command-palette-item-text",
275
274
  className: cn('grid min-w-0 gap-1', className),
276
- ...props
275
+ ...props,
276
+ "data-slot": "command-palette-item-text"
277
277
  });
278
278
  });
279
279
  const CommandPalette_CommandPaletteItemIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
280
280
  return /*#__PURE__*/ jsx(Combobox.ItemIndicator, {
281
281
  ref: ref,
282
- "data-slot": "command-palette-item-indicator",
283
282
  className: cn('inline-flex size-8 items-center justify-center justify-self-end rounded-md border border-transparent bg-transparent text-muted-foreground [&>svg]:size-4 [&>svg]:shrink-0', className),
284
283
  ...props,
284
+ "data-slot": "command-palette-item-indicator",
285
285
  children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
286
286
  });
287
287
  });
288
288
  const CommandPalette_CommandPaletteItemIcon = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
289
289
  return /*#__PURE__*/ jsx(ark.span, {
290
290
  ref: ref,
291
- "data-slot": "command-palette-item-icon",
292
291
  className: cn('inline-flex size-8 items-center justify-center rounded-md border border-border bg-muted text-muted-foreground [&>svg]:size-4 [&>svg]:shrink-0', className),
293
- ...props
292
+ ...props,
293
+ "data-slot": "command-palette-item-icon"
294
294
  });
295
295
  });
296
296
  const CommandPalette_CommandPaletteItemLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
297
297
  return /*#__PURE__*/ jsx(ark.span, {
298
298
  ref: ref,
299
- "data-slot": "command-palette-item-label",
300
299
  className: cn('min-w-0 overflow-hidden font-medium text-ellipsis whitespace-nowrap', className),
301
- ...props
300
+ ...props,
301
+ "data-slot": "command-palette-item-label"
302
302
  });
303
303
  });
304
304
  const CommandPalette_CommandPaletteItemDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
305
305
  return /*#__PURE__*/ jsx(ark.span, {
306
306
  ref: ref,
307
- "data-slot": "command-palette-item-description",
308
307
  className: cn('min-w-0 overflow-hidden text-xs leading-4 text-ellipsis whitespace-nowrap text-muted-foreground', className),
309
- ...props
308
+ ...props,
309
+ "data-slot": "command-palette-item-description"
310
310
  });
311
311
  });
312
312
  const CommandPalette_CommandPaletteItemMeta = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
313
313
  return /*#__PURE__*/ jsx(ark.span, {
314
314
  ref: ref,
315
- "data-slot": "command-palette-item-meta",
316
315
  className: cn('justify-self-end text-xs leading-4 whitespace-nowrap text-muted-foreground', className),
317
- ...props
316
+ ...props,
317
+ "data-slot": "command-palette-item-meta"
318
318
  });
319
319
  });
320
320
  const CommandPalette_CommandPaletteSeparator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
321
321
  return /*#__PURE__*/ jsx(ark.div, {
322
322
  ref: ref,
323
323
  role: "separator",
324
- "data-slot": "command-palette-separator",
325
324
  className: cn('mx-2 my-2 h-px bg-border', className),
326
- ...props
325
+ ...props,
326
+ "data-slot": "command-palette-separator"
327
327
  });
328
328
  });
329
329
  const CommandPalette_CommandPaletteFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
330
330
  return /*#__PURE__*/ jsx(ark.div, {
331
331
  ref: ref,
332
- "data-slot": "command-palette-footer",
333
332
  className: cn('flex flex-none items-center justify-between gap-3 border-t border-border px-4 py-2 text-xs leading-4 text-muted-foreground', className),
334
- ...props
333
+ ...props,
334
+ "data-slot": "command-palette-footer"
335
335
  });
336
336
  });
337
337
  function CommandPaletteKbd({ className, ...props }) {
338
338
  return /*#__PURE__*/ jsx(Kbd.Root, {
339
- "data-slot": "command-palette-kbd",
340
339
  className: cn('min-h-5 min-w-5 rounded-sm px-1 text-xs leading-4 text-muted-foreground', className),
341
- ...props
340
+ ...props,
341
+ "data-slot": "command-palette-kbd"
342
342
  });
343
343
  }
344
344
  const CommandPalette = Object.assign(CommandPaletteRoot, {
@@ -24,7 +24,7 @@ const containerVariants = cva('w-full min-w-0 mx-auto', {
24
24
  {
25
25
  size: 'xs',
26
26
  gutter: 'none',
27
- class: 'max-w-none'
27
+ class: 'max-w-[40rem]'
28
28
  },
29
29
  {
30
30
  size: 'xs',
@@ -39,7 +39,7 @@ const containerVariants = cva('w-full min-w-0 mx-auto', {
39
39
  {
40
40
  size: 'sm',
41
41
  gutter: 'none',
42
- class: 'max-w-none'
42
+ class: 'max-w-[48rem]'
43
43
  },
44
44
  {
45
45
  size: 'sm',
@@ -54,7 +54,7 @@ const containerVariants = cva('w-full min-w-0 mx-auto', {
54
54
  {
55
55
  size: 'md',
56
56
  gutter: 'none',
57
- class: 'max-w-none'
57
+ class: 'max-w-[64rem]'
58
58
  },
59
59
  {
60
60
  size: 'md',
@@ -69,7 +69,7 @@ const containerVariants = cva('w-full min-w-0 mx-auto', {
69
69
  {
70
70
  size: 'lg',
71
71
  gutter: 'none',
72
- class: 'max-w-none'
72
+ class: 'max-w-[72rem]'
73
73
  },
74
74
  {
75
75
  size: 'lg',
@@ -84,7 +84,7 @@ const containerVariants = cva('w-full min-w-0 mx-auto', {
84
84
  {
85
85
  size: 'xl',
86
86
  gutter: 'none',
87
- class: 'max-w-none'
87
+ class: 'max-w-[90rem]'
88
88
  },
89
89
  {
90
90
  size: 'xl',
@@ -6,49 +6,49 @@ import { cn } from "../../internal/cn.js";
6
6
  const DateInput_DateInputRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
7
7
  return /*#__PURE__*/ jsx(DateInput.Root, {
8
8
  ref: ref,
9
- "data-slot": "date-input-root",
10
9
  className: cn('inline-flex w-full max-w-none flex-col items-start gap-1 data-disabled:opacity-50', className),
11
- ...props
10
+ ...props,
11
+ "data-slot": "date-input-root"
12
12
  });
13
13
  });
14
14
  const DateInput_DateInputRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
15
15
  return /*#__PURE__*/ jsx(DateInput.RootProvider, {
16
16
  ref: ref,
17
- "data-slot": "date-input-root-provider",
18
17
  className: cn('inline-flex w-full max-w-none flex-col items-start gap-1 data-disabled:opacity-50', className),
19
- ...props
18
+ ...props,
19
+ "data-slot": "date-input-root-provider"
20
20
  });
21
21
  });
22
22
  const DateInput_DateInputLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
23
23
  return /*#__PURE__*/ jsx(DateInput.Label, {
24
24
  ref: ref,
25
- "data-slot": "date-input-label",
26
25
  className: cn('text-sm leading-5 font-medium text-foreground', className),
27
- ...props
26
+ ...props,
27
+ "data-slot": "date-input-label"
28
28
  });
29
29
  });
30
30
  const DateInput_DateInputControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
31
31
  return /*#__PURE__*/ jsx(DateInput.Control, {
32
32
  ref: ref,
33
- "data-slot": "date-input-control",
34
33
  className: cn('box-border inline-flex min-h-control-md w-full items-center rounded-md border border-border bg-background px-3 py-1 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color,opacity] duration-200 ease-in-out focus-within:outline-ring data-disabled:pointer-events-none data-focus:outline-ring data-invalid:border-destructive data-invalid:focus-within:outline-destructive data-invalid:data-focus:outline-destructive motion-reduce:transition-none', className),
35
- ...props
34
+ ...props,
35
+ "data-slot": "date-input-control"
36
36
  });
37
37
  });
38
38
  const DateInput_DateInputSegmentGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
39
39
  return /*#__PURE__*/ jsx(DateInput.SegmentGroup, {
40
40
  ref: ref,
41
- "data-slot": "date-input-segment-group",
42
41
  className: cn('inline-flex items-center gap-0.5 tabular-nums', className),
43
- ...props
42
+ ...props,
43
+ "data-slot": "date-input-segment-group"
44
44
  });
45
45
  });
46
46
  const DateInput_DateInputSegment = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
47
47
  return /*#__PURE__*/ jsx(DateInput.Segment, {
48
48
  ref: ref,
49
- "data-slot": "date-input-segment",
50
49
  className: cn('min-w-[2ch] cursor-text rounded-sm px-1 py-0 text-center leading-6 text-current outline-0 transition-colors duration-200 ease-in-out [font:inherit] focus-visible:bg-ring/18 focus-visible:text-foreground data-disabled:cursor-default data-placeholder-shown:text-muted-foreground data-readonly:cursor-default data-[type=literal]:pointer-events-none data-[type=literal]:min-w-auto data-[type=literal]:bg-transparent data-[type=literal]:px-0 data-[type=literal]:text-muted-foreground motion-reduce:transition-none', className),
51
- ...props
50
+ ...props,
51
+ "data-slot": "date-input-segment"
52
52
  });
53
53
  });
54
54
  const DateInput_DateInputSegments = /*#__PURE__*/ forwardRef(function(props, ref) {
@@ -64,11 +64,11 @@ const DateInput_DateInputSegments = /*#__PURE__*/ forwardRef(function(props, ref
64
64
  });
65
65
  function DateInputSeparator({ className, 'aria-hidden': ariaHidden = true, role = 'presentation', ...props }) {
66
66
  return /*#__PURE__*/ jsx("span", {
67
- "data-slot": "date-input-separator",
68
67
  "aria-hidden": ariaHidden,
69
68
  role: role,
70
69
  className: cn('text-muted-foreground select-none', className),
71
- ...props
70
+ ...props,
71
+ "data-slot": "date-input-separator"
72
72
  });
73
73
  }
74
74
  const DateInput_DateInput = Object.assign(DateInput_DateInputRoot, {