@yosgo/swap-ui 1.0.136 → 1.0.138
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/AppBar/AppBar.d.ts +0 -0
- package/build/AppBar/AppBar.types.d.ts +0 -0
- package/build/AutoComplete/AutoComplete.d.ts +0 -0
- package/build/AutoComplete/AutoComplete.types.d.ts +0 -0
- package/build/AutoComplete/BankCodes.d.ts +0 -0
- package/build/Banner/Banner.d.ts +0 -0
- package/build/Banner/Banner.types.d.ts +0 -0
- package/build/Breadcrumb/Breadcrumb.d.ts +0 -0
- package/build/Breadcrumb/Breadcrumb.types.d.ts +0 -0
- package/build/BreadcrumbItem/BreadcrumbItem.d.ts +0 -0
- package/build/BreadcrumbItem/BreadcrumbItem.types.d.ts +0 -0
- package/build/Button/Button.d.ts +0 -0
- package/build/Button/Button.types.d.ts +0 -0
- package/build/Card/Card.d.ts +0 -0
- package/build/Card/Card.types.d.ts +0 -0
- package/build/CheckBox/CheckBox.d.ts +0 -0
- package/build/CheckBox/CheckBox.types.d.ts +0 -0
- package/build/CheckBox/CheckBoxList.d.ts +0 -0
- package/build/CheckBox/CheckBoxList.types.d.ts +0 -0
- package/build/CheckBox/RadioButton.d.ts +0 -0
- package/build/CheckBox/RadioButton.types.d.ts +0 -0
- package/build/CheckBox/RadioList.d.ts +0 -0
- package/build/CheckBox/RadioList.types.d.ts +0 -0
- package/build/Chip/Chip.d.ts +0 -0
- package/build/Chip/Chip.types.d.ts +0 -0
- package/build/CircularProgress/CircularProgress.d.ts +0 -0
- package/build/CircularProgress/CircularProgress.types.d.ts +0 -0
- package/build/Container/Container.d.ts +0 -0
- package/build/Container/Container.types.d.ts +0 -0
- package/build/DatePicker/DatePicker.d.ts +0 -0
- package/build/DatePicker/DatePicker.types.d.ts +0 -0
- package/build/Dropdown/Dropdown.d.ts +0 -0
- package/build/Dropdown/Dropdown.types.d.ts +0 -0
- package/build/IconButton/IconButton.d.ts +0 -0
- package/build/IconButton/IconButton.types.d.ts +0 -0
- package/build/LandingPage/LandingPage.d.ts +0 -0
- package/build/LandingPage/LandingPage.types.d.ts +0 -0
- package/build/LandingPage/LandingPageMobile.d.ts +0 -0
- package/build/LandingPage/LandingPageMobile.types.d.ts +0 -0
- package/build/Link/Link.d.ts +0 -0
- package/build/Link/Link.types.d.ts +0 -0
- package/build/Menu/Menu.d.ts +0 -0
- package/build/Menu/Menu.types.d.ts +0 -0
- package/build/Menu/MenuItem.d.ts +0 -0
- package/build/Menu/MenuItem.types.d.ts +0 -0
- package/build/Menu/Select.d.ts +0 -0
- package/build/Menu/Select.types.d.ts +0 -0
- package/build/Modal/Modal.d.ts +0 -0
- package/build/Modal/Modal.types.d.ts +0 -0
- package/build/Pagination/Pagination.d.ts +0 -0
- package/build/Pagination/Pagination.types.d.ts +0 -0
- package/build/Paper/Paper.d.ts +0 -0
- package/build/Paper/Paper.types.d.ts +0 -0
- package/build/Progress/Progress.d.ts +0 -0
- package/build/Progress/Progress.types.d.ts +0 -0
- package/build/SWAPAppBar/SWAPAppBar.d.ts +0 -0
- package/build/SWAPAppBar/SWAPAppBar.types.d.ts +0 -0
- package/build/SWAPBanner/SWAPBanner.d.ts +0 -0
- package/build/SWAPBanner/SWAPBanner.types.d.ts +0 -0
- package/build/SWAPCopyField/SWAPCopyField.d.ts +0 -0
- package/build/SWAPCopyField/SWAPCopyField.types.d.ts +0 -0
- package/build/SWAPDialog/SWAPDialog.d.ts +0 -0
- package/build/SWAPDialog/SWAPDialog.types.d.ts +0 -0
- package/build/SWAPLogo/SWAPLogo.d.ts +0 -0
- package/build/SWAPLogo/SWAPLogo.types.d.ts +0 -0
- package/build/SWAPModal/SWAPModal.d.ts +0 -0
- package/build/SWAPModal/SWAPModal.types.d.ts +0 -0
- package/build/SWAPShare/SWAPShare.d.ts +0 -0
- package/build/SWAPShare/SWAPShare.types.d.ts +0 -0
- package/build/SWAPSpace/SWAPSpace.d.ts +0 -0
- package/build/SWAPSpace/SWAPSpace.types.d.ts +0 -0
- package/build/SWAPTaxField/SWAPTaxField.d.ts +0 -0
- package/build/SWAPTaxField/SWAPTaxField.types.d.ts +0 -0
- package/build/SWAPTheme/SWAPTheme.d.ts +0 -0
- package/build/SWAPTheme/SWAPTheme.types.d.ts +0 -0
- package/build/Skeleton/Skeleton.d.ts +0 -0
- package/build/Skeleton/Skeleton.types.d.ts +0 -0
- package/build/Snackbar/Snackbar.d.ts +0 -0
- package/build/Snackbar/Snackbar.types.d.ts +0 -0
- package/build/Styles/Styles.d.ts +0 -0
- package/build/Styles/Styles.types.d.ts +0 -0
- package/build/Switch/Switch.d.ts +0 -0
- package/build/Switch/Switch.types.d.ts +0 -0
- package/build/Tab/SegmentedTab.d.ts +0 -0
- package/build/Tab/SegmentedTab.types.d.ts +0 -0
- package/build/Tab/SegmentedTabs.d.ts +0 -0
- package/build/Tab/SegmentedTabs.types.d.ts +0 -0
- package/build/Tab/Tab.d.ts +0 -0
- package/build/Tab/Tab.types.d.ts +0 -0
- package/build/Tab/TabPanel.d.ts +1 -2
- package/build/Tab/Tabs.d.ts +0 -0
- package/build/Tab/Tabs.types.d.ts +0 -0
- package/build/Table/Table.d.ts +0 -0
- package/build/Table/Table.types.d.ts +0 -0
- package/build/TaxTextField/TaxTextField.d.ts +0 -0
- package/build/TaxTextField/TaxTextField.types.d.ts +0 -0
- package/build/TextField/TextField.d.ts +0 -0
- package/build/TextField/TextField.types.d.ts +0 -0
- package/build/Tooltip/Tooltip.d.ts +0 -0
- package/build/Tooltip/Tooltip.types.d.ts +0 -0
- package/build/Typography/Typography.d.ts +0 -0
- package/build/Typography/Typography.types.d.ts +0 -0
- package/build/index.d.ts +0 -0
- package/build/index.esm.js +152 -146
- package/build/index.esm.js.map +1 -1
- package/build/index.js +150 -144
- package/build/index.js.map +1 -1
- package/build/utils/useBreakpoints.d.ts +0 -0
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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,
|
|
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, makeStyles as makeStyles$1, useMediaQuery, FormControlLabel, OutlinedInput, FormHelperText, ListItemIcon, useTheme as useTheme$1, 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,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNMjcuMzQ4MiAyMS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iAyNy42NzYxIDI2LjQ0OVpNMzAuNzYyMyAxNy41NDU0QzMwLjIxNjEgMTguMDM3IDI5LjYxNTIgMTguNDQ2NiAyOC45NTk3IDE4LjgwMTdDMjguNDY4MSAxNi43MjYgMjcuODY3MyAxNC42Nzc2IDI3LjE4NDUgMTIuNjI5MkMyOS4yMDU1IDEyLjI0NjkgMzEuMjUzOSAxMS45MTkxIDMzLjMwMjMgMTEuNjQ2QzMzLjMyOTYgMTMuODU4MiAzMi40Mjg0IDE2LjA3MDUgMzAuNzYyMyAxNy41NDU0WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+';
|
|
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
|
|
|
@@ -2159,12 +2159,11 @@ var Styles = function (_a) {
|
|
|
2159
2159
|
var StylesWrap = styled.div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject([""], [""])));
|
|
2160
2160
|
var templateObject_1$8;
|
|
2161
2161
|
|
|
2162
|
-
var
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
color: mode === "dark"
|
|
2162
|
+
var useStyles = makeStyles$1(function (theme) { return ({
|
|
2163
|
+
root: {
|
|
2164
|
+
color: function (_a) {
|
|
2165
|
+
var mode = _a.mode, color = _a.color;
|
|
2166
|
+
return mode === "dark"
|
|
2168
2167
|
? color === "primary"
|
|
2169
2168
|
? theme.black.white
|
|
2170
2169
|
: color === "secondary"
|
|
@@ -2398,8 +2397,11 @@ var Typography = React__default.memo(function (_a) {
|
|
|
2398
2397
|
? theme.black.black900
|
|
2399
2398
|
: color === "black1000"
|
|
2400
2399
|
? theme.black.black1000
|
|
2401
|
-
: theme.black.black1000
|
|
2402
|
-
|
|
2400
|
+
: theme.black.black1000;
|
|
2401
|
+
},
|
|
2402
|
+
fontSize: function (_a) {
|
|
2403
|
+
var variant = _a.variant;
|
|
2404
|
+
return variant === "d1"
|
|
2403
2405
|
? "4.5rem"
|
|
2404
2406
|
: variant === "d2"
|
|
2405
2407
|
? "4rem"
|
|
@@ -2443,8 +2445,11 @@ var Typography = React__default.memo(function (_a) {
|
|
|
2443
2445
|
? "1rem"
|
|
2444
2446
|
: variant === "button_s"
|
|
2445
2447
|
? "0.875rem"
|
|
2446
|
-
: "1rem"
|
|
2447
|
-
|
|
2448
|
+
: "1rem";
|
|
2449
|
+
},
|
|
2450
|
+
fontWeight: function (_a) {
|
|
2451
|
+
var variant = _a.variant;
|
|
2452
|
+
return variant === "d1" ||
|
|
2448
2453
|
variant === "d2" ||
|
|
2449
2454
|
variant === "d3" ||
|
|
2450
2455
|
variant === "d4" ||
|
|
@@ -2478,8 +2483,11 @@ var Typography = React__default.memo(function (_a) {
|
|
|
2478
2483
|
variant === "tiny2" ||
|
|
2479
2484
|
variant === "tiny2_loose"
|
|
2480
2485
|
? 400
|
|
2481
|
-
: 400
|
|
2482
|
-
|
|
2486
|
+
: 400;
|
|
2487
|
+
},
|
|
2488
|
+
lineHeight: function (_a) {
|
|
2489
|
+
var variant = _a.variant;
|
|
2490
|
+
return variant === "d1" ||
|
|
2483
2491
|
variant === "d2" ||
|
|
2484
2492
|
variant === "d3" ||
|
|
2485
2493
|
variant === "h1" ||
|
|
@@ -2514,15 +2522,18 @@ var Typography = React__default.memo(function (_a) {
|
|
|
2514
2522
|
? 1.6
|
|
2515
2523
|
: variant === "button_l" || variant === "button_s"
|
|
2516
2524
|
? 1.125
|
|
2517
|
-
: 1.4
|
|
2518
|
-
letterSpacing: "0em",
|
|
2525
|
+
: 1.4;
|
|
2519
2526
|
},
|
|
2520
|
-
|
|
2521
|
-
|
|
2527
|
+
letterSpacing: "0em",
|
|
2528
|
+
},
|
|
2529
|
+
}); });
|
|
2530
|
+
var Typography = React__default.memo(function (_a) {
|
|
2531
|
+
var variant = _a.variant, children = _a.children, mode = _a.mode, color = _a.color, style = _a.style;
|
|
2532
|
+
var classes = useStyles({ variant: variant, mode: mode, color: color });
|
|
2522
2533
|
return (React__default.createElement(MaterialTypography, { className: classes.root, style: style }, children));
|
|
2523
2534
|
});
|
|
2524
2535
|
|
|
2525
|
-
var Container =
|
|
2536
|
+
var Container = function (_a) {
|
|
2526
2537
|
var children = _a.children, style = _a.style, maxWidth = _a.maxWidth, padding = _a.padding;
|
|
2527
2538
|
var XXS = useBreakpoints("xxs");
|
|
2528
2539
|
var XS = useBreakpoints("xs");
|
|
@@ -2577,7 +2588,7 @@ var Container = memo(function (_a) {
|
|
|
2577
2588
|
});
|
|
2578
2589
|
var classes = useStyles();
|
|
2579
2590
|
return (React__default.createElement(MaterialContainer, { className: classes.root, style: style }, children));
|
|
2580
|
-
}
|
|
2591
|
+
};
|
|
2581
2592
|
|
|
2582
2593
|
function useBreakpoints(breakpoints) {
|
|
2583
2594
|
var matches = useMediaQuery("(min-width:" + (breakpoints === "xxs"
|
|
@@ -2598,7 +2609,7 @@ function useBreakpoints(breakpoints) {
|
|
|
2598
2609
|
return matches;
|
|
2599
2610
|
}
|
|
2600
2611
|
|
|
2601
|
-
var useStyles = makeStyles$1(function (theme) { return ({
|
|
2612
|
+
var useStyles$1 = makeStyles$1(function (theme) { return ({
|
|
2602
2613
|
root: function (props) { return ({
|
|
2603
2614
|
width: 40,
|
|
2604
2615
|
height: 40,
|
|
@@ -2662,17 +2673,17 @@ var useStyles = makeStyles$1(function (theme) { return ({
|
|
|
2662
2673
|
},
|
|
2663
2674
|
}); },
|
|
2664
2675
|
}); });
|
|
2665
|
-
var CheckBox =
|
|
2676
|
+
var CheckBox = function (props) {
|
|
2666
2677
|
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
2678
|
var styleProps = {
|
|
2668
2679
|
disableHover: disableHover,
|
|
2669
2680
|
};
|
|
2670
|
-
var classes = useStyles(styleProps);
|
|
2681
|
+
var classes = useStyles$1(styleProps);
|
|
2671
2682
|
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
2683
|
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
|
-
}
|
|
2684
|
+
};
|
|
2674
2685
|
|
|
2675
|
-
var useStyles$
|
|
2686
|
+
var useStyles$2 = makeStyles$1(function (theme) { return ({
|
|
2676
2687
|
root: function (props) { return ({
|
|
2677
2688
|
width: 40,
|
|
2678
2689
|
height: 40,
|
|
@@ -2736,18 +2747,18 @@ var useStyles$1 = makeStyles$1(function (theme) { return ({
|
|
|
2736
2747
|
},
|
|
2737
2748
|
}); },
|
|
2738
2749
|
}); });
|
|
2739
|
-
var RadioButton =
|
|
2750
|
+
var RadioButton = function (props) {
|
|
2740
2751
|
var label = props.label, labelPlacement = props.labelPlacement, disableHover = props.disableHover, other = __rest(props, ["label", "labelPlacement", "disableHover"]);
|
|
2741
2752
|
var styleProps = {
|
|
2742
2753
|
disableHover: disableHover,
|
|
2743
2754
|
};
|
|
2744
|
-
var classes = useStyles$
|
|
2755
|
+
var classes = useStyles$2(styleProps);
|
|
2745
2756
|
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
2757
|
React__default.createElement("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2747
2758
|
React__default.createElement("circle", { cx: "5", cy: "5", r: "5", fill: "white" }))), icon: React__default.createElement("span", { className: classes.icon }) }, other)) }));
|
|
2748
|
-
}
|
|
2759
|
+
};
|
|
2749
2760
|
|
|
2750
|
-
var useStyles$
|
|
2761
|
+
var useStyles$3 = makeStyles$1(function (theme) { return ({
|
|
2751
2762
|
root: {
|
|
2752
2763
|
"& .MuiFormHelperText-contained": {
|
|
2753
2764
|
marginLeft: 16,
|
|
@@ -2839,7 +2850,7 @@ var useStyles$2 = makeStyles$1(function (theme) { return ({
|
|
|
2839
2850
|
"&.Mui-error": { color: theme.black.black800 },
|
|
2840
2851
|
},
|
|
2841
2852
|
}); });
|
|
2842
|
-
var TextField =
|
|
2853
|
+
var TextField = function (props) {
|
|
2843
2854
|
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
2855
|
var styleProps = {
|
|
2845
2856
|
width: width,
|
|
@@ -2847,7 +2858,7 @@ var TextField = memo(function (props) {
|
|
|
2847
2858
|
height: height,
|
|
2848
2859
|
select: select,
|
|
2849
2860
|
};
|
|
2850
|
-
var classes = useStyles$
|
|
2861
|
+
var classes = useStyles$3(styleProps);
|
|
2851
2862
|
return (React__default.createElement(MaterialTextField, __assign({ fullWidth: fullWidth, select: select }, other, { className: classes.root, variant: "outlined", InputProps: __assign({ classes: {
|
|
2852
2863
|
root: classes.inputRoot,
|
|
2853
2864
|
input: classes.input,
|
|
@@ -2861,9 +2872,9 @@ var TextField = memo(function (props) {
|
|
|
2861
2872
|
horizontal: -16,
|
|
2862
2873
|
},
|
|
2863
2874
|
} }, SelectProps) }), children));
|
|
2864
|
-
}
|
|
2875
|
+
};
|
|
2865
2876
|
|
|
2866
|
-
var Tab =
|
|
2877
|
+
var Tab = function (props) {
|
|
2867
2878
|
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
2879
|
var useStyles = makeStyles$1(function (theme) { return ({
|
|
2869
2880
|
root: {
|
|
@@ -2913,24 +2924,24 @@ var Tab = memo(function (props) {
|
|
|
2913
2924
|
}, label: React__default.createElement("div", { className: classes.indicatorRoot },
|
|
2914
2925
|
label,
|
|
2915
2926
|
selected ? React__default.createElement("div", { className: classes.selected_indicator }) : null), disableRipple: true })));
|
|
2916
|
-
}
|
|
2927
|
+
};
|
|
2917
2928
|
|
|
2918
|
-
var useStyles$
|
|
2929
|
+
var useStyles$4 = makeStyles$1({
|
|
2919
2930
|
root: {},
|
|
2920
2931
|
indicatorRoot: {
|
|
2921
2932
|
backgroundColor: "transparent",
|
|
2922
2933
|
},
|
|
2923
2934
|
});
|
|
2924
|
-
var Tabs =
|
|
2935
|
+
var Tabs = function (props) {
|
|
2925
2936
|
var children = props.children, other = __rest(props, ["children"]);
|
|
2926
|
-
var classes = useStyles$
|
|
2937
|
+
var classes = useStyles$4();
|
|
2927
2938
|
return (React__default.createElement(MaterialTabs, __assign({}, other, { classes: {
|
|
2928
2939
|
root: classes.root,
|
|
2929
2940
|
indicator: classes.indicatorRoot,
|
|
2930
2941
|
} }), children));
|
|
2931
|
-
}
|
|
2942
|
+
};
|
|
2932
2943
|
|
|
2933
|
-
var useStyles$
|
|
2944
|
+
var useStyles$5 = makeStyles$1(function (theme) { return ({
|
|
2934
2945
|
root: function (props) { return ({
|
|
2935
2946
|
//SWAPTheme調整
|
|
2936
2947
|
textTransform: "unset",
|
|
@@ -2954,7 +2965,7 @@ var useStyles$4 = makeStyles$1(function (theme) { return ({
|
|
|
2954
2965
|
opacity: 1,
|
|
2955
2966
|
},
|
|
2956
2967
|
}); });
|
|
2957
|
-
var SegmentedTab =
|
|
2968
|
+
var SegmentedTab = function (props) {
|
|
2958
2969
|
var width = props.width, height = props.height, fontSize = props.fontSize, flex = props.flex, other = __rest(props, ["width", "height", "fontSize", "flex"]);
|
|
2959
2970
|
var styleProps = {
|
|
2960
2971
|
width: width,
|
|
@@ -2962,9 +2973,9 @@ var SegmentedTab = memo(function (props) {
|
|
|
2962
2973
|
fontSize: fontSize,
|
|
2963
2974
|
flex: flex,
|
|
2964
2975
|
};
|
|
2965
|
-
var classes = useStyles$
|
|
2976
|
+
var classes = useStyles$5(styleProps);
|
|
2966
2977
|
return (React__default.createElement(MaterialTab, __assign({}, other, { disableRipple: true, classes: { textColorInherit: classes.text }, className: classes.root })));
|
|
2967
|
-
}
|
|
2978
|
+
};
|
|
2968
2979
|
|
|
2969
2980
|
var smoothscroll = createCommonjsModule(function (module, exports) {
|
|
2970
2981
|
/* smoothscroll v0.4.4 - 2019 - Dustan Kasten, Jeremias Menichelli - MIT License */
|
|
@@ -3399,7 +3410,7 @@ var smoothscroll = createCommonjsModule(function (module, exports) {
|
|
|
3399
3410
|
});
|
|
3400
3411
|
var smoothscroll_1 = smoothscroll.polyfill;
|
|
3401
3412
|
|
|
3402
|
-
var useStyles$
|
|
3413
|
+
var useStyles$6 = makeStyles$1(function (theme) { return ({
|
|
3403
3414
|
root: function (props) { return ({
|
|
3404
3415
|
width: props.width,
|
|
3405
3416
|
boxSizing: "border-box",
|
|
@@ -3428,13 +3439,13 @@ var useStyles$5 = makeStyles$1(function (theme) { return ({
|
|
|
3428
3439
|
},
|
|
3429
3440
|
},
|
|
3430
3441
|
}); });
|
|
3431
|
-
var SegmentedTabs =
|
|
3442
|
+
var SegmentedTabs = function (_a) {
|
|
3432
3443
|
var children = _a.children, width = _a.width, slide = _a.slide, other = __rest(_a, ["children", "width", "slide"]);
|
|
3433
3444
|
var styleProps = {
|
|
3434
3445
|
width: width,
|
|
3435
3446
|
slide: slide,
|
|
3436
3447
|
};
|
|
3437
|
-
var classes = useStyles$
|
|
3448
|
+
var classes = useStyles$6(styleProps);
|
|
3438
3449
|
var tabsRef = useRef(null);
|
|
3439
3450
|
useEffect(function () {
|
|
3440
3451
|
smoothscroll.polyfill();
|
|
@@ -3460,13 +3471,12 @@ var SegmentedTabs = memo(function (_a) {
|
|
|
3460
3471
|
indicator: classes.indicator,
|
|
3461
3472
|
scrollButtons: classes.scrollButtons,
|
|
3462
3473
|
}, indicatorColor: "primary", ref: tabsRef }), children));
|
|
3463
|
-
}
|
|
3474
|
+
};
|
|
3464
3475
|
|
|
3465
3476
|
function TabPanel(props) {
|
|
3466
3477
|
var children = props.children, value = props.value, index = props.index, other = __rest(props, ["children", "value", "index"]);
|
|
3467
3478
|
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);
|
|
3479
|
+
}
|
|
3470
3480
|
|
|
3471
3481
|
var useOutlinedInputStyles = makeStyles$1(function (theme) { return ({
|
|
3472
3482
|
root: {
|
|
@@ -3491,7 +3501,7 @@ var useOutlinedInputStyles = makeStyles$1(function (theme) { return ({
|
|
|
3491
3501
|
},
|
|
3492
3502
|
notchedOutline: {},
|
|
3493
3503
|
}); });
|
|
3494
|
-
var useStyles$
|
|
3504
|
+
var useStyles$7 = makeStyles$1(function (theme) { return ({
|
|
3495
3505
|
root: function (props) { return ({
|
|
3496
3506
|
//SWAPTheme調整
|
|
3497
3507
|
width: props.width ? props.width : "100%",
|
|
@@ -3544,7 +3554,7 @@ var useStyles$6 = makeStyles$1(function (theme) { return ({
|
|
|
3544
3554
|
marginTop: 8,
|
|
3545
3555
|
},
|
|
3546
3556
|
}); });
|
|
3547
|
-
var Select =
|
|
3557
|
+
var Select = function (_a) {
|
|
3548
3558
|
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
3559
|
var outlinedInputClasses = useOutlinedInputStyles();
|
|
3550
3560
|
var styleProps = {
|
|
@@ -3554,7 +3564,7 @@ var Select = memo(function (_a) {
|
|
|
3554
3564
|
paddingLeft: paddingLeft,
|
|
3555
3565
|
dropdown: dropdown,
|
|
3556
3566
|
};
|
|
3557
|
-
var classes = useStyles$
|
|
3567
|
+
var classes = useStyles$7(styleProps);
|
|
3558
3568
|
return (React__default.createElement(FormControl, { variant: "outlined", style: style, classes: { root: classes.root } },
|
|
3559
3569
|
React__default.createElement(InputLabel, { classes: {
|
|
3560
3570
|
root: classes.placeholder,
|
|
@@ -3571,14 +3581,14 @@ var Select = memo(function (_a) {
|
|
|
3571
3581
|
getContentAnchorEl: null,
|
|
3572
3582
|
}, onClick: onClick }, children),
|
|
3573
3583
|
React__default.createElement(FormHelperText, { style: helperTextStyle }, helperText)));
|
|
3574
|
-
}
|
|
3584
|
+
};
|
|
3575
3585
|
|
|
3576
|
-
var Menu =
|
|
3586
|
+
var Menu = function (props) {
|
|
3577
3587
|
var children = props.children, open = props.open, other = __rest(props, ["children", "open"]);
|
|
3578
3588
|
return (React__default.createElement(MaterialMenu, __assign({ open: open }, other), children));
|
|
3579
|
-
}
|
|
3589
|
+
};
|
|
3580
3590
|
|
|
3581
|
-
var useStyles$
|
|
3591
|
+
var useStyles$8 = makeStyles$1(function (theme) { return ({
|
|
3582
3592
|
root: function (props) { return ({
|
|
3583
3593
|
fontSize: 14,
|
|
3584
3594
|
fontWeight: 700,
|
|
@@ -3607,7 +3617,7 @@ var useStyles$7 = makeStyles$1(function (theme) { return ({
|
|
|
3607
3617
|
},
|
|
3608
3618
|
}); },
|
|
3609
3619
|
}); });
|
|
3610
|
-
var MenuItem =
|
|
3620
|
+
var MenuItem = React__default.forwardRef(function (props, ref) {
|
|
3611
3621
|
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
3622
|
var styleProps = {
|
|
3613
3623
|
width: width,
|
|
@@ -3617,13 +3627,13 @@ var MenuItem = memo(React__default.forwardRef(function (props, ref) {
|
|
|
3617
3627
|
hoverIconColor: hoverIconColor,
|
|
3618
3628
|
rippleColor: rippleColor,
|
|
3619
3629
|
};
|
|
3620
|
-
var classes = useStyles$
|
|
3630
|
+
var classes = useStyles$8(styleProps);
|
|
3621
3631
|
return (React__default.createElement(MaterialMenuItem, __assign({ className: classes.root }, other),
|
|
3622
3632
|
children,
|
|
3623
3633
|
React__default.createElement(ListItemIcon, { style: { justifyContent: "flex-end" } }, iconChildren)));
|
|
3624
|
-
})
|
|
3634
|
+
});
|
|
3625
3635
|
|
|
3626
|
-
var Button =
|
|
3636
|
+
var Button = function (props) {
|
|
3627
3637
|
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
3638
|
var theme = useTheme$1();
|
|
3629
3639
|
var useStyles = makeStyles$1(function (theme) { return ({
|
|
@@ -3832,9 +3842,9 @@ var Button = React__default.memo(function (props) {
|
|
|
3832
3842
|
? theme.primary.primary800
|
|
3833
3843
|
: theme.black.white,
|
|
3834
3844
|
} }))) : (React__default.createElement("div", { style: { whiteSpace: "nowrap" } }, children))));
|
|
3835
|
-
}
|
|
3845
|
+
};
|
|
3836
3846
|
|
|
3837
|
-
var useStyles$
|
|
3847
|
+
var useStyles$9 = makeStyles$1(function () { return ({
|
|
3838
3848
|
root: function (props) { return ({
|
|
3839
3849
|
width: props.width,
|
|
3840
3850
|
height: props.height,
|
|
@@ -3849,7 +3859,7 @@ var useStyles$8 = makeStyles$1(function () { return ({
|
|
|
3849
3859
|
},
|
|
3850
3860
|
}); },
|
|
3851
3861
|
}); });
|
|
3852
|
-
var IconButton =
|
|
3862
|
+
var IconButton = function (props) {
|
|
3853
3863
|
var hoverColor = props.hoverColor, hoverIconColor = props.hoverIconColor, width = props.width, height = props.height, other = __rest(props, ["hoverColor", "hoverIconColor", "width", "height"]);
|
|
3854
3864
|
var theme = useTheme$1();
|
|
3855
3865
|
var styleProps = {
|
|
@@ -4082,9 +4092,9 @@ var IconButton = memo(function (props) {
|
|
|
4082
4092
|
: hoverIconColor
|
|
4083
4093
|
: null,
|
|
4084
4094
|
};
|
|
4085
|
-
var classes = useStyles$
|
|
4095
|
+
var classes = useStyles$9(styleProps);
|
|
4086
4096
|
return React__default.createElement(IconButton$1$1, __assign({ className: classes.root }, other));
|
|
4087
|
-
}
|
|
4097
|
+
};
|
|
4088
4098
|
|
|
4089
4099
|
function TransitionLeft(props) {
|
|
4090
4100
|
return React__default.createElement(Slide, __assign({}, props, { direction: "left" }));
|
|
@@ -4101,7 +4111,7 @@ function TransitionDown(props) {
|
|
|
4101
4111
|
function Transition(props) {
|
|
4102
4112
|
return React__default.createElement(Fade, __assign({}, props));
|
|
4103
4113
|
}
|
|
4104
|
-
var useStyles$
|
|
4114
|
+
var useStyles$a = makeStyles$1(function (theme) { return ({
|
|
4105
4115
|
root: {
|
|
4106
4116
|
"@media only screen and (min-width: 600px)": {
|
|
4107
4117
|
width: "fit-content",
|
|
@@ -4159,14 +4169,14 @@ var useStyles$9 = makeStyles$1(function (theme) { return ({
|
|
|
4159
4169
|
color: "#ffffff",
|
|
4160
4170
|
},
|
|
4161
4171
|
}); });
|
|
4162
|
-
var Snackbar =
|
|
4172
|
+
var Snackbar = function (props) {
|
|
4163
4173
|
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
4174
|
var styleProps = {
|
|
4165
4175
|
width: width,
|
|
4166
4176
|
height: height,
|
|
4167
4177
|
variant: variant,
|
|
4168
4178
|
};
|
|
4169
|
-
var classes = useStyles$
|
|
4179
|
+
var classes = useStyles$a(styleProps);
|
|
4170
4180
|
return (React__default.createElement(MaterialSnackBar, __assign({}, other, { className: classes.root, ContentProps: {
|
|
4171
4181
|
classes: {
|
|
4172
4182
|
root: classes.contentRoot,
|
|
@@ -4198,7 +4208,7 @@ var Snackbar = memo(function (props) {
|
|
|
4198
4208
|
: transitionDirection === "down"
|
|
4199
4209
|
? TransitionDown
|
|
4200
4210
|
: Transition, transitionDuration: transitionDuration })));
|
|
4201
|
-
}
|
|
4211
|
+
};
|
|
4202
4212
|
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
4213
|
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
4214
|
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" },
|
|
@@ -7177,7 +7187,7 @@ const host = createHost(primitives, {
|
|
|
7177
7187
|
});
|
|
7178
7188
|
const animated = host.animated;
|
|
7179
7189
|
|
|
7180
|
-
var useStyles$
|
|
7190
|
+
var useStyles$b = makeStyles$1(function (theme) { return ({
|
|
7181
7191
|
root: function (props) { return ({
|
|
7182
7192
|
margin: props.margin,
|
|
7183
7193
|
backgroundColor: props.backgroundColor,
|
|
@@ -7194,7 +7204,7 @@ var useStyles$a = makeStyles$1(function (theme) { return ({
|
|
|
7194
7204
|
color: props.backgroundColor,
|
|
7195
7205
|
}); },
|
|
7196
7206
|
}); });
|
|
7197
|
-
var Tooltip =
|
|
7207
|
+
var Tooltip = function (props) {
|
|
7198
7208
|
var theme = useTheme$1();
|
|
7199
7209
|
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
7210
|
var styleProps = {
|
|
@@ -7224,10 +7234,10 @@ var Tooltip = memo(function (props) {
|
|
|
7224
7234
|
border: light ? "1px solid #CCCCCC" : null,
|
|
7225
7235
|
fontWeight: arrow ? 700 : 400,
|
|
7226
7236
|
};
|
|
7227
|
-
var classes = useStyles$
|
|
7237
|
+
var classes = useStyles$b(styleProps);
|
|
7228
7238
|
return (React__default.createElement(MaterialTooltip, __assign({ classes: { tooltip: classes.root, arrow: classes.arrow } }, other, { arrow: arrow }),
|
|
7229
7239
|
React__default.createElement("div", { style: __assign({ width: "fit-content", height: "fit-content", display: "flex", alignItems: "center", justifyContent: "center" }, childrenStyle) }, children)));
|
|
7230
|
-
}
|
|
7240
|
+
};
|
|
7231
7241
|
|
|
7232
7242
|
var ModalTransitionEffect = React__default.forwardRef(function ModalTransitionEffect(props, ref) {
|
|
7233
7243
|
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 +7261,7 @@ var ModalTransitionEffect = React__default.forwardRef(function ModalTransitionEf
|
|
|
7251
7261
|
});
|
|
7252
7262
|
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
7263
|
});
|
|
7254
|
-
var Modal =
|
|
7264
|
+
var Modal = React__default.forwardRef(function (props, ref) {
|
|
7255
7265
|
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
7266
|
var _a = useState(0), clientHeight = _a[0], setClientHeight = _a[1];
|
|
7257
7267
|
var _b = useState(0), scorllbarWidth = _b[0], setScorllbarWidth = _b[1];
|
|
@@ -7655,7 +7665,7 @@ var Modal = memo(React__default.forwardRef(function (props, ref) {
|
|
|
7655
7665
|
} })) : null,
|
|
7656
7666
|
headChildren ? (headChildren) : (React__default.createElement("div", { className: classes.title },
|
|
7657
7667
|
icon ? icon : null,
|
|
7658
|
-
checked ?
|
|
7668
|
+
checked ? React__default.createElement(CheckCircleIcon, { className: classes.icon }) : null,
|
|
7659
7669
|
failed ? React__default.createElement(WarningIcon, { className: classes.icon }) : null,
|
|
7660
7670
|
React__default.createElement("div", null,
|
|
7661
7671
|
React__default.createElement(Typography, { variant: !mobile ? "h6" : "title" }, title),
|
|
@@ -7725,16 +7735,14 @@ var Modal = memo(React__default.forwardRef(function (props, ref) {
|
|
|
7725
7735
|
? secondaryButton.variant
|
|
7726
7736
|
: "secondary", size: "small", onClick: secondaryButton.onClick, disabled: secondaryButton.disabled, loading: secondaryButton.loading, style: secondaryButton.style }, secondaryButton.title))) : null),
|
|
7727
7737
|
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
|
|
7738
|
+
React__default.createElement(Button, { fullWidth: buttonFullWidth || footerDisplayColumn || mobile, variant: primaryButton.variant
|
|
7731
7739
|
? primaryButton.variant
|
|
7732
7740
|
: "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
7741
|
? primaryButton.variant
|
|
7734
7742
|
: "primary", size: "small", onClick: primaryButton.onClick, disabled: primaryButton.disabled, loading: primaryButton.loading, style: primaryButton.style }, primaryButton.title))) : null))) : null)))))));
|
|
7735
|
-
})
|
|
7743
|
+
});
|
|
7736
7744
|
|
|
7737
|
-
var useStyles$
|
|
7745
|
+
var useStyles$c = makeStyles$1(function () { return ({
|
|
7738
7746
|
root: function (props) { return ({
|
|
7739
7747
|
backgroundColor: props.backgroundColor,
|
|
7740
7748
|
border: "1px solid " + props.borderColor,
|
|
@@ -7751,7 +7759,7 @@ var useStyles$b = makeStyles$1(function () { return ({
|
|
|
7751
7759
|
marginRight: 8,
|
|
7752
7760
|
},
|
|
7753
7761
|
}); });
|
|
7754
|
-
var Banner =
|
|
7762
|
+
var Banner = function (props) {
|
|
7755
7763
|
var _a = useState(false), alignStart = _a[0], setAlignStart = _a[1];
|
|
7756
7764
|
var theme = useTheme$1();
|
|
7757
7765
|
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"]);
|
|
@@ -7782,7 +7790,7 @@ var Banner = memo(function (props) {
|
|
|
7782
7790
|
height: height ? height : null,
|
|
7783
7791
|
alignItems: mobile ? "flex-start" : alignStart ? "flex-start" : "center",
|
|
7784
7792
|
};
|
|
7785
|
-
var classes = useStyles$
|
|
7793
|
+
var classes = useStyles$c(styleProps);
|
|
7786
7794
|
var ref = useRef(null);
|
|
7787
7795
|
useEffect(function () {
|
|
7788
7796
|
if (ref.current) {
|
|
@@ -7806,9 +7814,9 @@ var Banner = memo(function (props) {
|
|
|
7806
7814
|
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
7815
|
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
7816
|
React__default.createElement(Typography, { variant: "caption2" }, children)));
|
|
7809
|
-
}
|
|
7817
|
+
};
|
|
7810
7818
|
|
|
7811
|
-
var useStyles$
|
|
7819
|
+
var useStyles$d = makeStyles$1(function () { return ({
|
|
7812
7820
|
root: function (props) { return ({
|
|
7813
7821
|
backgroundColor: props.backgroundColor,
|
|
7814
7822
|
border: props.border,
|
|
@@ -7825,7 +7833,7 @@ var useStyles$c = makeStyles$1(function () { return ({
|
|
|
7825
7833
|
color: props.color,
|
|
7826
7834
|
}); },
|
|
7827
7835
|
}); });
|
|
7828
|
-
var Chip =
|
|
7836
|
+
var Chip = function (props) {
|
|
7829
7837
|
var theme = useTheme$1();
|
|
7830
7838
|
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
7839
|
var styleProps = {
|
|
@@ -7864,15 +7872,15 @@ var Chip = memo(function (props) {
|
|
|
7864
7872
|
? theme.danger.danger800
|
|
7865
7873
|
: theme.primary.primary800,
|
|
7866
7874
|
};
|
|
7867
|
-
var classes = useStyles$
|
|
7875
|
+
var classes = useStyles$d(styleProps);
|
|
7868
7876
|
return (React__default.createElement("div", __assign({ className: classes.root }, other),
|
|
7869
7877
|
React__default.createElement("span", { style: { marginRight: variant === "success" ? 4 : 0 } }, label),
|
|
7870
7878
|
variant === "success" && !icon ? icon_success : icon));
|
|
7871
|
-
}
|
|
7879
|
+
};
|
|
7872
7880
|
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
7881
|
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
7882
|
|
|
7875
|
-
var CircularProgress =
|
|
7883
|
+
var CircularProgress = function (props) {
|
|
7876
7884
|
var theme = useTheme$1();
|
|
7877
7885
|
var dark = props.dark, size = props.size, thickness = props.thickness;
|
|
7878
7886
|
return (React__default.createElement("div", { style: {
|
|
@@ -7893,7 +7901,7 @@ var CircularProgress = memo(function (props) {
|
|
|
7893
7901
|
top: -0,
|
|
7894
7902
|
color: dark ? theme.black.white : theme.primary.primary800,
|
|
7895
7903
|
} })));
|
|
7896
|
-
}
|
|
7904
|
+
};
|
|
7897
7905
|
|
|
7898
7906
|
function _extends() {
|
|
7899
7907
|
_extends = Object.assign || function (target) {
|
|
@@ -12005,7 +12013,7 @@ var MaterialSkeleton = withStyles(styles$3, {
|
|
|
12005
12013
|
name: 'MuiSkeleton'
|
|
12006
12014
|
})(Skeleton);
|
|
12007
12015
|
|
|
12008
|
-
var useStyles$
|
|
12016
|
+
var useStyles$e = makeStyles$1(function (theme) { return ({
|
|
12009
12017
|
root: function () { return ({}); },
|
|
12010
12018
|
ul: {
|
|
12011
12019
|
"& li": {
|
|
@@ -12057,20 +12065,20 @@ var useStyles$d = makeStyles$1(function (theme) { return ({
|
|
|
12057
12065
|
justifyContent: "center",
|
|
12058
12066
|
},
|
|
12059
12067
|
}); });
|
|
12060
|
-
var Pagination$1 =
|
|
12068
|
+
var Pagination$1 = function (props) {
|
|
12061
12069
|
// const theme = useTheme();
|
|
12062
12070
|
var other = __rest(props, []);
|
|
12063
12071
|
var styleProps = {};
|
|
12064
|
-
var classes = useStyles$
|
|
12072
|
+
var classes = useStyles$e(styleProps);
|
|
12065
12073
|
return (React__default.createElement(MaterialPagination, __assign({ classes: { root: classes.root, ul: classes.ul }, shape: "rounded", variant: "outlined" }, other, { renderItem: function (item) { return (React__default.createElement(PaginationItem$1, __assign({}, item, { classes: {
|
|
12066
12074
|
root: classes.itemRoot,
|
|
12067
12075
|
rounded: classes.rounded,
|
|
12068
12076
|
selected: classes.selected,
|
|
12069
12077
|
ellipsis: classes.ellipsis,
|
|
12070
12078
|
} }))); } })));
|
|
12071
|
-
}
|
|
12079
|
+
};
|
|
12072
12080
|
|
|
12073
|
-
var useStyles$
|
|
12081
|
+
var useStyles$f = makeStyles$1(function (theme) { return ({
|
|
12074
12082
|
root: function (props) { return ({
|
|
12075
12083
|
width: props.width,
|
|
12076
12084
|
display: "flex",
|
|
@@ -12088,7 +12096,7 @@ var useStyles$e = makeStyles$1(function (theme) { return ({
|
|
|
12088
12096
|
borderRadius: "50%",
|
|
12089
12097
|
}); },
|
|
12090
12098
|
}); });
|
|
12091
|
-
var Progress =
|
|
12099
|
+
var Progress = function (props) {
|
|
12092
12100
|
var theme = useTheme$1();
|
|
12093
12101
|
var
|
|
12094
12102
|
// onClick,
|
|
@@ -12097,7 +12105,7 @@ var Progress = memo(function (props) {
|
|
|
12097
12105
|
width: width ? width : "100%",
|
|
12098
12106
|
size: size ? size : 24,
|
|
12099
12107
|
};
|
|
12100
|
-
var classes = useStyles$
|
|
12108
|
+
var classes = useStyles$f(styleProps);
|
|
12101
12109
|
var a = Array.from(Array(count).keys());
|
|
12102
12110
|
return (React__default.createElement("div", __assign({ className: classes.root }, other), a.map(function (i) {
|
|
12103
12111
|
return (React__default.createElement("div", { key: i, style: {
|
|
@@ -12145,9 +12153,9 @@ var Progress = memo(function (props) {
|
|
|
12145
12153
|
} })),
|
|
12146
12154
|
React__default.createElement(Typography, { variant: "caption1", color: i + 1 === step ? "black1000" : "black700", style: { marginTop: 8 } }, label ? label[i] : null)));
|
|
12147
12155
|
})));
|
|
12148
|
-
}
|
|
12156
|
+
};
|
|
12149
12157
|
|
|
12150
|
-
var useStyles$
|
|
12158
|
+
var useStyles$g = makeStyles$1(function (theme) { return ({
|
|
12151
12159
|
popper: function (props) { return ({
|
|
12152
12160
|
border: "1px solid #CCCCCC",
|
|
12153
12161
|
boxShadow: " 0px 4px 12px rgba(0, 0, 0, 0.1)",
|
|
@@ -12290,7 +12298,7 @@ var AutoComplete = function (props) {
|
|
|
12290
12298
|
marginTop: anchorOrigin ? anchorOrigin.vertical : -65,
|
|
12291
12299
|
marginLeft: anchorOrigin ? anchorOrigin.horizontal : -0,
|
|
12292
12300
|
};
|
|
12293
|
-
var classes = useStyles$
|
|
12301
|
+
var classes = useStyles$g(styleProps);
|
|
12294
12302
|
var id = open ? "simple" : undefined;
|
|
12295
12303
|
return (React__default.createElement("div", null,
|
|
12296
12304
|
React__default.createElement(Popper$1, { id: id, open: open, anchorEl: anchorEl, placement: "bottom-start", className: classes.popper },
|
|
@@ -12326,7 +12334,7 @@ var AutoComplete = function (props) {
|
|
|
12326
12334
|
} })))));
|
|
12327
12335
|
};
|
|
12328
12336
|
|
|
12329
|
-
var TaxTextField =
|
|
12337
|
+
var TaxTextField = function (_a) {
|
|
12330
12338
|
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
12339
|
var _b = useState(""), modalIncome = _b[0], setModalIncome = _b[1];
|
|
12332
12340
|
var _c = useState(""), modalExpense = _c[0], setModalExpense = _c[1];
|
|
@@ -12402,9 +12410,7 @@ var TaxTextField = memo(function (_a) {
|
|
|
12402
12410
|
display: "flex",
|
|
12403
12411
|
justifyContent: "space-between",
|
|
12404
12412
|
flexWrap: "nowrap",
|
|
12405
|
-
color: modalIncome === option.code
|
|
12406
|
-
? theme.primary.primary400
|
|
12407
|
-
: null,
|
|
12413
|
+
color: modalIncome === option.code ? theme.primary.primary400 : null,
|
|
12408
12414
|
}, 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
12415
|
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
12416
|
option.code,
|
|
@@ -12469,7 +12475,7 @@ var TaxTextField = memo(function (_a) {
|
|
|
12469
12475
|
return null;
|
|
12470
12476
|
}
|
|
12471
12477
|
})()));
|
|
12472
|
-
}
|
|
12478
|
+
};
|
|
12473
12479
|
var SWAPIncomeTypes$1 = [
|
|
12474
12480
|
{
|
|
12475
12481
|
code: "9A",
|
|
@@ -12667,18 +12673,18 @@ var SWAPTaxDescription$1 = function (incomeCode, expenseCode) {
|
|
|
12667
12673
|
* 3. 所得類別為50薪資時不會有費用類別
|
|
12668
12674
|
*/
|
|
12669
12675
|
|
|
12670
|
-
var useStyles$
|
|
12676
|
+
var useStyles$h = makeStyles$1(function (theme) { return ({
|
|
12671
12677
|
root: function (props) { return ({
|
|
12672
12678
|
backgroundColor: theme.black.black400,
|
|
12673
12679
|
transform: "unset",
|
|
12674
12680
|
}); },
|
|
12675
12681
|
}); });
|
|
12676
|
-
var Skeleton$1 =
|
|
12682
|
+
var Skeleton$1 = function (props) {
|
|
12677
12683
|
var other = __rest(props, []);
|
|
12678
12684
|
var styleProps = {};
|
|
12679
|
-
var classes = useStyles$
|
|
12685
|
+
var classes = useStyles$h(styleProps);
|
|
12680
12686
|
return React__default.createElement(MaterialSkeleton, __assign({ classes: { root: classes.root } }, other));
|
|
12681
|
-
}
|
|
12687
|
+
};
|
|
12682
12688
|
|
|
12683
12689
|
var useOutlinedInputStyles$1 = makeStyles$1(function (theme) { return ({
|
|
12684
12690
|
root: {
|
|
@@ -12703,7 +12709,7 @@ var useOutlinedInputStyles$1 = makeStyles$1(function (theme) { return ({
|
|
|
12703
12709
|
},
|
|
12704
12710
|
notchedOutline: {},
|
|
12705
12711
|
}); });
|
|
12706
|
-
var useStyles$
|
|
12712
|
+
var useStyles$i = makeStyles$1(function (theme) { return ({
|
|
12707
12713
|
root: function (props) { return ({
|
|
12708
12714
|
//SWAPTheme調整
|
|
12709
12715
|
width: props.width ? props.width : "100%",
|
|
@@ -12742,22 +12748,22 @@ var useStyles$h = makeStyles$1(function (theme) { return ({
|
|
|
12742
12748
|
marginTop: 8,
|
|
12743
12749
|
},
|
|
12744
12750
|
}); });
|
|
12745
|
-
var Dropdown =
|
|
12751
|
+
var Dropdown = function (props) {
|
|
12746
12752
|
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
12753
|
var styleProps = {
|
|
12748
12754
|
width: width,
|
|
12749
12755
|
height: height,
|
|
12750
12756
|
};
|
|
12751
|
-
var classes = useStyles$
|
|
12757
|
+
var classes = useStyles$i(styleProps);
|
|
12752
12758
|
var outlinedInputClasses = useOutlinedInputStyles$1();
|
|
12753
12759
|
return (React__default.createElement(FormControl, { variant: "outlined", style: formControlStyle, classes: { root: classes.root } },
|
|
12754
12760
|
React__default.createElement(MaterialSelect, __assign({}, other, { classes: {
|
|
12755
12761
|
icon: classes.icon,
|
|
12756
12762
|
}, 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
12763
|
React__default.createElement(FormHelperText, { style: helperTextStyle }, helperText)));
|
|
12758
|
-
}
|
|
12764
|
+
};
|
|
12759
12765
|
|
|
12760
|
-
var useStyles$
|
|
12766
|
+
var useStyles$j = makeStyles$1(function (theme) { return ({
|
|
12761
12767
|
root: function (props) { return ({
|
|
12762
12768
|
width: props.width
|
|
12763
12769
|
? props.width
|
|
@@ -12795,7 +12801,7 @@ var useStyles$i = makeStyles$1(function (theme) { return ({
|
|
|
12795
12801
|
},
|
|
12796
12802
|
}); },
|
|
12797
12803
|
}); });
|
|
12798
|
-
var RadioList =
|
|
12804
|
+
var RadioList = function (props) {
|
|
12799
12805
|
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
12806
|
var styleProps = {
|
|
12801
12807
|
checked: checked,
|
|
@@ -12804,7 +12810,7 @@ var RadioList = memo(function (props) {
|
|
|
12804
12810
|
height: height,
|
|
12805
12811
|
line: line,
|
|
12806
12812
|
};
|
|
12807
|
-
var classes = useStyles$
|
|
12813
|
+
var classes = useStyles$j(styleProps);
|
|
12808
12814
|
var _a = useState(0), lineHeight = _a[0], setLineHeight = _a[1];
|
|
12809
12815
|
var ref = useRef(null);
|
|
12810
12816
|
useEffect(function () {
|
|
@@ -12848,9 +12854,9 @@ var RadioList = memo(function (props) {
|
|
|
12848
12854
|
React__default.createElement(Typography, { variant: "title" }, title),
|
|
12849
12855
|
multiline ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null))),
|
|
12850
12856
|
!multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
|
|
12851
|
-
}
|
|
12857
|
+
};
|
|
12852
12858
|
|
|
12853
|
-
var useStyles$
|
|
12859
|
+
var useStyles$k = makeStyles$1(function (theme) { return ({
|
|
12854
12860
|
root: function (props) { return ({
|
|
12855
12861
|
width: props.width
|
|
12856
12862
|
? props.width
|
|
@@ -12888,7 +12894,7 @@ var useStyles$j = makeStyles$1(function (theme) { return ({
|
|
|
12888
12894
|
},
|
|
12889
12895
|
}); },
|
|
12890
12896
|
}); });
|
|
12891
|
-
var CheckBoxList =
|
|
12897
|
+
var CheckBoxList = function (props) {
|
|
12892
12898
|
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
12899
|
var styleProps = {
|
|
12894
12900
|
checked: checked,
|
|
@@ -12897,7 +12903,7 @@ var CheckBoxList = memo(function (props) {
|
|
|
12897
12903
|
height: height,
|
|
12898
12904
|
line: line,
|
|
12899
12905
|
};
|
|
12900
|
-
var classes = useStyles$
|
|
12906
|
+
var classes = useStyles$k(styleProps);
|
|
12901
12907
|
var _a = useState(0), lineHeight = _a[0], setLineHeight = _a[1];
|
|
12902
12908
|
var ref = useRef(null);
|
|
12903
12909
|
useEffect(function () {
|
|
@@ -12941,9 +12947,9 @@ var CheckBoxList = memo(function (props) {
|
|
|
12941
12947
|
React__default.createElement(Typography, { variant: "title" }, title),
|
|
12942
12948
|
multiline ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null))),
|
|
12943
12949
|
!multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
|
|
12944
|
-
}
|
|
12950
|
+
};
|
|
12945
12951
|
|
|
12946
|
-
var useStyles$
|
|
12952
|
+
var useStyles$l = makeStyles$1(function (theme) { return ({
|
|
12947
12953
|
root: function (props) { return ({
|
|
12948
12954
|
cursor: "pointer",
|
|
12949
12955
|
color: props.color,
|
|
@@ -12960,7 +12966,7 @@ var useStyles$k = makeStyles$1(function (theme) { return ({
|
|
|
12960
12966
|
border: "1px solid " + theme.primary.primary400,
|
|
12961
12967
|
},
|
|
12962
12968
|
}); });
|
|
12963
|
-
var Link =
|
|
12969
|
+
var Link = function (props) {
|
|
12964
12970
|
var color = props.color, other = __rest(props, ["color"]);
|
|
12965
12971
|
var theme = useTheme$1();
|
|
12966
12972
|
var styleProps = {
|
|
@@ -13076,15 +13082,15 @@ var Link = memo(function (props) {
|
|
|
13076
13082
|
? theme.black.black1000
|
|
13077
13083
|
: theme.black.black1000,
|
|
13078
13084
|
};
|
|
13079
|
-
var classes = useStyles$
|
|
13085
|
+
var classes = useStyles$l(styleProps);
|
|
13080
13086
|
return (React__default.createElement(MaterialLink, __assign({ classes: {
|
|
13081
13087
|
root: classes.root,
|
|
13082
13088
|
focusVisible: classes.focusVisible,
|
|
13083
13089
|
underlineHover: classes.underlineHover,
|
|
13084
13090
|
}, tabIndex: 0 }, other)));
|
|
13085
|
-
}
|
|
13091
|
+
};
|
|
13086
13092
|
|
|
13087
|
-
var useStyles$
|
|
13093
|
+
var useStyles$m = makeStyles$1(function (theme) { return ({
|
|
13088
13094
|
root: function (props) { return ({
|
|
13089
13095
|
boxShadow: theme.boxShadow.xl,
|
|
13090
13096
|
borderRadius: 12,
|
|
@@ -13094,7 +13100,7 @@ var useStyles$l = makeStyles$1(function (theme) { return ({
|
|
|
13094
13100
|
padding: props.matchSM ? 40 : props.matchXS ? 24 : 16,
|
|
13095
13101
|
}); },
|
|
13096
13102
|
}); });
|
|
13097
|
-
var Paper =
|
|
13103
|
+
var Paper = function (props) {
|
|
13098
13104
|
var height = props.height, width = props.width, other = __rest(props, ["height", "width"]);
|
|
13099
13105
|
var matchSM = useMediaQuery("(min-width:576px)");
|
|
13100
13106
|
var matchXS = useMediaQuery("(min-width:375px)");
|
|
@@ -13104,13 +13110,13 @@ var Paper = React__default.memo(function (props) {
|
|
|
13104
13110
|
matchSM: matchSM,
|
|
13105
13111
|
matchXS: matchXS,
|
|
13106
13112
|
};
|
|
13107
|
-
var classes = useStyles$
|
|
13113
|
+
var classes = useStyles$m(styleProps);
|
|
13108
13114
|
return (React__default.createElement(Paper$1$1, __assign({ variant: "outlined", classes: {
|
|
13109
13115
|
root: classes.root,
|
|
13110
13116
|
} }, other)));
|
|
13111
|
-
}
|
|
13117
|
+
};
|
|
13112
13118
|
|
|
13113
|
-
var useStyles$
|
|
13119
|
+
var useStyles$n = makeStyles$1(function (theme) { return ({
|
|
13114
13120
|
root: {
|
|
13115
13121
|
width: 40,
|
|
13116
13122
|
height: 24,
|
|
@@ -13173,10 +13179,10 @@ var useStyles$m = makeStyles$1(function (theme) { return ({
|
|
|
13173
13179
|
boxShadow: "0px 2px 2px rgba(0, 0, 0, 0.15)",
|
|
13174
13180
|
},
|
|
13175
13181
|
}); });
|
|
13176
|
-
var Switch =
|
|
13182
|
+
var Switch = function (props) {
|
|
13177
13183
|
var disabled = props.disabled, other = __rest(props, ["disabled"]);
|
|
13178
13184
|
var styleProps = { disabled: disabled };
|
|
13179
|
-
var classes = useStyles$
|
|
13185
|
+
var classes = useStyles$n(styleProps);
|
|
13180
13186
|
return (React__default.createElement("div", { className: classes.switchOutBlock, tabIndex: 0 },
|
|
13181
13187
|
React__default.createElement(MaterialSwitch, __assign({ disabled: disabled, tabIndex: 0, disableRipple: true, classes: {
|
|
13182
13188
|
root: classes.root,
|
|
@@ -13188,7 +13194,7 @@ var Switch = memo(function (props) {
|
|
|
13188
13194
|
React__default.createElement(Fade, { in: true, timeout: { enter: 200, exit: 200 } },
|
|
13189
13195
|
React__default.createElement("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
13190
13196
|
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
|
-
}
|
|
13197
|
+
};
|
|
13192
13198
|
|
|
13193
13199
|
var useStylesForMonthButton = makeStyles$1(function (theme) { return ({
|
|
13194
13200
|
root: function (props) { return ({
|
|
@@ -13262,7 +13268,7 @@ var useStylesForCalendar = makeStyles$1(function (theme) { return ({
|
|
|
13262
13268
|
},
|
|
13263
13269
|
},
|
|
13264
13270
|
}); });
|
|
13265
|
-
var DatePicker =
|
|
13271
|
+
var DatePicker = function (props) {
|
|
13266
13272
|
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
13273
|
var _a = useState(Number(new Date().getFullYear())), year = _a[0], setYear = _a[1];
|
|
13268
13274
|
var _b = useState(Number(new Date().getMonth() + 1)), month = _b[0], setMonth = _b[1];
|
|
@@ -13492,7 +13498,7 @@ var DatePicker = memo(function (props) {
|
|
|
13492
13498
|
setNextMonth(nextMonth + 1);
|
|
13493
13499
|
}
|
|
13494
13500
|
}, defaultValue: defaultValue, setIsClicked: setIsClicked, mobile: mobile })) }, ModalProps)))));
|
|
13495
|
-
}
|
|
13501
|
+
};
|
|
13496
13502
|
var MonthButton = function (_a) {
|
|
13497
13503
|
var index = _a.index, month = _a.month, setMonth = _a.setMonth, setIsOpenMonthSelector = _a.setIsOpenMonthSelector, setIsClicked = _a.setIsClicked;
|
|
13498
13504
|
var styleProps = {
|
|
@@ -13610,7 +13616,7 @@ var icon_arrowright = (React__default.createElement("svg", { width: "20", height
|
|
|
13610
13616
|
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
13617
|
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
13618
|
|
|
13613
|
-
var Breadcrumb =
|
|
13619
|
+
var Breadcrumb = function (props) {
|
|
13614
13620
|
var maxItems = props.maxItems, separator = props.separator, children = props.children, other = __rest(props, ["maxItems", "separator", "children"]);
|
|
13615
13621
|
var _a = useState(false), isHoverThreeDots = _a[0], setIsHoverThreeDots = _a[1];
|
|
13616
13622
|
var _b = useState(null), anchorEl = _b[0], setAnchorEl = _b[1];
|
|
@@ -13669,23 +13675,23 @@ var Breadcrumb = memo(function (props) {
|
|
|
13669
13675
|
}
|
|
13670
13676
|
} }, content));
|
|
13671
13677
|
}))));
|
|
13672
|
-
}
|
|
13678
|
+
};
|
|
13673
13679
|
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
13680
|
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
13681
|
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
13682
|
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
13683
|
React__default.createElement("path", { d: "M0 18.1H11.685V18.8H0V18.1Z", fill: "#4B4B4B" })));
|
|
13678
13684
|
|
|
13679
|
-
var BreadcrumbItem =
|
|
13685
|
+
var BreadcrumbItem = function (props) {
|
|
13680
13686
|
var last = props.last, other = __rest(props, ["last"]);
|
|
13681
13687
|
return (React__default.createElement(Link, __assign({}, other, { color: last ? "black1000" : "black800", style: {
|
|
13682
13688
|
fontWeight: last ? 700 : 400,
|
|
13683
13689
|
cursor: last ? "unset" : undefined,
|
|
13684
13690
|
textDecoration: last ? "none" : undefined,
|
|
13685
13691
|
} })));
|
|
13686
|
-
}
|
|
13692
|
+
};
|
|
13687
13693
|
|
|
13688
|
-
var useStyles$
|
|
13694
|
+
var useStyles$o = makeStyles$1(function (theme) { return ({
|
|
13689
13695
|
root: function (props) { return ({
|
|
13690
13696
|
width: props.width ? props.width : 350,
|
|
13691
13697
|
height: props.height ? props.height : "100%",
|
|
@@ -13707,10 +13713,10 @@ var useStyles$n = makeStyles$1(function (theme) { return ({
|
|
|
13707
13713
|
padding: 0,
|
|
13708
13714
|
},
|
|
13709
13715
|
}); });
|
|
13710
|
-
var Card =
|
|
13716
|
+
var Card = function (props) {
|
|
13711
13717
|
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
13718
|
var useStylesProps = { width: width, height: height };
|
|
13713
|
-
var classes = useStyles$
|
|
13719
|
+
var classes = useStyles$o(useStylesProps);
|
|
13714
13720
|
var theme = useTheme$1();
|
|
13715
13721
|
return (React__default.createElement("div", __assign({ className: classes.root }, other),
|
|
13716
13722
|
React__default.createElement("div", { className: classes.body, style: bodyStyle }, !loading ? (children) : (React__default.createElement("div", { style: { width: "100%", height: "100%" } },
|
|
@@ -13730,7 +13736,7 @@ var Card = memo(function (props) {
|
|
|
13730
13736
|
? undefined
|
|
13731
13737
|
: "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
13738
|
React__default.createElement(Skeleton$1, { width: "100%", height: "100%" }))))));
|
|
13733
|
-
}
|
|
13739
|
+
};
|
|
13734
13740
|
|
|
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
|
|
13741
|
+
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
13742
|
//# sourceMappingURL=index.esm.js.map
|