@yosgo/swap-ui 1.0.136 → 1.0.137
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 +1 -2
- package/build/index.esm.js +76 -81
- package/build/index.esm.js.map +1 -1
- package/build/index.js +75 -80
- 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, {
|
|
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';
|
|
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,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2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zOTEgMjEuMTc3OCAyNy4zNzU3IDIxLjkxNTNDMjcuNTk0MSAyMy40MTc0IDI3LjczMDcgMjQuOTE5NiAyNy42NzYxIDI2LjQ0OVpNMzAuNzYyMyAxNy41NDU0QzMwLjIxNjEgMTguMDM3IDI5LjYxNTIgMTguNDQ2NiAyOC45NTk3IDE4LjgwMTdDMjguNDY4MSAxNi43MjYgMjcuODY3MyAxNC42Nzc2IDI3LjE4NDUgMTIuNjI5MkMyOS4yMDU1IDEyLjI0NjkgMzEuMjUzOSAxMS45MTkxIDMzLjMwMjMgMTEuNjQ2QzMzLjMyOTYgMTMuODU4MiAzMi40Mjg0IDE2LjA3MDUgMzAuNzYyMyAxNy41NDU0WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+';
|
|
101
101
|
|
|
102
|
-
var SWAPLogo =
|
|
102
|
+
var SWAPLogo = 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 = memo(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 =
|
|
1306
|
+
var SWAPShare = 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 = memo(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 =
|
|
2525
|
+
var Container = 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 = memo(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 =
|
|
2665
|
+
var CheckBox = 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 = memo(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 =
|
|
2739
|
+
var RadioButton = 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 = memo(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 =
|
|
2842
|
+
var TextField = 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 = memo(function (props) {
|
|
|
2861
2861
|
horizontal: -16,
|
|
2862
2862
|
},
|
|
2863
2863
|
} }, SelectProps) }), children));
|
|
2864
|
-
}
|
|
2864
|
+
};
|
|
2865
2865
|
|
|
2866
|
-
var Tab =
|
|
2866
|
+
var Tab = 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 = memo(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 =
|
|
2924
|
+
var Tabs = 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 =
|
|
2957
|
+
var SegmentedTab = 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 = memo(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 =
|
|
3431
|
+
var SegmentedTabs = 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,13 +3460,12 @@ var SegmentedTabs = memo(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
|
-
}
|
|
3469
|
-
var TabPanel$1 = memo(TabPanel);
|
|
3468
|
+
}
|
|
3470
3469
|
|
|
3471
3470
|
var useOutlinedInputStyles = makeStyles$1(function (theme) { return ({
|
|
3472
3471
|
root: {
|
|
@@ -3544,7 +3543,7 @@ var useStyles$6 = makeStyles$1(function (theme) { return ({
|
|
|
3544
3543
|
marginTop: 8,
|
|
3545
3544
|
},
|
|
3546
3545
|
}); });
|
|
3547
|
-
var Select =
|
|
3546
|
+
var Select = function (_a) {
|
|
3548
3547
|
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;
|
|
3549
3548
|
var outlinedInputClasses = useOutlinedInputStyles();
|
|
3550
3549
|
var styleProps = {
|
|
@@ -3571,12 +3570,12 @@ var Select = memo(function (_a) {
|
|
|
3571
3570
|
getContentAnchorEl: null,
|
|
3572
3571
|
}, onClick: onClick }, children),
|
|
3573
3572
|
React__default.createElement(FormHelperText, { style: helperTextStyle }, helperText)));
|
|
3574
|
-
}
|
|
3573
|
+
};
|
|
3575
3574
|
|
|
3576
|
-
var Menu =
|
|
3575
|
+
var Menu = function (props) {
|
|
3577
3576
|
var children = props.children, open = props.open, other = __rest(props, ["children", "open"]);
|
|
3578
3577
|
return (React__default.createElement(MaterialMenu, __assign({ open: open }, other), children));
|
|
3579
|
-
}
|
|
3578
|
+
};
|
|
3580
3579
|
|
|
3581
3580
|
var useStyles$7 = makeStyles$1(function (theme) { return ({
|
|
3582
3581
|
root: function (props) { return ({
|
|
@@ -3607,7 +3606,7 @@ var useStyles$7 = makeStyles$1(function (theme) { return ({
|
|
|
3607
3606
|
},
|
|
3608
3607
|
}); },
|
|
3609
3608
|
}); });
|
|
3610
|
-
var MenuItem =
|
|
3609
|
+
var MenuItem = React__default.forwardRef(function (props, ref) {
|
|
3611
3610
|
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"]);
|
|
3612
3611
|
var styleProps = {
|
|
3613
3612
|
width: width,
|
|
@@ -3621,9 +3620,9 @@ var MenuItem = memo(React__default.forwardRef(function (props, ref) {
|
|
|
3621
3620
|
return (React__default.createElement(MaterialMenuItem, __assign({ className: classes.root }, other),
|
|
3622
3621
|
children,
|
|
3623
3622
|
React__default.createElement(ListItemIcon, { style: { justifyContent: "flex-end" } }, iconChildren)));
|
|
3624
|
-
})
|
|
3623
|
+
});
|
|
3625
3624
|
|
|
3626
|
-
var Button =
|
|
3625
|
+
var Button = function (props) {
|
|
3627
3626
|
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"]);
|
|
3628
3627
|
var theme = useTheme$1();
|
|
3629
3628
|
var useStyles = makeStyles$1(function (theme) { return ({
|
|
@@ -3832,7 +3831,7 @@ var Button = React__default.memo(function (props) {
|
|
|
3832
3831
|
? theme.primary.primary800
|
|
3833
3832
|
: theme.black.white,
|
|
3834
3833
|
} }))) : (React__default.createElement("div", { style: { whiteSpace: "nowrap" } }, children))));
|
|
3835
|
-
}
|
|
3834
|
+
};
|
|
3836
3835
|
|
|
3837
3836
|
var useStyles$8 = makeStyles$1(function () { return ({
|
|
3838
3837
|
root: function (props) { return ({
|
|
@@ -3849,7 +3848,7 @@ var useStyles$8 = makeStyles$1(function () { return ({
|
|
|
3849
3848
|
},
|
|
3850
3849
|
}); },
|
|
3851
3850
|
}); });
|
|
3852
|
-
var IconButton =
|
|
3851
|
+
var IconButton = function (props) {
|
|
3853
3852
|
var hoverColor = props.hoverColor, hoverIconColor = props.hoverIconColor, width = props.width, height = props.height, other = __rest(props, ["hoverColor", "hoverIconColor", "width", "height"]);
|
|
3854
3853
|
var theme = useTheme$1();
|
|
3855
3854
|
var styleProps = {
|
|
@@ -4084,7 +4083,7 @@ var IconButton = memo(function (props) {
|
|
|
4084
4083
|
};
|
|
4085
4084
|
var classes = useStyles$8(styleProps);
|
|
4086
4085
|
return React__default.createElement(IconButton$1$1, __assign({ className: classes.root }, other));
|
|
4087
|
-
}
|
|
4086
|
+
};
|
|
4088
4087
|
|
|
4089
4088
|
function TransitionLeft(props) {
|
|
4090
4089
|
return React__default.createElement(Slide, __assign({}, props, { direction: "left" }));
|
|
@@ -4159,7 +4158,7 @@ var useStyles$9 = makeStyles$1(function (theme) { return ({
|
|
|
4159
4158
|
color: "#ffffff",
|
|
4160
4159
|
},
|
|
4161
4160
|
}); });
|
|
4162
|
-
var Snackbar =
|
|
4161
|
+
var Snackbar = function (props) {
|
|
4163
4162
|
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"]);
|
|
4164
4163
|
var styleProps = {
|
|
4165
4164
|
width: width,
|
|
@@ -4198,7 +4197,7 @@ var Snackbar = memo(function (props) {
|
|
|
4198
4197
|
: transitionDirection === "down"
|
|
4199
4198
|
? TransitionDown
|
|
4200
4199
|
: Transition, transitionDuration: transitionDuration })));
|
|
4201
|
-
}
|
|
4200
|
+
};
|
|
4202
4201
|
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" },
|
|
4203
4202
|
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" })));
|
|
4204
4203
|
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" },
|
|
@@ -7194,7 +7193,7 @@ var useStyles$a = makeStyles$1(function (theme) { return ({
|
|
|
7194
7193
|
color: props.backgroundColor,
|
|
7195
7194
|
}); },
|
|
7196
7195
|
}); });
|
|
7197
|
-
var Tooltip =
|
|
7196
|
+
var Tooltip = function (props) {
|
|
7198
7197
|
var theme = useTheme$1();
|
|
7199
7198
|
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"]);
|
|
7200
7199
|
var styleProps = {
|
|
@@ -7227,7 +7226,7 @@ var Tooltip = memo(function (props) {
|
|
|
7227
7226
|
var classes = useStyles$a(styleProps);
|
|
7228
7227
|
return (React__default.createElement(MaterialTooltip, __assign({ classes: { tooltip: classes.root, arrow: classes.arrow } }, other, { arrow: arrow }),
|
|
7229
7228
|
React__default.createElement("div", { style: __assign({ width: "fit-content", height: "fit-content", display: "flex", alignItems: "center", justifyContent: "center" }, childrenStyle) }, children)));
|
|
7230
|
-
}
|
|
7229
|
+
};
|
|
7231
7230
|
|
|
7232
7231
|
var ModalTransitionEffect = React__default.forwardRef(function ModalTransitionEffect(props, ref) {
|
|
7233
7232
|
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"]);
|
|
@@ -7251,7 +7250,7 @@ var ModalTransitionEffect = React__default.forwardRef(function ModalTransitionEf
|
|
|
7251
7250
|
});
|
|
7252
7251
|
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))));
|
|
7253
7252
|
});
|
|
7254
|
-
var Modal =
|
|
7253
|
+
var Modal = React__default.forwardRef(function (props, ref) {
|
|
7255
7254
|
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;
|
|
7256
7255
|
var _a = useState(0), clientHeight = _a[0], setClientHeight = _a[1];
|
|
7257
7256
|
var _b = useState(0), scorllbarWidth = _b[0], setScorllbarWidth = _b[1];
|
|
@@ -7655,7 +7654,7 @@ var Modal = memo(React__default.forwardRef(function (props, ref) {
|
|
|
7655
7654
|
} })) : null,
|
|
7656
7655
|
headChildren ? (headChildren) : (React__default.createElement("div", { className: classes.title },
|
|
7657
7656
|
icon ? icon : null,
|
|
7658
|
-
checked ?
|
|
7657
|
+
checked ? React__default.createElement(CheckCircleIcon, { className: classes.icon }) : null,
|
|
7659
7658
|
failed ? React__default.createElement(WarningIcon, { className: classes.icon }) : null,
|
|
7660
7659
|
React__default.createElement("div", null,
|
|
7661
7660
|
React__default.createElement(Typography, { variant: !mobile ? "h6" : "title" }, title),
|
|
@@ -7725,14 +7724,12 @@ var Modal = memo(React__default.forwardRef(function (props, ref) {
|
|
|
7725
7724
|
? secondaryButton.variant
|
|
7726
7725
|
: "secondary", size: "small", onClick: secondaryButton.onClick, disabled: secondaryButton.disabled, loading: secondaryButton.loading, style: secondaryButton.style }, secondaryButton.title))) : null),
|
|
7727
7726
|
React__default.createElement(Box, { width: "100%", marginBottom: footerDisplayColumn ? 1 : 0 }, primaryButton ? (primaryButton.tooltip ? (React__default.createElement(Tooltip, __assign({}, primaryButton.tooltip),
|
|
7728
|
-
React__default.createElement(Button, { fullWidth: buttonFullWidth ||
|
|
7729
|
-
footerDisplayColumn ||
|
|
7730
|
-
mobile, variant: primaryButton.variant
|
|
7727
|
+
React__default.createElement(Button, { fullWidth: buttonFullWidth || footerDisplayColumn || mobile, variant: primaryButton.variant
|
|
7731
7728
|
? primaryButton.variant
|
|
7732
7729
|
: "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
|
|
7733
7730
|
? primaryButton.variant
|
|
7734
7731
|
: "primary", size: "small", onClick: primaryButton.onClick, disabled: primaryButton.disabled, loading: primaryButton.loading, style: primaryButton.style }, primaryButton.title))) : null))) : null)))))));
|
|
7735
|
-
})
|
|
7732
|
+
});
|
|
7736
7733
|
|
|
7737
7734
|
var useStyles$b = makeStyles$1(function () { return ({
|
|
7738
7735
|
root: function (props) { return ({
|
|
@@ -7751,7 +7748,7 @@ var useStyles$b = makeStyles$1(function () { return ({
|
|
|
7751
7748
|
marginRight: 8,
|
|
7752
7749
|
},
|
|
7753
7750
|
}); });
|
|
7754
|
-
var Banner =
|
|
7751
|
+
var Banner = function (props) {
|
|
7755
7752
|
var _a = useState(false), alignStart = _a[0], setAlignStart = _a[1];
|
|
7756
7753
|
var theme = useTheme$1();
|
|
7757
7754
|
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"]);
|
|
@@ -7806,7 +7803,7 @@ var Banner = memo(function (props) {
|
|
|
7806
7803
|
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" },
|
|
7807
7804
|
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 })))),
|
|
7808
7805
|
React__default.createElement(Typography, { variant: "caption2" }, children)));
|
|
7809
|
-
}
|
|
7806
|
+
};
|
|
7810
7807
|
|
|
7811
7808
|
var useStyles$c = makeStyles$1(function () { return ({
|
|
7812
7809
|
root: function (props) { return ({
|
|
@@ -7825,7 +7822,7 @@ var useStyles$c = makeStyles$1(function () { return ({
|
|
|
7825
7822
|
color: props.color,
|
|
7826
7823
|
}); },
|
|
7827
7824
|
}); });
|
|
7828
|
-
var Chip =
|
|
7825
|
+
var Chip = function (props) {
|
|
7829
7826
|
var theme = useTheme$1();
|
|
7830
7827
|
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"]);
|
|
7831
7828
|
var styleProps = {
|
|
@@ -7868,11 +7865,11 @@ var Chip = memo(function (props) {
|
|
|
7868
7865
|
return (React__default.createElement("div", __assign({ className: classes.root }, other),
|
|
7869
7866
|
React__default.createElement("span", { style: { marginRight: variant === "success" ? 4 : 0 } }, label),
|
|
7870
7867
|
variant === "success" && !icon ? icon_success : icon));
|
|
7871
|
-
}
|
|
7868
|
+
};
|
|
7872
7869
|
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" },
|
|
7873
7870
|
React__default.createElement("path", { d: "M14 4.66666L6 12.6667L2.33333 9L3.27333 8.06L6 10.78L13.06 3.72666L14 4.66666Z", fill: "#00821E" })));
|
|
7874
7871
|
|
|
7875
|
-
var CircularProgress =
|
|
7872
|
+
var CircularProgress = function (props) {
|
|
7876
7873
|
var theme = useTheme$1();
|
|
7877
7874
|
var dark = props.dark, size = props.size, thickness = props.thickness;
|
|
7878
7875
|
return (React__default.createElement("div", { style: {
|
|
@@ -7893,7 +7890,7 @@ var CircularProgress = memo(function (props) {
|
|
|
7893
7890
|
top: -0,
|
|
7894
7891
|
color: dark ? theme.black.white : theme.primary.primary800,
|
|
7895
7892
|
} })));
|
|
7896
|
-
}
|
|
7893
|
+
};
|
|
7897
7894
|
|
|
7898
7895
|
function _extends() {
|
|
7899
7896
|
_extends = Object.assign || function (target) {
|
|
@@ -12057,7 +12054,7 @@ var useStyles$d = makeStyles$1(function (theme) { return ({
|
|
|
12057
12054
|
justifyContent: "center",
|
|
12058
12055
|
},
|
|
12059
12056
|
}); });
|
|
12060
|
-
var Pagination$1 =
|
|
12057
|
+
var Pagination$1 = function (props) {
|
|
12061
12058
|
// const theme = useTheme();
|
|
12062
12059
|
var other = __rest(props, []);
|
|
12063
12060
|
var styleProps = {};
|
|
@@ -12068,7 +12065,7 @@ var Pagination$1 = memo(function (props) {
|
|
|
12068
12065
|
selected: classes.selected,
|
|
12069
12066
|
ellipsis: classes.ellipsis,
|
|
12070
12067
|
} }))); } })));
|
|
12071
|
-
}
|
|
12068
|
+
};
|
|
12072
12069
|
|
|
12073
12070
|
var useStyles$e = makeStyles$1(function (theme) { return ({
|
|
12074
12071
|
root: function (props) { return ({
|
|
@@ -12088,7 +12085,7 @@ var useStyles$e = makeStyles$1(function (theme) { return ({
|
|
|
12088
12085
|
borderRadius: "50%",
|
|
12089
12086
|
}); },
|
|
12090
12087
|
}); });
|
|
12091
|
-
var Progress =
|
|
12088
|
+
var Progress = function (props) {
|
|
12092
12089
|
var theme = useTheme$1();
|
|
12093
12090
|
var
|
|
12094
12091
|
// onClick,
|
|
@@ -12145,7 +12142,7 @@ var Progress = memo(function (props) {
|
|
|
12145
12142
|
} })),
|
|
12146
12143
|
React__default.createElement(Typography, { variant: "caption1", color: i + 1 === step ? "black1000" : "black700", style: { marginTop: 8 } }, label ? label[i] : null)));
|
|
12147
12144
|
})));
|
|
12148
|
-
}
|
|
12145
|
+
};
|
|
12149
12146
|
|
|
12150
12147
|
var useStyles$f = makeStyles$1(function (theme) { return ({
|
|
12151
12148
|
popper: function (props) { return ({
|
|
@@ -12326,7 +12323,7 @@ var AutoComplete = function (props) {
|
|
|
12326
12323
|
} })))));
|
|
12327
12324
|
};
|
|
12328
12325
|
|
|
12329
|
-
var TaxTextField =
|
|
12326
|
+
var TaxTextField = function (_a) {
|
|
12330
12327
|
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;
|
|
12331
12328
|
var _b = useState(""), modalIncome = _b[0], setModalIncome = _b[1];
|
|
12332
12329
|
var _c = useState(""), modalExpense = _c[0], setModalExpense = _c[1];
|
|
@@ -12402,9 +12399,7 @@ var TaxTextField = memo(function (_a) {
|
|
|
12402
12399
|
display: "flex",
|
|
12403
12400
|
justifyContent: "space-between",
|
|
12404
12401
|
flexWrap: "nowrap",
|
|
12405
|
-
color: modalIncome === option.code
|
|
12406
|
-
? theme.primary.primary400
|
|
12407
|
-
: null,
|
|
12402
|
+
color: modalIncome === option.code ? theme.primary.primary400 : null,
|
|
12408
12403
|
}, 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
12404
|
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
12405
|
option.code,
|
|
@@ -12469,7 +12464,7 @@ var TaxTextField = memo(function (_a) {
|
|
|
12469
12464
|
return null;
|
|
12470
12465
|
}
|
|
12471
12466
|
})()));
|
|
12472
|
-
}
|
|
12467
|
+
};
|
|
12473
12468
|
var SWAPIncomeTypes$1 = [
|
|
12474
12469
|
{
|
|
12475
12470
|
code: "9A",
|
|
@@ -12673,12 +12668,12 @@ var useStyles$g = makeStyles$1(function (theme) { return ({
|
|
|
12673
12668
|
transform: "unset",
|
|
12674
12669
|
}); },
|
|
12675
12670
|
}); });
|
|
12676
|
-
var Skeleton$1 =
|
|
12671
|
+
var Skeleton$1 = function (props) {
|
|
12677
12672
|
var other = __rest(props, []);
|
|
12678
12673
|
var styleProps = {};
|
|
12679
12674
|
var classes = useStyles$g(styleProps);
|
|
12680
12675
|
return React__default.createElement(MaterialSkeleton, __assign({ classes: { root: classes.root } }, other));
|
|
12681
|
-
}
|
|
12676
|
+
};
|
|
12682
12677
|
|
|
12683
12678
|
var useOutlinedInputStyles$1 = makeStyles$1(function (theme) { return ({
|
|
12684
12679
|
root: {
|
|
@@ -12742,7 +12737,7 @@ var useStyles$h = makeStyles$1(function (theme) { return ({
|
|
|
12742
12737
|
marginTop: 8,
|
|
12743
12738
|
},
|
|
12744
12739
|
}); });
|
|
12745
|
-
var Dropdown =
|
|
12740
|
+
var Dropdown = function (props) {
|
|
12746
12741
|
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
12742
|
var styleProps = {
|
|
12748
12743
|
width: width,
|
|
@@ -12755,7 +12750,7 @@ var Dropdown = memo(function (props) {
|
|
|
12755
12750
|
icon: classes.icon,
|
|
12756
12751
|
}, input: React__default.createElement(OutlinedInput, { classes: outlinedInputClasses }), inputProps: __assign({ classes: { root: classes.inputRoot } }, inputProps), MenuProps: __assign({ classes: { paper: classes.menuRoot }, getContentAnchorEl: null }, MenuProps) }), children),
|
|
12757
12752
|
React__default.createElement(FormHelperText, { style: helperTextStyle }, helperText)));
|
|
12758
|
-
}
|
|
12753
|
+
};
|
|
12759
12754
|
|
|
12760
12755
|
var useStyles$i = makeStyles$1(function (theme) { return ({
|
|
12761
12756
|
root: function (props) { return ({
|
|
@@ -12795,7 +12790,7 @@ var useStyles$i = makeStyles$1(function (theme) { return ({
|
|
|
12795
12790
|
},
|
|
12796
12791
|
}); },
|
|
12797
12792
|
}); });
|
|
12798
|
-
var RadioList =
|
|
12793
|
+
var RadioList = function (props) {
|
|
12799
12794
|
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
12795
|
var styleProps = {
|
|
12801
12796
|
checked: checked,
|
|
@@ -12848,7 +12843,7 @@ var RadioList = memo(function (props) {
|
|
|
12848
12843
|
React__default.createElement(Typography, { variant: "title" }, title),
|
|
12849
12844
|
multiline ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null))),
|
|
12850
12845
|
!multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
|
|
12851
|
-
}
|
|
12846
|
+
};
|
|
12852
12847
|
|
|
12853
12848
|
var useStyles$j = makeStyles$1(function (theme) { return ({
|
|
12854
12849
|
root: function (props) { return ({
|
|
@@ -12888,7 +12883,7 @@ var useStyles$j = makeStyles$1(function (theme) { return ({
|
|
|
12888
12883
|
},
|
|
12889
12884
|
}); },
|
|
12890
12885
|
}); });
|
|
12891
|
-
var CheckBoxList =
|
|
12886
|
+
var CheckBoxList = function (props) {
|
|
12892
12887
|
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
12888
|
var styleProps = {
|
|
12894
12889
|
checked: checked,
|
|
@@ -12941,7 +12936,7 @@ var CheckBoxList = memo(function (props) {
|
|
|
12941
12936
|
React__default.createElement(Typography, { variant: "title" }, title),
|
|
12942
12937
|
multiline ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null))),
|
|
12943
12938
|
!multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
|
|
12944
|
-
}
|
|
12939
|
+
};
|
|
12945
12940
|
|
|
12946
12941
|
var useStyles$k = makeStyles$1(function (theme) { return ({
|
|
12947
12942
|
root: function (props) { return ({
|
|
@@ -12960,7 +12955,7 @@ var useStyles$k = makeStyles$1(function (theme) { return ({
|
|
|
12960
12955
|
border: "1px solid " + theme.primary.primary400,
|
|
12961
12956
|
},
|
|
12962
12957
|
}); });
|
|
12963
|
-
var Link =
|
|
12958
|
+
var Link = function (props) {
|
|
12964
12959
|
var color = props.color, other = __rest(props, ["color"]);
|
|
12965
12960
|
var theme = useTheme$1();
|
|
12966
12961
|
var styleProps = {
|
|
@@ -13082,7 +13077,7 @@ var Link = memo(function (props) {
|
|
|
13082
13077
|
focusVisible: classes.focusVisible,
|
|
13083
13078
|
underlineHover: classes.underlineHover,
|
|
13084
13079
|
}, tabIndex: 0 }, other)));
|
|
13085
|
-
}
|
|
13080
|
+
};
|
|
13086
13081
|
|
|
13087
13082
|
var useStyles$l = makeStyles$1(function (theme) { return ({
|
|
13088
13083
|
root: function (props) { return ({
|
|
@@ -13094,7 +13089,7 @@ var useStyles$l = makeStyles$1(function (theme) { return ({
|
|
|
13094
13089
|
padding: props.matchSM ? 40 : props.matchXS ? 24 : 16,
|
|
13095
13090
|
}); },
|
|
13096
13091
|
}); });
|
|
13097
|
-
var Paper =
|
|
13092
|
+
var Paper = function (props) {
|
|
13098
13093
|
var height = props.height, width = props.width, other = __rest(props, ["height", "width"]);
|
|
13099
13094
|
var matchSM = useMediaQuery("(min-width:576px)");
|
|
13100
13095
|
var matchXS = useMediaQuery("(min-width:375px)");
|
|
@@ -13108,7 +13103,7 @@ var Paper = React__default.memo(function (props) {
|
|
|
13108
13103
|
return (React__default.createElement(Paper$1$1, __assign({ variant: "outlined", classes: {
|
|
13109
13104
|
root: classes.root,
|
|
13110
13105
|
} }, other)));
|
|
13111
|
-
}
|
|
13106
|
+
};
|
|
13112
13107
|
|
|
13113
13108
|
var useStyles$m = makeStyles$1(function (theme) { return ({
|
|
13114
13109
|
root: {
|
|
@@ -13173,7 +13168,7 @@ var useStyles$m = makeStyles$1(function (theme) { return ({
|
|
|
13173
13168
|
boxShadow: "0px 2px 2px rgba(0, 0, 0, 0.15)",
|
|
13174
13169
|
},
|
|
13175
13170
|
}); });
|
|
13176
|
-
var Switch =
|
|
13171
|
+
var Switch = function (props) {
|
|
13177
13172
|
var disabled = props.disabled, other = __rest(props, ["disabled"]);
|
|
13178
13173
|
var styleProps = { disabled: disabled };
|
|
13179
13174
|
var classes = useStyles$m(styleProps);
|
|
@@ -13188,7 +13183,7 @@ var Switch = memo(function (props) {
|
|
|
13188
13183
|
React__default.createElement(Fade, { in: true, timeout: { enter: 200, exit: 200 } },
|
|
13189
13184
|
React__default.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
13190
13185
|
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
|
-
}
|
|
13186
|
+
};
|
|
13192
13187
|
|
|
13193
13188
|
var useStylesForMonthButton = makeStyles$1(function (theme) { return ({
|
|
13194
13189
|
root: function (props) { return ({
|
|
@@ -13262,7 +13257,7 @@ var useStylesForCalendar = makeStyles$1(function (theme) { return ({
|
|
|
13262
13257
|
},
|
|
13263
13258
|
},
|
|
13264
13259
|
}); });
|
|
13265
|
-
var DatePicker =
|
|
13260
|
+
var DatePicker = function (props) {
|
|
13266
13261
|
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
13262
|
var _a = useState(Number(new Date().getFullYear())), year = _a[0], setYear = _a[1];
|
|
13268
13263
|
var _b = useState(Number(new Date().getMonth() + 1)), month = _b[0], setMonth = _b[1];
|
|
@@ -13492,7 +13487,7 @@ var DatePicker = memo(function (props) {
|
|
|
13492
13487
|
setNextMonth(nextMonth + 1);
|
|
13493
13488
|
}
|
|
13494
13489
|
}, defaultValue: defaultValue, setIsClicked: setIsClicked, mobile: mobile })) }, ModalProps)))));
|
|
13495
|
-
}
|
|
13490
|
+
};
|
|
13496
13491
|
var MonthButton = function (_a) {
|
|
13497
13492
|
var index = _a.index, month = _a.month, setMonth = _a.setMonth, setIsOpenMonthSelector = _a.setIsOpenMonthSelector, setIsClicked = _a.setIsClicked;
|
|
13498
13493
|
var styleProps = {
|
|
@@ -13610,7 +13605,7 @@ var icon_arrowright = (React__default.createElement("svg", { width: "20", height
|
|
|
13610
13605
|
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
13606
|
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
13607
|
|
|
13613
|
-
var Breadcrumb =
|
|
13608
|
+
var Breadcrumb = function (props) {
|
|
13614
13609
|
var maxItems = props.maxItems, separator = props.separator, children = props.children, other = __rest(props, ["maxItems", "separator", "children"]);
|
|
13615
13610
|
var _a = useState(false), isHoverThreeDots = _a[0], setIsHoverThreeDots = _a[1];
|
|
13616
13611
|
var _b = useState(null), anchorEl = _b[0], setAnchorEl = _b[1];
|
|
@@ -13669,21 +13664,21 @@ var Breadcrumb = memo(function (props) {
|
|
|
13669
13664
|
}
|
|
13670
13665
|
} }, content));
|
|
13671
13666
|
}))));
|
|
13672
|
-
}
|
|
13667
|
+
};
|
|
13673
13668
|
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
13669
|
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
13670
|
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
13671
|
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
13672
|
React__default.createElement("path", { d: "M0 18.1H11.685V18.8H0V18.1Z", fill: "#4B4B4B" })));
|
|
13678
13673
|
|
|
13679
|
-
var BreadcrumbItem =
|
|
13674
|
+
var BreadcrumbItem = function (props) {
|
|
13680
13675
|
var last = props.last, other = __rest(props, ["last"]);
|
|
13681
13676
|
return (React__default.createElement(Link, __assign({}, other, { color: last ? "black1000" : "black800", style: {
|
|
13682
13677
|
fontWeight: last ? 700 : 400,
|
|
13683
13678
|
cursor: last ? "unset" : undefined,
|
|
13684
13679
|
textDecoration: last ? "none" : undefined,
|
|
13685
13680
|
} })));
|
|
13686
|
-
}
|
|
13681
|
+
};
|
|
13687
13682
|
|
|
13688
13683
|
var useStyles$n = makeStyles$1(function (theme) { return ({
|
|
13689
13684
|
root: function (props) { return ({
|
|
@@ -13707,7 +13702,7 @@ var useStyles$n = makeStyles$1(function (theme) { return ({
|
|
|
13707
13702
|
padding: 0,
|
|
13708
13703
|
},
|
|
13709
13704
|
}); });
|
|
13710
|
-
var Card =
|
|
13705
|
+
var Card = function (props) {
|
|
13711
13706
|
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
13707
|
var useStylesProps = { width: width, height: height };
|
|
13713
13708
|
var classes = useStyles$n(useStylesProps);
|
|
@@ -13730,7 +13725,7 @@ var Card = memo(function (props) {
|
|
|
13730
13725
|
? undefined
|
|
13731
13726
|
: "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
13727
|
React__default.createElement(Skeleton$1, { width: "100%", height: "100%" }))))));
|
|
13733
|
-
}
|
|
13728
|
+
};
|
|
13734
13729
|
|
|
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
|
|
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 };
|
|
13736
13731
|
//# sourceMappingURL=index.esm.js.map
|