@tempots/beatui 0.0.2 → 0.0.3

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.
package/dist/index.es.js CHANGED
@@ -1,1063 +1,1072 @@
1
- var Ye = Object.defineProperty;
2
- var Te = (t) => {
3
- throw TypeError(t);
1
+ var dn = Object.defineProperty;
2
+ var Ne = (n) => {
3
+ throw TypeError(n);
4
4
  };
5
- var Je = (t, r, e) => r in t ? Ye(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
6
- var w = (t, r, e) => Je(t, typeof r != "symbol" ? r + "" : r, e), Ke = (t, r, e) => r.has(t) || Te("Cannot " + e);
7
- var S = (t, r, e) => (Ke(t, r, "read from private field"), e ? e.call(t) : r.get(t)), U = (t, r, e) => r.has(t) ? Te("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e);
8
- import { makeProviderMark as Qe, localStorageProp as Ze, computedOf as $, Use as C, attr as a, html as p, on as m, aria as J, style as d, Value as A, Empty as x, Ensure as We, WithElement as q, OnDispose as K, Fragment as R, input as H, emitValue as v, emitValueAsDate as en, ForEach as pe, OneOfType as nn, emitValueAsNullableDate as tn, emitValueAsNullableDateTime as rn, emitValueAsNumber as oe, prop as P, When as ee, computed as Oe, emitChecked as sn, dataAttr as ae, render as ln, WithBrowserCtx as on } from "@tempots/dom";
9
- import { Use as Yt } from "@tempots/dom";
10
- import { useAppearence as an, WhenInViewport as un, Resource as Fe, ElementRect as de, AutoSelect as cn, WindowSize as pn } from "@tempots/ui";
11
- class dn {
12
- button({ variant: r, size: e, color: n, roundedness: s }) {
13
- const l = [
5
+ var pn = (n, l, e) => l in n ? dn(n, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[l] = e;
6
+ var w = (n, l, e) => pn(n, typeof l != "symbol" ? l + "" : l, e), mn = (n, l, e) => l.has(n) || Ne("Cannot " + e);
7
+ var $ = (n, l, e) => (mn(n, l, "read from private field"), e ? e.call(n) : l.get(n)), Q = (n, l, e) => l.has(n) ? Ne("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(n) : l.set(n, e);
8
+ import { makeProviderMark as gn, localStorageProp as bn, computedOf as y, Use as _, attr as c, html as h, on as m, aria as q, style as d, Value as S, Empty as k, Ensure as Pe, WithElement as z, OnDispose as K, Fragment as U, input as P, emitValue as v, emitValueAsDate as fn, ForEach as be, OneOfType as kn, emitValueAsNullableDate as xn, emitValueAsNullableDateTime as yn, emitValueAsNumber as ie, prop as W, When as le, computed as Fe, emitChecked as vn, dataAttr as he, render as wn, WithBrowserCtx as $n } from "@tempots/dom";
9
+ import { Use as ql } from "@tempots/dom";
10
+ import { useAppearence as Sn, WhenInViewport as _n, Resource as Me, ElementRect as ce, AutoSelect as Cn, WindowSize as En } from "@tempots/ui";
11
+ class Bn {
12
+ button({ variant: l, size: e, color: t, roundedness: o }) {
13
+ const r = [
14
14
  "bc-button",
15
15
  `bu-text-${e}`,
16
16
  `bc-control--padding-${e}`,
17
- `bc-control--rounded-${s}`
17
+ `bc-control--rounded-${o}`
18
18
  ];
19
- switch (r) {
19
+ switch (l) {
20
20
  case "filled":
21
- l.push(`bu-bg--${n}`), l.push(`hover:bu-bg--${n}`);
21
+ r.push(`bu-bg--${t}`), r.push(`hover:bu-bg--${t}`);
22
22
  break;
23
23
  case "light":
24
- l.push(`bu-bg--light-${n}`), l.push(`hover:bu-bg--light-${n}`);
24
+ r.push(`bu-bg--light-${t}`), r.push(`hover:bu-bg--light-${t}`);
25
25
  break;
26
26
  case "outline":
27
- l.push(`bu-border--${n}`), l.push(`hover:bu-bg--light-${n}`);
27
+ r.push(`bu-border--${t}`), r.push(`hover:bu-bg--light-${t}`);
28
28
  break;
29
29
  case "default":
30
- l.push("bu-bg--light-neutral"), l.push(`bu-text--${n}`), l.push("hover:bu-bg--light-base");
30
+ r.push("bu-bg--light-neutral"), r.push(`bu-text--${t}`), r.push("hover:bu-bg--light-base");
31
31
  break;
32
32
  case "text":
33
- l.push("bu-bg--inherit"), l.push(`bu-text--${n}`), l.push("hover:bu-underline");
33
+ r.push("bu-bg--inherit"), r.push(`bu-text--${t}`), r.push("hover:bu-underline");
34
34
  break;
35
35
  }
36
- return l.join(" ");
36
+ return r.join(" ");
37
37
  }
38
- overlay({ effect: r, mode: e }) {
39
- return `bc-overlay bc-overlay--effect-${r} bc-overlay--mode-${e}`;
38
+ overlay({ effect: l, mode: e }) {
39
+ return `bc-overlay bc-overlay--effect-${l} bc-overlay--mode-${e}`;
40
40
  }
41
- icon({ size: r, color: e }) {
42
- const n = ["bc-icon", `bc-icon--${r}`];
43
- return e && n.push(`bu-fg--${e}`), n.join(" ");
41
+ icon({ size: l, color: e }) {
42
+ const t = ["bc-icon", `bc-icon--${l}`];
43
+ return e && t.push(`bu-fg--${e}`), t.join(" ");
44
44
  }
45
- panel({ side: r, color: e, shadow: n }) {
46
- return `bc-panel ${(Array.isArray(r) ? r : [r]).map((l) => `bc-panel--side-${l}`).join(" ")} bu-bg--lighter-${e} bc-panel--shadow-${n}`;
45
+ panel({ side: l, color: e, shadow: t }) {
46
+ return `bc-panel ${(Array.isArray(l) ? l : [l]).map((r) => `bc-panel--side-${r}`).join(" ")} bu-bg--lighter-${e} bc-panel--shadow-${t}`;
47
47
  }
48
- label(r) {
49
- return `bc-label bc-label--${r.type}`;
48
+ label(l) {
49
+ return `bc-label bc-label--${l.type}`;
50
50
  }
51
- inputContainer({ disabled: r, hasError: e }) {
52
- const n = ["bc-input-container"];
53
- return r ? n.push("bc-input-container--disabled") : n.push("bc-input-container--default"), e && n.push("bc-input-container--error"), n.join(" ");
51
+ inputContainer({ disabled: l, hasError: e }) {
52
+ const t = ["bc-input-container"];
53
+ return l ? t.push("bc-input-container--disabled") : t.push("bc-input-container--default"), e && t.push("bc-input-container--error"), t.join(" ");
54
54
  }
55
- controlInputWrapper(r) {
55
+ controlInputWrapper(l) {
56
56
  return ["bc-control-input-wrapper"].join(" ");
57
57
  }
58
58
  controlInputWrapperLabelText({
59
- hasError: r,
59
+ hasError: l,
60
60
  disabled: e
61
61
  }) {
62
- const n = ["bc-control-input-wrapper__label-text"];
63
- return r ? n.push("bc-control-input-wrapper__label-text--error") : e ? n.push("bc-control-input-wrapper__label-text--disabled") : n.push("bc-control-input-wrapper__label-text--default"), n.join(" ");
62
+ const t = ["bc-control-input-wrapper__label-text"];
63
+ return l ? t.push("bc-control-input-wrapper__label-text--error") : e ? t.push("bc-control-input-wrapper__label-text--disabled") : t.push("bc-control-input-wrapper__label-text--default"), t.join(" ");
64
64
  }
65
- tag({ disabled: r, color: e = "base" }) {
66
- const n = ["bc-tag"];
67
- return r ? n.push("bc-tag--disabled") : n.push(`bc-tag--${e}`), n.join(" ");
65
+ tag({ disabled: l, color: e = "base" }) {
66
+ const t = ["bc-tag"];
67
+ return l ? t.push("bc-tag--disabled") : t.push(`bc-tag--${e}`), t.join(" ");
68
68
  }
69
- checkboxInput(r) {
69
+ checkboxInput(l) {
70
70
  return "bc-checkbox-input";
71
71
  }
72
- editableText(r) {
72
+ editableText(l) {
73
73
  return "bc-editable-text";
74
74
  }
75
- numberInput(r) {
75
+ numberInput(l) {
76
76
  return "bc-number-input";
77
77
  }
78
78
  card({
79
- variant: r = "default",
79
+ variant: l = "default",
80
80
  size: e = "md",
81
- roundedness: n = "lg"
81
+ roundedness: t = "lg"
82
82
  }) {
83
- const s = ["bc-card"];
84
- return r !== "default" && s.push(`bc-card--${r}`), e !== "md" && s.push(`bc-card--padding-${e}`), n !== "lg" && s.push(`bc-card--rounded-${n}`), s.join(" ");
83
+ const o = ["bc-card"];
84
+ return l !== "default" && o.push(`bc-card--${l}`), e !== "md" && o.push(`bc-card--padding-${e}`), t !== "lg" && o.push(`bc-card--rounded-${t}`), o.join(" ");
85
85
  }
86
- center({ gap: r = "lg" }) {
86
+ center({ gap: l = "lg" }) {
87
87
  const e = ["bc-center"];
88
- return r !== "lg" && e.push(`bc-center--gap-${r}`), e.join(" ");
88
+ return l !== "lg" && e.push(`bc-center--gap-${l}`), e.join(" ");
89
89
  }
90
90
  sink({
91
- variant: r = "default",
91
+ variant: l = "default",
92
92
  size: e = "md",
93
- roundedness: n = "lg"
93
+ roundedness: t = "lg"
94
94
  }) {
95
- const s = ["bc-sink"];
96
- return r !== "default" && s.push(`bc-sink--${r}`), e !== "md" && s.push(`bc-sink--padding-${e}`), n !== "lg" && s.push(`bc-sink--rounded-${n}`), s.join(" ");
95
+ const o = ["bc-sink"];
96
+ return l !== "default" && o.push(`bc-sink--${l}`), e !== "md" && o.push(`bc-sink--padding-${e}`), t !== "lg" && o.push(`bc-sink--rounded-${t}`), o.join(" ");
97
97
  }
98
- segmentedControl({ size: r = "sm" }) {
99
- const e = ["bc-segmented-control"];
100
- return r !== "sm" && e.push(`bc-segmented-control--size-${r}`), e.join(" ");
98
+ segmentedControl({ size: l = "sm" }) {
99
+ return [
100
+ "bc-segmented-control",
101
+ `bu-text-${l}`,
102
+ `bc-control--padding-${l}`
103
+ ].join(" ");
104
+ }
105
+ toggle({ disabled: l = !1, size: e = "md" }) {
106
+ const t = ["bc-toggle", `bu-text-${e}`, `bc-toggle--${e}`];
107
+ return l && t.push("bc-toggle--disabled"), t.join(" ");
101
108
  }
102
109
  }
103
- const _ = {
104
- mark: Qe("Theme"),
110
+ const C = {
111
+ mark: gn("Theme"),
105
112
  // Create function returns the value and cleanup
106
- create: (t) => {
107
- const r = new dn(), e = an(), n = Ze({
113
+ create: (n) => {
114
+ const l = new Bn(), e = Sn(), t = bn({
108
115
  key: "beatui-appearance-preference",
109
116
  defaultValue: "system"
110
- }), s = () => {
111
- e.dispose(), n.dispose();
112
- }, l = $(
117
+ }), o = () => {
118
+ e.dispose(), t.dispose();
119
+ }, r = y(
113
120
  e,
114
- n
115
- )((c, i) => i === "system" ? c : i);
121
+ t
122
+ )((u, i) => i === "system" ? u : i);
116
123
  return {
117
124
  value: {
118
- theme: r,
119
- appearance: l,
120
- appearancePreference: n,
121
- setAppearancePreference: (c) => {
122
- n.set(c);
125
+ theme: l,
126
+ appearance: r,
127
+ appearancePreference: t,
128
+ setAppearancePreference: (u) => {
129
+ t.set(u);
123
130
  }
124
131
  },
125
- dispose: s
132
+ dispose: o
126
133
  };
127
134
  }
128
- }, ot = () => C(
129
- _,
130
- ({ appearance: t }) => a.class(t.map((r) => `b-${r}`))
135
+ }, Dt = () => _(
136
+ C,
137
+ ({ appearance: n }) => c.class(n.map((l) => `b-${l}`))
131
138
  );
132
- function je({
133
- type: t = "button",
134
- disabled: r,
139
+ function He({
140
+ type: n = "button",
141
+ disabled: l,
135
142
  variant: e = "filled",
136
- size: n = "md",
137
- color: s = "base",
138
- roundedness: l = "sm",
139
- onClick: o = () => {
143
+ size: t = "md",
144
+ color: o = "base",
145
+ roundedness: r = "sm",
146
+ onClick: s = () => {
140
147
  }
141
- }, ...c) {
142
- return C(_, (i) => p.button(
143
- a.type(t),
144
- a.disabled(r),
145
- a.class(
146
- $(
148
+ }, ...u) {
149
+ return _(C, (i) => h.button(
150
+ c.type(n),
151
+ c.disabled(l),
152
+ c.class(
153
+ y(
147
154
  i,
148
155
  e ?? "primary",
149
- n ?? "md",
150
- s,
151
- l
156
+ t ?? "md",
157
+ o,
158
+ r
152
159
  )(
153
- ({ theme: u }, h, g, b, y) => u.button({
154
- variant: h,
160
+ ({ theme: a }, p, g, b, x) => a.button({
161
+ variant: p,
155
162
  size: g,
156
163
  color: b,
157
- roundedness: y
164
+ roundedness: x
158
165
  })
159
166
  )
160
167
  ),
161
- m.click(o),
162
- ...c
168
+ m.click(s),
169
+ ...u
163
170
  ));
164
171
  }
165
- const mn = "bui-icons";
166
- function hn() {
167
- return new Promise((t, r) => {
168
- const e = indexedDB.open(mn, 1);
169
- e.onupgradeneeded = function(n) {
170
- const s = n.target.result;
171
- s.objectStoreNames.contains("icons") || s.createObjectStore("icons");
172
+ const In = "bui-icons";
173
+ function An() {
174
+ return new Promise((n, l) => {
175
+ const e = indexedDB.open(In, 1);
176
+ e.onupgradeneeded = function(t) {
177
+ const o = t.target.result;
178
+ o.objectStoreNames.contains("icons") || o.createObjectStore("icons");
172
179
  }, e.onsuccess = function() {
173
- t(e.result);
180
+ n(e.result);
174
181
  }, e.onerror = function() {
175
- r(e.error);
182
+ l(e.error);
176
183
  };
177
184
  });
178
185
  }
179
- const Pe = hn();
180
- function gn(t, r) {
181
- return new Promise(async (e, n) => {
182
- const l = (await Pe).transaction("icons", "readwrite");
183
- l.objectStore("icons").put(r, t), l.oncomplete = e, l.onerror = n;
186
+ const Le = An();
187
+ function Tn(n, l) {
188
+ return new Promise(async (e, t) => {
189
+ const r = (await Le).transaction("icons", "readwrite");
190
+ r.objectStore("icons").put(l, n), r.oncomplete = e, r.onerror = t;
184
191
  });
185
192
  }
186
- function fn(t) {
187
- return new Promise(async (r, e) => {
188
- const o = (await Pe).transaction("icons", "readonly").objectStore("icons").get(t);
189
- o.onsuccess = function() {
190
- r(o.result);
191
- }, o.onerror = e;
193
+ function On(n) {
194
+ return new Promise(async (l, e) => {
195
+ const s = (await Le).transaction("icons", "readonly").objectStore("icons").get(n);
196
+ s.onsuccess = function() {
197
+ l(s.result);
198
+ }, s.onerror = e;
192
199
  });
193
200
  }
194
- async function bn(t) {
195
- const r = `https://api.iconify.design/${t}.svg`;
196
- return fetch(r).then((e) => {
201
+ async function Vn(n) {
202
+ const l = `https://api.iconify.design/${n}.svg`;
203
+ return fetch(l).then((e) => {
197
204
  if (e.status === 200)
198
205
  return e.text();
199
- throw new Error(`Failed to load icon: ${t}`);
206
+ throw new Error(`Failed to load icon: ${n}`);
200
207
  });
201
208
  }
202
- async function xn(t) {
203
- const r = t.replace(":", "/"), e = await fn(r);
209
+ async function jn(n) {
210
+ const l = n.replace(":", "/"), e = await On(l);
204
211
  if (e)
205
212
  return e;
206
- const n = await bn(r);
207
- return await gn(r, n), n;
213
+ const t = await Vn(l);
214
+ return await Tn(l, t), t;
208
215
  }
209
- function Q({ icon: t, size: r = "md", color: e, title: n }, ...s) {
210
- return C(_, ({ theme: l }) => p.span(
211
- a.class(
212
- $(
213
- l,
216
+ function Z({ icon: n, size: l = "md", color: e, title: t }, ...o) {
217
+ return _(C, ({ theme: r }) => h.span(
218
+ c.class(
219
+ y(
214
220
  r,
221
+ l,
215
222
  e
216
- )((o, c, i) => o.icon({ size: c, color: i }))
223
+ )((s, u, i) => s.icon({ size: u, color: i }))
217
224
  ),
218
- J.label(n),
219
- un(
225
+ q.label(t),
226
+ _n(
220
227
  { once: !0 },
221
- () => Fe({
222
- request: t,
223
- load: ({ request: o }) => xn(o),
228
+ () => Me({
229
+ request: n,
230
+ load: ({ request: s }) => jn(s),
224
231
  mapError: String
225
232
  })({
226
- success: (o) => p.span(
233
+ success: (s) => h.span(
227
234
  d.width("100%"),
228
235
  d.height("100%"),
229
- a.innerHTML(o)
236
+ c.innerHTML(s)
230
237
  ),
231
- loading: () => p.span(a.class("animate-spin"), "↻"),
232
- failure: (o) => p.span(a.title(o), a.class("text-red-500"), "🚫")
238
+ loading: () => h.span(c.class("animate-spin"), "↻"),
239
+ failure: (s) => h.span(c.title(s), c.class("text-red-500"), "🚫")
233
240
  })
234
241
  ),
235
- ...s
242
+ ...o
236
243
  ));
237
244
  }
238
- const yn = ({
239
- disabled: t,
240
- value: r,
245
+ const Nn = ({
246
+ disabled: n,
247
+ value: l,
241
248
  color: e = "base",
242
- onClose: n
249
+ onClose: t
243
250
  }) => {
244
- const s = A.map(t ?? !1, (o) => o), l = A.map(e ?? "base", (o) => o);
245
- return C(_, (o) => p.span(
246
- a.class(
247
- $(
248
- o,
251
+ const o = S.map(n ?? !1, (s) => s), r = S.map(e ?? "base", (s) => s);
252
+ return _(C, (s) => h.span(
253
+ c.class(
254
+ y(
249
255
  s,
250
- l
256
+ o,
257
+ r
251
258
  )(
252
- ({ theme: c }, i, u) => c.tag({
259
+ ({ theme: u }, i, a) => u.tag({
253
260
  disabled: i,
254
- color: u
261
+ color: a
255
262
  })
256
263
  )
257
264
  ),
258
- p.span(a.class("bc-tag__text"), r),
259
- n != null ? p.button(
260
- a.disabled(t),
261
- a.class("bc-tag__close"),
262
- p.span("×"),
263
- m.click(() => n == null ? void 0 : n(A.get(r)))
264
- ) : x
265
+ h.span(c.class("bc-tag__text"), l),
266
+ t != null ? h.button(
267
+ c.disabled(n),
268
+ c.class("bc-tag__close"),
269
+ h.span("×"),
270
+ m.click(() => t == null ? void 0 : t(S.get(l)))
271
+ ) : k
265
272
  ));
266
- }, at = (...t) => C(
267
- _,
268
- ({ theme: r }) => p.span(a.class(r.label({ type: "emphasis" })), ...t)
269
- ), vn = (...t) => C(
270
- _,
271
- ({ theme: r }) => p.span(a.class(r.label({ type: "default" })), ...t)
272
- ), wn = (...t) => C(
273
- _,
274
- ({ theme: r }) => p.span(a.class(r.label({ type: "muted" })), ...t)
275
- ), ut = (...t) => C(
276
- _,
277
- ({ theme: r }) => p.span(a.class(r.label({ type: "error" })), ...t)
278
- ), $n = p.span(
279
- a.class("bc-control-input-wrapper__required"),
273
+ }, Pt = (...n) => _(
274
+ C,
275
+ ({ theme: l }) => h.span(c.class(l.label({ type: "emphasis" })), ...n)
276
+ ), Fn = (...n) => _(
277
+ C,
278
+ ({ theme: l }) => h.span(c.class(l.label({ type: "default" })), ...n)
279
+ ), Hn = (...n) => _(
280
+ C,
281
+ ({ theme: l }) => h.span(c.class(l.label({ type: "muted" })), ...n)
282
+ ), Mt = (...n) => _(
283
+ C,
284
+ ({ theme: l }) => h.span(c.class(l.label({ type: "error" })), ...n)
285
+ ), Wn = h.span(
286
+ c.class("bc-control-input-wrapper__required"),
280
287
  " *"
281
- ), k = ({
282
- required: t,
283
- label: r,
288
+ ), I = ({
289
+ required: n,
290
+ label: l,
284
291
  context: e,
285
- description: n,
286
- content: s,
287
- controller: l
288
- }) => C(_, (o) => p.div(
289
- a.class(
290
- $(
291
- o,
292
- l.hasError,
293
- l.disabled
292
+ description: t,
293
+ content: o,
294
+ controller: r
295
+ }) => _(C, (s) => h.div(
296
+ c.class(
297
+ y(
298
+ s,
299
+ r.hasError,
300
+ r.disabled
294
301
  )(
295
- ({ theme: c }, i, u) => c.controlInputWrapper({
302
+ ({ theme: u }, i, a) => u.controlInputWrapper({
296
303
  hasError: i,
297
- disabled: u
304
+ disabled: a
298
305
  })
299
306
  )
300
307
  ),
301
- r != null || e != null ? p.div(
302
- a.class("bc-control-input-wrapper__header"),
303
- p.label(
304
- a.class("bc-control-input-wrapper__label"),
305
- a.for(l.name),
306
- p.span(
307
- a.class(
308
- $(
309
- o,
310
- l.hasError,
311
- l.disabled
308
+ l != null || e != null ? h.div(
309
+ c.class("bc-control-input-wrapper__header"),
310
+ h.label(
311
+ c.class("bc-control-input-wrapper__label"),
312
+ c.for(r.name),
313
+ h.span(
314
+ c.class(
315
+ y(
316
+ s,
317
+ r.hasError,
318
+ r.disabled
312
319
  )(
313
- ({ theme: c }, i, u) => c.controlInputWrapperLabelText({
320
+ ({ theme: u }, i, a) => u.controlInputWrapperLabelText({
314
321
  hasError: i,
315
- disabled: u
322
+ disabled: a
316
323
  })
317
324
  )
318
325
  ),
319
- r
326
+ l
320
327
  ),
321
- r != null && t ? $n : x
328
+ l != null && n ? Wn : k
322
329
  ),
323
- e != null ? vn(e) : x
324
- ) : x,
325
- p.div(a.class("bc-control-input-wrapper__content"), s),
326
- n != null ? p.div(
327
- a.class("bc-control-input-wrapper__description"),
328
- n
329
- ) : x,
330
- We(
331
- l.error,
332
- (c) => p.div(a.class("bc-control-input-wrapper__error"), c)
330
+ e != null ? Fn(e) : k
331
+ ) : k,
332
+ h.div(c.class("bc-control-input-wrapper__content"), o),
333
+ t != null ? h.div(
334
+ c.class("bc-control-input-wrapper__description"),
335
+ t
336
+ ) : k,
337
+ Pe(
338
+ r.error,
339
+ (u) => h.div(c.class("bc-control-input-wrapper__error"), u)
333
340
  )
334
341
  )), O = ({
335
- child: t,
336
- disabled: r,
342
+ child: n,
343
+ disabled: l,
337
344
  input: e,
338
- before: n,
339
- after: s,
340
- hasError: l,
341
- focusableSelector: o = "input, select, textarea",
342
- growInput: c = !0
345
+ before: t,
346
+ after: o,
347
+ hasError: r,
348
+ focusableSelector: s = "input, select, textarea",
349
+ growInput: u = !0
343
350
  }) => {
344
- const i = A.map(r ?? !1, (u) => u);
345
- return C(_, (u) => p.div(
346
- t,
347
- q((h) => {
351
+ const i = S.map(l ?? !1, (a) => a);
352
+ return _(C, (a) => h.div(
353
+ n,
354
+ z((p) => {
348
355
  const g = () => {
349
- const b = h.querySelector(o);
356
+ const b = p.querySelector(s);
350
357
  b == null || b.focus();
351
358
  };
352
- return h.addEventListener("click", g), K(() => h.removeEventListener("click", g));
359
+ return p.addEventListener("click", g), K(() => p.removeEventListener("click", g));
353
360
  }),
354
- a.class(
355
- $(
356
- u,
361
+ c.class(
362
+ y(
363
+ a,
357
364
  i,
358
- l ?? !1
365
+ r ?? !1
359
366
  )(
360
- ({ theme: h }, g, b) => h.inputContainer({
367
+ ({ theme: p }, g, b) => p.inputContainer({
361
368
  disabled: g,
362
369
  hasError: b
363
370
  })
364
371
  )
365
372
  ),
366
- n != null ? p.span(a.class("bc-input-container__before"), n) : null,
367
- p.div(
368
- a.class("bc-input-container__input"),
369
- a.class(
370
- A.map(
371
- c,
372
- (h) => h ? "bc-input-container__input--grow" : ""
373
+ t != null ? h.span(c.class("bc-input-container__before"), t) : null,
374
+ h.div(
375
+ c.class("bc-input-container__input"),
376
+ c.class(
377
+ S.map(
378
+ u,
379
+ (p) => p ? "bc-input-container__input--grow" : ""
373
380
  )
374
381
  ),
375
382
  e
376
383
  ),
377
- s != null ? p.span(a.class("bc-input-container__after"), s) : null
384
+ o != null ? h.span(c.class("bc-input-container__after"), o) : null
378
385
  ));
379
- }, j = ({
380
- autocomplete: t,
381
- autofocus: r,
386
+ }, V = ({
387
+ autocomplete: n,
388
+ autofocus: l,
382
389
  class: e,
383
- disabled: n,
384
- name: s,
385
- placeholder: l,
386
- id: o
387
- }) => R(
388
- a.autocomplete(t),
389
- a.autofocus(r),
390
- a.class(e),
391
- a.disabled(n),
392
- a.name(s ?? o),
393
- a.placeholder(l),
394
- a.id(o)
395
- ), T = (t) => ({
396
- id: t.name,
397
- disabled: t.disabled,
398
- value: t.value,
399
- hasError: t.hasError
400
- }), me = (t, r) => ({
401
- ...T(t),
402
- value: t.value.map(r)
403
- }), He = (t) => {
404
- const { value: r, onBlur: e, onChange: n } = t;
390
+ disabled: t,
391
+ name: o,
392
+ placeholder: r,
393
+ id: s
394
+ }) => U(
395
+ c.autocomplete(n),
396
+ c.autofocus(l),
397
+ c.class(e),
398
+ c.disabled(t),
399
+ c.name(o ?? s),
400
+ c.placeholder(r),
401
+ c.id(s)
402
+ ), T = (n) => ({
403
+ id: n.name,
404
+ disabled: n.disabled,
405
+ value: n.value,
406
+ hasError: n.hasError
407
+ }), fe = (n, l) => ({
408
+ ...T(n),
409
+ value: n.value.map(l)
410
+ }), Re = (n) => {
411
+ const { value: l, onBlur: e, onChange: t } = n;
405
412
  return O({
406
- ...t,
407
- input: H.date(
408
- j(t),
409
- a.valueAsDate(r),
410
- a.class("bc-input"),
411
- e != null ? m.blur(v(e)) : x,
412
- n != null ? m.change(en(n)) : x
413
+ ...n,
414
+ input: P.date(
415
+ V(n),
416
+ c.valueAsDate(l),
417
+ c.class("bc-input"),
418
+ e != null ? m.blur(v(e)) : k,
419
+ t != null ? m.change(fn(t)) : k
413
420
  )
414
421
  });
415
- }, Sn = (t) => {
416
- const { value: r, onBlur: e, onChange: n, onInput: s } = t;
422
+ }, Dn = (n) => {
423
+ const { value: l, onBlur: e, onChange: t, onInput: o } = n;
417
424
  return O({
418
- ...t,
419
- input: H.text(
420
- j(t),
421
- a.value(r),
422
- a.class("bc-input"),
423
- e != null ? m.blur(v(e)) : x,
424
- n != null ? m.change(v(n)) : x,
425
- s != null ? m.input(v(s)) : x
425
+ ...n,
426
+ input: P.text(
427
+ V(n),
428
+ c.value(l),
429
+ c.class("bc-input"),
430
+ e != null ? m.blur(v(e)) : k,
431
+ t != null ? m.change(v(t)) : k,
432
+ o != null ? m.input(v(o)) : k
426
433
  )
427
434
  });
428
- }, E = (
435
+ }, A = (
429
436
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
430
- (t, r) => () => {
431
- r == null || r();
437
+ (n, l) => () => {
438
+ l == null || l();
432
439
  }
433
- ), D = (t, r) => (e) => {
434
- t.change(e), r == null || r(e);
435
- }, he = (t, r, e) => (n) => {
436
- const s = r(n);
437
- t.change(s), e == null || e(s);
438
- }, ct = (t, r, e) => (n) => {
439
- r(n) ? (t.change(null), e == null || e(null)) : (t.change(n), e == null || e(n));
440
- }, it = (t) => {
441
- const { onBlur: r, onChange: e, ...n } = t;
442
- return k({
443
- ...n,
444
- content: Sn({
445
- ...n,
446
- ...T(n.controller),
447
- onChange: D(n.controller, e),
448
- onBlur: E(n.controller, r)
440
+ ), j = (n, l) => (e) => {
441
+ n.change(e), l == null || l(e);
442
+ }, ke = (n, l, e) => (t) => {
443
+ const o = l(t);
444
+ n.change(o), e == null || e(o);
445
+ }, Lt = (n, l, e) => (t) => {
446
+ l(t) ? (n.change(null), e == null || e(null)) : (n.change(t), e == null || e(t));
447
+ }, Rt = (n) => {
448
+ const { onBlur: l, onChange: e, ...t } = n;
449
+ return I({
450
+ ...t,
451
+ content: Dn({
452
+ ...t,
453
+ ...T(t.controller),
454
+ onChange: j(t.controller, e),
455
+ onBlur: A(t.controller, l)
449
456
  })
450
457
  });
451
- }, pt = (t) => {
452
- const { onBlur: r, onChange: e, ...n } = t;
453
- return k({
454
- ...n,
455
- content: He({
456
- ...n,
457
- ...T(n.controller),
458
- onChange: D(n.controller, e),
459
- onBlur: E(n.controller, r)
458
+ }, qt = (n) => {
459
+ const { onBlur: l, onChange: e, ...t } = n;
460
+ return I({
461
+ ...t,
462
+ content: Re({
463
+ ...t,
464
+ ...T(t.controller),
465
+ onChange: j(t.controller, e),
466
+ onBlur: A(t.controller, l)
460
467
  })
461
468
  });
462
- }, Cn = (t) => {
463
- const r = t.getFullYear(), e = (t.getMonth() + 1).toString().padStart(2, "0"), n = t.getDate().toString().padStart(2, "0"), s = t.getHours().toString().padStart(2, "0"), l = t.getMinutes().toString().padStart(2, "0");
464
- return `${r}-${e}-${n}T${s}:${l}`;
465
- }, _n = (t) => {
466
- const { value: r, onBlur: e, onChange: n } = t;
469
+ }, Pn = (n) => {
470
+ const l = n.getFullYear(), e = (n.getMonth() + 1).toString().padStart(2, "0"), t = n.getDate().toString().padStart(2, "0"), o = n.getHours().toString().padStart(2, "0"), r = n.getMinutes().toString().padStart(2, "0");
471
+ return `${l}-${e}-${t}T${o}:${r}`;
472
+ }, Mn = (n) => {
473
+ const { value: l, onBlur: e, onChange: t } = n;
467
474
  return O({
468
- ...t,
469
- input: H["datetime-local"](
470
- j(t),
471
- a.value(A.map(r, Cn)),
472
- a.class("bc-input"),
473
- e != null ? m.blur(v(e)) : x,
474
- n != null ? m.change(v((s) => n(new Date(s)))) : x
475
+ ...n,
476
+ input: P["datetime-local"](
477
+ V(n),
478
+ c.value(S.map(l, Pn)),
479
+ c.class("bc-input"),
480
+ e != null ? m.blur(v(e)) : k,
481
+ t != null ? m.change(v((o) => t(new Date(o)))) : k
475
482
  )
476
483
  });
477
- }, dt = (t) => {
478
- const { onBlur: r, onChange: e, ...n } = t;
479
- return k({
480
- ...n,
481
- content: _n({
482
- ...n,
483
- ...T(n.controller),
484
- onChange: D(n.controller, e),
485
- onBlur: E(n.controller, r)
484
+ }, zt = (n) => {
485
+ const { onBlur: l, onChange: e, ...t } = n;
486
+ return I({
487
+ ...t,
488
+ content: Mn({
489
+ ...t,
490
+ ...T(t.controller),
491
+ onChange: j(t.controller, e),
492
+ onBlur: A(t.controller, l)
486
493
  })
487
494
  });
488
- }, Bn = (t) => {
489
- const r = {
495
+ }, Ln = (n) => {
496
+ const l = {
490
497
  name: "email",
491
498
  autocomplete: "email",
492
499
  placeholder: "you@company.com",
493
- ...t
494
- }, { value: e, onBlur: n, onChange: s, onInput: l } = r;
500
+ ...n
501
+ }, { value: e, onBlur: t, onChange: o, onInput: r } = l;
495
502
  return O({
496
- ...t,
497
- input: H.email(
498
- j(r),
499
- a.value(e),
500
- a.class("bc-input"),
501
- n != null ? m.blur(v(n)) : x,
502
- s != null ? m.change(v(s)) : x,
503
- l != null ? m.input(v(l)) : x
503
+ ...n,
504
+ input: P.email(
505
+ V(l),
506
+ c.value(e),
507
+ c.class("bc-input"),
508
+ t != null ? m.blur(v(t)) : k,
509
+ o != null ? m.change(v(o)) : k,
510
+ r != null ? m.input(v(r)) : k
504
511
  )
505
512
  });
506
- }, mt = (t) => {
507
- const { onChange: r, onBlur: e, ...n } = t;
508
- return k({
513
+ }, Ut = (n) => {
514
+ const { onChange: l, onBlur: e, ...t } = n;
515
+ return I({
509
516
  label: "Email",
510
- ...n,
511
- content: Bn({
512
- ...n,
513
- ...T(n.controller),
514
- onChange: D(n.controller, r),
515
- onBlur: E(n.controller, e)
517
+ ...t,
518
+ content: Ln({
519
+ ...t,
520
+ ...T(t.controller),
521
+ onChange: j(t.controller, l),
522
+ onBlur: A(t.controller, e)
516
523
  })
517
524
  });
518
- }, ht = {
525
+ }, Gt = {
519
526
  filling: { type: "filling" },
520
527
  submitting: { type: "submitting" },
521
- error: (t) => ({ type: "error", error: t }),
528
+ error: (n) => ({ type: "error", error: n }),
522
529
  success: { type: "success" }
523
- }, ge = "$$tts-exp-", In = (t, r) => q((e) => {
524
- const n = `${ge}${t}`;
525
- return K(A.on(r, (s) => Reflect.set(e, n, s)));
526
- }), gt = (t, r) => {
527
- const e = `${ge}${t}`;
528
- return (n) => {
529
- r(Reflect.get(n.target, e));
530
+ }, xe = "$$tts-exp-", Rn = (n, l) => z((e) => {
531
+ const t = `${xe}${n}`;
532
+ return K(S.on(l, (o) => Reflect.set(e, t, o)));
533
+ }), Xt = (n, l) => {
534
+ const e = `${xe}${n}`;
535
+ return (t) => {
536
+ l(Reflect.get(t.target, e));
530
537
  };
531
- }, kn = (t, r) => {
532
- const e = `${ge}${t}`;
533
- return (n) => {
534
- const s = n.target, l = s.selectedIndex, o = s.options[l];
535
- r(Reflect.get(o, e));
538
+ }, qn = (n, l) => {
539
+ const e = `${xe}${n}`;
540
+ return (t) => {
541
+ const o = t.target, r = o.selectedIndex, s = o.options[r];
542
+ l(Reflect.get(s, e));
536
543
  };
537
- }, ue = {
538
- value: (t, r, e) => ({
544
+ }, de = {
545
+ value: (n, l, e) => ({
539
546
  type: "value",
540
- value: t,
541
- label: r,
547
+ value: n,
548
+ label: l,
542
549
  disabled: e
543
550
  }),
544
- group: (t, r, e) => ({
551
+ group: (n, l, e) => ({
545
552
  type: "group",
546
- group: t,
547
- options: r,
553
+ group: n,
554
+ options: l,
548
555
  disabled: e
549
556
  }),
550
557
  break: { type: "break" },
551
- getOptionValues: (t) => t.flatMap(
552
- (r) => r.type === "group" ? ue.getOptionValues(r.options) : r.type === "break" ? [] : [r.value]
558
+ getOptionValues: (n) => n.flatMap(
559
+ (l) => l.type === "group" ? de.getOptionValues(l.options) : l.type === "break" ? [] : [l.value]
553
560
  ),
554
- contains: (t, r, e = (n, s) => n === s) => ue.getOptionValues(t).some((n) => e(n, r))
555
- }, Ve = (t, r, e) => We(
556
- t,
557
- (n) => nn(n, {
558
- value: (s) => {
559
- const l = $(
560
- s,
561
+ contains: (n, l, e = (t, o) => t === o) => de.getOptionValues(n).some((t) => e(t, l))
562
+ }, qe = (n, l, e) => Pe(
563
+ n,
564
+ (t) => kn(t, {
565
+ value: (o) => {
566
+ const r = y(
567
+ o,
561
568
  e
562
- )((o, c) => r(o.value, c));
563
- return p.option(
564
- K(l.dispose),
565
- a.selected(l),
566
- In("value", s.$.value),
567
- s.$.label
569
+ )((s, u) => l(s.value, u));
570
+ return h.option(
571
+ K(r.dispose),
572
+ c.selected(r),
573
+ Rn("value", o.$.value),
574
+ o.$.label
568
575
  );
569
576
  },
570
- group: (s) => p.optgroup(
571
- a.label(s.$.group),
572
- pe(
573
- s.$.options,
574
- (l) => Ve(
575
- l,
577
+ group: (o) => h.optgroup(
578
+ c.label(o.$.group),
579
+ be(
580
+ o.$.options,
581
+ (r) => qe(
576
582
  r,
583
+ l,
577
584
  e
578
585
  )
579
586
  )
580
587
  ),
581
- break: () => p.hr()
588
+ break: () => h.hr()
582
589
  })
583
- ), Me = (t) => {
590
+ ), ze = (n) => {
584
591
  const {
585
- value: r,
592
+ value: l,
586
593
  onBlur: e,
587
- onChange: n,
588
- options: s,
589
- unselectedLabel: l = "Select one ...",
590
- equality: o = (i, u) => i === u
591
- } = t;
592
- let c;
594
+ onChange: t,
595
+ options: o,
596
+ unselectedLabel: r = "Select one ...",
597
+ equality: s = (i, a) => i === a
598
+ } = n;
599
+ let u;
593
600
  return O({
594
- ...t,
601
+ ...n,
595
602
  child: m.click(() => {
596
- c == null || c.focus(), typeof (c == null ? void 0 : c.showPicker) == "function" && c.showPicker();
603
+ u == null || u.focus(), typeof (u == null ? void 0 : u.showPicker) == "function" && u.showPicker();
597
604
  }),
598
- input: p.select(
599
- q((i) => {
600
- c = i;
601
- const u = new MutationObserver((h) => {
602
- const { removedNodes: g } = h[0];
603
- g.length > 0 && (c.selectedIndex = 0);
605
+ input: h.select(
606
+ z((i) => {
607
+ u = i;
608
+ const a = new MutationObserver((p) => {
609
+ const { removedNodes: g } = p[0];
610
+ g.length > 0 && (u.selectedIndex = 0);
604
611
  });
605
- return u.observe(i, { childList: !0 }), K(() => u.disconnect());
612
+ return a.observe(i, { childList: !0 }), K(() => a.disconnect());
606
613
  }),
607
- j(t),
608
- a.class("focus:outline-none bg-transparent"),
609
- a.class("w-full"),
610
- p.option(a.hidden("hidden"), l),
611
- pe(s, (i) => Ve(i, o, r)),
612
- e != null ? m.blur(e) : x,
613
- n != null ? m.change(kn("value", (i) => n(i))) : x
614
+ V(n),
615
+ c.class("focus:outline-none bg-transparent"),
616
+ c.class("w-full"),
617
+ h.option(c.hidden("hidden"), r),
618
+ be(o, (i) => qe(i, s, l)),
619
+ e != null ? m.blur(e) : k,
620
+ t != null ? m.change(qn("value", (i) => t(i))) : k
614
621
  )
615
622
  });
616
- }, En = (t) => Fe({
617
- request: t.request,
618
- load: t.load,
623
+ }, zn = (n) => Me({
624
+ request: n.request,
625
+ load: n.load,
619
626
  mapError: String
620
627
  })({
621
- success: (r) => {
622
- const e = r.map(
623
- (n) => n.map((s) => typeof s == "object" && "id" in s && "label" in s ? ue.value(s.id, s.label) : s)
628
+ success: (l) => {
629
+ const e = l.map(
630
+ (t) => t.map((o) => typeof o == "object" && "id" in o && "label" in o ? de.value(o.id, o.label) : o)
624
631
  );
625
- return Me({
626
- ...t,
632
+ return ze({
633
+ ...n,
627
634
  options: e,
628
- unselectedLabel: t.unselectedLabel,
629
- equality: t.equality
635
+ unselectedLabel: n.unselectedLabel,
636
+ equality: n.equality
630
637
  });
631
638
  },
632
- loading: () => p.span(a.class("animate-spin"), J.label("Loading..."), "↻")
633
- }), ft = (t) => {
634
- const { onBlur: r, onChange: e, ...n } = t;
635
- return k({
636
- ...n,
637
- content: En({
638
- ...t,
639
- ...T(n.controller),
640
- onChange: D(n.controller, e),
641
- onBlur: E(n.controller, r)
639
+ loading: () => h.span(c.class("animate-spin"), q.label("Loading..."), "↻")
640
+ }), Qt = (n) => {
641
+ const { onBlur: l, onChange: e, ...t } = n;
642
+ return I({
643
+ ...t,
644
+ content: zn({
645
+ ...n,
646
+ ...T(t.controller),
647
+ onChange: j(t.controller, e),
648
+ onBlur: A(t.controller, l)
642
649
  })
643
650
  });
644
- }, bt = (t) => {
645
- const { onBlur: r, onChange: e, ...n } = t;
646
- return k({
647
- ...n,
648
- content: Me({
649
- ...n,
650
- ...T(n.controller),
651
- onChange: D(n.controller, e),
652
- onBlur: E(n.controller, r)
651
+ }, Yt = (n) => {
652
+ const { onBlur: l, onChange: e, ...t } = n;
653
+ return I({
654
+ ...t,
655
+ content: ze({
656
+ ...t,
657
+ ...T(t.controller),
658
+ onChange: j(t.controller, e),
659
+ onBlur: A(t.controller, l)
653
660
  })
654
661
  });
655
- }, Le = (t) => {
656
- const { value: r, onBlur: e, onChange: n } = t;
662
+ }, Ue = (n) => {
663
+ const { value: l, onBlur: e, onChange: t } = n;
657
664
  return O({
658
- ...t,
659
- input: H.date(
660
- j(t),
661
- a.valueAsDate(r),
662
- a.class("bc-input"),
663
- e != null ? m.blur(v(e)) : x,
664
- n != null ? m.change(tn(n)) : x
665
+ ...n,
666
+ input: P.date(
667
+ V(n),
668
+ c.valueAsDate(l),
669
+ c.class("bc-input"),
670
+ e != null ? m.blur(v(e)) : k,
671
+ t != null ? m.change(xn(t)) : k
665
672
  )
666
673
  });
667
- }, xt = (t) => {
668
- const { onBlur: r, onChange: e, ...n } = t;
669
- return k({
670
- ...n,
671
- content: Le({
672
- ...n,
673
- ...T(n.controller),
674
- onChange: D(n.controller, e),
675
- onBlur: E(n.controller, r)
674
+ }, Jt = (n) => {
675
+ const { onBlur: l, onChange: e, ...t } = n;
676
+ return I({
677
+ ...t,
678
+ content: Ue({
679
+ ...t,
680
+ ...T(t.controller),
681
+ onChange: j(t.controller, e),
682
+ onBlur: A(t.controller, l)
676
683
  })
677
684
  });
678
- }, An = (t) => {
679
- const r = t.getFullYear(), e = t.getMonth() + 1, n = t.getDate(), s = t.getHours(), l = t.getMinutes(), o = t.getSeconds();
680
- return `${r}-${e.toString().padStart(2, "0")}-${n.toString().padStart(2, "0")}T${s.toString().padStart(2, "0")}:${l.toString().padStart(2, "0")}:${o.toString().padStart(2, "0")}`;
681
- }, qe = (t) => {
682
- const { value: r, onBlur: e, onChange: n } = t, s = A.map(r, (l) => l != null ? An(l) : null);
685
+ }, Un = (n) => {
686
+ const l = n.getFullYear(), e = n.getMonth() + 1, t = n.getDate(), o = n.getHours(), r = n.getMinutes(), s = n.getSeconds();
687
+ return `${l}-${e.toString().padStart(2, "0")}-${t.toString().padStart(2, "0")}T${o.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}:${s.toString().padStart(2, "0")}`;
688
+ }, Ge = (n) => {
689
+ const { value: l, onBlur: e, onChange: t } = n, o = S.map(l, (r) => r != null ? Un(r) : null);
683
690
  return O({
684
- ...t,
685
- input: H["datetime-local"](
686
- j(t),
687
- a.value(A.map(s, (l) => l ?? null)),
688
- a.class("bc-input"),
689
- e != null ? m.blur(v(e)) : x,
690
- n != null ? m.change(rn(n)) : x
691
+ ...n,
692
+ input: P["datetime-local"](
693
+ V(n),
694
+ c.value(S.map(o, (r) => r ?? null)),
695
+ c.class("bc-input"),
696
+ e != null ? m.blur(v(e)) : k,
697
+ t != null ? m.change(yn(t)) : k
691
698
  )
692
699
  });
693
- }, yt = (t) => {
694
- const { onBlur: r, onChange: e, ...n } = t;
695
- return k({
696
- ...n,
697
- content: qe({
698
- ...n,
699
- ...T(n.controller),
700
- onChange: D(n.controller, e),
701
- onBlur: E(n.controller, r)
700
+ }, Kt = (n) => {
701
+ const { onBlur: l, onChange: e, ...t } = n;
702
+ return I({
703
+ ...t,
704
+ content: Ge({
705
+ ...t,
706
+ ...T(t.controller),
707
+ onChange: j(t.controller, e),
708
+ onBlur: A(t.controller, l)
702
709
  })
703
710
  });
704
- }, vt = (t) => {
705
- const { onBlur: r, onChange: e, ...n } = t;
706
- return k({
707
- ...n,
708
- content: Le({
709
- ...n,
710
- ...me(
711
- n.controller,
712
- (s) => s != null && s !== "" ? new Date(s) : null
711
+ }, Zt = (n) => {
712
+ const { onBlur: l, onChange: e, ...t } = n;
713
+ return I({
714
+ ...t,
715
+ content: Ue({
716
+ ...t,
717
+ ...fe(
718
+ t.controller,
719
+ (o) => o != null && o !== "" ? new Date(o) : null
713
720
  ),
714
- onChange: he(
715
- n.controller,
716
- (s) => s != null ? s.toISOString().split("T")[0] : null,
721
+ onChange: ke(
722
+ t.controller,
723
+ (o) => o != null ? o.toISOString().split("T")[0] : null,
717
724
  e
718
725
  ),
719
- onBlur: E(n.controller, r)
726
+ onBlur: A(t.controller, l)
720
727
  })
721
728
  });
722
- }, Tn = (t) => new Date(t), On = (t) => t.toISOString(), wt = (t) => {
723
- const { onBlur: r, onChange: e, ...n } = t;
724
- return k({
725
- ...n,
726
- content: qe({
727
- ...n,
728
- ...me(
729
- n.controller,
730
- (s) => s != null && s !== "" ? Tn(s) : null
729
+ }, Gn = (n) => new Date(n), Xn = (n) => n.toISOString(), el = (n) => {
730
+ const { onBlur: l, onChange: e, ...t } = n;
731
+ return I({
732
+ ...t,
733
+ content: Ge({
734
+ ...t,
735
+ ...fe(
736
+ t.controller,
737
+ (o) => o != null && o !== "" ? Gn(o) : null
731
738
  ),
732
- onChange: he(
733
- n.controller,
734
- (s) => s != null ? On(s) : null,
739
+ onChange: ke(
740
+ t.controller,
741
+ (o) => o != null ? Xn(o) : null,
735
742
  e
736
743
  ),
737
- onBlur: E(n.controller, r)
744
+ onBlur: A(t.controller, l)
738
745
  })
739
746
  });
740
- }, ne = (t) => typeof t == "string" && t.trim() === "" ? null : t, Re = (t) => t ?? "", jn = (t) => {
741
- const { value: r, onBlur: e, onChange: n, onInput: s, ...l } = t;
747
+ }, oe = (n) => typeof n == "string" && n.trim() === "" ? null : n, Xe = (n) => n ?? "", Qn = (n) => {
748
+ const { value: l, onBlur: e, onChange: t, onInput: o, ...r } = n;
742
749
  return O({
743
- ...l,
744
- input: H.text(
745
- j(l),
746
- a.value(A.map(r, Re)),
747
- a.class("bc-input"),
748
- e != null ? m.blur(e) : x,
749
- n != null ? m.change(v((o) => n(ne(o)))) : x,
750
- s != null ? m.input(v((o) => s(ne(o)))) : x
750
+ ...r,
751
+ input: P.text(
752
+ V(r),
753
+ c.value(S.map(l, Xe)),
754
+ c.class("bc-input"),
755
+ e != null ? m.blur(e) : k,
756
+ t != null ? m.change(v((s) => t(oe(s)))) : k,
757
+ o != null ? m.input(v((s) => o(oe(s)))) : k
751
758
  )
752
759
  });
753
- }, Dn = (t) => {
754
- const { value: r, onBlur: e, onChange: n, onInput: s, rows: l } = t;
760
+ }, Yn = (n) => {
761
+ const { value: l, onBlur: e, onChange: t, onInput: o, rows: r } = n;
755
762
  return O({
756
- ...t,
757
- input: p.textarea(
758
- j(t),
759
- a.rows(l ?? 10),
760
- a.value(A.map(r, Re)),
761
- a.class("bc-input"),
762
- e != null ? m.blur(e) : x,
763
- n != null ? m.change(v((o) => n(ne(o)))) : x,
764
- s != null ? m.input(v((o) => s(ne(o)))) : x
763
+ ...n,
764
+ input: h.textarea(
765
+ V(n),
766
+ c.rows(r ?? 10),
767
+ c.value(S.map(l, Xe)),
768
+ c.class("bc-input"),
769
+ e != null ? m.blur(e) : k,
770
+ t != null ? m.change(v((s) => t(oe(s)))) : k,
771
+ o != null ? m.input(v((s) => o(oe(s)))) : k
765
772
  )
766
773
  });
767
- }, $t = (t) => {
768
- const { onBlur: r, onChange: e, rows: n, ...s } = t;
769
- return k({
770
- ...s,
771
- content: Dn({
772
- ...s,
773
- ...T(s.controller),
774
- rows: n,
775
- onChange: D(s.controller, e),
776
- onBlur: E(s.controller, r)
774
+ }, nl = (n) => {
775
+ const { onBlur: l, onChange: e, rows: t, ...o } = n;
776
+ return I({
777
+ ...o,
778
+ content: Yn({
779
+ ...o,
780
+ ...T(o.controller),
781
+ rows: t,
782
+ onChange: j(o.controller, e),
783
+ onBlur: A(o.controller, l)
777
784
  })
778
785
  });
779
- }, St = (t) => {
780
- const { onBlur: r, onChange: e, ...n } = t;
781
- return k({
782
- ...n,
783
- content: jn({
784
- ...n,
785
- ...T(n.controller),
786
- onChange: D(n.controller, e),
787
- onBlur: E(n.controller, r)
786
+ }, tl = (n) => {
787
+ const { onBlur: l, onChange: e, ...t } = n;
788
+ return I({
789
+ ...t,
790
+ content: Qn({
791
+ ...t,
792
+ ...T(t.controller),
793
+ onChange: j(t.controller, e),
794
+ onBlur: A(t.controller, l)
788
795
  })
789
796
  });
790
- }, Nn = (t) => {
791
- const { value: r, step: e, min: n, max: s, onBlur: l, onChange: o, onInput: c, disabled: i } = t;
792
- return C(_, (u) => O({
793
- ...t,
794
- input: H.number(
795
- j(t),
796
- a.valueAsNumber(r),
797
- a.step(e),
798
- a.min(n),
799
- a.max(s),
800
- a.class("bc-input"),
801
- a.class(
802
- $(
803
- u,
797
+ }, Jn = (n) => {
798
+ const { value: l, step: e, min: t, max: o, onBlur: r, onChange: s, onInput: u, disabled: i } = n;
799
+ return _(C, (a) => O({
800
+ ...n,
801
+ input: P.number(
802
+ V(n),
803
+ c.valueAsNumber(l),
804
+ c.step(e),
805
+ c.min(t),
806
+ c.max(o),
807
+ c.class("bc-input"),
808
+ c.class(
809
+ y(
810
+ a,
804
811
  i ?? !1
805
812
  )(
806
- ({ theme: h }, g) => h.numberInput({
813
+ ({ theme: p }, g) => p.numberInput({
807
814
  disabled: g
808
815
  })
809
816
  )
810
817
  ),
811
- l != null ? m.blur(v(l)) : x,
812
- o != null ? m.change(oe(o)) : x,
813
- c != null ? m.input(oe(c)) : x
818
+ r != null ? m.blur(v(r)) : k,
819
+ s != null ? m.change(ie(s)) : k,
820
+ u != null ? m.input(ie(u)) : k
814
821
  )
815
822
  }));
816
- }, Ct = (t) => {
817
- const { onBlur: r, onChange: e, ...n } = t;
818
- return k({
819
- ...n,
820
- content: Nn({
821
- ...n,
822
- ...T(n.controller),
823
- onChange: D(n.controller, e),
824
- onBlur: E(n.controller, r)
823
+ }, ll = (n) => {
824
+ const { onBlur: l, onChange: e, ...t } = n;
825
+ return I({
826
+ ...t,
827
+ content: Jn({
828
+ ...t,
829
+ ...T(t.controller),
830
+ onChange: j(t.controller, e),
831
+ onBlur: A(t.controller, l)
825
832
  })
826
833
  });
827
- }, Wn = (t) => {
834
+ }, Kn = (n) => {
828
835
  const {
829
- value: r,
836
+ value: l,
830
837
  onBlur: e,
831
- onChange: n,
832
- onInput: s,
833
- before: l,
834
- after: o,
835
- hasError: c,
838
+ onChange: t,
839
+ onInput: o,
840
+ before: r,
841
+ after: s,
842
+ hasError: u,
836
843
  disabled: i,
837
- autocomplete: u,
838
- placeholder: h,
844
+ autocomplete: a,
845
+ placeholder: p,
839
846
  ...g
840
- } = t, b = {
847
+ } = n, b = {
841
848
  name: "password",
842
849
  ...g
843
- }, y = P(!0), B = $(
844
- y,
845
- u
846
- )((V, z) => V ? z ?? "current-password" : "off"), W = $(
847
- y,
848
- h
849
- )((V, z) => V ? "•••••••••••••••" : z ?? "secret password");
850
+ }, x = W(!0), E = y(
851
+ x,
852
+ a
853
+ )((M, G) => M ? G ?? "current-password" : "off"), H = y(
854
+ x,
855
+ p
856
+ )((M, G) => M ? "•••••••••••••••" : G ?? "secret password");
850
857
  return O({
851
- before: l,
858
+ before: r,
852
859
  disabled: i,
853
- hasError: c,
854
- input: p.input(
855
- j({
860
+ hasError: u,
861
+ input: h.input(
862
+ V({
856
863
  ...b,
857
- autocomplete: B,
858
- placeholder: W
864
+ autocomplete: E,
865
+ placeholder: H
859
866
  }),
860
- ee(
861
- y,
862
- () => R(a.type("password")),
863
- () => R(a.type("text"))
867
+ le(
868
+ x,
869
+ () => U(c.type("password")),
870
+ () => U(c.type("text"))
864
871
  ),
865
- a.class("bc-input"),
866
- a.value(r),
867
- e != null ? m.blur(v(e)) : x,
868
- n != null ? m.change(v(n)) : x,
869
- s != null ? m.input(v(s)) : x
872
+ c.class("bc-input"),
873
+ c.value(l),
874
+ e != null ? m.blur(v(e)) : k,
875
+ t != null ? m.change(v(t)) : k,
876
+ o != null ? m.input(v(o)) : k
870
877
  ),
871
- after: o ?? p.button(
872
- a.class("bc-input-container__password-toggle"),
873
- J.label("Toggle password visibility"),
874
- m.click(() => y.update((V) => !V)),
875
- ee(
876
- y,
877
- () => Q({ icon: "line-md--eye" }),
878
- () => Q({ icon: "line-md--eye-off" })
878
+ after: s ?? h.button(
879
+ c.class("bc-input-container__password-toggle"),
880
+ q.label("Toggle password visibility"),
881
+ m.click(() => x.update((M) => !M)),
882
+ le(
883
+ x,
884
+ () => Z({ icon: "line-md--eye" }),
885
+ () => Z({ icon: "line-md--eye-off" })
879
886
  )
880
887
  )
881
888
  });
882
- }, _t = (t) => {
883
- const { onBlur: r, onChange: e, ...n } = t;
884
- return k({
889
+ }, ol = (n) => {
890
+ const { onBlur: l, onChange: e, ...t } = n;
891
+ return I({
885
892
  label: "Password",
886
- ...n,
887
- content: Wn({
888
- ...n,
889
- ...T(n.controller),
890
- onChange: D(n.controller, e),
891
- onBlur: E(n.controller, r)
893
+ ...t,
894
+ content: Kn({
895
+ ...t,
896
+ ...T(t.controller),
897
+ onChange: j(t.controller, e),
898
+ onBlur: A(t.controller, l)
892
899
  })
893
900
  });
894
901
  };
895
- function Fn(t, r) {
896
- return t.length === r.length && t.every((e, n) => e === r[n]);
902
+ function Zn(n, l) {
903
+ return n.length === l.length && n.every((e, t) => e === l[t]);
897
904
  }
898
- function Bt({
899
- segments: t,
900
- activeSegment: r = null,
905
+ function rl({
906
+ segments: n,
907
+ activeSegment: l = null,
901
908
  onSegmentChange: e,
902
- size: n = "sm"
909
+ size: t = "md"
903
910
  }) {
904
- const s = A.toSignal(r ?? null).deriveProp(), l = P(
905
- t.map(() => 0),
906
- Fn
911
+ const o = S.toSignal(
912
+ l ?? null
913
+ ).deriveProp(), r = W(
914
+ n.map(() => 0),
915
+ Zn
907
916
  );
908
- return C(_, (o) => p.div(
909
- a.class(
910
- $(
911
- o,
912
- n
917
+ return _(C, (s) => h.div(
918
+ c.class(
919
+ y(
920
+ s,
921
+ t
913
922
  )(
914
- ({ theme: c }, i) => c.segmentedControl({
923
+ ({ theme: u }, i) => u.segmentedControl({
915
924
  size: i
916
925
  })
917
926
  )
918
927
  ),
919
- p.div(
920
- a.class("bc-segmented-control__container"),
928
+ h.div(
929
+ c.class("bc-segmented-control__container"),
921
930
  // sliding tab block
922
- p.div(
923
- a.class("bc-segmented-control__indicator"),
931
+ h.div(
932
+ c.class("bc-segmented-control__indicator"),
924
933
  d.display(
925
- s.map((c) => c == null ? "none" : "block")
934
+ o.map((u) => u == null ? "none" : "block")
926
935
  ),
927
936
  d.width(
928
- Oe(() => `${l.value[s.value ?? 0]}px`, [s, l])
937
+ Fe(() => `${r.value[o.value ?? 0]}px`, [o, r])
929
938
  ),
930
939
  d.left(
931
- Oe(() => `${l.value.slice(0, s.value ?? 0).reduce((i, u) => i + u, 0)}px`, [s, l])
940
+ Fe(() => `${r.value.slice(0, o.value ?? 0).reduce((i, a) => i + a, 0)}px`, [o, r])
932
941
  )
933
942
  ),
934
943
  // clickable buttons
935
- t.map(({ label: c, onSelect: i }, u) => p.button(
944
+ n.map(({ label: u, onSelect: i }, a) => h.button(
936
945
  // { href: href ?? '' },
937
- m.click((h) => {
938
- h.preventDefault(), s.set(u), e == null || e(u), i == null || i();
946
+ m.click((p) => {
947
+ p.preventDefault(), o.set(a), e == null || e(a), i == null || i();
939
948
  }),
940
- a.class("bc-segmented-control__segment"),
941
- a.class(
942
- s.map((h) => h == null || h === u ? "bc-segmented-control__segment--active" : "bc-segmented-control__segment--inactive")
949
+ c.class("bc-segmented-control__segment"),
950
+ c.class(
951
+ o.map((p) => p == null || p === a ? "bc-segmented-control__segment--active" : "bc-segmented-control__segment--inactive")
943
952
  ),
944
- de((h) => (h.on(({ width: g }) => {
945
- l.update((b) => {
946
- const y = [...b];
947
- return y[u] = g, y;
953
+ ce((p) => (p.on(({ width: g }) => {
954
+ r.update((b) => {
955
+ const x = [...b];
956
+ return x[a] = g, x;
948
957
  });
949
- }), c))
958
+ }), u))
950
959
  ))
951
960
  )
952
961
  ));
953
962
  }
954
- const It = (t) => {
955
- const { onBlur: r, onChange: e, ...n } = t;
956
- return k({
957
- ...n,
958
- content: He({
959
- ...n,
960
- ...me(
961
- n.controller,
962
- (s) => new Date(s)
963
+ const sl = (n) => {
964
+ const { onBlur: l, onChange: e, ...t } = n;
965
+ return I({
966
+ ...t,
967
+ content: Re({
968
+ ...t,
969
+ ...fe(
970
+ t.controller,
971
+ (o) => new Date(o)
963
972
  ),
964
- onChange: he(
965
- n.controller,
966
- (s) => s.toISOString(),
973
+ onChange: ke(
974
+ t.controller,
975
+ (o) => o.toISOString(),
967
976
  e
968
977
  ),
969
- onBlur: E(n.controller, r)
978
+ onBlur: A(t.controller, l)
970
979
  })
971
980
  });
972
- }, Pn = (t) => {
973
- const { value: r, onChange: e, onBlur: n } = t, s = P(""), l = (c) => {
974
- e == null || e(A.get(r).filter((i) => i !== c));
975
- }, o = () => {
976
- const c = s.value.trim(), i = A.get(r);
977
- c === "" || i.includes(c) || (s.set(""), e == null || e([...i, c]));
981
+ }, et = (n) => {
982
+ const { value: l, onChange: e, onBlur: t } = n, o = W(""), r = (u) => {
983
+ e == null || e(S.get(l).filter((i) => i !== u));
984
+ }, s = () => {
985
+ const u = o.value.trim(), i = S.get(l);
986
+ u === "" || i.includes(u) || (o.set(""), e == null || e([...i, u]));
978
987
  };
979
988
  return O({
980
- ...t,
981
- input: R(
982
- a.class("bc-input-container__tags"),
983
- pe(r, (c) => yn({ value: c, onClose: () => l(c.value) })),
984
- H.text(
985
- j(t),
986
- a.value(s),
987
- a.class("bc-input bc-input-container__tags-input"),
988
- m.input(v(s.set)),
989
- e != null ? m.change(o) : x,
990
- n != null ? m.blur(n) : x
989
+ ...n,
990
+ input: U(
991
+ c.class("bc-input-container__tags"),
992
+ be(l, (u) => Nn({ value: u, onClose: () => r(u.value) })),
993
+ P.text(
994
+ V(n),
995
+ c.value(o),
996
+ c.class("bc-input bc-input-container__tags-input"),
997
+ m.input(v(o.set)),
998
+ e != null ? m.change(s) : k,
999
+ t != null ? m.blur(t) : k
991
1000
  )
992
1001
  )
993
1002
  });
994
- }, kt = (t) => {
995
- const { onBlur: r, onChange: e, ...n } = t;
996
- return k({
997
- ...n,
998
- content: Pn({
999
- ...n,
1000
- ...T(n.controller),
1001
- onChange: D(n.controller, e),
1002
- onBlur: E(n.controller, r)
1003
+ }, cl = (n) => {
1004
+ const { onBlur: l, onChange: e, ...t } = n;
1005
+ return I({
1006
+ ...t,
1007
+ content: et({
1008
+ ...t,
1009
+ ...T(t.controller),
1010
+ onChange: j(t.controller, e),
1011
+ onBlur: A(t.controller, l)
1003
1012
  })
1004
1013
  });
1005
- }, Hn = (t) => {
1006
- const { value: r, onBlur: e, onChange: n, onInput: s, rows: l } = t;
1014
+ }, nt = (n) => {
1015
+ const { value: l, onBlur: e, onChange: t, onInput: o, rows: r } = n;
1007
1016
  return O({
1008
- ...t,
1009
- input: p.textarea(
1010
- j(t),
1011
- a.rows(l ?? 10),
1012
- a.value(r),
1013
- a.class("bc-input"),
1014
- e != null ? m.blur(v(e)) : x,
1015
- n != null ? m.change(v(n)) : x,
1016
- s != null ? m.input(v(s)) : x
1017
+ ...n,
1018
+ input: h.textarea(
1019
+ V(n),
1020
+ c.rows(r ?? 10),
1021
+ c.value(l),
1022
+ c.class("bc-input"),
1023
+ e != null ? m.blur(v(e)) : k,
1024
+ t != null ? m.change(v(t)) : k,
1025
+ o != null ? m.input(v(o)) : k
1017
1026
  )
1018
1027
  });
1019
- }, Et = (t) => {
1020
- const { onBlur: r, onChange: e, rows: n, ...s } = t;
1021
- return k({
1022
- ...s,
1023
- content: Hn({
1024
- ...s,
1025
- ...T(s.controller),
1026
- rows: n,
1027
- value: s.controller.value,
1028
- onChange: D(s.controller, e),
1029
- onBlur: E(s.controller, r)
1028
+ }, al = (n) => {
1029
+ const { onBlur: l, onChange: e, rows: t, ...o } = n;
1030
+ return I({
1031
+ ...o,
1032
+ content: nt({
1033
+ ...o,
1034
+ ...T(o.controller),
1035
+ rows: t,
1036
+ value: o.controller.value,
1037
+ onChange: j(o.controller, e),
1038
+ onBlur: A(o.controller, l)
1030
1039
  })
1031
1040
  });
1032
1041
  };
1033
- function ze(t) {
1042
+ function Qe(n) {
1034
1043
  return function(e) {
1035
- var s;
1044
+ var o;
1036
1045
  if (e.type === "Valid") return e;
1037
- const n = (s = e.dependencies) == null ? void 0 : s[t];
1038
- return n != null ? { type: "Invalid", ...n } : { type: "Valid" };
1046
+ const t = (o = e.dependencies) == null ? void 0 : o[n];
1047
+ return t != null ? { type: "Invalid", ...t } : { type: "Valid" };
1039
1048
  };
1040
1049
  }
1041
- function At(t) {
1042
- return t.split(".").map((e) => {
1043
- const n = e.match(/^\[(\d+)\]$/);
1044
- return n ? Number(n[1]) : e;
1050
+ function ul(n) {
1051
+ return n.split(".").map((e) => {
1052
+ const t = e.match(/^\[(\d+)\]$/);
1053
+ return t ? Number(t[1]) : e;
1045
1054
  });
1046
1055
  }
1047
- function Vn(t) {
1048
- return typeof t == "number" ? `[${t}]` : `.${t}`;
1056
+ function tt(n) {
1057
+ return typeof n == "number" ? `[${n}]` : `.${n}`;
1049
1058
  }
1050
- function Mn(t) {
1051
- if (t.length === 0) return "";
1052
- const [r, ...e] = t;
1059
+ function lt(n) {
1060
+ if (n.length === 0) return "";
1061
+ const [l, ...e] = n;
1053
1062
  return [
1054
- typeof r == "number" ? `[${r}]` : r,
1055
- ...e.map(Vn)
1063
+ typeof l == "number" ? `[${l}]` : l,
1064
+ ...e.map(tt)
1056
1065
  ].join("");
1057
1066
  }
1058
- var G;
1059
- class te {
1060
- constructor(r, e, n, s, l) {
1067
+ var X;
1068
+ class re {
1069
+ constructor(l, e, t, o, r) {
1061
1070
  w(this, "path");
1062
1071
  w(this, "change");
1063
1072
  w(this, "value");
@@ -1065,63 +1074,63 @@ class te {
1065
1074
  w(this, "error");
1066
1075
  w(this, "hasError");
1067
1076
  w(this, "dependencyErrors");
1068
- U(this, G, {
1069
- disabled: P(!1)
1077
+ Q(this, X, {
1078
+ disabled: W(!1)
1070
1079
  });
1071
1080
  w(this, "parent");
1072
1081
  w(this, "disabled");
1073
1082
  w(this, "disable", () => {
1074
- S(this, G).disabled.set(!0);
1083
+ $(this, X).disabled.set(!0);
1075
1084
  });
1076
1085
  w(this, "enable", () => {
1077
- S(this, G).disabled.set(!1);
1086
+ $(this, X).disabled.set(!1);
1078
1087
  });
1079
- this.path = r, this.change = e, this.value = n, this.status = s, this.error = s.map((o) => o.type === "Invalid" ? o.error : void 0), this.hasError = s.map((o) => o.type === "Invalid"), this.dependencyErrors = s.map(
1080
- (o) => o.type === "Invalid" ? o.dependencies : void 0
1081
- ), this.parent = l, this.disabled = $(
1082
- S(this, G).disabled,
1083
- l.disabled
1084
- )((o, c) => o || c);
1088
+ this.path = l, this.change = e, this.value = t, this.status = o, this.error = o.map((s) => s.type === "Invalid" ? s.error : void 0), this.hasError = o.map((s) => s.type === "Invalid"), this.dependencyErrors = o.map(
1089
+ (s) => s.type === "Invalid" ? s.dependencies : void 0
1090
+ ), this.parent = r, this.disabled = y(
1091
+ $(this, X).disabled,
1092
+ r.disabled
1093
+ )((s, u) => s || u);
1085
1094
  }
1086
1095
  get name() {
1087
- return Mn(this.path);
1096
+ return lt(this.path);
1088
1097
  }
1089
1098
  dispose() {
1090
- S(this, G).disabled.dispose();
1099
+ $(this, X).disabled.dispose();
1091
1100
  }
1092
1101
  }
1093
- G = new WeakMap();
1094
- var M, X;
1095
- const be = class be extends te {
1096
- constructor(e, n, s, l, o) {
1102
+ X = new WeakMap();
1103
+ var L, Y;
1104
+ const ve = class ve extends re {
1105
+ constructor(e, t, o, r, s) {
1097
1106
  super(
1098
1107
  e,
1099
- n,
1100
- s.map((c) => c ?? []),
1101
- l,
1102
- o
1108
+ t,
1109
+ o.map((u) => u ?? []),
1110
+ r,
1111
+ s
1103
1112
  );
1104
1113
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1105
- U(this, M, new Array());
1106
- U(this, X, (e, n) => {
1107
- if (S(this, M)[e])
1108
- return S(this, M)[e];
1109
- const s = async (o) => {
1110
- const c = this.value.value.slice();
1111
- c[e] = o, this.change(c);
1112
- }, l = n(
1114
+ Q(this, L, new Array());
1115
+ Q(this, Y, (e, t) => {
1116
+ if ($(this, L)[e])
1117
+ return $(this, L)[e];
1118
+ const o = async (s) => {
1119
+ const u = this.value.value.slice();
1120
+ u[e] = s, this.change(u);
1121
+ }, r = t(
1113
1122
  [...this.path, e],
1114
- s,
1115
- this.value.map((o) => o[e]),
1116
- this.status.map(ze(e)),
1123
+ o,
1124
+ this.value.map((s) => s[e]),
1125
+ this.status.map(Qe(e)),
1117
1126
  { disabled: this.disabled }
1118
1127
  );
1119
- return S(this, M)[e] = l, l;
1128
+ return $(this, L)[e] = r, r;
1120
1129
  });
1121
1130
  w(this, "length", this.value.map((e) => e.length));
1122
- w(this, "item", (e) => S(this, X).call(this, e, (n, s, l, o, c) => new te(n, s, l, o, c)));
1123
- w(this, "list", (e) => S(this, X).call(this, e, (n, s, l, o, c) => new be(n, s, l, o, c)));
1124
- w(this, "group", (e) => S(this, X).call(this, e, (n, s, l, o, c) => new re(n, s, l, o, c)));
1131
+ w(this, "item", (e) => $(this, Y).call(this, e, (t, o, r, s, u) => new re(t, o, r, s, u)));
1132
+ w(this, "list", (e) => $(this, Y).call(this, e, (t, o, r, s, u) => new ve(t, o, r, s, u)));
1133
+ w(this, "group", (e) => $(this, Y).call(this, e, (t, o, r, s, u) => new se(t, o, r, s, u)));
1125
1134
  w(this, "push", (...e) => {
1126
1135
  this.change([...this.value.value, ...e]);
1127
1136
  });
@@ -1137,385 +1146,488 @@ const be = class be extends te {
1137
1146
  w(this, "removeAt", (e) => {
1138
1147
  this.splice(e, 1);
1139
1148
  });
1140
- w(this, "splice", (e, n) => {
1141
- const s = S(this, M).splice(e, n);
1142
- for (const o of s)
1143
- o.dispose();
1144
- const l = this.value.value.slice();
1145
- l.splice(e, n), this.change(l);
1149
+ w(this, "splice", (e, t) => {
1150
+ const o = $(this, L).splice(e, t);
1151
+ for (const s of o)
1152
+ s.dispose();
1153
+ const r = this.value.value.slice();
1154
+ r.splice(e, t), this.change(r);
1146
1155
  });
1147
1156
  }
1148
1157
  dispose() {
1149
1158
  super.dispose();
1150
- for (const e of S(this, M))
1159
+ for (const e of $(this, L))
1151
1160
  e.dispose();
1152
- S(this, M).length = 0;
1161
+ $(this, L).length = 0;
1153
1162
  }
1154
1163
  };
1155
- M = new WeakMap(), X = new WeakMap();
1156
- let ce = be;
1157
- var L, Y;
1158
- const xe = class xe extends te {
1159
- constructor(e, n, s, l, o) {
1164
+ L = new WeakMap(), Y = new WeakMap();
1165
+ let pe = ve;
1166
+ var R, J;
1167
+ const we = class we extends re {
1168
+ constructor(e, t, o, r, s) {
1160
1169
  super(
1161
1170
  e,
1162
- n,
1163
- s.map((c) => c ?? {}),
1164
- l,
1165
- o
1171
+ t,
1172
+ o.map((u) => u ?? {}),
1173
+ r,
1174
+ s
1166
1175
  );
1167
1176
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1168
- U(this, L, /* @__PURE__ */ new Map());
1169
- U(this, Y, (e, n) => {
1170
- if (S(this, L).has(e))
1171
- return S(this, L).get(e);
1172
- const s = async (o) => {
1177
+ Q(this, R, /* @__PURE__ */ new Map());
1178
+ Q(this, J, (e, t) => {
1179
+ if ($(this, R).has(e))
1180
+ return $(this, R).get(e);
1181
+ const o = async (s) => {
1173
1182
  this.change({
1174
1183
  ...this.value.value,
1175
- [e]: o
1184
+ [e]: s
1176
1185
  });
1177
- }, l = n(
1186
+ }, r = t(
1178
1187
  [...this.path, e],
1179
- s,
1180
- this.value.map((o) => o[e]),
1181
- this.status.map(ze(e)),
1188
+ o,
1189
+ this.value.map((s) => s[e]),
1190
+ this.status.map(Qe(e)),
1182
1191
  { disabled: this.disabled }
1183
1192
  );
1184
- return S(this, L).set(
1193
+ return $(this, R).set(
1185
1194
  e,
1186
- l
1187
- ), l;
1195
+ r
1196
+ ), r;
1188
1197
  });
1189
- w(this, "field", (e) => S(this, Y).call(this, e, (n, s, l, o, c) => new te(n, s, l, o, c)));
1190
- w(this, "list", (e) => S(this, Y).call(this, e, (n, s, l, o, c) => new ce(n, s, l, o, c)));
1191
- w(this, "group", (e) => S(this, Y).call(this, e, (n, s, l, o, c) => new xe(n, s, l, o, c)));
1198
+ w(this, "field", (e) => $(this, J).call(this, e, (t, o, r, s, u) => new re(t, o, r, s, u)));
1199
+ w(this, "list", (e) => $(this, J).call(this, e, (t, o, r, s, u) => new pe(t, o, r, s, u)));
1200
+ w(this, "group", (e) => $(this, J).call(this, e, (t, o, r, s, u) => new we(t, o, r, s, u)));
1192
1201
  }
1193
1202
  dispose() {
1194
1203
  super.dispose();
1195
- for (const e of S(this, L).values())
1204
+ for (const e of $(this, R).values())
1196
1205
  e.dispose();
1197
- S(this, L).clear();
1206
+ $(this, R).clear();
1198
1207
  }
1199
1208
  };
1200
- L = new WeakMap(), Y = new WeakMap();
1201
- let re = xe;
1202
- class Ln extends re {
1209
+ R = new WeakMap(), J = new WeakMap();
1210
+ let se = we;
1211
+ class ot extends se {
1203
1212
  dispose() {
1204
1213
  super.dispose(), this.parent.disabled.dispose(), this.value.dispose(), this.status.dispose();
1205
1214
  }
1206
1215
  }
1207
- const Tt = (t) => {
1208
- const { value: r, onBlur: e, onChange: n, placeholder: s, disabled: l } = t;
1209
- return C(_, (o) => O({
1216
+ const il = (n) => {
1217
+ const { value: l, onBlur: e, onChange: t, placeholder: o, disabled: r } = n;
1218
+ return _(C, (s) => O({
1210
1219
  growInput: !1,
1211
- ...t,
1212
- input: p.span(
1213
- a.class(
1214
- $(
1215
- o,
1216
- l ?? !1
1220
+ ...n,
1221
+ input: h.span(
1222
+ c.class(
1223
+ y(
1224
+ s,
1225
+ r ?? !1
1217
1226
  )(
1218
- ({ theme: c }, i) => c.checkboxInput({
1227
+ ({ theme: u }, i) => u.checkboxInput({
1219
1228
  disabled: i
1220
1229
  })
1221
1230
  )
1222
1231
  ),
1223
- H.checkbox(
1224
- j(t),
1225
- a.checked(r),
1226
- a.class("bc-checkbox-input__checkbox"),
1227
- e != null ? m.blur(v(e)) : x,
1228
- n != null ? m.change(sn(n)) : x
1232
+ P.checkbox(
1233
+ V(n),
1234
+ c.checked(l),
1235
+ c.class("bc-checkbox-input__checkbox"),
1236
+ e != null ? m.blur(v(e)) : k,
1237
+ t != null ? m.change(vn(t)) : k
1229
1238
  ),
1230
- s != null ? p.span(
1231
- a.class("bc-checkbox-input__label"),
1232
- wn(s)
1233
- ) : x
1239
+ o != null ? h.span(
1240
+ c.class("bc-checkbox-input__label"),
1241
+ Hn(o)
1242
+ ) : k
1234
1243
  )
1235
1244
  }));
1236
- }, Ot = ({
1237
- startEditing: t,
1238
- value: r,
1245
+ }, hl = ({
1246
+ startEditing: n,
1247
+ value: l,
1239
1248
  onChange: e,
1240
- placeholder: n
1249
+ placeholder: t
1241
1250
  }) => {
1242
- const s = A.deriveProp(t ?? !1), l = P(!1);
1243
- return C(_, (o) => p.div(
1244
- a.class(
1245
- $(
1246
- o,
1247
- s
1251
+ const o = S.deriveProp(n ?? !1), r = W(!1);
1252
+ return _(C, (s) => h.div(
1253
+ c.class(
1254
+ y(
1255
+ s,
1256
+ o
1248
1257
  )(
1249
- ({ theme: c }, i) => c.editableText({
1258
+ ({ theme: u }, i) => u.editableText({
1250
1259
  isEditing: i
1251
1260
  })
1252
1261
  )
1253
1262
  ),
1254
- ee(
1255
- s,
1256
- () => p.input(
1257
- a.placeholder(n),
1258
- a.value(r),
1259
- a.class("bc-editable-text__input"),
1260
- cn(),
1261
- m.keydown((c) => {
1262
- c.key === "Enter" ? s.set(!1) : c.key === "Escape" && (l.set(!0), s.set(!1));
1263
+ le(
1264
+ o,
1265
+ () => h.input(
1266
+ c.placeholder(t),
1267
+ c.value(l),
1268
+ c.class("bc-editable-text__input"),
1269
+ Cn(),
1270
+ m.keydown((u) => {
1271
+ u.key === "Enter" ? o.set(!1) : u.key === "Escape" && (r.set(!0), o.set(!1));
1263
1272
  }),
1264
1273
  m.blur(
1265
- v((c) => {
1266
- if (s.set(!1), l.value) {
1267
- l.set(!1);
1274
+ v((u) => {
1275
+ if (o.set(!1), r.value) {
1276
+ r.set(!1);
1268
1277
  return;
1269
1278
  }
1270
- e(c);
1279
+ e(u);
1271
1280
  })
1272
1281
  )
1273
1282
  ),
1274
- () => p.span(
1275
- m.click(() => s.set(!0)),
1276
- a.class("bc-editable-text__display"),
1277
- ee(
1278
- A.map(r, (c) => c != null && c.trim() !== ""),
1279
- () => p.span(a.class("bc-editable-text__text"), r),
1280
- () => p.span(
1281
- a.class("bc-editable-text__placeholder"),
1282
- n
1283
+ () => h.span(
1284
+ m.click(() => o.set(!0)),
1285
+ c.class("bc-editable-text__display"),
1286
+ le(
1287
+ S.map(l, (u) => u != null && u.trim() !== ""),
1288
+ () => h.span(c.class("bc-editable-text__text"), l),
1289
+ () => h.span(
1290
+ c.class("bc-editable-text__placeholder"),
1291
+ t
1283
1292
  )
1284
1293
  ),
1285
- p.button(
1286
- a.class("bc-editable-text__edit-button"),
1287
- J.label("Edit"),
1288
- m.click(() => s.set(!0)),
1289
- Q({ icon: "line-md/pencil" })
1294
+ h.button(
1295
+ c.class("bc-editable-text__edit-button"),
1296
+ q.label("Edit"),
1297
+ m.click(() => o.set(!0)),
1298
+ Z({ icon: "line-md/pencil" })
1290
1299
  )
1291
1300
  )
1292
1301
  )
1293
1302
  ));
1294
- };
1295
- function qn(t) {
1296
- function r(e) {
1303
+ }, dl = ({
1304
+ value: n,
1305
+ onChange: l,
1306
+ offLabel: e,
1307
+ onLabel: t,
1308
+ label: o,
1309
+ disabled: r = !1,
1310
+ size: s = "md"
1311
+ }) => _(C, (u) => h.div(
1312
+ c.class(
1313
+ y(
1314
+ u,
1315
+ r ?? !1,
1316
+ s
1317
+ )(
1318
+ ({ theme: i }, a, p) => i.toggle({
1319
+ disabled: a,
1320
+ size: p
1321
+ })
1322
+ )
1323
+ ),
1324
+ c.role("switch"),
1325
+ q.checked(n),
1326
+ m.click(() => {
1327
+ S.get(r) || l(!S.get(n));
1328
+ }),
1329
+ o != null ? h.div(c.class("bc-toggle__label"), o) : null,
1330
+ h.div(
1331
+ c.class("bc-toggle__track"),
1332
+ c.class(
1333
+ S.map(
1334
+ n,
1335
+ (i) => i ? "bc-toggle__track--on" : "bc-toggle__track--off"
1336
+ )
1337
+ ),
1338
+ e != null ? h.div(
1339
+ q.hidden(!0),
1340
+ c.class("bc-toggle__track-label bc-toggle__track-label--off"),
1341
+ c.class(
1342
+ S.map(
1343
+ n,
1344
+ (i) => i ? "bc-toggle__track-label--hidden" : "bc-toggle__track-label--visible"
1345
+ )
1346
+ ),
1347
+ e
1348
+ ) : null,
1349
+ t != null ? h.div(
1350
+ c.class("bc-toggle__track-label bc-toggle__track-label--on"),
1351
+ c.class(
1352
+ S.map(
1353
+ n,
1354
+ (i) => i ? "bc-toggle__track-label--visible" : "bc-toggle__track-label--hidden"
1355
+ )
1356
+ ),
1357
+ t
1358
+ ) : null,
1359
+ ce(
1360
+ (i) => h.div(
1361
+ c.class("bc-toggle__thumb"),
1362
+ c.class(
1363
+ S.map(
1364
+ n,
1365
+ (a) => a ? "bc-toggle__thumb--on" : "bc-toggle__thumb--off"
1366
+ )
1367
+ ),
1368
+ d.transform(
1369
+ y(
1370
+ n,
1371
+ i,
1372
+ s
1373
+ )((a, { width: p }, g) => {
1374
+ const b = (() => {
1375
+ switch (g) {
1376
+ case "xs":
1377
+ return 5;
1378
+ case "sm":
1379
+ return 5.5;
1380
+ case "md":
1381
+ return 6;
1382
+ case "lg":
1383
+ return 7;
1384
+ case "xl":
1385
+ return 8;
1386
+ }
1387
+ })();
1388
+ return a ? `translateX(calc(${p}px - (var(--spacing-base) * ${b})))` : "translateX(0)";
1389
+ })
1390
+ )
1391
+ )
1392
+ )
1393
+ )
1394
+ ));
1395
+ function rt(n) {
1396
+ function l(e) {
1297
1397
  return typeof e == "number" ? e : e.toString();
1298
1398
  }
1299
- return t.map(
1300
- (e) => typeof e == "object" && e.key != null ? r(e.key) : r(e)
1399
+ return n.map(
1400
+ (e) => typeof e == "object" && e.key != null ? l(e.key) : l(e)
1301
1401
  );
1302
1402
  }
1303
- function Rn(t) {
1304
- const r = t.filter((s) => s.path == null || s.path.length === 0).map((s) => s.message), e = t.filter((s) => s.path != null && s.path.length > 0).reduce((s, l) => {
1305
- const o = qn(l.path), c = o.pop();
1306
- let i = s;
1307
- for (const u of o)
1308
- i.dependencies == null && (i.dependencies = {}), i.dependencies[u] == null && (i.dependencies[u] = {}), i = i.dependencies[u];
1309
- return i.dependencies == null && (i.dependencies = {}), i.dependencies[c] = { error: l.message }, s;
1310
- }, {}), n = r.join(`
1403
+ function st(n) {
1404
+ const l = n.filter((o) => o.path == null || o.path.length === 0).map((o) => o.message), e = n.filter((o) => o.path != null && o.path.length > 0).reduce((o, r) => {
1405
+ const s = rt(r.path), u = s.pop();
1406
+ let i = o;
1407
+ for (const a of s)
1408
+ i.dependencies == null && (i.dependencies = {}), i.dependencies[a] == null && (i.dependencies[a] = {}), i = i.dependencies[a];
1409
+ return i.dependencies == null && (i.dependencies = {}), i.dependencies[u] = { error: r.message }, o;
1410
+ }, {}), t = l.join(`
1311
1411
  `);
1312
1412
  return {
1313
1413
  ...e,
1314
- error: n != "" ? n : void 0
1414
+ error: t != "" ? t : void 0
1315
1415
  };
1316
1416
  }
1317
- function Ge(t) {
1318
- return R(a.disabled(t.disabled), a.name(t.name));
1417
+ function Ye(n) {
1418
+ return U(c.disabled(n.disabled), c.name(n.name));
1319
1419
  }
1320
- function jt(t, {
1321
- triggerOn: r = "change"
1420
+ function pl(n, {
1421
+ triggerOn: l = "change"
1322
1422
  } = {}) {
1323
- return R(
1324
- Ge(t),
1325
- a.value(t.value),
1326
- (r === "input" ? m.input : m.change)(v(t.change))
1423
+ return U(
1424
+ Ye(n),
1425
+ c.value(n.value),
1426
+ (l === "input" ? m.input : m.change)(v(n.change))
1327
1427
  );
1328
1428
  }
1329
- function Dt(t, {
1330
- triggerOn: r = "change"
1429
+ function ml(n, {
1430
+ triggerOn: l = "change"
1331
1431
  } = {}) {
1332
- return R(
1333
- Ge(t),
1334
- a.valueAsNumber(t.value),
1335
- (r === "input" ? m.input : m.change)(
1336
- oe(t.change)
1432
+ return U(
1433
+ Ye(n),
1434
+ c.valueAsNumber(n.value),
1435
+ (l === "input" ? m.input : m.change)(
1436
+ ie(n.change)
1337
1437
  )
1338
1438
  );
1339
1439
  }
1340
- function Nt({
1341
- defaultValue: t = {},
1342
- schema: r
1440
+ function gl({
1441
+ defaultValue: n = {},
1442
+ schema: l
1343
1443
  }) {
1344
- const e = P(t), n = P({ type: "Valid" }), s = P(!1), l = async (c) => {
1345
- e.set(c);
1346
- const i = await r["~standard"].validate(c);
1347
- i.issues != null ? n.set({
1444
+ const e = W(n), t = W({ type: "Valid" }), o = W(!1), r = async (u) => {
1445
+ e.set(u);
1446
+ const i = await l["~standard"].validate(u);
1447
+ i.issues != null ? t.set({
1348
1448
  type: "Invalid",
1349
- ...Rn(i.issues)
1350
- }) : n.set({ type: "Valid" });
1449
+ ...st(i.issues)
1450
+ }) : t.set({ type: "Valid" });
1351
1451
  };
1352
- return new Ln([], l, e, n, {
1353
- disabled: s
1452
+ return new ot([], r, e, t, {
1453
+ disabled: o
1354
1454
  });
1355
1455
  }
1356
- const zn = ["!=", "<=", ">=", "<", ">", "="];
1357
- function Gn(t) {
1358
- for (const r of zn)
1359
- if (typeof t == "string" && t.startsWith(r))
1360
- return [r, t.slice(r.length)];
1361
- return ["=", t];
1362
- }
1363
- function Un(t, r, e) {
1364
- const [n, s] = Gn(r), l = t.findIndex((i) => i[1] === s);
1365
- if (l === -1)
1366
- throw new Error(`Breakpoint ${String(s)} not found`);
1367
- const o = t[l][0], c = l < t.length - 1 ? t[l + 1][0] : 1 / 0;
1368
- switch (n) {
1456
+ const ct = ["!=", "<=", ">=", "<", ">", "="];
1457
+ function at(n) {
1458
+ for (const l of ct)
1459
+ if (typeof n == "string" && n.startsWith(l))
1460
+ return [l, n.slice(l.length)];
1461
+ return ["=", n];
1462
+ }
1463
+ function ut(n, l, e) {
1464
+ const [t, o] = at(l), r = n.findIndex((i) => i[1] === o);
1465
+ if (r === -1)
1466
+ throw new Error(`Breakpoint ${String(o)} not found`);
1467
+ const s = n[r][0], u = r < n.length - 1 ? n[r + 1][0] : 1 / 0;
1468
+ switch (t) {
1369
1469
  case "=":
1370
- return e >= o && e < c;
1470
+ return e >= s && e < u;
1371
1471
  case "!=":
1372
- return !(e >= o && e < c);
1472
+ return !(e >= s && e < u);
1373
1473
  case "<=":
1374
- return e <= o;
1474
+ return e <= s;
1375
1475
  case ">=":
1376
- return e >= o;
1476
+ return e >= s;
1377
1477
  case "<":
1378
- return e < o;
1478
+ return e < s;
1379
1479
  case ">":
1380
- return e > o;
1480
+ return e > s;
1381
1481
  default:
1382
1482
  return !1;
1383
1483
  }
1384
1484
  }
1385
- function Wt(t, r) {
1386
- const e = t.findIndex((n) => n[0] > r) - 1;
1387
- return e >= 0 ? t[e][1] : (t.length > 0 && r >= t[0][0], t[0][1]);
1388
- }
1389
- function Ue(t, { breakpoints: r, mode: e = "viewport" }) {
1390
- const s = [...Object.entries(r).map(
1391
- ([o, c]) => [c, o]
1392
- )].sort((o, c) => o[0] - c[0]), l = (o) => {
1393
- const c = o.map(({ width: u }) => {
1394
- const h = s.findIndex((g) => g[0] > u) - 1;
1395
- return h >= 0 ? { width: u, breakpoint: s[h][1] } : s.length > 0 && u >= s[0][0] ? { width: u, breakpoint: s[0][1] } : { width: u, breakpoint: s[0][1] };
1485
+ function bl(n, l) {
1486
+ const e = n.findIndex((t) => t[0] > l) - 1;
1487
+ return e >= 0 ? n[e][1] : (n.length > 0 && l >= n[0][0], n[0][1]);
1488
+ }
1489
+ function Je(n, { breakpoints: l, mode: e = "viewport" }) {
1490
+ const o = [...Object.entries(l).map(
1491
+ ([s, u]) => [u, s]
1492
+ )].sort((s, u) => s[0] - u[0]), r = (s) => {
1493
+ const u = s.map(({ width: a }) => {
1494
+ const p = o.findIndex((g) => g[0] > a) - 1;
1495
+ return p >= 0 ? { width: a, breakpoint: o[p][1] } : o.length > 0 && a >= o[0][0] ? { width: a, breakpoint: o[0][1] } : { width: a, breakpoint: o[0][1] };
1396
1496
  });
1397
- return t({
1398
- value: c,
1399
- breakpoints: r,
1400
- asList: s,
1401
- is: (u, h) => Un(s, u, h)
1497
+ return n({
1498
+ value: u,
1499
+ breakpoints: l,
1500
+ asList: o,
1501
+ is: (a, p) => ut(o, a, p)
1402
1502
  });
1403
1503
  };
1404
- return e === "element" ? de(l) : pn(l);
1504
+ return e === "element" ? ce(r) : En(r);
1405
1505
  }
1406
- let se = NaN;
1407
- function Xn(t, r) {
1408
- return t ? (isNaN(se) && (se = parseFloat(getComputedStyle(document.documentElement).fontSize)), parseFloat(t) * se) : r;
1506
+ let ae = NaN;
1507
+ function it(n, l) {
1508
+ return n ? (isNaN(ae) && (ae = parseFloat(getComputedStyle(document.documentElement).fontSize)), parseFloat(n) * ae) : l;
1409
1509
  }
1410
- function I(t, r, e) {
1411
- return Xn(t.getPropertyValue(r), e);
1510
+ function B(n, l, e) {
1511
+ return it(n.getPropertyValue(l), e);
1412
1512
  }
1413
- function Yn(t) {
1414
- return q((r) => {
1415
- const e = getComputedStyle(r), n = {
1513
+ function ht(n) {
1514
+ return z((l) => {
1515
+ const e = getComputedStyle(l), t = {
1416
1516
  zero: 0,
1417
- xs: I(e, "--breakpoint-xs", 640),
1418
- sm: I(e, "--breakpoint-sm", 768),
1419
- md: I(e, "--breakpoint-md", 1024),
1420
- lg: I(e, "--breakpoint-lg", 1280),
1421
- xl: I(e, "--breakpoint-xl", 1536)
1517
+ xs: B(e, "--breakpoint-xs", 640),
1518
+ sm: B(e, "--breakpoint-sm", 768),
1519
+ md: B(e, "--breakpoint-md", 1024),
1520
+ lg: B(e, "--breakpoint-lg", 1280),
1521
+ xl: B(e, "--breakpoint-xl", 1536)
1422
1522
  };
1423
- return Ue(t, { breakpoints: n });
1523
+ return Je(n, { breakpoints: t });
1424
1524
  });
1425
1525
  }
1426
- function Ft(t) {
1427
- return q((r) => {
1428
- const e = getComputedStyle(r), n = {
1526
+ function fl(n) {
1527
+ return z((l) => {
1528
+ const e = getComputedStyle(l), t = {
1429
1529
  zero: 0,
1430
- "3xs": I(e, "--container-3xs", 256),
1431
- "2xs": I(e, "--container-2xs", 288),
1432
- xs: I(e, "--container-xs", 320),
1433
- sm: I(e, "--container-sm", 384),
1434
- md: I(e, "--container-md", 448),
1435
- lg: I(e, "--container-lg", 512),
1436
- xl: I(e, "--container-xl", 640),
1437
- "2xl": I(e, "--container-2xl", 768),
1438
- "3xl": I(e, "--container-3xl", 1024),
1439
- "4xl": I(e, "--container-4xl", 1280),
1440
- "5xl": I(e, "--container-5xl", 1536),
1441
- "6xl": I(e, "--container-6xl", 2048)
1530
+ "3xs": B(e, "--container-3xs", 256),
1531
+ "2xs": B(e, "--container-2xs", 288),
1532
+ xs: B(e, "--container-xs", 320),
1533
+ sm: B(e, "--container-sm", 384),
1534
+ md: B(e, "--container-md", 448),
1535
+ lg: B(e, "--container-lg", 512),
1536
+ xl: B(e, "--container-xl", 640),
1537
+ "2xl": B(e, "--container-2xl", 768),
1538
+ "3xl": B(e, "--container-3xl", 1024),
1539
+ "4xl": B(e, "--container-4xl", 1280),
1540
+ "5xl": B(e, "--container-5xl", 1536),
1541
+ "6xl": B(e, "--container-6xl", 2048)
1442
1542
  };
1443
- return Ue(t, {
1444
- breakpoints: n,
1543
+ return Je(n, {
1544
+ breakpoints: t,
1445
1545
  mode: "element"
1446
1546
  });
1447
1547
  });
1448
1548
  }
1449
- const fe = (t, r) => {
1450
- const e = setTimeout(t, r);
1549
+ const F = (n) => Object.entries(n), ee = (n, l) => {
1550
+ const e = setTimeout(n, l);
1451
1551
  return () => clearTimeout(e);
1452
1552
  };
1453
- function Jn({
1454
- initialStatus: t = "closed",
1455
- openedAfter: r,
1553
+ function Ke({
1554
+ initialStatus: n = "closed",
1555
+ openedAfter: l,
1456
1556
  closedAfter: e
1457
1557
  }) {
1458
- const n = P(t), s = () => {
1459
- n.set("start-opening");
1460
- }, l = () => {
1461
- n.set("closing");
1462
- }, o = () => {
1463
- n.value === "open" || n.value === "opening" ? l() : s();
1464
- }, c = (b) => {
1465
- b ? s() : l();
1466
- }, i = (b) => n.on((y) => {
1467
- y === "closed" && b();
1558
+ const t = W(n), o = () => {
1559
+ t.set("start-opening");
1560
+ }, r = () => {
1561
+ t.set("closing");
1562
+ }, s = () => {
1563
+ t.value === "open" || t.value === "opening" ? r() : o();
1564
+ }, u = (b) => {
1565
+ b ? o() : r();
1566
+ }, i = (b) => t.on((x) => {
1567
+ x === "closed" && b();
1468
1568
  });
1469
- let u = () => {
1569
+ let a = () => {
1470
1570
  };
1471
- n.on((b) => {
1472
- u(), b === "start-opening" && (u = fe(() => n.set("opening"), 0)), b === "opening" && (u = r(() => n.set("open"))), b === "closing" && (u = e(() => n.set("closed")));
1473
- }), n.onDispose(() => u());
1474
- const h = n.map((b) => b !== "closed"), g = n.map((b) => b === "open" || b === "opening");
1571
+ t.on((b) => {
1572
+ a(), b === "start-opening" && (a = ee(() => t.set("opening"), 0)), b === "opening" && (a = l(() => t.set("open"))), b === "closing" && (a = e(() => t.set("closed")));
1573
+ }), t.onDispose(() => a());
1574
+ const p = t.map((b) => b !== "closed"), g = t.map((b) => b === "open" || b === "opening");
1475
1575
  return {
1476
- status: n,
1477
- open: s,
1478
- close: l,
1479
- toggle: o,
1480
- setOpen: c,
1481
- isOpen: h,
1576
+ status: t,
1577
+ open: o,
1578
+ close: r,
1579
+ toggle: s,
1580
+ setOpen: u,
1581
+ isOpen: p,
1482
1582
  displayOpen: g,
1483
- dispose: () => n.dispose(),
1583
+ dispose: () => t.dispose(),
1484
1584
  onClosed: i
1485
1585
  };
1486
1586
  }
1487
- function De(t, r) {
1587
+ function kl({
1588
+ initialStatus: n = "closed",
1589
+ duration: l,
1590
+ openDuration: e = l ?? 500,
1591
+ closeDuration: t = l ?? 500
1592
+ } = {}) {
1593
+ return Ke({
1594
+ initialStatus: n,
1595
+ openedAfter: (o) => ee(o, e),
1596
+ closedAfter: (o) => ee(o, t)
1597
+ });
1598
+ }
1599
+ function We(n, l) {
1488
1600
  function e() {
1489
- if (t.getAnimations().length === 0) {
1490
- r();
1601
+ if (n.getAnimations().length === 0) {
1602
+ l();
1491
1603
  return;
1492
1604
  }
1493
- t.addEventListener("transitionend", e, { once: !0 });
1605
+ n.addEventListener("transitionend", e, { once: !0 });
1494
1606
  }
1495
- const n = fe(e, 10);
1607
+ const t = ee(e, 10);
1496
1608
  return () => {
1497
- n(), t.removeEventListener("transitionend", e);
1609
+ t(), n.removeEventListener("transitionend", e);
1498
1610
  };
1499
1611
  }
1500
- function ie({
1501
- initialStatus: t = "closed",
1502
- element: r
1612
+ function me({
1613
+ initialStatus: n = "closed",
1614
+ element: l
1503
1615
  } = {}) {
1504
- let e = r;
1616
+ let e = l;
1505
1617
  return {
1506
- setElement: (n) => {
1507
- e = n;
1618
+ setElement: (t) => {
1619
+ e = t;
1508
1620
  },
1509
- ...Jn({
1510
- initialStatus: t,
1511
- openedAfter: (n) => e == null ? (n(), () => {
1512
- }) : De(e, n),
1513
- closedAfter: (n) => e == null ? (n(), () => {
1514
- }) : De(e, n)
1621
+ ...Ke({
1622
+ initialStatus: n,
1623
+ openedAfter: (t) => e == null ? (t(), () => {
1624
+ }) : We(e, t),
1625
+ closedAfter: (t) => e == null ? (t(), () => {
1626
+ }) : We(e, t)
1515
1627
  })
1516
1628
  };
1517
1629
  }
1518
- const F = {
1630
+ const D = {
1519
1631
  banner: {
1520
1632
  zero: 32,
1521
1633
  xs: 32,
@@ -1573,42 +1685,42 @@ const F = {
1573
1685
  xl: 280
1574
1686
  }
1575
1687
  };
1576
- function Ne(t, r) {
1577
- if (typeof t == "number")
1688
+ function De(n, l) {
1689
+ if (typeof n == "number")
1578
1690
  return {
1579
- zero: t,
1580
- xs: t,
1581
- sm: t,
1582
- md: t,
1583
- lg: t,
1584
- xl: t
1691
+ zero: n,
1692
+ xs: n,
1693
+ sm: n,
1694
+ md: n,
1695
+ lg: n,
1696
+ xl: n
1585
1697
  };
1586
1698
  const e = {
1587
- zero: t.zero ?? r.zero,
1588
- xs: t.xs ?? r.xs,
1589
- sm: t.sm ?? r.sm,
1590
- md: t.md ?? r.md,
1591
- lg: t.lg ?? r.lg,
1592
- xl: t.xl ?? r.xl
1699
+ zero: n.zero ?? l.zero,
1700
+ xs: n.xs ?? l.xs,
1701
+ sm: n.sm ?? l.sm,
1702
+ md: n.md ?? l.md,
1703
+ lg: n.lg ?? l.lg,
1704
+ xl: n.xl ?? l.xl
1593
1705
  };
1594
1706
  return e.xs < e.zero && (e.xs = e.zero), e.sm < e.xs && (e.sm = e.xs), e.md < e.sm && (e.md = e.sm), e.lg < e.md && (e.lg = e.md), e.xl < e.lg && (e.xl = e.lg), e;
1595
1707
  }
1596
- function le(t) {
1597
- t = t.filter((r) => r.some((e) => e != null && !e.startsWith("?")));
1598
- for (let r = 0; r < t[0].length; r++)
1599
- t.every((e) => e[r] == null || e[r].startsWith("?")) && (t = t.map((e) => e.filter((n, s) => s !== r)), r--);
1600
- return t = t.map((r) => r.map((e) => e != null && e.startsWith("?") ? e.slice(1) : e)), t;
1708
+ function ue(n) {
1709
+ n = n.filter((l) => l.some((e) => e != null && !e.startsWith("?")));
1710
+ for (let l = 0; l < n[0].length; l++)
1711
+ n.every((e) => e[l] == null || e[l].startsWith("?")) && (n = n.map((e) => e.filter((t, o) => o !== l)), l--);
1712
+ return n = n.map((l) => l.map((e) => e != null && e.startsWith("?") ? e.slice(1) : e)), n;
1601
1713
  }
1602
- function Kn({
1603
- smallBreakpoint: t,
1604
- mediumBreakpoint: r,
1714
+ function dt({
1715
+ smallBreakpoint: n,
1716
+ mediumBreakpoint: l,
1605
1717
  vertical: e,
1606
- horizontal: n,
1607
- is: s
1718
+ horizontal: t,
1719
+ is: o
1608
1720
  }) {
1609
- function l(i) {
1610
- var y;
1611
- let u = [
1721
+ function r(i) {
1722
+ var x;
1723
+ let a = [
1612
1724
  [null],
1613
1725
  [null],
1614
1726
  [null],
@@ -1616,25 +1728,25 @@ function Kn({
1616
1728
  [null],
1617
1729
  [null]
1618
1730
  ];
1619
- const h = [];
1620
- h.push("1fr");
1731
+ const p = [];
1732
+ p.push("1fr");
1621
1733
  const g = [];
1622
- return n.banner && (g.push(n.banner[i] + "px"), u[0][1] = "banner"), (n.header || e.menu || e.aside) && (g.push(
1623
- (((y = n.header) == null ? void 0 : y[i]) ?? F.header[i]) + "px"
1624
- ), u[1][1] = "header"), n.mainHeader && (g.push(n.mainHeader[i] + "px"), u[2][1] = "mainHeader"), g.push("1fr"), u[3][1] = "main", n.mainFooter && (g.push(n.mainFooter[i] + "px"), u[4][1] = "mainFooter"), n.footer && (g.push(n.footer[i] + "px"), u[5][1] = "footer"), u = le(u), {
1625
- columns: h.join(" "),
1734
+ return t.banner && (g.push(t.banner[i] + "px"), a[0][1] = "banner"), (t.header || e.menu || e.aside) && (g.push(
1735
+ (((x = t.header) == null ? void 0 : x[i]) ?? D.header[i]) + "px"
1736
+ ), a[1][1] = "header"), t.mainHeader && (g.push(t.mainHeader[i] + "px"), a[2][1] = "mainHeader"), g.push("1fr"), a[3][1] = "main", t.mainFooter && (g.push(t.mainFooter[i] + "px"), a[4][1] = "mainFooter"), t.footer && (g.push(t.footer[i] + "px"), a[5][1] = "footer"), a = ue(a), {
1737
+ columns: p.join(" "),
1626
1738
  rows: g.join(" "),
1627
- areas: u.map((B) => `"${B.join(" ")}"`).join(`
1739
+ areas: a.map((E) => `"${E.join(" ")}"`).join(`
1628
1740
  `),
1629
1741
  displayMenu: !1,
1630
1742
  displayAside: !1,
1631
- menuWidth: F.menu[i] + "px",
1632
- asideWidth: F.aside[i] + "px"
1743
+ menuWidth: D.menu[i] + "px",
1744
+ asideWidth: D.aside[i] + "px"
1633
1745
  };
1634
1746
  }
1635
- function o(i) {
1636
- var y;
1637
- let u = [
1747
+ function s(i) {
1748
+ var x;
1749
+ let a = [
1638
1750
  [null, null],
1639
1751
  [null, null],
1640
1752
  [null, null],
@@ -1642,24 +1754,24 @@ function Kn({
1642
1754
  [null, null],
1643
1755
  [null, null]
1644
1756
  ];
1645
- const h = [];
1646
- e.menu && (h.push(e.menu[i] + "px"), u[2][0] = "?menu", u[3][0] = "menu", u[4][0] = "?menu"), h.push("1fr");
1757
+ const p = [];
1758
+ e.menu && (p.push(e.menu[i] + "px"), a[2][0] = "?menu", a[3][0] = "menu", a[4][0] = "?menu"), p.push("1fr");
1647
1759
  const g = [];
1648
- return n.banner && (g.push(n.banner[i] + "px"), u[0][0] = "?banner", u[0][1] = "banner"), (n.header || e.aside) && (g.push(
1649
- (((y = n.header) == null ? void 0 : y[i]) ?? F.header[i]) + "px"
1650
- ), u[1][0] = "?header", u[1][1] = "header"), n.mainHeader && (g.push(n.mainHeader[i] + "px"), u[2][1] = "mainHeader"), g.push("1fr"), u[3][1] = "main", n.mainFooter && (g.push(n.mainFooter[i] + "px"), u[4][1] = "mainFooter"), n.footer && (g.push(n.footer[i] + "px"), u[5][0] = "?footer", u[5][1] = "footer"), u = le(u), {
1651
- columns: h.join(" "),
1760
+ return t.banner && (g.push(t.banner[i] + "px"), a[0][0] = "?banner", a[0][1] = "banner"), (t.header || e.aside) && (g.push(
1761
+ (((x = t.header) == null ? void 0 : x[i]) ?? D.header[i]) + "px"
1762
+ ), a[1][0] = "?header", a[1][1] = "header"), t.mainHeader && (g.push(t.mainHeader[i] + "px"), a[2][1] = "mainHeader"), g.push("1fr"), a[3][1] = "main", t.mainFooter && (g.push(t.mainFooter[i] + "px"), a[4][1] = "mainFooter"), t.footer && (g.push(t.footer[i] + "px"), a[5][0] = "?footer", a[5][1] = "footer"), a = ue(a), {
1763
+ columns: p.join(" "),
1652
1764
  rows: g.join(" "),
1653
- areas: u.map((B) => `"${B.join(" ")}"`).join(`
1765
+ areas: a.map((E) => `"${E.join(" ")}"`).join(`
1654
1766
  `),
1655
1767
  displayMenu: !0,
1656
1768
  displayAside: !1,
1657
- menuWidth: F.menu[i] + "px",
1658
- asideWidth: F.aside[i] + "px"
1769
+ menuWidth: D.menu[i] + "px",
1770
+ asideWidth: D.aside[i] + "px"
1659
1771
  };
1660
1772
  }
1661
- function c(i) {
1662
- let u = [
1773
+ function u(i) {
1774
+ let a = [
1663
1775
  [null, null, null],
1664
1776
  [null, null, null],
1665
1777
  [null, null, null],
@@ -1667,106 +1779,106 @@ function Kn({
1667
1779
  [null, null, null],
1668
1780
  [null, null, null]
1669
1781
  ];
1670
- const h = [];
1671
- e.menu && (h.push(e.menu[i] + "px"), u[2][0] = "?menu", u[3][0] = "menu", u[4][0] = "?menu"), h.push("1fr"), e.aside && (h.push(e.aside[i] + "px"), u[2][2] = "?aside", u[3][2] = "aside", u[4][2] = "?aside");
1782
+ const p = [];
1783
+ e.menu && (p.push(e.menu[i] + "px"), a[2][0] = "?menu", a[3][0] = "menu", a[4][0] = "?menu"), p.push("1fr"), e.aside && (p.push(e.aside[i] + "px"), a[2][2] = "?aside", a[3][2] = "aside", a[4][2] = "?aside");
1672
1784
  const g = [];
1673
- return n.banner && (g.push(n.banner[i] + "px"), u[0][0] = "?banner", u[0][1] = "banner", u[0][2] = "?banner"), n.header && (g.push(n.header[i] + "px"), u[1][0] = "?header", u[1][1] = "header", u[1][2] = "?header"), n.mainHeader && (g.push(n.mainHeader[i] + "px"), u[2][1] = "mainHeader"), g.push("1fr"), u[3][1] = "main", n.mainFooter && (g.push(n.mainFooter[i] + "px"), u[4][1] = "mainFooter"), n.footer && (g.push(n.footer[i] + "px"), u[5][0] = "?footer", u[5][1] = "footer", u[5][2] = "?footer"), u = le(u), {
1674
- columns: h.join(" "),
1785
+ return t.banner && (g.push(t.banner[i] + "px"), a[0][0] = "?banner", a[0][1] = "banner", a[0][2] = "?banner"), t.header && (g.push(t.header[i] + "px"), a[1][0] = "?header", a[1][1] = "header", a[1][2] = "?header"), t.mainHeader && (g.push(t.mainHeader[i] + "px"), a[2][1] = "mainHeader"), g.push("1fr"), a[3][1] = "main", t.mainFooter && (g.push(t.mainFooter[i] + "px"), a[4][1] = "mainFooter"), t.footer && (g.push(t.footer[i] + "px"), a[5][0] = "?footer", a[5][1] = "footer", a[5][2] = "?footer"), a = ue(a), {
1786
+ columns: p.join(" "),
1675
1787
  rows: g.join(" "),
1676
- areas: u.map((y) => `"${y.join(" ")}"`).join(`
1788
+ areas: a.map((x) => `"${x.join(" ")}"`).join(`
1677
1789
  `),
1678
1790
  displayMenu: !0,
1679
1791
  displayAside: !0,
1680
- menuWidth: F.menu[i] + "px",
1681
- asideWidth: F.aside[i] + "px"
1792
+ menuWidth: D.menu[i] + "px",
1793
+ asideWidth: D.aside[i] + "px"
1682
1794
  };
1683
1795
  }
1684
1796
  return ({
1685
1797
  width: i,
1686
- breakpoint: u
1687
- }) => s(`<=${t}`, i) ? l(u) : s(`<=${r}`, i) ? o(u) : c(u);
1798
+ breakpoint: a
1799
+ }) => o(`<=${n}`, i) ? r(a) : o(`<=${l}`, i) ? s(a) : u(a);
1688
1800
  }
1689
- const Qn = ["menu", "aside"], Zn = [
1801
+ const pt = ["menu", "aside"], mt = [
1690
1802
  "banner",
1691
1803
  "header",
1692
1804
  "mainHeader",
1693
1805
  "mainFooter",
1694
1806
  "footer"
1695
1807
  ];
1696
- function et(t, { displayMenu: r }, e) {
1697
- return t ? r ? "block" : e ? "float" : "none" : "none";
1808
+ function gt(n, { displayMenu: l }, e) {
1809
+ return n ? l ? "block" : e ? "float" : "none" : "none";
1698
1810
  }
1699
- function nt(t, { displayAside: r }, e) {
1700
- return t ? r ? "block" : e ? "float" : "none" : "none";
1811
+ function bt(n, { displayAside: l }, e) {
1812
+ return n ? l ? "block" : e ? "float" : "none" : "none";
1701
1813
  }
1702
- function Pt({
1703
- smallBreakpoint: t = "sm",
1704
- mediumBreakpoint: r = "md",
1814
+ function xl({
1815
+ smallBreakpoint: n = "sm",
1816
+ mediumBreakpoint: l = "md",
1705
1817
  ...e
1706
1818
  }) {
1707
- return C(_, ({ theme: n }) => {
1708
- const s = Object.fromEntries(
1709
- Qn.filter((o) => e[o]).map(
1710
- (o) => [
1711
- o,
1712
- Ne(e[o].width ?? {}, F[o])
1819
+ return _(C, ({ theme: t }) => {
1820
+ const o = Object.fromEntries(
1821
+ pt.filter((s) => e[s]).map(
1822
+ (s) => [
1823
+ s,
1824
+ De(e[s].width ?? {}, D[s])
1713
1825
  ]
1714
1826
  )
1715
- ), l = Object.fromEntries(
1716
- Zn.filter((o) => e[o]).map(
1717
- (o) => [
1718
- o,
1719
- Ne(
1720
- e[o].height ?? {},
1721
- F[o]
1827
+ ), r = Object.fromEntries(
1828
+ mt.filter((s) => e[s]).map(
1829
+ (s) => [
1830
+ s,
1831
+ De(
1832
+ e[s].height ?? {},
1833
+ D[s]
1722
1834
  )
1723
1835
  ]
1724
1836
  )
1725
1837
  );
1726
- return Yn(({ value: o, is: c }) => {
1727
- var ye, ve, we, $e, Se, Ce, _e, Be, Ie, ke;
1728
- const i = Kn({
1729
- smallBreakpoint: t,
1730
- mediumBreakpoint: r,
1731
- vertical: s,
1732
- horizontal: l,
1733
- is: c
1734
- }), u = o.map(i), h = $(
1735
- l.header != null,
1736
- s.menu != null,
1737
- s.aside != null
1738
- )((f, N, Z) => f || N || Z), g = $(
1739
- s.aside != null,
1740
- u
1741
- )((f, { displayAside: N }) => f && !N), b = $(
1742
- s.menu != null,
1743
- u
1744
- )((f, { displayMenu: N }) => f && !N), y = ie(), B = ie(), W = P(0), V = $(
1745
- s.menu != null,
1746
- u,
1747
- y.isOpen
1748
- )(et), z = $(
1749
- s.aside != null,
1750
- u,
1751
- B.isOpen
1752
- )(nt);
1753
- return p.div(
1838
+ return ht(({ value: s, is: u }) => {
1839
+ var $e, Se, _e, Ce, Ee, Be, Ie, Ae, Te, Oe;
1840
+ const i = dt({
1841
+ smallBreakpoint: n,
1842
+ mediumBreakpoint: l,
1843
+ vertical: o,
1844
+ horizontal: r,
1845
+ is: u
1846
+ }), a = s.map(i), p = y(
1847
+ r.header != null,
1848
+ o.menu != null,
1849
+ o.aside != null
1850
+ )((f, N, ne) => f || N || ne), g = y(
1851
+ o.aside != null,
1852
+ a
1853
+ )((f, { displayAside: N }) => f && !N), b = y(
1854
+ o.menu != null,
1855
+ a
1856
+ )((f, { displayMenu: N }) => f && !N), x = me(), E = me(), H = W(0), M = y(
1857
+ o.menu != null,
1858
+ a,
1859
+ x.isOpen
1860
+ )(gt), G = y(
1861
+ o.aside != null,
1862
+ a,
1863
+ E.isOpen
1864
+ )(bt);
1865
+ return h.div(
1754
1866
  K(() => {
1755
- W.dispose(), y.dispose(), B.dispose();
1867
+ H.dispose(), x.dispose(), E.dispose();
1756
1868
  }),
1757
1869
  // attr.class(
1758
1870
  // theme.panel({ side: 'none', color: 'base', shadow: 'none' })
1759
1871
  // ),
1760
1872
  d.height("100%"),
1761
1873
  d.display("grid"),
1762
- d.gridTemplateColumns(u.$.columns),
1763
- d.gridTemplateRows(u.$.rows),
1764
- d.gridTemplateAreas(u.$.areas),
1874
+ d.gridTemplateColumns(a.$.columns),
1875
+ d.gridTemplateRows(a.$.rows),
1876
+ d.gridTemplateAreas(a.$.areas),
1765
1877
  d.gridColumnGap("0"),
1766
1878
  d.gridRowGap("0"),
1767
- e.banner ? p.header(
1768
- a.class(
1769
- n.panel({
1879
+ e.banner ? h.header(
1880
+ c.class(
1881
+ t.panel({
1770
1882
  side: "none",
1771
1883
  color: e.banner.color ?? "white",
1772
1884
  shadow: e.banner.shadow ?? "none"
@@ -1776,24 +1888,24 @@ function Pt({
1776
1888
  d.gridArea("banner"),
1777
1889
  e.banner.content
1778
1890
  ) : null,
1779
- p.header(
1780
- a.class(
1781
- n.panel({
1891
+ h.header(
1892
+ c.class(
1893
+ t.panel({
1782
1894
  side: "bottom",
1783
- color: ((ye = e.header) == null ? void 0 : ye.color) ?? "white",
1784
- shadow: ((ve = e.header) == null ? void 0 : ve.shadow) ?? "none"
1895
+ color: (($e = e.header) == null ? void 0 : $e.color) ?? "white",
1896
+ shadow: ((Se = e.header) == null ? void 0 : Se.shadow) ?? "none"
1785
1897
  })
1786
1898
  ),
1787
- a.class("bu-z-10"),
1899
+ c.class("bu-z-10"),
1788
1900
  d.display(
1789
- h.map((f) => f ? "block" : "none")
1901
+ p.map((f) => f ? "block" : "none")
1790
1902
  ),
1791
1903
  d.gridArea("header"),
1792
- de((f) => (f.$.bottom.feedProp(W), null)),
1793
- p.div(
1904
+ ce((f) => (f.$.bottom.feedProp(H), null)),
1905
+ h.div(
1794
1906
  d.display("flex"),
1795
1907
  d.height("100%"),
1796
- p.div(
1908
+ h.div(
1797
1909
  d.display(
1798
1910
  b.map((f) => f ? "flex" : "none")
1799
1911
  ),
@@ -1801,26 +1913,26 @@ function Pt({
1801
1913
  d.justifyContent("center"),
1802
1914
  d.height("100%"),
1803
1915
  d.width("60px"),
1804
- je(
1916
+ He(
1805
1917
  {
1806
- onClick: () => y.toggle(),
1918
+ onClick: () => x.toggle(),
1807
1919
  variant: "light",
1808
1920
  color: "base"
1809
1921
  },
1810
- J.label("Open menu"),
1811
- Q({
1812
- icon: y.isOpen.map(
1922
+ q.label("Open menu"),
1923
+ Z({
1924
+ icon: x.isOpen.map(
1813
1925
  (f) => f ? "line-md/menu-to-close-alt-transition" : "line-md/close-to-menu-alt-transition"
1814
1926
  )
1815
1927
  })
1816
1928
  )
1817
1929
  ),
1818
- p.div(
1930
+ h.div(
1819
1931
  d.height("100%"),
1820
1932
  d.flexGrow("1"),
1821
- (we = e.header) == null ? void 0 : we.content
1933
+ (_e = e.header) == null ? void 0 : _e.content
1822
1934
  ),
1823
- p.div(
1935
+ h.div(
1824
1936
  d.alignItems("center"),
1825
1937
  d.justifyContent("center"),
1826
1938
  d.height("100%"),
@@ -1828,19 +1940,19 @@ function Pt({
1828
1940
  d.display(
1829
1941
  g.map((f) => f ? "flex" : "none")
1830
1942
  ),
1831
- je(
1943
+ He(
1832
1944
  {
1833
- onClick: () => B.toggle(),
1945
+ onClick: () => E.toggle(),
1834
1946
  roundedness: "full",
1835
1947
  variant: "light",
1836
1948
  color: "base"
1837
1949
  },
1838
- J.label("Open aside"),
1839
- Q(
1950
+ q.label("Open aside"),
1951
+ Z(
1840
1952
  { icon: "line-md/chevron-left" },
1841
- a.class("bu-transition-transform"),
1842
- a.class(
1843
- B.isOpen.map(
1953
+ c.class("bu-transition-transform"),
1954
+ c.class(
1955
+ E.isOpen.map(
1844
1956
  (f) => f ? "bu-rotate-180" : ""
1845
1957
  )
1846
1958
  )
@@ -1849,22 +1961,22 @@ function Pt({
1849
1961
  )
1850
1962
  )
1851
1963
  ),
1852
- e.menu ? p.nav(
1853
- q((f) => {
1854
- y.setElement(f);
1964
+ e.menu ? h.nav(
1965
+ z((f) => {
1966
+ x.setElement(f);
1855
1967
  }),
1856
- a.class(
1857
- V.map(
1968
+ c.class(
1969
+ M.map(
1858
1970
  (f) => {
1859
- var N, Z, Ee, Ae;
1860
- return f === "float" ? n.panel({
1971
+ var N, ne, Ve, je;
1972
+ return f === "float" ? t.panel({
1861
1973
  side: "right",
1862
1974
  color: ((N = e.menu) == null ? void 0 : N.color) ?? "white",
1863
- shadow: ((Z = e.menu) == null ? void 0 : Z.shadow) ?? "md"
1864
- }) : n.panel({
1975
+ shadow: ((ne = e.menu) == null ? void 0 : ne.shadow) ?? "md"
1976
+ }) : t.panel({
1865
1977
  side: "right",
1866
- color: ((Ee = e.menu) == null ? void 0 : Ee.color) ?? "white",
1867
- shadow: ((Ae = e.menu) == null ? void 0 : Ae.shadow) ?? "none"
1978
+ color: ((Ve = e.menu) == null ? void 0 : Ve.color) ?? "white",
1979
+ shadow: ((je = e.menu) == null ? void 0 : je.shadow) ?? "none"
1868
1980
  });
1869
1981
  }
1870
1982
  )
@@ -1872,76 +1984,76 @@ function Pt({
1872
1984
  d.height("100%"),
1873
1985
  d.gridArea("menu"),
1874
1986
  d.display(
1875
- V.map(
1987
+ M.map(
1876
1988
  (f) => f === "none" ? "none" : "block"
1877
1989
  )
1878
1990
  ),
1879
1991
  d.position(
1880
- V.map(
1992
+ M.map(
1881
1993
  (f) => f === "float" ? "fixed" : "initial"
1882
1994
  )
1883
1995
  ),
1884
- d.top(W.map((f) => `${f}px`)),
1996
+ d.top(H.map((f) => `${f}px`)),
1885
1997
  d.transition("left 0.3s ease-in-out"),
1886
1998
  d.left(
1887
- $(
1888
- y.displayOpen,
1889
- u.$.menuWidth
1999
+ y(
2000
+ x.displayOpen,
2001
+ a.$.menuWidth
1890
2002
  )((f, N) => f ? "0" : `-${N}`)
1891
2003
  ),
1892
- d.width(u.$.menuWidth),
1893
- d.bottom(W.map((f) => `${f}px`)),
1894
- ae.status(y.status.map(String)),
1895
- ($e = e.menu) == null ? void 0 : $e.content
2004
+ d.width(a.$.menuWidth),
2005
+ d.bottom(H.map((f) => `${f}px`)),
2006
+ he.status(x.status.map(String)),
2007
+ (Ce = e.menu) == null ? void 0 : Ce.content
1896
2008
  ) : null,
1897
- e.mainHeader ? p.header(
2009
+ e.mainHeader ? h.header(
1898
2010
  d.height("100%"),
1899
2011
  d.gridArea("mainHeader"),
1900
- a.class(
1901
- n.panel({
2012
+ c.class(
2013
+ t.panel({
1902
2014
  side: "none",
1903
- color: ((Se = e.mainHeader) == null ? void 0 : Se.color) ?? "white",
1904
- shadow: ((Ce = e.mainHeader) == null ? void 0 : Ce.shadow) ?? "none"
2015
+ color: ((Ee = e.mainHeader) == null ? void 0 : Ee.color) ?? "white",
2016
+ shadow: ((Be = e.mainHeader) == null ? void 0 : Be.shadow) ?? "none"
1905
2017
  })
1906
2018
  ),
1907
2019
  e.mainHeader.content
1908
2020
  ) : null,
1909
- p.main(
2021
+ h.main(
1910
2022
  d.height("100%"),
1911
2023
  d.overflow("hidden"),
1912
2024
  d.gridArea("main"),
1913
- a.class(
1914
- n.panel({
2025
+ c.class(
2026
+ t.panel({
1915
2027
  side: "none",
1916
- color: ((_e = e.main) == null ? void 0 : _e.color) ?? "white",
1917
- shadow: ((Be = e.main) == null ? void 0 : Be.shadow) ?? "none"
2028
+ color: ((Ie = e.main) == null ? void 0 : Ie.color) ?? "white",
2029
+ shadow: ((Ae = e.main) == null ? void 0 : Ae.shadow) ?? "none"
1918
2030
  })
1919
2031
  ),
1920
2032
  e.main.content
1921
2033
  ),
1922
- e.mainFooter ? p.footer(
2034
+ e.mainFooter ? h.footer(
1923
2035
  d.height("100%"),
1924
2036
  d.gridArea("mainFooter"),
1925
- a.class(
1926
- n.panel({
2037
+ c.class(
2038
+ t.panel({
1927
2039
  side: "none",
1928
- color: ((Ie = e.mainFooter) == null ? void 0 : Ie.color) ?? "white",
1929
- shadow: ((ke = e.mainFooter) == null ? void 0 : ke.shadow) ?? "none"
2040
+ color: ((Te = e.mainFooter) == null ? void 0 : Te.color) ?? "white",
2041
+ shadow: ((Oe = e.mainFooter) == null ? void 0 : Oe.shadow) ?? "none"
1930
2042
  })
1931
2043
  ),
1932
2044
  e.mainFooter.content
1933
2045
  ) : null,
1934
- e.aside ? p.aside(
1935
- q((f) => {
1936
- B.setElement(f);
2046
+ e.aside ? h.aside(
2047
+ z((f) => {
2048
+ E.setElement(f);
1937
2049
  }),
1938
- a.class(
1939
- z.map(
1940
- (f) => f === "float" ? n.panel({
2050
+ c.class(
2051
+ G.map(
2052
+ (f) => f === "float" ? t.panel({
1941
2053
  side: "left",
1942
2054
  color: "white",
1943
2055
  shadow: "md"
1944
- }) : n.panel({
2056
+ }) : t.panel({
1945
2057
  side: "left",
1946
2058
  color: "white",
1947
2059
  shadow: "none"
@@ -1951,30 +2063,30 @@ function Pt({
1951
2063
  d.height("100%"),
1952
2064
  d.gridArea("aside"),
1953
2065
  d.display(
1954
- z.map(
2066
+ G.map(
1955
2067
  (f) => f === "none" ? "none" : "block"
1956
2068
  )
1957
2069
  ),
1958
2070
  d.position(
1959
- z.map(
2071
+ G.map(
1960
2072
  (f) => f === "float" ? "fixed" : "initial"
1961
2073
  )
1962
2074
  ),
1963
- d.top(W.map((f) => `${f}px`)),
2075
+ d.top(H.map((f) => `${f}px`)),
1964
2076
  d.transition("right 0.3s ease-in-out"),
1965
2077
  d.right(
1966
- $(
1967
- B.displayOpen,
1968
- u.$.asideWidth
2078
+ y(
2079
+ E.displayOpen,
2080
+ a.$.asideWidth
1969
2081
  )((f, N) => f ? "0" : `-${N}`)
1970
2082
  ),
1971
- d.width(u.$.menuWidth),
1972
- d.bottom(W.map((f) => `${f}px`)),
2083
+ d.width(a.$.menuWidth),
2084
+ d.bottom(H.map((f) => `${f}px`)),
1973
2085
  e.aside.content
1974
2086
  ) : null,
1975
- e.footer ? p.footer(
1976
- a.class(
1977
- n.panel({
2087
+ e.footer ? h.footer(
2088
+ c.class(
2089
+ t.panel({
1978
2090
  side: "top",
1979
2091
  color: "white",
1980
2092
  shadow: "none"
@@ -1988,240 +2100,918 @@ function Pt({
1988
2100
  });
1989
2101
  });
1990
2102
  }
1991
- function Ht({ variant: t = "default", size: r = "md", roundedness: e = "lg" } = {}, ...n) {
1992
- return C(_, (s) => p.div(
1993
- a.class(
1994
- $(
1995
- s,
1996
- t,
1997
- r,
2103
+ function yl({ variant: n = "default", size: l = "md", roundedness: e = "lg" } = {}, ...t) {
2104
+ return _(C, (o) => h.div(
2105
+ c.class(
2106
+ y(
2107
+ o,
2108
+ n,
2109
+ l,
1998
2110
  e
1999
2111
  )(
2000
- ({ theme: l }, o, c, i) => l.card({
2001
- variant: o,
2002
- size: c,
2112
+ ({ theme: r }, s, u, i) => r.card({
2113
+ variant: s,
2114
+ size: u,
2003
2115
  roundedness: i
2004
2116
  })
2005
2117
  )
2006
2118
  ),
2007
- ...n
2119
+ ...t
2008
2120
  ));
2009
2121
  }
2010
- function Vt(...t) {
2011
- return p.div(
2012
- a.class("bc-center-h"),
2013
- p.div(a.class("bc-center__content"), ...t)
2122
+ function vl(...n) {
2123
+ return h.div(
2124
+ c.class("bc-center-h"),
2125
+ h.div(c.class("bc-center__content"), ...n)
2014
2126
  );
2015
2127
  }
2016
- function Mt({ gap: t = "lg" } = {}, ...r) {
2017
- return C(_, (e) => p.div(
2018
- a.class(
2019
- $(
2128
+ function wl({ gap: n = "lg" } = {}, ...l) {
2129
+ return _(C, (e) => h.div(
2130
+ c.class(
2131
+ y(
2020
2132
  e,
2021
- t
2133
+ n
2022
2134
  )(
2023
- ({ theme: n }, s) => n.center({
2024
- gap: s
2135
+ ({ theme: t }, o) => t.center({
2136
+ gap: o
2025
2137
  })
2026
2138
  )
2027
2139
  ),
2028
- ...r
2140
+ ...l
2029
2141
  ));
2030
2142
  }
2031
- function Lt(...t) {
2032
- return p.div(a.class("bc-group"), ...t);
2143
+ function $l(...n) {
2144
+ return h.div(c.class("bc-group"), ...n);
2033
2145
  }
2034
- function qt({ variant: t = "default", size: r = "md", roundedness: e = "lg" } = {}, ...n) {
2035
- return C(_, (s) => p.div(
2036
- a.class(
2037
- $(
2038
- s,
2039
- t,
2040
- r,
2146
+ function Sl({ variant: n = "default", size: l = "md", roundedness: e = "lg" } = {}, ...t) {
2147
+ return _(C, (o) => h.div(
2148
+ c.class(
2149
+ y(
2150
+ o,
2151
+ n,
2152
+ l,
2041
2153
  e
2042
2154
  )(
2043
- ({ theme: l }, o, c, i) => l.sink({
2044
- variant: o,
2045
- size: c,
2155
+ ({ theme: r }, s, u, i) => r.sink({
2156
+ variant: s,
2157
+ size: u,
2046
2158
  roundedness: i
2047
2159
  })
2048
2160
  )
2049
2161
  ),
2050
- ...n
2162
+ ...t
2051
2163
  ));
2052
2164
  }
2053
- function Rt(...t) {
2054
- return p.div(a.class("bc-stack"), ...t);
2055
- }
2056
- function tt(t) {
2057
- return ({ effect: r, ...e }, n) => {
2058
- const s = [], l = () => s.forEach((u) => u()), o = ie();
2059
- o.onClosed(l);
2060
- const i = ln((() => {
2061
- var h, g;
2062
- const u = /* @__PURE__ */ new Set();
2063
- for (const b of t.element.querySelectorAll(
2165
+ function _l(...n) {
2166
+ return h.div(c.class("bc-stack"), ...n);
2167
+ }
2168
+ function ft(n) {
2169
+ return ({ effect: l, ...e }, t) => {
2170
+ const o = [], r = () => o.forEach((a) => a()), s = me();
2171
+ s.onClosed(r);
2172
+ const i = wn((() => {
2173
+ var p, g;
2174
+ const a = /* @__PURE__ */ new Set();
2175
+ for (const b of n.element.querySelectorAll(
2064
2176
  ":scope > :not([data-overlay])"
2065
2177
  ))
2066
- b.hasAttribute("inert") ? u.add(b) : b.setAttribute("inert", "");
2067
- if (s.push(() => {
2068
- for (const b of t.element.querySelectorAll(
2178
+ b.hasAttribute("inert") ? a.add(b) : b.setAttribute("inert", "");
2179
+ if (o.push(() => {
2180
+ for (const b of n.element.querySelectorAll(
2069
2181
  ":scope > :not([data-overlay])"
2070
2182
  ))
2071
- u.has(b) || b.removeAttribute("inert");
2072
- u.clear();
2073
- }), (g = (h = document.activeElement) == null ? void 0 : h.blur) == null || g.call(h), e.mode === "capturing") {
2074
- const b = (B) => {
2075
- var W;
2076
- B.key === "Escape" && ((W = e.onEscape) == null || W.call(e), o.close());
2183
+ a.has(b) || b.removeAttribute("inert");
2184
+ a.clear();
2185
+ }), (g = (p = document.activeElement) == null ? void 0 : p.blur) == null || g.call(p), e.mode === "capturing") {
2186
+ const b = (E) => {
2187
+ var H;
2188
+ E.key === "Escape" && ((H = e.onEscape) == null || H.call(e), s.close());
2077
2189
  };
2078
- document.addEventListener("keydown", b), s.push(
2190
+ document.addEventListener("keydown", b), o.push(
2079
2191
  () => document.removeEventListener("keydown", b)
2080
2192
  );
2081
- const y = () => {
2082
- var B;
2083
- (B = e.onClickOutside) == null || B.call(e), o.close();
2193
+ const x = () => {
2194
+ var E;
2195
+ (E = e.onClickOutside) == null || E.call(e), s.close();
2084
2196
  };
2085
- t.element.addEventListener("mousedown", y), s.push(
2086
- () => t.element.removeEventListener("mousedown", y)
2197
+ n.element.addEventListener("mousedown", x), o.push(
2198
+ () => n.element.removeEventListener("mousedown", x)
2087
2199
  );
2088
2200
  }
2089
- return p.div(
2090
- q((b) => o.setElement(b)),
2091
- ae.status(o.status.map(String)),
2201
+ return h.div(
2202
+ z((b) => s.setElement(b)),
2203
+ he.status(s.status.map(String)),
2092
2204
  // style.backgroundColor(
2093
2205
  // status.displayOpen.map((v): string => (v ? '' : 'rgba(0, 0, 0, 0)'))
2094
2206
  // ),
2095
- ae.overlay("true"),
2096
- C(
2097
- _,
2098
- ({ theme: b }) => a.class(
2207
+ he.overlay("true"),
2208
+ _(
2209
+ C,
2210
+ ({ theme: b }) => c.class(
2099
2211
  b.overlay({
2100
- effect: r ?? "visible",
2212
+ effect: l ?? "visible",
2101
2213
  mode: e.mode ?? "capturing"
2102
2214
  })
2103
2215
  )
2104
2216
  ),
2105
- n(o.close)
2217
+ t(s.close)
2106
2218
  );
2107
- })(), t.element, {
2219
+ })(), n.element, {
2108
2220
  disposeWithParent: !0,
2109
2221
  clear: !1,
2110
- providers: t.providers
2222
+ providers: n.providers
2111
2223
  });
2112
- return s.push(i), fe(() => o.open(), 0), l;
2224
+ return o.push(i), ee(() => s.open(), 0), r;
2113
2225
  };
2114
2226
  }
2115
- function Xe(t, r, e) {
2116
- return on((n) => {
2117
- const s = t(n), l = tt(s);
2118
- let o = () => {
2227
+ function Ze(n, l, e) {
2228
+ return $n((t) => {
2229
+ const o = n(t), r = ft(o);
2230
+ let s = () => {
2119
2231
  };
2120
- const c = (i) => {
2121
- o(), o = l(r, i);
2232
+ const u = (i) => {
2233
+ s(), s = r(l, i);
2122
2234
  };
2123
- return R(K(o), e(c));
2235
+ return U(K(s), e(u));
2124
2236
  });
2125
2237
  }
2126
- function zt(t, r) {
2127
- return Xe((e) => e, t, r);
2238
+ function Cl(n, l) {
2239
+ return Ze((e) => e, n, l);
2128
2240
  }
2129
- function Gt(t, r) {
2130
- return Xe(
2241
+ function El(n, l) {
2242
+ return Ze(
2131
2243
  (e) => e.makePortal("body"),
2132
- t,
2133
- r
2244
+ n,
2245
+ l
2134
2246
  );
2135
2247
  }
2248
+ const en = {
2249
+ red: {
2250
+ 50: "oklch(0.971 0.013 17.38)",
2251
+ 100: "oklch(0.936 0.032 17.717)",
2252
+ 200: "oklch(0.885 0.062 18.334)",
2253
+ 300: "oklch(0.808 0.114 19.571)",
2254
+ 400: "oklch(0.704 0.191 22.216)",
2255
+ 500: "oklch(0.637 0.237 25.331)",
2256
+ 600: "oklch(0.577 0.245 27.325)",
2257
+ 700: "oklch(0.505 0.213 27.518)",
2258
+ 800: "oklch(0.444 0.177 26.899)",
2259
+ 900: "oklch(0.396 0.141 25.723)",
2260
+ 950: "oklch(0.258 0.092 26.042)"
2261
+ },
2262
+ orange: {
2263
+ 50: "oklch(0.98 0.016 73.684)",
2264
+ 100: "oklch(0.954 0.038 75.164)",
2265
+ 200: "oklch(0.901 0.076 70.697)",
2266
+ 300: "oklch(0.837 0.128 66.29)",
2267
+ 400: "oklch(0.75 0.183 55.934)",
2268
+ 500: "oklch(0.705 0.213 47.604)",
2269
+ 600: "oklch(0.646 0.222 41.116)",
2270
+ 700: "oklch(0.553 0.195 38.402)",
2271
+ 800: "oklch(0.47 0.157 37.304)",
2272
+ 900: "oklch(0.408 0.123 38.172)",
2273
+ 950: "oklch(0.266 0.079 36.259)"
2274
+ },
2275
+ amber: {
2276
+ 50: "oklch(0.987 0.022 95.277)",
2277
+ 100: "oklch(0.962 0.059 95.617)",
2278
+ 200: "oklch(0.924 0.12 95.746)",
2279
+ 300: "oklch(0.879 0.169 91.605)",
2280
+ 400: "oklch(0.828 0.189 84.429)",
2281
+ 500: "oklch(0.769 0.188 70.08)",
2282
+ 600: "oklch(0.666 0.179 58.318)",
2283
+ 700: "oklch(0.555 0.163 48.998)",
2284
+ 800: "oklch(0.473 0.137 46.201)",
2285
+ 900: "oklch(0.414 0.112 45.904)",
2286
+ 950: "oklch(0.279 0.077 45.635)"
2287
+ },
2288
+ yellow: {
2289
+ 50: "oklch(0.987 0.026 102.212)",
2290
+ 100: "oklch(0.973 0.071 103.193)",
2291
+ 200: "oklch(0.945 0.129 101.54)",
2292
+ 300: "oklch(0.905 0.182 98.111)",
2293
+ 400: "oklch(0.852 0.199 91.936)",
2294
+ 500: "oklch(0.795 0.184 86.047)",
2295
+ 600: "oklch(0.681 0.162 75.834)",
2296
+ 700: "oklch(0.554 0.135 66.442)",
2297
+ 800: "oklch(0.476 0.114 61.907)",
2298
+ 900: "oklch(0.421 0.095 57.708)",
2299
+ 950: "oklch(0.286 0.066 53.813)"
2300
+ },
2301
+ lime: {
2302
+ 50: "oklch(0.986 0.031 120.757)",
2303
+ 100: "oklch(0.967 0.067 122.328)",
2304
+ 200: "oklch(0.938 0.127 124.321)",
2305
+ 300: "oklch(0.897 0.196 126.665)",
2306
+ 400: "oklch(0.841 0.238 128.85)",
2307
+ 500: "oklch(0.768 0.233 130.85)",
2308
+ 600: "oklch(0.648 0.2 131.684)",
2309
+ 700: "oklch(0.532 0.157 131.589)",
2310
+ 800: "oklch(0.453 0.124 130.933)",
2311
+ 900: "oklch(0.405 0.101 131.063)",
2312
+ 950: "oklch(0.274 0.072 132.109)"
2313
+ },
2314
+ green: {
2315
+ 50: "oklch(0.982 0.018 155.826)",
2316
+ 100: "oklch(0.962 0.044 156.743)",
2317
+ 200: "oklch(0.925 0.084 155.995)",
2318
+ 300: "oklch(0.871 0.15 154.449)",
2319
+ 400: "oklch(0.792 0.209 151.711)",
2320
+ 500: "oklch(0.723 0.219 149.579)",
2321
+ 600: "oklch(0.627 0.194 149.214)",
2322
+ 700: "oklch(0.527 0.154 150.069)",
2323
+ 800: "oklch(0.448 0.119 151.328)",
2324
+ 900: "oklch(0.393 0.095 152.535)",
2325
+ 950: "oklch(0.266 0.065 152.934)"
2326
+ },
2327
+ emerald: {
2328
+ 50: "oklch(0.979 0.021 166.113)",
2329
+ 100: "oklch(0.95 0.052 163.051)",
2330
+ 200: "oklch(0.905 0.093 164.15)",
2331
+ 300: "oklch(0.845 0.143 164.978)",
2332
+ 400: "oklch(0.765 0.177 163.223)",
2333
+ 500: "oklch(0.696 0.17 162.48)",
2334
+ 600: "oklch(0.596 0.145 163.225)",
2335
+ 700: "oklch(0.508 0.118 165.612)",
2336
+ 800: "oklch(0.432 0.095 166.913)",
2337
+ 900: "oklch(0.378 0.077 168.94)",
2338
+ 950: "oklch(0.262 0.051 172.552)"
2339
+ },
2340
+ teal: {
2341
+ 50: "oklch(0.984 0.014 180.72)",
2342
+ 100: "oklch(0.953 0.051 180.801)",
2343
+ 200: "oklch(0.91 0.096 180.426)",
2344
+ 300: "oklch(0.855 0.138 181.071)",
2345
+ 400: "oklch(0.777 0.152 181.912)",
2346
+ 500: "oklch(0.704 0.14 182.503)",
2347
+ 600: "oklch(0.6 0.118 184.704)",
2348
+ 700: "oklch(0.511 0.096 186.391)",
2349
+ 800: "oklch(0.437 0.078 188.216)",
2350
+ 900: "oklch(0.386 0.063 188.416)",
2351
+ 950: "oklch(0.277 0.046 192.524)"
2352
+ },
2353
+ cyan: {
2354
+ 50: "oklch(0.984 0.019 200.873)",
2355
+ 100: "oklch(0.956 0.045 203.388)",
2356
+ 200: "oklch(0.917 0.08 205.041)",
2357
+ 300: "oklch(0.865 0.127 207.078)",
2358
+ 400: "oklch(0.789 0.154 211.53)",
2359
+ 500: "oklch(0.715 0.143 215.221)",
2360
+ 600: "oklch(0.609 0.126 221.723)",
2361
+ 700: "oklch(0.52 0.105 223.128)",
2362
+ 800: "oklch(0.45 0.085 224.283)",
2363
+ 900: "oklch(0.398 0.07 227.392)",
2364
+ 950: "oklch(0.302 0.056 229.695)"
2365
+ },
2366
+ sky: {
2367
+ 50: "oklch(0.977 0.013 236.62)",
2368
+ 100: "oklch(0.951 0.026 236.824)",
2369
+ 200: "oklch(0.901 0.058 230.902)",
2370
+ 300: "oklch(0.828 0.111 230.318)",
2371
+ 400: "oklch(0.746 0.16 232.661)",
2372
+ 500: "oklch(0.685 0.169 237.323)",
2373
+ 600: "oklch(0.588 0.158 241.966)",
2374
+ 700: "oklch(0.5 0.134 242.749)",
2375
+ 800: "oklch(0.443 0.11 240.79)",
2376
+ 900: "oklch(0.391 0.09 240.876)",
2377
+ 950: "oklch(0.293 0.066 243.157)"
2378
+ },
2379
+ blue: {
2380
+ 50: "oklch(0.97 0.014 254.604)",
2381
+ 100: "oklch(0.932 0.032 255.585)",
2382
+ 200: "oklch(0.882 0.059 254.128)",
2383
+ 300: "oklch(0.809 0.105 251.813)",
2384
+ 400: "oklch(0.707 0.165 254.624)",
2385
+ 500: "oklch(0.623 0.214 259.815)",
2386
+ 600: "oklch(0.546 0.245 262.881)",
2387
+ 700: "oklch(0.488 0.243 264.376)",
2388
+ 800: "oklch(0.424 0.199 265.638)",
2389
+ 900: "oklch(0.379 0.146 265.522)",
2390
+ 950: "oklch(0.282 0.091 267.935)"
2391
+ },
2392
+ indigo: {
2393
+ 50: "oklch(0.962 0.018 272.314)",
2394
+ 100: "oklch(0.93 0.034 272.788)",
2395
+ 200: "oklch(0.87 0.065 274.039)",
2396
+ 300: "oklch(0.785 0.115 274.713)",
2397
+ 400: "oklch(0.673 0.182 276.935)",
2398
+ 500: "oklch(0.585 0.233 277.117)",
2399
+ 600: "oklch(0.511 0.262 276.966)",
2400
+ 700: "oklch(0.457 0.24 277.023)",
2401
+ 800: "oklch(0.398 0.195 277.366)",
2402
+ 900: "oklch(0.359 0.144 278.697)",
2403
+ 950: "oklch(0.257 0.09 281.288)"
2404
+ },
2405
+ violet: {
2406
+ 50: "oklch(0.969 0.016 293.756)",
2407
+ 100: "oklch(0.943 0.029 294.588)",
2408
+ 200: "oklch(0.894 0.057 293.283)",
2409
+ 300: "oklch(0.811 0.111 293.571)",
2410
+ 400: "oklch(0.702 0.183 293.541)",
2411
+ 500: "oklch(0.606 0.25 292.717)",
2412
+ 600: "oklch(0.541 0.281 293.009)",
2413
+ 700: "oklch(0.491 0.27 292.581)",
2414
+ 800: "oklch(0.432 0.232 292.759)",
2415
+ 900: "oklch(0.38 0.189 293.745)",
2416
+ 950: "oklch(0.283 0.141 291.089)"
2417
+ },
2418
+ purple: {
2419
+ 50: "oklch(0.977 0.014 308.299)",
2420
+ 100: "oklch(0.946 0.033 307.174)",
2421
+ 200: "oklch(0.902 0.063 306.703)",
2422
+ 300: "oklch(0.827 0.119 306.383)",
2423
+ 400: "oklch(0.714 0.203 305.504)",
2424
+ 500: "oklch(0.627 0.265 303.9)",
2425
+ 600: "oklch(0.558 0.288 302.321)",
2426
+ 700: "oklch(0.496 0.265 301.924)",
2427
+ 800: "oklch(0.438 0.218 303.724)",
2428
+ 900: "oklch(0.381 0.176 304.987)",
2429
+ 950: "oklch(0.291 0.149 302.717)"
2430
+ },
2431
+ fuchsia: {
2432
+ 50: "oklch(0.977 0.017 320.058)",
2433
+ 100: "oklch(0.952 0.037 318.852)",
2434
+ 200: "oklch(0.903 0.076 319.62)",
2435
+ 300: "oklch(0.833 0.145 321.434)",
2436
+ 400: "oklch(0.74 0.238 322.16)",
2437
+ 500: "oklch(0.667 0.295 322.15)",
2438
+ 600: "oklch(0.591 0.293 322.896)",
2439
+ 700: "oklch(0.518 0.253 323.949)",
2440
+ 800: "oklch(0.452 0.211 324.591)",
2441
+ 900: "oklch(0.401 0.17 325.612)",
2442
+ 950: "oklch(0.293 0.136 325.661)"
2443
+ },
2444
+ pink: {
2445
+ 50: "oklch(0.971 0.014 343.198)",
2446
+ 100: "oklch(0.948 0.028 342.258)",
2447
+ 200: "oklch(0.899 0.061 343.231)",
2448
+ 300: "oklch(0.823 0.12 346.018)",
2449
+ 400: "oklch(0.718 0.202 349.761)",
2450
+ 500: "oklch(0.656 0.241 354.308)",
2451
+ 600: "oklch(0.592 0.249 0.584)",
2452
+ 700: "oklch(0.525 0.223 3.958)",
2453
+ 800: "oklch(0.459 0.187 3.815)",
2454
+ 900: "oklch(0.408 0.153 2.432)",
2455
+ 950: "oklch(0.284 0.109 3.907)"
2456
+ },
2457
+ rose: {
2458
+ 50: "oklch(0.969 0.015 12.422)",
2459
+ 100: "oklch(0.941 0.03 12.58)",
2460
+ 200: "oklch(0.892 0.058 10.001)",
2461
+ 300: "oklch(0.81 0.117 11.638)",
2462
+ 400: "oklch(0.712 0.194 13.428)",
2463
+ 500: "oklch(0.645 0.246 16.439)",
2464
+ 600: "oklch(0.586 0.253 17.585)",
2465
+ 700: "oklch(0.514 0.222 16.935)",
2466
+ 800: "oklch(0.455 0.188 13.697)",
2467
+ 900: "oklch(0.41 0.159 10.272)",
2468
+ 950: "oklch(0.271 0.105 12.094)"
2469
+ },
2470
+ slate: {
2471
+ 50: "oklch(0.984 0.003 247.858)",
2472
+ 100: "oklch(0.968 0.007 247.896)",
2473
+ 200: "oklch(0.929 0.013 255.508)",
2474
+ 300: "oklch(0.869 0.022 252.894)",
2475
+ 400: "oklch(0.704 0.04 256.788)",
2476
+ 500: "oklch(0.554 0.046 257.417)",
2477
+ 600: "oklch(0.446 0.043 257.281)",
2478
+ 700: "oklch(0.372 0.044 257.287)",
2479
+ 800: "oklch(0.279 0.041 260.031)",
2480
+ 900: "oklch(0.208 0.042 265.755)",
2481
+ 950: "oklch(0.129 0.042 264.695)"
2482
+ },
2483
+ gray: {
2484
+ 50: "oklch(0.985 0.002 247.839)",
2485
+ 100: "oklch(0.967 0.003 264.542)",
2486
+ 200: "oklch(0.928 0.006 264.531)",
2487
+ 300: "oklch(0.872 0.01 258.338)",
2488
+ 400: "oklch(0.707 0.022 261.325)",
2489
+ 500: "oklch(0.551 0.027 264.364)",
2490
+ 600: "oklch(0.446 0.03 256.802)",
2491
+ 700: "oklch(0.373 0.034 259.733)",
2492
+ 800: "oklch(0.278 0.033 256.848)",
2493
+ 900: "oklch(0.21 0.034 264.665)",
2494
+ 950: "oklch(0.13 0.028 261.692)"
2495
+ },
2496
+ zinc: {
2497
+ 50: "oklch(0.985 0 0)",
2498
+ 100: "oklch(0.967 0.001 286.375)",
2499
+ 200: "oklch(0.92 0.004 286.32)",
2500
+ 300: "oklch(0.871 0.006 286.286)",
2501
+ 400: "oklch(0.705 0.015 286.067)",
2502
+ 500: "oklch(0.552 0.016 285.938)",
2503
+ 600: "oklch(0.442 0.017 285.786)",
2504
+ 700: "oklch(0.37 0.013 285.805)",
2505
+ 800: "oklch(0.274 0.006 286.033)",
2506
+ 900: "oklch(0.21 0.006 285.885)",
2507
+ 950: "oklch(0.141 0.005 285.823)"
2508
+ },
2509
+ neutral: {
2510
+ 50: "oklch(0.985 0 0)",
2511
+ 100: "oklch(0.97 0 0)",
2512
+ 200: "oklch(0.922 0 0)",
2513
+ 300: "oklch(0.87 0 0)",
2514
+ 400: "oklch(0.708 0 0)",
2515
+ 500: "oklch(0.556 0 0)",
2516
+ 600: "oklch(0.439 0 0)",
2517
+ 700: "oklch(0.371 0 0)",
2518
+ 800: "oklch(0.269 0 0)",
2519
+ 900: "oklch(0.205 0 0)",
2520
+ 950: "oklch(0.145 0 0)"
2521
+ },
2522
+ stone: {
2523
+ 50: "oklch(0.985 0.001 106.423)",
2524
+ 100: "oklch(0.97 0.001 106.424)",
2525
+ 200: "oklch(0.923 0.003 48.717)",
2526
+ 300: "oklch(0.869 0.005 56.366)",
2527
+ 400: "oklch(0.709 0.01 56.259)",
2528
+ 500: "oklch(0.553 0.013 58.071)",
2529
+ 600: "oklch(0.444 0.011 73.639)",
2530
+ 700: "oklch(0.374 0.01 67.558)",
2531
+ 800: "oklch(0.268 0.007 34.298)",
2532
+ 900: "oklch(0.216 0.006 56.043)",
2533
+ 950: "oklch(0.147 0.004 49.25)"
2534
+ }
2535
+ }, nn = {
2536
+ sm: "40rem",
2537
+ // 640px
2538
+ md: "48rem",
2539
+ // 768px
2540
+ lg: "64rem",
2541
+ // 1024px
2542
+ xl: "80rem",
2543
+ // 1280px
2544
+ "2xl": "96rem"
2545
+ // 1536px
2546
+ };
2547
+ function tn(n) {
2548
+ return `--breakpoint-${n}`;
2549
+ }
2550
+ function Bl(n) {
2551
+ return `var(${tn(n)})`;
2552
+ }
2553
+ function Il(n) {
2554
+ return `@media (width >= ${nn[n]})`;
2555
+ }
2556
+ function kt() {
2557
+ const n = {};
2558
+ return F(nn).forEach(([l, e]) => {
2559
+ n[tn(l)] = e;
2560
+ }), n;
2561
+ }
2562
+ const xt = [
2563
+ 50,
2564
+ 100,
2565
+ 200,
2566
+ 300,
2567
+ 400,
2568
+ 500,
2569
+ 600,
2570
+ 700,
2571
+ 800,
2572
+ 900,
2573
+ 950
2574
+ ], ye = [
2575
+ "primary",
2576
+ "secondary",
2577
+ "base",
2578
+ "success",
2579
+ "warning",
2580
+ "error",
2581
+ "info"
2582
+ ], Al = [
2583
+ ...ye,
2584
+ ...F(en).map(([n]) => n)
2585
+ ], ln = {
2586
+ primary: "blue",
2587
+ secondary: "gray",
2588
+ base: "gray",
2589
+ success: "green",
2590
+ warning: "amber",
2591
+ error: "red",
2592
+ info: "blue"
2593
+ }, yt = {
2594
+ light: {
2595
+ background: ["base", 50],
2596
+ surface: ["base", 100],
2597
+ subtle: ["base", 200],
2598
+ elevated: ["base", 300],
2599
+ raised: ["base", 400],
2600
+ overlay: ["base", 500]
2601
+ },
2602
+ dark: {
2603
+ background: ["base", 950],
2604
+ surface: ["base", 900],
2605
+ subtle: ["base", 800],
2606
+ elevated: ["base", 700],
2607
+ raised: ["base", 600],
2608
+ overlay: ["base", 500]
2609
+ }
2610
+ }, vt = {
2611
+ light: {
2612
+ normal: ["base", 900],
2613
+ muted: ["base", 600],
2614
+ inverted: ["base", 100]
2615
+ },
2616
+ dark: {
2617
+ normal: ["base", 100],
2618
+ muted: ["base", 400],
2619
+ inverted: ["base", 900]
2620
+ }
2621
+ }, wt = {
2622
+ light: {
2623
+ border: ["base", 200],
2624
+ divider: ["base", 300],
2625
+ inverted: ["base", 100]
2626
+ },
2627
+ dark: {
2628
+ border: ["base", 700],
2629
+ divider: ["base", 600],
2630
+ inverted: ["base", 900]
2631
+ }
2632
+ };
2633
+ function Tl(n) {
2634
+ return ye.includes(n) ? ln[n] : n;
2635
+ }
2636
+ function ge(n, l) {
2637
+ return `--color-${n}-${l}`;
2638
+ }
2639
+ function te(n, l) {
2640
+ return `var(${ge(n, l)})`;
2641
+ }
2642
+ function $t() {
2643
+ const n = {};
2644
+ return n["--color-white"] = "white", n["--color-black"] = "black", n["--color-inherit"] = "inherit", F(en).forEach(([l, e]) => {
2645
+ F(e).forEach(([t, o]) => {
2646
+ n[ge(l, t)] = o;
2647
+ });
2648
+ }), ye.forEach((l) => {
2649
+ const e = ln[l];
2650
+ xt.forEach((t) => {
2651
+ n[ge(l, t)] = te(
2652
+ e,
2653
+ t
2654
+ );
2655
+ });
2656
+ }), F(yt).forEach(([l, e]) => {
2657
+ F(e).forEach(([t, [o, r]]) => {
2658
+ n[`--bg-${t}-${l}`] = te(o, r);
2659
+ });
2660
+ }), F(vt).forEach(([l, e]) => {
2661
+ F(e).forEach(([t, [o, r]]) => {
2662
+ n[`--text-${t}-${l}`] = te(o, r);
2663
+ });
2664
+ }), F(wt).forEach(([l, e]) => {
2665
+ F(e).forEach(([t, [o, r]]) => {
2666
+ n[`--border-${t}-${l}`] = te(
2667
+ o,
2668
+ r
2669
+ );
2670
+ });
2671
+ }), n;
2672
+ }
2673
+ const on = {
2674
+ none: "0",
2675
+ xs: "calc(var(--spacing-base) / 2)",
2676
+ sm: "var(--spacing-base)",
2677
+ md: "calc(var(--spacing-base) * 1.5)",
2678
+ lg: "calc(var(--spacing-base) * 2)",
2679
+ xl: "calc(var(--spacing-base) * 3)",
2680
+ full: "9999px"
2681
+ };
2682
+ function rn(n) {
2683
+ return `--radius-${n}`;
2684
+ }
2685
+ function Ol(n) {
2686
+ return `var(${rn(n)})`;
2687
+ }
2688
+ function Vl(n) {
2689
+ return `@media (width >= ${on[n]})`;
2690
+ }
2691
+ function St() {
2692
+ const n = {};
2693
+ return F(on).forEach(([l, e]) => {
2694
+ n[rn(l)] = e;
2695
+ }), n;
2696
+ }
2697
+ const _t = "0.25rem", Ct = {
2698
+ none: "0",
2699
+ px: "1px",
2700
+ base: _t,
2701
+ xs: "calc(var(--spacing-base) / 2)",
2702
+ sm: "var(--spacing-base)",
2703
+ md: "calc(var(--spacing-base) * 1.5)",
2704
+ lg: "calc(var(--spacing-base) * 2)",
2705
+ xl: "calc(var(--spacing-base) * 3)",
2706
+ "2xl": "calc(var(--spacing-base) * 4)",
2707
+ "3xl": "calc(var(--spacing-base) * 6)",
2708
+ full: "9999px"
2709
+ };
2710
+ function sn(n) {
2711
+ return `--spacing-${n}`;
2712
+ }
2713
+ function jl(n) {
2714
+ return `var(${sn(n)})`;
2715
+ }
2716
+ function Et() {
2717
+ const n = {};
2718
+ return F(Ct).forEach(([l, e]) => {
2719
+ n[sn(l)] = e;
2720
+ }), n;
2721
+ }
2722
+ const Bt = {
2723
+ xs: ["0.75rem", { lineHeight: "1rem" }],
2724
+ // 12px
2725
+ sm: ["0.875rem", { lineHeight: "1.25rem" }],
2726
+ // 14px
2727
+ base: ["1rem", { lineHeight: "1.5rem" }],
2728
+ // 16px
2729
+ lg: ["1.125rem", { lineHeight: "1.75rem" }],
2730
+ // 18px
2731
+ xl: ["1.25rem", { lineHeight: "1.75rem" }],
2732
+ // 20px
2733
+ "2xl": ["1.5rem", { lineHeight: "2rem" }],
2734
+ // 24px
2735
+ "3xl": ["1.875rem", { lineHeight: "2.25rem" }],
2736
+ // 30px
2737
+ "4xl": ["2.25rem", { lineHeight: "2.5rem" }],
2738
+ // 36px
2739
+ "5xl": ["3rem", { lineHeight: "1" }],
2740
+ // 48px
2741
+ "6xl": ["3.75rem", { lineHeight: "1" }],
2742
+ // 60px
2743
+ "7xl": ["4.5rem", { lineHeight: "1" }],
2744
+ // 72px
2745
+ "8xl": ["6rem", { lineHeight: "1" }],
2746
+ // 96px
2747
+ "9xl": ["8rem", { lineHeight: "1" }]
2748
+ // 128px
2749
+ }, It = {
2750
+ thin: "100",
2751
+ extralight: "200",
2752
+ light: "300",
2753
+ normal: "400",
2754
+ medium: "500",
2755
+ semibold: "600",
2756
+ bold: "700",
2757
+ extrabold: "800",
2758
+ black: "900"
2759
+ }, At = {
2760
+ none: "1",
2761
+ tight: "1.25",
2762
+ snug: "1.375",
2763
+ normal: "1.5",
2764
+ relaxed: "1.625",
2765
+ loose: "2"
2766
+ }, Tt = {
2767
+ tighter: "-0.05em",
2768
+ tight: "-0.025em",
2769
+ normal: "0em",
2770
+ wide: "0.025em",
2771
+ wider: "0.05em",
2772
+ widest: "0.1em"
2773
+ }, Ot = {
2774
+ sans: [
2775
+ "system-ui",
2776
+ "-apple-system",
2777
+ "BlinkMacSystemFont",
2778
+ '"Segoe UI"',
2779
+ "Roboto",
2780
+ '"Helvetica Neue"',
2781
+ "Arial",
2782
+ '"Noto Sans"',
2783
+ "sans-serif",
2784
+ '"Apple Color Emoji"',
2785
+ '"Segoe UI Emoji"',
2786
+ '"Segoe UI Symbol"',
2787
+ '"Noto Color Emoji"'
2788
+ ],
2789
+ serif: [
2790
+ "ui-serif",
2791
+ "Georgia",
2792
+ "Cambria",
2793
+ '"Times New Roman"',
2794
+ "Times",
2795
+ "serif"
2796
+ ],
2797
+ mono: [
2798
+ "ui-monospace",
2799
+ "SFMono-Regular",
2800
+ '"SF Mono"',
2801
+ "Consolas",
2802
+ '"Liberation Mono"',
2803
+ "Menlo",
2804
+ "monospace"
2805
+ ]
2806
+ };
2807
+ function cn(n) {
2808
+ return `--font-size-${n}`;
2809
+ }
2810
+ function Nl(n) {
2811
+ return `var(${cn(n)})`;
2812
+ }
2813
+ function Vt(n) {
2814
+ return `--font-weight-${n}`;
2815
+ }
2816
+ function jt(n) {
2817
+ return `var(${jt()})`;
2818
+ }
2819
+ function an(n) {
2820
+ return `--line-height-${n}`;
2821
+ }
2822
+ function Fl(n) {
2823
+ return `var(${an(n)})`;
2824
+ }
2825
+ function un(n) {
2826
+ return `--letter-spacing-${n}`;
2827
+ }
2828
+ function Hl(n) {
2829
+ return `var(${un(n)})`;
2830
+ }
2831
+ function hn(n) {
2832
+ return `--font-family-${n}`;
2833
+ }
2834
+ function Wl(n) {
2835
+ return `var(${hn(n)})`;
2836
+ }
2837
+ function Nt() {
2838
+ const n = {};
2839
+ return Object.entries(Bt).forEach(([l, e]) => {
2840
+ const [t] = Array.isArray(e) ? e : [e];
2841
+ n[cn(l)] = t;
2842
+ }), Object.entries(It).forEach(([l, e]) => {
2843
+ n[Vt(l)] = e;
2844
+ }), Object.entries(At).forEach(([l, e]) => {
2845
+ n[an(l)] = e;
2846
+ }), Object.entries(Tt).forEach(([l, e]) => {
2847
+ n[un(l)] = e;
2848
+ }), Object.entries(Ot).forEach(([l, e]) => {
2849
+ n[hn(l)] = e.join(", ");
2850
+ }), n;
2851
+ }
2852
+ function Dl() {
2853
+ return {
2854
+ ...$t(),
2855
+ ...Et(),
2856
+ ...Nt(),
2857
+ ...kt(),
2858
+ ...St()
2859
+ };
2860
+ }
2861
+ function Pl(n, l) {
2862
+ return l == null && typeof window > "u" ? "" : getComputedStyle(l ?? document.documentElement).getPropertyValue(n).trim();
2863
+ }
2864
+ function Ml(n, l = 0, e = () => !0) {
2865
+ let t = null, o;
2866
+ const r = W(n.value);
2867
+ return n.on((s) => {
2868
+ o = s, e(s) ? t == null && (t = setTimeout(() => {
2869
+ t = null, r.set(o);
2870
+ }, l)) : r.set(s);
2871
+ }), n.onDispose(() => {
2872
+ t != null && clearTimeout(t);
2873
+ }), r;
2874
+ }
2136
2875
  export {
2137
- Pt as AppShell,
2138
- je as Button,
2139
- Ht as Card,
2140
- Mt as Center,
2141
- Vt as CenterH,
2142
- Tt as CheckboxInput,
2143
- j as CommonInputAttributes,
2144
- k as ControlInputWrapper,
2145
- pt as DateControl,
2146
- He as DateInput,
2147
- dt as DateTimeControl,
2148
- _n as DateTimeInput,
2149
- Ot as EditableText,
2150
- mt as EmailControl,
2151
- Bn as EmailInput,
2152
- at as EmphasisLabel,
2153
- ut as ErrorLabel,
2154
- In as Expando,
2155
- Ln as FormController,
2156
- ht as FormStatus,
2157
- Lt as Group,
2158
- re as GroupController,
2159
- Q as Icon,
2876
+ xl as AppShell,
2877
+ Bn as BeatUITheme,
2878
+ He as Button,
2879
+ yl as Card,
2880
+ wl as Center,
2881
+ vl as CenterH,
2882
+ il as CheckboxInput,
2883
+ V as CommonInputAttributes,
2884
+ I as ControlInputWrapper,
2885
+ qt as DateControl,
2886
+ Re as DateInput,
2887
+ zt as DateTimeControl,
2888
+ Mn as DateTimeInput,
2889
+ hl as EditableText,
2890
+ Ut as EmailControl,
2891
+ Ln as EmailInput,
2892
+ Pt as EmphasisLabel,
2893
+ Mt as ErrorLabel,
2894
+ Rn as Expando,
2895
+ ot as FormController,
2896
+ Gt as FormStatus,
2897
+ $l as Group,
2898
+ se as GroupController,
2899
+ Z as Icon,
2160
2900
  O as InputContainer,
2161
- vn as Label,
2162
- En as LazyNativeSelect,
2163
- ft as LazyNativeSelectControl,
2164
- ce as ListController,
2165
- wn as MutedLabel,
2166
- Me as NativeSelect,
2167
- bt as NativeSelectControl,
2168
- xt as NullableDateControl,
2169
- Le as NullableDateInput,
2170
- yt as NullableDateTimeControl,
2171
- qe as NullableDateTimeInput,
2172
- vt as NullableStringDateControl,
2173
- wt as NullableStringDateTimeControl,
2174
- Dn as NullableTextArea,
2175
- $t as NullableTextAreaControl,
2176
- St as NullableTextControl,
2177
- jn as NullableTextInput,
2178
- Ct as NumberControl,
2179
- Nn as NumberInput,
2180
- Gt as OverlayBody,
2181
- zt as OverlayElement,
2182
- _t as PasswordControl,
2183
- Wn as PasswordInput,
2184
- $n as RequiredSymbol,
2185
- Bt as SegmentedControl,
2186
- ue as SelectOption,
2187
- qt as Sink,
2188
- Rt as Stack,
2189
- It as StringDateControl,
2190
- yn as Tag,
2191
- kt as TagsControl,
2192
- Pn as TagsInput,
2193
- Hn as TextArea,
2194
- Et as TextAreaControl,
2195
- it as TextControl,
2196
- Sn as TextInput,
2197
- _ as Theme,
2198
- ot as ThemeAppeareance,
2199
- Yt as Use,
2200
- te as ValueController,
2201
- Ue as WithBreakpoint,
2202
- Yn as WithTWBreakpoint,
2203
- Ft as WithTWElementBreakpoint,
2204
- Un as compareBreakpoint,
2205
- Ge as connectCommonAttributes,
2206
- Dt as connectNumberInput,
2207
- jt as connectStringInput,
2208
- Rn as convertStandardSchemaIssues,
2209
- qn as convertStandardSchemaPathToPath,
2210
- gt as emitExpando,
2211
- kn as emitOptionExpando,
2212
- ne as emptyToNull,
2213
- Wt as findBreakpoint,
2901
+ Fn as Label,
2902
+ zn as LazyNativeSelect,
2903
+ Qt as LazyNativeSelectControl,
2904
+ pe as ListController,
2905
+ Hn as MutedLabel,
2906
+ ze as NativeSelect,
2907
+ Yt as NativeSelectControl,
2908
+ Jt as NullableDateControl,
2909
+ Ue as NullableDateInput,
2910
+ Kt as NullableDateTimeControl,
2911
+ Ge as NullableDateTimeInput,
2912
+ Zt as NullableStringDateControl,
2913
+ el as NullableStringDateTimeControl,
2914
+ Yn as NullableTextArea,
2915
+ nl as NullableTextAreaControl,
2916
+ tl as NullableTextControl,
2917
+ Qn as NullableTextInput,
2918
+ ll as NumberControl,
2919
+ Jn as NumberInput,
2920
+ El as OverlayBody,
2921
+ Cl as OverlayElement,
2922
+ ol as PasswordControl,
2923
+ Kn as PasswordInput,
2924
+ Wn as RequiredSymbol,
2925
+ rl as SegmentedControl,
2926
+ de as SelectOption,
2927
+ Sl as Sink,
2928
+ _l as Stack,
2929
+ sl as StringDateControl,
2930
+ Nn as Tag,
2931
+ cl as TagsControl,
2932
+ et as TagsInput,
2933
+ nt as TextArea,
2934
+ al as TextAreaControl,
2935
+ Rt as TextControl,
2936
+ Dn as TextInput,
2937
+ C as Theme,
2938
+ Dt as ThemeAppeareance,
2939
+ dl as Toggle,
2940
+ ql as Use,
2941
+ re as ValueController,
2942
+ Je as WithBreakpoint,
2943
+ ht as WithTWBreakpoint,
2944
+ fl as WithTWElementBreakpoint,
2945
+ _t as baseSpacing,
2946
+ yt as bgColors,
2947
+ wt as borderColors,
2948
+ nn as breakpoints,
2949
+ xt as colorShades,
2950
+ en as colors,
2951
+ ut as compareBreakpoint,
2952
+ Ye as connectCommonAttributes,
2953
+ ml as connectNumberInput,
2954
+ pl as connectStringInput,
2955
+ st as convertStandardSchemaIssues,
2956
+ rt as convertStandardSchemaPathToPath,
2957
+ Ml as delaySignal,
2958
+ Xt as emitExpando,
2959
+ qn as emitOptionExpando,
2960
+ oe as emptyToNull,
2961
+ bl as findBreakpoint,
2962
+ Ot as fontFamily,
2963
+ Bt as fontSize,
2964
+ It as fontWeight,
2965
+ Dl as generateAllTokenVariables,
2966
+ kt as generateBreakpointVariables,
2967
+ $t as generateColorVariables,
2968
+ St as generateRadiusVariables,
2969
+ Et as generateSpacingVariables,
2970
+ Nt as generateTypographyVariables,
2971
+ Il as getBreakpointMediaQuery,
2972
+ Bl as getBreakpointVar,
2973
+ tn as getBreakpointVarName,
2974
+ te as getColorVar,
2975
+ ge as getColorVarName,
2976
+ Wl as getFontFamilyVar,
2977
+ hn as getFontFamilyVarName,
2978
+ Nl as getFontSizeVar,
2979
+ cn as getFontSizeVarName,
2980
+ jt as getFontWeightVar,
2981
+ Vt as getFontWeightVarName,
2982
+ Hl as getLetterSpacingVar,
2983
+ un as getLetterSpacingVarName,
2984
+ Fl as getLineHeightVar,
2985
+ an as getLineHeightVarName,
2986
+ Vl as getRadiusMediaQuery,
2987
+ Ol as getRadiusVar,
2988
+ rn as getRadiusVarName,
2989
+ jl as getSpacingVar,
2990
+ sn as getSpacingVarName,
2991
+ Pl as getTokenValue,
2214
2992
  T as inputOptionsFromController,
2215
- me as inputOptionsFromMappedController,
2216
- ze as makeMapValidationResult,
2217
- he as makeMappedOnChangeHandler,
2218
- ct as makeNullableOnChangeHandler,
2219
- E as makeOnBlurHandler,
2220
- D as makeOnChangeHandler,
2221
- tt as makeOverlay,
2222
- Re as nullToEmpty,
2223
- At as parsePath,
2224
- Mn as pathToString,
2225
- Nt as useForm,
2226
- Vn as wrapSegment
2993
+ fe as inputOptionsFromMappedController,
2994
+ Tt as letterSpacing,
2995
+ At as lineHeight,
2996
+ Qe as makeMapValidationResult,
2997
+ ke as makeMappedOnChangeHandler,
2998
+ Lt as makeNullableOnChangeHandler,
2999
+ A as makeOnBlurHandler,
3000
+ j as makeOnChangeHandler,
3001
+ ft as makeOverlay,
3002
+ Tl as normalizeColorName,
3003
+ Xe as nullToEmpty,
3004
+ ul as parsePath,
3005
+ lt as pathToString,
3006
+ on as radius,
3007
+ ye as semanticColorNames,
3008
+ ln as semanticColors,
3009
+ Ct as spacing,
3010
+ vt as textColors,
3011
+ Al as themeColorNames,
3012
+ me as useAnimatedElementToggle,
3013
+ Ke as useAnimatedToggle,
3014
+ gl as useForm,
3015
+ kl as useTimedToggle,
3016
+ tt as wrapSegment
2227
3017
  };