@nayhoo/ui 0.4.2 → 0.5.1
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-CI5TDSK3.mjs → chunk-2IKFUUSU.mjs} +2 -2
- package/dist/chunk-2IKFUUSU.mjs.map +1 -0
- package/dist/index.css +516 -484
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +91 -38
- package/dist/index.d.ts +91 -38
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/providers/index.css +276 -234
- package/dist/providers/index.css.map +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/index.js.map +1 -1
- package/dist/providers/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-CI5TDSK3.mjs.map +0 -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-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: {
|
|
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: "
|
|
699
|
-
var switchThumbRecipe = _7a46819({ defaultClassName: "
|
|
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:
|
|
723
|
+
children: /* @__PURE__ */ jsx21(SwitchThumb, { size: variants.size })
|
|
724
724
|
}
|
|
725
725
|
);
|
|
726
726
|
};
|