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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +11 -9
  2. package/dist/assets.js +5 -5
  3. package/dist/catalog.json +1956 -131
  4. package/dist/chunks/OmadaAppDemo-BxWPBACn.js +7359 -0
  5. package/dist/chunks/{TPPrompt-DLd32rsN.js → TPInfoSheet-DozlNuGj.js} +1658 -1043
  6. package/dist/chunks/asset-icons-BLfOEHzP.js +10434 -0
  7. package/dist/chunks/{asset-illustrations-YHXzEd7z.js → asset-illustrations-CslT-sgf.js} +28 -2051
  8. package/dist/chunks/{asset-logos-DAyGwOLj.js → asset-logos-B18ywOgH.js} +2 -2
  9. package/dist/chunks/{asset-motion-D7fWh_JS.js → asset-motion-CxM2f5Ft.js} +307 -70
  10. package/dist/core.js +3 -3
  11. package/dist/index.js +7 -7
  12. package/dist/omada.js +7 -7
  13. package/dist/standalone.js +2090 -622
  14. package/dist/style.css +1 -1
  15. package/dist/types/assets-lib/TPIcon.d.ts +3 -0
  16. package/dist/types/assets-lib/iconsManifest.d.ts +2 -0
  17. package/dist/types/assets-lib/motionsManifest.d.ts +1 -1
  18. package/dist/types/core/components/TPDatePicker.d.ts +1 -1
  19. package/dist/types/core/components/TPInfoSheet.d.ts +11 -0
  20. package/dist/types/core/components/TPLiquidGlass.d.ts +3 -2
  21. package/dist/types/core/components/TPLiquidGlassBackdrop.d.ts +32 -0
  22. package/dist/types/core/components/TPLoadMore.d.ts +7 -0
  23. package/dist/types/core/index.d.ts +3 -0
  24. package/dist/types/core/types.d.ts +97 -8
  25. package/dist/types/core/utils/liquidGlassEngine.d.ts +37 -0
  26. package/dist/types/omada/blocks/OmadaChartCard.d.ts +53 -0
  27. package/dist/types/omada/blocks/OmadaClientListBlock.d.ts +34 -0
  28. package/dist/types/omada/blocks/OmadaDeviceListBlock.d.ts +15 -2
  29. package/dist/types/omada/blocks/OmadaFormRepeaterBlock.d.ts +48 -0
  30. package/dist/types/omada/blocks/OmadaPortPanelBlock.d.ts +21 -3
  31. package/dist/types/omada/blocks/OmadaPortSelectorBlock.d.ts +23 -0
  32. package/dist/types/omada/blocks/OmadaSidebarDrawer.d.ts +27 -0
  33. package/dist/types/omada/blocks/OmadaSiteListBlock.d.ts +26 -0
  34. package/dist/types/omada/blocks/OmadaVoucherPreviewCard.d.ts +21 -0
  35. package/dist/types/omada/components/OmadaStandardInput.d.ts +3 -2
  36. package/dist/types/omada/index.d.ts +14 -2
  37. package/dist/types/omada/pages/OmadaAccessibilitySettingsPage.d.ts +12 -0
  38. package/dist/types/omada/pages/OmadaAppDemo.d.ts +6 -3
  39. package/dist/types/omada/pages/OmadaConfigFormPage.d.ts +24 -0
  40. package/dist/types/omada/pages/OmadaLanSettingsPage.d.ts +25 -0
  41. package/dist/types/omada/pages/OmadaPortDetailPage.d.ts +16 -0
  42. package/dist/types/omada/pages/OmadaPrivacyPolicyPage.d.ts +18 -0
  43. package/dist/types/theme/TPThemeProvider.d.ts +9 -0
  44. package/dist/types/theme/index.d.ts +1 -1
  45. package/dist/types/theme/tokens.d.ts +24 -0
  46. package/package.json +2 -2
  47. package/skills/tp-mobile-ui-kit/SKILL.md +17 -14
  48. package/skills/tp-mobile-ui-kit/references/catalog.json +1956 -131
  49. package/dist/chunks/OmadaAppDemo-BO8a6A-m.js +0 -4910
  50. package/dist/chunks/asset-icons-BIenKvAh.js +0 -7613
@@ -1,9 +1,9 @@
1
- import { s as e, t } from "./asset-illustrations-YHXzEd7z.js";
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";
1
+ import { c as e, n as t, t as n } from "./asset-icons-BLfOEHzP.js";
2
+ import { t as r } from "./asset-illustrations-CslT-sgf.js";
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: t, subtitle: n, variant: r = "standard", os: i, adaptiveOS: a = !0, left: o, right: s, showBack: c = !1, onBack: l, titleDropdown: u = !1, onTitleClick: d, rightBadge: f, translucent: p = !1, loading: _ = !1, tabs: v, activeTab: y, onTabChange: b, className: x = "", style: S }) => {
520
+ let { os: C } = e(), w = i ?? C, T = a && w === "android" && r === "floating" ? "standard" : r, E = T === "floating", D = T === "large", O = (T === "tabs" || !!v?.length) && !!v?.length, k = c || o != null, j = f != null && f !== "" && (typeof f != "number" || f > 0), M = s != null || j, N = /* @__PURE__ */ g(m, { children: [c ? /* @__PURE__ */ h("button", {
282
521
  type: "button",
283
522
  className: "tp-header-icon-btn",
284
523
  "aria-label": "Back",
285
- onClick: o,
286
- children: /* @__PURE__ */ m("svg", {
524
+ onClick: l,
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,146 +536,219 @@ 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", {
301
- className: "tp-header-title",
302
- children: e
303
- }), s && /* @__PURE__ */ m("span", {
304
- className: "tp-header-chevron",
305
- "aria-hidden": "true",
306
- children: /* @__PURE__ */ m("svg", {
307
- width: "14",
308
- height: "14",
309
- viewBox: "0 0 16 16",
310
- fill: "none",
311
- children: /* @__PURE__ */ m("path", {
312
- d: "M4 6L8 10L12 6",
313
- stroke: "currentColor",
314
- strokeWidth: "1.7",
315
- strokeLinecap: "round",
316
- strokeLinejoin: "round"
539
+ }) : null, o] }), P = /* @__PURE__ */ g(m, { children: [
540
+ t != null && /* @__PURE__ */ h("span", {
541
+ className: "tp-header-title",
542
+ children: t
543
+ }),
544
+ _ && /* @__PURE__ */ h("span", {
545
+ className: "tp-header-loading",
546
+ "aria-label": "Loading",
547
+ role: "status"
548
+ }),
549
+ u && /* @__PURE__ */ h("span", {
550
+ className: "tp-header-chevron",
551
+ "aria-hidden": "true",
552
+ children: /* @__PURE__ */ h("svg", {
553
+ width: "14",
554
+ height: "14",
555
+ viewBox: "0 0 16 16",
556
+ fill: "none",
557
+ children: /* @__PURE__ */ h("path", {
558
+ d: "M4 6L8 10L12 6",
559
+ stroke: "currentColor",
560
+ strokeWidth: "1.7",
561
+ strokeLinecap: "round",
562
+ strokeLinejoin: "round"
563
+ })
317
564
  })
318
565
  })
319
- })] }), S = [
566
+ ] }), F = [
320
567
  "tp-header",
321
- `tp-header--${n}`,
322
- u ? "tp-header--translucent" : "",
323
- d
568
+ `tp-header--${T}`,
569
+ p && !E ? "tp-header--translucent" : "",
570
+ O ? "tp-header--with-tabs" : "",
571
+ x
324
572
  ].filter(Boolean).join(" ");
325
- return /* @__PURE__ */ h("header", {
326
- className: S,
327
- "data-variant": n,
328
- style: f,
573
+ return /* @__PURE__ */ g("header", {
574
+ className: F,
575
+ "data-variant": T,
576
+ "data-os": w,
577
+ style: S,
329
578
  children: [
330
- /* @__PURE__ */ m("div", {
331
- className: "tp-header-left",
332
- children: _ ? g ? /* @__PURE__ */ m("div", {
333
- className: "tp-header-well",
334
- children: b
335
- }) : b : null
579
+ /* @__PURE__ */ g("div", {
580
+ className: "tp-header-bar",
581
+ children: [
582
+ /* @__PURE__ */ h("div", {
583
+ className: "tp-header-left",
584
+ children: k ? E ? /* @__PURE__ */ h(A, { children: N }) : N : null
585
+ }),
586
+ /* @__PURE__ */ g("div", {
587
+ className: "tp-header-center",
588
+ children: [!D && (t != null || u || _) ? d || u ? /* @__PURE__ */ h("button", {
589
+ type: "button",
590
+ className: "tp-header-title-btn",
591
+ onClick: d,
592
+ children: P
593
+ }) : /* @__PURE__ */ h("div", {
594
+ className: "tp-header-title-wrap",
595
+ children: P
596
+ }) : null, !D && n != null && /* @__PURE__ */ h("div", {
597
+ className: "tp-header-subtitle",
598
+ children: n
599
+ })]
600
+ }),
601
+ /* @__PURE__ */ h("div", {
602
+ className: "tp-header-right",
603
+ children: M ? /* @__PURE__ */ g("div", {
604
+ className: "tp-header-right-slot",
605
+ children: [E ? /* @__PURE__ */ h(A, { children: s }) : s, j && /* @__PURE__ */ h("span", {
606
+ className: "tp-header-badge",
607
+ children: f
608
+ })]
609
+ }) : null
610
+ })
611
+ ]
336
612
  }),
337
- /* @__PURE__ */ h("div", {
338
- className: "tp-header-center",
339
- children: [e != null || s ? c || s ? /* @__PURE__ */ m("button", {
340
- type: "button",
341
- className: "tp-header-title-btn",
342
- onClick: c,
343
- children: x
344
- }) : /* @__PURE__ */ m("div", {
345
- className: "tp-header-title-wrap",
346
- children: x
347
- }) : null, t != null && /* @__PURE__ */ m("div", {
348
- className: "tp-header-subtitle",
349
- children: t
613
+ D && (t !== void 0 || n !== void 0) && /* @__PURE__ */ g("div", {
614
+ className: "tp-header-large-row",
615
+ children: [/* @__PURE__ */ g("div", {
616
+ className: "tp-header-large-title-wrap",
617
+ children: [/* @__PURE__ */ h("h1", {
618
+ className: "tp-header-large-title",
619
+ children: t
620
+ }), _ && /* @__PURE__ */ h("span", {
621
+ className: "tp-header-loading",
622
+ "aria-label": "Loading",
623
+ role: "status"
624
+ })]
625
+ }), n != null && /* @__PURE__ */ h("div", {
626
+ className: "tp-header-large-subtitle",
627
+ children: n
350
628
  })]
351
629
  }),
352
- /* @__PURE__ */ m("div", {
353
- className: "tp-header-right",
354
- children: y ? /* @__PURE__ */ h("div", {
355
- 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", {
360
- className: "tp-header-badge",
361
- children: l
362
- })]
363
- }) : null
630
+ O && v && /* @__PURE__ */ h("div", {
631
+ className: "tp-header-tabs",
632
+ role: "tablist",
633
+ children: v.map((e) => {
634
+ let t = e.key === y;
635
+ return /* @__PURE__ */ g("button", {
636
+ type: "button",
637
+ role: "tab",
638
+ "aria-selected": t,
639
+ className: `tp-header-tab ${t ? "tp-header-tab--active" : ""}`.trim(),
640
+ onClick: () => b?.(e.key),
641
+ children: [/* @__PURE__ */ h("span", { children: e.label }), e.badge !== void 0 && e.badge !== null && e.badge !== "" && /* @__PURE__ */ h("span", {
642
+ className: "tp-header-tab-badge",
643
+ children: e.badge
644
+ })]
645
+ }, e.key);
646
+ })
364
647
  })
365
648
  ]
366
649
  });
367
650
  };
368
651
  // src/core/components/TPTabBar.tsx
369
- function S(e, t) {
370
- let i = t && e.activeIcon !== void 0 ? e.activeIcon : e.icon;
371
- return typeof i == "string" ? n(i) ? /* @__PURE__ */ m(r, {
372
- name: i,
373
- size: 22
374
- }) : /* @__PURE__ */ m("span", {
652
+ function M(e, r, i) {
653
+ let a = r && e.activeIcon !== void 0 ? e.activeIcon : e.icon;
654
+ return typeof a == "string" ? t(a) ? /* @__PURE__ */ h(n, {
655
+ name: a,
656
+ size: i
657
+ }) : /* @__PURE__ */ h("span", {
375
658
  className: "tp-tabbar-icon-fallback",
376
659
  "aria-hidden": "true",
377
- children: i
378
- }) : i;
660
+ children: a
661
+ }) : a;
379
662
  }
380
- function C(e) {
381
- return e == null || e === !1 ? null : e === !0 ? /* @__PURE__ */ m("span", {
663
+ function N(e) {
664
+ return e == null || e === !1 ? null : e === !0 ? /* @__PURE__ */ h("span", {
382
665
  className: "tp-tabbar-badge tp-tabbar-badge--dot",
383
666
  "aria-label": "Notification"
384
- }) : typeof e == "number" ? e <= 0 ? null : /* @__PURE__ */ m("span", {
667
+ }) : typeof e == "number" ? e <= 0 ? null : /* @__PURE__ */ h("span", {
385
668
  className: "tp-tabbar-badge",
386
669
  children: e > 99 ? "99+" : String(e)
387
- }) : e === "" ? null : /* @__PURE__ */ m("span", {
670
+ }) : e === "" ? null : /* @__PURE__ */ h("span", {
388
671
  className: "tp-tabbar-badge",
389
672
  children: e
390
673
  });
391
674
  }
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 = [
675
+ var P = ({ items: t, activeKey: n, onChange: r, variant: i = "floating-pill", os: a, adaptiveOS: o = !0, iconSize: s, extraAction: c, fab: l, className: u = "", style: d }) => {
676
+ let { os: p } = e(), m = a ?? p, _ = o && m === "android" && i === "floating-pill" ? "docked" : i, v = s ?? (_ === "docked" ? 26 : 22), y = f(null), b = c ?? l, x = b != null && _ === "floating-pill", S = _ === "docked" && l != null, C = t.findIndex((e) => e.key === n), w = [
394
677
  "tp-tabbar",
395
- `tp-tabbar--${r}`,
396
- s ? "tp-tabbar--has-extra" : "",
397
- a
398
- ].filter(Boolean).join(" ");
399
- return /* @__PURE__ */ h("nav", {
400
- className: c,
401
- "data-variant": r,
678
+ `tp-tabbar--${_}`,
679
+ x ? "tp-tabbar--has-extra" : "",
680
+ u
681
+ ].filter(Boolean).join(" "), T = _ === "floating-pill" && C >= 0 && t.length > 0 ? {
682
+ width: `calc((100% - 8px - ${(t.length - 1) * 4}px) / ${t.length})`,
683
+ transform: `translateX(calc(${C} * (100% + 4px)))`
684
+ } : void 0;
685
+ return /* @__PURE__ */ g("nav", {
686
+ className: w,
687
+ "data-variant": _,
688
+ "data-os": m,
402
689
  "aria-label": "Bottom Navigation",
403
- style: o,
404
- children: [/* @__PURE__ */ m("div", {
405
- className: "tp-tabbar-track",
406
- 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);
690
+ style: d,
691
+ children: [
692
+ /* @__PURE__ */ g("div", {
693
+ ref: y,
694
+ className: "tp-tabbar-track",
695
+ role: "tablist",
696
+ children: [
697
+ _ === "floating-pill" && /* @__PURE__ */ h(k, {
698
+ hostRef: y,
699
+ shape: "pill",
700
+ tint: "clear",
701
+ bezelWidth: 16,
702
+ refraction: 1.35,
703
+ dispersion: 1.15,
704
+ blur: 2.2
705
+ }),
706
+ T && /* @__PURE__ */ h("span", {
707
+ className: "tp-tabbar-active-lens",
708
+ "aria-hidden": "true",
709
+ "data-active-index": C,
710
+ style: T
711
+ }),
712
+ t.map((e) => {
713
+ let t = e.key === n;
714
+ return /* @__PURE__ */ g("button", {
715
+ type: "button",
716
+ role: "tab",
717
+ "aria-selected": t,
718
+ className: `tp-tabbar-item ${t ? "tp-tabbar-item--active" : ""}`.trim(),
719
+ onClick: () => r(e.key),
720
+ children: [/* @__PURE__ */ g("span", {
721
+ className: "tp-tabbar-icon-wrap",
722
+ children: [/* @__PURE__ */ h("span", {
723
+ className: "tp-tabbar-icon",
724
+ children: M(e, t, v)
725
+ }), N(e.badge)]
726
+ }), /* @__PURE__ */ h("span", {
727
+ className: "tp-tabbar-label",
728
+ children: e.label
729
+ })]
730
+ }, e.key);
731
+ })
732
+ ]
733
+ }),
734
+ x && /* @__PURE__ */ h("div", {
735
+ className: "tp-tabbar-extra",
736
+ children: b
737
+ }),
738
+ S && /* @__PURE__ */ h("div", {
739
+ className: "tp-tabbar-android-fab",
740
+ children: l
426
741
  })
427
- }), s && /* @__PURE__ */ m("div", {
428
- className: "tp-tabbar-extra",
429
- children: i
430
- })]
742
+ ]
431
743
  });
432
- }, T = ({ options: e, value: t, onChange: n, variant: r = "underline", fullWidth: i = !0, className: a = "", style: o }) => {
744
+ }, F = ({ options: e, value: t, onChange: n, variant: r = "underline", fullWidth: i = !0, className: a = "", style: o }) => {
433
745
  let s = [
434
746
  "tp-segment",
435
747
  `tp-segment--${r}`,
436
748
  i ? "tp-segment--full" : "",
437
749
  a
438
750
  ].filter(Boolean).join(" ");
439
- return /* @__PURE__ */ m("div", {
751
+ return /* @__PURE__ */ h("div", {
440
752
  className: s,
441
753
  role: "tablist",
442
754
  "data-variant": r,
@@ -447,7 +759,7 @@ var w = ({ items: e, activeKey: t, onChange: n, variant: r = "floating-pill", ex
447
759
  r ? "tp-segment-item--active" : "",
448
760
  e.disabled ? "tp-segment-item--disabled" : ""
449
761
  ].filter(Boolean).join(" ");
450
- return /* @__PURE__ */ h("button", {
762
+ return /* @__PURE__ */ g("button", {
451
763
  type: "button",
452
764
  role: "tab",
453
765
  "aria-selected": r,
@@ -456,104 +768,134 @@ var w = ({ items: e, activeKey: t, onChange: n, variant: r = "floating-pill", ex
456
768
  onClick: () => {
457
769
  e.disabled || n(e.key);
458
770
  },
459
- children: [/* @__PURE__ */ m("span", {
771
+ children: [/* @__PURE__ */ h("span", {
460
772
  className: "tp-segment-label",
461
773
  children: e.label
462
- }), e.badge !== void 0 && e.badge !== null && e.badge !== "" && /* @__PURE__ */ m("span", {
774
+ }), e.badge !== void 0 && e.badge !== null && e.badge !== "" && /* @__PURE__ */ h("span", {
463
775
  className: "tp-segment-badge",
464
776
  children: e.badge
465
777
  })]
466
778
  }, e.key);
467
779
  })
468
780
  });
469
- }, E = ({ total: e, current: t, onChange: n, className: r = "", style: i }) => {
781
+ }, I = ({ total: e, current: t, variant: n = "dots", onChange: r, className: i = "", style: a }) => {
470
782
  if (e <= 0) return null;
471
- let a = ["tp-page-control", r].filter(Boolean).join(" ");
472
- return /* @__PURE__ */ m("div", {
473
- className: a,
783
+ let o = [
784
+ "tp-page-control",
785
+ `tp-page-control--${n}`,
786
+ i
787
+ ].filter(Boolean).join(" ");
788
+ return /* @__PURE__ */ h("div", {
789
+ className: o,
474
790
  role: "navigation",
475
791
  "aria-label": "Page indicator",
476
- style: i,
477
- children: Array.from({ length: e }, (e, r) => {
478
- let i = r === t, a = ["tp-page-control-dot", i ? "tp-page-control-dot--active" : ""].filter(Boolean).join(" ");
479
- return n ? /* @__PURE__ */ m("button", {
792
+ "data-variant": n,
793
+ style: a,
794
+ children: Array.from({ length: e }, (e, i) => {
795
+ let a = n === "process" ? i <= t : i === t, o = i === t, s = [
796
+ n === "process" ? "tp-page-control-bar" : "tp-page-control-dot",
797
+ a ? n === "process" ? "tp-page-control-bar--active" : "tp-page-control-dot--active" : "",
798
+ o && n === "process" ? "tp-page-control-bar--current" : ""
799
+ ].filter(Boolean).join(" ");
800
+ return r ? /* @__PURE__ */ h("button", {
480
801
  type: "button",
481
- className: a,
482
- "aria-label": `Page ${r + 1}`,
483
- "aria-current": i ? "page" : void 0,
484
- "data-active": String(i),
485
- onClick: () => n(r)
486
- }, r) : /* @__PURE__ */ m("span", {
487
- className: a,
488
- "data-active": String(i),
489
- "aria-current": i ? "page" : void 0
490
- }, r);
802
+ className: s,
803
+ "aria-label": `Page ${i + 1}`,
804
+ "aria-current": o ? "page" : void 0,
805
+ "data-active": String(a),
806
+ onClick: () => r(i)
807
+ }, i) : /* @__PURE__ */ h("span", {
808
+ className: s,
809
+ "data-active": String(a),
810
+ "aria-current": o ? "page" : void 0
811
+ }, i);
491
812
  })
492
813
  });
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 }) => {
494
- let u = [
814
+ }, L = ({ variant: e = "primary", size: t = "lg", block: n = !1, loading: r = !1, progress: i, htmlType: a = "button", icon: o, disabled: s = !1, className: c = "", children: l, ...u }) => {
815
+ let d = typeof i == "number" && !Number.isNaN(i) ? Math.max(0, Math.min(100, i)) : void 0, f = [
495
816
  "tp-btn",
496
817
  `tp-btn--${e}`,
497
818
  `tp-btn--${t}`,
498
819
  n ? "tp-btn--block" : "",
499
820
  r ? "tp-btn--loading" : "",
500
- s
821
+ d === void 0 ? "" : "tp-btn--has-progress",
822
+ c
501
823
  ].filter(Boolean).join(" ");
502
- return /* @__PURE__ */ h("button", {
503
- ...l,
504
- type: i,
505
- className: u,
506
- disabled: o || r,
824
+ return /* @__PURE__ */ g("button", {
825
+ ...u,
826
+ type: a,
827
+ className: f,
828
+ disabled: s || r,
507
829
  "aria-busy": r || void 0,
508
830
  "data-variant": e,
509
831
  "data-size": t,
510
- children: [r ? /* @__PURE__ */ m("span", {
511
- className: "tp-btn-spinner",
512
- "aria-hidden": "true"
513
- }) : a == null ? null : /* @__PURE__ */ m("span", {
514
- className: "tp-btn-icon",
515
- "aria-hidden": "true",
516
- children: a
517
- }), c != null && /* @__PURE__ */ m("span", {
518
- className: "tp-btn-label",
519
- children: c
520
- })]
832
+ "data-progress": d === void 0 ? void 0 : String(d),
833
+ children: [
834
+ d !== void 0 && /* @__PURE__ */ h("span", {
835
+ className: "tp-btn-progress",
836
+ "aria-hidden": "true",
837
+ style: { width: `${d}%` }
838
+ }),
839
+ r ? /* @__PURE__ */ h("span", {
840
+ className: "tp-btn-spinner",
841
+ "aria-hidden": "true"
842
+ }) : o == null ? null : /* @__PURE__ */ h("span", {
843
+ className: "tp-btn-icon",
844
+ "aria-hidden": "true",
845
+ children: o
846
+ }),
847
+ l != null && /* @__PURE__ */ h("span", {
848
+ className: "tp-btn-label",
849
+ children: l
850
+ })
851
+ ]
521
852
  });
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 }) => {
523
- let d = [
853
+ }, R = ({ layout: e = "single", primaryText: t, primaryVariant: n = "primary", onPrimaryClick: r, primaryLoading: i = !1, primaryDisabled: a = !1, secondaryText: o, onSecondaryClick: s, secondaryVariant: c = "secondary", tertiaryText: l, onTertiaryClick: u, tertiaryVariant: d = "text", tertiaryDisabled: f = !1, note: p, className: _ = "", style: v }) => {
854
+ let y = [
524
855
  "tp-fixed-btn-bar",
525
856
  `tp-fixed-btn-bar--${e}`,
526
- l
527
- ].filter(Boolean).join(" "), f = /* @__PURE__ */ m(D, {
528
- variant: "primary",
857
+ _
858
+ ].filter(Boolean).join(" "), b = /* @__PURE__ */ h(L, {
859
+ variant: n,
529
860
  size: "lg",
530
861
  block: !0,
531
- loading: r,
532
- disabled: i,
533
- onClick: n,
862
+ loading: i,
863
+ disabled: a,
864
+ onClick: r,
534
865
  children: t
535
- }), g = a ? /* @__PURE__ */ m(D, {
536
- variant: s,
866
+ }), x = o ? /* @__PURE__ */ h(L, {
867
+ variant: c,
537
868
  size: "lg",
538
869
  block: !0,
539
- onClick: o,
540
- children: a
870
+ onClick: s,
871
+ children: o
541
872
  }) : null;
542
- return /* @__PURE__ */ h("div", {
543
- className: d,
873
+ return /* @__PURE__ */ g("div", {
874
+ className: y,
544
875
  "data-layout": e,
545
- style: u,
546
- children: [c != null && /* @__PURE__ */ m("div", {
876
+ style: v,
877
+ children: [p != null && /* @__PURE__ */ h("div", {
547
878
  className: "tp-fixed-btn-bar-note",
548
- children: c
549
- }), /* @__PURE__ */ m("div", {
879
+ children: p
880
+ }), /* @__PURE__ */ h("div", {
550
881
  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] })
882
+ children: e === "dual-horizontal" ? /* @__PURE__ */ g(m, { children: [x, b] }) : e === "triple" ? /* @__PURE__ */ g(m, { children: [
883
+ b,
884
+ x,
885
+ l ? /* @__PURE__ */ h(L, {
886
+ variant: d,
887
+ size: "lg",
888
+ block: !0,
889
+ disabled: f,
890
+ onClick: u,
891
+ children: l
892
+ }) : null
893
+ ] }) : /* @__PURE__ */ g(m, { children: [b, e === "dual-vertical" ? x : null] })
552
894
  })]
553
895
  });
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;
896
+ }, z = ({ checked: e, defaultChecked: t = !1, onChange: n, disabled: r = !1, loading: i = !1, ariaLabel: a, className: o = "", style: s }) => {
897
+ let [c, l] = p(t), u = e !== void 0, d = u ? e : c, f = r || i, m = () => {
898
+ if (f) return;
557
899
  let e = !d;
558
900
  u || l(e), n?.(e);
559
901
  }, g = [
@@ -563,144 +905,144 @@ var w = ({ items: e, activeKey: t, onChange: n, variant: r = "floating-pill", ex
563
905
  i ? "tp-switch--loading" : "",
564
906
  o
565
907
  ].filter(Boolean).join(" ");
566
- return /* @__PURE__ */ m("button", {
908
+ return /* @__PURE__ */ h("button", {
567
909
  type: "button",
568
910
  role: "switch",
569
911
  "aria-checked": d,
570
912
  "aria-label": a,
571
913
  "aria-busy": i || void 0,
572
- disabled: p,
914
+ disabled: f,
573
915
  className: g,
574
916
  style: s,
575
- onClick: h,
576
- children: /* @__PURE__ */ m("span", {
917
+ onClick: m,
918
+ children: /* @__PURE__ */ h("span", {
577
919
  className: "tp-switch-thumb",
578
920
  "aria-hidden": "true",
579
- children: i && /* @__PURE__ */ m("span", { className: "tp-switch-spinner" })
921
+ children: i && /* @__PURE__ */ h("span", { className: "tp-switch-spinner" })
580
922
  })
581
923
  });
582
924
  };
583
925
  // src/core/components/TPSlider.tsx
584
- function A(e, t, n) {
926
+ function B(e, t, n) {
585
927
  return Number.isNaN(e) ? t : Math.min(n, Math.max(t, e));
586
928
  }
587
- function j(e, t, n) {
588
- return n <= t ? 0 : (A(e, t, n) - t) / (n - t) * 100;
929
+ function V(e, t, n) {
930
+ return n <= t ? 0 : (B(e, t, n) - t) / (n - t) * 100;
589
931
  }
590
- function M(e, t, n) {
591
- let r = A(e?.[0] ?? t, t, n), i = A(e?.[1] ?? n, t, n);
932
+ function H(e, t, n) {
933
+ let r = B(e?.[0] ?? t, t, n), i = B(e?.[1] ?? n, t, n);
592
934
  return r <= i ? [r, i] : [i, r];
593
935
  }
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);
936
+ 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 }) => {
937
+ let w = e !== void 0, [T, E] = p(() => B(t ?? n, n, r)), D = B(w ? e : T, n, r), O = f(D);
596
938
  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);
939
+ 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);
940
+ N.current = M;
941
+ let P = V(D, n, r), F = V(M[0], n, r), I = V(M[1], n, r), L = (e, t = !1) => {
942
+ let i = B(e, n, r);
601
943
  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);
944
+ }, R = (e, t = !1) => {
945
+ let i = H(e, n, r);
946
+ N.current = i, k || j(i), _?.(i), t && v?.(i);
947
+ }, z = (e) => {
948
+ c || L(Number(e.target.value), !1);
607
949
  }, U = () => {
608
- c || (l ? v?.(I.current) : b?.(O.current));
950
+ c || (l ? v?.(N.current) : b?.(O.current));
609
951
  }, W = !!a?.some((e) => e.label !== void 0), G = [
610
952
  "tp-slider",
611
953
  l ? "tp-slider--range" : "",
612
954
  c ? "tp-slider--disabled" : "",
613
955
  S
614
956
  ].filter(Boolean).join(" ");
615
- return /* @__PURE__ */ h("div", {
957
+ return /* @__PURE__ */ g("div", {
616
958
  className: G,
617
959
  style: C,
618
960
  children: [
619
- o && /* @__PURE__ */ m("div", {
961
+ o && /* @__PURE__ */ h("div", {
620
962
  className: "tp-slider-header",
621
- children: /* @__PURE__ */ m("span", {
963
+ children: /* @__PURE__ */ h("span", {
622
964
  className: "tp-slider-value",
623
- children: l ? `${F[0]}${s} – ${F[1]}${s}` : `${D}${s}`
965
+ children: l ? `${M[0]}${s} – ${M[1]}${s}` : `${D}${s}`
624
966
  })
625
967
  }),
626
- /* @__PURE__ */ h("div", {
968
+ /* @__PURE__ */ g("div", {
627
969
  className: "tp-slider-control",
628
- children: [/* @__PURE__ */ h("div", {
970
+ children: [/* @__PURE__ */ g("div", {
629
971
  className: "tp-slider-track",
630
972
  "aria-hidden": "true",
631
- children: [/* @__PURE__ */ m("div", {
973
+ children: [/* @__PURE__ */ h("div", {
632
974
  className: "tp-slider-fill",
633
975
  style: l ? {
634
- left: `${R}%`,
635
- width: `${Math.max(0, z - R)}%`
976
+ left: `${F}%`,
977
+ width: `${Math.max(0, I - F)}%`
636
978
  } : {
637
979
  left: 0,
638
- width: `${L}%`
980
+ width: `${P}%`
639
981
  }
640
- }), a && a.length > 0 && /* @__PURE__ */ m("div", {
982
+ }), a && a.length > 0 && /* @__PURE__ */ h("div", {
641
983
  className: "tp-slider-ticks",
642
984
  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", {
985
+ let t = V(e.value, n, r), i = l ? e.value >= M[0] && e.value <= M[1] : e.value <= D;
986
+ return /* @__PURE__ */ h("span", {
645
987
  className: `tp-slider-tick ${i ? "tp-slider-tick--active" : ""}`.trim(),
646
988
  style: { left: `${t}%` }
647
989
  }, e.value);
648
990
  })
649
991
  })]
650
- }), l ? /* @__PURE__ */ h(p, { children: [
651
- /* @__PURE__ */ m("div", {
992
+ }), l ? /* @__PURE__ */ g(m, { children: [
993
+ /* @__PURE__ */ h("div", {
652
994
  className: "tp-slider-thumb",
653
- style: { left: `${R}%` },
995
+ style: { left: `${F}%` },
654
996
  "aria-hidden": "true"
655
997
  }),
656
- /* @__PURE__ */ m("div", {
998
+ /* @__PURE__ */ h("div", {
657
999
  className: "tp-slider-thumb tp-slider-thumb--secondary",
658
- style: { left: `${z}%` },
1000
+ style: { left: `${I}%` },
659
1001
  "aria-hidden": "true"
660
1002
  }),
661
- /* @__PURE__ */ m("input", {
1003
+ /* @__PURE__ */ h("input", {
662
1004
  type: "range",
663
1005
  className: "tp-slider-input tp-slider-input--range",
664
1006
  min: n,
665
1007
  max: r,
666
1008
  step: i,
667
- value: F[0],
1009
+ value: M[0],
668
1010
  disabled: c,
669
1011
  "aria-label": x ? `${x} minimum` : "Minimum value",
670
1012
  onChange: (e) => {
671
1013
  if (c) return;
672
- let t = Math.min(Number(e.target.value), F[1]);
673
- V([t, F[1]], !1);
1014
+ let t = Math.min(Number(e.target.value), M[1]);
1015
+ R([t, M[1]], !1);
674
1016
  },
675
1017
  onPointerUp: U,
676
1018
  onMouseUp: U,
677
1019
  onTouchEnd: U,
678
1020
  onKeyUp: U
679
1021
  }),
680
- /* @__PURE__ */ m("input", {
1022
+ /* @__PURE__ */ h("input", {
681
1023
  type: "range",
682
1024
  className: "tp-slider-input tp-slider-input--range tp-slider-input--secondary",
683
1025
  min: n,
684
1026
  max: r,
685
1027
  step: i,
686
- value: F[1],
1028
+ value: M[1],
687
1029
  disabled: c,
688
1030
  "aria-label": x ? `${x} maximum` : "Maximum value",
689
1031
  onChange: (e) => {
690
1032
  if (c) return;
691
- let t = Math.max(Number(e.target.value), F[0]);
692
- V([F[0], t], !1);
1033
+ let t = Math.max(Number(e.target.value), M[0]);
1034
+ R([M[0], t], !1);
693
1035
  },
694
1036
  onPointerUp: U,
695
1037
  onMouseUp: U,
696
1038
  onTouchEnd: U,
697
1039
  onKeyUp: U
698
1040
  })
699
- ] }) : /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
1041
+ ] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
700
1042
  className: "tp-slider-thumb",
701
- style: { left: `${L}%` },
1043
+ style: { left: `${P}%` },
702
1044
  "aria-hidden": "true"
703
- }), /* @__PURE__ */ m("input", {
1045
+ }), /* @__PURE__ */ h("input", {
704
1046
  type: "range",
705
1047
  className: "tp-slider-input",
706
1048
  min: n,
@@ -709,31 +1051,31 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
709
1051
  value: D,
710
1052
  disabled: c,
711
1053
  "aria-label": x,
712
- onChange: H,
1054
+ onChange: z,
713
1055
  onPointerUp: U,
714
1056
  onMouseUp: U,
715
1057
  onTouchEnd: U,
716
1058
  onKeyUp: U
717
1059
  })] })]
718
1060
  }),
719
- W && a && /* @__PURE__ */ m("div", {
1061
+ W && a && /* @__PURE__ */ h("div", {
720
1062
  className: "tp-slider-marks",
721
1063
  children: a.map((e) => {
722
1064
  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", {
1065
+ let t = V(e.value, n, r), i = l ? e.value === M[0] || e.value === M[1] : e.value === D;
1066
+ return /* @__PURE__ */ h("div", {
725
1067
  className: [
726
1068
  "tp-slider-mark",
727
1069
  t <= 2 ? "tp-slider-mark--start" : t >= 98 ? "tp-slider-mark--end" : "",
728
1070
  i ? "tp-slider-mark--active" : ""
729
1071
  ].filter(Boolean).join(" "),
730
1072
  style: { left: `${t}%` },
731
- children: /* @__PURE__ */ m("button", {
1073
+ children: /* @__PURE__ */ h("button", {
732
1074
  type: "button",
733
1075
  className: "tp-slider-mark-btn",
734
1076
  disabled: c,
735
1077
  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));
1078
+ 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
1079
  },
738
1080
  children: e.label
739
1081
  })
@@ -742,7 +1084,7 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
742
1084
  })
743
1085
  ]
744
1086
  });
745
- }, P = ({ title: e, extra: t, radius: n = "theme", padding: r = "none", divided: i = !1, className: a = "", style: o, children: s }) => {
1087
+ }, W = ({ title: e, extra: t, radius: n = "theme", padding: r = "none", divided: i = !1, className: a = "", style: o, children: s }) => {
746
1088
  let c = [
747
1089
  "tp-list-card",
748
1090
  `tp-list-card--radius-${n}`,
@@ -750,119 +1092,149 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
750
1092
  i ? "tp-list-card--divided" : "",
751
1093
  a
752
1094
  ].filter(Boolean).join(" ");
753
- return /* @__PURE__ */ h("div", {
1095
+ return /* @__PURE__ */ g("div", {
754
1096
  className: c,
755
1097
  style: o,
756
- children: [(e !== void 0 || t !== void 0) && /* @__PURE__ */ h("div", {
1098
+ children: [(e !== void 0 || t !== void 0) && /* @__PURE__ */ g("div", {
757
1099
  className: "tp-list-card-header",
758
- children: [/* @__PURE__ */ m("div", {
1100
+ children: [/* @__PURE__ */ h("div", {
759
1101
  className: "tp-list-card-title",
760
1102
  children: e
761
- }), t !== void 0 && /* @__PURE__ */ m("div", {
1103
+ }), t !== void 0 && /* @__PURE__ */ h("div", {
762
1104
  className: "tp-list-card-extra",
763
1105
  children: t
764
1106
  })]
765
- }), /* @__PURE__ */ m("div", {
1107
+ }), /* @__PURE__ */ h("div", {
766
1108
  className: "tp-list-card-body",
767
1109
  children: s
768
1110
  })]
769
1111
  });
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;
1112
+ }, G = ({ checked: e, defaultChecked: t = !1, onChange: n, disabled: r = !1, loading: i = !1, ariaLabel: a, className: o = "", style: s, fallbackLabel: c }) => {
1113
+ let [l, u] = p(t), d = e !== void 0, f = d ? e : l, m = r || i, g = (e) => {
1114
+ if (e.stopPropagation(), m) return;
1115
+ let t = !f;
774
1116
  d || u(t), n?.(t);
775
1117
  }, _ = [
776
1118
  "tp-switch",
777
- p ? "tp-switch--checked" : "",
778
- h ? "tp-switch--disabled" : "",
1119
+ f ? "tp-switch--checked" : "",
1120
+ m ? "tp-switch--disabled" : "",
779
1121
  i ? "tp-switch--loading" : "",
780
1122
  o
781
1123
  ].filter(Boolean).join(" ");
782
- return /* @__PURE__ */ m("button", {
1124
+ return /* @__PURE__ */ h("button", {
783
1125
  type: "button",
784
1126
  role: "switch",
785
- "aria-checked": p,
1127
+ "aria-checked": f,
786
1128
  "aria-label": a ?? c ?? "Toggle",
787
- disabled: h,
1129
+ disabled: m,
788
1130
  className: _,
789
1131
  style: s,
790
1132
  onClick: g,
791
- children: /* @__PURE__ */ m("span", {
1133
+ children: /* @__PURE__ */ h("span", {
792
1134
  className: "tp-switch-thumb",
793
- children: i ? /* @__PURE__ */ m("span", {
1135
+ children: i ? /* @__PURE__ */ h("span", {
794
1136
  className: "tp-switch-spinner",
795
1137
  "aria-hidden": "true"
796
1138
  }) : null
797
1139
  })
798
1140
  });
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 }) => {
800
- let _ = !!f && !d, v = r != null || o != null || a != null || !!c || !!l || s, y = () => {
801
- !d && f && f();
802
- }, b = (e) => {
803
- _ && e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), f?.());
804
- }, x = [
1141
+ }, 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, layout: f = "default", error: p, onClick: _, className: v = "", style: y }) => {
1142
+ let b = f === "form-field", x = !!_ && !d, S = !b && r != null || o != null || a != null || !!c || !!l || s, C = () => {
1143
+ !d && _ && _();
1144
+ }, w = (e) => {
1145
+ x && e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), _?.());
1146
+ }, T = [
805
1147
  "tp-list-item",
806
- _ ? "tp-list-item--clickable" : "",
1148
+ b ? "tp-list-item--form-field" : "",
1149
+ p ? "tp-list-item--error" : "",
1150
+ x ? "tp-list-item--clickable" : "",
807
1151
  u ? "tp-list-item--danger" : "",
808
1152
  d ? "tp-list-item--disabled" : "",
809
- p
1153
+ v
810
1154
  ].filter(Boolean).join(" ");
811
- return /* @__PURE__ */ h("div", {
812
- className: x,
813
- style: g,
814
- role: f ? "button" : void 0,
815
- tabIndex: _ ? 0 : void 0,
1155
+ return /* @__PURE__ */ g("div", {
1156
+ className: T,
1157
+ style: y,
1158
+ role: _ ? "button" : void 0,
1159
+ tabIndex: x ? 0 : void 0,
816
1160
  "aria-disabled": d || void 0,
1161
+ "data-layout": f,
817
1162
  "data-checked": c === void 0 ? void 0 : String(!!c),
818
- onClick: f ? y : void 0,
819
- onKeyDown: f ? b : void 0,
1163
+ onClick: _ ? C : void 0,
1164
+ onKeyDown: _ ? w : void 0,
820
1165
  children: [
821
- i != null && /* @__PURE__ */ m("div", {
1166
+ i != null && /* @__PURE__ */ h("div", {
822
1167
  className: "tp-list-item-leading",
823
1168
  children: i
824
1169
  }),
825
1170
  /* @__PURE__ */ h("div", {
826
1171
  className: "tp-list-item-content",
827
- children: [
828
- /* @__PURE__ */ m("div", {
1172
+ children: b ? /* @__PURE__ */ g(m, { children: [
1173
+ /* @__PURE__ */ h("div", {
1174
+ className: "tp-list-item-form-label",
1175
+ children: e
1176
+ }),
1177
+ r != null && /* @__PURE__ */ h("div", {
1178
+ className: "tp-list-item-form-value",
1179
+ children: r
1180
+ }),
1181
+ t != null && /* @__PURE__ */ h("div", {
1182
+ className: "tp-list-item-subtitle",
1183
+ children: t
1184
+ }),
1185
+ n != null && /* @__PURE__ */ h("div", {
1186
+ className: "tp-list-item-description",
1187
+ children: n
1188
+ }),
1189
+ p != null && p !== "" && /* @__PURE__ */ h("div", {
1190
+ className: "tp-list-item-error",
1191
+ role: "alert",
1192
+ children: p
1193
+ })
1194
+ ] }) : /* @__PURE__ */ g(m, { children: [
1195
+ /* @__PURE__ */ h("div", {
829
1196
  className: "tp-list-item-title",
830
1197
  children: e
831
1198
  }),
832
- t != null && /* @__PURE__ */ m("div", {
1199
+ t != null && /* @__PURE__ */ h("div", {
833
1200
  className: "tp-list-item-subtitle",
834
1201
  children: t
835
1202
  }),
836
- n != null && /* @__PURE__ */ m("div", {
1203
+ n != null && /* @__PURE__ */ h("div", {
837
1204
  className: "tp-list-item-description",
838
1205
  children: n
1206
+ }),
1207
+ p != null && p !== "" && /* @__PURE__ */ h("div", {
1208
+ className: "tp-list-item-error",
1209
+ role: "alert",
1210
+ children: p
839
1211
  })
840
- ]
1212
+ ] })
841
1213
  }),
842
- v && /* @__PURE__ */ h("div", {
1214
+ S && /* @__PURE__ */ g("div", {
843
1215
  className: "tp-list-item-trailing-group",
844
1216
  children: [
845
- r != null && /* @__PURE__ */ m("div", {
1217
+ !b && r != null && /* @__PURE__ */ h("div", {
846
1218
  className: "tp-list-item-value",
847
1219
  children: r
848
1220
  }),
849
- o != null && /* @__PURE__ */ m("span", {
1221
+ o != null && /* @__PURE__ */ h("span", {
850
1222
  className: "tp-list-item-badge",
851
1223
  children: o
852
1224
  }),
853
- a != null && /* @__PURE__ */ m("div", {
1225
+ a != null && /* @__PURE__ */ h("div", {
854
1226
  className: "tp-list-item-trailing",
855
1227
  children: a
856
1228
  }),
857
- c && /* @__PURE__ */ m("span", {
1229
+ c && /* @__PURE__ */ h("span", {
858
1230
  className: "tp-list-item-check",
859
1231
  "aria-hidden": "true",
860
- children: /* @__PURE__ */ m("svg", {
1232
+ children: /* @__PURE__ */ h("svg", {
861
1233
  width: "18",
862
1234
  height: "18",
863
1235
  viewBox: "0 0 18 18",
864
1236
  fill: "none",
865
- children: /* @__PURE__ */ m("path", {
1237
+ children: /* @__PURE__ */ h("path", {
866
1238
  d: "M4 9.2L7.4 12.6L14 5.5",
867
1239
  stroke: "currentColor",
868
1240
  strokeWidth: "2",
@@ -871,20 +1243,20 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
871
1243
  })
872
1244
  })
873
1245
  }),
874
- l && /* @__PURE__ */ m(F, {
1246
+ l && /* @__PURE__ */ h(G, {
875
1247
  ...l,
876
1248
  disabled: d || l.disabled,
877
1249
  fallbackLabel: typeof e == "string" ? e : void 0
878
1250
  }),
879
- s && /* @__PURE__ */ m("span", {
1251
+ s && /* @__PURE__ */ h("span", {
880
1252
  className: "tp-list-item-arrow",
881
1253
  "aria-hidden": "true",
882
- children: /* @__PURE__ */ m("svg", {
1254
+ children: /* @__PURE__ */ h("svg", {
883
1255
  width: "16",
884
1256
  height: "16",
885
1257
  viewBox: "0 0 16 16",
886
1258
  fill: "none",
887
- children: /* @__PURE__ */ m("path", {
1259
+ children: /* @__PURE__ */ h("path", {
888
1260
  d: "M6 3.5L10.5 8L6 12.5",
889
1261
  stroke: "currentColor",
890
1262
  strokeWidth: "1.75",
@@ -897,7 +1269,7 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
897
1269
  })
898
1270
  ]
899
1271
  });
900
- }, L = ({ children: e, tone: t = "focus", align: n = "center", disabled: r = !1, onClick: i, className: a = "", style: o }) => {
1272
+ }, q = ({ children: e, tone: t = "focus", align: n = "center", disabled: r = !1, onClick: i, className: a = "", style: o }) => {
901
1273
  let s = [
902
1274
  "tp-list-button",
903
1275
  `tp-list-button--tone-${t}`,
@@ -905,7 +1277,7 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
905
1277
  r ? "tp-list-button--disabled" : "",
906
1278
  a
907
1279
  ].filter(Boolean).join(" ");
908
- return /* @__PURE__ */ m("button", {
1280
+ return /* @__PURE__ */ h("button", {
909
1281
  type: "button",
910
1282
  className: s,
911
1283
  style: o,
@@ -913,17 +1285,17 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
913
1285
  onClick: r ? void 0 : i,
914
1286
  children: e
915
1287
  });
916
- }, R = ({ title: e, count: t, action: n, className: r = "", style: i }) => {
1288
+ }, J = ({ title: e, count: t, action: n, className: r = "", style: i }) => {
917
1289
  let a = ["tp-section-header", r].filter(Boolean).join(" ");
918
- return /* @__PURE__ */ h("div", {
1290
+ return /* @__PURE__ */ g("div", {
919
1291
  className: a,
920
1292
  style: i,
921
- children: [/* @__PURE__ */ h("div", {
1293
+ children: [/* @__PURE__ */ g("div", {
922
1294
  className: "tp-section-header-left",
923
- children: [/* @__PURE__ */ m("span", {
1295
+ children: [/* @__PURE__ */ h("span", {
924
1296
  className: "tp-section-header-title",
925
1297
  children: e
926
- }), t != null && /* @__PURE__ */ h("span", {
1298
+ }), t != null && /* @__PURE__ */ g("span", {
927
1299
  className: "tp-section-header-count",
928
1300
  children: [
929
1301
  " (",
@@ -931,23 +1303,23 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
931
1303
  ")"
932
1304
  ]
933
1305
  })]
934
- }), n != null && /* @__PURE__ */ m("div", {
1306
+ }), n != null && /* @__PURE__ */ h("div", {
935
1307
  className: "tp-section-header-action",
936
1308
  children: n
937
1309
  })]
938
1310
  });
939
- }, z = ({ children: e, tone: t = "default", className: n = "", style: r }) => {
1311
+ }, Y = ({ children: e, tone: t = "default", className: n = "", style: r }) => {
940
1312
  let i = [
941
1313
  "tp-section-note",
942
1314
  `tp-section-note--${t}`,
943
1315
  n
944
1316
  ].filter(Boolean).join(" ");
945
- return /* @__PURE__ */ m("div", {
1317
+ return /* @__PURE__ */ h("div", {
946
1318
  className: i,
947
1319
  style: r,
948
1320
  children: e
949
1321
  });
950
- }, B = {
1322
+ }, ee = {
951
1323
  title1: "h1",
952
1324
  title2: "h2",
953
1325
  title3: "h3",
@@ -956,59 +1328,69 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
956
1328
  subhead: "span",
957
1329
  caption: "span",
958
1330
  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 = [
1331
+ }, te = ({ variant: e = "body", tone: t = "primary", as: n, weight: r, className: i = "", style: a, children: o }) => {
1332
+ let s = n ?? ee[e], c = [
961
1333
  "tp-text",
962
1334
  `tp-text--${e}`,
963
1335
  `tp-text--tone-${t}`,
964
1336
  r ? `tp-text--weight-${r}` : "",
965
1337
  i
966
1338
  ].filter(Boolean).join(" ");
967
- return /* @__PURE__ */ m(s, {
1339
+ return /* @__PURE__ */ h(s, {
968
1340
  className: c,
969
1341
  style: a,
970
1342
  children: o
971
1343
  });
972
- }, H = ({ children: e, tone: t, selected: n, size: r = "md", closable: i = !1, onClose: a, onClick: o, className: s = "", style: c }) => {
973
- let l = t ?? (n ? "focus" : "neutral"), u = n === !0 ? "tp-tag--selected" : n === !1 ? "tp-tag--unselected" : "", d = [
1344
+ }, ne = ({ children: e, tone: t, selected: n, size: r = "md", shape: i = "pill", appearance: a = "soft", closable: o = !1, onClose: s, onClick: c, className: l = "", style: u }) => {
1345
+ let d = t ?? (n ? "focus" : "neutral"), f = n === !0 ? "tp-tag--selected" : n === !1 ? "tp-tag--unselected" : "", p = [
974
1346
  "tp-tag",
975
1347
  `tp-tag--${r}`,
976
- `tp-tag--tone-${l}`,
977
- u,
978
- o ? "tp-tag--clickable" : "",
979
- s
1348
+ `tp-tag--shape-${i}`,
1349
+ `tp-tag--appearance-${a}`,
1350
+ `tp-tag--tone-${d}`,
1351
+ f,
1352
+ c ? "tp-tag--clickable" : "",
1353
+ l
980
1354
  ].filter(Boolean).join(" ");
981
- return o && !i ? /* @__PURE__ */ m("button", {
1355
+ return c && !o ? /* @__PURE__ */ h("button", {
982
1356
  type: "button",
983
- className: d,
984
- style: c,
1357
+ className: p,
1358
+ style: u,
1359
+ "data-tone": d,
1360
+ "data-shape": i,
1361
+ "data-appearance": a,
1362
+ "data-size": r,
985
1363
  "aria-pressed": n === void 0 ? void 0 : n,
986
- onClick: o,
987
- children: /* @__PURE__ */ m("span", { children: e })
988
- }) : /* @__PURE__ */ h("span", {
989
- className: d,
990
- style: c,
991
- role: o ? "button" : void 0,
992
- tabIndex: o ? 0 : void 0,
993
- "aria-pressed": o && n !== void 0 ? n : void 0,
994
- onClick: o,
995
- onKeyDown: o ? (e) => {
996
- e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), o());
1364
+ onClick: c,
1365
+ children: /* @__PURE__ */ h("span", { children: e })
1366
+ }) : /* @__PURE__ */ g("span", {
1367
+ className: p,
1368
+ style: u,
1369
+ "data-tone": d,
1370
+ "data-shape": i,
1371
+ "data-appearance": a,
1372
+ "data-size": r,
1373
+ role: c ? "button" : void 0,
1374
+ tabIndex: c ? 0 : void 0,
1375
+ "aria-pressed": c && n !== void 0 ? n : void 0,
1376
+ onClick: c,
1377
+ onKeyDown: c ? (e) => {
1378
+ e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), c());
997
1379
  } : void 0,
998
- children: [/* @__PURE__ */ m("span", { children: e }), i ? /* @__PURE__ */ m("button", {
1380
+ children: [/* @__PURE__ */ h("span", { children: e }), o ? /* @__PURE__ */ h("button", {
999
1381
  type: "button",
1000
1382
  className: "tp-tag-close",
1001
1383
  "aria-label": "Remove tag",
1002
1384
  onClick: (e) => {
1003
- e.stopPropagation(), a?.();
1385
+ e.stopPropagation(), s?.();
1004
1386
  },
1005
- children: /* @__PURE__ */ m("svg", {
1387
+ children: /* @__PURE__ */ h("svg", {
1006
1388
  width: "10",
1007
1389
  height: "10",
1008
1390
  viewBox: "0 0 10 10",
1009
1391
  fill: "none",
1010
1392
  "aria-hidden": "true",
1011
- children: /* @__PURE__ */ m("path", {
1393
+ children: /* @__PURE__ */ h("path", {
1012
1394
  d: "M2.2 2.2L7.8 7.8M7.8 2.2L2.2 7.8",
1013
1395
  stroke: "currentColor",
1014
1396
  strokeWidth: "1.5",
@@ -1017,10 +1399,10 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1017
1399
  })
1018
1400
  }) : null]
1019
1401
  });
1020
- }, U = ({ count: e, dot: t = !1, tone: n = "alert", max: r = 99, showZero: i = !1, children: a, className: o = "", style: s }) => {
1402
+ }, re = ({ count: e, dot: t = !1, tone: n = "alert", max: r = 99, showZero: i = !1, children: a, className: o = "", style: s }) => {
1021
1403
  let c = null, l = !1;
1022
1404
  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", {
1405
+ let u = l ? /* @__PURE__ */ h("span", {
1024
1406
  className: [
1025
1407
  "tp-badge",
1026
1408
  t ? "tp-badge--dot" : "",
@@ -1031,41 +1413,42 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1031
1413
  style: a ? void 0 : s,
1032
1414
  children: t ? null : c
1033
1415
  }) : null;
1034
- return a ? /* @__PURE__ */ h("span", {
1416
+ return a ? /* @__PURE__ */ g("span", {
1035
1417
  className: `tp-badge-wrapper ${o}`.trim(),
1036
1418
  style: s,
1037
1419
  children: [a, u]
1038
1420
  }) : u;
1039
- }, W = ({ illustration: e, theme: n, icon: r, title: i, description: a, actionText: o, onAction: s, compact: c = !1, className: l = "", style: u }) => {
1040
- let d = [
1421
+ }, ie = ({ illustration: e, theme: t, icon: n, title: i, description: a, actionText: o, onAction: s, compact: c = !1, size: l, className: u = "", style: d }) => {
1422
+ let f = l ? l === "compact" : c, p = [
1041
1423
  "tp-empty-state",
1042
- c ? "tp-empty-state--compact" : "",
1043
- l
1424
+ f ? "tp-empty-state--compact" : "",
1425
+ u
1044
1426
  ].filter(Boolean).join(" ");
1045
- return /* @__PURE__ */ h("div", {
1046
- className: d,
1047
- style: u,
1427
+ return /* @__PURE__ */ g("div", {
1428
+ className: p,
1429
+ "data-size": f ? "compact" : "full",
1430
+ style: d,
1048
1431
  children: [
1049
- e ? /* @__PURE__ */ m("div", {
1432
+ e ? /* @__PURE__ */ h("div", {
1050
1433
  className: "tp-empty-state-media",
1051
- children: /* @__PURE__ */ m(t, {
1434
+ children: /* @__PURE__ */ h(r, {
1052
1435
  name: e,
1053
- theme: n,
1054
- width: c ? 180 : 240
1436
+ theme: t,
1437
+ width: f ? 180 : 240
1055
1438
  })
1056
- }) : r ? /* @__PURE__ */ m("div", {
1439
+ }) : n ? /* @__PURE__ */ h("div", {
1057
1440
  className: "tp-empty-state-icon",
1058
- children: r
1441
+ children: n
1059
1442
  }) : null,
1060
- /* @__PURE__ */ m("div", {
1443
+ /* @__PURE__ */ h("div", {
1061
1444
  className: "tp-empty-state-title",
1062
1445
  children: i
1063
1446
  }),
1064
- a != null && /* @__PURE__ */ m("div", {
1447
+ a != null && /* @__PURE__ */ h("div", {
1065
1448
  className: "tp-empty-state-description",
1066
1449
  children: a
1067
1450
  }),
1068
- o && /* @__PURE__ */ m("button", {
1451
+ o && /* @__PURE__ */ h("button", {
1069
1452
  type: "button",
1070
1453
  className: "tp-empty-state-action",
1071
1454
  onClick: s,
@@ -1073,102 +1456,102 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1073
1456
  })
1074
1457
  ]
1075
1458
  });
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) => {
1078
- z || P(e), i?.(e);
1079
- }, U = () => {
1080
- 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 = [
1459
+ }, ae = ({ variant: e = "standard", label: t, value: n, defaultValue: r = "", onChange: i, clearable: a = !1, password: o = !1, multiline: s = !1, rows: c = 3, showCount: u = !1, error: d, helperText: m, prefix: _, suffix: v, containerClassName: y = "", className: b = "", style: x, id: S, type: C = "text", disabled: w = !1, readOnly: T = !1, onFocus: E, onBlur: D, ...O }) => {
1460
+ let k = l(), A = S ?? `tp-input-${k}`, j = `${A}-message`, M = f(null), N = f(null), [P, F] = p(r), [I, L] = p(!1), [R, z] = p(!1), B = n !== void 0, V = B ? n : P, H = !!(d || m), U = (e) => {
1461
+ B || F(e), i?.(e);
1462
+ }, W = () => {
1463
+ U(""), s ? N.current?.focus() : M.current?.focus();
1464
+ }, G = a && V.length > 0 && !w && !T, K = o && !s, q = o ? R ? "text" : "password" : C, J = [
1082
1465
  "tp-input-field",
1083
1466
  `tp-input-field--${e}`,
1084
- v
1085
- ].filter(Boolean).join(" "), q = [
1467
+ y
1468
+ ].filter(Boolean).join(" "), Y = [
1086
1469
  "tp-input-box",
1087
1470
  `tp-input-box--variant-${e}`,
1088
1471
  s ? "tp-input-box--multiline" : "",
1089
- F ? "tp-input-box--focused" : "",
1090
- u ? "tp-input-box--error" : "",
1091
- C ? "tp-input-box--disabled" : ""
1472
+ I ? "tp-input-box--focused" : "",
1473
+ d ? "tp-input-box--error" : "",
1474
+ w ? "tp-input-box--disabled" : ""
1092
1475
  ].filter(Boolean).join(" ");
1093
- return /* @__PURE__ */ h("div", {
1094
- className: K,
1476
+ return /* @__PURE__ */ g("div", {
1477
+ className: J,
1095
1478
  "data-variant": e,
1096
1479
  children: [
1097
- e !== "borderless" && t != null && /* @__PURE__ */ m("label", {
1098
- htmlFor: k,
1480
+ e !== "borderless" && t != null && /* @__PURE__ */ h("label", {
1481
+ htmlFor: A,
1099
1482
  className: "tp-input-label",
1100
1483
  children: t
1101
1484
  }),
1102
- /* @__PURE__ */ h("div", {
1103
- className: q,
1485
+ /* @__PURE__ */ g("div", {
1486
+ className: Y,
1104
1487
  children: [
1105
- g != null && /* @__PURE__ */ m("span", {
1488
+ _ != null && /* @__PURE__ */ h("span", {
1106
1489
  className: "tp-input-prefix",
1107
- children: g
1490
+ children: _
1108
1491
  }),
1109
- s ? /* @__PURE__ */ m("textarea", {
1110
- ref: M,
1111
- id: k,
1112
- name: D.name,
1492
+ s ? /* @__PURE__ */ h("textarea", {
1493
+ ref: N,
1494
+ id: A,
1495
+ name: O.name,
1113
1496
  rows: c,
1114
- placeholder: D.placeholder,
1115
- maxLength: D.maxLength,
1116
- autoFocus: D.autoFocus,
1117
- autoComplete: D.autoComplete,
1118
- required: D.required,
1119
- disabled: C,
1120
- readOnly: w,
1121
- value: B,
1122
- "aria-label": D["aria-label"],
1123
- "aria-invalid": u ? !0 : void 0,
1124
- "aria-describedby": V ? A : D["aria-describedby"],
1125
- className: `tp-input-textarea ${y}`.trim(),
1126
- style: b,
1127
- onChange: (e) => H(e.target.value),
1497
+ placeholder: O.placeholder,
1498
+ maxLength: O.maxLength,
1499
+ autoFocus: O.autoFocus,
1500
+ autoComplete: O.autoComplete,
1501
+ required: O.required,
1502
+ disabled: w,
1503
+ readOnly: T,
1504
+ value: V,
1505
+ "aria-label": O["aria-label"],
1506
+ "aria-invalid": d ? !0 : void 0,
1507
+ "aria-describedby": H ? j : O["aria-describedby"],
1508
+ className: `tp-input-textarea ${b}`.trim(),
1509
+ style: x,
1510
+ onChange: (e) => U(e.target.value),
1128
1511
  onFocus: (e) => {
1129
- I(!0), T?.(e);
1512
+ L(!0), E?.(e);
1130
1513
  },
1131
1514
  onBlur: (e) => {
1132
- I(!1), E?.(e);
1515
+ L(!1), D?.(e);
1133
1516
  }
1134
- }) : /* @__PURE__ */ m("input", {
1135
- ...D,
1136
- ref: j,
1137
- id: k,
1138
- type: ee,
1139
- disabled: C,
1140
- readOnly: w,
1141
- value: B,
1142
- "aria-invalid": u ? !0 : void 0,
1143
- "aria-describedby": V ? A : D["aria-describedby"],
1144
- className: `tp-input-control ${y}`.trim(),
1145
- style: b,
1146
- onChange: (e) => H(e.target.value),
1517
+ }) : /* @__PURE__ */ h("input", {
1518
+ ...O,
1519
+ ref: M,
1520
+ id: A,
1521
+ type: q,
1522
+ disabled: w,
1523
+ readOnly: T,
1524
+ value: V,
1525
+ "aria-invalid": d ? !0 : void 0,
1526
+ "aria-describedby": H ? j : O["aria-describedby"],
1527
+ className: `tp-input-control ${b}`.trim(),
1528
+ style: x,
1529
+ onChange: (e) => U(e.target.value),
1147
1530
  onFocus: (e) => {
1148
- I(!0), T?.(e);
1531
+ L(!0), E?.(e);
1149
1532
  },
1150
1533
  onBlur: (e) => {
1151
- I(!1), E?.(e);
1534
+ L(!1), D?.(e);
1152
1535
  }
1153
1536
  }),
1154
- W && /* @__PURE__ */ m("button", {
1537
+ G && /* @__PURE__ */ h("button", {
1155
1538
  type: "button",
1156
1539
  className: "tp-input-action-btn",
1157
1540
  "aria-label": "Clear input",
1158
- onClick: U,
1159
- children: /* @__PURE__ */ h("svg", {
1541
+ onClick: W,
1542
+ children: /* @__PURE__ */ g("svg", {
1160
1543
  width: "14",
1161
1544
  height: "14",
1162
1545
  viewBox: "0 0 14 14",
1163
1546
  fill: "none",
1164
1547
  "aria-hidden": "true",
1165
- children: [/* @__PURE__ */ m("circle", {
1548
+ children: [/* @__PURE__ */ h("circle", {
1166
1549
  cx: "7",
1167
1550
  cy: "7",
1168
1551
  r: "6",
1169
1552
  fill: "currentColor",
1170
1553
  fillOpacity: "0.2"
1171
- }), /* @__PURE__ */ m("path", {
1554
+ }), /* @__PURE__ */ h("path", {
1172
1555
  d: "M4.8 4.8L9.2 9.2M9.2 4.8L4.8 9.2",
1173
1556
  stroke: "currentColor",
1174
1557
  strokeWidth: "1.4",
@@ -1176,35 +1559,35 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1176
1559
  })]
1177
1560
  })
1178
1561
  }),
1179
- G && /* @__PURE__ */ m("button", {
1562
+ K && /* @__PURE__ */ h("button", {
1180
1563
  type: "button",
1181
1564
  className: "tp-input-action-btn",
1182
- "aria-label": L ? "Hide password" : "Show password",
1183
- onClick: () => R((e) => !e),
1184
- children: L ? /* @__PURE__ */ h("svg", {
1565
+ "aria-label": R ? "Hide password" : "Show password",
1566
+ onClick: () => z((e) => !e),
1567
+ children: R ? /* @__PURE__ */ g("svg", {
1185
1568
  width: "18",
1186
1569
  height: "18",
1187
1570
  viewBox: "0 0 20 20",
1188
1571
  fill: "none",
1189
1572
  "aria-hidden": "true",
1190
- children: [/* @__PURE__ */ m("path", {
1573
+ children: [/* @__PURE__ */ h("path", {
1191
1574
  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
1575
  stroke: "currentColor",
1193
1576
  strokeWidth: "1.5"
1194
- }), /* @__PURE__ */ m("circle", {
1577
+ }), /* @__PURE__ */ h("circle", {
1195
1578
  cx: "10",
1196
1579
  cy: "10",
1197
1580
  r: "2.5",
1198
1581
  stroke: "currentColor",
1199
1582
  strokeWidth: "1.5"
1200
1583
  })]
1201
- }) : /* @__PURE__ */ m("svg", {
1584
+ }) : /* @__PURE__ */ h("svg", {
1202
1585
  width: "18",
1203
1586
  height: "18",
1204
1587
  viewBox: "0 0 20 20",
1205
1588
  fill: "none",
1206
1589
  "aria-hidden": "true",
1207
- children: /* @__PURE__ */ m("path", {
1590
+ children: /* @__PURE__ */ h("path", {
1208
1591
  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
1592
  stroke: "currentColor",
1210
1593
  strokeWidth: "1.5",
@@ -1212,49 +1595,57 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1212
1595
  })
1213
1596
  })
1214
1597
  }),
1215
- _ != null && /* @__PURE__ */ m("span", {
1598
+ v != null && /* @__PURE__ */ h("span", {
1216
1599
  className: "tp-input-suffix",
1217
- children: _
1600
+ children: v
1218
1601
  })
1219
1602
  ]
1220
1603
  }),
1221
- u ? /* @__PURE__ */ m("div", {
1222
- id: A,
1223
- className: "tp-input-error",
1224
- role: "alert",
1225
- children: u
1226
- }) : p ? /* @__PURE__ */ m("div", {
1227
- id: A,
1228
- className: "tp-input-helper",
1229
- children: p
1604
+ d || m || u ? /* @__PURE__ */ g("div", {
1605
+ className: "tp-input-footer",
1606
+ children: [d ? /* @__PURE__ */ h("div", {
1607
+ id: j,
1608
+ className: "tp-input-error",
1609
+ role: "alert",
1610
+ children: d
1611
+ }) : m ? /* @__PURE__ */ h("div", {
1612
+ id: j,
1613
+ className: "tp-input-helper",
1614
+ children: m
1615
+ }) : /* @__PURE__ */ h("span", {}), u && /* @__PURE__ */ g("span", {
1616
+ className: "tp-input-count",
1617
+ "aria-live": "polite",
1618
+ children: [V.length, O.maxLength === void 0 ? "" : `/${O.maxLength}`]
1619
+ })]
1230
1620
  }) : null
1231
1621
  ]
1232
1622
  });
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);
1623
+ }, oe = ({ value: e, defaultValue: t = "", placeholder: n = "Search", onChange: r, onSearch: i, onCancel: a, showCancel: o = !1, autoFocus: s = !1, shape: c = "auto", className: l = "", style: u }) => {
1624
+ let d = f(null), [m, _] = p(t), v = e !== void 0, y = v ? e : m, b = (e) => {
1625
+ v || _(e), r?.(e);
1236
1626
  };
1237
- return /* @__PURE__ */ h("div", {
1238
- className: `tp-search-bar ${c}`.trim(),
1239
- style: l,
1240
- children: [/* @__PURE__ */ h("div", {
1627
+ return /* @__PURE__ */ g("div", {
1628
+ className: `tp-search-bar tp-search-bar--shape-${c} ${l}`.trim(),
1629
+ "data-shape": c,
1630
+ style: u,
1631
+ children: [/* @__PURE__ */ g("div", {
1241
1632
  className: "tp-search-field",
1242
1633
  children: [
1243
- /* @__PURE__ */ m("span", {
1634
+ /* @__PURE__ */ h("span", {
1244
1635
  className: "tp-search-icon",
1245
1636
  "aria-hidden": "true",
1246
- children: /* @__PURE__ */ h("svg", {
1637
+ children: /* @__PURE__ */ g("svg", {
1247
1638
  width: "16",
1248
1639
  height: "16",
1249
1640
  viewBox: "0 0 16 16",
1250
1641
  fill: "none",
1251
- children: [/* @__PURE__ */ m("circle", {
1642
+ children: [/* @__PURE__ */ h("circle", {
1252
1643
  cx: "7",
1253
1644
  cy: "7",
1254
1645
  r: "4.8",
1255
1646
  stroke: "currentColor",
1256
1647
  strokeWidth: "1.6"
1257
- }), /* @__PURE__ */ m("path", {
1648
+ }), /* @__PURE__ */ h("path", {
1258
1649
  d: "M10.6 10.6L14 14",
1259
1650
  stroke: "currentColor",
1260
1651
  strokeWidth: "1.6",
@@ -1262,33 +1653,33 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1262
1653
  })]
1263
1654
  })
1264
1655
  }),
1265
- /* @__PURE__ */ m("input", {
1266
- ref: u,
1656
+ /* @__PURE__ */ h("input", {
1657
+ ref: d,
1267
1658
  type: "search",
1268
1659
  className: "tp-search-input",
1269
- value: v,
1660
+ value: y,
1270
1661
  placeholder: n,
1271
1662
  "aria-label": n,
1272
1663
  autoFocus: s,
1273
- onChange: (e) => y(e.target.value),
1664
+ onChange: (e) => b(e.target.value),
1274
1665
  onKeyDown: (e) => {
1275
- e.key === "Enter" && (e.preventDefault(), i?.(v));
1666
+ e.key === "Enter" && (e.preventDefault(), i?.(y));
1276
1667
  }
1277
1668
  }),
1278
- v.length > 0 && /* @__PURE__ */ m("button", {
1669
+ y.length > 0 && /* @__PURE__ */ h("button", {
1279
1670
  type: "button",
1280
1671
  className: "tp-search-clear",
1281
1672
  "aria-label": "Clear search",
1282
1673
  onClick: () => {
1283
- y(""), u.current?.focus();
1674
+ b(""), d.current?.focus();
1284
1675
  },
1285
- children: /* @__PURE__ */ m("svg", {
1676
+ children: /* @__PURE__ */ h("svg", {
1286
1677
  width: "10",
1287
1678
  height: "10",
1288
1679
  viewBox: "0 0 10 10",
1289
1680
  fill: "none",
1290
1681
  "aria-hidden": "true",
1291
- children: /* @__PURE__ */ m("path", {
1682
+ children: /* @__PURE__ */ h("path", {
1292
1683
  d: "M2.5 2.5L7.5 7.5M7.5 2.5L2.5 7.5",
1293
1684
  stroke: "currentColor",
1294
1685
  strokeWidth: "1.5",
@@ -1297,15 +1688,15 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1297
1688
  })
1298
1689
  })
1299
1690
  ]
1300
- }), o && /* @__PURE__ */ m("button", {
1691
+ }), o && /* @__PURE__ */ h("button", {
1301
1692
  type: "button",
1302
1693
  className: "tp-search-cancel",
1303
1694
  onClick: a,
1304
1695
  children: "Cancel"
1305
1696
  })]
1306
1697
  });
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;
1698
+ }, se = ({ column: e, itemHeight: t, visibleItems: n, onChange: r }) => {
1699
+ let i = f(null), a = Math.max(0, e.options.findIndex((t) => t.value === e.value)), o = Math.floor(n / 2) * t;
1309
1700
  c(() => {
1310
1701
  let e = i.current;
1311
1702
  if (!e) return;
@@ -1319,22 +1710,22 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1319
1710
  let n = Math.min(e.options.length - 1, Math.max(0, a + t)), i = e.options[n];
1320
1711
  i && i.value !== e.value && r(e.key, i.value);
1321
1712
  };
1322
- return /* @__PURE__ */ h("div", {
1713
+ return /* @__PURE__ */ g("div", {
1323
1714
  className: "tp-wheel-column-wrap",
1324
1715
  children: [
1325
- /* @__PURE__ */ m("button", {
1716
+ /* @__PURE__ */ h("button", {
1326
1717
  type: "button",
1327
1718
  className: "tp-wheel-step tp-wheel-step--up",
1328
1719
  "aria-label": `Previous ${e.key}`,
1329
1720
  disabled: a <= 0,
1330
1721
  onClick: () => s(-1),
1331
- children: /* @__PURE__ */ m("svg", {
1722
+ children: /* @__PURE__ */ h("svg", {
1332
1723
  width: "12",
1333
1724
  height: "12",
1334
1725
  viewBox: "0 0 12 12",
1335
1726
  fill: "none",
1336
1727
  "aria-hidden": "true",
1337
- children: /* @__PURE__ */ m("path", {
1728
+ children: /* @__PURE__ */ h("path", {
1338
1729
  d: "M3 7.5L6 4.5L9 7.5",
1339
1730
  stroke: "currentColor",
1340
1731
  strokeWidth: "1.5",
@@ -1343,7 +1734,7 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1343
1734
  })
1344
1735
  })
1345
1736
  }),
1346
- /* @__PURE__ */ h("div", {
1737
+ /* @__PURE__ */ g("div", {
1347
1738
  ref: i,
1348
1739
  role: "listbox",
1349
1740
  "aria-label": e.key,
@@ -1354,13 +1745,13 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1354
1745
  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
1746
  },
1356
1747
  children: [
1357
- /* @__PURE__ */ m("div", {
1748
+ /* @__PURE__ */ h("div", {
1358
1749
  className: "tp-wheel-spacer",
1359
1750
  style: { height: o }
1360
1751
  }),
1361
1752
  e.options.map((n) => {
1362
1753
  let i = n.value === e.value;
1363
- return /* @__PURE__ */ m("button", {
1754
+ return /* @__PURE__ */ h("button", {
1364
1755
  type: "button",
1365
1756
  role: "option",
1366
1757
  "aria-selected": i,
@@ -1372,25 +1763,25 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1372
1763
  children: n.label
1373
1764
  }, n.value);
1374
1765
  }),
1375
- /* @__PURE__ */ m("div", {
1766
+ /* @__PURE__ */ h("div", {
1376
1767
  className: "tp-wheel-spacer",
1377
1768
  style: { height: o }
1378
1769
  })
1379
1770
  ]
1380
1771
  }),
1381
- /* @__PURE__ */ m("button", {
1772
+ /* @__PURE__ */ h("button", {
1382
1773
  type: "button",
1383
1774
  className: "tp-wheel-step tp-wheel-step--down",
1384
1775
  "aria-label": `Next ${e.key}`,
1385
1776
  disabled: a >= e.options.length - 1,
1386
1777
  onClick: () => s(1),
1387
- children: /* @__PURE__ */ m("svg", {
1778
+ children: /* @__PURE__ */ h("svg", {
1388
1779
  width: "12",
1389
1780
  height: "12",
1390
1781
  viewBox: "0 0 12 12",
1391
1782
  fill: "none",
1392
1783
  "aria-hidden": "true",
1393
- children: /* @__PURE__ */ m("path", {
1784
+ children: /* @__PURE__ */ h("path", {
1394
1785
  d: "M3 4.5L6 7.5L9 4.5",
1395
1786
  stroke: "currentColor",
1396
1787
  strokeWidth: "1.5",
@@ -1401,24 +1792,24 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1401
1792
  })
1402
1793
  ]
1403
1794
  });
1404
- }, q = ({ columns: e, onChange: t, itemHeight: n = 40, visibleItems: r = 5, className: i = "", style: a }) => {
1795
+ }, X = ({ columns: e, onChange: t, itemHeight: n = 40, visibleItems: r = 5, className: i = "", style: a }) => {
1405
1796
  let o = Math.floor(r / 2) * n;
1406
- return /* @__PURE__ */ h("div", {
1797
+ return /* @__PURE__ */ g("div", {
1407
1798
  className: `tp-wheel-picker ${i}`.trim(),
1408
1799
  style: {
1409
1800
  height: r * n,
1410
1801
  ...a
1411
1802
  },
1412
- children: [/* @__PURE__ */ m("div", {
1803
+ children: [/* @__PURE__ */ h("div", {
1413
1804
  className: "tp-wheel-highlight",
1414
1805
  style: {
1415
1806
  top: o,
1416
1807
  height: n
1417
1808
  },
1418
1809
  "aria-hidden": "true"
1419
- }), /* @__PURE__ */ m("div", {
1810
+ }), /* @__PURE__ */ h("div", {
1420
1811
  className: "tp-wheel-columns",
1421
- children: e.map((e) => /* @__PURE__ */ m(K, {
1812
+ children: e.map((e) => /* @__PURE__ */ h(se, {
1422
1813
  column: e,
1423
1814
  itemHeight: n,
1424
1815
  visibleItems: r,
@@ -1428,16 +1819,26 @@ var N = ({ value: e, defaultValue: t, min: n = 0, max: r = 100, step: i = 1, mar
1428
1819
  });
1429
1820
  };
1430
1821
  // src/core/components/TPDatePicker.tsx
1431
- function J(e, t) {
1822
+ function Z(e, t) {
1432
1823
  return new Date(e, t, 0).getDate();
1433
1824
  }
1434
- function Y(e, t, n) {
1825
+ function Q(e, t, n) {
1435
1826
  return Math.min(n, Math.max(t, e));
1436
1827
  }
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(() => {
1828
+ function ce(e) {
1829
+ return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
1830
+ }
1831
+ function le(e, t) {
1832
+ if (!e) return t;
1833
+ let n = e.match(/^(\d{4})-(\d{1,2})-(\d{1,2})/);
1834
+ if (!n) return t;
1835
+ let r = new Date(Number(n[1]), Number(n[2]) - 1, Number(n[3]));
1836
+ return Number.isNaN(r.getTime()) ? t : r;
1837
+ }
1838
+ var ue = ({ mode: e = "single", value: t, defaultValue: n, rangeValue: r, defaultRangeValue: i, minYear: a = 1990, maxYear: o = 2040, onChange: s, onConfirm: c, onRangeChange: l, onRangeConfirm: u, onCancel: f, title: m, className: _ = "", style: v }) => {
1839
+ let y = e === "range", [b, x] = p(() => n ?? new Date(2026, 0, 1)), [S, C] = p(() => [i?.[0] ?? "2026-01-01", i?.[1] ?? "2026-01-07"]), [w, T] = p("start"), E = r ? [r[0], r[1]] : S, D = y ? r !== void 0 : t !== void 0, O = y ? le(w === "start" ? E[0] : E[1], new Date(2026, 0, 1)) : D && t ? t : b, k = Q(O.getFullYear(), a, o), A = O.getMonth() + 1, j = Z(k, A), M = Math.min(j, O.getDate()), N = d(() => {
1439
1840
  let e = [];
1440
- for (let t = n; t <= r; t++) e.push({
1841
+ for (let t = a; t <= o; t++) e.push({
1441
1842
  value: String(t),
1442
1843
  label: String(t)
1443
1844
  });
@@ -1447,7 +1848,7 @@ var te = ({ value: e, defaultValue: t, minYear: n = 1990, maxYear: r = 2040, onC
1447
1848
  value: String(n),
1448
1849
  label: String(n).padStart(2, "0")
1449
1850
  };
1450
- }), i = Array.from({ length: b }, (e, t) => {
1851
+ }), n = Array.from({ length: j }, (e, t) => {
1451
1852
  let n = t + 1;
1452
1853
  return {
1453
1854
  value: String(n),
@@ -1458,65 +1859,114 @@ var te = ({ value: e, defaultValue: t, minYear: n = 1990, maxYear: r = 2040, onC
1458
1859
  {
1459
1860
  key: "year",
1460
1861
  options: e,
1461
- value: String(v)
1862
+ value: String(k)
1462
1863
  },
1463
1864
  {
1464
1865
  key: "month",
1465
1866
  options: t,
1466
- value: String(y)
1867
+ value: String(A)
1467
1868
  },
1468
1869
  {
1469
1870
  key: "day",
1470
- options: i,
1471
- value: String(x)
1871
+ options: n,
1872
+ value: String(M)
1472
1873
  }
1473
1874
  ];
1474
1875
  }, [
1475
- n,
1476
- r,
1477
- b,
1478
- v,
1479
- y,
1480
- x
1481
- ]), C = (e, t) => {
1482
- let a = Number(t);
1483
- if (Number.isNaN(a)) return;
1484
- 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);
1488
- }, w = s !== void 0 || o !== void 0 || a !== void 0;
1489
- return /* @__PURE__ */ h("div", {
1490
- className: `tp-date-picker ${c}`.trim(),
1491
- style: l,
1492
- children: [w && /* @__PURE__ */ h("div", {
1493
- className: "tp-date-picker-header",
1494
- children: [
1495
- o ? /* @__PURE__ */ m("button", {
1496
- type: "button",
1497
- className: "tp-date-picker-btn",
1498
- onClick: o,
1499
- children: "Cancel"
1500
- }) : /* @__PURE__ */ m("span", {}),
1501
- s !== void 0 && /* @__PURE__ */ m("div", {
1502
- className: "tp-date-picker-title",
1503
- children: s
1504
- }),
1505
- a ? /* @__PURE__ */ m("button", {
1506
- type: "button",
1507
- className: "tp-date-picker-btn tp-date-picker-btn--confirm",
1508
- onClick: () => a(new Date(v, y - 1, x)),
1509
- children: "Confirm"
1510
- }) : /* @__PURE__ */ m("span", {})
1511
- ]
1512
- }), /* @__PURE__ */ m(q, {
1513
- columns: S,
1514
- onChange: C
1515
- })]
1876
+ a,
1877
+ o,
1878
+ j,
1879
+ k,
1880
+ A,
1881
+ M
1882
+ ]), P = (e, t) => {
1883
+ let n = Number(t);
1884
+ if (Number.isNaN(n)) return;
1885
+ let i = k, c = A, u = M;
1886
+ e === "year" && (i = Q(n, a, o)), e === "month" && (c = n), e === "day" && (u = n);
1887
+ let d = Math.min(u, Z(i, c)), f = new Date(i, c - 1, d);
1888
+ if (y) {
1889
+ let e = ce(f), t = w === "start" ? [e, E[1] < e ? e : E[1]] : [E[0] > e ? e : E[0], e];
1890
+ r || C(t), l?.(t);
1891
+ } else D || x(f), s?.(f);
1892
+ }, F = m !== void 0 || f !== void 0 || c !== void 0 || u !== void 0;
1893
+ return /* @__PURE__ */ g("div", {
1894
+ className: `tp-date-picker ${_}`.trim(),
1895
+ "data-mode": e,
1896
+ style: v,
1897
+ children: [
1898
+ F && /* @__PURE__ */ g("div", {
1899
+ className: "tp-date-picker-header",
1900
+ children: [
1901
+ f ? /* @__PURE__ */ h("button", {
1902
+ type: "button",
1903
+ className: "tp-date-picker-btn",
1904
+ onClick: f,
1905
+ children: "Cancel"
1906
+ }) : /* @__PURE__ */ h("span", {}),
1907
+ m !== void 0 && /* @__PURE__ */ h("div", {
1908
+ className: "tp-date-picker-title",
1909
+ children: m
1910
+ }),
1911
+ c || u ? /* @__PURE__ */ h("button", {
1912
+ type: "button",
1913
+ className: "tp-date-picker-btn tp-date-picker-btn--confirm",
1914
+ onClick: () => {
1915
+ y ? u?.(E) : c?.(new Date(k, A - 1, M));
1916
+ },
1917
+ children: "Confirm"
1918
+ }) : /* @__PURE__ */ h("span", {})
1919
+ ]
1920
+ }),
1921
+ y && /* @__PURE__ */ g("div", {
1922
+ className: "tp-date-picker-range-tabs",
1923
+ role: "tablist",
1924
+ "aria-label": "Date range bounds",
1925
+ children: [
1926
+ /* @__PURE__ */ g("button", {
1927
+ type: "button",
1928
+ role: "tab",
1929
+ "aria-selected": w === "start",
1930
+ className: `tp-date-picker-range-tab ${w === "start" ? "tp-date-picker-range-tab--active" : ""}`.trim(),
1931
+ onClick: () => T("start"),
1932
+ children: [/* @__PURE__ */ h("span", {
1933
+ className: "tp-date-picker-range-label",
1934
+ children: "Start"
1935
+ }), /* @__PURE__ */ h("span", {
1936
+ className: "tp-date-picker-range-val",
1937
+ children: E[0]
1938
+ })]
1939
+ }),
1940
+ /* @__PURE__ */ h("span", {
1941
+ className: "tp-date-picker-range-sep",
1942
+ "aria-hidden": "true",
1943
+ children: "→"
1944
+ }),
1945
+ /* @__PURE__ */ g("button", {
1946
+ type: "button",
1947
+ role: "tab",
1948
+ "aria-selected": w === "end",
1949
+ className: `tp-date-picker-range-tab ${w === "end" ? "tp-date-picker-range-tab--active" : ""}`.trim(),
1950
+ onClick: () => T("end"),
1951
+ children: [/* @__PURE__ */ h("span", {
1952
+ className: "tp-date-picker-range-label",
1953
+ children: "End"
1954
+ }), /* @__PURE__ */ h("span", {
1955
+ className: "tp-date-picker-range-val",
1956
+ children: E[1]
1957
+ })]
1958
+ })
1959
+ ]
1960
+ }),
1961
+ /* @__PURE__ */ h(X, {
1962
+ columns: N,
1963
+ onChange: P
1964
+ })
1965
+ ]
1516
1966
  });
1517
1967
  };
1518
1968
  // src/core/components/TPTimePicker.tsx
1519
- function X(e, t) {
1969
+ function de(e, t) {
1520
1970
  let n = e.hour, r = e.period;
1521
1971
  return t ? (r ||= n >= 12 ? "PM" : "AM", n === 0 ? n = 12 : n > 12 && (n -= 12), {
1522
1972
  hour: Math.min(12, Math.max(1, n)),
@@ -1527,29 +1977,29 @@ function X(e, t) {
1527
1977
  minute: Math.min(59, Math.max(0, e.minute))
1528
1978
  };
1529
1979
  }
1530
- var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, className: i = "", style: a }) => {
1531
- let [o, s] = f(() => X({
1980
+ var fe = ({ value: e, use12Hour: t = !1, format: n, minuteStep: r = 1, onChange: i, className: a = "", style: o }) => {
1981
+ let s = n ? n === "12h" : t, [c, l] = p(() => de({
1532
1982
  hour: 9,
1533
1983
  minute: 0,
1534
1984
  period: "AM"
1535
- }, t)), c = e !== void 0, l = X(c ? e : o, t), d = Math.max(1, n), p = u(() => {
1985
+ }, s)), u = e !== void 0, f = de(u ? e : c, s), m = Math.max(1, r), g = d(() => {
1536
1986
  let e = [];
1537
- for (let t = 0; t < 60; t += d) e.push({
1987
+ for (let t = 0; t < 60; t += m) e.push({
1538
1988
  value: String(t),
1539
1989
  label: String(t).padStart(2, "0")
1540
1990
  });
1541
1991
  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) {
1545
- let r = Number(n.value), i = Math.abs(l.minute - r);
1992
+ }, [m]), _ = d(() => {
1993
+ let e = Number(g[0]?.value ?? 0), t = Math.abs(f.minute - e);
1994
+ for (let n of g) {
1995
+ let r = Number(n.value), i = Math.abs(f.minute - r);
1546
1996
  i < t && (e = r, t = i);
1547
1997
  }
1548
1998
  return e;
1549
- }, [l.minute, p]), g = u(() => {
1999
+ }, [f.minute, g]), v = d(() => {
1550
2000
  let e = [{
1551
2001
  key: "hour",
1552
- options: t ? Array.from({ length: 12 }, (e, t) => {
2002
+ options: s ? Array.from({ length: 12 }, (e, t) => {
1553
2003
  let n = t + 1;
1554
2004
  return {
1555
2005
  value: String(n),
@@ -1559,13 +2009,13 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1559
2009
  value: String(t),
1560
2010
  label: String(t).padStart(2, "0")
1561
2011
  })),
1562
- value: String(l.hour)
2012
+ value: String(f.hour)
1563
2013
  }, {
1564
2014
  key: "minute",
1565
- options: p,
1566
- value: String(h)
2015
+ options: g,
2016
+ value: String(_)
1567
2017
  }];
1568
- return t && e.push({
2018
+ return s && e.push({
1569
2019
  key: "period",
1570
2020
  options: [{
1571
2021
  value: "AM",
@@ -1574,31 +2024,32 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1574
2024
  value: "PM",
1575
2025
  label: "PM"
1576
2026
  }],
1577
- value: l.period ?? "AM"
2027
+ value: f.period ?? "AM"
1578
2028
  }), e;
1579
2029
  }, [
1580
- t,
1581
- l.hour,
1582
- l.period,
1583
- p,
1584
- h
2030
+ s,
2031
+ f.hour,
2032
+ f.period,
2033
+ g,
2034
+ _
1585
2035
  ]);
1586
- return /* @__PURE__ */ m("div", {
1587
- className: `tp-time-picker ${i}`.trim(),
1588
- style: a,
1589
- children: /* @__PURE__ */ m(q, {
1590
- columns: g,
1591
- onChange: (e, n) => {
1592
- let i = {
1593
- hour: l.hour,
1594
- minute: h,
1595
- ...t ? { period: l.period ?? "AM" } : {}
2036
+ return /* @__PURE__ */ h("div", {
2037
+ className: `tp-time-picker ${a}`.trim(),
2038
+ "data-format": s ? "12h" : "24h",
2039
+ style: o,
2040
+ children: /* @__PURE__ */ h(X, {
2041
+ columns: v,
2042
+ onChange: (e, t) => {
2043
+ let n = {
2044
+ hour: f.hour,
2045
+ minute: _,
2046
+ ...s ? { period: f.period ?? "AM" } : {}
1596
2047
  };
1597
- 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);
2048
+ e === "hour" ? n.hour = Number(t) : e === "minute" ? n.minute = Number(t) : e === "period" && (t === "AM" || t === "PM") && (n.period = t), u || l(n), i?.(n);
1598
2049
  }
1599
2050
  })
1600
2051
  });
1601
- }, Z = [
2052
+ }, pe = [
1602
2053
  {
1603
2054
  key: "sun",
1604
2055
  en: "S",
@@ -1648,26 +2099,26 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1648
2099
  enTitle: "Saturday",
1649
2100
  zhTitle: "周六"
1650
2101
  }
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) => {
2102
+ ], me = ({ value: e, defaultValue: t = [], onChange: n, disabled: r = !1, locale: i = "en", className: a = "", style: o }) => {
2103
+ let [s, c] = p(t), l = e !== void 0, u = l ? e : s, d = (e) => {
1653
2104
  if (r) return;
1654
2105
  let t = new Set(u);
1655
2106
  t.has(e) ? t.delete(e) : t.add(e);
1656
- let i = Z.map((e) => e.key).filter((e) => t.has(e));
2107
+ let i = pe.map((e) => e.key).filter((e) => t.has(e));
1657
2108
  l || c(i), n?.(i);
1658
- }, p = [
2109
+ }, f = [
1659
2110
  "tp-day-switcher",
1660
2111
  r ? "tp-day-switcher--disabled" : "",
1661
2112
  a
1662
2113
  ].filter(Boolean).join(" ");
1663
- return /* @__PURE__ */ m("div", {
1664
- className: p,
2114
+ return /* @__PURE__ */ h("div", {
2115
+ className: f,
1665
2116
  style: o,
1666
2117
  role: "group",
1667
2118
  "aria-label": "Days of week",
1668
- children: Z.map((e) => {
2119
+ children: pe.map((e) => {
1669
2120
  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", {
2121
+ return /* @__PURE__ */ h("button", {
1671
2122
  type: "button",
1672
2123
  "data-day": e.key,
1673
2124
  title: a,
@@ -1679,7 +2130,7 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1679
2130
  }, e.key);
1680
2131
  })
1681
2132
  });
1682
- }, ie = [
2133
+ }, he = [
1683
2134
  "1",
1684
2135
  "2",
1685
2136
  "3",
@@ -1689,89 +2140,89 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1689
2140
  "7",
1690
2141
  "8",
1691
2142
  "9"
1692
- ], ae = [
2143
+ ], ge = [
1693
2144
  "A",
1694
2145
  "B",
1695
2146
  "C",
1696
2147
  "D",
1697
2148
  "E",
1698
2149
  "F"
1699
- ], oe = ({ mode: e = "numeric", onKeyPress: t, onBackspace: n, onDone: r, doneLabel: i = "Done", showDot: a = !1, showDash: o, className: s = "", style: c }) => {
2150
+ ], _e = ({ mode: e = "numeric", onKeyPress: t, onBackspace: n, onDone: r, doneLabel: i = "Done", showDot: a = !1, showDash: o, className: s = "", style: c }) => {
1700
2151
  let l = o ?? e === "mac-hex", u = a && l, d = u ? null : a ? "." : l ? "-" : null, f = [
1701
2152
  "tp-keyboard",
1702
2153
  `tp-keyboard--${e}`,
1703
2154
  s
1704
2155
  ].filter(Boolean).join(" ");
1705
- return /* @__PURE__ */ h("div", {
2156
+ return /* @__PURE__ */ g("div", {
1706
2157
  className: f,
1707
2158
  style: c,
1708
2159
  role: "group",
1709
2160
  "aria-label": "Keypad",
1710
2161
  children: [
1711
- e === "mac-hex" && /* @__PURE__ */ m("div", {
2162
+ e === "mac-hex" && /* @__PURE__ */ h("div", {
1712
2163
  className: "tp-keyboard-hex-row",
1713
- children: ae.map((e) => /* @__PURE__ */ m("button", {
2164
+ children: ge.map((e) => /* @__PURE__ */ h("button", {
1714
2165
  type: "button",
1715
2166
  className: "tp-keyboard-key tp-keyboard-key--hex",
1716
2167
  onClick: () => t?.(e),
1717
2168
  children: e
1718
2169
  }, e))
1719
2170
  }),
1720
- u && /* @__PURE__ */ h("div", {
2171
+ u && /* @__PURE__ */ g("div", {
1721
2172
  className: "tp-keyboard-aux-row",
1722
- children: [/* @__PURE__ */ m("button", {
2173
+ children: [/* @__PURE__ */ h("button", {
1723
2174
  type: "button",
1724
2175
  className: "tp-keyboard-key tp-keyboard-key--action",
1725
2176
  onClick: () => t?.("."),
1726
2177
  children: "."
1727
- }), /* @__PURE__ */ m("button", {
2178
+ }), /* @__PURE__ */ h("button", {
1728
2179
  type: "button",
1729
2180
  className: "tp-keyboard-key tp-keyboard-key--action",
1730
2181
  onClick: () => t?.("-"),
1731
2182
  children: "-"
1732
2183
  })]
1733
2184
  }),
1734
- /* @__PURE__ */ h("div", {
2185
+ /* @__PURE__ */ g("div", {
1735
2186
  className: "tp-keyboard-grid",
1736
2187
  children: [
1737
- ie.map((e) => /* @__PURE__ */ m("button", {
2188
+ he.map((e) => /* @__PURE__ */ h("button", {
1738
2189
  type: "button",
1739
2190
  className: "tp-keyboard-key",
1740
2191
  onClick: () => t?.(e),
1741
2192
  children: e
1742
2193
  }, e)),
1743
- d ? /* @__PURE__ */ m("button", {
2194
+ d ? /* @__PURE__ */ h("button", {
1744
2195
  type: "button",
1745
2196
  className: "tp-keyboard-key tp-keyboard-key--action",
1746
2197
  onClick: () => t?.(d),
1747
2198
  children: d
1748
- }) : /* @__PURE__ */ m("div", {
2199
+ }) : /* @__PURE__ */ h("div", {
1749
2200
  className: "tp-keyboard-spacer",
1750
2201
  "aria-hidden": "true"
1751
2202
  }),
1752
- /* @__PURE__ */ m("button", {
2203
+ /* @__PURE__ */ h("button", {
1753
2204
  type: "button",
1754
2205
  className: "tp-keyboard-key",
1755
2206
  onClick: () => t?.("0"),
1756
2207
  children: "0"
1757
2208
  }),
1758
- /* @__PURE__ */ m("button", {
2209
+ /* @__PURE__ */ h("button", {
1759
2210
  type: "button",
1760
2211
  className: "tp-keyboard-key tp-keyboard-key--action",
1761
2212
  "aria-label": "Backspace",
1762
2213
  onClick: n,
1763
- children: /* @__PURE__ */ h("svg", {
2214
+ children: /* @__PURE__ */ g("svg", {
1764
2215
  width: "22",
1765
2216
  height: "18",
1766
2217
  viewBox: "0 0 22 18",
1767
2218
  fill: "none",
1768
2219
  "aria-hidden": "true",
1769
- children: [/* @__PURE__ */ m("path", {
2220
+ children: [/* @__PURE__ */ h("path", {
1770
2221
  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
2222
  stroke: "currentColor",
1772
2223
  strokeWidth: "1.5",
1773
2224
  strokeLinejoin: "round"
1774
- }), /* @__PURE__ */ m("path", {
2225
+ }), /* @__PURE__ */ h("path", {
1775
2226
  d: "M11 6.3L16 11.3M16 6.3L11 11.3",
1776
2227
  stroke: "currentColor",
1777
2228
  strokeWidth: "1.5",
@@ -1781,7 +2232,7 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1781
2232
  })
1782
2233
  ]
1783
2234
  }),
1784
- /* @__PURE__ */ m("button", {
2235
+ /* @__PURE__ */ h("button", {
1785
2236
  type: "button",
1786
2237
  className: "tp-keyboard-key tp-keyboard-key--done",
1787
2238
  onClick: r,
@@ -1789,8 +2240,8 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1789
2240
  })
1790
2241
  ]
1791
2242
  });
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);
2243
+ }, ve = ({ open: t, title: n, message: r, actions: i, os: a, inputPlaceholder: o, defaultInputValue: s = "", onClose: u, children: d }) => {
2244
+ let f = e(), m = a ?? f.os, _ = l(), v = l(), [y, b] = p(s);
1794
2245
  if (c(() => {
1795
2246
  t && b(s);
1796
2247
  }, [t, s]), c(() => {
@@ -1802,39 +2253,39 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1802
2253
  }, [t, u]), !t) return null;
1803
2254
  let x = o !== void 0, S = (e) => {
1804
2255
  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", {
2256
+ }, C = m === "ios" ? i.length === 2 ? "tp-alert-actions--row" : "tp-alert-actions--col" : "";
2257
+ return /* @__PURE__ */ h("div", {
1807
2258
  className: "tp-overlay tp-alert-backdrop",
1808
- "data-tp-os": g,
2259
+ "data-tp-os": m,
1809
2260
  onClick: () => u?.(),
1810
- children: /* @__PURE__ */ h("div", {
2261
+ children: /* @__PURE__ */ g("div", {
1811
2262
  role: "alertdialog",
1812
2263
  "aria-modal": "true",
1813
2264
  "aria-labelledby": n ? _ : void 0,
1814
2265
  "aria-describedby": r ? v : void 0,
1815
- "data-os": g,
1816
- className: `tp-alert tp-alert--${g}`,
2266
+ "data-os": m,
2267
+ className: `tp-alert tp-alert--${m}`,
1817
2268
  onClick: (e) => e.stopPropagation(),
1818
- children: [/* @__PURE__ */ h("div", {
2269
+ children: [/* @__PURE__ */ g("div", {
1819
2270
  className: "tp-alert-content",
1820
2271
  children: [
1821
- n !== void 0 && /* @__PURE__ */ m("div", {
2272
+ n !== void 0 && /* @__PURE__ */ h("div", {
1822
2273
  id: _,
1823
2274
  className: "tp-alert-title",
1824
2275
  children: n
1825
2276
  }),
1826
- r !== void 0 && /* @__PURE__ */ m("div", {
2277
+ r !== void 0 && /* @__PURE__ */ h("div", {
1827
2278
  id: v,
1828
2279
  className: "tp-alert-message",
1829
2280
  children: r
1830
2281
  }),
1831
- d !== void 0 && /* @__PURE__ */ m("div", {
2282
+ d !== void 0 && /* @__PURE__ */ h("div", {
1832
2283
  className: "tp-alert-body",
1833
2284
  children: d
1834
2285
  }),
1835
- x && /* @__PURE__ */ m("div", {
2286
+ x && /* @__PURE__ */ h("div", {
1836
2287
  className: "tp-alert-input-wrap",
1837
- children: /* @__PURE__ */ m("input", {
2288
+ children: /* @__PURE__ */ h("input", {
1838
2289
  type: "text",
1839
2290
  className: "tp-alert-input",
1840
2291
  placeholder: o,
@@ -1844,11 +2295,11 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1844
2295
  })
1845
2296
  })
1846
2297
  ]
1847
- }), /* @__PURE__ */ m("div", {
1848
- className: `tp-alert-actions tp-alert-actions--${g} ${C}`.trim(),
2298
+ }), /* @__PURE__ */ h("div", {
2299
+ className: `tp-alert-actions tp-alert-actions--${m} ${C}`.trim(),
1849
2300
  children: i.map((e, t) => {
1850
2301
  let n = e.role ?? "default";
1851
- return /* @__PURE__ */ m("button", {
2302
+ return /* @__PURE__ */ h("button", {
1852
2303
  type: "button",
1853
2304
  "data-role": n,
1854
2305
  className: `tp-alert-action tp-alert-action--${n}`,
@@ -1859,20 +2310,20 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1859
2310
  })]
1860
2311
  })
1861
2312
  });
1862
- }, ce = () => /* @__PURE__ */ m("svg", {
2313
+ }, ye = () => /* @__PURE__ */ h("svg", {
1863
2314
  width: "18",
1864
2315
  height: "18",
1865
2316
  viewBox: "0 0 24 24",
1866
2317
  fill: "none",
1867
2318
  "aria-hidden": "true",
1868
- children: /* @__PURE__ */ m("path", {
2319
+ children: /* @__PURE__ */ h("path", {
1869
2320
  d: "M5 12.5L9.8 17L19 7.5",
1870
2321
  stroke: "currentColor",
1871
2322
  strokeWidth: "2.2",
1872
2323
  strokeLinecap: "round",
1873
2324
  strokeLinejoin: "round"
1874
2325
  })
1875
- }), le = ({ open: t, title: n, message: r, options: i, cancelText: a = "Cancel", os: o, onSelect: s, onClose: u }) => {
2326
+ }), be = ({ open: t, title: n, message: r, options: i, cancelText: a = "Cancel", os: o, onSelect: s, onClose: u }) => {
1876
2327
  let d = e(), f = o ?? d.os, p = l();
1877
2328
  if (c(() => {
1878
2329
  if (!t) return;
@@ -1881,82 +2332,82 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1881
2332
  };
1882
2333
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
1883
2334
  }, [t, u]), !t) return null;
1884
- let g = i.some((e) => e.icon !== void 0 || e.description !== void 0 || e.selected !== void 0), _ = (e) => {
2335
+ let m = i.some((e) => e.icon !== void 0 || e.description !== void 0 || e.selected !== void 0), _ = (e) => {
1885
2336
  e.disabled || (s(e), u());
1886
2337
  };
1887
- return /* @__PURE__ */ m("div", {
2338
+ return /* @__PURE__ */ h("div", {
1888
2339
  className: "tp-overlay tp-actionsheet-backdrop",
1889
2340
  "data-tp-os": f,
1890
2341
  onClick: u,
1891
- children: /* @__PURE__ */ h("div", {
2342
+ children: /* @__PURE__ */ g("div", {
1892
2343
  role: "dialog",
1893
2344
  "aria-modal": "true",
1894
2345
  "aria-labelledby": n ? p : void 0,
1895
2346
  "data-os": f,
1896
2347
  className: `tp-actionsheet tp-actionsheet--${f}`,
1897
2348
  onClick: (e) => e.stopPropagation(),
1898
- children: [/* @__PURE__ */ h("div", {
2349
+ children: [/* @__PURE__ */ g("div", {
1899
2350
  className: "tp-actionsheet-group",
1900
- children: [(n !== void 0 || r !== void 0) && /* @__PURE__ */ h("div", {
2351
+ children: [(n !== void 0 || r !== void 0) && /* @__PURE__ */ g("div", {
1901
2352
  className: "tp-actionsheet-header",
1902
- children: [n !== void 0 && /* @__PURE__ */ m("div", {
2353
+ children: [n !== void 0 && /* @__PURE__ */ h("div", {
1903
2354
  id: p,
1904
2355
  className: "tp-actionsheet-title",
1905
2356
  children: n
1906
- }), r !== void 0 && /* @__PURE__ */ m("div", {
2357
+ }), r !== void 0 && /* @__PURE__ */ h("div", {
1907
2358
  className: "tp-actionsheet-message",
1908
2359
  children: r
1909
2360
  })]
1910
- }), /* @__PURE__ */ m("div", {
2361
+ }), /* @__PURE__ */ h("div", {
1911
2362
  className: "tp-actionsheet-options",
1912
2363
  children: i.map((e) => {
1913
2364
  let t = [
1914
2365
  "tp-actionsheet-option",
1915
- g ? "tp-actionsheet-option--rich" : "",
2366
+ m ? "tp-actionsheet-option--rich" : "",
1916
2367
  e.destructive ? "tp-actionsheet-option--destructive" : "",
1917
2368
  e.disabled ? "tp-actionsheet-option--disabled" : "",
1918
2369
  e.selected ? "tp-actionsheet-option--selected" : ""
1919
2370
  ].filter(Boolean).join(" ");
1920
- return /* @__PURE__ */ h("button", {
2371
+ return /* @__PURE__ */ g("button", {
1921
2372
  type: "button",
1922
2373
  className: t,
1923
2374
  disabled: e.disabled,
1924
2375
  "aria-disabled": e.disabled || void 0,
1925
2376
  onClick: () => _(e),
1926
2377
  children: [
1927
- e.icon !== void 0 && /* @__PURE__ */ m("span", {
2378
+ e.icon !== void 0 && /* @__PURE__ */ h("span", {
1928
2379
  className: "tp-actionsheet-option-icon",
1929
2380
  children: e.icon
1930
2381
  }),
1931
- /* @__PURE__ */ h("span", {
2382
+ /* @__PURE__ */ g("span", {
1932
2383
  className: "tp-actionsheet-option-text",
1933
- children: [/* @__PURE__ */ m("span", {
2384
+ children: [/* @__PURE__ */ h("span", {
1934
2385
  className: "tp-actionsheet-option-label",
1935
2386
  children: e.label
1936
- }), e.description !== void 0 && /* @__PURE__ */ m("span", {
2387
+ }), e.description !== void 0 && /* @__PURE__ */ h("span", {
1937
2388
  className: "tp-actionsheet-option-desc",
1938
2389
  children: e.description
1939
2390
  })]
1940
2391
  }),
1941
- e.selected && /* @__PURE__ */ m("span", {
2392
+ e.selected && /* @__PURE__ */ h("span", {
1942
2393
  className: "tp-actionsheet-option-check",
1943
- children: /* @__PURE__ */ m(ce, {})
2394
+ children: /* @__PURE__ */ h(ye, {})
1944
2395
  })
1945
2396
  ]
1946
2397
  }, e.key);
1947
2398
  })
1948
2399
  })]
1949
- }), a !== "" && (f === "ios" ? /* @__PURE__ */ m("div", {
2400
+ }), a !== "" && (f === "ios" ? /* @__PURE__ */ h("div", {
1950
2401
  className: "tp-actionsheet-cancel-card",
1951
- children: /* @__PURE__ */ m("button", {
2402
+ children: /* @__PURE__ */ h("button", {
1952
2403
  type: "button",
1953
2404
  className: "tp-actionsheet-cancel",
1954
2405
  onClick: u,
1955
2406
  children: a
1956
2407
  })
1957
- }) : /* @__PURE__ */ m("div", {
2408
+ }) : /* @__PURE__ */ h("div", {
1958
2409
  className: "tp-actionsheet-cancel-row",
1959
- children: /* @__PURE__ */ m("button", {
2410
+ children: /* @__PURE__ */ h("button", {
1960
2411
  type: "button",
1961
2412
  className: "tp-actionsheet-cancel",
1962
2413
  onClick: u,
@@ -1965,19 +2416,19 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1965
2416
  }))]
1966
2417
  })
1967
2418
  });
1968
- }, ue = () => /* @__PURE__ */ m("svg", {
2419
+ }, xe = () => /* @__PURE__ */ h("svg", {
1969
2420
  width: "14",
1970
2421
  height: "14",
1971
2422
  viewBox: "0 0 16 16",
1972
2423
  fill: "none",
1973
2424
  "aria-hidden": "true",
1974
- children: /* @__PURE__ */ m("path", {
2425
+ children: /* @__PURE__ */ h("path", {
1975
2426
  d: "M4 4L12 12M12 4L4 12",
1976
2427
  stroke: "currentColor",
1977
2428
  strokeWidth: "1.8",
1978
2429
  strokeLinecap: "round"
1979
2430
  })
1980
- }), de = ({ open: e, title: t, subtitle: n, onClose: r, showCloseButton: i, showGrabber: a = !0, footer: o, maxHeight: s = "85%", children: u }) => {
2431
+ }), $ = ({ open: e, title: t, subtitle: n, onClose: r, showCloseButton: i, showGrabber: a = !0, footer: o, maxHeight: s = "85%", children: u }) => {
1981
2432
  let d = l();
1982
2433
  if (c(() => {
1983
2434
  if (!e) return;
@@ -1986,11 +2437,11 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1986
2437
  };
1987
2438
  return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
1988
2439
  }, [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", {
2440
+ let f = t !== void 0 || n !== void 0, p = i ?? f, m = f || p, _ = typeof s == "number" ? `${s}px` : s;
2441
+ return /* @__PURE__ */ h("div", {
1991
2442
  className: "tp-overlay tp-bottomsheet-backdrop",
1992
2443
  onClick: r,
1993
- children: /* @__PURE__ */ h("div", {
2444
+ children: /* @__PURE__ */ g("div", {
1994
2445
  role: "dialog",
1995
2446
  "aria-modal": "true",
1996
2447
  "aria-labelledby": t ? d : void 0,
@@ -1998,55 +2449,55 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
1998
2449
  style: { maxHeight: _ },
1999
2450
  onClick: (e) => e.stopPropagation(),
2000
2451
  children: [
2001
- a && /* @__PURE__ */ m("div", {
2452
+ a && /* @__PURE__ */ h("div", {
2002
2453
  className: "tp-bottomsheet-grabber-wrap",
2003
2454
  "aria-hidden": "true",
2004
- children: /* @__PURE__ */ m("span", { className: "tp-bottomsheet-grabber" })
2455
+ children: /* @__PURE__ */ h("span", { className: "tp-bottomsheet-grabber" })
2005
2456
  }),
2006
- g && /* @__PURE__ */ h("div", {
2457
+ m && /* @__PURE__ */ g("div", {
2007
2458
  className: "tp-bottomsheet-header",
2008
- children: [/* @__PURE__ */ h("div", {
2459
+ children: [/* @__PURE__ */ g("div", {
2009
2460
  className: "tp-bottomsheet-heading",
2010
- children: [t !== void 0 && /* @__PURE__ */ m("div", {
2461
+ children: [t !== void 0 && /* @__PURE__ */ h("div", {
2011
2462
  id: d,
2012
2463
  className: "tp-bottomsheet-title",
2013
2464
  children: t
2014
- }), n !== void 0 && /* @__PURE__ */ m("div", {
2465
+ }), n !== void 0 && /* @__PURE__ */ h("div", {
2015
2466
  className: "tp-bottomsheet-subtitle",
2016
2467
  children: n
2017
2468
  })]
2018
- }), p && /* @__PURE__ */ m("button", {
2469
+ }), p && /* @__PURE__ */ h("button", {
2019
2470
  type: "button",
2020
2471
  className: "tp-bottomsheet-close",
2021
2472
  "aria-label": "Close",
2022
2473
  onClick: r,
2023
- children: /* @__PURE__ */ m(ue, {})
2474
+ children: /* @__PURE__ */ h(xe, {})
2024
2475
  })]
2025
2476
  }),
2026
- /* @__PURE__ */ m("div", {
2477
+ /* @__PURE__ */ h("div", {
2027
2478
  className: "tp-bottomsheet-body",
2028
2479
  children: u
2029
2480
  }),
2030
- o !== void 0 && /* @__PURE__ */ m("div", {
2481
+ o !== void 0 && /* @__PURE__ */ h("div", {
2031
2482
  className: "tp-bottomsheet-footer",
2032
2483
  children: o
2033
2484
  })
2034
2485
  ]
2035
2486
  })
2036
2487
  });
2037
- }, fe = () => /* @__PURE__ */ m("svg", {
2488
+ }, Se = () => /* @__PURE__ */ h("svg", {
2038
2489
  width: "14",
2039
2490
  height: "14",
2040
2491
  viewBox: "0 0 16 16",
2041
2492
  fill: "none",
2042
2493
  "aria-hidden": "true",
2043
- children: /* @__PURE__ */ m("path", {
2494
+ children: /* @__PURE__ */ h("path", {
2044
2495
  d: "M4 4L12 12M12 4L4 12",
2045
2496
  stroke: "currentColor",
2046
2497
  strokeWidth: "1.8",
2047
2498
  strokeLinecap: "round"
2048
2499
  })
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 }) => {
2500
+ }), Ce = ({ open: e, placement: t = "center", title: n, closable: r = !0, maskClosable: i = !0, onClose: a, footer: o, className: s = "", style: u, children: d }) => {
2050
2501
  let f = l();
2051
2502
  if (c(() => {
2052
2503
  if (!e) return;
@@ -2061,12 +2512,12 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2061
2512
  a
2062
2513
  ]), !e) return null;
2063
2514
  let p = n !== void 0 || r;
2064
- return /* @__PURE__ */ m("div", {
2515
+ return /* @__PURE__ */ h("div", {
2065
2516
  className: `tp-overlay tp-popup-backdrop--${t}`,
2066
2517
  onClick: () => {
2067
2518
  i && a();
2068
2519
  },
2069
- children: /* @__PURE__ */ h("div", {
2520
+ children: /* @__PURE__ */ g("div", {
2070
2521
  role: "dialog",
2071
2522
  "aria-modal": "true",
2072
2523
  "aria-labelledby": n ? f : void 0,
@@ -2075,46 +2526,46 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2075
2526
  style: u,
2076
2527
  onClick: (e) => e.stopPropagation(),
2077
2528
  children: [
2078
- p && /* @__PURE__ */ h("div", {
2529
+ p && /* @__PURE__ */ g("div", {
2079
2530
  className: "tp-popup-header",
2080
- children: [n === void 0 ? /* @__PURE__ */ m("span", {}) : /* @__PURE__ */ m("div", {
2531
+ children: [n === void 0 ? /* @__PURE__ */ h("span", {}) : /* @__PURE__ */ h("div", {
2081
2532
  id: f,
2082
2533
  className: "tp-popup-title",
2083
2534
  children: n
2084
- }), r && /* @__PURE__ */ m("button", {
2535
+ }), r && /* @__PURE__ */ h("button", {
2085
2536
  type: "button",
2086
2537
  className: "tp-popup-close",
2087
2538
  "aria-label": "Close",
2088
2539
  onClick: a,
2089
- children: /* @__PURE__ */ m(fe, {})
2540
+ children: /* @__PURE__ */ h(Se, {})
2090
2541
  })]
2091
2542
  }),
2092
- /* @__PURE__ */ m("div", {
2543
+ /* @__PURE__ */ h("div", {
2093
2544
  className: "tp-popup-body",
2094
2545
  children: d
2095
2546
  }),
2096
- o !== void 0 && /* @__PURE__ */ m("div", {
2547
+ o !== void 0 && /* @__PURE__ */ h("div", {
2097
2548
  className: "tp-popup-footer",
2098
2549
  children: o
2099
2550
  })
2100
2551
  ]
2101
2552
  })
2102
2553
  });
2103
- }, me = () => /* @__PURE__ */ m("svg", {
2554
+ }, we = () => /* @__PURE__ */ h("svg", {
2104
2555
  width: "16",
2105
2556
  height: "16",
2106
2557
  viewBox: "0 0 24 24",
2107
2558
  fill: "none",
2108
2559
  "aria-hidden": "true",
2109
- children: /* @__PURE__ */ m("path", {
2560
+ children: /* @__PURE__ */ h("path", {
2110
2561
  d: "M5 12.5L9.8 17L19 7.5",
2111
2562
  stroke: "currentColor",
2112
2563
  strokeWidth: "2.2",
2113
2564
  strokeLinecap: "round",
2114
2565
  strokeLinejoin: "round"
2115
2566
  })
2116
- }), he = ({ open: e, items: t, onSelect: n, onClose: r, align: a = "left", className: o = "", style: s }) => {
2117
- let l = d(null);
2567
+ }), Te = ({ open: e, items: t, onSelect: n, onClose: r, align: a = "left", className: o = "", style: s }) => {
2568
+ let l = f(null);
2118
2569
  if (c(() => {
2119
2570
  if (!e) return;
2120
2571
  let t = !1, n = (e) => {
@@ -2137,7 +2588,7 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2137
2588
  let u = (e) => {
2138
2589
  e.disabled || (n(e), r());
2139
2590
  };
2140
- return /* @__PURE__ */ m("div", {
2591
+ return /* @__PURE__ */ h("div", {
2141
2592
  ref: l,
2142
2593
  role: "menu",
2143
2594
  "data-align": a,
@@ -2151,10 +2602,10 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2151
2602
  e.danger ? "tp-menu-item--danger" : "",
2152
2603
  e.disabled ? "tp-menu-item--disabled" : ""
2153
2604
  ].filter(Boolean).join(" ");
2154
- return /* @__PURE__ */ h(i.Fragment, { children: [e.dividerBefore && /* @__PURE__ */ m("div", {
2605
+ return /* @__PURE__ */ g(i.Fragment, { children: [e.dividerBefore && /* @__PURE__ */ h("div", {
2155
2606
  className: "tp-menu-divider",
2156
2607
  role: "separator"
2157
- }), /* @__PURE__ */ h("button", {
2608
+ }), /* @__PURE__ */ g("button", {
2158
2609
  type: "button",
2159
2610
  role: "menuitem",
2160
2611
  "data-selected": e.selected ? "true" : void 0,
@@ -2163,40 +2614,40 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2163
2614
  "aria-disabled": e.disabled || void 0,
2164
2615
  onClick: () => u(e),
2165
2616
  children: [
2166
- e.icon !== void 0 && /* @__PURE__ */ m("span", {
2617
+ e.icon !== void 0 && /* @__PURE__ */ h("span", {
2167
2618
  className: "tp-menu-item-icon",
2168
2619
  children: e.icon
2169
2620
  }),
2170
- /* @__PURE__ */ m("span", {
2621
+ /* @__PURE__ */ h("span", {
2171
2622
  className: "tp-menu-item-label",
2172
2623
  children: e.label
2173
2624
  }),
2174
- e.selected && /* @__PURE__ */ m("span", {
2625
+ e.selected && /* @__PURE__ */ h("span", {
2175
2626
  className: "tp-menu-item-check",
2176
2627
  "aria-label": "selected",
2177
- children: /* @__PURE__ */ m(me, {})
2628
+ children: /* @__PURE__ */ h(we, {})
2178
2629
  })
2179
2630
  ]
2180
2631
  })] }, e.key);
2181
2632
  })
2182
2633
  });
2183
- }, ge = ({ type: e }) => {
2634
+ }, Ee = ({ type: e }) => {
2184
2635
  switch (e) {
2185
- case "info": return /* @__PURE__ */ h("svg", {
2636
+ case "info": return /* @__PURE__ */ g("svg", {
2186
2637
  width: "18",
2187
2638
  height: "18",
2188
2639
  viewBox: "0 0 24 24",
2189
2640
  fill: "none",
2190
2641
  "aria-hidden": "true",
2191
2642
  children: [
2192
- /* @__PURE__ */ m("circle", {
2643
+ /* @__PURE__ */ h("circle", {
2193
2644
  cx: "12",
2194
2645
  cy: "12",
2195
2646
  r: "9.5",
2196
2647
  stroke: "currentColor",
2197
2648
  strokeWidth: "1.6"
2198
2649
  }),
2199
- /* @__PURE__ */ m("rect", {
2650
+ /* @__PURE__ */ h("rect", {
2200
2651
  x: "11.2",
2201
2652
  y: "7.8",
2202
2653
  width: "1.6",
@@ -2204,7 +2655,7 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2204
2655
  rx: "0.4",
2205
2656
  fill: "currentColor"
2206
2657
  }),
2207
- /* @__PURE__ */ m("rect", {
2658
+ /* @__PURE__ */ h("rect", {
2208
2659
  x: "11.2",
2209
2660
  y: "10.8",
2210
2661
  width: "1.6",
@@ -2214,19 +2665,19 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2214
2665
  })
2215
2666
  ]
2216
2667
  });
2217
- case "success": return /* @__PURE__ */ h("svg", {
2668
+ case "success": return /* @__PURE__ */ g("svg", {
2218
2669
  width: "18",
2219
2670
  height: "18",
2220
2671
  viewBox: "0 0 24 24",
2221
2672
  fill: "none",
2222
2673
  "aria-hidden": "true",
2223
- children: [/* @__PURE__ */ m("circle", {
2674
+ children: [/* @__PURE__ */ h("circle", {
2224
2675
  cx: "12",
2225
2676
  cy: "12",
2226
2677
  r: "9.5",
2227
2678
  stroke: "currentColor",
2228
2679
  strokeWidth: "1.6"
2229
- }), /* @__PURE__ */ m("path", {
2680
+ }), /* @__PURE__ */ h("path", {
2230
2681
  d: "M8 12.2L10.8 15L16 9.5",
2231
2682
  stroke: "currentColor",
2232
2683
  strokeWidth: "1.8",
@@ -2234,21 +2685,21 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2234
2685
  strokeLinejoin: "round"
2235
2686
  })]
2236
2687
  });
2237
- case "warning": return /* @__PURE__ */ h("svg", {
2688
+ case "warning": return /* @__PURE__ */ g("svg", {
2238
2689
  width: "18",
2239
2690
  height: "18",
2240
2691
  viewBox: "0 0 24 24",
2241
2692
  fill: "none",
2242
2693
  "aria-hidden": "true",
2243
2694
  children: [
2244
- /* @__PURE__ */ m("circle", {
2695
+ /* @__PURE__ */ h("circle", {
2245
2696
  cx: "12",
2246
2697
  cy: "12",
2247
2698
  r: "9.5",
2248
2699
  stroke: "currentColor",
2249
2700
  strokeWidth: "1.6"
2250
2701
  }),
2251
- /* @__PURE__ */ m("rect", {
2702
+ /* @__PURE__ */ h("rect", {
2252
2703
  x: "11.2",
2253
2704
  y: "7.5",
2254
2705
  width: "1.6",
@@ -2256,7 +2707,7 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2256
2707
  rx: "0.4",
2257
2708
  fill: "currentColor"
2258
2709
  }),
2259
- /* @__PURE__ */ m("rect", {
2710
+ /* @__PURE__ */ h("rect", {
2260
2711
  x: "11.2",
2261
2712
  y: "14.8",
2262
2713
  width: "1.6",
@@ -2266,40 +2717,40 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2266
2717
  })
2267
2718
  ]
2268
2719
  });
2269
- case "error": return /* @__PURE__ */ h("svg", {
2720
+ case "error": return /* @__PURE__ */ g("svg", {
2270
2721
  width: "18",
2271
2722
  height: "18",
2272
2723
  viewBox: "0 0 24 24",
2273
2724
  fill: "none",
2274
2725
  "aria-hidden": "true",
2275
- children: [/* @__PURE__ */ m("circle", {
2726
+ children: [/* @__PURE__ */ h("circle", {
2276
2727
  cx: "12",
2277
2728
  cy: "12",
2278
2729
  r: "9.5",
2279
2730
  stroke: "currentColor",
2280
2731
  strokeWidth: "1.6"
2281
- }), /* @__PURE__ */ m("path", {
2732
+ }), /* @__PURE__ */ h("path", {
2282
2733
  d: "M9 9L15 15M15 9L9 15",
2283
2734
  stroke: "currentColor",
2284
2735
  strokeWidth: "1.8",
2285
2736
  strokeLinecap: "round"
2286
2737
  })]
2287
2738
  });
2288
- case "loading": return /* @__PURE__ */ h("svg", {
2739
+ case "loading": return /* @__PURE__ */ g("svg", {
2289
2740
  width: "18",
2290
2741
  height: "18",
2291
2742
  viewBox: "0 0 24 24",
2292
2743
  fill: "none",
2293
2744
  className: "tp-toast-spinner",
2294
2745
  "aria-hidden": "true",
2295
- children: [/* @__PURE__ */ m("circle", {
2746
+ children: [/* @__PURE__ */ h("circle", {
2296
2747
  cx: "12",
2297
2748
  cy: "12",
2298
2749
  r: "9",
2299
2750
  stroke: "currentColor",
2300
2751
  strokeOpacity: "0.28",
2301
2752
  strokeWidth: "2.2"
2302
- }), /* @__PURE__ */ m("path", {
2753
+ }), /* @__PURE__ */ h("path", {
2303
2754
  d: "M12 3A9 9 0 0 1 21 12",
2304
2755
  stroke: "currentColor",
2305
2756
  strokeWidth: "2.2",
@@ -2308,7 +2759,7 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2308
2759
  });
2309
2760
  default: return null;
2310
2761
  }
2311
- }, Q = ({ open: e = !0, type: t = "default", message: n, duration: r, position: i = "center", onClose: a, className: o = "", style: s }) => {
2762
+ }, De = ({ open: e = !0, type: t = "default", message: n, duration: r, position: i = "center", onClose: a, className: o = "", style: s }) => {
2312
2763
  let l = r ?? (t === "loading" ? 0 : 2500);
2313
2764
  if (c(() => {
2314
2765
  if (!e || !a || l <= 0) return;
@@ -2321,29 +2772,29 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2321
2772
  l,
2322
2773
  a
2323
2774
  ]), !e) return null;
2324
- let u = /* @__PURE__ */ m(ge, { type: t });
2325
- return /* @__PURE__ */ m("div", {
2775
+ let u = /* @__PURE__ */ h(Ee, { type: t });
2776
+ return /* @__PURE__ */ h("div", {
2326
2777
  className: `tp-toast-container tp-toast-container--${i}`,
2327
- children: /* @__PURE__ */ h("div", {
2778
+ children: /* @__PURE__ */ g("div", {
2328
2779
  role: t === "error" ? "alert" : "status",
2329
2780
  "aria-live": t === "error" ? "assertive" : "polite",
2330
2781
  "data-type": t,
2331
2782
  className: `tp-toast tp-toast--${t} ${o}`.trim(),
2332
2783
  style: s,
2333
- children: [t !== "default" && /* @__PURE__ */ m("span", {
2784
+ children: [t !== "default" && /* @__PURE__ */ h("span", {
2334
2785
  className: "tp-toast-icon",
2335
2786
  children: u
2336
- }), /* @__PURE__ */ m("span", {
2787
+ }), /* @__PURE__ */ h("span", {
2337
2788
  className: "tp-toast-message",
2338
2789
  children: n
2339
2790
  })]
2340
2791
  })
2341
2792
  });
2342
- }, $ = a({
2793
+ }, Oe = a({
2343
2794
  show: () => {},
2344
2795
  dismiss: () => {}
2345
- }), _e = ({ children: e }) => {
2346
- let [t, n] = f(null), r = d(null), i = o(() => {
2796
+ }), ke = ({ children: e }) => {
2797
+ let [t, n] = p(null), r = f(null), i = o(() => {
2347
2798
  r.current !== null && (clearTimeout(r.current), r.current = null);
2348
2799
  }, []), a = o(() => {
2349
2800
  i(), n((e) => e ? {
@@ -2365,13 +2816,13 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2365
2816
  }, o));
2366
2817
  }, [i]);
2367
2818
  c(() => () => i(), [i]);
2368
- let l = u(() => ({
2819
+ let l = d(() => ({
2369
2820
  show: s,
2370
2821
  dismiss: a
2371
2822
  }), [s, a]);
2372
- return /* @__PURE__ */ h($.Provider, {
2823
+ return /* @__PURE__ */ g(Oe.Provider, {
2373
2824
  value: l,
2374
- children: [e, t && /* @__PURE__ */ m(Q, {
2825
+ children: [e, t && /* @__PURE__ */ h(De, {
2375
2826
  open: t.open,
2376
2827
  type: t.type,
2377
2828
  message: t.message,
@@ -2382,78 +2833,116 @@ var ne = ({ value: e, use12Hour: t = !1, minuteStep: n = 1, onChange: r, classNa
2382
2833
  })]
2383
2834
  });
2384
2835
  };
2385
- function ve() {
2386
- return s($);
2836
+ function Ae() {
2837
+ return s(Oe);
2387
2838
  }
2388
2839
  // 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 = [
2840
+ var je = ({ 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 }) => {
2841
+ let _ = f(null), v = [
2391
2842
  "tp-liquid-glass",
2392
2843
  `tp-liquid-glass--${e}`,
2393
2844
  `tp-liquid-glass--tint-${t}`,
2394
2845
  n ? "tp-liquid-glass--interactive" : "",
2395
- a ? "tp-liquid-glass--disabled" : "",
2396
- s
2846
+ u ? "tp-liquid-glass--disabled" : "",
2847
+ p
2397
2848
  ].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,
2849
+ return i.createElement(c, {
2850
+ ref: _,
2851
+ type: c === "button" ? "button" : void 0,
2852
+ disabled: c === "button" ? u : void 0,
2853
+ "aria-label": l,
2854
+ "aria-disabled": c !== "button" && u ? !0 : void 0,
2403
2855
  "data-shape": e,
2404
2856
  "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", {
2857
+ className: v,
2858
+ style: m,
2859
+ onClick: u ? void 0 : d
2860
+ }, /* @__PURE__ */ h(k, {
2861
+ hostRef: _,
2862
+ shape: e,
2863
+ tint: t,
2864
+ refraction: r,
2865
+ dispersion: a,
2866
+ blur: o,
2867
+ optical: s
2868
+ }), /* @__PURE__ */ h("span", {
2869
+ className: "tp-liquid-glass-content",
2870
+ children: g
2871
+ }));
2872
+ }, Me = i.createContext(!1);
2873
+ function Ne(e) {
2874
+ return e == null || e === !1 || e === "" || e === 0 ? null : e === !0 ? /* @__PURE__ */ h("span", {
2414
2875
  className: "tp-icon-btn-badge tp-icon-btn-badge--dot",
2415
2876
  "aria-hidden": "true"
2416
- }) : /* @__PURE__ */ m("span", {
2877
+ }) : /* @__PURE__ */ h("span", {
2417
2878
  className: "tp-icon-btn-badge",
2418
2879
  children: typeof e == "number" && e > 99 ? "99+" : String(e)
2419
2880
  });
2420
2881
  }
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, {
2882
+ var Pe = ({ icon: e, variant: r = "glass", size: i = "md", badge: a, disabled: o = !1, ariaLabel: c, onClick: l, className: u = "", style: d }) => {
2883
+ let p = f(null), m = s(Me), _ = i === "sm" ? 16 : i === "lg" ? 22 : 19, v = typeof e == "string" && t(e) ? /* @__PURE__ */ h(n, {
2423
2884
  name: e,
2424
- size: d
2425
- }) : e, p = [
2885
+ size: _
2886
+ }) : e, y = [
2426
2887
  "tp-icon-btn",
2427
- `tp-icon-btn--${t}`,
2888
+ `tp-icon-btn--${r}`,
2428
2889
  `tp-icon-btn--${i}`,
2429
2890
  o ? "tp-icon-btn--disabled" : "",
2430
- l
2891
+ u
2431
2892
  ].filter(Boolean).join(" ");
2432
- return /* @__PURE__ */ h("button", {
2893
+ return /* @__PURE__ */ g("button", {
2894
+ ref: p,
2433
2895
  type: "button",
2434
- className: p,
2435
- "data-variant": t,
2896
+ className: y,
2897
+ "data-variant": r,
2436
2898
  "data-size": i,
2437
- "aria-label": s,
2899
+ "aria-label": c,
2438
2900
  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)]
2901
+ onClick: l,
2902
+ style: d,
2903
+ children: [
2904
+ r === "glass" && !m && /* @__PURE__ */ h(k, {
2905
+ hostRef: p,
2906
+ shape: "circle",
2907
+ tint: "clear",
2908
+ bezelWidth: 12,
2909
+ refraction: 1.05,
2910
+ dispersion: .9,
2911
+ blur: 2
2912
+ }),
2913
+ /* @__PURE__ */ h("span", {
2914
+ className: "tp-icon-btn-glyph",
2915
+ children: v
2916
+ }),
2917
+ Ne(a)
2918
+ ]
2445
2919
  });
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 = () => {
2920
+ }, Fe = ({ variant: e = "glass", children: t, className: n = "", style: r }) => {
2921
+ let i = f(null);
2922
+ return /* @__PURE__ */ h(Me.Provider, {
2923
+ value: !0,
2924
+ children: /* @__PURE__ */ g("div", {
2925
+ ref: i,
2926
+ className: `tp-icon-btn-group tp-icon-btn-group--${e} ${n}`.trim(),
2927
+ "data-variant": e,
2928
+ role: "group",
2929
+ style: r,
2930
+ children: [e === "glass" && /* @__PURE__ */ h(k, {
2931
+ hostRef: i,
2932
+ shape: "pill",
2933
+ tint: "clear",
2934
+ bezelWidth: 12,
2935
+ refraction: 1.05,
2936
+ dispersion: .9,
2937
+ blur: 2
2938
+ }), t]
2939
+ })
2940
+ });
2941
+ }, Ie = ({ checked: e, defaultChecked: t = !1, indeterminate: n = !1, disabled: r = !1, label: i, description: a, onChange: o, ariaLabel: s, className: c = "", style: u }) => {
2942
+ let d = l(), f = e !== void 0, [m, _] = p(t), v = f ? e : m, y = () => {
2454
2943
  if (r) return;
2455
2944
  let e = !v;
2456
- p || _(e), o?.(e);
2945
+ f || _(e), o?.(e);
2457
2946
  }, b = [
2458
2947
  "tp-check-row",
2459
2948
  v ? "tp-check-row--checked" : "",
@@ -2461,12 +2950,12 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2461
2950
  r ? "tp-check-row--disabled" : "",
2462
2951
  c
2463
2952
  ].filter(Boolean).join(" ");
2464
- return /* @__PURE__ */ h("label", {
2953
+ return /* @__PURE__ */ g("label", {
2465
2954
  htmlFor: d,
2466
2955
  className: b,
2467
2956
  style: u,
2468
2957
  children: [
2469
- /* @__PURE__ */ m("input", {
2958
+ /* @__PURE__ */ h("input", {
2470
2959
  id: d,
2471
2960
  type: "checkbox",
2472
2961
  className: "tp-check-native",
@@ -2476,26 +2965,26 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2476
2965
  "aria-checked": n ? "mixed" : v,
2477
2966
  onChange: y
2478
2967
  }),
2479
- /* @__PURE__ */ m("span", {
2968
+ /* @__PURE__ */ h("span", {
2480
2969
  className: `tp-checkbox-box ${v || n ? "tp-checkbox-box--active" : ""}`.trim(),
2481
2970
  "aria-hidden": "true",
2482
- children: n ? /* @__PURE__ */ m("svg", {
2971
+ children: n ? /* @__PURE__ */ h("svg", {
2483
2972
  width: "12",
2484
2973
  height: "12",
2485
2974
  viewBox: "0 0 12 12",
2486
2975
  fill: "none",
2487
- children: /* @__PURE__ */ m("path", {
2976
+ children: /* @__PURE__ */ h("path", {
2488
2977
  d: "M2.5 6H9.5",
2489
2978
  stroke: "currentColor",
2490
2979
  strokeWidth: "1.9",
2491
2980
  strokeLinecap: "round"
2492
2981
  })
2493
- }) : v ? /* @__PURE__ */ m("svg", {
2982
+ }) : v ? /* @__PURE__ */ h("svg", {
2494
2983
  width: "12",
2495
2984
  height: "12",
2496
2985
  viewBox: "0 0 12 12",
2497
2986
  fill: "none",
2498
- children: /* @__PURE__ */ m("path", {
2987
+ children: /* @__PURE__ */ h("path", {
2499
2988
  d: "M2.5 6.2L5 8.7L9.5 3.6",
2500
2989
  stroke: "currentColor",
2501
2990
  strokeWidth: "1.9",
@@ -2504,51 +2993,51 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2504
2993
  })
2505
2994
  }) : null
2506
2995
  }),
2507
- (i !== void 0 || a !== void 0) && /* @__PURE__ */ h("span", {
2996
+ (i !== void 0 || a !== void 0) && /* @__PURE__ */ g("span", {
2508
2997
  className: "tp-check-texts",
2509
- children: [i !== void 0 && /* @__PURE__ */ m("span", {
2998
+ children: [i !== void 0 && /* @__PURE__ */ h("span", {
2510
2999
  className: "tp-check-label",
2511
3000
  children: i
2512
- }), a !== void 0 && /* @__PURE__ */ m("span", {
3001
+ }), a !== void 0 && /* @__PURE__ */ h("span", {
2513
3002
  className: "tp-check-desc",
2514
3003
  children: a
2515
3004
  })]
2516
3005
  })
2517
3006
  ]
2518
3007
  });
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) => {
3008
+ }, Le = ({ options: e, value: t, defaultValue: n = [], onChange: r, direction: i = "vertical", disabled: a = !1, className: o = "", style: s }) => {
3009
+ let c = t !== void 0, [l, u] = p([...n]), d = c ? t : l, f = (e, t) => {
2521
3010
  let n = t ? d.includes(e) ? [...d] : [...d, e] : d.filter((t) => t !== e);
2522
3011
  c || u(n), r?.(n);
2523
3012
  };
2524
- return /* @__PURE__ */ m("div", {
3013
+ return /* @__PURE__ */ h("div", {
2525
3014
  role: "group",
2526
3015
  className: `tp-choice-group tp-choice-group--${i} ${o}`.trim(),
2527
3016
  style: s,
2528
- children: e.map((e) => /* @__PURE__ */ m(Ce, {
3017
+ children: e.map((e) => /* @__PURE__ */ h(Ie, {
2529
3018
  label: e.label,
2530
3019
  description: e.description,
2531
3020
  disabled: a || e.disabled,
2532
3021
  checked: d.includes(e.value),
2533
- onChange: (t) => p(e.value, t)
3022
+ onChange: (t) => f(e.value, t)
2534
3023
  }, e.value))
2535
3024
  });
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));
3025
+ }, Re = ({ checked: e, defaultChecked: t = !1, disabled: n = !1, label: r, description: i, value: a, name: o, onChange: s, ariaLabel: c, className: u = "", style: d }) => {
3026
+ let f = l(), m = e !== void 0, [_, v] = p(t), y = m ? e : _, b = () => {
3027
+ n || (m || v(!0), s?.(!0));
2539
3028
  }, x = [
2540
3029
  "tp-check-row",
2541
3030
  y ? "tp-check-row--checked" : "",
2542
3031
  n ? "tp-check-row--disabled" : "",
2543
3032
  u
2544
3033
  ].filter(Boolean).join(" ");
2545
- return /* @__PURE__ */ h("label", {
2546
- htmlFor: p,
3034
+ return /* @__PURE__ */ g("label", {
3035
+ htmlFor: f,
2547
3036
  className: x,
2548
3037
  style: d,
2549
3038
  children: [
2550
- /* @__PURE__ */ m("input", {
2551
- id: p,
3039
+ /* @__PURE__ */ h("input", {
3040
+ id: f,
2552
3041
  type: "radio",
2553
3042
  name: o,
2554
3043
  value: a,
@@ -2558,32 +3047,32 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2558
3047
  "aria-label": c,
2559
3048
  onChange: b
2560
3049
  }),
2561
- /* @__PURE__ */ m("span", {
3050
+ /* @__PURE__ */ h("span", {
2562
3051
  className: `tp-radio-ring ${y ? "tp-radio-ring--active" : ""}`.trim(),
2563
3052
  "aria-hidden": "true",
2564
- children: y && /* @__PURE__ */ m("span", { className: "tp-radio-dot" })
3053
+ children: y && /* @__PURE__ */ h("span", { className: "tp-radio-dot" })
2565
3054
  }),
2566
- (r !== void 0 || i !== void 0) && /* @__PURE__ */ h("span", {
3055
+ (r !== void 0 || i !== void 0) && /* @__PURE__ */ g("span", {
2567
3056
  className: "tp-check-texts",
2568
- children: [r !== void 0 && /* @__PURE__ */ m("span", {
3057
+ children: [r !== void 0 && /* @__PURE__ */ h("span", {
2569
3058
  className: "tp-check-label",
2570
3059
  children: r
2571
- }), i !== void 0 && /* @__PURE__ */ m("span", {
3060
+ }), i !== void 0 && /* @__PURE__ */ h("span", {
2572
3061
  className: "tp-check-desc",
2573
3062
  children: i
2574
3063
  })]
2575
3064
  })
2576
3065
  ]
2577
3066
  });
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);
3067
+ }, ze = ({ options: e, value: t, defaultValue: n, onChange: r, direction: i = "vertical", disabled: a = !1, name: o, className: s = "", style: c }) => {
3068
+ 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) => {
3069
+ f || g(e), r?.(e);
2581
3070
  };
2582
- return /* @__PURE__ */ m("div", {
3071
+ return /* @__PURE__ */ h("div", {
2583
3072
  role: "radiogroup",
2584
3073
  className: `tp-choice-group tp-choice-group--${i} ${s}`.trim(),
2585
3074
  style: c,
2586
- children: e.map((e) => /* @__PURE__ */ m(Te, {
3075
+ children: e.map((e) => /* @__PURE__ */ h(Re, {
2587
3076
  name: d,
2588
3077
  value: e.value,
2589
3078
  label: e.label,
@@ -2593,29 +3082,29 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2593
3082
  onChange: () => v(e.value)
2594
3083
  }, e.value))
2595
3084
  });
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) => {
3085
+ }, Be = ({ actions: e, open: t, defaultOpen: n = !1, onOpenChange: r, disabled: i = !1, children: a, className: o = "", style: s }) => {
3086
+ 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
3087
  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),
3088
+ }, x = _ === null ? d ? -m : 0 : _;
3089
+ return /* @__PURE__ */ g("div", {
3090
+ className: `tp-swipe-row ${d ? "tp-swipe-row--open" : ""} ${i ? "tp-swipe-row--disabled" : ""} ${o}`.trim(),
3091
+ "data-open": String(d),
2603
3092
  style: s,
2604
- children: [/* @__PURE__ */ m("div", {
3093
+ children: [/* @__PURE__ */ h("div", {
2605
3094
  className: "tp-swipe-actions",
2606
- style: { width: `${g}px` },
2607
- "aria-hidden": !p,
2608
- children: e.map((e) => /* @__PURE__ */ m("button", {
3095
+ style: { width: `${m}px` },
3096
+ "aria-hidden": !d,
3097
+ children: e.map((e) => /* @__PURE__ */ h("button", {
2609
3098
  type: "button",
2610
3099
  disabled: i,
2611
- tabIndex: p ? 0 : -1,
3100
+ tabIndex: d ? 0 : -1,
2612
3101
  className: `tp-swipe-action tp-swipe-action--${e.tone ?? "neutral"}`,
2613
3102
  onClick: () => {
2614
3103
  i || (e.onClick?.(), b(!1));
2615
3104
  },
2616
3105
  children: e.label
2617
3106
  }, e.key))
2618
- }), /* @__PURE__ */ m("div", {
3107
+ }), /* @__PURE__ */ h("div", {
2619
3108
  className: "tp-swipe-content",
2620
3109
  style: { transform: `translateX(${x}px)` },
2621
3110
  onPointerDown: (e) => {
@@ -2623,9 +3112,9 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2623
3112
  },
2624
3113
  onPointerMove: (e) => {
2625
3114
  if (i || y.current === null) return;
2626
- let t = p ? -g : 0, n = e.clientX - y.current;
3115
+ let t = d ? -m : 0, n = e.clientX - y.current;
2627
3116
  if (Math.abs(n) > 6) {
2628
- let e = Math.max(-g, Math.min(0, t + n));
3117
+ let e = Math.max(-m, Math.min(0, t + n));
2629
3118
  v(e);
2630
3119
  }
2631
3120
  },
@@ -2640,54 +3129,54 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2640
3129
  children: a
2641
3130
  })]
2642
3131
  });
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;
3132
+ }, Ve = ({ content: e, arrowPosition: t = "bottom-left", contextAdaptive: n = !0, open: r, defaultOpen: i = !0, onOpenChange: a, children: o, className: s = "", style: c }) => {
3133
+ let l = r !== void 0, [u, d] = p(i), f = l ? r : u, m = () => {
3134
+ let e = !f;
2646
3135
  l || d(e), a?.(e);
2647
3136
  };
2648
- return /* @__PURE__ */ h("div", {
3137
+ return /* @__PURE__ */ g("div", {
2649
3138
  className: `tp-tooltip-wrap ${s}`.trim(),
2650
3139
  "data-arrow": t,
2651
3140
  style: c,
2652
- children: [o !== void 0 && /* @__PURE__ */ m("span", {
3141
+ children: [o !== void 0 && /* @__PURE__ */ h("span", {
2653
3142
  className: "tp-tooltip-trigger",
2654
3143
  role: "button",
2655
3144
  tabIndex: 0,
2656
- "aria-expanded": p,
2657
- onClick: g,
3145
+ "aria-expanded": f,
3146
+ onClick: m,
2658
3147
  onKeyDown: (e) => {
2659
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), g());
3148
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), m());
2660
3149
  },
2661
3150
  children: o
2662
- }), p && /* @__PURE__ */ h("div", {
3151
+ }), f && /* @__PURE__ */ g("div", {
2663
3152
  role: "tooltip",
2664
3153
  "data-arrow": t,
2665
3154
  "data-adaptive": String(n),
2666
3155
  className: `tp-tooltip-bubble tp-tooltip-bubble--${t} ${n ? "tp-tooltip-bubble--adaptive" : ""}`.trim(),
2667
- children: [/* @__PURE__ */ m("span", {
3156
+ children: [/* @__PURE__ */ h("span", {
2668
3157
  className: "tp-tooltip-content",
2669
3158
  children: e
2670
- }), /* @__PURE__ */ m("span", {
3159
+ }), /* @__PURE__ */ h("span", {
2671
3160
  className: "tp-tooltip-arrow",
2672
3161
  "aria-hidden": "true"
2673
3162
  })]
2674
3163
  })]
2675
3164
  });
2676
- }, ke = ({ status: e }) => {
3165
+ }, He = ({ status: e }) => {
2677
3166
  switch (e) {
2678
- case "success": return /* @__PURE__ */ h("svg", {
3167
+ case "success": return /* @__PURE__ */ g("svg", {
2679
3168
  width: "18",
2680
3169
  height: "18",
2681
3170
  viewBox: "0 0 24 24",
2682
3171
  fill: "none",
2683
3172
  "aria-hidden": "true",
2684
- children: [/* @__PURE__ */ m("circle", {
3173
+ children: [/* @__PURE__ */ h("circle", {
2685
3174
  cx: "12",
2686
3175
  cy: "12",
2687
3176
  r: "9.5",
2688
3177
  stroke: "currentColor",
2689
3178
  strokeWidth: "1.7"
2690
- }), /* @__PURE__ */ m("path", {
3179
+ }), /* @__PURE__ */ h("path", {
2691
3180
  d: "M8.2 12.2L10.8 14.8L15.8 9.4",
2692
3181
  stroke: "currentColor",
2693
3182
  strokeWidth: "1.8",
@@ -2695,21 +3184,21 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2695
3184
  strokeLinejoin: "round"
2696
3185
  })]
2697
3186
  });
2698
- case "warning": return /* @__PURE__ */ h("svg", {
3187
+ case "warning": return /* @__PURE__ */ g("svg", {
2699
3188
  width: "18",
2700
3189
  height: "18",
2701
3190
  viewBox: "0 0 24 24",
2702
3191
  fill: "none",
2703
3192
  "aria-hidden": "true",
2704
3193
  children: [
2705
- /* @__PURE__ */ m("circle", {
3194
+ /* @__PURE__ */ h("circle", {
2706
3195
  cx: "12",
2707
3196
  cy: "12",
2708
3197
  r: "9.5",
2709
3198
  stroke: "currentColor",
2710
3199
  strokeWidth: "1.7"
2711
3200
  }),
2712
- /* @__PURE__ */ m("rect", {
3201
+ /* @__PURE__ */ h("rect", {
2713
3202
  x: "11.2",
2714
3203
  y: "7.2",
2715
3204
  width: "1.6",
@@ -2717,7 +3206,7 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2717
3206
  rx: "0.4",
2718
3207
  fill: "currentColor"
2719
3208
  }),
2720
- /* @__PURE__ */ m("rect", {
3209
+ /* @__PURE__ */ h("rect", {
2721
3210
  x: "11.2",
2722
3211
  y: "14.6",
2723
3212
  width: "1.6",
@@ -2727,40 +3216,40 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2727
3216
  })
2728
3217
  ]
2729
3218
  });
2730
- case "danger": return /* @__PURE__ */ h("svg", {
3219
+ case "danger": return /* @__PURE__ */ g("svg", {
2731
3220
  width: "18",
2732
3221
  height: "18",
2733
3222
  viewBox: "0 0 24 24",
2734
3223
  fill: "none",
2735
3224
  "aria-hidden": "true",
2736
- children: [/* @__PURE__ */ m("circle", {
3225
+ children: [/* @__PURE__ */ h("circle", {
2737
3226
  cx: "12",
2738
3227
  cy: "12",
2739
3228
  r: "9.5",
2740
3229
  stroke: "currentColor",
2741
3230
  strokeWidth: "1.7"
2742
- }), /* @__PURE__ */ m("path", {
3231
+ }), /* @__PURE__ */ h("path", {
2743
3232
  d: "M9 9L15 15M15 9L9 15",
2744
3233
  stroke: "currentColor",
2745
3234
  strokeWidth: "1.8",
2746
3235
  strokeLinecap: "round"
2747
3236
  })]
2748
3237
  });
2749
- default: return /* @__PURE__ */ h("svg", {
3238
+ default: return /* @__PURE__ */ g("svg", {
2750
3239
  width: "18",
2751
3240
  height: "18",
2752
3241
  viewBox: "0 0 24 24",
2753
3242
  fill: "none",
2754
3243
  "aria-hidden": "true",
2755
3244
  children: [
2756
- /* @__PURE__ */ m("circle", {
3245
+ /* @__PURE__ */ h("circle", {
2757
3246
  cx: "12",
2758
3247
  cy: "12",
2759
3248
  r: "9.5",
2760
3249
  stroke: "currentColor",
2761
3250
  strokeWidth: "1.7"
2762
3251
  }),
2763
- /* @__PURE__ */ m("rect", {
3252
+ /* @__PURE__ */ h("rect", {
2764
3253
  x: "11.2",
2765
3254
  y: "7.6",
2766
3255
  width: "1.6",
@@ -2768,7 +3257,7 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2768
3257
  rx: "0.4",
2769
3258
  fill: "currentColor"
2770
3259
  }),
2771
- /* @__PURE__ */ m("rect", {
3260
+ /* @__PURE__ */ h("rect", {
2772
3261
  x: "11.2",
2773
3262
  y: "10.8",
2774
3263
  width: "1.6",
@@ -2779,68 +3268,71 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2779
3268
  ]
2780
3269
  });
2781
3270
  }
2782
- }, Ae = ({ status: e = "default", action: t = "none", actionLabel: n = "Details", onAction: r, onClose: i, message: a, className: o = "", style: s }) => /* @__PURE__ */ h("div", {
2783
- role: e === "danger" ? "alert" : "status",
2784
- "data-status": e,
2785
- "data-action": t,
2786
- className: `tp-fixed-toast tp-fixed-toast--${e} ${o}`.trim(),
2787
- style: s,
2788
- children: [
2789
- /* @__PURE__ */ m("span", {
2790
- className: "tp-fixed-toast-icon",
2791
- children: /* @__PURE__ */ m(ke, { status: e })
2792
- }),
2793
- /* @__PURE__ */ m("div", {
2794
- className: "tp-fixed-toast-message",
2795
- children: a
2796
- }),
2797
- t === "button" && /* @__PURE__ */ m("button", {
2798
- type: "button",
2799
- className: "tp-fixed-toast-btn",
2800
- onClick: r,
2801
- children: n
2802
- }),
2803
- t === "go-to" && /* @__PURE__ */ m("button", {
2804
- type: "button",
2805
- className: "tp-fixed-toast-icon-action",
2806
- "aria-label": n || "Go to",
2807
- onClick: r,
2808
- children: /* @__PURE__ */ m("svg", {
2809
- width: "15",
2810
- height: "15",
2811
- viewBox: "0 0 16 16",
2812
- fill: "none",
2813
- "aria-hidden": "true",
2814
- children: /* @__PURE__ */ m("path", {
2815
- d: "M6 3.5L10.5 8L6 12.5",
2816
- stroke: "currentColor",
2817
- strokeWidth: "1.8",
2818
- strokeLinecap: "round",
2819
- strokeLinejoin: "round"
3271
+ }, Ue = ({ status: e = "default", tone: t, action: n = "none", actionLabel: r = "Details", onAction: i, onClose: a, message: o, className: s = "", style: c }) => {
3272
+ let l = t ?? e;
3273
+ return /* @__PURE__ */ g("div", {
3274
+ role: l === "danger" ? "alert" : "status",
3275
+ "data-status": l,
3276
+ "data-action": n,
3277
+ className: `tp-fixed-toast tp-fixed-toast--${l} ${s}`.trim(),
3278
+ style: c,
3279
+ children: [
3280
+ /* @__PURE__ */ h("span", {
3281
+ className: "tp-fixed-toast-icon",
3282
+ children: /* @__PURE__ */ h(He, { status: l })
3283
+ }),
3284
+ /* @__PURE__ */ h("div", {
3285
+ className: "tp-fixed-toast-message",
3286
+ children: o
3287
+ }),
3288
+ n === "button" && /* @__PURE__ */ h("button", {
3289
+ type: "button",
3290
+ className: "tp-fixed-toast-btn",
3291
+ onClick: i,
3292
+ children: r
3293
+ }),
3294
+ n === "go-to" && /* @__PURE__ */ h("button", {
3295
+ type: "button",
3296
+ className: "tp-fixed-toast-icon-action",
3297
+ "aria-label": r || "Go to",
3298
+ onClick: i,
3299
+ children: /* @__PURE__ */ h("svg", {
3300
+ width: "15",
3301
+ height: "15",
3302
+ viewBox: "0 0 16 16",
3303
+ fill: "none",
3304
+ "aria-hidden": "true",
3305
+ children: /* @__PURE__ */ h("path", {
3306
+ d: "M6 3.5L10.5 8L6 12.5",
3307
+ stroke: "currentColor",
3308
+ strokeWidth: "1.8",
3309
+ strokeLinecap: "round",
3310
+ strokeLinejoin: "round"
3311
+ })
2820
3312
  })
2821
- })
2822
- }),
2823
- t === "close" && /* @__PURE__ */ m("button", {
2824
- type: "button",
2825
- className: "tp-fixed-toast-icon-action",
2826
- "aria-label": "Close",
2827
- onClick: i,
2828
- children: /* @__PURE__ */ m("svg", {
2829
- width: "14",
2830
- height: "14",
2831
- viewBox: "0 0 16 16",
2832
- fill: "none",
2833
- "aria-hidden": "true",
2834
- children: /* @__PURE__ */ m("path", {
2835
- d: "M3.5 3.5L12.5 12.5M12.5 3.5L3.5 12.5",
2836
- stroke: "currentColor",
2837
- strokeWidth: "1.7",
2838
- strokeLinecap: "round"
3313
+ }),
3314
+ n === "close" && /* @__PURE__ */ h("button", {
3315
+ type: "button",
3316
+ className: "tp-fixed-toast-icon-action",
3317
+ "aria-label": "Close",
3318
+ onClick: a,
3319
+ children: /* @__PURE__ */ h("svg", {
3320
+ width: "14",
3321
+ height: "14",
3322
+ viewBox: "0 0 16 16",
3323
+ fill: "none",
3324
+ "aria-hidden": "true",
3325
+ children: /* @__PURE__ */ h("path", {
3326
+ d: "M3.5 3.5L12.5 12.5M12.5 3.5L3.5 12.5",
3327
+ stroke: "currentColor",
3328
+ strokeWidth: "1.7",
3329
+ strokeLinecap: "round"
3330
+ })
2839
3331
  })
2840
3332
  })
2841
- })
2842
- ]
2843
- }), je = [
3333
+ ]
3334
+ });
3335
+ }, We = [
2844
3336
  "Jan",
2845
3337
  "Feb",
2846
3338
  "Mar",
@@ -2853,7 +3345,7 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2853
3345
  "Oct",
2854
3346
  "Nov",
2855
3347
  "Dec"
2856
- ], Me = [
3348
+ ], Ge = [
2857
3349
  "1月",
2858
3350
  "2月",
2859
3351
  "3月",
@@ -2866,36 +3358,36 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2866
3358
  "10月",
2867
3359
  "11月",
2868
3360
  "12月"
2869
- ], Ne = ({ value: e, defaultValue: t = {
3361
+ ], Ke = ({ value: e, defaultValue: t = {
2870
3362
  year: 2026,
2871
3363
  month: 11
2872
3364
  }, 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) => {
3365
+ let c = e !== void 0, [l, u] = p(t), d = c ? e : l, [f, m] = p(d.year), _ = i === "zh" ? Ge : We, v = (e) => {
2874
3366
  let t = {
2875
- year: p,
3367
+ year: f,
2876
3368
  month: e
2877
3369
  };
2878
3370
  c || u(t), a?.(t);
2879
3371
  };
2880
- return /* @__PURE__ */ h("div", {
3372
+ return /* @__PURE__ */ g("div", {
2881
3373
  className: `tp-month-picker ${o}`.trim(),
2882
3374
  style: s,
2883
- children: [/* @__PURE__ */ h("div", {
3375
+ children: [/* @__PURE__ */ g("div", {
2884
3376
  className: "tp-month-picker-header",
2885
3377
  children: [
2886
- /* @__PURE__ */ m("button", {
3378
+ /* @__PURE__ */ h("button", {
2887
3379
  type: "button",
2888
3380
  className: "tp-month-picker-nav",
2889
3381
  "aria-label": "Previous year",
2890
- disabled: p <= n,
2891
- onClick: () => g((e) => Math.max(n, e - 1)),
2892
- children: /* @__PURE__ */ m("svg", {
3382
+ disabled: f <= n,
3383
+ onClick: () => m((e) => Math.max(n, e - 1)),
3384
+ children: /* @__PURE__ */ h("svg", {
2893
3385
  width: "16",
2894
3386
  height: "16",
2895
3387
  viewBox: "0 0 16 16",
2896
3388
  fill: "none",
2897
3389
  "aria-hidden": "true",
2898
- children: /* @__PURE__ */ m("path", {
3390
+ children: /* @__PURE__ */ h("path", {
2899
3391
  d: "M10 3.5L5.5 8L10 12.5",
2900
3392
  stroke: "currentColor",
2901
3393
  strokeWidth: "1.7",
@@ -2904,23 +3396,23 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2904
3396
  })
2905
3397
  })
2906
3398
  }),
2907
- /* @__PURE__ */ m("span", {
3399
+ /* @__PURE__ */ h("span", {
2908
3400
  className: "tp-month-picker-year",
2909
- children: i === "zh" ? `${p}年` : p
3401
+ children: i === "zh" ? `${f}年` : f
2910
3402
  }),
2911
- /* @__PURE__ */ m("button", {
3403
+ /* @__PURE__ */ h("button", {
2912
3404
  type: "button",
2913
3405
  className: "tp-month-picker-nav",
2914
3406
  "aria-label": "Next year",
2915
- disabled: p >= r,
2916
- onClick: () => g((e) => Math.min(r, e + 1)),
2917
- children: /* @__PURE__ */ m("svg", {
3407
+ disabled: f >= r,
3408
+ onClick: () => m((e) => Math.min(r, e + 1)),
3409
+ children: /* @__PURE__ */ h("svg", {
2918
3410
  width: "16",
2919
3411
  height: "16",
2920
3412
  viewBox: "0 0 16 16",
2921
3413
  fill: "none",
2922
3414
  "aria-hidden": "true",
2923
- children: /* @__PURE__ */ m("path", {
3415
+ children: /* @__PURE__ */ h("path", {
2924
3416
  d: "M6 3.5L10.5 8L6 12.5",
2925
3417
  stroke: "currentColor",
2926
3418
  strokeWidth: "1.7",
@@ -2930,13 +3422,13 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2930
3422
  })
2931
3423
  })
2932
3424
  ]
2933
- }), /* @__PURE__ */ m("div", {
3425
+ }), /* @__PURE__ */ h("div", {
2934
3426
  className: "tp-month-picker-grid",
2935
3427
  role: "listbox",
2936
3428
  "aria-label": "Month",
2937
3429
  children: _.map((e, t) => {
2938
- let n = t + 1, r = d.year === p && d.month === n;
2939
- return /* @__PURE__ */ m("button", {
3430
+ let n = t + 1, r = d.year === f && d.month === n;
3431
+ return /* @__PURE__ */ h("button", {
2940
3432
  type: "button",
2941
3433
  role: "option",
2942
3434
  "aria-selected": r,
@@ -2947,7 +3439,7 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2947
3439
  })
2948
3440
  })]
2949
3441
  });
2950
- }, Pe = [
3442
+ }, qe = [
2951
3443
  "Sun",
2952
3444
  "Mon",
2953
3445
  "Tue",
@@ -2955,7 +3447,7 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2955
3447
  "Thu",
2956
3448
  "Fri",
2957
3449
  "Sat"
2958
- ], Fe = [
3450
+ ], Je = [
2959
3451
  "日",
2960
3452
  "一",
2961
3453
  "二",
@@ -2964,29 +3456,29 @@ var xe = ({ icon: e, variant: t = "glass", size: i = "md", badge: a, disabled: o
2964
3456
  "五",
2965
3457
  "六"
2966
3458
  ];
2967
- function Ie(e) {
3459
+ function Ye(e) {
2968
3460
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
2969
3461
  }
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), [
3462
+ var Xe = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], locale: i = "en", onChange: a, className: o = "", style: s }) => {
3463
+ let c = d(() => n ?? t ?? e ?? new Date(2026, 10, 23), [
2972
3464
  n,
2973
3465
  t,
2974
3466
  e
2975
- ]), l = e !== void 0, [d, p] = f(() => t ?? c), g = Ie(l ? e : d), _ = u(() => {
3467
+ ]), l = e !== void 0, [u, f] = p(() => t ?? c), m = Ye(l ? e : u), _ = d(() => {
2976
3468
  let e = [];
2977
3469
  for (let t = 6; t >= 0; t--) e.push(new Date(c.getFullYear(), c.getMonth(), c.getDate() - t));
2978
3470
  return e;
2979
- }, [c]), v = i === "zh" ? Fe : Pe, y = u(() => new Set(r), [r]), b = (e) => {
2980
- l || p(e), a?.(e);
3471
+ }, [c]), v = i === "zh" ? Je : qe, y = d(() => new Set(r), [r]), b = (e) => {
3472
+ l || f(e), a?.(e);
2981
3473
  };
2982
- return /* @__PURE__ */ m("div", {
3474
+ return /* @__PURE__ */ h("div", {
2983
3475
  className: `tp-last7-picker ${o}`.trim(),
2984
3476
  role: "listbox",
2985
3477
  "aria-label": "Last 7 Days",
2986
3478
  style: s,
2987
3479
  children: _.map((e) => {
2988
- let t = Ie(e), n = t === g, r = y.has(t);
2989
- return /* @__PURE__ */ h("button", {
3480
+ let t = Ye(e), n = t === m, r = y.has(t);
3481
+ return /* @__PURE__ */ g("button", {
2990
3482
  type: "button",
2991
3483
  role: "option",
2992
3484
  "aria-selected": n,
@@ -2994,15 +3486,15 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
2994
3486
  className: `tp-last7-day ${n ? "tp-last7-day--selected" : ""}`.trim(),
2995
3487
  onClick: () => b(e),
2996
3488
  children: [
2997
- /* @__PURE__ */ m("span", {
3489
+ /* @__PURE__ */ h("span", {
2998
3490
  className: "tp-last7-weekday",
2999
3491
  children: v[e.getDay()]
3000
3492
  }),
3001
- /* @__PURE__ */ m("span", {
3493
+ /* @__PURE__ */ h("span", {
3002
3494
  className: "tp-last7-num",
3003
3495
  children: e.getDate()
3004
3496
  }),
3005
- /* @__PURE__ */ m("span", {
3497
+ /* @__PURE__ */ h("span", {
3006
3498
  className: `tp-last7-dot ${r ? "tp-last7-dot--visible" : ""}`.trim(),
3007
3499
  "aria-hidden": "true"
3008
3500
  })
@@ -3010,64 +3502,64 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
3010
3502
  }, t);
3011
3503
  })
3012
3504
  });
3013
- }, Re = ({ variant: e = "step", items: t, className: n = "", style: r }) => /* @__PURE__ */ m("ol", {
3505
+ }, Ze = ({ variant: e = "step", items: t, className: n = "", style: r }) => /* @__PURE__ */ h("ol", {
3014
3506
  className: `tp-step-text tp-step-text--${e} ${n}`.trim(),
3015
3507
  "data-variant": e,
3016
3508
  style: r,
3017
- children: t.map((t, n) => /* @__PURE__ */ h("li", {
3509
+ children: t.map((t, n) => /* @__PURE__ */ g("li", {
3018
3510
  className: "tp-step-text-item",
3019
- children: [/* @__PURE__ */ m("span", {
3511
+ children: [/* @__PURE__ */ h("span", {
3020
3512
  className: "tp-step-text-marker",
3021
3513
  "aria-hidden": "true",
3022
3514
  children: e === "bullet" ? "•" : e === "numbered" ? `${n + 1}.` : n + 1
3023
- }), /* @__PURE__ */ h("div", {
3515
+ }), /* @__PURE__ */ g("div", {
3024
3516
  className: "tp-step-text-body",
3025
3517
  children: [
3026
- t.title !== void 0 && /* @__PURE__ */ m("div", {
3518
+ t.title !== void 0 && /* @__PURE__ */ h("div", {
3027
3519
  className: "tp-step-text-title",
3028
3520
  children: t.title
3029
3521
  }),
3030
- /* @__PURE__ */ m("div", {
3522
+ /* @__PURE__ */ h("div", {
3031
3523
  className: "tp-step-text-content",
3032
3524
  children: t.text
3033
3525
  }),
3034
- t.note !== void 0 && /* @__PURE__ */ m("div", {
3526
+ t.note !== void 0 && /* @__PURE__ */ h("div", {
3035
3527
  className: "tp-step-text-note",
3036
3528
  children: t.note
3037
3529
  })
3038
3530
  ]
3039
3531
  })]
3040
3532
  }, 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 }) => {
3533
+ }), Qe = ({ variant: e = "linear", percent: t, tone: n = "focus", size: r = 64, strokeWidth: i = 6, showValue: a = !0, label: o, className: s = "", style: c }) => {
3042
3534
  let l = Math.max(0, Math.min(100, Math.round(t)));
3043
3535
  if (e === "circular") {
3044
3536
  let e = Math.max(8, (r - i) / 2), t = 2 * Math.PI * e, u = t * (1 - l / 100);
3045
- return /* @__PURE__ */ h("div", {
3537
+ return /* @__PURE__ */ g("div", {
3046
3538
  className: `tp-progress tp-progress--circular tp-progress--tone-${n} ${s}`.trim(),
3047
3539
  role: "progressbar",
3048
3540
  "aria-valuenow": l,
3049
3541
  "aria-valuemin": 0,
3050
3542
  "aria-valuemax": 100,
3051
3543
  style: c,
3052
- children: [/* @__PURE__ */ h("div", {
3544
+ children: [/* @__PURE__ */ g("div", {
3053
3545
  className: "tp-progress-ring-wrap",
3054
3546
  style: {
3055
3547
  width: r,
3056
3548
  height: r
3057
3549
  },
3058
- children: [/* @__PURE__ */ h("svg", {
3550
+ children: [/* @__PURE__ */ g("svg", {
3059
3551
  width: r,
3060
3552
  height: r,
3061
3553
  viewBox: `0 0 ${r} ${r}`,
3062
3554
  "aria-hidden": "true",
3063
- children: [/* @__PURE__ */ m("circle", {
3555
+ children: [/* @__PURE__ */ h("circle", {
3064
3556
  cx: r / 2,
3065
3557
  cy: r / 2,
3066
3558
  r: e,
3067
3559
  fill: "none",
3068
3560
  stroke: "var(--tp-divider)",
3069
3561
  strokeWidth: i
3070
- }), /* @__PURE__ */ m("circle", {
3562
+ }), /* @__PURE__ */ h("circle", {
3071
3563
  cx: r / 2,
3072
3564
  cy: r / 2,
3073
3565
  r: e,
@@ -3079,64 +3571,65 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
3079
3571
  strokeDashoffset: u,
3080
3572
  transform: `rotate(-90 ${r / 2} ${r / 2})`
3081
3573
  })]
3082
- }), a && /* @__PURE__ */ h("span", {
3574
+ }), a && /* @__PURE__ */ g("span", {
3083
3575
  className: "tp-progress-ring-val",
3084
3576
  children: [l, "%"]
3085
3577
  })]
3086
- }), o !== void 0 && /* @__PURE__ */ m("div", {
3578
+ }), o !== void 0 && /* @__PURE__ */ h("div", {
3087
3579
  className: "tp-progress-label",
3088
3580
  children: o
3089
3581
  })]
3090
3582
  });
3091
3583
  }
3092
- return /* @__PURE__ */ h("div", {
3584
+ return /* @__PURE__ */ g("div", {
3093
3585
  className: `tp-progress tp-progress--linear tp-progress--tone-${n} ${s}`.trim(),
3094
3586
  role: "progressbar",
3095
3587
  "aria-valuenow": l,
3096
3588
  "aria-valuemin": 0,
3097
3589
  "aria-valuemax": 100,
3098
3590
  style: c,
3099
- children: [(o !== void 0 || a) && /* @__PURE__ */ h("div", {
3591
+ children: [(o !== void 0 || a) && /* @__PURE__ */ g("div", {
3100
3592
  className: "tp-progress-head",
3101
- children: [/* @__PURE__ */ m("span", {
3593
+ children: [/* @__PURE__ */ h("span", {
3102
3594
  className: "tp-progress-label",
3103
3595
  children: o
3104
- }), a && /* @__PURE__ */ h("span", {
3596
+ }), a && /* @__PURE__ */ g("span", {
3105
3597
  className: "tp-progress-pct",
3106
3598
  children: [l, "%"]
3107
3599
  })]
3108
- }), /* @__PURE__ */ m("div", {
3600
+ }), /* @__PURE__ */ h("div", {
3109
3601
  className: "tp-progress-track",
3110
- children: /* @__PURE__ */ m("div", {
3602
+ children: /* @__PURE__ */ h("div", {
3111
3603
  className: "tp-progress-fill",
3112
3604
  style: { width: `${l}%` }
3113
3605
  })
3114
3606
  })]
3115
3607
  });
3116
- }, Be = ({ variant: e = "text", width: t, height: n, lines: r = 3, animated: i = !0, className: a = "", style: o }) => {
3117
- let s = i ? "tp-skeleton-item--animated" : "";
3118
- if (e === "card") return /* @__PURE__ */ h("div", {
3119
- className: `tp-skeleton-card ${a}`.trim(),
3608
+ }, $e = ({ variant: e = "text", width: t, height: n, lines: r = 3, animated: i = !0, className: a = "", style: o }) => {
3609
+ let s = i ? "tp-skeleton--animated" : "";
3610
+ if (e === "card") return /* @__PURE__ */ g("div", {
3611
+ className: `tp-skeleton-card ${s} ${a}`.trim(),
3120
3612
  "aria-busy": "true",
3613
+ "data-animated": String(i),
3121
3614
  style: o,
3122
3615
  children: [
3123
- /* @__PURE__ */ m("div", {
3124
- className: `tp-skeleton-item ${s}`.trim(),
3616
+ /* @__PURE__ */ h("div", {
3617
+ className: "tp-skeleton-item",
3125
3618
  style: {
3126
3619
  width: "48%",
3127
3620
  height: 18
3128
3621
  }
3129
3622
  }),
3130
- /* @__PURE__ */ m("div", {
3131
- className: `tp-skeleton-item ${s}`.trim(),
3623
+ /* @__PURE__ */ h("div", {
3624
+ className: "tp-skeleton-item",
3132
3625
  style: {
3133
3626
  width: "100%",
3134
3627
  height: 64,
3135
3628
  borderRadius: 10
3136
3629
  }
3137
3630
  }),
3138
- /* @__PURE__ */ m("div", {
3139
- className: `tp-skeleton-item ${s}`.trim(),
3631
+ /* @__PURE__ */ h("div", {
3632
+ className: "tp-skeleton-item",
3140
3633
  style: {
3141
3634
  width: "76%",
3142
3635
  height: 12
@@ -3146,9 +3639,10 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
3146
3639
  });
3147
3640
  if (e === "circle") {
3148
3641
  let e = t ?? n ?? 40;
3149
- return /* @__PURE__ */ m("span", {
3642
+ return /* @__PURE__ */ h("span", {
3150
3643
  "aria-busy": "true",
3151
- className: `tp-skeleton-item tp-skeleton-item--circle ${s} ${a}`.trim(),
3644
+ "data-animated": String(i),
3645
+ className: `tp-skeleton-item tp-skeleton-item--circle ${s} ${i ? "tp-skeleton-item--animated" : ""} ${a}`.trim(),
3152
3646
  style: {
3153
3647
  width: e,
3154
3648
  height: e,
@@ -3156,46 +3650,48 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
3156
3650
  }
3157
3651
  });
3158
3652
  }
3159
- return e === "rect" ? /* @__PURE__ */ m("div", {
3653
+ return e === "rect" ? /* @__PURE__ */ h("div", {
3160
3654
  "aria-busy": "true",
3161
- className: `tp-skeleton-item ${s} ${a}`.trim(),
3655
+ "data-animated": String(i),
3656
+ className: `tp-skeleton-item ${s} ${i ? "tp-skeleton-item--animated" : ""} ${a}`.trim(),
3162
3657
  style: {
3163
3658
  width: t ?? "100%",
3164
3659
  height: n ?? 80,
3165
3660
  ...o
3166
3661
  }
3167
- }) : /* @__PURE__ */ m("div", {
3168
- className: `tp-skeleton-text-group ${a}`.trim(),
3662
+ }) : /* @__PURE__ */ h("div", {
3663
+ className: `tp-skeleton-text-group ${s} ${a}`.trim(),
3169
3664
  "aria-busy": "true",
3665
+ "data-animated": String(i),
3170
3666
  style: o,
3171
- children: Array.from({ length: Math.max(1, r) }).map((e, i) => /* @__PURE__ */ m("div", {
3172
- className: `tp-skeleton-item ${s}`.trim(),
3667
+ children: Array.from({ length: Math.max(1, r) }).map((e, i) => /* @__PURE__ */ h("div", {
3668
+ className: "tp-skeleton-item",
3173
3669
  style: {
3174
3670
  width: i === r - 1 && r > 1 ? "68%" : t ?? "100%",
3175
3671
  height: n ?? 13
3176
3672
  }
3177
3673
  }, i))
3178
3674
  });
3179
- }, Ve = ({ steps: e, current: t, direction: n = "horizontal", className: r = "", style: i }) => /* @__PURE__ */ m("ol", {
3675
+ }, et = ({ steps: e, current: t, direction: n = "horizontal", className: r = "", style: i }) => /* @__PURE__ */ h("ol", {
3180
3676
  className: `tp-stepper tp-stepper--${n} ${r}`.trim(),
3181
3677
  "data-direction": n,
3182
3678
  style: i,
3183
3679
  children: e.map((n, r) => {
3184
3680
  let i = r < t ? "done" : r === t ? "active" : "pending";
3185
- return /* @__PURE__ */ h("li", {
3681
+ return /* @__PURE__ */ g("li", {
3186
3682
  className: `tp-stepper-item tp-stepper-item--${i}`,
3187
3683
  "aria-current": i === "active" ? "step" : void 0,
3188
- children: [/* @__PURE__ */ h("div", {
3684
+ children: [/* @__PURE__ */ g("div", {
3189
3685
  className: "tp-stepper-node-row",
3190
- children: [/* @__PURE__ */ m("span", {
3686
+ children: [/* @__PURE__ */ h("span", {
3191
3687
  className: "tp-stepper-circle",
3192
- children: i === "done" ? /* @__PURE__ */ m("svg", {
3688
+ children: i === "done" ? /* @__PURE__ */ h("svg", {
3193
3689
  width: "12",
3194
3690
  height: "12",
3195
3691
  viewBox: "0 0 12 12",
3196
3692
  fill: "none",
3197
3693
  "aria-hidden": "true",
3198
- children: /* @__PURE__ */ m("path", {
3694
+ children: /* @__PURE__ */ h("path", {
3199
3695
  d: "M2.5 6.2L5 8.7L9.5 3.6",
3200
3696
  stroke: "currentColor",
3201
3697
  strokeWidth: "1.9",
@@ -3203,74 +3699,74 @@ var Le = ({ value: e, defaultValue: t, referenceDate: n, markedDates: r = [], lo
3203
3699
  strokeLinejoin: "round"
3204
3700
  })
3205
3701
  }) : r + 1
3206
- }), r < e.length - 1 && /* @__PURE__ */ m("span", {
3702
+ }), r < e.length - 1 && /* @__PURE__ */ h("span", {
3207
3703
  className: "tp-stepper-line",
3208
3704
  "aria-hidden": "true"
3209
3705
  })]
3210
- }), /* @__PURE__ */ h("div", {
3706
+ }), /* @__PURE__ */ g("div", {
3211
3707
  className: "tp-stepper-meta",
3212
- children: [/* @__PURE__ */ m("div", {
3708
+ children: [/* @__PURE__ */ h("div", {
3213
3709
  className: "tp-stepper-title",
3214
3710
  children: n.title
3215
- }), n.description !== void 0 && /* @__PURE__ */ m("div", {
3711
+ }), n.description !== void 0 && /* @__PURE__ */ h("div", {
3216
3712
  className: "tp-stepper-desc",
3217
3713
  children: n.description
3218
3714
  })]
3219
3715
  })]
3220
3716
  }, n.key);
3221
3717
  })
3222
- }), He = ({ inset: e = !1, label: t, spacing: n = "md", className: r = "", style: i }) => /* @__PURE__ */ h("div", {
3718
+ }), tt = ({ inset: e = !1, label: t, spacing: n = "md", className: r = "", style: i }) => /* @__PURE__ */ g("div", {
3223
3719
  role: "separator",
3224
3720
  className: `tp-divider tp-divider--space-${n} ${e ? "tp-divider--inset" : ""} ${t === void 0 ? "" : "tp-divider--with-label"} ${r}`.trim(),
3225
3721
  style: i,
3226
3722
  children: [
3227
- /* @__PURE__ */ m("span", { className: "tp-divider-line" }),
3228
- t !== void 0 && /* @__PURE__ */ m("span", {
3723
+ /* @__PURE__ */ h("span", { className: "tp-divider-line" }),
3724
+ t !== void 0 && /* @__PURE__ */ h("span", {
3229
3725
  className: "tp-divider-label",
3230
3726
  children: t
3231
3727
  }),
3232
- t !== void 0 && /* @__PURE__ */ m("span", { className: "tp-divider-line" })
3728
+ t !== void 0 && /* @__PURE__ */ h("span", { className: "tp-divider-line" })
3233
3729
  ]
3234
3730
  });
3235
3731
  // src/core/components/TPAvatar.tsx
3236
- function Ue(e) {
3732
+ function nt(e) {
3237
3733
  if (!e) return "";
3238
3734
  let t = e.trim().split(/\s+/).filter(Boolean);
3239
3735
  return t.length === 0 ? "" : t.length === 1 ? t[0].slice(0, 2).toUpperCase() : `${t[0][0]}${t[1][0]}`.toUpperCase();
3240
3736
  }
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", {
3737
+ var rt = ({ src: e, name: r, icon: i, size: a = "md", status: o = "none", shape: s = "circle", alt: c, className: l = "", style: u }) => {
3738
+ let d = a === "sm" ? 16 : a === "lg" ? 24 : 20, f = nt(r) || "?";
3739
+ return e ? f = /* @__PURE__ */ h("img", {
3244
3740
  src: e,
3245
- alt: c ?? t ?? "Avatar",
3741
+ alt: c ?? r ?? "Avatar",
3246
3742
  className: "tp-avatar-img"
3247
- }) : i !== void 0 && (f = typeof i == "string" && n(i) ? /* @__PURE__ */ m(r, {
3743
+ }) : i !== void 0 && (f = typeof i == "string" && t(i) ? /* @__PURE__ */ h(n, {
3248
3744
  name: i,
3249
3745
  size: d
3250
- }) : i), /* @__PURE__ */ h("span", {
3746
+ }) : i), /* @__PURE__ */ g("span", {
3251
3747
  className: `tp-avatar tp-avatar--${a} tp-avatar--${s} ${l}`.trim(),
3252
3748
  "data-size": a,
3253
3749
  "data-shape": s,
3254
- "aria-label": e ? void 0 : c ?? t,
3750
+ "aria-label": e ? void 0 : c ?? r,
3255
3751
  style: u,
3256
- children: [f, o !== "none" && /* @__PURE__ */ m("span", {
3752
+ children: [f, o !== "none" && /* @__PURE__ */ h("span", {
3257
3753
  className: `tp-avatar-status tp-avatar-status--${o}`,
3258
3754
  "aria-label": `Status: ${o}`
3259
3755
  })]
3260
3756
  });
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);
3757
+ }, it = ({ 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 }) => {
3758
+ 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) => {
3759
+ let t = e.slice(0, d);
3760
+ m || v(t), o?.(t), t.length === d && s?.(t);
3265
3761
  };
3266
- return /* @__PURE__ */ h("div", {
3762
+ return /* @__PURE__ */ g("div", {
3267
3763
  className: `tp-pin-wrap ${i ? "tp-pin-wrap--error" : ""} ${l}`.trim(),
3268
3764
  style: u,
3269
- children: [/* @__PURE__ */ m("div", {
3765
+ children: [/* @__PURE__ */ h("div", {
3270
3766
  className: "tp-pin-cells",
3271
3767
  role: "group",
3272
3768
  "aria-label": c,
3273
- children: x.map((e, t) => /* @__PURE__ */ m("input", {
3769
+ children: x.map((e, t) => /* @__PURE__ */ h("input", {
3274
3770
  ref: (e) => {
3275
3771
  b.current[t] = e;
3276
3772
  },
@@ -3285,44 +3781,44 @@ var We = ({ src: e, name: t, icon: i, size: a = "md", status: o = "none", shape:
3285
3781
  if (a) return;
3286
3782
  let n = e.target.value.replace(/\s+/g, "");
3287
3783
  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();
3784
+ let e = (y.slice(0, t) + n).slice(0, d);
3785
+ S(e), b.current[Math.min(d - 1, t + n.length)]?.focus();
3290
3786
  return;
3291
3787
  }
3292
3788
  let r = [...x];
3293
- r[t] = n, S(r.join("")), n && t < p - 1 && b.current[t + 1]?.focus();
3789
+ r[t] = n, S(r.join("")), n && t < d - 1 && b.current[t + 1]?.focus();
3294
3790
  },
3295
3791
  onKeyDown: (e) => {
3296
3792
  e.key === "Backspace" && !x[t] && t > 0 && b.current[t - 1]?.focus();
3297
3793
  },
3298
3794
  onPaste: (e) => {
3299
3795
  let t = e.clipboardData.getData("text").replace(/\s+/g, "");
3300
- t && (e.preventDefault(), S(t), b.current[Math.min(p - 1, t.length)]?.focus());
3796
+ t && (e.preventDefault(), S(t), b.current[Math.min(d - 1, t.length)]?.focus());
3301
3797
  }
3302
3798
  }, t))
3303
- }), i && /* @__PURE__ */ m("div", {
3799
+ }), i && /* @__PURE__ */ h("div", {
3304
3800
  className: "tp-pin-error",
3305
3801
  role: "alert",
3306
3802
  children: i
3307
3803
  })]
3308
3804
  });
3309
- }, Ke = ({ tone: e }) => {
3805
+ }, at = ({ tone: e }) => {
3310
3806
  switch (e) {
3311
- case "warning": return /* @__PURE__ */ h("svg", {
3807
+ case "warning": return /* @__PURE__ */ g("svg", {
3312
3808
  width: "20",
3313
3809
  height: "20",
3314
3810
  viewBox: "0 0 24 24",
3315
3811
  fill: "none",
3316
3812
  "aria-hidden": "true",
3317
3813
  children: [
3318
- /* @__PURE__ */ m("circle", {
3814
+ /* @__PURE__ */ h("circle", {
3319
3815
  cx: "12",
3320
3816
  cy: "12",
3321
3817
  r: "9.5",
3322
3818
  stroke: "currentColor",
3323
3819
  strokeWidth: "1.5"
3324
3820
  }),
3325
- /* @__PURE__ */ m("rect", {
3821
+ /* @__PURE__ */ h("rect", {
3326
3822
  x: "11.25",
3327
3823
  y: "7.2",
3328
3824
  width: "1.5",
@@ -3330,7 +3826,7 @@ var We = ({ src: e, name: t, icon: i, size: a = "md", status: o = "none", shape:
3330
3826
  rx: "0.4",
3331
3827
  fill: "currentColor"
3332
3828
  }),
3333
- /* @__PURE__ */ m("rect", {
3829
+ /* @__PURE__ */ h("rect", {
3334
3830
  x: "11.25",
3335
3831
  y: "14.8",
3336
3832
  width: "1.5",
@@ -3340,38 +3836,38 @@ var We = ({ src: e, name: t, icon: i, size: a = "md", status: o = "none", shape:
3340
3836
  })
3341
3837
  ]
3342
3838
  });
3343
- case "alert": return /* @__PURE__ */ h("svg", {
3839
+ case "alert": return /* @__PURE__ */ g("svg", {
3344
3840
  width: "20",
3345
3841
  height: "20",
3346
3842
  viewBox: "0 0 24 24",
3347
3843
  fill: "none",
3348
3844
  "aria-hidden": "true",
3349
- children: [/* @__PURE__ */ m("circle", {
3845
+ children: [/* @__PURE__ */ h("circle", {
3350
3846
  cx: "12",
3351
3847
  cy: "12",
3352
3848
  r: "9.5",
3353
3849
  stroke: "currentColor",
3354
3850
  strokeWidth: "1.5"
3355
- }), /* @__PURE__ */ m("path", {
3851
+ }), /* @__PURE__ */ h("path", {
3356
3852
  d: "M9.2 9.2L14.8 14.8M14.8 9.2L9.2 14.8",
3357
3853
  stroke: "currentColor",
3358
3854
  strokeWidth: "1.6",
3359
3855
  strokeLinecap: "round"
3360
3856
  })]
3361
3857
  });
3362
- case "focus": return /* @__PURE__ */ h("svg", {
3858
+ case "focus": return /* @__PURE__ */ g("svg", {
3363
3859
  width: "20",
3364
3860
  height: "20",
3365
3861
  viewBox: "0 0 24 24",
3366
3862
  fill: "none",
3367
3863
  "aria-hidden": "true",
3368
- children: [/* @__PURE__ */ m("circle", {
3864
+ children: [/* @__PURE__ */ h("circle", {
3369
3865
  cx: "12",
3370
3866
  cy: "12",
3371
3867
  r: "9.5",
3372
3868
  stroke: "currentColor",
3373
3869
  strokeWidth: "1.5"
3374
- }), /* @__PURE__ */ m("path", {
3870
+ }), /* @__PURE__ */ h("path", {
3375
3871
  d: "M8.5 12.2L11 14.7L15.8 9.6",
3376
3872
  stroke: "currentColor",
3377
3873
  strokeWidth: "1.7",
@@ -3379,78 +3875,197 @@ var We = ({ src: e, name: t, icon: i, size: a = "md", status: o = "none", shape:
3379
3875
  strokeLinejoin: "round"
3380
3876
  })]
3381
3877
  });
3382
- default: return /* @__PURE__ */ h("svg", {
3878
+ default: return /* @__PURE__ */ g("svg", {
3383
3879
  width: "20",
3384
3880
  height: "20",
3385
3881
  viewBox: "0 0 24 24",
3386
3882
  fill: "none",
3387
3883
  "aria-hidden": "true",
3388
3884
  children: [
3389
- /* @__PURE__ */ m("circle", {
3885
+ /* @__PURE__ */ h("circle", {
3390
3886
  cx: "12",
3391
3887
  cy: "12",
3392
3888
  r: "9.5",
3393
3889
  stroke: "currentColor",
3394
3890
  strokeWidth: "1.4"
3395
3891
  }),
3396
- /* @__PURE__ */ m("rect", {
3892
+ /* @__PURE__ */ h("rect", {
3397
3893
  x: "11.2",
3398
3894
  y: "8",
3399
3895
  width: "1.5",
3400
3896
  height: "1.5",
3401
3897
  fill: "currentColor"
3402
3898
  }),
3403
- /* @__PURE__ */ m("path", {
3899
+ /* @__PURE__ */ h("path", {
3404
3900
  d: "M11.2 11H12.7V16.5H11.2V11Z",
3405
3901
  fill: "currentColor"
3406
3902
  })
3407
3903
  ]
3408
3904
  });
3409
3905
  }
3410
- }, qe = () => /* @__PURE__ */ m("svg", {
3906
+ }, ot = () => /* @__PURE__ */ h("svg", {
3411
3907
  width: "14",
3412
3908
  height: "14",
3413
3909
  viewBox: "0 0 16 16",
3414
3910
  fill: "none",
3415
3911
  "aria-hidden": "true",
3416
- children: /* @__PURE__ */ m("path", {
3912
+ children: /* @__PURE__ */ h("path", {
3417
3913
  d: "M3.5 3.5L12.5 12.5M12.5 3.5L3.5 12.5",
3418
3914
  stroke: "currentColor",
3419
3915
  strokeWidth: "1.6",
3420
3916
  strokeLinecap: "round"
3421
3917
  })
3422
- }), Je = ({ tone: e = "info", title: t, actionLabel: n, onAction: r, closable: i, onClose: a, icon: o, className: s = "", style: c }) => {
3918
+ }), st = ({ tone: e = "info", title: t, actionLabel: n, onAction: r, closable: i, onClose: a, icon: o, className: s = "", style: c }) => {
3423
3919
  let l = i ?? !!a;
3424
- return /* @__PURE__ */ h("div", {
3920
+ return /* @__PURE__ */ g("div", {
3425
3921
  role: "region",
3426
3922
  "data-tone": e,
3427
3923
  className: `tp-prompt tp-prompt--${e} ${s}`.trim(),
3428
3924
  style: c,
3429
3925
  children: [
3430
- /* @__PURE__ */ m("span", {
3926
+ /* @__PURE__ */ h("span", {
3431
3927
  className: "tp-prompt-icon",
3432
- children: o === void 0 ? /* @__PURE__ */ m(Ke, { tone: e }) : o
3928
+ children: o === void 0 ? /* @__PURE__ */ h(at, { tone: e }) : o
3433
3929
  }),
3434
- /* @__PURE__ */ h("div", {
3930
+ /* @__PURE__ */ g("div", {
3435
3931
  className: "tp-prompt-content",
3436
- children: [/* @__PURE__ */ m("div", {
3932
+ children: [/* @__PURE__ */ h("div", {
3437
3933
  className: "tp-prompt-title",
3438
3934
  children: t
3439
- }), n !== void 0 && /* @__PURE__ */ m("button", {
3935
+ }), n !== void 0 && /* @__PURE__ */ h("button", {
3440
3936
  type: "button",
3441
3937
  className: "tp-prompt-action",
3442
3938
  onClick: r,
3443
3939
  children: n
3444
3940
  })]
3445
3941
  }),
3446
- l && /* @__PURE__ */ m("button", {
3942
+ l && /* @__PURE__ */ h("button", {
3447
3943
  type: "button",
3448
3944
  className: "tp-prompt-close",
3449
3945
  "aria-label": "Dismiss",
3450
3946
  onClick: a,
3451
- children: /* @__PURE__ */ m(qe, {})
3947
+ children: /* @__PURE__ */ h(ot, {})
3452
3948
  })
3453
3949
  ]
3454
3950
  });
3455
- };
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 };
3951
+ }, ct = ({ status: e = "idle", idleText: t = "Load more", loadingText: n = "Loading...", noMoreText: r = "No more data", errorText: i = "Failed to load. Tap to retry", onLoadMore: a, onRetry: o, className: s = "", style: c }) => {
3952
+ let l = [
3953
+ "tp-load-more",
3954
+ `tp-load-more--${e}`,
3955
+ s
3956
+ ].filter(Boolean).join(" ");
3957
+ return /* @__PURE__ */ g("div", {
3958
+ className: l,
3959
+ "data-status": e,
3960
+ style: c,
3961
+ children: [
3962
+ e === "loading" && /* @__PURE__ */ g("span", {
3963
+ className: "tp-load-more-status",
3964
+ role: "status",
3965
+ children: [/* @__PURE__ */ h("span", {
3966
+ className: "tp-load-more-spinner",
3967
+ "aria-hidden": "true"
3968
+ }), /* @__PURE__ */ h("span", { children: n })]
3969
+ }),
3970
+ e === "idle" && /* @__PURE__ */ h("button", {
3971
+ type: "button",
3972
+ className: "tp-load-more-btn",
3973
+ onClick: a,
3974
+ children: t
3975
+ }),
3976
+ e === "error" && /* @__PURE__ */ h("button", {
3977
+ type: "button",
3978
+ className: "tp-load-more-btn tp-load-more-btn--error",
3979
+ onClick: o ?? a,
3980
+ children: i
3981
+ }),
3982
+ e === "no-more" && /* @__PURE__ */ g("span", {
3983
+ className: "tp-load-more-divider",
3984
+ children: [
3985
+ /* @__PURE__ */ h("span", {
3986
+ className: "tp-load-more-line",
3987
+ "aria-hidden": "true"
3988
+ }),
3989
+ /* @__PURE__ */ h("span", {
3990
+ className: "tp-load-more-end-text",
3991
+ children: r
3992
+ }),
3993
+ /* @__PURE__ */ h("span", {
3994
+ className: "tp-load-more-line",
3995
+ "aria-hidden": "true"
3996
+ })
3997
+ ]
3998
+ })
3999
+ ]
4000
+ });
4001
+ }, lt = ({ open: e, title: t, subtitle: n, description: r, bullets: i, confirmText: a = "Got it", onConfirm: o, onClose: s, children: c, className: l = "", style: u }) => /* @__PURE__ */ h($, {
4002
+ open: e,
4003
+ title: t,
4004
+ subtitle: n,
4005
+ onClose: s,
4006
+ footer: /* @__PURE__ */ h(L, {
4007
+ variant: "primary",
4008
+ size: "lg",
4009
+ block: !0,
4010
+ onClick: () => {
4011
+ o?.(), s();
4012
+ },
4013
+ children: a
4014
+ }),
4015
+ children: /* @__PURE__ */ g("div", {
4016
+ className: `tp-info-sheet ${l}`.trim(),
4017
+ style: u,
4018
+ children: [
4019
+ r != null && /* @__PURE__ */ h("p", {
4020
+ className: "tp-info-sheet-desc",
4021
+ children: r
4022
+ }),
4023
+ i && i.length > 0 && /* @__PURE__ */ h("ul", {
4024
+ className: "tp-info-sheet-bullets",
4025
+ children: i.map((e, t) => /* @__PURE__ */ g("li", {
4026
+ className: "tp-info-sheet-bullet",
4027
+ children: [/* @__PURE__ */ h("span", {
4028
+ className: "tp-info-sheet-dot",
4029
+ "aria-hidden": "true"
4030
+ }), /* @__PURE__ */ h("span", {
4031
+ className: "tp-info-sheet-bullet-text",
4032
+ children: e
4033
+ })]
4034
+ }, t))
4035
+ }),
4036
+ c
4037
+ ]
4038
+ })
4039
+ }), ut = ({ open: e, title: t = "Legend", subtitle: n, items: r, columns: i = 1, onClose: a, footer: o, className: s = "", style: c }) => /* @__PURE__ */ h($, {
4040
+ open: e,
4041
+ title: t,
4042
+ subtitle: n,
4043
+ onClose: a,
4044
+ footer: o,
4045
+ children: /* @__PURE__ */ h("div", {
4046
+ className: `tp-legend-sheet tp-legend-sheet--cols-${i} ${s}`.trim(),
4047
+ "data-columns": i,
4048
+ style: c,
4049
+ children: r.map((e) => /* @__PURE__ */ g("div", {
4050
+ className: "tp-legend-sheet-item",
4051
+ children: [/* @__PURE__ */ h("div", {
4052
+ className: "tp-legend-sheet-marker",
4053
+ "aria-hidden": "true",
4054
+ children: e.icon ? e.icon : e.badge ? e.badge : /* @__PURE__ */ h("span", {
4055
+ className: "tp-legend-sheet-swatch",
4056
+ style: e.color ? { backgroundColor: e.color } : void 0
4057
+ })
4058
+ }), /* @__PURE__ */ g("div", {
4059
+ className: "tp-legend-sheet-content",
4060
+ children: [/* @__PURE__ */ h("div", {
4061
+ className: "tp-legend-sheet-label",
4062
+ children: e.label
4063
+ }), e.description !== void 0 && e.description !== null && /* @__PURE__ */ h("div", {
4064
+ className: "tp-legend-sheet-desc",
4065
+ children: e.description
4066
+ })]
4067
+ })]
4068
+ }, e.key))
4069
+ })
4070
+ });
4071
+ export { F as $, be as A, re as B, je as C, Te as D, Ae as E, ue as F, q as G, te as H, X as I, U as J, K, oe as L, _e as M, me as N, Ce as O, fe as P, I as Q, ae as R, Fe as S, ke as T, Y as U, ne as V, J as W, R as X, z as Y, L as Z, Re as _, it as a, y as at, Le as b, et as c, Ze as d, P as et, Xe as f, Be as g, Ve as h, st as i, x as it, ve as j, $ as k, $e as l, Ue as m, ut as n, T as nt, rt as o, Ke as p, W as q, ct as r, w as rt, tt as s, lt as t, j as tt, Qe as u, ze as v, De as w, Pe as x, Ie as y, ie as z };