@yosgo/swap-ui 1.0.134 → 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 +81 -76
- package/build/index.esm.js.map +1 -1
- package/build/index.js +80 -75
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppBar, Toolbar, Container as Container$1, Grid, Button as Button$1, Typography as Typography$1, IconButton as IconButton$1, Menu as Menu$1, MenuItem as MenuItem$1, Divider, Fade, Paper as Paper$1, TextField as TextField$1, Dialog, Modal as Modal$1, Breadcrumbs, Slide, FormControl, InputLabel, Select as Select$1, CssBaseline, Box, useTheme as useTheme$1, makeStyles as makeStyles$1, useMediaQuery, FormControlLabel, OutlinedInput, FormHelperText, ListItemIcon, Backdrop, fade as fade$1, Popper as Popper$1, InputBase, Grow } from '@material-ui/core';
|
|
2
2
|
export { CssBaseline } from '@material-ui/core';
|
|
3
|
-
import React__default, { useEffect, useState, Component as Component$1, forwardRef, useRef, useLayoutEffect as useLayoutEffect$1, useCallback, createElement, createContext, useContext, useMemo, Fragment as Fragment$1 } from 'react';
|
|
3
|
+
import React__default, { memo, useEffect, useState, Component as Component$1, forwardRef, useRef, useLayoutEffect as useLayoutEffect$1, useCallback, createElement, createContext, useContext, useMemo, Fragment as Fragment$1 } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import MenuIcon from '@material-ui/icons/Menu';
|
|
6
6
|
import FileCopyIcon from '@material-ui/icons/FileCopy';
|
|
@@ -99,7 +99,7 @@ var logo_icon = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiI
|
|
|
99
99
|
|
|
100
100
|
var logo_icon_black = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9I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DMjYuMjgzMiAxNy4xOTAzIDI2LjYzODIgMTguNDQ2NiAyNi45Mzg3IDE5LjczMDNDMjcuMTAyNSAyMC40NDA0IDI3LjIzOTEgMjEuMTc3OCAyNy4zNzU3IDIxLjkxNTNDMjcuNTk0MSAyMy40MTc0IDI3LjczMDcgMjQuOTE5NiAyNy42NzYxIDI2LjQ0OVpNMzAuNzYyMyAxNy41NDU0QzMwLjIxNjEgMTguMDM3IDI5LjYxNTIgMTguNDQ2NiAyOC45NTk3IDE4LjgwMTdDMjguNDY4MSAxNi43MjYgMjcuODY3MyAxNC42Nzc2IDI3LjE4NDUgMTIuNjI5MkMyOS4yMDU1IDEyLjI0NjkgMzEuMjUzOSAxMS45MTkxIDMzLjMwMjMgMTEuNjQ2QzMzLjMyOTYgMTMuODU4MiAzMi40Mjg0IDE2LjA3MDUgMzAuNzYyMyAxNy41NDU0WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+';
|
|
101
101
|
|
|
102
|
-
var SWAPLogo = function (_a) {
|
|
102
|
+
var SWAPLogo = memo(function (_a) {
|
|
103
103
|
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;
|
|
104
104
|
return (React__default.createElement("span", null,
|
|
105
105
|
React__default.createElement(SWAPLogoWrap, { size: size },
|
|
@@ -129,7 +129,7 @@ var SWAPLogo = function (_a) {
|
|
|
129
129
|
return logo_normal;
|
|
130
130
|
}
|
|
131
131
|
})() }))));
|
|
132
|
-
};
|
|
132
|
+
});
|
|
133
133
|
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: ",
|
|
134
134
|
";\n &.business {\n height: ",
|
|
135
135
|
";\n }\n }\n"])), function (_a) {
|
|
@@ -1303,7 +1303,7 @@ var LineShareButton = createShareButton('line', lineLink, function (props) { ret
|
|
|
1303
1303
|
windowHeight: 500,
|
|
1304
1304
|
});
|
|
1305
1305
|
|
|
1306
|
-
var SWAPShare = function (_a) {
|
|
1306
|
+
var SWAPShare = memo(function (_a) {
|
|
1307
1307
|
var url = _a.url, _b = _a.size, _c = _a.emailSubject, emailSubject = _c === void 0 ? "" : _c, _d = _a.sharedContent, sharedContent = _d === void 0 ? "" : _d;
|
|
1308
1308
|
var _e = useState(""), sharedUrl = _e[0], setSharedUrl = _e[1];
|
|
1309
1309
|
useEffect(function () {
|
|
@@ -1361,7 +1361,7 @@ var SWAPShare = function (_a) {
|
|
|
1361
1361
|
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" })))),
|
|
1362
1362
|
},
|
|
1363
1363
|
].map(function (item, index) { return (React__default.createElement("div", { key: "share_btn_" + index }, item.el)); })));
|
|
1364
|
-
};
|
|
1364
|
+
});
|
|
1365
1365
|
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"])));
|
|
1366
1366
|
var templateObject_1$6;
|
|
1367
1367
|
|
|
@@ -2522,7 +2522,7 @@ var Typography = React__default.memo(function (_a) {
|
|
|
2522
2522
|
return (React__default.createElement(MaterialTypography, { className: classes.root, style: style }, children));
|
|
2523
2523
|
});
|
|
2524
2524
|
|
|
2525
|
-
var Container = function (_a) {
|
|
2525
|
+
var Container = memo(function (_a) {
|
|
2526
2526
|
var children = _a.children, style = _a.style, maxWidth = _a.maxWidth, padding = _a.padding;
|
|
2527
2527
|
var XXS = useBreakpoints("xxs");
|
|
2528
2528
|
var XS = useBreakpoints("xs");
|
|
@@ -2577,7 +2577,7 @@ var Container = function (_a) {
|
|
|
2577
2577
|
});
|
|
2578
2578
|
var classes = useStyles();
|
|
2579
2579
|
return (React__default.createElement(MaterialContainer, { className: classes.root, style: style }, children));
|
|
2580
|
-
};
|
|
2580
|
+
});
|
|
2581
2581
|
|
|
2582
2582
|
function useBreakpoints(breakpoints) {
|
|
2583
2583
|
var matches = useMediaQuery("(min-width:" + (breakpoints === "xxs"
|
|
@@ -2662,7 +2662,7 @@ var useStyles = makeStyles$1(function (theme) { return ({
|
|
|
2662
2662
|
},
|
|
2663
2663
|
}); },
|
|
2664
2664
|
}); });
|
|
2665
|
-
var CheckBox = function (props) {
|
|
2665
|
+
var CheckBox = memo(function (props) {
|
|
2666
2666
|
var disableHover = props.disableHover, label = props.label, labelPlacement = props.labelPlacement, checkedIcon = props.checkedIcon, icon = props.icon, other = __rest(props, ["disableHover", "label", "labelPlacement", "checkedIcon", "icon"]);
|
|
2667
2667
|
var styleProps = {
|
|
2668
2668
|
disableHover: disableHover,
|
|
@@ -2670,7 +2670,7 @@ var CheckBox = function (props) {
|
|
|
2670
2670
|
var classes = useStyles(styleProps);
|
|
2671
2671
|
return (React__default.createElement(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" },
|
|
2672
2672
|
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) })) }));
|
|
2673
|
-
};
|
|
2673
|
+
});
|
|
2674
2674
|
|
|
2675
2675
|
var useStyles$1 = makeStyles$1(function (theme) { return ({
|
|
2676
2676
|
root: function (props) { return ({
|
|
@@ -2736,7 +2736,7 @@ var useStyles$1 = makeStyles$1(function (theme) { return ({
|
|
|
2736
2736
|
},
|
|
2737
2737
|
}); },
|
|
2738
2738
|
}); });
|
|
2739
|
-
var RadioButton = function (props) {
|
|
2739
|
+
var RadioButton = memo(function (props) {
|
|
2740
2740
|
var label = props.label, labelPlacement = props.labelPlacement, disableHover = props.disableHover, other = __rest(props, ["label", "labelPlacement", "disableHover"]);
|
|
2741
2741
|
var styleProps = {
|
|
2742
2742
|
disableHover: disableHover,
|
|
@@ -2745,7 +2745,7 @@ var RadioButton = function (props) {
|
|
|
2745
2745
|
return (React__default.createElement(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 },
|
|
2746
2746
|
React__default.createElement("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2747
2747
|
React__default.createElement("circle", { cx: "5", cy: "5", r: "5", fill: "white" }))), icon: React__default.createElement("span", { className: classes.icon }) }, other)) }));
|
|
2748
|
-
};
|
|
2748
|
+
});
|
|
2749
2749
|
|
|
2750
2750
|
var useStyles$2 = makeStyles$1(function (theme) { return ({
|
|
2751
2751
|
root: {
|
|
@@ -2839,7 +2839,7 @@ var useStyles$2 = makeStyles$1(function (theme) { return ({
|
|
|
2839
2839
|
"&.Mui-error": { color: theme.black.black800 },
|
|
2840
2840
|
},
|
|
2841
2841
|
}); });
|
|
2842
|
-
var TextField = function (props) {
|
|
2842
|
+
var TextField = memo(function (props) {
|
|
2843
2843
|
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"]);
|
|
2844
2844
|
var styleProps = {
|
|
2845
2845
|
width: width,
|
|
@@ -2861,9 +2861,9 @@ var TextField = function (props) {
|
|
|
2861
2861
|
horizontal: -16,
|
|
2862
2862
|
},
|
|
2863
2863
|
} }, SelectProps) }), children));
|
|
2864
|
-
};
|
|
2864
|
+
});
|
|
2865
2865
|
|
|
2866
|
-
var Tab = function (props) {
|
|
2866
|
+
var Tab = memo(function (props) {
|
|
2867
2867
|
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"]);
|
|
2868
2868
|
var useStyles = makeStyles$1(function (theme) { return ({
|
|
2869
2869
|
root: {
|
|
@@ -2913,7 +2913,7 @@ var Tab = function (props) {
|
|
|
2913
2913
|
}, label: React__default.createElement("div", { className: classes.indicatorRoot },
|
|
2914
2914
|
label,
|
|
2915
2915
|
selected ? React__default.createElement("div", { className: classes.selected_indicator }) : null), disableRipple: true })));
|
|
2916
|
-
};
|
|
2916
|
+
});
|
|
2917
2917
|
|
|
2918
2918
|
var useStyles$3 = makeStyles$1({
|
|
2919
2919
|
root: {},
|
|
@@ -2921,14 +2921,14 @@ var useStyles$3 = makeStyles$1({
|
|
|
2921
2921
|
backgroundColor: "transparent",
|
|
2922
2922
|
},
|
|
2923
2923
|
});
|
|
2924
|
-
var Tabs = function (props) {
|
|
2924
|
+
var Tabs = memo(function (props) {
|
|
2925
2925
|
var children = props.children, other = __rest(props, ["children"]);
|
|
2926
2926
|
var classes = useStyles$3();
|
|
2927
2927
|
return (React__default.createElement(MaterialTabs, __assign({}, other, { classes: {
|
|
2928
2928
|
root: classes.root,
|
|
2929
2929
|
indicator: classes.indicatorRoot,
|
|
2930
2930
|
} }), children));
|
|
2931
|
-
};
|
|
2931
|
+
});
|
|
2932
2932
|
|
|
2933
2933
|
var useStyles$4 = makeStyles$1(function (theme) { return ({
|
|
2934
2934
|
root: function (props) { return ({
|
|
@@ -2954,7 +2954,7 @@ var useStyles$4 = makeStyles$1(function (theme) { return ({
|
|
|
2954
2954
|
opacity: 1,
|
|
2955
2955
|
},
|
|
2956
2956
|
}); });
|
|
2957
|
-
var SegmentedTab = function (props) {
|
|
2957
|
+
var SegmentedTab = memo(function (props) {
|
|
2958
2958
|
var width = props.width, height = props.height, fontSize = props.fontSize, flex = props.flex, other = __rest(props, ["width", "height", "fontSize", "flex"]);
|
|
2959
2959
|
var styleProps = {
|
|
2960
2960
|
width: width,
|
|
@@ -2964,7 +2964,7 @@ var SegmentedTab = function (props) {
|
|
|
2964
2964
|
};
|
|
2965
2965
|
var classes = useStyles$4(styleProps);
|
|
2966
2966
|
return (React__default.createElement(MaterialTab, __assign({}, other, { disableRipple: true, classes: { textColorInherit: classes.text }, className: classes.root })));
|
|
2967
|
-
};
|
|
2967
|
+
});
|
|
2968
2968
|
|
|
2969
2969
|
var smoothscroll = createCommonjsModule(function (module, exports) {
|
|
2970
2970
|
/* smoothscroll v0.4.4 - 2019 - Dustan Kasten, Jeremias Menichelli - MIT License */
|
|
@@ -3428,7 +3428,7 @@ var useStyles$5 = makeStyles$1(function (theme) { return ({
|
|
|
3428
3428
|
},
|
|
3429
3429
|
},
|
|
3430
3430
|
}); });
|
|
3431
|
-
var SegmentedTabs = function (_a) {
|
|
3431
|
+
var SegmentedTabs = memo(function (_a) {
|
|
3432
3432
|
var children = _a.children, width = _a.width, slide = _a.slide, other = __rest(_a, ["children", "width", "slide"]);
|
|
3433
3433
|
var styleProps = {
|
|
3434
3434
|
width: width,
|
|
@@ -3460,12 +3460,13 @@ var SegmentedTabs = function (_a) {
|
|
|
3460
3460
|
indicator: classes.indicator,
|
|
3461
3461
|
scrollButtons: classes.scrollButtons,
|
|
3462
3462
|
}, indicatorColor: "primary", ref: tabsRef }), children));
|
|
3463
|
-
};
|
|
3463
|
+
});
|
|
3464
3464
|
|
|
3465
3465
|
function TabPanel(props) {
|
|
3466
3466
|
var children = props.children, value = props.value, index = props.index, other = __rest(props, ["children", "value", "index"]);
|
|
3467
3467
|
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(Box, null, children)));
|
|
3468
|
-
}
|
|
3468
|
+
}
|
|
3469
|
+
var TabPanel$1 = memo(TabPanel);
|
|
3469
3470
|
|
|
3470
3471
|
var useOutlinedInputStyles = makeStyles$1(function (theme) { return ({
|
|
3471
3472
|
root: {
|
|
@@ -3543,7 +3544,7 @@ var useStyles$6 = makeStyles$1(function (theme) { return ({
|
|
|
3543
3544
|
marginTop: 8,
|
|
3544
3545
|
},
|
|
3545
3546
|
}); });
|
|
3546
|
-
var Select = function (_a) {
|
|
3547
|
+
var Select = memo(function (_a) {
|
|
3547
3548
|
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;
|
|
3548
3549
|
var outlinedInputClasses = useOutlinedInputStyles();
|
|
3549
3550
|
var styleProps = {
|
|
@@ -3570,12 +3571,12 @@ var Select = function (_a) {
|
|
|
3570
3571
|
getContentAnchorEl: null,
|
|
3571
3572
|
}, onClick: onClick }, children),
|
|
3572
3573
|
React__default.createElement(FormHelperText, { style: helperTextStyle }, helperText)));
|
|
3573
|
-
};
|
|
3574
|
+
});
|
|
3574
3575
|
|
|
3575
|
-
var Menu = function (props) {
|
|
3576
|
+
var Menu = memo(function (props) {
|
|
3576
3577
|
var children = props.children, open = props.open, other = __rest(props, ["children", "open"]);
|
|
3577
3578
|
return (React__default.createElement(MaterialMenu, __assign({ open: open }, other), children));
|
|
3578
|
-
};
|
|
3579
|
+
});
|
|
3579
3580
|
|
|
3580
3581
|
var useStyles$7 = makeStyles$1(function (theme) { return ({
|
|
3581
3582
|
root: function (props) { return ({
|
|
@@ -3606,7 +3607,7 @@ var useStyles$7 = makeStyles$1(function (theme) { return ({
|
|
|
3606
3607
|
},
|
|
3607
3608
|
}); },
|
|
3608
3609
|
}); });
|
|
3609
|
-
var MenuItem = React__default.forwardRef(function (props, ref) {
|
|
3610
|
+
var MenuItem = memo(React__default.forwardRef(function (props, ref) {
|
|
3610
3611
|
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"]);
|
|
3611
3612
|
var styleProps = {
|
|
3612
3613
|
width: width,
|
|
@@ -3620,9 +3621,9 @@ var MenuItem = React__default.forwardRef(function (props, ref) {
|
|
|
3620
3621
|
return (React__default.createElement(MaterialMenuItem, __assign({ className: classes.root }, other),
|
|
3621
3622
|
children,
|
|
3622
3623
|
React__default.createElement(ListItemIcon, { style: { justifyContent: "flex-end" } }, iconChildren)));
|
|
3623
|
-
});
|
|
3624
|
+
}));
|
|
3624
3625
|
|
|
3625
|
-
var Button = function (props) {
|
|
3626
|
+
var Button = React__default.memo(function (props) {
|
|
3626
3627
|
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"]);
|
|
3627
3628
|
var theme = useTheme$1();
|
|
3628
3629
|
var useStyles = makeStyles$1(function (theme) { return ({
|
|
@@ -3831,7 +3832,7 @@ var Button = function (props) {
|
|
|
3831
3832
|
? theme.primary.primary800
|
|
3832
3833
|
: theme.black.white,
|
|
3833
3834
|
} }))) : (React__default.createElement("div", { style: { whiteSpace: "nowrap" } }, children))));
|
|
3834
|
-
};
|
|
3835
|
+
});
|
|
3835
3836
|
|
|
3836
3837
|
var useStyles$8 = makeStyles$1(function () { return ({
|
|
3837
3838
|
root: function (props) { return ({
|
|
@@ -3848,7 +3849,7 @@ var useStyles$8 = makeStyles$1(function () { return ({
|
|
|
3848
3849
|
},
|
|
3849
3850
|
}); },
|
|
3850
3851
|
}); });
|
|
3851
|
-
var IconButton = function (props) {
|
|
3852
|
+
var IconButton = memo(function (props) {
|
|
3852
3853
|
var hoverColor = props.hoverColor, hoverIconColor = props.hoverIconColor, width = props.width, height = props.height, other = __rest(props, ["hoverColor", "hoverIconColor", "width", "height"]);
|
|
3853
3854
|
var theme = useTheme$1();
|
|
3854
3855
|
var styleProps = {
|
|
@@ -4083,7 +4084,7 @@ var IconButton = function (props) {
|
|
|
4083
4084
|
};
|
|
4084
4085
|
var classes = useStyles$8(styleProps);
|
|
4085
4086
|
return React__default.createElement(IconButton$1$1, __assign({ className: classes.root }, other));
|
|
4086
|
-
};
|
|
4087
|
+
});
|
|
4087
4088
|
|
|
4088
4089
|
function TransitionLeft(props) {
|
|
4089
4090
|
return React__default.createElement(Slide, __assign({}, props, { direction: "left" }));
|
|
@@ -4158,7 +4159,7 @@ var useStyles$9 = makeStyles$1(function (theme) { return ({
|
|
|
4158
4159
|
color: "#ffffff",
|
|
4159
4160
|
},
|
|
4160
4161
|
}); });
|
|
4161
|
-
var Snackbar = function (props) {
|
|
4162
|
+
var Snackbar = memo(function (props) {
|
|
4162
4163
|
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"]);
|
|
4163
4164
|
var styleProps = {
|
|
4164
4165
|
width: width,
|
|
@@ -4197,7 +4198,7 @@ var Snackbar = function (props) {
|
|
|
4197
4198
|
: transitionDirection === "down"
|
|
4198
4199
|
? TransitionDown
|
|
4199
4200
|
: Transition, transitionDuration: transitionDuration })));
|
|
4200
|
-
};
|
|
4201
|
+
});
|
|
4201
4202
|
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" },
|
|
4202
4203
|
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" })));
|
|
4203
4204
|
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" },
|
|
@@ -7193,7 +7194,7 @@ var useStyles$a = makeStyles$1(function (theme) { return ({
|
|
|
7193
7194
|
color: props.backgroundColor,
|
|
7194
7195
|
}); },
|
|
7195
7196
|
}); });
|
|
7196
|
-
var Tooltip = function (props) {
|
|
7197
|
+
var Tooltip = memo(function (props) {
|
|
7197
7198
|
var theme = useTheme$1();
|
|
7198
7199
|
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"]);
|
|
7199
7200
|
var styleProps = {
|
|
@@ -7226,7 +7227,7 @@ var Tooltip = function (props) {
|
|
|
7226
7227
|
var classes = useStyles$a(styleProps);
|
|
7227
7228
|
return (React__default.createElement(MaterialTooltip, __assign({ classes: { tooltip: classes.root, arrow: classes.arrow } }, other, { arrow: arrow }),
|
|
7228
7229
|
React__default.createElement("div", { style: __assign({ width: "fit-content", height: "fit-content", display: "flex", alignItems: "center", justifyContent: "center" }, childrenStyle) }, children)));
|
|
7229
|
-
};
|
|
7230
|
+
});
|
|
7230
7231
|
|
|
7231
7232
|
var ModalTransitionEffect = React__default.forwardRef(function ModalTransitionEffect(props, ref) {
|
|
7232
7233
|
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"]);
|
|
@@ -7250,7 +7251,7 @@ var ModalTransitionEffect = React__default.forwardRef(function ModalTransitionEf
|
|
|
7250
7251
|
});
|
|
7251
7252
|
return (React__default.createElement(React__default.Fragment, null, slide ? (React__default.createElement(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))));
|
|
7252
7253
|
});
|
|
7253
|
-
var Modal = React__default.forwardRef(function (props, ref) {
|
|
7254
|
+
var Modal = memo(React__default.forwardRef(function (props, ref) {
|
|
7254
7255
|
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;
|
|
7255
7256
|
var _a = useState(0), clientHeight = _a[0], setClientHeight = _a[1];
|
|
7256
7257
|
var _b = useState(0), scorllbarWidth = _b[0], setScorllbarWidth = _b[1];
|
|
@@ -7654,7 +7655,7 @@ var Modal = React__default.forwardRef(function (props, ref) {
|
|
|
7654
7655
|
} })) : null,
|
|
7655
7656
|
headChildren ? (headChildren) : (React__default.createElement("div", { className: classes.title },
|
|
7656
7657
|
icon ? icon : null,
|
|
7657
|
-
checked ? React__default.createElement(CheckCircleIcon, { className: classes.icon }) : null,
|
|
7658
|
+
checked ? (React__default.createElement(CheckCircleIcon, { className: classes.icon })) : null,
|
|
7658
7659
|
failed ? React__default.createElement(WarningIcon, { className: classes.icon }) : null,
|
|
7659
7660
|
React__default.createElement("div", null,
|
|
7660
7661
|
React__default.createElement(Typography, { variant: !mobile ? "h6" : "title" }, title),
|
|
@@ -7724,12 +7725,14 @@ var Modal = React__default.forwardRef(function (props, ref) {
|
|
|
7724
7725
|
? secondaryButton.variant
|
|
7725
7726
|
: "secondary", size: "small", onClick: secondaryButton.onClick, disabled: secondaryButton.disabled, loading: secondaryButton.loading, style: secondaryButton.style }, secondaryButton.title))) : null),
|
|
7726
7727
|
React__default.createElement(Box, { width: "100%", marginBottom: footerDisplayColumn ? 1 : 0 }, primaryButton ? (primaryButton.tooltip ? (React__default.createElement(Tooltip, __assign({}, primaryButton.tooltip),
|
|
7727
|
-
React__default.createElement(Button, { fullWidth: buttonFullWidth ||
|
|
7728
|
+
React__default.createElement(Button, { fullWidth: buttonFullWidth ||
|
|
7729
|
+
footerDisplayColumn ||
|
|
7730
|
+
mobile, variant: primaryButton.variant
|
|
7728
7731
|
? primaryButton.variant
|
|
7729
7732
|
: "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
|
|
7730
7733
|
? primaryButton.variant
|
|
7731
7734
|
: "primary", size: "small", onClick: primaryButton.onClick, disabled: primaryButton.disabled, loading: primaryButton.loading, style: primaryButton.style }, primaryButton.title))) : null))) : null)))))));
|
|
7732
|
-
});
|
|
7735
|
+
}));
|
|
7733
7736
|
|
|
7734
7737
|
var useStyles$b = makeStyles$1(function () { return ({
|
|
7735
7738
|
root: function (props) { return ({
|
|
@@ -7748,7 +7751,7 @@ var useStyles$b = makeStyles$1(function () { return ({
|
|
|
7748
7751
|
marginRight: 8,
|
|
7749
7752
|
},
|
|
7750
7753
|
}); });
|
|
7751
|
-
var Banner = function (props) {
|
|
7754
|
+
var Banner = memo(function (props) {
|
|
7752
7755
|
var _a = useState(false), alignStart = _a[0], setAlignStart = _a[1];
|
|
7753
7756
|
var theme = useTheme$1();
|
|
7754
7757
|
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"]);
|
|
@@ -7803,7 +7806,7 @@ var Banner = function (props) {
|
|
|
7803
7806
|
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" },
|
|
7804
7807
|
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 })))),
|
|
7805
7808
|
React__default.createElement(Typography, { variant: "caption2" }, children)));
|
|
7806
|
-
};
|
|
7809
|
+
});
|
|
7807
7810
|
|
|
7808
7811
|
var useStyles$c = makeStyles$1(function () { return ({
|
|
7809
7812
|
root: function (props) { return ({
|
|
@@ -7822,7 +7825,7 @@ var useStyles$c = makeStyles$1(function () { return ({
|
|
|
7822
7825
|
color: props.color,
|
|
7823
7826
|
}); },
|
|
7824
7827
|
}); });
|
|
7825
|
-
var Chip = function (props) {
|
|
7828
|
+
var Chip = memo(function (props) {
|
|
7826
7829
|
var theme = useTheme$1();
|
|
7827
7830
|
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"]);
|
|
7828
7831
|
var styleProps = {
|
|
@@ -7865,11 +7868,11 @@ var Chip = function (props) {
|
|
|
7865
7868
|
return (React__default.createElement("div", __assign({ className: classes.root }, other),
|
|
7866
7869
|
React__default.createElement("span", { style: { marginRight: variant === "success" ? 4 : 0 } }, label),
|
|
7867
7870
|
variant === "success" && !icon ? icon_success : icon));
|
|
7868
|
-
};
|
|
7871
|
+
});
|
|
7869
7872
|
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" },
|
|
7870
7873
|
React__default.createElement("path", { d: "M14 4.66666L6 12.6667L2.33333 9L3.27333 8.06L6 10.78L13.06 3.72666L14 4.66666Z", fill: "#00821E" })));
|
|
7871
7874
|
|
|
7872
|
-
var CircularProgress = function (props) {
|
|
7875
|
+
var CircularProgress = memo(function (props) {
|
|
7873
7876
|
var theme = useTheme$1();
|
|
7874
7877
|
var dark = props.dark, size = props.size, thickness = props.thickness;
|
|
7875
7878
|
return (React__default.createElement("div", { style: {
|
|
@@ -7890,7 +7893,7 @@ var CircularProgress = function (props) {
|
|
|
7890
7893
|
top: -0,
|
|
7891
7894
|
color: dark ? theme.black.white : theme.primary.primary800,
|
|
7892
7895
|
} })));
|
|
7893
|
-
};
|
|
7896
|
+
});
|
|
7894
7897
|
|
|
7895
7898
|
function _extends() {
|
|
7896
7899
|
_extends = Object.assign || function (target) {
|
|
@@ -12054,7 +12057,7 @@ var useStyles$d = makeStyles$1(function (theme) { return ({
|
|
|
12054
12057
|
justifyContent: "center",
|
|
12055
12058
|
},
|
|
12056
12059
|
}); });
|
|
12057
|
-
var Pagination$1 = function (props) {
|
|
12060
|
+
var Pagination$1 = memo(function (props) {
|
|
12058
12061
|
// const theme = useTheme();
|
|
12059
12062
|
var other = __rest(props, []);
|
|
12060
12063
|
var styleProps = {};
|
|
@@ -12065,7 +12068,7 @@ var Pagination$1 = function (props) {
|
|
|
12065
12068
|
selected: classes.selected,
|
|
12066
12069
|
ellipsis: classes.ellipsis,
|
|
12067
12070
|
} }))); } })));
|
|
12068
|
-
};
|
|
12071
|
+
});
|
|
12069
12072
|
|
|
12070
12073
|
var useStyles$e = makeStyles$1(function (theme) { return ({
|
|
12071
12074
|
root: function (props) { return ({
|
|
@@ -12085,7 +12088,7 @@ var useStyles$e = makeStyles$1(function (theme) { return ({
|
|
|
12085
12088
|
borderRadius: "50%",
|
|
12086
12089
|
}); },
|
|
12087
12090
|
}); });
|
|
12088
|
-
var Progress = function (props) {
|
|
12091
|
+
var Progress = memo(function (props) {
|
|
12089
12092
|
var theme = useTheme$1();
|
|
12090
12093
|
var
|
|
12091
12094
|
// onClick,
|
|
@@ -12142,7 +12145,7 @@ var Progress = function (props) {
|
|
|
12142
12145
|
} })),
|
|
12143
12146
|
React__default.createElement(Typography, { variant: "caption1", color: i + 1 === step ? "black1000" : "black700", style: { marginTop: 8 } }, label ? label[i] : null)));
|
|
12144
12147
|
})));
|
|
12145
|
-
};
|
|
12148
|
+
});
|
|
12146
12149
|
|
|
12147
12150
|
var useStyles$f = makeStyles$1(function (theme) { return ({
|
|
12148
12151
|
popper: function (props) { return ({
|
|
@@ -12323,7 +12326,7 @@ var AutoComplete = function (props) {
|
|
|
12323
12326
|
} })))));
|
|
12324
12327
|
};
|
|
12325
12328
|
|
|
12326
|
-
var TaxTextField = function (_a) {
|
|
12329
|
+
var TaxTextField = memo(function (_a) {
|
|
12327
12330
|
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;
|
|
12328
12331
|
var _b = useState(""), modalIncome = _b[0], setModalIncome = _b[1];
|
|
12329
12332
|
var _c = useState(""), modalExpense = _c[0], setModalExpense = _c[1];
|
|
@@ -12399,7 +12402,9 @@ var TaxTextField = function (_a) {
|
|
|
12399
12402
|
display: "flex",
|
|
12400
12403
|
justifyContent: "space-between",
|
|
12401
12404
|
flexWrap: "nowrap",
|
|
12402
|
-
color: modalIncome === option.code
|
|
12405
|
+
color: modalIncome === option.code
|
|
12406
|
+
? theme.primary.primary400
|
|
12407
|
+
: null,
|
|
12403
12408
|
}, 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" },
|
|
12404
12409
|
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 },
|
|
12405
12410
|
option.code,
|
|
@@ -12464,7 +12469,7 @@ var TaxTextField = function (_a) {
|
|
|
12464
12469
|
return null;
|
|
12465
12470
|
}
|
|
12466
12471
|
})()));
|
|
12467
|
-
};
|
|
12472
|
+
});
|
|
12468
12473
|
var SWAPIncomeTypes$1 = [
|
|
12469
12474
|
{
|
|
12470
12475
|
code: "9A",
|
|
@@ -12668,12 +12673,12 @@ var useStyles$g = makeStyles$1(function (theme) { return ({
|
|
|
12668
12673
|
transform: "unset",
|
|
12669
12674
|
}); },
|
|
12670
12675
|
}); });
|
|
12671
|
-
var Skeleton$1 = function (props) {
|
|
12676
|
+
var Skeleton$1 = memo(function (props) {
|
|
12672
12677
|
var other = __rest(props, []);
|
|
12673
12678
|
var styleProps = {};
|
|
12674
12679
|
var classes = useStyles$g(styleProps);
|
|
12675
12680
|
return React__default.createElement(MaterialSkeleton, __assign({ classes: { root: classes.root } }, other));
|
|
12676
|
-
};
|
|
12681
|
+
});
|
|
12677
12682
|
|
|
12678
12683
|
var useOutlinedInputStyles$1 = makeStyles$1(function (theme) { return ({
|
|
12679
12684
|
root: {
|
|
@@ -12737,7 +12742,7 @@ var useStyles$h = makeStyles$1(function (theme) { return ({
|
|
|
12737
12742
|
marginTop: 8,
|
|
12738
12743
|
},
|
|
12739
12744
|
}); });
|
|
12740
|
-
var Dropdown = function (props) {
|
|
12745
|
+
var Dropdown = memo(function (props) {
|
|
12741
12746
|
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"]);
|
|
12742
12747
|
var styleProps = {
|
|
12743
12748
|
width: width,
|
|
@@ -12750,7 +12755,7 @@ var Dropdown = function (props) {
|
|
|
12750
12755
|
icon: classes.icon,
|
|
12751
12756
|
}, input: React__default.createElement(OutlinedInput, { classes: outlinedInputClasses }), inputProps: __assign({ classes: { root: classes.inputRoot } }, inputProps), MenuProps: __assign({ classes: { paper: classes.menuRoot }, getContentAnchorEl: null }, MenuProps) }), children),
|
|
12752
12757
|
React__default.createElement(FormHelperText, { style: helperTextStyle }, helperText)));
|
|
12753
|
-
};
|
|
12758
|
+
});
|
|
12754
12759
|
|
|
12755
12760
|
var useStyles$i = makeStyles$1(function (theme) { return ({
|
|
12756
12761
|
root: function (props) { return ({
|
|
@@ -12790,7 +12795,7 @@ var useStyles$i = makeStyles$1(function (theme) { return ({
|
|
|
12790
12795
|
},
|
|
12791
12796
|
}); },
|
|
12792
12797
|
}); });
|
|
12793
|
-
var RadioList = function (props) {
|
|
12798
|
+
var RadioList = memo(function (props) {
|
|
12794
12799
|
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"]);
|
|
12795
12800
|
var styleProps = {
|
|
12796
12801
|
checked: checked,
|
|
@@ -12843,7 +12848,7 @@ var RadioList = function (props) {
|
|
|
12843
12848
|
React__default.createElement(Typography, { variant: "title" }, title),
|
|
12844
12849
|
multiline ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null))),
|
|
12845
12850
|
!multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
|
|
12846
|
-
};
|
|
12851
|
+
});
|
|
12847
12852
|
|
|
12848
12853
|
var useStyles$j = makeStyles$1(function (theme) { return ({
|
|
12849
12854
|
root: function (props) { return ({
|
|
@@ -12883,7 +12888,7 @@ var useStyles$j = makeStyles$1(function (theme) { return ({
|
|
|
12883
12888
|
},
|
|
12884
12889
|
}); },
|
|
12885
12890
|
}); });
|
|
12886
|
-
var CheckBoxList = function (props) {
|
|
12891
|
+
var CheckBoxList = memo(function (props) {
|
|
12887
12892
|
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"]);
|
|
12888
12893
|
var styleProps = {
|
|
12889
12894
|
checked: checked,
|
|
@@ -12936,7 +12941,7 @@ var CheckBoxList = function (props) {
|
|
|
12936
12941
|
React__default.createElement(Typography, { variant: "title" }, title),
|
|
12937
12942
|
multiline ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null))),
|
|
12938
12943
|
!multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
|
|
12939
|
-
};
|
|
12944
|
+
});
|
|
12940
12945
|
|
|
12941
12946
|
var useStyles$k = makeStyles$1(function (theme) { return ({
|
|
12942
12947
|
root: function (props) { return ({
|
|
@@ -12955,7 +12960,7 @@ var useStyles$k = makeStyles$1(function (theme) { return ({
|
|
|
12955
12960
|
border: "1px solid " + theme.primary.primary400,
|
|
12956
12961
|
},
|
|
12957
12962
|
}); });
|
|
12958
|
-
var Link = function (props) {
|
|
12963
|
+
var Link = memo(function (props) {
|
|
12959
12964
|
var color = props.color, other = __rest(props, ["color"]);
|
|
12960
12965
|
var theme = useTheme$1();
|
|
12961
12966
|
var styleProps = {
|
|
@@ -13077,7 +13082,7 @@ var Link = function (props) {
|
|
|
13077
13082
|
focusVisible: classes.focusVisible,
|
|
13078
13083
|
underlineHover: classes.underlineHover,
|
|
13079
13084
|
}, tabIndex: 0 }, other)));
|
|
13080
|
-
};
|
|
13085
|
+
});
|
|
13081
13086
|
|
|
13082
13087
|
var useStyles$l = makeStyles$1(function (theme) { return ({
|
|
13083
13088
|
root: function (props) { return ({
|
|
@@ -13089,7 +13094,7 @@ var useStyles$l = makeStyles$1(function (theme) { return ({
|
|
|
13089
13094
|
padding: props.matchSM ? 40 : props.matchXS ? 24 : 16,
|
|
13090
13095
|
}); },
|
|
13091
13096
|
}); });
|
|
13092
|
-
var Paper = function (props) {
|
|
13097
|
+
var Paper = React__default.memo(function (props) {
|
|
13093
13098
|
var height = props.height, width = props.width, other = __rest(props, ["height", "width"]);
|
|
13094
13099
|
var matchSM = useMediaQuery("(min-width:576px)");
|
|
13095
13100
|
var matchXS = useMediaQuery("(min-width:375px)");
|
|
@@ -13103,7 +13108,7 @@ var Paper = function (props) {
|
|
|
13103
13108
|
return (React__default.createElement(Paper$1$1, __assign({ variant: "outlined", classes: {
|
|
13104
13109
|
root: classes.root,
|
|
13105
13110
|
} }, other)));
|
|
13106
|
-
};
|
|
13111
|
+
});
|
|
13107
13112
|
|
|
13108
13113
|
var useStyles$m = makeStyles$1(function (theme) { return ({
|
|
13109
13114
|
root: {
|
|
@@ -13168,7 +13173,7 @@ var useStyles$m = makeStyles$1(function (theme) { return ({
|
|
|
13168
13173
|
boxShadow: "0px 2px 2px rgba(0, 0, 0, 0.15)",
|
|
13169
13174
|
},
|
|
13170
13175
|
}); });
|
|
13171
|
-
var Switch = function (props) {
|
|
13176
|
+
var Switch = memo(function (props) {
|
|
13172
13177
|
var disabled = props.disabled, other = __rest(props, ["disabled"]);
|
|
13173
13178
|
var styleProps = { disabled: disabled };
|
|
13174
13179
|
var classes = useStyles$m(styleProps);
|
|
@@ -13183,7 +13188,7 @@ var Switch = function (props) {
|
|
|
13183
13188
|
React__default.createElement(Fade, { in: true, timeout: { enter: 200, exit: 200 } },
|
|
13184
13189
|
React__default.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
13185
13190
|
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))));
|
|
13186
|
-
};
|
|
13191
|
+
});
|
|
13187
13192
|
|
|
13188
13193
|
var useStylesForMonthButton = makeStyles$1(function (theme) { return ({
|
|
13189
13194
|
root: function (props) { return ({
|
|
@@ -13257,7 +13262,7 @@ var useStylesForCalendar = makeStyles$1(function (theme) { return ({
|
|
|
13257
13262
|
},
|
|
13258
13263
|
},
|
|
13259
13264
|
}); });
|
|
13260
|
-
var DatePicker = function (props) {
|
|
13265
|
+
var DatePicker = memo(function (props) {
|
|
13261
13266
|
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"]);
|
|
13262
13267
|
var _a = useState(Number(new Date().getFullYear())), year = _a[0], setYear = _a[1];
|
|
13263
13268
|
var _b = useState(Number(new Date().getMonth() + 1)), month = _b[0], setMonth = _b[1];
|
|
@@ -13487,7 +13492,7 @@ var DatePicker = function (props) {
|
|
|
13487
13492
|
setNextMonth(nextMonth + 1);
|
|
13488
13493
|
}
|
|
13489
13494
|
}, defaultValue: defaultValue, setIsClicked: setIsClicked, mobile: mobile })) }, ModalProps)))));
|
|
13490
|
-
};
|
|
13495
|
+
});
|
|
13491
13496
|
var MonthButton = function (_a) {
|
|
13492
13497
|
var index = _a.index, month = _a.month, setMonth = _a.setMonth, setIsOpenMonthSelector = _a.setIsOpenMonthSelector, setIsClicked = _a.setIsClicked;
|
|
13493
13498
|
var styleProps = {
|
|
@@ -13605,7 +13610,7 @@ var icon_arrowright = (React__default.createElement("svg", { width: "20", height
|
|
|
13605
13610
|
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" },
|
|
13606
13611
|
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" })));
|
|
13607
13612
|
|
|
13608
|
-
var Breadcrumb = function (props) {
|
|
13613
|
+
var Breadcrumb = memo(function (props) {
|
|
13609
13614
|
var maxItems = props.maxItems, separator = props.separator, children = props.children, other = __rest(props, ["maxItems", "separator", "children"]);
|
|
13610
13615
|
var _a = useState(false), isHoverThreeDots = _a[0], setIsHoverThreeDots = _a[1];
|
|
13611
13616
|
var _b = useState(null), anchorEl = _b[0], setAnchorEl = _b[1];
|
|
@@ -13664,21 +13669,21 @@ var Breadcrumb = function (props) {
|
|
|
13664
13669
|
}
|
|
13665
13670
|
} }, content));
|
|
13666
13671
|
}))));
|
|
13667
|
-
};
|
|
13672
|
+
});
|
|
13668
13673
|
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" },
|
|
13669
13674
|
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" })));
|
|
13670
13675
|
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" },
|
|
13671
13676
|
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" }),
|
|
13672
13677
|
React__default.createElement("path", { d: "M0 18.1H11.685V18.8H0V18.1Z", fill: "#4B4B4B" })));
|
|
13673
13678
|
|
|
13674
|
-
var BreadcrumbItem = function (props) {
|
|
13679
|
+
var BreadcrumbItem = memo(function (props) {
|
|
13675
13680
|
var last = props.last, other = __rest(props, ["last"]);
|
|
13676
13681
|
return (React__default.createElement(Link, __assign({}, other, { color: last ? "black1000" : "black800", style: {
|
|
13677
13682
|
fontWeight: last ? 700 : 400,
|
|
13678
13683
|
cursor: last ? "unset" : undefined,
|
|
13679
13684
|
textDecoration: last ? "none" : undefined,
|
|
13680
13685
|
} })));
|
|
13681
|
-
};
|
|
13686
|
+
});
|
|
13682
13687
|
|
|
13683
13688
|
var useStyles$n = makeStyles$1(function (theme) { return ({
|
|
13684
13689
|
root: function (props) { return ({
|
|
@@ -13702,7 +13707,7 @@ var useStyles$n = makeStyles$1(function (theme) { return ({
|
|
|
13702
13707
|
padding: 0,
|
|
13703
13708
|
},
|
|
13704
13709
|
}); });
|
|
13705
|
-
var Card = function (props) {
|
|
13710
|
+
var Card = memo(function (props) {
|
|
13706
13711
|
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"]);
|
|
13707
13712
|
var useStylesProps = { width: width, height: height };
|
|
13708
13713
|
var classes = useStyles$n(useStylesProps);
|
|
@@ -13725,7 +13730,7 @@ var Card = function (props) {
|
|
|
13725
13730
|
? undefined
|
|
13726
13731
|
: "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 } },
|
|
13727
13732
|
React__default.createElement(Skeleton$1, { width: "100%", height: "100%" }))))));
|
|
13728
|
-
};
|
|
13733
|
+
});
|
|
13729
13734
|
|
|
13730
|
-
export { AutoComplete, Banner, Breadcrumb, BreadcrumbItem, Button, Card, CheckBox, CheckBoxList, Chip, CircularProgress, Container, DatePicker, Dropdown, IconButton, Link, Menu, MenuItem, Modal, Pagination$1 as Pagination, Paper, Progress, RadioButton, RadioList, SWAPAppBar, SWAPBanner, SWAPCopyField, SWAPDialog, SWAPExpenseTypes, SWAPIncomeTypes, SWAPLogo, SWAPModal, SWAPShare, SWAPSpace, SWAPTaxDescription, SWAPTaxExpenseLabel, SWAPTaxField, SWAPTaxIncomeLabel, SWAPTheme, SegmentedTab, SegmentedTabs, Select, Skeleton$1 as Skeleton, Snackbar, Styles, Switch, Tab, TabPanel, Tabs, TaxTextField, TextField, Tooltip, Typography, useBreakpoints };
|
|
13735
|
+
export { AutoComplete, Banner, Breadcrumb, BreadcrumbItem, Button, Card, CheckBox, CheckBoxList, Chip, CircularProgress, Container, DatePicker, Dropdown, IconButton, Link, Menu, MenuItem, Modal, Pagination$1 as Pagination, Paper, Progress, RadioButton, RadioList, SWAPAppBar, SWAPBanner, SWAPCopyField, SWAPDialog, SWAPExpenseTypes, SWAPIncomeTypes, SWAPLogo, SWAPModal, SWAPShare, SWAPSpace, SWAPTaxDescription, SWAPTaxExpenseLabel, SWAPTaxField, SWAPTaxIncomeLabel, SWAPTheme, SegmentedTab, SegmentedTabs, Select, Skeleton$1 as Skeleton, Snackbar, Styles, Switch, Tab, TabPanel$1 as TabPanel, Tabs, TaxTextField, TextField, Tooltip, Typography, useBreakpoints };
|
|
13731
13736
|
//# sourceMappingURL=index.esm.js.map
|