@nayhoo/ui 0.5.1 → 0.6.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/{chunk-2IKFUUSU.mjs → chunk-U35ES76Q.mjs} +1 -1
- package/dist/{chunk-2IKFUUSU.mjs.map → chunk-U35ES76Q.mjs.map} +1 -1
- package/dist/index.css +71 -17
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +30 -1
- package/dist/index.d.ts +30 -1
- package/dist/index.js +143 -90
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +137 -86
- package/dist/index.mjs.map +1 -1
- package/dist/providers/index.css +3 -3
- package/dist/providers/index.css.map +1 -1
- package/dist/providers/index.js.map +1 -1
- package/dist/providers/index.mjs +1 -1
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -35,6 +35,7 @@ __export(index_exports, {
|
|
|
35
35
|
Box: () => Box,
|
|
36
36
|
Button: () => Button,
|
|
37
37
|
Card: () => Card,
|
|
38
|
+
Checkbox: () => Checkbox,
|
|
38
39
|
Container: () => Container,
|
|
39
40
|
DropdownMenu: () => DropdownMenu,
|
|
40
41
|
DropdownMenuCheckboxItem: () => DropdownMenuCheckboxItem,
|
|
@@ -56,6 +57,7 @@ __export(index_exports, {
|
|
|
56
57
|
Grid: () => Grid,
|
|
57
58
|
Heading: () => Heading,
|
|
58
59
|
IconButton: () => IconButton,
|
|
60
|
+
Label: () => Label3,
|
|
59
61
|
Link: () => Link,
|
|
60
62
|
Menu: () => Menu,
|
|
61
63
|
MenuCheckboxItem: () => MenuCheckboxItem2,
|
|
@@ -306,57 +308,81 @@ var Card = ({ asChild, ...props }) => {
|
|
|
306
308
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Comp, { ...props, className: mergeClasses(card, props.className), children: props.children });
|
|
307
309
|
};
|
|
308
310
|
|
|
309
|
-
// src/recipes/
|
|
311
|
+
// src/recipes/checkbox.css.ts
|
|
310
312
|
var import_createRuntimeFn8 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
311
|
-
var
|
|
313
|
+
var checkboxIndicatorRecipe = (0, import_createRuntimeFn8.createRuntimeFn)({ defaultClassName: "checkbox_checkboxIndicatorRecipe__1nifxxb3", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
314
|
+
var checkboxRecipe = (0, import_createRuntimeFn8.createRuntimeFn)({ defaultClassName: "checkbox_checkboxRecipe__1nifxxb0", variantClassNames: { size: { "1": "checkbox_checkboxRecipe_size_1__1nifxxb1", "2": "checkbox_checkboxRecipe_size_2__1nifxxb2" } }, defaultVariants: { size: "1" }, compoundVariants: [] });
|
|
315
|
+
|
|
316
|
+
// src/components/checkbox.tsx
|
|
317
|
+
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
|
318
|
+
var import_react_icons = require("@radix-ui/react-icons");
|
|
319
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
320
|
+
var Checkbox = ({ ...props }) => {
|
|
321
|
+
const checkbox = checkboxRecipe(pick(props, ...checkboxRecipe.variants()));
|
|
322
|
+
const checkboxIndicator = checkboxIndicatorRecipe(
|
|
323
|
+
pick(props, ...checkboxIndicatorRecipe.variants())
|
|
324
|
+
);
|
|
325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
326
|
+
CheckboxPrimitive.Root,
|
|
327
|
+
{
|
|
328
|
+
...props,
|
|
329
|
+
className: mergeClasses(checkbox, props.className),
|
|
330
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CheckboxPrimitive.CheckboxIndicator, { className: checkboxIndicator, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_icons.CheckIcon, {}) })
|
|
331
|
+
}
|
|
332
|
+
);
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
// src/recipes/container.css.ts
|
|
336
|
+
var import_createRuntimeFn9 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
337
|
+
var containerRecipe = (0, import_createRuntimeFn9.createRuntimeFn)({ defaultClassName: "container_containerRecipe__p5smko0", variantClassNames: { size: { "1": "container_containerRecipe_size_1__p5smko1", "2": "container_containerRecipe_size_2__p5smko2", "3": "container_containerRecipe_size_3__p5smko3", "4": "container_containerRecipe_size_4__p5smko4" } }, defaultVariants: { size: "4" }, compoundVariants: [] });
|
|
312
338
|
|
|
313
339
|
// src/components/container.tsx
|
|
314
340
|
var import_react_slot7 = require("@radix-ui/react-slot");
|
|
315
|
-
var
|
|
341
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
316
342
|
var defaultElement7 = "div";
|
|
317
343
|
var Container = ({ asChild, ...props }) => {
|
|
318
344
|
const variants = pick(props, ...containerRecipe.variants());
|
|
319
345
|
const container = containerRecipe(variants);
|
|
320
346
|
const Comp = asChild ? import_react_slot7.Slot : defaultElement7;
|
|
321
|
-
return /* @__PURE__ */ (0,
|
|
347
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Comp, { ...props, className: mergeClasses(container, props.className), children: props.children });
|
|
322
348
|
};
|
|
323
349
|
|
|
324
350
|
// src/recipes/flex.css.ts
|
|
325
|
-
var
|
|
326
|
-
var flexRecipe = (0,
|
|
351
|
+
var import_createRuntimeFn10 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
352
|
+
var flexRecipe = (0, import_createRuntimeFn10.createRuntimeFn)({ defaultClassName: "flex_flexRecipe__ygbrx50", variantClassNames: { align: { start: "flex_flexRecipe_align_start__ygbrx51", center: "flex_flexRecipe_align_center__ygbrx52", end: "flex_flexRecipe_align_end__ygbrx53", stretch: "flex_flexRecipe_align_stretch__ygbrx54", baseline: "flex_flexRecipe_align_baseline__ygbrx55" }, direction: { row: "flex_flexRecipe_direction_row__ygbrx56", column: "flex_flexRecipe_direction_column__ygbrx57", rowReverse: "flex_flexRecipe_direction_rowReverse__ygbrx58", columnReverse: "flex_flexRecipe_direction_columnReverse__ygbrx59" }, gap: { "1": "flex_flexRecipe_gap_1__ygbrx5a", "2": "flex_flexRecipe_gap_2__ygbrx5b", "3": "flex_flexRecipe_gap_3__ygbrx5c", "4": "flex_flexRecipe_gap_4__ygbrx5d", "5": "flex_flexRecipe_gap_5__ygbrx5e", "6": "flex_flexRecipe_gap_6__ygbrx5f", "7": "flex_flexRecipe_gap_7__ygbrx5g", "8": "flex_flexRecipe_gap_8__ygbrx5h", "9": "flex_flexRecipe_gap_9__ygbrx5i" }, justify: { start: "flex_flexRecipe_justify_start__ygbrx5j", center: "flex_flexRecipe_justify_center__ygbrx5k", end: "flex_flexRecipe_justify_end__ygbrx5l", between: "flex_flexRecipe_justify_between__ygbrx5m" }, wrap: { noWrap: "flex_flexRecipe_wrap_noWrap__ygbrx5n", wrap: "flex_flexRecipe_wrap_wrap__ygbrx5o", wrapReverse: "flex_flexRecipe_wrap_wrapReverse__ygbrx5p" } }, defaultVariants: { align: "stretch", direction: "row", justify: "start", wrap: "noWrap" }, compoundVariants: [] });
|
|
327
353
|
|
|
328
354
|
// src/components/flex.tsx
|
|
329
355
|
var import_react_slot8 = require("@radix-ui/react-slot");
|
|
330
|
-
var
|
|
356
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
331
357
|
var defaultElement8 = "div";
|
|
332
358
|
var Flex = ({ asChild, ...props }) => {
|
|
333
359
|
const variants = pick(props, ...flexRecipe.variants());
|
|
334
360
|
const flex = flexRecipe(variants);
|
|
335
361
|
const Comp = asChild ? import_react_slot8.Slot : defaultElement8;
|
|
336
|
-
return /* @__PURE__ */ (0,
|
|
362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Comp, { ...props, className: mergeClasses(flex, props.className), children: props.children });
|
|
337
363
|
};
|
|
338
364
|
|
|
339
365
|
// src/recipes/menu.css.ts
|
|
340
|
-
var
|
|
341
|
-
var menuItemRecipe = (0,
|
|
342
|
-
var menuLabelRecipe = (0,
|
|
343
|
-
var menuRecipe = (0,
|
|
344
|
-
var menuSeparatorRecipe = (0,
|
|
366
|
+
var import_createRuntimeFn11 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
367
|
+
var menuItemRecipe = (0, import_createRuntimeFn11.createRuntimeFn)({ defaultClassName: "menu_menuItemRecipe__v16w0m1 menu_baseMenuItemRecipe__v16w0m0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
368
|
+
var menuLabelRecipe = (0, import_createRuntimeFn11.createRuntimeFn)({ defaultClassName: "menu_menuLabelRecipe__v16w0m2 menu_baseMenuItemRecipe__v16w0m0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
369
|
+
var menuRecipe = (0, import_createRuntimeFn11.createRuntimeFn)({ defaultClassName: "menu_menuRecipe__v16w0m3", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
370
|
+
var menuSeparatorRecipe = (0, import_createRuntimeFn11.createRuntimeFn)({ defaultClassName: "menu_menuSeparatorRecipe__v16w0m4", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
345
371
|
|
|
346
372
|
// src/recipes/panel.css.ts
|
|
347
|
-
var
|
|
348
|
-
var panelRecipe = (0,
|
|
373
|
+
var import_createRuntimeFn12 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
374
|
+
var panelRecipe = (0, import_createRuntimeFn12.createRuntimeFn)({ defaultClassName: "panel_panelRecipe__1atgh2b0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
349
375
|
|
|
350
376
|
// src/components/dropdown-menu.tsx
|
|
351
377
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
352
|
-
var
|
|
353
|
-
var
|
|
378
|
+
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
379
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
354
380
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
355
381
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
356
382
|
var DropdownMenuContent = ({ ...props }) => {
|
|
357
383
|
const menu = menuRecipe(pick(props, ...menuRecipe.variants()));
|
|
358
384
|
const panel = panelRecipe(pick(props, ...panelRecipe.variants()));
|
|
359
|
-
return /* @__PURE__ */ (0,
|
|
385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
360
386
|
DropdownMenuPrimitive.Content,
|
|
361
387
|
{
|
|
362
388
|
...props,
|
|
@@ -367,7 +393,7 @@ var DropdownMenuContent = ({ ...props }) => {
|
|
|
367
393
|
var DropdownMenuItem = ({ ...props }) => {
|
|
368
394
|
const variants = pick(props, ...menuItemRecipe.variants());
|
|
369
395
|
const menuItem = menuItemRecipe(variants);
|
|
370
|
-
return /* @__PURE__ */ (0,
|
|
396
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
371
397
|
DropdownMenuPrimitive.Item,
|
|
372
398
|
{
|
|
373
399
|
...props,
|
|
@@ -380,7 +406,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
380
406
|
var DropdownMenuLabel = ({ ...props }) => {
|
|
381
407
|
const variants = pick(props, ...menuLabelRecipe.variants());
|
|
382
408
|
const menuLabel = menuLabelRecipe(variants);
|
|
383
|
-
return /* @__PURE__ */ (0,
|
|
409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
384
410
|
DropdownMenuPrimitive.Label,
|
|
385
411
|
{
|
|
386
412
|
...props,
|
|
@@ -394,7 +420,7 @@ var DropdownMenuSeparator = ({
|
|
|
394
420
|
}) => {
|
|
395
421
|
const variants = pick(props, ...menuSeparatorRecipe.variants());
|
|
396
422
|
const menuSeparator = menuSeparatorRecipe(variants);
|
|
397
|
-
return /* @__PURE__ */ (0,
|
|
423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
398
424
|
DropdownMenuPrimitive.Separator,
|
|
399
425
|
{
|
|
400
426
|
...props,
|
|
@@ -408,13 +434,13 @@ var DropdownMenuCheckboxItem = ({
|
|
|
408
434
|
}) => {
|
|
409
435
|
const variants = pick(props, ...menuItemRecipe.variants());
|
|
410
436
|
const menuItem = menuItemRecipe(variants);
|
|
411
|
-
return /* @__PURE__ */ (0,
|
|
437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
412
438
|
DropdownMenuPrimitive.CheckboxItem,
|
|
413
439
|
{
|
|
414
440
|
...props,
|
|
415
441
|
className: mergeClasses(menuItem, props.className),
|
|
416
442
|
children: [
|
|
417
|
-
/* @__PURE__ */ (0,
|
|
443
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box, { asChild: true, style: { position: "absolute", left: theme.space[1] }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_icons2.CheckIcon, {}) }) }) }),
|
|
418
444
|
props.children
|
|
419
445
|
]
|
|
420
446
|
}
|
|
@@ -427,13 +453,13 @@ var DropdownMenuRadioItem = ({
|
|
|
427
453
|
}) => {
|
|
428
454
|
const variants = pick(props, ...menuItemRecipe.variants());
|
|
429
455
|
const menuItem = menuItemRecipe(variants);
|
|
430
|
-
return /* @__PURE__ */ (0,
|
|
456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
431
457
|
DropdownMenuPrimitive.RadioItem,
|
|
432
458
|
{
|
|
433
459
|
...props,
|
|
434
460
|
className: mergeClasses(menuItem, props.className),
|
|
435
461
|
children: [
|
|
436
|
-
/* @__PURE__ */ (0,
|
|
462
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Box, { asChild: true, style: { position: "absolute", left: theme.space[1] }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
437
463
|
Flex,
|
|
438
464
|
{
|
|
439
465
|
style: {
|
|
@@ -442,7 +468,7 @@ var DropdownMenuRadioItem = ({
|
|
|
442
468
|
alignItems: "center",
|
|
443
469
|
justifyContent: "center"
|
|
444
470
|
},
|
|
445
|
-
children: /* @__PURE__ */ (0,
|
|
471
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
446
472
|
Box,
|
|
447
473
|
{
|
|
448
474
|
style: {
|
|
@@ -462,20 +488,20 @@ var DropdownMenuRadioItem = ({
|
|
|
462
488
|
};
|
|
463
489
|
|
|
464
490
|
// src/recipes/form.css.ts
|
|
465
|
-
var
|
|
466
|
-
var formFieldRecipe = (0,
|
|
467
|
-
var formLabelRecipe = (0,
|
|
468
|
-
var formMessageRecipe = (0,
|
|
491
|
+
var import_createRuntimeFn13 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
492
|
+
var formFieldRecipe = (0, import_createRuntimeFn13.createRuntimeFn)({ defaultClassName: "form_formFieldRecipe__ls2e8b0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
493
|
+
var formLabelRecipe = (0, import_createRuntimeFn13.createRuntimeFn)({ defaultClassName: "form_formLabelRecipe__ls2e8b1", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
494
|
+
var formMessageRecipe = (0, import_createRuntimeFn13.createRuntimeFn)({ defaultClassName: "form_formMessageRecipe__ls2e8b2", variantClassNames: { error: { true: "form_formMessageRecipe_error_true__ls2e8b3" } }, defaultVariants: {}, compoundVariants: [] });
|
|
469
495
|
|
|
470
496
|
// src/components/form.tsx
|
|
471
497
|
var FormPrimitive = __toESM(require("@radix-ui/react-form"));
|
|
472
|
-
var
|
|
498
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
473
499
|
var Form = FormPrimitive.Root;
|
|
474
500
|
var FormControl = FormPrimitive.Control;
|
|
475
501
|
var FormField = ({ ...props }) => {
|
|
476
502
|
const variants = pick(props, ...formFieldRecipe.variants());
|
|
477
503
|
const formField = formFieldRecipe(variants);
|
|
478
|
-
return /* @__PURE__ */ (0,
|
|
504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
479
505
|
FormPrimitive.Field,
|
|
480
506
|
{
|
|
481
507
|
...props,
|
|
@@ -487,7 +513,7 @@ var FormField = ({ ...props }) => {
|
|
|
487
513
|
var FormLabel = ({ ...props }) => {
|
|
488
514
|
const variants = pick(props, ...formLabelRecipe.variants());
|
|
489
515
|
const formLabel = formLabelRecipe(variants);
|
|
490
|
-
return /* @__PURE__ */ (0,
|
|
516
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
491
517
|
FormPrimitive.Label,
|
|
492
518
|
{
|
|
493
519
|
...props,
|
|
@@ -499,7 +525,7 @@ var FormLabel = ({ ...props }) => {
|
|
|
499
525
|
var FormMessage = ({ ...props }) => {
|
|
500
526
|
const variants = pick(props, ...formMessageRecipe.variants());
|
|
501
527
|
const formMessage = formMessageRecipe(variants);
|
|
502
|
-
return /* @__PURE__ */ (0,
|
|
528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
503
529
|
FormPrimitive.Message,
|
|
504
530
|
{
|
|
505
531
|
...props,
|
|
@@ -511,27 +537,27 @@ var FormMessage = ({ ...props }) => {
|
|
|
511
537
|
var FormSubmit = FormPrimitive.Submit;
|
|
512
538
|
|
|
513
539
|
// src/recipes/grid.css.ts
|
|
514
|
-
var
|
|
515
|
-
var gridRecipe = (0,
|
|
540
|
+
var import_createRuntimeFn14 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
541
|
+
var gridRecipe = (0, import_createRuntimeFn14.createRuntimeFn)({ defaultClassName: "grid_gridRecipe__1ab943t0", variantClassNames: { align: { start: "grid_gridRecipe_align_start__1ab943t1", center: "grid_gridRecipe_align_center__1ab943t2", end: "grid_gridRecipe_align_end__1ab943t3", stretch: "grid_gridRecipe_align_stretch__1ab943t4", baseline: "grid_gridRecipe_align_baseline__1ab943t5" }, columns: { "1": "grid_gridRecipe_columns_1__1ab943t6", "2": "grid_gridRecipe_columns_2__1ab943t7", "3": "grid_gridRecipe_columns_3__1ab943t8", "4": "grid_gridRecipe_columns_4__1ab943t9", "5": "grid_gridRecipe_columns_5__1ab943ta", "6": "grid_gridRecipe_columns_6__1ab943tb", "7": "grid_gridRecipe_columns_7__1ab943tc", "8": "grid_gridRecipe_columns_8__1ab943td", "9": "grid_gridRecipe_columns_9__1ab943te", "10": "grid_gridRecipe_columns_10__1ab943tf" }, flow: { row: "grid_gridRecipe_flow_row__1ab943tg", column: "grid_gridRecipe_flow_column__1ab943th", dense: "grid_gridRecipe_flow_dense__1ab943ti", rowDense: "grid_gridRecipe_flow_rowDense__1ab943tj", columnDense: "grid_gridRecipe_flow_columnDense__1ab943tk" }, gap: { "1": "grid_gridRecipe_gap_1__1ab943tl", "2": "grid_gridRecipe_gap_2__1ab943tm", "3": "grid_gridRecipe_gap_3__1ab943tn", "4": "grid_gridRecipe_gap_4__1ab943to", "5": "grid_gridRecipe_gap_5__1ab943tp", "6": "grid_gridRecipe_gap_6__1ab943tq", "7": "grid_gridRecipe_gap_7__1ab943tr", "8": "grid_gridRecipe_gap_8__1ab943ts", "9": "grid_gridRecipe_gap_9__1ab943tt" }, gapX: { "1": "grid_gridRecipe_gapX_1__1ab943tu", "2": "grid_gridRecipe_gapX_2__1ab943tv", "3": "grid_gridRecipe_gapX_3__1ab943tw", "4": "grid_gridRecipe_gapX_4__1ab943tx", "5": "grid_gridRecipe_gapX_5__1ab943ty", "6": "grid_gridRecipe_gapX_6__1ab943tz", "7": "grid_gridRecipe_gapX_7__1ab943t10", "8": "grid_gridRecipe_gapX_8__1ab943t11", "9": "grid_gridRecipe_gapX_9__1ab943t12" }, gapY: { "1": "grid_gridRecipe_gapY_1__1ab943t13", "2": "grid_gridRecipe_gapY_2__1ab943t14", "3": "grid_gridRecipe_gapY_3__1ab943t15", "4": "grid_gridRecipe_gapY_4__1ab943t16", "5": "grid_gridRecipe_gapY_5__1ab943t17", "6": "grid_gridRecipe_gapY_6__1ab943t18", "7": "grid_gridRecipe_gapY_7__1ab943t19", "8": "grid_gridRecipe_gapY_8__1ab943t1a", "9": "grid_gridRecipe_gapY_9__1ab943t1b" }, justify: { start: "grid_gridRecipe_justify_start__1ab943t1c", center: "grid_gridRecipe_justify_center__1ab943t1d", end: "grid_gridRecipe_justify_end__1ab943t1e", between: "grid_gridRecipe_justify_between__1ab943t1f" }, rows: { "1": "grid_gridRecipe_rows_1__1ab943t1g", "2": "grid_gridRecipe_rows_2__1ab943t1h", "3": "grid_gridRecipe_rows_3__1ab943t1i", "4": "grid_gridRecipe_rows_4__1ab943t1j", "5": "grid_gridRecipe_rows_5__1ab943t1k", "6": "grid_gridRecipe_rows_6__1ab943t1l", "7": "grid_gridRecipe_rows_7__1ab943t1m", "8": "grid_gridRecipe_rows_8__1ab943t1n", "9": "grid_gridRecipe_rows_9__1ab943t1o", "10": "grid_gridRecipe_rows_10__1ab943t1p" } }, defaultVariants: {}, compoundVariants: [] });
|
|
516
542
|
|
|
517
543
|
// src/components/grid.tsx
|
|
518
544
|
var import_react_slot9 = require("@radix-ui/react-slot");
|
|
519
|
-
var
|
|
545
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
520
546
|
var defaultElement9 = "div";
|
|
521
547
|
var Grid = ({ asChild, ...props }) => {
|
|
522
548
|
const variants = pick(props, ...gridRecipe.variants());
|
|
523
549
|
const grid = gridRecipe(variants);
|
|
524
550
|
const Comp = asChild ? import_react_slot9.Slot : defaultElement9;
|
|
525
|
-
return /* @__PURE__ */ (0,
|
|
551
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Comp, { ...props, className: mergeClasses(grid, props.className), children: props.children });
|
|
526
552
|
};
|
|
527
553
|
|
|
528
554
|
// src/recipes/text.css.ts
|
|
529
|
-
var
|
|
530
|
-
var textRecipe = (0,
|
|
555
|
+
var import_createRuntimeFn15 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
556
|
+
var textRecipe = (0, import_createRuntimeFn15.createRuntimeFn)({ defaultClassName: "text_textRecipe__1loikgr0", variantClassNames: { color: { primary: "text_textRecipe_color_primary__1loikgr1", secondary: "text_textRecipe_color_secondary__1loikgr2", error: "text_textRecipe_color_error__1loikgr3", subtle: "text_textRecipe_color_subtle__1loikgr4" }, size: { "1": "text_textRecipe_size_1__1loikgr5", "2": "text_textRecipe_size_2__1loikgr6", "3": "text_textRecipe_size_3__1loikgr7", "4": "text_textRecipe_size_4__1loikgr8", "5": "text_textRecipe_size_5__1loikgr9", "6": "text_textRecipe_size_6__1loikgra", "7": "text_textRecipe_size_7__1loikgrb", "8": "text_textRecipe_size_8__1loikgrc", "9": "text_textRecipe_size_9__1loikgrd" }, weight: { regular: "text_textRecipe_weight_regular__1loikgre", medium: "text_textRecipe_weight_medium__1loikgrf", bold: "text_textRecipe_weight_bold__1loikgrg" } }, defaultVariants: { size: "3" }, compoundVariants: [] });
|
|
531
557
|
|
|
532
558
|
// src/components/heading.tsx
|
|
533
559
|
var import_react_slot10 = require("@radix-ui/react-slot");
|
|
534
|
-
var
|
|
560
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
535
561
|
var textAs = {
|
|
536
562
|
1: "h1",
|
|
537
563
|
2: "h2",
|
|
@@ -558,22 +584,22 @@ var Heading = ({
|
|
|
558
584
|
}) => {
|
|
559
585
|
const text = textRecipe({ color, size: textSize[level], weight });
|
|
560
586
|
const Comp = asChild ? import_react_slot10.Slot : textAs[level];
|
|
561
|
-
return /* @__PURE__ */ (0,
|
|
587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Comp, { ...props, className: mergeClasses(text, props.className), children: props.children });
|
|
562
588
|
};
|
|
563
589
|
|
|
564
590
|
// src/recipes/icon-button.css.ts
|
|
565
|
-
var
|
|
566
|
-
var iconButtonRecipe = (0,
|
|
591
|
+
var import_createRuntimeFn16 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
592
|
+
var iconButtonRecipe = (0, import_createRuntimeFn16.createRuntimeFn)({ defaultClassName: "icon-button_iconButtonRecipe__1dx7i1t0", variantClassNames: { loading: { true: "icon-button_iconButtonRecipe_loading_true__1dx7i1t1" }, size: { "1": "icon-button_iconButtonRecipe_size_1__1dx7i1t2", "2": "icon-button_iconButtonRecipe_size_2__1dx7i1t3", "3": "icon-button_iconButtonRecipe_size_3__1dx7i1t4", "4": "icon-button_iconButtonRecipe_size_4__1dx7i1t5" }, variant: { ghost: "icon-button_iconButtonRecipe_variant_ghost__1dx7i1t6", outline: "icon-button_iconButtonRecipe_variant_outline__1dx7i1t7" } }, defaultVariants: { size: "1", variant: "ghost" }, compoundVariants: [] });
|
|
567
593
|
|
|
568
594
|
// src/components/icon-button.tsx
|
|
569
595
|
var import_react_slot11 = require("@radix-ui/react-slot");
|
|
570
|
-
var
|
|
596
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
571
597
|
var defaultElement10 = "button";
|
|
572
598
|
var IconButton = ({ asChild, ...props }) => {
|
|
573
599
|
const variants = pick(props, ...iconButtonRecipe.variants());
|
|
574
600
|
const iconButton = iconButtonRecipe(variants);
|
|
575
601
|
const Comp = asChild ? import_react_slot11.Slot : defaultElement10;
|
|
576
|
-
return /* @__PURE__ */ (0,
|
|
602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
577
603
|
Comp,
|
|
578
604
|
{
|
|
579
605
|
...props,
|
|
@@ -581,40 +607,65 @@ var IconButton = ({ asChild, ...props }) => {
|
|
|
581
607
|
disabled: props.disabled || Boolean(variants.loading),
|
|
582
608
|
children: [
|
|
583
609
|
props.children,
|
|
584
|
-
variants.loading && /* @__PURE__ */ (0,
|
|
610
|
+
variants.loading && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Spinner, { style: { position: "absolute" } })
|
|
585
611
|
]
|
|
586
612
|
}
|
|
587
613
|
);
|
|
588
614
|
};
|
|
589
615
|
|
|
616
|
+
// src/recipes/label.css.ts
|
|
617
|
+
var import_createRuntimeFn17 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
618
|
+
var labelRecipe = (0, import_createRuntimeFn17.createRuntimeFn)({ defaultClassName: "label_labelRecipe__7n5rtz0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
619
|
+
|
|
620
|
+
// src/components/label.tsx
|
|
621
|
+
var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
|
|
622
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
623
|
+
var textSize2 = {
|
|
624
|
+
1: "3",
|
|
625
|
+
2: "4"
|
|
626
|
+
};
|
|
627
|
+
var Label3 = ({ color, size = "1", weight, ...props }) => {
|
|
628
|
+
console.log(textSize2, textSize2[size], size);
|
|
629
|
+
const text = textRecipe({ color, size: textSize2[size], weight });
|
|
630
|
+
const label = labelRecipe(pick(props, ...labelRecipe.variants()));
|
|
631
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
632
|
+
LabelPrimitive.Root,
|
|
633
|
+
{
|
|
634
|
+
...props,
|
|
635
|
+
className: mergeClasses(text, label, props.className),
|
|
636
|
+
children: props.children
|
|
637
|
+
}
|
|
638
|
+
);
|
|
639
|
+
};
|
|
640
|
+
|
|
590
641
|
// src/recipes/link.css.ts
|
|
591
|
-
var
|
|
592
|
-
var linkRecipe = (0,
|
|
642
|
+
var import_createRuntimeFn18 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
643
|
+
var linkRecipe = (0, import_createRuntimeFn18.createRuntimeFn)({ defaultClassName: "link_linkRecipe__kd87m50", variantClassNames: { color: { primary: "link_linkRecipe_color_primary__kd87m51", secondary: "link_linkRecipe_color_secondary__kd87m52", error: "link_linkRecipe_color_error__kd87m53", subtle: "link_linkRecipe_color_subtle__kd87m54" } }, defaultVariants: {}, compoundVariants: [] });
|
|
593
644
|
|
|
594
645
|
// src/components/link.tsx
|
|
595
646
|
var import_react_slot12 = require("@radix-ui/react-slot");
|
|
596
|
-
var
|
|
647
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
597
648
|
var defaultElement11 = "a";
|
|
598
649
|
var Link = ({ asChild, ...props }) => {
|
|
599
650
|
const variants = pick(props, ...linkRecipe.variants());
|
|
600
651
|
const link = linkRecipe(variants);
|
|
601
652
|
const Comp = asChild ? import_react_slot12.Slot : defaultElement11;
|
|
602
|
-
return /* @__PURE__ */ (0,
|
|
653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Comp, { ...props, className: mergeClasses(link, props.className), children: props.children });
|
|
603
654
|
};
|
|
604
655
|
|
|
605
656
|
// src/components/menu.tsx
|
|
606
|
-
var
|
|
657
|
+
var import_react_icons3 = require("@radix-ui/react-icons");
|
|
607
658
|
var MenuPrimitive = __toESM(require("@radix-ui/react-menu"));
|
|
608
|
-
var
|
|
659
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
609
660
|
var Menu = ({ ...props }) => {
|
|
610
661
|
const variants = pick(props, ...menuRecipe.variants());
|
|
611
662
|
const menu = menuRecipe(variants);
|
|
612
|
-
return /* @__PURE__ */ (0,
|
|
663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(MenuPrimitive.Root, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: mergeClasses(menu, props.className), children: props.children }) });
|
|
613
664
|
};
|
|
614
665
|
var MenuContent = ({ ...props }) => {
|
|
615
666
|
const variants = pick(props, ...panelRecipe.variants());
|
|
616
667
|
const panel = panelRecipe(variants);
|
|
617
|
-
return /* @__PURE__ */ (0,
|
|
668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
618
669
|
MenuPrimitive.Content,
|
|
619
670
|
{
|
|
620
671
|
...props,
|
|
@@ -626,7 +677,7 @@ var MenuContent = ({ ...props }) => {
|
|
|
626
677
|
var MenuSeparator = ({ ...props }) => {
|
|
627
678
|
const variants = pick(props, ...menuSeparatorRecipe.variants());
|
|
628
679
|
const menuSeparator = menuSeparatorRecipe(variants);
|
|
629
|
-
return /* @__PURE__ */ (0,
|
|
680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
630
681
|
MenuPrimitive.Separator,
|
|
631
682
|
{
|
|
632
683
|
...props,
|
|
@@ -638,7 +689,7 @@ var MenuSeparator = ({ ...props }) => {
|
|
|
638
689
|
var MenuItem2 = ({ ...props }) => {
|
|
639
690
|
const variants = pick(props, ...menuItemRecipe.variants());
|
|
640
691
|
const menuItem = menuItemRecipe(variants);
|
|
641
|
-
return /* @__PURE__ */ (0,
|
|
692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
642
693
|
MenuPrimitive.MenuItem,
|
|
643
694
|
{
|
|
644
695
|
...props,
|
|
@@ -650,13 +701,13 @@ var MenuItem2 = ({ ...props }) => {
|
|
|
650
701
|
var MenuRadioItem = ({ ...props }) => {
|
|
651
702
|
const variants = pick(props, ...menuItemRecipe.variants());
|
|
652
703
|
const menuItem = menuItemRecipe(variants);
|
|
653
|
-
return /* @__PURE__ */ (0,
|
|
704
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
654
705
|
MenuPrimitive.RadioItem,
|
|
655
706
|
{
|
|
656
707
|
...props,
|
|
657
708
|
className: mergeClasses(menuItem, props.className),
|
|
658
709
|
children: [
|
|
659
|
-
/* @__PURE__ */ (0,
|
|
710
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Box, { asChild: true, style: { position: "absolute", left: theme.space[1] }, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(MenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
660
711
|
Flex,
|
|
661
712
|
{
|
|
662
713
|
style: {
|
|
@@ -665,7 +716,7 @@ var MenuRadioItem = ({ ...props }) => {
|
|
|
665
716
|
alignItems: "center",
|
|
666
717
|
justifyContent: "center"
|
|
667
718
|
},
|
|
668
|
-
children: /* @__PURE__ */ (0,
|
|
719
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
669
720
|
Box,
|
|
670
721
|
{
|
|
671
722
|
style: {
|
|
@@ -686,13 +737,13 @@ var MenuRadioItem = ({ ...props }) => {
|
|
|
686
737
|
var MenuCheckboxItem2 = ({ ...props }) => {
|
|
687
738
|
const variants = pick(props, ...menuItemRecipe.variants());
|
|
688
739
|
const menuItem = menuItemRecipe(variants);
|
|
689
|
-
return /* @__PURE__ */ (0,
|
|
740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
690
741
|
MenuPrimitive.MenuCheckboxItem,
|
|
691
742
|
{
|
|
692
743
|
...props,
|
|
693
744
|
className: mergeClasses(menuItem, props.className),
|
|
694
745
|
children: [
|
|
695
|
-
/* @__PURE__ */ (0,
|
|
746
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Box, { asChild: true, style: { position: "absolute", left: theme.space[1] }, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(MenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_icons3.CheckIcon, {}) }) }) }),
|
|
696
747
|
props.children
|
|
697
748
|
]
|
|
698
749
|
}
|
|
@@ -701,7 +752,7 @@ var MenuCheckboxItem2 = ({ ...props }) => {
|
|
|
701
752
|
var MenuLabel2 = ({ ...props }) => {
|
|
702
753
|
const variants = pick(props, ...menuLabelRecipe.variants());
|
|
703
754
|
const menuLabel = menuLabelRecipe(variants);
|
|
704
|
-
return /* @__PURE__ */ (0,
|
|
755
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
705
756
|
MenuPrimitive.MenuLabel,
|
|
706
757
|
{
|
|
707
758
|
...props,
|
|
@@ -715,20 +766,20 @@ var MenuGroup = MenuPrimitive.Group;
|
|
|
715
766
|
|
|
716
767
|
// src/components/panel.tsx
|
|
717
768
|
var import_react_slot13 = require("@radix-ui/react-slot");
|
|
718
|
-
var
|
|
769
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
719
770
|
var defaultElement12 = "div";
|
|
720
771
|
var Panel = ({ asChild, ...props }) => {
|
|
721
772
|
const variants = pick(props, ...panelRecipe.variants());
|
|
722
773
|
const panel = panelRecipe(variants);
|
|
723
774
|
const Comp = asChild ? import_react_slot13.Slot : defaultElement12;
|
|
724
|
-
return /* @__PURE__ */ (0,
|
|
775
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Comp, { ...props, className: mergeClasses(panel, props.className), children: props.children });
|
|
725
776
|
};
|
|
726
777
|
|
|
727
778
|
// src/components/paragraph.tsx
|
|
728
779
|
var import_react_slot14 = require("@radix-ui/react-slot");
|
|
729
|
-
var
|
|
780
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
730
781
|
var defaultElement13 = "p";
|
|
731
|
-
var
|
|
782
|
+
var textSize3 = {
|
|
732
783
|
1: "3",
|
|
733
784
|
2: "4"
|
|
734
785
|
};
|
|
@@ -739,22 +790,22 @@ var Paragraph = ({
|
|
|
739
790
|
weight,
|
|
740
791
|
...props
|
|
741
792
|
}) => {
|
|
742
|
-
const text = textRecipe({ color, size:
|
|
793
|
+
const text = textRecipe({ color, size: textSize3[size], weight });
|
|
743
794
|
const Comp = asChild ? import_react_slot14.Slot : defaultElement13;
|
|
744
|
-
return /* @__PURE__ */ (0,
|
|
795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Comp, { ...props, className: mergeClasses(text, props.className), children: props.children });
|
|
745
796
|
};
|
|
746
797
|
|
|
747
798
|
// src/recipes/separator.css.ts
|
|
748
|
-
var
|
|
749
|
-
var separatorRecipe = (0,
|
|
799
|
+
var import_createRuntimeFn19 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
800
|
+
var separatorRecipe = (0, import_createRuntimeFn19.createRuntimeFn)({ defaultClassName: "separator_separatorRecipe__11isr9a0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
750
801
|
|
|
751
802
|
// src/components/separator.tsx
|
|
752
803
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
|
|
753
|
-
var
|
|
804
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
754
805
|
var Separator3 = ({ ...props }) => {
|
|
755
806
|
const variants = pick(props, ...separatorRecipe.variants());
|
|
756
807
|
const separator = separatorRecipe(variants);
|
|
757
|
-
return /* @__PURE__ */ (0,
|
|
808
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
758
809
|
SeparatorPrimitive.Root,
|
|
759
810
|
{
|
|
760
811
|
...props,
|
|
@@ -765,32 +816,32 @@ var Separator3 = ({ ...props }) => {
|
|
|
765
816
|
};
|
|
766
817
|
|
|
767
818
|
// src/recipes/skeleton.css.ts
|
|
768
|
-
var
|
|
769
|
-
var skeletonRecipe = (0,
|
|
819
|
+
var import_createRuntimeFn20 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
820
|
+
var skeletonRecipe = (0, import_createRuntimeFn20.createRuntimeFn)({ defaultClassName: "skeleton_skeletonRecipe__vq97mz0", variantClassNames: { variant: { avatar1: "skeleton_skeletonRecipe_variant_avatar1__vq97mz1", avatar2: "skeleton_skeletonRecipe_variant_avatar2__vq97mz2", avatar3: "skeleton_skeletonRecipe_variant_avatar3__vq97mz3", avatar4: "skeleton_skeletonRecipe_variant_avatar4__vq97mz4", avatar5: "skeleton_skeletonRecipe_variant_avatar5__vq97mz5", avatar6: "skeleton_skeletonRecipe_variant_avatar6__vq97mz6", text: "skeleton_skeletonRecipe_variant_text__vq97mz7", title: "skeleton_skeletonRecipe_variant_title__vq97mz8", heading: "skeleton_skeletonRecipe_variant_heading__vq97mz9", button: "skeleton_skeletonRecipe_variant_button__vq97mza" } }, defaultVariants: { variant: "text" }, compoundVariants: [] });
|
|
770
821
|
|
|
771
822
|
// src/components/skeleton.tsx
|
|
772
823
|
var import_react_slot15 = require("@radix-ui/react-slot");
|
|
773
|
-
var
|
|
824
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
774
825
|
var defaultElement14 = "div";
|
|
775
826
|
var Skeleton = ({ asChild, ...props }) => {
|
|
776
827
|
const variants = pick(props, ...skeletonRecipe.variants());
|
|
777
828
|
const skeleton = skeletonRecipe(variants);
|
|
778
829
|
const Comp = asChild ? import_react_slot15.Slot : defaultElement14;
|
|
779
|
-
return /* @__PURE__ */ (0,
|
|
830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Comp, { ...props, className: mergeClasses(skeleton, props.className), children: props.children });
|
|
780
831
|
};
|
|
781
832
|
|
|
782
833
|
// src/recipes/switch.css.ts
|
|
783
|
-
var
|
|
784
|
-
var switchRecipe = (0,
|
|
785
|
-
var switchThumbRecipe = (0,
|
|
834
|
+
var import_createRuntimeFn21 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
835
|
+
var switchRecipe = (0, import_createRuntimeFn21.createRuntimeFn)({ defaultClassName: "switch_switchRecipe__6op4100", variantClassNames: { size: { "1": "switch_switchRecipe_size_1__6op4101", "2": "switch_switchRecipe_size_2__6op4102" } }, defaultVariants: { size: "1" }, compoundVariants: [] });
|
|
836
|
+
var switchThumbRecipe = (0, import_createRuntimeFn21.createRuntimeFn)({ defaultClassName: "switch_switchThumbRecipe__6op4103", variantClassNames: { size: { "1": "switch_switchThumbRecipe_size_1__6op4104", "2": "switch_switchThumbRecipe_size_2__6op4105" } }, defaultVariants: { size: "1" }, compoundVariants: [] });
|
|
786
837
|
|
|
787
838
|
// src/components/switch.tsx
|
|
788
839
|
var SwitchPrimitive = __toESM(require("@radix-ui/react-switch"));
|
|
789
|
-
var
|
|
840
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
790
841
|
var SwitchThumb = ({ ...props }) => {
|
|
791
842
|
const variants = pick(props, ...switchThumbRecipe.variants());
|
|
792
843
|
const switchThumb = switchThumbRecipe(variants);
|
|
793
|
-
return /* @__PURE__ */ (0,
|
|
844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
794
845
|
SwitchPrimitive.Thumb,
|
|
795
846
|
{
|
|
796
847
|
...props,
|
|
@@ -801,40 +852,40 @@ var SwitchThumb = ({ ...props }) => {
|
|
|
801
852
|
var Switch = ({ ...props }) => {
|
|
802
853
|
const variants = pick(props, ...switchRecipe.variants());
|
|
803
854
|
const _switch = switchRecipe(variants);
|
|
804
|
-
return /* @__PURE__ */ (0,
|
|
855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
805
856
|
SwitchPrimitive.Root,
|
|
806
857
|
{
|
|
807
858
|
...props,
|
|
808
859
|
className: mergeClasses(_switch, props.className),
|
|
809
|
-
children: /* @__PURE__ */ (0,
|
|
860
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SwitchThumb, { size: variants.size })
|
|
810
861
|
}
|
|
811
862
|
);
|
|
812
863
|
};
|
|
813
864
|
|
|
814
865
|
// src/recipes/text-field.css.ts
|
|
815
|
-
var
|
|
816
|
-
var textFieldRecipe = (0,
|
|
866
|
+
var import_createRuntimeFn22 = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
867
|
+
var textFieldRecipe = (0, import_createRuntimeFn22.createRuntimeFn)({ defaultClassName: "text-field_textFieldRecipe__trfyte0", variantClassNames: { size: { "1": "text-field_textFieldRecipe_size_1__trfyte1", "2": "text-field_textFieldRecipe_size_2__trfyte2", "3": "text-field_textFieldRecipe_size_3__trfyte3" }, error: { true: "text-field_textFieldRecipe_error_true__trfyte4" }, cursor: { "default": "text-field_textFieldRecipe_cursor_default__trfyte5", text: "text-field_textFieldRecipe_cursor_text__trfyte6" }, variant: { outline: "text-field_textFieldRecipe_variant_outline__trfyte7", ghost: "text-field_textFieldRecipe_variant_ghost__trfyte8" } }, defaultVariants: { size: "2", variant: "outline" }, compoundVariants: [] });
|
|
817
868
|
|
|
818
869
|
// src/components/text-field.tsx
|
|
819
870
|
var import_react_slot16 = require("@radix-ui/react-slot");
|
|
820
|
-
var
|
|
871
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
821
872
|
var defaultElement15 = "input";
|
|
822
873
|
var TextField = ({ asChild, ...props }) => {
|
|
823
874
|
const variants = pick(props, ...textFieldRecipe.variants());
|
|
824
875
|
const textField = textFieldRecipe(variants);
|
|
825
876
|
const Comp = asChild ? import_react_slot16.Slot : defaultElement15;
|
|
826
|
-
return /* @__PURE__ */ (0,
|
|
877
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Comp, { ...props, className: mergeClasses(textField, props.className), children: props.children });
|
|
827
878
|
};
|
|
828
879
|
|
|
829
880
|
// src/components/text.tsx
|
|
830
881
|
var import_react_slot17 = require("@radix-ui/react-slot");
|
|
831
|
-
var
|
|
882
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
832
883
|
var defaultElement16 = "span";
|
|
833
884
|
var Text = ({ asChild, ...props }) => {
|
|
834
885
|
const variants = pick(props, ...textRecipe.variants());
|
|
835
886
|
const text = textRecipe(variants);
|
|
836
887
|
const Comp = asChild ? import_react_slot17.Slot : defaultElement16;
|
|
837
|
-
return /* @__PURE__ */ (0,
|
|
888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Comp, { ...props, className: mergeClasses(text, props.className), children: props.children });
|
|
838
889
|
};
|
|
839
890
|
|
|
840
891
|
// src/sprinkles/sprinkles.css.ts
|
|
@@ -853,6 +904,7 @@ var lightTheme = "light-theme__z73fs90";
|
|
|
853
904
|
Box,
|
|
854
905
|
Button,
|
|
855
906
|
Card,
|
|
907
|
+
Checkbox,
|
|
856
908
|
Container,
|
|
857
909
|
DropdownMenu,
|
|
858
910
|
DropdownMenuCheckboxItem,
|
|
@@ -874,6 +926,7 @@ var lightTheme = "light-theme__z73fs90";
|
|
|
874
926
|
Grid,
|
|
875
927
|
Heading,
|
|
876
928
|
IconButton,
|
|
929
|
+
Label,
|
|
877
930
|
Link,
|
|
878
931
|
Menu,
|
|
879
932
|
MenuCheckboxItem,
|