@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,40 +2,35 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Checkbox, useCheckbox, useCheckboxContext, useCheckboxGroup, useCheckboxGroupContext } from "@ark-ui/react/checkbox";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
import {
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
6
|
import { CheckIcon, IndeterminateIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import Checkbox_module from "./Checkbox.module.js";
|
|
9
|
-
const Checkbox_CheckboxRoot = /*#__PURE__*/ forwardRef(function({
|
|
8
|
+
const Checkbox_CheckboxRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
10
9
|
return /*#__PURE__*/ jsx(Checkbox.Root, {
|
|
11
10
|
ref: ref,
|
|
12
|
-
|
|
13
|
-
"data-slot": "checkbox-root",
|
|
14
|
-
"data-size": size,
|
|
15
|
-
className: clsx(Checkbox_module.root, normalizeClassName(className)),
|
|
11
|
+
className: clsx(Checkbox_module.root, className),
|
|
16
12
|
...props,
|
|
17
|
-
|
|
13
|
+
"data-size": size,
|
|
14
|
+
"data-slot": "checkbox-root"
|
|
18
15
|
});
|
|
19
16
|
});
|
|
20
|
-
const Checkbox_CheckboxRootProvider = /*#__PURE__*/ forwardRef(function({
|
|
17
|
+
const Checkbox_CheckboxRootProvider = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
21
18
|
return /*#__PURE__*/ jsx(Checkbox.RootProvider, {
|
|
22
19
|
ref: ref,
|
|
23
|
-
|
|
24
|
-
"data-slot": "checkbox-root-provider",
|
|
25
|
-
"data-size": size,
|
|
26
|
-
className: clsx(Checkbox_module.root, normalizeClassName(className)),
|
|
20
|
+
className: clsx(Checkbox_module.root, className),
|
|
27
21
|
...props,
|
|
28
|
-
|
|
22
|
+
"data-size": size,
|
|
23
|
+
"data-slot": "checkbox-root-provider"
|
|
29
24
|
});
|
|
30
25
|
});
|
|
31
26
|
const Checkbox_CheckboxIndicator = /*#__PURE__*/ forwardRef(function({ className, children, indeterminate, ...props }, ref) {
|
|
32
27
|
const slot = indeterminate ? 'checkbox-indicator-indeterminate-icon' : 'checkbox-indicator-checked-icon';
|
|
33
28
|
return /*#__PURE__*/ jsx(Checkbox.Indicator, {
|
|
34
29
|
ref: ref,
|
|
35
|
-
|
|
36
|
-
className: clsx(Checkbox_module.indicator, normalizeClassName(className)),
|
|
30
|
+
className: clsx(Checkbox_module.indicator, className),
|
|
37
31
|
indeterminate: indeterminate,
|
|
38
32
|
...props,
|
|
33
|
+
"data-slot": "checkbox-indicator",
|
|
39
34
|
children: children ?? /*#__PURE__*/ jsx("span", {
|
|
40
35
|
"aria-hidden": "true",
|
|
41
36
|
"data-slot": slot,
|
|
@@ -47,9 +42,9 @@ const Checkbox_CheckboxIndicator = /*#__PURE__*/ forwardRef(function({ className
|
|
|
47
42
|
const Checkbox_CheckboxControl = /*#__PURE__*/ forwardRef(function({ children, className, ...props }, ref) {
|
|
48
43
|
return /*#__PURE__*/ jsx(Checkbox.Control, {
|
|
49
44
|
ref: ref,
|
|
50
|
-
|
|
51
|
-
className: clsx(Checkbox_module.control, normalizeClassName(className)),
|
|
45
|
+
className: clsx(Checkbox_module.control, className),
|
|
52
46
|
...props,
|
|
47
|
+
"data-slot": "checkbox-control",
|
|
53
48
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
54
49
|
children: [
|
|
55
50
|
/*#__PURE__*/ jsx(Checkbox_CheckboxIndicator, {}),
|
|
@@ -60,45 +55,27 @@ const Checkbox_CheckboxControl = /*#__PURE__*/ forwardRef(function({ children, c
|
|
|
60
55
|
})
|
|
61
56
|
});
|
|
62
57
|
});
|
|
63
|
-
function withHiddenInput(children, asChild) {
|
|
64
|
-
const hiddenInput = /*#__PURE__*/ jsx(CheckboxHiddenInput, {});
|
|
65
|
-
if (!asChild) return /*#__PURE__*/ jsxs(Fragment, {
|
|
66
|
-
children: [
|
|
67
|
-
children,
|
|
68
|
-
hiddenInput
|
|
69
|
-
]
|
|
70
|
-
});
|
|
71
|
-
const child = Children.only(children);
|
|
72
|
-
return /*#__PURE__*/ cloneElement(child, {}, child.props.children, hiddenInput);
|
|
73
|
-
}
|
|
74
|
-
function CheckboxHiddenInput() {
|
|
75
|
-
const checkbox = useCheckboxContext();
|
|
76
|
-
const readOnly = void 0 !== checkbox.getRootProps()['data-readonly'];
|
|
77
|
-
return /*#__PURE__*/ jsx(Checkbox.HiddenInput, {
|
|
78
|
-
"aria-readonly": readOnly || void 0,
|
|
79
|
-
"data-slot": "checkbox-hidden-input"
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
58
|
const Checkbox_CheckboxLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
83
59
|
return /*#__PURE__*/ jsx(Checkbox.Label, {
|
|
84
60
|
ref: ref,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
61
|
+
className: clsx(Checkbox_module.label, className),
|
|
62
|
+
...props,
|
|
63
|
+
"data-slot": "checkbox-label"
|
|
88
64
|
});
|
|
89
65
|
});
|
|
90
66
|
const Checkbox_CheckboxGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
91
67
|
return /*#__PURE__*/ jsx(Checkbox.Group, {
|
|
92
68
|
ref: ref,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
69
|
+
className: clsx(Checkbox_module.group, className),
|
|
70
|
+
...props,
|
|
71
|
+
"data-slot": "checkbox-group"
|
|
96
72
|
});
|
|
97
73
|
});
|
|
98
74
|
const Checkbox_Checkbox = Object.assign(Checkbox_CheckboxRoot, {
|
|
99
75
|
Root: Checkbox_CheckboxRoot,
|
|
100
76
|
RootProvider: Checkbox_CheckboxRootProvider,
|
|
101
77
|
Context: Checkbox.Context,
|
|
78
|
+
HiddenInput: Checkbox.HiddenInput,
|
|
102
79
|
Control: Checkbox_CheckboxControl,
|
|
103
80
|
Indicator: Checkbox_CheckboxIndicator,
|
|
104
81
|
Label: Checkbox_CheckboxLabel,
|
|
@@ -4,61 +4,59 @@ 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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
className: clsx(Clipboard_module.root, className),
|
|
12
|
+
...props,
|
|
13
|
+
"data-slot": "clipboard-root"
|
|
15
14
|
});
|
|
16
15
|
});
|
|
17
16
|
const Clipboard_ClipboardRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
18
17
|
return /*#__PURE__*/ jsx(Clipboard.RootProvider, {
|
|
19
18
|
ref: ref,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
className: clsx(Clipboard_module.root, className),
|
|
20
|
+
...props,
|
|
21
|
+
"data-slot": "clipboard-root-provider"
|
|
23
22
|
});
|
|
24
23
|
});
|
|
25
24
|
const Clipboard_ClipboardLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
26
25
|
return /*#__PURE__*/ jsx(Clipboard.Label, {
|
|
27
26
|
ref: ref,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
className: clsx(Clipboard_module.label, className),
|
|
28
|
+
...props,
|
|
29
|
+
"data-slot": "clipboard-label"
|
|
31
30
|
});
|
|
32
31
|
});
|
|
33
32
|
const Clipboard_ClipboardControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
34
33
|
return /*#__PURE__*/ jsx(Clipboard.Control, {
|
|
35
34
|
ref: ref,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
className: clsx(Clipboard_module.control, className),
|
|
36
|
+
...props,
|
|
37
|
+
"data-slot": "clipboard-control"
|
|
39
38
|
});
|
|
40
39
|
});
|
|
41
40
|
const Clipboard_ClipboardInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
42
41
|
return /*#__PURE__*/ jsx(Clipboard.Input, {
|
|
43
42
|
ref: ref,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
className: clsx(Clipboard_module.input, className),
|
|
44
|
+
...props,
|
|
45
|
+
"data-slot": "clipboard-input"
|
|
47
46
|
});
|
|
48
47
|
});
|
|
49
48
|
const Clipboard_ClipboardTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
50
49
|
return /*#__PURE__*/ jsx(Clipboard.Trigger, {
|
|
51
50
|
ref: ref,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
className: clsx(Clipboard_module.trigger, className),
|
|
52
|
+
...props,
|
|
53
|
+
"data-slot": "clipboard-trigger"
|
|
55
54
|
});
|
|
56
55
|
});
|
|
57
56
|
const Clipboard_ClipboardIndicator = /*#__PURE__*/ forwardRef(function({ className, children, copied, ...props }, ref) {
|
|
58
57
|
return /*#__PURE__*/ jsx(Clipboard.Indicator, {
|
|
59
58
|
ref: ref,
|
|
60
|
-
|
|
61
|
-
className: clsx(Clipboard_module.indicator, normalizeClassName(className)),
|
|
59
|
+
className: clsx(Clipboard_module.indicator, className),
|
|
62
60
|
copied: copied ?? /*#__PURE__*/ jsx("span", {
|
|
63
61
|
"aria-hidden": "true",
|
|
64
62
|
"data-slot": "clipboard-indicator-copied-icon",
|
|
@@ -66,6 +64,7 @@ const Clipboard_ClipboardIndicator = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
66
64
|
children: /*#__PURE__*/ jsx(CheckIcon, {})
|
|
67
65
|
}),
|
|
68
66
|
...props,
|
|
67
|
+
"data-slot": "clipboard-indicator",
|
|
69
68
|
children: children ?? /*#__PURE__*/ jsx("span", {
|
|
70
69
|
"aria-hidden": "true",
|
|
71
70
|
"data-slot": "clipboard-indicator-idle-icon",
|
|
@@ -77,17 +76,18 @@ const Clipboard_ClipboardIndicator = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
77
76
|
const Clipboard_ClipboardValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
78
77
|
return /*#__PURE__*/ jsx(Clipboard.ValueText, {
|
|
79
78
|
ref: ref,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
className: clsx(Clipboard_module.valueText, className),
|
|
80
|
+
...props,
|
|
81
|
+
"data-slot": "clipboard-value-text"
|
|
83
82
|
});
|
|
84
83
|
});
|
|
85
|
-
const Clipboard_ClipboardCopyText = /*#__PURE__*/ forwardRef(function({ copied = 'Copied', children = 'Copy', ...props }, ref) {
|
|
86
|
-
return /*#__PURE__*/ jsx(
|
|
84
|
+
const Clipboard_ClipboardCopyText = /*#__PURE__*/ forwardRef(function({ className, copied = 'Copied', children = 'Copy', ...props }, ref) {
|
|
85
|
+
return /*#__PURE__*/ jsx(Clipboard.Indicator, {
|
|
87
86
|
ref: ref,
|
|
88
|
-
|
|
87
|
+
className: clsx(Clipboard_module.indicator, className),
|
|
89
88
|
copied: copied,
|
|
90
89
|
...props,
|
|
90
|
+
"data-slot": "clipboard-copy-text",
|
|
91
91
|
children: children
|
|
92
92
|
});
|
|
93
93
|
});
|
|
@@ -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,58 +5,55 @@ 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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
className: clsx(Collapsible_module.root, className),
|
|
13
|
+
...props,
|
|
14
|
+
"data-slot": "collapsible-root"
|
|
16
15
|
});
|
|
17
16
|
});
|
|
18
17
|
const Collapsible_CollapsibleRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
19
18
|
return /*#__PURE__*/ jsx(Collapsible.RootProvider, {
|
|
20
19
|
ref: ref,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
className: clsx(Collapsible_module.root, className),
|
|
21
|
+
...props,
|
|
22
|
+
"data-slot": "collapsible-root-provider"
|
|
24
23
|
});
|
|
25
24
|
});
|
|
26
25
|
const Collapsible_CollapsibleTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
27
26
|
return /*#__PURE__*/ jsx(Collapsible.Trigger, {
|
|
28
27
|
ref: ref,
|
|
29
28
|
asChild: asChild,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
className: clsx(!asChild && Collapsible_module.trigger, className),
|
|
30
|
+
...props,
|
|
31
|
+
"data-slot": "collapsible-trigger"
|
|
33
32
|
});
|
|
34
33
|
});
|
|
35
34
|
const Collapsible_CollapsibleIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
36
35
|
return /*#__PURE__*/ jsx(Collapsible.Indicator, {
|
|
37
36
|
ref: ref,
|
|
38
|
-
|
|
39
|
-
className: clsx(Collapsible_module.indicator, normalizeClassName(className)),
|
|
37
|
+
className: clsx(Collapsible_module.indicator, className),
|
|
40
38
|
...props,
|
|
39
|
+
"data-slot": "collapsible-indicator",
|
|
41
40
|
children: children ?? /*#__PURE__*/ jsx(ChevronDownIcon, {})
|
|
42
41
|
});
|
|
43
42
|
});
|
|
44
43
|
const Collapsible_CollapsibleContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
45
44
|
return /*#__PURE__*/ jsx(Collapsible.Content, {
|
|
46
45
|
ref: ref,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
className: clsx(Collapsible_module.content, className),
|
|
47
|
+
...props,
|
|
48
|
+
"data-slot": "collapsible-content"
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
"data-slot": "collapsible-body"
|
|
58
|
-
className: clsx(Collapsible_module.body, normalizeClassName(className)),
|
|
59
|
-
...props
|
|
54
|
+
className: clsx(Collapsible_module.body, className),
|
|
55
|
+
...props,
|
|
56
|
+
"data-slot": "collapsible-body"
|
|
60
57
|
});
|
|
61
58
|
});
|
|
62
59
|
const Collapsible_Collapsible = Object.assign(Collapsible_CollapsibleRoot, {
|
|
@@ -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>>;
|