@still-forest/canopy 0.45.1 → 0.46.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/index.d.ts +14 -6
- package/dist/index.js +122 -106
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -43,23 +43,27 @@ declare type AccordionTriggerProps = React.ComponentProps<typeof AccordionTrigge
|
|
|
43
43
|
export declare const Alert: ({ type, title, message, className, children }: AlertProps) => JSX.Element;
|
|
44
44
|
|
|
45
45
|
export declare interface AlertProps {
|
|
46
|
-
type:
|
|
46
|
+
type: AlertVariant;
|
|
47
47
|
title?: string;
|
|
48
48
|
message?: string;
|
|
49
49
|
className?: string;
|
|
50
50
|
children?: React.ReactNode;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
declare type AlertVariant = "info" | "success" | "warning" | "error";
|
|
54
|
+
|
|
53
55
|
export declare const Badge: ({ label, onClick, className, variant, color }: BadgeProps) => JSX.Element;
|
|
54
56
|
|
|
55
57
|
export declare interface BadgeProps {
|
|
56
|
-
variant?:
|
|
58
|
+
variant?: BadgeVariant;
|
|
57
59
|
color?: TailwindColor;
|
|
58
60
|
label: string;
|
|
59
61
|
onClick?: () => void;
|
|
60
62
|
className?: string;
|
|
61
63
|
}
|
|
62
64
|
|
|
65
|
+
declare type BadgeVariant = AlertVariant | "default" | "secondary" | "destructive" | "outline";
|
|
66
|
+
|
|
63
67
|
export declare type BaseButtonSize = "xs" | "sm" | "md" | "lg" | "xl" | "icon" | "unstyled";
|
|
64
68
|
|
|
65
69
|
export declare type BaseButtonVariant = "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "unstyled" | "error" | "info" | "success" | "warning";
|
|
@@ -309,7 +313,7 @@ declare interface ErrorFallbackProps extends ErrorOverlayProps {
|
|
|
309
313
|
onRetry?: () => void;
|
|
310
314
|
}
|
|
311
315
|
|
|
312
|
-
export declare const ErrorOverlay: ({ message, children, ...props }: ErrorOverlayProps) => JSX.Element;
|
|
316
|
+
export declare const ErrorOverlay: ({ headline, message, children, ...props }: ErrorOverlayProps) => JSX.Element;
|
|
313
317
|
|
|
314
318
|
export declare interface ErrorOverlayProps extends InterstitialProps {
|
|
315
319
|
}
|
|
@@ -505,12 +509,16 @@ export declare interface InputProps extends TextInputProps {
|
|
|
505
509
|
step?: string;
|
|
506
510
|
}
|
|
507
511
|
|
|
508
|
-
export declare const Interstitial: ({ variant, iconComponent, message, children, iconSize, iconClassName, fullScreen, containerClassName, }: InterstitialProps) => JSX.Element;
|
|
512
|
+
export declare const Interstitial: ({ variant, iconComponent, headline, headlineLevel, headlineWeight, message, messageClassName, children, iconSize, iconClassName, fullScreen, containerClassName, }: InterstitialProps) => JSX.Element;
|
|
509
513
|
|
|
510
514
|
export declare interface InterstitialProps {
|
|
511
|
-
variant?:
|
|
515
|
+
variant?: AlertVariant;
|
|
512
516
|
iconComponent?: default_2.ElementType;
|
|
517
|
+
headline?: string;
|
|
518
|
+
headlineLevel?: HeadingSize;
|
|
519
|
+
headlineWeight?: FontWeight;
|
|
513
520
|
message?: string;
|
|
521
|
+
messageClassName?: string;
|
|
514
522
|
iconSize?: LoaderProps["size"];
|
|
515
523
|
iconClassName?: string;
|
|
516
524
|
children?: default_2.ReactNode;
|
|
@@ -644,7 +652,7 @@ export declare const PageLoader: ({ iconComponent, message, iconSize, iconClassN
|
|
|
644
652
|
declare interface PageLoaderProps extends InterstitialProps {
|
|
645
653
|
}
|
|
646
654
|
|
|
647
|
-
export declare const PageNotFound: ({ onBack, message, backIcon, backLabel, ...props }: PageNotFoundProps) => JSX.Element;
|
|
655
|
+
export declare const PageNotFound: ({ onBack, headline, message, backIcon, backLabel, ...props }: PageNotFoundProps) => JSX.Element;
|
|
648
656
|
|
|
649
657
|
declare interface PageNotFoundProps extends InterstitialProps {
|
|
650
658
|
backIcon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
package/dist/index.js
CHANGED
|
@@ -53,7 +53,7 @@ function Eu(e, t) {
|
|
|
53
53
|
}
|
|
54
54
|
return [r, o];
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function De(e, t = []) {
|
|
57
57
|
let n = [];
|
|
58
58
|
function r(a, s) {
|
|
59
59
|
const i = m.createContext(s), c = n.length;
|
|
@@ -175,7 +175,7 @@ function Tu(e) {
|
|
|
175
175
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
176
176
|
}
|
|
177
177
|
function oa(e) {
|
|
178
|
-
const t = e + "CollectionProvider", [n, r] =
|
|
178
|
+
const t = e + "CollectionProvider", [n, r] = De(t), [o, a] = n(
|
|
179
179
|
t,
|
|
180
180
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
181
181
|
), s = (g) => {
|
|
@@ -368,7 +368,7 @@ function Ne(e) {
|
|
|
368
368
|
n((r) => r ?? String(zu++));
|
|
369
369
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
370
370
|
}
|
|
371
|
-
var wr = "Collapsible", [Hu, ai] =
|
|
371
|
+
var wr = "Collapsible", [Hu, ai] = De(wr), [Vu, aa] = Hu(wr), si = m.forwardRef(
|
|
372
372
|
(e, t) => {
|
|
373
373
|
const {
|
|
374
374
|
__scopeCollapsible: n,
|
|
@@ -473,7 +473,7 @@ function Tn(e) {
|
|
|
473
473
|
const t = m.useContext(qu);
|
|
474
474
|
return e || t || "ltr";
|
|
475
475
|
}
|
|
476
|
-
var ze = "Accordion", Ku = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [da, Zu, Xu] = oa(ze), [kr, EC] =
|
|
476
|
+
var ze = "Accordion", Ku = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [da, Zu, Xu] = oa(ze), [kr, EC] = De(ze, [
|
|
477
477
|
Xu,
|
|
478
478
|
ai
|
|
479
479
|
]), ua = ai(), ci = E.forwardRef(
|
|
@@ -1537,7 +1537,7 @@ const ve = (e) => {
|
|
|
1537
1537
|
x,
|
|
1538
1538
|
B,
|
|
1539
1539
|
L
|
|
1540
|
-
], ie = () => ["none", oe, B, L], xe = () => ["none", oe, B, L],
|
|
1540
|
+
], ie = () => ["none", oe, B, L], xe = () => ["none", oe, B, L], Me = () => [oe, B, L], $e = () => [zt, "full", ...M()];
|
|
1541
1541
|
return {
|
|
1542
1542
|
cacheSize: 500,
|
|
1543
1543
|
theme: {
|
|
@@ -3545,21 +3545,21 @@ const ve = (e) => {
|
|
|
3545
3545
|
* @see https://tailwindcss.com/docs/skew
|
|
3546
3546
|
*/
|
|
3547
3547
|
skew: [{
|
|
3548
|
-
skew:
|
|
3548
|
+
skew: Me()
|
|
3549
3549
|
}],
|
|
3550
3550
|
/**
|
|
3551
3551
|
* Skew X
|
|
3552
3552
|
* @see https://tailwindcss.com/docs/skew
|
|
3553
3553
|
*/
|
|
3554
3554
|
"skew-x": [{
|
|
3555
|
-
"skew-x":
|
|
3555
|
+
"skew-x": Me()
|
|
3556
3556
|
}],
|
|
3557
3557
|
/**
|
|
3558
3558
|
* Skew Y
|
|
3559
3559
|
* @see https://tailwindcss.com/docs/skew
|
|
3560
3560
|
*/
|
|
3561
3561
|
"skew-y": [{
|
|
3562
|
-
"skew-y":
|
|
3562
|
+
"skew-y": Me()
|
|
3563
3563
|
}],
|
|
3564
3564
|
/**
|
|
3565
3565
|
* Transform
|
|
@@ -4104,7 +4104,11 @@ const hp = {
|
|
|
4104
4104
|
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
4105
4105
|
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
4106
4106
|
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
4107
|
-
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
4107
|
+
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
4108
|
+
info: "border-info bg-info text-info-foreground [a&]:hover:bg-info/90 focus-visible:ring-info/20 dark:focus-visible:ring-info/40 dark:bg-info/60",
|
|
4109
|
+
success: "border-success bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40 dark:bg-success/60",
|
|
4110
|
+
warning: "border-warning bg-warning text-warning-foreground [a&]:hover:bg-warning/90 focus-visible:ring-warning/20 dark:focus-visible:ring-warning/40 dark:bg-warning/60",
|
|
4111
|
+
error: "border-destructive bg-destructive text-destructive-foreground [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60"
|
|
4108
4112
|
}
|
|
4109
4113
|
},
|
|
4110
4114
|
defaultVariants: {
|
|
@@ -4122,7 +4126,7 @@ function vp({
|
|
|
4122
4126
|
return /* @__PURE__ */ l.jsx(o, { className: C(gp({ variant: t }), e), "data-slot": "badge", ...r });
|
|
4123
4127
|
}
|
|
4124
4128
|
const bp = ut(
|
|
4125
|
-
"inline-flex items-center justify-center rounded-
|
|
4129
|
+
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-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 transition-[color,box-shadow] overflow-hidden",
|
|
4126
4130
|
{
|
|
4127
4131
|
variants: {
|
|
4128
4132
|
color: {
|
|
@@ -4155,7 +4159,11 @@ const bp = ut(
|
|
|
4155
4159
|
default: "border-transparent",
|
|
4156
4160
|
secondary: "border-transparent",
|
|
4157
4161
|
destructive: "border-transparent",
|
|
4158
|
-
outline: ""
|
|
4162
|
+
outline: "",
|
|
4163
|
+
info: "border-transparent",
|
|
4164
|
+
success: "border-transparent",
|
|
4165
|
+
warning: "border-transparent",
|
|
4166
|
+
error: "border-transparent"
|
|
4159
4167
|
}
|
|
4160
4168
|
},
|
|
4161
4169
|
compoundVariants: [
|
|
@@ -4364,7 +4372,7 @@ const Sp = ({ to: e, label: t }) => /* @__PURE__ */ l.jsx(Fi, { className: "font
|
|
|
4364
4372
|
] }),
|
|
4365
4373
|
c < e.length - 1 && /* @__PURE__ */ l.jsx(Cp, {})
|
|
4366
4374
|
] }, i)) }) });
|
|
4367
|
-
}, OC = ({ children: e, className: t, as: n = "p", ...r }) => /* @__PURE__ */ l.jsx(
|
|
4375
|
+
}, OC = ({ children: e, className: t, as: n = "p", ...r }) => /* @__PURE__ */ l.jsx(Ee, { as: n, className: C("mb-4", t), ...r, children: e }), Ee = E.forwardRef(
|
|
4368
4376
|
({
|
|
4369
4377
|
className: e,
|
|
4370
4378
|
as: t,
|
|
@@ -4491,8 +4499,8 @@ const Sp = ({ to: e, label: t }) => /* @__PURE__ */ l.jsx(Fi, { className: "font
|
|
|
4491
4499
|
);
|
|
4492
4500
|
}
|
|
4493
4501
|
);
|
|
4494
|
-
|
|
4495
|
-
const Ep = ({ children: e, ...t }) => /* @__PURE__ */ l.jsx(
|
|
4502
|
+
Ee.displayName = "Text";
|
|
4503
|
+
const Ep = ({ children: e, ...t }) => /* @__PURE__ */ l.jsx(Ee, { className: "inline-block w-fit rounded bg-accent px-2", family: "mono", size: "sm", variant: "accent", ...t, children: e }), Nr = E.forwardRef(
|
|
4496
4504
|
({
|
|
4497
4505
|
className: e,
|
|
4498
4506
|
variant: t = "default",
|
|
@@ -4625,7 +4633,7 @@ const Ep = ({ children: e, ...t }) => /* @__PURE__ */ l.jsx(De, { className: "in
|
|
|
4625
4633
|
}
|
|
4626
4634
|
);
|
|
4627
4635
|
Nr.displayName = "Heading";
|
|
4628
|
-
const Mp = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l.jsx("ul", { className: C("list-disc flex flex-col gap-2 ml-4", t), ...n, children: e }), jp = ({ children: e, ...t }) => /* @__PURE__ */ l.jsx(
|
|
4636
|
+
const Mp = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l.jsx("ul", { className: C("list-disc flex flex-col gap-2 ml-4", t), ...n, children: e }), jp = ({ children: e, ...t }) => /* @__PURE__ */ l.jsx(Ee, { as: "li", ...t, children: e });
|
|
4629
4637
|
Mp.Item = jp;
|
|
4630
4638
|
function Dp({ className: e, ...t }) {
|
|
4631
4639
|
return /* @__PURE__ */ l.jsx(
|
|
@@ -4754,7 +4762,7 @@ function Hp({ className: e, ...t }) {
|
|
|
4754
4762
|
);
|
|
4755
4763
|
}
|
|
4756
4764
|
const Pn = ({ children: e, ...t }) => /* @__PURE__ */ l.jsx(Wp, { ...t, children: e }), Vp = ({ children: e, ...t }) => /* @__PURE__ */ l.jsx(Nr, { "data-slot": "empty-title", level: "3", weight: "medium", ...t, children: e }), Gp = ({ children: e, className: t, ...n }) => /* @__PURE__ */ l.jsx(
|
|
4757
|
-
|
|
4765
|
+
Ee,
|
|
4758
4766
|
{
|
|
4759
4767
|
className: C(
|
|
4760
4768
|
"text-muted-foreground [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
@@ -6252,7 +6260,7 @@ function _n(e) {
|
|
|
6252
6260
|
n(void 0);
|
|
6253
6261
|
}, [e]), t;
|
|
6254
6262
|
}
|
|
6255
|
-
var ka = "Popper", [el, Rr] =
|
|
6263
|
+
var ka = "Popper", [el, Rr] = De(ka), [fg, tl] = el(ka), nl = (e) => {
|
|
6256
6264
|
const { __scopePopper: t, children: n } = e, [r, o] = m.useState(null);
|
|
6257
6265
|
return /* @__PURE__ */ l.jsx(fg, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
6258
6266
|
};
|
|
@@ -6311,8 +6319,8 @@ var Ca = "PopperContent", [mg, pg] = el(Ca), al = m.forwardRef(
|
|
|
6311
6319
|
ig({
|
|
6312
6320
|
...T,
|
|
6313
6321
|
apply: ({ elements: U, rects: ue, availableWidth: ie, availableHeight: xe }) => {
|
|
6314
|
-
const { width:
|
|
6315
|
-
nt.setProperty("--radix-popper-available-width", `${ie}px`), nt.setProperty("--radix-popper-available-height", `${xe}px`), nt.setProperty("--radix-popper-anchor-width", `${
|
|
6322
|
+
const { width: Me, height: $e } = ue.reference, nt = U.floating.style;
|
|
6323
|
+
nt.setProperty("--radix-popper-available-width", `${ie}px`), nt.setProperty("--radix-popper-available-height", `${xe}px`), nt.setProperty("--radix-popper-anchor-width", `${Me}px`), nt.setProperty("--radix-popper-anchor-height", `${$e}px`);
|
|
6316
6324
|
}
|
|
6317
6325
|
}),
|
|
6318
6326
|
y && cg({ element: y, padding: i }),
|
|
@@ -6478,7 +6486,7 @@ var xg = Object.freeze({
|
|
|
6478
6486
|
)
|
|
6479
6487
|
);
|
|
6480
6488
|
fl.displayName = yg;
|
|
6481
|
-
var wg = fl, [Pr, RC] =
|
|
6489
|
+
var wg = fl, [Pr, RC] = De("Tooltip", [
|
|
6482
6490
|
Rr
|
|
6483
6491
|
]), Ar = Rr(), ml = "TooltipProvider", kg = 700, Vo = "tooltip.open", [Cg, Na] = Pr(ml), pl = (e) => {
|
|
6484
6492
|
const {
|
|
@@ -6820,7 +6828,7 @@ function Sl({
|
|
|
6820
6828
|
}
|
|
6821
6829
|
) });
|
|
6822
6830
|
}
|
|
6823
|
-
const
|
|
6831
|
+
const je = ({ children: e, open: t, onOpenChange: n }) => /* @__PURE__ */ l.jsx(Ma, { children: /* @__PURE__ */ l.jsx(kl, { onOpenChange: n, open: t, children: e }) }), Hg = ({ children: e, cursor: t = "pointer", className: n }) => /* @__PURE__ */ l.jsx(
|
|
6824
6832
|
Cl,
|
|
6825
6833
|
{
|
|
6826
6834
|
asChild: !0,
|
|
@@ -6834,11 +6842,11 @@ const Me = ({ children: e, open: t, onOpenChange: n }) => /* @__PURE__ */ l.jsx(
|
|
|
6834
6842
|
children: e
|
|
6835
6843
|
}
|
|
6836
6844
|
), Vg = ({ className: e, children: t }) => /* @__PURE__ */ l.jsx(Sl, { className: e, children: t });
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
const Gg = ({ children: e, content: t }) => /* @__PURE__ */ l.jsxs(
|
|
6840
|
-
/* @__PURE__ */ l.jsx(
|
|
6841
|
-
/* @__PURE__ */ l.jsx(
|
|
6845
|
+
je.Trigger = Hg;
|
|
6846
|
+
je.Content = Vg;
|
|
6847
|
+
const Gg = ({ children: e, content: t }) => /* @__PURE__ */ l.jsxs(je, { children: [
|
|
6848
|
+
/* @__PURE__ */ l.jsx(je.Trigger, { children: typeof e == "string" ? /* @__PURE__ */ l.jsx("span", { children: e }) : e }),
|
|
6849
|
+
/* @__PURE__ */ l.jsx(je.Content, { children: t })
|
|
6842
6850
|
] }), cn = ({ content: e, className: t }) => /* @__PURE__ */ l.jsx(Gg, { content: e, children: /* @__PURE__ */ l.jsx(Tf, { className: C("size-4 text-muted-foreground stroke-1", t) }) });
|
|
6843
6851
|
var Yg = "Separator", xs = "horizontal", Ug = ["horizontal", "vertical"], Nl = m.forwardRef((e, t) => {
|
|
6844
6852
|
const { decorative: n, orientation: r = xs, ...o } = e, a = qg(r) ? r : xs, i = n ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
|
|
@@ -7696,7 +7704,7 @@ var Kv = function(e) {
|
|
|
7696
7704
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Xv(r, o, n, "aria-hidden")) : function() {
|
|
7697
7705
|
return null;
|
|
7698
7706
|
};
|
|
7699
|
-
}, Ir = "Dialog", [Wl, PC] =
|
|
7707
|
+
}, Ir = "Dialog", [Wl, PC] = De(Ir), [Qv, He] = Wl(Ir), Ll = (e) => {
|
|
7700
7708
|
const {
|
|
7701
7709
|
__scopeDialog: t,
|
|
7702
7710
|
children: n,
|
|
@@ -8233,7 +8241,7 @@ const IC = ({ pageCount: e, currentPage: t, onChange: n }) => {
|
|
|
8233
8241
|
) })
|
|
8234
8242
|
] }) });
|
|
8235
8243
|
};
|
|
8236
|
-
var Br = "Popover", [ac, $C] =
|
|
8244
|
+
var Br = "Popover", [ac, $C] = De(Br, [
|
|
8237
8245
|
Rr
|
|
8238
8246
|
]), $n = Rr(), [bb, St] = ac(Br), sc = (e) => {
|
|
8239
8247
|
const {
|
|
@@ -8581,7 +8589,7 @@ dn.Cell = $b;
|
|
|
8581
8589
|
dn.Head = Ib;
|
|
8582
8590
|
dn.Header = Pb;
|
|
8583
8591
|
dn.Row = _b;
|
|
8584
|
-
var wo = "rovingFocusGroup.onEntryFocus", Wb = { bubbles: !1, cancelable: !0 }, Fn = "RovingFocusGroup", [Uo, gc, Lb] = oa(Fn), [Bb, zr] =
|
|
8592
|
+
var wo = "rovingFocusGroup.onEntryFocus", Wb = { bubbles: !1, cancelable: !0 }, Fn = "RovingFocusGroup", [Uo, gc, Lb] = oa(Fn), [Bb, zr] = De(
|
|
8585
8593
|
Fn,
|
|
8586
8594
|
[Lb]
|
|
8587
8595
|
), [zb, Hb] = Bb(Fn), vc = m.forwardRef(
|
|
@@ -8745,7 +8753,7 @@ function yc(e, t = !1) {
|
|
|
8745
8753
|
function qb(e, t) {
|
|
8746
8754
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
8747
8755
|
}
|
|
8748
|
-
var wc = vc, kc = xc, Hr = "Tabs", [Kb, LC] =
|
|
8756
|
+
var wc = vc, kc = xc, Hr = "Tabs", [Kb, LC] = De(Hr, [
|
|
8749
8757
|
zr
|
|
8750
8758
|
]), Cc = zr(), [Zb, $a] = Kb(Hr), Sc = m.forwardRef(
|
|
8751
8759
|
(e, t) => {
|
|
@@ -9600,7 +9608,7 @@ function Vr(e) {
|
|
|
9600
9608
|
const t = m.useRef({ value: e, previous: e });
|
|
9601
9609
|
return m.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
9602
9610
|
}
|
|
9603
|
-
var Gr = "Checkbox", [dx, qC] =
|
|
9611
|
+
var Gr = "Checkbox", [dx, qC] = De(Gr), [ux, La] = dx(Gr);
|
|
9604
9612
|
function fx(e) {
|
|
9605
9613
|
const {
|
|
9606
9614
|
__scopeCheckbox: t,
|
|
@@ -9887,7 +9895,7 @@ const KC = ({
|
|
|
9887
9895
|
c && /* @__PURE__ */ l.jsx(cn, { content: c })
|
|
9888
9896
|
] }),
|
|
9889
9897
|
(a || s) && /* @__PURE__ */ l.jsxs(le, { className: "ml-6", direction: "col", gap: "2", children: [
|
|
9890
|
-
a && /* @__PURE__ */ l.jsx(
|
|
9898
|
+
a && /* @__PURE__ */ l.jsx(Ee, { size: "sm", variant: "muted", children: a }),
|
|
9891
9899
|
s && /* @__PURE__ */ l.jsx(Nt, { message: s })
|
|
9892
9900
|
] })
|
|
9893
9901
|
] });
|
|
@@ -12464,7 +12472,7 @@ function g0(e) {
|
|
|
12464
12472
|
t.formatters,
|
|
12465
12473
|
t.labels,
|
|
12466
12474
|
t.classNames
|
|
12467
|
-
]), { captionLayout: c, mode: d, navLayout: f, numberOfMonths: u = 1, onDayBlur: p, onDayClick: h, onDayFocus: x, onDayKeyDown: g, onDayMouseEnter: b, onDayMouseLeave: v, onNextClick: k, onPrevClick: w, showWeekNumber: y, styles: N } = t, { formatCaption: j, formatDay: S, formatMonthDropdown: M, formatWeekNumber: R, formatWeekNumberHeader: _, formatWeekdayName: P, formatYearDropdown: z } = r, T = a0(t, a), { days: G, months: Y, navStart: F, navEnd: H, previousMonth: D, nextMonth: Q, goToMonth: se } = T, we = xw(G, t, F, H, a), { isSelected: O, select: A, selected: V } = h0(t, a) ?? {}, { blur: W, focused: ne, isFocusTarget: U, moveFocus: ue, setFocused: ie } = l0(t, T, we, O ?? (() => !1), a), { labelDayButton: xe, labelGridcell:
|
|
12475
|
+
]), { captionLayout: c, mode: d, navLayout: f, numberOfMonths: u = 1, onDayBlur: p, onDayClick: h, onDayFocus: x, onDayKeyDown: g, onDayMouseEnter: b, onDayMouseLeave: v, onNextClick: k, onPrevClick: w, showWeekNumber: y, styles: N } = t, { formatCaption: j, formatDay: S, formatMonthDropdown: M, formatWeekNumber: R, formatWeekNumberHeader: _, formatWeekdayName: P, formatYearDropdown: z } = r, T = a0(t, a), { days: G, months: Y, navStart: F, navEnd: H, previousMonth: D, nextMonth: Q, goToMonth: se } = T, we = xw(G, t, F, H, a), { isSelected: O, select: A, selected: V } = h0(t, a) ?? {}, { blur: W, focused: ne, isFocusTarget: U, moveFocus: ue, setFocused: ie } = l0(t, T, we, O ?? (() => !1), a), { labelDayButton: xe, labelGridcell: Me, labelGrid: $e, labelMonthDropdown: nt, labelNav: ee, labelPrevious: Vn, labelNext: Gn, labelWeekday: pn, labelWeekNumber: Qr, labelWeekNumberHeader: Jr, labelYearDropdown: mt } = o, Yn = Rt(() => _w(a, t.ISOWeek), [a, t.ISOWeek]), Un = d !== void 0 || h !== void 0, rt = Ae(() => {
|
|
12468
12476
|
D && (se(D), w?.(D));
|
|
12469
12477
|
}, [D, se, w]), hn = Ae(() => {
|
|
12470
12478
|
Q && (se(Q), k?.(Q));
|
|
@@ -12610,7 +12618,7 @@ function g0(e) {
|
|
|
12610
12618
|
const { from: Se, to: Fe } = V;
|
|
12611
12619
|
Z[We.range_start] = !!(Se && Fe && a.isSameDay(J, Se)), Z[We.range_end] = !!(Se && Fe && a.isSameDay(J, Fe)), Z[We.range_middle] = at(V, J, !0, a);
|
|
12612
12620
|
}
|
|
12613
|
-
const ke = Aw(Z, N, t.modifiersStyles), ye = yw(Z, i, t.modifiersClassNames), Ve = !Un && !Z.hidden ?
|
|
12621
|
+
const ke = Aw(Z, N, t.modifiersStyles), ye = yw(Z, i, t.modifiersClassNames), Ve = !Un && !Z.hidden ? Me(J, Z, a.options, a) : void 0;
|
|
12614
12622
|
return (
|
|
12615
12623
|
// biome-ignore lint/a11y/useSemanticElements: react component
|
|
12616
12624
|
E.createElement(n.Day, { key: `${a.format(J, "yyyy-MM-dd")}_${a.format(K.displayMonth, "yyyy-MM")}`, day: K, modifiers: Z, className: ye.join(" "), style: ke, role: "gridcell", "aria-selected": Z.selected || void 0, "aria-label": Ve, "data-day": a.format(J, "yyyy-MM-dd"), "data-month": K.outside ? a.format(J, "yyyy-MM") : void 0, "data-selected": Z.selected || void 0, "data-disabled": Z.disabled || void 0, "data-hidden": Z.hidden || void 0, "data-outside": K.outside || void 0, "data-focused": Z.focused || void 0, "data-today": Z.today || void 0 }, !Z.hidden && Un ? E.createElement(n.DayButton, { className: i[q.DayButton], style: N?.[q.DayButton], type: "button", day: K, modifiers: Z, disabled: Z.disabled || void 0, tabIndex: U(K) ? 0 : -1, "aria-label": xe(J, Z, a.options, a), onClick: qn(K, Z), onBlur: to(K, Z), onFocus: eo(K, Z), onKeyDown: Bt(K, Z), onMouseEnter: no(K, Z), onMouseLeave: Kn(K, Z) }, S(J, a.options, a)) : !Z.hidden && S(K.date, a.options, a))
|
|
@@ -12947,10 +12955,10 @@ const XC = ({ onDateSelection: e, initialValue: t, className: n, size: r = "defa
|
|
|
12947
12955
|
...u
|
|
12948
12956
|
}
|
|
12949
12957
|
),
|
|
12950
|
-
i && /* @__PURE__ */ l.jsx(
|
|
12958
|
+
i && /* @__PURE__ */ l.jsx(Ee, { size: "sm", variant: "muted", children: i }),
|
|
12951
12959
|
f && /* @__PURE__ */ l.jsx(Nt, { message: f })
|
|
12952
12960
|
] });
|
|
12953
|
-
}, w0 = ({ type: e = "text", step: t, ...n }) => e === "number" ? /* @__PURE__ */ l.jsx(_0, { ...n, step: t ?? ".01" }) : e === "date" ? /* @__PURE__ */ l.jsx(hx, { ...n }) : /* @__PURE__ */ l.jsx(Ha, { type: e, ...n }), Nt = ({ id: e, message: t }) => /* @__PURE__ */ l.jsx(
|
|
12961
|
+
}, w0 = ({ type: e = "text", step: t, ...n }) => e === "number" ? /* @__PURE__ */ l.jsx(_0, { ...n, step: t ?? ".01" }) : e === "date" ? /* @__PURE__ */ l.jsx(hx, { ...n }) : /* @__PURE__ */ l.jsx(Ha, { type: e, ...n }), Nt = ({ id: e, message: t }) => /* @__PURE__ */ l.jsx(Ee, { id: e, size: "xs", variant: "destructive", children: t });
|
|
12954
12962
|
function k0({ className: e, ...t }) {
|
|
12955
12963
|
return /* @__PURE__ */ l.jsx(
|
|
12956
12964
|
"textarea",
|
|
@@ -13178,11 +13186,11 @@ const Je = ({ htmlFor: e, value: t, children: n, size: r = "md", className: o =
|
|
|
13178
13186
|
}
|
|
13179
13187
|
) })
|
|
13180
13188
|
] }),
|
|
13181
|
-
o && /* @__PURE__ */ l.jsx(
|
|
13189
|
+
o && /* @__PURE__ */ l.jsx(Ee, { size: "sm", variant: "muted", children: o }),
|
|
13182
13190
|
a && /* @__PURE__ */ l.jsx(Nt, { message: a })
|
|
13183
13191
|
] });
|
|
13184
13192
|
};
|
|
13185
|
-
var Va = "Radio", [I0, bd] =
|
|
13193
|
+
var Va = "Radio", [I0, bd] = De(Va), [$0, F0] = I0(Va), xd = m.forwardRef(
|
|
13186
13194
|
(e, t) => {
|
|
13187
13195
|
const {
|
|
13188
13196
|
__scopeRadio: n,
|
|
@@ -13291,7 +13299,7 @@ kd.displayName = W0;
|
|
|
13291
13299
|
function Cd(e) {
|
|
13292
13300
|
return e ? "checked" : "unchecked";
|
|
13293
13301
|
}
|
|
13294
|
-
var L0 = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Ur = "RadioGroup", [B0, JC] =
|
|
13302
|
+
var L0 = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Ur = "RadioGroup", [B0, JC] = De(Ur, [
|
|
13295
13303
|
zr,
|
|
13296
13304
|
bd
|
|
13297
13305
|
]), Sd = zr(), Nd = bd(), [z0, H0] = B0(Ur), Ed = m.forwardRef(
|
|
@@ -13496,7 +13504,7 @@ const tS = ({
|
|
|
13496
13504
|
f?.(w.target.value);
|
|
13497
13505
|
};
|
|
13498
13506
|
return /* @__PURE__ */ l.jsxs(le, { className: "w-full", direction: "col", gap: "2", children: [
|
|
13499
|
-
/* @__PURE__ */ l.jsxs(le, { align: "center", direction: "row", gap: "1", children: [
|
|
13507
|
+
(r || s) && /* @__PURE__ */ l.jsxs(le, { align: "center", direction: "row", gap: "1", children: [
|
|
13500
13508
|
r && /* @__PURE__ */ l.jsx(Je, { className: o, htmlFor: g, children: r }),
|
|
13501
13509
|
s && /* @__PURE__ */ l.jsx(cn, { content: s })
|
|
13502
13510
|
] }),
|
|
@@ -13518,7 +13526,7 @@ const tS = ({
|
|
|
13518
13526
|
]
|
|
13519
13527
|
}
|
|
13520
13528
|
),
|
|
13521
|
-
i && /* @__PURE__ */ l.jsx(
|
|
13529
|
+
i && /* @__PURE__ */ l.jsx(Ee, { size: "sm", variant: "muted", children: i }),
|
|
13522
13530
|
u && /* @__PURE__ */ l.jsx(Nt, { id: `${g}-error`, message: u })
|
|
13523
13531
|
] });
|
|
13524
13532
|
}, Mo = 768;
|
|
@@ -14127,7 +14135,7 @@ function k1({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
14127
14135
|
document.body.style.pointerEvents = "auto";
|
|
14128
14136
|
}), I || (document.body.style.pointerEvents = "auto");
|
|
14129
14137
|
}
|
|
14130
|
-
}), [H, D] = E.useState(!1), [Q, se] = E.useState(!1), [we, O] = E.useState(!1), A = E.useRef(null), V = E.useRef(null), W = E.useRef(null), ne = E.useRef(null), U = E.useRef(null), ue = E.useRef(!1), ie = E.useRef(null), xe = E.useRef(0),
|
|
14138
|
+
}), [H, D] = E.useState(!1), [Q, se] = E.useState(!1), [we, O] = E.useState(!1), A = E.useRef(null), V = E.useRef(null), W = E.useRef(null), ne = E.useRef(null), U = E.useRef(null), ue = E.useRef(!1), ie = E.useRef(null), xe = E.useRef(0), Me = E.useRef(!1), $e = E.useRef(!N), nt = E.useRef(0), ee = E.useRef(null), Vn = E.useRef(((T = ee.current) == null ? void 0 : T.getBoundingClientRect().height) || 0), Gn = E.useRef(((G = ee.current) == null ? void 0 : G.getBoundingClientRect().width) || 0), pn = E.useRef(0), Qr = E.useCallback((I) => {
|
|
14131
14139
|
a && I === rt.length - 1 && (V.current = /* @__PURE__ */ new Date());
|
|
14132
14140
|
}, []), { activeSnapPoint: Jr, activeSnapPointIndex: mt, setActiveSnapPoint: Yn, onRelease: Un, snapPointsOffset: rt, onDrag: hn, shouldFade: qn, getPercentageDragged: eo } = b1({
|
|
14133
14141
|
snapPoints: a,
|
|
@@ -14238,23 +14246,23 @@ function k1({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
14238
14246
|
function $() {
|
|
14239
14247
|
if (!ee.current || !R) return;
|
|
14240
14248
|
const K = document.activeElement;
|
|
14241
|
-
if (Ko(K) ||
|
|
14249
|
+
if (Ko(K) || Me.current) {
|
|
14242
14250
|
var J;
|
|
14243
14251
|
const Z = ((J = window.visualViewport) == null ? void 0 : J.height) || 0, ke = window.innerHeight;
|
|
14244
14252
|
let ye = ke - Z;
|
|
14245
14253
|
const Ve = ee.current.getBoundingClientRect().height || 0, Se = Ve > ke * 0.8;
|
|
14246
14254
|
pn.current || (pn.current = Ve);
|
|
14247
14255
|
const Fe = ee.current.getBoundingClientRect().top;
|
|
14248
|
-
if (Math.abs(nt.current - ye) > 60 && (
|
|
14256
|
+
if (Math.abs(nt.current - ye) > 60 && (Me.current = !Me.current), a && a.length > 0 && rt && mt) {
|
|
14249
14257
|
const pt = rt[mt] || 0;
|
|
14250
14258
|
ye += pt;
|
|
14251
14259
|
}
|
|
14252
|
-
if (nt.current = ye, Ve > Z ||
|
|
14260
|
+
if (nt.current = ye, Ve > Z || Me.current) {
|
|
14253
14261
|
const pt = ee.current.getBoundingClientRect().height;
|
|
14254
14262
|
let Ge = pt;
|
|
14255
14263
|
pt > Z && (Ge = Z - (Se ? Fe : Zo)), g ? ee.current.style.height = `${pt - Math.max(ye, 0)}px` : ee.current.style.height = `${Math.max(Ge, Z - Fe)}px`;
|
|
14256
14264
|
} else e1() || (ee.current.style.height = `${pn.current}px`);
|
|
14257
|
-
a && a.length > 0 && !
|
|
14265
|
+
a && a.length > 0 && !Me.current ? ee.current.style.bottom = "0px" : ee.current.style.bottom = `${Math.max(ye, 0)}px`;
|
|
14258
14266
|
}
|
|
14259
14267
|
}
|
|
14260
14268
|
return (I = window.visualViewport) == null || I.addEventListener("resize", $), () => {
|
|
@@ -14401,7 +14409,7 @@ function k1({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
14401
14409
|
onNestedDrag: so,
|
|
14402
14410
|
onNestedOpenChange: Xn,
|
|
14403
14411
|
onNestedRelease: re,
|
|
14404
|
-
keyboardIsOpen:
|
|
14412
|
+
keyboardIsOpen: Me,
|
|
14405
14413
|
modal: b,
|
|
14406
14414
|
snapPointsOffset: rt,
|
|
14407
14415
|
activeSnapPointIndex: mt,
|
|
@@ -15095,7 +15103,7 @@ const ck = ({ label: e, options: t, onSelect: n, selectedValue: r }) => /* @__PU
|
|
|
15095
15103
|
)
|
|
15096
15104
|
}
|
|
15097
15105
|
),
|
|
15098
|
-
d && /* @__PURE__ */ l.jsx(
|
|
15106
|
+
d && /* @__PURE__ */ l.jsx(Ee, { size: "sm", variant: "muted", children: d }),
|
|
15099
15107
|
f && /* @__PURE__ */ l.jsx(Nt, { message: f })
|
|
15100
15108
|
] });
|
|
15101
15109
|
};
|
|
@@ -15107,7 +15115,7 @@ var Xd = ["PageUp", "PageDown"], Qd = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
15107
15115
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
15108
15116
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
15109
15117
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
15110
|
-
}, mn = "Slider", [Jo, dk, uk] = oa(mn), [eu, rS] =
|
|
15118
|
+
}, mn = "Slider", [Jo, dk, uk] = oa(mn), [eu, rS] = De(mn, [
|
|
15111
15119
|
uk
|
|
15112
15120
|
]), [fk, Kr] = eu(mn), tu = m.forwardRef(
|
|
15113
15121
|
(e, t) => {
|
|
@@ -15608,7 +15616,7 @@ const oS = ({ size: e = "md", thumbClassName: t, trackClassName: n, value: r, de
|
|
|
15608
15616
|
}
|
|
15609
15617
|
);
|
|
15610
15618
|
};
|
|
15611
|
-
var Zr = "Switch", [Ok, aS] =
|
|
15619
|
+
var Zr = "Switch", [Ok, aS] = De(Zr), [Rk, Tk] = Ok(Zr), uu = m.forwardRef(
|
|
15612
15620
|
(e, t) => {
|
|
15613
15621
|
const {
|
|
15614
15622
|
__scopeSwitch: n,
|
|
@@ -15821,7 +15829,7 @@ function $k({
|
|
|
15821
15829
|
...c
|
|
15822
15830
|
}
|
|
15823
15831
|
),
|
|
15824
|
-
n && /* @__PURE__ */ l.jsx(
|
|
15832
|
+
n && /* @__PURE__ */ l.jsx(Ee, { size: "sm", variant: "muted", children: n }),
|
|
15825
15833
|
a && /* @__PURE__ */ l.jsx(Nt, { message: a })
|
|
15826
15834
|
] });
|
|
15827
15835
|
}
|
|
@@ -15854,7 +15862,7 @@ const Js = [
|
|
|
15854
15862
|
}, i = Js.find((d) => d.theme === e)?.icon, c = Js.find((d) => d.theme === e)?.label;
|
|
15855
15863
|
return /* @__PURE__ */ l.jsx("span", { className: C(r), ...a, children: /* @__PURE__ */ l.jsxs(ft, { className: C("p-1 w-full", o), onClick: s, variant: "unstyled", children: [
|
|
15856
15864
|
i,
|
|
15857
|
-
/* @__PURE__ */ l.jsx(
|
|
15865
|
+
/* @__PURE__ */ l.jsx(Ee, { className: n, size: "base", truncate: !0, children: c })
|
|
15858
15866
|
] }) });
|
|
15859
15867
|
}, Wk = ({
|
|
15860
15868
|
variant: e = "horizontal",
|
|
@@ -15877,8 +15885,8 @@ const Js = [
|
|
|
15877
15885
|
...s
|
|
15878
15886
|
}
|
|
15879
15887
|
) : /* @__PURE__ */ l.jsxs(le, { className: o, gap: "4", children: [
|
|
15880
|
-
/* @__PURE__ */ l.jsxs(
|
|
15881
|
-
/* @__PURE__ */ l.jsx(
|
|
15888
|
+
/* @__PURE__ */ l.jsxs(je, { children: [
|
|
15889
|
+
/* @__PURE__ */ l.jsx(je.Trigger, { children: /* @__PURE__ */ l.jsx(
|
|
15882
15890
|
om,
|
|
15883
15891
|
{
|
|
15884
15892
|
className: C(i("system"), a),
|
|
@@ -15886,15 +15894,15 @@ const Js = [
|
|
|
15886
15894
|
size: 32
|
|
15887
15895
|
}
|
|
15888
15896
|
) }),
|
|
15889
|
-
/* @__PURE__ */ l.jsx(
|
|
15897
|
+
/* @__PURE__ */ l.jsx(je.Content, { children: "Use system theme" })
|
|
15890
15898
|
] }),
|
|
15891
|
-
/* @__PURE__ */ l.jsxs(
|
|
15892
|
-
/* @__PURE__ */ l.jsx(
|
|
15893
|
-
/* @__PURE__ */ l.jsx(
|
|
15899
|
+
/* @__PURE__ */ l.jsxs(je, { children: [
|
|
15900
|
+
/* @__PURE__ */ l.jsx(je.Trigger, { children: /* @__PURE__ */ l.jsx(Si, { className: C(i("light"), a), onClick: () => n("light"), size: 32 }) }),
|
|
15901
|
+
/* @__PURE__ */ l.jsx(je.Content, { children: "Use light theme" })
|
|
15894
15902
|
] }),
|
|
15895
|
-
/* @__PURE__ */ l.jsxs(
|
|
15896
|
-
/* @__PURE__ */ l.jsx(
|
|
15897
|
-
/* @__PURE__ */ l.jsx(
|
|
15903
|
+
/* @__PURE__ */ l.jsxs(je, { children: [
|
|
15904
|
+
/* @__PURE__ */ l.jsx(je.Trigger, { children: /* @__PURE__ */ l.jsx(Ci, { className: C(i("dark"), a), onClick: () => n("dark"), size: 32 }) }),
|
|
15905
|
+
/* @__PURE__ */ l.jsx(je.Content, { children: "Use dark theme" })
|
|
15898
15906
|
] })
|
|
15899
15907
|
] });
|
|
15900
15908
|
}, gu = m.createContext(void 0), Lk = () => {
|
|
@@ -16005,90 +16013,98 @@ Lt.Content = zk;
|
|
|
16005
16013
|
const qa = ({
|
|
16006
16014
|
variant: e,
|
|
16007
16015
|
iconComponent: t,
|
|
16008
|
-
|
|
16009
|
-
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
|
|
16013
|
-
|
|
16016
|
+
headline: n,
|
|
16017
|
+
headlineLevel: r = "2",
|
|
16018
|
+
headlineWeight: o = "bold",
|
|
16019
|
+
message: a,
|
|
16020
|
+
messageClassName: s,
|
|
16021
|
+
children: i,
|
|
16022
|
+
iconSize: c = "10xl",
|
|
16023
|
+
iconClassName: d,
|
|
16024
|
+
fullScreen: f = !1,
|
|
16025
|
+
containerClassName: u
|
|
16014
16026
|
}) => {
|
|
16015
|
-
if (!t && !
|
|
16027
|
+
if (!t && !a && !i)
|
|
16016
16028
|
return /* @__PURE__ */ l.jsx(le, { align: "center", className: "h-full w-full", justify: "center", children: "Content missing" });
|
|
16017
|
-
const
|
|
16029
|
+
const p = t || null;
|
|
16018
16030
|
return /* @__PURE__ */ l.jsx(
|
|
16019
16031
|
le,
|
|
16020
16032
|
{
|
|
16021
16033
|
align: "center",
|
|
16022
|
-
className: C("w-full", !
|
|
16034
|
+
className: C("w-full", !f && "h-full", f && "h-screen", u),
|
|
16023
16035
|
justify: "center",
|
|
16024
16036
|
children: /* @__PURE__ */ l.jsxs(le, { direction: "col", justify: "center", children: [
|
|
16025
|
-
|
|
16026
|
-
|
|
16037
|
+
p && /* @__PURE__ */ l.jsx(le, { align: "center", className: "my-6", gapX: "4", justify: "center", children: /* @__PURE__ */ l.jsx(
|
|
16038
|
+
p,
|
|
16027
16039
|
{
|
|
16028
|
-
"aria-hidden": !!
|
|
16029
|
-
"aria-label":
|
|
16040
|
+
"aria-hidden": !!a,
|
|
16041
|
+
"aria-label": a ? void 0 : `${e || "info"} icon`,
|
|
16030
16042
|
className: C(
|
|
16031
16043
|
e === "error" && "text-destructive",
|
|
16032
16044
|
e === "success" && "text-success",
|
|
16033
16045
|
e === "warning" && "text-warning",
|
|
16034
16046
|
e === "info" && "text-info",
|
|
16035
|
-
|
|
16036
|
-
|
|
16037
|
-
|
|
16038
|
-
|
|
16039
|
-
|
|
16040
|
-
|
|
16041
|
-
|
|
16042
|
-
|
|
16043
|
-
|
|
16044
|
-
|
|
16045
|
-
|
|
16046
|
-
|
|
16047
|
-
|
|
16048
|
-
|
|
16049
|
-
|
|
16047
|
+
c === "xs" && "size-2",
|
|
16048
|
+
c === "sm" && "size-3",
|
|
16049
|
+
c === "md" && "size-4",
|
|
16050
|
+
c === "lg" && "size-5",
|
|
16051
|
+
c === "xl" && "size-6",
|
|
16052
|
+
c === "2xl" && "size-7",
|
|
16053
|
+
c === "3xl" && "size-8",
|
|
16054
|
+
c === "4xl" && "size-10",
|
|
16055
|
+
c === "5xl" && "size-12",
|
|
16056
|
+
c === "6xl" && "size-14",
|
|
16057
|
+
c === "7xl" && "size-16",
|
|
16058
|
+
c === "8xl" && "size-20",
|
|
16059
|
+
c === "9xl" && "size-28",
|
|
16060
|
+
c === "10xl" && "size-32",
|
|
16061
|
+
d
|
|
16050
16062
|
),
|
|
16051
16063
|
"data-testid": "icon",
|
|
16052
|
-
role:
|
|
16064
|
+
role: a ? void 0 : "img"
|
|
16053
16065
|
}
|
|
16054
16066
|
) }),
|
|
16055
|
-
/* @__PURE__ */ l.jsxs(le, { className: "max-w-[500px]", direction: "col", justify: "center", children: [
|
|
16056
|
-
n ? /* @__PURE__ */ l.jsx(Nr, { align: "center", level:
|
|
16057
|
-
|
|
16067
|
+
/* @__PURE__ */ l.jsxs(le, { className: "max-w-[500px]", direction: "col", gap: "4", justify: "center", children: [
|
|
16068
|
+
n ? /* @__PURE__ */ l.jsx(Nr, { align: "center", level: r, weight: o, children: n }) : null,
|
|
16069
|
+
a ? /* @__PURE__ */ l.jsx(Ee, { align: "center", className: s, children: a }) : null,
|
|
16070
|
+
i
|
|
16058
16071
|
] })
|
|
16059
16072
|
] })
|
|
16060
16073
|
}
|
|
16061
16074
|
);
|
|
16062
|
-
}, Kk = ({
|
|
16075
|
+
}, Kk = ({ headline: e = "Something went wrong", message: t, children: n, ...r }) => /* @__PURE__ */ l.jsx(qa, { headline: e, iconComponent: Af, message: t, variant: "error", ...r, children: n }), Zk = () => {
|
|
16063
16076
|
try {
|
|
16064
16077
|
window.location.reload();
|
|
16065
16078
|
} catch {
|
|
16066
16079
|
console.warn("Page reload prevented in test environment");
|
|
16067
16080
|
}
|
|
16068
|
-
}, iS = ({ error: e, onRetry: t = Zk, ...n }) => /* @__PURE__ */ l.jsx(Kk, { ...n, children: /* @__PURE__ */ l.jsxs(le, { align: "center",
|
|
16069
|
-
/* @__PURE__ */ l.jsx(Fa, { className: "
|
|
16081
|
+
}, iS = ({ error: e, onRetry: t = Zk, ...n }) => /* @__PURE__ */ l.jsx(Kk, { ...n, children: /* @__PURE__ */ l.jsxs(le, { align: "center", direction: "col", gap: "8", children: [
|
|
16082
|
+
/* @__PURE__ */ l.jsx(Fa, { className: "p-4", variant: "muted", width: "full", children: /* @__PURE__ */ l.jsx(Ep, { align: "center", size: "xs", variant: "inherit", children: e.message || "Unknown error occurred" }) }),
|
|
16070
16083
|
/* @__PURE__ */ l.jsx(ft, { icon: /* @__PURE__ */ l.jsx(mm, {}), onClick: t, variant: "primary", children: "Reload" })
|
|
16071
16084
|
] }) }), Xk = (e) => /* @__PURE__ */ l.jsx(Ml, { className: "text-info", "data-testid": "icon", ...e }), lS = ({ iconComponent: e, message: t, iconSize: n = "5xl", iconClassName: r, ...o }) => {
|
|
16072
16085
|
const a = e || Xk;
|
|
16073
16086
|
return /* @__PURE__ */ l.jsx(
|
|
16074
16087
|
qa,
|
|
16075
16088
|
{
|
|
16089
|
+
headline: t,
|
|
16090
|
+
headlineLevel: "4",
|
|
16091
|
+
headlineWeight: "normal",
|
|
16076
16092
|
iconClassName: C("text-info", r),
|
|
16077
16093
|
iconComponent: a,
|
|
16078
16094
|
iconSize: n,
|
|
16079
|
-
message: t,
|
|
16080
16095
|
...o
|
|
16081
16096
|
}
|
|
16082
16097
|
);
|
|
16083
16098
|
}, cS = ({
|
|
16084
16099
|
onBack: e,
|
|
16085
|
-
|
|
16086
|
-
|
|
16087
|
-
|
|
16088
|
-
|
|
16100
|
+
headline: t = "Page not found",
|
|
16101
|
+
message: n = "The page you are looking for does not exist.",
|
|
16102
|
+
backIcon: r = Of,
|
|
16103
|
+
backLabel: o = "Back",
|
|
16104
|
+
...a
|
|
16089
16105
|
}) => {
|
|
16090
|
-
const
|
|
16091
|
-
return /* @__PURE__ */ l.jsx(qa, { iconComponent: Zf, message:
|
|
16106
|
+
const s = r;
|
|
16107
|
+
return /* @__PURE__ */ l.jsx(qa, { headline: t, iconComponent: Zf, message: n, variant: "warning", ...a, children: /* @__PURE__ */ l.jsx(le, { align: "center", className: "mt-8", direction: "col", children: e && /* @__PURE__ */ l.jsx(ft, { icon: /* @__PURE__ */ l.jsx(s, {}), onClick: e, variant: "primary", children: o }) }) });
|
|
16092
16108
|
};
|
|
16093
16109
|
function Qk({ ...e }) {
|
|
16094
16110
|
return /* @__PURE__ */ l.jsx($r, { "data-slot": "sheet", ...e });
|
|
@@ -16503,7 +16519,7 @@ function mr({
|
|
|
16503
16519
|
/* @__PURE__ */ l.jsx(Sl, { align: "center", hidden: d !== "collapsed" || c, side: "right", ...o })
|
|
16504
16520
|
] })) : f;
|
|
16505
16521
|
}
|
|
16506
|
-
const xu = ({ children: e }) => /* @__PURE__ */ l.jsx(
|
|
16522
|
+
const xu = ({ children: e }) => /* @__PURE__ */ l.jsx(Ee, { size: "base", truncate: !0, children: e }), kC = ({ itemSet: e, activeSlug: t }) => /* @__PURE__ */ l.jsx(l.Fragment, { children: e.links.map((n) => /* @__PURE__ */ l.jsx(fr, { className: "hover:cursor-pointer", onClick: n.onClick, children: /* @__PURE__ */ l.jsx(mr, { asChild: !0, isActive: t === n.slug, children: /* @__PURE__ */ l.jsxs("span", { children: [
|
|
16507
16523
|
/* @__PURE__ */ l.jsx(n.icon, {}),
|
|
16508
16524
|
/* @__PURE__ */ l.jsx(xu, { children: n.title }),
|
|
16509
16525
|
n.external && /* @__PURE__ */ l.jsx(le, { children: /* @__PURE__ */ l.jsx(ym, { size: 12, strokeWidth: 1.5 }) })
|
|
@@ -16612,12 +16628,12 @@ export {
|
|
|
16612
16628
|
VC as TabsContent,
|
|
16613
16629
|
zC as TabsList,
|
|
16614
16630
|
HC as TabsTrigger,
|
|
16615
|
-
|
|
16631
|
+
Ee as Text,
|
|
16616
16632
|
Ha as TextInput,
|
|
16617
16633
|
tx as TextList,
|
|
16618
16634
|
$k as Textarea,
|
|
16619
16635
|
Wk as ThemeSelector,
|
|
16620
16636
|
Lt as Timeline,
|
|
16621
|
-
|
|
16637
|
+
je as Tooltip,
|
|
16622
16638
|
C as cn
|
|
16623
16639
|
};
|