koval-ui 0.12.19
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 +53 -0
- package/dist/index.d.ts +1646 -0
- package/dist/index.js +3922 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +3 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/style.css +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +154 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1646 @@
|
|
|
1
|
+
import { AriaAttributes } from 'react';
|
|
2
|
+
import { AriaRole } from 'react';
|
|
3
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
4
|
+
import { ChangeEvent } from 'react';
|
|
5
|
+
import { ComponentProps } from 'react';
|
|
6
|
+
import { DetailedHTMLProps } from 'react';
|
|
7
|
+
import { ElementType } from 'react';
|
|
8
|
+
import { FC } from 'react';
|
|
9
|
+
import { FieldsetHTMLAttributes } from 'react';
|
|
10
|
+
import { FocusEvent as FocusEvent_2 } from 'react';
|
|
11
|
+
import { FormHTMLAttributes } from 'react';
|
|
12
|
+
import { ForwardedRef } from 'react';
|
|
13
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
14
|
+
import { HTMLAttributes } from 'react';
|
|
15
|
+
import { ImgHTMLAttributes } from 'react';
|
|
16
|
+
import { InputHTMLAttributes } from 'react';
|
|
17
|
+
import { InvalidEvent } from 'react';
|
|
18
|
+
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
19
|
+
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
20
|
+
import { Placement } from '@floating-ui/react-dom';
|
|
21
|
+
import { ReactElement } from 'react';
|
|
22
|
+
import { ReactNode } from 'react';
|
|
23
|
+
import { RefAttributes } from 'react';
|
|
24
|
+
import { SelectHTMLAttributes } from 'react';
|
|
25
|
+
import { SVGProps } from 'react';
|
|
26
|
+
import { SyntheticEvent } from 'react';
|
|
27
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
28
|
+
|
|
29
|
+
export declare const A: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
30
|
+
id?: string | undefined;
|
|
31
|
+
role?: AriaRole | undefined;
|
|
32
|
+
className?: string | undefined;
|
|
33
|
+
} & {
|
|
34
|
+
children?: ReactNode;
|
|
35
|
+
} & {
|
|
36
|
+
href?: string | undefined;
|
|
37
|
+
} & RefAttributes<HTMLAnchorElement>>;
|
|
38
|
+
|
|
39
|
+
declare const Actions: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
40
|
+
id?: string | undefined;
|
|
41
|
+
role?: AriaRole | undefined;
|
|
42
|
+
className?: string | undefined;
|
|
43
|
+
} & {
|
|
44
|
+
children?: ReactNode;
|
|
45
|
+
/** Provide an array of actions with callbacks */
|
|
46
|
+
actions?: (Props_6 | [Props_6, Props_6])[] | undefined;
|
|
47
|
+
/** Set design of Actions block */
|
|
48
|
+
variant?: "primary" | "inverted" | undefined;
|
|
49
|
+
/** Provide CSS class name for action button */
|
|
50
|
+
classNameAction?: string | undefined;
|
|
51
|
+
/** Provide CSS class name for action button row container */
|
|
52
|
+
classNameRow?: string | undefined;
|
|
53
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
54
|
+
|
|
55
|
+
declare enum ActionTypes {
|
|
56
|
+
default = "default",
|
|
57
|
+
success = "success",
|
|
58
|
+
link = "link",
|
|
59
|
+
danger = "danger"
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export declare const B: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
63
|
+
id?: string | undefined;
|
|
64
|
+
role?: AriaRole | undefined;
|
|
65
|
+
className?: string | undefined;
|
|
66
|
+
} & {
|
|
67
|
+
children?: ReactNode;
|
|
68
|
+
} & RefAttributes<HTMLElement>>;
|
|
69
|
+
|
|
70
|
+
export declare const BlockQuote: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
71
|
+
id?: string | undefined;
|
|
72
|
+
role?: AriaRole | undefined;
|
|
73
|
+
className?: string | undefined;
|
|
74
|
+
} & {
|
|
75
|
+
children?: ReactNode;
|
|
76
|
+
} & RefAttributes<HTMLQuoteElement>>;
|
|
77
|
+
|
|
78
|
+
export declare const Breadcrumbs: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
79
|
+
id?: string | undefined;
|
|
80
|
+
role?: AriaRole | undefined;
|
|
81
|
+
className?: string | undefined;
|
|
82
|
+
} & {
|
|
83
|
+
children?: ReactNode;
|
|
84
|
+
/** Provide a list of items to render inside breadcrumbs */
|
|
85
|
+
items: Item[];
|
|
86
|
+
/** Enable to show '...' after first breadcrumb item */
|
|
87
|
+
showEllipsis?: boolean | undefined;
|
|
88
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
89
|
+
|
|
90
|
+
export declare const Button: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
91
|
+
id?: string | undefined;
|
|
92
|
+
role?: AriaRole | undefined;
|
|
93
|
+
className?: string | undefined;
|
|
94
|
+
} & {
|
|
95
|
+
children?: ReactNode;
|
|
96
|
+
onClick?: ((event: MouseEvent_2<HTMLButtonElement>) => void) | undefined;
|
|
97
|
+
type?: DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>['type'];
|
|
98
|
+
disabled?: boolean | undefined;
|
|
99
|
+
variant?: "link" | "success" | "danger" | "primary" | "action" | "alternative" | undefined;
|
|
100
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
101
|
+
prefix?: FC<HTMLAttributes<HTMLOrSVGElement>> | undefined;
|
|
102
|
+
suffix?: FC<HTMLAttributes<HTMLOrSVGElement>> | undefined;
|
|
103
|
+
} & RefAttributes<HTMLButtonElement>>;
|
|
104
|
+
|
|
105
|
+
export declare const ButtonGroup: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
106
|
+
id?: string | undefined;
|
|
107
|
+
role?: AriaRole | undefined;
|
|
108
|
+
className?: string | undefined;
|
|
109
|
+
} & {
|
|
110
|
+
children?: ReactNode;
|
|
111
|
+
layout?: "horizontal" | "vertical" | undefined;
|
|
112
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
113
|
+
|
|
114
|
+
declare type CallbackProps = {
|
|
115
|
+
onSubmit?: (event: SyntheticEvent<HTMLFormElement>, formState: FormState) => void;
|
|
116
|
+
onInvalid?: (event: InvalidEvent<HTMLFormElement>, formState: FormState) => void;
|
|
117
|
+
onReset?: (event: ChangeEvent<HTMLFormElement>, formState: FormState) => void;
|
|
118
|
+
onChange?: (event: ChangeEvent<HTMLFormElement>, formState: FormState) => void;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
declare type CallbackPropsInteractive = {
|
|
122
|
+
/**
|
|
123
|
+
* Provide value CheckboxInput.
|
|
124
|
+
* NB! This prop is unlike TextInput and doesn't influence a state of input! Use `checked` prop for that.
|
|
125
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#additional_attributes
|
|
126
|
+
*/
|
|
127
|
+
value?: InputHTMLAttributes<HTMLInputElement>['value'];
|
|
128
|
+
/**
|
|
129
|
+
* Provide default checked state for non-controlled CheckboxInput.
|
|
130
|
+
* Setting this prop enables non-controlled mode.
|
|
131
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#additional_attributes
|
|
132
|
+
* @see https://naspersclassifieds.atlassian.net/wiki/spaces/NDS/pages/57169350329/RFC+Nexus+Input+API#Uncontrolled-input
|
|
133
|
+
*/
|
|
134
|
+
defaultChecked?: InputHTMLAttributes<HTMLInputElement>['checked'];
|
|
135
|
+
/**
|
|
136
|
+
* Provide checked state for controlled CheckboxInput.
|
|
137
|
+
* Setting this prop enables controlled mode.
|
|
138
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#additional_attributes
|
|
139
|
+
* @see https://naspersclassifieds.atlassian.net/wiki/spaces/NDS/pages/57169350329/RFC+Nexus+Input+API#Controllable-state
|
|
140
|
+
*/
|
|
141
|
+
checked?: InputHTMLAttributes<HTMLInputElement>['checked'];
|
|
142
|
+
/**
|
|
143
|
+
* Disable input.
|
|
144
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#disabled
|
|
145
|
+
*/
|
|
146
|
+
disabled?: InputHTMLAttributes<HTMLInputElement>['disabled'];
|
|
147
|
+
/**
|
|
148
|
+
* Set on change callback to get Event object.
|
|
149
|
+
* @see https://reactjs.org/docs/events.html#form-events
|
|
150
|
+
*/
|
|
151
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
152
|
+
/**
|
|
153
|
+
* Set on focus callback to get Event object.
|
|
154
|
+
* @see https://reactjs.org/docs/events.html#onfocus
|
|
155
|
+
*/
|
|
156
|
+
onFocus?: (event: FocusEvent_2<HTMLInputElement>) => void;
|
|
157
|
+
/**
|
|
158
|
+
* Set on blur callback to get Event object.
|
|
159
|
+
* @see https://reactjs.org/docs/events.html#onblur
|
|
160
|
+
*/
|
|
161
|
+
onBlur?: (event: FocusEvent_2<HTMLInputElement>) => void;
|
|
162
|
+
/**
|
|
163
|
+
* Set on key down callback to get Event object.
|
|
164
|
+
* @see https://reactjs.org/docs/events.html#keyboard-events
|
|
165
|
+
*/
|
|
166
|
+
onKeyDown?: (event: KeyboardEvent_2<HTMLInputElement>) => void;
|
|
167
|
+
/**
|
|
168
|
+
* Set on key up callback to get Event object.
|
|
169
|
+
* @see https://reactjs.org/docs/events.html#keyboard-events
|
|
170
|
+
*/
|
|
171
|
+
onKeyUp?: (event: KeyboardEvent_2<HTMLInputElement>) => void;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
declare type CallbackPropsTextual<TElement = HTMLInputElement> = {
|
|
175
|
+
/**
|
|
176
|
+
* Provide value for controlled TextInput.
|
|
177
|
+
* Setting this prop enables controlled mode.
|
|
178
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value
|
|
179
|
+
* @see https://naspersclassifieds.atlassian.net/wiki/spaces/NDS/pages/57169350329/RFC+Nexus+Input+API#Controllable-state
|
|
180
|
+
*/
|
|
181
|
+
value?: InputHTMLAttributes<TElement>['value'];
|
|
182
|
+
/**
|
|
183
|
+
* Provide value for non-controlled TextInput.
|
|
184
|
+
* Setting this prop enables non-controlled mode.
|
|
185
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value
|
|
186
|
+
* @see https://naspersclassifieds.atlassian.net/wiki/spaces/NDS/pages/57169350329/RFC+Nexus+Input+API#Uncontrolled-input
|
|
187
|
+
*/
|
|
188
|
+
defaultValue?: InputHTMLAttributes<TElement>['defaultValue'];
|
|
189
|
+
/**
|
|
190
|
+
* Disable input.
|
|
191
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#disabled
|
|
192
|
+
*/
|
|
193
|
+
disabled?: InputHTMLAttributes<TElement>['disabled'];
|
|
194
|
+
/**
|
|
195
|
+
* Set on change callback to get Event object.
|
|
196
|
+
* @see https://reactjs.org/docs/events.html#form-events
|
|
197
|
+
*/
|
|
198
|
+
onChange?: (event: ChangeEvent<TElement>) => void;
|
|
199
|
+
/**
|
|
200
|
+
* Set on focus callback to get Event object.
|
|
201
|
+
* @see https://reactjs.org/docs/events.html#onfocus
|
|
202
|
+
*/
|
|
203
|
+
onFocus?: (event: FocusEvent_2<TElement>) => void;
|
|
204
|
+
/**
|
|
205
|
+
* Set on blur callback to get Event object.
|
|
206
|
+
* @see https://reactjs.org/docs/events.html#onblur
|
|
207
|
+
*/
|
|
208
|
+
onBlur?: (event: FocusEvent_2<TElement>) => void;
|
|
209
|
+
/**
|
|
210
|
+
* Set on key down callback to get Event object.
|
|
211
|
+
* @see https://reactjs.org/docs/events.html#keyboard-events
|
|
212
|
+
*/
|
|
213
|
+
onKeyDown?: (event: KeyboardEvent_2<TElement>) => void;
|
|
214
|
+
/**
|
|
215
|
+
* Set on key up callback to get Event object.
|
|
216
|
+
* @see https://reactjs.org/docs/events.html#keyboard-events
|
|
217
|
+
*/
|
|
218
|
+
onKeyUp?: (event: KeyboardEvent_2<TElement>) => void;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
export declare const Card: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
222
|
+
id?: string | undefined;
|
|
223
|
+
role?: AriaRole | undefined;
|
|
224
|
+
className?: string | undefined;
|
|
225
|
+
} & {
|
|
226
|
+
children?: ReactNode;
|
|
227
|
+
/** Provide an url for header image */
|
|
228
|
+
headerImageUrl?: string | undefined;
|
|
229
|
+
/** Provide an array of actions with callbacks */
|
|
230
|
+
actions?: (Props_6 | [Props_6, Props_6])[] | undefined;
|
|
231
|
+
/** Set vertical or horizontal layout for the card */
|
|
232
|
+
variant?: "horizontal" | "vertical" | undefined;
|
|
233
|
+
/** Provide width of the card. Applied in vertical mode */
|
|
234
|
+
width?: number | undefined;
|
|
235
|
+
/** Provide height of the card. Applied in horizontal mode */
|
|
236
|
+
height?: number | undefined;
|
|
237
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
238
|
+
|
|
239
|
+
export declare const Carousel: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
240
|
+
id?: string | undefined;
|
|
241
|
+
role?: AriaRole | undefined;
|
|
242
|
+
className?: string | undefined;
|
|
243
|
+
} & {
|
|
244
|
+
width: number;
|
|
245
|
+
height: number;
|
|
246
|
+
children?: ReactNode;
|
|
247
|
+
defaultVisible?: number | undefined;
|
|
248
|
+
showDots?: boolean | undefined;
|
|
249
|
+
showArrows?: boolean | undefined;
|
|
250
|
+
/** Provide time interval in seconds to auto rotate Carousel */
|
|
251
|
+
autoRotate?: number | undefined;
|
|
252
|
+
/** Callback when user clicks navigation arrows */
|
|
253
|
+
onRotate?: ((index: number) => void) | undefined;
|
|
254
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
255
|
+
|
|
256
|
+
declare type ChildProps = {
|
|
257
|
+
name?: Props_4['name'];
|
|
258
|
+
disabled?: Props_4['disabled'];
|
|
259
|
+
required?: Props_4['required'];
|
|
260
|
+
id?: Props_4['id'];
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
export declare const Code: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
264
|
+
id?: string | undefined;
|
|
265
|
+
role?: AriaRole | undefined;
|
|
266
|
+
className?: string | undefined;
|
|
267
|
+
} & {
|
|
268
|
+
children?: ReactNode;
|
|
269
|
+
} & RefAttributes<HTMLElement>>;
|
|
270
|
+
|
|
271
|
+
export declare const Col: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
272
|
+
id?: string | undefined;
|
|
273
|
+
role?: AriaRole | undefined;
|
|
274
|
+
className?: string | undefined;
|
|
275
|
+
} & Partial<SizesConfig> & Partial<OffsetConfig> & {
|
|
276
|
+
/** Select an HTML element to render as a container */
|
|
277
|
+
as?: string | undefined;
|
|
278
|
+
children?: ReactNode;
|
|
279
|
+
} & RefAttributes<HTMLElement>>;
|
|
280
|
+
|
|
281
|
+
export declare const Content: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
282
|
+
id?: string | undefined;
|
|
283
|
+
role?: AriaRole | undefined;
|
|
284
|
+
className?: string | undefined;
|
|
285
|
+
} & {
|
|
286
|
+
children?: ReactNode;
|
|
287
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
288
|
+
|
|
289
|
+
declare type DataAttributeKey = `data-${string}`;
|
|
290
|
+
|
|
291
|
+
declare type DataAttributes = Record<DataAttributeKey, string>;
|
|
292
|
+
|
|
293
|
+
export declare const Del: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
294
|
+
id?: string | undefined;
|
|
295
|
+
role?: AriaRole | undefined;
|
|
296
|
+
className?: string | undefined;
|
|
297
|
+
} & {
|
|
298
|
+
children?: ReactNode;
|
|
299
|
+
} & RefAttributes<HTMLModElement>>;
|
|
300
|
+
|
|
301
|
+
declare type DensityDescriptor = `${number}x`;
|
|
302
|
+
|
|
303
|
+
export declare const Dialog: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
304
|
+
id?: string | undefined;
|
|
305
|
+
role?: AriaRole | undefined;
|
|
306
|
+
className?: string | undefined;
|
|
307
|
+
} & {
|
|
308
|
+
/** Provide unique id for Dialog */
|
|
309
|
+
id: NonNullable<LibraryProps['id']>;
|
|
310
|
+
children?: ReactNode;
|
|
311
|
+
/** Configure outside click behavior */
|
|
312
|
+
closeOnClickOutside?: boolean | undefined;
|
|
313
|
+
/** Callback triggered when Dialog toggles */
|
|
314
|
+
onToggle?: ((open: boolean) => void) | undefined;
|
|
315
|
+
/** Display close icon at the right top corner */
|
|
316
|
+
showCloseButton?: boolean | undefined;
|
|
317
|
+
/** Provide an array of actions with callbacks */
|
|
318
|
+
actions?: (Props_6 | [Props_6, Props_6])[] | undefined;
|
|
319
|
+
/** Set a title of dialog */
|
|
320
|
+
dialogTitle?: string | undefined;
|
|
321
|
+
/** Provide a localized value for close button */
|
|
322
|
+
closeLabel?: string | undefined;
|
|
323
|
+
/** Enable focus trap for Dialog */
|
|
324
|
+
trapFocus?: boolean | undefined;
|
|
325
|
+
} & RefAttributes<HTMLDialogElement>>;
|
|
326
|
+
|
|
327
|
+
export declare const Dl: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
328
|
+
id?: string | undefined;
|
|
329
|
+
role?: AriaRole | undefined;
|
|
330
|
+
className?: string | undefined;
|
|
331
|
+
} & {
|
|
332
|
+
children?: ReactNode;
|
|
333
|
+
} & RefAttributes<HTMLDListElement>>;
|
|
334
|
+
|
|
335
|
+
export declare const Drawer: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
336
|
+
id?: string | undefined;
|
|
337
|
+
role?: AriaRole | undefined;
|
|
338
|
+
className?: string | undefined;
|
|
339
|
+
} & {
|
|
340
|
+
children?: ReactNode;
|
|
341
|
+
/** Choose side to attach Drawer */
|
|
342
|
+
placement?: "left" | "right" | undefined;
|
|
343
|
+
/** Provide unique id for Drawer */
|
|
344
|
+
id: string;
|
|
345
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
346
|
+
|
|
347
|
+
export declare const Em: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
348
|
+
id?: string | undefined;
|
|
349
|
+
role?: AriaRole | undefined;
|
|
350
|
+
className?: string | undefined;
|
|
351
|
+
} & {
|
|
352
|
+
children?: ReactNode;
|
|
353
|
+
} & RefAttributes<HTMLElement>>;
|
|
354
|
+
|
|
355
|
+
export declare const Figure: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
356
|
+
id?: string | undefined;
|
|
357
|
+
role?: AriaRole | undefined;
|
|
358
|
+
className?: string | undefined;
|
|
359
|
+
} & {
|
|
360
|
+
children: ReactElement;
|
|
361
|
+
caption?: string | undefined;
|
|
362
|
+
position?: "center" | "left" | "right" | undefined;
|
|
363
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
364
|
+
|
|
365
|
+
declare type FluidUnit = 'fluid';
|
|
366
|
+
|
|
367
|
+
export declare const Footer: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
368
|
+
id?: string | undefined;
|
|
369
|
+
role?: AriaRole | undefined;
|
|
370
|
+
className?: string | undefined;
|
|
371
|
+
} & {
|
|
372
|
+
children?: ReactNode;
|
|
373
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
374
|
+
|
|
375
|
+
export declare const Form: ForwardRefExoticComponent<Omit<DataAttributes & NativeProps & AriaAttributes & {
|
|
376
|
+
id?: string | undefined;
|
|
377
|
+
role?: AriaRole | undefined;
|
|
378
|
+
className?: string | undefined;
|
|
379
|
+
} & CallbackProps & {
|
|
380
|
+
children: ReactNode;
|
|
381
|
+
} & RefAttributes<HTMLFormElement>, "ref"> & RefAttributes<HTMLFormElement>>;
|
|
382
|
+
|
|
383
|
+
export declare const FormField: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
384
|
+
id?: string | undefined;
|
|
385
|
+
role?: AriaRole | undefined;
|
|
386
|
+
className?: string | undefined;
|
|
387
|
+
} & {
|
|
388
|
+
children: ReactElement;
|
|
389
|
+
label: string;
|
|
390
|
+
hint?: string | undefined;
|
|
391
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
392
|
+
|
|
393
|
+
declare type FormState = Record<string, FormDataEntryValue>;
|
|
394
|
+
|
|
395
|
+
declare type FormState_2 = Record<string, FormDataEntryValue>;
|
|
396
|
+
|
|
397
|
+
export declare const Grid: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
398
|
+
id?: string | undefined;
|
|
399
|
+
role?: AriaRole | undefined;
|
|
400
|
+
className?: string | undefined;
|
|
401
|
+
} & {
|
|
402
|
+
/** Set Container width in pixels as a number or set to `fluid` to make it 100% */
|
|
403
|
+
width?: number | "fluid" | undefined;
|
|
404
|
+
/** Set amount of columns to place in container */
|
|
405
|
+
base?: number | undefined;
|
|
406
|
+
/** Set a gap between columns in pixels */
|
|
407
|
+
gap?: number | undefined;
|
|
408
|
+
/** Select HTML element to render as a container */
|
|
409
|
+
as?: string | undefined;
|
|
410
|
+
children: ReactNode;
|
|
411
|
+
} & RefAttributes<HTMLElement>>;
|
|
412
|
+
|
|
413
|
+
export declare const H1: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
414
|
+
id?: string | undefined;
|
|
415
|
+
role?: AriaRole | undefined;
|
|
416
|
+
className?: string | undefined;
|
|
417
|
+
} & {
|
|
418
|
+
children?: ReactNode;
|
|
419
|
+
} & RefAttributes<HTMLHeadingElement>>;
|
|
420
|
+
|
|
421
|
+
export declare const H2: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
422
|
+
id?: string | undefined;
|
|
423
|
+
role?: AriaRole | undefined;
|
|
424
|
+
className?: string | undefined;
|
|
425
|
+
} & {
|
|
426
|
+
children?: ReactNode;
|
|
427
|
+
} & RefAttributes<HTMLHeadingElement>>;
|
|
428
|
+
|
|
429
|
+
export declare const H3: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
430
|
+
id?: string | undefined;
|
|
431
|
+
role?: AriaRole | undefined;
|
|
432
|
+
className?: string | undefined;
|
|
433
|
+
} & {
|
|
434
|
+
children?: ReactNode;
|
|
435
|
+
} & RefAttributes<HTMLHeadingElement>>;
|
|
436
|
+
|
|
437
|
+
export declare const H4: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
438
|
+
id?: string | undefined;
|
|
439
|
+
role?: AriaRole | undefined;
|
|
440
|
+
className?: string | undefined;
|
|
441
|
+
} & {
|
|
442
|
+
children?: ReactNode;
|
|
443
|
+
} & RefAttributes<HTMLHeadingElement>>;
|
|
444
|
+
|
|
445
|
+
export declare const H5: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
446
|
+
id?: string | undefined;
|
|
447
|
+
role?: AriaRole | undefined;
|
|
448
|
+
className?: string | undefined;
|
|
449
|
+
} & {
|
|
450
|
+
children?: ReactNode;
|
|
451
|
+
} & RefAttributes<HTMLHeadingElement>>;
|
|
452
|
+
|
|
453
|
+
export declare const H6: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
454
|
+
id?: string | undefined;
|
|
455
|
+
role?: AriaRole | undefined;
|
|
456
|
+
className?: string | undefined;
|
|
457
|
+
} & {
|
|
458
|
+
children?: ReactNode;
|
|
459
|
+
} & RefAttributes<HTMLHeadingElement>>;
|
|
460
|
+
|
|
461
|
+
export declare const Header: FC<Props_3>;
|
|
462
|
+
|
|
463
|
+
export declare const I: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
464
|
+
id?: string | undefined;
|
|
465
|
+
role?: AriaRole | undefined;
|
|
466
|
+
className?: string | undefined;
|
|
467
|
+
} & {
|
|
468
|
+
children?: ReactNode;
|
|
469
|
+
} & RefAttributes<HTMLElement>>;
|
|
470
|
+
|
|
471
|
+
/** Dialog ID type */
|
|
472
|
+
declare type Id = string;
|
|
473
|
+
|
|
474
|
+
export declare const InputCheckbox: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
475
|
+
id?: string | undefined;
|
|
476
|
+
role?: AriaRole | undefined;
|
|
477
|
+
className?: string | undefined;
|
|
478
|
+
} & NativePropsInteractive & CallbackPropsInteractive & ValidationProps & {
|
|
479
|
+
label?: string | undefined;
|
|
480
|
+
} & RefAttributes<HTMLInputElement>>;
|
|
481
|
+
|
|
482
|
+
export declare const InputColor: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
483
|
+
id?: string | undefined;
|
|
484
|
+
role?: AriaRole | undefined;
|
|
485
|
+
className?: string | undefined;
|
|
486
|
+
} & NativePropsInteractive & CallbackPropsTextual & Omit<ValidationProps, "validatorFn"> & {
|
|
487
|
+
/**
|
|
488
|
+
* Set text for placeholder.
|
|
489
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder
|
|
490
|
+
*/
|
|
491
|
+
placeholder?: InputHTMLAttributes<HTMLInputElement>['placeholder'];
|
|
492
|
+
/**
|
|
493
|
+
* Provide a list if predefined colors to show in a browser-provided interface. Colors have to be in HEX format #000000.
|
|
494
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist#color_type
|
|
495
|
+
*/
|
|
496
|
+
predefinedColors?: string[] | undefined;
|
|
497
|
+
} & RefAttributes<HTMLInputElement>>;
|
|
498
|
+
|
|
499
|
+
export declare const InputDate: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
500
|
+
id?: string | undefined;
|
|
501
|
+
role?: AriaRole | undefined;
|
|
502
|
+
className?: string | undefined;
|
|
503
|
+
} & Omit<NativePropsTextual, "pattern" | "inputMode" | "autoComplete" | "maxLength" | "minLength"> & CallbackPropsTextual & ValidationProps & {
|
|
504
|
+
min?: string | undefined;
|
|
505
|
+
max?: string | undefined;
|
|
506
|
+
} & RefAttributes<HTMLInputElement>>;
|
|
507
|
+
|
|
508
|
+
export declare const InputFile: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
509
|
+
id?: string | undefined;
|
|
510
|
+
role?: AriaRole | undefined;
|
|
511
|
+
className?: string | undefined;
|
|
512
|
+
} & Omit<NativePropsTextual, "pattern" | "inputMode" | "maxLength" | "minLength" | "readOnly"> & CallbackPropsTextual & {
|
|
513
|
+
accept?: InputHTMLAttributes<HTMLInputElement>['accept'];
|
|
514
|
+
multiple?: InputHTMLAttributes<HTMLInputElement>['multiple'];
|
|
515
|
+
} & RefAttributes<HTMLInputElement>>;
|
|
516
|
+
|
|
517
|
+
export declare const InputGroup: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
518
|
+
id?: string | undefined;
|
|
519
|
+
role?: AriaRole | undefined;
|
|
520
|
+
className?: string | undefined;
|
|
521
|
+
} & {
|
|
522
|
+
validation?: "error" | "valid" | "inProgress" | undefined;
|
|
523
|
+
label?: string | undefined;
|
|
524
|
+
children: ReactElement<ChildProps & unknown>[];
|
|
525
|
+
name: string;
|
|
526
|
+
/**
|
|
527
|
+
* Disable input.
|
|
528
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset
|
|
529
|
+
*/
|
|
530
|
+
disabled?: FieldsetHTMLAttributes<HTMLFieldSetElement>['disabled'];
|
|
531
|
+
required?: boolean | undefined;
|
|
532
|
+
hint?: string | undefined;
|
|
533
|
+
} & RefAttributes<HTMLFieldSetElement>>;
|
|
534
|
+
|
|
535
|
+
export declare const InputNumber: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
536
|
+
id?: string | undefined;
|
|
537
|
+
role?: AriaRole | undefined;
|
|
538
|
+
className?: string | undefined;
|
|
539
|
+
} & Omit<NativePropsTextual, "pattern" | "inputMode" | "maxLength" | "minLength"> & {
|
|
540
|
+
min?: string | number | undefined;
|
|
541
|
+
max?: string | number | undefined;
|
|
542
|
+
step?: string | number | undefined;
|
|
543
|
+
} & CallbackPropsTextual & ValidationProps & {
|
|
544
|
+
/**
|
|
545
|
+
* Define the width of the input in characters
|
|
546
|
+
*/
|
|
547
|
+
size?: InputHTMLAttributes<HTMLInputElement>['size'];
|
|
548
|
+
} & RefAttributes<HTMLInputElement>>;
|
|
549
|
+
|
|
550
|
+
export declare const InputRadio: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
551
|
+
id?: string | undefined;
|
|
552
|
+
role?: AriaRole | undefined;
|
|
553
|
+
className?: string | undefined;
|
|
554
|
+
} & NativePropsInteractive & CallbackPropsInteractive & Omit<ValidationProps, "validatorFn"> & {
|
|
555
|
+
label?: string | undefined;
|
|
556
|
+
} & RefAttributes<HTMLInputElement>>;
|
|
557
|
+
|
|
558
|
+
export declare const InputRange: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
559
|
+
id?: string | undefined;
|
|
560
|
+
role?: AriaRole | undefined;
|
|
561
|
+
className?: string | undefined;
|
|
562
|
+
} & Omit<NativePropsNumeric, "size"> & CallbackPropsTextual & ValidationProps & {
|
|
563
|
+
prefix?: FC<{
|
|
564
|
+
className?: string | undefined;
|
|
565
|
+
} & SVGProps<SVGSVGElement>> | undefined;
|
|
566
|
+
bars?: number | undefined;
|
|
567
|
+
scaleUnit?: string | undefined;
|
|
568
|
+
} & RefAttributes<HTMLInputElement>>;
|
|
569
|
+
|
|
570
|
+
export declare const InputText: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
571
|
+
id?: string | undefined;
|
|
572
|
+
role?: AriaRole | undefined;
|
|
573
|
+
className?: string | undefined;
|
|
574
|
+
} & NativePropsTextual & CallbackPropsTextual & ValidationProps & {
|
|
575
|
+
/**
|
|
576
|
+
* Define a type of TextInput. Allows developer to optionally set one from supported
|
|
577
|
+
* text-like input types instead of default 'text'.
|
|
578
|
+
* Non-text types such as `number` or `week` are not allowed.
|
|
579
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types
|
|
580
|
+
*/
|
|
581
|
+
type?: "search" | "text" | "tel" | "url" | "email" | "password" | undefined;
|
|
582
|
+
/**
|
|
583
|
+
* Define the width of the input in characters
|
|
584
|
+
*/
|
|
585
|
+
size?: InputHTMLAttributes<HTMLInputElement>['size'];
|
|
586
|
+
prefix?: FC | undefined;
|
|
587
|
+
} & RefAttributes<HTMLInputElement>>;
|
|
588
|
+
|
|
589
|
+
export declare const InputTime: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
590
|
+
id?: string | undefined;
|
|
591
|
+
role?: AriaRole | undefined;
|
|
592
|
+
className?: string | undefined;
|
|
593
|
+
} & Omit<NativePropsTextual, "inputMode" | "size" | "autoComplete" | "maxLength" | "minLength"> & Omit<CallbackPropsTextual, "onChange"> & ValidationProps & {
|
|
594
|
+
onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
595
|
+
min?: string | undefined;
|
|
596
|
+
max?: string | undefined;
|
|
597
|
+
} & RefAttributes<HTMLInputElement>>;
|
|
598
|
+
|
|
599
|
+
export declare const Ins: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
600
|
+
id?: string | undefined;
|
|
601
|
+
role?: AriaRole | undefined;
|
|
602
|
+
className?: string | undefined;
|
|
603
|
+
} & {
|
|
604
|
+
children?: ReactNode;
|
|
605
|
+
} & RefAttributes<HTMLModElement>>;
|
|
606
|
+
|
|
607
|
+
declare type IntrinsicWidth = `${number}w`;
|
|
608
|
+
|
|
609
|
+
declare type Item = {
|
|
610
|
+
name: string;
|
|
611
|
+
url: string;
|
|
612
|
+
icon?: FC<HTMLAttributes<HTMLOrSVGElement> & unknown>;
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
export declare const Kbd: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
616
|
+
id?: string | undefined;
|
|
617
|
+
role?: AriaRole | undefined;
|
|
618
|
+
className?: string | undefined;
|
|
619
|
+
} & {
|
|
620
|
+
children?: ReactNode;
|
|
621
|
+
} & RefAttributes<HTMLElement>>;
|
|
622
|
+
|
|
623
|
+
declare type LibraryProps<TElement = HTMLDivElement> = AriaAttributes & {
|
|
624
|
+
id?: string;
|
|
625
|
+
/**
|
|
626
|
+
* Set native ARIA role attribute
|
|
627
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles
|
|
628
|
+
*/
|
|
629
|
+
role?: HTMLAttributes<TElement>['role'];
|
|
630
|
+
/**
|
|
631
|
+
* Specify additional CSS class. This allows you to use styled(Component)
|
|
632
|
+
* or the css prop in styled-components or emotion.
|
|
633
|
+
*/
|
|
634
|
+
className?: HTMLAttributes<TElement>['className'];
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
export declare const Main: FC<Props_2>;
|
|
638
|
+
|
|
639
|
+
export declare const Mark: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
640
|
+
id?: string | undefined;
|
|
641
|
+
role?: AriaRole | undefined;
|
|
642
|
+
className?: string | undefined;
|
|
643
|
+
} & {
|
|
644
|
+
children?: ReactNode;
|
|
645
|
+
} & RefAttributes<HTMLElement>>;
|
|
646
|
+
|
|
647
|
+
export declare const Menu: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
648
|
+
id?: string | undefined;
|
|
649
|
+
role?: AriaRole | undefined;
|
|
650
|
+
className?: string | undefined;
|
|
651
|
+
} & {
|
|
652
|
+
children: ReactNode;
|
|
653
|
+
/** Control visibility of Menu */
|
|
654
|
+
isOpen?: boolean | undefined;
|
|
655
|
+
/**
|
|
656
|
+
* Provide Tooltip content
|
|
657
|
+
* @example
|
|
658
|
+
* <Menu content={<div>Foo<div>} //... />
|
|
659
|
+
*/
|
|
660
|
+
content: ReactNode;
|
|
661
|
+
/** Set class name of reference component wrapper */
|
|
662
|
+
referenceClassName?: string | undefined;
|
|
663
|
+
/** Provide callback for open/close events */
|
|
664
|
+
onToggle?: ((openState: boolean) => void) | undefined;
|
|
665
|
+
/** Focus on first element when open and trap focus */
|
|
666
|
+
trapFocus?: boolean | undefined;
|
|
667
|
+
/** Align Menu width with reference element */
|
|
668
|
+
alignWidth?: boolean | undefined;
|
|
669
|
+
/** Set design of Menu */
|
|
670
|
+
variant?: "bordered" | "plain" | undefined;
|
|
671
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
672
|
+
|
|
673
|
+
export declare const MenuActions: FC<Props_8>;
|
|
674
|
+
|
|
675
|
+
export declare const Meter: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
676
|
+
id?: string | undefined;
|
|
677
|
+
role?: AriaRole | undefined;
|
|
678
|
+
className?: string | undefined;
|
|
679
|
+
} & {
|
|
680
|
+
max: number;
|
|
681
|
+
min: number;
|
|
682
|
+
value: number;
|
|
683
|
+
low?: number | undefined;
|
|
684
|
+
high?: number | undefined;
|
|
685
|
+
optimum?: number | undefined;
|
|
686
|
+
} & RefAttributes<HTMLMeterElement>>;
|
|
687
|
+
|
|
688
|
+
declare type NativeProps = {
|
|
689
|
+
name?: FormHTMLAttributes<HTMLFormElement>['name'];
|
|
690
|
+
autoCapitalize?: FormHTMLAttributes<HTMLFormElement>['autoCapitalize'];
|
|
691
|
+
autoComplete?: FormHTMLAttributes<HTMLFormElement>['autoComplete'];
|
|
692
|
+
noValidate?: FormHTMLAttributes<HTMLFormElement>['noValidate'];
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
declare type NativePropsInteractive = Omit<NativePropsTextual, 'inputMode' | 'pattern' | 'readOnly' | 'minLength' | 'maxLength' | 'autoComplete' | 'placeholder' | 'size'>;
|
|
696
|
+
|
|
697
|
+
declare type NativePropsNumeric = Omit<NativePropsTextual, 'inputMode' | 'pattern' | 'maxLength' | 'minLength'> & {
|
|
698
|
+
min?: InputHTMLAttributes<HTMLInputElement>['min'];
|
|
699
|
+
/**
|
|
700
|
+
* Define the maximum value that is acceptable and valid for the input
|
|
701
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/max
|
|
702
|
+
*/
|
|
703
|
+
max?: InputHTMLAttributes<HTMLInputElement>['max'];
|
|
704
|
+
/**
|
|
705
|
+
* Specify the granularity that the value must adhere to
|
|
706
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step
|
|
707
|
+
*/
|
|
708
|
+
step?: InputHTMLAttributes<HTMLInputElement>['step'];
|
|
709
|
+
};
|
|
710
|
+
|
|
711
|
+
declare type NativePropsTextual = {
|
|
712
|
+
/**
|
|
713
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name
|
|
714
|
+
*/
|
|
715
|
+
name?: InputHTMLAttributes<HTMLInputElement>['name'];
|
|
716
|
+
/** Set input id attribute. */
|
|
717
|
+
id?: string;
|
|
718
|
+
/**
|
|
719
|
+
* Provides a hint about the type of data that might be entered by the user while
|
|
720
|
+
* editing the element or its contents. This allows the browser to display an
|
|
721
|
+
* appropriate virtual keyboard.
|
|
722
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inputMode
|
|
723
|
+
*/
|
|
724
|
+
inputMode?: InputHTMLAttributes<HTMLInputElement>['inputMode'];
|
|
725
|
+
/**
|
|
726
|
+
* Set native HTML `required` attribute.
|
|
727
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required
|
|
728
|
+
*/
|
|
729
|
+
required?: InputHTMLAttributes<HTMLInputElement>['required'];
|
|
730
|
+
/**
|
|
731
|
+
* Provides substitute for native autofocus functionality.
|
|
732
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus
|
|
733
|
+
* @see https://github.com/facebook/react/issues/11851#issuecomment-351672131
|
|
734
|
+
*/
|
|
735
|
+
autoFocus?: InputHTMLAttributes<HTMLInputElement>['autoFocus'];
|
|
736
|
+
/**
|
|
737
|
+
* Set text for placeholder.
|
|
738
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder
|
|
739
|
+
*/
|
|
740
|
+
placeholder?: InputHTMLAttributes<HTMLInputElement>['placeholder'];
|
|
741
|
+
/**
|
|
742
|
+
* Set native HTML `autocomplete` attribute.
|
|
743
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
|
|
744
|
+
*/
|
|
745
|
+
autoComplete?: InputHTMLAttributes<HTMLInputElement>['autoComplete'];
|
|
746
|
+
/**
|
|
747
|
+
* Defines the maximum number of characters (as UTF-16 code units) the user can enter.
|
|
748
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/maxlength
|
|
749
|
+
*/
|
|
750
|
+
maxLength?: InputHTMLAttributes<HTMLInputElement>['maxLength'];
|
|
751
|
+
/**
|
|
752
|
+
* Defines the minimum number of characters (as UTF-16 code units) the user can enter.
|
|
753
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/minlength
|
|
754
|
+
*/
|
|
755
|
+
minLength?: InputHTMLAttributes<HTMLInputElement>['minLength'];
|
|
756
|
+
/** Set native HTML `form` attribute. */
|
|
757
|
+
form?: InputHTMLAttributes<HTMLInputElement>['form'];
|
|
758
|
+
/**
|
|
759
|
+
* Set native ARIA role attribute
|
|
760
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/input_role
|
|
761
|
+
*/
|
|
762
|
+
role?: InputHTMLAttributes<HTMLInputElement>['role'];
|
|
763
|
+
/**
|
|
764
|
+
* Pattern attribute specifies a regular expression the form control's value should match.
|
|
765
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern
|
|
766
|
+
*/
|
|
767
|
+
pattern?: InputHTMLAttributes<HTMLInputElement>['pattern'];
|
|
768
|
+
/**
|
|
769
|
+
* Makes the element not mutable, meaning the user can not edit the control
|
|
770
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly
|
|
771
|
+
*/
|
|
772
|
+
readOnly?: InputHTMLAttributes<HTMLInputElement>['readOnly'];
|
|
773
|
+
/**
|
|
774
|
+
* Define the width of the input in characters
|
|
775
|
+
*/
|
|
776
|
+
size?: InputHTMLAttributes<HTMLInputElement>['size'];
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
export declare const NavBrand: FC<Props_11>;
|
|
780
|
+
|
|
781
|
+
export declare const NavLink: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
782
|
+
id?: string | undefined;
|
|
783
|
+
role?: AriaRole | undefined;
|
|
784
|
+
className?: string | undefined;
|
|
785
|
+
} & {
|
|
786
|
+
title: string;
|
|
787
|
+
href: string;
|
|
788
|
+
as?: ElementType<AriaAttributes & DataAttributes & {
|
|
789
|
+
href: string;
|
|
790
|
+
className?: string | undefined;
|
|
791
|
+
title?: string | undefined;
|
|
792
|
+
children?: ReactNode;
|
|
793
|
+
ref?: ForwardedRef<HTMLElement> | undefined;
|
|
794
|
+
}> | undefined;
|
|
795
|
+
icon?: FC<HTMLAttributes<HTMLOrSVGElement>> | undefined;
|
|
796
|
+
shift?: boolean | undefined;
|
|
797
|
+
isCurrent?: boolean | undefined;
|
|
798
|
+
} & RefAttributes<HTMLElement>>;
|
|
799
|
+
|
|
800
|
+
export declare const NavList: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
801
|
+
id?: string | undefined;
|
|
802
|
+
role?: AriaRole | undefined;
|
|
803
|
+
className?: string | undefined;
|
|
804
|
+
} & {
|
|
805
|
+
children?: ReactNode;
|
|
806
|
+
layout?: "horizontal" | "vertical" | undefined;
|
|
807
|
+
collapsible?: boolean | undefined;
|
|
808
|
+
collapsibleLabel?: string | undefined;
|
|
809
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
810
|
+
|
|
811
|
+
export declare const NavPanel: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
812
|
+
id?: string | undefined;
|
|
813
|
+
role?: AriaRole | undefined;
|
|
814
|
+
className?: string | undefined;
|
|
815
|
+
} & {
|
|
816
|
+
name?: string | undefined;
|
|
817
|
+
children?: ReactNode;
|
|
818
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
819
|
+
|
|
820
|
+
declare const Notification_2: FC<Props_10>;
|
|
821
|
+
export { Notification_2 as Notification }
|
|
822
|
+
|
|
823
|
+
declare type NotificationProps = {
|
|
824
|
+
/**
|
|
825
|
+
* Defines a title for the notification, which is shown at the top of the notification window
|
|
826
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification#title
|
|
827
|
+
*/
|
|
828
|
+
title: string;
|
|
829
|
+
/**
|
|
830
|
+
* URL of an image to be displayed in the notification
|
|
831
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification#icon
|
|
832
|
+
*/
|
|
833
|
+
icon?: string;
|
|
834
|
+
/**
|
|
835
|
+
* Body text of the notification, which is displayed below the title
|
|
836
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification#body
|
|
837
|
+
*/
|
|
838
|
+
body?: string;
|
|
839
|
+
/**
|
|
840
|
+
* Indicates that a notification should remain active until the user clicks or dismisses it, rather than closing automatically.
|
|
841
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification#requireinteraction
|
|
842
|
+
*/
|
|
843
|
+
requireInteraction?: boolean;
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
declare type OffsetConfig = {
|
|
847
|
+
/** The number of columns to off set this item from left side on extremely small devices (≥360px) */
|
|
848
|
+
[Offsets.xs]: SizeUnit;
|
|
849
|
+
/** The number of columns to off set this item from left side on small devices (≥640px) */
|
|
850
|
+
[Offsets.sm]: SizeUnit;
|
|
851
|
+
/** The number of columns to off set this item from left side on medium devices (≥768px) */
|
|
852
|
+
[Offsets.md]: SizeUnit;
|
|
853
|
+
/** The number of columns to off set this item from left side on large devices (≥1366px) */
|
|
854
|
+
[Offsets.lg]: SizeUnit;
|
|
855
|
+
/** The number of columns to off set this item from left side on extremely large devices (≥1920px) */
|
|
856
|
+
[Offsets.xl]: SizeUnit;
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
declare enum Offsets {
|
|
860
|
+
xs = "shiftXS",
|
|
861
|
+
sm = "shiftSM",
|
|
862
|
+
md = "shiftMD",
|
|
863
|
+
lg = "shiftLG",
|
|
864
|
+
xl = "shiftXL"
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
export declare const Ol: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
868
|
+
id?: string | undefined;
|
|
869
|
+
role?: AriaRole | undefined;
|
|
870
|
+
className?: string | undefined;
|
|
871
|
+
} & {
|
|
872
|
+
children?: ReactNode;
|
|
873
|
+
} & RefAttributes<HTMLOListElement>>;
|
|
874
|
+
|
|
875
|
+
export declare const P: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
876
|
+
id?: string | undefined;
|
|
877
|
+
role?: AriaRole | undefined;
|
|
878
|
+
className?: string | undefined;
|
|
879
|
+
} & {
|
|
880
|
+
children?: ReactNode;
|
|
881
|
+
} & RefAttributes<HTMLParagraphElement>>;
|
|
882
|
+
|
|
883
|
+
export declare const Page: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
884
|
+
id?: string | undefined;
|
|
885
|
+
role?: AriaRole | undefined;
|
|
886
|
+
className?: string | undefined;
|
|
887
|
+
} & {
|
|
888
|
+
width?: number | "fluid" | undefined;
|
|
889
|
+
base?: number | undefined;
|
|
890
|
+
gap?: number | undefined;
|
|
891
|
+
as?: string | undefined;
|
|
892
|
+
children: ReactNode;
|
|
893
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
894
|
+
|
|
895
|
+
export declare const Pagination: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
896
|
+
id?: string | undefined;
|
|
897
|
+
role?: AriaRole | undefined;
|
|
898
|
+
className?: string | undefined;
|
|
899
|
+
} & {
|
|
900
|
+
children?: ReactNode;
|
|
901
|
+
/** Set total amount of pages */
|
|
902
|
+
totalPages: number;
|
|
903
|
+
/** Callback to run on page change */
|
|
904
|
+
onPageSelect: (pageNumber: number) => void;
|
|
905
|
+
/** Set selected page externally */
|
|
906
|
+
selectedPage: number;
|
|
907
|
+
/** Show navigation block on the right */
|
|
908
|
+
showNavigation?: boolean | undefined;
|
|
909
|
+
/** Show page number buttons on the left */
|
|
910
|
+
showPageButtons?: boolean | undefined;
|
|
911
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
912
|
+
|
|
913
|
+
export declare const Picture: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
914
|
+
id?: string | undefined;
|
|
915
|
+
role?: AriaRole | undefined;
|
|
916
|
+
className?: string | undefined;
|
|
917
|
+
} & {
|
|
918
|
+
/**
|
|
919
|
+
* Provide default image url
|
|
920
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/src
|
|
921
|
+
*/
|
|
922
|
+
src: string;
|
|
923
|
+
/**
|
|
924
|
+
* Set default image width
|
|
925
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/width
|
|
926
|
+
*/
|
|
927
|
+
width?: number | undefined;
|
|
928
|
+
/**
|
|
929
|
+
* Set default image height
|
|
930
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/height
|
|
931
|
+
*/
|
|
932
|
+
height?: number | undefined;
|
|
933
|
+
/**
|
|
934
|
+
* Provide alternate text to display when the image is not loaded or for use by assistive devices
|
|
935
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt
|
|
936
|
+
*/
|
|
937
|
+
alt?: string | undefined;
|
|
938
|
+
/**
|
|
939
|
+
* Provide alternative sources configs array
|
|
940
|
+
* @see SourceDensity
|
|
941
|
+
* @see SourceWidth
|
|
942
|
+
*/
|
|
943
|
+
sources?: Source[] | undefined;
|
|
944
|
+
/**
|
|
945
|
+
* Set image loading behavior
|
|
946
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/loading
|
|
947
|
+
*/
|
|
948
|
+
loading?: DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>['loading'];
|
|
949
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
950
|
+
|
|
951
|
+
export declare const Pre: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
952
|
+
id?: string | undefined;
|
|
953
|
+
role?: AriaRole | undefined;
|
|
954
|
+
className?: string | undefined;
|
|
955
|
+
} & {
|
|
956
|
+
children?: ReactNode;
|
|
957
|
+
contentEditable?: HTMLAttributes<HTMLPreElement>['contentEditable'];
|
|
958
|
+
} & RefAttributes<HTMLPreElement>>;
|
|
959
|
+
|
|
960
|
+
export declare const Progress: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
961
|
+
id?: string | undefined;
|
|
962
|
+
role?: AriaRole | undefined;
|
|
963
|
+
className?: string | undefined;
|
|
964
|
+
} & {
|
|
965
|
+
/**
|
|
966
|
+
* Provide maximum for progress scale
|
|
967
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#max
|
|
968
|
+
*/
|
|
969
|
+
max?: number | undefined;
|
|
970
|
+
/**
|
|
971
|
+
* Provide value for progress scale
|
|
972
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#value
|
|
973
|
+
*/
|
|
974
|
+
value?: number | undefined;
|
|
975
|
+
/**
|
|
976
|
+
* Choose appearance of progress bar
|
|
977
|
+
*/
|
|
978
|
+
variant?: "plain" | "dashed" | undefined;
|
|
979
|
+
/**
|
|
980
|
+
* Provide an optional label to display on the left side
|
|
981
|
+
*/
|
|
982
|
+
label?: string | undefined;
|
|
983
|
+
} & RefAttributes<HTMLProgressElement>>;
|
|
984
|
+
|
|
985
|
+
declare type Props = {
|
|
986
|
+
children?: ReactNode;
|
|
987
|
+
/** Provide an object with theme colors and sizes parameters */
|
|
988
|
+
theme?: ThemeType;
|
|
989
|
+
};
|
|
990
|
+
|
|
991
|
+
declare type Props_10 = NotificationProps & {
|
|
992
|
+
/** Unique id of notification */
|
|
993
|
+
id: Id;
|
|
994
|
+
/** Callback triggered when Notification toggles */
|
|
995
|
+
onToggle?: (isOpen: boolean) => void;
|
|
996
|
+
onDenied?: () => void;
|
|
997
|
+
};
|
|
998
|
+
|
|
999
|
+
declare type Props_11 = DataAttributes & LibraryProps & {
|
|
1000
|
+
children: ReactNode;
|
|
1001
|
+
className?: string;
|
|
1002
|
+
};
|
|
1003
|
+
|
|
1004
|
+
declare type Props_2 = DataAttributes & LibraryProps & Partial<SizesConfig> & {
|
|
1005
|
+
children?: ReactNode;
|
|
1006
|
+
};
|
|
1007
|
+
|
|
1008
|
+
declare type Props_3 = DataAttributes & LibraryProps & {
|
|
1009
|
+
children?: ReactNode;
|
|
1010
|
+
/** Attach header to the page top */
|
|
1011
|
+
sticky?: boolean;
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
declare type Props_4 = DataAttributes & LibraryProps & {
|
|
1015
|
+
validation?: keyof typeof ValidationState;
|
|
1016
|
+
label?: string;
|
|
1017
|
+
children: ReactElement<ChildProps & unknown>[];
|
|
1018
|
+
name: string;
|
|
1019
|
+
/**
|
|
1020
|
+
* Disable input.
|
|
1021
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset
|
|
1022
|
+
*/
|
|
1023
|
+
disabled?: FieldsetHTMLAttributes<HTMLFieldSetElement>['disabled'];
|
|
1024
|
+
required?: boolean;
|
|
1025
|
+
hint?: string;
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
declare type Props_5 = DataAttributes & LibraryProps & {
|
|
1029
|
+
children?: ReactNode;
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
declare type Props_6 = {
|
|
1033
|
+
title?: string;
|
|
1034
|
+
icon?: FC<HTMLAttributes<HTMLOrSVGElement> & unknown>;
|
|
1035
|
+
type?: keyof typeof ActionTypes;
|
|
1036
|
+
onClick?: (name: MouseEvent_2<HTMLButtonElement>) => void;
|
|
1037
|
+
className?: string;
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
declare type Props_7 = {
|
|
1041
|
+
name: string;
|
|
1042
|
+
children: ReactNode;
|
|
1043
|
+
icon?: FC<HTMLAttributes<HTMLOrSVGElement> & unknown>;
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
declare type Props_8 = Omit<Props_9, 'content' | 'alignWidth'> & {
|
|
1047
|
+
actions?: ComponentProps<typeof Actions>['actions'];
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
declare type Props_9 = DataAttributes & LibraryProps & {
|
|
1051
|
+
children: ReactNode;
|
|
1052
|
+
/** Control visibility of Menu */
|
|
1053
|
+
isOpen?: boolean;
|
|
1054
|
+
/**
|
|
1055
|
+
* Provide Tooltip content
|
|
1056
|
+
* @example
|
|
1057
|
+
* <Menu content={<div>Foo<div>} //... />
|
|
1058
|
+
*/
|
|
1059
|
+
content: ReactNode;
|
|
1060
|
+
/** Set class name of reference component wrapper */
|
|
1061
|
+
referenceClassName?: string;
|
|
1062
|
+
/** Provide callback for open/close events */
|
|
1063
|
+
onToggle?: (openState: boolean) => void;
|
|
1064
|
+
/** Focus on first element when open and trap focus */
|
|
1065
|
+
trapFocus?: boolean;
|
|
1066
|
+
/** Align Menu width with reference element */
|
|
1067
|
+
alignWidth?: boolean;
|
|
1068
|
+
/** Set design of Menu */
|
|
1069
|
+
variant?: keyof typeof Variants;
|
|
1070
|
+
};
|
|
1071
|
+
|
|
1072
|
+
export declare const Provider: FC<Props>;
|
|
1073
|
+
|
|
1074
|
+
export declare const Row: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1075
|
+
id?: string | undefined;
|
|
1076
|
+
role?: AriaRole | undefined;
|
|
1077
|
+
className?: string | undefined;
|
|
1078
|
+
} & {
|
|
1079
|
+
/** Select an HTML element to render as a container */
|
|
1080
|
+
as?: string | undefined;
|
|
1081
|
+
children: ReactNode;
|
|
1082
|
+
} & RefAttributes<HTMLElement>>;
|
|
1083
|
+
|
|
1084
|
+
export declare const S: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1085
|
+
id?: string | undefined;
|
|
1086
|
+
role?: AriaRole | undefined;
|
|
1087
|
+
className?: string | undefined;
|
|
1088
|
+
} & {
|
|
1089
|
+
children?: ReactNode;
|
|
1090
|
+
} & RefAttributes<HTMLElement>>;
|
|
1091
|
+
|
|
1092
|
+
export declare const Select: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1093
|
+
id?: string | undefined;
|
|
1094
|
+
role?: AriaRole | undefined;
|
|
1095
|
+
className?: string | undefined;
|
|
1096
|
+
} & NativePropsInteractive & Omit<CallbackPropsTextual<HTMLSelectElement>, "defaultValue"> & ValidationProps & {
|
|
1097
|
+
children?: ReactNode;
|
|
1098
|
+
prefix?: FC | undefined;
|
|
1099
|
+
multiple?: SelectHTMLAttributes<HTMLSelectElement>['multiple'];
|
|
1100
|
+
/**
|
|
1101
|
+
* Define the width of the input in characters
|
|
1102
|
+
*/
|
|
1103
|
+
size?: SelectHTMLAttributes<HTMLSelectElement>['size'];
|
|
1104
|
+
} & RefAttributes<HTMLSelectElement>>;
|
|
1105
|
+
|
|
1106
|
+
export declare const Sidebar: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1107
|
+
id?: string | undefined;
|
|
1108
|
+
role?: AriaRole | undefined;
|
|
1109
|
+
className?: string | undefined;
|
|
1110
|
+
} & Partial<SizesConfig> & {
|
|
1111
|
+
children?: ReactNode;
|
|
1112
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
1113
|
+
|
|
1114
|
+
declare enum Sizes {
|
|
1115
|
+
xs = "xs",
|
|
1116
|
+
sm = "sm",
|
|
1117
|
+
md = "md",
|
|
1118
|
+
lg = "lg",
|
|
1119
|
+
xl = "xl"
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
declare type SizesConfig = {
|
|
1123
|
+
/** The number of columns to span on tiny devices (≥360px) */
|
|
1124
|
+
[Sizes.xs]: SizeUnit | FluidUnit;
|
|
1125
|
+
/** The number of columns to span on small devices (≥640px) */
|
|
1126
|
+
[Sizes.sm]: SizeUnit | FluidUnit;
|
|
1127
|
+
/** The number of columns to span on medium devices (≥992px) */
|
|
1128
|
+
[Sizes.md]: SizeUnit | FluidUnit;
|
|
1129
|
+
/** The number of columns to span on large devices (≥1366px) */
|
|
1130
|
+
[Sizes.lg]: SizeUnit | FluidUnit;
|
|
1131
|
+
/** The number of columns to span on extremely large devices (≥1920px) */
|
|
1132
|
+
[Sizes.xl]: SizeUnit | FluidUnit;
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
declare type SizeUnit = number;
|
|
1136
|
+
|
|
1137
|
+
export declare const SkeletonAction: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1138
|
+
id?: string | undefined;
|
|
1139
|
+
role?: AriaRole | undefined;
|
|
1140
|
+
className?: string | undefined;
|
|
1141
|
+
} & SkeletonProps & {
|
|
1142
|
+
children?: ReactNode;
|
|
1143
|
+
double?: boolean | undefined;
|
|
1144
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
1145
|
+
|
|
1146
|
+
export declare const SkeletonFrame: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1147
|
+
id?: string | undefined;
|
|
1148
|
+
role?: AriaRole | undefined;
|
|
1149
|
+
className?: string | undefined;
|
|
1150
|
+
} & SkeletonProps & {
|
|
1151
|
+
borderRadius?: number | undefined;
|
|
1152
|
+
children?: ReactNode;
|
|
1153
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
1154
|
+
|
|
1155
|
+
declare type SkeletonProps = {
|
|
1156
|
+
width?: Unit;
|
|
1157
|
+
height?: Unit;
|
|
1158
|
+
marginY?: number;
|
|
1159
|
+
marginX?: number;
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
export declare const SkeletonShape: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1163
|
+
id?: string | undefined;
|
|
1164
|
+
role?: AriaRole | undefined;
|
|
1165
|
+
className?: string | undefined;
|
|
1166
|
+
} & SkeletonProps & {
|
|
1167
|
+
borderRadius?: number | undefined;
|
|
1168
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
1169
|
+
|
|
1170
|
+
export declare const SkeletonText: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1171
|
+
id?: string | undefined;
|
|
1172
|
+
role?: AriaRole | undefined;
|
|
1173
|
+
className?: string | undefined;
|
|
1174
|
+
} & SkeletonProps & {
|
|
1175
|
+
lines?: number | undefined;
|
|
1176
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
1177
|
+
|
|
1178
|
+
export declare const Small: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1179
|
+
id?: string | undefined;
|
|
1180
|
+
role?: AriaRole | undefined;
|
|
1181
|
+
className?: string | undefined;
|
|
1182
|
+
} & {
|
|
1183
|
+
children?: ReactNode;
|
|
1184
|
+
} & RefAttributes<HTMLElement>>;
|
|
1185
|
+
|
|
1186
|
+
declare type Source = {
|
|
1187
|
+
/**
|
|
1188
|
+
* Provide the source image url
|
|
1189
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/src
|
|
1190
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types
|
|
1191
|
+
*/
|
|
1192
|
+
src: string;
|
|
1193
|
+
/**
|
|
1194
|
+
* Provide the source image MIME type
|
|
1195
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#type
|
|
1196
|
+
*/
|
|
1197
|
+
type?: string;
|
|
1198
|
+
/**
|
|
1199
|
+
* Provide media condition for the source image
|
|
1200
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#media
|
|
1201
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_media_queries
|
|
1202
|
+
*/
|
|
1203
|
+
mediaCondition?: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* Provide width of the slot the image will fill when the media condition is true
|
|
1206
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#sizes
|
|
1207
|
+
*/
|
|
1208
|
+
slotWidth?: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* Provide the source image display height in pixels
|
|
1211
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#height
|
|
1212
|
+
*/
|
|
1213
|
+
width?: number;
|
|
1214
|
+
/**
|
|
1215
|
+
* Provide the source image display width in pixels
|
|
1216
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#width
|
|
1217
|
+
*/
|
|
1218
|
+
height?: number;
|
|
1219
|
+
} & ({
|
|
1220
|
+
/**
|
|
1221
|
+
* Provide the source image width descriptor. Has to be a positive integer directly followed by w. E.g. 480w
|
|
1222
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#srcset
|
|
1223
|
+
* @see https://developer.mozilla.org/en-US/docs/Glossary/Intrinsic_Size
|
|
1224
|
+
*/
|
|
1225
|
+
intrinsicWidth?: IntrinsicWidth;
|
|
1226
|
+
density?: never;
|
|
1227
|
+
} | {
|
|
1228
|
+
intrinsicWidth?: never;
|
|
1229
|
+
/**
|
|
1230
|
+
* Provide the source image pixel density descriptor. Has to be a positive floating point number directly followed by x. E.g. 2x
|
|
1231
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#srcset
|
|
1232
|
+
* @see https://developer.mozilla.org/en-US/docs/Glossary/Intrinsic_Size
|
|
1233
|
+
*/
|
|
1234
|
+
density?: DensityDescriptor;
|
|
1235
|
+
});
|
|
1236
|
+
|
|
1237
|
+
export declare const Strong: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1238
|
+
id?: string | undefined;
|
|
1239
|
+
role?: AriaRole | undefined;
|
|
1240
|
+
className?: string | undefined;
|
|
1241
|
+
} & {
|
|
1242
|
+
children?: ReactNode;
|
|
1243
|
+
} & RefAttributes<HTMLElement>>;
|
|
1244
|
+
|
|
1245
|
+
export declare const Sub: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1246
|
+
id?: string | undefined;
|
|
1247
|
+
role?: AriaRole | undefined;
|
|
1248
|
+
className?: string | undefined;
|
|
1249
|
+
} & {
|
|
1250
|
+
children?: ReactNode;
|
|
1251
|
+
} & RefAttributes<HTMLElement>>;
|
|
1252
|
+
|
|
1253
|
+
export declare const Sup: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1254
|
+
id?: string | undefined;
|
|
1255
|
+
role?: AriaRole | undefined;
|
|
1256
|
+
className?: string | undefined;
|
|
1257
|
+
} & {
|
|
1258
|
+
children?: ReactNode;
|
|
1259
|
+
} & RefAttributes<HTMLElement>>;
|
|
1260
|
+
|
|
1261
|
+
export declare const Tab: FC<Props_7>;
|
|
1262
|
+
|
|
1263
|
+
export declare const Table: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1264
|
+
id?: string | undefined;
|
|
1265
|
+
role?: AriaRole | undefined;
|
|
1266
|
+
className?: string | undefined;
|
|
1267
|
+
} & {
|
|
1268
|
+
children: ReactNode;
|
|
1269
|
+
} & RefAttributes<HTMLTableElement>>;
|
|
1270
|
+
|
|
1271
|
+
export declare const Tabs: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1272
|
+
id?: string | undefined;
|
|
1273
|
+
role?: AriaRole | undefined;
|
|
1274
|
+
className?: string | undefined;
|
|
1275
|
+
} & {
|
|
1276
|
+
selected?: string | undefined;
|
|
1277
|
+
width?: number | undefined;
|
|
1278
|
+
height?: number | undefined;
|
|
1279
|
+
children: ReactElement<Props_7> | ReactElement<Props_7>[];
|
|
1280
|
+
onToggle?: ((tabName: string) => void) | undefined;
|
|
1281
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
1282
|
+
|
|
1283
|
+
declare const Text_2: FC<Props_5>;
|
|
1284
|
+
export { Text_2 as Text }
|
|
1285
|
+
|
|
1286
|
+
export declare const Textarea: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1287
|
+
id?: string | undefined;
|
|
1288
|
+
role?: AriaRole | undefined;
|
|
1289
|
+
className?: string | undefined;
|
|
1290
|
+
} & Omit<NativePropsTextual, "pattern" | "inputMode" | "size"> & CallbackPropsTextual<HTMLTextAreaElement> & ValidationProps & {
|
|
1291
|
+
prefix?: FC | undefined;
|
|
1292
|
+
/**
|
|
1293
|
+
* The visible width of the text control, in average character widths.
|
|
1294
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#cols
|
|
1295
|
+
*/
|
|
1296
|
+
cols?: TextareaHTMLAttributes<HTMLTextAreaElement>['cols'];
|
|
1297
|
+
/**
|
|
1298
|
+
* The number of visible text lines for the control.
|
|
1299
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#rows
|
|
1300
|
+
*/
|
|
1301
|
+
rows?: TextareaHTMLAttributes<HTMLTextAreaElement>['rows'];
|
|
1302
|
+
/**
|
|
1303
|
+
* Specifies whether the Textarea is subject to spell checking by the underlying browser/OS.
|
|
1304
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#spellcheck
|
|
1305
|
+
*/
|
|
1306
|
+
spellCheck?: TextareaHTMLAttributes<HTMLTextAreaElement>['spellCheck'];
|
|
1307
|
+
/**
|
|
1308
|
+
* Indicates how the control should wrap the value for form submission.
|
|
1309
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#wrap
|
|
1310
|
+
*/
|
|
1311
|
+
wrap?: TextareaHTMLAttributes<HTMLTextAreaElement>['wrap'];
|
|
1312
|
+
/**
|
|
1313
|
+
* Set Textarea resizing behavior.
|
|
1314
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/resize
|
|
1315
|
+
*/
|
|
1316
|
+
resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
1317
|
+
} & RefAttributes<HTMLTextAreaElement>>;
|
|
1318
|
+
|
|
1319
|
+
declare const theme: {
|
|
1320
|
+
fontFamily: string;
|
|
1321
|
+
fontFamilyMonospace: string;
|
|
1322
|
+
sizeUnit: string;
|
|
1323
|
+
inputWidth: string;
|
|
1324
|
+
inputHeight: string;
|
|
1325
|
+
fontSizeH1: string;
|
|
1326
|
+
fontSizeH2: string;
|
|
1327
|
+
fontSizeH3: string;
|
|
1328
|
+
fontSizeH4: string;
|
|
1329
|
+
fontSizeH5: string;
|
|
1330
|
+
fontSizeH6: string;
|
|
1331
|
+
fontSizeText: string;
|
|
1332
|
+
fontSizeMedium: string;
|
|
1333
|
+
fontSizeLarge: string;
|
|
1334
|
+
fontSizeSmall: string;
|
|
1335
|
+
fontSizeExtraSmall: string;
|
|
1336
|
+
fontWeightNormal: number;
|
|
1337
|
+
fontWeightBolder: number;
|
|
1338
|
+
fontWeightBold: number;
|
|
1339
|
+
textColor: string;
|
|
1340
|
+
background000: string;
|
|
1341
|
+
background100: string;
|
|
1342
|
+
background200: string;
|
|
1343
|
+
background300: string;
|
|
1344
|
+
background400: string;
|
|
1345
|
+
background500: string;
|
|
1346
|
+
background600: string;
|
|
1347
|
+
colorDo: string;
|
|
1348
|
+
colorRe: string;
|
|
1349
|
+
colorMi: string;
|
|
1350
|
+
colorFa: string;
|
|
1351
|
+
colorSol: string;
|
|
1352
|
+
colorLa: string;
|
|
1353
|
+
colorError: string;
|
|
1354
|
+
colorWarning: string;
|
|
1355
|
+
colorSuccess: string;
|
|
1356
|
+
colorAction: string;
|
|
1357
|
+
shadowColor: string;
|
|
1358
|
+
shadow050: string;
|
|
1359
|
+
shadow100: string;
|
|
1360
|
+
shadow200: string;
|
|
1361
|
+
textShadow: string;
|
|
1362
|
+
borderRadius100: string;
|
|
1363
|
+
borderRadius200: string;
|
|
1364
|
+
borderRadius300: string;
|
|
1365
|
+
borderRadius400: string;
|
|
1366
|
+
borderRadius500: string;
|
|
1367
|
+
borderWidth100: string;
|
|
1368
|
+
borderWidth200: string;
|
|
1369
|
+
borderWidth300: string;
|
|
1370
|
+
timeSM: string;
|
|
1371
|
+
timeMD: string;
|
|
1372
|
+
timeLG: string;
|
|
1373
|
+
timeXL: string;
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
export declare const themeDnipro: ThemeType;
|
|
1377
|
+
|
|
1378
|
+
export declare const themePodil: ThemeType;
|
|
1379
|
+
|
|
1380
|
+
export declare type ThemeType = {
|
|
1381
|
+
/**
|
|
1382
|
+
* Main font used by most components of library
|
|
1383
|
+
*/
|
|
1384
|
+
fontFamily: ThemeType_2['fontFamily'];
|
|
1385
|
+
/**
|
|
1386
|
+
* Monospaced font used by <code> and <pre>
|
|
1387
|
+
*/
|
|
1388
|
+
fontFamilyMonospace: ThemeType_2['fontFamilyMonospace'];
|
|
1389
|
+
/**
|
|
1390
|
+
* Font size for H1 element
|
|
1391
|
+
*/
|
|
1392
|
+
fontSizeH1: ThemeType_2['fontSizeH1'];
|
|
1393
|
+
/**
|
|
1394
|
+
* Font size for H2 element
|
|
1395
|
+
*/
|
|
1396
|
+
fontSizeH2: ThemeType_2['fontSizeH2'];
|
|
1397
|
+
/**
|
|
1398
|
+
* Font size for H3 element
|
|
1399
|
+
*/
|
|
1400
|
+
fontSizeH3: ThemeType_2['fontSizeH3'];
|
|
1401
|
+
/**
|
|
1402
|
+
* Font size for H4 element
|
|
1403
|
+
*/
|
|
1404
|
+
fontSizeH4: ThemeType_2['fontSizeH4'];
|
|
1405
|
+
/**
|
|
1406
|
+
* Font size for H5 element
|
|
1407
|
+
*/
|
|
1408
|
+
fontSizeH5: ThemeType_2['fontSizeH5'];
|
|
1409
|
+
/**
|
|
1410
|
+
* Font size for H6 element
|
|
1411
|
+
*/
|
|
1412
|
+
fontSizeH6: ThemeType_2['fontSizeH6'];
|
|
1413
|
+
/**
|
|
1414
|
+
* Arbitrary text font size. Used by P element. Expected to be most readable
|
|
1415
|
+
*/
|
|
1416
|
+
fontSizeText: ThemeType_2['fontSizeText'];
|
|
1417
|
+
/**
|
|
1418
|
+
* Medium font size
|
|
1419
|
+
*/
|
|
1420
|
+
fontSizeMedium: ThemeType_2['fontSizeMedium'];
|
|
1421
|
+
/**
|
|
1422
|
+
* Large font size
|
|
1423
|
+
*/
|
|
1424
|
+
fontSizeLarge: ThemeType_2['fontSizeLarge'];
|
|
1425
|
+
/**
|
|
1426
|
+
* Small font size
|
|
1427
|
+
*/
|
|
1428
|
+
fontSizeSmall: ThemeType_2['fontSizeSmall'];
|
|
1429
|
+
/**
|
|
1430
|
+
* Default font weight. Expected to be most readable
|
|
1431
|
+
*/
|
|
1432
|
+
fontWeightNormal: ThemeType_2['fontWeightNormal'];
|
|
1433
|
+
/**
|
|
1434
|
+
* Bolder font weight. Expected to look outstanding comparing to normal
|
|
1435
|
+
*/
|
|
1436
|
+
fontWeightBolder: ThemeType_2['fontWeightBolder'];
|
|
1437
|
+
/**
|
|
1438
|
+
* Bold font weight. Expected to look outstanding comparing to bolder
|
|
1439
|
+
*/
|
|
1440
|
+
fontWeightBold: ThemeType_2['fontWeightBold'];
|
|
1441
|
+
/**
|
|
1442
|
+
* Default text color. Expected to be most readable
|
|
1443
|
+
*/
|
|
1444
|
+
textColor: ThemeType_2['textColor'];
|
|
1445
|
+
/**
|
|
1446
|
+
* Lowest background level. E.g. paper color
|
|
1447
|
+
*/
|
|
1448
|
+
background000: ThemeType_2['background000'];
|
|
1449
|
+
/**
|
|
1450
|
+
* 100 background level. Good for delicate borders
|
|
1451
|
+
*/
|
|
1452
|
+
background100: ThemeType_2['background100'];
|
|
1453
|
+
background200: ThemeType_2['background200'];
|
|
1454
|
+
background300: ThemeType_2['background300'];
|
|
1455
|
+
background400: ThemeType_2['background400'];
|
|
1456
|
+
/**
|
|
1457
|
+
* 500 background level. Good for strong headers
|
|
1458
|
+
*/
|
|
1459
|
+
background500: ThemeType_2['background500'];
|
|
1460
|
+
/**
|
|
1461
|
+
* Highest background level. E.g. text color
|
|
1462
|
+
*/
|
|
1463
|
+
background600: ThemeType_2['background600'];
|
|
1464
|
+
/**
|
|
1465
|
+
* First brand color. It is most visible in the theme.
|
|
1466
|
+
* Has to make a good contrast with background000 and background600
|
|
1467
|
+
*/
|
|
1468
|
+
colorDo: ThemeType_2['colorDo'];
|
|
1469
|
+
/**
|
|
1470
|
+
* Second brand color. Darkest one. Has to make a good contrast with background000 and colorDo
|
|
1471
|
+
*/
|
|
1472
|
+
colorRe: ThemeType_2['colorRe'];
|
|
1473
|
+
/**
|
|
1474
|
+
* Third brand color. Lightest one. Has to make a good contrast with background600 and colorDo
|
|
1475
|
+
*/
|
|
1476
|
+
colorMi: ThemeType_2['colorMi'];
|
|
1477
|
+
/**
|
|
1478
|
+
* First alternative brand color. Used when needed to create an accented contrast with colorDo.
|
|
1479
|
+
* Has to make a good contrast with background000 and background600
|
|
1480
|
+
*/
|
|
1481
|
+
colorFa: ThemeType_2['colorFa'];
|
|
1482
|
+
/**
|
|
1483
|
+
* Second alternative brand color. Darkest one.
|
|
1484
|
+
* Has to make a good contrast with background000 and colorFa
|
|
1485
|
+
*/
|
|
1486
|
+
colorSol: ThemeType_2['colorSol'];
|
|
1487
|
+
/**
|
|
1488
|
+
* Third alternative brand color. Lightest one.
|
|
1489
|
+
* Has to make a good contrast with background600 and colorFa
|
|
1490
|
+
*/
|
|
1491
|
+
colorLa: ThemeType_2['colorLa'];
|
|
1492
|
+
/**
|
|
1493
|
+
* Error/danger/failure indication color. Has to make a good contrast with background600 and background000
|
|
1494
|
+
*/
|
|
1495
|
+
colorError: ThemeType_2['colorError'];
|
|
1496
|
+
/**
|
|
1497
|
+
* Warning indication color. Has to make a good contrast with background600 and background000
|
|
1498
|
+
*/
|
|
1499
|
+
colorWarning: ThemeType_2['colorWarning'];
|
|
1500
|
+
/**
|
|
1501
|
+
* Success/approve/agree indication color. Has to make a good contrast with background600 and background000
|
|
1502
|
+
*/
|
|
1503
|
+
colorSuccess: ThemeType_2['colorSuccess'];
|
|
1504
|
+
/**
|
|
1505
|
+
* Action/link indication color. Has to make a good contrast with background600 and background000
|
|
1506
|
+
*/
|
|
1507
|
+
colorAction: ThemeType_2['colorAction'];
|
|
1508
|
+
};
|
|
1509
|
+
|
|
1510
|
+
declare type ThemeType_2 = Partial<typeof theme>;
|
|
1511
|
+
|
|
1512
|
+
export declare const Toast: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1513
|
+
id?: string | undefined;
|
|
1514
|
+
role?: AriaRole | undefined;
|
|
1515
|
+
className?: string | undefined;
|
|
1516
|
+
} & {
|
|
1517
|
+
/** Provide unique id to the Toast */
|
|
1518
|
+
id: NonNullable<LibraryProps['id']>;
|
|
1519
|
+
children?: ReactNode;
|
|
1520
|
+
/** Provide an array of actions with callbacks */
|
|
1521
|
+
actions?: (Props_6 | [Props_6, Props_6])[] | undefined;
|
|
1522
|
+
/**
|
|
1523
|
+
* Provide Icon component to show instead default one
|
|
1524
|
+
*/
|
|
1525
|
+
icon?: FC | undefined;
|
|
1526
|
+
/** Select design variant of Toast to show */
|
|
1527
|
+
variant?: "error" | "default" | "success" | "warning" | undefined;
|
|
1528
|
+
/** Provide a main text to display inside Toast */
|
|
1529
|
+
title: string;
|
|
1530
|
+
/** Provide an additional text to display inside Toast */
|
|
1531
|
+
body?: string | undefined;
|
|
1532
|
+
/** Callback triggered when user click closes Toast */
|
|
1533
|
+
onToggle?: ((isOpen: boolean) => void) | undefined;
|
|
1534
|
+
/** Set time in seconds to auto close Toast */
|
|
1535
|
+
autoClose?: number | undefined;
|
|
1536
|
+
/** Provide custom label for close Toast action */
|
|
1537
|
+
closeLabel?: string | undefined;
|
|
1538
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
1539
|
+
|
|
1540
|
+
export declare const Tooltip: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1541
|
+
id?: string | undefined;
|
|
1542
|
+
role?: AriaRole | undefined;
|
|
1543
|
+
className?: string | undefined;
|
|
1544
|
+
} & {
|
|
1545
|
+
children: ReactNode;
|
|
1546
|
+
/** Control visibility of Tooltip */
|
|
1547
|
+
isOpen?: boolean | undefined;
|
|
1548
|
+
/**
|
|
1549
|
+
* Provide Tooltip content
|
|
1550
|
+
* @example
|
|
1551
|
+
* <Tooltip content={<div>Foo<div>} //... />
|
|
1552
|
+
*/
|
|
1553
|
+
content: ReactNode;
|
|
1554
|
+
/** Set class name of reference component wrapper */
|
|
1555
|
+
referenceClassName?: string | undefined;
|
|
1556
|
+
/** Provide callback for open/close events */
|
|
1557
|
+
onToggle?: ((openState: boolean) => void) | undefined;
|
|
1558
|
+
/** Make user interactions with Tooltip possible */
|
|
1559
|
+
interactive?: boolean | undefined;
|
|
1560
|
+
/** Define recommended placement for Tooltip content, applied when possible */
|
|
1561
|
+
placement?: Placement | undefined;
|
|
1562
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
1563
|
+
|
|
1564
|
+
export declare const Ul: ForwardRefExoticComponent<DataAttributes & AriaAttributes & {
|
|
1565
|
+
id?: string | undefined;
|
|
1566
|
+
role?: AriaRole | undefined;
|
|
1567
|
+
className?: string | undefined;
|
|
1568
|
+
} & {
|
|
1569
|
+
children?: ReactNode;
|
|
1570
|
+
} & RefAttributes<HTMLUListElement>>;
|
|
1571
|
+
|
|
1572
|
+
declare type Unit = number | 'fluid';
|
|
1573
|
+
|
|
1574
|
+
export declare const useDialogState: (id: string) => {
|
|
1575
|
+
openDialog: () => void;
|
|
1576
|
+
closeDialog: () => void;
|
|
1577
|
+
isOpen: boolean;
|
|
1578
|
+
};
|
|
1579
|
+
|
|
1580
|
+
export declare const useDrawerState: (id: string) => {
|
|
1581
|
+
openDrawer: () => void;
|
|
1582
|
+
closeDrawer: () => void;
|
|
1583
|
+
isOpen: boolean;
|
|
1584
|
+
};
|
|
1585
|
+
|
|
1586
|
+
export declare const useFormActions: () => {
|
|
1587
|
+
markAsPristine: () => void;
|
|
1588
|
+
markAsDirty: () => void;
|
|
1589
|
+
};
|
|
1590
|
+
|
|
1591
|
+
export declare const useFormSelectors: () => {
|
|
1592
|
+
pristine: boolean;
|
|
1593
|
+
};
|
|
1594
|
+
|
|
1595
|
+
export declare const useNotificationState: (id: string) => {
|
|
1596
|
+
/**
|
|
1597
|
+
* Show notification to the user.
|
|
1598
|
+
* Warning! Will not work from component scope. Needs to be run as an effect
|
|
1599
|
+
* @example
|
|
1600
|
+
* const {openNotificaton} = useNotificationState(id);
|
|
1601
|
+
* const handleClick = useCallback(() => {
|
|
1602
|
+
* openNotification();
|
|
1603
|
+
* }, [openNotification]);
|
|
1604
|
+
*/
|
|
1605
|
+
openNotification: () => void;
|
|
1606
|
+
/**
|
|
1607
|
+
* Hide notification.
|
|
1608
|
+
* Warning! Will not work from component scope. Needs to be run as an effect
|
|
1609
|
+
* @example
|
|
1610
|
+
* const {openNotificaton} = useNotificationState(id);
|
|
1611
|
+
* const handleClick = useCallback(() => {
|
|
1612
|
+
* openNotification();
|
|
1613
|
+
* }, [openNotification]);
|
|
1614
|
+
*/
|
|
1615
|
+
closeNotification: () => void;
|
|
1616
|
+
/** Current visibility of notification */
|
|
1617
|
+
isOpen: boolean;
|
|
1618
|
+
/**
|
|
1619
|
+
* Indicates the current permission granted by the user for the current origin to display web notifications
|
|
1620
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Notification/permission_static
|
|
1621
|
+
*/
|
|
1622
|
+
permission: NotificationPermission | undefined;
|
|
1623
|
+
};
|
|
1624
|
+
|
|
1625
|
+
export declare const useToastState: (id: string) => {
|
|
1626
|
+
openToast: () => void;
|
|
1627
|
+
closeToast: () => void;
|
|
1628
|
+
isOpen: boolean;
|
|
1629
|
+
};
|
|
1630
|
+
|
|
1631
|
+
declare type ValidationProps = {
|
|
1632
|
+
validatorFn?: (value: unknown, validityState: ValidityState, formState: FormState_2) => string | Promise<string>;
|
|
1633
|
+
};
|
|
1634
|
+
|
|
1635
|
+
declare enum ValidationState {
|
|
1636
|
+
error = "error",
|
|
1637
|
+
valid = "valid",
|
|
1638
|
+
inProgress = "inProgress"
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
declare enum Variants {
|
|
1642
|
+
bordered = "bordered",
|
|
1643
|
+
plain = "plain"
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
export { }
|