@moduix/solid 1.0.0 → 1.1.1
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 +72 -53
- package/dist/components/command-palette/CommandPalette.jsx +29 -32
- 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 +9 -10
|
@@ -10,7 +10,7 @@ function RatingGroupRoot(props) {
|
|
|
10
10
|
'class',
|
|
11
11
|
'size'
|
|
12
12
|
]);
|
|
13
|
-
return <RatingGroup.Root asChild={local.asChild} data-
|
|
13
|
+
return <RatingGroup.Root asChild={local.asChild} data-size={local.size ?? 'md'} class={clsx(RatingGroup_module.root, local.class)} {...others} data-slot="rating-group-root">
|
|
14
14
|
{local.children}
|
|
15
15
|
</RatingGroup.Root>;
|
|
16
16
|
}
|
|
@@ -21,7 +21,7 @@ function RatingGroupRootProvider(props) {
|
|
|
21
21
|
'class',
|
|
22
22
|
'size'
|
|
23
23
|
]);
|
|
24
|
-
return <RatingGroup.RootProvider asChild={local.asChild} data-
|
|
24
|
+
return <RatingGroup.RootProvider asChild={local.asChild} data-size={local.size ?? 'md'} class={clsx(RatingGroup_module.root, local.class)} {...others} data-slot="rating-group-root-provider">
|
|
25
25
|
{local.children}
|
|
26
26
|
</RatingGroup.RootProvider>;
|
|
27
27
|
}
|
|
@@ -29,19 +29,19 @@ function RatingGroupLabel(props) {
|
|
|
29
29
|
const [local, others] = splitProps(props, [
|
|
30
30
|
'class'
|
|
31
31
|
]);
|
|
32
|
-
return <RatingGroup.Label
|
|
32
|
+
return <RatingGroup.Label class={clsx(RatingGroup_module.label, local.class)} {...others} data-slot="rating-group-label"/>;
|
|
33
33
|
}
|
|
34
34
|
function RatingGroupControl(props) {
|
|
35
35
|
const [local, others] = splitProps(props, [
|
|
36
36
|
'class'
|
|
37
37
|
]);
|
|
38
|
-
return <RatingGroup.Control
|
|
38
|
+
return <RatingGroup.Control class={clsx(RatingGroup_module.control, local.class)} {...others} data-slot="rating-group-control"/>;
|
|
39
39
|
}
|
|
40
40
|
function RatingGroupItem(props) {
|
|
41
41
|
const [local, others] = splitProps(props, [
|
|
42
42
|
'class'
|
|
43
43
|
]);
|
|
44
|
-
return <RatingGroup.Item
|
|
44
|
+
return <RatingGroup.Item class={clsx(RatingGroup_module.item, local.class)} {...others} data-slot="rating-group-item"/>;
|
|
45
45
|
}
|
|
46
46
|
function RatingGroupItemIndicator(props) {
|
|
47
47
|
const [local, others] = splitProps(props, [
|
|
@@ -50,7 +50,7 @@ function RatingGroupItemIndicator(props) {
|
|
|
50
50
|
]);
|
|
51
51
|
const resolvedChildren = children(()=>local.children);
|
|
52
52
|
const item = useRatingGroupItemContext();
|
|
53
|
-
return <span data-
|
|
53
|
+
return <span data-half={item().half ? '' : void 0} data-highlighted={item().highlighted ? '' : void 0} class={clsx(RatingGroup_module.itemIndicator, local.class)} {...others} data-slot="rating-group-item-indicator">
|
|
54
54
|
{resolvedChildren() ?? <>
|
|
55
55
|
<RatingStarIcon data-slot="rating-group-item-indicator-bg" class={RatingGroup_module.iconBg}/>
|
|
56
56
|
<RatingStarIcon data-slot="rating-group-item-indicator-fg" class={RatingGroup_module.iconFg}/>
|
|
@@ -59,11 +59,11 @@ function SegmentGroupRoot(props) {
|
|
|
59
59
|
return local.asChild;
|
|
60
60
|
},
|
|
61
61
|
value: segmentGroup,
|
|
62
|
-
"data-slot": "segment-group-root",
|
|
63
62
|
get ["class"] () {
|
|
64
63
|
return clsx(SegmentGroup_module.root, local.class);
|
|
65
64
|
}
|
|
66
65
|
}, others, {
|
|
66
|
+
"data-slot": "segment-group-root",
|
|
67
67
|
get children () {
|
|
68
68
|
return local.children;
|
|
69
69
|
}
|
|
@@ -78,11 +78,12 @@ function SegmentGroupRootProvider(props) {
|
|
|
78
78
|
get asChild () {
|
|
79
79
|
return local.asChild;
|
|
80
80
|
},
|
|
81
|
-
"data-slot": "segment-group-root-provider",
|
|
82
81
|
get ["class"] () {
|
|
83
82
|
return clsx(SegmentGroup_module.root, local.class);
|
|
84
83
|
}
|
|
85
|
-
}, others
|
|
84
|
+
}, others, {
|
|
85
|
+
"data-slot": "segment-group-root-provider"
|
|
86
|
+
}));
|
|
86
87
|
}
|
|
87
88
|
function SegmentGroupLabel(props) {
|
|
88
89
|
const [local, others] = splitProps(props, [
|
|
@@ -93,11 +94,12 @@ function SegmentGroupLabel(props) {
|
|
|
93
94
|
get asChild () {
|
|
94
95
|
return local.asChild;
|
|
95
96
|
},
|
|
96
|
-
"data-slot": "segment-group-label",
|
|
97
97
|
get ["class"] () {
|
|
98
98
|
return clsx(SegmentGroup_module.label, local.class);
|
|
99
99
|
}
|
|
100
|
-
}, others
|
|
100
|
+
}, others, {
|
|
101
|
+
"data-slot": "segment-group-label"
|
|
102
|
+
}));
|
|
101
103
|
}
|
|
102
104
|
function SegmentGroupItem(props) {
|
|
103
105
|
const [local, others] = splitProps(props, [
|
|
@@ -109,11 +111,11 @@ function SegmentGroupItem(props) {
|
|
|
109
111
|
get asChild () {
|
|
110
112
|
return local.asChild;
|
|
111
113
|
},
|
|
112
|
-
"data-slot": "segment-group-item",
|
|
113
114
|
get ["class"] () {
|
|
114
115
|
return clsx(SegmentGroup_module.item, local.class);
|
|
115
116
|
}
|
|
116
117
|
}, others, {
|
|
118
|
+
"data-slot": "segment-group-item",
|
|
117
119
|
get children () {
|
|
118
120
|
return local.children;
|
|
119
121
|
}
|
|
@@ -128,11 +130,12 @@ function SegmentGroupItemControl(props) {
|
|
|
128
130
|
get asChild () {
|
|
129
131
|
return local.asChild;
|
|
130
132
|
},
|
|
131
|
-
"data-slot": "segment-group-item-control",
|
|
132
133
|
get ["class"] () {
|
|
133
134
|
return clsx(SegmentGroup_module.itemControl, local.class);
|
|
134
135
|
}
|
|
135
|
-
}, others
|
|
136
|
+
}, others, {
|
|
137
|
+
"data-slot": "segment-group-item-control"
|
|
138
|
+
}));
|
|
136
139
|
}
|
|
137
140
|
function SegmentGroupItemText(props) {
|
|
138
141
|
const [local, others] = splitProps(props, [
|
|
@@ -143,11 +146,12 @@ function SegmentGroupItemText(props) {
|
|
|
143
146
|
get asChild () {
|
|
144
147
|
return local.asChild;
|
|
145
148
|
},
|
|
146
|
-
"data-slot": "segment-group-item-text",
|
|
147
149
|
get ["class"] () {
|
|
148
150
|
return clsx(SegmentGroup_module.itemText, local.class);
|
|
149
151
|
}
|
|
150
|
-
}, others
|
|
152
|
+
}, others, {
|
|
153
|
+
"data-slot": "segment-group-item-text"
|
|
154
|
+
}));
|
|
151
155
|
}
|
|
152
156
|
function SegmentGroupIndicator(props) {
|
|
153
157
|
const [local, others] = splitProps(props, [
|
|
@@ -158,11 +162,12 @@ function SegmentGroupIndicator(props) {
|
|
|
158
162
|
get asChild () {
|
|
159
163
|
return local.asChild;
|
|
160
164
|
},
|
|
161
|
-
"data-slot": "segment-group-indicator",
|
|
162
165
|
get ["class"] () {
|
|
163
166
|
return clsx(SegmentGroup_module.indicator, local.class);
|
|
164
167
|
}
|
|
165
|
-
}, others
|
|
168
|
+
}, others, {
|
|
169
|
+
"data-slot": "segment-group-indicator"
|
|
170
|
+
}));
|
|
166
171
|
}
|
|
167
172
|
function SegmentGroupItems(props) {
|
|
168
173
|
return createComponent(For, {
|
|
@@ -53,7 +53,7 @@ function SegmentGroupRoot(props) {
|
|
|
53
53
|
required: local.required,
|
|
54
54
|
value: local.value
|
|
55
55
|
}));
|
|
56
|
-
return <SegmentGroup.RootProvider asChild={local.asChild} value={segmentGroup}
|
|
56
|
+
return <SegmentGroup.RootProvider asChild={local.asChild} value={segmentGroup} class={clsx(SegmentGroup_module.root, local.class)} {...others} data-slot="segment-group-root">
|
|
57
57
|
{local.children}
|
|
58
58
|
</SegmentGroup.RootProvider>;
|
|
59
59
|
}
|
|
@@ -62,14 +62,14 @@ function SegmentGroupRootProvider(props) {
|
|
|
62
62
|
'asChild',
|
|
63
63
|
'class'
|
|
64
64
|
]);
|
|
65
|
-
return <SegmentGroup.RootProvider asChild={local.asChild}
|
|
65
|
+
return <SegmentGroup.RootProvider asChild={local.asChild} class={clsx(SegmentGroup_module.root, local.class)} {...others} data-slot="segment-group-root-provider"/>;
|
|
66
66
|
}
|
|
67
67
|
function SegmentGroupLabel(props) {
|
|
68
68
|
const [local, others] = splitProps(props, [
|
|
69
69
|
'asChild',
|
|
70
70
|
'class'
|
|
71
71
|
]);
|
|
72
|
-
return <SegmentGroup.Label asChild={local.asChild}
|
|
72
|
+
return <SegmentGroup.Label asChild={local.asChild} class={clsx(SegmentGroup_module.label, local.class)} {...others} data-slot="segment-group-label"/>;
|
|
73
73
|
}
|
|
74
74
|
function SegmentGroupItem(props) {
|
|
75
75
|
const [local, others] = splitProps(props, [
|
|
@@ -77,7 +77,7 @@ function SegmentGroupItem(props) {
|
|
|
77
77
|
'children',
|
|
78
78
|
'class'
|
|
79
79
|
]);
|
|
80
|
-
return <SegmentGroup.Item asChild={local.asChild}
|
|
80
|
+
return <SegmentGroup.Item asChild={local.asChild} class={clsx(SegmentGroup_module.item, local.class)} {...others} data-slot="segment-group-item">
|
|
81
81
|
{local.children}
|
|
82
82
|
</SegmentGroup.Item>;
|
|
83
83
|
}
|
|
@@ -86,21 +86,21 @@ function SegmentGroupItemControl(props) {
|
|
|
86
86
|
'asChild',
|
|
87
87
|
'class'
|
|
88
88
|
]);
|
|
89
|
-
return <SegmentGroup.ItemControl asChild={local.asChild}
|
|
89
|
+
return <SegmentGroup.ItemControl asChild={local.asChild} class={clsx(SegmentGroup_module.itemControl, local.class)} {...others} data-slot="segment-group-item-control"/>;
|
|
90
90
|
}
|
|
91
91
|
function SegmentGroupItemText(props) {
|
|
92
92
|
const [local, others] = splitProps(props, [
|
|
93
93
|
'asChild',
|
|
94
94
|
'class'
|
|
95
95
|
]);
|
|
96
|
-
return <SegmentGroup.ItemText asChild={local.asChild}
|
|
96
|
+
return <SegmentGroup.ItemText asChild={local.asChild} class={clsx(SegmentGroup_module.itemText, local.class)} {...others} data-slot="segment-group-item-text"/>;
|
|
97
97
|
}
|
|
98
98
|
function SegmentGroupIndicator(props) {
|
|
99
99
|
const [local, others] = splitProps(props, [
|
|
100
100
|
'asChild',
|
|
101
101
|
'class'
|
|
102
102
|
]);
|
|
103
|
-
return <SegmentGroup.Indicator asChild={local.asChild}
|
|
103
|
+
return <SegmentGroup.Indicator asChild={local.asChild} class={clsx(SegmentGroup_module.indicator, local.class)} {...others} data-slot="segment-group-indicator"/>;
|
|
104
104
|
}
|
|
105
105
|
function SegmentGroupItems(props) {
|
|
106
106
|
return <For each={props.items}>
|
|
@@ -29,7 +29,6 @@ const Select_SelectRoot = function(props) {
|
|
|
29
29
|
get asChild () {
|
|
30
30
|
return local.asChild;
|
|
31
31
|
},
|
|
32
|
-
"data-slot": "select-root",
|
|
33
32
|
get ["class"] () {
|
|
34
33
|
return clsx(Select_module.root, local.class);
|
|
35
34
|
},
|
|
@@ -40,6 +39,7 @@ const Select_SelectRoot = function(props) {
|
|
|
40
39
|
return local.unmountOnExit ?? true;
|
|
41
40
|
}
|
|
42
41
|
}, others, {
|
|
42
|
+
"data-slot": "select-root",
|
|
43
43
|
get children () {
|
|
44
44
|
return local.children;
|
|
45
45
|
}
|
|
@@ -69,7 +69,6 @@ const Select_SelectRootProvider = function(props) {
|
|
|
69
69
|
get asChild () {
|
|
70
70
|
return local.asChild;
|
|
71
71
|
},
|
|
72
|
-
"data-slot": "select-root-provider",
|
|
73
72
|
get ["class"] () {
|
|
74
73
|
return clsx(Select_module.root, local.class);
|
|
75
74
|
},
|
|
@@ -80,6 +79,7 @@ const Select_SelectRootProvider = function(props) {
|
|
|
80
79
|
return local.unmountOnExit ?? true;
|
|
81
80
|
}
|
|
82
81
|
}, others, {
|
|
82
|
+
"data-slot": "select-root-provider",
|
|
83
83
|
get children () {
|
|
84
84
|
return local.children;
|
|
85
85
|
}
|
|
@@ -92,22 +92,24 @@ function SelectLabel(props) {
|
|
|
92
92
|
'class'
|
|
93
93
|
]);
|
|
94
94
|
return createComponent(Select.Label, mergeProps({
|
|
95
|
-
"data-slot": "select-label",
|
|
96
95
|
get ["class"] () {
|
|
97
96
|
return clsx(Select_module.label, local.class);
|
|
98
97
|
}
|
|
99
|
-
}, others
|
|
98
|
+
}, others, {
|
|
99
|
+
"data-slot": "select-label"
|
|
100
|
+
}));
|
|
100
101
|
}
|
|
101
102
|
function SelectControl(props) {
|
|
102
103
|
const [local, others] = splitProps(props, [
|
|
103
104
|
'class'
|
|
104
105
|
]);
|
|
105
106
|
return createComponent(Select.Control, mergeProps({
|
|
106
|
-
"data-slot": "select-control",
|
|
107
107
|
get ["class"] () {
|
|
108
108
|
return clsx(Select_module.control, local.class);
|
|
109
109
|
}
|
|
110
|
-
}, others
|
|
110
|
+
}, others, {
|
|
111
|
+
"data-slot": "select-control"
|
|
112
|
+
}));
|
|
111
113
|
}
|
|
112
114
|
function SelectTrigger(props) {
|
|
113
115
|
const [local, others] = splitProps(props, [
|
|
@@ -118,22 +120,24 @@ function SelectTrigger(props) {
|
|
|
118
120
|
get asChild () {
|
|
119
121
|
return local.asChild;
|
|
120
122
|
},
|
|
121
|
-
"data-slot": "select-trigger",
|
|
122
123
|
get ["class"] () {
|
|
123
124
|
return clsx(!local.asChild && Select_module.trigger, local.class);
|
|
124
125
|
}
|
|
125
|
-
}, others
|
|
126
|
+
}, others, {
|
|
127
|
+
"data-slot": "select-trigger"
|
|
128
|
+
}));
|
|
126
129
|
}
|
|
127
130
|
function SelectValueText(props) {
|
|
128
131
|
const [local, others] = splitProps(props, [
|
|
129
132
|
'class'
|
|
130
133
|
]);
|
|
131
134
|
return createComponent(Select.ValueText, mergeProps({
|
|
132
|
-
"data-slot": "select-value-text",
|
|
133
135
|
get ["class"] () {
|
|
134
136
|
return clsx(Select_module.valueText, local.class);
|
|
135
137
|
}
|
|
136
|
-
}, others
|
|
138
|
+
}, others, {
|
|
139
|
+
"data-slot": "select-value-text"
|
|
140
|
+
}));
|
|
137
141
|
}
|
|
138
142
|
function SelectClearTrigger(props) {
|
|
139
143
|
const [local, others] = splitProps(props, [
|
|
@@ -155,9 +159,9 @@ function SelectClearTrigger(props) {
|
|
|
155
159
|
get ["aria-labelledby"] () {
|
|
156
160
|
return local['aria-labelledby'];
|
|
157
161
|
},
|
|
158
|
-
"data-slot": "select-clear-trigger",
|
|
159
162
|
class: triggerClass
|
|
160
163
|
}, others, {
|
|
164
|
+
"data-slot": "select-clear-trigger",
|
|
161
165
|
get children () {
|
|
162
166
|
return local.children;
|
|
163
167
|
}
|
|
@@ -177,9 +181,10 @@ function SelectClearTrigger(props) {
|
|
|
177
181
|
}
|
|
178
182
|
}));
|
|
179
183
|
},
|
|
180
|
-
"data-slot": "select-clear-trigger",
|
|
181
184
|
class: triggerClass
|
|
182
|
-
}, others
|
|
185
|
+
}, others, {
|
|
186
|
+
"data-slot": "select-clear-trigger"
|
|
187
|
+
}));
|
|
183
188
|
}
|
|
184
189
|
function SelectIndicator(props) {
|
|
185
190
|
const [local, others] = splitProps(props, [
|
|
@@ -188,11 +193,11 @@ function SelectIndicator(props) {
|
|
|
188
193
|
]);
|
|
189
194
|
const resolvedChildren = children(()=>local.children);
|
|
190
195
|
return createComponent(Select.Indicator, mergeProps({
|
|
191
|
-
"data-slot": "select-indicator",
|
|
192
196
|
get ["class"] () {
|
|
193
197
|
return clsx(Select_module.indicator, local.class);
|
|
194
198
|
}
|
|
195
199
|
}, others, {
|
|
200
|
+
"data-slot": "select-indicator",
|
|
196
201
|
get children () {
|
|
197
202
|
return resolvedChildren() ?? createComponent(ChevronUpDownIcon, {});
|
|
198
203
|
}
|
|
@@ -237,11 +242,12 @@ function SelectPositioner(props) {
|
|
|
237
242
|
return createComponent(OverlayPortal, {
|
|
238
243
|
get children () {
|
|
239
244
|
return createComponent(Select.Positioner, mergeProps({
|
|
240
|
-
"data-slot": "select-positioner",
|
|
241
245
|
get ["class"] () {
|
|
242
246
|
return clsx(Select_module.positioner, local.class);
|
|
243
247
|
}
|
|
244
|
-
}, others
|
|
248
|
+
}, others, {
|
|
249
|
+
"data-slot": "select-positioner"
|
|
250
|
+
}));
|
|
245
251
|
}
|
|
246
252
|
});
|
|
247
253
|
}
|
|
@@ -250,66 +256,72 @@ function SelectContent(props) {
|
|
|
250
256
|
'class'
|
|
251
257
|
]);
|
|
252
258
|
return createComponent(Select.Content, mergeProps({
|
|
253
|
-
"data-slot": "select-content",
|
|
254
259
|
get ["class"] () {
|
|
255
260
|
return clsx(Select_module.content, local.class);
|
|
256
261
|
}
|
|
257
|
-
}, others
|
|
262
|
+
}, others, {
|
|
263
|
+
"data-slot": "select-content"
|
|
264
|
+
}));
|
|
258
265
|
}
|
|
259
266
|
function SelectList(props) {
|
|
260
267
|
const [local, others] = splitProps(props, [
|
|
261
268
|
'class'
|
|
262
269
|
]);
|
|
263
270
|
return createComponent(Select.List, mergeProps({
|
|
264
|
-
"data-slot": "select-list",
|
|
265
271
|
get ["class"] () {
|
|
266
272
|
return clsx(Select_module.list, local.class);
|
|
267
273
|
}
|
|
268
|
-
}, others
|
|
274
|
+
}, others, {
|
|
275
|
+
"data-slot": "select-list"
|
|
276
|
+
}));
|
|
269
277
|
}
|
|
270
278
|
function SelectItemGroup(props) {
|
|
271
279
|
const [local, others] = splitProps(props, [
|
|
272
280
|
'class'
|
|
273
281
|
]);
|
|
274
282
|
return createComponent(Select.ItemGroup, mergeProps({
|
|
275
|
-
"data-slot": "select-item-group",
|
|
276
283
|
get ["class"] () {
|
|
277
284
|
return clsx(Select_module.itemGroup, local.class);
|
|
278
285
|
}
|
|
279
|
-
}, others
|
|
286
|
+
}, others, {
|
|
287
|
+
"data-slot": "select-item-group"
|
|
288
|
+
}));
|
|
280
289
|
}
|
|
281
290
|
function SelectItemGroupLabel(props) {
|
|
282
291
|
const [local, others] = splitProps(props, [
|
|
283
292
|
'class'
|
|
284
293
|
]);
|
|
285
294
|
return createComponent(Select.ItemGroupLabel, mergeProps({
|
|
286
|
-
"data-slot": "select-item-group-label",
|
|
287
295
|
get ["class"] () {
|
|
288
296
|
return clsx(Select_module.itemGroupLabel, local.class);
|
|
289
297
|
}
|
|
290
|
-
}, others
|
|
298
|
+
}, others, {
|
|
299
|
+
"data-slot": "select-item-group-label"
|
|
300
|
+
}));
|
|
291
301
|
}
|
|
292
302
|
function SelectItem(props) {
|
|
293
303
|
const [local, others] = splitProps(props, [
|
|
294
304
|
'class'
|
|
295
305
|
]);
|
|
296
306
|
return createComponent(Select.Item, mergeProps({
|
|
297
|
-
"data-slot": "select-item",
|
|
298
307
|
get ["class"] () {
|
|
299
308
|
return clsx(Select_module.item, local.class);
|
|
300
309
|
}
|
|
301
|
-
}, others
|
|
310
|
+
}, others, {
|
|
311
|
+
"data-slot": "select-item"
|
|
312
|
+
}));
|
|
302
313
|
}
|
|
303
314
|
function SelectItemText(props) {
|
|
304
315
|
const [local, others] = splitProps(props, [
|
|
305
316
|
'class'
|
|
306
317
|
]);
|
|
307
318
|
return createComponent(Select.ItemText, mergeProps({
|
|
308
|
-
"data-slot": "select-item-text",
|
|
309
319
|
get ["class"] () {
|
|
310
320
|
return clsx(Select_module.itemText, local.class);
|
|
311
321
|
}
|
|
312
|
-
}, others
|
|
322
|
+
}, others, {
|
|
323
|
+
"data-slot": "select-item-text"
|
|
324
|
+
}));
|
|
313
325
|
}
|
|
314
326
|
function SelectItemIndicator(props) {
|
|
315
327
|
const [local, others] = splitProps(props, [
|
|
@@ -318,11 +330,11 @@ function SelectItemIndicator(props) {
|
|
|
318
330
|
]);
|
|
319
331
|
const resolvedChildren = children(()=>local.children);
|
|
320
332
|
return createComponent(Select.ItemIndicator, mergeProps({
|
|
321
|
-
"data-slot": "select-item-indicator",
|
|
322
333
|
get ["class"] () {
|
|
323
334
|
return clsx(Select_module.itemIndicator, local.class);
|
|
324
335
|
}
|
|
325
336
|
}, others, {
|
|
337
|
+
"data-slot": "select-item-indicator",
|
|
326
338
|
get children () {
|
|
327
339
|
return resolvedChildren() ?? createComponent(CheckIcon, {});
|
|
328
340
|
}
|
|
@@ -333,33 +345,36 @@ function SelectItemTextContent(props) {
|
|
|
333
345
|
'class'
|
|
334
346
|
]);
|
|
335
347
|
return createComponent(ark.span, mergeProps({
|
|
336
|
-
"data-slot": "select-item-text-content",
|
|
337
348
|
get ["class"] () {
|
|
338
349
|
return clsx(Select_module.itemTextContent, local.class);
|
|
339
350
|
}
|
|
340
|
-
}, others
|
|
351
|
+
}, others, {
|
|
352
|
+
"data-slot": "select-item-text-content"
|
|
353
|
+
}));
|
|
341
354
|
}
|
|
342
355
|
function SelectItemTextIcon(props) {
|
|
343
356
|
const [local, others] = splitProps(props, [
|
|
344
357
|
'class'
|
|
345
358
|
]);
|
|
346
359
|
return createComponent(ark.span, mergeProps({
|
|
347
|
-
"data-slot": "select-item-text-icon",
|
|
348
360
|
get ["class"] () {
|
|
349
361
|
return clsx(Select_module.itemTextIcon, local.class);
|
|
350
362
|
}
|
|
351
|
-
}, others
|
|
363
|
+
}, others, {
|
|
364
|
+
"data-slot": "select-item-text-icon"
|
|
365
|
+
}));
|
|
352
366
|
}
|
|
353
367
|
function SelectItemTextLabel(props) {
|
|
354
368
|
const [local, others] = splitProps(props, [
|
|
355
369
|
'class'
|
|
356
370
|
]);
|
|
357
371
|
return createComponent(ark.span, mergeProps({
|
|
358
|
-
"data-slot": "select-item-text-label",
|
|
359
372
|
get ["class"] () {
|
|
360
373
|
return clsx(Select_module.itemTextLabel, local.class);
|
|
361
374
|
}
|
|
362
|
-
}, others
|
|
375
|
+
}, others, {
|
|
376
|
+
"data-slot": "select-item-text-label"
|
|
377
|
+
}));
|
|
363
378
|
}
|
|
364
379
|
const Select_Select = Object.assign(Select_SelectRoot, {
|
|
365
380
|
Root: Select_SelectRoot,
|
|
@@ -17,7 +17,7 @@ const Select_SelectRoot = function(props) {
|
|
|
17
17
|
'unmountOnExit'
|
|
18
18
|
]);
|
|
19
19
|
return <OverlayPortalProvider portalled={local.portalled} portalRef={local.portalRef}>
|
|
20
|
-
<Select.Root asChild={local.asChild}
|
|
20
|
+
<Select.Root asChild={local.asChild} class={clsx(Select_module.root, local.class)} lazyMount={local.lazyMount ?? true} unmountOnExit={local.unmountOnExit ?? true} {...others} data-slot="select-root">
|
|
21
21
|
{local.children}
|
|
22
22
|
</Select.Root>
|
|
23
23
|
</OverlayPortalProvider>;
|
|
@@ -33,7 +33,7 @@ const Select_SelectRootProvider = function(props) {
|
|
|
33
33
|
'unmountOnExit'
|
|
34
34
|
]);
|
|
35
35
|
return <OverlayPortalProvider portalled={local.portalled} portalRef={local.portalRef}>
|
|
36
|
-
<Select.RootProvider asChild={local.asChild}
|
|
36
|
+
<Select.RootProvider asChild={local.asChild} class={clsx(Select_module.root, local.class)} lazyMount={local.lazyMount ?? true} unmountOnExit={local.unmountOnExit ?? true} {...others} data-slot="select-root-provider">
|
|
37
37
|
{local.children}
|
|
38
38
|
</Select.RootProvider>
|
|
39
39
|
</OverlayPortalProvider>;
|
|
@@ -42,26 +42,26 @@ function SelectLabel(props) {
|
|
|
42
42
|
const [local, others] = splitProps(props, [
|
|
43
43
|
'class'
|
|
44
44
|
]);
|
|
45
|
-
return <Select.Label
|
|
45
|
+
return <Select.Label class={clsx(Select_module.label, local.class)} {...others} data-slot="select-label"/>;
|
|
46
46
|
}
|
|
47
47
|
function SelectControl(props) {
|
|
48
48
|
const [local, others] = splitProps(props, [
|
|
49
49
|
'class'
|
|
50
50
|
]);
|
|
51
|
-
return <Select.Control
|
|
51
|
+
return <Select.Control class={clsx(Select_module.control, local.class)} {...others} data-slot="select-control"/>;
|
|
52
52
|
}
|
|
53
53
|
function SelectTrigger(props) {
|
|
54
54
|
const [local, others] = splitProps(props, [
|
|
55
55
|
'asChild',
|
|
56
56
|
'class'
|
|
57
57
|
]);
|
|
58
|
-
return <Select.Trigger asChild={local.asChild}
|
|
58
|
+
return <Select.Trigger asChild={local.asChild} class={clsx(!local.asChild && Select_module.trigger, local.class)} {...others} data-slot="select-trigger"/>;
|
|
59
59
|
}
|
|
60
60
|
function SelectValueText(props) {
|
|
61
61
|
const [local, others] = splitProps(props, [
|
|
62
62
|
'class'
|
|
63
63
|
]);
|
|
64
|
-
return <Select.ValueText
|
|
64
|
+
return <Select.ValueText class={clsx(Select_module.valueText, local.class)} {...others} data-slot="select-value-text"/>;
|
|
65
65
|
}
|
|
66
66
|
function SelectClearTrigger(props) {
|
|
67
67
|
const [local, others] = splitProps(props, [
|
|
@@ -73,7 +73,7 @@ function SelectClearTrigger(props) {
|
|
|
73
73
|
]);
|
|
74
74
|
const resolvedChildren = children(()=>local.children);
|
|
75
75
|
const triggerClass = clsx(Select_module.clearTrigger, local.class);
|
|
76
|
-
if (local.asChild) return <Select.ClearTrigger asChild={local.asChild} aria-label={local['aria-label']} aria-labelledby={local['aria-labelledby']} data-slot="select-clear-trigger"
|
|
76
|
+
if (local.asChild) return <Select.ClearTrigger asChild={local.asChild} aria-label={local['aria-label']} aria-labelledby={local['aria-labelledby']} class={triggerClass} {...others} data-slot="select-clear-trigger">
|
|
77
77
|
{local.children}
|
|
78
78
|
</Select.ClearTrigger>;
|
|
79
79
|
return <Select.ClearTrigger asChild={(triggerProps)=>{
|
|
@@ -81,7 +81,7 @@ function SelectClearTrigger(props) {
|
|
|
81
81
|
return <CloseButton.Root {...resolvedProps} aria-label={local['aria-label'] ?? (null == local['aria-labelledby'] ? 'Clear selection' : void 0)} aria-labelledby={local['aria-labelledby']}>
|
|
82
82
|
{resolvedChildren()}
|
|
83
83
|
</CloseButton.Root>;
|
|
84
|
-
}} data-slot="select-clear-trigger"
|
|
84
|
+
}} class={triggerClass} {...others} data-slot="select-clear-trigger"/>;
|
|
85
85
|
}
|
|
86
86
|
function SelectIndicator(props) {
|
|
87
87
|
const [local, others] = splitProps(props, [
|
|
@@ -89,7 +89,7 @@ function SelectIndicator(props) {
|
|
|
89
89
|
'class'
|
|
90
90
|
]);
|
|
91
91
|
const resolvedChildren = children(()=>local.children);
|
|
92
|
-
return <Select.Indicator
|
|
92
|
+
return <Select.Indicator class={clsx(Select_module.indicator, local.class)} {...others} data-slot="select-indicator">
|
|
93
93
|
{resolvedChildren() ?? <ChevronUpDownIcon/>}
|
|
94
94
|
</Select.Indicator>;
|
|
95
95
|
}
|
|
@@ -112,44 +112,44 @@ function SelectPositioner(props) {
|
|
|
112
112
|
'class'
|
|
113
113
|
]);
|
|
114
114
|
return <OverlayPortal>
|
|
115
|
-
<Select.Positioner
|
|
115
|
+
<Select.Positioner class={clsx(Select_module.positioner, local.class)} {...others} data-slot="select-positioner"/>
|
|
116
116
|
</OverlayPortal>;
|
|
117
117
|
}
|
|
118
118
|
function SelectContent(props) {
|
|
119
119
|
const [local, others] = splitProps(props, [
|
|
120
120
|
'class'
|
|
121
121
|
]);
|
|
122
|
-
return <Select.Content
|
|
122
|
+
return <Select.Content class={clsx(Select_module.content, local.class)} {...others} data-slot="select-content"/>;
|
|
123
123
|
}
|
|
124
124
|
function SelectList(props) {
|
|
125
125
|
const [local, others] = splitProps(props, [
|
|
126
126
|
'class'
|
|
127
127
|
]);
|
|
128
|
-
return <Select.List
|
|
128
|
+
return <Select.List class={clsx(Select_module.list, local.class)} {...others} data-slot="select-list"/>;
|
|
129
129
|
}
|
|
130
130
|
function SelectItemGroup(props) {
|
|
131
131
|
const [local, others] = splitProps(props, [
|
|
132
132
|
'class'
|
|
133
133
|
]);
|
|
134
|
-
return <Select.ItemGroup
|
|
134
|
+
return <Select.ItemGroup class={clsx(Select_module.itemGroup, local.class)} {...others} data-slot="select-item-group"/>;
|
|
135
135
|
}
|
|
136
136
|
function SelectItemGroupLabel(props) {
|
|
137
137
|
const [local, others] = splitProps(props, [
|
|
138
138
|
'class'
|
|
139
139
|
]);
|
|
140
|
-
return <Select.ItemGroupLabel
|
|
140
|
+
return <Select.ItemGroupLabel class={clsx(Select_module.itemGroupLabel, local.class)} {...others} data-slot="select-item-group-label"/>;
|
|
141
141
|
}
|
|
142
142
|
function SelectItem(props) {
|
|
143
143
|
const [local, others] = splitProps(props, [
|
|
144
144
|
'class'
|
|
145
145
|
]);
|
|
146
|
-
return <Select.Item
|
|
146
|
+
return <Select.Item class={clsx(Select_module.item, local.class)} {...others} data-slot="select-item"/>;
|
|
147
147
|
}
|
|
148
148
|
function SelectItemText(props) {
|
|
149
149
|
const [local, others] = splitProps(props, [
|
|
150
150
|
'class'
|
|
151
151
|
]);
|
|
152
|
-
return <Select.ItemText
|
|
152
|
+
return <Select.ItemText class={clsx(Select_module.itemText, local.class)} {...others} data-slot="select-item-text"/>;
|
|
153
153
|
}
|
|
154
154
|
function SelectItemIndicator(props) {
|
|
155
155
|
const [local, others] = splitProps(props, [
|
|
@@ -157,7 +157,7 @@ function SelectItemIndicator(props) {
|
|
|
157
157
|
'class'
|
|
158
158
|
]);
|
|
159
159
|
const resolvedChildren = children(()=>local.children);
|
|
160
|
-
return <Select.ItemIndicator
|
|
160
|
+
return <Select.ItemIndicator class={clsx(Select_module.itemIndicator, local.class)} {...others} data-slot="select-item-indicator">
|
|
161
161
|
{resolvedChildren() ?? <CheckIcon/>}
|
|
162
162
|
</Select.ItemIndicator>;
|
|
163
163
|
}
|
|
@@ -165,19 +165,19 @@ function SelectItemTextContent(props) {
|
|
|
165
165
|
const [local, others] = splitProps(props, [
|
|
166
166
|
'class'
|
|
167
167
|
]);
|
|
168
|
-
return <ark.span
|
|
168
|
+
return <ark.span class={clsx(Select_module.itemTextContent, local.class)} {...others} data-slot="select-item-text-content"/>;
|
|
169
169
|
}
|
|
170
170
|
function SelectItemTextIcon(props) {
|
|
171
171
|
const [local, others] = splitProps(props, [
|
|
172
172
|
'class'
|
|
173
173
|
]);
|
|
174
|
-
return <ark.span
|
|
174
|
+
return <ark.span class={clsx(Select_module.itemTextIcon, local.class)} {...others} data-slot="select-item-text-icon"/>;
|
|
175
175
|
}
|
|
176
176
|
function SelectItemTextLabel(props) {
|
|
177
177
|
const [local, others] = splitProps(props, [
|
|
178
178
|
'class'
|
|
179
179
|
]);
|
|
180
|
-
return <ark.span
|
|
180
|
+
return <ark.span class={clsx(Select_module.itemTextLabel, local.class)} {...others} data-slot="select-item-text-label"/>;
|
|
181
181
|
}
|
|
182
182
|
const Select_Select = Object.assign(Select_SelectRoot, {
|
|
183
183
|
Root: Select_SelectRoot,
|