@moduix/solid-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.
- package/dist/components/accordion/Accordion.js +19 -13
- package/dist/components/accordion/Accordion.jsx +7 -7
- package/dist/components/alert/Alert.js +19 -13
- package/dist/components/alert/Alert.jsx +7 -7
- package/dist/components/angle-slider/AngleSlider.d.ts +2 -6
- package/dist/components/angle-slider/AngleSlider.js +21 -16
- package/dist/components/angle-slider/AngleSlider.jsx +10 -11
- package/dist/components/avatar/Avatar.js +10 -7
- package/dist/components/avatar/Avatar.jsx +6 -6
- package/dist/components/bleed/Bleed.js +1 -1
- package/dist/components/bleed/Bleed.jsx +1 -1
- package/dist/components/button/Button.js +1 -6
- package/dist/components/button/Button.jsx +2 -4
- package/dist/components/card/Card.js +54 -44
- package/dist/components/card/Card.jsx +12 -12
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +32 -23
- package/dist/components/carousel/Carousel.jsx +12 -13
- package/dist/components/checkbox/Checkbox.js +16 -14
- package/dist/components/checkbox/Checkbox.jsx +6 -6
- package/dist/components/clipboard/Clipboard.js +28 -17
- package/dist/components/clipboard/Clipboard.jsx +12 -11
- package/dist/components/collapsible/Collapsible.js +16 -11
- package/dist/components/collapsible/Collapsible.jsx +6 -6
- package/dist/components/color-picker/ColorPicker.js +69 -48
- package/dist/components/color-picker/ColorPicker.jsx +28 -28
- package/dist/components/combobox/Combobox.js +44 -31
- package/dist/components/combobox/Combobox.jsx +18 -18
- package/dist/components/command-palette/CommandPalette.js +71 -52
- package/dist/components/command-palette/CommandPalette.jsx +28 -31
- package/dist/components/container/Container.js +5 -5
- package/dist/components/container/Container.jsx +5 -5
- package/dist/components/date-input/DateInput.js +18 -12
- package/dist/components/date-input/DateInput.jsx +7 -7
- package/dist/components/date-picker/DatePicker.js +73 -51
- package/dist/components/date-picker/DatePicker.jsx +29 -29
- package/dist/components/dialog/Dialog.js +30 -20
- package/dist/components/dialog/Dialog.jsx +10 -10
- package/dist/components/drawer/Drawer.js +45 -30
- package/dist/components/drawer/Drawer.jsx +15 -15
- package/dist/components/editable/Editable.js +24 -17
- package/dist/components/editable/Editable.jsx +10 -10
- package/dist/components/empty/Empty.js +1 -1
- package/dist/components/empty/Empty.jsx +1 -1
- package/dist/components/file-upload/FileUpload.js +39 -28
- package/dist/components/file-upload/FileUpload.jsx +17 -17
- package/dist/components/floating-panel/FloatingPanel.js +35 -23
- package/dist/components/floating-panel/FloatingPanel.jsx +12 -12
- package/dist/components/hover-card/HoverCard.js +16 -11
- package/dist/components/hover-card/HoverCard.jsx +6 -6
- package/dist/components/image-cropper/ImageCropper.js +21 -14
- package/dist/components/image-cropper/ImageCropper.jsx +7 -7
- package/dist/components/input-group/InputGroup.js +3 -2
- package/dist/components/input-group/InputGroup.jsx +3 -2
- package/dist/components/json-tree-view/JsonTreeView.js +1 -1
- package/dist/components/json-tree-view/JsonTreeView.jsx +1 -1
- package/dist/components/lightbox/Lightbox.d.ts +1 -0
- package/dist/components/lightbox/Lightbox.js +41 -27
- package/dist/components/lightbox/Lightbox.jsx +13 -12
- package/dist/components/listbox/Listbox.js +48 -32
- package/dist/components/listbox/Listbox.jsx +17 -17
- package/dist/components/marquee/Marquee.js +18 -12
- package/dist/components/marquee/Marquee.jsx +9 -9
- package/dist/components/menu/Menu.js +66 -44
- package/dist/components/menu/Menu.jsx +28 -28
- package/dist/components/navigation-menu/NavigationMenu.js +36 -24
- package/dist/components/navigation-menu/NavigationMenu.jsx +12 -12
- package/dist/components/number-input/NumberInput.js +19 -14
- package/dist/components/number-input/NumberInput.jsx +9 -9
- package/dist/components/pagination/Pagination.js +10 -9
- package/dist/components/pagination/Pagination.jsx +8 -8
- package/dist/components/password-input/PasswordInput.js +16 -11
- package/dist/components/password-input/PasswordInput.jsx +6 -6
- package/dist/components/pin-input/PinInput.js +15 -10
- package/dist/components/pin-input/PinInput.jsx +6 -6
- package/dist/components/popover/Popover.js +37 -25
- package/dist/components/popover/Popover.jsx +13 -13
- package/dist/components/progress-circular/ProgressCircular.js +18 -13
- package/dist/components/progress-circular/ProgressCircular.jsx +8 -8
- package/dist/components/progress-linear/ProgressLinear.js +17 -12
- package/dist/components/progress-linear/ProgressLinear.jsx +7 -7
- package/dist/components/qr-code/QrCode.js +8 -7
- package/dist/components/qr-code/QrCode.jsx +6 -6
- package/dist/components/rating-group/RatingGroup.js +15 -10
- package/dist/components/rating-group/RatingGroup.jsx +6 -6
- package/dist/components/segment-group/SegmentGroup.js +17 -12
- package/dist/components/segment-group/SegmentGroup.jsx +7 -7
- package/dist/components/select/Select.js +50 -35
- package/dist/components/select/Select.jsx +20 -20
- package/dist/components/sidebar/Sidebar.js +72 -43
- package/dist/components/sidebar/Sidebar.jsx +34 -27
- package/dist/components/signature-pad/SignaturePad.js +16 -12
- package/dist/components/signature-pad/SignaturePad.jsx +8 -8
- package/dist/components/slider/Slider.js +29 -20
- package/dist/components/slider/Slider.jsx +11 -11
- package/dist/components/split-button/SplitButton.d.ts +4 -3
- package/dist/components/split-button/SplitButton.js +20 -9
- package/dist/components/split-button/SplitButton.jsx +13 -7
- package/dist/components/splitter/Splitter.js +13 -9
- package/dist/components/splitter/Splitter.jsx +5 -5
- package/dist/components/steps/Steps.js +34 -23
- package/dist/components/steps/Steps.jsx +12 -12
- package/dist/components/swap/Swap.js +9 -6
- package/dist/components/swap/Swap.jsx +3 -3
- package/dist/components/switch/Switch.js +9 -7
- package/dist/components/switch/Switch.jsx +5 -5
- package/dist/components/tabs/Tabs.js +18 -12
- package/dist/components/tabs/Tabs.jsx +6 -6
- package/dist/components/tags-input/TagsInput.js +28 -20
- package/dist/components/tags-input/TagsInput.jsx +12 -12
- package/dist/components/timer/Timer.js +21 -14
- package/dist/components/timer/Timer.jsx +7 -7
- package/dist/components/toast/Toast.js +11 -9
- package/dist/components/toast/Toast.jsx +7 -7
- package/dist/components/toc/Toc.js +31 -20
- package/dist/components/toc/Toc.jsx +10 -10
- package/dist/components/tooltip/Tooltip.js +13 -9
- package/dist/components/tooltip/Tooltip.jsx +5 -5
- package/dist/components/tour/Tour.js +38 -26
- package/dist/components/tour/Tour.jsx +13 -13
- package/dist/components/tree-view/TreeView.js +39 -28
- package/dist/components/tree-view/TreeView.jsx +17 -17
- package/dist/styles/animations.css +8 -8
- package/package.json +1 -1
|
@@ -63,14 +63,14 @@ function CommandPaletteTrigger(props) {
|
|
|
63
63
|
'asChild',
|
|
64
64
|
'class'
|
|
65
65
|
]);
|
|
66
|
-
return <Dialog.Trigger asChild={local.asChild}
|
|
66
|
+
return <Dialog.Trigger asChild={local.asChild} class={cn(!local.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', local.class)} {...others} data-slot="command-palette-trigger"/>;
|
|
67
67
|
}
|
|
68
68
|
function CommandPaletteBackdrop(props) {
|
|
69
69
|
const [local, others] = splitProps(props, [
|
|
70
70
|
'class'
|
|
71
71
|
]);
|
|
72
72
|
return <OverlayPortal>
|
|
73
|
-
<Dialog.Backdrop
|
|
73
|
+
<Dialog.Backdrop class={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', local.class)} {...others} data-slot="command-palette-backdrop"/>
|
|
74
74
|
</OverlayPortal>;
|
|
75
75
|
}
|
|
76
76
|
function CommandPalettePositioner(props) {
|
|
@@ -78,14 +78,14 @@ function CommandPalettePositioner(props) {
|
|
|
78
78
|
'class'
|
|
79
79
|
]);
|
|
80
80
|
return <OverlayPortal>
|
|
81
|
-
<Dialog.Positioner
|
|
81
|
+
<Dialog.Positioner class={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', local.class)} {...others} data-slot="command-palette-positioner"/>
|
|
82
82
|
</OverlayPortal>;
|
|
83
83
|
}
|
|
84
84
|
function CommandPaletteContent(props) {
|
|
85
85
|
const [local, others] = splitProps(props, [
|
|
86
86
|
'class'
|
|
87
87
|
]);
|
|
88
|
-
return <Dialog.Content
|
|
88
|
+
return <Dialog.Content class={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', local.class)} {...others} data-slot="command-palette-content"/>;
|
|
89
89
|
}
|
|
90
90
|
function CommandPalettePanel(props) {
|
|
91
91
|
const [local, others] = splitProps(props, [
|
|
@@ -104,25 +104,25 @@ function CommandPaletteTitle(props) {
|
|
|
104
104
|
const [local, others] = splitProps(props, [
|
|
105
105
|
'class'
|
|
106
106
|
]);
|
|
107
|
-
return <Dialog.Title
|
|
107
|
+
return <Dialog.Title class={cn('text-md leading-6 font-semibold text-popover-foreground', local.class)} {...others} data-slot="command-palette-title"/>;
|
|
108
108
|
}
|
|
109
109
|
function CommandPaletteDescription(props) {
|
|
110
110
|
const [local, others] = splitProps(props, [
|
|
111
111
|
'class'
|
|
112
112
|
]);
|
|
113
|
-
return <Dialog.Description
|
|
113
|
+
return <Dialog.Description class={cn('text-sm leading-5 text-muted-foreground', local.class)} {...others} data-slot="command-palette-description"/>;
|
|
114
114
|
}
|
|
115
115
|
function CommandPaletteHeader(props) {
|
|
116
116
|
const [local, others] = splitProps(props, [
|
|
117
117
|
'class'
|
|
118
118
|
]);
|
|
119
|
-
return <ark.div
|
|
119
|
+
return <ark.div class={cn('grid gap-1 px-4 pt-4', local.class)} {...others} data-slot="command-palette-header"/>;
|
|
120
120
|
}
|
|
121
121
|
function CommandPaletteBody(props) {
|
|
122
122
|
const [local, others] = splitProps(props, [
|
|
123
123
|
'class'
|
|
124
124
|
]);
|
|
125
|
-
return <ark.div
|
|
125
|
+
return <ark.div class={cn('flex min-h-0 flex-1 flex-col', local.class)} {...others} data-slot="command-palette-body"/>;
|
|
126
126
|
}
|
|
127
127
|
const CommandPalette_CommandPaletteCombobox = function(props) {
|
|
128
128
|
const [local, others] = splitProps(props, [
|
|
@@ -140,7 +140,7 @@ const CommandPalette_CommandPaletteCombobox = function(props) {
|
|
|
140
140
|
local.onSelect?.(details);
|
|
141
141
|
if (local.closeOnSelect ?? true) dialog().setOpen(false);
|
|
142
142
|
};
|
|
143
|
-
return <Combobox.Root
|
|
143
|
+
return <Combobox.Root class={cn('flex min-h-0 flex-1 flex-col overflow-hidden', local.class)} open={local.open ?? true} inputBehavior={local.inputBehavior ?? 'autohighlight'} selectionBehavior={local.selectionBehavior ?? 'preserve'} closeOnSelect={local.closeOnSelect ?? true} disableLayer={local.disableLayer ?? true} onSelect={handleSelect} {...others} data-slot="command-palette-combobox">
|
|
144
144
|
{local.children}
|
|
145
145
|
</Combobox.Root>;
|
|
146
146
|
};
|
|
@@ -148,13 +148,13 @@ function CommandPaletteControl(props) {
|
|
|
148
148
|
const [local, others] = splitProps(props, [
|
|
149
149
|
'class'
|
|
150
150
|
]);
|
|
151
|
-
return <Combobox.Control
|
|
151
|
+
return <Combobox.Control class={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', local.class)} {...others} data-slot="command-palette-control"/>;
|
|
152
152
|
}
|
|
153
153
|
function CommandPaletteInput(props) {
|
|
154
154
|
const [local, others] = splitProps(props, [
|
|
155
155
|
'class'
|
|
156
156
|
]);
|
|
157
|
-
return <Combobox.Input
|
|
157
|
+
return <Combobox.Input class={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', local.class)} {...others} data-slot="command-palette-input"/>;
|
|
158
158
|
}
|
|
159
159
|
function CommandPaletteSearch(props) {
|
|
160
160
|
const [local, others] = splitProps(props, [
|
|
@@ -178,16 +178,13 @@ function CommandPaletteClearTrigger(props) {
|
|
|
178
178
|
]);
|
|
179
179
|
const resolvedChildren = children(()=>local.children);
|
|
180
180
|
return <Combobox.Context>
|
|
181
|
-
{(combobox)=><Combobox.ClearTrigger asChild={local.asChild}
|
|
181
|
+
{(combobox)=><Combobox.ClearTrigger asChild={local.asChild} hidden={0 === combobox().inputValue.length} aria-label={local['aria-label'] ?? (!local.asChild && null == local.children && null == local['aria-labelledby'] ? DEFAULT_CLEAR_TRIGGER_LABEL : void 0)} aria-labelledby={local['aria-labelledby']} class={cn('inline-flex size-6 shrink-0 cursor-pointer appearance-none items-center justify-center rounded-md bg-transparent text-muted-foreground transition-[background-color,color,opacity,translate,scale] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring motion-reduce:transition-none [&>svg]:size-3 [&>svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent [@media(hover:hover)]:hover:text-popover-foreground', local.class)} onClick={(event)=>{
|
|
182
182
|
local.onClick?.(event);
|
|
183
183
|
if (!event.defaultPrevented) combobox().setInputValue('');
|
|
184
184
|
}} onPointerDown={(event)=>{
|
|
185
185
|
local.onPointerDown?.(event);
|
|
186
|
-
if (0 === event.button)
|
|
187
|
-
|
|
188
|
-
combobox().setInputValue('');
|
|
189
|
-
}
|
|
190
|
-
}} {...others}>
|
|
186
|
+
if (0 === event.button) event.preventDefault();
|
|
187
|
+
}} {...others} data-slot="command-palette-clear-trigger">
|
|
191
188
|
{resolvedChildren() ?? <CloseIcon/>}
|
|
192
189
|
</Combobox.ClearTrigger>}
|
|
193
190
|
</Combobox.Context>;
|
|
@@ -197,7 +194,7 @@ function CommandPaletteList(props) {
|
|
|
197
194
|
'class',
|
|
198
195
|
'children'
|
|
199
196
|
]);
|
|
200
|
-
return <Combobox.Content
|
|
197
|
+
return <Combobox.Content class={cn('group/list flex min-h-0 flex-1 overflow-hidden outline-0', local.class)} {...others} data-slot="command-palette-list">
|
|
201
198
|
<ScrollArea data-slot="command-palette-scroll-area" class="h-auto min-h-0 flex-1">
|
|
202
199
|
<ScrollArea.Viewport data-slot="command-palette-scroll-viewport" class="scroll-py-2">
|
|
203
200
|
<ScrollArea.Content data-slot="command-palette-scroll-content" class="min-h-full px-3 py-3 group-data-[empty]/list:p-0">
|
|
@@ -211,31 +208,31 @@ function CommandPaletteEmpty(props) {
|
|
|
211
208
|
const [local, others] = splitProps(props, [
|
|
212
209
|
'class'
|
|
213
210
|
]);
|
|
214
|
-
return <Combobox.Empty
|
|
211
|
+
return <Combobox.Empty class={cn('[&:not(:empty)]:px-4 [&:not(:empty)]:py-3 [&:not(:empty)]:text-sm [&:not(:empty)]:leading-5 [&:not(:empty)]:text-muted-foreground', local.class)} {...others} data-slot="command-palette-empty"/>;
|
|
215
212
|
}
|
|
216
213
|
function CommandPaletteItemGroup(props) {
|
|
217
214
|
const [local, others] = splitProps(props, [
|
|
218
215
|
'class'
|
|
219
216
|
]);
|
|
220
|
-
return <Combobox.ItemGroup
|
|
217
|
+
return <Combobox.ItemGroup class={cn('grid gap-1 [&:not(:last-child)]:pb-2', local.class)} {...others} data-slot="command-palette-item-group"/>;
|
|
221
218
|
}
|
|
222
219
|
function CommandPaletteItemGroupLabel(props) {
|
|
223
220
|
const [local, others] = splitProps(props, [
|
|
224
221
|
'class'
|
|
225
222
|
]);
|
|
226
|
-
return <Combobox.ItemGroupLabel
|
|
223
|
+
return <Combobox.ItemGroupLabel class={cn('sticky top-0 z-1 block bg-popover px-3 py-1 text-xs leading-4 font-normal text-muted-foreground', local.class)} {...others} data-slot="command-palette-item-group-label"/>;
|
|
227
224
|
}
|
|
228
225
|
function CommandPaletteItem(props) {
|
|
229
226
|
const [local, others] = splitProps(props, [
|
|
230
227
|
'class'
|
|
231
228
|
]);
|
|
232
|
-
return <Combobox.Item
|
|
229
|
+
return <Combobox.Item class={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', local.class)} {...others} data-slot="command-palette-item"/>;
|
|
233
230
|
}
|
|
234
231
|
function CommandPaletteItemText(props) {
|
|
235
232
|
const [local, others] = splitProps(props, [
|
|
236
233
|
'class'
|
|
237
234
|
]);
|
|
238
|
-
return <Combobox.ItemText
|
|
235
|
+
return <Combobox.ItemText class={cn('grid min-w-0 gap-1', local.class)} {...others} data-slot="command-palette-item-text"/>;
|
|
239
236
|
}
|
|
240
237
|
function CommandPaletteItemIndicator(props) {
|
|
241
238
|
const [local, others] = splitProps(props, [
|
|
@@ -243,7 +240,7 @@ function CommandPaletteItemIndicator(props) {
|
|
|
243
240
|
'children'
|
|
244
241
|
]);
|
|
245
242
|
const resolvedChildren = children(()=>local.children);
|
|
246
|
-
return <Combobox.ItemIndicator
|
|
243
|
+
return <Combobox.ItemIndicator class={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', local.class)} {...others} data-slot="command-palette-item-indicator">
|
|
247
244
|
{resolvedChildren() ?? <CheckIcon/>}
|
|
248
245
|
</Combobox.ItemIndicator>;
|
|
249
246
|
}
|
|
@@ -251,43 +248,43 @@ function CommandPaletteItemIcon(props) {
|
|
|
251
248
|
const [local, others] = splitProps(props, [
|
|
252
249
|
'class'
|
|
253
250
|
]);
|
|
254
|
-
return <ark.span
|
|
251
|
+
return <ark.span class={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', local.class)} {...others} data-slot="command-palette-item-icon"/>;
|
|
255
252
|
}
|
|
256
253
|
function CommandPaletteItemLabel(props) {
|
|
257
254
|
const [local, others] = splitProps(props, [
|
|
258
255
|
'class'
|
|
259
256
|
]);
|
|
260
|
-
return <ark.span
|
|
257
|
+
return <ark.span class={cn('min-w-0 overflow-hidden font-medium text-ellipsis whitespace-nowrap', local.class)} {...others} data-slot="command-palette-item-label"/>;
|
|
261
258
|
}
|
|
262
259
|
function CommandPaletteItemDescription(props) {
|
|
263
260
|
const [local, others] = splitProps(props, [
|
|
264
261
|
'class'
|
|
265
262
|
]);
|
|
266
|
-
return <ark.span
|
|
263
|
+
return <ark.span class={cn('min-w-0 overflow-hidden text-xs leading-4 text-ellipsis whitespace-nowrap text-muted-foreground', local.class)} {...others} data-slot="command-palette-item-description"/>;
|
|
267
264
|
}
|
|
268
265
|
function CommandPaletteItemMeta(props) {
|
|
269
266
|
const [local, others] = splitProps(props, [
|
|
270
267
|
'class'
|
|
271
268
|
]);
|
|
272
|
-
return <ark.span
|
|
269
|
+
return <ark.span class={cn('justify-self-end text-xs leading-4 whitespace-nowrap text-muted-foreground', local.class)} {...others} data-slot="command-palette-item-meta"/>;
|
|
273
270
|
}
|
|
274
271
|
function CommandPaletteSeparator(props) {
|
|
275
272
|
const [local, others] = splitProps(props, [
|
|
276
273
|
'class'
|
|
277
274
|
]);
|
|
278
|
-
return <ark.div role="separator"
|
|
275
|
+
return <ark.div role="separator" class={cn('mx-2 my-2 h-px bg-border', local.class)} {...others} data-slot="command-palette-separator"/>;
|
|
279
276
|
}
|
|
280
277
|
function CommandPaletteFooter(props) {
|
|
281
278
|
const [local, others] = splitProps(props, [
|
|
282
279
|
'class'
|
|
283
280
|
]);
|
|
284
|
-
return <ark.div
|
|
281
|
+
return <ark.div class={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', local.class)} {...others} data-slot="command-palette-footer"/>;
|
|
285
282
|
}
|
|
286
283
|
function CommandPaletteKbd(props) {
|
|
287
284
|
const [local, others] = splitProps(props, [
|
|
288
285
|
'class'
|
|
289
286
|
]);
|
|
290
|
-
return <Kbd.Root
|
|
287
|
+
return <Kbd.Root class={cn('min-h-5 min-w-5 rounded-sm px-1 text-xs leading-4 text-muted-foreground', local.class)} {...others} data-slot="command-palette-kbd"/>;
|
|
291
288
|
}
|
|
292
289
|
const CommandPalette = Object.assign(CommandPaletteRoot, {
|
|
293
290
|
Root: 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
87
|
+
class: 'max-w-[90rem]'
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
size: 'xl',
|
|
@@ -23,7 +23,7 @@ const containerVariants = cva('w-full min-w-0 mx-auto', {
|
|
|
23
23
|
{
|
|
24
24
|
size: 'xs',
|
|
25
25
|
gutter: 'none',
|
|
26
|
-
class: 'max-w-
|
|
26
|
+
class: 'max-w-[40rem]'
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
size: 'xs',
|
|
@@ -38,7 +38,7 @@ const containerVariants = cva('w-full min-w-0 mx-auto', {
|
|
|
38
38
|
{
|
|
39
39
|
size: 'sm',
|
|
40
40
|
gutter: 'none',
|
|
41
|
-
class: 'max-w-
|
|
41
|
+
class: 'max-w-[48rem]'
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
size: 'sm',
|
|
@@ -53,7 +53,7 @@ const containerVariants = cva('w-full min-w-0 mx-auto', {
|
|
|
53
53
|
{
|
|
54
54
|
size: 'md',
|
|
55
55
|
gutter: 'none',
|
|
56
|
-
class: 'max-w-
|
|
56
|
+
class: 'max-w-[64rem]'
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
size: 'md',
|
|
@@ -68,7 +68,7 @@ const containerVariants = cva('w-full min-w-0 mx-auto', {
|
|
|
68
68
|
{
|
|
69
69
|
size: 'lg',
|
|
70
70
|
gutter: 'none',
|
|
71
|
-
class: 'max-w-
|
|
71
|
+
class: 'max-w-[72rem]'
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
size: 'lg',
|
|
@@ -83,7 +83,7 @@ const containerVariants = cva('w-full min-w-0 mx-auto', {
|
|
|
83
83
|
{
|
|
84
84
|
size: 'xl',
|
|
85
85
|
gutter: 'none',
|
|
86
|
-
class: 'max-w-
|
|
86
|
+
class: 'max-w-[90rem]'
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
size: 'xl',
|
|
@@ -2,7 +2,7 @@ import { createComponent, mergeProps, spread, template } from "solid-js/web";
|
|
|
2
2
|
import { DateInput, useDateInput, useDateInputContext } from "@ark-ui/solid/date-input";
|
|
3
3
|
import { splitProps } from "solid-js";
|
|
4
4
|
import { cn } from "../../internal/cn.js";
|
|
5
|
-
var _tmpl$ = /*#__PURE__*/ template("<span
|
|
5
|
+
var _tmpl$ = /*#__PURE__*/ template("<span>");
|
|
6
6
|
function DateInputRoot(props) {
|
|
7
7
|
const [local, others] = splitProps(props, [
|
|
8
8
|
'asChild',
|
|
@@ -13,11 +13,11 @@ function DateInputRoot(props) {
|
|
|
13
13
|
get asChild () {
|
|
14
14
|
return local.asChild;
|
|
15
15
|
},
|
|
16
|
-
"data-slot": "date-input-root",
|
|
17
16
|
get ["class"] () {
|
|
18
17
|
return cn('inline-flex w-full max-w-none flex-col items-start gap-1 data-disabled:opacity-50', local.class);
|
|
19
18
|
}
|
|
20
19
|
}, others, {
|
|
20
|
+
"data-slot": "date-input-root",
|
|
21
21
|
get children () {
|
|
22
22
|
return local.children;
|
|
23
23
|
}
|
|
@@ -33,11 +33,11 @@ function DateInputRootProvider(props) {
|
|
|
33
33
|
get asChild () {
|
|
34
34
|
return local.asChild;
|
|
35
35
|
},
|
|
36
|
-
"data-slot": "date-input-root-provider",
|
|
37
36
|
get ["class"] () {
|
|
38
37
|
return cn('inline-flex w-full max-w-none flex-col items-start gap-1 data-disabled:opacity-50', local.class);
|
|
39
38
|
}
|
|
40
39
|
}, others, {
|
|
40
|
+
"data-slot": "date-input-root-provider",
|
|
41
41
|
get children () {
|
|
42
42
|
return local.children;
|
|
43
43
|
}
|
|
@@ -48,44 +48,48 @@ function DateInputLabel(props) {
|
|
|
48
48
|
'class'
|
|
49
49
|
]);
|
|
50
50
|
return createComponent(DateInput.Label, mergeProps({
|
|
51
|
-
"data-slot": "date-input-label",
|
|
52
51
|
get ["class"] () {
|
|
53
52
|
return cn('text-sm leading-5 font-medium text-foreground', local.class);
|
|
54
53
|
}
|
|
55
|
-
}, others
|
|
54
|
+
}, others, {
|
|
55
|
+
"data-slot": "date-input-label"
|
|
56
|
+
}));
|
|
56
57
|
}
|
|
57
58
|
function DateInputControl(props) {
|
|
58
59
|
const [local, others] = splitProps(props, [
|
|
59
60
|
'class'
|
|
60
61
|
]);
|
|
61
62
|
return createComponent(DateInput.Control, mergeProps({
|
|
62
|
-
"data-slot": "date-input-control",
|
|
63
63
|
get ["class"] () {
|
|
64
64
|
return 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', local.class);
|
|
65
65
|
}
|
|
66
|
-
}, others
|
|
66
|
+
}, others, {
|
|
67
|
+
"data-slot": "date-input-control"
|
|
68
|
+
}));
|
|
67
69
|
}
|
|
68
70
|
function DateInputSegmentGroup(props) {
|
|
69
71
|
const [local, others] = splitProps(props, [
|
|
70
72
|
'class'
|
|
71
73
|
]);
|
|
72
74
|
return createComponent(DateInput.SegmentGroup, mergeProps({
|
|
73
|
-
"data-slot": "date-input-segment-group",
|
|
74
75
|
get ["class"] () {
|
|
75
76
|
return cn('inline-flex items-center gap-0.5 tabular-nums', local.class);
|
|
76
77
|
}
|
|
77
|
-
}, others
|
|
78
|
+
}, others, {
|
|
79
|
+
"data-slot": "date-input-segment-group"
|
|
80
|
+
}));
|
|
78
81
|
}
|
|
79
82
|
function DateInputSegment(props) {
|
|
80
83
|
const [local, others] = splitProps(props, [
|
|
81
84
|
'class'
|
|
82
85
|
]);
|
|
83
86
|
return createComponent(DateInput.Segment, mergeProps({
|
|
84
|
-
"data-slot": "date-input-segment",
|
|
85
87
|
get ["class"] () {
|
|
86
88
|
return 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', local.class);
|
|
87
89
|
}
|
|
88
|
-
}, others
|
|
90
|
+
}, others, {
|
|
91
|
+
"data-slot": "date-input-segment"
|
|
92
|
+
}));
|
|
89
93
|
}
|
|
90
94
|
function DateInputSegments(props) {
|
|
91
95
|
return createComponent(DateInputSegmentGroup, mergeProps(props, {
|
|
@@ -116,7 +120,9 @@ function DateInputSeparator(props) {
|
|
|
116
120
|
get ["class"] () {
|
|
117
121
|
return cn('text-muted-foreground select-none', local.class);
|
|
118
122
|
}
|
|
119
|
-
}, others
|
|
123
|
+
}, others, {
|
|
124
|
+
"data-slot": "date-input-separator"
|
|
125
|
+
}), false, false);
|
|
120
126
|
return _el$;
|
|
121
127
|
})();
|
|
122
128
|
}
|
|
@@ -7,7 +7,7 @@ function DateInputRoot(props) {
|
|
|
7
7
|
'children',
|
|
8
8
|
'class'
|
|
9
9
|
]);
|
|
10
|
-
return <DateInput.Root asChild={local.asChild}
|
|
10
|
+
return <DateInput.Root asChild={local.asChild} class={cn('inline-flex w-full max-w-none flex-col items-start gap-1 data-disabled:opacity-50', local.class)} {...others} data-slot="date-input-root">
|
|
11
11
|
{local.children}
|
|
12
12
|
</DateInput.Root>;
|
|
13
13
|
}
|
|
@@ -17,7 +17,7 @@ function DateInputRootProvider(props) {
|
|
|
17
17
|
'children',
|
|
18
18
|
'class'
|
|
19
19
|
]);
|
|
20
|
-
return <DateInput.RootProvider asChild={local.asChild}
|
|
20
|
+
return <DateInput.RootProvider asChild={local.asChild} class={cn('inline-flex w-full max-w-none flex-col items-start gap-1 data-disabled:opacity-50', local.class)} {...others} data-slot="date-input-root-provider">
|
|
21
21
|
{local.children}
|
|
22
22
|
</DateInput.RootProvider>;
|
|
23
23
|
}
|
|
@@ -25,25 +25,25 @@ function DateInputLabel(props) {
|
|
|
25
25
|
const [local, others] = splitProps(props, [
|
|
26
26
|
'class'
|
|
27
27
|
]);
|
|
28
|
-
return <DateInput.Label
|
|
28
|
+
return <DateInput.Label class={cn('text-sm leading-5 font-medium text-foreground', local.class)} {...others} data-slot="date-input-label"/>;
|
|
29
29
|
}
|
|
30
30
|
function DateInputControl(props) {
|
|
31
31
|
const [local, others] = splitProps(props, [
|
|
32
32
|
'class'
|
|
33
33
|
]);
|
|
34
|
-
return <DateInput.Control
|
|
34
|
+
return <DateInput.Control class={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', local.class)} {...others} data-slot="date-input-control"/>;
|
|
35
35
|
}
|
|
36
36
|
function DateInputSegmentGroup(props) {
|
|
37
37
|
const [local, others] = splitProps(props, [
|
|
38
38
|
'class'
|
|
39
39
|
]);
|
|
40
|
-
return <DateInput.SegmentGroup
|
|
40
|
+
return <DateInput.SegmentGroup class={cn('inline-flex items-center gap-0.5 tabular-nums', local.class)} {...others} data-slot="date-input-segment-group"/>;
|
|
41
41
|
}
|
|
42
42
|
function DateInputSegment(props) {
|
|
43
43
|
const [local, others] = splitProps(props, [
|
|
44
44
|
'class'
|
|
45
45
|
]);
|
|
46
|
-
return <DateInput.Segment
|
|
46
|
+
return <DateInput.Segment class={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', local.class)} {...others} data-slot="date-input-segment"/>;
|
|
47
47
|
}
|
|
48
48
|
function DateInputSegments(props) {
|
|
49
49
|
return <DateInputSegmentGroup {...props}>
|
|
@@ -58,7 +58,7 @@ function DateInputSeparator(props) {
|
|
|
58
58
|
'class',
|
|
59
59
|
'role'
|
|
60
60
|
]);
|
|
61
|
-
return <span
|
|
61
|
+
return <span aria-hidden={local['aria-hidden'] ?? true} role={local.role ?? 'presentation'} class={cn('text-muted-foreground select-none', local.class)} {...others} data-slot="date-input-separator"/>;
|
|
62
62
|
}
|
|
63
63
|
const DateInput_DateInput = Object.assign(DateInputRoot, {
|
|
64
64
|
Root: DateInputRoot,
|