@moduix/react 2.5.1 → 2.7.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/README.md +24 -3
- package/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/components/accordion/Accordion.js +20 -21
- package/dist/components/alert/Alert.js +18 -19
- package/dist/components/alert/Alert_module.css +3 -16
- package/dist/components/angle-slider/AngleSlider.d.ts +5 -11
- package/dist/components/angle-slider/AngleSlider.js +29 -71
- package/dist/components/aspect-ratio/AspectRatio.js +1 -2
- package/dist/components/aspect-ratio/AspectRatio_module.css +0 -13
- package/dist/components/avatar/Avatar.d.ts +3 -6
- package/dist/components/avatar/Avatar.js +14 -57
- package/dist/components/avatar/Avatar.module.js +1 -2
- package/dist/components/avatar/Avatar_module.css +0 -6
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +5 -10
- package/dist/components/badge/Badge_module.css +7 -14
- package/dist/components/bleed/Bleed.js +1 -2
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.js +16 -32
- package/dist/components/breadcrumbs/Breadcrumbs_module.css +12 -14
- package/dist/components/button/Button.d.ts +4 -4
- package/dist/components/button/Button.js +1 -2
- package/dist/components/button/Button_module.css +2 -8
- package/dist/components/card/Card.d.ts +15 -15
- package/dist/components/card/Card.js +30 -31
- package/dist/components/card/Card_module.css +2 -18
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +34 -35
- package/dist/components/carousel/Carousel_module.css +7 -0
- package/dist/components/chart/Chart.d.ts +9 -8
- package/dist/components/chart/Chart.js +21 -22
- package/dist/components/chart/Chart_module.css +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +3 -2
- package/dist/components/checkbox/Checkbox.js +20 -43
- package/dist/components/clipboard/Clipboard.js +27 -27
- package/dist/components/close-button/CloseButton.js +1 -2
- package/dist/components/close-button/CloseButton_module.css +1 -10
- package/dist/components/collapsible/Collapsible.js +17 -20
- package/dist/components/collapsible/Collapsible_module.css +2 -4
- package/dist/components/color-picker/ColorPicker.d.ts +4 -3
- package/dist/components/color-picker/ColorPicker.js +79 -92
- package/dist/components/color-picker/ColorPicker_module.css +0 -1
- package/dist/components/combobox/Combobox.d.ts +5 -5
- package/dist/components/combobox/Combobox.js +51 -60
- package/dist/components/combobox/Combobox_module.css +0 -1
- package/dist/components/command-palette/CommandPalette.d.ts +7 -18
- package/dist/components/command-palette/CommandPalette.js +99 -126
- package/dist/components/command-palette/CommandPalette_module.css +11 -18
- package/dist/components/container/Container.js +1 -2
- package/dist/components/container/Container_module.css +1 -1
- package/dist/components/date-input/DateInput.d.ts +7 -9
- package/dist/components/date-input/DateInput.js +24 -54
- package/dist/components/date-input/DateInput_module.css +0 -1
- package/dist/components/date-picker/DatePicker.d.ts +1 -1
- package/dist/components/date-picker/DatePicker.js +84 -93
- package/dist/components/date-picker/DatePicker.module.js +1 -1
- package/dist/components/date-picker/DatePicker_module.css +5 -2
- package/dist/components/dialog/Dialog.d.ts +1 -1
- package/dist/components/dialog/Dialog.js +31 -32
- package/dist/components/drawer/Drawer.d.ts +6 -3
- package/dist/components/drawer/Drawer.js +63 -54
- package/dist/components/editable/Editable.d.ts +1 -1
- package/dist/components/editable/Editable.js +27 -28
- package/dist/components/empty/Empty.js +18 -19
- package/dist/components/field/Field.js +29 -30
- package/dist/components/fieldset/Fieldset.js +15 -16
- package/dist/components/file-upload/FileUpload.d.ts +3 -2
- package/dist/components/file-upload/FileUpload.js +52 -79
- package/dist/components/file-upload/FileUpload_module.css +4 -13
- package/dist/components/floating-panel/FloatingPanel.d.ts +3 -3
- package/dist/components/floating-panel/FloatingPanel.js +36 -37
- package/dist/components/floating-panel/FloatingPanel_module.css +4 -17
- package/dist/components/floating-panel/index.d.ts +1 -0
- package/dist/components/heading/Heading.js +1 -2
- package/dist/components/highlight/Highlight.js +1 -2
- package/dist/components/hover-card/HoverCard.d.ts +3 -2
- package/dist/components/hover-card/HoverCard.js +24 -15
- package/dist/components/hover-card/HoverCard.module.js +1 -0
- package/dist/components/hover-card/HoverCard_module.css +18 -3
- package/dist/components/hover-card/index.d.ts +1 -0
- package/dist/components/image/Image.js +1 -2
- package/dist/components/image-cropper/ImageCropper.d.ts +1 -1
- package/dist/components/image-cropper/ImageCropper.js +21 -22
- package/dist/components/input/Input.d.ts +4 -4
- package/dist/components/input/Input.js +1 -2
- package/dist/components/input-group/InputGroup.d.ts +5 -5
- package/dist/components/input-group/InputGroup.js +5 -6
- package/dist/components/json-tree-view/JsonTreeView.js +3 -4
- package/dist/components/json-tree-view/JsonTreeView_module.css +26 -10
- package/dist/components/kbd/Kbd.js +6 -7
- package/dist/components/lightbox/Lightbox.d.ts +1 -1
- package/dist/components/lightbox/Lightbox.js +38 -39
- package/dist/components/lightbox/Lightbox_module.css +0 -2
- package/dist/components/list/List.js +2 -3
- package/dist/components/listbox/Listbox.d.ts +5 -5
- package/dist/components/listbox/Listbox.js +50 -56
- package/dist/components/listbox/Listbox.module.js +2 -2
- package/dist/components/listbox/Listbox_module.css +3 -13
- package/dist/components/marquee/Marquee.js +18 -19
- package/dist/components/menu/Menu.d.ts +2 -1
- package/dist/components/menu/Menu.js +72 -79
- package/dist/components/menu/Menu.module.js +1 -1
- package/dist/components/menu/Menu_module.css +8 -8
- package/dist/components/native-select/NativeSelect.js +2 -3
- package/dist/components/native-select/NativeSelect_module.css +0 -1
- package/dist/components/navigation-menu/NavigationMenu.js +39 -58
- package/dist/components/navigation-menu/NavigationMenu.module.js +2 -3
- package/dist/components/navigation-menu/NavigationMenu_module.css +15 -32
- package/dist/components/number-input/NumberInput.js +25 -26
- package/dist/components/pagination/Pagination.js +28 -31
- package/dist/components/pagination/Pagination_module.css +1 -5
- package/dist/components/password-input/PasswordInput.js +20 -21
- package/dist/components/pin-input/PinInput.d.ts +3 -2
- package/dist/components/pin-input/PinInput.js +20 -61
- package/dist/components/popover/Popover.d.ts +5 -3
- package/dist/components/popover/Popover.js +41 -42
- package/dist/components/progress-circular/ProgressCircular.js +24 -25
- package/dist/components/progress-circular/ProgressCircular.module.js +1 -3
- package/dist/components/progress-circular/ProgressCircular_module.css +0 -10
- package/dist/components/progress-linear/ProgressLinear.js +21 -22
- package/dist/components/progress-linear/ProgressLinear.module.js +1 -5
- package/dist/components/progress-linear/ProgressLinear_module.css +0 -20
- package/dist/components/qr-code/QrCode.js +18 -19
- package/dist/components/radio-group/RadioGroup.d.ts +1 -0
- package/dist/components/radio-group/RadioGroup.js +25 -39
- package/dist/components/radio-group/RadioGroup_module.css +0 -1
- package/dist/components/rating-group/RatingGroup.d.ts +1 -0
- package/dist/components/rating-group/RatingGroup.js +19 -36
- package/dist/components/rating-group/RatingGroup_module.css +1 -1
- package/dist/components/scroll-area/ScrollArea.js +7 -8
- package/dist/components/segment-group/SegmentGroup.d.ts +1 -0
- package/dist/components/segment-group/SegmentGroup.js +28 -42
- package/dist/components/segment-group/SegmentGroup_module.css +4 -0
- package/dist/components/select/Select.d.ts +4 -7
- package/dist/components/select/Select.js +69 -119
- package/dist/components/select/Select.module.js +1 -1
- package/dist/components/select/Select_module.css +4 -31
- package/dist/components/separator/Separator.d.ts +6 -6
- package/dist/components/separator/Separator.js +1 -2
- package/dist/components/sidebar/Sidebar.d.ts +16 -16
- package/dist/components/sidebar/Sidebar.js +81 -86
- package/dist/components/sidebar/Sidebar.module.js +2 -3
- package/dist/components/sidebar/Sidebar_module.css +62 -158
- package/dist/components/signature-pad/SignaturePad.d.ts +5 -8
- package/dist/components/signature-pad/SignaturePad.js +28 -57
- package/dist/components/signature-pad/SignaturePad_module.css +0 -1
- package/dist/components/simple-grid/SimpleGrid.js +13 -8
- package/dist/components/skeleton/Skeleton.d.ts +2 -2
- package/dist/components/skeleton/Skeleton.js +1 -2
- package/dist/components/slider/Slider.d.ts +2 -2
- package/dist/components/slider/Slider.js +38 -52
- package/dist/components/spinner/Spinner.d.ts +2 -2
- package/dist/components/spinner/Spinner.js +1 -2
- package/dist/components/split-button/SplitButton.d.ts +7 -7
- package/dist/components/split-button/SplitButton.js +25 -17
- package/dist/components/splitter/Splitter.js +14 -15
- package/dist/components/splitter/Splitter_module.css +2 -10
- package/dist/components/stack/Stack.d.ts +6 -6
- package/dist/components/stack/Stack.js +4 -5
- package/dist/components/stack/Stack_module.css +1 -1
- package/dist/components/steps/Steps.js +35 -36
- package/dist/components/steps/Steps_module.css +2 -3
- package/dist/components/swap/Swap.js +9 -10
- package/dist/components/switch/Switch.d.ts +3 -2
- package/dist/components/switch/Switch.js +17 -40
- package/dist/components/switch/Switch_module.css +0 -1
- package/dist/components/table/Table.d.ts +5 -5
- package/dist/components/table/Table.js +35 -36
- package/dist/components/tabs/Tabs.js +18 -19
- package/dist/components/tabs/Tabs_module.css +5 -10
- package/dist/components/tag/Tag.js +5 -6
- package/dist/components/tag/Tag_module.css +2 -4
- package/dist/components/tags-input/TagsInput.d.ts +3 -3
- package/dist/components/tags-input/TagsInput.js +37 -91
- package/dist/components/tags-input/TagsInput_module.css +0 -1
- package/dist/components/text/Text.js +1 -2
- package/dist/components/textarea/Textarea.js +1 -2
- package/dist/components/timer/Timer.js +21 -22
- package/dist/components/toast/Toast.d.ts +1 -1
- package/dist/components/toast/Toast.js +15 -16
- package/dist/components/toast/Toast_module.css +1 -2
- package/dist/components/toc/Toc.js +29 -30
- package/dist/components/toc/Toc_module.css +2 -2
- package/dist/components/toggle/Toggle.js +6 -7
- package/dist/components/toggle-group/ToggleGroup.d.ts +1 -1
- package/dist/components/toggle-group/ToggleGroup.js +3 -4
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.js +17 -18
- package/dist/components/tooltip/Tooltip_module.css +1 -1
- package/dist/components/tour/Tour.d.ts +1 -1
- package/dist/components/tour/Tour.js +39 -40
- package/dist/components/tree-view/TreeView.d.ts +4 -4
- package/dist/components/tree-view/TreeView.js +47 -48
- package/dist/components/tree-view/TreeView_module.css +39 -12
- package/dist/components/typeset/Typeset.js +2 -3
- package/dist/components/typeset/Typeset_module.css +300 -159
- package/dist/internal/icons/ui/Icons.d.ts +9 -30
- package/dist/internal/icons/ui/Icons.js +67 -807
- package/dist/internal/icons/ui/index.d.ts +1 -1
- package/dist/styles/animations.css +310 -0
- package/dist/styles/style.css +168 -2
- package/package.json +23 -23
- package/dist/internal/normalizeClassName.d.ts +0 -1
- package/dist/internal/normalizeClassName.js +0 -2
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { ColorPicker, parseColor, useColorPicker, useColorPickerContext } from "@ark-ui/react/color-picker";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
import {
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
6
|
import { CheckIcon, ChevronDownIcon, PipetteIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
|
|
9
8
|
import ColorPicker_module from "./ColorPicker.module.js";
|
|
10
9
|
const ColorPicker_ColorPickerRoot = /*#__PURE__*/ forwardRef(function({ asChild, children, className, lazyMount = true, portalled, portalRef, unmountOnExit = true, ...props }, ref) {
|
|
@@ -14,12 +13,12 @@ const ColorPicker_ColorPickerRoot = /*#__PURE__*/ forwardRef(function({ asChild,
|
|
|
14
13
|
children: /*#__PURE__*/ jsx(ColorPicker.Root, {
|
|
15
14
|
ref: ref,
|
|
16
15
|
asChild: asChild,
|
|
17
|
-
|
|
18
|
-
className: clsx(ColorPicker_module.root, normalizeClassName(className)),
|
|
16
|
+
className: clsx(ColorPicker_module.root, className),
|
|
19
17
|
lazyMount: lazyMount,
|
|
20
18
|
unmountOnExit: unmountOnExit,
|
|
21
19
|
...props,
|
|
22
|
-
|
|
20
|
+
"data-slot": "color-picker-root",
|
|
21
|
+
children: children
|
|
23
22
|
})
|
|
24
23
|
});
|
|
25
24
|
});
|
|
@@ -30,37 +29,37 @@ const ColorPicker_ColorPickerRootProvider = /*#__PURE__*/ forwardRef(function({
|
|
|
30
29
|
children: /*#__PURE__*/ jsx(ColorPicker.RootProvider, {
|
|
31
30
|
ref: ref,
|
|
32
31
|
asChild: asChild,
|
|
33
|
-
|
|
34
|
-
className: clsx(ColorPicker_module.root, normalizeClassName(className)),
|
|
32
|
+
className: clsx(ColorPicker_module.root, className),
|
|
35
33
|
lazyMount: lazyMount,
|
|
36
34
|
unmountOnExit: unmountOnExit,
|
|
37
35
|
...props,
|
|
38
|
-
|
|
36
|
+
"data-slot": "color-picker-root-provider",
|
|
37
|
+
children: children
|
|
39
38
|
})
|
|
40
39
|
});
|
|
41
40
|
});
|
|
42
41
|
const ColorPicker_ColorPickerLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
43
42
|
return /*#__PURE__*/ jsx(ColorPicker.Label, {
|
|
44
43
|
ref: ref,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
className: clsx(ColorPicker_module.label, className),
|
|
45
|
+
...props,
|
|
46
|
+
"data-slot": "color-picker-label"
|
|
48
47
|
});
|
|
49
48
|
});
|
|
50
49
|
const ColorPicker_ColorPickerControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
51
50
|
return /*#__PURE__*/ jsx(ColorPicker.Control, {
|
|
52
51
|
ref: ref,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
className: clsx(ColorPicker_module.control, className),
|
|
53
|
+
...props,
|
|
54
|
+
"data-slot": "color-picker-control"
|
|
56
55
|
});
|
|
57
56
|
});
|
|
58
57
|
const ColorPicker_ColorPickerTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
59
58
|
return /*#__PURE__*/ jsx(ColorPicker.Trigger, {
|
|
60
59
|
ref: ref,
|
|
61
|
-
|
|
62
|
-
className: clsx(ColorPicker_module.trigger, normalizeClassName(className)),
|
|
60
|
+
className: clsx(ColorPicker_module.trigger, className),
|
|
63
61
|
...props,
|
|
62
|
+
"data-slot": "color-picker-trigger",
|
|
64
63
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
65
64
|
children: [
|
|
66
65
|
/*#__PURE__*/ jsx(ColorPicker.TransparencyGrid, {
|
|
@@ -79,26 +78,26 @@ const ColorPicker_ColorPickerPositioner = /*#__PURE__*/ forwardRef(function({ cl
|
|
|
79
78
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
80
79
|
children: /*#__PURE__*/ jsx(ColorPicker.Positioner, {
|
|
81
80
|
ref: ref,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
className: clsx(ColorPicker_module.positioner, className),
|
|
82
|
+
...props,
|
|
83
|
+
"data-slot": "color-picker-positioner"
|
|
85
84
|
})
|
|
86
85
|
});
|
|
87
86
|
});
|
|
88
87
|
const ColorPicker_ColorPickerContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
89
88
|
return /*#__PURE__*/ jsx(ColorPicker.Content, {
|
|
90
89
|
ref: ref,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
className: clsx(ColorPicker_module.content, className),
|
|
91
|
+
...props,
|
|
92
|
+
"data-slot": "color-picker-content"
|
|
94
93
|
});
|
|
95
94
|
});
|
|
96
95
|
const ColorPicker_ColorPickerArea = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
97
96
|
return /*#__PURE__*/ jsx(ColorPicker.Area, {
|
|
98
97
|
ref: ref,
|
|
99
|
-
|
|
100
|
-
className: clsx(ColorPicker_module.area, normalizeClassName(className)),
|
|
98
|
+
className: clsx(ColorPicker_module.area, className),
|
|
101
99
|
...props,
|
|
100
|
+
"data-slot": "color-picker-area",
|
|
102
101
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
103
102
|
children: [
|
|
104
103
|
/*#__PURE__*/ jsx(ColorPicker.AreaBackground, {
|
|
@@ -116,26 +115,26 @@ const ColorPicker_ColorPickerArea = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
116
115
|
const ColorPicker_ColorPickerAreaBackground = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
117
116
|
return /*#__PURE__*/ jsx(ColorPicker.AreaBackground, {
|
|
118
117
|
ref: ref,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
className: clsx(ColorPicker_module.areaBackground, className),
|
|
119
|
+
...props,
|
|
120
|
+
"data-slot": "color-picker-area-background"
|
|
122
121
|
});
|
|
123
122
|
});
|
|
124
123
|
const ColorPicker_ColorPickerAreaThumb = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
125
124
|
return /*#__PURE__*/ jsx(ColorPicker.AreaThumb, {
|
|
126
125
|
ref: ref,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
className: clsx(ColorPicker_module.thumb, className),
|
|
127
|
+
...props,
|
|
128
|
+
"data-slot": "color-picker-area-thumb"
|
|
130
129
|
});
|
|
131
130
|
});
|
|
132
131
|
const ColorPicker_ColorPickerChannelSlider = /*#__PURE__*/ forwardRef(function({ className, children, channel, ...props }, ref) {
|
|
133
132
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSlider, {
|
|
134
133
|
ref: ref,
|
|
135
|
-
|
|
136
|
-
className: clsx(ColorPicker_module.channelSlider, normalizeClassName(className)),
|
|
134
|
+
className: clsx(ColorPicker_module.channelSlider, className),
|
|
137
135
|
channel: channel,
|
|
138
136
|
...props,
|
|
137
|
+
"data-slot": "color-picker-channel-slider",
|
|
139
138
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
140
139
|
children: [
|
|
141
140
|
'alpha' === channel && /*#__PURE__*/ jsx(ColorPicker.TransparencyGrid, {
|
|
@@ -157,9 +156,9 @@ const ColorPicker_ColorPickerChannelSlider = /*#__PURE__*/ forwardRef(function({
|
|
|
157
156
|
const ColorPicker_ColorPickerSliders = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
158
157
|
return /*#__PURE__*/ jsxs("div", {
|
|
159
158
|
ref: ref,
|
|
160
|
-
|
|
161
|
-
className: clsx(ColorPicker_module.sliders, normalizeClassName(className)),
|
|
159
|
+
className: clsx(ColorPicker_module.sliders, className),
|
|
162
160
|
...props,
|
|
161
|
+
"data-slot": "color-picker-sliders",
|
|
163
162
|
children: [
|
|
164
163
|
/*#__PURE__*/ jsx(ColorPicker_ColorPickerChannelSlider, {
|
|
165
164
|
channel: "hue"
|
|
@@ -173,49 +172,49 @@ const ColorPicker_ColorPickerSliders = /*#__PURE__*/ forwardRef(function({ class
|
|
|
173
172
|
const ColorPicker_ColorPickerChannelSliderTrack = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
174
173
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSliderTrack, {
|
|
175
174
|
ref: ref,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
className: clsx(ColorPicker_module.channelSliderTrack, className),
|
|
176
|
+
...props,
|
|
177
|
+
"data-slot": "color-picker-channel-slider-track"
|
|
179
178
|
});
|
|
180
179
|
});
|
|
181
180
|
const ColorPicker_ColorPickerChannelSliderThumb = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
182
181
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSliderThumb, {
|
|
183
182
|
ref: ref,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
className: clsx(ColorPicker_module.thumb, className),
|
|
184
|
+
...props,
|
|
185
|
+
"data-slot": "color-picker-channel-slider-thumb"
|
|
187
186
|
});
|
|
188
187
|
});
|
|
189
188
|
const ColorPicker_ColorPickerChannelSliderLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
190
189
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSliderLabel, {
|
|
191
190
|
ref: ref,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
191
|
+
className: clsx(ColorPicker_module.channelSliderLabel, className),
|
|
192
|
+
...props,
|
|
193
|
+
"data-slot": "color-picker-channel-slider-label"
|
|
195
194
|
});
|
|
196
195
|
});
|
|
197
196
|
const ColorPicker_ColorPickerChannelSliderValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
198
197
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSliderValueText, {
|
|
199
198
|
ref: ref,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
199
|
+
className: clsx(ColorPicker_module.channelSliderValueText, className),
|
|
200
|
+
...props,
|
|
201
|
+
"data-slot": "color-picker-channel-slider-value-text"
|
|
203
202
|
});
|
|
204
203
|
});
|
|
205
204
|
const ColorPicker_ColorPickerChannelInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
206
205
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelInput, {
|
|
207
206
|
ref: ref,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
207
|
+
className: clsx(ColorPicker_module.channelInput, className),
|
|
208
|
+
...props,
|
|
209
|
+
"data-slot": "color-picker-channel-input"
|
|
211
210
|
});
|
|
212
211
|
});
|
|
213
212
|
const ColorPicker_ColorPickerEyeDropperTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
214
213
|
return /*#__PURE__*/ jsx(ColorPicker.EyeDropperTrigger, {
|
|
215
214
|
ref: ref,
|
|
216
|
-
|
|
217
|
-
className: clsx(ColorPicker_module.eyeDropperTrigger, normalizeClassName(className)),
|
|
215
|
+
className: clsx(ColorPicker_module.eyeDropperTrigger, className),
|
|
218
216
|
...props,
|
|
217
|
+
"data-slot": "color-picker-eye-dropper-trigger",
|
|
219
218
|
children: children ?? /*#__PURE__*/ jsx(PipetteIcon, {})
|
|
220
219
|
});
|
|
221
220
|
});
|
|
@@ -225,9 +224,9 @@ const ColorPicker_ColorPickerFormatSelect = /*#__PURE__*/ forwardRef(function({
|
|
|
225
224
|
children: [
|
|
226
225
|
/*#__PURE__*/ jsx(ColorPicker.FormatSelect, {
|
|
227
226
|
ref: ref,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
227
|
+
className: clsx(ColorPicker_module.formatSelect, className),
|
|
228
|
+
...props,
|
|
229
|
+
"data-slot": "color-picker-format-select"
|
|
231
230
|
}),
|
|
232
231
|
/*#__PURE__*/ jsx("span", {
|
|
233
232
|
"aria-hidden": "true",
|
|
@@ -240,26 +239,26 @@ const ColorPicker_ColorPickerFormatSelect = /*#__PURE__*/ forwardRef(function({
|
|
|
240
239
|
const ColorPicker_ColorPickerFormatTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
241
240
|
return /*#__PURE__*/ jsx(ColorPicker.FormatTrigger, {
|
|
242
241
|
ref: ref,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
242
|
+
className: clsx(ColorPicker_module.formatTrigger, className),
|
|
243
|
+
...props,
|
|
244
|
+
"data-slot": "color-picker-format-trigger"
|
|
246
245
|
});
|
|
247
246
|
});
|
|
248
247
|
const ColorPicker_ColorPickerSwatchGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
249
248
|
return /*#__PURE__*/ jsx(ColorPicker.SwatchGroup, {
|
|
250
249
|
ref: ref,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
250
|
+
className: clsx(ColorPicker_module.swatchGroup, className),
|
|
251
|
+
...props,
|
|
252
|
+
"data-slot": "color-picker-swatch-group"
|
|
254
253
|
});
|
|
255
254
|
});
|
|
256
255
|
const ColorPicker_ColorPickerSwatchTrigger = /*#__PURE__*/ forwardRef(function({ className, children, value, ...props }, ref) {
|
|
257
256
|
return /*#__PURE__*/ jsx(ColorPicker.SwatchTrigger, {
|
|
258
257
|
ref: ref,
|
|
259
|
-
|
|
260
|
-
className: clsx(ColorPicker_module.swatchTrigger, normalizeClassName(className)),
|
|
258
|
+
className: clsx(ColorPicker_module.swatchTrigger, className),
|
|
261
259
|
value: value,
|
|
262
260
|
...props,
|
|
261
|
+
"data-slot": "color-picker-swatch-trigger",
|
|
263
262
|
children: children ?? /*#__PURE__*/ jsx(ColorPicker.Swatch, {
|
|
264
263
|
"data-slot": "color-picker-swatch",
|
|
265
264
|
className: ColorPicker_module.swatch,
|
|
@@ -275,69 +274,57 @@ const ColorPicker_ColorPickerSwatchTrigger = /*#__PURE__*/ forwardRef(function({
|
|
|
275
274
|
const ColorPicker_ColorPickerSwatch = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
276
275
|
return /*#__PURE__*/ jsx(ColorPicker.Swatch, {
|
|
277
276
|
ref: ref,
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
277
|
+
className: clsx(ColorPicker_module.swatch, className),
|
|
278
|
+
...props,
|
|
279
|
+
"data-slot": "color-picker-swatch"
|
|
281
280
|
});
|
|
282
281
|
});
|
|
283
282
|
const ColorPicker_ColorPickerSwatchIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
284
283
|
return /*#__PURE__*/ jsx(ColorPicker.SwatchIndicator, {
|
|
285
284
|
ref: ref,
|
|
286
|
-
|
|
287
|
-
className: clsx(ColorPicker_module.swatchIndicator, normalizeClassName(className)),
|
|
285
|
+
className: clsx(ColorPicker_module.swatchIndicator, className),
|
|
288
286
|
...props,
|
|
287
|
+
"data-slot": "color-picker-swatch-indicator",
|
|
289
288
|
children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
|
|
290
289
|
});
|
|
291
290
|
});
|
|
292
291
|
const ColorPicker_ColorPickerTransparencyGrid = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
293
292
|
return /*#__PURE__*/ jsx(ColorPicker.TransparencyGrid, {
|
|
294
293
|
ref: ref,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
294
|
+
className: clsx(ColorPicker_module.transparencyGrid, className),
|
|
295
|
+
...props,
|
|
296
|
+
"data-slot": "color-picker-transparency-grid"
|
|
298
297
|
});
|
|
299
298
|
});
|
|
300
299
|
const ColorPicker_ColorPickerValueSwatch = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
301
300
|
return /*#__PURE__*/ jsx(ColorPicker.ValueSwatch, {
|
|
302
301
|
ref: ref,
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
302
|
+
className: clsx(ColorPicker_module.valueSwatch, className),
|
|
303
|
+
...props,
|
|
304
|
+
"data-slot": "color-picker-value-swatch"
|
|
306
305
|
});
|
|
307
306
|
});
|
|
308
307
|
const ColorPicker_ColorPickerValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
309
308
|
return /*#__PURE__*/ jsx(ColorPicker.ValueText, {
|
|
310
309
|
ref: ref,
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
310
|
+
className: clsx(ColorPicker_module.valueText, className),
|
|
311
|
+
...props,
|
|
312
|
+
"data-slot": "color-picker-value-text"
|
|
314
313
|
});
|
|
315
314
|
});
|
|
316
315
|
const ColorPicker_ColorPickerView = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
317
316
|
return /*#__PURE__*/ jsx(ColorPicker.View, {
|
|
318
317
|
ref: ref,
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
318
|
+
className: clsx(ColorPicker_module.view, className),
|
|
319
|
+
...props,
|
|
320
|
+
"data-slot": "color-picker-view"
|
|
322
321
|
});
|
|
323
322
|
});
|
|
324
|
-
function withHiddenInput(children, asChild) {
|
|
325
|
-
const hiddenInput = /*#__PURE__*/ jsx(ColorPicker.HiddenInput, {
|
|
326
|
-
"data-slot": "color-picker-hidden-input"
|
|
327
|
-
});
|
|
328
|
-
if (!asChild) return /*#__PURE__*/ jsxs(Fragment, {
|
|
329
|
-
children: [
|
|
330
|
-
children,
|
|
331
|
-
hiddenInput
|
|
332
|
-
]
|
|
333
|
-
});
|
|
334
|
-
const child = Children.only(children);
|
|
335
|
-
return /*#__PURE__*/ cloneElement(child, {}, child.props.children, hiddenInput);
|
|
336
|
-
}
|
|
337
323
|
const ColorPicker_ColorPicker = Object.assign(ColorPicker_ColorPickerRoot, {
|
|
338
324
|
Root: ColorPicker_ColorPickerRoot,
|
|
339
325
|
RootProvider: ColorPicker_ColorPickerRootProvider,
|
|
340
326
|
Context: ColorPicker.Context,
|
|
327
|
+
HiddenInput: ColorPicker.HiddenInput,
|
|
341
328
|
Label: ColorPicker_ColorPickerLabel,
|
|
342
329
|
Control: ColorPicker_ColorPickerControl,
|
|
343
330
|
Trigger: ColorPicker_ColorPickerTrigger,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Combobox as ComboboxPrimitive, useCombobox, useComboboxContext, useComboboxItemContext } from '@ark-ui/react/combobox';
|
|
1
|
+
import { Combobox as ComboboxPrimitive, type ComboboxRootComponent as ArkComboboxRootComponent, type ComboboxRootProviderComponent as ArkComboboxRootProviderComponent, useCombobox, useComboboxContext, useComboboxItemContext } from '@ark-ui/react/combobox';
|
|
2
2
|
import type { ComponentProps, ReactNode } from 'react';
|
|
3
|
-
import { type OverlayPortalProps } from '../../internal/overlayPortal';
|
|
3
|
+
import { type OverlayPortalProps } from '../../internal/overlayPortal.js';
|
|
4
4
|
type ComboboxOptionProps = Omit<ComponentProps<typeof ComboboxPrimitive.Item>, 'asChild' | 'children'> & {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
indicator?: ReactNode | false;
|
|
7
7
|
};
|
|
8
|
-
declare const Combobox:
|
|
9
|
-
Root:
|
|
10
|
-
RootProvider:
|
|
8
|
+
declare const Combobox: ArkComboboxRootComponent<OverlayPortalProps> & {
|
|
9
|
+
Root: ArkComboboxRootComponent<OverlayPortalProps>;
|
|
10
|
+
RootProvider: ArkComboboxRootProviderComponent<OverlayPortalProps>;
|
|
11
11
|
Label: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
12
12
|
Control: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
13
|
Input: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -5,7 +5,6 @@ import { ark } from "@ark-ui/react/factory";
|
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
7
|
import { CheckIcon, ChevronUpDownIcon } from "../../internal/icons/ui/index.js";
|
|
8
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
9
8
|
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
|
|
10
9
|
import { CloseButton } from "../close-button/index.js";
|
|
11
10
|
import Combobox_module from "./Combobox.module.js";
|
|
@@ -15,11 +14,11 @@ const Combobox_ComboboxRoot = /*#__PURE__*/ forwardRef(function({ className, laz
|
|
|
15
14
|
portalRef: portalRef,
|
|
16
15
|
children: /*#__PURE__*/ jsx(Combobox.Root, {
|
|
17
16
|
ref: ref,
|
|
18
|
-
|
|
19
|
-
className: clsx(Combobox_module.root, normalizeClassName(className)),
|
|
17
|
+
className: clsx(Combobox_module.root, className),
|
|
20
18
|
lazyMount: lazyMount,
|
|
21
19
|
unmountOnExit: unmountOnExit,
|
|
22
|
-
...props
|
|
20
|
+
...props,
|
|
21
|
+
"data-slot": "combobox-root"
|
|
23
22
|
})
|
|
24
23
|
});
|
|
25
24
|
});
|
|
@@ -29,58 +28,50 @@ const Combobox_ComboboxRootProvider = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
29
28
|
portalRef: portalRef,
|
|
30
29
|
children: /*#__PURE__*/ jsx(Combobox.RootProvider, {
|
|
31
30
|
ref: ref,
|
|
32
|
-
|
|
33
|
-
className: clsx(Combobox_module.root, normalizeClassName(className)),
|
|
31
|
+
className: clsx(Combobox_module.root, className),
|
|
34
32
|
lazyMount: lazyMount,
|
|
35
33
|
unmountOnExit: unmountOnExit,
|
|
36
|
-
...props
|
|
34
|
+
...props,
|
|
35
|
+
"data-slot": "combobox-root-provider"
|
|
37
36
|
})
|
|
38
37
|
});
|
|
39
38
|
});
|
|
40
39
|
const Combobox_ComboboxLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
41
40
|
return /*#__PURE__*/ jsx(Combobox.Label, {
|
|
42
41
|
ref: ref,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
className: clsx(Combobox_module.label, className),
|
|
43
|
+
...props,
|
|
44
|
+
"data-slot": "combobox-label"
|
|
46
45
|
});
|
|
47
46
|
});
|
|
48
47
|
const Combobox_ComboboxControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
49
48
|
return /*#__PURE__*/ jsx(Combobox.Control, {
|
|
50
49
|
ref: ref,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
className: clsx(Combobox_module.control, className),
|
|
51
|
+
...props,
|
|
52
|
+
"data-slot": "combobox-control"
|
|
54
53
|
});
|
|
55
54
|
});
|
|
56
55
|
const Combobox_ComboboxInput = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
57
56
|
return /*#__PURE__*/ jsx(Combobox.Input, {
|
|
58
57
|
ref: ref,
|
|
59
|
-
"data-slot": "combobox-input",
|
|
60
58
|
asChild: asChild,
|
|
61
|
-
className: clsx(!asChild && Combobox_module.input,
|
|
62
|
-
...props
|
|
59
|
+
className: clsx(!asChild && Combobox_module.input, className),
|
|
60
|
+
...props,
|
|
61
|
+
"data-slot": "combobox-input"
|
|
63
62
|
});
|
|
64
63
|
});
|
|
65
64
|
const Combobox_ComboboxClearTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }, ref) {
|
|
66
|
-
const triggerClassName = clsx(Combobox_module.clearTrigger,
|
|
67
|
-
if (asChild) return /*#__PURE__*/ jsx(Combobox.ClearTrigger, {
|
|
68
|
-
ref: ref,
|
|
69
|
-
asChild: true,
|
|
70
|
-
"data-slot": "combobox-clear-trigger",
|
|
71
|
-
className: triggerClassName,
|
|
72
|
-
"aria-label": ariaLabel,
|
|
73
|
-
"aria-labelledby": ariaLabelledBy,
|
|
74
|
-
...props,
|
|
75
|
-
children: children
|
|
76
|
-
});
|
|
65
|
+
const triggerClassName = clsx(Combobox_module.clearTrigger, className);
|
|
77
66
|
return /*#__PURE__*/ jsx(Combobox.ClearTrigger, {
|
|
78
67
|
ref: ref,
|
|
79
68
|
asChild: true,
|
|
80
|
-
"data-slot": "combobox-clear-trigger",
|
|
81
69
|
className: triggerClassName,
|
|
70
|
+
"aria-label": asChild ? ariaLabel : void 0,
|
|
71
|
+
"aria-labelledby": asChild ? ariaLabelledBy : void 0,
|
|
82
72
|
...props,
|
|
83
|
-
|
|
73
|
+
"data-slot": "combobox-clear-trigger",
|
|
74
|
+
children: asChild ? children : /*#__PURE__*/ jsx(CloseButton.Root, {
|
|
84
75
|
"aria-label": ariaLabel ?? (null == ariaLabelledBy ? 'Clear selection' : void 0),
|
|
85
76
|
"aria-labelledby": ariaLabelledBy,
|
|
86
77
|
children: children
|
|
@@ -90,9 +81,9 @@ const Combobox_ComboboxClearTrigger = /*#__PURE__*/ forwardRef(function({ asChil
|
|
|
90
81
|
const Combobox_ComboboxTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
91
82
|
return /*#__PURE__*/ jsx(Combobox.Trigger, {
|
|
92
83
|
ref: ref,
|
|
93
|
-
|
|
94
|
-
className: clsx(Combobox_module.trigger, normalizeClassName(className)),
|
|
84
|
+
className: clsx(Combobox_module.trigger, className),
|
|
95
85
|
...props,
|
|
86
|
+
"data-slot": "combobox-trigger",
|
|
96
87
|
children: children ?? /*#__PURE__*/ jsx(ChevronUpDownIcon, {})
|
|
97
88
|
});
|
|
98
89
|
});
|
|
@@ -100,82 +91,82 @@ const Combobox_ComboboxPositioner = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
100
91
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
101
92
|
children: /*#__PURE__*/ jsx(Combobox.Positioner, {
|
|
102
93
|
ref: ref,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
94
|
+
className: clsx(Combobox_module.positioner, className),
|
|
95
|
+
...props,
|
|
96
|
+
"data-slot": "combobox-positioner"
|
|
106
97
|
})
|
|
107
98
|
});
|
|
108
99
|
});
|
|
109
100
|
const Combobox_ComboboxContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
110
101
|
return /*#__PURE__*/ jsx(Combobox.Content, {
|
|
111
102
|
ref: ref,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
103
|
+
className: clsx(Combobox_module.content, className),
|
|
104
|
+
...props,
|
|
105
|
+
"data-slot": "combobox-content"
|
|
115
106
|
});
|
|
116
107
|
});
|
|
117
108
|
const Combobox_ComboboxEmpty = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
118
109
|
return /*#__PURE__*/ jsx(Combobox.Empty, {
|
|
119
110
|
ref: ref,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
111
|
+
className: clsx(Combobox_module.empty, className),
|
|
112
|
+
...props,
|
|
113
|
+
"data-slot": "combobox-empty"
|
|
123
114
|
});
|
|
124
115
|
});
|
|
125
116
|
const Combobox_ComboboxStatus = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
126
117
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
127
118
|
ref: ref,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
119
|
+
className: clsx(Combobox_module.status, className),
|
|
120
|
+
...props,
|
|
121
|
+
"data-slot": "combobox-status"
|
|
131
122
|
});
|
|
132
123
|
});
|
|
133
124
|
const Combobox_ComboboxList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
134
125
|
return /*#__PURE__*/ jsx(Combobox.List, {
|
|
135
126
|
ref: ref,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
127
|
+
className: clsx(Combobox_module.list, className),
|
|
128
|
+
...props,
|
|
129
|
+
"data-slot": "combobox-list"
|
|
139
130
|
});
|
|
140
131
|
});
|
|
141
132
|
const Combobox_ComboboxItemGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
142
133
|
return /*#__PURE__*/ jsx(Combobox.ItemGroup, {
|
|
143
134
|
ref: ref,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
135
|
+
className: clsx(Combobox_module.itemGroup, className),
|
|
136
|
+
...props,
|
|
137
|
+
"data-slot": "combobox-item-group"
|
|
147
138
|
});
|
|
148
139
|
});
|
|
149
140
|
const Combobox_ComboboxItemGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
150
141
|
return /*#__PURE__*/ jsx(Combobox.ItemGroupLabel, {
|
|
151
142
|
ref: ref,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
143
|
+
className: clsx(Combobox_module.itemGroupLabel, className),
|
|
144
|
+
...props,
|
|
145
|
+
"data-slot": "combobox-item-group-label"
|
|
155
146
|
});
|
|
156
147
|
});
|
|
157
148
|
const Combobox_ComboboxItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
158
149
|
return /*#__PURE__*/ jsx(Combobox.Item, {
|
|
159
150
|
ref: ref,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
151
|
+
className: clsx(Combobox_module.item, className),
|
|
152
|
+
...props,
|
|
153
|
+
"data-slot": "combobox-item"
|
|
163
154
|
});
|
|
164
155
|
});
|
|
165
156
|
const Combobox_ComboboxItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
166
157
|
return /*#__PURE__*/ jsx(Combobox.ItemText, {
|
|
167
158
|
ref: ref,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
159
|
+
className: clsx(Combobox_module.itemText, className),
|
|
160
|
+
...props,
|
|
161
|
+
"data-slot": "combobox-item-text"
|
|
171
162
|
});
|
|
172
163
|
});
|
|
173
164
|
const Combobox_ComboboxItemIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
174
165
|
return /*#__PURE__*/ jsx(Combobox.ItemIndicator, {
|
|
175
166
|
ref: ref,
|
|
176
|
-
|
|
177
|
-
className: clsx(Combobox_module.itemIndicator, normalizeClassName(className)),
|
|
167
|
+
className: clsx(Combobox_module.itemIndicator, className),
|
|
178
168
|
...props,
|
|
169
|
+
"data-slot": "combobox-item-indicator",
|
|
179
170
|
children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
|
|
180
171
|
});
|
|
181
172
|
});
|
|
@@ -177,7 +177,6 @@
|
|
|
177
177
|
--moduix-close-button-focus-ring-width: var(--moduix-combobox-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)));
|
|
178
178
|
--moduix-close-button-focus-ring-color: var(--moduix-combobox-focus-ring-color, var(--moduix-color-ring));
|
|
179
179
|
--moduix-close-button-focus-ring-offset: var(--moduix-combobox-focus-ring-offset, var(--moduix-border-width-sm));
|
|
180
|
-
--moduix-close-button-transition: var(--moduix-combobox-transition, var(--moduix-transition-default));
|
|
181
180
|
top: 50%;
|
|
182
181
|
position: absolute;
|
|
183
182
|
inset-inline-end: calc(var(--moduix-combobox-action-offset-right, var(--moduix-spacing-2)) +
|