@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.
- package/README.md +50 -36
- package/build/index.cjs +3693 -0
- package/build/index.cjs.map +1 -0
- package/build/index.d.cts +710 -0
- package/build/index.d.ts +710 -50
- package/build/index.js +3553 -13924
- package/build/index.js.map +1 -1
- package/package.json +63 -63
- package/build/AppBar/AppBar.d.ts +0 -4
- package/build/AppBar/AppBar.types.d.ts +0 -2
- package/build/AutoComplete/AutoComplete.d.ts +0 -6
- package/build/AutoComplete/AutoComplete.types.d.ts +0 -23
- package/build/AutoComplete/BankCodes.d.ts +0 -5
- package/build/Banner/Banner.d.ts +0 -4
- package/build/Banner/Banner.types.d.ts +0 -10
- package/build/Breadcrumb/Breadcrumb.d.ts +0 -4
- package/build/Breadcrumb/Breadcrumb.types.d.ts +0 -7
- package/build/BreadcrumbItem/BreadcrumbItem.d.ts +0 -4
- package/build/BreadcrumbItem/BreadcrumbItem.types.d.ts +0 -4
- package/build/Button/Button.d.ts +0 -4
- package/build/Button/Button.types.d.ts +0 -13
- package/build/Card/Card.d.ts +0 -4
- package/build/Card/Card.types.d.ts +0 -17
- package/build/CheckBox/CheckBox.d.ts +0 -4
- package/build/CheckBox/CheckBox.types.d.ts +0 -7
- package/build/CheckBox/CheckBoxList.d.ts +0 -4
- package/build/CheckBox/CheckBoxList.types.d.ts +0 -9
- package/build/CheckBox/RadioButton.d.ts +0 -4
- package/build/CheckBox/RadioButton.types.d.ts +0 -7
- package/build/CheckBox/RadioList.d.ts +0 -4
- package/build/CheckBox/RadioList.types.d.ts +0 -9
- package/build/Chip/Chip.d.ts +0 -4
- package/build/Chip/Chip.types.d.ts +0 -11
- package/build/CircularProgress/CircularProgress.d.ts +0 -4
- package/build/CircularProgress/CircularProgress.types.d.ts +0 -5
- package/build/Container/Container.d.ts +0 -4
- package/build/Container/Container.types.d.ts +0 -7
- package/build/DatePicker/DatePicker.d.ts +0 -4
- package/build/DatePicker/DatePicker.types.d.ts +0 -14
- package/build/Dropdown/Dropdown.d.ts +0 -4
- package/build/Dropdown/Dropdown.types.d.ts +0 -9
- package/build/IconButton/IconButton.d.ts +0 -4
- package/build/IconButton/IconButton.types.d.ts +0 -7
- package/build/LandingPage/LandingPage.d.ts +0 -4
- package/build/LandingPage/LandingPage.types.d.ts +0 -14
- package/build/LandingPage/LandingPageMobile.d.ts +0 -4
- package/build/LandingPage/LandingPageMobile.types.d.ts +0 -14
- package/build/Link/Link.d.ts +0 -4
- package/build/Link/Link.types.d.ts +0 -4
- package/build/Menu/Menu.d.ts +0 -4
- package/build/Menu/Menu.types.d.ts +0 -3
- package/build/Menu/MenuItem.d.ts +0 -4
- package/build/Menu/MenuItem.types.d.ts +0 -12
- package/build/Menu/Select.d.ts +0 -4
- package/build/Menu/Select.types.d.ts +0 -41
- package/build/Modal/Modal.d.ts +0 -4
- package/build/Modal/Modal.types.d.ts +0 -55
- package/build/Pagination/Pagination.d.ts +0 -4
- package/build/Pagination/Pagination.types.d.ts +0 -3
- package/build/Paper/Paper.d.ts +0 -4
- package/build/Paper/Paper.types.d.ts +0 -5
- package/build/Progress/Progress.d.ts +0 -4
- package/build/Progress/Progress.types.d.ts +0 -8
- package/build/SWAPAppBar/SWAPAppBar.d.ts +0 -4
- package/build/SWAPAppBar/SWAPAppBar.types.d.ts +0 -19
- package/build/SWAPBanner/SWAPBanner.d.ts +0 -4
- package/build/SWAPBanner/SWAPBanner.types.d.ts +0 -16
- package/build/SWAPCopyField/SWAPCopyField.d.ts +0 -4
- package/build/SWAPCopyField/SWAPCopyField.types.d.ts +0 -8
- package/build/SWAPDialog/SWAPDialog.d.ts +0 -4
- package/build/SWAPDialog/SWAPDialog.types.d.ts +0 -18
- package/build/SWAPLogo/SWAPLogo.d.ts +0 -4
- package/build/SWAPLogo/SWAPLogo.types.d.ts +0 -10
- package/build/SWAPModal/SWAPModal.d.ts +0 -4
- package/build/SWAPModal/SWAPModal.types.d.ts +0 -29
- package/build/SWAPShare/SWAPShare.d.ts +0 -4
- package/build/SWAPShare/SWAPShare.types.d.ts +0 -6
- package/build/SWAPSpace/SWAPSpace.d.ts +0 -4
- package/build/SWAPSpace/SWAPSpace.types.d.ts +0 -3
- package/build/SWAPTaxField/SWAPTaxField.d.ts +0 -24
- package/build/SWAPTaxField/SWAPTaxField.types.d.ts +0 -13
- package/build/SWAPTheme/SWAPTheme.d.ts +0 -7
- package/build/SWAPTheme/SWAPTheme.types.d.ts +0 -166
- package/build/Skeleton/Skeleton.d.ts +0 -4
- package/build/Skeleton/Skeleton.types.d.ts +0 -3
- package/build/Snackbar/Snackbar.d.ts +0 -4
- package/build/Snackbar/Snackbar.types.d.ts +0 -20
- package/build/Styles/Styles.d.ts +0 -4
- package/build/Styles/Styles.types.d.ts +0 -8
- package/build/Switch/Switch.d.ts +0 -4
- package/build/Switch/Switch.types.d.ts +0 -3
- package/build/Tab/SegmentedTab.d.ts +0 -4
- package/build/Tab/SegmentedTab.types.d.ts +0 -7
- package/build/Tab/SegmentedTabs.d.ts +0 -4
- package/build/Tab/SegmentedTabs.types.d.ts +0 -5
- package/build/Tab/Tab.d.ts +0 -4
- package/build/Tab/Tab.types.d.ts +0 -10
- package/build/Tab/TabPanel.d.ts +0 -10
- package/build/Tab/Tabs.d.ts +0 -4
- package/build/Tab/Tabs.types.d.ts +0 -3
- package/build/Table/Table.d.ts +0 -4
- package/build/Table/Table.types.d.ts +0 -2
- package/build/TaxTextField/TaxTextField.d.ts +0 -24
- package/build/TaxTextField/TaxTextField.types.d.ts +0 -26
- package/build/TextField/TextField.d.ts +0 -4
- package/build/TextField/TextField.types.d.ts +0 -7
- package/build/Tooltip/Tooltip.d.ts +0 -4
- package/build/Tooltip/Tooltip.types.d.ts +0 -15
- package/build/Typography/Typography.d.ts +0 -4
- package/build/Typography/Typography.types.d.ts +0 -8
- package/build/index.esm.js +0 -13928
- package/build/index.esm.js.map +0 -1
- 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,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,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,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
|
-
}
|