@nayhoo/ui 0.5.0 → 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 +82 -22
- 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.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
darkTheme,
|
|
3
3
|
lightTheme,
|
|
4
4
|
theme
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-U35ES76Q.mjs";
|
|
6
6
|
|
|
7
7
|
// src/animations/hide.css.ts
|
|
8
8
|
var hide = "hide_hide__1cfeb4j0";
|
|
@@ -220,57 +220,81 @@ var Card = ({ asChild, ...props }) => {
|
|
|
220
220
|
return /* @__PURE__ */ jsx7(Comp, { ...props, className: mergeClasses(card, props.className), children: props.children });
|
|
221
221
|
};
|
|
222
222
|
|
|
223
|
-
// src/recipes/
|
|
223
|
+
// src/recipes/checkbox.css.ts
|
|
224
224
|
import { createRuntimeFn as _7a4688 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
225
|
-
var
|
|
225
|
+
var checkboxIndicatorRecipe = _7a4688({ defaultClassName: "checkbox_checkboxIndicatorRecipe__1nifxxb3", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
226
|
+
var checkboxRecipe = _7a4688({ defaultClassName: "checkbox_checkboxRecipe__1nifxxb0", variantClassNames: { size: { "1": "checkbox_checkboxRecipe_size_1__1nifxxb1", "2": "checkbox_checkboxRecipe_size_2__1nifxxb2" } }, defaultVariants: { size: "1" }, compoundVariants: [] });
|
|
227
|
+
|
|
228
|
+
// src/components/checkbox.tsx
|
|
229
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
230
|
+
import { CheckIcon } from "@radix-ui/react-icons";
|
|
231
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
232
|
+
var Checkbox = ({ ...props }) => {
|
|
233
|
+
const checkbox = checkboxRecipe(pick(props, ...checkboxRecipe.variants()));
|
|
234
|
+
const checkboxIndicator = checkboxIndicatorRecipe(
|
|
235
|
+
pick(props, ...checkboxIndicatorRecipe.variants())
|
|
236
|
+
);
|
|
237
|
+
return /* @__PURE__ */ jsx8(
|
|
238
|
+
CheckboxPrimitive.Root,
|
|
239
|
+
{
|
|
240
|
+
...props,
|
|
241
|
+
className: mergeClasses(checkbox, props.className),
|
|
242
|
+
children: /* @__PURE__ */ jsx8(CheckboxPrimitive.CheckboxIndicator, { className: checkboxIndicator, children: /* @__PURE__ */ jsx8(CheckIcon, {}) })
|
|
243
|
+
}
|
|
244
|
+
);
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
// src/recipes/container.css.ts
|
|
248
|
+
import { createRuntimeFn as _7a4689 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
249
|
+
var containerRecipe = _7a4689({ 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: [] });
|
|
226
250
|
|
|
227
251
|
// src/components/container.tsx
|
|
228
252
|
import { Slot as Slot7 } from "@radix-ui/react-slot";
|
|
229
|
-
import { jsx as
|
|
253
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
230
254
|
var defaultElement7 = "div";
|
|
231
255
|
var Container = ({ asChild, ...props }) => {
|
|
232
256
|
const variants = pick(props, ...containerRecipe.variants());
|
|
233
257
|
const container = containerRecipe(variants);
|
|
234
258
|
const Comp = asChild ? Slot7 : defaultElement7;
|
|
235
|
-
return /* @__PURE__ */
|
|
259
|
+
return /* @__PURE__ */ jsx9(Comp, { ...props, className: mergeClasses(container, props.className), children: props.children });
|
|
236
260
|
};
|
|
237
261
|
|
|
238
262
|
// src/recipes/flex.css.ts
|
|
239
|
-
import { createRuntimeFn as
|
|
240
|
-
var flexRecipe =
|
|
263
|
+
import { createRuntimeFn as _7a46810 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
264
|
+
var flexRecipe = _7a46810({ 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: [] });
|
|
241
265
|
|
|
242
266
|
// src/components/flex.tsx
|
|
243
267
|
import { Slot as Slot8 } from "@radix-ui/react-slot";
|
|
244
|
-
import { jsx as
|
|
268
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
245
269
|
var defaultElement8 = "div";
|
|
246
270
|
var Flex = ({ asChild, ...props }) => {
|
|
247
271
|
const variants = pick(props, ...flexRecipe.variants());
|
|
248
272
|
const flex = flexRecipe(variants);
|
|
249
273
|
const Comp = asChild ? Slot8 : defaultElement8;
|
|
250
|
-
return /* @__PURE__ */
|
|
274
|
+
return /* @__PURE__ */ jsx10(Comp, { ...props, className: mergeClasses(flex, props.className), children: props.children });
|
|
251
275
|
};
|
|
252
276
|
|
|
253
277
|
// src/recipes/menu.css.ts
|
|
254
|
-
import { createRuntimeFn as
|
|
255
|
-
var menuItemRecipe =
|
|
256
|
-
var menuLabelRecipe =
|
|
257
|
-
var menuRecipe =
|
|
258
|
-
var menuSeparatorRecipe =
|
|
278
|
+
import { createRuntimeFn as _7a46811 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
279
|
+
var menuItemRecipe = _7a46811({ defaultClassName: "menu_menuItemRecipe__v16w0m1 menu_baseMenuItemRecipe__v16w0m0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
280
|
+
var menuLabelRecipe = _7a46811({ defaultClassName: "menu_menuLabelRecipe__v16w0m2 menu_baseMenuItemRecipe__v16w0m0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
281
|
+
var menuRecipe = _7a46811({ defaultClassName: "menu_menuRecipe__v16w0m3", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
282
|
+
var menuSeparatorRecipe = _7a46811({ defaultClassName: "menu_menuSeparatorRecipe__v16w0m4", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
259
283
|
|
|
260
284
|
// src/recipes/panel.css.ts
|
|
261
|
-
import { createRuntimeFn as
|
|
262
|
-
var panelRecipe =
|
|
285
|
+
import { createRuntimeFn as _7a46812 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
286
|
+
var panelRecipe = _7a46812({ defaultClassName: "panel_panelRecipe__1atgh2b0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
263
287
|
|
|
264
288
|
// src/components/dropdown-menu.tsx
|
|
265
289
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
266
|
-
import { CheckIcon } from "@radix-ui/react-icons";
|
|
267
|
-
import { jsx as
|
|
290
|
+
import { CheckIcon as CheckIcon2 } from "@radix-ui/react-icons";
|
|
291
|
+
import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
268
292
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
269
293
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
270
294
|
var DropdownMenuContent = ({ ...props }) => {
|
|
271
295
|
const menu = menuRecipe(pick(props, ...menuRecipe.variants()));
|
|
272
296
|
const panel = panelRecipe(pick(props, ...panelRecipe.variants()));
|
|
273
|
-
return /* @__PURE__ */
|
|
297
|
+
return /* @__PURE__ */ jsx11(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx11(
|
|
274
298
|
DropdownMenuPrimitive.Content,
|
|
275
299
|
{
|
|
276
300
|
...props,
|
|
@@ -281,7 +305,7 @@ var DropdownMenuContent = ({ ...props }) => {
|
|
|
281
305
|
var DropdownMenuItem = ({ ...props }) => {
|
|
282
306
|
const variants = pick(props, ...menuItemRecipe.variants());
|
|
283
307
|
const menuItem = menuItemRecipe(variants);
|
|
284
|
-
return /* @__PURE__ */
|
|
308
|
+
return /* @__PURE__ */ jsx11(
|
|
285
309
|
DropdownMenuPrimitive.Item,
|
|
286
310
|
{
|
|
287
311
|
...props,
|
|
@@ -294,7 +318,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
294
318
|
var DropdownMenuLabel = ({ ...props }) => {
|
|
295
319
|
const variants = pick(props, ...menuLabelRecipe.variants());
|
|
296
320
|
const menuLabel = menuLabelRecipe(variants);
|
|
297
|
-
return /* @__PURE__ */
|
|
321
|
+
return /* @__PURE__ */ jsx11(
|
|
298
322
|
DropdownMenuPrimitive.Label,
|
|
299
323
|
{
|
|
300
324
|
...props,
|
|
@@ -308,7 +332,7 @@ var DropdownMenuSeparator = ({
|
|
|
308
332
|
}) => {
|
|
309
333
|
const variants = pick(props, ...menuSeparatorRecipe.variants());
|
|
310
334
|
const menuSeparator = menuSeparatorRecipe(variants);
|
|
311
|
-
return /* @__PURE__ */
|
|
335
|
+
return /* @__PURE__ */ jsx11(
|
|
312
336
|
DropdownMenuPrimitive.Separator,
|
|
313
337
|
{
|
|
314
338
|
...props,
|
|
@@ -328,7 +352,7 @@ var DropdownMenuCheckboxItem = ({
|
|
|
328
352
|
...props,
|
|
329
353
|
className: mergeClasses(menuItem, props.className),
|
|
330
354
|
children: [
|
|
331
|
-
/* @__PURE__ */
|
|
355
|
+
/* @__PURE__ */ jsx11(Box, { asChild: true, style: { position: "absolute", left: theme.space[1] }, children: /* @__PURE__ */ jsx11("span", { children: /* @__PURE__ */ jsx11(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx11(CheckIcon2, {}) }) }) }),
|
|
332
356
|
props.children
|
|
333
357
|
]
|
|
334
358
|
}
|
|
@@ -347,7 +371,7 @@ var DropdownMenuRadioItem = ({
|
|
|
347
371
|
...props,
|
|
348
372
|
className: mergeClasses(menuItem, props.className),
|
|
349
373
|
children: [
|
|
350
|
-
/* @__PURE__ */
|
|
374
|
+
/* @__PURE__ */ jsx11(Box, { asChild: true, style: { position: "absolute", left: theme.space[1] }, children: /* @__PURE__ */ jsx11("span", { children: /* @__PURE__ */ jsx11(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx11(
|
|
351
375
|
Flex,
|
|
352
376
|
{
|
|
353
377
|
style: {
|
|
@@ -356,7 +380,7 @@ var DropdownMenuRadioItem = ({
|
|
|
356
380
|
alignItems: "center",
|
|
357
381
|
justifyContent: "center"
|
|
358
382
|
},
|
|
359
|
-
children: /* @__PURE__ */
|
|
383
|
+
children: /* @__PURE__ */ jsx11(
|
|
360
384
|
Box,
|
|
361
385
|
{
|
|
362
386
|
style: {
|
|
@@ -376,20 +400,20 @@ var DropdownMenuRadioItem = ({
|
|
|
376
400
|
};
|
|
377
401
|
|
|
378
402
|
// src/recipes/form.css.ts
|
|
379
|
-
import { createRuntimeFn as
|
|
380
|
-
var formFieldRecipe =
|
|
381
|
-
var formLabelRecipe =
|
|
382
|
-
var formMessageRecipe =
|
|
403
|
+
import { createRuntimeFn as _7a46813 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
404
|
+
var formFieldRecipe = _7a46813({ defaultClassName: "form_formFieldRecipe__ls2e8b0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
405
|
+
var formLabelRecipe = _7a46813({ defaultClassName: "form_formLabelRecipe__ls2e8b1", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
406
|
+
var formMessageRecipe = _7a46813({ defaultClassName: "form_formMessageRecipe__ls2e8b2", variantClassNames: { error: { true: "form_formMessageRecipe_error_true__ls2e8b3" } }, defaultVariants: {}, compoundVariants: [] });
|
|
383
407
|
|
|
384
408
|
// src/components/form.tsx
|
|
385
409
|
import * as FormPrimitive from "@radix-ui/react-form";
|
|
386
|
-
import { jsx as
|
|
410
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
387
411
|
var Form = FormPrimitive.Root;
|
|
388
412
|
var FormControl = FormPrimitive.Control;
|
|
389
413
|
var FormField = ({ ...props }) => {
|
|
390
414
|
const variants = pick(props, ...formFieldRecipe.variants());
|
|
391
415
|
const formField = formFieldRecipe(variants);
|
|
392
|
-
return /* @__PURE__ */
|
|
416
|
+
return /* @__PURE__ */ jsx12(
|
|
393
417
|
FormPrimitive.Field,
|
|
394
418
|
{
|
|
395
419
|
...props,
|
|
@@ -401,7 +425,7 @@ var FormField = ({ ...props }) => {
|
|
|
401
425
|
var FormLabel = ({ ...props }) => {
|
|
402
426
|
const variants = pick(props, ...formLabelRecipe.variants());
|
|
403
427
|
const formLabel = formLabelRecipe(variants);
|
|
404
|
-
return /* @__PURE__ */
|
|
428
|
+
return /* @__PURE__ */ jsx12(
|
|
405
429
|
FormPrimitive.Label,
|
|
406
430
|
{
|
|
407
431
|
...props,
|
|
@@ -413,7 +437,7 @@ var FormLabel = ({ ...props }) => {
|
|
|
413
437
|
var FormMessage = ({ ...props }) => {
|
|
414
438
|
const variants = pick(props, ...formMessageRecipe.variants());
|
|
415
439
|
const formMessage = formMessageRecipe(variants);
|
|
416
|
-
return /* @__PURE__ */
|
|
440
|
+
return /* @__PURE__ */ jsx12(
|
|
417
441
|
FormPrimitive.Message,
|
|
418
442
|
{
|
|
419
443
|
...props,
|
|
@@ -425,27 +449,27 @@ var FormMessage = ({ ...props }) => {
|
|
|
425
449
|
var FormSubmit = FormPrimitive.Submit;
|
|
426
450
|
|
|
427
451
|
// src/recipes/grid.css.ts
|
|
428
|
-
import { createRuntimeFn as
|
|
429
|
-
var gridRecipe =
|
|
452
|
+
import { createRuntimeFn as _7a46814 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
453
|
+
var gridRecipe = _7a46814({ 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: [] });
|
|
430
454
|
|
|
431
455
|
// src/components/grid.tsx
|
|
432
456
|
import { Slot as Slot9 } from "@radix-ui/react-slot";
|
|
433
|
-
import { jsx as
|
|
457
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
434
458
|
var defaultElement9 = "div";
|
|
435
459
|
var Grid = ({ asChild, ...props }) => {
|
|
436
460
|
const variants = pick(props, ...gridRecipe.variants());
|
|
437
461
|
const grid = gridRecipe(variants);
|
|
438
462
|
const Comp = asChild ? Slot9 : defaultElement9;
|
|
439
|
-
return /* @__PURE__ */
|
|
463
|
+
return /* @__PURE__ */ jsx13(Comp, { ...props, className: mergeClasses(grid, props.className), children: props.children });
|
|
440
464
|
};
|
|
441
465
|
|
|
442
466
|
// src/recipes/text.css.ts
|
|
443
|
-
import { createRuntimeFn as
|
|
444
|
-
var textRecipe =
|
|
467
|
+
import { createRuntimeFn as _7a46815 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
468
|
+
var textRecipe = _7a46815({ 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: [] });
|
|
445
469
|
|
|
446
470
|
// src/components/heading.tsx
|
|
447
471
|
import { Slot as Slot10 } from "@radix-ui/react-slot";
|
|
448
|
-
import { jsx as
|
|
472
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
449
473
|
var textAs = {
|
|
450
474
|
1: "h1",
|
|
451
475
|
2: "h2",
|
|
@@ -472,16 +496,16 @@ var Heading = ({
|
|
|
472
496
|
}) => {
|
|
473
497
|
const text = textRecipe({ color, size: textSize[level], weight });
|
|
474
498
|
const Comp = asChild ? Slot10 : textAs[level];
|
|
475
|
-
return /* @__PURE__ */
|
|
499
|
+
return /* @__PURE__ */ jsx14(Comp, { ...props, className: mergeClasses(text, props.className), children: props.children });
|
|
476
500
|
};
|
|
477
501
|
|
|
478
502
|
// src/recipes/icon-button.css.ts
|
|
479
|
-
import { createRuntimeFn as
|
|
480
|
-
var iconButtonRecipe =
|
|
503
|
+
import { createRuntimeFn as _7a46816 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
504
|
+
var iconButtonRecipe = _7a46816({ 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: [] });
|
|
481
505
|
|
|
482
506
|
// src/components/icon-button.tsx
|
|
483
507
|
import { Slot as Slot11 } from "@radix-ui/react-slot";
|
|
484
|
-
import { jsx as
|
|
508
|
+
import { jsx as jsx15, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
485
509
|
var defaultElement10 = "button";
|
|
486
510
|
var IconButton = ({ asChild, ...props }) => {
|
|
487
511
|
const variants = pick(props, ...iconButtonRecipe.variants());
|
|
@@ -495,40 +519,65 @@ var IconButton = ({ asChild, ...props }) => {
|
|
|
495
519
|
disabled: props.disabled || Boolean(variants.loading),
|
|
496
520
|
children: [
|
|
497
521
|
props.children,
|
|
498
|
-
variants.loading && /* @__PURE__ */
|
|
522
|
+
variants.loading && /* @__PURE__ */ jsx15(Spinner, { style: { position: "absolute" } })
|
|
499
523
|
]
|
|
500
524
|
}
|
|
501
525
|
);
|
|
502
526
|
};
|
|
503
527
|
|
|
528
|
+
// src/recipes/label.css.ts
|
|
529
|
+
import { createRuntimeFn as _7a46817 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
530
|
+
var labelRecipe = _7a46817({ defaultClassName: "label_labelRecipe__7n5rtz0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
531
|
+
|
|
532
|
+
// src/components/label.tsx
|
|
533
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
534
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
535
|
+
var textSize2 = {
|
|
536
|
+
1: "3",
|
|
537
|
+
2: "4"
|
|
538
|
+
};
|
|
539
|
+
var Label3 = ({ color, size = "1", weight, ...props }) => {
|
|
540
|
+
console.log(textSize2, textSize2[size], size);
|
|
541
|
+
const text = textRecipe({ color, size: textSize2[size], weight });
|
|
542
|
+
const label = labelRecipe(pick(props, ...labelRecipe.variants()));
|
|
543
|
+
return /* @__PURE__ */ jsx16(
|
|
544
|
+
LabelPrimitive.Root,
|
|
545
|
+
{
|
|
546
|
+
...props,
|
|
547
|
+
className: mergeClasses(text, label, props.className),
|
|
548
|
+
children: props.children
|
|
549
|
+
}
|
|
550
|
+
);
|
|
551
|
+
};
|
|
552
|
+
|
|
504
553
|
// src/recipes/link.css.ts
|
|
505
|
-
import { createRuntimeFn as
|
|
506
|
-
var linkRecipe =
|
|
554
|
+
import { createRuntimeFn as _7a46818 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
555
|
+
var linkRecipe = _7a46818({ 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: [] });
|
|
507
556
|
|
|
508
557
|
// src/components/link.tsx
|
|
509
558
|
import { Slot as Slot12 } from "@radix-ui/react-slot";
|
|
510
|
-
import { jsx as
|
|
559
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
511
560
|
var defaultElement11 = "a";
|
|
512
561
|
var Link = ({ asChild, ...props }) => {
|
|
513
562
|
const variants = pick(props, ...linkRecipe.variants());
|
|
514
563
|
const link = linkRecipe(variants);
|
|
515
564
|
const Comp = asChild ? Slot12 : defaultElement11;
|
|
516
|
-
return /* @__PURE__ */
|
|
565
|
+
return /* @__PURE__ */ jsx17(Comp, { ...props, className: mergeClasses(link, props.className), children: props.children });
|
|
517
566
|
};
|
|
518
567
|
|
|
519
568
|
// src/components/menu.tsx
|
|
520
|
-
import { CheckIcon as
|
|
569
|
+
import { CheckIcon as CheckIcon3 } from "@radix-ui/react-icons";
|
|
521
570
|
import * as MenuPrimitive from "@radix-ui/react-menu";
|
|
522
|
-
import { jsx as
|
|
571
|
+
import { jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
523
572
|
var Menu = ({ ...props }) => {
|
|
524
573
|
const variants = pick(props, ...menuRecipe.variants());
|
|
525
574
|
const menu = menuRecipe(variants);
|
|
526
|
-
return /* @__PURE__ */
|
|
575
|
+
return /* @__PURE__ */ jsx18(MenuPrimitive.Root, { ...props, children: /* @__PURE__ */ jsx18("div", { className: mergeClasses(menu, props.className), children: props.children }) });
|
|
527
576
|
};
|
|
528
577
|
var MenuContent = ({ ...props }) => {
|
|
529
578
|
const variants = pick(props, ...panelRecipe.variants());
|
|
530
579
|
const panel = panelRecipe(variants);
|
|
531
|
-
return /* @__PURE__ */
|
|
580
|
+
return /* @__PURE__ */ jsx18(
|
|
532
581
|
MenuPrimitive.Content,
|
|
533
582
|
{
|
|
534
583
|
...props,
|
|
@@ -540,7 +589,7 @@ var MenuContent = ({ ...props }) => {
|
|
|
540
589
|
var MenuSeparator = ({ ...props }) => {
|
|
541
590
|
const variants = pick(props, ...menuSeparatorRecipe.variants());
|
|
542
591
|
const menuSeparator = menuSeparatorRecipe(variants);
|
|
543
|
-
return /* @__PURE__ */
|
|
592
|
+
return /* @__PURE__ */ jsx18(
|
|
544
593
|
MenuPrimitive.Separator,
|
|
545
594
|
{
|
|
546
595
|
...props,
|
|
@@ -552,7 +601,7 @@ var MenuSeparator = ({ ...props }) => {
|
|
|
552
601
|
var MenuItem2 = ({ ...props }) => {
|
|
553
602
|
const variants = pick(props, ...menuItemRecipe.variants());
|
|
554
603
|
const menuItem = menuItemRecipe(variants);
|
|
555
|
-
return /* @__PURE__ */
|
|
604
|
+
return /* @__PURE__ */ jsx18(
|
|
556
605
|
MenuPrimitive.MenuItem,
|
|
557
606
|
{
|
|
558
607
|
...props,
|
|
@@ -570,7 +619,7 @@ var MenuRadioItem = ({ ...props }) => {
|
|
|
570
619
|
...props,
|
|
571
620
|
className: mergeClasses(menuItem, props.className),
|
|
572
621
|
children: [
|
|
573
|
-
/* @__PURE__ */
|
|
622
|
+
/* @__PURE__ */ jsx18(Box, { asChild: true, style: { position: "absolute", left: theme.space[1] }, children: /* @__PURE__ */ jsx18("span", { children: /* @__PURE__ */ jsx18(MenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx18(
|
|
574
623
|
Flex,
|
|
575
624
|
{
|
|
576
625
|
style: {
|
|
@@ -579,7 +628,7 @@ var MenuRadioItem = ({ ...props }) => {
|
|
|
579
628
|
alignItems: "center",
|
|
580
629
|
justifyContent: "center"
|
|
581
630
|
},
|
|
582
|
-
children: /* @__PURE__ */
|
|
631
|
+
children: /* @__PURE__ */ jsx18(
|
|
583
632
|
Box,
|
|
584
633
|
{
|
|
585
634
|
style: {
|
|
@@ -606,7 +655,7 @@ var MenuCheckboxItem2 = ({ ...props }) => {
|
|
|
606
655
|
...props,
|
|
607
656
|
className: mergeClasses(menuItem, props.className),
|
|
608
657
|
children: [
|
|
609
|
-
/* @__PURE__ */
|
|
658
|
+
/* @__PURE__ */ jsx18(Box, { asChild: true, style: { position: "absolute", left: theme.space[1] }, children: /* @__PURE__ */ jsx18("span", { children: /* @__PURE__ */ jsx18(MenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx18(CheckIcon3, {}) }) }) }),
|
|
610
659
|
props.children
|
|
611
660
|
]
|
|
612
661
|
}
|
|
@@ -615,7 +664,7 @@ var MenuCheckboxItem2 = ({ ...props }) => {
|
|
|
615
664
|
var MenuLabel2 = ({ ...props }) => {
|
|
616
665
|
const variants = pick(props, ...menuLabelRecipe.variants());
|
|
617
666
|
const menuLabel = menuLabelRecipe(variants);
|
|
618
|
-
return /* @__PURE__ */
|
|
667
|
+
return /* @__PURE__ */ jsx18(
|
|
619
668
|
MenuPrimitive.MenuLabel,
|
|
620
669
|
{
|
|
621
670
|
...props,
|
|
@@ -629,20 +678,20 @@ var MenuGroup = MenuPrimitive.Group;
|
|
|
629
678
|
|
|
630
679
|
// src/components/panel.tsx
|
|
631
680
|
import { Slot as Slot13 } from "@radix-ui/react-slot";
|
|
632
|
-
import { jsx as
|
|
681
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
633
682
|
var defaultElement12 = "div";
|
|
634
683
|
var Panel = ({ asChild, ...props }) => {
|
|
635
684
|
const variants = pick(props, ...panelRecipe.variants());
|
|
636
685
|
const panel = panelRecipe(variants);
|
|
637
686
|
const Comp = asChild ? Slot13 : defaultElement12;
|
|
638
|
-
return /* @__PURE__ */
|
|
687
|
+
return /* @__PURE__ */ jsx19(Comp, { ...props, className: mergeClasses(panel, props.className), children: props.children });
|
|
639
688
|
};
|
|
640
689
|
|
|
641
690
|
// src/components/paragraph.tsx
|
|
642
691
|
import { Slot as Slot14 } from "@radix-ui/react-slot";
|
|
643
|
-
import { jsx as
|
|
692
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
644
693
|
var defaultElement13 = "p";
|
|
645
|
-
var
|
|
694
|
+
var textSize3 = {
|
|
646
695
|
1: "3",
|
|
647
696
|
2: "4"
|
|
648
697
|
};
|
|
@@ -653,22 +702,22 @@ var Paragraph = ({
|
|
|
653
702
|
weight,
|
|
654
703
|
...props
|
|
655
704
|
}) => {
|
|
656
|
-
const text = textRecipe({ color, size:
|
|
705
|
+
const text = textRecipe({ color, size: textSize3[size], weight });
|
|
657
706
|
const Comp = asChild ? Slot14 : defaultElement13;
|
|
658
|
-
return /* @__PURE__ */
|
|
707
|
+
return /* @__PURE__ */ jsx20(Comp, { ...props, className: mergeClasses(text, props.className), children: props.children });
|
|
659
708
|
};
|
|
660
709
|
|
|
661
710
|
// src/recipes/separator.css.ts
|
|
662
|
-
import { createRuntimeFn as
|
|
663
|
-
var separatorRecipe =
|
|
711
|
+
import { createRuntimeFn as _7a46819 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
712
|
+
var separatorRecipe = _7a46819({ defaultClassName: "separator_separatorRecipe__11isr9a0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
664
713
|
|
|
665
714
|
// src/components/separator.tsx
|
|
666
715
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
667
|
-
import { jsx as
|
|
716
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
668
717
|
var Separator3 = ({ ...props }) => {
|
|
669
718
|
const variants = pick(props, ...separatorRecipe.variants());
|
|
670
719
|
const separator = separatorRecipe(variants);
|
|
671
|
-
return /* @__PURE__ */
|
|
720
|
+
return /* @__PURE__ */ jsx21(
|
|
672
721
|
SeparatorPrimitive.Root,
|
|
673
722
|
{
|
|
674
723
|
...props,
|
|
@@ -679,32 +728,32 @@ var Separator3 = ({ ...props }) => {
|
|
|
679
728
|
};
|
|
680
729
|
|
|
681
730
|
// src/recipes/skeleton.css.ts
|
|
682
|
-
import { createRuntimeFn as
|
|
683
|
-
var skeletonRecipe =
|
|
731
|
+
import { createRuntimeFn as _7a46820 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
732
|
+
var skeletonRecipe = _7a46820({ 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: [] });
|
|
684
733
|
|
|
685
734
|
// src/components/skeleton.tsx
|
|
686
735
|
import { Slot as Slot15 } from "@radix-ui/react-slot";
|
|
687
|
-
import { jsx as
|
|
736
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
688
737
|
var defaultElement14 = "div";
|
|
689
738
|
var Skeleton = ({ asChild, ...props }) => {
|
|
690
739
|
const variants = pick(props, ...skeletonRecipe.variants());
|
|
691
740
|
const skeleton = skeletonRecipe(variants);
|
|
692
741
|
const Comp = asChild ? Slot15 : defaultElement14;
|
|
693
|
-
return /* @__PURE__ */
|
|
742
|
+
return /* @__PURE__ */ jsx22(Comp, { ...props, className: mergeClasses(skeleton, props.className), children: props.children });
|
|
694
743
|
};
|
|
695
744
|
|
|
696
745
|
// src/recipes/switch.css.ts
|
|
697
|
-
import { createRuntimeFn as
|
|
698
|
-
var switchRecipe =
|
|
699
|
-
var switchThumbRecipe =
|
|
746
|
+
import { createRuntimeFn as _7a46821 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
747
|
+
var switchRecipe = _7a46821({ defaultClassName: "switch_switchRecipe__6op4100", variantClassNames: { size: { "1": "switch_switchRecipe_size_1__6op4101", "2": "switch_switchRecipe_size_2__6op4102" } }, defaultVariants: { size: "1" }, compoundVariants: [] });
|
|
748
|
+
var switchThumbRecipe = _7a46821({ defaultClassName: "switch_switchThumbRecipe__6op4103", variantClassNames: { size: { "1": "switch_switchThumbRecipe_size_1__6op4104", "2": "switch_switchThumbRecipe_size_2__6op4105" } }, defaultVariants: { size: "1" }, compoundVariants: [] });
|
|
700
749
|
|
|
701
750
|
// src/components/switch.tsx
|
|
702
751
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
703
|
-
import { jsx as
|
|
752
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
704
753
|
var SwitchThumb = ({ ...props }) => {
|
|
705
754
|
const variants = pick(props, ...switchThumbRecipe.variants());
|
|
706
755
|
const switchThumb = switchThumbRecipe(variants);
|
|
707
|
-
return /* @__PURE__ */
|
|
756
|
+
return /* @__PURE__ */ jsx23(
|
|
708
757
|
SwitchPrimitive.Thumb,
|
|
709
758
|
{
|
|
710
759
|
...props,
|
|
@@ -715,40 +764,40 @@ var SwitchThumb = ({ ...props }) => {
|
|
|
715
764
|
var Switch = ({ ...props }) => {
|
|
716
765
|
const variants = pick(props, ...switchRecipe.variants());
|
|
717
766
|
const _switch = switchRecipe(variants);
|
|
718
|
-
return /* @__PURE__ */
|
|
767
|
+
return /* @__PURE__ */ jsx23(
|
|
719
768
|
SwitchPrimitive.Root,
|
|
720
769
|
{
|
|
721
770
|
...props,
|
|
722
771
|
className: mergeClasses(_switch, props.className),
|
|
723
|
-
children: /* @__PURE__ */
|
|
772
|
+
children: /* @__PURE__ */ jsx23(SwitchThumb, { size: variants.size })
|
|
724
773
|
}
|
|
725
774
|
);
|
|
726
775
|
};
|
|
727
776
|
|
|
728
777
|
// src/recipes/text-field.css.ts
|
|
729
|
-
import { createRuntimeFn as
|
|
730
|
-
var textFieldRecipe =
|
|
778
|
+
import { createRuntimeFn as _7a46822 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
779
|
+
var textFieldRecipe = _7a46822({ 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: [] });
|
|
731
780
|
|
|
732
781
|
// src/components/text-field.tsx
|
|
733
782
|
import { Slot as Slot16 } from "@radix-ui/react-slot";
|
|
734
|
-
import { jsx as
|
|
783
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
735
784
|
var defaultElement15 = "input";
|
|
736
785
|
var TextField = ({ asChild, ...props }) => {
|
|
737
786
|
const variants = pick(props, ...textFieldRecipe.variants());
|
|
738
787
|
const textField = textFieldRecipe(variants);
|
|
739
788
|
const Comp = asChild ? Slot16 : defaultElement15;
|
|
740
|
-
return /* @__PURE__ */
|
|
789
|
+
return /* @__PURE__ */ jsx24(Comp, { ...props, className: mergeClasses(textField, props.className), children: props.children });
|
|
741
790
|
};
|
|
742
791
|
|
|
743
792
|
// src/components/text.tsx
|
|
744
793
|
import { Slot as Slot17 } from "@radix-ui/react-slot";
|
|
745
|
-
import { jsx as
|
|
794
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
746
795
|
var defaultElement16 = "span";
|
|
747
796
|
var Text = ({ asChild, ...props }) => {
|
|
748
797
|
const variants = pick(props, ...textRecipe.variants());
|
|
749
798
|
const text = textRecipe(variants);
|
|
750
799
|
const Comp = asChild ? Slot17 : defaultElement16;
|
|
751
|
-
return /* @__PURE__ */
|
|
800
|
+
return /* @__PURE__ */ jsx25(Comp, { ...props, className: mergeClasses(text, props.className), children: props.children });
|
|
752
801
|
};
|
|
753
802
|
|
|
754
803
|
// src/sprinkles/sprinkles.css.ts
|
|
@@ -760,6 +809,7 @@ export {
|
|
|
760
809
|
Box,
|
|
761
810
|
Button,
|
|
762
811
|
Card,
|
|
812
|
+
Checkbox,
|
|
763
813
|
Container,
|
|
764
814
|
DropdownMenu,
|
|
765
815
|
DropdownMenuCheckboxItem,
|
|
@@ -781,6 +831,7 @@ export {
|
|
|
781
831
|
Grid,
|
|
782
832
|
Heading,
|
|
783
833
|
IconButton,
|
|
834
|
+
Label3 as Label,
|
|
784
835
|
Link,
|
|
785
836
|
Menu,
|
|
786
837
|
MenuCheckboxItem2 as MenuCheckboxItem,
|