@yosgo/swap-ui 1.0.141 → 2.0.0-beta.1

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 (113) hide show
  1. package/README.md +50 -36
  2. package/build/index.cjs +3693 -0
  3. package/build/index.cjs.map +1 -0
  4. package/build/index.d.cts +710 -0
  5. package/build/index.d.ts +710 -50
  6. package/build/index.js +3553 -13924
  7. package/build/index.js.map +1 -1
  8. package/package.json +63 -63
  9. package/build/AppBar/AppBar.d.ts +0 -4
  10. package/build/AppBar/AppBar.types.d.ts +0 -2
  11. package/build/AutoComplete/AutoComplete.d.ts +0 -6
  12. package/build/AutoComplete/AutoComplete.types.d.ts +0 -23
  13. package/build/AutoComplete/BankCodes.d.ts +0 -5
  14. package/build/Banner/Banner.d.ts +0 -4
  15. package/build/Banner/Banner.types.d.ts +0 -10
  16. package/build/Breadcrumb/Breadcrumb.d.ts +0 -4
  17. package/build/Breadcrumb/Breadcrumb.types.d.ts +0 -7
  18. package/build/BreadcrumbItem/BreadcrumbItem.d.ts +0 -4
  19. package/build/BreadcrumbItem/BreadcrumbItem.types.d.ts +0 -4
  20. package/build/Button/Button.d.ts +0 -4
  21. package/build/Button/Button.types.d.ts +0 -13
  22. package/build/Card/Card.d.ts +0 -4
  23. package/build/Card/Card.types.d.ts +0 -17
  24. package/build/CheckBox/CheckBox.d.ts +0 -4
  25. package/build/CheckBox/CheckBox.types.d.ts +0 -7
  26. package/build/CheckBox/CheckBoxList.d.ts +0 -4
  27. package/build/CheckBox/CheckBoxList.types.d.ts +0 -9
  28. package/build/CheckBox/RadioButton.d.ts +0 -4
  29. package/build/CheckBox/RadioButton.types.d.ts +0 -7
  30. package/build/CheckBox/RadioList.d.ts +0 -4
  31. package/build/CheckBox/RadioList.types.d.ts +0 -9
  32. package/build/Chip/Chip.d.ts +0 -4
  33. package/build/Chip/Chip.types.d.ts +0 -11
  34. package/build/CircularProgress/CircularProgress.d.ts +0 -4
  35. package/build/CircularProgress/CircularProgress.types.d.ts +0 -5
  36. package/build/Container/Container.d.ts +0 -4
  37. package/build/Container/Container.types.d.ts +0 -7
  38. package/build/DatePicker/DatePicker.d.ts +0 -4
  39. package/build/DatePicker/DatePicker.types.d.ts +0 -14
  40. package/build/Dropdown/Dropdown.d.ts +0 -4
  41. package/build/Dropdown/Dropdown.types.d.ts +0 -9
  42. package/build/IconButton/IconButton.d.ts +0 -4
  43. package/build/IconButton/IconButton.types.d.ts +0 -7
  44. package/build/LandingPage/LandingPage.d.ts +0 -4
  45. package/build/LandingPage/LandingPage.types.d.ts +0 -14
  46. package/build/LandingPage/LandingPageMobile.d.ts +0 -4
  47. package/build/LandingPage/LandingPageMobile.types.d.ts +0 -14
  48. package/build/Link/Link.d.ts +0 -4
  49. package/build/Link/Link.types.d.ts +0 -4
  50. package/build/Menu/Menu.d.ts +0 -4
  51. package/build/Menu/Menu.types.d.ts +0 -3
  52. package/build/Menu/MenuItem.d.ts +0 -4
  53. package/build/Menu/MenuItem.types.d.ts +0 -12
  54. package/build/Menu/Select.d.ts +0 -4
  55. package/build/Menu/Select.types.d.ts +0 -41
  56. package/build/Modal/Modal.d.ts +0 -4
  57. package/build/Modal/Modal.types.d.ts +0 -55
  58. package/build/Pagination/Pagination.d.ts +0 -4
  59. package/build/Pagination/Pagination.types.d.ts +0 -3
  60. package/build/Paper/Paper.d.ts +0 -4
  61. package/build/Paper/Paper.types.d.ts +0 -5
  62. package/build/Progress/Progress.d.ts +0 -4
  63. package/build/Progress/Progress.types.d.ts +0 -8
  64. package/build/SWAPAppBar/SWAPAppBar.d.ts +0 -4
  65. package/build/SWAPAppBar/SWAPAppBar.types.d.ts +0 -19
  66. package/build/SWAPBanner/SWAPBanner.d.ts +0 -4
  67. package/build/SWAPBanner/SWAPBanner.types.d.ts +0 -16
  68. package/build/SWAPCopyField/SWAPCopyField.d.ts +0 -4
  69. package/build/SWAPCopyField/SWAPCopyField.types.d.ts +0 -8
  70. package/build/SWAPDialog/SWAPDialog.d.ts +0 -4
  71. package/build/SWAPDialog/SWAPDialog.types.d.ts +0 -18
  72. package/build/SWAPLogo/SWAPLogo.d.ts +0 -4
  73. package/build/SWAPLogo/SWAPLogo.types.d.ts +0 -10
  74. package/build/SWAPModal/SWAPModal.d.ts +0 -4
  75. package/build/SWAPModal/SWAPModal.types.d.ts +0 -29
  76. package/build/SWAPShare/SWAPShare.d.ts +0 -4
  77. package/build/SWAPShare/SWAPShare.types.d.ts +0 -6
  78. package/build/SWAPSpace/SWAPSpace.d.ts +0 -4
  79. package/build/SWAPSpace/SWAPSpace.types.d.ts +0 -3
  80. package/build/SWAPTaxField/SWAPTaxField.d.ts +0 -24
  81. package/build/SWAPTaxField/SWAPTaxField.types.d.ts +0 -13
  82. package/build/SWAPTheme/SWAPTheme.d.ts +0 -7
  83. package/build/SWAPTheme/SWAPTheme.types.d.ts +0 -166
  84. package/build/Skeleton/Skeleton.d.ts +0 -4
  85. package/build/Skeleton/Skeleton.types.d.ts +0 -3
  86. package/build/Snackbar/Snackbar.d.ts +0 -4
  87. package/build/Snackbar/Snackbar.types.d.ts +0 -20
  88. package/build/Styles/Styles.d.ts +0 -4
  89. package/build/Styles/Styles.types.d.ts +0 -8
  90. package/build/Switch/Switch.d.ts +0 -4
  91. package/build/Switch/Switch.types.d.ts +0 -3
  92. package/build/Tab/SegmentedTab.d.ts +0 -4
  93. package/build/Tab/SegmentedTab.types.d.ts +0 -7
  94. package/build/Tab/SegmentedTabs.d.ts +0 -4
  95. package/build/Tab/SegmentedTabs.types.d.ts +0 -5
  96. package/build/Tab/Tab.d.ts +0 -4
  97. package/build/Tab/Tab.types.d.ts +0 -10
  98. package/build/Tab/TabPanel.d.ts +0 -10
  99. package/build/Tab/Tabs.d.ts +0 -4
  100. package/build/Tab/Tabs.types.d.ts +0 -3
  101. package/build/Table/Table.d.ts +0 -4
  102. package/build/Table/Table.types.d.ts +0 -2
  103. package/build/TaxTextField/TaxTextField.d.ts +0 -24
  104. package/build/TaxTextField/TaxTextField.types.d.ts +0 -26
  105. package/build/TextField/TextField.d.ts +0 -4
  106. package/build/TextField/TextField.types.d.ts +0 -7
  107. package/build/Tooltip/Tooltip.d.ts +0 -4
  108. package/build/Tooltip/Tooltip.types.d.ts +0 -15
  109. package/build/Typography/Typography.d.ts +0 -4
  110. package/build/Typography/Typography.types.d.ts +0 -8
  111. package/build/index.esm.js +0 -13928
  112. package/build/index.esm.js.map +0 -1
  113. package/build/utils/useBreakpoints.d.ts +0 -2
@@ -1,24 +0,0 @@
1
- import React from "react";
2
- import { TaxTextFieldProps, ExpenseCodeProps, IncomeCodeProps } from "./TaxTextField.types";
3
- declare const TaxTextField: React.FC<TaxTextFieldProps>;
4
- export default TaxTextField;
5
- declare const SWAPIncomeTypes: Array<{
6
- code: IncomeCodeProps;
7
- label: string;
8
- }>;
9
- declare const SWAPExpenseTypes: Array<{
10
- code: ExpenseCodeProps;
11
- source: IncomeCodeProps;
12
- label: string;
13
- expenseRatio: string;
14
- }>;
15
- declare const SWAPTaxIncomeLabel: (incomeCode: IncomeCodeProps) => string;
16
- declare const SWAPTaxExpenseLabel: (expenseCode: ExpenseCodeProps) => string;
17
- declare const SWAPTaxDescription: (incomeCode: IncomeCodeProps, expenseCode: ExpenseCodeProps) => string;
18
- export { SWAPIncomeTypes, SWAPExpenseTypes, SWAPTaxIncomeLabel, SWAPTaxExpenseLabel, SWAPTaxDescription, };
19
- /**
20
- * 邏輯設定
21
- * 1. 所得類別為 9A, 9B 時,費用類別為必填
22
- * 2. 費用類別中的選項會依據,所得類別為 9A, 9B 而有所不同
23
- * 3. 所得類別為50薪資時不會有費用類別
24
- */
@@ -1,26 +0,0 @@
1
- import React from "react";
2
- export declare type TaxFiledValueProps = {
3
- incomeCode: IncomeCodeProps;
4
- incomeLabel: string;
5
- expenseCode: ExpenseCodeProps;
6
- expenseLabel: string;
7
- taxDescription: string;
8
- expenseCodeAndLabel: string;
9
- };
10
- export interface TaxTextFieldProps {
11
- onChange?: (value: TaxFiledValueProps) => void;
12
- codeOnClick?: () => void;
13
- domainOnClick?: () => void;
14
- codeValue?: any;
15
- domainValue?: any;
16
- domainCodeValue?: any;
17
- codeError?: boolean;
18
- codeHelperText?: React.ReactNode;
19
- domainError?: boolean;
20
- domainHelperText?: React.ReactNode;
21
- mobile?: boolean;
22
- codeFocused?: boolean;
23
- domainFocused?: boolean;
24
- }
25
- export declare type IncomeCodeProps = "9A" | "9B" | "50";
26
- export declare type ExpenseCodeProps = "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "40" | "41" | "42" | "43" | "44" | "45" | "46" | "47" | "48" | "49" | "50" | "51" | "52" | "53" | "54" | "55" | "56" | "57" | "58" | "59" | "60" | "61" | "62" | "63" | "64" | "65" | "66" | "67" | "68" | "69" | "70" | "71" | "72" | "73" | "74" | "75" | "76" | "77" | "78" | "79" | "80" | "81" | "82" | "83" | "84" | "85" | "86" | "87" | "88" | "89" | "90" | "91" | "92" | "93" | "94" | "95" | "96" | "97" | "98" | "99" | "" | undefined;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { MyTextFieldProps } from "./TextField.types";
3
- declare const TextField: React.FC<MyTextFieldProps>;
4
- export default TextField;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { TextFieldProps } from "@material-ui/core";
3
- export interface MyTextFieldProps extends Pick<TextFieldProps, Exclude<keyof TextFieldProps, "variant">> {
4
- children?: React.ReactNode;
5
- width?: number | string;
6
- height?: number | string;
7
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { MyTooltipProps } from "./Tooltip.types";
3
- declare const Tooltip: React.FC<MyTooltipProps>;
4
- export default Tooltip;
@@ -1,15 +0,0 @@
1
- import { TooltipProps } from "@material-ui/core";
2
- import React from "react";
3
- export interface MyTooltipProps extends Pick<TooltipProps, Exclude<keyof TooltipProps, "children">> {
4
- children: React.ReactNode;
5
- dark?: boolean;
6
- light?: boolean;
7
- arrow?: boolean;
8
- margin?: string | number;
9
- marginTop?: number;
10
- marginBottom?: number;
11
- marginRight?: number;
12
- marginLeft?: number;
13
- width?: string | number;
14
- childrenStyle?: React.CSSProperties;
15
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { TypographyProps } from "./Typography.types";
3
- declare const Typography: React.FC<TypographyProps>;
4
- export default Typography;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export interface TypographyProps {
3
- variant?: "h1" | "h2" | "d1" | "d2" | "d3" | "d4" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "title" | "subtitle" | "body1" | "body2" | "caption1" | "caption2" | "small1" | "small2" | "tiny1" | "tiny2" | "button_l" | "button_s" | "title_loose" | "subtitle_loose" | "body1_loose" | "body2_loose" | "caption1_loose" | "caption2_loose" | "small1_loose" | "small2_loose" | "tiny1_loose" | "tiny2_loose";
4
- color?: "primary" | "secondary" | "tertiary" | "primary50" | "primary100" | "primary200" | "primary300" | "primary400" | "primary500" | "primary600" | "primary700" | "primary800" | "primary900" | "primaryA11y" | "secondary50" | "secondary100" | "secondary200" | "secondary300" | "secondary400" | "secondary500" | "secondary600" | "secondary700" | "secondary800" | "secondary900" | "secondaryA11y" | "danger50" | "danger100" | "danger200" | "danger300" | "danger400" | "danger500" | "danger600" | "danger700" | "danger800" | "danger900" | "dangerA11y" | "success50" | "success100" | "success200" | "success300" | "success400" | "success500" | "success600" | "success700" | "success800" | "success900" | "successA11y" | "white" | "black100" | "black200" | "black300" | "black400" | "black500" | "black600" | "black700" | "black800" | "black900" | "black1000";
5
- children?: React.ReactNode;
6
- style?: React.CSSProperties;
7
- mode?: "" | "dark";
8
- }