@app-studio/web 0.3.67 → 0.3.69

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