@nuee/ui 0.4.1 → 0.5.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/Icon.js +2 -0
- package/dist/Icon.js.map +2 -2
- package/dist/accordion.d.ts +4 -4
- package/dist/accordion.js +105 -207
- package/dist/accordion.js.map +4 -4
- package/dist/alert-dialog.d.ts +6 -6
- package/dist/alert-dialog.js +83 -352
- package/dist/alert-dialog.js.map +4 -4
- package/dist/aspect-ratio.d.ts +1 -1
- package/dist/aspect-ratio.js +6 -42
- package/dist/aspect-ratio.js.map +2 -2
- package/dist/attachment.d.ts +8 -8
- package/dist/attachment.js +82 -314
- package/dist/attachment.js.map +4 -4
- package/dist/avatar.d.ts +7 -9
- package/dist/avatar.js +29 -71
- package/dist/avatar.js.map +2 -2
- package/dist/badge.d.ts +2 -4
- package/dist/badge.js +7 -44
- package/dist/badge.js.map +2 -2
- package/dist/banner.d.ts +4 -7
- package/dist/banner.js +35 -273
- package/dist/banner.js.map +2 -2
- package/dist/breadcrumb.d.ts +7 -7
- package/dist/breadcrumb.js +12 -92
- package/dist/breadcrumb.js.map +4 -4
- package/dist/bubble.d.ts +6 -4
- package/dist/bubble.js +17 -55
- package/dist/bubble.js.map +2 -2
- package/dist/button-group.d.ts +5 -5
- package/dist/button-group.js +113 -159
- package/dist/button-group.js.map +4 -4
- package/dist/button.d.ts +7 -5
- package/dist/button.js +141 -44
- package/dist/button.js.map +2 -2
- package/dist/calendar.d.ts +9 -0
- package/dist/calendar.js +234 -0
- package/dist/calendar.js.map +7 -0
- package/dist/card.d.ts +3 -3
- package/dist/card.js +31 -216
- package/dist/card.js.map +2 -2
- package/dist/carousel.d.ts +28 -0
- package/dist/carousel.js +427 -0
- package/dist/carousel.js.map +7 -0
- package/dist/checkbox.d.ts +3 -3
- package/dist/checkbox.js +45 -115
- package/dist/checkbox.js.map +4 -4
- package/dist/collapsible.d.ts +3 -3
- package/dist/collapsible.js +96 -184
- package/dist/collapsible.js.map +4 -4
- package/dist/combobox.d.ts +6 -6
- package/dist/combobox.js +182 -268
- package/dist/combobox.js.map +4 -4
- package/dist/content-row.d.ts +7 -7
- package/dist/content-row.js +97 -241
- package/dist/content-row.js.map +3 -3
- package/dist/context-menu.js +15 -738
- package/dist/context-menu.js.map +4 -4
- package/dist/control-layout.d.ts +9 -0
- package/dist/date-picker.d.ts +11 -0
- package/dist/date-picker.js +140 -0
- package/dist/date-picker.js.map +7 -0
- package/dist/dialog.d.ts +5 -5
- package/dist/dialog.js +44 -161
- package/dist/dialog.js.map +4 -4
- package/dist/drawer.d.ts +8 -8
- package/dist/drawer.js +80 -119
- package/dist/drawer.js.map +2 -2
- package/dist/dropdown-menu.d.ts +8 -8
- package/dist/dropdown-menu.js +244 -416
- package/dist/dropdown-menu.js.map +4 -4
- package/dist/empty.d.ts +6 -6
- package/dist/empty.js +31 -210
- package/dist/empty.js.map +2 -2
- package/dist/field.d.ts +9 -9
- package/dist/field.js +81 -31
- package/dist/field.js.map +3 -3
- package/dist/global.css +5 -0
- package/dist/heading.d.ts +6 -0
- package/dist/heading.js +92 -0
- package/dist/heading.js.map +7 -0
- package/dist/hover-card.d.ts +7 -4
- package/dist/hover-card.js +51 -3
- package/dist/hover-card.js.map +2 -2
- package/dist/index.d.ts +14 -8
- package/dist/index.js +295 -12210
- package/dist/index.js.map +4 -4
- package/dist/input-group.d.ts +5 -5
- package/dist/input-group.js +95 -485
- package/dist/input-group.js.map +4 -4
- package/dist/input-otp.d.ts +6 -6
- package/dist/input-otp.js +18 -43
- package/dist/input-otp.js.map +2 -2
- package/dist/input.d.ts +3 -3
- package/dist/input.js +7 -4
- package/dist/input.js.map +2 -2
- package/dist/kbd.d.ts +2 -7
- package/dist/kbd.js +4 -99
- package/dist/kbd.js.map +3 -3
- package/dist/label.d.ts +2 -5
- package/dist/label.js +64 -39
- package/dist/label.js.map +3 -3
- package/dist/link.d.ts +3 -5
- package/dist/link.js +22 -107
- package/dist/link.js.map +4 -4
- package/dist/marker.d.ts +3 -3
- package/dist/marker.js +17 -104
- package/dist/marker.js.map +2 -2
- package/dist/menubar.d.ts +2 -2
- package/dist/menubar.js +36 -772
- package/dist/menubar.js.map +4 -4
- package/dist/message.d.ts +9 -6
- package/dist/message.js +35 -155
- package/dist/message.js.map +2 -2
- package/dist/native-select.d.ts +5 -5
- package/dist/native-select.js +24 -102
- package/dist/native-select.js.map +4 -4
- package/dist/navigation-menu.d.ts +7 -7
- package/dist/navigation-menu.js +183 -307
- package/dist/navigation-menu.js.map +4 -4
- package/dist/pagination.d.ts +5 -5
- package/dist/pagination.js +13 -92
- package/dist/pagination.js.map +4 -4
- package/dist/popover.d.ts +4 -4
- package/dist/popover.js +44 -36
- package/dist/popover.js.map +3 -3
- package/dist/primitives.js +2 -0
- package/dist/primitives.js.map +2 -2
- package/dist/progress.d.ts +3 -3
- package/dist/progress.js +16 -30
- package/dist/progress.js.map +2 -2
- package/dist/radio-group.d.ts +5 -5
- package/dist/radio-group.js +43 -49
- package/dist/radio-group.js.map +3 -3
- package/dist/reset.css +0 -1
- package/dist/scroll-area.d.ts +2 -2
- package/dist/scroll-area.js +56 -80
- package/dist/scroll-area.js.map +2 -2
- package/dist/select.d.ts +5 -5
- package/dist/select.js +169 -255
- package/dist/select.js.map +4 -4
- package/dist/separator.d.ts +1 -1
- package/dist/separator.js +11 -10
- package/dist/separator.js.map +2 -2
- package/dist/skeleton.d.ts +1 -1
- package/dist/skeleton.js +6 -37
- package/dist/skeleton.js.map +2 -2
- package/dist/slider.d.ts +3 -3
- package/dist/slider.js +37 -46
- package/dist/slider.js.map +2 -2
- package/dist/spinner.d.ts +2 -4
- package/dist/spinner.js +5 -61
- package/dist/spinner.js.map +3 -3
- package/dist/stylex.css +463 -307
- package/dist/switch.d.ts +3 -3
- package/dist/switch.js +49 -35
- package/dist/switch.js.map +3 -3
- package/dist/table.d.ts +9 -10
- package/dist/table.js +33 -274
- package/dist/table.js.map +2 -2
- package/dist/tabs.d.ts +4 -4
- package/dist/tabs.js +84 -135
- package/dist/tabs.js.map +3 -3
- package/dist/textarea.d.ts +3 -3
- package/dist/textarea.js +11 -43
- package/dist/textarea.js.map +2 -2
- package/dist/timeline.d.ts +19 -0
- package/dist/timeline.js +104 -0
- package/dist/timeline.js.map +7 -0
- package/dist/toast.d.ts +4 -2
- package/dist/toast.js +261 -485
- package/dist/toast.js.map +4 -4
- package/dist/toast.stylex.d.ts +4 -2
- package/dist/toggle-group.d.ts +5 -5
- package/dist/toggle-group.js +52 -60
- package/dist/toggle-group.js.map +3 -3
- package/dist/toggle.d.ts +3 -3
- package/dist/toggle.js +28 -20
- package/dist/toggle.js.map +3 -3
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.js +52 -44
- package/dist/tooltip.js.map +3 -3
- package/dist/typography.d.ts +50 -294
- package/package.json +15 -7
- package/dist/message-scroller.d.ts +0 -10
- package/dist/message-scroller.js +0 -464
- package/dist/message-scroller.js.map +0 -7
- package/dist/typography.js +0 -85
- package/dist/typography.js.map +0 -7
package/dist/card.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/card.tsx
|
|
2
|
-
import { c as _c } from "react/compiler-runtime";
|
|
3
2
|
import * as stylex from "@stylexjs/stylex";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
var styles = {
|
|
@@ -51,226 +50,42 @@ var styles = {
|
|
|
51
50
|
$$css: true
|
|
52
51
|
}
|
|
53
52
|
};
|
|
54
|
-
function Card(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
({
|
|
60
|
-
xstyle,
|
|
61
|
-
...props2
|
|
62
|
-
} = t0);
|
|
63
|
-
$[0] = t0;
|
|
64
|
-
$[1] = props2;
|
|
65
|
-
$[2] = xstyle;
|
|
66
|
-
} else {
|
|
67
|
-
props2 = $[1];
|
|
68
|
-
xstyle = $[2];
|
|
69
|
-
}
|
|
70
|
-
let t1;
|
|
71
|
-
if ($[3] !== xstyle) {
|
|
72
|
-
t1 = stylex.props(styles.card, xstyle);
|
|
73
|
-
$[3] = xstyle;
|
|
74
|
-
$[4] = t1;
|
|
75
|
-
} else {
|
|
76
|
-
t1 = $[4];
|
|
77
|
-
}
|
|
78
|
-
const stylexProps = t1;
|
|
79
|
-
let t2;
|
|
80
|
-
if ($[5] !== props2 || $[6] !== stylexProps) {
|
|
81
|
-
t2 = /* @__PURE__ */ jsx("div", { ...props2, ...stylexProps });
|
|
82
|
-
$[5] = props2;
|
|
83
|
-
$[6] = stylexProps;
|
|
84
|
-
$[7] = t2;
|
|
85
|
-
} else {
|
|
86
|
-
t2 = $[7];
|
|
87
|
-
}
|
|
88
|
-
return t2;
|
|
53
|
+
function Card({
|
|
54
|
+
xstyle,
|
|
55
|
+
...props2
|
|
56
|
+
}) {
|
|
57
|
+
return /* @__PURE__ */ jsx("div", { ...props2, ...stylex.props(styles.card, xstyle) });
|
|
89
58
|
}
|
|
90
|
-
function CardHeader(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
({
|
|
96
|
-
xstyle,
|
|
97
|
-
...props2
|
|
98
|
-
} = t0);
|
|
99
|
-
$[0] = t0;
|
|
100
|
-
$[1] = props2;
|
|
101
|
-
$[2] = xstyle;
|
|
102
|
-
} else {
|
|
103
|
-
props2 = $[1];
|
|
104
|
-
xstyle = $[2];
|
|
105
|
-
}
|
|
106
|
-
let t1;
|
|
107
|
-
if ($[3] !== xstyle) {
|
|
108
|
-
t1 = stylex.props(styles.header, xstyle);
|
|
109
|
-
$[3] = xstyle;
|
|
110
|
-
$[4] = t1;
|
|
111
|
-
} else {
|
|
112
|
-
t1 = $[4];
|
|
113
|
-
}
|
|
114
|
-
const stylexProps = t1;
|
|
115
|
-
let t2;
|
|
116
|
-
if ($[5] !== props2 || $[6] !== stylexProps) {
|
|
117
|
-
t2 = /* @__PURE__ */ jsx("div", { ...props2, ...stylexProps });
|
|
118
|
-
$[5] = props2;
|
|
119
|
-
$[6] = stylexProps;
|
|
120
|
-
$[7] = t2;
|
|
121
|
-
} else {
|
|
122
|
-
t2 = $[7];
|
|
123
|
-
}
|
|
124
|
-
return t2;
|
|
59
|
+
function CardHeader({
|
|
60
|
+
xstyle,
|
|
61
|
+
...props2
|
|
62
|
+
}) {
|
|
63
|
+
return /* @__PURE__ */ jsx("div", { ...props2, ...stylex.props(styles.header, xstyle) });
|
|
125
64
|
}
|
|
126
|
-
function CardTitle(
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
({
|
|
133
|
-
children,
|
|
134
|
-
xstyle,
|
|
135
|
-
...props2
|
|
136
|
-
} = t0);
|
|
137
|
-
$[0] = t0;
|
|
138
|
-
$[1] = children;
|
|
139
|
-
$[2] = props2;
|
|
140
|
-
$[3] = xstyle;
|
|
141
|
-
} else {
|
|
142
|
-
children = $[1];
|
|
143
|
-
props2 = $[2];
|
|
144
|
-
xstyle = $[3];
|
|
145
|
-
}
|
|
146
|
-
let t1;
|
|
147
|
-
if ($[4] !== xstyle) {
|
|
148
|
-
t1 = stylex.props(styles.title, xstyle);
|
|
149
|
-
$[4] = xstyle;
|
|
150
|
-
$[5] = t1;
|
|
151
|
-
} else {
|
|
152
|
-
t1 = $[5];
|
|
153
|
-
}
|
|
154
|
-
const stylexProps = t1;
|
|
155
|
-
let t2;
|
|
156
|
-
if ($[6] !== children || $[7] !== props2 || $[8] !== stylexProps) {
|
|
157
|
-
t2 = /* @__PURE__ */ jsx("h3", { ...props2, ...stylexProps, children });
|
|
158
|
-
$[6] = children;
|
|
159
|
-
$[7] = props2;
|
|
160
|
-
$[8] = stylexProps;
|
|
161
|
-
$[9] = t2;
|
|
162
|
-
} else {
|
|
163
|
-
t2 = $[9];
|
|
164
|
-
}
|
|
165
|
-
return t2;
|
|
65
|
+
function CardTitle({
|
|
66
|
+
children,
|
|
67
|
+
xstyle,
|
|
68
|
+
...props2
|
|
69
|
+
}) {
|
|
70
|
+
return /* @__PURE__ */ jsx("h3", { ...props2, ...stylex.props(styles.title, xstyle), children });
|
|
166
71
|
}
|
|
167
|
-
function CardDescription(
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
({
|
|
173
|
-
xstyle,
|
|
174
|
-
...props2
|
|
175
|
-
} = t0);
|
|
176
|
-
$[0] = t0;
|
|
177
|
-
$[1] = props2;
|
|
178
|
-
$[2] = xstyle;
|
|
179
|
-
} else {
|
|
180
|
-
props2 = $[1];
|
|
181
|
-
xstyle = $[2];
|
|
182
|
-
}
|
|
183
|
-
let t1;
|
|
184
|
-
if ($[3] !== xstyle) {
|
|
185
|
-
t1 = stylex.props(styles.description, xstyle);
|
|
186
|
-
$[3] = xstyle;
|
|
187
|
-
$[4] = t1;
|
|
188
|
-
} else {
|
|
189
|
-
t1 = $[4];
|
|
190
|
-
}
|
|
191
|
-
const stylexProps = t1;
|
|
192
|
-
let t2;
|
|
193
|
-
if ($[5] !== props2 || $[6] !== stylexProps) {
|
|
194
|
-
t2 = /* @__PURE__ */ jsx("p", { ...props2, ...stylexProps });
|
|
195
|
-
$[5] = props2;
|
|
196
|
-
$[6] = stylexProps;
|
|
197
|
-
$[7] = t2;
|
|
198
|
-
} else {
|
|
199
|
-
t2 = $[7];
|
|
200
|
-
}
|
|
201
|
-
return t2;
|
|
72
|
+
function CardDescription({
|
|
73
|
+
xstyle,
|
|
74
|
+
...props2
|
|
75
|
+
}) {
|
|
76
|
+
return /* @__PURE__ */ jsx("p", { ...props2, ...stylex.props(styles.description, xstyle) });
|
|
202
77
|
}
|
|
203
|
-
function CardContent(
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
({
|
|
209
|
-
xstyle,
|
|
210
|
-
...props2
|
|
211
|
-
} = t0);
|
|
212
|
-
$[0] = t0;
|
|
213
|
-
$[1] = props2;
|
|
214
|
-
$[2] = xstyle;
|
|
215
|
-
} else {
|
|
216
|
-
props2 = $[1];
|
|
217
|
-
xstyle = $[2];
|
|
218
|
-
}
|
|
219
|
-
let t1;
|
|
220
|
-
if ($[3] !== xstyle) {
|
|
221
|
-
t1 = stylex.props(styles.content, xstyle);
|
|
222
|
-
$[3] = xstyle;
|
|
223
|
-
$[4] = t1;
|
|
224
|
-
} else {
|
|
225
|
-
t1 = $[4];
|
|
226
|
-
}
|
|
227
|
-
const stylexProps = t1;
|
|
228
|
-
let t2;
|
|
229
|
-
if ($[5] !== props2 || $[6] !== stylexProps) {
|
|
230
|
-
t2 = /* @__PURE__ */ jsx("div", { ...props2, ...stylexProps });
|
|
231
|
-
$[5] = props2;
|
|
232
|
-
$[6] = stylexProps;
|
|
233
|
-
$[7] = t2;
|
|
234
|
-
} else {
|
|
235
|
-
t2 = $[7];
|
|
236
|
-
}
|
|
237
|
-
return t2;
|
|
78
|
+
function CardContent({
|
|
79
|
+
xstyle,
|
|
80
|
+
...props2
|
|
81
|
+
}) {
|
|
82
|
+
return /* @__PURE__ */ jsx("div", { ...props2, ...stylex.props(styles.content, xstyle) });
|
|
238
83
|
}
|
|
239
|
-
function CardFooter(
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
({
|
|
245
|
-
xstyle,
|
|
246
|
-
...props2
|
|
247
|
-
} = t0);
|
|
248
|
-
$[0] = t0;
|
|
249
|
-
$[1] = props2;
|
|
250
|
-
$[2] = xstyle;
|
|
251
|
-
} else {
|
|
252
|
-
props2 = $[1];
|
|
253
|
-
xstyle = $[2];
|
|
254
|
-
}
|
|
255
|
-
let t1;
|
|
256
|
-
if ($[3] !== xstyle) {
|
|
257
|
-
t1 = stylex.props(styles.footer, xstyle);
|
|
258
|
-
$[3] = xstyle;
|
|
259
|
-
$[4] = t1;
|
|
260
|
-
} else {
|
|
261
|
-
t1 = $[4];
|
|
262
|
-
}
|
|
263
|
-
const stylexProps = t1;
|
|
264
|
-
let t2;
|
|
265
|
-
if ($[5] !== props2 || $[6] !== stylexProps) {
|
|
266
|
-
t2 = /* @__PURE__ */ jsx("div", { ...props2, ...stylexProps });
|
|
267
|
-
$[5] = props2;
|
|
268
|
-
$[6] = stylexProps;
|
|
269
|
-
$[7] = t2;
|
|
270
|
-
} else {
|
|
271
|
-
t2 = $[7];
|
|
272
|
-
}
|
|
273
|
-
return t2;
|
|
84
|
+
function CardFooter({
|
|
85
|
+
xstyle,
|
|
86
|
+
...props2
|
|
87
|
+
}) {
|
|
88
|
+
return /* @__PURE__ */ jsx("div", { ...props2, ...stylex.props(styles.footer, xstyle) });
|
|
274
89
|
}
|
|
275
90
|
export {
|
|
276
91
|
Card,
|
package/dist/card.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/card.tsx"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { colorVars, radiusVars, sizeVars, spacingVars, typographyVars } from \"@nuee/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nconst styles = {\n card: {\n kWkggS: \"x8m6yc2\",\n kVAM5u: \"x13xm7is\",\n kaIpWk: \"x7c24we\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xzgztj1\",\n kMwMTN: \"x1alews2\",\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n },\n header: {\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kOIVth: \"x1kr9b5u\",\n k8WAf4: \"x5kd9k0\",\n kg3NbH: \"x1td9pdb\",\n $$css: true\n },\n title: {\n kGuDYH: \"x1owaoya\",\n k63SB2: \"xq1ytqg\",\n kLWn49: \"x1hfsx4t\",\n kogj98: \"x1ghz6dp\",\n $$css: true\n },\n description: {\n kMwMTN: \"x1ry1pnm\",\n kGuDYH: \"x99mhxu\",\n kLWn49: \"xi1fz51\",\n kogj98: \"x1ghz6dp\",\n $$css: true\n },\n content: {\n kGO01o: \"xta64rn\",\n kg3NbH: \"x1td9pdb\",\n $$css: true\n },\n footer: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x78zum5\",\n kOIVth: \"xmtacc2\",\n kGO01o: \"xta64rn\",\n kg3NbH: \"x1td9pdb\",\n $$css: true\n }\n};\ntype StyleProps = {\n xstyle?: stylex.StyleXStyles;\n};\ntype ElementProps = Omit<ComponentProps<\"div\">, \"className\" | \"style\"> & StyleProps;\ntype HeadingProps = Omit<ComponentProps<\"h3\">, \"className\" | \"style\"> & StyleProps;\ntype ParagraphProps = Omit<ComponentProps<\"p\">, \"className\" | \"style\"> & StyleProps;\nexport function Card({\n xstyle,\n ...props\n}: ElementProps) {\n return <div {...props} {...stylex.props(styles.card, xstyle)} />;\n}\nexport function CardHeader({\n xstyle,\n ...props\n}: ElementProps) {\n return <div {...props} {...stylex.props(styles.header, xstyle)} />;\n}\nexport function CardTitle({\n children,\n xstyle,\n ...props\n}: HeadingProps) {\n return <h3 {...props} {...stylex.props(styles.title, xstyle)}>\n {children}\n </h3>;\n}\nexport function CardDescription({\n xstyle,\n ...props\n}: ParagraphProps) {\n return <p {...props} {...stylex.props(styles.description, xstyle)} />;\n}\nexport function CardContent({\n xstyle,\n ...props\n}: ElementProps) {\n return <div {...props} {...stylex.props(styles.content, xstyle)} />;\n}\nexport function CardFooter({\n xstyle,\n ...props\n}: ElementProps) {\n return <div {...props} {...stylex.props(styles.footer, xstyle)} />;\n}"],
|
|
5
|
+
"mappings": ";AACA,YAAY,YAAY;AA6Df;AA3DT,IAAM,SAAS;AAAA,EACb,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,OAAO;AAAA,IACL,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,aAAa;AAAA,IACX,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AACF;AAOO,SAAS,KAAK;AAAA,EACnB;AAAA,EACA,GAAGA;AACL,GAAiB;AACf,SAAO,oBAAC,SAAK,GAAGA,QAAQ,GAAU,aAAM,OAAO,MAAM,MAAM,GAAG;AAChE;AACO,SAAS,WAAW;AAAA,EACzB;AAAA,EACA,GAAGA;AACL,GAAiB;AACf,SAAO,oBAAC,SAAK,GAAGA,QAAQ,GAAU,aAAM,OAAO,QAAQ,MAAM,GAAG;AAClE;AACO,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA,GAAGA;AACL,GAAiB;AACf,SAAO,oBAAC,QAAI,GAAGA,QAAQ,GAAU,aAAM,OAAO,OAAO,MAAM,GACtD,UACH;AACJ;AACO,SAAS,gBAAgB;AAAA,EAC9B;AAAA,EACA,GAAGA;AACL,GAAmB;AACjB,SAAO,oBAAC,OAAG,GAAGA,QAAQ,GAAU,aAAM,OAAO,aAAa,MAAM,GAAG;AACrE;AACO,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA,GAAGA;AACL,GAAiB;AACf,SAAO,oBAAC,SAAK,GAAGA,QAAQ,GAAU,aAAM,OAAO,SAAS,MAAM,GAAG;AACnE;AACO,SAAS,WAAW;AAAA,EACzB;AAAA,EACA,GAAGA;AACL,GAAiB;AACf,SAAO,oBAAC,SAAK,GAAGA,QAAQ,GAAU,aAAM,OAAO,QAAQ,MAAM,GAAG;AAClE;",
|
|
6
6
|
"names": ["props"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
import useEmblaCarousel from "embla-carousel-react";
|
|
3
|
+
import { type ComponentProps, type ReactNode } from "react";
|
|
4
|
+
import { Button } from "./button";
|
|
5
|
+
type CarouselApi = ReturnType<typeof useEmblaCarousel>[1];
|
|
6
|
+
type CarouselOptions = Parameters<typeof useEmblaCarousel>[0];
|
|
7
|
+
type CarouselPlugins = Parameters<typeof useEmblaCarousel>[1];
|
|
8
|
+
export type { CarouselApi };
|
|
9
|
+
export type CarouselProps = Omit<ComponentProps<"section">, "className" | "style"> & {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
onSelect?: (api: NonNullable<CarouselApi>) => void;
|
|
12
|
+
options?: CarouselOptions;
|
|
13
|
+
plugins?: CarouselPlugins;
|
|
14
|
+
setApi?: (api: NonNullable<CarouselApi>) => void;
|
|
15
|
+
xstyle?: stylex.StyleXStyles;
|
|
16
|
+
};
|
|
17
|
+
export declare function Carousel({ children, onSelect, options, plugins, setApi, xstyle, ...props }: CarouselProps): import("react").JSX.Element;
|
|
18
|
+
export type CarouselContentProps = Omit<ComponentProps<"div">, "className" | "style"> & {
|
|
19
|
+
xstyle?: stylex.StyleXStyles;
|
|
20
|
+
};
|
|
21
|
+
export declare function CarouselContent({ children, xstyle, ...props }: CarouselContentProps): import("react").JSX.Element;
|
|
22
|
+
export type CarouselItemProps = Omit<ComponentProps<"div">, "className" | "style"> & {
|
|
23
|
+
xstyle?: stylex.StyleXStyles;
|
|
24
|
+
};
|
|
25
|
+
export declare function CarouselItem({ xstyle, ...props }: CarouselItemProps): import("react").JSX.Element;
|
|
26
|
+
type CarouselControlProps = Omit<ComponentProps<typeof Button>, "children" | "onClick" | "className" | "style">;
|
|
27
|
+
export declare function CarouselPrevious({ disabled, xstyle, ...props }: CarouselControlProps): import("react").JSX.Element;
|
|
28
|
+
export declare function CarouselNext({ disabled, xstyle, ...props }: CarouselControlProps): import("react").JSX.Element;
|