@moduix/solid 1.0.0 → 1.1.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/dist/components/accordion/Accordion.js +19 -13
- package/dist/components/accordion/Accordion.jsx +7 -7
- package/dist/components/alert/Alert.js +19 -13
- package/dist/components/alert/Alert.jsx +6 -6
- package/dist/components/angle-slider/AngleSlider.d.ts +2 -6
- package/dist/components/angle-slider/AngleSlider.js +21 -16
- package/dist/components/angle-slider/AngleSlider.jsx +9 -10
- package/dist/components/avatar/Avatar.js +10 -7
- package/dist/components/avatar/Avatar.jsx +4 -4
- package/dist/components/button/Button.js +0 -5
- package/dist/components/button/Button.jsx +1 -3
- package/dist/components/button/Button_module.css +1 -3
- package/dist/components/card/Card.js +45 -36
- package/dist/components/card/Card.jsx +9 -9
- package/dist/components/card/Card_module.css +1 -1
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +32 -23
- package/dist/components/carousel/Carousel.jsx +12 -13
- package/dist/components/checkbox/Checkbox.js +16 -14
- package/dist/components/checkbox/Checkbox.jsx +6 -6
- package/dist/components/clipboard/Clipboard.js +28 -17
- package/dist/components/clipboard/Clipboard.jsx +12 -11
- package/dist/components/collapsible/Collapsible.js +16 -11
- package/dist/components/collapsible/Collapsible.jsx +6 -6
- package/dist/components/color-picker/ColorPicker.js +69 -48
- package/dist/components/color-picker/ColorPicker.jsx +28 -28
- package/dist/components/combobox/Combobox.js +44 -31
- package/dist/components/combobox/Combobox.jsx +18 -18
- package/dist/components/command-palette/CommandPalette.js +71 -52
- package/dist/components/command-palette/CommandPalette.jsx +28 -31
- package/dist/components/container/Container_module.css +1 -1
- package/dist/components/date-input/DateInput.js +18 -12
- package/dist/components/date-input/DateInput.jsx +7 -7
- package/dist/components/date-picker/DatePicker.js +73 -51
- package/dist/components/date-picker/DatePicker.jsx +29 -29
- package/dist/components/dialog/Dialog.js +30 -20
- package/dist/components/dialog/Dialog.jsx +10 -10
- package/dist/components/drawer/Drawer.js +45 -30
- package/dist/components/drawer/Drawer.jsx +15 -15
- package/dist/components/editable/Editable.js +24 -17
- package/dist/components/editable/Editable.jsx +10 -10
- package/dist/components/file-upload/FileUpload.js +39 -28
- package/dist/components/file-upload/FileUpload.jsx +17 -17
- package/dist/components/floating-panel/FloatingPanel.js +35 -23
- package/dist/components/floating-panel/FloatingPanel.jsx +12 -12
- package/dist/components/hover-card/HoverCard.js +16 -11
- package/dist/components/hover-card/HoverCard.jsx +6 -6
- package/dist/components/image-cropper/ImageCropper.js +21 -14
- package/dist/components/image-cropper/ImageCropper.jsx +7 -7
- package/dist/components/kbd/Kbd.js +8 -8
- package/dist/components/kbd/Kbd.jsx +2 -2
- package/dist/components/lightbox/Lightbox.d.ts +1 -0
- package/dist/components/lightbox/Lightbox.js +41 -27
- package/dist/components/lightbox/Lightbox.jsx +13 -12
- package/dist/components/listbox/Listbox.js +48 -32
- package/dist/components/listbox/Listbox.jsx +17 -17
- package/dist/components/marquee/Marquee.js +18 -12
- package/dist/components/marquee/Marquee.jsx +6 -6
- package/dist/components/menu/Menu.js +64 -43
- package/dist/components/menu/Menu.jsx +24 -24
- package/dist/components/navigation-menu/NavigationMenu.js +36 -24
- package/dist/components/navigation-menu/NavigationMenu.jsx +12 -12
- package/dist/components/number-input/NumberInput.js +19 -14
- package/dist/components/number-input/NumberInput.jsx +9 -9
- package/dist/components/pagination/Pagination.js +10 -9
- package/dist/components/pagination/Pagination.jsx +8 -8
- package/dist/components/password-input/PasswordInput.js +16 -11
- package/dist/components/password-input/PasswordInput.jsx +6 -6
- package/dist/components/pin-input/PinInput.js +15 -10
- package/dist/components/pin-input/PinInput.jsx +6 -6
- package/dist/components/popover/Popover.js +37 -25
- package/dist/components/popover/Popover.jsx +13 -13
- package/dist/components/progress-circular/ProgressCircular.js +18 -13
- package/dist/components/progress-circular/ProgressCircular.jsx +8 -8
- package/dist/components/progress-linear/ProgressLinear.js +21 -14
- package/dist/components/progress-linear/ProgressLinear.jsx +7 -7
- package/dist/components/qr-code/QrCode.js +8 -7
- package/dist/components/qr-code/QrCode.jsx +6 -6
- package/dist/components/rating-group/RatingGroup.js +15 -10
- package/dist/components/rating-group/RatingGroup.jsx +6 -6
- package/dist/components/segment-group/SegmentGroup.js +17 -12
- package/dist/components/segment-group/SegmentGroup.jsx +7 -7
- package/dist/components/select/Select.js +50 -35
- package/dist/components/select/Select.jsx +20 -20
- package/dist/components/sidebar/Sidebar.js +73 -43
- package/dist/components/sidebar/Sidebar.jsx +35 -27
- package/dist/components/signature-pad/SignaturePad.js +16 -12
- package/dist/components/signature-pad/SignaturePad.jsx +8 -8
- package/dist/components/slider/Slider.js +29 -20
- package/dist/components/slider/Slider.jsx +11 -11
- package/dist/components/split-button/SplitButton.d.ts +4 -3
- package/dist/components/split-button/SplitButton.js +21 -9
- package/dist/components/split-button/SplitButton.jsx +14 -7
- package/dist/components/splitter/Splitter.js +13 -9
- package/dist/components/splitter/Splitter.jsx +5 -5
- package/dist/components/steps/Steps.js +34 -23
- package/dist/components/steps/Steps.jsx +12 -12
- package/dist/components/swap/Swap.js +9 -6
- package/dist/components/swap/Swap.jsx +3 -3
- package/dist/components/switch/Switch.js +9 -7
- package/dist/components/switch/Switch.jsx +5 -5
- package/dist/components/tabs/Tabs.js +18 -12
- package/dist/components/tabs/Tabs.jsx +6 -6
- package/dist/components/tags-input/TagsInput.js +28 -20
- package/dist/components/tags-input/TagsInput.jsx +12 -12
- package/dist/components/timer/Timer.js +21 -14
- package/dist/components/timer/Timer.jsx +7 -7
- package/dist/components/toast/Toast.js +11 -9
- package/dist/components/toast/Toast.jsx +7 -7
- package/dist/components/toc/Toc.js +31 -20
- package/dist/components/toc/Toc.jsx +10 -10
- package/dist/components/tooltip/Tooltip.js +13 -9
- package/dist/components/tooltip/Tooltip.jsx +5 -5
- package/dist/components/tour/Tour.js +37 -25
- package/dist/components/tour/Tour.jsx +13 -13
- package/dist/components/tree-view/TreeView.js +39 -28
- package/dist/components/tree-view/TreeView.jsx +17 -17
- package/dist/styles/animations.css +8 -8
- package/package.json +1 -1
|
@@ -9,32 +9,32 @@ const Listbox_ListboxRoot = function(props) {
|
|
|
9
9
|
const [local, others] = splitProps(props, [
|
|
10
10
|
'class'
|
|
11
11
|
]);
|
|
12
|
-
return <Listbox.Root
|
|
12
|
+
return <Listbox.Root class={clsx(Listbox_module.root, local.class)} {...others} data-slot="listbox-root"/>;
|
|
13
13
|
};
|
|
14
14
|
const Listbox_ListboxRootProvider = function(props) {
|
|
15
15
|
const [local, others] = splitProps(props, [
|
|
16
16
|
'class'
|
|
17
17
|
]);
|
|
18
|
-
return <Listbox.RootProvider
|
|
18
|
+
return <Listbox.RootProvider class={clsx(Listbox_module.root, local.class)} {...others} data-slot="listbox-root-provider"/>;
|
|
19
19
|
};
|
|
20
20
|
function ListboxLabel(props) {
|
|
21
21
|
const [local, others] = splitProps(props, [
|
|
22
22
|
'class'
|
|
23
23
|
]);
|
|
24
|
-
return <Listbox.Label
|
|
24
|
+
return <Listbox.Label class={clsx(Listbox_module.label, local.class)} {...others} data-slot="listbox-label"/>;
|
|
25
25
|
}
|
|
26
26
|
function ListboxInput(props) {
|
|
27
27
|
const [local, others] = splitProps(props, [
|
|
28
28
|
'class'
|
|
29
29
|
]);
|
|
30
|
-
return <Listbox.Input
|
|
30
|
+
return <Listbox.Input class={clsx(Listbox_module.input, local.class)} {...others} data-slot="listbox-input"/>;
|
|
31
31
|
}
|
|
32
32
|
function ListboxFilter(props) {
|
|
33
33
|
const [local, others] = splitProps(props, [
|
|
34
34
|
'children',
|
|
35
35
|
'class'
|
|
36
36
|
]);
|
|
37
|
-
return <div
|
|
37
|
+
return <div class={clsx(Listbox_module.filter, local.class)} {...others} data-slot="listbox-filter">
|
|
38
38
|
<SearchIcon data-slot="listbox-filter-icon" class={Listbox_module.filterIcon}/>
|
|
39
39
|
{local.children}
|
|
40
40
|
</div>;
|
|
@@ -47,7 +47,7 @@ function ListboxClearTrigger(props) {
|
|
|
47
47
|
'type'
|
|
48
48
|
]);
|
|
49
49
|
const resolvedChildren = children(()=>local.children);
|
|
50
|
-
return <CloseButton.Root
|
|
50
|
+
return <CloseButton.Root class={clsx(Listbox_module.clearTrigger, local.class)} type={local.type ?? 'button'} aria-label={local['aria-label'] ?? 'Clear search'} {...others} data-slot="listbox-clear-trigger">
|
|
51
51
|
{resolvedChildren()}
|
|
52
52
|
</CloseButton.Root>;
|
|
53
53
|
}
|
|
@@ -55,37 +55,37 @@ function ListboxContent(props) {
|
|
|
55
55
|
const [local, others] = splitProps(props, [
|
|
56
56
|
'class'
|
|
57
57
|
]);
|
|
58
|
-
return <Listbox.Content
|
|
58
|
+
return <Listbox.Content class={clsx(Listbox_module.content, local.class)} {...others} data-slot="listbox-content"/>;
|
|
59
59
|
}
|
|
60
60
|
function ListboxEmpty(props) {
|
|
61
61
|
const [local, others] = splitProps(props, [
|
|
62
62
|
'class'
|
|
63
63
|
]);
|
|
64
|
-
return <Listbox.Empty
|
|
64
|
+
return <Listbox.Empty class={clsx(Listbox_module.empty, local.class)} {...others} data-slot="listbox-empty"/>;
|
|
65
65
|
}
|
|
66
66
|
function ListboxItemGroup(props) {
|
|
67
67
|
const [local, others] = splitProps(props, [
|
|
68
68
|
'class'
|
|
69
69
|
]);
|
|
70
|
-
return <Listbox.ItemGroup
|
|
70
|
+
return <Listbox.ItemGroup class={clsx(Listbox_module.itemGroup, local.class)} {...others} data-slot="listbox-item-group"/>;
|
|
71
71
|
}
|
|
72
72
|
function ListboxItemGroupLabel(props) {
|
|
73
73
|
const [local, others] = splitProps(props, [
|
|
74
74
|
'class'
|
|
75
75
|
]);
|
|
76
|
-
return <Listbox.ItemGroupLabel
|
|
76
|
+
return <Listbox.ItemGroupLabel class={clsx(Listbox_module.itemGroupLabel, local.class)} {...others} data-slot="listbox-item-group-label"/>;
|
|
77
77
|
}
|
|
78
78
|
function ListboxItem(props) {
|
|
79
79
|
const [local, others] = splitProps(props, [
|
|
80
80
|
'class'
|
|
81
81
|
]);
|
|
82
|
-
return <Listbox.Item
|
|
82
|
+
return <Listbox.Item class={clsx(Listbox_module.item, local.class)} {...others} data-slot="listbox-item"/>;
|
|
83
83
|
}
|
|
84
84
|
function ListboxItemText(props) {
|
|
85
85
|
const [local, others] = splitProps(props, [
|
|
86
86
|
'class'
|
|
87
87
|
]);
|
|
88
|
-
return <Listbox.ItemText
|
|
88
|
+
return <Listbox.ItemText class={clsx(Listbox_module.itemText, local.class)} {...others} data-slot="listbox-item-text"/>;
|
|
89
89
|
}
|
|
90
90
|
function ListboxItemIndicator(props) {
|
|
91
91
|
const [local, others] = splitProps(props, [
|
|
@@ -93,7 +93,7 @@ function ListboxItemIndicator(props) {
|
|
|
93
93
|
'class'
|
|
94
94
|
]);
|
|
95
95
|
const resolvedChildren = children(()=>local.children);
|
|
96
|
-
return <Listbox.ItemIndicator
|
|
96
|
+
return <Listbox.ItemIndicator class={clsx(Listbox_module.itemIndicator, local.class)} {...others} data-slot="listbox-item-indicator">
|
|
97
97
|
{resolvedChildren() ?? <CheckIcon/>}
|
|
98
98
|
</Listbox.ItemIndicator>;
|
|
99
99
|
}
|
|
@@ -101,25 +101,25 @@ function ListboxValueText(props) {
|
|
|
101
101
|
const [local, others] = splitProps(props, [
|
|
102
102
|
'class'
|
|
103
103
|
]);
|
|
104
|
-
return <Listbox.ValueText
|
|
104
|
+
return <Listbox.ValueText class={clsx(Listbox_module.valueText, local.class)} {...others} data-slot="listbox-value-text"/>;
|
|
105
105
|
}
|
|
106
106
|
function ListboxItemTextContent(props) {
|
|
107
107
|
const [local, others] = splitProps(props, [
|
|
108
108
|
'class'
|
|
109
109
|
]);
|
|
110
|
-
return <ark.span
|
|
110
|
+
return <ark.span class={clsx(Listbox_module.itemTextContent, local.class)} {...others} data-slot="listbox-item-text-content"/>;
|
|
111
111
|
}
|
|
112
112
|
function ListboxItemTextIcon(props) {
|
|
113
113
|
const [local, others] = splitProps(props, [
|
|
114
114
|
'class'
|
|
115
115
|
]);
|
|
116
|
-
return <ark.span
|
|
116
|
+
return <ark.span class={clsx(Listbox_module.itemTextIcon, local.class)} {...others} data-slot="listbox-item-text-icon"/>;
|
|
117
117
|
}
|
|
118
118
|
function ListboxItemTextLabel(props) {
|
|
119
119
|
const [local, others] = splitProps(props, [
|
|
120
120
|
'class'
|
|
121
121
|
]);
|
|
122
|
-
return <ark.span
|
|
122
|
+
return <ark.span class={clsx(Listbox_module.itemTextLabel, local.class)} {...others} data-slot="listbox-item-text-label"/>;
|
|
123
123
|
}
|
|
124
124
|
const Listbox_Listbox = Object.assign(Listbox_ListboxRoot, {
|
|
125
125
|
Root: Listbox_ListboxRoot,
|
|
@@ -8,66 +8,72 @@ function MarqueeRoot(props) {
|
|
|
8
8
|
'class'
|
|
9
9
|
]);
|
|
10
10
|
return createComponent(Marquee.Root, mergeProps({
|
|
11
|
-
"data-slot": "marquee-root",
|
|
12
11
|
get ["class"] () {
|
|
13
12
|
return clsx(Marquee_module.root, local.class);
|
|
14
13
|
}
|
|
15
|
-
}, others
|
|
14
|
+
}, others, {
|
|
15
|
+
"data-slot": "marquee-root"
|
|
16
|
+
}));
|
|
16
17
|
}
|
|
17
18
|
function MarqueeRootProvider(props) {
|
|
18
19
|
const [local, others] = splitProps(props, [
|
|
19
20
|
'class'
|
|
20
21
|
]);
|
|
21
22
|
return createComponent(Marquee.RootProvider, mergeProps({
|
|
22
|
-
"data-slot": "marquee-root-provider",
|
|
23
23
|
get ["class"] () {
|
|
24
24
|
return clsx(Marquee_module.root, local.class);
|
|
25
25
|
}
|
|
26
|
-
}, others
|
|
26
|
+
}, others, {
|
|
27
|
+
"data-slot": "marquee-root-provider"
|
|
28
|
+
}));
|
|
27
29
|
}
|
|
28
30
|
function MarqueeViewport(props) {
|
|
29
31
|
const [local, others] = splitProps(props, [
|
|
30
32
|
'class'
|
|
31
33
|
]);
|
|
32
34
|
return createComponent(Marquee.Viewport, mergeProps({
|
|
33
|
-
"data-slot": "marquee-viewport",
|
|
34
35
|
get ["class"] () {
|
|
35
36
|
return clsx(Marquee_module.viewport, local.class);
|
|
36
37
|
}
|
|
37
|
-
}, others
|
|
38
|
+
}, others, {
|
|
39
|
+
"data-slot": "marquee-viewport"
|
|
40
|
+
}));
|
|
38
41
|
}
|
|
39
42
|
function MarqueeContent(props) {
|
|
40
43
|
const [local, others] = splitProps(props, [
|
|
41
44
|
'class'
|
|
42
45
|
]);
|
|
43
46
|
return createComponent(Marquee.Content, mergeProps({
|
|
44
|
-
"data-slot": "marquee-content",
|
|
45
47
|
get ["class"] () {
|
|
46
48
|
return clsx(Marquee_module.content, local.class);
|
|
47
49
|
}
|
|
48
|
-
}, others
|
|
50
|
+
}, others, {
|
|
51
|
+
"data-slot": "marquee-content"
|
|
52
|
+
}));
|
|
49
53
|
}
|
|
50
54
|
function MarqueeItem(props) {
|
|
51
55
|
const [local, others] = splitProps(props, [
|
|
52
56
|
'class'
|
|
53
57
|
]);
|
|
54
58
|
return createComponent(Marquee.Item, mergeProps({
|
|
55
|
-
"data-slot": "marquee-item",
|
|
56
59
|
get ["class"] () {
|
|
57
60
|
return clsx(Marquee_module.item, local.class);
|
|
58
61
|
}
|
|
59
|
-
}, others
|
|
62
|
+
}, others, {
|
|
63
|
+
"data-slot": "marquee-item"
|
|
64
|
+
}));
|
|
60
65
|
}
|
|
61
66
|
function MarqueeEdge(props) {
|
|
62
67
|
const [local, others] = splitProps(props, [
|
|
63
68
|
'class'
|
|
64
69
|
]);
|
|
65
70
|
return createComponent(Marquee.Edge, mergeProps({
|
|
66
|
-
"data-slot": "marquee-edge",
|
|
67
71
|
get ["class"] () {
|
|
68
72
|
return clsx(Marquee_module.edge, local.class);
|
|
69
73
|
}
|
|
70
|
-
}, others
|
|
74
|
+
}, others, {
|
|
75
|
+
"data-slot": "marquee-edge"
|
|
76
|
+
}));
|
|
71
77
|
}
|
|
72
78
|
const Marquee_Marquee = Object.assign(MarqueeRoot, {
|
|
73
79
|
Root: MarqueeRoot,
|
|
@@ -6,37 +6,37 @@ function MarqueeRoot(props) {
|
|
|
6
6
|
const [local, others] = splitProps(props, [
|
|
7
7
|
'class'
|
|
8
8
|
]);
|
|
9
|
-
return <Marquee.Root
|
|
9
|
+
return <Marquee.Root class={clsx(Marquee_module.root, local.class)} {...others} data-slot="marquee-root"/>;
|
|
10
10
|
}
|
|
11
11
|
function MarqueeRootProvider(props) {
|
|
12
12
|
const [local, others] = splitProps(props, [
|
|
13
13
|
'class'
|
|
14
14
|
]);
|
|
15
|
-
return <Marquee.RootProvider
|
|
15
|
+
return <Marquee.RootProvider class={clsx(Marquee_module.root, local.class)} {...others} data-slot="marquee-root-provider"/>;
|
|
16
16
|
}
|
|
17
17
|
function MarqueeViewport(props) {
|
|
18
18
|
const [local, others] = splitProps(props, [
|
|
19
19
|
'class'
|
|
20
20
|
]);
|
|
21
|
-
return <Marquee.Viewport
|
|
21
|
+
return <Marquee.Viewport class={clsx(Marquee_module.viewport, local.class)} {...others} data-slot="marquee-viewport"/>;
|
|
22
22
|
}
|
|
23
23
|
function MarqueeContent(props) {
|
|
24
24
|
const [local, others] = splitProps(props, [
|
|
25
25
|
'class'
|
|
26
26
|
]);
|
|
27
|
-
return <Marquee.Content
|
|
27
|
+
return <Marquee.Content class={clsx(Marquee_module.content, local.class)} {...others} data-slot="marquee-content"/>;
|
|
28
28
|
}
|
|
29
29
|
function MarqueeItem(props) {
|
|
30
30
|
const [local, others] = splitProps(props, [
|
|
31
31
|
'class'
|
|
32
32
|
]);
|
|
33
|
-
return <Marquee.Item
|
|
33
|
+
return <Marquee.Item class={clsx(Marquee_module.item, local.class)} {...others} data-slot="marquee-item"/>;
|
|
34
34
|
}
|
|
35
35
|
function MarqueeEdge(props) {
|
|
36
36
|
const [local, others] = splitProps(props, [
|
|
37
37
|
'class'
|
|
38
38
|
]);
|
|
39
|
-
return <Marquee.Edge
|
|
39
|
+
return <Marquee.Edge class={clsx(Marquee_module.edge, local.class)} {...others} data-slot="marquee-edge"/>;
|
|
40
40
|
}
|
|
41
41
|
const Marquee_Marquee = Object.assign(MarqueeRoot, {
|
|
42
42
|
Root: MarqueeRoot,
|
|
@@ -7,7 +7,7 @@ import { children, splitProps } from "solid-js";
|
|
|
7
7
|
import { CheckIcon, ChevronDownIcon, ChevronRightIcon } from "../../internal/icons/ui/Icons.js";
|
|
8
8
|
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
|
|
9
9
|
import Menu_module from "./Menu.module.js";
|
|
10
|
-
var _tmpl$ = /*#__PURE__*/ template("<span
|
|
10
|
+
var _tmpl$ = /*#__PURE__*/ template("<span>");
|
|
11
11
|
function MenuRoot(props) {
|
|
12
12
|
const [local, others] = splitProps(props, [
|
|
13
13
|
'children',
|
|
@@ -80,14 +80,15 @@ function MenuTrigger(props) {
|
|
|
80
80
|
get asChild () {
|
|
81
81
|
return local.asChild;
|
|
82
82
|
},
|
|
83
|
-
"data-slot": "menu-trigger",
|
|
84
83
|
get ["data-focus-visible"] () {
|
|
85
84
|
return focusVisible() ? '' : void 0;
|
|
86
85
|
},
|
|
87
86
|
get ["class"] () {
|
|
88
87
|
return clsx(!local.asChild && Menu_module.trigger, local.class);
|
|
89
88
|
}
|
|
90
|
-
}, others
|
|
89
|
+
}, others, {
|
|
90
|
+
"data-slot": "menu-trigger"
|
|
91
|
+
}));
|
|
91
92
|
}
|
|
92
93
|
function MenuTriggerIcon(props) {
|
|
93
94
|
const [local, others] = splitProps(props, [
|
|
@@ -101,7 +102,9 @@ function MenuTriggerIcon(props) {
|
|
|
101
102
|
get ["class"] () {
|
|
102
103
|
return clsx(Menu_module.triggerIcon, local.class);
|
|
103
104
|
}
|
|
104
|
-
}, others
|
|
105
|
+
}, others, {
|
|
106
|
+
"data-slot": "menu-trigger-icon"
|
|
107
|
+
}), false, true);
|
|
105
108
|
insert(_el$, ()=>resolvedChildren() ?? createComponent(ChevronDownIcon, {
|
|
106
109
|
get ["class"] () {
|
|
107
110
|
return Menu_module.iconSvg;
|
|
@@ -117,11 +120,11 @@ function MenuIndicator(props) {
|
|
|
117
120
|
]);
|
|
118
121
|
const resolvedChildren = children(()=>local.children);
|
|
119
122
|
return createComponent(Menu.Indicator, mergeProps({
|
|
120
|
-
"data-slot": "menu-indicator",
|
|
121
123
|
get ["class"] () {
|
|
122
124
|
return clsx(Menu_module.indicator, local.class);
|
|
123
125
|
}
|
|
124
126
|
}, others, {
|
|
127
|
+
"data-slot": "menu-indicator",
|
|
125
128
|
get children () {
|
|
126
129
|
return resolvedChildren() ?? createComponent(ChevronDownIcon, {
|
|
127
130
|
get ["class"] () {
|
|
@@ -141,14 +144,15 @@ function MenuContextTrigger(props) {
|
|
|
141
144
|
get asChild () {
|
|
142
145
|
return local.asChild;
|
|
143
146
|
},
|
|
144
|
-
"data-slot": "menu-context-trigger",
|
|
145
147
|
get ["data-focus-visible"] () {
|
|
146
148
|
return focusVisible() ? '' : void 0;
|
|
147
149
|
},
|
|
148
150
|
get ["class"] () {
|
|
149
151
|
return clsx(!local.asChild && Menu_module.contextTrigger, local.class);
|
|
150
152
|
}
|
|
151
|
-
}, others
|
|
153
|
+
}, others, {
|
|
154
|
+
"data-slot": "menu-context-trigger"
|
|
155
|
+
}));
|
|
152
156
|
}
|
|
153
157
|
function MenuPositioner(props) {
|
|
154
158
|
const [local, others] = splitProps(props, [
|
|
@@ -157,11 +161,12 @@ function MenuPositioner(props) {
|
|
|
157
161
|
return createComponent(OverlayPortal, {
|
|
158
162
|
get children () {
|
|
159
163
|
return createComponent(Menu.Positioner, mergeProps({
|
|
160
|
-
"data-slot": "menu-positioner",
|
|
161
164
|
get ["class"] () {
|
|
162
165
|
return clsx(Menu_module.positioner, local.class);
|
|
163
166
|
}
|
|
164
|
-
}, others
|
|
167
|
+
}, others, {
|
|
168
|
+
"data-slot": "menu-positioner"
|
|
169
|
+
}));
|
|
165
170
|
}
|
|
166
171
|
});
|
|
167
172
|
}
|
|
@@ -175,11 +180,11 @@ function MenuContent(props) {
|
|
|
175
180
|
get asChild () {
|
|
176
181
|
return local.asChild;
|
|
177
182
|
},
|
|
178
|
-
"data-slot": "menu-content",
|
|
179
183
|
get ["class"] () {
|
|
180
184
|
return clsx(Menu_module.content, local.class);
|
|
181
185
|
}
|
|
182
186
|
}, others, {
|
|
187
|
+
"data-slot": "menu-content",
|
|
183
188
|
get children () {
|
|
184
189
|
return local.children;
|
|
185
190
|
}
|
|
@@ -196,11 +201,12 @@ function MenuViewport(props) {
|
|
|
196
201
|
},
|
|
197
202
|
"data-scope": "menu",
|
|
198
203
|
"data-part": "viewport",
|
|
199
|
-
"data-slot": "menu-viewport",
|
|
200
204
|
get ["class"] () {
|
|
201
205
|
return clsx(Menu_module.viewport, local.class);
|
|
202
206
|
}
|
|
203
|
-
}, others
|
|
207
|
+
}, others, {
|
|
208
|
+
"data-slot": "menu-viewport"
|
|
209
|
+
}));
|
|
204
210
|
}
|
|
205
211
|
function MenuArrow(props) {
|
|
206
212
|
const [local, others] = splitProps(props, [
|
|
@@ -209,11 +215,11 @@ function MenuArrow(props) {
|
|
|
209
215
|
]);
|
|
210
216
|
const resolvedChildren = children(()=>local.children);
|
|
211
217
|
return createComponent(Menu.Arrow, mergeProps({
|
|
212
|
-
"data-slot": "menu-arrow",
|
|
213
218
|
get ["class"] () {
|
|
214
219
|
return clsx(Menu_module.arrow, local.class);
|
|
215
220
|
}
|
|
216
221
|
}, others, {
|
|
222
|
+
"data-slot": "menu-arrow",
|
|
217
223
|
get children () {
|
|
218
224
|
return resolvedChildren() ?? createComponent(MenuArrowTip, {});
|
|
219
225
|
}
|
|
@@ -224,11 +230,12 @@ function MenuArrowTip(props) {
|
|
|
224
230
|
'class'
|
|
225
231
|
]);
|
|
226
232
|
return createComponent(Menu.ArrowTip, mergeProps({
|
|
227
|
-
"data-slot": "menu-arrow-tip",
|
|
228
233
|
get ["class"] () {
|
|
229
234
|
return clsx(Menu_module.arrowTip, local.class);
|
|
230
235
|
}
|
|
231
|
-
}, others
|
|
236
|
+
}, others, {
|
|
237
|
+
"data-slot": "menu-arrow-tip"
|
|
238
|
+
}));
|
|
232
239
|
}
|
|
233
240
|
function MenuItem(props) {
|
|
234
241
|
const [local, others] = splitProps(props, [
|
|
@@ -236,14 +243,15 @@ function MenuItem(props) {
|
|
|
236
243
|
'tone'
|
|
237
244
|
]);
|
|
238
245
|
return createComponent(Menu.Item, mergeProps({
|
|
239
|
-
"data-slot": "menu-item",
|
|
240
246
|
get ["data-tone"] () {
|
|
241
247
|
return local.tone ?? 'default';
|
|
242
248
|
},
|
|
243
249
|
get ["class"] () {
|
|
244
250
|
return clsx(Menu_module.item, local.class);
|
|
245
251
|
}
|
|
246
|
-
}, others
|
|
252
|
+
}, others, {
|
|
253
|
+
"data-slot": "menu-item"
|
|
254
|
+
}));
|
|
247
255
|
}
|
|
248
256
|
function MenuTriggerItem(props) {
|
|
249
257
|
const [local, others] = splitProps(props, [
|
|
@@ -251,11 +259,11 @@ function MenuTriggerItem(props) {
|
|
|
251
259
|
'class'
|
|
252
260
|
]);
|
|
253
261
|
return createComponent(Menu.TriggerItem, mergeProps({
|
|
254
|
-
"data-slot": "menu-trigger-item",
|
|
255
262
|
get ["class"] () {
|
|
256
263
|
return clsx(Menu_module.triggerItem, local.class);
|
|
257
264
|
}
|
|
258
265
|
}, others, {
|
|
266
|
+
"data-slot": "menu-trigger-item",
|
|
259
267
|
get children () {
|
|
260
268
|
return local.children;
|
|
261
269
|
}
|
|
@@ -268,12 +276,14 @@ function MenuTriggerItemIcon(props) {
|
|
|
268
276
|
]);
|
|
269
277
|
const resolvedChildren = children(()=>local.children);
|
|
270
278
|
return (()=>{
|
|
271
|
-
var _el$2 = _tmpl$
|
|
279
|
+
var _el$2 = _tmpl$();
|
|
272
280
|
spread(_el$2, mergeProps({
|
|
273
281
|
get ["class"] () {
|
|
274
282
|
return clsx(Menu_module.triggerItemIcon, local.class);
|
|
275
283
|
}
|
|
276
|
-
}, others
|
|
284
|
+
}, others, {
|
|
285
|
+
"data-slot": "menu-trigger-item-icon"
|
|
286
|
+
}), false, true);
|
|
277
287
|
insert(_el$2, ()=>resolvedChildren() ?? createComponent(ChevronRightIcon, {
|
|
278
288
|
get ["class"] () {
|
|
279
289
|
return Menu_module.iconSvg;
|
|
@@ -287,44 +297,48 @@ function MenuSeparator(props) {
|
|
|
287
297
|
'class'
|
|
288
298
|
]);
|
|
289
299
|
return createComponent(Menu.Separator, mergeProps({
|
|
290
|
-
"data-slot": "menu-separator",
|
|
291
300
|
get ["class"] () {
|
|
292
301
|
return clsx(Menu_module.separator, local.class);
|
|
293
302
|
}
|
|
294
|
-
}, others
|
|
303
|
+
}, others, {
|
|
304
|
+
"data-slot": "menu-separator"
|
|
305
|
+
}));
|
|
295
306
|
}
|
|
296
307
|
function MenuItemGroup(props) {
|
|
297
308
|
const [local, others] = splitProps(props, [
|
|
298
309
|
'class'
|
|
299
310
|
]);
|
|
300
311
|
return createComponent(Menu.ItemGroup, mergeProps({
|
|
301
|
-
"data-slot": "menu-item-group",
|
|
302
312
|
get ["class"] () {
|
|
303
313
|
return clsx(Menu_module.itemGroup, local.class);
|
|
304
314
|
}
|
|
305
|
-
}, others
|
|
315
|
+
}, others, {
|
|
316
|
+
"data-slot": "menu-item-group"
|
|
317
|
+
}));
|
|
306
318
|
}
|
|
307
319
|
function MenuItemGroupLabel(props) {
|
|
308
320
|
const [local, others] = splitProps(props, [
|
|
309
321
|
'class'
|
|
310
322
|
]);
|
|
311
323
|
return createComponent(Menu.ItemGroupLabel, mergeProps({
|
|
312
|
-
"data-slot": "menu-item-group-label",
|
|
313
324
|
get ["class"] () {
|
|
314
325
|
return clsx(Menu_module.itemGroupLabel, local.class);
|
|
315
326
|
}
|
|
316
|
-
}, others
|
|
327
|
+
}, others, {
|
|
328
|
+
"data-slot": "menu-item-group-label"
|
|
329
|
+
}));
|
|
317
330
|
}
|
|
318
331
|
function MenuRadioItemGroup(props) {
|
|
319
332
|
const [local, others] = splitProps(props, [
|
|
320
333
|
'class'
|
|
321
334
|
]);
|
|
322
335
|
return createComponent(Menu.RadioItemGroup, mergeProps({
|
|
323
|
-
"data-slot": "menu-radio-item-group",
|
|
324
336
|
get ["class"] () {
|
|
325
337
|
return clsx(Menu_module.radioItemGroup, local.class);
|
|
326
338
|
}
|
|
327
|
-
}, others
|
|
339
|
+
}, others, {
|
|
340
|
+
"data-slot": "menu-radio-item-group"
|
|
341
|
+
}));
|
|
328
342
|
}
|
|
329
343
|
function MenuRadioItem(props) {
|
|
330
344
|
const [local, others] = splitProps(props, [
|
|
@@ -332,14 +346,15 @@ function MenuRadioItem(props) {
|
|
|
332
346
|
'indicator'
|
|
333
347
|
]);
|
|
334
348
|
return createComponent(Menu.RadioItem, mergeProps({
|
|
335
|
-
"data-slot": "menu-radio-item",
|
|
336
349
|
get ["data-indicator-position"] () {
|
|
337
350
|
return local.indicator ?? 'start';
|
|
338
351
|
},
|
|
339
352
|
get ["class"] () {
|
|
340
353
|
return clsx(Menu_module.radioItem, local.class);
|
|
341
354
|
}
|
|
342
|
-
}, others
|
|
355
|
+
}, others, {
|
|
356
|
+
"data-slot": "menu-radio-item"
|
|
357
|
+
}));
|
|
343
358
|
}
|
|
344
359
|
function MenuCheckboxItem(props) {
|
|
345
360
|
const [local, others] = splitProps(props, [
|
|
@@ -347,14 +362,15 @@ function MenuCheckboxItem(props) {
|
|
|
347
362
|
'indicator'
|
|
348
363
|
]);
|
|
349
364
|
return createComponent(Menu.CheckboxItem, mergeProps({
|
|
350
|
-
"data-slot": "menu-checkbox-item",
|
|
351
365
|
get ["data-indicator-position"] () {
|
|
352
366
|
return local.indicator ?? 'start';
|
|
353
367
|
},
|
|
354
368
|
get ["class"] () {
|
|
355
369
|
return clsx(Menu_module.checkboxItem, local.class);
|
|
356
370
|
}
|
|
357
|
-
}, others
|
|
371
|
+
}, others, {
|
|
372
|
+
"data-slot": "menu-checkbox-item"
|
|
373
|
+
}));
|
|
358
374
|
}
|
|
359
375
|
function MenuItemIndicator(props) {
|
|
360
376
|
const [local, others] = splitProps(props, [
|
|
@@ -363,11 +379,11 @@ function MenuItemIndicator(props) {
|
|
|
363
379
|
]);
|
|
364
380
|
const resolvedChildren = children(()=>local.children);
|
|
365
381
|
return createComponent(Menu.ItemIndicator, mergeProps({
|
|
366
|
-
"data-slot": "menu-item-indicator",
|
|
367
382
|
get ["class"] () {
|
|
368
383
|
return clsx(Menu_module.itemIndicator, local.class);
|
|
369
384
|
}
|
|
370
385
|
}, others, {
|
|
386
|
+
"data-slot": "menu-item-indicator",
|
|
371
387
|
get children () {
|
|
372
388
|
return resolvedChildren() ?? createComponent(CheckIcon, {
|
|
373
389
|
get ["class"] () {
|
|
@@ -382,55 +398,60 @@ function MenuItemText(props) {
|
|
|
382
398
|
'class'
|
|
383
399
|
]);
|
|
384
400
|
return createComponent(Menu.ItemText, mergeProps({
|
|
385
|
-
"data-slot": "menu-item-text",
|
|
386
401
|
get ["class"] () {
|
|
387
402
|
return clsx(Menu_module.itemText, local.class);
|
|
388
403
|
}
|
|
389
|
-
}, others
|
|
404
|
+
}, others, {
|
|
405
|
+
"data-slot": "menu-item-text"
|
|
406
|
+
}));
|
|
390
407
|
}
|
|
391
408
|
function MenuItemTextContent(props) {
|
|
392
409
|
const [local, others] = splitProps(props, [
|
|
393
410
|
'class'
|
|
394
411
|
]);
|
|
395
412
|
return createComponent(ark.span, mergeProps({
|
|
396
|
-
"data-slot": "menu-item-text-content",
|
|
397
413
|
get ["class"] () {
|
|
398
414
|
return clsx(Menu_module.itemTextContent, local.class);
|
|
399
415
|
}
|
|
400
|
-
}, others
|
|
416
|
+
}, others, {
|
|
417
|
+
"data-slot": "menu-item-text-content"
|
|
418
|
+
}));
|
|
401
419
|
}
|
|
402
420
|
function MenuItemTextIcon(props) {
|
|
403
421
|
const [local, others] = splitProps(props, [
|
|
404
422
|
'class'
|
|
405
423
|
]);
|
|
406
424
|
return createComponent(ark.span, mergeProps({
|
|
407
|
-
"data-slot": "menu-item-text-icon",
|
|
408
425
|
get ["class"] () {
|
|
409
426
|
return clsx(Menu_module.itemTextIcon, local.class);
|
|
410
427
|
}
|
|
411
|
-
}, others
|
|
428
|
+
}, others, {
|
|
429
|
+
"data-slot": "menu-item-text-icon"
|
|
430
|
+
}));
|
|
412
431
|
}
|
|
413
432
|
function MenuItemTextLabel(props) {
|
|
414
433
|
const [local, others] = splitProps(props, [
|
|
415
434
|
'class'
|
|
416
435
|
]);
|
|
417
436
|
return createComponent(ark.span, mergeProps({
|
|
418
|
-
"data-slot": "menu-item-text-label",
|
|
419
437
|
get ["class"] () {
|
|
420
438
|
return clsx(Menu_module.itemTextLabel, local.class);
|
|
421
439
|
}
|
|
422
|
-
}, others
|
|
440
|
+
}, others, {
|
|
441
|
+
"data-slot": "menu-item-text-label"
|
|
442
|
+
}));
|
|
423
443
|
}
|
|
424
444
|
function MenuItemShortcut(props) {
|
|
425
445
|
const [local, others] = splitProps(props, [
|
|
426
446
|
'class'
|
|
427
447
|
]);
|
|
428
448
|
return createComponent(ark.span, mergeProps({
|
|
429
|
-
"data-slot": "menu-item-shortcut",
|
|
430
449
|
get ["class"] () {
|
|
431
450
|
return clsx(Menu_module.itemShortcut, local.class);
|
|
432
451
|
}
|
|
433
|
-
}, others
|
|
452
|
+
}, others, {
|
|
453
|
+
"data-slot": "menu-item-shortcut"
|
|
454
|
+
}));
|
|
434
455
|
}
|
|
435
456
|
const Menu_Menu = Object.assign(MenuRoot, {
|
|
436
457
|
Root: MenuRoot,
|