@moduix/react-tailwind 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/Accordion.js +13 -13
- package/dist/components/alert/Alert.js +12 -12
- package/dist/components/angle-slider/AngleSlider.js +16 -16
- package/dist/components/avatar/Avatar.js +7 -7
- package/dist/components/bleed/Bleed.js +1 -1
- package/dist/components/card/Card.js +33 -33
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +22 -22
- package/dist/components/chart/Chart.js +18 -18
- package/dist/components/checkbox/Checkbox.js +12 -12
- package/dist/components/clipboard/Clipboard.js +19 -18
- package/dist/components/collapsible/Collapsible.js +11 -11
- package/dist/components/color-picker/ColorPicker.js +47 -47
- package/dist/components/combobox/Combobox.js +31 -31
- package/dist/components/command-palette/CommandPalette.js +48 -48
- package/dist/components/container/Container.js +5 -5
- package/dist/components/date-input/DateInput.js +14 -14
- package/dist/components/date-picker/DatePicker.js +51 -51
- package/dist/components/dialog/Dialog.js +20 -20
- package/dist/components/drawer/Drawer.js +30 -30
- package/dist/components/editable/Editable.js +17 -17
- package/dist/components/empty/Empty.js +13 -13
- package/dist/components/field/Field.js +19 -19
- package/dist/components/file-upload/FileUpload.js +28 -28
- package/dist/components/floating-panel/FloatingPanel.d.ts +1 -1
- package/dist/components/floating-panel/FloatingPanel.js +22 -22
- package/dist/components/floating-panel/index.d.ts +1 -0
- package/dist/components/hover-card/HoverCard.d.ts +1 -1
- package/dist/components/hover-card/HoverCard.js +11 -11
- package/dist/components/image-cropper/ImageCropper.js +14 -14
- package/dist/components/input-group/InputGroup.js +1 -1
- package/dist/components/lightbox/Lightbox.js +25 -25
- package/dist/components/listbox/Listbox.js +31 -31
- package/dist/components/marquee/Marquee.js +12 -12
- package/dist/components/menu/Menu.js +42 -42
- package/dist/components/navigation-menu/NavigationMenu.js +24 -24
- package/dist/components/number-input/NumberInput.js +16 -16
- package/dist/components/pagination/Pagination.js +11 -11
- package/dist/components/password-input/PasswordInput.js +13 -13
- package/dist/components/pin-input/PinInput.js +11 -11
- package/dist/components/popover/Popover.js +25 -25
- package/dist/components/progress-circular/ProgressCircular.js +16 -16
- package/dist/components/progress-linear/ProgressLinear.js +14 -14
- package/dist/components/qr-code/QrCode.js +12 -12
- package/dist/components/radio-group/RadioGroup.js +14 -14
- package/dist/components/rating-group/RatingGroup.js +11 -11
- package/dist/components/segment-group/SegmentGroup.js +14 -14
- package/dist/components/select/Select.js +33 -33
- package/dist/components/sidebar/Sidebar.js +51 -44
- package/dist/components/signature-pad/SignaturePad.js +11 -11
- package/dist/components/slider/Slider.js +22 -22
- package/dist/components/split-button/SplitButton.d.ts +6 -6
- package/dist/components/split-button/SplitButton.js +17 -13
- package/dist/components/splitter/Splitter.js +9 -9
- package/dist/components/steps/Steps.js +23 -23
- package/dist/components/swap/Swap.js +6 -6
- package/dist/components/switch/Switch.js +9 -9
- package/dist/components/table/Table.js +23 -23
- package/dist/components/tabs/Tabs.js +12 -12
- package/dist/components/tags-input/TagsInput.js +20 -20
- package/dist/components/timer/Timer.js +14 -14
- package/dist/components/toast/Toast.js +8 -8
- package/dist/components/toc/Toc.js +19 -19
- package/dist/components/toggle/Toggle.js +4 -4
- package/dist/components/tooltip/Tooltip.js +11 -11
- package/dist/components/tour/Tour.js +26 -26
- package/dist/components/tree-view/TreeView.js +30 -30
- package/dist/styles/animations.css +8 -8
- package/package.json +1 -1
|
@@ -35,11 +35,11 @@ function withTooltipStyles(definition) {
|
|
|
35
35
|
const Chart_ChartRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
36
36
|
return /*#__PURE__*/ jsx(ark.figure, {
|
|
37
37
|
ref: ref,
|
|
38
|
+
className: cn('grid w-full min-w-0 gap-5 rounded-lg border border-border bg-card p-5 text-card-foreground shadow-sm', className),
|
|
39
|
+
...props,
|
|
38
40
|
"data-scope": "chart",
|
|
39
41
|
"data-part": "root",
|
|
40
|
-
"data-slot": "chart-root"
|
|
41
|
-
className: cn('grid w-full min-w-0 gap-5 rounded-lg border border-border bg-card p-5 text-card-foreground shadow-sm', className),
|
|
42
|
-
...props
|
|
42
|
+
"data-slot": "chart-root"
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
const renderDefaultTooltipBody = ({ content })=>{
|
|
@@ -110,53 +110,53 @@ const Chart_ChartPlot = function({ className, definition, motion = true, renderT
|
|
|
110
110
|
const Chart_ChartHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
111
111
|
return /*#__PURE__*/ jsx(ark.figcaption, {
|
|
112
112
|
ref: ref,
|
|
113
|
+
className: cn('grid gap-1', className),
|
|
114
|
+
...props,
|
|
113
115
|
"data-scope": "chart",
|
|
114
116
|
"data-part": "header",
|
|
115
|
-
"data-slot": "chart-header"
|
|
116
|
-
className: cn('grid gap-1', className),
|
|
117
|
-
...props
|
|
117
|
+
"data-slot": "chart-header"
|
|
118
118
|
});
|
|
119
119
|
});
|
|
120
120
|
const Chart_ChartTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
121
121
|
return /*#__PURE__*/ jsx(ark.h3, {
|
|
122
122
|
ref: ref,
|
|
123
|
+
className: cn('text-lg font-semibold', className),
|
|
124
|
+
...props,
|
|
123
125
|
"data-scope": "chart",
|
|
124
126
|
"data-part": "title",
|
|
125
|
-
"data-slot": "chart-title"
|
|
126
|
-
className: cn('text-lg font-semibold', className),
|
|
127
|
-
...props
|
|
127
|
+
"data-slot": "chart-title"
|
|
128
128
|
});
|
|
129
129
|
});
|
|
130
130
|
const Chart_ChartDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
131
131
|
return /*#__PURE__*/ jsx(ark.p, {
|
|
132
132
|
ref: ref,
|
|
133
|
+
className: cn('text-sm text-muted-foreground', className),
|
|
134
|
+
...props,
|
|
133
135
|
"data-scope": "chart",
|
|
134
136
|
"data-part": "description",
|
|
135
|
-
"data-slot": "chart-description"
|
|
136
|
-
className: cn('text-sm text-muted-foreground', className),
|
|
137
|
-
...props
|
|
137
|
+
"data-slot": "chart-description"
|
|
138
138
|
});
|
|
139
139
|
});
|
|
140
140
|
const Chart_ChartLegend = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
141
141
|
return /*#__PURE__*/ jsx(ark.ul, {
|
|
142
142
|
ref: ref,
|
|
143
|
+
className: cn('flex flex-wrap gap-3', className),
|
|
144
|
+
...props,
|
|
143
145
|
"data-scope": "chart",
|
|
144
146
|
"data-part": "legend",
|
|
145
|
-
"data-slot": "chart-legend"
|
|
146
|
-
className: cn('flex flex-wrap gap-3', className),
|
|
147
|
-
...props
|
|
147
|
+
"data-slot": "chart-legend"
|
|
148
148
|
});
|
|
149
149
|
});
|
|
150
150
|
const Chart_ChartLegendItem = /*#__PURE__*/ forwardRef(function({ asChild, children, className, color, style, ...props }, ref) {
|
|
151
151
|
return /*#__PURE__*/ jsx(ark.li, {
|
|
152
152
|
ref: ref,
|
|
153
153
|
asChild: asChild,
|
|
154
|
-
"data-scope": "chart",
|
|
155
|
-
"data-part": "legend-item",
|
|
156
|
-
"data-slot": "chart-legend-item",
|
|
157
154
|
className: cn('inline-flex items-center gap-2 text-sm text-muted-foreground', className),
|
|
158
155
|
style: style,
|
|
159
156
|
...props,
|
|
157
|
+
"data-scope": "chart",
|
|
158
|
+
"data-part": "legend-item",
|
|
159
|
+
"data-slot": "chart-legend-item",
|
|
160
160
|
children: asChild ? children : /*#__PURE__*/ jsxs(Fragment, {
|
|
161
161
|
children: [
|
|
162
162
|
/*#__PURE__*/ jsx("span", {
|
|
@@ -7,29 +7,29 @@ import { CheckIcon, IndeterminateIcon } from "../../internal/icons/ui/index.js";
|
|
|
7
7
|
const Checkbox_CheckboxRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
8
8
|
return /*#__PURE__*/ jsx(Checkbox.Root, {
|
|
9
9
|
ref: ref,
|
|
10
|
-
"data-slot": "checkbox-root",
|
|
11
|
-
"data-size": size,
|
|
12
10
|
className: cn('group/checkbox inline-flex cursor-pointer items-center gap-2 align-middle text-foreground data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', className),
|
|
13
|
-
...props
|
|
11
|
+
...props,
|
|
12
|
+
"data-size": size,
|
|
13
|
+
"data-slot": "checkbox-root"
|
|
14
14
|
});
|
|
15
15
|
});
|
|
16
16
|
const Checkbox_CheckboxRootProvider = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
17
17
|
return /*#__PURE__*/ jsx(Checkbox.RootProvider, {
|
|
18
18
|
ref: ref,
|
|
19
|
-
"data-slot": "checkbox-root-provider",
|
|
20
|
-
"data-size": size,
|
|
21
19
|
className: cn('group/checkbox inline-flex cursor-pointer items-center gap-2 align-middle text-foreground data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', className),
|
|
22
|
-
...props
|
|
20
|
+
...props,
|
|
21
|
+
"data-size": size,
|
|
22
|
+
"data-slot": "checkbox-root-provider"
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
const Checkbox_CheckboxIndicator = /*#__PURE__*/ forwardRef(function({ className, children, indeterminate, ...props }, ref) {
|
|
26
26
|
const slot = indeterminate ? 'checkbox-indicator-indeterminate-icon' : 'checkbox-indicator-checked-icon';
|
|
27
27
|
return /*#__PURE__*/ jsx(Checkbox.Indicator, {
|
|
28
28
|
ref: ref,
|
|
29
|
-
"data-slot": "checkbox-indicator",
|
|
30
29
|
className: cn('inline-flex h-full w-full items-center justify-center text-inherit', className),
|
|
31
30
|
indeterminate: indeterminate,
|
|
32
31
|
...props,
|
|
32
|
+
"data-slot": "checkbox-indicator",
|
|
33
33
|
children: children ?? /*#__PURE__*/ jsx("span", {
|
|
34
34
|
"aria-hidden": "true",
|
|
35
35
|
"data-slot": slot,
|
|
@@ -41,9 +41,9 @@ const Checkbox_CheckboxIndicator = /*#__PURE__*/ forwardRef(function({ className
|
|
|
41
41
|
const Checkbox_CheckboxControl = /*#__PURE__*/ forwardRef(function({ children, className, ...props }, ref) {
|
|
42
42
|
return /*#__PURE__*/ jsx(Checkbox.Control, {
|
|
43
43
|
ref: ref,
|
|
44
|
-
"data-slot": "checkbox-control",
|
|
45
44
|
className: cn("[@media(hover:hover)]:[&:not([data-disabled]):not([data-readonly])[data-state='unchecked'][data-hover]:bg-accent box-border inline-flex size-5 shrink-0 items-center justify-center rounded-xs border border-border bg-background p-0 leading-none text-primary-foreground transition-[background-color,border-color,color,opacity] duration-200 select-none group-data-[size=lg]/checkbox:size-control-xs group-data-[size=sm]/checkbox:size-4 group-data-[size=xl]/checkbox:size-7 group-data-[size=xs]/checkbox:size-3.5 data-focus-visible:outline-1 data-focus-visible:outline-offset-1 data-focus-visible:outline-ring data-invalid:border-destructive data-invalid:text-destructive-foreground data-invalid:data-focus-visible:outline-destructive data-[state=checked]:border-primary data-[state=checked]:bg-primary data-invalid:data-[state=checked]:border-destructive data-invalid:data-[state=checked]:bg-destructive data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-invalid:data-[state=indeterminate]:border-destructive data-invalid:data-[state=indeterminate]:bg-destructive motion-reduce:transition-none", className),
|
|
46
45
|
...props,
|
|
46
|
+
"data-slot": "checkbox-control",
|
|
47
47
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
48
48
|
children: [
|
|
49
49
|
/*#__PURE__*/ jsx(Checkbox_CheckboxIndicator, {}),
|
|
@@ -57,17 +57,17 @@ const Checkbox_CheckboxControl = /*#__PURE__*/ forwardRef(function({ children, c
|
|
|
57
57
|
const Checkbox_CheckboxLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
58
58
|
return /*#__PURE__*/ jsx(Checkbox.Label, {
|
|
59
59
|
ref: ref,
|
|
60
|
-
"data-slot": "checkbox-label",
|
|
61
60
|
className: cn('text-sm leading-5 font-medium text-inherit', className),
|
|
62
|
-
...props
|
|
61
|
+
...props,
|
|
62
|
+
"data-slot": "checkbox-label"
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
const Checkbox_CheckboxGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
66
66
|
return /*#__PURE__*/ jsx(Checkbox.Group, {
|
|
67
67
|
ref: ref,
|
|
68
|
-
"data-slot": "checkbox-group",
|
|
69
68
|
className: cn('flex flex-col gap-2 text-foreground', className),
|
|
70
|
-
...props
|
|
69
|
+
...props,
|
|
70
|
+
"data-slot": "checkbox-group"
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
73
|
const Checkbox_Checkbox = Object.assign(Checkbox_CheckboxRoot, {
|
|
@@ -7,55 +7,54 @@ import { CheckIcon, CopyIcon } from "../../internal/icons/ui/index.js";
|
|
|
7
7
|
const Clipboard_ClipboardRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
8
8
|
return /*#__PURE__*/ jsx(Clipboard.Root, {
|
|
9
9
|
ref: ref,
|
|
10
|
-
"data-slot": "clipboard-root",
|
|
11
10
|
className: cn('flex w-full flex-col gap-1.5 text-foreground', className),
|
|
12
|
-
...props
|
|
11
|
+
...props,
|
|
12
|
+
"data-slot": "clipboard-root"
|
|
13
13
|
});
|
|
14
14
|
});
|
|
15
15
|
const Clipboard_ClipboardRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
16
16
|
return /*#__PURE__*/ jsx(Clipboard.RootProvider, {
|
|
17
17
|
ref: ref,
|
|
18
|
-
"data-slot": "clipboard-root-provider",
|
|
19
18
|
className: cn('flex w-full flex-col gap-1.5 text-foreground', className),
|
|
20
|
-
...props
|
|
19
|
+
...props,
|
|
20
|
+
"data-slot": "clipboard-root-provider"
|
|
21
21
|
});
|
|
22
22
|
});
|
|
23
23
|
const Clipboard_ClipboardLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
24
24
|
return /*#__PURE__*/ jsx(Clipboard.Label, {
|
|
25
25
|
ref: ref,
|
|
26
|
-
"data-slot": "clipboard-label",
|
|
27
26
|
className: cn('text-sm leading-5 font-medium', className),
|
|
28
|
-
...props
|
|
27
|
+
...props,
|
|
28
|
+
"data-slot": "clipboard-label"
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
const Clipboard_ClipboardControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
32
32
|
return /*#__PURE__*/ jsx(Clipboard.Control, {
|
|
33
33
|
ref: ref,
|
|
34
|
-
"data-slot": "clipboard-control",
|
|
35
34
|
className: cn('flex w-full items-center gap-2', className),
|
|
36
|
-
...props
|
|
35
|
+
...props,
|
|
36
|
+
"data-slot": "clipboard-control"
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
39
|
const Clipboard_ClipboardInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
40
40
|
return /*#__PURE__*/ jsx(Clipboard.Input, {
|
|
41
41
|
ref: ref,
|
|
42
|
-
"data-slot": "clipboard-input",
|
|
43
42
|
className: cn('box-border min-h-control-md w-full min-w-0 rounded-md border border-border bg-background px-3.5 py-1 text-md leading-6 text-foreground outline-1 -outline-offset-1 outline-transparent transition duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', className),
|
|
44
|
-
...props
|
|
43
|
+
...props,
|
|
44
|
+
"data-slot": "clipboard-input"
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
const Clipboard_ClipboardTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
48
48
|
return /*#__PURE__*/ jsx(Clipboard.Trigger, {
|
|
49
49
|
ref: ref,
|
|
50
|
-
"data-slot": "clipboard-trigger",
|
|
51
50
|
className: cn('box-border inline-flex min-h-control-md shrink-0 cursor-pointer appearance-none items-center justify-center gap-2 rounded-md border border-border bg-background px-4 text-sm leading-5 font-medium whitespace-nowrap text-foreground transition duration-200 ease-in-out select-none focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none [&_svg]:size-4 [&_svg]:shrink-0 [&:active:not(:disabled):not([data-disabled])]:opacity-[0.94] motion-safe:[&:active:not(:disabled):not([data-disabled])]:translate-y-px motion-safe:[&:active:not(:disabled):not([data-disabled])]:scale-[0.985] [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-accent', className),
|
|
52
|
-
...props
|
|
51
|
+
...props,
|
|
52
|
+
"data-slot": "clipboard-trigger"
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
55
|
const Clipboard_ClipboardIndicator = /*#__PURE__*/ forwardRef(function({ className, children, copied, ...props }, ref) {
|
|
56
56
|
return /*#__PURE__*/ jsx(Clipboard.Indicator, {
|
|
57
57
|
ref: ref,
|
|
58
|
-
"data-slot": "clipboard-indicator",
|
|
59
58
|
className: cn('inline-flex shrink-0 items-center justify-center', className),
|
|
60
59
|
copied: copied ?? /*#__PURE__*/ jsx("span", {
|
|
61
60
|
"aria-hidden": "true",
|
|
@@ -64,6 +63,7 @@ const Clipboard_ClipboardIndicator = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
64
63
|
children: /*#__PURE__*/ jsx(CheckIcon, {})
|
|
65
64
|
}),
|
|
66
65
|
...props,
|
|
66
|
+
"data-slot": "clipboard-indicator",
|
|
67
67
|
children: children ?? /*#__PURE__*/ jsx("span", {
|
|
68
68
|
"aria-hidden": "true",
|
|
69
69
|
"data-slot": "clipboard-indicator-idle-icon",
|
|
@@ -75,17 +75,18 @@ const Clipboard_ClipboardIndicator = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
75
75
|
const Clipboard_ClipboardValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
76
76
|
return /*#__PURE__*/ jsx(Clipboard.ValueText, {
|
|
77
77
|
ref: ref,
|
|
78
|
-
"data-slot": "clipboard-value-text",
|
|
79
78
|
className: cn('min-w-0 overflow-hidden text-ellipsis whitespace-nowrap', className),
|
|
80
|
-
...props
|
|
79
|
+
...props,
|
|
80
|
+
"data-slot": "clipboard-value-text"
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
|
-
const Clipboard_ClipboardCopyText = /*#__PURE__*/ forwardRef(function({ copied = 'Copied', children = 'Copy', ...props }, ref) {
|
|
84
|
-
return /*#__PURE__*/ jsx(
|
|
83
|
+
const Clipboard_ClipboardCopyText = /*#__PURE__*/ forwardRef(function({ className, copied = 'Copied', children = 'Copy', ...props }, ref) {
|
|
84
|
+
return /*#__PURE__*/ jsx(Clipboard.Indicator, {
|
|
85
85
|
ref: ref,
|
|
86
|
-
|
|
86
|
+
className: cn('inline-flex shrink-0 items-center justify-center', className),
|
|
87
87
|
copied: copied,
|
|
88
88
|
...props,
|
|
89
|
+
"data-slot": "clipboard-copy-text",
|
|
89
90
|
children: children
|
|
90
91
|
});
|
|
91
92
|
});
|
|
@@ -8,51 +8,51 @@ import { ChevronDownIcon } from "../../internal/icons/ui/index.js";
|
|
|
8
8
|
const Collapsible_CollapsibleRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
9
9
|
return /*#__PURE__*/ jsx(Collapsible.Root, {
|
|
10
10
|
ref: ref,
|
|
11
|
-
"data-slot": "collapsible-root",
|
|
12
11
|
className: cn('box-border flex w-full max-w-full min-w-0 flex-col text-foreground', className),
|
|
13
|
-
...props
|
|
12
|
+
...props,
|
|
13
|
+
"data-slot": "collapsible-root"
|
|
14
14
|
});
|
|
15
15
|
});
|
|
16
16
|
const Collapsible_CollapsibleRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
17
17
|
return /*#__PURE__*/ jsx(Collapsible.RootProvider, {
|
|
18
18
|
ref: ref,
|
|
19
|
-
"data-slot": "collapsible-root-provider",
|
|
20
19
|
className: cn('box-border flex w-full max-w-full min-w-0 flex-col text-foreground', className),
|
|
21
|
-
...props
|
|
20
|
+
...props,
|
|
21
|
+
"data-slot": "collapsible-root-provider"
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
const Collapsible_CollapsibleTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
25
25
|
return /*#__PURE__*/ jsx(Collapsible.Trigger, {
|
|
26
26
|
ref: ref,
|
|
27
27
|
asChild: asChild,
|
|
28
|
-
"data-slot": "collapsible-trigger",
|
|
29
28
|
className: cn(!asChild && 'box-border flex w-full cursor-pointer items-center justify-between gap-2 bg-transparent px-0 py-1 text-start text-sm outline-0 transition-colors duration-200 select-none focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none', className),
|
|
30
|
-
...props
|
|
29
|
+
...props,
|
|
30
|
+
"data-slot": "collapsible-trigger"
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
const Collapsible_CollapsibleIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
34
34
|
return /*#__PURE__*/ jsx(Collapsible.Indicator, {
|
|
35
35
|
ref: ref,
|
|
36
|
-
"data-slot": "collapsible-indicator",
|
|
37
36
|
className: cn('inline-flex size-3 shrink-0 items-center justify-center transition-transform duration-200 data-disabled:opacity-50 data-[state=open]:rotate-180 motion-reduce:transition-none [&_svg]:size-full', className),
|
|
38
37
|
...props,
|
|
38
|
+
"data-slot": "collapsible-indicator",
|
|
39
39
|
children: children ?? /*#__PURE__*/ jsx(ChevronDownIcon, {})
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
const Collapsible_CollapsibleContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
43
43
|
return /*#__PURE__*/ jsx(Collapsible.Content, {
|
|
44
44
|
ref: ref,
|
|
45
|
-
"data-slot": "collapsible-content",
|
|
46
45
|
className: cn('box-border overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-moduix-collapsible-closed data-[has-collapsed-size]:data-[state=closed]:animate-moduix-collapsible-closed-partial data-[state=open]:animate-moduix-collapsible-open data-[has-collapsed-size]:data-[state=open]:animate-moduix-collapsible-open-partial motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms]', className),
|
|
47
|
-
...props
|
|
46
|
+
...props,
|
|
47
|
+
"data-slot": "collapsible-content"
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
const Collapsible_CollapsibleBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
51
51
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
52
52
|
ref: ref,
|
|
53
|
-
"data-slot": "collapsible-body",
|
|
54
53
|
className: cn('grid min-w-0 gap-2', className),
|
|
55
|
-
...props
|
|
54
|
+
...props,
|
|
55
|
+
"data-slot": "collapsible-body"
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
58
|
const Collapsible_Collapsible = Object.assign(Collapsible_CollapsibleRoot, {
|
|
@@ -12,11 +12,11 @@ const ColorPicker_ColorPickerRoot = /*#__PURE__*/ forwardRef(function({ asChild,
|
|
|
12
12
|
children: /*#__PURE__*/ jsx(ColorPicker.Root, {
|
|
13
13
|
ref: ref,
|
|
14
14
|
asChild: asChild,
|
|
15
|
-
"data-slot": "color-picker-root",
|
|
16
15
|
className: cn('box-border flex w-64 max-w-full min-w-0 flex-col gap-2 text-foreground data-disabled:opacity-50', className),
|
|
17
16
|
lazyMount: lazyMount,
|
|
18
17
|
unmountOnExit: unmountOnExit,
|
|
19
18
|
...props,
|
|
19
|
+
"data-slot": "color-picker-root",
|
|
20
20
|
children: children
|
|
21
21
|
})
|
|
22
22
|
});
|
|
@@ -28,11 +28,11 @@ const ColorPicker_ColorPickerRootProvider = /*#__PURE__*/ forwardRef(function({
|
|
|
28
28
|
children: /*#__PURE__*/ jsx(ColorPicker.RootProvider, {
|
|
29
29
|
ref: ref,
|
|
30
30
|
asChild: asChild,
|
|
31
|
-
"data-slot": "color-picker-root-provider",
|
|
32
31
|
className: cn('box-border flex w-64 max-w-full min-w-0 flex-col gap-2 text-foreground data-disabled:opacity-50', className),
|
|
33
32
|
lazyMount: lazyMount,
|
|
34
33
|
unmountOnExit: unmountOnExit,
|
|
35
34
|
...props,
|
|
35
|
+
"data-slot": "color-picker-root-provider",
|
|
36
36
|
children: children
|
|
37
37
|
})
|
|
38
38
|
});
|
|
@@ -40,25 +40,25 @@ const ColorPicker_ColorPickerRootProvider = /*#__PURE__*/ forwardRef(function({
|
|
|
40
40
|
const ColorPicker_ColorPickerLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
41
41
|
return /*#__PURE__*/ jsx(ColorPicker.Label, {
|
|
42
42
|
ref: ref,
|
|
43
|
-
"data-slot": "color-picker-label",
|
|
44
43
|
className: cn('inline-flex items-center text-sm font-medium text-foreground select-none', className),
|
|
45
|
-
...props
|
|
44
|
+
...props,
|
|
45
|
+
"data-slot": "color-picker-label"
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
const ColorPicker_ColorPickerControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
49
49
|
return /*#__PURE__*/ jsx(ColorPicker.Control, {
|
|
50
50
|
ref: ref,
|
|
51
|
-
"data-slot": "color-picker-control",
|
|
52
51
|
className: cn('flex min-w-0 items-center gap-2 data-disabled:opacity-50', className),
|
|
53
|
-
...props
|
|
52
|
+
...props,
|
|
53
|
+
"data-slot": "color-picker-control"
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
const ColorPicker_ColorPickerTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
57
57
|
return /*#__PURE__*/ jsx(ColorPicker.Trigger, {
|
|
58
58
|
ref: ref,
|
|
59
|
-
"data-slot": "color-picker-trigger",
|
|
60
59
|
className: 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', className),
|
|
61
60
|
...props,
|
|
61
|
+
"data-slot": "color-picker-trigger",
|
|
62
62
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
63
63
|
children: [
|
|
64
64
|
/*#__PURE__*/ jsx(ColorPicker.TransparencyGrid, {
|
|
@@ -77,26 +77,26 @@ const ColorPicker_ColorPickerPositioner = /*#__PURE__*/ forwardRef(function({ cl
|
|
|
77
77
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
78
78
|
children: /*#__PURE__*/ jsx(ColorPicker.Positioner, {
|
|
79
79
|
ref: ref,
|
|
80
|
-
"data-slot": "color-picker-positioner",
|
|
81
80
|
className: cn('z-[var(--z-index)] outline-0', className),
|
|
82
|
-
...props
|
|
81
|
+
...props,
|
|
82
|
+
"data-slot": "color-picker-positioner"
|
|
83
83
|
})
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
86
|
const ColorPicker_ColorPickerContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
87
87
|
return /*#__PURE__*/ jsx(ColorPicker.Content, {
|
|
88
88
|
ref: ref,
|
|
89
|
-
"data-slot": "color-picker-content",
|
|
90
89
|
className: 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]', className),
|
|
91
|
-
...props
|
|
90
|
+
...props,
|
|
91
|
+
"data-slot": "color-picker-content"
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
const ColorPicker_ColorPickerArea = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
95
95
|
return /*#__PURE__*/ jsx(ColorPicker.Area, {
|
|
96
96
|
ref: ref,
|
|
97
|
-
"data-slot": "color-picker-area",
|
|
98
97
|
className: 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', className),
|
|
99
98
|
...props,
|
|
99
|
+
"data-slot": "color-picker-area",
|
|
100
100
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
101
101
|
children: [
|
|
102
102
|
/*#__PURE__*/ jsx(ColorPicker.AreaBackground, {
|
|
@@ -114,26 +114,26 @@ const ColorPicker_ColorPickerArea = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
114
114
|
const ColorPicker_ColorPickerAreaBackground = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
115
115
|
return /*#__PURE__*/ jsx(ColorPicker.AreaBackground, {
|
|
116
116
|
ref: ref,
|
|
117
|
-
"data-slot": "color-picker-area-background",
|
|
118
117
|
className: cn('size-full rounded-[inherit]', className),
|
|
119
|
-
...props
|
|
118
|
+
...props,
|
|
119
|
+
"data-slot": "color-picker-area-background"
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
const ColorPicker_ColorPickerAreaThumb = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
123
123
|
return /*#__PURE__*/ jsx(ColorPicker.AreaThumb, {
|
|
124
124
|
ref: ref,
|
|
125
|
-
"data-slot": "color-picker-area-thumb",
|
|
126
125
|
className: 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', className),
|
|
127
|
-
...props
|
|
126
|
+
...props,
|
|
127
|
+
"data-slot": "color-picker-area-thumb"
|
|
128
128
|
});
|
|
129
129
|
});
|
|
130
130
|
const ColorPicker_ColorPickerChannelSlider = /*#__PURE__*/ forwardRef(function({ className, children, channel, ...props }, ref) {
|
|
131
131
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSlider, {
|
|
132
132
|
ref: ref,
|
|
133
|
-
"data-slot": "color-picker-channel-slider",
|
|
134
133
|
className: 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', className),
|
|
135
134
|
channel: channel,
|
|
136
135
|
...props,
|
|
136
|
+
"data-slot": "color-picker-channel-slider",
|
|
137
137
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
138
138
|
children: [
|
|
139
139
|
'alpha' === channel && /*#__PURE__*/ jsx(ColorPicker.TransparencyGrid, {
|
|
@@ -155,9 +155,9 @@ const ColorPicker_ColorPickerChannelSlider = /*#__PURE__*/ forwardRef(function({
|
|
|
155
155
|
const ColorPicker_ColorPickerSliders = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
156
156
|
return /*#__PURE__*/ jsxs("div", {
|
|
157
157
|
ref: ref,
|
|
158
|
-
"data-slot": "color-picker-sliders",
|
|
159
158
|
className: cn('flex min-w-0 flex-1 flex-col gap-2', className),
|
|
160
159
|
...props,
|
|
160
|
+
"data-slot": "color-picker-sliders",
|
|
161
161
|
children: [
|
|
162
162
|
/*#__PURE__*/ jsx(ColorPicker_ColorPickerChannelSlider, {
|
|
163
163
|
channel: "hue"
|
|
@@ -171,49 +171,49 @@ const ColorPicker_ColorPickerSliders = /*#__PURE__*/ forwardRef(function({ class
|
|
|
171
171
|
const ColorPicker_ColorPickerChannelSliderTrack = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
172
172
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSliderTrack, {
|
|
173
173
|
ref: ref,
|
|
174
|
-
"data-slot": "color-picker-channel-slider-track",
|
|
175
174
|
className: 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', className),
|
|
176
|
-
...props
|
|
175
|
+
...props,
|
|
176
|
+
"data-slot": "color-picker-channel-slider-track"
|
|
177
177
|
});
|
|
178
178
|
});
|
|
179
179
|
const ColorPicker_ColorPickerChannelSliderThumb = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
180
180
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSliderThumb, {
|
|
181
181
|
ref: ref,
|
|
182
|
-
"data-slot": "color-picker-channel-slider-thumb",
|
|
183
182
|
className: 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', className),
|
|
184
|
-
...props
|
|
183
|
+
...props,
|
|
184
|
+
"data-slot": "color-picker-channel-slider-thumb"
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
187
|
const ColorPicker_ColorPickerChannelSliderLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
188
188
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSliderLabel, {
|
|
189
189
|
ref: ref,
|
|
190
|
-
"data-slot": "color-picker-channel-slider-label",
|
|
191
190
|
className: cn('text-sm font-medium text-foreground', className),
|
|
192
|
-
...props
|
|
191
|
+
...props,
|
|
192
|
+
"data-slot": "color-picker-channel-slider-label"
|
|
193
193
|
});
|
|
194
194
|
});
|
|
195
195
|
const ColorPicker_ColorPickerChannelSliderValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
196
196
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSliderValueText, {
|
|
197
197
|
ref: ref,
|
|
198
|
-
"data-slot": "color-picker-channel-slider-value-text",
|
|
199
198
|
className: cn('text-sm text-muted-foreground', className),
|
|
200
|
-
...props
|
|
199
|
+
...props,
|
|
200
|
+
"data-slot": "color-picker-channel-slider-value-text"
|
|
201
201
|
});
|
|
202
202
|
});
|
|
203
203
|
const ColorPicker_ColorPickerChannelInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
204
204
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelInput, {
|
|
205
205
|
ref: ref,
|
|
206
|
-
"data-slot": "color-picker-channel-input",
|
|
207
206
|
className: 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', className),
|
|
208
|
-
...props
|
|
207
|
+
...props,
|
|
208
|
+
"data-slot": "color-picker-channel-input"
|
|
209
209
|
});
|
|
210
210
|
});
|
|
211
211
|
const ColorPicker_ColorPickerEyeDropperTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
212
212
|
return /*#__PURE__*/ jsx(ColorPicker.EyeDropperTrigger, {
|
|
213
213
|
ref: ref,
|
|
214
|
-
"data-slot": "color-picker-eye-dropper-trigger",
|
|
215
214
|
className: 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', className),
|
|
216
215
|
...props,
|
|
216
|
+
"data-slot": "color-picker-eye-dropper-trigger",
|
|
217
217
|
children: children ?? /*#__PURE__*/ jsx(PipetteIcon, {})
|
|
218
218
|
});
|
|
219
219
|
});
|
|
@@ -223,9 +223,9 @@ const ColorPicker_ColorPickerFormatSelect = /*#__PURE__*/ forwardRef(function({
|
|
|
223
223
|
children: [
|
|
224
224
|
/*#__PURE__*/ jsx(ColorPicker.FormatSelect, {
|
|
225
225
|
ref: ref,
|
|
226
|
-
"data-slot": "color-picker-format-select",
|
|
227
226
|
className: 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', className),
|
|
228
|
-
...props
|
|
227
|
+
...props,
|
|
228
|
+
"data-slot": "color-picker-format-select"
|
|
229
229
|
}),
|
|
230
230
|
/*#__PURE__*/ jsx("span", {
|
|
231
231
|
"aria-hidden": "true",
|
|
@@ -238,26 +238,26 @@ const ColorPicker_ColorPickerFormatSelect = /*#__PURE__*/ forwardRef(function({
|
|
|
238
238
|
const ColorPicker_ColorPickerFormatTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
239
239
|
return /*#__PURE__*/ jsx(ColorPicker.FormatTrigger, {
|
|
240
240
|
ref: ref,
|
|
241
|
-
"data-slot": "color-picker-format-trigger",
|
|
242
241
|
className: 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', className),
|
|
243
|
-
...props
|
|
242
|
+
...props,
|
|
243
|
+
"data-slot": "color-picker-format-trigger"
|
|
244
244
|
});
|
|
245
245
|
});
|
|
246
246
|
const ColorPicker_ColorPickerSwatchGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
247
247
|
return /*#__PURE__*/ jsx(ColorPicker.SwatchGroup, {
|
|
248
248
|
ref: ref,
|
|
249
|
-
"data-slot": "color-picker-swatch-group",
|
|
250
249
|
className: cn('flex flex-wrap gap-2', className),
|
|
251
|
-
...props
|
|
250
|
+
...props,
|
|
251
|
+
"data-slot": "color-picker-swatch-group"
|
|
252
252
|
});
|
|
253
253
|
});
|
|
254
254
|
const ColorPicker_ColorPickerSwatchTrigger = /*#__PURE__*/ forwardRef(function({ className, children, value, ...props }, ref) {
|
|
255
255
|
return /*#__PURE__*/ jsx(ColorPicker.SwatchTrigger, {
|
|
256
256
|
ref: ref,
|
|
257
|
-
"data-slot": "color-picker-swatch-trigger",
|
|
258
257
|
className: 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', className),
|
|
259
258
|
value: value,
|
|
260
259
|
...props,
|
|
260
|
+
"data-slot": "color-picker-swatch-trigger",
|
|
261
261
|
children: children ?? /*#__PURE__*/ jsx(ColorPicker.Swatch, {
|
|
262
262
|
"data-slot": "color-picker-swatch",
|
|
263
263
|
className: "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)]",
|
|
@@ -273,50 +273,50 @@ const ColorPicker_ColorPickerSwatchTrigger = /*#__PURE__*/ forwardRef(function({
|
|
|
273
273
|
const ColorPicker_ColorPickerSwatch = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
274
274
|
return /*#__PURE__*/ jsx(ColorPicker.Swatch, {
|
|
275
275
|
ref: ref,
|
|
276
|
-
"data-slot": "color-picker-swatch",
|
|
277
276
|
className: 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)]', className),
|
|
278
|
-
...props
|
|
277
|
+
...props,
|
|
278
|
+
"data-slot": "color-picker-swatch"
|
|
279
279
|
});
|
|
280
280
|
});
|
|
281
281
|
const ColorPicker_ColorPickerSwatchIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
282
282
|
return /*#__PURE__*/ jsx(ColorPicker.SwatchIndicator, {
|
|
283
283
|
ref: ref,
|
|
284
|
-
"data-slot": "color-picker-swatch-indicator",
|
|
285
284
|
className: 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', className),
|
|
286
285
|
...props,
|
|
286
|
+
"data-slot": "color-picker-swatch-indicator",
|
|
287
287
|
children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
|
|
288
288
|
});
|
|
289
289
|
});
|
|
290
290
|
const ColorPicker_ColorPickerTransparencyGrid = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
291
291
|
return /*#__PURE__*/ jsx(ColorPicker.TransparencyGrid, {
|
|
292
292
|
ref: ref,
|
|
293
|
-
"data-slot": "color-picker-transparency-grid",
|
|
294
293
|
className: 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', className),
|
|
295
|
-
...props
|
|
294
|
+
...props,
|
|
295
|
+
"data-slot": "color-picker-transparency-grid"
|
|
296
296
|
});
|
|
297
297
|
});
|
|
298
298
|
const ColorPicker_ColorPickerValueSwatch = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
299
299
|
return /*#__PURE__*/ jsx(ColorPicker.ValueSwatch, {
|
|
300
300
|
ref: ref,
|
|
301
|
-
"data-slot": "color-picker-value-swatch",
|
|
302
301
|
className: 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', className),
|
|
303
|
-
...props
|
|
302
|
+
...props,
|
|
303
|
+
"data-slot": "color-picker-value-swatch"
|
|
304
304
|
});
|
|
305
305
|
});
|
|
306
306
|
const ColorPicker_ColorPickerValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
307
307
|
return /*#__PURE__*/ jsx(ColorPicker.ValueText, {
|
|
308
308
|
ref: ref,
|
|
309
|
-
"data-slot": "color-picker-value-text",
|
|
310
309
|
className: cn('min-w-0 text-sm text-foreground', className),
|
|
311
|
-
...props
|
|
310
|
+
...props,
|
|
311
|
+
"data-slot": "color-picker-value-text"
|
|
312
312
|
});
|
|
313
313
|
});
|
|
314
314
|
const ColorPicker_ColorPickerView = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
315
315
|
return /*#__PURE__*/ jsx(ColorPicker.View, {
|
|
316
316
|
ref: ref,
|
|
317
|
-
"data-slot": "color-picker-view",
|
|
318
317
|
className: cn('flex min-w-0 flex-col gap-2 [&[hidden]:not([hidden="until-found"])]:hidden', className),
|
|
319
|
-
...props
|
|
318
|
+
...props,
|
|
319
|
+
"data-slot": "color-picker-view"
|
|
320
320
|
});
|
|
321
321
|
});
|
|
322
322
|
const ColorPicker_ColorPicker = Object.assign(ColorPicker_ColorPickerRoot, {
|