@app-studio/web 0.8.59 → 0.8.61
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/components/Button/Button/Button.props.d.ts +3 -1
- package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +9 -0
- package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.state.d.ts +9 -0
- package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.view.d.ts +10 -0
- package/dist/components/DragAndDrop/DragAndDrop.d.ts +4 -0
- package/dist/components/DragAndDrop/examples/Simple.d.ts +2 -0
- package/dist/components/Icon/Icon.d.ts +6 -0
- package/dist/components/Text/Text/Text.props.d.ts +0 -1
- package/dist/components/Uploader/Uploader.d.ts +13 -0
- package/dist/components/Uploader/Uploader.props.d.ts +37 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/pages/dragAndDrop.page.d.ts +3 -0
- package/dist/pages/icon.page.d.ts +2 -2
- package/dist/pages/upload.page.d.ts +3 -0
- package/dist/web.cjs.development.js +795 -185
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +787 -187
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +796 -189
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -18,6 +18,9 @@ require('core-js/modules/es.string.includes.js');
|
|
|
18
18
|
require('core-js/modules/es.string.starts-with.js');
|
|
19
19
|
var format = _interopDefault(require('date-fns/format'));
|
|
20
20
|
var formik = require('formik');
|
|
21
|
+
require('core-js/modules/web.url.js');
|
|
22
|
+
require('core-js/modules/web.url.to-json.js');
|
|
23
|
+
require('core-js/modules/web.url-search-params.js');
|
|
21
24
|
var zustand = require('zustand');
|
|
22
25
|
|
|
23
26
|
var Top = props => (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
@@ -81,7 +84,7 @@ var HeadingSizes = {
|
|
|
81
84
|
}
|
|
82
85
|
};
|
|
83
86
|
|
|
84
|
-
var _excluded = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "
|
|
87
|
+
var _excluded = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size"];
|
|
85
88
|
var TextContent = _ref => {
|
|
86
89
|
var {
|
|
87
90
|
children,
|
|
@@ -136,7 +139,6 @@ var TextView = _ref3 => {
|
|
|
136
139
|
isSub = false,
|
|
137
140
|
isSup = false,
|
|
138
141
|
isStriked = false,
|
|
139
|
-
isTruncated = false,
|
|
140
142
|
weight = 'normal',
|
|
141
143
|
size = 'md'
|
|
142
144
|
} = _ref3,
|
|
@@ -152,7 +154,7 @@ var TextView = _ref3 => {
|
|
|
152
154
|
fontStyle: isItalic ? 'italic' : 'normal',
|
|
153
155
|
fontWeight: appStudio.Typography.fontWeights[weight],
|
|
154
156
|
textDecoration: isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none'
|
|
155
|
-
}, noLineBreak, headingStyles, props),
|
|
157
|
+
}, noLineBreak, headingStyles, props), maxLines && typeof children === 'string' ? (/*#__PURE__*/React__default.createElement(TruncateText, {
|
|
156
158
|
text: children,
|
|
157
159
|
maxLines: maxLines
|
|
158
160
|
})) : (/*#__PURE__*/React__default.createElement(TextContent, Object.assign({
|
|
@@ -246,33 +248,33 @@ var _excluded$4 = ["size", "color", "transform", "orientation", "children"],
|
|
|
246
248
|
_excluded21 = ["size", "color", "filled", "strokeWidth"],
|
|
247
249
|
_excluded22 = ["size", "color", "filled", "strokeWidth"],
|
|
248
250
|
_excluded23 = ["size", "color", "filled", "strokeWidth"],
|
|
249
|
-
_excluded24 = ["size", "color", "
|
|
251
|
+
_excluded24 = ["size", "color", "filled", "strokeWidth"],
|
|
250
252
|
_excluded25 = ["size", "color", "filled", "strokeWidth"],
|
|
251
|
-
_excluded26 = ["size", "color", "
|
|
253
|
+
_excluded26 = ["size", "color", "filled", "strokeWidth"],
|
|
252
254
|
_excluded27 = ["size", "color", "filled", "strokeWidth"],
|
|
253
|
-
_excluded28 = ["size", "color", "
|
|
255
|
+
_excluded28 = ["size", "color", "filled", "strokeWidth"],
|
|
254
256
|
_excluded29 = ["size", "color", "filled", "strokeWidth"],
|
|
255
257
|
_excluded30 = ["size", "color", "strokeWidth", "filled"],
|
|
256
258
|
_excluded31 = ["size", "color", "filled", "strokeWidth"],
|
|
257
|
-
_excluded32 = ["size", "color", "
|
|
259
|
+
_excluded32 = ["size", "color", "strokeWidth", "filled"],
|
|
258
260
|
_excluded33 = ["size", "color", "filled", "strokeWidth"],
|
|
259
|
-
_excluded34 = ["size", "color", "
|
|
261
|
+
_excluded34 = ["size", "color", "strokeWidth", "filled"],
|
|
260
262
|
_excluded35 = ["size", "color", "filled", "strokeWidth"],
|
|
261
|
-
_excluded36 = ["size", "color", "
|
|
263
|
+
_excluded36 = ["size", "color", "strokeWidth", "filled"],
|
|
262
264
|
_excluded37 = ["size", "color", "filled", "strokeWidth"],
|
|
263
265
|
_excluded38 = ["size", "color", "filled", "strokeWidth"],
|
|
264
266
|
_excluded39 = ["size", "color", "filled", "strokeWidth"],
|
|
265
267
|
_excluded40 = ["size", "color", "filled", "strokeWidth"],
|
|
266
268
|
_excluded41 = ["size", "color", "filled", "strokeWidth"],
|
|
267
269
|
_excluded42 = ["size", "color", "filled", "strokeWidth"],
|
|
268
|
-
_excluded43 = ["size", "color", "
|
|
269
|
-
_excluded44 = ["size", "color", "
|
|
270
|
+
_excluded43 = ["size", "color", "filled", "strokeWidth"],
|
|
271
|
+
_excluded44 = ["size", "color", "filled", "strokeWidth"],
|
|
270
272
|
_excluded45 = ["size", "color", "filled", "strokeWidth"],
|
|
271
273
|
_excluded46 = ["size", "color", "filled", "strokeWidth"],
|
|
272
274
|
_excluded47 = ["size", "color", "filled", "strokeWidth"],
|
|
273
275
|
_excluded48 = ["size", "color", "filled", "strokeWidth"],
|
|
274
|
-
_excluded49 = ["size", "color", "
|
|
275
|
-
_excluded50 = ["size", "color", "
|
|
276
|
+
_excluded49 = ["size", "color", "strokeWidth", "filled"],
|
|
277
|
+
_excluded50 = ["size", "color", "strokeWidth", "filled"],
|
|
276
278
|
_excluded51 = ["size", "color", "filled", "strokeWidth"],
|
|
277
279
|
_excluded52 = ["size", "color", "filled", "strokeWidth"],
|
|
278
280
|
_excluded53 = ["size", "color", "filled", "strokeWidth"],
|
|
@@ -280,7 +282,13 @@ var _excluded$4 = ["size", "color", "transform", "orientation", "children"],
|
|
|
280
282
|
_excluded55 = ["size", "color", "filled", "strokeWidth"],
|
|
281
283
|
_excluded56 = ["size", "color", "filled", "strokeWidth"],
|
|
282
284
|
_excluded57 = ["size", "color", "filled", "strokeWidth"],
|
|
283
|
-
_excluded58 = ["size", "color", "
|
|
285
|
+
_excluded58 = ["size", "color", "filled", "strokeWidth"],
|
|
286
|
+
_excluded59 = ["size", "color", "filled", "strokeWidth"],
|
|
287
|
+
_excluded60 = ["size", "color", "filled", "strokeWidth"],
|
|
288
|
+
_excluded61 = ["size", "color", "filled", "strokeWidth"],
|
|
289
|
+
_excluded62 = ["size", "color", "filled", "strokeWidth"],
|
|
290
|
+
_excluded63 = ["size", "color", "filled", "strokeWidth"],
|
|
291
|
+
_excluded64 = ["size", "color", "strokeWidth", "filled"];
|
|
284
292
|
// Default wrapper component for consistent sizing and styling
|
|
285
293
|
var IconWrapper = _ref => {
|
|
286
294
|
var {
|
|
@@ -329,7 +337,7 @@ var ChevronIcon = _ref2 => {
|
|
|
329
337
|
d: "M12.771 7.115a.829.829 0 0 0-1.2 0L3 15.686l1.2 1.2 7.971-7.971 7.972 7.971 1.2-1.2-8.572-8.571Z"
|
|
330
338
|
})));
|
|
331
339
|
};
|
|
332
|
-
var
|
|
340
|
+
var DragHandleIcon = _ref3 => {
|
|
333
341
|
var {
|
|
334
342
|
size = 24,
|
|
335
343
|
color = 'currentColor',
|
|
@@ -344,6 +352,148 @@ var TwitterIcon = _ref3 => {
|
|
|
344
352
|
viewBox: "0 0 24 24",
|
|
345
353
|
"aria-hidden": "true",
|
|
346
354
|
focusable: "false"
|
|
355
|
+
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("circle", {
|
|
356
|
+
cx: "9",
|
|
357
|
+
cy: "6",
|
|
358
|
+
r: "2"
|
|
359
|
+
}), /*#__PURE__*/React__default.createElement("circle", {
|
|
360
|
+
cx: "9",
|
|
361
|
+
cy: "12",
|
|
362
|
+
r: "2"
|
|
363
|
+
}), /*#__PURE__*/React__default.createElement("circle", {
|
|
364
|
+
cx: "9",
|
|
365
|
+
cy: "18",
|
|
366
|
+
r: "2"
|
|
367
|
+
}), /*#__PURE__*/React__default.createElement("circle", {
|
|
368
|
+
cx: "15",
|
|
369
|
+
cy: "6",
|
|
370
|
+
r: "2"
|
|
371
|
+
}), /*#__PURE__*/React__default.createElement("circle", {
|
|
372
|
+
cx: "15",
|
|
373
|
+
cy: "12",
|
|
374
|
+
r: "2"
|
|
375
|
+
}), /*#__PURE__*/React__default.createElement("circle", {
|
|
376
|
+
cx: "15",
|
|
377
|
+
cy: "18",
|
|
378
|
+
r: "2"
|
|
379
|
+
}))));
|
|
380
|
+
};
|
|
381
|
+
// File Icon Component
|
|
382
|
+
var FileIcon = _ref4 => {
|
|
383
|
+
var {
|
|
384
|
+
size = 24,
|
|
385
|
+
color = 'currentColor',
|
|
386
|
+
filled = true,
|
|
387
|
+
strokeWidth = 1
|
|
388
|
+
} = _ref4,
|
|
389
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
390
|
+
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
391
|
+
size: size,
|
|
392
|
+
color: color
|
|
393
|
+
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
394
|
+
viewBox: "0 0 24 24",
|
|
395
|
+
"aria-hidden": "true",
|
|
396
|
+
focusable: "false"
|
|
397
|
+
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
398
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",
|
|
399
|
+
fill: filled ? color : 'none',
|
|
400
|
+
stroke: filled ? 'none' : color,
|
|
401
|
+
strokeWidth: filled ? 0 : strokeWidth
|
|
402
|
+
}), /*#__PURE__*/React__default.createElement("polyline", {
|
|
403
|
+
points: "14 2 14 8 20 8",
|
|
404
|
+
fill: "none",
|
|
405
|
+
stroke: color,
|
|
406
|
+
strokeWidth: strokeWidth
|
|
407
|
+
})));
|
|
408
|
+
};
|
|
409
|
+
// Video Icon Component
|
|
410
|
+
var VideoIcon = _ref5 => {
|
|
411
|
+
var {
|
|
412
|
+
size = 24,
|
|
413
|
+
color = 'currentColor',
|
|
414
|
+
filled = true,
|
|
415
|
+
strokeWidth = 1
|
|
416
|
+
} = _ref5,
|
|
417
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded5);
|
|
418
|
+
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
419
|
+
size: size,
|
|
420
|
+
color: color
|
|
421
|
+
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
422
|
+
viewBox: "0 0 24 24",
|
|
423
|
+
"aria-hidden": "true",
|
|
424
|
+
focusable: "false"
|
|
425
|
+
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("rect", {
|
|
426
|
+
x: "2",
|
|
427
|
+
y: "4",
|
|
428
|
+
width: "20",
|
|
429
|
+
height: "16",
|
|
430
|
+
rx: "2",
|
|
431
|
+
ry: "2",
|
|
432
|
+
fill: filled ? color : 'none',
|
|
433
|
+
stroke: filled ? 'none' : color,
|
|
434
|
+
strokeWidth: filled ? 0 : strokeWidth
|
|
435
|
+
}), /*#__PURE__*/React__default.createElement("polygon", {
|
|
436
|
+
points: "10 8 16 12 10 16 10 8",
|
|
437
|
+
fill: filled ? filled ? 'white' : color : 'none',
|
|
438
|
+
stroke: filled ? 'none' : color,
|
|
439
|
+
strokeWidth: filled ? 0 : strokeWidth
|
|
440
|
+
})));
|
|
441
|
+
};
|
|
442
|
+
// Image Icon Component
|
|
443
|
+
var ImageIcon = _ref6 => {
|
|
444
|
+
var {
|
|
445
|
+
size = 24,
|
|
446
|
+
color = 'currentColor',
|
|
447
|
+
filled = true,
|
|
448
|
+
strokeWidth = 1
|
|
449
|
+
} = _ref6,
|
|
450
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded6);
|
|
451
|
+
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
452
|
+
size: size,
|
|
453
|
+
color: color
|
|
454
|
+
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
455
|
+
viewBox: "0 0 24 24",
|
|
456
|
+
"aria-hidden": "true",
|
|
457
|
+
focusable: "false"
|
|
458
|
+
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("rect", {
|
|
459
|
+
x: "2",
|
|
460
|
+
y: "2",
|
|
461
|
+
width: "20",
|
|
462
|
+
height: "20",
|
|
463
|
+
rx: "2",
|
|
464
|
+
ry: "2",
|
|
465
|
+
fill: filled ? color : 'none',
|
|
466
|
+
stroke: filled ? 'none' : color,
|
|
467
|
+
strokeWidth: filled ? 0 : strokeWidth
|
|
468
|
+
}), /*#__PURE__*/React__default.createElement("circle", {
|
|
469
|
+
cx: "8.5",
|
|
470
|
+
cy: "8.5",
|
|
471
|
+
r: "1.5",
|
|
472
|
+
fill: filled ? filled ? 'white' : color : 'none',
|
|
473
|
+
stroke: filled ? 'none' : color,
|
|
474
|
+
strokeWidth: filled ? 0 : strokeWidth
|
|
475
|
+
}), /*#__PURE__*/React__default.createElement("polyline", {
|
|
476
|
+
points: "21 15 16 10 5 21",
|
|
477
|
+
fill: "none",
|
|
478
|
+
stroke: filled ? 'white' : color,
|
|
479
|
+
strokeWidth: strokeWidth
|
|
480
|
+
})));
|
|
481
|
+
};
|
|
482
|
+
var TwitterIcon = _ref7 => {
|
|
483
|
+
var {
|
|
484
|
+
size = 24,
|
|
485
|
+
color = 'currentColor',
|
|
486
|
+
filled = true,
|
|
487
|
+
strokeWidth = 1
|
|
488
|
+
} = _ref7,
|
|
489
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded7);
|
|
490
|
+
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
491
|
+
size: size,
|
|
492
|
+
color: color
|
|
493
|
+
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
494
|
+
viewBox: "0 0 24 24",
|
|
495
|
+
"aria-hidden": "true",
|
|
496
|
+
focusable: "false"
|
|
347
497
|
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
348
498
|
d: "M22.46 6.01c-.83.37-1.72.62-2.65.74a4.6 4.6 0 0 0 2.01-2.54 9.2 9.2 0 0 1-2.91 1.11 4.54 4.54 0 0 0-7.75 4.14A12.86 12.86 0 0 1 3.15 4.47a4.54 4.54 0 0 0 1.4 6.06 4.5 4.5 0 0 1-2.06-.57v.06a4.54 4.54 0 0 0 3.64 4.45 4.61 4.61 0 0 1-2.05.08 4.54 4.54 0 0 0 4.23 3.15 9.12 9.12 0 0 1-5.64 1.94c-.37 0-.74-.02-1.1-.07A12.86 12.86 0 0 0 8.21 21c8.38 0 12.96-6.94 12.96-12.96 0-.2 0-.4-.01-.6a9.28 9.28 0 0 0 2.3-2.37z",
|
|
349
499
|
fill: filled ? color : 'none',
|
|
@@ -351,14 +501,14 @@ var TwitterIcon = _ref3 => {
|
|
|
351
501
|
strokeWidth: filled ? 0 : strokeWidth
|
|
352
502
|
})));
|
|
353
503
|
};
|
|
354
|
-
var XIcon =
|
|
504
|
+
var XIcon = _ref8 => {
|
|
355
505
|
var {
|
|
356
506
|
size = 24,
|
|
357
507
|
color = 'currentColor',
|
|
358
508
|
filled = true,
|
|
359
509
|
strokeWidth = 1
|
|
360
|
-
} =
|
|
361
|
-
props = _objectWithoutPropertiesLoose(
|
|
510
|
+
} = _ref8,
|
|
511
|
+
props = _objectWithoutPropertiesLoose(_ref8, _excluded8);
|
|
362
512
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
363
513
|
size: size,
|
|
364
514
|
color: color
|
|
@@ -374,14 +524,14 @@ var XIcon = _ref4 => {
|
|
|
374
524
|
})));
|
|
375
525
|
};
|
|
376
526
|
// Example of a Twitch Icon
|
|
377
|
-
var TwitchIcon =
|
|
527
|
+
var TwitchIcon = _ref9 => {
|
|
378
528
|
var {
|
|
379
529
|
size = 24,
|
|
380
530
|
color = 'currentColor',
|
|
381
531
|
filled = true,
|
|
382
532
|
strokeWidth = 1
|
|
383
|
-
} =
|
|
384
|
-
props = _objectWithoutPropertiesLoose(
|
|
533
|
+
} = _ref9,
|
|
534
|
+
props = _objectWithoutPropertiesLoose(_ref9, _excluded9);
|
|
385
535
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
386
536
|
size: size,
|
|
387
537
|
color: color
|
|
@@ -402,14 +552,14 @@ var TwitchIcon = _ref5 => {
|
|
|
402
552
|
})));
|
|
403
553
|
};
|
|
404
554
|
// Example of another Icon: CloseIcon
|
|
405
|
-
var CloseIcon =
|
|
555
|
+
var CloseIcon = _ref10 => {
|
|
406
556
|
var {
|
|
407
557
|
size = 24,
|
|
408
558
|
color = 'currentColor',
|
|
409
559
|
filled = false,
|
|
410
560
|
strokeWidth = 1
|
|
411
|
-
} =
|
|
412
|
-
props = _objectWithoutPropertiesLoose(
|
|
561
|
+
} = _ref10,
|
|
562
|
+
props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
|
|
413
563
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
414
564
|
size: size,
|
|
415
565
|
color: color
|
|
@@ -431,14 +581,14 @@ var CloseIcon = _ref6 => {
|
|
|
431
581
|
y2: "18"
|
|
432
582
|
})));
|
|
433
583
|
};
|
|
434
|
-
var InstagramIcon =
|
|
584
|
+
var InstagramIcon = _ref11 => {
|
|
435
585
|
var {
|
|
436
586
|
size = 24,
|
|
437
587
|
color = 'currentColor',
|
|
438
588
|
filled = false,
|
|
439
589
|
strokeWidth = 1
|
|
440
|
-
} =
|
|
441
|
-
props = _objectWithoutPropertiesLoose(
|
|
590
|
+
} = _ref11,
|
|
591
|
+
props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
|
|
442
592
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
443
593
|
size: size,
|
|
444
594
|
color: color
|
|
@@ -462,14 +612,14 @@ var InstagramIcon = _ref7 => {
|
|
|
462
612
|
y2: "6.5"
|
|
463
613
|
})));
|
|
464
614
|
};
|
|
465
|
-
var YoutubeIcon =
|
|
615
|
+
var YoutubeIcon = _ref12 => {
|
|
466
616
|
var {
|
|
467
617
|
size = 24,
|
|
468
618
|
color = 'currentColor',
|
|
469
619
|
filled = true,
|
|
470
620
|
strokeWidth = 1
|
|
471
|
-
} =
|
|
472
|
-
props = _objectWithoutPropertiesLoose(
|
|
621
|
+
} = _ref12,
|
|
622
|
+
props = _objectWithoutPropertiesLoose(_ref12, _excluded12);
|
|
473
623
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
474
624
|
size: size,
|
|
475
625
|
color: color
|
|
@@ -490,14 +640,14 @@ var YoutubeIcon = _ref8 => {
|
|
|
490
640
|
strokeWidth: strokeWidth
|
|
491
641
|
})));
|
|
492
642
|
};
|
|
493
|
-
var FacebookIcon =
|
|
643
|
+
var FacebookIcon = _ref13 => {
|
|
494
644
|
var {
|
|
495
645
|
size = 24,
|
|
496
646
|
color = 'currentColor',
|
|
497
647
|
filled = true,
|
|
498
648
|
strokeWidth = 1
|
|
499
|
-
} =
|
|
500
|
-
props = _objectWithoutPropertiesLoose(
|
|
649
|
+
} = _ref13,
|
|
650
|
+
props = _objectWithoutPropertiesLoose(_ref13, _excluded13);
|
|
501
651
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
502
652
|
size: size,
|
|
503
653
|
color: color
|
|
@@ -512,14 +662,14 @@ var FacebookIcon = _ref9 => {
|
|
|
512
662
|
strokeWidth: filled ? 0 : strokeWidth
|
|
513
663
|
})));
|
|
514
664
|
};
|
|
515
|
-
var LinkedinIcon =
|
|
665
|
+
var LinkedinIcon = _ref14 => {
|
|
516
666
|
var {
|
|
517
667
|
size = 24,
|
|
518
668
|
color = 'currentColor',
|
|
519
669
|
filled = true,
|
|
520
670
|
strokeWidth = 1
|
|
521
|
-
} =
|
|
522
|
-
props = _objectWithoutPropertiesLoose(
|
|
671
|
+
} = _ref14,
|
|
672
|
+
props = _objectWithoutPropertiesLoose(_ref14, _excluded14);
|
|
523
673
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
524
674
|
size: size,
|
|
525
675
|
color: color
|
|
@@ -538,14 +688,14 @@ var LinkedinIcon = _ref10 => {
|
|
|
538
688
|
r: "2"
|
|
539
689
|
})));
|
|
540
690
|
};
|
|
541
|
-
var ThreadsIcon =
|
|
691
|
+
var ThreadsIcon = _ref15 => {
|
|
542
692
|
var {
|
|
543
693
|
size = 24,
|
|
544
694
|
color = 'currentColor',
|
|
545
695
|
filled = false,
|
|
546
696
|
strokeWidth = 1
|
|
547
|
-
} =
|
|
548
|
-
props = _objectWithoutPropertiesLoose(
|
|
697
|
+
} = _ref15,
|
|
698
|
+
props = _objectWithoutPropertiesLoose(_ref15, _excluded15);
|
|
549
699
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
550
700
|
size: size,
|
|
551
701
|
color: color
|
|
@@ -560,15 +710,15 @@ var ThreadsIcon = _ref11 => {
|
|
|
560
710
|
})));
|
|
561
711
|
};
|
|
562
712
|
// Example Refactored Icon: MinusIcon without undefined 'padding' prop
|
|
563
|
-
var MinusIcon =
|
|
713
|
+
var MinusIcon = _ref16 => {
|
|
564
714
|
var {
|
|
565
715
|
size = 24,
|
|
566
716
|
color = 'currentColor',
|
|
567
717
|
filled = false,
|
|
568
718
|
// Assuming minus can be filled; adjust as needed
|
|
569
719
|
strokeWidth = 1
|
|
570
|
-
} =
|
|
571
|
-
props = _objectWithoutPropertiesLoose(
|
|
720
|
+
} = _ref16,
|
|
721
|
+
props = _objectWithoutPropertiesLoose(_ref16, _excluded16);
|
|
572
722
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
573
723
|
size: size,
|
|
574
724
|
color: color
|
|
@@ -585,14 +735,14 @@ var MinusIcon = _ref12 => {
|
|
|
585
735
|
})));
|
|
586
736
|
};
|
|
587
737
|
// Example Refactored Icon: InfoIcon with accessibility enhancements
|
|
588
|
-
var InfoIcon =
|
|
738
|
+
var InfoIcon = _ref17 => {
|
|
589
739
|
var {
|
|
590
740
|
size = 24,
|
|
591
741
|
color = 'currentColor',
|
|
592
742
|
filled = false,
|
|
593
743
|
strokeWidth = 1
|
|
594
|
-
} =
|
|
595
|
-
props = _objectWithoutPropertiesLoose(
|
|
744
|
+
} = _ref17,
|
|
745
|
+
props = _objectWithoutPropertiesLoose(_ref17, _excluded17);
|
|
596
746
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
597
747
|
size: size,
|
|
598
748
|
color: color
|
|
@@ -606,14 +756,52 @@ var InfoIcon = _ref13 => {
|
|
|
606
756
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"
|
|
607
757
|
})));
|
|
608
758
|
};
|
|
609
|
-
var
|
|
759
|
+
var PlayIcon = _ref18 => {
|
|
610
760
|
var {
|
|
611
761
|
size = 24,
|
|
612
762
|
color = 'currentColor',
|
|
613
763
|
filled = true,
|
|
614
764
|
strokeWidth = 1
|
|
615
|
-
} =
|
|
616
|
-
props = _objectWithoutPropertiesLoose(
|
|
765
|
+
} = _ref18,
|
|
766
|
+
props = _objectWithoutPropertiesLoose(_ref18, _excluded18);
|
|
767
|
+
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
768
|
+
size: size,
|
|
769
|
+
color: color
|
|
770
|
+
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
771
|
+
viewBox: "0 0 24 24",
|
|
772
|
+
"aria-hidden": "false",
|
|
773
|
+
focusable: "false"
|
|
774
|
+
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
775
|
+
d: "M8 5v14l11-7z"
|
|
776
|
+
})));
|
|
777
|
+
};
|
|
778
|
+
var PauseIcon = _ref19 => {
|
|
779
|
+
var {
|
|
780
|
+
size = 24,
|
|
781
|
+
color = 'currentColor',
|
|
782
|
+
filled = true,
|
|
783
|
+
strokeWidth = 1
|
|
784
|
+
} = _ref19,
|
|
785
|
+
props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
|
|
786
|
+
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
787
|
+
size: size,
|
|
788
|
+
color: color
|
|
789
|
+
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
790
|
+
viewBox: "0 0 24 24",
|
|
791
|
+
"aria-hidden": "false",
|
|
792
|
+
focusable: "false"
|
|
793
|
+
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
794
|
+
d: "M6 4h4v16H6V4zm8 0h4v16h-4V4z"
|
|
795
|
+
})));
|
|
796
|
+
};
|
|
797
|
+
var HeartIcon = _ref20 => {
|
|
798
|
+
var {
|
|
799
|
+
size = 24,
|
|
800
|
+
color = 'currentColor',
|
|
801
|
+
filled = true,
|
|
802
|
+
strokeWidth = 1
|
|
803
|
+
} = _ref20,
|
|
804
|
+
props = _objectWithoutPropertiesLoose(_ref20, _excluded20);
|
|
617
805
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
618
806
|
size: size,
|
|
619
807
|
color: color
|
|
@@ -625,14 +813,14 @@ var HeartIcon = _ref14 => {
|
|
|
625
813
|
d: "M20.84 4.61c-1.54-1.56-4.04-1.56-5.59 0l-.7.72-.7-.72a3.95 3.95 0 0 0-5.59 0c-1.56 1.56-1.56 4.09 0 5.66l6.29 6.36 6.29-6.36c1.56-1.56 1.56-4.09 0-5.66z"
|
|
626
814
|
})));
|
|
627
815
|
};
|
|
628
|
-
var StarIcon =
|
|
816
|
+
var StarIcon = _ref21 => {
|
|
629
817
|
var {
|
|
630
818
|
size = 24,
|
|
631
819
|
color = 'currentColor',
|
|
632
820
|
filled = true,
|
|
633
821
|
strokeWidth = 1
|
|
634
|
-
} =
|
|
635
|
-
props = _objectWithoutPropertiesLoose(
|
|
822
|
+
} = _ref21,
|
|
823
|
+
props = _objectWithoutPropertiesLoose(_ref21, _excluded21);
|
|
636
824
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
637
825
|
size: size,
|
|
638
826
|
color: color
|
|
@@ -644,14 +832,14 @@ var StarIcon = _ref15 => {
|
|
|
644
832
|
points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"
|
|
645
833
|
})));
|
|
646
834
|
};
|
|
647
|
-
var SaveIcon =
|
|
835
|
+
var SaveIcon = _ref22 => {
|
|
648
836
|
var {
|
|
649
837
|
size = 24,
|
|
650
838
|
color = 'currentColor',
|
|
651
839
|
filled = false,
|
|
652
840
|
strokeWidth = 1
|
|
653
|
-
} =
|
|
654
|
-
props = _objectWithoutPropertiesLoose(
|
|
841
|
+
} = _ref22,
|
|
842
|
+
props = _objectWithoutPropertiesLoose(_ref22, _excluded22);
|
|
655
843
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
656
844
|
size: size,
|
|
657
845
|
color: color
|
|
@@ -667,14 +855,14 @@ var SaveIcon = _ref16 => {
|
|
|
667
855
|
points: "7 3 7 8 15 8"
|
|
668
856
|
})));
|
|
669
857
|
};
|
|
670
|
-
var WarningIcon =
|
|
858
|
+
var WarningIcon = _ref23 => {
|
|
671
859
|
var {
|
|
672
860
|
size = 24,
|
|
673
861
|
color = 'currentColor',
|
|
674
862
|
filled = false,
|
|
675
863
|
strokeWidth = 1
|
|
676
|
-
} =
|
|
677
|
-
props = _objectWithoutPropertiesLoose(
|
|
864
|
+
} = _ref23,
|
|
865
|
+
props = _objectWithoutPropertiesLoose(_ref23, _excluded23);
|
|
678
866
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
679
867
|
size: size,
|
|
680
868
|
color: color
|
|
@@ -698,14 +886,14 @@ var WarningIcon = _ref17 => {
|
|
|
698
886
|
y2: "15"
|
|
699
887
|
})));
|
|
700
888
|
};
|
|
701
|
-
var BatteryIcon =
|
|
889
|
+
var BatteryIcon = _ref24 => {
|
|
702
890
|
var {
|
|
703
891
|
size = 24,
|
|
704
892
|
color = 'currentColor',
|
|
705
893
|
filled = true,
|
|
706
894
|
strokeWidth = 1
|
|
707
|
-
} =
|
|
708
|
-
props = _objectWithoutPropertiesLoose(
|
|
895
|
+
} = _ref24,
|
|
896
|
+
props = _objectWithoutPropertiesLoose(_ref24, _excluded24);
|
|
709
897
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
710
898
|
size: size,
|
|
711
899
|
color: color
|
|
@@ -717,14 +905,14 @@ var BatteryIcon = _ref18 => {
|
|
|
717
905
|
d: "M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"
|
|
718
906
|
})));
|
|
719
907
|
};
|
|
720
|
-
var BookmarkIcon =
|
|
908
|
+
var BookmarkIcon = _ref25 => {
|
|
721
909
|
var {
|
|
722
910
|
size = 24,
|
|
723
911
|
color = 'currentColor',
|
|
724
912
|
filled = false,
|
|
725
913
|
strokeWidth = 1
|
|
726
|
-
} =
|
|
727
|
-
props = _objectWithoutPropertiesLoose(
|
|
914
|
+
} = _ref25,
|
|
915
|
+
props = _objectWithoutPropertiesLoose(_ref25, _excluded25);
|
|
728
916
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
729
917
|
size: size,
|
|
730
918
|
color: color
|
|
@@ -736,14 +924,14 @@ var BookmarkIcon = _ref19 => {
|
|
|
736
924
|
d: "M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"
|
|
737
925
|
})));
|
|
738
926
|
};
|
|
739
|
-
var CloudIcon =
|
|
927
|
+
var CloudIcon = _ref26 => {
|
|
740
928
|
var {
|
|
741
929
|
size = 24,
|
|
742
930
|
color = 'currentColor',
|
|
743
931
|
filled = true,
|
|
744
932
|
strokeWidth = 1
|
|
745
|
-
} =
|
|
746
|
-
props = _objectWithoutPropertiesLoose(
|
|
933
|
+
} = _ref26,
|
|
934
|
+
props = _objectWithoutPropertiesLoose(_ref26, _excluded26);
|
|
747
935
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
748
936
|
size: size,
|
|
749
937
|
color: color
|
|
@@ -755,14 +943,14 @@ var CloudIcon = _ref20 => {
|
|
|
755
943
|
d: "M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z"
|
|
756
944
|
})));
|
|
757
945
|
};
|
|
758
|
-
var CopyIcon =
|
|
946
|
+
var CopyIcon = _ref27 => {
|
|
759
947
|
var {
|
|
760
948
|
size = 24,
|
|
761
949
|
color = 'currentColor',
|
|
762
950
|
filled = false,
|
|
763
951
|
strokeWidth = 1
|
|
764
|
-
} =
|
|
765
|
-
props = _objectWithoutPropertiesLoose(
|
|
952
|
+
} = _ref27,
|
|
953
|
+
props = _objectWithoutPropertiesLoose(_ref27, _excluded27);
|
|
766
954
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
767
955
|
size: size,
|
|
768
956
|
color: color
|
|
@@ -781,14 +969,14 @@ var CopyIcon = _ref21 => {
|
|
|
781
969
|
d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
|
|
782
970
|
})));
|
|
783
971
|
};
|
|
784
|
-
var DustBinIcon =
|
|
972
|
+
var DustBinIcon = _ref28 => {
|
|
785
973
|
var {
|
|
786
974
|
size = 24,
|
|
787
975
|
color = 'currentColor',
|
|
788
976
|
filled = false,
|
|
789
977
|
strokeWidth = 1
|
|
790
|
-
} =
|
|
791
|
-
props = _objectWithoutPropertiesLoose(
|
|
978
|
+
} = _ref28,
|
|
979
|
+
props = _objectWithoutPropertiesLoose(_ref28, _excluded28);
|
|
792
980
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
793
981
|
size: size,
|
|
794
982
|
color: color
|
|
@@ -800,14 +988,14 @@ var DustBinIcon = _ref22 => {
|
|
|
800
988
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"
|
|
801
989
|
})));
|
|
802
990
|
};
|
|
803
|
-
var EditIcon =
|
|
991
|
+
var EditIcon = _ref29 => {
|
|
804
992
|
var {
|
|
805
993
|
size = 24,
|
|
806
994
|
color = 'currentColor',
|
|
807
995
|
filled = false,
|
|
808
996
|
strokeWidth = 1
|
|
809
|
-
} =
|
|
810
|
-
props = _objectWithoutPropertiesLoose(
|
|
997
|
+
} = _ref29,
|
|
998
|
+
props = _objectWithoutPropertiesLoose(_ref29, _excluded29);
|
|
811
999
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
812
1000
|
size: size,
|
|
813
1001
|
color: color
|
|
@@ -819,14 +1007,14 @@ var EditIcon = _ref23 => {
|
|
|
819
1007
|
d: "M18.3785 8.44975L8.9636 17.8648C8.6844 18.144 8.3288 18.3343 7.94161 18.4117L4.99988 19.0001L5.58823 16.0583C5.66566 15.6711 5.85597 15.3155 6.13517 15.0363L15.5501 5.62132M18.3785 8.44975L19.7927 7.03553C20.1832 6.64501 20.1832 6.01184 19.7927 5.62132L18.3785 4.20711C17.988 3.81658 17.3548 3.81658 16.9643 4.20711L15.5501 5.62132M18.3785 8.44975L15.5501 5.62132"
|
|
820
1008
|
})));
|
|
821
1009
|
};
|
|
822
|
-
var ErrorIcon =
|
|
1010
|
+
var ErrorIcon = _ref30 => {
|
|
823
1011
|
var {
|
|
824
1012
|
size = 24,
|
|
825
1013
|
color = 'currentColor',
|
|
826
1014
|
strokeWidth = 1,
|
|
827
1015
|
filled = true
|
|
828
|
-
} =
|
|
829
|
-
props = _objectWithoutPropertiesLoose(
|
|
1016
|
+
} = _ref30,
|
|
1017
|
+
props = _objectWithoutPropertiesLoose(_ref30, _excluded30);
|
|
830
1018
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
831
1019
|
size: size,
|
|
832
1020
|
color: color
|
|
@@ -852,14 +1040,14 @@ var ErrorIcon = _ref24 => {
|
|
|
852
1040
|
stroke: filled ? 'white' : color
|
|
853
1041
|
})));
|
|
854
1042
|
};
|
|
855
|
-
var DownloadIcon =
|
|
1043
|
+
var DownloadIcon = _ref31 => {
|
|
856
1044
|
var {
|
|
857
1045
|
size = 24,
|
|
858
1046
|
color = 'currentColor',
|
|
859
1047
|
filled = true,
|
|
860
1048
|
strokeWidth = 1
|
|
861
|
-
} =
|
|
862
|
-
props = _objectWithoutPropertiesLoose(
|
|
1049
|
+
} = _ref31,
|
|
1050
|
+
props = _objectWithoutPropertiesLoose(_ref31, _excluded31);
|
|
863
1051
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
864
1052
|
size: size,
|
|
865
1053
|
color: color
|
|
@@ -871,14 +1059,14 @@ var DownloadIcon = _ref25 => {
|
|
|
871
1059
|
d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
|
|
872
1060
|
})));
|
|
873
1061
|
};
|
|
874
|
-
var MenuIcon =
|
|
1062
|
+
var MenuIcon = _ref32 => {
|
|
875
1063
|
var {
|
|
876
1064
|
size = 24,
|
|
877
1065
|
color = 'currentColor',
|
|
878
1066
|
strokeWidth = 1,
|
|
879
1067
|
filled = false
|
|
880
|
-
} =
|
|
881
|
-
props = _objectWithoutPropertiesLoose(
|
|
1068
|
+
} = _ref32,
|
|
1069
|
+
props = _objectWithoutPropertiesLoose(_ref32, _excluded32);
|
|
882
1070
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
883
1071
|
size: size,
|
|
884
1072
|
color: color
|
|
@@ -906,14 +1094,14 @@ var MenuIcon = _ref26 => {
|
|
|
906
1094
|
y2: "18"
|
|
907
1095
|
})));
|
|
908
1096
|
};
|
|
909
|
-
var ShareIcon =
|
|
1097
|
+
var ShareIcon = _ref33 => {
|
|
910
1098
|
var {
|
|
911
1099
|
size = 24,
|
|
912
1100
|
color = 'currentColor',
|
|
913
1101
|
filled = false,
|
|
914
1102
|
strokeWidth = 1
|
|
915
|
-
} =
|
|
916
|
-
props = _objectWithoutPropertiesLoose(
|
|
1103
|
+
} = _ref33,
|
|
1104
|
+
props = _objectWithoutPropertiesLoose(_ref33, _excluded33);
|
|
917
1105
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
918
1106
|
size: size,
|
|
919
1107
|
color: color
|
|
@@ -947,14 +1135,14 @@ var ShareIcon = _ref27 => {
|
|
|
947
1135
|
y2: "10.49"
|
|
948
1136
|
})));
|
|
949
1137
|
};
|
|
950
|
-
var RefreshIcon =
|
|
1138
|
+
var RefreshIcon = _ref34 => {
|
|
951
1139
|
var {
|
|
952
1140
|
size = 24,
|
|
953
1141
|
color = 'currentColor',
|
|
954
1142
|
strokeWidth = 1,
|
|
955
1143
|
filled = false
|
|
956
|
-
} =
|
|
957
|
-
props = _objectWithoutPropertiesLoose(
|
|
1144
|
+
} = _ref34,
|
|
1145
|
+
props = _objectWithoutPropertiesLoose(_ref34, _excluded34);
|
|
958
1146
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
959
1147
|
size: size,
|
|
960
1148
|
color: color
|
|
@@ -968,14 +1156,14 @@ var RefreshIcon = _ref28 => {
|
|
|
968
1156
|
d: "M20.49 15a9 9 0 1 1-2.13-9.36L23 10"
|
|
969
1157
|
})));
|
|
970
1158
|
};
|
|
971
|
-
var PrintIcon =
|
|
1159
|
+
var PrintIcon = _ref35 => {
|
|
972
1160
|
var {
|
|
973
1161
|
size = 24,
|
|
974
1162
|
color = 'currentColor',
|
|
975
1163
|
filled = true,
|
|
976
1164
|
strokeWidth = 1
|
|
977
|
-
} =
|
|
978
|
-
props = _objectWithoutPropertiesLoose(
|
|
1165
|
+
} = _ref35,
|
|
1166
|
+
props = _objectWithoutPropertiesLoose(_ref35, _excluded35);
|
|
979
1167
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
980
1168
|
size: size,
|
|
981
1169
|
color: color
|
|
@@ -988,14 +1176,14 @@ var PrintIcon = _ref29 => {
|
|
|
988
1176
|
d: "M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"
|
|
989
1177
|
})));
|
|
990
1178
|
};
|
|
991
|
-
var PanelIcon =
|
|
1179
|
+
var PanelIcon = _ref36 => {
|
|
992
1180
|
var {
|
|
993
1181
|
size = 24,
|
|
994
1182
|
color = 'currentColor',
|
|
995
1183
|
strokeWidth = 1,
|
|
996
1184
|
filled = false
|
|
997
|
-
} =
|
|
998
|
-
props = _objectWithoutPropertiesLoose(
|
|
1185
|
+
} = _ref36,
|
|
1186
|
+
props = _objectWithoutPropertiesLoose(_ref36, _excluded36);
|
|
999
1187
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1000
1188
|
size: size,
|
|
1001
1189
|
color: color
|
|
@@ -1059,14 +1247,14 @@ var PanelIcon = _ref30 => {
|
|
|
1059
1247
|
y2: "16"
|
|
1060
1248
|
})));
|
|
1061
1249
|
};
|
|
1062
|
-
var FilterIcon =
|
|
1250
|
+
var FilterIcon = _ref37 => {
|
|
1063
1251
|
var {
|
|
1064
1252
|
size = 24,
|
|
1065
1253
|
color = 'currentColor',
|
|
1066
1254
|
filled = false,
|
|
1067
1255
|
strokeWidth = 1
|
|
1068
|
-
} =
|
|
1069
|
-
props = _objectWithoutPropertiesLoose(
|
|
1256
|
+
} = _ref37,
|
|
1257
|
+
props = _objectWithoutPropertiesLoose(_ref37, _excluded37);
|
|
1070
1258
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1071
1259
|
size: size,
|
|
1072
1260
|
color: color
|
|
@@ -1078,14 +1266,14 @@ var FilterIcon = _ref31 => {
|
|
|
1078
1266
|
d: "M3 4h18l-7 10v5l-4 2v-7L3 4z"
|
|
1079
1267
|
})));
|
|
1080
1268
|
};
|
|
1081
|
-
var HomeIcon =
|
|
1269
|
+
var HomeIcon = _ref38 => {
|
|
1082
1270
|
var {
|
|
1083
1271
|
size = 24,
|
|
1084
1272
|
color = 'currentColor',
|
|
1085
1273
|
filled = true,
|
|
1086
1274
|
strokeWidth = 1
|
|
1087
|
-
} =
|
|
1088
|
-
props = _objectWithoutPropertiesLoose(
|
|
1275
|
+
} = _ref38,
|
|
1276
|
+
props = _objectWithoutPropertiesLoose(_ref38, _excluded38);
|
|
1089
1277
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1090
1278
|
size: size,
|
|
1091
1279
|
color: color
|
|
@@ -1097,14 +1285,14 @@ var HomeIcon = _ref32 => {
|
|
|
1097
1285
|
d: "M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"
|
|
1098
1286
|
})));
|
|
1099
1287
|
};
|
|
1100
|
-
var LocationIcon =
|
|
1288
|
+
var LocationIcon = _ref39 => {
|
|
1101
1289
|
var {
|
|
1102
1290
|
size = 24,
|
|
1103
1291
|
color = 'currentColor',
|
|
1104
1292
|
filled = true,
|
|
1105
1293
|
strokeWidth = 1
|
|
1106
|
-
} =
|
|
1107
|
-
props = _objectWithoutPropertiesLoose(
|
|
1294
|
+
} = _ref39,
|
|
1295
|
+
props = _objectWithoutPropertiesLoose(_ref39, _excluded39);
|
|
1108
1296
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1109
1297
|
size: size,
|
|
1110
1298
|
color: color
|
|
@@ -1116,14 +1304,14 @@ var LocationIcon = _ref33 => {
|
|
|
1116
1304
|
d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"
|
|
1117
1305
|
})));
|
|
1118
1306
|
};
|
|
1119
|
-
var LockIcon =
|
|
1307
|
+
var LockIcon = _ref40 => {
|
|
1120
1308
|
var {
|
|
1121
1309
|
size = 24,
|
|
1122
1310
|
color = 'currentColor',
|
|
1123
1311
|
filled = false,
|
|
1124
1312
|
strokeWidth = 1
|
|
1125
|
-
} =
|
|
1126
|
-
props = _objectWithoutPropertiesLoose(
|
|
1313
|
+
} = _ref40,
|
|
1314
|
+
props = _objectWithoutPropertiesLoose(_ref40, _excluded40);
|
|
1127
1315
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1128
1316
|
size: size,
|
|
1129
1317
|
color: color
|
|
@@ -1142,14 +1330,14 @@ var LockIcon = _ref34 => {
|
|
|
1142
1330
|
d: "M7 11V7a5 5 0 0 1 10 0v4"
|
|
1143
1331
|
})));
|
|
1144
1332
|
};
|
|
1145
|
-
var MicrophoneIcon =
|
|
1333
|
+
var MicrophoneIcon = _ref41 => {
|
|
1146
1334
|
var {
|
|
1147
1335
|
size = 24,
|
|
1148
1336
|
color = 'currentColor',
|
|
1149
1337
|
filled = false,
|
|
1150
1338
|
strokeWidth = 1
|
|
1151
|
-
} =
|
|
1152
|
-
props = _objectWithoutPropertiesLoose(
|
|
1339
|
+
} = _ref41,
|
|
1340
|
+
props = _objectWithoutPropertiesLoose(_ref41, _excluded41);
|
|
1153
1341
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1154
1342
|
size: size,
|
|
1155
1343
|
color: color
|
|
@@ -1175,14 +1363,14 @@ var MicrophoneIcon = _ref35 => {
|
|
|
1175
1363
|
y2: "23"
|
|
1176
1364
|
})));
|
|
1177
1365
|
};
|
|
1178
|
-
var MoonIcon =
|
|
1366
|
+
var MoonIcon = _ref42 => {
|
|
1179
1367
|
var {
|
|
1180
1368
|
size = 24,
|
|
1181
1369
|
color = 'currentColor',
|
|
1182
1370
|
filled = true,
|
|
1183
1371
|
strokeWidth = 1
|
|
1184
|
-
} =
|
|
1185
|
-
props = _objectWithoutPropertiesLoose(
|
|
1372
|
+
} = _ref42,
|
|
1373
|
+
props = _objectWithoutPropertiesLoose(_ref42, _excluded42);
|
|
1186
1374
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1187
1375
|
size: size,
|
|
1188
1376
|
color: color
|
|
@@ -1194,14 +1382,14 @@ var MoonIcon = _ref36 => {
|
|
|
1194
1382
|
d: "M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"
|
|
1195
1383
|
})));
|
|
1196
1384
|
};
|
|
1197
|
-
var NotificationIcon =
|
|
1385
|
+
var NotificationIcon = _ref43 => {
|
|
1198
1386
|
var {
|
|
1199
1387
|
size = 24,
|
|
1200
1388
|
color = 'currentColor',
|
|
1201
1389
|
filled = false,
|
|
1202
1390
|
strokeWidth = 1
|
|
1203
|
-
} =
|
|
1204
|
-
props = _objectWithoutPropertiesLoose(
|
|
1391
|
+
} = _ref43,
|
|
1392
|
+
props = _objectWithoutPropertiesLoose(_ref43, _excluded43);
|
|
1205
1393
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1206
1394
|
size: size,
|
|
1207
1395
|
color: color
|
|
@@ -1215,14 +1403,14 @@ var NotificationIcon = _ref37 => {
|
|
|
1215
1403
|
d: "M13.73 21a2 2 0 0 1-3.46 0"
|
|
1216
1404
|
})));
|
|
1217
1405
|
};
|
|
1218
|
-
var OpenEyeIcon =
|
|
1406
|
+
var OpenEyeIcon = _ref44 => {
|
|
1219
1407
|
var {
|
|
1220
1408
|
size = 24,
|
|
1221
1409
|
color = 'currentColor',
|
|
1222
1410
|
filled = true,
|
|
1223
1411
|
strokeWidth = 1
|
|
1224
|
-
} =
|
|
1225
|
-
props = _objectWithoutPropertiesLoose(
|
|
1412
|
+
} = _ref44,
|
|
1413
|
+
props = _objectWithoutPropertiesLoose(_ref44, _excluded44);
|
|
1226
1414
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1227
1415
|
size: size,
|
|
1228
1416
|
color: color
|
|
@@ -1234,14 +1422,14 @@ var OpenEyeIcon = _ref38 => {
|
|
|
1234
1422
|
d: "M12 4C7 4 2.73 7.11 1 12c1.73 4.89 6 8 11 8s9.27-3.11 11-8c-1.73-4.89-6-8-11-8zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"
|
|
1235
1423
|
})));
|
|
1236
1424
|
};
|
|
1237
|
-
var ProfileIcon =
|
|
1425
|
+
var ProfileIcon = _ref45 => {
|
|
1238
1426
|
var {
|
|
1239
1427
|
size = 24,
|
|
1240
1428
|
color = 'currentColor',
|
|
1241
1429
|
filled = true,
|
|
1242
1430
|
strokeWidth = 1
|
|
1243
|
-
} =
|
|
1244
|
-
props = _objectWithoutPropertiesLoose(
|
|
1431
|
+
} = _ref45,
|
|
1432
|
+
props = _objectWithoutPropertiesLoose(_ref45, _excluded45);
|
|
1245
1433
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1246
1434
|
size: size,
|
|
1247
1435
|
color: color
|
|
@@ -1254,14 +1442,14 @@ var ProfileIcon = _ref39 => {
|
|
|
1254
1442
|
d: "M12 13c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4zm0-9c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z M12 2C9.79 2 8 3.79 8 6s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z M12 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"
|
|
1255
1443
|
}), ' '));
|
|
1256
1444
|
};
|
|
1257
|
-
var SettingsIcon =
|
|
1445
|
+
var SettingsIcon = _ref46 => {
|
|
1258
1446
|
var {
|
|
1259
1447
|
size = 24,
|
|
1260
1448
|
color = 'currentColor',
|
|
1261
1449
|
filled = false,
|
|
1262
1450
|
strokeWidth = 1
|
|
1263
|
-
} =
|
|
1264
|
-
props = _objectWithoutPropertiesLoose(
|
|
1451
|
+
} = _ref46,
|
|
1452
|
+
props = _objectWithoutPropertiesLoose(_ref46, _excluded46);
|
|
1265
1453
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1266
1454
|
size: size,
|
|
1267
1455
|
color: color
|
|
@@ -1273,14 +1461,14 @@ var SettingsIcon = _ref40 => {
|
|
|
1273
1461
|
d: "M19.4 13c0-.3.1-.6.1-1s0-.7-.1-1l2.1-1.6c.2-.2.2-.4.1-.6l-2-3.5c-.1-.2-.4-.3-.6-.2l-2.5 1c-.5-.4-1.1-.7-1.7-.9l-.4-2.6c0-.2-.3-.4-.5-.4h-4c-.2 0-.5.2-.5.4l-.4 2.6c-.6.2-1.2.5-1.7.9l-2.5-1c-.2-.1-.5 0-.6.2l-2 3.5c-.1.2-.1.4.1.6L4.6 11c0 .3-.1.6-.1 1s0 .7.1 1l-2.1 1.6c-.2.2-.2.4-.1.6l2 3.5c.1.2.4.3.6.2l2.5-1c.5.4 1.1.7 1.7.9l.4 2.6c0 .2.3.4.5.4h4c.2 0 .5-.2.5-.4l.4-2.6c.6-.2 1.2-.5 1.7-.9l2.5 1c.2.1.5 0 .6-.2l2-3.5c.1-.2.1-.4-.1-.6L19.4 13zM12 15.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z"
|
|
1274
1462
|
})));
|
|
1275
1463
|
};
|
|
1276
|
-
var SuccessIcon =
|
|
1464
|
+
var SuccessIcon = _ref47 => {
|
|
1277
1465
|
var {
|
|
1278
1466
|
size = 24,
|
|
1279
1467
|
color = 'currentColor',
|
|
1280
1468
|
filled = true,
|
|
1281
1469
|
strokeWidth = 1
|
|
1282
|
-
} =
|
|
1283
|
-
props = _objectWithoutPropertiesLoose(
|
|
1470
|
+
} = _ref47,
|
|
1471
|
+
props = _objectWithoutPropertiesLoose(_ref47, _excluded47);
|
|
1284
1472
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1285
1473
|
size: size,
|
|
1286
1474
|
color: color
|
|
@@ -1292,14 +1480,14 @@ var SuccessIcon = _ref41 => {
|
|
|
1292
1480
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
1293
1481
|
})));
|
|
1294
1482
|
};
|
|
1295
|
-
var UnLikeIcon =
|
|
1483
|
+
var UnLikeIcon = _ref48 => {
|
|
1296
1484
|
var {
|
|
1297
1485
|
size = 24,
|
|
1298
1486
|
color = 'currentColor',
|
|
1299
1487
|
filled = true,
|
|
1300
1488
|
strokeWidth = 1
|
|
1301
|
-
} =
|
|
1302
|
-
props = _objectWithoutPropertiesLoose(
|
|
1489
|
+
} = _ref48,
|
|
1490
|
+
props = _objectWithoutPropertiesLoose(_ref48, _excluded48);
|
|
1303
1491
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1304
1492
|
size: size,
|
|
1305
1493
|
color: color
|
|
@@ -1311,14 +1499,14 @@ var UnLikeIcon = _ref42 => {
|
|
|
1311
1499
|
d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"
|
|
1312
1500
|
})));
|
|
1313
1501
|
};
|
|
1314
|
-
var ClockIcon =
|
|
1502
|
+
var ClockIcon = _ref49 => {
|
|
1315
1503
|
var {
|
|
1316
1504
|
size = 24,
|
|
1317
1505
|
color = 'currentColor',
|
|
1318
1506
|
strokeWidth = 1,
|
|
1319
1507
|
filled = false
|
|
1320
|
-
} =
|
|
1321
|
-
props = _objectWithoutPropertiesLoose(
|
|
1508
|
+
} = _ref49,
|
|
1509
|
+
props = _objectWithoutPropertiesLoose(_ref49, _excluded49);
|
|
1322
1510
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1323
1511
|
size: size,
|
|
1324
1512
|
color: color
|
|
@@ -1334,14 +1522,14 @@ var ClockIcon = _ref43 => {
|
|
|
1334
1522
|
points: "12 6 12 12 16 14"
|
|
1335
1523
|
})));
|
|
1336
1524
|
};
|
|
1337
|
-
var CameraIcon =
|
|
1525
|
+
var CameraIcon = _ref50 => {
|
|
1338
1526
|
var {
|
|
1339
1527
|
size = 24,
|
|
1340
1528
|
color = 'currentColor',
|
|
1341
1529
|
strokeWidth = 1,
|
|
1342
1530
|
filled = false
|
|
1343
|
-
} =
|
|
1344
|
-
props = _objectWithoutPropertiesLoose(
|
|
1531
|
+
} = _ref50,
|
|
1532
|
+
props = _objectWithoutPropertiesLoose(_ref50, _excluded50);
|
|
1345
1533
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1346
1534
|
size: size,
|
|
1347
1535
|
color: color
|
|
@@ -1357,14 +1545,14 @@ var CameraIcon = _ref44 => {
|
|
|
1357
1545
|
r: "4"
|
|
1358
1546
|
})));
|
|
1359
1547
|
};
|
|
1360
|
-
var BluetoothIcon =
|
|
1548
|
+
var BluetoothIcon = _ref51 => {
|
|
1361
1549
|
var {
|
|
1362
1550
|
size = 24,
|
|
1363
1551
|
color = 'currentColor',
|
|
1364
1552
|
filled = true,
|
|
1365
1553
|
strokeWidth = 1
|
|
1366
|
-
} =
|
|
1367
|
-
props = _objectWithoutPropertiesLoose(
|
|
1554
|
+
} = _ref51,
|
|
1555
|
+
props = _objectWithoutPropertiesLoose(_ref51, _excluded51);
|
|
1368
1556
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1369
1557
|
size: size,
|
|
1370
1558
|
color: color
|
|
@@ -1376,14 +1564,14 @@ var BluetoothIcon = _ref45 => {
|
|
|
1376
1564
|
d: "M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L13 18.17v-3.76l1.88 1.88z"
|
|
1377
1565
|
})));
|
|
1378
1566
|
};
|
|
1379
|
-
var LikeIcon =
|
|
1567
|
+
var LikeIcon = _ref52 => {
|
|
1380
1568
|
var {
|
|
1381
1569
|
size = 24,
|
|
1382
1570
|
color = 'currentColor',
|
|
1383
1571
|
filled = true,
|
|
1384
1572
|
strokeWidth = 1
|
|
1385
|
-
} =
|
|
1386
|
-
props = _objectWithoutPropertiesLoose(
|
|
1573
|
+
} = _ref52,
|
|
1574
|
+
props = _objectWithoutPropertiesLoose(_ref52, _excluded52);
|
|
1387
1575
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1388
1576
|
size: size,
|
|
1389
1577
|
color: color
|
|
@@ -1395,14 +1583,14 @@ var LikeIcon = _ref46 => {
|
|
|
1395
1583
|
d: "M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"
|
|
1396
1584
|
})));
|
|
1397
1585
|
};
|
|
1398
|
-
var UnlockIcon =
|
|
1586
|
+
var UnlockIcon = _ref53 => {
|
|
1399
1587
|
var {
|
|
1400
1588
|
size = 24,
|
|
1401
1589
|
color = 'currentColor',
|
|
1402
1590
|
filled = false,
|
|
1403
1591
|
strokeWidth = 1
|
|
1404
|
-
} =
|
|
1405
|
-
props = _objectWithoutPropertiesLoose(
|
|
1592
|
+
} = _ref53,
|
|
1593
|
+
props = _objectWithoutPropertiesLoose(_ref53, _excluded53);
|
|
1406
1594
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1407
1595
|
size: size,
|
|
1408
1596
|
color: color
|
|
@@ -1421,14 +1609,14 @@ var UnlockIcon = _ref47 => {
|
|
|
1421
1609
|
d: "M7 11V7a5 5 0 0 1 9.9-1"
|
|
1422
1610
|
})));
|
|
1423
1611
|
};
|
|
1424
|
-
var WifiIcon =
|
|
1612
|
+
var WifiIcon = _ref54 => {
|
|
1425
1613
|
var {
|
|
1426
1614
|
size = 24,
|
|
1427
1615
|
color = 'currentColor',
|
|
1428
1616
|
filled = false,
|
|
1429
1617
|
strokeWidth = 1
|
|
1430
|
-
} =
|
|
1431
|
-
props = _objectWithoutPropertiesLoose(
|
|
1618
|
+
} = _ref54,
|
|
1619
|
+
props = _objectWithoutPropertiesLoose(_ref54, _excluded54);
|
|
1432
1620
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1433
1621
|
size: size,
|
|
1434
1622
|
color: color
|
|
@@ -1440,14 +1628,14 @@ var WifiIcon = _ref48 => {
|
|
|
1440
1628
|
d: "M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"
|
|
1441
1629
|
})));
|
|
1442
1630
|
};
|
|
1443
|
-
var UploadIcon =
|
|
1631
|
+
var UploadIcon = _ref55 => {
|
|
1444
1632
|
var {
|
|
1445
1633
|
size = 24,
|
|
1446
1634
|
color = 'currentColor',
|
|
1447
1635
|
filled = false,
|
|
1448
1636
|
strokeWidth = 1
|
|
1449
|
-
} =
|
|
1450
|
-
props = _objectWithoutPropertiesLoose(
|
|
1637
|
+
} = _ref55,
|
|
1638
|
+
props = _objectWithoutPropertiesLoose(_ref55, _excluded55);
|
|
1451
1639
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1452
1640
|
size: size,
|
|
1453
1641
|
color: color
|
|
@@ -1463,14 +1651,14 @@ var UploadIcon = _ref49 => {
|
|
|
1463
1651
|
d: "M12 12l0 9"
|
|
1464
1652
|
})));
|
|
1465
1653
|
};
|
|
1466
|
-
var SearchIcon =
|
|
1654
|
+
var SearchIcon = _ref56 => {
|
|
1467
1655
|
var {
|
|
1468
1656
|
size = 24,
|
|
1469
1657
|
color = 'currentColor',
|
|
1470
1658
|
filled = true,
|
|
1471
1659
|
strokeWidth = 1
|
|
1472
|
-
} =
|
|
1473
|
-
props = _objectWithoutPropertiesLoose(
|
|
1660
|
+
} = _ref56,
|
|
1661
|
+
props = _objectWithoutPropertiesLoose(_ref56, _excluded56);
|
|
1474
1662
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1475
1663
|
size: size,
|
|
1476
1664
|
color: color
|
|
@@ -1482,14 +1670,14 @@ var SearchIcon = _ref50 => {
|
|
|
1482
1670
|
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
|
|
1483
1671
|
})));
|
|
1484
1672
|
};
|
|
1485
|
-
var CloseEyeIcon =
|
|
1673
|
+
var CloseEyeIcon = _ref57 => {
|
|
1486
1674
|
var {
|
|
1487
1675
|
size = 24,
|
|
1488
1676
|
color = 'currentColor',
|
|
1489
1677
|
filled = true,
|
|
1490
1678
|
strokeWidth = 1
|
|
1491
|
-
} =
|
|
1492
|
-
props = _objectWithoutPropertiesLoose(
|
|
1679
|
+
} = _ref57,
|
|
1680
|
+
props = _objectWithoutPropertiesLoose(_ref57, _excluded57);
|
|
1493
1681
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1494
1682
|
size: size,
|
|
1495
1683
|
color: color
|
|
@@ -1502,14 +1690,14 @@ var CloseEyeIcon = _ref51 => {
|
|
|
1502
1690
|
fill: "currentColor"
|
|
1503
1691
|
})));
|
|
1504
1692
|
};
|
|
1505
|
-
var ExternalLinkIcon =
|
|
1693
|
+
var ExternalLinkIcon = _ref58 => {
|
|
1506
1694
|
var {
|
|
1507
1695
|
size = 24,
|
|
1508
1696
|
color = 'currentColor',
|
|
1509
1697
|
filled = true,
|
|
1510
1698
|
strokeWidth = 1
|
|
1511
|
-
} =
|
|
1512
|
-
props = _objectWithoutPropertiesLoose(
|
|
1699
|
+
} = _ref58,
|
|
1700
|
+
props = _objectWithoutPropertiesLoose(_ref58, _excluded58);
|
|
1513
1701
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1514
1702
|
size: size,
|
|
1515
1703
|
color: color
|
|
@@ -1521,14 +1709,14 @@ var ExternalLinkIcon = _ref52 => {
|
|
|
1521
1709
|
d: "M14 3h7v7h-2V5.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3ZM5 5h5v2H6v11h11v-4h2v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z"
|
|
1522
1710
|
})));
|
|
1523
1711
|
};
|
|
1524
|
-
var PlusIcon =
|
|
1712
|
+
var PlusIcon = _ref59 => {
|
|
1525
1713
|
var {
|
|
1526
1714
|
size = 24,
|
|
1527
1715
|
color = 'currentColor',
|
|
1528
1716
|
filled = false,
|
|
1529
1717
|
strokeWidth = 1
|
|
1530
|
-
} =
|
|
1531
|
-
props = _objectWithoutPropertiesLoose(
|
|
1718
|
+
} = _ref59,
|
|
1719
|
+
props = _objectWithoutPropertiesLoose(_ref59, _excluded59);
|
|
1532
1720
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1533
1721
|
size: size,
|
|
1534
1722
|
color: color
|
|
@@ -1550,14 +1738,14 @@ var PlusIcon = _ref53 => {
|
|
|
1550
1738
|
y2: "12"
|
|
1551
1739
|
})));
|
|
1552
1740
|
};
|
|
1553
|
-
var TickIcon =
|
|
1741
|
+
var TickIcon = _ref60 => {
|
|
1554
1742
|
var {
|
|
1555
1743
|
size = 24,
|
|
1556
1744
|
color = 'currentColor',
|
|
1557
1745
|
filled = false,
|
|
1558
1746
|
strokeWidth = 1
|
|
1559
|
-
} =
|
|
1560
|
-
props = _objectWithoutPropertiesLoose(
|
|
1747
|
+
} = _ref60,
|
|
1748
|
+
props = _objectWithoutPropertiesLoose(_ref60, _excluded60);
|
|
1561
1749
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1562
1750
|
size: size,
|
|
1563
1751
|
color: color
|
|
@@ -1571,14 +1759,14 @@ var TickIcon = _ref54 => {
|
|
|
1571
1759
|
strokeLinejoin: "round"
|
|
1572
1760
|
})));
|
|
1573
1761
|
};
|
|
1574
|
-
var BoldArrowIcon =
|
|
1762
|
+
var BoldArrowIcon = _ref61 => {
|
|
1575
1763
|
var {
|
|
1576
1764
|
size = 24,
|
|
1577
1765
|
color = 'currentColor',
|
|
1578
1766
|
filled = true,
|
|
1579
1767
|
strokeWidth = 1
|
|
1580
|
-
} =
|
|
1581
|
-
props = _objectWithoutPropertiesLoose(
|
|
1768
|
+
} = _ref61,
|
|
1769
|
+
props = _objectWithoutPropertiesLoose(_ref61, _excluded61);
|
|
1582
1770
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1583
1771
|
size: size,
|
|
1584
1772
|
color: color
|
|
@@ -1590,14 +1778,14 @@ var BoldArrowIcon = _ref55 => {
|
|
|
1590
1778
|
d: "M12 4l7 7h-4v7h-6v-7H5l7-7z"
|
|
1591
1779
|
})));
|
|
1592
1780
|
};
|
|
1593
|
-
var ArrowIcon =
|
|
1781
|
+
var ArrowIcon = _ref62 => {
|
|
1594
1782
|
var {
|
|
1595
1783
|
size = 24,
|
|
1596
1784
|
color = 'currentColor',
|
|
1597
1785
|
filled = false,
|
|
1598
1786
|
strokeWidth = 1
|
|
1599
|
-
} =
|
|
1600
|
-
props = _objectWithoutPropertiesLoose(
|
|
1787
|
+
} = _ref62,
|
|
1788
|
+
props = _objectWithoutPropertiesLoose(_ref62, _excluded62);
|
|
1601
1789
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1602
1790
|
size: size,
|
|
1603
1791
|
color: color
|
|
@@ -1615,14 +1803,14 @@ var ArrowIcon = _ref56 => {
|
|
|
1615
1803
|
points: "6 12 12 6 18 12"
|
|
1616
1804
|
})));
|
|
1617
1805
|
};
|
|
1618
|
-
var SpinnerIcon =
|
|
1806
|
+
var SpinnerIcon = _ref63 => {
|
|
1619
1807
|
var {
|
|
1620
1808
|
size = 24,
|
|
1621
1809
|
color = 'currentColor',
|
|
1622
1810
|
filled = false,
|
|
1623
1811
|
strokeWidth = 1
|
|
1624
|
-
} =
|
|
1625
|
-
props = _objectWithoutPropertiesLoose(
|
|
1812
|
+
} = _ref63,
|
|
1813
|
+
props = _objectWithoutPropertiesLoose(_ref63, _excluded63);
|
|
1626
1814
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1627
1815
|
size: size,
|
|
1628
1816
|
color: color
|
|
@@ -1640,14 +1828,14 @@ var SpinnerIcon = _ref57 => {
|
|
|
1640
1828
|
strokeOpacity: "1"
|
|
1641
1829
|
})));
|
|
1642
1830
|
};
|
|
1643
|
-
var CalendarIcon =
|
|
1831
|
+
var CalendarIcon = _ref64 => {
|
|
1644
1832
|
var {
|
|
1645
1833
|
size = 24,
|
|
1646
1834
|
color = 'currentColor',
|
|
1647
1835
|
strokeWidth = 1,
|
|
1648
1836
|
filled = false
|
|
1649
|
-
} =
|
|
1650
|
-
props = _objectWithoutPropertiesLoose(
|
|
1837
|
+
} = _ref64,
|
|
1838
|
+
props = _objectWithoutPropertiesLoose(_ref64, _excluded64);
|
|
1651
1839
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1652
1840
|
size: size,
|
|
1653
1841
|
color: color
|
|
@@ -1686,6 +1874,10 @@ var CalendarIcon = _ref58 => {
|
|
|
1686
1874
|
var Icon = {
|
|
1687
1875
|
__proto__: null,
|
|
1688
1876
|
ChevronIcon: ChevronIcon,
|
|
1877
|
+
DragHandleIcon: DragHandleIcon,
|
|
1878
|
+
FileIcon: FileIcon,
|
|
1879
|
+
VideoIcon: VideoIcon,
|
|
1880
|
+
ImageIcon: ImageIcon,
|
|
1689
1881
|
TwitterIcon: TwitterIcon,
|
|
1690
1882
|
XIcon: XIcon,
|
|
1691
1883
|
TwitchIcon: TwitchIcon,
|
|
@@ -1697,6 +1889,8 @@ var Icon = {
|
|
|
1697
1889
|
ThreadsIcon: ThreadsIcon,
|
|
1698
1890
|
MinusIcon: MinusIcon,
|
|
1699
1891
|
InfoIcon: InfoIcon,
|
|
1892
|
+
PlayIcon: PlayIcon,
|
|
1893
|
+
PauseIcon: PauseIcon,
|
|
1700
1894
|
HeartIcon: HeartIcon,
|
|
1701
1895
|
StarIcon: StarIcon,
|
|
1702
1896
|
SaveIcon: SaveIcon,
|
|
@@ -2519,7 +2713,7 @@ React__default.createElement(LoaderView, Object.assign({}, props)));
|
|
|
2519
2713
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
2520
2714
|
var Loader = LoaderComponent;
|
|
2521
2715
|
|
|
2522
|
-
var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode"];
|
|
2716
|
+
var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode", "containerProps", "linkProps"];
|
|
2523
2717
|
var contrast = /*#__PURE__*/require('contrast');
|
|
2524
2718
|
var ButtonView = _ref => {
|
|
2525
2719
|
var _props$onClick;
|
|
@@ -2554,7 +2748,9 @@ var ButtonView = _ref => {
|
|
|
2554
2748
|
isHovered,
|
|
2555
2749
|
setIsHovered = () => {},
|
|
2556
2750
|
isExternal = false,
|
|
2557
|
-
themeMode: elementMode
|
|
2751
|
+
themeMode: elementMode,
|
|
2752
|
+
containerProps,
|
|
2753
|
+
linkProps
|
|
2558
2754
|
// Defines CSS properties for 'outline' variant of the button with conditional styles based on reverse state.
|
|
2559
2755
|
} = _ref,
|
|
2560
2756
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
@@ -2617,7 +2813,11 @@ var ButtonView = _ref => {
|
|
|
2617
2813
|
var changePadding = isIconRounded ? IconSizes$1[size] : ButtonSizes[size];
|
|
2618
2814
|
var content = /*#__PURE__*/React__default.createElement(Horizontal, {
|
|
2619
2815
|
gap: 10
|
|
2620
|
-
}, isLoading && loaderPosition === 'left' && /*#__PURE__*/React__default.createElement(Loader, Object.assign({}, loaderProps)), icon && iconPosition === 'left' && !isLoading &&
|
|
2816
|
+
}, isLoading && loaderPosition === 'left' && /*#__PURE__*/React__default.createElement(Loader, Object.assign({}, loaderProps)), icon && iconPosition === 'left' && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, isHovered ? {
|
|
2817
|
+
animate: appStudio.Animation.jackInTheBox({})
|
|
2818
|
+
} : {}), icon)), children, icon && iconPosition === 'right' && !isLoading && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({}, isHovered ? {
|
|
2819
|
+
animate: appStudio.Animation.jackInTheBox({})
|
|
2820
|
+
} : {}), icon)), isLoading && loaderPosition === 'right' && /*#__PURE__*/React__default.createElement(Loader, Object.assign({}, loaderProps)));
|
|
2621
2821
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
2622
2822
|
gap: 8,
|
|
2623
2823
|
as: "button",
|
|
@@ -2637,12 +2837,12 @@ var ButtonView = _ref => {
|
|
|
2637
2837
|
}, hovering && !props.isDisabled ? {
|
|
2638
2838
|
transition: 'transform 0.3s ease',
|
|
2639
2839
|
transform: 'translateY(-5px)'
|
|
2640
|
-
} : {}, defaultNativeProps, buttonSizeStyles, buttonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, shadow, props), variant === 'link' && to ? (/*#__PURE__*/React__default.createElement(Link, {
|
|
2840
|
+
} : {}, defaultNativeProps, buttonSizeStyles, buttonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, shadow, props, containerProps), variant === 'link' && to ? (/*#__PURE__*/React__default.createElement(Link, Object.assign({
|
|
2641
2841
|
to: to,
|
|
2642
2842
|
textDecorationColor: colorScheme,
|
|
2643
2843
|
colorScheme: colorScheme,
|
|
2644
2844
|
isExternal: isExternal
|
|
2645
|
-
}, content)) : content);
|
|
2845
|
+
}, linkProps), content)) : content);
|
|
2646
2846
|
};
|
|
2647
2847
|
|
|
2648
2848
|
// Importing a custom hook to manage the state specific to the button component.
|
|
@@ -6765,6 +6965,277 @@ var MessageLayout = _ref => {
|
|
|
6765
6965
|
return visible ? MessageContainer : null;
|
|
6766
6966
|
};
|
|
6767
6967
|
|
|
6968
|
+
var useUpload = _ref => {
|
|
6969
|
+
var {
|
|
6970
|
+
maxSize = 100 * 1024 * 1024,
|
|
6971
|
+
// 100MB default
|
|
6972
|
+
onFileSelect,
|
|
6973
|
+
validateFile,
|
|
6974
|
+
thumbnail,
|
|
6975
|
+
onError = error => {
|
|
6976
|
+
showMessage('error', 'Error', error);
|
|
6977
|
+
}
|
|
6978
|
+
} = _ref;
|
|
6979
|
+
var fileInputRef = React.useRef(null);
|
|
6980
|
+
var videoRef = React.useRef(null);
|
|
6981
|
+
var [selectedFile, setSelectedFile] = React.useState(null);
|
|
6982
|
+
var [errorMessage, setErrorMessage] = React.useState(null);
|
|
6983
|
+
var [previewUrl, setPreviewUrl] = React.useState(null);
|
|
6984
|
+
var [thumbnailUrl, setThumbnailUrl] = React.useState(thumbnail || null);
|
|
6985
|
+
var generateThumbnail = videoFile => {
|
|
6986
|
+
var video = document.createElement('video');
|
|
6987
|
+
video.preload = 'metadata';
|
|
6988
|
+
video.onloadedmetadata = () => {
|
|
6989
|
+
video.currentTime = 1;
|
|
6990
|
+
};
|
|
6991
|
+
video.oncanplay = () => {
|
|
6992
|
+
var canvas = document.createElement('canvas');
|
|
6993
|
+
canvas.width = video.videoWidth;
|
|
6994
|
+
canvas.height = video.videoHeight;
|
|
6995
|
+
var ctx = canvas.getContext('2d');
|
|
6996
|
+
if (ctx) {
|
|
6997
|
+
ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
|
|
6998
|
+
var thumbnailDataUrl = canvas.toDataURL('image/jpeg');
|
|
6999
|
+
setThumbnailUrl(thumbnailDataUrl);
|
|
7000
|
+
}
|
|
7001
|
+
URL.revokeObjectURL(video.src);
|
|
7002
|
+
};
|
|
7003
|
+
video.src = URL.createObjectURL(videoFile);
|
|
7004
|
+
};
|
|
7005
|
+
var handleFileChange = React.useCallback(event => {
|
|
7006
|
+
var _event$target$files;
|
|
7007
|
+
var file = (_event$target$files = event.target.files) == null ? void 0 : _event$target$files[0];
|
|
7008
|
+
setErrorMessage(null);
|
|
7009
|
+
if (!file) {
|
|
7010
|
+
onError('No file selected');
|
|
7011
|
+
setErrorMessage('No file selected');
|
|
7012
|
+
return;
|
|
7013
|
+
}
|
|
7014
|
+
if (file.size > maxSize) {
|
|
7015
|
+
onError("File exceeds " + Math.round(maxSize / (1024 * 1024)) + "MB.");
|
|
7016
|
+
setErrorMessage("File exceeds " + Math.round(maxSize / (1024 * 1024)) + "MB.");
|
|
7017
|
+
return;
|
|
7018
|
+
}
|
|
7019
|
+
if (validateFile) {
|
|
7020
|
+
var validationError = validateFile(file);
|
|
7021
|
+
if (validationError) {
|
|
7022
|
+
onError(validationError);
|
|
7023
|
+
setErrorMessage(validationError);
|
|
7024
|
+
return;
|
|
7025
|
+
}
|
|
7026
|
+
}
|
|
7027
|
+
setPreviewUrl(URL.createObjectURL(file));
|
|
7028
|
+
if (file.type.startsWith('video/')) {
|
|
7029
|
+
generateThumbnail(file);
|
|
7030
|
+
}
|
|
7031
|
+
if (onFileSelect) {
|
|
7032
|
+
setSelectedFile(file);
|
|
7033
|
+
onFileSelect(file);
|
|
7034
|
+
}
|
|
7035
|
+
}, [maxSize, onFileSelect, validateFile]);
|
|
7036
|
+
var handleClick = () => {
|
|
7037
|
+
var _fileInputRef$current;
|
|
7038
|
+
return (_fileInputRef$current = fileInputRef.current) == null ? void 0 : _fileInputRef$current.click();
|
|
7039
|
+
};
|
|
7040
|
+
React.useEffect(() => {
|
|
7041
|
+
return () => {
|
|
7042
|
+
if (previewUrl) URL.revokeObjectURL(previewUrl);
|
|
7043
|
+
if (thumbnailUrl) URL.revokeObjectURL(thumbnailUrl);
|
|
7044
|
+
};
|
|
7045
|
+
}, [previewUrl, thumbnailUrl]);
|
|
7046
|
+
return {
|
|
7047
|
+
previewUrl,
|
|
7048
|
+
thumbnailUrl,
|
|
7049
|
+
errorMessage,
|
|
7050
|
+
fileInputRef,
|
|
7051
|
+
videoRef,
|
|
7052
|
+
selectedFile,
|
|
7053
|
+
handleFileChange,
|
|
7054
|
+
handleClick
|
|
7055
|
+
};
|
|
7056
|
+
};
|
|
7057
|
+
var Uploader = _ref2 => {
|
|
7058
|
+
var {
|
|
7059
|
+
accept = '*/*',
|
|
7060
|
+
isLoading = false,
|
|
7061
|
+
progress = 0,
|
|
7062
|
+
icon,
|
|
7063
|
+
text,
|
|
7064
|
+
maxSize,
|
|
7065
|
+
onFileSelect,
|
|
7066
|
+
validateFile,
|
|
7067
|
+
containerProps,
|
|
7068
|
+
errorMessageProps,
|
|
7069
|
+
progressProps,
|
|
7070
|
+
videoProps,
|
|
7071
|
+
imageProps,
|
|
7072
|
+
iconProps,
|
|
7073
|
+
textProps,
|
|
7074
|
+
renderError = _ref3 => {
|
|
7075
|
+
var {
|
|
7076
|
+
errorMessage,
|
|
7077
|
+
errorMessageProps
|
|
7078
|
+
} = _ref3;
|
|
7079
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
7080
|
+
color: "red",
|
|
7081
|
+
fontSize: 12,
|
|
7082
|
+
marginTop: 8
|
|
7083
|
+
}, errorMessageProps), errorMessage);
|
|
7084
|
+
},
|
|
7085
|
+
renderText = _ref4 => {
|
|
7086
|
+
var {
|
|
7087
|
+
text,
|
|
7088
|
+
textProps
|
|
7089
|
+
} = _ref4;
|
|
7090
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
7091
|
+
marginTop: 8
|
|
7092
|
+
}, textProps), text);
|
|
7093
|
+
},
|
|
7094
|
+
renderFile = _ref5 => {
|
|
7095
|
+
var {
|
|
7096
|
+
selectedFile,
|
|
7097
|
+
textProps
|
|
7098
|
+
} = _ref5;
|
|
7099
|
+
return /*#__PURE__*/React__default.createElement(Center, {
|
|
7100
|
+
marginTop: 8,
|
|
7101
|
+
gap: 10,
|
|
7102
|
+
flexDirection: "column"
|
|
7103
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
7104
|
+
maxLines: 2
|
|
7105
|
+
}, textProps), selectedFile.name), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, textProps), "(", Math.round(selectedFile.size / 1024), " KB)"));
|
|
7106
|
+
},
|
|
7107
|
+
renderVideo = _ref6 => {
|
|
7108
|
+
var {
|
|
7109
|
+
selectedFile,
|
|
7110
|
+
thumbnailUrl,
|
|
7111
|
+
videoRef,
|
|
7112
|
+
videoProps,
|
|
7113
|
+
imageProps,
|
|
7114
|
+
iconProps
|
|
7115
|
+
} = _ref6;
|
|
7116
|
+
console.log('thumbnailUrl', thumbnailUrl);
|
|
7117
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
7118
|
+
width: "100%",
|
|
7119
|
+
height: "100%",
|
|
7120
|
+
position: "relative"
|
|
7121
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
7122
|
+
as: "video",
|
|
7123
|
+
width: 0,
|
|
7124
|
+
height: 0,
|
|
7125
|
+
src: selectedFile == null ? void 0 : selectedFile.name,
|
|
7126
|
+
style: {
|
|
7127
|
+
objectFit: 'cover'
|
|
7128
|
+
},
|
|
7129
|
+
ref: videoRef
|
|
7130
|
+
}, videoProps)), /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
7131
|
+
src: thumbnailUrl,
|
|
7132
|
+
alt: "Video Thumbnail",
|
|
7133
|
+
width: "100%",
|
|
7134
|
+
height: "100%",
|
|
7135
|
+
objectFit: "cover"
|
|
7136
|
+
}, imageProps)), /*#__PURE__*/React__default.createElement(PlayIcon, Object.assign({
|
|
7137
|
+
position: "absolute",
|
|
7138
|
+
top: "50%",
|
|
7139
|
+
left: "50%",
|
|
7140
|
+
color: "white",
|
|
7141
|
+
size: '20%',
|
|
7142
|
+
transform: "translate(-50%, -50%)"
|
|
7143
|
+
}, iconProps)));
|
|
7144
|
+
},
|
|
7145
|
+
renderImage = _ref7 => {
|
|
7146
|
+
var {
|
|
7147
|
+
previewUrl,
|
|
7148
|
+
imageProps
|
|
7149
|
+
} = _ref7;
|
|
7150
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
7151
|
+
src: previewUrl,
|
|
7152
|
+
alt: "Preview",
|
|
7153
|
+
width: "100%",
|
|
7154
|
+
height: "100%",
|
|
7155
|
+
objectFit: "cover"
|
|
7156
|
+
}, imageProps));
|
|
7157
|
+
},
|
|
7158
|
+
renderProgress = _ref8 => {
|
|
7159
|
+
var {
|
|
7160
|
+
progress,
|
|
7161
|
+
progressProps
|
|
7162
|
+
} = _ref8;
|
|
7163
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
7164
|
+
gap: 8,
|
|
7165
|
+
alignItems: "center"
|
|
7166
|
+
}, progressProps), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
7167
|
+
height: 4,
|
|
7168
|
+
backgroundColor: "rgba(0,0,0,0.1)",
|
|
7169
|
+
width: "100%",
|
|
7170
|
+
borderRadius: 2
|
|
7171
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
7172
|
+
height: 4,
|
|
7173
|
+
width: progress + "%",
|
|
7174
|
+
borderRadius: 2
|
|
7175
|
+
})), /*#__PURE__*/React__default.createElement(appStudio.Text, {
|
|
7176
|
+
fontSize: 12
|
|
7177
|
+
}, progress, "%"));
|
|
7178
|
+
}
|
|
7179
|
+
} = _ref2;
|
|
7180
|
+
var {
|
|
7181
|
+
previewUrl,
|
|
7182
|
+
thumbnailUrl,
|
|
7183
|
+
errorMessage,
|
|
7184
|
+
videoRef,
|
|
7185
|
+
fileInputRef,
|
|
7186
|
+
selectedFile,
|
|
7187
|
+
handleFileChange,
|
|
7188
|
+
handleClick
|
|
7189
|
+
} = useUpload({
|
|
7190
|
+
accept,
|
|
7191
|
+
maxSize,
|
|
7192
|
+
onFileSelect,
|
|
7193
|
+
validateFile
|
|
7194
|
+
});
|
|
7195
|
+
var fileType = previewUrl && accept.includes('video') ? 'video' : previewUrl && accept.includes('image') ? 'image' : 'file';
|
|
7196
|
+
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
7197
|
+
onClick: handleClick,
|
|
7198
|
+
cursor: "pointer",
|
|
7199
|
+
border: "1px solid rgba(0,0,0,0.1)",
|
|
7200
|
+
borderRadius: 8,
|
|
7201
|
+
padding: 16,
|
|
7202
|
+
flexDirection: "column",
|
|
7203
|
+
overflow: "hidden",
|
|
7204
|
+
position: "relative"
|
|
7205
|
+
}, containerProps), progress == 100 && fileType == 'image' && previewUrl && renderImage({
|
|
7206
|
+
previewUrl,
|
|
7207
|
+
imageProps
|
|
7208
|
+
}), progress == 100 && fileType == 'video' && thumbnailUrl && renderVideo({
|
|
7209
|
+
thumbnailUrl,
|
|
7210
|
+
videoRef,
|
|
7211
|
+
videoProps,
|
|
7212
|
+
iconProps
|
|
7213
|
+
}), progress == 100 && fileType == 'file' && previewUrl && renderFile({
|
|
7214
|
+
selectedFile,
|
|
7215
|
+
textProps
|
|
7216
|
+
}), progress < 100 && (icon || /*#__PURE__*/React__default.createElement(UploadIcon, Object.assign({
|
|
7217
|
+
size: 32
|
|
7218
|
+
}, iconProps))), !selectedFile && text && renderText({
|
|
7219
|
+
text,
|
|
7220
|
+
textProps
|
|
7221
|
+
}), isLoading && renderProgress({
|
|
7222
|
+
progress,
|
|
7223
|
+
progressProps
|
|
7224
|
+
}), renderError({
|
|
7225
|
+
errorMessage,
|
|
7226
|
+
errorMessageProps
|
|
7227
|
+
}), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
7228
|
+
as: "input",
|
|
7229
|
+
type: "file",
|
|
7230
|
+
ref: fileInputRef,
|
|
7231
|
+
onChange: handleFileChange,
|
|
7232
|
+
accept: accept,
|
|
7233
|
+
style: {
|
|
7234
|
+
display: 'none'
|
|
7235
|
+
}
|
|
7236
|
+
}));
|
|
7237
|
+
};
|
|
7238
|
+
|
|
6768
7239
|
var useModalStore = /*#__PURE__*/zustand.create(set => ({
|
|
6769
7240
|
modals: [],
|
|
6770
7241
|
onHide: name => name,
|
|
@@ -7484,6 +7955,135 @@ var ToggleGroupComponent = _ref => {
|
|
|
7484
7955
|
// Expose the ToggleGroupComponent for import into other modules
|
|
7485
7956
|
var ToggleGroup = ToggleGroupComponent;
|
|
7486
7957
|
|
|
7958
|
+
var useDragAndDropState = _ref => {
|
|
7959
|
+
var {
|
|
7960
|
+
items: initialItems,
|
|
7961
|
+
onChange
|
|
7962
|
+
} = _ref;
|
|
7963
|
+
var [items, setItems] = React.useState(initialItems);
|
|
7964
|
+
var [draggedItem, setDraggedItem] = React.useState(null);
|
|
7965
|
+
var [draggedIndex, setDraggedIndex] = React.useState(null);
|
|
7966
|
+
var dragStartPosRef = React.useRef({
|
|
7967
|
+
x: 0,
|
|
7968
|
+
y: 0
|
|
7969
|
+
});
|
|
7970
|
+
var itemRefs = React.useRef([]);
|
|
7971
|
+
var handleDragStart = React.useCallback((e, index) => {
|
|
7972
|
+
e.preventDefault();
|
|
7973
|
+
document.body.style.cursor = 'grabbing';
|
|
7974
|
+
var clientX = 'touches' in e ? e.touches[0].clientX : e.clientX;
|
|
7975
|
+
var clientY = 'touches' in e ? e.touches[0].clientY : e.clientY;
|
|
7976
|
+
dragStartPosRef.current = {
|
|
7977
|
+
x: clientX,
|
|
7978
|
+
y: clientY
|
|
7979
|
+
};
|
|
7980
|
+
setDraggedIndex(index);
|
|
7981
|
+
setDraggedItem(items[index]);
|
|
7982
|
+
}, [items]);
|
|
7983
|
+
var handleDragMove = React.useCallback(e => {
|
|
7984
|
+
if (draggedIndex === null) return;
|
|
7985
|
+
var clientX = 'touches' in e ? e.touches[0].clientX : e.clientX;
|
|
7986
|
+
var clientY = 'touches' in e ? e.touches[0].clientY : e.clientY;
|
|
7987
|
+
var draggedElement = itemRefs.current[draggedIndex];
|
|
7988
|
+
if (!draggedElement) return;
|
|
7989
|
+
var offsetX = clientX - dragStartPosRef.current.x;
|
|
7990
|
+
var offsetY = clientY - dragStartPosRef.current.y;
|
|
7991
|
+
draggedElement.style.transform = "translate(" + offsetX + "px, " + offsetY + "px)";
|
|
7992
|
+
draggedElement.style.zIndex = '1000';
|
|
7993
|
+
// Find the item being hovered over
|
|
7994
|
+
var hoveredIndex = itemRefs.current.findIndex((itemRef, index) => {
|
|
7995
|
+
if (!itemRef || index === draggedIndex) return false;
|
|
7996
|
+
var rect = itemRef.getBoundingClientRect();
|
|
7997
|
+
return clientY >= rect.top && clientY <= rect.bottom;
|
|
7998
|
+
});
|
|
7999
|
+
if (hoveredIndex !== -1 && hoveredIndex !== draggedIndex) {
|
|
8000
|
+
var newItems = [...items];
|
|
8001
|
+
var [removed] = newItems.splice(draggedIndex, 1);
|
|
8002
|
+
newItems.splice(hoveredIndex, 0, removed);
|
|
8003
|
+
setItems(newItems);
|
|
8004
|
+
setDraggedIndex(hoveredIndex);
|
|
8005
|
+
onChange == null || onChange(newItems);
|
|
8006
|
+
dragStartPosRef.current = {
|
|
8007
|
+
x: clientX,
|
|
8008
|
+
y: clientY
|
|
8009
|
+
};
|
|
8010
|
+
}
|
|
8011
|
+
}, [draggedIndex, items, onChange]);
|
|
8012
|
+
var handleDragEnd = React.useCallback(() => {
|
|
8013
|
+
document.body.style.cursor = '';
|
|
8014
|
+
itemRefs.current.forEach(el => {
|
|
8015
|
+
if (el) {
|
|
8016
|
+
el.style.transform = '';
|
|
8017
|
+
el.style.zIndex = '';
|
|
8018
|
+
}
|
|
8019
|
+
});
|
|
8020
|
+
setDraggedIndex(null);
|
|
8021
|
+
setDraggedItem(null);
|
|
8022
|
+
}, [draggedIndex]);
|
|
8023
|
+
React.useEffect(() => {
|
|
8024
|
+
if (draggedIndex !== null) {
|
|
8025
|
+
window.addEventListener('mousemove', handleDragMove);
|
|
8026
|
+
window.addEventListener('touchmove', handleDragMove);
|
|
8027
|
+
window.addEventListener('mouseup', handleDragEnd);
|
|
8028
|
+
window.addEventListener('touchend', handleDragEnd);
|
|
8029
|
+
}
|
|
8030
|
+
return () => {
|
|
8031
|
+
window.removeEventListener('mousemove', handleDragMove);
|
|
8032
|
+
window.removeEventListener('touchmove', handleDragMove);
|
|
8033
|
+
window.removeEventListener('mouseup', handleDragEnd);
|
|
8034
|
+
window.removeEventListener('touchend', handleDragEnd);
|
|
8035
|
+
};
|
|
8036
|
+
}, [draggedIndex, handleDragMove, handleDragEnd]);
|
|
8037
|
+
return {
|
|
8038
|
+
items,
|
|
8039
|
+
draggedItem,
|
|
8040
|
+
draggedIndex,
|
|
8041
|
+
itemRefs,
|
|
8042
|
+
handleDragStart
|
|
8043
|
+
};
|
|
8044
|
+
};
|
|
8045
|
+
|
|
8046
|
+
var DragAndDropView = _ref => {
|
|
8047
|
+
var {
|
|
8048
|
+
items,
|
|
8049
|
+
renderItem,
|
|
8050
|
+
containerProps,
|
|
8051
|
+
itemProps,
|
|
8052
|
+
draggedIndex,
|
|
8053
|
+
itemRefs,
|
|
8054
|
+
handleDragStart
|
|
8055
|
+
} = _ref;
|
|
8056
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8057
|
+
overflow: "hidden",
|
|
8058
|
+
position: "relative"
|
|
8059
|
+
}, containerProps), items.map((item, index) => (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8060
|
+
key: index,
|
|
8061
|
+
ref: el => itemRefs.current[index] = el,
|
|
8062
|
+
onMouseDown: e => handleDragStart(e, index),
|
|
8063
|
+
onTouchStart: e => handleDragStart(e, index),
|
|
8064
|
+
position: "relative",
|
|
8065
|
+
cursor: "grab",
|
|
8066
|
+
transition: "transform 0.2s",
|
|
8067
|
+
backgroundColor: draggedIndex === index ? 'color.gray.100' : 'transparent'
|
|
8068
|
+
}, itemProps), renderItem ? renderItem(item, index) : item))));
|
|
8069
|
+
};
|
|
8070
|
+
|
|
8071
|
+
var DragAndDropComponent = props => {
|
|
8072
|
+
var {
|
|
8073
|
+
items,
|
|
8074
|
+
draggedIndex,
|
|
8075
|
+
itemRefs,
|
|
8076
|
+
handleDragStart
|
|
8077
|
+
} = useDragAndDropState(props);
|
|
8078
|
+
return /*#__PURE__*/React__default.createElement(DragAndDropView, Object.assign({}, props, {
|
|
8079
|
+
items: items,
|
|
8080
|
+
draggedIndex: draggedIndex,
|
|
8081
|
+
itemRefs: itemRefs,
|
|
8082
|
+
handleDragStart: handleDragStart
|
|
8083
|
+
}));
|
|
8084
|
+
};
|
|
8085
|
+
var DragAndDrop = DragAndDropComponent;
|
|
8086
|
+
|
|
7487
8087
|
exports.Alert = Alert;
|
|
7488
8088
|
exports.ArrowIcon = ArrowIcon;
|
|
7489
8089
|
exports.AspectRatio = AspectRatio;
|
|
@@ -7510,11 +8110,15 @@ exports.CopyIcon = CopyIcon;
|
|
|
7510
8110
|
exports.CountryPicker = CountryPicker;
|
|
7511
8111
|
exports.DatePicker = DatePicker;
|
|
7512
8112
|
exports.DownloadIcon = DownloadIcon;
|
|
8113
|
+
exports.DragAndDrop = DragAndDrop;
|
|
8114
|
+
exports.DragAndDropComponent = DragAndDropComponent;
|
|
8115
|
+
exports.DragHandleIcon = DragHandleIcon;
|
|
7513
8116
|
exports.DustBinIcon = DustBinIcon;
|
|
7514
8117
|
exports.EditIcon = EditIcon;
|
|
7515
8118
|
exports.ErrorIcon = ErrorIcon;
|
|
7516
8119
|
exports.ExternalLinkIcon = ExternalLinkIcon;
|
|
7517
8120
|
exports.FacebookIcon = FacebookIcon;
|
|
8121
|
+
exports.FileIcon = FileIcon;
|
|
7518
8122
|
exports.FileImage = FileImage;
|
|
7519
8123
|
exports.FileSVG = FileSVG;
|
|
7520
8124
|
exports.FilterIcon = FilterIcon;
|
|
@@ -7533,6 +8137,7 @@ exports.HomeIcon = HomeIcon;
|
|
|
7533
8137
|
exports.Horizontal = Horizontal;
|
|
7534
8138
|
exports.HorizontalBase = HorizontalBase;
|
|
7535
8139
|
exports.Icon = Icon;
|
|
8140
|
+
exports.ImageIcon = ImageIcon;
|
|
7536
8141
|
exports.InfoIcon = InfoIcon;
|
|
7537
8142
|
exports.Inline = Inline;
|
|
7538
8143
|
exports.InstagramIcon = InstagramIcon;
|
|
@@ -7554,6 +8159,8 @@ exports.NotificationIcon = NotificationIcon;
|
|
|
7554
8159
|
exports.OpenEyeIcon = OpenEyeIcon;
|
|
7555
8160
|
exports.PanelIcon = PanelIcon;
|
|
7556
8161
|
exports.Password = Password;
|
|
8162
|
+
exports.PauseIcon = PauseIcon;
|
|
8163
|
+
exports.PlayIcon = PlayIcon;
|
|
7557
8164
|
exports.PlusIcon = PlusIcon;
|
|
7558
8165
|
exports.PrintIcon = PrintIcon;
|
|
7559
8166
|
exports.ProfileIcon = ProfileIcon;
|
|
@@ -7583,8 +8190,10 @@ exports.TwitterIcon = TwitterIcon;
|
|
|
7583
8190
|
exports.UnLikeIcon = UnLikeIcon;
|
|
7584
8191
|
exports.UnlockIcon = UnlockIcon;
|
|
7585
8192
|
exports.UploadIcon = UploadIcon;
|
|
8193
|
+
exports.Uploader = Uploader;
|
|
7586
8194
|
exports.Vertical = Vertical;
|
|
7587
8195
|
exports.VerticalBase = VerticalBase;
|
|
8196
|
+
exports.VideoIcon = VideoIcon;
|
|
7588
8197
|
exports.View = View;
|
|
7589
8198
|
exports.WarningIcon = WarningIcon;
|
|
7590
8199
|
exports.WifiIcon = WifiIcon;
|
|
@@ -7596,4 +8205,5 @@ exports.showMessage = showMessage;
|
|
|
7596
8205
|
exports.showModal = showModal;
|
|
7597
8206
|
exports.useMessageStore = useMessageStore;
|
|
7598
8207
|
exports.useModalStore = useModalStore;
|
|
8208
|
+
exports.useUpload = useUpload;
|
|
7599
8209
|
//# sourceMappingURL=web.cjs.development.js.map
|