@yosgo/swap-ui 1.0.135 → 1.0.136
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/Tab/TabPanel.d.ts +2 -1
- package/build/index.esm.js +83 -78
- package/build/index.esm.js.map +1 -1
- package/build/index.js +82 -77
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -104,7 +104,7 @@ var logo_icon = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiI
|
|
|
104
104
|
|
|
105
105
|
var logo_icon_black = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNMjcuMzQ4MiAyMS45MTU0QzI3LjIzOSAyMS4xNzggMjcuMDc1MSAyMC40Njc5IDI2LjkxMTIgMTkuNzMwNUMyNi42MTA4IDE4LjQ0NjggMjYuMjgzIDE3LjE5MDUgMjUuOTAwNyAxNS45NjE0QzI1LjYwMDIgMTQuOTc4MiAyNS4yOTk4IDE0LjAyMjMgMjQuOTk5NCAxMy4wNjY0QzI0Ljc4MDkgMTIuMzgzNiAyNC41MzUxIDExLjY3MzUgMjQuMjg5MyAxMC45OTA3QzIzLjYwNjUgOS4wNTE1MyAyMi44NjkxIDcuMTEyMzggMjIuMTA0MyA1LjIwMDU1QzIxLjgzMTIgNS4zNjQ0MyAyMS41NTgxIDUuNTI4MyAyMS4yODUgNS43MTk0OEMxOC45MDg4IDcuNDQwMTMgMTguMTQ0MSA5Ljg5ODE5IDE4LjE0NDEgMTIuNTIwMUMxOC4xNDQxIDEzLjI1NzYgMTguMTk4NyAxNC4w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zU0IDE0Ljc4NjlDMTguMjI2MiAxNC4wMjIxIDE4LjE3MTYgMTMuMjg0NyAxOC4xNzE2IDEyLjUyQzE4LjE3MTYgOS44OTgwMyAxOC45MzYzIDcuNDY3MjcgMjEuMzEyNCA1LjcxOTMyQzIxLjU1ODIgNS41MjgxMyAyMS44MzEzIDUuMzY0MjYgMjIuMTMxOCA1LjIwMDM5QzIyLjg5NjUgNy4xMTIyMiAyMy42MzM5IDkuMDUxMzYgMjQuMzE2NyAxMC45OTA1QzI0LjU2MjUgMTEuNjczMyAyNC44MDgzIDEyLjM4MzQgMjUuMDI2OCAxMy4wNjYyQzI1LjM1NDYgMTQuMDIyMSAyNS42NTUgMTUuMDA1MyAyNS45MjgxIDE1Ljk2MTNDMjYuMjgzMiAxNy4xOTAzIDI2LjYzODIgMTguNDQ2NiAyNi45Mzg3IDE5LjczMDNDMjcuMTAyNSAyMC40NDA0IDI3LjIzOTEgMjEuMTc3OCAyNy4zNzU3IDIxLjkxNTNDMjcuNTk0MSAyMy40MTc0IDI3LjczMDcgMjQuOTE5NiAyNy42NzYxIDI2LjQ0OVpNMzAuNzYyMyAxNy41NDU0QzMwLjIxNjEgMTguMDM3IDI5LjYxNTIgMTguNDQ2NiAyOC45NTk3IDE4LjgwMTdDMjguNDY4MSAxNi43MjYgMjcuODY3MyAxNC42Nzc2IDI3LjE4NDUgMTIuNjI5MkMyOS4yMDU1IDEyLjI0NjkgMzEuMjUzOSAxMS45MTkxIDMzLjMwMjMgMTEuNjQ2QzMzLjMyOTYgMTMuODU4MiAzMi40Mjg0IDE2LjA3MDUgMzAuNzYyMyAxNy41NDU0WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+';
|
|
106
106
|
|
|
107
|
-
var SWAPLogo = function (_a) {
|
|
107
|
+
var SWAPLogo = React.memo(function (_a) {
|
|
108
108
|
var _b = _a.black, black = _b === void 0 ? false : _b, _c = _a.iconOnly, iconOnly = _c === void 0 ? false : _c, _d = _a.chinese, chinese = _d === void 0 ? false : _d, _e = _a.business, business = _e === void 0 ? false : _e, _f = _a.size, size = _f === void 0 ? "middle" : _f, _g = _a.dark, dark = _g === void 0 ? false : _g, height = _a.height, width = _a.width;
|
|
109
109
|
return (React__default.createElement("span", null,
|
|
110
110
|
React__default.createElement(SWAPLogoWrap, { size: size },
|
|
@@ -134,7 +134,7 @@ var SWAPLogo = function (_a) {
|
|
|
134
134
|
return logo_normal;
|
|
135
135
|
}
|
|
136
136
|
})() }))));
|
|
137
|
-
};
|
|
137
|
+
});
|
|
138
138
|
var SWAPLogoWrap = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n img {\n height: ", ";\n &.business {\n height: ", ";\n }\n }\n"], ["\n display: flex;\n align-items: center;\n img {\n height: ",
|
|
139
139
|
";\n &.business {\n height: ",
|
|
140
140
|
";\n }\n }\n"])), function (_a) {
|
|
@@ -1308,7 +1308,7 @@ var LineShareButton = createShareButton('line', lineLink, function (props) { ret
|
|
|
1308
1308
|
windowHeight: 500,
|
|
1309
1309
|
});
|
|
1310
1310
|
|
|
1311
|
-
var SWAPShare = function (_a) {
|
|
1311
|
+
var SWAPShare = React.memo(function (_a) {
|
|
1312
1312
|
var url = _a.url, _b = _a.size, _c = _a.emailSubject, emailSubject = _c === void 0 ? "" : _c, _d = _a.sharedContent, sharedContent = _d === void 0 ? "" : _d;
|
|
1313
1313
|
var _e = React.useState(""), sharedUrl = _e[0], setSharedUrl = _e[1];
|
|
1314
1314
|
React.useEffect(function () {
|
|
@@ -1366,7 +1366,7 @@ var SWAPShare = function (_a) {
|
|
|
1366
1366
|
React__default.createElement("path", { d: "M28 16L20 21L12 16V14L20 19L28 14V16ZM28 12H12C10.89 12 10 12.89 10 14V26C10 26.5304 10.2107 27.0391 10.5858 27.4142C10.9609 27.7893 11.4696 28 12 28H28C28.5304 28 29.0391 27.7893 29.4142 27.4142C29.7893 27.0391 30 26.5304 30 26V14C30 12.89 29.1 12 28 12Z", fill: "#6F6F6F" })))),
|
|
1367
1367
|
},
|
|
1368
1368
|
].map(function (item, index) { return (React__default.createElement("div", { key: "share_btn_" + index }, item.el)); })));
|
|
1369
|
-
};
|
|
1369
|
+
});
|
|
1370
1370
|
var SWAPShareWrap = styled.div(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n height: 40px;\n position: relative;\n .swap_share_icon {\n cursor: pointer;\n }\n"], ["\n height: 40px;\n position: relative;\n .swap_share_icon {\n cursor: pointer;\n }\n"])));
|
|
1371
1371
|
var templateObject_1$6;
|
|
1372
1372
|
|
|
@@ -2164,7 +2164,7 @@ var Styles = function (_a) {
|
|
|
2164
2164
|
var StylesWrap = styled.div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject([""], [""])));
|
|
2165
2165
|
var templateObject_1$8;
|
|
2166
2166
|
|
|
2167
|
-
var Typography = function (_a) {
|
|
2167
|
+
var Typography = React__default.memo(function (_a) {
|
|
2168
2168
|
var variant = _a.variant, children = _a.children, mode = _a.mode, color = _a.color, style = _a.style;
|
|
2169
2169
|
var theme = core.useTheme();
|
|
2170
2170
|
var useStyles = core.makeStyles({
|
|
@@ -2525,9 +2525,9 @@ var Typography = function (_a) {
|
|
|
2525
2525
|
});
|
|
2526
2526
|
var classes = useStyles();
|
|
2527
2527
|
return (React__default.createElement(MaterialTypography, { className: classes.root, style: style }, children));
|
|
2528
|
-
};
|
|
2528
|
+
});
|
|
2529
2529
|
|
|
2530
|
-
var Container = function (_a) {
|
|
2530
|
+
var Container = React.memo(function (_a) {
|
|
2531
2531
|
var children = _a.children, style = _a.style, maxWidth = _a.maxWidth, padding = _a.padding;
|
|
2532
2532
|
var XXS = useBreakpoints("xxs");
|
|
2533
2533
|
var XS = useBreakpoints("xs");
|
|
@@ -2582,7 +2582,7 @@ var Container = function (_a) {
|
|
|
2582
2582
|
});
|
|
2583
2583
|
var classes = useStyles();
|
|
2584
2584
|
return (React__default.createElement(MaterialContainer, { className: classes.root, style: style }, children));
|
|
2585
|
-
};
|
|
2585
|
+
});
|
|
2586
2586
|
|
|
2587
2587
|
function useBreakpoints(breakpoints) {
|
|
2588
2588
|
var matches = core.useMediaQuery("(min-width:" + (breakpoints === "xxs"
|
|
@@ -2667,7 +2667,7 @@ var useStyles = core.makeStyles(function (theme) { return ({
|
|
|
2667
2667
|
},
|
|
2668
2668
|
}); },
|
|
2669
2669
|
}); });
|
|
2670
|
-
var CheckBox = function (props) {
|
|
2670
|
+
var CheckBox = React.memo(function (props) {
|
|
2671
2671
|
var disableHover = props.disableHover, label = props.label, labelPlacement = props.labelPlacement, checkedIcon = props.checkedIcon, icon = props.icon, other = __rest(props, ["disableHover", "label", "labelPlacement", "checkedIcon", "icon"]);
|
|
2672
2672
|
var styleProps = {
|
|
2673
2673
|
disableHover: disableHover,
|
|
@@ -2675,7 +2675,7 @@ var CheckBox = function (props) {
|
|
|
2675
2675
|
var classes = useStyles(styleProps);
|
|
2676
2676
|
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" },
|
|
2677
2677
|
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) })) }));
|
|
2678
|
-
};
|
|
2678
|
+
});
|
|
2679
2679
|
|
|
2680
2680
|
var useStyles$1 = core.makeStyles(function (theme) { return ({
|
|
2681
2681
|
root: function (props) { return ({
|
|
@@ -2741,7 +2741,7 @@ var useStyles$1 = core.makeStyles(function (theme) { return ({
|
|
|
2741
2741
|
},
|
|
2742
2742
|
}); },
|
|
2743
2743
|
}); });
|
|
2744
|
-
var RadioButton = function (props) {
|
|
2744
|
+
var RadioButton = React.memo(function (props) {
|
|
2745
2745
|
var label = props.label, labelPlacement = props.labelPlacement, disableHover = props.disableHover, other = __rest(props, ["label", "labelPlacement", "disableHover"]);
|
|
2746
2746
|
var styleProps = {
|
|
2747
2747
|
disableHover: disableHover,
|
|
@@ -2750,7 +2750,7 @@ var RadioButton = function (props) {
|
|
|
2750
2750
|
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 },
|
|
2751
2751
|
React__default.createElement("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2752
2752
|
React__default.createElement("circle", { cx: "5", cy: "5", r: "5", fill: "white" }))), icon: React__default.createElement("span", { className: classes.icon }) }, other)) }));
|
|
2753
|
-
};
|
|
2753
|
+
});
|
|
2754
2754
|
|
|
2755
2755
|
var useStyles$2 = core.makeStyles(function (theme) { return ({
|
|
2756
2756
|
root: {
|
|
@@ -2844,7 +2844,7 @@ var useStyles$2 = core.makeStyles(function (theme) { return ({
|
|
|
2844
2844
|
"&.Mui-error": { color: theme.black.black800 },
|
|
2845
2845
|
},
|
|
2846
2846
|
}); });
|
|
2847
|
-
var TextField = function (props) {
|
|
2847
|
+
var TextField = React.memo(function (props) {
|
|
2848
2848
|
var children = props.children, width = props.width, height = props.height, InputProps = props.InputProps, InputLabelProps = props.InputLabelProps, SelectProps = props.SelectProps, select = props.select, fullWidth = props.fullWidth, other = __rest(props, ["children", "width", "height", "InputProps", "InputLabelProps", "SelectProps", "select", "fullWidth"]);
|
|
2849
2849
|
var styleProps = {
|
|
2850
2850
|
width: width,
|
|
@@ -2866,9 +2866,9 @@ var TextField = function (props) {
|
|
|
2866
2866
|
horizontal: -16,
|
|
2867
2867
|
},
|
|
2868
2868
|
} }, SelectProps) }), children));
|
|
2869
|
-
};
|
|
2869
|
+
});
|
|
2870
2870
|
|
|
2871
|
-
var Tab = function (props) {
|
|
2871
|
+
var Tab = React.memo(function (props) {
|
|
2872
2872
|
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"]);
|
|
2873
2873
|
var useStyles = core.makeStyles(function (theme) { return ({
|
|
2874
2874
|
root: {
|
|
@@ -2918,7 +2918,7 @@ var Tab = function (props) {
|
|
|
2918
2918
|
}, label: React__default.createElement("div", { className: classes.indicatorRoot },
|
|
2919
2919
|
label,
|
|
2920
2920
|
selected ? React__default.createElement("div", { className: classes.selected_indicator }) : null), disableRipple: true })));
|
|
2921
|
-
};
|
|
2921
|
+
});
|
|
2922
2922
|
|
|
2923
2923
|
var useStyles$3 = core.makeStyles({
|
|
2924
2924
|
root: {},
|
|
@@ -2926,14 +2926,14 @@ var useStyles$3 = core.makeStyles({
|
|
|
2926
2926
|
backgroundColor: "transparent",
|
|
2927
2927
|
},
|
|
2928
2928
|
});
|
|
2929
|
-
var Tabs = function (props) {
|
|
2929
|
+
var Tabs = React.memo(function (props) {
|
|
2930
2930
|
var children = props.children, other = __rest(props, ["children"]);
|
|
2931
2931
|
var classes = useStyles$3();
|
|
2932
2932
|
return (React__default.createElement(MaterialTabs, __assign({}, other, { classes: {
|
|
2933
2933
|
root: classes.root,
|
|
2934
2934
|
indicator: classes.indicatorRoot,
|
|
2935
2935
|
} }), children));
|
|
2936
|
-
};
|
|
2936
|
+
});
|
|
2937
2937
|
|
|
2938
2938
|
var useStyles$4 = core.makeStyles(function (theme) { return ({
|
|
2939
2939
|
root: function (props) { return ({
|
|
@@ -2959,7 +2959,7 @@ var useStyles$4 = core.makeStyles(function (theme) { return ({
|
|
|
2959
2959
|
opacity: 1,
|
|
2960
2960
|
},
|
|
2961
2961
|
}); });
|
|
2962
|
-
var SegmentedTab = function (props) {
|
|
2962
|
+
var SegmentedTab = React.memo(function (props) {
|
|
2963
2963
|
var width = props.width, height = props.height, fontSize = props.fontSize, flex = props.flex, other = __rest(props, ["width", "height", "fontSize", "flex"]);
|
|
2964
2964
|
var styleProps = {
|
|
2965
2965
|
width: width,
|
|
@@ -2969,7 +2969,7 @@ var SegmentedTab = function (props) {
|
|
|
2969
2969
|
};
|
|
2970
2970
|
var classes = useStyles$4(styleProps);
|
|
2971
2971
|
return (React__default.createElement(MaterialTab, __assign({}, other, { disableRipple: true, classes: { textColorInherit: classes.text }, className: classes.root })));
|
|
2972
|
-
};
|
|
2972
|
+
});
|
|
2973
2973
|
|
|
2974
2974
|
var smoothscroll = createCommonjsModule(function (module, exports) {
|
|
2975
2975
|
/* smoothscroll v0.4.4 - 2019 - Dustan Kasten, Jeremias Menichelli - MIT License */
|
|
@@ -3433,7 +3433,7 @@ var useStyles$5 = core.makeStyles(function (theme) { return ({
|
|
|
3433
3433
|
},
|
|
3434
3434
|
},
|
|
3435
3435
|
}); });
|
|
3436
|
-
var SegmentedTabs = function (_a) {
|
|
3436
|
+
var SegmentedTabs = React.memo(function (_a) {
|
|
3437
3437
|
var children = _a.children, width = _a.width, slide = _a.slide, other = __rest(_a, ["children", "width", "slide"]);
|
|
3438
3438
|
var styleProps = {
|
|
3439
3439
|
width: width,
|
|
@@ -3465,12 +3465,13 @@ var SegmentedTabs = function (_a) {
|
|
|
3465
3465
|
indicator: classes.indicator,
|
|
3466
3466
|
scrollButtons: classes.scrollButtons,
|
|
3467
3467
|
}, indicatorColor: "primary", ref: tabsRef }), children));
|
|
3468
|
-
};
|
|
3468
|
+
});
|
|
3469
3469
|
|
|
3470
3470
|
function TabPanel(props) {
|
|
3471
3471
|
var children = props.children, value = props.value, index = props.index, other = __rest(props, ["children", "value", "index"]);
|
|
3472
3472
|
return (React__default.createElement("div", __assign({ role: "tabpanel", hidden: value !== index, id: "scrollable-auto-tabpanel-" + index, "aria-labelledby": "scrollable-auto-tab-" + index }, other), value === index && React__default.createElement(core.Box, null, children)));
|
|
3473
|
-
}
|
|
3473
|
+
}
|
|
3474
|
+
var TabPanel$1 = React.memo(TabPanel);
|
|
3474
3475
|
|
|
3475
3476
|
var useOutlinedInputStyles = core.makeStyles(function (theme) { return ({
|
|
3476
3477
|
root: {
|
|
@@ -3548,7 +3549,7 @@ var useStyles$6 = core.makeStyles(function (theme) { return ({
|
|
|
3548
3549
|
marginTop: 8,
|
|
3549
3550
|
},
|
|
3550
3551
|
}); });
|
|
3551
|
-
var Select = function (_a) {
|
|
3552
|
+
var Select = React.memo(function (_a) {
|
|
3552
3553
|
var children = _a.children, style = _a.style, value = _a.value, onChange = _a.onChange, defaultValue = _a.defaultValue, error = _a.error, disabled = _a.disabled, type = _a.type, autoFocus = _a.autoFocus, placeholder = _a.placeholder, fullWidth = _a.fullWidth, required = _a.required, InputProps = _a.InputProps, helperText = _a.helperText, width = _a.width, height = _a.height, horizontal = _a.horizontal, vertical = _a.vertical, open = _a.open, placeholderStyle = _a.placeholderStyle, selectStyle = _a.selectStyle, helperTextStyle = _a.helperTextStyle, onClick = _a.onClick, transformOrigin = _a.transformOrigin, paddingTop = _a.paddingTop, paddingLeft = _a.paddingLeft, dropdown = _a.dropdown;
|
|
3553
3554
|
var outlinedInputClasses = useOutlinedInputStyles();
|
|
3554
3555
|
var styleProps = {
|
|
@@ -3575,12 +3576,12 @@ var Select = function (_a) {
|
|
|
3575
3576
|
getContentAnchorEl: null,
|
|
3576
3577
|
}, onClick: onClick }, children),
|
|
3577
3578
|
React__default.createElement(core.FormHelperText, { style: helperTextStyle }, helperText)));
|
|
3578
|
-
};
|
|
3579
|
+
});
|
|
3579
3580
|
|
|
3580
|
-
var Menu = function (props) {
|
|
3581
|
+
var Menu = React.memo(function (props) {
|
|
3581
3582
|
var children = props.children, open = props.open, other = __rest(props, ["children", "open"]);
|
|
3582
3583
|
return (React__default.createElement(MaterialMenu, __assign({ open: open }, other), children));
|
|
3583
|
-
};
|
|
3584
|
+
});
|
|
3584
3585
|
|
|
3585
3586
|
var useStyles$7 = core.makeStyles(function (theme) { return ({
|
|
3586
3587
|
root: function (props) { return ({
|
|
@@ -3611,7 +3612,7 @@ var useStyles$7 = core.makeStyles(function (theme) { return ({
|
|
|
3611
3612
|
},
|
|
3612
3613
|
}); },
|
|
3613
3614
|
}); });
|
|
3614
|
-
var MenuItem = React__default.forwardRef(function (props, ref) {
|
|
3615
|
+
var MenuItem = React.memo(React__default.forwardRef(function (props, ref) {
|
|
3615
3616
|
var children = props.children, width = props.width, hoverBackgroundColor = props.hoverBackgroundColor, hoverFontColor = props.hoverFontColor, hoverIconColor = props.hoverIconColor, height = props.height, rippleColor = props.rippleColor, iconChildren = props.iconChildren, other = __rest(props, ["children", "width", "hoverBackgroundColor", "hoverFontColor", "hoverIconColor", "height", "rippleColor", "iconChildren"]);
|
|
3616
3617
|
var styleProps = {
|
|
3617
3618
|
width: width,
|
|
@@ -3625,9 +3626,9 @@ var MenuItem = React__default.forwardRef(function (props, ref) {
|
|
|
3625
3626
|
return (React__default.createElement(MaterialMenuItem, __assign({ className: classes.root }, other),
|
|
3626
3627
|
children,
|
|
3627
3628
|
React__default.createElement(core.ListItemIcon, { style: { justifyContent: "flex-end" } }, iconChildren)));
|
|
3628
|
-
});
|
|
3629
|
+
}));
|
|
3629
3630
|
|
|
3630
|
-
var Button = function (props) {
|
|
3631
|
+
var Button = React__default.memo(function (props) {
|
|
3631
3632
|
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"]);
|
|
3632
3633
|
var theme = core.useTheme();
|
|
3633
3634
|
var useStyles = core.makeStyles(function (theme) { return ({
|
|
@@ -3836,7 +3837,7 @@ var Button = function (props) {
|
|
|
3836
3837
|
? theme.primary.primary800
|
|
3837
3838
|
: theme.black.white,
|
|
3838
3839
|
} }))) : (React__default.createElement("div", { style: { whiteSpace: "nowrap" } }, children))));
|
|
3839
|
-
};
|
|
3840
|
+
});
|
|
3840
3841
|
|
|
3841
3842
|
var useStyles$8 = core.makeStyles(function () { return ({
|
|
3842
3843
|
root: function (props) { return ({
|
|
@@ -3853,7 +3854,7 @@ var useStyles$8 = core.makeStyles(function () { return ({
|
|
|
3853
3854
|
},
|
|
3854
3855
|
}); },
|
|
3855
3856
|
}); });
|
|
3856
|
-
var IconButton = function (props) {
|
|
3857
|
+
var IconButton = React.memo(function (props) {
|
|
3857
3858
|
var hoverColor = props.hoverColor, hoverIconColor = props.hoverIconColor, width = props.width, height = props.height, other = __rest(props, ["hoverColor", "hoverIconColor", "width", "height"]);
|
|
3858
3859
|
var theme = core.useTheme();
|
|
3859
3860
|
var styleProps = {
|
|
@@ -4088,7 +4089,7 @@ var IconButton = function (props) {
|
|
|
4088
4089
|
};
|
|
4089
4090
|
var classes = useStyles$8(styleProps);
|
|
4090
4091
|
return React__default.createElement(IconButton$1, __assign({ className: classes.root }, other));
|
|
4091
|
-
};
|
|
4092
|
+
});
|
|
4092
4093
|
|
|
4093
4094
|
function TransitionLeft(props) {
|
|
4094
4095
|
return React__default.createElement(core.Slide, __assign({}, props, { direction: "left" }));
|
|
@@ -4163,7 +4164,7 @@ var useStyles$9 = core.makeStyles(function (theme) { return ({
|
|
|
4163
4164
|
color: "#ffffff",
|
|
4164
4165
|
},
|
|
4165
4166
|
}); });
|
|
4166
|
-
var Snackbar = function (props) {
|
|
4167
|
+
var Snackbar = React.memo(function (props) {
|
|
4167
4168
|
var message = props.message, transitionDirection = props.transitionDirection, transitionDuration = props.transitionDuration, width = props.width, height = props.height, variant = props.variant, action = props.action, revertButton = props.revertButton, closeIcon = props.closeIcon, icon = props.icon, checkIcon = props.checkIcon, errorIcon = props.errorIcon, other = __rest(props, ["message", "transitionDirection", "transitionDuration", "width", "height", "variant", "action", "revertButton", "closeIcon", "icon", "checkIcon", "errorIcon"]);
|
|
4168
4169
|
var styleProps = {
|
|
4169
4170
|
width: width,
|
|
@@ -4202,7 +4203,7 @@ var Snackbar = function (props) {
|
|
|
4202
4203
|
: transitionDirection === "down"
|
|
4203
4204
|
? TransitionDown
|
|
4204
4205
|
: Transition, transitionDuration: transitionDuration })));
|
|
4205
|
-
};
|
|
4206
|
+
});
|
|
4206
4207
|
var icon_close = (React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
4207
4208
|
React__default.createElement("path", { d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z", fill: "white" })));
|
|
4208
4209
|
var icon_checked = (React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -7198,7 +7199,7 @@ var useStyles$a = core.makeStyles(function (theme) { return ({
|
|
|
7198
7199
|
color: props.backgroundColor,
|
|
7199
7200
|
}); },
|
|
7200
7201
|
}); });
|
|
7201
|
-
var Tooltip = function (props) {
|
|
7202
|
+
var Tooltip = React.memo(function (props) {
|
|
7202
7203
|
var theme = core.useTheme();
|
|
7203
7204
|
var arrow = props.arrow, margin = props.margin, marginTop = props.marginTop, marginBottom = props.marginBottom, marginRight = props.marginRight, marginLeft = props.marginLeft, dark = props.dark, light = props.light, children = props.children, width = props.width, childrenStyle = props.childrenStyle, other = __rest(props, ["arrow", "margin", "marginTop", "marginBottom", "marginRight", "marginLeft", "dark", "light", "children", "width", "childrenStyle"]);
|
|
7204
7205
|
var styleProps = {
|
|
@@ -7231,7 +7232,7 @@ var Tooltip = function (props) {
|
|
|
7231
7232
|
var classes = useStyles$a(styleProps);
|
|
7232
7233
|
return (React__default.createElement(MaterialTooltip, __assign({ classes: { tooltip: classes.root, arrow: classes.arrow } }, other, { arrow: arrow }),
|
|
7233
7234
|
React__default.createElement("div", { style: __assign({ width: "fit-content", height: "fit-content", display: "flex", alignItems: "center", justifyContent: "center" }, childrenStyle) }, children)));
|
|
7234
|
-
};
|
|
7235
|
+
});
|
|
7235
7236
|
|
|
7236
7237
|
var ModalTransitionEffect = React__default.forwardRef(function ModalTransitionEffect(props, ref) {
|
|
7237
7238
|
var open = props.in, slide = props.slide, children = props.children, onEnter = props.onEnter, onExited = props.onExited, style = props.style, other = __rest(props, ["in", "slide", "children", "onEnter", "onExited", "style"]);
|
|
@@ -7255,7 +7256,7 @@ var ModalTransitionEffect = React__default.forwardRef(function ModalTransitionEf
|
|
|
7255
7256
|
});
|
|
7256
7257
|
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))));
|
|
7257
7258
|
});
|
|
7258
|
-
var Modal = React__default.forwardRef(function (props, ref) {
|
|
7259
|
+
var Modal = React.memo(React__default.forwardRef(function (props, ref) {
|
|
7259
7260
|
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;
|
|
7260
7261
|
var _a = React.useState(0), clientHeight = _a[0], setClientHeight = _a[1];
|
|
7261
7262
|
var _b = React.useState(0), scorllbarWidth = _b[0], setScorllbarWidth = _b[1];
|
|
@@ -7659,7 +7660,7 @@ var Modal = React__default.forwardRef(function (props, ref) {
|
|
|
7659
7660
|
} })) : null,
|
|
7660
7661
|
headChildren ? (headChildren) : (React__default.createElement("div", { className: classes.title },
|
|
7661
7662
|
icon ? icon : null,
|
|
7662
|
-
checked ? React__default.createElement(CheckCircleIcon, { className: classes.icon }) : null,
|
|
7663
|
+
checked ? (React__default.createElement(CheckCircleIcon, { className: classes.icon })) : null,
|
|
7663
7664
|
failed ? React__default.createElement(WarningIcon, { className: classes.icon }) : null,
|
|
7664
7665
|
React__default.createElement("div", null,
|
|
7665
7666
|
React__default.createElement(Typography, { variant: !mobile ? "h6" : "title" }, title),
|
|
@@ -7729,12 +7730,14 @@ var Modal = React__default.forwardRef(function (props, ref) {
|
|
|
7729
7730
|
? secondaryButton.variant
|
|
7730
7731
|
: "secondary", size: "small", onClick: secondaryButton.onClick, disabled: secondaryButton.disabled, loading: secondaryButton.loading, style: secondaryButton.style }, secondaryButton.title))) : null),
|
|
7731
7732
|
React__default.createElement(core.Box, { width: "100%", marginBottom: footerDisplayColumn ? 1 : 0 }, primaryButton ? (primaryButton.tooltip ? (React__default.createElement(Tooltip, __assign({}, primaryButton.tooltip),
|
|
7732
|
-
React__default.createElement(Button, { fullWidth: buttonFullWidth ||
|
|
7733
|
+
React__default.createElement(Button, { fullWidth: buttonFullWidth ||
|
|
7734
|
+
footerDisplayColumn ||
|
|
7735
|
+
mobile, variant: primaryButton.variant
|
|
7733
7736
|
? primaryButton.variant
|
|
7734
7737
|
: "primary", size: "small", onClick: primaryButton.onClick, disabled: primaryButton.disabled, loading: primaryButton.loading, style: primaryButton.style }, primaryButton.title))) : (React__default.createElement(Button, { fullWidth: buttonFullWidth || footerDisplayColumn || mobile, variant: primaryButton.variant
|
|
7735
7738
|
? primaryButton.variant
|
|
7736
7739
|
: "primary", size: "small", onClick: primaryButton.onClick, disabled: primaryButton.disabled, loading: primaryButton.loading, style: primaryButton.style }, primaryButton.title))) : null))) : null)))))));
|
|
7737
|
-
});
|
|
7740
|
+
}));
|
|
7738
7741
|
|
|
7739
7742
|
var useStyles$b = core.makeStyles(function () { return ({
|
|
7740
7743
|
root: function (props) { return ({
|
|
@@ -7753,7 +7756,7 @@ var useStyles$b = core.makeStyles(function () { return ({
|
|
|
7753
7756
|
marginRight: 8,
|
|
7754
7757
|
},
|
|
7755
7758
|
}); });
|
|
7756
|
-
var Banner = function (props) {
|
|
7759
|
+
var Banner = React.memo(function (props) {
|
|
7757
7760
|
var _a = React.useState(false), alignStart = _a[0], setAlignStart = _a[1];
|
|
7758
7761
|
var theme = core.useTheme();
|
|
7759
7762
|
var icon = props.icon, variant = props.variant, width = props.width, height = props.height, mobile = props.mobile, children = props.children, other = __rest(props, ["icon", "variant", "width", "height", "mobile", "children"]);
|
|
@@ -7808,7 +7811,7 @@ var Banner = function (props) {
|
|
|
7808
7811
|
React__default.createElement("path", { d: "M13 14H11V9H13V14ZM13 18H11V16H13V18ZM1 21H23L12 2L1 21Z", fill: "#E5640C" }))) : (React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
7809
7812
|
React__default.createElement("path", { d: "M13 9H11V7H13V9ZM13 17H11V11H13V17ZM12 2C10.6868 2 9.38642 2.25866 8.17317 2.7612C6.95991 3.26375 5.85752 4.00035 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2Z", fill: theme.primary.primary400 })))),
|
|
7810
7813
|
React__default.createElement(Typography, { variant: "caption2" }, children)));
|
|
7811
|
-
};
|
|
7814
|
+
});
|
|
7812
7815
|
|
|
7813
7816
|
var useStyles$c = core.makeStyles(function () { return ({
|
|
7814
7817
|
root: function (props) { return ({
|
|
@@ -7827,7 +7830,7 @@ var useStyles$c = core.makeStyles(function () { return ({
|
|
|
7827
7830
|
color: props.color,
|
|
7828
7831
|
}); },
|
|
7829
7832
|
}); });
|
|
7830
|
-
var Chip = function (props) {
|
|
7833
|
+
var Chip = React.memo(function (props) {
|
|
7831
7834
|
var theme = core.useTheme();
|
|
7832
7835
|
var variant = props.variant, width = props.width, height = props.height, label = props.label, icon = props.icon, outlined = props.outlined, contained = props.contained, other = __rest(props, ["variant", "width", "height", "label", "icon", "outlined", "contained"]);
|
|
7833
7836
|
var styleProps = {
|
|
@@ -7870,11 +7873,11 @@ var Chip = function (props) {
|
|
|
7870
7873
|
return (React__default.createElement("div", __assign({ className: classes.root }, other),
|
|
7871
7874
|
React__default.createElement("span", { style: { marginRight: variant === "success" ? 4 : 0 } }, label),
|
|
7872
7875
|
variant === "success" && !icon ? icon_success : icon));
|
|
7873
|
-
};
|
|
7876
|
+
});
|
|
7874
7877
|
var icon_success = (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
7875
7878
|
React__default.createElement("path", { d: "M14 4.66666L6 12.6667L2.33333 9L3.27333 8.06L6 10.78L13.06 3.72666L14 4.66666Z", fill: "#00821E" })));
|
|
7876
7879
|
|
|
7877
|
-
var CircularProgress = function (props) {
|
|
7880
|
+
var CircularProgress = React.memo(function (props) {
|
|
7878
7881
|
var theme = core.useTheme();
|
|
7879
7882
|
var dark = props.dark, size = props.size, thickness = props.thickness;
|
|
7880
7883
|
return (React__default.createElement("div", { style: {
|
|
@@ -7895,7 +7898,7 @@ var CircularProgress = function (props) {
|
|
|
7895
7898
|
top: -0,
|
|
7896
7899
|
color: dark ? theme.black.white : theme.primary.primary800,
|
|
7897
7900
|
} })));
|
|
7898
|
-
};
|
|
7901
|
+
});
|
|
7899
7902
|
|
|
7900
7903
|
function _extends() {
|
|
7901
7904
|
_extends = Object.assign || function (target) {
|
|
@@ -12059,7 +12062,7 @@ var useStyles$d = core.makeStyles(function (theme) { return ({
|
|
|
12059
12062
|
justifyContent: "center",
|
|
12060
12063
|
},
|
|
12061
12064
|
}); });
|
|
12062
|
-
var Pagination$1 = function (props) {
|
|
12065
|
+
var Pagination$1 = React.memo(function (props) {
|
|
12063
12066
|
// const theme = useTheme();
|
|
12064
12067
|
var other = __rest(props, []);
|
|
12065
12068
|
var styleProps = {};
|
|
@@ -12070,7 +12073,7 @@ var Pagination$1 = function (props) {
|
|
|
12070
12073
|
selected: classes.selected,
|
|
12071
12074
|
ellipsis: classes.ellipsis,
|
|
12072
12075
|
} }))); } })));
|
|
12073
|
-
};
|
|
12076
|
+
});
|
|
12074
12077
|
|
|
12075
12078
|
var useStyles$e = core.makeStyles(function (theme) { return ({
|
|
12076
12079
|
root: function (props) { return ({
|
|
@@ -12090,7 +12093,7 @@ var useStyles$e = core.makeStyles(function (theme) { return ({
|
|
|
12090
12093
|
borderRadius: "50%",
|
|
12091
12094
|
}); },
|
|
12092
12095
|
}); });
|
|
12093
|
-
var Progress = function (props) {
|
|
12096
|
+
var Progress = React.memo(function (props) {
|
|
12094
12097
|
var theme = core.useTheme();
|
|
12095
12098
|
var
|
|
12096
12099
|
// onClick,
|
|
@@ -12147,7 +12150,7 @@ var Progress = function (props) {
|
|
|
12147
12150
|
} })),
|
|
12148
12151
|
React__default.createElement(Typography, { variant: "caption1", color: i + 1 === step ? "black1000" : "black700", style: { marginTop: 8 } }, label ? label[i] : null)));
|
|
12149
12152
|
})));
|
|
12150
|
-
};
|
|
12153
|
+
});
|
|
12151
12154
|
|
|
12152
12155
|
var useStyles$f = core.makeStyles(function (theme) { return ({
|
|
12153
12156
|
popper: function (props) { return ({
|
|
@@ -12328,7 +12331,7 @@ var AutoComplete = function (props) {
|
|
|
12328
12331
|
} })))));
|
|
12329
12332
|
};
|
|
12330
12333
|
|
|
12331
|
-
var TaxTextField = function (_a) {
|
|
12334
|
+
var TaxTextField = React.memo(function (_a) {
|
|
12332
12335
|
var onChange = _a.onChange, codeValue = _a.codeValue, domainValue = _a.domainValue, domainCodeValue = _a.domainCodeValue, codeError = _a.codeError, codeHelperText = _a.codeHelperText, domainError = _a.domainError, domainHelperText = _a.domainHelperText, codeOnClick = _a.codeOnClick, domainOnClick = _a.domainOnClick, mobile = _a.mobile, codeFocused = _a.codeFocused, domainFocused = _a.domainFocused;
|
|
12333
12336
|
var _b = React.useState(""), modalIncome = _b[0], setModalIncome = _b[1];
|
|
12334
12337
|
var _c = React.useState(""), modalExpense = _c[0], setModalExpense = _c[1];
|
|
@@ -12404,7 +12407,9 @@ var TaxTextField = function (_a) {
|
|
|
12404
12407
|
display: "flex",
|
|
12405
12408
|
justifyContent: "space-between",
|
|
12406
12409
|
flexWrap: "nowrap",
|
|
12407
|
-
color: modalIncome === option.code
|
|
12410
|
+
color: modalIncome === option.code
|
|
12411
|
+
? theme.primary.primary400
|
|
12412
|
+
: null,
|
|
12408
12413
|
}, disabled: modalIncome === option.code, iconChildren: modalIncome === option.code ? (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
12409
12414
|
React__default.createElement("path", { d: "M17.4998 5.83345L7.49984 15.8334L2.9165 11.2501L4.0915 10.0751L7.49984 13.4751L16.3248 4.65845L17.4998 5.83345Z", fill: "#4862CC" }))) : null },
|
|
12410
12415
|
option.code,
|
|
@@ -12469,7 +12474,7 @@ var TaxTextField = function (_a) {
|
|
|
12469
12474
|
return null;
|
|
12470
12475
|
}
|
|
12471
12476
|
})()));
|
|
12472
|
-
};
|
|
12477
|
+
});
|
|
12473
12478
|
var SWAPIncomeTypes$1 = [
|
|
12474
12479
|
{
|
|
12475
12480
|
code: "9A",
|
|
@@ -12673,12 +12678,12 @@ var useStyles$g = core.makeStyles(function (theme) { return ({
|
|
|
12673
12678
|
transform: "unset",
|
|
12674
12679
|
}); },
|
|
12675
12680
|
}); });
|
|
12676
|
-
var Skeleton$1 = function (props) {
|
|
12681
|
+
var Skeleton$1 = React.memo(function (props) {
|
|
12677
12682
|
var other = __rest(props, []);
|
|
12678
12683
|
var styleProps = {};
|
|
12679
12684
|
var classes = useStyles$g(styleProps);
|
|
12680
12685
|
return React__default.createElement(MaterialSkeleton, __assign({ classes: { root: classes.root } }, other));
|
|
12681
|
-
};
|
|
12686
|
+
});
|
|
12682
12687
|
|
|
12683
12688
|
var useOutlinedInputStyles$1 = core.makeStyles(function (theme) { return ({
|
|
12684
12689
|
root: {
|
|
@@ -12742,7 +12747,7 @@ var useStyles$h = core.makeStyles(function (theme) { return ({
|
|
|
12742
12747
|
marginTop: 8,
|
|
12743
12748
|
},
|
|
12744
12749
|
}); });
|
|
12745
|
-
var Dropdown = function (props) {
|
|
12750
|
+
var Dropdown = React.memo(function (props) {
|
|
12746
12751
|
var children = props.children, formControlStyle = props.formControlStyle, inputProps = props.inputProps, MenuProps = props.MenuProps, helperText = props.helperText, width = props.width, height = props.height, helperTextStyle = props.helperTextStyle, other = __rest(props, ["children", "formControlStyle", "inputProps", "MenuProps", "helperText", "width", "height", "helperTextStyle"]);
|
|
12747
12752
|
var styleProps = {
|
|
12748
12753
|
width: width,
|
|
@@ -12755,7 +12760,7 @@ var Dropdown = function (props) {
|
|
|
12755
12760
|
icon: classes.icon,
|
|
12756
12761
|
}, input: React__default.createElement(core.OutlinedInput, { classes: outlinedInputClasses }), inputProps: __assign({ classes: { root: classes.inputRoot } }, inputProps), MenuProps: __assign({ classes: { paper: classes.menuRoot }, getContentAnchorEl: null }, MenuProps) }), children),
|
|
12757
12762
|
React__default.createElement(core.FormHelperText, { style: helperTextStyle }, helperText)));
|
|
12758
|
-
};
|
|
12763
|
+
});
|
|
12759
12764
|
|
|
12760
12765
|
var useStyles$i = core.makeStyles(function (theme) { return ({
|
|
12761
12766
|
root: function (props) { return ({
|
|
@@ -12795,7 +12800,7 @@ var useStyles$i = core.makeStyles(function (theme) { return ({
|
|
|
12795
12800
|
},
|
|
12796
12801
|
}); },
|
|
12797
12802
|
}); });
|
|
12798
|
-
var RadioList = function (props) {
|
|
12803
|
+
var RadioList = React.memo(function (props) {
|
|
12799
12804
|
var width = props.width, height = props.height, title = props.title, subtitle = props.subtitle, multiline = props.multiline, checked = props.checked, line = props.line, other = __rest(props, ["width", "height", "title", "subtitle", "multiline", "checked", "line"]);
|
|
12800
12805
|
var styleProps = {
|
|
12801
12806
|
checked: checked,
|
|
@@ -12848,7 +12853,7 @@ var RadioList = function (props) {
|
|
|
12848
12853
|
React__default.createElement(Typography, { variant: "title" }, title),
|
|
12849
12854
|
multiline ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null))),
|
|
12850
12855
|
!multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
|
|
12851
|
-
};
|
|
12856
|
+
});
|
|
12852
12857
|
|
|
12853
12858
|
var useStyles$j = core.makeStyles(function (theme) { return ({
|
|
12854
12859
|
root: function (props) { return ({
|
|
@@ -12888,7 +12893,7 @@ var useStyles$j = core.makeStyles(function (theme) { return ({
|
|
|
12888
12893
|
},
|
|
12889
12894
|
}); },
|
|
12890
12895
|
}); });
|
|
12891
|
-
var CheckBoxList = function (props) {
|
|
12896
|
+
var CheckBoxList = React.memo(function (props) {
|
|
12892
12897
|
var width = props.width, height = props.height, title = props.title, subtitle = props.subtitle, multiline = props.multiline, checked = props.checked, line = props.line, other = __rest(props, ["width", "height", "title", "subtitle", "multiline", "checked", "line"]);
|
|
12893
12898
|
var styleProps = {
|
|
12894
12899
|
checked: checked,
|
|
@@ -12941,7 +12946,7 @@ var CheckBoxList = function (props) {
|
|
|
12941
12946
|
React__default.createElement(Typography, { variant: "title" }, title),
|
|
12942
12947
|
multiline ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null))),
|
|
12943
12948
|
!multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
|
|
12944
|
-
};
|
|
12949
|
+
});
|
|
12945
12950
|
|
|
12946
12951
|
var useStyles$k = core.makeStyles(function (theme) { return ({
|
|
12947
12952
|
root: function (props) { return ({
|
|
@@ -12960,7 +12965,7 @@ var useStyles$k = core.makeStyles(function (theme) { return ({
|
|
|
12960
12965
|
border: "1px solid " + theme.primary.primary400,
|
|
12961
12966
|
},
|
|
12962
12967
|
}); });
|
|
12963
|
-
var Link = function (props) {
|
|
12968
|
+
var Link = React.memo(function (props) {
|
|
12964
12969
|
var color = props.color, other = __rest(props, ["color"]);
|
|
12965
12970
|
var theme = core.useTheme();
|
|
12966
12971
|
var styleProps = {
|
|
@@ -13082,7 +13087,7 @@ var Link = function (props) {
|
|
|
13082
13087
|
focusVisible: classes.focusVisible,
|
|
13083
13088
|
underlineHover: classes.underlineHover,
|
|
13084
13089
|
}, tabIndex: 0 }, other)));
|
|
13085
|
-
};
|
|
13090
|
+
});
|
|
13086
13091
|
|
|
13087
13092
|
var useStyles$l = core.makeStyles(function (theme) { return ({
|
|
13088
13093
|
root: function (props) { return ({
|
|
@@ -13094,7 +13099,7 @@ var useStyles$l = core.makeStyles(function (theme) { return ({
|
|
|
13094
13099
|
padding: props.matchSM ? 40 : props.matchXS ? 24 : 16,
|
|
13095
13100
|
}); },
|
|
13096
13101
|
}); });
|
|
13097
|
-
var Paper = function (props) {
|
|
13102
|
+
var Paper = React__default.memo(function (props) {
|
|
13098
13103
|
var height = props.height, width = props.width, other = __rest(props, ["height", "width"]);
|
|
13099
13104
|
var matchSM = core.useMediaQuery("(min-width:576px)");
|
|
13100
13105
|
var matchXS = core.useMediaQuery("(min-width:375px)");
|
|
@@ -13108,7 +13113,7 @@ var Paper = function (props) {
|
|
|
13108
13113
|
return (React__default.createElement(Paper$1, __assign({ variant: "outlined", classes: {
|
|
13109
13114
|
root: classes.root,
|
|
13110
13115
|
} }, other)));
|
|
13111
|
-
};
|
|
13116
|
+
});
|
|
13112
13117
|
|
|
13113
13118
|
var useStyles$m = core.makeStyles(function (theme) { return ({
|
|
13114
13119
|
root: {
|
|
@@ -13173,7 +13178,7 @@ var useStyles$m = core.makeStyles(function (theme) { return ({
|
|
|
13173
13178
|
boxShadow: "0px 2px 2px rgba(0, 0, 0, 0.15)",
|
|
13174
13179
|
},
|
|
13175
13180
|
}); });
|
|
13176
|
-
var Switch = function (props) {
|
|
13181
|
+
var Switch = React.memo(function (props) {
|
|
13177
13182
|
var disabled = props.disabled, other = __rest(props, ["disabled"]);
|
|
13178
13183
|
var styleProps = { disabled: disabled };
|
|
13179
13184
|
var classes = useStyles$m(styleProps);
|
|
@@ -13188,7 +13193,7 @@ var Switch = function (props) {
|
|
|
13188
13193
|
React__default.createElement(core.Fade, { in: true, timeout: { enter: 200, exit: 200 } },
|
|
13189
13194
|
React__default.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
13190
13195
|
React__default.createElement("path", { d: "M4.5 10.21L1.395 7.105L2.81 5.69L4.5 7.385L9.44 2.44L10.855 3.855L4.5 10.21Z", fill: "#4862CC" })))) }, other))));
|
|
13191
|
-
};
|
|
13196
|
+
});
|
|
13192
13197
|
|
|
13193
13198
|
var useStylesForMonthButton = core.makeStyles(function (theme) { return ({
|
|
13194
13199
|
root: function (props) { return ({
|
|
@@ -13262,7 +13267,7 @@ var useStylesForCalendar = core.makeStyles(function (theme) { return ({
|
|
|
13262
13267
|
},
|
|
13263
13268
|
},
|
|
13264
13269
|
}); });
|
|
13265
|
-
var DatePicker = function (props) {
|
|
13270
|
+
var DatePicker = React.memo(function (props) {
|
|
13266
13271
|
var open = props.open, onClose = props.onClose, format = props.format, mobile = props.mobile, min = props.min, max = props.max, ModalProps = props.ModalProps, defaultValue = props.defaultValue, getValue = props.getValue, value = props.value, other = __rest(props, ["open", "onClose", "format", "mobile", "min", "max", "ModalProps", "defaultValue", "getValue", "value"]);
|
|
13267
13272
|
var _a = React.useState(Number(new Date().getFullYear())), year = _a[0], setYear = _a[1];
|
|
13268
13273
|
var _b = React.useState(Number(new Date().getMonth() + 1)), month = _b[0], setMonth = _b[1];
|
|
@@ -13492,7 +13497,7 @@ var DatePicker = function (props) {
|
|
|
13492
13497
|
setNextMonth(nextMonth + 1);
|
|
13493
13498
|
}
|
|
13494
13499
|
}, defaultValue: defaultValue, setIsClicked: setIsClicked, mobile: mobile })) }, ModalProps)))));
|
|
13495
|
-
};
|
|
13500
|
+
});
|
|
13496
13501
|
var MonthButton = function (_a) {
|
|
13497
13502
|
var index = _a.index, month = _a.month, setMonth = _a.setMonth, setIsOpenMonthSelector = _a.setIsOpenMonthSelector, setIsClicked = _a.setIsClicked;
|
|
13498
13503
|
var styleProps = {
|
|
@@ -13610,7 +13615,7 @@ var icon_arrowright = (React__default.createElement("svg", { width: "20", height
|
|
|
13610
13615
|
var icon_calendar = (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
13611
13616
|
React__default.createElement("path", { d: "M5.83333 8.33333H10V12.5H5.83333V8.33333ZM15.8333 15.8333H4.16667V6.66667H15.8333V15.8333ZM15.8333 2.5H15V0.833332H13.3333V2.5H6.66667V0.833332H5V2.5H4.16667C3.24167 2.5 2.5 3.25 2.5 4.16667V15.8333C2.5 16.2754 2.67559 16.6993 2.98816 17.0118C3.30072 17.3244 3.72464 17.5 4.16667 17.5H15.8333C16.2754 17.5 16.6993 17.3244 17.0118 17.0118C17.3244 16.6993 17.5 16.2754 17.5 15.8333V4.16667C17.5 3.72464 17.3244 3.30071 17.0118 2.98815C16.6993 2.67559 16.2754 2.5 15.8333 2.5Z", fill: "#6F6F6F" })));
|
|
13612
13617
|
|
|
13613
|
-
var Breadcrumb = function (props) {
|
|
13618
|
+
var Breadcrumb = React.memo(function (props) {
|
|
13614
13619
|
var maxItems = props.maxItems, separator = props.separator, children = props.children, other = __rest(props, ["maxItems", "separator", "children"]);
|
|
13615
13620
|
var _a = React.useState(false), isHoverThreeDots = _a[0], setIsHoverThreeDots = _a[1];
|
|
13616
13621
|
var _b = React.useState(null), anchorEl = _b[0], setAnchorEl = _b[1];
|
|
@@ -13669,21 +13674,21 @@ var Breadcrumb = function (props) {
|
|
|
13669
13674
|
}
|
|
13670
13675
|
} }, content));
|
|
13671
13676
|
}))));
|
|
13672
|
-
};
|
|
13677
|
+
});
|
|
13673
13678
|
var icon_threedots = (React__default.createElement("svg", { width: "12", height: "20", viewBox: "0 0 12 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
13674
13679
|
React__default.createElement("path", { d: "M1.946 16.182C2.45 16.182 2.87 15.79 2.87 15.216C2.87 14.642 2.45 14.222 1.946 14.222C1.442 14.222 1.022 14.642 1.022 15.216C1.022 15.79 1.442 16.182 1.946 16.182ZM5.84248 16.182C6.34648 16.182 6.76648 15.79 6.76648 15.216C6.76648 14.642 6.34648 14.222 5.84248 14.222C5.33848 14.222 4.91848 14.642 4.91848 15.216C4.91848 15.79 5.33848 16.182 5.84248 16.182ZM9.73897 16.182C10.243 16.182 10.663 15.79 10.663 15.216C10.663 14.642 10.243 14.222 9.73897 14.222C9.23497 14.222 8.81497 14.642 8.81497 15.216C8.81497 15.79 9.23497 16.182 9.73897 16.182Z", fill: "#4B4B4B" })));
|
|
13675
13680
|
var icon_threedots_hover = (React__default.createElement("svg", { width: "12", height: "20", viewBox: "0 0 12 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
13676
13681
|
React__default.createElement("path", { d: "M1.946 16.182C2.45 16.182 2.87 15.79 2.87 15.216C2.87 14.642 2.45 14.222 1.946 14.222C1.442 14.222 1.022 14.642 1.022 15.216C1.022 15.79 1.442 16.182 1.946 16.182ZM5.84248 16.182C6.34648 16.182 6.76648 15.79 6.76648 15.216C6.76648 14.642 6.34648 14.222 5.84248 14.222C5.33848 14.222 4.91848 14.642 4.91848 15.216C4.91848 15.79 5.33848 16.182 5.84248 16.182ZM9.73897 16.182C10.243 16.182 10.663 15.79 10.663 15.216C10.663 14.642 10.243 14.222 9.73897 14.222C9.23497 14.222 8.81497 14.642 8.81497 15.216C8.81497 15.79 9.23497 16.182 9.73897 16.182Z", fill: "#4B4B4B" }),
|
|
13677
13682
|
React__default.createElement("path", { d: "M0 18.1H11.685V18.8H0V18.1Z", fill: "#4B4B4B" })));
|
|
13678
13683
|
|
|
13679
|
-
var BreadcrumbItem = function (props) {
|
|
13684
|
+
var BreadcrumbItem = React.memo(function (props) {
|
|
13680
13685
|
var last = props.last, other = __rest(props, ["last"]);
|
|
13681
13686
|
return (React__default.createElement(Link, __assign({}, other, { color: last ? "black1000" : "black800", style: {
|
|
13682
13687
|
fontWeight: last ? 700 : 400,
|
|
13683
13688
|
cursor: last ? "unset" : undefined,
|
|
13684
13689
|
textDecoration: last ? "none" : undefined,
|
|
13685
13690
|
} })));
|
|
13686
|
-
};
|
|
13691
|
+
});
|
|
13687
13692
|
|
|
13688
13693
|
var useStyles$n = core.makeStyles(function (theme) { return ({
|
|
13689
13694
|
root: function (props) { return ({
|
|
@@ -13707,7 +13712,7 @@ var useStyles$n = core.makeStyles(function (theme) { return ({
|
|
|
13707
13712
|
padding: 0,
|
|
13708
13713
|
},
|
|
13709
13714
|
}); });
|
|
13710
|
-
var Card = function (props) {
|
|
13715
|
+
var Card = React.memo(function (props) {
|
|
13711
13716
|
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"]);
|
|
13712
13717
|
var useStylesProps = { width: width, height: height };
|
|
13713
13718
|
var classes = useStyles$n(useStylesProps);
|
|
@@ -13730,7 +13735,7 @@ var Card = function (props) {
|
|
|
13730
13735
|
? undefined
|
|
13731
13736
|
: "1px solid " + theme.black.black400, borderRadius: "0px 0px 0px 0px" }, i.style), onClick: i.onClick, disabled: i.disabled, loading: i.loading }, i.title)); })) : (React__default.createElement("div", { style: { padding: "16px 24px", width: "100%", height: 48 } },
|
|
13732
13737
|
React__default.createElement(Skeleton$1, { width: "100%", height: "100%" }))))));
|
|
13733
|
-
};
|
|
13738
|
+
});
|
|
13734
13739
|
|
|
13735
13740
|
Object.defineProperty(exports, 'CssBaseline', {
|
|
13736
13741
|
enumerable: true,
|
|
@@ -13796,7 +13801,7 @@ exports.Snackbar = Snackbar;
|
|
|
13796
13801
|
exports.Styles = Styles;
|
|
13797
13802
|
exports.Switch = Switch;
|
|
13798
13803
|
exports.Tab = Tab;
|
|
13799
|
-
exports.TabPanel = TabPanel;
|
|
13804
|
+
exports.TabPanel = TabPanel$1;
|
|
13800
13805
|
exports.Tabs = Tabs;
|
|
13801
13806
|
exports.TaxTextField = TaxTextField;
|
|
13802
13807
|
exports.TextField = TextField;
|