@stackone/malachite 2.108.1 → 2.109.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/COMPONENTS.md +4 -4
- package/dist/components/CodeBlock.js +107 -115
- package/dist/components/CodeBlock.js.map +1 -1
- package/dist/components/CodePreview.js +75 -59
- package/dist/components/CodePreview.js.map +1 -1
- package/dist/components/CopyOverlayButton.js +31 -0
- package/dist/components/CopyOverlayButton.js.map +1 -0
- package/dist/components/SidePanel.js +193 -186
- package/dist/components/SidePanel.js.map +1 -1
- package/dist/components/SidePanelNavFooter.js +22 -20
- package/dist/components/SidePanelNavFooter.js.map +1 -1
- package/dist/components/SidePanelSheet.js +93 -0
- package/dist/components/SidePanelSheet.js.map +1 -0
- package/dist/components/SidePanelTitle.js +16 -0
- package/dist/components/SidePanelTitle.js.map +1 -0
- package/dist/components/TabStrip.js +42 -37
- package/dist/components/TabStrip.js.map +1 -1
- package/dist/components/Tabs.js.map +1 -1
- package/dist/components/useClipboardCopy.js +24 -21
- package/dist/components/useClipboardCopy.js.map +1 -1
- package/dist/index.d.ts +34 -0
- package/dist/tailwind.css.js +1 -1
- package/dist/theme.js +9 -3
- package/dist/theme.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,296 +1,303 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useId as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { ShadowRootWrapper as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
2
|
+
import { useId as J, useState as f, useCallback as ge, useMemo as we, useRef as v, useLayoutEffect as ye, useEffect as Se } from "react";
|
|
3
|
+
import { createPortal as Te } from "react-dom";
|
|
4
|
+
import { ShadowRootWrapper as $e } from "../ShadowRootWrapper.js";
|
|
5
|
+
import Ce from "./CalloutStrip.js";
|
|
6
|
+
import Pe from "./CustomIcons/ArrowLeftIcon.js";
|
|
7
|
+
import Ee from "./CustomIcons/DismissIcon.js";
|
|
8
|
+
import Ie from "./SidePanelSheet.js";
|
|
9
|
+
import ke from "./SidePanelTabs.js";
|
|
10
|
+
import Q from "./SidePanelTitle.js";
|
|
11
|
+
import _e from "./Typography/EllipsisText.js";
|
|
12
|
+
import { afterNextPaint as Ae } from "./afterNextPaint.js";
|
|
13
|
+
import { inertWhen as N } from "./inert.js";
|
|
14
|
+
import { useOverlayBehaviour as Re, OVERLAY_ICON_BUTTON_CLASSES as Z } from "./overlayBehaviour.js";
|
|
15
|
+
import { OVERLAY_ELEVATED_ATTR as Le, overlayIdentity as ee } from "./portalOverlay.js";
|
|
16
|
+
import { SidePanelTabsContext as re } from "./sidePanelTabsContext.js";
|
|
17
|
+
const g = 200, De = "360px", le = ({
|
|
15
18
|
bodyPadding: r,
|
|
16
|
-
callouts:
|
|
17
|
-
calloutId:
|
|
18
|
-
renderLink:
|
|
19
|
-
stableGutter:
|
|
20
|
-
scrollerRef:
|
|
21
|
-
children:
|
|
19
|
+
callouts: a,
|
|
20
|
+
calloutId: n,
|
|
21
|
+
renderLink: s,
|
|
22
|
+
stableGutter: w = !1,
|
|
23
|
+
scrollerRef: x,
|
|
24
|
+
children: c
|
|
22
25
|
}) => {
|
|
23
|
-
const
|
|
26
|
+
const p = !!(a != null && a.length);
|
|
24
27
|
return /* @__PURE__ */ l(
|
|
25
28
|
"div",
|
|
26
29
|
{
|
|
27
|
-
ref:
|
|
28
|
-
className: `min-h-0 flex-1 overflow-y-auto ${
|
|
30
|
+
ref: x,
|
|
31
|
+
className: `min-h-0 flex-1 overflow-y-auto ${w ? "[scrollbar-gutter:stable]" : ""} ${r && !p ? "px-[28px]" : ""}`,
|
|
29
32
|
children: [
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
a == null ? void 0 : a.map((u, b) => /* @__PURE__ */ e(
|
|
34
|
+
Ce,
|
|
32
35
|
{
|
|
33
|
-
id:
|
|
34
|
-
type:
|
|
35
|
-
message:
|
|
36
|
-
renderLink:
|
|
36
|
+
id: n ? `${n}-${b}` : void 0,
|
|
37
|
+
type: u.type,
|
|
38
|
+
message: u.message,
|
|
39
|
+
renderLink: s
|
|
37
40
|
},
|
|
38
|
-
|
|
41
|
+
b
|
|
39
42
|
)),
|
|
40
|
-
r ? /* @__PURE__ */ e("div", { className:
|
|
43
|
+
r ? /* @__PURE__ */ e("div", { className: p ? "p-[28px]" : "py-[28px]", children: c }) : c
|
|
41
44
|
]
|
|
42
45
|
}
|
|
43
46
|
);
|
|
44
|
-
},
|
|
47
|
+
}, C = (r) => typeof r == "number" ? `${r}px` : r, Me = (r) => {
|
|
45
48
|
r.key === "Enter" && r.target instanceof HTMLInputElement && r.preventDefault();
|
|
46
|
-
},
|
|
49
|
+
}, ae = "isolate col-start-2 row-span-3 row-start-1 grid min-w-0 grid-cols-[minmax(0,1fr)] grid-rows-subgrid", Oe = ({ onSubmit: r, children: a }) => r ? /* @__PURE__ */ e(
|
|
47
50
|
"form",
|
|
48
51
|
{
|
|
49
52
|
noValidate: !0,
|
|
50
|
-
className:
|
|
51
|
-
onSubmit: (
|
|
52
|
-
|
|
53
|
+
className: ae,
|
|
54
|
+
onSubmit: (n) => {
|
|
55
|
+
n.preventDefault(), n.stopPropagation(), r(n);
|
|
53
56
|
},
|
|
54
|
-
children:
|
|
57
|
+
children: a
|
|
55
58
|
}
|
|
56
|
-
) : /* @__PURE__ */ e("div", { className:
|
|
59
|
+
) : /* @__PURE__ */ e("div", { className: ae, children: a }), Ve = ({
|
|
57
60
|
open: r,
|
|
58
|
-
onClose:
|
|
59
|
-
title:
|
|
60
|
-
subtitle:
|
|
61
|
-
subtitlePlacement:
|
|
62
|
-
titleExtra:
|
|
63
|
-
description:
|
|
64
|
-
toolbar:
|
|
65
|
-
toolbarPadding:
|
|
66
|
-
headerDivider:
|
|
67
|
-
icon:
|
|
68
|
-
headerExtra:
|
|
69
|
-
footer:
|
|
61
|
+
onClose: a,
|
|
62
|
+
title: n,
|
|
63
|
+
subtitle: s,
|
|
64
|
+
subtitlePlacement: w = "inline",
|
|
65
|
+
titleExtra: x,
|
|
66
|
+
description: c,
|
|
67
|
+
toolbar: p,
|
|
68
|
+
toolbarPadding: u = "default",
|
|
69
|
+
headerDivider: b = !1,
|
|
70
|
+
icon: P,
|
|
71
|
+
headerExtra: E,
|
|
72
|
+
footer: y,
|
|
70
73
|
onSubmit: I,
|
|
71
|
-
onBack:
|
|
72
|
-
maxWidth:
|
|
73
|
-
"aria-label":
|
|
74
|
-
"aria-labelledby":
|
|
75
|
-
bodyPadding:
|
|
76
|
-
stacking:
|
|
77
|
-
callouts:
|
|
78
|
-
renderLink:
|
|
79
|
-
aside:
|
|
80
|
-
|
|
74
|
+
onBack: k,
|
|
75
|
+
maxWidth: S = 1080,
|
|
76
|
+
"aria-label": te,
|
|
77
|
+
"aria-labelledby": _,
|
|
78
|
+
bodyPadding: ne = !0,
|
|
79
|
+
stacking: ie = "default",
|
|
80
|
+
callouts: T,
|
|
81
|
+
renderLink: oe,
|
|
82
|
+
aside: t,
|
|
83
|
+
sheet: i,
|
|
84
|
+
children: se
|
|
81
85
|
}) => {
|
|
82
|
-
const
|
|
83
|
-
() => ({ stripSlot:
|
|
84
|
-
[
|
|
85
|
-
),
|
|
86
|
-
ref:
|
|
87
|
-
isTopmost:
|
|
88
|
-
zIndex:
|
|
89
|
-
elevated:
|
|
90
|
-
} =
|
|
86
|
+
const A = J(), [R, ce] = f(null), [de, L] = f(0), D = ge(() => (L((m) => m + 1), () => L((m) => m - 1)), []), [M, me] = f(null), pe = we(
|
|
87
|
+
() => ({ stripSlot: R, scroller: M, registerTabs: D }),
|
|
88
|
+
[R, M, D]
|
|
89
|
+
), O = J(), [V, z] = f(!1), [fe, B] = f(!1), h = v(null), o = v(null), j = v(null), {
|
|
90
|
+
ref: xe,
|
|
91
|
+
isTopmost: ue,
|
|
92
|
+
zIndex: be,
|
|
93
|
+
elevated: he
|
|
94
|
+
} = Re({
|
|
91
95
|
open: r,
|
|
92
|
-
onClose:
|
|
93
|
-
elevated:
|
|
94
|
-
hostRef:
|
|
95
|
-
});
|
|
96
|
-
if (
|
|
97
|
-
|
|
98
|
-
}, h)), () => {
|
|
99
|
-
|
|
100
|
-
}
|
|
96
|
+
onClose: i ? i.onClose : a,
|
|
97
|
+
elevated: ie === "above-app-overlays",
|
|
98
|
+
hostRef: j
|
|
99
|
+
}), W = v(i);
|
|
100
|
+
if (ye(() => {
|
|
101
|
+
r && (W.current = i);
|
|
102
|
+
}), Se(() => (r ? (B(!0), o.current && (clearTimeout(o.current), o.current = null), Ae(h, () => z(!0))) : (z(!1), o.current = setTimeout(() => {
|
|
103
|
+
o.current = null, B(!1);
|
|
104
|
+
}, g)), () => {
|
|
105
|
+
h.current !== null && (cancelAnimationFrame(h.current), h.current = null), o.current && (clearTimeout(o.current), o.current = null);
|
|
106
|
+
}), [r]), !fe)
|
|
101
107
|
return null;
|
|
102
|
-
const
|
|
108
|
+
const H = () => {
|
|
109
|
+
i == null || i.onClose(), a();
|
|
110
|
+
}, d = r ? i : W.current, U = T == null ? void 0 : T.filter((m) => m.message.trim()), $ = `calc(${C(S)} - 2px)`, X = b ? "border-0 border-b border-solid border-[var(--malachite-card-border)]" : "", ve = t ? /* @__PURE__ */ l(
|
|
103
111
|
"aside",
|
|
104
112
|
{
|
|
105
|
-
"aria-label":
|
|
106
|
-
|
|
113
|
+
"aria-label": t.title,
|
|
114
|
+
...N(!!d),
|
|
115
|
+
className: "col-start-1 row-span-3 row-start-1 grid min-w-0 grid-cols-[minmax(0,1fr)] grid-rows-subgrid overflow-hidden border-0 border-r border-solid border-[var(--malachite-card-border)]",
|
|
107
116
|
children: [
|
|
108
117
|
/* @__PURE__ */ l(
|
|
109
118
|
"div",
|
|
110
119
|
{
|
|
111
|
-
className: `flex min-w-0 items-center gap-[8px] px-[20px] py-[18px] ${
|
|
120
|
+
className: `flex min-w-0 items-center gap-[8px] px-[20px] py-[18px] ${X}`,
|
|
112
121
|
children: [
|
|
113
|
-
/* @__PURE__ */ e("span", { className: "flex min-w-0 shrink-0", children: /* @__PURE__ */ e(
|
|
114
|
-
|
|
115
|
-
{
|
|
116
|
-
tooltip: a.title,
|
|
117
|
-
tooltipWhenTruncated: !0,
|
|
118
|
-
tooltipPlacement: "bottom",
|
|
119
|
-
className: "min-w-0 text-[length:var(--malachite-font-size-15,15px)] font-semibold",
|
|
120
|
-
children: a.title
|
|
121
|
-
}
|
|
122
|
-
) }),
|
|
123
|
-
a.headerExtra ? /* @__PURE__ */ e("span", { className: "ml-auto flex shrink-0 items-center", children: a.headerExtra }) : null
|
|
122
|
+
/* @__PURE__ */ e("span", { className: "flex min-w-0 shrink-0", children: /* @__PURE__ */ e(Q, { children: t.title }) }),
|
|
123
|
+
t.headerExtra ? /* @__PURE__ */ e("span", { className: "ml-auto flex shrink-0 items-center", children: t.headerExtra }) : null
|
|
124
124
|
]
|
|
125
125
|
}
|
|
126
126
|
),
|
|
127
|
-
/* @__PURE__ */ e("div", { className: `flex min-h-0 flex-col ${
|
|
128
|
-
|
|
127
|
+
/* @__PURE__ */ e("div", { className: `flex min-h-0 flex-col ${t.footer ? "" : "row-span-2"}`, children: /* @__PURE__ */ e(le, { bodyPadding: t.bodyPadding ?? !0, children: t.children }) }),
|
|
128
|
+
t.footer ? /* @__PURE__ */ e("div", { className: "border-0 border-t border-solid border-[var(--malachite-card-border)] px-[24px] py-[16px]", children: t.footer }) : null
|
|
129
129
|
]
|
|
130
130
|
}
|
|
131
|
-
) : null,
|
|
131
|
+
) : null, Y = w === "below" && !!s, F = /* @__PURE__ */ e(
|
|
132
132
|
"span",
|
|
133
133
|
{
|
|
134
|
-
className:
|
|
135
|
-
children: /* @__PURE__ */ e(
|
|
136
|
-
T,
|
|
137
|
-
{
|
|
138
|
-
tooltip: i,
|
|
139
|
-
tooltipWhenTruncated: !0,
|
|
140
|
-
tooltipPlacement: "bottom",
|
|
141
|
-
className: "min-w-0 text-[length:var(--malachite-font-size-15,15px)] font-semibold",
|
|
142
|
-
children: i
|
|
143
|
-
}
|
|
144
|
-
)
|
|
134
|
+
className: Y ? "flex min-w-0 shrink" : "flex min-w-0 max-w-full shrink-0",
|
|
135
|
+
children: /* @__PURE__ */ e(Q, { children: n })
|
|
145
136
|
}
|
|
146
|
-
),
|
|
147
|
-
|
|
137
|
+
), G = s ? /* @__PURE__ */ e(
|
|
138
|
+
_e,
|
|
148
139
|
{
|
|
149
|
-
tooltip:
|
|
140
|
+
tooltip: s,
|
|
150
141
|
tooltipWhenTruncated: !0,
|
|
151
142
|
tooltipPlacement: "bottom",
|
|
152
143
|
color: "secondary",
|
|
153
144
|
className: "min-w-0 text-[13px]",
|
|
154
|
-
children:
|
|
145
|
+
children: s
|
|
155
146
|
}
|
|
156
|
-
) : null,
|
|
157
|
-
return
|
|
147
|
+
) : null, K = x ? /* @__PURE__ */ e("span", { className: "flex shrink-0 items-center", children: x }) : null, q = E ? /* @__PURE__ */ e("span", { className: "flex shrink-0 items-baseline", children: E }) : null;
|
|
148
|
+
return Te(
|
|
158
149
|
// Host carries the stacking context — ShadowRootWrapper's `isolation` would
|
|
159
150
|
// otherwise flatten our z-index and let sticky page elements paint over us.
|
|
160
151
|
/* @__PURE__ */ e(
|
|
161
|
-
|
|
152
|
+
$e,
|
|
162
153
|
{
|
|
163
|
-
hostRef:
|
|
164
|
-
hostStyle: { position: "relative", zIndex:
|
|
165
|
-
hostProps:
|
|
166
|
-
children: /* @__PURE__ */ e(
|
|
154
|
+
hostRef: j,
|
|
155
|
+
hostStyle: { position: "relative", zIndex: be },
|
|
156
|
+
hostProps: he ? { ...ee("sidepanel"), [Le]: "" } : ee("sidepanel"),
|
|
157
|
+
children: /* @__PURE__ */ e(re.Provider, { value: null, children: /* @__PURE__ */ l("div", { className: "fixed inset-0 z-[1000]", children: [
|
|
167
158
|
/* @__PURE__ */ e(
|
|
168
159
|
"div",
|
|
169
160
|
{
|
|
170
161
|
"aria-hidden": "true",
|
|
171
|
-
onClick:
|
|
172
|
-
className: `absolute inset-0 bg-[var(--malachite-overlay-scrim)] transition-opacity duration-200 ease-in-out ${
|
|
162
|
+
onClick: H,
|
|
163
|
+
className: `absolute inset-0 bg-[var(--malachite-overlay-scrim)] transition-opacity duration-200 ease-in-out ${V ? "opacity-100" : "opacity-0"}`
|
|
173
164
|
}
|
|
174
165
|
),
|
|
175
166
|
/* @__PURE__ */ l(
|
|
176
167
|
"div",
|
|
177
168
|
{
|
|
178
|
-
ref:
|
|
169
|
+
ref: xe,
|
|
179
170
|
role: "dialog",
|
|
180
|
-
"aria-modal":
|
|
171
|
+
"aria-modal": ue ? "true" : void 0,
|
|
181
172
|
"aria-describedby": [
|
|
182
|
-
...(
|
|
183
|
-
|
|
173
|
+
...(U ?? []).map((m, Ne) => `${A}-${Ne}`),
|
|
174
|
+
c ? O : null
|
|
184
175
|
].filter(Boolean).join(" ") || void 0,
|
|
185
176
|
tabIndex: -1,
|
|
186
|
-
"aria-label":
|
|
187
|
-
"aria-labelledby":
|
|
177
|
+
"aria-label": _ ? void 0 : te ?? (typeof n == "string" ? n : void 0),
|
|
178
|
+
"aria-labelledby": _,
|
|
188
179
|
className: "absolute top-[8px] right-[8px] bottom-[8px] grid grid-rows-[auto_minmax(0,1fr)_auto] overflow-x-auto overflow-y-hidden rounded-[20px] border border-solid border-[var(--malachite-card-border)] bg-[var(--malachite-card-background)] text-[var(--malachite-card-foreground)] outline-none [box-shadow:var(--malachite-shadow-lg)]",
|
|
189
180
|
style: {
|
|
190
|
-
width: `min(calc(100% - 16px), ${
|
|
181
|
+
width: `min(calc(100% - 16px), ${t ? `calc(2 * ${C(S)})` : C(S)})`,
|
|
191
182
|
// Inline: Tailwind translate utilities silently break inside
|
|
192
183
|
// shadow roots (see CLAUDE.md Shadow DOM caveats).
|
|
193
|
-
transform:
|
|
194
|
-
transition: `transform ${
|
|
184
|
+
transform: V ? "translateX(0)" : "translateX(calc(100% + 16px))",
|
|
185
|
+
transition: `transform ${g}ms ease-in-out, width ${g}ms ease-in-out, grid-template-columns ${g}ms ease-in-out`,
|
|
195
186
|
// The panel's own column is the width it has without an aside: `maxWidth`
|
|
196
187
|
// less the 1px border either side, so opening the aside never widens it.
|
|
197
188
|
// With an aside neither column gives way, so a narrow window scrolls the
|
|
198
189
|
// panel instead. Both templates share one shape so the minimums animate
|
|
199
190
|
// with the width rather than overflowing mid-transition.
|
|
200
|
-
gridTemplateColumns:
|
|
191
|
+
gridTemplateColumns: t ? `minmax(${De}, 1fr) minmax(${$}, ${$})` : `minmax(0px, 1fr) minmax(0px, ${$})`
|
|
201
192
|
},
|
|
202
193
|
children: [
|
|
203
|
-
|
|
204
|
-
/* @__PURE__ */ l(
|
|
194
|
+
ve,
|
|
195
|
+
/* @__PURE__ */ l(Oe, { onSubmit: I, children: [
|
|
205
196
|
/* @__PURE__ */ l(
|
|
206
197
|
"div",
|
|
207
198
|
{
|
|
208
|
-
className: `flex flex-col gap-[20px] px-[20px] py-[18px] ${
|
|
199
|
+
className: `flex flex-col gap-[20px] px-[20px] py-[18px] ${X}`,
|
|
200
|
+
...N(!!d),
|
|
209
201
|
children: [
|
|
210
202
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-[12px]", children: [
|
|
211
|
-
|
|
203
|
+
k ? /* @__PURE__ */ e(
|
|
212
204
|
"button",
|
|
213
205
|
{
|
|
214
206
|
type: "button",
|
|
215
207
|
"aria-label": "Back",
|
|
216
|
-
onClick:
|
|
217
|
-
className:
|
|
218
|
-
children: /* @__PURE__ */ e(
|
|
208
|
+
onClick: k,
|
|
209
|
+
className: Z,
|
|
210
|
+
children: /* @__PURE__ */ e(Pe, { size: 16 })
|
|
219
211
|
}
|
|
220
212
|
) : null,
|
|
221
|
-
|
|
222
|
-
|
|
213
|
+
P ? /* @__PURE__ */ e("span", { className: "flex shrink-0 items-center", children: P }) : null,
|
|
214
|
+
Y ? /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-[12px]", children: [
|
|
223
215
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 flex-col gap-[2px]", children: [
|
|
224
216
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 items-baseline gap-[8px]", children: [
|
|
225
|
-
|
|
226
|
-
|
|
217
|
+
F,
|
|
218
|
+
K
|
|
227
219
|
] }),
|
|
228
|
-
|
|
220
|
+
G
|
|
229
221
|
] }),
|
|
230
|
-
|
|
222
|
+
q
|
|
231
223
|
] }) : /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-baseline gap-[12px]", children: [
|
|
232
224
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-baseline gap-[8px]", children: [
|
|
233
225
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 items-baseline gap-[8px]", children: [
|
|
234
|
-
|
|
235
|
-
|
|
226
|
+
F,
|
|
227
|
+
G
|
|
236
228
|
] }),
|
|
237
|
-
|
|
229
|
+
K
|
|
238
230
|
] }),
|
|
239
|
-
|
|
231
|
+
q
|
|
240
232
|
] }),
|
|
241
233
|
/* @__PURE__ */ e(
|
|
242
234
|
"button",
|
|
243
235
|
{
|
|
244
236
|
type: "button",
|
|
245
237
|
"aria-label": "Close",
|
|
246
|
-
onClick:
|
|
247
|
-
className:
|
|
248
|
-
children: /* @__PURE__ */ e(
|
|
238
|
+
onClick: H,
|
|
239
|
+
className: Z,
|
|
240
|
+
children: /* @__PURE__ */ e(Ee, { size: 10 })
|
|
249
241
|
}
|
|
250
242
|
)
|
|
251
243
|
] }),
|
|
252
|
-
|
|
244
|
+
c ? /* @__PURE__ */ e(
|
|
253
245
|
"div",
|
|
254
246
|
{
|
|
255
|
-
id:
|
|
247
|
+
id: O,
|
|
256
248
|
className: "text-[13px] leading-[1.6] text-[var(--malachite-text-secondary)]",
|
|
257
|
-
children:
|
|
249
|
+
children: c
|
|
258
250
|
}
|
|
259
251
|
) : null
|
|
260
252
|
]
|
|
261
253
|
}
|
|
262
254
|
),
|
|
263
|
-
/* @__PURE__ */ l(
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
{
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
255
|
+
/* @__PURE__ */ l(
|
|
256
|
+
"div",
|
|
257
|
+
{
|
|
258
|
+
className: `flex min-h-0 flex-col ${y ? "" : "row-span-2"}`,
|
|
259
|
+
...N(!!d),
|
|
260
|
+
children: [
|
|
261
|
+
p ? /* @__PURE__ */ e(
|
|
262
|
+
"div",
|
|
263
|
+
{
|
|
264
|
+
className: `shrink-0 pt-[16px] pb-[8px] ${u === "body" ? "px-[28px]" : "px-[16px]"}`,
|
|
265
|
+
onKeyDown: I ? Me : void 0,
|
|
266
|
+
children: p
|
|
267
|
+
}
|
|
268
|
+
) : null,
|
|
269
|
+
/* @__PURE__ */ e(
|
|
270
|
+
"div",
|
|
271
|
+
{
|
|
272
|
+
ref: ce,
|
|
273
|
+
className: "shrink-0 px-[28px] empty:hidden"
|
|
274
|
+
}
|
|
275
|
+
),
|
|
276
|
+
/* @__PURE__ */ e(
|
|
277
|
+
le,
|
|
278
|
+
{
|
|
279
|
+
bodyPadding: ne,
|
|
280
|
+
callouts: U,
|
|
281
|
+
calloutId: A,
|
|
282
|
+
renderLink: oe,
|
|
283
|
+
stableGutter: de > 0,
|
|
284
|
+
scrollerRef: me,
|
|
285
|
+
children: /* @__PURE__ */ e(re.Provider, { value: pe, children: se })
|
|
286
|
+
}
|
|
287
|
+
)
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
),
|
|
291
|
+
y ? /* @__PURE__ */ e(
|
|
292
|
+
"div",
|
|
293
|
+
{
|
|
294
|
+
className: "border-0 border-t border-solid border-[var(--malachite-card-border)] px-[24px] py-[16px]",
|
|
295
|
+
...N(!!d),
|
|
296
|
+
children: y
|
|
297
|
+
}
|
|
298
|
+
) : null
|
|
299
|
+
] }),
|
|
300
|
+
d ? /* @__PURE__ */ e(Ie, { sheet: d }) : null
|
|
294
301
|
]
|
|
295
302
|
}
|
|
296
303
|
)
|
|
@@ -300,9 +307,9 @@ const h = 200, Ie = "360px", J = ({
|
|
|
300
307
|
document.body
|
|
301
308
|
);
|
|
302
309
|
};
|
|
303
|
-
|
|
310
|
+
Ve.Tabs = ke;
|
|
304
311
|
export {
|
|
305
|
-
|
|
306
|
-
|
|
312
|
+
Ve as SidePanel,
|
|
313
|
+
Ve as default
|
|
307
314
|
};
|
|
308
315
|
//# sourceMappingURL=SidePanel.js.map
|