@novie/ui 1.0.1 → 1.0.3

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
@@ -5082,7 +5082,7 @@ function gi({ className: e, inputSize: t = "sm", clearable: n = !0, onClear: r,
5082
5082
  type: "button",
5083
5083
  onClick: y,
5084
5084
  disabled: c,
5085
- className: w("inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-full", "bg-foreground/5 text-muted-foreground transition-colors hover:bg-foreground/10 hover:text-foreground", "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"),
5085
+ className: w("inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-full disabled:pointer-events-none disabled:cursor-not-allowed", "bg-foreground/5 text-muted-foreground transition-colors hover:bg-foreground/10 hover:text-foreground", "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"),
5086
5086
  "aria-label": "Clear search",
5087
5087
  children: /* @__PURE__ */ i(re, { className: "h-3.5 w-3.5" })
5088
5088
  })
@@ -5365,14 +5365,14 @@ function Hi({ ...e }) {
5365
5365
  function Ui({ className: e, ...t }) {
5366
5366
  return /* @__PURE__ */ i(x.Trigger, {
5367
5367
  "data-slot": "dialog-trigger",
5368
- className: e,
5368
+ className: w("cursor-pointer", e),
5369
5369
  ...t
5370
5370
  });
5371
5371
  }
5372
5372
  function Wi({ className: e, ...t }) {
5373
5373
  return /* @__PURE__ */ i(x.Close, {
5374
5374
  "data-slot": "dialog-close",
5375
- className: e,
5375
+ className: w("cursor-pointer disabled:cursor-not-allowed", e),
5376
5376
  ...t
5377
5377
  });
5378
5378
  }
@@ -5382,11 +5382,11 @@ function Gi({ className: e, children: t, ...n }) {
5382
5382
  className: w("fixed inset-0 z-50 bg-black/80", "data-[state=open]:animate-in data-[state=open]:fade-in-0", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0")
5383
5383
  }), /* @__PURE__ */ a(x.Content, {
5384
5384
  "data-slot": "dialog-content",
5385
- className: w("fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-border bg-background p-6 shadow-lg duration-200", "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]", e),
5385
+ className: w("fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-border bg-background p-6 shadow-lg duration-200", "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", e),
5386
5386
  ...n,
5387
5387
  children: [t, /* @__PURE__ */ a(x.Close, {
5388
5388
  "data-slot": "dialog-close-button",
5389
- className: "absolute top-6 right-6 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
5389
+ className: "absolute top-6 right-6 cursor-pointer rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
5390
5390
  children: [/* @__PURE__ */ i(re, { className: "h-6 w-6" }), /* @__PURE__ */ i("span", {
5391
5391
  className: "sr-only",
5392
5392
  children: "Close"
@@ -9949,7 +9949,7 @@ function Kg({ ...e }) {
9949
9949
  function qg({ className: e, ...t }) {
9950
9950
  return /* @__PURE__ */ i(Rg, {
9951
9951
  "data-slot": "alert-dialog-trigger",
9952
- className: e,
9952
+ className: w("cursor-pointer", e),
9953
9953
  ...t
9954
9954
  });
9955
9955
  }
@@ -9966,7 +9966,7 @@ function Yg({ className: e, ...t }) {
9966
9966
  function Xg({ className: e, children: t, ...n }) {
9967
9967
  return /* @__PURE__ */ a(Jg, { children: [/* @__PURE__ */ i(Yg, {}), /* @__PURE__ */ i(Vg, {
9968
9968
  "data-slot": "alert-dialog-content",
9969
- className: w("fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] overflow-hidden rounded-lg border border-border bg-background shadow-lg duration-200", "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]", e),
9969
+ className: w("fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] overflow-hidden rounded-lg border border-border bg-background shadow-lg duration-200", "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", e),
9970
9970
  ...n,
9971
9971
  children: t
9972
9972
  })] });
@@ -10302,7 +10302,7 @@ function ev({ className: e, children: t, ...n }) {
10302
10302
  className: "flex",
10303
10303
  children: /* @__PURE__ */ a(Y_, {
10304
10304
  "data-slot": "accordion-trigger",
10305
- className: w("flex flex-1 items-center justify-between p-4 text-label font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", e),
10305
+ className: w("flex flex-1 cursor-pointer items-center justify-between p-4 text-label font-medium transition-all hover:underline disabled:cursor-not-allowed data-[disabled]:cursor-not-allowed [&[data-state=open]>svg]:rotate-180", e),
10306
10306
  ...n,
10307
10307
  children: [t, /* @__PURE__ */ i(yt, { className: "h-6 w-6 shrink-0 text-muted-foreground transition-transform duration-200" })]
10308
10308
  })
@@ -10837,7 +10837,7 @@ function Kv({ className: e, selected: t, onSelect: n, month: r, onMonthChange: s
10837
10837
  "data-slot": "calendar-nav-prev",
10838
10838
  type: "button",
10839
10839
  onClick: () => y(-1),
10840
- className: "inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground hover:text-foreground focus:outline-hidden focus:ring-2 focus:ring-ring",
10840
+ className: "inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:text-foreground focus:outline-hidden focus:ring-2 focus:ring-ring",
10841
10841
  "aria-label": "Previous month",
10842
10842
  children: /* @__PURE__ */ i(bt, { className: "h-5 w-5" })
10843
10843
  }),
@@ -10850,7 +10850,7 @@ function Kv({ className: e, selected: t, onSelect: n, month: r, onMonthChange: s
10850
10850
  "data-slot": "calendar-nav-next",
10851
10851
  type: "button",
10852
10852
  onClick: () => y(1),
10853
- className: "inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground hover:text-foreground focus:outline-hidden focus:ring-2 focus:ring-ring",
10853
+ className: "inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:text-foreground focus:outline-hidden focus:ring-2 focus:ring-ring",
10854
10854
  "aria-label": "Next month",
10855
10855
  children: /* @__PURE__ */ i(xt, { className: "h-5 w-5" })
10856
10856
  })
@@ -10871,7 +10871,7 @@ function Kv({ className: e, selected: t, onSelect: n, month: r, onMonthChange: s
10871
10871
  type: "button",
10872
10872
  disabled: !r,
10873
10873
  onClick: () => r && b(e.day),
10874
- className: w("flex h-10 w-10 items-center justify-center rounded-full text-sm transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring", !r && "pointer-events-none text-muted-foreground/40", r && !o && !s && "text-foreground hover:bg-accent", s && !o && "font-semibold text-foreground", o && "bg-primary text-primary-foreground font-medium"),
10874
+ className: w("flex h-10 w-10 cursor-pointer items-center justify-center rounded-full text-sm transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring disabled:pointer-events-none", !r && "pointer-events-none text-muted-foreground/40", r && !o && !s && "text-foreground hover:bg-accent", s && !o && "font-semibold text-foreground", o && "bg-primary text-primary-foreground font-medium"),
10875
10875
  "aria-selected": o || void 0,
10876
10876
  "aria-current": s ? "date" : void 0,
10877
10877
  children: e.day
@@ -10972,7 +10972,7 @@ function Yv({ className: e, variant: t = "default", filled: n = !1, onDismiss: r
10972
10972
  "data-slot": "alert-dismiss",
10973
10973
  type: "button",
10974
10974
  onClick: r,
10975
- className: "shrink-0 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",
10975
+ className: "shrink-0 cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",
10976
10976
  "aria-label": "Dismiss",
10977
10977
  children: /* @__PURE__ */ i(re, { className: "h-6 w-6" })
10978
10978
  }) : null]
@@ -11032,7 +11032,7 @@ function ty({ className: e, variant: t = "default", onClose: n, children: r, ...
11032
11032
  "data-slot": "toast-close",
11033
11033
  type: "button",
11034
11034
  onClick: n,
11035
- className: w("absolute right-3 top-5 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2", t === "destructive" && "text-destructive"),
11035
+ className: w("absolute right-3 top-5 cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2", t === "destructive" && "text-destructive"),
11036
11036
  "aria-label": "Close",
11037
11037
  children: /* @__PURE__ */ i(re, { className: "h-6 w-6" })
11038
11038
  })]
@@ -11103,7 +11103,7 @@ function cy({ className: e, ...t }) {
11103
11103
  "data-slot": "notification-close",
11104
11104
  type: "button",
11105
11105
  "aria-label": "Close notification",
11106
- className: w("absolute right-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", e),
11106
+ className: w("absolute right-4 top-4 cursor-pointer rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed", e),
11107
11107
  ...t,
11108
11108
  children: [/* @__PURE__ */ i(re, { className: "h-4 w-4" }), /* @__PURE__ */ i("span", {
11109
11109
  className: "sr-only",
@@ -11307,7 +11307,7 @@ function Ay({ className: e, active: t = !1, children: n, ...r }) {
11307
11307
  return /* @__PURE__ */ i("button", {
11308
11308
  "data-slot": "sidebar-menu-button",
11309
11309
  "data-active": t || void 0,
11310
- className: w("flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm font-medium text-foreground transition-colors", "hover:bg-background/50", "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring", t && "bg-background text-foreground shadow-xs", !a && "justify-center px-0", e),
11310
+ className: w("flex w-full cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-sm font-medium text-foreground transition-colors disabled:pointer-events-none disabled:cursor-not-allowed", "hover:bg-background/50", "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring", t && "bg-background text-foreground shadow-xs", !a && "justify-center px-0", e),
11311
11311
  ...r,
11312
11312
  children: n
11313
11313
  });