@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
package/build/index.js CHANGED
@@ -2164,12 +2164,11 @@ var Styles = function (_a) {
2164
2164
  var StylesWrap = styled.div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject([""], [""])));
2165
2165
  var templateObject_1$8;
2166
2166
 
2167
- var Typography = React__default.memo(function (_a) {
2168
- var variant = _a.variant, children = _a.children, mode = _a.mode, color = _a.color, style = _a.style;
2169
- var theme = core.useTheme();
2170
- var useStyles = core.makeStyles({
2171
- root: {
2172
- color: mode === "dark"
2167
+ var useStyles = core.makeStyles(function (theme) { return ({
2168
+ root: {
2169
+ color: function (_a) {
2170
+ var mode = _a.mode, color = _a.color;
2171
+ return mode === "dark"
2173
2172
  ? color === "primary"
2174
2173
  ? theme.black.white
2175
2174
  : color === "secondary"
@@ -2403,8 +2402,11 @@ var Typography = React__default.memo(function (_a) {
2403
2402
  ? theme.black.black900
2404
2403
  : color === "black1000"
2405
2404
  ? theme.black.black1000
2406
- : theme.black.black1000,
2407
- fontSize: variant === "d1"
2405
+ : theme.black.black1000;
2406
+ },
2407
+ fontSize: function (_a) {
2408
+ var variant = _a.variant;
2409
+ return variant === "d1"
2408
2410
  ? "4.5rem"
2409
2411
  : variant === "d2"
2410
2412
  ? "4rem"
@@ -2448,8 +2450,11 @@ var Typography = React__default.memo(function (_a) {
2448
2450
  ? "1rem"
2449
2451
  : variant === "button_s"
2450
2452
  ? "0.875rem"
2451
- : "1rem",
2452
- fontWeight: variant === "d1" ||
2453
+ : "1rem";
2454
+ },
2455
+ fontWeight: function (_a) {
2456
+ var variant = _a.variant;
2457
+ return variant === "d1" ||
2453
2458
  variant === "d2" ||
2454
2459
  variant === "d3" ||
2455
2460
  variant === "d4" ||
@@ -2483,8 +2488,11 @@ var Typography = React__default.memo(function (_a) {
2483
2488
  variant === "tiny2" ||
2484
2489
  variant === "tiny2_loose"
2485
2490
  ? 400
2486
- : 400,
2487
- lineHeight: variant === "d1" ||
2491
+ : 400;
2492
+ },
2493
+ lineHeight: function (_a) {
2494
+ var variant = _a.variant;
2495
+ return variant === "d1" ||
2488
2496
  variant === "d2" ||
2489
2497
  variant === "d3" ||
2490
2498
  variant === "h1" ||
@@ -2519,26 +2527,22 @@ var Typography = React__default.memo(function (_a) {
2519
2527
  ? 1.6
2520
2528
  : variant === "button_l" || variant === "button_s"
2521
2529
  ? 1.125
2522
- : 1.4,
2523
- letterSpacing: "0em",
2530
+ : 1.4;
2524
2531
  },
2525
- });
2526
- var classes = useStyles();
2532
+ letterSpacing: "0em",
2533
+ },
2534
+ }); });
2535
+ var Typography = React__default.memo(function (_a) {
2536
+ var variant = _a.variant, children = _a.children, mode = _a.mode, color = _a.color, style = _a.style;
2537
+ var classes = useStyles({ variant: variant, mode: mode, color: color });
2527
2538
  return (React__default.createElement(MaterialTypography, { className: classes.root, style: style }, children));
2528
2539
  });
2529
2540
 
2530
- var Container = function (_a) {
2531
- var children = _a.children, style = _a.style, maxWidth = _a.maxWidth, padding = _a.padding;
2532
- var XXS = useBreakpoints("xxs");
2533
- var XS = useBreakpoints("xs");
2534
- var SM = useBreakpoints("sm");
2535
- var MD = useBreakpoints("md");
2536
- var LG = useBreakpoints("lg");
2537
- var XL = useBreakpoints("xl");
2538
- var XXL = useBreakpoints("xxl");
2539
- var useStyles = core.makeStyles({
2540
- root: {
2541
- maxWidth: maxWidth
2541
+ var useStyles$1 = core.makeStyles({
2542
+ root: {
2543
+ maxWidth: function (_a) {
2544
+ var maxWidth = _a.maxWidth, XXL = _a.XXL, XL = _a.XL, LG = _a.LG;
2545
+ return maxWidth
2542
2546
  ? maxWidth === "lg"
2543
2547
  ? 960
2544
2548
  : maxWidth === "xl"
@@ -2552,8 +2556,11 @@ var Container = function (_a) {
2552
2556
  ? 1140
2553
2557
  : LG
2554
2558
  ? 960
2555
- : null,
2556
- padding: padding
2559
+ : null;
2560
+ },
2561
+ padding: function (_a) {
2562
+ 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;
2563
+ return padding
2557
2564
  ? padding === "xxs"
2558
2565
  ? "0px 8px"
2559
2566
  : padding === "xs"
@@ -2577,10 +2584,30 @@ var Container = function (_a) {
2577
2584
  ? "0px 16px"
2578
2585
  : XXS
2579
2586
  ? "0px 8px"
2580
- : null,
2587
+ : null;
2581
2588
  },
2589
+ },
2590
+ });
2591
+ var Container = function (_a) {
2592
+ var children = _a.children, style = _a.style, maxWidth = _a.maxWidth, padding = _a.padding;
2593
+ var XXS = useBreakpoints("xxs");
2594
+ var XS = useBreakpoints("xs");
2595
+ var SM = useBreakpoints("sm");
2596
+ var MD = useBreakpoints("md");
2597
+ var LG = useBreakpoints("lg");
2598
+ var XL = useBreakpoints("xl");
2599
+ var XXL = useBreakpoints("xxl");
2600
+ var classes = useStyles$1({
2601
+ maxWidth: maxWidth,
2602
+ padding: padding,
2603
+ XXL: XXL,
2604
+ XL: XL,
2605
+ LG: LG,
2606
+ MD: MD,
2607
+ SM: SM,
2608
+ XS: XS,
2609
+ XXS: XXS,
2582
2610
  });
2583
- var classes = useStyles();
2584
2611
  return (React__default.createElement(MaterialContainer, { className: classes.root, style: style }, children));
2585
2612
  };
2586
2613
 
@@ -2603,7 +2630,7 @@ function useBreakpoints(breakpoints) {
2603
2630
  return matches;
2604
2631
  }
2605
2632
 
2606
- var useStyles = core.makeStyles(function (theme) { return ({
2633
+ var useStyles$2 = core.makeStyles(function (theme) { return ({
2607
2634
  root: function (props) { return ({
2608
2635
  width: 40,
2609
2636
  height: 40,
@@ -2672,12 +2699,12 @@ var CheckBox = function (props) {
2672
2699
  var styleProps = {
2673
2700
  disableHover: disableHover,
2674
2701
  };
2675
- var classes = useStyles(styleProps);
2702
+ var classes = useStyles$2(styleProps);
2676
2703
  return (React__default.createElement(core.FormControlLabel, { label: label, labelPlacement: labelPlacement, style: { marginRight: 0 }, control: React__default.createElement(MaterialCheckBox, __assign({ disableFocusRipple: true, disableTouchRipple: true, className: classes.root }, other, { checkedIcon: React__default.createElement("span", { className: classes.checked_icon }, checkedIcon ? (checkedIcon) : (React__default.createElement("svg", { width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2677
2704
  React__default.createElement("path", { d: "M1.5 8.5L7 13L15 2", stroke: "white", strokeWidth: "3", strokeLinecap: "round" })))), icon: React__default.createElement("span", { className: classes.icon }, icon ? icon : null) })) }));
2678
2705
  };
2679
2706
 
2680
- var useStyles$1 = core.makeStyles(function (theme) { return ({
2707
+ var useStyles$3 = core.makeStyles(function (theme) { return ({
2681
2708
  root: function (props) { return ({
2682
2709
  width: 40,
2683
2710
  height: 40,
@@ -2746,13 +2773,13 @@ var RadioButton = function (props) {
2746
2773
  var styleProps = {
2747
2774
  disableHover: disableHover,
2748
2775
  };
2749
- var classes = useStyles$1(styleProps);
2776
+ var classes = useStyles$3(styleProps);
2750
2777
  return (React__default.createElement(core.FormControlLabel, { label: label, labelPlacement: labelPlacement, style: { marginRight: 0 }, control: React__default.createElement(MaterialRadioButton, __assign({ disableFocusRipple: true, disableTouchRipple: true, className: classes.root, checkedIcon: React__default.createElement("span", { className: classes.checked_icon },
2751
2778
  React__default.createElement("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2752
2779
  React__default.createElement("circle", { cx: "5", cy: "5", r: "5", fill: "white" }))), icon: React__default.createElement("span", { className: classes.icon }) }, other)) }));
2753
2780
  };
2754
2781
 
2755
- var useStyles$2 = core.makeStyles(function (theme) { return ({
2782
+ var useStyles$4 = core.makeStyles(function (theme) { return ({
2756
2783
  root: {
2757
2784
  "& .MuiFormHelperText-contained": {
2758
2785
  marginLeft: 16,
@@ -2852,7 +2879,7 @@ var TextField = function (props) {
2852
2879
  height: height,
2853
2880
  select: select,
2854
2881
  };
2855
- var classes = useStyles$2(styleProps);
2882
+ var classes = useStyles$4(styleProps);
2856
2883
  return (React__default.createElement(MaterialTextField, __assign({ fullWidth: fullWidth, select: select }, other, { className: classes.root, variant: "outlined", InputProps: __assign({ classes: {
2857
2884
  root: classes.inputRoot,
2858
2885
  input: classes.input,
@@ -2868,50 +2895,79 @@ var TextField = function (props) {
2868
2895
  } }, SelectProps) }), children));
2869
2896
  };
2870
2897
 
2871
- var Tab = function (props) {
2872
- var label = props.label, selected = props.selected, width = props.width, height = props.height, margin = props.margin, fontSize = props.fontSize, noIndicator = props.noIndicator, animation = props.animation, other = __rest(props, ["label", "selected", "width", "height", "margin", "fontSize", "noIndicator", "animation"]);
2873
- var useStyles = core.makeStyles(function (theme) { return ({
2874
- root: {
2875
- minWidth: 0,
2876
- minHeight: 0,
2877
- padding: 0,
2878
- margin: margin ? margin : "0px 12px",
2879
- fontWeight: 700,
2880
- fontSize: fontSize ? fontSize : 14,
2881
- lineHeight: 1.4,
2882
- "&:hover": {
2883
- color: "#000000",
2884
- },
2898
+ var useStyles$5 = core.makeStyles(function (theme) { return ({
2899
+ root: {
2900
+ minWidth: 0,
2901
+ minHeight: 0,
2902
+ padding: 0,
2903
+ margin: function (_a) {
2904
+ var margin = _a.margin;
2905
+ return (margin ? margin : "0px 12px");
2885
2906
  },
2886
- text: {
2887
- opacity: 1,
2888
- color: theme.black.black700,
2907
+ fontWeight: 700,
2908
+ fontSize: function (_a) {
2909
+ var fontSize = _a.fontSize;
2910
+ return (fontSize ? fontSize : 14);
2889
2911
  },
2890
- indicatorRoot: {
2891
- color: selected ? "#000000" : "unset",
2892
- width: width ? width : 56,
2893
- height: height ? height : 56,
2894
- display: "flex",
2895
- justifyContent: "center",
2896
- alignItems: "center",
2897
- position: "relative",
2912
+ lineHeight: 1.4,
2913
+ "&:hover": {
2914
+ color: "#000000",
2898
2915
  },
2899
- selected_indicator: {
2900
- animation: animation ? "$selected 300ms " : "unset",
2901
- height: 4,
2902
- width: "100%",
2903
- backgroundColor: theme.primary.primary400,
2904
- position: "absolute",
2905
- bottom: 0,
2906
- display: noIndicator ? "none" : null,
2907
- borderRadius: "100px 100px 0px 0px",
2916
+ },
2917
+ text: {
2918
+ opacity: 1,
2919
+ color: theme.black.black700,
2920
+ },
2921
+ indicatorRoot: {
2922
+ color: function (_a) {
2923
+ var selected = _a.selected;
2924
+ return (selected ? "#000000" : "unset");
2908
2925
  },
2909
- "@keyframes selected": {
2910
- from: { width: 0 },
2911
- to: { width: "100%" },
2926
+ width: function (_a) {
2927
+ var width = _a.width;
2928
+ return (width ? width : 56);
2912
2929
  },
2913
- }); });
2914
- var classes = useStyles();
2930
+ height: function (_a) {
2931
+ var height = _a.height;
2932
+ return (height ? height : 56);
2933
+ },
2934
+ display: "flex",
2935
+ justifyContent: "center",
2936
+ alignItems: "center",
2937
+ position: "relative",
2938
+ },
2939
+ selected_indicator: {
2940
+ animation: function (_a) {
2941
+ var animation = _a.animation;
2942
+ return animation ? "$selected 300ms " : "unset";
2943
+ },
2944
+ height: 4,
2945
+ width: "100%",
2946
+ backgroundColor: theme.primary.primary400,
2947
+ position: "absolute",
2948
+ bottom: 0,
2949
+ display: function (_a) {
2950
+ var noIndicator = _a.noIndicator;
2951
+ return (noIndicator ? "none" : null);
2952
+ },
2953
+ borderRadius: "100px 100px 0px 0px",
2954
+ },
2955
+ "@keyframes selected": {
2956
+ from: { width: 0 },
2957
+ to: { width: "100%" },
2958
+ },
2959
+ }); });
2960
+ var Tab = function (props) {
2961
+ 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"]);
2962
+ var classes = useStyles$5({
2963
+ animation: animation,
2964
+ noIndicator: noIndicator,
2965
+ height: height,
2966
+ width: width,
2967
+ selected: selected,
2968
+ margin: margin,
2969
+ fontSize: fontSize,
2970
+ });
2915
2971
  return (React__default.createElement(MaterialTab, __assign({}, other, { classes: {
2916
2972
  root: classes.root,
2917
2973
  textColorInherit: classes.text,
@@ -2920,7 +2976,7 @@ var Tab = function (props) {
2920
2976
  selected ? React__default.createElement("div", { className: classes.selected_indicator }) : null), disableRipple: true })));
2921
2977
  };
2922
2978
 
2923
- var useStyles$3 = core.makeStyles({
2979
+ var useStyles$6 = core.makeStyles({
2924
2980
  root: {},
2925
2981
  indicatorRoot: {
2926
2982
  backgroundColor: "transparent",
@@ -2928,14 +2984,14 @@ var useStyles$3 = core.makeStyles({
2928
2984
  });
2929
2985
  var Tabs = function (props) {
2930
2986
  var children = props.children, other = __rest(props, ["children"]);
2931
- var classes = useStyles$3();
2987
+ var classes = useStyles$6();
2932
2988
  return (React__default.createElement(MaterialTabs, __assign({}, other, { classes: {
2933
2989
  root: classes.root,
2934
2990
  indicator: classes.indicatorRoot,
2935
2991
  } }), children));
2936
2992
  };
2937
2993
 
2938
- var useStyles$4 = core.makeStyles(function (theme) { return ({
2994
+ var useStyles$7 = core.makeStyles(function (theme) { return ({
2939
2995
  root: function (props) { return ({
2940
2996
  //SWAPTheme調整
2941
2997
  textTransform: "unset",
@@ -2967,7 +3023,7 @@ var SegmentedTab = function (props) {
2967
3023
  fontSize: fontSize,
2968
3024
  flex: flex,
2969
3025
  };
2970
- var classes = useStyles$4(styleProps);
3026
+ var classes = useStyles$7(styleProps);
2971
3027
  return (React__default.createElement(MaterialTab, __assign({}, other, { disableRipple: true, classes: { textColorInherit: classes.text }, className: classes.root })));
2972
3028
  };
2973
3029
 
@@ -3404,7 +3460,7 @@ var smoothscroll = createCommonjsModule(function (module, exports) {
3404
3460
  });
3405
3461
  var smoothscroll_1 = smoothscroll.polyfill;
3406
3462
 
3407
- var useStyles$5 = core.makeStyles(function (theme) { return ({
3463
+ var useStyles$8 = core.makeStyles(function (theme) { return ({
3408
3464
  root: function (props) { return ({
3409
3465
  width: props.width,
3410
3466
  boxSizing: "border-box",
@@ -3439,7 +3495,7 @@ var SegmentedTabs = function (_a) {
3439
3495
  width: width,
3440
3496
  slide: slide,
3441
3497
  };
3442
- var classes = useStyles$5(styleProps);
3498
+ var classes = useStyles$8(styleProps);
3443
3499
  var tabsRef = React.useRef(null);
3444
3500
  React.useEffect(function () {
3445
3501
  smoothscroll.polyfill();
@@ -3495,7 +3551,7 @@ var useOutlinedInputStyles = core.makeStyles(function (theme) { return ({
3495
3551
  },
3496
3552
  notchedOutline: {},
3497
3553
  }); });
3498
- var useStyles$6 = core.makeStyles(function (theme) { return ({
3554
+ var useStyles$9 = core.makeStyles(function (theme) { return ({
3499
3555
  root: function (props) { return ({
3500
3556
  //SWAPTheme調整
3501
3557
  width: props.width ? props.width : "100%",
@@ -3558,7 +3614,7 @@ var Select = function (_a) {
3558
3614
  paddingLeft: paddingLeft,
3559
3615
  dropdown: dropdown,
3560
3616
  };
3561
- var classes = useStyles$6(styleProps);
3617
+ var classes = useStyles$9(styleProps);
3562
3618
  return (React__default.createElement(core.FormControl, { variant: "outlined", style: style, classes: { root: classes.root } },
3563
3619
  React__default.createElement(core.InputLabel, { classes: {
3564
3620
  root: classes.placeholder,
@@ -3582,7 +3638,7 @@ var Menu = function (props) {
3582
3638
  return (React__default.createElement(MaterialMenu, __assign({ open: open }, other), children));
3583
3639
  };
3584
3640
 
3585
- var useStyles$7 = core.makeStyles(function (theme) { return ({
3641
+ var useStyles$a = core.makeStyles(function (theme) { return ({
3586
3642
  root: function (props) { return ({
3587
3643
  fontSize: 14,
3588
3644
  fontWeight: 700,
@@ -3621,19 +3677,18 @@ var MenuItem = React__default.forwardRef(function (props, ref) {
3621
3677
  hoverIconColor: hoverIconColor,
3622
3678
  rippleColor: rippleColor,
3623
3679
  };
3624
- var classes = useStyles$7(styleProps);
3680
+ var classes = useStyles$a(styleProps);
3625
3681
  return (React__default.createElement(MaterialMenuItem, __assign({ className: classes.root }, other),
3626
3682
  children,
3627
3683
  React__default.createElement(core.ListItemIcon, { style: { justifyContent: "flex-end" } }, iconChildren)));
3628
3684
  });
3629
3685
 
3630
- var Button = function (props) {
3631
- var children = props.children, variant = props.variant, minWidth = props.minWidth, width = props.width, size = props.size, loading = props.loading, onClick = props.onClick, other = __rest(props, ["children", "variant", "minWidth", "width", "size", "loading", "onClick"]);
3632
- var theme = core.useTheme();
3633
- var useStyles = core.makeStyles(function (theme) { return ({
3634
- root: {
3635
- textTransform: "unset",
3636
- color: variant === "primary"
3686
+ var useStyles$b = core.makeStyles(function (theme) { return ({
3687
+ root: {
3688
+ textTransform: "unset",
3689
+ color: function (_a) {
3690
+ var variant = _a.variant;
3691
+ return variant === "primary"
3637
3692
  ? theme.black.white
3638
3693
  : variant === "secondary"
3639
3694
  ? theme.primary.primary400
@@ -3645,8 +3700,11 @@ var Button = function (props) {
3645
3700
  ? theme.black.black800
3646
3701
  : variant === "danger"
3647
3702
  ? theme.black.white
3648
- : theme.black.white,
3649
- backgroundColor: variant === "primary"
3703
+ : theme.black.white;
3704
+ },
3705
+ backgroundColor: function (_a) {
3706
+ var variant = _a.variant;
3707
+ return variant === "primary"
3650
3708
  ? theme.primary.primary400
3651
3709
  : variant === "secondary"
3652
3710
  ? theme.black.white
@@ -3658,8 +3716,11 @@ var Button = function (props) {
3658
3716
  ? theme.black.white
3659
3717
  : variant === "danger"
3660
3718
  ? theme.danger.danger800
3661
- : theme.primary.primary400,
3662
- border: variant === "primary"
3719
+ : theme.primary.primary400;
3720
+ },
3721
+ border: function (_a) {
3722
+ var variant = _a.variant;
3723
+ return variant === "primary"
3663
3724
  ? "1px solid " + theme.primary.primary600
3664
3725
  : variant === "secondary"
3665
3726
  ? "1px solid " + theme.primary.primary400
@@ -3669,29 +3730,47 @@ var Button = function (props) {
3669
3730
  ? null
3670
3731
  : variant === "danger"
3671
3732
  ? "1px solid " + theme.danger.dangerA11y
3672
- : "1px solid " + theme.primary.primary600,
3673
- borderRadius: "8px",
3674
- height: size === "small"
3733
+ : "1px solid " + theme.primary.primary600;
3734
+ },
3735
+ borderRadius: "8px",
3736
+ height: function (_a) {
3737
+ var size = _a.size;
3738
+ return size === "small"
3675
3739
  ? "40px"
3676
3740
  : size === "medium"
3677
3741
  ? "48px"
3678
3742
  : size === "large"
3679
3743
  ? "56px"
3680
- : "48px",
3681
- padding: size === "small"
3744
+ : "48px";
3745
+ },
3746
+ padding: function (_a) {
3747
+ var size = _a.size;
3748
+ return size === "small"
3682
3749
  ? "12px 16px"
3683
3750
  : size === "medium"
3684
3751
  ? "15px 24px"
3685
3752
  : size === "large"
3686
3753
  ? "19px 32px"
3687
- : "15px 24px",
3688
- minWidth: minWidth,
3689
- width: width,
3690
- fontSize: size === "small" ? 14 : size === "medium" || size === "large" ? 16 : 16,
3691
- fontWeight: 700,
3692
- lineHeight: 1.125,
3693
- "&:hover": {
3694
- backgroundColor: variant === "primary"
3754
+ : "15px 24px";
3755
+ },
3756
+ minWidth: function (_a) {
3757
+ var minWidth = _a.minWidth;
3758
+ return minWidth;
3759
+ },
3760
+ width: function (_a) {
3761
+ var width = _a.width;
3762
+ return width;
3763
+ },
3764
+ fontSize: function (_a) {
3765
+ var size = _a.size;
3766
+ return size === "small" ? 14 : size === "medium" || size === "large" ? 16 : 16;
3767
+ },
3768
+ fontWeight: 700,
3769
+ lineHeight: 1.125,
3770
+ "&:hover": {
3771
+ backgroundColor: function (_a) {
3772
+ var variant = _a.variant;
3773
+ return variant === "primary"
3695
3774
  ? theme.primary.primary300
3696
3775
  : variant === "secondary"
3697
3776
  ? theme.primary.primary50
@@ -3703,19 +3782,23 @@ var Button = function (props) {
3703
3782
  ? theme.black.black400
3704
3783
  : variant === "danger"
3705
3784
  ? theme.danger.danger600
3706
- : theme.primary.primary300,
3707
- border: variant === "primary"
3785
+ : theme.primary.primary300;
3786
+ },
3787
+ border: function (_a) {
3788
+ var variant = _a.variant;
3789
+ return variant === "primary"
3708
3790
  ? "1px solid " + theme.primary.primary300
3709
- : variant === "tertiary" ||
3710
- variant === "text" ||
3711
- variant === "black"
3791
+ : variant === "tertiary" || variant === "text" || variant === "black"
3712
3792
  ? null
3713
3793
  : variant === "danger"
3714
3794
  ? "1px solid " + theme.danger.dangerA11y
3715
- : "1px solid " + theme.primary.primary300,
3795
+ : "1px solid " + theme.primary.primary300;
3716
3796
  },
3717
- "&:active": {
3718
- backgroundColor: variant === "primary"
3797
+ },
3798
+ "&:active": {
3799
+ backgroundColor: function (_a) {
3800
+ var variant = _a.variant;
3801
+ return variant === "primary"
3719
3802
  ? theme.primary.primary500
3720
3803
  : variant === "secondary"
3721
3804
  ? theme.primary.primary100
@@ -3727,17 +3810,23 @@ var Button = function (props) {
3727
3810
  ? theme.black.black500
3728
3811
  : variant === "danger"
3729
3812
  ? theme.danger.danger900
3730
- : theme.primary.primary500,
3813
+ : theme.primary.primary500;
3731
3814
  },
3732
- "&:focus-visible": {
3733
- boxShadow: variant === "black"
3815
+ },
3816
+ "&:focus-visible": {
3817
+ boxShadow: function (_a) {
3818
+ var variant = _a.variant;
3819
+ return variant === "black"
3734
3820
  ? "0px 0px 0px 4px #CCCCCC"
3735
3821
  : variant === "danger"
3736
3822
  ? "0px 0px 0px 4px #FFCCD0"
3737
3823
  : variant === "tertiary"
3738
3824
  ? "0px 0px 0px 4px rgba(0, 0, 0, 0.1)"
3739
- : "0px 0px 0px 4px #D7DFF8",
3740
- backgroundColor: variant === "primary"
3825
+ : "0px 0px 0px 4px #D7DFF8";
3826
+ },
3827
+ backgroundColor: function (_a) {
3828
+ var variant = _a.variant;
3829
+ return variant === "primary"
3741
3830
  ? theme.primary.primary400
3742
3831
  : variant === "secondary"
3743
3832
  ? theme.primary.primary50
@@ -3749,8 +3838,11 @@ var Button = function (props) {
3749
3838
  ? theme.black.black400
3750
3839
  : variant === "danger"
3751
3840
  ? theme.danger.danger600
3752
- : theme.primary.primary400,
3753
- border: variant === "secondary"
3841
+ : theme.primary.primary400;
3842
+ },
3843
+ border: function (_a) {
3844
+ var variant = _a.variant;
3845
+ return variant === "secondary"
3754
3846
  ? "1px solid " + theme.primary.primary400
3755
3847
  : variant === "tertiary"
3756
3848
  ? "1px solid " + theme.black.black600
@@ -3760,11 +3852,14 @@ var Button = function (props) {
3760
3852
  ? "1px solid " + theme.black.black800
3761
3853
  : variant === "danger"
3762
3854
  ? "1px solid " + theme.danger.dangerA11y
3763
- : "1px solid " + theme.primary.primary600,
3855
+ : "1px solid " + theme.primary.primary600;
3764
3856
  },
3765
- "&:disabled": {
3766
- opacity: 0.4,
3767
- backgroundColor: variant === "primary"
3857
+ },
3858
+ "&:disabled": {
3859
+ opacity: 0.4,
3860
+ backgroundColor: function (_a) {
3861
+ var variant = _a.variant;
3862
+ return variant === "primary"
3768
3863
  ? theme.primary.primary800
3769
3864
  : variant === "secondary"
3770
3865
  ? theme.black.white
@@ -3776,8 +3871,11 @@ var Button = function (props) {
3776
3871
  ? theme.black.white
3777
3872
  : variant === "danger"
3778
3873
  ? theme.danger.danger800
3779
- : theme.primary.primary800,
3780
- color: variant === "primary"
3874
+ : theme.primary.primary800;
3875
+ },
3876
+ color: function (_a) {
3877
+ var variant = _a.variant;
3878
+ return variant === "primary"
3781
3879
  ? theme.black.white
3782
3880
  : variant === "secondary"
3783
3881
  ? theme.primary.primary400
@@ -3789,16 +3887,28 @@ var Button = function (props) {
3789
3887
  ? theme.black.black800
3790
3888
  : variant === "danger"
3791
3889
  ? theme.black.white
3792
- : theme.black.white,
3793
- border: variant === "secondary"
3890
+ : theme.black.white;
3891
+ },
3892
+ border: function (_a) {
3893
+ var variant = _a.variant;
3894
+ return variant === "secondary"
3794
3895
  ? "1px solid " + theme.primary.primary800
3795
3896
  : variant === "danger"
3796
3897
  ? "1px solid " + theme.danger.dangerA11y
3797
- : null,
3898
+ : null;
3798
3899
  },
3799
3900
  },
3800
- }); });
3801
- var classes = useStyles();
3901
+ },
3902
+ }); });
3903
+ var Button = function (props) {
3904
+ 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"]);
3905
+ var theme = core.useTheme();
3906
+ var classes = useStyles$b({
3907
+ variant: variant,
3908
+ size: size,
3909
+ minWidth: minWidth,
3910
+ width: width,
3911
+ });
3802
3912
  return (React__default.createElement(MaterialButton, __assign({ className: classes.root, disableElevation: true, disableFocusRipple: true, onClick: function (event) {
3803
3913
  onClick(event);
3804
3914
  }, size: "medium" }, other), loading ? (React__default.createElement("div", { style: { position: "relative" } },
@@ -3838,7 +3948,7 @@ var Button = function (props) {
3838
3948
  } }))) : (React__default.createElement("div", { style: { whiteSpace: "nowrap" } }, children))));
3839
3949
  };
3840
3950
 
3841
- var useStyles$8 = core.makeStyles(function () { return ({
3951
+ var useStyles$c = core.makeStyles(function () { return ({
3842
3952
  root: function (props) { return ({
3843
3953
  width: props.width,
3844
3954
  height: props.height,
@@ -4086,7 +4196,7 @@ var IconButton = function (props) {
4086
4196
  : hoverIconColor
4087
4197
  : null,
4088
4198
  };
4089
- var classes = useStyles$8(styleProps);
4199
+ var classes = useStyles$c(styleProps);
4090
4200
  return React__default.createElement(IconButton$1, __assign({ className: classes.root }, other));
4091
4201
  };
4092
4202
 
@@ -4105,7 +4215,7 @@ function TransitionDown(props) {
4105
4215
  function Transition(props) {
4106
4216
  return React__default.createElement(core.Fade, __assign({}, props));
4107
4217
  }
4108
- var useStyles$9 = core.makeStyles(function (theme) { return ({
4218
+ var useStyles$d = core.makeStyles(function (theme) { return ({
4109
4219
  root: {
4110
4220
  "@media only screen and (min-width: 600px)": {
4111
4221
  width: "fit-content",
@@ -4170,7 +4280,7 @@ var Snackbar = function (props) {
4170
4280
  height: height,
4171
4281
  variant: variant,
4172
4282
  };
4173
- var classes = useStyles$9(styleProps);
4283
+ var classes = useStyles$d(styleProps);
4174
4284
  return (React__default.createElement(MaterialSnackBar, __assign({}, other, { className: classes.root, ContentProps: {
4175
4285
  classes: {
4176
4286
  root: classes.contentRoot,
@@ -7181,7 +7291,7 @@ const host = createHost(primitives, {
7181
7291
  });
7182
7292
  const animated = host.animated;
7183
7293
 
7184
- var useStyles$a = core.makeStyles(function (theme) { return ({
7294
+ var useStyles$e = core.makeStyles(function (theme) { return ({
7185
7295
  root: function (props) { return ({
7186
7296
  margin: props.margin,
7187
7297
  backgroundColor: props.backgroundColor,
@@ -7228,7 +7338,7 @@ var Tooltip = function (props) {
7228
7338
  border: light ? "1px solid #CCCCCC" : null,
7229
7339
  fontWeight: arrow ? 700 : 400,
7230
7340
  };
7231
- var classes = useStyles$a(styleProps);
7341
+ var classes = useStyles$e(styleProps);
7232
7342
  return (React__default.createElement(MaterialTooltip, __assign({ classes: { tooltip: classes.root, arrow: classes.arrow } }, other, { arrow: arrow }),
7233
7343
  React__default.createElement("div", { style: __assign({ width: "fit-content", height: "fit-content", display: "flex", alignItems: "center", justifyContent: "center" }, childrenStyle) }, children)));
7234
7344
  };
@@ -7255,45 +7365,28 @@ var ModalTransitionEffect = React__default.forwardRef(function ModalTransitionEf
7255
7365
  });
7256
7366
  return (React__default.createElement(React__default.Fragment, null, slide ? (React__default.createElement(core.Slide, { in: open, direction: "up", mountOnEnter: true, unmountOnExit: true, timeout: { enter: 300, exit: 300 } }, children)) : (React__default.createElement(animated.div, __assign({ style: __assign(__assign({}, style), defaultStyle) }, other), children))));
7257
7367
  });
7258
- var Modal = React__default.forwardRef(function (props, ref) {
7259
- var width = props.width, height = props.height, open = props.open, onClose = props.onClose, title = props.title, helpText = props.helpText, size = props.size, headpadding = props.headpadding, headChildren = props.headChildren, checked = props.checked, failed = props.failed, icon = props.icon, checkIconColor = props.checkIconColor, iconColor = props.iconColor, children = props.children, label = props.label, buttonFullWidth = props.buttonFullWidth, footerDisplayColumn = props.footerDisplayColumn, secondaryButton = props.secondaryButton, primaryButton = props.primaryButton, mobile = props.mobile, fullWidth = props.fullWidth, bodyPadding = props.bodyPadding, maxWidth = props.maxWidth, disCloseIcon = props.disCloseIcon, titleStyle = props.titleStyle, bodyStyle = props.bodyStyle, onExit = props.onExit, bodyMaxHeight = props.bodyMaxHeight, multiline = props.multiline, disUnderLine = props.disUnderLine, footer = props.footer;
7260
- var _a = React.useState(0), clientHeight = _a[0], setClientHeight = _a[1];
7261
- var _b = React.useState(0), scorllbarWidth = _b[0], setScorllbarWidth = _b[1];
7262
- React.useEffect(function () {
7263
- if (mobile || fullWidth) {
7264
- if ((helpText || multiline) && !label) {
7265
- setClientHeight(window.innerHeight - 64 - 73 - 64);
7266
- }
7267
- else if (!helpText && label) {
7268
- setClientHeight(window.innerHeight - 64 - 56 - 99);
7269
- }
7270
- else if ((helpText || multiline) && label) {
7271
- setClientHeight(window.innerHeight - 64 - 73 - 99);
7272
- }
7273
- else {
7274
- setClientHeight(window.innerHeight - 64 - 56 - 64);
7275
- }
7276
- }
7277
- }, [fullWidth, mobile]);
7278
- React.useEffect(function () {
7279
- var scrollbar_width = window.innerWidth - document.body.clientWidth;
7280
- setScorllbarWidth(scrollbar_width / 2);
7281
- }, []);
7282
- var match_XS = useBreakpoints("xs");
7283
- var useStyles = core.makeStyles(function (theme) { return ({
7284
- root: {
7285
- display: "flex",
7286
- alignItems: fullWidth ? "flex-end" : "center",
7287
- justifyContent: "center",
7288
- border: "unset",
7289
- borderRadius: 12,
7290
- margin: fullWidth ? 0 : match_XS ? "0px 24px" : "0px 16px",
7368
+ var useStyles$f = core.makeStyles(function (theme) { return ({
7369
+ root: {
7370
+ display: "flex",
7371
+ alignItems: function (_a) {
7372
+ var fullWidth = _a.fullWidth;
7373
+ return fullWidth ? "flex-end" : "center";
7291
7374
  },
7292
- backdrop: {
7293
- transition: "all 0.2s ease-in-out !important",
7375
+ justifyContent: "center",
7376
+ border: "unset",
7377
+ borderRadius: 12,
7378
+ margin: function (_a) {
7379
+ var fullWidth = _a.fullWidth, match_XS = _a.match_XS;
7380
+ return fullWidth ? 0 : match_XS ? "0px 24px" : "0px 16px";
7294
7381
  },
7295
- modal: {
7296
- width: width
7382
+ },
7383
+ backdrop: {
7384
+ transition: "all 0.2s ease-in-out !important",
7385
+ },
7386
+ modal: {
7387
+ width: function (_a) {
7388
+ var width = _a.width, size = _a.size;
7389
+ return width
7297
7390
  ? width
7298
7391
  : size === "large"
7299
7392
  ? 800
@@ -7303,19 +7396,28 @@ var Modal = React__default.forwardRef(function (props, ref) {
7303
7396
  ? 480
7304
7397
  : size === "extraSmall"
7305
7398
  ? 320
7306
- : "100%",
7307
- maxWidth: maxWidth,
7308
- borderRadius: fullWidth ? "12px 12px 0px 0px" : 12,
7309
- border: "unset",
7310
- boxShadow: theme.boxShadow.l,
7311
- display: "flex",
7312
- flexDirection: "column",
7313
- outline: 0,
7399
+ : "100%";
7400
+ },
7401
+ maxWidth: function (_a) {
7402
+ var maxWidth = _a.maxWidth;
7403
+ return maxWidth;
7314
7404
  },
7315
- head: {
7316
- height: "100%",
7317
- borderRadius: "12px 12px 0px 0px",
7318
- padding: headpadding
7405
+ borderRadius: function (_a) {
7406
+ var fullWidth = _a.fullWidth;
7407
+ return fullWidth ? "12px 12px 0px 0px" : 12;
7408
+ },
7409
+ border: "unset",
7410
+ boxShadow: theme.boxShadow.l,
7411
+ display: "flex",
7412
+ flexDirection: "column",
7413
+ outline: 0,
7414
+ },
7415
+ head: {
7416
+ height: "100%",
7417
+ borderRadius: "12px 12px 0px 0px",
7418
+ padding: function (_a) {
7419
+ var headpadding = _a.headpadding, mobile = _a.mobile, disCloseIcon = _a.disCloseIcon, helpText = _a.helpText, multiline = _a.multiline;
7420
+ return headpadding
7319
7421
  ? headpadding
7320
7422
  : mobile
7321
7423
  ? disCloseIcon && !helpText && !multiline
@@ -7323,24 +7425,30 @@ var Modal = React__default.forwardRef(function (props, ref) {
7323
7425
  : "12px 16px"
7324
7426
  : disCloseIcon && !helpText && !multiline
7325
7427
  ? "19.5px 24px"
7326
- : "16px 24px",
7327
- display: "flex",
7328
- alignItems: "center",
7329
- justifyContent: "space-between",
7330
- position: "relative",
7331
- pointerEvents: onExit ? "none" : "unset",
7428
+ : "16px 24px";
7332
7429
  },
7333
- title: {
7334
- display: "flex",
7335
- alignItems: "center",
7336
- justifyContent: "center",
7430
+ display: "flex",
7431
+ alignItems: "center",
7432
+ justifyContent: "space-between",
7433
+ position: "relative",
7434
+ pointerEvents: function (_a) {
7435
+ var onExit = _a.onExit;
7436
+ return (onExit ? "none" : "unset");
7337
7437
  },
7338
- icon: {
7339
- "& path": {
7340
- width: 20,
7341
- height: 20,
7342
- },
7343
- color: iconColor === "primary50"
7438
+ },
7439
+ title: {
7440
+ display: "flex",
7441
+ alignItems: "center",
7442
+ justifyContent: "center",
7443
+ },
7444
+ icon: {
7445
+ "& path": {
7446
+ width: 20,
7447
+ height: 20,
7448
+ },
7449
+ color: function (_a) {
7450
+ var iconColor = _a.iconColor, checkIconColor = _a.checkIconColor;
7451
+ return iconColor === "primary50"
7344
7452
  ? theme.primary.primary50
7345
7453
  : iconColor === "primary100"
7346
7454
  ? theme.primary.primary100
@@ -7560,76 +7668,148 @@ var Modal = React__default.forwardRef(function (props, ref) {
7560
7668
  ? theme.black.black900
7561
7669
  : checkIconColor === "black1000"
7562
7670
  ? theme.black.black1000
7563
- : theme.black.black700,
7564
- marginRight: 10,
7671
+ : theme.black.black700;
7565
7672
  },
7566
- closeIconButton: {
7567
- padding: 0,
7568
- width: 32,
7569
- height: 32,
7673
+ marginRight: 10,
7674
+ },
7675
+ closeIconButton: {
7676
+ padding: 0,
7677
+ width: 32,
7678
+ height: 32,
7679
+ borderRadius: 8,
7680
+ "&:hover": {
7570
7681
  borderRadius: 8,
7571
- "&:hover": {
7572
- borderRadius: 8,
7573
- },
7574
- marginLeft: 16,
7575
7682
  },
7576
- closeIconRippleRoot: {
7577
- borderRadius: 8,
7683
+ marginLeft: 16,
7684
+ },
7685
+ closeIconRippleRoot: {
7686
+ borderRadius: 8,
7687
+ },
7688
+ closeIcon: {
7689
+ color: theme.black.black1000,
7690
+ borderRadius: 8,
7691
+ width: 20,
7692
+ height: 20,
7693
+ },
7694
+ body: {
7695
+ transition: "all 0.2s ease-in-out",
7696
+ height: function (_a) {
7697
+ var height = _a.height;
7698
+ return (height ? height : "100%");
7578
7699
  },
7579
- closeIcon: {
7580
- color: theme.black.black1000,
7581
- borderRadius: 8,
7582
- width: 20,
7583
- height: 20,
7700
+ padding: function (_a) {
7701
+ var bodyPadding = _a.bodyPadding, mobile = _a.mobile;
7702
+ return bodyPadding ? bodyPadding : mobile ? 16 : 24;
7584
7703
  },
7585
- body: {
7586
- transition: "all 0.2s ease-in-out",
7587
- height: height ? height : "100%",
7588
- padding: bodyPadding ? bodyPadding : mobile ? 16 : 24,
7589
- position: "relative",
7590
- pointerEvents: onExit ? "none" : "unset",
7591
- maxHeight: bodyMaxHeight
7592
- ? bodyMaxHeight
7593
- : fullWidth
7594
- ? clientHeight
7595
- : "unset",
7596
- overflowY: !onExit ? "scroll" : "hidden",
7597
- "&::-webkit-scrollbar": {
7598
- backgroundColor: "transparent",
7599
- width: 5,
7600
- },
7601
- "&::-webkit-scrollbar-thumb": {
7602
- backgroundColor: theme.black.black600,
7603
- borderRadius: 100,
7604
- },
7605
- "&::-webkit-scrollbar-track-piece:start": {
7606
- marginTop: 12,
7607
- },
7608
- "&::-webkit-scrollbar-track-piece:end": {
7609
- marginBottom: 12,
7610
- },
7704
+ position: "relative",
7705
+ pointerEvents: function (_a) {
7706
+ var onExit = _a.onExit;
7707
+ return (onExit ? "none" : "unset");
7708
+ },
7709
+ maxHeight: function (_a) {
7710
+ var bodyMaxHeight = _a.bodyMaxHeight, fullWidth = _a.fullWidth, clientHeight = _a.clientHeight;
7711
+ return bodyMaxHeight ? bodyMaxHeight : fullWidth ? clientHeight : "unset";
7712
+ },
7713
+ overflowY: function (_a) {
7714
+ var onExit = _a.onExit;
7715
+ return (!onExit ? "scroll" : "hidden");
7716
+ },
7717
+ "&::-webkit-scrollbar": {
7718
+ backgroundColor: "transparent",
7719
+ width: 5,
7720
+ },
7721
+ "&::-webkit-scrollbar-thumb": {
7722
+ backgroundColor: theme.black.black600,
7723
+ borderRadius: 100,
7724
+ },
7725
+ "&::-webkit-scrollbar-track-piece:start": {
7726
+ marginTop: 12,
7727
+ },
7728
+ "&::-webkit-scrollbar-track-piece:end": {
7729
+ marginBottom: 12,
7611
7730
  },
7612
- footer: {
7613
- height: "100%",
7614
- padding: label || secondaryButton || primaryButton
7731
+ },
7732
+ footer: {
7733
+ height: "100%",
7734
+ padding: function (_a) {
7735
+ var label = _a.label, secondaryButton = _a.secondaryButton, primaryButton = _a.primaryButton, mobile = _a.mobile;
7736
+ return label || secondaryButton || primaryButton
7615
7737
  ? mobile
7616
7738
  ? "12px 16px"
7617
7739
  : "16px 24px"
7618
- : null,
7619
- borderRadius: "0px 0px 12px 12px",
7620
- display: "flex",
7621
- flexDirection: mobile ? "column" : "row",
7622
- alignItems: "center",
7623
- justifyContent: "space-between",
7740
+ : null;
7624
7741
  },
7625
- footerButton: {
7626
- width: buttonFullWidth || footerDisplayColumn || mobile ? "100%" : null,
7627
- display: "flex",
7628
- flexDirection: footerDisplayColumn ? "column-reverse" : "row",
7629
- alignItems: "center",
7742
+ borderRadius: "0px 0px 12px 12px",
7743
+ display: "flex",
7744
+ flexDirection: function (_a) {
7745
+ var mobile = _a.mobile;
7746
+ return (mobile ? "column" : "row");
7630
7747
  },
7631
- }); });
7632
- var classes = useStyles();
7748
+ alignItems: "center",
7749
+ justifyContent: "space-between",
7750
+ },
7751
+ footerButton: {
7752
+ width: function (_a) {
7753
+ var buttonFullWidth = _a.buttonFullWidth, footerDisplayColumn = _a.footerDisplayColumn, mobile = _a.mobile;
7754
+ return buttonFullWidth || footerDisplayColumn || mobile ? "100%" : null;
7755
+ },
7756
+ display: "flex",
7757
+ flexDirection: function (_a) {
7758
+ var footerDisplayColumn = _a.footerDisplayColumn;
7759
+ return footerDisplayColumn ? "column-reverse" : "row";
7760
+ },
7761
+ alignItems: "center",
7762
+ },
7763
+ }); });
7764
+ var Modal = React__default.forwardRef(function (props, ref) {
7765
+ 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;
7766
+ var _a = React.useState(0), clientHeight = _a[0], setClientHeight = _a[1];
7767
+ var _b = React.useState(0), scorllbarWidth = _b[0], setScorllbarWidth = _b[1];
7768
+ React.useEffect(function () {
7769
+ if (mobile || fullWidth) {
7770
+ if ((helpText || multiline) && !label) {
7771
+ setClientHeight(window.innerHeight - 64 - 73 - 64);
7772
+ }
7773
+ else if (!helpText && label) {
7774
+ setClientHeight(window.innerHeight - 64 - 56 - 99);
7775
+ }
7776
+ else if ((helpText || multiline) && label) {
7777
+ setClientHeight(window.innerHeight - 64 - 73 - 99);
7778
+ }
7779
+ else {
7780
+ setClientHeight(window.innerHeight - 64 - 56 - 64);
7781
+ }
7782
+ }
7783
+ }, [fullWidth, mobile]);
7784
+ React.useEffect(function () {
7785
+ var scrollbar_width = window.innerWidth - document.body.clientWidth;
7786
+ setScorllbarWidth(scrollbar_width / 2);
7787
+ }, []);
7788
+ var match_XS = useBreakpoints("xs");
7789
+ var classes = useStyles$f({
7790
+ fullWidth: fullWidth,
7791
+ match_XS: match_XS,
7792
+ width: width,
7793
+ size: size,
7794
+ maxWidth: maxWidth,
7795
+ headpadding: headpadding,
7796
+ mobile: mobile,
7797
+ disCloseIcon: disCloseIcon,
7798
+ onExit: onExit,
7799
+ iconColor: iconColor,
7800
+ checkIconColor: checkIconColor,
7801
+ height: height,
7802
+ bodyPadding: bodyPadding,
7803
+ bodyMaxHeight: bodyMaxHeight,
7804
+ clientHeight: clientHeight,
7805
+ label: label,
7806
+ secondaryButton: secondaryButton,
7807
+ primaryButton: primaryButton,
7808
+ buttonFullWidth: buttonFullWidth,
7809
+ footerDisplayColumn: footerDisplayColumn,
7810
+ helpText: helpText,
7811
+ multiline: multiline,
7812
+ });
7633
7813
  return (React__default.createElement(MaterialModal, { open: open, className: classes.root, BackdropComponent: core.Backdrop, BackdropProps: {
7634
7814
  className: classes.backdrop,
7635
7815
  style: { overflow: "auto", WebkitOverflowScrolling: "touch" },
@@ -7736,7 +7916,7 @@ var Modal = React__default.forwardRef(function (props, ref) {
7736
7916
  : "primary", size: "small", onClick: primaryButton.onClick, disabled: primaryButton.disabled, loading: primaryButton.loading, style: primaryButton.style }, primaryButton.title))) : null))) : null)))))));
7737
7917
  });
7738
7918
 
7739
- var useStyles$b = core.makeStyles(function () { return ({
7919
+ var useStyles$g = core.makeStyles(function () { return ({
7740
7920
  root: function (props) { return ({
7741
7921
  backgroundColor: props.backgroundColor,
7742
7922
  border: "1px solid " + props.borderColor,
@@ -7784,7 +7964,7 @@ var Banner = function (props) {
7784
7964
  height: height ? height : null,
7785
7965
  alignItems: mobile ? "flex-start" : alignStart ? "flex-start" : "center",
7786
7966
  };
7787
- var classes = useStyles$b(styleProps);
7967
+ var classes = useStyles$g(styleProps);
7788
7968
  var ref = React.useRef(null);
7789
7969
  React.useEffect(function () {
7790
7970
  if (ref.current) {
@@ -7810,7 +7990,7 @@ var Banner = function (props) {
7810
7990
  React__default.createElement(Typography, { variant: "caption2" }, children)));
7811
7991
  };
7812
7992
 
7813
- var useStyles$c = core.makeStyles(function () { return ({
7993
+ var useStyles$h = core.makeStyles(function () { return ({
7814
7994
  root: function (props) { return ({
7815
7995
  backgroundColor: props.backgroundColor,
7816
7996
  border: props.border,
@@ -7866,7 +8046,7 @@ var Chip = function (props) {
7866
8046
  ? theme.danger.danger800
7867
8047
  : theme.primary.primary800,
7868
8048
  };
7869
- var classes = useStyles$c(styleProps);
8049
+ var classes = useStyles$h(styleProps);
7870
8050
  return (React__default.createElement("div", __assign({ className: classes.root }, other),
7871
8051
  React__default.createElement("span", { style: { marginRight: variant === "success" ? 4 : 0 } }, label),
7872
8052
  variant === "success" && !icon ? icon_success : icon));
@@ -12007,7 +12187,7 @@ var MaterialSkeleton = styles$4.withStyles(styles$3, {
12007
12187
  name: 'MuiSkeleton'
12008
12188
  })(Skeleton);
12009
12189
 
12010
- var useStyles$d = core.makeStyles(function (theme) { return ({
12190
+ var useStyles$i = core.makeStyles(function (theme) { return ({
12011
12191
  root: function () { return ({}); },
12012
12192
  ul: {
12013
12193
  "& li": {
@@ -12063,7 +12243,7 @@ var Pagination$1 = function (props) {
12063
12243
  // const theme = useTheme();
12064
12244
  var other = __rest(props, []);
12065
12245
  var styleProps = {};
12066
- var classes = useStyles$d(styleProps);
12246
+ var classes = useStyles$i(styleProps);
12067
12247
  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: {
12068
12248
  root: classes.itemRoot,
12069
12249
  rounded: classes.rounded,
@@ -12072,7 +12252,7 @@ var Pagination$1 = function (props) {
12072
12252
  } }))); } })));
12073
12253
  };
12074
12254
 
12075
- var useStyles$e = core.makeStyles(function (theme) { return ({
12255
+ var useStyles$j = core.makeStyles(function (theme) { return ({
12076
12256
  root: function (props) { return ({
12077
12257
  width: props.width,
12078
12258
  display: "flex",
@@ -12099,7 +12279,7 @@ var Progress = function (props) {
12099
12279
  width: width ? width : "100%",
12100
12280
  size: size ? size : 24,
12101
12281
  };
12102
- var classes = useStyles$e(styleProps);
12282
+ var classes = useStyles$j(styleProps);
12103
12283
  var a = Array.from(Array(count).keys());
12104
12284
  return (React__default.createElement("div", __assign({ className: classes.root }, other), a.map(function (i) {
12105
12285
  return (React__default.createElement("div", { key: i, style: {
@@ -12149,7 +12329,7 @@ var Progress = function (props) {
12149
12329
  })));
12150
12330
  };
12151
12331
 
12152
- var useStyles$f = core.makeStyles(function (theme) { return ({
12332
+ var useStyles$k = core.makeStyles(function (theme) { return ({
12153
12333
  popper: function (props) { return ({
12154
12334
  border: "1px solid #CCCCCC",
12155
12335
  boxShadow: " 0px 4px 12px rgba(0, 0, 0, 0.1)",
@@ -12292,7 +12472,7 @@ var AutoComplete = function (props) {
12292
12472
  marginTop: anchorOrigin ? anchorOrigin.vertical : -65,
12293
12473
  marginLeft: anchorOrigin ? anchorOrigin.horizontal : -0,
12294
12474
  };
12295
- var classes = useStyles$f(styleProps);
12475
+ var classes = useStyles$k(styleProps);
12296
12476
  var id = open ? "simple" : undefined;
12297
12477
  return (React__default.createElement("div", null,
12298
12478
  React__default.createElement(core.Popper, { id: id, open: open, anchorEl: anchorEl, placement: "bottom-start", className: classes.popper },
@@ -12667,7 +12847,7 @@ var SWAPTaxDescription$1 = function (incomeCode, expenseCode) {
12667
12847
  * 3. 所得類別為50薪資時不會有費用類別
12668
12848
  */
12669
12849
 
12670
- var useStyles$g = core.makeStyles(function (theme) { return ({
12850
+ var useStyles$l = core.makeStyles(function (theme) { return ({
12671
12851
  root: function (props) { return ({
12672
12852
  backgroundColor: theme.black.black400,
12673
12853
  transform: "unset",
@@ -12676,7 +12856,7 @@ var useStyles$g = core.makeStyles(function (theme) { return ({
12676
12856
  var Skeleton$1 = function (props) {
12677
12857
  var other = __rest(props, []);
12678
12858
  var styleProps = {};
12679
- var classes = useStyles$g(styleProps);
12859
+ var classes = useStyles$l(styleProps);
12680
12860
  return React__default.createElement(MaterialSkeleton, __assign({ classes: { root: classes.root } }, other));
12681
12861
  };
12682
12862
 
@@ -12703,7 +12883,7 @@ var useOutlinedInputStyles$1 = core.makeStyles(function (theme) { return ({
12703
12883
  },
12704
12884
  notchedOutline: {},
12705
12885
  }); });
12706
- var useStyles$h = core.makeStyles(function (theme) { return ({
12886
+ var useStyles$m = core.makeStyles(function (theme) { return ({
12707
12887
  root: function (props) { return ({
12708
12888
  //SWAPTheme調整
12709
12889
  width: props.width ? props.width : "100%",
@@ -12748,7 +12928,7 @@ var Dropdown = function (props) {
12748
12928
  width: width,
12749
12929
  height: height,
12750
12930
  };
12751
- var classes = useStyles$h(styleProps);
12931
+ var classes = useStyles$m(styleProps);
12752
12932
  var outlinedInputClasses = useOutlinedInputStyles$1();
12753
12933
  return (React__default.createElement(core.FormControl, { variant: "outlined", style: formControlStyle, classes: { root: classes.root } },
12754
12934
  React__default.createElement(MaterialSelect, __assign({}, other, { classes: {
@@ -12757,7 +12937,7 @@ var Dropdown = function (props) {
12757
12937
  React__default.createElement(core.FormHelperText, { style: helperTextStyle }, helperText)));
12758
12938
  };
12759
12939
 
12760
- var useStyles$i = core.makeStyles(function (theme) { return ({
12940
+ var useStyles$n = core.makeStyles(function (theme) { return ({
12761
12941
  root: function (props) { return ({
12762
12942
  width: props.width
12763
12943
  ? props.width
@@ -12804,7 +12984,7 @@ var RadioList = function (props) {
12804
12984
  height: height,
12805
12985
  line: line,
12806
12986
  };
12807
- var classes = useStyles$i(styleProps);
12987
+ var classes = useStyles$n(styleProps);
12808
12988
  var _a = React.useState(0), lineHeight = _a[0], setLineHeight = _a[1];
12809
12989
  var ref = React.useRef(null);
12810
12990
  React.useEffect(function () {
@@ -12850,7 +13030,7 @@ var RadioList = function (props) {
12850
13030
  !multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
12851
13031
  };
12852
13032
 
12853
- var useStyles$j = core.makeStyles(function (theme) { return ({
13033
+ var useStyles$o = core.makeStyles(function (theme) { return ({
12854
13034
  root: function (props) { return ({
12855
13035
  width: props.width
12856
13036
  ? props.width
@@ -12897,7 +13077,7 @@ var CheckBoxList = function (props) {
12897
13077
  height: height,
12898
13078
  line: line,
12899
13079
  };
12900
- var classes = useStyles$j(styleProps);
13080
+ var classes = useStyles$o(styleProps);
12901
13081
  var _a = React.useState(0), lineHeight = _a[0], setLineHeight = _a[1];
12902
13082
  var ref = React.useRef(null);
12903
13083
  React.useEffect(function () {
@@ -12943,7 +13123,7 @@ var CheckBoxList = function (props) {
12943
13123
  !multiline && !line ? (React__default.createElement(Typography, { variant: "body2_loose", color: "black800" }, subtitle)) : null));
12944
13124
  };
12945
13125
 
12946
- var useStyles$k = core.makeStyles(function (theme) { return ({
13126
+ var useStyles$p = core.makeStyles(function (theme) { return ({
12947
13127
  root: function (props) { return ({
12948
13128
  cursor: "pointer",
12949
13129
  color: props.color,
@@ -13076,7 +13256,7 @@ var Link = function (props) {
13076
13256
  ? theme.black.black1000
13077
13257
  : theme.black.black1000,
13078
13258
  };
13079
- var classes = useStyles$k(styleProps);
13259
+ var classes = useStyles$p(styleProps);
13080
13260
  return (React__default.createElement(MaterialLink, __assign({ classes: {
13081
13261
  root: classes.root,
13082
13262
  focusVisible: classes.focusVisible,
@@ -13084,7 +13264,7 @@ var Link = function (props) {
13084
13264
  }, tabIndex: 0 }, other)));
13085
13265
  };
13086
13266
 
13087
- var useStyles$l = core.makeStyles(function (theme) { return ({
13267
+ var useStyles$q = core.makeStyles(function (theme) { return ({
13088
13268
  root: function (props) { return ({
13089
13269
  boxShadow: theme.boxShadow.xl,
13090
13270
  borderRadius: 12,
@@ -13104,13 +13284,13 @@ var Paper = function (props) {
13104
13284
  matchSM: matchSM,
13105
13285
  matchXS: matchXS,
13106
13286
  };
13107
- var classes = useStyles$l(styleProps);
13287
+ var classes = useStyles$q(styleProps);
13108
13288
  return (React__default.createElement(Paper$1, __assign({ variant: "outlined", classes: {
13109
13289
  root: classes.root,
13110
13290
  } }, other)));
13111
13291
  };
13112
13292
 
13113
- var useStyles$m = core.makeStyles(function (theme) { return ({
13293
+ var useStyles$r = core.makeStyles(function (theme) { return ({
13114
13294
  root: {
13115
13295
  width: 40,
13116
13296
  height: 24,
@@ -13176,7 +13356,7 @@ var useStyles$m = core.makeStyles(function (theme) { return ({
13176
13356
  var Switch = function (props) {
13177
13357
  var disabled = props.disabled, other = __rest(props, ["disabled"]);
13178
13358
  var styleProps = { disabled: disabled };
13179
- var classes = useStyles$m(styleProps);
13359
+ var classes = useStyles$r(styleProps);
13180
13360
  return (React__default.createElement("div", { className: classes.switchOutBlock, tabIndex: 0 },
13181
13361
  React__default.createElement(MaterialSwitch, __assign({ disabled: disabled, tabIndex: 0, disableRipple: true, classes: {
13182
13362
  root: classes.root,
@@ -13685,7 +13865,7 @@ var BreadcrumbItem = function (props) {
13685
13865
  } })));
13686
13866
  };
13687
13867
 
13688
- var useStyles$n = core.makeStyles(function (theme) { return ({
13868
+ var useStyles$s = core.makeStyles(function (theme) { return ({
13689
13869
  root: function (props) { return ({
13690
13870
  width: props.width ? props.width : 350,
13691
13871
  height: props.height ? props.height : "100%",
@@ -13710,7 +13890,7 @@ var useStyles$n = core.makeStyles(function (theme) { return ({
13710
13890
  var Card = function (props) {
13711
13891
  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
13892
  var useStylesProps = { width: width, height: height };
13713
- var classes = useStyles$n(useStylesProps);
13893
+ var classes = useStyles$s(useStylesProps);
13714
13894
  var theme = core.useTheme();
13715
13895
  return (React__default.createElement("div", __assign({ className: classes.root }, other),
13716
13896
  React__default.createElement("div", { className: classes.body, style: bodyStyle }, !loading ? (children) : (React__default.createElement("div", { style: { width: "100%", height: "100%" } },