@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
package/dist/web.esm.js
CHANGED
|
@@ -4,9 +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 {
|
|
8
|
-
import { Horizontal as Horizontal$1, Button as Button$1, Text as Text$1, View as View$3, Vertical as Vertical$1, Center as Center$1, Toggle as Toggle$1 } from 'src/components';
|
|
9
|
-
import { WarningSvg } from 'src/components/Svg';
|
|
7
|
+
import { Horizontal as Horizontal$1 } from 'src/components/Layout/Horizontal/Horizontal';
|
|
10
8
|
|
|
11
9
|
var useButtonState = function useButtonState() {
|
|
12
10
|
var _React$useState = React.useState(false),
|
|
@@ -408,6 +406,35 @@ var OpenEyeSvg = function OpenEyeSvg(_ref) {
|
|
|
408
406
|
}))));
|
|
409
407
|
};
|
|
410
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
|
+
|
|
411
438
|
var IconSizes = {
|
|
412
439
|
xs: 12,
|
|
413
440
|
sm: 14,
|
|
@@ -421,7 +448,7 @@ var IconSizes = {
|
|
|
421
448
|
'6xl': 64
|
|
422
449
|
};
|
|
423
450
|
|
|
424
|
-
var _excluded$
|
|
451
|
+
var _excluded$b = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
|
|
425
452
|
var LinkView = function LinkView(_ref) {
|
|
426
453
|
var children = _ref.children,
|
|
427
454
|
_ref$href = _ref.href,
|
|
@@ -441,7 +468,7 @@ var LinkView = function LinkView(_ref) {
|
|
|
441
468
|
} : _ref$styles,
|
|
442
469
|
_ref$setIsHovered = _ref.setIsHovered,
|
|
443
470
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
444
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
471
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
445
472
|
var handleHover = function handleHover() {
|
|
446
473
|
if (underline === 'hover') setIsHovered(true);
|
|
447
474
|
};
|
|
@@ -579,7 +606,7 @@ var DefaultSpeeds = {
|
|
|
579
606
|
slow: 300
|
|
580
607
|
};
|
|
581
608
|
|
|
582
|
-
var _excluded$
|
|
609
|
+
var _excluded$c = ["size", "speed", "color"],
|
|
583
610
|
_excluded2 = ["size", "speed", "color"],
|
|
584
611
|
_excluded3 = ["size", "speed", "color"],
|
|
585
612
|
_excluded4 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
|
|
@@ -590,7 +617,7 @@ var DefaultSpinner = function DefaultSpinner(_ref) {
|
|
|
590
617
|
speed = _ref$speed === void 0 ? 'normal' : _ref$speed,
|
|
591
618
|
_ref$color = _ref.color,
|
|
592
619
|
color = _ref$color === void 0 ? 'theme.loading' : _ref$color,
|
|
593
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
620
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
594
621
|
var theme = useTheme();
|
|
595
622
|
var colorStyle = theme.getColor(color);
|
|
596
623
|
var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
|
|
@@ -764,7 +791,7 @@ var LoaderComponent = function LoaderComponent(props) {
|
|
|
764
791
|
*/
|
|
765
792
|
var Loader = LoaderComponent;
|
|
766
793
|
|
|
767
|
-
var _excluded$
|
|
794
|
+
var _excluded$d = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered"];
|
|
768
795
|
var ButtonView = function ButtonView(_ref) {
|
|
769
796
|
var _props$onClick;
|
|
770
797
|
var icon = _ref.icon,
|
|
@@ -801,7 +828,7 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
801
828
|
_ref$effect = _ref.effect,
|
|
802
829
|
effect = _ref$effect === void 0 ? 'default' : _ref$effect,
|
|
803
830
|
isHovered = _ref.isHovered,
|
|
804
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
831
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
805
832
|
var isActive = !(isDisabled || isLoading);
|
|
806
833
|
var defaultNativeProps = {
|
|
807
834
|
disabled: !isActive
|
|
@@ -945,7 +972,7 @@ var HeadingSizes = {
|
|
|
945
972
|
}
|
|
946
973
|
};
|
|
947
974
|
|
|
948
|
-
var _excluded$
|
|
975
|
+
var _excluded$e = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
949
976
|
var LabelView = function LabelView(_ref) {
|
|
950
977
|
var children = _ref.children,
|
|
951
978
|
heading = _ref.heading,
|
|
@@ -959,7 +986,7 @@ var LabelView = function LabelView(_ref) {
|
|
|
959
986
|
weight = _ref$weight === void 0 ? 'normal' : _ref$weight,
|
|
960
987
|
_ref$size = _ref.size,
|
|
961
988
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
962
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
989
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
963
990
|
var headingStyles = heading ? HeadingSizes[heading] : {};
|
|
964
991
|
return React.createElement(Element, Object.assign({
|
|
965
992
|
as: "label",
|
|
@@ -1031,7 +1058,7 @@ var IconSizes$2 = {
|
|
|
1031
1058
|
'6xl': 60
|
|
1032
1059
|
};
|
|
1033
1060
|
|
|
1034
|
-
var _excluded$
|
|
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"];
|
|
1035
1062
|
var CheckboxView = function CheckboxView(_ref) {
|
|
1036
1063
|
var id = _ref.id,
|
|
1037
1064
|
icon = _ref.icon,
|
|
@@ -1068,7 +1095,7 @@ var CheckboxView = function CheckboxView(_ref) {
|
|
|
1068
1095
|
checkbox: {},
|
|
1069
1096
|
label: {}
|
|
1070
1097
|
} : _ref$styles,
|
|
1071
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1098
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
1072
1099
|
var handleHover = function handleHover() {
|
|
1073
1100
|
return setIsHovered(!isHovered);
|
|
1074
1101
|
};
|
|
@@ -2642,7 +2669,7 @@ var HeadingSizes$1 = {
|
|
|
2642
2669
|
}
|
|
2643
2670
|
};
|
|
2644
2671
|
|
|
2645
|
-
var _excluded$
|
|
2672
|
+
var _excluded$g = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "isTruncated", "weight", "size"];
|
|
2646
2673
|
var TextContent = function TextContent(_ref) {
|
|
2647
2674
|
var children = _ref.children,
|
|
2648
2675
|
isSub = _ref.isSub,
|
|
@@ -2706,7 +2733,7 @@ var TextView = function TextView(_ref3) {
|
|
|
2706
2733
|
weight = _ref3$weight === void 0 ? 'normal' : _ref3$weight,
|
|
2707
2734
|
_ref3$size = _ref3.size,
|
|
2708
2735
|
size = _ref3$size === void 0 ? 'md' : _ref3$size,
|
|
2709
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
2736
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$g);
|
|
2710
2737
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
2711
2738
|
var noLineBreak = isSub || isSup ? {
|
|
2712
2739
|
display: 'inline'
|
|
@@ -2736,14 +2763,14 @@ var TextComponent = function TextComponent(props) {
|
|
|
2736
2763
|
*/
|
|
2737
2764
|
var Text = TextComponent;
|
|
2738
2765
|
|
|
2739
|
-
var _excluded$
|
|
2766
|
+
var _excluded$h = ["children", "styles"];
|
|
2740
2767
|
var HelperText = function HelperText(_ref) {
|
|
2741
2768
|
var children = _ref.children,
|
|
2742
2769
|
_ref$styles = _ref.styles,
|
|
2743
2770
|
styles = _ref$styles === void 0 ? {
|
|
2744
2771
|
helperText: {}
|
|
2745
2772
|
} : _ref$styles,
|
|
2746
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2773
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
2747
2774
|
return React.createElement(Text, Object.assign({
|
|
2748
2775
|
size: "xs",
|
|
2749
2776
|
marginVertical: 0,
|
|
@@ -2752,7 +2779,7 @@ var HelperText = function HelperText(_ref) {
|
|
|
2752
2779
|
}, styles['helperText'], props), children);
|
|
2753
2780
|
};
|
|
2754
2781
|
|
|
2755
|
-
var _excluded$
|
|
2782
|
+
var _excluded$i = ["children", "wrap", "justify", "isReversed"];
|
|
2756
2783
|
var VerticalView = function VerticalView(_ref) {
|
|
2757
2784
|
var children = _ref.children,
|
|
2758
2785
|
_ref$wrap = _ref.wrap,
|
|
@@ -2761,7 +2788,7 @@ var VerticalView = function VerticalView(_ref) {
|
|
|
2761
2788
|
justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
|
|
2762
2789
|
_ref$isReversed = _ref.isReversed,
|
|
2763
2790
|
isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
|
|
2764
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2791
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
2765
2792
|
return React.createElement(View$1, Object.assign({
|
|
2766
2793
|
display: "flex",
|
|
2767
2794
|
flexWrap: wrap,
|
|
@@ -2778,14 +2805,14 @@ var VerticalComponent = function VerticalComponent(props) {
|
|
|
2778
2805
|
};
|
|
2779
2806
|
var Vertical = VerticalComponent;
|
|
2780
2807
|
|
|
2781
|
-
var _excluded$
|
|
2808
|
+
var _excluded$j = ["children", "helperText", "error", "styles"];
|
|
2782
2809
|
var FieldContainer = function FieldContainer(_ref) {
|
|
2783
2810
|
var children = _ref.children,
|
|
2784
2811
|
helperText = _ref.helperText,
|
|
2785
2812
|
_ref$error = _ref.error,
|
|
2786
2813
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
2787
2814
|
styles = _ref.styles,
|
|
2788
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2815
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
2789
2816
|
return React.createElement(Vertical, Object.assign({
|
|
2790
2817
|
gap: 5,
|
|
2791
2818
|
position: "relative"
|
|
@@ -2844,7 +2871,7 @@ var PaddingWithoutLabel = {
|
|
|
2844
2871
|
paddingRight: 36
|
|
2845
2872
|
};
|
|
2846
2873
|
|
|
2847
|
-
var _excluded$
|
|
2874
|
+
var _excluded$k = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
|
|
2848
2875
|
var FieldContent = function FieldContent(_ref) {
|
|
2849
2876
|
var shadow = _ref.shadow,
|
|
2850
2877
|
children = _ref.children,
|
|
@@ -2872,7 +2899,7 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
2872
2899
|
styles = _ref$styles === void 0 ? {
|
|
2873
2900
|
pickerBox: {}
|
|
2874
2901
|
} : _ref$styles,
|
|
2875
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2902
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
2876
2903
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
2877
2904
|
var color = error ? 'error' : isInteractive ? colorScheme : 'midgray';
|
|
2878
2905
|
return React.createElement(Horizontal, Object.assign({
|
|
@@ -2893,10 +2920,10 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
2893
2920
|
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], styles['box'], props), children);
|
|
2894
2921
|
};
|
|
2895
2922
|
|
|
2896
|
-
var _excluded$
|
|
2923
|
+
var _excluded$l = ["children"];
|
|
2897
2924
|
var FieldIcons = function FieldIcons(_ref) {
|
|
2898
2925
|
var children = _ref.children,
|
|
2899
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2926
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
2900
2927
|
return React.createElement(Center, Object.assign({
|
|
2901
2928
|
gap: 10,
|
|
2902
2929
|
right: 16,
|
|
@@ -2906,7 +2933,7 @@ var FieldIcons = function FieldIcons(_ref) {
|
|
|
2906
2933
|
}, props), children);
|
|
2907
2934
|
};
|
|
2908
2935
|
|
|
2909
|
-
var _excluded$
|
|
2936
|
+
var _excluded$m = ["children", "size", "error", "color", "styles"];
|
|
2910
2937
|
var FieldLabel = function FieldLabel(_ref) {
|
|
2911
2938
|
var children = _ref.children,
|
|
2912
2939
|
_ref$size = _ref.size,
|
|
@@ -2919,7 +2946,7 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
2919
2946
|
styles = _ref$styles === void 0 ? {
|
|
2920
2947
|
label: {}
|
|
2921
2948
|
} : _ref$styles,
|
|
2922
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2949
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
2923
2950
|
return React.createElement(Label, Object.assign({
|
|
2924
2951
|
top: 6,
|
|
2925
2952
|
zIndex: 1000,
|
|
@@ -2932,10 +2959,10 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
2932
2959
|
}, styles['label'], props), children);
|
|
2933
2960
|
};
|
|
2934
2961
|
|
|
2935
|
-
var _excluded$
|
|
2962
|
+
var _excluded$n = ["children"];
|
|
2936
2963
|
var FieldWrapper = function FieldWrapper(_ref) {
|
|
2937
2964
|
var children = _ref.children,
|
|
2938
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2965
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
2939
2966
|
return React.createElement(Vertical, Object.assign({
|
|
2940
2967
|
width: "100%"
|
|
2941
2968
|
}, props), children);
|
|
@@ -2949,7 +2976,7 @@ var IconSizes$3 = {
|
|
|
2949
2976
|
xl: 16
|
|
2950
2977
|
};
|
|
2951
2978
|
|
|
2952
|
-
var _excluded$
|
|
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"];
|
|
2953
2980
|
var CountryList = function CountryList(props) {
|
|
2954
2981
|
return React.createElement(Element, Object.assign({
|
|
2955
2982
|
as: "ul"
|
|
@@ -3089,7 +3116,7 @@ var CountryPickerView = function CountryPickerView(_ref3) {
|
|
|
3089
3116
|
helperText: {},
|
|
3090
3117
|
box: {}
|
|
3091
3118
|
} : _ref3$styles,
|
|
3092
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
3119
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$o);
|
|
3093
3120
|
var _useTheme = useTheme(),
|
|
3094
3121
|
getColor = _useTheme.getColor;
|
|
3095
3122
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -3227,7 +3254,7 @@ var useDatePickerState = function useDatePickerState() {
|
|
|
3227
3254
|
};
|
|
3228
3255
|
};
|
|
3229
3256
|
|
|
3230
|
-
var _excluded$
|
|
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"];
|
|
3231
3258
|
var DatePickerContent = function DatePickerContent(props) {
|
|
3232
3259
|
return React.createElement(Input, Object.assign({
|
|
3233
3260
|
type: "date"
|
|
@@ -3275,7 +3302,7 @@ var DatePickerView = function DatePickerView(_ref) {
|
|
|
3275
3302
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
3276
3303
|
onChange = _ref.onChange,
|
|
3277
3304
|
onChangeText = _ref.onChangeText,
|
|
3278
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3305
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
3279
3306
|
var isWithLabel = !!(isFocused && label);
|
|
3280
3307
|
var handleHover = function handleHover() {
|
|
3281
3308
|
return setIsHovered(!isHovered);
|
|
@@ -3400,7 +3427,7 @@ var usePasswordState = function usePasswordState(props) {
|
|
|
3400
3427
|
}, props, textFieldStates);
|
|
3401
3428
|
};
|
|
3402
3429
|
|
|
3403
|
-
var _excluded$
|
|
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"];
|
|
3404
3431
|
var TextFieldInput = function TextFieldInput(props) {
|
|
3405
3432
|
return React.createElement(Input, Object.assign({
|
|
3406
3433
|
type: "text"
|
|
@@ -3458,7 +3485,7 @@ var TextFieldView = function TextFieldView(_ref) {
|
|
|
3458
3485
|
onFocus = _ref.onFocus,
|
|
3459
3486
|
_ref$onBlur = _ref.onBlur,
|
|
3460
3487
|
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur,
|
|
3461
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3488
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
3462
3489
|
var _useTheme = useTheme(),
|
|
3463
3490
|
getColor = _useTheme.getColor;
|
|
3464
3491
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -3566,7 +3593,7 @@ var TextFieldView = function TextFieldView(_ref) {
|
|
|
3566
3593
|
}), rightChild && React.createElement(React.Fragment, null, rightChild))));
|
|
3567
3594
|
};
|
|
3568
3595
|
|
|
3569
|
-
var _excluded$
|
|
3596
|
+
var _excluded$r = ["visibleIcon", "hiddenIcon"],
|
|
3570
3597
|
_excluded2$1 = ["isVisible", "setIsVisible"];
|
|
3571
3598
|
var PasswordComponent = function PasswordComponent(_ref) {
|
|
3572
3599
|
var _ref$visibleIcon = _ref.visibleIcon,
|
|
@@ -3577,7 +3604,7 @@ var PasswordComponent = function PasswordComponent(_ref) {
|
|
|
3577
3604
|
hiddenIcon = _ref$hiddenIcon === void 0 ? React.createElement(CloseEyeSvg, {
|
|
3578
3605
|
size: 14
|
|
3579
3606
|
}) : _ref$hiddenIcon,
|
|
3580
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3607
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
3581
3608
|
var _usePasswordState = usePasswordState(props),
|
|
3582
3609
|
isVisible = _usePasswordState.isVisible,
|
|
3583
3610
|
setIsVisible = _usePasswordState.setIsVisible,
|
|
@@ -3645,7 +3672,7 @@ var IconSizes$4 = {
|
|
|
3645
3672
|
xl: 16
|
|
3646
3673
|
};
|
|
3647
3674
|
|
|
3648
|
-
var _excluded$
|
|
3675
|
+
var _excluded$s = ["isHovered", "setIsHovered", "option", "size", "callback"],
|
|
3649
3676
|
_excluded2$2 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3650
3677
|
_excluded3$1 = ["option", "size", "removeOption"],
|
|
3651
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"];
|
|
@@ -3657,7 +3684,7 @@ var Item = function Item(_ref) {
|
|
|
3657
3684
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3658
3685
|
_ref$callback = _ref.callback,
|
|
3659
3686
|
callback = _ref$callback === void 0 ? function () {} : _ref$callback,
|
|
3660
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3687
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
3661
3688
|
var handleOptionClick = function handleOptionClick(option) {
|
|
3662
3689
|
return callback(option);
|
|
3663
3690
|
};
|
|
@@ -4128,7 +4155,7 @@ var SliderPadding = {
|
|
|
4128
4155
|
}
|
|
4129
4156
|
};
|
|
4130
4157
|
|
|
4131
|
-
var _excluded$
|
|
4158
|
+
var _excluded$t = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "onChange", "setValue", "setIsHovered", "styles"];
|
|
4132
4159
|
var SwitchContent = function SwitchContent(props) {
|
|
4133
4160
|
return React.createElement(Input, Object.assign({
|
|
4134
4161
|
type: "checkbox"
|
|
@@ -4167,7 +4194,7 @@ var SwitchView = function SwitchView(_ref) {
|
|
|
4167
4194
|
circle: {},
|
|
4168
4195
|
label: {}
|
|
4169
4196
|
} : _ref$styles,
|
|
4170
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4197
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
4171
4198
|
var handleToggle = function handleToggle(event) {
|
|
4172
4199
|
if (!isReadOnly) {
|
|
4173
4200
|
setValue(!value);
|
|
@@ -4253,7 +4280,7 @@ var useTextAreaState = function useTextAreaState(_ref) {
|
|
|
4253
4280
|
};
|
|
4254
4281
|
};
|
|
4255
4282
|
|
|
4256
|
-
var _excluded$
|
|
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"];
|
|
4257
4284
|
var TextAreaView = function TextAreaView(_ref) {
|
|
4258
4285
|
var id = _ref.id,
|
|
4259
4286
|
name = _ref.name,
|
|
@@ -4308,7 +4335,7 @@ var TextAreaView = function TextAreaView(_ref) {
|
|
|
4308
4335
|
helperText: {},
|
|
4309
4336
|
field: {}
|
|
4310
4337
|
} : _ref$styles,
|
|
4311
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4338
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
4312
4339
|
var isWithLabel = !!(isFocused && label);
|
|
4313
4340
|
var fieldStyles = _extends({
|
|
4314
4341
|
margin: 0,
|
|
@@ -4476,7 +4503,7 @@ var FormikForm = function FormikForm(_ref) {
|
|
|
4476
4503
|
}, React.createElement(Form, null, children));
|
|
4477
4504
|
};
|
|
4478
4505
|
|
|
4479
|
-
var _excluded$
|
|
4506
|
+
var _excluded$v = ["name", "type"];
|
|
4480
4507
|
var getInputTypeProps = function getInputTypeProps(type) {
|
|
4481
4508
|
switch (type) {
|
|
4482
4509
|
case 'email':
|
|
@@ -4506,7 +4533,7 @@ var getInputTypeProps = function getInputTypeProps(type) {
|
|
|
4506
4533
|
var useFormikInput = function useFormikInput(_ref) {
|
|
4507
4534
|
var name = _ref.name,
|
|
4508
4535
|
type = _ref.type,
|
|
4509
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4536
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
4510
4537
|
var focus = useFormFocus();
|
|
4511
4538
|
var _useFormikContext = useFormikContext(),
|
|
4512
4539
|
touched = _useFormikContext.touched,
|
|
@@ -4553,11 +4580,11 @@ var useFormikInput = function useFormikInput(_ref) {
|
|
|
4553
4580
|
// import FormRater from 'src/Rate/Rate';
|
|
4554
4581
|
// import Upload from 'src/Upload/Upload';
|
|
4555
4582
|
|
|
4556
|
-
var _excluded$
|
|
4583
|
+
var _excluded$w = ["value"];
|
|
4557
4584
|
var CheckboxComponent$1 = function CheckboxComponent(props) {
|
|
4558
4585
|
var _useFormikInput = useFormikInput(props),
|
|
4559
4586
|
value = _useFormikInput.value,
|
|
4560
|
-
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$
|
|
4587
|
+
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$w);
|
|
4561
4588
|
formProps.isChecked = value;
|
|
4562
4589
|
var checkboxStates = useCheckboxState(props);
|
|
4563
4590
|
return React.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
|
|
@@ -4615,11 +4642,11 @@ var TextAreaComponent$1 = function TextAreaComponent(props) {
|
|
|
4615
4642
|
*/
|
|
4616
4643
|
var FormikTextArea = TextAreaComponent$1;
|
|
4617
4644
|
|
|
4618
|
-
var _excluded$
|
|
4645
|
+
var _excluded$x = ["value"];
|
|
4619
4646
|
var TextFieldComponent$1 = function TextFieldComponent(props) {
|
|
4620
4647
|
var formProps = useFormikInput(props);
|
|
4621
4648
|
var _useTextFieldState = useTextFieldState(props),
|
|
4622
|
-
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$
|
|
4649
|
+
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$x);
|
|
4623
4650
|
return React.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
|
|
4624
4651
|
};
|
|
4625
4652
|
/**
|
|
@@ -4627,7 +4654,7 @@ var TextFieldComponent$1 = function TextFieldComponent(props) {
|
|
|
4627
4654
|
*/
|
|
4628
4655
|
var FormikTextField = TextFieldComponent$1;
|
|
4629
4656
|
|
|
4630
|
-
var _excluded$
|
|
4657
|
+
var _excluded$y = ["visibleIcon", "hiddenIcon"],
|
|
4631
4658
|
_excluded2$3 = ["isVisible", "setIsVisible"];
|
|
4632
4659
|
var PasswordComponent$1 = function PasswordComponent(_ref) {
|
|
4633
4660
|
var _ref$visibleIcon = _ref.visibleIcon,
|
|
@@ -4638,7 +4665,7 @@ var PasswordComponent$1 = function PasswordComponent(_ref) {
|
|
|
4638
4665
|
hiddenIcon = _ref$hiddenIcon === void 0 ? React.createElement(CloseEyeSvg, {
|
|
4639
4666
|
size: 14
|
|
4640
4667
|
}) : _ref$hiddenIcon,
|
|
4641
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4668
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
4642
4669
|
var formProps = useFormikInput(props);
|
|
4643
4670
|
var _usePasswordState = usePasswordState(formProps),
|
|
4644
4671
|
isVisible = _usePasswordState.isVisible,
|
|
@@ -4746,7 +4773,7 @@ var HeaderIconSizes = {
|
|
|
4746
4773
|
xl: 28
|
|
4747
4774
|
};
|
|
4748
4775
|
|
|
4749
|
-
var _excluded$
|
|
4776
|
+
var _excluded$z = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
4750
4777
|
_excluded2$4 = ["children", "shadow", "isFullScreen", "shape"],
|
|
4751
4778
|
_excluded3$2 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
4752
4779
|
_excluded4$2 = ["children"],
|
|
@@ -4762,7 +4789,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
4762
4789
|
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
4763
4790
|
_ref$position = _ref.position,
|
|
4764
4791
|
position = _ref$position === void 0 ? 'center' : _ref$position,
|
|
4765
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4792
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
4766
4793
|
var handleClick = function handleClick() {
|
|
4767
4794
|
if (!isClosePrevented) onClose();
|
|
4768
4795
|
};
|
|
@@ -4918,12 +4945,12 @@ Modal.Body = ModalBody;
|
|
|
4918
4945
|
Modal.Footer = ModalFooter;
|
|
4919
4946
|
Modal.Layout = ModalLayout;
|
|
4920
4947
|
|
|
4921
|
-
var _excluded$
|
|
4948
|
+
var _excluded$A = ["src", "color"],
|
|
4922
4949
|
_excluded2$5 = ["path"];
|
|
4923
4950
|
var FileSVG = function FileSVG(_ref) {
|
|
4924
4951
|
var src = _ref.src,
|
|
4925
4952
|
color = _ref.color,
|
|
4926
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4953
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
4927
4954
|
var _useTheme = useTheme(),
|
|
4928
4955
|
getColor = _useTheme.getColor;
|
|
4929
4956
|
var Colorprops = color ? {
|
|
@@ -4980,13 +5007,13 @@ var TabsView = function TabsView(props) {
|
|
|
4980
5007
|
var isContentActive = function isContentActive(tab) {
|
|
4981
5008
|
return tab.value === tabsState[0].value;
|
|
4982
5009
|
};
|
|
4983
|
-
return React.createElement(Horizontal
|
|
5010
|
+
return React.createElement(Horizontal, Object.assign({
|
|
4984
5011
|
width: "100w",
|
|
4985
5012
|
height: '100%'
|
|
4986
|
-
}, styles == null ? void 0 : styles.container), React.createElement(Horizontal
|
|
5013
|
+
}, styles == null ? void 0 : styles.container), React.createElement(Horizontal, Object.assign({
|
|
4987
5014
|
marginBottom: 20
|
|
4988
5015
|
}, styles == null ? void 0 : styles.headerTabs), tabs.map(function (tab, idx) {
|
|
4989
|
-
return React.createElement(Button
|
|
5016
|
+
return React.createElement(Button, Object.assign({
|
|
4990
5017
|
key: tab.title,
|
|
4991
5018
|
onClick: function onClick() {
|
|
4992
5019
|
moveSelectedTabToTop(idx);
|
|
@@ -4995,12 +5022,12 @@ var TabsView = function TabsView(props) {
|
|
|
4995
5022
|
shape: "pillShaped",
|
|
4996
5023
|
cursor: "pointer",
|
|
4997
5024
|
isAuto: true
|
|
4998
|
-
}, styles == null ? void 0 : styles.tab, isActive.value === tab.value ? styles == null ? void 0 : styles.activeTab : {}), React.createElement(Text
|
|
4999
|
-
})), React.createElement(View
|
|
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({
|
|
5000
5027
|
width: '100%',
|
|
5001
5028
|
height: "100%"
|
|
5002
5029
|
}, styles == null ? void 0 : styles.content), tabsState.map(function (tab, idx) {
|
|
5003
|
-
return isContentActive(tab) && React.createElement(View
|
|
5030
|
+
return isContentActive(tab) && React.createElement(View, {
|
|
5004
5031
|
key: idx
|
|
5005
5032
|
}, tab.content);
|
|
5006
5033
|
})));
|
|
@@ -5084,7 +5111,7 @@ var AlertView = function AlertView(_ref) {
|
|
|
5084
5111
|
description = _ref.description,
|
|
5085
5112
|
_ref$variant = _ref.variant,
|
|
5086
5113
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant;
|
|
5087
|
-
return React.createElement(Horizontal
|
|
5114
|
+
return React.createElement(Horizontal, Object.assign({
|
|
5088
5115
|
gap: 15,
|
|
5089
5116
|
borderRadius: 10,
|
|
5090
5117
|
borderWidth: 1,
|
|
@@ -5092,17 +5119,17 @@ var AlertView = function AlertView(_ref) {
|
|
|
5092
5119
|
padding: 16,
|
|
5093
5120
|
wrap: "nowrap",
|
|
5094
5121
|
borderColor: Themes[variant].container.border
|
|
5095
|
-
}, styles == null ? void 0 : styles.container), React.createElement(View
|
|
5122
|
+
}, styles == null ? void 0 : styles.container), React.createElement(View, {
|
|
5096
5123
|
alignSelf: 'center'
|
|
5097
5124
|
}, icon ? icon : React.createElement(WarningSvg, {
|
|
5098
5125
|
size: 24,
|
|
5099
5126
|
color: (_styles$icon$color = styles == null ? void 0 : styles.icon.color) != null ? _styles$icon$color : Themes[variant].content.color
|
|
5100
|
-
})), React.createElement(Vertical
|
|
5127
|
+
})), React.createElement(Vertical, {
|
|
5101
5128
|
gap: 10
|
|
5102
|
-
}, React.createElement(Text
|
|
5129
|
+
}, React.createElement(Text, Object.assign({
|
|
5103
5130
|
fontSize: "16px",
|
|
5104
5131
|
color: Themes[variant].content.color
|
|
5105
|
-
}, styles == null ? void 0 : styles.title), title), React.createElement(Text
|
|
5132
|
+
}, styles == null ? void 0 : styles.title), title), React.createElement(Text, Object.assign({
|
|
5106
5133
|
fontSize: "14px",
|
|
5107
5134
|
color: Themes[variant].content.color
|
|
5108
5135
|
}, styles == null ? void 0 : styles.description), description)));
|
|
@@ -5124,19 +5151,19 @@ var AlertComponent = function AlertComponent(_ref) {
|
|
|
5124
5151
|
};
|
|
5125
5152
|
var Alert = AlertComponent;
|
|
5126
5153
|
|
|
5127
|
-
var _excluded$
|
|
5154
|
+
var _excluded$B = ["ratio", "children"];
|
|
5128
5155
|
var AspectRatioView = function AspectRatioView(_ref) {
|
|
5129
5156
|
var _ref$ratio = _ref.ratio,
|
|
5130
5157
|
ratio = _ref$ratio === void 0 ? 16 / 9 : _ref$ratio,
|
|
5131
5158
|
children = _ref.children,
|
|
5132
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5133
|
-
return React.createElement(Center
|
|
5159
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
5160
|
+
return React.createElement(Center, Object.assign({
|
|
5134
5161
|
width: '100%',
|
|
5135
5162
|
position: "relative",
|
|
5136
5163
|
overflow: "hidden",
|
|
5137
5164
|
paddingTop: 1 / ratio * 100 + "%",
|
|
5138
5165
|
borderRadius: 8
|
|
5139
|
-
}, props), React.createElement(View
|
|
5166
|
+
}, props), React.createElement(View, {
|
|
5140
5167
|
position: "absolute",
|
|
5141
5168
|
top: 0,
|
|
5142
5169
|
right: 0,
|
|
@@ -5145,11 +5172,11 @@ var AspectRatioView = function AspectRatioView(_ref) {
|
|
|
5145
5172
|
}, children));
|
|
5146
5173
|
};
|
|
5147
5174
|
|
|
5148
|
-
var _excluded$
|
|
5175
|
+
var _excluded$C = ["ratio", "children"];
|
|
5149
5176
|
var AspectRatioComponent = function AspectRatioComponent(_ref) {
|
|
5150
5177
|
var ratio = _ref.ratio,
|
|
5151
5178
|
children = _ref.children,
|
|
5152
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5179
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
|
|
5153
5180
|
return React.createElement(AspectRatioView, Object.assign({
|
|
5154
5181
|
ratio: ratio
|
|
5155
5182
|
}, props), children);
|
|
@@ -5187,7 +5214,7 @@ var AvatarView = function AvatarView(_ref) {
|
|
|
5187
5214
|
var imageStyle = _extends({
|
|
5188
5215
|
objectFit: 'cover'
|
|
5189
5216
|
}, (styles == null ? void 0 : styles.image) || {});
|
|
5190
|
-
return React.createElement(Center
|
|
5217
|
+
return React.createElement(Center, Object.assign({
|
|
5191
5218
|
role: "avatar",
|
|
5192
5219
|
width: avatarSize,
|
|
5193
5220
|
height: avatarSize,
|
|
@@ -5206,7 +5233,7 @@ var AvatarView = function AvatarView(_ref) {
|
|
|
5206
5233
|
onError: function onError() {
|
|
5207
5234
|
return setImageError(true);
|
|
5208
5235
|
}
|
|
5209
|
-
}) : React.createElement(Text
|
|
5236
|
+
}) : React.createElement(Text, Object.assign({
|
|
5210
5237
|
size: size
|
|
5211
5238
|
}, styles == null ? void 0 : styles.fallback), fallback));
|
|
5212
5239
|
};
|
|
@@ -5333,9 +5360,9 @@ var BadgeView = function BadgeView(_ref) {
|
|
|
5333
5360
|
width: 'fit-content',
|
|
5334
5361
|
borderRadius: BadgeShapes[shape]
|
|
5335
5362
|
}, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {}, styles == null ? void 0 : styles.container);
|
|
5336
|
-
return React.createElement(Center
|
|
5363
|
+
return React.createElement(Center, Object.assign({
|
|
5337
5364
|
role: "badge"
|
|
5338
|
-
}, combinedStyles), React.createElement(Text
|
|
5365
|
+
}, combinedStyles), React.createElement(Text, Object.assign({
|
|
5339
5366
|
role: "badgeText",
|
|
5340
5367
|
size: size
|
|
5341
5368
|
}, styles == null ? void 0 : styles.text), content));
|
|
@@ -5381,7 +5408,7 @@ var ToggleShapes = {
|
|
|
5381
5408
|
pillShaped: 24
|
|
5382
5409
|
};
|
|
5383
5410
|
|
|
5384
|
-
var _excluded$
|
|
5411
|
+
var _excluded$D = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
|
|
5385
5412
|
var ToggleView = function ToggleView(_ref) {
|
|
5386
5413
|
var children = _ref.children,
|
|
5387
5414
|
_ref$shape = _ref.shape,
|
|
@@ -5396,7 +5423,7 @@ var ToggleView = function ToggleView(_ref) {
|
|
|
5396
5423
|
isToggle = _ref.isToggle,
|
|
5397
5424
|
setIsToggled = _ref.setIsToggled,
|
|
5398
5425
|
onToggle = _ref.onToggle,
|
|
5399
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5426
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
|
|
5400
5427
|
var toggleColor = !isDisabled ? colorScheme : 'theme.disabled';
|
|
5401
5428
|
var isActive = !!(isToggle || isHovered);
|
|
5402
5429
|
var ToggleVariants = {
|
|
@@ -5426,7 +5453,7 @@ var ToggleView = function ToggleView(_ref) {
|
|
|
5426
5453
|
}
|
|
5427
5454
|
};
|
|
5428
5455
|
|
|
5429
|
-
return React.createElement(Center
|
|
5456
|
+
return React.createElement(Center, Object.assign({
|
|
5430
5457
|
role: "Toggle",
|
|
5431
5458
|
padding: shape === 'pillShaped' ? '10px 12px' : '8px',
|
|
5432
5459
|
width: "fit-content",
|
|
@@ -5444,7 +5471,7 @@ var ToggleView = function ToggleView(_ref) {
|
|
|
5444
5471
|
}, ToggleVariants[variant], props), children);
|
|
5445
5472
|
};
|
|
5446
5473
|
|
|
5447
|
-
var _excluded$
|
|
5474
|
+
var _excluded$E = ["children", "shape", "colorScheme", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
5448
5475
|
var ToggleComponent = function ToggleComponent(_ref) {
|
|
5449
5476
|
var children = _ref.children,
|
|
5450
5477
|
shape = _ref.shape,
|
|
@@ -5454,7 +5481,7 @@ var ToggleComponent = function ToggleComponent(_ref) {
|
|
|
5454
5481
|
_ref$isToggled = _ref.isToggled,
|
|
5455
5482
|
isToggled = _ref$isToggled === void 0 ? false : _ref$isToggled,
|
|
5456
5483
|
onToggle = _ref.onToggle,
|
|
5457
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5484
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
5458
5485
|
var _useToggleState = useToggleState(isToggled),
|
|
5459
5486
|
isHovered = _useToggleState.isHovered,
|
|
5460
5487
|
setIsHovered = _useToggleState.setIsHovered,
|
|
@@ -5519,7 +5546,7 @@ var ToggleGroupView = function ToggleGroupView(_ref) {
|
|
|
5519
5546
|
display: "flex",
|
|
5520
5547
|
gap: 5
|
|
5521
5548
|
}, items.map(function (item) {
|
|
5522
|
-
return React.createElement(Toggle
|
|
5549
|
+
return React.createElement(Toggle, {
|
|
5523
5550
|
role: "toggle-" + item.id,
|
|
5524
5551
|
key: item.id,
|
|
5525
5552
|
colorScheme: colorScheme,
|