@stackone/malachite 2.108.0 → 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.
@@ -1,296 +1,303 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { useId as F, useState as m, useCallback as ue, useMemo as he, useRef as y, useEffect as be } from "react";
3
- import { createPortal as ve } from "react-dom";
4
- import { ShadowRootWrapper as Ne } from "../ShadowRootWrapper.js";
5
- import ge from "./CalloutStrip.js";
6
- import we from "./CustomIcons/ArrowLeftIcon.js";
7
- import ye from "./CustomIcons/DismissIcon.js";
8
- import Te from "./SidePanelTabs.js";
9
- import T from "./Typography/EllipsisText.js";
10
- import { afterNextPaint as Se } from "./afterNextPaint.js";
11
- import { useOverlayBehaviour as $e, OVERLAY_ICON_BUTTON_CLASSES as G } from "./overlayBehaviour.js";
12
- import { OVERLAY_ELEVATED_ATTR as Ce, overlayIdentity as K } from "./portalOverlay.js";
13
- import { SidePanelTabsContext as q } from "./sidePanelTabsContext.js";
14
- const h = 200, Ie = "360px", J = ({
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: t,
17
- calloutId: i,
18
- renderLink: o,
19
- stableGutter: b = !1,
20
- scrollerRef: p,
21
- children: s
19
+ callouts: a,
20
+ calloutId: n,
21
+ renderLink: s,
22
+ stableGutter: w = !1,
23
+ scrollerRef: x,
24
+ children: c
22
25
  }) => {
23
- const d = !!(t != null && t.length);
26
+ const p = !!(a != null && a.length);
24
27
  return /* @__PURE__ */ l(
25
28
  "div",
26
29
  {
27
- ref: p,
28
- className: `min-h-0 flex-1 overflow-y-auto ${b ? "[scrollbar-gutter:stable]" : ""} ${r && !d ? "px-[28px]" : ""}`,
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
- t == null ? void 0 : t.map((x, f) => /* @__PURE__ */ e(
31
- ge,
33
+ a == null ? void 0 : a.map((u, b) => /* @__PURE__ */ e(
34
+ Ce,
32
35
  {
33
- id: i ? `${i}-${f}` : void 0,
34
- type: x.type,
35
- message: x.message,
36
- renderLink: o
36
+ id: n ? `${n}-${b}` : void 0,
37
+ type: u.type,
38
+ message: u.message,
39
+ renderLink: s
37
40
  },
38
- f
41
+ b
39
42
  )),
40
- r ? /* @__PURE__ */ e("div", { className: d ? "p-[28px]" : "py-[28px]", children: s }) : s
43
+ r ? /* @__PURE__ */ e("div", { className: p ? "p-[28px]" : "py-[28px]", children: c }) : c
41
44
  ]
42
45
  }
43
46
  );
44
- }, S = (r) => typeof r == "number" ? `${r}px` : r, Pe = (r) => {
47
+ }, C = (r) => typeof r == "number" ? `${r}px` : r, Me = (r) => {
45
48
  r.key === "Enter" && r.target instanceof HTMLInputElement && r.preventDefault();
46
- }, Q = "col-start-2 row-span-3 grid min-w-0 grid-cols-[minmax(0,1fr)] grid-rows-subgrid", ke = ({ onSubmit: r, children: t }) => r ? /* @__PURE__ */ e(
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: Q,
51
- onSubmit: (i) => {
52
- i.preventDefault(), i.stopPropagation(), r(i);
53
+ className: ae,
54
+ onSubmit: (n) => {
55
+ n.preventDefault(), n.stopPropagation(), r(n);
53
56
  },
54
- children: t
57
+ children: a
55
58
  }
56
- ) : /* @__PURE__ */ e("div", { className: Q, children: t }), Ee = ({
59
+ ) : /* @__PURE__ */ e("div", { className: ae, children: a }), Ve = ({
57
60
  open: r,
58
- onClose: t,
59
- title: i,
60
- subtitle: o,
61
- subtitlePlacement: b = "inline",
62
- titleExtra: p,
63
- description: s,
64
- toolbar: d,
65
- toolbarPadding: x = "default",
66
- headerDivider: f = !1,
67
- icon: $,
68
- headerExtra: C,
69
- footer: v,
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: P,
72
- maxWidth: N = 1080,
73
- "aria-label": Z,
74
- "aria-labelledby": k,
75
- bodyPadding: ee = !0,
76
- stacking: re = "default",
77
- callouts: g,
78
- renderLink: le,
79
- aside: a,
80
- children: te
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 E = F(), [_, ae] = m(null), [ie, A] = m(0), R = ue(() => (A((c) => c + 1), () => A((c) => c - 1)), []), [L, ne] = m(null), oe = he(
83
- () => ({ stripSlot: _, scroller: L, registerTabs: R }),
84
- [_, L, R]
85
- ), z = F(), [D, M] = m(!1), [se, O] = m(!1), u = y(null), n = y(null), V = y(null), {
86
- ref: ce,
87
- isTopmost: de,
88
- zIndex: me,
89
- elevated: pe
90
- } = $e({
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: t,
93
- elevated: re === "above-app-overlays",
94
- hostRef: V
95
- });
96
- if (be(() => (r ? (O(!0), n.current && (clearTimeout(n.current), n.current = null), Se(u, () => M(!0))) : (M(!1), n.current = setTimeout(() => {
97
- n.current = null, O(!1);
98
- }, h)), () => {
99
- u.current !== null && (cancelAnimationFrame(u.current), u.current = null), n.current && (clearTimeout(n.current), n.current = null);
100
- }), [r]), !se)
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 B = g == null ? void 0 : g.filter((c) => c.message.trim()), w = `calc(${S(N)} - 2px)`, W = f ? "border-0 border-b border-solid border-[var(--malachite-card-border)]" : "", xe = a ? /* @__PURE__ */ l(
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": a.title,
106
- className: "col-start-1 row-span-3 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)]",
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] ${W}`,
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
- T,
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 ${a.footer ? "" : "row-span-2"}`, children: /* @__PURE__ */ e(J, { bodyPadding: a.bodyPadding ?? !0, children: a.children }) }),
128
- a.footer ? /* @__PURE__ */ e("div", { className: "border-0 border-t border-solid border-[var(--malachite-card-border)] px-[24px] py-[16px]", children: a.footer }) : null
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, j = b === "below" && !!o, H = /* @__PURE__ */ e(
131
+ ) : null, Y = w === "below" && !!s, F = /* @__PURE__ */ e(
132
132
  "span",
133
133
  {
134
- className: j ? "flex min-w-0 shrink" : "flex min-w-0 max-w-full shrink-0",
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
- ), U = o ? /* @__PURE__ */ e(
147
- T,
137
+ ), G = s ? /* @__PURE__ */ e(
138
+ _e,
148
139
  {
149
- tooltip: o,
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: o
145
+ children: s
155
146
  }
156
- ) : null, X = p ? /* @__PURE__ */ e("span", { className: "flex shrink-0 items-center", children: p }) : null, Y = C ? /* @__PURE__ */ e("span", { className: "flex shrink-0 items-baseline", children: C }) : null;
157
- return ve(
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
- Ne,
152
+ $e,
162
153
  {
163
- hostRef: V,
164
- hostStyle: { position: "relative", zIndex: me },
165
- hostProps: pe ? { ...K("sidepanel"), [Ce]: "" } : K("sidepanel"),
166
- children: /* @__PURE__ */ e(q.Provider, { value: null, children: /* @__PURE__ */ l("div", { className: "fixed inset-0 z-[1000]", children: [
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: t,
172
- className: `absolute inset-0 bg-[var(--malachite-overlay-scrim)] transition-opacity duration-200 ease-in-out ${D ? "opacity-100" : "opacity-0"}`
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: ce,
169
+ ref: xe,
179
170
  role: "dialog",
180
- "aria-modal": de ? "true" : void 0,
171
+ "aria-modal": ue ? "true" : void 0,
181
172
  "aria-describedby": [
182
- ...(B ?? []).map((c, fe) => `${E}-${fe}`),
183
- s ? z : null
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": k ? void 0 : Z ?? (typeof i == "string" ? i : void 0),
187
- "aria-labelledby": k,
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), ${a ? `calc(2 * ${S(N)})` : S(N)})`,
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: D ? "translateX(0)" : "translateX(calc(100% + 16px))",
194
- transition: `transform ${h}ms ease-in-out, width ${h}ms ease-in-out, grid-template-columns ${h}ms ease-in-out`,
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: a ? `minmax(${Ie}, 1fr) minmax(${w}, ${w})` : `minmax(0px, 1fr) minmax(0px, ${w})`
191
+ gridTemplateColumns: t ? `minmax(${De}, 1fr) minmax(${$}, ${$})` : `minmax(0px, 1fr) minmax(0px, ${$})`
201
192
  },
202
193
  children: [
203
- xe,
204
- /* @__PURE__ */ l(ke, { onSubmit: I, children: [
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] ${W}`,
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
- P ? /* @__PURE__ */ e(
203
+ k ? /* @__PURE__ */ e(
212
204
  "button",
213
205
  {
214
206
  type: "button",
215
207
  "aria-label": "Back",
216
- onClick: P,
217
- className: G,
218
- children: /* @__PURE__ */ e(we, { size: 16 })
208
+ onClick: k,
209
+ className: Z,
210
+ children: /* @__PURE__ */ e(Pe, { size: 16 })
219
211
  }
220
212
  ) : null,
221
- $ ? /* @__PURE__ */ e("span", { className: "flex shrink-0 items-center", children: $ }) : null,
222
- j ? /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-[12px]", children: [
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
- H,
226
- X
217
+ F,
218
+ K
227
219
  ] }),
228
- U
220
+ G
229
221
  ] }),
230
- Y
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
- H,
235
- U
226
+ F,
227
+ G
236
228
  ] }),
237
- X
229
+ K
238
230
  ] }),
239
- Y
231
+ q
240
232
  ] }),
241
233
  /* @__PURE__ */ e(
242
234
  "button",
243
235
  {
244
236
  type: "button",
245
237
  "aria-label": "Close",
246
- onClick: t,
247
- className: G,
248
- children: /* @__PURE__ */ e(ye, { size: 10 })
238
+ onClick: H,
239
+ className: Z,
240
+ children: /* @__PURE__ */ e(Ee, { size: 10 })
249
241
  }
250
242
  )
251
243
  ] }),
252
- s ? /* @__PURE__ */ e(
244
+ c ? /* @__PURE__ */ e(
253
245
  "div",
254
246
  {
255
- id: z,
247
+ id: O,
256
248
  className: "text-[13px] leading-[1.6] text-[var(--malachite-text-secondary)]",
257
- children: s
249
+ children: c
258
250
  }
259
251
  ) : null
260
252
  ]
261
253
  }
262
254
  ),
263
- /* @__PURE__ */ l("div", { className: `flex min-h-0 flex-col ${v ? "" : "row-span-2"}`, children: [
264
- d ? /* @__PURE__ */ e(
265
- "div",
266
- {
267
- className: `shrink-0 pt-[16px] pb-[8px] ${x === "body" ? "px-[28px]" : "px-[16px]"}`,
268
- onKeyDown: I ? Pe : void 0,
269
- children: d
270
- }
271
- ) : null,
272
- /* @__PURE__ */ e(
273
- "div",
274
- {
275
- ref: ae,
276
- className: "shrink-0 px-[28px] empty:hidden"
277
- }
278
- ),
279
- /* @__PURE__ */ e(
280
- J,
281
- {
282
- bodyPadding: ee,
283
- callouts: B,
284
- calloutId: E,
285
- renderLink: le,
286
- stableGutter: ie > 0,
287
- scrollerRef: ne,
288
- children: /* @__PURE__ */ e(q.Provider, { value: oe, children: te })
289
- }
290
- )
291
- ] }),
292
- v ? /* @__PURE__ */ e("div", { className: "border-0 border-t border-solid border-[var(--malachite-card-border)] px-[24px] py-[16px]", children: v }) : null
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
- Ee.Tabs = Te;
310
+ Ve.Tabs = ke;
304
311
  export {
305
- Ee as SidePanel,
306
- Ee as default
312
+ Ve as SidePanel,
313
+ Ve as default
307
314
  };
308
315
  //# sourceMappingURL=SidePanel.js.map