@novie/ui 0.1.26 → 0.1.28

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.js CHANGED
@@ -3788,7 +3788,7 @@ var Tn = n("inline-flex shrink-0 items-center justify-center whitespace-nowrap f
3788
3788
  variant: {
3789
3789
  default: "bg-[hsl(var(--button-brand-default))] text-white hover:bg-[hsl(var(--button-brand-hover))] active:bg-[hsl(var(--button-brand-pressed))] disabled:bg-[hsl(var(--button-primary-bg-disabled))] disabled:text-[hsl(var(--button-primary-text-disabled))]",
3790
3790
  secondary: "bg-primary text-primary-foreground hover:bg-[hsl(var(--button-secondary-filled-hover))] disabled:bg-[hsl(var(--button-primary-bg-disabled))] disabled:text-[hsl(var(--button-text-disabled))]",
3791
- outline: "border-[1.5px] border-primary bg-transparent text-primary hover:bg-accent disabled:border-[hsl(var(--button-primary-bg-disabled))] disabled:text-[hsl(var(--button-text-disabled))]",
3791
+ outline: "border-[1.5px] border-primary bg-transparent text-primary hover:bg-surface-inset disabled:border-[hsl(var(--button-primary-bg-disabled))] disabled:text-[hsl(var(--button-text-disabled))]",
3792
3792
  danger: "bg-destructive text-destructive-foreground hover:bg-[hsl(var(--button-danger-hover))] disabled:bg-[hsl(var(--button-danger-bg-disabled))] disabled:text-[hsl(var(--button-danger-text-disabled))]",
3793
3793
  ghost: "text-muted-foreground hover:bg-page-secondary disabled:text-[hsl(var(--button-ghost-text-disabled))]",
3794
3794
  link: "text-foreground underline underline-offset-4 hover:text-muted-foreground disabled:text-[hsl(var(--button-text-disabled))] h-auto p-0",
@@ -3842,9 +3842,9 @@ var Tn = n("inline-flex shrink-0 items-center justify-center whitespace-nowrap f
3842
3842
  size: "default"
3843
3843
  }
3844
3844
  });
3845
- function En({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, loading: o = !1, disabled: s, children: c, ...l }) {
3846
- let u = r ? d : "button", f = s || o;
3847
- return /* @__PURE__ */ a(u, {
3845
+ function En({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, loading: a = !1, disabled: o, children: s, ...c }) {
3846
+ let l = r ? d : "button", u = o || a, f = n === "xl" || n === "icon-xl" ? "!h-[25px] !w-[25px]" : n === "sm" || n === "icon-sm" ? "!h-4 !w-4" : "!h-5 !w-5";
3847
+ return /* @__PURE__ */ i(l, {
3848
3848
  "data-slot": "button",
3849
3849
  "data-variant": t,
3850
3850
  "data-size": n,
@@ -3853,10 +3853,10 @@ function En({ className: e, variant: t = "default", size: n = "default", asChild
3853
3853
  size: n,
3854
3854
  className: e
3855
3855
  })),
3856
- disabled: f,
3857
- "aria-busy": o || void 0,
3858
- ...l,
3859
- children: [o && /* @__PURE__ */ i(ot, { className: "animate-spin" }), c]
3856
+ disabled: u,
3857
+ "aria-busy": a || void 0,
3858
+ ...c,
3859
+ children: a ? /* @__PURE__ */ i(ot, { className: C("animate-spin", f) }) : s
3860
3860
  });
3861
3861
  }
3862
3862
  //#endregion
@@ -9754,7 +9754,7 @@ function ng({ className: e, inset: t, children: n, ...r }) {
9754
9754
  function rg({ className: e, ...t }) {
9755
9755
  return /* @__PURE__ */ i(Yh, {
9756
9756
  "data-slot": "dropdown-menu-sub-content",
9757
- className: C("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-md", "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", "data-[side=bottom]:slide-in-from-top-2", "data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2", "data-[side=top]:slide-in-from-bottom-2", e),
9757
+ className: C("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-page-secondary p-1 text-popover-foreground shadow-md", "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", "data-[side=bottom]:slide-in-from-top-2", "data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2", "data-[side=top]:slide-in-from-bottom-2", e),
9758
9758
  ...t
9759
9759
  });
9760
9760
  }
@@ -9762,7 +9762,7 @@ function ig({ className: e, sideOffset: t = 4, ...n }) {
9762
9762
  return /* @__PURE__ */ i(Lh, { children: /* @__PURE__ */ i(Rh, {
9763
9763
  "data-slot": "dropdown-menu-content",
9764
9764
  sideOffset: t,
9765
- className: C("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-md", "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", "data-[side=bottom]:slide-in-from-top-2", "data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2", "data-[side=top]:slide-in-from-bottom-2", e),
9765
+ className: C("z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-page-secondary p-1 text-popover-foreground shadow-md", "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", "data-[side=bottom]:slide-in-from-top-2", "data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2", "data-[side=top]:slide-in-from-bottom-2", e),
9766
9766
  ...n
9767
9767
  }) });
9768
9768
  }