@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
|
@@ -3,7 +3,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { ark } from "@ark-ui/react/factory";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { createContext, forwardRef, useContext } from "react";
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
6
|
import { Button } from "../button/index.js";
|
|
8
7
|
import { Input } from "../input/index.js";
|
|
9
8
|
import InputGroup_module from "./InputGroup.module.js";
|
|
@@ -18,7 +17,7 @@ const InputGroup_InputGroupRoot = /*#__PURE__*/ forwardRef(function({ children,
|
|
|
18
17
|
"data-part": "root",
|
|
19
18
|
"data-slot": "input-group-root",
|
|
20
19
|
"data-size": size,
|
|
21
|
-
className: clsx(InputGroup_module.root,
|
|
20
|
+
className: clsx(InputGroup_module.root, className),
|
|
22
21
|
children: children
|
|
23
22
|
})
|
|
24
23
|
});
|
|
@@ -27,7 +26,7 @@ const InputGroup_InputGroupInput = /*#__PURE__*/ forwardRef(function({ className
|
|
|
27
26
|
const groupSize = useContext(InputGroupSizeContext);
|
|
28
27
|
return /*#__PURE__*/ jsx(Input, {
|
|
29
28
|
ref: ref,
|
|
30
|
-
className: clsx(InputGroup_module.input,
|
|
29
|
+
className: clsx(InputGroup_module.input, className),
|
|
31
30
|
size: size ?? groupSize,
|
|
32
31
|
...props
|
|
33
32
|
});
|
|
@@ -39,7 +38,7 @@ const InputGroup_InputGroupAddon = /*#__PURE__*/ forwardRef(function({ className
|
|
|
39
38
|
"data-scope": "input-group",
|
|
40
39
|
"data-part": "addon",
|
|
41
40
|
"data-slot": "input-group-addon",
|
|
42
|
-
className: clsx(InputGroup_module.addon,
|
|
41
|
+
className: clsx(InputGroup_module.addon, className)
|
|
43
42
|
});
|
|
44
43
|
});
|
|
45
44
|
const InputGroup_InputGroupText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -49,7 +48,7 @@ const InputGroup_InputGroupText = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
49
48
|
"data-scope": "input-group",
|
|
50
49
|
"data-part": "text",
|
|
51
50
|
"data-slot": "input-group-text",
|
|
52
|
-
className: clsx(InputGroup_module.text,
|
|
51
|
+
className: clsx(InputGroup_module.text, className)
|
|
53
52
|
});
|
|
54
53
|
});
|
|
55
54
|
const InputGroup_InputGroupButton = /*#__PURE__*/ forwardRef(function({ className, variant = 'ghost', size, type = 'button', ...props }, ref) {
|
|
@@ -58,7 +57,7 @@ const InputGroup_InputGroupButton = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
58
57
|
ref: ref,
|
|
59
58
|
...props,
|
|
60
59
|
"data-slot": "input-group-button",
|
|
61
|
-
className: clsx(InputGroup_module.button,
|
|
60
|
+
className: clsx(InputGroup_module.button, className),
|
|
62
61
|
variant: variant,
|
|
63
62
|
size: size ?? groupSize,
|
|
64
63
|
type: type
|
|
@@ -4,12 +4,11 @@ import { JsonTreeView, useJsonTreeView } from "@ark-ui/react/json-tree-view";
|
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { ChevronRightIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import JsonTreeView_module from "./JsonTreeView.module.js";
|
|
9
8
|
const JsonTreeView_JsonTreeViewRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
10
9
|
return /*#__PURE__*/ jsx(JsonTreeView.Root, {
|
|
11
10
|
ref: ref,
|
|
12
|
-
className: clsx(JsonTreeView_module.root,
|
|
11
|
+
className: clsx(JsonTreeView_module.root, className),
|
|
13
12
|
...props,
|
|
14
13
|
"data-slot": "json-tree-view-root"
|
|
15
14
|
});
|
|
@@ -17,7 +16,7 @@ const JsonTreeView_JsonTreeViewRoot = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
17
16
|
const JsonTreeView_JsonTreeViewRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
18
17
|
return /*#__PURE__*/ jsx(JsonTreeView.RootProvider, {
|
|
19
18
|
ref: ref,
|
|
20
|
-
className: clsx(JsonTreeView_module.root,
|
|
19
|
+
className: clsx(JsonTreeView_module.root, className),
|
|
21
20
|
...props,
|
|
22
21
|
"data-slot": "json-tree-view-root-provider"
|
|
23
22
|
});
|
|
@@ -28,7 +27,7 @@ const JsonTreeView_JsonTreeViewTree = /*#__PURE__*/ forwardRef(function({ arrow,
|
|
|
28
27
|
arrow: arrow ?? /*#__PURE__*/ jsx(ChevronRightIcon, {
|
|
29
28
|
"aria-hidden": "true"
|
|
30
29
|
}),
|
|
31
|
-
className: clsx(JsonTreeView_module.tree,
|
|
30
|
+
className: clsx(JsonTreeView_module.tree, className),
|
|
32
31
|
...props,
|
|
33
32
|
"data-slot": "json-tree-view-tree"
|
|
34
33
|
});
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"]) {
|
|
26
|
+
z-index: 0;
|
|
26
27
|
box-sizing: border-box;
|
|
27
28
|
width: 100%;
|
|
28
29
|
min-width: 0;
|
|
@@ -34,28 +35,43 @@
|
|
|
34
35
|
color: inherit;
|
|
35
36
|
cursor: pointer;
|
|
36
37
|
font: inherit;
|
|
37
|
-
outline: var(--moduix-border-width-sm) solid transparent;
|
|
38
|
-
outline-offset: calc(var(--moduix-border-width-sm) * -1);
|
|
39
38
|
text-align: start;
|
|
40
|
-
transition:
|
|
41
|
-
|
|
39
|
+
transition: color var(--moduix-transition-default),
|
|
40
|
+
opacity var(--moduix-transition-default);
|
|
42
41
|
-webkit-user-select: none;
|
|
43
42
|
user-select: none;
|
|
44
43
|
background-color: #0000;
|
|
45
44
|
border: 0;
|
|
46
|
-
|
|
45
|
+
outline: none;
|
|
46
|
+
padding-inline-start: calc(var(--moduix-spacing-1) + var(--moduix-spacing-1) + ((var(--depth, 1) - 1) * 1rem));
|
|
47
47
|
padding-inline-end: var(--moduix-spacing-1);
|
|
48
48
|
display: flex;
|
|
49
|
+
position: relative;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"]):before {
|
|
53
|
+
z-index: -1;
|
|
54
|
+
border-radius: inherit;
|
|
55
|
+
box-shadow: inset 0 0 0 var(--moduix-border-width-sm) transparent;
|
|
56
|
+
content: "";
|
|
57
|
+
pointer-events: none;
|
|
58
|
+
transition: background-color var(--moduix-transition-default),
|
|
59
|
+
box-shadow var(--moduix-transition-default);
|
|
60
|
+
background-color: #0000;
|
|
61
|
+
position: absolute;
|
|
62
|
+
inset-block: 0;
|
|
63
|
+
inset-inline-start: calc(var(--moduix-spacing-1) + ((var(--depth, 1) - 1) * 1rem));
|
|
64
|
+
inset-inline-end: 0;
|
|
49
65
|
}
|
|
50
66
|
|
|
51
|
-
.root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"]):not([data-disabled]):hover, .root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"])[data-selected] {
|
|
67
|
+
:is(.root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"]):not([data-disabled]):hover, .root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"])[data-selected]):before {
|
|
52
68
|
background-color: color-mix(in oklab,
|
|
53
|
-
|
|
54
|
-
|
|
69
|
+
var(--moduix-color-accent) 72%,
|
|
70
|
+
var(--moduix-color-background));
|
|
55
71
|
}
|
|
56
72
|
|
|
57
|
-
.root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"]):focus-visible, .root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"])[data-focus] {
|
|
58
|
-
|
|
73
|
+
:is(.root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"]):focus-visible, .root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"])[data-focus]):before {
|
|
74
|
+
box-shadow: inset 0 0 0 var(--moduix-border-width-sm) var(--moduix-color-ring);
|
|
59
75
|
}
|
|
60
76
|
|
|
61
77
|
.root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"])[data-disabled] {
|
|
@@ -2,27 +2,26 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ark } from "@ark-ui/react/factory";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
6
5
|
import Kbd_module from "./Kbd.module.js";
|
|
7
6
|
const Kbd_KbdRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
8
7
|
return /*#__PURE__*/ jsx(ark.kbd, {
|
|
9
8
|
ref: ref,
|
|
9
|
+
...props,
|
|
10
10
|
"data-scope": "kbd",
|
|
11
11
|
"data-part": "root",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
...props
|
|
12
|
+
className: clsx(Kbd_module.root, className),
|
|
13
|
+
"data-slot": "kbd-root"
|
|
15
14
|
});
|
|
16
15
|
});
|
|
17
16
|
const Kbd_KbdGroupPart = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
18
17
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
19
18
|
ref: ref,
|
|
19
|
+
...props,
|
|
20
20
|
role: "group",
|
|
21
21
|
"data-scope": "kbd",
|
|
22
22
|
"data-part": "group",
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
...props
|
|
23
|
+
className: clsx(Kbd_module.group, className),
|
|
24
|
+
"data-slot": "kbd-group"
|
|
26
25
|
});
|
|
27
26
|
});
|
|
28
27
|
const Kbd = Object.assign(Kbd_KbdRoot, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dialog as DialogPrimitive, useDialog, useDialogContext } from '@ark-ui/react/dialog';
|
|
2
2
|
import type { ComponentProps, RefObject } from 'react';
|
|
3
|
-
import { type OverlayPortalProps } from '../../internal/overlayPortal';
|
|
3
|
+
import { type OverlayPortalProps } from '../../internal/overlayPortal.js';
|
|
4
4
|
type LightboxImageSelectDetails = {
|
|
5
5
|
alt?: string;
|
|
6
6
|
element: HTMLImageElement;
|
|
@@ -4,7 +4,6 @@ import { Dialog, useDialog, useDialogContext } from "@ark-ui/react/dialog";
|
|
|
4
4
|
import { ark } from "@ark-ui/react/factory";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { forwardRef, useEffect } from "react";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
|
|
9
8
|
import { CloseButton } from "../close-button/index.js";
|
|
10
9
|
import Lightbox_module from "./Lightbox.module.js";
|
|
@@ -53,18 +52,18 @@ function LightboxRootProvider({ lazyMount = true, portalled, portalRef, unmountO
|
|
|
53
52
|
const Lightbox_LightboxTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
54
53
|
return /*#__PURE__*/ jsx(Dialog.Trigger, {
|
|
55
54
|
ref: ref,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
className: clsx(Lightbox_module.trigger, className),
|
|
56
|
+
...props,
|
|
57
|
+
"data-slot": "lightbox-trigger"
|
|
59
58
|
});
|
|
60
59
|
});
|
|
61
60
|
const Lightbox_LightboxBackdrop = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
62
61
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
63
62
|
children: /*#__PURE__*/ jsx(Dialog.Backdrop, {
|
|
64
63
|
ref: ref,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
className: clsx(Lightbox_module.backdrop, className),
|
|
65
|
+
...props,
|
|
66
|
+
"data-slot": "lightbox-backdrop"
|
|
68
67
|
})
|
|
69
68
|
});
|
|
70
69
|
});
|
|
@@ -72,42 +71,42 @@ const Lightbox_LightboxPositioner = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
72
71
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
73
72
|
children: /*#__PURE__*/ jsx(Dialog.Positioner, {
|
|
74
73
|
ref: ref,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
className: clsx(Lightbox_module.positioner, className),
|
|
75
|
+
...props,
|
|
76
|
+
"data-slot": "lightbox-positioner"
|
|
78
77
|
})
|
|
79
78
|
});
|
|
80
79
|
});
|
|
81
80
|
const Lightbox_LightboxContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
82
81
|
return /*#__PURE__*/ jsx(Dialog.Content, {
|
|
83
82
|
ref: ref,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
className: clsx(Lightbox_module.content, className),
|
|
84
|
+
...props,
|
|
85
|
+
"data-slot": "lightbox-content"
|
|
87
86
|
});
|
|
88
87
|
});
|
|
89
88
|
const Lightbox_LightboxTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
90
89
|
return /*#__PURE__*/ jsx(Dialog.Title, {
|
|
91
90
|
ref: ref,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
className: clsx(Lightbox_module.title, className),
|
|
92
|
+
...props,
|
|
93
|
+
"data-slot": "lightbox-title"
|
|
95
94
|
});
|
|
96
95
|
});
|
|
97
96
|
const Lightbox_LightboxDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
98
97
|
return /*#__PURE__*/ jsx(Dialog.Description, {
|
|
99
98
|
ref: ref,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
className: clsx(Lightbox_module.description, className),
|
|
100
|
+
...props,
|
|
101
|
+
"data-slot": "lightbox-description"
|
|
103
102
|
});
|
|
104
103
|
});
|
|
105
104
|
const Lightbox_LightboxCloseTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
106
105
|
return /*#__PURE__*/ jsx(Dialog.CloseTrigger, {
|
|
107
106
|
ref: ref,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
className: className,
|
|
108
|
+
...props,
|
|
109
|
+
"data-slot": "lightbox-close-trigger"
|
|
111
110
|
});
|
|
112
111
|
});
|
|
113
112
|
const Lightbox_LightboxCloseIcon = /*#__PURE__*/ forwardRef(function({ className, children, 'aria-label': ariaLabel = DEFAULT_CLOSE_LABEL, ...props }, ref) {
|
|
@@ -120,7 +119,7 @@ const Lightbox_LightboxCloseIcon = /*#__PURE__*/ forwardRef(function({ className
|
|
|
120
119
|
"data-slot": "lightbox-close-icon",
|
|
121
120
|
"data-state": dialog.open ? 'open' : 'closed',
|
|
122
121
|
"aria-label": ariaLabel,
|
|
123
|
-
className: clsx(Lightbox_module.closeIcon,
|
|
122
|
+
className: clsx(Lightbox_module.closeIcon, className),
|
|
124
123
|
children: children
|
|
125
124
|
})
|
|
126
125
|
});
|
|
@@ -133,43 +132,43 @@ const Lightbox_LightboxImage = /*#__PURE__*/ forwardRef(function({ className, cl
|
|
|
133
132
|
};
|
|
134
133
|
return /*#__PURE__*/ jsx("img", {
|
|
135
134
|
ref: ref,
|
|
136
|
-
|
|
137
|
-
"data-close-on-click": closeOnClick ? '' : void 0,
|
|
138
|
-
className: clsx(Lightbox_module.image, normalizeClassName(className)),
|
|
135
|
+
className: clsx(Lightbox_module.image, className),
|
|
139
136
|
onClick: handleClick,
|
|
140
|
-
...props
|
|
137
|
+
...props,
|
|
138
|
+
"data-close-on-click": closeOnClick ? '' : void 0,
|
|
139
|
+
"data-slot": "lightbox-image"
|
|
141
140
|
});
|
|
142
141
|
});
|
|
143
142
|
const Lightbox_LightboxGallery = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
144
143
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
145
144
|
ref: ref,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
145
|
+
className: clsx(Lightbox_module.gallery, className),
|
|
146
|
+
...props,
|
|
147
|
+
"data-slot": "lightbox-gallery"
|
|
149
148
|
});
|
|
150
149
|
});
|
|
151
150
|
const Lightbox_LightboxHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
152
151
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
153
152
|
ref: ref,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
className: clsx(Lightbox_module.header, className),
|
|
154
|
+
...props,
|
|
155
|
+
"data-slot": "lightbox-header"
|
|
157
156
|
});
|
|
158
157
|
});
|
|
159
158
|
const Lightbox_LightboxBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
160
159
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
161
160
|
ref: ref,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
161
|
+
className: clsx(Lightbox_module.body, className),
|
|
162
|
+
...props,
|
|
163
|
+
"data-slot": "lightbox-body"
|
|
165
164
|
});
|
|
166
165
|
});
|
|
167
166
|
const Lightbox_LightboxFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
168
167
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
169
168
|
ref: ref,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
className: clsx(Lightbox_module.footer, className),
|
|
170
|
+
...props,
|
|
171
|
+
"data-slot": "lightbox-footer"
|
|
173
172
|
});
|
|
174
173
|
});
|
|
175
174
|
function LightboxBind({ onImageSelect, selector, rootRef, rootSelector }) {
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
.content-N4c6Zm {
|
|
45
45
|
box-sizing: border-box;
|
|
46
46
|
gap: var(--moduix-lightbox-content-gap, var(--moduix-spacing-3));
|
|
47
|
-
width: -moz-fit-content;
|
|
48
47
|
width: fit-content;
|
|
49
48
|
max-width: min(var(--moduix-lightbox-content-max-width, 80vw),
|
|
50
49
|
calc(100vw - var(--moduix-lightbox-positioner-padding, var(--moduix-spacing-4)) * 2));
|
|
@@ -153,7 +152,6 @@
|
|
|
153
152
|
|
|
154
153
|
.gallery-d_JY9F [data-slot="carousel-indicator-group"] {
|
|
155
154
|
flex-wrap: wrap;
|
|
156
|
-
width: -moz-fit-content;
|
|
157
155
|
width: fit-content;
|
|
158
156
|
max-width: 100%;
|
|
159
157
|
margin-inline: auto;
|
|
@@ -2,7 +2,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ark } from "@ark-ui/react/factory";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
6
5
|
import List_module from "./List.module.js";
|
|
7
6
|
const List_ListRoot = /*#__PURE__*/ forwardRef(function({ as, asChild, className, gap = 'sm', marker, role, size = 'md', tone = 'default', ...props }, ref) {
|
|
8
7
|
const markerValue = marker ?? 'auto';
|
|
@@ -17,7 +16,7 @@ const List_ListRoot = /*#__PURE__*/ forwardRef(function({ as, asChild, className
|
|
|
17
16
|
'data-marker': markerValue,
|
|
18
17
|
'data-size': size,
|
|
19
18
|
'data-tone': tone,
|
|
20
|
-
className: clsx(List_module.root,
|
|
19
|
+
className: clsx(List_module.root, className)
|
|
21
20
|
};
|
|
22
21
|
if ('ol' === as) return /*#__PURE__*/ jsx(ark.ol, {
|
|
23
22
|
ref: ref,
|
|
@@ -36,7 +35,7 @@ const List_ListItem = /*#__PURE__*/ forwardRef(function({ asChild, className, ..
|
|
|
36
35
|
"data-scope": "list",
|
|
37
36
|
"data-part": "item",
|
|
38
37
|
"data-slot": "list-item",
|
|
39
|
-
className:
|
|
38
|
+
className: className
|
|
40
39
|
});
|
|
41
40
|
});
|
|
42
41
|
const List = Object.assign(List_ListRoot, {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Listbox as ListboxPrimitive, useListbox, useListboxContext, useListboxItemContext } from '@ark-ui/react/listbox';
|
|
1
|
+
import { Listbox as ListboxPrimitive, type ListboxRootComponent, type ListboxRootProviderComponent, useListbox, useListboxContext, useListboxItemContext } from '@ark-ui/react/listbox';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
3
|
declare function ListboxFilter({ className, children, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
4
|
-
declare const Listbox:
|
|
5
|
-
Root:
|
|
6
|
-
RootProvider:
|
|
4
|
+
declare const Listbox: ListboxRootComponent & {
|
|
5
|
+
Root: ListboxRootComponent;
|
|
6
|
+
RootProvider: ListboxRootProviderComponent;
|
|
7
7
|
Label: import("react").ForwardRefExoticComponent<Omit<ListboxPrimitive.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
8
|
Input: import("react").ForwardRefExoticComponent<Omit<ListboxPrimitive.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
9
9
|
Filter: typeof ListboxFilter;
|
|
10
|
-
ClearTrigger: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
ClearTrigger: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
Content: import("react").ForwardRefExoticComponent<Omit<ListboxPrimitive.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
Empty: import("react").ForwardRefExoticComponent<Omit<ListboxPrimitive.EmptyProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
13
|
ItemGroup: import("react").ForwardRefExoticComponent<Omit<ListboxPrimitive.ItemGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -5,46 +5,45 @@ import { Listbox, useListbox, useListboxContext, useListboxItemContext } from "@
|
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
7
|
import { CheckIcon, SearchIcon } from "../../internal/icons/ui/index.js";
|
|
8
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
9
8
|
import { CloseButton } from "../close-button/index.js";
|
|
10
9
|
import Listbox_module from "./Listbox.module.js";
|
|
11
10
|
const Listbox_ListboxRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
12
11
|
return /*#__PURE__*/ jsx(Listbox.Root, {
|
|
13
12
|
ref: ref,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
className: clsx(Listbox_module.root, className),
|
|
14
|
+
...props,
|
|
15
|
+
"data-slot": "listbox-root"
|
|
17
16
|
});
|
|
18
17
|
});
|
|
19
18
|
const Listbox_ListboxRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
20
19
|
return /*#__PURE__*/ jsx(Listbox.RootProvider, {
|
|
21
20
|
ref: ref,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
className: clsx(Listbox_module.root, className),
|
|
22
|
+
...props,
|
|
23
|
+
"data-slot": "listbox-root-provider"
|
|
25
24
|
});
|
|
26
25
|
});
|
|
27
26
|
const Listbox_ListboxLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
28
27
|
return /*#__PURE__*/ jsx(Listbox.Label, {
|
|
29
28
|
ref: ref,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
className: clsx(Listbox_module.label, className),
|
|
30
|
+
...props,
|
|
31
|
+
"data-slot": "listbox-label"
|
|
33
32
|
});
|
|
34
33
|
});
|
|
35
34
|
const Listbox_ListboxInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
36
35
|
return /*#__PURE__*/ jsx(Listbox.Input, {
|
|
37
36
|
ref: ref,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
className: clsx(Listbox_module.input, className),
|
|
38
|
+
...props,
|
|
39
|
+
"data-slot": "listbox-input"
|
|
41
40
|
});
|
|
42
41
|
});
|
|
43
42
|
function ListboxFilter({ className, children, ...props }) {
|
|
44
43
|
return /*#__PURE__*/ jsxs("div", {
|
|
45
|
-
|
|
46
|
-
className: clsx(Listbox_module.filter, normalizeClassName(className)),
|
|
44
|
+
className: clsx(Listbox_module.filter, className),
|
|
47
45
|
...props,
|
|
46
|
+
"data-slot": "listbox-filter",
|
|
48
47
|
children: [
|
|
49
48
|
/*#__PURE__*/ jsx(SearchIcon, {
|
|
50
49
|
"data-slot": "listbox-filter-icon",
|
|
@@ -55,108 +54,103 @@ function ListboxFilter({ className, children, ...props }) {
|
|
|
55
54
|
});
|
|
56
55
|
}
|
|
57
56
|
const Listbox_ListboxClearTrigger = /*#__PURE__*/ forwardRef(function({ 'aria-label': ariaLabel = 'Clear search', className, children, type = 'button', ...props }, ref) {
|
|
58
|
-
return /*#__PURE__*/ jsx(
|
|
57
|
+
return /*#__PURE__*/ jsx(CloseButton.Root, {
|
|
59
58
|
ref: ref,
|
|
60
|
-
asChild: true,
|
|
61
|
-
"data-slot": "listbox-clear-trigger",
|
|
62
59
|
type: type,
|
|
63
60
|
"aria-label": ariaLabel,
|
|
64
|
-
className: clsx(Listbox_module.clearTrigger,
|
|
61
|
+
className: clsx(Listbox_module.clearTrigger, className),
|
|
65
62
|
...props,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
type: type,
|
|
69
|
-
children: children
|
|
70
|
-
})
|
|
63
|
+
"data-slot": "listbox-clear-trigger",
|
|
64
|
+
children: children
|
|
71
65
|
});
|
|
72
66
|
});
|
|
73
67
|
const Listbox_ListboxContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
74
68
|
return /*#__PURE__*/ jsx(Listbox.Content, {
|
|
75
69
|
ref: ref,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
70
|
+
className: clsx(Listbox_module.content, className),
|
|
71
|
+
...props,
|
|
72
|
+
"data-slot": "listbox-content"
|
|
79
73
|
});
|
|
80
74
|
});
|
|
81
75
|
const Listbox_ListboxEmpty = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
82
76
|
return /*#__PURE__*/ jsx(Listbox.Empty, {
|
|
83
77
|
ref: ref,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
78
|
+
className: clsx(Listbox_module.empty, className),
|
|
79
|
+
...props,
|
|
80
|
+
"data-slot": "listbox-empty"
|
|
87
81
|
});
|
|
88
82
|
});
|
|
89
83
|
const Listbox_ListboxItemGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
90
84
|
return /*#__PURE__*/ jsx(Listbox.ItemGroup, {
|
|
91
85
|
ref: ref,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
86
|
+
className: clsx(Listbox_module.itemGroup, className),
|
|
87
|
+
...props,
|
|
88
|
+
"data-slot": "listbox-item-group"
|
|
95
89
|
});
|
|
96
90
|
});
|
|
97
91
|
const Listbox_ListboxItemGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
98
92
|
return /*#__PURE__*/ jsx(Listbox.ItemGroupLabel, {
|
|
99
93
|
ref: ref,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
94
|
+
className: clsx(Listbox_module.itemGroupLabel, className),
|
|
95
|
+
...props,
|
|
96
|
+
"data-slot": "listbox-item-group-label"
|
|
103
97
|
});
|
|
104
98
|
});
|
|
105
99
|
const Listbox_ListboxItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
106
100
|
return /*#__PURE__*/ jsx(Listbox.Item, {
|
|
107
101
|
ref: ref,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
102
|
+
className: clsx(Listbox_module.item, className),
|
|
103
|
+
...props,
|
|
104
|
+
"data-slot": "listbox-item"
|
|
111
105
|
});
|
|
112
106
|
});
|
|
113
107
|
const Listbox_ListboxItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
114
108
|
return /*#__PURE__*/ jsx(Listbox.ItemText, {
|
|
115
109
|
ref: ref,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
110
|
+
className: clsx(Listbox_module.itemText, className),
|
|
111
|
+
...props,
|
|
112
|
+
"data-slot": "listbox-item-text"
|
|
119
113
|
});
|
|
120
114
|
});
|
|
121
115
|
const Listbox_ListboxItemIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
122
116
|
return /*#__PURE__*/ jsx(Listbox.ItemIndicator, {
|
|
123
117
|
ref: ref,
|
|
124
|
-
|
|
125
|
-
className: clsx(Listbox_module.itemIndicator, normalizeClassName(className)),
|
|
118
|
+
className: clsx(Listbox_module.itemIndicator, className),
|
|
126
119
|
...props,
|
|
120
|
+
"data-slot": "listbox-item-indicator",
|
|
127
121
|
children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
|
|
128
122
|
});
|
|
129
123
|
});
|
|
130
124
|
const Listbox_ListboxValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
131
125
|
return /*#__PURE__*/ jsx(Listbox.ValueText, {
|
|
132
126
|
ref: ref,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
127
|
+
className: clsx(Listbox_module.valueText, className),
|
|
128
|
+
...props,
|
|
129
|
+
"data-slot": "listbox-value-text"
|
|
136
130
|
});
|
|
137
131
|
});
|
|
138
132
|
const Listbox_ListboxItemTextContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
139
133
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
140
134
|
ref: ref,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
135
|
+
className: clsx(Listbox_module.itemTextContent, className),
|
|
136
|
+
...props,
|
|
137
|
+
"data-slot": "listbox-item-text-content"
|
|
144
138
|
});
|
|
145
139
|
});
|
|
146
140
|
const Listbox_ListboxItemTextIcon = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
147
141
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
148
142
|
ref: ref,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
143
|
+
className: clsx(Listbox_module.itemTextIcon, className),
|
|
144
|
+
...props,
|
|
145
|
+
"data-slot": "listbox-item-text-icon"
|
|
152
146
|
});
|
|
153
147
|
});
|
|
154
148
|
const Listbox_ListboxItemTextLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
155
149
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
156
150
|
ref: ref,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
151
|
+
className: clsx(Listbox_module.itemTextLabel, className),
|
|
152
|
+
...props,
|
|
153
|
+
"data-slot": "listbox-item-text-label"
|
|
160
154
|
});
|
|
161
155
|
});
|
|
162
156
|
const Listbox_Listbox = Object.assign(Listbox_ListboxRoot, {
|
|
@@ -12,10 +12,10 @@ const Listbox_module = {
|
|
|
12
12
|
itemGroupLabel: "itemGroupLabel-t4Kb1i",
|
|
13
13
|
item: "item-zgaYnD",
|
|
14
14
|
itemText: "itemText-UXCIHm",
|
|
15
|
+
itemTextLabel: "itemTextLabel-gzLhrK",
|
|
15
16
|
itemIndicator: "itemIndicator-YmTj_0",
|
|
16
17
|
valueText: "valueText-KG_jWI",
|
|
17
18
|
itemTextContent: "itemTextContent-fUHU0Z",
|
|
18
|
-
itemTextIcon: "itemTextIcon-A8XN6K"
|
|
19
|
-
itemTextLabel: "itemTextLabel-gzLhrK"
|
|
19
|
+
itemTextIcon: "itemTextIcon-A8XN6K"
|
|
20
20
|
};
|
|
21
21
|
export default Listbox_module;
|