@slotted/react 0.1.0-beta.7 → 0.1.0-beta.8

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.
Files changed (50) hide show
  1. package/dist/{action-sheet-CaUaP0K2.js → action-sheet-DD477dAw.js} +1 -1
  2. package/dist/action-sheet.js +1 -1
  3. package/dist/{calendar-BZ6PP7Ke.js → calendar-xcoBnHpK.js} +17 -17
  4. package/dist/calendar.js +1 -1
  5. package/dist/{column-manager-CFtJxQWS.js → column-manager-DonEo9wp.js} +1 -1
  6. package/dist/column-manager.js +1 -1
  7. package/dist/{command-palette-D1C1GDWC.js → command-palette-Dw03scvF.js} +244 -241
  8. package/dist/command-palette.js +1 -1
  9. package/dist/{data-grid-CjFQ2U6v.js → data-grid-B93D5XsR.js} +9 -9
  10. package/dist/data-grid.js +1 -1
  11. package/dist/{date-field-BxEpqAPg.js → date-field-DEauLQVL.js} +80 -80
  12. package/dist/date-field.js +1 -1
  13. package/dist/{date-picker-DRk9SZp1.js → date-picker-C22jlzUv.js} +2 -2
  14. package/dist/date-picker.js +1 -1
  15. package/dist/{date-range-picker-6Yz7avTS.js → date-range-picker-BUKoddmL.js} +2 -2
  16. package/dist/date-range-picker.js +1 -1
  17. package/dist/{datetime-field-D2f9u6im.js → datetime-field-Bptwvuip.js} +33 -33
  18. package/dist/datetime-field.js +1 -1
  19. package/dist/{datetime-picker-STqSWMkH.js → datetime-picker-BiarFWN3.js} +2 -2
  20. package/dist/datetime-picker.js +1 -1
  21. package/dist/{datetime-range-picker-DQNQwr3K.js → datetime-range-picker--JtLnGQ2.js} +2 -2
  22. package/dist/datetime-range-picker.js +1 -1
  23. package/dist/{dialog-yT-x3B9s.js → dialog-Ds0LJWE_.js} +156 -139
  24. package/dist/dialog.js +1 -1
  25. package/dist/docs/calendar.json +1 -1
  26. package/dist/{drawer-B_EgvFeX.js → drawer-DZ_29U6H.js} +4 -1
  27. package/dist/drawer.js +1 -1
  28. package/dist/{event-calendar-VUGigZIP.js → event-calendar-CPAun_ab.js} +1 -1
  29. package/dist/event-calendar.js +1 -1
  30. package/dist/{filter-bar-BzSOD3ad.js → filter-bar-BKKqH0ui.js} +4 -4
  31. package/dist/filter-bar.js +1 -1
  32. package/dist/{import-export-center-BuEBO1CB.js → import-export-center-Bg1Iavoa.js} +1 -1
  33. package/dist/import-export-center.js +1 -1
  34. package/dist/index.js +21 -21
  35. package/dist/styles.css +1 -1
  36. package/dist/{table-C1kLS0-9.js → table-BTSOjlTn.js} +6 -6
  37. package/dist/table.js +1 -1
  38. package/dist/{time-field-BI9n607q.js → time-field-DeKrogZG.js} +2 -2
  39. package/dist/time-field.js +1 -1
  40. package/dist/{time-picker-D6SlQWNF.js → time-picker-C0-O0oMU.js} +1 -1
  41. package/dist/time-picker.js +1 -1
  42. package/dist/{time-range-picker-CcV3_45h.js → time-range-picker-Fdb70Zj_.js} +1 -1
  43. package/dist/time-range-picker.js +1 -1
  44. package/dist/types/calendar/calendar.d.ts.map +1 -1
  45. package/dist/types/command-palette/command-palette.d.ts.map +1 -1
  46. package/dist/types/dialog/dialog-parts.d.ts.map +1 -1
  47. package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
  48. package/dist/{upload-CXDjxuS8.js → upload-DGmsz9Hw.js} +1 -1
  49. package/dist/upload.js +1 -1
  50. package/package.json +11 -8
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, r, t as i } from "./command-palette-D1C1GDWC.js";
1
+ import { a as e, i as t, n, r, t as i } from "./command-palette-Dw03scvF.js";
2
2
  export { r as COMMAND_PALETTE_FALLBACK, i as CommandPalette, t as CommandPaletteDefaultsProvider, n as CommandPaletteTrigger, e as useCommandPaletteDefaults };
@@ -9,19 +9,19 @@ import { t as g } from "./text-field-CbQ6UCAP.js";
9
9
  import { a as _, d as ee, f as te, l as ne, r as re, t as ie } from "./popover-DEp8Bf3e.js";
10
10
  import { t as v } from "./visually-hidden-CE6u5JLW.js";
11
11
  import { i as ae, n as oe, o as se, r as ce, t as le } from "./result-state-CZsQfdN4.js";
12
- import { t as ue } from "./date-picker-DRk9SZp1.js";
13
- import { t as de } from "./date-field-BxEpqAPg.js";
14
- import { t as fe } from "./date-range-picker-6Yz7avTS.js";
15
- import { t as pe } from "./datetime-picker-STqSWMkH.js";
16
- import { t as me } from "./datetime-field-D2f9u6im.js";
17
- import { t as he } from "./datetime-range-picker-DQNQwr3K.js";
12
+ import { t as ue } from "./date-picker-C22jlzUv.js";
13
+ import { t as de } from "./date-field-DEauLQVL.js";
14
+ import { t as fe } from "./date-range-picker-BUKoddmL.js";
15
+ import { t as pe } from "./datetime-picker-BiarFWN3.js";
16
+ import { t as me } from "./datetime-field-Bptwvuip.js";
17
+ import { t as he } from "./datetime-range-picker--JtLnGQ2.js";
18
18
  import { a as ge, i as _e, n as ve, s as ye } from "./multi-select-B8z6ApgW.js";
19
19
  import { t as be } from "./number-field-DXk1TAXA.js";
20
20
  import { a as xe, t as Se } from "./segmented-control-C-PzkTtg.js";
21
21
  import { c as Ce, i as we, n as Te, o as Ee, s as De } from "./select-BUylPwpb.js";
22
- import { t as Oe } from "./time-picker-D6SlQWNF.js";
23
- import { t as ke } from "./time-field-BI9n607q.js";
24
- import { t as Ae } from "./time-range-picker-CcV3_45h.js";
22
+ import { t as Oe } from "./time-picker-C0-O0oMU.js";
23
+ import { t as ke } from "./time-field-DeKrogZG.js";
24
+ import { t as Ae } from "./time-range-picker-Fdb70Zj_.js";
25
25
  import { createControllable as je } from "@slotted/core/state";
26
26
  import { createContext as Me, createElement as Ne, memo as Pe, useCallback as y, useContext as Fe, useEffect as b, useId as Ie, useImperativeHandle as Le, useLayoutEffect as Re, useMemo as x, useRef as S, useState as C } from "react";
27
27
  import { Fragment as ze, jsx as w, jsxs as T } from "react/jsx-runtime";
package/dist/data-grid.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./data-grid-CjFQ2U6v.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./data-grid-B93D5XsR.js";
2
2
  export { e as DRAG_COLUMN, n as DataGrid, i as DataGridDefaultsProvider, r as EXPANDER_COLUMN, a as SELECTION_COLUMN, t as useDataGridDefaults, o as usePersistedGridView };
@@ -5,9 +5,9 @@ import { createControllable as a } from "@slotted/core/state";
5
5
  import { createContext as o, useCallback as s, useContext as c, useEffect as l, useId as u, useImperativeHandle as d, useMemo as f, useRef as p, useState as m } from "react";
6
6
  import { Fragment as ee, jsx as h, jsxs as te } from "react/jsx-runtime";
7
7
  import { dateFieldMessages as ne } from "@slotted/core/i18n";
8
- import { EMPTY_SEGMENTS as re, boundSegment as g, clearSegment as ie, commitTyping as ae, createDateFormat as oe, dateOf as _, fieldRange as se, isDateInRange as ce, isSameDate as le, parseISOYearMonth as ue, plainDate as de, segmentsOf as v, stepSegment as y, toISODate as fe, toISOYearMonth as pe, todayIn as me, typeDigit as he, yearMonthPattern as ge } from "@slotted/core/date";
8
+ import { EMPTY_SEGMENTS as re, boundSegment as ie, clearSegment as ae, commitTyping as oe, createDateFormat as se, dateOf as g, fieldRange as ce, isDateInRange as le, isSameDate as ue, parseISOYearMonth as de, plainDate as fe, segmentsOf as _, stepSegment as v, toISODate as pe, toISOYearMonth as me, todayIn as he, typeDigit as ge, yearMonthPattern as _e } from "@slotted/core/date";
9
9
  //#region src/date-field/date-field-defaults.tsx
10
- var _e = 20, b = o({
10
+ var y = 20, b = o({
11
11
  calendar: "gregory",
12
12
  firstDayOfWeek: void 0,
13
13
  size: "md",
@@ -18,7 +18,7 @@ var _e = 20, b = o({
18
18
  function x() {
19
19
  return c(b);
20
20
  }
21
- function S({ children: e, ...t }) {
21
+ function ve({ children: e, ...t }) {
22
22
  let n = x();
23
23
  return /* @__PURE__ */ h(b.Provider, {
24
24
  value: {
@@ -34,51 +34,51 @@ function S({ children: e, ...t }) {
34
34
  }
35
35
  //#endregion
36
36
  //#region src/date-field/date-field.tsx
37
- var C = {
37
+ var ye = {
38
38
  day: 5,
39
39
  month: 5,
40
40
  year: 10
41
- }, ve = de(2e3, 1, 1);
42
- function w({ "aria-describedby": o, "aria-label": c, "aria-labelledby": se, calendar: _e, className: b, clearable: S = !1, defaultValue: w, disabled: ye, end: xe, firstDayOfWeek: Se, granularity: Ce, id: we, invalid: Te, isDateUnavailable: Ee, locale: De, max: Oe, messages: ke, min: Ae, name: je, onKeyDown: Me, onPaste: Ne, onValueChange: Pe, readOnly: Fe, ref: Ie, render: Le, required: Re, size: ze, start: Be, style: Ve, timeZone: He, value: T, variant: Ue, yearPivot: We, ...Ge }) {
43
- let E = i(), Ke = E?.registerControl;
44
- l(() => Ke?.(), [Ke]);
45
- let D = x(), qe = n(), Je = r(ne, ke), O = p(null), Ye = u(), k = De ?? qe, A = Se ?? D.firstDayOfWeek, j = We ?? D.yearPivot, M = He ?? D.timeZone, Xe = _e ?? D.calendar, Ze = ze ?? E?.size ?? D.size, Qe = Ue ?? D.variant, N = ye ?? E?.disabled, P = Fe ?? E?.readOnly, $e = Te ?? E?.invalid, F = Re ?? E?.required, I = f(() => oe({
46
- locale: k,
47
- firstDayOfWeek: A,
48
- yearPivot: j
41
+ }, be = fe(2e3, 1, 1);
42
+ function S({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, calendar: y, className: b, clearable: ve = !1, defaultValue: S, disabled: C, end: Se, firstDayOfWeek: Ce, granularity: we, id: Te, invalid: Ee, isDateUnavailable: De, locale: Oe, max: ke, messages: Ae, min: je, name: Me, onKeyDown: Ne, onPaste: Pe, onValueChange: w, readOnly: Fe, ref: Ie, render: T, required: Le, size: Re, start: ze, style: Be, timeZone: Ve, value: E, variant: He, yearPivot: Ue, ...We }) {
43
+ let D = i(), Ge = D?.registerControl;
44
+ l(() => Ge?.(), [Ge]);
45
+ let O = x(), Ke = n(), qe = r(ne, Ae), k = p(null), Je = u(), A = Oe ?? Ke, j = Ce ?? O.firstDayOfWeek, M = Ue ?? O.yearPivot, N = Ve ?? O.timeZone, Ye = y ?? O.calendar, Xe = Re ?? D?.size ?? O.size, Ze = He ?? O.variant, P = C ?? D?.disabled, F = Fe ?? D?.readOnly, Qe = Ee ?? D?.invalid, I = Le ?? D?.required, L = f(() => se({
46
+ locale: A,
47
+ firstDayOfWeek: j,
48
+ yearPivot: M
49
49
  }), [
50
+ j,
50
51
  A,
51
- k,
52
- j
53
- ]), [L, et] = m(() => ve);
54
- l(() => et(me(M)), [M]);
55
- let [R, z] = m(() => v(T ?? w ?? null)), [B, V] = m(void 0), H = p(R), U = () => H.current;
52
+ M
53
+ ]), [R, $e] = m(() => be);
54
+ l(() => $e(he(N)), [N]);
55
+ let [z, et] = m(() => _(E ?? S ?? null)), [B, V] = m(void 0), H = p(z), U = () => H.current;
56
56
  l(() => {
57
- T !== void 0 && (le(_(H.current), T) || (H.current = v(T), z(H.current)));
58
- }, [T]);
59
- let W = R, G = _(W), K = Ce === "month", q = f(() => K ? ge(I.pattern) : I.pattern, [I, K]), J = f(() => q.filter((e) => e.type !== "literal").map((e) => e.type), [q]), Y = s((e, t, n) => {
57
+ E !== void 0 && (ue(g(H.current), E) || (H.current = _(E), et(H.current)));
58
+ }, [E]);
59
+ let W = z, G = g(W), K = we === "month", q = f(() => K ? _e(L.pattern) : L.pattern, [L, K]), J = f(() => q.filter((e) => e.type !== "literal").map((e) => e.type), [q]), Y = s((e, t, n) => {
60
60
  let r = K && e.day !== 1 ? {
61
61
  ...e,
62
62
  day: 1,
63
63
  intendedDay: 1
64
- } : e, i = _(H.current);
65
- H.current = r, z(r), r.typing === null && a({
66
- controlled: T,
64
+ } : e, i = g(H.current);
65
+ H.current = r, et(r), r.typing === null && a({
66
+ controlled: E,
67
67
  initial: i,
68
- equals: le,
68
+ equals: ue,
69
69
  onRequest: (e) => {
70
- Pe?.(e.value, {
70
+ w?.(e.value, {
71
71
  ...e,
72
72
  segments: r
73
73
  });
74
74
  }
75
- }).request(_(r), t, n);
75
+ }).request(g(r), t, n);
76
76
  }, [
77
77
  K,
78
- Pe,
79
- T
78
+ w,
79
+ E
80
80
  ]), X = s((e) => {
81
- V(e), O.current?.querySelector(`[data-part="segment"][data-field="${e}"]`)?.focus();
81
+ V(e), k.current?.querySelector(`[data-part="segment"][data-field="${e}"]`)?.focus();
82
82
  }, []), tt = s(() => {
83
83
  let e = U(), t = J.find((t) => e[t] === null) ?? J[0];
84
84
  t !== void 0 && X(t);
@@ -101,11 +101,11 @@ function w({ "aria-describedby": o, "aria-label": c, "aria-labelledby": se, cale
101
101
  J,
102
102
  X
103
103
  ]);
104
- let Q = N !== !0 && P !== !0, $ = (e) => {
104
+ let Q = P !== !0 && F !== !0, $ = (e) => {
105
105
  e.preventDefault(), e.stopPropagation();
106
106
  }, nt = (e) => (t) => {
107
- if (Me?.(t), t.defaultPrevented) return;
108
- let n = O.current !== null && getComputedStyle(O.current).direction === "rtl", r = n ? "ArrowLeft" : "ArrowRight", i = n ? "ArrowRight" : "ArrowLeft";
107
+ if (Ne?.(t), t.defaultPrevented) return;
108
+ let n = k.current !== null && getComputedStyle(k.current).direction === "rtl", r = n ? "ArrowLeft" : "ArrowRight", i = n ? "ArrowRight" : "ArrowLeft";
109
109
  if (t.key === r) {
110
110
  $(t), Z(e, 1);
111
111
  return;
@@ -117,63 +117,63 @@ function w({ "aria-describedby": o, "aria-label": c, "aria-labelledby": se, cale
117
117
  if (Q && !t.altKey) {
118
118
  switch (t.key) {
119
119
  case "ArrowUp":
120
- $(t), Y(y(U(), e, 1, L), "keyboard", t);
120
+ $(t), Y(v(U(), e, 1, R), "keyboard", t);
121
121
  return;
122
122
  case "ArrowDown":
123
- $(t), Y(y(U(), e, -1, L), "keyboard", t);
123
+ $(t), Y(v(U(), e, -1, R), "keyboard", t);
124
124
  return;
125
125
  case "PageUp":
126
- $(t), Y(y(U(), e, C[e], L), "keyboard", t);
126
+ $(t), Y(v(U(), e, ye[e], R), "keyboard", t);
127
127
  return;
128
128
  case "PageDown":
129
- $(t), Y(y(U(), e, -C[e], L), "keyboard", t);
129
+ $(t), Y(v(U(), e, -ye[e], R), "keyboard", t);
130
130
  return;
131
131
  case "Home":
132
- $(t), Y(g(U(), e, "min", L), "keyboard", t);
132
+ $(t), Y(ie(U(), e, "min", R), "keyboard", t);
133
133
  return;
134
134
  case "Backspace":
135
135
  case "Delete":
136
- $(t), Y(ie(U(), e), "clear", t);
136
+ $(t), Y(ae(U(), e), "clear", t);
137
137
  return;
138
138
  case "End":
139
- $(t), Y(g(U(), e, "max", L), "keyboard", t);
139
+ $(t), Y(ie(U(), e, "max", R), "keyboard", t);
140
140
  return;
141
141
  }
142
142
  if (/^\d$/.test(t.key)) {
143
143
  $(t);
144
- let n = he(U(), e, Number(t.key), I, L);
144
+ let n = ge(U(), e, Number(t.key), L, R);
145
145
  Y(n.segments, "keyboard", t), n.advance && Z(e, 1);
146
146
  }
147
147
  }
148
148
  }, rt = (e) => {
149
- if (Ne?.(e), e.defaultPrevented || !Q) return;
150
- let t = e.clipboardData.getData("text/plain"), n = K ? ue(t) : null, r = n === null ? I.parse(t) : de(n.year, n.month, 1);
151
- r !== null && (e.preventDefault(), Y(v(r), "keyboard", e));
149
+ if (Pe?.(e), e.defaultPrevented || !Q) return;
150
+ let t = e.clipboardData.getData("text/plain"), n = K ? de(t) : null, r = n === null ? L.parse(t) : fe(n.year, n.month, 1);
151
+ r !== null && (e.preventDefault(), Y(_(r), "keyboard", e));
152
152
  }, it = () => {
153
153
  V(void 0);
154
154
  let e = U();
155
- e.typing !== null && Y(ae(e, I, L), "blur", void 0);
155
+ e.typing !== null && Y(oe(e, L, R), "blur", void 0);
156
156
  }, at = (e) => {
157
157
  e.target?.closest("[data-part=\"segment\"], button, a, input, select, textarea") ?? (e.preventDefault(), tt());
158
158
  }, ot = (e) => {
159
159
  Y(re, "clear", e);
160
160
  let t = J[0];
161
161
  t !== void 0 && X(t);
162
- }, st = `${Ye}-value`, ct = G === null ? void 0 : K ? I.monthYear(G) : I.describe(G), lt = G !== null && Ee?.(G) === !0, ut = G !== null && !ce(G, Ae, Oe), dt = $e === !0 || lt || ut, ft = J.every((e) => W[e] === null), pt = S && !ft && Q, mt = /* @__PURE__ */ te(ee, { children: [
163
- Be === void 0 ? null : /* @__PURE__ */ h("span", {
162
+ }, st = `${Je}-value`, ct = G === null ? void 0 : K ? L.monthYear(G) : L.describe(G), lt = G !== null && De?.(G) === !0, ut = G !== null && !le(G, je, ke), dt = Qe === !0 || lt || ut, ft = J.every((e) => W[e] === null), pt = ve && !ft && Q, mt = /* @__PURE__ */ te(ee, { children: [
163
+ ze === void 0 ? null : /* @__PURE__ */ h("span", {
164
164
  "data-part": "start",
165
- children: Be
165
+ children: ze
166
166
  }),
167
167
  /* @__PURE__ */ h("div", {
168
- "aria-describedby": [o, E?.describedBy].filter(Boolean).join(" ") || void 0,
169
- "aria-disabled": N === !0 || void 0,
168
+ "aria-describedby": [o, D?.describedBy].filter(Boolean).join(" ") || void 0,
169
+ "aria-disabled": P === !0 || void 0,
170
170
  "aria-invalid": dt ? !0 : void 0,
171
171
  "aria-label": c,
172
- "aria-labelledby": c === void 0 ? [se ?? E?.ids.label, st].filter(Boolean).join(" ") : void 0,
173
- "aria-readonly": P === !0 || void 0,
174
- "aria-required": F === !0 || void 0,
172
+ "aria-labelledby": c === void 0 ? [ce ?? D?.ids.label, st].filter(Boolean).join(" ") : void 0,
173
+ "aria-readonly": F === !0 || void 0,
174
+ "aria-required": I === !0 || void 0,
175
175
  "data-part": "segments",
176
- id: we ?? E?.ids.control,
176
+ id: Te ?? D?.ids.control,
177
177
  onPaste: rt,
178
178
  role: "group",
179
179
  children: q.map((e, t) => {
@@ -183,16 +183,16 @@ function w({ "aria-describedby": o, "aria-label": c, "aria-labelledby": se, cale
183
183
  children: e.value
184
184
  }, `literal-${String(t)}`);
185
185
  let n = e.type;
186
- return /* @__PURE__ */ h(be, {
187
- disabled: N === !0,
186
+ return /* @__PURE__ */ h(xe, {
187
+ disabled: P === !0,
188
188
  field: n,
189
- format: I,
189
+ format: L,
190
190
  onBlur: it,
191
191
  onFocus: () => V(n),
192
192
  onKeyDown: nt(n),
193
- placeholder: e.value,
194
- readOnly: P === !0,
195
- reference: L,
193
+ label: qe(n),
194
+ readOnly: F === !0,
195
+ reference: R,
196
196
  segments: W,
197
197
  tabIndex: n === (B ?? J[0]) ? 0 : -1
198
198
  }, n);
@@ -205,46 +205,46 @@ function w({ "aria-describedby": o, "aria-label": c, "aria-labelledby": se, cale
205
205
  children: ct
206
206
  }),
207
207
  pt ? /* @__PURE__ */ h("button", {
208
- "aria-label": Je("clear"),
208
+ "aria-label": qe("clear"),
209
209
  "data-part": "clear",
210
210
  onClick: ot,
211
211
  type: "button",
212
212
  children: /* @__PURE__ */ h(t, { children: /* @__PURE__ */ h(e, { name: "x" }) })
213
213
  }) : null,
214
- xe === void 0 ? null : /* @__PURE__ */ h("span", {
214
+ Se === void 0 ? null : /* @__PURE__ */ h("span", {
215
215
  "data-part": "end",
216
- children: xe
216
+ children: Se
217
217
  }),
218
218
  /* @__PURE__ */ h("input", {
219
219
  "data-part": "hidden-input",
220
- name: je,
220
+ name: Me,
221
221
  readOnly: !0,
222
222
  type: "hidden",
223
- value: G === null ? "" : K ? pe({
223
+ value: G === null ? "" : K ? me({
224
224
  year: G.year,
225
225
  month: G.month
226
- }) : fe(G)
226
+ }) : pe(G)
227
227
  })
228
228
  ] }), ht = {
229
- ...Ge,
229
+ ...We,
230
230
  children: mt,
231
231
  className: b,
232
- style: Ve,
233
- ...N === !0 ? { "data-disabled": "" } : {},
232
+ style: Be,
233
+ ...P === !0 ? { "data-disabled": "" } : {},
234
234
  ...dt ? { "data-invalid": "" } : {},
235
- ...P === !0 ? { "data-readonly": "" } : {},
236
- ...F === !0 ? { "data-required": "" } : {},
237
- "data-calendar": Xe,
235
+ ...F === !0 ? { "data-readonly": "" } : {},
236
+ ...I === !0 ? { "data-required": "" } : {},
237
+ "data-calendar": Ye,
238
238
  "data-part": "root",
239
- "data-size": Ze,
239
+ "data-size": Xe,
240
240
  "data-ui": "date-field",
241
- "data-variant": Qe,
241
+ "data-variant": Ze,
242
242
  onMouseDown: at,
243
- ref: O
243
+ ref: k
244
244
  };
245
- return Le === void 0 ? /* @__PURE__ */ h("div", { ...ht }) : Le(ht);
245
+ return T === void 0 ? /* @__PURE__ */ h("div", { ...ht }) : T(ht);
246
246
  }
247
- function ye({ field: e, format: t, reference: n, segments: r }) {
247
+ function C({ field: e, format: t, reference: n, segments: r }) {
248
248
  let i = r[e];
249
249
  if (i === null) return t.pattern.find((t) => t.type === e)?.value ?? "";
250
250
  let a = r.typing;
@@ -254,8 +254,8 @@ function ye({ field: e, format: t, reference: n, segments: r }) {
254
254
  day: r.day ?? n.day
255
255
  }, e);
256
256
  }
257
- function be({ disabled: e, field: t, format: n, onBlur: r, onFocus: i, onKeyDown: a, placeholder: o, readOnly: s, reference: c, segments: l, tabIndex: u }) {
258
- let d = l[t], f = se(t, {
257
+ function xe({ disabled: e, field: t, format: n, onBlur: r, onFocus: i, onKeyDown: a, label: o, readOnly: s, reference: c, segments: l, tabIndex: u }) {
258
+ let d = l[t], f = ce(t, {
259
259
  year: l.year ?? c.year,
260
260
  month: l.month ?? c.month
261
261
  }), p = d === null ? void 0 : t === "month" ? n.monthNames("long")[d - 1] ?? String(d) : String(d);
@@ -278,7 +278,7 @@ function be({ disabled: e, field: t, format: n, onBlur: r, onFocus: i, onKeyDown
278
278
  },
279
279
  role: "spinbutton",
280
280
  tabIndex: e ? -1 : u,
281
- children: ye({
281
+ children: C({
282
282
  field: t,
283
283
  format: n,
284
284
  reference: c,
@@ -287,4 +287,4 @@ function be({ disabled: e, field: t, format: n, onBlur: r, onFocus: i, onKeyDown
287
287
  });
288
288
  }
289
289
  //#endregion
290
- export { x as i, _e as n, S as r, w as t };
290
+ export { x as i, y as n, ve as r, S as t };
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./date-field-BxEpqAPg.js";
1
+ import { i as e, n as t, r as n, t as r } from "./date-field-DEauLQVL.js";
2
2
  export { t as DATE_FIELD_YEAR_PIVOT, r as DateField, n as DateFieldDefaultsProvider, e as useDateFieldDefaults };
@@ -1,8 +1,8 @@
1
1
  import { n as e, t } from "./icon-T9Yt4tnm.js";
2
2
  import { n, r } from "./i18n-DpW8lqJ1.js";
3
- import { n as i, r as a, t as ee } from "./calendar-BZ6PP7Ke.js";
3
+ import { n as i, r as a, t as ee } from "./calendar-xcoBnHpK.js";
4
4
  import { b as o } from "./field-BxQFpOXS.js";
5
- import { t as te } from "./date-field-BxEpqAPg.js";
5
+ import { t as te } from "./date-field-DEauLQVL.js";
6
6
  import { tabbables as ne } from "@slotted/core/focus";
7
7
  import { createControllable as s } from "@slotted/core/state";
8
8
  import { createContext as c, useCallback as re, useContext as ie, useEffect as l, useId as ae, useImperativeHandle as oe, useLayoutEffect as se, useMemo as ce, useRef as u, useState as d } from "react";
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./date-picker-DRk9SZp1.js";
1
+ import { n as e, r as t, t as n } from "./date-picker-C22jlzUv.js";
2
2
  export { n as DatePicker, e as DatePickerDefaultsProvider, t as useDatePickerDefaults };
@@ -1,8 +1,8 @@
1
1
  import { n as e, t } from "./icon-T9Yt4tnm.js";
2
2
  import { n, r } from "./i18n-DpW8lqJ1.js";
3
- import { i, t as a } from "./calendar-BZ6PP7Ke.js";
3
+ import { i, t as a } from "./calendar-xcoBnHpK.js";
4
4
  import { b as ee } from "./field-BxQFpOXS.js";
5
- import { t as o } from "./date-field-BxEpqAPg.js";
5
+ import { t as o } from "./date-field-DEauLQVL.js";
6
6
  import { tabbables as te } from "@slotted/core/focus";
7
7
  import { createControllable as s } from "@slotted/core/state";
8
8
  import { createContext as c, useCallback as l, useContext as ne, useEffect as u, useId as re, useImperativeHandle as ie, useLayoutEffect as ae, useMemo as d, useRef as f, useState as p } from "react";
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./date-range-picker-6Yz7avTS.js";
1
+ import { i as e, n as t, r as n, t as r } from "./date-range-picker-BUKoddmL.js";
2
2
  export { r as DateRangePicker, n as DateRangePickerDefaultsProvider, t as DateRangePickerPreset, e as useDateRangePickerDefaults };
@@ -60,10 +60,10 @@ var Se = {
60
60
  second: 0
61
61
  }
62
62
  };
63
- function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, calendar: le, className: x, clearable: xe = !1, defaultValue: we, disabled: Te, end: De, firstDayOfWeek: Oe, granularity: ke, hourCycle: Ae, id: je, invalid: Me, isDateUnavailable: Ne, isTimeUnavailable: Pe, locale: Fe, max: C, messages: Ie, maxTime: Le, min: w, minTime: Re, name: ze, onKeyDown: Be, onPaste: Ve, onValueChange: He, readOnly: Ue, ref: We, referenceDateTime: Ge, relative: Ke, render: qe, required: Je, size: Ye, start: Xe, style: Ze, timeZone: Qe, value: T, variant: $e, yearPivot: et, ...tt }) {
64
- let E = i(), nt = E?.registerControl;
65
- l(() => nt?.(), [nt]);
66
- let D = S(), rt = n(), it = r(ee, Ie), O = p(null), at = p(null), ot = u(), st = Fe ?? rt, ct = Qe ?? D.timeZone, k = ke ?? D.granularity, lt = Ae ?? D.hourCycle, ut = le ?? D.calendar, A = Oe ?? D.firstDayOfWeek, j = et ?? D.yearPivot, dt = Ke ?? D.relative, ft = Ye ?? E?.size ?? D.size, pt = $e ?? D.variant, M = Te ?? E?.disabled, N = Ue ?? E?.readOnly, mt = Me ?? E?.invalid, ht = Je ?? E?.required, P = f(() => oe({
63
+ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, calendar: le, className: x, clearable: xe = !1, defaultValue: we, disabled: Te, end: De, firstDayOfWeek: Oe, granularity: ke, hourCycle: Ae, id: je, invalid: Me, isDateUnavailable: Ne, isTimeUnavailable: Pe, locale: Fe, max: C, messages: Ie, maxTime: Le, min: Re, minTime: ze, name: Be, onKeyDown: Ve, onPaste: He, onValueChange: Ue, readOnly: We, ref: Ge, referenceDateTime: Ke, relative: qe, render: Je, required: Ye, size: Xe, start: Ze, style: Qe, timeZone: $e, value: w, variant: et, yearPivot: tt, ...nt }) {
64
+ let T = i(), rt = T?.registerControl;
65
+ l(() => rt?.(), [rt]);
66
+ let E = S(), it = n(), D = r(ee, Ie), O = p(null), at = p(null), ot = u(), st = Fe ?? it, ct = $e ?? E.timeZone, k = ke ?? E.granularity, lt = Ae ?? E.hourCycle, ut = le ?? E.calendar, A = Oe ?? E.firstDayOfWeek, j = tt ?? E.yearPivot, dt = qe ?? E.relative, ft = Xe ?? T?.size ?? E.size, pt = et ?? E.variant, M = Te ?? T?.disabled, N = We ?? T?.readOnly, mt = Me ?? T?.invalid, ht = Ye ?? T?.required, P = f(() => oe({
67
67
  granularity: k,
68
68
  hourCycle: lt,
69
69
  locale: st,
@@ -77,7 +77,7 @@ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, cal
77
77
  j
78
78
  ]), [gt, _t] = m(() => Ce);
79
79
  l(() => _t(he(ct)), [ct]);
80
- let F = Ge ?? gt, I = f(() => {
80
+ let F = Ke ?? gt, I = f(() => {
81
81
  let e = P.toDisplay(F.time.hour);
82
82
  return {
83
83
  ...F.date,
@@ -87,18 +87,18 @@ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, cal
87
87
  minute: F.time.minute,
88
88
  second: F.time.second
89
89
  };
90
- }, [F, P]), [vt, yt] = m(() => y(T ?? we ?? null, P)), [L, R] = m(void 0), [z, B] = m(null), V = p(vt), H = () => V.current;
90
+ }, [F, P]), [vt, yt] = m(() => y(w ?? we ?? null, P)), [L, R] = m(void 0), [z, B] = m(null), V = p(vt), H = () => V.current;
91
91
  l(() => {
92
- T !== void 0 && (pe(v(V.current, P), T) || (V.current = y(T, P), yt(V.current)));
93
- }, [P, T]);
92
+ w !== void 0 && (pe(v(V.current, P), w) || (V.current = y(w, P), yt(V.current)));
93
+ }, [P, w]);
94
94
  let U = vt, W = v(U, P), bt = ue(U, P), G = f(() => P.pattern.filter((e) => e.type !== "literal").map((e) => e.type), [P]), K = s((e, t, n) => {
95
95
  let r = v(V.current, P);
96
96
  V.current = e, yt(e), e.typing === null && a({
97
- controlled: T,
97
+ controlled: w,
98
98
  initial: r,
99
99
  equals: pe,
100
100
  onRequest: (t) => {
101
- He?.(t.value, {
101
+ Ue?.(t.value, {
102
102
  ...t,
103
103
  incomplete: ue(e, P),
104
104
  segments: e
@@ -107,8 +107,8 @@ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, cal
107
107
  }).request(v(e, P), t, n);
108
108
  }, [
109
109
  P,
110
- He,
111
- T
110
+ Ue,
111
+ w
112
112
  ]), q = s((e) => {
113
113
  R(e), O.current?.querySelector(`[data-part="segment"][data-field="${e}"]`)?.focus();
114
114
  }, []), xt = s(() => {
@@ -118,7 +118,7 @@ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, cal
118
118
  let n = G.indexOf(e) + t, r = G[n];
119
119
  r !== void 0 && q(r);
120
120
  }, [G, q]);
121
- d(We, () => ({
121
+ d(Ge, () => ({
122
122
  focus: () => {
123
123
  let e = G[0];
124
124
  e !== void 0 && q(e);
@@ -160,7 +160,7 @@ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, cal
160
160
  ]), Q = (e) => {
161
161
  e.preventDefault(), e.stopPropagation();
162
162
  }, Tt = (e) => (t) => {
163
- if (Be?.(t), t.defaultPrevented) return;
163
+ if (Ve?.(t), t.defaultPrevented) return;
164
164
  let n = O.current !== null && getComputedStyle(O.current).direction === "rtl", r = n ? "ArrowLeft" : "ArrowRight", i = n ? "ArrowRight" : "ArrowLeft";
165
165
  if (t.key === r) {
166
166
  Q(t), J(e, 1);
@@ -212,7 +212,7 @@ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, cal
212
212
  }
213
213
  }
214
214
  }, Et = (e) => {
215
- if (Be?.(e), !e.defaultPrevented) {
215
+ if (Ve?.(e), !e.defaultPrevented) {
216
216
  if (e.key === "Enter") {
217
217
  Q(e), wt(e);
218
218
  let t = G[0];
@@ -222,7 +222,7 @@ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, cal
222
222
  e.key === "Escape" && (Q(e), Ct());
223
223
  }
224
224
  }, Dt = (e) => {
225
- if (Ve?.(e), e.defaultPrevented || !Y) return;
225
+ if (He?.(e), e.defaultPrevented || !Y) return;
226
226
  let t = e.clipboardData.getData("text/plain"), n = P.parse(t);
227
227
  if (n !== null) {
228
228
  e.preventDefault(), K(y(n, P), "keyboard", e);
@@ -242,9 +242,9 @@ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, cal
242
242
  }, jt = `${ot}-value`, Mt = W === null ? void 0 : P.describe(W), $ = W === null ? null : se(W.date, {
243
243
  max: C,
244
244
  maxTime: Le,
245
- min: w,
246
- minTime: Re
247
- }), Nt = W !== null && (!de(W, w, C) || $ === null || !me(W.time, $.earliest, $.latest)), Pt = W !== null && (Ne?.(W.date) === !0 || Pe?.(W.time, W.date) === !0), Ft = mt === !0 || Pt || Nt, It = G.every((e) => U[e] === null), Lt = xe && !It && Y && !X, Rt = f(() => {
245
+ min: Re,
246
+ minTime: ze
247
+ }), Nt = W !== null && (!de(W, Re, C) || $ === null || !me(W.time, $.earliest, $.latest)), Pt = W !== null && (Ne?.(W.date) === !0 || Pe?.(W.time, W.date) === !0), Ft = mt === !0 || Pt || Nt, It = G.every((e) => U[e] === null), Lt = xe && !It && Y && !X, Rt = f(() => {
248
248
  let e = [];
249
249
  for (let t of P.pattern) {
250
250
  let n = t.half ?? "date", r = e[e.length - 1];
@@ -255,13 +255,13 @@ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, cal
255
255
  }
256
256
  return e;
257
257
  }, [P]), zt = /* @__PURE__ */ _(h, { children: [
258
- Xe === void 0 ? null : /* @__PURE__ */ g("span", {
258
+ Ze === void 0 ? null : /* @__PURE__ */ g("span", {
259
259
  "data-part": "start",
260
- children: Xe
260
+ children: Ze
261
261
  }),
262
262
  X ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("input", {
263
- "aria-describedby": [o, E?.describedBy].filter(Boolean).join(" ") || void 0,
264
- "aria-label": it("duration"),
263
+ "aria-describedby": [o, T?.describedBy].filter(Boolean).join(" ") || void 0,
264
+ "aria-label": D("duration"),
265
265
  "data-part": "duration",
266
266
  onBlur: (e) => wt(e),
267
267
  onChange: (e) => B(e.target.value),
@@ -288,15 +288,15 @@ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, cal
288
288
  P.time.format(Z.time)
289
289
  ] }) : P.time.format(Z.time)]
290
290
  })] }) : /* @__PURE__ */ g("div", {
291
- "aria-describedby": [o, E?.describedBy].filter(Boolean).join(" ") || void 0,
291
+ "aria-describedby": [o, T?.describedBy].filter(Boolean).join(" ") || void 0,
292
292
  "aria-disabled": M === !0 || void 0,
293
293
  "aria-invalid": Ft ? !0 : void 0,
294
294
  "aria-label": c,
295
- "aria-labelledby": c === void 0 ? [ce ?? E?.ids.label, jt].filter(Boolean).join(" ") : void 0,
295
+ "aria-labelledby": c === void 0 ? [ce ?? T?.ids.label, jt].filter(Boolean).join(" ") : void 0,
296
296
  "aria-readonly": N === !0 || void 0,
297
297
  "aria-required": ht === !0 || void 0,
298
298
  "data-part": "segments",
299
- id: je ?? E?.ids.control,
299
+ id: je ?? T?.ids.control,
300
300
  onPaste: Dt,
301
301
  role: "group",
302
302
  children: Rt.map((e) => /* @__PURE__ */ g("span", {
@@ -317,7 +317,7 @@ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, cal
317
317
  onBlur: Ot,
318
318
  onFocus: () => R(r),
319
319
  onKeyDown: Tt(r),
320
- placeholder: t.value,
320
+ label: D(r),
321
321
  readOnly: N === !0,
322
322
  segments: U,
323
323
  tabIndex: r === (L ?? G[0]) ? 0 : -1
@@ -332,7 +332,7 @@ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, cal
332
332
  children: Mt
333
333
  }),
334
334
  Lt ? /* @__PURE__ */ g("button", {
335
- "aria-label": it("clear"),
335
+ "aria-label": D("clear"),
336
336
  "data-part": "clear",
337
337
  onClick: At,
338
338
  type: "button",
@@ -344,16 +344,16 @@ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, cal
344
344
  }),
345
345
  /* @__PURE__ */ g("input", {
346
346
  "data-part": "hidden-input",
347
- name: ze,
347
+ name: Be,
348
348
  readOnly: !0,
349
349
  type: "hidden",
350
350
  value: W === null ? "" : ve(W)
351
351
  })
352
352
  ] }), Bt = {
353
- ...tt,
353
+ ...nt,
354
354
  children: zt,
355
355
  className: x,
356
- style: Ze,
356
+ style: Qe,
357
357
  ...M === !0 ? { "data-disabled": "" } : {},
358
358
  ...Ft ? { "data-invalid": "" } : {},
359
359
  ...N === !0 ? { "data-readonly": "" } : {},
@@ -370,7 +370,7 @@ function we({ "aria-describedby": o, "aria-label": c, "aria-labelledby": ce, cal
370
370
  onMouseDown: kt,
371
371
  ref: O
372
372
  };
373
- return qe === void 0 ? /* @__PURE__ */ g("div", { ...Bt }) : qe(Bt);
373
+ return Je === void 0 ? /* @__PURE__ */ g("div", { ...Bt }) : Je(Bt);
374
374
  }
375
375
  function Te(e, t, n) {
376
376
  let r = n[e];
@@ -378,7 +378,7 @@ function Te(e, t, n) {
378
378
  let i = n.typing;
379
379
  return i !== null && i.field === e ? String(r).padStart(i.digits, "0") : t.formatValue(r, e);
380
380
  }
381
- function Ee({ disabled: e, field: t, format: n, onBlur: r, onFocus: i, onKeyDown: a, placeholder: o, readOnly: s, segments: c, tabIndex: l }) {
381
+ function Ee({ disabled: e, field: t, format: n, onBlur: r, onFocus: i, onKeyDown: a, label: o, readOnly: s, segments: c, tabIndex: l }) {
382
382
  let u = c[t], d = ce(t, {
383
383
  hourCycle: n.hourCycle,
384
384
  ...c.month === null ? {} : { month: c.month },
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./datetime-field-D2f9u6im.js";
1
+ import { n as e, r as t, t as n } from "./datetime-field-Bptwvuip.js";
2
2
  export { n as DateTimeField, e as DateTimeFieldDefaultsProvider, t as useDateTimeFieldDefaults };
@@ -1,8 +1,8 @@
1
1
  import { n as e, t } from "./icon-T9Yt4tnm.js";
2
2
  import { n, r } from "./i18n-DpW8lqJ1.js";
3
- import { t as i } from "./calendar-BZ6PP7Ke.js";
3
+ import { t as i } from "./calendar-xcoBnHpK.js";
4
4
  import { b as ee } from "./field-BxQFpOXS.js";
5
- import { t as te } from "./datetime-field-D2f9u6im.js";
5
+ import { t as te } from "./datetime-field-Bptwvuip.js";
6
6
  import { tabbables as ne } from "@slotted/core/focus";
7
7
  import { createControllable as re } from "@slotted/core/state";
8
8
  import { createContext as ie, useCallback as a, useContext as ae, useEffect as o, useId as oe, useImperativeHandle as se, useLayoutEffect as ce, useMemo as s, useRef as c, useState as l } from "react";
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./datetime-picker-STqSWMkH.js";
1
+ import { i as e, n as t, r as n, t as r } from "./datetime-picker-BiarFWN3.js";
2
2
  export { t as DATE_TIME_PICKER_MAX_OPTIONS, r as DateTimePicker, n as DateTimePickerDefaultsProvider, e as useDateTimePickerDefaults };
@@ -1,8 +1,8 @@
1
1
  import { n as e, t } from "./icon-T9Yt4tnm.js";
2
2
  import { n, r } from "./i18n-DpW8lqJ1.js";
3
- import { t as i } from "./calendar-BZ6PP7Ke.js";
3
+ import { t as i } from "./calendar-xcoBnHpK.js";
4
4
  import { b as a } from "./field-BxQFpOXS.js";
5
- import { t as o } from "./datetime-field-D2f9u6im.js";
5
+ import { t as o } from "./datetime-field-Bptwvuip.js";
6
6
  import { createControllable as s } from "@slotted/core/state";
7
7
  import { createContext as c, useCallback as l, useContext as ee, useEffect as u, useId as te, useImperativeHandle as ne, useLayoutEffect as re, useMemo as d, useRef as f, useState as p } from "react";
8
8
  import { Fragment as ie, jsx as m, jsxs as h } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./datetime-range-picker-DQNQwr3K.js";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./datetime-range-picker--JtLnGQ2.js";
2
2
  export { n as DATETIME_RANGE_PICKER_MAX_OPTIONS, e as DATETIME_RANGE_PICKER_MONTHS, a as DATETIME_RANGE_PICKER_STEP, c as DateTimeRangePicker, s as DateTimeRangePickerDefaultsProvider, i as DateTimeRangePickerPreset, t as dateTimeRangePickerLengthLabel, o as isSameDateTimeRange, r as useDateTimeRangePickerDefaults };