tguikit 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -6
- package/dist/index.d.ts +111 -3
- package/dist/index.js +861 -496
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,89 +1,214 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { Children as e, Fragment as t, createContext as n, isValidElement as r, useCallback as i, useContext as a, useEffect as o, useMemo as s, useRef as c, useState as l, useSyncExternalStore as u } from "react";
|
|
3
|
+
import { clsx as d } from "clsx";
|
|
4
|
+
import { cva as f } from "class-variance-authority";
|
|
5
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
6
6
|
//#region src/shared/lib/cn.ts
|
|
7
|
-
function h(...
|
|
8
|
-
return e
|
|
7
|
+
function h(...e) {
|
|
8
|
+
return d(e);
|
|
9
9
|
}
|
|
10
10
|
var g = {
|
|
11
|
+
avatar: "_avatar_lii18_1",
|
|
12
|
+
s20: "_s20_lii18_18",
|
|
13
|
+
s24: "_s24_lii18_24",
|
|
14
|
+
s28: "_s28_lii18_30",
|
|
15
|
+
s40: "_s40_lii18_36",
|
|
16
|
+
s48: "_s48_lii18_42",
|
|
17
|
+
s96: "_s96_lii18_48",
|
|
18
|
+
img: "_img_lii18_54",
|
|
19
|
+
acronym: "_acronym_lii18_61",
|
|
20
|
+
icon: "_icon_lii18_65"
|
|
21
|
+
}, _ = f(g.avatar, {
|
|
22
|
+
variants: { size: {
|
|
23
|
+
20: g.s20,
|
|
24
|
+
24: g.s24,
|
|
25
|
+
28: g.s28,
|
|
26
|
+
40: g.s40,
|
|
27
|
+
48: g.s48,
|
|
28
|
+
96: g.s96
|
|
29
|
+
} },
|
|
30
|
+
defaultVariants: { size: 40 }
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/Avatar/Avatar.tsx
|
|
34
|
+
function v() {
|
|
35
|
+
return /* @__PURE__ */ p("svg", {
|
|
36
|
+
viewBox: "0 0 24 24",
|
|
37
|
+
fill: "currentColor",
|
|
38
|
+
"aria-hidden": !0,
|
|
39
|
+
children: /* @__PURE__ */ p("path", { d: "M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4.2 0-7 2.4-7 4.5V20h14v-1.5c0-2.1-2.8-4.5-7-4.5Z" })
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function y({ ref: e, size: t = 40, src: n, alt: r = "", acronym: i, fallbackIcon: a, className: o, children: s, ...c }) {
|
|
43
|
+
let [u, d] = l(null), f = n != null && n !== "" && n !== u;
|
|
44
|
+
return /* @__PURE__ */ m("span", {
|
|
45
|
+
ref: e,
|
|
46
|
+
className: h(_({ size: t }), o),
|
|
47
|
+
...c,
|
|
48
|
+
children: [f ? /* @__PURE__ */ p("img", {
|
|
49
|
+
className: g.img,
|
|
50
|
+
src: n,
|
|
51
|
+
alt: r,
|
|
52
|
+
loading: "lazy",
|
|
53
|
+
onError: () => d(n)
|
|
54
|
+
}) : i ? /* @__PURE__ */ p("span", {
|
|
55
|
+
className: g.acronym,
|
|
56
|
+
children: i
|
|
57
|
+
}) : /* @__PURE__ */ p("span", {
|
|
58
|
+
className: g.icon,
|
|
59
|
+
children: a ?? /* @__PURE__ */ p(v, {})
|
|
60
|
+
}), s]
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
y.displayName = "Avatar";
|
|
64
|
+
var b = {
|
|
65
|
+
badge: "_badge_76m5w_1",
|
|
66
|
+
number: "_number_76m5w_11",
|
|
67
|
+
large: "_large_76m5w_20",
|
|
68
|
+
dot: "_dot_76m5w_28",
|
|
69
|
+
"mode-primary": "_mode-primary_76m5w_39",
|
|
70
|
+
"mode-critical": "_mode-critical_76m5w_44",
|
|
71
|
+
"mode-secondary": "_mode-secondary_76m5w_49",
|
|
72
|
+
"mode-gray": "_mode-gray_76m5w_54",
|
|
73
|
+
"mode-white": "_mode-white_76m5w_59"
|
|
74
|
+
}, ee = f(b.badge, {
|
|
75
|
+
variants: {
|
|
76
|
+
type: {
|
|
77
|
+
number: b.number,
|
|
78
|
+
dot: b.dot
|
|
79
|
+
},
|
|
80
|
+
mode: {
|
|
81
|
+
primary: b["mode-primary"],
|
|
82
|
+
critical: b["mode-critical"],
|
|
83
|
+
secondary: b["mode-secondary"],
|
|
84
|
+
gray: b["mode-gray"],
|
|
85
|
+
white: b["mode-white"]
|
|
86
|
+
},
|
|
87
|
+
large: { true: b.large }
|
|
88
|
+
},
|
|
89
|
+
defaultVariants: {
|
|
90
|
+
type: "number",
|
|
91
|
+
mode: "primary"
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/components/Badge/Badge.tsx
|
|
96
|
+
function x({ ref: e, type: t = "number", mode: n = "primary", large: r = !1, className: i, children: a, ...o }) {
|
|
97
|
+
return /* @__PURE__ */ p("span", {
|
|
98
|
+
ref: e,
|
|
99
|
+
className: h(ee({
|
|
100
|
+
type: t,
|
|
101
|
+
mode: n,
|
|
102
|
+
large: r
|
|
103
|
+
}), i),
|
|
104
|
+
...o,
|
|
105
|
+
children: t === "number" ? a : null
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
x.displayName = "Badge";
|
|
109
|
+
var S = {
|
|
110
|
+
spinner: "_spinner_1kqa4_1",
|
|
111
|
+
"tgui-spinner": "_tgui-spinner_1kqa4_1",
|
|
112
|
+
s: "_s_1kqa4_1",
|
|
113
|
+
m: "_m_1kqa4_17",
|
|
114
|
+
l: "_l_1kqa4_23"
|
|
115
|
+
}, te = f(S.spinner, {
|
|
116
|
+
variants: { size: {
|
|
117
|
+
s: S.s,
|
|
118
|
+
m: S.m,
|
|
119
|
+
l: S.l
|
|
120
|
+
} },
|
|
121
|
+
defaultVariants: { size: "m" }
|
|
122
|
+
});
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/components/Spinner/Spinner.tsx
|
|
125
|
+
function C({ ref: e, size: t = "m", className: n, ...r }) {
|
|
126
|
+
return /* @__PURE__ */ p("span", {
|
|
127
|
+
ref: e,
|
|
128
|
+
role: "status",
|
|
129
|
+
"aria-label": "Loading",
|
|
130
|
+
className: h(te({ size: t }), n),
|
|
131
|
+
...r
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
C.displayName = "Spinner";
|
|
135
|
+
var w = {
|
|
11
136
|
typography: "_typography_1uxpm_1",
|
|
12
137
|
"weight-1": "_weight-1_1uxpm_6",
|
|
13
138
|
"weight-2": "_weight-2_1uxpm_10",
|
|
14
139
|
"weight-3": "_weight-3_1uxpm_14",
|
|
15
140
|
caps: "_caps_1uxpm_18"
|
|
16
|
-
},
|
|
141
|
+
}, T = f(w.typography, {
|
|
17
142
|
variants: {
|
|
18
143
|
weight: {
|
|
19
|
-
1:
|
|
20
|
-
2:
|
|
21
|
-
3:
|
|
144
|
+
1: w["weight-1"],
|
|
145
|
+
2: w["weight-2"],
|
|
146
|
+
3: w["weight-3"]
|
|
22
147
|
},
|
|
23
|
-
caps: { true:
|
|
148
|
+
caps: { true: w.caps }
|
|
24
149
|
},
|
|
25
150
|
defaultVariants: { weight: "3" }
|
|
26
151
|
});
|
|
27
152
|
//#endregion
|
|
28
153
|
//#region src/components/Typography/Typography.tsx
|
|
29
|
-
function
|
|
30
|
-
return /* @__PURE__ */
|
|
154
|
+
function E({ ref: e, weight: t, caps: n, Component: r = "span", className: i, ...a }) {
|
|
155
|
+
return /* @__PURE__ */ p(r, {
|
|
31
156
|
ref: e,
|
|
32
|
-
className: h(
|
|
157
|
+
className: h(T({
|
|
33
158
|
weight: t,
|
|
34
|
-
caps:
|
|
35
|
-
}),
|
|
36
|
-
...
|
|
159
|
+
caps: n
|
|
160
|
+
}), i),
|
|
161
|
+
...a
|
|
37
162
|
});
|
|
38
163
|
}
|
|
39
|
-
|
|
164
|
+
E.displayName = "Typography";
|
|
40
165
|
//#endregion
|
|
41
166
|
//#region src/components/Subheadline/Subheadline.module.css
|
|
42
|
-
var
|
|
167
|
+
var ne = {
|
|
43
168
|
"level-1": "_level-1_1azf3_1",
|
|
44
169
|
"level-2": "_level-2_1azf3_6"
|
|
45
|
-
},
|
|
170
|
+
}, re = f("", {
|
|
46
171
|
variants: { level: {
|
|
47
|
-
1:
|
|
48
|
-
2:
|
|
172
|
+
1: ne["level-1"],
|
|
173
|
+
2: ne["level-2"]
|
|
49
174
|
} },
|
|
50
175
|
defaultVariants: { level: "1" }
|
|
51
176
|
});
|
|
52
177
|
//#endregion
|
|
53
178
|
//#region src/components/Subheadline/Subheadline.tsx
|
|
54
|
-
function
|
|
55
|
-
return /* @__PURE__ */
|
|
179
|
+
function D({ ref: e, level: t, Component: n = "h6", className: r, ...i }) {
|
|
180
|
+
return /* @__PURE__ */ p(E, {
|
|
56
181
|
ref: e,
|
|
57
|
-
Component:
|
|
58
|
-
className: h(
|
|
59
|
-
...
|
|
182
|
+
Component: n,
|
|
183
|
+
className: h(re({ level: t }), r),
|
|
184
|
+
...i
|
|
60
185
|
});
|
|
61
186
|
}
|
|
62
|
-
|
|
187
|
+
D.displayName = "Subheadline";
|
|
63
188
|
//#endregion
|
|
64
189
|
//#region src/components/TguiProvider/context.ts
|
|
65
|
-
var
|
|
66
|
-
|
|
190
|
+
var ie = n(null);
|
|
191
|
+
ie.displayName = "TguiContext";
|
|
67
192
|
//#endregion
|
|
68
193
|
//#region src/components/TguiProvider/useTgui.ts
|
|
69
|
-
function
|
|
70
|
-
let e =
|
|
194
|
+
function O() {
|
|
195
|
+
let e = a(ie);
|
|
71
196
|
if (e === null) throw Error("useTgui must be used within a <TguiProvider>.");
|
|
72
197
|
return e;
|
|
73
198
|
}
|
|
74
|
-
var
|
|
199
|
+
var ae = {
|
|
75
200
|
ripple: "_ripple_1cc3x_1",
|
|
76
201
|
wave: "_wave_1cc3x_9",
|
|
77
202
|
"wave-rise": "_wave-rise_1cc3x_1"
|
|
78
203
|
};
|
|
79
204
|
//#endregion
|
|
80
205
|
//#region src/components/Tappable/Ripple.tsx
|
|
81
|
-
function
|
|
82
|
-
return /* @__PURE__ */
|
|
206
|
+
function oe({ waves: e, onWaveEnd: t }) {
|
|
207
|
+
return /* @__PURE__ */ p("span", {
|
|
83
208
|
"aria-hidden": !0,
|
|
84
|
-
className:
|
|
85
|
-
children: e.map((e) => /* @__PURE__ */
|
|
86
|
-
className:
|
|
209
|
+
className: ae.ripple,
|
|
210
|
+
children: e.map((e) => /* @__PURE__ */ p("span", {
|
|
211
|
+
className: ae.wave,
|
|
87
212
|
style: {
|
|
88
213
|
top: e.y,
|
|
89
214
|
left: e.x
|
|
@@ -92,27 +217,27 @@ function te({ waves: e, onWaveEnd: t }) {
|
|
|
92
217
|
}, e.id))
|
|
93
218
|
});
|
|
94
219
|
}
|
|
95
|
-
var
|
|
220
|
+
var k = {
|
|
96
221
|
tappable: "_tappable_10au7_1",
|
|
97
222
|
"tappable--ios": "_tappable--ios_10au7_17",
|
|
98
223
|
"tappable--opacity": "_tappable--opacity_10au7_18"
|
|
99
|
-
},
|
|
100
|
-
function
|
|
101
|
-
let [e, t] =
|
|
102
|
-
|
|
103
|
-
let e = r.current, t =
|
|
224
|
+
}, se = 70, ce = 600;
|
|
225
|
+
function le() {
|
|
226
|
+
let [e, t] = l([]), n = c(0), r = c(/* @__PURE__ */ new Map()), a = c(/* @__PURE__ */ new Set());
|
|
227
|
+
o(() => {
|
|
228
|
+
let e = r.current, t = a.current;
|
|
104
229
|
return () => {
|
|
105
230
|
for (let t of e.values()) clearTimeout(t);
|
|
106
231
|
for (let e of t) clearTimeout(e);
|
|
107
232
|
};
|
|
108
233
|
}, []);
|
|
109
|
-
let
|
|
234
|
+
let s = i((e) => {
|
|
110
235
|
t((t) => t.filter((t) => t.id !== e));
|
|
111
236
|
}, []);
|
|
112
237
|
return {
|
|
113
238
|
waves: e,
|
|
114
|
-
onPointerDown:
|
|
115
|
-
let { top:
|
|
239
|
+
onPointerDown: i((e) => {
|
|
240
|
+
let { top: i, left: o } = e.currentTarget.getBoundingClientRect(), c = e.clientX - o, l = e.clientY - i, { pointerId: u } = e, d = setTimeout(() => {
|
|
116
241
|
r.current.delete(u);
|
|
117
242
|
let e = n.current++;
|
|
118
243
|
t((t) => [...t, {
|
|
@@ -120,155 +245,154 @@ function ie() {
|
|
|
120
245
|
x: c,
|
|
121
246
|
y: l
|
|
122
247
|
}]);
|
|
123
|
-
let
|
|
124
|
-
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
},
|
|
248
|
+
let i = setTimeout(() => {
|
|
249
|
+
a.current.delete(i), s(e);
|
|
250
|
+
}, ce);
|
|
251
|
+
a.current.add(i);
|
|
252
|
+
}, se);
|
|
128
253
|
r.current.set(u, d);
|
|
129
|
-
}, [
|
|
130
|
-
onPointerCancel:
|
|
254
|
+
}, [s]),
|
|
255
|
+
onPointerCancel: i((e) => {
|
|
131
256
|
let t = r.current.get(e.pointerId);
|
|
132
257
|
t && (clearTimeout(t), r.current.delete(e.pointerId));
|
|
133
258
|
}, []),
|
|
134
|
-
removeWave:
|
|
259
|
+
removeWave: s
|
|
135
260
|
};
|
|
136
261
|
}
|
|
137
262
|
//#endregion
|
|
138
263
|
//#region src/components/Tappable/Tappable.tsx
|
|
139
|
-
function
|
|
140
|
-
let { platform:
|
|
141
|
-
return /* @__PURE__ */
|
|
264
|
+
function A({ ref: e, Component: t = "div", interactiveAnimation: n = "background", className: r, children: i, onPointerDown: a, onPointerCancel: o, ...s }) {
|
|
265
|
+
let { platform: c } = O(), l = le(), u = !!s.disabled, d = !!s.readOnly, f = c === "base" && n === "background" && !d && !u && (t !== "div" && t !== "span" || s.onClick != null);
|
|
266
|
+
return /* @__PURE__ */ m(t, {
|
|
142
267
|
ref: e,
|
|
143
|
-
className: h(
|
|
144
|
-
"data-readonly":
|
|
145
|
-
"data-disabled":
|
|
146
|
-
"aria-disabled":
|
|
268
|
+
className: h(k.tappable, c === "ios" && k["tappable--ios"], n === "opacity" && k["tappable--opacity"], r),
|
|
269
|
+
"data-readonly": d || void 0,
|
|
270
|
+
"data-disabled": u || void 0,
|
|
271
|
+
"aria-disabled": u || void 0,
|
|
147
272
|
onPointerDown: (e) => {
|
|
148
|
-
|
|
273
|
+
f && l.onPointerDown(e), a?.(e);
|
|
149
274
|
},
|
|
150
275
|
onPointerCancel: (e) => {
|
|
151
|
-
|
|
276
|
+
f && l.onPointerCancel(e), o?.(e);
|
|
152
277
|
},
|
|
153
|
-
...
|
|
154
|
-
children: [
|
|
155
|
-
waves:
|
|
156
|
-
onWaveEnd:
|
|
157
|
-
}),
|
|
278
|
+
...s,
|
|
279
|
+
children: [f && /* @__PURE__ */ p(oe, {
|
|
280
|
+
waves: l.waves,
|
|
281
|
+
onWaveEnd: l.removeWave
|
|
282
|
+
}), i]
|
|
158
283
|
});
|
|
159
284
|
}
|
|
160
|
-
|
|
161
|
-
var
|
|
285
|
+
A.displayName = "Tappable";
|
|
286
|
+
var ue = { text: "_text_5v0x0_1" };
|
|
162
287
|
//#endregion
|
|
163
288
|
//#region src/components/Text/Text.tsx
|
|
164
|
-
function
|
|
165
|
-
return /* @__PURE__ */
|
|
289
|
+
function j({ ref: e, className: t, Component: n = "span", ...r }) {
|
|
290
|
+
return /* @__PURE__ */ p(E, {
|
|
166
291
|
ref: e,
|
|
167
|
-
Component:
|
|
168
|
-
className: h(
|
|
169
|
-
...
|
|
292
|
+
Component: n,
|
|
293
|
+
className: h(ue.text, t),
|
|
294
|
+
...r
|
|
170
295
|
});
|
|
171
296
|
}
|
|
172
|
-
|
|
297
|
+
j.displayName = "Text";
|
|
173
298
|
//#endregion
|
|
174
299
|
//#region src/shared/lib/telegram.ts
|
|
175
|
-
function
|
|
300
|
+
function de() {
|
|
176
301
|
if (!(typeof window > "u")) return window.Telegram?.WebApp;
|
|
177
302
|
}
|
|
178
303
|
//#endregion
|
|
179
304
|
//#region src/shared/lib/appearance.ts
|
|
180
|
-
var
|
|
181
|
-
function
|
|
305
|
+
var fe = "(prefers-color-scheme: dark)";
|
|
306
|
+
function pe() {
|
|
182
307
|
return typeof window < "u" && typeof window.matchMedia == "function";
|
|
183
308
|
}
|
|
184
|
-
function
|
|
185
|
-
let e =
|
|
186
|
-
return e ? e.colorScheme === "dark" ? "dark" : "light" :
|
|
309
|
+
function me() {
|
|
310
|
+
let e = de();
|
|
311
|
+
return e ? e.colorScheme === "dark" ? "dark" : "light" : pe() && window.matchMedia(fe).matches ? "dark" : "light";
|
|
187
312
|
}
|
|
188
|
-
function
|
|
189
|
-
let t =
|
|
313
|
+
function he(e) {
|
|
314
|
+
let t = de();
|
|
190
315
|
if (t) return t.onEvent("themeChanged", e), () => t.offEvent("themeChanged", e);
|
|
191
|
-
if (!
|
|
192
|
-
let n = window.matchMedia(
|
|
316
|
+
if (!pe()) return () => {};
|
|
317
|
+
let n = window.matchMedia(fe);
|
|
193
318
|
return n.addEventListener("change", e), () => n.removeEventListener("change", e);
|
|
194
319
|
}
|
|
195
320
|
//#endregion
|
|
196
321
|
//#region src/shared/lib/platform.ts
|
|
197
|
-
var
|
|
198
|
-
function
|
|
199
|
-
let e =
|
|
200
|
-
if (e) return
|
|
322
|
+
var ge = /* @__PURE__ */ new Set(["ios", "macos"]);
|
|
323
|
+
function _e() {
|
|
324
|
+
let e = de();
|
|
325
|
+
if (e) return ge.has(e.platform) ? "ios" : "base";
|
|
201
326
|
if (typeof navigator > "u") return "base";
|
|
202
327
|
let t = navigator.userAgent, n = t.includes("Macintosh") && navigator.maxTouchPoints > 1;
|
|
203
328
|
return /iphone|ipad|ipod/i.test(t) || n ? "ios" : "base";
|
|
204
329
|
}
|
|
205
|
-
var
|
|
206
|
-
wrapper: "
|
|
207
|
-
"wrapper--ios": "_wrapper--
|
|
208
|
-
"wrapper--dark": "_wrapper--
|
|
209
|
-
},
|
|
210
|
-
function
|
|
211
|
-
let
|
|
330
|
+
var M = {
|
|
331
|
+
wrapper: "_wrapper_zs68y_1",
|
|
332
|
+
"wrapper--ios": "_wrapper--ios_zs68y_89",
|
|
333
|
+
"wrapper--dark": "_wrapper--dark_zs68y_102"
|
|
334
|
+
}, ve = () => "light";
|
|
335
|
+
function ye({ ref: e, platform: t, appearance: n, portalContainer: r, className: a, children: o, ...c }) {
|
|
336
|
+
let d = s(() => t ?? _e(), [t]), f = u(he, me, ve), m = n ?? f, [g, _] = l(null), v = i((t) => {
|
|
212
337
|
_(t), typeof e == "function" ? e(t) : e && (e.current = t);
|
|
213
|
-
}, [e]), y =
|
|
214
|
-
platform:
|
|
215
|
-
appearance:
|
|
216
|
-
portalContainer:
|
|
338
|
+
}, [e]), y = s(() => ({
|
|
339
|
+
platform: d,
|
|
340
|
+
appearance: m,
|
|
341
|
+
portalContainer: r ?? g
|
|
217
342
|
}), [
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
343
|
+
d,
|
|
344
|
+
m,
|
|
345
|
+
r,
|
|
221
346
|
g
|
|
222
347
|
]);
|
|
223
|
-
return /* @__PURE__ */
|
|
348
|
+
return /* @__PURE__ */ p("div", {
|
|
224
349
|
ref: v,
|
|
225
|
-
className: h(
|
|
226
|
-
...
|
|
227
|
-
children: /* @__PURE__ */
|
|
350
|
+
className: h(M.wrapper, d === "ios" && M["wrapper--ios"], m === "dark" && M["wrapper--dark"], a),
|
|
351
|
+
...c,
|
|
352
|
+
children: /* @__PURE__ */ p(ie.Provider, {
|
|
228
353
|
value: y,
|
|
229
354
|
children: o
|
|
230
355
|
})
|
|
231
356
|
});
|
|
232
357
|
}
|
|
233
|
-
|
|
234
|
-
var
|
|
235
|
-
button: "
|
|
236
|
-
stretched: "
|
|
237
|
-
before: "
|
|
238
|
-
after: "
|
|
239
|
-
content: "
|
|
240
|
-
label: "
|
|
241
|
-
loading: "
|
|
242
|
-
spinner: "
|
|
243
|
-
"
|
|
244
|
-
"size-
|
|
245
|
-
"size-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
"mode-
|
|
249
|
-
"mode-
|
|
250
|
-
"mode-
|
|
251
|
-
"mode-
|
|
252
|
-
"mode-
|
|
253
|
-
|
|
254
|
-
}, pe = t(A.button, {
|
|
358
|
+
ye.displayName = "TguiProvider";
|
|
359
|
+
var N = {
|
|
360
|
+
button: "_button_1fqnm_1",
|
|
361
|
+
stretched: "_stretched_1fqnm_13",
|
|
362
|
+
before: "_before_1fqnm_33",
|
|
363
|
+
after: "_after_1fqnm_34",
|
|
364
|
+
content: "_content_1fqnm_40",
|
|
365
|
+
label: "_label_1fqnm_49",
|
|
366
|
+
loading: "_loading_1fqnm_60",
|
|
367
|
+
spinner: "_spinner_1fqnm_70",
|
|
368
|
+
"size-s": "_size-s_1fqnm_75",
|
|
369
|
+
"size-m": "_size-m_1fqnm_83",
|
|
370
|
+
"size-l": "_size-l_1fqnm_90",
|
|
371
|
+
ios: "_ios_1fqnm_96",
|
|
372
|
+
"mode-filled": "_mode-filled_1fqnm_104",
|
|
373
|
+
"mode-bezeled": "_mode-bezeled_1fqnm_111",
|
|
374
|
+
"mode-plain": "_mode-plain_1fqnm_118",
|
|
375
|
+
"mode-gray": "_mode-gray_1fqnm_125",
|
|
376
|
+
"mode-outline": "_mode-outline_1fqnm_132",
|
|
377
|
+
"mode-white": "_mode-white_1fqnm_140"
|
|
378
|
+
}, be = f(N.button, {
|
|
255
379
|
variants: {
|
|
256
380
|
mode: {
|
|
257
|
-
filled:
|
|
258
|
-
bezeled:
|
|
259
|
-
plain:
|
|
260
|
-
gray:
|
|
261
|
-
outline:
|
|
262
|
-
white:
|
|
381
|
+
filled: N["mode-filled"],
|
|
382
|
+
bezeled: N["mode-bezeled"],
|
|
383
|
+
plain: N["mode-plain"],
|
|
384
|
+
gray: N["mode-gray"],
|
|
385
|
+
outline: N["mode-outline"],
|
|
386
|
+
white: N["mode-white"]
|
|
263
387
|
},
|
|
264
388
|
size: {
|
|
265
|
-
s:
|
|
266
|
-
m:
|
|
267
|
-
l:
|
|
389
|
+
s: N["size-s"],
|
|
390
|
+
m: N["size-m"],
|
|
391
|
+
l: N["size-l"]
|
|
268
392
|
},
|
|
269
|
-
stretched: { true:
|
|
393
|
+
stretched: { true: N.stretched },
|
|
270
394
|
platform: {
|
|
271
|
-
ios:
|
|
395
|
+
ios: N.ios,
|
|
272
396
|
base: null
|
|
273
397
|
}
|
|
274
398
|
},
|
|
@@ -279,91 +403,92 @@ var A = {
|
|
|
279
403
|
});
|
|
280
404
|
//#endregion
|
|
281
405
|
//#region src/components/Button/Button.tsx
|
|
282
|
-
function
|
|
283
|
-
let
|
|
406
|
+
function xe({ size: e, children: t }) {
|
|
407
|
+
let n = {
|
|
284
408
|
weight: "2",
|
|
285
|
-
className:
|
|
286
|
-
},
|
|
287
|
-
className:
|
|
409
|
+
className: N.content
|
|
410
|
+
}, r = /* @__PURE__ */ p("span", {
|
|
411
|
+
className: N.label,
|
|
288
412
|
children: t
|
|
289
413
|
});
|
|
290
|
-
return e === "l" ? /* @__PURE__ */
|
|
291
|
-
...
|
|
292
|
-
children:
|
|
293
|
-
}) : /* @__PURE__ */
|
|
414
|
+
return e === "l" ? /* @__PURE__ */ p(j, {
|
|
415
|
+
...n,
|
|
416
|
+
children: r
|
|
417
|
+
}) : /* @__PURE__ */ p(D, {
|
|
294
418
|
level: "2",
|
|
295
|
-
...
|
|
296
|
-
children:
|
|
419
|
+
...n,
|
|
420
|
+
children: r
|
|
297
421
|
});
|
|
298
422
|
}
|
|
299
|
-
function
|
|
300
|
-
let { platform:
|
|
301
|
-
return /* @__PURE__ */
|
|
423
|
+
function Se({ ref: e, Component: t = "button", mode: n = "filled", size: r = "m", stretched: i = !1, loading: a = !1, type: o, before: s, after: c, children: l, className: u, ...d }) {
|
|
424
|
+
let { platform: f } = O();
|
|
425
|
+
return /* @__PURE__ */ m(A, {
|
|
302
426
|
ref: e,
|
|
303
427
|
Component: t,
|
|
304
|
-
type: t === "button" ?
|
|
305
|
-
"aria-busy":
|
|
306
|
-
className: h(
|
|
307
|
-
mode:
|
|
308
|
-
size:
|
|
309
|
-
stretched:
|
|
310
|
-
platform:
|
|
311
|
-
}),
|
|
312
|
-
...
|
|
428
|
+
type: t === "button" ? o ?? "button" : o,
|
|
429
|
+
"aria-busy": a || void 0,
|
|
430
|
+
className: h(be({
|
|
431
|
+
mode: n,
|
|
432
|
+
size: r,
|
|
433
|
+
stretched: i,
|
|
434
|
+
platform: f
|
|
435
|
+
}), a && N.loading, u),
|
|
436
|
+
...d,
|
|
313
437
|
children: [
|
|
314
|
-
|
|
315
|
-
|
|
438
|
+
a ? /* @__PURE__ */ p(C, {
|
|
439
|
+
size: "s",
|
|
440
|
+
className: N.spinner,
|
|
316
441
|
"aria-hidden": !0
|
|
317
442
|
}) : null,
|
|
318
|
-
|
|
319
|
-
className:
|
|
320
|
-
children:
|
|
443
|
+
s ? /* @__PURE__ */ p("span", {
|
|
444
|
+
className: N.before,
|
|
445
|
+
children: s
|
|
321
446
|
}) : null,
|
|
322
|
-
/* @__PURE__ */
|
|
323
|
-
size:
|
|
324
|
-
children:
|
|
447
|
+
/* @__PURE__ */ p(xe, {
|
|
448
|
+
size: r,
|
|
449
|
+
children: l
|
|
325
450
|
}),
|
|
326
|
-
|
|
327
|
-
className:
|
|
328
|
-
children:
|
|
451
|
+
c ? /* @__PURE__ */ p("span", {
|
|
452
|
+
className: N.after,
|
|
453
|
+
children: c
|
|
329
454
|
}) : null
|
|
330
455
|
]
|
|
331
456
|
});
|
|
332
457
|
}
|
|
333
|
-
|
|
458
|
+
Se.displayName = "Button";
|
|
334
459
|
//#endregion
|
|
335
460
|
//#region src/components/Caption/Caption.module.css
|
|
336
|
-
var
|
|
461
|
+
var Ce = {
|
|
337
462
|
"level-1": "_level-1_1fkm7_1",
|
|
338
463
|
"level-2": "_level-2_1fkm7_6"
|
|
339
|
-
},
|
|
464
|
+
}, we = f("", {
|
|
340
465
|
variants: { level: {
|
|
341
|
-
1:
|
|
342
|
-
2:
|
|
466
|
+
1: Ce["level-1"],
|
|
467
|
+
2: Ce["level-2"]
|
|
343
468
|
} },
|
|
344
469
|
defaultVariants: { level: "1" }
|
|
345
470
|
});
|
|
346
471
|
//#endregion
|
|
347
472
|
//#region src/components/Caption/Caption.tsx
|
|
348
|
-
function
|
|
349
|
-
return /* @__PURE__ */
|
|
473
|
+
function P({ ref: e, level: t, Component: n = "span", className: r, ...i }) {
|
|
474
|
+
return /* @__PURE__ */ p(E, {
|
|
350
475
|
ref: e,
|
|
351
|
-
Component:
|
|
352
|
-
className: h(
|
|
353
|
-
...
|
|
476
|
+
Component: n,
|
|
477
|
+
className: h(we({ level: t }), r),
|
|
478
|
+
...i
|
|
354
479
|
});
|
|
355
480
|
}
|
|
356
|
-
|
|
481
|
+
P.displayName = "Caption";
|
|
357
482
|
//#endregion
|
|
358
483
|
//#region src/components/Card/Card.context.ts
|
|
359
|
-
var
|
|
360
|
-
card: "
|
|
361
|
-
cardAmbient: "
|
|
362
|
-
cell: "
|
|
363
|
-
cellAmbient: "
|
|
364
|
-
cellHeader: "
|
|
365
|
-
cellSubtitle: "
|
|
366
|
-
},
|
|
484
|
+
var Te = n({ type: "plain" }), F = {
|
|
485
|
+
card: "_card_1maup_1",
|
|
486
|
+
cardAmbient: "_cardAmbient_1maup_17",
|
|
487
|
+
cell: "_cell_1maup_21",
|
|
488
|
+
cellAmbient: "_cellAmbient_1maup_26",
|
|
489
|
+
cellHeader: "_cellHeader_1maup_43",
|
|
490
|
+
cellSubtitle: "_cellSubtitle_1maup_47"
|
|
491
|
+
}, I = {
|
|
367
492
|
cell: "_cell_1w7p5_1",
|
|
368
493
|
before: "_before_1w7p5_10",
|
|
369
494
|
after: "_after_1w7p5_11",
|
|
@@ -378,331 +503,508 @@ var M = o({ type: "plain" }), N = {
|
|
|
378
503
|
hovered: "_hovered_1w7p5_56",
|
|
379
504
|
ios: "_ios_1w7p5_60",
|
|
380
505
|
interactive: "_interactive_1w7p5_67"
|
|
381
|
-
},
|
|
506
|
+
}, Ee = f(I.cell, { variants: {
|
|
382
507
|
platform: {
|
|
383
|
-
ios:
|
|
508
|
+
ios: I.ios,
|
|
384
509
|
base: null
|
|
385
510
|
},
|
|
386
|
-
hovered: { true:
|
|
387
|
-
interactive: { true:
|
|
388
|
-
multiline: { true:
|
|
511
|
+
hovered: { true: I.hovered },
|
|
512
|
+
interactive: { true: I.interactive },
|
|
513
|
+
multiline: { true: I.multiline }
|
|
389
514
|
} });
|
|
390
515
|
//#endregion
|
|
391
516
|
//#region src/components/Cell/Cell.tsx
|
|
392
|
-
function
|
|
393
|
-
return e ? /* @__PURE__ */
|
|
394
|
-
className:
|
|
517
|
+
function De({ ios: e, children: t }) {
|
|
518
|
+
return e ? /* @__PURE__ */ p(j, {
|
|
519
|
+
className: I.head,
|
|
395
520
|
children: t
|
|
396
|
-
}) : /* @__PURE__ */
|
|
521
|
+
}) : /* @__PURE__ */ p(D, {
|
|
397
522
|
level: "1",
|
|
398
|
-
className:
|
|
523
|
+
className: I.head,
|
|
399
524
|
children: t
|
|
400
525
|
});
|
|
401
526
|
}
|
|
402
|
-
function
|
|
403
|
-
return e ? /* @__PURE__ */
|
|
404
|
-
className:
|
|
527
|
+
function Oe({ ios: e, children: t }) {
|
|
528
|
+
return e ? /* @__PURE__ */ p(P, {
|
|
529
|
+
className: I.description,
|
|
405
530
|
children: t
|
|
406
|
-
}) : /* @__PURE__ */
|
|
531
|
+
}) : /* @__PURE__ */ p(D, {
|
|
407
532
|
level: "2",
|
|
408
|
-
className:
|
|
533
|
+
className: I.description,
|
|
409
534
|
children: t
|
|
410
535
|
});
|
|
411
536
|
}
|
|
412
|
-
function
|
|
413
|
-
let { platform: _ } =
|
|
414
|
-
return /* @__PURE__ */
|
|
537
|
+
function ke({ ref: e, Component: t = "div", subhead: n, children: r, hint: i, titleBadge: a, subtitle: o, description: s, before: c, after: l, hovered: u, multiline: d, className: f, ...g }) {
|
|
538
|
+
let { platform: _ } = O(), v = _ === "ios", y = r != null || i != null || a != null, b = g.onClick != null || g.href != null || t === "a" || t === "button" || t === "label";
|
|
539
|
+
return /* @__PURE__ */ m(A, {
|
|
415
540
|
ref: e,
|
|
416
541
|
Component: t,
|
|
417
|
-
className: h(
|
|
542
|
+
className: h(Ee({
|
|
418
543
|
platform: _,
|
|
419
|
-
hovered:
|
|
420
|
-
multiline:
|
|
544
|
+
hovered: u,
|
|
545
|
+
multiline: d,
|
|
421
546
|
interactive: b
|
|
422
|
-
}),
|
|
547
|
+
}), f),
|
|
423
548
|
...g,
|
|
424
549
|
children: [
|
|
425
|
-
|
|
426
|
-
className:
|
|
427
|
-
children:
|
|
550
|
+
c == null ? null : /* @__PURE__ */ p("div", {
|
|
551
|
+
className: I.before,
|
|
552
|
+
children: c
|
|
428
553
|
}),
|
|
429
|
-
/* @__PURE__ */
|
|
430
|
-
className:
|
|
554
|
+
/* @__PURE__ */ m("div", {
|
|
555
|
+
className: I.middle,
|
|
431
556
|
children: [
|
|
432
|
-
|
|
557
|
+
n == null ? null : /* @__PURE__ */ p(D, {
|
|
433
558
|
level: "2",
|
|
434
|
-
className:
|
|
435
|
-
children:
|
|
559
|
+
className: I.subhead,
|
|
560
|
+
children: n
|
|
436
561
|
}),
|
|
437
|
-
y ? /* @__PURE__ */
|
|
562
|
+
y ? /* @__PURE__ */ m(De, {
|
|
438
563
|
ios: v,
|
|
439
564
|
children: [
|
|
440
|
-
|
|
441
|
-
className:
|
|
442
|
-
children:
|
|
565
|
+
r == null ? null : /* @__PURE__ */ p("span", {
|
|
566
|
+
className: I.title,
|
|
567
|
+
children: r
|
|
443
568
|
}),
|
|
444
|
-
|
|
445
|
-
className:
|
|
446
|
-
children:
|
|
569
|
+
i == null ? null : /* @__PURE__ */ p("span", {
|
|
570
|
+
className: I.hint,
|
|
571
|
+
children: i
|
|
447
572
|
}),
|
|
448
|
-
|
|
573
|
+
a
|
|
449
574
|
]
|
|
450
575
|
}) : null,
|
|
451
|
-
|
|
576
|
+
o == null ? null : /* @__PURE__ */ p(D, {
|
|
452
577
|
level: "2",
|
|
453
|
-
className:
|
|
454
|
-
children:
|
|
578
|
+
className: I.subtitle,
|
|
579
|
+
children: o
|
|
455
580
|
}),
|
|
456
|
-
|
|
581
|
+
s == null ? null : /* @__PURE__ */ p(Oe, {
|
|
457
582
|
ios: v,
|
|
458
|
-
children:
|
|
583
|
+
children: s
|
|
459
584
|
})
|
|
460
585
|
]
|
|
461
586
|
}),
|
|
462
|
-
|
|
463
|
-
className:
|
|
464
|
-
children:
|
|
587
|
+
l == null ? null : /* @__PURE__ */ p("div", {
|
|
588
|
+
className: I.after,
|
|
589
|
+
children: l
|
|
465
590
|
})
|
|
466
591
|
]
|
|
467
592
|
});
|
|
468
593
|
}
|
|
469
|
-
|
|
594
|
+
ke.displayName = "Cell";
|
|
470
595
|
//#endregion
|
|
471
596
|
//#region src/components/Card/CardCell.tsx
|
|
472
|
-
function
|
|
473
|
-
let { type: o } =
|
|
474
|
-
return /* @__PURE__ */
|
|
597
|
+
function Ae({ ref: e, children: t, subtitle: n, className: r, ...i }) {
|
|
598
|
+
let { type: o } = a(Te), s = o === "ambient";
|
|
599
|
+
return /* @__PURE__ */ p(ke, {
|
|
475
600
|
ref: e,
|
|
476
|
-
className: h(
|
|
477
|
-
subtitle:
|
|
478
|
-
className:
|
|
479
|
-
children:
|
|
601
|
+
className: h(F.cell, s && F.cellAmbient, r),
|
|
602
|
+
subtitle: n == null ? void 0 : /* @__PURE__ */ p("span", {
|
|
603
|
+
className: F.cellSubtitle,
|
|
604
|
+
children: n
|
|
480
605
|
}),
|
|
481
|
-
...
|
|
482
|
-
children: t == null ? null : /* @__PURE__ */
|
|
483
|
-
className:
|
|
606
|
+
...i,
|
|
607
|
+
children: t == null ? null : /* @__PURE__ */ p("span", {
|
|
608
|
+
className: F.cellHeader,
|
|
484
609
|
children: t
|
|
485
610
|
})
|
|
486
611
|
});
|
|
487
612
|
}
|
|
488
|
-
|
|
613
|
+
Ae.displayName = "CardCell";
|
|
489
614
|
//#endregion
|
|
490
615
|
//#region src/components/Card/Card.tsx
|
|
491
|
-
function
|
|
492
|
-
let
|
|
493
|
-
return /* @__PURE__ */
|
|
494
|
-
value:
|
|
495
|
-
children: /* @__PURE__ */
|
|
616
|
+
function je({ ref: e, type: t = "plain", className: n, children: r, ...i }) {
|
|
617
|
+
let a = s(() => ({ type: t }), [t]);
|
|
618
|
+
return /* @__PURE__ */ p(Te.Provider, {
|
|
619
|
+
value: a,
|
|
620
|
+
children: /* @__PURE__ */ p("article", {
|
|
496
621
|
ref: e,
|
|
497
|
-
className: h(
|
|
498
|
-
...
|
|
499
|
-
children:
|
|
622
|
+
className: h(F.card, t === "ambient" && F.cardAmbient, n),
|
|
623
|
+
...i,
|
|
624
|
+
children: r
|
|
500
625
|
})
|
|
501
626
|
});
|
|
502
627
|
}
|
|
503
|
-
|
|
504
|
-
var
|
|
505
|
-
checkbox: "
|
|
506
|
-
input: "
|
|
507
|
-
box: "
|
|
628
|
+
je.displayName = "Card", je.Cell = Ae;
|
|
629
|
+
var L = {
|
|
630
|
+
checkbox: "_checkbox_yjw6v_1",
|
|
631
|
+
input: "_input_yjw6v_12",
|
|
632
|
+
box: "_box_yjw6v_22"
|
|
508
633
|
};
|
|
509
634
|
//#endregion
|
|
510
635
|
//#region src/components/Checkbox/Checkbox.tsx
|
|
511
|
-
function
|
|
512
|
-
let
|
|
513
|
-
return
|
|
514
|
-
|
|
515
|
-
}, [t]), /* @__PURE__ */
|
|
516
|
-
className: h(
|
|
517
|
-
style:
|
|
518
|
-
"data-disabled":
|
|
519
|
-
children: [/* @__PURE__ */
|
|
636
|
+
function Me({ ref: e, indeterminate: t = !1, disabled: n, className: r, style: i, ...a }) {
|
|
637
|
+
let s = c(null);
|
|
638
|
+
return o(() => {
|
|
639
|
+
s.current && (s.current.indeterminate = t);
|
|
640
|
+
}, [t]), /* @__PURE__ */ m("span", {
|
|
641
|
+
className: h(L.checkbox, r),
|
|
642
|
+
style: i,
|
|
643
|
+
"data-disabled": n || void 0,
|
|
644
|
+
children: [/* @__PURE__ */ p("input", {
|
|
520
645
|
ref: (t) => {
|
|
521
|
-
|
|
646
|
+
s.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
|
|
522
647
|
},
|
|
523
648
|
type: "checkbox",
|
|
524
|
-
className:
|
|
525
|
-
disabled:
|
|
526
|
-
...
|
|
527
|
-
}), /* @__PURE__ */
|
|
528
|
-
className:
|
|
649
|
+
className: L.input,
|
|
650
|
+
disabled: n,
|
|
651
|
+
...a
|
|
652
|
+
}), /* @__PURE__ */ p("span", {
|
|
653
|
+
className: L.box,
|
|
529
654
|
"aria-hidden": !0
|
|
530
655
|
})]
|
|
531
656
|
});
|
|
532
657
|
}
|
|
533
|
-
|
|
534
|
-
var
|
|
658
|
+
Me.displayName = "Checkbox";
|
|
659
|
+
var R = {
|
|
660
|
+
root: "_root_hheo5_1",
|
|
661
|
+
svg: "_svg_hheo5_6",
|
|
662
|
+
track: "_track_hheo5_10",
|
|
663
|
+
indicator: "_indicator_hheo5_14"
|
|
664
|
+
}, Ne = {
|
|
665
|
+
s: 20,
|
|
666
|
+
m: 28,
|
|
667
|
+
l: 36
|
|
668
|
+
}, Pe = {
|
|
669
|
+
s: 2,
|
|
670
|
+
m: 2.5,
|
|
671
|
+
l: 3
|
|
672
|
+
};
|
|
673
|
+
//#endregion
|
|
674
|
+
//#region src/components/CircularProgress/CircularProgress.tsx
|
|
675
|
+
function Fe({ ref: e, value: t = 0, size: n = "m", className: r, ...i }) {
|
|
676
|
+
let a = Math.max(0, Math.min(100, t)), o = Ne[n], s = Pe[n], c = (o - s) / 2, l = 2 * Math.PI * c, u = o / 2;
|
|
677
|
+
return /* @__PURE__ */ p("span", {
|
|
678
|
+
ref: e,
|
|
679
|
+
role: "progressbar",
|
|
680
|
+
"aria-valuemin": 0,
|
|
681
|
+
"aria-valuemax": 100,
|
|
682
|
+
"aria-valuenow": Math.round(a),
|
|
683
|
+
className: h(R.root, r),
|
|
684
|
+
...i,
|
|
685
|
+
children: /* @__PURE__ */ m("svg", {
|
|
686
|
+
className: R.svg,
|
|
687
|
+
width: o,
|
|
688
|
+
height: o,
|
|
689
|
+
viewBox: `0 0 ${o} ${o}`,
|
|
690
|
+
"aria-hidden": !0,
|
|
691
|
+
children: [/* @__PURE__ */ p("circle", {
|
|
692
|
+
className: R.track,
|
|
693
|
+
cx: u,
|
|
694
|
+
cy: u,
|
|
695
|
+
r: c,
|
|
696
|
+
strokeWidth: s,
|
|
697
|
+
fill: "none"
|
|
698
|
+
}), /* @__PURE__ */ p("circle", {
|
|
699
|
+
className: R.indicator,
|
|
700
|
+
cx: u,
|
|
701
|
+
cy: u,
|
|
702
|
+
r: c,
|
|
703
|
+
strokeWidth: s,
|
|
704
|
+
strokeLinecap: "round",
|
|
705
|
+
strokeDasharray: l,
|
|
706
|
+
strokeDashoffset: l * (1 - a / 100),
|
|
707
|
+
fill: "none"
|
|
708
|
+
})]
|
|
709
|
+
})
|
|
710
|
+
});
|
|
711
|
+
}
|
|
712
|
+
Fe.displayName = "CircularProgress";
|
|
713
|
+
var Ie = { divider: "_divider_fq1ux_1" };
|
|
535
714
|
//#endregion
|
|
536
715
|
//#region src/components/Divider/Divider.tsx
|
|
537
|
-
function z({ ref: e, className: t, ...
|
|
538
|
-
return /* @__PURE__ */
|
|
716
|
+
function z({ ref: e, className: t, ...n }) {
|
|
717
|
+
return /* @__PURE__ */ p("hr", {
|
|
539
718
|
ref: e,
|
|
540
|
-
className: h(
|
|
541
|
-
...
|
|
719
|
+
className: h(Ie.divider, t),
|
|
720
|
+
...n
|
|
542
721
|
});
|
|
543
722
|
}
|
|
544
723
|
z.displayName = "Divider";
|
|
545
|
-
var
|
|
724
|
+
var Le = { headline: "_headline_17ihj_1" };
|
|
546
725
|
//#endregion
|
|
547
726
|
//#region src/components/Headline/Headline.tsx
|
|
548
|
-
function
|
|
549
|
-
return /* @__PURE__ */
|
|
727
|
+
function Re({ ref: e, weight: t = "2", className: n, Component: r = "h5", ...i }) {
|
|
728
|
+
return /* @__PURE__ */ p(E, {
|
|
550
729
|
ref: e,
|
|
551
730
|
weight: t,
|
|
552
|
-
Component:
|
|
553
|
-
className: h(
|
|
554
|
-
...
|
|
731
|
+
Component: r,
|
|
732
|
+
className: h(Le.headline, n),
|
|
733
|
+
...i
|
|
555
734
|
});
|
|
556
735
|
}
|
|
557
|
-
|
|
736
|
+
Re.displayName = "Headline";
|
|
558
737
|
var B = {
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
738
|
+
iconButton: "_iconButton_1ifh1_1",
|
|
739
|
+
circle: "_circle_1ifh1_15",
|
|
740
|
+
s: "_s_1ifh1_19",
|
|
741
|
+
m: "_m_1ifh1_24",
|
|
742
|
+
l: "_l_1ifh1_29",
|
|
743
|
+
ios: "_ios_1ifh1_42",
|
|
744
|
+
icon: "_icon_1ifh1_1",
|
|
745
|
+
"mode-bezeled": "_mode-bezeled_1ifh1_67",
|
|
746
|
+
"mode-plain": "_mode-plain_1ifh1_72",
|
|
747
|
+
"mode-gray": "_mode-gray_1ifh1_76",
|
|
748
|
+
"mode-outline": "_mode-outline_1ifh1_81"
|
|
749
|
+
}, ze = f(B.iconButton, {
|
|
750
|
+
variants: {
|
|
751
|
+
mode: {
|
|
752
|
+
bezeled: B["mode-bezeled"],
|
|
753
|
+
plain: B["mode-plain"],
|
|
754
|
+
gray: B["mode-gray"],
|
|
755
|
+
outline: B["mode-outline"]
|
|
756
|
+
},
|
|
757
|
+
size: {
|
|
758
|
+
s: B.s,
|
|
759
|
+
m: B.m,
|
|
760
|
+
l: B.l
|
|
761
|
+
},
|
|
762
|
+
circle: { true: B.circle },
|
|
763
|
+
platform: {
|
|
764
|
+
ios: B.ios,
|
|
765
|
+
base: null
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
defaultVariants: {
|
|
769
|
+
mode: "plain",
|
|
770
|
+
size: "m"
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
//#endregion
|
|
774
|
+
//#region src/components/IconButton/IconButton.tsx
|
|
775
|
+
function Be({ ref: e, Component: t = "button", mode: n = "plain", size: r = "m", circle: i = !1, type: a, className: o, children: s, ...c }) {
|
|
776
|
+
let { platform: l } = O();
|
|
777
|
+
return /* @__PURE__ */ p(A, {
|
|
778
|
+
ref: e,
|
|
779
|
+
Component: t,
|
|
780
|
+
type: t === "button" ? a ?? "button" : a,
|
|
781
|
+
className: h(ze({
|
|
782
|
+
mode: n,
|
|
783
|
+
size: r,
|
|
784
|
+
circle: i,
|
|
785
|
+
platform: l
|
|
786
|
+
}), o),
|
|
787
|
+
...c,
|
|
788
|
+
children: /* @__PURE__ */ p("span", {
|
|
789
|
+
className: B.icon,
|
|
790
|
+
children: s
|
|
791
|
+
})
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
Be.displayName = "IconButton";
|
|
795
|
+
var V = {
|
|
796
|
+
base: "_base_1k0ze_1",
|
|
797
|
+
body: "_body_1k0ze_7",
|
|
798
|
+
ios: "_ios_1k0ze_23",
|
|
799
|
+
"align-start": "_align-start_1k0ze_29",
|
|
800
|
+
before: "_before_1k0ze_33",
|
|
801
|
+
after: "_after_1k0ze_34",
|
|
802
|
+
header: "_header_1k0ze_39",
|
|
803
|
+
focused: "_focused_1k0ze_53",
|
|
804
|
+
error: "_error_1k0ze_61",
|
|
805
|
+
disabled: "_disabled_1k0ze_73"
|
|
569
806
|
};
|
|
570
807
|
//#endregion
|
|
571
|
-
//#region src/components/
|
|
572
|
-
function
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
className: h(
|
|
576
|
-
"aria-disabled":
|
|
577
|
-
children: [/* @__PURE__ */
|
|
578
|
-
className:
|
|
808
|
+
//#region src/components/FormField/FormField.tsx
|
|
809
|
+
function H({ ref: e, ios: t = !1, status: n = "default", disabled: r = !1, alignStart: i = !1, header: a, before: o, after: s, className: c, children: l }) {
|
|
810
|
+
return /* @__PURE__ */ m("div", {
|
|
811
|
+
ref: e,
|
|
812
|
+
className: h(t ? V.ios : V.base, n === "error" && V.error, n === "focused" && V.focused, r && V.disabled, i && V["align-start"], c),
|
|
813
|
+
"aria-disabled": r || void 0,
|
|
814
|
+
children: [/* @__PURE__ */ m("label", {
|
|
815
|
+
className: V.body,
|
|
579
816
|
children: [
|
|
580
|
-
|
|
581
|
-
className:
|
|
582
|
-
children: a
|
|
583
|
-
}),
|
|
584
|
-
/* @__PURE__ */ n(b, {
|
|
585
|
-
ref: e,
|
|
586
|
-
Component: "input",
|
|
587
|
-
className: B.field,
|
|
588
|
-
type: t,
|
|
589
|
-
disabled: c,
|
|
590
|
-
onFocus: (e) => {
|
|
591
|
-
c || v(!0), u?.(e);
|
|
592
|
-
},
|
|
593
|
-
onBlur: (e) => {
|
|
594
|
-
v(!1), d?.(e);
|
|
595
|
-
},
|
|
596
|
-
...f
|
|
597
|
-
}),
|
|
598
|
-
o == null ? null : /* @__PURE__ */ n("span", {
|
|
599
|
-
className: B.after,
|
|
817
|
+
o == null ? null : /* @__PURE__ */ p("span", {
|
|
818
|
+
className: V.before,
|
|
600
819
|
children: o
|
|
820
|
+
}),
|
|
821
|
+
l,
|
|
822
|
+
s == null ? null : /* @__PURE__ */ p("span", {
|
|
823
|
+
className: V.after,
|
|
824
|
+
children: s
|
|
601
825
|
})
|
|
602
826
|
]
|
|
603
|
-
}),
|
|
604
|
-
className:
|
|
605
|
-
children:
|
|
827
|
+
}), a != null && !t ? /* @__PURE__ */ p("span", {
|
|
828
|
+
className: V.header,
|
|
829
|
+
children: a
|
|
606
830
|
}) : null]
|
|
607
831
|
});
|
|
608
832
|
}
|
|
609
|
-
|
|
833
|
+
H.displayName = "FormField";
|
|
834
|
+
var Ve = { field: "_field_11zrf_1" };
|
|
835
|
+
//#endregion
|
|
836
|
+
//#region src/components/Input/Input.tsx
|
|
837
|
+
function He({ ref: e, type: t = "text", header: n, before: r, after: i, status: a, disabled: o, className: s, onFocus: c, onBlur: u, ...d }) {
|
|
838
|
+
let { platform: f } = O(), m = f === "ios", [h, g] = l(!1);
|
|
839
|
+
return /* @__PURE__ */ p(H, {
|
|
840
|
+
ios: m,
|
|
841
|
+
status: a ?? (h ? "focused" : "default"),
|
|
842
|
+
disabled: o,
|
|
843
|
+
header: n,
|
|
844
|
+
before: r,
|
|
845
|
+
after: i,
|
|
846
|
+
className: s,
|
|
847
|
+
children: /* @__PURE__ */ p(m ? j : D, {
|
|
848
|
+
ref: e,
|
|
849
|
+
Component: "input",
|
|
850
|
+
className: Ve.field,
|
|
851
|
+
type: t,
|
|
852
|
+
disabled: o,
|
|
853
|
+
onFocus: (e) => {
|
|
854
|
+
o || g(!0), c?.(e);
|
|
855
|
+
},
|
|
856
|
+
onBlur: (e) => {
|
|
857
|
+
g(!1), u?.(e);
|
|
858
|
+
},
|
|
859
|
+
...d
|
|
860
|
+
})
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
He.displayName = "Input";
|
|
610
864
|
//#endregion
|
|
611
865
|
//#region src/components/LargeTitle/LargeTitle.module.css
|
|
612
|
-
var
|
|
866
|
+
var Ue = { "large-title": "_large-title_15hug_1" };
|
|
613
867
|
//#endregion
|
|
614
868
|
//#region src/components/LargeTitle/LargeTitle.tsx
|
|
615
|
-
function
|
|
616
|
-
return /* @__PURE__ */
|
|
869
|
+
function We({ ref: e, weight: t = "1", className: n, Component: r = "h1", ...i }) {
|
|
870
|
+
return /* @__PURE__ */ p(E, {
|
|
617
871
|
ref: e,
|
|
618
872
|
weight: t,
|
|
619
|
-
Component:
|
|
620
|
-
className: h(
|
|
621
|
-
...
|
|
873
|
+
Component: r,
|
|
874
|
+
className: h(Ue["large-title"], n),
|
|
875
|
+
...i
|
|
622
876
|
});
|
|
623
877
|
}
|
|
624
|
-
|
|
625
|
-
var
|
|
878
|
+
We.displayName = "LargeTitle";
|
|
879
|
+
var Ge = {
|
|
626
880
|
list: "_list_1rhgw_1",
|
|
627
881
|
ios: "_ios_1rhgw_5"
|
|
628
882
|
};
|
|
629
883
|
//#endregion
|
|
630
884
|
//#region src/components/List/List.tsx
|
|
631
|
-
function
|
|
632
|
-
let { platform:
|
|
633
|
-
return /* @__PURE__ */
|
|
885
|
+
function Ke({ ref: e, Component: t = "div", className: n, children: r, ...i }) {
|
|
886
|
+
let { platform: a } = O();
|
|
887
|
+
return /* @__PURE__ */ p(t, {
|
|
634
888
|
ref: e,
|
|
635
|
-
className: h(
|
|
636
|
-
...
|
|
637
|
-
children:
|
|
889
|
+
className: h(Ge.list, a === "ios" && Ge.ios, n),
|
|
890
|
+
...i,
|
|
891
|
+
children: r
|
|
638
892
|
});
|
|
639
893
|
}
|
|
640
|
-
|
|
894
|
+
Ke.displayName = "List";
|
|
641
895
|
//#endregion
|
|
642
896
|
//#region src/components/Title/Title.module.css
|
|
643
|
-
var
|
|
897
|
+
var U = {
|
|
644
898
|
"level-1": "_level-1_rosk9_1",
|
|
645
899
|
"level-2": "_level-2_rosk9_6",
|
|
646
900
|
"level-3": "_level-3_rosk9_11"
|
|
647
|
-
},
|
|
901
|
+
}, qe = {
|
|
648
902
|
1: {
|
|
649
903
|
tag: "h2",
|
|
650
|
-
className:
|
|
904
|
+
className: U["level-1"]
|
|
651
905
|
},
|
|
652
906
|
2: {
|
|
653
907
|
tag: "h3",
|
|
654
|
-
className:
|
|
908
|
+
className: U["level-2"]
|
|
655
909
|
},
|
|
656
910
|
3: {
|
|
657
911
|
tag: "h4",
|
|
658
|
-
className:
|
|
912
|
+
className: U["level-3"]
|
|
659
913
|
}
|
|
660
914
|
};
|
|
661
915
|
//#endregion
|
|
662
916
|
//#region src/components/Title/Title.tsx
|
|
663
|
-
function
|
|
664
|
-
let { tag:
|
|
665
|
-
return /* @__PURE__ */
|
|
917
|
+
function W({ ref: e, level: t = "2", Component: n, className: r, ...i }) {
|
|
918
|
+
let { tag: a, className: o } = qe[t];
|
|
919
|
+
return /* @__PURE__ */ p(E, {
|
|
666
920
|
ref: e,
|
|
667
|
-
Component:
|
|
668
|
-
className: h(
|
|
669
|
-
...
|
|
921
|
+
Component: n ?? a,
|
|
922
|
+
className: h(o, r),
|
|
923
|
+
...i
|
|
670
924
|
});
|
|
671
925
|
}
|
|
672
|
-
|
|
673
|
-
var
|
|
926
|
+
W.displayName = "Title";
|
|
927
|
+
var G = {
|
|
674
928
|
placeholder: "_placeholder_4t5fq_1",
|
|
675
929
|
fields: "_fields_4t5fq_13",
|
|
676
930
|
description: "_description_4t5fq_19"
|
|
677
931
|
};
|
|
678
932
|
//#endregion
|
|
679
933
|
//#region src/components/Placeholder/Placeholder.tsx
|
|
680
|
-
function
|
|
681
|
-
return /* @__PURE__ */
|
|
934
|
+
function Je({ ref: e, children: t, header: n, description: r, action: i, className: a, ...o }) {
|
|
935
|
+
return /* @__PURE__ */ m("section", {
|
|
682
936
|
ref: e,
|
|
683
|
-
className: h(
|
|
684
|
-
...
|
|
937
|
+
className: h(G.placeholder, a),
|
|
938
|
+
...o,
|
|
685
939
|
children: [
|
|
686
940
|
t,
|
|
687
|
-
|
|
688
|
-
className:
|
|
689
|
-
children: [
|
|
941
|
+
n != null || r != null ? /* @__PURE__ */ m("dl", {
|
|
942
|
+
className: G.fields,
|
|
943
|
+
children: [n == null ? null : /* @__PURE__ */ p(W, {
|
|
690
944
|
Component: "dt",
|
|
691
945
|
level: "3",
|
|
692
946
|
weight: "2",
|
|
693
|
-
children:
|
|
694
|
-
}),
|
|
947
|
+
children: n
|
|
948
|
+
}), r == null ? null : /* @__PURE__ */ p(j, {
|
|
695
949
|
Component: "dd",
|
|
696
|
-
className:
|
|
697
|
-
children:
|
|
950
|
+
className: G.description,
|
|
951
|
+
children: r
|
|
698
952
|
})]
|
|
699
953
|
}) : null,
|
|
700
|
-
|
|
954
|
+
i
|
|
701
955
|
]
|
|
702
956
|
});
|
|
703
957
|
}
|
|
704
|
-
|
|
705
|
-
var
|
|
958
|
+
Je.displayName = "Placeholder";
|
|
959
|
+
var Ye = {
|
|
960
|
+
track: "_track_5w1vs_1",
|
|
961
|
+
bar: "_bar_5w1vs_9"
|
|
962
|
+
};
|
|
963
|
+
//#endregion
|
|
964
|
+
//#region src/components/Progress/Progress.tsx
|
|
965
|
+
function Xe({ ref: e, value: t = 0, className: n, ...r }) {
|
|
966
|
+
let i = Math.max(0, Math.min(100, t));
|
|
967
|
+
return /* @__PURE__ */ p("div", {
|
|
968
|
+
ref: e,
|
|
969
|
+
role: "progressbar",
|
|
970
|
+
"aria-valuemin": 0,
|
|
971
|
+
"aria-valuemax": 100,
|
|
972
|
+
"aria-valuenow": Math.round(i),
|
|
973
|
+
className: h(Ye.track, n),
|
|
974
|
+
...r,
|
|
975
|
+
children: /* @__PURE__ */ p("div", {
|
|
976
|
+
className: Ye.bar,
|
|
977
|
+
style: { width: `${i}%` }
|
|
978
|
+
})
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
Xe.displayName = "Progress";
|
|
982
|
+
var K = {
|
|
983
|
+
radio: "_radio_czv9z_1",
|
|
984
|
+
input: "_input_czv9z_12",
|
|
985
|
+
dot: "_dot_czv9z_22"
|
|
986
|
+
};
|
|
987
|
+
//#endregion
|
|
988
|
+
//#region src/components/Radio/Radio.tsx
|
|
989
|
+
function Ze({ ref: e, disabled: t, className: n, style: r, ...i }) {
|
|
990
|
+
return /* @__PURE__ */ m("span", {
|
|
991
|
+
className: h(K.radio, n),
|
|
992
|
+
style: r,
|
|
993
|
+
"data-disabled": t || void 0,
|
|
994
|
+
children: [/* @__PURE__ */ p("input", {
|
|
995
|
+
ref: e,
|
|
996
|
+
type: "radio",
|
|
997
|
+
className: K.input,
|
|
998
|
+
disabled: t,
|
|
999
|
+
...i
|
|
1000
|
+
}), /* @__PURE__ */ p("span", {
|
|
1001
|
+
className: K.dot,
|
|
1002
|
+
"aria-hidden": !0
|
|
1003
|
+
})]
|
|
1004
|
+
});
|
|
1005
|
+
}
|
|
1006
|
+
Ze.displayName = "Radio";
|
|
1007
|
+
var q = {
|
|
706
1008
|
body: "_body_1o4ef_1",
|
|
707
1009
|
sectionBase: "_sectionBase_1o4ef_6",
|
|
708
1010
|
bodyWithHeader: "_bodyWithHeader_1o4ef_6",
|
|
@@ -717,130 +1019,147 @@ var W = {
|
|
|
717
1019
|
};
|
|
718
1020
|
//#endregion
|
|
719
1021
|
//#region src/components/Section/SectionFooter.tsx
|
|
720
|
-
function
|
|
721
|
-
return e ? /* @__PURE__ */
|
|
722
|
-
className:
|
|
1022
|
+
function Qe({ ios: e, children: t }) {
|
|
1023
|
+
return e ? /* @__PURE__ */ p(P, {
|
|
1024
|
+
className: q.footerText,
|
|
723
1025
|
children: t
|
|
724
|
-
}) : /* @__PURE__ */
|
|
1026
|
+
}) : /* @__PURE__ */ p(D, {
|
|
725
1027
|
level: "2",
|
|
726
|
-
className:
|
|
1028
|
+
className: q.footerText,
|
|
727
1029
|
children: t
|
|
728
1030
|
});
|
|
729
1031
|
}
|
|
730
|
-
function
|
|
731
|
-
let { platform:
|
|
732
|
-
return /* @__PURE__ */
|
|
1032
|
+
function J({ ref: e, centered: t = !1, className: n, children: r, ...i }) {
|
|
1033
|
+
let { platform: a } = O(), o = a === "ios";
|
|
1034
|
+
return /* @__PURE__ */ p("footer", {
|
|
733
1035
|
ref: e,
|
|
734
|
-
className: h(
|
|
735
|
-
...
|
|
736
|
-
children: /* @__PURE__ */
|
|
737
|
-
ios:
|
|
738
|
-
children:
|
|
1036
|
+
className: h(q.footer, o && q.footerIos, t && q.footerCentered, n),
|
|
1037
|
+
...i,
|
|
1038
|
+
children: /* @__PURE__ */ p(Qe, {
|
|
1039
|
+
ios: o,
|
|
1040
|
+
children: r
|
|
739
1041
|
})
|
|
740
1042
|
});
|
|
741
1043
|
}
|
|
742
|
-
|
|
1044
|
+
J.displayName = "SectionFooter";
|
|
743
1045
|
//#endregion
|
|
744
1046
|
//#region src/components/Section/SectionHeader.tsx
|
|
745
|
-
function
|
|
746
|
-
return t ? e ? /* @__PURE__ */
|
|
1047
|
+
function $e({ ios: e, large: t, children: n }) {
|
|
1048
|
+
return t ? e ? /* @__PURE__ */ p(D, {
|
|
747
1049
|
Component: "h2",
|
|
748
1050
|
level: "1",
|
|
749
1051
|
weight: "2",
|
|
750
|
-
children:
|
|
751
|
-
}) : /* @__PURE__ */
|
|
1052
|
+
children: n
|
|
1053
|
+
}) : /* @__PURE__ */ p(j, {
|
|
752
1054
|
Component: "h2",
|
|
753
1055
|
weight: "2",
|
|
754
|
-
children:
|
|
755
|
-
}) : e ? /* @__PURE__ */
|
|
1056
|
+
children: n
|
|
1057
|
+
}) : e ? /* @__PURE__ */ p(P, {
|
|
756
1058
|
Component: "h2",
|
|
757
1059
|
caps: !0,
|
|
758
|
-
children:
|
|
759
|
-
}) : /* @__PURE__ */
|
|
1060
|
+
children: n
|
|
1061
|
+
}) : /* @__PURE__ */ p(D, {
|
|
760
1062
|
Component: "h2",
|
|
761
1063
|
level: "2",
|
|
762
1064
|
weight: "2",
|
|
763
|
-
children:
|
|
1065
|
+
children: n
|
|
764
1066
|
});
|
|
765
1067
|
}
|
|
766
|
-
function
|
|
767
|
-
let { platform:
|
|
768
|
-
return /* @__PURE__ */
|
|
1068
|
+
function Y({ ref: e, large: t = !1, className: n, children: r, ...i }) {
|
|
1069
|
+
let { platform: a } = O(), o = a === "ios";
|
|
1070
|
+
return /* @__PURE__ */ p("header", {
|
|
769
1071
|
ref: e,
|
|
770
|
-
className: h(
|
|
771
|
-
...
|
|
772
|
-
children: /* @__PURE__ */
|
|
773
|
-
ios:
|
|
1072
|
+
className: h(q.header, o && q.headerIos, t && q.headerLarge, n),
|
|
1073
|
+
...i,
|
|
1074
|
+
children: /* @__PURE__ */ p($e, {
|
|
1075
|
+
ios: o,
|
|
774
1076
|
large: t,
|
|
775
|
-
children:
|
|
1077
|
+
children: r
|
|
776
1078
|
})
|
|
777
1079
|
});
|
|
778
1080
|
}
|
|
779
|
-
|
|
1081
|
+
Y.displayName = "SectionHeader";
|
|
780
1082
|
//#endregion
|
|
781
1083
|
//#region src/components/Section/Section.tsx
|
|
782
|
-
var
|
|
783
|
-
function
|
|
784
|
-
let { platform:
|
|
785
|
-
return /* @__PURE__ */
|
|
786
|
-
ref:
|
|
787
|
-
className: h(
|
|
788
|
-
...
|
|
789
|
-
children: [/* @__PURE__ */
|
|
790
|
-
className:
|
|
791
|
-
children: [
|
|
792
|
-
className:
|
|
793
|
-
children:
|
|
1084
|
+
var et = (e) => typeof e == "string" || typeof e == "number";
|
|
1085
|
+
function X({ ref: n, header: i, footer: a, className: o, children: s, ...c }) {
|
|
1086
|
+
let { platform: l } = O(), u = e.toArray(s);
|
|
1087
|
+
return /* @__PURE__ */ m("section", {
|
|
1088
|
+
ref: n,
|
|
1089
|
+
className: h(l === "ios" ? q.sectionIos : q.sectionBase, o),
|
|
1090
|
+
...c,
|
|
1091
|
+
children: [/* @__PURE__ */ m("div", {
|
|
1092
|
+
className: q.bodyWithHeader,
|
|
1093
|
+
children: [et(i) ? /* @__PURE__ */ p(Y, { children: i }) : i, /* @__PURE__ */ p("div", {
|
|
1094
|
+
className: q.body,
|
|
1095
|
+
children: u.map((e, n) => /* @__PURE__ */ m(t, { children: [e, n < u.length - 1 ? /* @__PURE__ */ p(z, {}) : null] }, r(e) ? e.key : n))
|
|
794
1096
|
})]
|
|
795
|
-
}),
|
|
796
|
-
});
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
var
|
|
800
|
-
base: "
|
|
801
|
-
row: "
|
|
802
|
-
ios: "
|
|
803
|
-
select: "
|
|
804
|
-
chevron: "
|
|
805
|
-
header: "
|
|
806
|
-
focused: "
|
|
807
|
-
error: "
|
|
808
|
-
disabled: "
|
|
1097
|
+
}), et(a) ? /* @__PURE__ */ p(J, { children: a }) : a]
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
X.displayName = "Section", X.Header = Y, X.Footer = J;
|
|
1101
|
+
var Z = {
|
|
1102
|
+
base: "_base_yxki5_1",
|
|
1103
|
+
row: "_row_yxki5_7",
|
|
1104
|
+
ios: "_ios_yxki5_17",
|
|
1105
|
+
select: "_select_yxki5_22",
|
|
1106
|
+
chevron: "_chevron_yxki5_36",
|
|
1107
|
+
header: "_header_yxki5_48",
|
|
1108
|
+
focused: "_focused_yxki5_62",
|
|
1109
|
+
error: "_error_yxki5_70",
|
|
1110
|
+
disabled: "_disabled_yxki5_82"
|
|
809
1111
|
};
|
|
810
1112
|
//#endregion
|
|
811
1113
|
//#region src/components/Select/Select.tsx
|
|
812
|
-
function
|
|
813
|
-
let { platform:
|
|
814
|
-
return /* @__PURE__ */
|
|
815
|
-
className: h(
|
|
816
|
-
"aria-disabled":
|
|
817
|
-
children: [/* @__PURE__ */
|
|
818
|
-
className:
|
|
819
|
-
children: [/* @__PURE__ */
|
|
1114
|
+
function tt({ ref: e, header: t, status: n, disabled: r, className: i, onFocus: a, onBlur: o, children: s, ...c }) {
|
|
1115
|
+
let { platform: u } = O(), d = u === "ios", [f, g] = l(!1), _ = n ?? (f ? "focused" : "default"), v = d ? j : D;
|
|
1116
|
+
return /* @__PURE__ */ m("div", {
|
|
1117
|
+
className: h(d ? Z.ios : Z.base, _ === "error" && Z.error, _ === "focused" && Z.focused, r && Z.disabled, i),
|
|
1118
|
+
"aria-disabled": r || void 0,
|
|
1119
|
+
children: [/* @__PURE__ */ m("div", {
|
|
1120
|
+
className: Z.row,
|
|
1121
|
+
children: [/* @__PURE__ */ p(v, {
|
|
820
1122
|
ref: e,
|
|
821
1123
|
Component: "select",
|
|
822
|
-
className:
|
|
823
|
-
disabled:
|
|
1124
|
+
className: Z.select,
|
|
1125
|
+
disabled: r,
|
|
824
1126
|
onFocus: (e) => {
|
|
825
|
-
|
|
1127
|
+
r || g(!0), a?.(e);
|
|
826
1128
|
},
|
|
827
1129
|
onBlur: (e) => {
|
|
828
|
-
g(!1),
|
|
1130
|
+
g(!1), o?.(e);
|
|
829
1131
|
},
|
|
830
|
-
...
|
|
831
|
-
children:
|
|
832
|
-
}), /* @__PURE__ */
|
|
1132
|
+
...c,
|
|
1133
|
+
children: s
|
|
1134
|
+
}), /* @__PURE__ */ p("span", {
|
|
833
1135
|
"aria-hidden": !0,
|
|
834
|
-
className:
|
|
1136
|
+
className: Z.chevron
|
|
835
1137
|
})]
|
|
836
|
-
}), t != null && !
|
|
837
|
-
className:
|
|
1138
|
+
}), t != null && !d ? /* @__PURE__ */ p("span", {
|
|
1139
|
+
className: Z.header,
|
|
838
1140
|
children: t
|
|
839
1141
|
}) : null]
|
|
840
1142
|
});
|
|
841
1143
|
}
|
|
842
|
-
|
|
843
|
-
var
|
|
1144
|
+
tt.displayName = "Select";
|
|
1145
|
+
var nt = {
|
|
1146
|
+
skeleton: "_skeleton_197j4_1",
|
|
1147
|
+
visible: "_visible_197j4_5",
|
|
1148
|
+
"tgui-skeleton": "_tgui-skeleton_197j4_1"
|
|
1149
|
+
};
|
|
1150
|
+
//#endregion
|
|
1151
|
+
//#region src/components/Skeleton/Skeleton.tsx
|
|
1152
|
+
function rt({ ref: e, visible: t = !0, className: n, children: r, ...i }) {
|
|
1153
|
+
return /* @__PURE__ */ p("div", {
|
|
1154
|
+
ref: e,
|
|
1155
|
+
"aria-hidden": t || void 0,
|
|
1156
|
+
className: h(nt.skeleton, t && nt.visible, n),
|
|
1157
|
+
...i,
|
|
1158
|
+
children: r
|
|
1159
|
+
});
|
|
1160
|
+
}
|
|
1161
|
+
rt.displayName = "Skeleton";
|
|
1162
|
+
var Q = {
|
|
844
1163
|
switch: "_switch_s4zd1_1",
|
|
845
1164
|
input: "_input_s4zd1_18",
|
|
846
1165
|
control: "_control_s4zd1_28",
|
|
@@ -849,70 +1168,116 @@ var X = {
|
|
|
849
1168
|
};
|
|
850
1169
|
//#endregion
|
|
851
1170
|
//#region src/components/Switch/Switch.tsx
|
|
852
|
-
function
|
|
853
|
-
let { platform:
|
|
854
|
-
return /* @__PURE__ */
|
|
855
|
-
className: h(
|
|
856
|
-
style:
|
|
1171
|
+
function it({ ref: e, disabled: t, className: n, style: r, ...i }) {
|
|
1172
|
+
let { platform: a } = O();
|
|
1173
|
+
return /* @__PURE__ */ m("label", {
|
|
1174
|
+
className: h(Q.switch, a === "ios" ? Q.ios : Q.base, n),
|
|
1175
|
+
style: r,
|
|
857
1176
|
"data-disabled": t || void 0,
|
|
858
|
-
children: [/* @__PURE__ */
|
|
1177
|
+
children: [/* @__PURE__ */ p("input", {
|
|
859
1178
|
ref: e,
|
|
860
1179
|
type: "checkbox",
|
|
861
|
-
className:
|
|
1180
|
+
className: Q.input,
|
|
862
1181
|
disabled: t,
|
|
863
|
-
...
|
|
864
|
-
}), /* @__PURE__ */
|
|
1182
|
+
...i
|
|
1183
|
+
}), /* @__PURE__ */ p("span", {
|
|
865
1184
|
"aria-hidden": !0,
|
|
866
|
-
className:
|
|
1185
|
+
className: Q.control
|
|
867
1186
|
})]
|
|
868
1187
|
});
|
|
869
1188
|
}
|
|
870
|
-
|
|
871
|
-
var
|
|
872
|
-
bar: "
|
|
873
|
-
barIos: "
|
|
874
|
-
item: "
|
|
875
|
-
itemIos: "
|
|
876
|
-
itemSelected: "
|
|
877
|
-
icon: "
|
|
878
|
-
text: "
|
|
1189
|
+
it.displayName = "Switch";
|
|
1190
|
+
var $ = {
|
|
1191
|
+
bar: "_bar_muj3n_1",
|
|
1192
|
+
barIos: "_barIos_muj3n_10",
|
|
1193
|
+
item: "_item_muj3n_15",
|
|
1194
|
+
itemIos: "_itemIos_muj3n_33",
|
|
1195
|
+
itemSelected: "_itemSelected_muj3n_38",
|
|
1196
|
+
icon: "_icon_muj3n_42",
|
|
1197
|
+
text: "_text_muj3n_62"
|
|
879
1198
|
};
|
|
880
1199
|
//#endregion
|
|
881
1200
|
//#region src/components/TabBar/TabBarItem.tsx
|
|
882
|
-
function
|
|
883
|
-
let { platform:
|
|
884
|
-
return /* @__PURE__ */
|
|
1201
|
+
function at({ ref: e, selected: t, text: n, children: r, className: i, ...a }) {
|
|
1202
|
+
let { platform: o } = O(), s = o === "ios";
|
|
1203
|
+
return /* @__PURE__ */ m(A, {
|
|
885
1204
|
ref: e,
|
|
886
1205
|
Component: "button",
|
|
887
1206
|
interactiveAnimation: "opacity",
|
|
888
1207
|
"aria-current": t ? "page" : void 0,
|
|
889
|
-
className: h(
|
|
890
|
-
...
|
|
891
|
-
children: [
|
|
892
|
-
className:
|
|
893
|
-
children:
|
|
894
|
-
}),
|
|
895
|
-
className:
|
|
1208
|
+
className: h($.item, s && $.itemIos, t && $.itemSelected, i),
|
|
1209
|
+
...a,
|
|
1210
|
+
children: [r == null ? null : /* @__PURE__ */ p("span", {
|
|
1211
|
+
className: $.icon,
|
|
1212
|
+
children: r
|
|
1213
|
+
}), n == null ? null : /* @__PURE__ */ p(P, {
|
|
1214
|
+
className: $.text,
|
|
896
1215
|
weight: "2",
|
|
897
|
-
level:
|
|
898
|
-
children:
|
|
1216
|
+
level: s ? "2" : "1",
|
|
1217
|
+
children: n
|
|
899
1218
|
})]
|
|
900
1219
|
});
|
|
901
1220
|
}
|
|
902
|
-
|
|
1221
|
+
at.displayName = "TabBarItem";
|
|
903
1222
|
//#endregion
|
|
904
1223
|
//#region src/components/TabBar/TabBar.tsx
|
|
905
|
-
function
|
|
906
|
-
let { platform:
|
|
907
|
-
return /* @__PURE__ */
|
|
1224
|
+
function ot({ ref: e, className: t, children: n, ...r }) {
|
|
1225
|
+
let { platform: i } = O();
|
|
1226
|
+
return /* @__PURE__ */ p("nav", {
|
|
908
1227
|
ref: e,
|
|
909
|
-
className: h(
|
|
910
|
-
...
|
|
911
|
-
children:
|
|
1228
|
+
className: h($.bar, i === "ios" && $.barIos, t),
|
|
1229
|
+
...r,
|
|
1230
|
+
children: n
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
ot.displayName = "TabBar", ot.Item = at;
|
|
1234
|
+
var st = { field: "_field_1crg0_1" };
|
|
1235
|
+
//#endregion
|
|
1236
|
+
//#region src/components/Textarea/Textarea.tsx
|
|
1237
|
+
function ct({ ref: e, header: t, status: n, autoGrow: r = !1, maxRows: a, rows: s = 3, disabled: u, className: d, value: f, defaultValue: m, onFocus: h, onBlur: g, onChange: _, ...v }) {
|
|
1238
|
+
let { platform: y } = O(), b = y === "ios", [ee, x] = l(!1), S = n ?? (ee ? "focused" : "default"), te = b ? j : D, C = c(null), w = i((t) => {
|
|
1239
|
+
C.current = t, typeof e == "function" ? e(t) : e && (e.current = t);
|
|
1240
|
+
}, [e]), T = i(() => {
|
|
1241
|
+
let e = C.current;
|
|
1242
|
+
if (!e || !r) return;
|
|
1243
|
+
e.style.height = "auto";
|
|
1244
|
+
let t = getComputedStyle(e), n = Number.parseFloat(t.lineHeight) || 20, i = a ? n * a : Infinity;
|
|
1245
|
+
e.style.height = `${Math.min(e.scrollHeight, i)}px`, e.style.overflowY = e.scrollHeight > i ? "auto" : "hidden";
|
|
1246
|
+
}, [r, a]);
|
|
1247
|
+
return o(T, [
|
|
1248
|
+
T,
|
|
1249
|
+
f,
|
|
1250
|
+
m
|
|
1251
|
+
]), /* @__PURE__ */ p(H, {
|
|
1252
|
+
ios: b,
|
|
1253
|
+
status: S,
|
|
1254
|
+
disabled: u,
|
|
1255
|
+
alignStart: !0,
|
|
1256
|
+
header: t,
|
|
1257
|
+
className: d,
|
|
1258
|
+
children: /* @__PURE__ */ p(te, {
|
|
1259
|
+
ref: w,
|
|
1260
|
+
Component: "textarea",
|
|
1261
|
+
className: st.field,
|
|
1262
|
+
rows: s,
|
|
1263
|
+
disabled: u,
|
|
1264
|
+
value: f,
|
|
1265
|
+
defaultValue: m,
|
|
1266
|
+
onFocus: (e) => {
|
|
1267
|
+
u || x(!0), h?.(e);
|
|
1268
|
+
},
|
|
1269
|
+
onBlur: (e) => {
|
|
1270
|
+
x(!1), g?.(e);
|
|
1271
|
+
},
|
|
1272
|
+
onChange: (e) => {
|
|
1273
|
+
T(), _?.(e);
|
|
1274
|
+
},
|
|
1275
|
+
...v
|
|
1276
|
+
})
|
|
912
1277
|
});
|
|
913
1278
|
}
|
|
914
|
-
|
|
1279
|
+
ct.displayName = "Textarea";
|
|
915
1280
|
//#endregion
|
|
916
|
-
export {
|
|
1281
|
+
export { y as Avatar, x as Badge, Se as Button, P as Caption, je as Card, Ae as CardCell, ke as Cell, Me as Checkbox, Fe as CircularProgress, z as Divider, Re as Headline, Be as IconButton, He as Input, We as LargeTitle, Ke as List, Je as Placeholder, Xe as Progress, Ze as Radio, X as Section, J as SectionFooter, Y as SectionHeader, tt as Select, rt as Skeleton, C as Spinner, D as Subheadline, it as Switch, ot as TabBar, at as TabBarItem, A as Tappable, j as Text, ct as Textarea, ye as TguiProvider, W as Title, E as Typography, O as useTgui };
|
|
917
1282
|
|
|
918
1283
|
//# sourceMappingURL=index.js.map
|