@app-studio/web 0.3.67 → 0.3.68

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.
@@ -11,13 +11,7 @@ var reactRouterDom = require('react-router-dom');
11
11
  var format = _interopDefault(require('date-fns/format'));
12
12
  var formik = require('formik');
13
13
  var zustand = require('zustand');
14
- var View$1 = require('src/components/Layout/View/View');
15
14
  var Horizontal$1 = require('src/components/Layout/Horizontal/Horizontal');
16
- var Button$1 = require('src/components/Button/Button');
17
- var Text$1 = require('src/components/Text/Text');
18
- var Vertical$1 = require('src/components/Layout/Vertical/Vertical');
19
- var Svg = require('src/components/Svg');
20
- var Center$1 = require('src/components/Layout/Center/Center');
21
15
 
22
16
  var useButtonState = function useButtonState() {
23
17
  var _React$useState = React__default.useState(false),
@@ -419,6 +413,35 @@ var OpenEyeSvg = function OpenEyeSvg(_ref) {
419
413
  }))));
420
414
  };
421
415
 
416
+ var _excluded$a = ["size", "color"];
417
+ var WarningSvg = function WarningSvg(_ref) {
418
+ var _ref$size = _ref.size,
419
+ size = _ref$size === void 0 ? 64 : _ref$size,
420
+ _ref$color = _ref.color,
421
+ color = _ref$color === void 0 ? 'white' : _ref$color,
422
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
423
+ return React__default.createElement(Center, {
424
+ width: size + "px",
425
+ height: size + "px"
426
+ }, React__default.createElement("svg", Object.assign({
427
+ height: size + "px",
428
+ width: size + "px",
429
+ version: "1.1",
430
+ id: "Capa_1",
431
+ xmlns: "http://www.w3.org/2000/svg",
432
+ viewBox: "0 0 192.146 192.146",
433
+ fill: color
434
+ }, props), React__default.createElement("g", {
435
+ id: "SVGRepo_bgCarrier"
436
+ }), React__default.createElement("g", {
437
+ id: "SVGRepo_tracerCarrier"
438
+ }), React__default.createElement("g", {
439
+ id: "SVGRepo_iconCarrier"
440
+ }, React__default.createElement("g", null, React__default.createElement("g", null, React__default.createElement("g", null, React__default.createElement("path", {
441
+ d: "M108.186,144.372c0,7.054-4.729,12.32-12.037,12.32h-0.254c-7.054,0-11.92-5.266-11.92-12.32 c0-7.298,5.012-12.31,12.174-12.31C103.311,132.062,108.059,137.054,108.186,144.372z M88.44,125.301h15.447l2.951-61.298H85.46 L88.44,125.301z M190.372,177.034c-2.237,3.664-6.214,5.921-10.493,5.921H12.282c-4.426,0-8.51-2.384-10.698-6.233 c-2.159-3.849-2.11-8.549,0.147-12.349l84.111-149.22c2.208-3.722,6.204-5.96,10.522-5.96h0.332 c4.445,0.107,8.441,2.618,10.513,6.546l83.515,149.229C192.717,168.768,192.629,173.331,190.372,177.034z M179.879,170.634 L96.354,21.454L12.292,170.634H179.879z"
442
+ })))))));
443
+ };
444
+
422
445
  var IconSizes = {
423
446
  xs: 12,
424
447
  sm: 14,
@@ -432,7 +455,7 @@ var IconSizes = {
432
455
  '6xl': 64
433
456
  };
434
457
 
435
- var _excluded$a = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
458
+ var _excluded$b = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
436
459
  var LinkView = function LinkView(_ref) {
437
460
  var children = _ref.children,
438
461
  _ref$href = _ref.href,
@@ -452,7 +475,7 @@ var LinkView = function LinkView(_ref) {
452
475
  } : _ref$styles,
453
476
  _ref$setIsHovered = _ref.setIsHovered,
454
477
  setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
455
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
478
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
456
479
  var handleHover = function handleHover() {
457
480
  if (underline === 'hover') setIsHovered(true);
458
481
  };
@@ -590,7 +613,7 @@ var DefaultSpeeds = {
590
613
  slow: 300
591
614
  };
592
615
 
593
- var _excluded$b = ["size", "speed", "color"],
616
+ var _excluded$c = ["size", "speed", "color"],
594
617
  _excluded2 = ["size", "speed", "color"],
595
618
  _excluded3 = ["size", "speed", "color"],
596
619
  _excluded4 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
@@ -601,7 +624,7 @@ var DefaultSpinner = function DefaultSpinner(_ref) {
601
624
  speed = _ref$speed === void 0 ? 'normal' : _ref$speed,
602
625
  _ref$color = _ref.color,
603
626
  color = _ref$color === void 0 ? 'theme.loading' : _ref$color,
604
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
627
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
605
628
  var theme = appStudio.useTheme();
606
629
  var colorStyle = theme.getColor(color);
607
630
  var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
@@ -775,7 +798,7 @@ var LoaderComponent = function LoaderComponent(props) {
775
798
  */
776
799
  var Loader = LoaderComponent;
777
800
 
778
- var _excluded$c = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered"];
801
+ var _excluded$d = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered"];
779
802
  var ButtonView = function ButtonView(_ref) {
780
803
  var _props$onClick;
781
804
  var icon = _ref.icon,
@@ -812,7 +835,7 @@ var ButtonView = function ButtonView(_ref) {
812
835
  _ref$effect = _ref.effect,
813
836
  effect = _ref$effect === void 0 ? 'default' : _ref$effect,
814
837
  isHovered = _ref.isHovered,
815
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
838
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
816
839
  var isActive = !(isDisabled || isLoading);
817
840
  var defaultNativeProps = {
818
841
  disabled: !isActive
@@ -956,7 +979,7 @@ var HeadingSizes = {
956
979
  }
957
980
  };
958
981
 
959
- var _excluded$d = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
982
+ var _excluded$e = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
960
983
  var LabelView = function LabelView(_ref) {
961
984
  var children = _ref.children,
962
985
  heading = _ref.heading,
@@ -970,7 +993,7 @@ var LabelView = function LabelView(_ref) {
970
993
  weight = _ref$weight === void 0 ? 'normal' : _ref$weight,
971
994
  _ref$size = _ref.size,
972
995
  size = _ref$size === void 0 ? 'sm' : _ref$size,
973
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
996
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
974
997
  var headingStyles = heading ? HeadingSizes[heading] : {};
975
998
  return React__default.createElement(appStudio.Element, Object.assign({
976
999
  as: "label",
@@ -1042,7 +1065,7 @@ var IconSizes$2 = {
1042
1065
  '6xl': 60
1043
1066
  };
1044
1067
 
1045
- var _excluded$e = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "colorScheme", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "styles"];
1068
+ var _excluded$f = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "colorScheme", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "styles"];
1046
1069
  var CheckboxView = function CheckboxView(_ref) {
1047
1070
  var id = _ref.id,
1048
1071
  icon = _ref.icon,
@@ -1079,7 +1102,7 @@ var CheckboxView = function CheckboxView(_ref) {
1079
1102
  checkbox: {},
1080
1103
  label: {}
1081
1104
  } : _ref$styles,
1082
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
1105
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
1083
1106
  var handleHover = function handleHover() {
1084
1107
  return setIsHovered(!isHovered);
1085
1108
  };
@@ -2653,7 +2676,7 @@ var HeadingSizes$1 = {
2653
2676
  }
2654
2677
  };
2655
2678
 
2656
- var _excluded$f = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "isTruncated", "weight", "size"];
2679
+ var _excluded$g = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "isTruncated", "weight", "size"];
2657
2680
  var TextContent = function TextContent(_ref) {
2658
2681
  var children = _ref.children,
2659
2682
  isSub = _ref.isSub,
@@ -2717,7 +2740,7 @@ var TextView = function TextView(_ref3) {
2717
2740
  weight = _ref3$weight === void 0 ? 'normal' : _ref3$weight,
2718
2741
  _ref3$size = _ref3.size,
2719
2742
  size = _ref3$size === void 0 ? 'md' : _ref3$size,
2720
- props = _objectWithoutPropertiesLoose(_ref3, _excluded$f);
2743
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded$g);
2721
2744
  var headingStyles = heading ? HeadingSizes$1[heading] : {};
2722
2745
  var noLineBreak = isSub || isSup ? {
2723
2746
  display: 'inline'
@@ -2747,14 +2770,14 @@ var TextComponent = function TextComponent(props) {
2747
2770
  */
2748
2771
  var Text = TextComponent;
2749
2772
 
2750
- var _excluded$g = ["children", "styles"];
2773
+ var _excluded$h = ["children", "styles"];
2751
2774
  var HelperText = function HelperText(_ref) {
2752
2775
  var children = _ref.children,
2753
2776
  _ref$styles = _ref.styles,
2754
2777
  styles = _ref$styles === void 0 ? {
2755
2778
  helperText: {}
2756
2779
  } : _ref$styles,
2757
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
2780
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
2758
2781
  return React__default.createElement(Text, Object.assign({
2759
2782
  size: "xs",
2760
2783
  marginVertical: 0,
@@ -2763,7 +2786,7 @@ var HelperText = function HelperText(_ref) {
2763
2786
  }, styles['helperText'], props), children);
2764
2787
  };
2765
2788
 
2766
- var _excluded$h = ["children", "wrap", "justify", "isReversed"];
2789
+ var _excluded$i = ["children", "wrap", "justify", "isReversed"];
2767
2790
  var VerticalView = function VerticalView(_ref) {
2768
2791
  var children = _ref.children,
2769
2792
  _ref$wrap = _ref.wrap,
@@ -2772,7 +2795,7 @@ var VerticalView = function VerticalView(_ref) {
2772
2795
  justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
2773
2796
  _ref$isReversed = _ref.isReversed,
2774
2797
  isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
2775
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
2798
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
2776
2799
  return React__default.createElement(appStudio.View, Object.assign({
2777
2800
  display: "flex",
2778
2801
  flexWrap: wrap,
@@ -2789,14 +2812,14 @@ var VerticalComponent = function VerticalComponent(props) {
2789
2812
  };
2790
2813
  var Vertical = VerticalComponent;
2791
2814
 
2792
- var _excluded$i = ["children", "helperText", "error", "styles"];
2815
+ var _excluded$j = ["children", "helperText", "error", "styles"];
2793
2816
  var FieldContainer = function FieldContainer(_ref) {
2794
2817
  var children = _ref.children,
2795
2818
  helperText = _ref.helperText,
2796
2819
  _ref$error = _ref.error,
2797
2820
  error = _ref$error === void 0 ? false : _ref$error,
2798
2821
  styles = _ref.styles,
2799
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
2822
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
2800
2823
  return React__default.createElement(Vertical, Object.assign({
2801
2824
  gap: 5,
2802
2825
  position: "relative"
@@ -2855,7 +2878,7 @@ var PaddingWithoutLabel = {
2855
2878
  paddingRight: 36
2856
2879
  };
2857
2880
 
2858
- var _excluded$j = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
2881
+ var _excluded$k = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
2859
2882
  var FieldContent = function FieldContent(_ref) {
2860
2883
  var shadow = _ref.shadow,
2861
2884
  children = _ref.children,
@@ -2883,7 +2906,7 @@ var FieldContent = function FieldContent(_ref) {
2883
2906
  styles = _ref$styles === void 0 ? {
2884
2907
  pickerBox: {}
2885
2908
  } : _ref$styles,
2886
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
2909
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
2887
2910
  var isInteractive = (isHovered || isFocused) && !isDisabled;
2888
2911
  var color = error ? 'error' : isInteractive ? colorScheme : 'midgray';
2889
2912
  return React__default.createElement(Horizontal, Object.assign({
@@ -2904,10 +2927,10 @@ var FieldContent = function FieldContent(_ref) {
2904
2927
  }, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], styles['box'], props), children);
2905
2928
  };
2906
2929
 
2907
- var _excluded$k = ["children"];
2930
+ var _excluded$l = ["children"];
2908
2931
  var FieldIcons = function FieldIcons(_ref) {
2909
2932
  var children = _ref.children,
2910
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
2933
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
2911
2934
  return React__default.createElement(Center, Object.assign({
2912
2935
  gap: 10,
2913
2936
  right: 16,
@@ -2917,7 +2940,7 @@ var FieldIcons = function FieldIcons(_ref) {
2917
2940
  }, props), children);
2918
2941
  };
2919
2942
 
2920
- var _excluded$l = ["children", "size", "error", "color", "styles"];
2943
+ var _excluded$m = ["children", "size", "error", "color", "styles"];
2921
2944
  var FieldLabel = function FieldLabel(_ref) {
2922
2945
  var children = _ref.children,
2923
2946
  _ref$size = _ref.size,
@@ -2930,7 +2953,7 @@ var FieldLabel = function FieldLabel(_ref) {
2930
2953
  styles = _ref$styles === void 0 ? {
2931
2954
  label: {}
2932
2955
  } : _ref$styles,
2933
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
2956
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
2934
2957
  return React__default.createElement(Label, Object.assign({
2935
2958
  top: 6,
2936
2959
  zIndex: 1000,
@@ -2943,10 +2966,10 @@ var FieldLabel = function FieldLabel(_ref) {
2943
2966
  }, styles['label'], props), children);
2944
2967
  };
2945
2968
 
2946
- var _excluded$m = ["children"];
2969
+ var _excluded$n = ["children"];
2947
2970
  var FieldWrapper = function FieldWrapper(_ref) {
2948
2971
  var children = _ref.children,
2949
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
2972
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
2950
2973
  return React__default.createElement(Vertical, Object.assign({
2951
2974
  width: "100%"
2952
2975
  }, props), children);
@@ -2960,7 +2983,7 @@ var IconSizes$3 = {
2960
2983
  xl: 16
2961
2984
  };
2962
2985
 
2963
- var _excluded$n = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "colorScheme", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "styles"];
2986
+ var _excluded$o = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "colorScheme", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "styles"];
2964
2987
  var CountryList = function CountryList(props) {
2965
2988
  return React__default.createElement(appStudio.Element, Object.assign({
2966
2989
  as: "ul"
@@ -3100,7 +3123,7 @@ var CountryPickerView = function CountryPickerView(_ref3) {
3100
3123
  helperText: {},
3101
3124
  box: {}
3102
3125
  } : _ref3$styles,
3103
- props = _objectWithoutPropertiesLoose(_ref3, _excluded$n);
3126
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded$o);
3104
3127
  var _useTheme = appStudio.useTheme(),
3105
3128
  getColor = _useTheme.getColor;
3106
3129
  var IconColor = getColor('color.blueGray.700');
@@ -3238,7 +3261,7 @@ var useDatePickerState = function useDatePickerState() {
3238
3261
  };
3239
3262
  };
3240
3263
 
3241
- var _excluded$o = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "colorScheme", "styles", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
3264
+ var _excluded$p = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "colorScheme", "styles", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
3242
3265
  var DatePickerContent = function DatePickerContent(props) {
3243
3266
  return React__default.createElement(appStudio.Input, Object.assign({
3244
3267
  type: "date"
@@ -3286,7 +3309,7 @@ var DatePickerView = function DatePickerView(_ref) {
3286
3309
  setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
3287
3310
  onChange = _ref.onChange,
3288
3311
  onChangeText = _ref.onChangeText,
3289
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
3312
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
3290
3313
  var isWithLabel = !!(isFocused && label);
3291
3314
  var handleHover = function handleHover() {
3292
3315
  return setIsHovered(!isHovered);
@@ -3411,7 +3434,7 @@ var usePasswordState = function usePasswordState(props) {
3411
3434
  }, props, textFieldStates);
3412
3435
  };
3413
3436
 
3414
- var _excluded$p = ["id", "name", "label", "hint", "value", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur"];
3437
+ var _excluded$q = ["id", "name", "label", "hint", "value", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur"];
3415
3438
  var TextFieldInput = function TextFieldInput(props) {
3416
3439
  return React__default.createElement(appStudio.Input, Object.assign({
3417
3440
  type: "text"
@@ -3469,7 +3492,7 @@ var TextFieldView = function TextFieldView(_ref) {
3469
3492
  onFocus = _ref.onFocus,
3470
3493
  _ref$onBlur = _ref.onBlur,
3471
3494
  onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur,
3472
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
3495
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
3473
3496
  var _useTheme = appStudio.useTheme(),
3474
3497
  getColor = _useTheme.getColor;
3475
3498
  var IconColor = getColor('color.blueGray.700');
@@ -3577,7 +3600,7 @@ var TextFieldView = function TextFieldView(_ref) {
3577
3600
  }), rightChild && React__default.createElement(React__default.Fragment, null, rightChild))));
3578
3601
  };
3579
3602
 
3580
- var _excluded$q = ["visibleIcon", "hiddenIcon"],
3603
+ var _excluded$r = ["visibleIcon", "hiddenIcon"],
3581
3604
  _excluded2$1 = ["isVisible", "setIsVisible"];
3582
3605
  var PasswordComponent = function PasswordComponent(_ref) {
3583
3606
  var _ref$visibleIcon = _ref.visibleIcon,
@@ -3588,7 +3611,7 @@ var PasswordComponent = function PasswordComponent(_ref) {
3588
3611
  hiddenIcon = _ref$hiddenIcon === void 0 ? React__default.createElement(CloseEyeSvg, {
3589
3612
  size: 14
3590
3613
  }) : _ref$hiddenIcon,
3591
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
3614
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
3592
3615
  var _usePasswordState = usePasswordState(props),
3593
3616
  isVisible = _usePasswordState.isVisible,
3594
3617
  setIsVisible = _usePasswordState.setIsVisible,
@@ -3656,7 +3679,7 @@ var IconSizes$4 = {
3656
3679
  xl: 16
3657
3680
  };
3658
3681
 
3659
- var _excluded$r = ["isHovered", "setIsHovered", "option", "size", "callback"],
3682
+ var _excluded$s = ["isHovered", "setIsHovered", "option", "size", "callback"],
3660
3683
  _excluded2$2 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
3661
3684
  _excluded3$1 = ["option", "size", "removeOption"],
3662
3685
  _excluded4$1 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "colorScheme", "shape", "variant", "styles", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused"];
@@ -3668,7 +3691,7 @@ var Item = function Item(_ref) {
3668
3691
  size = _ref$size === void 0 ? 'md' : _ref$size,
3669
3692
  _ref$callback = _ref.callback,
3670
3693
  callback = _ref$callback === void 0 ? function () {} : _ref$callback,
3671
- props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
3694
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
3672
3695
  var handleOptionClick = function handleOptionClick(option) {
3673
3696
  return callback(option);
3674
3697
  };
@@ -4139,7 +4162,7 @@ var SliderPadding = {
4139
4162
  }
4140
4163
  };
4141
4164
 
4142
- var _excluded$s = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "onChange", "setValue", "setIsHovered", "styles"];
4165
+ var _excluded$t = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "onChange", "setValue", "setIsHovered", "styles"];
4143
4166
  var SwitchContent = function SwitchContent(props) {
4144
4167
  return React__default.createElement(appStudio.Input, Object.assign({
4145
4168
  type: "checkbox"
@@ -4178,7 +4201,7 @@ var SwitchView = function SwitchView(_ref) {
4178
4201
  circle: {},
4179
4202
  label: {}
4180
4203
  } : _ref$styles,
4181
- props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
4204
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
4182
4205
  var handleToggle = function handleToggle(event) {
4183
4206
  if (!isReadOnly) {
4184
4207
  setValue(!value);
@@ -4264,7 +4287,7 @@ var useTextAreaState = function useTextAreaState(_ref) {
4264
4287
  };
4265
4288
  };
4266
4289
 
4267
- var _excluded$t = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "colorScheme", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "styles"];
4290
+ var _excluded$u = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "colorScheme", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "styles"];
4268
4291
  var TextAreaView = function TextAreaView(_ref) {
4269
4292
  var id = _ref.id,
4270
4293
  name = _ref.name,
@@ -4319,7 +4342,7 @@ var TextAreaView = function TextAreaView(_ref) {
4319
4342
  helperText: {},
4320
4343
  field: {}
4321
4344
  } : _ref$styles,
4322
- props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
4345
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
4323
4346
  var isWithLabel = !!(isFocused && label);
4324
4347
  var fieldStyles = _extends({
4325
4348
  margin: 0,
@@ -4487,7 +4510,7 @@ var FormikForm = function FormikForm(_ref) {
4487
4510
  }, React__default.createElement(appStudio.Form, null, children));
4488
4511
  };
4489
4512
 
4490
- var _excluded$u = ["name", "type"];
4513
+ var _excluded$v = ["name", "type"];
4491
4514
  var getInputTypeProps = function getInputTypeProps(type) {
4492
4515
  switch (type) {
4493
4516
  case 'email':
@@ -4517,7 +4540,7 @@ var getInputTypeProps = function getInputTypeProps(type) {
4517
4540
  var useFormikInput = function useFormikInput(_ref) {
4518
4541
  var name = _ref.name,
4519
4542
  type = _ref.type,
4520
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
4543
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
4521
4544
  var focus = useFormFocus();
4522
4545
  var _useFormikContext = formik.useFormikContext(),
4523
4546
  touched = _useFormikContext.touched,
@@ -4564,11 +4587,11 @@ var useFormikInput = function useFormikInput(_ref) {
4564
4587
  // import FormRater from 'src/Rate/Rate';
4565
4588
  // import Upload from 'src/Upload/Upload';
4566
4589
 
4567
- var _excluded$v = ["value"];
4590
+ var _excluded$w = ["value"];
4568
4591
  var CheckboxComponent$1 = function CheckboxComponent(props) {
4569
4592
  var _useFormikInput = useFormikInput(props),
4570
4593
  value = _useFormikInput.value,
4571
- formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$v);
4594
+ formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$w);
4572
4595
  formProps.isChecked = value;
4573
4596
  var checkboxStates = useCheckboxState(props);
4574
4597
  return React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
@@ -4626,11 +4649,11 @@ var TextAreaComponent$1 = function TextAreaComponent(props) {
4626
4649
  */
4627
4650
  var FormikTextArea = TextAreaComponent$1;
4628
4651
 
4629
- var _excluded$w = ["value"];
4652
+ var _excluded$x = ["value"];
4630
4653
  var TextFieldComponent$1 = function TextFieldComponent(props) {
4631
4654
  var formProps = useFormikInput(props);
4632
4655
  var _useTextFieldState = useTextFieldState(props),
4633
- textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$w);
4656
+ textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$x);
4634
4657
  return React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
4635
4658
  };
4636
4659
  /**
@@ -4638,7 +4661,7 @@ var TextFieldComponent$1 = function TextFieldComponent(props) {
4638
4661
  */
4639
4662
  var FormikTextField = TextFieldComponent$1;
4640
4663
 
4641
- var _excluded$x = ["visibleIcon", "hiddenIcon"],
4664
+ var _excluded$y = ["visibleIcon", "hiddenIcon"],
4642
4665
  _excluded2$3 = ["isVisible", "setIsVisible"];
4643
4666
  var PasswordComponent$1 = function PasswordComponent(_ref) {
4644
4667
  var _ref$visibleIcon = _ref.visibleIcon,
@@ -4649,7 +4672,7 @@ var PasswordComponent$1 = function PasswordComponent(_ref) {
4649
4672
  hiddenIcon = _ref$hiddenIcon === void 0 ? React__default.createElement(CloseEyeSvg, {
4650
4673
  size: 14
4651
4674
  }) : _ref$hiddenIcon,
4652
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
4675
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
4653
4676
  var formProps = useFormikInput(props);
4654
4677
  var _usePasswordState = usePasswordState(formProps),
4655
4678
  isVisible = _usePasswordState.isVisible,
@@ -4757,7 +4780,7 @@ var HeaderIconSizes = {
4757
4780
  xl: 28
4758
4781
  };
4759
4782
 
4760
- var _excluded$y = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
4783
+ var _excluded$z = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
4761
4784
  _excluded2$4 = ["children", "shadow", "isFullScreen", "shape"],
4762
4785
  _excluded3$2 = ["children", "buttonColor", "iconSize", "buttonPosition"],
4763
4786
  _excluded4$2 = ["children"],
@@ -4773,7 +4796,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
4773
4796
  onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
4774
4797
  _ref$position = _ref.position,
4775
4798
  position = _ref$position === void 0 ? 'center' : _ref$position,
4776
- props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
4799
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
4777
4800
  var handleClick = function handleClick() {
4778
4801
  if (!isClosePrevented) onClose();
4779
4802
  };
@@ -4929,12 +4952,12 @@ Modal.Body = ModalBody;
4929
4952
  Modal.Footer = ModalFooter;
4930
4953
  Modal.Layout = ModalLayout;
4931
4954
 
4932
- var _excluded$z = ["src", "color"],
4955
+ var _excluded$A = ["src", "color"],
4933
4956
  _excluded2$5 = ["path"];
4934
4957
  var FileSVG = function FileSVG(_ref) {
4935
4958
  var src = _ref.src,
4936
4959
  color = _ref.color,
4937
- props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
4960
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
4938
4961
  var _useTheme = appStudio.useTheme(),
4939
4962
  getColor = _useTheme.getColor;
4940
4963
  var Colorprops = color ? {
@@ -4991,13 +5014,13 @@ var TabsView = function TabsView(props) {
4991
5014
  var isContentActive = function isContentActive(tab) {
4992
5015
  return tab.value === tabsState[0].value;
4993
5016
  };
4994
- return React__default.createElement(Horizontal$1.Horizontal, Object.assign({
5017
+ return React__default.createElement(Horizontal, Object.assign({
4995
5018
  width: "100w",
4996
5019
  height: '100%'
4997
- }, styles == null ? void 0 : styles.container), React__default.createElement(Horizontal$1.Horizontal, Object.assign({
5020
+ }, styles == null ? void 0 : styles.container), React__default.createElement(Horizontal, Object.assign({
4998
5021
  marginBottom: 20
4999
5022
  }, styles == null ? void 0 : styles.headerTabs), tabs.map(function (tab, idx) {
5000
- return React__default.createElement(Button$1.Button, Object.assign({
5023
+ return React__default.createElement(Button, Object.assign({
5001
5024
  key: tab.title,
5002
5025
  onClick: function onClick() {
5003
5026
  moveSelectedTabToTop(idx);
@@ -5006,12 +5029,12 @@ var TabsView = function TabsView(props) {
5006
5029
  shape: "pillShaped",
5007
5030
  cursor: "pointer",
5008
5031
  isAuto: true
5009
- }, styles == null ? void 0 : styles.tab, isActive.value === tab.value ? styles == null ? void 0 : styles.activeTab : {}), React__default.createElement(Text$1.Text, Object.assign({}, styles == null ? void 0 : styles.title, isActive.value === tab.value ? styles == null ? void 0 : styles.activeText : {}), tab.title));
5010
- })), React__default.createElement(View$1.View, Object.assign({
5032
+ }, styles == null ? void 0 : styles.tab, isActive.value === tab.value ? styles == null ? void 0 : styles.activeTab : {}), React__default.createElement(Text, Object.assign({}, styles == null ? void 0 : styles.title, isActive.value === tab.value ? styles == null ? void 0 : styles.activeText : {}), tab.title));
5033
+ })), React__default.createElement(View, Object.assign({
5011
5034
  width: '100%',
5012
5035
  height: "100%"
5013
5036
  }, styles == null ? void 0 : styles.content), tabsState.map(function (tab, idx) {
5014
- return isContentActive(tab) && React__default.createElement(View$1.View, {
5037
+ return isContentActive(tab) && React__default.createElement(View, {
5015
5038
  key: idx
5016
5039
  }, tab.content);
5017
5040
  })));
@@ -5095,7 +5118,7 @@ var AlertView = function AlertView(_ref) {
5095
5118
  description = _ref.description,
5096
5119
  _ref$variant = _ref.variant,
5097
5120
  variant = _ref$variant === void 0 ? 'default' : _ref$variant;
5098
- return React__default.createElement(Horizontal$1.Horizontal, Object.assign({
5121
+ return React__default.createElement(Horizontal, Object.assign({
5099
5122
  gap: 15,
5100
5123
  borderRadius: 10,
5101
5124
  borderWidth: 1,
@@ -5103,17 +5126,17 @@ var AlertView = function AlertView(_ref) {
5103
5126
  padding: 16,
5104
5127
  wrap: "nowrap",
5105
5128
  borderColor: Themes[variant].container.border
5106
- }, styles == null ? void 0 : styles.container), React__default.createElement(View$1.View, {
5129
+ }, styles == null ? void 0 : styles.container), React__default.createElement(View, {
5107
5130
  alignSelf: 'center'
5108
- }, icon ? icon : React__default.createElement(Svg.WarningSvg, {
5131
+ }, icon ? icon : React__default.createElement(WarningSvg, {
5109
5132
  size: 24,
5110
5133
  color: (_styles$icon$color = styles == null ? void 0 : styles.icon.color) != null ? _styles$icon$color : Themes[variant].content.color
5111
- })), React__default.createElement(Vertical$1.Vertical, {
5134
+ })), React__default.createElement(Vertical, {
5112
5135
  gap: 10
5113
- }, React__default.createElement(Text$1.Text, Object.assign({
5136
+ }, React__default.createElement(Text, Object.assign({
5114
5137
  fontSize: "16px",
5115
5138
  color: Themes[variant].content.color
5116
- }, styles == null ? void 0 : styles.title), title), React__default.createElement(Text$1.Text, Object.assign({
5139
+ }, styles == null ? void 0 : styles.title), title), React__default.createElement(Text, Object.assign({
5117
5140
  fontSize: "14px",
5118
5141
  color: Themes[variant].content.color
5119
5142
  }, styles == null ? void 0 : styles.description), description)));
@@ -5135,19 +5158,19 @@ var AlertComponent = function AlertComponent(_ref) {
5135
5158
  };
5136
5159
  var Alert = AlertComponent;
5137
5160
 
5138
- var _excluded$A = ["ratio", "children"];
5161
+ var _excluded$B = ["ratio", "children"];
5139
5162
  var AspectRatioView = function AspectRatioView(_ref) {
5140
5163
  var _ref$ratio = _ref.ratio,
5141
5164
  ratio = _ref$ratio === void 0 ? 16 / 9 : _ref$ratio,
5142
5165
  children = _ref.children,
5143
- props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
5144
- return React__default.createElement(Center$1.Center, Object.assign({
5166
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
5167
+ return React__default.createElement(Center, Object.assign({
5145
5168
  width: '100%',
5146
5169
  position: "relative",
5147
5170
  overflow: "hidden",
5148
5171
  paddingTop: 1 / ratio * 100 + "%",
5149
5172
  borderRadius: 8
5150
- }, props), React__default.createElement(View$1.View, {
5173
+ }, props), React__default.createElement(View, {
5151
5174
  position: "absolute",
5152
5175
  top: 0,
5153
5176
  right: 0,
@@ -5156,11 +5179,11 @@ var AspectRatioView = function AspectRatioView(_ref) {
5156
5179
  }, children));
5157
5180
  };
5158
5181
 
5159
- var _excluded$B = ["ratio", "children"];
5182
+ var _excluded$C = ["ratio", "children"];
5160
5183
  var AspectRatioComponent = function AspectRatioComponent(_ref) {
5161
5184
  var ratio = _ref.ratio,
5162
5185
  children = _ref.children,
5163
- props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
5186
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
5164
5187
  return React__default.createElement(AspectRatioView, Object.assign({
5165
5188
  ratio: ratio
5166
5189
  }, props), children);
@@ -5198,7 +5221,7 @@ var AvatarView = function AvatarView(_ref) {
5198
5221
  var imageStyle = _extends({
5199
5222
  objectFit: 'cover'
5200
5223
  }, (styles == null ? void 0 : styles.image) || {});
5201
- return React__default.createElement(Center$1.Center, Object.assign({
5224
+ return React__default.createElement(Center, Object.assign({
5202
5225
  role: "avatar",
5203
5226
  width: avatarSize,
5204
5227
  height: avatarSize,
@@ -5217,7 +5240,7 @@ var AvatarView = function AvatarView(_ref) {
5217
5240
  onError: function onError() {
5218
5241
  return setImageError(true);
5219
5242
  }
5220
- }) : React__default.createElement(Text$1.Text, Object.assign({
5243
+ }) : React__default.createElement(Text, Object.assign({
5221
5244
  size: size
5222
5245
  }, styles == null ? void 0 : styles.fallback), fallback));
5223
5246
  };
@@ -5344,9 +5367,9 @@ var BadgeView = function BadgeView(_ref) {
5344
5367
  width: 'fit-content',
5345
5368
  borderRadius: BadgeShapes[shape]
5346
5369
  }, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {}, styles == null ? void 0 : styles.container);
5347
- return React__default.createElement(Center$1.Center, Object.assign({
5370
+ return React__default.createElement(Center, Object.assign({
5348
5371
  role: "badge"
5349
- }, combinedStyles), React__default.createElement(Text$1.Text, Object.assign({
5372
+ }, combinedStyles), React__default.createElement(Text, Object.assign({
5350
5373
  role: "badgeText",
5351
5374
  size: size
5352
5375
  }, styles == null ? void 0 : styles.text), content));
@@ -5392,7 +5415,7 @@ var ToggleShapes = {
5392
5415
  pillShaped: 24
5393
5416
  };
5394
5417
 
5395
- var _excluded$C = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
5418
+ var _excluded$D = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
5396
5419
  var ToggleView = function ToggleView(_ref) {
5397
5420
  var children = _ref.children,
5398
5421
  _ref$shape = _ref.shape,
@@ -5407,7 +5430,7 @@ var ToggleView = function ToggleView(_ref) {
5407
5430
  isToggle = _ref.isToggle,
5408
5431
  setIsToggled = _ref.setIsToggled,
5409
5432
  onToggle = _ref.onToggle,
5410
- props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
5433
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
5411
5434
  var toggleColor = !isDisabled ? colorScheme : 'theme.disabled';
5412
5435
  var isActive = !!(isToggle || isHovered);
5413
5436
  var ToggleVariants = {
@@ -5437,7 +5460,7 @@ var ToggleView = function ToggleView(_ref) {
5437
5460
  }
5438
5461
  };
5439
5462
 
5440
- return React__default.createElement(Center$1.Center, Object.assign({
5463
+ return React__default.createElement(Center, Object.assign({
5441
5464
  role: "Toggle",
5442
5465
  padding: shape === 'pillShaped' ? '10px 12px' : '8px',
5443
5466
  width: "fit-content",
@@ -5455,7 +5478,7 @@ var ToggleView = function ToggleView(_ref) {
5455
5478
  }, ToggleVariants[variant], props), children);
5456
5479
  };
5457
5480
 
5458
- var _excluded$D = ["children", "shape", "colorScheme", "variant", "isDisabled", "isToggled", "onToggle"];
5481
+ var _excluded$E = ["children", "shape", "colorScheme", "variant", "isDisabled", "isToggled", "onToggle"];
5459
5482
  var ToggleComponent = function ToggleComponent(_ref) {
5460
5483
  var children = _ref.children,
5461
5484
  shape = _ref.shape,
@@ -5465,7 +5488,7 @@ var ToggleComponent = function ToggleComponent(_ref) {
5465
5488
  _ref$isToggled = _ref.isToggled,
5466
5489
  isToggled = _ref$isToggled === void 0 ? false : _ref$isToggled,
5467
5490
  onToggle = _ref.onToggle,
5468
- props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
5491
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
5469
5492
  var _useToggleState = useToggleState(isToggled),
5470
5493
  isHovered = _useToggleState.isHovered,
5471
5494
  setIsHovered = _useToggleState.setIsHovered,