@khipu/design-system 0.1.0-alpha.12
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/LICENSE +21 -0
- package/README.md +296 -0
- package/dist/index.d.mts +1390 -0
- package/dist/index.d.ts +1390 -0
- package/dist/index.js +2276 -0
- package/dist/index.mjs +2178 -0
- package/dist/khipu-logo-color-TV75AKOV.svg +19 -0
- package/package.json +125 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,1390 @@
|
|
|
1
|
+
import * as _mui_material_styles from '@mui/material/styles';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
import { ButtonProps } from '@mui/material/Button';
|
|
6
|
+
import { TextFieldProps } from '@mui/material/TextField';
|
|
7
|
+
import { CheckboxProps } from '@mui/material/Checkbox';
|
|
8
|
+
import { DialogProps } from '@mui/material/Dialog';
|
|
9
|
+
import { CardProps } from '@mui/material/Card';
|
|
10
|
+
import { CardHeaderProps } from '@mui/material/CardHeader';
|
|
11
|
+
import { CardContentProps } from '@mui/material/CardContent';
|
|
12
|
+
import { CardActionsProps } from '@mui/material/CardActions';
|
|
13
|
+
import { CircularProgressProps } from '@mui/material/CircularProgress';
|
|
14
|
+
import { LinearProgressProps } from '@mui/material/LinearProgress';
|
|
15
|
+
import { AlertProps } from '@mui/material/Alert';
|
|
16
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
17
|
+
import { TabsProps } from '@mui/material/Tabs';
|
|
18
|
+
import { TabProps } from '@mui/material/Tab';
|
|
19
|
+
import { BoxProps } from '@mui/material/Box';
|
|
20
|
+
export { default as Box, BoxProps } from '@mui/material/Box';
|
|
21
|
+
import { IconButtonProps } from '@mui/material/IconButton';
|
|
22
|
+
export { default as IconButton, IconButtonProps } from '@mui/material/IconButton';
|
|
23
|
+
export { default as InputAdornment, InputAdornmentProps } from '@mui/material/InputAdornment';
|
|
24
|
+
export { default as Divider, DividerProps } from '@mui/material/Divider';
|
|
25
|
+
export { default as Link, LinkProps } from '@mui/material/Link';
|
|
26
|
+
export { default as Stack, StackProps } from '@mui/material/Stack';
|
|
27
|
+
export { default as Grid, GridProps } from '@mui/material/Grid';
|
|
28
|
+
export { default as Container, ContainerProps } from '@mui/material/Container';
|
|
29
|
+
export { default as SearchIcon } from '@mui/icons-material/Search';
|
|
30
|
+
export { default as ChevronRightIcon } from '@mui/icons-material/ChevronRight';
|
|
31
|
+
export { default as ChevronLeftIcon } from '@mui/icons-material/ChevronLeft';
|
|
32
|
+
export { default as CloseIcon } from '@mui/icons-material/Close';
|
|
33
|
+
export { default as CheckIcon } from '@mui/icons-material/Check';
|
|
34
|
+
export { default as CheckCircleIcon } from '@mui/icons-material/CheckCircle';
|
|
35
|
+
export { default as PersonIcon } from '@mui/icons-material/Person';
|
|
36
|
+
export { default as LockIcon } from '@mui/icons-material/Lock';
|
|
37
|
+
export { default as LockOutlinedIcon } from '@mui/icons-material/LockOutlined';
|
|
38
|
+
export { default as MailOutlineIcon } from '@mui/icons-material/MailOutline';
|
|
39
|
+
export { default as ExpandMoreIcon } from '@mui/icons-material/ExpandMore';
|
|
40
|
+
export { default as ExpandLessIcon } from '@mui/icons-material/ExpandLess';
|
|
41
|
+
export { default as InfoIcon } from '@mui/icons-material/Info';
|
|
42
|
+
export { default as WarningIcon } from '@mui/icons-material/Warning';
|
|
43
|
+
export { default as ErrorIcon } from '@mui/icons-material/Error';
|
|
44
|
+
export { default as VisibilityIcon } from '@mui/icons-material/Visibility';
|
|
45
|
+
export { default as VisibilityOffIcon } from '@mui/icons-material/VisibilityOff';
|
|
46
|
+
|
|
47
|
+
declare const khipuTheme: _mui_material_styles.Theme;
|
|
48
|
+
|
|
49
|
+
type KhipuTheme = typeof khipuTheme;
|
|
50
|
+
|
|
51
|
+
interface KhipuThemeProviderProps {
|
|
52
|
+
/** Child components */
|
|
53
|
+
children: React__default.ReactNode;
|
|
54
|
+
/** Include CSS baseline reset */
|
|
55
|
+
includeCssBaseline?: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Provides the Khipu design system theme to all child components.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```tsx
|
|
62
|
+
* import { KhipuThemeProvider } from '@khipu/design-system';
|
|
63
|
+
*
|
|
64
|
+
* function App() {
|
|
65
|
+
* return (
|
|
66
|
+
* <KhipuThemeProvider>
|
|
67
|
+
* <YourApp />
|
|
68
|
+
* </KhipuThemeProvider>
|
|
69
|
+
* );
|
|
70
|
+
* }
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
declare function KhipuThemeProvider({ children, includeCssBaseline, }: KhipuThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Default color export (light mode for backward compatibility)
|
|
77
|
+
*
|
|
78
|
+
* @deprecated Use `colorsByMode.light` or `colorsByMode.dark` instead
|
|
79
|
+
* This export maintains backward compatibility with existing code.
|
|
80
|
+
*/
|
|
81
|
+
declare const colors: {
|
|
82
|
+
readonly success: {
|
|
83
|
+
readonly main: "#2E7D32";
|
|
84
|
+
readonly light: "#4CAF50";
|
|
85
|
+
readonly dark: "#1B5E20";
|
|
86
|
+
readonly contrastText: "#FFFFFF";
|
|
87
|
+
};
|
|
88
|
+
readonly warning: {
|
|
89
|
+
readonly main: "#ED6C02";
|
|
90
|
+
readonly light: "#FF9800";
|
|
91
|
+
readonly dark: "#E65100";
|
|
92
|
+
readonly contrastText: "#FFFFFF";
|
|
93
|
+
};
|
|
94
|
+
readonly error: {
|
|
95
|
+
readonly main: "#D32F2F";
|
|
96
|
+
readonly light: "#EF5350";
|
|
97
|
+
readonly dark: "#C62828";
|
|
98
|
+
readonly contrastText: "#FFFFFF";
|
|
99
|
+
};
|
|
100
|
+
readonly info: {
|
|
101
|
+
readonly main: "#0288D1";
|
|
102
|
+
readonly light: "#03A9F4";
|
|
103
|
+
readonly dark: "#01579B";
|
|
104
|
+
readonly contrastText: "#FFFFFF";
|
|
105
|
+
};
|
|
106
|
+
readonly primary: {
|
|
107
|
+
readonly main: "#4CAF50";
|
|
108
|
+
readonly light: "#81C784";
|
|
109
|
+
readonly dark: "#388E3C";
|
|
110
|
+
readonly contrastText: "#FFFFFF";
|
|
111
|
+
readonly states: {
|
|
112
|
+
readonly hover: "rgba(131, 71, 173, 0.04)";
|
|
113
|
+
readonly selected: "rgba(131, 71, 173, 0.08)";
|
|
114
|
+
readonly focus: "rgba(131, 71, 173, 0.12)";
|
|
115
|
+
readonly focusVisible: "rgba(131, 71, 173, 0.30)";
|
|
116
|
+
readonly outlinedBorder: "rgba(131, 71, 173, 0.50)";
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
readonly secondary: {
|
|
120
|
+
readonly main: "#3CB4E5";
|
|
121
|
+
readonly light: "#6AC6EB";
|
|
122
|
+
readonly dark: "#198EBE";
|
|
123
|
+
readonly contrastText: "#FFFFFF";
|
|
124
|
+
};
|
|
125
|
+
readonly text: {
|
|
126
|
+
readonly primary: "rgba(0, 0, 0, 0.87)";
|
|
127
|
+
readonly secondary: "rgba(0, 0, 0, 0.60)";
|
|
128
|
+
readonly disabled: "rgba(0, 0, 0, 0.38)";
|
|
129
|
+
readonly hint: "rgba(0, 0, 0, 0.38)";
|
|
130
|
+
};
|
|
131
|
+
readonly background: {
|
|
132
|
+
readonly default: "#FFFFFF";
|
|
133
|
+
readonly paper: "#FFFFFF";
|
|
134
|
+
readonly elevated: "#FAFAFA";
|
|
135
|
+
};
|
|
136
|
+
readonly action: {
|
|
137
|
+
readonly active: "rgba(0, 0, 0, 0.56)";
|
|
138
|
+
readonly hover: "rgba(0, 0, 0, 0.04)";
|
|
139
|
+
readonly selected: "rgba(0, 0, 0, 0.08)";
|
|
140
|
+
readonly disabled: "rgba(0, 0, 0, 0.38)";
|
|
141
|
+
readonly disabledBackground: "rgba(0, 0, 0, 0.12)";
|
|
142
|
+
readonly focus: "rgba(0, 0, 0, 0.12)";
|
|
143
|
+
};
|
|
144
|
+
readonly divider: "rgba(0, 0, 0, 0.12)";
|
|
145
|
+
readonly components: {
|
|
146
|
+
readonly input: {
|
|
147
|
+
readonly outlined: {
|
|
148
|
+
readonly enabledBorder: "rgba(0, 0, 0, 0.23)";
|
|
149
|
+
readonly hoverBorder: "rgba(0, 0, 0, 0.87)";
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
declare const fontFamilies: {
|
|
155
|
+
readonly primary: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
156
|
+
readonly secondary: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
157
|
+
readonly mono: "\"Roboto Mono\", \"SF Mono\", \"Monaco\", monospace";
|
|
158
|
+
};
|
|
159
|
+
declare const fontWeights: {
|
|
160
|
+
readonly light: 300;
|
|
161
|
+
readonly regular: 400;
|
|
162
|
+
readonly medium: 500;
|
|
163
|
+
readonly semiBold: 600;
|
|
164
|
+
readonly bold: 700;
|
|
165
|
+
};
|
|
166
|
+
declare const fontSizes: {
|
|
167
|
+
readonly xs: "0.75rem";
|
|
168
|
+
readonly sm: "0.875rem";
|
|
169
|
+
readonly base: "1rem";
|
|
170
|
+
readonly lg: "1.125rem";
|
|
171
|
+
readonly xl: "1.25rem";
|
|
172
|
+
readonly '2xl': "1.5rem";
|
|
173
|
+
readonly '3xl': "1.875rem";
|
|
174
|
+
readonly '4xl': "2.25rem";
|
|
175
|
+
};
|
|
176
|
+
declare const lineHeights: {
|
|
177
|
+
readonly tight: 1.2;
|
|
178
|
+
readonly snug: 1.375;
|
|
179
|
+
readonly normal: 1.5;
|
|
180
|
+
readonly relaxed: 1.66;
|
|
181
|
+
readonly loose: 2;
|
|
182
|
+
};
|
|
183
|
+
declare const letterSpacings: {
|
|
184
|
+
readonly tighter: "-0.05em";
|
|
185
|
+
readonly tight: "-0.025em";
|
|
186
|
+
readonly normal: "0.15px";
|
|
187
|
+
readonly wide: "0.4px";
|
|
188
|
+
readonly wider: "0.46px";
|
|
189
|
+
readonly widest: "1px";
|
|
190
|
+
};
|
|
191
|
+
declare const typography: {
|
|
192
|
+
readonly h1: {
|
|
193
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
194
|
+
readonly fontWeight: 700;
|
|
195
|
+
readonly fontSize: "2.5rem";
|
|
196
|
+
readonly lineHeight: 1.2;
|
|
197
|
+
readonly letterSpacing: "-0.01562em";
|
|
198
|
+
};
|
|
199
|
+
readonly h2: {
|
|
200
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
201
|
+
readonly fontWeight: 700;
|
|
202
|
+
readonly fontSize: "2rem";
|
|
203
|
+
readonly lineHeight: 1.2;
|
|
204
|
+
readonly letterSpacing: "-0.00833em";
|
|
205
|
+
};
|
|
206
|
+
readonly h3: {
|
|
207
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
208
|
+
readonly fontWeight: 600;
|
|
209
|
+
readonly fontSize: "1.75rem";
|
|
210
|
+
readonly lineHeight: 1.2;
|
|
211
|
+
readonly letterSpacing: "0em";
|
|
212
|
+
};
|
|
213
|
+
readonly h4: {
|
|
214
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
215
|
+
readonly fontWeight: 600;
|
|
216
|
+
readonly fontSize: "1.5rem";
|
|
217
|
+
readonly lineHeight: 1.235;
|
|
218
|
+
readonly letterSpacing: "0.00735em";
|
|
219
|
+
};
|
|
220
|
+
readonly h5: {
|
|
221
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
222
|
+
readonly fontWeight: 600;
|
|
223
|
+
readonly fontSize: "1.25rem";
|
|
224
|
+
readonly lineHeight: 1.334;
|
|
225
|
+
readonly letterSpacing: "0em";
|
|
226
|
+
};
|
|
227
|
+
readonly h6: {
|
|
228
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
229
|
+
readonly fontWeight: 600;
|
|
230
|
+
readonly fontSize: "1.25rem";
|
|
231
|
+
readonly lineHeight: "32px";
|
|
232
|
+
readonly letterSpacing: "0.15px";
|
|
233
|
+
};
|
|
234
|
+
readonly subtitle1: {
|
|
235
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
236
|
+
readonly fontWeight: 400;
|
|
237
|
+
readonly fontSize: "1rem";
|
|
238
|
+
readonly lineHeight: 1.75;
|
|
239
|
+
readonly letterSpacing: "0.00938em";
|
|
240
|
+
};
|
|
241
|
+
readonly subtitle2: {
|
|
242
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
243
|
+
readonly fontWeight: 500;
|
|
244
|
+
readonly fontSize: "0.875rem";
|
|
245
|
+
readonly lineHeight: 1.57;
|
|
246
|
+
readonly letterSpacing: "0.00714em";
|
|
247
|
+
};
|
|
248
|
+
readonly body1: {
|
|
249
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
250
|
+
readonly fontWeight: 400;
|
|
251
|
+
readonly fontSize: "1rem";
|
|
252
|
+
readonly lineHeight: 1.5;
|
|
253
|
+
readonly letterSpacing: "0.15px";
|
|
254
|
+
};
|
|
255
|
+
readonly body2: {
|
|
256
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
257
|
+
readonly fontWeight: 400;
|
|
258
|
+
readonly fontSize: "0.875rem";
|
|
259
|
+
readonly lineHeight: 1.43;
|
|
260
|
+
readonly letterSpacing: "0.01071em";
|
|
261
|
+
};
|
|
262
|
+
readonly button: {
|
|
263
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
264
|
+
readonly fontWeight: 500;
|
|
265
|
+
readonly fontSize: "0.9375rem";
|
|
266
|
+
readonly lineHeight: "26px";
|
|
267
|
+
readonly letterSpacing: "0.46px";
|
|
268
|
+
readonly textTransform: "uppercase";
|
|
269
|
+
};
|
|
270
|
+
readonly caption: {
|
|
271
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
272
|
+
readonly fontWeight: 400;
|
|
273
|
+
readonly fontSize: "0.75rem";
|
|
274
|
+
readonly lineHeight: 1.66;
|
|
275
|
+
readonly letterSpacing: "0.4px";
|
|
276
|
+
};
|
|
277
|
+
readonly overline: {
|
|
278
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
279
|
+
readonly fontWeight: 400;
|
|
280
|
+
readonly fontSize: "0.75rem";
|
|
281
|
+
readonly lineHeight: "15px";
|
|
282
|
+
readonly letterSpacing: "1px";
|
|
283
|
+
readonly textTransform: "uppercase";
|
|
284
|
+
};
|
|
285
|
+
readonly inputValue: {
|
|
286
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
287
|
+
readonly fontWeight: 400;
|
|
288
|
+
readonly fontSize: "1rem";
|
|
289
|
+
readonly lineHeight: "24px";
|
|
290
|
+
readonly letterSpacing: "0.15px";
|
|
291
|
+
};
|
|
292
|
+
readonly inputLabel: {
|
|
293
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
294
|
+
readonly fontWeight: 400;
|
|
295
|
+
readonly fontSize: "0.75rem";
|
|
296
|
+
readonly lineHeight: "12px";
|
|
297
|
+
readonly letterSpacing: "0.15px";
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
declare const spacing: {
|
|
301
|
+
readonly 0: "0px";
|
|
302
|
+
readonly 1: "8px";
|
|
303
|
+
readonly 2: "16px";
|
|
304
|
+
readonly 3: "24px";
|
|
305
|
+
readonly 4: "32px";
|
|
306
|
+
readonly 5: "40px";
|
|
307
|
+
readonly 6: "48px";
|
|
308
|
+
readonly 7: "56px";
|
|
309
|
+
readonly 8: "64px";
|
|
310
|
+
readonly 9: "72px";
|
|
311
|
+
readonly 10: "80px";
|
|
312
|
+
readonly 11: "88px";
|
|
313
|
+
readonly 12: "96px";
|
|
314
|
+
};
|
|
315
|
+
declare const semanticSpacing: {
|
|
316
|
+
readonly card: {
|
|
317
|
+
readonly paddingY: "10px";
|
|
318
|
+
readonly paddingX: "20px";
|
|
319
|
+
readonly padding: "10px 20px";
|
|
320
|
+
readonly gap: "16px";
|
|
321
|
+
readonly listGap: "12px";
|
|
322
|
+
};
|
|
323
|
+
readonly box: {
|
|
324
|
+
readonly paddingY: "32px";
|
|
325
|
+
readonly paddingX: "20px";
|
|
326
|
+
readonly padding: "32px 20px";
|
|
327
|
+
};
|
|
328
|
+
readonly input: {
|
|
329
|
+
readonly paddingY: "16px";
|
|
330
|
+
readonly paddingX: "12px";
|
|
331
|
+
readonly padding: "16px 12px";
|
|
332
|
+
};
|
|
333
|
+
readonly button: {
|
|
334
|
+
readonly paddingY: "8px";
|
|
335
|
+
readonly paddingX: "22px";
|
|
336
|
+
readonly padding: "8px 22px";
|
|
337
|
+
};
|
|
338
|
+
readonly sectionGap: "32px";
|
|
339
|
+
readonly formGap: "20px";
|
|
340
|
+
readonly inlineGap: "8px";
|
|
341
|
+
readonly stackGap: "16px";
|
|
342
|
+
readonly modalPadding: "24px";
|
|
343
|
+
};
|
|
344
|
+
declare const borderRadius: {
|
|
345
|
+
readonly none: "0px";
|
|
346
|
+
readonly sm: "4px";
|
|
347
|
+
readonly md: "8px";
|
|
348
|
+
readonly lg: "12px";
|
|
349
|
+
readonly xl: "16px";
|
|
350
|
+
readonly '2xl': "20px";
|
|
351
|
+
readonly '3xl': "24px";
|
|
352
|
+
readonly full: "9999px";
|
|
353
|
+
readonly button: "4px";
|
|
354
|
+
readonly input: "4px";
|
|
355
|
+
readonly card: "20px";
|
|
356
|
+
readonly modal: "20px";
|
|
357
|
+
readonly chip: "16px";
|
|
358
|
+
readonly avatar: "100px";
|
|
359
|
+
readonly iconContainer: "10px";
|
|
360
|
+
};
|
|
361
|
+
declare const shadows: {
|
|
362
|
+
readonly none: "none";
|
|
363
|
+
readonly elevation2: "0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12)";
|
|
364
|
+
readonly button: "0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12)";
|
|
365
|
+
readonly card: "none";
|
|
366
|
+
readonly modal: "0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12)";
|
|
367
|
+
readonly dropdown: "0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)";
|
|
368
|
+
};
|
|
369
|
+
declare const zIndex: {
|
|
370
|
+
readonly mobileStepper: 1000;
|
|
371
|
+
readonly fab: 1050;
|
|
372
|
+
readonly speedDial: 1050;
|
|
373
|
+
readonly appBar: 1100;
|
|
374
|
+
readonly drawer: 1200;
|
|
375
|
+
readonly modal: 1300;
|
|
376
|
+
readonly snackbar: 1400;
|
|
377
|
+
readonly tooltip: 1500;
|
|
378
|
+
};
|
|
379
|
+
declare const transitions: {
|
|
380
|
+
readonly duration: {
|
|
381
|
+
readonly shortest: 150;
|
|
382
|
+
readonly shorter: 200;
|
|
383
|
+
readonly short: 250;
|
|
384
|
+
readonly standard: 300;
|
|
385
|
+
readonly complex: 375;
|
|
386
|
+
readonly enteringScreen: 225;
|
|
387
|
+
readonly leavingScreen: 195;
|
|
388
|
+
};
|
|
389
|
+
readonly easing: {
|
|
390
|
+
readonly easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
391
|
+
readonly easeOut: "cubic-bezier(0.0, 0, 0.2, 1)";
|
|
392
|
+
readonly easeIn: "cubic-bezier(0.4, 0, 1, 1)";
|
|
393
|
+
readonly sharp: "cubic-bezier(0.4, 0, 0.6, 1)";
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
declare const breakpoints: {
|
|
397
|
+
readonly xs: "444px";
|
|
398
|
+
readonly sm: "600px";
|
|
399
|
+
readonly md: "900px";
|
|
400
|
+
readonly lg: "1200px";
|
|
401
|
+
readonly xl: "1536px";
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* Default token export (light mode for backward compatibility)
|
|
405
|
+
*
|
|
406
|
+
* @deprecated Use `tokensByMode.light` or `tokensByMode.dark` instead
|
|
407
|
+
* This export maintains backward compatibility with existing code.
|
|
408
|
+
*/
|
|
409
|
+
declare const tokens: {
|
|
410
|
+
readonly colors: {
|
|
411
|
+
readonly success: {
|
|
412
|
+
readonly main: "#2E7D32";
|
|
413
|
+
readonly light: "#4CAF50";
|
|
414
|
+
readonly dark: "#1B5E20";
|
|
415
|
+
readonly contrastText: "#FFFFFF";
|
|
416
|
+
};
|
|
417
|
+
readonly warning: {
|
|
418
|
+
readonly main: "#ED6C02";
|
|
419
|
+
readonly light: "#FF9800";
|
|
420
|
+
readonly dark: "#E65100";
|
|
421
|
+
readonly contrastText: "#FFFFFF";
|
|
422
|
+
};
|
|
423
|
+
readonly error: {
|
|
424
|
+
readonly main: "#D32F2F";
|
|
425
|
+
readonly light: "#EF5350";
|
|
426
|
+
readonly dark: "#C62828";
|
|
427
|
+
readonly contrastText: "#FFFFFF";
|
|
428
|
+
};
|
|
429
|
+
readonly info: {
|
|
430
|
+
readonly main: "#0288D1";
|
|
431
|
+
readonly light: "#03A9F4";
|
|
432
|
+
readonly dark: "#01579B";
|
|
433
|
+
readonly contrastText: "#FFFFFF";
|
|
434
|
+
};
|
|
435
|
+
readonly primary: {
|
|
436
|
+
readonly main: "#4CAF50";
|
|
437
|
+
readonly light: "#81C784";
|
|
438
|
+
readonly dark: "#388E3C";
|
|
439
|
+
readonly contrastText: "#FFFFFF";
|
|
440
|
+
readonly states: {
|
|
441
|
+
readonly hover: "rgba(131, 71, 173, 0.04)";
|
|
442
|
+
readonly selected: "rgba(131, 71, 173, 0.08)";
|
|
443
|
+
readonly focus: "rgba(131, 71, 173, 0.12)";
|
|
444
|
+
readonly focusVisible: "rgba(131, 71, 173, 0.30)";
|
|
445
|
+
readonly outlinedBorder: "rgba(131, 71, 173, 0.50)";
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
readonly secondary: {
|
|
449
|
+
readonly main: "#3CB4E5";
|
|
450
|
+
readonly light: "#6AC6EB";
|
|
451
|
+
readonly dark: "#198EBE";
|
|
452
|
+
readonly contrastText: "#FFFFFF";
|
|
453
|
+
};
|
|
454
|
+
readonly text: {
|
|
455
|
+
readonly primary: "rgba(0, 0, 0, 0.87)";
|
|
456
|
+
readonly secondary: "rgba(0, 0, 0, 0.60)";
|
|
457
|
+
readonly disabled: "rgba(0, 0, 0, 0.38)";
|
|
458
|
+
readonly hint: "rgba(0, 0, 0, 0.38)";
|
|
459
|
+
};
|
|
460
|
+
readonly background: {
|
|
461
|
+
readonly default: "#FFFFFF";
|
|
462
|
+
readonly paper: "#FFFFFF";
|
|
463
|
+
readonly elevated: "#FAFAFA";
|
|
464
|
+
};
|
|
465
|
+
readonly action: {
|
|
466
|
+
readonly active: "rgba(0, 0, 0, 0.56)";
|
|
467
|
+
readonly hover: "rgba(0, 0, 0, 0.04)";
|
|
468
|
+
readonly selected: "rgba(0, 0, 0, 0.08)";
|
|
469
|
+
readonly disabled: "rgba(0, 0, 0, 0.38)";
|
|
470
|
+
readonly disabledBackground: "rgba(0, 0, 0, 0.12)";
|
|
471
|
+
readonly focus: "rgba(0, 0, 0, 0.12)";
|
|
472
|
+
};
|
|
473
|
+
readonly divider: "rgba(0, 0, 0, 0.12)";
|
|
474
|
+
readonly components: {
|
|
475
|
+
readonly input: {
|
|
476
|
+
readonly outlined: {
|
|
477
|
+
readonly enabledBorder: "rgba(0, 0, 0, 0.23)";
|
|
478
|
+
readonly hoverBorder: "rgba(0, 0, 0, 0.87)";
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
readonly fontFamilies: {
|
|
484
|
+
readonly primary: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
485
|
+
readonly secondary: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
486
|
+
readonly mono: "\"Roboto Mono\", \"SF Mono\", \"Monaco\", monospace";
|
|
487
|
+
};
|
|
488
|
+
readonly fontWeights: {
|
|
489
|
+
readonly light: 300;
|
|
490
|
+
readonly regular: 400;
|
|
491
|
+
readonly medium: 500;
|
|
492
|
+
readonly semiBold: 600;
|
|
493
|
+
readonly bold: 700;
|
|
494
|
+
};
|
|
495
|
+
readonly fontSizes: {
|
|
496
|
+
readonly xs: "0.75rem";
|
|
497
|
+
readonly sm: "0.875rem";
|
|
498
|
+
readonly base: "1rem";
|
|
499
|
+
readonly lg: "1.125rem";
|
|
500
|
+
readonly xl: "1.25rem";
|
|
501
|
+
readonly '2xl': "1.5rem";
|
|
502
|
+
readonly '3xl': "1.875rem";
|
|
503
|
+
readonly '4xl': "2.25rem";
|
|
504
|
+
};
|
|
505
|
+
readonly lineHeights: {
|
|
506
|
+
readonly tight: 1.2;
|
|
507
|
+
readonly snug: 1.375;
|
|
508
|
+
readonly normal: 1.5;
|
|
509
|
+
readonly relaxed: 1.66;
|
|
510
|
+
readonly loose: 2;
|
|
511
|
+
};
|
|
512
|
+
readonly letterSpacings: {
|
|
513
|
+
readonly tighter: "-0.05em";
|
|
514
|
+
readonly tight: "-0.025em";
|
|
515
|
+
readonly normal: "0.15px";
|
|
516
|
+
readonly wide: "0.4px";
|
|
517
|
+
readonly wider: "0.46px";
|
|
518
|
+
readonly widest: "1px";
|
|
519
|
+
};
|
|
520
|
+
readonly typography: {
|
|
521
|
+
readonly h1: {
|
|
522
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
523
|
+
readonly fontWeight: 700;
|
|
524
|
+
readonly fontSize: "2.5rem";
|
|
525
|
+
readonly lineHeight: 1.2;
|
|
526
|
+
readonly letterSpacing: "-0.01562em";
|
|
527
|
+
};
|
|
528
|
+
readonly h2: {
|
|
529
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
530
|
+
readonly fontWeight: 700;
|
|
531
|
+
readonly fontSize: "2rem";
|
|
532
|
+
readonly lineHeight: 1.2;
|
|
533
|
+
readonly letterSpacing: "-0.00833em";
|
|
534
|
+
};
|
|
535
|
+
readonly h3: {
|
|
536
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
537
|
+
readonly fontWeight: 600;
|
|
538
|
+
readonly fontSize: "1.75rem";
|
|
539
|
+
readonly lineHeight: 1.2;
|
|
540
|
+
readonly letterSpacing: "0em";
|
|
541
|
+
};
|
|
542
|
+
readonly h4: {
|
|
543
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
544
|
+
readonly fontWeight: 600;
|
|
545
|
+
readonly fontSize: "1.5rem";
|
|
546
|
+
readonly lineHeight: 1.235;
|
|
547
|
+
readonly letterSpacing: "0.00735em";
|
|
548
|
+
};
|
|
549
|
+
readonly h5: {
|
|
550
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
551
|
+
readonly fontWeight: 600;
|
|
552
|
+
readonly fontSize: "1.25rem";
|
|
553
|
+
readonly lineHeight: 1.334;
|
|
554
|
+
readonly letterSpacing: "0em";
|
|
555
|
+
};
|
|
556
|
+
readonly h6: {
|
|
557
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
558
|
+
readonly fontWeight: 600;
|
|
559
|
+
readonly fontSize: "1.25rem";
|
|
560
|
+
readonly lineHeight: "32px";
|
|
561
|
+
readonly letterSpacing: "0.15px";
|
|
562
|
+
};
|
|
563
|
+
readonly subtitle1: {
|
|
564
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
565
|
+
readonly fontWeight: 400;
|
|
566
|
+
readonly fontSize: "1rem";
|
|
567
|
+
readonly lineHeight: 1.75;
|
|
568
|
+
readonly letterSpacing: "0.00938em";
|
|
569
|
+
};
|
|
570
|
+
readonly subtitle2: {
|
|
571
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
572
|
+
readonly fontWeight: 500;
|
|
573
|
+
readonly fontSize: "0.875rem";
|
|
574
|
+
readonly lineHeight: 1.57;
|
|
575
|
+
readonly letterSpacing: "0.00714em";
|
|
576
|
+
};
|
|
577
|
+
readonly body1: {
|
|
578
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
579
|
+
readonly fontWeight: 400;
|
|
580
|
+
readonly fontSize: "1rem";
|
|
581
|
+
readonly lineHeight: 1.5;
|
|
582
|
+
readonly letterSpacing: "0.15px";
|
|
583
|
+
};
|
|
584
|
+
readonly body2: {
|
|
585
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
586
|
+
readonly fontWeight: 400;
|
|
587
|
+
readonly fontSize: "0.875rem";
|
|
588
|
+
readonly lineHeight: 1.43;
|
|
589
|
+
readonly letterSpacing: "0.01071em";
|
|
590
|
+
};
|
|
591
|
+
readonly button: {
|
|
592
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
593
|
+
readonly fontWeight: 500;
|
|
594
|
+
readonly fontSize: "0.9375rem";
|
|
595
|
+
readonly lineHeight: "26px";
|
|
596
|
+
readonly letterSpacing: "0.46px";
|
|
597
|
+
readonly textTransform: "uppercase";
|
|
598
|
+
};
|
|
599
|
+
readonly caption: {
|
|
600
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
601
|
+
readonly fontWeight: 400;
|
|
602
|
+
readonly fontSize: "0.75rem";
|
|
603
|
+
readonly lineHeight: 1.66;
|
|
604
|
+
readonly letterSpacing: "0.4px";
|
|
605
|
+
};
|
|
606
|
+
readonly overline: {
|
|
607
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
608
|
+
readonly fontWeight: 400;
|
|
609
|
+
readonly fontSize: "0.75rem";
|
|
610
|
+
readonly lineHeight: "15px";
|
|
611
|
+
readonly letterSpacing: "1px";
|
|
612
|
+
readonly textTransform: "uppercase";
|
|
613
|
+
};
|
|
614
|
+
readonly inputValue: {
|
|
615
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
616
|
+
readonly fontWeight: 400;
|
|
617
|
+
readonly fontSize: "1rem";
|
|
618
|
+
readonly lineHeight: "24px";
|
|
619
|
+
readonly letterSpacing: "0.15px";
|
|
620
|
+
};
|
|
621
|
+
readonly inputLabel: {
|
|
622
|
+
readonly fontFamily: "\"Public Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
623
|
+
readonly fontWeight: 400;
|
|
624
|
+
readonly fontSize: "0.75rem";
|
|
625
|
+
readonly lineHeight: "12px";
|
|
626
|
+
readonly letterSpacing: "0.15px";
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
readonly spacing: {
|
|
630
|
+
readonly 0: "0px";
|
|
631
|
+
readonly 1: "8px";
|
|
632
|
+
readonly 2: "16px";
|
|
633
|
+
readonly 3: "24px";
|
|
634
|
+
readonly 4: "32px";
|
|
635
|
+
readonly 5: "40px";
|
|
636
|
+
readonly 6: "48px";
|
|
637
|
+
readonly 7: "56px";
|
|
638
|
+
readonly 8: "64px";
|
|
639
|
+
readonly 9: "72px";
|
|
640
|
+
readonly 10: "80px";
|
|
641
|
+
readonly 11: "88px";
|
|
642
|
+
readonly 12: "96px";
|
|
643
|
+
};
|
|
644
|
+
readonly semanticSpacing: {
|
|
645
|
+
readonly card: {
|
|
646
|
+
readonly paddingY: "10px";
|
|
647
|
+
readonly paddingX: "20px";
|
|
648
|
+
readonly padding: "10px 20px";
|
|
649
|
+
readonly gap: "16px";
|
|
650
|
+
readonly listGap: "12px";
|
|
651
|
+
};
|
|
652
|
+
readonly box: {
|
|
653
|
+
readonly paddingY: "32px";
|
|
654
|
+
readonly paddingX: "20px";
|
|
655
|
+
readonly padding: "32px 20px";
|
|
656
|
+
};
|
|
657
|
+
readonly input: {
|
|
658
|
+
readonly paddingY: "16px";
|
|
659
|
+
readonly paddingX: "12px";
|
|
660
|
+
readonly padding: "16px 12px";
|
|
661
|
+
};
|
|
662
|
+
readonly button: {
|
|
663
|
+
readonly paddingY: "8px";
|
|
664
|
+
readonly paddingX: "22px";
|
|
665
|
+
readonly padding: "8px 22px";
|
|
666
|
+
};
|
|
667
|
+
readonly sectionGap: "32px";
|
|
668
|
+
readonly formGap: "20px";
|
|
669
|
+
readonly inlineGap: "8px";
|
|
670
|
+
readonly stackGap: "16px";
|
|
671
|
+
readonly modalPadding: "24px";
|
|
672
|
+
};
|
|
673
|
+
readonly borderRadius: {
|
|
674
|
+
readonly none: "0px";
|
|
675
|
+
readonly sm: "4px";
|
|
676
|
+
readonly md: "8px";
|
|
677
|
+
readonly lg: "12px";
|
|
678
|
+
readonly xl: "16px";
|
|
679
|
+
readonly '2xl': "20px";
|
|
680
|
+
readonly '3xl': "24px";
|
|
681
|
+
readonly full: "9999px";
|
|
682
|
+
readonly button: "4px";
|
|
683
|
+
readonly input: "4px";
|
|
684
|
+
readonly card: "20px";
|
|
685
|
+
readonly modal: "20px";
|
|
686
|
+
readonly chip: "16px";
|
|
687
|
+
readonly avatar: "100px";
|
|
688
|
+
readonly iconContainer: "10px";
|
|
689
|
+
};
|
|
690
|
+
readonly borders: {
|
|
691
|
+
readonly card: "1px solid rgba(0, 0, 0, 0.42)";
|
|
692
|
+
readonly cardSelected: "2px solid #8347AD";
|
|
693
|
+
readonly inputOutlined: "1px solid rgba(0, 0, 0, 0.23)";
|
|
694
|
+
readonly inputStandard: "1px solid rgba(0, 0, 0, 0.42)";
|
|
695
|
+
readonly buttonOutlinedPrimary: "1px solid rgba(131, 71, 173, 0.5)";
|
|
696
|
+
readonly buttonOutlinedInfo: "1px solid rgba(2, 136, 209, 0.5)";
|
|
697
|
+
readonly divider: "1px solid #e0e0e0";
|
|
698
|
+
readonly container: "1px solid rgba(58, 53, 65, 0.3)";
|
|
699
|
+
};
|
|
700
|
+
readonly shadows: {
|
|
701
|
+
readonly none: "none";
|
|
702
|
+
readonly elevation2: "0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12)";
|
|
703
|
+
readonly button: "0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12)";
|
|
704
|
+
readonly card: "none";
|
|
705
|
+
readonly modal: "0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12)";
|
|
706
|
+
readonly dropdown: "0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)";
|
|
707
|
+
};
|
|
708
|
+
readonly zIndex: {
|
|
709
|
+
readonly mobileStepper: 1000;
|
|
710
|
+
readonly fab: 1050;
|
|
711
|
+
readonly speedDial: 1050;
|
|
712
|
+
readonly appBar: 1100;
|
|
713
|
+
readonly drawer: 1200;
|
|
714
|
+
readonly modal: 1300;
|
|
715
|
+
readonly snackbar: 1400;
|
|
716
|
+
readonly tooltip: 1500;
|
|
717
|
+
};
|
|
718
|
+
readonly transitions: {
|
|
719
|
+
readonly duration: {
|
|
720
|
+
readonly shortest: 150;
|
|
721
|
+
readonly shorter: 200;
|
|
722
|
+
readonly short: 250;
|
|
723
|
+
readonly standard: 300;
|
|
724
|
+
readonly complex: 375;
|
|
725
|
+
readonly enteringScreen: 225;
|
|
726
|
+
readonly leavingScreen: 195;
|
|
727
|
+
};
|
|
728
|
+
readonly easing: {
|
|
729
|
+
readonly easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
730
|
+
readonly easeOut: "cubic-bezier(0.0, 0, 0.2, 1)";
|
|
731
|
+
readonly easeIn: "cubic-bezier(0.4, 0, 1, 1)";
|
|
732
|
+
readonly sharp: "cubic-bezier(0.4, 0, 0.6, 1)";
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
readonly breakpoints: {
|
|
736
|
+
readonly xs: "444px";
|
|
737
|
+
readonly sm: "600px";
|
|
738
|
+
readonly md: "900px";
|
|
739
|
+
readonly lg: "1200px";
|
|
740
|
+
readonly xl: "1536px";
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
type Tokens = typeof tokens;
|
|
744
|
+
type Colors = typeof colors;
|
|
745
|
+
type Typography = typeof typography;
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Khipu Design System - Button Component
|
|
749
|
+
*
|
|
750
|
+
* A button component built on MUI Button with Khipu design system styling.
|
|
751
|
+
* Matches the Figma design: Pagos Automáticos - MUI v610
|
|
752
|
+
*/
|
|
753
|
+
|
|
754
|
+
type KdsButtonVariant = 'contained' | 'outlined' | 'text';
|
|
755
|
+
type KdsButtonColor = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info';
|
|
756
|
+
type KdsButtonSize = 'small' | 'medium' | 'large';
|
|
757
|
+
interface KdsButtonProps extends Omit<ButtonProps, 'variant' | 'color' | 'size'> {
|
|
758
|
+
/** Visual style variant */
|
|
759
|
+
variant?: KdsButtonVariant;
|
|
760
|
+
/** Color scheme */
|
|
761
|
+
color?: KdsButtonColor;
|
|
762
|
+
/** Button size */
|
|
763
|
+
size?: KdsButtonSize;
|
|
764
|
+
/** Full width button */
|
|
765
|
+
fullWidth?: boolean;
|
|
766
|
+
/** Loading state - shows spinner and disables button */
|
|
767
|
+
loading?: boolean;
|
|
768
|
+
/** Icon before label */
|
|
769
|
+
startIcon?: React__default.ReactNode;
|
|
770
|
+
/** Icon after label */
|
|
771
|
+
endIcon?: React__default.ReactNode;
|
|
772
|
+
/** Content */
|
|
773
|
+
children: React__default.ReactNode;
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* Primary action button component.
|
|
777
|
+
*
|
|
778
|
+
* Built on MUI Button with Khipu design system styling.
|
|
779
|
+
*
|
|
780
|
+
* @example
|
|
781
|
+
* ```tsx
|
|
782
|
+
* <KdsButton variant="contained" color="primary">
|
|
783
|
+
* INGRESAR
|
|
784
|
+
* </KdsButton>
|
|
785
|
+
*
|
|
786
|
+
* <KdsButton variant="outlined" color="info">
|
|
787
|
+
* RECHAZAR
|
|
788
|
+
* </KdsButton>
|
|
789
|
+
*
|
|
790
|
+
* <KdsButton variant="contained" color="success" fullWidth>
|
|
791
|
+
* VOLVER AL COMERCIO
|
|
792
|
+
* </KdsButton>
|
|
793
|
+
*
|
|
794
|
+
* <KdsButton loading>
|
|
795
|
+
* Processing...
|
|
796
|
+
* </KdsButton>
|
|
797
|
+
* ```
|
|
798
|
+
*/
|
|
799
|
+
declare const KdsButton: React__default.ForwardRefExoticComponent<Omit<KdsButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Khipu Design System - TextField Component
|
|
803
|
+
*
|
|
804
|
+
* A text input component built on MUI TextField with Khipu design system styling.
|
|
805
|
+
* Matches the Figma design: Pagos Automáticos - MUI v610
|
|
806
|
+
*/
|
|
807
|
+
|
|
808
|
+
type KdsTextFieldVariant = 'outlined' | 'filled' | 'standard';
|
|
809
|
+
type KdsTextFieldSize = 'small' | 'medium';
|
|
810
|
+
interface KdsTextFieldProps extends Omit<TextFieldProps, 'variant' | 'size'> {
|
|
811
|
+
/** Visual variant */
|
|
812
|
+
variant?: KdsTextFieldVariant;
|
|
813
|
+
/** Input size */
|
|
814
|
+
size?: KdsTextFieldSize;
|
|
815
|
+
/** Icon/element at the start of input */
|
|
816
|
+
startAdornment?: React__default.ReactNode;
|
|
817
|
+
/** Icon/element at the end of input */
|
|
818
|
+
endAdornment?: React__default.ReactNode;
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* Text input field with label, validation, and adornments.
|
|
822
|
+
*
|
|
823
|
+
* Built on MUI TextField with Khipu design system styling.
|
|
824
|
+
*
|
|
825
|
+
* @example
|
|
826
|
+
* ```tsx
|
|
827
|
+
* <KdsTextField
|
|
828
|
+
* label="RUT Suscriptor"
|
|
829
|
+
* placeholder="12.345.678-9"
|
|
830
|
+
* endAdornment={<PersonIcon />}
|
|
831
|
+
* />
|
|
832
|
+
*
|
|
833
|
+
* <KdsTextField
|
|
834
|
+
* label="Buscar por nombre"
|
|
835
|
+
* variant="outlined"
|
|
836
|
+
* />
|
|
837
|
+
*
|
|
838
|
+
* <KdsTextField
|
|
839
|
+
* label="Contraseña"
|
|
840
|
+
* type="password"
|
|
841
|
+
* error
|
|
842
|
+
* helperText="Contraseña incorrecta"
|
|
843
|
+
* />
|
|
844
|
+
* ```
|
|
845
|
+
*/
|
|
846
|
+
declare const KdsTextField: React__default.ForwardRefExoticComponent<Omit<KdsTextFieldProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Khipu Design System - Checkbox Component
|
|
850
|
+
*
|
|
851
|
+
* A checkbox component built on MUI Checkbox with Khipu design system styling.
|
|
852
|
+
* Matches the Figma design: Pagos Automáticos - MUI v610
|
|
853
|
+
*/
|
|
854
|
+
|
|
855
|
+
type KdsCheckboxColor = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info' | 'default';
|
|
856
|
+
type KdsCheckboxSize = 'small' | 'medium';
|
|
857
|
+
interface KdsCheckboxProps extends Omit<CheckboxProps, 'color' | 'size'> {
|
|
858
|
+
/** Label text or element */
|
|
859
|
+
label?: React__default.ReactNode;
|
|
860
|
+
/** Color scheme */
|
|
861
|
+
color?: KdsCheckboxColor;
|
|
862
|
+
/** Size */
|
|
863
|
+
size?: KdsCheckboxSize;
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* Checkbox component for binary choices.
|
|
867
|
+
*
|
|
868
|
+
* Built on MUI Checkbox with Khipu design system styling.
|
|
869
|
+
*
|
|
870
|
+
* @example
|
|
871
|
+
* ```tsx
|
|
872
|
+
* <KdsCheckbox
|
|
873
|
+
* label="Acepto los términos y condiciones de uso"
|
|
874
|
+
* checked={accepted}
|
|
875
|
+
* onChange={(e) => setAccepted(e.target.checked)}
|
|
876
|
+
* />
|
|
877
|
+
*
|
|
878
|
+
* <KdsCheckbox
|
|
879
|
+
* label={
|
|
880
|
+
* <>
|
|
881
|
+
* Acepto los <a href="/terms">términos y condiciones</a>
|
|
882
|
+
* </>
|
|
883
|
+
* }
|
|
884
|
+
* />
|
|
885
|
+
*
|
|
886
|
+
* <KdsCheckbox indeterminate />
|
|
887
|
+
* ```
|
|
888
|
+
*/
|
|
889
|
+
declare const KdsCheckbox: React__default.ForwardRefExoticComponent<Omit<KdsCheckboxProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Khipu Design System - Modal Component
|
|
893
|
+
*
|
|
894
|
+
* A modal dialog component built on MUI Dialog with Khipu design system styling.
|
|
895
|
+
* Matches the Figma design: Pagos Automáticos - MUI v610
|
|
896
|
+
*/
|
|
897
|
+
|
|
898
|
+
type KdsModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
899
|
+
interface KdsModalProps extends Omit<DialogProps, 'maxWidth' | 'title'> {
|
|
900
|
+
/** Controls modal visibility */
|
|
901
|
+
open: boolean;
|
|
902
|
+
/** Callback when modal should close */
|
|
903
|
+
onClose: () => void;
|
|
904
|
+
/** Modal title */
|
|
905
|
+
title?: React__default.ReactNode;
|
|
906
|
+
/** Modal content */
|
|
907
|
+
children: React__default.ReactNode;
|
|
908
|
+
/** Footer content (usually action buttons) */
|
|
909
|
+
footer?: React__default.ReactNode;
|
|
910
|
+
/** Modal max width */
|
|
911
|
+
size?: KdsModalSize;
|
|
912
|
+
/** Show close button */
|
|
913
|
+
showCloseButton?: boolean;
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* Modal dialog component for displaying content that requires attention.
|
|
917
|
+
*
|
|
918
|
+
* Built on MUI Dialog with Khipu design system styling.
|
|
919
|
+
*
|
|
920
|
+
* @example
|
|
921
|
+
* ```tsx
|
|
922
|
+
* // Token authorization modal
|
|
923
|
+
* <KdsModal
|
|
924
|
+
* open={isOpen}
|
|
925
|
+
* onClose={() => setIsOpen(false)}
|
|
926
|
+
* title={
|
|
927
|
+
* <>
|
|
928
|
+
* Autoriza la operación desde tu App{' '}
|
|
929
|
+
* <Typography component="span" color="info.main">tokenPass</Typography>
|
|
930
|
+
* </>
|
|
931
|
+
* }
|
|
932
|
+
* footer={
|
|
933
|
+
* <Button disabled fullWidth>CONTINUAR</Button>
|
|
934
|
+
* }
|
|
935
|
+
* >
|
|
936
|
+
* <Box sx={{ textAlign: 'center' }}>
|
|
937
|
+
* <img src={tokenImage} alt="TokenPass" />
|
|
938
|
+
* <Typography color="text.disabled">3:27 restantes</Typography>
|
|
939
|
+
* </Box>
|
|
940
|
+
* </KdsModal>
|
|
941
|
+
*
|
|
942
|
+
* // Confirmation modal
|
|
943
|
+
* <KdsModal
|
|
944
|
+
* open={isOpen}
|
|
945
|
+
* onClose={handleCancel}
|
|
946
|
+
* title="Confirmar pago"
|
|
947
|
+
* footer={
|
|
948
|
+
* <>
|
|
949
|
+
* <Button variant="text" onClick={handleCancel}>Cancelar</Button>
|
|
950
|
+
* <Button onClick={handleConfirm}>Confirmar</Button>
|
|
951
|
+
* </>
|
|
952
|
+
* }
|
|
953
|
+
* >
|
|
954
|
+
* <p>¿Estás seguro de que deseas realizar este pago?</p>
|
|
955
|
+
* </KdsModal>
|
|
956
|
+
* ```
|
|
957
|
+
*/
|
|
958
|
+
declare const KdsModal: React__default.FC<KdsModalProps>;
|
|
959
|
+
|
|
960
|
+
type KdsCardVariant = 'elevation' | 'outlined';
|
|
961
|
+
type KdsCardElevation = 0 | 1 | 2 | 3 | 4 | 6 | 8 | 12 | 16 | 24;
|
|
962
|
+
type KdsCardPadding = 'none' | 'sm' | 'md' | 'lg';
|
|
963
|
+
interface KdsCardProps extends Omit<CardProps, 'variant'> {
|
|
964
|
+
/** Visual variant */
|
|
965
|
+
variant?: KdsCardVariant;
|
|
966
|
+
/** Elevation level (only for elevation variant) */
|
|
967
|
+
elevation?: KdsCardElevation;
|
|
968
|
+
/** Padding size from Figma design tokens */
|
|
969
|
+
padding?: KdsCardPadding;
|
|
970
|
+
/** Clickable card with hover effect */
|
|
971
|
+
clickable?: boolean;
|
|
972
|
+
/** Click handler for clickable cards */
|
|
973
|
+
onCardClick?: () => void;
|
|
974
|
+
}
|
|
975
|
+
interface KdsCardHeaderProps extends CardHeaderProps {
|
|
976
|
+
}
|
|
977
|
+
interface KdsCardContentProps extends CardContentProps {
|
|
978
|
+
}
|
|
979
|
+
interface KdsCardActionsProps extends CardActionsProps {
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* Card container component for grouping related content.
|
|
983
|
+
*
|
|
984
|
+
* Built on MUI Card with Khipu design system styling.
|
|
985
|
+
*
|
|
986
|
+
* @example
|
|
987
|
+
* ```tsx
|
|
988
|
+
* // Bank selection card
|
|
989
|
+
* <KdsCard variant="outlined" clickable onCardClick={() => selectBank('estado')}>
|
|
990
|
+
* <CardContent sx={{ display: 'flex', gap: 2, alignItems: 'center' }}>
|
|
991
|
+
* <img src={bankLogo} alt="Banco Estado" />
|
|
992
|
+
* <Typography variant="body1" fontWeight={600}>
|
|
993
|
+
* Banco Estado
|
|
994
|
+
* </Typography>
|
|
995
|
+
* </CardContent>
|
|
996
|
+
* </KdsCard>
|
|
997
|
+
*
|
|
998
|
+
* // Account card
|
|
999
|
+
* <KdsCard variant="outlined">
|
|
1000
|
+
* <CardContent>
|
|
1001
|
+
* <Typography variant="body2" fontWeight={600}>
|
|
1002
|
+
* Cuenta Corriente N° ***002344
|
|
1003
|
+
* </Typography>
|
|
1004
|
+
* <Typography variant="body2" color="info.light">
|
|
1005
|
+
* Disponible $1.000.000
|
|
1006
|
+
* </Typography>
|
|
1007
|
+
* </CardContent>
|
|
1008
|
+
* </KdsCard>
|
|
1009
|
+
* ```
|
|
1010
|
+
*/
|
|
1011
|
+
declare const KdsCard: React.ForwardRefExoticComponent<Omit<KdsCardProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1012
|
+
/**
|
|
1013
|
+
* Card header with title, subtitle, avatar, and action areas.
|
|
1014
|
+
*/
|
|
1015
|
+
declare const KdsCardHeader: React.ForwardRefExoticComponent<Omit<KdsCardHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1016
|
+
/**
|
|
1017
|
+
* Main content area of the card.
|
|
1018
|
+
*/
|
|
1019
|
+
declare const KdsCardContent: React.ForwardRefExoticComponent<Omit<KdsCardContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1020
|
+
/**
|
|
1021
|
+
* Actions area at the bottom of the card, typically for buttons.
|
|
1022
|
+
*/
|
|
1023
|
+
declare const KdsCardActions: React.ForwardRefExoticComponent<Omit<KdsCardActionsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* Khipu Design System - Spinner Component
|
|
1027
|
+
*
|
|
1028
|
+
* A loading spinner component built on MUI CircularProgress with Khipu design system styling.
|
|
1029
|
+
* Matches the Figma design: Pagos Automáticos - MUI v610
|
|
1030
|
+
*/
|
|
1031
|
+
|
|
1032
|
+
type KdsSpinnerSize = 'small' | 'medium' | 'large';
|
|
1033
|
+
type KdsSpinnerColor = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info' | 'inherit';
|
|
1034
|
+
interface KdsSpinnerProps extends Omit<CircularProgressProps, 'size' | 'color'> {
|
|
1035
|
+
/** Spinner size */
|
|
1036
|
+
size?: KdsSpinnerSize;
|
|
1037
|
+
/** Spinner color */
|
|
1038
|
+
color?: KdsSpinnerColor;
|
|
1039
|
+
/** Custom size in pixels */
|
|
1040
|
+
customSize?: number;
|
|
1041
|
+
/** Accessible label */
|
|
1042
|
+
label?: string;
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Loading spinner component.
|
|
1046
|
+
*
|
|
1047
|
+
* Built on MUI CircularProgress with Khipu design system styling.
|
|
1048
|
+
*
|
|
1049
|
+
* @example
|
|
1050
|
+
* ```tsx
|
|
1051
|
+
* // Basic usage
|
|
1052
|
+
* <KdsSpinner size="medium" color="primary" />
|
|
1053
|
+
*
|
|
1054
|
+
* // Inside a button
|
|
1055
|
+
* <Button loading>
|
|
1056
|
+
* Processing...
|
|
1057
|
+
* </Button>
|
|
1058
|
+
*
|
|
1059
|
+
* // Centered in container
|
|
1060
|
+
* <Box sx={{ display: 'flex', justifyContent: 'center', py: 4 }}>
|
|
1061
|
+
* <KdsSpinner size="large" />
|
|
1062
|
+
* </Box>
|
|
1063
|
+
* ```
|
|
1064
|
+
*/
|
|
1065
|
+
declare const KdsSpinner: React__default.FC<KdsSpinnerProps>;
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* Khipu Design System - LinearProgress Component
|
|
1069
|
+
*
|
|
1070
|
+
* A linear progress indicator built on MUI LinearProgress with Khipu design system styling.
|
|
1071
|
+
* Matches the Figma design: Pagos Automáticos - MUI v610
|
|
1072
|
+
*/
|
|
1073
|
+
|
|
1074
|
+
type KdsLinearProgressColor = 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info' | 'inherit';
|
|
1075
|
+
type KdsLinearProgressVariant = 'determinate' | 'indeterminate' | 'buffer' | 'query';
|
|
1076
|
+
interface KdsLinearProgressProps extends Omit<LinearProgressProps, 'color' | 'variant'> {
|
|
1077
|
+
/** Progress bar color */
|
|
1078
|
+
color?: KdsLinearProgressColor;
|
|
1079
|
+
/** Variant */
|
|
1080
|
+
variant?: KdsLinearProgressVariant;
|
|
1081
|
+
/** Progress value (0-100) for determinate variant */
|
|
1082
|
+
value?: number;
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* Linear progress indicator component.
|
|
1086
|
+
*
|
|
1087
|
+
* Built on MUI LinearProgress with Khipu design system styling.
|
|
1088
|
+
* Used to show progress at the top of screens in the payment flow.
|
|
1089
|
+
*
|
|
1090
|
+
* @example
|
|
1091
|
+
* ```tsx
|
|
1092
|
+
* // Indeterminate progress (loading)
|
|
1093
|
+
* <KdsLinearProgress color="info" />
|
|
1094
|
+
*
|
|
1095
|
+
* // Determinate progress (shows percentage)
|
|
1096
|
+
* <KdsLinearProgress color="info" variant="determinate" value={50} />
|
|
1097
|
+
*
|
|
1098
|
+
* // At top of payment screen
|
|
1099
|
+
* <Box sx={{ width: '100%' }}>
|
|
1100
|
+
* <KdsLinearProgress color="info" />
|
|
1101
|
+
* <Box sx={{ p: 3 }}>
|
|
1102
|
+
* {content}
|
|
1103
|
+
* </Box>
|
|
1104
|
+
* </Box>
|
|
1105
|
+
* ```
|
|
1106
|
+
*/
|
|
1107
|
+
declare const KdsLinearProgress: React__default.FC<KdsLinearProgressProps>;
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* Khipu Design System - Alert Component
|
|
1111
|
+
*
|
|
1112
|
+
* An alert component built on MUI Alert with Khipu design system styling.
|
|
1113
|
+
* Matches the Figma design: Pagos Automáticos - MUI v610
|
|
1114
|
+
*/
|
|
1115
|
+
|
|
1116
|
+
type KdsAlertSeverity = 'success' | 'info' | 'warning' | 'error';
|
|
1117
|
+
type KdsAlertVariant = 'standard' | 'filled' | 'outlined';
|
|
1118
|
+
interface KdsAlertProps extends Omit<AlertProps, 'severity' | 'variant' | 'title'> {
|
|
1119
|
+
/** Alert severity/type */
|
|
1120
|
+
severity?: KdsAlertSeverity;
|
|
1121
|
+
/** Visual variant */
|
|
1122
|
+
variant?: KdsAlertVariant;
|
|
1123
|
+
/** Alert title */
|
|
1124
|
+
title?: React__default.ReactNode;
|
|
1125
|
+
/** Alert content */
|
|
1126
|
+
children: React__default.ReactNode;
|
|
1127
|
+
/** Closable alert */
|
|
1128
|
+
onClose?: () => void;
|
|
1129
|
+
}
|
|
1130
|
+
/**
|
|
1131
|
+
* Alert component for displaying important messages.
|
|
1132
|
+
*
|
|
1133
|
+
* Built on MUI Alert with Khipu design system styling.
|
|
1134
|
+
*
|
|
1135
|
+
* @example
|
|
1136
|
+
* ```tsx
|
|
1137
|
+
* // Info alert (like in subscription details)
|
|
1138
|
+
* <KdsAlert severity="info">
|
|
1139
|
+
* El tope mensual corresponde al monto máximo posible a cobrar mensualmente.
|
|
1140
|
+
* </KdsAlert>
|
|
1141
|
+
*
|
|
1142
|
+
* // Success alert
|
|
1143
|
+
* <KdsAlert severity="success" title="¡Todo listo!">
|
|
1144
|
+
* Espera la confirmación por parte de tu banco
|
|
1145
|
+
* </KdsAlert>
|
|
1146
|
+
*
|
|
1147
|
+
* // Warning alert
|
|
1148
|
+
* <KdsAlert severity="warning" onClose={() => setOpen(false)}>
|
|
1149
|
+
* Tu sesión expirará pronto
|
|
1150
|
+
* </KdsAlert>
|
|
1151
|
+
*
|
|
1152
|
+
* // Error alert
|
|
1153
|
+
* <KdsAlert severity="error">
|
|
1154
|
+
* Ha ocurrido un error al procesar tu pago
|
|
1155
|
+
* </KdsAlert>
|
|
1156
|
+
* ```
|
|
1157
|
+
*/
|
|
1158
|
+
declare const KdsAlert: React__default.FC<KdsAlertProps>;
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Custom Khipu typography variants that map to specific design tokens
|
|
1162
|
+
*/
|
|
1163
|
+
type KdsTypographyVariant = 'display1' | 'display2' | 'heading1' | 'heading2' | 'heading3' | 'bodyLarge' | 'body' | 'bodySmall' | 'label' | 'labelSmall' | 'cardTitle' | 'cardSubtitle' | 'muted' | 'link';
|
|
1164
|
+
interface KdsTypographyProps extends Omit<TypographyProps, 'variant'> {
|
|
1165
|
+
/**
|
|
1166
|
+
* The typography variant to use
|
|
1167
|
+
* @default 'body'
|
|
1168
|
+
*/
|
|
1169
|
+
variant?: KdsTypographyVariant | TypographyProps['variant'];
|
|
1170
|
+
/**
|
|
1171
|
+
* Text color preset
|
|
1172
|
+
*/
|
|
1173
|
+
color?: 'primary' | 'secondary' | 'tertiary' | 'disabled' | 'error' | 'success' | 'info' | 'inherit';
|
|
1174
|
+
/**
|
|
1175
|
+
* Whether to truncate text with ellipsis
|
|
1176
|
+
*/
|
|
1177
|
+
truncate?: boolean;
|
|
1178
|
+
/**
|
|
1179
|
+
* Maximum number of lines before truncating (requires truncate=true)
|
|
1180
|
+
*/
|
|
1181
|
+
maxLines?: number;
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Typography component for consistent text styling across the Khipu design system.
|
|
1185
|
+
*
|
|
1186
|
+
* @example
|
|
1187
|
+
* // Display text
|
|
1188
|
+
* <KdsTypography variant="display1">Hero Headline</KdsTypography>
|
|
1189
|
+
*
|
|
1190
|
+
* // Heading
|
|
1191
|
+
* <KdsTypography variant="heading3">Page Title</KdsTypography>
|
|
1192
|
+
*
|
|
1193
|
+
* // Body text
|
|
1194
|
+
* <KdsTypography variant="body">Regular body text</KdsTypography>
|
|
1195
|
+
*
|
|
1196
|
+
* // Label
|
|
1197
|
+
* <KdsTypography variant="label">Section Label</KdsTypography>
|
|
1198
|
+
*
|
|
1199
|
+
* // With color
|
|
1200
|
+
* <KdsTypography variant="body" color="tertiary">Muted text</KdsTypography>
|
|
1201
|
+
*
|
|
1202
|
+
* // Truncated text
|
|
1203
|
+
* <KdsTypography variant="body" truncate maxLines={2}>Long text...</KdsTypography>
|
|
1204
|
+
*/
|
|
1205
|
+
declare const KdsTypography: React.ForwardRefExoticComponent<Omit<KdsTypographyProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* Khipu Design System - Tabs Component
|
|
1209
|
+
*
|
|
1210
|
+
* A tabs component for switching between different views or content sections.
|
|
1211
|
+
* Matches the Figma design: Pagos Instantaneos - MUI v610
|
|
1212
|
+
*
|
|
1213
|
+
* Built with composable sub-components for flexibility.
|
|
1214
|
+
*/
|
|
1215
|
+
|
|
1216
|
+
type KdsTabsColor = 'primary' | 'secondary' | 'info';
|
|
1217
|
+
type KdsTabsVariant = 'standard' | 'fullWidth' | 'scrollable';
|
|
1218
|
+
interface KdsTabsProps extends Omit<TabsProps, 'onChange' | 'textColor' | 'indicatorColor'> {
|
|
1219
|
+
/** The value of the currently selected Tab */
|
|
1220
|
+
value: string | number;
|
|
1221
|
+
/** Callback fired when a Tab is selected */
|
|
1222
|
+
onChange: (event: React__default.SyntheticEvent, newValue: string | number) => void;
|
|
1223
|
+
/** The color of the tabs */
|
|
1224
|
+
color?: KdsTabsColor;
|
|
1225
|
+
/** The variant of the tabs layout */
|
|
1226
|
+
variant?: KdsTabsVariant;
|
|
1227
|
+
/** Tab content - should be Tab components */
|
|
1228
|
+
children: React__default.ReactNode;
|
|
1229
|
+
}
|
|
1230
|
+
interface KdsTabProps extends Omit<TabProps, 'wrapped'> {
|
|
1231
|
+
/** The label displayed on the tab */
|
|
1232
|
+
label: string;
|
|
1233
|
+
/** The value of the tab, used for selection */
|
|
1234
|
+
value: string | number;
|
|
1235
|
+
/** Icon element placed before the label */
|
|
1236
|
+
icon?: React__default.ReactElement;
|
|
1237
|
+
/** Whether the tab is disabled */
|
|
1238
|
+
disabled?: boolean;
|
|
1239
|
+
}
|
|
1240
|
+
interface KdsTabPanelProps extends BoxProps {
|
|
1241
|
+
/** The value that corresponds to this panel */
|
|
1242
|
+
value: string | number;
|
|
1243
|
+
/** The currently selected value from Tabs */
|
|
1244
|
+
selectedValue: string | number;
|
|
1245
|
+
/** Content of the tab panel */
|
|
1246
|
+
children: React__default.ReactNode;
|
|
1247
|
+
}
|
|
1248
|
+
/**
|
|
1249
|
+
* Individual Tab component.
|
|
1250
|
+
*
|
|
1251
|
+
* @example
|
|
1252
|
+
* ```tsx
|
|
1253
|
+
* <KdsTab label="PERSONAS" value="personas" />
|
|
1254
|
+
* ```
|
|
1255
|
+
*/
|
|
1256
|
+
declare const KdsTab: React__default.ForwardRefExoticComponent<Omit<KdsTabProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
1257
|
+
/**
|
|
1258
|
+
* Tab Panel component for displaying content associated with a tab.
|
|
1259
|
+
*
|
|
1260
|
+
* @example
|
|
1261
|
+
* ```tsx
|
|
1262
|
+
* <KdsTabPanel value="personas" selectedValue={currentTab}>
|
|
1263
|
+
* Content for personas tab
|
|
1264
|
+
* </KdsTabPanel>
|
|
1265
|
+
* ```
|
|
1266
|
+
*/
|
|
1267
|
+
declare const KdsTabPanel: React__default.ForwardRefExoticComponent<Omit<KdsTabPanelProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
1268
|
+
/**
|
|
1269
|
+
* Tabs container component.
|
|
1270
|
+
*
|
|
1271
|
+
* A composable tabs component for navigation between different views.
|
|
1272
|
+
*
|
|
1273
|
+
* @example
|
|
1274
|
+
* ```tsx
|
|
1275
|
+
* const [value, setValue] = useState('personas');
|
|
1276
|
+
*
|
|
1277
|
+
* <KdsTabs value={value} onChange={(e, v) => setValue(v)} variant="fullWidth">
|
|
1278
|
+
* <KdsTab label="PERSONAS" value="personas" />
|
|
1279
|
+
* <KdsTab label="EMPRESAS" value="empresas" />
|
|
1280
|
+
* </KdsTabs>
|
|
1281
|
+
*
|
|
1282
|
+
* <KdsTabPanel value="personas" selectedValue={value}>
|
|
1283
|
+
* Personas content
|
|
1284
|
+
* </KdsTabPanel>
|
|
1285
|
+
* <KdsTabPanel value="empresas" selectedValue={value}>
|
|
1286
|
+
* Empresas content
|
|
1287
|
+
* </KdsTabPanel>
|
|
1288
|
+
* ```
|
|
1289
|
+
*/
|
|
1290
|
+
declare const KdsTabs: React__default.ForwardRefExoticComponent<Omit<KdsTabsProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
1291
|
+
|
|
1292
|
+
/**
|
|
1293
|
+
* Khipu Design System - LogoHeader Component
|
|
1294
|
+
*
|
|
1295
|
+
* A header bar component that displays the Khipu logo, a transaction code,
|
|
1296
|
+
* and a close button. Used at the top of payment flow screens.
|
|
1297
|
+
* Matches the Figma design: Pagos Instantaneos - MUI v610
|
|
1298
|
+
*
|
|
1299
|
+
* Built with composable sub-components for maximum flexibility.
|
|
1300
|
+
*/
|
|
1301
|
+
|
|
1302
|
+
interface KdsLogoHeaderProps extends BoxProps {
|
|
1303
|
+
/** Content - typically LogoHeader sub-components */
|
|
1304
|
+
children?: React__default.ReactNode;
|
|
1305
|
+
}
|
|
1306
|
+
interface KdsLogoHeaderLogoProps extends BoxProps {
|
|
1307
|
+
/** Custom logo content. Defaults to Khipu text logo */
|
|
1308
|
+
children?: React__default.ReactNode;
|
|
1309
|
+
}
|
|
1310
|
+
interface KdsLogoHeaderSeparatorProps extends BoxProps {
|
|
1311
|
+
/** Separator character. Defaults to "|" */
|
|
1312
|
+
children?: React__default.ReactNode;
|
|
1313
|
+
}
|
|
1314
|
+
interface KdsLogoHeaderCodeProps extends BoxProps {
|
|
1315
|
+
/** Transaction or reference code to display */
|
|
1316
|
+
children: React__default.ReactNode;
|
|
1317
|
+
}
|
|
1318
|
+
interface KdsLogoHeaderCloseButtonProps extends Omit<IconButtonProps, 'children'> {
|
|
1319
|
+
/** Callback fired when the close button is clicked */
|
|
1320
|
+
onClose?: () => void;
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
* Logo section of the LogoHeader.
|
|
1324
|
+
*
|
|
1325
|
+
* @example
|
|
1326
|
+
* ```tsx
|
|
1327
|
+
* <KdsLogoHeaderLogo />
|
|
1328
|
+
*
|
|
1329
|
+
* <KdsLogoHeaderLogo>
|
|
1330
|
+
* <img src="/custom-logo.svg" alt="Custom Logo" />
|
|
1331
|
+
* </KdsLogoHeaderLogo>
|
|
1332
|
+
* ```
|
|
1333
|
+
*/
|
|
1334
|
+
declare const KdsLogoHeaderLogo: React__default.ForwardRefExoticComponent<Omit<KdsLogoHeaderLogoProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
1335
|
+
/**
|
|
1336
|
+
* Separator element between logo and code.
|
|
1337
|
+
*
|
|
1338
|
+
* @example
|
|
1339
|
+
* ```tsx
|
|
1340
|
+
* <KdsLogoHeaderSeparator />
|
|
1341
|
+
*
|
|
1342
|
+
* <KdsLogoHeaderSeparator>•</KdsLogoHeaderSeparator>
|
|
1343
|
+
* ```
|
|
1344
|
+
*/
|
|
1345
|
+
declare const KdsLogoHeaderSeparator: React__default.ForwardRefExoticComponent<Omit<KdsLogoHeaderSeparatorProps, "ref"> & React__default.RefAttributes<HTMLSpanElement>>;
|
|
1346
|
+
/**
|
|
1347
|
+
* Transaction code section.
|
|
1348
|
+
*
|
|
1349
|
+
* @example
|
|
1350
|
+
* ```tsx
|
|
1351
|
+
* <KdsLogoHeaderCode>HUSK-P7ZZ-XGYG</KdsLogoHeaderCode>
|
|
1352
|
+
* ```
|
|
1353
|
+
*/
|
|
1354
|
+
declare const KdsLogoHeaderCode: React__default.ForwardRefExoticComponent<Omit<KdsLogoHeaderCodeProps, "ref"> & React__default.RefAttributes<HTMLSpanElement>>;
|
|
1355
|
+
/**
|
|
1356
|
+
* Close button for the header.
|
|
1357
|
+
*
|
|
1358
|
+
* @example
|
|
1359
|
+
* ```tsx
|
|
1360
|
+
* <KdsLogoHeaderCloseButton onClose={() => handleClose()} />
|
|
1361
|
+
* ```
|
|
1362
|
+
*/
|
|
1363
|
+
declare const KdsLogoHeaderCloseButton: React__default.ForwardRefExoticComponent<Omit<KdsLogoHeaderCloseButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1364
|
+
/**
|
|
1365
|
+
* LogoHeader bar component.
|
|
1366
|
+
*
|
|
1367
|
+
* A composable header component that can be used with sub-components
|
|
1368
|
+
* for maximum flexibility, or with default children for quick usage.
|
|
1369
|
+
*
|
|
1370
|
+
* @example
|
|
1371
|
+
* ```tsx
|
|
1372
|
+
* // Composable usage
|
|
1373
|
+
* <KdsLogoHeader>
|
|
1374
|
+
* <KdsLogoHeaderLogo />
|
|
1375
|
+
* <KdsLogoHeaderSeparator />
|
|
1376
|
+
* <KdsLogoHeaderCode>HUSK-P7ZZ-XGYG</KdsLogoHeaderCode>
|
|
1377
|
+
* <KdsLogoHeaderCloseButton onClose={() => handleClose()} />
|
|
1378
|
+
* </KdsLogoHeader>
|
|
1379
|
+
*
|
|
1380
|
+
* // Simple usage with defaults
|
|
1381
|
+
* <KdsLogoHeader>
|
|
1382
|
+
* <KdsLogoHeaderLogo />
|
|
1383
|
+
* <KdsLogoHeaderSeparator />
|
|
1384
|
+
* <KdsLogoHeaderCode>ABC-1234-XYZ</KdsLogoHeaderCode>
|
|
1385
|
+
* </KdsLogoHeader>
|
|
1386
|
+
* ```
|
|
1387
|
+
*/
|
|
1388
|
+
declare const KdsLogoHeader: React__default.ForwardRefExoticComponent<Omit<KdsLogoHeaderProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
1389
|
+
|
|
1390
|
+
export { type Colors, KdsAlert, type KdsAlertProps, type KdsAlertSeverity, type KdsAlertVariant, KdsButton, type KdsButtonColor, type KdsButtonProps, type KdsButtonSize, type KdsButtonVariant, KdsCard, KdsCardActions, type KdsCardActionsProps, KdsCardContent, type KdsCardContentProps, type KdsCardElevation, KdsCardHeader, type KdsCardHeaderProps, type KdsCardProps, type KdsCardVariant, KdsCheckbox, type KdsCheckboxColor, type KdsCheckboxProps, type KdsCheckboxSize, KdsLinearProgress, type KdsLinearProgressColor, type KdsLinearProgressProps, type KdsLinearProgressVariant, KdsLogoHeader, KdsLogoHeaderCloseButton, type KdsLogoHeaderCloseButtonProps, KdsLogoHeaderCode, type KdsLogoHeaderCodeProps, KdsLogoHeaderLogo, type KdsLogoHeaderLogoProps, type KdsLogoHeaderProps, KdsLogoHeaderSeparator, type KdsLogoHeaderSeparatorProps, KdsModal, type KdsModalProps, type KdsModalSize, KdsSpinner, type KdsSpinnerColor, type KdsSpinnerProps, type KdsSpinnerSize, KdsTab, KdsTabPanel, type KdsTabPanelProps, type KdsTabProps, KdsTabs, type KdsTabsColor, type KdsTabsProps, type KdsTabsVariant, KdsTextField, type KdsTextFieldProps, type KdsTextFieldSize, type KdsTextFieldVariant, KdsTypography, type KdsTypographyProps, type KdsTypographyVariant, type KhipuTheme, KhipuThemeProvider, type KhipuThemeProviderProps, type Tokens, type Typography as TypographyTokens, borderRadius, breakpoints, colors, fontFamilies, fontSizes, fontWeights, khipuTheme, letterSpacings, lineHeights, semanticSpacing, shadows, spacing, tokens, transitions, typography, zIndex };
|