@app-studio/web 0.3.66 → 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/components/Tabs/Tabs/Tabs.state.d.ts +1 -1
- package/dist/web.cjs.development.js +111 -84
- 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 +109 -82
- package/dist/web.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -11,9 +11,7 @@ var reactRouterDom = require('react-router-dom');
|
|
|
11
11
|
var format = _interopDefault(require('date-fns/format'));
|
|
12
12
|
var formik = require('formik');
|
|
13
13
|
var zustand = require('zustand');
|
|
14
|
-
var
|
|
15
|
-
var components = require('src/components');
|
|
16
|
-
var Svg = require('src/components/Svg');
|
|
14
|
+
var Horizontal$1 = require('src/components/Layout/Horizontal/Horizontal');
|
|
17
15
|
|
|
18
16
|
var useButtonState = function useButtonState() {
|
|
19
17
|
var _React$useState = React__default.useState(false),
|
|
@@ -415,6 +413,35 @@ var OpenEyeSvg = function OpenEyeSvg(_ref) {
|
|
|
415
413
|
}))));
|
|
416
414
|
};
|
|
417
415
|
|
|
416
|
+
var _excluded$a = ["size", "color"];
|
|
417
|
+
var WarningSvg = function WarningSvg(_ref) {
|
|
418
|
+
var _ref$size = _ref.size,
|
|
419
|
+
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
420
|
+
_ref$color = _ref.color,
|
|
421
|
+
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
422
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
423
|
+
return React__default.createElement(Center, {
|
|
424
|
+
width: size + "px",
|
|
425
|
+
height: size + "px"
|
|
426
|
+
}, React__default.createElement("svg", Object.assign({
|
|
427
|
+
height: size + "px",
|
|
428
|
+
width: size + "px",
|
|
429
|
+
version: "1.1",
|
|
430
|
+
id: "Capa_1",
|
|
431
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
432
|
+
viewBox: "0 0 192.146 192.146",
|
|
433
|
+
fill: color
|
|
434
|
+
}, props), React__default.createElement("g", {
|
|
435
|
+
id: "SVGRepo_bgCarrier"
|
|
436
|
+
}), React__default.createElement("g", {
|
|
437
|
+
id: "SVGRepo_tracerCarrier"
|
|
438
|
+
}), React__default.createElement("g", {
|
|
439
|
+
id: "SVGRepo_iconCarrier"
|
|
440
|
+
}, React__default.createElement("g", null, React__default.createElement("g", null, React__default.createElement("g", null, React__default.createElement("path", {
|
|
441
|
+
d: "M108.186,144.372c0,7.054-4.729,12.32-12.037,12.32h-0.254c-7.054,0-11.92-5.266-11.92-12.32 c0-7.298,5.012-12.31,12.174-12.31C103.311,132.062,108.059,137.054,108.186,144.372z M88.44,125.301h15.447l2.951-61.298H85.46 L88.44,125.301z M190.372,177.034c-2.237,3.664-6.214,5.921-10.493,5.921H12.282c-4.426,0-8.51-2.384-10.698-6.233 c-2.159-3.849-2.11-8.549,0.147-12.349l84.111-149.22c2.208-3.722,6.204-5.96,10.522-5.96h0.332 c4.445,0.107,8.441,2.618,10.513,6.546l83.515,149.229C192.717,168.768,192.629,173.331,190.372,177.034z M179.879,170.634 L96.354,21.454L12.292,170.634H179.879z"
|
|
442
|
+
})))))));
|
|
443
|
+
};
|
|
444
|
+
|
|
418
445
|
var IconSizes = {
|
|
419
446
|
xs: 12,
|
|
420
447
|
sm: 14,
|
|
@@ -428,7 +455,7 @@ var IconSizes = {
|
|
|
428
455
|
'6xl': 64
|
|
429
456
|
};
|
|
430
457
|
|
|
431
|
-
var _excluded$
|
|
458
|
+
var _excluded$b = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
|
|
432
459
|
var LinkView = function LinkView(_ref) {
|
|
433
460
|
var children = _ref.children,
|
|
434
461
|
_ref$href = _ref.href,
|
|
@@ -448,7 +475,7 @@ var LinkView = function LinkView(_ref) {
|
|
|
448
475
|
} : _ref$styles,
|
|
449
476
|
_ref$setIsHovered = _ref.setIsHovered,
|
|
450
477
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
451
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
478
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
452
479
|
var handleHover = function handleHover() {
|
|
453
480
|
if (underline === 'hover') setIsHovered(true);
|
|
454
481
|
};
|
|
@@ -586,7 +613,7 @@ var DefaultSpeeds = {
|
|
|
586
613
|
slow: 300
|
|
587
614
|
};
|
|
588
615
|
|
|
589
|
-
var _excluded$
|
|
616
|
+
var _excluded$c = ["size", "speed", "color"],
|
|
590
617
|
_excluded2 = ["size", "speed", "color"],
|
|
591
618
|
_excluded3 = ["size", "speed", "color"],
|
|
592
619
|
_excluded4 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
|
|
@@ -597,7 +624,7 @@ var DefaultSpinner = function DefaultSpinner(_ref) {
|
|
|
597
624
|
speed = _ref$speed === void 0 ? 'normal' : _ref$speed,
|
|
598
625
|
_ref$color = _ref.color,
|
|
599
626
|
color = _ref$color === void 0 ? 'theme.loading' : _ref$color,
|
|
600
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
627
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
601
628
|
var theme = appStudio.useTheme();
|
|
602
629
|
var colorStyle = theme.getColor(color);
|
|
603
630
|
var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
|
|
@@ -771,7 +798,7 @@ var LoaderComponent = function LoaderComponent(props) {
|
|
|
771
798
|
*/
|
|
772
799
|
var Loader = LoaderComponent;
|
|
773
800
|
|
|
774
|
-
var _excluded$
|
|
801
|
+
var _excluded$d = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered"];
|
|
775
802
|
var ButtonView = function ButtonView(_ref) {
|
|
776
803
|
var _props$onClick;
|
|
777
804
|
var icon = _ref.icon,
|
|
@@ -808,7 +835,7 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
808
835
|
_ref$effect = _ref.effect,
|
|
809
836
|
effect = _ref$effect === void 0 ? 'default' : _ref$effect,
|
|
810
837
|
isHovered = _ref.isHovered,
|
|
811
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
838
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
812
839
|
var isActive = !(isDisabled || isLoading);
|
|
813
840
|
var defaultNativeProps = {
|
|
814
841
|
disabled: !isActive
|
|
@@ -952,7 +979,7 @@ var HeadingSizes = {
|
|
|
952
979
|
}
|
|
953
980
|
};
|
|
954
981
|
|
|
955
|
-
var _excluded$
|
|
982
|
+
var _excluded$e = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
956
983
|
var LabelView = function LabelView(_ref) {
|
|
957
984
|
var children = _ref.children,
|
|
958
985
|
heading = _ref.heading,
|
|
@@ -966,7 +993,7 @@ var LabelView = function LabelView(_ref) {
|
|
|
966
993
|
weight = _ref$weight === void 0 ? 'normal' : _ref$weight,
|
|
967
994
|
_ref$size = _ref.size,
|
|
968
995
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
969
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
996
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
970
997
|
var headingStyles = heading ? HeadingSizes[heading] : {};
|
|
971
998
|
return React__default.createElement(appStudio.Element, Object.assign({
|
|
972
999
|
as: "label",
|
|
@@ -1038,7 +1065,7 @@ var IconSizes$2 = {
|
|
|
1038
1065
|
'6xl': 60
|
|
1039
1066
|
};
|
|
1040
1067
|
|
|
1041
|
-
var _excluded$
|
|
1068
|
+
var _excluded$f = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "colorScheme", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "styles"];
|
|
1042
1069
|
var CheckboxView = function CheckboxView(_ref) {
|
|
1043
1070
|
var id = _ref.id,
|
|
1044
1071
|
icon = _ref.icon,
|
|
@@ -1075,7 +1102,7 @@ var CheckboxView = function CheckboxView(_ref) {
|
|
|
1075
1102
|
checkbox: {},
|
|
1076
1103
|
label: {}
|
|
1077
1104
|
} : _ref$styles,
|
|
1078
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1105
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
1079
1106
|
var handleHover = function handleHover() {
|
|
1080
1107
|
return setIsHovered(!isHovered);
|
|
1081
1108
|
};
|
|
@@ -2649,7 +2676,7 @@ var HeadingSizes$1 = {
|
|
|
2649
2676
|
}
|
|
2650
2677
|
};
|
|
2651
2678
|
|
|
2652
|
-
var _excluded$
|
|
2679
|
+
var _excluded$g = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "isTruncated", "weight", "size"];
|
|
2653
2680
|
var TextContent = function TextContent(_ref) {
|
|
2654
2681
|
var children = _ref.children,
|
|
2655
2682
|
isSub = _ref.isSub,
|
|
@@ -2713,7 +2740,7 @@ var TextView = function TextView(_ref3) {
|
|
|
2713
2740
|
weight = _ref3$weight === void 0 ? 'normal' : _ref3$weight,
|
|
2714
2741
|
_ref3$size = _ref3.size,
|
|
2715
2742
|
size = _ref3$size === void 0 ? 'md' : _ref3$size,
|
|
2716
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
2743
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$g);
|
|
2717
2744
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
2718
2745
|
var noLineBreak = isSub || isSup ? {
|
|
2719
2746
|
display: 'inline'
|
|
@@ -2743,14 +2770,14 @@ var TextComponent = function TextComponent(props) {
|
|
|
2743
2770
|
*/
|
|
2744
2771
|
var Text = TextComponent;
|
|
2745
2772
|
|
|
2746
|
-
var _excluded$
|
|
2773
|
+
var _excluded$h = ["children", "styles"];
|
|
2747
2774
|
var HelperText = function HelperText(_ref) {
|
|
2748
2775
|
var children = _ref.children,
|
|
2749
2776
|
_ref$styles = _ref.styles,
|
|
2750
2777
|
styles = _ref$styles === void 0 ? {
|
|
2751
2778
|
helperText: {}
|
|
2752
2779
|
} : _ref$styles,
|
|
2753
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2780
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
2754
2781
|
return React__default.createElement(Text, Object.assign({
|
|
2755
2782
|
size: "xs",
|
|
2756
2783
|
marginVertical: 0,
|
|
@@ -2759,7 +2786,7 @@ var HelperText = function HelperText(_ref) {
|
|
|
2759
2786
|
}, styles['helperText'], props), children);
|
|
2760
2787
|
};
|
|
2761
2788
|
|
|
2762
|
-
var _excluded$
|
|
2789
|
+
var _excluded$i = ["children", "wrap", "justify", "isReversed"];
|
|
2763
2790
|
var VerticalView = function VerticalView(_ref) {
|
|
2764
2791
|
var children = _ref.children,
|
|
2765
2792
|
_ref$wrap = _ref.wrap,
|
|
@@ -2768,7 +2795,7 @@ var VerticalView = function VerticalView(_ref) {
|
|
|
2768
2795
|
justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
|
|
2769
2796
|
_ref$isReversed = _ref.isReversed,
|
|
2770
2797
|
isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
|
|
2771
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2798
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
2772
2799
|
return React__default.createElement(appStudio.View, Object.assign({
|
|
2773
2800
|
display: "flex",
|
|
2774
2801
|
flexWrap: wrap,
|
|
@@ -2785,14 +2812,14 @@ var VerticalComponent = function VerticalComponent(props) {
|
|
|
2785
2812
|
};
|
|
2786
2813
|
var Vertical = VerticalComponent;
|
|
2787
2814
|
|
|
2788
|
-
var _excluded$
|
|
2815
|
+
var _excluded$j = ["children", "helperText", "error", "styles"];
|
|
2789
2816
|
var FieldContainer = function FieldContainer(_ref) {
|
|
2790
2817
|
var children = _ref.children,
|
|
2791
2818
|
helperText = _ref.helperText,
|
|
2792
2819
|
_ref$error = _ref.error,
|
|
2793
2820
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
2794
2821
|
styles = _ref.styles,
|
|
2795
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2822
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
2796
2823
|
return React__default.createElement(Vertical, Object.assign({
|
|
2797
2824
|
gap: 5,
|
|
2798
2825
|
position: "relative"
|
|
@@ -2851,7 +2878,7 @@ var PaddingWithoutLabel = {
|
|
|
2851
2878
|
paddingRight: 36
|
|
2852
2879
|
};
|
|
2853
2880
|
|
|
2854
|
-
var _excluded$
|
|
2881
|
+
var _excluded$k = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
|
|
2855
2882
|
var FieldContent = function FieldContent(_ref) {
|
|
2856
2883
|
var shadow = _ref.shadow,
|
|
2857
2884
|
children = _ref.children,
|
|
@@ -2879,7 +2906,7 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
2879
2906
|
styles = _ref$styles === void 0 ? {
|
|
2880
2907
|
pickerBox: {}
|
|
2881
2908
|
} : _ref$styles,
|
|
2882
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2909
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
2883
2910
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
2884
2911
|
var color = error ? 'error' : isInteractive ? colorScheme : 'midgray';
|
|
2885
2912
|
return React__default.createElement(Horizontal, Object.assign({
|
|
@@ -2900,10 +2927,10 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
2900
2927
|
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], styles['box'], props), children);
|
|
2901
2928
|
};
|
|
2902
2929
|
|
|
2903
|
-
var _excluded$
|
|
2930
|
+
var _excluded$l = ["children"];
|
|
2904
2931
|
var FieldIcons = function FieldIcons(_ref) {
|
|
2905
2932
|
var children = _ref.children,
|
|
2906
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2933
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
2907
2934
|
return React__default.createElement(Center, Object.assign({
|
|
2908
2935
|
gap: 10,
|
|
2909
2936
|
right: 16,
|
|
@@ -2913,7 +2940,7 @@ var FieldIcons = function FieldIcons(_ref) {
|
|
|
2913
2940
|
}, props), children);
|
|
2914
2941
|
};
|
|
2915
2942
|
|
|
2916
|
-
var _excluded$
|
|
2943
|
+
var _excluded$m = ["children", "size", "error", "color", "styles"];
|
|
2917
2944
|
var FieldLabel = function FieldLabel(_ref) {
|
|
2918
2945
|
var children = _ref.children,
|
|
2919
2946
|
_ref$size = _ref.size,
|
|
@@ -2926,7 +2953,7 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
2926
2953
|
styles = _ref$styles === void 0 ? {
|
|
2927
2954
|
label: {}
|
|
2928
2955
|
} : _ref$styles,
|
|
2929
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2956
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
2930
2957
|
return React__default.createElement(Label, Object.assign({
|
|
2931
2958
|
top: 6,
|
|
2932
2959
|
zIndex: 1000,
|
|
@@ -2939,10 +2966,10 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
2939
2966
|
}, styles['label'], props), children);
|
|
2940
2967
|
};
|
|
2941
2968
|
|
|
2942
|
-
var _excluded$
|
|
2969
|
+
var _excluded$n = ["children"];
|
|
2943
2970
|
var FieldWrapper = function FieldWrapper(_ref) {
|
|
2944
2971
|
var children = _ref.children,
|
|
2945
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2972
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
2946
2973
|
return React__default.createElement(Vertical, Object.assign({
|
|
2947
2974
|
width: "100%"
|
|
2948
2975
|
}, props), children);
|
|
@@ -2956,7 +2983,7 @@ var IconSizes$3 = {
|
|
|
2956
2983
|
xl: 16
|
|
2957
2984
|
};
|
|
2958
2985
|
|
|
2959
|
-
var _excluded$
|
|
2986
|
+
var _excluded$o = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "colorScheme", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "styles"];
|
|
2960
2987
|
var CountryList = function CountryList(props) {
|
|
2961
2988
|
return React__default.createElement(appStudio.Element, Object.assign({
|
|
2962
2989
|
as: "ul"
|
|
@@ -3096,7 +3123,7 @@ var CountryPickerView = function CountryPickerView(_ref3) {
|
|
|
3096
3123
|
helperText: {},
|
|
3097
3124
|
box: {}
|
|
3098
3125
|
} : _ref3$styles,
|
|
3099
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
3126
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$o);
|
|
3100
3127
|
var _useTheme = appStudio.useTheme(),
|
|
3101
3128
|
getColor = _useTheme.getColor;
|
|
3102
3129
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -3234,7 +3261,7 @@ var useDatePickerState = function useDatePickerState() {
|
|
|
3234
3261
|
};
|
|
3235
3262
|
};
|
|
3236
3263
|
|
|
3237
|
-
var _excluded$
|
|
3264
|
+
var _excluded$p = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "colorScheme", "styles", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
|
|
3238
3265
|
var DatePickerContent = function DatePickerContent(props) {
|
|
3239
3266
|
return React__default.createElement(appStudio.Input, Object.assign({
|
|
3240
3267
|
type: "date"
|
|
@@ -3282,7 +3309,7 @@ var DatePickerView = function DatePickerView(_ref) {
|
|
|
3282
3309
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
3283
3310
|
onChange = _ref.onChange,
|
|
3284
3311
|
onChangeText = _ref.onChangeText,
|
|
3285
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3312
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
3286
3313
|
var isWithLabel = !!(isFocused && label);
|
|
3287
3314
|
var handleHover = function handleHover() {
|
|
3288
3315
|
return setIsHovered(!isHovered);
|
|
@@ -3407,7 +3434,7 @@ var usePasswordState = function usePasswordState(props) {
|
|
|
3407
3434
|
}, props, textFieldStates);
|
|
3408
3435
|
};
|
|
3409
3436
|
|
|
3410
|
-
var _excluded$
|
|
3437
|
+
var _excluded$q = ["id", "name", "label", "hint", "value", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur"];
|
|
3411
3438
|
var TextFieldInput = function TextFieldInput(props) {
|
|
3412
3439
|
return React__default.createElement(appStudio.Input, Object.assign({
|
|
3413
3440
|
type: "text"
|
|
@@ -3465,7 +3492,7 @@ var TextFieldView = function TextFieldView(_ref) {
|
|
|
3465
3492
|
onFocus = _ref.onFocus,
|
|
3466
3493
|
_ref$onBlur = _ref.onBlur,
|
|
3467
3494
|
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur,
|
|
3468
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3495
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
3469
3496
|
var _useTheme = appStudio.useTheme(),
|
|
3470
3497
|
getColor = _useTheme.getColor;
|
|
3471
3498
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -3573,7 +3600,7 @@ var TextFieldView = function TextFieldView(_ref) {
|
|
|
3573
3600
|
}), rightChild && React__default.createElement(React__default.Fragment, null, rightChild))));
|
|
3574
3601
|
};
|
|
3575
3602
|
|
|
3576
|
-
var _excluded$
|
|
3603
|
+
var _excluded$r = ["visibleIcon", "hiddenIcon"],
|
|
3577
3604
|
_excluded2$1 = ["isVisible", "setIsVisible"];
|
|
3578
3605
|
var PasswordComponent = function PasswordComponent(_ref) {
|
|
3579
3606
|
var _ref$visibleIcon = _ref.visibleIcon,
|
|
@@ -3584,7 +3611,7 @@ var PasswordComponent = function PasswordComponent(_ref) {
|
|
|
3584
3611
|
hiddenIcon = _ref$hiddenIcon === void 0 ? React__default.createElement(CloseEyeSvg, {
|
|
3585
3612
|
size: 14
|
|
3586
3613
|
}) : _ref$hiddenIcon,
|
|
3587
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3614
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
3588
3615
|
var _usePasswordState = usePasswordState(props),
|
|
3589
3616
|
isVisible = _usePasswordState.isVisible,
|
|
3590
3617
|
setIsVisible = _usePasswordState.setIsVisible,
|
|
@@ -3652,7 +3679,7 @@ var IconSizes$4 = {
|
|
|
3652
3679
|
xl: 16
|
|
3653
3680
|
};
|
|
3654
3681
|
|
|
3655
|
-
var _excluded$
|
|
3682
|
+
var _excluded$s = ["isHovered", "setIsHovered", "option", "size", "callback"],
|
|
3656
3683
|
_excluded2$2 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3657
3684
|
_excluded3$1 = ["option", "size", "removeOption"],
|
|
3658
3685
|
_excluded4$1 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "colorScheme", "shape", "variant", "styles", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused"];
|
|
@@ -3664,7 +3691,7 @@ var Item = function Item(_ref) {
|
|
|
3664
3691
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3665
3692
|
_ref$callback = _ref.callback,
|
|
3666
3693
|
callback = _ref$callback === void 0 ? function () {} : _ref$callback,
|
|
3667
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3694
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
3668
3695
|
var handleOptionClick = function handleOptionClick(option) {
|
|
3669
3696
|
return callback(option);
|
|
3670
3697
|
};
|
|
@@ -4135,7 +4162,7 @@ var SliderPadding = {
|
|
|
4135
4162
|
}
|
|
4136
4163
|
};
|
|
4137
4164
|
|
|
4138
|
-
var _excluded$
|
|
4165
|
+
var _excluded$t = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "onChange", "setValue", "setIsHovered", "styles"];
|
|
4139
4166
|
var SwitchContent = function SwitchContent(props) {
|
|
4140
4167
|
return React__default.createElement(appStudio.Input, Object.assign({
|
|
4141
4168
|
type: "checkbox"
|
|
@@ -4174,7 +4201,7 @@ var SwitchView = function SwitchView(_ref) {
|
|
|
4174
4201
|
circle: {},
|
|
4175
4202
|
label: {}
|
|
4176
4203
|
} : _ref$styles,
|
|
4177
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4204
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
4178
4205
|
var handleToggle = function handleToggle(event) {
|
|
4179
4206
|
if (!isReadOnly) {
|
|
4180
4207
|
setValue(!value);
|
|
@@ -4260,7 +4287,7 @@ var useTextAreaState = function useTextAreaState(_ref) {
|
|
|
4260
4287
|
};
|
|
4261
4288
|
};
|
|
4262
4289
|
|
|
4263
|
-
var _excluded$
|
|
4290
|
+
var _excluded$u = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "colorScheme", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "styles"];
|
|
4264
4291
|
var TextAreaView = function TextAreaView(_ref) {
|
|
4265
4292
|
var id = _ref.id,
|
|
4266
4293
|
name = _ref.name,
|
|
@@ -4315,7 +4342,7 @@ var TextAreaView = function TextAreaView(_ref) {
|
|
|
4315
4342
|
helperText: {},
|
|
4316
4343
|
field: {}
|
|
4317
4344
|
} : _ref$styles,
|
|
4318
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4345
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
4319
4346
|
var isWithLabel = !!(isFocused && label);
|
|
4320
4347
|
var fieldStyles = _extends({
|
|
4321
4348
|
margin: 0,
|
|
@@ -4483,7 +4510,7 @@ var FormikForm = function FormikForm(_ref) {
|
|
|
4483
4510
|
}, React__default.createElement(appStudio.Form, null, children));
|
|
4484
4511
|
};
|
|
4485
4512
|
|
|
4486
|
-
var _excluded$
|
|
4513
|
+
var _excluded$v = ["name", "type"];
|
|
4487
4514
|
var getInputTypeProps = function getInputTypeProps(type) {
|
|
4488
4515
|
switch (type) {
|
|
4489
4516
|
case 'email':
|
|
@@ -4513,7 +4540,7 @@ var getInputTypeProps = function getInputTypeProps(type) {
|
|
|
4513
4540
|
var useFormikInput = function useFormikInput(_ref) {
|
|
4514
4541
|
var name = _ref.name,
|
|
4515
4542
|
type = _ref.type,
|
|
4516
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4543
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
4517
4544
|
var focus = useFormFocus();
|
|
4518
4545
|
var _useFormikContext = formik.useFormikContext(),
|
|
4519
4546
|
touched = _useFormikContext.touched,
|
|
@@ -4560,11 +4587,11 @@ var useFormikInput = function useFormikInput(_ref) {
|
|
|
4560
4587
|
// import FormRater from 'src/Rate/Rate';
|
|
4561
4588
|
// import Upload from 'src/Upload/Upload';
|
|
4562
4589
|
|
|
4563
|
-
var _excluded$
|
|
4590
|
+
var _excluded$w = ["value"];
|
|
4564
4591
|
var CheckboxComponent$1 = function CheckboxComponent(props) {
|
|
4565
4592
|
var _useFormikInput = useFormikInput(props),
|
|
4566
4593
|
value = _useFormikInput.value,
|
|
4567
|
-
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$
|
|
4594
|
+
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$w);
|
|
4568
4595
|
formProps.isChecked = value;
|
|
4569
4596
|
var checkboxStates = useCheckboxState(props);
|
|
4570
4597
|
return React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
|
|
@@ -4622,11 +4649,11 @@ var TextAreaComponent$1 = function TextAreaComponent(props) {
|
|
|
4622
4649
|
*/
|
|
4623
4650
|
var FormikTextArea = TextAreaComponent$1;
|
|
4624
4651
|
|
|
4625
|
-
var _excluded$
|
|
4652
|
+
var _excluded$x = ["value"];
|
|
4626
4653
|
var TextFieldComponent$1 = function TextFieldComponent(props) {
|
|
4627
4654
|
var formProps = useFormikInput(props);
|
|
4628
4655
|
var _useTextFieldState = useTextFieldState(props),
|
|
4629
|
-
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$
|
|
4656
|
+
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$x);
|
|
4630
4657
|
return React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
|
|
4631
4658
|
};
|
|
4632
4659
|
/**
|
|
@@ -4634,7 +4661,7 @@ var TextFieldComponent$1 = function TextFieldComponent(props) {
|
|
|
4634
4661
|
*/
|
|
4635
4662
|
var FormikTextField = TextFieldComponent$1;
|
|
4636
4663
|
|
|
4637
|
-
var _excluded$
|
|
4664
|
+
var _excluded$y = ["visibleIcon", "hiddenIcon"],
|
|
4638
4665
|
_excluded2$3 = ["isVisible", "setIsVisible"];
|
|
4639
4666
|
var PasswordComponent$1 = function PasswordComponent(_ref) {
|
|
4640
4667
|
var _ref$visibleIcon = _ref.visibleIcon,
|
|
@@ -4645,7 +4672,7 @@ var PasswordComponent$1 = function PasswordComponent(_ref) {
|
|
|
4645
4672
|
hiddenIcon = _ref$hiddenIcon === void 0 ? React__default.createElement(CloseEyeSvg, {
|
|
4646
4673
|
size: 14
|
|
4647
4674
|
}) : _ref$hiddenIcon,
|
|
4648
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4675
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
4649
4676
|
var formProps = useFormikInput(props);
|
|
4650
4677
|
var _usePasswordState = usePasswordState(formProps),
|
|
4651
4678
|
isVisible = _usePasswordState.isVisible,
|
|
@@ -4753,7 +4780,7 @@ var HeaderIconSizes = {
|
|
|
4753
4780
|
xl: 28
|
|
4754
4781
|
};
|
|
4755
4782
|
|
|
4756
|
-
var _excluded$
|
|
4783
|
+
var _excluded$z = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
4757
4784
|
_excluded2$4 = ["children", "shadow", "isFullScreen", "shape"],
|
|
4758
4785
|
_excluded3$2 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
4759
4786
|
_excluded4$2 = ["children"],
|
|
@@ -4769,7 +4796,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
4769
4796
|
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
4770
4797
|
_ref$position = _ref.position,
|
|
4771
4798
|
position = _ref$position === void 0 ? 'center' : _ref$position,
|
|
4772
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4799
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
4773
4800
|
var handleClick = function handleClick() {
|
|
4774
4801
|
if (!isClosePrevented) onClose();
|
|
4775
4802
|
};
|
|
@@ -4925,12 +4952,12 @@ Modal.Body = ModalBody;
|
|
|
4925
4952
|
Modal.Footer = ModalFooter;
|
|
4926
4953
|
Modal.Layout = ModalLayout;
|
|
4927
4954
|
|
|
4928
|
-
var _excluded$
|
|
4955
|
+
var _excluded$A = ["src", "color"],
|
|
4929
4956
|
_excluded2$5 = ["path"];
|
|
4930
4957
|
var FileSVG = function FileSVG(_ref) {
|
|
4931
4958
|
var src = _ref.src,
|
|
4932
4959
|
color = _ref.color,
|
|
4933
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4960
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
4934
4961
|
var _useTheme = appStudio.useTheme(),
|
|
4935
4962
|
getColor = _useTheme.getColor;
|
|
4936
4963
|
var Colorprops = color ? {
|
|
@@ -4987,13 +5014,13 @@ var TabsView = function TabsView(props) {
|
|
|
4987
5014
|
var isContentActive = function isContentActive(tab) {
|
|
4988
5015
|
return tab.value === tabsState[0].value;
|
|
4989
5016
|
};
|
|
4990
|
-
return React__default.createElement(
|
|
5017
|
+
return React__default.createElement(Horizontal, Object.assign({
|
|
4991
5018
|
width: "100w",
|
|
4992
5019
|
height: '100%'
|
|
4993
|
-
}, styles == null ? void 0 : styles.container), React__default.createElement(
|
|
5020
|
+
}, styles == null ? void 0 : styles.container), React__default.createElement(Horizontal, Object.assign({
|
|
4994
5021
|
marginBottom: 20
|
|
4995
5022
|
}, styles == null ? void 0 : styles.headerTabs), tabs.map(function (tab, idx) {
|
|
4996
|
-
return React__default.createElement(
|
|
5023
|
+
return React__default.createElement(Button, Object.assign({
|
|
4997
5024
|
key: tab.title,
|
|
4998
5025
|
onClick: function onClick() {
|
|
4999
5026
|
moveSelectedTabToTop(idx);
|
|
@@ -5002,12 +5029,12 @@ var TabsView = function TabsView(props) {
|
|
|
5002
5029
|
shape: "pillShaped",
|
|
5003
5030
|
cursor: "pointer",
|
|
5004
5031
|
isAuto: true
|
|
5005
|
-
}, styles == null ? void 0 : styles.tab, isActive.value === tab.value ? styles == null ? void 0 : styles.activeTab : {}), React__default.createElement(
|
|
5006
|
-
})), React__default.createElement(View
|
|
5032
|
+
}, styles == null ? void 0 : styles.tab, isActive.value === tab.value ? styles == null ? void 0 : styles.activeTab : {}), React__default.createElement(Text, Object.assign({}, styles == null ? void 0 : styles.title, isActive.value === tab.value ? styles == null ? void 0 : styles.activeText : {}), tab.title));
|
|
5033
|
+
})), React__default.createElement(View, Object.assign({
|
|
5007
5034
|
width: '100%',
|
|
5008
5035
|
height: "100%"
|
|
5009
5036
|
}, styles == null ? void 0 : styles.content), tabsState.map(function (tab, idx) {
|
|
5010
|
-
return isContentActive(tab) && React__default.createElement(View
|
|
5037
|
+
return isContentActive(tab) && React__default.createElement(View, {
|
|
5011
5038
|
key: idx
|
|
5012
5039
|
}, tab.content);
|
|
5013
5040
|
})));
|
|
@@ -5091,7 +5118,7 @@ var AlertView = function AlertView(_ref) {
|
|
|
5091
5118
|
description = _ref.description,
|
|
5092
5119
|
_ref$variant = _ref.variant,
|
|
5093
5120
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant;
|
|
5094
|
-
return React__default.createElement(
|
|
5121
|
+
return React__default.createElement(Horizontal, Object.assign({
|
|
5095
5122
|
gap: 15,
|
|
5096
5123
|
borderRadius: 10,
|
|
5097
5124
|
borderWidth: 1,
|
|
@@ -5099,17 +5126,17 @@ var AlertView = function AlertView(_ref) {
|
|
|
5099
5126
|
padding: 16,
|
|
5100
5127
|
wrap: "nowrap",
|
|
5101
5128
|
borderColor: Themes[variant].container.border
|
|
5102
|
-
}, styles == null ? void 0 : styles.container), React__default.createElement(
|
|
5129
|
+
}, styles == null ? void 0 : styles.container), React__default.createElement(View, {
|
|
5103
5130
|
alignSelf: 'center'
|
|
5104
|
-
}, icon ? icon : React__default.createElement(
|
|
5131
|
+
}, icon ? icon : React__default.createElement(WarningSvg, {
|
|
5105
5132
|
size: 24,
|
|
5106
5133
|
color: (_styles$icon$color = styles == null ? void 0 : styles.icon.color) != null ? _styles$icon$color : Themes[variant].content.color
|
|
5107
|
-
})), React__default.createElement(
|
|
5134
|
+
})), React__default.createElement(Vertical, {
|
|
5108
5135
|
gap: 10
|
|
5109
|
-
}, React__default.createElement(
|
|
5136
|
+
}, React__default.createElement(Text, Object.assign({
|
|
5110
5137
|
fontSize: "16px",
|
|
5111
5138
|
color: Themes[variant].content.color
|
|
5112
|
-
}, styles == null ? void 0 : styles.title), title), React__default.createElement(
|
|
5139
|
+
}, styles == null ? void 0 : styles.title), title), React__default.createElement(Text, Object.assign({
|
|
5113
5140
|
fontSize: "14px",
|
|
5114
5141
|
color: Themes[variant].content.color
|
|
5115
5142
|
}, styles == null ? void 0 : styles.description), description)));
|
|
@@ -5131,19 +5158,19 @@ var AlertComponent = function AlertComponent(_ref) {
|
|
|
5131
5158
|
};
|
|
5132
5159
|
var Alert = AlertComponent;
|
|
5133
5160
|
|
|
5134
|
-
var _excluded$
|
|
5161
|
+
var _excluded$B = ["ratio", "children"];
|
|
5135
5162
|
var AspectRatioView = function AspectRatioView(_ref) {
|
|
5136
5163
|
var _ref$ratio = _ref.ratio,
|
|
5137
5164
|
ratio = _ref$ratio === void 0 ? 16 / 9 : _ref$ratio,
|
|
5138
5165
|
children = _ref.children,
|
|
5139
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5140
|
-
return React__default.createElement(
|
|
5166
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
5167
|
+
return React__default.createElement(Center, Object.assign({
|
|
5141
5168
|
width: '100%',
|
|
5142
5169
|
position: "relative",
|
|
5143
5170
|
overflow: "hidden",
|
|
5144
5171
|
paddingTop: 1 / ratio * 100 + "%",
|
|
5145
5172
|
borderRadius: 8
|
|
5146
|
-
}, props), React__default.createElement(
|
|
5173
|
+
}, props), React__default.createElement(View, {
|
|
5147
5174
|
position: "absolute",
|
|
5148
5175
|
top: 0,
|
|
5149
5176
|
right: 0,
|
|
@@ -5152,11 +5179,11 @@ var AspectRatioView = function AspectRatioView(_ref) {
|
|
|
5152
5179
|
}, children));
|
|
5153
5180
|
};
|
|
5154
5181
|
|
|
5155
|
-
var _excluded$
|
|
5182
|
+
var _excluded$C = ["ratio", "children"];
|
|
5156
5183
|
var AspectRatioComponent = function AspectRatioComponent(_ref) {
|
|
5157
5184
|
var ratio = _ref.ratio,
|
|
5158
5185
|
children = _ref.children,
|
|
5159
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5186
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
|
|
5160
5187
|
return React__default.createElement(AspectRatioView, Object.assign({
|
|
5161
5188
|
ratio: ratio
|
|
5162
5189
|
}, props), children);
|
|
@@ -5194,7 +5221,7 @@ var AvatarView = function AvatarView(_ref) {
|
|
|
5194
5221
|
var imageStyle = _extends({
|
|
5195
5222
|
objectFit: 'cover'
|
|
5196
5223
|
}, (styles == null ? void 0 : styles.image) || {});
|
|
5197
|
-
return React__default.createElement(
|
|
5224
|
+
return React__default.createElement(Center, Object.assign({
|
|
5198
5225
|
role: "avatar",
|
|
5199
5226
|
width: avatarSize,
|
|
5200
5227
|
height: avatarSize,
|
|
@@ -5213,7 +5240,7 @@ var AvatarView = function AvatarView(_ref) {
|
|
|
5213
5240
|
onError: function onError() {
|
|
5214
5241
|
return setImageError(true);
|
|
5215
5242
|
}
|
|
5216
|
-
}) : React__default.createElement(
|
|
5243
|
+
}) : React__default.createElement(Text, Object.assign({
|
|
5217
5244
|
size: size
|
|
5218
5245
|
}, styles == null ? void 0 : styles.fallback), fallback));
|
|
5219
5246
|
};
|
|
@@ -5340,9 +5367,9 @@ var BadgeView = function BadgeView(_ref) {
|
|
|
5340
5367
|
width: 'fit-content',
|
|
5341
5368
|
borderRadius: BadgeShapes[shape]
|
|
5342
5369
|
}, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {}, styles == null ? void 0 : styles.container);
|
|
5343
|
-
return React__default.createElement(
|
|
5370
|
+
return React__default.createElement(Center, Object.assign({
|
|
5344
5371
|
role: "badge"
|
|
5345
|
-
}, combinedStyles), React__default.createElement(
|
|
5372
|
+
}, combinedStyles), React__default.createElement(Text, Object.assign({
|
|
5346
5373
|
role: "badgeText",
|
|
5347
5374
|
size: size
|
|
5348
5375
|
}, styles == null ? void 0 : styles.text), content));
|
|
@@ -5388,7 +5415,7 @@ var ToggleShapes = {
|
|
|
5388
5415
|
pillShaped: 24
|
|
5389
5416
|
};
|
|
5390
5417
|
|
|
5391
|
-
var _excluded$
|
|
5418
|
+
var _excluded$D = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
|
|
5392
5419
|
var ToggleView = function ToggleView(_ref) {
|
|
5393
5420
|
var children = _ref.children,
|
|
5394
5421
|
_ref$shape = _ref.shape,
|
|
@@ -5403,7 +5430,7 @@ var ToggleView = function ToggleView(_ref) {
|
|
|
5403
5430
|
isToggle = _ref.isToggle,
|
|
5404
5431
|
setIsToggled = _ref.setIsToggled,
|
|
5405
5432
|
onToggle = _ref.onToggle,
|
|
5406
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5433
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
|
|
5407
5434
|
var toggleColor = !isDisabled ? colorScheme : 'theme.disabled';
|
|
5408
5435
|
var isActive = !!(isToggle || isHovered);
|
|
5409
5436
|
var ToggleVariants = {
|
|
@@ -5433,7 +5460,7 @@ var ToggleView = function ToggleView(_ref) {
|
|
|
5433
5460
|
}
|
|
5434
5461
|
};
|
|
5435
5462
|
|
|
5436
|
-
return React__default.createElement(
|
|
5463
|
+
return React__default.createElement(Center, Object.assign({
|
|
5437
5464
|
role: "Toggle",
|
|
5438
5465
|
padding: shape === 'pillShaped' ? '10px 12px' : '8px',
|
|
5439
5466
|
width: "fit-content",
|
|
@@ -5451,7 +5478,7 @@ var ToggleView = function ToggleView(_ref) {
|
|
|
5451
5478
|
}, ToggleVariants[variant], props), children);
|
|
5452
5479
|
};
|
|
5453
5480
|
|
|
5454
|
-
var _excluded$
|
|
5481
|
+
var _excluded$E = ["children", "shape", "colorScheme", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
5455
5482
|
var ToggleComponent = function ToggleComponent(_ref) {
|
|
5456
5483
|
var children = _ref.children,
|
|
5457
5484
|
shape = _ref.shape,
|
|
@@ -5461,7 +5488,7 @@ var ToggleComponent = function ToggleComponent(_ref) {
|
|
|
5461
5488
|
_ref$isToggled = _ref.isToggled,
|
|
5462
5489
|
isToggled = _ref$isToggled === void 0 ? false : _ref$isToggled,
|
|
5463
5490
|
onToggle = _ref.onToggle,
|
|
5464
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5491
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
5465
5492
|
var _useToggleState = useToggleState(isToggled),
|
|
5466
5493
|
isHovered = _useToggleState.isHovered,
|
|
5467
5494
|
setIsHovered = _useToggleState.setIsHovered,
|
|
@@ -5521,12 +5548,12 @@ var ToggleGroupView = function ToggleGroupView(_ref) {
|
|
|
5521
5548
|
return newActiveToggles;
|
|
5522
5549
|
});
|
|
5523
5550
|
}, [onToggleChange, setActiveToggles]);
|
|
5524
|
-
return React__default.createElement(
|
|
5551
|
+
return React__default.createElement(Horizontal$1.Horizontal, {
|
|
5525
5552
|
role: "ToggleGroup",
|
|
5526
5553
|
display: "flex",
|
|
5527
5554
|
gap: 5
|
|
5528
5555
|
}, items.map(function (item) {
|
|
5529
|
-
return React__default.createElement(
|
|
5556
|
+
return React__default.createElement(Toggle, {
|
|
5530
5557
|
role: "toggle-" + item.id,
|
|
5531
5558
|
key: item.id,
|
|
5532
5559
|
colorScheme: colorScheme,
|