@xaui/native 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/autocomplete/index.cjs +151 -133
- package/dist/autocomplete/index.js +2 -2
- package/dist/{chunk-RE3CO277.js → chunk-CKGZOJVV.js} +423 -52
- package/dist/chunk-LM23DOX3.js +1647 -0
- package/dist/{chunk-W7JJVPK5.js → chunk-RL47NQAU.js} +3 -3
- package/dist/datepicker/index.cjs +2429 -0
- package/dist/datepicker/index.d.cts +45 -0
- package/dist/datepicker/index.d.ts +45 -0
- package/dist/datepicker/index.js +9 -0
- package/dist/icon/index.cjs +439 -65
- package/dist/icon/index.d.cts +7 -1
- package/dist/icon/index.d.ts +7 -1
- package/dist/icon/index.js +8 -2
- package/dist/index.cjs +2818 -670
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -2
- package/package.json +8 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Autocomplete,
|
|
3
3
|
AutocompleteItem
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-RE3CO277.js";
|
|
4
|
+
} from "../chunk-RL47NQAU.js";
|
|
6
5
|
import "../chunk-GBHQCAKW.js";
|
|
6
|
+
import "../chunk-CKGZOJVV.js";
|
|
7
7
|
import "../chunk-SIXET7TJ.js";
|
|
8
8
|
import "../chunk-NBRASCX4.js";
|
|
9
9
|
export {
|
|
@@ -109,12 +109,12 @@ var ArrowBackIcon = ({
|
|
|
109
109
|
return /* @__PURE__ */ React.createElement(Svg, { width: size, height: size, viewBox: "0 0 512 512" }, renderVariant());
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
// src/components/icon/icons/
|
|
112
|
+
// src/components/icon/icons/calendar.tsx
|
|
113
113
|
import React2, { useEffect as useEffect2, useMemo as useMemo2, useRef as useRef2 } from "react";
|
|
114
114
|
import { Animated as Animated2 } from "react-native";
|
|
115
|
-
import Svg2, {
|
|
115
|
+
import Svg2, { Circle as Circle2, Path as Path2, Rect as Rect2 } from "react-native-svg";
|
|
116
116
|
var AnimatedPath2 = Animated2.createAnimatedComponent(Path2);
|
|
117
|
-
var
|
|
117
|
+
var CalendarIcon = ({
|
|
118
118
|
variant = "baseline",
|
|
119
119
|
size = 24,
|
|
120
120
|
color = "default",
|
|
@@ -158,7 +158,7 @@ var CheckmarkIcon = ({
|
|
|
158
158
|
strokeLinecap: "round",
|
|
159
159
|
strokeLinejoin: "round",
|
|
160
160
|
strokeWidth: 32,
|
|
161
|
-
d: "
|
|
161
|
+
d: "M48 112a48 48 0 0148-48h320a48 48 0 0148 48v320a48 48 0 01-48 48H96a48 48 0 01-48-48zm0 80h416M176 64v48M336 64v48",
|
|
162
162
|
...animatedProps
|
|
163
163
|
}
|
|
164
164
|
);
|
|
@@ -166,7 +166,7 @@ var CheckmarkIcon = ({
|
|
|
166
166
|
AnimatedPath2,
|
|
167
167
|
{
|
|
168
168
|
fill: resolvedColor,
|
|
169
|
-
d: "
|
|
169
|
+
d: "M416 64h-56V40a24 24 0 00-48 0v24H200V40a24 24 0 00-48 0v24H96a48 48 0 00-48 48v320a48 48 0 0048 48h320a48 48 0 0048-48V112a48 48 0 00-48-48zm0 368H96V208h320z",
|
|
170
170
|
...animatedProps
|
|
171
171
|
}
|
|
172
172
|
);
|
|
@@ -175,10 +175,146 @@ var CheckmarkIcon = ({
|
|
|
175
175
|
{
|
|
176
176
|
fill: resolvedColor,
|
|
177
177
|
opacity: 0.3,
|
|
178
|
-
d: "
|
|
178
|
+
d: "M48 192h416v240a48 48 0 01-48 48H96a48 48 0 01-48-48z"
|
|
179
|
+
}
|
|
180
|
+
), renderBaseline());
|
|
181
|
+
const renderRoundOutlined = () => /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(
|
|
182
|
+
Circle2,
|
|
183
|
+
{
|
|
184
|
+
cx: "256",
|
|
185
|
+
cy: "256",
|
|
186
|
+
r: "192",
|
|
187
|
+
fill: "none",
|
|
188
|
+
stroke: resolvedColor,
|
|
189
|
+
strokeWidth: 32
|
|
190
|
+
}
|
|
191
|
+
), /* @__PURE__ */ React2.createElement(
|
|
192
|
+
AnimatedPath2,
|
|
193
|
+
{
|
|
194
|
+
fill: "none",
|
|
195
|
+
stroke: resolvedColor,
|
|
196
|
+
strokeLinecap: "round",
|
|
197
|
+
strokeLinejoin: "round",
|
|
198
|
+
strokeWidth: 28,
|
|
199
|
+
d: "M152 176a24 24 0 0124-24h160a24 24 0 0124 24v176a24 24 0 01-24 24H176a24 24 0 01-24-24zm0 48h208M208 152v32M304 152v32",
|
|
200
|
+
...animatedProps
|
|
201
|
+
}
|
|
202
|
+
));
|
|
203
|
+
const renderSquareOutlined = () => /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(
|
|
204
|
+
Rect2,
|
|
205
|
+
{
|
|
206
|
+
x: "64",
|
|
207
|
+
y: "64",
|
|
208
|
+
width: "384",
|
|
209
|
+
height: "384",
|
|
210
|
+
rx: "48",
|
|
211
|
+
fill: "none",
|
|
212
|
+
stroke: resolvedColor,
|
|
213
|
+
strokeWidth: 32
|
|
179
214
|
}
|
|
180
215
|
), /* @__PURE__ */ React2.createElement(
|
|
181
216
|
AnimatedPath2,
|
|
217
|
+
{
|
|
218
|
+
fill: "none",
|
|
219
|
+
stroke: resolvedColor,
|
|
220
|
+
strokeLinecap: "round",
|
|
221
|
+
strokeLinejoin: "round",
|
|
222
|
+
strokeWidth: 28,
|
|
223
|
+
d: "M152 176a24 24 0 0124-24h160a24 24 0 0124 24v176a24 24 0 01-24 24H176a24 24 0 01-24-24zm0 48h208M208 152v32M304 152v32",
|
|
224
|
+
...animatedProps
|
|
225
|
+
}
|
|
226
|
+
));
|
|
227
|
+
const renderVariant = () => {
|
|
228
|
+
switch (variant) {
|
|
229
|
+
case "filled":
|
|
230
|
+
return renderFilled();
|
|
231
|
+
case "duotone":
|
|
232
|
+
return renderDuotone();
|
|
233
|
+
case "round-outlined":
|
|
234
|
+
return renderRoundOutlined();
|
|
235
|
+
case "square-outlined":
|
|
236
|
+
return renderSquareOutlined();
|
|
237
|
+
case "round-filled":
|
|
238
|
+
case "square-filled":
|
|
239
|
+
return renderFilled();
|
|
240
|
+
case "baseline":
|
|
241
|
+
default:
|
|
242
|
+
return renderBaseline();
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
return /* @__PURE__ */ React2.createElement(Svg2, { width: size, height: size, viewBox: "0 0 512 512" }, renderVariant());
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
// src/components/icon/icons/checkmark.tsx
|
|
249
|
+
import React3, { useEffect as useEffect3, useMemo as useMemo3, useRef as useRef3 } from "react";
|
|
250
|
+
import { Animated as Animated3 } from "react-native";
|
|
251
|
+
import Svg3, { Path as Path3, Circle as Circle3, Rect as Rect3 } from "react-native-svg";
|
|
252
|
+
var AnimatedPath3 = Animated3.createAnimatedComponent(Path3);
|
|
253
|
+
var CheckmarkIcon = ({
|
|
254
|
+
variant = "baseline",
|
|
255
|
+
size = 24,
|
|
256
|
+
color = "default",
|
|
257
|
+
isAnimated = false
|
|
258
|
+
}) => {
|
|
259
|
+
const theme = useXUITheme();
|
|
260
|
+
const scaleAnim = useRef3(new Animated3.Value(isAnimated ? 0 : 1)).current;
|
|
261
|
+
const opacityAnim = useRef3(new Animated3.Value(isAnimated ? 0 : 1)).current;
|
|
262
|
+
const resolvedColor = useMemo3(() => {
|
|
263
|
+
if (typeof color === "string" && isThemeColor(color)) {
|
|
264
|
+
return theme.colors[color].main;
|
|
265
|
+
}
|
|
266
|
+
return color;
|
|
267
|
+
}, [color, theme]);
|
|
268
|
+
useEffect3(() => {
|
|
269
|
+
if (isAnimated) {
|
|
270
|
+
Animated3.parallel([
|
|
271
|
+
Animated3.spring(scaleAnim, {
|
|
272
|
+
toValue: 1,
|
|
273
|
+
useNativeDriver: true,
|
|
274
|
+
tension: 50,
|
|
275
|
+
friction: 7
|
|
276
|
+
}),
|
|
277
|
+
Animated3.timing(opacityAnim, {
|
|
278
|
+
toValue: 1,
|
|
279
|
+
duration: 200,
|
|
280
|
+
useNativeDriver: true
|
|
281
|
+
})
|
|
282
|
+
]).start();
|
|
283
|
+
}
|
|
284
|
+
}, [isAnimated, scaleAnim, opacityAnim]);
|
|
285
|
+
const animatedProps = isAnimated ? {
|
|
286
|
+
transform: [{ scale: scaleAnim }],
|
|
287
|
+
opacity: opacityAnim
|
|
288
|
+
} : void 0;
|
|
289
|
+
const renderBaseline = () => /* @__PURE__ */ React3.createElement(
|
|
290
|
+
AnimatedPath3,
|
|
291
|
+
{
|
|
292
|
+
fill: "none",
|
|
293
|
+
stroke: resolvedColor,
|
|
294
|
+
strokeLinecap: "round",
|
|
295
|
+
strokeLinejoin: "round",
|
|
296
|
+
strokeWidth: 32,
|
|
297
|
+
d: "M416 128L192 384l-96-96",
|
|
298
|
+
...animatedProps
|
|
299
|
+
}
|
|
300
|
+
);
|
|
301
|
+
const renderFilled = () => /* @__PURE__ */ React3.createElement(
|
|
302
|
+
AnimatedPath3,
|
|
303
|
+
{
|
|
304
|
+
fill: resolvedColor,
|
|
305
|
+
d: "M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192zm-257.9 78.9l-64-64a16 16 0 0 1 22.6-22.6l52.7 52.7 116.7-116.7a16 16 0 0 1 22.6 22.6l-128 128a16 16 0 0 1-22.6 0z",
|
|
306
|
+
...animatedProps
|
|
307
|
+
}
|
|
308
|
+
);
|
|
309
|
+
const renderDuotone = () => /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(
|
|
310
|
+
Path3,
|
|
311
|
+
{
|
|
312
|
+
fill: resolvedColor,
|
|
313
|
+
opacity: 0.3,
|
|
314
|
+
d: "M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48z"
|
|
315
|
+
}
|
|
316
|
+
), /* @__PURE__ */ React3.createElement(
|
|
317
|
+
AnimatedPath3,
|
|
182
318
|
{
|
|
183
319
|
fill: "none",
|
|
184
320
|
stroke: resolvedColor,
|
|
@@ -189,8 +325,8 @@ var CheckmarkIcon = ({
|
|
|
189
325
|
...animatedProps
|
|
190
326
|
}
|
|
191
327
|
));
|
|
192
|
-
const renderRoundOutlined = () => /* @__PURE__ */
|
|
193
|
-
|
|
328
|
+
const renderRoundOutlined = () => /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(
|
|
329
|
+
Circle3,
|
|
194
330
|
{
|
|
195
331
|
cx: "256",
|
|
196
332
|
cy: "256",
|
|
@@ -199,8 +335,8 @@ var CheckmarkIcon = ({
|
|
|
199
335
|
stroke: resolvedColor,
|
|
200
336
|
strokeWidth: 32
|
|
201
337
|
}
|
|
202
|
-
), /* @__PURE__ */
|
|
203
|
-
|
|
338
|
+
), /* @__PURE__ */ React3.createElement(
|
|
339
|
+
AnimatedPath3,
|
|
204
340
|
{
|
|
205
341
|
fill: "none",
|
|
206
342
|
stroke: resolvedColor,
|
|
@@ -211,8 +347,8 @@ var CheckmarkIcon = ({
|
|
|
211
347
|
...animatedProps
|
|
212
348
|
}
|
|
213
349
|
));
|
|
214
|
-
const renderSquareOutlined = () => /* @__PURE__ */
|
|
215
|
-
|
|
350
|
+
const renderSquareOutlined = () => /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(
|
|
351
|
+
Rect3,
|
|
216
352
|
{
|
|
217
353
|
x: "64",
|
|
218
354
|
y: "64",
|
|
@@ -223,8 +359,8 @@ var CheckmarkIcon = ({
|
|
|
223
359
|
stroke: resolvedColor,
|
|
224
360
|
strokeWidth: 32
|
|
225
361
|
}
|
|
226
|
-
), /* @__PURE__ */
|
|
227
|
-
|
|
362
|
+
), /* @__PURE__ */ React3.createElement(
|
|
363
|
+
AnimatedPath3,
|
|
228
364
|
{
|
|
229
365
|
fill: "none",
|
|
230
366
|
stroke: resolvedColor,
|
|
@@ -235,16 +371,16 @@ var CheckmarkIcon = ({
|
|
|
235
371
|
...animatedProps
|
|
236
372
|
}
|
|
237
373
|
));
|
|
238
|
-
const renderRoundFilled = () => /* @__PURE__ */
|
|
239
|
-
|
|
374
|
+
const renderRoundFilled = () => /* @__PURE__ */ React3.createElement(
|
|
375
|
+
AnimatedPath3,
|
|
240
376
|
{
|
|
241
377
|
fill: resolvedColor,
|
|
242
378
|
d: "M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192zm-257.9 78.9l-64-64a16 16 0 0 1 22.6-22.6l52.7 52.7 116.7-116.7a16 16 0 0 1 22.6 22.6l-128 128a16 16 0 0 1-22.6 0z",
|
|
243
379
|
...animatedProps
|
|
244
380
|
}
|
|
245
381
|
);
|
|
246
|
-
const renderSquareFilled = () => /* @__PURE__ */
|
|
247
|
-
|
|
382
|
+
const renderSquareFilled = () => /* @__PURE__ */ React3.createElement(
|
|
383
|
+
AnimatedPath3,
|
|
248
384
|
{
|
|
249
385
|
fill: resolvedColor,
|
|
250
386
|
d: "M400 64H112a48 48 0 0 0-48 48v288a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V112a48 48 0 0 0-48-48zm-141.45 241.25l-116.36-103a16 16 0 0 1 21.62-23.58l104.18 92.23 145.69-145.69a16 16 0 0 1 22.62 22.62l-156 156a16 16 0 0 1-21.75.42z",
|
|
@@ -270,14 +406,14 @@ var CheckmarkIcon = ({
|
|
|
270
406
|
return renderBaseline();
|
|
271
407
|
}
|
|
272
408
|
};
|
|
273
|
-
return /* @__PURE__ */
|
|
409
|
+
return /* @__PURE__ */ React3.createElement(Svg3, { width: size, height: size, viewBox: "0 0 512 512" }, renderVariant());
|
|
274
410
|
};
|
|
275
411
|
|
|
276
412
|
// src/components/icon/icons/chevron-down.tsx
|
|
277
|
-
import
|
|
278
|
-
import { Animated as
|
|
279
|
-
import
|
|
280
|
-
var
|
|
413
|
+
import React4, { useEffect as useEffect4, useMemo as useMemo4, useRef as useRef4 } from "react";
|
|
414
|
+
import { Animated as Animated4 } from "react-native";
|
|
415
|
+
import Svg4, { Path as Path4, Circle as Circle4, Rect as Rect4 } from "react-native-svg";
|
|
416
|
+
var AnimatedPath4 = Animated4.createAnimatedComponent(Path4);
|
|
281
417
|
var ChevronDownIcon = ({
|
|
282
418
|
variant = "baseline",
|
|
283
419
|
size = 24,
|
|
@@ -285,24 +421,24 @@ var ChevronDownIcon = ({
|
|
|
285
421
|
isAnimated = false
|
|
286
422
|
}) => {
|
|
287
423
|
const theme = useXUITheme();
|
|
288
|
-
const scaleAnim =
|
|
289
|
-
const opacityAnim =
|
|
290
|
-
const resolvedColor =
|
|
424
|
+
const scaleAnim = useRef4(new Animated4.Value(isAnimated ? 0 : 1)).current;
|
|
425
|
+
const opacityAnim = useRef4(new Animated4.Value(isAnimated ? 0 : 1)).current;
|
|
426
|
+
const resolvedColor = useMemo4(() => {
|
|
291
427
|
if (typeof color === "string" && isThemeColor(color)) {
|
|
292
428
|
return theme.colors[color].main;
|
|
293
429
|
}
|
|
294
430
|
return color;
|
|
295
431
|
}, [color, theme]);
|
|
296
|
-
|
|
432
|
+
useEffect4(() => {
|
|
297
433
|
if (isAnimated) {
|
|
298
|
-
|
|
299
|
-
|
|
434
|
+
Animated4.parallel([
|
|
435
|
+
Animated4.spring(scaleAnim, {
|
|
300
436
|
toValue: 1,
|
|
301
437
|
useNativeDriver: true,
|
|
302
438
|
tension: 50,
|
|
303
439
|
friction: 7
|
|
304
440
|
}),
|
|
305
|
-
|
|
441
|
+
Animated4.timing(opacityAnim, {
|
|
306
442
|
toValue: 1,
|
|
307
443
|
duration: 200,
|
|
308
444
|
useNativeDriver: true
|
|
@@ -314,8 +450,8 @@ var ChevronDownIcon = ({
|
|
|
314
450
|
transform: [{ scale: scaleAnim }],
|
|
315
451
|
opacity: opacityAnim
|
|
316
452
|
} : void 0;
|
|
317
|
-
const renderBaseline = () => /* @__PURE__ */
|
|
318
|
-
|
|
453
|
+
const renderBaseline = () => /* @__PURE__ */ React4.createElement(
|
|
454
|
+
AnimatedPath4,
|
|
319
455
|
{
|
|
320
456
|
fill: "none",
|
|
321
457
|
stroke: resolvedColor,
|
|
@@ -326,23 +462,23 @@ var ChevronDownIcon = ({
|
|
|
326
462
|
...animatedProps
|
|
327
463
|
}
|
|
328
464
|
);
|
|
329
|
-
const renderFilled = () => /* @__PURE__ */
|
|
330
|
-
|
|
465
|
+
const renderFilled = () => /* @__PURE__ */ React4.createElement(
|
|
466
|
+
AnimatedPath4,
|
|
331
467
|
{
|
|
332
468
|
fill: resolvedColor,
|
|
333
469
|
d: "M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z",
|
|
334
470
|
...animatedProps
|
|
335
471
|
}
|
|
336
472
|
);
|
|
337
|
-
const renderDuotone = () => /* @__PURE__ */
|
|
338
|
-
|
|
473
|
+
const renderDuotone = () => /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(
|
|
474
|
+
Path4,
|
|
339
475
|
{
|
|
340
476
|
fill: resolvedColor,
|
|
341
477
|
opacity: 0.3,
|
|
342
478
|
d: "M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48z"
|
|
343
479
|
}
|
|
344
|
-
), /* @__PURE__ */
|
|
345
|
-
|
|
480
|
+
), /* @__PURE__ */ React4.createElement(
|
|
481
|
+
AnimatedPath4,
|
|
346
482
|
{
|
|
347
483
|
fill: "none",
|
|
348
484
|
stroke: resolvedColor,
|
|
@@ -353,8 +489,8 @@ var ChevronDownIcon = ({
|
|
|
353
489
|
...animatedProps
|
|
354
490
|
}
|
|
355
491
|
));
|
|
356
|
-
const renderRoundOutlined = () => /* @__PURE__ */
|
|
357
|
-
|
|
492
|
+
const renderRoundOutlined = () => /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(
|
|
493
|
+
Circle4,
|
|
358
494
|
{
|
|
359
495
|
cx: "256",
|
|
360
496
|
cy: "256",
|
|
@@ -363,8 +499,8 @@ var ChevronDownIcon = ({
|
|
|
363
499
|
stroke: resolvedColor,
|
|
364
500
|
strokeWidth: 32
|
|
365
501
|
}
|
|
366
|
-
), /* @__PURE__ */
|
|
367
|
-
|
|
502
|
+
), /* @__PURE__ */ React4.createElement(
|
|
503
|
+
AnimatedPath4,
|
|
368
504
|
{
|
|
369
505
|
fill: "none",
|
|
370
506
|
stroke: resolvedColor,
|
|
@@ -375,8 +511,8 @@ var ChevronDownIcon = ({
|
|
|
375
511
|
...animatedProps
|
|
376
512
|
}
|
|
377
513
|
));
|
|
378
|
-
const renderSquareOutlined = () => /* @__PURE__ */
|
|
379
|
-
|
|
514
|
+
const renderSquareOutlined = () => /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(
|
|
515
|
+
Rect4,
|
|
380
516
|
{
|
|
381
517
|
x: "64",
|
|
382
518
|
y: "64",
|
|
@@ -387,8 +523,8 @@ var ChevronDownIcon = ({
|
|
|
387
523
|
stroke: resolvedColor,
|
|
388
524
|
strokeWidth: 32
|
|
389
525
|
}
|
|
390
|
-
), /* @__PURE__ */
|
|
391
|
-
|
|
526
|
+
), /* @__PURE__ */ React4.createElement(
|
|
527
|
+
AnimatedPath4,
|
|
392
528
|
{
|
|
393
529
|
fill: "none",
|
|
394
530
|
stroke: resolvedColor,
|
|
@@ -399,16 +535,16 @@ var ChevronDownIcon = ({
|
|
|
399
535
|
...animatedProps
|
|
400
536
|
}
|
|
401
537
|
));
|
|
402
|
-
const renderRoundFilled = () => /* @__PURE__ */
|
|
403
|
-
|
|
538
|
+
const renderRoundFilled = () => /* @__PURE__ */ React4.createElement(
|
|
539
|
+
AnimatedPath4,
|
|
404
540
|
{
|
|
405
541
|
fill: resolvedColor,
|
|
406
542
|
d: "M464 256c0-114.87-93.13-208-208-208S48 141.13 48 256s93.13 208 208 208 208-93.13 208-208zm-100.69-28.69l-96 96a16 16 0 0 1-22.62 0l-96-96a16 16 0 0 1 22.62-22.62L256 289.37l84.69-84.68a16 16 0 0 1 22.62 22.62z",
|
|
407
543
|
...animatedProps
|
|
408
544
|
}
|
|
409
545
|
);
|
|
410
|
-
const renderSquareFilled = () => /* @__PURE__ */
|
|
411
|
-
|
|
546
|
+
const renderSquareFilled = () => /* @__PURE__ */ React4.createElement(
|
|
547
|
+
AnimatedPath4,
|
|
412
548
|
{
|
|
413
549
|
fill: resolvedColor,
|
|
414
550
|
d: "M400 64H112a48 48 0 0 0-48 48v288a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V112a48 48 0 0 0-48-48zm-36.69 163.31l-96 96a16 16 0 0 1-22.62 0l-96-96a16 16 0 0 1 22.62-22.62L256 289.37l84.69-84.68a16 16 0 0 1 22.62 22.62z",
|
|
@@ -434,11 +570,246 @@ var ChevronDownIcon = ({
|
|
|
434
570
|
return renderBaseline();
|
|
435
571
|
}
|
|
436
572
|
};
|
|
437
|
-
return /* @__PURE__ */
|
|
573
|
+
return /* @__PURE__ */ React4.createElement(Svg4, { width: size, height: size, viewBox: "0 0 512 512" }, renderVariant());
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
// src/components/icon/icons/chevron-left.tsx
|
|
577
|
+
import React5, { useEffect as useEffect5, useMemo as useMemo5, useRef as useRef5 } from "react";
|
|
578
|
+
import { Animated as Animated5 } from "react-native";
|
|
579
|
+
import Svg5, { Circle as Circle5, Path as Path5, Rect as Rect5 } from "react-native-svg";
|
|
580
|
+
var AnimatedPath5 = Animated5.createAnimatedComponent(Path5);
|
|
581
|
+
var ChevronLeftIcon = ({
|
|
582
|
+
variant = "baseline",
|
|
583
|
+
size = 24,
|
|
584
|
+
color = "default",
|
|
585
|
+
isAnimated = false
|
|
586
|
+
}) => {
|
|
587
|
+
const theme = useXUITheme();
|
|
588
|
+
const scaleAnim = useRef5(new Animated5.Value(isAnimated ? 0 : 1)).current;
|
|
589
|
+
const opacityAnim = useRef5(new Animated5.Value(isAnimated ? 0 : 1)).current;
|
|
590
|
+
const resolvedColor = useMemo5(() => {
|
|
591
|
+
if (typeof color === "string" && isThemeColor(color)) {
|
|
592
|
+
return theme.colors[color].main;
|
|
593
|
+
}
|
|
594
|
+
return color;
|
|
595
|
+
}, [color, theme]);
|
|
596
|
+
useEffect5(() => {
|
|
597
|
+
if (isAnimated) {
|
|
598
|
+
Animated5.parallel([
|
|
599
|
+
Animated5.spring(scaleAnim, {
|
|
600
|
+
toValue: 1,
|
|
601
|
+
useNativeDriver: true,
|
|
602
|
+
tension: 50,
|
|
603
|
+
friction: 7
|
|
604
|
+
}),
|
|
605
|
+
Animated5.timing(opacityAnim, {
|
|
606
|
+
toValue: 1,
|
|
607
|
+
duration: 200,
|
|
608
|
+
useNativeDriver: true
|
|
609
|
+
})
|
|
610
|
+
]).start();
|
|
611
|
+
}
|
|
612
|
+
}, [isAnimated, scaleAnim, opacityAnim]);
|
|
613
|
+
const animatedProps = isAnimated ? {
|
|
614
|
+
transform: [{ scale: scaleAnim }],
|
|
615
|
+
opacity: opacityAnim
|
|
616
|
+
} : void 0;
|
|
617
|
+
const renderBaseline = () => /* @__PURE__ */ React5.createElement(
|
|
618
|
+
AnimatedPath5,
|
|
619
|
+
{
|
|
620
|
+
fill: "none",
|
|
621
|
+
stroke: resolvedColor,
|
|
622
|
+
strokeLinecap: "round",
|
|
623
|
+
strokeLinejoin: "round",
|
|
624
|
+
strokeWidth: 48,
|
|
625
|
+
d: "M328 112L184 256l144 144",
|
|
626
|
+
...animatedProps
|
|
627
|
+
}
|
|
628
|
+
);
|
|
629
|
+
const renderFilled = () => /* @__PURE__ */ React5.createElement(
|
|
630
|
+
AnimatedPath5,
|
|
631
|
+
{
|
|
632
|
+
fill: resolvedColor,
|
|
633
|
+
d: "M256 217.9L383 345c9.4 9.4 24.6 9.4 33.9 0s9.3-24.6 0-34L273 167c-9.1-9.1-23.7-9.3-33.1-.7L95 310.9c-4.7 4.7-7 10.9-7 17s2.3 12.3 7 17c9.4 9.4 24.6 9.4 33.9 0l127.1-127z",
|
|
634
|
+
rotation: 90,
|
|
635
|
+
origin: "256, 256",
|
|
636
|
+
...animatedProps
|
|
637
|
+
}
|
|
638
|
+
);
|
|
639
|
+
const renderDuotone = () => /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(
|
|
640
|
+
Path5,
|
|
641
|
+
{
|
|
642
|
+
fill: resolvedColor,
|
|
643
|
+
opacity: 0.3,
|
|
644
|
+
d: "M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48z"
|
|
645
|
+
}
|
|
646
|
+
), renderBaseline());
|
|
647
|
+
const renderRoundOutlined = () => /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(
|
|
648
|
+
Circle5,
|
|
649
|
+
{
|
|
650
|
+
cx: "256",
|
|
651
|
+
cy: "256",
|
|
652
|
+
r: "192",
|
|
653
|
+
fill: "none",
|
|
654
|
+
stroke: resolvedColor,
|
|
655
|
+
strokeWidth: 32
|
|
656
|
+
}
|
|
657
|
+
), renderBaseline());
|
|
658
|
+
const renderSquareOutlined = () => /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(
|
|
659
|
+
Rect5,
|
|
660
|
+
{
|
|
661
|
+
x: "64",
|
|
662
|
+
y: "64",
|
|
663
|
+
width: "384",
|
|
664
|
+
height: "384",
|
|
665
|
+
rx: "48",
|
|
666
|
+
fill: "none",
|
|
667
|
+
stroke: resolvedColor,
|
|
668
|
+
strokeWidth: 32
|
|
669
|
+
}
|
|
670
|
+
), renderBaseline());
|
|
671
|
+
const renderVariant = () => {
|
|
672
|
+
switch (variant) {
|
|
673
|
+
case "filled":
|
|
674
|
+
return renderFilled();
|
|
675
|
+
case "duotone":
|
|
676
|
+
return renderDuotone();
|
|
677
|
+
case "round-outlined":
|
|
678
|
+
return renderRoundOutlined();
|
|
679
|
+
case "square-outlined":
|
|
680
|
+
return renderSquareOutlined();
|
|
681
|
+
case "round-filled":
|
|
682
|
+
case "square-filled":
|
|
683
|
+
return renderFilled();
|
|
684
|
+
case "baseline":
|
|
685
|
+
default:
|
|
686
|
+
return renderBaseline();
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
return /* @__PURE__ */ React5.createElement(Svg5, { width: size, height: size, viewBox: "0 0 512 512" }, renderVariant());
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
// src/components/icon/icons/chevron-right.tsx
|
|
693
|
+
import React6, { useEffect as useEffect6, useMemo as useMemo6, useRef as useRef6 } from "react";
|
|
694
|
+
import { Animated as Animated6 } from "react-native";
|
|
695
|
+
import Svg6, { Circle as Circle6, Path as Path6, Rect as Rect6 } from "react-native-svg";
|
|
696
|
+
var AnimatedPath6 = Animated6.createAnimatedComponent(Path6);
|
|
697
|
+
var ChevronRightIcon = ({
|
|
698
|
+
variant = "baseline",
|
|
699
|
+
size = 24,
|
|
700
|
+
color = "default",
|
|
701
|
+
isAnimated = false
|
|
702
|
+
}) => {
|
|
703
|
+
const theme = useXUITheme();
|
|
704
|
+
const scaleAnim = useRef6(new Animated6.Value(isAnimated ? 0 : 1)).current;
|
|
705
|
+
const opacityAnim = useRef6(new Animated6.Value(isAnimated ? 0 : 1)).current;
|
|
706
|
+
const resolvedColor = useMemo6(() => {
|
|
707
|
+
if (typeof color === "string" && isThemeColor(color)) {
|
|
708
|
+
return theme.colors[color].main;
|
|
709
|
+
}
|
|
710
|
+
return color;
|
|
711
|
+
}, [color, theme]);
|
|
712
|
+
useEffect6(() => {
|
|
713
|
+
if (isAnimated) {
|
|
714
|
+
Animated6.parallel([
|
|
715
|
+
Animated6.spring(scaleAnim, {
|
|
716
|
+
toValue: 1,
|
|
717
|
+
useNativeDriver: true,
|
|
718
|
+
tension: 50,
|
|
719
|
+
friction: 7
|
|
720
|
+
}),
|
|
721
|
+
Animated6.timing(opacityAnim, {
|
|
722
|
+
toValue: 1,
|
|
723
|
+
duration: 200,
|
|
724
|
+
useNativeDriver: true
|
|
725
|
+
})
|
|
726
|
+
]).start();
|
|
727
|
+
}
|
|
728
|
+
}, [isAnimated, scaleAnim, opacityAnim]);
|
|
729
|
+
const animatedProps = isAnimated ? {
|
|
730
|
+
transform: [{ scale: scaleAnim }],
|
|
731
|
+
opacity: opacityAnim
|
|
732
|
+
} : void 0;
|
|
733
|
+
const renderBaseline = () => /* @__PURE__ */ React6.createElement(
|
|
734
|
+
AnimatedPath6,
|
|
735
|
+
{
|
|
736
|
+
fill: "none",
|
|
737
|
+
stroke: resolvedColor,
|
|
738
|
+
strokeLinecap: "round",
|
|
739
|
+
strokeLinejoin: "round",
|
|
740
|
+
strokeWidth: 48,
|
|
741
|
+
d: "M184 112l144 144-144 144",
|
|
742
|
+
...animatedProps
|
|
743
|
+
}
|
|
744
|
+
);
|
|
745
|
+
const renderFilled = () => /* @__PURE__ */ React6.createElement(
|
|
746
|
+
AnimatedPath6,
|
|
747
|
+
{
|
|
748
|
+
fill: resolvedColor,
|
|
749
|
+
d: "M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z",
|
|
750
|
+
rotation: -90,
|
|
751
|
+
origin: "256, 256",
|
|
752
|
+
...animatedProps
|
|
753
|
+
}
|
|
754
|
+
);
|
|
755
|
+
const renderDuotone = () => /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(
|
|
756
|
+
Path6,
|
|
757
|
+
{
|
|
758
|
+
fill: resolvedColor,
|
|
759
|
+
opacity: 0.3,
|
|
760
|
+
d: "M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48z"
|
|
761
|
+
}
|
|
762
|
+
), renderBaseline());
|
|
763
|
+
const renderRoundOutlined = () => /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(
|
|
764
|
+
Circle6,
|
|
765
|
+
{
|
|
766
|
+
cx: "256",
|
|
767
|
+
cy: "256",
|
|
768
|
+
r: "192",
|
|
769
|
+
fill: "none",
|
|
770
|
+
stroke: resolvedColor,
|
|
771
|
+
strokeWidth: 32
|
|
772
|
+
}
|
|
773
|
+
), renderBaseline());
|
|
774
|
+
const renderSquareOutlined = () => /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(
|
|
775
|
+
Rect6,
|
|
776
|
+
{
|
|
777
|
+
x: "64",
|
|
778
|
+
y: "64",
|
|
779
|
+
width: "384",
|
|
780
|
+
height: "384",
|
|
781
|
+
rx: "48",
|
|
782
|
+
fill: "none",
|
|
783
|
+
stroke: resolvedColor,
|
|
784
|
+
strokeWidth: 32
|
|
785
|
+
}
|
|
786
|
+
), renderBaseline());
|
|
787
|
+
const renderVariant = () => {
|
|
788
|
+
switch (variant) {
|
|
789
|
+
case "filled":
|
|
790
|
+
return renderFilled();
|
|
791
|
+
case "duotone":
|
|
792
|
+
return renderDuotone();
|
|
793
|
+
case "round-outlined":
|
|
794
|
+
return renderRoundOutlined();
|
|
795
|
+
case "square-outlined":
|
|
796
|
+
return renderSquareOutlined();
|
|
797
|
+
case "round-filled":
|
|
798
|
+
case "square-filled":
|
|
799
|
+
return renderFilled();
|
|
800
|
+
case "baseline":
|
|
801
|
+
default:
|
|
802
|
+
return renderBaseline();
|
|
803
|
+
}
|
|
804
|
+
};
|
|
805
|
+
return /* @__PURE__ */ React6.createElement(Svg6, { width: size, height: size, viewBox: "0 0 512 512" }, renderVariant());
|
|
438
806
|
};
|
|
439
807
|
|
|
440
808
|
export {
|
|
441
809
|
ArrowBackIcon,
|
|
810
|
+
CalendarIcon,
|
|
442
811
|
CheckmarkIcon,
|
|
443
|
-
ChevronDownIcon
|
|
812
|
+
ChevronDownIcon,
|
|
813
|
+
ChevronLeftIcon,
|
|
814
|
+
ChevronRightIcon
|
|
444
815
|
};
|