@nayhoo/ui 0.3.0 → 0.3.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/index.d.ts CHANGED
@@ -47,7 +47,7 @@ declare const statusRecipe: _vanilla_extract_recipes.RuntimeFn<{
47
47
  }>;
48
48
  type StatusVariants = NonNullable<RecipeVariants<typeof statusRecipe>>;
49
49
 
50
- declare const Avatar: ({ alt, fallback, shape, size, src, status, style, ...props }: AvatarPrimitive.AvatarProps & {
50
+ declare const Avatar: ({ alt, fallback, inactive, interactive, shape, size, src, status, style, ...props }: AvatarPrimitive.AvatarProps & {
51
51
  size?: "1" | "2" | "3" | "4" | "5" | "6" | undefined;
52
52
  shape?: "circle" | "square" | undefined;
53
53
  inactive?: boolean | undefined;
@@ -124,12 +124,6 @@ declare const buttonRecipe: _vanilla_extract_recipes.RuntimeFn<{
124
124
  color: "transparent !important";
125
125
  };
126
126
  };
127
- shape: {
128
- square: {};
129
- pill: {
130
- borderRadius: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
131
- };
132
- };
133
127
  size: {
134
128
  "1": {
135
129
  borderRadius: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
@@ -156,6 +150,12 @@ declare const buttonRecipe: _vanilla_extract_recipes.RuntimeFn<{
156
150
  lineHeight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
157
151
  };
158
152
  };
153
+ shape: {
154
+ square: {};
155
+ pill: {
156
+ borderRadius: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
157
+ };
158
+ };
159
159
  variant: {
160
160
  default: {
161
161
  selectors: {
@@ -849,7 +849,7 @@ declare const Spinner: ({ asChild, size, ...props }: SpinnerProps) => react_jsx_
849
849
 
850
850
  declare const defaultElement$2 = "div";
851
851
  type statusProps = ComponentProps<typeof defaultElement$2, StatusVariants>;
852
- declare const Status: ({ asChild, ...props }: statusProps) => react_jsx_runtime.JSX.Element;
852
+ declare const Status: ({ asChild, size, variant, ...props }: statusProps) => react_jsx_runtime.JSX.Element;
853
853
 
854
854
  declare const switchRecipe: _vanilla_extract_recipes.RuntimeFn<{
855
855
  size: {
package/dist/index.js CHANGED
@@ -134,8 +134,8 @@ var statusRecipe = (0, import_createRuntimeFn3.createRuntimeFn)({ defaultClassNa
134
134
  var import_react_slot2 = require("@radix-ui/react-slot");
135
135
  var import_jsx_runtime2 = require("react/jsx-runtime");
136
136
  var defaultElement2 = "div";
137
- var Status = ({ asChild, ...props }) => {
138
- const status = statusRecipe({});
137
+ var Status = ({ asChild, size, variant, ...props }) => {
138
+ const status = statusRecipe({ size, variant });
139
139
  const Comp = asChild ? import_react_slot2.Slot : defaultElement2;
140
140
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Comp, { ...props, className: mergeClasses(status, props.className), children: props.children });
141
141
  };
@@ -171,6 +171,8 @@ var AvatarFallback = ({
171
171
  var Avatar2 = ({
172
172
  alt,
173
173
  fallback,
174
+ inactive,
175
+ interactive,
174
176
  shape,
175
177
  size,
176
178
  src,
@@ -178,7 +180,7 @@ var Avatar2 = ({
178
180
  style,
179
181
  ...props
180
182
  }) => {
181
- const avatar = avatarRecipe({ shape, size });
183
+ const avatar = avatarRecipe({ inactive, interactive, shape, size });
182
184
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
183
185
  Box,
184
186
  {
@@ -262,7 +264,7 @@ var Spinner = ({ asChild, size, ...props }) => {
262
264
 
263
265
  // src/recipes/button.css.ts
264
266
  var import_createRuntimeFn6 = require("@vanilla-extract/recipes/createRuntimeFn");
265
- var buttonRecipe = (0, import_createRuntimeFn6.createRuntimeFn)({ defaultClassName: "a5gfcc0", variantClassNames: { color: { primary: "a5gfcc1", secondary: "a5gfcc2", error: "a5gfcc3" }, fullWidth: { true: "a5gfcc4" }, loading: { true: "a5gfcc5" }, shape: { square: "a5gfcc6", pill: "a5gfcc7" }, size: { "1": "a5gfcc8", "2": "a5gfcc9", "3": "a5gfcca" }, variant: { "default": "a5gfccb", outline: "a5gfccc", ghost: "a5gfccd" } }, defaultVariants: { color: "primary", size: "2", variant: "default" }, compoundVariants: [[{ variant: "default", color: "primary" }, "a5gfcce"], [{ variant: "default", color: "secondary" }, "a5gfccf"], [{ variant: "default", color: "error" }, "a5gfccg"]] });
267
+ var buttonRecipe = (0, import_createRuntimeFn6.createRuntimeFn)({ defaultClassName: "a5gfcc0", variantClassNames: { color: { primary: "a5gfcc1", secondary: "a5gfcc2", error: "a5gfcc3" }, fullWidth: { true: "a5gfcc4" }, loading: { true: "a5gfcc5" }, size: { "1": "a5gfcc6", "2": "a5gfcc7", "3": "a5gfcc8" }, shape: { square: "a5gfcc9", pill: "a5gfcca" }, variant: { "default": "a5gfccb", outline: "a5gfccc", ghost: "a5gfccd" } }, defaultVariants: { color: "primary", size: "2", variant: "default" }, compoundVariants: [[{ variant: "default", color: "primary" }, "a5gfcce"], [{ variant: "default", color: "secondary" }, "a5gfccf"], [{ variant: "default", color: "error" }, "a5gfccg"]] });
266
268
 
267
269
  // src/components/button.tsx
268
270
  var import_react_slot5 = require("@radix-ui/react-slot");