@slotted/react 0.1.0-beta.13 → 0.1.0-beta.14

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,6 +1,6 @@
1
1
  import { r as e } from "./i18n-D7xXDd8-.js";
2
2
  /* empty css */
3
- import { c as t, d as n, l as r, o as i, r as a, u as o } from "./drawer-CIsrtQcM.js";
3
+ import { c as t, d as n, l as r, o as i, r as a, u as o } from "./drawer-Pk4tqPUV.js";
4
4
  import { t as s } from "./spinner-ring-DyfaYloA.js";
5
5
  import { keyedProps as c, withSelectorKey as l } from "@slotted/core/selector-key";
6
6
  import { createRovingTabindex as u } from "@slotted/core/focus";
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./action-sheet-CYwRLOKq.js";
1
+ import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./action-sheet-BAoaxbmI.js";
2
2
  export { r as ActionSheet, p as ActionSheetCancel, c as ActionSheetContent, s as ActionSheetDefaultsProvider, d as ActionSheetGroup, a as ActionSheetGroupLabel, e as ActionSheetHeader, l as ActionSheetItem, f as ActionSheetList, t as ActionSheetMessage, o as ActionSheetSeparator, m as ActionSheetTitle, n as ActionSheetTrigger, u as useActionSheet, i as useActionSheetDefaults };
@@ -1,7 +1,7 @@
1
1
  import { r as e } from "./i18n-D7xXDd8-.js";
2
2
  import { n as t, t as n } from "./icon-D04-_QFA.js";
3
3
  import { _ as r, c as i, n as a, t as o } from "./menu-parts-BDdCTmko.js";
4
- import { d as s, o as c, u as l } from "./drawer-CIsrtQcM.js";
4
+ import { d as s, o as c, u as l } from "./drawer-Pk4tqPUV.js";
5
5
  import { n as u } from "./icon-button-DbSZKGT4.js";
6
6
  import { t as d } from "./checkbox-Hq1PXk04.js";
7
7
  import { t as f } from "./text-field-CHYoral_.js";
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, r, t as i } from "./column-manager-CIf2SAzx.js";
1
+ import { a as e, i as t, n, r, t as i } from "./column-manager-DMaWNyXs.js";
2
2
  export { i as ColumnManager, t as ColumnManagerProvider, n as ColumnManagerRoot, r as ColumnManagerTrigger, e as useColumnManagerDefaults };
@@ -4,16 +4,16 @@ import { keyedProps as r } from "@slotted/core/selector-key";
4
4
  import { createFocusScope as i } from "@slotted/core/focus";
5
5
  import { createControllable as a } from "@slotted/core/state";
6
6
  import { createContext as o, useCallback as s, useContext as c, useEffect as l, useId as u, useImperativeHandle as d, useLayoutEffect as f, useMemo as p, useRef as m, useState as h, useSyncExternalStore as g } from "react";
7
- import { Fragment as ee, jsx as _, jsxs as te } from "react/jsx-runtime";
8
- import { createPresence as v } from "@slotted/core/presence";
9
- import { drawerMessages as y } from "@slotted/core/i18n";
10
- import { createPortalRoot as b } from "@slotted/core/portal";
11
- import { createDismissableLayer as x } from "@slotted/core/dismissable-layer";
12
- import { createPortal as S, flushSync as ne } from "react-dom";
13
- import { EXTENT_LARGE_STEP_PX as C, EXTENT_STEP_PX as w, SHEET_FLING_PX_PER_S as re, addExtentSample as T, anchorsAtStart as E, attachSheetDrag as D, createSheetMotion as O, dampenExtent as k, extentAtPoint as ie, extentBounds as A, extentVelocity as j, holdResizeGesture as ae, isInlineSide as oe, measureSheetStops as M, sameStop as N, settleExtent as se, sheetMotionHolds as P, stepAmountFromPixels as ce, stepExtent as F, stopAsExtent as I } from "@slotted/core/extent";
14
- import { clamp as L, observeKeyboardInset as R } from "@slotted/core/measure";
7
+ import { Fragment as ee, jsx as _, jsxs as v } from "react/jsx-runtime";
8
+ import { createPresence as y } from "@slotted/core/presence";
9
+ import { drawerMessages as b } from "@slotted/core/i18n";
10
+ import { createPortalRoot as x } from "@slotted/core/portal";
11
+ import { createDismissableLayer as S } from "@slotted/core/dismissable-layer";
12
+ import { createPortal as C, flushSync as te } from "react-dom";
13
+ import { EXTENT_LARGE_STEP_PX as w, EXTENT_STEP_PX as T, SHEET_FLING_PX_PER_S as ne, addExtentSample as E, anchorsAtStart as D, attachSheetDrag as re, createSheetMotion as O, dampenExtent as k, extentAtPoint as ie, extentBounds as ae, extentVelocity as oe, holdResizeGesture as se, isInlineSide as ce, measureSheetStops as A, sameStop as j, settleExtent as le, sheetMotionHolds as M, stepAmountFromPixels as ue, stepExtent as N, stopAsExtent as P } from "@slotted/core/extent";
14
+ import { clamp as F, observeKeyboardInset as I } from "@slotted/core/measure";
15
15
  //#region src/drawer/drawer-defaults.tsx
16
- var z = o({
16
+ var L = o({
17
17
  back: "close",
18
18
  escape: "close",
19
19
  modal: !0,
@@ -24,12 +24,12 @@ var z = o({
24
24
  size: void 0,
25
25
  drag: "panel"
26
26
  });
27
- function B() {
28
- return c(z);
27
+ function R() {
28
+ return c(L);
29
29
  }
30
- function V({ children: e, ...t }) {
31
- let n = B();
32
- return /* @__PURE__ */ _(z.Provider, {
30
+ function z({ children: e, ...t }) {
31
+ let n = R();
32
+ return /* @__PURE__ */ _(L.Provider, {
33
33
  value: {
34
34
  back: t.back ?? n.back,
35
35
  escape: t.escape ?? n.escape,
@@ -46,43 +46,43 @@ function V({ children: e, ...t }) {
46
46
  }
47
47
  //#endregion
48
48
  //#region src/drawer/drawer.tsx
49
- var H = o(void 0);
50
- function U() {
51
- let e = c(H);
49
+ var de = o(void 0);
50
+ function B() {
51
+ let e = c(de);
52
52
  if (e === void 0) throw Error("Every drawer part must be rendered inside Drawer.");
53
53
  return e;
54
54
  }
55
- var le = [];
56
- function W({ children: t, back: n, container: r, defaultExtent: i, defaultOpen: o, drag: c, escape: f, extent: g, finalFocus: ee, initialFocus: te, loading: b, maxExtent: x, messages: S, minExtent: ne, modal: C, mode: w, mount: re, onExtentChange: T, onOpenChange: E, onOpenChangeComplete: D, open: O, outsidePress: k, ref: ie, scrimFrom: j, side: ae, size: oe, snapPoints: M }) {
57
- let N = B(), se = e(y, S), P = u(), [ce, F] = h(o ?? !1), I = O ?? ce, [R, z] = h(i), V = g ?? R, [U, W] = h(!1), [ue, G] = h(null), [de, fe] = h(void 0), K = w ?? N.mode, pe = K === "inline" ? !1 : C ?? N.modal, q = re ?? N.mount, J = ae ?? N.side, me = oe ?? N.size ?? (J === "top" || J === "bottom" ? "content" : "md"), he = K === "inline" ? "none" : f ?? N.escape, ge = K === "inline" ? "none" : n ?? N.back, _e = K === "inline" ? "none" : k ?? N.outsidePress, Y = M ?? le, X = p(() => {
58
- let e = A(Y, ne ?? .2, x ?? 1);
59
- return me === "content" ? {
55
+ var V = [];
56
+ function H({ children: t, back: n, container: r, defaultExtent: i, defaultOpen: o, drag: c, escape: f, extent: g, finalFocus: ee, initialFocus: v, loading: x, maxExtent: S, messages: C, minExtent: te, modal: w, mode: T, mount: ne, onExtentChange: E, onOpenChange: D, onOpenChangeComplete: re, open: O, outsidePress: k, ref: ie, scrimFrom: oe, side: se, size: ce, snapPoints: A }) {
57
+ let j = R(), le = e(b, C), M = u(), [ue, N] = h(o ?? !1), P = O ?? ue, [I, L] = h(i), z = g ?? I, [B, H] = h(!1), [U, W] = h(null), [fe, pe] = h(void 0), G = T ?? j.mode, me = G === "inline" ? !1 : w ?? j.modal, K = ne ?? j.mount, q = se ?? j.side, J = ce ?? j.size ?? (q === "top" || q === "bottom" ? "content" : "md"), he = G === "inline" ? "none" : f ?? j.escape, ge = G === "inline" ? "none" : n ?? j.back, _e = G === "inline" ? "none" : k ?? j.outsidePress, Y = A ?? V, X = p(() => {
58
+ let e = ae(Y, te ?? .2, S ?? 1);
59
+ return J === "content" ? {
60
60
  ...e,
61
- max: Math.max(e.max, x ?? 1)
61
+ max: Math.max(e.max, S ?? 1)
62
62
  } : e;
63
63
  }, [
64
- x,
65
- ne,
66
- me,
64
+ S,
65
+ te,
66
+ J,
67
67
  Y
68
- ]), [Z, ve] = h(I ? "entering" : "unmounted"), Q = m(null), ye = m(D);
69
- ye.current = D, Q.current === null && (Q.current = v({
68
+ ]), [Z, ve] = h(P ? "entering" : "unmounted"), Q = m(null), ye = m(re);
69
+ ye.current = re, Q.current === null && (Q.current = y({
70
70
  onEnterComplete: () => ye.current?.(!0),
71
71
  onExitComplete: () => ye.current?.(!1),
72
72
  onStatusChange: ve,
73
- present: I,
73
+ present: P,
74
74
  skipInitialAnimation: !1
75
75
  })), l(() => {
76
- Q.current?.sync(I);
77
- }, [I]), l(() => {
78
- I && G(null);
79
- }, [I]), l(() => {
76
+ Q.current?.sync(P);
77
+ }, [P]), l(() => {
78
+ P && W(null);
79
+ }, [P]), l(() => {
80
80
  let e = Q.current;
81
81
  return () => e?.stop();
82
82
  }, []);
83
- let be = m(I);
84
- I && (be.current = !0);
85
- let xe = K === "inline" || q === "eager" ? !0 : q === "lazy" ? be.current : Z !== "unmounted", Se = m({
83
+ let be = m(P);
84
+ P && (be.current = !0);
85
+ let xe = G === "inline" || K === "eager" ? !0 : K === "lazy" ? be.current : Z !== "unmounted", Se = m({
86
86
  layer: null,
87
87
  panel: null,
88
88
  trigger: null
@@ -91,12 +91,12 @@ function W({ children: t, back: n, container: r, defaultExtent: i, defaultOpen:
91
91
  }), []), Oe = s((e) => {
92
92
  Se.current.layer = e, Q.current?.setNode(e);
93
93
  }, []), $ = s((e, t, n, r) => {
94
- if (e === I) return;
94
+ if (e === P) return;
95
95
  let i = !1, o = a({
96
96
  controlled: O,
97
- initial: I,
97
+ initial: P,
98
98
  onRequest: (e) => {
99
- i = e.cancelled, E?.(e.value, {
99
+ i = e.cancelled, D?.(e.value, {
100
100
  get cancelled() {
101
101
  return e.cancelled;
102
102
  },
@@ -109,19 +109,19 @@ function W({ children: t, back: n, container: r, defaultExtent: i, defaultOpen:
109
109
  });
110
110
  }
111
111
  }).request(e, t, r);
112
- i || o && F(e);
112
+ i || o && N(e);
113
113
  }, [
114
- I,
115
- E,
114
+ P,
115
+ D,
116
116
  O
117
117
  ]), ke = s((e, t, n) => {
118
- let r = e === void 0 ? void 0 : L(e, 0, X.max);
119
- if (r === V) return;
118
+ let r = e === void 0 ? void 0 : F(e, 0, X.max);
119
+ if (r === z) return;
120
120
  let i = !1, o = a({
121
121
  controlled: g,
122
- initial: V,
122
+ initial: z,
123
123
  onRequest: (e) => {
124
- i = e.cancelled, T?.(e.value, {
124
+ i = e.cancelled, E?.(e.value, {
125
125
  get cancelled() {
126
126
  return e.cancelled;
127
127
  },
@@ -133,12 +133,12 @@ function W({ children: t, back: n, container: r, defaultExtent: i, defaultOpen:
133
133
  });
134
134
  }
135
135
  }).request(r, t, n);
136
- i || o && z(r);
136
+ i || o && L(r);
137
137
  }, [
138
138
  X.max,
139
- V,
139
+ z,
140
140
  g,
141
- T
141
+ E
142
142
  ]);
143
143
  d(ie, () => ({
144
144
  open: () => $(!0, "programmatic", void 0, void 0),
@@ -152,106 +152,106 @@ function W({ children: t, back: n, container: r, defaultExtent: i, defaultOpen:
152
152
  announce: De,
153
153
  close: (e, t, n) => $(!1, e, t, n),
154
154
  container: r,
155
- descriptionId: Te ? `${P}description` : "",
156
- dragging: U,
157
- drag: c ?? N.drag,
158
- scrimFrom: j ?? 0,
159
- live: ue,
160
- setLive: G,
161
- rest: de,
162
- setRest: fe,
155
+ descriptionId: Te ? `${M}description` : "",
156
+ dragging: B,
157
+ drag: c ?? j.drag,
158
+ scrimFrom: oe ?? 0,
159
+ live: U,
160
+ setLive: W,
161
+ rest: fe,
162
+ setRest: pe,
163
163
  back: ge,
164
164
  escape: he,
165
- extent: V,
165
+ extent: z,
166
166
  finalFocus: ee,
167
- initialFocus: te ?? "first",
168
- loading: b === !0,
167
+ initialFocus: v ?? "first",
168
+ loading: x === !0,
169
169
  defaultExtent: i,
170
170
  maxExtent: X.max,
171
171
  minExtent: X.min,
172
- modal: pe,
173
- mode: K,
172
+ modal: me,
173
+ mode: G,
174
174
  mounted: xe,
175
- mount: q,
175
+ mount: K,
176
176
  nodes: Se.current,
177
- open: I,
177
+ open: P,
178
178
  openWith: (e, t) => $(!0, e, void 0, t),
179
179
  outsidePress: _e,
180
- panelId: `${P}panel`,
180
+ panelId: `${M}panel`,
181
181
  registerLayer: Oe,
182
182
  requestExtent: ke,
183
- setDragging: W,
184
- side: J,
185
- size: me,
183
+ setDragging: H,
184
+ side: q,
185
+ size: J,
186
186
  snapPoints: Y,
187
- t: se,
188
- titleId: Ce ? `${P}title` : "",
189
- triggerId: `${P}trigger`,
190
- visible: K === "inline" ? I : Z === "open",
191
- interactive: K === "inline" ? I : Z === "entering" || Z === "open"
187
+ t: le,
188
+ titleId: Ce ? `${M}title` : "",
189
+ triggerId: `${M}trigger`,
190
+ visible: G === "inline" ? P : Z === "open",
191
+ interactive: G === "inline" ? P : Z === "entering" || Z === "open"
192
192
  }), [
193
193
  De,
194
- P,
194
+ M,
195
195
  X.max,
196
196
  X.min,
197
197
  r,
198
- V,
198
+ z,
199
199
  i,
200
- I,
200
+ P,
201
201
  Te,
202
- N.drag,
202
+ j.drag,
203
203
  c,
204
+ B,
204
205
  U,
205
- ue,
206
- de,
207
- j,
206
+ fe,
207
+ oe,
208
208
  ee,
209
- te,
210
- b,
209
+ v,
210
+ x,
211
211
  xe,
212
212
  Oe,
213
213
  ke,
214
214
  $,
215
215
  ge,
216
216
  he,
217
- pe,
217
+ me,
218
+ G,
218
219
  K,
219
- q,
220
220
  _e,
221
+ q,
221
222
  J,
222
- me,
223
223
  Y,
224
224
  Z,
225
- se,
225
+ le,
226
226
  Ce
227
227
  ]);
228
- return /* @__PURE__ */ _(H.Provider, {
228
+ return /* @__PURE__ */ _(de.Provider, {
229
229
  value: Ae,
230
230
  children: t
231
231
  });
232
232
  }
233
233
  //#endregion
234
234
  //#region src/drawer/drawer-parts.tsx
235
- function ue(e) {
235
+ function U(e) {
236
236
  return e.detail === 0 ? "keyboard" : "pointer";
237
237
  }
238
- var G = typeof document > "u" ? l : f;
239
- function de(e) {
238
+ var W = typeof document > "u" ? l : f;
239
+ function fe(e) {
240
240
  return e !== null && getComputedStyle(e).direction === "rtl";
241
241
  }
242
- function fe(e, t) {
242
+ function pe(e, t) {
243
243
  if (e === null) return null;
244
244
  if (t !== "inline") return e;
245
245
  let n = e.parentElement;
246
- for (; n !== null && K.has(n);) n = n.parentElement;
246
+ for (; n !== null && G.has(n);) n = n.parentElement;
247
247
  return n;
248
248
  }
249
- var K = /* @__PURE__ */ new WeakSet(), pe = () => () => {};
250
- function q() {
251
- return g(pe, () => !0, () => !1);
249
+ var G = /* @__PURE__ */ new WeakSet(), me = () => () => {};
250
+ function K() {
251
+ return g(me, () => !0, () => !1);
252
252
  }
253
- function J({ children: e, className: t, onClick: n, ref: i, render: a, style: o, ...s }) {
254
- let c = U(), l = r({
253
+ function q({ children: e, className: t, onClick: n, ref: i, render: a, style: o, ...s }) {
254
+ let c = B(), l = r({
255
255
  ...s,
256
256
  "aria-controls": c.mounted ? c.panelId : void 0,
257
257
  "aria-expanded": c.open,
@@ -262,7 +262,7 @@ function J({ children: e, className: t, onClick: n, ref: i, render: a, style: o,
262
262
  ...c.open ? { "data-open": "" } : {},
263
263
  id: c.triggerId,
264
264
  onClick: (e) => {
265
- n?.(e), !e.defaultPrevented && (c.open ? c.close(ue(e), void 0, e) : c.openWith(ue(e), e));
265
+ n?.(e), !e.defaultPrevented && (c.open ? c.close(U(e), void 0, e) : c.openWith(U(e), e));
266
266
  },
267
267
  ref: (e) => {
268
268
  c.nodes.trigger = e, typeof i == "function" ? i(e) : i && (i.current = e);
@@ -272,11 +272,11 @@ function J({ children: e, className: t, onClick: n, ref: i, render: a, style: o,
272
272
  });
273
273
  return a === void 0 ? /* @__PURE__ */ _("button", { ...l }) : a(l);
274
274
  }
275
- function me(e) {
275
+ function J(e) {
276
276
  let [t, n] = h(null);
277
- return G(() => {
277
+ return W(() => {
278
278
  if (e.mode === "inline" || !e.mounted) return;
279
- let t = b({
279
+ let t = x({
280
280
  origin: e.nodes.trigger,
281
281
  ...e.container === void 0 ? {} : { container: e.container }
282
282
  });
@@ -292,14 +292,14 @@ function me(e) {
292
292
  }
293
293
  function he(e, t) {
294
294
  let [n, r] = h(void 0), { mode: i, side: a } = e, o = e.live ?? e.extent;
295
- return G(() => {
296
- let e = fe(t, i);
295
+ return W(() => {
296
+ let e = pe(t, i);
297
297
  if (e === null || o === void 0) {
298
298
  r(void 0);
299
299
  return;
300
300
  }
301
301
  let n = () => {
302
- let t = e.getBoundingClientRect(), n = oe(a) ? t.width : t.height;
302
+ let t = e.getBoundingClientRect(), n = ce(a) ? t.width : t.height;
303
303
  n > 0 && r(`${Math.round(o * n)}px`);
304
304
  };
305
305
  if (n(), typeof ResizeObserver > "u") return;
@@ -318,7 +318,7 @@ function ge(e) {
318
318
  }
319
319
  var _e = "var(--slotted-space-12, 4rem)";
320
320
  function Y(e, t, n) {
321
- return M({
321
+ return A({
322
322
  atRest: e.extent === void 0 && e.live === null,
323
323
  content: e.size === "content",
324
324
  panel: t,
@@ -329,45 +329,45 @@ function Y(e, t, n) {
329
329
  });
330
330
  }
331
331
  function X(e, t, n) {
332
- return I(t, n, e.size === "content");
332
+ return P(t, n, e.size === "content");
333
333
  }
334
334
  function Z({ children: e, className: t, ref: n, render: a, style: o, ...c }) {
335
- let u = U(), d = me(u), [f, p] = h(null), [g, v] = h(null), y = he(u, f), b = u.mode === "overlay", C = q(), [w] = h(() => {
335
+ let u = B(), d = J(u), [f, p] = h(null), [g, y] = h(null), b = he(u, f), x = u.mode === "overlay", w = K(), [T] = h(() => {
336
336
  if (typeof document > "u") return null;
337
337
  let e = document.createElement("div");
338
- return e.style.display = "contents", K.add(e), e;
339
- }), re = s((e) => {
340
- e !== null && w !== null && (K.add(e), b ? d !== null && d.append(w) : e.append(w));
338
+ return e.style.display = "contents", G.add(e), e;
339
+ }), ne = s((e) => {
340
+ e !== null && T !== null && (G.add(e), x ? d !== null && d.append(T) : e.append(T));
341
341
  }, [
342
- w,
343
- b,
342
+ T,
343
+ x,
344
344
  d
345
- ]), T = m(!1), E = C && w !== null && u.mounted && (!b || d !== null || T.current);
346
- G(() => {
347
- T.current = E;
345
+ ]), E = m(!1), D = w && T !== null && u.mounted && (!x || d !== null || E.current);
346
+ W(() => {
347
+ E.current = D;
348
348
  });
349
- let ie = !b || d !== null, A = u.titleId !== "" && c["aria-label"] === void 0 && (b || c.role !== void 0), { registerLayer: j } = u, ae = s((e) => {
350
- p(e), j(e);
351
- }, [j]), M = m(u);
352
- M.current = u, l(() => {
349
+ let ie = !x || d !== null, ae = u.titleId !== "" && c["aria-label"] === void 0 && (x || c.role !== void 0), { registerLayer: oe } = u, se = s((e) => {
350
+ p(e), oe(e);
351
+ }, [oe]), A = m(u);
352
+ A.current = u, l(() => {
353
353
  if (g === null || f === null || !u.open || !ie) return;
354
- let e = u.nodes.trigger === null ? [] : [u.nodes.trigger], t = b ? x(f, {
354
+ let e = u.nodes.trigger === null ? [] : [u.nodes.trigger], t = x ? S(f, {
355
355
  back: u.modal && u.back === "close",
356
356
  branches: e,
357
357
  content: g,
358
358
  escape: u.escape === "close",
359
359
  modal: u.modal,
360
360
  onDismiss: (e) => {
361
- if (e.reason === "outsidePress" && M.current.outsidePress === "none") return e.cancel();
362
- M.current.close(e.reason, void 0, e.source);
361
+ if (e.reason === "outsidePress" && A.current.outsidePress === "none") return e.cancel();
362
+ A.current.close(e.reason, void 0, e.source);
363
363
  },
364
364
  outsidePress: u.outsidePress === "close",
365
365
  outsidePressEvent: "click"
366
366
  }) : null, n = u.initialFocus, r = u.finalFocus, a = g.ownerDocument.activeElement, o = a?.parentElement ?? null, s = i(g, {
367
- contain: b && u.modal,
368
- initial: b ? typeof n == "object" && n ? () => n.current : n : !1,
367
+ contain: x && u.modal,
368
+ initial: x ? typeof n == "object" && n ? () => n.current : n : !1,
369
369
  restore: r === void 0 ? () => {
370
- if (a === null || a === a.ownerDocument.body) return M.current.nodes.trigger;
370
+ if (a === null || a === a.ownerDocument.body) return A.current.nodes.trigger;
371
371
  if (a.isConnected) return a;
372
372
  let e = o;
373
373
  for (; e !== null && !e.isConnected;) e = e.parentElement;
@@ -386,20 +386,20 @@ function Z({ children: e, className: t, ref: n, render: a, style: o, ...c }) {
386
386
  u.open,
387
387
  u.outsidePress,
388
388
  f,
389
- b,
389
+ x,
390
390
  g,
391
391
  ie
392
392
  ]);
393
- let { setRest: ce, open: F, extent: I, live: L, dragging: z } = u;
394
- G(() => {
395
- let e = fe(f, u.mode);
396
- if (g === null || e === null || !F || I !== void 0 || L !== null || z) return;
397
- let t = oe(u.side), n = () => {
398
- if (P(g)) return;
393
+ let { setRest: ue, open: N, extent: P, live: F, dragging: L } = u;
394
+ W(() => {
395
+ let e = pe(f, u.mode);
396
+ if (g === null || e === null || !N || P !== void 0 || F !== null || L) return;
397
+ let t = ce(u.side), n = () => {
398
+ if (M(g)) return;
399
399
  let n = e.getBoundingClientRect(), r = t ? n.width : n.height;
400
400
  if (r <= 0) return;
401
401
  let i = t ? g.offsetWidth : g.offsetHeight;
402
- ce(Math.round(i / r * 1e3) / 1e3);
402
+ ue(Math.round(i / r * 1e3) / 1e3);
403
403
  };
404
404
  if (typeof ResizeObserver > "u") {
405
405
  n();
@@ -411,41 +411,41 @@ function Z({ children: e, className: t, ref: n, render: a, style: o, ...c }) {
411
411
  f,
412
412
  u.mode,
413
413
  u.side,
414
- z,
415
- I,
416
- F,
417
414
  L,
415
+ P,
416
+ N,
417
+ F,
418
418
  g,
419
- ce
419
+ ue
420
420
  ]), l(() => {
421
- if (!b || f === null || !F) return;
422
- let e = R(f.ownerDocument.defaultView, (e) => {
421
+ if (!x || f === null || !N) return;
422
+ let e = I(f.ownerDocument.defaultView, (e) => {
423
423
  e === 0 ? f.style.removeProperty("--slotted-keyboard-inset") : f.style.setProperty("--slotted-keyboard-inset", `${e}px`);
424
424
  });
425
425
  return () => {
426
426
  e(), f.style.removeProperty("--slotted-keyboard-inset");
427
427
  };
428
428
  }, [
429
- F,
429
+ N,
430
430
  f,
431
- b
431
+ x
432
432
  ]);
433
- let B = b && u.side === "bottom" && u.drag === "panel", V = m(null);
433
+ let R = x && u.side === "bottom" && u.drag === "panel", z = m(null);
434
434
  if (l(() => {
435
- if (!B || g === null || f === null || !F) return;
435
+ if (!R || g === null || f === null || !N) return;
436
436
  let e = 0, t = 0, n = 0, r = {
437
437
  rest: void 0,
438
438
  stops: []
439
439
  }, i = !1, a = O(g);
440
- V.current = a;
440
+ z.current = a;
441
441
  let o = () => (e = f.getBoundingClientRect().height, e > 0 ? (a.visible() ?? g.offsetHeight) / e : 0), s = () => {
442
442
  a.end(), f.toggleAttribute("data-undimmed", i);
443
- }, c = () => a.holds() && r.stops.length > 0 ? r : Y(M.current, g, e);
444
- return D(g, {
445
- enabled: () => M.current.open,
443
+ }, c = () => a.holds() && r.stops.length > 0 ? r : Y(A.current, g, e);
444
+ return re(g, {
445
+ enabled: () => A.current.open,
446
446
  canGrow: () => {
447
447
  let e = o(), t = c().stops.at(-1);
448
- return t !== void 0 && e < t && !N(e, t);
448
+ return t !== void 0 && e < t && !j(e, t);
449
449
  },
450
450
  onStart: () => {
451
451
  let s = a.holds(), l = o();
@@ -455,12 +455,12 @@ function Z({ children: e, className: t, ref: n, render: a, style: o, ...c }) {
455
455
  if (e <= 0) return;
456
456
  n = Math.max(0, t + i / e);
457
457
  let o = r.stops.at(-1) ?? t, s = k(n, o);
458
- a.follow(s * e), f.toggleAttribute("data-undimmed", s < M.current.scrimFrom);
458
+ a.follow(s * e), f.toggleAttribute("data-undimmed", s < A.current.scrimFrom);
459
459
  },
460
460
  onEnd: (i) => {
461
- let o = M.current;
461
+ let o = A.current;
462
462
  f.toggleAttribute("data-dragging", !1);
463
- let c = se({
463
+ let c = le({
464
464
  fraction: Math.min(n, r.stops.at(-1) ?? n),
465
465
  span: e,
466
466
  stops: r.stops,
@@ -468,43 +468,43 @@ function Z({ children: e, className: t, ref: n, render: a, style: o, ...c }) {
468
468
  });
469
469
  if (c === "close") {
470
470
  a.settle(0, i, ge(f)), o.close("pointer", void 0, null), requestAnimationFrame(() => {
471
- M.current.open && a.settle(t * e, 0).then(s);
471
+ A.current.open && a.settle(t * e, 0).then(s);
472
472
  });
473
473
  return;
474
474
  }
475
475
  a.settle(c * e, i).then(() => {
476
- ne(() => {
476
+ te(() => {
477
477
  o.requestExtent(X(o, c, r.rest), "pointer", null);
478
478
  }), s();
479
479
  });
480
480
  }
481
481
  });
482
482
  }, [
483
- F,
483
+ N,
484
484
  f,
485
485
  g,
486
- B
486
+ R
487
487
  ]), l(() => () => {
488
- V.current?.end(), V.current = null;
488
+ z.current?.end(), z.current = null;
489
489
  }, [g]), !u.mounted) return null;
490
- if (!C || w === null) {
491
- if (b) return null;
492
- } else if (!E) return null;
493
- let H = b && u.side === "bottom" && (u.size === "full" || u.extent !== void 0 && N(u.extent, 1)), le = r({
490
+ if (!w || T === null) {
491
+ if (x) return null;
492
+ } else if (!D) return null;
493
+ let de = x && u.side === "bottom" && (u.size === "full" || u.extent !== void 0 && j(u.extent, 1)), V = r({
494
494
  ...c,
495
495
  ...u.descriptionId === "" ? {} : { "aria-describedby": u.descriptionId },
496
- ...A ? { "aria-labelledby": u.titleId } : {},
496
+ ...ae ? { "aria-labelledby": u.titleId } : {},
497
497
  ...u.modal ? { "aria-modal": !0 } : {},
498
498
  children: e,
499
499
  className: t,
500
500
  "data-part": "panel",
501
501
  id: u.panelId,
502
502
  ref: (e) => {
503
- v(e), u.nodes.panel = e, typeof n == "function" ? n(e) : n && (n.current = e);
503
+ y(e), u.nodes.panel = e, typeof n == "function" ? n(e) : n && (n.current = e);
504
504
  },
505
- ...b ? { role: "dialog" } : {},
505
+ ...x ? { role: "dialog" } : {},
506
506
  style: o
507
- }), W = /* @__PURE__ */ te("div", {
507
+ }), H = /* @__PURE__ */ v("div", {
508
508
  "data-mode": u.mode,
509
509
  "data-mount": u.mount,
510
510
  "data-part": "root",
@@ -514,123 +514,126 @@ function Z({ children: e, className: t, ref: n, render: a, style: o, ...c }) {
514
514
  "data-ui": "drawer",
515
515
  "data-ui-drawer": "",
516
516
  ...u.dragging ? { "data-dragging": "" } : {},
517
- ...b && u.side === "bottom" ? { "data-drag": u.drag } : {},
518
- ...H ? { "data-expanded": "" } : {},
519
- ...b && (u.live ?? u.extent ?? u.rest ?? 1) < u.scrimFrom ? { "data-undimmed": "" } : {},
517
+ ...x && u.side === "bottom" ? { "data-drag": u.drag } : {},
518
+ ...de ? { "data-expanded": "" } : {},
519
+ ...x && (u.live ?? u.extent ?? u.rest ?? 1) < u.scrimFrom ? { "data-undimmed": "" } : {},
520
520
  ...u.loading ? { "data-loading": "" } : {},
521
521
  ...u.modal ? { "data-modal": "" } : {},
522
522
  ...u.interactive ? {} : { inert: !0 },
523
523
  ...u.visible ? { "data-open": "" } : {},
524
- ref: ae,
525
- style: y === void 0 ? void 0 : { "--slotted-drawer-extent": y },
526
- children: [b ? /* @__PURE__ */ _("div", {
524
+ ref: se,
525
+ style: b === void 0 ? void 0 : { "--slotted-drawer-extent": b },
526
+ children: [x ? /* @__PURE__ */ _("div", {
527
527
  "data-part": "backdrop",
528
528
  "data-part-backdrop": ""
529
- }) : null, a === void 0 ? /* @__PURE__ */ _("div", { ...le }) : a(le)]
529
+ }) : null, a === void 0 ? /* @__PURE__ */ _("div", { ...V }) : a(V)]
530
530
  });
531
- return !C || w === null ? /* @__PURE__ */ _("div", {
531
+ return !w || T === null ? /* @__PURE__ */ _("div", {
532
532
  style: ve,
533
- children: W
534
- }) : /* @__PURE__ */ te(ee, { children: [/* @__PURE__ */ _("div", {
535
- ref: re,
533
+ children: H
534
+ }) : /* @__PURE__ */ v(ee, { children: [/* @__PURE__ */ _("div", {
535
+ ref: ne,
536
536
  style: ve
537
- }), S(W, w)] });
537
+ }), C(H, T)] });
538
538
  }
539
539
  var ve = { display: "contents" }, Q = 3;
540
- function ye({ className: e, largeStep: t = C, onDoubleClick: n, onKeyDown: i, onPointerDown: a, ref: o, render: s, step: c = w, style: u, ...d }) {
541
- let f = U(), p = m(null), h = m(null), g = m([]), v = m(null), y = m(null), b = m(null), x = m(null), S = m(null), D = m(null), k = m(null);
542
- l(() => () => x.current?.end(), []);
543
- let A = oe(f.side), M = f.live ?? f.extent ?? f.rest ?? f.minExtent, P = (e) => Math.round(L(e, 0, 1) * 100), I = () => {
544
- let e = fe(f.nodes.layer, f.mode);
540
+ function ye({ className: e, largeStep: t = w, onDoubleClick: n, onKeyDown: i, onPointerDown: a, ref: o, render: s, step: c = T, style: u, ...d }) {
541
+ let f = B(), p = m(null), h = m(null), g = m([]), y = m(null), b = m(null), x = m(null), S = m(null), C = m(null), re = m(null), k = m(null);
542
+ l(() => () => S.current?.end(), []);
543
+ let ae = m(f);
544
+ ae.current = f;
545
+ let A = ce(f.side), M = f.live ?? f.extent ?? f.rest ?? f.minExtent, P = (e) => Math.round(F(e, 0, 1) * 100), I = () => {
546
+ let e = pe(f.nodes.layer, f.mode);
545
547
  return e === null ? null : e.getBoundingClientRect();
546
- }, R = () => {
548
+ }, L = () => {
547
549
  let e = f.nodes.panel, t = I();
548
550
  return e === null || t === null || f.snapPoints.length === 0 ? {
549
551
  rest: f.rest,
550
552
  stops: []
551
553
  } : Y(f, e, A ? t.width : t.height);
552
- }, z = (e, t) => {
554
+ }, R = (e, t) => {
553
555
  h.current = e, f.requestExtent(e, "pointer", t);
554
- }, B = (e, t) => ie({
556
+ }, z = (e, t) => ie({
555
557
  point: {
556
558
  x: e.clientX,
557
559
  y: e.clientY
558
560
  },
559
561
  rect: t,
560
- rtl: de(p.current),
562
+ rtl: fe(p.current),
561
563
  side: f.side
562
- }), V = (e) => {
564
+ }), de = (e) => {
563
565
  if (a?.(e), e.defaultPrevented || e.button !== 0) return;
564
566
  let t = I();
565
- t !== null && (e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), e.currentTarget.focus(), v.current = {
567
+ t !== null && (e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), e.currentTarget.focus(), y.current = {
568
+ before: f.extent,
566
569
  moved: !1,
567
- offset: M - B(e, t),
570
+ offset: M - z(e, t),
568
571
  x: e.clientX,
569
572
  y: e.clientY
570
573
  }, g.current = []);
571
- }, H = (e) => {
572
- let t = v.current;
574
+ }, V = (e) => {
575
+ let t = y.current;
573
576
  if (t === null) return;
574
577
  let n = k.current;
575
- if (x.current !== null && n !== null) {
576
- let r = L((n.bottom - e.clientY) / n.height + t.offset, 0, 1);
577
- g.current = T(g.current, {
578
+ if (S.current !== null && n !== null) {
579
+ let r = F((n.bottom - e.clientY) / n.height + t.offset, 0, 1);
580
+ g.current = E(g.current, {
578
581
  at: e.timeStamp,
579
582
  fraction: r
580
- }), h.current = r, x.current.follow(r * n.height);
583
+ }), h.current = r, S.current.follow(r * n.height);
581
584
  return;
582
585
  }
583
586
  let r = I();
584
587
  if (r === null) return;
585
588
  if (!t.moved) {
586
589
  if (Math.hypot(e.clientX - t.x, e.clientY - t.y) < Q) return;
587
- t.moved = !0, b.current?.(), b.current = ae(p.current?.ownerDocument, A ? "col-resize" : "row-resize");
590
+ t.moved = !0, x.current?.(), x.current = se(p.current?.ownerDocument, A ? "col-resize" : "row-resize");
588
591
  let n = f.nodes.panel, i = f.nodes.layer;
589
592
  if (f.side === "bottom" && f.mode === "overlay" && n !== null && i !== null) {
590
593
  let a = O(n), o = a.holds(), s = a.visible() ?? (n.offsetHeight || M * r.height);
591
- S.current = o && D.current || R(), D.current = S.current;
592
- let c = S.current.stops.at(-1) ?? f.maxExtent, l = a.begin(s, c * r.height);
593
- x.current = a, k.current = r, i.toggleAttribute("data-dragging", !0), t.offset = l / r.height - (r.bottom - t.y) / r.height, H(e);
594
+ C.current = o && re.current || L(), re.current = C.current;
595
+ let c = C.current.stops.at(-1) ?? f.maxExtent, l = a.begin(s, c * r.height);
596
+ S.current = a, k.current = r, i.toggleAttribute("data-dragging", !0), t.offset = l / r.height - (r.bottom - t.y) / r.height, V(e);
594
597
  return;
595
598
  }
596
599
  f.setDragging(!0);
597
600
  }
598
- let i = L(B(e, r) + t.offset, 0, 1);
599
- g.current = T(g.current, {
601
+ let i = F(z(e, r) + t.offset, 0, 1);
602
+ g.current = E(g.current, {
600
603
  at: e.timeStamp,
601
604
  fraction: i
602
- }), z(i, e);
603
- }, le = (e) => {
604
- let { rest: t, stops: n } = R();
605
+ }), R(i, e);
606
+ }, H = (e) => {
607
+ let { rest: t, stops: n } = L();
605
608
  if (n.length < 2) return;
606
- let r = f.live ?? f.extent ?? t ?? M, i = n.find((e) => e > r && !N(e, r)) ?? n[0];
609
+ let r = f.live ?? f.extent ?? t ?? M, i = n.find((e) => e > r && !j(e, r)) ?? n[0];
607
610
  f.requestExtent(X(f, i, t), "pointer", e);
608
- }, W = (e) => {
609
- let t = v.current;
611
+ }, U = (e) => {
612
+ let t = y.current;
610
613
  if (t === null) return;
611
- if (v.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), !t.moved) {
612
- e.type === "pointerup" && le(e);
614
+ if (y.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), !t.moved) {
615
+ e.type === "pointerup" && H(e);
613
616
  return;
614
617
  }
615
- b.current?.(), b.current = null;
616
- let n = x.current;
617
- x.current = null;
618
+ x.current?.(), x.current = null;
619
+ let n = S.current;
620
+ S.current = null;
618
621
  let r = k.current ?? I();
619
622
  k.current = null, n === null ? f.setDragging(!1) : f.nodes.layer?.toggleAttribute("data-dragging", !1);
620
- let i = r === null ? 0 : A ? r.width : r.height, a = h.current ?? M, o = e.type === "pointercancel" ? 0 : j(g.current, e.timeStamp);
623
+ let i = r === null ? 0 : A ? r.width : r.height, a = h.current ?? M, o = e.type === "pointercancel" ? 0 : oe(g.current, e.timeStamp);
621
624
  h.current = null, g.current = [];
622
- let { rest: s, stops: c } = n && S.current || R();
623
- S.current = null;
624
- let l = c.length > 0 ? se({
625
+ let { rest: s, stops: c } = n && C.current || L();
626
+ C.current = null;
627
+ let l = c.length > 0 ? le({
625
628
  fraction: a,
626
629
  span: i,
627
630
  stops: c,
628
631
  velocity: o
629
- }) : a < f.minExtent || o * i <= -re ? "close" : L(a, f.minExtent, f.maxExtent), u = (t) => f.requestExtent(c.length > 0 ? X(f, t, s) : t, "pointer", e);
632
+ }) : a < f.minExtent || o * i <= -ne ? "close" : F(a, f.minExtent, f.maxExtent), u = (t) => f.requestExtent(c.length > 0 ? X(f, t, s) : t, "pointer", e);
630
633
  if (l === "close") {
631
- let t = f.nodes.layer, r = c.length > 0 ? c[0] : f.minExtent;
632
- n?.settle(0, o * i, t ? ge(t) : void 0), f.close("pointer", void 0, e), f.requestExtent(r, "pointer", e), n !== null && t !== null && requestAnimationFrame(() => {
633
- t.hasAttribute("data-open") && n.settle(r * i, 0).then(n.end);
634
+ let r = f.nodes.layer, a = c.length > 0 ? c[0] : f.minExtent;
635
+ n?.settle(0, o * i, r ? ge(r) : void 0), f.close("pointer", void 0, e), n === null && f.requestExtent(t.before, "pointer", e), requestAnimationFrame(() => {
636
+ ae.current.open && (ae.current.requestExtent(a, "pointer", e), n !== null && n.settle(a * i, 0).then(n.end));
634
637
  });
635
638
  return;
636
639
  }
@@ -639,17 +642,17 @@ function ye({ className: e, largeStep: t = C, onDoubleClick: n, onKeyDown: i, on
639
642
  return;
640
643
  }
641
644
  n.settle(l * i, o * i).then(() => {
642
- ne(() => u(l)), n.end();
645
+ te(() => u(l)), n.end();
643
646
  });
644
- }, ue = (e) => {
647
+ }, W = (e) => {
645
648
  if (i?.(e), e.defaultPrevented) return;
646
- let n = E(f.side, de(p.current)), r = A ? "ArrowLeft" : "ArrowUp", a = A ? "ArrowRight" : "ArrowDown", o = (n) => {
649
+ let n = D(f.side, fe(p.current)), r = A ? "ArrowLeft" : "ArrowUp", a = A ? "ArrowRight" : "ArrowDown", o = (n) => {
647
650
  e.preventDefault();
648
- let r = I(), i = r === null ? 0 : ce({
651
+ let r = I(), i = r === null ? 0 : ue({
649
652
  pixels: e.shiftKey ? t : c,
650
653
  rect: r,
651
654
  side: f.side
652
- }), { rest: a, stops: o } = R(), s = F({
655
+ }), { rest: a, stops: o } = L(), s = N({
653
656
  amount: i,
654
657
  direction: n,
655
658
  fraction: M,
@@ -660,7 +663,7 @@ function ye({ className: e, largeStep: t = C, onDoubleClick: n, onKeyDown: i, on
660
663
  f.requestExtent(X(f, s, a), "keyboard", e);
661
664
  }, s = (t) => {
662
665
  e.preventDefault();
663
- let { rest: n, stops: r } = R(), i = t === "first" ? r[0] ?? f.minExtent : r.at(-1) ?? f.maxExtent;
666
+ let { rest: n, stops: r } = L(), i = t === "first" ? r[0] ?? f.minExtent : r.at(-1) ?? f.maxExtent;
664
667
  f.requestExtent(X(f, i, n), "keyboard", e);
665
668
  };
666
669
  switch (e.key) {
@@ -668,33 +671,33 @@ function ye({ className: e, largeStep: t = C, onDoubleClick: n, onKeyDown: i, on
668
671
  case a: return o(n ? 1 : -1);
669
672
  case "Home": return s("first");
670
673
  case "End": return s("last");
671
- case "Enter": return e.preventDefault(), M > f.minExtent ? (y.current = M, f.requestExtent(f.minExtent, "keyboard", e)) : f.requestExtent(y.current ?? f.maxExtent, "keyboard", e);
674
+ case "Enter": return e.preventDefault(), M > f.minExtent ? (b.current = M, f.requestExtent(f.minExtent, "keyboard", e)) : f.requestExtent(b.current ?? f.maxExtent, "keyboard", e);
672
675
  default: return;
673
676
  }
674
677
  }, G = (e) => {
675
678
  n?.(e), !e.defaultPrevented && (e.preventDefault(), f.requestExtent(f.defaultExtent, "pointer", e));
676
- }, K = f.size === "content" && f.rest !== void 0 ? Math.min(f.minExtent, f.rest) : f.minExtent, pe = r({
679
+ }, me = f.size === "content" && f.rest !== void 0 ? Math.min(f.minExtent, f.rest) : f.minExtent, K = r({
677
680
  "aria-controls": f.panelId,
678
681
  ...f.titleId === "" ? {} : { "aria-labelledby": f.titleId },
679
682
  "aria-orientation": A ? "vertical" : "horizontal",
680
683
  "aria-valuemax": P(f.maxExtent),
681
- "aria-valuemin": P(K),
682
- "aria-valuenow": P(L(M, K, f.maxExtent)),
684
+ "aria-valuemin": P(me),
685
+ "aria-valuenow": P(F(M, me, f.maxExtent)),
683
686
  ...d,
684
687
  className: e,
685
688
  "data-part": "resizer",
686
689
  onDoubleClick: G,
687
- onKeyDown: ue,
688
- onLostPointerCapture: W,
689
- onPointerDown: V,
690
- onPointerMove: H,
691
- onPointerUp: W,
690
+ onKeyDown: W,
691
+ onLostPointerCapture: U,
692
+ onPointerDown: de,
693
+ onPointerMove: V,
694
+ onPointerUp: U,
692
695
  role: "separator",
693
696
  style: u,
694
697
  tabIndex: 0
695
698
  }), q = (e) => {
696
699
  p.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
697
- }, J = /* @__PURE__ */ te(ee, { children: [
700
+ }, J = /* @__PURE__ */ v(ee, { children: [
698
701
  /* @__PURE__ */ _("span", {
699
702
  "aria-hidden": "true",
700
703
  "data-part": "line",
@@ -712,11 +715,11 @@ function ye({ className: e, largeStep: t = C, onDoubleClick: n, onKeyDown: i, on
712
715
  })
713
716
  ] });
714
717
  return s === void 0 ? /* @__PURE__ */ _("div", {
715
- ...pe,
718
+ ...K,
716
719
  ref: q,
717
720
  children: J
718
721
  }) : s({
719
- ...pe,
722
+ ...K,
720
723
  children: J,
721
724
  ref: q
722
725
  });
@@ -735,7 +738,7 @@ function be({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
735
738
  }) : i(s);
736
739
  }
737
740
  function xe({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
738
- let s = U();
741
+ let s = B();
739
742
  l(() => s.announce("title"), [s]);
740
743
  let c = r({
741
744
  ...o,
@@ -751,7 +754,7 @@ function xe({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
751
754
  }) : i(c);
752
755
  }
753
756
  function Se({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
754
- let s = U();
757
+ let s = B();
755
758
  l(() => s.announce("description"), [s]);
756
759
  let c = r({
757
760
  ...o,
@@ -767,7 +770,7 @@ function Se({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
767
770
  }) : i(c);
768
771
  }
769
772
  function Ce({ children: e, className: t, inset: n, ref: i, render: a, style: o, ...s }) {
770
- let c = U(), l = r({
773
+ let c = B(), l = r({
771
774
  ...s,
772
775
  ...c.loading ? { "aria-busy": !0 } : {},
773
776
  children: e,
@@ -795,7 +798,7 @@ function we({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
795
798
  }) : i(s);
796
799
  }
797
800
  function Te({ children: e, className: i, onClick: a, ref: o, render: s, style: c, value: l, ...u }) {
798
- let d = U(), f = r({
801
+ let d = B(), f = r({
799
802
  "aria-label": d.t("close"),
800
803
  ...u,
801
804
  children: e ?? /* @__PURE__ */ _(n, { children: /* @__PURE__ */ _(t, { name: "x" }) }),
@@ -813,4 +816,4 @@ function Te({ children: e, className: i, onClick: a, ref: o, render: s, style: c
813
816
  }) : s(f);
814
817
  }
815
818
  //#endregion
816
- export { be as a, xe as c, U as d, V as f, we as i, J as l, Te as n, Z as o, B as p, Se as r, ye as s, Ce as t, W as u };
819
+ export { be as a, xe as c, B as d, z as f, we as i, q as l, Te as n, Z as o, R as p, Se as r, ye as s, Ce as t, H as u };
package/dist/drawer.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./drawer-CIsrtQcM.js";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./drawer-Pk4tqPUV.js";
2
2
  export { f as Drawer, d as DrawerBody, o as DrawerClose, r as DrawerDefaultsProvider, l as DrawerDescription, i as DrawerFooter, e as DrawerHeader, s as DrawerPanel, u as DrawerResizer, t as DrawerTitle, a as DrawerTrigger, n as useDrawer, c as useDrawerDefaults };
@@ -1,7 +1,7 @@
1
1
  import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
2
  import { n, t as r } from "./icon-D04-_QFA.js";
3
3
  import { _ as i, n as a, r as o, t as s } from "./menu-parts-BDdCTmko.js";
4
- import { a as c, c as l, n as u, o as d, r as f, s as p, t as m, u as h } from "./drawer-CIsrtQcM.js";
4
+ import { a as c, c as l, n as u, o as d, r as f, s as p, t as m, u as h } from "./drawer-Pk4tqPUV.js";
5
5
  import { n as g } from "./progress-indicator-D0acshNn.js";
6
6
  /* empty css */
7
7
  import { a as _, c as v, f as ee, i as te, l as ne, o as re, p as ie, r as ae, u as oe } from "./popover-BfEn2wdZ.js";
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./event-calendar-DKwvcNF_.js";
1
+ import { i as e, n as t, r as n, t as r } from "./event-calendar-kX0aS8Pm.js";
2
2
  export { t as EVENT_CALENDAR_FALLBACK, r as EventCalendar, n as EventCalendarDefaultsProvider, e as useEventCalendarDefaults };
@@ -1,7 +1,7 @@
1
1
  import { r as e } from "./i18n-D7xXDd8-.js";
2
2
  import { n as t, t as n } from "./icon-D04-_QFA.js";
3
3
  import { _ as r, a as i, c as a, d as o, h as s, m as c, n as l, t as u, u as d } from "./menu-parts-BDdCTmko.js";
4
- import { a as f, c as p, i as m, n as h, o as g, t as ee, u as te } from "./drawer-CIsrtQcM.js";
4
+ import { a as f, c as p, i as m, n as h, o as g, t as ee, u as te } from "./drawer-Pk4tqPUV.js";
5
5
  import { t as ne } from "./spinner-ring-DyfaYloA.js";
6
6
  import { n as _, t as re } from "./icon-button-DbSZKGT4.js";
7
7
  import { t as ie } from "./text-field-CHYoral_.js";
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./filter-bar-NipgBi5v.js";
1
+ import { i as e, n as t, r as n, t as r } from "./filter-bar-B-Jk5sPq.js";
2
2
  export { r as FILTER_BAR_FALLBACK, t as FilterBar, n as FilterBarDefaultsProvider, e as useFilterBarDefaults };
package/dist/index.js CHANGED
@@ -5,8 +5,8 @@ import { i as g, n as _, r as v, t as y } from "./i18n-D7xXDd8-.js";
5
5
  import { n as b, t as x } from "./icon-D04-_QFA.js";
6
6
  import { C as S, S as C, T as w, _ as T, a as E, b as D, c as O, d as k, f as A, g as j, h as M, i as N, l as P, m as F, n as I, o as L, p as R, r as z, s as B, t as V, u as H, v as U, w as W, x as G, y as K } from "./menu-parts-BDdCTmko.js";
7
7
  import { r as q, t as J } from "./kbd-defaults-CDgRhiep.js";
8
- import { a as Y, c as X, d as Z, f as Q, h as $, i as ee, l as te, m as ne, n as re, o as ie, p as ae, r as oe, s as se, t as ce, u as le } from "./action-sheet-CYwRLOKq.js";
9
- import { a as ue, c as de, d as fe, f as pe, i as me, l as he, n as ge, o as _e, p as ve, r as ye, s as be, t as xe, u as Se } from "./drawer-CIsrtQcM.js";
8
+ import { a as Y, c as X, d as Z, f as Q, h as $, i as ee, l as te, m as ne, n as re, o as ie, p as ae, r as oe, s as se, t as ce, u as le } from "./action-sheet-BAoaxbmI.js";
9
+ import { a as ue, c as de, d as fe, f as pe, i as me, l as he, n as ge, o as _e, p as ve, r as ye, s as be, t as xe, u as Se } from "./drawer-Pk4tqPUV.js";
10
10
  import { a as Ce, i as we, n as Te, o as Ee, r as De, s as Oe, t as ke } from "./alert-DPSZUCRn.js";
11
11
  import { C as Ae, S as je, T as Me, _ as Ne, a as Pe, b as Fe, c as Ie, d as Le, f as Re, g as ze, h as Be, i as Ve, l as He, m as Ue, n as We, o as Ge, p as Ke, r as qe, s as Je, t as Ye, u as Xe, v as Ze, w as Qe, x as $e, y as et } from "./app-shell-CJwXBvE5.js";
12
12
  import { a as tt, n as nt, o as rt, r as it, t as at } from "./progress-indicator-D0acshNn.js";
@@ -42,7 +42,7 @@ import { a as Li, c as Ri, d as zi, f as Bi, i as Vi, l as Hi, m as Ui, n as Wi,
42
42
  import { i as Zi, n as Qi, r as $i, t as ea } from "./text-field-CHYoral_.js";
43
43
  import { a as ta, c as na, d as ra, f as ia, g as aa, h as oa, i as sa, l as ca, m as la, n as ua, o as da, p as fa, r as pa, s as ma, t as ha, u as ga } from "./popover-BfEn2wdZ.js";
44
44
  import { a as _a, c as va, i as ya, l as ba, n as xa, o as Sa, r as Ca, s as wa, t as Ta, u as Ea } from "./combobox-vE8dmv4K.js";
45
- import { a as Da, i as Oa, n as ka, r as Aa, t as ja } from "./column-manager-CIf2SAzx.js";
45
+ import { a as Da, i as Oa, n as ka, r as Aa, t as ja } from "./column-manager-DMaWNyXs.js";
46
46
  import { t as Ma } from "./visually-hidden-BUSrFZ1_.js";
47
47
  import { a as Na, i as Pa, n as Fa, r as Ia, t as La } from "./command-palette-DEKWsUFR.js";
48
48
  import { a as Ra, c as za, d as Ba, f as Va, g as Ha, h as Ua, i as Wa, l as Ga, m as Ka, n as qa, o as Ja, p as Ya, r as Xa, s as Za, t as Qa, u as $a } from "./dialog-CjOBjHrL.js";
@@ -77,8 +77,8 @@ import { a as Tl, c as El, d as Dl, f as Ol, i as kl, l as Al, n as jl, o as Ml,
77
77
  import { a as Rl, c as zl, i as Bl, n as Vl, o as Hl, r as Ul, s as Wl, t as Gl } from "./tabs-C-Bc7WmQ.js";
78
78
  import { t as Kl } from "./divider-ryFeK0Pi.js";
79
79
  import { a as ql, c as Jl, d as Yl, f as Xl, i as Zl, l as Ql, n as $l, o as eu, r as tu, s as nu, t as ru, u as iu } from "./entity-picker-DB1HeuvJ.js";
80
- import { i as au, n as ou, r as su, t as cu } from "./event-calendar-DKwvcNF_.js";
81
- import { i as lu, n as uu, r as du, t as fu } from "./filter-bar-NipgBi5v.js";
80
+ import { i as au, n as ou, r as su, t as cu } from "./event-calendar-kX0aS8Pm.js";
81
+ import { i as lu, n as uu, r as du, t as fu } from "./filter-bar-B-Jk5sPq.js";
82
82
  import { a as pu, i as mu, n as hu, o as gu, r as _u, t as vu } from "./form-DEcJ7tHf.js";
83
83
  import { a as yu, i as bu, n as xu, o as Su, r as Cu, s as wu, t as Tu } from "./fullscreen-CaEg6U-M.js";
84
84
  import { t as Eu } from "./grid-l7xi6DUg.js";
@@ -1 +1 @@
1
- {"version":3,"file":"drawer-parts.d.ts","sourceRoot":"","sources":["../../../src/drawer/drawer-parts.tsx"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAA0D,SAAS,EAAE,MAAM,OAAO,CAAC;AAK/F,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAEhB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EAEjB,gBAAgB,EAEhB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AAuDxB;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,SAAS,EACT,OAAO,EACP,GAAG,EACH,MAAM,EACN,KAAK,EACL,GAAG,WAAW,EACf,EAAE,kBAAkB,+TAgCpB;AAiHD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,GAAG,EACH,MAAM,EACN,KAAK,EACL,GAAG,WAAW,EACf,EAAE,gBAAgB,sCA0blB;AAoBD,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,SAAgC,EAChC,aAAa,EACb,SAAS,EACT,aAAa,EACb,GAAG,EACH,MAAM,EACN,IAAqB,EACrB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,kBAAkB,+TAsYpB;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,GAAG,EACH,MAAM,EACN,KAAK,EACL,GAAG,IAAI,EACR,EAAE,iBAAiB,+TAUnB;AAED;4EAC4E;AAC5E,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,GAAG,EACH,MAAM,EACN,KAAK,EACL,GAAG,IAAI,EACR,EAAE,gBAAgB,+TAclB;AAED,uDAAuD;AACvD,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,GAAG,EACH,MAAM,EACN,KAAK,EACL,GAAG,IAAI,EACR,EAAE,sBAAsB,+TAcxB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,EACH,MAAM,EACN,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,+TAajB;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,GAAG,EACH,MAAM,EACN,KAAK,EACL,GAAG,IAAI,EACR,EAAE,iBAAiB,+TAUnB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,OAAO,EACP,GAAG,EACH,MAAM,EACN,KAAK,EACL,KAAK,EACL,GAAG,IAAI,EACR,EAAE,gBAAgB,+TAwBlB"}
1
+ {"version":3,"file":"drawer-parts.d.ts","sourceRoot":"","sources":["../../../src/drawer/drawer-parts.tsx"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAA0D,SAAS,EAAE,MAAM,OAAO,CAAC;AAK/F,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAEhB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EAEjB,gBAAgB,EAEhB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AAuDxB;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,SAAS,EACT,OAAO,EACP,GAAG,EACH,MAAM,EACN,KAAK,EACL,GAAG,WAAW,EACf,EAAE,kBAAkB,+TAgCpB;AAiHD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,GAAG,EACH,MAAM,EACN,KAAK,EACL,GAAG,WAAW,EACf,EAAE,gBAAgB,sCA0blB;AAoBD,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,SAAgC,EAChC,aAAa,EACb,SAAS,EACT,aAAa,EACb,GAAG,EACH,MAAM,EACN,IAAqB,EACrB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,kBAAkB,+TAoZpB;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,GAAG,EACH,MAAM,EACN,KAAK,EACL,GAAG,IAAI,EACR,EAAE,iBAAiB,+TAUnB;AAED;4EAC4E;AAC5E,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,GAAG,EACH,MAAM,EACN,KAAK,EACL,GAAG,IAAI,EACR,EAAE,gBAAgB,+TAclB;AAED,uDAAuD;AACvD,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,GAAG,EACH,MAAM,EACN,KAAK,EACL,GAAG,IAAI,EACR,EAAE,sBAAsB,+TAcxB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,EACH,MAAM,EACN,KAAK,EACL,GAAG,IAAI,EACR,EAAE,eAAe,+TAajB;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,GAAG,EACH,MAAM,EACN,KAAK,EACL,GAAG,IAAI,EACR,EAAE,iBAAiB,+TAUnB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,OAAO,EACP,GAAG,EACH,MAAM,EACN,KAAK,EACL,KAAK,EACL,GAAG,IAAI,EACR,EAAE,gBAAgB,+TAwBlB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slotted/react",
3
- "version": "0.1.0-beta.13",
3
+ "version": "0.1.0-beta.14",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -538,17 +538,17 @@
538
538
  "./*/styles.css": "./dist/styles/*.css"
539
539
  },
540
540
  "peerDependencies": {
541
- "@slotted/core": "0.1.0-beta.13",
542
- "@slotted/theme": "0.1.0-beta.13",
541
+ "@slotted/core": "0.1.0-beta.14",
542
+ "@slotted/theme": "0.1.0-beta.14",
543
543
  "react": ">=19.2.0 <20",
544
544
  "react-dom": ">=19.2.0 <20"
545
545
  },
546
546
  "devDependencies": {
547
547
  "@slotted/agent-docs": "0.0.0",
548
- "@slotted/core": "0.1.0-beta.13",
548
+ "@slotted/core": "0.1.0-beta.14",
549
549
  "@slotted/storybook-workbench": "0.0.0",
550
- "@slotted/styles": "0.1.0-beta.13",
551
- "@slotted/theme": "0.1.0-beta.13",
550
+ "@slotted/styles": "0.1.0-beta.14",
551
+ "@slotted/theme": "0.1.0-beta.14",
552
552
  "@storybook/react-vite": "10.5.10",
553
553
  "@testing-library/jest-dom": "7.0.1",
554
554
  "@testing-library/react": "16.3.3",