@fiestaboard/ui 2.0.3 → 2.1.0
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/chrome/board-selector.js +2 -2
- package/dist/components/chrome/board-selector.js.map +1 -1
- package/dist/components/chrome/sidebar.js +2 -2
- package/dist/components/chrome/sidebar.js.map +1 -1
- package/dist/components/plugin/plugin-card.js +1 -1
- package/dist/components/plugin/plugin-card.js.map +1 -1
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/button.d.ts +12 -1
- package/dist/components/ui/button.js +59 -22
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/scroll-area.js +1 -1
- package/dist/components/ui/scroll-area.js.map +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/skeleton.d.ts +12 -0
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/skeleton.js.map +1 -1
- package/dist/components/ui/spinner.d.ts +42 -0
- package/dist/components/ui/spinner.js +44 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/table.js +1 -1
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/textarea.js +1 -1
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +62 -61
- package/dist/theme.css +101 -0
- package/package.json +1 -1
|
@@ -12,9 +12,9 @@ var m = u(function({ boards: u, value: m, onChange: h, labels: g, collapsed: _ =
|
|
|
12
12
|
children: e.name || g.unnamedBoard
|
|
13
13
|
}, e.id)), [u, g.unnamedBoard]), b = /* @__PURE__ */ p(i, {
|
|
14
14
|
"aria-label": g.boardSelector,
|
|
15
|
-
className: e("gap-2 border-sidebar-border/70 bg-sidebar-accent/40 font-medium text-sidebar-foreground shadow-none transition-[width,padding] duration-
|
|
15
|
+
className: e("gap-2 border-sidebar-border/70 bg-sidebar-accent/40 font-medium text-sidebar-foreground shadow-none transition-[width,padding] duration-fast hover:bg-sidebar-accent/70", v === "mobileHeader" && "h-9 w-auto min-w-0 max-w-[170px] px-2.5 max-[479px]:gap-1 max-[479px]:px-2", v === "sidebar" && (_ ? "h-9 w-full justify-center gap-0 px-0 [&>span:last-child]:hidden" : "h-10 w-full")),
|
|
16
16
|
children: [/* @__PURE__ */ f(l, { className: "h-5 w-5 flex-shrink-0 text-sidebar-foreground/70" }), /* @__PURE__ */ f("span", {
|
|
17
|
-
className: e("min-w-0 flex-1 overflow-hidden whitespace-nowrap text-left transition-opacity duration-
|
|
17
|
+
className: e("min-w-0 flex-1 overflow-hidden whitespace-nowrap text-left transition-opacity duration-fast", v === "sidebar" && _ ? "max-w-0 opacity-0" : "max-w-48 opacity-100 delay-150", v === "mobileHeader" && "max-[479px]:hidden!"),
|
|
18
18
|
children: /* @__PURE__ */ f(a, { placeholder: g.selectBoard })
|
|
19
19
|
})]
|
|
20
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"board-selector.js","names":[],"sources":["../../../src/components/chrome/board-selector.tsx"],"mappings":";;;;;;;;AAwCA,IAAa,IAAgB,EAAK,SAAuB,EACvD,WACA,UACA,aACA,WACA,eAAY,IACZ,aAAU,aACW;CAIrB,IAAM,IAAQ,QAEV,EAAO,KAAK,MACV,kBAAC,GAAD;EAA2B,OAAO,EAAM;EACrC,UAAA,EAAM,QAAQ,EAAO;CACZ,GAFK,EAAM,EAEX,CACb,GACH,CAAC,GAAQ,EAAO,YAAY,CAC9B,GAEM,IACJ,kBAAC,GAAD;EACE,cAAY,EAAO;EACnB,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"board-selector.js","names":[],"sources":["../../../src/components/chrome/board-selector.tsx"],"mappings":";;;;;;;;AAwCA,IAAa,IAAgB,EAAK,SAAuB,EACvD,WACA,UACA,aACA,WACA,eAAY,IACZ,aAAU,aACW;CAIrB,IAAM,IAAQ,QAEV,EAAO,KAAK,MACV,kBAAC,GAAD;EAA2B,OAAO,EAAM;EACrC,UAAA,EAAM,QAAQ,EAAO;CACZ,GAFK,EAAM,EAEX,CACb,GACH,CAAC,GAAQ,EAAO,YAAY,CAC9B,GAEM,IACJ,kBAAC,GAAD;EACE,cAAY,EAAO;EACnB,WAAW,EACT,2KAGA,MAAY,kBAAkB,8EAC9B,MAAY,cACT,IAQG,oEACA,cACR;EAlBF,UAAA,CAoBE,kBAAC,GAAD,EAAW,WAAU,mDAAoD,CAAA,GACzE,kBAAC,QAAD;GACE,WAAW,EACT,+FACA,MAAY,aAAa,IAAY,sBAAsB,kCAG3D,MAAY,kBAAkB,qBAChC;GAEA,UAAA,kBAAC,GAAD,EAAa,aAAa,EAAO,YAAc,CAAA;EAC3C,CAAA,CACO;;CAGjB,OACE,kBAAC,GAAD;EAAe;EAAO,eAAe;EAArC,UAAA,CACG,IACC,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;GAAgB,SAAA;GAAS,UAAA;EAAwB,CAAA,GACjD,kBAAC,GAAD;GAAgB,MAAK;GAAQ,WAAU;GACpC,UAAA,EAAO,MAAM,MAAM,EAAE,OAAO,CAAK,CAAC,EAAE,QAAQ,EAAO;EACtC,CAAA,CACT,EAAA,CAAA,IAET,GAEF,kBAAC,GAAD,EAAA,UAAgB,EAAqB,CAAA,CAC/B;;AAEZ,CAAC"}
|
|
@@ -10,7 +10,7 @@ import { ChevronLeft as c, ChevronRight as l, Menu as ne, Sparkles as u, X as d
|
|
|
10
10
|
import { Fragment as f, memo as p, useEffect as m, useRef as h, useState as g } from "react";
|
|
11
11
|
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
12
12
|
//#region src/components/chrome/sidebar.tsx
|
|
13
|
-
var b = "nav-active font-semibold", x = "text-sidebar-foreground nav-active-hover", S = "flex items-center gap-3 rounded-lg px-4 py-3 text-base font-medium min-h-[48px]", re = e(S, b), ie = e(S, x), C = "flex w-full items-center gap-3 rounded-lg px-4 py-3 text-base font-medium min-h-[48px]", ae = e(C, b), w = e(C, x), T = "flex items-center gap-3 py-2 pl-[14px] pr-3 rounded-lg text-sm font-medium transition-colors", E = e(T, b), D = e(T, x), O = "flex w-full items-center gap-3 py-2 pl-[14px] pr-3 rounded-lg text-sm font-medium transition-colors", oe = e(O, b), k = e(O, x), A = "whitespace-nowrap overflow-hidden transition-opacity duration-
|
|
13
|
+
var b = "nav-active font-semibold", x = "text-sidebar-foreground nav-active-hover", S = "flex items-center gap-3 rounded-lg px-4 py-3 text-base font-medium min-h-[48px]", re = e(S, b), ie = e(S, x), C = "flex w-full items-center gap-3 rounded-lg px-4 py-3 text-base font-medium min-h-[48px]", ae = e(C, b), w = e(C, x), T = "flex items-center gap-3 py-2 pl-[14px] pr-3 rounded-lg text-sm font-medium transition-colors", E = e(T, b), D = e(T, x), O = "flex w-full items-center gap-3 py-2 pl-[14px] pr-3 rounded-lg text-sm font-medium transition-colors", oe = e(O, b), k = e(O, x), A = "whitespace-nowrap overflow-hidden transition-opacity duration-fast", j = e(A, "opacity-0 max-w-0"), M = e(A, "opacity-100 max-w-48 delay-150"), N = "lg:hidden fixed inset-0 z-[var(--z-mobile-backdrop)] bg-black/25 backdrop-blur-[2px] transition-opacity duration-base pointer-events-none", se = e(N, "opacity-100 pointer-events-auto"), ce = e(N, "opacity-0"), P = "lg:hidden fixed top-[calc(var(--mobile-header-height,56px)+16px)] left-3 right-3 z-[var(--z-mobile-menu)] flex max-h-[calc(100dvh-var(--mobile-header-height,56px)-2rem)] flex-col overflow-hidden sidebar-gradient-horizontal", le = e(P, "opacity-100"), ue = e(P, "opacity-0 pointer-events-none"), F = "clip-path var(--motion-duration-slower) var(--motion-ease-spring), opacity var(--motion-duration-exit) var(--motion-ease-standard)", I = {
|
|
14
14
|
clipPath: "inset(0 0 0 0 round var(--radius-chrome-mobile, 16px))",
|
|
15
15
|
transition: F
|
|
16
16
|
}, L = {
|
|
@@ -122,7 +122,7 @@ var b = "nav-active font-semibold", x = "text-sidebar-foreground nav-active-hove
|
|
|
122
122
|
let n = t === "mobile" ? /* @__PURE__ */ v(s, {
|
|
123
123
|
size: "sm",
|
|
124
124
|
className: "logo-on-gradient whitespace-nowrap"
|
|
125
|
-
}) : /* @__PURE__ */ v(s, { className: e("logo-on-gradient whitespace-nowrap overflow-hidden transition-opacity duration-
|
|
125
|
+
}) : /* @__PURE__ */ v(s, { className: e("logo-on-gradient whitespace-nowrap overflow-hidden transition-opacity duration-fast", C ? "opacity-0 max-w-0" : "opacity-100 max-w-48 delay-150") }), r = /* @__PURE__ */ v("img", {
|
|
126
126
|
src: N,
|
|
127
127
|
alt: "",
|
|
128
128
|
width: 32,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.js","names":[],"sources":["../../../src/components/chrome/sidebar.tsx"],"mappings":";;;;;;;;;;;;AAmBA,IAAM,IAAkB,4BAClB,IAAoB,4CAEpB,IAAmB,mFACnB,KAAqB,EAAG,GAAkB,CAAe,GACzD,KAAuB,EAAG,GAAkB,CAAiB,GAE7D,IAAiB,0FACjB,KAAmB,EAAG,GAAgB,CAAe,GACrD,IAAqB,EAAG,GAAgB,CAAiB,GAEzD,IACJ,gGACI,IAAsB,EAAG,GAAmB,CAAe,GAC3D,IAAwB,EAAG,GAAmB,CAAiB,GAE/D,IACJ,uGACI,KAAoB,EAAG,GAAiB,CAAe,GACvD,IAAsB,EAAG,GAAiB,CAAiB,GAE3D,IAAiB,
|
|
1
|
+
{"version":3,"file":"sidebar.js","names":[],"sources":["../../../src/components/chrome/sidebar.tsx"],"mappings":";;;;;;;;;;;;AAmBA,IAAM,IAAkB,4BAClB,IAAoB,4CAEpB,IAAmB,mFACnB,KAAqB,EAAG,GAAkB,CAAe,GACzD,KAAuB,EAAG,GAAkB,CAAiB,GAE7D,IAAiB,0FACjB,KAAmB,EAAG,GAAgB,CAAe,GACrD,IAAqB,EAAG,GAAgB,CAAiB,GAEzD,IACJ,gGACI,IAAsB,EAAG,GAAmB,CAAe,GAC3D,IAAwB,EAAG,GAAmB,CAAiB,GAE/D,IACJ,uGACI,KAAoB,EAAG,GAAiB,CAAe,GACvD,IAAsB,EAAG,GAAiB,CAAiB,GAE3D,IAAiB,sEACjB,IAAsB,EAAG,GAAgB,mBAAmB,GAC5D,IAAqB,EAAG,GAAgB,gCAAgC,GAExE,IACJ,6IACI,KAAuB,EAAG,GAAsB,iCAAiC,GACjF,KAAyB,EAAG,GAAsB,WAAW,GAE7D,IACJ,kOACI,KAAmB,EAAG,GAAkB,aAAa,GACrD,KAAqB,EAAG,GAAkB,+BAA+B,GAGzE,IACJ,sIACI,IAA8C;CAClD,UAAU;CACV,YAAY;AACd,GACM,IAAgD;CACpD,UAAU;CACV,YAAY;AACd,GAMM,IACJ,+IA+EW,IAAU,EAAK,SAAiB,EAC3C,WACA,iBACA,mBACA,eACA,cACA,mBAAgB,IAChB,sBACA,oBACA,iBAAc,GACd,YAAS,MACT,gBACA,OACA,kBACA,wBACA,kBACA,gBACA,oBACA,aACA,oBACe;CACf,IAAM,CAAC,GAAgB,KAAqB,EAAS,EAAK,GACpD,CAAC,IAAU,MAAe,EAAS,CAAC,GACpC,IAAY,EAAoB,IAAI,GACpC,IAAgB,EAAuB,IAAI,GAG3C,IAAiB,EAA2B,IAAI;CAsDtD,AAjDA,QAAgB;EACd,IAAM,IAAS,EAAU;EACzB,IAAI,CAAC,GAAQ;EACb,IAAI,IAAuB,MACvB,IAAO,IACL,UAAgB;GACpB,IAA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CAC3F;QACF,CAAA,CAAA;;MACF;;IACA;;EACQ,CAAA;CACjB,EAAA,CAAA;AAEN,CAAC"}
|
|
@@ -11,7 +11,7 @@ function c({ name: c, description: l, authorLabel: u, category: d, categoryLabel
|
|
|
11
11
|
return /* @__PURE__ */ o("div", {
|
|
12
12
|
"data-slot": "plugin-card",
|
|
13
13
|
style: v,
|
|
14
|
-
className: e("group relative flex h-full flex-col overflow-hidden rounded-xl border bg-card text-card-foreground", "shadow-card transition-[transform,box-shadow] duration-
|
|
14
|
+
className: e("group relative flex h-full flex-col overflow-hidden rounded-xl border bg-card text-card-foreground", "shadow-card transition-[transform,box-shadow] duration-base hover:-translate-y-1 hover:shadow-lg", "motion-reduce:transition-none motion-reduce:hover:translate-y-0", _),
|
|
15
15
|
children: [/* @__PURE__ */ o("div", {
|
|
16
16
|
className: "flex flex-1 flex-col gap-2 p-4",
|
|
17
17
|
children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-card.js","names":[],"sources":["../../../src/components/plugin/plugin-card.tsx"],"mappings":";;;;;;;;AAsBA,IAAM,IACJ;AA8BF,SAAgB,EAAW,EACzB,SACA,gBACA,gBACA,aACA,kBACA,WACA,eAAY,SACZ,eACA,WACA,cACA,YACkB;CAClB,OACE,kBAAC,OAAD;EACE,aAAU;EACH;EACP,WAAW,EACT,sGACA,
|
|
1
|
+
{"version":3,"file":"plugin-card.js","names":[],"sources":["../../../src/components/plugin/plugin-card.tsx"],"mappings":";;;;;;;;AAsBA,IAAM,IACJ;AA8BF,SAAgB,EAAW,EACzB,SACA,gBACA,gBACA,aACA,kBACA,WACA,eAAY,SACZ,eACA,WACA,cACA,YACkB;CAClB,OACE,kBAAC,OAAD;EACE,aAAU;EACH;EACP,WAAW,EACT,sGACA,oGACA,mEACA,CACF;EARF,UAAA,CAUE,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA;IACE,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA,CACE,kBAAC,GAAD;MAAS,OAAO;MAAG,WAAU;MAC1B,UAAA,EAAW;OAAE,WAAW;OAAsB,UAAU;MAAK,CAAC;KACxD,CAAA,GACR,KAAY,kBAAC,GAAD;MAA+B;MAAU,OAAO;MAAe,WAAU;KAAW,CAAA,CAC9F;;IAEJ,KACC,kBAAC,GAAD;KAAM,MAAK;KAAQ,MAAK;KAAK,WAAU;KACpC,UAAA;IACG,CAAA;IAGR,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA,CACG,IACC,kBAAC,GAAD;MAAM,IAAG;MAAO,MAAK;MAAQ,MAAK;MAAK,WAAU;MAC9C,UAAA;KACG,CAAA,IAEN,kBAAC,QAAD,CAAO,CAAA,GAER,KAAU,kBAAC,OAAD;MAAK,WAAU;MAA0B,UAAA;KAAY,CAAA,CAC7D;;GACF;EAEJ,CAAA,GAAA,KACC,kBAAC,OAAD;GAAK,WAAU;GACb,UAAA,kBAAC,GAAD;IAA2B;IAAmB;GAAY,CAAA;EACvD,CAAA,CAEJ;;AAET"}
|
|
@@ -31,7 +31,7 @@ function l({ className: r, children: o, ...s }) {
|
|
|
31
31
|
"data-slot": "accordion-trigger",
|
|
32
32
|
className: e("flex flex-1 items-center justify-between py-4 font-medium transition-colors hover:underline [&[data-panel-open]>svg]:rotate-180", r),
|
|
33
33
|
...s,
|
|
34
|
-
children: [o, /* @__PURE__ */ i(n, { className: "h-4 w-4 shrink-0 transition-transform duration-
|
|
34
|
+
children: [o, /* @__PURE__ */ i(n, { className: "h-4 w-4 shrink-0 transition-transform duration-base" })]
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.js","names":[],"sources":["../../../src/components/ui/accordion.tsx"],"mappings":";;;;;;;AAQA,IAAM,KAAW,MAAsC,MAAM,KAAA,IAAY,KAAA,IAAY,MAAM,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC;AAe9G,SAAS,EAAU,EACjB,UAAO,UACP,aAAa,GACb,UACA,iBACA,kBACA,GAAG,KACc;CACjB,IAAM,IAAa,EAAM,cAAc,EAAQ,CAAK,GAAG,CAAC,CAAK,CAAC,GACxD,IAAoB,EAAM,cAAc,EAAQ,CAAY,GAAG,CAAC,CAAY,CAAC,GAC7E,IAAoB,EAAM,aAC7B,MACC,MAAS,aAAa,IAAgB,CAAM,IAAI,IAAgB,EAAO,EAAO,SAAS,MAAM,EAAE,GACjG,CAAC,GAAe,CAAI,CACtB;CACA,OACE,kBAAC,EAAmB,MAApB;EACE,aAAU;EACV,UAAU,MAAS;EACnB,OAAO;EACP,cAAc;EACd,eAAe,IAAgB,IAAoB,KAAA;EACnD,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAc,EAAE,cAAW,GAAG,KAA+D;CACpG,OAAO,kBAAC,EAAmB,MAApB;EAAyB,aAAU;EAAiB,WAAW,EAAG,YAAY,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC/G;AAEA,SAAS,EAAiB,EAAE,cAAW,aAAU,GAAG,KAAkE;CACpH,OACE,kBAAC,EAAmB,QAApB;EAA2B,WAAU;EACnC,UAAA,kBAAC,EAAmB,SAApB;GACE,aAAU;GACV,WAAW,EACT,mIACA,CACF;GACA,GAAI;GANN,UAAA,CAQG,GACD,kBAAC,GAAD,EAAa,WAAU,
|
|
1
|
+
{"version":3,"file":"accordion.js","names":[],"sources":["../../../src/components/ui/accordion.tsx"],"mappings":";;;;;;;AAQA,IAAM,KAAW,MAAsC,MAAM,KAAA,IAAY,KAAA,IAAY,MAAM,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC;AAe9G,SAAS,EAAU,EACjB,UAAO,UACP,aAAa,GACb,UACA,iBACA,kBACA,GAAG,KACc;CACjB,IAAM,IAAa,EAAM,cAAc,EAAQ,CAAK,GAAG,CAAC,CAAK,CAAC,GACxD,IAAoB,EAAM,cAAc,EAAQ,CAAY,GAAG,CAAC,CAAY,CAAC,GAC7E,IAAoB,EAAM,aAC7B,MACC,MAAS,aAAa,IAAgB,CAAM,IAAI,IAAgB,EAAO,EAAO,SAAS,MAAM,EAAE,GACjG,CAAC,GAAe,CAAI,CACtB;CACA,OACE,kBAAC,EAAmB,MAApB;EACE,aAAU;EACV,UAAU,MAAS;EACnB,OAAO;EACP,cAAc;EACd,eAAe,IAAgB,IAAoB,KAAA;EACnD,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAc,EAAE,cAAW,GAAG,KAA+D;CACpG,OAAO,kBAAC,EAAmB,MAApB;EAAyB,aAAU;EAAiB,WAAW,EAAG,YAAY,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC/G;AAEA,SAAS,EAAiB,EAAE,cAAW,aAAU,GAAG,KAAkE;CACpH,OACE,kBAAC,EAAmB,QAApB;EAA2B,WAAU;EACnC,UAAA,kBAAC,EAAmB,SAApB;GACE,aAAU;GACV,WAAW,EACT,mIACA,CACF;GACA,GAAI;GANN,UAAA,CAQG,GACD,kBAAC,GAAD,EAAa,WAAU,sDAAuD,CAAA,CACpD;;CACH,CAAA;AAE/B;AAEA,SAAS,EAAiB,EAAE,cAAW,aAAU,GAAG,KAAgE;CAClH,OACE,kBAAC,EAAmB,OAApB;EACE,aAAU;EACV,WAAU;EACV,GAAI;EAEJ,UAAA,kBAAC,OAAD;GAAK,WAAU;GACb,UAAA,kBAAC,OAAD;IAAK,WAAW,EAAG,aAAa,CAAS;IAAI;GAAc,CAAA;EACxD,CAAA;CACmB,CAAA;AAE9B"}
|
|
@@ -4,7 +4,18 @@ declare const buttonVariants: (props?: ({
|
|
|
4
4
|
variant?: "link" | "default" | "destructive" | "brand" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
declare function Button({ className, variant, size, asChild, children, ref, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
7
|
+
declare function Button({ className, variant, size, asChild, loading, children, onClick, ref, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
8
|
asChild?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Busy state. Renders a {@link Spinner} over the label and marks the
|
|
11
|
+
* button `aria-busy` + `aria-disabled` — deliberately NOT `disabled`,
|
|
12
|
+
* which drops the button out of the tab order and silently moves focus
|
|
13
|
+
* to <body> at the exact moment the user is waiting for feedback.
|
|
14
|
+
*
|
|
15
|
+
* With `asChild` the rendered element's content belongs to the caller, so
|
|
16
|
+
* no spinner is injected; the busy semantics and the activation guard
|
|
17
|
+
* still apply.
|
|
18
|
+
*/
|
|
19
|
+
loading?: boolean;
|
|
9
20
|
}): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
10
21
|
export { Button, buttonVariants };
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/utils.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import { Spinner as t } from "./spinner.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { cva as a } from "class-variance-authority";
|
|
6
|
+
import { useRender as o } from "@base-ui/react/use-render";
|
|
5
7
|
//#region src/components/ui/button.tsx
|
|
6
|
-
var
|
|
8
|
+
var s = a("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,background-color,border-color,box-shadow] duration-control disabled:pointer-events-none disabled:opacity-50 data-[loading]:cursor-progress [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
7
9
|
variants: {
|
|
8
10
|
variant: {
|
|
9
11
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
10
12
|
brand: "bg-brand-emphasis text-brand-foreground shadow-sm hover:bg-brand-emphasis/85 focus-visible:ring-brand/30",
|
|
11
13
|
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
|
|
12
|
-
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-
|
|
14
|
+
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-card dark:border-input dark:hover:bg-muted",
|
|
13
15
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
14
16
|
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
15
17
|
link: "text-primary underline-offset-4 hover:underline"
|
|
16
18
|
},
|
|
17
19
|
size: {
|
|
18
|
-
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
19
|
-
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
20
|
-
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
20
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3 has-[>[data-slot=button-loading]>[data-slot=button-label]>svg]:px-3",
|
|
21
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5 has-[>[data-slot=button-loading]>[data-slot=button-label]>svg]:px-2.5",
|
|
22
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4 has-[>[data-slot=button-loading]>[data-slot=button-label]>svg]:px-4",
|
|
21
23
|
icon: "size-9",
|
|
22
24
|
"icon-sm": "size-8",
|
|
23
25
|
"icon-lg": "size-10"
|
|
@@ -27,26 +29,61 @@ var i = n("inline-flex items-center justify-center gap-2 whitespace-nowrap round
|
|
|
27
29
|
variant: "default",
|
|
28
30
|
size: "default"
|
|
29
31
|
}
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
}), c = {
|
|
33
|
+
default: "md",
|
|
34
|
+
icon: "md",
|
|
35
|
+
sm: "sm",
|
|
36
|
+
"icon-sm": "sm",
|
|
37
|
+
lg: "lg",
|
|
38
|
+
"icon-lg": "lg"
|
|
39
|
+
};
|
|
40
|
+
function l({ className: a, variant: l = "default", size: u = "default", asChild: d = !1, loading: f = !1, children: p, onClick: m, ref: h, ...g }) {
|
|
41
|
+
let _ = (e) => {
|
|
42
|
+
if (f) {
|
|
43
|
+
e.preventDefault(), e.stopPropagation();
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
m?.(e);
|
|
47
|
+
}, v = f && !d ? /* @__PURE__ */ i("span", {
|
|
48
|
+
"data-slot": "button-loading",
|
|
49
|
+
className: "grid grid-cols-1 grid-rows-1 items-center justify-items-center [gap:inherit]",
|
|
50
|
+
children: [/* @__PURE__ */ r("span", {
|
|
51
|
+
"data-slot": "button-label",
|
|
52
|
+
className: "col-start-1 row-start-1 inline-flex items-center [gap:inherit] opacity-0",
|
|
53
|
+
children: p
|
|
54
|
+
}), /* @__PURE__ */ r("span", {
|
|
55
|
+
"data-slot": "button-spinner",
|
|
56
|
+
className: "col-start-1 row-start-1 inline-flex items-center",
|
|
57
|
+
children: /* @__PURE__ */ r(t, {
|
|
58
|
+
size: c[u ?? "default"],
|
|
59
|
+
label: null
|
|
60
|
+
})
|
|
61
|
+
})]
|
|
62
|
+
}) : p;
|
|
63
|
+
return o({
|
|
33
64
|
defaultTagName: "button",
|
|
34
|
-
ref:
|
|
35
|
-
render:
|
|
65
|
+
ref: h,
|
|
66
|
+
render: d ? n.Children.only(p) : void 0,
|
|
36
67
|
props: {
|
|
37
68
|
"data-slot": "button",
|
|
38
|
-
"data-variant":
|
|
39
|
-
"data-size":
|
|
40
|
-
className: e(
|
|
41
|
-
variant:
|
|
42
|
-
size:
|
|
43
|
-
}),
|
|
44
|
-
...
|
|
45
|
-
...
|
|
69
|
+
"data-variant": l,
|
|
70
|
+
"data-size": u,
|
|
71
|
+
className: e(s({
|
|
72
|
+
variant: l,
|
|
73
|
+
size: u
|
|
74
|
+
}), a),
|
|
75
|
+
...d ? {} : { children: v },
|
|
76
|
+
...g,
|
|
77
|
+
...f ? {
|
|
78
|
+
"aria-busy": !0,
|
|
79
|
+
"aria-disabled": !0,
|
|
80
|
+
"data-loading": ""
|
|
81
|
+
} : {},
|
|
82
|
+
onClick: _
|
|
46
83
|
}
|
|
47
84
|
});
|
|
48
85
|
}
|
|
49
86
|
//#endregion
|
|
50
|
-
export {
|
|
87
|
+
export { l as Button, s as buttonVariants };
|
|
51
88
|
|
|
52
89
|
//# sourceMappingURL=button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","names":[],"sources":["../../../src/components/ui/button.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"button.js","names":[],"sources":["../../../src/components/ui/button.tsx"],"mappings":";;;;;;;AAOA,IAAM,IAAiB,EACrB,4hBACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,OACE;GACF,aACE;GAUF,SACE;GACF,WAAW;GACX,OAAO;GACP,MAAM;EACR;EAQA,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACJ,MAAM;GACN,WAAW;GACX,WAAW;EACb;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CACF,GAKM,IAA+D;CACnE,SAAS;CACT,MAAM;CACN,IAAI;CACJ,WAAW;CACX,IAAI;CACJ,WAAW;AACb;AAEA,SAAS,EAAO,EACd,cACA,aAAU,WACV,UAAO,WACP,aAAU,IACV,aAAU,IACV,aACA,YACA,QACA,GAAG,KAeA;CAOH,IAAM,KAAe,MAA+C;EAClE,IAAI,GAAS;GAEX,AADA,EAAM,eAAe,GACrB,EAAM,gBAAgB;GACtB;EACF;EACA,IAAU,CAAK;CACjB,GAOM,IACJ,KAAW,CAAC,IACV,kBAAC,QAAD;EACE,aAAU;EACV,WAAU;EAFZ,UAAA,CAIE,kBAAC,QAAD;GACE,aAAU;GACV,WAAU;GAET;EACG,CAAA,GACN,kBAAC,QAAD;GAAM,aAAU;GAAiB,WAAU;GACzC,UAAA,kBAAC,GAAD;IAAS,MAAM,EAA4B,KAAQ;IAAY,OAAO;GAAO,CAAA;EACzE,CAAA,CACF;CAEN,CAAA,IAAA;CAGJ,OAAO,EAAU;EACf,gBAAgB;EACX;EACL,QAAQ,IAAW,EAAM,SAAS,KAAK,CAAQ,IAA2B,KAAA;EAC1E,OAAO;GACL,aAAa;GACb,gBAAgB;GAChB,aAAa;GACb,WAAW,EAAG,EAAe;IAAE;IAAS;GAAK,CAAC,GAAG,CAAS;GAC1D,GAAI,IAAU,CAAC,IAAI,EAAE,UAAU,EAAQ;GACvC,GAAG;GACH,GAAI,IAAU;IAAE,aAAa;IAAM,iBAAiB;IAAM,gBAAgB;GAAG,IAAI,CAAC;GAClF,SAAS;EACX;CACF,CAAC;AACH"}
|
|
@@ -5,7 +5,7 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
5
5
|
function n({ className: n, ...r }) {
|
|
6
6
|
return /* @__PURE__ */ t("div", {
|
|
7
7
|
"data-slot": "card",
|
|
8
|
-
className: e("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-card transition-[box-shadow,border-color] duration-
|
|
8
|
+
className: e("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-card transition-[box-shadow,border-color] duration-base", n),
|
|
9
9
|
...r
|
|
10
10
|
});
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","names":[],"sources":["../../../src/components/ui/card.tsx"],"mappings":";;;;AAIA,SAAS,EAAK,EAAE,cAAW,GAAG,KAAsC;CAClE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"card.js","names":[],"sources":["../../../src/components/ui/card.tsx"],"mappings":";;;;AAIA,SAAS,EAAK,EAAE,cAAW,GAAG,KAAsC;CAClE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EACT,0IACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAsC;CACxE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EACT,4JACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAU,EACjB,cACA,IAAI,IAAY,MAChB,GAAG,KAC6E;CAChF,OAAO,kBAAC,GAAD;EAAW,aAAU;EAAa,WAAW,EAAG,8BAA8B,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC/G;AAEA,SAAS,EAAgB,EAAE,cAAW,GAAG,KAAsC;CAC7E,OAAO,kBAAC,OAAD;EAAK,aAAU;EAAmB,WAAW,EAAG,iCAAiC,CAAS;EAAG,GAAI;CAAQ,CAAA;AAClH;AAEA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAsC;CACxE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EAAG,kEAAkE,CAAS;EACzF,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAAsC;CACzE,OAAO,kBAAC,OAAD;EAAK,aAAU;EAAe,WAAW,EAAG,QAAQ,CAAS;EAAG,GAAI;CAAQ,CAAA;AACrF;AAEA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAsC;CACxE,OACE,kBAAC,OAAD;EAAK,aAAU;EAAc,WAAW,EAAG,2CAA2C,CAAS;EAAG,GAAI;CAAQ,CAAA;AAElH"}
|
|
@@ -6,7 +6,7 @@ function n({ className: n, ...r }) {
|
|
|
6
6
|
return /* @__PURE__ */ t("input", {
|
|
7
7
|
type: "checkbox",
|
|
8
8
|
"data-slot": "checkbox",
|
|
9
|
-
className: e("relative h-4 w-4 shrink-0 rounded-sm border border-input accent-primary", "shadow-sm transition-[color,background-color,border-color,box-shadow] duration-
|
|
9
|
+
className: e("relative h-4 w-4 shrink-0 rounded-sm border border-input accent-primary", "shadow-sm transition-[color,background-color,border-color,box-shadow] duration-control cursor-pointer", "before:absolute before:top-1/2 before:left-1/2 before:size-6 before:-translate-x-1/2 before:-translate-y-1/2 before:content-['']", "enabled:hover:ring-ring/30 enabled:hover:ring-[3px]", "outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", "aria-invalid:ring-[3px] aria-invalid:accent-destructive", "disabled:cursor-not-allowed disabled:opacity-50", n),
|
|
10
10
|
...r
|
|
11
11
|
});
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","names":[],"sources":["../../../src/components/ui/checkbox.tsx"],"mappings":";;;;AAMA,SAAS,EAAS,EAAE,cAAW,GAAG,KAAwB;CACxD,OACE,kBAAC,SAAD;EACE,MAAK;EACL,aAAU;EACV,WAAW,EAIT,2EACA,
|
|
1
|
+
{"version":3,"file":"checkbox.js","names":[],"sources":["../../../src/components/ui/checkbox.tsx"],"mappings":";;;;AAMA,SAAS,EAAS,EAAE,cAAW,GAAG,KAAwB;CACxD,OACE,kBAAC,SAAD;EACE,MAAK;EACL,aAAU;EACV,WAAW,EAIT,2EACA,yGAIA,oIAIA,uDACA,8FACA,0GACA,2DACA,mDACA,CACF;EACA,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -31,7 +31,7 @@ function u({ className: t, ...n }) {
|
|
|
31
31
|
function d({ className: n, children: o, ...s }) {
|
|
32
32
|
return /* @__PURE__ */ i(c, { children: [/* @__PURE__ */ r(u, {}), /* @__PURE__ */ i(a.Popup, {
|
|
33
33
|
"data-slot": "dialog-content",
|
|
34
|
-
className: e("fixed left-[50%] top-[50%] z-[var(--z-modal)] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-modal duration-
|
|
34
|
+
className: e("fixed left-[50%] top-[50%] z-[var(--z-modal)] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-modal duration-base data-[open]:animate-in data-[ending-style]:animate-out data-[ending-style]:fade-out-0 data-[open]:fade-in-0 data-[ending-style]:zoom-out-95 data-[open]:zoom-in-95 data-[ending-style]:slide-out-to-left-1/2 data-[ending-style]:slide-out-to-top-[48%] data-[open]:slide-in-from-left-1/2 data-[open]:slide-in-from-top-[48%] sm:rounded-lg", n),
|
|
35
35
|
...s,
|
|
36
36
|
children: [o, /* @__PURE__ */ r(t, {
|
|
37
37
|
"data-slot": "dialog-close",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","names":[],"sources":["../../../src/components/ui/dialog.tsx"],"mappings":";;;;;;;AAQA,IAAM,IAAS,EAAgB;AAE/B,SAAS,EAAc,EACrB,aAAU,IACV,aACA,GAAG,KAC4E;CAC/E,OACE,kBAAC,EAAgB,SAAjB;EACE,aAAU;EACV,GAAK,IAAU,EAAE,QAAQ,EAAM,SAAS,KAAK,CAAQ,EAAwB,IAAI,EAAE,YAAS;EAC5F,GAAI;CACL,CAAA;AAEL;AAEA,IAAM,IAAe,EAAgB;AAErC,SAAS,EAAY,EACnB,aAAU,IACV,aACA,GAAG,KAC0E;CAC7E,OACE,kBAAC,EAAgB,OAAjB;EACE,aAAU;EACV,GAAK,IAAU,EAAE,QAAQ,EAAM,SAAS,KAAK,CAAQ,EAAwB,IAAI,EAAE,YAAS;EAC5F,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAc,EAAE,cAAW,GAAG,KAAgE;CACrG,OACE,kBAAC,EAAgB,UAAjB;EACE,aAAU;EACV,WAAW,EACT,2JACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAc,EAAE,cAAW,aAAU,GAAG,KAA6D;CAC5G,OACE,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD,CAAgB,CAAA,GAChB,kBAAC,EAAgB,OAAjB;EACE,aAAU;EACV,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"d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I;CACL,CAAA;AAEL;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAA6D;CAChG,OACE,kBAAC,EAAgB,OAAjB;EACE,aAAU;EACV,WAAW,EAAG,qDAAqD,CAAS;EAC5E,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAkB,EAAE,cAAW,GAAG,KAAmE;CAC5G,OACE,kBAAC,EAAgB,aAAjB;EACE,aAAU;EACV,WAAW,EAAG,iCAAiC,CAAS;EACxD,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -6,7 +6,7 @@ function n({ className: n, type: r, ...i }) {
|
|
|
6
6
|
return /* @__PURE__ */ t("input", {
|
|
7
7
|
type: r,
|
|
8
8
|
"data-slot": "input",
|
|
9
|
-
className: e("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-[color,background-color,border-color,box-shadow] duration-
|
|
9
|
+
className: e("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-[color,background-color,border-color,box-shadow] duration-control", "file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground", "placeholder:text-muted-foreground", "hover:border-ring/60", "outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", "disabled:cursor-not-allowed disabled:opacity-50", n),
|
|
10
10
|
...i
|
|
11
11
|
});
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","names":[],"sources":["../../../src/components/ui/input.tsx"],"mappings":";;;;AAMA,SAAS,EAAM,EAAE,cAAW,SAAM,GAAG,KAAqB;CACxD,OACE,kBAAC,SAAD;EACQ;EACN,aAAU;EACV,WAAW,EAGT,
|
|
1
|
+
{"version":3,"file":"input.js","names":[],"sources":["../../../src/components/ui/input.tsx"],"mappings":";;;;AAMA,SAAS,EAAM,EAAE,cAAW,SAAM,GAAG,KAAqB;CACxD,OACE,kBAAC,SAAD;EACQ;EACN,aAAU;EACV,WAAW,EAGT,0KACA,wFACA,qCACA,wBACA,8FACA,0GACA,mDACA,CACF;EACA,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -25,7 +25,7 @@ function a({ className: n, orientation: i = "vertical", ...a }) {
|
|
|
25
25
|
return /* @__PURE__ */ t(r.Scrollbar, {
|
|
26
26
|
"data-slot": "scroll-area-scrollbar",
|
|
27
27
|
orientation: i,
|
|
28
|
-
className: e("flex touch-none select-none opacity-0 transition-[colors,opacity] duration-
|
|
28
|
+
className: e("flex touch-none select-none opacity-0 transition-[colors,opacity] duration-control data-[hovering]:opacity-100 data-[scrolling]:opacity-100", i === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]", i === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]", n),
|
|
29
29
|
...a,
|
|
30
30
|
children: /* @__PURE__ */ t(r.Thumb, {
|
|
31
31
|
"data-slot": "scroll-area-thumb",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-area.js","names":[],"sources":["../../../src/components/ui/scroll-area.tsx"],"mappings":";;;;;;AAOA,SAAS,EAAW,EAAE,cAAW,aAAU,GAAG,KAAgE;CAC5G,OACE,kBAAC,EAAoB,MAArB;EAA0B,aAAU;EAAc,WAAW,EAAG,4BAA4B,CAAS;EAAG,GAAI;EAA5G,UAAA;GACE,kBAAC,EAAoB,UAArB;IACE,aAAU;IACV,WAAU;IACV,UAAU;IAET;GAC2B,CAAA;GAC9B,kBAAC,GAAD,CAAY,CAAA;GACZ,kBAAC,EAAoB,QAArB,CAA6B,CAAA;EACL;;AAE9B;AAEA,SAAS,EAAU,EACjB,cACA,iBAAc,YACd,GAAG,KAC0D;CAC7D,OACE,kBAAC,EAAoB,WAArB;EACE,aAAU;EACG;EACb,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"scroll-area.js","names":[],"sources":["../../../src/components/ui/scroll-area.tsx"],"mappings":";;;;;;AAOA,SAAS,EAAW,EAAE,cAAW,aAAU,GAAG,KAAgE;CAC5G,OACE,kBAAC,EAAoB,MAArB;EAA0B,aAAU;EAAc,WAAW,EAAG,4BAA4B,CAAS;EAAG,GAAI;EAA5G,UAAA;GACE,kBAAC,EAAoB,UAArB;IACE,aAAU;IACV,WAAU;IACV,UAAU;IAET;GAC2B,CAAA;GAC9B,kBAAC,GAAD,CAAY,CAAA;GACZ,kBAAC,EAAoB,QAArB,CAA6B,CAAA;EACL;;AAE9B;AAEA,SAAS,EAAU,EACjB,cACA,iBAAc,YACd,GAAG,KAC0D;CAC7D,OACE,kBAAC,EAAoB,WAArB;EACE,aAAU;EACG;EACb,WAAW,EACT,+IACA,MAAgB,cAAc,sDAC9B,MAAgB,gBAAgB,wDAChC,CACF;EACA,GAAI;EAEJ,UAAA,kBAAC,EAAoB,OAArB;GAA2B,aAAU;GAAoB,WAAU;EAA0C,CAAA;CAChF,CAAA;AAEnC"}
|
|
@@ -53,7 +53,7 @@ function p({ placeholder: e, ...t }) {
|
|
|
53
53
|
function m({ className: t, children: n, ...i }) {
|
|
54
54
|
return /* @__PURE__ */ s(c.Trigger, {
|
|
55
55
|
"data-slot": "select-trigger",
|
|
56
|
-
className: e("flex h-9 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm transition-[color,background-color,border-color,box-shadow] duration-
|
|
56
|
+
className: e("flex h-9 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm transition-[color,background-color,border-color,box-shadow] duration-control placeholder:text-muted-foreground hover:border-ring/60 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 disabled:cursor-not-allowed disabled:opacity-50 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&>span]:line-clamp-1", t),
|
|
57
57
|
...i,
|
|
58
58
|
children: [n, /* @__PURE__ */ o(c.Icon, {
|
|
59
59
|
className: "flex",
|
|
@@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AAA,CAC1C;;AAE1B;AAEA,SAAS,EAAgB,EAAE,cAAW,GAAG,KAAsC;CAC7E,OACE,kBAAC,OAAD;EACE,aAAU;EACV,MAAK;EACL,oBAAiB;EACjB,WAAW,EAAG,4BAA4B,CAAS;EACnD,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content placeholder.
|
|
3
|
+
*
|
|
4
|
+
* Reduced motion — the pulse is dropped entirely rather than left to the
|
|
5
|
+
* global 1ms backstop in theme.css. That backstop stops an animation, but
|
|
6
|
+
* where it stops is arbitrary; `pulse` dips to `opacity: .5`, so a frozen
|
|
7
|
+
* frame can leave a grid of placeholders sitting at inconsistent opacities
|
|
8
|
+
* that reads as a half-loaded page. `motion-reduce:animate-none` instead
|
|
9
|
+
* lands every placeholder on the same flat `bg-accent` block — which is
|
|
10
|
+
* already the thing that says "content is coming", with or without the
|
|
11
|
+
* pulse (issue #180).
|
|
12
|
+
*/
|
|
1
13
|
declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
2
14
|
export { Skeleton };
|
|
@@ -4,7 +4,7 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
4
4
|
function n({ className: n, ...r }) {
|
|
5
5
|
return /* @__PURE__ */ t("div", {
|
|
6
6
|
"data-slot": "skeleton",
|
|
7
|
-
className: e("bg-accent animate-pulse rounded-md", n),
|
|
7
|
+
className: e("bg-accent animate-pulse motion-reduce:animate-none rounded-md", n),
|
|
8
8
|
...r
|
|
9
9
|
});
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.js","names":[],"sources":["../../../src/components/ui/skeleton.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"skeleton.js","names":[],"sources":["../../../src/components/ui/skeleton.tsx"],"mappings":";;;AAcA,SAAS,EAAS,EAAE,cAAW,GAAG,KAAsC;CACtE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EAAG,iEAAiE,CAAS;EACxF,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Size scale is pinned to the button heights it sits inside, so a spinner
|
|
5
|
+
* never has to be hand-sized at the call site:
|
|
6
|
+
*
|
|
7
|
+
* sm 14px Button size="sm" / "icon-sm" (h-8)
|
|
8
|
+
* md 16px Button size="default" / "icon" (h-9) — matches the 16px icon
|
|
9
|
+
* slot every other Button icon lands in
|
|
10
|
+
* lg 20px Button size="lg" / "icon-lg" (h-10)
|
|
11
|
+
*/
|
|
12
|
+
declare const spinnerVariants: (props?: ({
|
|
13
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
14
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
|
+
export interface SpinnerProps extends Omit<React.ComponentProps<"span">, "children">, VariantProps<typeof spinnerVariants> {
|
|
16
|
+
/**
|
|
17
|
+
* Text announced to assistive technology via `role="status"`. Pass `null`
|
|
18
|
+
* for a purely decorative spinner — used when an ancestor already carries
|
|
19
|
+
* the busy semantics (e.g. `<Button loading>`, which owns `aria-busy` and
|
|
20
|
+
* whose accessible name must stay stable).
|
|
21
|
+
*/
|
|
22
|
+
label?: string | null;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Indeterminate progress indicator.
|
|
26
|
+
*
|
|
27
|
+
* Reduced motion — the rotation is not merely stopped, it is REPLACED. The
|
|
28
|
+
* default mark is a three-quarter arc whose entire meaning is carried by the
|
|
29
|
+
* rotation; frozen, it reads as a rendering glitch rather than "pending". So
|
|
30
|
+
* under `prefers-reduced-motion: reduce` the arc is swapped for a complete,
|
|
31
|
+
* dimmed ring: a still frame that is legible as a deliberate placeholder,
|
|
32
|
+
* matching the visual language of the equally static `Skeleton`. The swap is
|
|
33
|
+
* pure CSS (`motion-reduce:`), so it is SSR-safe and cannot hydrate wrong,
|
|
34
|
+
* and the announcement is unaffected — `role="status"` carries the state for
|
|
35
|
+
* assistive technology in both cases, which is what makes dropping the
|
|
36
|
+
* animation acceptable rather than merely quieter.
|
|
37
|
+
*
|
|
38
|
+
* Removing the infinite rotation is also what settles WCAG 2.2.2 (Pause,
|
|
39
|
+
* Stop, Hide): nothing here moves for more than five seconds.
|
|
40
|
+
*/
|
|
41
|
+
declare function Spinner({ className, size, label, ...props }: SpinnerProps): React.JSX.Element;
|
|
42
|
+
export { Spinner, spinnerVariants };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import { Circle as t, LoaderCircle as n } from "lucide-react";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { cva as a } from "class-variance-authority";
|
|
6
|
+
//#region src/components/ui/spinner.tsx
|
|
7
|
+
var o = a("inline-block shrink-0 align-middle", {
|
|
8
|
+
variants: { size: {
|
|
9
|
+
sm: "size-3.5",
|
|
10
|
+
md: "size-4",
|
|
11
|
+
lg: "size-5"
|
|
12
|
+
} },
|
|
13
|
+
defaultVariants: { size: "md" }
|
|
14
|
+
});
|
|
15
|
+
function s({ className: a, size: s = "md", label: c = "Loading", ...l }) {
|
|
16
|
+
let u = c === null;
|
|
17
|
+
return /* @__PURE__ */ i("span", {
|
|
18
|
+
"data-slot": "spinner",
|
|
19
|
+
role: u ? void 0 : "status",
|
|
20
|
+
"aria-hidden": u || void 0,
|
|
21
|
+
className: e(o({ size: s }), a),
|
|
22
|
+
...l,
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ r(n, {
|
|
25
|
+
"data-slot": "spinner-mark",
|
|
26
|
+
"aria-hidden": !0,
|
|
27
|
+
className: "size-full animate-spin motion-reduce:hidden"
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ r(t, {
|
|
30
|
+
"data-slot": "spinner-mark-static",
|
|
31
|
+
"aria-hidden": !0,
|
|
32
|
+
className: "hidden size-full opacity-60 motion-reduce:block"
|
|
33
|
+
}),
|
|
34
|
+
u ? null : /* @__PURE__ */ r("span", {
|
|
35
|
+
className: "sr-only",
|
|
36
|
+
children: c
|
|
37
|
+
})
|
|
38
|
+
]
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { s as Spinner, o as spinnerVariants };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=spinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.js","names":[],"sources":["../../../src/components/ui/spinner.tsx"],"mappings":";;;;;;AAeA,IAAM,IAAkB,EAAI,sCAAsC;CAChE,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;CACN,EACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC;AA8BD,SAAS,EAAQ,EAAE,cAAW,UAAO,MAAM,WAAQ,WAAW,GAAG,KAAuB;CACtF,IAAM,IAAa,MAAU;CAC7B,OACE,kBAAC,QAAD;EACE,aAAU;EACV,MAAM,IAAa,KAAA,IAAY;EAC/B,eAAa,KAAc,KAAA;EAC3B,WAAW,EAAG,EAAgB,EAAE,QAAK,CAAC,GAAG,CAAS;EAClD,GAAI;EALN,UAAA;GAOE,kBAAC,GAAD;IAAc,aAAU;IAAe,eAAA;IAAY,WAAU;GAA+C,CAAA;GAC5G,kBAAC,GAAD;IAAQ,aAAU;IAAsB,eAAA;IAAY,WAAU;GAAmD,CAAA;GAChH,IAAa,OAAO,kBAAC,QAAD;IAAM,WAAU;IAAW,UAAA;GAAY,CAAA;EACxD;;AAEV"}
|
|
@@ -10,7 +10,7 @@ function i({ className: i, ...a }) {
|
|
|
10
10
|
render: /* @__PURE__ */ t("button", { type: "button" }),
|
|
11
11
|
nativeButton: !0,
|
|
12
12
|
"data-slot": "switch",
|
|
13
|
-
className: e("peer data-[checked]:bg-primary data-[unchecked]:bg-muted data-[unchecked]:border-input focus-visible:border-ring focus-visible:ring-ring/50 enabled:hover:ring-ring/30 enabled:hover:ring-[3px] aria-invalid:border-destructive aria-invalid:data-[unchecked]:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 inline-flex h-6 w-11 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-[color,background-color,border-color,box-shadow] duration-
|
|
13
|
+
className: e("peer data-[checked]:bg-primary data-[unchecked]:bg-muted data-[unchecked]:border-input focus-visible:border-ring focus-visible:ring-ring/50 enabled:hover:ring-ring/30 enabled:hover:ring-[3px] aria-invalid:border-destructive aria-invalid:data-[unchecked]:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 inline-flex h-6 w-11 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-[color,background-color,border-color,box-shadow] duration-control outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", i),
|
|
14
14
|
...a,
|
|
15
15
|
children: /* @__PURE__ */ t(n.Thumb, {
|
|
16
16
|
"data-slot": "switch-thumb",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.js","names":[],"sources":["../../../src/components/ui/switch.tsx"],"mappings":";;;;;;AAoBA,IAAM,IACJ;AAEF,SAAS,EAAO,EAAE,cAAW,GAAG,KAA4D;CAC1F,OACE,kBAAC,EAAgB,MAAjB;EAGE,QAAQ,kBAAC,UAAD,EAAQ,MAAK,SAAU,CAAA;EAC/B,cAAA;EACA,aAAU;EACV,WAAW,EAUT,
|
|
1
|
+
{"version":3,"file":"switch.js","names":[],"sources":["../../../src/components/ui/switch.tsx"],"mappings":";;;;;;AAoBA,IAAM,IACJ;AAEF,SAAS,EAAO,EAAE,cAAW,GAAG,KAA4D;CAC1F,OACE,kBAAC,EAAgB,MAAjB;EAGE,QAAQ,kBAAC,UAAD,EAAQ,MAAK,SAAU,CAAA;EAC/B,cAAA;EACA,aAAU;EACV,WAAW,EAUT,0lBACA,CACF;EACA,GAAI;EAEJ,UAAA,kBAAC,EAAgB,OAAjB;GAAuB,aAAU;GAAe,WAAW;EAAiB,CAAA;CACxD,CAAA;AAE1B"}
|
|
@@ -30,7 +30,7 @@ function i({ className: n, ...r }) {
|
|
|
30
30
|
function a({ className: n, ...r }) {
|
|
31
31
|
return /* @__PURE__ */ t("tr", {
|
|
32
32
|
"data-slot": "table-row",
|
|
33
|
-
className: e("border-b transition-colors duration-
|
|
33
|
+
className: e("border-b transition-colors duration-control hover:bg-muted/50", n),
|
|
34
34
|
...r
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","names":[],"sources":["../../../src/components/ui/table.tsx"],"mappings":";;;;AASA,SAAS,EAAM,EAAE,cAAW,GAAG,KAAwC;CACrE,OACE,kBAAC,OAAD;EAAK,aAAU;EAAkB,WAAU;EACzC,UAAA,kBAAC,SAAD;GAAO,aAAU;GAAQ,WAAW,EAAG,iCAAiC,CAAS;GAAG,GAAI;EAAQ,CAAA;CAC7F,CAAA;AAET;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAAwC;CAC3E,OAAO,kBAAC,SAAD;EAAO,aAAU;EAAe,WAAW,EAAG,mBAAmB,CAAS;EAAG,GAAI;CAAQ,CAAA;AAClG;AAEA,SAAS,EAAU,EAAE,cAAW,GAAG,KAAwC;CACzE,OAAO,kBAAC,SAAD;EAAO,aAAU;EAAa,WAAW,EAAG,8BAA8B,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC3G;AAEA,SAAS,EAAS,EAAE,cAAW,GAAG,KAAqC;CACrE,OACE,kBAAC,MAAD;EACE,aAAU;EACV,WAAW,EAAG,
|
|
1
|
+
{"version":3,"file":"table.js","names":[],"sources":["../../../src/components/ui/table.tsx"],"mappings":";;;;AASA,SAAS,EAAM,EAAE,cAAW,GAAG,KAAwC;CACrE,OACE,kBAAC,OAAD;EAAK,aAAU;EAAkB,WAAU;EACzC,UAAA,kBAAC,SAAD;GAAO,aAAU;GAAQ,WAAW,EAAG,iCAAiC,CAAS;GAAG,GAAI;EAAQ,CAAA;CAC7F,CAAA;AAET;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAAwC;CAC3E,OAAO,kBAAC,SAAD;EAAO,aAAU;EAAe,WAAW,EAAG,mBAAmB,CAAS;EAAG,GAAI;CAAQ,CAAA;AAClG;AAEA,SAAS,EAAU,EAAE,cAAW,GAAG,KAAwC;CACzE,OAAO,kBAAC,SAAD;EAAO,aAAU;EAAa,WAAW,EAAG,8BAA8B,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC3G;AAEA,SAAS,EAAS,EAAE,cAAW,GAAG,KAAqC;CACrE,OACE,kBAAC,MAAD;EACE,aAAU;EACV,WAAW,EAAG,iEAAiE,CAAS;EACxF,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAU,EAAE,cAAW,GAAG,KAAqC;CACtE,OACE,kBAAC,MAAD;EACE,aAAU;EACV,WAAW,EAAG,qEAAqE,CAAS;EAC5F,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAU,EAAE,cAAW,GAAG,KAAqC;CACtE,OAAO,kBAAC,MAAD;EAAI,aAAU;EAAa,WAAW,EAAG,oBAAoB,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC9F"}
|
|
@@ -20,7 +20,7 @@ function i({ className: r, ...i }) {
|
|
|
20
20
|
function a({ className: r, ...i }) {
|
|
21
21
|
return /* @__PURE__ */ t(n.Tab, {
|
|
22
22
|
"data-slot": "tabs-trigger",
|
|
23
|
-
className: e("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-[color,background-color,box-shadow] duration-
|
|
23
|
+
className: e("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-[color,background-color,box-shadow] duration-base outline-none not-data-[active]:hover:bg-background/50 not-data-[active]:hover:text-foreground focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-background data-[active]:text-foreground data-[active]:shadow-sm", r),
|
|
24
24
|
...i
|
|
25
25
|
});
|
|
26
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.js","names":[],"sources":["../../../src/components/ui/tabs.tsx"],"mappings":";;;;;;AAOA,SAAS,EAAK,EAAE,GAAG,KAA0D;CAC3E,OAAO,kBAAC,EAAc,MAAf;EAAoB,aAAU;EAAO,GAAI;CAAQ,CAAA;AAC1D;AAEA,SAAS,EAAS,EAAE,cAAW,GAAG,KAA0D;CAC1F,OACE,kBAAC,EAAc,MAAf;EACE,aAAU;EACV,WAAW,EACT,8FACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAAyD;CAC5F,OACE,kBAAC,EAAc,KAAf;EACE,aAAU;EACV,WAAW,EAIT,
|
|
1
|
+
{"version":3,"file":"tabs.js","names":[],"sources":["../../../src/components/ui/tabs.tsx"],"mappings":";;;;;;AAOA,SAAS,EAAK,EAAE,GAAG,KAA0D;CAC3E,OAAO,kBAAC,EAAc,MAAf;EAAoB,aAAU;EAAO,GAAI;CAAQ,CAAA;AAC1D;AAEA,SAAS,EAAS,EAAE,cAAW,GAAG,KAA0D;CAC1F,OACE,kBAAC,EAAc,MAAf;EACE,aAAU;EACV,WAAW,EACT,8FACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAAyD;CAC5F,OACE,kBAAC,EAAc,KAAf;EACE,aAAU;EACV,WAAW,EAIT,0bACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAA2D;CAC9F,OACE,kBAAC,EAAc,OAAf;EACE,aAAU;EACV,WAAW,EAAG,yEAAyE,CAAS;EAChG,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -5,7 +5,7 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
5
5
|
function n({ className: n, ...r }) {
|
|
6
6
|
return /* @__PURE__ */ t("textarea", {
|
|
7
7
|
"data-slot": "textarea",
|
|
8
|
-
className: e("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm transition-[color,background-color,border-color,box-shadow] duration-
|
|
8
|
+
className: e("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm transition-[color,background-color,border-color,box-shadow] duration-control", "placeholder:text-muted-foreground", "hover:border-ring/60", "outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", "disabled:cursor-not-allowed disabled:opacity-50", n),
|
|
9
9
|
...r
|
|
10
10
|
});
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.js","names":[],"sources":["../../../src/components/ui/textarea.tsx"],"mappings":";;;;AAIA,SAAS,EAAS,EAAE,cAAW,GAAG,KAA2C;CAC3E,OACE,kBAAC,YAAD;EACE,aAAU;EACV,WAAW,EACT
|
|
1
|
+
{"version":3,"file":"textarea.js","names":[],"sources":["../../../src/components/ui/textarea.tsx"],"mappings":";;;;AAIA,SAAS,EAAS,EAAE,cAAW,GAAG,KAA2C;CAC3E,OACE,kBAAC,YAAD;EACE,aAAU;EACV,WAAW,EACT,mLACA,qCACA,wBACA,8FACA,0GACA,mDACA,CACF;EACA,GAAI;CACL,CAAA;AAEL"}
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export * from "./components/ui/select";
|
|
|
33
33
|
export * from "./components/ui/sheet";
|
|
34
34
|
export * from "./components/ui/skeleton";
|
|
35
35
|
export * from "./components/ui/slider";
|
|
36
|
+
export * from "./components/ui/spinner";
|
|
36
37
|
export * from "./components/ui/stack";
|
|
37
38
|
export * from "./components/ui/switch";
|
|
38
39
|
export * from "./components/ui/table";
|
package/dist/index.js
CHANGED
|
@@ -1,64 +1,65 @@
|
|
|
1
1
|
import { cn as e } from "./lib/utils.js";
|
|
2
2
|
import { Accordion as t, AccordionContent as n, AccordionItem as r, AccordionTrigger as i } from "./components/ui/accordion.js";
|
|
3
3
|
import { Alert as a, AlertDescription as o, AlertTitle as s, alertVariants as c } from "./components/ui/alert.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import xe from "./components/ui/
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
|
|
4
|
+
import { Spinner as l, spinnerVariants as u } from "./components/ui/spinner.js";
|
|
5
|
+
import { Button as d, buttonVariants as f } from "./components/ui/button.js";
|
|
6
|
+
import { AlertDialog as p, AlertDialogAction as m, AlertDialogCancel as h, AlertDialogContent as g, AlertDialogDescription as _, AlertDialogFooter as v, AlertDialogHeader as y, AlertDialogOverlay as b, AlertDialogPortal as x, AlertDialogTitle as S, AlertDialogTrigger as C } from "./components/ui/alert-dialog.js";
|
|
7
|
+
import { Aurora as w } from "./components/ui/aurora.js";
|
|
8
|
+
import { Badge as T, badgeVariants as E } from "./components/ui/badge.js";
|
|
9
|
+
import { Box as D } from "./components/ui/box.js";
|
|
10
|
+
import { Card as O, CardAction as k, CardContent as A, CardDescription as j, CardFooter as M, CardHeader as N, CardTitle as P } from "./components/ui/card.js";
|
|
11
|
+
import { Checkbox as F } from "./components/ui/checkbox.js";
|
|
12
|
+
import { Code as I } from "./components/ui/code.js";
|
|
13
|
+
import { Collapsible as L, CollapsibleContent as R, CollapsibleTrigger as z } from "./components/ui/collapsible.js";
|
|
14
|
+
import { Dialog as B, DialogClose as V, DialogContent as H, DialogDescription as U, DialogFooter as W, DialogHeader as G, DialogOverlay as K, DialogPortal as q, DialogTitle as J, DialogTrigger as Y } from "./components/ui/dialog.js";
|
|
15
|
+
import { DropdownMenu as X, DropdownMenuCheckboxItem as Z, DropdownMenuContent as Q, DropdownMenuGroup as $, DropdownMenuItem as ee, DropdownMenuLabel as te, DropdownMenuPortal as ne, DropdownMenuRadioGroup as re, DropdownMenuRadioItem as ie, DropdownMenuSeparator as ae, DropdownMenuShortcut as oe, DropdownMenuSub as se, DropdownMenuSubContent as ce, DropdownMenuSubTrigger as le, DropdownMenuTrigger as ue } from "./components/ui/dropdown-menu.js";
|
|
16
|
+
import { EmptyState as de } from "./components/ui/empty-state.js";
|
|
17
|
+
import { Flex as fe, flexVariants as pe } from "./components/ui/flex.js";
|
|
18
|
+
import { Grid as me, gridVariants as he } from "./components/ui/grid.js";
|
|
19
|
+
import { Heading as ge, headingVariants as _e } from "./components/ui/heading.js";
|
|
20
|
+
import { Input as ve } from "./components/ui/input.js";
|
|
21
|
+
import { Label as ye } from "./components/ui/label.js";
|
|
22
|
+
import { List as be, ListItem as xe, listVariants as Se } from "./components/ui/list.js";
|
|
23
|
+
import Ce from "./components/ui/react-bits/decrypted-text.js";
|
|
24
|
+
import we from "./components/ui/react-bits/fade-content.js";
|
|
25
|
+
import { ScrollArea as Te, ScrollBar as Ee } from "./components/ui/scroll-area.js";
|
|
26
|
+
import { Select as De, SelectContent as Oe, SelectGroup as ke, SelectItem as Ae, SelectLabel as je, SelectScrollDownButton as Me, SelectScrollUpButton as Ne, SelectSeparator as Pe, SelectTrigger as Fe, SelectValue as Ie } from "./components/ui/select.js";
|
|
27
|
+
import { Sheet as Le, SheetClose as Re, SheetContent as ze, SheetDescription as Be, SheetFooter as Ve, SheetHeader as He, SheetOverlay as Ue, SheetPortal as We, SheetTitle as Ge, SheetTrigger as Ke } from "./components/ui/sheet.js";
|
|
28
|
+
import { Skeleton as qe } from "./components/ui/skeleton.js";
|
|
29
|
+
import { Slider as Je } from "./components/ui/slider.js";
|
|
30
|
+
import { Stack as Ye, stackVariants as Xe } from "./components/ui/stack.js";
|
|
31
|
+
import { Switch as Ze } from "./components/ui/switch.js";
|
|
32
|
+
import { Table as Qe, TableBody as $e, TableCell as et, TableHead as tt, TableHeader as nt, TableRow as rt } from "./components/ui/table.js";
|
|
33
|
+
import { Tabs as it, TabsContent as at, TabsList as ot, TabsTrigger as st } from "./components/ui/tabs.js";
|
|
34
|
+
import { Text as ct, textVariants as lt } from "./components/ui/text.js";
|
|
35
|
+
import { TextLink as ut } from "./components/ui/text-link.js";
|
|
36
|
+
import { Textarea as dt } from "./components/ui/textarea.js";
|
|
37
|
+
import { Tooltip as ft, TooltipContent as pt, TooltipProvider as mt, TooltipTrigger as ht } from "./components/ui/tooltip.js";
|
|
38
|
+
import { BoardIcon as gt } from "./components/chrome/board-icon.js";
|
|
39
|
+
import { BoardSelector as _t } from "./components/chrome/board-selector.js";
|
|
40
|
+
import { FIESTA_ICON_DATA_URI as vt, FIESTA_ICON_PALETTE as yt, FIESTA_ICON_SVG as bt, FiestaIcon as xt } from "./components/chrome/fiesta-icon.js";
|
|
41
|
+
import { FiestaLogo as St } from "./components/chrome/fiesta-logo.js";
|
|
42
|
+
import { LanguageSelector as Ct } from "./components/chrome/language-selector.js";
|
|
43
|
+
import { MainContent as wt } from "./components/chrome/main-content.js";
|
|
44
|
+
import { PageHeader as Tt, PageIconGradientDefs as Et } from "./components/chrome/page-header.js";
|
|
45
|
+
import { PageLayout as Dt } from "./components/chrome/page-layout.js";
|
|
46
|
+
import { PageToolbar as Ot } from "./components/chrome/page-toolbar.js";
|
|
47
|
+
import { SidebarAurora as kt } from "./components/seasons/sidebar-aurora.js";
|
|
48
|
+
import { SidebarAuroraHorizontal as At } from "./components/seasons/sidebar-aurora-horizontal.js";
|
|
49
|
+
import { Sidebar as jt } from "./components/chrome/sidebar.js";
|
|
50
|
+
import { SkipToContent as Mt } from "./components/chrome/skip-to-content.js";
|
|
51
|
+
import { ThemeToggle as Nt } from "./components/chrome/theme-toggle.js";
|
|
52
|
+
import { HIDE_FESTIVE_COOKIE as Pt, PRIDE_SEASON as Ft, SEASONS as It, fireSeasonBurst as Lt, getActiveSeason as Rt, readCookieString as zt, shouldShowPride as Bt, useActiveSeason as Vt, usePrideActive as Ht } from "./lib/seasons.js";
|
|
53
|
+
import { ALL_COLOR_CODES as Ut, AVAILABLE_COLORS as Wt, BOARD_COLORS as Gt, COLOR_CODE_MAP as Kt, COLOR_DISPLAY as qt, getBoardColor as Jt, isValidBoardColor as Yt, resolveColorCode as Xt } from "./lib/board-colors.js";
|
|
54
|
+
import { BOARD_CHARS as Zt, EXTRA_CHARS as Qt, getCharFromToken as $t, getCharIndex as en, isColorTile as tn, messageToGrid as nn, parseLine as rn, tokensEqual as an } from "./lib/board-characters.js";
|
|
55
|
+
import { DEVICE_DIMENSIONS as on, MAX_NOTES_PER_AXIS as sn, NOTE_COLS as cn, NOTE_ROWS as ln, isNoteArray as un, noteArrayDimensions as dn, resolveDimensions as fn } from "./lib/board-dimensions.js";
|
|
56
|
+
import { BoardDisplay as pn } from "./components/board/board-display.js";
|
|
57
|
+
import { BoardTeaser as mn } from "./components/board/board-teaser.js";
|
|
58
|
+
import { ScaledBoardDisplay as hn } from "./components/board/scaled-board-display.js";
|
|
59
|
+
import { StaticBoardDisplay as gn } from "./components/board/static-board-display.js";
|
|
60
|
+
import { DEFAULT_SHAPE_LABELS as _n, previewLabel as vn, previewLabels as yn, previewMessage as bn } from "./lib/board-previews.js";
|
|
61
|
+
import { BoardShowcase as xn, DEFAULT_SHOWCASE_LABELS as Sn } from "./components/plugin/board-showcase.js";
|
|
62
|
+
import { PLUGIN_CATEGORIES as Cn, PluginCategoryBadge as wn } from "./components/plugin/plugin-category-badge.js";
|
|
63
|
+
import { ScaledBoardTeaser as Tn } from "./components/plugin/scaled-board-teaser.js";
|
|
64
|
+
import { PluginCard as En } from "./components/plugin/plugin-card.js";
|
|
65
|
+
export { Ut as ALL_COLOR_CODES, Wt as AVAILABLE_COLORS, t as Accordion, n as AccordionContent, r as AccordionItem, i as AccordionTrigger, a as Alert, o as AlertDescription, p as AlertDialog, m as AlertDialogAction, h as AlertDialogCancel, g as AlertDialogContent, _ as AlertDialogDescription, v as AlertDialogFooter, y as AlertDialogHeader, b as AlertDialogOverlay, x as AlertDialogPortal, S as AlertDialogTitle, C as AlertDialogTrigger, s as AlertTitle, w as Aurora, Zt as BOARD_CHARS, Gt as BOARD_COLORS, T as Badge, pn as BoardDisplay, gt as BoardIcon, _t as BoardSelector, xn as BoardShowcase, mn as BoardTeaser, D as Box, d as Button, Kt as COLOR_CODE_MAP, qt as COLOR_DISPLAY, O as Card, k as CardAction, A as CardContent, j as CardDescription, M as CardFooter, N as CardHeader, P as CardTitle, F as Checkbox, I as Code, L as Collapsible, R as CollapsibleContent, z as CollapsibleTrigger, _n as DEFAULT_SHAPE_LABELS, Sn as DEFAULT_SHOWCASE_LABELS, on as DEVICE_DIMENSIONS, Ce as DecryptedText, B as Dialog, V as DialogClose, H as DialogContent, U as DialogDescription, W as DialogFooter, G as DialogHeader, K as DialogOverlay, q as DialogPortal, J as DialogTitle, Y as DialogTrigger, X as DropdownMenu, Z as DropdownMenuCheckboxItem, Q as DropdownMenuContent, $ as DropdownMenuGroup, ee as DropdownMenuItem, te as DropdownMenuLabel, ne as DropdownMenuPortal, re as DropdownMenuRadioGroup, ie as DropdownMenuRadioItem, ae as DropdownMenuSeparator, oe as DropdownMenuShortcut, se as DropdownMenuSub, ce as DropdownMenuSubContent, le as DropdownMenuSubTrigger, ue as DropdownMenuTrigger, Qt as EXTRA_CHARS, de as EmptyState, vt as FIESTA_ICON_DATA_URI, yt as FIESTA_ICON_PALETTE, bt as FIESTA_ICON_SVG, we as FadeContent, xt as FiestaIcon, St as FiestaLogo, fe as Flex, me as Grid, Pt as HIDE_FESTIVE_COOKIE, ge as Heading, ve as Input, ye as Label, Ct as LanguageSelector, be as List, xe as ListItem, sn as MAX_NOTES_PER_AXIS, wt as MainContent, cn as NOTE_COLS, ln as NOTE_ROWS, Cn as PLUGIN_CATEGORIES, Ft as PRIDE_SEASON, Tt as PageHeader, Et as PageIconGradientDefs, Dt as PageLayout, Ot as PageToolbar, En as PluginCard, wn as PluginCategoryBadge, It as SEASONS, hn as ScaledBoardDisplay, Tn as ScaledBoardTeaser, Te as ScrollArea, Ee as ScrollBar, De as Select, Oe as SelectContent, ke as SelectGroup, Ae as SelectItem, je as SelectLabel, Me as SelectScrollDownButton, Ne as SelectScrollUpButton, Pe as SelectSeparator, Fe as SelectTrigger, Ie as SelectValue, Le as Sheet, Re as SheetClose, ze as SheetContent, Be as SheetDescription, Ve as SheetFooter, He as SheetHeader, Ue as SheetOverlay, We as SheetPortal, Ge as SheetTitle, Ke as SheetTrigger, jt as Sidebar, kt as SidebarAurora, At as SidebarAuroraHorizontal, qe as Skeleton, Mt as SkipToContent, Je as Slider, l as Spinner, Ye as Stack, gn as StaticBoardDisplay, Ze as Switch, Qe as Table, $e as TableBody, et as TableCell, tt as TableHead, nt as TableHeader, rt as TableRow, it as Tabs, at as TabsContent, ot as TabsList, st as TabsTrigger, ct as Text, ut as TextLink, dt as Textarea, Nt as ThemeToggle, ft as Tooltip, pt as TooltipContent, mt as TooltipProvider, ht as TooltipTrigger, c as alertVariants, E as badgeVariants, f as buttonVariants, e as cn, Lt as fireSeasonBurst, pe as flexVariants, Rt as getActiveSeason, Jt as getBoardColor, $t as getCharFromToken, en as getCharIndex, he as gridVariants, _e as headingVariants, tn as isColorTile, un as isNoteArray, Yt as isValidBoardColor, Se as listVariants, nn as messageToGrid, dn as noteArrayDimensions, rn as parseLine, vn as previewLabel, yn as previewLabels, bn as previewMessage, zt as readCookieString, Xt as resolveColorCode, fn as resolveDimensions, Bt as shouldShowPride, u as spinnerVariants, Xe as stackVariants, lt as textVariants, an as tokensEqual, Vt as useActiveSeason, Ht as usePrideActive };
|
package/dist/theme.css
CHANGED
|
@@ -151,6 +151,42 @@
|
|
|
151
151
|
--shadow-card: var(--elevation-card);
|
|
152
152
|
--shadow-card-hover: var(--elevation-card-hover);
|
|
153
153
|
--shadow-modal: var(--elevation-modal);
|
|
154
|
+
|
|
155
|
+
/* ============================================================
|
|
156
|
+
* Motion scale → Tailwind utilities (issue #182).
|
|
157
|
+
*
|
|
158
|
+
* The `duration-*` utility resolves through the `--transition-duration-*`
|
|
159
|
+
* namespace and `ease-*` through `--ease-*` (Tailwind v4). Exporting the
|
|
160
|
+
* motion tokens here is what makes `duration-base` in a component and
|
|
161
|
+
* `var(--motion-duration-base)` in this file the SAME number — retuning a
|
|
162
|
+
* token in :root now moves the component layer with it, instead of the two
|
|
163
|
+
* silently drifting apart (which raw `duration-200` allowed).
|
|
164
|
+
*
|
|
165
|
+
* Declared inside `@theme inline`, so a utility emits
|
|
166
|
+
* `transition-duration: var(--motion-duration-base)` rather than a baked
|
|
167
|
+
* copy of `200ms` — the indirection is what carries a retune through.
|
|
168
|
+
*
|
|
169
|
+
* Bare numeric durations (`duration-200`) still compile; they are banned in
|
|
170
|
+
* src/components by scripts/ci/tests/no-bare-duration-utility.test.mjs.
|
|
171
|
+
*
|
|
172
|
+
* Not exported on purpose:
|
|
173
|
+
* --motion-ease-out (`ease-out`) — Tailwind already ships `--ease-out`
|
|
174
|
+
* with a DIFFERENT curve (cubic-bezier(0, 0, 0.2, 1)). Overriding it
|
|
175
|
+
* would silently retime every existing `ease-out` utility, so the
|
|
176
|
+
* keyword stays a CSS-only token.
|
|
177
|
+
* --motion-ease-in — identical to Tailwind's stock `--ease-in`
|
|
178
|
+
* (cubic-bezier(0.4, 0, 1, 1)), so `ease-in` is already on-scale.
|
|
179
|
+
* ============================================================ */
|
|
180
|
+
--transition-duration-fast: var(--motion-duration-fast);
|
|
181
|
+
--transition-duration-control: var(--motion-duration-control);
|
|
182
|
+
--transition-duration-base: var(--motion-duration-base);
|
|
183
|
+
--transition-duration-exit: var(--motion-duration-exit);
|
|
184
|
+
--transition-duration-slow: var(--motion-duration-slow);
|
|
185
|
+
--transition-duration-slower: var(--motion-duration-slower);
|
|
186
|
+
--transition-duration-slowest: var(--motion-duration-slowest);
|
|
187
|
+
--ease-spring: var(--motion-ease-spring);
|
|
188
|
+
--ease-out-cubic: var(--motion-ease-out-cubic);
|
|
189
|
+
--ease-standard: var(--motion-ease-standard);
|
|
154
190
|
}
|
|
155
191
|
|
|
156
192
|
:root {
|
|
@@ -313,6 +349,10 @@
|
|
|
313
349
|
* Deliberately left inline (true one-offs): 117s sidebar gradient
|
|
314
350
|
* flow, 220ms board-switch exits, 0.8s pride-burst, 1s card-fade-in,
|
|
315
351
|
* 50ms page-toolbar stagger delay.
|
|
352
|
+
*
|
|
353
|
+
* The component layer reaches these through Tailwind utilities
|
|
354
|
+
* (`duration-base`, `ease-spring`, …), not raw `duration-200` — see the
|
|
355
|
+
* motion export block in `@theme inline` at the top of this file.
|
|
316
356
|
* ============================================================ */
|
|
317
357
|
--motion-duration-fast: 100ms;
|
|
318
358
|
--motion-duration-control: 150ms;
|
|
@@ -1300,3 +1340,64 @@ html[data-board-switch="backward"]::view-transition-new(board-page) {
|
|
|
1300
1340
|
transition: none !important;
|
|
1301
1341
|
}
|
|
1302
1342
|
}
|
|
1343
|
+
|
|
1344
|
+
/* ============================================================
|
|
1345
|
+
* Reduced-motion backstop (issue #180)
|
|
1346
|
+
*
|
|
1347
|
+
* The blocks above gate the animations this file OWNS. Three sources of
|
|
1348
|
+
* motion are structurally out of their reach, and all three shipped
|
|
1349
|
+
* running under `prefers-reduced-motion: reduce`:
|
|
1350
|
+
*
|
|
1351
|
+
* 1. Tailwind utilities — `animate-pulse` (Skeleton) and `animate-spin`
|
|
1352
|
+
* carry no motion gate, and both are INFINITE, which also engages
|
|
1353
|
+
* WCAG 2.2.2 (Pause, Stop, Hide).
|
|
1354
|
+
* 2. tw-animate-css — its `enter`/`exit` keyframes (Dialog, AlertDialog,
|
|
1355
|
+
* Select, Tooltip …) contain no `prefers-reduced-motion` rule at all.
|
|
1356
|
+
* 3. Inline `style` animations — `sheet.tsx` sets `animation` as an
|
|
1357
|
+
* element style, which no ordinary CSS rule can reach. `!important`
|
|
1358
|
+
* can: it outranks the style attribute.
|
|
1359
|
+
*
|
|
1360
|
+
* Hence the universal rule. 1ms rather than 0s on purpose: a zero-length
|
|
1361
|
+
* animation/transition is skipped entirely by some engines, which would
|
|
1362
|
+
* silently drop the `animationend`/`transitionend` that Base UI waits on
|
|
1363
|
+
* before unmounting an exiting popup. 1ms still fires the event on the
|
|
1364
|
+
* next frame, so anything gated on completion still completes; anything
|
|
1365
|
+
* animating in from `opacity: 0` still lands at `opacity: 1`.
|
|
1366
|
+
*
|
|
1367
|
+
* This is a BACKSTOP, not the whole answer. Where a frozen frame is worse
|
|
1368
|
+
* than a bespoke pose, the component states it itself and wins by being
|
|
1369
|
+
* more specific — Skeleton uses `motion-reduce:animate-none` for a static
|
|
1370
|
+
* `bg-accent` placeholder rather than an arbitrary mid-pulse frame, and
|
|
1371
|
+
* Spinner swaps its rotating arc for a static complete ring.
|
|
1372
|
+
* ============================================================ */
|
|
1373
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1374
|
+
*,
|
|
1375
|
+
*::before,
|
|
1376
|
+
*::after {
|
|
1377
|
+
animation-duration: 1ms !important;
|
|
1378
|
+
animation-iteration-count: 1 !important;
|
|
1379
|
+
transition-duration: 1ms !important;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
/* Exemption: these two must read back EXACTLY 0s.
|
|
1383
|
+
`main-content.tsx` gates its FLIP slide on
|
|
1384
|
+
`parseFloat(getComputedStyle(shift).transitionDuration) === 0`, then —
|
|
1385
|
+
once past that gate — pins `overflow-x: clip` on <main> until a
|
|
1386
|
+
`transitionend` for `transform` clears it. The reduced-motion rule
|
|
1387
|
+
above keeps `transition-property: none`, so that event never arrives;
|
|
1388
|
+
leaving the universal 1ms in place would push the computed duration to
|
|
1389
|
+
0.001s, defeat the `=== 0` early return, and strand the clip. Keeping
|
|
1390
|
+
the shorthand (specificity 0,1,0 beats `*`) restores 0s. */
|
|
1391
|
+
.sidebar-transition,
|
|
1392
|
+
.content-shift {
|
|
1393
|
+
transition: none !important;
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
/* Same exemption for the app's `.reduce-motion` class: when the OS
|
|
1398
|
+
preference and the class are both set the universal rule above applies,
|
|
1399
|
+
so the class-based freeze needs `!important` too. */
|
|
1400
|
+
.reduce-motion .sidebar-transition,
|
|
1401
|
+
.reduce-motion .content-shift {
|
|
1402
|
+
transition: none !important;
|
|
1403
|
+
}
|