@onesaz/ui 0.2.2 → 0.3.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/index.d.ts +281 -30
- package/dist/index.js +1568 -521
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -26,29 +26,25 @@ function ThemeProvider({
|
|
|
26
26
|
radius: defaultRadius = "medium",
|
|
27
27
|
storageKey = "onesaz-theme"
|
|
28
28
|
}) {
|
|
29
|
-
const [theme, setThemeState] = React.useState(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
});
|
|
34
|
-
const [accentColor, setAccentColorState] = React.useState(() => {
|
|
35
|
-
if (typeof window === "undefined") return defaultAccent;
|
|
36
|
-
const stored = localStorage.getItem(`${storageKey}-accent`);
|
|
37
|
-
return stored || defaultAccent;
|
|
38
|
-
});
|
|
39
|
-
const [grayColor, setGrayColorState] = React.useState(() => {
|
|
40
|
-
if (typeof window === "undefined") return defaultGray;
|
|
41
|
-
const stored = localStorage.getItem(`${storageKey}-gray`);
|
|
42
|
-
return stored || defaultGray;
|
|
43
|
-
});
|
|
44
|
-
const [radius, setRadiusState] = React.useState(() => {
|
|
45
|
-
if (typeof window === "undefined") return defaultRadius;
|
|
46
|
-
const stored = localStorage.getItem(`${storageKey}-radius`);
|
|
47
|
-
return stored || defaultRadius;
|
|
48
|
-
});
|
|
29
|
+
const [theme, setThemeState] = React.useState(defaultTheme);
|
|
30
|
+
const [accentColor, setAccentColorState] = React.useState(defaultAccent);
|
|
31
|
+
const [grayColor, setGrayColorState] = React.useState(defaultGray);
|
|
32
|
+
const [radius, setRadiusState] = React.useState(defaultRadius);
|
|
49
33
|
const [resolvedTheme, setResolvedTheme] = React.useState(
|
|
50
|
-
() =>
|
|
34
|
+
() => defaultTheme === "system" ? getSystemTheme() : defaultTheme === "dark" ? "dark" : "light"
|
|
51
35
|
);
|
|
36
|
+
React.useEffect(() => {
|
|
37
|
+
setThemeState(defaultTheme);
|
|
38
|
+
}, [defaultTheme]);
|
|
39
|
+
React.useEffect(() => {
|
|
40
|
+
setAccentColorState(defaultAccent);
|
|
41
|
+
}, [defaultAccent]);
|
|
42
|
+
React.useEffect(() => {
|
|
43
|
+
setGrayColorState(defaultGray);
|
|
44
|
+
}, [defaultGray]);
|
|
45
|
+
React.useEffect(() => {
|
|
46
|
+
setRadiusState(defaultRadius);
|
|
47
|
+
}, [defaultRadius]);
|
|
52
48
|
React.useEffect(() => {
|
|
53
49
|
if (theme !== "system") {
|
|
54
50
|
setResolvedTheme(theme);
|
|
@@ -144,12 +140,734 @@ function cn(...inputs) {
|
|
|
144
140
|
return twMerge(clsx(inputs));
|
|
145
141
|
}
|
|
146
142
|
|
|
147
|
-
// src/components/
|
|
143
|
+
// src/components/box.tsx
|
|
148
144
|
import * as React2 from "react";
|
|
149
145
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
150
|
-
var
|
|
146
|
+
var displayClasses = {
|
|
147
|
+
block: "block",
|
|
148
|
+
"inline-block": "inline-block",
|
|
149
|
+
inline: "inline",
|
|
150
|
+
flex: "flex",
|
|
151
|
+
"inline-flex": "inline-flex",
|
|
152
|
+
grid: "grid",
|
|
153
|
+
"inline-grid": "inline-grid",
|
|
154
|
+
none: "hidden"
|
|
155
|
+
};
|
|
156
|
+
var flexDirectionClasses = {
|
|
157
|
+
row: "flex-row",
|
|
158
|
+
"row-reverse": "flex-row-reverse",
|
|
159
|
+
column: "flex-col",
|
|
160
|
+
"column-reverse": "flex-col-reverse"
|
|
161
|
+
};
|
|
162
|
+
var alignItemsClasses = {
|
|
163
|
+
start: "items-start",
|
|
164
|
+
end: "items-end",
|
|
165
|
+
center: "items-center",
|
|
166
|
+
baseline: "items-baseline",
|
|
167
|
+
stretch: "items-stretch"
|
|
168
|
+
};
|
|
169
|
+
var justifyContentClasses = {
|
|
170
|
+
start: "justify-start",
|
|
171
|
+
end: "justify-end",
|
|
172
|
+
center: "justify-center",
|
|
173
|
+
between: "justify-between",
|
|
174
|
+
around: "justify-around",
|
|
175
|
+
evenly: "justify-evenly"
|
|
176
|
+
};
|
|
177
|
+
var flexWrapClasses = {
|
|
178
|
+
wrap: "flex-wrap",
|
|
179
|
+
nowrap: "flex-nowrap",
|
|
180
|
+
"wrap-reverse": "flex-wrap-reverse"
|
|
181
|
+
};
|
|
182
|
+
var gapClasses = {
|
|
183
|
+
0: "gap-0",
|
|
184
|
+
1: "gap-1",
|
|
185
|
+
2: "gap-2",
|
|
186
|
+
3: "gap-3",
|
|
187
|
+
4: "gap-4",
|
|
188
|
+
5: "gap-5",
|
|
189
|
+
6: "gap-6",
|
|
190
|
+
8: "gap-8",
|
|
191
|
+
10: "gap-10",
|
|
192
|
+
12: "gap-12",
|
|
193
|
+
16: "gap-16"
|
|
194
|
+
};
|
|
195
|
+
var paddingClasses = {
|
|
196
|
+
0: "p-0",
|
|
197
|
+
1: "p-1",
|
|
198
|
+
2: "p-2",
|
|
199
|
+
3: "p-3",
|
|
200
|
+
4: "p-4",
|
|
201
|
+
5: "p-5",
|
|
202
|
+
6: "p-6",
|
|
203
|
+
8: "p-8",
|
|
204
|
+
10: "p-10",
|
|
205
|
+
12: "p-12",
|
|
206
|
+
16: "p-16"
|
|
207
|
+
};
|
|
208
|
+
var paddingXClasses = {
|
|
209
|
+
0: "px-0",
|
|
210
|
+
1: "px-1",
|
|
211
|
+
2: "px-2",
|
|
212
|
+
3: "px-3",
|
|
213
|
+
4: "px-4",
|
|
214
|
+
5: "px-5",
|
|
215
|
+
6: "px-6",
|
|
216
|
+
8: "px-8",
|
|
217
|
+
10: "px-10",
|
|
218
|
+
12: "px-12",
|
|
219
|
+
16: "px-16"
|
|
220
|
+
};
|
|
221
|
+
var paddingYClasses = {
|
|
222
|
+
0: "py-0",
|
|
223
|
+
1: "py-1",
|
|
224
|
+
2: "py-2",
|
|
225
|
+
3: "py-3",
|
|
226
|
+
4: "py-4",
|
|
227
|
+
5: "py-5",
|
|
228
|
+
6: "py-6",
|
|
229
|
+
8: "py-8",
|
|
230
|
+
10: "py-10",
|
|
231
|
+
12: "py-12",
|
|
232
|
+
16: "py-16"
|
|
233
|
+
};
|
|
234
|
+
var marginClasses = {
|
|
235
|
+
0: "m-0",
|
|
236
|
+
1: "m-1",
|
|
237
|
+
2: "m-2",
|
|
238
|
+
3: "m-3",
|
|
239
|
+
4: "m-4",
|
|
240
|
+
5: "m-5",
|
|
241
|
+
6: "m-6",
|
|
242
|
+
8: "m-8",
|
|
243
|
+
10: "m-10",
|
|
244
|
+
12: "m-12",
|
|
245
|
+
16: "m-16",
|
|
246
|
+
auto: "m-auto"
|
|
247
|
+
};
|
|
248
|
+
var marginXClasses = {
|
|
249
|
+
0: "mx-0",
|
|
250
|
+
1: "mx-1",
|
|
251
|
+
2: "mx-2",
|
|
252
|
+
3: "mx-3",
|
|
253
|
+
4: "mx-4",
|
|
254
|
+
5: "mx-5",
|
|
255
|
+
6: "mx-6",
|
|
256
|
+
8: "mx-8",
|
|
257
|
+
10: "mx-10",
|
|
258
|
+
12: "mx-12",
|
|
259
|
+
16: "mx-16",
|
|
260
|
+
auto: "mx-auto"
|
|
261
|
+
};
|
|
262
|
+
var marginYClasses = {
|
|
263
|
+
0: "my-0",
|
|
264
|
+
1: "my-1",
|
|
265
|
+
2: "my-2",
|
|
266
|
+
3: "my-3",
|
|
267
|
+
4: "my-4",
|
|
268
|
+
5: "my-5",
|
|
269
|
+
6: "my-6",
|
|
270
|
+
8: "my-8",
|
|
271
|
+
10: "my-10",
|
|
272
|
+
12: "my-12",
|
|
273
|
+
16: "my-16",
|
|
274
|
+
auto: "my-auto"
|
|
275
|
+
};
|
|
276
|
+
var roundedClasses = {
|
|
277
|
+
none: "rounded-none",
|
|
278
|
+
sm: "rounded-sm",
|
|
279
|
+
md: "rounded-md",
|
|
280
|
+
lg: "rounded-lg",
|
|
281
|
+
xl: "rounded-xl",
|
|
282
|
+
"2xl": "rounded-2xl",
|
|
283
|
+
full: "rounded-full"
|
|
284
|
+
};
|
|
285
|
+
var shadowClasses = {
|
|
286
|
+
none: "shadow-none",
|
|
287
|
+
sm: "shadow-sm",
|
|
288
|
+
md: "shadow-md",
|
|
289
|
+
lg: "shadow-lg",
|
|
290
|
+
xl: "shadow-xl",
|
|
291
|
+
"2xl": "shadow-2xl"
|
|
292
|
+
};
|
|
293
|
+
var bgClasses = {
|
|
294
|
+
background: "bg-background",
|
|
295
|
+
foreground: "bg-foreground",
|
|
296
|
+
muted: "bg-muted",
|
|
297
|
+
accent: "bg-accent",
|
|
298
|
+
card: "bg-card",
|
|
299
|
+
popover: "bg-popover",
|
|
300
|
+
destructive: "bg-destructive",
|
|
301
|
+
transparent: "bg-transparent"
|
|
302
|
+
};
|
|
303
|
+
var colorClasses = {
|
|
304
|
+
foreground: "text-foreground",
|
|
305
|
+
"muted-foreground": "text-muted-foreground",
|
|
306
|
+
accent: "text-accent",
|
|
307
|
+
"accent-foreground": "text-accent-foreground",
|
|
308
|
+
destructive: "text-destructive",
|
|
309
|
+
"destructive-foreground": "text-destructive-foreground"
|
|
310
|
+
};
|
|
311
|
+
var borderColorClasses = {
|
|
312
|
+
border: "border-border",
|
|
313
|
+
input: "border-input",
|
|
314
|
+
ring: "border-ring",
|
|
315
|
+
transparent: "border-transparent"
|
|
316
|
+
};
|
|
317
|
+
var widthClasses = {
|
|
318
|
+
full: "w-full",
|
|
319
|
+
auto: "w-auto",
|
|
320
|
+
screen: "w-screen",
|
|
321
|
+
min: "w-min",
|
|
322
|
+
max: "w-max",
|
|
323
|
+
fit: "w-fit"
|
|
324
|
+
};
|
|
325
|
+
var heightClasses = {
|
|
326
|
+
full: "h-full",
|
|
327
|
+
auto: "h-auto",
|
|
328
|
+
screen: "h-screen",
|
|
329
|
+
min: "h-min",
|
|
330
|
+
max: "h-max",
|
|
331
|
+
fit: "h-fit"
|
|
332
|
+
};
|
|
333
|
+
var positionClasses = {
|
|
334
|
+
static: "static",
|
|
335
|
+
relative: "relative",
|
|
336
|
+
absolute: "absolute",
|
|
337
|
+
fixed: "fixed",
|
|
338
|
+
sticky: "sticky"
|
|
339
|
+
};
|
|
340
|
+
var overflowClasses = {
|
|
341
|
+
auto: "overflow-auto",
|
|
342
|
+
hidden: "overflow-hidden",
|
|
343
|
+
visible: "overflow-visible",
|
|
344
|
+
scroll: "overflow-scroll"
|
|
345
|
+
};
|
|
346
|
+
var Box = React2.forwardRef(
|
|
347
|
+
({
|
|
348
|
+
as: Component = "div",
|
|
349
|
+
className,
|
|
350
|
+
display,
|
|
351
|
+
flexDirection,
|
|
352
|
+
alignItems,
|
|
353
|
+
justifyContent,
|
|
354
|
+
flexWrap,
|
|
355
|
+
gap,
|
|
356
|
+
p,
|
|
357
|
+
px,
|
|
358
|
+
py,
|
|
359
|
+
m,
|
|
360
|
+
mx,
|
|
361
|
+
my,
|
|
362
|
+
rounded,
|
|
363
|
+
shadow,
|
|
364
|
+
bg,
|
|
365
|
+
color,
|
|
366
|
+
border,
|
|
367
|
+
borderColor,
|
|
368
|
+
w,
|
|
369
|
+
h,
|
|
370
|
+
position,
|
|
371
|
+
overflow,
|
|
372
|
+
...props
|
|
373
|
+
}, ref) => {
|
|
374
|
+
const classes = cn(
|
|
375
|
+
display && displayClasses[display],
|
|
376
|
+
flexDirection && flexDirectionClasses[flexDirection],
|
|
377
|
+
alignItems && alignItemsClasses[alignItems],
|
|
378
|
+
justifyContent && justifyContentClasses[justifyContent],
|
|
379
|
+
flexWrap && flexWrapClasses[flexWrap],
|
|
380
|
+
gap !== void 0 && gapClasses[gap],
|
|
381
|
+
p !== void 0 && paddingClasses[p],
|
|
382
|
+
px !== void 0 && paddingXClasses[px],
|
|
383
|
+
py !== void 0 && paddingYClasses[py],
|
|
384
|
+
m !== void 0 && marginClasses[m],
|
|
385
|
+
mx !== void 0 && marginXClasses[mx],
|
|
386
|
+
my !== void 0 && marginYClasses[my],
|
|
387
|
+
rounded && roundedClasses[rounded],
|
|
388
|
+
shadow && shadowClasses[shadow],
|
|
389
|
+
bg && bgClasses[bg],
|
|
390
|
+
color && colorClasses[color],
|
|
391
|
+
border && "border",
|
|
392
|
+
borderColor && borderColorClasses[borderColor],
|
|
393
|
+
w && widthClasses[w],
|
|
394
|
+
h && heightClasses[h],
|
|
395
|
+
position && positionClasses[position],
|
|
396
|
+
overflow && overflowClasses[overflow],
|
|
397
|
+
className
|
|
398
|
+
);
|
|
399
|
+
return /* @__PURE__ */ jsx2(Component, { ref, className: classes, ...props });
|
|
400
|
+
}
|
|
401
|
+
);
|
|
402
|
+
Box.displayName = "Box";
|
|
403
|
+
|
|
404
|
+
// src/components/stack.tsx
|
|
405
|
+
import * as React3 from "react";
|
|
406
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
407
|
+
var directionClasses = {
|
|
408
|
+
row: "flex-row",
|
|
409
|
+
"row-reverse": "flex-row-reverse",
|
|
410
|
+
column: "flex-col",
|
|
411
|
+
"column-reverse": "flex-col-reverse"
|
|
412
|
+
};
|
|
413
|
+
var spacingClasses = {
|
|
414
|
+
0: "gap-0",
|
|
415
|
+
1: "gap-1",
|
|
416
|
+
2: "gap-2",
|
|
417
|
+
3: "gap-3",
|
|
418
|
+
4: "gap-4",
|
|
419
|
+
5: "gap-5",
|
|
420
|
+
6: "gap-6",
|
|
421
|
+
8: "gap-8",
|
|
422
|
+
10: "gap-10",
|
|
423
|
+
12: "gap-12",
|
|
424
|
+
16: "gap-16"
|
|
425
|
+
};
|
|
426
|
+
var alignClasses = {
|
|
427
|
+
start: "items-start",
|
|
428
|
+
end: "items-end",
|
|
429
|
+
center: "items-center",
|
|
430
|
+
baseline: "items-baseline",
|
|
431
|
+
stretch: "items-stretch"
|
|
432
|
+
};
|
|
433
|
+
var justifyClasses = {
|
|
434
|
+
start: "justify-start",
|
|
435
|
+
end: "justify-end",
|
|
436
|
+
center: "justify-center",
|
|
437
|
+
between: "justify-between",
|
|
438
|
+
around: "justify-around",
|
|
439
|
+
evenly: "justify-evenly"
|
|
440
|
+
};
|
|
441
|
+
var wrapClasses = {
|
|
442
|
+
wrap: "flex-wrap",
|
|
443
|
+
nowrap: "flex-nowrap",
|
|
444
|
+
"wrap-reverse": "flex-wrap-reverse"
|
|
445
|
+
};
|
|
446
|
+
var Stack = React3.forwardRef(
|
|
447
|
+
({
|
|
448
|
+
as: Component = "div",
|
|
449
|
+
className,
|
|
450
|
+
direction = "column",
|
|
451
|
+
spacing = 0,
|
|
452
|
+
align,
|
|
453
|
+
justify,
|
|
454
|
+
wrap,
|
|
455
|
+
divider,
|
|
456
|
+
children,
|
|
457
|
+
...props
|
|
458
|
+
}, ref) => {
|
|
459
|
+
const classes = cn(
|
|
460
|
+
"flex",
|
|
461
|
+
directionClasses[direction],
|
|
462
|
+
spacingClasses[spacing],
|
|
463
|
+
align && alignClasses[align],
|
|
464
|
+
justify && justifyClasses[justify],
|
|
465
|
+
wrap && wrapClasses[wrap],
|
|
466
|
+
className
|
|
467
|
+
);
|
|
468
|
+
if (divider) {
|
|
469
|
+
const childArray = React3.Children.toArray(children).filter(Boolean);
|
|
470
|
+
const childrenWithDividers = childArray.reduce(
|
|
471
|
+
(acc, child, index) => {
|
|
472
|
+
if (index === 0) {
|
|
473
|
+
return [child];
|
|
474
|
+
}
|
|
475
|
+
return [...acc, React3.cloneElement(divider, { key: `divider-${index}` }), child];
|
|
476
|
+
},
|
|
477
|
+
[]
|
|
478
|
+
);
|
|
479
|
+
return /* @__PURE__ */ jsx3(Component, { ref, className: classes, ...props, children: childrenWithDividers });
|
|
480
|
+
}
|
|
481
|
+
return /* @__PURE__ */ jsx3(Component, { ref, className: classes, ...props, children });
|
|
482
|
+
}
|
|
483
|
+
);
|
|
484
|
+
Stack.displayName = "Stack";
|
|
485
|
+
var HStack = React3.forwardRef(
|
|
486
|
+
(props, ref) => /* @__PURE__ */ jsx3(Stack, { ref, direction: "row", ...props })
|
|
487
|
+
);
|
|
488
|
+
HStack.displayName = "HStack";
|
|
489
|
+
var VStack = React3.forwardRef(
|
|
490
|
+
(props, ref) => /* @__PURE__ */ jsx3(Stack, { ref, direction: "column", ...props })
|
|
491
|
+
);
|
|
492
|
+
VStack.displayName = "VStack";
|
|
493
|
+
|
|
494
|
+
// src/components/grid.tsx
|
|
495
|
+
import * as React4 from "react";
|
|
496
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
497
|
+
var spacingClasses2 = {
|
|
498
|
+
0: "gap-0",
|
|
499
|
+
1: "gap-1",
|
|
500
|
+
2: "gap-2",
|
|
501
|
+
3: "gap-3",
|
|
502
|
+
4: "gap-4",
|
|
503
|
+
5: "gap-5",
|
|
504
|
+
6: "gap-6",
|
|
505
|
+
8: "gap-8",
|
|
506
|
+
10: "gap-10",
|
|
507
|
+
12: "gap-12",
|
|
508
|
+
16: "gap-16"
|
|
509
|
+
};
|
|
510
|
+
var rowSpacingClasses = {
|
|
511
|
+
0: "gap-y-0",
|
|
512
|
+
1: "gap-y-1",
|
|
513
|
+
2: "gap-y-2",
|
|
514
|
+
3: "gap-y-3",
|
|
515
|
+
4: "gap-y-4",
|
|
516
|
+
5: "gap-y-5",
|
|
517
|
+
6: "gap-y-6",
|
|
518
|
+
8: "gap-y-8",
|
|
519
|
+
10: "gap-y-10",
|
|
520
|
+
12: "gap-y-12",
|
|
521
|
+
16: "gap-y-16"
|
|
522
|
+
};
|
|
523
|
+
var columnSpacingClasses = {
|
|
524
|
+
0: "gap-x-0",
|
|
525
|
+
1: "gap-x-1",
|
|
526
|
+
2: "gap-x-2",
|
|
527
|
+
3: "gap-x-3",
|
|
528
|
+
4: "gap-x-4",
|
|
529
|
+
5: "gap-x-5",
|
|
530
|
+
6: "gap-x-6",
|
|
531
|
+
8: "gap-x-8",
|
|
532
|
+
10: "gap-x-10",
|
|
533
|
+
12: "gap-x-12",
|
|
534
|
+
16: "gap-x-16"
|
|
535
|
+
};
|
|
536
|
+
var columnsClasses = {
|
|
537
|
+
1: "grid-cols-1",
|
|
538
|
+
2: "grid-cols-2",
|
|
539
|
+
3: "grid-cols-3",
|
|
540
|
+
4: "grid-cols-4",
|
|
541
|
+
5: "grid-cols-5",
|
|
542
|
+
6: "grid-cols-6",
|
|
543
|
+
12: "grid-cols-12"
|
|
544
|
+
};
|
|
545
|
+
var alignItemsClasses2 = {
|
|
546
|
+
start: "items-start",
|
|
547
|
+
end: "items-end",
|
|
548
|
+
center: "items-center",
|
|
549
|
+
baseline: "items-baseline",
|
|
550
|
+
stretch: "items-stretch"
|
|
551
|
+
};
|
|
552
|
+
var justifyItemsClasses = {
|
|
553
|
+
start: "justify-items-start",
|
|
554
|
+
end: "justify-items-end",
|
|
555
|
+
center: "justify-items-center",
|
|
556
|
+
stretch: "justify-items-stretch"
|
|
557
|
+
};
|
|
558
|
+
var justifyContentClasses2 = {
|
|
559
|
+
start: "justify-start",
|
|
560
|
+
end: "justify-end",
|
|
561
|
+
center: "justify-center",
|
|
562
|
+
between: "justify-between",
|
|
563
|
+
around: "justify-around",
|
|
564
|
+
evenly: "justify-evenly"
|
|
565
|
+
};
|
|
566
|
+
var colSpanClasses = {
|
|
567
|
+
xs: {
|
|
568
|
+
1: "col-span-1",
|
|
569
|
+
2: "col-span-2",
|
|
570
|
+
3: "col-span-3",
|
|
571
|
+
4: "col-span-4",
|
|
572
|
+
5: "col-span-5",
|
|
573
|
+
6: "col-span-6",
|
|
574
|
+
7: "col-span-7",
|
|
575
|
+
8: "col-span-8",
|
|
576
|
+
9: "col-span-9",
|
|
577
|
+
10: "col-span-10",
|
|
578
|
+
11: "col-span-11",
|
|
579
|
+
12: "col-span-12",
|
|
580
|
+
auto: "col-auto"
|
|
581
|
+
},
|
|
582
|
+
sm: {
|
|
583
|
+
1: "sm:col-span-1",
|
|
584
|
+
2: "sm:col-span-2",
|
|
585
|
+
3: "sm:col-span-3",
|
|
586
|
+
4: "sm:col-span-4",
|
|
587
|
+
5: "sm:col-span-5",
|
|
588
|
+
6: "sm:col-span-6",
|
|
589
|
+
7: "sm:col-span-7",
|
|
590
|
+
8: "sm:col-span-8",
|
|
591
|
+
9: "sm:col-span-9",
|
|
592
|
+
10: "sm:col-span-10",
|
|
593
|
+
11: "sm:col-span-11",
|
|
594
|
+
12: "sm:col-span-12",
|
|
595
|
+
auto: "sm:col-auto"
|
|
596
|
+
},
|
|
597
|
+
md: {
|
|
598
|
+
1: "md:col-span-1",
|
|
599
|
+
2: "md:col-span-2",
|
|
600
|
+
3: "md:col-span-3",
|
|
601
|
+
4: "md:col-span-4",
|
|
602
|
+
5: "md:col-span-5",
|
|
603
|
+
6: "md:col-span-6",
|
|
604
|
+
7: "md:col-span-7",
|
|
605
|
+
8: "md:col-span-8",
|
|
606
|
+
9: "md:col-span-9",
|
|
607
|
+
10: "md:col-span-10",
|
|
608
|
+
11: "md:col-span-11",
|
|
609
|
+
12: "md:col-span-12",
|
|
610
|
+
auto: "md:col-auto"
|
|
611
|
+
},
|
|
612
|
+
lg: {
|
|
613
|
+
1: "lg:col-span-1",
|
|
614
|
+
2: "lg:col-span-2",
|
|
615
|
+
3: "lg:col-span-3",
|
|
616
|
+
4: "lg:col-span-4",
|
|
617
|
+
5: "lg:col-span-5",
|
|
618
|
+
6: "lg:col-span-6",
|
|
619
|
+
7: "lg:col-span-7",
|
|
620
|
+
8: "lg:col-span-8",
|
|
621
|
+
9: "lg:col-span-9",
|
|
622
|
+
10: "lg:col-span-10",
|
|
623
|
+
11: "lg:col-span-11",
|
|
624
|
+
12: "lg:col-span-12",
|
|
625
|
+
auto: "lg:col-auto"
|
|
626
|
+
},
|
|
627
|
+
xl: {
|
|
628
|
+
1: "xl:col-span-1",
|
|
629
|
+
2: "xl:col-span-2",
|
|
630
|
+
3: "xl:col-span-3",
|
|
631
|
+
4: "xl:col-span-4",
|
|
632
|
+
5: "xl:col-span-5",
|
|
633
|
+
6: "xl:col-span-6",
|
|
634
|
+
7: "xl:col-span-7",
|
|
635
|
+
8: "xl:col-span-8",
|
|
636
|
+
9: "xl:col-span-9",
|
|
637
|
+
10: "xl:col-span-10",
|
|
638
|
+
11: "xl:col-span-11",
|
|
639
|
+
12: "xl:col-span-12",
|
|
640
|
+
auto: "xl:col-auto"
|
|
641
|
+
},
|
|
642
|
+
xxl: {
|
|
643
|
+
1: "2xl:col-span-1",
|
|
644
|
+
2: "2xl:col-span-2",
|
|
645
|
+
3: "2xl:col-span-3",
|
|
646
|
+
4: "2xl:col-span-4",
|
|
647
|
+
5: "2xl:col-span-5",
|
|
648
|
+
6: "2xl:col-span-6",
|
|
649
|
+
7: "2xl:col-span-7",
|
|
650
|
+
8: "2xl:col-span-8",
|
|
651
|
+
9: "2xl:col-span-9",
|
|
652
|
+
10: "2xl:col-span-10",
|
|
653
|
+
11: "2xl:col-span-11",
|
|
654
|
+
12: "2xl:col-span-12",
|
|
655
|
+
auto: "2xl:col-auto"
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
var Grid = React4.forwardRef(
|
|
659
|
+
({
|
|
660
|
+
className,
|
|
661
|
+
container,
|
|
662
|
+
item,
|
|
663
|
+
xs,
|
|
664
|
+
sm,
|
|
665
|
+
md,
|
|
666
|
+
lg,
|
|
667
|
+
xl,
|
|
668
|
+
xxl,
|
|
669
|
+
spacing,
|
|
670
|
+
rowSpacing,
|
|
671
|
+
columnSpacing,
|
|
672
|
+
columns = 12,
|
|
673
|
+
alignItems,
|
|
674
|
+
justifyItems,
|
|
675
|
+
justifyContent,
|
|
676
|
+
children,
|
|
677
|
+
...props
|
|
678
|
+
}, ref) => {
|
|
679
|
+
const classes = cn(
|
|
680
|
+
// Container styles
|
|
681
|
+
container && "grid",
|
|
682
|
+
container && columnsClasses[columns],
|
|
683
|
+
container && spacing !== void 0 && spacingClasses2[spacing],
|
|
684
|
+
container && rowSpacing !== void 0 && rowSpacingClasses[rowSpacing],
|
|
685
|
+
container && columnSpacing !== void 0 && columnSpacingClasses[columnSpacing],
|
|
686
|
+
container && alignItems && alignItemsClasses2[alignItems],
|
|
687
|
+
container && justifyItems && justifyItemsClasses[justifyItems],
|
|
688
|
+
container && justifyContent && justifyContentClasses2[justifyContent],
|
|
689
|
+
// Item styles (column spans)
|
|
690
|
+
item && xs && colSpanClasses.xs[xs],
|
|
691
|
+
item && sm && colSpanClasses.sm[sm],
|
|
692
|
+
item && md && colSpanClasses.md[md],
|
|
693
|
+
item && lg && colSpanClasses.lg[lg],
|
|
694
|
+
item && xl && colSpanClasses.xl[xl],
|
|
695
|
+
item && xxl && colSpanClasses.xxl[xxl],
|
|
696
|
+
className
|
|
697
|
+
);
|
|
698
|
+
return /* @__PURE__ */ jsx4("div", { ref, className: classes, ...props, children });
|
|
699
|
+
}
|
|
700
|
+
);
|
|
701
|
+
Grid.displayName = "Grid";
|
|
702
|
+
|
|
703
|
+
// src/components/typography.tsx
|
|
704
|
+
import * as React5 from "react";
|
|
705
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
706
|
+
var variantMapping = {
|
|
707
|
+
h1: "h1",
|
|
708
|
+
h2: "h2",
|
|
709
|
+
h3: "h3",
|
|
710
|
+
h4: "h4",
|
|
711
|
+
h5: "h5",
|
|
712
|
+
h6: "h6",
|
|
713
|
+
subtitle1: "h6",
|
|
714
|
+
subtitle2: "h6",
|
|
715
|
+
body1: "p",
|
|
716
|
+
body2: "p",
|
|
717
|
+
caption: "span",
|
|
718
|
+
overline: "span",
|
|
719
|
+
inherit: "span"
|
|
720
|
+
};
|
|
721
|
+
var variantClasses = {
|
|
722
|
+
h1: "text-4xl font-bold leading-tight tracking-tight",
|
|
723
|
+
h2: "text-3xl font-bold leading-tight tracking-tight",
|
|
724
|
+
h3: "text-2xl font-semibold leading-snug",
|
|
725
|
+
h4: "text-xl font-semibold leading-snug",
|
|
726
|
+
h5: "text-lg font-medium leading-normal",
|
|
727
|
+
h6: "text-base font-medium leading-normal",
|
|
728
|
+
subtitle1: "text-base font-normal leading-relaxed",
|
|
729
|
+
subtitle2: "text-sm font-medium leading-relaxed",
|
|
730
|
+
body1: "text-base font-normal leading-relaxed",
|
|
731
|
+
body2: "text-sm font-normal leading-relaxed",
|
|
732
|
+
caption: "text-xs font-normal leading-normal",
|
|
733
|
+
overline: "text-xs font-medium uppercase tracking-widest leading-relaxed",
|
|
734
|
+
inherit: ""
|
|
735
|
+
};
|
|
736
|
+
var colorClasses2 = {
|
|
737
|
+
inherit: "",
|
|
738
|
+
primary: "text-accent",
|
|
739
|
+
secondary: "text-muted-foreground",
|
|
740
|
+
success: "text-green-600 dark:text-green-400",
|
|
741
|
+
warning: "text-orange-600 dark:text-orange-400",
|
|
742
|
+
error: "text-destructive",
|
|
743
|
+
info: "text-blue-600 dark:text-blue-400",
|
|
744
|
+
muted: "text-muted-foreground",
|
|
745
|
+
white: "text-white",
|
|
746
|
+
dark: "text-foreground"
|
|
747
|
+
};
|
|
748
|
+
var fontWeightClasses = {
|
|
749
|
+
light: "font-light",
|
|
750
|
+
regular: "font-normal",
|
|
751
|
+
medium: "font-medium",
|
|
752
|
+
semibold: "font-semibold",
|
|
753
|
+
bold: "font-bold"
|
|
754
|
+
};
|
|
755
|
+
var textTransformClasses = {
|
|
756
|
+
none: "normal-case",
|
|
757
|
+
uppercase: "uppercase",
|
|
758
|
+
lowercase: "lowercase",
|
|
759
|
+
capitalize: "capitalize"
|
|
760
|
+
};
|
|
761
|
+
var alignClasses2 = {
|
|
762
|
+
left: "text-left",
|
|
763
|
+
center: "text-center",
|
|
764
|
+
right: "text-right",
|
|
765
|
+
justify: "text-justify"
|
|
766
|
+
};
|
|
767
|
+
var verticalAlignClasses = {
|
|
768
|
+
top: "align-top",
|
|
769
|
+
middle: "align-middle",
|
|
770
|
+
bottom: "align-bottom",
|
|
771
|
+
baseline: "align-baseline"
|
|
772
|
+
};
|
|
773
|
+
var gradientClasses = {
|
|
774
|
+
primary: "from-purple-5 to-purple-8",
|
|
775
|
+
secondary: "from-slate-5 to-slate-8",
|
|
776
|
+
info: "from-blue-4 to-blue-7",
|
|
777
|
+
success: "from-green-4 to-green-7",
|
|
778
|
+
warning: "from-orange-4 to-orange-7",
|
|
779
|
+
error: "from-red-4 to-red-7",
|
|
780
|
+
dark: "from-slate-7 to-slate-10"
|
|
781
|
+
};
|
|
782
|
+
var Typography = React5.forwardRef(
|
|
783
|
+
({
|
|
784
|
+
className,
|
|
785
|
+
variant = "body1",
|
|
786
|
+
color = "inherit",
|
|
787
|
+
fontWeight,
|
|
788
|
+
textTransform,
|
|
789
|
+
align,
|
|
790
|
+
verticalAlign,
|
|
791
|
+
textGradient = false,
|
|
792
|
+
gradientColor = "primary",
|
|
793
|
+
opacity,
|
|
794
|
+
as,
|
|
795
|
+
gutterBottom = false,
|
|
796
|
+
noWrap = false,
|
|
797
|
+
paragraph = false,
|
|
798
|
+
style,
|
|
799
|
+
...props
|
|
800
|
+
}, ref) => {
|
|
801
|
+
const Component = as || variantMapping[variant];
|
|
802
|
+
const classes = cn(
|
|
803
|
+
variantClasses[variant],
|
|
804
|
+
color !== "inherit" && !textGradient && colorClasses2[color],
|
|
805
|
+
fontWeight && fontWeightClasses[fontWeight],
|
|
806
|
+
textTransform && textTransformClasses[textTransform],
|
|
807
|
+
align && alignClasses2[align],
|
|
808
|
+
verticalAlign && verticalAlignClasses[verticalAlign],
|
|
809
|
+
gutterBottom && "mb-2",
|
|
810
|
+
noWrap && "truncate",
|
|
811
|
+
paragraph && "mb-4",
|
|
812
|
+
// Text gradient styles
|
|
813
|
+
textGradient && [
|
|
814
|
+
"bg-gradient-to-r bg-clip-text text-transparent",
|
|
815
|
+
gradientClasses[gradientColor]
|
|
816
|
+
],
|
|
817
|
+
className
|
|
818
|
+
);
|
|
819
|
+
const combinedStyle = opacity !== void 0 ? { ...style, opacity } : style;
|
|
820
|
+
return /* @__PURE__ */ jsx5(
|
|
821
|
+
Component,
|
|
822
|
+
{
|
|
823
|
+
ref,
|
|
824
|
+
className: classes,
|
|
825
|
+
style: combinedStyle,
|
|
826
|
+
...props
|
|
827
|
+
}
|
|
828
|
+
);
|
|
829
|
+
}
|
|
830
|
+
);
|
|
831
|
+
Typography.displayName = "Typography";
|
|
832
|
+
var H1 = React5.forwardRef(
|
|
833
|
+
(props, ref) => /* @__PURE__ */ jsx5(Typography, { ref, variant: "h1", ...props })
|
|
834
|
+
);
|
|
835
|
+
H1.displayName = "H1";
|
|
836
|
+
var H2 = React5.forwardRef(
|
|
837
|
+
(props, ref) => /* @__PURE__ */ jsx5(Typography, { ref, variant: "h2", ...props })
|
|
838
|
+
);
|
|
839
|
+
H2.displayName = "H2";
|
|
840
|
+
var H3 = React5.forwardRef(
|
|
841
|
+
(props, ref) => /* @__PURE__ */ jsx5(Typography, { ref, variant: "h3", ...props })
|
|
842
|
+
);
|
|
843
|
+
H3.displayName = "H3";
|
|
844
|
+
var H4 = React5.forwardRef(
|
|
845
|
+
(props, ref) => /* @__PURE__ */ jsx5(Typography, { ref, variant: "h4", ...props })
|
|
846
|
+
);
|
|
847
|
+
H4.displayName = "H4";
|
|
848
|
+
var H5 = React5.forwardRef(
|
|
849
|
+
(props, ref) => /* @__PURE__ */ jsx5(Typography, { ref, variant: "h5", ...props })
|
|
850
|
+
);
|
|
851
|
+
H5.displayName = "H5";
|
|
852
|
+
var H6 = React5.forwardRef(
|
|
853
|
+
(props, ref) => /* @__PURE__ */ jsx5(Typography, { ref, variant: "h6", ...props })
|
|
854
|
+
);
|
|
855
|
+
H6.displayName = "H6";
|
|
856
|
+
var Text = React5.forwardRef(
|
|
857
|
+
(props, ref) => /* @__PURE__ */ jsx5(Typography, { ref, variant: "body1", ...props })
|
|
858
|
+
);
|
|
859
|
+
Text.displayName = "Text";
|
|
860
|
+
var Caption = React5.forwardRef(
|
|
861
|
+
(props, ref) => /* @__PURE__ */ jsx5(Typography, { ref, variant: "caption", ...props })
|
|
862
|
+
);
|
|
863
|
+
Caption.displayName = "Caption";
|
|
864
|
+
|
|
865
|
+
// src/components/button.tsx
|
|
866
|
+
import * as React6 from "react";
|
|
867
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
868
|
+
var Button = React6.forwardRef(
|
|
151
869
|
({ className, variant = "default", size = "default", ...props }, ref) => {
|
|
152
|
-
return /* @__PURE__ */
|
|
870
|
+
return /* @__PURE__ */ jsx6(
|
|
153
871
|
"button",
|
|
154
872
|
{
|
|
155
873
|
className: cn(
|
|
@@ -181,20 +899,68 @@ var Button = React2.forwardRef(
|
|
|
181
899
|
Button.displayName = "Button";
|
|
182
900
|
|
|
183
901
|
// src/components/input.tsx
|
|
184
|
-
import * as
|
|
185
|
-
import { jsx as
|
|
186
|
-
var
|
|
187
|
-
|
|
188
|
-
|
|
902
|
+
import * as React7 from "react";
|
|
903
|
+
import { jsx as jsx7, jsxs } from "react/jsx-runtime";
|
|
904
|
+
var sizeClasses = {
|
|
905
|
+
sm: "h-8 text-sm px-2.5",
|
|
906
|
+
md: "h-10 text-sm px-3",
|
|
907
|
+
lg: "h-12 text-base px-4"
|
|
908
|
+
};
|
|
909
|
+
var Input = React7.forwardRef(
|
|
910
|
+
({ className, type, inputSize = "md", error, startAdornment, endAdornment, ...props }, ref) => {
|
|
911
|
+
const hasAdornment = startAdornment || endAdornment;
|
|
912
|
+
if (hasAdornment) {
|
|
913
|
+
return /* @__PURE__ */ jsxs(
|
|
914
|
+
"div",
|
|
915
|
+
{
|
|
916
|
+
className: cn(
|
|
917
|
+
"flex items-center w-full rounded-md border",
|
|
918
|
+
"bg-background",
|
|
919
|
+
error ? "border-destructive focus-within:ring-2 focus-within:ring-destructive/20" : "border-input focus-within:ring-2 focus-within:ring-ring/20 focus-within:border-ring",
|
|
920
|
+
"transition-colors",
|
|
921
|
+
props.disabled && "opacity-50 cursor-not-allowed bg-muted"
|
|
922
|
+
),
|
|
923
|
+
children: [
|
|
924
|
+
startAdornment && /* @__PURE__ */ jsx7("div", { className: "flex items-center pl-3 text-muted-foreground", children: startAdornment }),
|
|
925
|
+
/* @__PURE__ */ jsx7(
|
|
926
|
+
"input",
|
|
927
|
+
{
|
|
928
|
+
type,
|
|
929
|
+
className: cn(
|
|
930
|
+
"flex w-full bg-transparent py-2",
|
|
931
|
+
"text-foreground",
|
|
932
|
+
"placeholder:text-muted-foreground",
|
|
933
|
+
"focus:outline-none",
|
|
934
|
+
"disabled:cursor-not-allowed",
|
|
935
|
+
"file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
936
|
+
sizeClasses[inputSize],
|
|
937
|
+
startAdornment && "pl-2",
|
|
938
|
+
endAdornment && "pr-2",
|
|
939
|
+
className
|
|
940
|
+
),
|
|
941
|
+
ref,
|
|
942
|
+
...props
|
|
943
|
+
}
|
|
944
|
+
),
|
|
945
|
+
endAdornment && /* @__PURE__ */ jsx7("div", { className: "flex items-center pr-3 text-muted-foreground", children: endAdornment })
|
|
946
|
+
]
|
|
947
|
+
}
|
|
948
|
+
);
|
|
949
|
+
}
|
|
950
|
+
return /* @__PURE__ */ jsx7(
|
|
189
951
|
"input",
|
|
190
952
|
{
|
|
191
953
|
type,
|
|
192
954
|
className: cn(
|
|
193
|
-
"flex
|
|
194
|
-
"
|
|
955
|
+
"flex w-full rounded-md border",
|
|
956
|
+
"bg-background text-foreground",
|
|
195
957
|
"placeholder:text-muted-foreground",
|
|
196
|
-
"focus
|
|
197
|
-
"
|
|
958
|
+
error ? "border-destructive focus:ring-2 focus:ring-destructive/20" : "border-input focus:ring-2 focus:ring-ring/20 focus:border-ring",
|
|
959
|
+
"focus:outline-none",
|
|
960
|
+
"disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-muted",
|
|
961
|
+
"transition-colors",
|
|
962
|
+
"file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
963
|
+
sizeClasses[inputSize],
|
|
198
964
|
className
|
|
199
965
|
),
|
|
200
966
|
ref,
|
|
@@ -206,11 +972,11 @@ var Input = React3.forwardRef(
|
|
|
206
972
|
Input.displayName = "Input";
|
|
207
973
|
|
|
208
974
|
// src/components/textarea.tsx
|
|
209
|
-
import * as
|
|
210
|
-
import { jsx as
|
|
211
|
-
var Textarea =
|
|
975
|
+
import * as React8 from "react";
|
|
976
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
977
|
+
var Textarea = React8.forwardRef(
|
|
212
978
|
({ className, ...props }, ref) => {
|
|
213
|
-
return /* @__PURE__ */
|
|
979
|
+
return /* @__PURE__ */ jsx8(
|
|
214
980
|
"textarea",
|
|
215
981
|
{
|
|
216
982
|
className: cn(
|
|
@@ -229,11 +995,348 @@ var Textarea = React4.forwardRef(
|
|
|
229
995
|
);
|
|
230
996
|
Textarea.displayName = "Textarea";
|
|
231
997
|
|
|
998
|
+
// src/components/text-field.tsx
|
|
999
|
+
import * as React10 from "react";
|
|
1000
|
+
|
|
1001
|
+
// src/components/label.tsx
|
|
1002
|
+
import * as React9 from "react";
|
|
1003
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1004
|
+
var Label = React9.forwardRef(
|
|
1005
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
1006
|
+
"label",
|
|
1007
|
+
{
|
|
1008
|
+
ref,
|
|
1009
|
+
className: cn(
|
|
1010
|
+
"text-sm font-medium leading-none text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
1011
|
+
className
|
|
1012
|
+
),
|
|
1013
|
+
...props
|
|
1014
|
+
}
|
|
1015
|
+
)
|
|
1016
|
+
);
|
|
1017
|
+
Label.displayName = "Label";
|
|
1018
|
+
|
|
1019
|
+
// src/components/text-field.tsx
|
|
1020
|
+
import { jsx as jsx10, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1021
|
+
var TextField = React10.forwardRef(
|
|
1022
|
+
({
|
|
1023
|
+
className,
|
|
1024
|
+
label,
|
|
1025
|
+
helperText,
|
|
1026
|
+
errorMessage,
|
|
1027
|
+
required,
|
|
1028
|
+
size = "md",
|
|
1029
|
+
fullWidth,
|
|
1030
|
+
id: idProp,
|
|
1031
|
+
error,
|
|
1032
|
+
...props
|
|
1033
|
+
}, ref) => {
|
|
1034
|
+
const generatedId = React10.useId();
|
|
1035
|
+
const id = idProp || generatedId;
|
|
1036
|
+
const helperId = `${id}-helper`;
|
|
1037
|
+
const hasError = error || !!errorMessage;
|
|
1038
|
+
return /* @__PURE__ */ jsxs2("div", { className: cn("grid gap-1.5", fullWidth && "w-full", className), children: [
|
|
1039
|
+
label && /* @__PURE__ */ jsxs2(
|
|
1040
|
+
Label,
|
|
1041
|
+
{
|
|
1042
|
+
htmlFor: id,
|
|
1043
|
+
className: cn(
|
|
1044
|
+
"text-sm font-medium",
|
|
1045
|
+
hasError && "text-destructive"
|
|
1046
|
+
),
|
|
1047
|
+
children: [
|
|
1048
|
+
label,
|
|
1049
|
+
required && /* @__PURE__ */ jsx10("span", { className: "text-destructive ml-0.5", "aria-hidden": "true", children: "*" })
|
|
1050
|
+
]
|
|
1051
|
+
}
|
|
1052
|
+
),
|
|
1053
|
+
/* @__PURE__ */ jsx10(
|
|
1054
|
+
Input,
|
|
1055
|
+
{
|
|
1056
|
+
ref,
|
|
1057
|
+
id,
|
|
1058
|
+
inputSize: size,
|
|
1059
|
+
error: hasError,
|
|
1060
|
+
"aria-describedby": helperText || errorMessage ? helperId : void 0,
|
|
1061
|
+
"aria-invalid": hasError,
|
|
1062
|
+
...props
|
|
1063
|
+
}
|
|
1064
|
+
),
|
|
1065
|
+
(helperText || errorMessage) && /* @__PURE__ */ jsx10(
|
|
1066
|
+
"p",
|
|
1067
|
+
{
|
|
1068
|
+
id: helperId,
|
|
1069
|
+
className: cn(
|
|
1070
|
+
"text-sm",
|
|
1071
|
+
hasError ? "text-destructive" : "text-muted-foreground"
|
|
1072
|
+
),
|
|
1073
|
+
children: errorMessage || helperText
|
|
1074
|
+
}
|
|
1075
|
+
)
|
|
1076
|
+
] });
|
|
1077
|
+
}
|
|
1078
|
+
);
|
|
1079
|
+
TextField.displayName = "TextField";
|
|
1080
|
+
|
|
1081
|
+
// src/components/checkbox.tsx
|
|
1082
|
+
import * as React11 from "react";
|
|
1083
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
1084
|
+
var Checkbox = React11.forwardRef(
|
|
1085
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
1086
|
+
"input",
|
|
1087
|
+
{
|
|
1088
|
+
type: "checkbox",
|
|
1089
|
+
ref,
|
|
1090
|
+
className: cn(
|
|
1091
|
+
"h-4 w-4 shrink-0 rounded-sm border border-accent cursor-pointer",
|
|
1092
|
+
"ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
1093
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1094
|
+
"accent-accent",
|
|
1095
|
+
className
|
|
1096
|
+
),
|
|
1097
|
+
...props
|
|
1098
|
+
}
|
|
1099
|
+
)
|
|
1100
|
+
);
|
|
1101
|
+
Checkbox.displayName = "Checkbox";
|
|
1102
|
+
|
|
1103
|
+
// src/components/switch.tsx
|
|
1104
|
+
import * as React12 from "react";
|
|
1105
|
+
import { jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1106
|
+
var Switch = React12.forwardRef(
|
|
1107
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxs3("label", { className: cn("relative inline-flex items-center cursor-pointer", className), children: [
|
|
1108
|
+
/* @__PURE__ */ jsx12(
|
|
1109
|
+
"input",
|
|
1110
|
+
{
|
|
1111
|
+
type: "checkbox",
|
|
1112
|
+
ref,
|
|
1113
|
+
className: "sr-only peer",
|
|
1114
|
+
...props
|
|
1115
|
+
}
|
|
1116
|
+
),
|
|
1117
|
+
/* @__PURE__ */ jsx12(
|
|
1118
|
+
"div",
|
|
1119
|
+
{
|
|
1120
|
+
className: cn(
|
|
1121
|
+
"w-11 h-6 rounded-full transition-colors",
|
|
1122
|
+
"bg-input peer-checked:bg-accent",
|
|
1123
|
+
"peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-background",
|
|
1124
|
+
"peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
1125
|
+
'after:content-[""] after:absolute after:top-[2px] after:left-[2px]',
|
|
1126
|
+
"after:bg-background after:rounded-full after:h-5 after:w-5",
|
|
1127
|
+
"after:transition-transform after:shadow-lg",
|
|
1128
|
+
"peer-checked:after:translate-x-5"
|
|
1129
|
+
)
|
|
1130
|
+
}
|
|
1131
|
+
)
|
|
1132
|
+
] })
|
|
1133
|
+
);
|
|
1134
|
+
Switch.displayName = "Switch";
|
|
1135
|
+
|
|
1136
|
+
// src/components/radio.tsx
|
|
1137
|
+
import * as React13 from "react";
|
|
1138
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
1139
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1140
|
+
var RadioGroupContext = React13.createContext({});
|
|
1141
|
+
var RadioGroup = React13.forwardRef(({ className, orientation = "vertical", size = "md", ...props }, ref) => {
|
|
1142
|
+
return /* @__PURE__ */ jsx13(RadioGroupContext.Provider, { value: { size }, children: /* @__PURE__ */ jsx13(
|
|
1143
|
+
RadioGroupPrimitive.Root,
|
|
1144
|
+
{
|
|
1145
|
+
ref,
|
|
1146
|
+
className: cn(
|
|
1147
|
+
"grid gap-2",
|
|
1148
|
+
orientation === "horizontal" && "grid-flow-col auto-cols-max gap-4",
|
|
1149
|
+
className
|
|
1150
|
+
),
|
|
1151
|
+
...props
|
|
1152
|
+
}
|
|
1153
|
+
) });
|
|
1154
|
+
});
|
|
1155
|
+
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
1156
|
+
var sizeClasses2 = {
|
|
1157
|
+
sm: "h-4 w-4",
|
|
1158
|
+
md: "h-5 w-5",
|
|
1159
|
+
lg: "h-6 w-6"
|
|
1160
|
+
};
|
|
1161
|
+
var indicatorSizeClasses = {
|
|
1162
|
+
sm: "h-2 w-2",
|
|
1163
|
+
md: "h-2.5 w-2.5",
|
|
1164
|
+
lg: "h-3 w-3"
|
|
1165
|
+
};
|
|
1166
|
+
var RadioGroupItem = React13.forwardRef(({ className, size: sizeProp, ...props }, ref) => {
|
|
1167
|
+
const { size: contextSize } = React13.useContext(RadioGroupContext);
|
|
1168
|
+
const size = sizeProp || contextSize || "md";
|
|
1169
|
+
return /* @__PURE__ */ jsx13(
|
|
1170
|
+
RadioGroupPrimitive.Item,
|
|
1171
|
+
{
|
|
1172
|
+
ref,
|
|
1173
|
+
className: cn(
|
|
1174
|
+
"aspect-square rounded-full",
|
|
1175
|
+
"border-2 border-input",
|
|
1176
|
+
"ring-offset-background",
|
|
1177
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
1178
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1179
|
+
"data-[state=checked]:border-accent",
|
|
1180
|
+
"transition-colors",
|
|
1181
|
+
sizeClasses2[size],
|
|
1182
|
+
className
|
|
1183
|
+
),
|
|
1184
|
+
...props,
|
|
1185
|
+
children: /* @__PURE__ */ jsx13(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx13(
|
|
1186
|
+
"div",
|
|
1187
|
+
{
|
|
1188
|
+
className: cn(
|
|
1189
|
+
"rounded-full bg-accent",
|
|
1190
|
+
indicatorSizeClasses[size]
|
|
1191
|
+
)
|
|
1192
|
+
}
|
|
1193
|
+
) })
|
|
1194
|
+
}
|
|
1195
|
+
);
|
|
1196
|
+
});
|
|
1197
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
1198
|
+
var Radio = React13.forwardRef(({ className, label, description, id: idProp, value, size, ...props }, ref) => {
|
|
1199
|
+
const generatedId = React13.useId();
|
|
1200
|
+
const id = idProp || generatedId;
|
|
1201
|
+
if (!label && !description) {
|
|
1202
|
+
return /* @__PURE__ */ jsx13(RadioGroupItem, { ref, value, size, ...props });
|
|
1203
|
+
}
|
|
1204
|
+
return /* @__PURE__ */ jsxs4("div", { className: cn("flex items-start gap-3", className), children: [
|
|
1205
|
+
/* @__PURE__ */ jsx13(RadioGroupItem, { ref, id, value, size, ...props }),
|
|
1206
|
+
/* @__PURE__ */ jsxs4("div", { className: "grid gap-1", children: [
|
|
1207
|
+
label && /* @__PURE__ */ jsx13(
|
|
1208
|
+
"label",
|
|
1209
|
+
{
|
|
1210
|
+
htmlFor: id,
|
|
1211
|
+
className: "text-sm font-medium leading-none text-foreground cursor-pointer peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
1212
|
+
children: label
|
|
1213
|
+
}
|
|
1214
|
+
),
|
|
1215
|
+
description && /* @__PURE__ */ jsx13("p", { className: "text-sm text-muted-foreground", children: description })
|
|
1216
|
+
] })
|
|
1217
|
+
] });
|
|
1218
|
+
});
|
|
1219
|
+
Radio.displayName = "Radio";
|
|
1220
|
+
|
|
1221
|
+
// src/components/form.tsx
|
|
1222
|
+
import * as React14 from "react";
|
|
1223
|
+
import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1224
|
+
var FormControlContext = React14.createContext({});
|
|
1225
|
+
function useFormControl() {
|
|
1226
|
+
return React14.useContext(FormControlContext);
|
|
1227
|
+
}
|
|
1228
|
+
var marginClasses2 = {
|
|
1229
|
+
none: "",
|
|
1230
|
+
dense: "my-1",
|
|
1231
|
+
normal: "my-2"
|
|
1232
|
+
};
|
|
1233
|
+
var FormControl = React14.forwardRef(
|
|
1234
|
+
({
|
|
1235
|
+
className,
|
|
1236
|
+
children,
|
|
1237
|
+
error,
|
|
1238
|
+
disabled,
|
|
1239
|
+
required,
|
|
1240
|
+
fullWidth,
|
|
1241
|
+
margin = "none",
|
|
1242
|
+
orientation = "vertical",
|
|
1243
|
+
...props
|
|
1244
|
+
}, ref) => {
|
|
1245
|
+
const id = React14.useId();
|
|
1246
|
+
return /* @__PURE__ */ jsx14(FormControlContext.Provider, { value: { id, error, disabled, required }, children: /* @__PURE__ */ jsx14(
|
|
1247
|
+
"div",
|
|
1248
|
+
{
|
|
1249
|
+
ref,
|
|
1250
|
+
className: cn(
|
|
1251
|
+
"inline-flex",
|
|
1252
|
+
orientation === "vertical" ? "flex-col gap-1.5" : "flex-row items-center gap-3",
|
|
1253
|
+
fullWidth && "w-full",
|
|
1254
|
+
marginClasses2[margin],
|
|
1255
|
+
disabled && "opacity-50 cursor-not-allowed",
|
|
1256
|
+
className
|
|
1257
|
+
),
|
|
1258
|
+
...props,
|
|
1259
|
+
children
|
|
1260
|
+
}
|
|
1261
|
+
) });
|
|
1262
|
+
}
|
|
1263
|
+
);
|
|
1264
|
+
FormControl.displayName = "FormControl";
|
|
1265
|
+
var FormLabel = React14.forwardRef(
|
|
1266
|
+
({ className, children, error: errorProp, disabled: disabledProp, required: requiredProp, htmlFor, ...props }, ref) => {
|
|
1267
|
+
const context = useFormControl();
|
|
1268
|
+
const error = errorProp ?? context.error;
|
|
1269
|
+
const disabled = disabledProp ?? context.disabled;
|
|
1270
|
+
const required = requiredProp ?? context.required;
|
|
1271
|
+
const id = htmlFor ?? context.id;
|
|
1272
|
+
return /* @__PURE__ */ jsxs5(
|
|
1273
|
+
"label",
|
|
1274
|
+
{
|
|
1275
|
+
ref,
|
|
1276
|
+
htmlFor: id,
|
|
1277
|
+
className: cn(
|
|
1278
|
+
"text-sm font-medium leading-none",
|
|
1279
|
+
"text-foreground",
|
|
1280
|
+
error && "text-destructive",
|
|
1281
|
+
disabled && "cursor-not-allowed opacity-70",
|
|
1282
|
+
className
|
|
1283
|
+
),
|
|
1284
|
+
...props,
|
|
1285
|
+
children: [
|
|
1286
|
+
children,
|
|
1287
|
+
required && /* @__PURE__ */ jsx14("span", { className: "text-destructive ml-0.5", "aria-hidden": "true", children: "*" })
|
|
1288
|
+
]
|
|
1289
|
+
}
|
|
1290
|
+
);
|
|
1291
|
+
}
|
|
1292
|
+
);
|
|
1293
|
+
FormLabel.displayName = "FormLabel";
|
|
1294
|
+
var FormHelperText = React14.forwardRef(
|
|
1295
|
+
({ className, children, error: errorProp, disabled: disabledProp, id, ...props }, ref) => {
|
|
1296
|
+
const context = useFormControl();
|
|
1297
|
+
const error = errorProp ?? context.error;
|
|
1298
|
+
const disabled = disabledProp ?? context.disabled;
|
|
1299
|
+
const helperId = id ?? (context.id ? `${context.id}-helper` : void 0);
|
|
1300
|
+
return /* @__PURE__ */ jsx14(
|
|
1301
|
+
"p",
|
|
1302
|
+
{
|
|
1303
|
+
ref,
|
|
1304
|
+
id: helperId,
|
|
1305
|
+
className: cn(
|
|
1306
|
+
"text-sm",
|
|
1307
|
+
error ? "text-destructive" : "text-muted-foreground",
|
|
1308
|
+
disabled && "opacity-70",
|
|
1309
|
+
className
|
|
1310
|
+
),
|
|
1311
|
+
...props,
|
|
1312
|
+
children
|
|
1313
|
+
}
|
|
1314
|
+
);
|
|
1315
|
+
}
|
|
1316
|
+
);
|
|
1317
|
+
FormHelperText.displayName = "FormHelperText";
|
|
1318
|
+
var FormGroup = React14.forwardRef(
|
|
1319
|
+
({ className, row, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
1320
|
+
"div",
|
|
1321
|
+
{
|
|
1322
|
+
ref,
|
|
1323
|
+
role: "group",
|
|
1324
|
+
className: cn(
|
|
1325
|
+
"flex",
|
|
1326
|
+
row ? "flex-row flex-wrap gap-4" : "flex-col gap-2",
|
|
1327
|
+
className
|
|
1328
|
+
),
|
|
1329
|
+
...props
|
|
1330
|
+
}
|
|
1331
|
+
)
|
|
1332
|
+
);
|
|
1333
|
+
FormGroup.displayName = "FormGroup";
|
|
1334
|
+
|
|
232
1335
|
// src/components/card.tsx
|
|
233
|
-
import * as
|
|
234
|
-
import { jsx as
|
|
235
|
-
var Card =
|
|
236
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1336
|
+
import * as React15 from "react";
|
|
1337
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1338
|
+
var Card = React15.forwardRef(
|
|
1339
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
237
1340
|
"div",
|
|
238
1341
|
{
|
|
239
1342
|
ref,
|
|
@@ -246,8 +1349,8 @@ var Card = React5.forwardRef(
|
|
|
246
1349
|
)
|
|
247
1350
|
);
|
|
248
1351
|
Card.displayName = "Card";
|
|
249
|
-
var CardHeader =
|
|
250
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1352
|
+
var CardHeader = React15.forwardRef(
|
|
1353
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
251
1354
|
"div",
|
|
252
1355
|
{
|
|
253
1356
|
ref,
|
|
@@ -257,8 +1360,8 @@ var CardHeader = React5.forwardRef(
|
|
|
257
1360
|
)
|
|
258
1361
|
);
|
|
259
1362
|
CardHeader.displayName = "CardHeader";
|
|
260
|
-
var CardTitle =
|
|
261
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1363
|
+
var CardTitle = React15.forwardRef(
|
|
1364
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
262
1365
|
"h3",
|
|
263
1366
|
{
|
|
264
1367
|
ref,
|
|
@@ -268,8 +1371,8 @@ var CardTitle = React5.forwardRef(
|
|
|
268
1371
|
)
|
|
269
1372
|
);
|
|
270
1373
|
CardTitle.displayName = "CardTitle";
|
|
271
|
-
var CardDescription =
|
|
272
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1374
|
+
var CardDescription = React15.forwardRef(
|
|
1375
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
273
1376
|
"p",
|
|
274
1377
|
{
|
|
275
1378
|
ref,
|
|
@@ -279,12 +1382,12 @@ var CardDescription = React5.forwardRef(
|
|
|
279
1382
|
)
|
|
280
1383
|
);
|
|
281
1384
|
CardDescription.displayName = "CardDescription";
|
|
282
|
-
var CardContent =
|
|
283
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1385
|
+
var CardContent = React15.forwardRef(
|
|
1386
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx15("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
284
1387
|
);
|
|
285
1388
|
CardContent.displayName = "CardContent";
|
|
286
|
-
var CardFooter =
|
|
287
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1389
|
+
var CardFooter = React15.forwardRef(
|
|
1390
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
288
1391
|
"div",
|
|
289
1392
|
{
|
|
290
1393
|
ref,
|
|
@@ -296,11 +1399,11 @@ var CardFooter = React5.forwardRef(
|
|
|
296
1399
|
CardFooter.displayName = "CardFooter";
|
|
297
1400
|
|
|
298
1401
|
// src/components/badge.tsx
|
|
299
|
-
import * as
|
|
300
|
-
import { jsx as
|
|
301
|
-
var Badge =
|
|
1402
|
+
import * as React16 from "react";
|
|
1403
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1404
|
+
var Badge = React16.forwardRef(
|
|
302
1405
|
({ className, variant = "default", ...props }, ref) => {
|
|
303
|
-
return /* @__PURE__ */
|
|
1406
|
+
return /* @__PURE__ */ jsx16(
|
|
304
1407
|
"div",
|
|
305
1408
|
{
|
|
306
1409
|
ref,
|
|
@@ -322,84 +1425,11 @@ var Badge = React6.forwardRef(
|
|
|
322
1425
|
);
|
|
323
1426
|
Badge.displayName = "Badge";
|
|
324
1427
|
|
|
325
|
-
// src/components/label.tsx
|
|
326
|
-
import * as React7 from "react";
|
|
327
|
-
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
328
|
-
var Label = React7.forwardRef(
|
|
329
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
|
|
330
|
-
"label",
|
|
331
|
-
{
|
|
332
|
-
ref,
|
|
333
|
-
className: cn(
|
|
334
|
-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
335
|
-
className
|
|
336
|
-
),
|
|
337
|
-
...props
|
|
338
|
-
}
|
|
339
|
-
)
|
|
340
|
-
);
|
|
341
|
-
Label.displayName = "Label";
|
|
342
|
-
|
|
343
|
-
// src/components/checkbox.tsx
|
|
344
|
-
import * as React8 from "react";
|
|
345
|
-
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
346
|
-
var Checkbox = React8.forwardRef(
|
|
347
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
348
|
-
"input",
|
|
349
|
-
{
|
|
350
|
-
type: "checkbox",
|
|
351
|
-
ref,
|
|
352
|
-
className: cn(
|
|
353
|
-
"h-4 w-4 shrink-0 rounded-sm border border-accent cursor-pointer",
|
|
354
|
-
"ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
355
|
-
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
356
|
-
"accent-accent",
|
|
357
|
-
className
|
|
358
|
-
),
|
|
359
|
-
...props
|
|
360
|
-
}
|
|
361
|
-
)
|
|
362
|
-
);
|
|
363
|
-
Checkbox.displayName = "Checkbox";
|
|
364
|
-
|
|
365
|
-
// src/components/switch.tsx
|
|
366
|
-
import * as React9 from "react";
|
|
367
|
-
import { jsx as jsx9, jsxs } from "react/jsx-runtime";
|
|
368
|
-
var Switch = React9.forwardRef(
|
|
369
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxs("label", { className: cn("relative inline-flex items-center cursor-pointer", className), children: [
|
|
370
|
-
/* @__PURE__ */ jsx9(
|
|
371
|
-
"input",
|
|
372
|
-
{
|
|
373
|
-
type: "checkbox",
|
|
374
|
-
ref,
|
|
375
|
-
className: "sr-only peer",
|
|
376
|
-
...props
|
|
377
|
-
}
|
|
378
|
-
),
|
|
379
|
-
/* @__PURE__ */ jsx9(
|
|
380
|
-
"div",
|
|
381
|
-
{
|
|
382
|
-
className: cn(
|
|
383
|
-
"w-11 h-6 rounded-full transition-colors",
|
|
384
|
-
"bg-input peer-checked:bg-accent",
|
|
385
|
-
"peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-background",
|
|
386
|
-
"peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
387
|
-
'after:content-[""] after:absolute after:top-[2px] after:left-[2px]',
|
|
388
|
-
"after:bg-background after:rounded-full after:h-5 after:w-5",
|
|
389
|
-
"after:transition-transform after:shadow-lg",
|
|
390
|
-
"peer-checked:after:translate-x-5"
|
|
391
|
-
)
|
|
392
|
-
}
|
|
393
|
-
)
|
|
394
|
-
] })
|
|
395
|
-
);
|
|
396
|
-
Switch.displayName = "Switch";
|
|
397
|
-
|
|
398
1428
|
// src/components/separator.tsx
|
|
399
|
-
import * as
|
|
400
|
-
import { jsx as
|
|
401
|
-
var Separator =
|
|
402
|
-
({ className, orientation = "horizontal", ...props }, ref) => /* @__PURE__ */
|
|
1429
|
+
import * as React17 from "react";
|
|
1430
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1431
|
+
var Separator = React17.forwardRef(
|
|
1432
|
+
({ className, orientation = "horizontal", ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
403
1433
|
"div",
|
|
404
1434
|
{
|
|
405
1435
|
ref,
|
|
@@ -417,10 +1447,10 @@ var Separator = React10.forwardRef(
|
|
|
417
1447
|
Separator.displayName = "Separator";
|
|
418
1448
|
|
|
419
1449
|
// src/components/select/index.tsx
|
|
420
|
-
import * as
|
|
1450
|
+
import * as React18 from "react";
|
|
421
1451
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
422
|
-
import { jsx as
|
|
423
|
-
var ChevronDownIcon = () => /* @__PURE__ */
|
|
1452
|
+
import { jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1453
|
+
var ChevronDownIcon = () => /* @__PURE__ */ jsx18(
|
|
424
1454
|
"svg",
|
|
425
1455
|
{
|
|
426
1456
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -432,10 +1462,10 @@ var ChevronDownIcon = () => /* @__PURE__ */ jsx11(
|
|
|
432
1462
|
strokeWidth: "2",
|
|
433
1463
|
strokeLinecap: "round",
|
|
434
1464
|
strokeLinejoin: "round",
|
|
435
|
-
children: /* @__PURE__ */
|
|
1465
|
+
children: /* @__PURE__ */ jsx18("path", { d: "m6 9 6 6 6-6" })
|
|
436
1466
|
}
|
|
437
1467
|
);
|
|
438
|
-
var ChevronUpIcon = () => /* @__PURE__ */
|
|
1468
|
+
var ChevronUpIcon = () => /* @__PURE__ */ jsx18(
|
|
439
1469
|
"svg",
|
|
440
1470
|
{
|
|
441
1471
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -447,10 +1477,10 @@ var ChevronUpIcon = () => /* @__PURE__ */ jsx11(
|
|
|
447
1477
|
strokeWidth: "2",
|
|
448
1478
|
strokeLinecap: "round",
|
|
449
1479
|
strokeLinejoin: "round",
|
|
450
|
-
children: /* @__PURE__ */
|
|
1480
|
+
children: /* @__PURE__ */ jsx18("path", { d: "m18 15-6-6-6 6" })
|
|
451
1481
|
}
|
|
452
1482
|
);
|
|
453
|
-
var CheckIcon = () => /* @__PURE__ */
|
|
1483
|
+
var CheckIcon = () => /* @__PURE__ */ jsx18(
|
|
454
1484
|
"svg",
|
|
455
1485
|
{
|
|
456
1486
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -462,13 +1492,13 @@ var CheckIcon = () => /* @__PURE__ */ jsx11(
|
|
|
462
1492
|
strokeWidth: "2",
|
|
463
1493
|
strokeLinecap: "round",
|
|
464
1494
|
strokeLinejoin: "round",
|
|
465
|
-
children: /* @__PURE__ */
|
|
1495
|
+
children: /* @__PURE__ */ jsx18("path", { d: "M20 6 9 17l-5-5" })
|
|
466
1496
|
}
|
|
467
1497
|
);
|
|
468
1498
|
var Select = SelectPrimitive.Root;
|
|
469
1499
|
var SelectGroup = SelectPrimitive.Group;
|
|
470
1500
|
var SelectValue = SelectPrimitive.Value;
|
|
471
|
-
var SelectTrigger =
|
|
1501
|
+
var SelectTrigger = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(
|
|
472
1502
|
SelectPrimitive.Trigger,
|
|
473
1503
|
{
|
|
474
1504
|
ref,
|
|
@@ -485,12 +1515,12 @@ var SelectTrigger = React11.forwardRef(({ className, children, ...props }, ref)
|
|
|
485
1515
|
...props,
|
|
486
1516
|
children: [
|
|
487
1517
|
children,
|
|
488
|
-
/* @__PURE__ */
|
|
1518
|
+
/* @__PURE__ */ jsx18(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx18(ChevronDownIcon, {}) })
|
|
489
1519
|
]
|
|
490
1520
|
}
|
|
491
1521
|
));
|
|
492
1522
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
493
|
-
var SelectScrollUpButton =
|
|
1523
|
+
var SelectScrollUpButton = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
494
1524
|
SelectPrimitive.ScrollUpButton,
|
|
495
1525
|
{
|
|
496
1526
|
ref,
|
|
@@ -499,11 +1529,11 @@ var SelectScrollUpButton = React11.forwardRef(({ className, ...props }, ref) =>
|
|
|
499
1529
|
className
|
|
500
1530
|
),
|
|
501
1531
|
...props,
|
|
502
|
-
children: /* @__PURE__ */
|
|
1532
|
+
children: /* @__PURE__ */ jsx18(ChevronUpIcon, {})
|
|
503
1533
|
}
|
|
504
1534
|
));
|
|
505
1535
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
506
|
-
var SelectScrollDownButton =
|
|
1536
|
+
var SelectScrollDownButton = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
507
1537
|
SelectPrimitive.ScrollDownButton,
|
|
508
1538
|
{
|
|
509
1539
|
ref,
|
|
@@ -512,11 +1542,11 @@ var SelectScrollDownButton = React11.forwardRef(({ className, ...props }, ref) =
|
|
|
512
1542
|
className
|
|
513
1543
|
),
|
|
514
1544
|
...props,
|
|
515
|
-
children: /* @__PURE__ */
|
|
1545
|
+
children: /* @__PURE__ */ jsx18(ChevronDownIcon, {})
|
|
516
1546
|
}
|
|
517
1547
|
));
|
|
518
1548
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
519
|
-
var SelectContent =
|
|
1549
|
+
var SelectContent = React18.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx18(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs6(
|
|
520
1550
|
SelectPrimitive.Content,
|
|
521
1551
|
{
|
|
522
1552
|
ref,
|
|
@@ -534,8 +1564,8 @@ var SelectContent = React11.forwardRef(({ className, children, position = "poppe
|
|
|
534
1564
|
position,
|
|
535
1565
|
...props,
|
|
536
1566
|
children: [
|
|
537
|
-
/* @__PURE__ */
|
|
538
|
-
/* @__PURE__ */
|
|
1567
|
+
/* @__PURE__ */ jsx18(SelectScrollUpButton, {}),
|
|
1568
|
+
/* @__PURE__ */ jsx18(
|
|
539
1569
|
SelectPrimitive.Viewport,
|
|
540
1570
|
{
|
|
541
1571
|
className: cn(
|
|
@@ -545,12 +1575,12 @@ var SelectContent = React11.forwardRef(({ className, children, position = "poppe
|
|
|
545
1575
|
children
|
|
546
1576
|
}
|
|
547
1577
|
),
|
|
548
|
-
/* @__PURE__ */
|
|
1578
|
+
/* @__PURE__ */ jsx18(SelectScrollDownButton, {})
|
|
549
1579
|
]
|
|
550
1580
|
}
|
|
551
1581
|
) }));
|
|
552
1582
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
553
|
-
var SelectLabel =
|
|
1583
|
+
var SelectLabel = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
554
1584
|
SelectPrimitive.Label,
|
|
555
1585
|
{
|
|
556
1586
|
ref,
|
|
@@ -559,7 +1589,7 @@ var SelectLabel = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
559
1589
|
}
|
|
560
1590
|
));
|
|
561
1591
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
562
|
-
var SelectItem =
|
|
1592
|
+
var SelectItem = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(
|
|
563
1593
|
SelectPrimitive.Item,
|
|
564
1594
|
{
|
|
565
1595
|
ref,
|
|
@@ -571,13 +1601,13 @@ var SelectItem = React11.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
571
1601
|
),
|
|
572
1602
|
...props,
|
|
573
1603
|
children: [
|
|
574
|
-
/* @__PURE__ */
|
|
575
|
-
/* @__PURE__ */
|
|
1604
|
+
/* @__PURE__ */ jsx18("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx18(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx18(CheckIcon, {}) }) }),
|
|
1605
|
+
/* @__PURE__ */ jsx18(SelectPrimitive.ItemText, { children })
|
|
576
1606
|
]
|
|
577
1607
|
}
|
|
578
1608
|
));
|
|
579
1609
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
580
|
-
var SelectSeparator =
|
|
1610
|
+
var SelectSeparator = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
581
1611
|
SelectPrimitive.Separator,
|
|
582
1612
|
{
|
|
583
1613
|
ref,
|
|
@@ -597,8 +1627,8 @@ var SelectNamespace = Object.assign(Select, {
|
|
|
597
1627
|
ScrollUpButton: SelectScrollUpButton,
|
|
598
1628
|
ScrollDownButton: SelectScrollDownButton
|
|
599
1629
|
});
|
|
600
|
-
var NativeSelect =
|
|
601
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
1630
|
+
var NativeSelect = React18.forwardRef(
|
|
1631
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
602
1632
|
"select",
|
|
603
1633
|
{
|
|
604
1634
|
ref,
|
|
@@ -615,90 +1645,80 @@ var NativeSelect = React11.forwardRef(
|
|
|
615
1645
|
)
|
|
616
1646
|
);
|
|
617
1647
|
NativeSelect.displayName = "NativeSelect";
|
|
618
|
-
var NativeSelectOption =
|
|
619
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1648
|
+
var NativeSelectOption = React18.forwardRef(
|
|
1649
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx18("option", { ref, className: cn("py-1.5", className), ...props })
|
|
620
1650
|
);
|
|
621
1651
|
NativeSelectOption.displayName = "NativeSelectOption";
|
|
622
1652
|
|
|
623
1653
|
// src/components/dialog/index.tsx
|
|
624
|
-
import * as
|
|
625
|
-
import
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
Dialog.displayName = "Dialog";
|
|
640
|
-
var DialogContent = React12.forwardRef(
|
|
641
|
-
({ className, children, onClose, ...props }, ref) => /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
642
|
-
/* @__PURE__ */ jsx12(
|
|
643
|
-
"div",
|
|
644
|
-
{
|
|
645
|
-
className: "fixed inset-0 z-50 bg-black/80",
|
|
646
|
-
onClick: onClose
|
|
647
|
-
}
|
|
1654
|
+
import * as React19 from "react";
|
|
1655
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
1656
|
+
import { jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1657
|
+
var Dialog = DialogPrimitive.Root;
|
|
1658
|
+
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1659
|
+
var DialogPortal = DialogPrimitive.Portal;
|
|
1660
|
+
var DialogClose = DialogPrimitive.Close;
|
|
1661
|
+
var DialogOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1662
|
+
DialogPrimitive.Overlay,
|
|
1663
|
+
{
|
|
1664
|
+
ref,
|
|
1665
|
+
className: cn(
|
|
1666
|
+
"fixed inset-0 z-50 bg-black/80",
|
|
1667
|
+
"data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out",
|
|
1668
|
+
className
|
|
648
1669
|
),
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
1670
|
+
...props
|
|
1671
|
+
}
|
|
1672
|
+
));
|
|
1673
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1674
|
+
var DialogContent = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(DialogPortal, { children: [
|
|
1675
|
+
/* @__PURE__ */ jsx19(DialogOverlay, {}),
|
|
1676
|
+
/* @__PURE__ */ jsxs7(
|
|
1677
|
+
DialogPrimitive.Content,
|
|
1678
|
+
{
|
|
1679
|
+
ref,
|
|
1680
|
+
className: cn(
|
|
1681
|
+
"fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 p-6 shadow-lg",
|
|
1682
|
+
"bg-popover border border-border text-popover-foreground",
|
|
1683
|
+
"rounded-lg",
|
|
1684
|
+
"data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out",
|
|
1685
|
+
"duration-200",
|
|
1686
|
+
className
|
|
1687
|
+
),
|
|
1688
|
+
...props,
|
|
1689
|
+
children: [
|
|
1690
|
+
children,
|
|
1691
|
+
/* @__PURE__ */ jsxs7(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
1692
|
+
/* @__PURE__ */ jsxs7(
|
|
1693
|
+
"svg",
|
|
664
1694
|
{
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
1695
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1696
|
+
width: "24",
|
|
1697
|
+
height: "24",
|
|
1698
|
+
viewBox: "0 0 24 24",
|
|
1699
|
+
fill: "none",
|
|
1700
|
+
stroke: "currentColor",
|
|
1701
|
+
strokeWidth: "2",
|
|
1702
|
+
strokeLinecap: "round",
|
|
1703
|
+
strokeLinejoin: "round",
|
|
1704
|
+
className: "h-4 w-4",
|
|
668
1705
|
children: [
|
|
669
|
-
/* @__PURE__ */
|
|
670
|
-
|
|
671
|
-
{
|
|
672
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
673
|
-
width: "24",
|
|
674
|
-
height: "24",
|
|
675
|
-
viewBox: "0 0 24 24",
|
|
676
|
-
fill: "none",
|
|
677
|
-
stroke: "currentColor",
|
|
678
|
-
strokeWidth: "2",
|
|
679
|
-
strokeLinecap: "round",
|
|
680
|
-
strokeLinejoin: "round",
|
|
681
|
-
className: "h-4 w-4",
|
|
682
|
-
children: [
|
|
683
|
-
/* @__PURE__ */ jsx12("path", { d: "M18 6 6 18" }),
|
|
684
|
-
/* @__PURE__ */ jsx12("path", { d: "m6 6 12 12" })
|
|
685
|
-
]
|
|
686
|
-
}
|
|
687
|
-
),
|
|
688
|
-
/* @__PURE__ */ jsx12("span", { className: "sr-only", children: "Close" })
|
|
1706
|
+
/* @__PURE__ */ jsx19("path", { d: "M18 6 6 18" }),
|
|
1707
|
+
/* @__PURE__ */ jsx19("path", { d: "m6 6 12 12" })
|
|
689
1708
|
]
|
|
690
1709
|
}
|
|
691
|
-
)
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
)
|
|
697
|
-
|
|
1710
|
+
),
|
|
1711
|
+
/* @__PURE__ */ jsx19("span", { className: "sr-only", children: "Close" })
|
|
1712
|
+
] })
|
|
1713
|
+
]
|
|
1714
|
+
}
|
|
1715
|
+
)
|
|
1716
|
+
] }));
|
|
1717
|
+
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
698
1718
|
var DialogHeader = ({
|
|
699
1719
|
className,
|
|
700
1720
|
...props
|
|
701
|
-
}) => /* @__PURE__ */
|
|
1721
|
+
}) => /* @__PURE__ */ jsx19(
|
|
702
1722
|
"div",
|
|
703
1723
|
{
|
|
704
1724
|
className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className),
|
|
@@ -709,7 +1729,7 @@ DialogHeader.displayName = "DialogHeader";
|
|
|
709
1729
|
var DialogFooter = ({
|
|
710
1730
|
className,
|
|
711
1731
|
...props
|
|
712
|
-
}) => /* @__PURE__ */
|
|
1732
|
+
}) => /* @__PURE__ */ jsx19(
|
|
713
1733
|
"div",
|
|
714
1734
|
{
|
|
715
1735
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
@@ -717,29 +1737,29 @@ var DialogFooter = ({
|
|
|
717
1737
|
}
|
|
718
1738
|
);
|
|
719
1739
|
DialogFooter.displayName = "DialogFooter";
|
|
720
|
-
var DialogTitle =
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
)
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
"
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
}
|
|
739
|
-
)
|
|
740
|
-
);
|
|
741
|
-
DialogDescription.displayName = "DialogDescription";
|
|
1740
|
+
var DialogTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1741
|
+
DialogPrimitive.Title,
|
|
1742
|
+
{
|
|
1743
|
+
ref,
|
|
1744
|
+
className: cn("text-lg font-semibold leading-none tracking-tight text-foreground", className),
|
|
1745
|
+
...props
|
|
1746
|
+
}
|
|
1747
|
+
));
|
|
1748
|
+
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1749
|
+
var DialogDescription = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1750
|
+
DialogPrimitive.Description,
|
|
1751
|
+
{
|
|
1752
|
+
ref,
|
|
1753
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
1754
|
+
...props
|
|
1755
|
+
}
|
|
1756
|
+
));
|
|
1757
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
742
1758
|
var DialogNamespace = Object.assign(Dialog, {
|
|
1759
|
+
Trigger: DialogTrigger,
|
|
1760
|
+
Portal: DialogPortal,
|
|
1761
|
+
Close: DialogClose,
|
|
1762
|
+
Overlay: DialogOverlay,
|
|
743
1763
|
Content: DialogContent,
|
|
744
1764
|
Header: DialogHeader,
|
|
745
1765
|
Footer: DialogFooter,
|
|
@@ -748,11 +1768,11 @@ var DialogNamespace = Object.assign(Dialog, {
|
|
|
748
1768
|
});
|
|
749
1769
|
|
|
750
1770
|
// src/components/spinner.tsx
|
|
751
|
-
import * as
|
|
752
|
-
import { jsx as
|
|
753
|
-
var Spinner =
|
|
1771
|
+
import * as React20 from "react";
|
|
1772
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1773
|
+
var Spinner = React20.forwardRef(
|
|
754
1774
|
({ className, size = "default", ...props }, ref) => {
|
|
755
|
-
return /* @__PURE__ */
|
|
1775
|
+
return /* @__PURE__ */ jsx20(
|
|
756
1776
|
"div",
|
|
757
1777
|
{
|
|
758
1778
|
ref,
|
|
@@ -769,7 +1789,7 @@ var Spinner = React13.forwardRef(
|
|
|
769
1789
|
className
|
|
770
1790
|
),
|
|
771
1791
|
...props,
|
|
772
|
-
children: /* @__PURE__ */
|
|
1792
|
+
children: /* @__PURE__ */ jsx20("span", { className: "sr-only", children: "Loading..." })
|
|
773
1793
|
}
|
|
774
1794
|
);
|
|
775
1795
|
}
|
|
@@ -777,9 +1797,9 @@ var Spinner = React13.forwardRef(
|
|
|
777
1797
|
Spinner.displayName = "Spinner";
|
|
778
1798
|
|
|
779
1799
|
// src/components/table.tsx
|
|
780
|
-
import * as
|
|
781
|
-
import { jsx as
|
|
782
|
-
var Table =
|
|
1800
|
+
import * as React21 from "react";
|
|
1801
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1802
|
+
var Table = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx21(
|
|
783
1803
|
"table",
|
|
784
1804
|
{
|
|
785
1805
|
ref,
|
|
@@ -788,9 +1808,9 @@ var Table = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
788
1808
|
}
|
|
789
1809
|
) }));
|
|
790
1810
|
Table.displayName = "Table";
|
|
791
|
-
var TableHeader =
|
|
1811
|
+
var TableHeader = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
792
1812
|
TableHeader.displayName = "TableHeader";
|
|
793
|
-
var TableBody =
|
|
1813
|
+
var TableBody = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
794
1814
|
"tbody",
|
|
795
1815
|
{
|
|
796
1816
|
ref,
|
|
@@ -799,7 +1819,7 @@ var TableBody = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
799
1819
|
}
|
|
800
1820
|
));
|
|
801
1821
|
TableBody.displayName = "TableBody";
|
|
802
|
-
var TableFooter =
|
|
1822
|
+
var TableFooter = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
803
1823
|
"tfoot",
|
|
804
1824
|
{
|
|
805
1825
|
ref,
|
|
@@ -811,7 +1831,7 @@ var TableFooter = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
811
1831
|
}
|
|
812
1832
|
));
|
|
813
1833
|
TableFooter.displayName = "TableFooter";
|
|
814
|
-
var TableRow =
|
|
1834
|
+
var TableRow = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
815
1835
|
"tr",
|
|
816
1836
|
{
|
|
817
1837
|
ref,
|
|
@@ -825,7 +1845,7 @@ var TableRow = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
825
1845
|
}
|
|
826
1846
|
));
|
|
827
1847
|
TableRow.displayName = "TableRow";
|
|
828
|
-
var TableHead =
|
|
1848
|
+
var TableHead = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
829
1849
|
"th",
|
|
830
1850
|
{
|
|
831
1851
|
ref,
|
|
@@ -838,7 +1858,7 @@ var TableHead = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
838
1858
|
}
|
|
839
1859
|
));
|
|
840
1860
|
TableHead.displayName = "TableHead";
|
|
841
|
-
var TableCell =
|
|
1861
|
+
var TableCell = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
842
1862
|
"td",
|
|
843
1863
|
{
|
|
844
1864
|
ref,
|
|
@@ -850,7 +1870,7 @@ var TableCell = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
850
1870
|
}
|
|
851
1871
|
));
|
|
852
1872
|
TableCell.displayName = "TableCell";
|
|
853
|
-
var TableCaption =
|
|
1873
|
+
var TableCaption = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
854
1874
|
"caption",
|
|
855
1875
|
{
|
|
856
1876
|
ref,
|
|
@@ -870,10 +1890,10 @@ var TableNamespace = Object.assign(Table, {
|
|
|
870
1890
|
});
|
|
871
1891
|
|
|
872
1892
|
// src/components/pagination.tsx
|
|
873
|
-
import * as
|
|
874
|
-
import { jsx as
|
|
875
|
-
var Pagination =
|
|
876
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1893
|
+
import * as React22 from "react";
|
|
1894
|
+
import { jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1895
|
+
var Pagination = React22.forwardRef(
|
|
1896
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
877
1897
|
"nav",
|
|
878
1898
|
{
|
|
879
1899
|
ref,
|
|
@@ -885,7 +1905,7 @@ var Pagination = React15.forwardRef(
|
|
|
885
1905
|
)
|
|
886
1906
|
);
|
|
887
1907
|
Pagination.displayName = "Pagination";
|
|
888
|
-
var PaginationContent =
|
|
1908
|
+
var PaginationContent = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
889
1909
|
"ul",
|
|
890
1910
|
{
|
|
891
1911
|
ref,
|
|
@@ -894,10 +1914,10 @@ var PaginationContent = React15.forwardRef(({ className, ...props }, ref) => /*
|
|
|
894
1914
|
}
|
|
895
1915
|
));
|
|
896
1916
|
PaginationContent.displayName = "PaginationContent";
|
|
897
|
-
var PaginationItem =
|
|
1917
|
+
var PaginationItem = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22("li", { ref, className: cn("", className), ...props }));
|
|
898
1918
|
PaginationItem.displayName = "PaginationItem";
|
|
899
|
-
var PaginationLink =
|
|
900
|
-
({ className, isActive, ...props }, ref) => /* @__PURE__ */
|
|
1919
|
+
var PaginationLink = React22.forwardRef(
|
|
1920
|
+
({ className, isActive, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
901
1921
|
Button,
|
|
902
1922
|
{
|
|
903
1923
|
ref,
|
|
@@ -909,7 +1929,7 @@ var PaginationLink = React15.forwardRef(
|
|
|
909
1929
|
)
|
|
910
1930
|
);
|
|
911
1931
|
PaginationLink.displayName = "PaginationLink";
|
|
912
|
-
var PaginationPrevious =
|
|
1932
|
+
var PaginationPrevious = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs8(
|
|
913
1933
|
Button,
|
|
914
1934
|
{
|
|
915
1935
|
ref,
|
|
@@ -918,7 +1938,7 @@ var PaginationPrevious = React15.forwardRef(({ className, ...props }, ref) => /*
|
|
|
918
1938
|
className: cn("gap-1 pl-2.5", className),
|
|
919
1939
|
...props,
|
|
920
1940
|
children: [
|
|
921
|
-
/* @__PURE__ */
|
|
1941
|
+
/* @__PURE__ */ jsx22(
|
|
922
1942
|
"svg",
|
|
923
1943
|
{
|
|
924
1944
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -931,15 +1951,15 @@ var PaginationPrevious = React15.forwardRef(({ className, ...props }, ref) => /*
|
|
|
931
1951
|
strokeLinecap: "round",
|
|
932
1952
|
strokeLinejoin: "round",
|
|
933
1953
|
className: "h-4 w-4",
|
|
934
|
-
children: /* @__PURE__ */
|
|
1954
|
+
children: /* @__PURE__ */ jsx22("path", { d: "m15 18-6-6 6-6" })
|
|
935
1955
|
}
|
|
936
1956
|
),
|
|
937
|
-
/* @__PURE__ */
|
|
1957
|
+
/* @__PURE__ */ jsx22("span", { children: "Previous" })
|
|
938
1958
|
]
|
|
939
1959
|
}
|
|
940
1960
|
));
|
|
941
1961
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
942
|
-
var PaginationNext =
|
|
1962
|
+
var PaginationNext = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs8(
|
|
943
1963
|
Button,
|
|
944
1964
|
{
|
|
945
1965
|
ref,
|
|
@@ -948,8 +1968,8 @@ var PaginationNext = React15.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
948
1968
|
className: cn("gap-1 pr-2.5", className),
|
|
949
1969
|
...props,
|
|
950
1970
|
children: [
|
|
951
|
-
/* @__PURE__ */
|
|
952
|
-
/* @__PURE__ */
|
|
1971
|
+
/* @__PURE__ */ jsx22("span", { children: "Next" }),
|
|
1972
|
+
/* @__PURE__ */ jsx22(
|
|
953
1973
|
"svg",
|
|
954
1974
|
{
|
|
955
1975
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -962,14 +1982,14 @@ var PaginationNext = React15.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
962
1982
|
strokeLinecap: "round",
|
|
963
1983
|
strokeLinejoin: "round",
|
|
964
1984
|
className: "h-4 w-4",
|
|
965
|
-
children: /* @__PURE__ */
|
|
1985
|
+
children: /* @__PURE__ */ jsx22("path", { d: "m9 18 6-6-6-6" })
|
|
966
1986
|
}
|
|
967
1987
|
)
|
|
968
1988
|
]
|
|
969
1989
|
}
|
|
970
1990
|
));
|
|
971
1991
|
PaginationNext.displayName = "PaginationNext";
|
|
972
|
-
var PaginationEllipsis =
|
|
1992
|
+
var PaginationEllipsis = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs8(
|
|
973
1993
|
"span",
|
|
974
1994
|
{
|
|
975
1995
|
ref,
|
|
@@ -977,7 +1997,7 @@ var PaginationEllipsis = React15.forwardRef(({ className, ...props }, ref) => /*
|
|
|
977
1997
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
978
1998
|
...props,
|
|
979
1999
|
children: [
|
|
980
|
-
/* @__PURE__ */
|
|
2000
|
+
/* @__PURE__ */ jsxs8(
|
|
981
2001
|
"svg",
|
|
982
2002
|
{
|
|
983
2003
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -991,13 +2011,13 @@ var PaginationEllipsis = React15.forwardRef(({ className, ...props }, ref) => /*
|
|
|
991
2011
|
strokeLinejoin: "round",
|
|
992
2012
|
className: "h-4 w-4",
|
|
993
2013
|
children: [
|
|
994
|
-
/* @__PURE__ */
|
|
995
|
-
/* @__PURE__ */
|
|
996
|
-
/* @__PURE__ */
|
|
2014
|
+
/* @__PURE__ */ jsx22("circle", { cx: "12", cy: "12", r: "1" }),
|
|
2015
|
+
/* @__PURE__ */ jsx22("circle", { cx: "19", cy: "12", r: "1" }),
|
|
2016
|
+
/* @__PURE__ */ jsx22("circle", { cx: "5", cy: "12", r: "1" })
|
|
997
2017
|
]
|
|
998
2018
|
}
|
|
999
2019
|
),
|
|
1000
|
-
/* @__PURE__ */
|
|
2020
|
+
/* @__PURE__ */ jsx22("span", { className: "sr-only", children: "More pages" })
|
|
1001
2021
|
]
|
|
1002
2022
|
}
|
|
1003
2023
|
));
|
|
@@ -1012,9 +2032,9 @@ var PaginationNamespace = Object.assign(Pagination, {
|
|
|
1012
2032
|
});
|
|
1013
2033
|
|
|
1014
2034
|
// src/components/combobox/index.tsx
|
|
1015
|
-
import * as
|
|
1016
|
-
import { jsx as
|
|
1017
|
-
var Combobox =
|
|
2035
|
+
import * as React23 from "react";
|
|
2036
|
+
import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2037
|
+
var Combobox = React23.forwardRef(
|
|
1018
2038
|
({
|
|
1019
2039
|
options,
|
|
1020
2040
|
value: controlledValue,
|
|
@@ -1026,12 +2046,12 @@ var Combobox = React16.forwardRef(
|
|
|
1026
2046
|
disabled = false,
|
|
1027
2047
|
className
|
|
1028
2048
|
}, ref) => {
|
|
1029
|
-
const [open, setOpen] =
|
|
1030
|
-
const [search, setSearch] =
|
|
1031
|
-
const [internalValue, setInternalValue] =
|
|
1032
|
-
const containerRef =
|
|
2049
|
+
const [open, setOpen] = React23.useState(false);
|
|
2050
|
+
const [search, setSearch] = React23.useState("");
|
|
2051
|
+
const [internalValue, setInternalValue] = React23.useState(defaultValue ?? "");
|
|
2052
|
+
const containerRef = React23.useRef(null);
|
|
1033
2053
|
const value = controlledValue !== void 0 ? controlledValue : internalValue;
|
|
1034
|
-
const filteredOptions =
|
|
2054
|
+
const filteredOptions = React23.useMemo(() => {
|
|
1035
2055
|
if (!search) return options;
|
|
1036
2056
|
return options.filter(
|
|
1037
2057
|
(option) => option.label.toLowerCase().includes(search.toLowerCase())
|
|
@@ -1046,7 +2066,7 @@ var Combobox = React16.forwardRef(
|
|
|
1046
2066
|
setOpen(false);
|
|
1047
2067
|
setSearch("");
|
|
1048
2068
|
};
|
|
1049
|
-
|
|
2069
|
+
React23.useEffect(() => {
|
|
1050
2070
|
const handleClickOutside = (event) => {
|
|
1051
2071
|
if (containerRef.current && !containerRef.current.contains(event.target)) {
|
|
1052
2072
|
setOpen(false);
|
|
@@ -1055,8 +2075,8 @@ var Combobox = React16.forwardRef(
|
|
|
1055
2075
|
document.addEventListener("mousedown", handleClickOutside);
|
|
1056
2076
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
1057
2077
|
}, []);
|
|
1058
|
-
return /* @__PURE__ */
|
|
1059
|
-
/* @__PURE__ */
|
|
2078
|
+
return /* @__PURE__ */ jsxs9("div", { ref: containerRef, className: "relative", children: [
|
|
2079
|
+
/* @__PURE__ */ jsxs9(
|
|
1060
2080
|
"button",
|
|
1061
2081
|
{
|
|
1062
2082
|
type: "button",
|
|
@@ -1072,8 +2092,8 @@ var Combobox = React16.forwardRef(
|
|
|
1072
2092
|
className
|
|
1073
2093
|
),
|
|
1074
2094
|
children: [
|
|
1075
|
-
/* @__PURE__ */
|
|
1076
|
-
/* @__PURE__ */
|
|
2095
|
+
/* @__PURE__ */ jsx23("span", { className: cn(!selectedOption && "text-muted-foreground"), children: selectedOption?.label ?? placeholder }),
|
|
2096
|
+
/* @__PURE__ */ jsx23(
|
|
1077
2097
|
"svg",
|
|
1078
2098
|
{
|
|
1079
2099
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1089,15 +2109,15 @@ var Combobox = React16.forwardRef(
|
|
|
1089
2109
|
"ml-2 h-4 w-4 shrink-0 opacity-50 transition-transform",
|
|
1090
2110
|
open && "rotate-180"
|
|
1091
2111
|
),
|
|
1092
|
-
children: /* @__PURE__ */
|
|
2112
|
+
children: /* @__PURE__ */ jsx23("path", { d: "m6 9 6 6 6-6" })
|
|
1093
2113
|
}
|
|
1094
2114
|
)
|
|
1095
2115
|
]
|
|
1096
2116
|
}
|
|
1097
2117
|
),
|
|
1098
|
-
open && /* @__PURE__ */
|
|
1099
|
-
/* @__PURE__ */
|
|
1100
|
-
/* @__PURE__ */
|
|
2118
|
+
open && /* @__PURE__ */ jsxs9("div", { className: "absolute z-50 mt-1 w-full overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md", children: [
|
|
2119
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex items-center border-b border-border px-3", children: [
|
|
2120
|
+
/* @__PURE__ */ jsxs9(
|
|
1101
2121
|
"svg",
|
|
1102
2122
|
{
|
|
1103
2123
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1111,12 +2131,12 @@ var Combobox = React16.forwardRef(
|
|
|
1111
2131
|
strokeLinejoin: "round",
|
|
1112
2132
|
className: "mr-2 h-4 w-4 shrink-0 opacity-50",
|
|
1113
2133
|
children: [
|
|
1114
|
-
/* @__PURE__ */
|
|
1115
|
-
/* @__PURE__ */
|
|
2134
|
+
/* @__PURE__ */ jsx23("circle", { cx: "11", cy: "11", r: "8" }),
|
|
2135
|
+
/* @__PURE__ */ jsx23("path", { d: "m21 21-4.3-4.3" })
|
|
1116
2136
|
]
|
|
1117
2137
|
}
|
|
1118
2138
|
),
|
|
1119
|
-
/* @__PURE__ */
|
|
2139
|
+
/* @__PURE__ */ jsx23(
|
|
1120
2140
|
"input",
|
|
1121
2141
|
{
|
|
1122
2142
|
ref,
|
|
@@ -1127,7 +2147,7 @@ var Combobox = React16.forwardRef(
|
|
|
1127
2147
|
}
|
|
1128
2148
|
)
|
|
1129
2149
|
] }),
|
|
1130
|
-
/* @__PURE__ */
|
|
2150
|
+
/* @__PURE__ */ jsx23("div", { className: "max-h-[300px] overflow-y-auto p-1", children: filteredOptions.length === 0 ? /* @__PURE__ */ jsx23("div", { className: "py-6 text-center text-sm text-muted-foreground", children: emptyMessage }) : filteredOptions.map((option) => /* @__PURE__ */ jsxs9(
|
|
1131
2151
|
"button",
|
|
1132
2152
|
{
|
|
1133
2153
|
type: "button",
|
|
@@ -1141,7 +2161,7 @@ var Combobox = React16.forwardRef(
|
|
|
1141
2161
|
option.value === value && "bg-muted"
|
|
1142
2162
|
),
|
|
1143
2163
|
children: [
|
|
1144
|
-
/* @__PURE__ */
|
|
2164
|
+
/* @__PURE__ */ jsx23("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: option.value === value && /* @__PURE__ */ jsx23(
|
|
1145
2165
|
"svg",
|
|
1146
2166
|
{
|
|
1147
2167
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1154,7 +2174,7 @@ var Combobox = React16.forwardRef(
|
|
|
1154
2174
|
strokeLinecap: "round",
|
|
1155
2175
|
strokeLinejoin: "round",
|
|
1156
2176
|
className: "h-4 w-4",
|
|
1157
|
-
children: /* @__PURE__ */
|
|
2177
|
+
children: /* @__PURE__ */ jsx23("polyline", { points: "20 6 9 17 4 12" })
|
|
1158
2178
|
}
|
|
1159
2179
|
) }),
|
|
1160
2180
|
option.label
|
|
@@ -1169,34 +2189,34 @@ var Combobox = React16.forwardRef(
|
|
|
1169
2189
|
Combobox.displayName = "Combobox";
|
|
1170
2190
|
|
|
1171
2191
|
// src/playground.tsx
|
|
1172
|
-
import * as
|
|
1173
|
-
import { jsx as
|
|
1174
|
-
var Section = ({ title, children }) => /* @__PURE__ */
|
|
1175
|
-
/* @__PURE__ */
|
|
1176
|
-
/* @__PURE__ */
|
|
2192
|
+
import * as React24 from "react";
|
|
2193
|
+
import { jsx as jsx24, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2194
|
+
var Section = ({ title, children }) => /* @__PURE__ */ jsxs10("div", { className: "mb-8", children: [
|
|
2195
|
+
/* @__PURE__ */ jsx24("h2", { className: "text-xl font-semibold mb-4 text-foreground", children: title }),
|
|
2196
|
+
/* @__PURE__ */ jsx24("div", { className: "p-4 border border-border rounded-lg bg-background", children })
|
|
1177
2197
|
] });
|
|
1178
2198
|
var ThemeToggle = () => {
|
|
1179
2199
|
const { theme, setTheme } = useTheme();
|
|
1180
|
-
return /* @__PURE__ */
|
|
1181
|
-
/* @__PURE__ */
|
|
1182
|
-
/* @__PURE__ */
|
|
1183
|
-
/* @__PURE__ */
|
|
1184
|
-
/* @__PURE__ */
|
|
1185
|
-
/* @__PURE__ */
|
|
1186
|
-
/* @__PURE__ */
|
|
1187
|
-
/* @__PURE__ */
|
|
2200
|
+
return /* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-2", children: [
|
|
2201
|
+
/* @__PURE__ */ jsx24(Label, { children: "Theme:" }),
|
|
2202
|
+
/* @__PURE__ */ jsxs10(SelectNamespace, { value: theme, onValueChange: (value) => setTheme(value), children: [
|
|
2203
|
+
/* @__PURE__ */ jsx24(SelectTrigger, { className: "w-32", children: /* @__PURE__ */ jsx24(SelectValue, { placeholder: "Select theme" }) }),
|
|
2204
|
+
/* @__PURE__ */ jsxs10(SelectContent, { children: [
|
|
2205
|
+
/* @__PURE__ */ jsx24(SelectItem, { value: "light", children: "Light" }),
|
|
2206
|
+
/* @__PURE__ */ jsx24(SelectItem, { value: "dark", children: "Dark" }),
|
|
2207
|
+
/* @__PURE__ */ jsx24(SelectItem, { value: "system", children: "System" })
|
|
1188
2208
|
] })
|
|
1189
2209
|
] })
|
|
1190
2210
|
] });
|
|
1191
2211
|
};
|
|
1192
2212
|
var PlaygroundContent = () => {
|
|
1193
|
-
const [dialogOpen, setDialogOpen] =
|
|
1194
|
-
const [checkboxChecked, setCheckboxChecked] =
|
|
1195
|
-
const [switchChecked, setSwitchChecked] =
|
|
1196
|
-
const [inputValue, setInputValue] =
|
|
1197
|
-
const [textareaValue, setTextareaValue] =
|
|
1198
|
-
const [selectValue, setSelectValue] =
|
|
1199
|
-
const [comboboxValue, setComboboxValue] =
|
|
2213
|
+
const [dialogOpen, setDialogOpen] = React24.useState(false);
|
|
2214
|
+
const [checkboxChecked, setCheckboxChecked] = React24.useState(false);
|
|
2215
|
+
const [switchChecked, setSwitchChecked] = React24.useState(false);
|
|
2216
|
+
const [inputValue, setInputValue] = React24.useState("");
|
|
2217
|
+
const [textareaValue, setTextareaValue] = React24.useState("");
|
|
2218
|
+
const [selectValue, setSelectValue] = React24.useState("");
|
|
2219
|
+
const [comboboxValue, setComboboxValue] = React24.useState("");
|
|
1200
2220
|
const comboboxOptions = [
|
|
1201
2221
|
{ value: "react", label: "React" },
|
|
1202
2222
|
{ value: "vue", label: "Vue" },
|
|
@@ -1204,35 +2224,35 @@ var PlaygroundContent = () => {
|
|
|
1204
2224
|
{ value: "svelte", label: "Svelte" },
|
|
1205
2225
|
{ value: "solid", label: "SolidJS" }
|
|
1206
2226
|
];
|
|
1207
|
-
return /* @__PURE__ */
|
|
1208
|
-
/* @__PURE__ */
|
|
1209
|
-
/* @__PURE__ */
|
|
1210
|
-
/* @__PURE__ */
|
|
2227
|
+
return /* @__PURE__ */ jsx24("div", { className: "min-h-screen bg-background p-8", children: /* @__PURE__ */ jsxs10("div", { className: "max-w-4xl mx-auto", children: [
|
|
2228
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-center justify-between mb-8", children: [
|
|
2229
|
+
/* @__PURE__ */ jsx24("h1", { className: "text-3xl font-bold text-foreground", children: "@onesaz/ui Playground" }),
|
|
2230
|
+
/* @__PURE__ */ jsx24(ThemeToggle, {})
|
|
1211
2231
|
] }),
|
|
1212
|
-
/* @__PURE__ */
|
|
1213
|
-
/* @__PURE__ */
|
|
1214
|
-
/* @__PURE__ */
|
|
1215
|
-
/* @__PURE__ */
|
|
1216
|
-
/* @__PURE__ */
|
|
1217
|
-
/* @__PURE__ */
|
|
1218
|
-
/* @__PURE__ */
|
|
1219
|
-
/* @__PURE__ */
|
|
2232
|
+
/* @__PURE__ */ jsxs10(Section, { title: "Button", children: [
|
|
2233
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex flex-wrap gap-4", children: [
|
|
2234
|
+
/* @__PURE__ */ jsx24(Button, { variant: "default", children: "Default" }),
|
|
2235
|
+
/* @__PURE__ */ jsx24(Button, { variant: "destructive", children: "Destructive" }),
|
|
2236
|
+
/* @__PURE__ */ jsx24(Button, { variant: "outline", children: "Outline" }),
|
|
2237
|
+
/* @__PURE__ */ jsx24(Button, { variant: "secondary", children: "Secondary" }),
|
|
2238
|
+
/* @__PURE__ */ jsx24(Button, { variant: "ghost", children: "Ghost" }),
|
|
2239
|
+
/* @__PURE__ */ jsx24(Button, { variant: "link", children: "Link" })
|
|
1220
2240
|
] }),
|
|
1221
|
-
/* @__PURE__ */
|
|
1222
|
-
/* @__PURE__ */
|
|
1223
|
-
/* @__PURE__ */
|
|
1224
|
-
/* @__PURE__ */
|
|
1225
|
-
/* @__PURE__ */
|
|
2241
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex flex-wrap gap-4 mt-4", children: [
|
|
2242
|
+
/* @__PURE__ */ jsx24(Button, { size: "sm", children: "Small" }),
|
|
2243
|
+
/* @__PURE__ */ jsx24(Button, { size: "default", children: "Default" }),
|
|
2244
|
+
/* @__PURE__ */ jsx24(Button, { size: "lg", children: "Large" }),
|
|
2245
|
+
/* @__PURE__ */ jsx24(Button, { size: "icon", children: "\u{1F514}" })
|
|
1226
2246
|
] }),
|
|
1227
|
-
/* @__PURE__ */
|
|
1228
|
-
/* @__PURE__ */
|
|
1229
|
-
/* @__PURE__ */
|
|
2247
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex flex-wrap gap-4 mt-4", children: [
|
|
2248
|
+
/* @__PURE__ */ jsx24(Button, { disabled: true, children: "Disabled" }),
|
|
2249
|
+
/* @__PURE__ */ jsx24(Button, { variant: "outline", disabled: true, children: "Disabled Outline" })
|
|
1230
2250
|
] })
|
|
1231
2251
|
] }),
|
|
1232
|
-
/* @__PURE__ */
|
|
1233
|
-
/* @__PURE__ */
|
|
1234
|
-
/* @__PURE__ */
|
|
1235
|
-
/* @__PURE__ */
|
|
2252
|
+
/* @__PURE__ */ jsx24(Section, { title: "Input", children: /* @__PURE__ */ jsxs10("div", { className: "space-y-4 max-w-md", children: [
|
|
2253
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
2254
|
+
/* @__PURE__ */ jsx24(Label, { htmlFor: "input-default", children: "Default Input" }),
|
|
2255
|
+
/* @__PURE__ */ jsx24(
|
|
1236
2256
|
Input,
|
|
1237
2257
|
{
|
|
1238
2258
|
id: "input-default",
|
|
@@ -1242,19 +2262,19 @@ var PlaygroundContent = () => {
|
|
|
1242
2262
|
}
|
|
1243
2263
|
)
|
|
1244
2264
|
] }),
|
|
1245
|
-
/* @__PURE__ */
|
|
1246
|
-
/* @__PURE__ */
|
|
1247
|
-
/* @__PURE__ */
|
|
2265
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
2266
|
+
/* @__PURE__ */ jsx24(Label, { htmlFor: "input-disabled", children: "Disabled Input" }),
|
|
2267
|
+
/* @__PURE__ */ jsx24(Input, { id: "input-disabled", placeholder: "Disabled...", disabled: true })
|
|
1248
2268
|
] }),
|
|
1249
|
-
/* @__PURE__ */
|
|
1250
|
-
/* @__PURE__ */
|
|
1251
|
-
/* @__PURE__ */
|
|
2269
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
2270
|
+
/* @__PURE__ */ jsx24(Label, { htmlFor: "input-type", children: "Email Input" }),
|
|
2271
|
+
/* @__PURE__ */ jsx24(Input, { id: "input-type", type: "email", placeholder: "email@example.com" })
|
|
1252
2272
|
] })
|
|
1253
2273
|
] }) }),
|
|
1254
|
-
/* @__PURE__ */
|
|
1255
|
-
/* @__PURE__ */
|
|
1256
|
-
/* @__PURE__ */
|
|
1257
|
-
/* @__PURE__ */
|
|
2274
|
+
/* @__PURE__ */ jsx24(Section, { title: "Textarea", children: /* @__PURE__ */ jsxs10("div", { className: "space-y-4 max-w-md", children: [
|
|
2275
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
2276
|
+
/* @__PURE__ */ jsx24(Label, { htmlFor: "textarea-default", children: "Default Textarea" }),
|
|
2277
|
+
/* @__PURE__ */ jsx24(
|
|
1258
2278
|
Textarea,
|
|
1259
2279
|
{
|
|
1260
2280
|
id: "textarea-default",
|
|
@@ -1264,52 +2284,52 @@ var PlaygroundContent = () => {
|
|
|
1264
2284
|
}
|
|
1265
2285
|
)
|
|
1266
2286
|
] }),
|
|
1267
|
-
/* @__PURE__ */
|
|
1268
|
-
/* @__PURE__ */
|
|
1269
|
-
/* @__PURE__ */
|
|
2287
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
2288
|
+
/* @__PURE__ */ jsx24(Label, { htmlFor: "textarea-disabled", children: "Disabled Textarea" }),
|
|
2289
|
+
/* @__PURE__ */ jsx24(Textarea, { id: "textarea-disabled", placeholder: "Disabled...", disabled: true })
|
|
1270
2290
|
] })
|
|
1271
2291
|
] }) }),
|
|
1272
|
-
/* @__PURE__ */
|
|
1273
|
-
/* @__PURE__ */
|
|
1274
|
-
/* @__PURE__ */
|
|
1275
|
-
/* @__PURE__ */
|
|
1276
|
-
/* @__PURE__ */
|
|
1277
|
-
/* @__PURE__ */
|
|
1278
|
-
/* @__PURE__ */
|
|
1279
|
-
/* @__PURE__ */
|
|
1280
|
-
/* @__PURE__ */
|
|
2292
|
+
/* @__PURE__ */ jsx24(Section, { title: "Select", children: /* @__PURE__ */ jsxs10("div", { className: "space-y-4 max-w-md", children: [
|
|
2293
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
2294
|
+
/* @__PURE__ */ jsx24(Label, { children: "Default Select" }),
|
|
2295
|
+
/* @__PURE__ */ jsxs10(SelectNamespace, { value: selectValue, onValueChange: setSelectValue, children: [
|
|
2296
|
+
/* @__PURE__ */ jsx24(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx24(SelectValue, { placeholder: "Select an option..." }) }),
|
|
2297
|
+
/* @__PURE__ */ jsxs10(SelectContent, { children: [
|
|
2298
|
+
/* @__PURE__ */ jsx24(SelectItem, { value: "option1", children: "Option 1" }),
|
|
2299
|
+
/* @__PURE__ */ jsx24(SelectItem, { value: "option2", children: "Option 2" }),
|
|
2300
|
+
/* @__PURE__ */ jsx24(SelectItem, { value: "option3", children: "Option 3" })
|
|
1281
2301
|
] })
|
|
1282
2302
|
] })
|
|
1283
2303
|
] }),
|
|
1284
|
-
/* @__PURE__ */
|
|
1285
|
-
/* @__PURE__ */
|
|
1286
|
-
/* @__PURE__ */
|
|
1287
|
-
/* @__PURE__ */
|
|
1288
|
-
/* @__PURE__ */
|
|
1289
|
-
/* @__PURE__ */
|
|
1290
|
-
/* @__PURE__ */
|
|
1291
|
-
/* @__PURE__ */
|
|
1292
|
-
/* @__PURE__ */
|
|
2304
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
2305
|
+
/* @__PURE__ */ jsx24(Label, { children: "Grouped Select" }),
|
|
2306
|
+
/* @__PURE__ */ jsxs10(SelectNamespace, { children: [
|
|
2307
|
+
/* @__PURE__ */ jsx24(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx24(SelectValue, { placeholder: "Select a food..." }) }),
|
|
2308
|
+
/* @__PURE__ */ jsxs10(SelectContent, { children: [
|
|
2309
|
+
/* @__PURE__ */ jsxs10(SelectGroup, { children: [
|
|
2310
|
+
/* @__PURE__ */ jsx24(SelectLabel, { children: "Fruits" }),
|
|
2311
|
+
/* @__PURE__ */ jsx24(SelectItem, { value: "apple", children: "Apple" }),
|
|
2312
|
+
/* @__PURE__ */ jsx24(SelectItem, { value: "banana", children: "Banana" })
|
|
1293
2313
|
] }),
|
|
1294
|
-
/* @__PURE__ */
|
|
1295
|
-
/* @__PURE__ */
|
|
1296
|
-
/* @__PURE__ */
|
|
1297
|
-
/* @__PURE__ */
|
|
2314
|
+
/* @__PURE__ */ jsxs10(SelectGroup, { children: [
|
|
2315
|
+
/* @__PURE__ */ jsx24(SelectLabel, { children: "Vegetables" }),
|
|
2316
|
+
/* @__PURE__ */ jsx24(SelectItem, { value: "carrot", children: "Carrot" }),
|
|
2317
|
+
/* @__PURE__ */ jsx24(SelectItem, { value: "potato", children: "Potato" })
|
|
1298
2318
|
] })
|
|
1299
2319
|
] })
|
|
1300
2320
|
] })
|
|
1301
2321
|
] }),
|
|
1302
|
-
/* @__PURE__ */
|
|
1303
|
-
/* @__PURE__ */
|
|
1304
|
-
/* @__PURE__ */
|
|
1305
|
-
/* @__PURE__ */
|
|
1306
|
-
/* @__PURE__ */
|
|
2322
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
2323
|
+
/* @__PURE__ */ jsx24(Label, { children: "Disabled Select" }),
|
|
2324
|
+
/* @__PURE__ */ jsxs10(SelectNamespace, { disabled: true, children: [
|
|
2325
|
+
/* @__PURE__ */ jsx24(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx24(SelectValue, { placeholder: "Disabled..." }) }),
|
|
2326
|
+
/* @__PURE__ */ jsx24(SelectContent, { children: /* @__PURE__ */ jsx24(SelectItem, { value: "none", children: "None" }) })
|
|
1307
2327
|
] })
|
|
1308
2328
|
] })
|
|
1309
2329
|
] }) }),
|
|
1310
|
-
/* @__PURE__ */
|
|
1311
|
-
/* @__PURE__ */
|
|
1312
|
-
/* @__PURE__ */
|
|
2330
|
+
/* @__PURE__ */ jsx24(Section, { title: "Combobox (Searchable Select)", children: /* @__PURE__ */ jsx24("div", { className: "space-y-4 max-w-md", children: /* @__PURE__ */ jsxs10("div", { children: [
|
|
2331
|
+
/* @__PURE__ */ jsx24(Label, { children: "Framework" }),
|
|
2332
|
+
/* @__PURE__ */ jsx24(
|
|
1313
2333
|
Combobox,
|
|
1314
2334
|
{
|
|
1315
2335
|
options: comboboxOptions,
|
|
@@ -1319,9 +2339,9 @@ var PlaygroundContent = () => {
|
|
|
1319
2339
|
}
|
|
1320
2340
|
)
|
|
1321
2341
|
] }) }) }),
|
|
1322
|
-
/* @__PURE__ */
|
|
1323
|
-
/* @__PURE__ */
|
|
1324
|
-
/* @__PURE__ */
|
|
2342
|
+
/* @__PURE__ */ jsx24(Section, { title: "Checkbox & Switch", children: /* @__PURE__ */ jsxs10("div", { className: "space-y-4", children: [
|
|
2343
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-2", children: [
|
|
2344
|
+
/* @__PURE__ */ jsx24(
|
|
1325
2345
|
Checkbox,
|
|
1326
2346
|
{
|
|
1327
2347
|
id: "checkbox",
|
|
@@ -1329,15 +2349,15 @@ var PlaygroundContent = () => {
|
|
|
1329
2349
|
onChange: (e) => setCheckboxChecked(e.target.checked)
|
|
1330
2350
|
}
|
|
1331
2351
|
),
|
|
1332
|
-
/* @__PURE__ */
|
|
2352
|
+
/* @__PURE__ */ jsx24(Label, { htmlFor: "checkbox", children: "Accept terms and conditions" })
|
|
1333
2353
|
] }),
|
|
1334
|
-
/* @__PURE__ */
|
|
1335
|
-
/* @__PURE__ */
|
|
1336
|
-
/* @__PURE__ */
|
|
2354
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-2", children: [
|
|
2355
|
+
/* @__PURE__ */ jsx24(Checkbox, { id: "checkbox-disabled", disabled: true }),
|
|
2356
|
+
/* @__PURE__ */ jsx24(Label, { htmlFor: "checkbox-disabled", children: "Disabled checkbox" })
|
|
1337
2357
|
] }),
|
|
1338
|
-
/* @__PURE__ */
|
|
1339
|
-
/* @__PURE__ */
|
|
1340
|
-
/* @__PURE__ */
|
|
2358
|
+
/* @__PURE__ */ jsx24(Separator, {}),
|
|
2359
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-2", children: [
|
|
2360
|
+
/* @__PURE__ */ jsx24(
|
|
1341
2361
|
Switch,
|
|
1342
2362
|
{
|
|
1343
2363
|
id: "switch",
|
|
@@ -1345,163 +2365,165 @@ var PlaygroundContent = () => {
|
|
|
1345
2365
|
onChange: (e) => setSwitchChecked(e.target.checked)
|
|
1346
2366
|
}
|
|
1347
2367
|
),
|
|
1348
|
-
/* @__PURE__ */
|
|
2368
|
+
/* @__PURE__ */ jsx24(Label, { htmlFor: "switch", children: "Enable notifications" })
|
|
1349
2369
|
] }),
|
|
1350
|
-
/* @__PURE__ */
|
|
1351
|
-
/* @__PURE__ */
|
|
1352
|
-
/* @__PURE__ */
|
|
2370
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-2", children: [
|
|
2371
|
+
/* @__PURE__ */ jsx24(Switch, { id: "switch-disabled", disabled: true }),
|
|
2372
|
+
/* @__PURE__ */ jsx24(Label, { htmlFor: "switch-disabled", children: "Disabled switch" })
|
|
1353
2373
|
] })
|
|
1354
2374
|
] }) }),
|
|
1355
|
-
/* @__PURE__ */
|
|
1356
|
-
/* @__PURE__ */
|
|
1357
|
-
/* @__PURE__ */
|
|
1358
|
-
/* @__PURE__ */
|
|
1359
|
-
/* @__PURE__ */
|
|
2375
|
+
/* @__PURE__ */ jsx24(Section, { title: "Badge", children: /* @__PURE__ */ jsxs10("div", { className: "flex flex-wrap gap-4", children: [
|
|
2376
|
+
/* @__PURE__ */ jsx24(Badge, { children: "Default" }),
|
|
2377
|
+
/* @__PURE__ */ jsx24(Badge, { variant: "secondary", children: "Secondary" }),
|
|
2378
|
+
/* @__PURE__ */ jsx24(Badge, { variant: "destructive", children: "Destructive" }),
|
|
2379
|
+
/* @__PURE__ */ jsx24(Badge, { variant: "outline", children: "Outline" })
|
|
1360
2380
|
] }) }),
|
|
1361
|
-
/* @__PURE__ */
|
|
1362
|
-
/* @__PURE__ */
|
|
1363
|
-
/* @__PURE__ */
|
|
1364
|
-
/* @__PURE__ */
|
|
1365
|
-
/* @__PURE__ */
|
|
2381
|
+
/* @__PURE__ */ jsx24(Section, { title: "Card", children: /* @__PURE__ */ jsxs10("div", { className: "grid gap-4 md:grid-cols-2", children: [
|
|
2382
|
+
/* @__PURE__ */ jsxs10(Card, { children: [
|
|
2383
|
+
/* @__PURE__ */ jsxs10(CardHeader, { children: [
|
|
2384
|
+
/* @__PURE__ */ jsx24(CardTitle, { children: "Card Title" }),
|
|
2385
|
+
/* @__PURE__ */ jsx24(CardDescription, { children: "Card description goes here" })
|
|
1366
2386
|
] }),
|
|
1367
|
-
/* @__PURE__ */
|
|
1368
|
-
/* @__PURE__ */
|
|
1369
|
-
/* @__PURE__ */
|
|
1370
|
-
/* @__PURE__ */
|
|
2387
|
+
/* @__PURE__ */ jsx24(CardContent, { children: /* @__PURE__ */ jsx24("p", { className: "text-foreground", children: "This is the card content area." }) }),
|
|
2388
|
+
/* @__PURE__ */ jsxs10(CardFooter, { children: [
|
|
2389
|
+
/* @__PURE__ */ jsx24(Button, { variant: "outline", className: "mr-2", children: "Cancel" }),
|
|
2390
|
+
/* @__PURE__ */ jsx24(Button, { children: "Submit" })
|
|
1371
2391
|
] })
|
|
1372
2392
|
] }),
|
|
1373
|
-
/* @__PURE__ */
|
|
1374
|
-
/* @__PURE__ */
|
|
1375
|
-
/* @__PURE__ */
|
|
1376
|
-
/* @__PURE__ */
|
|
2393
|
+
/* @__PURE__ */ jsxs10(Card, { children: [
|
|
2394
|
+
/* @__PURE__ */ jsxs10(CardHeader, { children: [
|
|
2395
|
+
/* @__PURE__ */ jsx24(CardTitle, { children: "Another Card" }),
|
|
2396
|
+
/* @__PURE__ */ jsx24(CardDescription, { children: "With different content" })
|
|
1377
2397
|
] }),
|
|
1378
|
-
/* @__PURE__ */
|
|
1379
|
-
/* @__PURE__ */
|
|
1380
|
-
/* @__PURE__ */
|
|
2398
|
+
/* @__PURE__ */ jsx24(CardContent, { children: /* @__PURE__ */ jsxs10("div", { className: "space-y-2", children: [
|
|
2399
|
+
/* @__PURE__ */ jsx24(Label, { htmlFor: "card-input", children: "Name" }),
|
|
2400
|
+
/* @__PURE__ */ jsx24(Input, { id: "card-input", placeholder: "Enter name..." })
|
|
1381
2401
|
] }) }),
|
|
1382
|
-
/* @__PURE__ */
|
|
2402
|
+
/* @__PURE__ */ jsx24(CardFooter, { children: /* @__PURE__ */ jsx24(Button, { className: "w-full", children: "Save" }) })
|
|
1383
2403
|
] })
|
|
1384
2404
|
] }) }),
|
|
1385
|
-
/* @__PURE__ */
|
|
1386
|
-
/* @__PURE__ */
|
|
1387
|
-
/* @__PURE__ */
|
|
1388
|
-
/* @__PURE__ */
|
|
1389
|
-
/* @__PURE__ */
|
|
1390
|
-
/* @__PURE__ */
|
|
2405
|
+
/* @__PURE__ */ jsxs10(Section, { title: "Dialog", children: [
|
|
2406
|
+
/* @__PURE__ */ jsx24(Button, { onClick: () => setDialogOpen(true), children: "Open Dialog" }),
|
|
2407
|
+
/* @__PURE__ */ jsx24(DialogNamespace, { open: dialogOpen, onOpenChange: setDialogOpen, children: /* @__PURE__ */ jsxs10(DialogContent, { children: [
|
|
2408
|
+
/* @__PURE__ */ jsxs10(DialogHeader, { children: [
|
|
2409
|
+
/* @__PURE__ */ jsx24(DialogTitle, { children: "Create New Zone" }),
|
|
2410
|
+
/* @__PURE__ */ jsx24(DialogDescription, { children: "Fill in the details below to create a new zone." })
|
|
1391
2411
|
] }),
|
|
1392
|
-
/* @__PURE__ */
|
|
1393
|
-
/* @__PURE__ */
|
|
1394
|
-
/* @__PURE__ */
|
|
1395
|
-
/* @__PURE__ */
|
|
1396
|
-
/* @__PURE__ */
|
|
2412
|
+
/* @__PURE__ */ jsxs10("div", { className: "space-y-4 py-4", children: [
|
|
2413
|
+
/* @__PURE__ */ jsxs10("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
2414
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
2415
|
+
/* @__PURE__ */ jsx24(Label, { htmlFor: "zone-name", children: "Zone Name *" }),
|
|
2416
|
+
/* @__PURE__ */ jsx24(Input, { id: "zone-name", placeholder: "eg:hyderabad" })
|
|
1397
2417
|
] }),
|
|
1398
|
-
/* @__PURE__ */
|
|
1399
|
-
/* @__PURE__ */
|
|
1400
|
-
/* @__PURE__ */
|
|
2418
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
2419
|
+
/* @__PURE__ */ jsx24(Label, { htmlFor: "zone-code", children: "Zone Code *" }),
|
|
2420
|
+
/* @__PURE__ */ jsx24(Input, { id: "zone-code", placeholder: "eg :hyd022" })
|
|
1401
2421
|
] })
|
|
1402
2422
|
] }),
|
|
1403
|
-
/* @__PURE__ */
|
|
1404
|
-
/* @__PURE__ */
|
|
1405
|
-
/* @__PURE__ */
|
|
1406
|
-
/* @__PURE__ */
|
|
1407
|
-
/* @__PURE__ */
|
|
1408
|
-
/* @__PURE__ */
|
|
1409
|
-
/* @__PURE__ */
|
|
1410
|
-
/* @__PURE__ */
|
|
2423
|
+
/* @__PURE__ */ jsxs10("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
2424
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
2425
|
+
/* @__PURE__ */ jsx24(Label, { children: "State *" }),
|
|
2426
|
+
/* @__PURE__ */ jsxs10(SelectNamespace, { children: [
|
|
2427
|
+
/* @__PURE__ */ jsx24(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx24(SelectValue, { placeholder: "Select state" }) }),
|
|
2428
|
+
/* @__PURE__ */ jsxs10(SelectContent, { children: [
|
|
2429
|
+
/* @__PURE__ */ jsx24(SelectItem, { value: "telangana", children: "TELANGANA" }),
|
|
2430
|
+
/* @__PURE__ */ jsx24(SelectItem, { value: "andhra", children: "ANDHRA PRADESH" })
|
|
1411
2431
|
] })
|
|
1412
2432
|
] })
|
|
1413
2433
|
] }),
|
|
1414
|
-
/* @__PURE__ */
|
|
1415
|
-
/* @__PURE__ */
|
|
1416
|
-
/* @__PURE__ */
|
|
1417
|
-
/* @__PURE__ */
|
|
1418
|
-
/* @__PURE__ */
|
|
1419
|
-
/* @__PURE__ */
|
|
1420
|
-
/* @__PURE__ */
|
|
2434
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
2435
|
+
/* @__PURE__ */ jsx24(Label, { children: "District *" }),
|
|
2436
|
+
/* @__PURE__ */ jsxs10(SelectNamespace, { children: [
|
|
2437
|
+
/* @__PURE__ */ jsx24(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx24(SelectValue, { placeholder: "Select District" }) }),
|
|
2438
|
+
/* @__PURE__ */ jsxs10(SelectContent, { children: [
|
|
2439
|
+
/* @__PURE__ */ jsx24(SelectItem, { value: "hyderabad", children: "HYDERABAD" }),
|
|
2440
|
+
/* @__PURE__ */ jsx24(SelectItem, { value: "rangareddy", children: "RANGAREDDY" })
|
|
1421
2441
|
] })
|
|
1422
2442
|
] })
|
|
1423
2443
|
] })
|
|
1424
2444
|
] })
|
|
1425
2445
|
] }),
|
|
1426
|
-
/* @__PURE__ */
|
|
1427
|
-
/* @__PURE__ */
|
|
1428
|
-
/* @__PURE__ */
|
|
2446
|
+
/* @__PURE__ */ jsxs10(DialogFooter, { children: [
|
|
2447
|
+
/* @__PURE__ */ jsx24(Button, { variant: "outline", onClick: () => setDialogOpen(false), children: "CANCEL" }),
|
|
2448
|
+
/* @__PURE__ */ jsx24(Button, { onClick: () => setDialogOpen(false), children: "Create" })
|
|
1429
2449
|
] })
|
|
1430
2450
|
] }) })
|
|
1431
2451
|
] }),
|
|
1432
|
-
/* @__PURE__ */
|
|
1433
|
-
/* @__PURE__ */
|
|
1434
|
-
/* @__PURE__ */
|
|
1435
|
-
/* @__PURE__ */
|
|
1436
|
-
/* @__PURE__ */
|
|
1437
|
-
/* @__PURE__ */
|
|
1438
|
-
/* @__PURE__ */
|
|
2452
|
+
/* @__PURE__ */ jsx24(Section, { title: "Table", children: /* @__PURE__ */ jsxs10(TableNamespace, { children: [
|
|
2453
|
+
/* @__PURE__ */ jsx24(TableCaption, { children: "A list of recent invoices" }),
|
|
2454
|
+
/* @__PURE__ */ jsx24(TableHeader, { children: /* @__PURE__ */ jsxs10(TableRow, { children: [
|
|
2455
|
+
/* @__PURE__ */ jsx24(TableHead, { children: "Invoice" }),
|
|
2456
|
+
/* @__PURE__ */ jsx24(TableHead, { children: "Status" }),
|
|
2457
|
+
/* @__PURE__ */ jsx24(TableHead, { children: "Method" }),
|
|
2458
|
+
/* @__PURE__ */ jsx24(TableHead, { className: "text-right", children: "Amount" })
|
|
1439
2459
|
] }) }),
|
|
1440
|
-
/* @__PURE__ */
|
|
1441
|
-
/* @__PURE__ */
|
|
1442
|
-
/* @__PURE__ */
|
|
1443
|
-
/* @__PURE__ */
|
|
1444
|
-
/* @__PURE__ */
|
|
1445
|
-
/* @__PURE__ */
|
|
2460
|
+
/* @__PURE__ */ jsxs10(TableBody, { children: [
|
|
2461
|
+
/* @__PURE__ */ jsxs10(TableRow, { children: [
|
|
2462
|
+
/* @__PURE__ */ jsx24(TableCell, { children: "INV001" }),
|
|
2463
|
+
/* @__PURE__ */ jsx24(TableCell, { children: /* @__PURE__ */ jsx24(Badge, { children: "Paid" }) }),
|
|
2464
|
+
/* @__PURE__ */ jsx24(TableCell, { children: "Credit Card" }),
|
|
2465
|
+
/* @__PURE__ */ jsx24(TableCell, { className: "text-right", children: "$250.00" })
|
|
1446
2466
|
] }),
|
|
1447
|
-
/* @__PURE__ */
|
|
1448
|
-
/* @__PURE__ */
|
|
1449
|
-
/* @__PURE__ */
|
|
1450
|
-
/* @__PURE__ */
|
|
1451
|
-
/* @__PURE__ */
|
|
2467
|
+
/* @__PURE__ */ jsxs10(TableRow, { children: [
|
|
2468
|
+
/* @__PURE__ */ jsx24(TableCell, { children: "INV002" }),
|
|
2469
|
+
/* @__PURE__ */ jsx24(TableCell, { children: /* @__PURE__ */ jsx24(Badge, { variant: "secondary", children: "Pending" }) }),
|
|
2470
|
+
/* @__PURE__ */ jsx24(TableCell, { children: "PayPal" }),
|
|
2471
|
+
/* @__PURE__ */ jsx24(TableCell, { className: "text-right", children: "$150.00" })
|
|
1452
2472
|
] }),
|
|
1453
|
-
/* @__PURE__ */
|
|
1454
|
-
/* @__PURE__ */
|
|
1455
|
-
/* @__PURE__ */
|
|
1456
|
-
/* @__PURE__ */
|
|
1457
|
-
/* @__PURE__ */
|
|
2473
|
+
/* @__PURE__ */ jsxs10(TableRow, { children: [
|
|
2474
|
+
/* @__PURE__ */ jsx24(TableCell, { children: "INV003" }),
|
|
2475
|
+
/* @__PURE__ */ jsx24(TableCell, { children: /* @__PURE__ */ jsx24(Badge, { variant: "destructive", children: "Failed" }) }),
|
|
2476
|
+
/* @__PURE__ */ jsx24(TableCell, { children: "Bank Transfer" }),
|
|
2477
|
+
/* @__PURE__ */ jsx24(TableCell, { className: "text-right", children: "$350.00" })
|
|
1458
2478
|
] })
|
|
1459
2479
|
] })
|
|
1460
2480
|
] }) }),
|
|
1461
|
-
/* @__PURE__ */
|
|
1462
|
-
/* @__PURE__ */
|
|
1463
|
-
/* @__PURE__ */
|
|
1464
|
-
/* @__PURE__ */
|
|
1465
|
-
/* @__PURE__ */
|
|
1466
|
-
/* @__PURE__ */
|
|
1467
|
-
/* @__PURE__ */
|
|
2481
|
+
/* @__PURE__ */ jsx24(Section, { title: "Pagination", children: /* @__PURE__ */ jsx24(PaginationNamespace, { children: /* @__PURE__ */ jsxs10(PaginationContent, { children: [
|
|
2482
|
+
/* @__PURE__ */ jsx24(PaginationItem, { children: /* @__PURE__ */ jsx24(PaginationPrevious, { onClick: () => console.log("Previous") }) }),
|
|
2483
|
+
/* @__PURE__ */ jsx24(PaginationItem, { children: /* @__PURE__ */ jsx24(PaginationLink, { isActive: true, children: "1" }) }),
|
|
2484
|
+
/* @__PURE__ */ jsx24(PaginationItem, { children: /* @__PURE__ */ jsx24(PaginationLink, { children: "2" }) }),
|
|
2485
|
+
/* @__PURE__ */ jsx24(PaginationItem, { children: /* @__PURE__ */ jsx24(PaginationLink, { children: "3" }) }),
|
|
2486
|
+
/* @__PURE__ */ jsx24(PaginationItem, { children: /* @__PURE__ */ jsx24(PaginationEllipsis, {}) }),
|
|
2487
|
+
/* @__PURE__ */ jsx24(PaginationItem, { children: /* @__PURE__ */ jsx24(PaginationNext, { onClick: () => console.log("Next") }) })
|
|
1468
2488
|
] }) }) }),
|
|
1469
|
-
/* @__PURE__ */
|
|
1470
|
-
/* @__PURE__ */
|
|
1471
|
-
/* @__PURE__ */
|
|
1472
|
-
/* @__PURE__ */
|
|
2489
|
+
/* @__PURE__ */ jsx24(Section, { title: "Spinner", children: /* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-8", children: [
|
|
2490
|
+
/* @__PURE__ */ jsxs10("div", { className: "text-center", children: [
|
|
2491
|
+
/* @__PURE__ */ jsx24(Spinner, { size: "sm" }),
|
|
2492
|
+
/* @__PURE__ */ jsx24("p", { className: "text-sm text-muted-foreground mt-2", children: "Small" })
|
|
1473
2493
|
] }),
|
|
1474
|
-
/* @__PURE__ */
|
|
1475
|
-
/* @__PURE__ */
|
|
1476
|
-
/* @__PURE__ */
|
|
2494
|
+
/* @__PURE__ */ jsxs10("div", { className: "text-center", children: [
|
|
2495
|
+
/* @__PURE__ */ jsx24(Spinner, { size: "default" }),
|
|
2496
|
+
/* @__PURE__ */ jsx24("p", { className: "text-sm text-muted-foreground mt-2", children: "Default" })
|
|
1477
2497
|
] }),
|
|
1478
|
-
/* @__PURE__ */
|
|
1479
|
-
/* @__PURE__ */
|
|
1480
|
-
/* @__PURE__ */
|
|
2498
|
+
/* @__PURE__ */ jsxs10("div", { className: "text-center", children: [
|
|
2499
|
+
/* @__PURE__ */ jsx24(Spinner, { size: "lg" }),
|
|
2500
|
+
/* @__PURE__ */ jsx24("p", { className: "text-sm text-muted-foreground mt-2", children: "Large" })
|
|
1481
2501
|
] })
|
|
1482
2502
|
] }) }),
|
|
1483
|
-
/* @__PURE__ */
|
|
1484
|
-
/* @__PURE__ */
|
|
1485
|
-
/* @__PURE__ */
|
|
1486
|
-
/* @__PURE__ */
|
|
1487
|
-
/* @__PURE__ */
|
|
1488
|
-
/* @__PURE__ */
|
|
1489
|
-
/* @__PURE__ */
|
|
1490
|
-
/* @__PURE__ */
|
|
2503
|
+
/* @__PURE__ */ jsx24(Section, { title: "Separator", children: /* @__PURE__ */ jsxs10("div", { className: "space-y-4", children: [
|
|
2504
|
+
/* @__PURE__ */ jsx24("p", { className: "text-foreground", children: "Content above separator" }),
|
|
2505
|
+
/* @__PURE__ */ jsx24(Separator, {}),
|
|
2506
|
+
/* @__PURE__ */ jsx24("p", { className: "text-foreground", children: "Content below separator" }),
|
|
2507
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-center h-10", children: [
|
|
2508
|
+
/* @__PURE__ */ jsx24("span", { className: "text-foreground", children: "Left" }),
|
|
2509
|
+
/* @__PURE__ */ jsx24(Separator, { orientation: "vertical", className: "mx-4" }),
|
|
2510
|
+
/* @__PURE__ */ jsx24("span", { className: "text-foreground", children: "Right" })
|
|
1491
2511
|
] })
|
|
1492
2512
|
] }) }),
|
|
1493
|
-
/* @__PURE__ */
|
|
1494
|
-
/* @__PURE__ */
|
|
1495
|
-
/* @__PURE__ */
|
|
1496
|
-
/* @__PURE__ */
|
|
1497
|
-
/* @__PURE__ */
|
|
2513
|
+
/* @__PURE__ */ jsx24(Section, { title: "Typography & Colors", children: /* @__PURE__ */ jsxs10("div", { className: "space-y-2", children: [
|
|
2514
|
+
/* @__PURE__ */ jsx24("p", { className: "text-foreground", children: "text-foreground - Primary text color" }),
|
|
2515
|
+
/* @__PURE__ */ jsx24("p", { className: "text-muted-foreground", children: "text-muted-foreground - Muted text color" }),
|
|
2516
|
+
/* @__PURE__ */ jsx24("p", { className: "text-accent", children: "text-accent - Accent color" }),
|
|
2517
|
+
/* @__PURE__ */ jsx24("p", { className: "text-destructive", children: "text-destructive - Destructive color" })
|
|
1498
2518
|
] }) })
|
|
1499
2519
|
] }) });
|
|
1500
2520
|
};
|
|
1501
|
-
var Playground = () => /* @__PURE__ */
|
|
2521
|
+
var Playground = () => /* @__PURE__ */ jsx24(ThemeProvider, { defaultTheme: "light", children: /* @__PURE__ */ jsx24(PlaygroundContent, {}) });
|
|
1502
2522
|
export {
|
|
1503
2523
|
Badge,
|
|
2524
|
+
Box,
|
|
1504
2525
|
Button,
|
|
2526
|
+
Caption,
|
|
1505
2527
|
Card,
|
|
1506
2528
|
CardContent,
|
|
1507
2529
|
CardDescription,
|
|
@@ -1511,11 +2533,27 @@ export {
|
|
|
1511
2533
|
Checkbox,
|
|
1512
2534
|
Combobox,
|
|
1513
2535
|
DialogNamespace as Dialog,
|
|
2536
|
+
DialogClose,
|
|
1514
2537
|
DialogContent,
|
|
1515
2538
|
DialogDescription,
|
|
1516
2539
|
DialogFooter,
|
|
1517
2540
|
DialogHeader,
|
|
2541
|
+
DialogOverlay,
|
|
2542
|
+
DialogPortal,
|
|
1518
2543
|
DialogTitle,
|
|
2544
|
+
DialogTrigger,
|
|
2545
|
+
FormControl,
|
|
2546
|
+
FormGroup,
|
|
2547
|
+
FormHelperText,
|
|
2548
|
+
FormLabel,
|
|
2549
|
+
Grid,
|
|
2550
|
+
H1,
|
|
2551
|
+
H2,
|
|
2552
|
+
H3,
|
|
2553
|
+
H4,
|
|
2554
|
+
H5,
|
|
2555
|
+
H6,
|
|
2556
|
+
HStack,
|
|
1519
2557
|
Input,
|
|
1520
2558
|
Label,
|
|
1521
2559
|
NativeSelect,
|
|
@@ -1528,6 +2566,9 @@ export {
|
|
|
1528
2566
|
PaginationNext,
|
|
1529
2567
|
PaginationPrevious,
|
|
1530
2568
|
Playground,
|
|
2569
|
+
Radio,
|
|
2570
|
+
RadioGroup,
|
|
2571
|
+
RadioGroupItem,
|
|
1531
2572
|
SelectNamespace as Select,
|
|
1532
2573
|
SelectContent,
|
|
1533
2574
|
SelectGroup,
|
|
@@ -1540,6 +2581,7 @@ export {
|
|
|
1540
2581
|
SelectValue,
|
|
1541
2582
|
Separator,
|
|
1542
2583
|
Spinner,
|
|
2584
|
+
Stack,
|
|
1543
2585
|
Switch,
|
|
1544
2586
|
TableNamespace as Table,
|
|
1545
2587
|
TableBody,
|
|
@@ -1549,10 +2591,15 @@ export {
|
|
|
1549
2591
|
TableHead,
|
|
1550
2592
|
TableHeader,
|
|
1551
2593
|
TableRow,
|
|
2594
|
+
Text,
|
|
2595
|
+
TextField,
|
|
1552
2596
|
Textarea,
|
|
1553
2597
|
ThemeContext,
|
|
1554
2598
|
ThemeProvider,
|
|
2599
|
+
Typography,
|
|
2600
|
+
VStack,
|
|
1555
2601
|
cn,
|
|
2602
|
+
useFormControl,
|
|
1556
2603
|
useTheme
|
|
1557
2604
|
};
|
|
1558
2605
|
//# sourceMappingURL=index.js.map
|