@nayhoo/ui 0.4.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  darkTheme,
3
3
  lightTheme,
4
4
  theme
5
- } from "./chunk-CI5TDSK3.mjs";
5
+ } from "./chunk-2IKFUUSU.mjs";
6
6
 
7
7
  // src/animations/hide.css.ts
8
8
  var hide = "hide_hide__1cfeb4j0";
@@ -181,7 +181,7 @@ var Spinner = ({ asChild, ...props }) => {
181
181
 
182
182
  // src/recipes/button.css.ts
183
183
  import { createRuntimeFn as _7a4686 } from "@vanilla-extract/recipes/createRuntimeFn";
184
- var buttonRecipe = _7a4686({ defaultClassName: "button_buttonRecipe__a5gfcc0", variantClassNames: { color: { primary: "button_buttonRecipe_color_primary__a5gfcc1", secondary: "button_buttonRecipe_color_secondary__a5gfcc2", error: "button_buttonRecipe_color_error__a5gfcc3" }, fullWidth: { true: "button_buttonRecipe_fullWidth_true__a5gfcc4" }, loading: { true: "button_buttonRecipe_loading_true__a5gfcc5" }, size: { "1": "button_buttonRecipe_size_1__a5gfcc6", "2": "button_buttonRecipe_size_2__a5gfcc7", "3": "button_buttonRecipe_size_3__a5gfcc8" }, shape: { square: "button_buttonRecipe_shape_square__a5gfcc9", pill: "button_buttonRecipe_shape_pill__a5gfcca" }, variant: { "default": "button_buttonRecipe_variant_default__a5gfccb", outline: "button_buttonRecipe_variant_outline__a5gfccc", ghost: "button_buttonRecipe_variant_ghost__a5gfccd" } }, defaultVariants: { color: "primary", size: "2", variant: "default" }, compoundVariants: [[{ variant: "default", color: "primary" }, "button_buttonRecipe_compound_0__a5gfcce"], [{ variant: "default", color: "secondary" }, "button_buttonRecipe_compound_1__a5gfccf"], [{ variant: "default", color: "error" }, "button_buttonRecipe_compound_2__a5gfccg"]] });
184
+ var buttonRecipe = _7a4686({ defaultClassName: "button_buttonRecipe__a5gfcc0", variantClassNames: { fullWidth: { true: "button_buttonRecipe_fullWidth_true__a5gfcc1" }, loading: { true: "button_buttonRecipe_loading_true__a5gfcc2" }, size: { "1": "button_buttonRecipe_size_1__a5gfcc3", "2": "button_buttonRecipe_size_2__a5gfcc4", "3": "button_buttonRecipe_size_3__a5gfcc5" }, shape: { square: "button_buttonRecipe_shape_square__a5gfcc6", pill: "button_buttonRecipe_shape_pill__a5gfcc7" }, variant: { primary: "button_buttonRecipe_variant_primary__a5gfcc8", secondary: "button_buttonRecipe_variant_secondary__a5gfcc9", outline: "button_buttonRecipe_variant_outline__a5gfcca", ghost: "button_buttonRecipe_variant_ghost__a5gfccb", error: "button_buttonRecipe_variant_error__a5gfccc", success: "button_buttonRecipe_variant_success__a5gfccd" } }, defaultVariants: { size: "2", variant: "primary" }, compoundVariants: [] });
185
185
 
186
186
  // src/components/button.tsx
187
187
  import { Slot as Slot5 } from "@radix-ui/react-slot";
@@ -695,8 +695,8 @@ var Skeleton = ({ asChild, ...props }) => {
695
695
 
696
696
  // src/recipes/switch.css.ts
697
697
  import { createRuntimeFn as _7a46819 } from "@vanilla-extract/recipes/createRuntimeFn";
698
- var switchRecipe = _7a46819({ defaultClassName: "switch_switchRecipe__6op4103", variantClassNames: { size: { "1": "switch_switchRecipe_size_1__6op4104", "2": "switch_switchRecipe_size_2__6op4105" } }, defaultVariants: { size: "1" }, compoundVariants: [] });
699
- var switchThumbRecipe = _7a46819({ defaultClassName: "switch_switchThumbRecipe__6op4100", variantClassNames: { size: { "1": "switch_switchThumbRecipe_size_1__6op4101", "2": "switch_switchThumbRecipe_size_2__6op4102" } }, defaultVariants: { size: "1" }, compoundVariants: [] });
698
+ var switchRecipe = _7a46819({ defaultClassName: "switch_switchRecipe__6op4100", variantClassNames: { size: { "1": "switch_switchRecipe_size_1__6op4101", "2": "switch_switchRecipe_size_2__6op4102" } }, defaultVariants: { size: "1" }, compoundVariants: [] });
699
+ var switchThumbRecipe = _7a46819({ defaultClassName: "switch_switchThumbRecipe__6op4103", variantClassNames: { size: { "1": "switch_switchThumbRecipe_size_1__6op4104", "2": "switch_switchThumbRecipe_size_2__6op4105" } }, defaultVariants: { size: "1" }, compoundVariants: [] });
700
700
 
701
701
  // src/components/switch.tsx
702
702
  import * as SwitchPrimitive from "@radix-ui/react-switch";
@@ -720,7 +720,7 @@ var Switch = ({ ...props }) => {
720
720
  {
721
721
  ...props,
722
722
  className: mergeClasses(_switch, props.className),
723
- children: /* @__PURE__ */ jsx21(SwitchThumb, { size: props.size })
723
+ children: /* @__PURE__ */ jsx21(SwitchThumb, { size: variants.size })
724
724
  }
725
725
  );
726
726
  };