@marimo-team/islands 0.23.1-dev20 → 0.23.1-dev22
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-Eq8bCe49.js → ConnectedDataExplorerComponent-P92i6wYx.js} +148 -148
- package/dist/{ImageComparisonComponent-DY3J_vIU.js → ImageComparisonComponent-HF4AY8_n.js} +2 -2
- package/dist/{Plot-BxlSHo0G.js → Plot-CK0oVgQL.js} +2 -2
- package/dist/{any-language-editor-BF8ew8wu.js → any-language-editor-BCvLfvzI.js} +7 -7
- package/dist/{button-Cn59RsBF.js → button-D1C3g5GI.js} +72 -71
- package/dist/{capabilities-Bml77Di-.js → capabilities-BwpUgo4S.js} +1 -1
- package/dist/{chat-ui-BdrC6z8t.js → chat-ui-CNHw9Osh.js} +2829 -2829
- package/dist/{check-C51PA02v.js → check-BgrdTLuv.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-C428iZBW.js → chunk-5FQGJX7Z-VIref9gx.js} +4 -4
- package/dist/{click-outside-container-vCXhHl-R.js → click-outside-container-D3t6KDni.js} +1 -1
- package/dist/{code-block-37QAKDTI-D9EnJeBI.js → code-block-37QAKDTI-FQEoMOU1.js} +2 -2
- package/dist/{compiler-runtime-B_OLMU9S.js → compiler-runtime-CEbnTgxf.js} +1 -1
- package/dist/{copy-DzOz_Au7.js → copy-Bp6CK_Fg.js} +9 -9
- package/dist/{data-grid-overlay-editor-lKF301ME.js → data-grid-overlay-editor-C_sKPpLu.js} +4 -4
- package/dist/{dist-CjLQ79mo.js → dist-CTtLBPLZ.js} +11 -11
- package/dist/{dist-BoNJsA65.js → dist-DUFd1bhm.js} +1 -1
- package/dist/{error-banner-BQcJXy6k.js → error-banner-B_ioHva3.js} +121 -121
- package/dist/{esm-BmYNigxi.js → esm-CDHI9cuO.js} +15 -15
- package/dist/{glide-data-editor-D2X4D_xi.js → glide-data-editor-BFqEJGJW.js} +948 -948
- package/dist/{input-BRN2Mjzx.js → input-CSVEkmaZ.js} +288 -288
- package/dist/{label-J1N4mVcg.js → label-BebYlsDV.js} +257 -257
- package/dist/{loader-JmfPBSx5.js → loader-ZFbGsMN1.js} +15 -15
- package/dist/main.js +7092 -6951
- package/dist/mermaid-4DMBBIKO-BjtqcdX4.js +6 -0
- package/dist/{mermaid-UMKVHs_g.js → mermaid-BbhZNQeB.js} +18 -18
- package/dist/{number-overlay-editor-DxLoVuuE.js → number-overlay-editor-B02-t7Ar.js} +2 -2
- package/dist/{process-output-D3Q6xBZJ.js → process-output-Bekznt_B.js} +863 -863
- package/dist/{react-dom-BSUuJjCR.js → react-dom-D5FDLRUB.js} +1 -1
- package/dist/{react-vega-DayQmZjG.js → react-vega-BkjdpVsR.js} +2 -2
- package/dist/{react-vega-CzRAIHrv.js → react-vega-DBwal82H.js} +1 -1
- package/dist/{slides-component-_3tukGh-.js → slides-component-DLxprlqo.js} +26 -26
- package/dist/{spec-rP6otrXw.js → spec-3EPbPQZH.js} +4 -4
- package/dist/style.css +1 -1
- package/dist/{toDate-CfGr2xZ1.js → toDate-B1AzlBoW.js} +15 -15
- package/dist/{tooltip-BusGYw7Q.js → tooltip-DwNnFsxZ.js} +132 -132
- package/dist/{types-D4CFUmPq.js → types-pwjdK009.js} +15 -15
- package/dist/{useAsyncData-BzS3Ai32.js → useAsyncData-BL98MPIy.js} +3 -3
- package/dist/{useDeepCompareMemoize-AjORjhpL.js → useDeepCompareMemoize-CsyOnnjc.js} +25 -25
- package/dist/{useIframeCapabilities---aRgGdv.js → useIframeCapabilities-CsTUYYj7.js} +3 -3
- package/dist/{useLifecycle-B90lJH4p.js → useLifecycle-DrGGIsgp.js} +36 -36
- package/dist/{useTheme-ytmywQ5O.js → useTheme-CzwDokKe.js} +4 -4
- package/dist/{vega-component-C3akWtJ1.js → vega-component-KBJXEDZz.js} +42 -42
- package/dist/{zod-D4UoCYGu.js → zod-W5ZEjzaE.js} +23 -23
- package/package.json +4 -4
- package/src/core/islands/__tests__/bridge.test.ts +2 -12
- package/src/core/islands/__tests__/islands-harness.test.ts +348 -0
- package/src/core/islands/__tests__/parse.test.ts +466 -24
- package/src/core/islands/__tests__/test-utils.tsx +263 -0
- package/src/core/islands/bootstrap.ts +265 -0
- package/src/core/islands/bridge.ts +154 -75
- package/src/core/islands/components/IslandControls.tsx +103 -0
- package/src/core/islands/components/__tests__/IslandControls.test.tsx +185 -0
- package/src/core/islands/components/__tests__/useIslandControls.test.ts +208 -0
- package/src/core/islands/components/output-wrapper.tsx +76 -93
- package/src/core/islands/components/useIslandControls.ts +60 -0
- package/src/core/islands/components/web-components.tsx +168 -40
- package/src/core/islands/constants.ts +28 -0
- package/src/core/islands/main.ts +7 -205
- package/src/core/islands/parse.ts +73 -26
- package/src/core/islands/worker-factory.ts +86 -0
- package/src/plugins/impl/DataTablePlugin.tsx +7 -3
- package/dist/mermaid-4DMBBIKO-Cw46o6DN.js +0 -6
- /package/dist/{clsx-yW_RAw0K.js → clsx-CwTY0BxM.js} +0 -0
- /package/dist/{react-Bs6Z0kvn.js → react-DA-nE2FX.js} +0 -0
|
@@ -2,8 +2,8 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { r as __export, s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
5
|
-
import { t as require_react } from "./react-
|
|
6
|
-
import { t as clsx } from "./clsx-
|
|
5
|
+
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
6
|
+
import { t as clsx } from "./clsx-CwTY0BxM.js";
|
|
7
7
|
import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
|
|
8
8
|
import { C as hastToReact, D as SKIP, E as EXIT, O as visitParents, S as find, T as CONTINUE, _ as s, a as asciiAtext, b as html$1, c as asciiHexDigit, d as markdownLineEndingOrSpace, f as markdownSpace, g as h$1, h as webNamespaces, i as asciiAlphanumeric, k as convert, l as asciiPunctuation, m as unicodeWhitespace, n as longestStreak, o as asciiControl, p as unicodePunctuation, r as asciiAlpha, s as asciiDigit, t as factorySpace, u as markdownLineEnding, v as stringify$1, w as ok, x as svg, y as stringify } from "./micromark-factory-space-BHslBP9f.js";
|
|
9
9
|
let tt, cr, ao, xn, b, require_cjs, N;
|
|
@@ -19876,10 +19876,10 @@ ${e}</tr>
|
|
|
19876
19876
|
})
|
|
19877
19877
|
]
|
|
19878
19878
|
});
|
|
19879
|
-
Oo = (0, import_react.lazy)(() => import("./code-block-37QAKDTI-
|
|
19879
|
+
Oo = (0, import_react.lazy)(() => import("./code-block-37QAKDTI-FQEoMOU1.js").then((e) => ({
|
|
19880
19880
|
default: e.CodeBlock
|
|
19881
19881
|
})));
|
|
19882
|
-
Ao = (0, import_react.lazy)(() => import("./mermaid-4DMBBIKO-
|
|
19882
|
+
Ao = (0, import_react.lazy)(() => import("./mermaid-4DMBBIKO-BjtqcdX4.js").then((e) => ({
|
|
19883
19883
|
default: e.Mermaid
|
|
19884
19884
|
})));
|
|
19885
19885
|
qo = /language-([^\s]+)/;
|
|
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
var _a;
|
|
5
5
|
import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
6
|
-
import { t as require_react } from "./react-
|
|
6
|
+
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
function panic(f = "This should not happen") {
|
|
8
8
|
throw Error(f);
|
|
9
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import { t as require_react } from "./react-
|
|
3
|
-
import { i as cr, n as ao, r as b, t as N } from "./chunk-5FQGJX7Z-
|
|
2
|
+
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
3
|
+
import { i as cr, n as ao, r as b, t as N } from "./chunk-5FQGJX7Z-VIref9gx.js";
|
|
4
4
|
import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
|
|
5
5
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), H = b("block", "before:content-[counter(line)]", "before:inline-block", "before:[counter-increment:line]", "before:w-6", "before:mr-4", "before:text-[13px]", "before:text-right", "before:text-muted-foreground/50", "before:font-mono", "before:select-none"), k = (0, import_react.memo)(({ children: e, result: o, language: s, className: c, ...u }) => {
|
|
6
6
|
let d = (0, import_react.useMemo)(() => ({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { _ as Logger } from "./button-D1C3g5GI.js";
|
|
3
|
+
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
4
|
+
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
5
|
+
import { u as createLucideIcon } from "./dist-CTtLBPLZ.js";
|
|
6
6
|
require_compiler_runtime(), require_react();
|
|
7
7
|
var TOAST_LIMIT = 1, TOAST_REMOVE_DELAY = 1e4, count = 0;
|
|
8
8
|
function genId() {
|
|
@@ -122,17 +122,17 @@ var Copy = createLucideIcon("copy", [["rect", {
|
|
|
122
122
|
d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
|
|
123
123
|
key: "zix9uf"
|
|
124
124
|
}]]);
|
|
125
|
-
async function copyToClipboard(e,
|
|
125
|
+
async function copyToClipboard(e, m) {
|
|
126
126
|
if (navigator.clipboard === void 0) {
|
|
127
127
|
Logger.warn("navigator.clipboard is not supported"), window.prompt("Copy to clipboard: Ctrl+C, Enter", e);
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
|
-
if (
|
|
131
|
-
let
|
|
132
|
-
"text/html": new Blob([
|
|
130
|
+
if (m && navigator.clipboard.write) try {
|
|
131
|
+
let p = new ClipboardItem({
|
|
132
|
+
"text/html": new Blob([m], { type: "text/html" }),
|
|
133
133
|
"text/plain": new Blob([e], { type: "text/plain" })
|
|
134
134
|
});
|
|
135
|
-
await navigator.clipboard.write([
|
|
135
|
+
await navigator.clipboard.write([p]);
|
|
136
136
|
return;
|
|
137
137
|
} catch {
|
|
138
138
|
Logger.warn("Failed to write rich text, falling back to plain text");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import { t as require_react } from "./react-
|
|
3
|
-
import { t as require_react_dom } from "./react-dom-
|
|
4
|
-
import { _ as isEditableGridCell, i as makeCSSStyle, n as ThemeContext, t as ClickOutsideContainer, v as isInnerOnlyCell, y as isObjectEditorCallbackResult } from "./click-outside-container-
|
|
5
|
-
import { t as styled_default } from "./dist-
|
|
2
|
+
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
3
|
+
import { t as require_react_dom } from "./react-dom-D5FDLRUB.js";
|
|
4
|
+
import { _ as isEditableGridCell, i as makeCSSStyle, n as ThemeContext, t as ClickOutsideContainer, v as isInnerOnlyCell, y as isObjectEditorCallbackResult } from "./click-outside-container-D3t6KDni.js";
|
|
5
|
+
import { t as styled_default } from "./dist-DUFd1bhm.js";
|
|
6
6
|
var import_react_dom = require_react_dom(), import_react = /* @__PURE__ */ __toESM(require_react(), 1), _exp2 = () => (n) => n.targetX, _exp3 = () => (n) => n.targetY, _exp4 = () => (n) => n.targetWidth, _exp5 = () => (n) => n.targetHeight, _exp6 = () => (n) => n.targetY + 10, _exp7 = () => (n) => Math.max(0, (n.targetHeight - 28) / 2);
|
|
7
7
|
const DataGridOverlayEditorStyle = /* @__PURE__ */ styled_default("div")({
|
|
8
8
|
name: "DataGridOverlayEditorStyle",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as require_react_dom } from "./react-dom-
|
|
2
|
+
import { m as useComposedRefs } from "./button-D1C3g5GI.js";
|
|
3
|
+
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
4
|
+
import { t as require_react_dom } from "./react-dom-D5FDLRUB.js";
|
|
5
5
|
import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
|
|
6
|
-
import { _t as Primitive, gt as createContextScope, lt as useCallbackRef, pt as useLayoutEffect2 } from "./zod-
|
|
6
|
+
import { _t as Primitive, gt as createContextScope, lt as useCallbackRef, pt as useLayoutEffect2 } from "./zod-W5ZEjzaE.js";
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.563.0 - ISC
|
|
9
9
|
*
|
|
@@ -1202,8 +1202,8 @@ var Root = Arrow$1, POPPER_NAME = "Popper", [createPopperContext, createPopperSc
|
|
|
1202
1202
|
});
|
|
1203
1203
|
};
|
|
1204
1204
|
Popper.displayName = POPPER_NAME;
|
|
1205
|
-
var ANCHOR_NAME = "PopperAnchor", PopperAnchor = import_react.forwardRef((e,
|
|
1206
|
-
let { __scopePopper: s, virtualRef: c, ...u } = e, d = usePopperContext(ANCHOR_NAME, s), f = import_react.useRef(null), p = useComposedRefs(
|
|
1205
|
+
var ANCHOR_NAME = "PopperAnchor", PopperAnchor = import_react.forwardRef((e, o) => {
|
|
1206
|
+
let { __scopePopper: s, virtualRef: c, ...u } = e, d = usePopperContext(ANCHOR_NAME, s), f = import_react.useRef(null), p = useComposedRefs(o, f), m = import_react.useRef(null);
|
|
1207
1207
|
return import_react.useEffect(() => {
|
|
1208
1208
|
let e2 = m.current;
|
|
1209
1209
|
m.current = (c == null ? void 0 : c.current) || f.current, e2 !== m.current && d.onAnchorChange(m.current);
|
|
@@ -1213,9 +1213,9 @@ var ANCHOR_NAME = "PopperAnchor", PopperAnchor = import_react.forwardRef((e, a)
|
|
|
1213
1213
|
});
|
|
1214
1214
|
});
|
|
1215
1215
|
PopperAnchor.displayName = ANCHOR_NAME;
|
|
1216
|
-
var CONTENT_NAME = "PopperContent", [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME), PopperContent = import_react.forwardRef((e,
|
|
1216
|
+
var CONTENT_NAME = "PopperContent", [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME), PopperContent = import_react.forwardRef((e, o) => {
|
|
1217
1217
|
var _a, _b, _c, _d, _e, _f;
|
|
1218
|
-
let { __scopePopper: s, side: c = "bottom", sideOffset: u = 0, align: p = "center", alignOffset: m = 0, arrowPadding: h = 0, avoidCollisions: g = true, collisionBoundary: _ = [], collisionPadding: v = 0, sticky: b = "partial", hideWhenDetached: x = false, updatePositionStrategy: C = "optimized", onPlaced: w, ...T } = e, E = usePopperContext(CONTENT_NAME, s), [O, k] = import_react.useState(null), A = useComposedRefs(
|
|
1218
|
+
let { __scopePopper: s, side: c = "bottom", sideOffset: u = 0, align: p = "center", alignOffset: m = 0, arrowPadding: h = 0, avoidCollisions: g = true, collisionBoundary: _ = [], collisionPadding: v = 0, sticky: b = "partial", hideWhenDetached: x = false, updatePositionStrategy: C = "optimized", onPlaced: w, ...T } = e, E = usePopperContext(CONTENT_NAME, s), [O, k] = import_react.useState(null), A = useComposedRefs(o, (e2) => k(e2)), [j, M] = import_react.useState(null), N = useSize(j), P = (N == null ? void 0 : N.width) ?? 0, F = (N == null ? void 0 : N.height) ?? 0, I = c + (p === "center" ? "" : "-" + p), L = typeof v == "number" ? v : {
|
|
1219
1219
|
top: 0,
|
|
1220
1220
|
right: 0,
|
|
1221
1221
|
bottom: 0,
|
|
@@ -1244,9 +1244,9 @@ var CONTENT_NAME = "PopperContent", [PopperContentProvider, useContentContext] =
|
|
|
1244
1244
|
g && flip({ ...B }),
|
|
1245
1245
|
size({
|
|
1246
1246
|
...B,
|
|
1247
|
-
apply: ({ elements: e2, rects:
|
|
1248
|
-
let { width: c2, height: l } =
|
|
1249
|
-
u2.setProperty("--radix-popper-available-width", `${
|
|
1247
|
+
apply: ({ elements: e2, rects: a, availableWidth: o2, availableHeight: s2 }) => {
|
|
1248
|
+
let { width: c2, height: l } = a.reference, u2 = e2.floating.style;
|
|
1249
|
+
u2.setProperty("--radix-popper-available-width", `${o2}px`), u2.setProperty("--radix-popper-available-height", `${s2}px`), u2.setProperty("--radix-popper-anchor-width", `${c2}px`), u2.setProperty("--radix-popper-anchor-height", `${l}px`);
|
|
1250
1250
|
}
|
|
1251
1251
|
}),
|
|
1252
1252
|
j && arrow({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import { t as require_react } from "./react-
|
|
2
|
+
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
3
3
|
import { t as isPropValid } from "./emotion-is-prop-valid.esm-CJVjyntJ.js";
|
|
4
4
|
var cx_default = function() {
|
|
5
5
|
let e = Array.prototype.slice.call(arguments).filter(Boolean), n = {}, r = [];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
2
|
+
import { _ as Logger, d as createSlot, f as createSlottable, g as cn, m as useComposedRefs, n as buttonVariants, r as cva } from "./button-D1C3g5GI.js";
|
|
3
|
+
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
4
|
+
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
5
5
|
import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
|
|
6
|
-
import { $ as StyleNamespace, P as object, R as string, X as withFullScreenAsRoot, _t as Primitive, at as FocusScope, dt as Presence, et as hideOthers, ft as useControllableState, gt as createContextScope, ht as createContext2, it as Portal, mt as composeEventHandlers, rt as useFocusGuards, st as DismissableLayer, tt as Combination_default, ut as useId } from "./zod-
|
|
6
|
+
import { $ as StyleNamespace, P as object, R as string, X as withFullScreenAsRoot, _t as Primitive, at as FocusScope, dt as Presence, et as hideOthers, ft as useControllableState, gt as createContextScope, ht as createContext2, it as Portal, mt as composeEventHandlers, rt as useFocusGuards, st as DismissableLayer, tt as Combination_default, ut as useId } from "./zod-W5ZEjzaE.js";
|
|
7
7
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), DIALOG_NAME = "Dialog", [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME), [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME), Dialog = (t) => {
|
|
8
8
|
let { __scopeDialog: F, children: I, open: L, defaultOpen: R, onOpenChange: z, modal: B = true } = t, V = import_react.useRef(null), H = import_react.useRef(null), [U, W] = useControllableState({
|
|
9
9
|
prop: L,
|
|
@@ -27,7 +27,7 @@ var import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runti
|
|
|
27
27
|
};
|
|
28
28
|
Dialog.displayName = DIALOG_NAME;
|
|
29
29
|
var TRIGGER_NAME$1 = "DialogTrigger", DialogTrigger = import_react.forwardRef((t, F) => {
|
|
30
|
-
let { __scopeDialog: I, ...L } = t, R = useDialogContext(TRIGGER_NAME$1, I),
|
|
30
|
+
let { __scopeDialog: I, ...L } = t, R = useDialogContext(TRIGGER_NAME$1, I), B = useComposedRefs(F, R.triggerRef);
|
|
31
31
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
32
32
|
type: "button",
|
|
33
33
|
"aria-haspopup": "dialog",
|
|
@@ -35,7 +35,7 @@ var TRIGGER_NAME$1 = "DialogTrigger", DialogTrigger = import_react.forwardRef((t
|
|
|
35
35
|
"aria-controls": R.contentId,
|
|
36
36
|
"data-state": getState(R.open),
|
|
37
37
|
...L,
|
|
38
|
-
ref:
|
|
38
|
+
ref: B,
|
|
39
39
|
onClick: composeEventHandlers(t.onClick, R.onOpenToggle)
|
|
40
40
|
});
|
|
41
41
|
});
|
|
@@ -136,13 +136,13 @@ var DialogContentModal = import_react.forwardRef((t, F) => {
|
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
138
|
}), DialogContentImpl = import_react.forwardRef((t, F) => {
|
|
139
|
-
let { __scopeDialog: I, trapFocus: L, onOpenAutoFocus: R, onCloseAutoFocus:
|
|
139
|
+
let { __scopeDialog: I, trapFocus: L, onOpenAutoFocus: R, onCloseAutoFocus: B, ...V } = t, H = useDialogContext(CONTENT_NAME$1, I), U = import_react.useRef(null), W = useComposedRefs(F, U);
|
|
140
140
|
return useFocusGuards(), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FocusScope, {
|
|
141
141
|
asChild: true,
|
|
142
142
|
loop: true,
|
|
143
143
|
trapped: L,
|
|
144
144
|
onMountAutoFocus: R,
|
|
145
|
-
onUnmountAutoFocus:
|
|
145
|
+
onUnmountAutoFocus: B,
|
|
146
146
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DismissableLayer, {
|
|
147
147
|
role: "dialog",
|
|
148
148
|
id: H.contentId,
|
|
@@ -248,7 +248,7 @@ var OVERLAY_NAME = "AlertDialogOverlay", AlertDialogOverlay$1 = import_react.for
|
|
|
248
248
|
});
|
|
249
249
|
AlertDialogOverlay$1.displayName = OVERLAY_NAME;
|
|
250
250
|
var CONTENT_NAME = "AlertDialogContent", [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME), Slottable = createSlottable("AlertDialogContent"), AlertDialogContent$1 = import_react.forwardRef((t, F) => {
|
|
251
|
-
let { __scopeAlertDialog: I, children: L, ...R } = t,
|
|
251
|
+
let { __scopeAlertDialog: I, children: L, ...R } = t, B = useDialogScope(I), V = import_react.useRef(null), H = useComposedRefs(F, V), U = import_react.useRef(null);
|
|
252
252
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WarningProvider, {
|
|
253
253
|
contentName: CONTENT_NAME,
|
|
254
254
|
titleName: TITLE_NAME,
|
|
@@ -258,7 +258,7 @@ var CONTENT_NAME = "AlertDialogContent", [AlertDialogContentProvider, useAlertDi
|
|
|
258
258
|
cancelRef: U,
|
|
259
259
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Content, {
|
|
260
260
|
role: "alertdialog",
|
|
261
|
-
...
|
|
261
|
+
...B,
|
|
262
262
|
...R,
|
|
263
263
|
ref: H,
|
|
264
264
|
onOpenAutoFocus: composeEventHandlers(R.onOpenAutoFocus, (t2) => {
|
|
@@ -301,9 +301,9 @@ var ACTION_NAME = "AlertDialogAction", AlertDialogAction$1 = import_react.forwar
|
|
|
301
301
|
});
|
|
302
302
|
AlertDialogAction$1.displayName = ACTION_NAME;
|
|
303
303
|
var CANCEL_NAME = "AlertDialogCancel", AlertDialogCancel$1 = import_react.forwardRef((t, F) => {
|
|
304
|
-
let { __scopeAlertDialog: I, ...L } = t, { cancelRef: R } = useAlertDialogContentContext(CANCEL_NAME, I),
|
|
304
|
+
let { __scopeAlertDialog: I, ...L } = t, { cancelRef: R } = useAlertDialogContentContext(CANCEL_NAME, I), B = useDialogScope(I), V = useComposedRefs(F, R);
|
|
305
305
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Close, {
|
|
306
|
-
...
|
|
306
|
+
...B,
|
|
307
307
|
...L,
|
|
308
308
|
ref: V
|
|
309
309
|
});
|
|
@@ -382,187 +382,187 @@ var import_compiler_runtime$1 = require_compiler_runtime(), AlertDialog = Root2,
|
|
|
382
382
|
}));
|
|
383
383
|
AlertDialogPortal.displayName = Portal2.displayName;
|
|
384
384
|
var AlertDialogOverlay = import_react.forwardRef((t, F) => {
|
|
385
|
-
let I = (0, import_compiler_runtime$1.c)(9), L,
|
|
385
|
+
let I = (0, import_compiler_runtime$1.c)(9), L, z;
|
|
386
386
|
if (I[0] !== t) {
|
|
387
|
-
let { className: F2, children:
|
|
388
|
-
L = F2,
|
|
389
|
-
} else L = I[1],
|
|
390
|
-
let z;
|
|
391
|
-
I[3] === L ? z = I[4] : (z = cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-xs transition-opacity animate-in fade-in", L), I[3] = L, I[4] = z);
|
|
387
|
+
let { className: F2, children: R, ...B2 } = t;
|
|
388
|
+
L = F2, z = B2, I[0] = t, I[1] = L, I[2] = z;
|
|
389
|
+
} else L = I[1], z = I[2];
|
|
392
390
|
let B;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
391
|
+
I[3] === L ? B = I[4] : (B = cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-xs transition-opacity animate-in fade-in", L), I[3] = L, I[4] = B);
|
|
392
|
+
let V;
|
|
393
|
+
return I[5] !== z || I[6] !== F || I[7] !== B ? (V = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Overlay2, {
|
|
394
|
+
className: B,
|
|
395
|
+
...z,
|
|
396
396
|
ref: F
|
|
397
|
-
}), I[5] =
|
|
397
|
+
}), I[5] = z, I[6] = F, I[7] = B, I[8] = V) : V = I[8], V;
|
|
398
398
|
});
|
|
399
399
|
AlertDialogOverlay.displayName = Overlay2.displayName;
|
|
400
400
|
var AlertDialogContent = import_react.forwardRef((t, F) => {
|
|
401
|
-
let I = (0, import_compiler_runtime$1.c)(11), L,
|
|
402
|
-
I[0] === t ? (L = I[1],
|
|
403
|
-
let
|
|
404
|
-
I[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
405
|
-
let V;
|
|
406
|
-
I[4] === L ? V = I[5] : (V = cn("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", L), I[4] = L, I[5] = V);
|
|
401
|
+
let I = (0, import_compiler_runtime$1.c)(11), L, z;
|
|
402
|
+
I[0] === t ? (L = I[1], z = I[2]) : ({ className: L, ...z } = t, I[0] = t, I[1] = L, I[2] = z);
|
|
403
|
+
let B = useRestoreFocus(), V;
|
|
404
|
+
I[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogOverlay, {}), I[3] = V) : V = I[3];
|
|
407
405
|
let H;
|
|
408
|
-
|
|
406
|
+
I[4] === L ? H = I[5] : (H = cn("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", L), I[4] = L, I[5] = H);
|
|
407
|
+
let U;
|
|
408
|
+
return I[6] !== z || I[7] !== F || I[8] !== B || I[9] !== H ? (U = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogPortal, { children: [V, /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Content2, {
|
|
409
409
|
ref: F,
|
|
410
|
-
className:
|
|
411
|
-
...
|
|
412
|
-
...
|
|
413
|
-
})] }), I[6] =
|
|
410
|
+
className: H,
|
|
411
|
+
...B,
|
|
412
|
+
...z
|
|
413
|
+
})] }), I[6] = z, I[7] = F, I[8] = B, I[9] = H, I[10] = U) : U = I[10], U;
|
|
414
414
|
});
|
|
415
415
|
AlertDialogContent.displayName = Content2.displayName;
|
|
416
416
|
var AlertDialogHeader = (t) => {
|
|
417
417
|
let F = (0, import_compiler_runtime$1.c)(8), I, L;
|
|
418
418
|
F[0] === t ? (I = F[1], L = F[2]) : ({ className: I, ...L } = t, F[0] = t, F[1] = I, F[2] = L);
|
|
419
|
-
let R;
|
|
420
|
-
F[3] === I ? R = F[4] : (R = cn("flex flex-col space-y-2 text-center sm:text-left", I), F[3] = I, F[4] = R);
|
|
421
419
|
let z;
|
|
422
|
-
|
|
423
|
-
|
|
420
|
+
F[3] === I ? z = F[4] : (z = cn("flex flex-col space-y-2 text-center sm:text-left", I), F[3] = I, F[4] = z);
|
|
421
|
+
let B;
|
|
422
|
+
return F[5] !== L || F[6] !== z ? (B = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
423
|
+
className: z,
|
|
424
424
|
...L
|
|
425
|
-
}), F[5] = L, F[6] =
|
|
425
|
+
}), F[5] = L, F[6] = z, F[7] = B) : B = F[7], B;
|
|
426
426
|
};
|
|
427
427
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
428
428
|
var AlertDialogFooter = (t) => {
|
|
429
429
|
let F = (0, import_compiler_runtime$1.c)(8), I, L;
|
|
430
430
|
F[0] === t ? (I = F[1], L = F[2]) : ({ className: I, ...L } = t, F[0] = t, F[1] = I, F[2] = L);
|
|
431
|
-
let R;
|
|
432
|
-
F[3] === I ? R = F[4] : (R = cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", I), F[3] = I, F[4] = R);
|
|
433
431
|
let z;
|
|
434
|
-
|
|
435
|
-
|
|
432
|
+
F[3] === I ? z = F[4] : (z = cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", I), F[3] = I, F[4] = z);
|
|
433
|
+
let B;
|
|
434
|
+
return F[5] !== L || F[6] !== z ? (B = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
435
|
+
className: z,
|
|
436
436
|
...L
|
|
437
|
-
}), F[5] = L, F[6] =
|
|
437
|
+
}), F[5] = L, F[6] = z, F[7] = B) : B = F[7], B;
|
|
438
438
|
};
|
|
439
439
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
440
440
|
var AlertDialogTitle = import_react.forwardRef((t, F) => {
|
|
441
|
-
let I = (0, import_compiler_runtime$1.c)(9), L,
|
|
442
|
-
I[0] === t ? (L = I[1],
|
|
443
|
-
let z;
|
|
444
|
-
I[3] === L ? z = I[4] : (z = cn("text-lg font-semibold", L), I[3] = L, I[4] = z);
|
|
441
|
+
let I = (0, import_compiler_runtime$1.c)(9), L, z;
|
|
442
|
+
I[0] === t ? (L = I[1], z = I[2]) : ({ className: L, ...z } = t, I[0] = t, I[1] = L, I[2] = z);
|
|
445
443
|
let B;
|
|
446
|
-
|
|
444
|
+
I[3] === L ? B = I[4] : (B = cn("text-lg font-semibold", L), I[3] = L, I[4] = B);
|
|
445
|
+
let V;
|
|
446
|
+
return I[5] !== z || I[6] !== F || I[7] !== B ? (V = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Title2, {
|
|
447
447
|
ref: F,
|
|
448
|
-
className:
|
|
449
|
-
...
|
|
450
|
-
}), I[5] =
|
|
448
|
+
className: B,
|
|
449
|
+
...z
|
|
450
|
+
}), I[5] = z, I[6] = F, I[7] = B, I[8] = V) : V = I[8], V;
|
|
451
451
|
});
|
|
452
452
|
AlertDialogTitle.displayName = Title2.displayName;
|
|
453
453
|
var AlertDialogDescription = import_react.forwardRef((t, F) => {
|
|
454
|
-
let I = (0, import_compiler_runtime$1.c)(9), L,
|
|
455
|
-
I[0] === t ? (L = I[1],
|
|
456
|
-
let z;
|
|
457
|
-
I[3] === L ? z = I[4] : (z = cn("text-muted-foreground", L), I[3] = L, I[4] = z);
|
|
454
|
+
let I = (0, import_compiler_runtime$1.c)(9), L, z;
|
|
455
|
+
I[0] === t ? (L = I[1], z = I[2]) : ({ className: L, ...z } = t, I[0] = t, I[1] = L, I[2] = z);
|
|
458
456
|
let B;
|
|
459
|
-
|
|
457
|
+
I[3] === L ? B = I[4] : (B = cn("text-muted-foreground", L), I[3] = L, I[4] = B);
|
|
458
|
+
let V;
|
|
459
|
+
return I[5] !== z || I[6] !== F || I[7] !== B ? (V = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Description2, {
|
|
460
460
|
ref: F,
|
|
461
|
-
className:
|
|
462
|
-
...
|
|
463
|
-
}), I[5] =
|
|
461
|
+
className: B,
|
|
462
|
+
...z
|
|
463
|
+
}), I[5] = z, I[6] = F, I[7] = B, I[8] = V) : V = I[8], V;
|
|
464
464
|
});
|
|
465
465
|
AlertDialogDescription.displayName = Description2.displayName;
|
|
466
466
|
var AlertDialogAction = import_react.forwardRef((t, F) => {
|
|
467
|
-
let I = (0, import_compiler_runtime$1.c)(9), L,
|
|
468
|
-
I[0] === t ? (L = I[1],
|
|
469
|
-
let
|
|
470
|
-
I[3] === L ?
|
|
471
|
-
let
|
|
472
|
-
return I[5] !==
|
|
467
|
+
let I = (0, import_compiler_runtime$1.c)(9), L, z;
|
|
468
|
+
I[0] === t ? (L = I[1], z = I[2]) : ({ className: L, ...z } = t, I[0] = t, I[1] = L, I[2] = z);
|
|
469
|
+
let V;
|
|
470
|
+
I[3] === L ? V = I[4] : (V = cn(buttonVariants(), L), I[3] = L, I[4] = V);
|
|
471
|
+
let H;
|
|
472
|
+
return I[5] !== z || I[6] !== F || I[7] !== V ? (H = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Action, {
|
|
473
473
|
ref: F,
|
|
474
|
-
className:
|
|
475
|
-
...
|
|
476
|
-
}), I[5] =
|
|
474
|
+
className: V,
|
|
475
|
+
...z
|
|
476
|
+
}), I[5] = z, I[6] = F, I[7] = V, I[8] = H) : H = I[8], H;
|
|
477
477
|
});
|
|
478
478
|
AlertDialogAction.displayName = Action.displayName;
|
|
479
479
|
var AlertDialogDestructiveAction = import_react.forwardRef((t, F) => {
|
|
480
|
-
let I = (0, import_compiler_runtime$1.c)(9), L,
|
|
481
|
-
I[0] === t ? (L = I[1],
|
|
482
|
-
let
|
|
483
|
-
I[3] === L ?
|
|
484
|
-
let
|
|
485
|
-
return I[5] !==
|
|
480
|
+
let I = (0, import_compiler_runtime$1.c)(9), L, z;
|
|
481
|
+
I[0] === t ? (L = I[1], z = I[2]) : ({ className: L, ...z } = t, I[0] = t, I[1] = L, I[2] = z);
|
|
482
|
+
let V;
|
|
483
|
+
I[3] === L ? V = I[4] : (V = cn(buttonVariants({ variant: "destructive" }), L), I[3] = L, I[4] = V);
|
|
484
|
+
let H;
|
|
485
|
+
return I[5] !== z || I[6] !== F || I[7] !== V ? (H = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Action, {
|
|
486
486
|
ref: F,
|
|
487
|
-
className:
|
|
488
|
-
...
|
|
489
|
-
}), I[5] =
|
|
487
|
+
className: V,
|
|
488
|
+
...z
|
|
489
|
+
}), I[5] = z, I[6] = F, I[7] = V, I[8] = H) : H = I[8], H;
|
|
490
490
|
});
|
|
491
491
|
AlertDialogDestructiveAction.displayName = "AlertDialogDestructiveAction";
|
|
492
492
|
var AlertDialogCancel = import_react.forwardRef((t, F) => {
|
|
493
|
-
let I = (0, import_compiler_runtime$1.c)(9), L,
|
|
494
|
-
I[0] === t ? (L = I[1],
|
|
495
|
-
let
|
|
496
|
-
I[3] === L ?
|
|
497
|
-
let
|
|
498
|
-
return I[5] !==
|
|
493
|
+
let I = (0, import_compiler_runtime$1.c)(9), L, z;
|
|
494
|
+
I[0] === t ? (L = I[1], z = I[2]) : ({ className: L, ...z } = t, I[0] = t, I[1] = L, I[2] = z);
|
|
495
|
+
let V;
|
|
496
|
+
I[3] === L ? V = I[4] : (V = cn(buttonVariants({ variant: "secondary" }), "mt-2 sm:mt-0", L), I[3] = L, I[4] = V);
|
|
497
|
+
let H;
|
|
498
|
+
return I[5] !== z || I[6] !== F || I[7] !== V ? (H = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Cancel, {
|
|
499
499
|
ref: F,
|
|
500
|
-
className:
|
|
501
|
-
...
|
|
502
|
-
}), I[5] =
|
|
500
|
+
className: V,
|
|
501
|
+
...z
|
|
502
|
+
}), I[5] = z, I[6] = F, I[7] = V, I[8] = H) : H = I[8], H;
|
|
503
503
|
});
|
|
504
504
|
AlertDialogCancel.displayName = Cancel.displayName;
|
|
505
505
|
var import_compiler_runtime = require_compiler_runtime();
|
|
506
506
|
const ErrorBanner = (t) => {
|
|
507
|
-
let
|
|
508
|
-
if (!
|
|
509
|
-
Logger.error(
|
|
507
|
+
let I = (0, import_compiler_runtime.c)(23), { error: L, className: R, action: z } = t, [B, V] = (0, import_react.useState)(false);
|
|
508
|
+
if (!L) return null;
|
|
509
|
+
Logger.error(L);
|
|
510
510
|
let H;
|
|
511
|
-
|
|
511
|
+
I[0] === L ? H = I[1] : (H = prettyError(L), I[0] = L, I[1] = H);
|
|
512
512
|
let U = H, W;
|
|
513
|
-
|
|
513
|
+
I[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = () => V(true), I[2] = W) : W = I[2];
|
|
514
514
|
let G;
|
|
515
|
-
|
|
515
|
+
I[3] === U ? G = I[4] : (G = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
516
516
|
className: "line-clamp-4",
|
|
517
517
|
children: U
|
|
518
|
-
}),
|
|
518
|
+
}), I[3] = U, I[4] = G);
|
|
519
519
|
let K;
|
|
520
|
-
|
|
520
|
+
I[5] === z ? K = I[6] : (K = z && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
521
521
|
className: "flex justify-end",
|
|
522
|
-
children:
|
|
523
|
-
}),
|
|
522
|
+
children: z
|
|
523
|
+
}), I[5] = z, I[6] = K);
|
|
524
524
|
let q;
|
|
525
|
-
|
|
525
|
+
I[7] !== R || I[8] !== G || I[9] !== K ? (q = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Banner, {
|
|
526
526
|
kind: "danger",
|
|
527
|
-
className:
|
|
527
|
+
className: R,
|
|
528
528
|
clickable: true,
|
|
529
529
|
onClick: W,
|
|
530
530
|
children: [G, K]
|
|
531
|
-
}),
|
|
531
|
+
}), I[7] = R, I[8] = G, I[9] = K, I[10] = q) : q = I[10];
|
|
532
532
|
let J;
|
|
533
|
-
|
|
533
|
+
I[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogTitle, {
|
|
534
534
|
className: "text-error",
|
|
535
535
|
children: "Error"
|
|
536
|
-
}) }),
|
|
536
|
+
}) }), I[11] = J) : J = I[11];
|
|
537
537
|
let Y;
|
|
538
|
-
|
|
538
|
+
I[12] === U ? Y = I[13] : (Y = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogDescription, {
|
|
539
539
|
asChild: true,
|
|
540
540
|
className: "text-error text-sm p-2 font-mono overflow-auto whitespace-pre-wrap",
|
|
541
541
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", { children: U })
|
|
542
|
-
}),
|
|
542
|
+
}), I[12] = U, I[13] = Y);
|
|
543
543
|
let X;
|
|
544
|
-
|
|
544
|
+
I[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogFooter, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogAction, {
|
|
545
545
|
autoFocus: true,
|
|
546
546
|
onClick: () => V(false),
|
|
547
547
|
children: "Ok"
|
|
548
|
-
}) }),
|
|
548
|
+
}) }), I[14] = X) : X = I[14];
|
|
549
549
|
let Z;
|
|
550
|
-
|
|
550
|
+
I[15] === Y ? Z = I[16] : (Z = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogContent, {
|
|
551
551
|
className: "max-w-[80%] max-h-[80%] overflow-hidden flex flex-col",
|
|
552
552
|
children: [
|
|
553
553
|
J,
|
|
554
554
|
Y,
|
|
555
555
|
X
|
|
556
556
|
]
|
|
557
|
-
}),
|
|
557
|
+
}), I[15] = Y, I[16] = Z);
|
|
558
558
|
let Q;
|
|
559
|
-
|
|
559
|
+
I[17] !== B || I[18] !== Z ? (Q = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialog, {
|
|
560
560
|
open: B,
|
|
561
561
|
onOpenChange: V,
|
|
562
562
|
children: Z
|
|
563
|
-
}),
|
|
563
|
+
}), I[17] = B, I[18] = Z, I[19] = Q) : Q = I[19];
|
|
564
564
|
let $;
|
|
565
|
-
return
|
|
565
|
+
return I[20] !== Q || I[21] !== q ? ($ = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [q, Q] }), I[20] = Q, I[21] = q, I[22] = $) : $ = I[22], $;
|
|
566
566
|
};
|
|
567
567
|
var bannerStyle = cva("text-sm p-2 border whitespace-pre-wrap overflow-hidden", {
|
|
568
568
|
variants: {
|
|
@@ -593,19 +593,19 @@ var bannerStyle = cva("text-sm p-2 border whitespace-pre-wrap overflow-hidden",
|
|
|
593
593
|
defaultVariants: { kind: "info" }
|
|
594
594
|
});
|
|
595
595
|
const Banner = (t) => {
|
|
596
|
-
let F = (0, import_compiler_runtime.c)(14), I, L,
|
|
597
|
-
F[0] === t ? (I = F[1], L = F[2],
|
|
598
|
-
let V;
|
|
599
|
-
F[6] !== L || F[7] !== R || F[8] !== z ? (V = cn(bannerStyle({
|
|
600
|
-
kind: z,
|
|
601
|
-
clickable: R
|
|
602
|
-
}), L), F[6] = L, F[7] = R, F[8] = z, F[9] = V) : V = F[9];
|
|
596
|
+
let F = (0, import_compiler_runtime.c)(14), I, L, z, B, V;
|
|
597
|
+
F[0] === t ? (I = F[1], L = F[2], z = F[3], B = F[4], V = F[5]) : ({ kind: B, clickable: z, className: L, children: I, ...V } = t, F[0] = t, F[1] = I, F[2] = L, F[3] = z, F[4] = B, F[5] = V);
|
|
603
598
|
let H;
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
599
|
+
F[6] !== L || F[7] !== z || F[8] !== B ? (H = cn(bannerStyle({
|
|
600
|
+
kind: B,
|
|
601
|
+
clickable: z
|
|
602
|
+
}), L), F[6] = L, F[7] = z, F[8] = B, F[9] = H) : H = F[9];
|
|
603
|
+
let U;
|
|
604
|
+
return F[10] !== I || F[11] !== V || F[12] !== H ? (U = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
605
|
+
className: H,
|
|
606
|
+
...V,
|
|
607
607
|
children: I
|
|
608
|
-
}), F[10] = I, F[11] =
|
|
608
|
+
}), F[10] = I, F[11] = V, F[12] = H, F[13] = U) : U = F[13], U;
|
|
609
609
|
};
|
|
610
610
|
export {
|
|
611
611
|
Content as a,
|