@yosgo/swap-ui 1.0.137 → 1.0.139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/build/AppBar/AppBar.d.ts +0 -0
  2. package/build/AppBar/AppBar.types.d.ts +0 -0
  3. package/build/AutoComplete/AutoComplete.d.ts +0 -0
  4. package/build/AutoComplete/AutoComplete.types.d.ts +0 -0
  5. package/build/AutoComplete/BankCodes.d.ts +0 -0
  6. package/build/Banner/Banner.d.ts +0 -0
  7. package/build/Banner/Banner.types.d.ts +0 -0
  8. package/build/Breadcrumb/Breadcrumb.d.ts +0 -0
  9. package/build/Breadcrumb/Breadcrumb.types.d.ts +0 -0
  10. package/build/BreadcrumbItem/BreadcrumbItem.d.ts +0 -0
  11. package/build/BreadcrumbItem/BreadcrumbItem.types.d.ts +0 -0
  12. package/build/Button/Button.d.ts +0 -0
  13. package/build/Button/Button.types.d.ts +0 -0
  14. package/build/Card/Card.d.ts +0 -0
  15. package/build/Card/Card.types.d.ts +0 -0
  16. package/build/CheckBox/CheckBox.d.ts +0 -0
  17. package/build/CheckBox/CheckBox.types.d.ts +0 -0
  18. package/build/CheckBox/CheckBoxList.d.ts +0 -0
  19. package/build/CheckBox/CheckBoxList.types.d.ts +0 -0
  20. package/build/CheckBox/RadioButton.d.ts +0 -0
  21. package/build/CheckBox/RadioButton.types.d.ts +0 -0
  22. package/build/CheckBox/RadioList.d.ts +0 -0
  23. package/build/CheckBox/RadioList.types.d.ts +0 -0
  24. package/build/Chip/Chip.d.ts +0 -0
  25. package/build/Chip/Chip.types.d.ts +0 -0
  26. package/build/CircularProgress/CircularProgress.d.ts +0 -0
  27. package/build/CircularProgress/CircularProgress.types.d.ts +0 -0
  28. package/build/Container/Container.d.ts +0 -0
  29. package/build/Container/Container.types.d.ts +0 -0
  30. package/build/DatePicker/DatePicker.d.ts +0 -0
  31. package/build/DatePicker/DatePicker.types.d.ts +0 -0
  32. package/build/Dropdown/Dropdown.d.ts +0 -0
  33. package/build/Dropdown/Dropdown.types.d.ts +0 -0
  34. package/build/IconButton/IconButton.d.ts +0 -0
  35. package/build/IconButton/IconButton.types.d.ts +0 -0
  36. package/build/LandingPage/LandingPage.d.ts +0 -0
  37. package/build/LandingPage/LandingPage.types.d.ts +0 -0
  38. package/build/LandingPage/LandingPageMobile.d.ts +0 -0
  39. package/build/LandingPage/LandingPageMobile.types.d.ts +0 -0
  40. package/build/Link/Link.d.ts +0 -0
  41. package/build/Link/Link.types.d.ts +0 -0
  42. package/build/Menu/Menu.d.ts +0 -0
  43. package/build/Menu/Menu.types.d.ts +0 -0
  44. package/build/Menu/MenuItem.d.ts +0 -0
  45. package/build/Menu/MenuItem.types.d.ts +0 -0
  46. package/build/Menu/Select.d.ts +0 -0
  47. package/build/Menu/Select.types.d.ts +0 -0
  48. package/build/Modal/Modal.d.ts +0 -0
  49. package/build/Modal/Modal.types.d.ts +0 -0
  50. package/build/Pagination/Pagination.d.ts +0 -0
  51. package/build/Pagination/Pagination.types.d.ts +0 -0
  52. package/build/Paper/Paper.d.ts +0 -0
  53. package/build/Paper/Paper.types.d.ts +0 -0
  54. package/build/Progress/Progress.d.ts +0 -0
  55. package/build/Progress/Progress.types.d.ts +0 -0
  56. package/build/SWAPAppBar/SWAPAppBar.d.ts +0 -0
  57. package/build/SWAPAppBar/SWAPAppBar.types.d.ts +0 -0
  58. package/build/SWAPBanner/SWAPBanner.d.ts +0 -0
  59. package/build/SWAPBanner/SWAPBanner.types.d.ts +0 -0
  60. package/build/SWAPCopyField/SWAPCopyField.d.ts +0 -0
  61. package/build/SWAPCopyField/SWAPCopyField.types.d.ts +0 -0
  62. package/build/SWAPDialog/SWAPDialog.d.ts +0 -0
  63. package/build/SWAPDialog/SWAPDialog.types.d.ts +0 -0
  64. package/build/SWAPLogo/SWAPLogo.d.ts +0 -0
  65. package/build/SWAPLogo/SWAPLogo.types.d.ts +0 -0
  66. package/build/SWAPModal/SWAPModal.d.ts +0 -0
  67. package/build/SWAPModal/SWAPModal.types.d.ts +0 -0
  68. package/build/SWAPShare/SWAPShare.d.ts +0 -0
  69. package/build/SWAPShare/SWAPShare.types.d.ts +0 -0
  70. package/build/SWAPSpace/SWAPSpace.d.ts +0 -0
  71. package/build/SWAPSpace/SWAPSpace.types.d.ts +0 -0
  72. package/build/SWAPTaxField/SWAPTaxField.d.ts +0 -0
  73. package/build/SWAPTaxField/SWAPTaxField.types.d.ts +0 -0
  74. package/build/SWAPTheme/SWAPTheme.d.ts +0 -0
  75. package/build/SWAPTheme/SWAPTheme.types.d.ts +0 -0
  76. package/build/Skeleton/Skeleton.d.ts +0 -0
  77. package/build/Skeleton/Skeleton.types.d.ts +0 -0
  78. package/build/Snackbar/Snackbar.d.ts +0 -0
  79. package/build/Snackbar/Snackbar.types.d.ts +0 -0
  80. package/build/Styles/Styles.d.ts +0 -0
  81. package/build/Styles/Styles.types.d.ts +0 -0
  82. package/build/Switch/Switch.d.ts +0 -0
  83. package/build/Switch/Switch.types.d.ts +0 -0
  84. package/build/Tab/SegmentedTab.d.ts +0 -0
  85. package/build/Tab/SegmentedTab.types.d.ts +0 -0
  86. package/build/Tab/SegmentedTabs.d.ts +0 -0
  87. package/build/Tab/SegmentedTabs.types.d.ts +0 -0
  88. package/build/Tab/Tab.d.ts +0 -0
  89. package/build/Tab/Tab.types.d.ts +0 -0
  90. package/build/Tab/TabPanel.d.ts +0 -0
  91. package/build/Tab/Tabs.d.ts +0 -0
  92. package/build/Tab/Tabs.types.d.ts +0 -0
  93. package/build/Table/Table.d.ts +0 -0
  94. package/build/Table/Table.types.d.ts +0 -0
  95. package/build/TaxTextField/TaxTextField.d.ts +0 -0
  96. package/build/TaxTextField/TaxTextField.types.d.ts +0 -0
  97. package/build/TextField/TextField.d.ts +0 -0
  98. package/build/TextField/TextField.types.d.ts +0 -0
  99. package/build/Tooltip/Tooltip.d.ts +0 -0
  100. package/build/Tooltip/Tooltip.types.d.ts +0 -0
  101. package/build/Typography/Typography.d.ts +0 -0
  102. package/build/Typography/Typography.types.d.ts +0 -0
  103. package/build/index.d.ts +0 -0
  104. package/build/index.esm.js +474 -294
  105. package/build/index.esm.js.map +1 -1
  106. package/build/index.js +473 -293
  107. package/build/index.js.map +1 -1
  108. package/build/utils/useBreakpoints.d.ts +0 -0
  109. package/package.json +1 -1
@@ -1,4 +1,4 @@
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';
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
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';
@@ -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 Typography = React__default.memo(function (_a) {
2163
- var variant = _a.variant, children = _a.children, mode = _a.mode, color = _a.color, style = _a.style;
2164
- var theme = useTheme$1();
2165
- var useStyles = makeStyles$1({
2166
- root: {
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
- fontSize: variant === "d1"
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
- fontWeight: variant === "d1" ||
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
- lineHeight: variant === "d1" ||
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,26 +2522,22 @@ 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
- var classes = useStyles();
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 = function (_a) {
2526
- var children = _a.children, style = _a.style, maxWidth = _a.maxWidth, padding = _a.padding;
2527
- var XXS = useBreakpoints("xxs");
2528
- var XS = useBreakpoints("xs");
2529
- var SM = useBreakpoints("sm");
2530
- var MD = useBreakpoints("md");
2531
- var LG = useBreakpoints("lg");
2532
- var XL = useBreakpoints("xl");
2533
- var XXL = useBreakpoints("xxl");
2534
- var useStyles = makeStyles$1({
2535
- root: {
2536
- maxWidth: maxWidth
2536
+ var useStyles$1 = makeStyles$1({
2537
+ root: {
2538
+ maxWidth: function (_a) {
2539
+ var maxWidth = _a.maxWidth, XXL = _a.XXL, XL = _a.XL, LG = _a.LG;
2540
+ return maxWidth
2537
2541
  ? maxWidth === "lg"
2538
2542
  ? 960
2539
2543
  : maxWidth === "xl"
@@ -2547,8 +2551,11 @@ var Container = function (_a) {
2547
2551
  ? 1140
2548
2552
  : LG
2549
2553
  ? 960
2550
- : null,
2551
- padding: padding
2554
+ : null;
2555
+ },
2556
+ padding: function (_a) {
2557
+ var padding = _a.padding, XXL = _a.XXL, XL = _a.XL, LG = _a.LG, MD = _a.MD, SM = _a.SM, XS = _a.XS, XXS = _a.XXS;
2558
+ return padding
2552
2559
  ? padding === "xxs"
2553
2560
  ? "0px 8px"
2554
2561
  : padding === "xs"
@@ -2572,10 +2579,30 @@ var Container = function (_a) {
2572
2579
  ? "0px 16px"
2573
2580
  : XXS
2574
2581
  ? "0px 8px"
2575
- : null,
2582
+ : null;
2576
2583
  },
2584
+ },
2585
+ });
2586
+ var Container = function (_a) {
2587
+ var children = _a.children, style = _a.style, maxWidth = _a.maxWidth, padding = _a.padding;
2588
+ var XXS = useBreakpoints("xxs");
2589
+ var XS = useBreakpoints("xs");
2590
+ var SM = useBreakpoints("sm");
2591
+ var MD = useBreakpoints("md");
2592
+ var LG = useBreakpoints("lg");
2593
+ var XL = useBreakpoints("xl");
2594
+ var XXL = useBreakpoints("xxl");
2595
+ var classes = useStyles$1({
2596
+ maxWidth: maxWidth,
2597
+ padding: padding,
2598
+ XXL: XXL,
2599
+ XL: XL,
2600
+ LG: LG,
2601
+ MD: MD,
2602
+ SM: SM,
2603
+ XS: XS,
2604
+ XXS: XXS,
2577
2605
  });
2578
- var classes = useStyles();
2579
2606
  return (React__default.createElement(MaterialContainer, { className: classes.root, style: style }, children));
2580
2607
  };
2581
2608
 
@@ -2598,7 +2625,7 @@ function useBreakpoints(breakpoints) {
2598
2625
  return matches;
2599
2626
  }
2600
2627
 
2601
- var useStyles = makeStyles$1(function (theme) { return ({
2628
+ var useStyles$2 = makeStyles$1(function (theme) { return ({
2602
2629
  root: function (props) { return ({
2603
2630
  width: 40,
2604
2631
  height: 40,
@@ -2667,12 +2694,12 @@ var CheckBox = function (props) {
2667
2694
  var styleProps = {
2668
2695
  disableHover: disableHover,
2669
2696
  };
2670
- var classes = useStyles(styleProps);
2697
+ var classes = useStyles$2(styleProps);
2671
2698
  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
2699
  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
2700
  };
2674
2701
 
2675
- var useStyles$1 = makeStyles$1(function (theme) { return ({
2702
+ var useStyles$3 = makeStyles$1(function (theme) { return ({
2676
2703
  root: function (props) { return ({
2677
2704
  width: 40,
2678
2705
  height: 40,
@@ -2741,13 +2768,13 @@ var RadioButton = function (props) {
2741
2768
  var styleProps = {
2742
2769
  disableHover: disableHover,
2743
2770
  };
2744
- var classes = useStyles$1(styleProps);
2771
+ var classes = useStyles$3(styleProps);
2745
2772
  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
2773
  React__default.createElement("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2747
2774
  React__default.createElement("circle", { cx: "5", cy: "5", r: "5", fill: "white" }))), icon: React__default.createElement("span", { className: classes.icon }) }, other)) }));
2748
2775
  };
2749
2776
 
2750
- var useStyles$2 = makeStyles$1(function (theme) { return ({
2777
+ var useStyles$4 = makeStyles$1(function (theme) { return ({
2751
2778
  root: {
2752
2779
  "& .MuiFormHelperText-contained": {
2753
2780
  marginLeft: 16,
@@ -2847,7 +2874,7 @@ var TextField = function (props) {
2847
2874
  height: height,
2848
2875
  select: select,
2849
2876
  };
2850
- var classes = useStyles$2(styleProps);
2877
+ var classes = useStyles$4(styleProps);
2851
2878
  return (React__default.createElement(MaterialTextField, __assign({ fullWidth: fullWidth, select: select }, other, { className: classes.root, variant: "outlined", InputProps: __assign({ classes: {
2852
2879
  root: classes.inputRoot,
2853
2880
  input: classes.input,
@@ -2863,50 +2890,79 @@ var TextField = function (props) {
2863
2890
  } }, SelectProps) }), children));
2864
2891
  };
2865
2892
 
2866
- var Tab = function (props) {
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
- var useStyles = makeStyles$1(function (theme) { return ({
2869
- root: {
2870
- minWidth: 0,
2871
- minHeight: 0,
2872
- padding: 0,
2873
- margin: margin ? margin : "0px 12px",
2874
- fontWeight: 700,
2875
- fontSize: fontSize ? fontSize : 14,
2876
- lineHeight: 1.4,
2877
- "&:hover": {
2878
- color: "#000000",
2879
- },
2893
+ var useStyles$5 = makeStyles$1(function (theme) { return ({
2894
+ root: {
2895
+ minWidth: 0,
2896
+ minHeight: 0,
2897
+ padding: 0,
2898
+ margin: function (_a) {
2899
+ var margin = _a.margin;
2900
+ return (margin ? margin : "0px 12px");
2880
2901
  },
2881
- text: {
2882
- opacity: 1,
2883
- color: theme.black.black700,
2902
+ fontWeight: 700,
2903
+ fontSize: function (_a) {
2904
+ var fontSize = _a.fontSize;
2905
+ return (fontSize ? fontSize : 14);
2884
2906
  },
2885
- indicatorRoot: {
2886
- color: selected ? "#000000" : "unset",
2887
- width: width ? width : 56,
2888
- height: height ? height : 56,
2889
- display: "flex",
2890
- justifyContent: "center",
2891
- alignItems: "center",
2892
- position: "relative",
2907
+ lineHeight: 1.4,
2908
+ "&:hover": {
2909
+ color: "#000000",
2893
2910
  },
2894
- selected_indicator: {
2895
- animation: animation ? "$selected 300ms " : "unset",
2896
- height: 4,
2897
- width: "100%",
2898
- backgroundColor: theme.primary.primary400,
2899
- position: "absolute",
2900
- bottom: 0,
2901
- display: noIndicator ? "none" : null,
2902
- borderRadius: "100px 100px 0px 0px",
2911
+ },
2912
+ text: {
2913
+ opacity: 1,
2914
+ color: theme.black.black700,
2915
+ },
2916
+ indicatorRoot: {
2917
+ color: function (_a) {
2918
+ var selected = _a.selected;
2919
+ return (selected ? "#000000" : "unset");
2903
2920
  },
2904
- "@keyframes selected": {
2905
- from: { width: 0 },
2906
- to: { width: "100%" },
2921
+ width: function (_a) {
2922
+ var width = _a.width;
2923
+ return (width ? width : 56);
2907
2924
  },
2908
- }); });
2909
- var classes = useStyles();
2925
+ height: function (_a) {
2926
+ var height = _a.height;
2927
+ return (height ? height : 56);
2928
+ },
2929
+ display: "flex",
2930
+ justifyContent: "center",
2931
+ alignItems: "center",
2932
+ position: "relative",
2933
+ },
2934
+ selected_indicator: {
2935
+ animation: function (_a) {
2936
+ var animation = _a.animation;
2937
+ return animation ? "$selected 300ms " : "unset";
2938
+ },
2939
+ height: 4,
2940
+ width: "100%",
2941
+ backgroundColor: theme.primary.primary400,
2942
+ position: "absolute",
2943
+ bottom: 0,
2944
+ display: function (_a) {
2945
+ var noIndicator = _a.noIndicator;
2946
+ return (noIndicator ? "none" : null);
2947
+ },
2948
+ borderRadius: "100px 100px 0px 0px",
2949
+ },
2950
+ "@keyframes selected": {
2951
+ from: { width: 0 },
2952
+ to: { width: "100%" },
2953
+ },
2954
+ }); });
2955
+ var Tab = function (props) {
2956
+ 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"]);
2957
+ var classes = useStyles$5({
2958
+ animation: animation,
2959
+ noIndicator: noIndicator,
2960
+ height: height,
2961
+ width: width,
2962
+ selected: selected,
2963
+ margin: margin,
2964
+ fontSize: fontSize,
2965
+ });
2910
2966
  return (React__default.createElement(MaterialTab, __assign({}, other, { classes: {
2911
2967
  root: classes.root,
2912
2968
  textColorInherit: classes.text,
@@ -2915,7 +2971,7 @@ var Tab = function (props) {
2915
2971
  selected ? React__default.createElement("div", { className: classes.selected_indicator }) : null), disableRipple: true })));
2916
2972
  };
2917
2973
 
2918
- var useStyles$3 = makeStyles$1({
2974
+ var useStyles$6 = makeStyles$1({
2919
2975
  root: {},
2920
2976
  indicatorRoot: {
2921
2977
  backgroundColor: "transparent",
@@ -2923,14 +2979,14 @@ var useStyles$3 = makeStyles$1({
2923
2979
  });
2924
2980
  var Tabs = function (props) {
2925
2981
  var children = props.children, other = __rest(props, ["children"]);
2926
- var classes = useStyles$3();
2982
+ var classes = useStyles$6();
2927
2983
  return (React__default.createElement(MaterialTabs, __assign({}, other, { classes: {
2928
2984
  root: classes.root,
2929
2985
  indicator: classes.indicatorRoot,
2930
2986
  } }), children));
2931
2987
  };
2932
2988
 
2933
- var useStyles$4 = makeStyles$1(function (theme) { return ({
2989
+ var useStyles$7 = makeStyles$1(function (theme) { return ({
2934
2990
  root: function (props) { return ({
2935
2991
  //SWAPTheme調整
2936
2992
  textTransform: "unset",
@@ -2962,7 +3018,7 @@ var SegmentedTab = function (props) {
2962
3018
  fontSize: fontSize,
2963
3019
  flex: flex,
2964
3020
  };
2965
- var classes = useStyles$4(styleProps);
3021
+ var classes = useStyles$7(styleProps);
2966
3022
  return (React__default.createElement(MaterialTab, __assign({}, other, { disableRipple: true, classes: { textColorInherit: classes.text }, className: classes.root })));
2967
3023
  };
2968
3024
 
@@ -3399,7 +3455,7 @@ var smoothscroll = createCommonjsModule(function (module, exports) {
3399
3455
  });
3400
3456
  var smoothscroll_1 = smoothscroll.polyfill;
3401
3457
 
3402
- var useStyles$5 = makeStyles$1(function (theme) { return ({
3458
+ var useStyles$8 = makeStyles$1(function (theme) { return ({
3403
3459
  root: function (props) { return ({
3404
3460
  width: props.width,
3405
3461
  boxSizing: "border-box",
@@ -3434,7 +3490,7 @@ var SegmentedTabs = function (_a) {
3434
3490
  width: width,
3435
3491
  slide: slide,
3436
3492
  };
3437
- var classes = useStyles$5(styleProps);
3493
+ var classes = useStyles$8(styleProps);
3438
3494
  var tabsRef = useRef(null);
3439
3495
  useEffect(function () {
3440
3496
  smoothscroll.polyfill();
@@ -3490,7 +3546,7 @@ var useOutlinedInputStyles = makeStyles$1(function (theme) { return ({
3490
3546
  },
3491
3547
  notchedOutline: {},
3492
3548
  }); });
3493
- var useStyles$6 = makeStyles$1(function (theme) { return ({
3549
+ var useStyles$9 = makeStyles$1(function (theme) { return ({
3494
3550
  root: function (props) { return ({
3495
3551
  //SWAPTheme調整
3496
3552
  width: props.width ? props.width : "100%",
@@ -3553,7 +3609,7 @@ var Select = function (_a) {
3553
3609
  paddingLeft: paddingLeft,
3554
3610
  dropdown: dropdown,
3555
3611
  };
3556
- var classes = useStyles$6(styleProps);
3612
+ var classes = useStyles$9(styleProps);
3557
3613
  return (React__default.createElement(FormControl, { variant: "outlined", style: style, classes: { root: classes.root } },
3558
3614
  React__default.createElement(InputLabel, { classes: {
3559
3615
  root: classes.placeholder,
@@ -3577,7 +3633,7 @@ var Menu = function (props) {
3577
3633
  return (React__default.createElement(MaterialMenu, __assign({ open: open }, other), children));
3578
3634
  };
3579
3635
 
3580
- var useStyles$7 = makeStyles$1(function (theme) { return ({
3636
+ var useStyles$a = makeStyles$1(function (theme) { return ({
3581
3637
  root: function (props) { return ({
3582
3638
  fontSize: 14,
3583
3639
  fontWeight: 700,
@@ -3616,19 +3672,18 @@ var MenuItem = React__default.forwardRef(function (props, ref) {
3616
3672
  hoverIconColor: hoverIconColor,
3617
3673
  rippleColor: rippleColor,
3618
3674
  };
3619
- var classes = useStyles$7(styleProps);
3675
+ var classes = useStyles$a(styleProps);
3620
3676
  return (React__default.createElement(MaterialMenuItem, __assign({ className: classes.root }, other),
3621
3677
  children,
3622
3678
  React__default.createElement(ListItemIcon, { style: { justifyContent: "flex-end" } }, iconChildren)));
3623
3679
  });
3624
3680
 
3625
- var Button = function (props) {
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"]);
3627
- var theme = useTheme$1();
3628
- var useStyles = makeStyles$1(function (theme) { return ({
3629
- root: {
3630
- textTransform: "unset",
3631
- color: variant === "primary"
3681
+ var useStyles$b = makeStyles$1(function (theme) { return ({
3682
+ root: {
3683
+ textTransform: "unset",
3684
+ color: function (_a) {
3685
+ var variant = _a.variant;
3686
+ return variant === "primary"
3632
3687
  ? theme.black.white
3633
3688
  : variant === "secondary"
3634
3689
  ? theme.primary.primary400
@@ -3640,8 +3695,11 @@ var Button = function (props) {
3640
3695
  ? theme.black.black800
3641
3696
  : variant === "danger"
3642
3697
  ? theme.black.white
3643
- : theme.black.white,
3644
- backgroundColor: variant === "primary"
3698
+ : theme.black.white;
3699
+ },
3700
+ backgroundColor: function (_a) {
3701
+ var variant = _a.variant;
3702
+ return variant === "primary"
3645
3703
  ? theme.primary.primary400
3646
3704
  : variant === "secondary"
3647
3705
  ? theme.black.white
@@ -3653,8 +3711,11 @@ var Button = function (props) {
3653
3711
  ? theme.black.white
3654
3712
  : variant === "danger"
3655
3713
  ? theme.danger.danger800
3656
- : theme.primary.primary400,
3657
- border: variant === "primary"
3714
+ : theme.primary.primary400;
3715
+ },
3716
+ border: function (_a) {
3717
+ var variant = _a.variant;
3718
+ return variant === "primary"
3658
3719
  ? "1px solid " + theme.primary.primary600
3659
3720
  : variant === "secondary"
3660
3721
  ? "1px solid " + theme.primary.primary400
@@ -3664,29 +3725,47 @@ var Button = function (props) {
3664
3725
  ? null
3665
3726
  : variant === "danger"
3666
3727
  ? "1px solid " + theme.danger.dangerA11y
3667
- : "1px solid " + theme.primary.primary600,
3668
- borderRadius: "8px",
3669
- height: size === "small"
3728
+ : "1px solid " + theme.primary.primary600;
3729
+ },
3730
+ borderRadius: "8px",
3731
+ height: function (_a) {
3732
+ var size = _a.size;
3733
+ return size === "small"
3670
3734
  ? "40px"
3671
3735
  : size === "medium"
3672
3736
  ? "48px"
3673
3737
  : size === "large"
3674
3738
  ? "56px"
3675
- : "48px",
3676
- padding: size === "small"
3739
+ : "48px";
3740
+ },
3741
+ padding: function (_a) {
3742
+ var size = _a.size;
3743
+ return size === "small"
3677
3744
  ? "12px 16px"
3678
3745
  : size === "medium"
3679
3746
  ? "15px 24px"
3680
3747
  : size === "large"
3681
3748
  ? "19px 32px"
3682
- : "15px 24px",
3683
- minWidth: minWidth,
3684
- width: width,
3685
- fontSize: size === "small" ? 14 : size === "medium" || size === "large" ? 16 : 16,
3686
- fontWeight: 700,
3687
- lineHeight: 1.125,
3688
- "&:hover": {
3689
- backgroundColor: variant === "primary"
3749
+ : "15px 24px";
3750
+ },
3751
+ minWidth: function (_a) {
3752
+ var minWidth = _a.minWidth;
3753
+ return minWidth;
3754
+ },
3755
+ width: function (_a) {
3756
+ var width = _a.width;
3757
+ return width;
3758
+ },
3759
+ fontSize: function (_a) {
3760
+ var size = _a.size;
3761
+ return size === "small" ? 14 : size === "medium" || size === "large" ? 16 : 16;
3762
+ },
3763
+ fontWeight: 700,
3764
+ lineHeight: 1.125,
3765
+ "&:hover": {
3766
+ backgroundColor: function (_a) {
3767
+ var variant = _a.variant;
3768
+ return variant === "primary"
3690
3769
  ? theme.primary.primary300
3691
3770
  : variant === "secondary"
3692
3771
  ? theme.primary.primary50
@@ -3698,19 +3777,23 @@ var Button = function (props) {
3698
3777
  ? theme.black.black400
3699
3778
  : variant === "danger"
3700
3779
  ? theme.danger.danger600
3701
- : theme.primary.primary300,
3702
- border: variant === "primary"
3780
+ : theme.primary.primary300;
3781
+ },
3782
+ border: function (_a) {
3783
+ var variant = _a.variant;
3784
+ return variant === "primary"
3703
3785
  ? "1px solid " + theme.primary.primary300
3704
- : variant === "tertiary" ||
3705
- variant === "text" ||
3706
- variant === "black"
3786
+ : variant === "tertiary" || variant === "text" || variant === "black"
3707
3787
  ? null
3708
3788
  : variant === "danger"
3709
3789
  ? "1px solid " + theme.danger.dangerA11y
3710
- : "1px solid " + theme.primary.primary300,
3790
+ : "1px solid " + theme.primary.primary300;
3711
3791
  },
3712
- "&:active": {
3713
- backgroundColor: variant === "primary"
3792
+ },
3793
+ "&:active": {
3794
+ backgroundColor: function (_a) {
3795
+ var variant = _a.variant;
3796
+ return variant === "primary"
3714
3797
  ? theme.primary.primary500
3715
3798
  : variant === "secondary"
3716
3799
  ? theme.primary.primary100
@@ -3722,17 +3805,23 @@ var Button = function (props) {
3722
3805
  ? theme.black.black500
3723
3806
  : variant === "danger"
3724
3807
  ? theme.danger.danger900
3725
- : theme.primary.primary500,
3808
+ : theme.primary.primary500;
3726
3809
  },
3727
- "&:focus-visible": {
3728
- boxShadow: variant === "black"
3810
+ },
3811
+ "&:focus-visible": {
3812
+ boxShadow: function (_a) {
3813
+ var variant = _a.variant;
3814
+ return variant === "black"
3729
3815
  ? "0px 0px 0px 4px #CCCCCC"
3730
3816
  : variant === "danger"
3731
3817
  ? "0px 0px 0px 4px #FFCCD0"
3732
3818
  : variant === "tertiary"
3733
3819
  ? "0px 0px 0px 4px rgba(0, 0, 0, 0.1)"
3734
- : "0px 0px 0px 4px #D7DFF8",
3735
- backgroundColor: variant === "primary"
3820
+ : "0px 0px 0px 4px #D7DFF8";
3821
+ },
3822
+ backgroundColor: function (_a) {
3823
+ var variant = _a.variant;
3824
+ return variant === "primary"
3736
3825
  ? theme.primary.primary400
3737
3826
  : variant === "secondary"
3738
3827
  ? theme.primary.primary50
@@ -3744,8 +3833,11 @@ var Button = function (props) {
3744
3833
  ? theme.black.black400
3745
3834
  : variant === "danger"
3746
3835
  ? theme.danger.danger600
3747
- : theme.primary.primary400,
3748
- border: variant === "secondary"
3836
+ : theme.primary.primary400;
3837
+ },
3838
+ border: function (_a) {
3839
+ var variant = _a.variant;
3840
+ return variant === "secondary"
3749
3841
  ? "1px solid " + theme.primary.primary400
3750
3842
  : variant === "tertiary"
3751
3843
  ? "1px solid " + theme.black.black600
@@ -3755,11 +3847,14 @@ var Button = function (props) {
3755
3847
  ? "1px solid " + theme.black.black800
3756
3848
  : variant === "danger"
3757
3849
  ? "1px solid " + theme.danger.dangerA11y
3758
- : "1px solid " + theme.primary.primary600,
3850
+ : "1px solid " + theme.primary.primary600;
3759
3851
  },
3760
- "&:disabled": {
3761
- opacity: 0.4,
3762
- backgroundColor: variant === "primary"
3852
+ },
3853
+ "&:disabled": {
3854
+ opacity: 0.4,
3855
+ backgroundColor: function (_a) {
3856
+ var variant = _a.variant;
3857
+ return variant === "primary"
3763
3858
  ? theme.primary.primary800
3764
3859
  : variant === "secondary"
3765
3860
  ? theme.black.white
@@ -3771,8 +3866,11 @@ var Button = function (props) {
3771
3866
  ? theme.black.white
3772
3867
  : variant === "danger"
3773
3868
  ? theme.danger.danger800
3774
- : theme.primary.primary800,
3775
- color: variant === "primary"
3869
+ : theme.primary.primary800;
3870
+ },
3871
+ color: function (_a) {
3872
+ var variant = _a.variant;
3873
+ return variant === "primary"
3776
3874
  ? theme.black.white
3777
3875
  : variant === "secondary"
3778
3876
  ? theme.primary.primary400
@@ -3784,16 +3882,28 @@ var Button = function (props) {
3784
3882
  ? theme.black.black800
3785
3883
  : variant === "danger"
3786
3884
  ? theme.black.white
3787
- : theme.black.white,
3788
- border: variant === "secondary"
3885
+ : theme.black.white;
3886
+ },
3887
+ border: function (_a) {
3888
+ var variant = _a.variant;
3889
+ return variant === "secondary"
3789
3890
  ? "1px solid " + theme.primary.primary800
3790
3891
  : variant === "danger"
3791
3892
  ? "1px solid " + theme.danger.dangerA11y
3792
- : null,
3893
+ : null;
3793
3894
  },
3794
3895
  },
3795
- }); });
3796
- var classes = useStyles();
3896
+ },
3897
+ }); });
3898
+ var Button = function (props) {
3899
+ 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"]);
3900
+ var theme = useTheme$1();
3901
+ var classes = useStyles$b({
3902
+ variant: variant,
3903
+ size: size,
3904
+ minWidth: minWidth,
3905
+ width: width,
3906
+ });
3797
3907
  return (React__default.createElement(MaterialButton, __assign({ className: classes.root, disableElevation: true, disableFocusRipple: true, onClick: function (event) {
3798
3908
  onClick(event);
3799
3909
  }, size: "medium" }, other), loading ? (React__default.createElement("div", { style: { position: "relative" } },
@@ -3833,7 +3943,7 @@ var Button = function (props) {
3833
3943
  } }))) : (React__default.createElement("div", { style: { whiteSpace: "nowrap" } }, children))));
3834
3944
  };
3835
3945
 
3836
- var useStyles$8 = makeStyles$1(function () { return ({
3946
+ var useStyles$c = makeStyles$1(function () { return ({
3837
3947
  root: function (props) { return ({
3838
3948
  width: props.width,
3839
3949
  height: props.height,
@@ -4081,7 +4191,7 @@ var IconButton = function (props) {
4081
4191
  : hoverIconColor
4082
4192
  : null,
4083
4193
  };
4084
- var classes = useStyles$8(styleProps);
4194
+ var classes = useStyles$c(styleProps);
4085
4195
  return React__default.createElement(IconButton$1$1, __assign({ className: classes.root }, other));
4086
4196
  };
4087
4197
 
@@ -4100,7 +4210,7 @@ function TransitionDown(props) {
4100
4210
  function Transition(props) {
4101
4211
  return React__default.createElement(Fade, __assign({}, props));
4102
4212
  }
4103
- var useStyles$9 = makeStyles$1(function (theme) { return ({
4213
+ var useStyles$d = makeStyles$1(function (theme) { return ({
4104
4214
  root: {
4105
4215
  "@media only screen and (min-width: 600px)": {
4106
4216
  width: "fit-content",
@@ -4165,7 +4275,7 @@ var Snackbar = function (props) {
4165
4275
  height: height,
4166
4276
  variant: variant,
4167
4277
  };
4168
- var classes = useStyles$9(styleProps);
4278
+ var classes = useStyles$d(styleProps);
4169
4279
  return (React__default.createElement(MaterialSnackBar, __assign({}, other, { className: classes.root, ContentProps: {
4170
4280
  classes: {
4171
4281
  root: classes.contentRoot,
@@ -7176,7 +7286,7 @@ const host = createHost(primitives, {
7176
7286
  });
7177
7287
  const animated = host.animated;
7178
7288
 
7179
- var useStyles$a = makeStyles$1(function (theme) { return ({
7289
+ var useStyles$e = makeStyles$1(function (theme) { return ({
7180
7290
  root: function (props) { return ({
7181
7291
  margin: props.margin,
7182
7292
  backgroundColor: props.backgroundColor,
@@ -7223,7 +7333,7 @@ var Tooltip = function (props) {
7223
7333
  border: light ? "1px solid #CCCCCC" : null,
7224
7334
  fontWeight: arrow ? 700 : 400,
7225
7335
  };
7226
- var classes = useStyles$a(styleProps);
7336
+ var classes = useStyles$e(styleProps);
7227
7337
  return (React__default.createElement(MaterialTooltip, __assign({ classes: { tooltip: classes.root, arrow: classes.arrow } }, other, { arrow: arrow }),
7228
7338
  React__default.createElement("div", { style: __assign({ width: "fit-content", height: "fit-content", display: "flex", alignItems: "center", justifyContent: "center" }, childrenStyle) }, children)));
7229
7339
  };
@@ -7250,45 +7360,28 @@ var ModalTransitionEffect = React__default.forwardRef(function ModalTransitionEf
7250
7360
  });
7251
7361
  return (React__default.createElement(React__default.Fragment, null, slide ? (React__default.createElement(Slide, { in: open, direction: "up", mountOnEnter: true, unmountOnExit: true, timeout: { enter: 300, exit: 300 } }, children)) : (React__default.createElement(animated.div, __assign({ style: __assign(__assign({}, style), defaultStyle) }, other), children))));
7252
7362
  });
7253
- var Modal = React__default.forwardRef(function (props, ref) {
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;
7255
- var _a = useState(0), clientHeight = _a[0], setClientHeight = _a[1];
7256
- var _b = useState(0), scorllbarWidth = _b[0], setScorllbarWidth = _b[1];
7257
- useEffect(function () {
7258
- if (mobile || fullWidth) {
7259
- if ((helpText || multiline) && !label) {
7260
- setClientHeight(window.innerHeight - 64 - 73 - 64);
7261
- }
7262
- else if (!helpText && label) {
7263
- setClientHeight(window.innerHeight - 64 - 56 - 99);
7264
- }
7265
- else if ((helpText || multiline) && label) {
7266
- setClientHeight(window.innerHeight - 64 - 73 - 99);
7267
- }
7268
- else {
7269
- setClientHeight(window.innerHeight - 64 - 56 - 64);
7270
- }
7271
- }
7272
- }, [fullWidth, mobile]);
7273
- useEffect(function () {
7274
- var scrollbar_width = window.innerWidth - document.body.clientWidth;
7275
- setScorllbarWidth(scrollbar_width / 2);
7276
- }, []);
7277
- var match_XS = useBreakpoints("xs");
7278
- var useStyles = makeStyles$1(function (theme) { return ({
7279
- root: {
7280
- display: "flex",
7281
- alignItems: fullWidth ? "flex-end" : "center",
7282
- justifyContent: "center",
7283
- border: "unset",
7284
- borderRadius: 12,
7285
- margin: fullWidth ? 0 : match_XS ? "0px 24px" : "0px 16px",
7363
+ var useStyles$f = makeStyles$1(function (theme) { return ({
7364
+ root: {
7365
+ display: "flex",
7366
+ alignItems: function (_a) {
7367
+ var fullWidth = _a.fullWidth;
7368
+ return fullWidth ? "flex-end" : "center";
7286
7369
  },
7287
- backdrop: {
7288
- transition: "all 0.2s ease-in-out !important",
7370
+ justifyContent: "center",
7371
+ border: "unset",
7372
+ borderRadius: 12,
7373
+ margin: function (_a) {
7374
+ var fullWidth = _a.fullWidth, match_XS = _a.match_XS;
7375
+ return fullWidth ? 0 : match_XS ? "0px 24px" : "0px 16px";
7289
7376
  },
7290
- modal: {
7291
- width: width
7377
+ },
7378
+ backdrop: {
7379
+ transition: "all 0.2s ease-in-out !important",
7380
+ },
7381
+ modal: {
7382
+ width: function (_a) {
7383
+ var width = _a.width, size = _a.size;
7384
+ return width
7292
7385
  ? width
7293
7386
  : size === "large"
7294
7387
  ? 800
@@ -7298,19 +7391,28 @@ var Modal = React__default.forwardRef(function (props, ref) {
7298
7391
  ? 480
7299
7392
  : size === "extraSmall"
7300
7393
  ? 320
7301
- : "100%",
7302
- maxWidth: maxWidth,
7303
- borderRadius: fullWidth ? "12px 12px 0px 0px" : 12,
7304
- border: "unset",
7305
- boxShadow: theme.boxShadow.l,
7306
- display: "flex",
7307
- flexDirection: "column",
7308
- outline: 0,
7394
+ : "100%";
7395
+ },
7396
+ maxWidth: function (_a) {
7397
+ var maxWidth = _a.maxWidth;
7398
+ return maxWidth;
7309
7399
  },
7310
- head: {
7311
- height: "100%",
7312
- borderRadius: "12px 12px 0px 0px",
7313
- padding: headpadding
7400
+ borderRadius: function (_a) {
7401
+ var fullWidth = _a.fullWidth;
7402
+ return fullWidth ? "12px 12px 0px 0px" : 12;
7403
+ },
7404
+ border: "unset",
7405
+ boxShadow: theme.boxShadow.l,
7406
+ display: "flex",
7407
+ flexDirection: "column",
7408
+ outline: 0,
7409
+ },
7410
+ head: {
7411
+ height: "100%",
7412
+ borderRadius: "12px 12px 0px 0px",
7413
+ padding: function (_a) {
7414
+ var headpadding = _a.headpadding, mobile = _a.mobile, disCloseIcon = _a.disCloseIcon, helpText = _a.helpText, multiline = _a.multiline;
7415
+ return headpadding
7314
7416
  ? headpadding
7315
7417
  : mobile
7316
7418
  ? disCloseIcon && !helpText && !multiline
@@ -7318,24 +7420,30 @@ var Modal = React__default.forwardRef(function (props, ref) {
7318
7420
  : "12px 16px"
7319
7421
  : disCloseIcon && !helpText && !multiline
7320
7422
  ? "19.5px 24px"
7321
- : "16px 24px",
7322
- display: "flex",
7323
- alignItems: "center",
7324
- justifyContent: "space-between",
7325
- position: "relative",
7326
- pointerEvents: onExit ? "none" : "unset",
7423
+ : "16px 24px";
7327
7424
  },
7328
- title: {
7329
- display: "flex",
7330
- alignItems: "center",
7331
- justifyContent: "center",
7425
+ display: "flex",
7426
+ alignItems: "center",
7427
+ justifyContent: "space-between",
7428
+ position: "relative",
7429
+ pointerEvents: function (_a) {
7430
+ var onExit = _a.onExit;
7431
+ return (onExit ? "none" : "unset");
7332
7432
  },
7333
- icon: {
7334
- "& path": {
7335
- width: 20,
7336
- height: 20,
7337
- },
7338
- color: iconColor === "primary50"
7433
+ },
7434
+ title: {
7435
+ display: "flex",
7436
+ alignItems: "center",
7437
+ justifyContent: "center",
7438
+ },
7439
+ icon: {
7440
+ "& path": {
7441
+ width: 20,
7442
+ height: 20,
7443
+ },
7444
+ color: function (_a) {
7445
+ var iconColor = _a.iconColor, checkIconColor = _a.checkIconColor;
7446
+ return iconColor === "primary50"
7339
7447
  ? theme.primary.primary50
7340
7448
  : iconColor === "primary100"
7341
7449
  ? theme.primary.primary100
@@ -7555,76 +7663,148 @@ var Modal = React__default.forwardRef(function (props, ref) {
7555
7663
  ? theme.black.black900
7556
7664
  : checkIconColor === "black1000"
7557
7665
  ? theme.black.black1000
7558
- : theme.black.black700,
7559
- marginRight: 10,
7666
+ : theme.black.black700;
7560
7667
  },
7561
- closeIconButton: {
7562
- padding: 0,
7563
- width: 32,
7564
- height: 32,
7668
+ marginRight: 10,
7669
+ },
7670
+ closeIconButton: {
7671
+ padding: 0,
7672
+ width: 32,
7673
+ height: 32,
7674
+ borderRadius: 8,
7675
+ "&:hover": {
7565
7676
  borderRadius: 8,
7566
- "&:hover": {
7567
- borderRadius: 8,
7568
- },
7569
- marginLeft: 16,
7570
7677
  },
7571
- closeIconRippleRoot: {
7572
- borderRadius: 8,
7678
+ marginLeft: 16,
7679
+ },
7680
+ closeIconRippleRoot: {
7681
+ borderRadius: 8,
7682
+ },
7683
+ closeIcon: {
7684
+ color: theme.black.black1000,
7685
+ borderRadius: 8,
7686
+ width: 20,
7687
+ height: 20,
7688
+ },
7689
+ body: {
7690
+ transition: "all 0.2s ease-in-out",
7691
+ height: function (_a) {
7692
+ var height = _a.height;
7693
+ return (height ? height : "100%");
7573
7694
  },
7574
- closeIcon: {
7575
- color: theme.black.black1000,
7576
- borderRadius: 8,
7577
- width: 20,
7578
- height: 20,
7695
+ padding: function (_a) {
7696
+ var bodyPadding = _a.bodyPadding, mobile = _a.mobile;
7697
+ return bodyPadding ? bodyPadding : mobile ? 16 : 24;
7579
7698
  },
7580
- body: {
7581
- transition: "all 0.2s ease-in-out",
7582
- height: height ? height : "100%",
7583
- padding: bodyPadding ? bodyPadding : mobile ? 16 : 24,
7584
- position: "relative",
7585
- pointerEvents: onExit ? "none" : "unset",
7586
- maxHeight: bodyMaxHeight
7587
- ? bodyMaxHeight
7588
- : fullWidth
7589
- ? clientHeight
7590
- : "unset",
7591
- overflowY: !onExit ? "scroll" : "hidden",
7592
- "&::-webkit-scrollbar": {
7593
- backgroundColor: "transparent",
7594
- width: 5,
7595
- },
7596
- "&::-webkit-scrollbar-thumb": {
7597
- backgroundColor: theme.black.black600,
7598
- borderRadius: 100,
7599
- },
7600
- "&::-webkit-scrollbar-track-piece:start": {
7601
- marginTop: 12,
7602
- },
7603
- "&::-webkit-scrollbar-track-piece:end": {
7604
- marginBottom: 12,
7605
- },
7699
+ position: "relative",
7700
+ pointerEvents: function (_a) {
7701
+ var onExit = _a.onExit;
7702
+ return (onExit ? "none" : "unset");
7703
+ },
7704
+ maxHeight: function (_a) {
7705
+ var bodyMaxHeight = _a.bodyMaxHeight, fullWidth = _a.fullWidth, clientHeight = _a.clientHeight;
7706
+ return bodyMaxHeight ? bodyMaxHeight : fullWidth ? clientHeight : "unset";
7707
+ },
7708
+ overflowY: function (_a) {
7709
+ var onExit = _a.onExit;
7710
+ return (!onExit ? "scroll" : "hidden");
7711
+ },
7712
+ "&::-webkit-scrollbar": {
7713
+ backgroundColor: "transparent",
7714
+ width: 5,
7715
+ },
7716
+ "&::-webkit-scrollbar-thumb": {
7717
+ backgroundColor: theme.black.black600,
7718
+ borderRadius: 100,
7719
+ },
7720
+ "&::-webkit-scrollbar-track-piece:start": {
7721
+ marginTop: 12,
7722
+ },
7723
+ "&::-webkit-scrollbar-track-piece:end": {
7724
+ marginBottom: 12,
7606
7725
  },
7607
- footer: {
7608
- height: "100%",
7609
- padding: label || secondaryButton || primaryButton
7726
+ },
7727
+ footer: {
7728
+ height: "100%",
7729
+ padding: function (_a) {
7730
+ var label = _a.label, secondaryButton = _a.secondaryButton, primaryButton = _a.primaryButton, mobile = _a.mobile;
7731
+ return label || secondaryButton || primaryButton
7610
7732
  ? mobile
7611
7733
  ? "12px 16px"
7612
7734
  : "16px 24px"
7613
- : null,
7614
- borderRadius: "0px 0px 12px 12px",
7615
- display: "flex",
7616
- flexDirection: mobile ? "column" : "row",
7617
- alignItems: "center",
7618
- justifyContent: "space-between",
7735
+ : null;
7619
7736
  },
7620
- footerButton: {
7621
- width: buttonFullWidth || footerDisplayColumn || mobile ? "100%" : null,
7622
- display: "flex",
7623
- flexDirection: footerDisplayColumn ? "column-reverse" : "row",
7624
- alignItems: "center",
7737
+ borderRadius: "0px 0px 12px 12px",
7738
+ display: "flex",
7739
+ flexDirection: function (_a) {
7740
+ var mobile = _a.mobile;
7741
+ return (mobile ? "column" : "row");
7625
7742
  },
7626
- }); });
7627
- var classes = useStyles();
7743
+ alignItems: "center",
7744
+ justifyContent: "space-between",
7745
+ },
7746
+ footerButton: {
7747
+ width: function (_a) {
7748
+ var buttonFullWidth = _a.buttonFullWidth, footerDisplayColumn = _a.footerDisplayColumn, mobile = _a.mobile;
7749
+ return buttonFullWidth || footerDisplayColumn || mobile ? "100%" : null;
7750
+ },
7751
+ display: "flex",
7752
+ flexDirection: function (_a) {
7753
+ var footerDisplayColumn = _a.footerDisplayColumn;
7754
+ return footerDisplayColumn ? "column-reverse" : "row";
7755
+ },
7756
+ alignItems: "center",
7757
+ },
7758
+ }); });
7759
+ var Modal = React__default.forwardRef(function (props, ref) {
7760
+ 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;
7761
+ var _a = useState(0), clientHeight = _a[0], setClientHeight = _a[1];
7762
+ var _b = useState(0), scorllbarWidth = _b[0], setScorllbarWidth = _b[1];
7763
+ useEffect(function () {
7764
+ if (mobile || fullWidth) {
7765
+ if ((helpText || multiline) && !label) {
7766
+ setClientHeight(window.innerHeight - 64 - 73 - 64);
7767
+ }
7768
+ else if (!helpText && label) {
7769
+ setClientHeight(window.innerHeight - 64 - 56 - 99);
7770
+ }
7771
+ else if ((helpText || multiline) && label) {
7772
+ setClientHeight(window.innerHeight - 64 - 73 - 99);
7773
+ }
7774
+ else {
7775
+ setClientHeight(window.innerHeight - 64 - 56 - 64);
7776
+ }
7777
+ }
7778
+ }, [fullWidth, mobile]);
7779
+ useEffect(function () {
7780
+ var scrollbar_width = window.innerWidth - document.body.clientWidth;
7781
+ setScorllbarWidth(scrollbar_width / 2);
7782
+ }, []);
7783
+ var match_XS = useBreakpoints("xs");
7784
+ var classes = useStyles$f({
7785
+ fullWidth: fullWidth,
7786
+ match_XS: match_XS,
7787
+ width: width,
7788
+ size: size,
7789
+ maxWidth: maxWidth,
7790
+ headpadding: headpadding,
7791
+ mobile: mobile,
7792
+ disCloseIcon: disCloseIcon,
7793
+ onExit: onExit,
7794
+ iconColor: iconColor,
7795
+ checkIconColor: checkIconColor,
7796
+ height: height,
7797
+ bodyPadding: bodyPadding,
7798
+ bodyMaxHeight: bodyMaxHeight,
7799
+ clientHeight: clientHeight,
7800
+ label: label,
7801
+ secondaryButton: secondaryButton,
7802
+ primaryButton: primaryButton,
7803
+ buttonFullWidth: buttonFullWidth,
7804
+ footerDisplayColumn: footerDisplayColumn,
7805
+ helpText: helpText,
7806
+ multiline: multiline,
7807
+ });
7628
7808
  return (React__default.createElement(MaterialModal, { open: open, className: classes.root, BackdropComponent: Backdrop, BackdropProps: {
7629
7809
  className: classes.backdrop,
7630
7810
  style: { overflow: "auto", WebkitOverflowScrolling: "touch" },
@@ -7731,7 +7911,7 @@ var Modal = React__default.forwardRef(function (props, ref) {
7731
7911
  : "primary", size: "small", onClick: primaryButton.onClick, disabled: primaryButton.disabled, loading: primaryButton.loading, style: primaryButton.style }, primaryButton.title))) : null))) : null)))))));
7732
7912
  });
7733
7913
 
7734
- var useStyles$b = makeStyles$1(function () { return ({
7914
+ var useStyles$g = makeStyles$1(function () { return ({
7735
7915
  root: function (props) { return ({
7736
7916
  backgroundColor: props.backgroundColor,
7737
7917
  border: "1px solid " + props.borderColor,
@@ -7779,7 +7959,7 @@ var Banner = function (props) {
7779
7959
  height: height ? height : null,
7780
7960
  alignItems: mobile ? "flex-start" : alignStart ? "flex-start" : "center",
7781
7961
  };
7782
- var classes = useStyles$b(styleProps);
7962
+ var classes = useStyles$g(styleProps);
7783
7963
  var ref = useRef(null);
7784
7964
  useEffect(function () {
7785
7965
  if (ref.current) {
@@ -7805,7 +7985,7 @@ var Banner = function (props) {
7805
7985
  React__default.createElement(Typography, { variant: "caption2" }, children)));
7806
7986
  };
7807
7987
 
7808
- var useStyles$c = makeStyles$1(function () { return ({
7988
+ var useStyles$h = makeStyles$1(function () { return ({
7809
7989
  root: function (props) { return ({
7810
7990
  backgroundColor: props.backgroundColor,
7811
7991
  border: props.border,
@@ -7861,7 +8041,7 @@ var Chip = function (props) {
7861
8041
  ? theme.danger.danger800
7862
8042
  : theme.primary.primary800,
7863
8043
  };
7864
- var classes = useStyles$c(styleProps);
8044
+ var classes = useStyles$h(styleProps);
7865
8045
  return (React__default.createElement("div", __assign({ className: classes.root }, other),
7866
8046
  React__default.createElement("span", { style: { marginRight: variant === "success" ? 4 : 0 } }, label),
7867
8047
  variant === "success" && !icon ? icon_success : icon));
@@ -12002,7 +12182,7 @@ var MaterialSkeleton = withStyles(styles$3, {
12002
12182
  name: 'MuiSkeleton'
12003
12183
  })(Skeleton);
12004
12184
 
12005
- var useStyles$d = makeStyles$1(function (theme) { return ({
12185
+ var useStyles$i = makeStyles$1(function (theme) { return ({
12006
12186
  root: function () { return ({}); },
12007
12187
  ul: {
12008
12188
  "& li": {
@@ -12058,7 +12238,7 @@ var Pagination$1 = function (props) {
12058
12238
  // const theme = useTheme();
12059
12239
  var other = __rest(props, []);
12060
12240
  var styleProps = {};
12061
- var classes = useStyles$d(styleProps);
12241
+ var classes = useStyles$i(styleProps);
12062
12242
  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: {
12063
12243
  root: classes.itemRoot,
12064
12244
  rounded: classes.rounded,
@@ -12067,7 +12247,7 @@ var Pagination$1 = function (props) {
12067
12247
  } }))); } })));
12068
12248
  };
12069
12249
 
12070
- var useStyles$e = makeStyles$1(function (theme) { return ({
12250
+ var useStyles$j = makeStyles$1(function (theme) { return ({
12071
12251
  root: function (props) { return ({
12072
12252
  width: props.width,
12073
12253
  display: "flex",
@@ -12094,7 +12274,7 @@ var Progress = function (props) {
12094
12274
  width: width ? width : "100%",
12095
12275
  size: size ? size : 24,
12096
12276
  };
12097
- var classes = useStyles$e(styleProps);
12277
+ var classes = useStyles$j(styleProps);
12098
12278
  var a = Array.from(Array(count).keys());
12099
12279
  return (React__default.createElement("div", __assign({ className: classes.root }, other), a.map(function (i) {
12100
12280
  return (React__default.createElement("div", { key: i, style: {
@@ -12144,7 +12324,7 @@ var Progress = function (props) {
12144
12324
  })));
12145
12325
  };
12146
12326
 
12147
- var useStyles$f = makeStyles$1(function (theme) { return ({
12327
+ var useStyles$k = makeStyles$1(function (theme) { return ({
12148
12328
  popper: function (props) { return ({
12149
12329
  border: "1px solid #CCCCCC",
12150
12330
  boxShadow: " 0px 4px 12px rgba(0, 0, 0, 0.1)",
@@ -12287,7 +12467,7 @@ var AutoComplete = function (props) {
12287
12467
  marginTop: anchorOrigin ? anchorOrigin.vertical : -65,
12288
12468
  marginLeft: anchorOrigin ? anchorOrigin.horizontal : -0,
12289
12469
  };
12290
- var classes = useStyles$f(styleProps);
12470
+ var classes = useStyles$k(styleProps);
12291
12471
  var id = open ? "simple" : undefined;
12292
12472
  return (React__default.createElement("div", null,
12293
12473
  React__default.createElement(Popper$1, { id: id, open: open, anchorEl: anchorEl, placement: "bottom-start", className: classes.popper },
@@ -12662,7 +12842,7 @@ var SWAPTaxDescription$1 = function (incomeCode, expenseCode) {
12662
12842
  * 3. 所得類別為50薪資時不會有費用類別
12663
12843
  */
12664
12844
 
12665
- var useStyles$g = makeStyles$1(function (theme) { return ({
12845
+ var useStyles$l = makeStyles$1(function (theme) { return ({
12666
12846
  root: function (props) { return ({
12667
12847
  backgroundColor: theme.black.black400,
12668
12848
  transform: "unset",
@@ -12671,7 +12851,7 @@ var useStyles$g = makeStyles$1(function (theme) { return ({
12671
12851
  var Skeleton$1 = function (props) {
12672
12852
  var other = __rest(props, []);
12673
12853
  var styleProps = {};
12674
- var classes = useStyles$g(styleProps);
12854
+ var classes = useStyles$l(styleProps);
12675
12855
  return React__default.createElement(MaterialSkeleton, __assign({ classes: { root: classes.root } }, other));
12676
12856
  };
12677
12857
 
@@ -12698,7 +12878,7 @@ var useOutlinedInputStyles$1 = makeStyles$1(function (theme) { return ({
12698
12878
  },
12699
12879
  notchedOutline: {},
12700
12880
  }); });
12701
- var useStyles$h = makeStyles$1(function (theme) { return ({
12881
+ var useStyles$m = makeStyles$1(function (theme) { return ({
12702
12882
  root: function (props) { return ({
12703
12883
  //SWAPTheme調整
12704
12884
  width: props.width ? props.width : "100%",
@@ -12743,7 +12923,7 @@ var Dropdown = function (props) {
12743
12923
  width: width,
12744
12924
  height: height,
12745
12925
  };
12746
- var classes = useStyles$h(styleProps);
12926
+ var classes = useStyles$m(styleProps);
12747
12927
  var outlinedInputClasses = useOutlinedInputStyles$1();
12748
12928
  return (React__default.createElement(FormControl, { variant: "outlined", style: formControlStyle, classes: { root: classes.root } },
12749
12929
  React__default.createElement(MaterialSelect, __assign({}, other, { classes: {
@@ -12752,7 +12932,7 @@ var Dropdown = function (props) {
12752
12932
  React__default.createElement(FormHelperText, { style: helperTextStyle }, helperText)));
12753
12933
  };
12754
12934
 
12755
- var useStyles$i = makeStyles$1(function (theme) { return ({
12935
+ var useStyles$n = makeStyles$1(function (theme) { return ({
12756
12936
  root: function (props) { return ({
12757
12937
  width: props.width
12758
12938
  ? props.width
@@ -12799,7 +12979,7 @@ var RadioList = function (props) {
12799
12979
  height: height,
12800
12980
  line: line,
12801
12981
  };
12802
- var classes = useStyles$i(styleProps);
12982
+ var classes = useStyles$n(styleProps);
12803
12983
  var _a = useState(0), lineHeight = _a[0], setLineHeight = _a[1];
12804
12984
  var ref = useRef(null);
12805
12985
  useEffect(function () {
@@ -12845,7 +13025,7 @@ var RadioList = function (props) {
12845
13025
  !multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
12846
13026
  };
12847
13027
 
12848
- var useStyles$j = makeStyles$1(function (theme) { return ({
13028
+ var useStyles$o = makeStyles$1(function (theme) { return ({
12849
13029
  root: function (props) { return ({
12850
13030
  width: props.width
12851
13031
  ? props.width
@@ -12892,7 +13072,7 @@ var CheckBoxList = function (props) {
12892
13072
  height: height,
12893
13073
  line: line,
12894
13074
  };
12895
- var classes = useStyles$j(styleProps);
13075
+ var classes = useStyles$o(styleProps);
12896
13076
  var _a = useState(0), lineHeight = _a[0], setLineHeight = _a[1];
12897
13077
  var ref = useRef(null);
12898
13078
  useEffect(function () {
@@ -12938,7 +13118,7 @@ var CheckBoxList = function (props) {
12938
13118
  !multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
12939
13119
  };
12940
13120
 
12941
- var useStyles$k = makeStyles$1(function (theme) { return ({
13121
+ var useStyles$p = makeStyles$1(function (theme) { return ({
12942
13122
  root: function (props) { return ({
12943
13123
  cursor: "pointer",
12944
13124
  color: props.color,
@@ -13071,7 +13251,7 @@ var Link = function (props) {
13071
13251
  ? theme.black.black1000
13072
13252
  : theme.black.black1000,
13073
13253
  };
13074
- var classes = useStyles$k(styleProps);
13254
+ var classes = useStyles$p(styleProps);
13075
13255
  return (React__default.createElement(MaterialLink, __assign({ classes: {
13076
13256
  root: classes.root,
13077
13257
  focusVisible: classes.focusVisible,
@@ -13079,7 +13259,7 @@ var Link = function (props) {
13079
13259
  }, tabIndex: 0 }, other)));
13080
13260
  };
13081
13261
 
13082
- var useStyles$l = makeStyles$1(function (theme) { return ({
13262
+ var useStyles$q = makeStyles$1(function (theme) { return ({
13083
13263
  root: function (props) { return ({
13084
13264
  boxShadow: theme.boxShadow.xl,
13085
13265
  borderRadius: 12,
@@ -13099,13 +13279,13 @@ var Paper = function (props) {
13099
13279
  matchSM: matchSM,
13100
13280
  matchXS: matchXS,
13101
13281
  };
13102
- var classes = useStyles$l(styleProps);
13282
+ var classes = useStyles$q(styleProps);
13103
13283
  return (React__default.createElement(Paper$1$1, __assign({ variant: "outlined", classes: {
13104
13284
  root: classes.root,
13105
13285
  } }, other)));
13106
13286
  };
13107
13287
 
13108
- var useStyles$m = makeStyles$1(function (theme) { return ({
13288
+ var useStyles$r = makeStyles$1(function (theme) { return ({
13109
13289
  root: {
13110
13290
  width: 40,
13111
13291
  height: 24,
@@ -13171,7 +13351,7 @@ var useStyles$m = makeStyles$1(function (theme) { return ({
13171
13351
  var Switch = function (props) {
13172
13352
  var disabled = props.disabled, other = __rest(props, ["disabled"]);
13173
13353
  var styleProps = { disabled: disabled };
13174
- var classes = useStyles$m(styleProps);
13354
+ var classes = useStyles$r(styleProps);
13175
13355
  return (React__default.createElement("div", { className: classes.switchOutBlock, tabIndex: 0 },
13176
13356
  React__default.createElement(MaterialSwitch, __assign({ disabled: disabled, tabIndex: 0, disableRipple: true, classes: {
13177
13357
  root: classes.root,
@@ -13680,7 +13860,7 @@ var BreadcrumbItem = function (props) {
13680
13860
  } })));
13681
13861
  };
13682
13862
 
13683
- var useStyles$n = makeStyles$1(function (theme) { return ({
13863
+ var useStyles$s = makeStyles$1(function (theme) { return ({
13684
13864
  root: function (props) { return ({
13685
13865
  width: props.width ? props.width : 350,
13686
13866
  height: props.height ? props.height : "100%",
@@ -13705,7 +13885,7 @@ var useStyles$n = makeStyles$1(function (theme) { return ({
13705
13885
  var Card = function (props) {
13706
13886
  var width = props.width, height = props.height, children = props.children, buttons = props.buttons, bodyStyle = props.bodyStyle, loading = props.loading, other = __rest(props, ["width", "height", "children", "buttons", "bodyStyle", "loading"]);
13707
13887
  var useStylesProps = { width: width, height: height };
13708
- var classes = useStyles$n(useStylesProps);
13888
+ var classes = useStyles$s(useStylesProps);
13709
13889
  var theme = useTheme$1();
13710
13890
  return (React__default.createElement("div", __assign({ className: classes.root }, other),
13711
13891
  React__default.createElement("div", { className: classes.body, style: bodyStyle }, !loading ? (children) : (React__default.createElement("div", { style: { width: "100%", height: "100%" } },