@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
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { Theme, ThemeOptions } from '@mui/material/styles';
|
|
4
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
5
|
+
import { BoxProps } from '@mui/material/Box';
|
|
6
|
+
import { TooltipProps as TooltipProps$1 } from '@mui/material/Tooltip';
|
|
7
|
+
import { PaperProps as PaperProps$1 } from '@mui/material/Paper';
|
|
8
|
+
import { LinkProps as LinkProps$1 } from '@mui/material/Link';
|
|
9
|
+
import { IconButtonProps as IconButtonProps$1 } from '@mui/material/IconButton';
|
|
10
|
+
import { TextFieldProps as TextFieldProps$1 } from '@mui/material/TextField';
|
|
11
|
+
import { CheckboxProps } from '@mui/material/Checkbox';
|
|
12
|
+
import { RadioProps } from '@mui/material/Radio';
|
|
13
|
+
import { SwitchProps as SwitchProps$1 } from '@mui/material/Switch';
|
|
14
|
+
import { SelectChangeEvent, SelectProps as SelectProps$1 } from '@mui/material/Select';
|
|
15
|
+
import { MenuItemProps as MenuItemProps$1 } from '@mui/material/MenuItem';
|
|
16
|
+
import { TabProps as TabProps$1 } from '@mui/material/Tab';
|
|
17
|
+
import { TabsProps as TabsProps$1 } from '@mui/material/Tabs';
|
|
18
|
+
import { SnackbarProps as SnackbarProps$1 } from '@mui/material/Snackbar';
|
|
19
|
+
import { AutocompleteProps, AutocompleteRenderInputParams } from '@mui/material/Autocomplete';
|
|
20
|
+
export { AutocompleteCloseReason } from '@mui/material/Autocomplete';
|
|
21
|
+
|
|
22
|
+
interface SWAPThemeProviderProps {
|
|
23
|
+
theme?: Theme;
|
|
24
|
+
children?: React$1.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
declare const SWAPThemeProvider: React$1.FC<SWAPThemeProviderProps>;
|
|
27
|
+
|
|
28
|
+
declare const swapColors: {
|
|
29
|
+
readonly primary: {
|
|
30
|
+
readonly primary50: "#E6E9F8";
|
|
31
|
+
readonly primary100: "#C1C7ED";
|
|
32
|
+
readonly primary200: "#97A3E1";
|
|
33
|
+
readonly primary300: "#6C7FD5";
|
|
34
|
+
readonly primary400: "#4862CC";
|
|
35
|
+
readonly primary500: "#1747C2";
|
|
36
|
+
readonly primary600: "#0F3FB8";
|
|
37
|
+
readonly primary700: "#0035AC";
|
|
38
|
+
readonly primary800: "#1F3C8E";
|
|
39
|
+
readonly primary900: "#002BA1";
|
|
40
|
+
readonly primaryA11y: "#071E60";
|
|
41
|
+
};
|
|
42
|
+
readonly secondary: {
|
|
43
|
+
readonly secondary50: "#FEF8E3";
|
|
44
|
+
readonly secondary100: "#FCECB7";
|
|
45
|
+
readonly secondary200: "#FBDF8A";
|
|
46
|
+
readonly secondary300: "#FAD45C";
|
|
47
|
+
readonly secondary400: "#F9C93F";
|
|
48
|
+
readonly secondary500: "#F8C131";
|
|
49
|
+
readonly secondary600: "#F7B52C";
|
|
50
|
+
readonly secondary700: "#F6A128";
|
|
51
|
+
readonly secondary800: "#F59225";
|
|
52
|
+
readonly secondary900: "#F27521";
|
|
53
|
+
readonly secondaryA11y: "#E5640C";
|
|
54
|
+
};
|
|
55
|
+
readonly danger: {
|
|
56
|
+
readonly danger50: "#FFEBED";
|
|
57
|
+
readonly danger100: "#FFCCD0";
|
|
58
|
+
readonly danger200: "#F99894";
|
|
59
|
+
readonly danger300: "#F26E6A";
|
|
60
|
+
readonly danger400: "#FC4A43";
|
|
61
|
+
readonly danger500: "#FF3622";
|
|
62
|
+
readonly danger600: "#F32A23";
|
|
63
|
+
readonly danger700: "#E11C1E";
|
|
64
|
+
readonly danger800: "#D40F14";
|
|
65
|
+
readonly danger900: "#C60003";
|
|
66
|
+
readonly dangerA11y: "#A80003";
|
|
67
|
+
};
|
|
68
|
+
readonly success: {
|
|
69
|
+
readonly success50: "#E6F6E8";
|
|
70
|
+
readonly success100: "#C3E8C6";
|
|
71
|
+
readonly success200: "#9BD9A1";
|
|
72
|
+
readonly success300: "#70CB7A";
|
|
73
|
+
readonly success400: "#4CC05D";
|
|
74
|
+
readonly success500: "#1EB43F";
|
|
75
|
+
readonly success600: "#10A535";
|
|
76
|
+
readonly success700: "#00932A";
|
|
77
|
+
readonly success800: "#00821E";
|
|
78
|
+
readonly success900: "#006305";
|
|
79
|
+
readonly successA11y: "#015C16";
|
|
80
|
+
};
|
|
81
|
+
readonly black: {
|
|
82
|
+
readonly white: "#FFFFFF";
|
|
83
|
+
readonly black100: "#F9F9F9";
|
|
84
|
+
readonly black200: "#F6F6F6";
|
|
85
|
+
readonly black300: "#F2F2F2";
|
|
86
|
+
readonly black400: "#ECECEC";
|
|
87
|
+
readonly black500: "#CCCCCC";
|
|
88
|
+
readonly black600: "#909090";
|
|
89
|
+
readonly black700: "#6F6F6F";
|
|
90
|
+
readonly black800: "#4B4B4B";
|
|
91
|
+
readonly black900: "#2D2D2D";
|
|
92
|
+
readonly black1000: "#000000";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
declare const swapRadius: {
|
|
96
|
+
readonly s: "4px";
|
|
97
|
+
readonly m: "8px";
|
|
98
|
+
readonly l: "12px";
|
|
99
|
+
readonly xl: "20px";
|
|
100
|
+
};
|
|
101
|
+
declare const swapShadows: {
|
|
102
|
+
readonly s: "0px 2px 4px rgba(0, 0, 0, 0.12)";
|
|
103
|
+
readonly m: "0px 4px 12px rgba(0, 0, 0, 0.1)";
|
|
104
|
+
readonly l: "0px 6px 24px rgba(0, 0, 0, 0.1)";
|
|
105
|
+
readonly xl: "0px 8px 40px rgba(0, 0, 0, 0.12)";
|
|
106
|
+
};
|
|
107
|
+
declare const swapBreakpoints: {
|
|
108
|
+
readonly xxs: 0;
|
|
109
|
+
readonly xs: 375;
|
|
110
|
+
readonly sm: 576;
|
|
111
|
+
readonly md: 768;
|
|
112
|
+
readonly lg: 992;
|
|
113
|
+
readonly xl: 1200;
|
|
114
|
+
readonly xxl: 1400;
|
|
115
|
+
};
|
|
116
|
+
declare const swapFontFamily: string;
|
|
117
|
+
type SwapColors = typeof swapColors;
|
|
118
|
+
|
|
119
|
+
declare module "@mui/material/styles" {
|
|
120
|
+
interface Palette {
|
|
121
|
+
swap: SwapColors;
|
|
122
|
+
}
|
|
123
|
+
interface PaletteOptions {
|
|
124
|
+
swap?: SwapColors;
|
|
125
|
+
}
|
|
126
|
+
interface BreakpointOverrides {
|
|
127
|
+
xxs: true;
|
|
128
|
+
xxl: true;
|
|
129
|
+
}
|
|
130
|
+
interface TypographyVariants {
|
|
131
|
+
d1: React$1.CSSProperties;
|
|
132
|
+
d2: React$1.CSSProperties;
|
|
133
|
+
d3: React$1.CSSProperties;
|
|
134
|
+
d4: React$1.CSSProperties;
|
|
135
|
+
title: React$1.CSSProperties;
|
|
136
|
+
subtitle: React$1.CSSProperties;
|
|
137
|
+
caption1: React$1.CSSProperties;
|
|
138
|
+
caption2: React$1.CSSProperties;
|
|
139
|
+
small1: React$1.CSSProperties;
|
|
140
|
+
small2: React$1.CSSProperties;
|
|
141
|
+
tiny1: React$1.CSSProperties;
|
|
142
|
+
tiny2: React$1.CSSProperties;
|
|
143
|
+
button_l: React$1.CSSProperties;
|
|
144
|
+
button_s: React$1.CSSProperties;
|
|
145
|
+
title_loose: React$1.CSSProperties;
|
|
146
|
+
subtitle_loose: React$1.CSSProperties;
|
|
147
|
+
body1_loose: React$1.CSSProperties;
|
|
148
|
+
body2_loose: React$1.CSSProperties;
|
|
149
|
+
caption1_loose: React$1.CSSProperties;
|
|
150
|
+
caption2_loose: React$1.CSSProperties;
|
|
151
|
+
small1_loose: React$1.CSSProperties;
|
|
152
|
+
small2_loose: React$1.CSSProperties;
|
|
153
|
+
tiny1_loose: React$1.CSSProperties;
|
|
154
|
+
tiny2_loose: React$1.CSSProperties;
|
|
155
|
+
}
|
|
156
|
+
interface TypographyVariantsOptions {
|
|
157
|
+
d1?: React$1.CSSProperties;
|
|
158
|
+
d2?: React$1.CSSProperties;
|
|
159
|
+
d3?: React$1.CSSProperties;
|
|
160
|
+
d4?: React$1.CSSProperties;
|
|
161
|
+
title?: React$1.CSSProperties;
|
|
162
|
+
subtitle?: React$1.CSSProperties;
|
|
163
|
+
caption1?: React$1.CSSProperties;
|
|
164
|
+
caption2?: React$1.CSSProperties;
|
|
165
|
+
small1?: React$1.CSSProperties;
|
|
166
|
+
small2?: React$1.CSSProperties;
|
|
167
|
+
tiny1?: React$1.CSSProperties;
|
|
168
|
+
tiny2?: React$1.CSSProperties;
|
|
169
|
+
button_l?: React$1.CSSProperties;
|
|
170
|
+
button_s?: React$1.CSSProperties;
|
|
171
|
+
title_loose?: React$1.CSSProperties;
|
|
172
|
+
subtitle_loose?: React$1.CSSProperties;
|
|
173
|
+
body1_loose?: React$1.CSSProperties;
|
|
174
|
+
body2_loose?: React$1.CSSProperties;
|
|
175
|
+
caption1_loose?: React$1.CSSProperties;
|
|
176
|
+
caption2_loose?: React$1.CSSProperties;
|
|
177
|
+
small1_loose?: React$1.CSSProperties;
|
|
178
|
+
small2_loose?: React$1.CSSProperties;
|
|
179
|
+
tiny1_loose?: React$1.CSSProperties;
|
|
180
|
+
tiny2_loose?: React$1.CSSProperties;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
declare module "@mui/material/Button" {
|
|
184
|
+
interface ButtonPropsVariantOverrides {
|
|
185
|
+
primary: true;
|
|
186
|
+
secondary: true;
|
|
187
|
+
tertiary: true;
|
|
188
|
+
black: true;
|
|
189
|
+
danger: true;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
declare module "@mui/material/Typography" {
|
|
193
|
+
interface TypographyPropsVariantOverrides {
|
|
194
|
+
d1: true;
|
|
195
|
+
d2: true;
|
|
196
|
+
d3: true;
|
|
197
|
+
d4: true;
|
|
198
|
+
title: true;
|
|
199
|
+
subtitle: true;
|
|
200
|
+
caption1: true;
|
|
201
|
+
caption2: true;
|
|
202
|
+
small1: true;
|
|
203
|
+
small2: true;
|
|
204
|
+
tiny1: true;
|
|
205
|
+
tiny2: true;
|
|
206
|
+
button_l: true;
|
|
207
|
+
button_s: true;
|
|
208
|
+
title_loose: true;
|
|
209
|
+
subtitle_loose: true;
|
|
210
|
+
body1_loose: true;
|
|
211
|
+
body2_loose: true;
|
|
212
|
+
caption1_loose: true;
|
|
213
|
+
caption2_loose: true;
|
|
214
|
+
small1_loose: true;
|
|
215
|
+
small2_loose: true;
|
|
216
|
+
tiny1_loose: true;
|
|
217
|
+
tiny2_loose: true;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
declare function createSwapTheme(options?: ThemeOptions): Theme;
|
|
222
|
+
|
|
223
|
+
declare const swapTokenMap: Record<string, string>;
|
|
224
|
+
type SwapTextColor = "primary" | "secondary" | "tertiary" | keyof typeof swapTokenMap;
|
|
225
|
+
|
|
226
|
+
interface SwapTypographyProps {
|
|
227
|
+
variant?: TypographyProps["variant"];
|
|
228
|
+
color?: SwapTextColor;
|
|
229
|
+
mode?: "" | "dark";
|
|
230
|
+
children?: React$1.ReactNode;
|
|
231
|
+
style?: React$1.CSSProperties;
|
|
232
|
+
}
|
|
233
|
+
declare const Typography: React$1.FC<SwapTypographyProps>;
|
|
234
|
+
|
|
235
|
+
interface ChipProps extends Omit<BoxProps, "color"> {
|
|
236
|
+
variant?: "neutral" | "primary" | "success" | "danger";
|
|
237
|
+
outlined?: boolean;
|
|
238
|
+
contained?: boolean;
|
|
239
|
+
width?: string | number;
|
|
240
|
+
height?: string | number;
|
|
241
|
+
label?: React.ReactNode;
|
|
242
|
+
icon?: React.ReactNode;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
declare const Chip: React$1.ForwardRefExoticComponent<Omit<ChipProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
246
|
+
|
|
247
|
+
interface CircularProgressProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
248
|
+
dark?: boolean;
|
|
249
|
+
size?: number | string;
|
|
250
|
+
thickness?: number;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
declare const CircularProgress: React$1.ForwardRefExoticComponent<CircularProgressProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
254
|
+
|
|
255
|
+
interface TooltipProps extends Omit<TooltipProps$1, "children"> {
|
|
256
|
+
children: React$1.ReactElement;
|
|
257
|
+
dark?: boolean;
|
|
258
|
+
light?: boolean;
|
|
259
|
+
arrow?: boolean;
|
|
260
|
+
margin?: string | number;
|
|
261
|
+
marginTop?: number;
|
|
262
|
+
marginBottom?: number;
|
|
263
|
+
marginRight?: number;
|
|
264
|
+
marginLeft?: number;
|
|
265
|
+
width?: number | string;
|
|
266
|
+
childrenStyle?: React$1.CSSProperties;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
declare const Tooltip: React$1.FC<TooltipProps>;
|
|
270
|
+
|
|
271
|
+
interface ContainerProps extends Omit<BoxProps, "maxWidth" | "padding"> {
|
|
272
|
+
maxWidth?: number | "lg" | "xl" | "xxl";
|
|
273
|
+
padding?: number | "xxs" | "xs" | "sm" | "md";
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
declare const Container: React$1.ForwardRefExoticComponent<Omit<ContainerProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
277
|
+
|
|
278
|
+
interface PaperProps extends PaperProps$1 {
|
|
279
|
+
width?: number | string;
|
|
280
|
+
height?: number | string;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
declare const Paper: React$1.ForwardRefExoticComponent<Omit<PaperProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
284
|
+
|
|
285
|
+
interface LinkProps extends Omit<LinkProps$1, "color"> {
|
|
286
|
+
/** SWAP token 名(如 primary400);非 token 一律 black1000 */
|
|
287
|
+
color?: string;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
declare const Link: React$1.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
291
|
+
|
|
292
|
+
interface IconButtonProps extends IconButtonProps$1 {
|
|
293
|
+
width?: number | string;
|
|
294
|
+
height?: number | string;
|
|
295
|
+
/** hover 底色:SWAP token 名或任意 CSS 色,預設 black400 */
|
|
296
|
+
hoverColor?: string;
|
|
297
|
+
/** hover 時 svg path 的 fill:token 名或任意 CSS 色 */
|
|
298
|
+
hoverIconColor?: string;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
declare const IconButton: React$1.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
302
|
+
|
|
303
|
+
interface BreadcrumbProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
304
|
+
children: React$1.ReactNode[];
|
|
305
|
+
separator?: React$1.ReactNode;
|
|
306
|
+
maxItems?: number;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
declare const Breadcrumb: React$1.ForwardRefExoticComponent<BreadcrumbProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
310
|
+
|
|
311
|
+
interface BreadcrumbItemProps extends LinkProps {
|
|
312
|
+
last?: boolean;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
declare const BreadcrumbItem: React$1.ForwardRefExoticComponent<Omit<BreadcrumbItemProps, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
316
|
+
|
|
317
|
+
type TextFieldProps = Omit<TextFieldProps$1, "variant"> & {
|
|
318
|
+
width?: number | string;
|
|
319
|
+
height?: number | string;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
declare const TextField: React$1.ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
323
|
+
|
|
324
|
+
interface CheckBoxProps extends CheckboxProps {
|
|
325
|
+
label?: React.ReactNode;
|
|
326
|
+
labelPlacement?: "top" | "start" | "bottom" | "end";
|
|
327
|
+
disableHover?: boolean;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
declare const CheckBox: React$1.ForwardRefExoticComponent<Omit<CheckBoxProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
331
|
+
|
|
332
|
+
interface RadioButtonProps extends RadioProps {
|
|
333
|
+
label?: React.ReactNode;
|
|
334
|
+
labelPlacement?: "top" | "start" | "bottom" | "end";
|
|
335
|
+
disableHover?: boolean;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
declare const RadioButton: React$1.ForwardRefExoticComponent<Omit<RadioButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
339
|
+
|
|
340
|
+
interface SwitchProps extends SwitchProps$1 {
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
344
|
+
|
|
345
|
+
interface SelectProps {
|
|
346
|
+
children?: React$1.ReactNode;
|
|
347
|
+
style?: React$1.CSSProperties;
|
|
348
|
+
disabled?: boolean;
|
|
349
|
+
helperText?: React$1.ReactNode;
|
|
350
|
+
error?: boolean;
|
|
351
|
+
fullWidth?: boolean;
|
|
352
|
+
type?: string;
|
|
353
|
+
/** 傳入底層 input 的屬性(v1 的 InputProps,對應 MUI Select 的 inputProps) */
|
|
354
|
+
InputProps?: object;
|
|
355
|
+
/** @deprecated v1 起即無作用,僅為型別相容保留 */
|
|
356
|
+
label?: string;
|
|
357
|
+
/** @deprecated v1 起即無作用,僅為型別相容保留 */
|
|
358
|
+
rows?: number | string;
|
|
359
|
+
/** @deprecated v1 起即無作用,僅為型別相容保留 */
|
|
360
|
+
rowsMax?: number | string;
|
|
361
|
+
/** @deprecated v1 起即無作用,僅為型別相容保留 */
|
|
362
|
+
multiline?: boolean;
|
|
363
|
+
/** @deprecated v1 起即無作用,僅為型別相容保留 */
|
|
364
|
+
select?: boolean;
|
|
365
|
+
value?: unknown;
|
|
366
|
+
onChange?: (event: SelectChangeEvent<unknown>, child: React$1.ReactNode) => void;
|
|
367
|
+
autoFocus?: boolean;
|
|
368
|
+
placeholder?: string;
|
|
369
|
+
required?: boolean;
|
|
370
|
+
defaultValue?: unknown;
|
|
371
|
+
width?: number | string;
|
|
372
|
+
height?: number;
|
|
373
|
+
vertical?: "top" | "center" | "bottom" | number;
|
|
374
|
+
horizontal?: "left" | "center" | "right" | number;
|
|
375
|
+
open?: boolean;
|
|
376
|
+
placeholderStyle?: React$1.CSSProperties;
|
|
377
|
+
selectStyle?: React$1.CSSProperties;
|
|
378
|
+
helperTextStyle?: React$1.CSSProperties;
|
|
379
|
+
onClick?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
380
|
+
transformOrigin?: {
|
|
381
|
+
horizontal: "center" | "left" | "right" | number;
|
|
382
|
+
vertical: "bottom" | "center" | "top" | number;
|
|
383
|
+
};
|
|
384
|
+
paddingLeft?: number;
|
|
385
|
+
paddingTop?: number;
|
|
386
|
+
dropdown?: boolean;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
declare const Select: React$1.FC<SelectProps>;
|
|
390
|
+
|
|
391
|
+
interface MenuItemProps extends MenuItemProps$1 {
|
|
392
|
+
/** @deprecated MUI v4 遺留 prop,v9 已無作用,僅為型別相容保留 */
|
|
393
|
+
button?: true;
|
|
394
|
+
width?: number | string;
|
|
395
|
+
height?: number | string;
|
|
396
|
+
hoverBackgroundColor?: string;
|
|
397
|
+
hoverFontColor?: string;
|
|
398
|
+
hoverIconColor?: string;
|
|
399
|
+
rippleColor?: string;
|
|
400
|
+
iconChildren?: React.ReactNode;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
declare const MenuItem: React$1.ForwardRefExoticComponent<Omit<MenuItemProps, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
404
|
+
|
|
405
|
+
interface TabProps extends TabProps$1 {
|
|
406
|
+
selected?: boolean;
|
|
407
|
+
width?: number | string;
|
|
408
|
+
height?: number | string;
|
|
409
|
+
margin?: number | string;
|
|
410
|
+
fontSize?: number | string;
|
|
411
|
+
noIndicator?: boolean;
|
|
412
|
+
animation?: boolean;
|
|
413
|
+
}
|
|
414
|
+
interface TabsProps extends TabsProps$1 {
|
|
415
|
+
}
|
|
416
|
+
interface TabPanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
417
|
+
children?: React.ReactNode;
|
|
418
|
+
index: number | string;
|
|
419
|
+
value: number | string;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
declare const Tab: React$1.ForwardRefExoticComponent<Omit<TabProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
423
|
+
|
|
424
|
+
declare const Tabs: React$1.ForwardRefExoticComponent<Omit<TabsProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
425
|
+
|
|
426
|
+
declare const TabPanel: React$1.FC<TabPanelProps>;
|
|
427
|
+
|
|
428
|
+
interface BannerProps extends BoxProps {
|
|
429
|
+
variant?: "info" | "normal" | "success" | "warning" | "error";
|
|
430
|
+
mobile?: boolean;
|
|
431
|
+
width?: string | number;
|
|
432
|
+
height?: string | number;
|
|
433
|
+
icon?: React.ReactNode;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
declare const Banner: React$1.ForwardRefExoticComponent<Omit<BannerProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
437
|
+
|
|
438
|
+
interface CardButtonItem {
|
|
439
|
+
title?: React.ReactNode;
|
|
440
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
441
|
+
variant?: "primary" | "secondary" | "text" | "tertiary" | "black" | "danger";
|
|
442
|
+
loading?: boolean;
|
|
443
|
+
disabled?: boolean;
|
|
444
|
+
style?: React.CSSProperties;
|
|
445
|
+
}
|
|
446
|
+
interface CardProps extends BoxProps {
|
|
447
|
+
width?: number | string;
|
|
448
|
+
height?: number | string;
|
|
449
|
+
bodyStyle?: React.CSSProperties;
|
|
450
|
+
buttons?: CardButtonItem[];
|
|
451
|
+
loading?: boolean;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
declare const Card: React$1.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
455
|
+
|
|
456
|
+
interface ProgressProps extends Omit<BoxProps, "onClick"> {
|
|
457
|
+
/** 目前進行到第幾步(1 起算) */
|
|
458
|
+
step: number;
|
|
459
|
+
/** 總步數 */
|
|
460
|
+
count: number;
|
|
461
|
+
/** 各步驟下方標籤 */
|
|
462
|
+
label?: React.ReactNode[];
|
|
463
|
+
/** 步驟圓直徑,預設 24 */
|
|
464
|
+
size?: number | string;
|
|
465
|
+
width?: number | string;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
469
|
+
|
|
470
|
+
type ModalButtonTooltip = Omit<TooltipProps, "children">;
|
|
471
|
+
interface ModalButtonItem {
|
|
472
|
+
title?: React.ReactNode;
|
|
473
|
+
onClick?: () => void;
|
|
474
|
+
disabled?: boolean;
|
|
475
|
+
style?: React.CSSProperties;
|
|
476
|
+
variant?: "primary" | "secondary" | "text" | "tertiary" | "black" | "danger";
|
|
477
|
+
loading?: boolean;
|
|
478
|
+
tooltip?: ModalButtonTooltip;
|
|
479
|
+
}
|
|
480
|
+
interface ModalProps {
|
|
481
|
+
open: boolean;
|
|
482
|
+
onClose: () => void;
|
|
483
|
+
title?: React.ReactNode;
|
|
484
|
+
helpText?: React.ReactNode;
|
|
485
|
+
children?: React.ReactNode;
|
|
486
|
+
footer?: React.ReactNode;
|
|
487
|
+
size?: "medium" | "large" | "small" | "extraSmall";
|
|
488
|
+
width?: string | number;
|
|
489
|
+
maxWidth?: string | number;
|
|
490
|
+
height?: string | number;
|
|
491
|
+
mobile?: boolean;
|
|
492
|
+
fullWidth?: boolean;
|
|
493
|
+
fullScreen?: boolean;
|
|
494
|
+
multiline?: boolean;
|
|
495
|
+
checked?: boolean;
|
|
496
|
+
failed?: boolean;
|
|
497
|
+
icon?: React.ReactNode;
|
|
498
|
+
/** icon/checked/failed 圖示顏色(SWAP token 名) */
|
|
499
|
+
iconColor?: string;
|
|
500
|
+
checkIconColor?: string;
|
|
501
|
+
headpadding?: number | string;
|
|
502
|
+
headChildren?: React.ReactNode;
|
|
503
|
+
titleStyle?: React.CSSProperties;
|
|
504
|
+
bodyStyle?: React.CSSProperties;
|
|
505
|
+
bodyPadding?: number;
|
|
506
|
+
bodyMaxHeight?: number | string;
|
|
507
|
+
label?: React.ReactNode;
|
|
508
|
+
buttonFullWidth?: boolean;
|
|
509
|
+
footerDisplayColumn?: boolean;
|
|
510
|
+
secondaryButton?: ModalButtonItem;
|
|
511
|
+
primaryButton?: ModalButtonItem;
|
|
512
|
+
disUnderLine?: boolean;
|
|
513
|
+
disCloseIcon?: boolean;
|
|
514
|
+
/** 退場鎖定:內容變暗、不可互動 */
|
|
515
|
+
onExit?: boolean;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
declare const Modal: React$1.ForwardRefExoticComponent<ModalProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
519
|
+
|
|
520
|
+
interface SnackbarProps extends SnackbarProps$1 {
|
|
521
|
+
transitionDirection?: "left" | "right" | "up" | "down";
|
|
522
|
+
width?: string | number;
|
|
523
|
+
height?: string | number;
|
|
524
|
+
variant?: "success" | "error";
|
|
525
|
+
revertButton?: {
|
|
526
|
+
label?: React.ReactNode;
|
|
527
|
+
onClick?: () => void;
|
|
528
|
+
};
|
|
529
|
+
closeIcon?: {
|
|
530
|
+
icon?: React.ReactNode;
|
|
531
|
+
hoverColor?: string;
|
|
532
|
+
onClick?: () => void;
|
|
533
|
+
};
|
|
534
|
+
icon?: React.ReactNode;
|
|
535
|
+
checkIcon?: boolean;
|
|
536
|
+
errorIcon?: boolean;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
declare const Snackbar: React$1.FC<SnackbarProps>;
|
|
540
|
+
|
|
541
|
+
interface RadioListProps extends Omit<BoxProps, "title"> {
|
|
542
|
+
title?: React.ReactNode;
|
|
543
|
+
subtitle?: React.ReactNode;
|
|
544
|
+
checked: boolean;
|
|
545
|
+
/** title 下方顯示 subtitle(窄卡模式) */
|
|
546
|
+
multiline?: boolean;
|
|
547
|
+
/** title 與 subtitle 以直線分隔(寬卡模式) */
|
|
548
|
+
line?: boolean;
|
|
549
|
+
width?: string | number;
|
|
550
|
+
height?: string | number;
|
|
551
|
+
}
|
|
552
|
+
interface CheckBoxListProps extends RadioListProps {
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
declare const RadioList: React$1.ForwardRefExoticComponent<Omit<RadioListProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
556
|
+
|
|
557
|
+
declare const CheckBoxList: React$1.ForwardRefExoticComponent<Omit<CheckBoxListProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
558
|
+
|
|
559
|
+
type BaseProps = Omit<AutocompleteProps<unknown, true, boolean | undefined, boolean | undefined>, "title" | "renderInput" | "open" | "value">;
|
|
560
|
+
interface AutoCompleteProps extends Partial<BaseProps> {
|
|
561
|
+
/** Popper 是否開啟(此元件為常開選單型,由使用端控制) */
|
|
562
|
+
open?: boolean;
|
|
563
|
+
/** Popper 位置(v1 宣告但未生效;v2 起實際生效,預設 bottom-start) */
|
|
564
|
+
placement?: "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top-start" | "top";
|
|
565
|
+
anchorEl?: null | HTMLElement;
|
|
566
|
+
title?: React$1.ReactNode;
|
|
567
|
+
placeholder?: string;
|
|
568
|
+
width?: string | number;
|
|
569
|
+
optionsMaxHeight?: string | number;
|
|
570
|
+
/** 調整 Popper 位置(對應 v1:margin 偏移,預設 vertical -65 / horizontal 0) */
|
|
571
|
+
anchorOrigin?: {
|
|
572
|
+
horizontal?: string | number;
|
|
573
|
+
vertical?: string | number;
|
|
574
|
+
};
|
|
575
|
+
/** 已選中的顯示內容(有值時顯示已選面板) */
|
|
576
|
+
value?: React$1.ReactNode;
|
|
577
|
+
/** 關閉自由輸入(無選項時只顯示「無此選項」) */
|
|
578
|
+
disableFreeInput?: boolean;
|
|
579
|
+
/** 自由輸入連結文案(預設「使用」) */
|
|
580
|
+
addNewOptionsText?: string;
|
|
581
|
+
/** 使用者點「使用 『輸入值』」時回呼 */
|
|
582
|
+
handleNoOptionsValueChange?: (inputValue: string) => void;
|
|
583
|
+
helperText?: React$1.ReactNode;
|
|
584
|
+
renderInput?: (params: AutocompleteRenderInputParams) => React$1.ReactNode;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
declare const AutoComplete: React$1.FC<AutoCompleteProps>;
|
|
588
|
+
|
|
589
|
+
interface DropdownProps extends Omit<SelectProps$1, "variant"> {
|
|
590
|
+
width?: number | string;
|
|
591
|
+
height?: number;
|
|
592
|
+
helperText?: React.ReactNode;
|
|
593
|
+
helperTextStyle?: React.CSSProperties;
|
|
594
|
+
formControlStyle?: React.CSSProperties;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
declare const Dropdown: React$1.FC<DropdownProps>;
|
|
598
|
+
|
|
599
|
+
interface SegmentedTabProps extends TabProps$1 {
|
|
600
|
+
width?: number | string;
|
|
601
|
+
height?: number | string;
|
|
602
|
+
fontSize?: number | string;
|
|
603
|
+
flex?: number;
|
|
604
|
+
}
|
|
605
|
+
interface SegmentedTabsProps extends TabsProps$1 {
|
|
606
|
+
width?: number | string;
|
|
607
|
+
/** 選中底色以 indicator 滑動呈現(切換時有滑動動畫) */
|
|
608
|
+
slide?: boolean;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
declare const SegmentedTab: React$1.ForwardRefExoticComponent<Omit<SegmentedTabProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
612
|
+
|
|
613
|
+
declare const SegmentedTabs: React$1.ForwardRefExoticComponent<Omit<SegmentedTabsProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
614
|
+
|
|
615
|
+
interface SWAPLogoProps {
|
|
616
|
+
/** BIZ 版 logo */
|
|
617
|
+
business?: boolean;
|
|
618
|
+
/** 深色背景用(白字版) */
|
|
619
|
+
dark?: boolean;
|
|
620
|
+
size?: "small" | "middle" | "large" | string | number;
|
|
621
|
+
width?: number | string;
|
|
622
|
+
height?: number | string;
|
|
623
|
+
/** BIZ 中文版 */
|
|
624
|
+
chinese?: boolean;
|
|
625
|
+
/** 黑白版 */
|
|
626
|
+
black?: boolean;
|
|
627
|
+
/** 只顯示圖示 */
|
|
628
|
+
iconOnly?: boolean;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
declare const SWAPLogo: React$1.FC<SWAPLogoProps>;
|
|
632
|
+
|
|
633
|
+
interface SWAPShareProps {
|
|
634
|
+
url?: string;
|
|
635
|
+
emailSubject?: string;
|
|
636
|
+
sharedContent?: string;
|
|
637
|
+
size?: number;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
declare const SWAPShare: React$1.FC<SWAPShareProps>;
|
|
641
|
+
|
|
642
|
+
type TaxFiledValueProps = {
|
|
643
|
+
incomeCode: IncomeCodeProps;
|
|
644
|
+
incomeLabel: string;
|
|
645
|
+
expenseCode: ExpenseCodeProps;
|
|
646
|
+
expenseLabel: string;
|
|
647
|
+
taxDescription: string;
|
|
648
|
+
expenseCodeAndLabel: string;
|
|
649
|
+
};
|
|
650
|
+
interface TaxTextFieldProps {
|
|
651
|
+
onChange?: (value: TaxFiledValueProps) => void;
|
|
652
|
+
codeOnClick?: () => void;
|
|
653
|
+
domainOnClick?: () => void;
|
|
654
|
+
codeValue?: any;
|
|
655
|
+
domainValue?: any;
|
|
656
|
+
domainCodeValue?: any;
|
|
657
|
+
codeError?: boolean;
|
|
658
|
+
codeHelperText?: React__default.ReactNode;
|
|
659
|
+
domainError?: boolean;
|
|
660
|
+
domainHelperText?: React__default.ReactNode;
|
|
661
|
+
mobile?: boolean;
|
|
662
|
+
codeFocused?: boolean;
|
|
663
|
+
domainFocused?: boolean;
|
|
664
|
+
}
|
|
665
|
+
type IncomeCodeProps = "9A" | "9B" | "50";
|
|
666
|
+
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;
|
|
667
|
+
|
|
668
|
+
declare const TaxTextField: React$1.FC<TaxTextFieldProps>;
|
|
669
|
+
|
|
670
|
+
interface DatePickerProps {
|
|
671
|
+
/** 選擇精度:年 / 月 / 日(預設 day) */
|
|
672
|
+
format?: "year" | "month" | "day";
|
|
673
|
+
open?: boolean;
|
|
674
|
+
onClose?: () => void;
|
|
675
|
+
mobile?: boolean;
|
|
676
|
+
ModalProps?: Omit<ModalProps, "open" | "onClose">;
|
|
677
|
+
/** 最小/最大可選日期(YYYY-MM-DD 等 dayjs 可解析字串) */
|
|
678
|
+
min?: string;
|
|
679
|
+
max?: string;
|
|
680
|
+
defaultValue?: string;
|
|
681
|
+
value?: string;
|
|
682
|
+
/** 選定回呼;字串格式沿 v1:year "YYYY"、month "YYYY-M"、day "YYYY-M-D"(不補零) */
|
|
683
|
+
getValue?: (date: string) => void;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
declare const DatePicker: React$1.FC<DatePickerProps>;
|
|
687
|
+
|
|
688
|
+
declare const SWAPIncomeTypes: Array<{
|
|
689
|
+
code: IncomeCodeProps;
|
|
690
|
+
label: string;
|
|
691
|
+
}>;
|
|
692
|
+
declare const SWAPExpenseTypes: Array<{
|
|
693
|
+
code: ExpenseCodeProps;
|
|
694
|
+
source: IncomeCodeProps;
|
|
695
|
+
label: string;
|
|
696
|
+
expenseRatio: string;
|
|
697
|
+
}>;
|
|
698
|
+
declare const SWAPTaxIncomeLabel: (incomeCode: IncomeCodeProps) => string;
|
|
699
|
+
declare const SWAPTaxExpenseLabel: (expenseCode: ExpenseCodeProps) => string;
|
|
700
|
+
declare const SWAPTaxDescription: (incomeCode: IncomeCodeProps, expenseCode: ExpenseCodeProps) => string;
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* v1 相容的斷點 hook:回傳視窗寬度是否 ≥ 指定斷點。
|
|
704
|
+
* 斷點名對應 xxs 0 / xs 375 / sm 576 / md 768 / lg 992 / xl 1200 / xxl 1400,亦可傳任意 px 數字。
|
|
705
|
+
*/
|
|
706
|
+
declare function useBreakpoints(breakpoint?: keyof typeof swapBreakpoints | number): boolean;
|
|
707
|
+
|
|
708
|
+
declare const SWAP_UI_VERSION = "2.0.0-beta.1";
|
|
709
|
+
|
|
710
|
+
export { AutoComplete, type AutoCompleteProps, Banner, type BannerProps, Breadcrumb, BreadcrumbItem, type BreadcrumbItemProps, type BreadcrumbProps, Card, type CardButtonItem, type CardProps, CheckBox, CheckBoxList, type CheckBoxListProps, type CheckBoxProps, Chip, type ChipProps, CircularProgress, type CircularProgressProps, Container, type ContainerProps, DatePicker, type DatePickerProps, Dropdown, type DropdownProps, type ExpenseCodeProps, IconButton, type IconButtonProps, type IncomeCodeProps, Link, type LinkProps, MenuItem, type MenuItemProps, Modal, type ModalButtonItem, type ModalProps, Paper, type PaperProps, Progress, type ProgressProps, RadioButton, type RadioButtonProps, RadioList, type RadioListProps, SWAPExpenseTypes, SWAPIncomeTypes, SWAPLogo, type SWAPLogoProps, SWAPShare, type SWAPShareProps, SWAPTaxDescription, SWAPTaxExpenseLabel, SWAPTaxIncomeLabel, SWAPThemeProvider, type SWAPThemeProviderProps, SWAP_UI_VERSION, SegmentedTab, type SegmentedTabProps, SegmentedTabs, type SegmentedTabsProps, Select, type SelectProps, Snackbar, type SnackbarProps, type SwapColors, type SwapTypographyProps, Switch, type SwitchProps, Tab, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, type TaxFiledValueProps, TaxTextField, type TaxTextFieldProps, TextField, type TextFieldProps, Tooltip, type TooltipProps, Typography, createSwapTheme, swapBreakpoints, swapColors, swapFontFamily, swapRadius, swapShadows, useBreakpoints };
|