@glasshome/ui 0.5.0 → 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.
@@ -3,8 +3,7 @@ import { type VariantProps } from "cva";
3
3
  import { type ComponentProps } from "solid-js";
4
4
  declare const buttonVariants: (props?: ({
5
5
  variant?: "link" | "default" | "gradient" | "destructive" | "outline" | "secondary" | "ghost" | undefined;
6
- size?: "default" | "sm" | "lg" | "icon" | undefined;
7
- shape?: "rounded" | "pill" | undefined;
6
+ size?: "default" | "sm" | "lg" | "icon" | "none" | undefined;
8
7
  } & ({
9
8
  class?: import("cva").ClassValue;
10
9
  className?: never;
@@ -3567,7 +3567,7 @@ var za = Object.assign(Fa, {
3567
3567
  cx: n
3568
3568
  };
3569
3569
  })(), Wa = Ha({
3570
- base: "inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
3570
+ base: "inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-full font-medium text-sm outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
3571
3571
  variants: {
3572
3572
  variant: {
3573
3573
  default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
@@ -3580,35 +3580,29 @@ var za = Object.assign(Fa, {
3580
3580
  },
3581
3581
  size: {
3582
3582
  default: "h-9 px-4 py-2 has-[>svg]:px-3",
3583
- sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
3584
- lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
3585
- icon: "size-9 p-2"
3586
- },
3587
- shape: {
3588
- rounded: "rounded-md",
3589
- pill: "rounded-full"
3583
+ sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
3584
+ lg: "h-10 px-6 has-[>svg]:px-4",
3585
+ icon: "size-9 p-2",
3586
+ none: ""
3590
3587
  }
3591
3588
  },
3592
3589
  defaultVariants: {
3593
3590
  variant: "default",
3594
- size: "default",
3595
- shape: "rounded"
3591
+ size: "default"
3596
3592
  }
3597
3593
  });
3598
3594
  function Ga(e) {
3599
3595
  let [n, r] = w(e, [
3600
3596
  "class",
3601
3597
  "variant",
3602
- "size",
3603
- "shape"
3598
+ "size"
3604
3599
  ]);
3605
3600
  return j(qn, R({
3606
3601
  "data-slot": "button",
3607
3602
  get class() {
3608
3603
  return t(Wa({
3609
3604
  variant: n.variant,
3610
- size: n.size,
3611
- shape: n.shape
3605
+ size: n.size
3612
3606
  }), n.class);
3613
3607
  }
3614
3608
  }, r));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glasshome/ui",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "SolidJS component library for GlassHome, built on Kobalte",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",