rechtspilot-ui 1.4.2 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/chunks-native.cjs +1 -1
  2. package/dist/chunks-native.js +426 -408
  3. package/dist/chunks.cjs +1 -1
  4. package/dist/chunks.js +23 -4
  5. package/dist/icons.cjs +1 -1
  6. package/dist/icons.d.ts +2 -0
  7. package/dist/icons.es.js +2 -2
  8. package/dist/icons.native.cjs +1 -1
  9. package/dist/icons.native.es.js +2 -2
  10. package/dist/index.cjs +96 -96
  11. package/dist/index.es.js +301 -301
  12. package/dist/index.native.cjs +3 -1
  13. package/dist/index.native.es.js +1056 -325
  14. package/dist/native/components/Badge/Badge.native.d.ts +10 -0
  15. package/dist/native/components/Button/Button.native.d.ts +3 -1
  16. package/dist/native/components/Card/Card.native.d.ts +12 -0
  17. package/dist/native/components/Divider/Divider.native.d.ts +2 -0
  18. package/dist/native/components/EmptyState/EmptyState.native.d.ts +9 -0
  19. package/dist/native/components/Input/Input.native.d.ts +12 -2
  20. package/dist/native/components/Letter/Letter.native.d.ts +69 -0
  21. package/dist/native/components/MenuItem/MenuItem.native.d.ts +10 -0
  22. package/dist/native/components/RadioCard/RadioCard.native.d.ts +11 -0
  23. package/dist/native/components/Sheet/Sheet.native.d.ts +5 -1
  24. package/dist/native/components/Spinner/Spinner.native.d.ts +2 -1
  25. package/dist/native/components/StepProgress/StepProgress.native.d.ts +12 -0
  26. package/dist/native/components/Toaster/Toaster.native.d.ts +1 -0
  27. package/dist/native/icons/Warning.d.ts +2 -0
  28. package/dist/native/icons/index.d.ts +1 -0
  29. package/dist/native/icons/index.native.d.ts +1 -0
  30. package/dist/native/icons/native/Warning.native.d.ts +2 -0
  31. package/dist/native/icons/toast/Error.native.d.ts +1 -0
  32. package/dist/native/icons/toast/Info.native.d.ts +1 -0
  33. package/dist/native/icons/toast/Success.native.d.ts +1 -0
  34. package/dist/native/icons/toast/Warning.native.d.ts +1 -0
  35. package/dist/native/index.native.d.ts +16 -0
  36. package/dist/native/lib/ui/command.d.ts +1 -1
  37. package/package.json +17 -2
@@ -1,47 +1,98 @@
1
- import { G as e, J as t, K as n, q as r, t as i } from "./chunks-native.js";
2
- import * as a from "react";
3
- import { useEffect as o, useRef as s, useState as c } from "react";
4
- import { Animated as l, Easing as u, KeyboardAvoidingView as d, Modal as f, Platform as p, Pressable as m, ScrollView as h, StyleSheet as g, Text as _, TextInput as v, TouchableOpacity as y, View as b } from "react-native";
5
- import { Circle as x, Path as S, Svg as C } from "react-native-svg";
6
- import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
7
- import { useSafeAreaInsets as D } from "react-native-safe-area-context";
1
+ import { G as e, J as t, K as n, W as r, Y as i, q as a, t as o } from "./chunks-native.js";
2
+ import * as s from "react";
3
+ import { createContext as c, useContext as l, useEffect as u, useRef as d, useState as f } from "react";
4
+ import { Animated as p, Easing as m, Modal as h, Platform as g, Pressable as _, ScrollView as v, StyleSheet as y, Text as b, TouchableOpacity as ee, View as x } from "react-native";
5
+ import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
6
+ import { Circle as T, Path as E, Svg as D } from "react-native-svg";
7
+ import { HelperText as te, TextInput as O } from "react-native-paper";
8
+ import { KeyboardAvoidingView as ne } from "react-native-keyboard-controller";
9
+ import { useSafeAreaInsets as re } from "react-native-safe-area-context";
10
+ //#region src/components/Text/Text.native.tsx
11
+ var ie = {
12
+ heading: 20,
13
+ title: 16,
14
+ label: 13,
15
+ body: 15,
16
+ caption: 12
17
+ };
18
+ function k({ variant: e = "body", color: t, style: n, ...r }) {
19
+ return /* @__PURE__ */ C(b, {
20
+ style: [
21
+ i[e],
22
+ { fontSize: ie[e] },
23
+ t ? { color: t } : void 0,
24
+ n
25
+ ],
26
+ ...r
27
+ });
28
+ }
29
+ //#endregion
30
+ //#region src/components/Badge/Badge.native.tsx
31
+ function ae({ icon: e, children: n, backgroundColor: r = t.neutral["800-A08"], textColor: i = t.fg.primary, style: a }) {
32
+ return /* @__PURE__ */ w(x, {
33
+ style: [
34
+ A.badge,
35
+ { backgroundColor: r },
36
+ a
37
+ ],
38
+ children: [e, /* @__PURE__ */ C(k, {
39
+ variant: "label",
40
+ color: i,
41
+ style: A.label,
42
+ children: n
43
+ })]
44
+ });
45
+ }
46
+ var A = y.create({
47
+ badge: {
48
+ flexDirection: "row",
49
+ alignItems: "center",
50
+ gap: 4,
51
+ height: 30,
52
+ paddingHorizontal: 6,
53
+ borderRadius: 8
54
+ },
55
+ label: { textTransform: "uppercase" }
56
+ });
57
+ //#endregion
8
58
  //#region src/components/Spinner/Spinner.native.tsx
9
- function O({ size: e = 24, color: t = r.fg.primary, trackColor: n = r.neutral["800-A08"], style: i }) {
10
- let a = s(new l.Value(0)).current;
11
- o(() => {
12
- let e = l.loop(l.timing(a, {
59
+ function j({ size: e = 24, color: n = t.fg.primary, trackColor: r = t.neutral["800-A08"], duration: i = 1e3, style: a }) {
60
+ let o = d(new p.Value(0)).current;
61
+ u(() => {
62
+ o.setValue(0);
63
+ let e = p.loop(p.timing(o, {
13
64
  toValue: 1,
14
- duration: 1e3,
15
- easing: u.linear,
65
+ duration: i,
66
+ easing: m.linear,
16
67
  useNativeDriver: !0
17
68
  }));
18
69
  return e.start(), () => e.stop();
19
- }, [a]);
20
- let c = a.interpolate({
70
+ }, [o, i]);
71
+ let s = o.interpolate({
21
72
  inputRange: [0, 1],
22
73
  outputRange: ["0deg", "360deg"]
23
74
  });
24
- return /* @__PURE__ */ T(l.View, {
75
+ return /* @__PURE__ */ C(p.View, {
25
76
  style: [{
26
77
  width: e,
27
78
  height: e,
28
- transform: [{ rotate: c }]
29
- }, i],
30
- children: /* @__PURE__ */ E(C, {
79
+ transform: [{ rotate: s }]
80
+ }, a],
81
+ children: /* @__PURE__ */ w(D, {
31
82
  width: e,
32
83
  height: e,
33
84
  viewBox: "0 0 24 24",
34
85
  fill: "none",
35
- children: [/* @__PURE__ */ T(x, {
86
+ children: [/* @__PURE__ */ C(T, {
36
87
  cx: "12",
37
88
  cy: "12",
38
89
  r: "8",
39
- stroke: n,
90
+ stroke: r,
40
91
  strokeWidth: 3,
41
92
  fill: "none"
42
- }), /* @__PURE__ */ T(S, {
93
+ }), /* @__PURE__ */ C(E, {
43
94
  d: "M12 4C16.4183 4 20 7.58172 20 12C20 14.1304 19.1672 16.0663 17.8095 17.5",
44
- stroke: t,
95
+ stroke: n,
45
96
  strokeWidth: 3,
46
97
  strokeLinecap: "round",
47
98
  fill: "none"
@@ -51,7 +102,7 @@ function O({ size: e = 24, color: t = r.fg.primary, trackColor: n = r.neutral["8
51
102
  }
52
103
  //#endregion
53
104
  //#region src/components/Button/Button.native.tsx
54
- var k = (e) => {
105
+ var oe = (e) => {
55
106
  let n = {
56
107
  alignItems: "center",
57
108
  borderRadius: 12,
@@ -60,8 +111,8 @@ var k = (e) => {
60
111
  height: 48,
61
112
  justifyContent: "center",
62
113
  paddingHorizontal: 16
63
- }, i = {
64
- fontFamily: t.body.fontFamily,
114
+ }, r = {
115
+ fontFamily: i.body.fontFamily,
65
116
  fontSize: 15,
66
117
  fontWeight: "500",
67
118
  textAlign: "center"
@@ -70,114 +121,208 @@ var k = (e) => {
70
121
  case "primary": return {
71
122
  container: {
72
123
  ...n,
73
- backgroundColor: r.primary[500],
74
- borderColor: r.neutral["800-A16"]
124
+ backgroundColor: t.primary[500],
125
+ borderColor: t.neutral["800-A16"]
75
126
  },
76
127
  text: {
77
- ...i,
78
- color: r.primary[900]
128
+ ...r,
129
+ color: t.primary[900]
79
130
  }
80
131
  };
81
132
  case "secondary": return {
82
133
  container: {
83
134
  ...n,
84
- backgroundColor: r.primary[900],
85
- borderColor: r.neutral["800-A16"]
135
+ backgroundColor: t.primary[900],
136
+ borderColor: t.neutral["800-A16"]
86
137
  },
87
138
  text: {
88
- ...i,
89
- color: r.white
139
+ ...r,
140
+ color: t.white
90
141
  }
91
142
  };
92
143
  case "tertiary": return {
93
144
  container: {
94
145
  ...n,
95
- backgroundColor: r.neutral["800-A04"],
96
- borderColor: r.neutral["800-A08"]
146
+ backgroundColor: t.neutral["800-A04"],
147
+ borderColor: t.neutral["800-A08"]
97
148
  },
98
149
  text: {
99
- ...i,
100
- color: r.primary[900]
150
+ ...r,
151
+ color: t.primary[900]
101
152
  }
102
153
  };
103
154
  case "destructive": return {
104
155
  container: {
105
156
  ...n,
106
- backgroundColor: r.fg.accent.error,
107
- borderColor: r.fg.accent.error
157
+ backgroundColor: t.fg.accent.error,
158
+ borderColor: t.fg.accent.error
108
159
  },
109
160
  text: {
110
- ...i,
111
- color: r.white
161
+ ...r,
162
+ color: t.white
112
163
  }
113
164
  };
114
165
  case "destructiveSubtle": return {
115
166
  container: {
116
167
  ...n,
117
- backgroundColor: r.cream,
118
- borderColor: r.palePeach
168
+ backgroundColor: t.cream,
169
+ borderColor: t.palePeach
119
170
  },
120
171
  text: {
121
- ...i,
122
- color: r.fg.accent.error
172
+ ...r,
173
+ color: t.fg.accent.error
123
174
  }
124
175
  };
125
176
  }
126
177
  };
127
- function A({ variant: e = "primary", fullWidth: t = !1, children: n, loading: i = !1, disabled: a = !1, onPress: o, ...s }) {
128
- let c = k(e);
129
- return /* @__PURE__ */ E(y, {
130
- style: g.flatten([
131
- c.container,
132
- t && { width: "100%" },
133
- (a || i) && { opacity: .4 }
134
- ]),
178
+ function se({ variant: e = "primary", fullWidth: n = !1, children: r, loading: i = !1, disabled: a = !1, onPress: o, style: s, ...c }) {
179
+ let l = oe(e);
180
+ return /* @__PURE__ */ w(ee, {
181
+ style: [
182
+ l.container,
183
+ n && { width: "100%" },
184
+ (a || i) && { opacity: .4 },
185
+ s
186
+ ],
135
187
  onPress: o,
136
188
  disabled: a || i,
137
189
  activeOpacity: .7,
138
- ...s,
139
- children: [typeof n == "string" ? /* @__PURE__ */ T(_, {
140
- style: c.text,
141
- children: n
142
- }) : n, i && /* @__PURE__ */ T(O, {
190
+ ...c,
191
+ children: [typeof r == "string" ? /* @__PURE__ */ C(b, {
192
+ style: l.text,
193
+ children: r
194
+ }) : r, i && /* @__PURE__ */ C(j, {
143
195
  size: 16,
144
- color: e === "secondary" ? r.primary[600] : e === "destructiveSubtle" ? r.fg.accent.error : r.white
196
+ color: e === "secondary" ? t.primary[600] : e === "destructiveSubtle" ? t.fg.accent.error : t.white
145
197
  })]
146
198
  });
147
199
  }
148
200
  //#endregion
149
- //#region src/components/IconButton/IconButton.native.tsx
150
- var j = {
201
+ //#region src/components/Card/Card.native.tsx
202
+ var ce = {
203
+ outlined: {
204
+ backgroundColor: t.white,
205
+ borderWidth: 1,
206
+ borderColor: t.neutral["800-A08"]
207
+ },
208
+ tinted: { backgroundColor: t.primary["600-A08"] },
209
+ elevated: {
210
+ backgroundColor: t.bg.base,
211
+ shadowColor: t.black,
212
+ shadowOpacity: .24,
213
+ shadowRadius: 16,
214
+ shadowOffset: {
215
+ width: 0,
216
+ height: 0
217
+ },
218
+ elevation: 8
219
+ }
220
+ };
221
+ function le({ variant: e = "outlined", radius: t = 16, padding: n = 16, backgroundColor: r, style: i, children: a }) {
222
+ return /* @__PURE__ */ C(x, {
223
+ style: [
224
+ ue.base,
225
+ ce[e],
226
+ {
227
+ borderRadius: t,
228
+ padding: n
229
+ },
230
+ r ? { backgroundColor: r } : void 0,
231
+ i
232
+ ],
233
+ children: a
234
+ });
235
+ }
236
+ var ue = y.create({ base: { width: "100%" } });
237
+ //#endregion
238
+ //#region src/components/Divider/Divider.native.tsx
239
+ function de({ style: e, ...t }) {
240
+ return /* @__PURE__ */ C(x, {
241
+ style: [fe.divider, e],
242
+ ...t
243
+ });
244
+ }
245
+ var fe = y.create({ divider: {
246
+ height: 1,
247
+ width: "100%",
248
+ backgroundColor: t.border.default,
249
+ marginVertical: 12
250
+ } });
251
+ //#endregion
252
+ //#region src/components/EmptyState/EmptyState.native.tsx
253
+ function pe({ icon: e, title: n, description: r, actionLabel: i, onAction: a }) {
254
+ return /* @__PURE__ */ w(x, {
255
+ style: M.container,
256
+ children: [
257
+ e,
258
+ /* @__PURE__ */ C(k, {
259
+ variant: "title",
260
+ style: M.title,
261
+ children: n
262
+ }),
263
+ r && /* @__PURE__ */ C(k, {
264
+ variant: "body",
265
+ color: t.fg.secondary,
266
+ style: M.description,
267
+ children: r
268
+ }),
269
+ i && a && /* @__PURE__ */ C(x, {
270
+ style: M.action,
271
+ children: /* @__PURE__ */ C(se, {
272
+ variant: "secondary",
273
+ onPress: a,
274
+ children: i
275
+ })
276
+ })
277
+ ]
278
+ });
279
+ }
280
+ var M = y.create({
281
+ container: {
282
+ alignItems: "center",
283
+ justifyContent: "center",
284
+ padding: 24
285
+ },
286
+ title: {
287
+ marginTop: 12,
288
+ textAlign: "center"
289
+ },
290
+ description: {
291
+ marginTop: 4,
292
+ textAlign: "center"
293
+ },
294
+ action: { marginTop: 16 }
295
+ }), me = {
151
296
  sm: 32,
152
297
  md: 40,
153
298
  lg: 48
154
- }, M = {
155
- base: { backgroundColor: r.sf.base },
156
- primary: { backgroundColor: r.primary["600-A08"] },
299
+ }, he = {
300
+ base: { backgroundColor: t.sf.base },
301
+ primary: { backgroundColor: t.primary["600-A08"] },
157
302
  outline: {
158
303
  borderWidth: 1,
159
- borderColor: r.sf.base
304
+ borderColor: t.sf.base
160
305
  }
161
- }, N = {
162
- base: { backgroundColor: r.neutral["800-A08"] },
163
- primary: { backgroundColor: r.primary[50] },
164
- outline: { backgroundColor: r.sf.tertiaryHover }
306
+ }, ge = {
307
+ base: { backgroundColor: t.neutral["800-A08"] },
308
+ primary: { backgroundColor: t.primary[50] },
309
+ outline: { backgroundColor: t.sf.tertiaryHover }
165
310
  };
166
- function P({ children: e, size: t = "md", variant: n = "base", disabled: r = !1, hitSlop: i = 10, ...a }) {
167
- let o = j[t], s = {
311
+ function N({ children: e, size: t = "md", variant: n = "base", disabled: r = !1, hitSlop: i = 10, ...a }) {
312
+ let o = me[t], s = {
168
313
  width: o,
169
314
  height: o,
170
315
  borderRadius: o / 2,
171
316
  alignItems: "center",
172
317
  justifyContent: "center"
173
318
  };
174
- return /* @__PURE__ */ T(m, {
319
+ return /* @__PURE__ */ C(_, {
175
320
  accessibilityRole: "button",
176
321
  ...a,
177
322
  style: ({ pressed: e }) => [
178
323
  s,
179
- M[n],
180
- e && N[n],
324
+ he[n],
325
+ e && ge[n],
181
326
  r && { opacity: .4 }
182
327
  ],
183
328
  disabled: r,
@@ -187,182 +332,457 @@ function P({ children: e, size: t = "md", variant: n = "base", disabled: r = !1,
187
332
  }
188
333
  //#endregion
189
334
  //#region src/components/Input/Input.native.tsx
190
- var F = g.create({
191
- container: { marginBottom: 8 },
192
- fieldContainer: {
193
- height: 49,
194
- paddingHorizontal: 12,
335
+ function _e({ label: e, value: n = "", onChange: r, onFocus: i, onBlur: a, error: o, helperText: s, placeholder: c, secureTextEntry: l = !1, keyboardType: u, autoCapitalize: d, autoComplete: f, autoCorrect: p, textContentType: m, editable: h = !0, multiline: g = !1, numberOfLines: _, currency: v = !1, prefix: y }) {
336
+ return /* @__PURE__ */ w(x, {
337
+ style: P.container,
338
+ children: [/* @__PURE__ */ C(O, {
339
+ label: e,
340
+ value: n,
341
+ onChangeText: r,
342
+ onFocus: i,
343
+ onBlur: a,
344
+ error: !!o,
345
+ editable: h,
346
+ mode: "outlined",
347
+ placeholder: c,
348
+ keyboardType: u ?? (v ? "numeric" : "default"),
349
+ secureTextEntry: l,
350
+ autoCapitalize: d,
351
+ autoComplete: f,
352
+ autoCorrect: p,
353
+ textContentType: m,
354
+ multiline: g,
355
+ numberOfLines: _,
356
+ left: v ? /* @__PURE__ */ C(O.Affix, { text: "€" }) : y ? /* @__PURE__ */ C(O.Affix, { text: y }) : void 0,
357
+ style: [P.input, g && P.inputMultiline],
358
+ outlineStyle: [P.outline, o && P.outlineError],
359
+ theme: { colors: {
360
+ primary: t.fg.base,
361
+ error: t.fg.accent.error,
362
+ onSurfaceVariant: t.fg.tertiary,
363
+ onSurface: t.primary[900]
364
+ } },
365
+ contentStyle: P.content,
366
+ textColor: t.primary[900]
367
+ }), (o || s) && /* @__PURE__ */ C(te, {
368
+ type: o ? "error" : "info",
369
+ visible: !!(o || s),
370
+ style: P.helperText,
371
+ children: o || s
372
+ })]
373
+ });
374
+ }
375
+ var P = y.create({
376
+ container: { width: "100%" },
377
+ input: {
378
+ backgroundColor: t.bg.secondary,
379
+ fontSize: 15,
380
+ minHeight: 49
381
+ },
382
+ inputMultiline: { textAlignVertical: "top" },
383
+ outline: {
195
384
  borderRadius: 12,
385
+ borderWidth: 2,
386
+ borderColor: t.bg.tertiary
387
+ },
388
+ outlineError: { borderColor: t.fg.accent.error },
389
+ content: { fontFamily: i.body.fontFamily },
390
+ helperText: {
391
+ fontFamily: i.body.fontFamily,
392
+ fontSize: 12
393
+ }
394
+ }), ve = 96 / 25.4, ye = 96 / 72, F = (e, t) => e * ve * t, I = (e, t) => e * ye * t, L = i.body.fontFamily, R = (e) => (e ?? "").replace(/<br\s*\/?>/gi, "\n").replace(/<[^>]+>/g, ""), be = c(1);
395
+ function z(e) {
396
+ let t = l(be);
397
+ return e ?? t;
398
+ }
399
+ function xe({ children: e }) {
400
+ return /* @__PURE__ */ C(S, { children: e || "Date" });
401
+ }
402
+ function Se({ children: e }) {
403
+ return /* @__PURE__ */ C(S, { children: e || "Sehr geehrte Damen und Herren" });
404
+ }
405
+ function Ce({ children: e }) {
406
+ return /* @__PURE__ */ C(S, { children: e || "Mit freundlichen Grüßen" });
407
+ }
408
+ function we({ address: e, children: n, scale: r }) {
409
+ let i = z(r);
410
+ return !n && !e ? null : /* @__PURE__ */ C(b, {
411
+ style: {
412
+ position: "absolute",
413
+ top: F(45, i),
414
+ left: F(15, i),
415
+ width: F(100, i),
416
+ height: F(8, i),
417
+ fontFamily: L,
418
+ fontSize: I(9, i),
419
+ lineHeight: I(9 * 1.22, i),
420
+ color: t.black
421
+ },
422
+ children: n || R(e)
423
+ });
424
+ }
425
+ function Te({ address: e, children: n, scale: r }) {
426
+ let i = z(r);
427
+ return /* @__PURE__ */ C(b, {
428
+ style: {
429
+ position: "absolute",
430
+ top: F(72, i),
431
+ left: F(15, i),
432
+ width: F(85, i),
433
+ height: F(32, i),
434
+ fontFamily: L,
435
+ fontSize: I(9, i),
436
+ lineHeight: I(9 * 1.22, i),
437
+ color: t.black
438
+ },
439
+ children: n || R(e)
440
+ });
441
+ }
442
+ function Ee({ address: e, children: n, scale: r }) {
443
+ let i = z(r);
444
+ return /* @__PURE__ */ C(b, {
445
+ style: {
446
+ position: "absolute",
447
+ top: F(20, i),
448
+ left: F(105, i),
449
+ width: F(90, i),
450
+ textAlign: "right",
451
+ fontFamily: L,
452
+ fontSize: I(10, i),
453
+ lineHeight: I(10 * 1.22, i),
454
+ color: t.black
455
+ },
456
+ children: n || R(e)
457
+ });
458
+ }
459
+ var De = [
460
+ 195.7333333333,
461
+ 185.149999999,
462
+ 174.566666665,
463
+ 163.983333331
464
+ ];
465
+ function Oe({ identificationFields: e = [], children: n, scale: r }) {
466
+ let i = z(r);
467
+ return !n && e.length === 0 ? null : n ? /* @__PURE__ */ C(S, { children: n }) : /* @__PURE__ */ C(S, { children: e.slice(0, De.length).map((e, n) => /* @__PURE__ */ C(x, {
468
+ style: {
469
+ position: "absolute",
470
+ right: F(15, i),
471
+ width: F(95.25, i),
472
+ height: F(42.9166666667, i),
473
+ bottom: F(De[n], i)
474
+ },
475
+ children: /* @__PURE__ */ w(b, {
476
+ style: {
477
+ textAlign: "right",
478
+ fontFamily: L,
479
+ fontSize: I(10, i),
480
+ lineHeight: I(10 * 1.22, i),
481
+ color: t.black
482
+ },
483
+ children: [
484
+ e.label,
485
+ "\n",
486
+ /* @__PURE__ */ C(b, {
487
+ style: { fontWeight: "bold" },
488
+ children: e.value
489
+ })
490
+ ]
491
+ })
492
+ }, n)) });
493
+ }
494
+ function ke({ date: e, children: n, scale: r }) {
495
+ let i = z(r);
496
+ return !n && !e ? null : /* @__PURE__ */ C(b, {
497
+ style: {
498
+ position: "absolute",
499
+ right: F(15, i),
500
+ width: F(95.25, i),
501
+ height: F(42.9166666667, i),
502
+ bottom: F(153.872222, i),
503
+ textAlign: "right",
504
+ fontFamily: L,
505
+ fontSize: I(10, i),
506
+ lineHeight: I(10 * 1.22, i),
507
+ color: t.black
508
+ },
509
+ children: n || /* @__PURE__ */ w(S, { children: [
510
+ /* @__PURE__ */ C(xe, {}),
511
+ ": ",
512
+ e
513
+ ] })
514
+ });
515
+ }
516
+ function Ae({ letterSubject: e, letterText: n, userFullName: r, children: i, scale: a }) {
517
+ let o = z(a);
518
+ return /* @__PURE__ */ C(x, {
519
+ style: {
520
+ position: "absolute",
521
+ top: F(105, o),
522
+ left: F(15, o),
523
+ width: F(175, o)
524
+ },
525
+ children: i || /* @__PURE__ */ w(S, { children: [
526
+ /* @__PURE__ */ C(b, {
527
+ style: {
528
+ fontFamily: L,
529
+ fontSize: I(10, o),
530
+ fontWeight: "700",
531
+ color: t.black
532
+ },
533
+ children: e
534
+ }),
535
+ /* @__PURE__ */ w(b, {
536
+ style: {
537
+ marginVertical: F(5.2916666667, o),
538
+ fontFamily: L,
539
+ fontSize: I(10, o),
540
+ color: t.black
541
+ },
542
+ children: [/* @__PURE__ */ C(Se, {}), ","]
543
+ }),
544
+ /* @__PURE__ */ C(b, {
545
+ style: {
546
+ fontFamily: L,
547
+ fontSize: I(10, o),
548
+ lineHeight: I(13, o),
549
+ color: t.black
550
+ },
551
+ children: R(n)
552
+ }),
553
+ /* @__PURE__ */ C(b, {
554
+ style: {
555
+ marginVertical: F(5.2916666667, o),
556
+ fontFamily: L,
557
+ fontSize: I(10, o),
558
+ color: t.black
559
+ },
560
+ children: /* @__PURE__ */ C(Ce, {})
561
+ }),
562
+ /* @__PURE__ */ C(b, {
563
+ style: {
564
+ marginVertical: F(5.2916666667, o),
565
+ fontFamily: L,
566
+ fontSize: I(10, o),
567
+ color: t.black
568
+ },
569
+ children: r
570
+ })
571
+ ] })
572
+ });
573
+ }
574
+ function je({ senderAddressSlim: e, vendorAddress: n, senderAddress: r, identificationFields: i = [], date: a, letterSubject: o, letterText: s, userFullName: c, scale: l = 1, children: u }) {
575
+ return /* @__PURE__ */ C(be.Provider, {
576
+ value: l,
577
+ children: /* @__PURE__ */ C(x, {
578
+ style: {
579
+ width: F(210, l),
580
+ height: F(297, l),
581
+ backgroundColor: t.white
582
+ },
583
+ children: u || /* @__PURE__ */ w(S, { children: [
584
+ /* @__PURE__ */ C(we, { address: e }),
585
+ /* @__PURE__ */ C(Te, { address: n }),
586
+ /* @__PURE__ */ C(Ee, { address: r }),
587
+ /* @__PURE__ */ C(Oe, { identificationFields: i }),
588
+ /* @__PURE__ */ C(ke, { date: a }),
589
+ /* @__PURE__ */ C(Ae, {
590
+ letterSubject: o,
591
+ letterText: s,
592
+ userFullName: c
593
+ })
594
+ ] })
595
+ })
596
+ });
597
+ }
598
+ //#endregion
599
+ //#region src/components/MenuItem/MenuItem.native.tsx
600
+ function Me({ label: e, onPress: n, icon: r, destructive: i = !1, loading: a = !1, disabled: o = !1 }) {
601
+ let s = i ? t.fg.accent.error : t.fg.accent.action;
602
+ return /* @__PURE__ */ w(_, {
603
+ accessibilityRole: "menuitem",
604
+ accessibilityState: { disabled: o || a },
605
+ onPress: n,
606
+ disabled: o || a,
607
+ style: [B.row, (o || a) && B.disabled],
608
+ children: [
609
+ r,
610
+ /* @__PURE__ */ C(k, {
611
+ variant: "label",
612
+ color: s,
613
+ style: B.label,
614
+ children: e
615
+ }),
616
+ a && /* @__PURE__ */ C(j, {
617
+ size: 18,
618
+ color: s
619
+ })
620
+ ]
621
+ });
622
+ }
623
+ var B = y.create({
624
+ row: {
196
625
  flexDirection: "row",
197
626
  alignItems: "center",
198
- backgroundColor: r.bg.secondary,
199
- borderWidth: 2,
200
- borderColor: r.bg.tertiary
201
- },
202
- fieldContainerError: { borderColor: r.fg.accent.error },
203
- fieldContainerFocused: { borderColor: r.fg.base },
204
- fieldContainerFocusedError: { borderColor: r.fg.accent.error },
205
- formGroup: {
206
- position: "relative",
207
- paddingVertical: 14,
208
- width: "100%",
209
- height: "100%",
210
- justifyContent: "center"
627
+ gap: 8,
628
+ paddingVertical: 12,
629
+ paddingHorizontal: 16
211
630
  },
212
- input: {
631
+ label: { flex: 1 },
632
+ disabled: { opacity: .4 }
633
+ });
634
+ //#endregion
635
+ //#region src/components/RadioCard/RadioCard.native.tsx
636
+ function Ne({ selected: e, onSelect: n, icon: r, title: i, description: o, trailing: s, disabled: c = !1 }) {
637
+ return /* @__PURE__ */ w(_, {
638
+ accessibilityRole: "radio",
639
+ accessibilityState: {
640
+ checked: e,
641
+ disabled: c
642
+ },
643
+ onPress: n,
644
+ disabled: c,
645
+ style: [
646
+ V.card,
647
+ e && V.cardSelected,
648
+ c && V.cardDisabled
649
+ ],
650
+ children: [/* @__PURE__ */ C(x, {
651
+ style: [V.indicator, e && V.indicatorSelected],
652
+ children: e && /* @__PURE__ */ C(a, {
653
+ size: "small",
654
+ color: t.white
655
+ })
656
+ }), /* @__PURE__ */ w(x, {
657
+ style: V.content,
658
+ children: [/* @__PURE__ */ w(x, {
659
+ style: V.titleRow,
660
+ children: [
661
+ r,
662
+ /* @__PURE__ */ C(k, {
663
+ variant: "label",
664
+ style: V.title,
665
+ children: i
666
+ }),
667
+ s
668
+ ]
669
+ }), o && /* @__PURE__ */ C(k, {
670
+ variant: "body",
671
+ color: t.fg.secondary,
672
+ children: o
673
+ })]
674
+ })]
675
+ });
676
+ }
677
+ var V = y.create({
678
+ card: {
679
+ minHeight: 110,
213
680
  width: "100%",
214
- paddingTop: 4,
215
- backgroundColor: "transparent",
216
- fontFamily: t.body.fontFamily,
217
- fontSize: 15,
218
- fontWeight: "500",
219
- color: r.primary[900],
220
- paddingBottom: 0
681
+ flexDirection: "row",
682
+ alignItems: "center",
683
+ gap: 12,
684
+ borderRadius: 20,
685
+ borderWidth: 1,
686
+ borderColor: t.neutral["800-A08"],
687
+ backgroundColor: t.white,
688
+ padding: 16
221
689
  },
222
- label: {
223
- position: "absolute",
224
- left: 0,
225
- fontFamily: t.body.fontFamily,
226
- fontSize: 15,
227
- fontWeight: "500",
228
- color: r.fg.tertiary
690
+ cardSelected: {
691
+ borderWidth: 2,
692
+ borderColor: t.border.action,
693
+ backgroundColor: t.primary["600-A08"]
229
694
  },
230
- currencyPrefix: {
231
- fontFamily: t.body.fontFamily,
232
- fontSize: 15,
233
- fontWeight: "400",
234
- color: r.fg.secondary,
235
- marginRight: 4,
236
- alignSelf: "center"
695
+ cardDisabled: { opacity: .4 },
696
+ indicator: {
697
+ width: 20,
698
+ height: 20,
699
+ borderRadius: 10,
700
+ borderWidth: 2,
701
+ borderColor: t.neutral["800-A16"],
702
+ alignItems: "center",
703
+ justifyContent: "center"
237
704
  },
238
- labelFloating: {
239
- top: 2,
240
- fontSize: 12,
241
- color: r.fg.secondary
705
+ indicatorSelected: {
706
+ borderWidth: 0,
707
+ backgroundColor: t.border.action
242
708
  },
243
- labelNormal: {
244
- top: "50%",
245
- transform: [{ translateY: -7.5 }]
709
+ content: {
710
+ flex: 1,
711
+ gap: 4
246
712
  },
247
- helper: {
248
- marginTop: 4,
249
- fontSize: 12,
250
- paddingHorizontal: 4
713
+ titleRow: {
714
+ flexDirection: "row",
715
+ alignItems: "center",
716
+ gap: 8
251
717
  },
252
- helperError: { color: r.fg.accent.error },
253
- helperNormal: { color: r.fg.secondary }
718
+ title: { flex: 1 }
254
719
  });
255
- function I({ label: e, value: t = "", onChange: n, error: i, helperText: a, placeholder: o, secureTextEntry: s = !1, keyboardType: l, autoCapitalize: u = "sentences", editable: d = !0, multiline: f = !1, numberOfLines: p = 1, currency: m = !1, ...h }) {
256
- let [y, x] = c(!1), S = t.length > 0, C = y || S || m, w = [
257
- F.fieldContainer,
258
- i && F.fieldContainerError,
259
- y && !i && F.fieldContainerFocused,
260
- y && i && F.fieldContainerFocusedError
261
- ], D = [F.label, C ? F.labelFloating : F.labelNormal], O = g.flatten([F.input, f && {
262
- height: p * 20,
263
- textAlignVertical: "top"
264
- }]);
265
- return /* @__PURE__ */ E(b, {
266
- style: F.container,
267
- children: [/* @__PURE__ */ E(b, {
268
- style: w,
269
- children: [m && /* @__PURE__ */ T(_, {
270
- style: F.currencyPrefix,
271
- children: "€"
272
- }), /* @__PURE__ */ E(b, {
273
- style: F.formGroup,
274
- children: [/* @__PURE__ */ T(v, {
275
- style: O,
276
- value: t,
277
- onChangeText: n,
278
- onFocus: () => x(!0),
279
- onBlur: () => x(!1),
280
- placeholder: C ? o : "",
281
- placeholderTextColor: r.fg.tertiary,
282
- secureTextEntry: s,
283
- keyboardType: l ?? (m ? "numeric" : "default"),
284
- autoCapitalize: u,
285
- editable: d,
286
- multiline: f,
287
- numberOfLines: p,
288
- ...h
289
- }), /* @__PURE__ */ T(_, {
290
- style: D,
291
- children: e
292
- })]
293
- })]
294
- }), (i || a) && /* @__PURE__ */ T(_, {
295
- style: [F.helper, i ? F.helperError : F.helperNormal],
296
- children: i || a
297
- })]
298
- });
299
- }
300
720
  //#endregion
301
721
  //#region src/components/Select/Select.native.tsx
302
- function L({ label: e, value: t, onChange: i, options: a, error: s, disabled: l = !1 }) {
303
- let [u, d] = c(!1);
304
- o(() => {
305
- a.length === 1 && !t && i(a[0].value);
306
- }, [a, t]);
307
- let p = a.find((e) => e.value === t), g = s ? r.fg.accent.error : u ? r.fg.base : r.bg.tertiary;
308
- return /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ E(b, {
309
- style: R.container,
310
- children: [/* @__PURE__ */ E(m, {
722
+ function Pe({ label: e, value: r, onChange: i, options: a, error: o, disabled: s = !1 }) {
723
+ let [c, l] = f(!1);
724
+ u(() => {
725
+ a.length === 1 && !r && i(a[0].value);
726
+ }, [a, r]);
727
+ let d = a.find((e) => e.value === r), p = o ? t.fg.accent.error : c ? t.fg.base : t.bg.tertiary;
728
+ return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w(x, {
729
+ style: H.container,
730
+ children: [/* @__PURE__ */ w(_, {
311
731
  style: [
312
- R.trigger,
313
- { borderColor: g },
314
- l && R.triggerDisabled
732
+ H.trigger,
733
+ { borderColor: p },
734
+ s && H.triggerDisabled
315
735
  ],
316
- onPress: () => d(!0),
317
- disabled: l,
736
+ onPress: () => l(!0),
737
+ disabled: s,
318
738
  accessibilityRole: "combobox",
319
739
  accessibilityLabel: e,
320
740
  accessibilityState: {
321
- expanded: u,
322
- disabled: l
741
+ expanded: c,
742
+ disabled: s
323
743
  },
324
- children: [/* @__PURE__ */ E(b, {
325
- style: R.triggerContent,
326
- children: [/* @__PURE__ */ T(_, {
327
- style: [R.labelText, p && R.labelFloating],
744
+ children: [/* @__PURE__ */ w(x, {
745
+ style: H.triggerContent,
746
+ children: [/* @__PURE__ */ C(b, {
747
+ style: [H.labelText, d && H.labelFloating],
328
748
  children: e
329
- }), p && /* @__PURE__ */ T(_, {
330
- style: R.valueText,
749
+ }), d && /* @__PURE__ */ C(b, {
750
+ style: H.valueText,
331
751
  numberOfLines: 1,
332
- children: p.text
752
+ children: d.text
333
753
  })]
334
- }), /* @__PURE__ */ T(n, {
754
+ }), /* @__PURE__ */ C(n, {
335
755
  direction: "down",
336
- color: r.fg.secondary,
756
+ color: t.fg.secondary,
337
757
  size: "small"
338
758
  })]
339
- }), s && /* @__PURE__ */ T(_, {
340
- style: R.errorText,
341
- children: s
759
+ }), o && /* @__PURE__ */ C(b, {
760
+ style: H.errorText,
761
+ children: o
342
762
  })]
343
- }), /* @__PURE__ */ T(f, {
344
- visible: u,
763
+ }), /* @__PURE__ */ C(h, {
764
+ visible: c,
345
765
  transparent: !0,
346
766
  animationType: "fade",
347
- onRequestClose: () => d(!1),
348
- children: /* @__PURE__ */ T(m, {
349
- style: R.backdrop,
350
- onPress: () => d(!1),
351
- children: /* @__PURE__ */ E(b, {
352
- style: R.sheet,
353
- children: [/* @__PURE__ */ T(b, { style: R.sheetHandle }), /* @__PURE__ */ T(h, {
767
+ onRequestClose: () => l(!1),
768
+ children: /* @__PURE__ */ C(_, {
769
+ style: H.backdrop,
770
+ onPress: () => l(!1),
771
+ children: /* @__PURE__ */ w(x, {
772
+ style: H.sheet,
773
+ children: [/* @__PURE__ */ C(x, { style: H.sheetHandle }), /* @__PURE__ */ C(v, {
354
774
  bounces: !1,
355
775
  children: a.map((e) => {
356
- let n = e.value === t;
357
- return /* @__PURE__ */ T(m, {
358
- style: [R.option, n && R.optionActive],
776
+ let t = e.value === r;
777
+ return /* @__PURE__ */ C(_, {
778
+ style: [H.option, t && H.optionActive],
359
779
  onPress: () => {
360
- i(e.value), d(!1);
780
+ i(e.value), l(!1);
361
781
  },
362
782
  accessibilityRole: "menuitem",
363
- accessibilityState: { selected: n },
364
- children: /* @__PURE__ */ T(_, {
365
- style: [R.optionText, n && R.optionTextActive],
783
+ accessibilityState: { selected: t },
784
+ children: /* @__PURE__ */ C(b, {
785
+ style: [H.optionText, t && H.optionTextActive],
366
786
  children: e.text
367
787
  })
368
788
  }, e.value);
@@ -372,7 +792,7 @@ function L({ label: e, value: t, onChange: i, options: a, error: s, disabled: l
372
792
  })
373
793
  })] });
374
794
  }
375
- var R = g.create({
795
+ var H = y.create({
376
796
  container: { marginBottom: 8 },
377
797
  trigger: {
378
798
  height: 50,
@@ -380,7 +800,7 @@ var R = g.create({
380
800
  borderRadius: 12,
381
801
  flexDirection: "row",
382
802
  alignItems: "center",
383
- backgroundColor: r.bg.secondary,
803
+ backgroundColor: t.bg.secondary,
384
804
  borderWidth: 2
385
805
  },
386
806
  triggerDisabled: { opacity: .4 },
@@ -389,27 +809,27 @@ var R = g.create({
389
809
  justifyContent: "center"
390
810
  },
391
811
  labelText: {
392
- fontFamily: t.body.fontFamily,
812
+ fontFamily: i.body.fontFamily,
393
813
  fontSize: 15,
394
- color: r.fg.tertiary
814
+ color: t.fg.tertiary
395
815
  },
396
816
  labelFloating: {
397
817
  fontSize: 12,
398
- color: r.fg.secondary,
818
+ color: t.fg.secondary,
399
819
  marginBottom: 2
400
820
  },
401
821
  valueText: {
402
- fontFamily: t.body.fontFamily,
822
+ fontFamily: i.body.fontFamily,
403
823
  fontSize: 15,
404
824
  fontWeight: "500",
405
- color: r.primary[900]
825
+ color: t.primary[900]
406
826
  },
407
827
  errorText: {
408
828
  marginTop: 4,
409
829
  fontSize: 12,
410
830
  paddingHorizontal: 4,
411
- color: r.fg.accent.error,
412
- fontFamily: t.body.fontFamily
831
+ color: t.fg.accent.error,
832
+ fontFamily: i.body.fontFamily
413
833
  },
414
834
  backdrop: {
415
835
  flex: 1,
@@ -417,7 +837,7 @@ var R = g.create({
417
837
  justifyContent: "flex-end"
418
838
  },
419
839
  sheet: {
420
- backgroundColor: r.bg.base,
840
+ backgroundColor: t.bg.base,
421
841
  borderTopLeftRadius: 16,
422
842
  borderTopRightRadius: 16,
423
843
  paddingBottom: 32,
@@ -427,7 +847,7 @@ var R = g.create({
427
847
  width: 36,
428
848
  height: 4,
429
849
  borderRadius: 2,
430
- backgroundColor: r.border.default,
850
+ backgroundColor: t.border.default,
431
851
  alignSelf: "center",
432
852
  marginTop: 8,
433
853
  marginBottom: 8
@@ -436,106 +856,109 @@ var R = g.create({
436
856
  paddingVertical: 16,
437
857
  paddingHorizontal: 20,
438
858
  borderBottomWidth: 1,
439
- borderBottomColor: r.border.default
859
+ borderBottomColor: t.border.default
440
860
  },
441
- optionActive: { backgroundColor: r.primary[50] },
861
+ optionActive: { backgroundColor: t.primary[50] },
442
862
  optionText: {
443
- fontFamily: t.body.fontFamily,
863
+ fontFamily: i.body.fontFamily,
444
864
  fontSize: 15,
445
- color: r.fg.base
865
+ color: t.fg.base
446
866
  },
447
867
  optionTextActive: {
448
- color: r.primary[900],
868
+ color: t.primary[900],
449
869
  fontWeight: "500"
450
870
  }
451
- }), z = {
452
- heading: 20,
453
- title: 16,
454
- label: 13,
455
- body: 15,
456
- caption: 12
457
- };
458
- function B({ variant: e = "body", color: n, style: r, ...i }) {
459
- return /* @__PURE__ */ T(_, {
460
- style: [
461
- t[e],
462
- { fontSize: z[e] },
463
- n ? { color: n } : void 0,
464
- r
465
- ],
466
- ...i
467
- });
468
- }
871
+ });
469
872
  //#endregion
470
873
  //#region src/components/Sheet/Sheet.native.tsx
471
- function V({ open: t, onClose: i, onGoBack: a, title: o, children: s, footer: c }) {
472
- let l = D();
473
- return /* @__PURE__ */ T(f, {
474
- visible: t,
874
+ function Fe({ open: r, onClose: i, onDismiss: a, onGoBack: o, title: s, children: c, footer: l, background: f, headerBackgroundColor: p, closeDisabled: m }) {
875
+ let _ = re(), b = d(r);
876
+ return u(() => {
877
+ let e = b.current;
878
+ if (b.current = r, g.OS === "android" && e && !r) {
879
+ let e = setTimeout(() => a?.(), 300);
880
+ return () => clearTimeout(e);
881
+ }
882
+ }, [r, a]), /* @__PURE__ */ C(h, {
883
+ visible: r,
475
884
  animationType: "slide",
476
885
  presentationStyle: "pageSheet",
477
- onRequestClose: i,
478
- children: /* @__PURE__ */ T(d, {
479
- style: H.flex,
480
- behavior: p.OS === "ios" ? "padding" : void 0,
481
- children: /* @__PURE__ */ E(b, {
482
- style: [H.container, { paddingTop: Math.max(l.top, 16) }],
886
+ onRequestClose: () => {
887
+ m || i();
888
+ },
889
+ onDismiss: g.OS === "ios" ? a : void 0,
890
+ children: /* @__PURE__ */ C(ne, {
891
+ style: U.flex,
892
+ behavior: "padding",
893
+ automaticOffset: !0,
894
+ children: /* @__PURE__ */ w(x, {
895
+ style: [U.container, {
896
+ paddingTop: Math.max(_.top, 16),
897
+ paddingBottom: _.bottom
898
+ }],
483
899
  children: [
484
- /* @__PURE__ */ E(b, {
485
- style: H.header,
900
+ f && /* @__PURE__ */ C(x, {
901
+ style: y.absoluteFillObject,
902
+ children: f
903
+ }),
904
+ /* @__PURE__ */ w(x, {
905
+ style: [U.header, p ? { backgroundColor: p } : void 0],
486
906
  children: [
487
- /* @__PURE__ */ T(b, {
488
- style: H.headerSide,
489
- children: a && /* @__PURE__ */ T(P, {
907
+ /* @__PURE__ */ C(x, {
908
+ style: U.headerSide,
909
+ children: o && /* @__PURE__ */ C(N, {
490
910
  variant: "base",
491
911
  size: "md",
492
912
  accessibilityLabel: "Go back",
493
- onPress: a,
494
- children: /* @__PURE__ */ T(n, {
495
- color: r.fg.secondary,
913
+ onPress: o,
914
+ children: /* @__PURE__ */ C(n, {
915
+ color: t.fg.secondary,
496
916
  direction: "left"
497
917
  })
498
918
  })
499
919
  }),
500
- o ? /* @__PURE__ */ T(B, {
920
+ s ? /* @__PURE__ */ C(k, {
501
921
  variant: "heading",
502
- style: H.headerTitle,
503
- children: o
504
- }) : /* @__PURE__ */ T(b, { style: H.flex }),
505
- /* @__PURE__ */ T(b, {
506
- style: [H.headerSide, H.headerSideRight],
507
- children: /* @__PURE__ */ T(P, {
922
+ style: U.headerTitle,
923
+ children: s
924
+ }) : /* @__PURE__ */ C(x, { style: U.flex }),
925
+ /* @__PURE__ */ C(x, {
926
+ style: [U.headerSide, U.headerSideRight],
927
+ children: /* @__PURE__ */ C(N, {
508
928
  variant: "base",
509
929
  size: "md",
510
930
  accessibilityLabel: "Close",
511
931
  onPress: i,
512
- children: /* @__PURE__ */ T(e, {
513
- color: r.fg.secondary,
932
+ disabled: m,
933
+ children: /* @__PURE__ */ C(e, {
934
+ color: t.fg.secondary,
514
935
  size: "small"
515
936
  })
516
937
  })
517
938
  })
518
939
  ]
519
940
  }),
520
- /* @__PURE__ */ T(h, {
521
- style: H.flex,
522
- contentContainerStyle: H.body,
523
- children: s
524
- }),
525
- c && /* @__PURE__ */ T(b, {
526
- style: H.footer,
941
+ /* @__PURE__ */ C(v, {
942
+ style: U.flex,
943
+ contentContainerStyle: U.body,
944
+ keyboardDismissMode: "on-drag",
945
+ keyboardShouldPersistTaps: "handled",
527
946
  children: c
947
+ }),
948
+ l && /* @__PURE__ */ C(x, {
949
+ style: U.footer,
950
+ children: l
528
951
  })
529
952
  ]
530
953
  })
531
954
  })
532
955
  });
533
956
  }
534
- var H = g.create({
957
+ var U = y.create({
535
958
  flex: { flex: 1 },
536
959
  container: {
537
960
  flex: 1,
538
- backgroundColor: r.bg.base
961
+ backgroundColor: t.bg.base
539
962
  },
540
963
  header: {
541
964
  flexDirection: "row",
@@ -551,6 +974,7 @@ var H = g.create({
551
974
  textAlign: "center"
552
975
  },
553
976
  body: {
977
+ flexGrow: 1,
554
978
  paddingHorizontal: 20,
555
979
  paddingBottom: 20
556
980
  },
@@ -558,35 +982,137 @@ var H = g.create({
558
982
  paddingHorizontal: 20,
559
983
  paddingVertical: 24,
560
984
  borderTopWidth: 1,
561
- borderTopColor: r.border.default
985
+ borderTopColor: t.border.default
562
986
  }
563
- }), U = () => {
564
- let [e, t] = c(window.innerWidth <= 768), n = s(window.innerWidth);
565
- return o(() => {
566
- let e = () => {
567
- let e = window.innerWidth;
568
- e <= 768 && n.current > 768 ? t(!0) : e > 768 && n.current <= 768 && t(!1), n.current = e;
569
- };
570
- return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
571
- }, []), e;
572
- }, W = 1, G = 1e6, K = 0;
573
- function q() {
574
- return K = (K + 1) % (2 ** 53 - 1), K.toString();
987
+ }), W = 24, G = 8, K = 12, Ie = 2 * Math.PI * G, Le = p.createAnimatedComponent(T);
988
+ function Re() {
989
+ return /* @__PURE__ */ C(D, {
990
+ width: W,
991
+ height: W,
992
+ viewBox: "0 0 24 24",
993
+ fill: "none",
994
+ children: /* @__PURE__ */ C(T, {
995
+ cx: K,
996
+ cy: K,
997
+ r: G,
998
+ stroke: t.neutral["800-A16"],
999
+ strokeWidth: 3,
1000
+ fill: "none"
1001
+ })
1002
+ });
1003
+ }
1004
+ function ze({ durationMs: e = 1500 }) {
1005
+ let n = d(new p.Value(0)).current;
1006
+ u(() => {
1007
+ n.setValue(0);
1008
+ let t = p.timing(n, {
1009
+ toValue: 1,
1010
+ duration: e,
1011
+ useNativeDriver: !1
1012
+ });
1013
+ return t.start(), () => t.stop();
1014
+ }, [n, e]);
1015
+ let r = n.interpolate({
1016
+ inputRange: [0, 1],
1017
+ outputRange: [Ie, 0]
1018
+ });
1019
+ return /* @__PURE__ */ w(D, {
1020
+ width: W,
1021
+ height: W,
1022
+ viewBox: "0 0 24 24",
1023
+ fill: "none",
1024
+ children: [/* @__PURE__ */ C(T, {
1025
+ cx: K,
1026
+ cy: K,
1027
+ r: G,
1028
+ stroke: t.neutral["800-A16"],
1029
+ strokeWidth: 3,
1030
+ fill: "none"
1031
+ }), /* @__PURE__ */ C(Le, {
1032
+ cx: K,
1033
+ cy: K,
1034
+ r: G,
1035
+ stroke: t.fg.accent.action,
1036
+ strokeWidth: 3,
1037
+ fill: "none",
1038
+ strokeDasharray: Ie,
1039
+ strokeDashoffset: r,
1040
+ strokeLinecap: "round",
1041
+ rotation: "-90",
1042
+ origin: `${K}, ${K}`
1043
+ })]
1044
+ });
1045
+ }
1046
+ function Be({ state: e, mode: n = "determinate", durationMs: i }) {
1047
+ switch (e) {
1048
+ case "pending": return /* @__PURE__ */ C(Re, {});
1049
+ case "loading": return n === "indeterminate" ? /* @__PURE__ */ C(j, {
1050
+ size: W,
1051
+ color: t.fg.accent.action,
1052
+ trackColor: t.neutral["800-A16"],
1053
+ duration: i
1054
+ }) : /* @__PURE__ */ C(ze, { durationMs: i });
1055
+ case "complete": return /* @__PURE__ */ C(a, {
1056
+ size: W,
1057
+ color: t.fg.accent.action
1058
+ });
1059
+ case "error": return /* @__PURE__ */ C(r, {
1060
+ size: W,
1061
+ color: t.fg.accent.error
1062
+ });
1063
+ }
1064
+ }
1065
+ function Ve({ steps: e }) {
1066
+ return /* @__PURE__ */ C(x, {
1067
+ style: q.container,
1068
+ children: e.map((e, n) => /* @__PURE__ */ w(x, {
1069
+ style: q.row,
1070
+ children: [/* @__PURE__ */ C(x, {
1071
+ style: q.iconSlot,
1072
+ children: /* @__PURE__ */ C(Be, {
1073
+ state: e.state,
1074
+ mode: e.mode,
1075
+ durationMs: e.durationMs
1076
+ })
1077
+ }), /* @__PURE__ */ C(k, {
1078
+ variant: "body",
1079
+ color: e.state === "error" ? t.fg.accent.error : void 0,
1080
+ children: e.label
1081
+ })]
1082
+ }, n))
1083
+ });
1084
+ }
1085
+ var q = y.create({
1086
+ container: { gap: 12 },
1087
+ row: {
1088
+ flexDirection: "row",
1089
+ alignItems: "center",
1090
+ gap: 12
1091
+ },
1092
+ iconSlot: {
1093
+ width: W,
1094
+ height: W,
1095
+ alignItems: "center",
1096
+ justifyContent: "center"
1097
+ }
1098
+ }), He = 1, Ue = 1e6, J = 0;
1099
+ function We() {
1100
+ return J = (J + 1) % (2 ** 53 - 1), J.toString();
575
1101
  }
576
- var J = /* @__PURE__ */ new Map(), Y = (e) => {
577
- if (J.has(e)) return;
1102
+ var Y = /* @__PURE__ */ new Map(), Ge = (e) => {
1103
+ if (Y.has(e)) return;
578
1104
  let t = setTimeout(() => {
579
- J.delete(e), $({
1105
+ Y.delete(e), Q({
580
1106
  type: "REMOVE_TOAST",
581
1107
  toastId: e
582
1108
  });
583
- }, G);
584
- J.set(e, t);
585
- }, X = (e, t) => {
1109
+ }, Ue);
1110
+ Y.set(e, t);
1111
+ }, Ke = (e, t) => {
586
1112
  switch (t.type) {
587
1113
  case "ADD_TOAST": return {
588
1114
  ...e,
589
- toasts: [t.toast, ...e.toasts].slice(0, W)
1115
+ toasts: [t.toast, ...e.toasts].slice(0, He)
590
1116
  };
591
1117
  case "UPDATE_TOAST": return {
592
1118
  ...e,
@@ -597,8 +1123,8 @@ var J = /* @__PURE__ */ new Map(), Y = (e) => {
597
1123
  };
598
1124
  case "DISMISS_TOAST": {
599
1125
  let { toastId: n } = t;
600
- return n ? Y(n) : e.toasts.forEach((e) => {
601
- Y(e.id);
1126
+ return n ? Ge(n) : e.toasts.forEach((e) => {
1127
+ Ge(e.id);
602
1128
  }), {
603
1129
  ...e,
604
1130
  toasts: e.toasts.map((e) => e.id === n || n === void 0 ? {
@@ -615,24 +1141,24 @@ var J = /* @__PURE__ */ new Map(), Y = (e) => {
615
1141
  toasts: e.toasts.filter((e) => e.id !== t.toastId)
616
1142
  };
617
1143
  }
618
- }, Z = [], Q = { toasts: [] };
619
- function $(e) {
620
- Q = X(Q, e), Z.forEach((e) => {
621
- e(Q);
1144
+ }, X = [], Z = { toasts: [] };
1145
+ function Q(e) {
1146
+ Z = Ke(Z, e), X.forEach((e) => {
1147
+ e(Z);
622
1148
  });
623
1149
  }
624
- function ee({ ...e }) {
625
- let t = q(), n = (e) => $({
1150
+ function qe({ ...e }) {
1151
+ let t = We(), n = (e) => Q({
626
1152
  type: "UPDATE_TOAST",
627
1153
  toast: {
628
1154
  ...e,
629
1155
  id: t
630
1156
  }
631
- }), r = () => $({
1157
+ }), r = () => Q({
632
1158
  type: "DISMISS_TOAST",
633
1159
  toastId: t
634
1160
  });
635
- return $({
1161
+ return Q({
636
1162
  type: "ADD_TOAST",
637
1163
  toast: {
638
1164
  ...e,
@@ -648,19 +1174,224 @@ function ee({ ...e }) {
648
1174
  update: n
649
1175
  };
650
1176
  }
651
- function te() {
652
- let [e, t] = a.useState(Q);
653
- return a.useEffect(() => (Z.push(t), () => {
654
- let e = Z.indexOf(t);
655
- e > -1 && Z.splice(e, 1);
1177
+ function Je() {
1178
+ let [e, t] = s.useState(Z);
1179
+ return s.useEffect(() => (X.push(t), () => {
1180
+ let e = X.indexOf(t);
1181
+ e > -1 && X.splice(e, 1);
656
1182
  }), [e]), {
657
1183
  ...e,
658
- toast: ee,
659
- dismiss: (e) => $({
1184
+ toast: qe,
1185
+ dismiss: (e) => Q({
660
1186
  type: "DISMISS_TOAST",
661
1187
  toastId: e
662
1188
  })
663
1189
  };
664
1190
  }
665
1191
  //#endregion
666
- export { A as Button, P as IconButton, I as Input, L as Select, V as Sheet, O as Spinner, B as Text, r as colors, i as icons, t as typography, U as useIsMobile, te as useToast };
1192
+ //#region src/icons/toast/Error.native.tsx
1193
+ function Ye() {
1194
+ return /* @__PURE__ */ C(D, {
1195
+ width: "24",
1196
+ height: "24",
1197
+ viewBox: "0 0 24 24",
1198
+ fill: "none",
1199
+ children: /* @__PURE__ */ C(E, {
1200
+ fillRule: "evenodd",
1201
+ clipRule: "evenodd",
1202
+ d: "M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9 7.58579L7.58579 9L10.5858 12L7.58579 15L9 16.4142L12 13.4142L15 16.4142L16.4142 15L13.4142 12L16.4142 9L15 7.58579L12 10.5858L9 7.58579Z",
1203
+ fill: "#FE4C00"
1204
+ })
1205
+ });
1206
+ }
1207
+ //#endregion
1208
+ //#region src/icons/toast/Info.native.tsx
1209
+ function Xe() {
1210
+ return /* @__PURE__ */ C(D, {
1211
+ width: "24",
1212
+ height: "24",
1213
+ viewBox: "0 0 24 24",
1214
+ fill: "none",
1215
+ children: /* @__PURE__ */ C(E, {
1216
+ fillRule: "evenodd",
1217
+ clipRule: "evenodd",
1218
+ d: "M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM10 10H13V17H11V12H10V10ZM11 9V7H13V9H11Z",
1219
+ fill: "#9DA7A2"
1220
+ })
1221
+ });
1222
+ }
1223
+ //#endregion
1224
+ //#region src/icons/toast/Success.native.tsx
1225
+ function Ze() {
1226
+ return /* @__PURE__ */ C(D, {
1227
+ width: "24",
1228
+ height: "24",
1229
+ viewBox: "0 0 24 24",
1230
+ fill: "none",
1231
+ children: /* @__PURE__ */ C(E, {
1232
+ fillRule: "evenodd",
1233
+ clipRule: "evenodd",
1234
+ d: "M12 21.9996C17.5228 21.9996 22 17.5225 22 11.9996C22 6.47679 17.5228 1.99963 12 1.99963C6.47715 1.99963 2 6.47679 2 11.9996C2 17.5225 6.47715 21.9996 12 21.9996ZM10.5744 16.4881L16.4073 9.35888L14.8594 8.09241L10.4259 13.5112L8.50015 11.5854L7.08594 12.9996L10.5744 16.4881Z",
1235
+ fill: "#3B872C"
1236
+ })
1237
+ });
1238
+ }
1239
+ //#endregion
1240
+ //#region src/icons/toast/Warning.native.tsx
1241
+ function Qe() {
1242
+ return /* @__PURE__ */ C(D, {
1243
+ width: "24",
1244
+ height: "24",
1245
+ viewBox: "0 0 24 24",
1246
+ fill: "none",
1247
+ children: /* @__PURE__ */ C(E, {
1248
+ fillRule: "evenodd",
1249
+ clipRule: "evenodd",
1250
+ d: "M13.7367 4.53861C12.9689 3.19498 11.0315 3.19498 10.2637 4.53861L1.71007 19.5075C0.948179 20.8408 1.91091 22.4998 3.44656 22.4998H20.5538C22.0895 22.4998 23.0522 20.8408 22.2903 19.5075L13.7367 4.53861ZM11 9.49997H13V15.5H11V9.49997ZM11 17.5H13V19.5H11V17.5Z",
1251
+ fill: "#FEA900"
1252
+ })
1253
+ });
1254
+ }
1255
+ //#endregion
1256
+ //#region src/components/Toaster/Toaster.native.tsx
1257
+ var $e = {
1258
+ success: {
1259
+ background: t.sf.light.action,
1260
+ color: t.fg.accent.action
1261
+ },
1262
+ error: {
1263
+ background: t.sf.light.error,
1264
+ color: t.fg.accent.error
1265
+ },
1266
+ info: {
1267
+ background: t.sf.light.tertiary,
1268
+ color: t.fg.base
1269
+ },
1270
+ warning: {
1271
+ background: t.sf.light.warning,
1272
+ color: t.fg.accent.warning
1273
+ }
1274
+ };
1275
+ function et({ variant: e }) {
1276
+ switch (e) {
1277
+ case "success": return /* @__PURE__ */ C(Ze, {});
1278
+ case "error": return /* @__PURE__ */ C(Ye, {});
1279
+ case "warning": return /* @__PURE__ */ C(Qe, {});
1280
+ default: return /* @__PURE__ */ C(Xe, {});
1281
+ }
1282
+ }
1283
+ var tt = 5e3;
1284
+ function nt({ id: t, title: n, description: r, variant: i = "info", duration: a, onDismiss: o }) {
1285
+ let { background: s, color: c } = $e[i], l = d(new p.Value(0)).current;
1286
+ u(() => {
1287
+ let e = p.timing(l, {
1288
+ toValue: 1,
1289
+ duration: 200,
1290
+ useNativeDriver: !0
1291
+ });
1292
+ return e.start(), () => e.stop();
1293
+ }, [l]);
1294
+ let f = d(o);
1295
+ f.current = o, u(() => {
1296
+ let e = setTimeout(() => f.current(t), a ?? tt);
1297
+ return () => clearTimeout(e);
1298
+ }, [t, a]);
1299
+ let m = l.interpolate({
1300
+ inputRange: [0, 1],
1301
+ outputRange: [16, 0]
1302
+ });
1303
+ return /* @__PURE__ */ w(p.View, {
1304
+ style: [$.card, {
1305
+ backgroundColor: s,
1306
+ opacity: l,
1307
+ transform: [{ translateY: m }]
1308
+ }],
1309
+ children: [
1310
+ /* @__PURE__ */ C(x, {
1311
+ style: $.iconWrapper,
1312
+ children: /* @__PURE__ */ C(et, { variant: i })
1313
+ }),
1314
+ /* @__PURE__ */ w(x, {
1315
+ style: $.content,
1316
+ children: [n && /* @__PURE__ */ C(k, {
1317
+ variant: "label",
1318
+ color: c,
1319
+ children: n
1320
+ }), r && /* @__PURE__ */ C(k, {
1321
+ variant: "body",
1322
+ color: c,
1323
+ style: $.description,
1324
+ children: r
1325
+ })]
1326
+ }),
1327
+ /* @__PURE__ */ C(N, {
1328
+ size: "sm",
1329
+ accessibilityLabel: "Dismiss",
1330
+ onPress: () => o(t),
1331
+ children: /* @__PURE__ */ C(e, {
1332
+ size: "small",
1333
+ color: c
1334
+ })
1335
+ })
1336
+ ]
1337
+ });
1338
+ }
1339
+ function rt() {
1340
+ let { toasts: e, dismiss: t } = Je(), n = re(), r = e.filter((e) => e.open !== !1);
1341
+ return r.length === 0 ? null : /* @__PURE__ */ C(x, {
1342
+ style: [$.container, { bottom: Math.max(n.bottom, 16) }],
1343
+ pointerEvents: "box-none",
1344
+ children: r.map((e) => /* @__PURE__ */ C(nt, {
1345
+ id: e.id,
1346
+ title: e.title,
1347
+ description: e.description,
1348
+ variant: e.variant,
1349
+ duration: e.duration,
1350
+ onDismiss: t
1351
+ }, e.id))
1352
+ });
1353
+ }
1354
+ var $ = y.create({
1355
+ container: {
1356
+ position: "absolute",
1357
+ left: 0,
1358
+ right: 0,
1359
+ alignItems: "center",
1360
+ paddingHorizontal: 16
1361
+ },
1362
+ card: {
1363
+ width: "100%",
1364
+ flexDirection: "row",
1365
+ alignItems: "center",
1366
+ gap: 8,
1367
+ borderRadius: 16,
1368
+ padding: 12,
1369
+ shadowColor: t.black,
1370
+ shadowOpacity: .04,
1371
+ shadowRadius: 16,
1372
+ shadowOffset: {
1373
+ width: 0,
1374
+ height: 0
1375
+ },
1376
+ elevation: 4
1377
+ },
1378
+ iconWrapper: {
1379
+ width: 24,
1380
+ height: 24,
1381
+ alignItems: "center",
1382
+ justifyContent: "center"
1383
+ },
1384
+ content: { flex: 1 },
1385
+ description: { fontSize: 13 }
1386
+ }), it = () => {
1387
+ let [e, t] = f(window.innerWidth <= 768), n = d(window.innerWidth);
1388
+ return u(() => {
1389
+ let e = () => {
1390
+ let e = window.innerWidth;
1391
+ e <= 768 && n.current > 768 ? t(!0) : e > 768 && n.current <= 768 && t(!1), n.current = e;
1392
+ };
1393
+ return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
1394
+ }, []), e;
1395
+ };
1396
+ //#endregion
1397
+ export { ae as Badge, se as Button, le as Card, de as Divider, pe as EmptyState, N as IconButton, _e as Input, je as Letter, Me as MenuItem, Ne as RadioCard, Pe as Select, Fe as Sheet, j as Spinner, Ve as StepProgress, k as Text, rt as Toaster, t as colors, o as icons, i as typography, it as useIsMobile, Je as useToast };