@app-studio/web 0.3.27 → 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.
|
@@ -283,12 +283,43 @@ var CloseSvg = function CloseSvg(_ref) {
|
|
|
283
283
|
};
|
|
284
284
|
|
|
285
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"];
|
|
286
317
|
var ExternalLinkSvg = function ExternalLinkSvg(_ref) {
|
|
287
318
|
var _ref$size = _ref.size,
|
|
288
319
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
289
320
|
_ref$color = _ref.color,
|
|
290
321
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
291
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
322
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
292
323
|
return React__default.createElement(Center, {
|
|
293
324
|
width: size + "px",
|
|
294
325
|
height: size + "px"
|
|
@@ -317,13 +348,13 @@ var ExternalLinkSvg = function ExternalLinkSvg(_ref) {
|
|
|
317
348
|
}))));
|
|
318
349
|
};
|
|
319
350
|
|
|
320
|
-
var _excluded$
|
|
351
|
+
var _excluded$8 = ["size", "color"];
|
|
321
352
|
var IndeterminateSvg = function IndeterminateSvg(_ref) {
|
|
322
353
|
var _ref$size = _ref.size,
|
|
323
354
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
324
355
|
_ref$color = _ref.color,
|
|
325
356
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
326
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
357
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
327
358
|
return React__default.createElement(Center, {
|
|
328
359
|
width: size + "px",
|
|
329
360
|
height: size + "px"
|
|
@@ -349,6 +380,37 @@ var IndeterminateSvg = function IndeterminateSvg(_ref) {
|
|
|
349
380
|
}), ' ')));
|
|
350
381
|
};
|
|
351
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
|
+
|
|
352
414
|
var IconSizes = {
|
|
353
415
|
xs: 12,
|
|
354
416
|
sm: 14,
|
|
@@ -362,7 +424,7 @@ var IconSizes = {
|
|
|
362
424
|
'6xl': 64
|
|
363
425
|
};
|
|
364
426
|
|
|
365
|
-
var _excluded$
|
|
427
|
+
var _excluded$a = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "colorScheme", "styles", "setIsHovered"];
|
|
366
428
|
var LinkView = function LinkView(_ref) {
|
|
367
429
|
var children = _ref.children,
|
|
368
430
|
_ref$href = _ref.href,
|
|
@@ -384,7 +446,7 @@ var LinkView = function LinkView(_ref) {
|
|
|
384
446
|
} : _ref$styles,
|
|
385
447
|
_ref$setIsHovered = _ref.setIsHovered,
|
|
386
448
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
387
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
449
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
388
450
|
var handleHover = function handleHover() {
|
|
389
451
|
if (underline === 'hover') setIsHovered(true);
|
|
390
452
|
};
|
|
@@ -506,7 +568,7 @@ var IconSizes$1 = {
|
|
|
506
568
|
}
|
|
507
569
|
};
|
|
508
570
|
|
|
509
|
-
var _excluded$
|
|
571
|
+
var _excluded$b = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoader", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick"];
|
|
510
572
|
var ButtonView = function ButtonView(_ref) {
|
|
511
573
|
var _props$onClick;
|
|
512
574
|
var icon = _ref.icon,
|
|
@@ -536,7 +598,7 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
536
598
|
shape = _ref$shape === void 0 ? 'rounded' : _ref$shape,
|
|
537
599
|
_ref$onClick = _ref.onClick,
|
|
538
600
|
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
539
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
601
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
540
602
|
var isActive = !(isDisabled || isLoader);
|
|
541
603
|
var defaultNativeProps = {
|
|
542
604
|
disabled: !isActive
|
|
@@ -665,7 +727,7 @@ var HeadingSizes = {
|
|
|
665
727
|
}
|
|
666
728
|
};
|
|
667
729
|
|
|
668
|
-
var _excluded$
|
|
730
|
+
var _excluded$c = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
669
731
|
var LabelView = function LabelView(_ref) {
|
|
670
732
|
var children = _ref.children,
|
|
671
733
|
heading = _ref.heading,
|
|
@@ -679,7 +741,7 @@ var LabelView = function LabelView(_ref) {
|
|
|
679
741
|
weight = _ref$weight === void 0 ? 'normal' : _ref$weight,
|
|
680
742
|
_ref$size = _ref.size,
|
|
681
743
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
682
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
744
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
683
745
|
var headingStyles = heading ? HeadingSizes[heading] : {};
|
|
684
746
|
return React__default.createElement(appStudio.Element, Object.assign({
|
|
685
747
|
as: "label",
|
|
@@ -751,7 +813,7 @@ var IconSizes$2 = {
|
|
|
751
813
|
'6xl': 60
|
|
752
814
|
};
|
|
753
815
|
|
|
754
|
-
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"];
|
|
755
817
|
var CheckboxView = function CheckboxView(_ref) {
|
|
756
818
|
var id = _ref.id,
|
|
757
819
|
icon = _ref.icon,
|
|
@@ -786,7 +848,7 @@ var CheckboxView = function CheckboxView(_ref) {
|
|
|
786
848
|
checkbox: {},
|
|
787
849
|
label: {}
|
|
788
850
|
} : _ref$styles,
|
|
789
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
851
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
790
852
|
var handleHover = function handleHover() {
|
|
791
853
|
return setIsHovered(!isHovered);
|
|
792
854
|
};
|
|
@@ -2330,7 +2392,7 @@ var useCountryPickerState = function useCountryPickerState(_ref) {
|
|
|
2330
2392
|
};
|
|
2331
2393
|
};
|
|
2332
2394
|
|
|
2333
|
-
var _excluded$
|
|
2395
|
+
var _excluded$e = ["children", "wrap", "justify", "isReversed"];
|
|
2334
2396
|
var VerticalView = function VerticalView(_ref) {
|
|
2335
2397
|
var children = _ref.children,
|
|
2336
2398
|
_ref$wrap = _ref.wrap,
|
|
@@ -2339,7 +2401,7 @@ var VerticalView = function VerticalView(_ref) {
|
|
|
2339
2401
|
justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
|
|
2340
2402
|
_ref$isReversed = _ref.isReversed,
|
|
2341
2403
|
isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
|
|
2342
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2404
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
2343
2405
|
return React__default.createElement(appStudio.View, Object.assign({
|
|
2344
2406
|
display: "flex",
|
|
2345
2407
|
flexWrap: wrap,
|
|
@@ -2389,7 +2451,7 @@ var HeadingSizes$1 = {
|
|
|
2389
2451
|
}
|
|
2390
2452
|
};
|
|
2391
2453
|
|
|
2392
|
-
var _excluded$
|
|
2454
|
+
var _excluded$f = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "isTruncated", "weight", "size"];
|
|
2393
2455
|
var TextContent = function TextContent(_ref) {
|
|
2394
2456
|
var children = _ref.children,
|
|
2395
2457
|
isSub = _ref.isSub,
|
|
@@ -2446,7 +2508,7 @@ var TextView = function TextView(_ref3) {
|
|
|
2446
2508
|
weight = _ref3$weight === void 0 ? 'normal' : _ref3$weight,
|
|
2447
2509
|
_ref3$size = _ref3.size,
|
|
2448
2510
|
size = _ref3$size === void 0 ? 'md' : _ref3$size,
|
|
2449
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
2511
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$f);
|
|
2450
2512
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
2451
2513
|
var noLineBreak = isSub || isSup ? {
|
|
2452
2514
|
display: 'inline'
|
|
@@ -2476,14 +2538,14 @@ var TextComponent = function TextComponent(props) {
|
|
|
2476
2538
|
*/
|
|
2477
2539
|
var Text = TextComponent;
|
|
2478
2540
|
|
|
2479
|
-
var _excluded$
|
|
2541
|
+
var _excluded$g = ["children", "styles"];
|
|
2480
2542
|
var HelperText = function HelperText(_ref) {
|
|
2481
2543
|
var children = _ref.children,
|
|
2482
2544
|
_ref$styles = _ref.styles,
|
|
2483
2545
|
styles = _ref$styles === void 0 ? {
|
|
2484
2546
|
helperText: {}
|
|
2485
2547
|
} : _ref$styles,
|
|
2486
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2548
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
2487
2549
|
return React__default.createElement(Text, Object.assign({
|
|
2488
2550
|
size: "xs",
|
|
2489
2551
|
marginVertical: 0,
|
|
@@ -2492,14 +2554,14 @@ var HelperText = function HelperText(_ref) {
|
|
|
2492
2554
|
}, styles['helperText'], props), children);
|
|
2493
2555
|
};
|
|
2494
2556
|
|
|
2495
|
-
var _excluded$
|
|
2557
|
+
var _excluded$h = ["children", "helperText", "error", "styles"];
|
|
2496
2558
|
var FieldContainer = function FieldContainer(_ref) {
|
|
2497
2559
|
var children = _ref.children,
|
|
2498
2560
|
helperText = _ref.helperText,
|
|
2499
2561
|
_ref$error = _ref.error,
|
|
2500
2562
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
2501
2563
|
styles = _ref.styles,
|
|
2502
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2564
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
2503
2565
|
return React__default.createElement(Vertical, Object.assign({
|
|
2504
2566
|
gap: 5,
|
|
2505
2567
|
position: "relative"
|
|
@@ -2558,7 +2620,7 @@ var PaddingWithoutLabel = {
|
|
|
2558
2620
|
paddingRight: 36
|
|
2559
2621
|
};
|
|
2560
2622
|
|
|
2561
|
-
var _excluded$
|
|
2623
|
+
var _excluded$i = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
|
|
2562
2624
|
var FieldContent = function FieldContent(_ref) {
|
|
2563
2625
|
var shadow = _ref.shadow,
|
|
2564
2626
|
children = _ref.children,
|
|
@@ -2586,7 +2648,7 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
2586
2648
|
styles = _ref$styles === void 0 ? {
|
|
2587
2649
|
pickerBox: {}
|
|
2588
2650
|
} : _ref$styles,
|
|
2589
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2651
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
2590
2652
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
2591
2653
|
var color = error ? 'error' : isInteractive ? colorScheme : 'midgray';
|
|
2592
2654
|
return React__default.createElement(Horizontal, Object.assign({
|
|
@@ -2606,10 +2668,10 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
2606
2668
|
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], styles['box'], props), children);
|
|
2607
2669
|
};
|
|
2608
2670
|
|
|
2609
|
-
var _excluded$
|
|
2671
|
+
var _excluded$j = ["children"];
|
|
2610
2672
|
var FieldIcons = function FieldIcons(_ref) {
|
|
2611
2673
|
var children = _ref.children,
|
|
2612
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2674
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
2613
2675
|
return React__default.createElement(Center, Object.assign({
|
|
2614
2676
|
gap: 10,
|
|
2615
2677
|
top: "50%",
|
|
@@ -2621,7 +2683,7 @@ var FieldIcons = function FieldIcons(_ref) {
|
|
|
2621
2683
|
}, props), children);
|
|
2622
2684
|
};
|
|
2623
2685
|
|
|
2624
|
-
var _excluded$
|
|
2686
|
+
var _excluded$k = ["children", "size", "error", "color", "styles"];
|
|
2625
2687
|
var FieldLabel = function FieldLabel(_ref) {
|
|
2626
2688
|
var children = _ref.children,
|
|
2627
2689
|
_ref$size = _ref.size,
|
|
@@ -2634,7 +2696,7 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
2634
2696
|
styles = _ref$styles === void 0 ? {
|
|
2635
2697
|
label: {}
|
|
2636
2698
|
} : _ref$styles,
|
|
2637
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2699
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
2638
2700
|
return React__default.createElement(Label, Object.assign({
|
|
2639
2701
|
top: 6,
|
|
2640
2702
|
zIndex: 1000,
|
|
@@ -2647,10 +2709,10 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
2647
2709
|
}, styles['label'], props), children);
|
|
2648
2710
|
};
|
|
2649
2711
|
|
|
2650
|
-
var _excluded$
|
|
2712
|
+
var _excluded$l = ["children"];
|
|
2651
2713
|
var FieldWrapper = function FieldWrapper(_ref) {
|
|
2652
2714
|
var children = _ref.children,
|
|
2653
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2715
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
2654
2716
|
return React__default.createElement(Vertical, Object.assign({
|
|
2655
2717
|
width: "100%"
|
|
2656
2718
|
}, props), children);
|
|
@@ -2664,7 +2726,7 @@ var IconSizes$3 = {
|
|
|
2664
2726
|
xl: 16
|
|
2665
2727
|
};
|
|
2666
2728
|
|
|
2667
|
-
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"];
|
|
2668
2730
|
var CountryList = function CountryList(props) {
|
|
2669
2731
|
return React__default.createElement(appStudio.Element, Object.assign({
|
|
2670
2732
|
as: "ul"
|
|
@@ -2804,7 +2866,7 @@ var CountryPickerView = function CountryPickerView(_ref3) {
|
|
|
2804
2866
|
helperText: {},
|
|
2805
2867
|
box: {}
|
|
2806
2868
|
} : _ref3$styles,
|
|
2807
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
2869
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$m);
|
|
2808
2870
|
var _useTheme = appStudio.useTheme(),
|
|
2809
2871
|
getColor = _useTheme.getColor;
|
|
2810
2872
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -2942,7 +3004,7 @@ var useDatePickerState = function useDatePickerState() {
|
|
|
2942
3004
|
};
|
|
2943
3005
|
};
|
|
2944
3006
|
|
|
2945
|
-
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"];
|
|
2946
3008
|
var DatePickerContent = function DatePickerContent(props) {
|
|
2947
3009
|
return React__default.createElement(appStudio.Input, Object.assign({
|
|
2948
3010
|
type: "date"
|
|
@@ -2990,7 +3052,7 @@ var DatePickerView = function DatePickerView(_ref) {
|
|
|
2990
3052
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
2991
3053
|
onChange = _ref.onChange,
|
|
2992
3054
|
onChangeText = _ref.onChangeText,
|
|
2993
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3055
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
2994
3056
|
var isWithLabel = !!(isFocused && label);
|
|
2995
3057
|
var handleHover = function handleHover() {
|
|
2996
3058
|
return setIsHovered(!isHovered);
|
|
@@ -3111,7 +3173,7 @@ var useTextFieldState = function useTextFieldState(_ref) {
|
|
|
3111
3173
|
};
|
|
3112
3174
|
};
|
|
3113
3175
|
|
|
3114
|
-
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"];
|
|
3115
3177
|
var TextFieldInput = function TextFieldInput(props) {
|
|
3116
3178
|
return React__default.createElement(appStudio.Input, Object.assign({
|
|
3117
3179
|
type: "text"
|
|
@@ -3172,7 +3234,7 @@ var TextFieldView = function TextFieldView(_ref) {
|
|
|
3172
3234
|
onFocus = _ref.onFocus,
|
|
3173
3235
|
_ref$onBlur = _ref.onBlur,
|
|
3174
3236
|
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur,
|
|
3175
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3237
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
3176
3238
|
var _useTheme = appStudio.useTheme(),
|
|
3177
3239
|
getColor = _useTheme.getColor;
|
|
3178
3240
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -3296,18 +3358,24 @@ var TextFieldComponent = function TextFieldComponent(props) {
|
|
|
3296
3358
|
*/
|
|
3297
3359
|
var TextField = TextFieldComponent;
|
|
3298
3360
|
|
|
3299
|
-
var _excluded$
|
|
3361
|
+
var _excluded$p = ["name", "visibleIcon", "hiddenIcon", "isDisabled", "isVisible", "setIsVisible"];
|
|
3300
3362
|
var PasswordView = function PasswordView(_ref) {
|
|
3301
3363
|
var name = _ref.name,
|
|
3302
|
-
visibleIcon = _ref.visibleIcon,
|
|
3303
|
-
|
|
3364
|
+
_ref$visibleIcon = _ref.visibleIcon,
|
|
3365
|
+
visibleIcon = _ref$visibleIcon === void 0 ? React__default.createElement(OpenEyeSvg, {
|
|
3366
|
+
size: 14
|
|
3367
|
+
}) : _ref$visibleIcon,
|
|
3368
|
+
_ref$hiddenIcon = _ref.hiddenIcon,
|
|
3369
|
+
hiddenIcon = _ref$hiddenIcon === void 0 ? React__default.createElement(CloseEyeSvg, {
|
|
3370
|
+
size: 14
|
|
3371
|
+
}) : _ref$hiddenIcon,
|
|
3304
3372
|
_ref$isDisabled = _ref.isDisabled,
|
|
3305
3373
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
3306
3374
|
_ref$isVisible = _ref.isVisible,
|
|
3307
3375
|
isVisible = _ref$isVisible === void 0 ? false : _ref$isVisible,
|
|
3308
3376
|
_ref$setIsVisible = _ref.setIsVisible,
|
|
3309
3377
|
setIsVisible = _ref$setIsVisible === void 0 ? function () {} : _ref$setIsVisible,
|
|
3310
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3378
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
3311
3379
|
return React__default.createElement(TextField, Object.assign({
|
|
3312
3380
|
name: name,
|
|
3313
3381
|
type: isVisible ? 'text' : 'password',
|
|
@@ -3375,7 +3443,7 @@ var IconSizes$4 = {
|
|
|
3375
3443
|
xl: 16
|
|
3376
3444
|
};
|
|
3377
3445
|
|
|
3378
|
-
var _excluded$
|
|
3446
|
+
var _excluded$q = ["isHovered", "setIsHovered", "option", "size", "callback"],
|
|
3379
3447
|
_excluded2 = ["id", "name", "selected", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3380
3448
|
_excluded3 = ["option", "size", "removeOption"],
|
|
3381
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"];
|
|
@@ -3387,7 +3455,7 @@ var Item = function Item(_ref) {
|
|
|
3387
3455
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3388
3456
|
_ref$callback = _ref.callback,
|
|
3389
3457
|
callback = _ref$callback === void 0 ? function () {} : _ref$callback,
|
|
3390
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3458
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
3391
3459
|
var handleOptionClick = function handleOptionClick(option) {
|
|
3392
3460
|
return callback(option);
|
|
3393
3461
|
};
|
|
@@ -3857,7 +3925,7 @@ var SliderPadding = {
|
|
|
3857
3925
|
}
|
|
3858
3926
|
};
|
|
3859
3927
|
|
|
3860
|
-
var _excluded$
|
|
3928
|
+
var _excluded$r = ["id", "name", "inActiveChild", "activeChild", "shadow", "size", "colorScheme", "on", "isHovered", "isChecked", "isDisabled", "isReadOnly", "onChange", "onValueChange", "setOn", "setIsHovered", "styles"];
|
|
3861
3929
|
var SwitchContent = function SwitchContent(props) {
|
|
3862
3930
|
return React__default.createElement(appStudio.Input, Object.assign({
|
|
3863
3931
|
type: "checkbox"
|
|
@@ -3893,7 +3961,7 @@ var SwitchView = function SwitchView(_ref) {
|
|
|
3893
3961
|
slider: {},
|
|
3894
3962
|
circle: {}
|
|
3895
3963
|
} : _ref$styles,
|
|
3896
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3964
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
3897
3965
|
var handleToggle = function handleToggle(event) {
|
|
3898
3966
|
if (!isReadOnly) {
|
|
3899
3967
|
setOn(!on);
|
|
@@ -3969,7 +4037,7 @@ var useTextAreaState = function useTextAreaState(_ref) {
|
|
|
3969
4037
|
};
|
|
3970
4038
|
};
|
|
3971
4039
|
|
|
3972
|
-
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"];
|
|
3973
4041
|
var TextAreaView = function TextAreaView(_ref) {
|
|
3974
4042
|
var id = _ref.id,
|
|
3975
4043
|
name = _ref.name,
|
|
@@ -4027,7 +4095,7 @@ var TextAreaView = function TextAreaView(_ref) {
|
|
|
4027
4095
|
helperText: {},
|
|
4028
4096
|
field: {}
|
|
4029
4097
|
} : _ref$styles,
|
|
4030
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4098
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
4031
4099
|
var isWithLabel = !!(isFocused && label);
|
|
4032
4100
|
React.useMemo(function () {
|
|
4033
4101
|
setHint(isFocused && !inputValue ? placeholder != null ? placeholder : '' : label != null ? label : placeholder);
|
|
@@ -4144,7 +4212,7 @@ var DefaultSpeeds = {
|
|
|
4144
4212
|
slow: 300
|
|
4145
4213
|
};
|
|
4146
4214
|
|
|
4147
|
-
var _excluded$
|
|
4215
|
+
var _excluded$t = ["size", "speed", "color"],
|
|
4148
4216
|
_excluded2$1 = ["size", "speed", "color"],
|
|
4149
4217
|
_excluded3$1 = ["size", "speed", "color"],
|
|
4150
4218
|
_excluded4$1 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
|
|
@@ -4155,7 +4223,7 @@ var DefaultSpinner = function DefaultSpinner(_ref) {
|
|
|
4155
4223
|
speed = _ref$speed === void 0 ? 'normal' : _ref$speed,
|
|
4156
4224
|
_ref$color = _ref.color,
|
|
4157
4225
|
color = _ref$color === void 0 ? 'theme.loading' : _ref$color,
|
|
4158
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4226
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
4159
4227
|
var theme = appStudio.useTheme();
|
|
4160
4228
|
var colorStyle = theme.getColor(color);
|
|
4161
4229
|
var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
|
|
@@ -4405,7 +4473,7 @@ var HeaderIconSizes = {
|
|
|
4405
4473
|
xl: 28
|
|
4406
4474
|
};
|
|
4407
4475
|
|
|
4408
|
-
var _excluded$
|
|
4476
|
+
var _excluded$u = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
4409
4477
|
_excluded2$2 = ["children", "shadow", "isFullScreen", "shape"],
|
|
4410
4478
|
_excluded3$2 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
4411
4479
|
_excluded4$2 = ["children"],
|
|
@@ -4421,7 +4489,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
4421
4489
|
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
4422
4490
|
_ref$position = _ref.position,
|
|
4423
4491
|
position = _ref$position === void 0 ? 'center' : _ref$position,
|
|
4424
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4492
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
4425
4493
|
var handleClick = function handleClick() {
|
|
4426
4494
|
if (!isClosePrevented) onClose();
|
|
4427
4495
|
};
|
|
@@ -4578,12 +4646,12 @@ Modal.Body = ModalBody;
|
|
|
4578
4646
|
Modal.Footer = ModalFooter;
|
|
4579
4647
|
Modal.Layout = ModalLayout;
|
|
4580
4648
|
|
|
4581
|
-
var _excluded$
|
|
4649
|
+
var _excluded$v = ["src", "color"],
|
|
4582
4650
|
_excluded2$3 = ["path"];
|
|
4583
4651
|
var FileSVG = function FileSVG(_ref) {
|
|
4584
4652
|
var src = _ref.src,
|
|
4585
4653
|
color = _ref.color,
|
|
4586
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4654
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
4587
4655
|
var _useTheme = appStudio.useTheme(),
|
|
4588
4656
|
getColor = _useTheme.getColor;
|
|
4589
4657
|
var Colorprops = color ? {
|