@moduix/react 2.5.1 → 2.6.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 +7 -8
- package/dist/components/alert/Alert.js +6 -7
- 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 +17 -59
- 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 +7 -50
- 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 -7
- package/dist/components/card/Card.d.ts +15 -15
- package/dist/components/card/Card.js +10 -11
- package/dist/components/card/Card_module.css +1 -17
- package/dist/components/carousel/Carousel.js +12 -13
- package/dist/components/carousel/Carousel_module.css +7 -0
- package/dist/components/chart/Chart.d.ts +9 -8
- package/dist/components/chart/Chart.js +7 -8
- package/dist/components/chart/Chart_module.css +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +3 -2
- package/dist/components/checkbox/Checkbox.js +12 -35
- package/dist/components/clipboard/Clipboard.js +8 -9
- 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 +6 -9
- 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 +32 -45
- 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 +20 -29
- 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 +51 -78
- package/dist/components/command-palette/CommandPalette_module.css +11 -18
- package/dist/components/container/Container.js +1 -2
- package/dist/components/date-input/DateInput.d.ts +7 -9
- package/dist/components/date-input/DateInput.js +14 -44
- 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 +34 -43
- 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 +11 -12
- package/dist/components/drawer/Drawer.d.ts +6 -3
- package/dist/components/drawer/Drawer.js +33 -24
- package/dist/components/editable/Editable.d.ts +1 -1
- package/dist/components/editable/Editable.js +10 -11
- package/dist/components/empty/Empty.js +6 -7
- package/dist/components/field/Field.js +10 -11
- package/dist/components/fieldset/Fieldset.js +5 -6
- package/dist/components/file-upload/FileUpload.d.ts +3 -2
- package/dist/components/file-upload/FileUpload.js +28 -55
- package/dist/components/file-upload/FileUpload_module.css +4 -13
- package/dist/components/floating-panel/FloatingPanel.d.ts +2 -2
- package/dist/components/floating-panel/FloatingPanel.js +14 -15
- package/dist/components/floating-panel/FloatingPanel_module.css +4 -17
- package/dist/components/heading/Heading.js +1 -2
- package/dist/components/highlight/Highlight.js +1 -2
- package/dist/components/hover-card/HoverCard.d.ts +2 -1
- package/dist/components/hover-card/HoverCard.js +15 -6
- package/dist/components/hover-card/HoverCard.module.js +1 -0
- package/dist/components/hover-card/HoverCard_module.css +18 -3
- 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 +7 -8
- 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 +2 -3
- package/dist/components/lightbox/Lightbox.d.ts +1 -1
- package/dist/components/lightbox/Lightbox.js +13 -14
- 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 +19 -25
- package/dist/components/listbox/Listbox.module.js +2 -2
- package/dist/components/listbox/Listbox_module.css +3 -13
- package/dist/components/marquee/Marquee.js +6 -7
- package/dist/components/menu/Menu.d.ts +2 -1
- package/dist/components/menu/Menu.js +34 -41
- 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 +17 -36
- 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 +9 -10
- package/dist/components/pagination/Pagination.js +17 -20
- package/dist/components/pagination/Pagination_module.css +1 -5
- package/dist/components/password-input/PasswordInput.js +7 -8
- package/dist/components/pin-input/PinInput.d.ts +3 -2
- package/dist/components/pin-input/PinInput.js +13 -54
- package/dist/components/popover/Popover.d.ts +5 -3
- package/dist/components/popover/Popover.js +16 -17
- package/dist/components/progress-circular/ProgressCircular.js +8 -9
- 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 +7 -8
- 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 +6 -7
- package/dist/components/radio-group/RadioGroup.d.ts +1 -0
- package/dist/components/radio-group/RadioGroup.js +13 -27
- 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 +12 -29
- 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 +16 -30
- 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 +36 -86
- 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 +35 -48
- 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 +17 -46
- 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 +18 -32
- 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 +4 -4
- package/dist/components/split-button/SplitButton.js +11 -8
- package/dist/components/splitter/Splitter.js +5 -6
- 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 +12 -13
- package/dist/components/steps/Steps_module.css +2 -3
- package/dist/components/swap/Swap.js +3 -4
- package/dist/components/switch/Switch.d.ts +3 -2
- package/dist/components/switch/Switch.js +12 -35
- package/dist/components/switch/Switch_module.css +0 -1
- package/dist/components/table/Table.d.ts +5 -5
- package/dist/components/table/Table.js +12 -13
- package/dist/components/tabs/Tabs.js +6 -7
- 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 +21 -75
- 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 +7 -8
- package/dist/components/toast/Toast.d.ts +1 -1
- package/dist/components/toast/Toast.js +7 -8
- package/dist/components/toast/Toast_module.css +1 -2
- package/dist/components/toc/Toc.js +10 -11
- package/dist/components/toc/Toc_module.css +2 -2
- package/dist/components/toggle/Toggle.js +2 -3
- 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 +6 -7
- package/dist/components/tooltip/Tooltip_module.css +1 -1
- package/dist/components/tour/Tour.d.ts +1 -1
- package/dist/components/tour/Tour.js +14 -15
- package/dist/components/tree-view/TreeView.d.ts +4 -4
- package/dist/components/tree-view/TreeView.js +17 -18
- 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) {
|
|
@@ -15,11 +14,11 @@ const ColorPicker_ColorPickerRoot = /*#__PURE__*/ forwardRef(function({ asChild,
|
|
|
15
14
|
ref: ref,
|
|
16
15
|
asChild: asChild,
|
|
17
16
|
"data-slot": "color-picker-root",
|
|
18
|
-
className: clsx(ColorPicker_module.root,
|
|
17
|
+
className: clsx(ColorPicker_module.root, className),
|
|
19
18
|
lazyMount: lazyMount,
|
|
20
19
|
unmountOnExit: unmountOnExit,
|
|
21
20
|
...props,
|
|
22
|
-
children:
|
|
21
|
+
children: children
|
|
23
22
|
})
|
|
24
23
|
});
|
|
25
24
|
});
|
|
@@ -31,11 +30,11 @@ const ColorPicker_ColorPickerRootProvider = /*#__PURE__*/ forwardRef(function({
|
|
|
31
30
|
ref: ref,
|
|
32
31
|
asChild: asChild,
|
|
33
32
|
"data-slot": "color-picker-root-provider",
|
|
34
|
-
className: clsx(ColorPicker_module.root,
|
|
33
|
+
className: clsx(ColorPicker_module.root, className),
|
|
35
34
|
lazyMount: lazyMount,
|
|
36
35
|
unmountOnExit: unmountOnExit,
|
|
37
36
|
...props,
|
|
38
|
-
children:
|
|
37
|
+
children: children
|
|
39
38
|
})
|
|
40
39
|
});
|
|
41
40
|
});
|
|
@@ -43,7 +42,7 @@ const ColorPicker_ColorPickerLabel = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
43
42
|
return /*#__PURE__*/ jsx(ColorPicker.Label, {
|
|
44
43
|
ref: ref,
|
|
45
44
|
"data-slot": "color-picker-label",
|
|
46
|
-
className: clsx(ColorPicker_module.label,
|
|
45
|
+
className: clsx(ColorPicker_module.label, className),
|
|
47
46
|
...props
|
|
48
47
|
});
|
|
49
48
|
});
|
|
@@ -51,7 +50,7 @@ const ColorPicker_ColorPickerControl = /*#__PURE__*/ forwardRef(function({ class
|
|
|
51
50
|
return /*#__PURE__*/ jsx(ColorPicker.Control, {
|
|
52
51
|
ref: ref,
|
|
53
52
|
"data-slot": "color-picker-control",
|
|
54
|
-
className: clsx(ColorPicker_module.control,
|
|
53
|
+
className: clsx(ColorPicker_module.control, className),
|
|
55
54
|
...props
|
|
56
55
|
});
|
|
57
56
|
});
|
|
@@ -59,7 +58,7 @@ const ColorPicker_ColorPickerTrigger = /*#__PURE__*/ forwardRef(function({ class
|
|
|
59
58
|
return /*#__PURE__*/ jsx(ColorPicker.Trigger, {
|
|
60
59
|
ref: ref,
|
|
61
60
|
"data-slot": "color-picker-trigger",
|
|
62
|
-
className: clsx(ColorPicker_module.trigger,
|
|
61
|
+
className: clsx(ColorPicker_module.trigger, className),
|
|
63
62
|
...props,
|
|
64
63
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
65
64
|
children: [
|
|
@@ -80,7 +79,7 @@ const ColorPicker_ColorPickerPositioner = /*#__PURE__*/ forwardRef(function({ cl
|
|
|
80
79
|
children: /*#__PURE__*/ jsx(ColorPicker.Positioner, {
|
|
81
80
|
ref: ref,
|
|
82
81
|
"data-slot": "color-picker-positioner",
|
|
83
|
-
className: clsx(ColorPicker_module.positioner,
|
|
82
|
+
className: clsx(ColorPicker_module.positioner, className),
|
|
84
83
|
...props
|
|
85
84
|
})
|
|
86
85
|
});
|
|
@@ -89,7 +88,7 @@ const ColorPicker_ColorPickerContent = /*#__PURE__*/ forwardRef(function({ class
|
|
|
89
88
|
return /*#__PURE__*/ jsx(ColorPicker.Content, {
|
|
90
89
|
ref: ref,
|
|
91
90
|
"data-slot": "color-picker-content",
|
|
92
|
-
className: clsx(ColorPicker_module.content,
|
|
91
|
+
className: clsx(ColorPicker_module.content, className),
|
|
93
92
|
...props
|
|
94
93
|
});
|
|
95
94
|
});
|
|
@@ -97,7 +96,7 @@ const ColorPicker_ColorPickerArea = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
97
96
|
return /*#__PURE__*/ jsx(ColorPicker.Area, {
|
|
98
97
|
ref: ref,
|
|
99
98
|
"data-slot": "color-picker-area",
|
|
100
|
-
className: clsx(ColorPicker_module.area,
|
|
99
|
+
className: clsx(ColorPicker_module.area, className),
|
|
101
100
|
...props,
|
|
102
101
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
103
102
|
children: [
|
|
@@ -117,7 +116,7 @@ const ColorPicker_ColorPickerAreaBackground = /*#__PURE__*/ forwardRef(function(
|
|
|
117
116
|
return /*#__PURE__*/ jsx(ColorPicker.AreaBackground, {
|
|
118
117
|
ref: ref,
|
|
119
118
|
"data-slot": "color-picker-area-background",
|
|
120
|
-
className: clsx(ColorPicker_module.areaBackground,
|
|
119
|
+
className: clsx(ColorPicker_module.areaBackground, className),
|
|
121
120
|
...props
|
|
122
121
|
});
|
|
123
122
|
});
|
|
@@ -125,7 +124,7 @@ const ColorPicker_ColorPickerAreaThumb = /*#__PURE__*/ forwardRef(function({ cla
|
|
|
125
124
|
return /*#__PURE__*/ jsx(ColorPicker.AreaThumb, {
|
|
126
125
|
ref: ref,
|
|
127
126
|
"data-slot": "color-picker-area-thumb",
|
|
128
|
-
className: clsx(ColorPicker_module.thumb,
|
|
127
|
+
className: clsx(ColorPicker_module.thumb, className),
|
|
129
128
|
...props
|
|
130
129
|
});
|
|
131
130
|
});
|
|
@@ -133,7 +132,7 @@ const ColorPicker_ColorPickerChannelSlider = /*#__PURE__*/ forwardRef(function({
|
|
|
133
132
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSlider, {
|
|
134
133
|
ref: ref,
|
|
135
134
|
"data-slot": "color-picker-channel-slider",
|
|
136
|
-
className: clsx(ColorPicker_module.channelSlider,
|
|
135
|
+
className: clsx(ColorPicker_module.channelSlider, className),
|
|
137
136
|
channel: channel,
|
|
138
137
|
...props,
|
|
139
138
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
@@ -158,7 +157,7 @@ const ColorPicker_ColorPickerSliders = /*#__PURE__*/ forwardRef(function({ class
|
|
|
158
157
|
return /*#__PURE__*/ jsxs("div", {
|
|
159
158
|
ref: ref,
|
|
160
159
|
"data-slot": "color-picker-sliders",
|
|
161
|
-
className: clsx(ColorPicker_module.sliders,
|
|
160
|
+
className: clsx(ColorPicker_module.sliders, className),
|
|
162
161
|
...props,
|
|
163
162
|
children: [
|
|
164
163
|
/*#__PURE__*/ jsx(ColorPicker_ColorPickerChannelSlider, {
|
|
@@ -174,7 +173,7 @@ const ColorPicker_ColorPickerChannelSliderTrack = /*#__PURE__*/ forwardRef(funct
|
|
|
174
173
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSliderTrack, {
|
|
175
174
|
ref: ref,
|
|
176
175
|
"data-slot": "color-picker-channel-slider-track",
|
|
177
|
-
className: clsx(ColorPicker_module.channelSliderTrack,
|
|
176
|
+
className: clsx(ColorPicker_module.channelSliderTrack, className),
|
|
178
177
|
...props
|
|
179
178
|
});
|
|
180
179
|
});
|
|
@@ -182,7 +181,7 @@ const ColorPicker_ColorPickerChannelSliderThumb = /*#__PURE__*/ forwardRef(funct
|
|
|
182
181
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSliderThumb, {
|
|
183
182
|
ref: ref,
|
|
184
183
|
"data-slot": "color-picker-channel-slider-thumb",
|
|
185
|
-
className: clsx(ColorPicker_module.thumb,
|
|
184
|
+
className: clsx(ColorPicker_module.thumb, className),
|
|
186
185
|
...props
|
|
187
186
|
});
|
|
188
187
|
});
|
|
@@ -190,7 +189,7 @@ const ColorPicker_ColorPickerChannelSliderLabel = /*#__PURE__*/ forwardRef(funct
|
|
|
190
189
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSliderLabel, {
|
|
191
190
|
ref: ref,
|
|
192
191
|
"data-slot": "color-picker-channel-slider-label",
|
|
193
|
-
className: clsx(ColorPicker_module.channelSliderLabel,
|
|
192
|
+
className: clsx(ColorPicker_module.channelSliderLabel, className),
|
|
194
193
|
...props
|
|
195
194
|
});
|
|
196
195
|
});
|
|
@@ -198,7 +197,7 @@ const ColorPicker_ColorPickerChannelSliderValueText = /*#__PURE__*/ forwardRef(f
|
|
|
198
197
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelSliderValueText, {
|
|
199
198
|
ref: ref,
|
|
200
199
|
"data-slot": "color-picker-channel-slider-value-text",
|
|
201
|
-
className: clsx(ColorPicker_module.channelSliderValueText,
|
|
200
|
+
className: clsx(ColorPicker_module.channelSliderValueText, className),
|
|
202
201
|
...props
|
|
203
202
|
});
|
|
204
203
|
});
|
|
@@ -206,7 +205,7 @@ const ColorPicker_ColorPickerChannelInput = /*#__PURE__*/ forwardRef(function({
|
|
|
206
205
|
return /*#__PURE__*/ jsx(ColorPicker.ChannelInput, {
|
|
207
206
|
ref: ref,
|
|
208
207
|
"data-slot": "color-picker-channel-input",
|
|
209
|
-
className: clsx(ColorPicker_module.channelInput,
|
|
208
|
+
className: clsx(ColorPicker_module.channelInput, className),
|
|
210
209
|
...props
|
|
211
210
|
});
|
|
212
211
|
});
|
|
@@ -214,7 +213,7 @@ const ColorPicker_ColorPickerEyeDropperTrigger = /*#__PURE__*/ forwardRef(functi
|
|
|
214
213
|
return /*#__PURE__*/ jsx(ColorPicker.EyeDropperTrigger, {
|
|
215
214
|
ref: ref,
|
|
216
215
|
"data-slot": "color-picker-eye-dropper-trigger",
|
|
217
|
-
className: clsx(ColorPicker_module.eyeDropperTrigger,
|
|
216
|
+
className: clsx(ColorPicker_module.eyeDropperTrigger, className),
|
|
218
217
|
...props,
|
|
219
218
|
children: children ?? /*#__PURE__*/ jsx(PipetteIcon, {})
|
|
220
219
|
});
|
|
@@ -226,7 +225,7 @@ const ColorPicker_ColorPickerFormatSelect = /*#__PURE__*/ forwardRef(function({
|
|
|
226
225
|
/*#__PURE__*/ jsx(ColorPicker.FormatSelect, {
|
|
227
226
|
ref: ref,
|
|
228
227
|
"data-slot": "color-picker-format-select",
|
|
229
|
-
className: clsx(ColorPicker_module.formatSelect,
|
|
228
|
+
className: clsx(ColorPicker_module.formatSelect, className),
|
|
230
229
|
...props
|
|
231
230
|
}),
|
|
232
231
|
/*#__PURE__*/ jsx("span", {
|
|
@@ -241,7 +240,7 @@ const ColorPicker_ColorPickerFormatTrigger = /*#__PURE__*/ forwardRef(function({
|
|
|
241
240
|
return /*#__PURE__*/ jsx(ColorPicker.FormatTrigger, {
|
|
242
241
|
ref: ref,
|
|
243
242
|
"data-slot": "color-picker-format-trigger",
|
|
244
|
-
className: clsx(ColorPicker_module.formatTrigger,
|
|
243
|
+
className: clsx(ColorPicker_module.formatTrigger, className),
|
|
245
244
|
...props
|
|
246
245
|
});
|
|
247
246
|
});
|
|
@@ -249,7 +248,7 @@ const ColorPicker_ColorPickerSwatchGroup = /*#__PURE__*/ forwardRef(function({ c
|
|
|
249
248
|
return /*#__PURE__*/ jsx(ColorPicker.SwatchGroup, {
|
|
250
249
|
ref: ref,
|
|
251
250
|
"data-slot": "color-picker-swatch-group",
|
|
252
|
-
className: clsx(ColorPicker_module.swatchGroup,
|
|
251
|
+
className: clsx(ColorPicker_module.swatchGroup, className),
|
|
253
252
|
...props
|
|
254
253
|
});
|
|
255
254
|
});
|
|
@@ -257,7 +256,7 @@ const ColorPicker_ColorPickerSwatchTrigger = /*#__PURE__*/ forwardRef(function({
|
|
|
257
256
|
return /*#__PURE__*/ jsx(ColorPicker.SwatchTrigger, {
|
|
258
257
|
ref: ref,
|
|
259
258
|
"data-slot": "color-picker-swatch-trigger",
|
|
260
|
-
className: clsx(ColorPicker_module.swatchTrigger,
|
|
259
|
+
className: clsx(ColorPicker_module.swatchTrigger, className),
|
|
261
260
|
value: value,
|
|
262
261
|
...props,
|
|
263
262
|
children: children ?? /*#__PURE__*/ jsx(ColorPicker.Swatch, {
|
|
@@ -276,7 +275,7 @@ const ColorPicker_ColorPickerSwatch = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
276
275
|
return /*#__PURE__*/ jsx(ColorPicker.Swatch, {
|
|
277
276
|
ref: ref,
|
|
278
277
|
"data-slot": "color-picker-swatch",
|
|
279
|
-
className: clsx(ColorPicker_module.swatch,
|
|
278
|
+
className: clsx(ColorPicker_module.swatch, className),
|
|
280
279
|
...props
|
|
281
280
|
});
|
|
282
281
|
});
|
|
@@ -284,7 +283,7 @@ const ColorPicker_ColorPickerSwatchIndicator = /*#__PURE__*/ forwardRef(function
|
|
|
284
283
|
return /*#__PURE__*/ jsx(ColorPicker.SwatchIndicator, {
|
|
285
284
|
ref: ref,
|
|
286
285
|
"data-slot": "color-picker-swatch-indicator",
|
|
287
|
-
className: clsx(ColorPicker_module.swatchIndicator,
|
|
286
|
+
className: clsx(ColorPicker_module.swatchIndicator, className),
|
|
288
287
|
...props,
|
|
289
288
|
children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
|
|
290
289
|
});
|
|
@@ -293,7 +292,7 @@ const ColorPicker_ColorPickerTransparencyGrid = /*#__PURE__*/ forwardRef(functio
|
|
|
293
292
|
return /*#__PURE__*/ jsx(ColorPicker.TransparencyGrid, {
|
|
294
293
|
ref: ref,
|
|
295
294
|
"data-slot": "color-picker-transparency-grid",
|
|
296
|
-
className: clsx(ColorPicker_module.transparencyGrid,
|
|
295
|
+
className: clsx(ColorPicker_module.transparencyGrid, className),
|
|
297
296
|
...props
|
|
298
297
|
});
|
|
299
298
|
});
|
|
@@ -301,7 +300,7 @@ const ColorPicker_ColorPickerValueSwatch = /*#__PURE__*/ forwardRef(function({ c
|
|
|
301
300
|
return /*#__PURE__*/ jsx(ColorPicker.ValueSwatch, {
|
|
302
301
|
ref: ref,
|
|
303
302
|
"data-slot": "color-picker-value-swatch",
|
|
304
|
-
className: clsx(ColorPicker_module.valueSwatch,
|
|
303
|
+
className: clsx(ColorPicker_module.valueSwatch, className),
|
|
305
304
|
...props
|
|
306
305
|
});
|
|
307
306
|
});
|
|
@@ -309,7 +308,7 @@ const ColorPicker_ColorPickerValueText = /*#__PURE__*/ forwardRef(function({ cla
|
|
|
309
308
|
return /*#__PURE__*/ jsx(ColorPicker.ValueText, {
|
|
310
309
|
ref: ref,
|
|
311
310
|
"data-slot": "color-picker-value-text",
|
|
312
|
-
className: clsx(ColorPicker_module.valueText,
|
|
311
|
+
className: clsx(ColorPicker_module.valueText, className),
|
|
313
312
|
...props
|
|
314
313
|
});
|
|
315
314
|
});
|
|
@@ -317,27 +316,15 @@ const ColorPicker_ColorPickerView = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
317
316
|
return /*#__PURE__*/ jsx(ColorPicker.View, {
|
|
318
317
|
ref: ref,
|
|
319
318
|
"data-slot": "color-picker-view",
|
|
320
|
-
className: clsx(ColorPicker_module.view,
|
|
319
|
+
className: clsx(ColorPicker_module.view, className),
|
|
321
320
|
...props
|
|
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";
|
|
@@ -16,7 +15,7 @@ const Combobox_ComboboxRoot = /*#__PURE__*/ forwardRef(function({ className, laz
|
|
|
16
15
|
children: /*#__PURE__*/ jsx(Combobox.Root, {
|
|
17
16
|
ref: ref,
|
|
18
17
|
"data-slot": "combobox-root",
|
|
19
|
-
className: clsx(Combobox_module.root,
|
|
18
|
+
className: clsx(Combobox_module.root, className),
|
|
20
19
|
lazyMount: lazyMount,
|
|
21
20
|
unmountOnExit: unmountOnExit,
|
|
22
21
|
...props
|
|
@@ -30,7 +29,7 @@ const Combobox_ComboboxRootProvider = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
30
29
|
children: /*#__PURE__*/ jsx(Combobox.RootProvider, {
|
|
31
30
|
ref: ref,
|
|
32
31
|
"data-slot": "combobox-root-provider",
|
|
33
|
-
className: clsx(Combobox_module.root,
|
|
32
|
+
className: clsx(Combobox_module.root, className),
|
|
34
33
|
lazyMount: lazyMount,
|
|
35
34
|
unmountOnExit: unmountOnExit,
|
|
36
35
|
...props
|
|
@@ -41,7 +40,7 @@ const Combobox_ComboboxLabel = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
41
40
|
return /*#__PURE__*/ jsx(Combobox.Label, {
|
|
42
41
|
ref: ref,
|
|
43
42
|
"data-slot": "combobox-label",
|
|
44
|
-
className: clsx(Combobox_module.label,
|
|
43
|
+
className: clsx(Combobox_module.label, className),
|
|
45
44
|
...props
|
|
46
45
|
});
|
|
47
46
|
});
|
|
@@ -49,7 +48,7 @@ const Combobox_ComboboxControl = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
49
48
|
return /*#__PURE__*/ jsx(Combobox.Control, {
|
|
50
49
|
ref: ref,
|
|
51
50
|
"data-slot": "combobox-control",
|
|
52
|
-
className: clsx(Combobox_module.control,
|
|
51
|
+
className: clsx(Combobox_module.control, className),
|
|
53
52
|
...props
|
|
54
53
|
});
|
|
55
54
|
});
|
|
@@ -58,29 +57,21 @@ const Combobox_ComboboxInput = /*#__PURE__*/ forwardRef(function({ asChild, clas
|
|
|
58
57
|
ref: ref,
|
|
59
58
|
"data-slot": "combobox-input",
|
|
60
59
|
asChild: asChild,
|
|
61
|
-
className: clsx(!asChild && Combobox_module.input,
|
|
60
|
+
className: clsx(!asChild && Combobox_module.input, className),
|
|
62
61
|
...props
|
|
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
69
|
"data-slot": "combobox-clear-trigger",
|
|
81
70
|
className: triggerClassName,
|
|
71
|
+
"aria-label": asChild ? ariaLabel : void 0,
|
|
72
|
+
"aria-labelledby": asChild ? ariaLabelledBy : void 0,
|
|
82
73
|
...props,
|
|
83
|
-
children: /*#__PURE__*/ jsx(CloseButton.Root, {
|
|
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
|
|
@@ -91,7 +82,7 @@ const Combobox_ComboboxTrigger = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
91
82
|
return /*#__PURE__*/ jsx(Combobox.Trigger, {
|
|
92
83
|
ref: ref,
|
|
93
84
|
"data-slot": "combobox-trigger",
|
|
94
|
-
className: clsx(Combobox_module.trigger,
|
|
85
|
+
className: clsx(Combobox_module.trigger, className),
|
|
95
86
|
...props,
|
|
96
87
|
children: children ?? /*#__PURE__*/ jsx(ChevronUpDownIcon, {})
|
|
97
88
|
});
|
|
@@ -101,7 +92,7 @@ const Combobox_ComboboxPositioner = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
101
92
|
children: /*#__PURE__*/ jsx(Combobox.Positioner, {
|
|
102
93
|
ref: ref,
|
|
103
94
|
"data-slot": "combobox-positioner",
|
|
104
|
-
className: clsx(Combobox_module.positioner,
|
|
95
|
+
className: clsx(Combobox_module.positioner, className),
|
|
105
96
|
...props
|
|
106
97
|
})
|
|
107
98
|
});
|
|
@@ -110,7 +101,7 @@ const Combobox_ComboboxContent = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
110
101
|
return /*#__PURE__*/ jsx(Combobox.Content, {
|
|
111
102
|
ref: ref,
|
|
112
103
|
"data-slot": "combobox-content",
|
|
113
|
-
className: clsx(Combobox_module.content,
|
|
104
|
+
className: clsx(Combobox_module.content, className),
|
|
114
105
|
...props
|
|
115
106
|
});
|
|
116
107
|
});
|
|
@@ -118,7 +109,7 @@ const Combobox_ComboboxEmpty = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
118
109
|
return /*#__PURE__*/ jsx(Combobox.Empty, {
|
|
119
110
|
ref: ref,
|
|
120
111
|
"data-slot": "combobox-empty",
|
|
121
|
-
className: clsx(Combobox_module.empty,
|
|
112
|
+
className: clsx(Combobox_module.empty, className),
|
|
122
113
|
...props
|
|
123
114
|
});
|
|
124
115
|
});
|
|
@@ -126,7 +117,7 @@ const Combobox_ComboboxStatus = /*#__PURE__*/ forwardRef(function({ className, .
|
|
|
126
117
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
127
118
|
ref: ref,
|
|
128
119
|
"data-slot": "combobox-status",
|
|
129
|
-
className: clsx(Combobox_module.status,
|
|
120
|
+
className: clsx(Combobox_module.status, className),
|
|
130
121
|
...props
|
|
131
122
|
});
|
|
132
123
|
});
|
|
@@ -134,7 +125,7 @@ const Combobox_ComboboxList = /*#__PURE__*/ forwardRef(function({ className, ...
|
|
|
134
125
|
return /*#__PURE__*/ jsx(Combobox.List, {
|
|
135
126
|
ref: ref,
|
|
136
127
|
"data-slot": "combobox-list",
|
|
137
|
-
className: clsx(Combobox_module.list,
|
|
128
|
+
className: clsx(Combobox_module.list, className),
|
|
138
129
|
...props
|
|
139
130
|
});
|
|
140
131
|
});
|
|
@@ -142,7 +133,7 @@ const Combobox_ComboboxItemGroup = /*#__PURE__*/ forwardRef(function({ className
|
|
|
142
133
|
return /*#__PURE__*/ jsx(Combobox.ItemGroup, {
|
|
143
134
|
ref: ref,
|
|
144
135
|
"data-slot": "combobox-item-group",
|
|
145
|
-
className: clsx(Combobox_module.itemGroup,
|
|
136
|
+
className: clsx(Combobox_module.itemGroup, className),
|
|
146
137
|
...props
|
|
147
138
|
});
|
|
148
139
|
});
|
|
@@ -150,7 +141,7 @@ const Combobox_ComboboxItemGroupLabel = /*#__PURE__*/ forwardRef(function({ clas
|
|
|
150
141
|
return /*#__PURE__*/ jsx(Combobox.ItemGroupLabel, {
|
|
151
142
|
ref: ref,
|
|
152
143
|
"data-slot": "combobox-item-group-label",
|
|
153
|
-
className: clsx(Combobox_module.itemGroupLabel,
|
|
144
|
+
className: clsx(Combobox_module.itemGroupLabel, className),
|
|
154
145
|
...props
|
|
155
146
|
});
|
|
156
147
|
});
|
|
@@ -158,7 +149,7 @@ const Combobox_ComboboxItem = /*#__PURE__*/ forwardRef(function({ className, ...
|
|
|
158
149
|
return /*#__PURE__*/ jsx(Combobox.Item, {
|
|
159
150
|
ref: ref,
|
|
160
151
|
"data-slot": "combobox-item",
|
|
161
|
-
className: clsx(Combobox_module.item,
|
|
152
|
+
className: clsx(Combobox_module.item, className),
|
|
162
153
|
...props
|
|
163
154
|
});
|
|
164
155
|
});
|
|
@@ -166,7 +157,7 @@ const Combobox_ComboboxItemText = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
166
157
|
return /*#__PURE__*/ jsx(Combobox.ItemText, {
|
|
167
158
|
ref: ref,
|
|
168
159
|
"data-slot": "combobox-item-text",
|
|
169
|
-
className: clsx(Combobox_module.itemText,
|
|
160
|
+
className: clsx(Combobox_module.itemText, className),
|
|
170
161
|
...props
|
|
171
162
|
});
|
|
172
163
|
});
|
|
@@ -174,7 +165,7 @@ const Combobox_ComboboxItemIndicator = /*#__PURE__*/ forwardRef(function({ class
|
|
|
174
165
|
return /*#__PURE__*/ jsx(Combobox.ItemIndicator, {
|
|
175
166
|
ref: ref,
|
|
176
167
|
"data-slot": "combobox-item-indicator",
|
|
177
|
-
className: clsx(Combobox_module.itemIndicator,
|
|
168
|
+
className: clsx(Combobox_module.itemIndicator, className),
|
|
178
169
|
...props,
|
|
179
170
|
children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
|
|
180
171
|
});
|
|
@@ -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)) +
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import { Combobox as ComboboxPrimitive } from '@ark-ui/react/combobox';
|
|
1
|
+
import { Combobox as ComboboxPrimitive, type ComboboxRootComponent } from '@ark-ui/react/combobox';
|
|
2
2
|
import { Dialog as DialogPrimitive } from '@ark-ui/react/dialog';
|
|
3
3
|
import type { ComponentProps } from 'react';
|
|
4
|
-
import { type OverlayPortalProps } from '../../internal/overlayPortal';
|
|
5
|
-
import {
|
|
6
|
-
import { Kbd } from '../kbd';
|
|
4
|
+
import { type OverlayPortalProps } from '../../internal/overlayPortal.js';
|
|
5
|
+
import { Kbd } from '../kbd/index.js';
|
|
7
6
|
type CommandPaletteRootProps = ComponentProps<typeof DialogPrimitive.Root> & {
|
|
8
7
|
shortcut?: false | string;
|
|
9
|
-
shortcutTarget?: Document | HTMLElement | null;
|
|
10
8
|
} & OverlayPortalProps;
|
|
11
9
|
type CommandPaletteRootProviderProps = ComponentProps<typeof DialogPrimitive.RootProvider> & OverlayPortalProps;
|
|
12
|
-
|
|
13
|
-
controlProps?: ComponentProps<typeof ComboboxPrimitive.Control>;
|
|
14
|
-
clearTriggerProps?: ComponentProps<typeof CloseButton.Root>;
|
|
15
|
-
};
|
|
16
|
-
declare function CommandPaletteRoot({ shortcut, shortcutTarget, lazyMount, unmountOnExit, immediate, onExitComplete, portalled, present, portalRef, skipAnimationOnMount, children, ...props }: CommandPaletteRootProps): import("react").JSX.Element;
|
|
10
|
+
declare function CommandPaletteRoot({ shortcut, lazyMount, unmountOnExit, immediate, onExitComplete, portalled, present, portalRef, skipAnimationOnMount, children, ...props }: CommandPaletteRootProps): import("react").JSX.Element;
|
|
17
11
|
declare function CommandPaletteRootProvider({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: CommandPaletteRootProviderProps): import("react").JSX.Element;
|
|
18
12
|
declare function CommandPaletteKbd({ className, ...props }: ComponentProps<typeof Kbd.Root>): import("react").JSX.Element;
|
|
19
13
|
declare const CommandPalette: typeof CommandPaletteRoot & {
|
|
@@ -28,16 +22,11 @@ declare const CommandPalette: typeof CommandPaletteRoot & {
|
|
|
28
22
|
Description: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DescriptionProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
29
23
|
Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
24
|
Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
|
-
Combobox:
|
|
25
|
+
Combobox: ComboboxRootComponent;
|
|
32
26
|
Control: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
33
27
|
Input: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
34
|
-
Search: import("react").ForwardRefExoticComponent<Omit<
|
|
35
|
-
ClearTrigger: import("react").ForwardRefExoticComponent<Omit<
|
|
36
|
-
'data-disabled'?: string;
|
|
37
|
-
'data-part'?: string;
|
|
38
|
-
'data-scope'?: string;
|
|
39
|
-
'data-slot'?: string;
|
|
40
|
-
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
Search: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
29
|
+
ClearTrigger: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
41
30
|
List: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
42
31
|
Empty: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.EmptyProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
43
32
|
ItemGroup: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ItemGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|