@chenyqthu/tp-mobile-ui-kit 0.2.0 → 0.2.1

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,9 +1,9 @@
1
1
  import { s as e, t } from "./asset-illustrations-YHXzEd7z.js";
2
2
  import { n, t as r } from "./asset-icons-BIenKvAh.js";
3
- import i, { createContext as a, useCallback as o, useContext as s, useEffect as c, useId as l, useMemo as u, useRef as d, useState as f } from "react";
4
- import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
3
+ import i, { createContext as a, useCallback as o, useContext as s, useEffect as c, useId as l, useLayoutEffect as u, useMemo as d, useRef as f, useState as p } from "react";
4
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
5
5
  // src/core/components/TPPhoneFrame.tsx
6
- var g = {
6
+ var _ = {
7
7
  iphone16pro: {
8
8
  width: 393,
9
9
  height: 852,
@@ -25,19 +25,19 @@ var g = {
25
25
  isIOS: !1
26
26
  }
27
27
  };
28
- function _(e, t) {
28
+ function v(e, t) {
29
29
  return e || (t === "base" ? "iphone14" : "iphone16pro");
30
30
  }
31
- var v = ({ device: t, width: n, height: r, screenSize: a, showFrame: o = !0, showDynamicIsland: s, showHomeIndicator: c, overlayTop: l, overlayBottom: u, statusBar: d, bottomBar: f, floatingAction: p, className: v = "", style: y, children: b }) => {
32
- let x = e(), S = a ?? x.screenSize, C = _(t, S), w = g[C], T = n ?? w.width, E = r ?? w.height, D = s ?? (o && w.isIOS), O = c ?? o, k = d != null, A = f != null, j = i.isValidElement(f) && f.props?.variant === "docked", M = !!(l && k), N = u === void 0 ? !(!A || j) : u, P = M ? w.isIOS ? "54px" : "36px" : "0px", F = [
31
+ var y = ({ device: t, width: n, height: r, screenSize: a, showFrame: o = !0, showDynamicIsland: s, showHomeIndicator: c, overlayTop: l, overlayBottom: u, statusBar: d, bottomBar: f, floatingAction: p, className: m = "", style: y, children: b }) => {
32
+ let x = e(), S = a ?? x.screenSize, C = v(t, S), w = _[C], T = n ?? w.width, E = r ?? w.height, D = s ?? (o && w.isIOS), O = c ?? o, k = d != null, A = f != null, j = i.isValidElement(f) && f.props?.variant === "docked", M = !!(l && k), N = u === void 0 ? !(!A || j) : u, P = M ? w.isIOS ? "54px" : "36px" : "0px", F = [
33
33
  "tp-phone-frame",
34
34
  `tp-phone-frame--${C}`,
35
35
  o ? "tp-phone-frame--framed" : "tp-phone-frame--frameless",
36
36
  M ? "tp-phone-frame--overlay-top" : "",
37
37
  N ? "tp-phone-frame--overlay-bottom" : "",
38
- v
38
+ m
39
39
  ].filter(Boolean).join(" ");
40
- return /* @__PURE__ */ m("div", {
40
+ return /* @__PURE__ */ h("div", {
41
41
  className: F,
42
42
  "data-device": C,
43
43
  "data-show-frame": String(o),
@@ -53,7 +53,7 @@ var v = ({ device: t, width: n, height: r, screenSize: a, showFrame: o = !0, sho
53
53
  },
54
54
  ...y
55
55
  },
56
- children: /* @__PURE__ */ h("div", {
56
+ children: /* @__PURE__ */ g("div", {
57
57
  className: "tp-phone-screen",
58
58
  style: {
59
59
  width: `${T}px`,
@@ -61,96 +61,96 @@ var v = ({ device: t, width: n, height: r, screenSize: a, showFrame: o = !0, sho
61
61
  "--tp-phone-top-inset": P
62
62
  },
63
63
  children: [
64
- D && /* @__PURE__ */ m("div", {
64
+ D && /* @__PURE__ */ h("div", {
65
65
  className: "tp-phone-dynamic-island",
66
66
  "data-testid": "tp-phone-dynamic-island",
67
67
  "aria-hidden": "true",
68
- children: /* @__PURE__ */ m("span", { className: "tp-phone-dynamic-island-lens" })
68
+ children: /* @__PURE__ */ h("span", { className: "tp-phone-dynamic-island-lens" })
69
69
  }),
70
- k && /* @__PURE__ */ m("div", {
70
+ k && /* @__PURE__ */ h("div", {
71
71
  className: `tp-phone-statusbar ${M ? "tp-phone-statusbar--overlay" : ""}`.trim(),
72
72
  children: d
73
73
  }),
74
- /* @__PURE__ */ h("div", {
74
+ /* @__PURE__ */ g("div", {
75
75
  className: "tp-phone-stage",
76
- children: [/* @__PURE__ */ m("div", {
76
+ children: [/* @__PURE__ */ h("div", {
77
77
  className: "tp-phone-body",
78
78
  children: b
79
- }), p != null && /* @__PURE__ */ m("div", {
79
+ }), p != null && /* @__PURE__ */ h("div", {
80
80
  className: `tp-phone-floating-action ${N ? "tp-phone-floating-action--above-overlay" : ""}`.trim(),
81
81
  children: p
82
82
  })]
83
83
  }),
84
- A || O ? /* @__PURE__ */ h("div", {
84
+ A || O ? /* @__PURE__ */ g("div", {
85
85
  className: `tp-phone-bottom ${N ? "tp-phone-bottom--overlay" : ""}`.trim(),
86
- children: [A && /* @__PURE__ */ m("div", {
86
+ children: [A && /* @__PURE__ */ h("div", {
87
87
  className: "tp-phone-bottombar",
88
88
  children: f
89
- }), O && /* @__PURE__ */ m("div", {
89
+ }), O && /* @__PURE__ */ h("div", {
90
90
  className: "tp-phone-home-indicator",
91
91
  "data-testid": "tp-phone-home-indicator",
92
92
  "aria-hidden": "true",
93
- children: /* @__PURE__ */ m("span", { className: "tp-phone-home-indicator-pill" })
93
+ children: /* @__PURE__ */ h("span", { className: "tp-phone-home-indicator-pill" })
94
94
  })]
95
95
  }) : null
96
96
  ]
97
97
  })
98
98
  });
99
- }, y = [
99
+ }, b = [
100
100
  4,
101
101
  6,
102
102
  8,
103
103
  10
104
- ], b = ({ time: t = "10:51", os: n, carrier: r, signalStrength: i = 4, wifiStrength: a = 3, battery: o = 100, muted: s = !1, locationActive: c = !1, transparent: l = !1, className: u = "", style: d }) => {
105
- let f = e(), p = n ?? f.os, g = Math.max(0, Math.min(100, Math.round(o))), _ = g <= 20, v = g / 100 * 18, b = [
104
+ ], x = ({ time: t = "10:51", os: n, carrier: r, signalStrength: i = 4, wifiStrength: a = 3, battery: o = 100, muted: s = !1, locationActive: c = !1, transparent: l = !1, className: u = "", style: d }) => {
105
+ let f = e(), p = n ?? f.os, m = Math.max(0, Math.min(100, Math.round(o))), _ = m <= 20, v = m / 100 * 18, y = [
106
106
  "tp-statusbar",
107
107
  `tp-statusbar--${p}`,
108
108
  l ? "tp-statusbar--transparent" : "",
109
109
  u
110
110
  ].filter(Boolean).join(" ");
111
- return /* @__PURE__ */ h("div", {
112
- className: b,
111
+ return /* @__PURE__ */ g("div", {
112
+ className: y,
113
113
  "data-os": p,
114
114
  "data-signal": i,
115
115
  "data-wifi": a,
116
- "data-battery": g,
116
+ "data-battery": m,
117
117
  style: d,
118
- children: [/* @__PURE__ */ h("div", {
118
+ children: [/* @__PURE__ */ g("div", {
119
119
  className: "tp-statusbar-left",
120
120
  children: [
121
- /* @__PURE__ */ m("span", {
121
+ /* @__PURE__ */ h("span", {
122
122
  className: "tp-statusbar-time",
123
123
  children: t
124
124
  }),
125
- r && /* @__PURE__ */ m("span", {
125
+ r && /* @__PURE__ */ h("span", {
126
126
  className: "tp-statusbar-carrier",
127
127
  children: r
128
128
  }),
129
- c && /* @__PURE__ */ m("span", {
129
+ c && /* @__PURE__ */ h("span", {
130
130
  className: "tp-statusbar-meta-icon",
131
131
  "aria-label": "Location active",
132
- children: /* @__PURE__ */ m("svg", {
132
+ children: /* @__PURE__ */ h("svg", {
133
133
  width: "11",
134
134
  height: "11",
135
135
  viewBox: "0 0 12 12",
136
136
  fill: "none",
137
137
  "aria-hidden": "true",
138
- children: /* @__PURE__ */ m("path", {
138
+ children: /* @__PURE__ */ h("path", {
139
139
  d: "M10.8 1.2L1.3 5.2L5.5 6.5L6.8 10.7L10.8 1.2Z",
140
140
  fill: "currentColor"
141
141
  })
142
142
  })
143
143
  }),
144
- s && /* @__PURE__ */ m("span", {
144
+ s && /* @__PURE__ */ h("span", {
145
145
  className: "tp-statusbar-meta-icon",
146
146
  "aria-label": "Muted",
147
- children: /* @__PURE__ */ m("svg", {
147
+ children: /* @__PURE__ */ h("svg", {
148
148
  width: "12",
149
149
  height: "12",
150
150
  viewBox: "0 0 14 14",
151
151
  fill: "none",
152
152
  "aria-hidden": "true",
153
- children: /* @__PURE__ */ m("path", {
153
+ children: /* @__PURE__ */ h("path", {
154
154
  d: "M9.6 8.3V5.8C9.6 4.2 8.5 3 7 3C6.4 3 5.9 3.2 5.5 3.5M4.4 5.8V8.3L3.2 9.8H10.1M6 11.1C6.2 11.6 6.6 11.8 7 11.8C7.4 11.8 7.8 11.6 8 11.1M2.2 2.2L11.8 11.8",
155
155
  stroke: "currentColor",
156
156
  strokeWidth: "1.2",
@@ -160,30 +160,30 @@ var v = ({ device: t, width: n, height: r, screenSize: a, showFrame: o = !0, sho
160
160
  })
161
161
  })
162
162
  ]
163
- }), /* @__PURE__ */ h("div", {
163
+ }), /* @__PURE__ */ g("div", {
164
164
  className: "tp-statusbar-right",
165
165
  children: [
166
- /* @__PURE__ */ m("span", {
166
+ /* @__PURE__ */ h("span", {
167
167
  className: "tp-statusbar-signal",
168
168
  "aria-label": `Cellular signal ${i} of 4`,
169
- children: /* @__PURE__ */ m("svg", {
169
+ children: /* @__PURE__ */ h("svg", {
170
170
  width: "18",
171
171
  height: "12",
172
172
  viewBox: "0 0 18 12",
173
173
  fill: "none",
174
174
  "aria-hidden": "true",
175
- children: y.map((e, t) => {
175
+ children: b.map((e, t) => {
176
176
  let n = t + 1, r = n <= i, a = t * 4.5, o = p === "ios" ? Math.max(2, e - 2) : e, s = p === "ios" ? 9 - o : 11 - o;
177
- return /* @__PURE__ */ h("g", {
177
+ return /* @__PURE__ */ g("g", {
178
178
  opacity: r ? 1 : .28,
179
- children: [/* @__PURE__ */ m("rect", {
179
+ children: [/* @__PURE__ */ h("rect", {
180
180
  x: a,
181
181
  y: s,
182
182
  width: "3",
183
183
  height: o,
184
184
  rx: "1",
185
185
  fill: "currentColor"
186
- }), p === "ios" && /* @__PURE__ */ m("rect", {
186
+ }), p === "ios" && /* @__PURE__ */ h("rect", {
187
187
  x: a,
188
188
  y: "10",
189
189
  width: "3",
@@ -195,38 +195,38 @@ var v = ({ device: t, width: n, height: r, screenSize: a, showFrame: o = !0, sho
195
195
  })
196
196
  })
197
197
  }),
198
- /* @__PURE__ */ m("span", {
198
+ /* @__PURE__ */ h("span", {
199
199
  className: "tp-statusbar-wifi",
200
200
  "aria-label": `Wi-Fi signal ${a} of 3`,
201
- children: /* @__PURE__ */ h("svg", {
201
+ children: /* @__PURE__ */ g("svg", {
202
202
  width: "16",
203
203
  height: "12",
204
204
  viewBox: "0 0 16 12",
205
205
  fill: "none",
206
206
  "aria-hidden": "true",
207
207
  children: [
208
- /* @__PURE__ */ m("path", {
208
+ /* @__PURE__ */ h("path", {
209
209
  d: "M1.4 3.8C5.1 0.6 10.9 0.6 14.6 3.8",
210
210
  stroke: "currentColor",
211
211
  strokeWidth: "1.5",
212
212
  strokeLinecap: "round",
213
213
  opacity: a >= 3 ? 1 : .28
214
214
  }),
215
- /* @__PURE__ */ m("path", {
215
+ /* @__PURE__ */ h("path", {
216
216
  d: "M3.7 6.3C6.1 4.2 9.9 4.2 12.3 6.3",
217
217
  stroke: "currentColor",
218
218
  strokeWidth: "1.5",
219
219
  strokeLinecap: "round",
220
220
  opacity: a >= 2 ? 1 : .28
221
221
  }),
222
- /* @__PURE__ */ m("path", {
222
+ /* @__PURE__ */ h("path", {
223
223
  d: "M6.1 8.8C7.2 7.8 8.8 7.8 9.9 8.8",
224
224
  stroke: "currentColor",
225
225
  strokeWidth: "1.5",
226
226
  strokeLinecap: "round",
227
227
  opacity: a >= 1 ? 1 : .28
228
228
  }),
229
- /* @__PURE__ */ m("circle", {
229
+ /* @__PURE__ */ h("circle", {
230
230
  cx: "8",
231
231
  cy: "10.7",
232
232
  r: "1.1",
@@ -235,20 +235,20 @@ var v = ({ device: t, width: n, height: r, screenSize: a, showFrame: o = !0, sho
235
235
  ]
236
236
  })
237
237
  }),
238
- /* @__PURE__ */ h("span", {
238
+ /* @__PURE__ */ g("span", {
239
239
  className: "tp-statusbar-battery",
240
- "aria-label": `Battery ${g}%`,
241
- children: [p === "android" && /* @__PURE__ */ h("span", {
240
+ "aria-label": `Battery ${m}%`,
241
+ children: [p === "android" && /* @__PURE__ */ g("span", {
242
242
  className: "tp-statusbar-battery-text",
243
- children: [g, "%"]
244
- }), /* @__PURE__ */ h("svg", {
243
+ children: [m, "%"]
244
+ }), /* @__PURE__ */ g("svg", {
245
245
  width: "26",
246
246
  height: "12",
247
247
  viewBox: "0 0 26 12",
248
248
  fill: "none",
249
249
  "aria-hidden": "true",
250
250
  children: [
251
- /* @__PURE__ */ m("rect", {
251
+ /* @__PURE__ */ h("rect", {
252
252
  x: "0.75",
253
253
  y: "0.75",
254
254
  width: "21.5",
@@ -258,7 +258,7 @@ var v = ({ device: t, width: n, height: r, screenSize: a, showFrame: o = !0, sho
258
258
  strokeOpacity: "0.45",
259
259
  strokeWidth: "1.2"
260
260
  }),
261
- /* @__PURE__ */ m("rect", {
261
+ /* @__PURE__ */ h("rect", {
262
262
  x: "2.2",
263
263
  y: "2.2",
264
264
  width: Math.max(0, v),
@@ -266,7 +266,7 @@ var v = ({ device: t, width: n, height: r, screenSize: a, showFrame: o = !0, sho
266
266
  rx: "1.6",
267
267
  fill: _ ? "var(--tp-color-alert, #EE385C)" : "currentColor"
268
268
  }),
269
- /* @__PURE__ */ m("path", {
269
+ /* @__PURE__ */ h("path", {
270
270
  d: "M23.5 4.2V7.8C24.3 7.5 24.8 6.8 24.8 6C24.8 5.2 24.3 4.5 23.5 4.2Z",
271
271
  fill: "currentColor",
272
272
  fillOpacity: "0.5"
@@ -277,19 +277,258 @@ var v = ({ device: t, width: n, height: r, screenSize: a, showFrame: o = !0, sho
277
277
  ]
278
278
  })]
279
279
  });
280
- }, x = ({ title: e, subtitle: t, variant: n = "standard", left: r, right: i, showBack: a = !1, onBack: o, titleDropdown: s = !1, onTitleClick: c, rightBadge: l, translucent: u = !1, className: d = "", style: f }) => {
281
- let g = n === "floating", _ = a || r != null, v = l != null && l !== "" && (typeof l != "number" || l > 0), y = i != null || v, b = /* @__PURE__ */ h(p, { children: [a ? /* @__PURE__ */ m("button", {
280
+ }, S = /* @__PURE__ */ new Map(), C = 64;
281
+ function w() {
282
+ if (typeof window > "u" || typeof navigator > "u") return !1;
283
+ let e = navigator.userAgent || "";
284
+ return /(Chrome|Chromium|Edg|OPR)\//.test(e) && !/(Firefox|CriOS|EdgiOS|FxiOS)/.test(e);
285
+ }
286
+ function T(e) {
287
+ let t = Math.max(2, Math.round(e.width)), n = Math.max(2, Math.round(e.height)), r = Math.max(1, Math.min(e.radius, t / 2, n / 2)), i = Math.max(2, Math.min(e.bezelWidth, Math.min(t, n) * .44)), a = e.glassThickness ?? Math.max(8, i * .9), o = e.refractiveIndex ?? 1.5, s = t * n, c = new Float32Array(s), l = new Float32Array(s), u = t / 2, d = n / 2, f = u - r, p = d - r, m = 0;
288
+ for (let e = 0; e < n; e += 1) {
289
+ let n = e + .5 - d, s = Math.abs(n) - p;
290
+ for (let d = 0; d < t; d += 1) {
291
+ let p = d + .5 - u, h = Math.abs(p) - f, g = -(Math.hypot(Math.max(h, 0), Math.max(s, 0)) + Math.min(Math.max(h, s), 0) - r);
292
+ if (g <= 0 || g >= i) continue;
293
+ let _ = 0, v = 0;
294
+ if (h > 0 && s > 0) {
295
+ let e = Math.hypot(h, s) || 1;
296
+ _ = h / e * (p >= 0 ? 1 : -1), v = s / e * (n >= 0 ? 1 : -1);
297
+ } else h >= s ? _ = p >= 0 ? 1 : -1 : v = n >= 0 ? 1 : -1;
298
+ let y = 1 - Math.max(.02, Math.min(1, g / i)), b = y * y * y * y, x = Math.max(1e-4, 1 - b), S = x ** .25, C = y ** 3 / x ** .75, w = Math.atan(C), T = Math.min(.999, Math.sin(w) / o), E = Math.asin(T), D = (a + i * S) * Math.tan(w - E);
299
+ D > m && (m = D);
300
+ let O = e * t + d;
301
+ c[O] = -_ * D, l[O] = -v * D;
302
+ }
303
+ }
304
+ let h = new Uint8ClampedArray(s * 4), g = m > 1e-6 ? m : 1;
305
+ for (let e = 0; e < s; e += 1) {
306
+ let t = e * 4;
307
+ h[t] = Math.max(0, Math.min(255, Math.round(128 + c[e] / g * 127))), h[t + 1] = Math.max(0, Math.min(255, Math.round(128 + l[e] / g * 127))), h[t + 2] = 128, h[t + 3] = 255;
308
+ }
309
+ return {
310
+ data: h,
311
+ width: t,
312
+ height: n,
313
+ maxScale: Math.min(m, i * 1.25)
314
+ };
315
+ }
316
+ function E(e, t = 16) {
317
+ return Math.max(t, Math.round(e / 2) * 2);
318
+ }
319
+ function D(e) {
320
+ if (typeof document > "u") return null;
321
+ let t = E(e.width, 16), n = E(e.height, 16), r = E(Math.min(e.radius, t / 2, n / 2), 2), i = E(Math.min(e.bezelWidth, Math.min(t, n) * .44), 4), a = e.glassThickness ?? Math.max(8, i * .9), o = e.refractiveIndex ?? 1.5, s = `${t}x${n}:${r}:${i}:${a.toFixed(1)}:${o.toFixed(2)}`, c = S.get(s);
322
+ if (c) return c;
323
+ let l = document.createElement("canvas");
324
+ l.width = t, l.height = n;
325
+ let u = l.getContext("2d");
326
+ if (!u) return null;
327
+ let d = T({
328
+ width: t,
329
+ height: n,
330
+ radius: r,
331
+ bezelWidth: i,
332
+ glassThickness: a,
333
+ refractiveIndex: o
334
+ }), f = typeof ImageData < "u" ? new ImageData(new Uint8ClampedArray(d.data), t, n) : u.createImageData(t, n);
335
+ typeof ImageData > "u" && f.data.set(d.data), u.putImageData(f, 0, 0);
336
+ let p = {
337
+ url: l.toDataURL("image/png"),
338
+ width: d.width,
339
+ height: d.height,
340
+ maxScale: d.maxScale
341
+ };
342
+ if (S.size >= C) {
343
+ let e = S.keys().next().value;
344
+ e !== void 0 && S.delete(e);
345
+ }
346
+ return S.set(s, p), p;
347
+ }
348
+ // src/core/components/TPLiquidGlassBackdrop.tsx
349
+ function O(e, t) {
350
+ let n = `tp-lg-${l().replace(/[^a-zA-Z0-9_-]/g, "")}`, r = t.shape ?? "pill", i = t.bezelWidth ?? 14, a = t.optical ?? !0, [o, s] = p({
351
+ width: 0,
352
+ height: 0
353
+ }), [c, d] = p(!1);
354
+ u(() => {
355
+ d(w());
356
+ let t = e.current;
357
+ if (!t) return;
358
+ let n = () => {
359
+ let e = t.getBoundingClientRect(), n = Math.round(e.width), r = Math.round(e.height);
360
+ n > 0 && r > 0 && s((e) => Math.abs(e.width - n) <= 1 && Math.abs(e.height - r) <= 1 ? e : {
361
+ width: n,
362
+ height: r
363
+ });
364
+ };
365
+ if (n(), typeof ResizeObserver > "u") return;
366
+ let r = new ResizeObserver(n);
367
+ return r.observe(t), () => r.disconnect();
368
+ }, [e]);
369
+ let f = a && c, m = null;
370
+ if (f && o.width > 0 && o.height > 0) {
371
+ let e = Math.min(o.width, o.height), t = r === "rounded" ? Math.min(20, e / 2) : e / 2;
372
+ m = D({
373
+ width: o.width,
374
+ height: o.height,
375
+ radius: t,
376
+ bezelWidth: i
377
+ });
378
+ }
379
+ return {
380
+ filterId: n,
381
+ asset: m,
382
+ size: o,
383
+ opticalEnabled: f
384
+ };
385
+ }
386
+ var k = ({ shape: e = "pill", tint: t = "clear", bezelWidth: n = 14, refraction: r = 1, dispersion: i = 1, blur: a = 1.5, saturation: o = 1.5, optical: s = !0 }) => {
387
+ let c = f(null), { filterId: l, asset: u, size: d, opticalEnabled: p } = O(c, {
388
+ shape: e,
389
+ bezelWidth: n,
390
+ optical: s
391
+ }), _ = !!(p && u && u.maxScale > 0 && d.width > 0), v = Math.max(0, Math.min(2, i)), y = u ? u.maxScale * Math.max(0, r) : 0, b = y * (1 + .14 * v), x = y * (1 - .14 * v);
392
+ return /* @__PURE__ */ g(m, { children: [_ && u && /* @__PURE__ */ h("svg", {
393
+ className: "tp-lg-svg-defs",
394
+ width: "0",
395
+ height: "0",
396
+ "aria-hidden": "true",
397
+ children: /* @__PURE__ */ h("defs", { children: /* @__PURE__ */ g("filter", {
398
+ id: l,
399
+ x: "0%",
400
+ y: "0%",
401
+ width: "100%",
402
+ height: "100%",
403
+ colorInterpolationFilters: "sRGB",
404
+ children: [
405
+ /* @__PURE__ */ h("feGaussianBlur", {
406
+ in: "SourceGraphic",
407
+ stdDeviation: a,
408
+ edgeMode: "duplicate",
409
+ result: "softened"
410
+ }),
411
+ /* @__PURE__ */ h("feImage", {
412
+ href: u.url,
413
+ x: "0",
414
+ y: "0",
415
+ width: d.width,
416
+ height: d.height,
417
+ preserveAspectRatio: "none",
418
+ result: "dispMap"
419
+ }),
420
+ v > 0 ? /* @__PURE__ */ g(m, { children: [
421
+ /* @__PURE__ */ h("feDisplacementMap", {
422
+ in: "softened",
423
+ in2: "dispMap",
424
+ scale: b,
425
+ xChannelSelector: "R",
426
+ yChannelSelector: "G",
427
+ result: "dispR"
428
+ }),
429
+ /* @__PURE__ */ h("feColorMatrix", {
430
+ in: "dispR",
431
+ type: "matrix",
432
+ values: "1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0",
433
+ result: "chanR"
434
+ }),
435
+ /* @__PURE__ */ h("feDisplacementMap", {
436
+ in: "softened",
437
+ in2: "dispMap",
438
+ scale: y,
439
+ xChannelSelector: "R",
440
+ yChannelSelector: "G",
441
+ result: "dispG"
442
+ }),
443
+ /* @__PURE__ */ h("feColorMatrix", {
444
+ in: "dispG",
445
+ type: "matrix",
446
+ values: "0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0",
447
+ result: "chanG"
448
+ }),
449
+ /* @__PURE__ */ h("feDisplacementMap", {
450
+ in: "softened",
451
+ in2: "dispMap",
452
+ scale: x,
453
+ xChannelSelector: "R",
454
+ yChannelSelector: "G",
455
+ result: "dispB"
456
+ }),
457
+ /* @__PURE__ */ h("feColorMatrix", {
458
+ in: "dispB",
459
+ type: "matrix",
460
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0",
461
+ result: "chanB"
462
+ }),
463
+ /* @__PURE__ */ h("feBlend", {
464
+ in: "chanR",
465
+ in2: "chanG",
466
+ mode: "screen",
467
+ result: "rg"
468
+ }),
469
+ /* @__PURE__ */ h("feBlend", {
470
+ in: "rg",
471
+ in2: "chanB",
472
+ mode: "screen",
473
+ result: "rgbDispersed"
474
+ }),
475
+ /* @__PURE__ */ h("feColorMatrix", {
476
+ in: "rgbDispersed",
477
+ type: "saturate",
478
+ values: String(o)
479
+ })
480
+ ] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("feDisplacementMap", {
481
+ in: "softened",
482
+ in2: "dispMap",
483
+ scale: y,
484
+ xChannelSelector: "R",
485
+ yChannelSelector: "G",
486
+ result: "refracted"
487
+ }), /* @__PURE__ */ h("feColorMatrix", {
488
+ in: "refracted",
489
+ type: "saturate",
490
+ values: String(o)
491
+ })] })
492
+ ]
493
+ }) })
494
+ }), /* @__PURE__ */ h("span", {
495
+ ref: c,
496
+ className: `tp-lg-backdrop tp-lg-backdrop--tint-${t}`,
497
+ "aria-hidden": "true",
498
+ "data-optical": _ ? "svg-snell" : "css-fallback",
499
+ style: _ ? {
500
+ backdropFilter: `url(#${l})`,
501
+ WebkitBackdropFilter: `url(#${l})`
502
+ } : void 0
503
+ })] });
504
+ }, A = ({ children: e }) => {
505
+ let t = f(null);
506
+ return /* @__PURE__ */ g("div", {
507
+ ref: t,
508
+ className: "tp-header-well",
509
+ children: [/* @__PURE__ */ h(k, {
510
+ hostRef: t,
511
+ shape: "pill",
512
+ tint: "clear",
513
+ bezelWidth: 12,
514
+ refraction: 1.05,
515
+ dispersion: .9,
516
+ blur: 2
517
+ }), e]
518
+ });
519
+ }, j = ({ title: e, subtitle: t, variant: n = "standard", left: r, right: i, showBack: a = !1, onBack: o, titleDropdown: s = !1, onTitleClick: c, rightBadge: l, translucent: u = !1, className: d = "", style: f }) => {
520
+ let p = n === "floating", _ = a || r != null, v = l != null && l !== "" && (typeof l != "number" || l > 0), y = i != null || v, b = /* @__PURE__ */ g(m, { children: [a ? /* @__PURE__ */ h("button", {
282
521
  type: "button",
283
522
  className: "tp-header-icon-btn",
284
523
  "aria-label": "Back",
285
524
  onClick: o,
286
- children: /* @__PURE__ */ m("svg", {
525
+ children: /* @__PURE__ */ h("svg", {
287
526
  width: "20",
288
527
  height: "20",
289
528
  viewBox: "0 0 24 24",
290
529
  fill: "none",
291
530
  "aria-hidden": "true",
292
- children: /* @__PURE__ */ m("path", {
531
+ children: /* @__PURE__ */ h("path", {
293
532
  d: "M15.5 19L8.5 12L15.5 5",
294
533
  stroke: "currentColor",
295
534
  strokeWidth: "1.8",
@@ -297,18 +536,18 @@ var v = ({ device: t, width: n, height: r, screenSize: a, showFrame: o = !0, sho
297
536
  strokeLinejoin: "round"
298
537
  })
299
538
  })
300
- }) : null, r] }), x = /* @__PURE__ */ h(p, { children: [e != null && /* @__PURE__ */ m("span", {
539
+ }) : null, r] }), x = /* @__PURE__ */ g(m, { children: [e != null && /* @__PURE__ */ h("span", {
301
540
  className: "tp-header-title",
302
541
  children: e
303
- }), s && /* @__PURE__ */ m("span", {
542
+ }), s && /* @__PURE__ */ h("span", {
304
543
  className: "tp-header-chevron",
305
544
  "aria-hidden": "true",
306
- children: /* @__PURE__ */ m("svg", {
545
+ children: /* @__PURE__ */ h("svg", {
307
546
  width: "14",
308
547
  height: "14",
309
548
  viewBox: "0 0 16 16",
310
549
  fill: "none",
311
- children: /* @__PURE__ */ m("path", {
550
+ children: /* @__PURE__ */ h("path", {
312
551
  d: "M4 6L8 10L12 6",
313
552
  stroke: "currentColor",
314
553
  strokeWidth: "1.7",
@@ -322,41 +561,35 @@ var v = ({ device: t, width: n, height: r, screenSize: a, showFrame: o = !0, sho
322
561
  u ? "tp-header--translucent" : "",
323
562
  d
324
563
  ].filter(Boolean).join(" ");
325
- return /* @__PURE__ */ h("header", {
564
+ return /* @__PURE__ */ g("header", {
326
565
  className: S,
327
566
  "data-variant": n,
328
567
  style: f,
329
568
  children: [
330
- /* @__PURE__ */ m("div", {
569
+ /* @__PURE__ */ h("div", {
331
570
  className: "tp-header-left",
332
- children: _ ? g ? /* @__PURE__ */ m("div", {
333
- className: "tp-header-well",
334
- children: b
335
- }) : b : null
571
+ children: _ ? p ? /* @__PURE__ */ h(A, { children: b }) : b : null
336
572
  }),
337
- /* @__PURE__ */ h("div", {
573
+ /* @__PURE__ */ g("div", {
338
574
  className: "tp-header-center",
339
- children: [e != null || s ? c || s ? /* @__PURE__ */ m("button", {
575
+ children: [e != null || s ? c || s ? /* @__PURE__ */ h("button", {
340
576
  type: "button",
341
577
  className: "tp-header-title-btn",
342
578
  onClick: c,
343
579
  children: x
344
- }) : /* @__PURE__ */ m("div", {
580
+ }) : /* @__PURE__ */ h("div", {
345
581
  className: "tp-header-title-wrap",
346
582
  children: x
347
- }) : null, t != null && /* @__PURE__ */ m("div", {
583
+ }) : null, t != null && /* @__PURE__ */ h("div", {
348
584
  className: "tp-header-subtitle",
349
585
  children: t
350
586
  })]
351
587
  }),
352
- /* @__PURE__ */ m("div", {
588
+ /* @__PURE__ */ h("div", {
353
589
  className: "tp-header-right",
354
- children: y ? /* @__PURE__ */ h("div", {
590
+ children: y ? /* @__PURE__ */ g("div", {
355
591
  className: "tp-header-right-slot",
356
- children: [g ? /* @__PURE__ */ m("div", {
357
- className: "tp-header-well",
358
- children: i
359
- }) : i, v && /* @__PURE__ */ m("span", {
592
+ children: [p ? /* @__PURE__ */ h(A, { children: i }) : i, v && /* @__PURE__ */ h("span", {
360
593
  className: "tp-header-badge",
361
594
  children: l
362
595
  })]
@@ -366,77 +599,98 @@ var v = ({ device: t, width: n, height: r, screenSize: a, showFrame: o = !0, sho
366
599
  });
367
600
  };
368
601
  // src/core/components/TPTabBar.tsx
369
- function S(e, t) {
602
+ function M(e, t) {
370
603
  let i = t && e.activeIcon !== void 0 ? e.activeIcon : e.icon;
371
- return typeof i == "string" ? n(i) ? /* @__PURE__ */ m(r, {
604
+ return typeof i == "string" ? n(i) ? /* @__PURE__ */ h(r, {
372
605
  name: i,
373
606
  size: 22
374
- }) : /* @__PURE__ */ m("span", {
607
+ }) : /* @__PURE__ */ h("span", {
375
608
  className: "tp-tabbar-icon-fallback",
376
609
  "aria-hidden": "true",
377
610
  children: i
378
611
  }) : i;
379
612
  }
380
- function C(e) {
381
- return e == null || e === !1 ? null : e === !0 ? /* @__PURE__ */ m("span", {
613
+ function N(e) {
614
+ return e == null || e === !1 ? null : e === !0 ? /* @__PURE__ */ h("span", {
382
615
  className: "tp-tabbar-badge tp-tabbar-badge--dot",
383
616
  "aria-label": "Notification"
384
- }) : typeof e == "number" ? e <= 0 ? null : /* @__PURE__ */ m("span", {
617
+ }) : typeof e == "number" ? e <= 0 ? null : /* @__PURE__ */ h("span", {
385
618
  className: "tp-tabbar-badge",
386
619
  children: e > 99 ? "99+" : String(e)
387
- }) : e === "" ? null : /* @__PURE__ */ m("span", {
620
+ }) : e === "" ? null : /* @__PURE__ */ h("span", {
388
621
  className: "tp-tabbar-badge",
389
622
  children: e
390
623
  });
391
624
  }
392
- var w = ({ items: e, activeKey: t, onChange: n, variant: r = "floating-pill", extraAction: i, className: a = "", style: o }) => {
393
- let s = i != null && r === "floating-pill", c = [
625
+ var P = ({ items: e, activeKey: t, onChange: n, variant: r = "floating-pill", extraAction: i, className: a = "", style: o }) => {
626
+ let s = f(null), c = i != null && r === "floating-pill", l = e.findIndex((e) => e.key === t), u = [
394
627
  "tp-tabbar",
395
628
  `tp-tabbar--${r}`,
396
- s ? "tp-tabbar--has-extra" : "",
629
+ c ? "tp-tabbar--has-extra" : "",
397
630
  a
398
- ].filter(Boolean).join(" ");
399
- return /* @__PURE__ */ h("nav", {
400
- className: c,
631
+ ].filter(Boolean).join(" "), d = r === "floating-pill" && l >= 0 && e.length > 0 ? {
632
+ width: `calc((100% - 8px - ${(e.length - 1) * 4}px) / ${e.length})`,
633
+ transform: `translateX(calc(${l} * (100% + 4px)))`
634
+ } : void 0;
635
+ return /* @__PURE__ */ g("nav", {
636
+ className: u,
401
637
  "data-variant": r,
402
638
  "aria-label": "Bottom Navigation",
403
639
  style: o,
404
- children: [/* @__PURE__ */ m("div", {
640
+ children: [/* @__PURE__ */ g("div", {
641
+ ref: s,
405
642
  className: "tp-tabbar-track",
406
643
  role: "tablist",
407
- children: e.map((e) => {
408
- let r = e.key === t;
409
- return /* @__PURE__ */ h("button", {
410
- type: "button",
411
- role: "tab",
412
- "aria-selected": r,
413
- className: `tp-tabbar-item ${r ? "tp-tabbar-item--active" : ""}`.trim(),
414
- onClick: () => n(e.key),
415
- children: [/* @__PURE__ */ h("span", {
416
- className: "tp-tabbar-icon-wrap",
417
- children: [/* @__PURE__ */ m("span", {
418
- className: "tp-tabbar-icon",
419
- children: S(e, r)
420
- }), C(e.badge)]
421
- }), /* @__PURE__ */ m("span", {
422
- className: "tp-tabbar-label",
423
- children: e.label
424
- })]
425
- }, e.key);
426
- })
427
- }), s && /* @__PURE__ */ m("div", {
644
+ children: [
645
+ r === "floating-pill" && /* @__PURE__ */ h(k, {
646
+ hostRef: s,
647
+ shape: "pill",
648
+ tint: "clear",
649
+ bezelWidth: 16,
650
+ refraction: 1.35,
651
+ dispersion: 1.15,
652
+ blur: 2.2
653
+ }),
654
+ d && /* @__PURE__ */ h("span", {
655
+ className: "tp-tabbar-active-lens",
656
+ "aria-hidden": "true",
657
+ "data-active-index": l,
658
+ style: d
659
+ }),
660
+ e.map((e) => {
661
+ let r = e.key === t;
662
+ return /* @__PURE__ */ g("button", {
663
+ type: "button",
664
+ role: "tab",
665
+ "aria-selected": r,
666
+ className: `tp-tabbar-item ${r ? "tp-tabbar-item--active" : ""}`.trim(),
667
+ onClick: () => n(e.key),
668
+ children: [/* @__PURE__ */ g("span", {
669
+ className: "tp-tabbar-icon-wrap",
670
+ children: [/* @__PURE__ */ h("span", {
671
+ className: "tp-tabbar-icon",
672
+ children: M(e, r)
673
+ }), N(e.badge)]
674
+ }), /* @__PURE__ */ h("span", {
675
+ className: "tp-tabbar-label",
676
+ children: e.label
677
+ })]
678
+ }, e.key);
679
+ })
680
+ ]
681
+ }), c && /* @__PURE__ */ h("div", {
428
682
  className: "tp-tabbar-extra",
429
683
  children: i
430
684
  })]
431
685
  });
432
- }, T = ({ options: e, value: t, onChange: n, variant: r = "underline", fullWidth: i = !0, className: a = "", style: o }) => {
686
+ }, F = ({ options: e, value: t, onChange: n, variant: r = "underline", fullWidth: i = !0, className: a = "", style: o }) => {
433
687
  let s = [
434
688
  "tp-segment",
435
689
  `tp-segment--${r}`,
436
690
  i ? "tp-segment--full" : "",
437
691
  a
438
692
  ].filter(Boolean).join(" ");
439
- return /* @__PURE__ */ m("div", {
693
+ return /* @__PURE__ */ h("div", {
440
694
  className: s,
441
695
  role: "tablist",
442
696
  "data-variant": r,
@@ -447,7 +701,7 @@ var w = ({ items: e, activeKey: t, onChange: n, variant: r = "floating-pill", ex
447
701
  r ? "tp-segment-item--active" : "",
448
702
  e.disabled ? "tp-segment-item--disabled" : ""
449
703
  ].filter(Boolean).join(" ");
450
- return /* @__PURE__ */ h("button", {
704
+ return /* @__PURE__ */ g("button", {
451
705
  type: "button",
452
706
  role: "tab",
453
707
  "aria-selected": r,
@@ -456,41 +710,41 @@ var w = ({ items: e, activeKey: t, onChange: n, variant: r = "floating-pill", ex
456
710
  onClick: () => {
457
711
  e.disabled || n(e.key);
458
712
  },
459
- children: [/* @__PURE__ */ m("span", {
713
+ children: [/* @__PURE__ */ h("span", {
460
714
  className: "tp-segment-label",
461
715
  children: e.label
462
- }), e.badge !== void 0 && e.badge !== null && e.badge !== "" && /* @__PURE__ */ m("span", {
716
+ }), e.badge !== void 0 && e.badge !== null && e.badge !== "" && /* @__PURE__ */ h("span", {
463
717
  className: "tp-segment-badge",
464
718
  children: e.badge
465
719
  })]
466
720
  }, e.key);
467
721
  })
468
722
  });
469
- }, E = ({ total: e, current: t, onChange: n, className: r = "", style: i }) => {
723
+ }, I = ({ total: e, current: t, onChange: n, className: r = "", style: i }) => {
470
724
  if (e <= 0) return null;
471
725
  let a = ["tp-page-control", r].filter(Boolean).join(" ");
472
- return /* @__PURE__ */ m("div", {
726
+ return /* @__PURE__ */ h("div", {
473
727
  className: a,
474
728
  role: "navigation",
475
729
  "aria-label": "Page indicator",
476
730
  style: i,
477
731
  children: Array.from({ length: e }, (e, r) => {
478
732
  let i = r === t, a = ["tp-page-control-dot", i ? "tp-page-control-dot--active" : ""].filter(Boolean).join(" ");
479
- return n ? /* @__PURE__ */ m("button", {
733
+ return n ? /* @__PURE__ */ h("button", {
480
734
  type: "button",
481
735
  className: a,
482
736
  "aria-label": `Page ${r + 1}`,
483
737
  "aria-current": i ? "page" : void 0,
484
738
  "data-active": String(i),
485
739
  onClick: () => n(r)
486
- }, r) : /* @__PURE__ */ m("span", {
740
+ }, r) : /* @__PURE__ */ h("span", {
487
741
  className: a,
488
742
  "data-active": String(i),
489
743
  "aria-current": i ? "page" : void 0
490
744
  }, r);
491
745
  })
492
746
  });
493
- }, D = ({ variant: e = "primary", size: t = "lg", block: n = !1, loading: r = !1, htmlType: i = "button", icon: a, disabled: o = !1, className: s = "", children: c, ...l }) => {
747
+ }, L = ({ variant: e = "primary", size: t = "lg", block: n = !1, loading: r = !1, htmlType: i = "button", icon: a, disabled: o = !1, className: s = "", children: c, ...l }) => {
494
748
  let u = [
495
749
  "tp-btn",
496
750
  `tp-btn--${e}`,
@@ -499,7 +753,7 @@ var w = ({ items: e, activeKey: t, onChange: n, variant: r = "floating-pill", ex
499
753
  r ? "tp-btn--loading" : "",
500
754
  s
501
755
  ].filter(Boolean).join(" ");
502
- return /* @__PURE__ */ h("button", {
756
+ return /* @__PURE__ */ g("button", {
503
757
  ...l,
504
758
  type: i,
505
759
  className: u,
@@ -507,24 +761,24 @@ var w = ({ items: e, activeKey: t, onChange: n, variant: r = "floating-pill", ex
507
761
  "aria-busy": r || void 0,
508
762
  "data-variant": e,
509
763
  "data-size": t,
510
- children: [r ? /* @__PURE__ */ m("span", {
764
+ children: [r ? /* @__PURE__ */ h("span", {
511
765
  className: "tp-btn-spinner",
512
766
  "aria-hidden": "true"
513
- }) : a == null ? null : /* @__PURE__ */ m("span", {
767
+ }) : a == null ? null : /* @__PURE__ */ h("span", {
514
768
  className: "tp-btn-icon",
515
769
  "aria-hidden": "true",
516
770
  children: a
517
- }), c != null && /* @__PURE__ */ m("span", {
771
+ }), c != null && /* @__PURE__ */ h("span", {
518
772
  className: "tp-btn-label",
519
773
  children: c
520
774
  })]
521
775
  });
522
- }, O = ({ layout: e = "single", primaryText: t, onPrimaryClick: n, primaryLoading: r = !1, primaryDisabled: i = !1, secondaryText: a, onSecondaryClick: o, secondaryVariant: s = "secondary", note: c, className: l = "", style: u }) => {
776
+ }, R = ({ layout: e = "single", primaryText: t, onPrimaryClick: n, primaryLoading: r = !1, primaryDisabled: i = !1, secondaryText: a, onSecondaryClick: o, secondaryVariant: s = "secondary", note: c, className: l = "", style: u }) => {
523
777
  let d = [
524
778
  "tp-fixed-btn-bar",
525
779
  `tp-fixed-btn-bar--${e}`,
526
780
  l
527
- ].filter(Boolean).join(" "), f = /* @__PURE__ */ m(D, {
781
+ ].filter(Boolean).join(" "), f = /* @__PURE__ */ h(L, {
528
782
  variant: "primary",
529
783
  size: "lg",
530
784
  block: !0,
@@ -532,28 +786,28 @@ var w = ({ items: e, activeKey: t, onChange: n, variant: r = "floating-pill", ex
532
786
  disabled: i,
533
787
  onClick: n,
534
788
  children: t
535
- }), g = a ? /* @__PURE__ */ m(D, {
789
+ }), p = a ? /* @__PURE__ */ h(L, {
536
790
  variant: s,
537
791
  size: "lg",
538
792
  block: !0,
539
793
  onClick: o,
540
794
  children: a
541
795
  }) : null;
542
- return /* @__PURE__ */ h("div", {
796
+ return /* @__PURE__ */ g("div", {
543
797
  className: d,
544
798
  "data-layout": e,
545
799
  style: u,
546
- children: [c != null && /* @__PURE__ */ m("div", {
800
+ children: [c != null && /* @__PURE__ */ h("div", {
547
801
  className: "tp-fixed-btn-bar-note",
548
802
  children: c
549
- }), /* @__PURE__ */ m("div", {
803
+ }), /* @__PURE__ */ h("div", {
550
804
  className: "tp-fixed-btn-bar-actions",
551
- children: e === "dual-horizontal" ? /* @__PURE__ */ h(p, { children: [g, f] }) : /* @__PURE__ */ h(p, { children: [f, e === "dual-vertical" ? g : null] })
805
+ children: e === "dual-horizontal" ? /* @__PURE__ */ g(m, { children: [p, f] }) : /* @__PURE__ */ g(m, { children: [f, e === "dual-vertical" ? p : null] })
552
806
  })]
553
807
  });
554
- }, k = ({ checked: e, defaultChecked: t = !1, onChange: n, disabled: r = !1, loading: i = !1, ariaLabel: a, className: o = "", style: s }) => {
555
- let [c, l] = f(t), u = e !== void 0, d = u ? e : c, p = r || i, h = () => {
556
- if (p) return;
808
+ }, z = ({ checked: e, defaultChecked: t = !1, onChange: n, disabled: r = !1, loading: i = !1, ariaLabel: a, className: o = "", style: s }) => {
809
+ let [c, l] = p(t), u = e !== void 0, d = u ? e : c, f = r || i, m = () => {
810
+ if (f) return;
557
811
  let e = !d;
558
812
  u || l(e), n?.(e);
559
813
  }, g = [
@@ -563,144 +817,144 @@ var w = ({ items: e, activeKey: t, onChange: n, variant: r = "floating-pill", ex
563
817
  i ? "tp-switch--loading" : "",
564
818
  o
565
819
  ].filter(Boolean).join(" ");
566
- return /* @__PURE__ */ m("button", {
820
+ return /* @__PURE__ */ h("button", {
567
821
  type: "button",
568
822
  role: "switch",
569
823
  "aria-checked": d,
570
824
  "aria-label": a,
571
825
  "aria-busy": i || void 0,
572
- disabled: p,
826
+ disabled: f,
573
827
  className: g,
574
828
  style: s,
575
- onClick: h,
576
- children: /* @__PURE__ */ m("span", {
829
+ onClick: m,
830
+ children: /* @__PURE__ */ h("span", {
577
831
  className: "tp-switch-thumb",
578
832
  "aria-hidden": "true",
579
- children: i && /* @__PURE__ */ m("span", { className: "tp-switch-spinner" })
833
+ children: i && /* @__PURE__ */ h("span", { className: "tp-switch-spinner" })
580
834
  })
581
835
  });
582
836
  };
583
837
  // src/core/components/TPSlider.tsx
584
- function A(e, t, n) {
838
+ function B(e, t, n) {
585
839
  return Number.isNaN(e) ? t : Math.min(n, Math.max(t, e));
586
840
  }
587
- function j(e, t, n) {
588
- return n <= t ? 0 : (A(e, t, n) - t) / (n - t) * 100;
841
+ function V(e, t, n) {
842
+ return n <= t ? 0 : (B(e, t, n) - t) / (n - t) * 100;
589
843
  }
590
- function M(e, t, n) {
591
- let r = A(e?.[0] ?? t, t, n), i = A(e?.[1] ?? n, t, n);
844
+ function H(e, t, n) {
845
+ let r = B(e?.[0] ?? t, t, n), i = B(e?.[1] ?? n, t, n);
592
846
  return r <= i ? [r, i] : [i, r];
593
847
  }
594
- var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, marks: a, showValue: o = !1, unit: s = "", disabled: c = !1, range: l = !1, rangeValue: u, defaultRangeValue: g, onRangeChange: _, onRangeAfterChange: v, onChange: y, onAfterChange: b, ariaLabel: x, className: S = "", style: C }) => {
595
- let w = e !== void 0, [T, E] = f(() => A(t ?? n, n, r)), D = A(w ? e : T, n, r), O = d(D);
848
+ var U = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, marks: a, showValue: o = !1, unit: s = "", disabled: c = !1, range: l = !1, rangeValue: u, defaultRangeValue: d, onRangeChange: _, onRangeAfterChange: v, onChange: y, onAfterChange: b, ariaLabel: x, className: S = "", style: C }) => {
849
+ let w = e !== void 0, [T, E] = p(() => B(t ?? n, n, r)), D = B(w ? e : T, n, r), O = f(D);
596
850
  O.current = D;
597
- let k = u !== void 0, [N, P] = f(() => M(g ?? [n, Math.round(n + (r - n) * .6)], n, r)), F = M(k ? u : N, n, r), I = d(F);
598
- I.current = F;
599
- let L = j(D, n, r), R = j(F[0], n, r), z = j(F[1], n, r), B = (e, t = !1) => {
600
- let i = A(e, n, r);
851
+ let k = u !== void 0, [A, j] = p(() => H(d ?? [n, Math.round(n + (r - n) * .6)], n, r)), M = H(k ? u : A, n, r), N = f(M);
852
+ N.current = M;
853
+ let P = V(D, n, r), F = V(M[0], n, r), I = V(M[1], n, r), L = (e, t = !1) => {
854
+ let i = B(e, n, r);
601
855
  O.current = i, w || E(i), y?.(i), t && b?.(i);
602
- }, V = (e, t = !1) => {
603
- let i = M(e, n, r);
604
- I.current = i, k || P(i), _?.(i), t && v?.(i);
605
- }, H = (e) => {
606
- c || B(Number(e.target.value), !1);
856
+ }, R = (e, t = !1) => {
857
+ let i = H(e, n, r);
858
+ N.current = i, k || j(i), _?.(i), t && v?.(i);
859
+ }, z = (e) => {
860
+ c || L(Number(e.target.value), !1);
607
861
  }, U = () => {
608
- c || (l ? v?.(I.current) : b?.(O.current));
862
+ c || (l ? v?.(N.current) : b?.(O.current));
609
863
  }, W = !!a?.some((e) => e.label !== void 0), G = [
610
864
  "tp-slider",
611
865
  l ? "tp-slider--range" : "",
612
866
  c ? "tp-slider--disabled" : "",
613
867
  S
614
868
  ].filter(Boolean).join(" ");
615
- return /* @__PURE__ */ h("div", {
869
+ return /* @__PURE__ */ g("div", {
616
870
  className: G,
617
871
  style: C,
618
872
  children: [
619
- o && /* @__PURE__ */ m("div", {
873
+ o && /* @__PURE__ */ h("div", {
620
874
  className: "tp-slider-header",
621
- children: /* @__PURE__ */ m("span", {
875
+ children: /* @__PURE__ */ h("span", {
622
876
  className: "tp-slider-value",
623
- children: l ? `${F[0]}${s} – ${F[1]}${s}` : `${D}${s}`
877
+ children: l ? `${M[0]}${s} – ${M[1]}${s}` : `${D}${s}`
624
878
  })
625
879
  }),
626
- /* @__PURE__ */ h("div", {
880
+ /* @__PURE__ */ g("div", {
627
881
  className: "tp-slider-control",
628
- children: [/* @__PURE__ */ h("div", {
882
+ children: [/* @__PURE__ */ g("div", {
629
883
  className: "tp-slider-track",
630
884
  "aria-hidden": "true",
631
- children: [/* @__PURE__ */ m("div", {
885
+ children: [/* @__PURE__ */ h("div", {
632
886
  className: "tp-slider-fill",
633
887
  style: l ? {
634
- left: `${R}%`,
635
- width: `${Math.max(0, z - R)}%`
888
+ left: `${F}%`,
889
+ width: `${Math.max(0, I - F)}%`
636
890
  } : {
637
891
  left: 0,
638
- width: `${L}%`
892
+ width: `${P}%`
639
893
  }
640
- }), a && a.length > 0 && /* @__PURE__ */ m("div", {
894
+ }), a && a.length > 0 && /* @__PURE__ */ h("div", {
641
895
  className: "tp-slider-ticks",
642
896
  children: a.map((e) => {
643
- let t = j(e.value, n, r), i = l ? e.value >= F[0] && e.value <= F[1] : e.value <= D;
644
- return /* @__PURE__ */ m("span", {
897
+ let t = V(e.value, n, r), i = l ? e.value >= M[0] && e.value <= M[1] : e.value <= D;
898
+ return /* @__PURE__ */ h("span", {
645
899
  className: `tp-slider-tick ${i ? "tp-slider-tick--active" : ""}`.trim(),
646
900
  style: { left: `${t}%` }
647
901
  }, e.value);
648
902
  })
649
903
  })]
650
- }), l ? /* @__PURE__ */ h(p, { children: [
651
- /* @__PURE__ */ m("div", {
904
+ }), l ? /* @__PURE__ */ g(m, { children: [
905
+ /* @__PURE__ */ h("div", {
652
906
  className: "tp-slider-thumb",
653
- style: { left: `${R}%` },
907
+ style: { left: `${F}%` },
654
908
  "aria-hidden": "true"
655
909
  }),
656
- /* @__PURE__ */ m("div", {
910
+ /* @__PURE__ */ h("div", {
657
911
  className: "tp-slider-thumb tp-slider-thumb--secondary",
658
- style: { left: `${z}%` },
912
+ style: { left: `${I}%` },
659
913
  "aria-hidden": "true"
660
914
  }),
661
- /* @__PURE__ */ m("input", {
915
+ /* @__PURE__ */ h("input", {
662
916
  type: "range",
663
917
  className: "tp-slider-input tp-slider-input--range",
664
918
  min: n,
665
919
  max: r,
666
920
  step: i,
667
- value: F[0],
921
+ value: M[0],
668
922
  disabled: c,
669
923
  "aria-label": x ? `${x} minimum` : "Minimum value",
670
924
  onChange: (e) => {
671
925
  if (c) return;
672
- let t = Math.min(Number(e.target.value), F[1]);
673
- V([t, F[1]], !1);
926
+ let t = Math.min(Number(e.target.value), M[1]);
927
+ R([t, M[1]], !1);
674
928
  },
675
929
  onPointerUp: U,
676
930
  onMouseUp: U,
677
931
  onTouchEnd: U,
678
932
  onKeyUp: U
679
933
  }),
680
- /* @__PURE__ */ m("input", {
934
+ /* @__PURE__ */ h("input", {
681
935
  type: "range",
682
936
  className: "tp-slider-input tp-slider-input--range tp-slider-input--secondary",
683
937
  min: n,
684
938
  max: r,
685
939
  step: i,
686
- value: F[1],
940
+ value: M[1],
687
941
  disabled: c,
688
942
  "aria-label": x ? `${x} maximum` : "Maximum value",
689
943
  onChange: (e) => {
690
944
  if (c) return;
691
- let t = Math.max(Number(e.target.value), F[0]);
692
- V([F[0], t], !1);
945
+ let t = Math.max(Number(e.target.value), M[0]);
946
+ R([M[0], t], !1);
693
947
  },
694
948
  onPointerUp: U,
695
949
  onMouseUp: U,
696
950
  onTouchEnd: U,
697
951
  onKeyUp: U
698
952
  })
699
- ] }) : /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
953
+ ] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
700
954
  className: "tp-slider-thumb",
701
- style: { left: `${L}%` },
955
+ style: { left: `${P}%` },
702
956
  "aria-hidden": "true"
703
- }), /* @__PURE__ */ m("input", {
957
+ }), /* @__PURE__ */ h("input", {
704
958
  type: "range",
705
959
  className: "tp-slider-input",
706
960
  min: n,
@@ -709,31 +963,31 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
709
963
  value: D,
710
964
  disabled: c,
711
965
  "aria-label": x,
712
- onChange: H,
966
+ onChange: z,
713
967
  onPointerUp: U,
714
968
  onMouseUp: U,
715
969
  onTouchEnd: U,
716
970
  onKeyUp: U
717
971
  })] })]
718
972
  }),
719
- W && a && /* @__PURE__ */ m("div", {
973
+ W && a && /* @__PURE__ */ h("div", {
720
974
  className: "tp-slider-marks",
721
975
  children: a.map((e) => {
722
976
  if (e.label === void 0) return null;
723
- let t = j(e.value, n, r), i = l ? e.value === F[0] || e.value === F[1] : e.value === D;
724
- return /* @__PURE__ */ m("div", {
977
+ let t = V(e.value, n, r), i = l ? e.value === M[0] || e.value === M[1] : e.value === D;
978
+ return /* @__PURE__ */ h("div", {
725
979
  className: [
726
980
  "tp-slider-mark",
727
981
  t <= 2 ? "tp-slider-mark--start" : t >= 98 ? "tp-slider-mark--end" : "",
728
982
  i ? "tp-slider-mark--active" : ""
729
983
  ].filter(Boolean).join(" "),
730
984
  style: { left: `${t}%` },
731
- children: /* @__PURE__ */ m("button", {
985
+ children: /* @__PURE__ */ h("button", {
732
986
  type: "button",
733
987
  className: "tp-slider-mark-btn",
734
988
  disabled: c,
735
989
  onClick: () => {
736
- c || (l ? Math.abs(e.value - F[0]) <= Math.abs(e.value - F[1]) ? V([e.value, F[1]], !0) : V([F[0], e.value], !0) : B(e.value, !0));
990
+ c || (l ? Math.abs(e.value - M[0]) <= Math.abs(e.value - M[1]) ? R([e.value, M[1]], !0) : R([M[0], e.value], !0) : L(e.value, !0));
737
991
  },
738
992
  children: e.label
739
993
  })
@@ -742,7 +996,7 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
742
996
  })
743
997
  ]
744
998
  });
745
- }, P = ({ title: e, extra: t, radius: n = "theme", padding: r = "none", divided: i = !1, className: a = "", style: o, children: s }) => {
999
+ }, W = ({ title: e, extra: t, radius: n = "theme", padding: r = "none", divided: i = !1, className: a = "", style: o, children: s }) => {
746
1000
  let c = [
747
1001
  "tp-list-card",
748
1002
  `tp-list-card--radius-${n}`,
@@ -750,53 +1004,53 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
750
1004
  i ? "tp-list-card--divided" : "",
751
1005
  a
752
1006
  ].filter(Boolean).join(" ");
753
- return /* @__PURE__ */ h("div", {
1007
+ return /* @__PURE__ */ g("div", {
754
1008
  className: c,
755
1009
  style: o,
756
- children: [(e !== void 0 || t !== void 0) && /* @__PURE__ */ h("div", {
1010
+ children: [(e !== void 0 || t !== void 0) && /* @__PURE__ */ g("div", {
757
1011
  className: "tp-list-card-header",
758
- children: [/* @__PURE__ */ m("div", {
1012
+ children: [/* @__PURE__ */ h("div", {
759
1013
  className: "tp-list-card-title",
760
1014
  children: e
761
- }), t !== void 0 && /* @__PURE__ */ m("div", {
1015
+ }), t !== void 0 && /* @__PURE__ */ h("div", {
762
1016
  className: "tp-list-card-extra",
763
1017
  children: t
764
1018
  })]
765
- }), /* @__PURE__ */ m("div", {
1019
+ }), /* @__PURE__ */ h("div", {
766
1020
  className: "tp-list-card-body",
767
1021
  children: s
768
1022
  })]
769
1023
  });
770
- }, F = ({ checked: e, defaultChecked: t = !1, onChange: n, disabled: r = !1, loading: i = !1, ariaLabel: a, className: o = "", style: s, fallbackLabel: c }) => {
771
- let [l, u] = f(t), d = e !== void 0, p = d ? e : l, h = r || i, g = (e) => {
772
- if (e.stopPropagation(), h) return;
773
- let t = !p;
1024
+ }, G = ({ checked: e, defaultChecked: t = !1, onChange: n, disabled: r = !1, loading: i = !1, ariaLabel: a, className: o = "", style: s, fallbackLabel: c }) => {
1025
+ let [l, u] = p(t), d = e !== void 0, f = d ? e : l, m = r || i, g = (e) => {
1026
+ if (e.stopPropagation(), m) return;
1027
+ let t = !f;
774
1028
  d || u(t), n?.(t);
775
1029
  }, _ = [
776
1030
  "tp-switch",
777
- p ? "tp-switch--checked" : "",
778
- h ? "tp-switch--disabled" : "",
1031
+ f ? "tp-switch--checked" : "",
1032
+ m ? "tp-switch--disabled" : "",
779
1033
  i ? "tp-switch--loading" : "",
780
1034
  o
781
1035
  ].filter(Boolean).join(" ");
782
- return /* @__PURE__ */ m("button", {
1036
+ return /* @__PURE__ */ h("button", {
783
1037
  type: "button",
784
1038
  role: "switch",
785
- "aria-checked": p,
1039
+ "aria-checked": f,
786
1040
  "aria-label": a ?? c ?? "Toggle",
787
- disabled: h,
1041
+ disabled: m,
788
1042
  className: _,
789
1043
  style: s,
790
1044
  onClick: g,
791
- children: /* @__PURE__ */ m("span", {
1045
+ children: /* @__PURE__ */ h("span", {
792
1046
  className: "tp-switch-thumb",
793
- children: i ? /* @__PURE__ */ m("span", {
1047
+ children: i ? /* @__PURE__ */ h("span", {
794
1048
  className: "tp-switch-spinner",
795
1049
  "aria-hidden": "true"
796
1050
  }) : null
797
1051
  })
798
1052
  });
799
- }, I = ({ title: e, subtitle: t, description: n, value: r, leading: i, trailing: a, badge: o, arrow: s = !1, checked: c, switchProps: l, danger: u = !1, disabled: d = !1, onClick: f, className: p = "", style: g }) => {
1053
+ }, K = ({ title: e, subtitle: t, description: n, value: r, leading: i, trailing: a, badge: o, arrow: s = !1, checked: c, switchProps: l, danger: u = !1, disabled: d = !1, onClick: f, className: p = "", style: m }) => {
800
1054
  let _ = !!f && !d, v = r != null || o != null || a != null || !!c || !!l || s, y = () => {
801
1055
  !d && f && f();
802
1056
  }, b = (e) => {
@@ -808,9 +1062,9 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
808
1062
  d ? "tp-list-item--disabled" : "",
809
1063
  p
810
1064
  ].filter(Boolean).join(" ");
811
- return /* @__PURE__ */ h("div", {
1065
+ return /* @__PURE__ */ g("div", {
812
1066
  className: x,
813
- style: g,
1067
+ style: m,
814
1068
  role: f ? "button" : void 0,
815
1069
  tabIndex: _ ? 0 : void 0,
816
1070
  "aria-disabled": d || void 0,
@@ -818,51 +1072,51 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
818
1072
  onClick: f ? y : void 0,
819
1073
  onKeyDown: f ? b : void 0,
820
1074
  children: [
821
- i != null && /* @__PURE__ */ m("div", {
1075
+ i != null && /* @__PURE__ */ h("div", {
822
1076
  className: "tp-list-item-leading",
823
1077
  children: i
824
1078
  }),
825
- /* @__PURE__ */ h("div", {
1079
+ /* @__PURE__ */ g("div", {
826
1080
  className: "tp-list-item-content",
827
1081
  children: [
828
- /* @__PURE__ */ m("div", {
1082
+ /* @__PURE__ */ h("div", {
829
1083
  className: "tp-list-item-title",
830
1084
  children: e
831
1085
  }),
832
- t != null && /* @__PURE__ */ m("div", {
1086
+ t != null && /* @__PURE__ */ h("div", {
833
1087
  className: "tp-list-item-subtitle",
834
1088
  children: t
835
1089
  }),
836
- n != null && /* @__PURE__ */ m("div", {
1090
+ n != null && /* @__PURE__ */ h("div", {
837
1091
  className: "tp-list-item-description",
838
1092
  children: n
839
1093
  })
840
1094
  ]
841
1095
  }),
842
- v && /* @__PURE__ */ h("div", {
1096
+ v && /* @__PURE__ */ g("div", {
843
1097
  className: "tp-list-item-trailing-group",
844
1098
  children: [
845
- r != null && /* @__PURE__ */ m("div", {
1099
+ r != null && /* @__PURE__ */ h("div", {
846
1100
  className: "tp-list-item-value",
847
1101
  children: r
848
1102
  }),
849
- o != null && /* @__PURE__ */ m("span", {
1103
+ o != null && /* @__PURE__ */ h("span", {
850
1104
  className: "tp-list-item-badge",
851
1105
  children: o
852
1106
  }),
853
- a != null && /* @__PURE__ */ m("div", {
1107
+ a != null && /* @__PURE__ */ h("div", {
854
1108
  className: "tp-list-item-trailing",
855
1109
  children: a
856
1110
  }),
857
- c && /* @__PURE__ */ m("span", {
1111
+ c && /* @__PURE__ */ h("span", {
858
1112
  className: "tp-list-item-check",
859
1113
  "aria-hidden": "true",
860
- children: /* @__PURE__ */ m("svg", {
1114
+ children: /* @__PURE__ */ h("svg", {
861
1115
  width: "18",
862
1116
  height: "18",
863
1117
  viewBox: "0 0 18 18",
864
1118
  fill: "none",
865
- children: /* @__PURE__ */ m("path", {
1119
+ children: /* @__PURE__ */ h("path", {
866
1120
  d: "M4 9.2L7.4 12.6L14 5.5",
867
1121
  stroke: "currentColor",
868
1122
  strokeWidth: "2",
@@ -871,20 +1125,20 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
871
1125
  })
872
1126
  })
873
1127
  }),
874
- l && /* @__PURE__ */ m(F, {
1128
+ l && /* @__PURE__ */ h(G, {
875
1129
  ...l,
876
1130
  disabled: d || l.disabled,
877
1131
  fallbackLabel: typeof e == "string" ? e : void 0
878
1132
  }),
879
- s && /* @__PURE__ */ m("span", {
1133
+ s && /* @__PURE__ */ h("span", {
880
1134
  className: "tp-list-item-arrow",
881
1135
  "aria-hidden": "true",
882
- children: /* @__PURE__ */ m("svg", {
1136
+ children: /* @__PURE__ */ h("svg", {
883
1137
  width: "16",
884
1138
  height: "16",
885
1139
  viewBox: "0 0 16 16",
886
1140
  fill: "none",
887
- children: /* @__PURE__ */ m("path", {
1141
+ children: /* @__PURE__ */ h("path", {
888
1142
  d: "M6 3.5L10.5 8L6 12.5",
889
1143
  stroke: "currentColor",
890
1144
  strokeWidth: "1.75",
@@ -897,7 +1151,7 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
897
1151
  })
898
1152
  ]
899
1153
  });
900
- }, L = ({ children: e, tone: t = "focus", align: n = "center", disabled: r = !1, onClick: i, className: a = "", style: o }) => {
1154
+ }, q = ({ children: e, tone: t = "focus", align: n = "center", disabled: r = !1, onClick: i, className: a = "", style: o }) => {
901
1155
  let s = [
902
1156
  "tp-list-button",
903
1157
  `tp-list-button--tone-${t}`,
@@ -905,7 +1159,7 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
905
1159
  r ? "tp-list-button--disabled" : "",
906
1160
  a
907
1161
  ].filter(Boolean).join(" ");
908
- return /* @__PURE__ */ m("button", {
1162
+ return /* @__PURE__ */ h("button", {
909
1163
  type: "button",
910
1164
  className: s,
911
1165
  style: o,
@@ -913,17 +1167,17 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
913
1167
  onClick: r ? void 0 : i,
914
1168
  children: e
915
1169
  });
916
- }, R = ({ title: e, count: t, action: n, className: r = "", style: i }) => {
1170
+ }, J = ({ title: e, count: t, action: n, className: r = "", style: i }) => {
917
1171
  let a = ["tp-section-header", r].filter(Boolean).join(" ");
918
- return /* @__PURE__ */ h("div", {
1172
+ return /* @__PURE__ */ g("div", {
919
1173
  className: a,
920
1174
  style: i,
921
- children: [/* @__PURE__ */ h("div", {
1175
+ children: [/* @__PURE__ */ g("div", {
922
1176
  className: "tp-section-header-left",
923
- children: [/* @__PURE__ */ m("span", {
1177
+ children: [/* @__PURE__ */ h("span", {
924
1178
  className: "tp-section-header-title",
925
1179
  children: e
926
- }), t != null && /* @__PURE__ */ h("span", {
1180
+ }), t != null && /* @__PURE__ */ g("span", {
927
1181
  className: "tp-section-header-count",
928
1182
  children: [
929
1183
  " (",
@@ -931,23 +1185,23 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
931
1185
  ")"
932
1186
  ]
933
1187
  })]
934
- }), n != null && /* @__PURE__ */ m("div", {
1188
+ }), n != null && /* @__PURE__ */ h("div", {
935
1189
  className: "tp-section-header-action",
936
1190
  children: n
937
1191
  })]
938
1192
  });
939
- }, z = ({ children: e, tone: t = "default", className: n = "", style: r }) => {
1193
+ }, ee = ({ children: e, tone: t = "default", className: n = "", style: r }) => {
940
1194
  let i = [
941
1195
  "tp-section-note",
942
1196
  `tp-section-note--${t}`,
943
1197
  n
944
1198
  ].filter(Boolean).join(" ");
945
- return /* @__PURE__ */ m("div", {
1199
+ return /* @__PURE__ */ h("div", {
946
1200
  className: i,
947
1201
  style: r,
948
1202
  children: e
949
1203
  });
950
- }, B = {
1204
+ }, te = {
951
1205
  title1: "h1",
952
1206
  title2: "h2",
953
1207
  title3: "h3",
@@ -956,20 +1210,20 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
956
1210
  subhead: "span",
957
1211
  caption: "span",
958
1212
  footnote: "span"
959
- }, V = ({ variant: e = "body", tone: t = "primary", as: n, weight: r, className: i = "", style: a, children: o }) => {
960
- let s = n ?? B[e], c = [
1213
+ }, ne = ({ variant: e = "body", tone: t = "primary", as: n, weight: r, className: i = "", style: a, children: o }) => {
1214
+ let s = n ?? te[e], c = [
961
1215
  "tp-text",
962
1216
  `tp-text--${e}`,
963
1217
  `tp-text--tone-${t}`,
964
1218
  r ? `tp-text--weight-${r}` : "",
965
1219
  i
966
1220
  ].filter(Boolean).join(" ");
967
- return /* @__PURE__ */ m(s, {
1221
+ return /* @__PURE__ */ h(s, {
968
1222
  className: c,
969
1223
  style: a,
970
1224
  children: o
971
1225
  });
972
- }, H = ({ children: e, tone: t, selected: n, size: r = "md", closable: i = !1, onClose: a, onClick: o, className: s = "", style: c }) => {
1226
+ }, re = ({ children: e, tone: t, selected: n, size: r = "md", closable: i = !1, onClose: a, onClick: o, className: s = "", style: c }) => {
973
1227
  let l = t ?? (n ? "focus" : "neutral"), u = n === !0 ? "tp-tag--selected" : n === !1 ? "tp-tag--unselected" : "", d = [
974
1228
  "tp-tag",
975
1229
  `tp-tag--${r}`,
@@ -978,14 +1232,14 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
978
1232
  o ? "tp-tag--clickable" : "",
979
1233
  s
980
1234
  ].filter(Boolean).join(" ");
981
- return o && !i ? /* @__PURE__ */ m("button", {
1235
+ return o && !i ? /* @__PURE__ */ h("button", {
982
1236
  type: "button",
983
1237
  className: d,
984
1238
  style: c,
985
1239
  "aria-pressed": n === void 0 ? void 0 : n,
986
1240
  onClick: o,
987
- children: /* @__PURE__ */ m("span", { children: e })
988
- }) : /* @__PURE__ */ h("span", {
1241
+ children: /* @__PURE__ */ h("span", { children: e })
1242
+ }) : /* @__PURE__ */ g("span", {
989
1243
  className: d,
990
1244
  style: c,
991
1245
  role: o ? "button" : void 0,
@@ -995,20 +1249,20 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
995
1249
  onKeyDown: o ? (e) => {
996
1250
  e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), o());
997
1251
  } : void 0,
998
- children: [/* @__PURE__ */ m("span", { children: e }), i ? /* @__PURE__ */ m("button", {
1252
+ children: [/* @__PURE__ */ h("span", { children: e }), i ? /* @__PURE__ */ h("button", {
999
1253
  type: "button",
1000
1254
  className: "tp-tag-close",
1001
1255
  "aria-label": "Remove tag",
1002
1256
  onClick: (e) => {
1003
1257
  e.stopPropagation(), a?.();
1004
1258
  },
1005
- children: /* @__PURE__ */ m("svg", {
1259
+ children: /* @__PURE__ */ h("svg", {
1006
1260
  width: "10",
1007
1261
  height: "10",
1008
1262
  viewBox: "0 0 10 10",
1009
1263
  fill: "none",
1010
1264
  "aria-hidden": "true",
1011
- children: /* @__PURE__ */ m("path", {
1265
+ children: /* @__PURE__ */ h("path", {
1012
1266
  d: "M2.2 2.2L7.8 7.8M7.8 2.2L2.2 7.8",
1013
1267
  stroke: "currentColor",
1014
1268
  strokeWidth: "1.5",
@@ -1017,10 +1271,10 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1017
1271
  })
1018
1272
  }) : null]
1019
1273
  });
1020
- }, U = ({ count: e, dot: t = !1, tone: n = "alert", max: r = 99, showZero: i = !1, children: a, className: o = "", style: s }) => {
1274
+ }, ie = ({ count: e, dot: t = !1, tone: n = "alert", max: r = 99, showZero: i = !1, children: a, className: o = "", style: s }) => {
1021
1275
  let c = null, l = !1;
1022
1276
  t ? l = !0 : e != null && (typeof e == "number" ? (e > 0 || e === 0 && i) && (l = !0, c = e > r ? `${r}+` : String(e)) : e !== "" && (e !== "0" || i) && (l = !0, c = e));
1023
- let u = l ? /* @__PURE__ */ m("span", {
1277
+ let u = l ? /* @__PURE__ */ h("span", {
1024
1278
  className: [
1025
1279
  "tp-badge",
1026
1280
  t ? "tp-badge--dot" : "",
@@ -1031,41 +1285,41 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1031
1285
  style: a ? void 0 : s,
1032
1286
  children: t ? null : c
1033
1287
  }) : null;
1034
- return a ? /* @__PURE__ */ h("span", {
1288
+ return a ? /* @__PURE__ */ g("span", {
1035
1289
  className: `tp-badge-wrapper ${o}`.trim(),
1036
1290
  style: s,
1037
1291
  children: [a, u]
1038
1292
  }) : u;
1039
- }, W = ({ illustration: e, theme: n, icon: r, title: i, description: a, actionText: o, onAction: s, compact: c = !1, className: l = "", style: u }) => {
1293
+ }, ae = ({ illustration: e, theme: n, icon: r, title: i, description: a, actionText: o, onAction: s, compact: c = !1, className: l = "", style: u }) => {
1040
1294
  let d = [
1041
1295
  "tp-empty-state",
1042
1296
  c ? "tp-empty-state--compact" : "",
1043
1297
  l
1044
1298
  ].filter(Boolean).join(" ");
1045
- return /* @__PURE__ */ h("div", {
1299
+ return /* @__PURE__ */ g("div", {
1046
1300
  className: d,
1047
1301
  style: u,
1048
1302
  children: [
1049
- e ? /* @__PURE__ */ m("div", {
1303
+ e ? /* @__PURE__ */ h("div", {
1050
1304
  className: "tp-empty-state-media",
1051
- children: /* @__PURE__ */ m(t, {
1305
+ children: /* @__PURE__ */ h(t, {
1052
1306
  name: e,
1053
1307
  theme: n,
1054
1308
  width: c ? 180 : 240
1055
1309
  })
1056
- }) : r ? /* @__PURE__ */ m("div", {
1310
+ }) : r ? /* @__PURE__ */ h("div", {
1057
1311
  className: "tp-empty-state-icon",
1058
1312
  children: r
1059
1313
  }) : null,
1060
- /* @__PURE__ */ m("div", {
1314
+ /* @__PURE__ */ h("div", {
1061
1315
  className: "tp-empty-state-title",
1062
1316
  children: i
1063
1317
  }),
1064
- a != null && /* @__PURE__ */ m("div", {
1318
+ a != null && /* @__PURE__ */ h("div", {
1065
1319
  className: "tp-empty-state-description",
1066
1320
  children: a
1067
1321
  }),
1068
- o && /* @__PURE__ */ m("button", {
1322
+ o && /* @__PURE__ */ h("button", {
1069
1323
  type: "button",
1070
1324
  className: "tp-empty-state-action",
1071
1325
  onClick: s,
@@ -1073,16 +1327,16 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1073
1327
  })
1074
1328
  ]
1075
1329
  });
1076
- }, G = ({ variant: e = "standard", label: t, value: n, defaultValue: r = "", onChange: i, clearable: a = !1, password: o = !1, multiline: s = !1, rows: c = 3, error: u, helperText: p, prefix: g, suffix: _, containerClassName: v = "", className: y = "", style: b, id: x, type: S = "text", disabled: C = !1, readOnly: w = !1, onFocus: T, onBlur: E, ...D }) => {
1077
- let O = l(), k = x ?? `tp-input-${O}`, A = `${k}-message`, j = d(null), M = d(null), [N, P] = f(r), [F, I] = f(!1), [L, R] = f(!1), z = n !== void 0, B = z ? n : N, V = !!(u || p), H = (e) => {
1330
+ }, oe = ({ variant: e = "standard", label: t, value: n, defaultValue: r = "", onChange: i, clearable: a = !1, password: o = !1, multiline: s = !1, rows: c = 3, error: u, helperText: d, prefix: m, suffix: _, containerClassName: v = "", className: y = "", style: b, id: x, type: S = "text", disabled: C = !1, readOnly: w = !1, onFocus: T, onBlur: E, ...D }) => {
1331
+ let O = l(), k = x ?? `tp-input-${O}`, A = `${k}-message`, j = f(null), M = f(null), [N, P] = p(r), [F, I] = p(!1), [L, R] = p(!1), z = n !== void 0, B = z ? n : N, V = !!(u || d), H = (e) => {
1078
1332
  z || P(e), i?.(e);
1079
1333
  }, U = () => {
1080
1334
  H(""), s ? M.current?.focus() : j.current?.focus();
1081
- }, W = a && B.length > 0 && !C && !w, G = o && !s, ee = o ? L ? "text" : "password" : S, K = [
1335
+ }, W = a && B.length > 0 && !C && !w, G = o && !s, K = o ? L ? "text" : "password" : S, q = [
1082
1336
  "tp-input-field",
1083
1337
  `tp-input-field--${e}`,
1084
1338
  v
1085
- ].filter(Boolean).join(" "), q = [
1339
+ ].filter(Boolean).join(" "), J = [
1086
1340
  "tp-input-box",
1087
1341
  `tp-input-box--variant-${e}`,
1088
1342
  s ? "tp-input-box--multiline" : "",
@@ -1090,23 +1344,23 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1090
1344
  u ? "tp-input-box--error" : "",
1091
1345
  C ? "tp-input-box--disabled" : ""
1092
1346
  ].filter(Boolean).join(" ");
1093
- return /* @__PURE__ */ h("div", {
1094
- className: K,
1347
+ return /* @__PURE__ */ g("div", {
1348
+ className: q,
1095
1349
  "data-variant": e,
1096
1350
  children: [
1097
- e !== "borderless" && t != null && /* @__PURE__ */ m("label", {
1351
+ e !== "borderless" && t != null && /* @__PURE__ */ h("label", {
1098
1352
  htmlFor: k,
1099
1353
  className: "tp-input-label",
1100
1354
  children: t
1101
1355
  }),
1102
- /* @__PURE__ */ h("div", {
1103
- className: q,
1356
+ /* @__PURE__ */ g("div", {
1357
+ className: J,
1104
1358
  children: [
1105
- g != null && /* @__PURE__ */ m("span", {
1359
+ m != null && /* @__PURE__ */ h("span", {
1106
1360
  className: "tp-input-prefix",
1107
- children: g
1361
+ children: m
1108
1362
  }),
1109
- s ? /* @__PURE__ */ m("textarea", {
1363
+ s ? /* @__PURE__ */ h("textarea", {
1110
1364
  ref: M,
1111
1365
  id: k,
1112
1366
  name: D.name,
@@ -1131,11 +1385,11 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1131
1385
  onBlur: (e) => {
1132
1386
  I(!1), E?.(e);
1133
1387
  }
1134
- }) : /* @__PURE__ */ m("input", {
1388
+ }) : /* @__PURE__ */ h("input", {
1135
1389
  ...D,
1136
1390
  ref: j,
1137
1391
  id: k,
1138
- type: ee,
1392
+ type: K,
1139
1393
  disabled: C,
1140
1394
  readOnly: w,
1141
1395
  value: B,
@@ -1151,24 +1405,24 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1151
1405
  I(!1), E?.(e);
1152
1406
  }
1153
1407
  }),
1154
- W && /* @__PURE__ */ m("button", {
1408
+ W && /* @__PURE__ */ h("button", {
1155
1409
  type: "button",
1156
1410
  className: "tp-input-action-btn",
1157
1411
  "aria-label": "Clear input",
1158
1412
  onClick: U,
1159
- children: /* @__PURE__ */ h("svg", {
1413
+ children: /* @__PURE__ */ g("svg", {
1160
1414
  width: "14",
1161
1415
  height: "14",
1162
1416
  viewBox: "0 0 14 14",
1163
1417
  fill: "none",
1164
1418
  "aria-hidden": "true",
1165
- children: [/* @__PURE__ */ m("circle", {
1419
+ children: [/* @__PURE__ */ h("circle", {
1166
1420
  cx: "7",
1167
1421
  cy: "7",
1168
1422
  r: "6",
1169
1423
  fill: "currentColor",
1170
1424
  fillOpacity: "0.2"
1171
- }), /* @__PURE__ */ m("path", {
1425
+ }), /* @__PURE__ */ h("path", {
1172
1426
  d: "M4.8 4.8L9.2 9.2M9.2 4.8L4.8 9.2",
1173
1427
  stroke: "currentColor",
1174
1428
  strokeWidth: "1.4",
@@ -1176,35 +1430,35 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1176
1430
  })]
1177
1431
  })
1178
1432
  }),
1179
- G && /* @__PURE__ */ m("button", {
1433
+ G && /* @__PURE__ */ h("button", {
1180
1434
  type: "button",
1181
1435
  className: "tp-input-action-btn",
1182
1436
  "aria-label": L ? "Hide password" : "Show password",
1183
1437
  onClick: () => R((e) => !e),
1184
- children: L ? /* @__PURE__ */ h("svg", {
1438
+ children: L ? /* @__PURE__ */ g("svg", {
1185
1439
  width: "18",
1186
1440
  height: "18",
1187
1441
  viewBox: "0 0 20 20",
1188
1442
  fill: "none",
1189
1443
  "aria-hidden": "true",
1190
- children: [/* @__PURE__ */ m("path", {
1444
+ children: [/* @__PURE__ */ h("path", {
1191
1445
  d: "M2.5 10C4.2 6.8 6.9 5 10 5C13.1 5 15.8 6.8 17.5 10C15.8 13.2 13.1 15 10 15C6.9 15 4.2 13.2 2.5 10Z",
1192
1446
  stroke: "currentColor",
1193
1447
  strokeWidth: "1.5"
1194
- }), /* @__PURE__ */ m("circle", {
1448
+ }), /* @__PURE__ */ h("circle", {
1195
1449
  cx: "10",
1196
1450
  cy: "10",
1197
1451
  r: "2.5",
1198
1452
  stroke: "currentColor",
1199
1453
  strokeWidth: "1.5"
1200
1454
  })]
1201
- }) : /* @__PURE__ */ m("svg", {
1455
+ }) : /* @__PURE__ */ h("svg", {
1202
1456
  width: "18",
1203
1457
  height: "18",
1204
1458
  viewBox: "0 0 20 20",
1205
1459
  fill: "none",
1206
1460
  "aria-hidden": "true",
1207
- children: /* @__PURE__ */ m("path", {
1461
+ children: /* @__PURE__ */ h("path", {
1208
1462
  d: "M3 3L17 17M8.3 8.4A2.5 2.5 0 0 0 11.6 11.7M5.7 6.3C4.3 7.3 3.2 8.5 2.5 10C4.2 13.2 6.9 15 10 15C11.4 15 12.7 14.6 13.8 13.9M9.5 5C9.7 5 9.8 5 10 5C13.1 5 15.8 6.8 17.5 10C16.9 11.1 16.2 12.1 15.3 12.9",
1209
1463
  stroke: "currentColor",
1210
1464
  strokeWidth: "1.5",
@@ -1212,49 +1466,49 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1212
1466
  })
1213
1467
  })
1214
1468
  }),
1215
- _ != null && /* @__PURE__ */ m("span", {
1469
+ _ != null && /* @__PURE__ */ h("span", {
1216
1470
  className: "tp-input-suffix",
1217
1471
  children: _
1218
1472
  })
1219
1473
  ]
1220
1474
  }),
1221
- u ? /* @__PURE__ */ m("div", {
1475
+ u ? /* @__PURE__ */ h("div", {
1222
1476
  id: A,
1223
1477
  className: "tp-input-error",
1224
1478
  role: "alert",
1225
1479
  children: u
1226
- }) : p ? /* @__PURE__ */ m("div", {
1480
+ }) : d ? /* @__PURE__ */ h("div", {
1227
1481
  id: A,
1228
1482
  className: "tp-input-helper",
1229
- children: p
1483
+ children: d
1230
1484
  }) : null
1231
1485
  ]
1232
1486
  });
1233
- }, ee = ({ value: e, defaultValue: t = "", placeholder: n = "Search", onChange: r, onSearch: i, onCancel: a, showCancel: o = !1, autoFocus: s = !1, className: c = "", style: l }) => {
1234
- let u = d(null), [p, g] = f(t), _ = e !== void 0, v = _ ? e : p, y = (e) => {
1235
- _ || g(e), r?.(e);
1487
+ }, se = ({ value: e, defaultValue: t = "", placeholder: n = "Search", onChange: r, onSearch: i, onCancel: a, showCancel: o = !1, autoFocus: s = !1, className: c = "", style: l }) => {
1488
+ let u = f(null), [d, m] = p(t), _ = e !== void 0, v = _ ? e : d, y = (e) => {
1489
+ _ || m(e), r?.(e);
1236
1490
  };
1237
- return /* @__PURE__ */ h("div", {
1491
+ return /* @__PURE__ */ g("div", {
1238
1492
  className: `tp-search-bar ${c}`.trim(),
1239
1493
  style: l,
1240
- children: [/* @__PURE__ */ h("div", {
1494
+ children: [/* @__PURE__ */ g("div", {
1241
1495
  className: "tp-search-field",
1242
1496
  children: [
1243
- /* @__PURE__ */ m("span", {
1497
+ /* @__PURE__ */ h("span", {
1244
1498
  className: "tp-search-icon",
1245
1499
  "aria-hidden": "true",
1246
- children: /* @__PURE__ */ h("svg", {
1500
+ children: /* @__PURE__ */ g("svg", {
1247
1501
  width: "16",
1248
1502
  height: "16",
1249
1503
  viewBox: "0 0 16 16",
1250
1504
  fill: "none",
1251
- children: [/* @__PURE__ */ m("circle", {
1505
+ children: [/* @__PURE__ */ h("circle", {
1252
1506
  cx: "7",
1253
1507
  cy: "7",
1254
1508
  r: "4.8",
1255
1509
  stroke: "currentColor",
1256
1510
  strokeWidth: "1.6"
1257
- }), /* @__PURE__ */ m("path", {
1511
+ }), /* @__PURE__ */ h("path", {
1258
1512
  d: "M10.6 10.6L14 14",
1259
1513
  stroke: "currentColor",
1260
1514
  strokeWidth: "1.6",
@@ -1262,7 +1516,7 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1262
1516
  })]
1263
1517
  })
1264
1518
  }),
1265
- /* @__PURE__ */ m("input", {
1519
+ /* @__PURE__ */ h("input", {
1266
1520
  ref: u,
1267
1521
  type: "search",
1268
1522
  className: "tp-search-input",
@@ -1275,20 +1529,20 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1275
1529
  e.key === "Enter" && (e.preventDefault(), i?.(v));
1276
1530
  }
1277
1531
  }),
1278
- v.length > 0 && /* @__PURE__ */ m("button", {
1532
+ v.length > 0 && /* @__PURE__ */ h("button", {
1279
1533
  type: "button",
1280
1534
  className: "tp-search-clear",
1281
1535
  "aria-label": "Clear search",
1282
1536
  onClick: () => {
1283
1537
  y(""), u.current?.focus();
1284
1538
  },
1285
- children: /* @__PURE__ */ m("svg", {
1539
+ children: /* @__PURE__ */ h("svg", {
1286
1540
  width: "10",
1287
1541
  height: "10",
1288
1542
  viewBox: "0 0 10 10",
1289
1543
  fill: "none",
1290
1544
  "aria-hidden": "true",
1291
- children: /* @__PURE__ */ m("path", {
1545
+ children: /* @__PURE__ */ h("path", {
1292
1546
  d: "M2.5 2.5L7.5 7.5M7.5 2.5L2.5 7.5",
1293
1547
  stroke: "currentColor",
1294
1548
  strokeWidth: "1.5",
@@ -1297,15 +1551,15 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1297
1551
  })
1298
1552
  })
1299
1553
  ]
1300
- }), o && /* @__PURE__ */ m("button", {
1554
+ }), o && /* @__PURE__ */ h("button", {
1301
1555
  type: "button",
1302
1556
  className: "tp-search-cancel",
1303
1557
  onClick: a,
1304
1558
  children: "Cancel"
1305
1559
  })]
1306
1560
  });
1307
- }, K = ({ column: e, itemHeight: t, visibleItems: n, onChange: r }) => {
1308
- let i = d(null), a = Math.max(0, e.options.findIndex((t) => t.value === e.value)), o = Math.floor(n / 2) * t;
1561
+ }, ce = ({ column: e, itemHeight: t, visibleItems: n, onChange: r }) => {
1562
+ let i = f(null), a = Math.max(0, e.options.findIndex((t) => t.value === e.value)), o = Math.floor(n / 2) * t;
1309
1563
  c(() => {
1310
1564
  let e = i.current;
1311
1565
  if (!e) return;
@@ -1319,22 +1573,22 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1319
1573
  let n = Math.min(e.options.length - 1, Math.max(0, a + t)), i = e.options[n];
1320
1574
  i && i.value !== e.value && r(e.key, i.value);
1321
1575
  };
1322
- return /* @__PURE__ */ h("div", {
1576
+ return /* @__PURE__ */ g("div", {
1323
1577
  className: "tp-wheel-column-wrap",
1324
1578
  children: [
1325
- /* @__PURE__ */ m("button", {
1579
+ /* @__PURE__ */ h("button", {
1326
1580
  type: "button",
1327
1581
  className: "tp-wheel-step tp-wheel-step--up",
1328
1582
  "aria-label": `Previous ${e.key}`,
1329
1583
  disabled: a <= 0,
1330
1584
  onClick: () => s(-1),
1331
- children: /* @__PURE__ */ m("svg", {
1585
+ children: /* @__PURE__ */ h("svg", {
1332
1586
  width: "12",
1333
1587
  height: "12",
1334
1588
  viewBox: "0 0 12 12",
1335
1589
  fill: "none",
1336
1590
  "aria-hidden": "true",
1337
- children: /* @__PURE__ */ m("path", {
1591
+ children: /* @__PURE__ */ h("path", {
1338
1592
  d: "M3 7.5L6 4.5L9 7.5",
1339
1593
  stroke: "currentColor",
1340
1594
  strokeWidth: "1.5",
@@ -1343,7 +1597,7 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1343
1597
  })
1344
1598
  })
1345
1599
  }),
1346
- /* @__PURE__ */ h("div", {
1600
+ /* @__PURE__ */ g("div", {
1347
1601
  ref: i,
1348
1602
  role: "listbox",
1349
1603
  "aria-label": e.key,
@@ -1354,13 +1608,13 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1354
1608
  t.key === "ArrowUp" ? (t.preventDefault(), s(-1)) : t.key === "ArrowDown" ? (t.preventDefault(), s(1)) : t.key === "Home" && e.options.length > 0 ? (t.preventDefault(), r(e.key, e.options[0].value)) : t.key === "End" && e.options.length > 0 && (t.preventDefault(), r(e.key, e.options[e.options.length - 1].value));
1355
1609
  },
1356
1610
  children: [
1357
- /* @__PURE__ */ m("div", {
1611
+ /* @__PURE__ */ h("div", {
1358
1612
  className: "tp-wheel-spacer",
1359
1613
  style: { height: o }
1360
1614
  }),
1361
1615
  e.options.map((n) => {
1362
1616
  let i = n.value === e.value;
1363
- return /* @__PURE__ */ m("button", {
1617
+ return /* @__PURE__ */ h("button", {
1364
1618
  type: "button",
1365
1619
  role: "option",
1366
1620
  "aria-selected": i,
@@ -1372,25 +1626,25 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1372
1626
  children: n.label
1373
1627
  }, n.value);
1374
1628
  }),
1375
- /* @__PURE__ */ m("div", {
1629
+ /* @__PURE__ */ h("div", {
1376
1630
  className: "tp-wheel-spacer",
1377
1631
  style: { height: o }
1378
1632
  })
1379
1633
  ]
1380
1634
  }),
1381
- /* @__PURE__ */ m("button", {
1635
+ /* @__PURE__ */ h("button", {
1382
1636
  type: "button",
1383
1637
  className: "tp-wheel-step tp-wheel-step--down",
1384
1638
  "aria-label": `Next ${e.key}`,
1385
1639
  disabled: a >= e.options.length - 1,
1386
1640
  onClick: () => s(1),
1387
- children: /* @__PURE__ */ m("svg", {
1641
+ children: /* @__PURE__ */ h("svg", {
1388
1642
  width: "12",
1389
1643
  height: "12",
1390
1644
  viewBox: "0 0 12 12",
1391
1645
  fill: "none",
1392
1646
  "aria-hidden": "true",
1393
- children: /* @__PURE__ */ m("path", {
1647
+ children: /* @__PURE__ */ h("path", {
1394
1648
  d: "M3 4.5L6 7.5L9 4.5",
1395
1649
  stroke: "currentColor",
1396
1650
  strokeWidth: "1.5",
@@ -1401,24 +1655,24 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1401
1655
  })
1402
1656
  ]
1403
1657
  });
1404
- }, q = ({ columns: e, onChange: t, itemHeight: n = 40, visibleItems: r = 5, className: i = "", style: a }) => {
1658
+ }, Y = ({ columns: e, onChange: t, itemHeight: n = 40, visibleItems: r = 5, className: i = "", style: a }) => {
1405
1659
  let o = Math.floor(r / 2) * n;
1406
- return /* @__PURE__ */ h("div", {
1660
+ return /* @__PURE__ */ g("div", {
1407
1661
  className: `tp-wheel-picker ${i}`.trim(),
1408
1662
  style: {
1409
1663
  height: r * n,
1410
1664
  ...a
1411
1665
  },
1412
- children: [/* @__PURE__ */ m("div", {
1666
+ children: [/* @__PURE__ */ h("div", {
1413
1667
  className: "tp-wheel-highlight",
1414
1668
  style: {
1415
1669
  top: o,
1416
1670
  height: n
1417
1671
  },
1418
1672
  "aria-hidden": "true"
1419
- }), /* @__PURE__ */ m("div", {
1673
+ }), /* @__PURE__ */ h("div", {
1420
1674
  className: "tp-wheel-columns",
1421
- children: e.map((e) => /* @__PURE__ */ m(K, {
1675
+ children: e.map((e) => /* @__PURE__ */ h(ce, {
1422
1676
  column: e,
1423
1677
  itemHeight: n,
1424
1678
  visibleItems: r,
@@ -1428,14 +1682,14 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1428
1682
  });
1429
1683
  };
1430
1684
  // src/core/components/TPDatePicker.tsx
1431
- function J(e, t) {
1685
+ function X(e, t) {
1432
1686
  return new Date(e, t, 0).getDate();
1433
1687
  }
1434
- function Y(e, t, n) {
1688
+ function Z(e, t, n) {
1435
1689
  return Math.min(n, Math.max(t, e));
1436
1690
  }
1437
- var te = ({ value: e, defaultValue: t, minYear: n = 1990, maxYear: r = 2040, onChange: i, onConfirm: a, onCancel: o, title: s, className: c = "", style: l }) => {
1438
- let [d, p] = f(() => t ?? new Date(2026, 0, 1)), g = e !== void 0, _ = g ? e : d, v = Y(_.getFullYear(), n, r), y = _.getMonth() + 1, b = J(v, y), x = Math.min(b, _.getDate()), S = u(() => {
1691
+ var le = ({ value: e, defaultValue: t, minYear: n = 1990, maxYear: r = 2040, onChange: i, onConfirm: a, onCancel: o, title: s, className: c = "", style: l }) => {
1692
+ let [u, f] = p(() => t ?? new Date(2026, 0, 1)), m = e !== void 0, _ = m ? e : u, v = Z(_.getFullYear(), n, r), y = _.getMonth() + 1, b = X(v, y), x = Math.min(b, _.getDate()), S = d(() => {
1439
1693
  let e = [];
1440
1694
  for (let t = n; t <= r; t++) e.push({
1441
1695
  value: String(t),
@@ -1482,41 +1736,41 @@ var te = ({ value: e, defaultValue: t, minYear: n = 1990, maxYear: r = 2040, onC
1482
1736
  let a = Number(t);
1483
1737
  if (Number.isNaN(a)) return;
1484
1738
  let o = v, s = y, c = x;
1485
- e === "year" && (o = Y(a, n, r)), e === "month" && (s = a), e === "day" && (c = a);
1486
- let l = Math.min(c, J(o, s)), u = new Date(o, s - 1, l);
1487
- g || p(u), i?.(u);
1739
+ e === "year" && (o = Z(a, n, r)), e === "month" && (s = a), e === "day" && (c = a);
1740
+ let l = Math.min(c, X(o, s)), u = new Date(o, s - 1, l);
1741
+ m || f(u), i?.(u);
1488
1742
  }, w = s !== void 0 || o !== void 0 || a !== void 0;
1489
- return /* @__PURE__ */ h("div", {
1743
+ return /* @__PURE__ */ g("div", {
1490
1744
  className: `tp-date-picker ${c}`.trim(),
1491
1745
  style: l,
1492
- children: [w && /* @__PURE__ */ h("div", {
1746
+ children: [w && /* @__PURE__ */ g("div", {
1493
1747
  className: "tp-date-picker-header",
1494
1748
  children: [
1495
- o ? /* @__PURE__ */ m("button", {
1749
+ o ? /* @__PURE__ */ h("button", {
1496
1750
  type: "button",
1497
1751
  className: "tp-date-picker-btn",
1498
1752
  onClick: o,
1499
1753
  children: "Cancel"
1500
- }) : /* @__PURE__ */ m("span", {}),
1501
- s !== void 0 && /* @__PURE__ */ m("div", {
1754
+ }) : /* @__PURE__ */ h("span", {}),
1755
+ s !== void 0 && /* @__PURE__ */ h("div", {
1502
1756
  className: "tp-date-picker-title",
1503
1757
  children: s
1504
1758
  }),
1505
- a ? /* @__PURE__ */ m("button", {
1759
+ a ? /* @__PURE__ */ h("button", {
1506
1760
  type: "button",
1507
1761
  className: "tp-date-picker-btn tp-date-picker-btn--confirm",
1508
1762
  onClick: () => a(new Date(v, y - 1, x)),
1509
1763
  children: "Confirm"
1510
- }) : /* @__PURE__ */ m("span", {})
1764
+ }) : /* @__PURE__ */ h("span", {})
1511
1765
  ]
1512
- }), /* @__PURE__ */ m(q, {
1766
+ }), /* @__PURE__ */ h(Y, {
1513
1767
  columns: S,
1514
1768
  onChange: C
1515
1769
  })]
1516
1770
  });
1517
1771
  };
1518
1772
  // src/core/components/TPTimePicker.tsx
1519
- function X(e, t) {
1773
+ function Q(e, t) {
1520
1774
  let n = e.hour, r = e.period;
1521
1775
  return t ? (r ||= n >= 12 ? "PM" : "AM", n === 0 ? n = 12 : n > 12 && (n -= 12), {
1522
1776
  hour: Math.min(12, Math.max(1, n)),
@@ -1527,26 +1781,26 @@ function X(e, t) {
1527
1781
  minute: Math.min(59, Math.max(0, e.minute))
1528
1782
  };
1529
1783
  }
1530
- var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, className: i = "", style: a }) => {
1531
- let [o, s] = f(() => X({
1784
+ var ue = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, className: i = "", style: a }) => {
1785
+ let [o, s] = p(() => Q({
1532
1786
  hour: 9,
1533
1787
  minute: 0,
1534
1788
  period: "AM"
1535
- }, t)), c = e !== void 0, l = X(c ? e : o, t), d = Math.max(1, n), p = u(() => {
1789
+ }, t)), c = e !== void 0, l = Q(c ? e : o, t), u = Math.max(1, n), f = d(() => {
1536
1790
  let e = [];
1537
- for (let t = 0; t < 60; t += d) e.push({
1791
+ for (let t = 0; t < 60; t += u) e.push({
1538
1792
  value: String(t),
1539
1793
  label: String(t).padStart(2, "0")
1540
1794
  });
1541
1795
  return e;
1542
- }, [d]), h = u(() => {
1543
- let e = Number(p[0]?.value ?? 0), t = Math.abs(l.minute - e);
1544
- for (let n of p) {
1796
+ }, [u]), m = d(() => {
1797
+ let e = Number(f[0]?.value ?? 0), t = Math.abs(l.minute - e);
1798
+ for (let n of f) {
1545
1799
  let r = Number(n.value), i = Math.abs(l.minute - r);
1546
1800
  i < t && (e = r, t = i);
1547
1801
  }
1548
1802
  return e;
1549
- }, [l.minute, p]), g = u(() => {
1803
+ }, [l.minute, f]), g = d(() => {
1550
1804
  let e = [{
1551
1805
  key: "hour",
1552
1806
  options: t ? Array.from({ length: 12 }, (e, t) => {
@@ -1562,8 +1816,8 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1562
1816
  value: String(l.hour)
1563
1817
  }, {
1564
1818
  key: "minute",
1565
- options: p,
1566
- value: String(h)
1819
+ options: f,
1820
+ value: String(m)
1567
1821
  }];
1568
1822
  return t && e.push({
1569
1823
  key: "period",
@@ -1580,25 +1834,25 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1580
1834
  t,
1581
1835
  l.hour,
1582
1836
  l.period,
1583
- p,
1584
- h
1837
+ f,
1838
+ m
1585
1839
  ]);
1586
- return /* @__PURE__ */ m("div", {
1840
+ return /* @__PURE__ */ h("div", {
1587
1841
  className: `tp-time-picker ${i}`.trim(),
1588
1842
  style: a,
1589
- children: /* @__PURE__ */ m(q, {
1843
+ children: /* @__PURE__ */ h(Y, {
1590
1844
  columns: g,
1591
1845
  onChange: (e, n) => {
1592
1846
  let i = {
1593
1847
  hour: l.hour,
1594
- minute: h,
1848
+ minute: m,
1595
1849
  ...t ? { period: l.period ?? "AM" } : {}
1596
1850
  };
1597
1851
  e === "hour" ? i.hour = Number(n) : e === "minute" ? i.minute = Number(n) : e === "period" && (n === "AM" || n === "PM") && (i.period = n), c || s(i), r?.(i);
1598
1852
  }
1599
1853
  })
1600
1854
  });
1601
- }, Z = [
1855
+ }, $ = [
1602
1856
  {
1603
1857
  key: "sun",
1604
1858
  en: "S",
@@ -1648,26 +1902,26 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1648
1902
  enTitle: "Saturday",
1649
1903
  zhTitle: "周六"
1650
1904
  }
1651
- ], re = ({ value: e, defaultValue: t = [], onChange: n, disabled: r = !1, locale: i = "en", className: a = "", style: o }) => {
1652
- let [s, c] = f(t), l = e !== void 0, u = l ? e : s, d = (e) => {
1905
+ ], de = ({ value: e, defaultValue: t = [], onChange: n, disabled: r = !1, locale: i = "en", className: a = "", style: o }) => {
1906
+ let [s, c] = p(t), l = e !== void 0, u = l ? e : s, d = (e) => {
1653
1907
  if (r) return;
1654
1908
  let t = new Set(u);
1655
1909
  t.has(e) ? t.delete(e) : t.add(e);
1656
- let i = Z.map((e) => e.key).filter((e) => t.has(e));
1910
+ let i = $.map((e) => e.key).filter((e) => t.has(e));
1657
1911
  l || c(i), n?.(i);
1658
- }, p = [
1912
+ }, f = [
1659
1913
  "tp-day-switcher",
1660
1914
  r ? "tp-day-switcher--disabled" : "",
1661
1915
  a
1662
1916
  ].filter(Boolean).join(" ");
1663
- return /* @__PURE__ */ m("div", {
1664
- className: p,
1917
+ return /* @__PURE__ */ h("div", {
1918
+ className: f,
1665
1919
  style: o,
1666
1920
  role: "group",
1667
1921
  "aria-label": "Days of week",
1668
- children: Z.map((e) => {
1922
+ children: $.map((e) => {
1669
1923
  let t = u.includes(e.key), n = i === "zh" ? e.zh : e.en, a = i === "zh" ? e.zhTitle : e.enTitle;
1670
- return /* @__PURE__ */ m("button", {
1924
+ return /* @__PURE__ */ h("button", {
1671
1925
  type: "button",
1672
1926
  "data-day": e.key,
1673
1927
  title: a,
@@ -1679,7 +1933,7 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1679
1933
  }, e.key);
1680
1934
  })
1681
1935
  });
1682
- }, ie = [
1936
+ }, fe = [
1683
1937
  "1",
1684
1938
  "2",
1685
1939
  "3",
@@ -1689,89 +1943,89 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1689
1943
  "7",
1690
1944
  "8",
1691
1945
  "9"
1692
- ], ae = [
1946
+ ], pe = [
1693
1947
  "A",
1694
1948
  "B",
1695
1949
  "C",
1696
1950
  "D",
1697
1951
  "E",
1698
1952
  "F"
1699
- ], oe = ({ mode: e = "numeric", onKeyPress: t, onBackspace: n, onDone: r, doneLabel: i = "Done", showDot: a = !1, showDash: o, className: s = "", style: c }) => {
1953
+ ], me = ({ mode: e = "numeric", onKeyPress: t, onBackspace: n, onDone: r, doneLabel: i = "Done", showDot: a = !1, showDash: o, className: s = "", style: c }) => {
1700
1954
  let l = o ?? e === "mac-hex", u = a && l, d = u ? null : a ? "." : l ? "-" : null, f = [
1701
1955
  "tp-keyboard",
1702
1956
  `tp-keyboard--${e}`,
1703
1957
  s
1704
1958
  ].filter(Boolean).join(" ");
1705
- return /* @__PURE__ */ h("div", {
1959
+ return /* @__PURE__ */ g("div", {
1706
1960
  className: f,
1707
1961
  style: c,
1708
1962
  role: "group",
1709
1963
  "aria-label": "Keypad",
1710
1964
  children: [
1711
- e === "mac-hex" && /* @__PURE__ */ m("div", {
1965
+ e === "mac-hex" && /* @__PURE__ */ h("div", {
1712
1966
  className: "tp-keyboard-hex-row",
1713
- children: ae.map((e) => /* @__PURE__ */ m("button", {
1967
+ children: pe.map((e) => /* @__PURE__ */ h("button", {
1714
1968
  type: "button",
1715
1969
  className: "tp-keyboard-key tp-keyboard-key--hex",
1716
1970
  onClick: () => t?.(e),
1717
1971
  children: e
1718
1972
  }, e))
1719
1973
  }),
1720
- u && /* @__PURE__ */ h("div", {
1974
+ u && /* @__PURE__ */ g("div", {
1721
1975
  className: "tp-keyboard-aux-row",
1722
- children: [/* @__PURE__ */ m("button", {
1976
+ children: [/* @__PURE__ */ h("button", {
1723
1977
  type: "button",
1724
1978
  className: "tp-keyboard-key tp-keyboard-key--action",
1725
1979
  onClick: () => t?.("."),
1726
1980
  children: "."
1727
- }), /* @__PURE__ */ m("button", {
1981
+ }), /* @__PURE__ */ h("button", {
1728
1982
  type: "button",
1729
1983
  className: "tp-keyboard-key tp-keyboard-key--action",
1730
1984
  onClick: () => t?.("-"),
1731
1985
  children: "-"
1732
1986
  })]
1733
1987
  }),
1734
- /* @__PURE__ */ h("div", {
1988
+ /* @__PURE__ */ g("div", {
1735
1989
  className: "tp-keyboard-grid",
1736
1990
  children: [
1737
- ie.map((e) => /* @__PURE__ */ m("button", {
1991
+ fe.map((e) => /* @__PURE__ */ h("button", {
1738
1992
  type: "button",
1739
1993
  className: "tp-keyboard-key",
1740
1994
  onClick: () => t?.(e),
1741
1995
  children: e
1742
1996
  }, e)),
1743
- d ? /* @__PURE__ */ m("button", {
1997
+ d ? /* @__PURE__ */ h("button", {
1744
1998
  type: "button",
1745
1999
  className: "tp-keyboard-key tp-keyboard-key--action",
1746
2000
  onClick: () => t?.(d),
1747
2001
  children: d
1748
- }) : /* @__PURE__ */ m("div", {
2002
+ }) : /* @__PURE__ */ h("div", {
1749
2003
  className: "tp-keyboard-spacer",
1750
2004
  "aria-hidden": "true"
1751
2005
  }),
1752
- /* @__PURE__ */ m("button", {
2006
+ /* @__PURE__ */ h("button", {
1753
2007
  type: "button",
1754
2008
  className: "tp-keyboard-key",
1755
2009
  onClick: () => t?.("0"),
1756
2010
  children: "0"
1757
2011
  }),
1758
- /* @__PURE__ */ m("button", {
2012
+ /* @__PURE__ */ h("button", {
1759
2013
  type: "button",
1760
2014
  className: "tp-keyboard-key tp-keyboard-key--action",
1761
2015
  "aria-label": "Backspace",
1762
2016
  onClick: n,
1763
- children: /* @__PURE__ */ h("svg", {
2017
+ children: /* @__PURE__ */ g("svg", {
1764
2018
  width: "22",
1765
2019
  height: "18",
1766
2020
  viewBox: "0 0 22 18",
1767
2021
  fill: "none",
1768
2022
  "aria-hidden": "true",
1769
- children: [/* @__PURE__ */ m("path", {
2023
+ children: [/* @__PURE__ */ h("path", {
1770
2024
  d: "M8.2 2H19C19.8 2 20.5 2.7 20.5 3.5V14.5C20.5 15.3 19.8 16 19 16H8.2C7.7 16 7.2 15.8 6.9 15.4L2.1 9.6C1.8 9.3 1.8 8.7 2.1 8.4L6.9 2.6C7.2 2.2 7.7 2 8.2 2Z",
1771
2025
  stroke: "currentColor",
1772
2026
  strokeWidth: "1.5",
1773
2027
  strokeLinejoin: "round"
1774
- }), /* @__PURE__ */ m("path", {
2028
+ }), /* @__PURE__ */ h("path", {
1775
2029
  d: "M11 6.3L16 11.3M16 6.3L11 11.3",
1776
2030
  stroke: "currentColor",
1777
2031
  strokeWidth: "1.5",
@@ -1781,7 +2035,7 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1781
2035
  })
1782
2036
  ]
1783
2037
  }),
1784
- /* @__PURE__ */ m("button", {
2038
+ /* @__PURE__ */ h("button", {
1785
2039
  type: "button",
1786
2040
  className: "tp-keyboard-key tp-keyboard-key--done",
1787
2041
  onClick: r,
@@ -1789,8 +2043,8 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1789
2043
  })
1790
2044
  ]
1791
2045
  });
1792
- }, se = ({ open: t, title: n, message: r, actions: i, os: a, inputPlaceholder: o, defaultInputValue: s = "", onClose: u, children: d }) => {
1793
- let p = e(), g = a ?? p.os, _ = l(), v = l(), [y, b] = f(s);
2046
+ }, he = ({ open: t, title: n, message: r, actions: i, os: a, inputPlaceholder: o, defaultInputValue: s = "", onClose: u, children: d }) => {
2047
+ let f = e(), m = a ?? f.os, _ = l(), v = l(), [y, b] = p(s);
1794
2048
  if (c(() => {
1795
2049
  t && b(s);
1796
2050
  }, [t, s]), c(() => {
@@ -1802,39 +2056,39 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1802
2056
  }, [t, u]), !t) return null;
1803
2057
  let x = o !== void 0, S = (e) => {
1804
2058
  x ? e.onClick?.(y) : e.onClick?.(), u?.();
1805
- }, C = g === "ios" ? i.length === 2 ? "tp-alert-actions--row" : "tp-alert-actions--col" : "";
1806
- return /* @__PURE__ */ m("div", {
2059
+ }, C = m === "ios" ? i.length === 2 ? "tp-alert-actions--row" : "tp-alert-actions--col" : "";
2060
+ return /* @__PURE__ */ h("div", {
1807
2061
  className: "tp-overlay tp-alert-backdrop",
1808
- "data-tp-os": g,
2062
+ "data-tp-os": m,
1809
2063
  onClick: () => u?.(),
1810
- children: /* @__PURE__ */ h("div", {
2064
+ children: /* @__PURE__ */ g("div", {
1811
2065
  role: "alertdialog",
1812
2066
  "aria-modal": "true",
1813
2067
  "aria-labelledby": n ? _ : void 0,
1814
2068
  "aria-describedby": r ? v : void 0,
1815
- "data-os": g,
1816
- className: `tp-alert tp-alert--${g}`,
2069
+ "data-os": m,
2070
+ className: `tp-alert tp-alert--${m}`,
1817
2071
  onClick: (e) => e.stopPropagation(),
1818
- children: [/* @__PURE__ */ h("div", {
2072
+ children: [/* @__PURE__ */ g("div", {
1819
2073
  className: "tp-alert-content",
1820
2074
  children: [
1821
- n !== void 0 && /* @__PURE__ */ m("div", {
2075
+ n !== void 0 && /* @__PURE__ */ h("div", {
1822
2076
  id: _,
1823
2077
  className: "tp-alert-title",
1824
2078
  children: n
1825
2079
  }),
1826
- r !== void 0 && /* @__PURE__ */ m("div", {
2080
+ r !== void 0 && /* @__PURE__ */ h("div", {
1827
2081
  id: v,
1828
2082
  className: "tp-alert-message",
1829
2083
  children: r
1830
2084
  }),
1831
- d !== void 0 && /* @__PURE__ */ m("div", {
2085
+ d !== void 0 && /* @__PURE__ */ h("div", {
1832
2086
  className: "tp-alert-body",
1833
2087
  children: d
1834
2088
  }),
1835
- x && /* @__PURE__ */ m("div", {
2089
+ x && /* @__PURE__ */ h("div", {
1836
2090
  className: "tp-alert-input-wrap",
1837
- children: /* @__PURE__ */ m("input", {
2091
+ children: /* @__PURE__ */ h("input", {
1838
2092
  type: "text",
1839
2093
  className: "tp-alert-input",
1840
2094
  placeholder: o,
@@ -1844,11 +2098,11 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1844
2098
  })
1845
2099
  })
1846
2100
  ]
1847
- }), /* @__PURE__ */ m("div", {
1848
- className: `tp-alert-actions tp-alert-actions--${g} ${C}`.trim(),
2101
+ }), /* @__PURE__ */ h("div", {
2102
+ className: `tp-alert-actions tp-alert-actions--${m} ${C}`.trim(),
1849
2103
  children: i.map((e, t) => {
1850
2104
  let n = e.role ?? "default";
1851
- return /* @__PURE__ */ m("button", {
2105
+ return /* @__PURE__ */ h("button", {
1852
2106
  type: "button",
1853
2107
  "data-role": n,
1854
2108
  className: `tp-alert-action tp-alert-action--${n}`,
@@ -1859,20 +2113,20 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1859
2113
  })]
1860
2114
  })
1861
2115
  });
1862
- }, ce = () => /* @__PURE__ */ m("svg", {
2116
+ }, ge = () => /* @__PURE__ */ h("svg", {
1863
2117
  width: "18",
1864
2118
  height: "18",
1865
2119
  viewBox: "0 0 24 24",
1866
2120
  fill: "none",
1867
2121
  "aria-hidden": "true",
1868
- children: /* @__PURE__ */ m("path", {
2122
+ children: /* @__PURE__ */ h("path", {
1869
2123
  d: "M5 12.5L9.8 17L19 7.5",
1870
2124
  stroke: "currentColor",
1871
2125
  strokeWidth: "2.2",
1872
2126
  strokeLinecap: "round",
1873
2127
  strokeLinejoin: "round"
1874
2128
  })
1875
- }), le = ({ open: t, title: n, message: r, options: i, cancelText: a = "Cancel", os: o, onSelect: s, onClose: u }) => {
2129
+ }), _e = ({ open: t, title: n, message: r, options: i, cancelText: a = "Cancel", os: o, onSelect: s, onClose: u }) => {
1876
2130
  let d = e(), f = o ?? d.os, p = l();
1877
2131
  if (c(() => {
1878
2132
  if (!t) return;
@@ -1881,82 +2135,82 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1881
2135
  };
1882
2136
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
1883
2137
  }, [t, u]), !t) return null;
1884
- let g = i.some((e) => e.icon !== void 0 || e.description !== void 0 || e.selected !== void 0), _ = (e) => {
2138
+ let m = i.some((e) => e.icon !== void 0 || e.description !== void 0 || e.selected !== void 0), _ = (e) => {
1885
2139
  e.disabled || (s(e), u());
1886
2140
  };
1887
- return /* @__PURE__ */ m("div", {
2141
+ return /* @__PURE__ */ h("div", {
1888
2142
  className: "tp-overlay tp-actionsheet-backdrop",
1889
2143
  "data-tp-os": f,
1890
2144
  onClick: u,
1891
- children: /* @__PURE__ */ h("div", {
2145
+ children: /* @__PURE__ */ g("div", {
1892
2146
  role: "dialog",
1893
2147
  "aria-modal": "true",
1894
2148
  "aria-labelledby": n ? p : void 0,
1895
2149
  "data-os": f,
1896
2150
  className: `tp-actionsheet tp-actionsheet--${f}`,
1897
2151
  onClick: (e) => e.stopPropagation(),
1898
- children: [/* @__PURE__ */ h("div", {
2152
+ children: [/* @__PURE__ */ g("div", {
1899
2153
  className: "tp-actionsheet-group",
1900
- children: [(n !== void 0 || r !== void 0) && /* @__PURE__ */ h("div", {
2154
+ children: [(n !== void 0 || r !== void 0) && /* @__PURE__ */ g("div", {
1901
2155
  className: "tp-actionsheet-header",
1902
- children: [n !== void 0 && /* @__PURE__ */ m("div", {
2156
+ children: [n !== void 0 && /* @__PURE__ */ h("div", {
1903
2157
  id: p,
1904
2158
  className: "tp-actionsheet-title",
1905
2159
  children: n
1906
- }), r !== void 0 && /* @__PURE__ */ m("div", {
2160
+ }), r !== void 0 && /* @__PURE__ */ h("div", {
1907
2161
  className: "tp-actionsheet-message",
1908
2162
  children: r
1909
2163
  })]
1910
- }), /* @__PURE__ */ m("div", {
2164
+ }), /* @__PURE__ */ h("div", {
1911
2165
  className: "tp-actionsheet-options",
1912
2166
  children: i.map((e) => {
1913
2167
  let t = [
1914
2168
  "tp-actionsheet-option",
1915
- g ? "tp-actionsheet-option--rich" : "",
2169
+ m ? "tp-actionsheet-option--rich" : "",
1916
2170
  e.destructive ? "tp-actionsheet-option--destructive" : "",
1917
2171
  e.disabled ? "tp-actionsheet-option--disabled" : "",
1918
2172
  e.selected ? "tp-actionsheet-option--selected" : ""
1919
2173
  ].filter(Boolean).join(" ");
1920
- return /* @__PURE__ */ h("button", {
2174
+ return /* @__PURE__ */ g("button", {
1921
2175
  type: "button",
1922
2176
  className: t,
1923
2177
  disabled: e.disabled,
1924
2178
  "aria-disabled": e.disabled || void 0,
1925
2179
  onClick: () => _(e),
1926
2180
  children: [
1927
- e.icon !== void 0 && /* @__PURE__ */ m("span", {
2181
+ e.icon !== void 0 && /* @__PURE__ */ h("span", {
1928
2182
  className: "tp-actionsheet-option-icon",
1929
2183
  children: e.icon
1930
2184
  }),
1931
- /* @__PURE__ */ h("span", {
2185
+ /* @__PURE__ */ g("span", {
1932
2186
  className: "tp-actionsheet-option-text",
1933
- children: [/* @__PURE__ */ m("span", {
2187
+ children: [/* @__PURE__ */ h("span", {
1934
2188
  className: "tp-actionsheet-option-label",
1935
2189
  children: e.label
1936
- }), e.description !== void 0 && /* @__PURE__ */ m("span", {
2190
+ }), e.description !== void 0 && /* @__PURE__ */ h("span", {
1937
2191
  className: "tp-actionsheet-option-desc",
1938
2192
  children: e.description
1939
2193
  })]
1940
2194
  }),
1941
- e.selected && /* @__PURE__ */ m("span", {
2195
+ e.selected && /* @__PURE__ */ h("span", {
1942
2196
  className: "tp-actionsheet-option-check",
1943
- children: /* @__PURE__ */ m(ce, {})
2197
+ children: /* @__PURE__ */ h(ge, {})
1944
2198
  })
1945
2199
  ]
1946
2200
  }, e.key);
1947
2201
  })
1948
2202
  })]
1949
- }), a !== "" && (f === "ios" ? /* @__PURE__ */ m("div", {
2203
+ }), a !== "" && (f === "ios" ? /* @__PURE__ */ h("div", {
1950
2204
  className: "tp-actionsheet-cancel-card",
1951
- children: /* @__PURE__ */ m("button", {
2205
+ children: /* @__PURE__ */ h("button", {
1952
2206
  type: "button",
1953
2207
  className: "tp-actionsheet-cancel",
1954
2208
  onClick: u,
1955
2209
  children: a
1956
2210
  })
1957
- }) : /* @__PURE__ */ m("div", {
2211
+ }) : /* @__PURE__ */ h("div", {
1958
2212
  className: "tp-actionsheet-cancel-row",
1959
- children: /* @__PURE__ */ m("button", {
2213
+ children: /* @__PURE__ */ h("button", {
1960
2214
  type: "button",
1961
2215
  className: "tp-actionsheet-cancel",
1962
2216
  onClick: u,
@@ -1965,19 +2219,19 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1965
2219
  }))]
1966
2220
  })
1967
2221
  });
1968
- }, ue = () => /* @__PURE__ */ m("svg", {
2222
+ }, ve = () => /* @__PURE__ */ h("svg", {
1969
2223
  width: "14",
1970
2224
  height: "14",
1971
2225
  viewBox: "0 0 16 16",
1972
2226
  fill: "none",
1973
2227
  "aria-hidden": "true",
1974
- children: /* @__PURE__ */ m("path", {
2228
+ children: /* @__PURE__ */ h("path", {
1975
2229
  d: "M4 4L12 12M12 4L4 12",
1976
2230
  stroke: "currentColor",
1977
2231
  strokeWidth: "1.8",
1978
2232
  strokeLinecap: "round"
1979
2233
  })
1980
- }), de = ({ open: e, title: t, subtitle: n, onClose: r, showCloseButton: i, showGrabber: a = !0, footer: o, maxHeight: s = "85%", children: u }) => {
2234
+ }), ye = ({ open: e, title: t, subtitle: n, onClose: r, showCloseButton: i, showGrabber: a = !0, footer: o, maxHeight: s = "85%", children: u }) => {
1981
2235
  let d = l();
1982
2236
  if (c(() => {
1983
2237
  if (!e) return;
@@ -1986,11 +2240,11 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1986
2240
  };
1987
2241
  return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
1988
2242
  }, [e, r]), !e) return null;
1989
- let f = t !== void 0 || n !== void 0, p = i ?? f, g = f || p, _ = typeof s == "number" ? `${s}px` : s;
1990
- return /* @__PURE__ */ m("div", {
2243
+ let f = t !== void 0 || n !== void 0, p = i ?? f, m = f || p, _ = typeof s == "number" ? `${s}px` : s;
2244
+ return /* @__PURE__ */ h("div", {
1991
2245
  className: "tp-overlay tp-bottomsheet-backdrop",
1992
2246
  onClick: r,
1993
- children: /* @__PURE__ */ h("div", {
2247
+ children: /* @__PURE__ */ g("div", {
1994
2248
  role: "dialog",
1995
2249
  "aria-modal": "true",
1996
2250
  "aria-labelledby": t ? d : void 0,
@@ -1998,55 +2252,55 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1998
2252
  style: { maxHeight: _ },
1999
2253
  onClick: (e) => e.stopPropagation(),
2000
2254
  children: [
2001
- a && /* @__PURE__ */ m("div", {
2255
+ a && /* @__PURE__ */ h("div", {
2002
2256
  className: "tp-bottomsheet-grabber-wrap",
2003
2257
  "aria-hidden": "true",
2004
- children: /* @__PURE__ */ m("span", { className: "tp-bottomsheet-grabber" })
2258
+ children: /* @__PURE__ */ h("span", { className: "tp-bottomsheet-grabber" })
2005
2259
  }),
2006
- g && /* @__PURE__ */ h("div", {
2260
+ m && /* @__PURE__ */ g("div", {
2007
2261
  className: "tp-bottomsheet-header",
2008
- children: [/* @__PURE__ */ h("div", {
2262
+ children: [/* @__PURE__ */ g("div", {
2009
2263
  className: "tp-bottomsheet-heading",
2010
- children: [t !== void 0 && /* @__PURE__ */ m("div", {
2264
+ children: [t !== void 0 && /* @__PURE__ */ h("div", {
2011
2265
  id: d,
2012
2266
  className: "tp-bottomsheet-title",
2013
2267
  children: t
2014
- }), n !== void 0 && /* @__PURE__ */ m("div", {
2268
+ }), n !== void 0 && /* @__PURE__ */ h("div", {
2015
2269
  className: "tp-bottomsheet-subtitle",
2016
2270
  children: n
2017
2271
  })]
2018
- }), p && /* @__PURE__ */ m("button", {
2272
+ }), p && /* @__PURE__ */ h("button", {
2019
2273
  type: "button",
2020
2274
  className: "tp-bottomsheet-close",
2021
2275
  "aria-label": "Close",
2022
2276
  onClick: r,
2023
- children: /* @__PURE__ */ m(ue, {})
2277
+ children: /* @__PURE__ */ h(ve, {})
2024
2278
  })]
2025
2279
  }),
2026
- /* @__PURE__ */ m("div", {
2280
+ /* @__PURE__ */ h("div", {
2027
2281
  className: "tp-bottomsheet-body",
2028
2282
  children: u
2029
2283
  }),
2030
- o !== void 0 && /* @__PURE__ */ m("div", {
2284
+ o !== void 0 && /* @__PURE__ */ h("div", {
2031
2285
  className: "tp-bottomsheet-footer",
2032
2286
  children: o
2033
2287
  })
2034
2288
  ]
2035
2289
  })
2036
2290
  });
2037
- }, fe = () => /* @__PURE__ */ m("svg", {
2291
+ }, be = () => /* @__PURE__ */ h("svg", {
2038
2292
  width: "14",
2039
2293
  height: "14",
2040
2294
  viewBox: "0 0 16 16",
2041
2295
  fill: "none",
2042
2296
  "aria-hidden": "true",
2043
- children: /* @__PURE__ */ m("path", {
2297
+ children: /* @__PURE__ */ h("path", {
2044
2298
  d: "M4 4L12 12M12 4L4 12",
2045
2299
  stroke: "currentColor",
2046
2300
  strokeWidth: "1.8",
2047
2301
  strokeLinecap: "round"
2048
2302
  })
2049
- }), pe = ({ open: e, placement: t = "center", title: n, closable: r = !0, maskClosable: i = !0, onClose: a, footer: o, className: s = "", style: u, children: d }) => {
2303
+ }), xe = ({ open: e, placement: t = "center", title: n, closable: r = !0, maskClosable: i = !0, onClose: a, footer: o, className: s = "", style: u, children: d }) => {
2050
2304
  let f = l();
2051
2305
  if (c(() => {
2052
2306
  if (!e) return;
@@ -2061,12 +2315,12 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2061
2315
  a
2062
2316
  ]), !e) return null;
2063
2317
  let p = n !== void 0 || r;
2064
- return /* @__PURE__ */ m("div", {
2318
+ return /* @__PURE__ */ h("div", {
2065
2319
  className: `tp-overlay tp-popup-backdrop--${t}`,
2066
2320
  onClick: () => {
2067
2321
  i && a();
2068
2322
  },
2069
- children: /* @__PURE__ */ h("div", {
2323
+ children: /* @__PURE__ */ g("div", {
2070
2324
  role: "dialog",
2071
2325
  "aria-modal": "true",
2072
2326
  "aria-labelledby": n ? f : void 0,
@@ -2075,46 +2329,46 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2075
2329
  style: u,
2076
2330
  onClick: (e) => e.stopPropagation(),
2077
2331
  children: [
2078
- p && /* @__PURE__ */ h("div", {
2332
+ p && /* @__PURE__ */ g("div", {
2079
2333
  className: "tp-popup-header",
2080
- children: [n === void 0 ? /* @__PURE__ */ m("span", {}) : /* @__PURE__ */ m("div", {
2334
+ children: [n === void 0 ? /* @__PURE__ */ h("span", {}) : /* @__PURE__ */ h("div", {
2081
2335
  id: f,
2082
2336
  className: "tp-popup-title",
2083
2337
  children: n
2084
- }), r && /* @__PURE__ */ m("button", {
2338
+ }), r && /* @__PURE__ */ h("button", {
2085
2339
  type: "button",
2086
2340
  className: "tp-popup-close",
2087
2341
  "aria-label": "Close",
2088
2342
  onClick: a,
2089
- children: /* @__PURE__ */ m(fe, {})
2343
+ children: /* @__PURE__ */ h(be, {})
2090
2344
  })]
2091
2345
  }),
2092
- /* @__PURE__ */ m("div", {
2346
+ /* @__PURE__ */ h("div", {
2093
2347
  className: "tp-popup-body",
2094
2348
  children: d
2095
2349
  }),
2096
- o !== void 0 && /* @__PURE__ */ m("div", {
2350
+ o !== void 0 && /* @__PURE__ */ h("div", {
2097
2351
  className: "tp-popup-footer",
2098
2352
  children: o
2099
2353
  })
2100
2354
  ]
2101
2355
  })
2102
2356
  });
2103
- }, me = () => /* @__PURE__ */ m("svg", {
2357
+ }, Se = () => /* @__PURE__ */ h("svg", {
2104
2358
  width: "16",
2105
2359
  height: "16",
2106
2360
  viewBox: "0 0 24 24",
2107
2361
  fill: "none",
2108
2362
  "aria-hidden": "true",
2109
- children: /* @__PURE__ */ m("path", {
2363
+ children: /* @__PURE__ */ h("path", {
2110
2364
  d: "M5 12.5L9.8 17L19 7.5",
2111
2365
  stroke: "currentColor",
2112
2366
  strokeWidth: "2.2",
2113
2367
  strokeLinecap: "round",
2114
2368
  strokeLinejoin: "round"
2115
2369
  })
2116
- }), he = ({ open: e, items: t, onSelect: n, onClose: r, align: a = "left", className: o = "", style: s }) => {
2117
- let l = d(null);
2370
+ }), Ce = ({ open: e, items: t, onSelect: n, onClose: r, align: a = "left", className: o = "", style: s }) => {
2371
+ let l = f(null);
2118
2372
  if (c(() => {
2119
2373
  if (!e) return;
2120
2374
  let t = !1, n = (e) => {
@@ -2137,7 +2391,7 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2137
2391
  let u = (e) => {
2138
2392
  e.disabled || (n(e), r());
2139
2393
  };
2140
- return /* @__PURE__ */ m("div", {
2394
+ return /* @__PURE__ */ h("div", {
2141
2395
  ref: l,
2142
2396
  role: "menu",
2143
2397
  "data-align": a,
@@ -2151,10 +2405,10 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2151
2405
  e.danger ? "tp-menu-item--danger" : "",
2152
2406
  e.disabled ? "tp-menu-item--disabled" : ""
2153
2407
  ].filter(Boolean).join(" ");
2154
- return /* @__PURE__ */ h(i.Fragment, { children: [e.dividerBefore && /* @__PURE__ */ m("div", {
2408
+ return /* @__PURE__ */ g(i.Fragment, { children: [e.dividerBefore && /* @__PURE__ */ h("div", {
2155
2409
  className: "tp-menu-divider",
2156
2410
  role: "separator"
2157
- }), /* @__PURE__ */ h("button", {
2411
+ }), /* @__PURE__ */ g("button", {
2158
2412
  type: "button",
2159
2413
  role: "menuitem",
2160
2414
  "data-selected": e.selected ? "true" : void 0,
@@ -2163,40 +2417,40 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2163
2417
  "aria-disabled": e.disabled || void 0,
2164
2418
  onClick: () => u(e),
2165
2419
  children: [
2166
- e.icon !== void 0 && /* @__PURE__ */ m("span", {
2420
+ e.icon !== void 0 && /* @__PURE__ */ h("span", {
2167
2421
  className: "tp-menu-item-icon",
2168
2422
  children: e.icon
2169
2423
  }),
2170
- /* @__PURE__ */ m("span", {
2424
+ /* @__PURE__ */ h("span", {
2171
2425
  className: "tp-menu-item-label",
2172
2426
  children: e.label
2173
2427
  }),
2174
- e.selected && /* @__PURE__ */ m("span", {
2428
+ e.selected && /* @__PURE__ */ h("span", {
2175
2429
  className: "tp-menu-item-check",
2176
2430
  "aria-label": "selected",
2177
- children: /* @__PURE__ */ m(me, {})
2431
+ children: /* @__PURE__ */ h(Se, {})
2178
2432
  })
2179
2433
  ]
2180
2434
  })] }, e.key);
2181
2435
  })
2182
2436
  });
2183
- }, ge = ({ type: e }) => {
2437
+ }, we = ({ type: e }) => {
2184
2438
  switch (e) {
2185
- case "info": return /* @__PURE__ */ h("svg", {
2439
+ case "info": return /* @__PURE__ */ g("svg", {
2186
2440
  width: "18",
2187
2441
  height: "18",
2188
2442
  viewBox: "0 0 24 24",
2189
2443
  fill: "none",
2190
2444
  "aria-hidden": "true",
2191
2445
  children: [
2192
- /* @__PURE__ */ m("circle", {
2446
+ /* @__PURE__ */ h("circle", {
2193
2447
  cx: "12",
2194
2448
  cy: "12",
2195
2449
  r: "9.5",
2196
2450
  stroke: "currentColor",
2197
2451
  strokeWidth: "1.6"
2198
2452
  }),
2199
- /* @__PURE__ */ m("rect", {
2453
+ /* @__PURE__ */ h("rect", {
2200
2454
  x: "11.2",
2201
2455
  y: "7.8",
2202
2456
  width: "1.6",
@@ -2204,7 +2458,7 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2204
2458
  rx: "0.4",
2205
2459
  fill: "currentColor"
2206
2460
  }),
2207
- /* @__PURE__ */ m("rect", {
2461
+ /* @__PURE__ */ h("rect", {
2208
2462
  x: "11.2",
2209
2463
  y: "10.8",
2210
2464
  width: "1.6",
@@ -2214,19 +2468,19 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2214
2468
  })
2215
2469
  ]
2216
2470
  });
2217
- case "success": return /* @__PURE__ */ h("svg", {
2471
+ case "success": return /* @__PURE__ */ g("svg", {
2218
2472
  width: "18",
2219
2473
  height: "18",
2220
2474
  viewBox: "0 0 24 24",
2221
2475
  fill: "none",
2222
2476
  "aria-hidden": "true",
2223
- children: [/* @__PURE__ */ m("circle", {
2477
+ children: [/* @__PURE__ */ h("circle", {
2224
2478
  cx: "12",
2225
2479
  cy: "12",
2226
2480
  r: "9.5",
2227
2481
  stroke: "currentColor",
2228
2482
  strokeWidth: "1.6"
2229
- }), /* @__PURE__ */ m("path", {
2483
+ }), /* @__PURE__ */ h("path", {
2230
2484
  d: "M8 12.2L10.8 15L16 9.5",
2231
2485
  stroke: "currentColor",
2232
2486
  strokeWidth: "1.8",
@@ -2234,21 +2488,21 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2234
2488
  strokeLinejoin: "round"
2235
2489
  })]
2236
2490
  });
2237
- case "warning": return /* @__PURE__ */ h("svg", {
2491
+ case "warning": return /* @__PURE__ */ g("svg", {
2238
2492
  width: "18",
2239
2493
  height: "18",
2240
2494
  viewBox: "0 0 24 24",
2241
2495
  fill: "none",
2242
2496
  "aria-hidden": "true",
2243
2497
  children: [
2244
- /* @__PURE__ */ m("circle", {
2498
+ /* @__PURE__ */ h("circle", {
2245
2499
  cx: "12",
2246
2500
  cy: "12",
2247
2501
  r: "9.5",
2248
2502
  stroke: "currentColor",
2249
2503
  strokeWidth: "1.6"
2250
2504
  }),
2251
- /* @__PURE__ */ m("rect", {
2505
+ /* @__PURE__ */ h("rect", {
2252
2506
  x: "11.2",
2253
2507
  y: "7.5",
2254
2508
  width: "1.6",
@@ -2256,7 +2510,7 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2256
2510
  rx: "0.4",
2257
2511
  fill: "currentColor"
2258
2512
  }),
2259
- /* @__PURE__ */ m("rect", {
2513
+ /* @__PURE__ */ h("rect", {
2260
2514
  x: "11.2",
2261
2515
  y: "14.8",
2262
2516
  width: "1.6",
@@ -2266,40 +2520,40 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2266
2520
  })
2267
2521
  ]
2268
2522
  });
2269
- case "error": return /* @__PURE__ */ h("svg", {
2523
+ case "error": return /* @__PURE__ */ g("svg", {
2270
2524
  width: "18",
2271
2525
  height: "18",
2272
2526
  viewBox: "0 0 24 24",
2273
2527
  fill: "none",
2274
2528
  "aria-hidden": "true",
2275
- children: [/* @__PURE__ */ m("circle", {
2529
+ children: [/* @__PURE__ */ h("circle", {
2276
2530
  cx: "12",
2277
2531
  cy: "12",
2278
2532
  r: "9.5",
2279
2533
  stroke: "currentColor",
2280
2534
  strokeWidth: "1.6"
2281
- }), /* @__PURE__ */ m("path", {
2535
+ }), /* @__PURE__ */ h("path", {
2282
2536
  d: "M9 9L15 15M15 9L9 15",
2283
2537
  stroke: "currentColor",
2284
2538
  strokeWidth: "1.8",
2285
2539
  strokeLinecap: "round"
2286
2540
  })]
2287
2541
  });
2288
- case "loading": return /* @__PURE__ */ h("svg", {
2542
+ case "loading": return /* @__PURE__ */ g("svg", {
2289
2543
  width: "18",
2290
2544
  height: "18",
2291
2545
  viewBox: "0 0 24 24",
2292
2546
  fill: "none",
2293
2547
  className: "tp-toast-spinner",
2294
2548
  "aria-hidden": "true",
2295
- children: [/* @__PURE__ */ m("circle", {
2549
+ children: [/* @__PURE__ */ h("circle", {
2296
2550
  cx: "12",
2297
2551
  cy: "12",
2298
2552
  r: "9",
2299
2553
  stroke: "currentColor",
2300
2554
  strokeOpacity: "0.28",
2301
2555
  strokeWidth: "2.2"
2302
- }), /* @__PURE__ */ m("path", {
2556
+ }), /* @__PURE__ */ h("path", {
2303
2557
  d: "M12 3A9 9 0 0 1 21 12",
2304
2558
  stroke: "currentColor",
2305
2559
  strokeWidth: "2.2",
@@ -2308,7 +2562,7 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2308
2562
  });
2309
2563
  default: return null;
2310
2564
  }
2311
- }, Q = ({ open: e = !0, type: t = "default", message: n, duration: r, position: i = "center", onClose: a, className: o = "", style: s }) => {
2565
+ }, Te = ({ open: e = !0, type: t = "default", message: n, duration: r, position: i = "center", onClose: a, className: o = "", style: s }) => {
2312
2566
  let l = r ?? (t === "loading" ? 0 : 2500);
2313
2567
  if (c(() => {
2314
2568
  if (!e || !a || l <= 0) return;
@@ -2321,29 +2575,29 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2321
2575
  l,
2322
2576
  a
2323
2577
  ]), !e) return null;
2324
- let u = /* @__PURE__ */ m(ge, { type: t });
2325
- return /* @__PURE__ */ m("div", {
2578
+ let u = /* @__PURE__ */ h(we, { type: t });
2579
+ return /* @__PURE__ */ h("div", {
2326
2580
  className: `tp-toast-container tp-toast-container--${i}`,
2327
- children: /* @__PURE__ */ h("div", {
2581
+ children: /* @__PURE__ */ g("div", {
2328
2582
  role: t === "error" ? "alert" : "status",
2329
2583
  "aria-live": t === "error" ? "assertive" : "polite",
2330
2584
  "data-type": t,
2331
2585
  className: `tp-toast tp-toast--${t} ${o}`.trim(),
2332
2586
  style: s,
2333
- children: [t !== "default" && /* @__PURE__ */ m("span", {
2587
+ children: [t !== "default" && /* @__PURE__ */ h("span", {
2334
2588
  className: "tp-toast-icon",
2335
2589
  children: u
2336
- }), /* @__PURE__ */ m("span", {
2590
+ }), /* @__PURE__ */ h("span", {
2337
2591
  className: "tp-toast-message",
2338
2592
  children: n
2339
2593
  })]
2340
2594
  })
2341
2595
  });
2342
- }, $ = a({
2596
+ }, Ee = a({
2343
2597
  show: () => {},
2344
2598
  dismiss: () => {}
2345
- }), _e = ({ children: e }) => {
2346
- let [t, n] = f(null), r = d(null), i = o(() => {
2599
+ }), De = ({ children: e }) => {
2600
+ let [t, n] = p(null), r = f(null), i = o(() => {
2347
2601
  r.current !== null && (clearTimeout(r.current), r.current = null);
2348
2602
  }, []), a = o(() => {
2349
2603
  i(), n((e) => e ? {
@@ -2365,13 +2619,13 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2365
2619
  }, o));
2366
2620
  }, [i]);
2367
2621
  c(() => () => i(), [i]);
2368
- let l = u(() => ({
2622
+ let l = d(() => ({
2369
2623
  show: s,
2370
2624
  dismiss: a
2371
2625
  }), [s, a]);
2372
- return /* @__PURE__ */ h($.Provider, {
2626
+ return /* @__PURE__ */ g(Ee.Provider, {
2373
2627
  value: l,
2374
- children: [e, t && /* @__PURE__ */ m(Q, {
2628
+ children: [e, t && /* @__PURE__ */ h(Te, {
2375
2629
  open: t.open,
2376
2630
  type: t.type,
2377
2631
  message: t.message,
@@ -2382,78 +2636,116 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2382
2636
  })]
2383
2637
  });
2384
2638
  };
2385
- function ve() {
2386
- return s($);
2639
+ function Oe() {
2640
+ return s(Ee);
2387
2641
  }
2388
2642
  // src/core/components/TPLiquidGlass.tsx
2389
- var ye = ({ shape: e = "pill", tint: t = "clear", interactive: n = !1, as: r = "div", ariaLabel: i, disabled: a = !1, onClick: o, className: s = "", style: c, children: l }) => {
2390
- let u = r, d = [
2643
+ var ke = ({ shape: e = "pill", tint: t = "clear", interactive: n = !1, refraction: r = 1, dispersion: a = 1, blur: o = 2, optical: s = !0, as: c = "div", ariaLabel: l, disabled: u = !1, onClick: d, className: p = "", style: m, children: g }) => {
2644
+ let _ = f(null), v = [
2391
2645
  "tp-liquid-glass",
2392
2646
  `tp-liquid-glass--${e}`,
2393
2647
  `tp-liquid-glass--tint-${t}`,
2394
2648
  n ? "tp-liquid-glass--interactive" : "",
2395
- a ? "tp-liquid-glass--disabled" : "",
2396
- s
2649
+ u ? "tp-liquid-glass--disabled" : "",
2650
+ p
2397
2651
  ].filter(Boolean).join(" ");
2398
- return /* @__PURE__ */ m(u, {
2399
- type: r === "button" ? "button" : void 0,
2400
- disabled: r === "button" ? a : void 0,
2401
- "aria-label": i,
2402
- "aria-disabled": r !== "button" && a ? !0 : void 0,
2652
+ return i.createElement(c, {
2653
+ ref: _,
2654
+ type: c === "button" ? "button" : void 0,
2655
+ disabled: c === "button" ? u : void 0,
2656
+ "aria-label": l,
2657
+ "aria-disabled": c !== "button" && u ? !0 : void 0,
2403
2658
  "data-shape": e,
2404
2659
  "data-tint": t,
2405
- className: d,
2406
- style: c,
2407
- onClick: a ? void 0 : o,
2408
- children: l
2409
- });
2410
- };
2411
- // src/core/components/TPIconButton.tsx
2412
- function be(e) {
2413
- return e == null || e === !1 || e === "" || e === 0 ? null : e === !0 ? /* @__PURE__ */ m("span", {
2660
+ className: v,
2661
+ style: m,
2662
+ onClick: u ? void 0 : d
2663
+ }, /* @__PURE__ */ h(k, {
2664
+ hostRef: _,
2665
+ shape: e,
2666
+ tint: t,
2667
+ refraction: r,
2668
+ dispersion: a,
2669
+ blur: o,
2670
+ optical: s
2671
+ }), /* @__PURE__ */ h("span", {
2672
+ className: "tp-liquid-glass-content",
2673
+ children: g
2674
+ }));
2675
+ }, Ae = i.createContext(!1);
2676
+ function je(e) {
2677
+ return e == null || e === !1 || e === "" || e === 0 ? null : e === !0 ? /* @__PURE__ */ h("span", {
2414
2678
  className: "tp-icon-btn-badge tp-icon-btn-badge--dot",
2415
2679
  "aria-hidden": "true"
2416
- }) : /* @__PURE__ */ m("span", {
2680
+ }) : /* @__PURE__ */ h("span", {
2417
2681
  className: "tp-icon-btn-badge",
2418
2682
  children: typeof e == "number" && e > 99 ? "99+" : String(e)
2419
2683
  });
2420
2684
  }
2421
- var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o = !1, ariaLabel: s, onClick: c, className: l = "", style: u }) => {
2422
- let d = i === "sm" ? 16 : i === "lg" ? 22 : 19, f = typeof e == "string" && n(e) ? /* @__PURE__ */ m(r, {
2685
+ var Me = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o = !1, ariaLabel: c, onClick: l, className: u = "", style: d }) => {
2686
+ let p = f(null), m = s(Ae), _ = i === "sm" ? 16 : i === "lg" ? 22 : 19, v = typeof e == "string" && n(e) ? /* @__PURE__ */ h(r, {
2423
2687
  name: e,
2424
- size: d
2425
- }) : e, p = [
2688
+ size: _
2689
+ }) : e, y = [
2426
2690
  "tp-icon-btn",
2427
2691
  `tp-icon-btn--${t}`,
2428
2692
  `tp-icon-btn--${i}`,
2429
2693
  o ? "tp-icon-btn--disabled" : "",
2430
- l
2694
+ u
2431
2695
  ].filter(Boolean).join(" ");
2432
- return /* @__PURE__ */ h("button", {
2696
+ return /* @__PURE__ */ g("button", {
2697
+ ref: p,
2433
2698
  type: "button",
2434
- className: p,
2699
+ className: y,
2435
2700
  "data-variant": t,
2436
2701
  "data-size": i,
2437
- "aria-label": s,
2702
+ "aria-label": c,
2438
2703
  disabled: o,
2439
- onClick: c,
2440
- style: u,
2441
- children: [/* @__PURE__ */ m("span", {
2442
- className: "tp-icon-btn-glyph",
2443
- children: f
2444
- }), be(a)]
2704
+ onClick: l,
2705
+ style: d,
2706
+ children: [
2707
+ t === "glass" && !m && /* @__PURE__ */ h(k, {
2708
+ hostRef: p,
2709
+ shape: "circle",
2710
+ tint: "clear",
2711
+ bezelWidth: 12,
2712
+ refraction: 1.05,
2713
+ dispersion: .9,
2714
+ blur: 2
2715
+ }),
2716
+ /* @__PURE__ */ h("span", {
2717
+ className: "tp-icon-btn-glyph",
2718
+ children: v
2719
+ }),
2720
+ je(a)
2721
+ ]
2445
2722
  });
2446
- }, Se = ({ variant: e = "glass", children: t, className: n = "", style: r }) => /* @__PURE__ */ m("div", {
2447
- className: `tp-icon-btn-group tp-icon-btn-group--${e} ${n}`.trim(),
2448
- "data-variant": e,
2449
- role: "group",
2450
- style: r,
2451
- children: t
2452
- }), Ce = ({ checked: e, defaultChecked: t = !1, indeterminate: n = !1, disabled: r = !1, label: i, description: a, onChange: o, ariaLabel: s, className: c = "", style: u }) => {
2453
- let d = l(), p = e !== void 0, [g, _] = f(t), v = p ? e : g, y = () => {
2723
+ }, Ne = ({ variant: e = "glass", children: t, className: n = "", style: r }) => {
2724
+ let i = f(null);
2725
+ return /* @__PURE__ */ h(Ae.Provider, {
2726
+ value: !0,
2727
+ children: /* @__PURE__ */ g("div", {
2728
+ ref: i,
2729
+ className: `tp-icon-btn-group tp-icon-btn-group--${e} ${n}`.trim(),
2730
+ "data-variant": e,
2731
+ role: "group",
2732
+ style: r,
2733
+ children: [e === "glass" && /* @__PURE__ */ h(k, {
2734
+ hostRef: i,
2735
+ shape: "pill",
2736
+ tint: "clear",
2737
+ bezelWidth: 12,
2738
+ refraction: 1.05,
2739
+ dispersion: .9,
2740
+ blur: 2
2741
+ }), t]
2742
+ })
2743
+ });
2744
+ }, Pe = ({ checked: e, defaultChecked: t = !1, indeterminate: n = !1, disabled: r = !1, label: i, description: a, onChange: o, ariaLabel: s, className: c = "", style: u }) => {
2745
+ let d = l(), f = e !== void 0, [m, _] = p(t), v = f ? e : m, y = () => {
2454
2746
  if (r) return;
2455
2747
  let e = !v;
2456
- p || _(e), o?.(e);
2748
+ f || _(e), o?.(e);
2457
2749
  }, b = [
2458
2750
  "tp-check-row",
2459
2751
  v ? "tp-check-row--checked" : "",
@@ -2461,12 +2753,12 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2461
2753
  r ? "tp-check-row--disabled" : "",
2462
2754
  c
2463
2755
  ].filter(Boolean).join(" ");
2464
- return /* @__PURE__ */ h("label", {
2756
+ return /* @__PURE__ */ g("label", {
2465
2757
  htmlFor: d,
2466
2758
  className: b,
2467
2759
  style: u,
2468
2760
  children: [
2469
- /* @__PURE__ */ m("input", {
2761
+ /* @__PURE__ */ h("input", {
2470
2762
  id: d,
2471
2763
  type: "checkbox",
2472
2764
  className: "tp-check-native",
@@ -2476,26 +2768,26 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2476
2768
  "aria-checked": n ? "mixed" : v,
2477
2769
  onChange: y
2478
2770
  }),
2479
- /* @__PURE__ */ m("span", {
2771
+ /* @__PURE__ */ h("span", {
2480
2772
  className: `tp-checkbox-box ${v || n ? "tp-checkbox-box--active" : ""}`.trim(),
2481
2773
  "aria-hidden": "true",
2482
- children: n ? /* @__PURE__ */ m("svg", {
2774
+ children: n ? /* @__PURE__ */ h("svg", {
2483
2775
  width: "12",
2484
2776
  height: "12",
2485
2777
  viewBox: "0 0 12 12",
2486
2778
  fill: "none",
2487
- children: /* @__PURE__ */ m("path", {
2779
+ children: /* @__PURE__ */ h("path", {
2488
2780
  d: "M2.5 6H9.5",
2489
2781
  stroke: "currentColor",
2490
2782
  strokeWidth: "1.9",
2491
2783
  strokeLinecap: "round"
2492
2784
  })
2493
- }) : v ? /* @__PURE__ */ m("svg", {
2785
+ }) : v ? /* @__PURE__ */ h("svg", {
2494
2786
  width: "12",
2495
2787
  height: "12",
2496
2788
  viewBox: "0 0 12 12",
2497
2789
  fill: "none",
2498
- children: /* @__PURE__ */ m("path", {
2790
+ children: /* @__PURE__ */ h("path", {
2499
2791
  d: "M2.5 6.2L5 8.7L9.5 3.6",
2500
2792
  stroke: "currentColor",
2501
2793
  strokeWidth: "1.9",
@@ -2504,51 +2796,51 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2504
2796
  })
2505
2797
  }) : null
2506
2798
  }),
2507
- (i !== void 0 || a !== void 0) && /* @__PURE__ */ h("span", {
2799
+ (i !== void 0 || a !== void 0) && /* @__PURE__ */ g("span", {
2508
2800
  className: "tp-check-texts",
2509
- children: [i !== void 0 && /* @__PURE__ */ m("span", {
2801
+ children: [i !== void 0 && /* @__PURE__ */ h("span", {
2510
2802
  className: "tp-check-label",
2511
2803
  children: i
2512
- }), a !== void 0 && /* @__PURE__ */ m("span", {
2804
+ }), a !== void 0 && /* @__PURE__ */ h("span", {
2513
2805
  className: "tp-check-desc",
2514
2806
  children: a
2515
2807
  })]
2516
2808
  })
2517
2809
  ]
2518
2810
  });
2519
- }, we = ({ options: e, value: t, defaultValue: n = [], onChange: r, direction: i = "vertical", disabled: a = !1, className: o = "", style: s }) => {
2520
- let c = t !== void 0, [l, u] = f([...n]), d = c ? t : l, p = (e, t) => {
2811
+ }, Fe = ({ options: e, value: t, defaultValue: n = [], onChange: r, direction: i = "vertical", disabled: a = !1, className: o = "", style: s }) => {
2812
+ let c = t !== void 0, [l, u] = p([...n]), d = c ? t : l, f = (e, t) => {
2521
2813
  let n = t ? d.includes(e) ? [...d] : [...d, e] : d.filter((t) => t !== e);
2522
2814
  c || u(n), r?.(n);
2523
2815
  };
2524
- return /* @__PURE__ */ m("div", {
2816
+ return /* @__PURE__ */ h("div", {
2525
2817
  role: "group",
2526
2818
  className: `tp-choice-group tp-choice-group--${i} ${o}`.trim(),
2527
2819
  style: s,
2528
- children: e.map((e) => /* @__PURE__ */ m(Ce, {
2820
+ children: e.map((e) => /* @__PURE__ */ h(Pe, {
2529
2821
  label: e.label,
2530
2822
  description: e.description,
2531
2823
  disabled: a || e.disabled,
2532
2824
  checked: d.includes(e.value),
2533
- onChange: (t) => p(e.value, t)
2825
+ onChange: (t) => f(e.value, t)
2534
2826
  }, e.value))
2535
2827
  });
2536
- }, Te = ({ checked: e, defaultChecked: t = !1, disabled: n = !1, label: r, description: i, value: a, name: o, onChange: s, ariaLabel: c, className: u = "", style: d }) => {
2537
- let p = l(), g = e !== void 0, [_, v] = f(t), y = g ? e : _, b = () => {
2538
- n || (g || v(!0), s?.(!0));
2828
+ }, Ie = ({ checked: e, defaultChecked: t = !1, disabled: n = !1, label: r, description: i, value: a, name: o, onChange: s, ariaLabel: c, className: u = "", style: d }) => {
2829
+ let f = l(), m = e !== void 0, [_, v] = p(t), y = m ? e : _, b = () => {
2830
+ n || (m || v(!0), s?.(!0));
2539
2831
  }, x = [
2540
2832
  "tp-check-row",
2541
2833
  y ? "tp-check-row--checked" : "",
2542
2834
  n ? "tp-check-row--disabled" : "",
2543
2835
  u
2544
2836
  ].filter(Boolean).join(" ");
2545
- return /* @__PURE__ */ h("label", {
2546
- htmlFor: p,
2837
+ return /* @__PURE__ */ g("label", {
2838
+ htmlFor: f,
2547
2839
  className: x,
2548
2840
  style: d,
2549
2841
  children: [
2550
- /* @__PURE__ */ m("input", {
2551
- id: p,
2842
+ /* @__PURE__ */ h("input", {
2843
+ id: f,
2552
2844
  type: "radio",
2553
2845
  name: o,
2554
2846
  value: a,
@@ -2558,32 +2850,32 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2558
2850
  "aria-label": c,
2559
2851
  onChange: b
2560
2852
  }),
2561
- /* @__PURE__ */ m("span", {
2853
+ /* @__PURE__ */ h("span", {
2562
2854
  className: `tp-radio-ring ${y ? "tp-radio-ring--active" : ""}`.trim(),
2563
2855
  "aria-hidden": "true",
2564
- children: y && /* @__PURE__ */ m("span", { className: "tp-radio-dot" })
2856
+ children: y && /* @__PURE__ */ h("span", { className: "tp-radio-dot" })
2565
2857
  }),
2566
- (r !== void 0 || i !== void 0) && /* @__PURE__ */ h("span", {
2858
+ (r !== void 0 || i !== void 0) && /* @__PURE__ */ g("span", {
2567
2859
  className: "tp-check-texts",
2568
- children: [r !== void 0 && /* @__PURE__ */ m("span", {
2860
+ children: [r !== void 0 && /* @__PURE__ */ h("span", {
2569
2861
  className: "tp-check-label",
2570
2862
  children: r
2571
- }), i !== void 0 && /* @__PURE__ */ m("span", {
2863
+ }), i !== void 0 && /* @__PURE__ */ h("span", {
2572
2864
  className: "tp-check-desc",
2573
2865
  children: i
2574
2866
  })]
2575
2867
  })
2576
2868
  ]
2577
2869
  });
2578
- }, Ee = ({ options: e, value: t, defaultValue: n, onChange: r, direction: i = "vertical", disabled: a = !1, name: o, className: s = "", style: c }) => {
2579
- let u = l(), d = o ?? `tp-radio-group-${u}`, p = t !== void 0, [h, g] = f(n ?? e[0]?.value ?? ""), _ = p ? t : h, v = (e) => {
2580
- p || g(e), r?.(e);
2870
+ }, Le = ({ options: e, value: t, defaultValue: n, onChange: r, direction: i = "vertical", disabled: a = !1, name: o, className: s = "", style: c }) => {
2871
+ let u = l(), d = o ?? `tp-radio-group-${u}`, f = t !== void 0, [m, g] = p(n ?? e[0]?.value ?? ""), _ = f ? t : m, v = (e) => {
2872
+ f || g(e), r?.(e);
2581
2873
  };
2582
- return /* @__PURE__ */ m("div", {
2874
+ return /* @__PURE__ */ h("div", {
2583
2875
  role: "radiogroup",
2584
2876
  className: `tp-choice-group tp-choice-group--${i} ${s}`.trim(),
2585
2877
  style: c,
2586
- children: e.map((e) => /* @__PURE__ */ m(Te, {
2878
+ children: e.map((e) => /* @__PURE__ */ h(Ie, {
2587
2879
  name: d,
2588
2880
  value: e.value,
2589
2881
  label: e.label,
@@ -2593,29 +2885,29 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2593
2885
  onChange: () => v(e.value)
2594
2886
  }, e.value))
2595
2887
  });
2596
- }, De = ({ actions: e, open: t, defaultOpen: n = !1, onOpenChange: r, disabled: i = !1, children: a, className: o = "", style: s }) => {
2597
- let c = t !== void 0, [l, u] = f(n), p = c ? t : l, g = Math.max(72, e.length * 76), [_, v] = f(null), y = d(null), b = (e) => {
2888
+ }, Re = ({ actions: e, open: t, defaultOpen: n = !1, onOpenChange: r, disabled: i = !1, children: a, className: o = "", style: s }) => {
2889
+ let c = t !== void 0, [l, u] = p(n), d = c ? t : l, m = Math.max(72, e.length * 76), [_, v] = p(null), y = f(null), b = (e) => {
2598
2890
  c || u(e), r?.(e);
2599
- }, x = _ === null ? p ? -g : 0 : _;
2600
- return /* @__PURE__ */ h("div", {
2601
- className: `tp-swipe-row ${p ? "tp-swipe-row--open" : ""} ${i ? "tp-swipe-row--disabled" : ""} ${o}`.trim(),
2602
- "data-open": String(p),
2891
+ }, x = _ === null ? d ? -m : 0 : _;
2892
+ return /* @__PURE__ */ g("div", {
2893
+ className: `tp-swipe-row ${d ? "tp-swipe-row--open" : ""} ${i ? "tp-swipe-row--disabled" : ""} ${o}`.trim(),
2894
+ "data-open": String(d),
2603
2895
  style: s,
2604
- children: [/* @__PURE__ */ m("div", {
2896
+ children: [/* @__PURE__ */ h("div", {
2605
2897
  className: "tp-swipe-actions",
2606
- style: { width: `${g}px` },
2607
- "aria-hidden": !p,
2608
- children: e.map((e) => /* @__PURE__ */ m("button", {
2898
+ style: { width: `${m}px` },
2899
+ "aria-hidden": !d,
2900
+ children: e.map((e) => /* @__PURE__ */ h("button", {
2609
2901
  type: "button",
2610
2902
  disabled: i,
2611
- tabIndex: p ? 0 : -1,
2903
+ tabIndex: d ? 0 : -1,
2612
2904
  className: `tp-swipe-action tp-swipe-action--${e.tone ?? "neutral"}`,
2613
2905
  onClick: () => {
2614
2906
  i || (e.onClick?.(), b(!1));
2615
2907
  },
2616
2908
  children: e.label
2617
2909
  }, e.key))
2618
- }), /* @__PURE__ */ m("div", {
2910
+ }), /* @__PURE__ */ h("div", {
2619
2911
  className: "tp-swipe-content",
2620
2912
  style: { transform: `translateX(${x}px)` },
2621
2913
  onPointerDown: (e) => {
@@ -2623,9 +2915,9 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2623
2915
  },
2624
2916
  onPointerMove: (e) => {
2625
2917
  if (i || y.current === null) return;
2626
- let t = p ? -g : 0, n = e.clientX - y.current;
2918
+ let t = d ? -m : 0, n = e.clientX - y.current;
2627
2919
  if (Math.abs(n) > 6) {
2628
- let e = Math.max(-g, Math.min(0, t + n));
2920
+ let e = Math.max(-m, Math.min(0, t + n));
2629
2921
  v(e);
2630
2922
  }
2631
2923
  },
@@ -2640,54 +2932,54 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2640
2932
  children: a
2641
2933
  })]
2642
2934
  });
2643
- }, Oe = ({ content: e, arrowPosition: t = "bottom-left", contextAdaptive: n = !0, open: r, defaultOpen: i = !0, onOpenChange: a, children: o, className: s = "", style: c }) => {
2644
- let l = r !== void 0, [u, d] = f(i), p = l ? r : u, g = () => {
2645
- let e = !p;
2935
+ }, ze = ({ content: e, arrowPosition: t = "bottom-left", contextAdaptive: n = !0, open: r, defaultOpen: i = !0, onOpenChange: a, children: o, className: s = "", style: c }) => {
2936
+ let l = r !== void 0, [u, d] = p(i), f = l ? r : u, m = () => {
2937
+ let e = !f;
2646
2938
  l || d(e), a?.(e);
2647
2939
  };
2648
- return /* @__PURE__ */ h("div", {
2940
+ return /* @__PURE__ */ g("div", {
2649
2941
  className: `tp-tooltip-wrap ${s}`.trim(),
2650
2942
  "data-arrow": t,
2651
2943
  style: c,
2652
- children: [o !== void 0 && /* @__PURE__ */ m("span", {
2944
+ children: [o !== void 0 && /* @__PURE__ */ h("span", {
2653
2945
  className: "tp-tooltip-trigger",
2654
2946
  role: "button",
2655
2947
  tabIndex: 0,
2656
- "aria-expanded": p,
2657
- onClick: g,
2948
+ "aria-expanded": f,
2949
+ onClick: m,
2658
2950
  onKeyDown: (e) => {
2659
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), g());
2951
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), m());
2660
2952
  },
2661
2953
  children: o
2662
- }), p && /* @__PURE__ */ h("div", {
2954
+ }), f && /* @__PURE__ */ g("div", {
2663
2955
  role: "tooltip",
2664
2956
  "data-arrow": t,
2665
2957
  "data-adaptive": String(n),
2666
2958
  className: `tp-tooltip-bubble tp-tooltip-bubble--${t} ${n ? "tp-tooltip-bubble--adaptive" : ""}`.trim(),
2667
- children: [/* @__PURE__ */ m("span", {
2959
+ children: [/* @__PURE__ */ h("span", {
2668
2960
  className: "tp-tooltip-content",
2669
2961
  children: e
2670
- }), /* @__PURE__ */ m("span", {
2962
+ }), /* @__PURE__ */ h("span", {
2671
2963
  className: "tp-tooltip-arrow",
2672
2964
  "aria-hidden": "true"
2673
2965
  })]
2674
2966
  })]
2675
2967
  });
2676
- }, ke = ({ status: e }) => {
2968
+ }, Be = ({ status: e }) => {
2677
2969
  switch (e) {
2678
- case "success": return /* @__PURE__ */ h("svg", {
2970
+ case "success": return /* @__PURE__ */ g("svg", {
2679
2971
  width: "18",
2680
2972
  height: "18",
2681
2973
  viewBox: "0 0 24 24",
2682
2974
  fill: "none",
2683
2975
  "aria-hidden": "true",
2684
- children: [/* @__PURE__ */ m("circle", {
2976
+ children: [/* @__PURE__ */ h("circle", {
2685
2977
  cx: "12",
2686
2978
  cy: "12",
2687
2979
  r: "9.5",
2688
2980
  stroke: "currentColor",
2689
2981
  strokeWidth: "1.7"
2690
- }), /* @__PURE__ */ m("path", {
2982
+ }), /* @__PURE__ */ h("path", {
2691
2983
  d: "M8.2 12.2L10.8 14.8L15.8 9.4",
2692
2984
  stroke: "currentColor",
2693
2985
  strokeWidth: "1.8",
@@ -2695,21 +2987,21 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2695
2987
  strokeLinejoin: "round"
2696
2988
  })]
2697
2989
  });
2698
- case "warning": return /* @__PURE__ */ h("svg", {
2990
+ case "warning": return /* @__PURE__ */ g("svg", {
2699
2991
  width: "18",
2700
2992
  height: "18",
2701
2993
  viewBox: "0 0 24 24",
2702
2994
  fill: "none",
2703
2995
  "aria-hidden": "true",
2704
2996
  children: [
2705
- /* @__PURE__ */ m("circle", {
2997
+ /* @__PURE__ */ h("circle", {
2706
2998
  cx: "12",
2707
2999
  cy: "12",
2708
3000
  r: "9.5",
2709
3001
  stroke: "currentColor",
2710
3002
  strokeWidth: "1.7"
2711
3003
  }),
2712
- /* @__PURE__ */ m("rect", {
3004
+ /* @__PURE__ */ h("rect", {
2713
3005
  x: "11.2",
2714
3006
  y: "7.2",
2715
3007
  width: "1.6",
@@ -2717,7 +3009,7 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2717
3009
  rx: "0.4",
2718
3010
  fill: "currentColor"
2719
3011
  }),
2720
- /* @__PURE__ */ m("rect", {
3012
+ /* @__PURE__ */ h("rect", {
2721
3013
  x: "11.2",
2722
3014
  y: "14.6",
2723
3015
  width: "1.6",
@@ -2727,40 +3019,40 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2727
3019
  })
2728
3020
  ]
2729
3021
  });
2730
- case "danger": return /* @__PURE__ */ h("svg", {
3022
+ case "danger": return /* @__PURE__ */ g("svg", {
2731
3023
  width: "18",
2732
3024
  height: "18",
2733
3025
  viewBox: "0 0 24 24",
2734
3026
  fill: "none",
2735
3027
  "aria-hidden": "true",
2736
- children: [/* @__PURE__ */ m("circle", {
3028
+ children: [/* @__PURE__ */ h("circle", {
2737
3029
  cx: "12",
2738
3030
  cy: "12",
2739
3031
  r: "9.5",
2740
3032
  stroke: "currentColor",
2741
3033
  strokeWidth: "1.7"
2742
- }), /* @__PURE__ */ m("path", {
3034
+ }), /* @__PURE__ */ h("path", {
2743
3035
  d: "M9 9L15 15M15 9L9 15",
2744
3036
  stroke: "currentColor",
2745
3037
  strokeWidth: "1.8",
2746
3038
  strokeLinecap: "round"
2747
3039
  })]
2748
3040
  });
2749
- default: return /* @__PURE__ */ h("svg", {
3041
+ default: return /* @__PURE__ */ g("svg", {
2750
3042
  width: "18",
2751
3043
  height: "18",
2752
3044
  viewBox: "0 0 24 24",
2753
3045
  fill: "none",
2754
3046
  "aria-hidden": "true",
2755
3047
  children: [
2756
- /* @__PURE__ */ m("circle", {
3048
+ /* @__PURE__ */ h("circle", {
2757
3049
  cx: "12",
2758
3050
  cy: "12",
2759
3051
  r: "9.5",
2760
3052
  stroke: "currentColor",
2761
3053
  strokeWidth: "1.7"
2762
3054
  }),
2763
- /* @__PURE__ */ m("rect", {
3055
+ /* @__PURE__ */ h("rect", {
2764
3056
  x: "11.2",
2765
3057
  y: "7.6",
2766
3058
  width: "1.6",
@@ -2768,7 +3060,7 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2768
3060
  rx: "0.4",
2769
3061
  fill: "currentColor"
2770
3062
  }),
2771
- /* @__PURE__ */ m("rect", {
3063
+ /* @__PURE__ */ h("rect", {
2772
3064
  x: "11.2",
2773
3065
  y: "10.8",
2774
3066
  width: "1.6",
@@ -2779,39 +3071,39 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2779
3071
  ]
2780
3072
  });
2781
3073
  }
2782
- }, Ae = ({ status: e = "default", action: t = "none", actionLabel: n = "Details", onAction: r, onClose: i, message: a, className: o = "", style: s }) => /* @__PURE__ */ h("div", {
3074
+ }, Ve = ({ status: e = "default", action: t = "none", actionLabel: n = "Details", onAction: r, onClose: i, message: a, className: o = "", style: s }) => /* @__PURE__ */ g("div", {
2783
3075
  role: e === "danger" ? "alert" : "status",
2784
3076
  "data-status": e,
2785
3077
  "data-action": t,
2786
3078
  className: `tp-fixed-toast tp-fixed-toast--${e} ${o}`.trim(),
2787
3079
  style: s,
2788
3080
  children: [
2789
- /* @__PURE__ */ m("span", {
3081
+ /* @__PURE__ */ h("span", {
2790
3082
  className: "tp-fixed-toast-icon",
2791
- children: /* @__PURE__ */ m(ke, { status: e })
3083
+ children: /* @__PURE__ */ h(Be, { status: e })
2792
3084
  }),
2793
- /* @__PURE__ */ m("div", {
3085
+ /* @__PURE__ */ h("div", {
2794
3086
  className: "tp-fixed-toast-message",
2795
3087
  children: a
2796
3088
  }),
2797
- t === "button" && /* @__PURE__ */ m("button", {
3089
+ t === "button" && /* @__PURE__ */ h("button", {
2798
3090
  type: "button",
2799
3091
  className: "tp-fixed-toast-btn",
2800
3092
  onClick: r,
2801
3093
  children: n
2802
3094
  }),
2803
- t === "go-to" && /* @__PURE__ */ m("button", {
3095
+ t === "go-to" && /* @__PURE__ */ h("button", {
2804
3096
  type: "button",
2805
3097
  className: "tp-fixed-toast-icon-action",
2806
3098
  "aria-label": n || "Go to",
2807
3099
  onClick: r,
2808
- children: /* @__PURE__ */ m("svg", {
3100
+ children: /* @__PURE__ */ h("svg", {
2809
3101
  width: "15",
2810
3102
  height: "15",
2811
3103
  viewBox: "0 0 16 16",
2812
3104
  fill: "none",
2813
3105
  "aria-hidden": "true",
2814
- children: /* @__PURE__ */ m("path", {
3106
+ children: /* @__PURE__ */ h("path", {
2815
3107
  d: "M6 3.5L10.5 8L6 12.5",
2816
3108
  stroke: "currentColor",
2817
3109
  strokeWidth: "1.8",
@@ -2820,18 +3112,18 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2820
3112
  })
2821
3113
  })
2822
3114
  }),
2823
- t === "close" && /* @__PURE__ */ m("button", {
3115
+ t === "close" && /* @__PURE__ */ h("button", {
2824
3116
  type: "button",
2825
3117
  className: "tp-fixed-toast-icon-action",
2826
3118
  "aria-label": "Close",
2827
3119
  onClick: i,
2828
- children: /* @__PURE__ */ m("svg", {
3120
+ children: /* @__PURE__ */ h("svg", {
2829
3121
  width: "14",
2830
3122
  height: "14",
2831
3123
  viewBox: "0 0 16 16",
2832
3124
  fill: "none",
2833
3125
  "aria-hidden": "true",
2834
- children: /* @__PURE__ */ m("path", {
3126
+ children: /* @__PURE__ */ h("path", {
2835
3127
  d: "M3.5 3.5L12.5 12.5M12.5 3.5L3.5 12.5",
2836
3128
  stroke: "currentColor",
2837
3129
  strokeWidth: "1.7",
@@ -2840,7 +3132,7 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2840
3132
  })
2841
3133
  })
2842
3134
  ]
2843
- }), je = [
3135
+ }), He = [
2844
3136
  "Jan",
2845
3137
  "Feb",
2846
3138
  "Mar",
@@ -2853,7 +3145,7 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2853
3145
  "Oct",
2854
3146
  "Nov",
2855
3147
  "Dec"
2856
- ], Me = [
3148
+ ], Ue = [
2857
3149
  "1月",
2858
3150
  "2月",
2859
3151
  "3月",
@@ -2866,36 +3158,36 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2866
3158
  "10月",
2867
3159
  "11月",
2868
3160
  "12月"
2869
- ], Ne = ({ value: e, defaultValue: t = {
3161
+ ], We = ({ value: e, defaultValue: t = {
2870
3162
  year: 2026,
2871
3163
  month: 11
2872
3164
  }, minYear: n = 2020, maxYear: r = 2032, locale: i = "en", onChange: a, className: o = "", style: s }) => {
2873
- let c = e !== void 0, [l, u] = f(t), d = c ? e : l, [p, g] = f(d.year), _ = i === "zh" ? Me : je, v = (e) => {
3165
+ let c = e !== void 0, [l, u] = p(t), d = c ? e : l, [f, m] = p(d.year), _ = i === "zh" ? Ue : He, v = (e) => {
2874
3166
  let t = {
2875
- year: p,
3167
+ year: f,
2876
3168
  month: e
2877
3169
  };
2878
3170
  c || u(t), a?.(t);
2879
3171
  };
2880
- return /* @__PURE__ */ h("div", {
3172
+ return /* @__PURE__ */ g("div", {
2881
3173
  className: `tp-month-picker ${o}`.trim(),
2882
3174
  style: s,
2883
- children: [/* @__PURE__ */ h("div", {
3175
+ children: [/* @__PURE__ */ g("div", {
2884
3176
  className: "tp-month-picker-header",
2885
3177
  children: [
2886
- /* @__PURE__ */ m("button", {
3178
+ /* @__PURE__ */ h("button", {
2887
3179
  type: "button",
2888
3180
  className: "tp-month-picker-nav",
2889
3181
  "aria-label": "Previous year",
2890
- disabled: p <= n,
2891
- onClick: () => g((e) => Math.max(n, e - 1)),
2892
- children: /* @__PURE__ */ m("svg", {
3182
+ disabled: f <= n,
3183
+ onClick: () => m((e) => Math.max(n, e - 1)),
3184
+ children: /* @__PURE__ */ h("svg", {
2893
3185
  width: "16",
2894
3186
  height: "16",
2895
3187
  viewBox: "0 0 16 16",
2896
3188
  fill: "none",
2897
3189
  "aria-hidden": "true",
2898
- children: /* @__PURE__ */ m("path", {
3190
+ children: /* @__PURE__ */ h("path", {
2899
3191
  d: "M10 3.5L5.5 8L10 12.5",
2900
3192
  stroke: "currentColor",
2901
3193
  strokeWidth: "1.7",
@@ -2904,23 +3196,23 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2904
3196
  })
2905
3197
  })
2906
3198
  }),
2907
- /* @__PURE__ */ m("span", {
3199
+ /* @__PURE__ */ h("span", {
2908
3200
  className: "tp-month-picker-year",
2909
- children: i === "zh" ? `${p}年` : p
3201
+ children: i === "zh" ? `${f}年` : f
2910
3202
  }),
2911
- /* @__PURE__ */ m("button", {
3203
+ /* @__PURE__ */ h("button", {
2912
3204
  type: "button",
2913
3205
  className: "tp-month-picker-nav",
2914
3206
  "aria-label": "Next year",
2915
- disabled: p >= r,
2916
- onClick: () => g((e) => Math.min(r, e + 1)),
2917
- children: /* @__PURE__ */ m("svg", {
3207
+ disabled: f >= r,
3208
+ onClick: () => m((e) => Math.min(r, e + 1)),
3209
+ children: /* @__PURE__ */ h("svg", {
2918
3210
  width: "16",
2919
3211
  height: "16",
2920
3212
  viewBox: "0 0 16 16",
2921
3213
  fill: "none",
2922
3214
  "aria-hidden": "true",
2923
- children: /* @__PURE__ */ m("path", {
3215
+ children: /* @__PURE__ */ h("path", {
2924
3216
  d: "M6 3.5L10.5 8L6 12.5",
2925
3217
  stroke: "currentColor",
2926
3218
  strokeWidth: "1.7",
@@ -2930,13 +3222,13 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2930
3222
  })
2931
3223
  })
2932
3224
  ]
2933
- }), /* @__PURE__ */ m("div", {
3225
+ }), /* @__PURE__ */ h("div", {
2934
3226
  className: "tp-month-picker-grid",
2935
3227
  role: "listbox",
2936
3228
  "aria-label": "Month",
2937
3229
  children: _.map((e, t) => {
2938
- let n = t + 1, r = d.year === p && d.month === n;
2939
- return /* @__PURE__ */ m("button", {
3230
+ let n = t + 1, r = d.year === f && d.month === n;
3231
+ return /* @__PURE__ */ h("button", {
2940
3232
  type: "button",
2941
3233
  role: "option",
2942
3234
  "aria-selected": r,
@@ -2947,7 +3239,7 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2947
3239
  })
2948
3240
  })]
2949
3241
  });
2950
- }, Pe = [
3242
+ }, Ge = [
2951
3243
  "Sun",
2952
3244
  "Mon",
2953
3245
  "Tue",
@@ -2955,7 +3247,7 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2955
3247
  "Thu",
2956
3248
  "Fri",
2957
3249
  "Sat"
2958
- ], Fe = [
3250
+ ], Ke = [
2959
3251
  "日",
2960
3252
  "一",
2961
3253
  "二",
@@ -2964,29 +3256,29 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2964
3256
  "五",
2965
3257
  "六"
2966
3258
  ];
2967
- function Ie(e) {
3259
+ function qe(e) {
2968
3260
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
2969
3261
  }
2970
- var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], locale: i = "en", onChange: a, className: o = "", style: s }) => {
2971
- let c = u(() => n ?? t ?? e ?? new Date(2026, 10, 23), [
3262
+ var Je = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], locale: i = "en", onChange: a, className: o = "", style: s }) => {
3263
+ let c = d(() => n ?? t ?? e ?? new Date(2026, 10, 23), [
2972
3264
  n,
2973
3265
  t,
2974
3266
  e
2975
- ]), l = e !== void 0, [d, p] = f(() => t ?? c), g = Ie(l ? e : d), _ = u(() => {
3267
+ ]), l = e !== void 0, [u, f] = p(() => t ?? c), m = qe(l ? e : u), _ = d(() => {
2976
3268
  let e = [];
2977
3269
  for (let t = 6; t >= 0; t--) e.push(new Date(c.getFullYear(), c.getMonth(), c.getDate() - t));
2978
3270
  return e;
2979
- }, [c]), v = i === "zh" ? Fe : Pe, y = u(() => new Set(r), [r]), b = (e) => {
2980
- l || p(e), a?.(e);
3271
+ }, [c]), v = i === "zh" ? Ke : Ge, y = d(() => new Set(r), [r]), b = (e) => {
3272
+ l || f(e), a?.(e);
2981
3273
  };
2982
- return /* @__PURE__ */ m("div", {
3274
+ return /* @__PURE__ */ h("div", {
2983
3275
  className: `tp-last7-picker ${o}`.trim(),
2984
3276
  role: "listbox",
2985
3277
  "aria-label": "Last 7 Days",
2986
3278
  style: s,
2987
3279
  children: _.map((e) => {
2988
- let t = Ie(e), n = t === g, r = y.has(t);
2989
- return /* @__PURE__ */ h("button", {
3280
+ let t = qe(e), n = t === m, r = y.has(t);
3281
+ return /* @__PURE__ */ g("button", {
2990
3282
  type: "button",
2991
3283
  role: "option",
2992
3284
  "aria-selected": n,
@@ -2994,15 +3286,15 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
2994
3286
  className: `tp-last7-day ${n ? "tp-last7-day--selected" : ""}`.trim(),
2995
3287
  onClick: () => b(e),
2996
3288
  children: [
2997
- /* @__PURE__ */ m("span", {
3289
+ /* @__PURE__ */ h("span", {
2998
3290
  className: "tp-last7-weekday",
2999
3291
  children: v[e.getDay()]
3000
3292
  }),
3001
- /* @__PURE__ */ m("span", {
3293
+ /* @__PURE__ */ h("span", {
3002
3294
  className: "tp-last7-num",
3003
3295
  children: e.getDate()
3004
3296
  }),
3005
- /* @__PURE__ */ m("span", {
3297
+ /* @__PURE__ */ h("span", {
3006
3298
  className: `tp-last7-dot ${r ? "tp-last7-dot--visible" : ""}`.trim(),
3007
3299
  "aria-hidden": "true"
3008
3300
  })
@@ -3010,64 +3302,64 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
3010
3302
  }, t);
3011
3303
  })
3012
3304
  });
3013
- }, Re = ({ variant: e = "step", items: t, className: n = "", style: r }) => /* @__PURE__ */ m("ol", {
3305
+ }, Ye = ({ variant: e = "step", items: t, className: n = "", style: r }) => /* @__PURE__ */ h("ol", {
3014
3306
  className: `tp-step-text tp-step-text--${e} ${n}`.trim(),
3015
3307
  "data-variant": e,
3016
3308
  style: r,
3017
- children: t.map((t, n) => /* @__PURE__ */ h("li", {
3309
+ children: t.map((t, n) => /* @__PURE__ */ g("li", {
3018
3310
  className: "tp-step-text-item",
3019
- children: [/* @__PURE__ */ m("span", {
3311
+ children: [/* @__PURE__ */ h("span", {
3020
3312
  className: "tp-step-text-marker",
3021
3313
  "aria-hidden": "true",
3022
3314
  children: e === "bullet" ? "•" : e === "numbered" ? `${n + 1}.` : n + 1
3023
- }), /* @__PURE__ */ h("div", {
3315
+ }), /* @__PURE__ */ g("div", {
3024
3316
  className: "tp-step-text-body",
3025
3317
  children: [
3026
- t.title !== void 0 && /* @__PURE__ */ m("div", {
3318
+ t.title !== void 0 && /* @__PURE__ */ h("div", {
3027
3319
  className: "tp-step-text-title",
3028
3320
  children: t.title
3029
3321
  }),
3030
- /* @__PURE__ */ m("div", {
3322
+ /* @__PURE__ */ h("div", {
3031
3323
  className: "tp-step-text-content",
3032
3324
  children: t.text
3033
3325
  }),
3034
- t.note !== void 0 && /* @__PURE__ */ m("div", {
3326
+ t.note !== void 0 && /* @__PURE__ */ h("div", {
3035
3327
  className: "tp-step-text-note",
3036
3328
  children: t.note
3037
3329
  })
3038
3330
  ]
3039
3331
  })]
3040
3332
  }, t.key ?? n))
3041
- }), ze = ({ variant: e = "linear", percent: t, tone: n = "focus", size: r = 64, strokeWidth: i = 6, showValue: a = !0, label: o, className: s = "", style: c }) => {
3333
+ }), Xe = ({ variant: e = "linear", percent: t, tone: n = "focus", size: r = 64, strokeWidth: i = 6, showValue: a = !0, label: o, className: s = "", style: c }) => {
3042
3334
  let l = Math.max(0, Math.min(100, Math.round(t)));
3043
3335
  if (e === "circular") {
3044
3336
  let e = Math.max(8, (r - i) / 2), t = 2 * Math.PI * e, u = t * (1 - l / 100);
3045
- return /* @__PURE__ */ h("div", {
3337
+ return /* @__PURE__ */ g("div", {
3046
3338
  className: `tp-progress tp-progress--circular tp-progress--tone-${n} ${s}`.trim(),
3047
3339
  role: "progressbar",
3048
3340
  "aria-valuenow": l,
3049
3341
  "aria-valuemin": 0,
3050
3342
  "aria-valuemax": 100,
3051
3343
  style: c,
3052
- children: [/* @__PURE__ */ h("div", {
3344
+ children: [/* @__PURE__ */ g("div", {
3053
3345
  className: "tp-progress-ring-wrap",
3054
3346
  style: {
3055
3347
  width: r,
3056
3348
  height: r
3057
3349
  },
3058
- children: [/* @__PURE__ */ h("svg", {
3350
+ children: [/* @__PURE__ */ g("svg", {
3059
3351
  width: r,
3060
3352
  height: r,
3061
3353
  viewBox: `0 0 ${r} ${r}`,
3062
3354
  "aria-hidden": "true",
3063
- children: [/* @__PURE__ */ m("circle", {
3355
+ children: [/* @__PURE__ */ h("circle", {
3064
3356
  cx: r / 2,
3065
3357
  cy: r / 2,
3066
3358
  r: e,
3067
3359
  fill: "none",
3068
3360
  stroke: "var(--tp-divider)",
3069
3361
  strokeWidth: i
3070
- }), /* @__PURE__ */ m("circle", {
3362
+ }), /* @__PURE__ */ h("circle", {
3071
3363
  cx: r / 2,
3072
3364
  cy: r / 2,
3073
3365
  r: e,
@@ -3079,55 +3371,55 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
3079
3371
  strokeDashoffset: u,
3080
3372
  transform: `rotate(-90 ${r / 2} ${r / 2})`
3081
3373
  })]
3082
- }), a && /* @__PURE__ */ h("span", {
3374
+ }), a && /* @__PURE__ */ g("span", {
3083
3375
  className: "tp-progress-ring-val",
3084
3376
  children: [l, "%"]
3085
3377
  })]
3086
- }), o !== void 0 && /* @__PURE__ */ m("div", {
3378
+ }), o !== void 0 && /* @__PURE__ */ h("div", {
3087
3379
  className: "tp-progress-label",
3088
3380
  children: o
3089
3381
  })]
3090
3382
  });
3091
3383
  }
3092
- return /* @__PURE__ */ h("div", {
3384
+ return /* @__PURE__ */ g("div", {
3093
3385
  className: `tp-progress tp-progress--linear tp-progress--tone-${n} ${s}`.trim(),
3094
3386
  role: "progressbar",
3095
3387
  "aria-valuenow": l,
3096
3388
  "aria-valuemin": 0,
3097
3389
  "aria-valuemax": 100,
3098
3390
  style: c,
3099
- children: [(o !== void 0 || a) && /* @__PURE__ */ h("div", {
3391
+ children: [(o !== void 0 || a) && /* @__PURE__ */ g("div", {
3100
3392
  className: "tp-progress-head",
3101
- children: [/* @__PURE__ */ m("span", {
3393
+ children: [/* @__PURE__ */ h("span", {
3102
3394
  className: "tp-progress-label",
3103
3395
  children: o
3104
- }), a && /* @__PURE__ */ h("span", {
3396
+ }), a && /* @__PURE__ */ g("span", {
3105
3397
  className: "tp-progress-pct",
3106
3398
  children: [l, "%"]
3107
3399
  })]
3108
- }), /* @__PURE__ */ m("div", {
3400
+ }), /* @__PURE__ */ h("div", {
3109
3401
  className: "tp-progress-track",
3110
- children: /* @__PURE__ */ m("div", {
3402
+ children: /* @__PURE__ */ h("div", {
3111
3403
  className: "tp-progress-fill",
3112
3404
  style: { width: `${l}%` }
3113
3405
  })
3114
3406
  })]
3115
3407
  });
3116
- }, Be = ({ variant: e = "text", width: t, height: n, lines: r = 3, animated: i = !0, className: a = "", style: o }) => {
3408
+ }, Ze = ({ variant: e = "text", width: t, height: n, lines: r = 3, animated: i = !0, className: a = "", style: o }) => {
3117
3409
  let s = i ? "tp-skeleton-item--animated" : "";
3118
- if (e === "card") return /* @__PURE__ */ h("div", {
3410
+ if (e === "card") return /* @__PURE__ */ g("div", {
3119
3411
  className: `tp-skeleton-card ${a}`.trim(),
3120
3412
  "aria-busy": "true",
3121
3413
  style: o,
3122
3414
  children: [
3123
- /* @__PURE__ */ m("div", {
3415
+ /* @__PURE__ */ h("div", {
3124
3416
  className: `tp-skeleton-item ${s}`.trim(),
3125
3417
  style: {
3126
3418
  width: "48%",
3127
3419
  height: 18
3128
3420
  }
3129
3421
  }),
3130
- /* @__PURE__ */ m("div", {
3422
+ /* @__PURE__ */ h("div", {
3131
3423
  className: `tp-skeleton-item ${s}`.trim(),
3132
3424
  style: {
3133
3425
  width: "100%",
@@ -3135,7 +3427,7 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
3135
3427
  borderRadius: 10
3136
3428
  }
3137
3429
  }),
3138
- /* @__PURE__ */ m("div", {
3430
+ /* @__PURE__ */ h("div", {
3139
3431
  className: `tp-skeleton-item ${s}`.trim(),
3140
3432
  style: {
3141
3433
  width: "76%",
@@ -3146,7 +3438,7 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
3146
3438
  });
3147
3439
  if (e === "circle") {
3148
3440
  let e = t ?? n ?? 40;
3149
- return /* @__PURE__ */ m("span", {
3441
+ return /* @__PURE__ */ h("span", {
3150
3442
  "aria-busy": "true",
3151
3443
  className: `tp-skeleton-item tp-skeleton-item--circle ${s} ${a}`.trim(),
3152
3444
  style: {
@@ -3156,7 +3448,7 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
3156
3448
  }
3157
3449
  });
3158
3450
  }
3159
- return e === "rect" ? /* @__PURE__ */ m("div", {
3451
+ return e === "rect" ? /* @__PURE__ */ h("div", {
3160
3452
  "aria-busy": "true",
3161
3453
  className: `tp-skeleton-item ${s} ${a}`.trim(),
3162
3454
  style: {
@@ -3164,11 +3456,11 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
3164
3456
  height: n ?? 80,
3165
3457
  ...o
3166
3458
  }
3167
- }) : /* @__PURE__ */ m("div", {
3459
+ }) : /* @__PURE__ */ h("div", {
3168
3460
  className: `tp-skeleton-text-group ${a}`.trim(),
3169
3461
  "aria-busy": "true",
3170
3462
  style: o,
3171
- children: Array.from({ length: Math.max(1, r) }).map((e, i) => /* @__PURE__ */ m("div", {
3463
+ children: Array.from({ length: Math.max(1, r) }).map((e, i) => /* @__PURE__ */ h("div", {
3172
3464
  className: `tp-skeleton-item ${s}`.trim(),
3173
3465
  style: {
3174
3466
  width: i === r - 1 && r > 1 ? "68%" : t ?? "100%",
@@ -3176,26 +3468,26 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
3176
3468
  }
3177
3469
  }, i))
3178
3470
  });
3179
- }, Ve = ({ steps: e, current: t, direction: n = "horizontal", className: r = "", style: i }) => /* @__PURE__ */ m("ol", {
3471
+ }, Qe = ({ steps: e, current: t, direction: n = "horizontal", className: r = "", style: i }) => /* @__PURE__ */ h("ol", {
3180
3472
  className: `tp-stepper tp-stepper--${n} ${r}`.trim(),
3181
3473
  "data-direction": n,
3182
3474
  style: i,
3183
3475
  children: e.map((n, r) => {
3184
3476
  let i = r < t ? "done" : r === t ? "active" : "pending";
3185
- return /* @__PURE__ */ h("li", {
3477
+ return /* @__PURE__ */ g("li", {
3186
3478
  className: `tp-stepper-item tp-stepper-item--${i}`,
3187
3479
  "aria-current": i === "active" ? "step" : void 0,
3188
- children: [/* @__PURE__ */ h("div", {
3480
+ children: [/* @__PURE__ */ g("div", {
3189
3481
  className: "tp-stepper-node-row",
3190
- children: [/* @__PURE__ */ m("span", {
3482
+ children: [/* @__PURE__ */ h("span", {
3191
3483
  className: "tp-stepper-circle",
3192
- children: i === "done" ? /* @__PURE__ */ m("svg", {
3484
+ children: i === "done" ? /* @__PURE__ */ h("svg", {
3193
3485
  width: "12",
3194
3486
  height: "12",
3195
3487
  viewBox: "0 0 12 12",
3196
3488
  fill: "none",
3197
3489
  "aria-hidden": "true",
3198
- children: /* @__PURE__ */ m("path", {
3490
+ children: /* @__PURE__ */ h("path", {
3199
3491
  d: "M2.5 6.2L5 8.7L9.5 3.6",
3200
3492
  stroke: "currentColor",
3201
3493
  strokeWidth: "1.9",
@@ -3203,74 +3495,74 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
3203
3495
  strokeLinejoin: "round"
3204
3496
  })
3205
3497
  }) : r + 1
3206
- }), r < e.length - 1 && /* @__PURE__ */ m("span", {
3498
+ }), r < e.length - 1 && /* @__PURE__ */ h("span", {
3207
3499
  className: "tp-stepper-line",
3208
3500
  "aria-hidden": "true"
3209
3501
  })]
3210
- }), /* @__PURE__ */ h("div", {
3502
+ }), /* @__PURE__ */ g("div", {
3211
3503
  className: "tp-stepper-meta",
3212
- children: [/* @__PURE__ */ m("div", {
3504
+ children: [/* @__PURE__ */ h("div", {
3213
3505
  className: "tp-stepper-title",
3214
3506
  children: n.title
3215
- }), n.description !== void 0 && /* @__PURE__ */ m("div", {
3507
+ }), n.description !== void 0 && /* @__PURE__ */ h("div", {
3216
3508
  className: "tp-stepper-desc",
3217
3509
  children: n.description
3218
3510
  })]
3219
3511
  })]
3220
3512
  }, n.key);
3221
3513
  })
3222
- }), He = ({ inset: e = !1, label: t, spacing: n = "md", className: r = "", style: i }) => /* @__PURE__ */ h("div", {
3514
+ }), $e = ({ inset: e = !1, label: t, spacing: n = "md", className: r = "", style: i }) => /* @__PURE__ */ g("div", {
3223
3515
  role: "separator",
3224
3516
  className: `tp-divider tp-divider--space-${n} ${e ? "tp-divider--inset" : ""} ${t === void 0 ? "" : "tp-divider--with-label"} ${r}`.trim(),
3225
3517
  style: i,
3226
3518
  children: [
3227
- /* @__PURE__ */ m("span", { className: "tp-divider-line" }),
3228
- t !== void 0 && /* @__PURE__ */ m("span", {
3519
+ /* @__PURE__ */ h("span", { className: "tp-divider-line" }),
3520
+ t !== void 0 && /* @__PURE__ */ h("span", {
3229
3521
  className: "tp-divider-label",
3230
3522
  children: t
3231
3523
  }),
3232
- t !== void 0 && /* @__PURE__ */ m("span", { className: "tp-divider-line" })
3524
+ t !== void 0 && /* @__PURE__ */ h("span", { className: "tp-divider-line" })
3233
3525
  ]
3234
3526
  });
3235
3527
  // src/core/components/TPAvatar.tsx
3236
- function Ue(e) {
3528
+ function et(e) {
3237
3529
  if (!e) return "";
3238
3530
  let t = e.trim().split(/\s+/).filter(Boolean);
3239
3531
  return t.length === 0 ? "" : t.length === 1 ? t[0].slice(0, 2).toUpperCase() : `${t[0][0]}${t[1][0]}`.toUpperCase();
3240
3532
  }
3241
- var We = ({ src: e, name: t, icon: i, size: a = "md", status: o = "none", shape: s = "circle", alt: c, className: l = "", style: u }) => {
3242
- let d = a === "sm" ? 16 : a === "lg" ? 24 : 20, f = Ue(t) || "?";
3243
- return e ? f = /* @__PURE__ */ m("img", {
3533
+ var tt = ({ src: e, name: t, icon: i, size: a = "md", status: o = "none", shape: s = "circle", alt: c, className: l = "", style: u }) => {
3534
+ let d = a === "sm" ? 16 : a === "lg" ? 24 : 20, f = et(t) || "?";
3535
+ return e ? f = /* @__PURE__ */ h("img", {
3244
3536
  src: e,
3245
3537
  alt: c ?? t ?? "Avatar",
3246
3538
  className: "tp-avatar-img"
3247
- }) : i !== void 0 && (f = typeof i == "string" && n(i) ? /* @__PURE__ */ m(r, {
3539
+ }) : i !== void 0 && (f = typeof i == "string" && n(i) ? /* @__PURE__ */ h(r, {
3248
3540
  name: i,
3249
3541
  size: d
3250
- }) : i), /* @__PURE__ */ h("span", {
3542
+ }) : i), /* @__PURE__ */ g("span", {
3251
3543
  className: `tp-avatar tp-avatar--${a} tp-avatar--${s} ${l}`.trim(),
3252
3544
  "data-size": a,
3253
3545
  "data-shape": s,
3254
3546
  "aria-label": e ? void 0 : c ?? t,
3255
3547
  style: u,
3256
- children: [f, o !== "none" && /* @__PURE__ */ m("span", {
3548
+ children: [f, o !== "none" && /* @__PURE__ */ h("span", {
3257
3549
  className: `tp-avatar-status tp-avatar-status--${o}`,
3258
3550
  "aria-label": `Status: ${o}`
3259
3551
  })]
3260
3552
  });
3261
- }, Ge = ({ length: e = 6, value: t, defaultValue: n = "", masked: r = !1, error: i, disabled: a = !1, onChange: o, onComplete: s, ariaLabel: c = "Verification code", className: l = "", style: u }) => {
3262
- let p = Math.max(2, Math.min(8, e)), g = t !== void 0, [_, v] = f(n.slice(0, p)), y = (g ? t : _).slice(0, p), b = d([]), x = Array.from({ length: p }, (e, t) => y[t] ?? ""), S = (e) => {
3263
- let t = e.slice(0, p);
3264
- g || v(t), o?.(t), t.length === p && s?.(t);
3553
+ }, nt = ({ length: e = 6, value: t, defaultValue: n = "", masked: r = !1, error: i, disabled: a = !1, onChange: o, onComplete: s, ariaLabel: c = "Verification code", className: l = "", style: u }) => {
3554
+ let d = Math.max(2, Math.min(8, e)), m = t !== void 0, [_, v] = p(n.slice(0, d)), y = (m ? t : _).slice(0, d), b = f([]), x = Array.from({ length: d }, (e, t) => y[t] ?? ""), S = (e) => {
3555
+ let t = e.slice(0, d);
3556
+ m || v(t), o?.(t), t.length === d && s?.(t);
3265
3557
  };
3266
- return /* @__PURE__ */ h("div", {
3558
+ return /* @__PURE__ */ g("div", {
3267
3559
  className: `tp-pin-wrap ${i ? "tp-pin-wrap--error" : ""} ${l}`.trim(),
3268
3560
  style: u,
3269
- children: [/* @__PURE__ */ m("div", {
3561
+ children: [/* @__PURE__ */ h("div", {
3270
3562
  className: "tp-pin-cells",
3271
3563
  role: "group",
3272
3564
  "aria-label": c,
3273
- children: x.map((e, t) => /* @__PURE__ */ m("input", {
3565
+ children: x.map((e, t) => /* @__PURE__ */ h("input", {
3274
3566
  ref: (e) => {
3275
3567
  b.current[t] = e;
3276
3568
  },
@@ -3285,44 +3577,44 @@ var We = ({ src: e, name: t, icon: i, size: a = "md", status: o = "none", shape:
3285
3577
  if (a) return;
3286
3578
  let n = e.target.value.replace(/\s+/g, "");
3287
3579
  if (n.length > 1) {
3288
- let e = (y.slice(0, t) + n).slice(0, p);
3289
- S(e), b.current[Math.min(p - 1, t + n.length)]?.focus();
3580
+ let e = (y.slice(0, t) + n).slice(0, d);
3581
+ S(e), b.current[Math.min(d - 1, t + n.length)]?.focus();
3290
3582
  return;
3291
3583
  }
3292
3584
  let r = [...x];
3293
- r[t] = n, S(r.join("")), n && t < p - 1 && b.current[t + 1]?.focus();
3585
+ r[t] = n, S(r.join("")), n && t < d - 1 && b.current[t + 1]?.focus();
3294
3586
  },
3295
3587
  onKeyDown: (e) => {
3296
3588
  e.key === "Backspace" && !x[t] && t > 0 && b.current[t - 1]?.focus();
3297
3589
  },
3298
3590
  onPaste: (e) => {
3299
3591
  let t = e.clipboardData.getData("text").replace(/\s+/g, "");
3300
- t && (e.preventDefault(), S(t), b.current[Math.min(p - 1, t.length)]?.focus());
3592
+ t && (e.preventDefault(), S(t), b.current[Math.min(d - 1, t.length)]?.focus());
3301
3593
  }
3302
3594
  }, t))
3303
- }), i && /* @__PURE__ */ m("div", {
3595
+ }), i && /* @__PURE__ */ h("div", {
3304
3596
  className: "tp-pin-error",
3305
3597
  role: "alert",
3306
3598
  children: i
3307
3599
  })]
3308
3600
  });
3309
- }, Ke = ({ tone: e }) => {
3601
+ }, rt = ({ tone: e }) => {
3310
3602
  switch (e) {
3311
- case "warning": return /* @__PURE__ */ h("svg", {
3603
+ case "warning": return /* @__PURE__ */ g("svg", {
3312
3604
  width: "20",
3313
3605
  height: "20",
3314
3606
  viewBox: "0 0 24 24",
3315
3607
  fill: "none",
3316
3608
  "aria-hidden": "true",
3317
3609
  children: [
3318
- /* @__PURE__ */ m("circle", {
3610
+ /* @__PURE__ */ h("circle", {
3319
3611
  cx: "12",
3320
3612
  cy: "12",
3321
3613
  r: "9.5",
3322
3614
  stroke: "currentColor",
3323
3615
  strokeWidth: "1.5"
3324
3616
  }),
3325
- /* @__PURE__ */ m("rect", {
3617
+ /* @__PURE__ */ h("rect", {
3326
3618
  x: "11.25",
3327
3619
  y: "7.2",
3328
3620
  width: "1.5",
@@ -3330,7 +3622,7 @@ var We = ({ src: e, name: t, icon: i, size: a = "md", status: o = "none", shape:
3330
3622
  rx: "0.4",
3331
3623
  fill: "currentColor"
3332
3624
  }),
3333
- /* @__PURE__ */ m("rect", {
3625
+ /* @__PURE__ */ h("rect", {
3334
3626
  x: "11.25",
3335
3627
  y: "14.8",
3336
3628
  width: "1.5",
@@ -3340,38 +3632,38 @@ var We = ({ src: e, name: t, icon: i, size: a = "md", status: o = "none", shape:
3340
3632
  })
3341
3633
  ]
3342
3634
  });
3343
- case "alert": return /* @__PURE__ */ h("svg", {
3635
+ case "alert": return /* @__PURE__ */ g("svg", {
3344
3636
  width: "20",
3345
3637
  height: "20",
3346
3638
  viewBox: "0 0 24 24",
3347
3639
  fill: "none",
3348
3640
  "aria-hidden": "true",
3349
- children: [/* @__PURE__ */ m("circle", {
3641
+ children: [/* @__PURE__ */ h("circle", {
3350
3642
  cx: "12",
3351
3643
  cy: "12",
3352
3644
  r: "9.5",
3353
3645
  stroke: "currentColor",
3354
3646
  strokeWidth: "1.5"
3355
- }), /* @__PURE__ */ m("path", {
3647
+ }), /* @__PURE__ */ h("path", {
3356
3648
  d: "M9.2 9.2L14.8 14.8M14.8 9.2L9.2 14.8",
3357
3649
  stroke: "currentColor",
3358
3650
  strokeWidth: "1.6",
3359
3651
  strokeLinecap: "round"
3360
3652
  })]
3361
3653
  });
3362
- case "focus": return /* @__PURE__ */ h("svg", {
3654
+ case "focus": return /* @__PURE__ */ g("svg", {
3363
3655
  width: "20",
3364
3656
  height: "20",
3365
3657
  viewBox: "0 0 24 24",
3366
3658
  fill: "none",
3367
3659
  "aria-hidden": "true",
3368
- children: [/* @__PURE__ */ m("circle", {
3660
+ children: [/* @__PURE__ */ h("circle", {
3369
3661
  cx: "12",
3370
3662
  cy: "12",
3371
3663
  r: "9.5",
3372
3664
  stroke: "currentColor",
3373
3665
  strokeWidth: "1.5"
3374
- }), /* @__PURE__ */ m("path", {
3666
+ }), /* @__PURE__ */ h("path", {
3375
3667
  d: "M8.5 12.2L11 14.7L15.8 9.6",
3376
3668
  stroke: "currentColor",
3377
3669
  strokeWidth: "1.7",
@@ -3379,78 +3671,78 @@ var We = ({ src: e, name: t, icon: i, size: a = "md", status: o = "none", shape:
3379
3671
  strokeLinejoin: "round"
3380
3672
  })]
3381
3673
  });
3382
- default: return /* @__PURE__ */ h("svg", {
3674
+ default: return /* @__PURE__ */ g("svg", {
3383
3675
  width: "20",
3384
3676
  height: "20",
3385
3677
  viewBox: "0 0 24 24",
3386
3678
  fill: "none",
3387
3679
  "aria-hidden": "true",
3388
3680
  children: [
3389
- /* @__PURE__ */ m("circle", {
3681
+ /* @__PURE__ */ h("circle", {
3390
3682
  cx: "12",
3391
3683
  cy: "12",
3392
3684
  r: "9.5",
3393
3685
  stroke: "currentColor",
3394
3686
  strokeWidth: "1.4"
3395
3687
  }),
3396
- /* @__PURE__ */ m("rect", {
3688
+ /* @__PURE__ */ h("rect", {
3397
3689
  x: "11.2",
3398
3690
  y: "8",
3399
3691
  width: "1.5",
3400
3692
  height: "1.5",
3401
3693
  fill: "currentColor"
3402
3694
  }),
3403
- /* @__PURE__ */ m("path", {
3695
+ /* @__PURE__ */ h("path", {
3404
3696
  d: "M11.2 11H12.7V16.5H11.2V11Z",
3405
3697
  fill: "currentColor"
3406
3698
  })
3407
3699
  ]
3408
3700
  });
3409
3701
  }
3410
- }, qe = () => /* @__PURE__ */ m("svg", {
3702
+ }, it = () => /* @__PURE__ */ h("svg", {
3411
3703
  width: "14",
3412
3704
  height: "14",
3413
3705
  viewBox: "0 0 16 16",
3414
3706
  fill: "none",
3415
3707
  "aria-hidden": "true",
3416
- children: /* @__PURE__ */ m("path", {
3708
+ children: /* @__PURE__ */ h("path", {
3417
3709
  d: "M3.5 3.5L12.5 12.5M12.5 3.5L3.5 12.5",
3418
3710
  stroke: "currentColor",
3419
3711
  strokeWidth: "1.6",
3420
3712
  strokeLinecap: "round"
3421
3713
  })
3422
- }), Je = ({ tone: e = "info", title: t, actionLabel: n, onAction: r, closable: i, onClose: a, icon: o, className: s = "", style: c }) => {
3714
+ }), at = ({ tone: e = "info", title: t, actionLabel: n, onAction: r, closable: i, onClose: a, icon: o, className: s = "", style: c }) => {
3423
3715
  let l = i ?? !!a;
3424
- return /* @__PURE__ */ h("div", {
3716
+ return /* @__PURE__ */ g("div", {
3425
3717
  role: "region",
3426
3718
  "data-tone": e,
3427
3719
  className: `tp-prompt tp-prompt--${e} ${s}`.trim(),
3428
3720
  style: c,
3429
3721
  children: [
3430
- /* @__PURE__ */ m("span", {
3722
+ /* @__PURE__ */ h("span", {
3431
3723
  className: "tp-prompt-icon",
3432
- children: o === void 0 ? /* @__PURE__ */ m(Ke, { tone: e }) : o
3724
+ children: o === void 0 ? /* @__PURE__ */ h(rt, { tone: e }) : o
3433
3725
  }),
3434
- /* @__PURE__ */ h("div", {
3726
+ /* @__PURE__ */ g("div", {
3435
3727
  className: "tp-prompt-content",
3436
- children: [/* @__PURE__ */ m("div", {
3728
+ children: [/* @__PURE__ */ h("div", {
3437
3729
  className: "tp-prompt-title",
3438
3730
  children: t
3439
- }), n !== void 0 && /* @__PURE__ */ m("button", {
3731
+ }), n !== void 0 && /* @__PURE__ */ h("button", {
3440
3732
  type: "button",
3441
3733
  className: "tp-prompt-action",
3442
3734
  onClick: r,
3443
3735
  children: n
3444
3736
  })]
3445
3737
  }),
3446
- l && /* @__PURE__ */ m("button", {
3738
+ l && /* @__PURE__ */ h("button", {
3447
3739
  type: "button",
3448
3740
  className: "tp-prompt-close",
3449
3741
  "aria-label": "Dismiss",
3450
3742
  onClick: a,
3451
- children: /* @__PURE__ */ m(qe, {})
3743
+ children: /* @__PURE__ */ h(it, {})
3452
3744
  })
3453
3745
  ]
3454
3746
  });
3455
3747
  };
3456
- export { b as $, re as A, z as B, ve as C, le as D, de as E, G as F, N as G, L as H, W as I, D as J, k as K, U as L, te as M, q as N, se as O, ee as P, x as Q, H as R, _e as S, pe as T, I as U, R as V, P as W, T as X, E as Y, w as Z, we as _, Ve as a, ye as b, Re as c, Ae as d, v as et, Oe as f, Ce as g, Ee as h, He as i, ne as j, oe as k, Le as l, Te as m, Ge as n, Be as o, De as p, O as q, We as r, ze as s, Je as t, Ne as u, xe as v, he as w, Q as x, Se as y, V as z };
3748
+ export { T as $, de as A, ee as B, Oe as C, _e as D, ye as E, oe as F, U as G, q as H, ae as I, L as J, z as K, ie as L, le as M, Y as N, he as O, se as P, j as Q, re as R, De as S, xe as T, K as U, J as V, W, F as X, I as Y, P as Z, Fe as _, Qe as a, ke as b, Ye as c, Ve as d, w as et, ze as f, Pe as g, Le as h, $e as i, ue as j, me as k, Je as l, Ie as m, nt as n, y as nt, Ze as o, Re as p, R as q, tt as r, Xe as s, at as t, x as tt, We as u, Me as v, Ce as w, Te as x, Ne as y, ne as z };