@moduix/solid-tailwind 1.0.0 → 1.1.1
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 +72 -53
- package/dist/components/command-palette/CommandPalette.jsx +29 -32
- 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 +10 -11
|
@@ -4,7 +4,7 @@ import { children, splitProps } from "solid-js";
|
|
|
4
4
|
import { cn } from "../../internal/cn.js";
|
|
5
5
|
import { CheckIcon, ChevronDownIcon, PipetteIcon } from "../../internal/icons/ui/Icons.js";
|
|
6
6
|
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
|
|
7
|
-
var _tmpl$ = /*#__PURE__*/ template("<div
|
|
7
|
+
var _tmpl$ = /*#__PURE__*/ template("<div>"), _tmpl$2 = /*#__PURE__*/ template('<span class="group/format-select relative inline-grid w-fit max-w-full min-w-0 shrink-0"><span aria-hidden=true class="pointer-events-none absolute top-1/2 right-3 inline-flex size-4 -translate-y-1/2 items-center justify-center rounded-sm bg-transparent leading-none text-muted-foreground transition-[background-color,color,opacity] duration-200 ease-in-out peer-disabled/format-select:opacity-50 peer-data-disabled/format-select:opacity-50 peer-[:not([disabled]):hover]/format-select:bg-muted peer-[:not([disabled]):hover]/format-select:text-foreground forced-colors:hidden [&>svg]:block [&>svg]:size-full">');
|
|
8
8
|
function ColorPickerRoot(props) {
|
|
9
9
|
const [local, others] = splitProps(props, [
|
|
10
10
|
'asChild',
|
|
@@ -27,7 +27,6 @@ function ColorPickerRoot(props) {
|
|
|
27
27
|
get asChild () {
|
|
28
28
|
return local.asChild;
|
|
29
29
|
},
|
|
30
|
-
"data-slot": "color-picker-root",
|
|
31
30
|
get ["class"] () {
|
|
32
31
|
return cn('box-border flex w-64 max-w-full min-w-0 flex-col gap-2 text-foreground data-disabled:opacity-50', local.class);
|
|
33
32
|
},
|
|
@@ -38,6 +37,7 @@ function ColorPickerRoot(props) {
|
|
|
38
37
|
return local.unmountOnExit ?? true;
|
|
39
38
|
}
|
|
40
39
|
}, others, {
|
|
40
|
+
"data-slot": "color-picker-root",
|
|
41
41
|
get children () {
|
|
42
42
|
return local.children;
|
|
43
43
|
}
|
|
@@ -67,7 +67,6 @@ function ColorPickerRootProvider(props) {
|
|
|
67
67
|
get asChild () {
|
|
68
68
|
return local.asChild;
|
|
69
69
|
},
|
|
70
|
-
"data-slot": "color-picker-root-provider",
|
|
71
70
|
get ["class"] () {
|
|
72
71
|
return cn('box-border flex w-64 max-w-full min-w-0 flex-col gap-2 text-foreground data-disabled:opacity-50', local.class);
|
|
73
72
|
},
|
|
@@ -78,6 +77,7 @@ function ColorPickerRootProvider(props) {
|
|
|
78
77
|
return local.unmountOnExit ?? true;
|
|
79
78
|
}
|
|
80
79
|
}, others, {
|
|
80
|
+
"data-slot": "color-picker-root-provider",
|
|
81
81
|
get children () {
|
|
82
82
|
return local.children;
|
|
83
83
|
}
|
|
@@ -90,22 +90,24 @@ function ColorPickerLabel(props) {
|
|
|
90
90
|
'class'
|
|
91
91
|
]);
|
|
92
92
|
return createComponent(ColorPicker.Label, mergeProps({
|
|
93
|
-
"data-slot": "color-picker-label",
|
|
94
93
|
get ["class"] () {
|
|
95
94
|
return cn('inline-flex items-center text-sm font-medium text-foreground select-none', local.class);
|
|
96
95
|
}
|
|
97
|
-
}, others
|
|
96
|
+
}, others, {
|
|
97
|
+
"data-slot": "color-picker-label"
|
|
98
|
+
}));
|
|
98
99
|
}
|
|
99
100
|
function ColorPickerControl(props) {
|
|
100
101
|
const [local, others] = splitProps(props, [
|
|
101
102
|
'class'
|
|
102
103
|
]);
|
|
103
104
|
return createComponent(ColorPicker.Control, mergeProps({
|
|
104
|
-
"data-slot": "color-picker-control",
|
|
105
105
|
get ["class"] () {
|
|
106
106
|
return cn('flex min-w-0 items-center gap-2 data-disabled:opacity-50', local.class);
|
|
107
107
|
}
|
|
108
|
-
}, others
|
|
108
|
+
}, others, {
|
|
109
|
+
"data-slot": "color-picker-control"
|
|
110
|
+
}));
|
|
109
111
|
}
|
|
110
112
|
function ColorPickerTrigger(props) {
|
|
111
113
|
const [local, others] = splitProps(props, [
|
|
@@ -114,11 +116,11 @@ function ColorPickerTrigger(props) {
|
|
|
114
116
|
]);
|
|
115
117
|
const resolvedChildren = children(()=>local.children);
|
|
116
118
|
return createComponent(ColorPicker.Trigger, mergeProps({
|
|
117
|
-
"data-slot": "color-picker-trigger",
|
|
118
119
|
get ["class"] () {
|
|
119
120
|
return cn('group/trigger box-border grid size-control-md shrink-0 place-items-center overflow-hidden rounded-md border border-border bg-background p-1 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color,background-color] duration-200 ease-in-out select-none focus-visible:border-ring focus-visible:outline-ring disabled:cursor-default data-disabled:cursor-default data-invalid:border-destructive data-invalid:outline-destructive data-readonly:cursor-default data-[fit-content]:inline-flex data-[fit-content]:w-auto data-[fit-content]:min-w-control-md data-[fit-content]:gap-2 data-[fit-content]:px-3 data-[state=open]:border-ring data-[state=open]:outline-ring motion-reduce:transition-none', local.class);
|
|
120
121
|
}
|
|
121
122
|
}, others, {
|
|
123
|
+
"data-slot": "color-picker-trigger",
|
|
122
124
|
get children () {
|
|
123
125
|
return resolvedChildren() ?? [
|
|
124
126
|
createComponent(ColorPicker.TransparencyGrid, {
|
|
@@ -140,11 +142,12 @@ function ColorPickerPositioner(props) {
|
|
|
140
142
|
return createComponent(OverlayPortal, {
|
|
141
143
|
get children () {
|
|
142
144
|
return createComponent(ColorPicker.Positioner, mergeProps({
|
|
143
|
-
"data-slot": "color-picker-positioner",
|
|
144
145
|
get ["class"] () {
|
|
145
146
|
return cn('z-[var(--z-index)] outline-0', local.class);
|
|
146
147
|
}
|
|
147
|
-
}, others
|
|
148
|
+
}, others, {
|
|
149
|
+
"data-slot": "color-picker-positioner"
|
|
150
|
+
}));
|
|
148
151
|
}
|
|
149
152
|
});
|
|
150
153
|
}
|
|
@@ -153,11 +156,12 @@ function ColorPickerContent(props) {
|
|
|
153
156
|
'class'
|
|
154
157
|
]);
|
|
155
158
|
return createComponent(ColorPicker.Content, mergeProps({
|
|
156
|
-
"data-slot": "color-picker-content",
|
|
157
159
|
get ["class"] () {
|
|
158
160
|
return cn('z-[calc(var(--moduix-z-popup)+var(--layer-index,0))] box-border flex max-h-[min(32rem,var(--available-height))] w-64 max-w-[var(--available-width)] origin-[var(--transform-origin)] flex-col gap-3 overflow-auto overscroll-contain rounded-md border border-border bg-popover p-4 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]', local.class);
|
|
159
161
|
}
|
|
160
|
-
}, others
|
|
162
|
+
}, others, {
|
|
163
|
+
"data-slot": "color-picker-content"
|
|
164
|
+
}));
|
|
161
165
|
}
|
|
162
166
|
function ColorPickerArea(props) {
|
|
163
167
|
const [local, others] = splitProps(props, [
|
|
@@ -166,11 +170,11 @@ function ColorPickerArea(props) {
|
|
|
166
170
|
]);
|
|
167
171
|
const resolvedChildren = children(()=>local.children);
|
|
168
172
|
return createComponent(ColorPicker.Area, mergeProps({
|
|
169
|
-
"data-slot": "color-picker-area",
|
|
170
173
|
get ["class"] () {
|
|
171
174
|
return cn('relative box-border h-40 w-full touch-none overflow-hidden rounded-md shadow-[inset_0_0_0_1px_color-mix(in_oklab,black_14%,transparent)] select-none data-disabled:cursor-default data-readonly:cursor-default', local.class);
|
|
172
175
|
}
|
|
173
176
|
}, others, {
|
|
177
|
+
"data-slot": "color-picker-area",
|
|
174
178
|
get children () {
|
|
175
179
|
return resolvedChildren() ?? [
|
|
176
180
|
createComponent(ColorPicker.AreaBackground, {
|
|
@@ -190,22 +194,24 @@ function ColorPickerAreaBackground(props) {
|
|
|
190
194
|
'class'
|
|
191
195
|
]);
|
|
192
196
|
return createComponent(ColorPicker.AreaBackground, mergeProps({
|
|
193
|
-
"data-slot": "color-picker-area-background",
|
|
194
197
|
get ["class"] () {
|
|
195
198
|
return cn('size-full rounded-[inherit]', local.class);
|
|
196
199
|
}
|
|
197
|
-
}, others
|
|
200
|
+
}, others, {
|
|
201
|
+
"data-slot": "color-picker-area-background"
|
|
202
|
+
}));
|
|
198
203
|
}
|
|
199
204
|
function ColorPickerAreaThumb(props) {
|
|
200
205
|
const [local, others] = splitProps(props, [
|
|
201
206
|
'class'
|
|
202
207
|
]);
|
|
203
208
|
return createComponent(ColorPicker.AreaThumb, mergeProps({
|
|
204
|
-
"data-slot": "color-picker-area-thumb",
|
|
205
209
|
get ["class"] () {
|
|
206
210
|
return cn('box-border size-4 -translate-x-1/2 -translate-y-1/2 rounded-full bg-background shadow-[0_0_0_4px_rgb(0_0_0_/_18%),0_2px_4px_0_rgb(0_0_0_/_10%),0_1px_2px_-1px_rgb(0_0_0_/_10%)] ring-2 ring-background outline-0 focus-visible:ring-ring data-disabled:pointer-events-none', local.class);
|
|
207
211
|
}
|
|
208
|
-
}, others
|
|
212
|
+
}, others, {
|
|
213
|
+
"data-slot": "color-picker-area-thumb"
|
|
214
|
+
}));
|
|
209
215
|
}
|
|
210
216
|
function ColorPickerChannelSlider(props) {
|
|
211
217
|
const [local, others] = splitProps(props, [
|
|
@@ -218,11 +224,11 @@ function ColorPickerChannelSlider(props) {
|
|
|
218
224
|
get channel () {
|
|
219
225
|
return local.channel;
|
|
220
226
|
},
|
|
221
|
-
"data-slot": "color-picker-channel-slider",
|
|
222
227
|
get ["class"] () {
|
|
223
228
|
return cn('relative box-border flex h-3 touch-none items-center rounded-full select-none data-[orientation=vertical]:h-40 data-[orientation=vertical]:w-3 data-[orientation=vertical]:items-stretch data-[orientation=vertical]:justify-center', local.class);
|
|
224
229
|
}
|
|
225
230
|
}, others, {
|
|
231
|
+
"data-slot": "color-picker-channel-slider",
|
|
226
232
|
get children () {
|
|
227
233
|
return resolvedChildren() ?? [
|
|
228
234
|
memo(()=>memo(()=>'alpha' === local.channel)() && createComponent(ColorPicker.TransparencyGrid, {
|
|
@@ -251,7 +257,9 @@ function ColorPickerSliders(props) {
|
|
|
251
257
|
get ["class"] () {
|
|
252
258
|
return cn('flex min-w-0 flex-1 flex-col gap-2', local.class);
|
|
253
259
|
}
|
|
254
|
-
}, others
|
|
260
|
+
}, others, {
|
|
261
|
+
"data-slot": "color-picker-sliders"
|
|
262
|
+
}), false, true);
|
|
255
263
|
insert(_el$, createComponent(ColorPickerChannelSlider, {
|
|
256
264
|
channel: "hue"
|
|
257
265
|
}), null);
|
|
@@ -266,55 +274,60 @@ function ColorPickerChannelSliderTrack(props) {
|
|
|
266
274
|
'class'
|
|
267
275
|
]);
|
|
268
276
|
return createComponent(ColorPicker.ChannelSliderTrack, mergeProps({
|
|
269
|
-
"data-slot": "color-picker-channel-slider-track",
|
|
270
277
|
get ["class"] () {
|
|
271
278
|
return cn('h-3 w-full rounded-[inherit] shadow-[inset_0_0_0_1px_color-mix(in_oklab,black_14%,transparent)] data-[orientation=vertical]:h-full data-[orientation=vertical]:w-3', local.class);
|
|
272
279
|
}
|
|
273
|
-
}, others
|
|
280
|
+
}, others, {
|
|
281
|
+
"data-slot": "color-picker-channel-slider-track"
|
|
282
|
+
}));
|
|
274
283
|
}
|
|
275
284
|
function ColorPickerChannelSliderThumb(props) {
|
|
276
285
|
const [local, others] = splitProps(props, [
|
|
277
286
|
'class'
|
|
278
287
|
]);
|
|
279
288
|
return createComponent(ColorPicker.ChannelSliderThumb, mergeProps({
|
|
280
|
-
"data-slot": "color-picker-channel-slider-thumb",
|
|
281
289
|
get ["class"] () {
|
|
282
290
|
return cn('box-border size-4 -translate-x-1/2 -translate-y-1/2 rounded-full bg-background shadow-[0_0_0_4px_rgb(0_0_0_/_18%),0_2px_4px_0_rgb(0_0_0_/_10%),0_1px_2px_-1px_rgb(0_0_0_/_10%)] ring-2 ring-background outline-0 focus-visible:ring-ring data-disabled:pointer-events-none', local.class);
|
|
283
291
|
}
|
|
284
|
-
}, others
|
|
292
|
+
}, others, {
|
|
293
|
+
"data-slot": "color-picker-channel-slider-thumb"
|
|
294
|
+
}));
|
|
285
295
|
}
|
|
286
296
|
function ColorPickerChannelSliderLabel(props) {
|
|
287
297
|
const [local, others] = splitProps(props, [
|
|
288
298
|
'class'
|
|
289
299
|
]);
|
|
290
300
|
return createComponent(ColorPicker.ChannelSliderLabel, mergeProps({
|
|
291
|
-
"data-slot": "color-picker-channel-slider-label",
|
|
292
301
|
get ["class"] () {
|
|
293
302
|
return cn('text-sm font-medium text-foreground', local.class);
|
|
294
303
|
}
|
|
295
|
-
}, others
|
|
304
|
+
}, others, {
|
|
305
|
+
"data-slot": "color-picker-channel-slider-label"
|
|
306
|
+
}));
|
|
296
307
|
}
|
|
297
308
|
function ColorPickerChannelSliderValueText(props) {
|
|
298
309
|
const [local, others] = splitProps(props, [
|
|
299
310
|
'class'
|
|
300
311
|
]);
|
|
301
312
|
return createComponent(ColorPicker.ChannelSliderValueText, mergeProps({
|
|
302
|
-
"data-slot": "color-picker-channel-slider-value-text",
|
|
303
313
|
get ["class"] () {
|
|
304
314
|
return cn('text-sm text-muted-foreground', local.class);
|
|
305
315
|
}
|
|
306
|
-
}, others
|
|
316
|
+
}, others, {
|
|
317
|
+
"data-slot": "color-picker-channel-slider-value-text"
|
|
318
|
+
}));
|
|
307
319
|
}
|
|
308
320
|
function ColorPickerChannelInput(props) {
|
|
309
321
|
const [local, others] = splitProps(props, [
|
|
310
322
|
'class'
|
|
311
323
|
]);
|
|
312
324
|
return createComponent(ColorPicker.ChannelInput, mergeProps({
|
|
313
|
-
"data-slot": "color-picker-channel-input",
|
|
314
325
|
get ["class"] () {
|
|
315
326
|
return cn('box-border h-control-md w-full min-w-0 [appearance:textfield] rounded-md border border-border bg-background px-3 text-sm text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color] duration-200 ease-in-out focus:border-ring focus:outline-ring data-disabled:opacity-50 data-invalid:border-destructive data-invalid:outline-destructive data-[channel=alpha]:w-16 data-[channel=alpha]:flex-none motion-reduce:transition-none [&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:m-0 [&::-webkit-outer-spin-button]:appearance-none', local.class);
|
|
316
327
|
}
|
|
317
|
-
}, others
|
|
328
|
+
}, others, {
|
|
329
|
+
"data-slot": "color-picker-channel-input"
|
|
330
|
+
}));
|
|
318
331
|
}
|
|
319
332
|
function ColorPickerEyeDropperTrigger(props) {
|
|
320
333
|
const [local, others] = splitProps(props, [
|
|
@@ -323,11 +336,11 @@ function ColorPickerEyeDropperTrigger(props) {
|
|
|
323
336
|
]);
|
|
324
337
|
const resolvedChildren = children(()=>local.children);
|
|
325
338
|
return createComponent(ColorPicker.EyeDropperTrigger, mergeProps({
|
|
326
|
-
"data-slot": "color-picker-eye-dropper-trigger",
|
|
327
339
|
get ["class"] () {
|
|
328
340
|
return cn('box-border inline-flex h-control-md min-w-control-md shrink-0 items-center justify-center gap-2 rounded-md border border-border bg-transparent px-2 text-sm text-muted-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color,background-color,color] duration-200 ease-in-out focus-visible:border-ring focus-visible:outline-ring disabled:cursor-default data-disabled:cursor-default data-focus:border-ring data-focus:outline-ring data-readonly:cursor-default motion-reduce:transition-none [&:not([disabled]):not([data-disabled]):not([data-readonly]):hover]:bg-muted [&:not([disabled]):not([data-disabled]):not([data-readonly]):hover]:text-foreground [&>svg]:size-4 [&>svg]:shrink-0', local.class);
|
|
329
341
|
}
|
|
330
342
|
}, others, {
|
|
343
|
+
"data-slot": "color-picker-eye-dropper-trigger",
|
|
331
344
|
get children () {
|
|
332
345
|
return resolvedChildren() ?? createComponent(PipetteIcon, {});
|
|
333
346
|
}
|
|
@@ -340,11 +353,12 @@ function ColorPickerFormatSelect(props) {
|
|
|
340
353
|
return (()=>{
|
|
341
354
|
var _el$2 = _tmpl$2(), _el$3 = _el$2.firstChild;
|
|
342
355
|
insert(_el$2, createComponent(ColorPicker.FormatSelect, mergeProps({
|
|
343
|
-
"data-slot": "color-picker-format-select",
|
|
344
356
|
get ["class"] () {
|
|
345
357
|
return cn('peer/format-select box-border h-control-md w-auto min-w-0 rounded-md border border-border bg-background px-3 pe-8 text-sm text-foreground uppercase outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color] duration-200 ease-in-out focus:border-ring focus:outline-ring disabled:cursor-default data-disabled:cursor-default data-disabled:opacity-50 data-invalid:border-destructive data-invalid:outline-destructive forced-colors:appearance-auto forced-colors:pe-3', local.class);
|
|
346
358
|
}
|
|
347
|
-
}, others
|
|
359
|
+
}, others, {
|
|
360
|
+
"data-slot": "color-picker-format-select"
|
|
361
|
+
})), _el$3);
|
|
348
362
|
insert(_el$3, createComponent(ChevronDownIcon, {}));
|
|
349
363
|
return _el$2;
|
|
350
364
|
})();
|
|
@@ -354,22 +368,24 @@ function ColorPickerFormatTrigger(props) {
|
|
|
354
368
|
'class'
|
|
355
369
|
]);
|
|
356
370
|
return createComponent(ColorPicker.FormatTrigger, mergeProps({
|
|
357
|
-
"data-slot": "color-picker-format-trigger",
|
|
358
371
|
get ["class"] () {
|
|
359
372
|
return cn('box-border inline-flex h-control-md min-w-control-md shrink-0 items-center justify-center gap-2 rounded-md border border-border bg-transparent px-2 text-sm text-muted-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color,background-color,color] duration-200 ease-in-out focus-visible:border-ring focus-visible:outline-ring disabled:cursor-default data-disabled:cursor-default data-focus:border-ring data-focus:outline-ring data-readonly:cursor-default motion-reduce:transition-none [&:not([disabled]):not([data-disabled]):not([data-readonly]):hover]:bg-muted [&:not([disabled]):not([data-disabled]):not([data-readonly]):hover]:text-foreground [&>svg]:size-4 [&>svg]:shrink-0', local.class);
|
|
360
373
|
}
|
|
361
|
-
}, others
|
|
374
|
+
}, others, {
|
|
375
|
+
"data-slot": "color-picker-format-trigger"
|
|
376
|
+
}));
|
|
362
377
|
}
|
|
363
378
|
function ColorPickerSwatchGroup(props) {
|
|
364
379
|
const [local, others] = splitProps(props, [
|
|
365
380
|
'class'
|
|
366
381
|
]);
|
|
367
382
|
return createComponent(ColorPicker.SwatchGroup, mergeProps({
|
|
368
|
-
"data-slot": "color-picker-swatch-group",
|
|
369
383
|
get ["class"] () {
|
|
370
384
|
return cn('flex flex-wrap gap-2', local.class);
|
|
371
385
|
}
|
|
372
|
-
}, others
|
|
386
|
+
}, others, {
|
|
387
|
+
"data-slot": "color-picker-swatch-group"
|
|
388
|
+
}));
|
|
373
389
|
}
|
|
374
390
|
function ColorPickerSwatchTrigger(props) {
|
|
375
391
|
const [local, others] = splitProps(props, [
|
|
@@ -379,7 +395,6 @@ function ColorPickerSwatchTrigger(props) {
|
|
|
379
395
|
]);
|
|
380
396
|
const resolvedChildren = children(()=>local.children);
|
|
381
397
|
return createComponent(ColorPicker.SwatchTrigger, mergeProps({
|
|
382
|
-
"data-slot": "color-picker-swatch-trigger",
|
|
383
398
|
get ["class"] () {
|
|
384
399
|
return cn('group/swatch inline-flex cursor-pointer items-center justify-center rounded-sm border-0 bg-transparent p-0 outline-0 focus-visible:ring-2 focus-visible:ring-ring data-disabled:cursor-default data-disabled:opacity-50', local.class);
|
|
385
400
|
},
|
|
@@ -387,6 +402,7 @@ function ColorPickerSwatchTrigger(props) {
|
|
|
387
402
|
return local.value;
|
|
388
403
|
}
|
|
389
404
|
}, others, {
|
|
405
|
+
"data-slot": "color-picker-swatch-trigger",
|
|
390
406
|
get children () {
|
|
391
407
|
return resolvedChildren() ?? createComponent(ColorPicker.Swatch, {
|
|
392
408
|
"data-slot": "color-picker-swatch",
|
|
@@ -412,11 +428,12 @@ function ColorPickerSwatch(props) {
|
|
|
412
428
|
'class'
|
|
413
429
|
]);
|
|
414
430
|
return createComponent(ColorPicker.Swatch, mergeProps({
|
|
415
|
-
"data-slot": "color-picker-swatch",
|
|
416
431
|
get ["class"] () {
|
|
417
432
|
return cn('relative grid size-control-sm shrink-0 place-items-center overflow-hidden rounded-[inherit] shadow-[inset_0_0_0_1px_color-mix(in_oklab,black_14%,transparent)]', local.class);
|
|
418
433
|
}
|
|
419
|
-
}, others
|
|
434
|
+
}, others, {
|
|
435
|
+
"data-slot": "color-picker-swatch"
|
|
436
|
+
}));
|
|
420
437
|
}
|
|
421
438
|
function ColorPickerSwatchIndicator(props) {
|
|
422
439
|
const [local, others] = splitProps(props, [
|
|
@@ -425,11 +442,11 @@ function ColorPickerSwatchIndicator(props) {
|
|
|
425
442
|
]);
|
|
426
443
|
const resolvedChildren = children(()=>local.children);
|
|
427
444
|
return createComponent(ColorPicker.SwatchIndicator, mergeProps({
|
|
428
|
-
"data-slot": "color-picker-swatch-indicator",
|
|
429
445
|
get ["class"] () {
|
|
430
446
|
return cn('pointer-events-none absolute inset-0 hidden items-center justify-center text-white [filter:drop-shadow(0_1px_1px_rgb(0_0_0_/_45%))] data-[state=checked]:inline-flex [&>svg]:size-4', local.class);
|
|
431
447
|
}
|
|
432
448
|
}, others, {
|
|
449
|
+
"data-slot": "color-picker-swatch-indicator",
|
|
433
450
|
get children () {
|
|
434
451
|
return resolvedChildren() ?? createComponent(CheckIcon, {});
|
|
435
452
|
}
|
|
@@ -440,44 +457,48 @@ function ColorPickerTransparencyGrid(props) {
|
|
|
440
457
|
'class'
|
|
441
458
|
]);
|
|
442
459
|
return createComponent(ColorPicker.TransparencyGrid, mergeProps({
|
|
443
|
-
"data-slot": "color-picker-transparency-grid",
|
|
444
460
|
get ["class"] () {
|
|
445
461
|
return cn('col-start-1 row-start-1 size-full rounded-[inherit] group-data-[fit-content]/trigger:col-auto group-data-[fit-content]/trigger:row-auto group-data-[fit-content]/trigger:size-4 group-data-[fit-content]/trigger:shrink-0', local.class);
|
|
446
462
|
}
|
|
447
|
-
}, others
|
|
463
|
+
}, others, {
|
|
464
|
+
"data-slot": "color-picker-transparency-grid"
|
|
465
|
+
}));
|
|
448
466
|
}
|
|
449
467
|
function ColorPickerValueSwatch(props) {
|
|
450
468
|
const [local, others] = splitProps(props, [
|
|
451
469
|
'class'
|
|
452
470
|
]);
|
|
453
471
|
return createComponent(ColorPicker.ValueSwatch, mergeProps({
|
|
454
|
-
"data-slot": "color-picker-value-swatch",
|
|
455
472
|
get ["class"] () {
|
|
456
473
|
return cn('z-1 col-start-1 row-start-1 size-full rounded-[inherit] group-data-[fit-content]/trigger:col-auto group-data-[fit-content]/trigger:row-auto group-data-[fit-content]/trigger:size-4 group-data-[fit-content]/trigger:shrink-0', local.class);
|
|
457
474
|
}
|
|
458
|
-
}, others
|
|
475
|
+
}, others, {
|
|
476
|
+
"data-slot": "color-picker-value-swatch"
|
|
477
|
+
}));
|
|
459
478
|
}
|
|
460
479
|
function ColorPickerValueText(props) {
|
|
461
480
|
const [local, others] = splitProps(props, [
|
|
462
481
|
'class'
|
|
463
482
|
]);
|
|
464
483
|
return createComponent(ColorPicker.ValueText, mergeProps({
|
|
465
|
-
"data-slot": "color-picker-value-text",
|
|
466
484
|
get ["class"] () {
|
|
467
485
|
return cn('min-w-0 text-sm text-foreground', local.class);
|
|
468
486
|
}
|
|
469
|
-
}, others
|
|
487
|
+
}, others, {
|
|
488
|
+
"data-slot": "color-picker-value-text"
|
|
489
|
+
}));
|
|
470
490
|
}
|
|
471
491
|
function ColorPickerView(props) {
|
|
472
492
|
const [local, others] = splitProps(props, [
|
|
473
493
|
'class'
|
|
474
494
|
]);
|
|
475
495
|
return createComponent(ColorPicker.View, mergeProps({
|
|
476
|
-
"data-slot": "color-picker-view",
|
|
477
496
|
get ["class"] () {
|
|
478
497
|
return cn('flex min-w-0 flex-col gap-2 [&[hidden]:not([hidden="until-found"])]:hidden', local.class);
|
|
479
498
|
}
|
|
480
|
-
}, others
|
|
499
|
+
}, others, {
|
|
500
|
+
"data-slot": "color-picker-view"
|
|
501
|
+
}));
|
|
481
502
|
}
|
|
482
503
|
const ColorPicker_ColorPicker = Object.assign(ColorPickerRoot, {
|
|
483
504
|
Root: ColorPickerRoot,
|