@amstfn/td-design-system 0.3.0
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/CHANGELOG.md +45 -0
- package/README.md +219 -0
- package/dist/data-grid.cjs +2 -0
- package/dist/data-grid.cjs.map +1 -0
- package/dist/data-grid.d.ts +218 -0
- package/dist/data-grid.es.js +356 -0
- package/dist/data-grid.es.js.map +1 -0
- package/dist/design-system.css +1 -0
- package/dist/favicon.svg +1 -0
- package/dist/icons.svg +24 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2463 -0
- package/dist/index.es.js +3765 -0
- package/dist/index.es.js.map +1 -0
- package/dist/spacing-BkZfHpT0.cjs +2 -0
- package/dist/spacing-BkZfHpT0.cjs.map +1 -0
- package/dist/spacing-C8pTXcGE.js +15 -0
- package/dist/spacing-C8pTXcGE.js.map +1 -0
- package/package.json +129 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2463 @@
|
|
|
1
|
+
import { AlertProps } from 'antd';
|
|
2
|
+
import { AutoCompleteProps } from 'antd';
|
|
3
|
+
import { ButtonProps } from 'antd';
|
|
4
|
+
import { CheckboxGroupProps } from 'antd/es/checkbox';
|
|
5
|
+
import { CheckboxProps } from 'antd';
|
|
6
|
+
import { CheckboxRef } from 'antd';
|
|
7
|
+
import { CollapseProps } from 'antd';
|
|
8
|
+
import { ComponentProps } from 'react';
|
|
9
|
+
import { ComponentPropsWithRef } from 'react';
|
|
10
|
+
import { DatePickerProps } from 'antd';
|
|
11
|
+
import { FloatButtonGroupProps } from 'antd';
|
|
12
|
+
import { FloatButtonProps } from 'antd';
|
|
13
|
+
import { InputProps } from 'antd';
|
|
14
|
+
import { InputRef } from 'antd';
|
|
15
|
+
import { JSX } from 'react';
|
|
16
|
+
import { LinkProps } from 'antd/es/typography/Link';
|
|
17
|
+
import { MemoExoticComponent } from 'react';
|
|
18
|
+
import { ModalProps } from 'antd';
|
|
19
|
+
import { NamedExoticComponent } from 'react';
|
|
20
|
+
import { ParagraphProps } from 'antd/es/typography/Paragraph';
|
|
21
|
+
import { Radio } from 'antd';
|
|
22
|
+
import { RadioButtonProps } from 'antd/es/radio/radioButton';
|
|
23
|
+
import { RadioGroupProps } from 'antd';
|
|
24
|
+
import { RadioProps } from 'antd';
|
|
25
|
+
import { ReactNode } from 'react';
|
|
26
|
+
import { Ref } from 'react';
|
|
27
|
+
import { RefAttributes } from 'react';
|
|
28
|
+
import { SelectProps } from 'antd';
|
|
29
|
+
import { Skeleton } from 'antd';
|
|
30
|
+
import { SkeletonImageProps } from 'antd/es/skeleton/Image';
|
|
31
|
+
import { SkeletonNodeProps } from 'antd/es/skeleton/Node';
|
|
32
|
+
import { SkeletonProps } from 'antd';
|
|
33
|
+
import { TagProps } from 'antd';
|
|
34
|
+
import { TextProps } from 'antd/es/typography/Text';
|
|
35
|
+
import { ThemeConfig } from 'antd';
|
|
36
|
+
import { TitleProps } from 'antd/es/typography/Title';
|
|
37
|
+
|
|
38
|
+
export declare const createTdTheme: (mode?: TdThemeMode, _direction?: TdDirection, themeOptions?: ThemeConfig) => ThemeConfig;
|
|
39
|
+
|
|
40
|
+
export declare const TdAlert: NamedExoticComponent<TdAlertProps>;
|
|
41
|
+
|
|
42
|
+
declare type TdAlertOwnedProp = "type" | "variant" | "message";
|
|
43
|
+
|
|
44
|
+
export declare interface TdAlertProps extends Omit<AlertProps, TdAlertOwnedProp> {
|
|
45
|
+
/** Figma Type. Defaults to success. */
|
|
46
|
+
type?: TdAlertType;
|
|
47
|
+
/** Figma Variant. Defaults to filled. */
|
|
48
|
+
variant?: TdAlertVariant;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export declare type TdAlertType = (typeof TdAlertTypes)[keyof typeof TdAlertTypes];
|
|
52
|
+
|
|
53
|
+
/** Figma Type axis. */
|
|
54
|
+
export declare const TdAlertTypes: {
|
|
55
|
+
readonly success: "success";
|
|
56
|
+
readonly info: "info";
|
|
57
|
+
readonly warning: "warning";
|
|
58
|
+
readonly error: "error";
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export declare type TdAlertVariant = (typeof TdAlertVariants)[keyof typeof TdAlertVariants];
|
|
62
|
+
|
|
63
|
+
/** Figma Variant axis. The Alert page only specifies filled. */
|
|
64
|
+
export declare const TdAlertVariants: {
|
|
65
|
+
readonly filled: "filled";
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** IRI-TAX Figma variables. Collection: alias. Mode: Light. */
|
|
69
|
+
export declare const TdAlias: {
|
|
70
|
+
readonly fontStyle: {
|
|
71
|
+
readonly reqularItalic: "Reqular Italic";
|
|
72
|
+
readonly semiboldItalic: "Semibold Italic";
|
|
73
|
+
readonly regularItalic: "Regular Italic";
|
|
74
|
+
readonly mediumItalic: "Medium Italic";
|
|
75
|
+
};
|
|
76
|
+
readonly layout: {
|
|
77
|
+
readonly sidebarWidthMD: 256;
|
|
78
|
+
readonly sidebarWidthSm: 180;
|
|
79
|
+
readonly sidebarWidthLG: 360;
|
|
80
|
+
readonly sidebarCollapsedWidth: 48;
|
|
81
|
+
readonly colorBgSidebar: "#FBFBFB";
|
|
82
|
+
readonly headerHeight: 44;
|
|
83
|
+
readonly footerHeight: 34;
|
|
84
|
+
};
|
|
85
|
+
readonly opacity: {
|
|
86
|
+
readonly "0": 0;
|
|
87
|
+
readonly "1": 2;
|
|
88
|
+
readonly "2": 4;
|
|
89
|
+
readonly "3": 6;
|
|
90
|
+
readonly "4": 8;
|
|
91
|
+
readonly "5": 10;
|
|
92
|
+
readonly "6": 12;
|
|
93
|
+
readonly "7": 16;
|
|
94
|
+
readonly "8": 20;
|
|
95
|
+
readonly "9": 25;
|
|
96
|
+
readonly "10": 30;
|
|
97
|
+
readonly "11": 35;
|
|
98
|
+
readonly "12": 40;
|
|
99
|
+
readonly "13": 45;
|
|
100
|
+
readonly "14": 50;
|
|
101
|
+
readonly "15": 55;
|
|
102
|
+
readonly "16": 60;
|
|
103
|
+
readonly "17": 65;
|
|
104
|
+
readonly "18": 70;
|
|
105
|
+
readonly "19": 75;
|
|
106
|
+
readonly "20": 80;
|
|
107
|
+
readonly "21": 85;
|
|
108
|
+
readonly "22": 90;
|
|
109
|
+
readonly "23": 95;
|
|
110
|
+
};
|
|
111
|
+
readonly colorLink: "#1677FF";
|
|
112
|
+
readonly colorSplit: "#EEEFF1";
|
|
113
|
+
readonly fontSizeIcon: 12;
|
|
114
|
+
readonly controlInteractiveSize: 16;
|
|
115
|
+
readonly paddingXL: 32;
|
|
116
|
+
readonly paddingLG: 24;
|
|
117
|
+
readonly paddingMD: 20;
|
|
118
|
+
readonly padding: 16;
|
|
119
|
+
readonly paddingSM: 12;
|
|
120
|
+
readonly paddingXS: 8;
|
|
121
|
+
readonly paddingXXS: 4;
|
|
122
|
+
readonly marginXXL: 48;
|
|
123
|
+
readonly marginXL: 32;
|
|
124
|
+
readonly marginLG: 24;
|
|
125
|
+
readonly marginMD: 20;
|
|
126
|
+
readonly margin: 16;
|
|
127
|
+
readonly marginSM: 12;
|
|
128
|
+
readonly marginXS: 8;
|
|
129
|
+
readonly marginXXS: 4;
|
|
130
|
+
readonly controlPaddingHorizontal: 12;
|
|
131
|
+
readonly controlPaddingHorizontalSM: 8;
|
|
132
|
+
readonly paddingContentHorizontalLG: 24;
|
|
133
|
+
readonly paddingContentVerticalLG: 16;
|
|
134
|
+
readonly paddingContentHorizontal: 16;
|
|
135
|
+
readonly paddingContentVertical: 12;
|
|
136
|
+
readonly paddingContentHorizontalSM: 16;
|
|
137
|
+
readonly paddingContentVerticalSM: 8;
|
|
138
|
+
readonly colorLinkHover: "#69B1FF";
|
|
139
|
+
readonly colorLinkActive: "#0958D9";
|
|
140
|
+
readonly colorFillContent: "rgba(0, 0, 0, 0.06)";
|
|
141
|
+
readonly colorFillContentHover: "rgba(0, 0, 0, 0.15)";
|
|
142
|
+
readonly colorFillAlter: "rgba(0, 0, 0, 0.02)";
|
|
143
|
+
readonly colorBgContainerDisabled: "rgba(0, 0, 0, 0.04)";
|
|
144
|
+
readonly colorBorderBg: "#FFFFFF";
|
|
145
|
+
readonly colorTextPlaceholder: "rgba(0, 0, 0, 0.25)";
|
|
146
|
+
readonly colorTextDisabled: "rgba(0, 0, 0, 0.25)";
|
|
147
|
+
readonly colorTextHeading: "rgba(0, 0, 0, 0.88)";
|
|
148
|
+
readonly colorTextLabel: "rgba(0, 0, 0, 0.65)";
|
|
149
|
+
readonly colorTextDescription: "rgba(0, 0, 0, 0.45)";
|
|
150
|
+
readonly colorTextLightSolid: "#FFFFFF";
|
|
151
|
+
readonly colorHighlight: "#FFA39E";
|
|
152
|
+
readonly colorBgTextHover: "rgba(0, 0, 0, 0.06)";
|
|
153
|
+
readonly colorBgTextActive: "rgba(0, 0, 0, 0.15)";
|
|
154
|
+
readonly colorIcon: "rgba(0, 0, 0, 0.45)";
|
|
155
|
+
readonly colorIconHover: "rgba(0, 0, 0, 0.88)";
|
|
156
|
+
readonly colorErrorOutline: "rgba(255, 77, 79, 0.1)";
|
|
157
|
+
readonly colorWarningOutline: "rgba(250, 173, 20, 0.1)";
|
|
158
|
+
readonly controlItemBgHover: "rgba(0, 0, 0, 0.04)";
|
|
159
|
+
readonly controlItemBgActive: "#EDF7F1";
|
|
160
|
+
readonly controlItemBgActiveHover: "#C5E6D3";
|
|
161
|
+
readonly controlItemBgActiveDisabled: "rgba(0, 0, 0, 0.15)";
|
|
162
|
+
readonly controlTmpOutline: "rgba(0, 0, 0, 0.02)";
|
|
163
|
+
readonly controlOutline: "rgba(5, 145, 255, 0.1)";
|
|
164
|
+
readonly controlOutlineWidth: 2;
|
|
165
|
+
readonly opacityLoading: 65;
|
|
166
|
+
readonly screenXS: 320;
|
|
167
|
+
readonly screenSM: 576;
|
|
168
|
+
readonly screenMD: 768;
|
|
169
|
+
readonly screenLG: 992;
|
|
170
|
+
readonly screenXL: 1200;
|
|
171
|
+
readonly screenXXL: 1600;
|
|
172
|
+
readonly screenXSMin: 320;
|
|
173
|
+
readonly screenXSMax: 575;
|
|
174
|
+
readonly screenSMMin: 576;
|
|
175
|
+
readonly screenSMMax: 767;
|
|
176
|
+
readonly screenMDMin: 768;
|
|
177
|
+
readonly screenMDMax: 991;
|
|
178
|
+
readonly screenLGMin: 992;
|
|
179
|
+
readonly screenLGMax: 1199;
|
|
180
|
+
readonly screenXLMin: 1200;
|
|
181
|
+
readonly screenXLMax: 1599;
|
|
182
|
+
readonly screenXXLMin: 1600;
|
|
183
|
+
readonly lineWidthFocus: 3;
|
|
184
|
+
readonly linkDecoration: "none";
|
|
185
|
+
readonly linkFocusDecoration: "none";
|
|
186
|
+
readonly linkHoverDecoration: "none";
|
|
187
|
+
readonly fontWeightStrong: 700;
|
|
188
|
+
readonly fontWeightNormal: 400;
|
|
189
|
+
readonly drawerWidth: 378;
|
|
190
|
+
readonly drawerWidthMD: 520;
|
|
191
|
+
readonly drawerWidthLG: 736;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export declare type TdAliasToken = typeof TdAlias;
|
|
195
|
+
|
|
196
|
+
export declare const TdAutocomplete: MemoExoticComponent<typeof TdAutocompleteInner>;
|
|
197
|
+
|
|
198
|
+
declare function TdAutocompleteInner({ label, help, required, fullWidth, status, style, id: idProp, ...props }: TdAutocompleteProps): JSX.Element;
|
|
199
|
+
|
|
200
|
+
export declare interface TdAutocompleteOption {
|
|
201
|
+
label?: ReactNode;
|
|
202
|
+
value: string;
|
|
203
|
+
disabled?: boolean;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export declare interface TdAutocompleteProps extends Omit<AutoCompleteProps, "options"> {
|
|
207
|
+
/** Field label */
|
|
208
|
+
label?: ReactNode;
|
|
209
|
+
/** Help or validation text. */
|
|
210
|
+
help?: ReactNode;
|
|
211
|
+
/** Required field */
|
|
212
|
+
required?: boolean;
|
|
213
|
+
/** Full width */
|
|
214
|
+
fullWidth?: boolean;
|
|
215
|
+
/** Ant Design autocomplete options. */
|
|
216
|
+
options: TdAutocompleteOption[];
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export declare const TdButton: NamedExoticComponent<TdButtonProps>;
|
|
220
|
+
|
|
221
|
+
declare type TdButtonAccessibleName = {
|
|
222
|
+
icon?: undefined;
|
|
223
|
+
} | {
|
|
224
|
+
children: NonNullable<ReactNode>;
|
|
225
|
+
} | {
|
|
226
|
+
"aria-label": string;
|
|
227
|
+
} | {
|
|
228
|
+
"aria-labelledby": string;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
declare interface TdButtonBaseProps extends Omit<ButtonProps, TdButtonVisualProp> {
|
|
232
|
+
/** Figma Type. Defaults to brand. */
|
|
233
|
+
tone?: TdButtonTone;
|
|
234
|
+
/** Figma Variant. Defaults to contained. */
|
|
235
|
+
variant?: TdButtonVariant;
|
|
236
|
+
/** Figma Size. Defaults to medium (32px). */
|
|
237
|
+
size?: TdButtonSize;
|
|
238
|
+
/** Stretch the button to its container width. */
|
|
239
|
+
fullWidth?: boolean;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/** Icon-only buttons require `aria-label` or `aria-labelledby`. Buttons with children use that text as their name. */
|
|
243
|
+
export declare type TdButtonProps = TdButtonBaseProps & TdButtonAccessibleName;
|
|
244
|
+
|
|
245
|
+
export declare type TdButtonSize = (typeof TdButtonSizes)[keyof typeof TdButtonSizes];
|
|
246
|
+
|
|
247
|
+
/** Figma Size axis. Medium is 32px. */
|
|
248
|
+
export declare const TdButtonSizes: {
|
|
249
|
+
readonly small: "small";
|
|
250
|
+
readonly medium: "medium";
|
|
251
|
+
readonly large: "large";
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
export declare type TdButtonTone = (typeof TdButtonTones)[keyof typeof TdButtonTones];
|
|
255
|
+
|
|
256
|
+
/** Figma Type axis. `neutral` is the Figma type named "solid". */
|
|
257
|
+
export declare const TdButtonTones: {
|
|
258
|
+
readonly brand: "brand";
|
|
259
|
+
readonly neutral: "neutral";
|
|
260
|
+
readonly danger: "danger";
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
export declare type TdButtonVariant = (typeof TdButtonVariants)[keyof typeof TdButtonVariants];
|
|
264
|
+
|
|
265
|
+
/** Figma Variant axis. */
|
|
266
|
+
export declare const TdButtonVariants: {
|
|
267
|
+
readonly contained: "contained";
|
|
268
|
+
readonly outlined: "outlined";
|
|
269
|
+
readonly tinted: "tinted";
|
|
270
|
+
readonly text: "text";
|
|
271
|
+
readonly link: "link";
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
declare type TdButtonVisualProp = "type" | "color" | "variant" | "danger" | "size";
|
|
275
|
+
|
|
276
|
+
export declare type TdCalendar = "gregorian" | "jalali";
|
|
277
|
+
|
|
278
|
+
/** Same component reference as `<TdCheckbox />`, with `Group` attached. */
|
|
279
|
+
export declare const TdCheckbox: TdCheckboxComponent;
|
|
280
|
+
|
|
281
|
+
declare type TdCheckboxComponent = typeof TdCheckboxRoot & {
|
|
282
|
+
Group: typeof TdCheckboxGroup;
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
export declare type TdCheckboxDirection = (typeof TdCheckboxDirections)[keyof typeof TdCheckboxDirections];
|
|
286
|
+
|
|
287
|
+
/** Layout of `TdCheckbox.Group`. This is not document direction. */
|
|
288
|
+
export declare const TdCheckboxDirections: {
|
|
289
|
+
readonly horizontal: "horizontal";
|
|
290
|
+
readonly vertical: "vertical";
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
declare const TdCheckboxGroup: NamedExoticComponent<TdCheckboxGroupProps>;
|
|
294
|
+
|
|
295
|
+
export declare interface TdCheckboxGroupProps extends CheckboxGroupProps {
|
|
296
|
+
/** Row or column of options. This is not document direction. */
|
|
297
|
+
direction?: TdCheckboxDirection;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export declare interface TdCheckboxProps extends Omit<CheckboxProps, "children"> {
|
|
301
|
+
/** Checkbox content. */
|
|
302
|
+
label?: ReactNode;
|
|
303
|
+
/** Help or validation text. */
|
|
304
|
+
help?: ReactNode;
|
|
305
|
+
required?: boolean;
|
|
306
|
+
status?: "error";
|
|
307
|
+
/** Accessible name when `label` is empty. */
|
|
308
|
+
"aria-label"?: string;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
declare const TdCheckboxRoot: NamedExoticComponent<TdCheckboxProps>;
|
|
312
|
+
|
|
313
|
+
export declare const TdCollapse: NamedExoticComponent<TdCollapseProps>;
|
|
314
|
+
|
|
315
|
+
export declare interface TdCollapseProps extends Omit<CollapseProps, "bordered" | "ghost"> {
|
|
316
|
+
/** Figma Borderless axis. Maps to antd `bordered={false}`. Defaults to false (bordered). */
|
|
317
|
+
borderless?: boolean;
|
|
318
|
+
/** Figma Ghost axis. Maps to antd `ghost`. Defaults to false. */
|
|
319
|
+
ghost?: boolean;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export declare const TdColors: {
|
|
323
|
+
readonly primary: {
|
|
324
|
+
readonly main: "#1F9E56";
|
|
325
|
+
readonly light: "#47AF74";
|
|
326
|
+
readonly dark: "#1A8548";
|
|
327
|
+
readonly contrastText: "#FFFFFF";
|
|
328
|
+
};
|
|
329
|
+
readonly secondary: {
|
|
330
|
+
readonly main: "#7B1FA2";
|
|
331
|
+
readonly light: "#BA68C8";
|
|
332
|
+
readonly dark: "#4A148C";
|
|
333
|
+
readonly contrastText: "#FFFFFF";
|
|
334
|
+
};
|
|
335
|
+
readonly success: {
|
|
336
|
+
readonly main: "#5FA43D";
|
|
337
|
+
readonly light: "#7FB664";
|
|
338
|
+
readonly dark: "#4C8331";
|
|
339
|
+
readonly contrastText: "#FFFFFF";
|
|
340
|
+
};
|
|
341
|
+
readonly warning: {
|
|
342
|
+
readonly main: "#FF9717";
|
|
343
|
+
readonly light: "#FEA840";
|
|
344
|
+
readonly dark: "#D07A12";
|
|
345
|
+
readonly contrastText: "#FFFFFF";
|
|
346
|
+
};
|
|
347
|
+
readonly error: {
|
|
348
|
+
readonly main: "#FF4D4F";
|
|
349
|
+
readonly light: "#FF7875";
|
|
350
|
+
readonly dark: "#CF1322";
|
|
351
|
+
readonly contrastText: "#FFFFFF";
|
|
352
|
+
};
|
|
353
|
+
readonly info: {
|
|
354
|
+
readonly main: "#3496FF";
|
|
355
|
+
readonly light: "#5CB0FF";
|
|
356
|
+
readonly dark: "#2173D9";
|
|
357
|
+
readonly contrastText: "#FFFFFF";
|
|
358
|
+
};
|
|
359
|
+
readonly neutral: {
|
|
360
|
+
readonly white: "#FFFFFF";
|
|
361
|
+
readonly black: "#000000";
|
|
362
|
+
readonly gray50: "#FAFAFA";
|
|
363
|
+
readonly gray100: "#F5F5F5";
|
|
364
|
+
readonly gray200: "#F0F0F0";
|
|
365
|
+
readonly gray300: "#D9D9D9";
|
|
366
|
+
readonly gray400: "#BFBFBF";
|
|
367
|
+
readonly gray500: "#8C8C8C";
|
|
368
|
+
readonly gray600: "#595959";
|
|
369
|
+
readonly gray700: "#434343";
|
|
370
|
+
readonly gray800: "#262626";
|
|
371
|
+
readonly gray900: "#000000";
|
|
372
|
+
};
|
|
373
|
+
readonly text: {
|
|
374
|
+
readonly primary: "rgba(0, 0, 0, 0.88)";
|
|
375
|
+
readonly secondary: "rgba(0, 0, 0, 0.65)";
|
|
376
|
+
readonly disabled: "rgba(0, 0, 0, 0.25)";
|
|
377
|
+
readonly inverse: "#FFFFFF";
|
|
378
|
+
};
|
|
379
|
+
readonly background: {
|
|
380
|
+
readonly default: "#F5F5F5";
|
|
381
|
+
readonly paper: "#FFFFFF";
|
|
382
|
+
readonly elevated: "#FFFFFF";
|
|
383
|
+
};
|
|
384
|
+
readonly border: {
|
|
385
|
+
readonly default: "#D9D9D9";
|
|
386
|
+
readonly focus: "#1F9E56";
|
|
387
|
+
readonly error: "#FF4D4F";
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
export declare type TdColorToken = typeof TdColors;
|
|
392
|
+
|
|
393
|
+
export declare type TdComponentColor = "default" | "primary" | "danger";
|
|
394
|
+
|
|
395
|
+
export declare type TdComponentSize = "small" | "middle" | "large";
|
|
396
|
+
|
|
397
|
+
export declare type TdComponentToken = typeof TdComponentTokens;
|
|
398
|
+
|
|
399
|
+
/** IRI-TAX Figma variables. Collection: components. Mode: Light. */
|
|
400
|
+
export declare const TdComponentTokens: {
|
|
401
|
+
readonly Button: {
|
|
402
|
+
readonly borderColorDisabled: "#D9D9D9";
|
|
403
|
+
readonly contentFontSize: 14;
|
|
404
|
+
readonly contentFontSizeLG: 14;
|
|
405
|
+
readonly contentFontSizeSM: 14;
|
|
406
|
+
readonly contentLineHeight: 1.571;
|
|
407
|
+
readonly contentLineHeightLG: 1.5;
|
|
408
|
+
readonly contentLineHeightSM: 1.6666666666666667;
|
|
409
|
+
readonly dangerColor: "#FFFFFF";
|
|
410
|
+
readonly dangerShadow: "0 2px 0 rgba(255,38,5,0.06)";
|
|
411
|
+
readonly defaultActiveBg: "#FFFFFF";
|
|
412
|
+
readonly defaultActiveBorderColor: "#1A8548";
|
|
413
|
+
readonly defaultActiveColor: "#1A8548";
|
|
414
|
+
readonly defaultBg: "#FFFFFF";
|
|
415
|
+
readonly defaultBorderColor: "#D9D9D9";
|
|
416
|
+
readonly defaultColor: "rgba(0, 0, 0, 0.88)";
|
|
417
|
+
readonly defaultGhostBorderColor: "#FFFFFF";
|
|
418
|
+
readonly defaultGhostColor: "#FFFFFF";
|
|
419
|
+
readonly defaultHoverBg: "#FFFFFF";
|
|
420
|
+
readonly defaultHoverBorderColor: "#47AF74";
|
|
421
|
+
readonly defaultHoverColor: "#47AF74";
|
|
422
|
+
readonly defaultShadow: "0 2px 0 rgba(0,0,0,0.02)";
|
|
423
|
+
readonly fontWeight: 400;
|
|
424
|
+
readonly ghostBg: "rgba(255, 255, 255, 0)";
|
|
425
|
+
readonly groupBorderColor: "#47AF74";
|
|
426
|
+
readonly iconGap: 8;
|
|
427
|
+
readonly linkHoverBg: "rgba(255, 255, 255, 0)";
|
|
428
|
+
readonly onlyIconSize: 14;
|
|
429
|
+
readonly onlyIconSizeLG: 16;
|
|
430
|
+
readonly onlyIconSizeSM: 12;
|
|
431
|
+
readonly paddingBlock: 4;
|
|
432
|
+
readonly paddingBlockLG: 7;
|
|
433
|
+
readonly paddingBlockSM: 0;
|
|
434
|
+
readonly paddingInline: 15;
|
|
435
|
+
readonly paddingInlineLG: 15;
|
|
436
|
+
readonly paddingInlineSM: 7;
|
|
437
|
+
readonly primaryColor: "#FFFFFF";
|
|
438
|
+
readonly primaryShadow: "0 2px 0 rgba(5,145,255,0.1)";
|
|
439
|
+
readonly solidTextColor: "#FFFFFF";
|
|
440
|
+
readonly textHoverBg: "rgba(0, 0, 0, 0.04)";
|
|
441
|
+
readonly textTextActiveColor: "rgba(0, 0, 0, 0.88)";
|
|
442
|
+
readonly textTextColor: "rgba(0, 0, 0, 0.88)";
|
|
443
|
+
readonly textTextHoverColor: "rgba(0, 0, 0, 0.88)";
|
|
444
|
+
readonly dashedBgDisabled: "rgba(0, 0, 0, 0.04)";
|
|
445
|
+
readonly defaultBgDisabled: "rgba(0, 0, 0, 0.04)";
|
|
446
|
+
};
|
|
447
|
+
readonly Typography: {
|
|
448
|
+
readonly titleMarginBottom: 0;
|
|
449
|
+
readonly titleMarginTop: 0;
|
|
450
|
+
};
|
|
451
|
+
readonly Divider: {
|
|
452
|
+
readonly orientationMargin: 0.05;
|
|
453
|
+
readonly textPaddingInline: 14;
|
|
454
|
+
readonly verticalMarginInline: 8;
|
|
455
|
+
};
|
|
456
|
+
readonly Layout: {
|
|
457
|
+
readonly bodyBg: "#F5F5F5";
|
|
458
|
+
readonly footerBg: "#F5F5F5";
|
|
459
|
+
readonly footerPadding: "24px 50px";
|
|
460
|
+
readonly headerBg: "#001529";
|
|
461
|
+
readonly headerColor: "rgba(0, 0, 0, 0.88)";
|
|
462
|
+
readonly headerHeight: 64;
|
|
463
|
+
readonly headerPadding: "0 50px";
|
|
464
|
+
readonly lightSiderBg: "#FFFFFF";
|
|
465
|
+
readonly lightTriggerBg: "#FFFFFF";
|
|
466
|
+
readonly lightTriggerColor: "rgba(0, 0, 0, 0.88)";
|
|
467
|
+
readonly siderBg: "#001529";
|
|
468
|
+
readonly triggerBg: "#002140";
|
|
469
|
+
readonly triggerColor: "#FFFFFF";
|
|
470
|
+
readonly triggerHeight: 48;
|
|
471
|
+
readonly zeroTriggerHeight: 40;
|
|
472
|
+
readonly zeroTriggerWidth: 40;
|
|
473
|
+
};
|
|
474
|
+
readonly Splitter: {
|
|
475
|
+
readonly splitBarDraggableSize: 20;
|
|
476
|
+
readonly splitBarSize: 2;
|
|
477
|
+
readonly splitTriggerSize: 6;
|
|
478
|
+
};
|
|
479
|
+
readonly Anchor: {
|
|
480
|
+
readonly linkPaddingBlock: 4;
|
|
481
|
+
readonly linkPaddingInlineStart: 16;
|
|
482
|
+
};
|
|
483
|
+
readonly Breadcrumb: {
|
|
484
|
+
readonly iconFontSize: 14;
|
|
485
|
+
readonly itemColor: "rgba(0, 0, 0, 0.45)";
|
|
486
|
+
readonly lastItemColor: "rgba(0, 0, 0, 0.88)";
|
|
487
|
+
readonly linkColor: "rgba(0, 0, 0, 0.45)";
|
|
488
|
+
readonly linkHoverColor: "rgba(0, 0, 0, 0.88)";
|
|
489
|
+
readonly separatorColor: "rgba(0, 0, 0, 0.45)";
|
|
490
|
+
readonly separatorMargin: 8;
|
|
491
|
+
};
|
|
492
|
+
readonly Dropdown: {
|
|
493
|
+
readonly paddingBlock: 5;
|
|
494
|
+
readonly zIndexPopup: 1050;
|
|
495
|
+
};
|
|
496
|
+
readonly Menu: {
|
|
497
|
+
readonly activeBarBorderWidth: 1;
|
|
498
|
+
readonly activeBarHeight: 2;
|
|
499
|
+
readonly activeBarWidth: 0;
|
|
500
|
+
readonly collapsedIconSize: 16;
|
|
501
|
+
readonly collapsedWidth: 80;
|
|
502
|
+
readonly dangerItemActiveBg: "#FFF1F0";
|
|
503
|
+
readonly dangerItemColor: "#FF4D4F";
|
|
504
|
+
readonly dangerItemHoverColor: "#FF4D4F";
|
|
505
|
+
readonly dangerItemSelectedBg: "#FFF1F0";
|
|
506
|
+
readonly dangerItemSelectedColor: "#FF4D4F";
|
|
507
|
+
readonly darkDangerItemActiveBg: "#FF4D4F";
|
|
508
|
+
readonly darkDangerItemColor: "#FF4D4F";
|
|
509
|
+
readonly darkDangerItemHoverColor: "#FF7875";
|
|
510
|
+
readonly darkDangerItemSelectedBg: "#FF4D4F";
|
|
511
|
+
readonly darkDangerItemSelectedColor: "#FFFFFF";
|
|
512
|
+
readonly darkGroupTitleColor: "rgba(255, 255, 255, 0.65)";
|
|
513
|
+
readonly darkItemBg: "#001529";
|
|
514
|
+
readonly darkItemColor: "rgba(255, 255, 255, 0.65)";
|
|
515
|
+
readonly darkItemDisabledColor: "rgba(255, 255, 255, 0.25)";
|
|
516
|
+
readonly darkItemHoverBg: "rgba(255, 255, 255, 0)";
|
|
517
|
+
readonly darkItemHoverColor: "#FFFFFF";
|
|
518
|
+
readonly darkItemSelectedBg: "#1F9E56";
|
|
519
|
+
readonly darkItemSelectedColor: "#FFFFFF";
|
|
520
|
+
readonly darkPopupBg: "#001529";
|
|
521
|
+
readonly darkSubMenuItemBg: "#000C17";
|
|
522
|
+
readonly dropdownWidth: 160;
|
|
523
|
+
readonly groupTitleColor: "rgba(0, 0, 0, 0.45)";
|
|
524
|
+
readonly groupTitleFontSize: 14;
|
|
525
|
+
readonly groupTitleLineHeight: 1.5714285714285714;
|
|
526
|
+
readonly horizontalItemBorderRadius: 0;
|
|
527
|
+
readonly horizontalItemHoverBg: "rgba(255, 255, 255, 0)";
|
|
528
|
+
readonly horizontalItemHoverColor: "#1F9E56";
|
|
529
|
+
readonly horizontalItemSelectedBg: "rgba(255, 255, 255, 0)";
|
|
530
|
+
readonly horizontalItemSelectedColor: "#1F9E56";
|
|
531
|
+
readonly horizontalLineHeight: 46;
|
|
532
|
+
readonly iconMarginInlineEnd: 10;
|
|
533
|
+
readonly iconSize: 14;
|
|
534
|
+
readonly itemActiveBg: "#EDF7F1";
|
|
535
|
+
readonly itemBg: "#FFFFFF";
|
|
536
|
+
readonly itemBorderRadius: 8;
|
|
537
|
+
readonly itemColor: "rgba(0, 0, 0, 0.88)";
|
|
538
|
+
readonly itemDisabledColor: "rgba(0, 0, 0, 0.25)";
|
|
539
|
+
readonly itemHeight: 40;
|
|
540
|
+
readonly itemHoverBg: "rgba(0, 0, 0, 0.06)";
|
|
541
|
+
readonly itemHoverColor: "rgba(0, 0, 0, 0.88)";
|
|
542
|
+
readonly itemMarginBlock: 4;
|
|
543
|
+
readonly itemMarginInline: 4;
|
|
544
|
+
readonly itemPaddingInline: 16;
|
|
545
|
+
readonly itemSelectedBg: "#EDF7F1";
|
|
546
|
+
readonly itemSelectedColor: "#1F9E56";
|
|
547
|
+
readonly popupBg: "#FFFFFF";
|
|
548
|
+
readonly subMenuItemBg: "rgba(0, 0, 0, 0.02)";
|
|
549
|
+
readonly subMenuItemBorderRadius: 4;
|
|
550
|
+
readonly subMenuItemSelectedColor: "#1F9E56";
|
|
551
|
+
readonly zIndexPopup: 1050;
|
|
552
|
+
};
|
|
553
|
+
readonly Pagination: {
|
|
554
|
+
readonly itemActiveBg: "#FFFFFF";
|
|
555
|
+
readonly itemActiveBgDisabled: "rgba(0, 0, 0, 0.15)";
|
|
556
|
+
readonly itemActiveColor: "#1F9E56";
|
|
557
|
+
readonly itemActiveColorDisabled: "rgba(0, 0, 0, 0.25)";
|
|
558
|
+
readonly itemActiveColorHover: "#47AF74";
|
|
559
|
+
readonly itemBg: "#FFFFFF";
|
|
560
|
+
readonly itemInputBg: "#FFFFFF";
|
|
561
|
+
readonly itemLinkBg: "#FFFFFF";
|
|
562
|
+
readonly itemSize: 32;
|
|
563
|
+
readonly itemSizeSM: 24;
|
|
564
|
+
readonly miniOptionsSizeChangerTop: 0;
|
|
565
|
+
};
|
|
566
|
+
readonly Steps: {
|
|
567
|
+
readonly customIconFontSize: 24;
|
|
568
|
+
readonly customIconSize: 24;
|
|
569
|
+
readonly customIconTop: 24;
|
|
570
|
+
readonly descriptionMaxWidth: 140;
|
|
571
|
+
readonly dotCurrentSize: 10;
|
|
572
|
+
readonly dotSize: 8;
|
|
573
|
+
readonly iconFontSize: 14;
|
|
574
|
+
readonly iconSize: 32;
|
|
575
|
+
readonly iconSizeSM: 24;
|
|
576
|
+
readonly iconTop: -0.5;
|
|
577
|
+
readonly navArrowColor: "rgba(0, 0, 0, 0.25)";
|
|
578
|
+
readonly navContentMaxWidth: "unset";
|
|
579
|
+
readonly titleLineHeight: 32;
|
|
580
|
+
};
|
|
581
|
+
readonly Tabs: {
|
|
582
|
+
readonly cardBg: "rgba(0, 0, 0, 0.02)";
|
|
583
|
+
readonly cardGutter: 2;
|
|
584
|
+
readonly cardHeight: 40;
|
|
585
|
+
readonly cardHeightLG: 48;
|
|
586
|
+
readonly cardHeightSM: 32;
|
|
587
|
+
readonly cardPadding: "8px 16px";
|
|
588
|
+
readonly cardPaddingLG: "11px 16px";
|
|
589
|
+
readonly cardPaddingSM: "4px 8px";
|
|
590
|
+
readonly horizontalItemGutter: 32;
|
|
591
|
+
readonly horizontalItemMargin: " ";
|
|
592
|
+
readonly horizontalItemMarginRTL: " ";
|
|
593
|
+
readonly horizontalItemPadding: "12px 0";
|
|
594
|
+
readonly horizontalItemPaddingLG: "16px 0";
|
|
595
|
+
readonly horizontalItemPaddingSM: "8px 0";
|
|
596
|
+
readonly horizontalMargin: "0 0 16px 0";
|
|
597
|
+
readonly inkBarColor: "#1F9E56";
|
|
598
|
+
readonly itemActiveColor: "#1A8548";
|
|
599
|
+
readonly itemColor: "rgba(0, 0, 0, 0.88)";
|
|
600
|
+
readonly itemHoverColor: "#47AF74";
|
|
601
|
+
readonly itemSelectedColor: "#1F9E56";
|
|
602
|
+
readonly titleFontSize: 14;
|
|
603
|
+
readonly titleFontSizeLG: 16;
|
|
604
|
+
readonly titleFontSizeSM: 12;
|
|
605
|
+
readonly verticalItemMargin: "16px 0 0 0";
|
|
606
|
+
readonly verticalItemPadding: "8px 24px";
|
|
607
|
+
readonly zIndexPopup: 1050;
|
|
608
|
+
};
|
|
609
|
+
readonly AutoComplete: {
|
|
610
|
+
readonly activeBorderColor: "#1F9E56";
|
|
611
|
+
readonly activeOutlineColor: "rgba(5, 145, 255, 0.1)";
|
|
612
|
+
readonly clearBg: "#FFFFFF";
|
|
613
|
+
readonly hoverBorderColor: "#47AF74";
|
|
614
|
+
readonly multipleItemBg: "rgba(0, 0, 0, 0.06)";
|
|
615
|
+
readonly multipleItemBorderColor: "rgba(255, 255, 255, 0)";
|
|
616
|
+
readonly multipleItemBorderColorDisabled: "rgba(255, 255, 255, 0)";
|
|
617
|
+
readonly multipleItemColorDisabled: "rgba(0, 0, 0, 0.25)";
|
|
618
|
+
readonly multipleItemHeight: 24;
|
|
619
|
+
readonly multipleItemHeightLG: 32;
|
|
620
|
+
readonly multipleItemHeightSM: 16;
|
|
621
|
+
readonly multipleSelectorBgDisabled: "rgba(0, 0, 0, 0.04)";
|
|
622
|
+
readonly optionActiveBg: "rgba(0, 0, 0, 0.04)";
|
|
623
|
+
readonly optionFontSize: 14;
|
|
624
|
+
readonly optionHeight: 32;
|
|
625
|
+
readonly optionLineHeight: 1.5714285714285714;
|
|
626
|
+
readonly optionPadding: "5px 12px";
|
|
627
|
+
readonly optionSelectedBg: "#EDF7F1";
|
|
628
|
+
readonly optionSelectedColor: "rgba(0, 0, 0, 0.88)";
|
|
629
|
+
readonly optionSelectedFontWeight: 700;
|
|
630
|
+
readonly selectorBg: "#FFFFFF";
|
|
631
|
+
readonly showArrowPaddingInlineEnd: 18;
|
|
632
|
+
readonly singleItemHeightLG: 40;
|
|
633
|
+
readonly zIndexPopup: 1050;
|
|
634
|
+
};
|
|
635
|
+
readonly Cascader: {
|
|
636
|
+
readonly controlItemWidth: 111;
|
|
637
|
+
readonly controlWidth: 184;
|
|
638
|
+
readonly dropdownHeight: 180;
|
|
639
|
+
readonly menuPadding: 4;
|
|
640
|
+
readonly optionPadding: "5px 12px";
|
|
641
|
+
readonly optionSelectedBg: "#EDF7F1";
|
|
642
|
+
readonly optionSelectedColor: "rgba(0, 0, 0, 0.88)";
|
|
643
|
+
readonly optionSelectedFontWeight: 700;
|
|
644
|
+
};
|
|
645
|
+
readonly Input: {
|
|
646
|
+
readonly activeBg: "#FFFFFF";
|
|
647
|
+
readonly activeBorderColor: "#1F9E56";
|
|
648
|
+
readonly activeShadow: "0 0 0 2px rgba(5,145,255,0.1)";
|
|
649
|
+
readonly addonBg: "rgba(0, 0, 0, 0.02)";
|
|
650
|
+
readonly errorActiveShadow: "0 0 0 2px rgba(255,38,5,0.06)";
|
|
651
|
+
readonly hoverBg: "#FFFFFF";
|
|
652
|
+
readonly hoverBorderColor: "#47AF74";
|
|
653
|
+
readonly inputFontSize: 14;
|
|
654
|
+
readonly inputFontSizeLG: 16;
|
|
655
|
+
readonly inputFontSizeSM: 14;
|
|
656
|
+
readonly paddingBlock: 4;
|
|
657
|
+
readonly paddingBlockLG: 7;
|
|
658
|
+
readonly paddingBlockSM: 0;
|
|
659
|
+
readonly paddingInline: 11;
|
|
660
|
+
readonly paddingInlineLG: 11;
|
|
661
|
+
readonly paddingInlineSM: 7;
|
|
662
|
+
readonly warningActiveShadow: "0 0 0 2px rgba(255,215,5,0.1)";
|
|
663
|
+
};
|
|
664
|
+
readonly DatePicker: {
|
|
665
|
+
readonly activeBg: "#FFFFFF";
|
|
666
|
+
readonly activeBorderColor: "#1F9E56";
|
|
667
|
+
readonly activeShadow: "0 0 0 2px rgba(5,145,255,0.1)";
|
|
668
|
+
readonly addonBg: "rgba(0, 0, 0, 0.02)";
|
|
669
|
+
readonly cellActiveWithRangeBg: "#EDF7F1";
|
|
670
|
+
readonly cellBgDisabled: "rgba(0, 0, 0, 0.04)";
|
|
671
|
+
readonly cellHeight: 24;
|
|
672
|
+
readonly cellHoverBg: "rgba(0, 0, 0, 0.04)";
|
|
673
|
+
readonly cellHoverWithRangeBg: "#CBE0FD";
|
|
674
|
+
readonly cellRangeBorderColor: "#82B4F9";
|
|
675
|
+
readonly cellWidth: 36;
|
|
676
|
+
readonly errorActiveShadow: "0 0 0 2px rgba(255,38,5,0.06)";
|
|
677
|
+
readonly hoverBg: "#FFFFFF";
|
|
678
|
+
readonly hoverBorderColor: "#47AF74";
|
|
679
|
+
readonly inputFontSize: 14;
|
|
680
|
+
readonly inputFontSizeLG: 16;
|
|
681
|
+
readonly inputFontSizeSM: 14;
|
|
682
|
+
readonly multipleItemBg: "rgba(0, 0, 0, 0.06)";
|
|
683
|
+
readonly multipleItemBorderColor: "rgba(255, 255, 255, 0)";
|
|
684
|
+
readonly multipleItemBorderColorDisabled: "rgba(255, 255, 255, 0)";
|
|
685
|
+
readonly multipleItemColorDisabled: "rgba(0, 0, 0, 0.25)";
|
|
686
|
+
readonly multipleItemHeight: 24;
|
|
687
|
+
readonly multipleItemHeightLG: 32;
|
|
688
|
+
readonly multipleItemHeightSM: 16;
|
|
689
|
+
readonly multipleSelectorBgDisabled: "rgba(0, 0, 0, 0.04)";
|
|
690
|
+
readonly paddingBlock: 4;
|
|
691
|
+
readonly paddingBlockLG: 7;
|
|
692
|
+
readonly paddingBlockSM: 0;
|
|
693
|
+
readonly paddingInline: 11;
|
|
694
|
+
readonly paddingInlineLG: 11;
|
|
695
|
+
readonly paddingInlineSM: 7;
|
|
696
|
+
readonly presetsMaxWidth: 200;
|
|
697
|
+
readonly presetsWidth: 120;
|
|
698
|
+
readonly textHeight: 40;
|
|
699
|
+
readonly timeCellHeight: 28;
|
|
700
|
+
readonly timeColumnHeight: 224;
|
|
701
|
+
readonly timeColumnWidth: 56;
|
|
702
|
+
readonly warningActiveShadow: "0 0 0 2px rgba(255,215,5,0.1)";
|
|
703
|
+
readonly withoutTimeCellHeight: 66;
|
|
704
|
+
readonly zIndexPopup: 1050;
|
|
705
|
+
};
|
|
706
|
+
readonly Form: {
|
|
707
|
+
readonly inlineItemMarginBottom: 0;
|
|
708
|
+
readonly itemMarginBottom: 24;
|
|
709
|
+
readonly labelColonMarginInlineEnd: 8;
|
|
710
|
+
readonly labelColonMarginInlineStart: 2;
|
|
711
|
+
readonly labelColor: "rgba(0, 0, 0, 0.88)";
|
|
712
|
+
readonly labelFontSize: 14;
|
|
713
|
+
readonly labelHeight: 32;
|
|
714
|
+
readonly labelRequiredMarkColor: "#FF4D4F";
|
|
715
|
+
readonly verticalLabelMargin: 0;
|
|
716
|
+
readonly verticalLabelPadding: "0 0 8px";
|
|
717
|
+
};
|
|
718
|
+
readonly InputNumber: {
|
|
719
|
+
readonly activeBg: "#FFFFFF";
|
|
720
|
+
readonly activeBorderColor: "#1F9E56";
|
|
721
|
+
readonly activeShadow: "0 0 0 2px rgba(5,145,255,0.1)";
|
|
722
|
+
readonly addonBg: "rgba(0, 0, 0, 0.02)";
|
|
723
|
+
readonly controlWidth: 90;
|
|
724
|
+
readonly errorActiveShadow: "0 0 0 2px rgba(255,38,5,0.06)";
|
|
725
|
+
readonly filledHandleBg: "#F0F0F0";
|
|
726
|
+
readonly handleActiveBg: "rgba(0, 0, 0, 0.02)";
|
|
727
|
+
readonly handleBg: "#FFFFFF";
|
|
728
|
+
readonly handleBorderColor: "#D9D9D9";
|
|
729
|
+
readonly handleFontSize: 7;
|
|
730
|
+
readonly handleHoverColor: "#1F9E56";
|
|
731
|
+
readonly handleVisible: "auto";
|
|
732
|
+
readonly handleWidth: 22;
|
|
733
|
+
readonly hoverBg: "#FFFFFF";
|
|
734
|
+
readonly hoverBorderColor: "#47AF74";
|
|
735
|
+
readonly inputFontSize: 14;
|
|
736
|
+
readonly inputFontSizeLG: 16;
|
|
737
|
+
readonly inputFontSizeSM: 14;
|
|
738
|
+
readonly paddingBlock: 4;
|
|
739
|
+
readonly paddingBlockLG: 7;
|
|
740
|
+
readonly paddingBlockSM: 0;
|
|
741
|
+
readonly paddingInline: 11;
|
|
742
|
+
readonly paddingInlineLG: 11;
|
|
743
|
+
readonly paddingInlineSM: 7;
|
|
744
|
+
readonly warningActiveShadow: "0 0 0 2px rgba(255,215,5,0.1)";
|
|
745
|
+
};
|
|
746
|
+
readonly Mentions: {
|
|
747
|
+
readonly activeBg: "#FFFFFF";
|
|
748
|
+
readonly activeBorderColor: "#1F9E56";
|
|
749
|
+
readonly activeShadow: "0 0 0 2px rgba(5,145,255,0.1)";
|
|
750
|
+
readonly addonBg: "rgba(0, 0, 0, 0.02)";
|
|
751
|
+
readonly controlItemWidth: 100;
|
|
752
|
+
readonly dropdownHeight: 250;
|
|
753
|
+
readonly errorActiveShadow: "0 0 0 2px rgba(255,38,5,0.06)";
|
|
754
|
+
readonly hoverBg: "#FFFFFF";
|
|
755
|
+
readonly hoverBorderColor: "#47AF74";
|
|
756
|
+
readonly inputFontSize: 14;
|
|
757
|
+
readonly inputFontSizeLG: 16;
|
|
758
|
+
readonly inputFontSizeSM: 14;
|
|
759
|
+
readonly paddingBlock: 4;
|
|
760
|
+
readonly paddingBlockLG: 7;
|
|
761
|
+
readonly paddingBlockSM: 0;
|
|
762
|
+
readonly paddingInline: 11;
|
|
763
|
+
readonly paddingInlineLG: 11;
|
|
764
|
+
readonly paddingInlineSM: 7;
|
|
765
|
+
readonly warningActiveShadow: "0 0 0 2px rgba(255,215,5,0.1)";
|
|
766
|
+
readonly zIndexPopup: 1050;
|
|
767
|
+
};
|
|
768
|
+
readonly Radio: {
|
|
769
|
+
readonly buttonBg: "#FFFFFF";
|
|
770
|
+
readonly buttonCheckedBg: "#FFFFFF";
|
|
771
|
+
readonly buttonCheckedBgDisabled: "rgba(0, 0, 0, 0.15)";
|
|
772
|
+
readonly buttonCheckedColorDisabled: "rgba(0, 0, 0, 0.25)";
|
|
773
|
+
readonly buttonColor: "rgba(0, 0, 0, 0.88)";
|
|
774
|
+
readonly buttonPaddingInline: 15;
|
|
775
|
+
readonly buttonSolidCheckedActiveBg: "#1A8548";
|
|
776
|
+
readonly buttonSolidCheckedBg: "#1F9E56";
|
|
777
|
+
readonly buttonSolidCheckedColor: "#FFFFFF";
|
|
778
|
+
readonly buttonSolidCheckedHoverBg: "#47AF74";
|
|
779
|
+
readonly dotColorDisabled: "rgba(0, 0, 0, 0.25)";
|
|
780
|
+
readonly dotSize: 8;
|
|
781
|
+
readonly radioSize: 16;
|
|
782
|
+
readonly wrapperMarginInlineEnd: 8;
|
|
783
|
+
};
|
|
784
|
+
readonly Rate: {
|
|
785
|
+
readonly starBg: "rgba(0, 0, 0, 0.06)";
|
|
786
|
+
readonly starColor: "#FADB14";
|
|
787
|
+
readonly starHoverScale: "scale(1.1)";
|
|
788
|
+
readonly starSize: 20;
|
|
789
|
+
readonly starSizeLG: 25;
|
|
790
|
+
readonly starSizeSM: 15;
|
|
791
|
+
};
|
|
792
|
+
readonly Select: {
|
|
793
|
+
readonly activeBorderColor: "#1F9E56";
|
|
794
|
+
readonly activeOutlineColor: "rgba(5, 145, 255, 0.1)";
|
|
795
|
+
readonly clearBg: "#FFFFFF";
|
|
796
|
+
readonly hoverBorderColor: "#47AF74";
|
|
797
|
+
readonly multipleItemBg: "rgba(0, 0, 0, 0.06)";
|
|
798
|
+
readonly multipleItemBorderColor: "rgba(255, 255, 255, 0)";
|
|
799
|
+
readonly multipleItemBorderColorDisabled: "rgba(255, 255, 255, 0)";
|
|
800
|
+
readonly multipleItemColorDisabled: "rgba(0, 0, 0, 0.25)";
|
|
801
|
+
readonly multipleItemHeight: 24;
|
|
802
|
+
readonly multipleItemHeightLG: 32;
|
|
803
|
+
readonly multipleItemHeightSM: 16;
|
|
804
|
+
readonly multipleSelectorBgDisabled: "rgba(0, 0, 0, 0.04)";
|
|
805
|
+
readonly optionActiveBg: "rgba(0, 0, 0, 0.04)";
|
|
806
|
+
readonly optionFontSize: 14;
|
|
807
|
+
readonly optionHeight: 32;
|
|
808
|
+
readonly optionLineHeight: 1.5714285714285714;
|
|
809
|
+
readonly optionPadding: "5px 12px";
|
|
810
|
+
readonly optionSelectedBg: "#EDF7F1";
|
|
811
|
+
readonly optionSelectedColor: "rgba(0, 0, 0, 0.88)";
|
|
812
|
+
readonly optionSelectedFontWeight: 700;
|
|
813
|
+
readonly selectorBg: "#FFFFFF";
|
|
814
|
+
readonly showArrowPaddingInlineEnd: 18;
|
|
815
|
+
readonly singleItemHeightLG: 40;
|
|
816
|
+
readonly zIndexPopup: 1050;
|
|
817
|
+
};
|
|
818
|
+
readonly Slider: {
|
|
819
|
+
readonly controlSize: 10;
|
|
820
|
+
readonly dotActiveBorderColor: "#98D2B1";
|
|
821
|
+
readonly dotBorderColor: "#F0F0F0";
|
|
822
|
+
readonly dotSize: 8;
|
|
823
|
+
readonly handleActiveColor: "#1F9E56";
|
|
824
|
+
readonly handleActiveOutlineColor: "#C5E6D3";
|
|
825
|
+
readonly handleColor: "#98D2B1";
|
|
826
|
+
readonly handleColorDisabled: "#BFBFBF";
|
|
827
|
+
readonly handleLineWidth: 2;
|
|
828
|
+
readonly handleLineWidthHover: 2.5;
|
|
829
|
+
readonly handleSize: 10;
|
|
830
|
+
readonly handleSizeHover: 12;
|
|
831
|
+
readonly railBg: "rgba(0, 0, 0, 0.04)";
|
|
832
|
+
readonly railHoverBg: "rgba(0, 0, 0, 0.06)";
|
|
833
|
+
readonly railSize: 4;
|
|
834
|
+
readonly trackBg: "#98D2B1";
|
|
835
|
+
readonly trackBgDisabled: "rgba(0, 0, 0, 0.04)";
|
|
836
|
+
readonly trackHoverBg: "#70C193";
|
|
837
|
+
};
|
|
838
|
+
readonly Switch: {
|
|
839
|
+
readonly handleBg: "#FFFFFF";
|
|
840
|
+
readonly handleShadow: "0 2px 4px 0 rgba(0,35,11,0.2)";
|
|
841
|
+
readonly handleSize: 18;
|
|
842
|
+
readonly handleSizeSM: 12;
|
|
843
|
+
readonly innerMaxMargin: 24;
|
|
844
|
+
readonly innerMaxMarginSM: 18;
|
|
845
|
+
readonly innerMinMargin: 9;
|
|
846
|
+
readonly innerMinMarginSM: 6;
|
|
847
|
+
readonly trackHeight: 22;
|
|
848
|
+
readonly trackHeightSM: 16;
|
|
849
|
+
readonly trackMinWidth: 44;
|
|
850
|
+
readonly trackMinWidthSM: 28;
|
|
851
|
+
readonly trackPadding: 2;
|
|
852
|
+
};
|
|
853
|
+
readonly TimePicker: {
|
|
854
|
+
readonly activeBg: "#FFFFFF";
|
|
855
|
+
readonly activeBorderColor: "#1F9E56";
|
|
856
|
+
readonly activeShadow: "0 0 0 2px rgba(5,145,255,0.1)";
|
|
857
|
+
readonly addonBg: "rgba(0, 0, 0, 0.02)";
|
|
858
|
+
readonly cellActiveWithRangeBg: "#EDF7F1";
|
|
859
|
+
readonly cellBgDisabled: "rgba(0, 0, 0, 0.04)";
|
|
860
|
+
readonly cellHeight: 24;
|
|
861
|
+
readonly cellHoverBg: "rgba(0, 0, 0, 0.04)";
|
|
862
|
+
readonly cellHoverWithRangeBg: "#CBE0FD";
|
|
863
|
+
readonly cellRangeBorderColor: "#82B4F9";
|
|
864
|
+
readonly cellWidth: 36;
|
|
865
|
+
readonly errorActiveShadow: "0 0 0 2px rgba(255,38,5,0.06)";
|
|
866
|
+
readonly hoverBg: "#FFFFFF";
|
|
867
|
+
readonly hoverBorderColor: "#47AF74";
|
|
868
|
+
readonly inputFontSize: 14;
|
|
869
|
+
readonly inputFontSizeLG: 16;
|
|
870
|
+
readonly inputFontSizeSM: 14;
|
|
871
|
+
readonly multipleItemBg: "rgba(0, 0, 0, 0.06)";
|
|
872
|
+
readonly multipleItemBorderColor: "rgba(255, 255, 255, 0)";
|
|
873
|
+
readonly multipleItemBorderColorDisabled: "rgba(255, 255, 255, 0)";
|
|
874
|
+
readonly multipleItemColorDisabled: "rgba(0, 0, 0, 0.25)";
|
|
875
|
+
readonly multipleItemHeight: 24;
|
|
876
|
+
readonly multipleItemHeightLG: 32;
|
|
877
|
+
readonly multipleItemHeightSM: 16;
|
|
878
|
+
readonly multipleSelectorBgDisabled: "rgba(0, 0, 0, 0.04)";
|
|
879
|
+
readonly paddingBlock: 4;
|
|
880
|
+
readonly paddingBlockLG: 7;
|
|
881
|
+
readonly paddingBlockSM: 0;
|
|
882
|
+
readonly paddingInline: 11;
|
|
883
|
+
readonly paddingInlineLG: 11;
|
|
884
|
+
readonly paddingInlineSM: 7;
|
|
885
|
+
readonly presetsMaxWidth: 200;
|
|
886
|
+
readonly presetsWidth: 120;
|
|
887
|
+
readonly textHeight: 40;
|
|
888
|
+
readonly timeCellHeight: 28;
|
|
889
|
+
readonly timeColumnHeight: 224;
|
|
890
|
+
readonly timeColumnWidth: 56;
|
|
891
|
+
readonly warningActiveShadow: "0 0 0 2px rgba(255,215,5,0.1)";
|
|
892
|
+
readonly withoutTimeCellHeight: 66;
|
|
893
|
+
readonly zIndexPopup: 1050;
|
|
894
|
+
};
|
|
895
|
+
readonly Transfer: {
|
|
896
|
+
readonly headerHeight: 40;
|
|
897
|
+
readonly itemHeight: 32;
|
|
898
|
+
readonly itemPaddingBlock: 5;
|
|
899
|
+
readonly listHeight: 200;
|
|
900
|
+
readonly listWidth: 180;
|
|
901
|
+
readonly listWidthLG: 250;
|
|
902
|
+
};
|
|
903
|
+
readonly TreeSelect: {
|
|
904
|
+
readonly indentSize: 24;
|
|
905
|
+
readonly nodeHoverBg: "rgba(0, 0, 0, 0.04)";
|
|
906
|
+
readonly nodeHoverColor: "rgba(0, 0, 0, 0.88)";
|
|
907
|
+
readonly nodeSelectedBg: "#EDF7F1";
|
|
908
|
+
readonly nodeSelectedColor: "rgba(0, 0, 0, 0.88)";
|
|
909
|
+
readonly titleHeight: 24;
|
|
910
|
+
};
|
|
911
|
+
readonly Upload: {
|
|
912
|
+
readonly actionsColor: "rgba(0, 0, 0, 0.45)";
|
|
913
|
+
readonly pictureCardSize: 102;
|
|
914
|
+
};
|
|
915
|
+
readonly Avatar: {
|
|
916
|
+
readonly containerSize: 32;
|
|
917
|
+
readonly containerSizeLG: 40;
|
|
918
|
+
readonly containerSizeSM: 24;
|
|
919
|
+
readonly groupBorderColor: "#FFFFFF";
|
|
920
|
+
readonly groupOverlapping: -8;
|
|
921
|
+
readonly groupSpace: 4;
|
|
922
|
+
readonly iconFontSize: 18;
|
|
923
|
+
readonly iconFontSizeLG: 24;
|
|
924
|
+
readonly iconFontSizeSM: 14;
|
|
925
|
+
readonly textFontSize: 14;
|
|
926
|
+
readonly textFontSizeLG: 14;
|
|
927
|
+
readonly textFontSizeSM: 14;
|
|
928
|
+
};
|
|
929
|
+
readonly Badge: {
|
|
930
|
+
readonly dotSize: 6;
|
|
931
|
+
readonly indicatorHeight: 20;
|
|
932
|
+
readonly indicatorHeightSM: 14;
|
|
933
|
+
readonly indicatorZIndex: "auto";
|
|
934
|
+
readonly statusSize: 6;
|
|
935
|
+
readonly textFontSize: 12;
|
|
936
|
+
readonly textFontSizeSM: 12;
|
|
937
|
+
readonly textFontWeight: 400;
|
|
938
|
+
};
|
|
939
|
+
readonly Calendar: {
|
|
940
|
+
readonly fullBg: "#FFFFFF";
|
|
941
|
+
readonly fullPanelBg: "#FFFFFF";
|
|
942
|
+
readonly itemActiveBg: "#EDF7F1";
|
|
943
|
+
readonly miniContentHeight: 256;
|
|
944
|
+
readonly monthControlWidth: 70;
|
|
945
|
+
readonly yearControlWidth: 80;
|
|
946
|
+
};
|
|
947
|
+
readonly Card: {
|
|
948
|
+
readonly actionsBg: "#FFFFFF";
|
|
949
|
+
readonly actionsLiMargin: "12px 0";
|
|
950
|
+
readonly bodyPadding: 24;
|
|
951
|
+
readonly bodyPaddingSM: 12;
|
|
952
|
+
readonly extraColor: "rgba(0, 0, 0, 0.88)";
|
|
953
|
+
readonly headerBg: "rgba(255, 255, 255, 0)";
|
|
954
|
+
readonly headerFontSize: 16;
|
|
955
|
+
readonly headerFontSizeSM: 14;
|
|
956
|
+
readonly headerHeight: 56;
|
|
957
|
+
readonly headerHeightSM: 38;
|
|
958
|
+
readonly headerPadding: 24;
|
|
959
|
+
readonly headerPaddingSM: 12;
|
|
960
|
+
readonly tabsMarginBottom: -17;
|
|
961
|
+
};
|
|
962
|
+
readonly Carousel: {
|
|
963
|
+
readonly arrowOffset: 8;
|
|
964
|
+
readonly arrowSize: 16;
|
|
965
|
+
readonly dotActiveWidth: 24;
|
|
966
|
+
readonly dotGap: 4;
|
|
967
|
+
readonly dotHeight: 3;
|
|
968
|
+
readonly dotOffset: 12;
|
|
969
|
+
readonly dotWidth: 16;
|
|
970
|
+
};
|
|
971
|
+
readonly Descriptions: {
|
|
972
|
+
readonly colonMarginLeft: 2;
|
|
973
|
+
readonly colonMarginRight: 8;
|
|
974
|
+
readonly contentColor: "rgba(0, 0, 0, 0.88)";
|
|
975
|
+
readonly extraColor: "rgba(0, 0, 0, 0.88)";
|
|
976
|
+
readonly itemPaddingBottom: 16;
|
|
977
|
+
readonly itemPaddingEnd: 16;
|
|
978
|
+
readonly labelBg: "rgba(0, 0, 0, 0.02)";
|
|
979
|
+
readonly labelColor: "rgba(0, 0, 0, 0.45)";
|
|
980
|
+
readonly titleColor: "rgba(0, 0, 0, 0.88)";
|
|
981
|
+
readonly titleMarginBottom: 20;
|
|
982
|
+
};
|
|
983
|
+
readonly Image: {
|
|
984
|
+
readonly previewOperationColor: "rgba(255, 255, 255, 0.65)";
|
|
985
|
+
readonly previewOperationColorDisabled: "rgba(255, 255, 255, 0.25)";
|
|
986
|
+
readonly previewOperationHoverColor: "rgba(255, 255, 255, 0.85)";
|
|
987
|
+
readonly previewOperationSize: 18;
|
|
988
|
+
readonly zIndexPopup: 1080;
|
|
989
|
+
};
|
|
990
|
+
readonly List: {
|
|
991
|
+
readonly avatarMarginRight: 16;
|
|
992
|
+
readonly contentWidth: 220;
|
|
993
|
+
readonly descriptionFontSize: 14;
|
|
994
|
+
readonly emptyTextPadding: 16;
|
|
995
|
+
readonly footerBg: "rgba(255, 255, 255, 0)";
|
|
996
|
+
readonly headerBg: "rgba(255, 255, 255, 0)";
|
|
997
|
+
readonly itemPadding: "12px 0";
|
|
998
|
+
readonly itemPaddingLG: "16px 24px";
|
|
999
|
+
readonly itemPaddingSM: "8px 16px";
|
|
1000
|
+
readonly metaMarginBottom: 16;
|
|
1001
|
+
readonly titleMarginBottom: 12;
|
|
1002
|
+
};
|
|
1003
|
+
readonly Popover: {
|
|
1004
|
+
readonly titleMinWidth: 177;
|
|
1005
|
+
readonly zIndexPopup: 1030;
|
|
1006
|
+
};
|
|
1007
|
+
readonly Segmented: {
|
|
1008
|
+
readonly itemActiveBg: "rgba(0, 0, 0, 0.15)";
|
|
1009
|
+
readonly itemColor: "rgba(0, 0, 0, 0.65)";
|
|
1010
|
+
readonly itemHoverBg: "rgba(0, 0, 0, 0.06)";
|
|
1011
|
+
readonly itemHoverColor: "rgba(0, 0, 0, 0.88)";
|
|
1012
|
+
readonly itemSelectedBg: "#FFFFFF";
|
|
1013
|
+
readonly itemSelectedColor: "rgba(0, 0, 0, 0.88)";
|
|
1014
|
+
readonly trackBg: "#F5F5F5";
|
|
1015
|
+
readonly trackPadding: 2;
|
|
1016
|
+
};
|
|
1017
|
+
readonly Statistic: {
|
|
1018
|
+
readonly contentFontSize: 24;
|
|
1019
|
+
readonly titleFontSize: 14;
|
|
1020
|
+
};
|
|
1021
|
+
readonly Table: {
|
|
1022
|
+
readonly bodySortBg: "#FAFAFA";
|
|
1023
|
+
readonly borderColor: "#F0F0F0";
|
|
1024
|
+
readonly cellFontSize: 14;
|
|
1025
|
+
readonly cellFontSizeMD: 14;
|
|
1026
|
+
readonly cellFontSizeSM: 14;
|
|
1027
|
+
readonly cellPaddingBlock: 16;
|
|
1028
|
+
readonly cellPaddingBlockMD: 12;
|
|
1029
|
+
readonly cellPaddingBlockSM: 8;
|
|
1030
|
+
readonly cellPaddingInline: 16;
|
|
1031
|
+
readonly cellPaddingInlineMD: 8;
|
|
1032
|
+
readonly cellPaddingInlineSM: 8;
|
|
1033
|
+
readonly expandIconBg: "#FFFFFF";
|
|
1034
|
+
readonly filterDropdownBg: "#FFFFFF";
|
|
1035
|
+
readonly filterDropdownMenuBg: "#FFFFFF";
|
|
1036
|
+
readonly fixedHeaderSortActiveBg: "#F0F0F0";
|
|
1037
|
+
readonly footerBg: "#FAFAFA";
|
|
1038
|
+
readonly footerColor: "rgba(0, 0, 0, 0.88)";
|
|
1039
|
+
readonly headerBg: "#FAFAFA";
|
|
1040
|
+
readonly headerBorderRadius: 8;
|
|
1041
|
+
readonly headerColor: "rgba(0, 0, 0, 0.88)";
|
|
1042
|
+
readonly headerFilterHoverBg: "rgba(0, 0, 0, 0.06)";
|
|
1043
|
+
readonly headerSortActiveBg: "#F0F0F0";
|
|
1044
|
+
readonly headerSortHoverBg: "#F0F0F0";
|
|
1045
|
+
readonly headerSplitColor: "#F0F0F0";
|
|
1046
|
+
readonly rowExpandedBg: "rgba(0, 0, 0, 0.02)";
|
|
1047
|
+
readonly rowHoverBg: "#FAFAFA";
|
|
1048
|
+
readonly rowSelectedBg: "#EDF7F1";
|
|
1049
|
+
readonly rowSelectedHoverBg: "#C5E6D3";
|
|
1050
|
+
readonly selectionColumnWidth: 32;
|
|
1051
|
+
readonly stickyScrollBarBg: "rgba(0, 0, 0, 0.25)";
|
|
1052
|
+
readonly stickyScrollBarBorderRadius: 100;
|
|
1053
|
+
};
|
|
1054
|
+
readonly Tag: {
|
|
1055
|
+
readonly defaultBg: "#FAFAFA";
|
|
1056
|
+
readonly defaultColor: "rgba(0, 0, 0, 0.88)";
|
|
1057
|
+
readonly solidTextColor: "#FFFFFF";
|
|
1058
|
+
};
|
|
1059
|
+
readonly Timeline: {
|
|
1060
|
+
readonly dotBg: "#FFFFFF";
|
|
1061
|
+
readonly dotBorderWidth: 2;
|
|
1062
|
+
readonly itemPaddingBottom: 20;
|
|
1063
|
+
readonly tailColor: "#EEEFF1";
|
|
1064
|
+
readonly tailWidth: 2;
|
|
1065
|
+
};
|
|
1066
|
+
readonly Tooltip: {
|
|
1067
|
+
readonly zIndexPopup: 1070;
|
|
1068
|
+
};
|
|
1069
|
+
readonly Tour: {
|
|
1070
|
+
readonly closeBtnSize: 0;
|
|
1071
|
+
readonly primaryNextBtnHoverBg: "#F0F0F0";
|
|
1072
|
+
readonly primaryPrevBtnBg: "rgba(255, 255, 255, 0.15)";
|
|
1073
|
+
readonly zIndexPopup: 1070;
|
|
1074
|
+
};
|
|
1075
|
+
readonly Tree: {
|
|
1076
|
+
readonly directoryNodeSelectedBg: "#1F9E56";
|
|
1077
|
+
readonly directoryNodeSelectedColor: "#FFFFFF";
|
|
1078
|
+
readonly indentSize: 24;
|
|
1079
|
+
readonly nodeHoverBg: "rgba(0, 0, 0, 0.04)";
|
|
1080
|
+
readonly nodeHoverColor: "rgba(0, 0, 0, 0.88)";
|
|
1081
|
+
readonly nodeSelectedBg: "#EDF7F1";
|
|
1082
|
+
readonly nodeSelectedColor: "rgba(0, 0, 0, 0.88)";
|
|
1083
|
+
readonly titleHeight: 24;
|
|
1084
|
+
};
|
|
1085
|
+
readonly Alert: {
|
|
1086
|
+
readonly defaultPadding: "8px 12px";
|
|
1087
|
+
readonly withDescriptionIconSize: 24;
|
|
1088
|
+
readonly withDescriptionPadding: "20px 24px";
|
|
1089
|
+
};
|
|
1090
|
+
readonly Drawer: {
|
|
1091
|
+
readonly draggerSize: 4;
|
|
1092
|
+
readonly footerPaddingBlock: 8;
|
|
1093
|
+
readonly footerPaddingInline: 16;
|
|
1094
|
+
readonly zIndexPopup: 1000;
|
|
1095
|
+
};
|
|
1096
|
+
readonly Message: {
|
|
1097
|
+
readonly contentBg: "#FFFFFF";
|
|
1098
|
+
readonly contentPadding: "9px 12px";
|
|
1099
|
+
readonly zIndexPopup: 2010;
|
|
1100
|
+
};
|
|
1101
|
+
readonly Modal: {
|
|
1102
|
+
readonly contentBg: "#FFFFFF";
|
|
1103
|
+
readonly footerBg: "rgba(255, 255, 255, 0)";
|
|
1104
|
+
readonly headerBg: "#FFFFFF";
|
|
1105
|
+
readonly titleColor: "rgba(0, 0, 0, 0.88)";
|
|
1106
|
+
readonly titleFontSize: 16;
|
|
1107
|
+
readonly titleLineHeight: 1.5;
|
|
1108
|
+
};
|
|
1109
|
+
readonly Notification: {
|
|
1110
|
+
readonly colorErrorBg: "rgba(255, 255, 255, 0)";
|
|
1111
|
+
readonly colorInfoBg: "rgba(255, 255, 255, 0)";
|
|
1112
|
+
readonly colorSuccessBg: "rgba(255, 255, 255, 0)";
|
|
1113
|
+
readonly colorWarningBg: "rgba(255, 255, 255, 0)";
|
|
1114
|
+
readonly width: 384;
|
|
1115
|
+
readonly zIndexPopup: 2050;
|
|
1116
|
+
};
|
|
1117
|
+
readonly Popconfirm: {
|
|
1118
|
+
readonly zIndexPopup: 1060;
|
|
1119
|
+
};
|
|
1120
|
+
readonly Progress: {
|
|
1121
|
+
readonly "circleTextFontSize 2": "1.1666666666666667em";
|
|
1122
|
+
readonly circleTextColor: "rgba(0, 0, 0, 0.88)";
|
|
1123
|
+
readonly circleTextFontSize: "1em";
|
|
1124
|
+
readonly defaultColor: "#3496FF";
|
|
1125
|
+
readonly lineBorderRadius: 100;
|
|
1126
|
+
readonly remainingColor: "rgba(0, 0, 0, 0.06)";
|
|
1127
|
+
};
|
|
1128
|
+
readonly Result: {
|
|
1129
|
+
readonly extraMargin: "24px 0 0 0";
|
|
1130
|
+
readonly iconFontSize: 72;
|
|
1131
|
+
readonly subtitleFontSize: 14;
|
|
1132
|
+
readonly titleFontSize: 24;
|
|
1133
|
+
};
|
|
1134
|
+
readonly Skeleton: {
|
|
1135
|
+
readonly blockRadius: 4;
|
|
1136
|
+
readonly gradientFromColor: "rgba(0, 0, 0, 0.06)";
|
|
1137
|
+
readonly gradientToColor: "rgba(0, 0, 0, 0.15)";
|
|
1138
|
+
readonly paragraphLiHeight: 16;
|
|
1139
|
+
readonly paragraphMarginTop: 28;
|
|
1140
|
+
readonly titleHeight: 28;
|
|
1141
|
+
};
|
|
1142
|
+
readonly Spin: {
|
|
1143
|
+
readonly contentHeight: 400;
|
|
1144
|
+
readonly dotSize: 20;
|
|
1145
|
+
readonly dotSizeLG: 32;
|
|
1146
|
+
readonly dotSizeSM: 14;
|
|
1147
|
+
};
|
|
1148
|
+
readonly Collapse: {
|
|
1149
|
+
readonly borderlessContentBg: "rgba(255, 255, 255, 0)";
|
|
1150
|
+
readonly borderlessContentPadding: "4px 16px 16px";
|
|
1151
|
+
readonly contentBg: "#FFFFFF";
|
|
1152
|
+
readonly contentPadding: "16px 16px";
|
|
1153
|
+
readonly headerBg: "rgba(0, 0, 0, 0.02)";
|
|
1154
|
+
readonly headerPadding: "12px 16px";
|
|
1155
|
+
};
|
|
1156
|
+
readonly Listy: {
|
|
1157
|
+
readonly itemPaddingBlock: 12;
|
|
1158
|
+
readonly itemPaddingInline: 16;
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
export declare type TdComponentVariant = "outlined" | "solid" | "filled" | "text" | "link" | "dashed";
|
|
1163
|
+
|
|
1164
|
+
export declare const TdDarkColors: {
|
|
1165
|
+
readonly text: {
|
|
1166
|
+
readonly primary: "#FFFFFF";
|
|
1167
|
+
readonly secondary: "#B0BEC5";
|
|
1168
|
+
readonly disabled: "#78909C";
|
|
1169
|
+
readonly inverse: "#212121";
|
|
1170
|
+
};
|
|
1171
|
+
readonly background: {
|
|
1172
|
+
readonly default: "#121212";
|
|
1173
|
+
readonly paper: "#1E1E1E";
|
|
1174
|
+
readonly elevated: "#2C2C2C";
|
|
1175
|
+
};
|
|
1176
|
+
readonly border: {
|
|
1177
|
+
readonly default: "#424242";
|
|
1178
|
+
readonly focus: "#47AF74";
|
|
1179
|
+
readonly error: "#FF7875";
|
|
1180
|
+
};
|
|
1181
|
+
readonly primary: {
|
|
1182
|
+
readonly main: "#1F9E56";
|
|
1183
|
+
readonly light: "#47AF74";
|
|
1184
|
+
readonly dark: "#1A8548";
|
|
1185
|
+
readonly contrastText: "#FFFFFF";
|
|
1186
|
+
};
|
|
1187
|
+
readonly secondary: {
|
|
1188
|
+
readonly main: "#7B1FA2";
|
|
1189
|
+
readonly light: "#BA68C8";
|
|
1190
|
+
readonly dark: "#4A148C";
|
|
1191
|
+
readonly contrastText: "#FFFFFF";
|
|
1192
|
+
};
|
|
1193
|
+
readonly success: {
|
|
1194
|
+
readonly main: "#5FA43D";
|
|
1195
|
+
readonly light: "#7FB664";
|
|
1196
|
+
readonly dark: "#4C8331";
|
|
1197
|
+
readonly contrastText: "#FFFFFF";
|
|
1198
|
+
};
|
|
1199
|
+
readonly warning: {
|
|
1200
|
+
readonly main: "#FF9717";
|
|
1201
|
+
readonly light: "#FEA840";
|
|
1202
|
+
readonly dark: "#D07A12";
|
|
1203
|
+
readonly contrastText: "#FFFFFF";
|
|
1204
|
+
};
|
|
1205
|
+
readonly error: {
|
|
1206
|
+
readonly main: "#FF4D4F";
|
|
1207
|
+
readonly light: "#FF7875";
|
|
1208
|
+
readonly dark: "#CF1322";
|
|
1209
|
+
readonly contrastText: "#FFFFFF";
|
|
1210
|
+
};
|
|
1211
|
+
readonly info: {
|
|
1212
|
+
readonly main: "#3496FF";
|
|
1213
|
+
readonly light: "#5CB0FF";
|
|
1214
|
+
readonly dark: "#2173D9";
|
|
1215
|
+
readonly contrastText: "#FFFFFF";
|
|
1216
|
+
};
|
|
1217
|
+
readonly neutral: {
|
|
1218
|
+
readonly white: "#FFFFFF";
|
|
1219
|
+
readonly black: "#000000";
|
|
1220
|
+
readonly gray50: "#FAFAFA";
|
|
1221
|
+
readonly gray100: "#F5F5F5";
|
|
1222
|
+
readonly gray200: "#F0F0F0";
|
|
1223
|
+
readonly gray300: "#D9D9D9";
|
|
1224
|
+
readonly gray400: "#BFBFBF";
|
|
1225
|
+
readonly gray500: "#8C8C8C";
|
|
1226
|
+
readonly gray600: "#595959";
|
|
1227
|
+
readonly gray700: "#434343";
|
|
1228
|
+
readonly gray800: "#262626";
|
|
1229
|
+
readonly gray900: "#000000";
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1233
|
+
export declare const tdDarkTheme: ThemeConfig;
|
|
1234
|
+
|
|
1235
|
+
export declare const TdDatePicker: NamedExoticComponent<TdDatePickerProps>;
|
|
1236
|
+
|
|
1237
|
+
export declare interface TdDatePickerProps extends DatePickerProps {
|
|
1238
|
+
/** Field label */
|
|
1239
|
+
label?: ReactNode;
|
|
1240
|
+
/** Help or validation text. */
|
|
1241
|
+
help?: ReactNode;
|
|
1242
|
+
/** Required field */
|
|
1243
|
+
required?: boolean;
|
|
1244
|
+
/** Full width */
|
|
1245
|
+
fullWidth?: boolean;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
export declare type TdDirection = "ltr" | "rtl";
|
|
1249
|
+
|
|
1250
|
+
/** Validation rules exposed to consumers (schema-ready for future Zod integration) */
|
|
1251
|
+
export declare interface TdFieldRules {
|
|
1252
|
+
required?: boolean | string;
|
|
1253
|
+
min?: number | {
|
|
1254
|
+
value: number;
|
|
1255
|
+
message: string;
|
|
1256
|
+
};
|
|
1257
|
+
max?: number | {
|
|
1258
|
+
value: number;
|
|
1259
|
+
message: string;
|
|
1260
|
+
};
|
|
1261
|
+
minLength?: number | {
|
|
1262
|
+
value: number;
|
|
1263
|
+
message: string;
|
|
1264
|
+
};
|
|
1265
|
+
maxLength?: number | {
|
|
1266
|
+
value: number;
|
|
1267
|
+
message: string;
|
|
1268
|
+
};
|
|
1269
|
+
pattern?: RegExp | {
|
|
1270
|
+
value: RegExp;
|
|
1271
|
+
message: string;
|
|
1272
|
+
};
|
|
1273
|
+
validate?: Record<string, (value: unknown) => boolean | string> | ((value: unknown) => boolean | string);
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
export declare const TdFloatButton: NamedExoticComponent<TdFloatButtonProps>;
|
|
1277
|
+
|
|
1278
|
+
declare type TdFloatButtonAccessibleName = {
|
|
1279
|
+
children: NonNullable<ReactNode>;
|
|
1280
|
+
} | {
|
|
1281
|
+
"aria-label": string;
|
|
1282
|
+
} | {
|
|
1283
|
+
"aria-labelledby": string;
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
export declare type TdFloatButtonBadge = (typeof TdFloatButtonBadges)[keyof typeof TdFloatButtonBadges];
|
|
1287
|
+
|
|
1288
|
+
declare type TdFloatButtonBadgeProps = {
|
|
1289
|
+
/** Figma Badge Type. Defaults to none. */
|
|
1290
|
+
badge?: typeof TdFloatButtonBadges.none;
|
|
1291
|
+
badgeCount?: never;
|
|
1292
|
+
} | {
|
|
1293
|
+
badge: typeof TdFloatButtonBadges.count;
|
|
1294
|
+
/** Numeric count. Required only when badge is count. */
|
|
1295
|
+
badgeCount: number;
|
|
1296
|
+
} | {
|
|
1297
|
+
badge: typeof TdFloatButtonBadges.dot;
|
|
1298
|
+
badgeCount?: never;
|
|
1299
|
+
};
|
|
1300
|
+
|
|
1301
|
+
/** Figma Badge Type. `none` is the resting picture (no badge drawn). */
|
|
1302
|
+
export declare const TdFloatButtonBadges: {
|
|
1303
|
+
readonly none: "none";
|
|
1304
|
+
readonly count: "count";
|
|
1305
|
+
readonly dot: "dot";
|
|
1306
|
+
};
|
|
1307
|
+
|
|
1308
|
+
declare interface TdFloatButtonBaseProps extends Omit<FloatButtonProps, TdFloatButtonVisualProp> {
|
|
1309
|
+
/** Figma Primary. Defaults to default (white). */
|
|
1310
|
+
tone?: TdFloatButtonTone;
|
|
1311
|
+
/** Figma Square. Defaults to circle. */
|
|
1312
|
+
shape?: TdFloatButtonShape;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
export declare const TdFloatButtonGroup: NamedExoticComponent<TdFloatButtonGroupProps>;
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* Menu `children` are not the closed button's name.
|
|
1319
|
+
* Visible text uses content or description. A name is always required.
|
|
1320
|
+
*/
|
|
1321
|
+
declare type TdFloatButtonGroupAccessibleName = {
|
|
1322
|
+
content: NonNullable<ReactNode>;
|
|
1323
|
+
} | {
|
|
1324
|
+
description: NonNullable<ReactNode>;
|
|
1325
|
+
} | {
|
|
1326
|
+
"aria-label": string;
|
|
1327
|
+
} | {
|
|
1328
|
+
"aria-labelledby": string;
|
|
1329
|
+
};
|
|
1330
|
+
|
|
1331
|
+
declare interface TdFloatButtonGroupBaseProps extends Omit<FloatButtonGroupProps, TdFloatButtonGroupVisualProp> {
|
|
1332
|
+
/** Figma Primary. Defaults to default. Applied to the closed button, and to the open menu as specified. */
|
|
1333
|
+
tone?: TdFloatButtonTone;
|
|
1334
|
+
/** Figma Square. Defaults to circle. */
|
|
1335
|
+
shape?: TdFloatButtonShape;
|
|
1336
|
+
/**
|
|
1337
|
+
* Figma Open. Defaults to false.
|
|
1338
|
+
* Closed renders one button. Open renders the menu items and does not add a close icon.
|
|
1339
|
+
*/
|
|
1340
|
+
open?: boolean;
|
|
1341
|
+
onOpenChange?: (open: boolean) => void;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
/** Closed button requires content, description, aria-label, or aria-labelledby. */
|
|
1345
|
+
export declare type TdFloatButtonGroupProps = TdFloatButtonGroupBaseProps & TdFloatButtonGroupAccessibleName;
|
|
1346
|
+
|
|
1347
|
+
declare type TdFloatButtonGroupVisualProp = "type" | "shape" | "trigger" | "closeIcon" | "badge";
|
|
1348
|
+
|
|
1349
|
+
/** These buttons are icon-only unless they have visible content, so a name is always required. */
|
|
1350
|
+
export declare type TdFloatButtonProps = TdFloatButtonBaseProps & TdFloatButtonBadgeProps & TdFloatButtonAccessibleName;
|
|
1351
|
+
|
|
1352
|
+
export declare type TdFloatButtonShape = (typeof TdFloatButtonShapes)[keyof typeof TdFloatButtonShapes];
|
|
1353
|
+
|
|
1354
|
+
/** Figma Square axis. `circle` is Square=False. */
|
|
1355
|
+
export declare const TdFloatButtonShapes: {
|
|
1356
|
+
readonly circle: "circle";
|
|
1357
|
+
readonly square: "square";
|
|
1358
|
+
};
|
|
1359
|
+
|
|
1360
|
+
export declare type TdFloatButtonTone = (typeof TdFloatButtonTones)[keyof typeof TdFloatButtonTones];
|
|
1361
|
+
|
|
1362
|
+
/** Figma Primary axis. `default` is Primary=False. */
|
|
1363
|
+
export declare const TdFloatButtonTones: {
|
|
1364
|
+
readonly default: "default";
|
|
1365
|
+
readonly primary: "primary";
|
|
1366
|
+
};
|
|
1367
|
+
|
|
1368
|
+
declare type TdFloatButtonVisualProp = "type" | "shape" | "badge";
|
|
1369
|
+
|
|
1370
|
+
export declare const TdForm: typeof TdFormInner;
|
|
1371
|
+
|
|
1372
|
+
export declare const TdFormField: MemoExoticComponent<typeof TdFormFieldInner>;
|
|
1373
|
+
|
|
1374
|
+
/** Props injected into form-aware field components */
|
|
1375
|
+
export declare interface TdFormFieldBindingProps<TValue = unknown> {
|
|
1376
|
+
name?: string;
|
|
1377
|
+
value?: TValue;
|
|
1378
|
+
onChange?: (value: TValue) => void;
|
|
1379
|
+
onBlur?: () => void;
|
|
1380
|
+
error?: boolean;
|
|
1381
|
+
errorMessage?: string;
|
|
1382
|
+
inputRef?: React.Ref<HTMLInputElement>;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
declare function TdFormFieldInner({ name, rules, children, defaultValue }: TdFormFieldProps): JSX.Element | null;
|
|
1386
|
+
|
|
1387
|
+
export declare interface TdFormFieldProps {
|
|
1388
|
+
/** Field name (must match form values key) */
|
|
1389
|
+
name: string;
|
|
1390
|
+
/** Validation rules */
|
|
1391
|
+
rules?: TdFieldRules;
|
|
1392
|
+
/** Field component (TdInput, TdSelect, etc.) */
|
|
1393
|
+
children: ReactNode;
|
|
1394
|
+
/** Default value for this field */
|
|
1395
|
+
defaultValue?: unknown;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
declare function TdFormInner<T extends TdFormValues>({ onSubmit, defaultValues, children, id, className, mode, reValidateMode, }: TdFormProps<T>): JSX.Element;
|
|
1399
|
+
|
|
1400
|
+
export declare interface TdFormProps<T extends TdFormValues = TdFormValues> {
|
|
1401
|
+
/** Submit handler */
|
|
1402
|
+
onSubmit: TdFormSubmitHandler<T>;
|
|
1403
|
+
/** Default field values */
|
|
1404
|
+
defaultValues?: Partial<T>;
|
|
1405
|
+
/** Form children */
|
|
1406
|
+
children: ReactNode;
|
|
1407
|
+
/** Form id */
|
|
1408
|
+
id?: string;
|
|
1409
|
+
/** Additional class name */
|
|
1410
|
+
className?: string;
|
|
1411
|
+
/** Validation mode */
|
|
1412
|
+
mode?: "onSubmit" | "onBlur" | "onChange" | "onTouched" | "all";
|
|
1413
|
+
/** Revalidate mode after submit */
|
|
1414
|
+
reValidateMode?: "onSubmit" | "onBlur" | "onChange";
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/** Submit handler */
|
|
1418
|
+
export declare type TdFormSubmitHandler<T extends TdFormValues = TdFormValues> = (data: T) => void | Promise<void>;
|
|
1419
|
+
|
|
1420
|
+
/** Form values record */
|
|
1421
|
+
export declare type TdFormValues = Record<string, unknown>;
|
|
1422
|
+
|
|
1423
|
+
export declare const TdInput: NamedExoticComponent<TdInputProps>;
|
|
1424
|
+
|
|
1425
|
+
export declare interface TdInputProps extends InputProps {
|
|
1426
|
+
/** Field label */
|
|
1427
|
+
label?: ReactNode;
|
|
1428
|
+
/** Help or validation text below the input. */
|
|
1429
|
+
help?: ReactNode;
|
|
1430
|
+
/** Required field indicator */
|
|
1431
|
+
required?: boolean;
|
|
1432
|
+
/** Full width input */
|
|
1433
|
+
fullWidth?: boolean;
|
|
1434
|
+
/** Ref to the Ant Design input instance. */
|
|
1435
|
+
ref?: Ref<InputRef>;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
export declare const tdLightTheme: ThemeConfig;
|
|
1439
|
+
|
|
1440
|
+
export declare const TdLink: NamedExoticComponent<LinkProps>;
|
|
1441
|
+
|
|
1442
|
+
/** Ant Design `Typography.Link` props. */
|
|
1443
|
+
export declare type TdLinkProps = LinkProps;
|
|
1444
|
+
|
|
1445
|
+
export declare interface TdLocaleConfig {
|
|
1446
|
+
/** BCP 47 language tag, e.g. "en-US", "fa-IR" */
|
|
1447
|
+
locale?: string;
|
|
1448
|
+
/**
|
|
1449
|
+
* Calendar system used by date pickers.
|
|
1450
|
+
* Defaults to `jalali` for Persian locales (`fa`, `fa-IR`), otherwise `gregorian`.
|
|
1451
|
+
*/
|
|
1452
|
+
calendar?: TdCalendar;
|
|
1453
|
+
/** Future: translation namespace for component labels */
|
|
1454
|
+
namespace?: string;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
/** IRI-TAX Figma variables. Collection: map. Mode: Light. */
|
|
1458
|
+
export declare const TdMap: {
|
|
1459
|
+
readonly colorPrimaryBg: "#EDF7F1";
|
|
1460
|
+
readonly colorPrimaryBgHover: "#C5E6D3";
|
|
1461
|
+
readonly colorPrimaryBorder: "#98D2B1";
|
|
1462
|
+
readonly colorPrimaryBorderHover: "#70C193";
|
|
1463
|
+
readonly colorPrimaryHover: "#47AF74";
|
|
1464
|
+
readonly colorPrimaryBase: "#1F9E56";
|
|
1465
|
+
readonly colorPrimaryActive: "#1A8548";
|
|
1466
|
+
readonly colorPrimaryTextHover: "#47AF74";
|
|
1467
|
+
readonly colorPrimaryText: "#1F9E56";
|
|
1468
|
+
readonly colorPrimaryTextActive: "#1A8548";
|
|
1469
|
+
readonly colorSuccessBg: "#F4F9F1";
|
|
1470
|
+
readonly colorSuccessBgHover: "#D7E8CF";
|
|
1471
|
+
readonly colorSuccessBorder: "#B9D7AA";
|
|
1472
|
+
readonly colorSuccessBorderHover: "#9CC787";
|
|
1473
|
+
readonly colorSuccessHover: "#9CC787";
|
|
1474
|
+
readonly colorSuccessBase: "#5FA43D";
|
|
1475
|
+
readonly colorSuccessActive: "#4C8331";
|
|
1476
|
+
readonly colorSuccessTextHover: "#7FB664";
|
|
1477
|
+
readonly colorSuccessText: "#5FA43D";
|
|
1478
|
+
readonly colorSuccessTextActive: "#4C8331";
|
|
1479
|
+
readonly colorWarningBg: "#FFF6EC";
|
|
1480
|
+
readonly colorWarningBgHover: "#FFE4C2";
|
|
1481
|
+
readonly colorWarningBorder: "#FFD198";
|
|
1482
|
+
readonly colorWarningBorderHover: "#FEBE70";
|
|
1483
|
+
readonly colorWarningHover: "#FEBE70";
|
|
1484
|
+
readonly colorWarningBase: "#FF9717";
|
|
1485
|
+
readonly colorWarningActive: "#D07A12";
|
|
1486
|
+
readonly colorWarningTextHover: "#FEA840";
|
|
1487
|
+
readonly colorWarningText: "#FF9717";
|
|
1488
|
+
readonly colorWarningTextActive: "#D07A12";
|
|
1489
|
+
readonly colorErrorBg: "#FFF1F0";
|
|
1490
|
+
readonly colorErrorBgHover: "#FFF1F0";
|
|
1491
|
+
readonly colorErrorBorder: "#FFCCC7";
|
|
1492
|
+
readonly colorErrorBorderHover: "#FFA39E";
|
|
1493
|
+
readonly colorErrorHover: "#FF7875";
|
|
1494
|
+
readonly colorErrorBase: "#FF4D4F";
|
|
1495
|
+
readonly colorErrorActive: "#CF1322";
|
|
1496
|
+
readonly colorErrorTextHover: "#FF7875";
|
|
1497
|
+
readonly colorErrorText: "#FF4D4F";
|
|
1498
|
+
readonly colorErrorTextActive: "#CF1322";
|
|
1499
|
+
readonly colorInfoBg: "#F0FAFF";
|
|
1500
|
+
readonly colorInfoBgHover: "#D6EFFF";
|
|
1501
|
+
readonly colorInfoBorder: "#ADDDFF";
|
|
1502
|
+
readonly colorInfoBorderHover: "#85C8FF";
|
|
1503
|
+
readonly colorInfoHover: "#85C8FF";
|
|
1504
|
+
readonly colorInfoBase: "#3496FF";
|
|
1505
|
+
readonly colorInfoActive: "#2173D9";
|
|
1506
|
+
readonly colorInfoTextHover: "#5CB0FF";
|
|
1507
|
+
readonly colorInfoText: "#3496FF";
|
|
1508
|
+
readonly colorInfoTextActive: "#2173D9";
|
|
1509
|
+
readonly colorText: "rgba(0, 0, 0, 0.88)";
|
|
1510
|
+
readonly colorTextSecondary: "rgba(0, 0, 0, 0.65)";
|
|
1511
|
+
readonly colorTextTertiary: "rgba(0, 0, 0, 0.45)";
|
|
1512
|
+
readonly colorTextQuaternary: "rgba(0, 0, 0, 0.25)";
|
|
1513
|
+
readonly colorBorder: "#D9D9D9";
|
|
1514
|
+
readonly colorBorderSecondary: "#F0F0F0";
|
|
1515
|
+
readonly colorBorderDisabled: "#D9D9D9";
|
|
1516
|
+
readonly colorFill: "rgba(0, 0, 0, 0.15)";
|
|
1517
|
+
readonly colorFillSecondary: "rgba(0, 0, 0, 0.06)";
|
|
1518
|
+
readonly colorFillTertiary: "rgba(0, 0, 0, 0.04)";
|
|
1519
|
+
readonly colorFillQuaternary: "rgba(0, 0, 0, 0.02)";
|
|
1520
|
+
readonly colorBgLayout: "#F5F5F5";
|
|
1521
|
+
readonly colorBgContainer: "#FFFFFF";
|
|
1522
|
+
readonly colorBgElevated: "#FFFFFF";
|
|
1523
|
+
readonly colorBgSpotlight: "rgba(0, 0, 0, 0.85)";
|
|
1524
|
+
readonly colorBgMask: "rgba(0, 0, 0, 0.45)";
|
|
1525
|
+
readonly sizeXXL: 48;
|
|
1526
|
+
readonly sizeXL: 32;
|
|
1527
|
+
readonly sizeLG: 24;
|
|
1528
|
+
readonly sizeMD: 20;
|
|
1529
|
+
readonly sizeMS: 16;
|
|
1530
|
+
readonly size: 16;
|
|
1531
|
+
readonly sizeSM: 12;
|
|
1532
|
+
readonly sizeXS: 8;
|
|
1533
|
+
readonly sizeXXS: 4;
|
|
1534
|
+
readonly controlHeightLG: 40;
|
|
1535
|
+
readonly controlHeightSM: 24;
|
|
1536
|
+
readonly controlHeightXS: 16;
|
|
1537
|
+
readonly borderRadiusXS: 2;
|
|
1538
|
+
readonly borderRadiusSM: 4;
|
|
1539
|
+
readonly borderRadiusLG: 8;
|
|
1540
|
+
readonly borderRadiusXL: 12;
|
|
1541
|
+
readonly borderRadiusXXL: 16;
|
|
1542
|
+
readonly borderRadiusOuter: 4;
|
|
1543
|
+
readonly colorWhite: "#FFFFFF";
|
|
1544
|
+
readonly colorBlack: "#000000";
|
|
1545
|
+
readonly fontSizeXL: 20;
|
|
1546
|
+
readonly fontSizeLG: 16;
|
|
1547
|
+
readonly fontSizeSM: 12;
|
|
1548
|
+
readonly fontSizeXS: 11;
|
|
1549
|
+
readonly fontSizeXXS: 10;
|
|
1550
|
+
readonly fontSizeHeading1: 38;
|
|
1551
|
+
readonly fontSizeHeading2: 30;
|
|
1552
|
+
readonly fontSizeHeading3: 24;
|
|
1553
|
+
readonly fontSizeHeading4: 20;
|
|
1554
|
+
readonly fontSizeHeading5: 16;
|
|
1555
|
+
readonly lineHeight: 1.571;
|
|
1556
|
+
readonly lineHeightLG: 1.5;
|
|
1557
|
+
readonly lineHeightSM: 1.6666666666666667;
|
|
1558
|
+
readonly lineHeightHeading1: 1.211;
|
|
1559
|
+
readonly lineHeightHeading2: 1.267;
|
|
1560
|
+
readonly lineHeightHeading3: 1.333;
|
|
1561
|
+
readonly lineHeightHeading4: 1.4;
|
|
1562
|
+
readonly lineHeightHeading5: 1.5;
|
|
1563
|
+
readonly lineWidthBold: 2;
|
|
1564
|
+
readonly borderRadiusFull: 9999;
|
|
1565
|
+
readonly colorFillContrast: "rgba(0, 0, 0, 0.3)";
|
|
1566
|
+
readonly colorBgBlur: "rgba(255, 255, 255, 0)";
|
|
1567
|
+
readonly transparent: "rgba(255, 255, 255, 0)";
|
|
1568
|
+
readonly colorBgSolid: "#000000";
|
|
1569
|
+
readonly colorBgSolidHover: "rgba(0, 0, 0, 0.75)";
|
|
1570
|
+
readonly colorBgSolidActive: "rgba(0, 0, 0, 0.95)";
|
|
1571
|
+
readonly colorErrorBgFilledHover: "#FFDFDC";
|
|
1572
|
+
readonly colorErrorBgActive: "#FFCCC7";
|
|
1573
|
+
};
|
|
1574
|
+
|
|
1575
|
+
export declare type TdMapToken = typeof TdMap;
|
|
1576
|
+
|
|
1577
|
+
export declare const TdModal: NamedExoticComponent<ModalProps>;
|
|
1578
|
+
|
|
1579
|
+
export declare interface TdModalActionProps {
|
|
1580
|
+
children: ReactNode;
|
|
1581
|
+
/** Align actions */
|
|
1582
|
+
align?: "start" | "center" | "end";
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
export declare const TdModalActions: NamedExoticComponent<TdModalActionProps>;
|
|
1586
|
+
|
|
1587
|
+
export declare type TdModalProps = ModalProps;
|
|
1588
|
+
|
|
1589
|
+
/** IRI-TAX Figma variables. Collection: colors. Mode: Light. */
|
|
1590
|
+
export declare const TdPalette: {
|
|
1591
|
+
readonly brand: {
|
|
1592
|
+
readonly "1": "#EDF7F1";
|
|
1593
|
+
readonly "2": "#C5E6D3";
|
|
1594
|
+
readonly "3": "#98D2B1";
|
|
1595
|
+
readonly "4": "#70C193";
|
|
1596
|
+
readonly "5": "#47AF74";
|
|
1597
|
+
readonly "6": "#1F9E56";
|
|
1598
|
+
readonly "7": "#1A8548";
|
|
1599
|
+
readonly "8": "#146839";
|
|
1600
|
+
readonly "9": "#10512C";
|
|
1601
|
+
readonly "10": "#0A331C";
|
|
1602
|
+
};
|
|
1603
|
+
readonly error: {
|
|
1604
|
+
readonly "1": "#FFF1F0";
|
|
1605
|
+
readonly "2": "#FFCCC7";
|
|
1606
|
+
readonly "3": "#FFA39E";
|
|
1607
|
+
readonly "4": "#FF7875";
|
|
1608
|
+
readonly "5": "#FF4D4F";
|
|
1609
|
+
readonly "6": "#F5222D";
|
|
1610
|
+
readonly "7": "#CF1322";
|
|
1611
|
+
readonly "8": "#A8071A";
|
|
1612
|
+
readonly "9": "#820014";
|
|
1613
|
+
readonly "10": "#5C0011";
|
|
1614
|
+
};
|
|
1615
|
+
readonly warning: {
|
|
1616
|
+
readonly "1": "#FFF6EC";
|
|
1617
|
+
readonly "2": "#FFE4C2";
|
|
1618
|
+
readonly "3": "#FFD198";
|
|
1619
|
+
readonly "4": "#FEBE70";
|
|
1620
|
+
readonly "5": "#FEA840";
|
|
1621
|
+
readonly "6": "#FF9717";
|
|
1622
|
+
readonly "7": "#D07A12";
|
|
1623
|
+
readonly "8": "#A5610E";
|
|
1624
|
+
readonly "9": "#75450A";
|
|
1625
|
+
readonly "10": "#3F2505";
|
|
1626
|
+
};
|
|
1627
|
+
readonly info: {
|
|
1628
|
+
readonly "1": "#EEF5FD";
|
|
1629
|
+
readonly "2": "#C9E1FA";
|
|
1630
|
+
readonly "3": "#A6CEF6";
|
|
1631
|
+
readonly "4": "#7CB8F2";
|
|
1632
|
+
readonly "5": "#4C9DEE";
|
|
1633
|
+
readonly "6": "#2588EA";
|
|
1634
|
+
readonly "7": "#1E6EBE";
|
|
1635
|
+
readonly "8": "#185898";
|
|
1636
|
+
readonly "9": "#124373";
|
|
1637
|
+
readonly "10": "#0B2744";
|
|
1638
|
+
};
|
|
1639
|
+
readonly success: {
|
|
1640
|
+
readonly "1": "#F4F9F1";
|
|
1641
|
+
readonly "2": "#D7E8CF";
|
|
1642
|
+
readonly "3": "#B9D7AA";
|
|
1643
|
+
readonly "4": "#9CC787";
|
|
1644
|
+
readonly "5": "#7FB664";
|
|
1645
|
+
readonly "6": "#5FA43D";
|
|
1646
|
+
readonly "7": "#4C8331";
|
|
1647
|
+
readonly "8": "#3C6726";
|
|
1648
|
+
readonly "9": "#2B4A1B";
|
|
1649
|
+
readonly "10": "#192C10";
|
|
1650
|
+
};
|
|
1651
|
+
readonly gray: {
|
|
1652
|
+
readonly "1": "#FFFFFF";
|
|
1653
|
+
readonly "2": "#FAFAFA";
|
|
1654
|
+
readonly "3": "#F5F5F5";
|
|
1655
|
+
readonly "4": "#F0F0F0";
|
|
1656
|
+
readonly "5": "#D9D9D9";
|
|
1657
|
+
readonly "6": "#BFBFBF";
|
|
1658
|
+
readonly "7": "#8C8C8C";
|
|
1659
|
+
readonly "8": "#595959";
|
|
1660
|
+
readonly "9": "#434343";
|
|
1661
|
+
readonly "10": "#262626";
|
|
1662
|
+
};
|
|
1663
|
+
};
|
|
1664
|
+
|
|
1665
|
+
export declare type TdPaletteToken = typeof TdPalette;
|
|
1666
|
+
|
|
1667
|
+
export declare const TdParagraph: NamedExoticComponent<ParagraphProps>;
|
|
1668
|
+
|
|
1669
|
+
/** Ant Design `Typography.Paragraph` props. */
|
|
1670
|
+
export declare type TdParagraphProps = ParagraphProps;
|
|
1671
|
+
|
|
1672
|
+
export declare const TdRadio: NamedExoticComponent<TdRadioProps>;
|
|
1673
|
+
|
|
1674
|
+
export declare const TdRadioButton: NamedExoticComponent<RadioButtonProps & RefAttributes<CheckboxRef>>;
|
|
1675
|
+
|
|
1676
|
+
/** Button option rendered inside `TdRadioGroup`. */
|
|
1677
|
+
export declare type TdRadioButtonProps = ComponentPropsWithRef<typeof Radio.Button>;
|
|
1678
|
+
|
|
1679
|
+
export declare const TdRadioGroup: NamedExoticComponent<TdRadioGroupProps>;
|
|
1680
|
+
|
|
1681
|
+
export declare interface TdRadioGroupProps extends RadioGroupProps {
|
|
1682
|
+
/** Question shown above the options. */
|
|
1683
|
+
label?: ReactNode;
|
|
1684
|
+
/** Help or validation text. */
|
|
1685
|
+
help?: ReactNode;
|
|
1686
|
+
required?: boolean;
|
|
1687
|
+
status?: "error";
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
export declare interface TdRadioProps extends Omit<RadioProps, "children"> {
|
|
1691
|
+
/** Radio content. */
|
|
1692
|
+
label?: ReactNode;
|
|
1693
|
+
/** Help or validation text. */
|
|
1694
|
+
help?: ReactNode;
|
|
1695
|
+
required?: boolean;
|
|
1696
|
+
status?: "error";
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
export declare const TdRadius: {
|
|
1700
|
+
readonly none: 0;
|
|
1701
|
+
readonly xs: 2;
|
|
1702
|
+
readonly sm: 4;
|
|
1703
|
+
readonly md: 6;
|
|
1704
|
+
readonly lg: 8;
|
|
1705
|
+
readonly xl: 12;
|
|
1706
|
+
readonly full: 9999;
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
export declare type TdRadiusToken = typeof TdRadius;
|
|
1710
|
+
|
|
1711
|
+
/** IRI-TAX Figma variables. Collection: responsive. Modes: Mobile, Tablet, Desktop SM, and Desktop. */
|
|
1712
|
+
export declare const TdResponsive: {
|
|
1713
|
+
readonly device: {
|
|
1714
|
+
readonly Mobile: 480;
|
|
1715
|
+
readonly Tablet: 768;
|
|
1716
|
+
readonly "Desktop SM": 1024;
|
|
1717
|
+
readonly Desktop: 1440;
|
|
1718
|
+
};
|
|
1719
|
+
readonly deviceMin: {
|
|
1720
|
+
readonly Mobile: 320;
|
|
1721
|
+
readonly Tablet: 768;
|
|
1722
|
+
readonly "Desktop SM": 992;
|
|
1723
|
+
readonly Desktop: 1200;
|
|
1724
|
+
};
|
|
1725
|
+
readonly deviceMax: {
|
|
1726
|
+
readonly Mobile: 767;
|
|
1727
|
+
readonly Tablet: 991;
|
|
1728
|
+
readonly "Desktop SM": 1199;
|
|
1729
|
+
readonly Desktop: 1599;
|
|
1730
|
+
};
|
|
1731
|
+
readonly hideOnDesktop: {
|
|
1732
|
+
readonly Mobile: true;
|
|
1733
|
+
readonly Tablet: true;
|
|
1734
|
+
readonly "Desktop SM": true;
|
|
1735
|
+
readonly Desktop: false;
|
|
1736
|
+
};
|
|
1737
|
+
readonly hideOnDesktopSM: {
|
|
1738
|
+
readonly Mobile: true;
|
|
1739
|
+
readonly Tablet: true;
|
|
1740
|
+
readonly "Desktop SM": false;
|
|
1741
|
+
readonly Desktop: true;
|
|
1742
|
+
};
|
|
1743
|
+
readonly hideOnTablet: {
|
|
1744
|
+
readonly Mobile: true;
|
|
1745
|
+
readonly Tablet: false;
|
|
1746
|
+
readonly "Desktop SM": true;
|
|
1747
|
+
readonly Desktop: true;
|
|
1748
|
+
};
|
|
1749
|
+
readonly hideOnMobile: {
|
|
1750
|
+
readonly Mobile: false;
|
|
1751
|
+
readonly Tablet: true;
|
|
1752
|
+
readonly "Desktop SM": true;
|
|
1753
|
+
readonly Desktop: true;
|
|
1754
|
+
};
|
|
1755
|
+
readonly onlyDesktop: {
|
|
1756
|
+
readonly Mobile: false;
|
|
1757
|
+
readonly Tablet: false;
|
|
1758
|
+
readonly "Desktop SM": false;
|
|
1759
|
+
readonly Desktop: true;
|
|
1760
|
+
};
|
|
1761
|
+
readonly onlyDesktopSM: {
|
|
1762
|
+
readonly Mobile: false;
|
|
1763
|
+
readonly Tablet: false;
|
|
1764
|
+
readonly "Desktop SM": true;
|
|
1765
|
+
readonly Desktop: false;
|
|
1766
|
+
};
|
|
1767
|
+
readonly onlyTablet: {
|
|
1768
|
+
readonly Mobile: false;
|
|
1769
|
+
readonly Tablet: true;
|
|
1770
|
+
readonly "Desktop SM": false;
|
|
1771
|
+
readonly Desktop: false;
|
|
1772
|
+
};
|
|
1773
|
+
readonly onlyMobile: {
|
|
1774
|
+
readonly Mobile: true;
|
|
1775
|
+
readonly Tablet: false;
|
|
1776
|
+
readonly "Desktop SM": false;
|
|
1777
|
+
readonly Desktop: false;
|
|
1778
|
+
};
|
|
1779
|
+
readonly gutter: {
|
|
1780
|
+
readonly Mobile: 8;
|
|
1781
|
+
readonly Tablet: 12;
|
|
1782
|
+
readonly "Desktop SM": 16;
|
|
1783
|
+
readonly Desktop: 16;
|
|
1784
|
+
};
|
|
1785
|
+
readonly pageOffset: {
|
|
1786
|
+
readonly Mobile: 16;
|
|
1787
|
+
readonly Tablet: 16;
|
|
1788
|
+
readonly "Desktop SM": 24;
|
|
1789
|
+
readonly Desktop: 24;
|
|
1790
|
+
};
|
|
1791
|
+
};
|
|
1792
|
+
|
|
1793
|
+
export declare type TdResponsiveMode = keyof TdResponsiveToken["device"];
|
|
1794
|
+
|
|
1795
|
+
export declare type TdResponsiveToken = typeof TdResponsive;
|
|
1796
|
+
|
|
1797
|
+
/** IRI-TAX Figma variables. Collection: seed. Mode: Light. */
|
|
1798
|
+
export declare const TdSeed: {
|
|
1799
|
+
readonly colorPrimary: "#1F9E56";
|
|
1800
|
+
readonly colorSuccess: "#5FA43D";
|
|
1801
|
+
readonly colorWarning: "#FF9717";
|
|
1802
|
+
readonly colorError: "#FF4D4F";
|
|
1803
|
+
readonly colorInfo: "#3496FF";
|
|
1804
|
+
readonly colorTextBase: "#000000";
|
|
1805
|
+
readonly colorBgBase: "#FFFFFF";
|
|
1806
|
+
readonly sizeUnit: 4;
|
|
1807
|
+
readonly sizeStep: 4;
|
|
1808
|
+
readonly sizePopupArrow: 16;
|
|
1809
|
+
readonly controlHeight: 32;
|
|
1810
|
+
readonly opacityImage: 100;
|
|
1811
|
+
readonly fontFamily: "IRANSansX";
|
|
1812
|
+
readonly fontFamilyCode: "IRANSansX";
|
|
1813
|
+
readonly fontSize: 14;
|
|
1814
|
+
readonly lineWidth: 1;
|
|
1815
|
+
readonly borderRadius: 6;
|
|
1816
|
+
readonly zIndexPopupBase: 1000;
|
|
1817
|
+
readonly lineType: "solid";
|
|
1818
|
+
readonly motion: true;
|
|
1819
|
+
readonly motionBase: 0;
|
|
1820
|
+
readonly motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)";
|
|
1821
|
+
readonly motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)";
|
|
1822
|
+
readonly motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)";
|
|
1823
|
+
readonly motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)";
|
|
1824
|
+
readonly motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)";
|
|
1825
|
+
readonly motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)";
|
|
1826
|
+
readonly motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)";
|
|
1827
|
+
readonly motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)";
|
|
1828
|
+
readonly motionUnit: 0.1;
|
|
1829
|
+
readonly wireframe: false;
|
|
1830
|
+
};
|
|
1831
|
+
|
|
1832
|
+
export declare type TdSeedToken = typeof TdSeed;
|
|
1833
|
+
|
|
1834
|
+
export declare const TdSelect: typeof TdSelectInner;
|
|
1835
|
+
|
|
1836
|
+
declare function TdSelectInner<T extends string | number = string>({ label, help, required, fullWidth, status, style, id: idProp, ...props }: TdSelectProps<T>): JSX.Element;
|
|
1837
|
+
|
|
1838
|
+
export declare interface TdSelectOption<T extends string | number = string> {
|
|
1839
|
+
label: ReactNode;
|
|
1840
|
+
value: T;
|
|
1841
|
+
disabled?: boolean;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
export declare interface TdSelectProps<T extends string | number = string> extends Omit<SelectProps<T, TdSelectOption<T>>, "options"> {
|
|
1845
|
+
/** Field label */
|
|
1846
|
+
label?: ReactNode;
|
|
1847
|
+
/** Help or validation text. */
|
|
1848
|
+
help?: ReactNode;
|
|
1849
|
+
/** Required field */
|
|
1850
|
+
required?: boolean;
|
|
1851
|
+
/** Full width */
|
|
1852
|
+
fullWidth?: boolean;
|
|
1853
|
+
/** Ant Design options list. */
|
|
1854
|
+
options: TdSelectOption<T>[];
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
export declare const TdShadows: {
|
|
1858
|
+
readonly none: "none";
|
|
1859
|
+
readonly xs: "0px 1px 2px rgba(0, 0, 0, 0.05)";
|
|
1860
|
+
readonly sm: "0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)";
|
|
1861
|
+
readonly md: "0px 4px 6px rgba(0, 0, 0, 0.07), 0px 2px 4px rgba(0, 0, 0, 0.06)";
|
|
1862
|
+
readonly lg: "0px 10px 15px rgba(0, 0, 0, 0.1), 0px 4px 6px rgba(0, 0, 0, 0.05)";
|
|
1863
|
+
readonly xl: "0px 20px 25px rgba(0, 0, 0, 0.1), 0px 10px 10px rgba(0, 0, 0, 0.04)";
|
|
1864
|
+
readonly modal: "0px 24px 48px rgba(0, 0, 0, 0.16)";
|
|
1865
|
+
};
|
|
1866
|
+
|
|
1867
|
+
export declare type TdShadowToken = typeof TdShadows;
|
|
1868
|
+
|
|
1869
|
+
export declare const TdSkeleton: NamedExoticComponent<SkeletonProps>;
|
|
1870
|
+
|
|
1871
|
+
export declare const TdSkeletonAvatar: NamedExoticComponent<TdSkeletonAvatarProps>;
|
|
1872
|
+
|
|
1873
|
+
export declare interface TdSkeletonAvatarProps extends Omit<ComponentProps<typeof Skeleton.Avatar>, TdSkeletonAvatarVisualProp> {
|
|
1874
|
+
/** Figma Size. Defaults to default. */
|
|
1875
|
+
size?: TdSkeletonSize;
|
|
1876
|
+
/** Figma Shape. Defaults to circle. */
|
|
1877
|
+
shape?: TdSkeletonAvatarShape;
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
export declare type TdSkeletonAvatarShape = (typeof TdSkeletonAvatarShapes)[keyof typeof TdSkeletonAvatarShapes];
|
|
1881
|
+
|
|
1882
|
+
/** Figma Shape axis for skeleton avatar. */
|
|
1883
|
+
export declare const TdSkeletonAvatarShapes: {
|
|
1884
|
+
readonly circle: "circle";
|
|
1885
|
+
readonly square: "square";
|
|
1886
|
+
};
|
|
1887
|
+
|
|
1888
|
+
declare type TdSkeletonAvatarVisualProp = "size" | "shape";
|
|
1889
|
+
|
|
1890
|
+
export declare const TdSkeletonButton: NamedExoticComponent<TdSkeletonButtonProps>;
|
|
1891
|
+
|
|
1892
|
+
export declare interface TdSkeletonButtonProps extends Omit<ComponentProps<typeof Skeleton.Button>, TdSkeletonButtonVisualProp> {
|
|
1893
|
+
/** Figma Size. Defaults to default. */
|
|
1894
|
+
size?: TdSkeletonSize;
|
|
1895
|
+
/** Figma Shape. Defaults to default. */
|
|
1896
|
+
shape?: TdSkeletonButtonShape;
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
export declare type TdSkeletonButtonShape = (typeof TdSkeletonButtonShapes)[keyof typeof TdSkeletonButtonShapes];
|
|
1900
|
+
|
|
1901
|
+
/** Figma Shape axis for skeleton button. */
|
|
1902
|
+
export declare const TdSkeletonButtonShapes: {
|
|
1903
|
+
readonly default: "default";
|
|
1904
|
+
readonly square: "square";
|
|
1905
|
+
readonly round: "round";
|
|
1906
|
+
readonly circle: "circle";
|
|
1907
|
+
};
|
|
1908
|
+
|
|
1909
|
+
declare type TdSkeletonButtonVisualProp = "size" | "shape";
|
|
1910
|
+
|
|
1911
|
+
export declare const TdSkeletonImage: NamedExoticComponent<SkeletonImageProps>;
|
|
1912
|
+
|
|
1913
|
+
export declare type TdSkeletonImageProps = ComponentProps<typeof Skeleton.Image>;
|
|
1914
|
+
|
|
1915
|
+
export declare const TdSkeletonInput: NamedExoticComponent<TdSkeletonInputProps>;
|
|
1916
|
+
|
|
1917
|
+
export declare interface TdSkeletonInputProps extends Omit<ComponentProps<typeof Skeleton.Input>, TdSkeletonInputVisualProp> {
|
|
1918
|
+
/** Figma Size. Defaults to default. */
|
|
1919
|
+
size?: TdSkeletonSize;
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
declare type TdSkeletonInputVisualProp = "size";
|
|
1923
|
+
|
|
1924
|
+
export declare const TdSkeletonNode: NamedExoticComponent<SkeletonNodeProps>;
|
|
1925
|
+
|
|
1926
|
+
export declare type TdSkeletonNodeProps = ComponentProps<typeof Skeleton.Node>;
|
|
1927
|
+
|
|
1928
|
+
export declare type TdSkeletonProps = SkeletonProps;
|
|
1929
|
+
|
|
1930
|
+
export declare type TdSkeletonSize = (typeof TdSkeletonSizes)[keyof typeof TdSkeletonSizes];
|
|
1931
|
+
|
|
1932
|
+
/** Figma Size axis for skeleton button, input, and avatar. */
|
|
1933
|
+
export declare const TdSkeletonSizes: {
|
|
1934
|
+
readonly small: "small";
|
|
1935
|
+
readonly default: "default";
|
|
1936
|
+
readonly large: "large";
|
|
1937
|
+
};
|
|
1938
|
+
|
|
1939
|
+
export declare const TdSpacing: {
|
|
1940
|
+
readonly none: 0;
|
|
1941
|
+
readonly xxs: 2;
|
|
1942
|
+
readonly xs: 4;
|
|
1943
|
+
readonly sm: 8;
|
|
1944
|
+
readonly md: 16;
|
|
1945
|
+
readonly lg: 24;
|
|
1946
|
+
readonly xl: 32;
|
|
1947
|
+
readonly xxl: 48;
|
|
1948
|
+
readonly xxxl: 64;
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1951
|
+
export declare type TdSpacingKey = keyof TdSpacingToken;
|
|
1952
|
+
|
|
1953
|
+
export declare type TdSpacingToken = typeof TdSpacing;
|
|
1954
|
+
|
|
1955
|
+
export declare type TdStaticDarkToken = typeof TdStaticDarkTokens;
|
|
1956
|
+
|
|
1957
|
+
export declare const TdStaticDarkTokens: {
|
|
1958
|
+
readonly emptyImageColor1: "#3E3E3E";
|
|
1959
|
+
readonly emptyImageColor2: "#272727";
|
|
1960
|
+
readonly emptyImageColor3: "#4F4F4F";
|
|
1961
|
+
readonly emptyImageColor4: "#141414";
|
|
1962
|
+
readonly emptyImageColor5: "#303030";
|
|
1963
|
+
readonly emptyImageColor6: "#1D1D1D";
|
|
1964
|
+
readonly "test-will-be-removed-in-the-next-update": "#FFFFFF";
|
|
1965
|
+
readonly tooltipVerticalPadding: 6;
|
|
1966
|
+
readonly buttonPaddingHorizontal: 15;
|
|
1967
|
+
readonly buttonPaddingHorizontalSM: 7;
|
|
1968
|
+
readonly buttonIconOnlyFontSize: 16;
|
|
1969
|
+
readonly buttonIconOnlyFontSizeLG: 18;
|
|
1970
|
+
readonly buttonIconOnlyFontSizeSM: 14;
|
|
1971
|
+
readonly borderRadiusRound: 16;
|
|
1972
|
+
readonly borderRadiusRoundSM: 12;
|
|
1973
|
+
readonly borderRadiusRoundLG: 20;
|
|
1974
|
+
readonly buttonRoundPaddingHorizontal: 16;
|
|
1975
|
+
readonly buttonRoundPaddingHorizontalLG: 20;
|
|
1976
|
+
readonly buttonRoundPaddingHorizontalSM: 12;
|
|
1977
|
+
readonly tagPaddingHorizontal: 7;
|
|
1978
|
+
readonly tagIconSize: 10;
|
|
1979
|
+
readonly iconMarginInline: 3;
|
|
1980
|
+
readonly alertPaddingHorizontal: 12;
|
|
1981
|
+
readonly alertIconSizeLG: 24;
|
|
1982
|
+
readonly alertCloseIcon: 12;
|
|
1983
|
+
readonly alertIcon: 14;
|
|
1984
|
+
readonly messageContentHorizontal: 9;
|
|
1985
|
+
readonly messageIcon: 16;
|
|
1986
|
+
readonly switchHeight: 22;
|
|
1987
|
+
readonly switchHeightSM: 16;
|
|
1988
|
+
readonly switchPadding: 2;
|
|
1989
|
+
readonly switchPinSize: 18;
|
|
1990
|
+
readonly switchPinSizeActive: 22;
|
|
1991
|
+
readonly switchPinSizeSM: 12;
|
|
1992
|
+
readonly switchPinSizeSMActive: 14;
|
|
1993
|
+
readonly switchWidth: 44;
|
|
1994
|
+
readonly switchWidthSM: 28;
|
|
1995
|
+
readonly switchInnerMarginMin: 9;
|
|
1996
|
+
readonly switchInnerMarginMinSM: 6;
|
|
1997
|
+
readonly switchLoadingIconColor: "rgba(0, 0, 0, 0.65)";
|
|
1998
|
+
readonly borderRadiusSwitch: 100;
|
|
1999
|
+
readonly borderRadiusMax: 100;
|
|
2000
|
+
readonly borderRadiusSwitchHandle: 9;
|
|
2001
|
+
readonly switchIconSizeSM: 12;
|
|
2002
|
+
readonly switchIconSize: 14;
|
|
2003
|
+
readonly iconSize: 14;
|
|
2004
|
+
readonly codeBg: "rgba(150, 150, 150, 0.1)";
|
|
2005
|
+
readonly codeBorder: "rgba(100, 100, 100, 0.2)";
|
|
2006
|
+
readonly keyboardBg: "rgba(150, 150, 150, 0.06)";
|
|
2007
|
+
readonly keyboardBorder: "rgba(100, 100, 100, 0.2)";
|
|
2008
|
+
readonly codeAndKeyboardHorizontalMargin: 2;
|
|
2009
|
+
readonly codeAndKeyboardHorizontalPadding: 4;
|
|
2010
|
+
readonly codeAndKeyboardTopPadding: 2;
|
|
2011
|
+
readonly codeKeyboardRadius: 3;
|
|
2012
|
+
readonly codeAndKeyboardBottomPadding: 1;
|
|
2013
|
+
readonly badgeShadowColor: "#FFFFFF";
|
|
2014
|
+
readonly badgeShadowSize: 1;
|
|
2015
|
+
readonly badgeHeight: 20;
|
|
2016
|
+
readonly badgeHeightSM: 14;
|
|
2017
|
+
readonly badgeDotSize: 6;
|
|
2018
|
+
readonly badgeStatusSize: 6;
|
|
2019
|
+
readonly borderRadiusBadge: 10;
|
|
2020
|
+
readonly borderRadiusBadgeSM: 7;
|
|
2021
|
+
readonly spinDotSize: 20;
|
|
2022
|
+
readonly spinDotItemSize: 6.75;
|
|
2023
|
+
readonly spinDotItemSizeSM: 4.5;
|
|
2024
|
+
readonly spinDotItemSizeLG: 11.25;
|
|
2025
|
+
readonly spinDotSizeSM: 14;
|
|
2026
|
+
readonly spinDotSizeLG: 32;
|
|
2027
|
+
readonly notificationCloseButtonSize: 22;
|
|
2028
|
+
readonly notificationCloseIconSize: 14;
|
|
2029
|
+
readonly notificationNoticeIconSize: 24;
|
|
2030
|
+
readonly resultIconSize: 72;
|
|
2031
|
+
readonly resultVerticalPadding: 48;
|
|
2032
|
+
readonly resultContentHorizontalPadding: 40;
|
|
2033
|
+
readonly popConfirmIconSize: 14;
|
|
2034
|
+
readonly tourCloseSize: 22;
|
|
2035
|
+
readonly tourCoverVerticalPadding: 46;
|
|
2036
|
+
readonly tourIndicatorSize: 6;
|
|
2037
|
+
readonly tourMaskBg: "rgba(0, 0, 0, 0.5)";
|
|
2038
|
+
readonly avatarFontSizeBase: 18;
|
|
2039
|
+
readonly avatarFontSizeSM: 14;
|
|
2040
|
+
readonly avatarFontSizeLG: 24;
|
|
2041
|
+
readonly emptyImgHeight: 100;
|
|
2042
|
+
readonly emptyImgHeightMD: 40;
|
|
2043
|
+
readonly emptyImgHeightSM: 35;
|
|
2044
|
+
readonly QRCodeMaskBackgroundColor: "rgba(255, 255, 255, 0.96)";
|
|
2045
|
+
readonly QRCodeExpiredTextColor: "rgba(0, 0, 0, 0.88)";
|
|
2046
|
+
readonly carouselDotWidth: 16;
|
|
2047
|
+
readonly carouselDotHeight: 3;
|
|
2048
|
+
readonly carouselDotWidthActive: 24;
|
|
2049
|
+
readonly carouselArrowSize: 20;
|
|
2050
|
+
readonly carouselDotOffset: 12;
|
|
2051
|
+
readonly carouselArrowOffset: 25;
|
|
2052
|
+
readonly modalHeaderHeight: 56;
|
|
2053
|
+
readonly modalCloseBtnSize: 22;
|
|
2054
|
+
readonly modalCloseIconSize: 16;
|
|
2055
|
+
readonly modalConfirmIconSize: 22;
|
|
2056
|
+
readonly modalCloseButtonPosition: 17;
|
|
2057
|
+
readonly drawerCloseIcon: 24;
|
|
2058
|
+
readonly segmentedPaddingHorizontal: 11;
|
|
2059
|
+
readonly segmentedPaddingHorizontalSM: 7;
|
|
2060
|
+
readonly segmentedPadding: 2;
|
|
2061
|
+
readonly segmentedLabelMinHeight: 28;
|
|
2062
|
+
readonly segmentedLabelMinHeightLG: 36;
|
|
2063
|
+
readonly segmentedLabelMinHeightSM: 20;
|
|
2064
|
+
readonly segmentedItemGap: 6;
|
|
2065
|
+
readonly segmentedIcon: 14;
|
|
2066
|
+
readonly segmentedIconLG: 16;
|
|
2067
|
+
readonly radioSize: 16;
|
|
2068
|
+
readonly radioDotSize: 6;
|
|
2069
|
+
readonly radioDotPadding: 4;
|
|
2070
|
+
readonly radioButtonPaddingInline: 15;
|
|
2071
|
+
readonly radioButtonPaddingInlineSM: 7;
|
|
2072
|
+
readonly radioRadius: 8;
|
|
2073
|
+
readonly radioDotDisabledSize: 8;
|
|
2074
|
+
readonly radioButtonGroupPadding: 1;
|
|
2075
|
+
readonly radioButtonHeight: 30;
|
|
2076
|
+
readonly radioButtonHeightSM: 22;
|
|
2077
|
+
readonly radioButtonHeightLG: 38;
|
|
2078
|
+
readonly borderRadiusRadioButton: 5;
|
|
2079
|
+
readonly borderRadiusRadioButtonSM: 3;
|
|
2080
|
+
readonly borderRadiusRadioButtonLG: 7;
|
|
2081
|
+
readonly checkboxSize: 16;
|
|
2082
|
+
readonly checkboxIndeterminateSize: 8;
|
|
2083
|
+
readonly rateStarSize: 20;
|
|
2084
|
+
readonly timelineItemHeadSize: 10;
|
|
2085
|
+
readonly timelineItemPaddingBottom: 20;
|
|
2086
|
+
readonly itemTailHorizontalPadding: 4;
|
|
2087
|
+
readonly itemTailVerticalPadding: 10;
|
|
2088
|
+
readonly collapseExpandIconHeight: 22;
|
|
2089
|
+
readonly collapseExpandIconHeightLG: 24;
|
|
2090
|
+
readonly collapseExpandIconHeightSM: 20;
|
|
2091
|
+
readonly collapseExpandIconPaddingHorizontalStart: 4;
|
|
2092
|
+
readonly collapseExpandIconPaddingHorizontalStartSM: 4;
|
|
2093
|
+
readonly collapseExpandIconPaddingHorizontalStartLG: 8;
|
|
2094
|
+
readonly selectInputPaddingHorizontalBase: 11;
|
|
2095
|
+
readonly selectInputPaddingHorizontalSM: 7;
|
|
2096
|
+
readonly selectionItemPadding: 18;
|
|
2097
|
+
readonly selectionItemPaddingLG: 20;
|
|
2098
|
+
readonly selectionItemPaddingSM: 18;
|
|
2099
|
+
readonly selectTagItemEnd: 4;
|
|
2100
|
+
readonly selectDropdownItemVertical: 5;
|
|
2101
|
+
readonly selectDropdownItemGroupHorizontal: 24;
|
|
2102
|
+
readonly inputPaddingHorizontal: 11;
|
|
2103
|
+
readonly inputPaddingHorizontalSM: 7;
|
|
2104
|
+
readonly inputPaddingHorizontalLG: 11;
|
|
2105
|
+
readonly inputPaddingVertical: 4;
|
|
2106
|
+
readonly inputPaddingVerticalSM: 0;
|
|
2107
|
+
readonly inputPaddingVerticalLG: 7;
|
|
2108
|
+
readonly transparent: "rgba(0, 0, 0, 0)";
|
|
2109
|
+
readonly radiusNone: 0;
|
|
2110
|
+
readonly inputNumberHandleWidth: 22;
|
|
2111
|
+
readonly skeletonButtonWidth: 64;
|
|
2112
|
+
readonly skeletonInputWidth: 160;
|
|
2113
|
+
readonly skeletonButtonWidthLG: 80;
|
|
2114
|
+
readonly skeletonInputWidthLG: 200;
|
|
2115
|
+
readonly skeletonButtonWidthSM: 48;
|
|
2116
|
+
readonly skeletonInputWidthSM: 120;
|
|
2117
|
+
readonly colorPickerWidth: 234;
|
|
2118
|
+
readonly colorPickerHandlerSize: 16;
|
|
2119
|
+
readonly colorPickerHandlerSizeSM: 12;
|
|
2120
|
+
readonly colorPickerSliderHeight: 8;
|
|
2121
|
+
readonly colorPickerPreviewSize: 28;
|
|
2122
|
+
readonly paddingNone: 0;
|
|
2123
|
+
readonly colorPickerPresetColorSize: 18;
|
|
2124
|
+
readonly paginationItemPaddingInline: 6;
|
|
2125
|
+
readonly floatButtonBodyVerticalPadding: 2;
|
|
2126
|
+
readonly floatButtonBodyHorizontalPadding: 4;
|
|
2127
|
+
readonly floatButtonIconSize: 18;
|
|
2128
|
+
readonly marginNone: 0;
|
|
2129
|
+
readonly tabHorizontalSM: 6;
|
|
2130
|
+
readonly tabVerticalLG: 6;
|
|
2131
|
+
readonly tabCardGap: 2;
|
|
2132
|
+
readonly darkBtnTextHover: "rgba(255, 255, 255, 0.08)";
|
|
2133
|
+
readonly darkBtnFilled: "rgba(255, 255, 255, 0.08)";
|
|
2134
|
+
readonly darkBtnFilledHover: "rgba(255, 255, 255, 0.12)";
|
|
2135
|
+
readonly tooltipVerticalPaddingSM: 2;
|
|
2136
|
+
readonly colorTextLightSolidPrimary: "#FFFFFF";
|
|
2137
|
+
};
|
|
2138
|
+
|
|
2139
|
+
export declare type TdStaticToken = typeof TdStaticTokens;
|
|
2140
|
+
|
|
2141
|
+
/** IRI-TAX Figma variables. Collection: static. Light is TdStaticTokens. Dark overrides are TdStaticDarkTokens. */
|
|
2142
|
+
export declare const TdStaticTokens: {
|
|
2143
|
+
readonly tooltipVerticalPadding: 6;
|
|
2144
|
+
readonly buttonPaddingHorizontal: 15;
|
|
2145
|
+
readonly buttonPaddingHorizontalSM: 7;
|
|
2146
|
+
readonly buttonIconOnlyFontSize: 16;
|
|
2147
|
+
readonly buttonIconOnlyFontSizeLG: 18;
|
|
2148
|
+
readonly buttonIconOnlyFontSizeSM: 14;
|
|
2149
|
+
readonly borderRadiusRound: 16;
|
|
2150
|
+
readonly borderRadiusRoundSM: 12;
|
|
2151
|
+
readonly borderRadiusRoundLG: 20;
|
|
2152
|
+
readonly buttonRoundPaddingHorizontal: 16;
|
|
2153
|
+
readonly buttonRoundPaddingHorizontalLG: 20;
|
|
2154
|
+
readonly buttonRoundPaddingHorizontalSM: 12;
|
|
2155
|
+
readonly tagPaddingHorizontal: 7;
|
|
2156
|
+
readonly tagIconSize: 10;
|
|
2157
|
+
readonly iconMarginInline: 3;
|
|
2158
|
+
readonly alertPaddingHorizontal: 12;
|
|
2159
|
+
readonly alertIconSizeLG: 24;
|
|
2160
|
+
readonly alertCloseIcon: 12;
|
|
2161
|
+
readonly alertIcon: 14;
|
|
2162
|
+
readonly messageContentHorizontal: 9;
|
|
2163
|
+
readonly messageIcon: 16;
|
|
2164
|
+
readonly switchHeight: 22;
|
|
2165
|
+
readonly switchHeightSM: 16;
|
|
2166
|
+
readonly switchPadding: 2;
|
|
2167
|
+
readonly switchPinSize: 18;
|
|
2168
|
+
readonly switchPinSizeActive: 22;
|
|
2169
|
+
readonly switchPinSizeSM: 12;
|
|
2170
|
+
readonly switchPinSizeSMActive: 14;
|
|
2171
|
+
readonly switchWidth: 44;
|
|
2172
|
+
readonly switchWidthSM: 28;
|
|
2173
|
+
readonly switchInnerMarginMin: 9;
|
|
2174
|
+
readonly switchInnerMarginMinSM: 6;
|
|
2175
|
+
readonly switchLoadingIconColor: "rgba(0, 0, 0, 0.65)";
|
|
2176
|
+
readonly borderRadiusSwitch: 100;
|
|
2177
|
+
readonly borderRadiusMax: 100;
|
|
2178
|
+
readonly borderRadiusSwitchHandle: 9;
|
|
2179
|
+
readonly switchIconSizeSM: 12;
|
|
2180
|
+
readonly switchIconSize: 14;
|
|
2181
|
+
readonly iconSize: 14;
|
|
2182
|
+
readonly codeBg: "rgba(150, 150, 150, 0.1)";
|
|
2183
|
+
readonly codeBorder: "rgba(100, 100, 100, 0.2)";
|
|
2184
|
+
readonly keyboardBg: "rgba(150, 150, 150, 0.06)";
|
|
2185
|
+
readonly keyboardBorder: "rgba(100, 100, 100, 0.2)";
|
|
2186
|
+
readonly codeAndKeyboardHorizontalMargin: 2;
|
|
2187
|
+
readonly codeAndKeyboardHorizontalPadding: 4;
|
|
2188
|
+
readonly codeAndKeyboardTopPadding: 2;
|
|
2189
|
+
readonly codeKeyboardRadius: 3;
|
|
2190
|
+
readonly codeAndKeyboardBottomPadding: 1;
|
|
2191
|
+
readonly badgeShadowColor: "#FFFFFF";
|
|
2192
|
+
readonly badgeShadowSize: 1;
|
|
2193
|
+
readonly badgeHeight: 20;
|
|
2194
|
+
readonly badgeHeightSM: 14;
|
|
2195
|
+
readonly badgeDotSize: 6;
|
|
2196
|
+
readonly badgeStatusSize: 6;
|
|
2197
|
+
readonly borderRadiusBadge: 10;
|
|
2198
|
+
readonly borderRadiusBadgeSM: 7;
|
|
2199
|
+
readonly spinDotSize: 20;
|
|
2200
|
+
readonly spinDotItemSize: 6.75;
|
|
2201
|
+
readonly spinDotItemSizeSM: 4.5;
|
|
2202
|
+
readonly spinDotItemSizeLG: 11.25;
|
|
2203
|
+
readonly spinDotSizeSM: 14;
|
|
2204
|
+
readonly spinDotSizeLG: 32;
|
|
2205
|
+
readonly notificationCloseButtonSize: 22;
|
|
2206
|
+
readonly notificationCloseIconSize: 14;
|
|
2207
|
+
readonly notificationNoticeIconSize: 24;
|
|
2208
|
+
readonly resultIconSize: 72;
|
|
2209
|
+
readonly resultVerticalPadding: 48;
|
|
2210
|
+
readonly resultContentHorizontalPadding: 40;
|
|
2211
|
+
readonly popConfirmIconSize: 14;
|
|
2212
|
+
readonly tourCloseSize: 22;
|
|
2213
|
+
readonly tourCoverVerticalPadding: 46;
|
|
2214
|
+
readonly tourIndicatorSize: 6;
|
|
2215
|
+
readonly tourMaskBg: "rgba(0, 0, 0, 0.5)";
|
|
2216
|
+
readonly avatarFontSizeBase: 18;
|
|
2217
|
+
readonly avatarFontSizeSM: 14;
|
|
2218
|
+
readonly avatarFontSizeLG: 24;
|
|
2219
|
+
readonly emptyImgHeight: 100;
|
|
2220
|
+
readonly emptyImgHeightMD: 40;
|
|
2221
|
+
readonly emptyImgHeightSM: 35;
|
|
2222
|
+
readonly QRCodeMaskBackgroundColor: "rgba(255, 255, 255, 0.96)";
|
|
2223
|
+
readonly QRCodeExpiredTextColor: "rgba(0, 0, 0, 0.88)";
|
|
2224
|
+
readonly carouselDotWidth: 16;
|
|
2225
|
+
readonly carouselDotHeight: 3;
|
|
2226
|
+
readonly carouselDotWidthActive: 24;
|
|
2227
|
+
readonly carouselArrowSize: 20;
|
|
2228
|
+
readonly carouselDotOffset: 12;
|
|
2229
|
+
readonly carouselArrowOffset: 25;
|
|
2230
|
+
readonly modalHeaderHeight: 56;
|
|
2231
|
+
readonly modalCloseBtnSize: 22;
|
|
2232
|
+
readonly modalCloseIconSize: 16;
|
|
2233
|
+
readonly modalConfirmIconSize: 22;
|
|
2234
|
+
readonly modalCloseButtonPosition: 17;
|
|
2235
|
+
readonly drawerCloseIcon: 24;
|
|
2236
|
+
readonly segmentedPaddingHorizontal: 11;
|
|
2237
|
+
readonly segmentedPaddingHorizontalSM: 7;
|
|
2238
|
+
readonly segmentedPadding: 2;
|
|
2239
|
+
readonly segmentedLabelMinHeight: 28;
|
|
2240
|
+
readonly segmentedLabelMinHeightLG: 36;
|
|
2241
|
+
readonly segmentedLabelMinHeightSM: 20;
|
|
2242
|
+
readonly segmentedItemGap: 6;
|
|
2243
|
+
readonly segmentedIcon: 14;
|
|
2244
|
+
readonly segmentedIconLG: 16;
|
|
2245
|
+
readonly radioSize: 16;
|
|
2246
|
+
readonly radioDotSize: 6;
|
|
2247
|
+
readonly radioDotPadding: 4;
|
|
2248
|
+
readonly radioButtonPaddingInline: 15;
|
|
2249
|
+
readonly radioButtonPaddingInlineSM: 7;
|
|
2250
|
+
readonly radioRadius: 8;
|
|
2251
|
+
readonly radioDotDisabledSize: 8;
|
|
2252
|
+
readonly radioButtonGroupPadding: 1;
|
|
2253
|
+
readonly radioButtonHeight: 30;
|
|
2254
|
+
readonly radioButtonHeightSM: 22;
|
|
2255
|
+
readonly radioButtonHeightLG: 38;
|
|
2256
|
+
readonly borderRadiusRadioButton: 5;
|
|
2257
|
+
readonly borderRadiusRadioButtonSM: 3;
|
|
2258
|
+
readonly borderRadiusRadioButtonLG: 7;
|
|
2259
|
+
readonly checkboxSize: 16;
|
|
2260
|
+
readonly checkboxIndeterminateSize: 8;
|
|
2261
|
+
readonly rateStarSize: 20;
|
|
2262
|
+
readonly timelineItemHeadSize: 10;
|
|
2263
|
+
readonly timelineItemPaddingBottom: 20;
|
|
2264
|
+
readonly itemTailHorizontalPadding: 4;
|
|
2265
|
+
readonly itemTailVerticalPadding: 10;
|
|
2266
|
+
readonly collapseExpandIconHeight: 22;
|
|
2267
|
+
readonly collapseExpandIconHeightLG: 24;
|
|
2268
|
+
readonly collapseExpandIconHeightSM: 20;
|
|
2269
|
+
readonly collapseExpandIconPaddingHorizontalStart: 4;
|
|
2270
|
+
readonly collapseExpandIconPaddingHorizontalStartSM: 4;
|
|
2271
|
+
readonly collapseExpandIconPaddingHorizontalStartLG: 8;
|
|
2272
|
+
readonly selectInputPaddingHorizontalBase: 11;
|
|
2273
|
+
readonly selectInputPaddingHorizontalSM: 7;
|
|
2274
|
+
readonly selectionItemPadding: 18;
|
|
2275
|
+
readonly selectionItemPaddingLG: 20;
|
|
2276
|
+
readonly selectionItemPaddingSM: 18;
|
|
2277
|
+
readonly selectTagItemEnd: 4;
|
|
2278
|
+
readonly selectDropdownItemVertical: 5;
|
|
2279
|
+
readonly selectDropdownItemGroupHorizontal: 24;
|
|
2280
|
+
readonly inputPaddingHorizontal: 11;
|
|
2281
|
+
readonly inputPaddingHorizontalSM: 7;
|
|
2282
|
+
readonly inputPaddingHorizontalLG: 11;
|
|
2283
|
+
readonly inputPaddingVertical: 4;
|
|
2284
|
+
readonly inputPaddingVerticalSM: 0;
|
|
2285
|
+
readonly inputPaddingVerticalLG: 7;
|
|
2286
|
+
readonly transparent: "rgba(0, 0, 0, 0)";
|
|
2287
|
+
readonly radiusNone: 0;
|
|
2288
|
+
readonly inputNumberHandleWidth: 22;
|
|
2289
|
+
readonly skeletonButtonWidth: 64;
|
|
2290
|
+
readonly skeletonInputWidth: 160;
|
|
2291
|
+
readonly skeletonButtonWidthLG: 80;
|
|
2292
|
+
readonly skeletonInputWidthLG: 200;
|
|
2293
|
+
readonly skeletonButtonWidthSM: 48;
|
|
2294
|
+
readonly skeletonInputWidthSM: 120;
|
|
2295
|
+
readonly colorPickerWidth: 234;
|
|
2296
|
+
readonly colorPickerHandlerSize: 16;
|
|
2297
|
+
readonly colorPickerHandlerSizeSM: 12;
|
|
2298
|
+
readonly colorPickerSliderHeight: 8;
|
|
2299
|
+
readonly colorPickerPreviewSize: 28;
|
|
2300
|
+
readonly paddingNone: 0;
|
|
2301
|
+
readonly colorPickerPresetColorSize: 18;
|
|
2302
|
+
readonly paginationItemPaddingInline: 6;
|
|
2303
|
+
readonly floatButtonBodyVerticalPadding: 2;
|
|
2304
|
+
readonly floatButtonBodyHorizontalPadding: 4;
|
|
2305
|
+
readonly floatButtonIconSize: 18;
|
|
2306
|
+
readonly marginNone: 0;
|
|
2307
|
+
readonly tabHorizontalSM: 6;
|
|
2308
|
+
readonly tabVerticalLG: 6;
|
|
2309
|
+
readonly tabCardGap: 2;
|
|
2310
|
+
readonly darkBtnTextHover: "rgba(255, 255, 255, 0.08)";
|
|
2311
|
+
readonly darkBtnFilled: "rgba(255, 255, 255, 0.08)";
|
|
2312
|
+
readonly darkBtnFilledHover: "rgba(255, 255, 255, 0.12)";
|
|
2313
|
+
readonly tooltipVerticalPaddingSM: 2;
|
|
2314
|
+
readonly colorTextLightSolidPrimary: "#FFFFFF";
|
|
2315
|
+
readonly emptyImageColor1: "#D9D9D9";
|
|
2316
|
+
readonly emptyImageColor2: "#F5F5F5";
|
|
2317
|
+
readonly emptyImageColor3: "#BFBFBF";
|
|
2318
|
+
readonly emptyImageColor4: "#FFFFFF";
|
|
2319
|
+
readonly emptyImageColor5: "#F0F0F0";
|
|
2320
|
+
readonly emptyImageColor6: "#FAFAFA";
|
|
2321
|
+
readonly "test-will-be-removed-in-the-next-update": "#FF0000";
|
|
2322
|
+
};
|
|
2323
|
+
|
|
2324
|
+
export declare const TdTag: NamedExoticComponent<TdTagProps>;
|
|
2325
|
+
|
|
2326
|
+
export declare type TdTagColor = (typeof TdTagColors)[keyof typeof TdTagColors];
|
|
2327
|
+
|
|
2328
|
+
/** Figma Color axis. Status names live on `TdTagStatuses`. */
|
|
2329
|
+
export declare const TdTagColors: {
|
|
2330
|
+
readonly default: "default";
|
|
2331
|
+
readonly red: "red";
|
|
2332
|
+
readonly volcano: "volcano";
|
|
2333
|
+
readonly orange: "orange";
|
|
2334
|
+
readonly gold: "gold";
|
|
2335
|
+
readonly yellow: "yellow";
|
|
2336
|
+
readonly lime: "lime";
|
|
2337
|
+
readonly green: "green";
|
|
2338
|
+
readonly cyan: "cyan";
|
|
2339
|
+
readonly blue: "blue";
|
|
2340
|
+
readonly geekblue: "geekblue";
|
|
2341
|
+
readonly purple: "purple";
|
|
2342
|
+
readonly magenta: "magenta";
|
|
2343
|
+
};
|
|
2344
|
+
|
|
2345
|
+
declare type TdTagOwnedProp = "color" | "variant" | "bordered";
|
|
2346
|
+
|
|
2347
|
+
export declare interface TdTagProps extends Omit<TagProps, TdTagOwnedProp> {
|
|
2348
|
+
/** Figma Variant. Defaults to filled. Passed through to antd explicitly. */
|
|
2349
|
+
variant?: TdTagVariant;
|
|
2350
|
+
/** Palette color. Defaults to default. Not applied when `status` is not default. */
|
|
2351
|
+
color?: TdTagColor;
|
|
2352
|
+
/** Status color. Defaults to default. When set, this becomes antd `color`. */
|
|
2353
|
+
status?: TdTagStatus;
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
export declare type TdTagStatus = (typeof TdTagStatuses)[keyof typeof TdTagStatuses];
|
|
2357
|
+
|
|
2358
|
+
/** Figma Status axis. Applied as antd `color` when it is not default. */
|
|
2359
|
+
export declare const TdTagStatuses: {
|
|
2360
|
+
readonly default: "default";
|
|
2361
|
+
readonly success: "success";
|
|
2362
|
+
readonly processing: "processing";
|
|
2363
|
+
readonly error: "error";
|
|
2364
|
+
readonly warning: "warning";
|
|
2365
|
+
};
|
|
2366
|
+
|
|
2367
|
+
export declare type TdTagVariant = (typeof TdTagVariants)[keyof typeof TdTagVariants];
|
|
2368
|
+
|
|
2369
|
+
/** Figma Variant axis. Default is filled. */
|
|
2370
|
+
export declare const TdTagVariants: {
|
|
2371
|
+
readonly filled: "filled";
|
|
2372
|
+
readonly outlined: "outlined";
|
|
2373
|
+
readonly solid: "solid";
|
|
2374
|
+
};
|
|
2375
|
+
|
|
2376
|
+
export declare const TdText: NamedExoticComponent<TextProps>;
|
|
2377
|
+
|
|
2378
|
+
/** Ant Design `Typography.Text` props. */
|
|
2379
|
+
export declare type TdTextProps = TextProps;
|
|
2380
|
+
|
|
2381
|
+
export declare interface TdThemeConfig {
|
|
2382
|
+
mode?: TdThemeMode;
|
|
2383
|
+
direction?: TdDirection;
|
|
2384
|
+
locale?: TdLocaleConfig;
|
|
2385
|
+
/** Extend or override the base theme */
|
|
2386
|
+
themeOptions?: ThemeConfig;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
export declare interface TdThemeContextValue {
|
|
2390
|
+
mode: TdThemeMode;
|
|
2391
|
+
direction: TdDirection;
|
|
2392
|
+
locale: TdLocaleConfig;
|
|
2393
|
+
theme: ThemeConfig;
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
export declare type TdThemeMode = "light" | "dark";
|
|
2397
|
+
|
|
2398
|
+
export declare function TdThemeProvider({ children, mode, direction, locale, themeOptions, }: TdThemeProviderProps): JSX.Element;
|
|
2399
|
+
|
|
2400
|
+
export declare interface TdThemeProviderProps extends TdThemeConfig {
|
|
2401
|
+
children: ReactNode;
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
export declare const TdTitle: NamedExoticComponent<TitleProps>;
|
|
2405
|
+
|
|
2406
|
+
/** Ant Design `Typography.Title` props. */
|
|
2407
|
+
export declare type TdTitleProps = TitleProps;
|
|
2408
|
+
|
|
2409
|
+
export declare const TdTypography: {
|
|
2410
|
+
readonly fontFamily: {
|
|
2411
|
+
readonly primary: "\"IRANSansX\", sans-serif";
|
|
2412
|
+
readonly mono: "\"IRANSansX\", monospace";
|
|
2413
|
+
};
|
|
2414
|
+
readonly fontWeight: {
|
|
2415
|
+
readonly regular: 400;
|
|
2416
|
+
readonly medium: 500;
|
|
2417
|
+
readonly semibold: 600;
|
|
2418
|
+
readonly bold: 700;
|
|
2419
|
+
};
|
|
2420
|
+
readonly fontSize: {
|
|
2421
|
+
readonly xs: 11;
|
|
2422
|
+
readonly sm: 12;
|
|
2423
|
+
readonly md: 14;
|
|
2424
|
+
readonly lg: 16;
|
|
2425
|
+
readonly xl: 20;
|
|
2426
|
+
readonly xxl: 24;
|
|
2427
|
+
readonly xxxl: 38;
|
|
2428
|
+
};
|
|
2429
|
+
readonly lineHeight: {
|
|
2430
|
+
readonly tight: 1.211;
|
|
2431
|
+
readonly normal: 1.571;
|
|
2432
|
+
readonly relaxed: 1.6666666666666667;
|
|
2433
|
+
};
|
|
2434
|
+
readonly letterSpacing: {
|
|
2435
|
+
readonly tight: "-0.01em";
|
|
2436
|
+
readonly normal: "0";
|
|
2437
|
+
readonly wide: "0.02em";
|
|
2438
|
+
};
|
|
2439
|
+
};
|
|
2440
|
+
|
|
2441
|
+
export declare type TdTypographyToken = typeof TdTypography;
|
|
2442
|
+
|
|
2443
|
+
export declare const TdZIndex: {
|
|
2444
|
+
readonly base: 0;
|
|
2445
|
+
readonly dropdown: 1000;
|
|
2446
|
+
readonly sticky: 1100;
|
|
2447
|
+
readonly fixed: 1200;
|
|
2448
|
+
readonly modalBackdrop: 1300;
|
|
2449
|
+
readonly modal: 1400;
|
|
2450
|
+
readonly popover: 1500;
|
|
2451
|
+
readonly tooltip: 1600;
|
|
2452
|
+
readonly toast: 1700;
|
|
2453
|
+
};
|
|
2454
|
+
|
|
2455
|
+
export declare type TdZIndexToken = typeof TdZIndex;
|
|
2456
|
+
|
|
2457
|
+
export declare function useTdTheme(): TdThemeContextValue;
|
|
2458
|
+
|
|
2459
|
+
export declare function useTdThemeContext(): TdThemeContextValue | null;
|
|
2460
|
+
|
|
2461
|
+
export declare function useTdThemeMode(): Pick<TdThemeContextValue, "mode" | "direction">;
|
|
2462
|
+
|
|
2463
|
+
export { }
|