@novie/ui 0.1.37 → 1.0.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/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/input-field.d.ts.map +1 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/index.css +2 -1
- package/dist/index.js +62 -54
- package/dist/index.js.map +1 -1
- package/package.json +7 -11
- package/src/index.css +244 -3
- package/tailwind.config.ts +0 -14
- package/tailwind.preset.ts +0 -198
package/dist/index.js
CHANGED
|
@@ -3780,16 +3780,16 @@ function Tn({ className: e, ...t }) {
|
|
|
3780
3780
|
}
|
|
3781
3781
|
//#endregion
|
|
3782
3782
|
//#region src/components/ui/button.tsx
|
|
3783
|
-
var En = n("inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-
|
|
3783
|
+
var En = n("inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:h-4 [&_svg]:w-4", {
|
|
3784
3784
|
variants: {
|
|
3785
3785
|
variant: {
|
|
3786
3786
|
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))]",
|
|
3787
3787
|
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))]",
|
|
3788
|
-
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))]",
|
|
3789
|
-
danger: "bg-
|
|
3790
|
-
ghost: "text-muted-foreground hover:bg-page-secondary disabled:text-[hsl(var(--button-ghost-text-disabled))]",
|
|
3791
|
-
link: "text-foreground underline
|
|
3792
|
-
"link-primary": "text-[hsl(var(--button-brand-default))] underline
|
|
3788
|
+
outline: "border-[1.5px] border-primary bg-transparent text-primary hover:bg-surface-inset active:bg-[hsl(var(--interactive-active))] disabled:border-[hsl(var(--button-primary-bg-disabled))] disabled:text-[hsl(var(--button-text-disabled))]",
|
|
3789
|
+
danger: "bg-error 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))]",
|
|
3790
|
+
ghost: "text-muted-foreground hover:bg-page-secondary hover:text-foreground active:bg-[hsl(var(--interactive-active))] disabled:text-[hsl(var(--button-ghost-text-disabled))]",
|
|
3791
|
+
link: "h-auto p-0 text-foreground underline-offset-4 hover:text-muted-foreground hover:underline disabled:text-[hsl(var(--button-text-disabled))]",
|
|
3792
|
+
"link-primary": "h-auto p-0 text-[hsl(var(--button-brand-default))] underline-offset-4 hover:text-[hsl(var(--button-brand-hover))] hover:underline active:text-[hsl(var(--button-brand-pressed))] disabled:text-[hsl(var(--button-text-disabled))]"
|
|
3793
3793
|
},
|
|
3794
3794
|
size: {
|
|
3795
3795
|
sm: "h-8 gap-1.5 rounded-[20px] px-4 text-xs",
|
|
@@ -3862,7 +3862,7 @@ function On({ className: e, type: t, ...n }) {
|
|
|
3862
3862
|
return /* @__PURE__ */ i("input", {
|
|
3863
3863
|
type: t,
|
|
3864
3864
|
"data-slot": "input",
|
|
3865
|
-
className: w("flex h-8 w-full rounded-lg border border-input bg-background px-2.5 py-2 text-sm ring-offset-background transition-colors", "file:border-0 file:bg-transparent file:text-sm file:font-medium", "placeholder:text-primary-secondary", "focus-visible:outline-
|
|
3865
|
+
className: w("flex h-8 w-full rounded-lg border border-input bg-background px-2.5 py-2 text-sm ring-offset-background transition-colors", "file:border-0 file:bg-transparent file:text-sm file:font-medium", "placeholder:text-primary-secondary", "enabled:hover:border-border-strong", "focus-visible:outline-hidden focus-visible:shadow-[0_1px_2px_0_hsl(var(--shadow-sm))]", "disabled:cursor-not-allowed disabled:opacity-50", "aria-[invalid]:border-destructive aria-[invalid]:hover:border-destructive aria-[invalid]:ring-destructive/20", e),
|
|
3866
3866
|
...n
|
|
3867
3867
|
});
|
|
3868
3868
|
}
|
|
@@ -3878,10 +3878,12 @@ function kn({ className: e, ...t }) {
|
|
|
3878
3878
|
//#endregion
|
|
3879
3879
|
//#region src/components/ui/checkbox.tsx
|
|
3880
3880
|
var An = n([
|
|
3881
|
-
"peer shrink-0 rounded border-[1.5px] border-border bg-background transition-colors",
|
|
3882
|
-
"
|
|
3883
|
-
"
|
|
3881
|
+
"peer shrink-0 rounded-sm border-[1.5px] border-border bg-background transition-colors",
|
|
3882
|
+
"cursor-pointer data-[state=unchecked]:hover:border-border-strong data-[state=indeterminate]:hover:border-border-strong",
|
|
3883
|
+
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
3884
|
+
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
3884
3885
|
"data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground",
|
|
3886
|
+
"data-[state=checked]:hover:border-[hsl(var(--button-secondary-filled-hover))] data-[state=checked]:hover:bg-[hsl(var(--button-secondary-filled-hover))]",
|
|
3885
3887
|
"data-[state=indeterminate]:border-border data-[state=indeterminate]:text-foreground"
|
|
3886
3888
|
].join(" "), {
|
|
3887
3889
|
variants: { size: {
|
|
@@ -3916,10 +3918,12 @@ function Mn({ className: e, size: t = "sm", ...n }) {
|
|
|
3916
3918
|
var Nn = n([
|
|
3917
3919
|
"peer inline-flex shrink-0 cursor-pointer items-center rounded-full",
|
|
3918
3920
|
"transition-colors",
|
|
3919
|
-
"focus-visible:outline-
|
|
3921
|
+
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
3920
3922
|
"disabled:cursor-not-allowed",
|
|
3921
3923
|
"data-[state=checked]:bg-[hsl(var(--button-brand-default))]",
|
|
3924
|
+
"enabled:data-[state=checked]:hover:bg-[hsl(var(--button-brand-hover))]",
|
|
3922
3925
|
"data-[state=unchecked]:bg-[hsl(var(--icon-secondary))]",
|
|
3926
|
+
"enabled:data-[state=unchecked]:hover:bg-[hsl(var(--button-secondary-filled-hover))]",
|
|
3923
3927
|
"disabled:data-[state=checked]:bg-[hsl(var(--button-brand-secondary))]",
|
|
3924
3928
|
"disabled:data-[state=unchecked]:bg-[hsl(var(--button-primary-bg-disabled))]"
|
|
3925
3929
|
].join(" "), {
|
|
@@ -4595,10 +4599,12 @@ var Wr = "RadioGroupIndicator", Gr = o.forwardRef((e, t) => {
|
|
|
4595
4599
|
Gr.displayName = Wr;
|
|
4596
4600
|
var Kr = Vr, qr = Ur, Jr = Gr, Yr = n([
|
|
4597
4601
|
"peer aspect-square shrink-0 rounded-full border-[1.5px] transition-colors",
|
|
4598
|
-
"
|
|
4599
|
-
"
|
|
4602
|
+
"cursor-pointer data-[state=unchecked]:hover:border-border-strong",
|
|
4603
|
+
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
4604
|
+
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
4600
4605
|
"border-border bg-background",
|
|
4601
|
-
"data-[state=checked]:border-primary data-[state=checked]:bg-primary"
|
|
4606
|
+
"data-[state=checked]:border-primary data-[state=checked]:bg-primary",
|
|
4607
|
+
"data-[state=checked]:hover:border-[hsl(var(--button-secondary-filled-hover))] data-[state=checked]:hover:bg-[hsl(var(--button-secondary-filled-hover))]"
|
|
4602
4608
|
].join(" "), {
|
|
4603
4609
|
variants: { size: {
|
|
4604
4610
|
sm: "h-5 w-5",
|
|
@@ -4762,7 +4768,7 @@ function ri({ className: e, variant: t, size: n, onDismiss: r, children: o, ...s
|
|
|
4762
4768
|
type: "button",
|
|
4763
4769
|
"aria-label": "Dismiss",
|
|
4764
4770
|
onClick: r,
|
|
4765
|
-
className: w("inline-flex items-center justify-center rounded-full transition-colors", "hover:bg-foreground/10 focus-visible:outline-
|
|
4771
|
+
className: w("inline-flex cursor-pointer items-center justify-center rounded-full transition-colors", "hover:bg-foreground/10 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring", n === "sm" ? "h-3.5 w-3.5" : "h-4 w-4"),
|
|
4766
4772
|
children: /* @__PURE__ */ i(re, { className: n === "sm" ? "h-2.5 w-2.5" : "h-3 w-3" })
|
|
4767
4773
|
})]
|
|
4768
4774
|
});
|
|
@@ -4786,7 +4792,7 @@ var ii = n("relative inline-flex shrink-0 items-center justify-center overflow-h
|
|
|
4786
4792
|
size: "md",
|
|
4787
4793
|
shape: "circle"
|
|
4788
4794
|
}
|
|
4789
|
-
}), ai = n("absolute bottom-0 right-0 block rounded-full border border-background shadow-
|
|
4795
|
+
}), ai = n("absolute bottom-0 right-0 block rounded-full border border-background shadow-xs", {
|
|
4790
4796
|
variants: {
|
|
4791
4797
|
size: {
|
|
4792
4798
|
xs: "h-[4.5px] w-[4.5px]",
|
|
@@ -4840,7 +4846,7 @@ function ci({ className: e, ...t }) {
|
|
|
4840
4846
|
}
|
|
4841
4847
|
//#endregion
|
|
4842
4848
|
//#region src/components/ui/icon-button.tsx
|
|
4843
|
-
var li = n("inline-flex shrink-0 items-center justify-center transition-colors focus-visible:outline-
|
|
4849
|
+
var li = n("inline-flex shrink-0 cursor-pointer items-center justify-center transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
4844
4850
|
variants: {
|
|
4845
4851
|
variant: {
|
|
4846
4852
|
default: "bg-primary text-primary-foreground hover:bg-[hsl(var(--icon-button-hover))] disabled:bg-[hsl(var(--icon-button-disabled))] active:bg-primary active:ring-2 active:ring-primary active:ring-offset-2",
|
|
@@ -4970,7 +4976,7 @@ function hi({ className: e, label: t, required: n = !1, helpText: r, errorMessag
|
|
|
4970
4976
|
children: [/* @__PURE__ */ i("div", {
|
|
4971
4977
|
"data-slot": "input-field-prefix",
|
|
4972
4978
|
"data-disabled": f || void 0,
|
|
4973
|
-
className: w("flex h-8 shrink-0 items-center rounded-lg border border-input bg-background px-2.5 text-sm shadow-
|
|
4979
|
+
className: w("flex h-8 shrink-0 items-center rounded-lg border border-input bg-background px-2.5 text-sm shadow-xs transition-colors", "hover:border-border-strong", "focus-within:border-ring", v && "border-destructive hover:border-destructive", f && "cursor-not-allowed opacity-50 hover:border-input"),
|
|
4974
4980
|
children: /* @__PURE__ */ i("span", {
|
|
4975
4981
|
className: "text-muted-foreground",
|
|
4976
4982
|
children: d
|
|
@@ -4978,7 +4984,7 @@ function hi({ className: e, label: t, required: n = !1, helpText: r, errorMessag
|
|
|
4978
4984
|
}), /* @__PURE__ */ i("div", {
|
|
4979
4985
|
"data-slot": "input-wrapper",
|
|
4980
4986
|
"data-disabled": f || void 0,
|
|
4981
|
-
className: w("flex h-8 w-full items-center gap-1.5 rounded-lg border border-input bg-background px-2.5 shadow-
|
|
4987
|
+
className: w("flex h-8 w-full items-center gap-1.5 rounded-lg border border-input bg-background px-2.5 shadow-xs transition-colors", "hover:border-border-strong", "focus-within:border-ring", v && "border-destructive hover:border-destructive", f && "cursor-not-allowed opacity-50 hover:border-input", e),
|
|
4982
4988
|
children: /* @__PURE__ */ i(On, {
|
|
4983
4989
|
id: _,
|
|
4984
4990
|
type: "tel",
|
|
@@ -4987,14 +4993,14 @@ function hi({ className: e, label: t, required: n = !1, helpText: r, errorMessag
|
|
|
4987
4993
|
"aria-invalid": v || void 0,
|
|
4988
4994
|
"aria-describedby": x,
|
|
4989
4995
|
"data-slot": "input-field-input",
|
|
4990
|
-
className: "h-full border-0 bg-transparent px-0 shadow-none ring-0 ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
4996
|
+
className: "h-full border-0 bg-transparent px-0 shadow-none ring-0 ring-offset-0 focus-visible:shadow-none focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
4991
4997
|
...h
|
|
4992
4998
|
})
|
|
4993
4999
|
})]
|
|
4994
5000
|
}) : /* @__PURE__ */ a("div", {
|
|
4995
5001
|
"data-slot": "input-wrapper",
|
|
4996
5002
|
"data-disabled": f || void 0,
|
|
4997
|
-
className: w("flex h-8 w-full items-center gap-1.5 rounded-lg border border-input bg-background px-2.5 transition-colors", "focus-within:border-ring", v && "border-destructive", f && "cursor-not-allowed opacity-50", e),
|
|
5003
|
+
className: w("flex h-8 w-full items-center gap-1.5 rounded-lg border border-input bg-background px-2.5 transition-colors", "hover:border-border-strong", "focus-within:border-ring", v && "border-destructive hover:border-destructive", f && "cursor-not-allowed opacity-50 hover:border-input", e),
|
|
4998
5004
|
children: [
|
|
4999
5005
|
E && /* @__PURE__ */ i("span", {
|
|
5000
5006
|
"data-slot": "input-field-icon",
|
|
@@ -5009,14 +5015,14 @@ function hi({ className: e, label: t, required: n = !1, helpText: r, errorMessag
|
|
|
5009
5015
|
"aria-invalid": v || void 0,
|
|
5010
5016
|
"aria-describedby": x,
|
|
5011
5017
|
"data-slot": "input-field-input",
|
|
5012
|
-
className: "h-full border-0 bg-transparent px-0 shadow-none ring-0 ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
5018
|
+
className: "h-full border-0 bg-transparent px-0 shadow-none ring-0 ring-offset-0 focus-visible:shadow-none focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
5013
5019
|
...h
|
|
5014
5020
|
}),
|
|
5015
5021
|
l && p && !f && /* @__PURE__ */ i("button", {
|
|
5016
5022
|
type: "button",
|
|
5017
5023
|
onClick: u,
|
|
5018
5024
|
"data-slot": "input-field-clear",
|
|
5019
|
-
className: "inline-flex shrink-0 text-muted-foreground hover:text-foreground [&_svg]:h-4 [&_svg]:w-4",
|
|
5025
|
+
className: "inline-flex shrink-0 cursor-pointer text-muted-foreground transition-colors hover:text-foreground [&_svg]:h-4 [&_svg]:w-4",
|
|
5020
5026
|
"aria-label": "Clear input",
|
|
5021
5027
|
children: /* @__PURE__ */ i(re, {})
|
|
5022
5028
|
}),
|
|
@@ -5076,7 +5082,7 @@ function gi({ className: e, inputSize: t = "sm", clearable: n = !0, onClear: r,
|
|
|
5076
5082
|
type: "button",
|
|
5077
5083
|
onClick: y,
|
|
5078
5084
|
disabled: c,
|
|
5079
|
-
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-
|
|
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"),
|
|
5080
5086
|
"aria-label": "Clear search",
|
|
5081
5087
|
children: /* @__PURE__ */ i(re, { className: "h-3.5 w-3.5" })
|
|
5082
5088
|
})
|
|
@@ -5326,16 +5332,18 @@ function Ri({ className: e, ...t }) {
|
|
|
5326
5332
|
});
|
|
5327
5333
|
}
|
|
5328
5334
|
function zi({ className: e, ...t }) {
|
|
5335
|
+
let n = ji();
|
|
5329
5336
|
return /* @__PURE__ */ i("th", {
|
|
5330
5337
|
"data-slot": "table-head",
|
|
5331
|
-
className: w(Mi[
|
|
5338
|
+
className: w(Mi[n], "bg-interactive-active px-2 text-left align-middle text-sm font-medium leading-5 text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
|
|
5332
5339
|
...t
|
|
5333
5340
|
});
|
|
5334
5341
|
}
|
|
5335
5342
|
function Bi({ className: e, ...t }) {
|
|
5343
|
+
let n = ji();
|
|
5336
5344
|
return /* @__PURE__ */ i("td", {
|
|
5337
5345
|
"data-slot": "table-cell",
|
|
5338
|
-
className: w(Ni[
|
|
5346
|
+
className: w(Ni[n], "px-2 align-middle text-base text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
|
|
5339
5347
|
...t
|
|
5340
5348
|
});
|
|
5341
5349
|
}
|
|
@@ -5378,7 +5386,7 @@ function Gi({ className: e, children: t, ...n }) {
|
|
|
5378
5386
|
...n,
|
|
5379
5387
|
children: [t, /* @__PURE__ */ a(x.Close, {
|
|
5380
5388
|
"data-slot": "dialog-close-button",
|
|
5381
|
-
className: "absolute top-6 right-6 rounded-
|
|
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",
|
|
5382
5390
|
children: [/* @__PURE__ */ i(re, { className: "h-6 w-6" }), /* @__PURE__ */ i("span", {
|
|
5383
5391
|
className: "sr-only",
|
|
5384
5392
|
children: "Close"
|
|
@@ -7131,7 +7139,7 @@ function Dc(e, t) {
|
|
|
7131
7139
|
}
|
|
7132
7140
|
function Oc(e) {
|
|
7133
7141
|
let t = e.slice();
|
|
7134
|
-
return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 :
|
|
7142
|
+
return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : e.y > t.y ? 1 : 0), kc(t);
|
|
7135
7143
|
}
|
|
7136
7144
|
function kc(e) {
|
|
7137
7145
|
if (e.length <= 1) return e.slice();
|
|
@@ -8667,7 +8675,7 @@ function sp({ ...e }) {
|
|
|
8667
8675
|
function cp({ className: e, inset: t, children: n, ...r }) {
|
|
8668
8676
|
return /* @__PURE__ */ a(tp, {
|
|
8669
8677
|
"data-slot": "context-menu-sub-trigger",
|
|
8670
|
-
className: w("flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-
|
|
8678
|
+
className: w("flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-hidden transition-colors", "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground", "data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", t && "pl-8", e),
|
|
8671
8679
|
...r,
|
|
8672
8680
|
children: [n, /* @__PURE__ */ i(xt, { className: "ml-auto h-4 w-4" })]
|
|
8673
8681
|
});
|
|
@@ -8689,14 +8697,14 @@ function up({ className: e, ...t }) {
|
|
|
8689
8697
|
function dp({ className: e, inset: t, ...n }) {
|
|
8690
8698
|
return /* @__PURE__ */ i(Jf, {
|
|
8691
8699
|
"data-slot": "context-menu-item",
|
|
8692
|
-
className: w("relative flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-
|
|
8700
|
+
className: w("relative flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-hidden transition-colors", "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t && "pl-8", e),
|
|
8693
8701
|
...n
|
|
8694
8702
|
});
|
|
8695
8703
|
}
|
|
8696
8704
|
function fp({ className: e, children: t, checked: n, ...r }) {
|
|
8697
8705
|
return /* @__PURE__ */ a(Yf, {
|
|
8698
8706
|
"data-slot": "context-menu-checkbox-item",
|
|
8699
|
-
className: w("relative flex cursor-default select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-
|
|
8707
|
+
className: w("relative flex cursor-default select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors", "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e),
|
|
8700
8708
|
checked: n,
|
|
8701
8709
|
...r,
|
|
8702
8710
|
children: [/* @__PURE__ */ i("span", {
|
|
@@ -8708,7 +8716,7 @@ function fp({ className: e, children: t, checked: n, ...r }) {
|
|
|
8708
8716
|
function pp({ className: e, children: t, ...n }) {
|
|
8709
8717
|
return /* @__PURE__ */ a(Zf, {
|
|
8710
8718
|
"data-slot": "context-menu-radio-item",
|
|
8711
|
-
className: w("relative flex cursor-default select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-
|
|
8719
|
+
className: w("relative flex cursor-default select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors", "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e),
|
|
8712
8720
|
...n,
|
|
8713
8721
|
children: [/* @__PURE__ */ i("span", {
|
|
8714
8722
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
@@ -9435,7 +9443,7 @@ function qm({ ...e }) {
|
|
|
9435
9443
|
function Jm({ className: e, children: t, ...n }) {
|
|
9436
9444
|
return /* @__PURE__ */ a(jm, {
|
|
9437
9445
|
"data-slot": "select-trigger",
|
|
9438
|
-
className: w("flex h-10 w-full items-center justify-between rounded-lg border border-input bg-background px-3 py-2 text-sm text-foreground ring-offset-background", "placeholder:text-muted-foreground", "focus:outline-
|
|
9446
|
+
className: w("flex h-10 w-full cursor-pointer items-center justify-between rounded-lg border border-input bg-background px-3 py-2 text-sm text-foreground ring-offset-background transition-colors", "placeholder:text-muted-foreground", "hover:border-border-strong hover:bg-interactive-secondary", "focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2", "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", "[&>span]:line-clamp-1", e),
|
|
9439
9447
|
...n,
|
|
9440
9448
|
children: [t, /* @__PURE__ */ i(Nm, {
|
|
9441
9449
|
asChild: !0,
|
|
@@ -9485,7 +9493,7 @@ function Qm({ className: e, ...t }) {
|
|
|
9485
9493
|
function $m({ className: e, children: t, ...n }) {
|
|
9486
9494
|
return /* @__PURE__ */ a(zm, {
|
|
9487
9495
|
"data-slot": "select-item",
|
|
9488
|
-
className: w("relative flex w-full cursor-default select-none items-center rounded-
|
|
9496
|
+
className: w("relative flex w-full cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors", "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e),
|
|
9489
9497
|
...n,
|
|
9490
9498
|
children: [/* @__PURE__ */ i("span", {
|
|
9491
9499
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
@@ -9722,7 +9730,7 @@ function Zh({ ...e }) {
|
|
|
9722
9730
|
function Qh({ className: e, ...t }) {
|
|
9723
9731
|
return /* @__PURE__ */ i(Lh, {
|
|
9724
9732
|
"data-slot": "dropdown-menu-trigger",
|
|
9725
|
-
className: e,
|
|
9733
|
+
className: w("cursor-pointer", e),
|
|
9726
9734
|
...t
|
|
9727
9735
|
});
|
|
9728
9736
|
}
|
|
@@ -9741,7 +9749,7 @@ function ng({ ...e }) {
|
|
|
9741
9749
|
function rg({ className: e, inset: t, children: n, ...r }) {
|
|
9742
9750
|
return /* @__PURE__ */ a(Yh, {
|
|
9743
9751
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
9744
|
-
className: w("flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-
|
|
9752
|
+
className: w("flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-hidden transition-colors", "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", t && "pl-8", e),
|
|
9745
9753
|
...r,
|
|
9746
9754
|
children: [n, /* @__PURE__ */ i(xt, { className: "ml-auto h-4 w-4" })]
|
|
9747
9755
|
});
|
|
@@ -9764,14 +9772,14 @@ function ag({ className: e, sideOffset: t = 4, ...n }) {
|
|
|
9764
9772
|
function og({ className: e, inset: t, ...n }) {
|
|
9765
9773
|
return /* @__PURE__ */ i(Hh, {
|
|
9766
9774
|
"data-slot": "dropdown-menu-item",
|
|
9767
|
-
className: w("relative flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-
|
|
9775
|
+
className: w("relative flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t && "pl-8", e),
|
|
9768
9776
|
...n
|
|
9769
9777
|
});
|
|
9770
9778
|
}
|
|
9771
9779
|
function sg({ className: e, children: t, checked: n, ...r }) {
|
|
9772
9780
|
return /* @__PURE__ */ a(Uh, {
|
|
9773
9781
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
9774
|
-
className: w("relative flex cursor-default select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-
|
|
9782
|
+
className: w("relative flex cursor-default select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e),
|
|
9775
9783
|
checked: n,
|
|
9776
9784
|
...r,
|
|
9777
9785
|
children: [/* @__PURE__ */ i("span", {
|
|
@@ -9783,7 +9791,7 @@ function sg({ className: e, children: t, checked: n, ...r }) {
|
|
|
9783
9791
|
function cg({ className: e, children: t, ...n }) {
|
|
9784
9792
|
return /* @__PURE__ */ a(Gh, {
|
|
9785
9793
|
"data-slot": "dropdown-menu-radio-item",
|
|
9786
|
-
className: w("relative flex cursor-default select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-
|
|
9794
|
+
className: w("relative flex cursor-default select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e),
|
|
9787
9795
|
...n,
|
|
9788
9796
|
children: [/* @__PURE__ */ i("span", {
|
|
9789
9797
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
@@ -10473,21 +10481,21 @@ function Tv({ className: e, size: t = "default", ...n }) {
|
|
|
10473
10481
|
});
|
|
10474
10482
|
}
|
|
10475
10483
|
function Ev({ className: e, ...t }) {
|
|
10476
|
-
let { variant: n, bordered: r } = Sv()
|
|
10484
|
+
let { variant: n, bordered: r } = Sv(), a = {
|
|
10485
|
+
pill: w("inline-flex h-full items-center justify-center gap-2 whitespace-nowrap rounded-md px-3 text-tab text-muted-foreground transition-all", "data-[state=inactive]:hover:bg-page data-[state=inactive]:hover:text-foreground", "data-[state=active]:bg-page data-[state=active]:text-foreground data-[state=active]:shadow-xs"),
|
|
10486
|
+
filled: w("inline-flex h-full items-center justify-center gap-2 whitespace-nowrap rounded-lg px-2.5 py-3 text-label text-[hsl(var(--text-disabled-on))] transition-all", "data-[state=inactive]:hover:bg-background data-[state=inactive]:hover:text-foreground", "data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:rounded-lg"),
|
|
10487
|
+
browser: r ? w("inline-flex flex-col items-center justify-center gap-1 whitespace-nowrap px-6 py-3 text-label text-[hsl(var(--text-disabled-on))] transition-all", "border border-transparent rounded-t-lg", "data-[state=inactive]:hover:bg-page data-[state=inactive]:hover:text-foreground", "data-[state=active]:bg-page data-[state=active]:text-foreground data-[state=active]:border-border data-[state=active]:border-b-transparent data-[state=active]:shadow-xs") : w("inline-flex flex-col items-center justify-center gap-1 whitespace-nowrap px-6 py-3 text-label text-[hsl(var(--text-disabled-on))] transition-all", "data-[state=inactive]:hover:bg-page data-[state=inactive]:hover:text-foreground", "data-[state=active]:bg-page data-[state=active]:text-foreground")
|
|
10488
|
+
};
|
|
10477
10489
|
return /* @__PURE__ */ i(yv, {
|
|
10478
10490
|
"data-slot": "tabs-trigger",
|
|
10479
|
-
className: w(
|
|
10480
|
-
pill: w("inline-flex h-full items-center justify-center gap-2 whitespace-nowrap rounded-md px-3 text-tab text-muted-foreground transition-all", "data-[state=active]:bg-page data-[state=active]:text-foreground data-[state=active]:shadow-sm"),
|
|
10481
|
-
filled: w("inline-flex h-full items-center justify-center gap-2 whitespace-nowrap rounded-lg px-2.5 py-3 text-label text-[hsl(var(--text-disabled-on))] transition-all", "data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:rounded-lg"),
|
|
10482
|
-
browser: r ? w("inline-flex flex-col items-center justify-center gap-1 whitespace-nowrap px-6 py-3 text-label text-[hsl(var(--text-disabled-on))] transition-all", "border border-transparent rounded-t-lg", "data-[state=active]:bg-page data-[state=active]:text-foreground data-[state=active]:border-border data-[state=active]:border-b-transparent data-[state=active]:shadow-sm") : w("inline-flex flex-col items-center justify-center gap-1 whitespace-nowrap px-6 py-3 text-label text-[hsl(var(--text-disabled-on))] transition-all", "data-[state=active]:bg-page data-[state=active]:text-foreground")
|
|
10483
|
-
}[n], "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", "disabled:pointer-events-none disabled:opacity-50", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:h-4 [&_svg]:w-4", e),
|
|
10491
|
+
className: w(a[n], "cursor-pointer", "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", "disabled:pointer-events-none disabled:opacity-50", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:h-4 [&_svg]:w-4", e),
|
|
10484
10492
|
...t
|
|
10485
10493
|
});
|
|
10486
10494
|
}
|
|
10487
10495
|
function Dv({ className: e, ...t }) {
|
|
10488
10496
|
return /* @__PURE__ */ i(bv, {
|
|
10489
10497
|
"data-slot": "tabs-content",
|
|
10490
|
-
className: w("mt-2 focus-visible:outline-
|
|
10498
|
+
className: w("mt-2 focus-visible:outline-hidden", e),
|
|
10491
10499
|
...t
|
|
10492
10500
|
});
|
|
10493
10501
|
}
|
|
@@ -10829,7 +10837,7 @@ function Kv({ className: e, selected: t, onSelect: n, month: r, onMonthChange: s
|
|
|
10829
10837
|
"data-slot": "calendar-nav-prev",
|
|
10830
10838
|
type: "button",
|
|
10831
10839
|
onClick: () => y(-1),
|
|
10832
|
-
className: "inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground hover:text-foreground focus:outline-
|
|
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",
|
|
10833
10841
|
"aria-label": "Previous month",
|
|
10834
10842
|
children: /* @__PURE__ */ i(bt, { className: "h-5 w-5" })
|
|
10835
10843
|
}),
|
|
@@ -10842,7 +10850,7 @@ function Kv({ className: e, selected: t, onSelect: n, month: r, onMonthChange: s
|
|
|
10842
10850
|
"data-slot": "calendar-nav-next",
|
|
10843
10851
|
type: "button",
|
|
10844
10852
|
onClick: () => y(1),
|
|
10845
|
-
className: "inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground hover:text-foreground focus:outline-
|
|
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",
|
|
10846
10854
|
"aria-label": "Next month",
|
|
10847
10855
|
children: /* @__PURE__ */ i(xt, { className: "h-5 w-5" })
|
|
10848
10856
|
})
|
|
@@ -10863,7 +10871,7 @@ function Kv({ className: e, selected: t, onSelect: n, month: r, onMonthChange: s
|
|
|
10863
10871
|
type: "button",
|
|
10864
10872
|
disabled: !r,
|
|
10865
10873
|
onClick: () => r && b(e.day),
|
|
10866
|
-
className: w("flex h-10 w-10 items-center justify-center rounded-full text-sm transition-colors focus:outline-
|
|
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"),
|
|
10867
10875
|
"aria-selected": o || void 0,
|
|
10868
10876
|
"aria-current": s ? "date" : void 0,
|
|
10869
10877
|
children: e.day
|
|
@@ -10878,7 +10886,7 @@ function qv({ className: e, active: t = !1, ...n }) {
|
|
|
10878
10886
|
return /* @__PURE__ */ i("div", {
|
|
10879
10887
|
"data-slot": "skeleton",
|
|
10880
10888
|
"data-active": t || void 0,
|
|
10881
|
-
className: w("rounded-md bg-muted", t ? "relative overflow-hidden before:absolute before:inset-0 before:-translate-x-full before:bg-
|
|
10889
|
+
className: w("rounded-md bg-muted", t ? "relative overflow-hidden before:absolute before:inset-0 before:-translate-x-full before:bg-linear-to-r before:from-transparent before:via-white/20 before:to-transparent before:animate-skeleton-shimmer before:content-['']" : "animate-pulse", e),
|
|
10882
10890
|
...n
|
|
10883
10891
|
});
|
|
10884
10892
|
}
|
|
@@ -10964,7 +10972,7 @@ function Yv({ className: e, variant: t = "default", filled: n = !1, onDismiss: r
|
|
|
10964
10972
|
"data-slot": "alert-dismiss",
|
|
10965
10973
|
type: "button",
|
|
10966
10974
|
onClick: r,
|
|
10967
|
-
className: "shrink-0 rounded-
|
|
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",
|
|
10968
10976
|
"aria-label": "Dismiss",
|
|
10969
10977
|
children: /* @__PURE__ */ i(re, { className: "h-6 w-6" })
|
|
10970
10978
|
}) : null]
|
|
@@ -11024,7 +11032,7 @@ function ty({ className: e, variant: t = "default", onClose: n, children: r, ...
|
|
|
11024
11032
|
"data-slot": "toast-close",
|
|
11025
11033
|
type: "button",
|
|
11026
11034
|
onClick: n,
|
|
11027
|
-
className: w("absolute right-3 top-5 rounded-
|
|
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"),
|
|
11028
11036
|
"aria-label": "Close",
|
|
11029
11037
|
children: /* @__PURE__ */ i(re, { className: "h-6 w-6" })
|
|
11030
11038
|
})]
|
|
@@ -11095,7 +11103,7 @@ function cy({ className: e, ...t }) {
|
|
|
11095
11103
|
"data-slot": "notification-close",
|
|
11096
11104
|
type: "button",
|
|
11097
11105
|
"aria-label": "Close notification",
|
|
11098
|
-
className: w("absolute right-4 top-4 rounded-
|
|
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),
|
|
11099
11107
|
...t,
|
|
11100
11108
|
children: [/* @__PURE__ */ i(re, { className: "h-4 w-4" }), /* @__PURE__ */ i("span", {
|
|
11101
11109
|
className: "sr-only",
|
|
@@ -11299,7 +11307,7 @@ function Ay({ className: e, active: t = !1, children: n, ...r }) {
|
|
|
11299
11307
|
return /* @__PURE__ */ i("button", {
|
|
11300
11308
|
"data-slot": "sidebar-menu-button",
|
|
11301
11309
|
"data-active": t || void 0,
|
|
11302
|
-
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-
|
|
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),
|
|
11303
11311
|
...r,
|
|
11304
11312
|
children: n
|
|
11305
11313
|
});
|