@amsterdam/design-system-react 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -11
- package/dist/index.cjs.js +197 -122
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +264 -170
- package/dist/index.esm.js +194 -122
- package/dist/index.esm.js.map +1 -1
- package/package.json +22 -21
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,43 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { PropsWithChildren, HTMLAttributes, InputHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, SelectHTMLAttributes, ButtonHTMLAttributes, TextareaHTMLAttributes, AnchorHTMLAttributes, TableHTMLAttributes, SVGProps, ForwardRefExoticComponent, RefAttributes, ReactNode, DialogHTMLAttributes, ImgHTMLAttributes, BlockquoteHTMLAttributes, OlHTMLAttributes, LiHTMLAttributes, LabelHTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
type ErrorMessageProps = {
|
|
5
|
+
/** An accessible phrase that screen readers announce before the error message. Should translate to something like ‘input error’. */
|
|
6
|
+
prefix?: string;
|
|
7
|
+
} & PropsWithChildren<HTMLAttributes<HTMLParagraphElement>>;
|
|
8
|
+
declare const ErrorMessage: react.ForwardRefExoticComponent<{
|
|
9
|
+
/** An accessible phrase that screen readers announce before the error message. Should translate to something like ‘input error’. */
|
|
10
|
+
prefix?: string | undefined;
|
|
11
|
+
} & HTMLAttributes<HTMLParagraphElement> & {
|
|
12
|
+
children?: react.ReactNode;
|
|
13
|
+
} & react.RefAttributes<HTMLParagraphElement>>;
|
|
14
|
+
|
|
15
|
+
type FileInputProps = InputHTMLAttributes<HTMLInputElement>;
|
|
16
|
+
declare const FileInput: react.ForwardRefExoticComponent<FileInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
17
|
+
|
|
18
|
+
type FieldProps = {
|
|
19
|
+
/** Whether the field has an input with a validation error */
|
|
20
|
+
invalid?: boolean;
|
|
21
|
+
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const Field: react.ForwardRefExoticComponent<{
|
|
23
|
+
/** Whether the field has an input with a validation error */
|
|
24
|
+
invalid?: boolean | undefined;
|
|
25
|
+
} & HTMLAttributes<HTMLDivElement> & {
|
|
26
|
+
children?: react.ReactNode;
|
|
27
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
3
28
|
|
|
4
29
|
type SelectOptionGroupProps = OptgroupHTMLAttributes<HTMLOptGroupElement>;
|
|
5
30
|
|
|
6
31
|
type SelectOptionProps = OptionHTMLAttributes<HTMLOptionElement>;
|
|
7
32
|
|
|
8
33
|
type SelectProps = {
|
|
9
|
-
/**
|
|
34
|
+
/** Whether the value fails a validation rule. */
|
|
10
35
|
invalid?: boolean;
|
|
11
|
-
} & PropsWithChildren<SelectHTMLAttributes<HTMLSelectElement>>;
|
|
36
|
+
} & PropsWithChildren<Omit<SelectHTMLAttributes<HTMLSelectElement>, 'aria-invalid'>>;
|
|
12
37
|
declare const Select: react.ForwardRefExoticComponent<{
|
|
13
|
-
/**
|
|
38
|
+
/** Whether the value fails a validation rule. */
|
|
14
39
|
invalid?: boolean | undefined;
|
|
15
|
-
} & SelectHTMLAttributes<HTMLSelectElement> & {
|
|
40
|
+
} & Omit<SelectHTMLAttributes<HTMLSelectElement>, "aria-invalid"> & {
|
|
16
41
|
children?: react.ReactNode;
|
|
17
42
|
} & react.RefAttributes<HTMLSelectElement>> & {
|
|
18
43
|
Option: react.ForwardRefExoticComponent<SelectOptionProps & {
|
|
@@ -23,38 +48,62 @@ declare const Select: react.ForwardRefExoticComponent<{
|
|
|
23
48
|
} & react.RefAttributes<HTMLOptGroupElement>>;
|
|
24
49
|
};
|
|
25
50
|
|
|
26
|
-
type TimeInputProps =
|
|
27
|
-
|
|
51
|
+
type TimeInputProps = {
|
|
52
|
+
/** Whether the value fails a validation rule. */
|
|
53
|
+
invalid?: boolean;
|
|
54
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>;
|
|
55
|
+
declare const TimeInput: react.ForwardRefExoticComponent<{
|
|
56
|
+
/** Whether the value fails a validation rule. */
|
|
57
|
+
invalid?: boolean | undefined;
|
|
58
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
28
59
|
|
|
29
|
-
type DateInputProps =
|
|
30
|
-
|
|
60
|
+
type DateInputProps = {
|
|
61
|
+
/** Whether the value fails a validation rule. */
|
|
62
|
+
invalid?: boolean;
|
|
63
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>;
|
|
64
|
+
declare const DateInput: react.ForwardRefExoticComponent<{
|
|
65
|
+
/** Whether the value fails a validation rule. */
|
|
66
|
+
invalid?: boolean | undefined;
|
|
67
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
31
68
|
|
|
32
69
|
declare const avatarColors: readonly ["blue", "dark-blue", "dark-green", "green", "magenta", "orange", "purple", "red", "yellow"];
|
|
33
70
|
type AvatarColor = (typeof avatarColors)[number];
|
|
34
71
|
type AvatarProps = {
|
|
72
|
+
/** The background colour. */
|
|
35
73
|
color?: AvatarColor;
|
|
74
|
+
/** The url for the user’s image. Its center will be displayed. Should be square and scaled down. */
|
|
36
75
|
imageSrc?: string;
|
|
76
|
+
/** The text content. Should be the user’s initials. The first two characters will be displayed. */
|
|
37
77
|
label: string;
|
|
38
78
|
} & HTMLAttributes<HTMLSpanElement>;
|
|
39
79
|
declare const Avatar: react.ForwardRefExoticComponent<{
|
|
80
|
+
/** The background colour. */
|
|
40
81
|
color?: "blue" | "dark-blue" | "dark-green" | "green" | "magenta" | "orange" | "purple" | "red" | "yellow" | undefined;
|
|
82
|
+
/** The url for the user’s image. Its center will be displayed. Should be square and scaled down. */
|
|
41
83
|
imageSrc?: string | undefined;
|
|
84
|
+
/** The text content. Should be the user’s initials. The first two characters will be displayed. */
|
|
42
85
|
label: string;
|
|
43
86
|
} & HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
|
|
44
87
|
|
|
45
88
|
type FormFieldCharacterCounterProps = HTMLAttributes<HTMLDivElement> & {
|
|
89
|
+
/** The current length of the field’s value. */
|
|
46
90
|
length: number;
|
|
91
|
+
/** The maximum length of the field’s value. */
|
|
47
92
|
maxLength: number;
|
|
48
93
|
};
|
|
49
94
|
declare const FormFieldCharacterCounter: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
95
|
+
/** The current length of the field’s value. */
|
|
50
96
|
length: number;
|
|
97
|
+
/** The maximum length of the field’s value. */
|
|
51
98
|
maxLength: number;
|
|
52
99
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
53
100
|
|
|
54
101
|
type DescriptionListProps = {
|
|
102
|
+
/** Changes the text colour for readability on a dark background. */
|
|
55
103
|
inverseColor?: boolean;
|
|
56
104
|
} & PropsWithChildren<HTMLAttributes<HTMLDListElement>>;
|
|
57
105
|
declare const DescriptionList: react.ForwardRefExoticComponent<{
|
|
106
|
+
/** Changes the text colour for readability on a dark background. */
|
|
58
107
|
inverseColor?: boolean | undefined;
|
|
59
108
|
} & HTMLAttributes<HTMLDListElement> & {
|
|
60
109
|
children?: react.ReactNode;
|
|
@@ -75,26 +124,28 @@ declare const rowGapSizes: Array<string>;
|
|
|
75
124
|
type RowTag = 'article' | 'div' | 'section';
|
|
76
125
|
type RowGap = (typeof rowGapSizes)[number];
|
|
77
126
|
type RowProps = {
|
|
78
|
-
/** The element to
|
|
127
|
+
/** The HTML element to use. */
|
|
79
128
|
as?: RowTag;
|
|
80
|
-
/** The amount of vertical space between
|
|
129
|
+
/** The amount of vertical space between items. */
|
|
81
130
|
gap?: RowGap;
|
|
82
131
|
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
83
132
|
declare const Row: react.ForwardRefExoticComponent<{
|
|
84
|
-
/** The element to
|
|
133
|
+
/** The HTML element to use. */
|
|
85
134
|
as?: RowTag | undefined;
|
|
86
|
-
/** The amount of vertical space between
|
|
135
|
+
/** The amount of vertical space between items. */
|
|
87
136
|
gap?: string | undefined;
|
|
88
137
|
} & HTMLAttributes<HTMLElement> & {
|
|
89
138
|
children?: react.ReactNode;
|
|
90
139
|
} & react.RefAttributes<unknown>>;
|
|
91
140
|
|
|
92
141
|
type RadioProps = {
|
|
142
|
+
/** Whether the value fails a validation rule. */
|
|
93
143
|
invalid?: boolean;
|
|
94
|
-
} & PropsWithChildren<InputHTMLAttributes<HTMLInputElement>>;
|
|
144
|
+
} & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>;
|
|
95
145
|
declare const Radio: react.ForwardRefExoticComponent<{
|
|
146
|
+
/** Whether the value fails a validation rule. */
|
|
96
147
|
invalid?: boolean | undefined;
|
|
97
|
-
} & InputHTMLAttributes<HTMLInputElement> & {
|
|
148
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
98
149
|
children?: react.ReactNode;
|
|
99
150
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
100
151
|
|
|
@@ -118,46 +169,60 @@ declare const Tabs: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElemen
|
|
|
118
169
|
};
|
|
119
170
|
|
|
120
171
|
type TabsPanelProps = {
|
|
172
|
+
/** The identifier of the corresponding Tab. */
|
|
121
173
|
tab: number;
|
|
122
174
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
123
175
|
|
|
124
176
|
type TabsListProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
125
177
|
|
|
126
178
|
type TabsButtonProps = {
|
|
179
|
+
/** An identifier. */
|
|
127
180
|
tab: number;
|
|
128
181
|
} & PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
129
182
|
|
|
130
|
-
type TextAreaProps =
|
|
183
|
+
type TextAreaProps = {
|
|
184
|
+
/** Whether the value fails a validation rule. */
|
|
185
|
+
invalid?: boolean;
|
|
186
|
+
/** Allows the user to resize the text box. The default is resizing in both directions. */
|
|
131
187
|
resize?: 'none' | 'horizontal' | 'vertical';
|
|
132
|
-
}
|
|
133
|
-
declare const TextArea: react.ForwardRefExoticComponent<
|
|
188
|
+
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'aria-invalid'>;
|
|
189
|
+
declare const TextArea: react.ForwardRefExoticComponent<{
|
|
190
|
+
/** Whether the value fails a validation rule. */
|
|
191
|
+
invalid?: boolean | undefined;
|
|
192
|
+
/** Allows the user to resize the text box. The default is resizing in both directions. */
|
|
134
193
|
resize?: "none" | "horizontal" | "vertical" | undefined;
|
|
135
|
-
} & react.RefAttributes<HTMLTextAreaElement>>;
|
|
194
|
+
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "aria-invalid"> & react.RefAttributes<HTMLTextAreaElement>>;
|
|
136
195
|
|
|
137
196
|
declare const columnGapSizes: Array<string>;
|
|
138
197
|
type ColumnTag = 'article' | 'div' | 'section';
|
|
139
198
|
type ColumnGap = (typeof columnGapSizes)[number];
|
|
140
199
|
type ColumnProps = {
|
|
141
|
-
/** The element to
|
|
200
|
+
/** The HTML element to use. */
|
|
142
201
|
as?: ColumnTag;
|
|
143
|
-
/** The amount of vertical space between
|
|
202
|
+
/** The amount of vertical space between items. */
|
|
144
203
|
gap?: ColumnGap;
|
|
145
204
|
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
146
205
|
declare const Column: react.ForwardRefExoticComponent<{
|
|
147
|
-
/** The element to
|
|
206
|
+
/** The HTML element to use. */
|
|
148
207
|
as?: ColumnTag | undefined;
|
|
149
|
-
/** The amount of vertical space between
|
|
208
|
+
/** The amount of vertical space between items. */
|
|
150
209
|
gap?: string | undefined;
|
|
151
210
|
} & HTMLAttributes<HTMLElement> & {
|
|
152
211
|
children?: react.ReactNode;
|
|
153
212
|
} & react.RefAttributes<unknown>>;
|
|
154
213
|
|
|
155
|
-
type
|
|
214
|
+
type FieldSetProps = PropsWithChildren<HTMLAttributes<HTMLFieldSetElement>> & {
|
|
215
|
+
/** Whether the field set has an input with a validation error */
|
|
216
|
+
invalid?: boolean;
|
|
217
|
+
/** The text for the caption. */
|
|
156
218
|
legend: string;
|
|
157
219
|
};
|
|
158
|
-
declare const
|
|
220
|
+
declare const FieldSet: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFieldSetElement> & {
|
|
159
221
|
children?: react.ReactNode;
|
|
160
222
|
} & {
|
|
223
|
+
/** Whether the field set has an input with a validation error */
|
|
224
|
+
invalid?: boolean | undefined;
|
|
225
|
+
/** The text for the caption. */
|
|
161
226
|
legend: string;
|
|
162
227
|
} & react.RefAttributes<HTMLFieldSetElement>>;
|
|
163
228
|
|
|
@@ -166,7 +231,6 @@ declare const LinkList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUList
|
|
|
166
231
|
children?: react.ReactNode;
|
|
167
232
|
} & react.RefAttributes<HTMLUListElement>> & {
|
|
168
233
|
Link: react.ForwardRefExoticComponent<{
|
|
169
|
-
href: string;
|
|
170
234
|
icon?: Function | undefined;
|
|
171
235
|
onBackground?: ("default" | "light" | "dark") | undefined;
|
|
172
236
|
size?: "small" | "large" | undefined;
|
|
@@ -177,30 +241,26 @@ declare const LinkList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUList
|
|
|
177
241
|
|
|
178
242
|
type BackgroundName = 'default' | 'light' | 'dark';
|
|
179
243
|
type LinkListLinkProps = {
|
|
180
|
-
/**
|
|
181
|
-
href: string;
|
|
182
|
-
/**
|
|
183
|
-
* An icon to display instead of the default chevron.
|
|
184
|
-
* Don’t mix custom icons with chevrons in one list.
|
|
185
|
-
*/
|
|
244
|
+
/** An icon to display instead of the default chevron. Don’t mix custom icons with chevrons in one list. */
|
|
186
245
|
icon?: Function;
|
|
187
|
-
/**
|
|
246
|
+
/** Describes the underlying background colour. Allows the text to provide visual contrast. */
|
|
188
247
|
onBackground?: BackgroundName;
|
|
189
|
-
/**
|
|
190
|
-
* The text size for the link.
|
|
191
|
-
* Use the same size for all items in the list.
|
|
192
|
-
*/
|
|
248
|
+
/** The size of the text. Use the same size for all items in the list. */
|
|
193
249
|
size?: 'small' | 'large';
|
|
194
250
|
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
195
251
|
|
|
196
|
-
declare const badgeColors: readonly ["
|
|
252
|
+
declare const badgeColors: readonly ["black", "blue", "dark-green", "green", "grey-1", "grey-2", "grey-3", "light-blue", "magenta", "orange", "purple", "red", "white", "yellow"];
|
|
197
253
|
type BadgeColor = (typeof badgeColors)[number];
|
|
198
254
|
type BadgeProps = {
|
|
255
|
+
/** The background colour. */
|
|
199
256
|
color?: BadgeColor;
|
|
257
|
+
/** The text content. */
|
|
200
258
|
label: string | number;
|
|
201
259
|
} & HTMLAttributes<HTMLElement>;
|
|
202
260
|
declare const Badge: react.ForwardRefExoticComponent<{
|
|
203
|
-
|
|
261
|
+
/** The background colour. */
|
|
262
|
+
color?: "black" | "blue" | "dark-green" | "green" | "grey-1" | "grey-2" | "grey-3" | "light-blue" | "magenta" | "orange" | "purple" | "red" | "white" | "yellow" | undefined;
|
|
263
|
+
/** The text content. */
|
|
204
264
|
label: string | number;
|
|
205
265
|
} & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>>;
|
|
206
266
|
|
|
@@ -243,15 +303,23 @@ declare const MegaMenu: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivEl
|
|
|
243
303
|
type MegaMenuListCategoryProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
244
304
|
|
|
245
305
|
type IconButtonProps = {
|
|
306
|
+
/** The accessible text for the button. Will be announced by screen readers. Should describe the button’s action. */
|
|
246
307
|
label: string;
|
|
308
|
+
/** Describes the underlying background colour. Allows the icon to provide visual contrast. */
|
|
247
309
|
onBackground?: 'light' | 'dark';
|
|
310
|
+
/** The size of the icon. Corresponds with the text levels. */
|
|
248
311
|
size?: 'level-3' | 'level-4' | 'level-5' | 'level-6';
|
|
312
|
+
/** The component rendering the icon’s markup. */
|
|
249
313
|
svg?: Function;
|
|
250
314
|
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
251
315
|
declare const IconButton: react.ForwardRefExoticComponent<{
|
|
316
|
+
/** The accessible text for the button. Will be announced by screen readers. Should describe the button’s action. */
|
|
252
317
|
label: string;
|
|
318
|
+
/** Describes the underlying background colour. Allows the icon to provide visual contrast. */
|
|
253
319
|
onBackground?: "light" | "dark" | undefined;
|
|
320
|
+
/** The size of the icon. Corresponds with the text levels. */
|
|
254
321
|
size?: "level-3" | "level-4" | "level-5" | "level-6" | undefined;
|
|
322
|
+
/** The component rendering the icon’s markup. */
|
|
255
323
|
svg?: Function | undefined;
|
|
256
324
|
} & ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
257
325
|
|
|
@@ -272,24 +340,37 @@ declare const Overlap: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivEle
|
|
|
272
340
|
|
|
273
341
|
type LogoBrand = 'amsterdam' | 'ggd-amsterdam' | 'museum-weesp' | 'stadsarchief' | 'stadsbank-van-lening' | 'vga-verzekeringen';
|
|
274
342
|
type LogoProps = {
|
|
343
|
+
/** The name of the brand for which to display the logo. */
|
|
275
344
|
brand?: LogoBrand;
|
|
276
345
|
} & SVGProps<SVGSVGElement>;
|
|
277
346
|
declare const Logo: ForwardRefExoticComponent<Omit<LogoProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
278
347
|
|
|
279
348
|
type HeaderProps = {
|
|
349
|
+
/** The name of the brand for which to display the logo. */
|
|
280
350
|
logoBrand?: LogoBrand;
|
|
351
|
+
/** The url for the link on the logo. */
|
|
281
352
|
logoLink?: string;
|
|
353
|
+
/** The accessible text for the link on the logo. */
|
|
282
354
|
logoLinkTitle?: string;
|
|
355
|
+
/** The name of the application. */
|
|
283
356
|
title?: string;
|
|
357
|
+
/** The list of menu links. Use a Page Menu here. */
|
|
284
358
|
links?: ReactNode;
|
|
359
|
+
/** A button to toggle the visibility of a Mega Menu. */
|
|
285
360
|
menu?: ReactNode;
|
|
286
361
|
} & HTMLAttributes<HTMLElement>;
|
|
287
362
|
declare const Header: react.ForwardRefExoticComponent<{
|
|
363
|
+
/** The name of the brand for which to display the logo. */
|
|
288
364
|
logoBrand?: LogoBrand | undefined;
|
|
365
|
+
/** The url for the link on the logo. */
|
|
289
366
|
logoLink?: string | undefined;
|
|
367
|
+
/** The accessible text for the link on the logo. */
|
|
290
368
|
logoLinkTitle?: string | undefined;
|
|
369
|
+
/** The name of the application. */
|
|
291
370
|
title?: string | undefined;
|
|
371
|
+
/** The list of menu links. Use a Page Menu here. */
|
|
292
372
|
links?: ReactNode;
|
|
373
|
+
/** A button to toggle the visibility of a Mega Menu. */
|
|
293
374
|
menu?: ReactNode;
|
|
294
375
|
} & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>>;
|
|
295
376
|
|
|
@@ -298,69 +379,86 @@ declare const Mark: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement>
|
|
|
298
379
|
children?: react.ReactNode;
|
|
299
380
|
} & react.RefAttributes<HTMLElement>>;
|
|
300
381
|
|
|
301
|
-
type TextInputProps =
|
|
302
|
-
|
|
382
|
+
type TextInputProps = {
|
|
383
|
+
/** Whether the value fails a validation rule. */
|
|
384
|
+
invalid?: boolean;
|
|
385
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid'>;
|
|
386
|
+
declare const TextInput: react.ForwardRefExoticComponent<{
|
|
387
|
+
/** Whether the value fails a validation rule. */
|
|
388
|
+
invalid?: boolean | undefined;
|
|
389
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid"> & react.RefAttributes<HTMLInputElement>>;
|
|
303
390
|
|
|
304
391
|
type SearchFieldProps = PropsWithChildren<HTMLAttributes<HTMLFormElement>>;
|
|
305
392
|
declare const SearchField: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFormElement> & {
|
|
306
393
|
children?: react.ReactNode;
|
|
307
394
|
} & react.RefAttributes<HTMLFormElement>> & {
|
|
308
|
-
Button: react.ForwardRefExoticComponent<
|
|
395
|
+
Button: react.ForwardRefExoticComponent<{
|
|
396
|
+
label?: string | undefined;
|
|
397
|
+
} & HTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
309
398
|
Input: react.ForwardRefExoticComponent<{
|
|
399
|
+
invalid?: boolean | undefined;
|
|
310
400
|
label?: string | undefined;
|
|
311
401
|
} & react.InputHTMLAttributes<HTMLInputElement> & react.RefAttributes<HTMLInputElement>>;
|
|
312
402
|
};
|
|
313
403
|
|
|
314
404
|
type DialogProps = {
|
|
405
|
+
/** The button(s) in the footer. Start with a primary button. */
|
|
315
406
|
actions?: ReactNode;
|
|
407
|
+
/** The label for the button that dismisses the Dialog. */
|
|
408
|
+
closeButtonLabel?: string;
|
|
316
409
|
} & PropsWithChildren<DialogHTMLAttributes<HTMLDialogElement>>;
|
|
317
410
|
declare const Dialog: react.ForwardRefExoticComponent<{
|
|
411
|
+
/** The button(s) in the footer. Start with a primary button. */
|
|
318
412
|
actions?: ReactNode;
|
|
413
|
+
/** The label for the button that dismisses the Dialog. */
|
|
414
|
+
closeButtonLabel?: string | undefined;
|
|
319
415
|
} & DialogHTMLAttributes<HTMLDialogElement> & {
|
|
320
416
|
children?: ReactNode;
|
|
321
417
|
} & react.RefAttributes<HTMLDialogElement>>;
|
|
322
418
|
|
|
323
419
|
type ImageProps = {
|
|
420
|
+
/** Whether to display the image exactly as large as its container. This will clip the image if necessary. */
|
|
324
421
|
cover?: boolean;
|
|
325
422
|
} & ImgHTMLAttributes<HTMLImageElement>;
|
|
326
423
|
declare const Image: react.ForwardRefExoticComponent<{
|
|
424
|
+
/** Whether to display the image exactly as large as its container. This will clip the image if necessary. */
|
|
327
425
|
cover?: boolean | undefined;
|
|
328
426
|
} & ImgHTMLAttributes<HTMLImageElement> & react.RefAttributes<HTMLImageElement>>;
|
|
329
427
|
|
|
330
428
|
type PaginationProps = {
|
|
331
|
-
/**
|
|
332
|
-
* The maximum amount of pages shown. This has a lower limit of 5
|
|
333
|
-
*/
|
|
429
|
+
/** The maximum amount of pages shown. Minimum value: 5. */
|
|
334
430
|
maxVisiblePages?: number;
|
|
335
|
-
/**
|
|
336
|
-
|
|
337
|
-
|
|
431
|
+
/** The accessible name for the link to the next page. */
|
|
432
|
+
nextAriaLabel?: string;
|
|
433
|
+
/** The label for the link to the next page. */
|
|
434
|
+
nextLabel?: string;
|
|
435
|
+
/** A function to run when the page number changes. */
|
|
338
436
|
onPageChange?: (page: number) => void;
|
|
339
|
-
/**
|
|
340
|
-
* The current page number.
|
|
341
|
-
*/
|
|
437
|
+
/** The current page number. */
|
|
342
438
|
page?: number;
|
|
343
|
-
/**
|
|
344
|
-
|
|
345
|
-
|
|
439
|
+
/** The accessible name for the link to the previous page. */
|
|
440
|
+
previousAriaLabel?: string;
|
|
441
|
+
/** The label for the link to the previous page. */
|
|
442
|
+
previousLabel?: string;
|
|
443
|
+
/** The total amount of pages. */
|
|
346
444
|
totalPages: number;
|
|
347
445
|
} & HTMLAttributes<HTMLElement>;
|
|
348
446
|
declare const Pagination: react.ForwardRefExoticComponent<{
|
|
349
|
-
/**
|
|
350
|
-
* The maximum amount of pages shown. This has a lower limit of 5
|
|
351
|
-
*/
|
|
447
|
+
/** The maximum amount of pages shown. Minimum value: 5. */
|
|
352
448
|
maxVisiblePages?: number | undefined;
|
|
353
|
-
/**
|
|
354
|
-
|
|
355
|
-
|
|
449
|
+
/** The accessible name for the link to the next page. */
|
|
450
|
+
nextAriaLabel?: string | undefined;
|
|
451
|
+
/** The label for the link to the next page. */
|
|
452
|
+
nextLabel?: string | undefined;
|
|
453
|
+
/** A function to run when the page number changes. */
|
|
356
454
|
onPageChange?: ((page: number) => void) | undefined;
|
|
357
|
-
/**
|
|
358
|
-
* The current page number.
|
|
359
|
-
*/
|
|
455
|
+
/** The current page number. */
|
|
360
456
|
page?: number | undefined;
|
|
361
|
-
/**
|
|
362
|
-
|
|
363
|
-
|
|
457
|
+
/** The accessible name for the link to the previous page. */
|
|
458
|
+
previousAriaLabel?: string | undefined;
|
|
459
|
+
/** The label for the link to the previous page. */
|
|
460
|
+
previousLabel?: string | undefined;
|
|
461
|
+
/** The total amount of pages. */
|
|
364
462
|
totalPages: number;
|
|
365
463
|
} & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>>;
|
|
366
464
|
|
|
@@ -388,11 +486,15 @@ declare const Switch: react.ForwardRefExoticComponent<InputHTMLAttributes<HTMLIn
|
|
|
388
486
|
declare const spotlightColors: readonly ["blue", "dark-blue", "dark-green", "green", "magenta", "orange", "purple", "yellow"];
|
|
389
487
|
type SpotlightColor = (typeof spotlightColors)[number];
|
|
390
488
|
type SpotlightProps = {
|
|
489
|
+
/** The HTML element to use. */
|
|
391
490
|
as?: 'article' | 'aside' | 'div' | 'footer' | 'section';
|
|
491
|
+
/** The background colour. */
|
|
392
492
|
color?: SpotlightColor;
|
|
393
493
|
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
394
494
|
declare const Spotlight: react.ForwardRefExoticComponent<{
|
|
495
|
+
/** The HTML element to use. */
|
|
395
496
|
as?: "article" | "aside" | "div" | "footer" | "section" | undefined;
|
|
497
|
+
/** The background colour. */
|
|
396
498
|
color?: "blue" | "dark-blue" | "dark-green" | "green" | "magenta" | "orange" | "purple" | "yellow" | undefined;
|
|
397
499
|
} & HTMLAttributes<HTMLElement> & {
|
|
398
500
|
children?: react.ReactNode;
|
|
@@ -413,6 +515,7 @@ declare const Card: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement>
|
|
|
413
515
|
};
|
|
414
516
|
|
|
415
517
|
type CardHeadingGroupProps = {
|
|
518
|
+
/** A short phrase of text, e.g. to categorise the card. Displayed above the card heading. */
|
|
416
519
|
tagline: string;
|
|
417
520
|
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
418
521
|
|
|
@@ -421,68 +524,50 @@ type CardLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
|
421
524
|
type HeadingLevel = 1 | 2 | 3 | 4;
|
|
422
525
|
type HeadingSize = 'level-1' | 'level-2' | 'level-3' | 'level-4' | 'level-5' | 'level-6';
|
|
423
526
|
type HeadingProps = {
|
|
424
|
-
/**
|
|
425
|
-
|
|
426
|
-
|
|
527
|
+
/** Changes the text colour for readability on a dark background. */
|
|
528
|
+
inverseColor?: boolean;
|
|
529
|
+
/** The hierarchical level within the document. */
|
|
427
530
|
level?: HeadingLevel;
|
|
428
|
-
/**
|
|
429
|
-
* De visuele grootte van de titel.
|
|
430
|
-
* Voeg dit toe om de titel groter of kleiner weer te geven zonder de semantische betekenis te veranderen.
|
|
431
|
-
*/
|
|
531
|
+
/** Uses larger or smaller text without changing its position in the heading hierarchy. */
|
|
432
532
|
size?: HeadingSize;
|
|
433
|
-
/**
|
|
434
|
-
* De kleur van de titel
|
|
435
|
-
* Gebruik deze property om de titel in tegenovergestelde kleur te tonen.
|
|
436
|
-
*/
|
|
437
|
-
inverseColor?: boolean;
|
|
438
533
|
} & PropsWithChildren<HTMLAttributes<HTMLHeadingElement>>;
|
|
439
534
|
declare const Heading: react.ForwardRefExoticComponent<{
|
|
440
|
-
/**
|
|
441
|
-
|
|
442
|
-
|
|
535
|
+
/** Changes the text colour for readability on a dark background. */
|
|
536
|
+
inverseColor?: boolean | undefined;
|
|
537
|
+
/** The hierarchical level within the document. */
|
|
443
538
|
level?: HeadingLevel | undefined;
|
|
444
|
-
/**
|
|
445
|
-
* De visuele grootte van de titel.
|
|
446
|
-
* Voeg dit toe om de titel groter of kleiner weer te geven zonder de semantische betekenis te veranderen.
|
|
447
|
-
*/
|
|
539
|
+
/** Uses larger or smaller text without changing its position in the heading hierarchy. */
|
|
448
540
|
size?: HeadingSize | undefined;
|
|
449
|
-
/**
|
|
450
|
-
* De kleur van de titel
|
|
451
|
-
* Gebruik deze property om de titel in tegenovergestelde kleur te tonen.
|
|
452
|
-
*/
|
|
453
|
-
inverseColor?: boolean | undefined;
|
|
454
541
|
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
455
542
|
children?: react.ReactNode;
|
|
456
543
|
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
457
544
|
|
|
458
545
|
type AlertProps = {
|
|
459
|
-
/** Whether the
|
|
546
|
+
/** Whether the user can dismiss the Alert. Adds a button to its top right. */
|
|
460
547
|
closeable?: boolean;
|
|
461
|
-
/**
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
*/
|
|
548
|
+
/** The label for the button that dismisses the Alert. */
|
|
549
|
+
closeButtonLabel?: string;
|
|
550
|
+
/** The hierarchical level of the Alert’s heading within the document. */
|
|
465
551
|
headingLevel?: HeadingProps['level'];
|
|
466
|
-
/**
|
|
552
|
+
/** A function to run when dismissing. */
|
|
467
553
|
onClose?: () => void;
|
|
468
|
-
/**
|
|
554
|
+
/** The significance of the message conveyed. */
|
|
469
555
|
severity?: 'error' | 'info' | 'success' | 'warning';
|
|
470
|
-
/** The
|
|
556
|
+
/** The text for the Heading. */
|
|
471
557
|
title?: string;
|
|
472
558
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
473
559
|
declare const Alert: react.ForwardRefExoticComponent<{
|
|
474
|
-
/** Whether the
|
|
560
|
+
/** Whether the user can dismiss the Alert. Adds a button to its top right. */
|
|
475
561
|
closeable?: boolean | undefined;
|
|
476
|
-
/**
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
*/
|
|
562
|
+
/** The label for the button that dismisses the Alert. */
|
|
563
|
+
closeButtonLabel?: string | undefined;
|
|
564
|
+
/** The hierarchical level of the Alert’s heading within the document. */
|
|
480
565
|
headingLevel?: HeadingProps['level'];
|
|
481
|
-
/**
|
|
566
|
+
/** A function to run when dismissing. */
|
|
482
567
|
onClose?: (() => void) | undefined;
|
|
483
|
-
/**
|
|
568
|
+
/** The significance of the message conveyed. */
|
|
484
569
|
severity?: "error" | "info" | "success" | "warning" | undefined;
|
|
485
|
-
/** The
|
|
570
|
+
/** The text for the Heading. */
|
|
486
571
|
title?: string | undefined;
|
|
487
572
|
} & HTMLAttributes<HTMLDivElement> & {
|
|
488
573
|
children?: react.ReactNode;
|
|
@@ -490,9 +575,11 @@ declare const Alert: react.ForwardRefExoticComponent<{
|
|
|
490
575
|
|
|
491
576
|
type Ratio = 'x-tall' | 'tall' | 'square' | 'wide' | 'x-wide' | '2x-wide';
|
|
492
577
|
type AspectRatioProps = {
|
|
578
|
+
/** The dimensions. */
|
|
493
579
|
ratio?: Ratio;
|
|
494
580
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
495
581
|
declare const AspectRatio: react.ForwardRefExoticComponent<{
|
|
582
|
+
/** The dimensions. */
|
|
496
583
|
ratio?: Ratio | undefined;
|
|
497
584
|
} & HTMLAttributes<HTMLDivElement> & {
|
|
498
585
|
children?: react.ReactNode;
|
|
@@ -519,25 +606,15 @@ type FooterBottomProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
|
519
606
|
type FooterTopProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
520
607
|
|
|
521
608
|
type PageMenuProps = {
|
|
522
|
-
/**
|
|
523
|
-
* Whether the page menu’s items align to its end.
|
|
524
|
-
* If the menu itself aligns to the end of its container, you should set this to `true`.
|
|
525
|
-
*/
|
|
609
|
+
/** Whether the items align to the end margin. Set to `true` if the Page Menu itself does so. */
|
|
526
610
|
alignEnd?: boolean;
|
|
527
|
-
/**
|
|
528
|
-
* Whether menu items should wrap if they don’t fit on a single row.
|
|
529
|
-
*/
|
|
611
|
+
/** Whether menu items should wrap if they don’t fit on a single row. */
|
|
530
612
|
wrap?: boolean;
|
|
531
613
|
} & PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
532
614
|
declare const PageMenu: react.ForwardRefExoticComponent<{
|
|
533
|
-
/**
|
|
534
|
-
* Whether the page menu’s items align to its end.
|
|
535
|
-
* If the menu itself aligns to the end of its container, you should set this to `true`.
|
|
536
|
-
*/
|
|
615
|
+
/** Whether the items align to the end margin. Set to `true` if the Page Menu itself does so. */
|
|
537
616
|
alignEnd?: boolean | undefined;
|
|
538
|
-
/**
|
|
539
|
-
* Whether menu items should wrap if they don’t fit on a single row.
|
|
540
|
-
*/
|
|
617
|
+
/** Whether menu items should wrap if they don’t fit on a single row. */
|
|
541
618
|
wrap?: boolean | undefined;
|
|
542
619
|
} & HTMLAttributes<HTMLUListElement> & {
|
|
543
620
|
children?: react.ReactNode;
|
|
@@ -554,62 +631,64 @@ type PageMenuLinkProps = {
|
|
|
554
631
|
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
555
632
|
|
|
556
633
|
declare const TopTaskLink: react.ForwardRefExoticComponent<{
|
|
634
|
+
/** The title. */
|
|
557
635
|
label: string;
|
|
636
|
+
/** The text content. */
|
|
558
637
|
description: string;
|
|
559
638
|
} & AnchorHTMLAttributes<HTMLAnchorElement> & react.RefAttributes<HTMLAnchorElement>>;
|
|
560
639
|
|
|
561
640
|
type BlockquoteProps = {
|
|
562
|
-
/**
|
|
563
|
-
* De kleur van het citaat.
|
|
564
|
-
* Gebruik deze property om het citaat in tegenovergestelde kleur te tonen.
|
|
565
|
-
*/
|
|
641
|
+
/** Changes the text colour for readability on a dark background. */
|
|
566
642
|
inverseColor?: boolean;
|
|
567
643
|
} & PropsWithChildren<BlockquoteHTMLAttributes<HTMLQuoteElement>>;
|
|
568
644
|
declare const Blockquote: react.ForwardRefExoticComponent<{
|
|
569
|
-
/**
|
|
570
|
-
* De kleur van het citaat.
|
|
571
|
-
* Gebruik deze property om het citaat in tegenovergestelde kleur te tonen.
|
|
572
|
-
*/
|
|
645
|
+
/** Changes the text colour for readability on a dark background. */
|
|
573
646
|
inverseColor?: boolean | undefined;
|
|
574
647
|
} & BlockquoteHTMLAttributes<HTMLQuoteElement> & {
|
|
575
648
|
children?: react.ReactNode;
|
|
576
649
|
} & react.RefAttributes<HTMLQuoteElement>>;
|
|
577
650
|
|
|
578
651
|
type CheckboxProps = {
|
|
652
|
+
/** Whether the value fails a validation rule. */
|
|
579
653
|
invalid?: boolean;
|
|
654
|
+
/** Allows being neither checked nor unchecked. */
|
|
580
655
|
indeterminate?: boolean;
|
|
581
|
-
} & PropsWithChildren<InputHTMLAttributes<HTMLInputElement>>;
|
|
656
|
+
} & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>;
|
|
582
657
|
declare const Checkbox: react.ForwardRefExoticComponent<{
|
|
658
|
+
/** Whether the value fails a validation rule. */
|
|
583
659
|
invalid?: boolean | undefined;
|
|
660
|
+
/** Allows being neither checked nor unchecked. */
|
|
584
661
|
indeterminate?: boolean | undefined;
|
|
585
|
-
} & InputHTMLAttributes<HTMLInputElement> & {
|
|
662
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
586
663
|
children?: react.ReactNode;
|
|
587
664
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
588
665
|
|
|
589
666
|
type PageHeadingProps = {
|
|
590
|
-
/**
|
|
591
|
-
* De kleur van de titel
|
|
592
|
-
* Gebruik deze property om de titel in tegenovergestelde kleur te tonen.
|
|
593
|
-
*/
|
|
667
|
+
/** Changes the text colour for readability on a dark background. */
|
|
594
668
|
inverseColor?: boolean;
|
|
595
669
|
} & PropsWithChildren<HTMLAttributes<HTMLHeadingElement>>;
|
|
596
670
|
declare const PageHeading: react.ForwardRefExoticComponent<{
|
|
597
|
-
/**
|
|
598
|
-
* De kleur van de titel
|
|
599
|
-
* Gebruik deze property om de titel in tegenovergestelde kleur te tonen.
|
|
600
|
-
*/
|
|
671
|
+
/** Changes the text colour for readability on a dark background. */
|
|
601
672
|
inverseColor?: boolean | undefined;
|
|
602
673
|
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
603
674
|
children?: react.ReactNode;
|
|
604
675
|
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
605
676
|
|
|
606
677
|
type OrderedListProps = {
|
|
607
|
-
|
|
678
|
+
/** Changes the text colour for readability on a dark background. */
|
|
608
679
|
inverseColor?: boolean;
|
|
680
|
+
/** Whether the list items show a marker. */
|
|
681
|
+
markers?: boolean;
|
|
682
|
+
/** The size of the text. */
|
|
683
|
+
size?: 'small';
|
|
609
684
|
} & PropsWithChildren<OlHTMLAttributes<HTMLOListElement>>;
|
|
610
685
|
declare const OrderedList: react.ForwardRefExoticComponent<{
|
|
611
|
-
|
|
686
|
+
/** Changes the text colour for readability on a dark background. */
|
|
612
687
|
inverseColor?: boolean | undefined;
|
|
688
|
+
/** Whether the list items show a marker. */
|
|
689
|
+
markers?: boolean | undefined;
|
|
690
|
+
/** The size of the text. */
|
|
691
|
+
size?: "small" | undefined;
|
|
613
692
|
} & OlHTMLAttributes<HTMLOListElement> & {
|
|
614
693
|
children?: react.ReactNode;
|
|
615
694
|
} & react.RefAttributes<HTMLOListElement>> & {
|
|
@@ -620,56 +699,52 @@ declare const OrderedList: react.ForwardRefExoticComponent<{
|
|
|
620
699
|
|
|
621
700
|
type OrderedListItemProps = PropsWithChildren<LiHTMLAttributes<HTMLLIElement>>;
|
|
622
701
|
|
|
702
|
+
type BreadcrumbLinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
703
|
+
|
|
623
704
|
type BreadcrumbProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
624
705
|
declare const Breadcrumb: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
625
706
|
children?: react.ReactNode;
|
|
626
707
|
} & react.RefAttributes<HTMLElement>> & {
|
|
627
|
-
|
|
628
|
-
href: string;
|
|
629
|
-
} & HTMLAttributes<HTMLLIElement> & {
|
|
630
|
-
children?: react.ReactNode;
|
|
631
|
-
} & react.RefAttributes<HTMLLIElement>>;
|
|
708
|
+
Link: react.ForwardRefExoticComponent<BreadcrumbLinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
632
709
|
};
|
|
633
710
|
|
|
634
|
-
type BreadcrumbItemProps = {
|
|
635
|
-
href: string;
|
|
636
|
-
} & PropsWithChildren<HTMLAttributes<HTMLLIElement>>;
|
|
637
|
-
|
|
638
711
|
type LinkOnBackground = 'default' | 'light' | 'dark';
|
|
639
712
|
type LinkVariant = 'standalone' | 'inline';
|
|
640
713
|
type LinkProps = {
|
|
641
|
-
|
|
714
|
+
/** Describes the underlying background colour. Allows the text to provide visual contrast. */
|
|
642
715
|
onBackground?: LinkOnBackground;
|
|
716
|
+
/** Whether the link is inline or stands alone. */
|
|
717
|
+
variant?: LinkVariant;
|
|
643
718
|
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'>;
|
|
644
719
|
declare const Link: react.ForwardRefExoticComponent<{
|
|
645
|
-
|
|
720
|
+
/** Describes the underlying background colour. Allows the text to provide visual contrast. */
|
|
646
721
|
onBackground?: LinkOnBackground | undefined;
|
|
722
|
+
/** Whether the link is inline or stands alone. */
|
|
723
|
+
variant?: LinkVariant | undefined;
|
|
647
724
|
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
648
725
|
|
|
649
726
|
type ButtonProps = {
|
|
727
|
+
/** The level of prominence. Use a primary button only once per page or section. */
|
|
650
728
|
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
651
729
|
} & PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
652
730
|
declare const Button: react.ForwardRefExoticComponent<{
|
|
731
|
+
/** The level of prominence. Use a primary button only once per page or section. */
|
|
653
732
|
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
654
733
|
} & ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
655
734
|
children?: react.ReactNode;
|
|
656
735
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
657
736
|
|
|
658
737
|
type ParagraphProps = {
|
|
659
|
-
|
|
660
|
-
/**
|
|
661
|
-
* De kleur van de paragraaf
|
|
662
|
-
* Gebruik deze property om de paragraaf in tegenovergestelde kleur te tonen.
|
|
663
|
-
*/
|
|
738
|
+
/** Changes the text colour for readability on a dark background. */
|
|
664
739
|
inverseColor?: boolean;
|
|
740
|
+
/** The size of the text. */
|
|
741
|
+
size?: 'small' | 'large';
|
|
665
742
|
} & PropsWithChildren<HTMLAttributes<HTMLParagraphElement>>;
|
|
666
743
|
declare const Paragraph: react.ForwardRefExoticComponent<{
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* De kleur van de paragraaf
|
|
670
|
-
* Gebruik deze property om de paragraaf in tegenovergestelde kleur te tonen.
|
|
671
|
-
*/
|
|
744
|
+
/** Changes the text colour for readability on a dark background. */
|
|
672
745
|
inverseColor?: boolean | undefined;
|
|
746
|
+
/** The size of the text. */
|
|
747
|
+
size?: "small" | "large" | undefined;
|
|
673
748
|
} & HTMLAttributes<HTMLParagraphElement> & {
|
|
674
749
|
children?: react.ReactNode;
|
|
675
750
|
} & react.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -679,12 +754,20 @@ declare const Label: react.ForwardRefExoticComponent<LabelHTMLAttributes<HTMLLab
|
|
|
679
754
|
} & react.RefAttributes<HTMLLabelElement>>;
|
|
680
755
|
|
|
681
756
|
type UnorderedListProps = {
|
|
757
|
+
/** Changes the text colour for readability on a dark background. */
|
|
682
758
|
inverseColor?: boolean;
|
|
759
|
+
/** Whether the list items show a marker. */
|
|
683
760
|
markers?: boolean;
|
|
761
|
+
/** The size of the text. */
|
|
762
|
+
size?: 'small';
|
|
684
763
|
} & PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
685
764
|
declare const UnorderedList: react.ForwardRefExoticComponent<{
|
|
765
|
+
/** Changes the text colour for readability on a dark background. */
|
|
686
766
|
inverseColor?: boolean | undefined;
|
|
767
|
+
/** Whether the list items show a marker. */
|
|
687
768
|
markers?: boolean | undefined;
|
|
769
|
+
/** The size of the text. */
|
|
770
|
+
size?: "small" | undefined;
|
|
688
771
|
} & HTMLAttributes<HTMLUListElement> & {
|
|
689
772
|
children?: react.ReactNode;
|
|
690
773
|
} & react.RefAttributes<HTMLUListElement>> & {
|
|
@@ -696,25 +779,33 @@ declare const UnorderedList: react.ForwardRefExoticComponent<{
|
|
|
696
779
|
type UnorderedListItemProps = PropsWithChildren<LiHTMLAttributes<HTMLLIElement>>;
|
|
697
780
|
|
|
698
781
|
type IconProps = {
|
|
782
|
+
/** The size of the icon. Corresponds with the text levels. */
|
|
699
783
|
size?: 'level-3' | 'level-4' | 'level-5' | 'level-6';
|
|
784
|
+
/** Whether the icon container should be made square. */
|
|
700
785
|
square?: boolean;
|
|
786
|
+
/** The component rendering the icon’s markup. */
|
|
701
787
|
svg: Function;
|
|
702
788
|
} & HTMLAttributes<HTMLSpanElement>;
|
|
703
789
|
declare const Icon: react.ForwardRefExoticComponent<{
|
|
790
|
+
/** The size of the icon. Corresponds with the text levels. */
|
|
704
791
|
size?: "level-3" | "level-4" | "level-5" | "level-6" | undefined;
|
|
792
|
+
/** Whether the icon container should be made square. */
|
|
705
793
|
square?: boolean | undefined;
|
|
794
|
+
/** The component rendering the icon’s markup. */
|
|
706
795
|
svg: Function;
|
|
707
796
|
} & HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLElement>>;
|
|
708
797
|
|
|
709
798
|
type AccordionProps = {
|
|
710
|
-
/** The hierarchical level of the
|
|
799
|
+
/** The hierarchical level of the Accordion Section heading(s) within the document. */
|
|
711
800
|
headingLevel: HeadingLevel;
|
|
712
|
-
|
|
801
|
+
/** The HTML element to use for each Accordion Section. */
|
|
802
|
+
sectionAs?: 'div' | 'section';
|
|
713
803
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
714
804
|
declare const Accordion: react.ForwardRefExoticComponent<{
|
|
715
|
-
/** The hierarchical level of the
|
|
805
|
+
/** The hierarchical level of the Accordion Section heading(s) within the document. */
|
|
716
806
|
headingLevel: HeadingLevel;
|
|
717
|
-
|
|
807
|
+
/** The HTML element to use for each Accordion Section. */
|
|
808
|
+
sectionAs?: "div" | "section" | undefined;
|
|
718
809
|
} & HTMLAttributes<HTMLDivElement> & {
|
|
719
810
|
children?: react.ReactNode;
|
|
720
811
|
} & react.RefAttributes<HTMLDivElement>> & {
|
|
@@ -727,7 +818,9 @@ declare const Accordion: react.ForwardRefExoticComponent<{
|
|
|
727
818
|
};
|
|
728
819
|
|
|
729
820
|
type AccordionSectionProps = {
|
|
821
|
+
/** The heading text. */
|
|
730
822
|
label: string;
|
|
823
|
+
/** Whether the content is displayed initially. */
|
|
731
824
|
expanded?: boolean;
|
|
732
825
|
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
733
826
|
|
|
@@ -743,6 +836,7 @@ type GridCellSpanAndStartProps = {
|
|
|
743
836
|
start?: GridColumnNumber | GridColumnNumbers;
|
|
744
837
|
};
|
|
745
838
|
type GridCellProps = {
|
|
839
|
+
/** The HTML element to use. */
|
|
746
840
|
as?: 'article' | 'div' | 'section';
|
|
747
841
|
} & (GridCellSpanAllProp | GridCellSpanAndStartProps) & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
748
842
|
|
|
@@ -756,22 +850,22 @@ type GridPaddingSize = 'small' | 'medium' | 'large';
|
|
|
756
850
|
type GridPaddingVerticalProp = {
|
|
757
851
|
paddingBottom?: never;
|
|
758
852
|
paddingTop?: never;
|
|
759
|
-
/** The amount of
|
|
853
|
+
/** The amount of space above and below. */
|
|
760
854
|
paddingVertical?: GridPaddingSize;
|
|
761
855
|
};
|
|
762
856
|
type GridPaddingTopAndBottomProps = {
|
|
763
|
-
/** The amount of
|
|
857
|
+
/** The amount of space below. */
|
|
764
858
|
paddingBottom?: GridPaddingSize;
|
|
765
|
-
/** The amount of
|
|
859
|
+
/** The amount of space above. */
|
|
766
860
|
paddingTop?: GridPaddingSize;
|
|
767
861
|
paddingVertical?: never;
|
|
768
862
|
};
|
|
769
863
|
type GridProps = {
|
|
770
|
-
/** The amount of
|
|
864
|
+
/** The amount of space between rows. */
|
|
771
865
|
gapVertical?: 'none' | 'small' | 'large';
|
|
772
866
|
} & (GridPaddingVerticalProp | GridPaddingTopAndBottomProps) & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
773
867
|
declare const Grid: react.ForwardRefExoticComponent<GridProps & react.RefAttributes<HTMLDivElement>> & {
|
|
774
868
|
Cell: react.ForwardRefExoticComponent<GridCellProps & react.RefAttributes<unknown>>;
|
|
775
869
|
};
|
|
776
870
|
|
|
777
|
-
export { Accordion, type AccordionProps, type AccordionSectionProps, Alert, type AlertProps, AspectRatio, type AspectRatioProps, Avatar, type AvatarProps, Badge, type BadgeProps, Blockquote, type BlockquoteProps, Breadcrumb, type
|
|
871
|
+
export { Accordion, type AccordionProps, type AccordionSectionProps, Alert, type AlertProps, AspectRatio, type AspectRatioProps, Avatar, type AvatarProps, Badge, type BadgeProps, Blockquote, type BlockquoteProps, Breadcrumb, type BreadcrumbLinkProps, type BreadcrumbProps, Button, type ButtonProps, Card, type CardHeadingGroupProps, type CardLinkProps, type CardProps, Checkbox, type CheckboxProps, Column, type ColumnProps, DateInput, type DateInputProps, DescriptionList, type DescriptionListDetailsProps, type DescriptionListProps, type DescriptionListTermProps, Dialog, type DialogProps, ErrorMessage, type ErrorMessageProps, Field, type FieldProps, FieldSet, type FieldSetProps, FileInput, type FileInputProps, Footer, type FooterBottomProps, type FooterProps, type FooterTopProps, FormFieldCharacterCounter, type FormFieldCharacterCounterProps, Grid, type GridCellProps, type GridColumnNumber, type GridColumnNumbers, type GridProps, Header, type HeaderProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconProps, Image, type ImageProps, Label, Link, LinkList, type LinkListLinkProps, type LinkListProps, type LinkProps, Logo, type LogoBrand, type LogoProps, Mark, type MarkProps, MegaMenu, type MegaMenuListCategoryProps, type MegaMenuProps, OrderedList, type OrderedListItemProps, type OrderedListProps, Overlap, type OverlapProps, PageHeading, type PageHeadingProps, PageMenu, type PageMenuLinkProps, type PageMenuProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, Radio, type RadioProps, type Ratio, Row, type RowProps, Screen, type ScreenProps, SearchField, type SearchFieldProps, Select, type SelectOptionProps, type SelectProps, SkipLink, type SkipLinkProps, Spotlight, type SpotlightProps, Switch, type SwitchProps, Table, type TableProps, Tabs, type TabsButtonProps, type TabsListProps, type TabsPanelProps, type TabsProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, TimeInput, type TimeInputProps, TopTaskLink, UnorderedList, type UnorderedListItemProps, type UnorderedListProps, VisuallyHidden };
|