@moduix/react 2.5.0 → 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 +65 -86
- 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 +10 -3
- 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 +14 -4
- 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 -3
- 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 +24 -22
- package/dist/components/sidebar/Sidebar.js +88 -75
- package/dist/components/sidebar/Sidebar.module.js +2 -3
- package/dist/components/sidebar/Sidebar_module.css +112 -178
- 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 +25 -25
- package/dist/internal/normalizeClassName.d.ts +0 -1
- package/dist/internal/normalizeClassName.js +0 -2
|
@@ -4,13 +4,12 @@ import { Clipboard, useClipboard, useClipboardContext } from "@ark-ui/react/clip
|
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { CheckIcon, CopyIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import Clipboard_module from "./Clipboard.module.js";
|
|
9
8
|
const Clipboard_ClipboardRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
10
9
|
return /*#__PURE__*/ jsx(Clipboard.Root, {
|
|
11
10
|
ref: ref,
|
|
12
11
|
"data-slot": "clipboard-root",
|
|
13
|
-
className: clsx(Clipboard_module.root,
|
|
12
|
+
className: clsx(Clipboard_module.root, className),
|
|
14
13
|
...props
|
|
15
14
|
});
|
|
16
15
|
});
|
|
@@ -18,7 +17,7 @@ const Clipboard_ClipboardRootProvider = /*#__PURE__*/ forwardRef(function({ clas
|
|
|
18
17
|
return /*#__PURE__*/ jsx(Clipboard.RootProvider, {
|
|
19
18
|
ref: ref,
|
|
20
19
|
"data-slot": "clipboard-root-provider",
|
|
21
|
-
className: clsx(Clipboard_module.root,
|
|
20
|
+
className: clsx(Clipboard_module.root, className),
|
|
22
21
|
...props
|
|
23
22
|
});
|
|
24
23
|
});
|
|
@@ -26,7 +25,7 @@ const Clipboard_ClipboardLabel = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
26
25
|
return /*#__PURE__*/ jsx(Clipboard.Label, {
|
|
27
26
|
ref: ref,
|
|
28
27
|
"data-slot": "clipboard-label",
|
|
29
|
-
className: clsx(Clipboard_module.label,
|
|
28
|
+
className: clsx(Clipboard_module.label, className),
|
|
30
29
|
...props
|
|
31
30
|
});
|
|
32
31
|
});
|
|
@@ -34,7 +33,7 @@ const Clipboard_ClipboardControl = /*#__PURE__*/ forwardRef(function({ className
|
|
|
34
33
|
return /*#__PURE__*/ jsx(Clipboard.Control, {
|
|
35
34
|
ref: ref,
|
|
36
35
|
"data-slot": "clipboard-control",
|
|
37
|
-
className: clsx(Clipboard_module.control,
|
|
36
|
+
className: clsx(Clipboard_module.control, className),
|
|
38
37
|
...props
|
|
39
38
|
});
|
|
40
39
|
});
|
|
@@ -42,7 +41,7 @@ const Clipboard_ClipboardInput = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
42
41
|
return /*#__PURE__*/ jsx(Clipboard.Input, {
|
|
43
42
|
ref: ref,
|
|
44
43
|
"data-slot": "clipboard-input",
|
|
45
|
-
className: clsx(Clipboard_module.input,
|
|
44
|
+
className: clsx(Clipboard_module.input, className),
|
|
46
45
|
...props
|
|
47
46
|
});
|
|
48
47
|
});
|
|
@@ -50,7 +49,7 @@ const Clipboard_ClipboardTrigger = /*#__PURE__*/ forwardRef(function({ className
|
|
|
50
49
|
return /*#__PURE__*/ jsx(Clipboard.Trigger, {
|
|
51
50
|
ref: ref,
|
|
52
51
|
"data-slot": "clipboard-trigger",
|
|
53
|
-
className: clsx(Clipboard_module.trigger,
|
|
52
|
+
className: clsx(Clipboard_module.trigger, className),
|
|
54
53
|
...props
|
|
55
54
|
});
|
|
56
55
|
});
|
|
@@ -58,7 +57,7 @@ const Clipboard_ClipboardIndicator = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
58
57
|
return /*#__PURE__*/ jsx(Clipboard.Indicator, {
|
|
59
58
|
ref: ref,
|
|
60
59
|
"data-slot": "clipboard-indicator",
|
|
61
|
-
className: clsx(Clipboard_module.indicator,
|
|
60
|
+
className: clsx(Clipboard_module.indicator, className),
|
|
62
61
|
copied: copied ?? /*#__PURE__*/ jsx("span", {
|
|
63
62
|
"aria-hidden": "true",
|
|
64
63
|
"data-slot": "clipboard-indicator-copied-icon",
|
|
@@ -78,7 +77,7 @@ const Clipboard_ClipboardValueText = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
78
77
|
return /*#__PURE__*/ jsx(Clipboard.ValueText, {
|
|
79
78
|
ref: ref,
|
|
80
79
|
"data-slot": "clipboard-value-text",
|
|
81
|
-
className: clsx(Clipboard_module.valueText,
|
|
80
|
+
className: clsx(Clipboard_module.valueText, className),
|
|
82
81
|
...props
|
|
83
82
|
});
|
|
84
83
|
});
|
|
@@ -3,7 +3,6 @@ import { ark } from "@ark-ui/react/factory";
|
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { CloseIcon } from "../../internal/icons/ui/index.js";
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
6
|
import CloseButton_module from "./CloseButton.module.js";
|
|
8
7
|
const CloseButton_CloseButtonRoot = /*#__PURE__*/ forwardRef(function({ asChild, className, children, disabled, onClick, onClickCapture, type, 'aria-disabled': ariaDisabled, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'data-disabled': dataDisabled, 'data-part': dataPart, 'data-scope': dataScope, 'data-slot': dataSlot, ...props }, ref) {
|
|
9
8
|
const isDisabled = disabled || true === ariaDisabled || 'true' === ariaDisabled || void 0 !== dataDisabled;
|
|
@@ -35,7 +34,7 @@ const CloseButton_CloseButtonRoot = /*#__PURE__*/ forwardRef(function({ asChild,
|
|
|
35
34
|
"data-part": dataPart ?? 'root',
|
|
36
35
|
"data-slot": dataSlot ?? 'close-button-root',
|
|
37
36
|
"data-disabled": dataDisabled ?? (isDisabled ? '' : void 0),
|
|
38
|
-
className: clsx(CloseButton_module.root,
|
|
37
|
+
className: clsx(CloseButton_module.root, className),
|
|
39
38
|
"aria-disabled": resolvedAriaDisabled,
|
|
40
39
|
"aria-label": ariaLabel ?? (null == ariaLabelledBy ? 'Close' : void 0),
|
|
41
40
|
"aria-labelledby": ariaLabelledBy,
|
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
cursor: pointer;
|
|
14
14
|
transition: background-color var(--moduix-close-button-transition, var(--moduix-transition-default)),
|
|
15
15
|
color var(--moduix-close-button-transition, var(--moduix-transition-default)),
|
|
16
|
-
opacity var(--moduix-close-button-transition, var(--moduix-transition-default))
|
|
17
|
-
translate var(--moduix-close-button-transition, var(--moduix-transition-default)),
|
|
18
|
-
scale var(--moduix-close-button-transition, var(--moduix-transition-default));
|
|
16
|
+
opacity var(--moduix-close-button-transition, var(--moduix-transition-default));
|
|
19
17
|
border: none;
|
|
20
18
|
flex-shrink: 0;
|
|
21
19
|
justify-content: center;
|
|
@@ -48,13 +46,6 @@
|
|
|
48
46
|
opacity: .94;
|
|
49
47
|
}
|
|
50
48
|
|
|
51
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
52
|
-
.root-_7JLUV:active:not([data-disabled]) {
|
|
53
|
-
translate: 0 1px;
|
|
54
|
-
scale: .985;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
49
|
.root-_7JLUV[data-disabled] {
|
|
59
50
|
cursor: default;
|
|
60
51
|
pointer-events: none;
|
|
@@ -5,13 +5,12 @@ import { ark } from "@ark-ui/react/factory";
|
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
7
|
import { ChevronDownIcon } from "../../internal/icons/ui/index.js";
|
|
8
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
9
8
|
import Collapsible_module from "./Collapsible.module.js";
|
|
10
9
|
const Collapsible_CollapsibleRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
11
10
|
return /*#__PURE__*/ jsx(Collapsible.Root, {
|
|
12
11
|
ref: ref,
|
|
13
12
|
"data-slot": "collapsible-root",
|
|
14
|
-
className: clsx(Collapsible_module.root,
|
|
13
|
+
className: clsx(Collapsible_module.root, className),
|
|
15
14
|
...props
|
|
16
15
|
});
|
|
17
16
|
});
|
|
@@ -19,7 +18,7 @@ const Collapsible_CollapsibleRootProvider = /*#__PURE__*/ forwardRef(function({
|
|
|
19
18
|
return /*#__PURE__*/ jsx(Collapsible.RootProvider, {
|
|
20
19
|
ref: ref,
|
|
21
20
|
"data-slot": "collapsible-root-provider",
|
|
22
|
-
className: clsx(Collapsible_module.root,
|
|
21
|
+
className: clsx(Collapsible_module.root, className),
|
|
23
22
|
...props
|
|
24
23
|
});
|
|
25
24
|
});
|
|
@@ -28,7 +27,7 @@ const Collapsible_CollapsibleTrigger = /*#__PURE__*/ forwardRef(function({ asChi
|
|
|
28
27
|
ref: ref,
|
|
29
28
|
asChild: asChild,
|
|
30
29
|
"data-slot": "collapsible-trigger",
|
|
31
|
-
className: clsx(!asChild && Collapsible_module.trigger,
|
|
30
|
+
className: clsx(!asChild && Collapsible_module.trigger, className),
|
|
32
31
|
...props
|
|
33
32
|
});
|
|
34
33
|
});
|
|
@@ -36,7 +35,7 @@ const Collapsible_CollapsibleIndicator = /*#__PURE__*/ forwardRef(function({ cla
|
|
|
36
35
|
return /*#__PURE__*/ jsx(Collapsible.Indicator, {
|
|
37
36
|
ref: ref,
|
|
38
37
|
"data-slot": "collapsible-indicator",
|
|
39
|
-
className: clsx(Collapsible_module.indicator,
|
|
38
|
+
className: clsx(Collapsible_module.indicator, className),
|
|
40
39
|
...props,
|
|
41
40
|
children: children ?? /*#__PURE__*/ jsx(ChevronDownIcon, {})
|
|
42
41
|
});
|
|
@@ -45,17 +44,15 @@ const Collapsible_CollapsibleContent = /*#__PURE__*/ forwardRef(function({ class
|
|
|
45
44
|
return /*#__PURE__*/ jsx(Collapsible.Content, {
|
|
46
45
|
ref: ref,
|
|
47
46
|
"data-slot": "collapsible-content",
|
|
48
|
-
className: clsx(Collapsible_module.content,
|
|
47
|
+
className: clsx(Collapsible_module.content, className),
|
|
49
48
|
...props
|
|
50
49
|
});
|
|
51
50
|
});
|
|
52
51
|
const Collapsible_CollapsibleBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
53
52
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
54
53
|
ref: ref,
|
|
55
|
-
"data-scope": "collapsible",
|
|
56
|
-
"data-part": "body",
|
|
57
54
|
"data-slot": "collapsible-body",
|
|
58
|
-
className: clsx(Collapsible_module.body,
|
|
55
|
+
className: clsx(Collapsible_module.body, className),
|
|
59
56
|
...props
|
|
60
57
|
});
|
|
61
58
|
});
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
border-radius: var(--moduix-collapsible-trigger-radius, 0);
|
|
46
46
|
width: 100%;
|
|
47
47
|
padding-block: var(--moduix-collapsible-trigger-padding-y, var(--moduix-spacing-1));
|
|
48
|
-
padding-inline: var(--moduix-collapsible-trigger-padding-x,
|
|
48
|
+
padding-inline: var(--moduix-collapsible-trigger-padding-x, 0);
|
|
49
49
|
background-color: var(--moduix-collapsible-trigger-bg, transparent);
|
|
50
50
|
color: var(--moduix-collapsible-trigger-color, var(--moduix-collapsible-color, var(--moduix-color-foreground)));
|
|
51
51
|
font: inherit;
|
|
@@ -113,7 +113,6 @@
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
.content-dHAw0w {
|
|
116
|
-
--collapsed-height: 0;
|
|
117
116
|
box-sizing: border-box;
|
|
118
117
|
color: var(--moduix-collapsible-content-color, var(--moduix-color-muted-foreground));
|
|
119
118
|
font-size: var(--moduix-collapsible-content-font-size, var(--moduix-text-sm));
|
|
@@ -142,7 +141,7 @@
|
|
|
142
141
|
.body-TpC0eh {
|
|
143
142
|
gap: var(--moduix-collapsible-body-gap, var(--moduix-spacing-2));
|
|
144
143
|
min-width: 0;
|
|
145
|
-
padding: var(--moduix-collapsible-body-padding,
|
|
144
|
+
padding: var(--moduix-collapsible-body-padding, 0);
|
|
146
145
|
display: grid;
|
|
147
146
|
}
|
|
148
147
|
|
|
@@ -153,7 +152,6 @@
|
|
|
153
152
|
|
|
154
153
|
.content-dHAw0w[data-state] {
|
|
155
154
|
animation-duration: 1ms;
|
|
156
|
-
animation-delay: 0s;
|
|
157
155
|
}
|
|
158
156
|
}
|
|
159
157
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ColorPicker as ColorPickerPrimitive, parseColor, useColorPicker, useColorPickerContext } from '@ark-ui/react/color-picker';
|
|
2
|
-
import type { ComponentProps
|
|
3
|
-
import { type OverlayPortalProps } from '../../internal/overlayPortal';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
import { type OverlayPortalProps } from '../../internal/overlayPortal.js';
|
|
4
4
|
type ColorPickerRootProps = ComponentProps<typeof ColorPickerPrimitive.Root> & OverlayPortalProps;
|
|
5
5
|
type ColorPickerRootProviderProps = ComponentProps<typeof ColorPickerPrimitive.RootProvider> & OverlayPortalProps;
|
|
6
6
|
declare const ColorPicker: import("react").ForwardRefExoticComponent<Omit<ColorPickerRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
7
7
|
Root: import("react").ForwardRefExoticComponent<Omit<ColorPickerRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
8
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<ColorPickerRootProviderProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
Context: (props: ColorPickerPrimitive.ContextProps) => ReactNode;
|
|
9
|
+
Context: (props: ColorPickerPrimitive.ContextProps) => import("react").ReactNode;
|
|
10
|
+
HiddenInput: import("react").ForwardRefExoticComponent<ColorPickerPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
10
11
|
Label: import("react").ForwardRefExoticComponent<Omit<ColorPickerPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
11
12
|
Control: import("react").ForwardRefExoticComponent<Omit<ColorPickerPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
13
|
Trigger: import("react").ForwardRefExoticComponent<Omit<ColorPickerPrimitive.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -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>>;
|