@marimo-team/islands 0.24.3-dev39 → 0.24.3-dev40
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/{ConnectedDataExplorerComponent-DeiKXaGB.js → ConnectedDataExplorerComponent-KVhjDMSe.js} +1062 -1062
- package/dist/ErrorBoundary-CacTZz7K.js +200 -0
- package/dist/{abnfDiagram-VCTEODGH-DKNGRyhn.js → abnfDiagram-VCTEODGH-CpN0FRda.js} +2 -2
- package/dist/{any-language-editor-BdvsE_1G.js → any-language-editor-CycIVIeP.js} +13 -13
- package/dist/{architectureDiagram-5GKGNRK7-C9oCEyV-.js → architectureDiagram-5GKGNRK7-DDyj5SRB.js} +1 -1
- package/dist/{html-to-image-CZm_DMIE.js → cells-BSgNCBZ8.js} +5177 -8831
- package/dist/{chat-ui-D15itIKJ.js → chat-ui-CygzVJ9s.js} +1345 -1394
- package/dist/{check-mcQyZmFG.js → check-B7cIK6gb.js} +1 -1
- package/dist/{chunk-IMKFNOWR-ByL0a1rh.js → chunk-IMKFNOWR-BfwTebD0.js} +1 -1
- package/dist/{chunk-SHT3W25Y-D1Nb5X1c.js → chunk-SHT3W25Y-BspJEJ5H.js} +1 -1
- package/dist/{chunk-SVP7TREG-BShKxcfD.js → chunk-SVP7TREG-DX3rFNTe.js} +1 -1
- package/dist/{chunk-TICWLB2K-zpDbKPt8.js → chunk-TICWLB2K-fVF7Uujg.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-qcsoIIQw.js → classDiagram-ZZMXUADV-Fe-V14Sc.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-CAgMct5x.js → classDiagram-v2-VYDZK3BY-xTDg7lOs.js} +2 -2
- package/dist/code-visibility-BBNwvBcV.js +138 -0
- package/dist/{common-eNTtBSo2.js → common-DM3lblo7.js} +5531 -5730
- package/dist/copy-icon-CLdENY__.js +190 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-BzBXigwN.js → cynefinDiagram-5FMLGOSQ-CFQrqzSX.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-B-75J283.js → dagre-GXQ25YYZ-xHNAUTyG.js} +1 -1
- package/dist/{data-grid-overlay-editor-DMu5X3F1.js → data-grid-overlay-editor-DjRvSwGI.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-Bzr5oWc0.js → diagram-S7CK7UJ4-Bt1rPbAx.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CVIH_HJ_.js → diagram-UQ7AKVKN-D1sq5FoZ.js} +1 -1
- package/dist/{diagram-VX7I27RA-BmoMwYLC.js → diagram-VX7I27RA-BMwGFVD6.js} +1 -1
- package/dist/{diagram-Z3DM3KII-BW1w6mnj.js → diagram-Z3DM3KII--KLDR9Pl.js} +1 -1
- package/dist/dialog-CgNq6y9-.js +94 -0
- package/dist/{objectWithoutPropertiesLoose-BbiTb8zy.js → dist-CO1AwwG_.js} +516 -572
- package/dist/{dropdown-menu-WMrB1UnI.js → dropdown-menu-CZgjYSAh.js} +1437 -2793
- package/dist/{ebnfDiagram-PWID7BFC-90Q6gkC0.js → ebnfDiagram-PWID7BFC-WnG4cvSQ.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-BZkLy3TR.js → erDiagram-RLTQ6QDP-DhzKiYHc.js} +1 -1
- package/dist/error-banner-B94dcDmP.js +391 -0
- package/dist/error-entries-iJn-Nryx.js +56 -0
- package/dist/{esm-qM9GvHZi.js → esm-h8f7-1CJ.js} +316 -315
- package/dist/feedback-button-BkFFL-wb.js +380 -0
- package/dist/{flowDiagram-HODETNUW-CD1F_wj5.js → flowDiagram-HODETNUW-6dMdB8pR.js} +2 -2
- package/dist/{formats-B-gajYGs.js → formats-BR5iGb4s.js} +1 -1
- package/dist/{glide-data-editor-DzFEatOq.js → glide-data-editor-CeAOHG6x.js} +117 -116
- package/dist/{glide-utils-4WmLlefP.js → glide-utils-B3rUT5PI.js} +2 -2
- package/dist/globals-C74RodJy.js +19 -0
- package/dist/html-to-image-kpuRfdfZ.js +3253 -0
- package/dist/{infoDiagram-27XIBGKW-t0zIIRVa.js → infoDiagram-27XIBGKW-BagtCX_5.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-DtQUIYgx.js → ishikawaDiagram-5VMMS53U-DByDehYy.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CUMmwuNB.js → kanban-definition-UXKFOSKX-BxwkbBI_.js} +1 -1
- package/dist/{label-e37ixur5.js → label-BJ49YTvk.js} +1 -1
- package/dist/main.js +4717 -4728
- package/dist/{mermaid-CMLxoJ0m.js → mermaid-DPNuhemn.js} +35 -35
- package/dist/{mindmap-definition-YA3MSWOX-DnbkiQla.js → mindmap-definition-YA3MSWOX-Cgvojw3y.js} +1 -1
- package/dist/{number-overlay-editor-lGqRHkFt.js → number-overlay-editor-DDyIkEk3.js} +1 -1
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +23 -0
- package/dist/{pegDiagram-XKGWAZYB-qgqAYMdv.js → pegDiagram-XKGWAZYB-DahHhYyN.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-DJUB6w6B.js → pieDiagram-E7YTZNPT-CCtX0oCK.js} +1 -1
- package/dist/{process-output-DuupNR0m.js → process-output-DFe2tVIY.js} +7 -6
- package/dist/{railroadDiagram-O6MQD6OU-C0dtw4sR.js → railroadDiagram-O6MQD6OU-Du5NsPUb.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DqaTsUuC.js → requirementDiagram-BXWQKSXE-0pmmxL6_.js} +1 -1
- package/dist/{reveal-component-CNqmC7b6.js → reveal-component-CRy68FxJ.js} +625 -625
- package/dist/{select-UMOSCa3W.js → select-C6plhmZr.js} +308 -553
- package/dist/{sequenceDiagram-WJ2MYXX4-D2NyWGuu.js → sequenceDiagram-WJ2MYXX4-DB-ChWwU.js} +1 -1
- package/dist/{spec-BiD5y7ft.js → spec-CAYwFeV6.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-JChw35bc.js → stateDiagram-D77RDMKH-orN6AwMx.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-BfVY7OxA.js → stateDiagram-v2-MP3YSRHH-o05_rJN8.js} +2 -2
- package/dist/{swimlanes-42K2YHIH-eAB6utyY.js → swimlanes-42K2YHIH-BkSDcqDT.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-Cnpd2YtA.js → swimlanesDiagram-VR7AAH4N-D_nFQfRc.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-DlnODX3U.js → timeline-definition-24CTP7MA-BuqJUIRZ.js} +1 -1
- package/dist/{toDate-0cxDmdsp.js → toDate-WXg1yLcI.js} +2 -2
- package/dist/toast-DvY70eFX.js +1834 -0
- package/dist/tooltip-qB8NlSqV.js +1742 -0
- package/dist/{schemas-BDZr-nP0.js → use-restore-focus-D5D9xEjZ.js} +1385 -1166
- package/dist/{useAsyncData-DCIhDLCe.js → useAsyncData-BD6AStMt.js} +1 -1
- package/dist/{useDateFormatter-BKpQHt-W.js → useDateFormatter-BRTPsUK7.js} +2 -2
- package/dist/{useDeepCompareMemoize-CLaZB7Gc.js → useDeepCompareMemoize-D_HNdyvI.js} +1 -1
- package/dist/{useLifecycle-C1ViBACC.js → useLifecycle-DPgiiwwU.js} +2 -2
- package/dist/useNumberFormatter-BfDpa21j.js +251 -0
- package/dist/{useTheme-Da9LJvrQ.js → useTheme-DzXmYZ5V.js} +83 -83
- package/dist/{vega-component-Bt6d8B4Q.js → vega-component-D0QXopU8.js} +27 -27
- package/dist/{vennDiagram-4TSXK5OY-B_m5KxUg.js → vennDiagram-4TSXK5OY-CTUlJ2PK.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-Dw-Lgv3D.js → wardleyDiagram-VM6X3IG4-3evLUb0M.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-BjfRms1e.js → xychartDiagram-S5SC5T6Z-DL2E3K8-.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/boundary/ErrorBoundary.tsx +38 -16
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +311 -0
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +94 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +53 -33
- package/src/components/ui/use-toast.ts +8 -0
- package/dist/ErrorBoundary-B3IKS4qY.js +0 -125
- package/dist/copy-C0N4m1lm.js +0 -141
- package/dist/dist-6ChWbo8z.js +0 -1360
- package/dist/error-banner-hCaH06e3.js +0 -611
- package/dist/tooltip-CdE8k0pS.js +0 -390
|
@@ -1,611 +0,0 @@
|
|
|
1
|
-
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { d as t, g as n, h as r, n as i, p as a, r as o, u as s } from "./button-DdXAm8iz.js";
|
|
3
|
-
import { t as c } from "./react-ofJbxM4x.js";
|
|
4
|
-
import { t as l } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
-
import { t as u } from "./jsx-runtime-DgDPJV9S.js";
|
|
6
|
-
import { $ as d, J as f, P as p, Q as m, Z as h, at as g, ct as _, ft as v, ht as y, j as b, lt as x, mt as S, nt as ee, pt as te, rt as ne, tt as re, ut as ie } from "./schemas-BDZr-nP0.js";
|
|
7
|
-
//#region ../node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@19.2.5_@types+react@19.2.18__@types+reac_04400ab7c97262ead6fb425b02ed2e26/node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
8
|
-
var C = /* @__PURE__ */ e(c(), 1), w = u(), T = "Dialog", [ae, oe] = S(T), [se, E] = ae(T), ce = (e) => {
|
|
9
|
-
let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, s = C.useRef(null), c = C.useRef(null), [l, u] = ie({
|
|
10
|
-
prop: r,
|
|
11
|
-
defaultProp: i ?? !1,
|
|
12
|
-
onChange: a,
|
|
13
|
-
caller: T
|
|
14
|
-
});
|
|
15
|
-
return /* @__PURE__ */ (0, w.jsx)(se, {
|
|
16
|
-
scope: t,
|
|
17
|
-
triggerRef: s,
|
|
18
|
-
contentRef: c,
|
|
19
|
-
contentId: _(),
|
|
20
|
-
titleId: _(),
|
|
21
|
-
descriptionId: _(),
|
|
22
|
-
open: l,
|
|
23
|
-
onOpenChange: u,
|
|
24
|
-
onOpenToggle: C.useCallback(() => u((e) => !e), [u]),
|
|
25
|
-
modal: o,
|
|
26
|
-
children: n
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
ce.displayName = T;
|
|
30
|
-
var le = "DialogTrigger", ue = C.forwardRef((e, t) => {
|
|
31
|
-
let { __scopeDialog: n, ...r } = e, i = E(le, n), o = a(t, i.triggerRef);
|
|
32
|
-
return /* @__PURE__ */ (0, w.jsx)(y.button, {
|
|
33
|
-
type: "button",
|
|
34
|
-
"aria-haspopup": "dialog",
|
|
35
|
-
"aria-expanded": i.open,
|
|
36
|
-
"aria-controls": i.contentId,
|
|
37
|
-
"data-state": R(i.open),
|
|
38
|
-
...r,
|
|
39
|
-
ref: o,
|
|
40
|
-
onClick: v(e.onClick, i.onOpenToggle)
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
ue.displayName = le;
|
|
44
|
-
var D = "DialogPortal", [de, fe] = ae(D, { forceMount: void 0 }), pe = (e) => {
|
|
45
|
-
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = E(D, t);
|
|
46
|
-
return /* @__PURE__ */ (0, w.jsx)(de, {
|
|
47
|
-
scope: t,
|
|
48
|
-
forceMount: n,
|
|
49
|
-
children: C.Children.map(r, (e) => /* @__PURE__ */ (0, w.jsx)(x, {
|
|
50
|
-
present: n || a.open,
|
|
51
|
-
children: /* @__PURE__ */ (0, w.jsx)(ee, {
|
|
52
|
-
asChild: !0,
|
|
53
|
-
container: i,
|
|
54
|
-
children: e
|
|
55
|
-
})
|
|
56
|
-
}))
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
pe.displayName = D;
|
|
60
|
-
var O = "DialogOverlay", k = C.forwardRef((e, t) => {
|
|
61
|
-
let n = fe(O, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = E(O, e.__scopeDialog);
|
|
62
|
-
return a.modal ? /* @__PURE__ */ (0, w.jsx)(x, {
|
|
63
|
-
present: r || a.open,
|
|
64
|
-
children: /* @__PURE__ */ (0, w.jsx)(he, {
|
|
65
|
-
...i,
|
|
66
|
-
ref: t
|
|
67
|
-
})
|
|
68
|
-
}) : null;
|
|
69
|
-
});
|
|
70
|
-
k.displayName = O;
|
|
71
|
-
var me = s("DialogOverlay.RemoveScroll"), he = C.forwardRef((e, t) => {
|
|
72
|
-
let { __scopeDialog: n, ...r } = e, i = E(O, n);
|
|
73
|
-
return /* @__PURE__ */ (0, w.jsx)(d, {
|
|
74
|
-
as: me,
|
|
75
|
-
allowPinchZoom: !0,
|
|
76
|
-
shards: [i.contentRef],
|
|
77
|
-
children: /* @__PURE__ */ (0, w.jsx)(y.div, {
|
|
78
|
-
"data-state": R(i.open),
|
|
79
|
-
...r,
|
|
80
|
-
ref: t,
|
|
81
|
-
style: {
|
|
82
|
-
pointerEvents: "auto",
|
|
83
|
-
...r.style
|
|
84
|
-
}
|
|
85
|
-
})
|
|
86
|
-
});
|
|
87
|
-
}), A = "DialogContent", ge = C.forwardRef((e, t) => {
|
|
88
|
-
let n = fe(A, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = E(A, e.__scopeDialog);
|
|
89
|
-
return /* @__PURE__ */ (0, w.jsx)(x, {
|
|
90
|
-
present: r || a.open,
|
|
91
|
-
children: a.modal ? /* @__PURE__ */ (0, w.jsx)(_e, {
|
|
92
|
-
...i,
|
|
93
|
-
ref: t
|
|
94
|
-
}) : /* @__PURE__ */ (0, w.jsx)(ve, {
|
|
95
|
-
...i,
|
|
96
|
-
ref: t
|
|
97
|
-
})
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
ge.displayName = A;
|
|
101
|
-
var _e = C.forwardRef((e, t) => {
|
|
102
|
-
let n = E(A, e.__scopeDialog), r = C.useRef(null), i = a(t, n.contentRef, r);
|
|
103
|
-
return C.useEffect(() => {
|
|
104
|
-
let e = r.current;
|
|
105
|
-
if (e) return m(e);
|
|
106
|
-
}, []), /* @__PURE__ */ (0, w.jsx)(j, {
|
|
107
|
-
...e,
|
|
108
|
-
ref: i,
|
|
109
|
-
trapFocus: n.open,
|
|
110
|
-
disableOutsidePointerEvents: !0,
|
|
111
|
-
onCloseAutoFocus: v(e.onCloseAutoFocus, (e) => {
|
|
112
|
-
e.preventDefault(), n.triggerRef.current?.focus();
|
|
113
|
-
}),
|
|
114
|
-
onPointerDownOutside: v(e.onPointerDownOutside, (e) => {
|
|
115
|
-
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
116
|
-
(t.button === 2 || n) && e.preventDefault();
|
|
117
|
-
}),
|
|
118
|
-
onFocusOutside: v(e.onFocusOutside, (e) => e.preventDefault())
|
|
119
|
-
});
|
|
120
|
-
}), ve = C.forwardRef((e, t) => {
|
|
121
|
-
let n = E(A, e.__scopeDialog), r = C.useRef(!1), i = C.useRef(!1);
|
|
122
|
-
return /* @__PURE__ */ (0, w.jsx)(j, {
|
|
123
|
-
...e,
|
|
124
|
-
ref: t,
|
|
125
|
-
trapFocus: !1,
|
|
126
|
-
disableOutsidePointerEvents: !1,
|
|
127
|
-
onCloseAutoFocus: (t) => {
|
|
128
|
-
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
|
|
129
|
-
},
|
|
130
|
-
onInteractOutside: (t) => {
|
|
131
|
-
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
|
|
132
|
-
let a = t.target;
|
|
133
|
-
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
}), j = C.forwardRef((e, t) => {
|
|
137
|
-
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: o, ...s } = e, c = E(A, n), l = C.useRef(null), u = a(t, l);
|
|
138
|
-
return re(), /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(ne, {
|
|
139
|
-
asChild: !0,
|
|
140
|
-
loop: !0,
|
|
141
|
-
trapped: r,
|
|
142
|
-
onMountAutoFocus: i,
|
|
143
|
-
onUnmountAutoFocus: o,
|
|
144
|
-
children: /* @__PURE__ */ (0, w.jsx)(g, {
|
|
145
|
-
role: "dialog",
|
|
146
|
-
id: c.contentId,
|
|
147
|
-
"aria-describedby": c.descriptionId,
|
|
148
|
-
"aria-labelledby": c.titleId,
|
|
149
|
-
"data-state": R(c.open),
|
|
150
|
-
...s,
|
|
151
|
-
ref: u,
|
|
152
|
-
onDismiss: () => c.onOpenChange(!1)
|
|
153
|
-
})
|
|
154
|
-
}), /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(xe, { titleId: c.titleId }), /* @__PURE__ */ (0, w.jsx)(Ce, {
|
|
155
|
-
contentRef: l,
|
|
156
|
-
descriptionId: c.descriptionId
|
|
157
|
-
})] })] });
|
|
158
|
-
}), M = "DialogTitle", N = C.forwardRef((e, t) => {
|
|
159
|
-
let { __scopeDialog: n, ...r } = e, i = E(M, n);
|
|
160
|
-
return /* @__PURE__ */ (0, w.jsx)(y.h2, {
|
|
161
|
-
id: i.titleId,
|
|
162
|
-
...r,
|
|
163
|
-
ref: t
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
N.displayName = M;
|
|
167
|
-
var P = "DialogDescription", F = C.forwardRef((e, t) => {
|
|
168
|
-
let { __scopeDialog: n, ...r } = e, i = E(P, n);
|
|
169
|
-
return /* @__PURE__ */ (0, w.jsx)(y.p, {
|
|
170
|
-
id: i.descriptionId,
|
|
171
|
-
...r,
|
|
172
|
-
ref: t
|
|
173
|
-
});
|
|
174
|
-
});
|
|
175
|
-
F.displayName = P;
|
|
176
|
-
var I = "DialogClose", L = C.forwardRef((e, t) => {
|
|
177
|
-
let { __scopeDialog: n, ...r } = e, i = E(I, n);
|
|
178
|
-
return /* @__PURE__ */ (0, w.jsx)(y.button, {
|
|
179
|
-
type: "button",
|
|
180
|
-
...r,
|
|
181
|
-
ref: t,
|
|
182
|
-
onClick: v(e.onClick, () => i.onOpenChange(!1))
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
L.displayName = I;
|
|
186
|
-
function R(e) {
|
|
187
|
-
return e ? "open" : "closed";
|
|
188
|
-
}
|
|
189
|
-
var z = "DialogTitleWarning", [ye, be] = te(z, {
|
|
190
|
-
contentName: A,
|
|
191
|
-
titleName: M,
|
|
192
|
-
docsSlug: "dialog"
|
|
193
|
-
}), xe = ({ titleId: e }) => {
|
|
194
|
-
let t = be(z), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
195
|
-
|
|
196
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
197
|
-
|
|
198
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
199
|
-
return C.useEffect(() => {
|
|
200
|
-
e && (document.getElementById(e) || console.error(n));
|
|
201
|
-
}, [n, e]), null;
|
|
202
|
-
}, Se = "DialogDescriptionWarning", Ce = ({ contentRef: e, descriptionId: t }) => {
|
|
203
|
-
let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${be(Se).contentName}}.`;
|
|
204
|
-
return C.useEffect(() => {
|
|
205
|
-
let r = e.current?.getAttribute("aria-describedby");
|
|
206
|
-
t && r && (document.getElementById(t) || console.warn(n));
|
|
207
|
-
}, [
|
|
208
|
-
n,
|
|
209
|
-
e,
|
|
210
|
-
t
|
|
211
|
-
]), null;
|
|
212
|
-
}, we = ce, Te = ue, Ee = pe, De = k, Oe = ge, ke = N, Ae = F, B = L, je = "AlertDialog", [Me, Ne] = S(je, [oe]), V = oe(), Pe = (e) => {
|
|
213
|
-
let { __scopeAlertDialog: t, ...n } = e, r = V(t);
|
|
214
|
-
return /* @__PURE__ */ (0, w.jsx)(we, {
|
|
215
|
-
...r,
|
|
216
|
-
...n,
|
|
217
|
-
modal: !0
|
|
218
|
-
});
|
|
219
|
-
};
|
|
220
|
-
Pe.displayName = je;
|
|
221
|
-
var Fe = "AlertDialogTrigger", Ie = C.forwardRef((e, t) => {
|
|
222
|
-
let { __scopeAlertDialog: n, ...r } = e, i = V(n);
|
|
223
|
-
return /* @__PURE__ */ (0, w.jsx)(Te, {
|
|
224
|
-
...i,
|
|
225
|
-
...r,
|
|
226
|
-
ref: t
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
Ie.displayName = Fe;
|
|
230
|
-
var Le = "AlertDialogPortal", Re = (e) => {
|
|
231
|
-
let { __scopeAlertDialog: t, ...n } = e, r = V(t);
|
|
232
|
-
return /* @__PURE__ */ (0, w.jsx)(Ee, {
|
|
233
|
-
...r,
|
|
234
|
-
...n
|
|
235
|
-
});
|
|
236
|
-
};
|
|
237
|
-
Re.displayName = Le;
|
|
238
|
-
var ze = "AlertDialogOverlay", Be = C.forwardRef((e, t) => {
|
|
239
|
-
let { __scopeAlertDialog: n, ...r } = e, i = V(n);
|
|
240
|
-
return /* @__PURE__ */ (0, w.jsx)(De, {
|
|
241
|
-
...i,
|
|
242
|
-
...r,
|
|
243
|
-
ref: t
|
|
244
|
-
});
|
|
245
|
-
});
|
|
246
|
-
Be.displayName = ze;
|
|
247
|
-
var H = "AlertDialogContent", [Ve, He] = Me(H), Ue = t("AlertDialogContent"), We = C.forwardRef((e, t) => {
|
|
248
|
-
let { __scopeAlertDialog: n, children: r, ...i } = e, o = V(n), s = C.useRef(null), c = a(t, s), l = C.useRef(null);
|
|
249
|
-
return /* @__PURE__ */ (0, w.jsx)(ye, {
|
|
250
|
-
contentName: H,
|
|
251
|
-
titleName: Ge,
|
|
252
|
-
docsSlug: "alert-dialog",
|
|
253
|
-
children: /* @__PURE__ */ (0, w.jsx)(Ve, {
|
|
254
|
-
scope: n,
|
|
255
|
-
cancelRef: l,
|
|
256
|
-
children: /* @__PURE__ */ (0, w.jsxs)(Oe, {
|
|
257
|
-
role: "alertdialog",
|
|
258
|
-
...o,
|
|
259
|
-
...i,
|
|
260
|
-
ref: c,
|
|
261
|
-
onOpenAutoFocus: v(i.onOpenAutoFocus, (e) => {
|
|
262
|
-
e.preventDefault(), l.current?.focus({ preventScroll: !0 });
|
|
263
|
-
}),
|
|
264
|
-
onPointerDownOutside: (e) => e.preventDefault(),
|
|
265
|
-
onInteractOutside: (e) => e.preventDefault(),
|
|
266
|
-
children: [/* @__PURE__ */ (0, w.jsx)(Ue, { children: r }), /* @__PURE__ */ (0, w.jsx)($e, { contentRef: s })]
|
|
267
|
-
})
|
|
268
|
-
})
|
|
269
|
-
});
|
|
270
|
-
});
|
|
271
|
-
We.displayName = H;
|
|
272
|
-
var Ge = "AlertDialogTitle", Ke = C.forwardRef((e, t) => {
|
|
273
|
-
let { __scopeAlertDialog: n, ...r } = e, i = V(n);
|
|
274
|
-
return /* @__PURE__ */ (0, w.jsx)(ke, {
|
|
275
|
-
...i,
|
|
276
|
-
...r,
|
|
277
|
-
ref: t
|
|
278
|
-
});
|
|
279
|
-
});
|
|
280
|
-
Ke.displayName = Ge;
|
|
281
|
-
var qe = "AlertDialogDescription", Je = C.forwardRef((e, t) => {
|
|
282
|
-
let { __scopeAlertDialog: n, ...r } = e, i = V(n);
|
|
283
|
-
return /* @__PURE__ */ (0, w.jsx)(Ae, {
|
|
284
|
-
...i,
|
|
285
|
-
...r,
|
|
286
|
-
ref: t
|
|
287
|
-
});
|
|
288
|
-
});
|
|
289
|
-
Je.displayName = qe;
|
|
290
|
-
var Ye = "AlertDialogAction", Xe = C.forwardRef((e, t) => {
|
|
291
|
-
let { __scopeAlertDialog: n, ...r } = e, i = V(n);
|
|
292
|
-
return /* @__PURE__ */ (0, w.jsx)(B, {
|
|
293
|
-
...i,
|
|
294
|
-
...r,
|
|
295
|
-
ref: t
|
|
296
|
-
});
|
|
297
|
-
});
|
|
298
|
-
Xe.displayName = Ye;
|
|
299
|
-
var Ze = "AlertDialogCancel", Qe = C.forwardRef((e, t) => {
|
|
300
|
-
let { __scopeAlertDialog: n, ...r } = e, { cancelRef: i } = He(Ze, n), o = V(n), s = a(t, i);
|
|
301
|
-
return /* @__PURE__ */ (0, w.jsx)(B, {
|
|
302
|
-
...o,
|
|
303
|
-
...r,
|
|
304
|
-
ref: s
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
Qe.displayName = Ze;
|
|
308
|
-
var $e = ({ contentRef: e }) => {
|
|
309
|
-
let t = `\`${H}\` requires a description for the component to be accessible for screen reader users.
|
|
310
|
-
|
|
311
|
-
You can add a description to the \`${H}\` by passing a \`${qe}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
312
|
-
|
|
313
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${H}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
314
|
-
|
|
315
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
316
|
-
return C.useEffect(() => {
|
|
317
|
-
document.getElementById(e.current?.getAttribute("aria-describedby")) || console.warn(t);
|
|
318
|
-
}, [t, e]), null;
|
|
319
|
-
}, et = Pe, tt = Re, nt = Be, rt = We, U = Xe, it = Qe, at = Ke, ot = Je, W = l();
|
|
320
|
-
function st() {
|
|
321
|
-
let e = (0, W.c)(3), [t, n] = (0, C.useState)(null), r;
|
|
322
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = () => {
|
|
323
|
-
n(document.activeElement);
|
|
324
|
-
}, e[0] = r) : r = e[0];
|
|
325
|
-
let i = r, a;
|
|
326
|
-
return e[1] === t ? a = e[2] : (a = {
|
|
327
|
-
onOpenAutoFocus: i,
|
|
328
|
-
onCloseAutoFocus: (e) => {
|
|
329
|
-
document.activeElement === document.body && (t instanceof HTMLElement && t.focus(), e.preventDefault());
|
|
330
|
-
}
|
|
331
|
-
}, e[1] = t, e[2] = a), a;
|
|
332
|
-
}
|
|
333
|
-
//#endregion
|
|
334
|
-
//#region src/components/ui/alert-dialog.tsx
|
|
335
|
-
var ct = et, lt = f(({ children: e, ...t }) => /* @__PURE__ */ (0, w.jsx)(tt, {
|
|
336
|
-
...t,
|
|
337
|
-
children: /* @__PURE__ */ (0, w.jsx)(h, { children: /* @__PURE__ */ (0, w.jsx)("div", {
|
|
338
|
-
className: "fixed inset-0 z-50 flex items-end justify-center sm:items-start sm:top-[15%]",
|
|
339
|
-
children: e
|
|
340
|
-
}) })
|
|
341
|
-
}));
|
|
342
|
-
lt.displayName = tt.displayName;
|
|
343
|
-
var ut = C.forwardRef((e, t) => {
|
|
344
|
-
let n = (0, W.c)(9), i, a;
|
|
345
|
-
if (n[0] !== e) {
|
|
346
|
-
let { className: t, children: r, ...o } = e;
|
|
347
|
-
i = t, a = o, n[0] = e, n[1] = i, n[2] = a;
|
|
348
|
-
} else i = n[1], a = n[2];
|
|
349
|
-
let o;
|
|
350
|
-
n[3] === i ? o = n[4] : (o = r("fixed inset-0 z-50 bg-background/80 backdrop-blur-xs transition-opacity animate-in fade-in", i), n[3] = i, n[4] = o);
|
|
351
|
-
let s;
|
|
352
|
-
return n[5] !== a || n[6] !== t || n[7] !== o ? (s = /* @__PURE__ */ (0, w.jsx)(nt, {
|
|
353
|
-
className: o,
|
|
354
|
-
...a,
|
|
355
|
-
ref: t
|
|
356
|
-
}), n[5] = a, n[6] = t, n[7] = o, n[8] = s) : s = n[8], s;
|
|
357
|
-
});
|
|
358
|
-
ut.displayName = nt.displayName;
|
|
359
|
-
var G = C.forwardRef((e, t) => {
|
|
360
|
-
let n = (0, W.c)(11), i, a;
|
|
361
|
-
n[0] === e ? (i = n[1], a = n[2]) : ({className: i, ...a} = e, n[0] = e, n[1] = i, n[2] = a);
|
|
362
|
-
let o = st(), s;
|
|
363
|
-
n[3] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, w.jsx)(ut, {}), n[3] = s) : s = n[3];
|
|
364
|
-
let c;
|
|
365
|
-
n[4] === i ? c = n[5] : (c = r("fixed z-50 grid w-full max-w-2xl scale-100 gap-4 border bg-background p-6 opacity-100 shadow-sm animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full", i), n[4] = i, n[5] = c);
|
|
366
|
-
let l;
|
|
367
|
-
return n[6] !== a || n[7] !== t || n[8] !== o || n[9] !== c ? (l = /* @__PURE__ */ (0, w.jsxs)(lt, { children: [s, /* @__PURE__ */ (0, w.jsx)(rt, {
|
|
368
|
-
ref: t,
|
|
369
|
-
className: c,
|
|
370
|
-
...o,
|
|
371
|
-
...a
|
|
372
|
-
})] }), n[6] = a, n[7] = t, n[8] = o, n[9] = c, n[10] = l) : l = n[10], l;
|
|
373
|
-
});
|
|
374
|
-
G.displayName = rt.displayName;
|
|
375
|
-
var K = (e) => {
|
|
376
|
-
let t = (0, W.c)(8), n, i;
|
|
377
|
-
t[0] === e ? (n = t[1], i = t[2]) : ({className: n, ...i} = e, t[0] = e, t[1] = n, t[2] = i);
|
|
378
|
-
let a;
|
|
379
|
-
t[3] === n ? a = t[4] : (a = r("flex flex-col space-y-2 text-center sm:text-left", n), t[3] = n, t[4] = a);
|
|
380
|
-
let o;
|
|
381
|
-
return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ (0, w.jsx)("div", {
|
|
382
|
-
className: a,
|
|
383
|
-
...i
|
|
384
|
-
}), t[5] = i, t[6] = a, t[7] = o) : o = t[7], o;
|
|
385
|
-
};
|
|
386
|
-
K.displayName = "AlertDialogHeader";
|
|
387
|
-
var q = (e) => {
|
|
388
|
-
let t = (0, W.c)(8), n, i;
|
|
389
|
-
t[0] === e ? (n = t[1], i = t[2]) : ({className: n, ...i} = e, t[0] = e, t[1] = n, t[2] = i);
|
|
390
|
-
let a;
|
|
391
|
-
t[3] === n ? a = t[4] : (a = r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", n), t[3] = n, t[4] = a);
|
|
392
|
-
let o;
|
|
393
|
-
return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ (0, w.jsx)("div", {
|
|
394
|
-
className: a,
|
|
395
|
-
...i
|
|
396
|
-
}), t[5] = i, t[6] = a, t[7] = o) : o = t[7], o;
|
|
397
|
-
};
|
|
398
|
-
q.displayName = "AlertDialogFooter";
|
|
399
|
-
var J = C.forwardRef((e, t) => {
|
|
400
|
-
let n = (0, W.c)(9), i, a;
|
|
401
|
-
n[0] === e ? (i = n[1], a = n[2]) : ({className: i, ...a} = e, n[0] = e, n[1] = i, n[2] = a);
|
|
402
|
-
let o;
|
|
403
|
-
n[3] === i ? o = n[4] : (o = r("text-lg font-semibold", i), n[3] = i, n[4] = o);
|
|
404
|
-
let s;
|
|
405
|
-
return n[5] !== a || n[6] !== t || n[7] !== o ? (s = /* @__PURE__ */ (0, w.jsx)(at, {
|
|
406
|
-
ref: t,
|
|
407
|
-
className: o,
|
|
408
|
-
...a
|
|
409
|
-
}), n[5] = a, n[6] = t, n[7] = o, n[8] = s) : s = n[8], s;
|
|
410
|
-
});
|
|
411
|
-
J.displayName = at.displayName;
|
|
412
|
-
var Y = C.forwardRef((e, t) => {
|
|
413
|
-
let n = (0, W.c)(9), i, a;
|
|
414
|
-
n[0] === e ? (i = n[1], a = n[2]) : ({className: i, ...a} = e, n[0] = e, n[1] = i, n[2] = a);
|
|
415
|
-
let o;
|
|
416
|
-
n[3] === i ? o = n[4] : (o = r("text-muted-foreground", i), n[3] = i, n[4] = o);
|
|
417
|
-
let s;
|
|
418
|
-
return n[5] !== a || n[6] !== t || n[7] !== o ? (s = /* @__PURE__ */ (0, w.jsx)(ot, {
|
|
419
|
-
ref: t,
|
|
420
|
-
className: o,
|
|
421
|
-
...a
|
|
422
|
-
}), n[5] = a, n[6] = t, n[7] = o, n[8] = s) : s = n[8], s;
|
|
423
|
-
});
|
|
424
|
-
Y.displayName = ot.displayName;
|
|
425
|
-
var X = C.forwardRef((e, t) => {
|
|
426
|
-
let n = (0, W.c)(9), a, o;
|
|
427
|
-
n[0] === e ? (a = n[1], o = n[2]) : ({className: a, ...o} = e, n[0] = e, n[1] = a, n[2] = o);
|
|
428
|
-
let s;
|
|
429
|
-
n[3] === a ? s = n[4] : (s = r(i(), a), n[3] = a, n[4] = s);
|
|
430
|
-
let c;
|
|
431
|
-
return n[5] !== o || n[6] !== t || n[7] !== s ? (c = /* @__PURE__ */ (0, w.jsx)(U, {
|
|
432
|
-
ref: t,
|
|
433
|
-
className: s,
|
|
434
|
-
...o
|
|
435
|
-
}), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
|
|
436
|
-
});
|
|
437
|
-
X.displayName = U.displayName;
|
|
438
|
-
var dt = C.forwardRef((e, t) => {
|
|
439
|
-
let n = (0, W.c)(9), a, o;
|
|
440
|
-
n[0] === e ? (a = n[1], o = n[2]) : ({className: a, ...o} = e, n[0] = e, n[1] = a, n[2] = o);
|
|
441
|
-
let s;
|
|
442
|
-
n[3] === a ? s = n[4] : (s = r(i({ variant: "destructive" }), a), n[3] = a, n[4] = s);
|
|
443
|
-
let c;
|
|
444
|
-
return n[5] !== o || n[6] !== t || n[7] !== s ? (c = /* @__PURE__ */ (0, w.jsx)(U, {
|
|
445
|
-
ref: t,
|
|
446
|
-
className: s,
|
|
447
|
-
...o
|
|
448
|
-
}), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
|
|
449
|
-
});
|
|
450
|
-
dt.displayName = "AlertDialogDestructiveAction";
|
|
451
|
-
var ft = C.forwardRef((e, t) => {
|
|
452
|
-
let n = (0, W.c)(9), a, o;
|
|
453
|
-
n[0] === e ? (a = n[1], o = n[2]) : ({className: a, ...o} = e, n[0] = e, n[1] = a, n[2] = o);
|
|
454
|
-
let s;
|
|
455
|
-
n[3] === a ? s = n[4] : (s = r(i({ variant: "secondary" }), "mt-2 sm:mt-0", a), n[3] = a, n[4] = s);
|
|
456
|
-
let c;
|
|
457
|
-
return n[5] !== o || n[6] !== t || n[7] !== s ? (c = /* @__PURE__ */ (0, w.jsx)(it, {
|
|
458
|
-
ref: t,
|
|
459
|
-
className: s,
|
|
460
|
-
...o
|
|
461
|
-
}), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
|
|
462
|
-
});
|
|
463
|
-
ft.displayName = it.displayName;
|
|
464
|
-
//#endregion
|
|
465
|
-
//#region src/utils/errors.ts
|
|
466
|
-
var Z = b({ detail: p() }), pt = b({ error: p() });
|
|
467
|
-
function Q(e) {
|
|
468
|
-
if (!e) return "Unknown error";
|
|
469
|
-
if (e instanceof Error) {
|
|
470
|
-
let t = Z.safeParse(e.cause);
|
|
471
|
-
return t.success ? t.data.detail : mt(e.message);
|
|
472
|
-
}
|
|
473
|
-
if (typeof e == "object") {
|
|
474
|
-
let t = Z.safeParse(e);
|
|
475
|
-
if (t.success) return t.data.detail;
|
|
476
|
-
let n = pt.safeParse(e);
|
|
477
|
-
if (n.success) return n.data.error;
|
|
478
|
-
}
|
|
479
|
-
try {
|
|
480
|
-
return JSON.stringify(e);
|
|
481
|
-
} catch {
|
|
482
|
-
return String(e);
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
function mt(e) {
|
|
486
|
-
let t = ht(e);
|
|
487
|
-
if (!t) return e;
|
|
488
|
-
let n = Z.safeParse(t);
|
|
489
|
-
if (n.success) return n.data.detail;
|
|
490
|
-
let r = pt.safeParse(t);
|
|
491
|
-
return r.success ? r.data.error : e;
|
|
492
|
-
}
|
|
493
|
-
function ht(e) {
|
|
494
|
-
try {
|
|
495
|
-
return JSON.parse(e);
|
|
496
|
-
} catch {
|
|
497
|
-
return e;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
var gt = class extends Error {
|
|
501
|
-
constructor(e = "The cell containing this UI element has not been run yet. Please run the cell first.") {
|
|
502
|
-
super(e), this.name = "CellNotInitializedError";
|
|
503
|
-
}
|
|
504
|
-
}, _t = class extends Error {
|
|
505
|
-
constructor(e = "This UI element could not reach its function on the kernel. Try re-running the cell.") {
|
|
506
|
-
super(e), this.name = "FunctionNotFoundError";
|
|
507
|
-
}
|
|
508
|
-
}, vt = (e) => {
|
|
509
|
-
let t = (0, W.c)(23), { error: r, className: i, action: a } = e, [o, s] = (0, C.useState)(!1);
|
|
510
|
-
if (!r) return null;
|
|
511
|
-
n.error(r);
|
|
512
|
-
let c;
|
|
513
|
-
t[0] === r ? c = t[1] : (c = Q(r), t[0] = r, t[1] = c);
|
|
514
|
-
let l = c, u;
|
|
515
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (u = () => s(!0), t[2] = u) : u = t[2];
|
|
516
|
-
let d;
|
|
517
|
-
t[3] === l ? d = t[4] : (d = /* @__PURE__ */ (0, w.jsx)("span", {
|
|
518
|
-
className: "line-clamp-4",
|
|
519
|
-
children: l
|
|
520
|
-
}), t[3] = l, t[4] = d);
|
|
521
|
-
let f;
|
|
522
|
-
t[5] === a ? f = t[6] : (f = a && /* @__PURE__ */ (0, w.jsx)("div", {
|
|
523
|
-
className: "flex justify-end",
|
|
524
|
-
children: a
|
|
525
|
-
}), t[5] = a, t[6] = f);
|
|
526
|
-
let p;
|
|
527
|
-
t[7] !== i || t[8] !== d || t[9] !== f ? (p = /* @__PURE__ */ (0, w.jsxs)($, {
|
|
528
|
-
kind: "danger",
|
|
529
|
-
className: i,
|
|
530
|
-
clickable: !0,
|
|
531
|
-
onClick: u,
|
|
532
|
-
children: [d, f]
|
|
533
|
-
}), t[7] = i, t[8] = d, t[9] = f, t[10] = p) : p = t[10];
|
|
534
|
-
let m;
|
|
535
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ (0, w.jsx)(K, { children: /* @__PURE__ */ (0, w.jsx)(J, {
|
|
536
|
-
className: "text-error",
|
|
537
|
-
children: "Error"
|
|
538
|
-
}) }), t[11] = m) : m = t[11];
|
|
539
|
-
let h;
|
|
540
|
-
t[12] === l ? h = t[13] : (h = /* @__PURE__ */ (0, w.jsx)(Y, {
|
|
541
|
-
asChild: !0,
|
|
542
|
-
className: "text-error text-sm p-2 font-mono overflow-auto whitespace-pre-wrap",
|
|
543
|
-
children: /* @__PURE__ */ (0, w.jsx)("pre", { children: l })
|
|
544
|
-
}), t[12] = l, t[13] = h);
|
|
545
|
-
let g;
|
|
546
|
-
t[14] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ (0, w.jsx)(q, { children: /* @__PURE__ */ (0, w.jsx)(X, {
|
|
547
|
-
autoFocus: !0,
|
|
548
|
-
onClick: () => s(!1),
|
|
549
|
-
children: "Ok"
|
|
550
|
-
}) }), t[14] = g) : g = t[14];
|
|
551
|
-
let _;
|
|
552
|
-
t[15] === h ? _ = t[16] : (_ = /* @__PURE__ */ (0, w.jsxs)(G, {
|
|
553
|
-
className: "max-w-[80%] max-h-[80%] overflow-hidden flex flex-col",
|
|
554
|
-
children: [
|
|
555
|
-
m,
|
|
556
|
-
h,
|
|
557
|
-
g
|
|
558
|
-
]
|
|
559
|
-
}), t[15] = h, t[16] = _);
|
|
560
|
-
let v;
|
|
561
|
-
t[17] !== o || t[18] !== _ ? (v = /* @__PURE__ */ (0, w.jsx)(ct, {
|
|
562
|
-
open: o,
|
|
563
|
-
onOpenChange: s,
|
|
564
|
-
children: _
|
|
565
|
-
}), t[17] = o, t[18] = _, t[19] = v) : v = t[19];
|
|
566
|
-
let y;
|
|
567
|
-
return t[20] !== v || t[21] !== p ? (y = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [p, v] }), t[20] = v, t[21] = p, t[22] = y) : y = t[22], y;
|
|
568
|
-
}, yt = o("text-sm p-2 border whitespace-pre-wrap overflow-hidden", {
|
|
569
|
-
variants: {
|
|
570
|
-
kind: {
|
|
571
|
-
danger: "text-error border-(--red-6) shadow-md-solid shadow-error bg-(--red-1)",
|
|
572
|
-
info: "text-primary border-(--blue-6) shadow-md-solid shadow-accent bg-(--blue-1)",
|
|
573
|
-
warn: "border-(--yellow-6) bg-(--yellow-2) dark:bg-(--yellow-4) text-(--yellow-11) dark:text-(--yellow-12)"
|
|
574
|
-
},
|
|
575
|
-
clickable: { true: "cursor-pointer" }
|
|
576
|
-
},
|
|
577
|
-
compoundVariants: [
|
|
578
|
-
{
|
|
579
|
-
clickable: !0,
|
|
580
|
-
kind: "danger",
|
|
581
|
-
className: "hover:bg-(--red-3)"
|
|
582
|
-
},
|
|
583
|
-
{
|
|
584
|
-
clickable: !0,
|
|
585
|
-
kind: "info",
|
|
586
|
-
className: "hover:bg-(--blue-3)"
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
clickable: !0,
|
|
590
|
-
kind: "warn",
|
|
591
|
-
className: "hover:bg-(--yellow-3)"
|
|
592
|
-
}
|
|
593
|
-
],
|
|
594
|
-
defaultVariants: { kind: "info" }
|
|
595
|
-
}), $ = (e) => {
|
|
596
|
-
let t = (0, W.c)(14), n, i, a, o, s;
|
|
597
|
-
t[0] === e ? (n = t[1], i = t[2], a = t[3], o = t[4], s = t[5]) : ({kind: o, clickable: a, className: i, children: n, ...s} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = o, t[5] = s);
|
|
598
|
-
let c;
|
|
599
|
-
t[6] !== i || t[7] !== a || t[8] !== o ? (c = r(yt({
|
|
600
|
-
kind: o,
|
|
601
|
-
clickable: a
|
|
602
|
-
}), i), t[6] = i, t[7] = a, t[8] = o, t[9] = c) : c = t[9];
|
|
603
|
-
let l;
|
|
604
|
-
return t[10] !== n || t[11] !== s || t[12] !== c ? (l = /* @__PURE__ */ (0, w.jsx)("div", {
|
|
605
|
-
className: c,
|
|
606
|
-
...s,
|
|
607
|
-
children: n
|
|
608
|
-
}), t[10] = n, t[11] = s, t[12] = c, t[13] = l) : l = t[13], l;
|
|
609
|
-
};
|
|
610
|
-
//#endregion
|
|
611
|
-
export { Te as C, ke as S, Oe as _, Q as a, Ee as b, ft as c, dt as d, q as f, B as g, st as h, _t as i, G as l, J as m, vt as n, ct as o, K as p, gt as r, X as s, $ as t, Y as u, Ae as v, we as x, De as y };
|