@novie/ui 1.0.2 → 1.0.4

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
@@ -5059,10 +5059,10 @@ function gi({ className: e, inputSize: t = "sm", clearable: n = !0, onClear: r,
5059
5059
  }, b = String(_).length > 0, x = n && b && !c && !s, S = s && !c;
5060
5060
  return /* @__PURE__ */ a("div", {
5061
5061
  "data-slot": "search-input",
5062
- className: w("flex items-center gap-2 rounded-full border border-input bg-background px-3", "transition-colors", t === "sm" && "h-8", t === "default" && "h-10", c && "cursor-not-allowed bg-secondary opacity-60", e),
5062
+ className: w("flex w-80 max-w-full items-center gap-2 rounded-full border border-transparent bg-background px-2", "transition-colors focus-within:border-input", (b || S) && "border-input", t === "sm" && "h-8", t === "default" && "h-10", t === "default" && "pl-3", c && "cursor-not-allowed border-transparent bg-interactive-disabled", e),
5063
5063
  children: [
5064
5064
  /* @__PURE__ */ i("span", {
5065
- className: w("inline-flex shrink-0 [&_svg]:h-[18px] [&_svg]:w-[18px]", c ? "text-muted-foreground/50" : "text-muted-foreground"),
5065
+ className: "inline-flex size-[22.8px] shrink-0 items-center justify-center text-foreground [&_svg]:h-[16.8px] [&_svg]:w-[16.8px]",
5066
5066
  children: /* @__PURE__ */ i(ye, {})
5067
5067
  }),
5068
5068
  /* @__PURE__ */ i(On, {
@@ -5071,20 +5071,24 @@ function gi({ className: e, inputSize: t = "sm", clearable: n = !0, onClear: r,
5071
5071
  value: _,
5072
5072
  onChange: v,
5073
5073
  placeholder: f,
5074
- className: w("h-full border-0 bg-transparent px-0 text-[18px] leading-7 shadow-none ring-0 ring-offset-0", "focus-visible:shadow-none focus-visible:ring-0 focus-visible:ring-offset-0", "placeholder:text-muted-foreground", "text-foreground", "[&::-webkit-search-cancel-button]:hidden [&::-webkit-search-decoration]:hidden"),
5074
+ className: w("h-5 min-w-0 flex-1 border-0 bg-transparent px-0 py-0 text-input-text text-foreground shadow-none ring-0 ring-offset-0", "focus-visible:shadow-none focus-visible:ring-0 focus-visible:ring-offset-0", "placeholder:text-[hsl(var(--text-primary-secondary))] focus:placeholder:text-foreground", "disabled:text-[hsl(var(--text-primary-tertiary))] disabled:placeholder:text-[hsl(var(--text-primary-tertiary))] disabled:opacity-100", "[&::-webkit-search-cancel-button]:hidden [&::-webkit-search-decoration]:hidden"),
5075
5075
  ...p
5076
5076
  }),
5077
5077
  S && /* @__PURE__ */ i("span", {
5078
- className: "inline-flex shrink-0 animate-spin text-muted-foreground [&_svg]:h-4 [&_svg]:w-4",
5078
+ className: "inline-flex size-6 shrink-0 animate-spin items-center justify-center text-foreground [&_svg]:h-6 [&_svg]:w-6",
5079
5079
  children: /* @__PURE__ */ i(Qt, {})
5080
5080
  }),
5081
- x && /* @__PURE__ */ i("button", {
5081
+ x && /* @__PURE__ */ a("button", {
5082
5082
  type: "button",
5083
+ "data-slot": "search-input-clear",
5083
5084
  onClick: y,
5084
5085
  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"),
5086
+ className: w("relative inline-flex h-6 w-6 shrink-0 cursor-pointer appearance-none items-center justify-center overflow-hidden rounded-full disabled:pointer-events-none disabled:cursor-not-allowed", "text-foreground transition-colors hover:text-foreground", "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"),
5086
5087
  "aria-label": "Clear search",
5087
- children: /* @__PURE__ */ i(re, { className: "h-3.5 w-3.5" })
5088
+ children: [/* @__PURE__ */ i("span", {
5089
+ "data-slot": "search-input-clear-background",
5090
+ className: "absolute inset-0 rounded-full bg-muted transition-opacity"
5091
+ }), /* @__PURE__ */ i(re, { className: "relative h-4 w-4" })]
5088
5092
  })
5089
5093
  ]
5090
5094
  });
@@ -5365,14 +5369,14 @@ function Hi({ ...e }) {
5365
5369
  function Ui({ className: e, ...t }) {
5366
5370
  return /* @__PURE__ */ i(x.Trigger, {
5367
5371
  "data-slot": "dialog-trigger",
5368
- className: e,
5372
+ className: w("cursor-pointer", e),
5369
5373
  ...t
5370
5374
  });
5371
5375
  }
5372
5376
  function Wi({ className: e, ...t }) {
5373
5377
  return /* @__PURE__ */ i(x.Close, {
5374
5378
  "data-slot": "dialog-close",
5375
- className: e,
5379
+ className: w("cursor-pointer disabled:cursor-not-allowed", e),
5376
5380
  ...t
5377
5381
  });
5378
5382
  }
@@ -5386,7 +5390,7 @@ function Gi({ className: e, children: t, ...n }) {
5386
5390
  ...n,
5387
5391
  children: [t, /* @__PURE__ */ a(x.Close, {
5388
5392
  "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",
5393
+ 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
5394
  children: [/* @__PURE__ */ i(re, { className: "h-6 w-6" }), /* @__PURE__ */ i("span", {
5391
5395
  className: "sr-only",
5392
5396
  children: "Close"
@@ -9949,7 +9953,7 @@ function Kg({ ...e }) {
9949
9953
  function qg({ className: e, ...t }) {
9950
9954
  return /* @__PURE__ */ i(Rg, {
9951
9955
  "data-slot": "alert-dialog-trigger",
9952
- className: e,
9956
+ className: w("cursor-pointer", e),
9953
9957
  ...t
9954
9958
  });
9955
9959
  }
@@ -10302,7 +10306,7 @@ function ev({ className: e, children: t, ...n }) {
10302
10306
  className: "flex",
10303
10307
  children: /* @__PURE__ */ a(Y_, {
10304
10308
  "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),
10309
+ 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
10310
  ...n,
10307
10311
  children: [t, /* @__PURE__ */ i(yt, { className: "h-6 w-6 shrink-0 text-muted-foreground transition-transform duration-200" })]
10308
10312
  })
@@ -10837,7 +10841,7 @@ function Kv({ className: e, selected: t, onSelect: n, month: r, onMonthChange: s
10837
10841
  "data-slot": "calendar-nav-prev",
10838
10842
  type: "button",
10839
10843
  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",
10844
+ 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
10845
  "aria-label": "Previous month",
10842
10846
  children: /* @__PURE__ */ i(bt, { className: "h-5 w-5" })
10843
10847
  }),
@@ -10850,7 +10854,7 @@ function Kv({ className: e, selected: t, onSelect: n, month: r, onMonthChange: s
10850
10854
  "data-slot": "calendar-nav-next",
10851
10855
  type: "button",
10852
10856
  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",
10857
+ 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
10858
  "aria-label": "Next month",
10855
10859
  children: /* @__PURE__ */ i(xt, { className: "h-5 w-5" })
10856
10860
  })
@@ -10871,7 +10875,7 @@ function Kv({ className: e, selected: t, onSelect: n, month: r, onMonthChange: s
10871
10875
  type: "button",
10872
10876
  disabled: !r,
10873
10877
  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"),
10878
+ 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
10879
  "aria-selected": o || void 0,
10876
10880
  "aria-current": s ? "date" : void 0,
10877
10881
  children: e.day
@@ -10972,7 +10976,7 @@ function Yv({ className: e, variant: t = "default", filled: n = !1, onDismiss: r
10972
10976
  "data-slot": "alert-dismiss",
10973
10977
  type: "button",
10974
10978
  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",
10979
+ 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
10980
  "aria-label": "Dismiss",
10977
10981
  children: /* @__PURE__ */ i(re, { className: "h-6 w-6" })
10978
10982
  }) : null]
@@ -11032,7 +11036,7 @@ function ty({ className: e, variant: t = "default", onClose: n, children: r, ...
11032
11036
  "data-slot": "toast-close",
11033
11037
  type: "button",
11034
11038
  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"),
11039
+ 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
11040
  "aria-label": "Close",
11037
11041
  children: /* @__PURE__ */ i(re, { className: "h-6 w-6" })
11038
11042
  })]
@@ -11103,7 +11107,7 @@ function cy({ className: e, ...t }) {
11103
11107
  "data-slot": "notification-close",
11104
11108
  type: "button",
11105
11109
  "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),
11110
+ 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
11111
  ...t,
11108
11112
  children: [/* @__PURE__ */ i(re, { className: "h-4 w-4" }), /* @__PURE__ */ i("span", {
11109
11113
  className: "sr-only",
@@ -11307,7 +11311,7 @@ function Ay({ className: e, active: t = !1, children: n, ...r }) {
11307
11311
  return /* @__PURE__ */ i("button", {
11308
11312
  "data-slot": "sidebar-menu-button",
11309
11313
  "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),
11314
+ 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
11315
  ...r,
11312
11316
  children: n
11313
11317
  });