@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.
package/dist/web.esm.js CHANGED
@@ -4,13 +4,7 @@ import { Link as Link$1 } from 'react-router-dom';
4
4
  import format from 'date-fns/format';
5
5
  import { useFormikContext } from 'formik';
6
6
  import { create } from 'zustand';
7
- import { View as View$2 } from 'src/components/Layout/View/View';
8
7
  import { Horizontal as Horizontal$1 } from 'src/components/Layout/Horizontal/Horizontal';
9
- import { Button as Button$1 } from 'src/components/Button/Button';
10
- import { Text as Text$1 } from 'src/components/Text/Text';
11
- import { Vertical as Vertical$1 } from 'src/components/Layout/Vertical/Vertical';
12
- import { WarningSvg } from 'src/components/Svg';
13
- import { Center as Center$1 } from 'src/components/Layout/Center/Center';
14
8
 
15
9
  var useButtonState = function useButtonState() {
16
10
  var _React$useState = React.useState(false),
@@ -412,6 +406,35 @@ var OpenEyeSvg = function OpenEyeSvg(_ref) {
412
406
  }))));
413
407
  };
414
408
 
409
+ var _excluded$a = ["size", "color"];
410
+ var WarningSvg = function WarningSvg(_ref) {
411
+ var _ref$size = _ref.size,
412
+ size = _ref$size === void 0 ? 64 : _ref$size,
413
+ _ref$color = _ref.color,
414
+ color = _ref$color === void 0 ? 'white' : _ref$color,
415
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
416
+ return React.createElement(Center, {
417
+ width: size + "px",
418
+ height: size + "px"
419
+ }, React.createElement("svg", Object.assign({
420
+ height: size + "px",
421
+ width: size + "px",
422
+ version: "1.1",
423
+ id: "Capa_1",
424
+ xmlns: "http://www.w3.org/2000/svg",
425
+ viewBox: "0 0 192.146 192.146",
426
+ fill: color
427
+ }, props), React.createElement("g", {
428
+ id: "SVGRepo_bgCarrier"
429
+ }), React.createElement("g", {
430
+ id: "SVGRepo_tracerCarrier"
431
+ }), React.createElement("g", {
432
+ id: "SVGRepo_iconCarrier"
433
+ }, React.createElement("g", null, React.createElement("g", null, React.createElement("g", null, React.createElement("path", {
434
+ 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"
435
+ })))))));
436
+ };
437
+
415
438
  var IconSizes = {
416
439
  xs: 12,
417
440
  sm: 14,
@@ -425,7 +448,7 @@ var IconSizes = {
425
448
  '6xl': 64
426
449
  };
427
450
 
428
- var _excluded$a = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
451
+ var _excluded$b = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
429
452
  var LinkView = function LinkView(_ref) {
430
453
  var children = _ref.children,
431
454
  _ref$href = _ref.href,
@@ -445,7 +468,7 @@ var LinkView = function LinkView(_ref) {
445
468
  } : _ref$styles,
446
469
  _ref$setIsHovered = _ref.setIsHovered,
447
470
  setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
448
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
471
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
449
472
  var handleHover = function handleHover() {
450
473
  if (underline === 'hover') setIsHovered(true);
451
474
  };
@@ -583,7 +606,7 @@ var DefaultSpeeds = {
583
606
  slow: 300
584
607
  };
585
608
 
586
- var _excluded$b = ["size", "speed", "color"],
609
+ var _excluded$c = ["size", "speed", "color"],
587
610
  _excluded2 = ["size", "speed", "color"],
588
611
  _excluded3 = ["size", "speed", "color"],
589
612
  _excluded4 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
@@ -594,7 +617,7 @@ var DefaultSpinner = function DefaultSpinner(_ref) {
594
617
  speed = _ref$speed === void 0 ? 'normal' : _ref$speed,
595
618
  _ref$color = _ref.color,
596
619
  color = _ref$color === void 0 ? 'theme.loading' : _ref$color,
597
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
620
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
598
621
  var theme = useTheme();
599
622
  var colorStyle = theme.getColor(color);
600
623
  var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
@@ -768,7 +791,7 @@ var LoaderComponent = function LoaderComponent(props) {
768
791
  */
769
792
  var Loader = LoaderComponent;
770
793
 
771
- var _excluded$c = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered"];
794
+ var _excluded$d = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered"];
772
795
  var ButtonView = function ButtonView(_ref) {
773
796
  var _props$onClick;
774
797
  var icon = _ref.icon,
@@ -805,7 +828,7 @@ var ButtonView = function ButtonView(_ref) {
805
828
  _ref$effect = _ref.effect,
806
829
  effect = _ref$effect === void 0 ? 'default' : _ref$effect,
807
830
  isHovered = _ref.isHovered,
808
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
831
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
809
832
  var isActive = !(isDisabled || isLoading);
810
833
  var defaultNativeProps = {
811
834
  disabled: !isActive
@@ -949,7 +972,7 @@ var HeadingSizes = {
949
972
  }
950
973
  };
951
974
 
952
- var _excluded$d = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
975
+ var _excluded$e = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
953
976
  var LabelView = function LabelView(_ref) {
954
977
  var children = _ref.children,
955
978
  heading = _ref.heading,
@@ -963,7 +986,7 @@ var LabelView = function LabelView(_ref) {
963
986
  weight = _ref$weight === void 0 ? 'normal' : _ref$weight,
964
987
  _ref$size = _ref.size,
965
988
  size = _ref$size === void 0 ? 'sm' : _ref$size,
966
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
989
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
967
990
  var headingStyles = heading ? HeadingSizes[heading] : {};
968
991
  return React.createElement(Element, Object.assign({
969
992
  as: "label",
@@ -1035,7 +1058,7 @@ var IconSizes$2 = {
1035
1058
  '6xl': 60
1036
1059
  };
1037
1060
 
1038
- var _excluded$e = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "colorScheme", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "styles"];
1061
+ var _excluded$f = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "colorScheme", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "styles"];
1039
1062
  var CheckboxView = function CheckboxView(_ref) {
1040
1063
  var id = _ref.id,
1041
1064
  icon = _ref.icon,
@@ -1072,7 +1095,7 @@ var CheckboxView = function CheckboxView(_ref) {
1072
1095
  checkbox: {},
1073
1096
  label: {}
1074
1097
  } : _ref$styles,
1075
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
1098
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
1076
1099
  var handleHover = function handleHover() {
1077
1100
  return setIsHovered(!isHovered);
1078
1101
  };
@@ -2646,7 +2669,7 @@ var HeadingSizes$1 = {
2646
2669
  }
2647
2670
  };
2648
2671
 
2649
- var _excluded$f = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "isTruncated", "weight", "size"];
2672
+ var _excluded$g = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "isTruncated", "weight", "size"];
2650
2673
  var TextContent = function TextContent(_ref) {
2651
2674
  var children = _ref.children,
2652
2675
  isSub = _ref.isSub,
@@ -2710,7 +2733,7 @@ var TextView = function TextView(_ref3) {
2710
2733
  weight = _ref3$weight === void 0 ? 'normal' : _ref3$weight,
2711
2734
  _ref3$size = _ref3.size,
2712
2735
  size = _ref3$size === void 0 ? 'md' : _ref3$size,
2713
- props = _objectWithoutPropertiesLoose(_ref3, _excluded$f);
2736
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded$g);
2714
2737
  var headingStyles = heading ? HeadingSizes$1[heading] : {};
2715
2738
  var noLineBreak = isSub || isSup ? {
2716
2739
  display: 'inline'
@@ -2740,14 +2763,14 @@ var TextComponent = function TextComponent(props) {
2740
2763
  */
2741
2764
  var Text = TextComponent;
2742
2765
 
2743
- var _excluded$g = ["children", "styles"];
2766
+ var _excluded$h = ["children", "styles"];
2744
2767
  var HelperText = function HelperText(_ref) {
2745
2768
  var children = _ref.children,
2746
2769
  _ref$styles = _ref.styles,
2747
2770
  styles = _ref$styles === void 0 ? {
2748
2771
  helperText: {}
2749
2772
  } : _ref$styles,
2750
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
2773
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
2751
2774
  return React.createElement(Text, Object.assign({
2752
2775
  size: "xs",
2753
2776
  marginVertical: 0,
@@ -2756,7 +2779,7 @@ var HelperText = function HelperText(_ref) {
2756
2779
  }, styles['helperText'], props), children);
2757
2780
  };
2758
2781
 
2759
- var _excluded$h = ["children", "wrap", "justify", "isReversed"];
2782
+ var _excluded$i = ["children", "wrap", "justify", "isReversed"];
2760
2783
  var VerticalView = function VerticalView(_ref) {
2761
2784
  var children = _ref.children,
2762
2785
  _ref$wrap = _ref.wrap,
@@ -2765,7 +2788,7 @@ var VerticalView = function VerticalView(_ref) {
2765
2788
  justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
2766
2789
  _ref$isReversed = _ref.isReversed,
2767
2790
  isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
2768
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
2791
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
2769
2792
  return React.createElement(View$1, Object.assign({
2770
2793
  display: "flex",
2771
2794
  flexWrap: wrap,
@@ -2782,14 +2805,14 @@ var VerticalComponent = function VerticalComponent(props) {
2782
2805
  };
2783
2806
  var Vertical = VerticalComponent;
2784
2807
 
2785
- var _excluded$i = ["children", "helperText", "error", "styles"];
2808
+ var _excluded$j = ["children", "helperText", "error", "styles"];
2786
2809
  var FieldContainer = function FieldContainer(_ref) {
2787
2810
  var children = _ref.children,
2788
2811
  helperText = _ref.helperText,
2789
2812
  _ref$error = _ref.error,
2790
2813
  error = _ref$error === void 0 ? false : _ref$error,
2791
2814
  styles = _ref.styles,
2792
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
2815
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
2793
2816
  return React.createElement(Vertical, Object.assign({
2794
2817
  gap: 5,
2795
2818
  position: "relative"
@@ -2848,7 +2871,7 @@ var PaddingWithoutLabel = {
2848
2871
  paddingRight: 36
2849
2872
  };
2850
2873
 
2851
- var _excluded$j = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
2874
+ var _excluded$k = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
2852
2875
  var FieldContent = function FieldContent(_ref) {
2853
2876
  var shadow = _ref.shadow,
2854
2877
  children = _ref.children,
@@ -2876,7 +2899,7 @@ var FieldContent = function FieldContent(_ref) {
2876
2899
  styles = _ref$styles === void 0 ? {
2877
2900
  pickerBox: {}
2878
2901
  } : _ref$styles,
2879
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
2902
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
2880
2903
  var isInteractive = (isHovered || isFocused) && !isDisabled;
2881
2904
  var color = error ? 'error' : isInteractive ? colorScheme : 'midgray';
2882
2905
  return React.createElement(Horizontal, Object.assign({
@@ -2897,10 +2920,10 @@ var FieldContent = function FieldContent(_ref) {
2897
2920
  }, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], styles['box'], props), children);
2898
2921
  };
2899
2922
 
2900
- var _excluded$k = ["children"];
2923
+ var _excluded$l = ["children"];
2901
2924
  var FieldIcons = function FieldIcons(_ref) {
2902
2925
  var children = _ref.children,
2903
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
2926
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
2904
2927
  return React.createElement(Center, Object.assign({
2905
2928
  gap: 10,
2906
2929
  right: 16,
@@ -2910,7 +2933,7 @@ var FieldIcons = function FieldIcons(_ref) {
2910
2933
  }, props), children);
2911
2934
  };
2912
2935
 
2913
- var _excluded$l = ["children", "size", "error", "color", "styles"];
2936
+ var _excluded$m = ["children", "size", "error", "color", "styles"];
2914
2937
  var FieldLabel = function FieldLabel(_ref) {
2915
2938
  var children = _ref.children,
2916
2939
  _ref$size = _ref.size,
@@ -2923,7 +2946,7 @@ var FieldLabel = function FieldLabel(_ref) {
2923
2946
  styles = _ref$styles === void 0 ? {
2924
2947
  label: {}
2925
2948
  } : _ref$styles,
2926
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
2949
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
2927
2950
  return React.createElement(Label, Object.assign({
2928
2951
  top: 6,
2929
2952
  zIndex: 1000,
@@ -2936,10 +2959,10 @@ var FieldLabel = function FieldLabel(_ref) {
2936
2959
  }, styles['label'], props), children);
2937
2960
  };
2938
2961
 
2939
- var _excluded$m = ["children"];
2962
+ var _excluded$n = ["children"];
2940
2963
  var FieldWrapper = function FieldWrapper(_ref) {
2941
2964
  var children = _ref.children,
2942
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
2965
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
2943
2966
  return React.createElement(Vertical, Object.assign({
2944
2967
  width: "100%"
2945
2968
  }, props), children);
@@ -2953,7 +2976,7 @@ var IconSizes$3 = {
2953
2976
  xl: 16
2954
2977
  };
2955
2978
 
2956
- 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"];
2979
+ 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"];
2957
2980
  var CountryList = function CountryList(props) {
2958
2981
  return React.createElement(Element, Object.assign({
2959
2982
  as: "ul"
@@ -3093,7 +3116,7 @@ var CountryPickerView = function CountryPickerView(_ref3) {
3093
3116
  helperText: {},
3094
3117
  box: {}
3095
3118
  } : _ref3$styles,
3096
- props = _objectWithoutPropertiesLoose(_ref3, _excluded$n);
3119
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded$o);
3097
3120
  var _useTheme = useTheme(),
3098
3121
  getColor = _useTheme.getColor;
3099
3122
  var IconColor = getColor('color.blueGray.700');
@@ -3231,7 +3254,7 @@ var useDatePickerState = function useDatePickerState() {
3231
3254
  };
3232
3255
  };
3233
3256
 
3234
- 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"];
3257
+ 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"];
3235
3258
  var DatePickerContent = function DatePickerContent(props) {
3236
3259
  return React.createElement(Input, Object.assign({
3237
3260
  type: "date"
@@ -3279,7 +3302,7 @@ var DatePickerView = function DatePickerView(_ref) {
3279
3302
  setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
3280
3303
  onChange = _ref.onChange,
3281
3304
  onChangeText = _ref.onChangeText,
3282
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
3305
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
3283
3306
  var isWithLabel = !!(isFocused && label);
3284
3307
  var handleHover = function handleHover() {
3285
3308
  return setIsHovered(!isHovered);
@@ -3404,7 +3427,7 @@ var usePasswordState = function usePasswordState(props) {
3404
3427
  }, props, textFieldStates);
3405
3428
  };
3406
3429
 
3407
- 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"];
3430
+ 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"];
3408
3431
  var TextFieldInput = function TextFieldInput(props) {
3409
3432
  return React.createElement(Input, Object.assign({
3410
3433
  type: "text"
@@ -3462,7 +3485,7 @@ var TextFieldView = function TextFieldView(_ref) {
3462
3485
  onFocus = _ref.onFocus,
3463
3486
  _ref$onBlur = _ref.onBlur,
3464
3487
  onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur,
3465
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
3488
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
3466
3489
  var _useTheme = useTheme(),
3467
3490
  getColor = _useTheme.getColor;
3468
3491
  var IconColor = getColor('color.blueGray.700');
@@ -3570,7 +3593,7 @@ var TextFieldView = function TextFieldView(_ref) {
3570
3593
  }), rightChild && React.createElement(React.Fragment, null, rightChild))));
3571
3594
  };
3572
3595
 
3573
- var _excluded$q = ["visibleIcon", "hiddenIcon"],
3596
+ var _excluded$r = ["visibleIcon", "hiddenIcon"],
3574
3597
  _excluded2$1 = ["isVisible", "setIsVisible"];
3575
3598
  var PasswordComponent = function PasswordComponent(_ref) {
3576
3599
  var _ref$visibleIcon = _ref.visibleIcon,
@@ -3581,7 +3604,7 @@ var PasswordComponent = function PasswordComponent(_ref) {
3581
3604
  hiddenIcon = _ref$hiddenIcon === void 0 ? React.createElement(CloseEyeSvg, {
3582
3605
  size: 14
3583
3606
  }) : _ref$hiddenIcon,
3584
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
3607
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
3585
3608
  var _usePasswordState = usePasswordState(props),
3586
3609
  isVisible = _usePasswordState.isVisible,
3587
3610
  setIsVisible = _usePasswordState.setIsVisible,
@@ -3649,7 +3672,7 @@ var IconSizes$4 = {
3649
3672
  xl: 16
3650
3673
  };
3651
3674
 
3652
- var _excluded$r = ["isHovered", "setIsHovered", "option", "size", "callback"],
3675
+ var _excluded$s = ["isHovered", "setIsHovered", "option", "size", "callback"],
3653
3676
  _excluded2$2 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
3654
3677
  _excluded3$1 = ["option", "size", "removeOption"],
3655
3678
  _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"];
@@ -3661,7 +3684,7 @@ var Item = function Item(_ref) {
3661
3684
  size = _ref$size === void 0 ? 'md' : _ref$size,
3662
3685
  _ref$callback = _ref.callback,
3663
3686
  callback = _ref$callback === void 0 ? function () {} : _ref$callback,
3664
- props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
3687
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
3665
3688
  var handleOptionClick = function handleOptionClick(option) {
3666
3689
  return callback(option);
3667
3690
  };
@@ -4132,7 +4155,7 @@ var SliderPadding = {
4132
4155
  }
4133
4156
  };
4134
4157
 
4135
- var _excluded$s = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "onChange", "setValue", "setIsHovered", "styles"];
4158
+ var _excluded$t = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "onChange", "setValue", "setIsHovered", "styles"];
4136
4159
  var SwitchContent = function SwitchContent(props) {
4137
4160
  return React.createElement(Input, Object.assign({
4138
4161
  type: "checkbox"
@@ -4171,7 +4194,7 @@ var SwitchView = function SwitchView(_ref) {
4171
4194
  circle: {},
4172
4195
  label: {}
4173
4196
  } : _ref$styles,
4174
- props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
4197
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
4175
4198
  var handleToggle = function handleToggle(event) {
4176
4199
  if (!isReadOnly) {
4177
4200
  setValue(!value);
@@ -4257,7 +4280,7 @@ var useTextAreaState = function useTextAreaState(_ref) {
4257
4280
  };
4258
4281
  };
4259
4282
 
4260
- 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"];
4283
+ 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"];
4261
4284
  var TextAreaView = function TextAreaView(_ref) {
4262
4285
  var id = _ref.id,
4263
4286
  name = _ref.name,
@@ -4312,7 +4335,7 @@ var TextAreaView = function TextAreaView(_ref) {
4312
4335
  helperText: {},
4313
4336
  field: {}
4314
4337
  } : _ref$styles,
4315
- props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
4338
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
4316
4339
  var isWithLabel = !!(isFocused && label);
4317
4340
  var fieldStyles = _extends({
4318
4341
  margin: 0,
@@ -4480,7 +4503,7 @@ var FormikForm = function FormikForm(_ref) {
4480
4503
  }, React.createElement(Form, null, children));
4481
4504
  };
4482
4505
 
4483
- var _excluded$u = ["name", "type"];
4506
+ var _excluded$v = ["name", "type"];
4484
4507
  var getInputTypeProps = function getInputTypeProps(type) {
4485
4508
  switch (type) {
4486
4509
  case 'email':
@@ -4510,7 +4533,7 @@ var getInputTypeProps = function getInputTypeProps(type) {
4510
4533
  var useFormikInput = function useFormikInput(_ref) {
4511
4534
  var name = _ref.name,
4512
4535
  type = _ref.type,
4513
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
4536
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
4514
4537
  var focus = useFormFocus();
4515
4538
  var _useFormikContext = useFormikContext(),
4516
4539
  touched = _useFormikContext.touched,
@@ -4557,11 +4580,11 @@ var useFormikInput = function useFormikInput(_ref) {
4557
4580
  // import FormRater from 'src/Rate/Rate';
4558
4581
  // import Upload from 'src/Upload/Upload';
4559
4582
 
4560
- var _excluded$v = ["value"];
4583
+ var _excluded$w = ["value"];
4561
4584
  var CheckboxComponent$1 = function CheckboxComponent(props) {
4562
4585
  var _useFormikInput = useFormikInput(props),
4563
4586
  value = _useFormikInput.value,
4564
- formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$v);
4587
+ formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$w);
4565
4588
  formProps.isChecked = value;
4566
4589
  var checkboxStates = useCheckboxState(props);
4567
4590
  return React.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
@@ -4619,11 +4642,11 @@ var TextAreaComponent$1 = function TextAreaComponent(props) {
4619
4642
  */
4620
4643
  var FormikTextArea = TextAreaComponent$1;
4621
4644
 
4622
- var _excluded$w = ["value"];
4645
+ var _excluded$x = ["value"];
4623
4646
  var TextFieldComponent$1 = function TextFieldComponent(props) {
4624
4647
  var formProps = useFormikInput(props);
4625
4648
  var _useTextFieldState = useTextFieldState(props),
4626
- textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$w);
4649
+ textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$x);
4627
4650
  return React.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
4628
4651
  };
4629
4652
  /**
@@ -4631,7 +4654,7 @@ var TextFieldComponent$1 = function TextFieldComponent(props) {
4631
4654
  */
4632
4655
  var FormikTextField = TextFieldComponent$1;
4633
4656
 
4634
- var _excluded$x = ["visibleIcon", "hiddenIcon"],
4657
+ var _excluded$y = ["visibleIcon", "hiddenIcon"],
4635
4658
  _excluded2$3 = ["isVisible", "setIsVisible"];
4636
4659
  var PasswordComponent$1 = function PasswordComponent(_ref) {
4637
4660
  var _ref$visibleIcon = _ref.visibleIcon,
@@ -4642,7 +4665,7 @@ var PasswordComponent$1 = function PasswordComponent(_ref) {
4642
4665
  hiddenIcon = _ref$hiddenIcon === void 0 ? React.createElement(CloseEyeSvg, {
4643
4666
  size: 14
4644
4667
  }) : _ref$hiddenIcon,
4645
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
4668
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
4646
4669
  var formProps = useFormikInput(props);
4647
4670
  var _usePasswordState = usePasswordState(formProps),
4648
4671
  isVisible = _usePasswordState.isVisible,
@@ -4750,7 +4773,7 @@ var HeaderIconSizes = {
4750
4773
  xl: 28
4751
4774
  };
4752
4775
 
4753
- var _excluded$y = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
4776
+ var _excluded$z = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
4754
4777
  _excluded2$4 = ["children", "shadow", "isFullScreen", "shape"],
4755
4778
  _excluded3$2 = ["children", "buttonColor", "iconSize", "buttonPosition"],
4756
4779
  _excluded4$2 = ["children"],
@@ -4766,7 +4789,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
4766
4789
  onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
4767
4790
  _ref$position = _ref.position,
4768
4791
  position = _ref$position === void 0 ? 'center' : _ref$position,
4769
- props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
4792
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
4770
4793
  var handleClick = function handleClick() {
4771
4794
  if (!isClosePrevented) onClose();
4772
4795
  };
@@ -4922,12 +4945,12 @@ Modal.Body = ModalBody;
4922
4945
  Modal.Footer = ModalFooter;
4923
4946
  Modal.Layout = ModalLayout;
4924
4947
 
4925
- var _excluded$z = ["src", "color"],
4948
+ var _excluded$A = ["src", "color"],
4926
4949
  _excluded2$5 = ["path"];
4927
4950
  var FileSVG = function FileSVG(_ref) {
4928
4951
  var src = _ref.src,
4929
4952
  color = _ref.color,
4930
- props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
4953
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
4931
4954
  var _useTheme = useTheme(),
4932
4955
  getColor = _useTheme.getColor;
4933
4956
  var Colorprops = color ? {
@@ -4984,13 +5007,13 @@ var TabsView = function TabsView(props) {
4984
5007
  var isContentActive = function isContentActive(tab) {
4985
5008
  return tab.value === tabsState[0].value;
4986
5009
  };
4987
- return React.createElement(Horizontal$1, Object.assign({
5010
+ return React.createElement(Horizontal, Object.assign({
4988
5011
  width: "100w",
4989
5012
  height: '100%'
4990
- }, styles == null ? void 0 : styles.container), React.createElement(Horizontal$1, Object.assign({
5013
+ }, styles == null ? void 0 : styles.container), React.createElement(Horizontal, Object.assign({
4991
5014
  marginBottom: 20
4992
5015
  }, styles == null ? void 0 : styles.headerTabs), tabs.map(function (tab, idx) {
4993
- return React.createElement(Button$1, Object.assign({
5016
+ return React.createElement(Button, Object.assign({
4994
5017
  key: tab.title,
4995
5018
  onClick: function onClick() {
4996
5019
  moveSelectedTabToTop(idx);
@@ -4999,12 +5022,12 @@ var TabsView = function TabsView(props) {
4999
5022
  shape: "pillShaped",
5000
5023
  cursor: "pointer",
5001
5024
  isAuto: true
5002
- }, styles == null ? void 0 : styles.tab, isActive.value === tab.value ? styles == null ? void 0 : styles.activeTab : {}), React.createElement(Text$1, Object.assign({}, styles == null ? void 0 : styles.title, isActive.value === tab.value ? styles == null ? void 0 : styles.activeText : {}), tab.title));
5003
- })), React.createElement(View$2, Object.assign({
5025
+ }, styles == null ? void 0 : styles.tab, isActive.value === tab.value ? styles == null ? void 0 : styles.activeTab : {}), React.createElement(Text, Object.assign({}, styles == null ? void 0 : styles.title, isActive.value === tab.value ? styles == null ? void 0 : styles.activeText : {}), tab.title));
5026
+ })), React.createElement(View, Object.assign({
5004
5027
  width: '100%',
5005
5028
  height: "100%"
5006
5029
  }, styles == null ? void 0 : styles.content), tabsState.map(function (tab, idx) {
5007
- return isContentActive(tab) && React.createElement(View$2, {
5030
+ return isContentActive(tab) && React.createElement(View, {
5008
5031
  key: idx
5009
5032
  }, tab.content);
5010
5033
  })));
@@ -5088,7 +5111,7 @@ var AlertView = function AlertView(_ref) {
5088
5111
  description = _ref.description,
5089
5112
  _ref$variant = _ref.variant,
5090
5113
  variant = _ref$variant === void 0 ? 'default' : _ref$variant;
5091
- return React.createElement(Horizontal$1, Object.assign({
5114
+ return React.createElement(Horizontal, Object.assign({
5092
5115
  gap: 15,
5093
5116
  borderRadius: 10,
5094
5117
  borderWidth: 1,
@@ -5096,17 +5119,17 @@ var AlertView = function AlertView(_ref) {
5096
5119
  padding: 16,
5097
5120
  wrap: "nowrap",
5098
5121
  borderColor: Themes[variant].container.border
5099
- }, styles == null ? void 0 : styles.container), React.createElement(View$2, {
5122
+ }, styles == null ? void 0 : styles.container), React.createElement(View, {
5100
5123
  alignSelf: 'center'
5101
5124
  }, icon ? icon : React.createElement(WarningSvg, {
5102
5125
  size: 24,
5103
5126
  color: (_styles$icon$color = styles == null ? void 0 : styles.icon.color) != null ? _styles$icon$color : Themes[variant].content.color
5104
- })), React.createElement(Vertical$1, {
5127
+ })), React.createElement(Vertical, {
5105
5128
  gap: 10
5106
- }, React.createElement(Text$1, Object.assign({
5129
+ }, React.createElement(Text, Object.assign({
5107
5130
  fontSize: "16px",
5108
5131
  color: Themes[variant].content.color
5109
- }, styles == null ? void 0 : styles.title), title), React.createElement(Text$1, Object.assign({
5132
+ }, styles == null ? void 0 : styles.title), title), React.createElement(Text, Object.assign({
5110
5133
  fontSize: "14px",
5111
5134
  color: Themes[variant].content.color
5112
5135
  }, styles == null ? void 0 : styles.description), description)));
@@ -5128,19 +5151,19 @@ var AlertComponent = function AlertComponent(_ref) {
5128
5151
  };
5129
5152
  var Alert = AlertComponent;
5130
5153
 
5131
- var _excluded$A = ["ratio", "children"];
5154
+ var _excluded$B = ["ratio", "children"];
5132
5155
  var AspectRatioView = function AspectRatioView(_ref) {
5133
5156
  var _ref$ratio = _ref.ratio,
5134
5157
  ratio = _ref$ratio === void 0 ? 16 / 9 : _ref$ratio,
5135
5158
  children = _ref.children,
5136
- props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
5137
- return React.createElement(Center$1, Object.assign({
5159
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
5160
+ return React.createElement(Center, Object.assign({
5138
5161
  width: '100%',
5139
5162
  position: "relative",
5140
5163
  overflow: "hidden",
5141
5164
  paddingTop: 1 / ratio * 100 + "%",
5142
5165
  borderRadius: 8
5143
- }, props), React.createElement(View$2, {
5166
+ }, props), React.createElement(View, {
5144
5167
  position: "absolute",
5145
5168
  top: 0,
5146
5169
  right: 0,
@@ -5149,11 +5172,11 @@ var AspectRatioView = function AspectRatioView(_ref) {
5149
5172
  }, children));
5150
5173
  };
5151
5174
 
5152
- var _excluded$B = ["ratio", "children"];
5175
+ var _excluded$C = ["ratio", "children"];
5153
5176
  var AspectRatioComponent = function AspectRatioComponent(_ref) {
5154
5177
  var ratio = _ref.ratio,
5155
5178
  children = _ref.children,
5156
- props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
5179
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
5157
5180
  return React.createElement(AspectRatioView, Object.assign({
5158
5181
  ratio: ratio
5159
5182
  }, props), children);
@@ -5191,7 +5214,7 @@ var AvatarView = function AvatarView(_ref) {
5191
5214
  var imageStyle = _extends({
5192
5215
  objectFit: 'cover'
5193
5216
  }, (styles == null ? void 0 : styles.image) || {});
5194
- return React.createElement(Center$1, Object.assign({
5217
+ return React.createElement(Center, Object.assign({
5195
5218
  role: "avatar",
5196
5219
  width: avatarSize,
5197
5220
  height: avatarSize,
@@ -5210,7 +5233,7 @@ var AvatarView = function AvatarView(_ref) {
5210
5233
  onError: function onError() {
5211
5234
  return setImageError(true);
5212
5235
  }
5213
- }) : React.createElement(Text$1, Object.assign({
5236
+ }) : React.createElement(Text, Object.assign({
5214
5237
  size: size
5215
5238
  }, styles == null ? void 0 : styles.fallback), fallback));
5216
5239
  };
@@ -5337,9 +5360,9 @@ var BadgeView = function BadgeView(_ref) {
5337
5360
  width: 'fit-content',
5338
5361
  borderRadius: BadgeShapes[shape]
5339
5362
  }, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {}, styles == null ? void 0 : styles.container);
5340
- return React.createElement(Center$1, Object.assign({
5363
+ return React.createElement(Center, Object.assign({
5341
5364
  role: "badge"
5342
- }, combinedStyles), React.createElement(Text$1, Object.assign({
5365
+ }, combinedStyles), React.createElement(Text, Object.assign({
5343
5366
  role: "badgeText",
5344
5367
  size: size
5345
5368
  }, styles == null ? void 0 : styles.text), content));
@@ -5385,7 +5408,7 @@ var ToggleShapes = {
5385
5408
  pillShaped: 24
5386
5409
  };
5387
5410
 
5388
- var _excluded$C = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
5411
+ var _excluded$D = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
5389
5412
  var ToggleView = function ToggleView(_ref) {
5390
5413
  var children = _ref.children,
5391
5414
  _ref$shape = _ref.shape,
@@ -5400,7 +5423,7 @@ var ToggleView = function ToggleView(_ref) {
5400
5423
  isToggle = _ref.isToggle,
5401
5424
  setIsToggled = _ref.setIsToggled,
5402
5425
  onToggle = _ref.onToggle,
5403
- props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
5426
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
5404
5427
  var toggleColor = !isDisabled ? colorScheme : 'theme.disabled';
5405
5428
  var isActive = !!(isToggle || isHovered);
5406
5429
  var ToggleVariants = {
@@ -5430,7 +5453,7 @@ var ToggleView = function ToggleView(_ref) {
5430
5453
  }
5431
5454
  };
5432
5455
 
5433
- return React.createElement(Center$1, Object.assign({
5456
+ return React.createElement(Center, Object.assign({
5434
5457
  role: "Toggle",
5435
5458
  padding: shape === 'pillShaped' ? '10px 12px' : '8px',
5436
5459
  width: "fit-content",
@@ -5448,7 +5471,7 @@ var ToggleView = function ToggleView(_ref) {
5448
5471
  }, ToggleVariants[variant], props), children);
5449
5472
  };
5450
5473
 
5451
- var _excluded$D = ["children", "shape", "colorScheme", "variant", "isDisabled", "isToggled", "onToggle"];
5474
+ var _excluded$E = ["children", "shape", "colorScheme", "variant", "isDisabled", "isToggled", "onToggle"];
5452
5475
  var ToggleComponent = function ToggleComponent(_ref) {
5453
5476
  var children = _ref.children,
5454
5477
  shape = _ref.shape,
@@ -5458,7 +5481,7 @@ var ToggleComponent = function ToggleComponent(_ref) {
5458
5481
  _ref$isToggled = _ref.isToggled,
5459
5482
  isToggled = _ref$isToggled === void 0 ? false : _ref$isToggled,
5460
5483
  onToggle = _ref.onToggle,
5461
- props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
5484
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
5462
5485
  var _useToggleState = useToggleState(isToggled),
5463
5486
  isHovered = _useToggleState.isHovered,
5464
5487
  setIsHovered = _useToggleState.setIsHovered,