@vacano/ui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +182 -0
- package/dist/Minus-BxmZQPsb.js +1212 -0
- package/dist/Minus-BxmZQPsb.js.map +1 -0
- package/dist/Minus-C6HNRQfO.cjs +16 -0
- package/dist/Minus-C6HNRQfO.cjs.map +1 -0
- package/dist/icons.cjs +2 -0
- package/dist/icons.cjs.map +1 -0
- package/dist/icons.d.ts +3805 -0
- package/dist/icons.js +47869 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.cjs +755 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +899 -0
- package/dist/index.js +6599 -0
- package/dist/index.js.map +1 -0
- package/package.json +145 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,899 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { ChangeEventHandler } from 'react';
|
|
3
|
+
import { HTMLAttributes } from 'react';
|
|
4
|
+
import { InputHTMLAttributes } from 'react';
|
|
5
|
+
import { JSX } from '@emotion/react/jsx-runtime';
|
|
6
|
+
import { PropsWithChildren } from 'react';
|
|
7
|
+
import { ReactNode } from 'react';
|
|
8
|
+
import { Ref } from 'react';
|
|
9
|
+
|
|
10
|
+
export declare const Button: ({ char, children, className, classnames, disabled, fullWidth, icon, loading, onClick, variant, ...rest }: ButtonProps) => JSX.Element;
|
|
11
|
+
|
|
12
|
+
export declare type ButtonClassnames = {
|
|
13
|
+
container?: string;
|
|
14
|
+
content?: string;
|
|
15
|
+
icon?: string;
|
|
16
|
+
text?: string;
|
|
17
|
+
char?: string;
|
|
18
|
+
loader?: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export declare type ButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> & {
|
|
22
|
+
char?: string;
|
|
23
|
+
children?: string;
|
|
24
|
+
classnames?: ButtonClassnames;
|
|
25
|
+
'data-test-id'?: string;
|
|
26
|
+
fullWidth?: boolean;
|
|
27
|
+
icon?: ReactNode;
|
|
28
|
+
loading?: boolean;
|
|
29
|
+
variant?: ButtonVariant;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export declare type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger';
|
|
33
|
+
|
|
34
|
+
declare type ButtonVariantTheme = {
|
|
35
|
+
color: string;
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
borderColor: string;
|
|
38
|
+
hover: {
|
|
39
|
+
backgroundColor: string;
|
|
40
|
+
borderColor: string;
|
|
41
|
+
};
|
|
42
|
+
active: {
|
|
43
|
+
backgroundColor: string;
|
|
44
|
+
borderColor: string;
|
|
45
|
+
};
|
|
46
|
+
focus: {
|
|
47
|
+
outlineColor: string;
|
|
48
|
+
};
|
|
49
|
+
disabled: {
|
|
50
|
+
color: string;
|
|
51
|
+
backgroundColor: string;
|
|
52
|
+
borderColor: string;
|
|
53
|
+
};
|
|
54
|
+
char: {
|
|
55
|
+
color: string;
|
|
56
|
+
backgroundColor: string;
|
|
57
|
+
};
|
|
58
|
+
icon: {
|
|
59
|
+
color: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export declare const Checkbox: ({ checked, className, classnames, disabled, indeterminate, label, onChange, ref, state, ...rest }: CheckboxProps) => JSX.Element;
|
|
64
|
+
|
|
65
|
+
export declare const CheckboxCard: ({ checked, className, classnames, description, disabled, fullWidth, label, onChange, ref, state, ...rest }: CheckboxCardProps) => JSX.Element;
|
|
66
|
+
|
|
67
|
+
export declare type CheckboxCardClassnames = {
|
|
68
|
+
container?: string;
|
|
69
|
+
checkbox?: string;
|
|
70
|
+
content?: string;
|
|
71
|
+
label?: string;
|
|
72
|
+
description?: string;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export declare type CheckboxCardProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'onChange'> & {
|
|
76
|
+
checked: boolean;
|
|
77
|
+
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
78
|
+
label: string;
|
|
79
|
+
description?: string;
|
|
80
|
+
fullWidth?: boolean;
|
|
81
|
+
state?: CheckboxCardState;
|
|
82
|
+
className?: string;
|
|
83
|
+
classnames?: CheckboxCardClassnames;
|
|
84
|
+
ref?: Ref<HTMLInputElement>;
|
|
85
|
+
'data-test-id'?: string;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export declare type CheckboxCardState = 'warning' | 'error';
|
|
89
|
+
|
|
90
|
+
declare type CheckboxCardStateTheme = {
|
|
91
|
+
container: {
|
|
92
|
+
borderColor: string;
|
|
93
|
+
checked: {
|
|
94
|
+
borderColor: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
label: {
|
|
98
|
+
color: string;
|
|
99
|
+
};
|
|
100
|
+
description: {
|
|
101
|
+
color: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
declare type CheckboxCardTheme = {
|
|
106
|
+
container: {
|
|
107
|
+
backgroundColor: string;
|
|
108
|
+
borderColor: string;
|
|
109
|
+
hover: {
|
|
110
|
+
borderColor: string;
|
|
111
|
+
};
|
|
112
|
+
checked: {
|
|
113
|
+
backgroundColor: string;
|
|
114
|
+
borderColor: string;
|
|
115
|
+
};
|
|
116
|
+
focus: {
|
|
117
|
+
outlineColor: string;
|
|
118
|
+
};
|
|
119
|
+
disabled: {
|
|
120
|
+
backgroundColor: string;
|
|
121
|
+
borderColor: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
label: {
|
|
125
|
+
color: string;
|
|
126
|
+
disabled: {
|
|
127
|
+
color: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
description: {
|
|
131
|
+
color: string;
|
|
132
|
+
disabled: {
|
|
133
|
+
color: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
state: {
|
|
137
|
+
warning: CheckboxCardStateTheme;
|
|
138
|
+
error: CheckboxCardStateTheme;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export declare type CheckboxClassnames = {
|
|
143
|
+
container?: string;
|
|
144
|
+
input?: string;
|
|
145
|
+
box?: string;
|
|
146
|
+
icon?: string;
|
|
147
|
+
label?: string;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export declare const CheckboxGroup: ({ className, classnames, disabled, label, onChange, options, value, ...rest }: CheckboxGroupProps) => JSX.Element;
|
|
151
|
+
|
|
152
|
+
export declare type CheckboxGroupClassnames = {
|
|
153
|
+
container?: string;
|
|
154
|
+
label?: string;
|
|
155
|
+
options?: string;
|
|
156
|
+
checkbox?: string;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
export declare type CheckboxGroupOption = {
|
|
160
|
+
label: string;
|
|
161
|
+
value: string;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
export declare type CheckboxGroupProps = {
|
|
165
|
+
options: CheckboxGroupOption[];
|
|
166
|
+
value: string[];
|
|
167
|
+
onChange: (values: string[]) => void;
|
|
168
|
+
label?: string;
|
|
169
|
+
disabled?: boolean;
|
|
170
|
+
className?: string;
|
|
171
|
+
classnames?: CheckboxGroupClassnames;
|
|
172
|
+
'data-test-id'?: string;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
declare type CheckboxGroupTheme = {
|
|
176
|
+
label: {
|
|
177
|
+
color: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export declare type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'onChange'> & {
|
|
182
|
+
checked: boolean;
|
|
183
|
+
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
184
|
+
'data-test-id'?: string;
|
|
185
|
+
classnames?: CheckboxClassnames;
|
|
186
|
+
indeterminate?: boolean;
|
|
187
|
+
label?: string;
|
|
188
|
+
ref?: Ref<HTMLInputElement>;
|
|
189
|
+
state?: CheckboxState;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export declare type CheckboxState = 'warning' | 'error';
|
|
193
|
+
|
|
194
|
+
declare type CheckboxStateTheme = {
|
|
195
|
+
box: {
|
|
196
|
+
borderColor: string;
|
|
197
|
+
checked: {
|
|
198
|
+
backgroundColor: string;
|
|
199
|
+
borderColor: string;
|
|
200
|
+
};
|
|
201
|
+
focus: {
|
|
202
|
+
shadowColor: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
label: {
|
|
206
|
+
color: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
declare type CheckboxTheme = {
|
|
211
|
+
box: {
|
|
212
|
+
backgroundColor: string;
|
|
213
|
+
borderColor: string;
|
|
214
|
+
checked: {
|
|
215
|
+
backgroundColor: string;
|
|
216
|
+
borderColor: string;
|
|
217
|
+
};
|
|
218
|
+
focus: {
|
|
219
|
+
shadowColor: string;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
icon: {
|
|
223
|
+
color: string;
|
|
224
|
+
};
|
|
225
|
+
label: {
|
|
226
|
+
color: string;
|
|
227
|
+
};
|
|
228
|
+
state: {
|
|
229
|
+
warning: CheckboxStateTheme;
|
|
230
|
+
error: CheckboxStateTheme;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export declare const Chip: ({ children, className, classnames, fullWidth, status, ...rest }: PropsWithChildren<ChipProps>) => JSX.Element;
|
|
235
|
+
|
|
236
|
+
export declare type ChipClassnames = {
|
|
237
|
+
container?: string;
|
|
238
|
+
text?: string;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export declare type ChipProps = HTMLAttributes<HTMLSpanElement> & {
|
|
242
|
+
classnames?: ChipClassnames;
|
|
243
|
+
'data-test-id'?: string;
|
|
244
|
+
fullWidth?: boolean;
|
|
245
|
+
status?: ChipStatus;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
export declare type ChipStatus = 'neutral' | 'success' | 'warning' | 'error';
|
|
249
|
+
|
|
250
|
+
export declare const Dropdown: ({ trigger, children, placement, align, offset, open, onOpenChange, portalRenderNode, classnames, className, fullWidth, ...rest }: DropdownProps) => JSX.Element;
|
|
251
|
+
|
|
252
|
+
export declare type DropdownAlign = 'start' | 'end';
|
|
253
|
+
|
|
254
|
+
export declare type DropdownClassnames = {
|
|
255
|
+
container?: string;
|
|
256
|
+
trigger?: string;
|
|
257
|
+
content?: string;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
export declare type DropdownPlacement = 'top' | 'bottom';
|
|
261
|
+
|
|
262
|
+
export declare type DropdownProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
263
|
+
trigger: ReactNode;
|
|
264
|
+
children: ReactNode;
|
|
265
|
+
placement?: DropdownPlacement;
|
|
266
|
+
align?: DropdownAlign;
|
|
267
|
+
offset?: number;
|
|
268
|
+
open?: boolean;
|
|
269
|
+
onOpenChange?: (open: boolean) => void;
|
|
270
|
+
portalRenderNode?: HTMLElement | null;
|
|
271
|
+
classnames?: DropdownClassnames;
|
|
272
|
+
fullWidth?: boolean;
|
|
273
|
+
'data-test-id'?: string;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
declare type DropdownTheme = {
|
|
277
|
+
content: {
|
|
278
|
+
backgroundColor: string;
|
|
279
|
+
borderColor: string;
|
|
280
|
+
shadow: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export declare const GlobalStyle: () => JSX.Element;
|
|
285
|
+
|
|
286
|
+
export declare const Input: ({ className, classnames, fullWidth, icon, label, onChange, onBlur, onFocus, ref, state, type, value, ...rest }: InputProps) => JSX.Element;
|
|
287
|
+
|
|
288
|
+
export declare type InputClassnames = {
|
|
289
|
+
container?: string;
|
|
290
|
+
label?: string;
|
|
291
|
+
wrapper?: string;
|
|
292
|
+
input?: string;
|
|
293
|
+
icon?: string;
|
|
294
|
+
toggle?: string;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
export declare type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'onChange'> & {
|
|
298
|
+
value: string;
|
|
299
|
+
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
300
|
+
type?: InputType;
|
|
301
|
+
label?: string;
|
|
302
|
+
icon?: ReactNode;
|
|
303
|
+
state?: InputState;
|
|
304
|
+
fullWidth?: boolean;
|
|
305
|
+
className?: string;
|
|
306
|
+
classnames?: InputClassnames;
|
|
307
|
+
ref?: Ref<HTMLInputElement>;
|
|
308
|
+
'data-test-id'?: string;
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
export declare type InputState = 'warning' | 'error';
|
|
312
|
+
|
|
313
|
+
declare type InputStateTheme = {
|
|
314
|
+
wrapper: {
|
|
315
|
+
backgroundColor: string;
|
|
316
|
+
borderColor: string;
|
|
317
|
+
focus: {
|
|
318
|
+
outlineColor: string;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
label: {
|
|
322
|
+
color: string;
|
|
323
|
+
};
|
|
324
|
+
input: {
|
|
325
|
+
color: string;
|
|
326
|
+
placeholderColor: string;
|
|
327
|
+
};
|
|
328
|
+
icon: {
|
|
329
|
+
color: string;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
declare type InputTheme = {
|
|
334
|
+
wrapper: {
|
|
335
|
+
backgroundColor: string;
|
|
336
|
+
borderColor: string;
|
|
337
|
+
focus: {
|
|
338
|
+
outlineColor: string;
|
|
339
|
+
};
|
|
340
|
+
disabled: {
|
|
341
|
+
backgroundColor: string;
|
|
342
|
+
borderColor: string;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
label: {
|
|
346
|
+
color: string;
|
|
347
|
+
};
|
|
348
|
+
input: {
|
|
349
|
+
color: string;
|
|
350
|
+
placeholderColor: string;
|
|
351
|
+
disabled: {
|
|
352
|
+
color: string;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
icon: {
|
|
356
|
+
color: string;
|
|
357
|
+
disabled: {
|
|
358
|
+
color: string;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
toggle: {
|
|
362
|
+
color: string;
|
|
363
|
+
};
|
|
364
|
+
state: {
|
|
365
|
+
warning: InputStateTheme;
|
|
366
|
+
error: InputStateTheme;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
export declare type InputType = InputHTMLAttributes<HTMLInputElement>['type'];
|
|
371
|
+
|
|
372
|
+
export declare const Loader: ({ "aria-label": ariaLabel, className, classnames, size, ...rest }: LoaderProps) => JSX.Element;
|
|
373
|
+
|
|
374
|
+
export declare type LoaderClassnames = {
|
|
375
|
+
container?: string;
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
export declare type LoaderProps = HTMLAttributes<HTMLSpanElement> & {
|
|
379
|
+
'aria-label'?: string;
|
|
380
|
+
'data-test-id'?: string;
|
|
381
|
+
classnames?: LoaderClassnames;
|
|
382
|
+
size?: number;
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
export declare const Radio: ({ checked, className, classnames, disabled, label, onChange, ref, state, ...rest }: RadioProps) => JSX.Element;
|
|
386
|
+
|
|
387
|
+
export declare const RadioCard: ({ checked, className, classnames, description, disabled, fullWidth, label, onChange, ref, state, ...rest }: RadioCardProps) => JSX.Element;
|
|
388
|
+
|
|
389
|
+
export declare type RadioCardClassnames = {
|
|
390
|
+
container?: string;
|
|
391
|
+
radio?: string;
|
|
392
|
+
content?: string;
|
|
393
|
+
label?: string;
|
|
394
|
+
description?: string;
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
export declare type RadioCardProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'onChange'> & {
|
|
398
|
+
checked: boolean;
|
|
399
|
+
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
400
|
+
label: string;
|
|
401
|
+
description?: string;
|
|
402
|
+
fullWidth?: boolean;
|
|
403
|
+
state?: RadioCardState;
|
|
404
|
+
className?: string;
|
|
405
|
+
classnames?: RadioCardClassnames;
|
|
406
|
+
ref?: Ref<HTMLInputElement>;
|
|
407
|
+
'data-test-id'?: string;
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
export declare type RadioCardState = 'warning' | 'error';
|
|
411
|
+
|
|
412
|
+
declare type RadioCardStateTheme = {
|
|
413
|
+
container: {
|
|
414
|
+
borderColor: string;
|
|
415
|
+
checked: {
|
|
416
|
+
borderColor: string;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
label: {
|
|
420
|
+
color: string;
|
|
421
|
+
};
|
|
422
|
+
description: {
|
|
423
|
+
color: string;
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
declare type RadioCardTheme = {
|
|
428
|
+
container: {
|
|
429
|
+
backgroundColor: string;
|
|
430
|
+
borderColor: string;
|
|
431
|
+
hover: {
|
|
432
|
+
borderColor: string;
|
|
433
|
+
};
|
|
434
|
+
checked: {
|
|
435
|
+
backgroundColor: string;
|
|
436
|
+
borderColor: string;
|
|
437
|
+
};
|
|
438
|
+
focus: {
|
|
439
|
+
outlineColor: string;
|
|
440
|
+
};
|
|
441
|
+
disabled: {
|
|
442
|
+
backgroundColor: string;
|
|
443
|
+
borderColor: string;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
label: {
|
|
447
|
+
color: string;
|
|
448
|
+
disabled: {
|
|
449
|
+
color: string;
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
description: {
|
|
453
|
+
color: string;
|
|
454
|
+
disabled: {
|
|
455
|
+
color: string;
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
state: {
|
|
459
|
+
warning: RadioCardStateTheme;
|
|
460
|
+
error: RadioCardStateTheme;
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
export declare type RadioClassnames = {
|
|
465
|
+
container?: string;
|
|
466
|
+
input?: string;
|
|
467
|
+
circle?: string;
|
|
468
|
+
dot?: string;
|
|
469
|
+
label?: string;
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
export declare const RadioGroup: ({ className, classnames, disabled, label, name, onChange, options, value, ...rest }: RadioGroupProps) => JSX.Element;
|
|
473
|
+
|
|
474
|
+
export declare type RadioGroupClassnames = {
|
|
475
|
+
container?: string;
|
|
476
|
+
label?: string;
|
|
477
|
+
options?: string;
|
|
478
|
+
radio?: string;
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
export declare type RadioGroupOption = {
|
|
482
|
+
label: string;
|
|
483
|
+
value: string;
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
export declare type RadioGroupProps = {
|
|
487
|
+
value: string;
|
|
488
|
+
options: RadioGroupOption[];
|
|
489
|
+
onChange: (value: string) => void;
|
|
490
|
+
label?: string;
|
|
491
|
+
name?: string;
|
|
492
|
+
disabled?: boolean;
|
|
493
|
+
className?: string;
|
|
494
|
+
classnames?: RadioGroupClassnames;
|
|
495
|
+
'data-test-id'?: string;
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
declare type RadioGroupTheme = {
|
|
499
|
+
label: {
|
|
500
|
+
color: string;
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
export declare type RadioProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'onChange'> & {
|
|
505
|
+
checked: boolean;
|
|
506
|
+
classnames?: RadioClassnames;
|
|
507
|
+
'data-test-id'?: string;
|
|
508
|
+
label?: string;
|
|
509
|
+
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
510
|
+
ref?: Ref<HTMLInputElement>;
|
|
511
|
+
state?: RadioState;
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
export declare type RadioState = 'warning' | 'error';
|
|
515
|
+
|
|
516
|
+
declare type RadioStateTheme = {
|
|
517
|
+
circle: {
|
|
518
|
+
borderColor: string;
|
|
519
|
+
checked: {
|
|
520
|
+
borderColor: string;
|
|
521
|
+
};
|
|
522
|
+
focus: {
|
|
523
|
+
shadowColor: string;
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
dot: {
|
|
527
|
+
color: string;
|
|
528
|
+
};
|
|
529
|
+
label: {
|
|
530
|
+
color: string;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
declare type RadioTheme = {
|
|
535
|
+
circle: {
|
|
536
|
+
borderColor: string;
|
|
537
|
+
checked: {
|
|
538
|
+
borderColor: string;
|
|
539
|
+
};
|
|
540
|
+
focus: {
|
|
541
|
+
shadowColor: string;
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
dot: {
|
|
545
|
+
color: string;
|
|
546
|
+
};
|
|
547
|
+
label: {
|
|
548
|
+
color: string;
|
|
549
|
+
};
|
|
550
|
+
state: {
|
|
551
|
+
warning: RadioStateTheme;
|
|
552
|
+
error: RadioStateTheme;
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
export declare const Select: ({ options, value, onChange, placeholder, searchPlaceholder, emptyMessage, label, icon, state, disabled, fullWidth, placement, maxHeight, virtualized, searchable, portalRenderNode, className, classnames, ...rest }: SelectProps) => JSX.Element;
|
|
557
|
+
|
|
558
|
+
export declare type SelectClassnames = {
|
|
559
|
+
container?: string;
|
|
560
|
+
label?: string;
|
|
561
|
+
trigger?: string;
|
|
562
|
+
content?: string;
|
|
563
|
+
search?: string;
|
|
564
|
+
list?: string;
|
|
565
|
+
option?: string;
|
|
566
|
+
empty?: string;
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
export declare type SelectOption = {
|
|
570
|
+
label: string;
|
|
571
|
+
value: string;
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
export declare type SelectPlacement = 'top' | 'bottom';
|
|
575
|
+
|
|
576
|
+
export declare type SelectProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
577
|
+
options: SelectOption[];
|
|
578
|
+
value?: string;
|
|
579
|
+
onChange?: (value: string) => void;
|
|
580
|
+
placeholder?: string;
|
|
581
|
+
searchPlaceholder?: string;
|
|
582
|
+
emptyMessage?: string;
|
|
583
|
+
label?: string;
|
|
584
|
+
icon?: ReactNode;
|
|
585
|
+
state?: SelectState;
|
|
586
|
+
disabled?: boolean;
|
|
587
|
+
fullWidth?: boolean;
|
|
588
|
+
placement?: SelectPlacement;
|
|
589
|
+
maxHeight?: number;
|
|
590
|
+
virtualized?: boolean;
|
|
591
|
+
searchable?: boolean;
|
|
592
|
+
portalRenderNode?: HTMLElement | null;
|
|
593
|
+
classnames?: SelectClassnames;
|
|
594
|
+
'data-test-id'?: string;
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
export declare type SelectState = 'warning' | 'error';
|
|
598
|
+
|
|
599
|
+
declare type SelectStateTheme = {
|
|
600
|
+
trigger: {
|
|
601
|
+
backgroundColor: string;
|
|
602
|
+
borderColor: string;
|
|
603
|
+
focus: {
|
|
604
|
+
outlineColor: string;
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
label: {
|
|
608
|
+
color: string;
|
|
609
|
+
};
|
|
610
|
+
value: {
|
|
611
|
+
color: string;
|
|
612
|
+
placeholderColor: string;
|
|
613
|
+
};
|
|
614
|
+
icon: {
|
|
615
|
+
color: string;
|
|
616
|
+
};
|
|
617
|
+
chevron: {
|
|
618
|
+
color: string;
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
declare type SelectTheme = {
|
|
623
|
+
trigger: {
|
|
624
|
+
backgroundColor: string;
|
|
625
|
+
borderColor: string;
|
|
626
|
+
focus: {
|
|
627
|
+
outlineColor: string;
|
|
628
|
+
};
|
|
629
|
+
disabled: {
|
|
630
|
+
backgroundColor: string;
|
|
631
|
+
borderColor: string;
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
label: {
|
|
635
|
+
color: string;
|
|
636
|
+
};
|
|
637
|
+
value: {
|
|
638
|
+
color: string;
|
|
639
|
+
placeholderColor: string;
|
|
640
|
+
disabled: {
|
|
641
|
+
color: string;
|
|
642
|
+
};
|
|
643
|
+
};
|
|
644
|
+
icon: {
|
|
645
|
+
color: string;
|
|
646
|
+
disabled: {
|
|
647
|
+
color: string;
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
chevron: {
|
|
651
|
+
color: string;
|
|
652
|
+
disabled: {
|
|
653
|
+
color: string;
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
content: {
|
|
657
|
+
backgroundColor: string;
|
|
658
|
+
borderColor: string;
|
|
659
|
+
shadow: string;
|
|
660
|
+
};
|
|
661
|
+
option: {
|
|
662
|
+
color: string;
|
|
663
|
+
backgroundColor: string;
|
|
664
|
+
hover: {
|
|
665
|
+
backgroundColor: string;
|
|
666
|
+
};
|
|
667
|
+
selected: {
|
|
668
|
+
backgroundColor: string;
|
|
669
|
+
color: string;
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
search: {
|
|
673
|
+
backgroundColor: string;
|
|
674
|
+
borderColor: string;
|
|
675
|
+
color: string;
|
|
676
|
+
placeholderColor: string;
|
|
677
|
+
};
|
|
678
|
+
empty: {
|
|
679
|
+
color: string;
|
|
680
|
+
};
|
|
681
|
+
state: {
|
|
682
|
+
warning: SelectStateTheme;
|
|
683
|
+
error: SelectStateTheme;
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
|
|
687
|
+
export declare const Spinner: ({ "aria-label": ariaLabel, className, classnames, size, ...rest }: SpinnerProps) => JSX.Element;
|
|
688
|
+
|
|
689
|
+
export declare type SpinnerClassnames = {
|
|
690
|
+
container?: string;
|
|
691
|
+
};
|
|
692
|
+
|
|
693
|
+
export declare type SpinnerProps = HTMLAttributes<HTMLSpanElement> & {
|
|
694
|
+
'aria-label'?: string;
|
|
695
|
+
classnames?: SpinnerClassnames;
|
|
696
|
+
'data-test-id'?: string;
|
|
697
|
+
size?: number;
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
export declare type StyledButtonCharProps = {
|
|
701
|
+
$variant: ButtonVariant;
|
|
702
|
+
$loading?: boolean;
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
export declare type StyledButtonContainerProps = {
|
|
706
|
+
$variant: ButtonVariant;
|
|
707
|
+
$fullWidth?: boolean;
|
|
708
|
+
$loading?: boolean;
|
|
709
|
+
$iconOnly?: boolean;
|
|
710
|
+
};
|
|
711
|
+
|
|
712
|
+
export declare type StyledButtonIconWrapperProps = {
|
|
713
|
+
$variant: ButtonVariant;
|
|
714
|
+
$loading?: boolean;
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
export declare type StyledButtonTextProps = {
|
|
718
|
+
$loading?: boolean;
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
export declare type StyledCheckboxCardContainerProps = {
|
|
722
|
+
$checked?: boolean;
|
|
723
|
+
$disabled?: boolean;
|
|
724
|
+
$fullWidth?: boolean;
|
|
725
|
+
$state?: CheckboxCardState;
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
export declare type StyledCheckboxCardDescriptionProps = {
|
|
729
|
+
$state?: CheckboxCardState;
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
export declare type StyledCheckboxCardLabelProps = {
|
|
733
|
+
$state?: CheckboxCardState;
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
export declare type StyledChipContainerProps = {
|
|
737
|
+
$status?: ChipStatus;
|
|
738
|
+
$fullWidth?: boolean;
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
export declare type StyledDropdownContainerProps = {
|
|
742
|
+
$fullWidth?: boolean;
|
|
743
|
+
};
|
|
744
|
+
|
|
745
|
+
export declare type StyledDropdownContentProps = {
|
|
746
|
+
$isOpen: boolean;
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
export declare type StyledDropdownTriggerProps = {
|
|
750
|
+
$fullWidth?: boolean;
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
export declare type StyledInputContainerProps = {
|
|
754
|
+
$fullWidth?: boolean;
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
export declare type StyledInputFieldProps = {
|
|
758
|
+
$state?: InputState;
|
|
759
|
+
};
|
|
760
|
+
|
|
761
|
+
export declare type StyledInputIconWrapperProps = {
|
|
762
|
+
$disabled?: boolean;
|
|
763
|
+
$state?: InputState;
|
|
764
|
+
};
|
|
765
|
+
|
|
766
|
+
export declare type StyledInputLabelProps = {
|
|
767
|
+
$state?: InputState;
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
export declare type StyledInputToggleProps = {
|
|
771
|
+
$state?: InputState;
|
|
772
|
+
$disabled?: boolean;
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
export declare type StyledInputWrapperProps = {
|
|
776
|
+
$state?: InputState;
|
|
777
|
+
$disabled?: boolean;
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
export declare type StyledLoaderContainerProps = {
|
|
781
|
+
$size: number;
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
export declare type StyledRadioCardContainerProps = {
|
|
785
|
+
$checked?: boolean;
|
|
786
|
+
$disabled?: boolean;
|
|
787
|
+
$fullWidth?: boolean;
|
|
788
|
+
$state?: RadioCardState;
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
export declare type StyledRadioCardDescriptionProps = {
|
|
792
|
+
$state?: RadioCardState;
|
|
793
|
+
};
|
|
794
|
+
|
|
795
|
+
export declare type StyledRadioCardLabelProps = {
|
|
796
|
+
$state?: RadioCardState;
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
export declare type StyledSelectChevronProps = {
|
|
800
|
+
$state?: SelectState;
|
|
801
|
+
$disabled?: boolean;
|
|
802
|
+
$isOpen?: boolean;
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
export declare type StyledSelectContainerProps = {
|
|
806
|
+
$fullWidth?: boolean;
|
|
807
|
+
};
|
|
808
|
+
|
|
809
|
+
export declare type StyledSelectContentProps = {
|
|
810
|
+
$isOpen: boolean;
|
|
811
|
+
$maxHeight: number;
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
export declare type StyledSelectIconProps = {
|
|
815
|
+
$state?: SelectState;
|
|
816
|
+
$disabled?: boolean;
|
|
817
|
+
};
|
|
818
|
+
|
|
819
|
+
export declare type StyledSelectLabelProps = {
|
|
820
|
+
$state?: SelectState;
|
|
821
|
+
};
|
|
822
|
+
|
|
823
|
+
export declare type StyledSelectOptionProps = {
|
|
824
|
+
$isSelected?: boolean;
|
|
825
|
+
$isHighlighted?: boolean;
|
|
826
|
+
};
|
|
827
|
+
|
|
828
|
+
export declare type StyledSelectTriggerProps = {
|
|
829
|
+
$state?: SelectState;
|
|
830
|
+
$disabled?: boolean;
|
|
831
|
+
$isOpen?: boolean;
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
export declare type StyledSelectValueProps = {
|
|
835
|
+
$isPlaceholder?: boolean;
|
|
836
|
+
$state?: SelectState;
|
|
837
|
+
$disabled?: boolean;
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
export declare type StyledSpinnerContainerProps = {
|
|
841
|
+
$size: number;
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
export declare type Theme = {
|
|
845
|
+
chip: {
|
|
846
|
+
color: {
|
|
847
|
+
default: string;
|
|
848
|
+
neutral: string;
|
|
849
|
+
success: string;
|
|
850
|
+
warning: string;
|
|
851
|
+
error: string;
|
|
852
|
+
};
|
|
853
|
+
backgroundColor: {
|
|
854
|
+
default: string;
|
|
855
|
+
neutral: string;
|
|
856
|
+
success: string;
|
|
857
|
+
warning: string;
|
|
858
|
+
error: string;
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
button: {
|
|
862
|
+
primary: ButtonVariantTheme;
|
|
863
|
+
secondary: ButtonVariantTheme;
|
|
864
|
+
ghost: ButtonVariantTheme;
|
|
865
|
+
danger: ButtonVariantTheme;
|
|
866
|
+
};
|
|
867
|
+
checkbox: CheckboxTheme;
|
|
868
|
+
checkboxCard: CheckboxCardTheme;
|
|
869
|
+
checkboxGroup: CheckboxGroupTheme;
|
|
870
|
+
input: InputTheme;
|
|
871
|
+
radio: RadioTheme;
|
|
872
|
+
radioCard: RadioCardTheme;
|
|
873
|
+
radioGroup: RadioGroupTheme;
|
|
874
|
+
dropdown: DropdownTheme;
|
|
875
|
+
select: SelectTheme;
|
|
876
|
+
};
|
|
877
|
+
|
|
878
|
+
export declare interface ThemeContextValue {
|
|
879
|
+
theme: Theme;
|
|
880
|
+
mode: ThemeMode;
|
|
881
|
+
setMode: (mode: ThemeMode) => void;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
export declare const themeDark: Theme;
|
|
885
|
+
|
|
886
|
+
export declare const themeLight: Theme;
|
|
887
|
+
|
|
888
|
+
export declare type ThemeMode = 'light' | 'dark';
|
|
889
|
+
|
|
890
|
+
export declare function ThemeProvider({ children, defaultMode }: ThemeProviderProps): JSX.Element;
|
|
891
|
+
|
|
892
|
+
export declare interface ThemeProviderProps {
|
|
893
|
+
children: ReactNode;
|
|
894
|
+
defaultMode?: ThemeMode;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
export declare const useTheme: () => ThemeContextValue;
|
|
898
|
+
|
|
899
|
+
export { }
|