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