@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/README.md +35 -0
- package/dist/beatui.css +1 -1
- package/dist/index.es.js +2180 -1390
- package/dist/index.umd.js +5 -5
- package/dist/types/components/form/control/segmented-control.d.ts +1 -1
- package/dist/types/components/form/input/index.d.ts +1 -0
- package/dist/types/components/form/input/toggle.d.ts +12 -0
- package/dist/types/components/theme/types.d.ts +5 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/theme/beatui-theme.d.ts +2 -1
- package/dist/types/theme/index.d.ts +1 -0
- package/dist/types/tokens/index.d.ts +3 -1
- package/dist/types/utils/index.d.ts +2 -0
- package/package.json +11 -5
package/dist/index.es.js
CHANGED
|
@@ -1,1063 +1,1072 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
throw TypeError(
|
|
1
|
+
var dn = Object.defineProperty;
|
|
2
|
+
var Ne = (n) => {
|
|
3
|
+
throw TypeError(n);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var w = (
|
|
7
|
-
var
|
|
8
|
-
import { makeProviderMark as
|
|
9
|
-
import { Use as
|
|
10
|
-
import { useAppearence as
|
|
11
|
-
class
|
|
12
|
-
button({ variant:
|
|
13
|
-
const
|
|
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-${
|
|
17
|
+
`bc-control--rounded-${o}`
|
|
18
18
|
];
|
|
19
|
-
switch (
|
|
19
|
+
switch (l) {
|
|
20
20
|
case "filled":
|
|
21
|
-
|
|
21
|
+
r.push(`bu-bg--${t}`), r.push(`hover:bu-bg--${t}`);
|
|
22
22
|
break;
|
|
23
23
|
case "light":
|
|
24
|
-
|
|
24
|
+
r.push(`bu-bg--light-${t}`), r.push(`hover:bu-bg--light-${t}`);
|
|
25
25
|
break;
|
|
26
26
|
case "outline":
|
|
27
|
-
|
|
27
|
+
r.push(`bu-border--${t}`), r.push(`hover:bu-bg--light-${t}`);
|
|
28
28
|
break;
|
|
29
29
|
case "default":
|
|
30
|
-
|
|
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
|
-
|
|
33
|
+
r.push("bu-bg--inherit"), r.push(`bu-text--${t}`), r.push("hover:bu-underline");
|
|
34
34
|
break;
|
|
35
35
|
}
|
|
36
|
-
return
|
|
36
|
+
return r.join(" ");
|
|
37
37
|
}
|
|
38
|
-
overlay({ effect:
|
|
39
|
-
return `bc-overlay bc-overlay--effect-${
|
|
38
|
+
overlay({ effect: l, mode: e }) {
|
|
39
|
+
return `bc-overlay bc-overlay--effect-${l} bc-overlay--mode-${e}`;
|
|
40
40
|
}
|
|
41
|
-
icon({ size:
|
|
42
|
-
const
|
|
43
|
-
return e &&
|
|
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:
|
|
46
|
-
return `bc-panel ${(Array.isArray(
|
|
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(
|
|
49
|
-
return `bc-label bc-label--${
|
|
48
|
+
label(l) {
|
|
49
|
+
return `bc-label bc-label--${l.type}`;
|
|
50
50
|
}
|
|
51
|
-
inputContainer({ disabled:
|
|
52
|
-
const
|
|
53
|
-
return
|
|
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(
|
|
55
|
+
controlInputWrapper(l) {
|
|
56
56
|
return ["bc-control-input-wrapper"].join(" ");
|
|
57
57
|
}
|
|
58
58
|
controlInputWrapperLabelText({
|
|
59
|
-
hasError:
|
|
59
|
+
hasError: l,
|
|
60
60
|
disabled: e
|
|
61
61
|
}) {
|
|
62
|
-
const
|
|
63
|
-
return
|
|
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:
|
|
66
|
-
const
|
|
67
|
-
return
|
|
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(
|
|
69
|
+
checkboxInput(l) {
|
|
70
70
|
return "bc-checkbox-input";
|
|
71
71
|
}
|
|
72
|
-
editableText(
|
|
72
|
+
editableText(l) {
|
|
73
73
|
return "bc-editable-text";
|
|
74
74
|
}
|
|
75
|
-
numberInput(
|
|
75
|
+
numberInput(l) {
|
|
76
76
|
return "bc-number-input";
|
|
77
77
|
}
|
|
78
78
|
card({
|
|
79
|
-
variant:
|
|
79
|
+
variant: l = "default",
|
|
80
80
|
size: e = "md",
|
|
81
|
-
roundedness:
|
|
81
|
+
roundedness: t = "lg"
|
|
82
82
|
}) {
|
|
83
|
-
const
|
|
84
|
-
return
|
|
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:
|
|
86
|
+
center({ gap: l = "lg" }) {
|
|
87
87
|
const e = ["bc-center"];
|
|
88
|
-
return
|
|
88
|
+
return l !== "lg" && e.push(`bc-center--gap-${l}`), e.join(" ");
|
|
89
89
|
}
|
|
90
90
|
sink({
|
|
91
|
-
variant:
|
|
91
|
+
variant: l = "default",
|
|
92
92
|
size: e = "md",
|
|
93
|
-
roundedness:
|
|
93
|
+
roundedness: t = "lg"
|
|
94
94
|
}) {
|
|
95
|
-
const
|
|
96
|
-
return
|
|
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:
|
|
99
|
-
|
|
100
|
-
|
|
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:
|
|
110
|
+
const C = {
|
|
111
|
+
mark: gn("Theme"),
|
|
105
112
|
// Create function returns the value and cleanup
|
|
106
|
-
create: (
|
|
107
|
-
const
|
|
113
|
+
create: (n) => {
|
|
114
|
+
const l = new Bn(), e = Sn(), t = bn({
|
|
108
115
|
key: "beatui-appearance-preference",
|
|
109
116
|
defaultValue: "system"
|
|
110
|
-
}),
|
|
111
|
-
e.dispose(),
|
|
112
|
-
},
|
|
117
|
+
}), o = () => {
|
|
118
|
+
e.dispose(), t.dispose();
|
|
119
|
+
}, r = y(
|
|
113
120
|
e,
|
|
114
|
-
|
|
115
|
-
)((
|
|
121
|
+
t
|
|
122
|
+
)((u, i) => i === "system" ? u : i);
|
|
116
123
|
return {
|
|
117
124
|
value: {
|
|
118
|
-
theme:
|
|
119
|
-
appearance:
|
|
120
|
-
appearancePreference:
|
|
121
|
-
setAppearancePreference: (
|
|
122
|
-
|
|
125
|
+
theme: l,
|
|
126
|
+
appearance: r,
|
|
127
|
+
appearancePreference: t,
|
|
128
|
+
setAppearancePreference: (u) => {
|
|
129
|
+
t.set(u);
|
|
123
130
|
}
|
|
124
131
|
},
|
|
125
|
-
dispose:
|
|
132
|
+
dispose: o
|
|
126
133
|
};
|
|
127
134
|
}
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
({ appearance:
|
|
135
|
+
}, Dt = () => _(
|
|
136
|
+
C,
|
|
137
|
+
({ appearance: n }) => c.class(n.map((l) => `b-${l}`))
|
|
131
138
|
);
|
|
132
|
-
function
|
|
133
|
-
type:
|
|
134
|
-
disabled:
|
|
139
|
+
function He({
|
|
140
|
+
type: n = "button",
|
|
141
|
+
disabled: l,
|
|
135
142
|
variant: e = "filled",
|
|
136
|
-
size:
|
|
137
|
-
color:
|
|
138
|
-
roundedness:
|
|
139
|
-
onClick:
|
|
143
|
+
size: t = "md",
|
|
144
|
+
color: o = "base",
|
|
145
|
+
roundedness: r = "sm",
|
|
146
|
+
onClick: s = () => {
|
|
140
147
|
}
|
|
141
|
-
}, ...
|
|
142
|
-
return C
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
|
|
156
|
+
t ?? "md",
|
|
157
|
+
o,
|
|
158
|
+
r
|
|
152
159
|
)(
|
|
153
|
-
({ theme:
|
|
154
|
-
variant:
|
|
160
|
+
({ theme: a }, p, g, b, x) => a.button({
|
|
161
|
+
variant: p,
|
|
155
162
|
size: g,
|
|
156
163
|
color: b,
|
|
157
|
-
roundedness:
|
|
164
|
+
roundedness: x
|
|
158
165
|
})
|
|
159
166
|
)
|
|
160
167
|
),
|
|
161
|
-
m.click(
|
|
162
|
-
...
|
|
168
|
+
m.click(s),
|
|
169
|
+
...u
|
|
163
170
|
));
|
|
164
171
|
}
|
|
165
|
-
const
|
|
166
|
-
function
|
|
167
|
-
return new Promise((
|
|
168
|
-
const e = indexedDB.open(
|
|
169
|
-
e.onupgradeneeded = function(
|
|
170
|
-
const
|
|
171
|
-
|
|
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
|
-
|
|
180
|
+
n(e.result);
|
|
174
181
|
}, e.onerror = function() {
|
|
175
|
-
|
|
182
|
+
l(e.error);
|
|
176
183
|
};
|
|
177
184
|
});
|
|
178
185
|
}
|
|
179
|
-
const
|
|
180
|
-
function
|
|
181
|
-
return new Promise(async (e,
|
|
182
|
-
const
|
|
183
|
-
|
|
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
|
|
187
|
-
return new Promise(async (
|
|
188
|
-
const
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
},
|
|
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
|
|
195
|
-
const
|
|
196
|
-
return fetch(
|
|
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: ${
|
|
206
|
+
throw new Error(`Failed to load icon: ${n}`);
|
|
200
207
|
});
|
|
201
208
|
}
|
|
202
|
-
async function
|
|
203
|
-
const
|
|
209
|
+
async function jn(n) {
|
|
210
|
+
const l = n.replace(":", "/"), e = await On(l);
|
|
204
211
|
if (e)
|
|
205
212
|
return e;
|
|
206
|
-
const
|
|
207
|
-
return await
|
|
213
|
+
const t = await Vn(l);
|
|
214
|
+
return await Tn(l, t), t;
|
|
208
215
|
}
|
|
209
|
-
function
|
|
210
|
-
return C
|
|
211
|
-
|
|
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
|
-
)((
|
|
223
|
+
)((s, u, i) => s.icon({ size: u, color: i }))
|
|
217
224
|
),
|
|
218
|
-
|
|
219
|
-
|
|
225
|
+
q.label(t),
|
|
226
|
+
_n(
|
|
220
227
|
{ once: !0 },
|
|
221
|
-
() =>
|
|
222
|
-
request:
|
|
223
|
-
load: ({ request:
|
|
228
|
+
() => Me({
|
|
229
|
+
request: n,
|
|
230
|
+
load: ({ request: s }) => jn(s),
|
|
224
231
|
mapError: String
|
|
225
232
|
})({
|
|
226
|
-
success: (
|
|
233
|
+
success: (s) => h.span(
|
|
227
234
|
d.width("100%"),
|
|
228
235
|
d.height("100%"),
|
|
229
|
-
|
|
236
|
+
c.innerHTML(s)
|
|
230
237
|
),
|
|
231
|
-
loading: () =>
|
|
232
|
-
failure: (
|
|
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
|
-
...
|
|
242
|
+
...o
|
|
236
243
|
));
|
|
237
244
|
}
|
|
238
|
-
const
|
|
239
|
-
disabled:
|
|
240
|
-
value:
|
|
245
|
+
const Nn = ({
|
|
246
|
+
disabled: n,
|
|
247
|
+
value: l,
|
|
241
248
|
color: e = "base",
|
|
242
|
-
onClose:
|
|
249
|
+
onClose: t
|
|
243
250
|
}) => {
|
|
244
|
-
const
|
|
245
|
-
return C
|
|
246
|
-
|
|
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
|
-
|
|
256
|
+
o,
|
|
257
|
+
r
|
|
251
258
|
)(
|
|
252
|
-
({ theme:
|
|
259
|
+
({ theme: u }, i, a) => u.tag({
|
|
253
260
|
disabled: i,
|
|
254
|
-
color:
|
|
261
|
+
color: a
|
|
255
262
|
})
|
|
256
263
|
)
|
|
257
264
|
),
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
m.click(() =>
|
|
264
|
-
) :
|
|
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
|
-
},
|
|
267
|
-
|
|
268
|
-
({ theme:
|
|
269
|
-
),
|
|
270
|
-
|
|
271
|
-
({ theme:
|
|
272
|
-
),
|
|
273
|
-
|
|
274
|
-
({ theme:
|
|
275
|
-
),
|
|
276
|
-
|
|
277
|
-
({ theme:
|
|
278
|
-
),
|
|
279
|
-
|
|
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
|
-
),
|
|
282
|
-
required:
|
|
283
|
-
label:
|
|
288
|
+
), I = ({
|
|
289
|
+
required: n,
|
|
290
|
+
label: l,
|
|
284
291
|
context: e,
|
|
285
|
-
description:
|
|
286
|
-
content:
|
|
287
|
-
controller:
|
|
288
|
-
}) => C
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
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:
|
|
302
|
+
({ theme: u }, i, a) => u.controlInputWrapper({
|
|
296
303
|
hasError: i,
|
|
297
|
-
disabled:
|
|
304
|
+
disabled: a
|
|
298
305
|
})
|
|
299
306
|
)
|
|
300
307
|
),
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
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:
|
|
320
|
+
({ theme: u }, i, a) => u.controlInputWrapperLabelText({
|
|
314
321
|
hasError: i,
|
|
315
|
-
disabled:
|
|
322
|
+
disabled: a
|
|
316
323
|
})
|
|
317
324
|
)
|
|
318
325
|
),
|
|
319
|
-
|
|
326
|
+
l
|
|
320
327
|
),
|
|
321
|
-
|
|
328
|
+
l != null && n ? Wn : k
|
|
322
329
|
),
|
|
323
|
-
e != null ?
|
|
324
|
-
) :
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
) :
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
(
|
|
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:
|
|
336
|
-
disabled:
|
|
342
|
+
child: n,
|
|
343
|
+
disabled: l,
|
|
337
344
|
input: e,
|
|
338
|
-
before:
|
|
339
|
-
after:
|
|
340
|
-
hasError:
|
|
341
|
-
focusableSelector:
|
|
342
|
-
growInput:
|
|
345
|
+
before: t,
|
|
346
|
+
after: o,
|
|
347
|
+
hasError: r,
|
|
348
|
+
focusableSelector: s = "input, select, textarea",
|
|
349
|
+
growInput: u = !0
|
|
343
350
|
}) => {
|
|
344
|
-
const i =
|
|
345
|
-
return C
|
|
346
|
-
|
|
347
|
-
|
|
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 =
|
|
356
|
+
const b = p.querySelector(s);
|
|
350
357
|
b == null || b.focus();
|
|
351
358
|
};
|
|
352
|
-
return
|
|
359
|
+
return p.addEventListener("click", g), K(() => p.removeEventListener("click", g));
|
|
353
360
|
}),
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
361
|
+
c.class(
|
|
362
|
+
y(
|
|
363
|
+
a,
|
|
357
364
|
i,
|
|
358
|
-
|
|
365
|
+
r ?? !1
|
|
359
366
|
)(
|
|
360
|
-
({ theme:
|
|
367
|
+
({ theme: p }, g, b) => p.inputContainer({
|
|
361
368
|
disabled: g,
|
|
362
369
|
hasError: b
|
|
363
370
|
})
|
|
364
371
|
)
|
|
365
372
|
),
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
(
|
|
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
|
-
|
|
384
|
+
o != null ? h.span(c.class("bc-input-container__after"), o) : null
|
|
378
385
|
));
|
|
379
|
-
},
|
|
380
|
-
autocomplete:
|
|
381
|
-
autofocus:
|
|
386
|
+
}, V = ({
|
|
387
|
+
autocomplete: n,
|
|
388
|
+
autofocus: l,
|
|
382
389
|
class: e,
|
|
383
|
-
disabled:
|
|
384
|
-
name:
|
|
385
|
-
placeholder:
|
|
386
|
-
id:
|
|
387
|
-
}) =>
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
), T = (
|
|
396
|
-
id:
|
|
397
|
-
disabled:
|
|
398
|
-
value:
|
|
399
|
-
hasError:
|
|
400
|
-
}),
|
|
401
|
-
...T(
|
|
402
|
-
value:
|
|
403
|
-
}),
|
|
404
|
-
const { value:
|
|
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
|
-
...
|
|
407
|
-
input:
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
e != null ? m.blur(v(e)) :
|
|
412
|
-
|
|
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
|
-
},
|
|
416
|
-
const { value:
|
|
422
|
+
}, Dn = (n) => {
|
|
423
|
+
const { value: l, onBlur: e, onChange: t, onInput: o } = n;
|
|
417
424
|
return O({
|
|
418
|
-
...
|
|
419
|
-
input:
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
e != null ? m.blur(v(e)) :
|
|
424
|
-
|
|
425
|
-
|
|
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
|
-
},
|
|
435
|
+
}, A = (
|
|
429
436
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
430
|
-
(
|
|
431
|
-
|
|
437
|
+
(n, l) => () => {
|
|
438
|
+
l == null || l();
|
|
432
439
|
}
|
|
433
|
-
),
|
|
434
|
-
|
|
435
|
-
},
|
|
436
|
-
const
|
|
437
|
-
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
},
|
|
441
|
-
const { onBlur:
|
|
442
|
-
return
|
|
443
|
-
...
|
|
444
|
-
content:
|
|
445
|
-
...
|
|
446
|
-
...T(
|
|
447
|
-
onChange:
|
|
448
|
-
onBlur:
|
|
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
|
-
},
|
|
452
|
-
const { onBlur:
|
|
453
|
-
return
|
|
454
|
-
...
|
|
455
|
-
content:
|
|
456
|
-
...
|
|
457
|
-
...T(
|
|
458
|
-
onChange:
|
|
459
|
-
onBlur:
|
|
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
|
-
},
|
|
463
|
-
const
|
|
464
|
-
return `${
|
|
465
|
-
},
|
|
466
|
-
const { value:
|
|
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
|
-
...
|
|
469
|
-
input:
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
e != null ? m.blur(v(e)) :
|
|
474
|
-
|
|
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
|
-
},
|
|
478
|
-
const { onBlur:
|
|
479
|
-
return
|
|
480
|
-
...
|
|
481
|
-
content:
|
|
482
|
-
...
|
|
483
|
-
...T(
|
|
484
|
-
onChange:
|
|
485
|
-
onBlur:
|
|
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
|
-
},
|
|
489
|
-
const
|
|
495
|
+
}, Ln = (n) => {
|
|
496
|
+
const l = {
|
|
490
497
|
name: "email",
|
|
491
498
|
autocomplete: "email",
|
|
492
499
|
placeholder: "you@company.com",
|
|
493
|
-
...
|
|
494
|
-
}, { value: e, onBlur:
|
|
500
|
+
...n
|
|
501
|
+
}, { value: e, onBlur: t, onChange: o, onInput: r } = l;
|
|
495
502
|
return O({
|
|
496
|
-
...
|
|
497
|
-
input:
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
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
|
-
},
|
|
507
|
-
const { onChange:
|
|
508
|
-
return
|
|
513
|
+
}, Ut = (n) => {
|
|
514
|
+
const { onChange: l, onBlur: e, ...t } = n;
|
|
515
|
+
return I({
|
|
509
516
|
label: "Email",
|
|
510
|
-
...
|
|
511
|
-
content:
|
|
512
|
-
...
|
|
513
|
-
...T(
|
|
514
|
-
onChange:
|
|
515
|
-
onBlur:
|
|
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
|
-
},
|
|
525
|
+
}, Gt = {
|
|
519
526
|
filling: { type: "filling" },
|
|
520
527
|
submitting: { type: "submitting" },
|
|
521
|
-
error: (
|
|
528
|
+
error: (n) => ({ type: "error", error: n }),
|
|
522
529
|
success: { type: "success" }
|
|
523
|
-
},
|
|
524
|
-
const
|
|
525
|
-
return K(
|
|
526
|
-
}),
|
|
527
|
-
const e = `${
|
|
528
|
-
return (
|
|
529
|
-
|
|
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
|
-
},
|
|
532
|
-
const e = `${
|
|
533
|
-
return (
|
|
534
|
-
const
|
|
535
|
-
|
|
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
|
-
},
|
|
538
|
-
value: (
|
|
544
|
+
}, de = {
|
|
545
|
+
value: (n, l, e) => ({
|
|
539
546
|
type: "value",
|
|
540
|
-
value:
|
|
541
|
-
label:
|
|
547
|
+
value: n,
|
|
548
|
+
label: l,
|
|
542
549
|
disabled: e
|
|
543
550
|
}),
|
|
544
|
-
group: (
|
|
551
|
+
group: (n, l, e) => ({
|
|
545
552
|
type: "group",
|
|
546
|
-
group:
|
|
547
|
-
options:
|
|
553
|
+
group: n,
|
|
554
|
+
options: l,
|
|
548
555
|
disabled: e
|
|
549
556
|
}),
|
|
550
557
|
break: { type: "break" },
|
|
551
|
-
getOptionValues: (
|
|
552
|
-
(
|
|
558
|
+
getOptionValues: (n) => n.flatMap(
|
|
559
|
+
(l) => l.type === "group" ? de.getOptionValues(l.options) : l.type === "break" ? [] : [l.value]
|
|
553
560
|
),
|
|
554
|
-
contains: (
|
|
555
|
-
},
|
|
556
|
-
|
|
557
|
-
(
|
|
558
|
-
value: (
|
|
559
|
-
const
|
|
560
|
-
|
|
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
|
-
)((
|
|
563
|
-
return
|
|
564
|
-
K(
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
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: (
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
(
|
|
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: () =>
|
|
588
|
+
break: () => h.hr()
|
|
582
589
|
})
|
|
583
|
-
),
|
|
590
|
+
), ze = (n) => {
|
|
584
591
|
const {
|
|
585
|
-
value:
|
|
592
|
+
value: l,
|
|
586
593
|
onBlur: e,
|
|
587
|
-
onChange:
|
|
588
|
-
options:
|
|
589
|
-
unselectedLabel:
|
|
590
|
-
equality:
|
|
591
|
-
} =
|
|
592
|
-
let
|
|
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
|
-
...
|
|
601
|
+
...n,
|
|
595
602
|
child: m.click(() => {
|
|
596
|
-
|
|
603
|
+
u == null || u.focus(), typeof (u == null ? void 0 : u.showPicker) == "function" && u.showPicker();
|
|
597
604
|
}),
|
|
598
|
-
input:
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
const
|
|
602
|
-
const { removedNodes: g } =
|
|
603
|
-
g.length > 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
|
|
612
|
+
return a.observe(i, { childList: !0 }), K(() => a.disconnect());
|
|
606
613
|
}),
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
e != null ? m.blur(e) :
|
|
613
|
-
|
|
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
|
-
},
|
|
617
|
-
request:
|
|
618
|
-
load:
|
|
623
|
+
}, zn = (n) => Me({
|
|
624
|
+
request: n.request,
|
|
625
|
+
load: n.load,
|
|
619
626
|
mapError: String
|
|
620
627
|
})({
|
|
621
|
-
success: (
|
|
622
|
-
const e =
|
|
623
|
-
(
|
|
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
|
|
626
|
-
...
|
|
632
|
+
return ze({
|
|
633
|
+
...n,
|
|
627
634
|
options: e,
|
|
628
|
-
unselectedLabel:
|
|
629
|
-
equality:
|
|
635
|
+
unselectedLabel: n.unselectedLabel,
|
|
636
|
+
equality: n.equality
|
|
630
637
|
});
|
|
631
638
|
},
|
|
632
|
-
loading: () =>
|
|
633
|
-
}),
|
|
634
|
-
const { onBlur:
|
|
635
|
-
return
|
|
636
|
-
...
|
|
637
|
-
content:
|
|
638
|
-
...
|
|
639
|
-
...T(
|
|
640
|
-
onChange:
|
|
641
|
-
onBlur:
|
|
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
|
-
},
|
|
645
|
-
const { onBlur:
|
|
646
|
-
return
|
|
647
|
-
...
|
|
648
|
-
content:
|
|
649
|
-
...
|
|
650
|
-
...T(
|
|
651
|
-
onChange:
|
|
652
|
-
onBlur:
|
|
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
|
-
},
|
|
656
|
-
const { value:
|
|
662
|
+
}, Ue = (n) => {
|
|
663
|
+
const { value: l, onBlur: e, onChange: t } = n;
|
|
657
664
|
return O({
|
|
658
|
-
...
|
|
659
|
-
input:
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
e != null ? m.blur(v(e)) :
|
|
664
|
-
|
|
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
|
-
},
|
|
668
|
-
const { onBlur:
|
|
669
|
-
return
|
|
670
|
-
...
|
|
671
|
-
content:
|
|
672
|
-
...
|
|
673
|
-
...T(
|
|
674
|
-
onChange:
|
|
675
|
-
onBlur:
|
|
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
|
-
},
|
|
679
|
-
const
|
|
680
|
-
return `${
|
|
681
|
-
},
|
|
682
|
-
const { value:
|
|
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
|
-
...
|
|
685
|
-
input:
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
e != null ? m.blur(v(e)) :
|
|
690
|
-
|
|
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
|
-
},
|
|
694
|
-
const { onBlur:
|
|
695
|
-
return
|
|
696
|
-
...
|
|
697
|
-
content:
|
|
698
|
-
...
|
|
699
|
-
...T(
|
|
700
|
-
onChange:
|
|
701
|
-
onBlur:
|
|
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
|
-
},
|
|
705
|
-
const { onBlur:
|
|
706
|
-
return
|
|
707
|
-
...
|
|
708
|
-
content:
|
|
709
|
-
...
|
|
710
|
-
...
|
|
711
|
-
|
|
712
|
-
(
|
|
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:
|
|
715
|
-
|
|
716
|
-
(
|
|
721
|
+
onChange: ke(
|
|
722
|
+
t.controller,
|
|
723
|
+
(o) => o != null ? o.toISOString().split("T")[0] : null,
|
|
717
724
|
e
|
|
718
725
|
),
|
|
719
|
-
onBlur:
|
|
726
|
+
onBlur: A(t.controller, l)
|
|
720
727
|
})
|
|
721
728
|
});
|
|
722
|
-
},
|
|
723
|
-
const { onBlur:
|
|
724
|
-
return
|
|
725
|
-
...
|
|
726
|
-
content:
|
|
727
|
-
...
|
|
728
|
-
...
|
|
729
|
-
|
|
730
|
-
(
|
|
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:
|
|
733
|
-
|
|
734
|
-
(
|
|
739
|
+
onChange: ke(
|
|
740
|
+
t.controller,
|
|
741
|
+
(o) => o != null ? Xn(o) : null,
|
|
735
742
|
e
|
|
736
743
|
),
|
|
737
|
-
onBlur:
|
|
744
|
+
onBlur: A(t.controller, l)
|
|
738
745
|
})
|
|
739
746
|
});
|
|
740
|
-
},
|
|
741
|
-
const { value:
|
|
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
|
-
...
|
|
744
|
-
input:
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
e != null ? m.blur(e) :
|
|
749
|
-
|
|
750
|
-
|
|
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
|
-
},
|
|
754
|
-
const { value:
|
|
760
|
+
}, Yn = (n) => {
|
|
761
|
+
const { value: l, onBlur: e, onChange: t, onInput: o, rows: r } = n;
|
|
755
762
|
return O({
|
|
756
|
-
...
|
|
757
|
-
input:
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
e != null ? m.blur(e) :
|
|
763
|
-
|
|
764
|
-
|
|
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
|
-
},
|
|
768
|
-
const { onBlur:
|
|
769
|
-
return
|
|
770
|
-
...
|
|
771
|
-
content:
|
|
772
|
-
...
|
|
773
|
-
...T(
|
|
774
|
-
rows:
|
|
775
|
-
onChange:
|
|
776
|
-
onBlur:
|
|
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
|
-
},
|
|
780
|
-
const { onBlur:
|
|
781
|
-
return
|
|
782
|
-
...
|
|
783
|
-
content:
|
|
784
|
-
...
|
|
785
|
-
...T(
|
|
786
|
-
onChange:
|
|
787
|
-
onBlur:
|
|
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
|
-
},
|
|
791
|
-
const { value:
|
|
792
|
-
return C
|
|
793
|
-
...
|
|
794
|
-
input:
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
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:
|
|
813
|
+
({ theme: p }, g) => p.numberInput({
|
|
807
814
|
disabled: g
|
|
808
815
|
})
|
|
809
816
|
)
|
|
810
817
|
),
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
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
|
-
},
|
|
817
|
-
const { onBlur:
|
|
818
|
-
return
|
|
819
|
-
...
|
|
820
|
-
content:
|
|
821
|
-
...
|
|
822
|
-
...T(
|
|
823
|
-
onChange:
|
|
824
|
-
onBlur:
|
|
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
|
-
},
|
|
834
|
+
}, Kn = (n) => {
|
|
828
835
|
const {
|
|
829
|
-
value:
|
|
836
|
+
value: l,
|
|
830
837
|
onBlur: e,
|
|
831
|
-
onChange:
|
|
832
|
-
onInput:
|
|
833
|
-
before:
|
|
834
|
-
after:
|
|
835
|
-
hasError:
|
|
838
|
+
onChange: t,
|
|
839
|
+
onInput: o,
|
|
840
|
+
before: r,
|
|
841
|
+
after: s,
|
|
842
|
+
hasError: u,
|
|
836
843
|
disabled: i,
|
|
837
|
-
autocomplete:
|
|
838
|
-
placeholder:
|
|
844
|
+
autocomplete: a,
|
|
845
|
+
placeholder: p,
|
|
839
846
|
...g
|
|
840
|
-
} =
|
|
847
|
+
} = n, b = {
|
|
841
848
|
name: "password",
|
|
842
849
|
...g
|
|
843
|
-
},
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
)((
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
)((
|
|
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:
|
|
858
|
+
before: r,
|
|
852
859
|
disabled: i,
|
|
853
|
-
hasError:
|
|
854
|
-
input:
|
|
855
|
-
|
|
860
|
+
hasError: u,
|
|
861
|
+
input: h.input(
|
|
862
|
+
V({
|
|
856
863
|
...b,
|
|
857
|
-
autocomplete:
|
|
858
|
-
placeholder:
|
|
864
|
+
autocomplete: E,
|
|
865
|
+
placeholder: H
|
|
859
866
|
}),
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
() =>
|
|
863
|
-
() =>
|
|
867
|
+
le(
|
|
868
|
+
x,
|
|
869
|
+
() => U(c.type("password")),
|
|
870
|
+
() => U(c.type("text"))
|
|
864
871
|
),
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
e != null ? m.blur(v(e)) :
|
|
868
|
-
|
|
869
|
-
|
|
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:
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
m.click(() =>
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
() =>
|
|
878
|
-
() =>
|
|
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
|
-
},
|
|
883
|
-
const { onBlur:
|
|
884
|
-
return
|
|
889
|
+
}, ol = (n) => {
|
|
890
|
+
const { onBlur: l, onChange: e, ...t } = n;
|
|
891
|
+
return I({
|
|
885
892
|
label: "Password",
|
|
886
|
-
...
|
|
887
|
-
content:
|
|
888
|
-
...
|
|
889
|
-
...T(
|
|
890
|
-
onChange:
|
|
891
|
-
onBlur:
|
|
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
|
|
896
|
-
return
|
|
902
|
+
function Zn(n, l) {
|
|
903
|
+
return n.length === l.length && n.every((e, t) => e === l[t]);
|
|
897
904
|
}
|
|
898
|
-
function
|
|
899
|
-
segments:
|
|
900
|
-
activeSegment:
|
|
905
|
+
function rl({
|
|
906
|
+
segments: n,
|
|
907
|
+
activeSegment: l = null,
|
|
901
908
|
onSegmentChange: e,
|
|
902
|
-
size:
|
|
909
|
+
size: t = "md"
|
|
903
910
|
}) {
|
|
904
|
-
const
|
|
905
|
-
|
|
906
|
-
|
|
911
|
+
const o = S.toSignal(
|
|
912
|
+
l ?? null
|
|
913
|
+
).deriveProp(), r = W(
|
|
914
|
+
n.map(() => 0),
|
|
915
|
+
Zn
|
|
907
916
|
);
|
|
908
|
-
return C
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
917
|
+
return _(C, (s) => h.div(
|
|
918
|
+
c.class(
|
|
919
|
+
y(
|
|
920
|
+
s,
|
|
921
|
+
t
|
|
913
922
|
)(
|
|
914
|
-
({ theme:
|
|
923
|
+
({ theme: u }, i) => u.segmentedControl({
|
|
915
924
|
size: i
|
|
916
925
|
})
|
|
917
926
|
)
|
|
918
927
|
),
|
|
919
|
-
|
|
920
|
-
|
|
928
|
+
h.div(
|
|
929
|
+
c.class("bc-segmented-control__container"),
|
|
921
930
|
// sliding tab block
|
|
922
|
-
|
|
923
|
-
|
|
931
|
+
h.div(
|
|
932
|
+
c.class("bc-segmented-control__indicator"),
|
|
924
933
|
d.display(
|
|
925
|
-
|
|
934
|
+
o.map((u) => u == null ? "none" : "block")
|
|
926
935
|
),
|
|
927
936
|
d.width(
|
|
928
|
-
|
|
937
|
+
Fe(() => `${r.value[o.value ?? 0]}px`, [o, r])
|
|
929
938
|
),
|
|
930
939
|
d.left(
|
|
931
|
-
|
|
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
|
-
|
|
944
|
+
n.map(({ label: u, onSelect: i }, a) => h.button(
|
|
936
945
|
// { href: href ?? '' },
|
|
937
|
-
m.click((
|
|
938
|
-
|
|
946
|
+
m.click((p) => {
|
|
947
|
+
p.preventDefault(), o.set(a), e == null || e(a), i == null || i();
|
|
939
948
|
}),
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
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
|
-
|
|
945
|
-
|
|
946
|
-
const
|
|
947
|
-
return
|
|
953
|
+
ce((p) => (p.on(({ width: g }) => {
|
|
954
|
+
r.update((b) => {
|
|
955
|
+
const x = [...b];
|
|
956
|
+
return x[a] = g, x;
|
|
948
957
|
});
|
|
949
|
-
}),
|
|
958
|
+
}), u))
|
|
950
959
|
))
|
|
951
960
|
)
|
|
952
961
|
));
|
|
953
962
|
}
|
|
954
|
-
const
|
|
955
|
-
const { onBlur:
|
|
956
|
-
return
|
|
957
|
-
...
|
|
958
|
-
content:
|
|
959
|
-
...
|
|
960
|
-
...
|
|
961
|
-
|
|
962
|
-
(
|
|
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:
|
|
965
|
-
|
|
966
|
-
(
|
|
973
|
+
onChange: ke(
|
|
974
|
+
t.controller,
|
|
975
|
+
(o) => o.toISOString(),
|
|
967
976
|
e
|
|
968
977
|
),
|
|
969
|
-
onBlur:
|
|
978
|
+
onBlur: A(t.controller, l)
|
|
970
979
|
})
|
|
971
980
|
});
|
|
972
|
-
},
|
|
973
|
-
const { value:
|
|
974
|
-
e == null || e(
|
|
975
|
-
},
|
|
976
|
-
const
|
|
977
|
-
|
|
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
|
-
...
|
|
981
|
-
input:
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
m.input(v(
|
|
989
|
-
e != null ? m.change(
|
|
990
|
-
|
|
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
|
-
},
|
|
995
|
-
const { onBlur:
|
|
996
|
-
return
|
|
997
|
-
...
|
|
998
|
-
content:
|
|
999
|
-
...
|
|
1000
|
-
...T(
|
|
1001
|
-
onChange:
|
|
1002
|
-
onBlur:
|
|
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
|
-
},
|
|
1006
|
-
const { value:
|
|
1014
|
+
}, nt = (n) => {
|
|
1015
|
+
const { value: l, onBlur: e, onChange: t, onInput: o, rows: r } = n;
|
|
1007
1016
|
return O({
|
|
1008
|
-
...
|
|
1009
|
-
input:
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
e != null ? m.blur(v(e)) :
|
|
1015
|
-
|
|
1016
|
-
|
|
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
|
-
},
|
|
1020
|
-
const { onBlur:
|
|
1021
|
-
return
|
|
1022
|
-
...
|
|
1023
|
-
content:
|
|
1024
|
-
...
|
|
1025
|
-
...T(
|
|
1026
|
-
rows:
|
|
1027
|
-
value:
|
|
1028
|
-
onChange:
|
|
1029
|
-
onBlur:
|
|
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
|
|
1042
|
+
function Qe(n) {
|
|
1034
1043
|
return function(e) {
|
|
1035
|
-
var
|
|
1044
|
+
var o;
|
|
1036
1045
|
if (e.type === "Valid") return e;
|
|
1037
|
-
const
|
|
1038
|
-
return
|
|
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
|
|
1042
|
-
return
|
|
1043
|
-
const
|
|
1044
|
-
return
|
|
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
|
|
1048
|
-
return typeof
|
|
1056
|
+
function tt(n) {
|
|
1057
|
+
return typeof n == "number" ? `[${n}]` : `.${n}`;
|
|
1049
1058
|
}
|
|
1050
|
-
function
|
|
1051
|
-
if (
|
|
1052
|
-
const [
|
|
1059
|
+
function lt(n) {
|
|
1060
|
+
if (n.length === 0) return "";
|
|
1061
|
+
const [l, ...e] = n;
|
|
1053
1062
|
return [
|
|
1054
|
-
typeof
|
|
1055
|
-
...e.map(
|
|
1063
|
+
typeof l == "number" ? `[${l}]` : l,
|
|
1064
|
+
...e.map(tt)
|
|
1056
1065
|
].join("");
|
|
1057
1066
|
}
|
|
1058
|
-
var
|
|
1059
|
-
class
|
|
1060
|
-
constructor(
|
|
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
|
-
|
|
1069
|
-
disabled:
|
|
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
|
-
|
|
1083
|
+
$(this, X).disabled.set(!0);
|
|
1075
1084
|
});
|
|
1076
1085
|
w(this, "enable", () => {
|
|
1077
|
-
|
|
1086
|
+
$(this, X).disabled.set(!1);
|
|
1078
1087
|
});
|
|
1079
|
-
this.path =
|
|
1080
|
-
(
|
|
1081
|
-
), this.parent =
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
)((
|
|
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
|
|
1096
|
+
return lt(this.path);
|
|
1088
1097
|
}
|
|
1089
1098
|
dispose() {
|
|
1090
|
-
|
|
1099
|
+
$(this, X).disabled.dispose();
|
|
1091
1100
|
}
|
|
1092
1101
|
}
|
|
1093
|
-
|
|
1094
|
-
var
|
|
1095
|
-
const
|
|
1096
|
-
constructor(e,
|
|
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
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
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
|
-
|
|
1106
|
-
|
|
1107
|
-
if (
|
|
1108
|
-
return
|
|
1109
|
-
const
|
|
1110
|
-
const
|
|
1111
|
-
|
|
1112
|
-
},
|
|
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
|
-
|
|
1115
|
-
this.value.map((
|
|
1116
|
-
this.status.map(
|
|
1123
|
+
o,
|
|
1124
|
+
this.value.map((s) => s[e]),
|
|
1125
|
+
this.status.map(Qe(e)),
|
|
1117
1126
|
{ disabled: this.disabled }
|
|
1118
1127
|
);
|
|
1119
|
-
return
|
|
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) =>
|
|
1123
|
-
w(this, "list", (e) =>
|
|
1124
|
-
w(this, "group", (e) =>
|
|
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,
|
|
1141
|
-
const
|
|
1142
|
-
for (const
|
|
1143
|
-
|
|
1144
|
-
const
|
|
1145
|
-
|
|
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
|
|
1159
|
+
for (const e of $(this, L))
|
|
1151
1160
|
e.dispose();
|
|
1152
|
-
|
|
1161
|
+
$(this, L).length = 0;
|
|
1153
1162
|
}
|
|
1154
1163
|
};
|
|
1155
|
-
|
|
1156
|
-
let
|
|
1157
|
-
var
|
|
1158
|
-
const
|
|
1159
|
-
constructor(e,
|
|
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
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
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
|
-
|
|
1169
|
-
|
|
1170
|
-
if (
|
|
1171
|
-
return
|
|
1172
|
-
const
|
|
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]:
|
|
1184
|
+
[e]: s
|
|
1176
1185
|
});
|
|
1177
|
-
},
|
|
1186
|
+
}, r = t(
|
|
1178
1187
|
[...this.path, e],
|
|
1179
|
-
|
|
1180
|
-
this.value.map((
|
|
1181
|
-
this.status.map(
|
|
1188
|
+
o,
|
|
1189
|
+
this.value.map((s) => s[e]),
|
|
1190
|
+
this.status.map(Qe(e)),
|
|
1182
1191
|
{ disabled: this.disabled }
|
|
1183
1192
|
);
|
|
1184
|
-
return
|
|
1193
|
+
return $(this, R).set(
|
|
1185
1194
|
e,
|
|
1186
|
-
|
|
1187
|
-
),
|
|
1195
|
+
r
|
|
1196
|
+
), r;
|
|
1188
1197
|
});
|
|
1189
|
-
w(this, "field", (e) =>
|
|
1190
|
-
w(this, "list", (e) =>
|
|
1191
|
-
w(this, "group", (e) =>
|
|
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
|
|
1204
|
+
for (const e of $(this, R).values())
|
|
1196
1205
|
e.dispose();
|
|
1197
|
-
|
|
1206
|
+
$(this, R).clear();
|
|
1198
1207
|
}
|
|
1199
1208
|
};
|
|
1200
|
-
|
|
1201
|
-
let
|
|
1202
|
-
class
|
|
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
|
|
1208
|
-
const { value:
|
|
1209
|
-
return C
|
|
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
|
-
...
|
|
1212
|
-
input:
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1220
|
+
...n,
|
|
1221
|
+
input: h.span(
|
|
1222
|
+
c.class(
|
|
1223
|
+
y(
|
|
1224
|
+
s,
|
|
1225
|
+
r ?? !1
|
|
1217
1226
|
)(
|
|
1218
|
-
({ theme:
|
|
1227
|
+
({ theme: u }, i) => u.checkboxInput({
|
|
1219
1228
|
disabled: i
|
|
1220
1229
|
})
|
|
1221
1230
|
)
|
|
1222
1231
|
),
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
e != null ? m.blur(v(e)) :
|
|
1228
|
-
|
|
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
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
) :
|
|
1239
|
+
o != null ? h.span(
|
|
1240
|
+
c.class("bc-checkbox-input__label"),
|
|
1241
|
+
Hn(o)
|
|
1242
|
+
) : k
|
|
1234
1243
|
)
|
|
1235
1244
|
}));
|
|
1236
|
-
},
|
|
1237
|
-
startEditing:
|
|
1238
|
-
value:
|
|
1245
|
+
}, hl = ({
|
|
1246
|
+
startEditing: n,
|
|
1247
|
+
value: l,
|
|
1239
1248
|
onChange: e,
|
|
1240
|
-
placeholder:
|
|
1249
|
+
placeholder: t
|
|
1241
1250
|
}) => {
|
|
1242
|
-
const
|
|
1243
|
-
return C
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
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:
|
|
1258
|
+
({ theme: u }, i) => u.editableText({
|
|
1250
1259
|
isEditing: i
|
|
1251
1260
|
})
|
|
1252
1261
|
)
|
|
1253
1262
|
),
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
() =>
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
m.keydown((
|
|
1262
|
-
|
|
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((
|
|
1266
|
-
if (
|
|
1267
|
-
|
|
1274
|
+
v((u) => {
|
|
1275
|
+
if (o.set(!1), r.value) {
|
|
1276
|
+
r.set(!1);
|
|
1268
1277
|
return;
|
|
1269
1278
|
}
|
|
1270
|
-
e(
|
|
1279
|
+
e(u);
|
|
1271
1280
|
})
|
|
1272
1281
|
)
|
|
1273
1282
|
),
|
|
1274
|
-
() =>
|
|
1275
|
-
m.click(() =>
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
() =>
|
|
1280
|
-
() =>
|
|
1281
|
-
|
|
1282
|
-
|
|
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
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
m.click(() =>
|
|
1289
|
-
|
|
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
|
-
|
|
1296
|
-
|
|
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
|
|
1300
|
-
(e) => typeof e == "object" && e.key != null ?
|
|
1399
|
+
return n.map(
|
|
1400
|
+
(e) => typeof e == "object" && e.key != null ? l(e.key) : l(e)
|
|
1301
1401
|
);
|
|
1302
1402
|
}
|
|
1303
|
-
function
|
|
1304
|
-
const
|
|
1305
|
-
const
|
|
1306
|
-
let i =
|
|
1307
|
-
for (const
|
|
1308
|
-
i.dependencies == null && (i.dependencies = {}), i.dependencies[
|
|
1309
|
-
return i.dependencies == null && (i.dependencies = {}), i.dependencies[
|
|
1310
|
-
}, {}),
|
|
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:
|
|
1414
|
+
error: t != "" ? t : void 0
|
|
1315
1415
|
};
|
|
1316
1416
|
}
|
|
1317
|
-
function
|
|
1318
|
-
return
|
|
1417
|
+
function Ye(n) {
|
|
1418
|
+
return U(c.disabled(n.disabled), c.name(n.name));
|
|
1319
1419
|
}
|
|
1320
|
-
function
|
|
1321
|
-
triggerOn:
|
|
1420
|
+
function pl(n, {
|
|
1421
|
+
triggerOn: l = "change"
|
|
1322
1422
|
} = {}) {
|
|
1323
|
-
return
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
(
|
|
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
|
|
1330
|
-
triggerOn:
|
|
1429
|
+
function ml(n, {
|
|
1430
|
+
triggerOn: l = "change"
|
|
1331
1431
|
} = {}) {
|
|
1332
|
-
return
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
(
|
|
1336
|
-
|
|
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
|
|
1341
|
-
defaultValue:
|
|
1342
|
-
schema:
|
|
1440
|
+
function gl({
|
|
1441
|
+
defaultValue: n = {},
|
|
1442
|
+
schema: l
|
|
1343
1443
|
}) {
|
|
1344
|
-
const e =
|
|
1345
|
-
e.set(
|
|
1346
|
-
const i = await
|
|
1347
|
-
i.issues != null ?
|
|
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
|
-
...
|
|
1350
|
-
}) :
|
|
1449
|
+
...st(i.issues)
|
|
1450
|
+
}) : t.set({ type: "Valid" });
|
|
1351
1451
|
};
|
|
1352
|
-
return new
|
|
1353
|
-
disabled:
|
|
1452
|
+
return new ot([], r, e, t, {
|
|
1453
|
+
disabled: o
|
|
1354
1454
|
});
|
|
1355
1455
|
}
|
|
1356
|
-
const
|
|
1357
|
-
function
|
|
1358
|
-
for (const
|
|
1359
|
-
if (typeof
|
|
1360
|
-
return [
|
|
1361
|
-
return ["=",
|
|
1362
|
-
}
|
|
1363
|
-
function
|
|
1364
|
-
const [
|
|
1365
|
-
if (
|
|
1366
|
-
throw new Error(`Breakpoint ${String(
|
|
1367
|
-
const
|
|
1368
|
-
switch (
|
|
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 >=
|
|
1470
|
+
return e >= s && e < u;
|
|
1371
1471
|
case "!=":
|
|
1372
|
-
return !(e >=
|
|
1472
|
+
return !(e >= s && e < u);
|
|
1373
1473
|
case "<=":
|
|
1374
|
-
return e <=
|
|
1474
|
+
return e <= s;
|
|
1375
1475
|
case ">=":
|
|
1376
|
-
return e >=
|
|
1476
|
+
return e >= s;
|
|
1377
1477
|
case "<":
|
|
1378
|
-
return e <
|
|
1478
|
+
return e < s;
|
|
1379
1479
|
case ">":
|
|
1380
|
-
return e >
|
|
1480
|
+
return e > s;
|
|
1381
1481
|
default:
|
|
1382
1482
|
return !1;
|
|
1383
1483
|
}
|
|
1384
1484
|
}
|
|
1385
|
-
function
|
|
1386
|
-
const e =
|
|
1387
|
-
return e >= 0 ?
|
|
1388
|
-
}
|
|
1389
|
-
function
|
|
1390
|
-
const
|
|
1391
|
-
([
|
|
1392
|
-
)].sort((
|
|
1393
|
-
const
|
|
1394
|
-
const
|
|
1395
|
-
return
|
|
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
|
|
1398
|
-
value:
|
|
1399
|
-
breakpoints:
|
|
1400
|
-
asList:
|
|
1401
|
-
is: (
|
|
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" ?
|
|
1504
|
+
return e === "element" ? ce(r) : En(r);
|
|
1405
1505
|
}
|
|
1406
|
-
let
|
|
1407
|
-
function
|
|
1408
|
-
return
|
|
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
|
|
1411
|
-
return
|
|
1510
|
+
function B(n, l, e) {
|
|
1511
|
+
return it(n.getPropertyValue(l), e);
|
|
1412
1512
|
}
|
|
1413
|
-
function
|
|
1414
|
-
return
|
|
1415
|
-
const e = getComputedStyle(
|
|
1513
|
+
function ht(n) {
|
|
1514
|
+
return z((l) => {
|
|
1515
|
+
const e = getComputedStyle(l), t = {
|
|
1416
1516
|
zero: 0,
|
|
1417
|
-
xs:
|
|
1418
|
-
sm:
|
|
1419
|
-
md:
|
|
1420
|
-
lg:
|
|
1421
|
-
xl:
|
|
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
|
|
1523
|
+
return Je(n, { breakpoints: t });
|
|
1424
1524
|
});
|
|
1425
1525
|
}
|
|
1426
|
-
function
|
|
1427
|
-
return
|
|
1428
|
-
const e = getComputedStyle(
|
|
1526
|
+
function fl(n) {
|
|
1527
|
+
return z((l) => {
|
|
1528
|
+
const e = getComputedStyle(l), t = {
|
|
1429
1529
|
zero: 0,
|
|
1430
|
-
"3xs":
|
|
1431
|
-
"2xs":
|
|
1432
|
-
xs:
|
|
1433
|
-
sm:
|
|
1434
|
-
md:
|
|
1435
|
-
lg:
|
|
1436
|
-
xl:
|
|
1437
|
-
"2xl":
|
|
1438
|
-
"3xl":
|
|
1439
|
-
"4xl":
|
|
1440
|
-
"5xl":
|
|
1441
|
-
"6xl":
|
|
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
|
|
1444
|
-
breakpoints:
|
|
1543
|
+
return Je(n, {
|
|
1544
|
+
breakpoints: t,
|
|
1445
1545
|
mode: "element"
|
|
1446
1546
|
});
|
|
1447
1547
|
});
|
|
1448
1548
|
}
|
|
1449
|
-
const
|
|
1450
|
-
const e = setTimeout(
|
|
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
|
|
1454
|
-
initialStatus:
|
|
1455
|
-
openedAfter:
|
|
1553
|
+
function Ke({
|
|
1554
|
+
initialStatus: n = "closed",
|
|
1555
|
+
openedAfter: l,
|
|
1456
1556
|
closedAfter: e
|
|
1457
1557
|
}) {
|
|
1458
|
-
const
|
|
1459
|
-
|
|
1460
|
-
},
|
|
1461
|
-
|
|
1462
|
-
},
|
|
1463
|
-
|
|
1464
|
-
},
|
|
1465
|
-
b ?
|
|
1466
|
-
}, i = (b) =>
|
|
1467
|
-
|
|
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
|
|
1569
|
+
let a = () => {
|
|
1470
1570
|
};
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
}),
|
|
1474
|
-
const
|
|
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:
|
|
1477
|
-
open:
|
|
1478
|
-
close:
|
|
1479
|
-
toggle:
|
|
1480
|
-
setOpen:
|
|
1481
|
-
isOpen:
|
|
1576
|
+
status: t,
|
|
1577
|
+
open: o,
|
|
1578
|
+
close: r,
|
|
1579
|
+
toggle: s,
|
|
1580
|
+
setOpen: u,
|
|
1581
|
+
isOpen: p,
|
|
1482
1582
|
displayOpen: g,
|
|
1483
|
-
dispose: () =>
|
|
1583
|
+
dispose: () => t.dispose(),
|
|
1484
1584
|
onClosed: i
|
|
1485
1585
|
};
|
|
1486
1586
|
}
|
|
1487
|
-
function
|
|
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 (
|
|
1490
|
-
|
|
1601
|
+
if (n.getAnimations().length === 0) {
|
|
1602
|
+
l();
|
|
1491
1603
|
return;
|
|
1492
1604
|
}
|
|
1493
|
-
|
|
1605
|
+
n.addEventListener("transitionend", e, { once: !0 });
|
|
1494
1606
|
}
|
|
1495
|
-
const
|
|
1607
|
+
const t = ee(e, 10);
|
|
1496
1608
|
return () => {
|
|
1497
|
-
|
|
1609
|
+
t(), n.removeEventListener("transitionend", e);
|
|
1498
1610
|
};
|
|
1499
1611
|
}
|
|
1500
|
-
function
|
|
1501
|
-
initialStatus:
|
|
1502
|
-
element:
|
|
1612
|
+
function me({
|
|
1613
|
+
initialStatus: n = "closed",
|
|
1614
|
+
element: l
|
|
1503
1615
|
} = {}) {
|
|
1504
|
-
let e =
|
|
1616
|
+
let e = l;
|
|
1505
1617
|
return {
|
|
1506
|
-
setElement: (
|
|
1507
|
-
e =
|
|
1618
|
+
setElement: (t) => {
|
|
1619
|
+
e = t;
|
|
1508
1620
|
},
|
|
1509
|
-
...
|
|
1510
|
-
initialStatus:
|
|
1511
|
-
openedAfter: (
|
|
1512
|
-
}) :
|
|
1513
|
-
closedAfter: (
|
|
1514
|
-
}) :
|
|
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
|
|
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
|
|
1577
|
-
if (typeof
|
|
1688
|
+
function De(n, l) {
|
|
1689
|
+
if (typeof n == "number")
|
|
1578
1690
|
return {
|
|
1579
|
-
zero:
|
|
1580
|
-
xs:
|
|
1581
|
-
sm:
|
|
1582
|
-
md:
|
|
1583
|
-
lg:
|
|
1584
|
-
xl:
|
|
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:
|
|
1588
|
-
xs:
|
|
1589
|
-
sm:
|
|
1590
|
-
md:
|
|
1591
|
-
lg:
|
|
1592
|
-
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
|
|
1597
|
-
|
|
1598
|
-
for (let
|
|
1599
|
-
|
|
1600
|
-
return
|
|
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
|
|
1603
|
-
smallBreakpoint:
|
|
1604
|
-
mediumBreakpoint:
|
|
1714
|
+
function dt({
|
|
1715
|
+
smallBreakpoint: n,
|
|
1716
|
+
mediumBreakpoint: l,
|
|
1605
1717
|
vertical: e,
|
|
1606
|
-
horizontal:
|
|
1607
|
-
is:
|
|
1718
|
+
horizontal: t,
|
|
1719
|
+
is: o
|
|
1608
1720
|
}) {
|
|
1609
|
-
function
|
|
1610
|
-
var
|
|
1611
|
-
let
|
|
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
|
|
1620
|
-
|
|
1731
|
+
const p = [];
|
|
1732
|
+
p.push("1fr");
|
|
1621
1733
|
const g = [];
|
|
1622
|
-
return
|
|
1623
|
-
(((
|
|
1624
|
-
),
|
|
1625
|
-
columns:
|
|
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:
|
|
1739
|
+
areas: a.map((E) => `"${E.join(" ")}"`).join(`
|
|
1628
1740
|
`),
|
|
1629
1741
|
displayMenu: !1,
|
|
1630
1742
|
displayAside: !1,
|
|
1631
|
-
menuWidth:
|
|
1632
|
-
asideWidth:
|
|
1743
|
+
menuWidth: D.menu[i] + "px",
|
|
1744
|
+
asideWidth: D.aside[i] + "px"
|
|
1633
1745
|
};
|
|
1634
1746
|
}
|
|
1635
|
-
function
|
|
1636
|
-
var
|
|
1637
|
-
let
|
|
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
|
|
1646
|
-
e.menu && (
|
|
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
|
|
1649
|
-
(((
|
|
1650
|
-
),
|
|
1651
|
-
columns:
|
|
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:
|
|
1765
|
+
areas: a.map((E) => `"${E.join(" ")}"`).join(`
|
|
1654
1766
|
`),
|
|
1655
1767
|
displayMenu: !0,
|
|
1656
1768
|
displayAside: !1,
|
|
1657
|
-
menuWidth:
|
|
1658
|
-
asideWidth:
|
|
1769
|
+
menuWidth: D.menu[i] + "px",
|
|
1770
|
+
asideWidth: D.aside[i] + "px"
|
|
1659
1771
|
};
|
|
1660
1772
|
}
|
|
1661
|
-
function
|
|
1662
|
-
let
|
|
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
|
|
1671
|
-
e.menu && (
|
|
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
|
|
1674
|
-
columns:
|
|
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:
|
|
1788
|
+
areas: a.map((x) => `"${x.join(" ")}"`).join(`
|
|
1677
1789
|
`),
|
|
1678
1790
|
displayMenu: !0,
|
|
1679
1791
|
displayAside: !0,
|
|
1680
|
-
menuWidth:
|
|
1681
|
-
asideWidth:
|
|
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:
|
|
1687
|
-
}) =>
|
|
1798
|
+
breakpoint: a
|
|
1799
|
+
}) => o(`<=${n}`, i) ? r(a) : o(`<=${l}`, i) ? s(a) : u(a);
|
|
1688
1800
|
}
|
|
1689
|
-
const
|
|
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
|
|
1697
|
-
return
|
|
1808
|
+
function gt(n, { displayMenu: l }, e) {
|
|
1809
|
+
return n ? l ? "block" : e ? "float" : "none" : "none";
|
|
1698
1810
|
}
|
|
1699
|
-
function
|
|
1700
|
-
return
|
|
1811
|
+
function bt(n, { displayAside: l }, e) {
|
|
1812
|
+
return n ? l ? "block" : e ? "float" : "none" : "none";
|
|
1701
1813
|
}
|
|
1702
|
-
function
|
|
1703
|
-
smallBreakpoint:
|
|
1704
|
-
mediumBreakpoint:
|
|
1814
|
+
function xl({
|
|
1815
|
+
smallBreakpoint: n = "sm",
|
|
1816
|
+
mediumBreakpoint: l = "md",
|
|
1705
1817
|
...e
|
|
1706
1818
|
}) {
|
|
1707
|
-
return C
|
|
1708
|
-
const
|
|
1709
|
-
|
|
1710
|
-
(
|
|
1711
|
-
|
|
1712
|
-
|
|
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
|
-
),
|
|
1716
|
-
|
|
1717
|
-
(
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
e[
|
|
1721
|
-
|
|
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
|
|
1727
|
-
var
|
|
1728
|
-
const i =
|
|
1729
|
-
smallBreakpoint:
|
|
1730
|
-
mediumBreakpoint:
|
|
1731
|
-
vertical:
|
|
1732
|
-
horizontal:
|
|
1733
|
-
is:
|
|
1734
|
-
}),
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
)((f, N,
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
)((f, { displayAside: N }) => f && !N), b =
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
)((f, { displayMenu: N }) => f && !N),
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
)(
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
)(
|
|
1753
|
-
return
|
|
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
|
-
|
|
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(
|
|
1763
|
-
d.gridTemplateRows(
|
|
1764
|
-
d.gridTemplateAreas(
|
|
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 ?
|
|
1768
|
-
|
|
1769
|
-
|
|
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
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1891
|
+
h.header(
|
|
1892
|
+
c.class(
|
|
1893
|
+
t.panel({
|
|
1782
1894
|
side: "bottom",
|
|
1783
|
-
color: ((
|
|
1784
|
-
shadow: ((
|
|
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
|
-
|
|
1899
|
+
c.class("bu-z-10"),
|
|
1788
1900
|
d.display(
|
|
1789
|
-
|
|
1901
|
+
p.map((f) => f ? "block" : "none")
|
|
1790
1902
|
),
|
|
1791
1903
|
d.gridArea("header"),
|
|
1792
|
-
|
|
1793
|
-
|
|
1904
|
+
ce((f) => (f.$.bottom.feedProp(H), null)),
|
|
1905
|
+
h.div(
|
|
1794
1906
|
d.display("flex"),
|
|
1795
1907
|
d.height("100%"),
|
|
1796
|
-
|
|
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
|
-
|
|
1916
|
+
He(
|
|
1805
1917
|
{
|
|
1806
|
-
onClick: () =>
|
|
1918
|
+
onClick: () => x.toggle(),
|
|
1807
1919
|
variant: "light",
|
|
1808
1920
|
color: "base"
|
|
1809
1921
|
},
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
icon:
|
|
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
|
-
|
|
1930
|
+
h.div(
|
|
1819
1931
|
d.height("100%"),
|
|
1820
1932
|
d.flexGrow("1"),
|
|
1821
|
-
(
|
|
1933
|
+
(_e = e.header) == null ? void 0 : _e.content
|
|
1822
1934
|
),
|
|
1823
|
-
|
|
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
|
-
|
|
1943
|
+
He(
|
|
1832
1944
|
{
|
|
1833
|
-
onClick: () =>
|
|
1945
|
+
onClick: () => E.toggle(),
|
|
1834
1946
|
roundedness: "full",
|
|
1835
1947
|
variant: "light",
|
|
1836
1948
|
color: "base"
|
|
1837
1949
|
},
|
|
1838
|
-
|
|
1839
|
-
|
|
1950
|
+
q.label("Open aside"),
|
|
1951
|
+
Z(
|
|
1840
1952
|
{ icon: "line-md/chevron-left" },
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
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 ?
|
|
1853
|
-
|
|
1854
|
-
|
|
1964
|
+
e.menu ? h.nav(
|
|
1965
|
+
z((f) => {
|
|
1966
|
+
x.setElement(f);
|
|
1855
1967
|
}),
|
|
1856
|
-
|
|
1857
|
-
|
|
1968
|
+
c.class(
|
|
1969
|
+
M.map(
|
|
1858
1970
|
(f) => {
|
|
1859
|
-
var N,
|
|
1860
|
-
return f === "float" ?
|
|
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: ((
|
|
1864
|
-
}) :
|
|
1975
|
+
shadow: ((ne = e.menu) == null ? void 0 : ne.shadow) ?? "md"
|
|
1976
|
+
}) : t.panel({
|
|
1865
1977
|
side: "right",
|
|
1866
|
-
color: ((
|
|
1867
|
-
shadow: ((
|
|
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
|
-
|
|
1987
|
+
M.map(
|
|
1876
1988
|
(f) => f === "none" ? "none" : "block"
|
|
1877
1989
|
)
|
|
1878
1990
|
),
|
|
1879
1991
|
d.position(
|
|
1880
|
-
|
|
1992
|
+
M.map(
|
|
1881
1993
|
(f) => f === "float" ? "fixed" : "initial"
|
|
1882
1994
|
)
|
|
1883
1995
|
),
|
|
1884
|
-
d.top(
|
|
1996
|
+
d.top(H.map((f) => `${f}px`)),
|
|
1885
1997
|
d.transition("left 0.3s ease-in-out"),
|
|
1886
1998
|
d.left(
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1999
|
+
y(
|
|
2000
|
+
x.displayOpen,
|
|
2001
|
+
a.$.menuWidth
|
|
1890
2002
|
)((f, N) => f ? "0" : `-${N}`)
|
|
1891
2003
|
),
|
|
1892
|
-
d.width(
|
|
1893
|
-
d.bottom(
|
|
1894
|
-
|
|
1895
|
-
(
|
|
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 ?
|
|
2009
|
+
e.mainHeader ? h.header(
|
|
1898
2010
|
d.height("100%"),
|
|
1899
2011
|
d.gridArea("mainHeader"),
|
|
1900
|
-
|
|
1901
|
-
|
|
2012
|
+
c.class(
|
|
2013
|
+
t.panel({
|
|
1902
2014
|
side: "none",
|
|
1903
|
-
color: ((
|
|
1904
|
-
shadow: ((
|
|
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
|
-
|
|
2021
|
+
h.main(
|
|
1910
2022
|
d.height("100%"),
|
|
1911
2023
|
d.overflow("hidden"),
|
|
1912
2024
|
d.gridArea("main"),
|
|
1913
|
-
|
|
1914
|
-
|
|
2025
|
+
c.class(
|
|
2026
|
+
t.panel({
|
|
1915
2027
|
side: "none",
|
|
1916
|
-
color: ((
|
|
1917
|
-
shadow: ((
|
|
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 ?
|
|
2034
|
+
e.mainFooter ? h.footer(
|
|
1923
2035
|
d.height("100%"),
|
|
1924
2036
|
d.gridArea("mainFooter"),
|
|
1925
|
-
|
|
1926
|
-
|
|
2037
|
+
c.class(
|
|
2038
|
+
t.panel({
|
|
1927
2039
|
side: "none",
|
|
1928
|
-
color: ((
|
|
1929
|
-
shadow: ((
|
|
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 ?
|
|
1935
|
-
|
|
1936
|
-
|
|
2046
|
+
e.aside ? h.aside(
|
|
2047
|
+
z((f) => {
|
|
2048
|
+
E.setElement(f);
|
|
1937
2049
|
}),
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
(f) => f === "float" ?
|
|
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
|
-
}) :
|
|
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
|
-
|
|
2066
|
+
G.map(
|
|
1955
2067
|
(f) => f === "none" ? "none" : "block"
|
|
1956
2068
|
)
|
|
1957
2069
|
),
|
|
1958
2070
|
d.position(
|
|
1959
|
-
|
|
2071
|
+
G.map(
|
|
1960
2072
|
(f) => f === "float" ? "fixed" : "initial"
|
|
1961
2073
|
)
|
|
1962
2074
|
),
|
|
1963
|
-
d.top(
|
|
2075
|
+
d.top(H.map((f) => `${f}px`)),
|
|
1964
2076
|
d.transition("right 0.3s ease-in-out"),
|
|
1965
2077
|
d.right(
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
2078
|
+
y(
|
|
2079
|
+
E.displayOpen,
|
|
2080
|
+
a.$.asideWidth
|
|
1969
2081
|
)((f, N) => f ? "0" : `-${N}`)
|
|
1970
2082
|
),
|
|
1971
|
-
d.width(
|
|
1972
|
-
d.bottom(
|
|
2083
|
+
d.width(a.$.menuWidth),
|
|
2084
|
+
d.bottom(H.map((f) => `${f}px`)),
|
|
1973
2085
|
e.aside.content
|
|
1974
2086
|
) : null,
|
|
1975
|
-
e.footer ?
|
|
1976
|
-
|
|
1977
|
-
|
|
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
|
|
1992
|
-
return C
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
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:
|
|
2001
|
-
variant:
|
|
2002
|
-
size:
|
|
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
|
-
...
|
|
2119
|
+
...t
|
|
2008
2120
|
));
|
|
2009
2121
|
}
|
|
2010
|
-
function
|
|
2011
|
-
return
|
|
2012
|
-
|
|
2013
|
-
|
|
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
|
|
2017
|
-
return C
|
|
2018
|
-
|
|
2019
|
-
|
|
2128
|
+
function wl({ gap: n = "lg" } = {}, ...l) {
|
|
2129
|
+
return _(C, (e) => h.div(
|
|
2130
|
+
c.class(
|
|
2131
|
+
y(
|
|
2020
2132
|
e,
|
|
2021
|
-
|
|
2133
|
+
n
|
|
2022
2134
|
)(
|
|
2023
|
-
({ theme:
|
|
2024
|
-
gap:
|
|
2135
|
+
({ theme: t }, o) => t.center({
|
|
2136
|
+
gap: o
|
|
2025
2137
|
})
|
|
2026
2138
|
)
|
|
2027
2139
|
),
|
|
2028
|
-
...
|
|
2140
|
+
...l
|
|
2029
2141
|
));
|
|
2030
2142
|
}
|
|
2031
|
-
function
|
|
2032
|
-
return
|
|
2143
|
+
function $l(...n) {
|
|
2144
|
+
return h.div(c.class("bc-group"), ...n);
|
|
2033
2145
|
}
|
|
2034
|
-
function
|
|
2035
|
-
return C
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
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:
|
|
2044
|
-
variant:
|
|
2045
|
-
size:
|
|
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
|
-
...
|
|
2162
|
+
...t
|
|
2051
2163
|
));
|
|
2052
2164
|
}
|
|
2053
|
-
function
|
|
2054
|
-
return
|
|
2055
|
-
}
|
|
2056
|
-
function
|
|
2057
|
-
return ({ effect:
|
|
2058
|
-
const
|
|
2059
|
-
|
|
2060
|
-
const i =
|
|
2061
|
-
var
|
|
2062
|
-
const
|
|
2063
|
-
for (const b of
|
|
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") ?
|
|
2067
|
-
if (
|
|
2068
|
-
for (const b of
|
|
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
|
-
|
|
2072
|
-
|
|
2073
|
-
}), (g = (
|
|
2074
|
-
const b = (
|
|
2075
|
-
var
|
|
2076
|
-
|
|
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),
|
|
2190
|
+
document.addEventListener("keydown", b), o.push(
|
|
2079
2191
|
() => document.removeEventListener("keydown", b)
|
|
2080
2192
|
);
|
|
2081
|
-
const
|
|
2082
|
-
var
|
|
2083
|
-
(
|
|
2193
|
+
const x = () => {
|
|
2194
|
+
var E;
|
|
2195
|
+
(E = e.onClickOutside) == null || E.call(e), s.close();
|
|
2084
2196
|
};
|
|
2085
|
-
|
|
2086
|
-
() =>
|
|
2197
|
+
n.element.addEventListener("mousedown", x), o.push(
|
|
2198
|
+
() => n.element.removeEventListener("mousedown", x)
|
|
2087
2199
|
);
|
|
2088
2200
|
}
|
|
2089
|
-
return
|
|
2090
|
-
|
|
2091
|
-
|
|
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
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
({ theme: b }) =>
|
|
2207
|
+
he.overlay("true"),
|
|
2208
|
+
_(
|
|
2209
|
+
C,
|
|
2210
|
+
({ theme: b }) => c.class(
|
|
2099
2211
|
b.overlay({
|
|
2100
|
-
effect:
|
|
2212
|
+
effect: l ?? "visible",
|
|
2101
2213
|
mode: e.mode ?? "capturing"
|
|
2102
2214
|
})
|
|
2103
2215
|
)
|
|
2104
2216
|
),
|
|
2105
|
-
|
|
2217
|
+
t(s.close)
|
|
2106
2218
|
);
|
|
2107
|
-
})(),
|
|
2219
|
+
})(), n.element, {
|
|
2108
2220
|
disposeWithParent: !0,
|
|
2109
2221
|
clear: !1,
|
|
2110
|
-
providers:
|
|
2222
|
+
providers: n.providers
|
|
2111
2223
|
});
|
|
2112
|
-
return
|
|
2224
|
+
return o.push(i), ee(() => s.open(), 0), r;
|
|
2113
2225
|
};
|
|
2114
2226
|
}
|
|
2115
|
-
function
|
|
2116
|
-
return
|
|
2117
|
-
const
|
|
2118
|
-
let
|
|
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
|
|
2121
|
-
|
|
2232
|
+
const u = (i) => {
|
|
2233
|
+
s(), s = r(l, i);
|
|
2122
2234
|
};
|
|
2123
|
-
return
|
|
2235
|
+
return U(K(s), e(u));
|
|
2124
2236
|
});
|
|
2125
2237
|
}
|
|
2126
|
-
function
|
|
2127
|
-
return
|
|
2238
|
+
function Cl(n, l) {
|
|
2239
|
+
return Ze((e) => e, n, l);
|
|
2128
2240
|
}
|
|
2129
|
-
function
|
|
2130
|
-
return
|
|
2241
|
+
function El(n, l) {
|
|
2242
|
+
return Ze(
|
|
2131
2243
|
(e) => e.makePortal("body"),
|
|
2132
|
-
|
|
2133
|
-
|
|
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
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
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
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
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
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
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
|
};
|