@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
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
gap: var(--moduix-button-content-gap, var(--moduix-spacing-2));
|
|
7
7
|
border: var(--moduix-button-border-width, var(--moduix-border-width-sm)) solid transparent;
|
|
8
8
|
border-radius: var(--moduix-button-radius, var(--moduix-radius-md));
|
|
9
|
-
color: var(--moduix-button-color, var(--moduix-color-foreground));
|
|
10
9
|
appearance: none;
|
|
11
10
|
font: inherit;
|
|
12
11
|
font-size: var(--moduix-button-font-size, var(--moduix-text-sm));
|
|
@@ -22,13 +21,12 @@
|
|
|
22
21
|
opacity var(--moduix-button-transition, var(--moduix-transition-default)),
|
|
23
22
|
transform var(--moduix-button-transition, var(--moduix-transition-default));
|
|
24
23
|
background-color: #0000;
|
|
25
|
-
outline: 0;
|
|
26
24
|
margin: 0;
|
|
27
25
|
text-decoration: none;
|
|
28
26
|
display: inline-flex;
|
|
29
27
|
}
|
|
30
28
|
|
|
31
|
-
.root-RR_712:focus
|
|
29
|
+
.root-RR_712:focus-visible {
|
|
32
30
|
outline: var(--moduix-button-focus-ring-width, var(--moduix-focus-ring-width, var(--moduix-border-width-md)))
|
|
33
31
|
solid var(--moduix-button-focus-ring-color, var(--moduix-color-ring));
|
|
34
32
|
outline-offset: calc(var(--moduix-button-focus-ring-offset, var(--moduix-button-border-width, var(--moduix-border-width-sm))) *
|
|
@@ -38,13 +38,14 @@ function CardHeader(props) {
|
|
|
38
38
|
get asChild () {
|
|
39
39
|
return local.asChild;
|
|
40
40
|
},
|
|
41
|
-
"data-scope": "card",
|
|
42
|
-
"data-part": "header",
|
|
43
|
-
"data-slot": "card-header",
|
|
44
41
|
get ["class"] () {
|
|
45
42
|
return clsx(Card_module.header, local.class);
|
|
46
43
|
}
|
|
47
|
-
}, others
|
|
44
|
+
}, others, {
|
|
45
|
+
"data-scope": "card",
|
|
46
|
+
"data-part": "header",
|
|
47
|
+
"data-slot": "card-header"
|
|
48
|
+
}));
|
|
48
49
|
}
|
|
49
50
|
function CardBody(props) {
|
|
50
51
|
const [local, others] = splitProps(props, [
|
|
@@ -55,13 +56,14 @@ function CardBody(props) {
|
|
|
55
56
|
get asChild () {
|
|
56
57
|
return local.asChild;
|
|
57
58
|
},
|
|
58
|
-
"data-scope": "card",
|
|
59
|
-
"data-part": "body",
|
|
60
|
-
"data-slot": "card-body",
|
|
61
59
|
get ["class"] () {
|
|
62
60
|
return clsx(Card_module.body, local.class);
|
|
63
61
|
}
|
|
64
|
-
}, others
|
|
62
|
+
}, others, {
|
|
63
|
+
"data-scope": "card",
|
|
64
|
+
"data-part": "body",
|
|
65
|
+
"data-slot": "card-body"
|
|
66
|
+
}));
|
|
65
67
|
}
|
|
66
68
|
function CardMedia(props) {
|
|
67
69
|
const [local, others] = splitProps(props, [
|
|
@@ -72,13 +74,14 @@ function CardMedia(props) {
|
|
|
72
74
|
get asChild () {
|
|
73
75
|
return local.asChild;
|
|
74
76
|
},
|
|
75
|
-
"data-scope": "card",
|
|
76
|
-
"data-part": "media",
|
|
77
|
-
"data-slot": "card-media",
|
|
78
77
|
get ["class"] () {
|
|
79
78
|
return clsx(Card_module.media, local.class);
|
|
80
79
|
}
|
|
81
|
-
}, others
|
|
80
|
+
}, others, {
|
|
81
|
+
"data-scope": "card",
|
|
82
|
+
"data-part": "media",
|
|
83
|
+
"data-slot": "card-media"
|
|
84
|
+
}));
|
|
82
85
|
}
|
|
83
86
|
function CardBackground(props) {
|
|
84
87
|
const [local, others] = splitProps(props, [
|
|
@@ -89,13 +92,14 @@ function CardBackground(props) {
|
|
|
89
92
|
get asChild () {
|
|
90
93
|
return local.asChild;
|
|
91
94
|
},
|
|
92
|
-
"data-scope": "card",
|
|
93
|
-
"data-part": "background",
|
|
94
|
-
"data-slot": "card-background",
|
|
95
95
|
get ["class"] () {
|
|
96
96
|
return clsx(Card_module.background, local.class);
|
|
97
97
|
}
|
|
98
|
-
}, others
|
|
98
|
+
}, others, {
|
|
99
|
+
"data-scope": "card",
|
|
100
|
+
"data-part": "background",
|
|
101
|
+
"data-slot": "card-background"
|
|
102
|
+
}));
|
|
99
103
|
}
|
|
100
104
|
function CardFooter(props) {
|
|
101
105
|
const [local, others] = splitProps(props, [
|
|
@@ -106,13 +110,14 @@ function CardFooter(props) {
|
|
|
106
110
|
get asChild () {
|
|
107
111
|
return local.asChild;
|
|
108
112
|
},
|
|
109
|
-
"data-scope": "card",
|
|
110
|
-
"data-part": "footer",
|
|
111
|
-
"data-slot": "card-footer",
|
|
112
113
|
get ["class"] () {
|
|
113
114
|
return clsx(Card_module.footer, local.class);
|
|
114
115
|
}
|
|
115
|
-
}, others
|
|
116
|
+
}, others, {
|
|
117
|
+
"data-scope": "card",
|
|
118
|
+
"data-part": "footer",
|
|
119
|
+
"data-slot": "card-footer"
|
|
120
|
+
}));
|
|
116
121
|
}
|
|
117
122
|
function CardTitle(props) {
|
|
118
123
|
const [local, others] = splitProps(props, [
|
|
@@ -123,13 +128,14 @@ function CardTitle(props) {
|
|
|
123
128
|
get asChild () {
|
|
124
129
|
return local.asChild;
|
|
125
130
|
},
|
|
126
|
-
"data-scope": "card",
|
|
127
|
-
"data-part": "title",
|
|
128
|
-
"data-slot": "card-title",
|
|
129
131
|
get ["class"] () {
|
|
130
132
|
return clsx(Card_module.title, local.class);
|
|
131
133
|
}
|
|
132
|
-
}, others
|
|
134
|
+
}, others, {
|
|
135
|
+
"data-scope": "card",
|
|
136
|
+
"data-part": "title",
|
|
137
|
+
"data-slot": "card-title"
|
|
138
|
+
}));
|
|
133
139
|
}
|
|
134
140
|
function CardDescription(props) {
|
|
135
141
|
const [local, others] = splitProps(props, [
|
|
@@ -140,13 +146,14 @@ function CardDescription(props) {
|
|
|
140
146
|
get asChild () {
|
|
141
147
|
return local.asChild;
|
|
142
148
|
},
|
|
143
|
-
"data-scope": "card",
|
|
144
|
-
"data-part": "description",
|
|
145
|
-
"data-slot": "card-description",
|
|
146
149
|
get ["class"] () {
|
|
147
150
|
return clsx(Card_module.description, local.class);
|
|
148
151
|
}
|
|
149
|
-
}, others
|
|
152
|
+
}, others, {
|
|
153
|
+
"data-scope": "card",
|
|
154
|
+
"data-part": "description",
|
|
155
|
+
"data-slot": "card-description"
|
|
156
|
+
}));
|
|
150
157
|
}
|
|
151
158
|
function CardAction(props) {
|
|
152
159
|
const [local, others] = splitProps(props, [
|
|
@@ -157,13 +164,14 @@ function CardAction(props) {
|
|
|
157
164
|
get asChild () {
|
|
158
165
|
return local.asChild;
|
|
159
166
|
},
|
|
160
|
-
"data-scope": "card",
|
|
161
|
-
"data-part": "action",
|
|
162
|
-
"data-slot": "card-action",
|
|
163
167
|
get ["class"] () {
|
|
164
168
|
return clsx(Card_module.action, local.class);
|
|
165
169
|
}
|
|
166
|
-
}, others
|
|
170
|
+
}, others, {
|
|
171
|
+
"data-scope": "card",
|
|
172
|
+
"data-part": "action",
|
|
173
|
+
"data-slot": "card-action"
|
|
174
|
+
}));
|
|
167
175
|
}
|
|
168
176
|
function CardLink(props) {
|
|
169
177
|
const [local, others] = splitProps(props, [
|
|
@@ -174,13 +182,14 @@ function CardLink(props) {
|
|
|
174
182
|
get asChild () {
|
|
175
183
|
return local.asChild;
|
|
176
184
|
},
|
|
177
|
-
"data-scope": "card",
|
|
178
|
-
"data-part": "link",
|
|
179
|
-
"data-slot": "card-link",
|
|
180
185
|
get ["class"] () {
|
|
181
186
|
return clsx(Card_module.link, local.class);
|
|
182
187
|
}
|
|
183
|
-
}, others
|
|
188
|
+
}, others, {
|
|
189
|
+
"data-scope": "card",
|
|
190
|
+
"data-part": "link",
|
|
191
|
+
"data-slot": "card-link"
|
|
192
|
+
}));
|
|
184
193
|
}
|
|
185
194
|
const Card = Object.assign(CardRoot, {
|
|
186
195
|
Root: CardRoot,
|
|
@@ -16,63 +16,63 @@ function CardHeader(props) {
|
|
|
16
16
|
'asChild',
|
|
17
17
|
'class'
|
|
18
18
|
]);
|
|
19
|
-
return <ark.div asChild={local.asChild} data-scope="card" data-part="header" data-slot="card-header"
|
|
19
|
+
return <ark.div asChild={local.asChild} class={clsx(Card_module.header, local.class)} {...others} data-scope="card" data-part="header" data-slot="card-header"/>;
|
|
20
20
|
}
|
|
21
21
|
function CardBody(props) {
|
|
22
22
|
const [local, others] = splitProps(props, [
|
|
23
23
|
'asChild',
|
|
24
24
|
'class'
|
|
25
25
|
]);
|
|
26
|
-
return <ark.div asChild={local.asChild} data-scope="card" data-part="body" data-slot="card-body"
|
|
26
|
+
return <ark.div asChild={local.asChild} class={clsx(Card_module.body, local.class)} {...others} data-scope="card" data-part="body" data-slot="card-body"/>;
|
|
27
27
|
}
|
|
28
28
|
function CardMedia(props) {
|
|
29
29
|
const [local, others] = splitProps(props, [
|
|
30
30
|
'asChild',
|
|
31
31
|
'class'
|
|
32
32
|
]);
|
|
33
|
-
return <ark.div asChild={local.asChild} data-scope="card" data-part="media" data-slot="card-media"
|
|
33
|
+
return <ark.div asChild={local.asChild} class={clsx(Card_module.media, local.class)} {...others} data-scope="card" data-part="media" data-slot="card-media"/>;
|
|
34
34
|
}
|
|
35
35
|
function CardBackground(props) {
|
|
36
36
|
const [local, others] = splitProps(props, [
|
|
37
37
|
'asChild',
|
|
38
38
|
'class'
|
|
39
39
|
]);
|
|
40
|
-
return <ark.div asChild={local.asChild} data-scope="card" data-part="background" data-slot="card-background"
|
|
40
|
+
return <ark.div asChild={local.asChild} class={clsx(Card_module.background, local.class)} {...others} data-scope="card" data-part="background" data-slot="card-background"/>;
|
|
41
41
|
}
|
|
42
42
|
function CardFooter(props) {
|
|
43
43
|
const [local, others] = splitProps(props, [
|
|
44
44
|
'asChild',
|
|
45
45
|
'class'
|
|
46
46
|
]);
|
|
47
|
-
return <ark.div asChild={local.asChild} data-scope="card" data-part="footer" data-slot="card-footer"
|
|
47
|
+
return <ark.div asChild={local.asChild} class={clsx(Card_module.footer, local.class)} {...others} data-scope="card" data-part="footer" data-slot="card-footer"/>;
|
|
48
48
|
}
|
|
49
49
|
function CardTitle(props) {
|
|
50
50
|
const [local, others] = splitProps(props, [
|
|
51
51
|
'asChild',
|
|
52
52
|
'class'
|
|
53
53
|
]);
|
|
54
|
-
return <ark.h3 asChild={local.asChild} data-scope="card" data-part="title" data-slot="card-title"
|
|
54
|
+
return <ark.h3 asChild={local.asChild} class={clsx(Card_module.title, local.class)} {...others} data-scope="card" data-part="title" data-slot="card-title"/>;
|
|
55
55
|
}
|
|
56
56
|
function CardDescription(props) {
|
|
57
57
|
const [local, others] = splitProps(props, [
|
|
58
58
|
'asChild',
|
|
59
59
|
'class'
|
|
60
60
|
]);
|
|
61
|
-
return <ark.p asChild={local.asChild} data-scope="card" data-part="description" data-slot="card-description"
|
|
61
|
+
return <ark.p asChild={local.asChild} class={clsx(Card_module.description, local.class)} {...others} data-scope="card" data-part="description" data-slot="card-description"/>;
|
|
62
62
|
}
|
|
63
63
|
function CardAction(props) {
|
|
64
64
|
const [local, others] = splitProps(props, [
|
|
65
65
|
'asChild',
|
|
66
66
|
'class'
|
|
67
67
|
]);
|
|
68
|
-
return <ark.div asChild={local.asChild} data-scope="card" data-part="action" data-slot="card-action"
|
|
68
|
+
return <ark.div asChild={local.asChild} class={clsx(Card_module.action, local.class)} {...others} data-scope="card" data-part="action" data-slot="card-action"/>;
|
|
69
69
|
}
|
|
70
70
|
function CardLink(props) {
|
|
71
71
|
const [local, others] = splitProps(props, [
|
|
72
72
|
'asChild',
|
|
73
73
|
'class'
|
|
74
74
|
]);
|
|
75
|
-
return <ark.a asChild={local.asChild} data-scope="card" data-part="link" data-slot="card-link"
|
|
75
|
+
return <ark.a asChild={local.asChild} class={clsx(Card_module.link, local.class)} {...others} data-scope="card" data-part="link" data-slot="card-link"/>;
|
|
76
76
|
}
|
|
77
77
|
const Card = Object.assign(CardRoot, {
|
|
78
78
|
Root: CardRoot,
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
z-index: 1;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.root-aWX0Lo:has([data-scope="card"][data-part="link"]) :where(a, button, input, select, textarea, [role="button"], [role="checkbox"], [role="menuitem"], [role="switch"], [tabindex]:not([tabindex="-1"])):not([data-scope="card"][data-part="link"]) {
|
|
77
|
+
.root-aWX0Lo:has([data-scope="card"][data-part="link"]) :where(a, button, input, select, textarea, summary, audio[controls], video[controls], iframe, [contenteditable="true"], [role="button"], [role="checkbox"], [role="menuitem"], [role="switch"], [tabindex]:not([tabindex="-1"])):not([data-scope="card"][data-part="link"]) {
|
|
78
78
|
z-index: 1;
|
|
79
79
|
position: relative;
|
|
80
80
|
}
|
|
@@ -9,7 +9,7 @@ declare function CarouselPrevTrigger(props: ComponentProps<typeof CarouselPrimit
|
|
|
9
9
|
declare function CarouselNextTrigger(props: ComponentProps<typeof CarouselPrimitive.NextTrigger>): import("solid-js").JSX.Element;
|
|
10
10
|
declare function CarouselIndicatorGroup(props: ComponentProps<typeof CarouselPrimitive.IndicatorGroup>): import("solid-js").JSX.Element;
|
|
11
11
|
declare function CarouselIndicator(props: ComponentProps<typeof CarouselPrimitive.Indicator>): import("solid-js").JSX.Element;
|
|
12
|
-
type CarouselIndicatorsProps = ComponentProps<typeof CarouselPrimitive.IndicatorGroup> & {
|
|
12
|
+
type CarouselIndicatorsProps = Omit<ComponentProps<typeof CarouselPrimitive.IndicatorGroup>, 'asChild' | 'children'> & {
|
|
13
13
|
indicatorClassName?: string;
|
|
14
14
|
};
|
|
15
15
|
declare function CarouselIndicators(props: CarouselIndicatorsProps): import("solid-js").JSX.Element;
|
|
@@ -10,55 +10,60 @@ function CarouselRoot(props) {
|
|
|
10
10
|
'class'
|
|
11
11
|
]);
|
|
12
12
|
return createComponent(Carousel.Root, mergeProps({
|
|
13
|
-
"data-slot": "carousel-root",
|
|
14
13
|
get ["class"] () {
|
|
15
14
|
return clsx(Carousel_module.root, local.class);
|
|
16
15
|
}
|
|
17
|
-
}, others
|
|
16
|
+
}, others, {
|
|
17
|
+
"data-slot": "carousel-root"
|
|
18
|
+
}));
|
|
18
19
|
}
|
|
19
20
|
function CarouselRootProvider(props) {
|
|
20
21
|
const [local, others] = splitProps(props, [
|
|
21
22
|
'class'
|
|
22
23
|
]);
|
|
23
24
|
return createComponent(Carousel.RootProvider, mergeProps({
|
|
24
|
-
"data-slot": "carousel-root-provider",
|
|
25
25
|
get ["class"] () {
|
|
26
26
|
return clsx(Carousel_module.root, local.class);
|
|
27
27
|
}
|
|
28
|
-
}, others
|
|
28
|
+
}, others, {
|
|
29
|
+
"data-slot": "carousel-root-provider"
|
|
30
|
+
}));
|
|
29
31
|
}
|
|
30
32
|
function CarouselControl(props) {
|
|
31
33
|
const [local, others] = splitProps(props, [
|
|
32
34
|
'class'
|
|
33
35
|
]);
|
|
34
36
|
return createComponent(Carousel.Control, mergeProps({
|
|
35
|
-
"data-slot": "carousel-control",
|
|
36
37
|
get ["class"] () {
|
|
37
38
|
return clsx(Carousel_module.control, local.class);
|
|
38
39
|
}
|
|
39
|
-
}, others
|
|
40
|
+
}, others, {
|
|
41
|
+
"data-slot": "carousel-control"
|
|
42
|
+
}));
|
|
40
43
|
}
|
|
41
44
|
function CarouselItemGroup(props) {
|
|
42
45
|
const [local, others] = splitProps(props, [
|
|
43
46
|
'class'
|
|
44
47
|
]);
|
|
45
48
|
return createComponent(Carousel.ItemGroup, mergeProps({
|
|
46
|
-
"data-slot": "carousel-item-group",
|
|
47
49
|
get ["class"] () {
|
|
48
50
|
return clsx(Carousel_module.itemGroup, local.class);
|
|
49
51
|
}
|
|
50
|
-
}, others
|
|
52
|
+
}, others, {
|
|
53
|
+
"data-slot": "carousel-item-group"
|
|
54
|
+
}));
|
|
51
55
|
}
|
|
52
56
|
function CarouselItem(props) {
|
|
53
57
|
const [local, others] = splitProps(props, [
|
|
54
58
|
'class'
|
|
55
59
|
]);
|
|
56
60
|
return createComponent(Carousel.Item, mergeProps({
|
|
57
|
-
"data-slot": "carousel-item",
|
|
58
61
|
get ["class"] () {
|
|
59
62
|
return clsx(Carousel_module.item, local.class);
|
|
60
63
|
}
|
|
61
|
-
}, others
|
|
64
|
+
}, others, {
|
|
65
|
+
"data-slot": "carousel-item"
|
|
66
|
+
}));
|
|
62
67
|
}
|
|
63
68
|
function CarouselPrevTrigger(props) {
|
|
64
69
|
const [local, others] = splitProps(props, [
|
|
@@ -71,11 +76,11 @@ function CarouselPrevTrigger(props) {
|
|
|
71
76
|
get asChild () {
|
|
72
77
|
return local.asChild;
|
|
73
78
|
},
|
|
74
|
-
"data-slot": "carousel-prev-trigger",
|
|
75
79
|
get ["class"] () {
|
|
76
80
|
return clsx(Carousel_module.prevTrigger, local.class);
|
|
77
81
|
}
|
|
78
82
|
}, others, {
|
|
83
|
+
"data-slot": "carousel-prev-trigger",
|
|
79
84
|
get children () {
|
|
80
85
|
return resolvedChildren() ?? (()=>{
|
|
81
86
|
var _el$ = _tmpl$();
|
|
@@ -97,11 +102,11 @@ function CarouselNextTrigger(props) {
|
|
|
97
102
|
get asChild () {
|
|
98
103
|
return local.asChild;
|
|
99
104
|
},
|
|
100
|
-
"data-slot": "carousel-next-trigger",
|
|
101
105
|
get ["class"] () {
|
|
102
106
|
return clsx(Carousel_module.nextTrigger, local.class);
|
|
103
107
|
}
|
|
104
108
|
}, others, {
|
|
109
|
+
"data-slot": "carousel-next-trigger",
|
|
105
110
|
get children () {
|
|
106
111
|
return resolvedChildren() ?? (()=>{
|
|
107
112
|
var _el$2 = _tmpl$();
|
|
@@ -117,27 +122,28 @@ function CarouselIndicatorGroup(props) {
|
|
|
117
122
|
'class'
|
|
118
123
|
]);
|
|
119
124
|
return createComponent(Carousel.IndicatorGroup, mergeProps({
|
|
120
|
-
"data-slot": "carousel-indicator-group",
|
|
121
125
|
get ["class"] () {
|
|
122
126
|
return clsx(Carousel_module.indicatorGroup, local.class);
|
|
123
127
|
}
|
|
124
|
-
}, others
|
|
128
|
+
}, others, {
|
|
129
|
+
"data-slot": "carousel-indicator-group"
|
|
130
|
+
}));
|
|
125
131
|
}
|
|
126
132
|
function CarouselIndicator(props) {
|
|
127
133
|
const [local, others] = splitProps(props, [
|
|
128
134
|
'class'
|
|
129
135
|
]);
|
|
130
136
|
return createComponent(Carousel.Indicator, mergeProps({
|
|
131
|
-
"data-slot": "carousel-indicator",
|
|
132
137
|
get ["class"] () {
|
|
133
138
|
return clsx(Carousel_module.indicator, local.class);
|
|
134
139
|
}
|
|
135
|
-
}, others
|
|
140
|
+
}, others, {
|
|
141
|
+
"data-slot": "carousel-indicator"
|
|
142
|
+
}));
|
|
136
143
|
}
|
|
137
144
|
function CarouselIndicators(props) {
|
|
138
145
|
const [local, others] = splitProps(props, [
|
|
139
146
|
'class',
|
|
140
|
-
'children',
|
|
141
147
|
'indicatorClassName'
|
|
142
148
|
]);
|
|
143
149
|
return createComponent(Carousel.Context, {
|
|
@@ -169,33 +175,36 @@ function CarouselAutoplayTrigger(props) {
|
|
|
169
175
|
'class'
|
|
170
176
|
]);
|
|
171
177
|
return createComponent(Carousel.AutoplayTrigger, mergeProps({
|
|
172
|
-
"data-slot": "carousel-autoplay-trigger",
|
|
173
178
|
get ["class"] () {
|
|
174
179
|
return clsx(Carousel_module.autoplayTrigger, local.class);
|
|
175
180
|
}
|
|
176
|
-
}, others
|
|
181
|
+
}, others, {
|
|
182
|
+
"data-slot": "carousel-autoplay-trigger"
|
|
183
|
+
}));
|
|
177
184
|
}
|
|
178
185
|
function CarouselAutoplayIndicator(props) {
|
|
179
186
|
const [local, others] = splitProps(props, [
|
|
180
187
|
'class'
|
|
181
188
|
]);
|
|
182
189
|
return createComponent(Carousel.AutoplayIndicator, mergeProps({
|
|
183
|
-
"data-slot": "carousel-autoplay-indicator",
|
|
184
190
|
get ["class"] () {
|
|
185
191
|
return clsx(Carousel_module.autoplayIndicator, local.class);
|
|
186
192
|
}
|
|
187
|
-
}, others
|
|
193
|
+
}, others, {
|
|
194
|
+
"data-slot": "carousel-autoplay-indicator"
|
|
195
|
+
}));
|
|
188
196
|
}
|
|
189
197
|
function CarouselProgressText(props) {
|
|
190
198
|
const [local, others] = splitProps(props, [
|
|
191
199
|
'class'
|
|
192
200
|
]);
|
|
193
201
|
return createComponent(Carousel.ProgressText, mergeProps({
|
|
194
|
-
"data-slot": "carousel-progress-text",
|
|
195
202
|
get ["class"] () {
|
|
196
203
|
return clsx(Carousel_module.progressText, local.class);
|
|
197
204
|
}
|
|
198
|
-
}, others
|
|
205
|
+
}, others, {
|
|
206
|
+
"data-slot": "carousel-progress-text"
|
|
207
|
+
}));
|
|
199
208
|
}
|
|
200
209
|
const Carousel_Carousel = Object.assign(CarouselRoot, {
|
|
201
210
|
Root: CarouselRoot,
|
|
@@ -7,31 +7,31 @@ function CarouselRoot(props) {
|
|
|
7
7
|
const [local, others] = splitProps(props, [
|
|
8
8
|
'class'
|
|
9
9
|
]);
|
|
10
|
-
return <Carousel.Root
|
|
10
|
+
return <Carousel.Root class={clsx(Carousel_module.root, local.class)} {...others} data-slot="carousel-root"/>;
|
|
11
11
|
}
|
|
12
12
|
function CarouselRootProvider(props) {
|
|
13
13
|
const [local, others] = splitProps(props, [
|
|
14
14
|
'class'
|
|
15
15
|
]);
|
|
16
|
-
return <Carousel.RootProvider
|
|
16
|
+
return <Carousel.RootProvider class={clsx(Carousel_module.root, local.class)} {...others} data-slot="carousel-root-provider"/>;
|
|
17
17
|
}
|
|
18
18
|
function CarouselControl(props) {
|
|
19
19
|
const [local, others] = splitProps(props, [
|
|
20
20
|
'class'
|
|
21
21
|
]);
|
|
22
|
-
return <Carousel.Control
|
|
22
|
+
return <Carousel.Control class={clsx(Carousel_module.control, local.class)} {...others} data-slot="carousel-control"/>;
|
|
23
23
|
}
|
|
24
24
|
function CarouselItemGroup(props) {
|
|
25
25
|
const [local, others] = splitProps(props, [
|
|
26
26
|
'class'
|
|
27
27
|
]);
|
|
28
|
-
return <Carousel.ItemGroup
|
|
28
|
+
return <Carousel.ItemGroup class={clsx(Carousel_module.itemGroup, local.class)} {...others} data-slot="carousel-item-group"/>;
|
|
29
29
|
}
|
|
30
30
|
function CarouselItem(props) {
|
|
31
31
|
const [local, others] = splitProps(props, [
|
|
32
32
|
'class'
|
|
33
33
|
]);
|
|
34
|
-
return <Carousel.Item
|
|
34
|
+
return <Carousel.Item class={clsx(Carousel_module.item, local.class)} {...others} data-slot="carousel-item"/>;
|
|
35
35
|
}
|
|
36
36
|
function CarouselPrevTrigger(props) {
|
|
37
37
|
const [local, others] = splitProps(props, [
|
|
@@ -40,7 +40,7 @@ function CarouselPrevTrigger(props) {
|
|
|
40
40
|
'class'
|
|
41
41
|
]);
|
|
42
42
|
const resolvedChildren = children(()=>local.children);
|
|
43
|
-
return <Carousel.PrevTrigger asChild={local.asChild}
|
|
43
|
+
return <Carousel.PrevTrigger asChild={local.asChild} class={clsx(Carousel_module.prevTrigger, local.class)} {...others} data-slot="carousel-prev-trigger">
|
|
44
44
|
{resolvedChildren() ?? <span class={Carousel_module.defaultIcon}>
|
|
45
45
|
<ChevronLeftIcon/>
|
|
46
46
|
</span>}
|
|
@@ -53,7 +53,7 @@ function CarouselNextTrigger(props) {
|
|
|
53
53
|
'class'
|
|
54
54
|
]);
|
|
55
55
|
const resolvedChildren = children(()=>local.children);
|
|
56
|
-
return <Carousel.NextTrigger asChild={local.asChild}
|
|
56
|
+
return <Carousel.NextTrigger asChild={local.asChild} class={clsx(Carousel_module.nextTrigger, local.class)} {...others} data-slot="carousel-next-trigger">
|
|
57
57
|
{resolvedChildren() ?? <span class={Carousel_module.defaultIcon}>
|
|
58
58
|
<ChevronRightIcon/>
|
|
59
59
|
</span>}
|
|
@@ -63,18 +63,17 @@ function CarouselIndicatorGroup(props) {
|
|
|
63
63
|
const [local, others] = splitProps(props, [
|
|
64
64
|
'class'
|
|
65
65
|
]);
|
|
66
|
-
return <Carousel.IndicatorGroup
|
|
66
|
+
return <Carousel.IndicatorGroup class={clsx(Carousel_module.indicatorGroup, local.class)} {...others} data-slot="carousel-indicator-group"/>;
|
|
67
67
|
}
|
|
68
68
|
function CarouselIndicator(props) {
|
|
69
69
|
const [local, others] = splitProps(props, [
|
|
70
70
|
'class'
|
|
71
71
|
]);
|
|
72
|
-
return <Carousel.Indicator
|
|
72
|
+
return <Carousel.Indicator class={clsx(Carousel_module.indicator, local.class)} {...others} data-slot="carousel-indicator"/>;
|
|
73
73
|
}
|
|
74
74
|
function CarouselIndicators(props) {
|
|
75
75
|
const [local, others] = splitProps(props, [
|
|
76
76
|
'class',
|
|
77
|
-
'children',
|
|
78
77
|
'indicatorClassName'
|
|
79
78
|
]);
|
|
80
79
|
return <Carousel.Context>
|
|
@@ -89,19 +88,19 @@ function CarouselAutoplayTrigger(props) {
|
|
|
89
88
|
const [local, others] = splitProps(props, [
|
|
90
89
|
'class'
|
|
91
90
|
]);
|
|
92
|
-
return <Carousel.AutoplayTrigger
|
|
91
|
+
return <Carousel.AutoplayTrigger class={clsx(Carousel_module.autoplayTrigger, local.class)} {...others} data-slot="carousel-autoplay-trigger"/>;
|
|
93
92
|
}
|
|
94
93
|
function CarouselAutoplayIndicator(props) {
|
|
95
94
|
const [local, others] = splitProps(props, [
|
|
96
95
|
'class'
|
|
97
96
|
]);
|
|
98
|
-
return <Carousel.AutoplayIndicator
|
|
97
|
+
return <Carousel.AutoplayIndicator class={clsx(Carousel_module.autoplayIndicator, local.class)} {...others} data-slot="carousel-autoplay-indicator"/>;
|
|
99
98
|
}
|
|
100
99
|
function CarouselProgressText(props) {
|
|
101
100
|
const [local, others] = splitProps(props, [
|
|
102
101
|
'class'
|
|
103
102
|
]);
|
|
104
|
-
return <Carousel.ProgressText
|
|
103
|
+
return <Carousel.ProgressText class={clsx(Carousel_module.progressText, local.class)} {...others} data-slot="carousel-progress-text"/>;
|
|
105
104
|
}
|
|
106
105
|
const Carousel_Carousel = Object.assign(CarouselRoot, {
|
|
107
106
|
Root: CarouselRoot,
|
|
@@ -16,14 +16,14 @@ function CheckboxRoot(props) {
|
|
|
16
16
|
get asChild () {
|
|
17
17
|
return local.asChild;
|
|
18
18
|
},
|
|
19
|
-
"data-slot": "checkbox-root",
|
|
20
|
-
get ["data-size"] () {
|
|
21
|
-
return local.size ?? 'md';
|
|
22
|
-
},
|
|
23
19
|
get ["class"] () {
|
|
24
20
|
return clsx(Checkbox_module.root, local.class);
|
|
25
21
|
}
|
|
26
22
|
}, others, {
|
|
23
|
+
get ["data-size"] () {
|
|
24
|
+
return local.size ?? 'md';
|
|
25
|
+
},
|
|
26
|
+
"data-slot": "checkbox-root",
|
|
27
27
|
get children () {
|
|
28
28
|
return local.children;
|
|
29
29
|
}
|
|
@@ -40,14 +40,14 @@ function CheckboxRootProvider(props) {
|
|
|
40
40
|
get asChild () {
|
|
41
41
|
return local.asChild;
|
|
42
42
|
},
|
|
43
|
-
"data-slot": "checkbox-root-provider",
|
|
44
|
-
get ["data-size"] () {
|
|
45
|
-
return local.size ?? 'md';
|
|
46
|
-
},
|
|
47
43
|
get ["class"] () {
|
|
48
44
|
return clsx(Checkbox_module.root, local.class);
|
|
49
45
|
}
|
|
50
46
|
}, others, {
|
|
47
|
+
get ["data-size"] () {
|
|
48
|
+
return local.size ?? 'md';
|
|
49
|
+
},
|
|
50
|
+
"data-slot": "checkbox-root-provider",
|
|
51
51
|
get children () {
|
|
52
52
|
return local.children;
|
|
53
53
|
}
|
|
@@ -62,7 +62,6 @@ function CheckboxIndicator(props) {
|
|
|
62
62
|
const resolvedChildren = children(()=>local.children);
|
|
63
63
|
const slot = ()=>local.indeterminate ? 'checkbox-indicator-indeterminate-icon' : 'checkbox-indicator-checked-icon';
|
|
64
64
|
return createComponent(Checkbox.Indicator, mergeProps({
|
|
65
|
-
"data-slot": "checkbox-indicator",
|
|
66
65
|
get ["class"] () {
|
|
67
66
|
return clsx(Checkbox_module.indicator, local.class);
|
|
68
67
|
},
|
|
@@ -70,6 +69,7 @@ function CheckboxIndicator(props) {
|
|
|
70
69
|
return local.indeterminate;
|
|
71
70
|
}
|
|
72
71
|
}, others, {
|
|
72
|
+
"data-slot": "checkbox-indicator",
|
|
73
73
|
get children () {
|
|
74
74
|
return resolvedChildren() ?? (()=>{
|
|
75
75
|
var _el$ = _tmpl$();
|
|
@@ -98,11 +98,11 @@ function CheckboxControl(props) {
|
|
|
98
98
|
]);
|
|
99
99
|
const resolvedChildren = children(()=>local.children);
|
|
100
100
|
return createComponent(Checkbox.Control, mergeProps({
|
|
101
|
-
"data-slot": "checkbox-control",
|
|
102
101
|
get ["class"] () {
|
|
103
102
|
return clsx(Checkbox_module.control, local.class);
|
|
104
103
|
}
|
|
105
104
|
}, others, {
|
|
105
|
+
"data-slot": "checkbox-control",
|
|
106
106
|
get children () {
|
|
107
107
|
return resolvedChildren() ?? [
|
|
108
108
|
createComponent(CheckboxIndicator, {}),
|
|
@@ -118,22 +118,24 @@ function CheckboxLabel(props) {
|
|
|
118
118
|
'class'
|
|
119
119
|
]);
|
|
120
120
|
return createComponent(Checkbox.Label, mergeProps({
|
|
121
|
-
"data-slot": "checkbox-label",
|
|
122
121
|
get ["class"] () {
|
|
123
122
|
return clsx(Checkbox_module.label, local.class);
|
|
124
123
|
}
|
|
125
|
-
}, others
|
|
124
|
+
}, others, {
|
|
125
|
+
"data-slot": "checkbox-label"
|
|
126
|
+
}));
|
|
126
127
|
}
|
|
127
128
|
function CheckboxGroup(props) {
|
|
128
129
|
const [local, others] = splitProps(props, [
|
|
129
130
|
'class'
|
|
130
131
|
]);
|
|
131
132
|
return createComponent(Checkbox.Group, mergeProps({
|
|
132
|
-
"data-slot": "checkbox-group",
|
|
133
133
|
get ["class"] () {
|
|
134
134
|
return clsx(Checkbox_module.group, local.class);
|
|
135
135
|
}
|
|
136
|
-
}, others
|
|
136
|
+
}, others, {
|
|
137
|
+
"data-slot": "checkbox-group"
|
|
138
|
+
}));
|
|
137
139
|
}
|
|
138
140
|
const Checkbox_Checkbox = Object.assign(CheckboxRoot, {
|
|
139
141
|
Root: CheckboxRoot,
|