@app-studio/web 0.3.28 → 0.3.29
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.
|
@@ -9,7 +9,6 @@ var React__default = _interopDefault(React);
|
|
|
9
9
|
var appStudio = require('app-studio');
|
|
10
10
|
var reactRouterDom = require('react-router-dom');
|
|
11
11
|
var format = _interopDefault(require('date-fns/format'));
|
|
12
|
-
var Svg = require('src/components/Svg');
|
|
13
12
|
var zustand = require('zustand');
|
|
14
13
|
|
|
15
14
|
var useButtonState = function useButtonState() {
|
|
@@ -284,12 +283,43 @@ var CloseSvg = function CloseSvg(_ref) {
|
|
|
284
283
|
};
|
|
285
284
|
|
|
286
285
|
var _excluded$6 = ["size", "color"];
|
|
286
|
+
var CloseEyeSvg = function CloseEyeSvg(_ref) {
|
|
287
|
+
var _ref$size = _ref.size,
|
|
288
|
+
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
289
|
+
_ref$color = _ref.color,
|
|
290
|
+
color = _ref$color === void 0 ? '#2F4858' : _ref$color,
|
|
291
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
292
|
+
return React__default.createElement(Center, {
|
|
293
|
+
width: size + "px",
|
|
294
|
+
height: size + "px"
|
|
295
|
+
}, React__default.createElement("svg", Object.assign({
|
|
296
|
+
viewBox: "0 0 24 24",
|
|
297
|
+
fill: "none",
|
|
298
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
299
|
+
}, props), React__default.createElement("g", {
|
|
300
|
+
id: "SVGRepo_bgCarrier",
|
|
301
|
+
strokeWidth: "0"
|
|
302
|
+
}), React__default.createElement("g", {
|
|
303
|
+
id: "SVGRepo_tracerCarrier",
|
|
304
|
+
strokeLinecap: "round",
|
|
305
|
+
strokeLinejoin: "round"
|
|
306
|
+
}), React__default.createElement("g", {
|
|
307
|
+
id: "SVGRepo_iconCarrier"
|
|
308
|
+
}, React__default.createElement("path", {
|
|
309
|
+
fillRule: "evenodd",
|
|
310
|
+
clipRule: "evenodd",
|
|
311
|
+
d: "M19.7071 5.70711C20.0976 5.31658 20.0976 4.68342 19.7071 4.29289C19.3166 3.90237 18.6834 3.90237 18.2929 4.29289L14.032 8.55382C13.4365 8.20193 12.7418 8 12 8C9.79086 8 8 9.79086 8 12C8 12.7418 8.20193 13.4365 8.55382 14.032L4.29289 18.2929C3.90237 18.6834 3.90237 19.3166 4.29289 19.7071C4.68342 20.0976 5.31658 20.0976 5.70711 19.7071L9.96803 15.4462C10.5635 15.7981 11.2582 16 12 16C14.2091 16 16 14.2091 16 12C16 11.2582 15.7981 10.5635 15.4462 9.96803L19.7071 5.70711ZM12.518 10.0677C12.3528 10.0236 12.1792 10 12 10C10.8954 10 10 10.8954 10 12C10 12.1792 10.0236 12.3528 10.0677 12.518L12.518 10.0677ZM11.482 13.9323L13.9323 11.482C13.9764 11.6472 14 11.8208 14 12C14 13.1046 13.1046 14 12 14C11.8208 14 11.6472 13.9764 11.482 13.9323ZM15.7651 4.8207C14.6287 4.32049 13.3675 4 12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C1.92276 13.7326 2.86706 15.0637 4.21194 16.3739L5.62626 14.9596C4.4555 13.8229 3.61144 12.6531 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C12.7719 6 13.5135 6.13385 14.2193 6.36658L15.7651 4.8207ZM12 18C11.2282 18 10.4866 17.8661 9.78083 17.6334L8.23496 19.1793C9.37136 19.6795 10.6326 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C22.0773 10.2674 21.133 8.93627 19.7881 7.62611L18.3738 9.04043C19.5446 10.1771 20.3887 11.3469 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18Z",
|
|
312
|
+
fill: color
|
|
313
|
+
}))));
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
var _excluded$7 = ["size", "color"];
|
|
287
317
|
var ExternalLinkSvg = function ExternalLinkSvg(_ref) {
|
|
288
318
|
var _ref$size = _ref.size,
|
|
289
319
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
290
320
|
_ref$color = _ref.color,
|
|
291
321
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
292
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
322
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
293
323
|
return React__default.createElement(Center, {
|
|
294
324
|
width: size + "px",
|
|
295
325
|
height: size + "px"
|
|
@@ -318,13 +348,13 @@ var ExternalLinkSvg = function ExternalLinkSvg(_ref) {
|
|
|
318
348
|
}))));
|
|
319
349
|
};
|
|
320
350
|
|
|
321
|
-
var _excluded$
|
|
351
|
+
var _excluded$8 = ["size", "color"];
|
|
322
352
|
var IndeterminateSvg = function IndeterminateSvg(_ref) {
|
|
323
353
|
var _ref$size = _ref.size,
|
|
324
354
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
325
355
|
_ref$color = _ref.color,
|
|
326
356
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
327
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
357
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
328
358
|
return React__default.createElement(Center, {
|
|
329
359
|
width: size + "px",
|
|
330
360
|
height: size + "px"
|
|
@@ -350,6 +380,37 @@ var IndeterminateSvg = function IndeterminateSvg(_ref) {
|
|
|
350
380
|
}), ' ')));
|
|
351
381
|
};
|
|
352
382
|
|
|
383
|
+
var _excluded$9 = ["size", "color"];
|
|
384
|
+
var OpenEyeSvg = function OpenEyeSvg(_ref) {
|
|
385
|
+
var _ref$size = _ref.size,
|
|
386
|
+
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
387
|
+
_ref$color = _ref.color,
|
|
388
|
+
color = _ref$color === void 0 ? '#2F4858' : _ref$color,
|
|
389
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
390
|
+
return React__default.createElement(Center, {
|
|
391
|
+
width: size + "px",
|
|
392
|
+
height: size + "px"
|
|
393
|
+
}, React__default.createElement("svg", Object.assign({
|
|
394
|
+
viewBox: "0 0 24 24",
|
|
395
|
+
fill: "none",
|
|
396
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
397
|
+
}, props), React__default.createElement("g", {
|
|
398
|
+
id: "SVGRepo_bgCarrier",
|
|
399
|
+
strokeWidth: "0"
|
|
400
|
+
}), React__default.createElement("g", {
|
|
401
|
+
id: "SVGRepo_tracerCarrier",
|
|
402
|
+
strokeLinecap: "round",
|
|
403
|
+
strokeLinejoin: "round"
|
|
404
|
+
}), React__default.createElement("g", {
|
|
405
|
+
id: "SVGRepo_iconCarrier"
|
|
406
|
+
}, React__default.createElement("path", {
|
|
407
|
+
fillRule: "evenodd",
|
|
408
|
+
clipRule: "evenodd",
|
|
409
|
+
d: "M6.30147 15.5771C4.77832 14.2684 3.6904 12.7726 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C14.1843 6 16.1261 7.07185 17.6986 8.42294C19.2218 9.73158 20.3097 11.2274 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18C9.81574 18 7.87402 16.9282 6.30147 15.5771ZM12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C2.00757 13.8624 3.23268 15.5772 4.99812 17.0941C6.75717 18.6054 9.14754 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C21.9925 10.1376 20.7674 8.42276 19.002 6.90595C17.2429 5.39462 14.8525 4 12 4ZM10 12C10 10.8954 10.8955 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8955 14 10 13.1046 10 12ZM12 8C9.7909 8 8.00004 9.79086 8.00004 12C8.00004 14.2091 9.7909 16 12 16C14.2092 16 16 14.2091 16 12C16 9.79086 14.2092 8 12 8Z",
|
|
410
|
+
fill: color
|
|
411
|
+
}))));
|
|
412
|
+
};
|
|
413
|
+
|
|
353
414
|
var IconSizes = {
|
|
354
415
|
xs: 12,
|
|
355
416
|
sm: 14,
|
|
@@ -363,7 +424,7 @@ var IconSizes = {
|
|
|
363
424
|
'6xl': 64
|
|
364
425
|
};
|
|
365
426
|
|
|
366
|
-
var _excluded$
|
|
427
|
+
var _excluded$a = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "colorScheme", "styles", "setIsHovered"];
|
|
367
428
|
var LinkView = function LinkView(_ref) {
|
|
368
429
|
var children = _ref.children,
|
|
369
430
|
_ref$href = _ref.href,
|
|
@@ -385,7 +446,7 @@ var LinkView = function LinkView(_ref) {
|
|
|
385
446
|
} : _ref$styles,
|
|
386
447
|
_ref$setIsHovered = _ref.setIsHovered,
|
|
387
448
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
388
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
449
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
389
450
|
var handleHover = function handleHover() {
|
|
390
451
|
if (underline === 'hover') setIsHovered(true);
|
|
391
452
|
};
|
|
@@ -507,7 +568,7 @@ var IconSizes$1 = {
|
|
|
507
568
|
}
|
|
508
569
|
};
|
|
509
570
|
|
|
510
|
-
var _excluded$
|
|
571
|
+
var _excluded$b = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoader", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick"];
|
|
511
572
|
var ButtonView = function ButtonView(_ref) {
|
|
512
573
|
var _props$onClick;
|
|
513
574
|
var icon = _ref.icon,
|
|
@@ -537,7 +598,7 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
537
598
|
shape = _ref$shape === void 0 ? 'rounded' : _ref$shape,
|
|
538
599
|
_ref$onClick = _ref.onClick,
|
|
539
600
|
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
540
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
601
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
541
602
|
var isActive = !(isDisabled || isLoader);
|
|
542
603
|
var defaultNativeProps = {
|
|
543
604
|
disabled: !isActive
|
|
@@ -666,7 +727,7 @@ var HeadingSizes = {
|
|
|
666
727
|
}
|
|
667
728
|
};
|
|
668
729
|
|
|
669
|
-
var _excluded$
|
|
730
|
+
var _excluded$c = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
670
731
|
var LabelView = function LabelView(_ref) {
|
|
671
732
|
var children = _ref.children,
|
|
672
733
|
heading = _ref.heading,
|
|
@@ -680,7 +741,7 @@ var LabelView = function LabelView(_ref) {
|
|
|
680
741
|
weight = _ref$weight === void 0 ? 'normal' : _ref$weight,
|
|
681
742
|
_ref$size = _ref.size,
|
|
682
743
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
683
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
744
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
684
745
|
var headingStyles = heading ? HeadingSizes[heading] : {};
|
|
685
746
|
return React__default.createElement(appStudio.Element, Object.assign({
|
|
686
747
|
as: "label",
|
|
@@ -752,7 +813,7 @@ var IconSizes$2 = {
|
|
|
752
813
|
'6xl': 60
|
|
753
814
|
};
|
|
754
815
|
|
|
755
|
-
var _excluded$
|
|
816
|
+
var _excluded$d = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "size", "colorScheme", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "styles"];
|
|
756
817
|
var CheckboxView = function CheckboxView(_ref) {
|
|
757
818
|
var id = _ref.id,
|
|
758
819
|
icon = _ref.icon,
|
|
@@ -787,7 +848,7 @@ var CheckboxView = function CheckboxView(_ref) {
|
|
|
787
848
|
checkbox: {},
|
|
788
849
|
label: {}
|
|
789
850
|
} : _ref$styles,
|
|
790
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
851
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
791
852
|
var handleHover = function handleHover() {
|
|
792
853
|
return setIsHovered(!isHovered);
|
|
793
854
|
};
|
|
@@ -2331,7 +2392,7 @@ var useCountryPickerState = function useCountryPickerState(_ref) {
|
|
|
2331
2392
|
};
|
|
2332
2393
|
};
|
|
2333
2394
|
|
|
2334
|
-
var _excluded$
|
|
2395
|
+
var _excluded$e = ["children", "wrap", "justify", "isReversed"];
|
|
2335
2396
|
var VerticalView = function VerticalView(_ref) {
|
|
2336
2397
|
var children = _ref.children,
|
|
2337
2398
|
_ref$wrap = _ref.wrap,
|
|
@@ -2340,7 +2401,7 @@ var VerticalView = function VerticalView(_ref) {
|
|
|
2340
2401
|
justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
|
|
2341
2402
|
_ref$isReversed = _ref.isReversed,
|
|
2342
2403
|
isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
|
|
2343
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2404
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
2344
2405
|
return React__default.createElement(appStudio.View, Object.assign({
|
|
2345
2406
|
display: "flex",
|
|
2346
2407
|
flexWrap: wrap,
|
|
@@ -2390,7 +2451,7 @@ var HeadingSizes$1 = {
|
|
|
2390
2451
|
}
|
|
2391
2452
|
};
|
|
2392
2453
|
|
|
2393
|
-
var _excluded$
|
|
2454
|
+
var _excluded$f = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "isTruncated", "weight", "size"];
|
|
2394
2455
|
var TextContent = function TextContent(_ref) {
|
|
2395
2456
|
var children = _ref.children,
|
|
2396
2457
|
isSub = _ref.isSub,
|
|
@@ -2447,7 +2508,7 @@ var TextView = function TextView(_ref3) {
|
|
|
2447
2508
|
weight = _ref3$weight === void 0 ? 'normal' : _ref3$weight,
|
|
2448
2509
|
_ref3$size = _ref3.size,
|
|
2449
2510
|
size = _ref3$size === void 0 ? 'md' : _ref3$size,
|
|
2450
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
2511
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$f);
|
|
2451
2512
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
2452
2513
|
var noLineBreak = isSub || isSup ? {
|
|
2453
2514
|
display: 'inline'
|
|
@@ -2477,14 +2538,14 @@ var TextComponent = function TextComponent(props) {
|
|
|
2477
2538
|
*/
|
|
2478
2539
|
var Text = TextComponent;
|
|
2479
2540
|
|
|
2480
|
-
var _excluded$
|
|
2541
|
+
var _excluded$g = ["children", "styles"];
|
|
2481
2542
|
var HelperText = function HelperText(_ref) {
|
|
2482
2543
|
var children = _ref.children,
|
|
2483
2544
|
_ref$styles = _ref.styles,
|
|
2484
2545
|
styles = _ref$styles === void 0 ? {
|
|
2485
2546
|
helperText: {}
|
|
2486
2547
|
} : _ref$styles,
|
|
2487
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2548
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
2488
2549
|
return React__default.createElement(Text, Object.assign({
|
|
2489
2550
|
size: "xs",
|
|
2490
2551
|
marginVertical: 0,
|
|
@@ -2493,14 +2554,14 @@ var HelperText = function HelperText(_ref) {
|
|
|
2493
2554
|
}, styles['helperText'], props), children);
|
|
2494
2555
|
};
|
|
2495
2556
|
|
|
2496
|
-
var _excluded$
|
|
2557
|
+
var _excluded$h = ["children", "helperText", "error", "styles"];
|
|
2497
2558
|
var FieldContainer = function FieldContainer(_ref) {
|
|
2498
2559
|
var children = _ref.children,
|
|
2499
2560
|
helperText = _ref.helperText,
|
|
2500
2561
|
_ref$error = _ref.error,
|
|
2501
2562
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
2502
2563
|
styles = _ref.styles,
|
|
2503
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2564
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
2504
2565
|
return React__default.createElement(Vertical, Object.assign({
|
|
2505
2566
|
gap: 5,
|
|
2506
2567
|
position: "relative"
|
|
@@ -2559,7 +2620,7 @@ var PaddingWithoutLabel = {
|
|
|
2559
2620
|
paddingRight: 36
|
|
2560
2621
|
};
|
|
2561
2622
|
|
|
2562
|
-
var _excluded$
|
|
2623
|
+
var _excluded$i = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
|
|
2563
2624
|
var FieldContent = function FieldContent(_ref) {
|
|
2564
2625
|
var shadow = _ref.shadow,
|
|
2565
2626
|
children = _ref.children,
|
|
@@ -2587,7 +2648,7 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
2587
2648
|
styles = _ref$styles === void 0 ? {
|
|
2588
2649
|
pickerBox: {}
|
|
2589
2650
|
} : _ref$styles,
|
|
2590
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2651
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
2591
2652
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
2592
2653
|
var color = error ? 'error' : isInteractive ? colorScheme : 'midgray';
|
|
2593
2654
|
return React__default.createElement(Horizontal, Object.assign({
|
|
@@ -2607,10 +2668,10 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
2607
2668
|
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], styles['box'], props), children);
|
|
2608
2669
|
};
|
|
2609
2670
|
|
|
2610
|
-
var _excluded$
|
|
2671
|
+
var _excluded$j = ["children"];
|
|
2611
2672
|
var FieldIcons = function FieldIcons(_ref) {
|
|
2612
2673
|
var children = _ref.children,
|
|
2613
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2674
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
2614
2675
|
return React__default.createElement(Center, Object.assign({
|
|
2615
2676
|
gap: 10,
|
|
2616
2677
|
top: "50%",
|
|
@@ -2622,7 +2683,7 @@ var FieldIcons = function FieldIcons(_ref) {
|
|
|
2622
2683
|
}, props), children);
|
|
2623
2684
|
};
|
|
2624
2685
|
|
|
2625
|
-
var _excluded$
|
|
2686
|
+
var _excluded$k = ["children", "size", "error", "color", "styles"];
|
|
2626
2687
|
var FieldLabel = function FieldLabel(_ref) {
|
|
2627
2688
|
var children = _ref.children,
|
|
2628
2689
|
_ref$size = _ref.size,
|
|
@@ -2635,7 +2696,7 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
2635
2696
|
styles = _ref$styles === void 0 ? {
|
|
2636
2697
|
label: {}
|
|
2637
2698
|
} : _ref$styles,
|
|
2638
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2699
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
2639
2700
|
return React__default.createElement(Label, Object.assign({
|
|
2640
2701
|
top: 6,
|
|
2641
2702
|
zIndex: 1000,
|
|
@@ -2648,10 +2709,10 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
2648
2709
|
}, styles['label'], props), children);
|
|
2649
2710
|
};
|
|
2650
2711
|
|
|
2651
|
-
var _excluded$
|
|
2712
|
+
var _excluded$l = ["children"];
|
|
2652
2713
|
var FieldWrapper = function FieldWrapper(_ref) {
|
|
2653
2714
|
var children = _ref.children,
|
|
2654
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2715
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
2655
2716
|
return React__default.createElement(Vertical, Object.assign({
|
|
2656
2717
|
width: "100%"
|
|
2657
2718
|
}, props), children);
|
|
@@ -2665,7 +2726,7 @@ var IconSizes$3 = {
|
|
|
2665
2726
|
xl: 16
|
|
2666
2727
|
};
|
|
2667
2728
|
|
|
2668
|
-
var _excluded$
|
|
2729
|
+
var _excluded$m = ["id", "name", "label", "selected", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "colorScheme", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setSelected", "styles"];
|
|
2669
2730
|
var CountryList = function CountryList(props) {
|
|
2670
2731
|
return React__default.createElement(appStudio.Element, Object.assign({
|
|
2671
2732
|
as: "ul"
|
|
@@ -2805,7 +2866,7 @@ var CountryPickerView = function CountryPickerView(_ref3) {
|
|
|
2805
2866
|
helperText: {},
|
|
2806
2867
|
box: {}
|
|
2807
2868
|
} : _ref3$styles,
|
|
2808
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
2869
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$m);
|
|
2809
2870
|
var _useTheme = appStudio.useTheme(),
|
|
2810
2871
|
getColor = _useTheme.getColor;
|
|
2811
2872
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -2943,7 +3004,7 @@ var useDatePickerState = function useDatePickerState() {
|
|
|
2943
3004
|
};
|
|
2944
3005
|
};
|
|
2945
3006
|
|
|
2946
|
-
var _excluded$
|
|
3007
|
+
var _excluded$n = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "colorScheme", "styles", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
|
|
2947
3008
|
var DatePickerContent = function DatePickerContent(props) {
|
|
2948
3009
|
return React__default.createElement(appStudio.Input, Object.assign({
|
|
2949
3010
|
type: "date"
|
|
@@ -2991,7 +3052,7 @@ var DatePickerView = function DatePickerView(_ref) {
|
|
|
2991
3052
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
2992
3053
|
onChange = _ref.onChange,
|
|
2993
3054
|
onChangeText = _ref.onChangeText,
|
|
2994
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3055
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
2995
3056
|
var isWithLabel = !!(isFocused && label);
|
|
2996
3057
|
var handleHover = function handleHover() {
|
|
2997
3058
|
return setIsHovered(!isHovered);
|
|
@@ -3112,7 +3173,7 @@ var useTextFieldState = function useTextFieldState(_ref) {
|
|
|
3112
3173
|
};
|
|
3113
3174
|
};
|
|
3114
3175
|
|
|
3115
|
-
var _excluded$
|
|
3176
|
+
var _excluded$o = ["id", "name", "label", "value", "hint", "inputValue", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setInputValue", "onClick", "onFocus", "onBlur"];
|
|
3116
3177
|
var TextFieldInput = function TextFieldInput(props) {
|
|
3117
3178
|
return React__default.createElement(appStudio.Input, Object.assign({
|
|
3118
3179
|
type: "text"
|
|
@@ -3173,7 +3234,7 @@ var TextFieldView = function TextFieldView(_ref) {
|
|
|
3173
3234
|
onFocus = _ref.onFocus,
|
|
3174
3235
|
_ref$onBlur = _ref.onBlur,
|
|
3175
3236
|
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur,
|
|
3176
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3237
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
3177
3238
|
var _useTheme = appStudio.useTheme(),
|
|
3178
3239
|
getColor = _useTheme.getColor;
|
|
3179
3240
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -3297,15 +3358,15 @@ var TextFieldComponent = function TextFieldComponent(props) {
|
|
|
3297
3358
|
*/
|
|
3298
3359
|
var TextField = TextFieldComponent;
|
|
3299
3360
|
|
|
3300
|
-
var _excluded$
|
|
3361
|
+
var _excluded$p = ["name", "visibleIcon", "hiddenIcon", "isDisabled", "isVisible", "setIsVisible"];
|
|
3301
3362
|
var PasswordView = function PasswordView(_ref) {
|
|
3302
3363
|
var name = _ref.name,
|
|
3303
3364
|
_ref$visibleIcon = _ref.visibleIcon,
|
|
3304
|
-
visibleIcon = _ref$visibleIcon === void 0 ? React__default.createElement(
|
|
3365
|
+
visibleIcon = _ref$visibleIcon === void 0 ? React__default.createElement(OpenEyeSvg, {
|
|
3305
3366
|
size: 14
|
|
3306
3367
|
}) : _ref$visibleIcon,
|
|
3307
3368
|
_ref$hiddenIcon = _ref.hiddenIcon,
|
|
3308
|
-
hiddenIcon = _ref$hiddenIcon === void 0 ? React__default.createElement(
|
|
3369
|
+
hiddenIcon = _ref$hiddenIcon === void 0 ? React__default.createElement(CloseEyeSvg, {
|
|
3309
3370
|
size: 14
|
|
3310
3371
|
}) : _ref$hiddenIcon,
|
|
3311
3372
|
_ref$isDisabled = _ref.isDisabled,
|
|
@@ -3314,7 +3375,7 @@ var PasswordView = function PasswordView(_ref) {
|
|
|
3314
3375
|
isVisible = _ref$isVisible === void 0 ? false : _ref$isVisible,
|
|
3315
3376
|
_ref$setIsVisible = _ref.setIsVisible,
|
|
3316
3377
|
setIsVisible = _ref$setIsVisible === void 0 ? function () {} : _ref$setIsVisible,
|
|
3317
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3378
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
3318
3379
|
return React__default.createElement(TextField, Object.assign({
|
|
3319
3380
|
name: name,
|
|
3320
3381
|
type: isVisible ? 'text' : 'password',
|
|
@@ -3382,7 +3443,7 @@ var IconSizes$4 = {
|
|
|
3382
3443
|
xl: 16
|
|
3383
3444
|
};
|
|
3384
3445
|
|
|
3385
|
-
var _excluded$
|
|
3446
|
+
var _excluded$q = ["isHovered", "setIsHovered", "option", "size", "callback"],
|
|
3386
3447
|
_excluded2 = ["id", "name", "selected", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3387
3448
|
_excluded3 = ["option", "size", "removeOption"],
|
|
3388
3449
|
_excluded4 = ["id", "name", "label", "selected", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "colorScheme", "shape", "variant", "styles", "onChange", "setHide", "setSelected", "setIsHovered", "setIsFocused"];
|
|
@@ -3394,7 +3455,7 @@ var Item = function Item(_ref) {
|
|
|
3394
3455
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3395
3456
|
_ref$callback = _ref.callback,
|
|
3396
3457
|
callback = _ref$callback === void 0 ? function () {} : _ref$callback,
|
|
3397
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3458
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
3398
3459
|
var handleOptionClick = function handleOptionClick(option) {
|
|
3399
3460
|
return callback(option);
|
|
3400
3461
|
};
|
|
@@ -3864,7 +3925,7 @@ var SliderPadding = {
|
|
|
3864
3925
|
}
|
|
3865
3926
|
};
|
|
3866
3927
|
|
|
3867
|
-
var _excluded$
|
|
3928
|
+
var _excluded$r = ["id", "name", "inActiveChild", "activeChild", "shadow", "size", "colorScheme", "on", "isHovered", "isChecked", "isDisabled", "isReadOnly", "onChange", "onValueChange", "setOn", "setIsHovered", "styles"];
|
|
3868
3929
|
var SwitchContent = function SwitchContent(props) {
|
|
3869
3930
|
return React__default.createElement(appStudio.Input, Object.assign({
|
|
3870
3931
|
type: "checkbox"
|
|
@@ -3900,7 +3961,7 @@ var SwitchView = function SwitchView(_ref) {
|
|
|
3900
3961
|
slider: {},
|
|
3901
3962
|
circle: {}
|
|
3902
3963
|
} : _ref$styles,
|
|
3903
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3964
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
3904
3965
|
var handleToggle = function handleToggle(event) {
|
|
3905
3966
|
if (!isReadOnly) {
|
|
3906
3967
|
setOn(!on);
|
|
@@ -3976,7 +4037,7 @@ var useTextAreaState = function useTextAreaState(_ref) {
|
|
|
3976
4037
|
};
|
|
3977
4038
|
};
|
|
3978
4039
|
|
|
3979
|
-
var _excluded$
|
|
4040
|
+
var _excluded$s = ["id", "name", "hint", "error", "value", "label", "shadow", "inputValue", "helperText", "placeholder", "defaultValue", "size", "shape", "variant", "colorScheme", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setInputValue", "setIsFocused", "setIsHovered", "styles"];
|
|
3980
4041
|
var TextAreaView = function TextAreaView(_ref) {
|
|
3981
4042
|
var id = _ref.id,
|
|
3982
4043
|
name = _ref.name,
|
|
@@ -4034,7 +4095,7 @@ var TextAreaView = function TextAreaView(_ref) {
|
|
|
4034
4095
|
helperText: {},
|
|
4035
4096
|
field: {}
|
|
4036
4097
|
} : _ref$styles,
|
|
4037
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4098
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
4038
4099
|
var isWithLabel = !!(isFocused && label);
|
|
4039
4100
|
React.useMemo(function () {
|
|
4040
4101
|
setHint(isFocused && !inputValue ? placeholder != null ? placeholder : '' : label != null ? label : placeholder);
|
|
@@ -4151,7 +4212,7 @@ var DefaultSpeeds = {
|
|
|
4151
4212
|
slow: 300
|
|
4152
4213
|
};
|
|
4153
4214
|
|
|
4154
|
-
var _excluded$
|
|
4215
|
+
var _excluded$t = ["size", "speed", "color"],
|
|
4155
4216
|
_excluded2$1 = ["size", "speed", "color"],
|
|
4156
4217
|
_excluded3$1 = ["size", "speed", "color"],
|
|
4157
4218
|
_excluded4$1 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
|
|
@@ -4162,7 +4223,7 @@ var DefaultSpinner = function DefaultSpinner(_ref) {
|
|
|
4162
4223
|
speed = _ref$speed === void 0 ? 'normal' : _ref$speed,
|
|
4163
4224
|
_ref$color = _ref.color,
|
|
4164
4225
|
color = _ref$color === void 0 ? 'theme.loading' : _ref$color,
|
|
4165
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4226
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
4166
4227
|
var theme = appStudio.useTheme();
|
|
4167
4228
|
var colorStyle = theme.getColor(color);
|
|
4168
4229
|
var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
|
|
@@ -4412,7 +4473,7 @@ var HeaderIconSizes = {
|
|
|
4412
4473
|
xl: 28
|
|
4413
4474
|
};
|
|
4414
4475
|
|
|
4415
|
-
var _excluded$
|
|
4476
|
+
var _excluded$u = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
4416
4477
|
_excluded2$2 = ["children", "shadow", "isFullScreen", "shape"],
|
|
4417
4478
|
_excluded3$2 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
4418
4479
|
_excluded4$2 = ["children"],
|
|
@@ -4428,7 +4489,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
4428
4489
|
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
4429
4490
|
_ref$position = _ref.position,
|
|
4430
4491
|
position = _ref$position === void 0 ? 'center' : _ref$position,
|
|
4431
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4492
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
4432
4493
|
var handleClick = function handleClick() {
|
|
4433
4494
|
if (!isClosePrevented) onClose();
|
|
4434
4495
|
};
|
|
@@ -4585,12 +4646,12 @@ Modal.Body = ModalBody;
|
|
|
4585
4646
|
Modal.Footer = ModalFooter;
|
|
4586
4647
|
Modal.Layout = ModalLayout;
|
|
4587
4648
|
|
|
4588
|
-
var _excluded$
|
|
4649
|
+
var _excluded$v = ["src", "color"],
|
|
4589
4650
|
_excluded2$3 = ["path"];
|
|
4590
4651
|
var FileSVG = function FileSVG(_ref) {
|
|
4591
4652
|
var src = _ref.src,
|
|
4592
4653
|
color = _ref.color,
|
|
4593
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4654
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
4594
4655
|
var _useTheme = appStudio.useTheme(),
|
|
4595
4656
|
getColor = _useTheme.getColor;
|
|
4596
4657
|
var Colorprops = color ? {
|