@yosgo/swap-ui 1.0.138 → 1.0.139
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/build/index.esm.js +446 -277
- package/build/index.esm.js.map +1 -1
- package/build/index.js +446 -277
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -2538,18 +2538,11 @@ var Typography = React__default.memo(function (_a) {
|
|
|
2538
2538
|
return (React__default.createElement(MaterialTypography, { className: classes.root, style: style }, children));
|
|
2539
2539
|
});
|
|
2540
2540
|
|
|
2541
|
-
var
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
var MD = useBreakpoints("md");
|
|
2547
|
-
var LG = useBreakpoints("lg");
|
|
2548
|
-
var XL = useBreakpoints("xl");
|
|
2549
|
-
var XXL = useBreakpoints("xxl");
|
|
2550
|
-
var useStyles = core.makeStyles({
|
|
2551
|
-
root: {
|
|
2552
|
-
maxWidth: maxWidth
|
|
2541
|
+
var useStyles$1 = core.makeStyles({
|
|
2542
|
+
root: {
|
|
2543
|
+
maxWidth: function (_a) {
|
|
2544
|
+
var maxWidth = _a.maxWidth, XXL = _a.XXL, XL = _a.XL, LG = _a.LG;
|
|
2545
|
+
return maxWidth
|
|
2553
2546
|
? maxWidth === "lg"
|
|
2554
2547
|
? 960
|
|
2555
2548
|
: maxWidth === "xl"
|
|
@@ -2563,8 +2556,11 @@ var Container = function (_a) {
|
|
|
2563
2556
|
? 1140
|
|
2564
2557
|
: LG
|
|
2565
2558
|
? 960
|
|
2566
|
-
: null
|
|
2567
|
-
|
|
2559
|
+
: null;
|
|
2560
|
+
},
|
|
2561
|
+
padding: function (_a) {
|
|
2562
|
+
var padding = _a.padding, XXL = _a.XXL, XL = _a.XL, LG = _a.LG, MD = _a.MD, SM = _a.SM, XS = _a.XS, XXS = _a.XXS;
|
|
2563
|
+
return padding
|
|
2568
2564
|
? padding === "xxs"
|
|
2569
2565
|
? "0px 8px"
|
|
2570
2566
|
: padding === "xs"
|
|
@@ -2588,10 +2584,30 @@ var Container = function (_a) {
|
|
|
2588
2584
|
? "0px 16px"
|
|
2589
2585
|
: XXS
|
|
2590
2586
|
? "0px 8px"
|
|
2591
|
-
: null
|
|
2587
|
+
: null;
|
|
2592
2588
|
},
|
|
2589
|
+
},
|
|
2590
|
+
});
|
|
2591
|
+
var Container = function (_a) {
|
|
2592
|
+
var children = _a.children, style = _a.style, maxWidth = _a.maxWidth, padding = _a.padding;
|
|
2593
|
+
var XXS = useBreakpoints("xxs");
|
|
2594
|
+
var XS = useBreakpoints("xs");
|
|
2595
|
+
var SM = useBreakpoints("sm");
|
|
2596
|
+
var MD = useBreakpoints("md");
|
|
2597
|
+
var LG = useBreakpoints("lg");
|
|
2598
|
+
var XL = useBreakpoints("xl");
|
|
2599
|
+
var XXL = useBreakpoints("xxl");
|
|
2600
|
+
var classes = useStyles$1({
|
|
2601
|
+
maxWidth: maxWidth,
|
|
2602
|
+
padding: padding,
|
|
2603
|
+
XXL: XXL,
|
|
2604
|
+
XL: XL,
|
|
2605
|
+
LG: LG,
|
|
2606
|
+
MD: MD,
|
|
2607
|
+
SM: SM,
|
|
2608
|
+
XS: XS,
|
|
2609
|
+
XXS: XXS,
|
|
2593
2610
|
});
|
|
2594
|
-
var classes = useStyles();
|
|
2595
2611
|
return (React__default.createElement(MaterialContainer, { className: classes.root, style: style }, children));
|
|
2596
2612
|
};
|
|
2597
2613
|
|
|
@@ -2614,7 +2630,7 @@ function useBreakpoints(breakpoints) {
|
|
|
2614
2630
|
return matches;
|
|
2615
2631
|
}
|
|
2616
2632
|
|
|
2617
|
-
var useStyles$
|
|
2633
|
+
var useStyles$2 = core.makeStyles(function (theme) { return ({
|
|
2618
2634
|
root: function (props) { return ({
|
|
2619
2635
|
width: 40,
|
|
2620
2636
|
height: 40,
|
|
@@ -2683,12 +2699,12 @@ var CheckBox = function (props) {
|
|
|
2683
2699
|
var styleProps = {
|
|
2684
2700
|
disableHover: disableHover,
|
|
2685
2701
|
};
|
|
2686
|
-
var classes = useStyles$
|
|
2702
|
+
var classes = useStyles$2(styleProps);
|
|
2687
2703
|
return (React__default.createElement(core.FormControlLabel, { label: label, labelPlacement: labelPlacement, style: { marginRight: 0 }, control: React__default.createElement(MaterialCheckBox, __assign({ disableFocusRipple: true, disableTouchRipple: true, className: classes.root }, other, { checkedIcon: React__default.createElement("span", { className: classes.checked_icon }, checkedIcon ? (checkedIcon) : (React__default.createElement("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2688
2704
|
React__default.createElement("path", { d: "M1.5 8.5L7 13L15 2", stroke: "white", strokeWidth: "3", strokeLinecap: "round" })))), icon: React__default.createElement("span", { className: classes.icon }, icon ? icon : null) })) }));
|
|
2689
2705
|
};
|
|
2690
2706
|
|
|
2691
|
-
var useStyles$
|
|
2707
|
+
var useStyles$3 = core.makeStyles(function (theme) { return ({
|
|
2692
2708
|
root: function (props) { return ({
|
|
2693
2709
|
width: 40,
|
|
2694
2710
|
height: 40,
|
|
@@ -2757,13 +2773,13 @@ var RadioButton = function (props) {
|
|
|
2757
2773
|
var styleProps = {
|
|
2758
2774
|
disableHover: disableHover,
|
|
2759
2775
|
};
|
|
2760
|
-
var classes = useStyles$
|
|
2776
|
+
var classes = useStyles$3(styleProps);
|
|
2761
2777
|
return (React__default.createElement(core.FormControlLabel, { label: label, labelPlacement: labelPlacement, style: { marginRight: 0 }, control: React__default.createElement(MaterialRadioButton, __assign({ disableFocusRipple: true, disableTouchRipple: true, className: classes.root, checkedIcon: React__default.createElement("span", { className: classes.checked_icon },
|
|
2762
2778
|
React__default.createElement("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2763
2779
|
React__default.createElement("circle", { cx: "5", cy: "5", r: "5", fill: "white" }))), icon: React__default.createElement("span", { className: classes.icon }) }, other)) }));
|
|
2764
2780
|
};
|
|
2765
2781
|
|
|
2766
|
-
var useStyles$
|
|
2782
|
+
var useStyles$4 = core.makeStyles(function (theme) { return ({
|
|
2767
2783
|
root: {
|
|
2768
2784
|
"& .MuiFormHelperText-contained": {
|
|
2769
2785
|
marginLeft: 16,
|
|
@@ -2863,7 +2879,7 @@ var TextField = function (props) {
|
|
|
2863
2879
|
height: height,
|
|
2864
2880
|
select: select,
|
|
2865
2881
|
};
|
|
2866
|
-
var classes = useStyles$
|
|
2882
|
+
var classes = useStyles$4(styleProps);
|
|
2867
2883
|
return (React__default.createElement(MaterialTextField, __assign({ fullWidth: fullWidth, select: select }, other, { className: classes.root, variant: "outlined", InputProps: __assign({ classes: {
|
|
2868
2884
|
root: classes.inputRoot,
|
|
2869
2885
|
input: classes.input,
|
|
@@ -2879,50 +2895,79 @@ var TextField = function (props) {
|
|
|
2879
2895
|
} }, SelectProps) }), children));
|
|
2880
2896
|
};
|
|
2881
2897
|
|
|
2882
|
-
var
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
fontWeight: 700,
|
|
2891
|
-
fontSize: fontSize ? fontSize : 14,
|
|
2892
|
-
lineHeight: 1.4,
|
|
2893
|
-
"&:hover": {
|
|
2894
|
-
color: "#000000",
|
|
2895
|
-
},
|
|
2898
|
+
var useStyles$5 = core.makeStyles(function (theme) { return ({
|
|
2899
|
+
root: {
|
|
2900
|
+
minWidth: 0,
|
|
2901
|
+
minHeight: 0,
|
|
2902
|
+
padding: 0,
|
|
2903
|
+
margin: function (_a) {
|
|
2904
|
+
var margin = _a.margin;
|
|
2905
|
+
return (margin ? margin : "0px 12px");
|
|
2896
2906
|
},
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2907
|
+
fontWeight: 700,
|
|
2908
|
+
fontSize: function (_a) {
|
|
2909
|
+
var fontSize = _a.fontSize;
|
|
2910
|
+
return (fontSize ? fontSize : 14);
|
|
2900
2911
|
},
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
height: height ? height : 56,
|
|
2905
|
-
display: "flex",
|
|
2906
|
-
justifyContent: "center",
|
|
2907
|
-
alignItems: "center",
|
|
2908
|
-
position: "relative",
|
|
2912
|
+
lineHeight: 1.4,
|
|
2913
|
+
"&:hover": {
|
|
2914
|
+
color: "#000000",
|
|
2909
2915
|
},
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2916
|
+
},
|
|
2917
|
+
text: {
|
|
2918
|
+
opacity: 1,
|
|
2919
|
+
color: theme.black.black700,
|
|
2920
|
+
},
|
|
2921
|
+
indicatorRoot: {
|
|
2922
|
+
color: function (_a) {
|
|
2923
|
+
var selected = _a.selected;
|
|
2924
|
+
return (selected ? "#000000" : "unset");
|
|
2919
2925
|
},
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2926
|
+
width: function (_a) {
|
|
2927
|
+
var width = _a.width;
|
|
2928
|
+
return (width ? width : 56);
|
|
2923
2929
|
},
|
|
2924
|
-
|
|
2925
|
-
|
|
2930
|
+
height: function (_a) {
|
|
2931
|
+
var height = _a.height;
|
|
2932
|
+
return (height ? height : 56);
|
|
2933
|
+
},
|
|
2934
|
+
display: "flex",
|
|
2935
|
+
justifyContent: "center",
|
|
2936
|
+
alignItems: "center",
|
|
2937
|
+
position: "relative",
|
|
2938
|
+
},
|
|
2939
|
+
selected_indicator: {
|
|
2940
|
+
animation: function (_a) {
|
|
2941
|
+
var animation = _a.animation;
|
|
2942
|
+
return animation ? "$selected 300ms " : "unset";
|
|
2943
|
+
},
|
|
2944
|
+
height: 4,
|
|
2945
|
+
width: "100%",
|
|
2946
|
+
backgroundColor: theme.primary.primary400,
|
|
2947
|
+
position: "absolute",
|
|
2948
|
+
bottom: 0,
|
|
2949
|
+
display: function (_a) {
|
|
2950
|
+
var noIndicator = _a.noIndicator;
|
|
2951
|
+
return (noIndicator ? "none" : null);
|
|
2952
|
+
},
|
|
2953
|
+
borderRadius: "100px 100px 0px 0px",
|
|
2954
|
+
},
|
|
2955
|
+
"@keyframes selected": {
|
|
2956
|
+
from: { width: 0 },
|
|
2957
|
+
to: { width: "100%" },
|
|
2958
|
+
},
|
|
2959
|
+
}); });
|
|
2960
|
+
var Tab = function (props) {
|
|
2961
|
+
var label = props.label, selected = props.selected, width = props.width, height = props.height, margin = props.margin, fontSize = props.fontSize, noIndicator = props.noIndicator, animation = props.animation, other = __rest(props, ["label", "selected", "width", "height", "margin", "fontSize", "noIndicator", "animation"]);
|
|
2962
|
+
var classes = useStyles$5({
|
|
2963
|
+
animation: animation,
|
|
2964
|
+
noIndicator: noIndicator,
|
|
2965
|
+
height: height,
|
|
2966
|
+
width: width,
|
|
2967
|
+
selected: selected,
|
|
2968
|
+
margin: margin,
|
|
2969
|
+
fontSize: fontSize,
|
|
2970
|
+
});
|
|
2926
2971
|
return (React__default.createElement(MaterialTab, __assign({}, other, { classes: {
|
|
2927
2972
|
root: classes.root,
|
|
2928
2973
|
textColorInherit: classes.text,
|
|
@@ -2931,7 +2976,7 @@ var Tab = function (props) {
|
|
|
2931
2976
|
selected ? React__default.createElement("div", { className: classes.selected_indicator }) : null), disableRipple: true })));
|
|
2932
2977
|
};
|
|
2933
2978
|
|
|
2934
|
-
var useStyles$
|
|
2979
|
+
var useStyles$6 = core.makeStyles({
|
|
2935
2980
|
root: {},
|
|
2936
2981
|
indicatorRoot: {
|
|
2937
2982
|
backgroundColor: "transparent",
|
|
@@ -2939,14 +2984,14 @@ var useStyles$4 = core.makeStyles({
|
|
|
2939
2984
|
});
|
|
2940
2985
|
var Tabs = function (props) {
|
|
2941
2986
|
var children = props.children, other = __rest(props, ["children"]);
|
|
2942
|
-
var classes = useStyles$
|
|
2987
|
+
var classes = useStyles$6();
|
|
2943
2988
|
return (React__default.createElement(MaterialTabs, __assign({}, other, { classes: {
|
|
2944
2989
|
root: classes.root,
|
|
2945
2990
|
indicator: classes.indicatorRoot,
|
|
2946
2991
|
} }), children));
|
|
2947
2992
|
};
|
|
2948
2993
|
|
|
2949
|
-
var useStyles$
|
|
2994
|
+
var useStyles$7 = core.makeStyles(function (theme) { return ({
|
|
2950
2995
|
root: function (props) { return ({
|
|
2951
2996
|
//SWAPTheme調整
|
|
2952
2997
|
textTransform: "unset",
|
|
@@ -2978,7 +3023,7 @@ var SegmentedTab = function (props) {
|
|
|
2978
3023
|
fontSize: fontSize,
|
|
2979
3024
|
flex: flex,
|
|
2980
3025
|
};
|
|
2981
|
-
var classes = useStyles$
|
|
3026
|
+
var classes = useStyles$7(styleProps);
|
|
2982
3027
|
return (React__default.createElement(MaterialTab, __assign({}, other, { disableRipple: true, classes: { textColorInherit: classes.text }, className: classes.root })));
|
|
2983
3028
|
};
|
|
2984
3029
|
|
|
@@ -3415,7 +3460,7 @@ var smoothscroll = createCommonjsModule(function (module, exports) {
|
|
|
3415
3460
|
});
|
|
3416
3461
|
var smoothscroll_1 = smoothscroll.polyfill;
|
|
3417
3462
|
|
|
3418
|
-
var useStyles$
|
|
3463
|
+
var useStyles$8 = core.makeStyles(function (theme) { return ({
|
|
3419
3464
|
root: function (props) { return ({
|
|
3420
3465
|
width: props.width,
|
|
3421
3466
|
boxSizing: "border-box",
|
|
@@ -3450,7 +3495,7 @@ var SegmentedTabs = function (_a) {
|
|
|
3450
3495
|
width: width,
|
|
3451
3496
|
slide: slide,
|
|
3452
3497
|
};
|
|
3453
|
-
var classes = useStyles$
|
|
3498
|
+
var classes = useStyles$8(styleProps);
|
|
3454
3499
|
var tabsRef = React.useRef(null);
|
|
3455
3500
|
React.useEffect(function () {
|
|
3456
3501
|
smoothscroll.polyfill();
|
|
@@ -3506,7 +3551,7 @@ var useOutlinedInputStyles = core.makeStyles(function (theme) { return ({
|
|
|
3506
3551
|
},
|
|
3507
3552
|
notchedOutline: {},
|
|
3508
3553
|
}); });
|
|
3509
|
-
var useStyles$
|
|
3554
|
+
var useStyles$9 = core.makeStyles(function (theme) { return ({
|
|
3510
3555
|
root: function (props) { return ({
|
|
3511
3556
|
//SWAPTheme調整
|
|
3512
3557
|
width: props.width ? props.width : "100%",
|
|
@@ -3569,7 +3614,7 @@ var Select = function (_a) {
|
|
|
3569
3614
|
paddingLeft: paddingLeft,
|
|
3570
3615
|
dropdown: dropdown,
|
|
3571
3616
|
};
|
|
3572
|
-
var classes = useStyles$
|
|
3617
|
+
var classes = useStyles$9(styleProps);
|
|
3573
3618
|
return (React__default.createElement(core.FormControl, { variant: "outlined", style: style, classes: { root: classes.root } },
|
|
3574
3619
|
React__default.createElement(core.InputLabel, { classes: {
|
|
3575
3620
|
root: classes.placeholder,
|
|
@@ -3593,7 +3638,7 @@ var Menu = function (props) {
|
|
|
3593
3638
|
return (React__default.createElement(MaterialMenu, __assign({ open: open }, other), children));
|
|
3594
3639
|
};
|
|
3595
3640
|
|
|
3596
|
-
var useStyles$
|
|
3641
|
+
var useStyles$a = core.makeStyles(function (theme) { return ({
|
|
3597
3642
|
root: function (props) { return ({
|
|
3598
3643
|
fontSize: 14,
|
|
3599
3644
|
fontWeight: 700,
|
|
@@ -3632,19 +3677,18 @@ var MenuItem = React__default.forwardRef(function (props, ref) {
|
|
|
3632
3677
|
hoverIconColor: hoverIconColor,
|
|
3633
3678
|
rippleColor: rippleColor,
|
|
3634
3679
|
};
|
|
3635
|
-
var classes = useStyles$
|
|
3680
|
+
var classes = useStyles$a(styleProps);
|
|
3636
3681
|
return (React__default.createElement(MaterialMenuItem, __assign({ className: classes.root }, other),
|
|
3637
3682
|
children,
|
|
3638
3683
|
React__default.createElement(core.ListItemIcon, { style: { justifyContent: "flex-end" } }, iconChildren)));
|
|
3639
3684
|
});
|
|
3640
3685
|
|
|
3641
|
-
var
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
color: variant === "primary"
|
|
3686
|
+
var useStyles$b = core.makeStyles(function (theme) { return ({
|
|
3687
|
+
root: {
|
|
3688
|
+
textTransform: "unset",
|
|
3689
|
+
color: function (_a) {
|
|
3690
|
+
var variant = _a.variant;
|
|
3691
|
+
return variant === "primary"
|
|
3648
3692
|
? theme.black.white
|
|
3649
3693
|
: variant === "secondary"
|
|
3650
3694
|
? theme.primary.primary400
|
|
@@ -3656,8 +3700,11 @@ var Button = function (props) {
|
|
|
3656
3700
|
? theme.black.black800
|
|
3657
3701
|
: variant === "danger"
|
|
3658
3702
|
? theme.black.white
|
|
3659
|
-
: theme.black.white
|
|
3660
|
-
|
|
3703
|
+
: theme.black.white;
|
|
3704
|
+
},
|
|
3705
|
+
backgroundColor: function (_a) {
|
|
3706
|
+
var variant = _a.variant;
|
|
3707
|
+
return variant === "primary"
|
|
3661
3708
|
? theme.primary.primary400
|
|
3662
3709
|
: variant === "secondary"
|
|
3663
3710
|
? theme.black.white
|
|
@@ -3669,8 +3716,11 @@ var Button = function (props) {
|
|
|
3669
3716
|
? theme.black.white
|
|
3670
3717
|
: variant === "danger"
|
|
3671
3718
|
? theme.danger.danger800
|
|
3672
|
-
: theme.primary.primary400
|
|
3673
|
-
|
|
3719
|
+
: theme.primary.primary400;
|
|
3720
|
+
},
|
|
3721
|
+
border: function (_a) {
|
|
3722
|
+
var variant = _a.variant;
|
|
3723
|
+
return variant === "primary"
|
|
3674
3724
|
? "1px solid " + theme.primary.primary600
|
|
3675
3725
|
: variant === "secondary"
|
|
3676
3726
|
? "1px solid " + theme.primary.primary400
|
|
@@ -3680,29 +3730,47 @@ var Button = function (props) {
|
|
|
3680
3730
|
? null
|
|
3681
3731
|
: variant === "danger"
|
|
3682
3732
|
? "1px solid " + theme.danger.dangerA11y
|
|
3683
|
-
: "1px solid " + theme.primary.primary600
|
|
3684
|
-
|
|
3685
|
-
|
|
3733
|
+
: "1px solid " + theme.primary.primary600;
|
|
3734
|
+
},
|
|
3735
|
+
borderRadius: "8px",
|
|
3736
|
+
height: function (_a) {
|
|
3737
|
+
var size = _a.size;
|
|
3738
|
+
return size === "small"
|
|
3686
3739
|
? "40px"
|
|
3687
3740
|
: size === "medium"
|
|
3688
3741
|
? "48px"
|
|
3689
3742
|
: size === "large"
|
|
3690
3743
|
? "56px"
|
|
3691
|
-
: "48px"
|
|
3692
|
-
|
|
3744
|
+
: "48px";
|
|
3745
|
+
},
|
|
3746
|
+
padding: function (_a) {
|
|
3747
|
+
var size = _a.size;
|
|
3748
|
+
return size === "small"
|
|
3693
3749
|
? "12px 16px"
|
|
3694
3750
|
: size === "medium"
|
|
3695
3751
|
? "15px 24px"
|
|
3696
3752
|
: size === "large"
|
|
3697
3753
|
? "19px 32px"
|
|
3698
|
-
: "15px 24px"
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3754
|
+
: "15px 24px";
|
|
3755
|
+
},
|
|
3756
|
+
minWidth: function (_a) {
|
|
3757
|
+
var minWidth = _a.minWidth;
|
|
3758
|
+
return minWidth;
|
|
3759
|
+
},
|
|
3760
|
+
width: function (_a) {
|
|
3761
|
+
var width = _a.width;
|
|
3762
|
+
return width;
|
|
3763
|
+
},
|
|
3764
|
+
fontSize: function (_a) {
|
|
3765
|
+
var size = _a.size;
|
|
3766
|
+
return size === "small" ? 14 : size === "medium" || size === "large" ? 16 : 16;
|
|
3767
|
+
},
|
|
3768
|
+
fontWeight: 700,
|
|
3769
|
+
lineHeight: 1.125,
|
|
3770
|
+
"&:hover": {
|
|
3771
|
+
backgroundColor: function (_a) {
|
|
3772
|
+
var variant = _a.variant;
|
|
3773
|
+
return variant === "primary"
|
|
3706
3774
|
? theme.primary.primary300
|
|
3707
3775
|
: variant === "secondary"
|
|
3708
3776
|
? theme.primary.primary50
|
|
@@ -3714,19 +3782,23 @@ var Button = function (props) {
|
|
|
3714
3782
|
? theme.black.black400
|
|
3715
3783
|
: variant === "danger"
|
|
3716
3784
|
? theme.danger.danger600
|
|
3717
|
-
: theme.primary.primary300
|
|
3718
|
-
|
|
3785
|
+
: theme.primary.primary300;
|
|
3786
|
+
},
|
|
3787
|
+
border: function (_a) {
|
|
3788
|
+
var variant = _a.variant;
|
|
3789
|
+
return variant === "primary"
|
|
3719
3790
|
? "1px solid " + theme.primary.primary300
|
|
3720
|
-
: variant === "tertiary" ||
|
|
3721
|
-
variant === "text" ||
|
|
3722
|
-
variant === "black"
|
|
3791
|
+
: variant === "tertiary" || variant === "text" || variant === "black"
|
|
3723
3792
|
? null
|
|
3724
3793
|
: variant === "danger"
|
|
3725
3794
|
? "1px solid " + theme.danger.dangerA11y
|
|
3726
|
-
: "1px solid " + theme.primary.primary300
|
|
3795
|
+
: "1px solid " + theme.primary.primary300;
|
|
3727
3796
|
},
|
|
3728
|
-
|
|
3729
|
-
|
|
3797
|
+
},
|
|
3798
|
+
"&:active": {
|
|
3799
|
+
backgroundColor: function (_a) {
|
|
3800
|
+
var variant = _a.variant;
|
|
3801
|
+
return variant === "primary"
|
|
3730
3802
|
? theme.primary.primary500
|
|
3731
3803
|
: variant === "secondary"
|
|
3732
3804
|
? theme.primary.primary100
|
|
@@ -3738,17 +3810,23 @@ var Button = function (props) {
|
|
|
3738
3810
|
? theme.black.black500
|
|
3739
3811
|
: variant === "danger"
|
|
3740
3812
|
? theme.danger.danger900
|
|
3741
|
-
: theme.primary.primary500
|
|
3813
|
+
: theme.primary.primary500;
|
|
3742
3814
|
},
|
|
3743
|
-
|
|
3744
|
-
|
|
3815
|
+
},
|
|
3816
|
+
"&:focus-visible": {
|
|
3817
|
+
boxShadow: function (_a) {
|
|
3818
|
+
var variant = _a.variant;
|
|
3819
|
+
return variant === "black"
|
|
3745
3820
|
? "0px 0px 0px 4px #CCCCCC"
|
|
3746
3821
|
: variant === "danger"
|
|
3747
3822
|
? "0px 0px 0px 4px #FFCCD0"
|
|
3748
3823
|
: variant === "tertiary"
|
|
3749
3824
|
? "0px 0px 0px 4px rgba(0, 0, 0, 0.1)"
|
|
3750
|
-
: "0px 0px 0px 4px #D7DFF8"
|
|
3751
|
-
|
|
3825
|
+
: "0px 0px 0px 4px #D7DFF8";
|
|
3826
|
+
},
|
|
3827
|
+
backgroundColor: function (_a) {
|
|
3828
|
+
var variant = _a.variant;
|
|
3829
|
+
return variant === "primary"
|
|
3752
3830
|
? theme.primary.primary400
|
|
3753
3831
|
: variant === "secondary"
|
|
3754
3832
|
? theme.primary.primary50
|
|
@@ -3760,8 +3838,11 @@ var Button = function (props) {
|
|
|
3760
3838
|
? theme.black.black400
|
|
3761
3839
|
: variant === "danger"
|
|
3762
3840
|
? theme.danger.danger600
|
|
3763
|
-
: theme.primary.primary400
|
|
3764
|
-
|
|
3841
|
+
: theme.primary.primary400;
|
|
3842
|
+
},
|
|
3843
|
+
border: function (_a) {
|
|
3844
|
+
var variant = _a.variant;
|
|
3845
|
+
return variant === "secondary"
|
|
3765
3846
|
? "1px solid " + theme.primary.primary400
|
|
3766
3847
|
: variant === "tertiary"
|
|
3767
3848
|
? "1px solid " + theme.black.black600
|
|
@@ -3771,11 +3852,14 @@ var Button = function (props) {
|
|
|
3771
3852
|
? "1px solid " + theme.black.black800
|
|
3772
3853
|
: variant === "danger"
|
|
3773
3854
|
? "1px solid " + theme.danger.dangerA11y
|
|
3774
|
-
: "1px solid " + theme.primary.primary600
|
|
3855
|
+
: "1px solid " + theme.primary.primary600;
|
|
3775
3856
|
},
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3857
|
+
},
|
|
3858
|
+
"&:disabled": {
|
|
3859
|
+
opacity: 0.4,
|
|
3860
|
+
backgroundColor: function (_a) {
|
|
3861
|
+
var variant = _a.variant;
|
|
3862
|
+
return variant === "primary"
|
|
3779
3863
|
? theme.primary.primary800
|
|
3780
3864
|
: variant === "secondary"
|
|
3781
3865
|
? theme.black.white
|
|
@@ -3787,8 +3871,11 @@ var Button = function (props) {
|
|
|
3787
3871
|
? theme.black.white
|
|
3788
3872
|
: variant === "danger"
|
|
3789
3873
|
? theme.danger.danger800
|
|
3790
|
-
: theme.primary.primary800
|
|
3791
|
-
|
|
3874
|
+
: theme.primary.primary800;
|
|
3875
|
+
},
|
|
3876
|
+
color: function (_a) {
|
|
3877
|
+
var variant = _a.variant;
|
|
3878
|
+
return variant === "primary"
|
|
3792
3879
|
? theme.black.white
|
|
3793
3880
|
: variant === "secondary"
|
|
3794
3881
|
? theme.primary.primary400
|
|
@@ -3800,16 +3887,28 @@ var Button = function (props) {
|
|
|
3800
3887
|
? theme.black.black800
|
|
3801
3888
|
: variant === "danger"
|
|
3802
3889
|
? theme.black.white
|
|
3803
|
-
: theme.black.white
|
|
3804
|
-
|
|
3890
|
+
: theme.black.white;
|
|
3891
|
+
},
|
|
3892
|
+
border: function (_a) {
|
|
3893
|
+
var variant = _a.variant;
|
|
3894
|
+
return variant === "secondary"
|
|
3805
3895
|
? "1px solid " + theme.primary.primary800
|
|
3806
3896
|
: variant === "danger"
|
|
3807
3897
|
? "1px solid " + theme.danger.dangerA11y
|
|
3808
|
-
: null
|
|
3898
|
+
: null;
|
|
3809
3899
|
},
|
|
3810
3900
|
},
|
|
3811
|
-
}
|
|
3812
|
-
|
|
3901
|
+
},
|
|
3902
|
+
}); });
|
|
3903
|
+
var Button = function (props) {
|
|
3904
|
+
var children = props.children, variant = props.variant, minWidth = props.minWidth, width = props.width, size = props.size, loading = props.loading, onClick = props.onClick, other = __rest(props, ["children", "variant", "minWidth", "width", "size", "loading", "onClick"]);
|
|
3905
|
+
var theme = core.useTheme();
|
|
3906
|
+
var classes = useStyles$b({
|
|
3907
|
+
variant: variant,
|
|
3908
|
+
size: size,
|
|
3909
|
+
minWidth: minWidth,
|
|
3910
|
+
width: width,
|
|
3911
|
+
});
|
|
3813
3912
|
return (React__default.createElement(MaterialButton, __assign({ className: classes.root, disableElevation: true, disableFocusRipple: true, onClick: function (event) {
|
|
3814
3913
|
onClick(event);
|
|
3815
3914
|
}, size: "medium" }, other), loading ? (React__default.createElement("div", { style: { position: "relative" } },
|
|
@@ -3849,7 +3948,7 @@ var Button = function (props) {
|
|
|
3849
3948
|
} }))) : (React__default.createElement("div", { style: { whiteSpace: "nowrap" } }, children))));
|
|
3850
3949
|
};
|
|
3851
3950
|
|
|
3852
|
-
var useStyles$
|
|
3951
|
+
var useStyles$c = core.makeStyles(function () { return ({
|
|
3853
3952
|
root: function (props) { return ({
|
|
3854
3953
|
width: props.width,
|
|
3855
3954
|
height: props.height,
|
|
@@ -4097,7 +4196,7 @@ var IconButton = function (props) {
|
|
|
4097
4196
|
: hoverIconColor
|
|
4098
4197
|
: null,
|
|
4099
4198
|
};
|
|
4100
|
-
var classes = useStyles$
|
|
4199
|
+
var classes = useStyles$c(styleProps);
|
|
4101
4200
|
return React__default.createElement(IconButton$1, __assign({ className: classes.root }, other));
|
|
4102
4201
|
};
|
|
4103
4202
|
|
|
@@ -4116,7 +4215,7 @@ function TransitionDown(props) {
|
|
|
4116
4215
|
function Transition(props) {
|
|
4117
4216
|
return React__default.createElement(core.Fade, __assign({}, props));
|
|
4118
4217
|
}
|
|
4119
|
-
var useStyles$
|
|
4218
|
+
var useStyles$d = core.makeStyles(function (theme) { return ({
|
|
4120
4219
|
root: {
|
|
4121
4220
|
"@media only screen and (min-width: 600px)": {
|
|
4122
4221
|
width: "fit-content",
|
|
@@ -4181,7 +4280,7 @@ var Snackbar = function (props) {
|
|
|
4181
4280
|
height: height,
|
|
4182
4281
|
variant: variant,
|
|
4183
4282
|
};
|
|
4184
|
-
var classes = useStyles$
|
|
4283
|
+
var classes = useStyles$d(styleProps);
|
|
4185
4284
|
return (React__default.createElement(MaterialSnackBar, __assign({}, other, { className: classes.root, ContentProps: {
|
|
4186
4285
|
classes: {
|
|
4187
4286
|
root: classes.contentRoot,
|
|
@@ -7192,7 +7291,7 @@ const host = createHost(primitives, {
|
|
|
7192
7291
|
});
|
|
7193
7292
|
const animated = host.animated;
|
|
7194
7293
|
|
|
7195
|
-
var useStyles$
|
|
7294
|
+
var useStyles$e = core.makeStyles(function (theme) { return ({
|
|
7196
7295
|
root: function (props) { return ({
|
|
7197
7296
|
margin: props.margin,
|
|
7198
7297
|
backgroundColor: props.backgroundColor,
|
|
@@ -7239,7 +7338,7 @@ var Tooltip = function (props) {
|
|
|
7239
7338
|
border: light ? "1px solid #CCCCCC" : null,
|
|
7240
7339
|
fontWeight: arrow ? 700 : 400,
|
|
7241
7340
|
};
|
|
7242
|
-
var classes = useStyles$
|
|
7341
|
+
var classes = useStyles$e(styleProps);
|
|
7243
7342
|
return (React__default.createElement(MaterialTooltip, __assign({ classes: { tooltip: classes.root, arrow: classes.arrow } }, other, { arrow: arrow }),
|
|
7244
7343
|
React__default.createElement("div", { style: __assign({ width: "fit-content", height: "fit-content", display: "flex", alignItems: "center", justifyContent: "center" }, childrenStyle) }, children)));
|
|
7245
7344
|
};
|
|
@@ -7266,45 +7365,28 @@ var ModalTransitionEffect = React__default.forwardRef(function ModalTransitionEf
|
|
|
7266
7365
|
});
|
|
7267
7366
|
return (React__default.createElement(React__default.Fragment, null, slide ? (React__default.createElement(core.Slide, { in: open, direction: "up", mountOnEnter: true, unmountOnExit: true, timeout: { enter: 300, exit: 300 } }, children)) : (React__default.createElement(animated.div, __assign({ style: __assign(__assign({}, style), defaultStyle) }, other), children))));
|
|
7268
7367
|
});
|
|
7269
|
-
var
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
if ((helpText || multiline) && !label) {
|
|
7276
|
-
setClientHeight(window.innerHeight - 64 - 73 - 64);
|
|
7277
|
-
}
|
|
7278
|
-
else if (!helpText && label) {
|
|
7279
|
-
setClientHeight(window.innerHeight - 64 - 56 - 99);
|
|
7280
|
-
}
|
|
7281
|
-
else if ((helpText || multiline) && label) {
|
|
7282
|
-
setClientHeight(window.innerHeight - 64 - 73 - 99);
|
|
7283
|
-
}
|
|
7284
|
-
else {
|
|
7285
|
-
setClientHeight(window.innerHeight - 64 - 56 - 64);
|
|
7286
|
-
}
|
|
7287
|
-
}
|
|
7288
|
-
}, [fullWidth, mobile]);
|
|
7289
|
-
React.useEffect(function () {
|
|
7290
|
-
var scrollbar_width = window.innerWidth - document.body.clientWidth;
|
|
7291
|
-
setScorllbarWidth(scrollbar_width / 2);
|
|
7292
|
-
}, []);
|
|
7293
|
-
var match_XS = useBreakpoints("xs");
|
|
7294
|
-
var useStyles = core.makeStyles(function (theme) { return ({
|
|
7295
|
-
root: {
|
|
7296
|
-
display: "flex",
|
|
7297
|
-
alignItems: fullWidth ? "flex-end" : "center",
|
|
7298
|
-
justifyContent: "center",
|
|
7299
|
-
border: "unset",
|
|
7300
|
-
borderRadius: 12,
|
|
7301
|
-
margin: fullWidth ? 0 : match_XS ? "0px 24px" : "0px 16px",
|
|
7368
|
+
var useStyles$f = core.makeStyles(function (theme) { return ({
|
|
7369
|
+
root: {
|
|
7370
|
+
display: "flex",
|
|
7371
|
+
alignItems: function (_a) {
|
|
7372
|
+
var fullWidth = _a.fullWidth;
|
|
7373
|
+
return fullWidth ? "flex-end" : "center";
|
|
7302
7374
|
},
|
|
7303
|
-
|
|
7304
|
-
|
|
7375
|
+
justifyContent: "center",
|
|
7376
|
+
border: "unset",
|
|
7377
|
+
borderRadius: 12,
|
|
7378
|
+
margin: function (_a) {
|
|
7379
|
+
var fullWidth = _a.fullWidth, match_XS = _a.match_XS;
|
|
7380
|
+
return fullWidth ? 0 : match_XS ? "0px 24px" : "0px 16px";
|
|
7305
7381
|
},
|
|
7306
|
-
|
|
7307
|
-
|
|
7382
|
+
},
|
|
7383
|
+
backdrop: {
|
|
7384
|
+
transition: "all 0.2s ease-in-out !important",
|
|
7385
|
+
},
|
|
7386
|
+
modal: {
|
|
7387
|
+
width: function (_a) {
|
|
7388
|
+
var width = _a.width, size = _a.size;
|
|
7389
|
+
return width
|
|
7308
7390
|
? width
|
|
7309
7391
|
: size === "large"
|
|
7310
7392
|
? 800
|
|
@@ -7314,19 +7396,28 @@ var Modal = React__default.forwardRef(function (props, ref) {
|
|
|
7314
7396
|
? 480
|
|
7315
7397
|
: size === "extraSmall"
|
|
7316
7398
|
? 320
|
|
7317
|
-
: "100%"
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
display: "flex",
|
|
7323
|
-
flexDirection: "column",
|
|
7324
|
-
outline: 0,
|
|
7399
|
+
: "100%";
|
|
7400
|
+
},
|
|
7401
|
+
maxWidth: function (_a) {
|
|
7402
|
+
var maxWidth = _a.maxWidth;
|
|
7403
|
+
return maxWidth;
|
|
7325
7404
|
},
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7405
|
+
borderRadius: function (_a) {
|
|
7406
|
+
var fullWidth = _a.fullWidth;
|
|
7407
|
+
return fullWidth ? "12px 12px 0px 0px" : 12;
|
|
7408
|
+
},
|
|
7409
|
+
border: "unset",
|
|
7410
|
+
boxShadow: theme.boxShadow.l,
|
|
7411
|
+
display: "flex",
|
|
7412
|
+
flexDirection: "column",
|
|
7413
|
+
outline: 0,
|
|
7414
|
+
},
|
|
7415
|
+
head: {
|
|
7416
|
+
height: "100%",
|
|
7417
|
+
borderRadius: "12px 12px 0px 0px",
|
|
7418
|
+
padding: function (_a) {
|
|
7419
|
+
var headpadding = _a.headpadding, mobile = _a.mobile, disCloseIcon = _a.disCloseIcon, helpText = _a.helpText, multiline = _a.multiline;
|
|
7420
|
+
return headpadding
|
|
7330
7421
|
? headpadding
|
|
7331
7422
|
: mobile
|
|
7332
7423
|
? disCloseIcon && !helpText && !multiline
|
|
@@ -7334,24 +7425,30 @@ var Modal = React__default.forwardRef(function (props, ref) {
|
|
|
7334
7425
|
: "12px 16px"
|
|
7335
7426
|
: disCloseIcon && !helpText && !multiline
|
|
7336
7427
|
? "19.5px 24px"
|
|
7337
|
-
: "16px 24px"
|
|
7338
|
-
display: "flex",
|
|
7339
|
-
alignItems: "center",
|
|
7340
|
-
justifyContent: "space-between",
|
|
7341
|
-
position: "relative",
|
|
7342
|
-
pointerEvents: onExit ? "none" : "unset",
|
|
7428
|
+
: "16px 24px";
|
|
7343
7429
|
},
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7430
|
+
display: "flex",
|
|
7431
|
+
alignItems: "center",
|
|
7432
|
+
justifyContent: "space-between",
|
|
7433
|
+
position: "relative",
|
|
7434
|
+
pointerEvents: function (_a) {
|
|
7435
|
+
var onExit = _a.onExit;
|
|
7436
|
+
return (onExit ? "none" : "unset");
|
|
7348
7437
|
},
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7438
|
+
},
|
|
7439
|
+
title: {
|
|
7440
|
+
display: "flex",
|
|
7441
|
+
alignItems: "center",
|
|
7442
|
+
justifyContent: "center",
|
|
7443
|
+
},
|
|
7444
|
+
icon: {
|
|
7445
|
+
"& path": {
|
|
7446
|
+
width: 20,
|
|
7447
|
+
height: 20,
|
|
7448
|
+
},
|
|
7449
|
+
color: function (_a) {
|
|
7450
|
+
var iconColor = _a.iconColor, checkIconColor = _a.checkIconColor;
|
|
7451
|
+
return iconColor === "primary50"
|
|
7355
7452
|
? theme.primary.primary50
|
|
7356
7453
|
: iconColor === "primary100"
|
|
7357
7454
|
? theme.primary.primary100
|
|
@@ -7571,76 +7668,148 @@ var Modal = React__default.forwardRef(function (props, ref) {
|
|
|
7571
7668
|
? theme.black.black900
|
|
7572
7669
|
: checkIconColor === "black1000"
|
|
7573
7670
|
? theme.black.black1000
|
|
7574
|
-
: theme.black.black700
|
|
7575
|
-
marginRight: 10,
|
|
7671
|
+
: theme.black.black700;
|
|
7576
7672
|
},
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7673
|
+
marginRight: 10,
|
|
7674
|
+
},
|
|
7675
|
+
closeIconButton: {
|
|
7676
|
+
padding: 0,
|
|
7677
|
+
width: 32,
|
|
7678
|
+
height: 32,
|
|
7679
|
+
borderRadius: 8,
|
|
7680
|
+
"&:hover": {
|
|
7581
7681
|
borderRadius: 8,
|
|
7582
|
-
"&:hover": {
|
|
7583
|
-
borderRadius: 8,
|
|
7584
|
-
},
|
|
7585
|
-
marginLeft: 16,
|
|
7586
7682
|
},
|
|
7587
|
-
|
|
7588
|
-
|
|
7683
|
+
marginLeft: 16,
|
|
7684
|
+
},
|
|
7685
|
+
closeIconRippleRoot: {
|
|
7686
|
+
borderRadius: 8,
|
|
7687
|
+
},
|
|
7688
|
+
closeIcon: {
|
|
7689
|
+
color: theme.black.black1000,
|
|
7690
|
+
borderRadius: 8,
|
|
7691
|
+
width: 20,
|
|
7692
|
+
height: 20,
|
|
7693
|
+
},
|
|
7694
|
+
body: {
|
|
7695
|
+
transition: "all 0.2s ease-in-out",
|
|
7696
|
+
height: function (_a) {
|
|
7697
|
+
var height = _a.height;
|
|
7698
|
+
return (height ? height : "100%");
|
|
7589
7699
|
},
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
width: 20,
|
|
7594
|
-
height: 20,
|
|
7700
|
+
padding: function (_a) {
|
|
7701
|
+
var bodyPadding = _a.bodyPadding, mobile = _a.mobile;
|
|
7702
|
+
return bodyPadding ? bodyPadding : mobile ? 16 : 24;
|
|
7595
7703
|
},
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7704
|
+
position: "relative",
|
|
7705
|
+
pointerEvents: function (_a) {
|
|
7706
|
+
var onExit = _a.onExit;
|
|
7707
|
+
return (onExit ? "none" : "unset");
|
|
7708
|
+
},
|
|
7709
|
+
maxHeight: function (_a) {
|
|
7710
|
+
var bodyMaxHeight = _a.bodyMaxHeight, fullWidth = _a.fullWidth, clientHeight = _a.clientHeight;
|
|
7711
|
+
return bodyMaxHeight ? bodyMaxHeight : fullWidth ? clientHeight : "unset";
|
|
7712
|
+
},
|
|
7713
|
+
overflowY: function (_a) {
|
|
7714
|
+
var onExit = _a.onExit;
|
|
7715
|
+
return (!onExit ? "scroll" : "hidden");
|
|
7716
|
+
},
|
|
7717
|
+
"&::-webkit-scrollbar": {
|
|
7718
|
+
backgroundColor: "transparent",
|
|
7719
|
+
width: 5,
|
|
7720
|
+
},
|
|
7721
|
+
"&::-webkit-scrollbar-thumb": {
|
|
7722
|
+
backgroundColor: theme.black.black600,
|
|
7723
|
+
borderRadius: 100,
|
|
7724
|
+
},
|
|
7725
|
+
"&::-webkit-scrollbar-track-piece:start": {
|
|
7726
|
+
marginTop: 12,
|
|
7727
|
+
},
|
|
7728
|
+
"&::-webkit-scrollbar-track-piece:end": {
|
|
7729
|
+
marginBottom: 12,
|
|
7622
7730
|
},
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7731
|
+
},
|
|
7732
|
+
footer: {
|
|
7733
|
+
height: "100%",
|
|
7734
|
+
padding: function (_a) {
|
|
7735
|
+
var label = _a.label, secondaryButton = _a.secondaryButton, primaryButton = _a.primaryButton, mobile = _a.mobile;
|
|
7736
|
+
return label || secondaryButton || primaryButton
|
|
7626
7737
|
? mobile
|
|
7627
7738
|
? "12px 16px"
|
|
7628
7739
|
: "16px 24px"
|
|
7629
|
-
: null
|
|
7630
|
-
borderRadius: "0px 0px 12px 12px",
|
|
7631
|
-
display: "flex",
|
|
7632
|
-
flexDirection: mobile ? "column" : "row",
|
|
7633
|
-
alignItems: "center",
|
|
7634
|
-
justifyContent: "space-between",
|
|
7740
|
+
: null;
|
|
7635
7741
|
},
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
|
|
7742
|
+
borderRadius: "0px 0px 12px 12px",
|
|
7743
|
+
display: "flex",
|
|
7744
|
+
flexDirection: function (_a) {
|
|
7745
|
+
var mobile = _a.mobile;
|
|
7746
|
+
return (mobile ? "column" : "row");
|
|
7641
7747
|
},
|
|
7642
|
-
|
|
7643
|
-
|
|
7748
|
+
alignItems: "center",
|
|
7749
|
+
justifyContent: "space-between",
|
|
7750
|
+
},
|
|
7751
|
+
footerButton: {
|
|
7752
|
+
width: function (_a) {
|
|
7753
|
+
var buttonFullWidth = _a.buttonFullWidth, footerDisplayColumn = _a.footerDisplayColumn, mobile = _a.mobile;
|
|
7754
|
+
return buttonFullWidth || footerDisplayColumn || mobile ? "100%" : null;
|
|
7755
|
+
},
|
|
7756
|
+
display: "flex",
|
|
7757
|
+
flexDirection: function (_a) {
|
|
7758
|
+
var footerDisplayColumn = _a.footerDisplayColumn;
|
|
7759
|
+
return footerDisplayColumn ? "column-reverse" : "row";
|
|
7760
|
+
},
|
|
7761
|
+
alignItems: "center",
|
|
7762
|
+
},
|
|
7763
|
+
}); });
|
|
7764
|
+
var Modal = React__default.forwardRef(function (props, ref) {
|
|
7765
|
+
var width = props.width, height = props.height, open = props.open, onClose = props.onClose, title = props.title, helpText = props.helpText, size = props.size, headpadding = props.headpadding, headChildren = props.headChildren, checked = props.checked, failed = props.failed, icon = props.icon, checkIconColor = props.checkIconColor, iconColor = props.iconColor, children = props.children, label = props.label, buttonFullWidth = props.buttonFullWidth, footerDisplayColumn = props.footerDisplayColumn, secondaryButton = props.secondaryButton, primaryButton = props.primaryButton, mobile = props.mobile, fullWidth = props.fullWidth, bodyPadding = props.bodyPadding, maxWidth = props.maxWidth, disCloseIcon = props.disCloseIcon, titleStyle = props.titleStyle, bodyStyle = props.bodyStyle, onExit = props.onExit, bodyMaxHeight = props.bodyMaxHeight, multiline = props.multiline, disUnderLine = props.disUnderLine, footer = props.footer;
|
|
7766
|
+
var _a = React.useState(0), clientHeight = _a[0], setClientHeight = _a[1];
|
|
7767
|
+
var _b = React.useState(0), scorllbarWidth = _b[0], setScorllbarWidth = _b[1];
|
|
7768
|
+
React.useEffect(function () {
|
|
7769
|
+
if (mobile || fullWidth) {
|
|
7770
|
+
if ((helpText || multiline) && !label) {
|
|
7771
|
+
setClientHeight(window.innerHeight - 64 - 73 - 64);
|
|
7772
|
+
}
|
|
7773
|
+
else if (!helpText && label) {
|
|
7774
|
+
setClientHeight(window.innerHeight - 64 - 56 - 99);
|
|
7775
|
+
}
|
|
7776
|
+
else if ((helpText || multiline) && label) {
|
|
7777
|
+
setClientHeight(window.innerHeight - 64 - 73 - 99);
|
|
7778
|
+
}
|
|
7779
|
+
else {
|
|
7780
|
+
setClientHeight(window.innerHeight - 64 - 56 - 64);
|
|
7781
|
+
}
|
|
7782
|
+
}
|
|
7783
|
+
}, [fullWidth, mobile]);
|
|
7784
|
+
React.useEffect(function () {
|
|
7785
|
+
var scrollbar_width = window.innerWidth - document.body.clientWidth;
|
|
7786
|
+
setScorllbarWidth(scrollbar_width / 2);
|
|
7787
|
+
}, []);
|
|
7788
|
+
var match_XS = useBreakpoints("xs");
|
|
7789
|
+
var classes = useStyles$f({
|
|
7790
|
+
fullWidth: fullWidth,
|
|
7791
|
+
match_XS: match_XS,
|
|
7792
|
+
width: width,
|
|
7793
|
+
size: size,
|
|
7794
|
+
maxWidth: maxWidth,
|
|
7795
|
+
headpadding: headpadding,
|
|
7796
|
+
mobile: mobile,
|
|
7797
|
+
disCloseIcon: disCloseIcon,
|
|
7798
|
+
onExit: onExit,
|
|
7799
|
+
iconColor: iconColor,
|
|
7800
|
+
checkIconColor: checkIconColor,
|
|
7801
|
+
height: height,
|
|
7802
|
+
bodyPadding: bodyPadding,
|
|
7803
|
+
bodyMaxHeight: bodyMaxHeight,
|
|
7804
|
+
clientHeight: clientHeight,
|
|
7805
|
+
label: label,
|
|
7806
|
+
secondaryButton: secondaryButton,
|
|
7807
|
+
primaryButton: primaryButton,
|
|
7808
|
+
buttonFullWidth: buttonFullWidth,
|
|
7809
|
+
footerDisplayColumn: footerDisplayColumn,
|
|
7810
|
+
helpText: helpText,
|
|
7811
|
+
multiline: multiline,
|
|
7812
|
+
});
|
|
7644
7813
|
return (React__default.createElement(MaterialModal, { open: open, className: classes.root, BackdropComponent: core.Backdrop, BackdropProps: {
|
|
7645
7814
|
className: classes.backdrop,
|
|
7646
7815
|
style: { overflow: "auto", WebkitOverflowScrolling: "touch" },
|
|
@@ -7747,7 +7916,7 @@ var Modal = React__default.forwardRef(function (props, ref) {
|
|
|
7747
7916
|
: "primary", size: "small", onClick: primaryButton.onClick, disabled: primaryButton.disabled, loading: primaryButton.loading, style: primaryButton.style }, primaryButton.title))) : null))) : null)))))));
|
|
7748
7917
|
});
|
|
7749
7918
|
|
|
7750
|
-
var useStyles$
|
|
7919
|
+
var useStyles$g = core.makeStyles(function () { return ({
|
|
7751
7920
|
root: function (props) { return ({
|
|
7752
7921
|
backgroundColor: props.backgroundColor,
|
|
7753
7922
|
border: "1px solid " + props.borderColor,
|
|
@@ -7795,7 +7964,7 @@ var Banner = function (props) {
|
|
|
7795
7964
|
height: height ? height : null,
|
|
7796
7965
|
alignItems: mobile ? "flex-start" : alignStart ? "flex-start" : "center",
|
|
7797
7966
|
};
|
|
7798
|
-
var classes = useStyles$
|
|
7967
|
+
var classes = useStyles$g(styleProps);
|
|
7799
7968
|
var ref = React.useRef(null);
|
|
7800
7969
|
React.useEffect(function () {
|
|
7801
7970
|
if (ref.current) {
|
|
@@ -7821,7 +7990,7 @@ var Banner = function (props) {
|
|
|
7821
7990
|
React__default.createElement(Typography, { variant: "caption2" }, children)));
|
|
7822
7991
|
};
|
|
7823
7992
|
|
|
7824
|
-
var useStyles$
|
|
7993
|
+
var useStyles$h = core.makeStyles(function () { return ({
|
|
7825
7994
|
root: function (props) { return ({
|
|
7826
7995
|
backgroundColor: props.backgroundColor,
|
|
7827
7996
|
border: props.border,
|
|
@@ -7877,7 +8046,7 @@ var Chip = function (props) {
|
|
|
7877
8046
|
? theme.danger.danger800
|
|
7878
8047
|
: theme.primary.primary800,
|
|
7879
8048
|
};
|
|
7880
|
-
var classes = useStyles$
|
|
8049
|
+
var classes = useStyles$h(styleProps);
|
|
7881
8050
|
return (React__default.createElement("div", __assign({ className: classes.root }, other),
|
|
7882
8051
|
React__default.createElement("span", { style: { marginRight: variant === "success" ? 4 : 0 } }, label),
|
|
7883
8052
|
variant === "success" && !icon ? icon_success : icon));
|
|
@@ -12018,7 +12187,7 @@ var MaterialSkeleton = styles$4.withStyles(styles$3, {
|
|
|
12018
12187
|
name: 'MuiSkeleton'
|
|
12019
12188
|
})(Skeleton);
|
|
12020
12189
|
|
|
12021
|
-
var useStyles$
|
|
12190
|
+
var useStyles$i = core.makeStyles(function (theme) { return ({
|
|
12022
12191
|
root: function () { return ({}); },
|
|
12023
12192
|
ul: {
|
|
12024
12193
|
"& li": {
|
|
@@ -12074,7 +12243,7 @@ var Pagination$1 = function (props) {
|
|
|
12074
12243
|
// const theme = useTheme();
|
|
12075
12244
|
var other = __rest(props, []);
|
|
12076
12245
|
var styleProps = {};
|
|
12077
|
-
var classes = useStyles$
|
|
12246
|
+
var classes = useStyles$i(styleProps);
|
|
12078
12247
|
return (React__default.createElement(MaterialPagination, __assign({ classes: { root: classes.root, ul: classes.ul }, shape: "rounded", variant: "outlined" }, other, { renderItem: function (item) { return (React__default.createElement(PaginationItem$1, __assign({}, item, { classes: {
|
|
12079
12248
|
root: classes.itemRoot,
|
|
12080
12249
|
rounded: classes.rounded,
|
|
@@ -12083,7 +12252,7 @@ var Pagination$1 = function (props) {
|
|
|
12083
12252
|
} }))); } })));
|
|
12084
12253
|
};
|
|
12085
12254
|
|
|
12086
|
-
var useStyles$
|
|
12255
|
+
var useStyles$j = core.makeStyles(function (theme) { return ({
|
|
12087
12256
|
root: function (props) { return ({
|
|
12088
12257
|
width: props.width,
|
|
12089
12258
|
display: "flex",
|
|
@@ -12110,7 +12279,7 @@ var Progress = function (props) {
|
|
|
12110
12279
|
width: width ? width : "100%",
|
|
12111
12280
|
size: size ? size : 24,
|
|
12112
12281
|
};
|
|
12113
|
-
var classes = useStyles$
|
|
12282
|
+
var classes = useStyles$j(styleProps);
|
|
12114
12283
|
var a = Array.from(Array(count).keys());
|
|
12115
12284
|
return (React__default.createElement("div", __assign({ className: classes.root }, other), a.map(function (i) {
|
|
12116
12285
|
return (React__default.createElement("div", { key: i, style: {
|
|
@@ -12160,7 +12329,7 @@ var Progress = function (props) {
|
|
|
12160
12329
|
})));
|
|
12161
12330
|
};
|
|
12162
12331
|
|
|
12163
|
-
var useStyles$
|
|
12332
|
+
var useStyles$k = core.makeStyles(function (theme) { return ({
|
|
12164
12333
|
popper: function (props) { return ({
|
|
12165
12334
|
border: "1px solid #CCCCCC",
|
|
12166
12335
|
boxShadow: " 0px 4px 12px rgba(0, 0, 0, 0.1)",
|
|
@@ -12303,7 +12472,7 @@ var AutoComplete = function (props) {
|
|
|
12303
12472
|
marginTop: anchorOrigin ? anchorOrigin.vertical : -65,
|
|
12304
12473
|
marginLeft: anchorOrigin ? anchorOrigin.horizontal : -0,
|
|
12305
12474
|
};
|
|
12306
|
-
var classes = useStyles$
|
|
12475
|
+
var classes = useStyles$k(styleProps);
|
|
12307
12476
|
var id = open ? "simple" : undefined;
|
|
12308
12477
|
return (React__default.createElement("div", null,
|
|
12309
12478
|
React__default.createElement(core.Popper, { id: id, open: open, anchorEl: anchorEl, placement: "bottom-start", className: classes.popper },
|
|
@@ -12678,7 +12847,7 @@ var SWAPTaxDescription$1 = function (incomeCode, expenseCode) {
|
|
|
12678
12847
|
* 3. 所得類別為50薪資時不會有費用類別
|
|
12679
12848
|
*/
|
|
12680
12849
|
|
|
12681
|
-
var useStyles$
|
|
12850
|
+
var useStyles$l = core.makeStyles(function (theme) { return ({
|
|
12682
12851
|
root: function (props) { return ({
|
|
12683
12852
|
backgroundColor: theme.black.black400,
|
|
12684
12853
|
transform: "unset",
|
|
@@ -12687,7 +12856,7 @@ var useStyles$h = core.makeStyles(function (theme) { return ({
|
|
|
12687
12856
|
var Skeleton$1 = function (props) {
|
|
12688
12857
|
var other = __rest(props, []);
|
|
12689
12858
|
var styleProps = {};
|
|
12690
|
-
var classes = useStyles$
|
|
12859
|
+
var classes = useStyles$l(styleProps);
|
|
12691
12860
|
return React__default.createElement(MaterialSkeleton, __assign({ classes: { root: classes.root } }, other));
|
|
12692
12861
|
};
|
|
12693
12862
|
|
|
@@ -12714,7 +12883,7 @@ var useOutlinedInputStyles$1 = core.makeStyles(function (theme) { return ({
|
|
|
12714
12883
|
},
|
|
12715
12884
|
notchedOutline: {},
|
|
12716
12885
|
}); });
|
|
12717
|
-
var useStyles$
|
|
12886
|
+
var useStyles$m = core.makeStyles(function (theme) { return ({
|
|
12718
12887
|
root: function (props) { return ({
|
|
12719
12888
|
//SWAPTheme調整
|
|
12720
12889
|
width: props.width ? props.width : "100%",
|
|
@@ -12759,7 +12928,7 @@ var Dropdown = function (props) {
|
|
|
12759
12928
|
width: width,
|
|
12760
12929
|
height: height,
|
|
12761
12930
|
};
|
|
12762
|
-
var classes = useStyles$
|
|
12931
|
+
var classes = useStyles$m(styleProps);
|
|
12763
12932
|
var outlinedInputClasses = useOutlinedInputStyles$1();
|
|
12764
12933
|
return (React__default.createElement(core.FormControl, { variant: "outlined", style: formControlStyle, classes: { root: classes.root } },
|
|
12765
12934
|
React__default.createElement(MaterialSelect, __assign({}, other, { classes: {
|
|
@@ -12768,7 +12937,7 @@ var Dropdown = function (props) {
|
|
|
12768
12937
|
React__default.createElement(core.FormHelperText, { style: helperTextStyle }, helperText)));
|
|
12769
12938
|
};
|
|
12770
12939
|
|
|
12771
|
-
var useStyles$
|
|
12940
|
+
var useStyles$n = core.makeStyles(function (theme) { return ({
|
|
12772
12941
|
root: function (props) { return ({
|
|
12773
12942
|
width: props.width
|
|
12774
12943
|
? props.width
|
|
@@ -12815,7 +12984,7 @@ var RadioList = function (props) {
|
|
|
12815
12984
|
height: height,
|
|
12816
12985
|
line: line,
|
|
12817
12986
|
};
|
|
12818
|
-
var classes = useStyles$
|
|
12987
|
+
var classes = useStyles$n(styleProps);
|
|
12819
12988
|
var _a = React.useState(0), lineHeight = _a[0], setLineHeight = _a[1];
|
|
12820
12989
|
var ref = React.useRef(null);
|
|
12821
12990
|
React.useEffect(function () {
|
|
@@ -12861,7 +13030,7 @@ var RadioList = function (props) {
|
|
|
12861
13030
|
!multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
|
|
12862
13031
|
};
|
|
12863
13032
|
|
|
12864
|
-
var useStyles$
|
|
13033
|
+
var useStyles$o = core.makeStyles(function (theme) { return ({
|
|
12865
13034
|
root: function (props) { return ({
|
|
12866
13035
|
width: props.width
|
|
12867
13036
|
? props.width
|
|
@@ -12908,7 +13077,7 @@ var CheckBoxList = function (props) {
|
|
|
12908
13077
|
height: height,
|
|
12909
13078
|
line: line,
|
|
12910
13079
|
};
|
|
12911
|
-
var classes = useStyles$
|
|
13080
|
+
var classes = useStyles$o(styleProps);
|
|
12912
13081
|
var _a = React.useState(0), lineHeight = _a[0], setLineHeight = _a[1];
|
|
12913
13082
|
var ref = React.useRef(null);
|
|
12914
13083
|
React.useEffect(function () {
|
|
@@ -12954,7 +13123,7 @@ var CheckBoxList = function (props) {
|
|
|
12954
13123
|
!multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
|
|
12955
13124
|
};
|
|
12956
13125
|
|
|
12957
|
-
var useStyles$
|
|
13126
|
+
var useStyles$p = core.makeStyles(function (theme) { return ({
|
|
12958
13127
|
root: function (props) { return ({
|
|
12959
13128
|
cursor: "pointer",
|
|
12960
13129
|
color: props.color,
|
|
@@ -13087,7 +13256,7 @@ var Link = function (props) {
|
|
|
13087
13256
|
? theme.black.black1000
|
|
13088
13257
|
: theme.black.black1000,
|
|
13089
13258
|
};
|
|
13090
|
-
var classes = useStyles$
|
|
13259
|
+
var classes = useStyles$p(styleProps);
|
|
13091
13260
|
return (React__default.createElement(MaterialLink, __assign({ classes: {
|
|
13092
13261
|
root: classes.root,
|
|
13093
13262
|
focusVisible: classes.focusVisible,
|
|
@@ -13095,7 +13264,7 @@ var Link = function (props) {
|
|
|
13095
13264
|
}, tabIndex: 0 }, other)));
|
|
13096
13265
|
};
|
|
13097
13266
|
|
|
13098
|
-
var useStyles$
|
|
13267
|
+
var useStyles$q = core.makeStyles(function (theme) { return ({
|
|
13099
13268
|
root: function (props) { return ({
|
|
13100
13269
|
boxShadow: theme.boxShadow.xl,
|
|
13101
13270
|
borderRadius: 12,
|
|
@@ -13115,13 +13284,13 @@ var Paper = function (props) {
|
|
|
13115
13284
|
matchSM: matchSM,
|
|
13116
13285
|
matchXS: matchXS,
|
|
13117
13286
|
};
|
|
13118
|
-
var classes = useStyles$
|
|
13287
|
+
var classes = useStyles$q(styleProps);
|
|
13119
13288
|
return (React__default.createElement(Paper$1, __assign({ variant: "outlined", classes: {
|
|
13120
13289
|
root: classes.root,
|
|
13121
13290
|
} }, other)));
|
|
13122
13291
|
};
|
|
13123
13292
|
|
|
13124
|
-
var useStyles$
|
|
13293
|
+
var useStyles$r = core.makeStyles(function (theme) { return ({
|
|
13125
13294
|
root: {
|
|
13126
13295
|
width: 40,
|
|
13127
13296
|
height: 24,
|
|
@@ -13187,7 +13356,7 @@ var useStyles$n = core.makeStyles(function (theme) { return ({
|
|
|
13187
13356
|
var Switch = function (props) {
|
|
13188
13357
|
var disabled = props.disabled, other = __rest(props, ["disabled"]);
|
|
13189
13358
|
var styleProps = { disabled: disabled };
|
|
13190
|
-
var classes = useStyles$
|
|
13359
|
+
var classes = useStyles$r(styleProps);
|
|
13191
13360
|
return (React__default.createElement("div", { className: classes.switchOutBlock, tabIndex: 0 },
|
|
13192
13361
|
React__default.createElement(MaterialSwitch, __assign({ disabled: disabled, tabIndex: 0, disableRipple: true, classes: {
|
|
13193
13362
|
root: classes.root,
|
|
@@ -13696,7 +13865,7 @@ var BreadcrumbItem = function (props) {
|
|
|
13696
13865
|
} })));
|
|
13697
13866
|
};
|
|
13698
13867
|
|
|
13699
|
-
var useStyles$
|
|
13868
|
+
var useStyles$s = core.makeStyles(function (theme) { return ({
|
|
13700
13869
|
root: function (props) { return ({
|
|
13701
13870
|
width: props.width ? props.width : 350,
|
|
13702
13871
|
height: props.height ? props.height : "100%",
|
|
@@ -13721,7 +13890,7 @@ var useStyles$o = core.makeStyles(function (theme) { return ({
|
|
|
13721
13890
|
var Card = function (props) {
|
|
13722
13891
|
var width = props.width, height = props.height, children = props.children, buttons = props.buttons, bodyStyle = props.bodyStyle, loading = props.loading, other = __rest(props, ["width", "height", "children", "buttons", "bodyStyle", "loading"]);
|
|
13723
13892
|
var useStylesProps = { width: width, height: height };
|
|
13724
|
-
var classes = useStyles$
|
|
13893
|
+
var classes = useStyles$s(useStylesProps);
|
|
13725
13894
|
var theme = core.useTheme();
|
|
13726
13895
|
return (React__default.createElement("div", __assign({ className: classes.root }, other),
|
|
13727
13896
|
React__default.createElement("div", { className: classes.body, style: bodyStyle }, !loading ? (children) : (React__default.createElement("div", { style: { width: "100%", height: "100%" } },
|