@almanaclabs/blaze-ui 0.3.0 → 0.3.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/README.md +2 -2
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/index.js +110 -110
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Shared React components and semantic design tokens for Blaze.
|
|
4
4
|
|
|
5
5
|
The components use shadcn's `b0` preset: Base UI primitives, the Nova style,
|
|
6
|
-
neutral colors, Inter, and
|
|
7
|
-
package so Blaze-specific changes stay reviewable.
|
|
6
|
+
neutral colors, Inter, and Tabler outline and filled icons. Component source is
|
|
7
|
+
owned by this package so Blaze-specific changes stay reviewable.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare function Spinner({ className, ...props }: React.
|
|
1
|
+
declare function Spinner({ className, ...props }: React.ComponentPropsWithoutRef<'svg'>): import("react").JSX.Element;
|
|
2
2
|
export { Spinner };
|
|
3
3
|
//# sourceMappingURL=spinner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/spinner.tsx"],"names":[],"mappings":"AAGA,iBAAS,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/spinner.tsx"],"names":[],"mappings":"AAGA,iBAAS,OAAO,CAAC,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,+BAUvC;AAED,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -8,16 +8,16 @@ import { useMemo as c } from "react";
|
|
|
8
8
|
import { Separator as l } from "@base-ui/react/separator";
|
|
9
9
|
import { Input as u } from "@base-ui/react/input";
|
|
10
10
|
import { Accordion as d } from "@base-ui/react/accordion";
|
|
11
|
-
import {
|
|
12
|
-
import { AlertDialog as
|
|
13
|
-
import { mergeProps as
|
|
14
|
-
import { useRender as
|
|
15
|
-
import { Avatar as
|
|
16
|
-
import { DayPicker as
|
|
17
|
-
import
|
|
18
|
-
import * as
|
|
19
|
-
import { Checkbox as
|
|
20
|
-
import { Collapsible as
|
|
11
|
+
import { IconAlertOctagon as f, IconAlertTriangle as p, IconCalendar as m, IconCheck as h, IconChevronDown as g, IconChevronLeft as _, IconChevronRight as v, IconChevronUp as y, IconCircleCheck as b, IconDots as x, IconInfoCircle as ee, IconLayoutSidebar as S, IconLoader2 as C, IconX as w } from "@tabler/icons-react";
|
|
12
|
+
import { AlertDialog as T } from "@base-ui/react/alert-dialog";
|
|
13
|
+
import { mergeProps as E } from "@base-ui/react/merge-props";
|
|
14
|
+
import { useRender as D } from "@base-ui/react/use-render";
|
|
15
|
+
import { Avatar as O } from "@base-ui/react/avatar";
|
|
16
|
+
import { DayPicker as k, getDefaultClassNames as te } from "react-day-picker";
|
|
17
|
+
import ne from "embla-carousel-react";
|
|
18
|
+
import * as A from "recharts";
|
|
19
|
+
import { Checkbox as re } from "@base-ui/react/checkbox";
|
|
20
|
+
import { Collapsible as ie } from "@base-ui/react/collapsible";
|
|
21
21
|
import { Combobox as j } from "@base-ui/react";
|
|
22
22
|
import { flexRender as ae, getCoreRowModel as oe, useReactTable as se } from "@tanstack/react-table";
|
|
23
23
|
import { format as ce } from "date-fns";
|
|
@@ -291,11 +291,11 @@ function Re({ className: e, children: t, ...n }) {
|
|
|
291
291
|
...n,
|
|
292
292
|
children: [
|
|
293
293
|
t,
|
|
294
|
-
/* @__PURE__ */ a(
|
|
294
|
+
/* @__PURE__ */ a(g, {
|
|
295
295
|
"data-slot": "accordion-trigger-icon",
|
|
296
296
|
className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"
|
|
297
297
|
}),
|
|
298
|
-
/* @__PURE__ */ a(
|
|
298
|
+
/* @__PURE__ */ a(y, {
|
|
299
299
|
"data-slot": "accordion-trigger-icon",
|
|
300
300
|
className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline"
|
|
301
301
|
})
|
|
@@ -355,32 +355,32 @@ function We({ className: e, ...t }) {
|
|
|
355
355
|
//#endregion
|
|
356
356
|
//#region src/components/alert-dialog/alert-dialog.tsx
|
|
357
357
|
function Ge({ ...e }) {
|
|
358
|
-
return /* @__PURE__ */ a(
|
|
358
|
+
return /* @__PURE__ */ a(T.Root, {
|
|
359
359
|
"data-slot": "alert-dialog",
|
|
360
360
|
...e
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
363
|
function Ke({ ...e }) {
|
|
364
|
-
return /* @__PURE__ */ a(
|
|
364
|
+
return /* @__PURE__ */ a(T.Trigger, {
|
|
365
365
|
"data-slot": "alert-dialog-trigger",
|
|
366
366
|
...e
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
369
|
function qe({ ...e }) {
|
|
370
|
-
return /* @__PURE__ */ a(
|
|
370
|
+
return /* @__PURE__ */ a(T.Portal, {
|
|
371
371
|
"data-slot": "alert-dialog-portal",
|
|
372
372
|
...e
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
function Je({ className: e, ...t }) {
|
|
376
|
-
return /* @__PURE__ */ a(
|
|
376
|
+
return /* @__PURE__ */ a(T.Backdrop, {
|
|
377
377
|
"data-slot": "alert-dialog-overlay",
|
|
378
378
|
className: W("fixed inset-0 isolate z-50 bg-foreground/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
|
|
379
379
|
...t
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
382
|
function Ye({ className: e, size: t = "default", ...n }) {
|
|
383
|
-
return /* @__PURE__ */ o(qe, { children: [/* @__PURE__ */ a(Je, {}), /* @__PURE__ */ a(
|
|
383
|
+
return /* @__PURE__ */ o(qe, { children: [/* @__PURE__ */ a(Je, {}), /* @__PURE__ */ a(T.Popup, {
|
|
384
384
|
"data-slot": "alert-dialog-content",
|
|
385
385
|
"data-size": t,
|
|
386
386
|
className: W("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
|
|
@@ -409,14 +409,14 @@ function Qe({ className: e, ...t }) {
|
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
function $e({ className: e, ...t }) {
|
|
412
|
-
return /* @__PURE__ */ a(
|
|
412
|
+
return /* @__PURE__ */ a(T.Title, {
|
|
413
413
|
"data-slot": "alert-dialog-title",
|
|
414
414
|
className: W("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", e),
|
|
415
415
|
...t
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
function et({ className: e, ...t }) {
|
|
419
|
-
return /* @__PURE__ */ a(
|
|
419
|
+
return /* @__PURE__ */ a(T.Description, {
|
|
420
420
|
"data-slot": "alert-dialog-description",
|
|
421
421
|
className: W("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
422
422
|
...t
|
|
@@ -430,7 +430,7 @@ function tt({ className: e, ...t }) {
|
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
432
|
function nt({ className: e, variant: t = "outline", size: n = "default", ...r }) {
|
|
433
|
-
return /* @__PURE__ */ a(
|
|
433
|
+
return /* @__PURE__ */ a(T.Close, {
|
|
434
434
|
"data-slot": "alert-dialog-cancel",
|
|
435
435
|
className: W(e),
|
|
436
436
|
render: /* @__PURE__ */ a(K, {
|
|
@@ -529,9 +529,9 @@ function ft({ className: e, variant: t, size: n = "icon-xs", ...r }) {
|
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
531
|
function pt({ className: e, render: t, type: n, ...r }) {
|
|
532
|
-
return
|
|
532
|
+
return D({
|
|
533
533
|
defaultTagName: "button",
|
|
534
|
-
props:
|
|
534
|
+
props: E({
|
|
535
535
|
type: t ? n : n ?? "button",
|
|
536
536
|
className: W("absolute inset-0 z-10 outline-none", e)
|
|
537
537
|
}, r),
|
|
@@ -549,7 +549,7 @@ function mt({ className: e, ...t }) {
|
|
|
549
549
|
//#endregion
|
|
550
550
|
//#region src/components/avatar/avatar.tsx
|
|
551
551
|
function ht({ className: e, size: t = "default", ...n }) {
|
|
552
|
-
return /* @__PURE__ */ a(
|
|
552
|
+
return /* @__PURE__ */ a(O.Root, {
|
|
553
553
|
"data-slot": "avatar",
|
|
554
554
|
"data-size": t,
|
|
555
555
|
className: W("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten", e),
|
|
@@ -557,14 +557,14 @@ function ht({ className: e, size: t = "default", ...n }) {
|
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
559
|
function gt({ className: e, ...t }) {
|
|
560
|
-
return /* @__PURE__ */ a(
|
|
560
|
+
return /* @__PURE__ */ a(O.Image, {
|
|
561
561
|
"data-slot": "avatar-image",
|
|
562
562
|
className: W("aspect-square size-full rounded-full object-cover", e),
|
|
563
563
|
...t
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
566
|
function _t({ className: e, ...t }) {
|
|
567
|
-
return /* @__PURE__ */ a(
|
|
567
|
+
return /* @__PURE__ */ a(O.Fallback, {
|
|
568
568
|
"data-slot": "avatar-fallback",
|
|
569
569
|
className: W("flex size-full items-center justify-center rounded-full bg-muted text-sm text-foreground group-data-[size=sm]/avatar:text-xs", e),
|
|
570
570
|
...t
|
|
@@ -605,9 +605,9 @@ var xt = t("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-cent
|
|
|
605
605
|
defaultVariants: { variant: "default" }
|
|
606
606
|
});
|
|
607
607
|
function St({ className: e, variant: t = "default", render: n, ...r }) {
|
|
608
|
-
return
|
|
608
|
+
return D({
|
|
609
609
|
defaultTagName: "span",
|
|
610
|
-
props:
|
|
610
|
+
props: E({ className: W(xt({ variant: t }), e) }, r),
|
|
611
611
|
render: n,
|
|
612
612
|
state: {
|
|
613
613
|
slot: "badge",
|
|
@@ -640,9 +640,9 @@ function Tt({ className: e, ...t }) {
|
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
642
|
function Et({ className: e, render: t, ...n }) {
|
|
643
|
-
return
|
|
643
|
+
return D({
|
|
644
644
|
defaultTagName: "a",
|
|
645
|
-
props:
|
|
645
|
+
props: E({ className: W("transition-colors hover:text-foreground", e) }, n),
|
|
646
646
|
render: t,
|
|
647
647
|
state: { slot: "breadcrumb-link" }
|
|
648
648
|
});
|
|
@@ -664,7 +664,7 @@ function Ot({ children: e, className: t, ...n }) {
|
|
|
664
664
|
"aria-hidden": "true",
|
|
665
665
|
className: W("[&>svg]:size-3.5", t),
|
|
666
666
|
...n,
|
|
667
|
-
children: e ?? /* @__PURE__ */ a(
|
|
667
|
+
children: e ?? /* @__PURE__ */ a(v, {})
|
|
668
668
|
});
|
|
669
669
|
}
|
|
670
670
|
function kt({ className: e, ...t }) {
|
|
@@ -711,9 +711,9 @@ function Mt({ variant: e = "default", align: t = "start", className: n, ...r })
|
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
713
|
function Nt({ className: e, render: t, ...n }) {
|
|
714
|
-
return
|
|
714
|
+
return D({
|
|
715
715
|
defaultTagName: "div",
|
|
716
|
-
props:
|
|
716
|
+
props: E({ className: W("w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-left [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50", e) }, n),
|
|
717
717
|
render: t,
|
|
718
718
|
state: { slot: "bubble-content" }
|
|
719
719
|
});
|
|
@@ -765,9 +765,9 @@ function Lt({ className: e, orientation: t, ...n }) {
|
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
767
|
function Rt({ className: e, render: t, ...n }) {
|
|
768
|
-
return
|
|
768
|
+
return D({
|
|
769
769
|
defaultTagName: "div",
|
|
770
|
-
props:
|
|
770
|
+
props: E({ className: W("flex items-center gap-2 rounded-lg border bg-muted px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", e) }, n),
|
|
771
771
|
render: t,
|
|
772
772
|
state: { slot: "button-group-text" }
|
|
773
773
|
});
|
|
@@ -783,8 +783,8 @@ function zt({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
783
783
|
//#endregion
|
|
784
784
|
//#region src/components/calendar/calendar.tsx
|
|
785
785
|
function Bt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", locale: o, formatters: s, components: c, ...l }) {
|
|
786
|
-
let u =
|
|
787
|
-
return /* @__PURE__ */ a(
|
|
786
|
+
let u = te();
|
|
787
|
+
return /* @__PURE__ */ a(k, {
|
|
788
788
|
showOutsideDays: n,
|
|
789
789
|
className: W("group/calendar bg-background p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, e),
|
|
790
790
|
captionLayout: r,
|
|
@@ -828,7 +828,7 @@ function Bt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
828
828
|
className: W(e),
|
|
829
829
|
...n
|
|
830
830
|
}),
|
|
831
|
-
Chevron: ({ className: e, orientation: t, ...n }) => a(t === "left" ?
|
|
831
|
+
Chevron: ({ className: e, orientation: t, ...n }) => a(t === "left" ? _ : t === "right" ? v : g, {
|
|
832
832
|
className: W("size-4", e),
|
|
833
833
|
...n
|
|
834
834
|
}),
|
|
@@ -849,7 +849,7 @@ function Bt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
849
849
|
});
|
|
850
850
|
}
|
|
851
851
|
function Vt({ className: e, day: t, modifiers: n, locale: r, ...i }) {
|
|
852
|
-
let o =
|
|
852
|
+
let o = te(), c = s.useRef(null);
|
|
853
853
|
return s.useEffect(() => {
|
|
854
854
|
n.focused && c.current?.focus();
|
|
855
855
|
}, [n.focused]), /* @__PURE__ */ a(K, {
|
|
@@ -873,7 +873,7 @@ function J() {
|
|
|
873
873
|
return e;
|
|
874
874
|
}
|
|
875
875
|
function Ut({ orientation: e = "horizontal", opts: t, setApi: n, plugins: r, className: i, children: o, ...c }) {
|
|
876
|
-
let [l, u] =
|
|
876
|
+
let [l, u] = ne({
|
|
877
877
|
...t,
|
|
878
878
|
axis: e === "horizontal" ? "x" : "y"
|
|
879
879
|
}, r), [d, f] = s.useState(!1), [p, m] = s.useState(!1), h = s.useCallback((e) => {
|
|
@@ -945,7 +945,7 @@ function Kt({ className: e, variant: t = "outline", size: n = "icon-sm", ...r })
|
|
|
945
945
|
disabled: !c,
|
|
946
946
|
onClick: s,
|
|
947
947
|
...r,
|
|
948
|
-
children: [/* @__PURE__ */ a(
|
|
948
|
+
children: [/* @__PURE__ */ a(_, {}), /* @__PURE__ */ a("span", {
|
|
949
949
|
className: "sr-only",
|
|
950
950
|
children: "Previous slide"
|
|
951
951
|
})]
|
|
@@ -961,7 +961,7 @@ function qt({ className: e, variant: t = "outline", size: n = "icon-sm", ...r })
|
|
|
961
961
|
disabled: !c,
|
|
962
962
|
onClick: s,
|
|
963
963
|
...r,
|
|
964
|
-
children: [/* @__PURE__ */ a(
|
|
964
|
+
children: [/* @__PURE__ */ a(v, {}), /* @__PURE__ */ a("span", {
|
|
965
965
|
className: "sr-only",
|
|
966
966
|
children: "Next slide"
|
|
967
967
|
})]
|
|
@@ -993,7 +993,7 @@ function Qt({ id: e, className: t, children: n, config: r, initialDimension: i =
|
|
|
993
993
|
children: [/* @__PURE__ */ a($t, {
|
|
994
994
|
id: u,
|
|
995
995
|
config: r
|
|
996
|
-
}), /* @__PURE__ */ a(
|
|
996
|
+
}), /* @__PURE__ */ a(A.ResponsiveContainer, {
|
|
997
997
|
initialDimension: i,
|
|
998
998
|
children: n
|
|
999
999
|
})]
|
|
@@ -1010,7 +1010,7 @@ ${n.map(([e, n]) => {
|
|
|
1010
1010
|
}).join("\n")}
|
|
1011
1011
|
}
|
|
1012
1012
|
`).join("\n") } }) : null;
|
|
1013
|
-
}, en =
|
|
1013
|
+
}, en = A.Tooltip;
|
|
1014
1014
|
function tn({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: c = !1, hideIndicator: l = !1, label: u, labelFormatter: d, labelClassName: f, formatter: p, color: m, nameKey: h, labelKey: g }) {
|
|
1015
1015
|
let { config: _ } = Zt(), v = s.useMemo(() => {
|
|
1016
1016
|
if (c || !t?.length) return null;
|
|
@@ -1070,7 +1070,7 @@ function tn({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
|
|
|
1070
1070
|
})]
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
|
-
var nn =
|
|
1073
|
+
var nn = A.Legend;
|
|
1074
1074
|
function rn({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bottom", nameKey: i }) {
|
|
1075
1075
|
let { config: s } = Zt();
|
|
1076
1076
|
return n?.length ? /* @__PURE__ */ a("div", {
|
|
@@ -1095,33 +1095,33 @@ function an(e, t, n) {
|
|
|
1095
1095
|
//#endregion
|
|
1096
1096
|
//#region src/components/checkbox/checkbox.tsx
|
|
1097
1097
|
function on({ className: e, ...t }) {
|
|
1098
|
-
return /* @__PURE__ */ a(
|
|
1098
|
+
return /* @__PURE__ */ a(re.Root, {
|
|
1099
1099
|
"data-slot": "checkbox",
|
|
1100
1100
|
className: W("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary", e),
|
|
1101
1101
|
...t,
|
|
1102
|
-
children: /* @__PURE__ */ a(
|
|
1102
|
+
children: /* @__PURE__ */ a(re.Indicator, {
|
|
1103
1103
|
"data-slot": "checkbox-indicator",
|
|
1104
1104
|
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
1105
|
-
children: /* @__PURE__ */ a(
|
|
1105
|
+
children: /* @__PURE__ */ a(h, {})
|
|
1106
1106
|
})
|
|
1107
1107
|
});
|
|
1108
1108
|
}
|
|
1109
1109
|
//#endregion
|
|
1110
1110
|
//#region src/components/collapsible/collapsible.tsx
|
|
1111
1111
|
function sn({ ...e }) {
|
|
1112
|
-
return /* @__PURE__ */ a(
|
|
1112
|
+
return /* @__PURE__ */ a(ie.Root, {
|
|
1113
1113
|
"data-slot": "collapsible",
|
|
1114
1114
|
...e
|
|
1115
1115
|
});
|
|
1116
1116
|
}
|
|
1117
1117
|
function cn({ ...e }) {
|
|
1118
|
-
return /* @__PURE__ */ a(
|
|
1118
|
+
return /* @__PURE__ */ a(ie.Trigger, {
|
|
1119
1119
|
"data-slot": "collapsible-trigger",
|
|
1120
1120
|
...e
|
|
1121
1121
|
});
|
|
1122
1122
|
}
|
|
1123
1123
|
function ln({ ...e }) {
|
|
1124
|
-
return /* @__PURE__ */ a(
|
|
1124
|
+
return /* @__PURE__ */ a(ie.Panel, {
|
|
1125
1125
|
"data-slot": "collapsible-content",
|
|
1126
1126
|
...e
|
|
1127
1127
|
});
|
|
@@ -1218,7 +1218,7 @@ function xn({ className: e, children: t, ...n }) {
|
|
|
1218
1218
|
"data-slot": "combobox-trigger",
|
|
1219
1219
|
className: W("[&_svg:not([class*='size-'])]:size-4", e),
|
|
1220
1220
|
...n,
|
|
1221
|
-
children: [t, /* @__PURE__ */ a(
|
|
1221
|
+
children: [t, /* @__PURE__ */ a(g, { className: "pointer-events-none size-4 text-muted-foreground" })]
|
|
1222
1222
|
});
|
|
1223
1223
|
}
|
|
1224
1224
|
function Sn({ className: e, "aria-label": t = "Clear selection", ...n }) {
|
|
@@ -1231,7 +1231,7 @@ function Sn({ className: e, "aria-label": t = "Clear selection", ...n }) {
|
|
|
1231
1231
|
className: W(e),
|
|
1232
1232
|
"aria-label": t,
|
|
1233
1233
|
...n,
|
|
1234
|
-
children: /* @__PURE__ */ a(
|
|
1234
|
+
children: /* @__PURE__ */ a(w, { className: "pointer-events-none" })
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
1237
|
function Cn({ className: e, children: t, disabled: n = !1, showTrigger: r = !0, showClear: i = !1, triggerAriaLabel: s = "Toggle suggestions", ...c }) {
|
|
@@ -1288,7 +1288,7 @@ function En({ className: e, children: t, ...n }) {
|
|
|
1288
1288
|
...n,
|
|
1289
1289
|
children: [t, /* @__PURE__ */ a(j.ItemIndicator, {
|
|
1290
1290
|
render: /* @__PURE__ */ a("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
1291
|
-
children: /* @__PURE__ */ a(
|
|
1291
|
+
children: /* @__PURE__ */ a(h, { className: "pointer-events-none" })
|
|
1292
1292
|
})]
|
|
1293
1293
|
});
|
|
1294
1294
|
}
|
|
@@ -1346,7 +1346,7 @@ function Nn({ className: e, children: t, showRemove: n = !0, ...r }) {
|
|
|
1346
1346
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
1347
1347
|
"data-slot": "combobox-chip-remove",
|
|
1348
1348
|
"aria-label": "Remove item",
|
|
1349
|
-
children: /* @__PURE__ */ a(
|
|
1349
|
+
children: /* @__PURE__ */ a(w, { className: "pointer-events-none" })
|
|
1350
1350
|
})]
|
|
1351
1351
|
});
|
|
1352
1352
|
}
|
|
@@ -1499,7 +1499,7 @@ function Yn({ className: e, ...t }) {
|
|
|
1499
1499
|
//#endregion
|
|
1500
1500
|
//#region src/components/date-picker/date-picker.tsx
|
|
1501
1501
|
function Xn(e) {
|
|
1502
|
-
let { value: t, defaultValue: n, onValueChange: r, placeholder: i = "Pick a date", disabled: c, className: l, calendarProps: u, triggerProps: d, formatValue:
|
|
1502
|
+
let { value: t, defaultValue: n, onValueChange: r, placeholder: i = "Pick a date", disabled: c, className: l, calendarProps: u, triggerProps: d, formatValue: f = (e) => ce(e, "PPP") } = e, [p, h] = s.useState(n), [g, _] = s.useState(!1), v = Object.prototype.hasOwnProperty.call(e, "value"), y = v ? t : p, b = (e) => {
|
|
1503
1503
|
v || h(e), r?.(e), e && _(!1);
|
|
1504
1504
|
};
|
|
1505
1505
|
return /* @__PURE__ */ o(Wn, {
|
|
@@ -1512,7 +1512,7 @@ function Xn(e) {
|
|
|
1512
1512
|
variant: d?.variant ?? "outline",
|
|
1513
1513
|
className: W("justify-start text-left font-normal data-[empty=true]:text-muted-foreground", l, d?.className)
|
|
1514
1514
|
}),
|
|
1515
|
-
children: [/* @__PURE__ */ a(
|
|
1515
|
+
children: [/* @__PURE__ */ a(m, { "data-icon": "inline-start" }), y ? f(y) : /* @__PURE__ */ a("span", { children: i })]
|
|
1516
1516
|
}), /* @__PURE__ */ a(Kn, {
|
|
1517
1517
|
align: "start",
|
|
1518
1518
|
"aria-label": "Choose date",
|
|
@@ -1571,7 +1571,7 @@ function nr({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
|
1571
1571
|
className: "absolute top-2 right-2",
|
|
1572
1572
|
size: "icon-sm"
|
|
1573
1573
|
}),
|
|
1574
|
-
children: [/* @__PURE__ */ a(
|
|
1574
|
+
children: [/* @__PURE__ */ a(w, {}), /* @__PURE__ */ a("span", {
|
|
1575
1575
|
className: "sr-only",
|
|
1576
1576
|
children: "Close"
|
|
1577
1577
|
})]
|
|
@@ -1794,7 +1794,7 @@ function Or({ className: e, inset: t, children: n, ...r }) {
|
|
|
1794
1794
|
"data-inset": t,
|
|
1795
1795
|
className: W("flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-popup-open:bg-accent data-popup-open:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1796
1796
|
...r,
|
|
1797
|
-
children: [n, /* @__PURE__ */ a(
|
|
1797
|
+
children: [n, /* @__PURE__ */ a(v, { className: "ml-auto" })]
|
|
1798
1798
|
});
|
|
1799
1799
|
}
|
|
1800
1800
|
function kr({ align: e = "start", alignOffset: t = -3, side: n = "right", sideOffset: r = 0, className: i, ...o }) {
|
|
@@ -1818,7 +1818,7 @@ function Ar({ className: e, children: t, checked: n, inset: r, ...i }) {
|
|
|
1818
1818
|
children: [/* @__PURE__ */ a("span", {
|
|
1819
1819
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
1820
1820
|
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
1821
|
-
children: /* @__PURE__ */ a(F.CheckboxItemIndicator, { children: /* @__PURE__ */ a(
|
|
1821
|
+
children: /* @__PURE__ */ a(F.CheckboxItemIndicator, { children: /* @__PURE__ */ a(h, {}) })
|
|
1822
1822
|
}), t]
|
|
1823
1823
|
});
|
|
1824
1824
|
}
|
|
@@ -1837,7 +1837,7 @@ function Mr({ className: e, children: t, inset: n, ...r }) {
|
|
|
1837
1837
|
children: [/* @__PURE__ */ a("span", {
|
|
1838
1838
|
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
1839
1839
|
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
1840
|
-
children: /* @__PURE__ */ a(F.RadioItemIndicator, { children: /* @__PURE__ */ a(
|
|
1840
|
+
children: /* @__PURE__ */ a(F.RadioItemIndicator, { children: /* @__PURE__ */ a(h, {}) })
|
|
1841
1841
|
}), t]
|
|
1842
1842
|
});
|
|
1843
1843
|
}
|
|
@@ -1978,9 +1978,9 @@ var qr = t("group/item flex w-full flex-wrap items-center rounded-lg border text
|
|
|
1978
1978
|
}
|
|
1979
1979
|
});
|
|
1980
1980
|
function Jr({ className: e, variant: t = "default", size: n = "default", render: r, ...i }) {
|
|
1981
|
-
return
|
|
1981
|
+
return D({
|
|
1982
1982
|
defaultTagName: "div",
|
|
1983
|
-
props:
|
|
1983
|
+
props: E({ className: W(qr({
|
|
1984
1984
|
variant: t,
|
|
1985
1985
|
size: n,
|
|
1986
1986
|
className: e
|
|
@@ -2062,9 +2062,9 @@ var ri = t("group/marker relative flex min-h-4 w-full items-center gap-2 text-le
|
|
|
2062
2062
|
border: "border-b border-border pb-2"
|
|
2063
2063
|
} } });
|
|
2064
2064
|
function ii({ className: e, variant: t = "default", render: n, ...r }) {
|
|
2065
|
-
return
|
|
2065
|
+
return D({
|
|
2066
2066
|
defaultTagName: "div",
|
|
2067
|
-
props:
|
|
2067
|
+
props: E({ className: W(ri({
|
|
2068
2068
|
variant: t,
|
|
2069
2069
|
className: e
|
|
2070
2070
|
})) }, r),
|
|
@@ -2148,7 +2148,7 @@ function pi({ className: e, size: t = "default", "aria-label": n = "Select an op
|
|
|
2148
2148
|
"data-size": t,
|
|
2149
2149
|
className: "h-8 w-full min-w-0 appearance-none rounded-lg border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
2150
2150
|
...r
|
|
2151
|
-
}), /* @__PURE__ */ a(
|
|
2151
|
+
}), /* @__PURE__ */ a(g, {
|
|
2152
2152
|
className: "pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none",
|
|
2153
2153
|
"aria-hidden": "true",
|
|
2154
2154
|
"data-slot": "native-select-icon"
|
|
@@ -2213,7 +2213,7 @@ function bi({ className: e, text: t = "Previous", ...n }) {
|
|
|
2213
2213
|
size: "default",
|
|
2214
2214
|
className: W("pl-1.5!", e),
|
|
2215
2215
|
...n,
|
|
2216
|
-
children: [/* @__PURE__ */ a(
|
|
2216
|
+
children: [/* @__PURE__ */ a(_, { "data-icon": "inline-start" }), /* @__PURE__ */ a("span", {
|
|
2217
2217
|
className: "hidden sm:block",
|
|
2218
2218
|
children: t
|
|
2219
2219
|
})]
|
|
@@ -2228,7 +2228,7 @@ function xi({ className: e, text: t = "Next", ...n }) {
|
|
|
2228
2228
|
children: [/* @__PURE__ */ a("span", {
|
|
2229
2229
|
className: "hidden sm:block",
|
|
2230
2230
|
children: t
|
|
2231
|
-
}), /* @__PURE__ */ a(
|
|
2231
|
+
}), /* @__PURE__ */ a(v, { "data-icon": "inline-end" })]
|
|
2232
2232
|
});
|
|
2233
2233
|
}
|
|
2234
2234
|
function Si({ className: e, ...t }) {
|
|
@@ -2308,26 +2308,26 @@ function Mi({ defaultItem: e, item: t, items: n = [], onItemChange: r, shortcuts
|
|
|
2308
2308
|
_,
|
|
2309
2309
|
t,
|
|
2310
2310
|
r
|
|
2311
|
-
]),
|
|
2311
|
+
]), C = s.useCallback((e) => (f((t) => t.includes(e) ? t : [...t, e]), () => f((t) => t.filter((t) => t !== e))), []), w = s.useCallback((e, t) => {
|
|
2312
2312
|
b((n) => ({
|
|
2313
2313
|
...n,
|
|
2314
2314
|
[e]: t ? "answered" : "unanswered"
|
|
2315
2315
|
}));
|
|
2316
|
-
}, []),
|
|
2316
|
+
}, []), T = s.useCallback((e, t, n, r) => {
|
|
2317
2317
|
ee((i) => {
|
|
2318
2318
|
let a = i[e] ?? [], o = r ? n ? [.../* @__PURE__ */ new Set([...a, t])] : [t] : a.filter((e) => e !== t);
|
|
2319
|
-
return
|
|
2319
|
+
return w(e, o.length > 0), {
|
|
2320
2320
|
...i,
|
|
2321
2321
|
[e]: o
|
|
2322
2322
|
};
|
|
2323
2323
|
});
|
|
2324
|
-
}, [
|
|
2324
|
+
}, [w]), E = s.useCallback(() => {
|
|
2325
2325
|
S(m[v - 1]);
|
|
2326
2326
|
}, [
|
|
2327
2327
|
v,
|
|
2328
2328
|
m,
|
|
2329
2329
|
S
|
|
2330
|
-
]),
|
|
2330
|
+
]), D = s.useCallback(() => {
|
|
2331
2331
|
if (_) {
|
|
2332
2332
|
if (n.find((e) => e.name === _)?.required && y[_] !== "answered") {
|
|
2333
2333
|
b((e) => ({
|
|
@@ -2345,7 +2345,7 @@ function Mi({ defaultItem: e, item: t, items: n = [], onItemChange: r, shortcuts
|
|
|
2345
2345
|
m,
|
|
2346
2346
|
S,
|
|
2347
2347
|
y
|
|
2348
|
-
]),
|
|
2348
|
+
]), O = s.useCallback(() => {
|
|
2349
2349
|
_ && (b((e) => ({
|
|
2350
2350
|
...e,
|
|
2351
2351
|
[_]: "skipped"
|
|
@@ -2355,7 +2355,7 @@ function Mi({ defaultItem: e, item: t, items: n = [], onItemChange: r, shortcuts
|
|
|
2355
2355
|
_,
|
|
2356
2356
|
m,
|
|
2357
2357
|
S
|
|
2358
|
-
]),
|
|
2358
|
+
]), k = s.useMemo(() => ({
|
|
2359
2359
|
activeName: _,
|
|
2360
2360
|
current: m.length ? v + 1 : 0,
|
|
2361
2361
|
first: v === 0,
|
|
@@ -2365,29 +2365,29 @@ function Mi({ defaultItem: e, item: t, items: n = [], onItemChange: r, shortcuts
|
|
|
2365
2365
|
itemDefinitions: n,
|
|
2366
2366
|
statuses: y,
|
|
2367
2367
|
selections: x,
|
|
2368
|
-
registerItem:
|
|
2369
|
-
setAnswered:
|
|
2370
|
-
setSelection:
|
|
2371
|
-
goPrevious:
|
|
2372
|
-
goNext:
|
|
2373
|
-
skip:
|
|
2368
|
+
registerItem: C,
|
|
2369
|
+
setAnswered: w,
|
|
2370
|
+
setSelection: T,
|
|
2371
|
+
goPrevious: E,
|
|
2372
|
+
goNext: D,
|
|
2373
|
+
skip: O
|
|
2374
2374
|
}), [
|
|
2375
2375
|
v,
|
|
2376
2376
|
_,
|
|
2377
|
+
D,
|
|
2377
2378
|
E,
|
|
2378
|
-
T,
|
|
2379
2379
|
n,
|
|
2380
2380
|
m.length,
|
|
2381
|
-
te,
|
|
2382
|
-
x,
|
|
2383
2381
|
C,
|
|
2382
|
+
x,
|
|
2384
2383
|
w,
|
|
2384
|
+
T,
|
|
2385
2385
|
i,
|
|
2386
|
-
|
|
2386
|
+
O,
|
|
2387
2387
|
y
|
|
2388
2388
|
]);
|
|
2389
2389
|
return /* @__PURE__ */ a(Oi.Provider, {
|
|
2390
|
-
value:
|
|
2390
|
+
value: k,
|
|
2391
2391
|
children: /* @__PURE__ */ a("form", {
|
|
2392
2392
|
...u,
|
|
2393
2393
|
noValidate: !0,
|
|
@@ -2396,16 +2396,16 @@ function Mi({ defaultItem: e, item: t, items: n = [], onItemChange: r, shortcuts
|
|
|
2396
2396
|
},
|
|
2397
2397
|
onSubmit: c,
|
|
2398
2398
|
onKeyDown: (e) => {
|
|
2399
|
-
l?.(e), !e.defaultPrevented && (e.metaKey || e.ctrlKey) && e.key === "Enter" && (e.preventDefault(),
|
|
2399
|
+
l?.(e), !e.defaultPrevented && (e.metaKey || e.ctrlKey) && e.key === "Enter" && (e.preventDefault(), k.last ? e.currentTarget.requestSubmit() : k.goNext());
|
|
2400
2400
|
}
|
|
2401
2401
|
})
|
|
2402
2402
|
});
|
|
2403
2403
|
}
|
|
2404
2404
|
function Ni({ children: e, render: t, ...n }) {
|
|
2405
2405
|
let { current: r, first: i, last: a, total: o } = X("QuestionnaireProgress"), s = o ? `Question ${r} of ${o}` : void 0;
|
|
2406
|
-
return
|
|
2406
|
+
return D({
|
|
2407
2407
|
defaultTagName: "div",
|
|
2408
|
-
props:
|
|
2408
|
+
props: E({
|
|
2409
2409
|
children: e ?? s,
|
|
2410
2410
|
role: "progressbar",
|
|
2411
2411
|
"aria-label": "Questionnaire progress",
|
|
@@ -2461,7 +2461,7 @@ function Pi({ disabled: e = !1, invalid: t = !1, multiple: n = !1, name: r, onSt
|
|
|
2461
2461
|
});
|
|
2462
2462
|
}
|
|
2463
2463
|
function Fi({ render: e, ...t }) {
|
|
2464
|
-
return Z("QuestionnaireTitle"),
|
|
2464
|
+
return Z("QuestionnaireTitle"), D({
|
|
2465
2465
|
defaultTagName: "legend",
|
|
2466
2466
|
props: t,
|
|
2467
2467
|
render: e,
|
|
@@ -2469,7 +2469,7 @@ function Fi({ render: e, ...t }) {
|
|
|
2469
2469
|
});
|
|
2470
2470
|
}
|
|
2471
2471
|
function Ii({ render: e, ...t }) {
|
|
2472
|
-
return Z("QuestionnaireDescription"),
|
|
2472
|
+
return Z("QuestionnaireDescription"), D({
|
|
2473
2473
|
defaultTagName: "p",
|
|
2474
2474
|
props: t,
|
|
2475
2475
|
render: e,
|
|
@@ -2692,7 +2692,7 @@ function ea({ children: e, className: t, ...n }) {
|
|
|
2692
2692
|
children: [/* @__PURE__ */ a("span", {
|
|
2693
2693
|
"data-slot": "questionnaire-choice-indicator-dot",
|
|
2694
2694
|
className: "hidden size-2 rounded-full bg-primary-foreground group-data-[type=checkbox]/questionnaire-choice:hidden group-data-checked/questionnaire-choice:block"
|
|
2695
|
-
}), /* @__PURE__ */ a(
|
|
2695
|
+
}), /* @__PURE__ */ a(h, {
|
|
2696
2696
|
"data-slot": "questionnaire-choice-indicator-check",
|
|
2697
2697
|
className: "hidden size-3.5 group-data-[type=radio]/questionnaire-choice:hidden group-data-checked/questionnaire-choice:block"
|
|
2698
2698
|
})]
|
|
@@ -2869,7 +2869,7 @@ function ga({ className: e, size: t = "default", children: n, "aria-label": r =
|
|
|
2869
2869
|
"data-size": t,
|
|
2870
2870
|
className: W("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
2871
2871
|
...i,
|
|
2872
|
-
children: [n, /* @__PURE__ */ a(z.Icon, { render: /* @__PURE__ */ a(
|
|
2872
|
+
children: [n, /* @__PURE__ */ a(z.Icon, { render: /* @__PURE__ */ a(g, { className: "pointer-events-none size-4 text-muted-foreground" }) })]
|
|
2873
2873
|
});
|
|
2874
2874
|
}
|
|
2875
2875
|
function _a({ className: e, children: t, side: n = "bottom", sideOffset: r = 4, align: i = "center", alignOffset: s = 0, alignItemWithTrigger: c = !0, ...l }) {
|
|
@@ -2910,7 +2910,7 @@ function ya({ className: e, children: t, ...n }) {
|
|
|
2910
2910
|
children: t
|
|
2911
2911
|
}), /* @__PURE__ */ a(z.ItemIndicator, {
|
|
2912
2912
|
render: /* @__PURE__ */ a("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
2913
|
-
children: /* @__PURE__ */ a(
|
|
2913
|
+
children: /* @__PURE__ */ a(h, { className: "pointer-events-none" })
|
|
2914
2914
|
})]
|
|
2915
2915
|
});
|
|
2916
2916
|
}
|
|
@@ -2926,7 +2926,7 @@ function xa({ className: e, ...t }) {
|
|
|
2926
2926
|
"data-slot": "select-scroll-up-button",
|
|
2927
2927
|
className: W("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
2928
2928
|
...t,
|
|
2929
|
-
children: /* @__PURE__ */ a(
|
|
2929
|
+
children: /* @__PURE__ */ a(y, {})
|
|
2930
2930
|
});
|
|
2931
2931
|
}
|
|
2932
2932
|
function Sa({ className: e, ...t }) {
|
|
@@ -2934,7 +2934,7 @@ function Sa({ className: e, ...t }) {
|
|
|
2934
2934
|
"data-slot": "select-scroll-down-button",
|
|
2935
2935
|
className: W("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
2936
2936
|
...t,
|
|
2937
|
-
children: /* @__PURE__ */ a(
|
|
2937
|
+
children: /* @__PURE__ */ a(g, {})
|
|
2938
2938
|
});
|
|
2939
2939
|
}
|
|
2940
2940
|
//#endregion
|
|
@@ -2983,7 +2983,7 @@ function Oa({ className: e, children: t, side: n = "right", showCloseButton: r =
|
|
|
2983
2983
|
className: "absolute top-3 right-3",
|
|
2984
2984
|
size: "icon-sm"
|
|
2985
2985
|
}),
|
|
2986
|
-
children: [/* @__PURE__ */ a(
|
|
2986
|
+
children: [/* @__PURE__ */ a(w, {}), /* @__PURE__ */ a("span", {
|
|
2987
2987
|
className: "sr-only",
|
|
2988
2988
|
children: "Close"
|
|
2989
2989
|
})]
|
|
@@ -3268,9 +3268,9 @@ function ro({ className: e, ...t }) {
|
|
|
3268
3268
|
});
|
|
3269
3269
|
}
|
|
3270
3270
|
function io({ className: e, render: t, ...n }) {
|
|
3271
|
-
return
|
|
3271
|
+
return D({
|
|
3272
3272
|
defaultTagName: "div",
|
|
3273
|
-
props:
|
|
3273
|
+
props: E({ className: W("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", e) }, n),
|
|
3274
3274
|
render: t,
|
|
3275
3275
|
state: {
|
|
3276
3276
|
slot: "sidebar-group-label",
|
|
@@ -3279,9 +3279,9 @@ function io({ className: e, render: t, ...n }) {
|
|
|
3279
3279
|
});
|
|
3280
3280
|
}
|
|
3281
3281
|
function ao({ className: e, render: t, ...n }) {
|
|
3282
|
-
return
|
|
3282
|
+
return D({
|
|
3283
3283
|
defaultTagName: "button",
|
|
3284
|
-
props:
|
|
3284
|
+
props: E({ className: W("absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0", e) }, n),
|
|
3285
3285
|
render: t,
|
|
3286
3286
|
state: {
|
|
3287
3287
|
slot: "sidebar-group-action",
|
|
@@ -3331,9 +3331,9 @@ var lo = t("peer/menu-button group/menu-button flex w-full items-center gap-2 ov
|
|
|
3331
3331
|
}
|
|
3332
3332
|
});
|
|
3333
3333
|
function uo({ render: e, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: s, ...c }) {
|
|
3334
|
-
let { isMobile: l, state: u } = $(), d =
|
|
3334
|
+
let { isMobile: l, state: u } = $(), d = D({
|
|
3335
3335
|
defaultTagName: "button",
|
|
3336
|
-
props:
|
|
3336
|
+
props: E({ className: W(lo({
|
|
3337
3337
|
variant: n,
|
|
3338
3338
|
size: r
|
|
3339
3339
|
}), s) }, c),
|
|
@@ -3353,9 +3353,9 @@ function uo({ render: e, isActive: t = !1, variant: n = "default", size: r = "de
|
|
|
3353
3353
|
})] })) : d;
|
|
3354
3354
|
}
|
|
3355
3355
|
function fo({ className: e, render: t, showOnHover: n = !1, ...r }) {
|
|
3356
|
-
return
|
|
3356
|
+
return D({
|
|
3357
3357
|
defaultTagName: "button",
|
|
3358
|
-
props:
|
|
3358
|
+
props: E({ className: W("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0", n && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 md:opacity-0", e) }, r),
|
|
3359
3359
|
render: t,
|
|
3360
3360
|
state: {
|
|
3361
3361
|
slot: "sidebar-menu-action",
|
|
@@ -3405,9 +3405,9 @@ function go({ className: e, ...t }) {
|
|
|
3405
3405
|
});
|
|
3406
3406
|
}
|
|
3407
3407
|
function _o({ render: e, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
3408
|
-
return
|
|
3408
|
+
return D({
|
|
3409
3409
|
defaultTagName: "a",
|
|
3410
|
-
props:
|
|
3410
|
+
props: E({ className: W("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground", r) }, i),
|
|
3411
3411
|
render: e,
|
|
3412
3412
|
state: {
|
|
3413
3413
|
slot: "sidebar-menu-sub-button",
|
|
@@ -3453,7 +3453,7 @@ function vo({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100,
|
|
|
3453
3453
|
//#endregion
|
|
3454
3454
|
//#region src/components/spinner/spinner.tsx
|
|
3455
3455
|
function yo({ className: e, ...t }) {
|
|
3456
|
-
return /* @__PURE__ */ a(
|
|
3456
|
+
return /* @__PURE__ */ a(C, {
|
|
3457
3457
|
"data-slot": "spinner",
|
|
3458
3458
|
role: "status",
|
|
3459
3459
|
"aria-label": "Loading",
|
|
@@ -3583,15 +3583,15 @@ function Fo({ className: e, children: t, render: n = /* @__PURE__ */ a(K, {
|
|
|
3583
3583
|
render: n,
|
|
3584
3584
|
className: W("relative shrink-0 text-muted-foreground after:absolute after:-inset-2 after:content-[''] hover:text-foreground", e),
|
|
3585
3585
|
...r,
|
|
3586
|
-
children: t ?? /* @__PURE__ */ a(
|
|
3586
|
+
children: t ?? /* @__PURE__ */ a(w, { "aria-hidden": "true" })
|
|
3587
3587
|
});
|
|
3588
3588
|
}
|
|
3589
3589
|
function Io({ type: e }) {
|
|
3590
3590
|
let t = null;
|
|
3591
|
-
return e === "success" && (t = /* @__PURE__ */ a(
|
|
3591
|
+
return e === "success" && (t = /* @__PURE__ */ a(b, { "aria-hidden": "true" })), e === "info" && (t = /* @__PURE__ */ a(ee, { "aria-hidden": "true" })), e === "warning" && (t = /* @__PURE__ */ a(p, { "aria-hidden": "true" })), e === "error" && (t = /* @__PURE__ */ a(f, {
|
|
3592
3592
|
className: "text-destructive",
|
|
3593
3593
|
"aria-hidden": "true"
|
|
3594
|
-
})), e === "loading" && (t = /* @__PURE__ */ a(
|
|
3594
|
+
})), e === "loading" && (t = /* @__PURE__ */ a(C, {
|
|
3595
3595
|
className: "animate-spin",
|
|
3596
3596
|
"aria-hidden": "true"
|
|
3597
3597
|
})), t ? /* @__PURE__ */ a("span", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almanaclabs/blaze-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Shared React components and design tokens for Blaze",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@fontsource-variable/inter": "5.3.0",
|
|
47
|
+
"@tabler/icons-react": "3.31.0",
|
|
47
48
|
"@tanstack/react-table": "8.21.3",
|
|
48
49
|
"class-variance-authority": "0.7.1",
|
|
49
50
|
"clsx": "2.1.1",
|
|
50
51
|
"date-fns": "4.4.0",
|
|
51
52
|
"embla-carousel-react": "8.6.0",
|
|
52
|
-
"lucide-react": "1.31.0",
|
|
53
53
|
"react-day-picker": "10.0.1",
|
|
54
54
|
"recharts": "3.8.0",
|
|
55
55
|
"tailwind-merge": "3.6.0",
|