@alfadocs/ui-kit 1.151.0 → 1.151.2
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/_chunks/{appointment-card-BPZggqck.js → appointment-card-CCKjbU5y.js} +105 -104
- package/dist/_chunks/{appointment-timeline-COfoHpoJ.js → appointment-timeline-B9KRurfc.js} +2 -2
- package/dist/_chunks/{appointment-tray-BlKwDJKi.js → appointment-tray-Be3HuEyO.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BPAfWtm9.js → calendar-appointment-editor-dialog-B9MtcBvx.js} +3 -3
- package/dist/_chunks/{control-room-rail-BmpTKtL1.js → control-room-rail-C-3o1e0e.js} +2 -2
- package/dist/_chunks/{patient-account-settings-DQx_9CYV.js → patient-account-settings-DmB_h5fq.js} +2 -2
- package/dist/_chunks/{patient-check-in-resume-BOHcm9hT.js → patient-check-in-resume-CI54cY8Z.js} +4 -4
- package/dist/_chunks/{portal-details-R-lwrisO.js → portal-details-BZm8UNMx.js} +2 -2
- package/dist/_chunks/{portal-documents-C6XlWpEl.js → portal-documents-CBVSCKAB.js} +2 -2
- package/dist/_chunks/{portal-parts-DlvSUZFX.js → portal-parts-DRfyhL5P.js} +2 -2
- package/dist/_chunks/{tool-rail-B4p6MmxA.js → tool-rail-C_Ay0Gxi.js} +176 -175
- package/dist/agent-catalog.json +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +5 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tool-rail/tool-rail.d.ts +3 -0
- package/dist/i18n/locales/it.d.ts +2 -2
- package/dist/i18n/locales/it.js +2 -2
- package/dist/index.js +9 -9
- package/dist/locales/it.json +2 -2
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { jsxs as w, jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as Vt, useRef as m, useState as I, useMemo as
|
|
3
|
-
import * as
|
|
2
|
+
import { forwardRef as Vt, useRef as m, useState as I, useMemo as H, useId as Ot, useCallback as B, useEffect as ae, useImperativeHandle as Bt, Fragment as Ft } from "react";
|
|
3
|
+
import * as K from "@radix-ui/react-dialog";
|
|
4
4
|
import { c as k } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { useTranslation as
|
|
5
|
+
import { useTranslation as Mt } from "react-i18next";
|
|
6
6
|
import { u as jt } from "./app-frame-context-CPszhDDb.js";
|
|
7
|
+
import { u as qt } from "./use-media-query-CcAx5SMM.js";
|
|
7
8
|
import { I as xe } from "./icon-button-u9VMQn3x.js";
|
|
8
|
-
import { D as
|
|
9
|
-
import { a as
|
|
9
|
+
import { D as Ht, a as Kt } from "./dialog-container-DHR0byah.js";
|
|
10
|
+
import { a as $t } from "./panel-header-DTc5OFUg.js";
|
|
10
11
|
import { S as et } from "./scroll-area-RQtcKkHf.js";
|
|
11
|
-
import { a as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
12
|
+
import { a as Ut } from "./tooltip-uEBdD1-5.js";
|
|
13
|
+
import { u as Wt } from "./use-controllable-state-BiY4xTzM.js";
|
|
14
|
+
import { u as Yt } from "./use-edge-resize-CBtem0j2.js";
|
|
14
15
|
import { u as A } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
15
|
-
import { a as
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as
|
|
18
|
-
import { u as
|
|
19
|
-
import { u as
|
|
20
|
-
import { X as
|
|
21
|
-
const
|
|
16
|
+
import { a as Zt, u as tt, R as Gt } from "./use-list-reflow-C7O4Uqnl.js";
|
|
17
|
+
import { u as Xt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
18
|
+
import { u as Qt } from "./use-presence-transition-cDwWUXV-.js";
|
|
19
|
+
import { u as Jt } from "./use-resolved-theme-B0f1_oyq.js";
|
|
20
|
+
import { u as en } from "./registry-DvAUVLHh.js";
|
|
21
|
+
import { X as tn } from "./x-B5YnXwCz.js";
|
|
22
|
+
const nn = {
|
|
22
23
|
id: "tool-rail",
|
|
23
24
|
capabilities: ["open", "close", "select_single"],
|
|
24
25
|
state: {
|
|
@@ -96,14 +97,14 @@ const en = {
|
|
|
96
97
|
description: "Stable tool id emitted on each strip IconButton. The active icon also carries data-active set to its id."
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
|
-
},
|
|
100
|
-
function
|
|
101
|
-
return a === void 0 || !Number.isFinite(a) || a <= 0 ? !1 : i === null || !Number.isFinite(i) ?
|
|
100
|
+
}, an = "ds:[inline-size:3rem]", sn = "ds:[inline-size:var(--tool-rail-panel-inline-size,var(--ai-tools-rail-panel-inline-size,22rem))]", nt = "--tool-rail-panel-inline-size", at = "ds:flex-1 ds:min-h-0 ds:[&>*]:max-h-full ds:[&>*]:overflow-y-auto", st = "ds:flex ds:h-full ds:flex-col ds:[&>*]:flex-[1_0_auto]", rn = 288, on = 880, ln = 352, dn = "(max-width: 767.98px)", cn = 24;
|
|
101
|
+
function un(i, a, D) {
|
|
102
|
+
return a === void 0 || !Number.isFinite(a) || a <= 0 ? !1 : i === null || !Number.isFinite(i) ? D : D ? i < a + cn : i < a;
|
|
102
103
|
}
|
|
103
104
|
function $(i) {
|
|
104
105
|
return !!(i != null && i.disabled) && !i.disabledReason;
|
|
105
106
|
}
|
|
106
|
-
const
|
|
107
|
+
const fn = k(
|
|
107
108
|
[
|
|
108
109
|
// `relative`: an overlaid panel is positioned against the rail.
|
|
109
110
|
"ds:relative ds:flex ds:shrink-0 ds:h-full",
|
|
@@ -128,19 +129,19 @@ const dn = k(
|
|
|
128
129
|
},
|
|
129
130
|
defaultVariants: { side: "end" }
|
|
130
131
|
}
|
|
131
|
-
),
|
|
132
|
+
), pn = k(
|
|
132
133
|
[
|
|
133
134
|
"ds:flex ds:shrink-0 ds:flex-col ds:items-center",
|
|
134
135
|
"ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
|
|
135
136
|
"ds:gap-[var(--spacing-xs)]",
|
|
136
|
-
|
|
137
|
+
an
|
|
137
138
|
].join(" ")
|
|
138
|
-
),
|
|
139
|
+
), vn = k(
|
|
139
140
|
[
|
|
140
141
|
// Positioned by the caller: `relative` docked, absolute when overlaid.
|
|
141
142
|
"ds:flex ds:min-h-0 ds:flex-col ds:h-full",
|
|
142
143
|
"ds:bg-[var(--background)]",
|
|
143
|
-
|
|
144
|
+
sn,
|
|
144
145
|
// Open / collapse: the panel fades and slides from the strip. The WIDTH
|
|
145
146
|
// snaps on purpose — animating it would re-lay-out the main area (a
|
|
146
147
|
// calendar grid) on every frame. Declared at rest so both directions
|
|
@@ -161,7 +162,7 @@ const dn = k(
|
|
|
161
162
|
},
|
|
162
163
|
defaultVariants: { side: "end" }
|
|
163
164
|
}
|
|
164
|
-
),
|
|
165
|
+
), mn = k("", {
|
|
165
166
|
variants: {
|
|
166
167
|
mode: {
|
|
167
168
|
docked: "ds:relative ds:z-[1]",
|
|
@@ -189,12 +190,12 @@ const dn = k(
|
|
|
189
190
|
}
|
|
190
191
|
],
|
|
191
192
|
defaultVariants: { mode: "docked", side: "end" }
|
|
192
|
-
}),
|
|
193
|
+
}), gn = [
|
|
193
194
|
"ds:fixed ds:inset-0 ds:z-[var(--z-modal)]",
|
|
194
195
|
"ds:flex ds:flex-col",
|
|
195
196
|
"ds:bg-[var(--background)] ds:text-[color:var(--foreground)]",
|
|
196
197
|
"ds:focus-visible:outline-none"
|
|
197
|
-
].join(" "),
|
|
198
|
+
].join(" "), hn = "ds:relative ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ds:overflow-clip", rt = k(
|
|
198
199
|
[
|
|
199
200
|
"ds:flex ds:min-h-0 ds:flex-col",
|
|
200
201
|
"ds:transition-[opacity,translate] ds:duration-[var(--animation-duration)]",
|
|
@@ -219,7 +220,7 @@ const dn = k(
|
|
|
219
220
|
},
|
|
220
221
|
defaultVariants: { layer: "live" }
|
|
221
222
|
}
|
|
222
|
-
),
|
|
223
|
+
), bn = 500, yn = [
|
|
223
224
|
"id",
|
|
224
225
|
"name",
|
|
225
226
|
"for",
|
|
@@ -227,29 +228,29 @@ const dn = k(
|
|
|
227
228
|
"data-component-id",
|
|
228
229
|
"data-testid"
|
|
229
230
|
];
|
|
230
|
-
function
|
|
231
|
+
function xn(i) {
|
|
231
232
|
return window.getComputedStyle(i).transitionDuration.split(",").some((a) => Number.parseFloat(a) > 0);
|
|
232
233
|
}
|
|
233
|
-
function
|
|
234
|
-
const a = i.cloneNode(!0),
|
|
235
|
-
return
|
|
234
|
+
function wn(i) {
|
|
235
|
+
const a = i.cloneNode(!0), D = i.querySelectorAll("*"), U = a.querySelectorAll("*"), W = [];
|
|
236
|
+
return D.forEach((u, F) => {
|
|
236
237
|
var Y;
|
|
237
|
-
const
|
|
238
|
-
if (
|
|
238
|
+
const p = U[F];
|
|
239
|
+
if (p && ((u.scrollTop !== 0 || u.scrollLeft !== 0) && W.push([p, u.scrollTop, u.scrollLeft]), u instanceof HTMLCanvasElement && p instanceof HTMLCanvasElement))
|
|
239
240
|
try {
|
|
240
|
-
(Y =
|
|
241
|
+
(Y = p.getContext("2d")) == null || Y.drawImage(u, 0, 0);
|
|
241
242
|
} catch {
|
|
242
243
|
}
|
|
243
244
|
}), U.forEach((u) => {
|
|
244
245
|
const F = u instanceof SVGElement;
|
|
245
|
-
for (const
|
|
246
|
-
F &&
|
|
246
|
+
for (const p of yn)
|
|
247
|
+
F && p === "id" || u.removeAttribute(p);
|
|
247
248
|
if (u.matches("iframe, video, audio, embed, object, source"))
|
|
248
|
-
for (const
|
|
249
|
-
u.removeAttribute(
|
|
249
|
+
for (const p of ["src", "srcdoc", "data", "autoplay"])
|
|
250
|
+
u.removeAttribute(p);
|
|
250
251
|
}), { nodes: Array.from(a.childNodes), scrolls: W };
|
|
251
252
|
}
|
|
252
|
-
const
|
|
253
|
+
const In = k(
|
|
253
254
|
[
|
|
254
255
|
"ds:absolute ds:[inset-block:0] ds:z-[1] ds:select-none ds:touch-none",
|
|
255
256
|
"ds:[inline-size:var(--resizable-handle-size)] ds:cursor-col-resize",
|
|
@@ -273,7 +274,7 @@ const yn = k(
|
|
|
273
274
|
},
|
|
274
275
|
defaultVariants: { edge: "inline-start" }
|
|
275
276
|
}
|
|
276
|
-
),
|
|
277
|
+
), Rn = k(
|
|
277
278
|
[
|
|
278
279
|
"ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
|
|
279
280
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
@@ -308,23 +309,23 @@ const yn = k(
|
|
|
308
309
|
reorderable: !1
|
|
309
310
|
}
|
|
310
311
|
}
|
|
311
|
-
),
|
|
312
|
+
), Sn = "ds:opacity-0", it = [
|
|
312
313
|
"ds:transition-opacity ds:duration-[var(--animation-duration)]",
|
|
313
314
|
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
314
315
|
].join(" ");
|
|
315
|
-
function
|
|
316
|
+
function En(i, a) {
|
|
316
317
|
return i > 99 ? a : String(i);
|
|
317
318
|
}
|
|
318
|
-
const
|
|
319
|
+
const Tn = Vt(
|
|
319
320
|
({
|
|
320
321
|
id: i,
|
|
321
322
|
tools: a,
|
|
322
|
-
activeToolId:
|
|
323
|
+
activeToolId: D,
|
|
323
324
|
defaultActiveToolId: U = null,
|
|
324
325
|
onActiveToolChange: W,
|
|
325
326
|
side: u = "end",
|
|
326
327
|
railLabel: F,
|
|
327
|
-
resizablePanel:
|
|
328
|
+
resizablePanel: p = !1,
|
|
328
329
|
panelPlacement: Y = "auto",
|
|
329
330
|
panelWidth: lt,
|
|
330
331
|
onPanelWidthChange: dt,
|
|
@@ -333,39 +334,39 @@ const Rn = Vt(
|
|
|
333
334
|
renderToolAffordance: re,
|
|
334
335
|
renderPanelHeader: we,
|
|
335
336
|
dataComponent: ct = "tool-rail",
|
|
336
|
-
agentAdapter: ut =
|
|
337
|
+
agentAdapter: ut = nn,
|
|
337
338
|
className: ft
|
|
338
339
|
}, pt) => {
|
|
339
340
|
var Ge, Xe;
|
|
340
|
-
const { t: R } =
|
|
341
|
-
value:
|
|
341
|
+
const { t: R } = Mt("ui"), [vt, g] = Wt({
|
|
342
|
+
value: D,
|
|
342
343
|
defaultValue: U,
|
|
343
344
|
onChange: W
|
|
344
|
-
}), h = vt ?? null, oe = m([]), L = m(null), [Ie, ie] = I(0),
|
|
345
|
+
}), h = vt ?? null, oe = m([]), L = m(null), [Ie, ie] = I(0), P = m(!1), le = m(!1), N = H(
|
|
345
346
|
() => a.findIndex((e) => e.id === h),
|
|
346
347
|
[a, h]
|
|
347
348
|
), o = N >= 0 ? a[N] : null, de = m(o);
|
|
348
349
|
o && (de.current = o);
|
|
349
|
-
const mt =
|
|
350
|
+
const mt = H(
|
|
350
351
|
() => a.findIndex((e) => !$(e)),
|
|
351
352
|
[a]
|
|
352
|
-
), Re =
|
|
353
|
+
), Re = H(() => {
|
|
353
354
|
var t;
|
|
354
355
|
const e = (t = a[0]) == null ? void 0 : t.scope;
|
|
355
356
|
return e ? a.findIndex((n) => n.scope && n.scope !== e) : -1;
|
|
356
|
-
}, [a]), gt = Re > 0, b =
|
|
357
|
+
}, [a]), gt = Re > 0, b = H(() => {
|
|
357
358
|
var n;
|
|
358
359
|
const e = a.findIndex((s) => s.reorderable);
|
|
359
360
|
if (e < 0) return null;
|
|
360
361
|
let t = e;
|
|
361
362
|
for (; t + 1 < a.length && ((n = a[t + 1]) != null && n.reorderable); ) t += 1;
|
|
362
363
|
return { first: e, last: t };
|
|
363
|
-
}, [a]), Se = !!Z && b !== null,
|
|
364
|
+
}, [a]), Se = !!Z && b !== null, Ee = Ot(), [M, ce] = I(null), [Te, G] = I(null), T = m(null), { isAccessible: ht } = Jt(T), V = ht || void 0, { containerRef: Ae } = Zt({
|
|
364
365
|
key: a.map((e) => e.id).join(),
|
|
365
|
-
reduceMotion:
|
|
366
|
-
}), ue = tt({ reduceMotion:
|
|
366
|
+
reduceMotion: V
|
|
367
|
+
}), ue = tt({ reduceMotion: V }), fe = Qt(
|
|
367
368
|
o !== null,
|
|
368
|
-
{ reduceMotion:
|
|
369
|
+
{ reduceMotion: V }
|
|
369
370
|
), z = o === null && fe.mounted, x = o ?? (z ? de.current : null), { ref: ke } = fe, [bt, yt] = I(null), xt = B(
|
|
370
371
|
(e) => {
|
|
371
372
|
L.current = e, yt(e), ke(e);
|
|
@@ -378,7 +379,7 @@ const Rn = Vt(
|
|
|
378
379
|
if (!e) return;
|
|
379
380
|
const t = document.activeElement;
|
|
380
381
|
if (z && t instanceof HTMLElement && e.contains(t)) {
|
|
381
|
-
const s = (n = de.current) == null ? void 0 : n.id, r =
|
|
382
|
+
const s = (n = de.current) == null ? void 0 : n.id, r = T.current, c = (s ? r == null ? void 0 : r.querySelector(
|
|
382
383
|
`[data-tool-id="${CSS.escape(s)}"]`
|
|
383
384
|
) : null) ?? /* The tool left the strip with its panel (a host removed it as it
|
|
384
385
|
closed): the strip's tab stop, else its first enabled icon, so
|
|
@@ -393,12 +394,12 @@ const Rn = Vt(
|
|
|
393
394
|
}
|
|
394
395
|
e.toggleAttribute("inert", z);
|
|
395
396
|
}, [z]);
|
|
396
|
-
const Le =
|
|
397
|
+
const Le = Xt(), [X, Ne] = I(
|
|
397
398
|
(o == null ? void 0 : o.id) ?? null
|
|
398
|
-
), y = (o == null ? void 0 : o.id) ?? null,
|
|
399
|
+
), y = (o == null ? void 0 : o.id) ?? null, Q = !V && !Le && y !== null && X !== null && X !== y;
|
|
399
400
|
A(() => {
|
|
400
401
|
if (X === y) return;
|
|
401
|
-
if (!
|
|
402
|
+
if (!Q) {
|
|
402
403
|
Ne(y);
|
|
403
404
|
return;
|
|
404
405
|
}
|
|
@@ -409,8 +410,8 @@ const Rn = Vt(
|
|
|
409
410
|
return () => {
|
|
410
411
|
cancelAnimationFrame(n), cancelAnimationFrame(e), window.clearTimeout(s);
|
|
411
412
|
};
|
|
412
|
-
}, [y, X,
|
|
413
|
-
const wt = !!
|
|
413
|
+
}, [y, X, Q]);
|
|
414
|
+
const wt = !!V || Le, ze = m(null), [f, Ce] = I({ liveId: y, serial: 0, focusLost: !1, leaving: [] });
|
|
414
415
|
if (f.liveId !== y) {
|
|
415
416
|
const e = f.liveId !== null && y !== null ? ((Ge = ze.current) == null ? void 0 : Ge.querySelector(
|
|
416
417
|
':scope > [data-tool-rail-layer="live"]'
|
|
@@ -426,37 +427,37 @@ const Rn = Vt(
|
|
|
426
427
|
{
|
|
427
428
|
exitId: `${f.liveId}:${f.serial}`,
|
|
428
429
|
toolId: f.liveId,
|
|
429
|
-
...
|
|
430
|
+
...wn(e)
|
|
430
431
|
}
|
|
431
432
|
] : t
|
|
432
433
|
});
|
|
433
434
|
}
|
|
434
|
-
const
|
|
435
|
+
const j = B((e) => {
|
|
435
436
|
Ce(
|
|
436
437
|
(t) => t.leaving.some((n) => n.exitId === e) ? {
|
|
437
438
|
...t,
|
|
438
439
|
leaving: t.leaving.filter((n) => n.exitId !== e)
|
|
439
440
|
} : t
|
|
440
441
|
);
|
|
441
|
-
}, []), { leave:
|
|
442
|
-
reduceMotion:
|
|
443
|
-
durationMs:
|
|
442
|
+
}, []), { leave: _e } = tt({
|
|
443
|
+
reduceMotion: V,
|
|
444
|
+
durationMs: bn
|
|
444
445
|
});
|
|
445
446
|
ae(() => {
|
|
446
447
|
for (const { exitId: e } of f.leaving)
|
|
447
|
-
|
|
448
|
-
}, [f.leaving,
|
|
449
|
-
const It = x ? f.leaving : [], Rt = ((Xe = f.leaving[f.leaving.length - 1]) == null ? void 0 : Xe.exitId) ?? null,
|
|
450
|
-
|
|
448
|
+
_e(e, () => j(e));
|
|
449
|
+
}, [f.leaving, _e, j]);
|
|
450
|
+
const It = x ? f.leaving : [], Rt = ((Xe = f.leaving[f.leaving.length - 1]) == null ? void 0 : Xe.exitId) ?? null, De = m(f.leaving);
|
|
451
|
+
De.current = f.leaving;
|
|
451
452
|
const St = B(
|
|
452
453
|
(e) => {
|
|
453
454
|
if (!e || e.childNodes.length > 0) return;
|
|
454
|
-
const t =
|
|
455
|
+
const t = De.current.find(
|
|
455
456
|
(n) => n.exitId === e.dataset.exitId
|
|
456
457
|
);
|
|
457
458
|
if (t) {
|
|
458
|
-
if (!
|
|
459
|
-
|
|
459
|
+
if (!xn(e)) {
|
|
460
|
+
j(t.exitId);
|
|
460
461
|
return;
|
|
461
462
|
}
|
|
462
463
|
e.setAttribute("inert", ""), e.append(...t.nodes);
|
|
@@ -464,21 +465,21 @@ const Rn = Vt(
|
|
|
464
465
|
n.scrollTop = s, n.scrollLeft = r;
|
|
465
466
|
}
|
|
466
467
|
},
|
|
467
|
-
[
|
|
468
|
+
[j]
|
|
468
469
|
);
|
|
469
470
|
A(() => {
|
|
470
471
|
var t, n;
|
|
471
472
|
if (!f.focusLost || !y) return;
|
|
472
473
|
const e = document.activeElement;
|
|
473
|
-
e && e !== document.body || (n = (t =
|
|
474
|
+
e && e !== document.body || (n = (t = T.current) == null ? void 0 : t.querySelector(
|
|
474
475
|
`[data-tool-id="${CSS.escape(y)}"]`
|
|
475
476
|
)) == null || n.focus();
|
|
476
477
|
}, [f.serial]);
|
|
477
|
-
const [
|
|
478
|
+
const [Et, Pe] = I([]), Ve = m(a);
|
|
478
479
|
ae(() => {
|
|
479
|
-
const e =
|
|
480
|
+
const e = Ve.current, t = new Set(a.map((s) => s.id)), n = e.filter((s) => !t.has(s.id));
|
|
480
481
|
if (n.length > 0) {
|
|
481
|
-
|
|
482
|
+
Pe((s) => {
|
|
482
483
|
const r = new Set(s.map((c) => c.id));
|
|
483
484
|
return [
|
|
484
485
|
...s,
|
|
@@ -487,14 +488,14 @@ const Rn = Vt(
|
|
|
487
488
|
});
|
|
488
489
|
for (const s of n)
|
|
489
490
|
ue.leave(s.id, () => {
|
|
490
|
-
|
|
491
|
+
Pe(
|
|
491
492
|
(r) => r.filter((c) => c.id !== s.id)
|
|
492
493
|
);
|
|
493
494
|
});
|
|
494
495
|
}
|
|
495
|
-
|
|
496
|
+
Ve.current = a;
|
|
496
497
|
}, [a, ue]);
|
|
497
|
-
const [
|
|
498
|
+
const [Tt, At] = I(""), pe = m(!1), Oe = B(
|
|
498
499
|
(e, t) => {
|
|
499
500
|
if (!Z || !b) return;
|
|
500
501
|
const n = Math.max(
|
|
@@ -518,7 +519,7 @@ const Rn = Vt(
|
|
|
518
519
|
), Be = a[Ie], q = N >= 0 ? N : Be && !$(Be) ? Ie : mt, kt = B(
|
|
519
520
|
(e, t) => {
|
|
520
521
|
const n = a.find((s) => s.id === e);
|
|
521
|
-
!n || n.disabled || (
|
|
522
|
+
!n || n.disabled || (P.current = t, g(h === e ? null : e));
|
|
522
523
|
},
|
|
523
524
|
[a, h, g]
|
|
524
525
|
), Lt = B(
|
|
@@ -535,30 +536,30 @@ const Rn = Vt(
|
|
|
535
536
|
$(a[r]) || (e.preventDefault(), ie(r), (O = oe.current[r]) == null || O.focus());
|
|
536
537
|
},
|
|
537
538
|
[a, q]
|
|
538
|
-
),
|
|
539
|
+
), v = jt(), Nt = qt(dn), E = v ? v.phone : Nt, ve = (v == null ? void 0 : v.sharedWidth) ?? null, J = v == null ? void 0 : v.minMainWidth, [Fe, Me] = I(!1), ee = m(!1);
|
|
539
540
|
ee.current = Fe;
|
|
540
|
-
const C = Y === "overlay" || Fe, [te,
|
|
541
|
+
const C = Y === "overlay" || Fe, [te, je] = I(null), qe = m(void 0), He = m(null);
|
|
541
542
|
A(() => {
|
|
542
543
|
var n;
|
|
543
544
|
const e = qe.current;
|
|
544
|
-
if (qe.current = h, !
|
|
545
|
-
te !== null &&
|
|
545
|
+
if (qe.current = h, !E || h === null) {
|
|
546
|
+
te !== null && je(null);
|
|
546
547
|
return;
|
|
547
548
|
}
|
|
548
549
|
if (te === h) return;
|
|
549
550
|
if (e !== void 0 && h !== e) {
|
|
550
|
-
|
|
551
|
+
He.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, je(h);
|
|
551
552
|
return;
|
|
552
553
|
}
|
|
553
|
-
const t = (n =
|
|
554
|
-
g(null), t && (
|
|
555
|
-
}, [
|
|
556
|
-
const me =
|
|
554
|
+
const t = (n = T.current) == null ? void 0 : n.contains(document.activeElement);
|
|
555
|
+
g(null), t && (v == null || v.focusMain());
|
|
556
|
+
}, [E, h, te, g, v]);
|
|
557
|
+
const me = E && o !== null && te === o.id;
|
|
557
558
|
ae(() => {
|
|
558
|
-
const e =
|
|
559
|
+
const e = T.current;
|
|
559
560
|
if (!e) return;
|
|
560
561
|
const t = (n) => {
|
|
561
|
-
if (n.key !== "Escape" || N < 0 || n.target instanceof Element && n.target.closest(`[${
|
|
562
|
+
if (n.key !== "Escape" || N < 0 || n.target instanceof Element && n.target.closest(`[${Kt}]`))
|
|
562
563
|
return;
|
|
563
564
|
n.preventDefault();
|
|
564
565
|
const s = N;
|
|
@@ -569,90 +570,90 @@ const Rn = Vt(
|
|
|
569
570
|
};
|
|
570
571
|
return e.addEventListener("keydown", t), () => e.removeEventListener("keydown", t);
|
|
571
572
|
}, [N, g]), ae(() => {
|
|
572
|
-
if (!C || !o ||
|
|
573
|
+
if (!C || !o || E) return;
|
|
573
574
|
const e = (t) => {
|
|
574
575
|
t.key !== "Escape" || t.defaultPrevented || (t.preventDefault(), g(null));
|
|
575
576
|
};
|
|
576
577
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
577
|
-
}, [C, o,
|
|
578
|
+
}, [C, o, E, g]), A(() => {
|
|
578
579
|
var e;
|
|
579
|
-
o &&
|
|
580
|
+
o && P.current && ((e = L.current) == null || e.focus()), P.current = !1;
|
|
580
581
|
}, [o]);
|
|
581
|
-
const
|
|
582
|
-
edge:
|
|
582
|
+
const Ke = u === "end" || C ? "inline-start" : "inline-end", { separatorProps: $e, isResizing: ne, isResized: Ue } = Yt({
|
|
583
|
+
edge: Ke,
|
|
583
584
|
targetRef: L,
|
|
584
585
|
cssProperty: nt,
|
|
585
|
-
minSize:
|
|
586
|
-
maxSize:
|
|
587
|
-
defaultSize:
|
|
588
|
-
disabled: !
|
|
586
|
+
minSize: rn,
|
|
587
|
+
maxSize: on,
|
|
588
|
+
defaultSize: ln,
|
|
589
|
+
disabled: !p,
|
|
589
590
|
// A width the user cannot change or reset is a trap: the controlled
|
|
590
591
|
// value applies only while the handle is on.
|
|
591
|
-
size:
|
|
592
|
+
size: p ? lt : void 0,
|
|
592
593
|
onResize: dt
|
|
593
594
|
}), ge = $e["aria-valuenow"];
|
|
594
595
|
A(() => {
|
|
595
596
|
var e;
|
|
596
|
-
!
|
|
597
|
+
!p || !Ue || !o || (e = L.current) == null || e.style.setProperty(
|
|
597
598
|
nt,
|
|
598
599
|
`${ge}px`
|
|
599
600
|
);
|
|
600
|
-
}, [o,
|
|
601
|
-
const [
|
|
601
|
+
}, [o, p, Ue, ge]);
|
|
602
|
+
const [zt, Ct] = I(null), We = !!v && !E && J !== void 0;
|
|
602
603
|
A(() => {
|
|
603
604
|
const e = L.current;
|
|
604
605
|
if (!e || !o || !We || typeof ResizeObserver > "u") return;
|
|
605
606
|
const t = new ResizeObserver(() => {
|
|
606
607
|
const n = e.offsetWidth;
|
|
607
|
-
|
|
608
|
+
Ct((s) => s === n ? s : n);
|
|
608
609
|
});
|
|
609
610
|
return t.observe(e), () => t.disconnect();
|
|
610
611
|
}, [o, We]), A(() => {
|
|
611
612
|
var r;
|
|
612
|
-
if (!
|
|
613
|
-
ee.current &&
|
|
613
|
+
if (!v || E || J === void 0) {
|
|
614
|
+
ee.current && Me(!1);
|
|
614
615
|
return;
|
|
615
616
|
}
|
|
616
617
|
if (ne) return;
|
|
617
618
|
const e = L.current;
|
|
618
619
|
if (!o || !e) return;
|
|
619
|
-
const t = ((r = Ae.current) == null ? void 0 : r.getBoundingClientRect().width) ?? 0, n = ve === null ? null : ve - t - e.offsetWidth, s =
|
|
620
|
+
const t = ((r = Ae.current) == null ? void 0 : r.getBoundingClientRect().width) ?? 0, n = ve === null ? null : ve - t - e.offsetWidth, s = un(
|
|
620
621
|
n,
|
|
621
|
-
|
|
622
|
+
J,
|
|
622
623
|
ee.current
|
|
623
624
|
);
|
|
624
|
-
s !== ee.current &&
|
|
625
|
+
s !== ee.current && Me(s);
|
|
625
626
|
}, [
|
|
626
|
-
|
|
627
|
-
|
|
627
|
+
v,
|
|
628
|
+
E,
|
|
628
629
|
ve,
|
|
629
|
-
|
|
630
|
+
J,
|
|
630
631
|
o,
|
|
631
632
|
ge,
|
|
632
633
|
ne,
|
|
633
|
-
|
|
634
|
+
zt
|
|
634
635
|
]);
|
|
635
636
|
const he = m(h);
|
|
636
637
|
he.current = h;
|
|
637
638
|
const Ye = m("docked");
|
|
638
639
|
Ye.current = me ? "full-screen" : C ? "overlay" : "docked";
|
|
639
|
-
const be =
|
|
640
|
+
const be = H(
|
|
640
641
|
() => ({
|
|
641
642
|
getActiveToolId: () => he.current,
|
|
642
643
|
getPanelMode: () => Ye.current,
|
|
643
644
|
setActiveTool: (e) => {
|
|
644
645
|
var t;
|
|
645
|
-
e !== null && ((t = a.find((n) => n.id === e)) != null && t.disabled) || (
|
|
646
|
+
e !== null && ((t = a.find((n) => n.id === e)) != null && t.disabled) || (P.current = !1, g(e));
|
|
646
647
|
},
|
|
647
648
|
open: (e) => {
|
|
648
649
|
const t = a.find((n) => n.id === e);
|
|
649
|
-
!t || t.disabled || (
|
|
650
|
+
!t || t.disabled || (P.current = !1, g(e));
|
|
650
651
|
},
|
|
651
652
|
close: () => {
|
|
652
653
|
const e = he.current;
|
|
653
|
-
|
|
654
|
+
P.current = !1, g(null), e != null && requestAnimationFrame(() => {
|
|
654
655
|
var t, n;
|
|
655
|
-
(n = (t =
|
|
656
|
+
(n = (t = T.current) == null ? void 0 : t.querySelector(
|
|
656
657
|
`[data-tool-id="${CSS.escape(e)}"]`
|
|
657
658
|
)) == null || n.focus();
|
|
658
659
|
});
|
|
@@ -660,23 +661,23 @@ const Rn = Vt(
|
|
|
660
661
|
}),
|
|
661
662
|
[a, g]
|
|
662
663
|
);
|
|
663
|
-
|
|
664
|
-
const
|
|
664
|
+
Bt(pt, () => be, [be]), en(ut, be, i);
|
|
665
|
+
const _t = R("toolRail.badgeCountOverflow", {
|
|
665
666
|
defaultValue: "99+"
|
|
666
667
|
}), Ze = F ?? R("toolRail.railLabel", { defaultValue: "Tools" });
|
|
667
668
|
return /* @__PURE__ */ w(
|
|
668
669
|
"aside",
|
|
669
670
|
{
|
|
670
|
-
ref:
|
|
671
|
+
ref: T,
|
|
671
672
|
"aria-label": Ze,
|
|
672
673
|
"data-component": ct,
|
|
673
674
|
"data-component-id": i,
|
|
674
675
|
"data-side": u,
|
|
675
676
|
"data-panel-mode": me ? "full-screen" : C ? "overlay" : "docked",
|
|
676
|
-
className: [
|
|
677
|
+
className: [fn({ side: u }), ft].filter(Boolean).join(" "),
|
|
677
678
|
children: [
|
|
678
|
-
Se ? /* @__PURE__ */ d("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children:
|
|
679
|
-
x && !
|
|
679
|
+
Se ? /* @__PURE__ */ d("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: Tt }) : null,
|
|
680
|
+
x && !E ? /* @__PURE__ */ w(
|
|
680
681
|
"section",
|
|
681
682
|
{
|
|
682
683
|
ref: xt,
|
|
@@ -692,17 +693,17 @@ const Rn = Vt(
|
|
|
692
693
|
"data-resizing": ne ? "" : void 0,
|
|
693
694
|
className: [
|
|
694
695
|
// Overlaid, it slides in from the strip on its inline end.
|
|
695
|
-
|
|
696
|
-
|
|
696
|
+
vn({ side: C ? "end" : u }),
|
|
697
|
+
mn({
|
|
697
698
|
mode: C ? "overlay" : "docked",
|
|
698
699
|
side: u
|
|
699
700
|
}),
|
|
700
701
|
"ds:focus-visible:outline-none"
|
|
701
702
|
].filter(Boolean).join(" "),
|
|
702
703
|
children: [
|
|
703
|
-
/* @__PURE__ */ w(
|
|
704
|
+
/* @__PURE__ */ w(Ht, { container: bt, children: [
|
|
704
705
|
we ? we(x, { isActive: !z }) : null,
|
|
705
|
-
/* @__PURE__ */ w("div", { ref: ze, className:
|
|
706
|
+
/* @__PURE__ */ w("div", { ref: ze, className: hn, children: [
|
|
706
707
|
It.map((e) => /* @__PURE__ */ d(
|
|
707
708
|
"div",
|
|
708
709
|
{
|
|
@@ -711,10 +712,10 @@ const Rn = Vt(
|
|
|
711
712
|
"data-exit-id": e.exitId,
|
|
712
713
|
"data-tool-rail-body": e.toolId,
|
|
713
714
|
"data-tool-rail-layer": "leaving",
|
|
714
|
-
"data-presence":
|
|
715
|
+
"data-presence": Q && e.exitId === Rt ? "present" : "leaving",
|
|
715
716
|
className: rt({ layer: "leaving" }),
|
|
716
717
|
onTransitionEnd: (t) => {
|
|
717
|
-
t.target === t.currentTarget &&
|
|
718
|
+
t.target === t.currentTarget && j(e.exitId);
|
|
718
719
|
}
|
|
719
720
|
},
|
|
720
721
|
e.exitId
|
|
@@ -724,7 +725,7 @@ const Rn = Vt(
|
|
|
724
725
|
{
|
|
725
726
|
"data-tool-rail-body": x.id,
|
|
726
727
|
"data-tool-rail-layer": "live",
|
|
727
|
-
"data-presence":
|
|
728
|
+
"data-presence": Q ? "entering" : "present",
|
|
728
729
|
className: rt({ layer: "live" }),
|
|
729
730
|
children: [
|
|
730
731
|
x.header ? /* @__PURE__ */ d("div", { className: "ds:shrink-0", children: x.header }) : null,
|
|
@@ -748,7 +749,7 @@ const Rn = Vt(
|
|
|
748
749
|
)
|
|
749
750
|
] })
|
|
750
751
|
] }),
|
|
751
|
-
|
|
752
|
+
p ? /* @__PURE__ */ d(
|
|
752
753
|
"div",
|
|
753
754
|
{
|
|
754
755
|
...$e,
|
|
@@ -756,47 +757,47 @@ const Rn = Vt(
|
|
|
756
757
|
defaultValue: "Resize tool panel"
|
|
757
758
|
}),
|
|
758
759
|
"data-resizing": ne ? "" : void 0,
|
|
759
|
-
className:
|
|
760
|
+
className: In({ edge: Ke })
|
|
760
761
|
}
|
|
761
762
|
) : null
|
|
762
763
|
]
|
|
763
764
|
}
|
|
764
765
|
) : null,
|
|
765
766
|
me && o ? /* @__PURE__ */ d(
|
|
766
|
-
|
|
767
|
+
K.Root,
|
|
767
768
|
{
|
|
768
769
|
open: !0,
|
|
769
770
|
onOpenChange: (e) => {
|
|
770
771
|
e || g(null);
|
|
771
772
|
},
|
|
772
|
-
children: /* @__PURE__ */ d(
|
|
773
|
-
|
|
773
|
+
children: /* @__PURE__ */ d(K.Portal, { children: /* @__PURE__ */ w(
|
|
774
|
+
K.Content,
|
|
774
775
|
{
|
|
775
776
|
"aria-describedby": void 0,
|
|
776
777
|
"data-component": "tool-rail-panel",
|
|
777
778
|
"data-active-tool": o.id,
|
|
778
|
-
className:
|
|
779
|
+
className: gn,
|
|
779
780
|
onCloseAutoFocus: (e) => {
|
|
780
|
-
const t =
|
|
781
|
+
const t = He.current;
|
|
781
782
|
t != null && t.isConnected && (e.preventDefault(), t.focus());
|
|
782
783
|
},
|
|
783
784
|
children: [
|
|
784
785
|
/* @__PURE__ */ w("div", { className: "ds:flex ds:shrink-0 ds:justify-end ds:p-[var(--spacing-xs)]", children: [
|
|
785
|
-
/* @__PURE__ */ d(
|
|
786
|
+
/* @__PURE__ */ d(K.Title, { className: "ds:sr-only", children: R("toolRail.panelLabel", {
|
|
786
787
|
tool: o.label,
|
|
787
788
|
defaultValue: "{{tool}} panel"
|
|
788
789
|
}) }),
|
|
789
|
-
/* @__PURE__ */ d(
|
|
790
|
+
/* @__PURE__ */ d(K.Close, { asChild: !0, children: /* @__PURE__ */ d(
|
|
790
791
|
xe,
|
|
791
792
|
{
|
|
792
|
-
icon: /* @__PURE__ */ d(
|
|
793
|
+
icon: /* @__PURE__ */ d(tn, { "aria-hidden": "true" }),
|
|
793
794
|
intent: "ghost",
|
|
794
795
|
size: "lg",
|
|
795
796
|
"aria-label": R("common.close", { defaultValue: "Close" })
|
|
796
797
|
}
|
|
797
798
|
) })
|
|
798
799
|
] }),
|
|
799
|
-
/* @__PURE__ */ w(
|
|
800
|
+
/* @__PURE__ */ w($t, { actions: null, children: [
|
|
800
801
|
o.header ? /* @__PURE__ */ d("div", { className: "ds:shrink-0", children: o.header }) : null,
|
|
801
802
|
o.fill ? /* @__PURE__ */ d("div", { "data-tool-fill": "", className: at, children: o.panel }) : /* @__PURE__ */ d(
|
|
802
803
|
et,
|
|
@@ -813,14 +814,14 @@ const Rn = Vt(
|
|
|
813
814
|
) })
|
|
814
815
|
}
|
|
815
816
|
) : null,
|
|
816
|
-
/* @__PURE__ */ d(
|
|
817
|
+
/* @__PURE__ */ d(Ut, { children: /* @__PURE__ */ w(
|
|
817
818
|
"div",
|
|
818
819
|
{
|
|
819
820
|
ref: Ae,
|
|
820
821
|
role: "toolbar",
|
|
821
822
|
"aria-orientation": "vertical",
|
|
822
823
|
"aria-label": Ze,
|
|
823
|
-
className:
|
|
824
|
+
className: pn(),
|
|
824
825
|
onKeyDown: Lt,
|
|
825
826
|
children: [
|
|
826
827
|
a.map((e, t) => {
|
|
@@ -828,8 +829,8 @@ const Rn = Vt(
|
|
|
828
829
|
tool: e.label,
|
|
829
830
|
count: e.badgeCount,
|
|
830
831
|
defaultValue: "{{tool}}, {{count}} updates"
|
|
831
|
-
}) : e.label, c = Se && !!e.reorderable && !e.disabled, O = c ? `${
|
|
832
|
-
return /* @__PURE__ */ w(
|
|
832
|
+
}) : e.label, c = Se && !!e.reorderable && !e.disabled, O = c ? `${Ee}-${e.id}` : void 0, _ = e.disabled ? e.disabledReason : void 0, ye = _ ? `${Ee}-${e.id}-reason` : void 0;
|
|
833
|
+
return /* @__PURE__ */ w(Ft, { children: [
|
|
833
834
|
gt && t === Re ? /* @__PURE__ */ d(
|
|
834
835
|
"div",
|
|
835
836
|
{
|
|
@@ -843,15 +844,15 @@ const Rn = Vt(
|
|
|
843
844
|
{
|
|
844
845
|
className: [
|
|
845
846
|
ot({
|
|
846
|
-
dragging:
|
|
847
|
-
dropTarget:
|
|
847
|
+
dragging: M === t,
|
|
848
|
+
dropTarget: Te === t && M !== t,
|
|
848
849
|
reorderable: c
|
|
849
850
|
}),
|
|
850
851
|
it,
|
|
851
|
-
|
|
852
|
+
Gt
|
|
852
853
|
].filter(Boolean).join(" "),
|
|
853
854
|
"data-reflow-id": e.id,
|
|
854
|
-
"data-dragging":
|
|
855
|
+
"data-dragging": M === t ? "" : void 0,
|
|
855
856
|
draggable: c || void 0,
|
|
856
857
|
onDragStart: c ? (l) => {
|
|
857
858
|
ce(t), l.dataTransfer.effectAllowed = "move", l.dataTransfer.setData(
|
|
@@ -860,12 +861,12 @@ const Rn = Vt(
|
|
|
860
861
|
);
|
|
861
862
|
} : void 0,
|
|
862
863
|
onDragOver: c ? (l) => {
|
|
863
|
-
|
|
864
|
+
M !== null && (l.preventDefault(), l.dataTransfer.dropEffect = "move", Te !== t && G(t));
|
|
864
865
|
} : void 0,
|
|
865
866
|
onDragLeave: c ? () => G((l) => l === t ? null : l) : void 0,
|
|
866
867
|
onDrop: c ? (l) => {
|
|
867
868
|
l.preventDefault();
|
|
868
|
-
const S =
|
|
869
|
+
const S = M;
|
|
869
870
|
G(null), ce(null), !(S === null || S === t) && Oe(S, t);
|
|
870
871
|
} : void 0,
|
|
871
872
|
onDragEnd: c ? () => {
|
|
@@ -879,13 +880,13 @@ const Rn = Vt(
|
|
|
879
880
|
oe.current[t] = l;
|
|
880
881
|
},
|
|
881
882
|
icon: e.icon,
|
|
882
|
-
tooltip:
|
|
883
|
+
tooltip: _ ?? e.label,
|
|
883
884
|
"aria-label": r,
|
|
884
885
|
intent: "ghost",
|
|
885
886
|
size: "sm",
|
|
886
|
-
disabled: e.disabled && !
|
|
887
|
-
"aria-disabled":
|
|
888
|
-
className:
|
|
887
|
+
disabled: e.disabled && !_,
|
|
888
|
+
"aria-disabled": _ ? !0 : void 0,
|
|
889
|
+
className: _ ? "ds:aria-disabled:focus-visible:opacity-100 ds:aria-disabled:focus-visible:*:opacity-50" : void 0,
|
|
889
890
|
"aria-pressed": n,
|
|
890
891
|
"aria-expanded": n,
|
|
891
892
|
"data-active": n ? e.id : void 0,
|
|
@@ -897,7 +898,7 @@ const Rn = Vt(
|
|
|
897
898
|
$(e) || ie(t);
|
|
898
899
|
},
|
|
899
900
|
onClick: (l) => {
|
|
900
|
-
if (
|
|
901
|
+
if (_) {
|
|
901
902
|
l.preventDefault();
|
|
902
903
|
return;
|
|
903
904
|
}
|
|
@@ -915,12 +916,12 @@ const Rn = Vt(
|
|
|
915
916
|
const Dt = Math.max(
|
|
916
917
|
b.first,
|
|
917
918
|
Math.min(b.last, S)
|
|
918
|
-
),
|
|
919
|
+
), Pt = e.id;
|
|
919
920
|
Oe(t, Dt), requestAnimationFrame(() => {
|
|
920
|
-
var
|
|
921
|
-
(
|
|
922
|
-
`[data-tool-id="${CSS.escape(
|
|
923
|
-
)) == null ||
|
|
921
|
+
var Qe, Je;
|
|
922
|
+
(Je = (Qe = T.current) == null ? void 0 : Qe.querySelector(
|
|
923
|
+
`[data-tool-id="${CSS.escape(Pt)}"]`
|
|
924
|
+
)) == null || Je.focus();
|
|
924
925
|
});
|
|
925
926
|
}
|
|
926
927
|
}
|
|
@@ -930,9 +931,9 @@ const Rn = Vt(
|
|
|
930
931
|
}
|
|
931
932
|
}
|
|
932
933
|
),
|
|
933
|
-
s ? /* @__PURE__ */ d("span", { "aria-hidden": "true", className:
|
|
934
|
+
s ? /* @__PURE__ */ d("span", { "aria-hidden": "true", className: Rn(), children: En(
|
|
934
935
|
e.badgeCount,
|
|
935
|
-
|
|
936
|
+
_t
|
|
936
937
|
) }) : null,
|
|
937
938
|
re == null ? void 0 : re(e, {
|
|
938
939
|
index: t,
|
|
@@ -942,7 +943,7 @@ const Rn = Vt(
|
|
|
942
943
|
ye ? (
|
|
943
944
|
/* Hidden: it is the icon's description, not a second
|
|
944
945
|
copy of the reason to read in the toolbar. */
|
|
945
|
-
/* @__PURE__ */ d("span", { id: ye, hidden: !0, children:
|
|
946
|
+
/* @__PURE__ */ d("span", { id: ye, hidden: !0, children: _ })
|
|
946
947
|
) : null,
|
|
947
948
|
O ? /* @__PURE__ */ d("span", { id: O, className: "ds:sr-only", children: R("toolRail.reorderInstructions", {
|
|
948
949
|
tool: e.label,
|
|
@@ -953,7 +954,7 @@ const Rn = Vt(
|
|
|
953
954
|
)
|
|
954
955
|
] }, e.id);
|
|
955
956
|
}),
|
|
956
|
-
|
|
957
|
+
Et.map(
|
|
957
958
|
(e) => ue.isLeaving(e.id) ? /* @__PURE__ */ d(
|
|
958
959
|
"div",
|
|
959
960
|
{
|
|
@@ -964,7 +965,7 @@ const Rn = Vt(
|
|
|
964
965
|
reorderable: !1
|
|
965
966
|
}),
|
|
966
967
|
it,
|
|
967
|
-
|
|
968
|
+
Sn
|
|
968
969
|
].filter(Boolean).join(" "),
|
|
969
970
|
"aria-hidden": "true",
|
|
970
971
|
children: /* @__PURE__ */ d(
|
|
@@ -989,9 +990,9 @@ const Rn = Vt(
|
|
|
989
990
|
);
|
|
990
991
|
}
|
|
991
992
|
);
|
|
992
|
-
|
|
993
|
+
Tn.displayName = "ToolRail";
|
|
993
994
|
export {
|
|
994
|
-
|
|
995
|
-
|
|
995
|
+
Tn as T,
|
|
996
|
+
nn as t
|
|
996
997
|
};
|
|
997
|
-
//# sourceMappingURL=tool-rail-
|
|
998
|
+
//# sourceMappingURL=tool-rail-C_Ay0Gxi.js.map
|