@moduix/react-tailwind 1.1.0 → 2.0.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.
- package/dist/components/accordion/Accordion.js +2 -2
- package/dist/components/alert/Alert.js +13 -13
- package/dist/components/angle-slider/AngleSlider.js +13 -6
- package/dist/components/avatar/Avatar.js +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +5 -5
- package/dist/components/breadcrumbs/Breadcrumbs.js +21 -19
- package/dist/components/carousel/Carousel.js +3 -3
- package/dist/components/command-palette/CommandPalette.js +1 -1
- package/dist/components/drawer/Drawer.js +1 -1
- package/dist/components/highlight/Highlight.js +1 -1
- package/dist/components/json-tree-view/JsonTreeView.js +3 -2
- package/dist/components/menu/Menu.d.ts +3 -1
- package/dist/components/menu/Menu.js +10 -8
- package/dist/components/native-select/NativeSelect.js +2 -0
- package/dist/components/number-input/NumberInput.js +3 -3
- package/dist/components/pagination/Pagination.js +6 -6
- package/dist/components/password-input/PasswordInput.js +2 -2
- package/dist/components/pin-input/PinInput.js +2 -2
- package/dist/components/popover/Popover.d.ts +2 -2
- package/dist/components/popover/Popover.js +6 -6
- package/dist/components/progress-circular/ProgressCircular.js +3 -3
- package/dist/components/qr-code/QrCode.js +1 -1
- package/dist/components/radio-group/RadioGroup.js +2 -2
- package/dist/components/rating-group/RatingGroup.js +5 -5
- package/dist/components/scroll-area/ScrollArea.js +2 -2
- package/dist/components/segment-group/SegmentGroup.js +2 -1
- package/dist/components/select/Select.js +3 -4
- package/dist/components/separator/Separator.js +1 -1
- package/dist/components/sidebar/Sidebar.js +43 -45
- package/dist/components/signature-pad/SignaturePad.d.ts +1 -1
- package/dist/components/signature-pad/SignaturePad.js +1 -1
- package/dist/components/slider/Slider.js +3 -3
- package/dist/components/spinner/Spinner.js +0 -1
- package/dist/components/split-button/SplitButton.js +5 -4
- package/dist/components/splitter/Splitter.js +2 -2
- package/dist/components/steps/Steps.js +2 -2
- package/dist/components/swap/Swap.js +5 -5
- package/dist/components/switch/Switch.js +3 -3
- package/dist/components/table/Table.js +28 -28
- package/dist/components/tabs/Tabs.js +3 -3
- package/dist/components/tag/Tag.js +1 -1
- package/dist/components/tags-input/TagsInput.js +3 -3
- package/dist/components/text/Text.js +1 -1
- package/dist/components/timer/Timer.js +1 -1
- package/dist/components/toast/Toast.js +2 -2
- package/dist/components/toc/Toc.js +4 -2
- package/dist/components/toggle/Toggle.d.ts +5 -1
- package/dist/components/toggle/Toggle.js +4 -4
- package/dist/components/toggle-group/ToggleGroup.d.ts +1 -2
- package/dist/components/toggle-group/ToggleGroup.js +4 -25
- package/dist/components/tooltip/Tooltip.d.ts +1 -0
- package/dist/components/tooltip/Tooltip.js +2 -2
- package/dist/components/tour/Tour.d.ts +3 -1
- package/dist/components/tour/Tour.js +1 -1
- package/dist/components/tour/index.d.ts +1 -0
- package/dist/components/tree-view/TreeView.d.ts +1 -1
- package/dist/components/tree-view/TreeView.js +11 -6
- package/dist/components/typeset/Typeset_module.css +6 -4
- package/dist/styles/animations.css +10 -0
- package/dist/styles/style.css +2 -0
- package/package.json +14 -15
|
@@ -66,7 +66,7 @@ const Sidebar_SidebarRoot = /*#__PURE__*/ forwardRef(function({ className, defau
|
|
|
66
66
|
orientation: "horizontal",
|
|
67
67
|
"data-side": side,
|
|
68
68
|
"data-slot": "sidebar-root",
|
|
69
|
-
className: cn('group/splitter relative box-border h-112 min-h-0 w-full min-w-0 rounded-md border border-border bg-card text-foreground shadow-sm data-dragging:cursor-col-resize
|
|
69
|
+
className: cn('group/splitter relative box-border h-112 min-h-0 w-full min-w-0 rounded-md border border-border bg-card text-foreground shadow-sm data-dragging:cursor-col-resize', 'isolate h-dvh min-h-96 w-full min-w-0 rounded-none border border-border bg-background text-foreground shadow-none', className),
|
|
70
70
|
style: {
|
|
71
71
|
width: void 0,
|
|
72
72
|
height: void 0,
|
|
@@ -97,7 +97,7 @@ const Sidebar_SidebarPanel = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
97
97
|
"data-side": config.side,
|
|
98
98
|
"data-slot": "sidebar-panel",
|
|
99
99
|
"data-state": collapsed ? 'collapsed' : 'expanded',
|
|
100
|
-
className: cn('box-border min-h-50 min-w-0 overflow-auto rounded-none border-0 border-border bg-card p-4 text-card-foreground shadow-none
|
|
100
|
+
className: cn('box-border min-h-50 min-w-0 overflow-auto rounded-none border-0 border-border bg-card p-4 text-card-foreground shadow-none data-dragging:select-none', 'group/sidebar-panel @container/sidebar-panel relative flex min-h-0 min-w-0 flex-col overflow-hidden bg-card p-0 text-card-foreground transition-colors duration-200 ease-in-out motion-reduce:transition-none', className)
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
const Sidebar_SidebarInset = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -108,7 +108,7 @@ const Sidebar_SidebarInset = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
108
108
|
id: "content",
|
|
109
109
|
"data-side": side,
|
|
110
110
|
"data-slot": "sidebar-inset",
|
|
111
|
-
className: cn('box-border min-h-50 min-w-0 overflow-auto rounded-none border-0 border-border bg-card p-4 text-card-foreground shadow-none
|
|
111
|
+
className: cn('box-border min-h-50 min-w-0 overflow-auto rounded-none border-0 border-border bg-card p-4 text-card-foreground shadow-none data-dragging:select-none', 'relative min-w-0 overflow-auto bg-background p-0 text-foreground', className)
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
114
|
const Sidebar_SidebarResizeTrigger = /*#__PURE__*/ forwardRef(function({ asChild, children, className, 'aria-label': ariaLabel = 'Resize sidebar', ...props }, ref) {
|
|
@@ -122,7 +122,7 @@ const Sidebar_SidebarResizeTrigger = /*#__PURE__*/ forwardRef(function({ asChild
|
|
|
122
122
|
"aria-label": ariaLabel,
|
|
123
123
|
"data-side": side,
|
|
124
124
|
"data-slot": "sidebar-resize-trigger",
|
|
125
|
-
className: cn("group/trigger relative z-1 box-border flex w-px min-w-px cursor-col-resize appearance-none items-center justify-center border-0 bg-transparent p-0 outline-0 transition-opacity duration-200 ease-in-out before:absolute before:h-full before:w-[0.5px] before:rounded-full before:bg-border before:transition-[background-color] before:duration-200 before:ease-in-out before:content-[''] after:absolute after:z-1 after:h-full after:w-2.5 after:content-[''] data-disabled:cursor-default data-disabled:opacity-50 data-dragging:before:bg-muted-foreground/40
|
|
125
|
+
className: cn("group/trigger relative z-1 box-border flex w-px min-w-px cursor-col-resize appearance-none items-center justify-center border-0 bg-transparent p-0 outline-0 transition-opacity duration-200 ease-in-out before:absolute before:h-full before:w-[0.5px] before:rounded-full before:bg-border before:transition-[background-color] before:duration-200 before:ease-in-out before:content-[''] after:absolute after:z-1 after:h-full after:w-2.5 after:content-[''] data-disabled:cursor-default data-disabled:opacity-50 data-dragging:before:bg-muted-foreground/40 [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:before:bg-muted-foreground/40", 'z-2', className),
|
|
126
126
|
children: void 0 !== children || asChild ? children : /*#__PURE__*/ jsx(index_js_Splitter.ResizeTriggerIndicator, {})
|
|
127
127
|
});
|
|
128
128
|
});
|
|
@@ -140,13 +140,13 @@ const Sidebar_SidebarTrigger = /*#__PURE__*/ forwardRef(function({ className, ch
|
|
|
140
140
|
type: type,
|
|
141
141
|
"aria-label": ariaLabel,
|
|
142
142
|
"aria-expanded": !collapsed,
|
|
143
|
+
className: cn('relative z-4 -mx-3.5 inline-flex size-7 flex-none translate-y-10 cursor-pointer items-center justify-center rounded-full border border-border bg-background p-0 text-muted-foreground shadow-sm outline-0 transition-[background-color,color,box-shadow] duration-200 ease-in-out', 'focus-visible:outline-offset-0.5 focus-visible:outline-2 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 motion-reduce:transition-none', '[&>svg]:size-4 [&>svg]:transition-transform [&>svg]:duration-200 [&>svg]:ease-in-out data-[side=left]:data-[state=collapsed]:[&>svg]:rotate-180 data-[side=right]:data-[state=expanded]:[&>svg]:rotate-180', 'hover:bg-accent hover:text-accent-foreground', className),
|
|
144
|
+
onClick: handleClick,
|
|
145
|
+
...props,
|
|
143
146
|
"data-scope": "sidebar",
|
|
144
147
|
"data-part": "trigger",
|
|
145
148
|
"data-side": config.side,
|
|
146
149
|
"data-state": collapsed ? 'collapsed' : 'expanded',
|
|
147
|
-
className: cn('relative z-4 -mx-3.5 inline-flex size-7 flex-none translate-y-10 cursor-pointer items-center justify-center rounded-full border border-border bg-background p-0 text-muted-foreground shadow-sm outline-0 transition-[background-color,color,box-shadow] duration-200 ease-in-out', 'focus-visible:outline-offset-0.5 focus-visible:outline-2 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 motion-reduce:transition-none', '[&>svg]:size-4 [&>svg]:transition-transform [&>svg]:duration-200 [&>svg]:ease-in-out data-[side=left]:data-[state=collapsed]:[&>svg]:rotate-180 data-[side=right]:data-[state=expanded]:[&>svg]:rotate-180', 'hover:bg-accent hover:text-accent-foreground', className),
|
|
148
|
-
onClick: handleClick,
|
|
149
|
-
...props,
|
|
150
150
|
"data-slot": "sidebar-trigger",
|
|
151
151
|
children: children ?? /*#__PURE__*/ jsx(ChevronLeftIcon, {})
|
|
152
152
|
});
|
|
@@ -154,30 +154,30 @@ const Sidebar_SidebarTrigger = /*#__PURE__*/ forwardRef(function({ className, ch
|
|
|
154
154
|
const Sidebar_SidebarLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
155
155
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
156
156
|
ref: ref,
|
|
157
|
-
"data-scope": "sidebar",
|
|
158
|
-
"data-part": "label",
|
|
159
157
|
className: cn('min-w-0 truncate group-data-[state=collapsed]/sidebar-panel:sr-only', className),
|
|
160
158
|
...props,
|
|
159
|
+
"data-scope": "sidebar",
|
|
160
|
+
"data-part": "label",
|
|
161
161
|
"data-slot": "sidebar-label"
|
|
162
162
|
});
|
|
163
163
|
});
|
|
164
164
|
const Sidebar_SidebarHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
165
165
|
return /*#__PURE__*/ jsx(ark.header, {
|
|
166
166
|
ref: ref,
|
|
167
|
-
"data-scope": "sidebar",
|
|
168
|
-
"data-part": "header",
|
|
169
167
|
className: cn('flex flex-none items-center gap-2 p-3 group-data-[state=collapsed]/sidebar-panel:justify-center group-data-[state=collapsed]/sidebar-panel:px-1 [&>*:only-child]:w-full group-data-[state=collapsed]/sidebar-panel:[&>*:only-child]:w-auto', className),
|
|
170
168
|
...props,
|
|
169
|
+
"data-scope": "sidebar",
|
|
170
|
+
"data-part": "header",
|
|
171
171
|
"data-slot": "sidebar-header"
|
|
172
172
|
});
|
|
173
173
|
});
|
|
174
174
|
const Sidebar_SidebarContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
175
175
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
176
176
|
ref: ref,
|
|
177
|
-
"data-scope": "sidebar",
|
|
178
|
-
"data-part": "content",
|
|
179
177
|
className: cn('flex min-h-0 flex-auto [scrollbar-gutter:stable] flex-col overflow-auto overscroll-contain group-data-[state=collapsed]/sidebar-panel:[scrollbar-width:none] group-data-[state=collapsed]/sidebar-panel:[scrollbar-gutter:auto] group-data-[state=collapsed]/sidebar-panel:overflow-x-hidden group-data-[state=collapsed]/sidebar-panel:overflow-y-auto', className),
|
|
180
178
|
...props,
|
|
179
|
+
"data-scope": "sidebar",
|
|
180
|
+
"data-part": "content",
|
|
181
181
|
"data-slot": "sidebar-content"
|
|
182
182
|
});
|
|
183
183
|
});
|
|
@@ -185,10 +185,10 @@ const Sidebar_SidebarExpandedContent = /*#__PURE__*/ forwardRef(function({ class
|
|
|
185
185
|
const { collapsed } = useSidebar();
|
|
186
186
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
187
187
|
ref: ref,
|
|
188
|
-
"data-scope": "sidebar",
|
|
189
|
-
"data-part": "expanded-content",
|
|
190
188
|
className: className,
|
|
191
189
|
...props,
|
|
190
|
+
"data-scope": "sidebar",
|
|
191
|
+
"data-part": "expanded-content",
|
|
192
192
|
"data-slot": "sidebar-expanded-content",
|
|
193
193
|
hidden: collapsed
|
|
194
194
|
});
|
|
@@ -197,10 +197,10 @@ const Sidebar_SidebarCollapsedContent = /*#__PURE__*/ forwardRef(function({ clas
|
|
|
197
197
|
const { collapsed } = useSidebar();
|
|
198
198
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
199
199
|
ref: ref,
|
|
200
|
-
"data-scope": "sidebar",
|
|
201
|
-
"data-part": "collapsed-content",
|
|
202
200
|
className: className,
|
|
203
201
|
...props,
|
|
202
|
+
"data-scope": "sidebar",
|
|
203
|
+
"data-part": "collapsed-content",
|
|
204
204
|
"data-slot": "sidebar-collapsed-content",
|
|
205
205
|
hidden: !collapsed
|
|
206
206
|
});
|
|
@@ -208,40 +208,40 @@ const Sidebar_SidebarCollapsedContent = /*#__PURE__*/ forwardRef(function({ clas
|
|
|
208
208
|
const Sidebar_SidebarFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
209
209
|
return /*#__PURE__*/ jsx(ark.footer, {
|
|
210
210
|
ref: ref,
|
|
211
|
-
"data-scope": "sidebar",
|
|
212
|
-
"data-part": "footer",
|
|
213
211
|
className: cn('flex flex-none items-center gap-2 p-3 group-data-[state=collapsed]/sidebar-panel:justify-center group-data-[state=collapsed]/sidebar-panel:px-1', className),
|
|
214
212
|
...props,
|
|
213
|
+
"data-scope": "sidebar",
|
|
214
|
+
"data-part": "footer",
|
|
215
215
|
"data-slot": "sidebar-footer"
|
|
216
216
|
});
|
|
217
217
|
});
|
|
218
218
|
const Sidebar_SidebarGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
219
219
|
return /*#__PURE__*/ jsx(ark.section, {
|
|
220
220
|
ref: ref,
|
|
221
|
-
"data-scope": "sidebar",
|
|
222
|
-
"data-part": "group",
|
|
223
221
|
className: cn('flex flex-col gap-1 p-3 group-data-[state=collapsed]/sidebar-panel:px-1', className),
|
|
224
222
|
...props,
|
|
223
|
+
"data-scope": "sidebar",
|
|
224
|
+
"data-part": "group",
|
|
225
225
|
"data-slot": "sidebar-group"
|
|
226
226
|
});
|
|
227
227
|
});
|
|
228
228
|
const Sidebar_SidebarGroupHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
229
229
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
230
230
|
ref: ref,
|
|
231
|
-
"data-scope": "sidebar",
|
|
232
|
-
"data-part": "group-header",
|
|
233
231
|
className: cn('flex min-w-0 items-center gap-2', className),
|
|
234
232
|
...props,
|
|
233
|
+
"data-scope": "sidebar",
|
|
234
|
+
"data-part": "group-header",
|
|
235
235
|
"data-slot": "sidebar-group-header"
|
|
236
236
|
});
|
|
237
237
|
});
|
|
238
238
|
const Sidebar_SidebarGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
239
239
|
return /*#__PURE__*/ jsx(ark.h3, {
|
|
240
240
|
ref: ref,
|
|
241
|
-
"data-scope": "sidebar",
|
|
242
|
-
"data-part": "group-label",
|
|
243
241
|
className: cn('min-w-0 flex-1 truncate px-2 text-xs leading-4 font-medium text-muted-foreground group-data-[state=collapsed]/sidebar-panel:sr-only', className),
|
|
244
242
|
...props,
|
|
243
|
+
"data-scope": "sidebar",
|
|
244
|
+
"data-part": "group-label",
|
|
245
245
|
"data-slot": "sidebar-group-label"
|
|
246
246
|
});
|
|
247
247
|
});
|
|
@@ -249,30 +249,30 @@ const Sidebar_SidebarGroupAction = /*#__PURE__*/ forwardRef(function({ className
|
|
|
249
249
|
return /*#__PURE__*/ jsx(ark.button, {
|
|
250
250
|
ref: ref,
|
|
251
251
|
type: type,
|
|
252
|
-
"data-scope": "sidebar",
|
|
253
|
-
"data-part": "group-action",
|
|
254
252
|
className: cn('focus-visible:outline-offset-0.5 me-2 inline-flex size-control-xs flex-none cursor-pointer items-center justify-center rounded-md p-0 text-muted-foreground outline-0 transition-colors duration-200 ease-in-out hover:bg-accent hover:text-accent-foreground focus-visible:outline-2 focus-visible:outline-ring motion-reduce:transition-none @max-[7rem]:hidden [&>svg]:size-4', className),
|
|
255
253
|
...props,
|
|
254
|
+
"data-scope": "sidebar",
|
|
255
|
+
"data-part": "group-action",
|
|
256
256
|
"data-slot": "sidebar-group-action"
|
|
257
257
|
});
|
|
258
258
|
});
|
|
259
259
|
const Sidebar_SidebarNavigationList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
260
260
|
return /*#__PURE__*/ jsx(ark.ul, {
|
|
261
261
|
ref: ref,
|
|
262
|
-
"data-scope": "sidebar",
|
|
263
|
-
"data-part": "navigation-list",
|
|
264
262
|
className: cn('flex w-full min-w-0 flex-col gap-1', className),
|
|
265
263
|
...props,
|
|
264
|
+
"data-scope": "sidebar",
|
|
265
|
+
"data-part": "navigation-list",
|
|
266
266
|
"data-slot": "sidebar-navigation-list"
|
|
267
267
|
});
|
|
268
268
|
});
|
|
269
269
|
const Sidebar_SidebarNavigationItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
270
270
|
return /*#__PURE__*/ jsx(ark.li, {
|
|
271
271
|
ref: ref,
|
|
272
|
-
"data-scope": "sidebar",
|
|
273
|
-
"data-part": "navigation-item",
|
|
274
272
|
className: cn('relative min-w-0', className),
|
|
275
273
|
...props,
|
|
274
|
+
"data-scope": "sidebar",
|
|
275
|
+
"data-part": "navigation-item",
|
|
276
276
|
"data-slot": "sidebar-navigation-item"
|
|
277
277
|
});
|
|
278
278
|
});
|
|
@@ -281,42 +281,42 @@ const Sidebar_SidebarNavigationButton = /*#__PURE__*/ forwardRef(function({ acti
|
|
|
281
281
|
ref: ref,
|
|
282
282
|
type: type,
|
|
283
283
|
"aria-current": ariaCurrent ?? (active ? 'page' : void 0),
|
|
284
|
+
className: cn('flex w-full min-w-0 cursor-pointer items-center gap-2 overflow-hidden rounded-md px-2 py-1 text-start text-sm leading-5 text-ellipsis whitespace-nowrap text-card-foreground outline-0 transition-colors duration-200 ease-in-out has-[+_[data-slot=sidebar-navigation-badge]]:pe-10 @max-[7rem]:has-[+_[data-slot=sidebar-navigation-badge]]:pe-2', 'focus-visible:outline-offset-0.5 focus-visible:outline-2 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-accent data-active:font-medium data-active:text-accent-foreground motion-reduce:transition-none [&:not(:disabled):not([aria-disabled=true])]:hover:bg-accent [&:not(:disabled):not([aria-disabled=true])]:hover:text-accent-foreground', 'group-data-[state=collapsed]/sidebar-panel:mx-auto group-data-[state=collapsed]/sidebar-panel:min-h-control-md group-data-[state=collapsed]/sidebar-panel:w-control-md group-data-[state=collapsed]/sidebar-panel:justify-center group-data-[state=collapsed]/sidebar-panel:bg-transparent group-data-[state=collapsed]/sidebar-panel:px-0 group-data-[state=collapsed]/sidebar-panel:hover:bg-transparent', '[&>[data-sidebar-icon]]:shrink-0 [&>span:last-child]:min-w-0 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0', '[&>[data-scope=select][data-part=indicator]]:ms-auto @max-[7rem]:[&>[data-scope=select][data-part=indicator]]:hidden', '[&>[data-slot=collapsible-indicator]]:ms-auto [&>[data-slot=collapsible-indicator]]:size-control-xs @max-[7rem]:[&>[data-slot=collapsible-indicator]]:hidden [&>[data-slot=collapsible-indicator]>svg]:size-3', '[&>[data-slot=menu-indicator]]:ms-auto [&>[data-slot=menu-indicator]]:size-control-xs [&>[data-slot=menu-indicator]]:leading-none [&>[data-slot=menu-indicator]]:text-muted-foreground @max-[7rem]:[&>[data-slot=menu-indicator]]:hidden [&>[data-slot=menu-indicator]>svg]:block [&>[data-slot=menu-indicator]>svg]:size-4', 'sm' === size && 'min-h-control-sm text-xs', 'md' === size && 'min-h-control-md', 'lg' === size && 'min-h-control-lg', className),
|
|
285
|
+
...props,
|
|
284
286
|
"data-scope": "sidebar",
|
|
285
287
|
"data-part": "navigation-button",
|
|
286
288
|
"data-active": active ? '' : void 0,
|
|
287
289
|
"data-size": size,
|
|
288
|
-
className: cn('flex w-full min-w-0 cursor-pointer items-center gap-2 overflow-hidden rounded-md px-2 py-1 text-start text-sm leading-5 text-ellipsis whitespace-nowrap text-card-foreground outline-0 transition-colors duration-200 ease-in-out has-[+_[data-slot=sidebar-navigation-badge]]:pe-10 @max-[7rem]:has-[+_[data-slot=sidebar-navigation-badge]]:pe-2', 'focus-visible:outline-offset-0.5 focus-visible:outline-2 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-accent data-active:font-medium data-active:text-accent-foreground motion-reduce:transition-none [&:not(:disabled):not([aria-disabled=true])]:hover:bg-accent [&:not(:disabled):not([aria-disabled=true])]:hover:text-accent-foreground', 'group-data-[state=collapsed]/sidebar-panel:mx-auto group-data-[state=collapsed]/sidebar-panel:min-h-control-md group-data-[state=collapsed]/sidebar-panel:w-control-md group-data-[state=collapsed]/sidebar-panel:justify-center group-data-[state=collapsed]/sidebar-panel:bg-transparent group-data-[state=collapsed]/sidebar-panel:px-0 group-data-[state=collapsed]/sidebar-panel:hover:bg-transparent', '[&>[data-sidebar-icon]]:shrink-0 [&>span:last-child]:min-w-0 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0', '[&>[data-scope=select][data-part=indicator]]:ms-auto @max-[7rem]:[&>[data-scope=select][data-part=indicator]]:hidden', '[&>[data-slot=collapsible-indicator]]:ms-auto [&>[data-slot=collapsible-indicator]]:size-control-xs @max-[7rem]:[&>[data-slot=collapsible-indicator]]:hidden [&>[data-slot=collapsible-indicator]>svg]:size-3', '[&>[data-slot=menu-indicator]]:ms-auto [&>[data-slot=menu-indicator]]:size-control-xs [&>[data-slot=menu-indicator]]:leading-none [&>[data-slot=menu-indicator]]:text-muted-foreground @max-[7rem]:[&>[data-slot=menu-indicator]]:hidden [&>[data-slot=menu-indicator]>svg]:block [&>[data-slot=menu-indicator]>svg]:size-4', 'sm' === size && 'min-h-control-sm text-xs', 'md' === size && 'min-h-control-md', 'lg' === size && 'min-h-control-lg', className),
|
|
289
|
-
...props,
|
|
290
290
|
"data-slot": "sidebar-navigation-button"
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
293
|
const Sidebar_SidebarNavigationBadge = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
294
294
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
295
295
|
ref: ref,
|
|
296
|
-
"data-scope": "sidebar",
|
|
297
|
-
"data-part": "navigation-badge",
|
|
298
296
|
className: cn('pointer-events-none absolute end-2.5 top-1/2 z-1 box-border inline-grid size-5 -translate-y-1/2 place-items-center rounded-full bg-primary p-0 text-[0.5625rem] leading-none font-medium text-primary-foreground tabular-nums @max-[7rem]:hidden', className),
|
|
299
297
|
...props,
|
|
298
|
+
"data-scope": "sidebar",
|
|
299
|
+
"data-part": "navigation-badge",
|
|
300
300
|
"data-slot": "sidebar-navigation-badge"
|
|
301
301
|
});
|
|
302
302
|
});
|
|
303
303
|
const Sidebar_SidebarNavigationSubList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
304
304
|
return /*#__PURE__*/ jsx(ark.ul, {
|
|
305
305
|
ref: ref,
|
|
306
|
-
"data-scope": "sidebar",
|
|
307
|
-
"data-part": "navigation-sub-list",
|
|
308
306
|
className: cn('ms-4 mt-1 flex w-auto min-w-0 flex-col gap-1 border-s border-border ps-2 group-data-[state=collapsed]/sidebar-panel:hidden', className),
|
|
309
307
|
...props,
|
|
308
|
+
"data-scope": "sidebar",
|
|
309
|
+
"data-part": "navigation-sub-list",
|
|
310
310
|
"data-slot": "sidebar-navigation-sub-list"
|
|
311
311
|
});
|
|
312
312
|
});
|
|
313
313
|
const Sidebar_SidebarNavigationSubItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
314
314
|
return /*#__PURE__*/ jsx(ark.li, {
|
|
315
315
|
ref: ref,
|
|
316
|
-
"data-scope": "sidebar",
|
|
317
|
-
"data-part": "navigation-sub-item",
|
|
318
316
|
className: cn('relative min-w-0', className),
|
|
319
317
|
...props,
|
|
318
|
+
"data-scope": "sidebar",
|
|
319
|
+
"data-part": "navigation-sub-item",
|
|
320
320
|
"data-slot": "sidebar-navigation-sub-item"
|
|
321
321
|
});
|
|
322
322
|
});
|
|
@@ -324,11 +324,11 @@ const Sidebar_SidebarNavigationSubButton = /*#__PURE__*/ forwardRef(function({ a
|
|
|
324
324
|
return /*#__PURE__*/ jsx(ark.a, {
|
|
325
325
|
ref: ref,
|
|
326
326
|
"aria-current": ariaCurrent ?? (active ? 'page' : void 0),
|
|
327
|
+
className: cn('flex min-h-control-sm w-full min-w-0 cursor-pointer items-center gap-2 overflow-hidden rounded-md px-2 text-start text-sm leading-5 text-ellipsis whitespace-nowrap text-card-foreground outline-0 transition-[background-color,border-color,color,box-shadow] duration-200 ease-in-out has-[+_[data-slot=sidebar-navigation-badge]]:pe-10 @max-[7rem]:has-[+_[data-slot=sidebar-navigation-badge]]:pe-2', 'focus-visible:outline-offset-0.5 focus-visible:outline-2 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-accent data-active:font-medium data-active:text-accent-foreground motion-reduce:transition-none [&:not(:disabled):not([aria-disabled=true])]:hover:bg-accent [&:not(:disabled):not([aria-disabled=true])]:hover:text-accent-foreground', '[&>[data-sidebar-icon]]:shrink-0 [&>span:last-child]:min-w-0 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0', className),
|
|
328
|
+
...props,
|
|
327
329
|
"data-scope": "sidebar",
|
|
328
330
|
"data-part": "navigation-sub-button",
|
|
329
331
|
"data-active": active ? '' : void 0,
|
|
330
|
-
className: cn('flex min-h-control-sm w-full min-w-0 cursor-pointer items-center gap-2 overflow-hidden rounded-md px-2 text-start text-sm leading-5 text-ellipsis whitespace-nowrap text-card-foreground outline-0 transition-[background-color,border-color,color,box-shadow] duration-200 ease-in-out has-[+_[data-slot=sidebar-navigation-badge]]:pe-10 @max-[7rem]:has-[+_[data-slot=sidebar-navigation-badge]]:pe-2', 'focus-visible:outline-offset-0.5 focus-visible:outline-2 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-accent data-active:font-medium data-active:text-accent-foreground motion-reduce:transition-none [&:not(:disabled):not([aria-disabled=true])]:hover:bg-accent [&:not(:disabled):not([aria-disabled=true])]:hover:text-accent-foreground', '[&>[data-sidebar-icon]]:shrink-0 [&>span:last-child]:min-w-0 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0', className),
|
|
331
|
-
...props,
|
|
332
332
|
"data-slot": "sidebar-navigation-sub-button",
|
|
333
333
|
children: 'string' == typeof children ? /*#__PURE__*/ jsx("span", {
|
|
334
334
|
"data-slot": "sidebar-navigation-sub-label",
|
|
@@ -365,16 +365,14 @@ const Sidebar_SidebarInput = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
365
365
|
return /*#__PURE__*/ jsx(Input.Root, {
|
|
366
366
|
ref: ref,
|
|
367
367
|
className: cn('w-full group-data-[state=collapsed]/sidebar-panel:hidden', className),
|
|
368
|
-
...props
|
|
369
|
-
"data-slot": "sidebar-input"
|
|
368
|
+
...props
|
|
370
369
|
});
|
|
371
370
|
});
|
|
372
371
|
const Sidebar_SidebarSeparator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
373
372
|
return /*#__PURE__*/ jsx(Separator.Root, {
|
|
374
373
|
ref: ref,
|
|
375
374
|
className: cn('border-border', className),
|
|
376
|
-
...props
|
|
377
|
-
"data-slot": "sidebar-separator"
|
|
375
|
+
...props
|
|
378
376
|
});
|
|
379
377
|
});
|
|
380
378
|
const Sidebar = Object.assign(Sidebar_SidebarRoot, {
|
|
@@ -7,7 +7,7 @@ declare const SignaturePad: import("react").ForwardRefExoticComponent<Omit<Signa
|
|
|
7
7
|
HiddenInput: import("react").ForwardRefExoticComponent<SignaturePadPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
8
8
|
Label: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
9
9
|
Control: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
-
Canvas: import("react").ForwardRefExoticComponent<Omit<Omit<SignaturePadPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "children">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Canvas: import("react").ForwardRefExoticComponent<Omit<Omit<SignaturePadPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "asChild" | "children">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
11
|
Segment: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.SegmentProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
12
12
|
Guide: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.GuideProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
13
|
ClearTrigger: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.ClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -84,7 +84,7 @@ const SignaturePad_SignaturePadClearTrigger = /*#__PURE__*/ forwardRef(function(
|
|
|
84
84
|
children: asChild ? children : /*#__PURE__*/ jsx(CloseButton.Root, {
|
|
85
85
|
"aria-label": ariaLabel,
|
|
86
86
|
"aria-labelledby": ariaLabelledBy,
|
|
87
|
-
className: cn('size-
|
|
87
|
+
className: cn('size-control-md rounded-sm bg-transparent text-muted-foreground focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-ring motion-reduce:transition-none [&>svg]:size-4 [&>svg]:shrink-0 [@media(hover:hover)]:[&:not([data-disabled]):hover]:bg-accent [@media(hover:hover)]:[&:not([data-disabled]):hover]:text-foreground', className),
|
|
88
88
|
children: children ?? /*#__PURE__*/ jsx(RotateCcwIcon, {
|
|
89
89
|
className: "size-4",
|
|
90
90
|
"aria-hidden": "true"
|
|
@@ -6,10 +6,10 @@ import { cn } from "../../internal/cn.js";
|
|
|
6
6
|
const Slider_SliderRoot = /*#__PURE__*/ forwardRef(function({ className, readOnly, ...props }, ref) {
|
|
7
7
|
return /*#__PURE__*/ jsx(Slider.Root, {
|
|
8
8
|
ref: ref,
|
|
9
|
-
"data-readonly": readOnly ? '' : void 0,
|
|
10
9
|
className: cn("group flex w-48 max-w-full flex-col gap-2 text-foreground data-disabled:opacity-50 data-[orientation=vertical]:grid data-[orientation=vertical]:h-48 data-[orientation=vertical]:w-max data-[orientation=vertical]:grid-cols-[auto_max-content] data-[orientation=vertical]:grid-rows-[auto_minmax(0,1fr)] data-[orientation=vertical]:items-center data-[orientation=vertical]:gap-x-2 data-[orientation=vertical]:[grid-template-areas:'label_value'_'control_markers']", className),
|
|
11
10
|
readOnly: readOnly,
|
|
12
11
|
...props,
|
|
12
|
+
"data-readonly": readOnly ? '' : void 0,
|
|
13
13
|
"data-slot": "slider-root"
|
|
14
14
|
});
|
|
15
15
|
});
|
|
@@ -80,7 +80,7 @@ function SliderThumbs({ className }) {
|
|
|
80
80
|
const Slider_SliderMarkerGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
81
81
|
return /*#__PURE__*/ jsx(Slider.MarkerGroup, {
|
|
82
82
|
ref: ref,
|
|
83
|
-
className: cn('mt-2
|
|
83
|
+
className: cn('mt-2 group-data-[orientation=vertical]:m-0 group-data-[orientation=vertical]:h-full group-data-[orientation=vertical]:[grid-area:markers]', className),
|
|
84
84
|
...props,
|
|
85
85
|
"data-slot": "slider-marker-group"
|
|
86
86
|
});
|
|
@@ -88,7 +88,7 @@ const Slider_SliderMarkerGroup = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
88
88
|
const Slider_SliderMarker = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
89
89
|
return /*#__PURE__*/ jsx(Slider.Marker, {
|
|
90
90
|
ref: ref,
|
|
91
|
-
className: cn("
|
|
91
|
+
className: cn("text-xs leading-4 text-muted-foreground before:absolute before:start-1/2 before:-top-2 before:size-1 before:-translate-x-1/2 before:rounded-full before:bg-border before:content-[''] data-[orientation=vertical]:before:-start-2 data-[orientation=vertical]:before:top-1/2 data-[orientation=vertical]:before:-translate-y-1/2 data-[state=at-value]:before:bg-primary group-data-invalid:data-[state=at-value]:before:bg-destructive data-[state=under-value]:before:bg-primary group-data-invalid:data-[state=under-value]:before:bg-destructive", className),
|
|
92
92
|
...props,
|
|
93
93
|
"data-slot": "slider-marker"
|
|
94
94
|
});
|
|
@@ -8,12 +8,13 @@ import { ChevronDownIcon } from "../../internal/icons/ui/index.js";
|
|
|
8
8
|
import { OverlayPortal } from "../../internal/overlayPortal.js";
|
|
9
9
|
import { Button } from "../button/index.js";
|
|
10
10
|
import { Menu as index_js_Menu } from "../menu/index.js";
|
|
11
|
-
|
|
11
|
+
import { menuContentVariants, menuPositionerVariants } from "../menu/Menu.js";
|
|
12
|
+
const splitButtonTriggerVariants = cva("relative min-w-0 -ms-[calc(var(--moduix-button-border-width,var(--moduix-border-width-sm))*-1)] rounded-s-none before:pointer-events-none before:absolute before:inset-y-1.5 before:start-0 before:w-px before:bg-current before:opacity-[0.16] before:content-['']", {
|
|
12
13
|
variants: {
|
|
13
14
|
size: {
|
|
14
15
|
xs: 'px-2',
|
|
15
16
|
sm: 'px-2.5',
|
|
16
|
-
md: 'px-
|
|
17
|
+
md: 'px-3',
|
|
17
18
|
lg: 'px-3.5',
|
|
18
19
|
xl: 'px-4'
|
|
19
20
|
},
|
|
@@ -101,7 +102,7 @@ const SplitButton_SplitButtonPositioner = /*#__PURE__*/ forwardRef(function({ cl
|
|
|
101
102
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
102
103
|
children: /*#__PURE__*/ jsx(Menu.Positioner, {
|
|
103
104
|
ref: ref,
|
|
104
|
-
className: cn(
|
|
105
|
+
className: cn(menuPositionerVariants(), className),
|
|
105
106
|
...props,
|
|
106
107
|
"data-slot": "split-button-positioner"
|
|
107
108
|
})
|
|
@@ -111,7 +112,7 @@ const SplitButton_SplitButtonContent = /*#__PURE__*/ forwardRef(function({ asChi
|
|
|
111
112
|
return /*#__PURE__*/ jsx(Menu.Content, {
|
|
112
113
|
ref: ref,
|
|
113
114
|
asChild: asChild,
|
|
114
|
-
className: cn(
|
|
115
|
+
className: cn(menuContentVariants(), className),
|
|
115
116
|
...props,
|
|
116
117
|
"data-slot": "split-button-content",
|
|
117
118
|
children: asChild ? children : /*#__PURE__*/ jsx(index_js_Menu.Viewport, {
|
|
@@ -40,7 +40,7 @@ const Splitter_SplitterPanel = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
40
40
|
const Splitter_SplitterResizeTriggerIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
41
41
|
return /*#__PURE__*/ jsx(Splitter.ResizeTriggerIndicator, {
|
|
42
42
|
ref: ref,
|
|
43
|
-
className: cn('pointer-events-none absolute start-1/2 top-1/2 z-2 box-border h-control-xs w-1.5 -translate-x-1/2 -translate-y-1/2 rounded-full border border-border bg-background shadow-sm transition-[background-color,border-color,box-shadow,transform] duration-200 ease-in-out group-hover/trigger:border-muted-foreground/40 group-hover/trigger:shadow-md group-focus-visible/trigger:outline-2 group-focus-visible/trigger:outline-offset-1 group-focus-visible/trigger:outline-ring data-disabled:invisible data-dragging:scale-[1.08] data-dragging:bg-background data-dragging:shadow-md data-[orientation=vertical]:h-1.5 data-[orientation=vertical]:w-control-xs', className),
|
|
43
|
+
className: cn('pointer-events-none absolute start-1/2 top-1/2 z-2 box-border h-control-xs w-1.5 -translate-x-1/2 -translate-y-1/2 rounded-full border border-border bg-background shadow-sm transition-[background-color,border-color,box-shadow,transform] duration-200 ease-in-out group-hover/trigger:border-muted-foreground/40 group-hover/trigger:shadow-md group-focus-visible/trigger:outline-2 group-focus-visible/trigger:outline-offset-1 group-focus-visible/trigger:outline-ring data-disabled:invisible data-dragging:scale-[1.08] data-dragging:bg-background data-dragging:shadow-md data-[orientation=vertical]:h-1.5 data-[orientation=vertical]:w-control-xs motion-reduce:transition-none', className),
|
|
44
44
|
...props,
|
|
45
45
|
"data-slot": "splitter-resize-trigger-indicator"
|
|
46
46
|
});
|
|
@@ -49,7 +49,7 @@ const Splitter_SplitterResizeTrigger = /*#__PURE__*/ forwardRef(function({ asChi
|
|
|
49
49
|
return /*#__PURE__*/ jsx(Splitter.ResizeTrigger, {
|
|
50
50
|
ref: ref,
|
|
51
51
|
asChild: asChild,
|
|
52
|
-
className: cn("group/trigger relative z-1 box-border flex w-px min-w-px cursor-col-resize appearance-none items-center justify-center border-0 bg-transparent p-0 outline-0 transition-opacity duration-200 ease-in-out before:absolute before:h-full before:w-[0.5px] before:rounded-full before:bg-border before:transition-[background-color] before:duration-200 before:ease-in-out before:content-[''] after:absolute after:z-1 after:h-full after:w-2.5 after:content-[''] data-disabled:cursor-default data-disabled:opacity-50 data-dragging:before:bg-muted-foreground/40 data-[orientation=vertical]:h-px data-[orientation=vertical]:min-h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:min-w-0 data-[orientation=vertical]:cursor-row-resize data-[orientation=vertical]:before:h-[0.5px] data-[orientation=vertical]:before:w-full data-[orientation=vertical]:after:h-2.5 data-[orientation=vertical]:after:w-full [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:before:bg-muted-foreground/40", className),
|
|
52
|
+
className: cn("group/trigger relative z-1 box-border flex w-px min-w-px cursor-col-resize appearance-none items-center justify-center border-0 bg-transparent p-0 outline-0 transition-opacity duration-200 ease-in-out before:absolute before:h-full before:w-[0.5px] before:rounded-full before:bg-border before:transition-[background-color] before:duration-200 before:ease-in-out before:content-[''] after:absolute after:z-1 after:h-full after:w-2.5 after:content-[''] data-disabled:cursor-default data-disabled:opacity-50 data-dragging:before:bg-muted-foreground/40 data-[orientation=vertical]:h-px data-[orientation=vertical]:min-h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:min-w-0 data-[orientation=vertical]:cursor-row-resize data-[orientation=vertical]:before:h-[0.5px] data-[orientation=vertical]:before:w-full data-[orientation=vertical]:after:h-2.5 data-[orientation=vertical]:after:w-full motion-reduce:transition-none motion-reduce:before:transition-none [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:before:bg-muted-foreground/40", className),
|
|
53
53
|
...props,
|
|
54
54
|
"data-slot": "splitter-resize-trigger",
|
|
55
55
|
children: void 0 !== children || asChild ? children : /*#__PURE__*/ jsx(Splitter_SplitterResizeTriggerIndicator, {})
|
|
@@ -81,7 +81,7 @@ const Steps_StepsCompletedContent = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
81
81
|
const Steps_StepsPrevTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
82
82
|
return /*#__PURE__*/ jsx(Steps.PrevTrigger, {
|
|
83
83
|
ref: ref,
|
|
84
|
-
className: cn('box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md border border-border bg-background px-3 py-1.5 text-sm leading-5 text-foreground transition-[background-color,border-color,color,opacity] duration-200 ease-in-out outline-none focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-default disabled:opacity-50
|
|
84
|
+
className: cn('box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md border border-border bg-background px-3 py-1.5 text-sm leading-5 text-foreground transition-[background-color,border-color,color,opacity] duration-200 ease-in-out outline-none focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:[&:not(:disabled):not([data-disabled])]:hover:bg-accent', className),
|
|
85
85
|
...props,
|
|
86
86
|
"data-slot": "steps-prev-trigger"
|
|
87
87
|
});
|
|
@@ -89,7 +89,7 @@ const Steps_StepsPrevTrigger = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
89
89
|
const Steps_StepsNextTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
90
90
|
return /*#__PURE__*/ jsx(Steps.NextTrigger, {
|
|
91
91
|
ref: ref,
|
|
92
|
-
className: cn('box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md border border-foreground bg-foreground px-3 py-1.5 text-sm leading-5 text-background transition-[background-color,border-color,color,opacity] duration-200 ease-in-out outline-none focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-default disabled:opacity-50
|
|
92
|
+
className: cn('box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md border border-foreground bg-foreground px-3 py-1.5 text-sm leading-5 text-background transition-[background-color,border-color,color,opacity] duration-200 ease-in-out outline-none focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:[&:not(:disabled):not([data-disabled])]:hover:bg-foreground', className),
|
|
93
93
|
...props,
|
|
94
94
|
"data-slot": "steps-next-trigger"
|
|
95
95
|
});
|
|
@@ -6,25 +6,25 @@ import { cn } from "../../internal/cn.js";
|
|
|
6
6
|
const Swap_SwapRoot = /*#__PURE__*/ forwardRef(function({ animation = 'scale', className, ...props }, ref) {
|
|
7
7
|
return /*#__PURE__*/ jsx(Swap.Root, {
|
|
8
8
|
ref: ref,
|
|
9
|
-
"data-animation"
|
|
10
|
-
className: cn("group/swap inline-grid place-items-center align-middle [grid-template-areas:'swap'] data-[animation=flip]:[perspective:24rem]", className),
|
|
9
|
+
className: cn("group/swap place-items-center align-middle [grid-template-areas:'swap'] data-[animation=flip]:[perspective:24rem]", className),
|
|
11
10
|
...props,
|
|
11
|
+
"data-animation": animation,
|
|
12
12
|
"data-slot": "swap-root"
|
|
13
13
|
});
|
|
14
14
|
});
|
|
15
15
|
const Swap_SwapRootProvider = /*#__PURE__*/ forwardRef(function({ animation = 'scale', className, ...props }, ref) {
|
|
16
16
|
return /*#__PURE__*/ jsx(Swap.RootProvider, {
|
|
17
17
|
ref: ref,
|
|
18
|
-
"data-animation"
|
|
19
|
-
className: cn("group/swap inline-grid place-items-center align-middle [grid-template-areas:'swap'] data-[animation=flip]:[perspective:24rem]", className),
|
|
18
|
+
className: cn("group/swap place-items-center align-middle [grid-template-areas:'swap'] data-[animation=flip]:[perspective:24rem]", className),
|
|
20
19
|
...props,
|
|
20
|
+
"data-animation": animation,
|
|
21
21
|
"data-slot": "swap-root-provider"
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
const Swap_SwapIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
25
25
|
return /*#__PURE__*/ jsx(Swap.Indicator, {
|
|
26
26
|
ref: ref,
|
|
27
|
-
className: cn('
|
|
27
|
+
className: cn('items-center justify-center text-inherit group-data-[animation=flip]/swap:[backface-visibility:hidden] group-data-[animation=fade]/swap:data-[state=closed]:animate-moduix-swap-fade-exit group-data-[animation=flip]/swap:data-[state=closed]:animate-moduix-swap-flip-exit group-data-[animation=rotate]/swap:data-[state=closed]:animate-moduix-swap-rotate-exit group-data-[animation=scale]/swap:data-[state=closed]:animate-moduix-swap-scale-exit group-data-[animation=fade]/swap:data-[state=open]:animate-moduix-swap-fade-enter group-data-[animation=flip]/swap:data-[state=open]:animate-moduix-swap-flip-enter group-data-[animation=rotate]/swap:data-[state=open]:animate-moduix-swap-rotate-enter group-data-[animation=scale]/swap:data-[state=open]:animate-moduix-swap-scale-enter motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms]', className),
|
|
28
28
|
...props,
|
|
29
29
|
"data-slot": "swap-indicator"
|
|
30
30
|
});
|
|
@@ -6,25 +6,25 @@ import { cn } from "../../internal/cn.js";
|
|
|
6
6
|
const Switch_SwitchRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
7
7
|
return /*#__PURE__*/ jsx(Switch.Root, {
|
|
8
8
|
ref: ref,
|
|
9
|
-
"data-size": size,
|
|
10
9
|
className: cn('group/switch inline-flex w-fit cursor-pointer items-center gap-2 align-middle data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', className),
|
|
11
10
|
...props,
|
|
11
|
+
"data-size": size,
|
|
12
12
|
"data-slot": "switch-root"
|
|
13
13
|
});
|
|
14
14
|
});
|
|
15
15
|
const Switch_SwitchRootProvider = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
16
16
|
return /*#__PURE__*/ jsx(Switch.RootProvider, {
|
|
17
17
|
ref: ref,
|
|
18
|
-
"data-size": size,
|
|
19
18
|
className: cn('group/switch inline-flex w-fit cursor-pointer items-center gap-2 align-middle data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', className),
|
|
20
19
|
...props,
|
|
20
|
+
"data-size": size,
|
|
21
21
|
"data-slot": "switch-root-provider"
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
const Switch_SwitchControl = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
25
25
|
return /*#__PURE__*/ jsx(Switch.Control, {
|
|
26
26
|
ref: ref,
|
|
27
|
-
className: cn("[@media(hover:hover)]:[&:not([data-disabled]):not([data-readonly])[data-state='unchecked'][data-hover]:bg-accent relative inline-flex h-control-xs w-11 shrink-0 items-center rounded-full border border-border bg-muted p-0.5 leading-none outline-0 transition-[background-color,border-color,opacity] duration-200 ease-in-out select-none group-data-[size=lg]/switch:h-7 group-data-[size=lg]/switch:w-13 group-data-[size=sm]/switch:h-5 group-data-[size=sm]/switch:w-9 group-data-[size=xl]/switch:h-control-sm group-data-[size=xl]/switch:w-15 group-data-[size=xs]/switch:h-4 group-data-[size=xs]/switch:w-7 data-focus-visible:outline-1 data-focus-visible:outline-offset-1 data-focus-visible:outline-ring data-invalid:border-destructive data-[state=checked]:border-primary data-[state=checked]:bg-primary motion-reduce:transition-none", className),
|
|
27
|
+
className: cn("[@media(hover:hover)]:[&:not([data-disabled]):not([data-readonly])[data-state='unchecked'][data-hover]:bg-accent relative inline-flex h-control-xs w-11 shrink-0 items-center rounded-full border border-border bg-muted p-0.5 leading-none outline-0 transition-[background-color,border-color,opacity] duration-200 ease-in-out select-none group-data-[size=lg]/switch:h-7 group-data-[size=lg]/switch:w-13 group-data-[size=sm]/switch:h-5 group-data-[size=sm]/switch:w-9 group-data-[size=xl]/switch:h-control-sm group-data-[size=xl]/switch:w-15 group-data-[size=xs]/switch:h-4 group-data-[size=xs]/switch:w-7 data-focus-visible:outline-1 data-focus-visible:outline-offset-1 data-focus-visible:outline-ring data-invalid:border-destructive data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:data-invalid:border-destructive motion-reduce:transition-none", className),
|
|
28
28
|
...props,
|
|
29
29
|
"data-slot": "switch-control",
|
|
30
30
|
children: children ?? /*#__PURE__*/ jsx(Switch_SwitchThumb, {})
|