@revolist/ui 4.0.2-rc → 4.0.3-rc

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 (161) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +345 -263
  3. package/_chunks/{calendar-CpaUK7w1.js → calendar-xpZ0v3xf.js} +39 -29
  4. package/_chunks/{chart-frame-BC99KjGa.js → chart-frame-Cmc7xU1i.js} +16 -13
  5. package/_chunks/{choice-chips-Cs4D-3nH.js → choice-chips-CHQTUdLs.js} +10 -10
  6. package/_chunks/clock-BOhPNlW3.js +4 -0
  7. package/_chunks/{color-palette-BBMFmUNA.js → color-palette-D8vyPfld.js} +1 -1
  8. package/_chunks/{color-picker-D90Jg-M8.js → color-picker-CudqPYZo.js} +10 -10
  9. package/_chunks/{component-YDcfoOLz.js → component-C_T2VN5u.js} +182 -178
  10. package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BMOOmqx5.js} +0 -4
  11. package/_chunks/control-AHKXD5Eu.js +93 -0
  12. package/_chunks/{control-tooltip-ztgmsG7H.js → control-tooltip-uscKfAnV.js} +15 -15
  13. package/_chunks/{controls-DIum-E66.js → controls-DsNi8V8I.js} +144 -129
  14. package/_chunks/{date-control-BJSzu79z.js → date-control-DrVFX13g.js} +1 -1
  15. package/_chunks/{date-time-BxPJusp9.js → date-time-qIhp5vaX.js} +143 -145
  16. package/_chunks/{delete-button-Bblyah10.js → delete-button-CW9vjLnk.js} +6 -6
  17. package/_chunks/{dialog.parts-DBqo3Qwb.js → dialog.parts-CKGkC5zP.js} +20 -20
  18. package/_chunks/{duration-87U2EoMS.js → duration-CL68Em0o.js} +16 -15
  19. package/_chunks/{editor-popup-D3JdS8l3.js → editor-popup-WDdtVDNA.js} +5 -5
  20. package/_chunks/field-context-D57PnBbH.js +5 -0
  21. package/_chunks/{framework-mount-C-Zwm44H.js → framework-mount--RTLIqE-.js} +1 -1
  22. package/_chunks/history-controls-B3u3INEK.js +27 -0
  23. package/_chunks/mount-DQ1cpppK.js +257 -0
  24. package/_chunks/native-control-C_yok8_-.js +605 -0
  25. package/_chunks/{number-input-BeIadZuL.js → number-input-BKwA5FnM.js} +2 -2
  26. package/_chunks/{picker-DpP7iQLA.js → picker-h1P5RUgp.js} +2 -2
  27. package/_chunks/popup-CT2uD3go.js +367 -0
  28. package/_chunks/{rating-choice-Ca8ZBty3.js → rating-choice-DZgmaic0.js} +1 -1
  29. package/_chunks/render-m5eMMwFR.js +83 -0
  30. package/_chunks/{reorder-list-Cc3KmfAN.js → reorder-list-CSlqAGHw.js} +1 -1
  31. package/_chunks/request-trail-DSlFix6i.js +618 -0
  32. package/_chunks/rich-text-CH7gIqOS.js +636 -0
  33. package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
  34. package/_form.scss +1 -1
  35. package/ai/_chat.scss +195 -0
  36. package/ai/_style.scss +105 -34
  37. package/ai/chat.d.ts +63 -0
  38. package/ai/components.d.ts +19 -3
  39. package/ai/index.d.ts +2 -0
  40. package/ai/index.js +3 -3
  41. package/ai/mount.d.ts +30 -1
  42. package/ai/prompt-history.d.ts +13 -0
  43. package/ai/transcript.d.ts +25 -0
  44. package/ai/translations.d.ts +1 -1
  45. package/angular/angular.js +0 -3
  46. package/assignee/index.js +34 -35
  47. package/buttons/delete-button.d.ts +2 -1
  48. package/buttons/delete-button.js +1 -1
  49. package/buttons/remove-button.js +1 -1
  50. package/buttons/svg-button.d.ts +1 -0
  51. package/buttons/svg-button.js +5 -5
  52. package/calendar/_calendar.scss +7 -2
  53. package/calendar/calendar.js +1 -1
  54. package/calendar/index.js +2 -2
  55. package/choice-chips/index.js +1 -1
  56. package/color-palette/color-palette.js +1 -1
  57. package/color-palette/color-picker.js +2 -2
  58. package/component-catalog.d.ts +16 -5
  59. package/control-attributes.js +7 -7
  60. package/controls.d.ts +8 -6
  61. package/controls.js +3 -3
  62. package/core/editor-popup.js +1 -1
  63. package/date-time/index.js +1 -1
  64. package/date-time/style.scss +4 -4
  65. package/dialog/dialog.dom.js +8 -8
  66. package/dialog/dialog.parts.js +1 -1
  67. package/distribution-chart/area-chart.js +1 -1
  68. package/distribution-chart/bar-chart.d.ts +5 -2
  69. package/distribution-chart/bar-chart.js +7 -3
  70. package/distribution-chart/chart-frame.d.ts +2 -1
  71. package/distribution-chart/line-chart.js +1 -1
  72. package/dropdown/content.d.ts +2 -1
  73. package/dropdown/content.js +1 -142
  74. package/dropdown/control.d.ts +14 -0
  75. package/dropdown/control.js +1 -0
  76. package/dropdown/control.view.d.ts +6 -0
  77. package/dropdown/dropdown.types.d.ts +4 -0
  78. package/dropdown/editor-dropdown.style.scss +37 -9
  79. package/dropdown/index.d.ts +1 -1
  80. package/dropdown/index.js +3 -4
  81. package/dropdown/lookup-field.js +1 -1
  82. package/dropdown/popup.js +1 -141
  83. package/duration/index.js +1 -1
  84. package/duration/style.scss +1 -1
  85. package/editor-actions.js +1 -1
  86. package/field-configurator.js +6 -6
  87. package/fieldset.d.ts +3 -0
  88. package/filter/filters/slider/single.js +1 -1
  89. package/filter-badge.js +1 -1
  90. package/filter-controls.js +7 -7
  91. package/form-controls/field-context.d.ts +5 -0
  92. package/form-controls/index.js +7 -12
  93. package/form-controls/index.view.d.ts +2 -4
  94. package/form-controls/presentation.js +51 -43
  95. package/formatting/index.js +25 -21
  96. package/framework.js +215 -207
  97. package/history-controls.d.ts +14 -0
  98. package/history-controls.js +1 -0
  99. package/masked-input/index.js +1 -1
  100. package/native-control.d.ts +6 -4
  101. package/native-control.js +3 -26
  102. package/native-styles.css +1 -1
  103. package/native.js +31 -30
  104. package/number-input/index.js +1 -1
  105. package/package.json +18 -13
  106. package/pagination.d.ts +3 -0
  107. package/pagination.js +43 -33
  108. package/pdf-viewer/index.js +1 -1
  109. package/pdf-viewer/style.scss +3 -4
  110. package/preact.d.ts +2 -0
  111. package/preact.js +62 -62
  112. package/rating-choice.js +1 -1
  113. package/react-control.d.ts +0 -1
  114. package/react-control.js +2 -2
  115. package/react.d.ts +13 -3
  116. package/react.js +71 -88
  117. package/reorder-list.js +1 -1
  118. package/resource-picker/resource-picker-popup.js +1 -1
  119. package/resource-picker/resource-picker.js +4 -4
  120. package/resource-picker/resource-picker.scss +6 -3
  121. package/rich-text/engine.d.ts +16 -19
  122. package/rich-text/index.d.ts +7 -7
  123. package/rich-text/index.js +1 -1
  124. package/rich-text/model.d.ts +4 -3
  125. package/rich-text/render-model.d.ts +4 -5
  126. package/rich-text/style.scss +3 -12
  127. package/rich-text/toolbar.d.ts +6 -6
  128. package/rich-text/translations.d.ts +3 -15
  129. package/select.d.ts +20 -0
  130. package/select.js +1 -0
  131. package/status-feedback/exit-snapshot.js +4 -4
  132. package/status-feedback/index.js +2 -2
  133. package/status-feedback/popover.js +10 -10
  134. package/status-feedback/render.js +3 -44
  135. package/status-feedback/status-feedback.scss +7 -0
  136. package/status-feedback/types.d.ts +4 -0
  137. package/status-feedback/use-auto-dismiss.d.ts +3 -0
  138. package/styles/_compositions.scss +3 -1
  139. package/styles/_control.scss +12 -4
  140. package/styles/_primitives.scss +9 -8
  141. package/styles.css +1 -1
  142. package/surfaces.js +45 -45
  143. package/svelte/UiComponent.server.js +1 -48
  144. package/svelte/UiComponent.svelte +0 -21
  145. package/svelte.js +33 -68
  146. package/time-grid.js +1 -1
  147. package/timeline-track/component.d.ts +5 -1
  148. package/timeline-track/index.js +71 -54
  149. package/timeline-track/model.d.ts +9 -0
  150. package/timeline-track/model.js +10 -1
  151. package/ui.css +1 -1
  152. package/vue.d.ts +24 -5
  153. package/vue.js +140 -164
  154. package/_chunks/compat.module-DDB2pm9O.js +0 -229
  155. package/_chunks/dropdown-voWqmwAe.js +0 -357
  156. package/_chunks/mount-DZe_6VtR.js +0 -90
  157. package/_chunks/request-trail-IdNiFvKH.js +0 -347
  158. package/_chunks/rich-text-BzI1DyfF.js +0 -477
  159. package/react-native-select.d.ts +0 -6
  160. package/rich-text/syntax.d.ts +0 -2
  161. package/vue-native-select.d.ts +0 -9
@@ -2,53 +2,54 @@ import { i as e } from "./preact.module-BBM36DnO.js";
2
2
  import { c as t, i as n, n as r, r as i, t as a } from "./hooks.module-CG3gN83z.js";
3
3
  import { t as o } from "./jsxRuntime.module-F6UFnpT-.js";
4
4
  import { SvgIcon as s } from "../icons/icon.js";
5
- import { createPreactElement as c, releasePreactElement as l } from "../preact-mount.js";
6
- import { Input as u } from "../native-control.js";
7
- import { n as d, z as f } from "./controls-DIum-E66.js";
5
+ import { n as c } from "./native-control-C_yok8_-.js";
6
+ import { createPreactElement as l, releasePreactElement as u } from "../preact-mount.js";
7
+ import { R as d, n as f } from "./controls-DsNi8V8I.js";
8
8
  import { createControlId as p } from "../core/control-id.js";
9
9
  import { EditorList as m, EditorListItem as h } from "../editor-layout/index.js";
10
- import { i as g, s as _ } from "./iso-B0YHBK7m.js";
11
- import { f as v, h as y, m as b, p as x } from "./model-mPO2tG2f.js";
12
- import { n as S, t as C } from "./date-control-BJSzu79z.js";
13
- import { t as w } from "./picker-DpP7iQLA.js";
14
- import { t as T } from "./editor-popup-D3JdS8l3.js";
15
- import { n as E } from "./editor-commit-Bq3wSgvr.js";
16
- import { EditorActions as D } from "../editor-actions.js";
10
+ import { t as g } from "./clock-BOhPNlW3.js";
11
+ import { i as _, s as v } from "./iso-B0YHBK7m.js";
12
+ import { f as y, h as b, m as x, p as S } from "./model-mPO2tG2f.js";
13
+ import { n as C, t as w } from "./date-control-DrVFX13g.js";
14
+ import { t as T } from "./picker-h1P5RUgp.js";
15
+ import { t as E } from "./editor-popup-WDdtVDNA.js";
16
+ import { n as D } from "./editor-commit-Bq3wSgvr.js";
17
+ import { EditorActions as O } from "../editor-actions.js";
17
18
  //#region ../dates/src/date-controls.ts
18
- var O = /^(\d{4})-(\d{2})-(\d{2})$/, k = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,3}))?)?$/, A = /^(\d{2}):(\d{2})(?::(\d{2}))?$/;
19
- function j(e, t, n = "minute") {
19
+ var k = /^(\d{4})-(\d{2})-(\d{2})$/, A = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,3}))?)?$/, j = /^(\d{2}):(\d{2})(?::(\d{2}))?$/;
20
+ function M(e, t, n = "minute") {
20
21
  if (Number.isNaN(t.getTime())) return "";
21
- let r = `${N(t.getHours())}:${N(t.getMinutes())}${n === "second" ? `:${N(t.getSeconds())}` : ""}`;
22
+ let r = `${P(t.getHours())}:${P(t.getMinutes())}${n === "second" ? `:${P(t.getSeconds())}` : ""}`;
22
23
  if (e === "time") return r;
23
- let i = g(t);
24
+ let i = _(t);
24
25
  return e === "date" ? i : `${i}T${r}`;
25
26
  }
26
- function M(e, t, n = /* @__PURE__ */ new Date()) {
27
+ function N(e, t, n = /* @__PURE__ */ new Date()) {
27
28
  if (e === "time") {
28
- let e = A.exec(t);
29
+ let e = j.exec(t);
29
30
  if (!e) return;
30
31
  let r = Number(e[1]), i = Number(e[2]), a = Number(e[3] ?? 0);
31
32
  if (r > 23 || i > 59 || a > 59 || Number.isNaN(n.getTime())) return;
32
33
  let o = new Date(n.getTime());
33
34
  return o.setHours(r, i, a, 0), o;
34
35
  }
35
- let r = e === "date" ? O.exec(t) : k.exec(t);
36
+ let r = e === "date" ? k.exec(t) : A.exec(t);
36
37
  if (!r) return;
37
38
  let i = Number(r[1]), a = Number(r[2]), o = Number(r[3]), s = Number(r[4] ?? 0), c = Number(r[5] ?? 0), l = Number(r[6] ?? 0), u = Number((r[7] ?? "").padEnd(3, "0")), d = /* @__PURE__ */ new Date(0);
38
39
  if (d.setFullYear(i, a - 1, o), d.setHours(s, c, l, u), !(a < 1 || a > 12 || o < 1 || d.getFullYear() !== i || d.getMonth() !== a - 1 || d.getDate() !== o || d.getHours() !== s || d.getMinutes() !== c || d.getSeconds() !== l || d.getMilliseconds() !== u)) return d;
39
40
  }
40
- function N(e) {
41
+ function P(e) {
41
42
  return String(e).padStart(2, "0");
42
43
  }
43
44
  //#endregion
44
45
  //#region ../dates/src/civil-time.ts
45
- var P = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/;
46
- function F(e) {
46
+ var F = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/;
47
+ function I(e) {
47
48
  let t = /* @__PURE__ */ new Date(0);
48
49
  return t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(e.hour, e.minute, e.second, 0), t.getTime();
49
50
  }
50
- function I(e) {
51
- let t = P.exec(e);
51
+ function L(e) {
52
+ let t = F.exec(e);
52
53
  if (!t) return;
53
54
  let n = {
54
55
  year: Number(t[1]),
@@ -57,7 +58,7 @@ function I(e) {
57
58
  hour: Number(t[4]),
58
59
  minute: Number(t[5]),
59
60
  second: Number(t[6] ?? 0)
60
- }, r = new Date(F(n)), i = {
61
+ }, r = new Date(I(n)), i = {
61
62
  year: r.getUTCFullYear(),
62
63
  month: r.getUTCMonth() + 1,
63
64
  day: r.getUTCDate(),
@@ -69,33 +70,33 @@ function I(e) {
69
70
  }
70
71
  //#endregion
71
72
  //#region ../dates/src/temporal-controls.ts
72
- function L(e) {
73
+ function R(e) {
73
74
  return e.split("T")[0];
74
75
  }
75
- function R(e) {
76
+ function z(e) {
76
77
  return e.includes("T") ? e.split("T")[1] : e;
77
78
  }
78
- function z(e, t, n) {
79
- return n === "datetime" ? `${e}T${t.includes("T") ? R(t) : "00:00"}` : e;
80
- }
81
79
  function B(e, t, n) {
82
- return n === "datetime" ? `${L(e)}T${t}` : t;
80
+ return n === "datetime" ? `${e}T${t.includes("T") ? z(t) : "00:00"}` : e;
81
+ }
82
+ function V(e, t, n) {
83
+ return n === "datetime" ? `${R(e)}T${t}` : t;
83
84
  }
84
- function V(e, t) {
85
- return e === "date" ? _(t) : e === "datetime" ? !!I(t.replace(/(\d{2}:\d{2}:\d{2})\.\d{1,3}$/, "$1")) : !!M(e, t);
85
+ function H(e, t) {
86
+ return e === "date" ? v(t) : e === "datetime" ? !!L(t.replace(/(\d{2}:\d{2}:\d{2})\.\d{1,3}$/, "$1")) : !!N(e, t);
86
87
  }
87
- function H(e) {
88
- let t = M("time", e);
88
+ function U(e) {
89
+ let t = N("time", e);
89
90
  return t ? t.getHours() * 3600 + t.getMinutes() * 60 + t.getSeconds() : void 0;
90
91
  }
91
- function U(e, t) {
92
- let n = H(e);
92
+ function W(e, t) {
93
+ let n = U(e);
93
94
  if (n === void 0) return !1;
94
- let r = t.min ? H(t.min) : void 0, i = t.max ? H(t.max) : void 0;
95
+ let r = t.min ? U(t.min) : void 0, i = t.max ? U(t.max) : void 0;
95
96
  return (r === void 0 || n >= r) && (i === void 0 || n <= i) && (t.step === void 0 || t.step > 0 && (n - (r ?? 0)) % t.step === 0);
96
97
  }
97
- function W(e, t, n = "minute", r) {
98
- let i = M("time", e);
98
+ function G(e, t, n = "minute", r) {
99
+ let i = N("time", e);
99
100
  return i ? new Intl.DateTimeFormat(r ?? (t === "12h" ? "en-US" : "en-GB"), {
100
101
  hour: "2-digit",
101
102
  minute: "2-digit",
@@ -103,7 +104,7 @@ function W(e, t, n = "minute", r) {
103
104
  hourCycle: t === "12h" ? "h12" : "h23"
104
105
  }).format(i) : e;
105
106
  }
106
- function G(e, t = "minute", n) {
107
+ function K(e, t = "minute", n) {
107
108
  if (e = e.replace(/[\u200e\u200f\u061c]/g, "").trim(), n) {
108
109
  let t = new Intl.NumberFormat(n, { useGrouping: !1 });
109
110
  for (let n = 0; n < 10; n++) e = e.split(t.format(n)).join(String(n));
@@ -124,39 +125,39 @@ function G(e, t = "minute", n) {
124
125
  for (let t of i) t.type === "literal" && t.value.trim() && (e = e.split(t.value).join(":"));
125
126
  e = e.replace(/^\s*(AM|PM)\s*(.*)$/i, "$2 $1");
126
127
  }
127
- let r = M("time", e.trim());
128
- if (r) return j("time", r, t);
128
+ let r = N("time", e.trim());
129
+ if (r) return M("time", r, t);
129
130
  let i = /^(\d{1,2}):(\d{2})(?::(\d{2}))?\s*([ap])\.?m\.?$/i.exec(e.trim());
130
131
  if (!i) return;
131
132
  let a = Number(i[1]);
132
133
  if (a < 1 || a > 12) return;
133
- let o = M("time", `${String(a % 12 + (i[4].toLowerCase() === "p" ? 12 : 0)).padStart(2, "0")}:${i[2]}:${i[3] ?? "00"}`);
134
- return o ? j("time", o, t) : void 0;
134
+ let o = N("time", `${String(a % 12 + (i[4].toLowerCase() === "p" ? 12 : 0)).padStart(2, "0")}:${i[2]}:${i[3] ?? "00"}`);
135
+ return o ? M("time", o, t) : void 0;
135
136
  }
136
137
  //#endregion
137
138
  //#region ../dates/src/time-selection.ts
138
- function K(e) {
139
- let t = e.min ? H(e.min) : void 0, n = e.max ? H(e.max) : void 0, r = e.step ?? (e.precision === "second" ? 1 : 60);
139
+ function q(e) {
140
+ let t = e.min ? U(e.min) : void 0, n = e.max ? U(e.max) : void 0, r = e.step ?? (e.precision === "second" ? 1 : 60);
140
141
  if (!Number.isFinite(r) || r <= 0) return [];
141
142
  let i = e.precision === "second" ? 1 : 60, a = [];
142
143
  for (let e = 0; e < 86400; e += i) (t === void 0 || e >= t) && (n === void 0 || e <= n) && (e - (t ?? 0)) % r === 0 && a.push(e);
143
144
  return a;
144
145
  }
145
- function q(e, t = "minute") {
146
+ function J(e, t = "minute") {
146
147
  let n = (e) => String(e).padStart(2, "0");
147
148
  return `${n(Math.floor(e / 3600))}:${n(Math.floor(e / 60) % 60)}${t === "second" ? `:${n(e % 60)}` : ""}`;
148
149
  }
149
- function J(e, t) {
150
+ function ee(e, t) {
150
151
  return e === "12h" || e === "locale" && !!new Intl.DateTimeFormat(t, { hour: "numeric" }).resolvedOptions().hour12;
151
152
  }
152
- function ee(e, t) {
153
+ function te(e, t) {
153
154
  return new Intl.DateTimeFormat(t, {
154
155
  hour: "numeric",
155
156
  hourCycle: "h12"
156
157
  }).formatToParts(new Date(2e3, 0, 1, e ? 13 : 1)).find((e) => e.type === "dayPeriod")?.value ?? (e ? "PM" : "AM");
157
158
  }
158
- function te(e, t, n) {
159
- let r = H(t), i = r ?? e[0] ?? 0, a = Math.floor(i / 3600), o = Math.floor(i / 60) % 60, s = i % 60, c = {
159
+ function ne(e, t, n) {
160
+ let r = U(t), i = r ?? e[0] ?? 0, a = Math.floor(i / 3600), o = Math.floor(i / 60) % 60, s = i % 60, c = {
160
161
  hour: /* @__PURE__ */ new Map(),
161
162
  minute: /* @__PURE__ */ new Map(),
162
163
  second: /* @__PURE__ */ new Map(),
@@ -214,60 +215,60 @@ function Z(e, t, n = "") {
214
215
  let { kind: r = "date", selection: i = "single", value: a, calendar: o = {} } = e, s = {
215
216
  ...Y,
216
217
  ...e.text
217
- }, c = a && !Array.isArray(a) && typeof a == "object" ? a : void 0, l = typeof a == "string" ? a : "", u = c?.from ?? "", d = c?.to ?? "", f = e.required ?? o.required ?? !1, p = c ? [u, d] : Array.isArray(a) ? a : l ? [l] : [], m = (e) => _(e) && (!o.minDate || e >= o.minDate) && (!o.maxDate || e <= o.maxDate) && !o.isDateDisabled?.(e) && !o.isMonthDisabled?.(v(e, o.calendarSystem)), h = (t) => V(r, t) && (r === "time" || m(L(t))) && (r === "date" || U(R(t), {
218
+ }, c = a && !Array.isArray(a) && typeof a == "object" ? a : void 0, l = typeof a == "string" ? a : "", u = c?.from ?? "", d = c?.to ?? "", f = e.required ?? o.required ?? !1, p = c ? [u, d] : Array.isArray(a) ? a : l ? [l] : [], m = (e) => v(e) && (!o.minDate || e >= o.minDate) && (!o.maxDate || e <= o.maxDate) && !o.isDateDisabled?.(e) && !o.isMonthDisabled?.(y(e, o.calendarSystem)), h = (t) => H(r, t) && (r === "time" || m(R(t))) && (r === "date" || W(z(t), {
218
219
  min: e.minTime,
219
220
  max: e.maxTime,
220
221
  step: e.timeStep
221
- })), g = c && d ? b(L(u), L(d)) : 0, y = i === "multiple" ? p.length : g, S = !p.length && !f || i === "single" || (!o.min || y >= o.min) && (o.max === void 0 || y <= o.max), C = (() => {
222
+ })), g = c && d ? x(R(u), R(d)) : 0, _ = i === "multiple" ? p.length : g, b = !p.length && !f || i === "single" || (!o.min || _ >= o.min) && (o.max === void 0 || _ <= o.max), C = (() => {
222
223
  if (r === "time" || !c?.to || !o.excludeDisabled || !p.every(h)) return !0;
223
224
  if (g > 366e3) return !1;
224
- for (let e = L(u); e <= L(d); e = x(e, 1)) if (!m(e)) return !1;
225
+ for (let e = R(u); e <= R(d); e = S(e, 1)) if (!m(e)) return !1;
225
226
  return !0;
226
227
  })(), w = "", T = r === "time" || p.every((e) => {
227
- let n = L(e);
228
- if (!_(n)) return !1;
228
+ let n = R(e);
229
+ if (!v(n)) return !1;
229
230
  let r = o.validateSelection?.(n, {
230
231
  month: o.month ?? t,
231
232
  view: o.defaultView ?? "month",
232
233
  referenceDate: o.referenceDate,
233
234
  selection: c ? {
234
- from: L(u),
235
- to: L(d || u)
235
+ from: R(u),
236
+ to: R(d || u)
236
237
  } : {
237
238
  from: n,
238
239
  to: n
239
240
  }
240
241
  });
241
242
  return typeof r == "string" && (w = r), r !== !1 && typeof r != "string";
242
- }), E = !n && S && T && C && (!f || p.length > 0) && p.every(h) && (i !== "multiple" || new Set(p).size === p.length) && (!c || !!d && u <= d) && (i !== "multiple" || r === "date"), D = (t) => e.text?.[t] ?? e.text?.invalid ?? s[t] ?? s.invalid, O = r === "time" ? [] : p.map(L);
243
+ }), E = !n && b && T && C && (!f || p.length > 0) && p.every(h) && (i !== "multiple" || new Set(p).size === p.length) && (!c || !!d && u <= d) && (i !== "multiple" || r === "date"), D = (t) => e.text?.[t] ?? e.text?.invalid ?? s[t] ?? s.invalid, O = r === "time" ? [] : p.map(R);
243
244
  return {
244
245
  valid: E,
245
- errorMessage: n || w || (!p.length && f ? D("requiredValue") : c && (!u || !d) ? D("invalidRange") : O.some((e) => !_(e)) ? D("invalidDate") : O.some((e) => o.minDate && e < o.minDate || o.maxDate && e > o.maxDate) ? D("outOfRange") : O.some((e) => !m(e)) || !C ? D("disabledDate") : c && (!d || u > d) ? D("invalidRange") : !S || i === "multiple" && new Set(p).size !== p.length ? D("selectionCount") : s.invalid),
246
+ errorMessage: n || w || (!p.length && f ? D("requiredValue") : c && (!u || !d) ? D("invalidRange") : O.some((e) => !v(e)) ? D("invalidDate") : O.some((e) => o.minDate && e < o.minDate || o.maxDate && e > o.maxDate) ? D("outOfRange") : O.some((e) => !m(e)) || !C ? D("disabledDate") : c && (!d || u > d) ? D("invalidRange") : !b || i === "multiple" && new Set(p).size !== p.length ? D("selectionCount") : s.invalid),
246
247
  validDate: m
247
248
  };
248
249
  }
249
250
  //#endregion
250
251
  //#region src/date-time/time-control.tsx
251
- function ne({ value: e, label: t, format: r = "locale", precision: i = "minute", locale: a, min: s, max: c, step: l, onChange: d }) {
252
+ function re({ value: e, label: t, format: r = "locale", precision: i = "minute", locale: a, min: s, max: l, step: u, onChange: d }) {
252
253
  let [f, p] = n(!1), [m, h] = n("");
253
- if (r === "locale") return /* @__PURE__ */ o(u, {
254
+ if (r === "locale") return /* @__PURE__ */ o(c, {
254
255
  type: "time",
255
256
  "aria-label": t,
256
257
  value: e,
257
258
  min: s,
258
- max: c,
259
- step: l ?? (i === "second" ? 1 : 60),
259
+ max: l,
260
+ step: u ?? (i === "second" ? 1 : 60),
260
261
  onInput: (e) => d(e.currentTarget.value)
261
262
  });
262
- let g = W(e, r, i, a);
263
- return /* @__PURE__ */ o(u, {
263
+ let g = G(e, r, i, a);
264
+ return /* @__PURE__ */ o(c, {
264
265
  type: "text",
265
266
  "aria-label": t,
266
267
  value: f ? m : g,
267
- "aria-invalid": !!e && !U(e, {
268
+ "aria-invalid": !!e && !W(e, {
268
269
  min: s,
269
- max: c,
270
- step: l
270
+ max: l,
271
+ step: u
271
272
  }),
272
273
  placeholder: r === "12h" ? "09:00 AM" : "09:00",
273
274
  onFocus: () => {
@@ -276,13 +277,13 @@ function ne({ value: e, label: t, format: r = "locale", precision: i = "minute",
276
277
  onBlur: () => p(!1),
277
278
  onInput: (e) => {
278
279
  let t = e.currentTarget.value;
279
- h(t), d(t ? G(t, i, a) ?? t : "");
280
+ h(t), d(t ? K(t, i, a) ?? t : "");
280
281
  }
281
282
  });
282
283
  }
283
284
  //#endregion
284
285
  //#region src/date-time/time-selection.tsx
285
- function re({ label: e, accessibleLabel: t, values: n, selected: r, choices: s, display: c, onSelect: l }) {
286
+ function ie({ label: e, accessibleLabel: t, values: n, selected: r, choices: s, display: c, onSelect: l }) {
286
287
  let u = a(null), d = r !== void 0 && s.has(r), f = d ? r : n.find((e) => s.has(e));
287
288
  i(() => {
288
289
  let e = u.current;
@@ -322,7 +323,7 @@ function re({ label: e, accessibleLabel: t, values: n, selected: r, choices: s,
322
323
  });
323
324
  }
324
325
  function Q({ value: e, label: t, text: n, onChange: i, format: a = "locale", precision: s = "minute", locale: c, min: l, max: u, step: d }) {
325
- let f = J(a, c), p = r(() => K({
326
+ let f = ee(a, c), p = r(() => q({
326
327
  min: l,
327
328
  max: u,
328
329
  step: d,
@@ -332,14 +333,14 @@ function Q({ value: e, label: t, text: n, onChange: i, format: a = "locale", pre
332
333
  u,
333
334
  d,
334
335
  s
335
- ]), m = r(() => te(p, e, f), [
336
+ ]), m = r(() => ne(p, e, f), [
336
337
  p,
337
338
  e,
338
339
  f
339
340
  ]), h = r(() => new Intl.NumberFormat(c, {
340
341
  minimumIntegerDigits: 2,
341
342
  useGrouping: !1
342
- }), [c]), g = (e) => i(q(e, s)), _ = (e, n, r, i = (e) => h.format(e)) => /* @__PURE__ */ o(re, {
343
+ }), [c]), g = (e) => i(J(e, s)), _ = (e, n, r, i = (e) => h.format(e)) => /* @__PURE__ */ o(ie, {
343
344
  label: n,
344
345
  accessibleLabel: `${t}: ${n}`,
345
346
  values: r,
@@ -353,7 +354,7 @@ function Q({ value: e, label: t, text: n, onChange: i, format: a = "locale", pre
353
354
  children: [
354
355
  /* @__PURE__ */ o("label", {
355
356
  class: "rv-time-selection__entry",
356
- children: [/* @__PURE__ */ o("span", { children: t }), /* @__PURE__ */ o(ne, {
357
+ children: [/* @__PURE__ */ o("span", { children: t }), /* @__PURE__ */ o(re, {
357
358
  value: e,
358
359
  label: t,
359
360
  format: a,
@@ -375,7 +376,7 @@ function Q({ value: e, label: t, text: n, onChange: i, format: a = "locale", pre
375
376
  }),
376
377
  f && /* @__PURE__ */ o("div", {
377
378
  class: "rv-time-selection__period",
378
- children: _("period", n.dayPeriod, [0, 1], (e) => ee(e, c))
379
+ children: _("period", n.dayPeriod, [0, 1], (e) => te(e, c))
379
380
  }),
380
381
  !p.length && /* @__PURE__ */ o("p", {
381
382
  class: "rv-time-selection__empty",
@@ -387,25 +388,25 @@ function Q({ value: e, label: t, text: n, onChange: i, format: a = "locale", pre
387
388
  }
388
389
  //#endregion
389
390
  //#region src/date-time/picker.tsx
390
- function ie(r) {
391
+ function ae(r) {
391
392
  let { kind: i = "date", selection: a = "single", value: s, onChange: c, calendar: l = {} } = r, u = {
392
393
  ...Y,
393
394
  ...r.text
394
- }, [m] = n(() => p("rv-date-error")), h = (e) => i === "date" ? e : L(e), g = {
395
+ }, [m] = n(() => p("rv-date-error")), h = (e) => i === "date" ? e : R(e), g = {
395
396
  locale: l.locale,
396
397
  ...typeof r.dateInput == "object" ? r.dateInput : {}
397
- }, [b, x] = n(r.endpoint === "to" ? "to" : void 0), [S, T] = n(""), E = s && !Array.isArray(s) && typeof s == "object" ? s : void 0, D = typeof s == "string" ? s : "", O = Array.isArray(s) ? s : [], k = E?.from ?? "", A = E?.to ?? "", j = L(i === "time" ? y() : r.endpoint === "to" ? A : k || D || O[0] || ""), [M, N] = n(() => l.defaultMonth ?? v(_(j) ? j : y(), l.calendarSystem)), P = r.required ?? l.required ?? !1, { valid: F, errorMessage: I, validDate: V } = Z(r, M, S);
398
+ }, [_, x] = n(r.endpoint === "to" ? "to" : void 0), [S, C] = n(""), E = s && !Array.isArray(s) && typeof s == "object" ? s : void 0, D = typeof s == "string" ? s : "", O = Array.isArray(s) ? s : [], k = E?.from ?? "", A = E?.to ?? "", j = R(i === "time" ? b() : r.endpoint === "to" ? A : k || D || O[0] || ""), [M, N] = n(() => l.defaultMonth ?? y(v(j) ? j : b(), l.calendarSystem)), P = r.required ?? l.required ?? !1, { valid: F, errorMessage: I, validDate: L } = Z(r, M, S);
398
399
  t(() => r.onValidityChange?.(!!F), [F]);
399
400
  let H = (e) => {
400
- T(""), c(e);
401
+ C(""), c(e);
401
402
  }, U = (e) => {
402
403
  H(e), i === "date" && a !== "multiple" && Z({
403
404
  ...r,
404
405
  value: e
405
406
  }, M).valid && r.onSelectionComplete?.(e);
406
407
  }, W = (e) => {
407
- if (!V(e)) return;
408
- let t = v(e, l.calendarSystem);
408
+ if (!L(e)) return;
409
+ let t = y(e, l.calendarSystem);
409
410
  t !== (l.month ?? M) && (N(t), l.onMonthChange?.(t));
410
411
  }, G = (e, t) => {
411
412
  if (typeof t != "string") return;
@@ -413,14 +414,14 @@ function ie(r) {
413
414
  let n = {
414
415
  from: k,
415
416
  to: A,
416
- [e]: t ? z(t, e === "from" ? k : A, i) : ""
417
+ [e]: t ? B(t, e === "from" ? k : A, i) : ""
417
418
  };
418
419
  H(!n.from && !n.to ? null : n);
419
420
  }, K = (e, t, n, i = !0) => /* @__PURE__ */ o("label", {
420
421
  class: `rv-temporal-picker__time${i ? "" : " rv-temporal-picker__time--single"}`,
421
- children: [i && /* @__PURE__ */ o("span", { children: t }), /* @__PURE__ */ o(ne, {
422
+ children: [i && /* @__PURE__ */ o("span", { children: t }), /* @__PURE__ */ o(re, {
422
423
  label: t,
423
- value: e ? R(e) : "",
424
+ value: e ? z(e) : "",
424
425
  min: r.minTime,
425
426
  max: r.maxTime,
426
427
  step: r.timeStep,
@@ -437,39 +438,39 @@ function ie(r) {
437
438
  },
438
439
  required: P,
439
440
  onInvalidSelection: (e, t) => {
440
- T(e || u.invalid), l.onInvalidSelection?.(e, t);
441
+ C(e || u.invalid), l.onInvalidSelection?.(e, t);
441
442
  }
442
443
  }, J;
443
444
  if (a === "multiple") J = {
444
445
  ...q,
445
446
  mode: "multiple",
446
- selected: O.filter(_),
447
+ selected: O.filter(v),
447
448
  onSelectionChange: (e) => U([...e])
448
449
  };
449
- else if (a === "range" && !b) J = {
450
+ else if (a === "range" && !_) J = {
450
451
  ...q,
451
452
  mode: "range",
452
- selected: k && _(L(k)) ? {
453
- from: L(k),
454
- ...A && _(L(A)) ? { to: L(A) } : {}
453
+ selected: k && v(R(k)) ? {
454
+ from: R(k),
455
+ ...A && v(R(A)) ? { to: R(A) } : {}
455
456
  } : void 0,
456
457
  onSelectionChange: (e) => U(e ? {
457
- from: z(e.from, k, i),
458
- ...e.to ? { to: z(e.to, A, i) } : {}
458
+ from: B(e.from, k, i),
459
+ ...e.to ? { to: B(e.to, A, i) } : {}
459
460
  } : null)
460
461
  };
461
462
  else {
462
- let e = a === "range" ? b === "to" ? A : k : D;
463
+ let e = a === "range" ? _ === "to" ? A : k : D;
463
464
  J = {
464
465
  ...q,
465
466
  mode: "single",
466
- selected: e && _(L(e)) ? L(e) : void 0,
467
+ selected: e && v(R(e)) ? R(e) : void 0,
467
468
  onSelectionChange: (t) => {
468
469
  U(a === "range" ? t ? {
469
470
  from: k,
470
471
  to: A,
471
- [b ?? "from"]: z(t, e, i)
472
- } : null : t ? z(t, D, i) : null);
472
+ [_ ?? "from"]: B(t, e, i)
473
+ } : null : t ? B(t, D, i) : null);
473
474
  }
474
475
  };
475
476
  }
@@ -478,20 +479,20 @@ function ie(r) {
478
479
  children: [
479
480
  r.dateInput === !1 && a === "range" && i !== "time" && /* @__PURE__ */ o("div", {
480
481
  class: `rv-temporal-picker__endpoints ${r.classNames?.endpoints ?? ""}`,
481
- children: [/* @__PURE__ */ o(d, {
482
+ children: [/* @__PURE__ */ o(f, {
482
483
  "aria-label": `${u.startDate}: ${k}`,
483
- "aria-pressed": b !== "to",
484
+ "aria-pressed": _ !== "to",
484
485
  onClick: () => {
485
- x(void 0), k && N(v(L(k), l.calendarSystem)), T("");
486
+ x(void 0), k && N(y(R(k), l.calendarSystem)), C("");
486
487
  },
487
- children: k ? L(k) : "—"
488
- }), /* @__PURE__ */ o(d, {
488
+ children: k ? R(k) : "—"
489
+ }), /* @__PURE__ */ o(f, {
489
490
  "aria-label": `${u.endDate}: ${A}`,
490
- "aria-pressed": b === "to",
491
+ "aria-pressed": _ === "to",
491
492
  onClick: () => {
492
- x("to"), A && N(v(L(A), l.calendarSystem)), T("");
493
+ x("to"), A && N(y(R(A), l.calendarSystem)), C("");
493
494
  },
494
- children: A ? L(A) : "—"
495
+ children: A ? R(A) : "—"
495
496
  })]
496
497
  }),
497
498
  /* @__PURE__ */ o("div", {
@@ -502,7 +503,7 @@ function ie(r) {
502
503
  class: "rv-temporal-picker__endpoint",
503
504
  role: "group",
504
505
  "aria-label": u.startDate,
505
- children: [/* @__PURE__ */ o(C, {
506
+ children: [/* @__PURE__ */ o(w, {
506
507
  label: u.startDate,
507
508
  value: h(k),
508
509
  options: g,
@@ -511,14 +512,14 @@ function ie(r) {
511
512
  onFocus: () => x(void 0),
512
513
  onChange: (e) => G("from", e)
513
514
  }), i === "datetime" && K(k, u.startTime, (e) => H({
514
- from: B(k, e, i),
515
+ from: V(k, e, i),
515
516
  ...A ? { to: A } : {}
516
517
  }), !1)]
517
518
  }), /* @__PURE__ */ o("div", {
518
519
  class: "rv-temporal-picker__endpoint",
519
520
  role: "group",
520
521
  "aria-label": u.endDate,
521
- children: [/* @__PURE__ */ o(C, {
522
+ children: [/* @__PURE__ */ o(w, {
522
523
  label: u.endDate,
523
524
  value: h(A),
524
525
  options: g,
@@ -528,9 +529,9 @@ function ie(r) {
528
529
  onChange: (e) => G("to", e)
529
530
  }), i === "datetime" && K(A, u.endTime, (e) => H({
530
531
  from: k,
531
- to: B(A, e, i)
532
+ to: V(A, e, i)
532
533
  }), !1)]
533
- })] }) : /* @__PURE__ */ o(C, {
534
+ })] }) : /* @__PURE__ */ o(w, {
534
535
  label: a === "multiple" ? u.dates : u.date,
535
536
  value: a === "multiple" ? O : h(D),
536
537
  multiple: a === "multiple",
@@ -538,15 +539,15 @@ function ie(r) {
538
539
  invalid: !F,
539
540
  errorId: m,
540
541
  onChange: (e) => {
541
- typeof e == "string" && W(e), H(Array.isArray(e) ? e : e ? z(e, D, i) : null);
542
+ typeof e == "string" && W(e), H(Array.isArray(e) ? e : e ? B(e, D, i) : null);
542
543
  }
543
544
  })
544
545
  })
545
546
  }),
546
547
  /* @__PURE__ */ o("div", {
547
548
  class: "rv-temporal-picker__body",
548
- children: [i !== "time" && /* @__PURE__ */ o(w, { ...J }), i !== "date" && a !== "range" && /* @__PURE__ */ o(Q, {
549
- value: R(D),
549
+ children: [i !== "time" && /* @__PURE__ */ o(T, { ...J }), i !== "date" && a !== "range" && /* @__PURE__ */ o(Q, {
550
+ value: z(D),
550
551
  label: u.time,
551
552
  text: u,
552
553
  format: r.timeFormat,
@@ -555,13 +556,13 @@ function ie(r) {
555
556
  min: r.minTime,
556
557
  max: r.maxTime,
557
558
  step: r.timeStep,
558
- onChange: (e) => H(B(D, e, i))
559
+ onChange: (e) => H(V(D, e, i))
559
560
  })]
560
561
  }),
561
562
  i !== "date" && a === "range" && (i === "time" || r.dateInput === !1) && /* @__PURE__ */ o("div", {
562
563
  class: "rv-temporal-picker__times",
563
564
  children: [i === "time" ? /* @__PURE__ */ o(Q, {
564
- value: R(k),
565
+ value: z(k),
565
566
  label: u.startTime,
566
567
  text: u,
567
568
  format: r.timeFormat,
@@ -575,10 +576,10 @@ function ie(r) {
575
576
  ...A ? { to: A } : {}
576
577
  })
577
578
  }) : K(k, u.startTime, (e) => H({
578
- from: B(k, e, i),
579
+ from: V(k, e, i),
579
580
  ...A ? { to: A } : {}
580
581
  })), i === "time" ? /* @__PURE__ */ o(Q, {
581
- value: R(A),
582
+ value: z(A),
582
583
  label: u.endTime,
583
584
  text: u,
584
585
  format: r.timeFormat,
@@ -593,10 +594,10 @@ function ie(r) {
593
594
  })
594
595
  }) : K(A, u.endTime, (e) => H({
595
596
  from: k,
596
- to: B(A, e, i)
597
+ to: V(A, e, i)
597
598
  }))]
598
599
  }),
599
- !F && /* @__PURE__ */ o(f, {
600
+ !F && /* @__PURE__ */ o(d, {
600
601
  tone: "danger",
601
602
  children: /* @__PURE__ */ o("span", {
602
603
  id: m,
@@ -607,35 +608,32 @@ function ie(r) {
607
608
  });
608
609
  }
609
610
  //#endregion
610
- //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/regular/clock.svg?raw
611
- var ae = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z\"/></svg>";
612
- //#endregion
613
611
  //#region src/date-time/field.tsx
614
612
  function $({ value: e, options: t, apply: r, cancel: i, clearable: a = !0 }) {
615
- let [s, c] = n(e), [l, u] = n(!1), [d, p] = n(""), m = (e) => {
613
+ let [s, c] = n(e), [l, u] = n(!1), [f, p] = n(""), m = (e) => {
616
614
  c(e), p("");
617
615
  }, h = t.autoApply !== !1, g = JSON.stringify(s) !== JSON.stringify(e), _ = (e) => {
618
616
  let t = r(e) || "";
619
617
  return p(t), !t;
620
618
  }, v = () => l ? _(s) : !1;
621
- return E(() => !g || v(), h), /* @__PURE__ */ o("div", {
619
+ return D(() => !g || v(), h), /* @__PURE__ */ o("div", {
622
620
  class: `rv-temporal-draft${t.kind === "time" ? " rv-temporal-draft--time" : ""}`,
623
621
  onKeyDown: (e) => {
624
622
  e.key === "Enter" && !e.isComposing && (e.ctrlKey || e.metaKey || h && e.target instanceof HTMLInputElement) && (e.preventDefault(), v());
625
623
  },
626
624
  children: [
627
- /* @__PURE__ */ o(ie, {
625
+ /* @__PURE__ */ o(ae, {
628
626
  ...t,
629
627
  value: s,
630
628
  onChange: m,
631
629
  onValidityChange: u,
632
630
  onSelectionComplete: h ? _ : void 0
633
631
  }),
634
- d && /* @__PURE__ */ o(f, {
632
+ f && /* @__PURE__ */ o(d, {
635
633
  tone: "danger",
636
- children: d
634
+ children: f
637
635
  }),
638
- /* @__PURE__ */ o(D, {
636
+ /* @__PURE__ */ o(O, {
639
637
  text: t.actions,
640
638
  showConfirm: t.showActions ?? !h,
641
639
  disabled: !l,
@@ -649,15 +647,15 @@ function $({ value: e, options: t, apply: r, cancel: i, clearable: a = !0 }) {
649
647
  ]
650
648
  });
651
649
  }
652
- function oe({ value: e, kind: t = "date", picker: n, onValueChange: r, onInput: c, formatValue: l, parseValue: f, ...p }) {
653
- let m = a(null), h = a(), g = a({
650
+ function oe({ value: e, kind: t = "date", picker: n, onValueChange: r, onInput: l, formatValue: u, parseValue: d, ...p }) {
651
+ let m = a(null), h = a(), _ = a({
654
652
  value: e,
655
653
  kind: t,
656
654
  picker: n,
657
655
  onValueChange: r,
658
656
  input: p
659
657
  });
660
- return g.current = {
658
+ return _.current = {
661
659
  value: e,
662
660
  kind: t,
663
661
  picker: n,
@@ -667,23 +665,23 @@ function oe({ value: e, kind: t = "date", picker: n, onValueChange: r, onInput:
667
665
  (p.disabled || p.readOnly) && h.current?.close();
668
666
  }, [p.disabled, p.readOnly]), /* @__PURE__ */ o("span", {
669
667
  class: "rv-date-time-field",
670
- children: [/* @__PURE__ */ o(u, {
668
+ children: [/* @__PURE__ */ o(c, {
671
669
  ...p,
672
670
  type: "text",
673
- value: l?.(e) ?? e,
671
+ value: u?.(e) ?? e,
674
672
  placeholder: p.placeholder ?? (t === "date" ? "YYYY-MM-DD" : t === "time" ? "HH:mm" : "YYYY-MM-DDTHH:mm"),
675
673
  onInput: (e) => {
676
- c?.(e);
677
- let t = f ? f(e.currentTarget.value) : e.currentTarget.value;
674
+ l?.(e);
675
+ let t = d ? d(e.currentTarget.value) : e.currentTarget.value;
678
676
  t !== void 0 && r?.(t);
679
677
  }
680
- }), /* @__PURE__ */ o(d, {
678
+ }), /* @__PURE__ */ o(f, {
681
679
  ref: m,
682
680
  variant: "ghost",
683
681
  "aria-label": X(t, n?.text),
684
682
  disabled: p.disabled || p.readOnly,
685
683
  onClick: () => {
686
- m.current && !h.current && (h.current = T(m.current, (r) => /* @__PURE__ */ o($, {
684
+ m.current && !h.current && (h.current = E(m.current, (r) => /* @__PURE__ */ o($, {
687
685
  value: e || null,
688
686
  options: {
689
687
  ...n,
@@ -693,7 +691,7 @@ function oe({ value: e, kind: t = "date", picker: n, onValueChange: r, onInput:
693
691
  },
694
692
  cancel: r,
695
693
  apply: (e) => {
696
- !g.current.input.disabled && !g.current.input.readOnly && g.current.onValueChange?.(typeof e == "string" ? e : ""), r();
694
+ !_.current.input.disabled && !_.current.input.readOnly && _.current.onValueChange?.(typeof e == "string" ? e : ""), r();
697
695
  }
698
696
  }), {
699
697
  label: X(t, n?.text),
@@ -703,19 +701,19 @@ function oe({ value: e, kind: t = "date", picker: n, onValueChange: r, onInput:
703
701
  }
704
702
  }));
705
703
  },
706
- children: /* @__PURE__ */ o(s, { svg: t === "time" ? ae : S })
704
+ children: /* @__PURE__ */ o(s, { svg: t === "time" ? g : C })
707
705
  })]
708
706
  });
709
707
  }
710
708
  //#endregion
711
709
  //#region src/date-time/attach.tsx
712
710
  function se(e, t, n) {
713
- let r, i = c(e.ownerDocument, /* @__PURE__ */ o(d, {
711
+ let r, i = l(e.ownerDocument, /* @__PURE__ */ o(f, {
714
712
  variant: "ghost",
715
713
  disabled: e.disabled || e.readOnly,
716
714
  "aria-label": X(t.kind ?? "date", t.text),
717
715
  onClick: () => {
718
- e.disabled || e.readOnly || r || (r = T(e, (r) => /* @__PURE__ */ o($, {
716
+ e.disabled || e.readOnly || r || (r = E(e, (r) => /* @__PURE__ */ o($, {
719
717
  value: e.value || null,
720
718
  options: {
721
719
  ...t,
@@ -734,17 +732,17 @@ function se(e, t, n) {
734
732
  }
735
733
  }));
736
734
  },
737
- children: /* @__PURE__ */ o(s, { svg: t.kind === "time" ? ae : S })
735
+ children: /* @__PURE__ */ o(s, { svg: t.kind === "time" ? g : C })
738
736
  }));
739
737
  e.after(i);
740
- let a = e.ownerDocument.defaultView?.MutationObserver, u = a ? new a(() => {
738
+ let a = e.ownerDocument.defaultView?.MutationObserver, c = a ? new a(() => {
741
739
  i.disabled = e.disabled || e.readOnly, i.disabled && r?.close();
742
740
  }) : void 0;
743
- return u?.observe(e, {
741
+ return c?.observe(e, {
744
742
  attributes: !0,
745
743
  attributeFilter: ["disabled", "readonly"]
746
744
  }), () => {
747
- u?.disconnect(), r?.close(), l(i), i.remove();
745
+ c?.disconnect(), r?.close(), u(i), i.remove();
748
746
  };
749
747
  }
750
748
  //#endregion
@@ -767,4 +765,4 @@ function ce(e, t) {
767
765
  }, `+${i}`) : null]);
768
766
  }
769
767
  //#endregion
770
- export { ie as a, $ as i, se as n, Y as o, oe as r, X as s, ce as t };
768
+ export { ae as a, $ as i, se as n, Y as o, oe as r, X as s, ce as t };