@amsterdam/design-system-react 0.2.0 → 0.4.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/LICENSE.md +1 -1
- package/README.md +3 -2
- package/dist/index.cjs.js +792 -369
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +669 -28
- package/dist/index.esm.js +785 -372
- package/dist/index.esm.js.map +1 -1
- package/package.json +19 -20
- package/dist/Accordion/Accordion.d.ts +0 -16
- package/dist/Accordion/Accordion.test.d.ts +0 -1
- package/dist/Accordion/AccordionContext.d.ts +0 -8
- package/dist/Accordion/AccordionSection.d.ts +0 -12
- package/dist/Accordion/AccordionSection.test.d.ts +0 -1
- package/dist/Accordion/index.d.ts +0 -3
- package/dist/Accordion/useFocusWithArrow.test.d.ts +0 -1
- package/dist/Accordion/useFocusWithArrows.d.ts +0 -24
- package/dist/Alert/Alert.d.ts +0 -13
- package/dist/Alert/Alert.test.d.ts +0 -1
- package/dist/Alert/index.d.ts +0 -2
- package/dist/AspectRatio/AspectRatio.d.ts +0 -10
- package/dist/AspectRatio/AspectRatio.test.d.ts +0 -1
- package/dist/AspectRatio/index.d.ts +0 -2
- package/dist/Blockquote/Blockquote.d.ts +0 -15
- package/dist/Blockquote/Blockquote.test.d.ts +0 -1
- package/dist/Blockquote/index.d.ts +0 -2
- package/dist/Breadcrumb/Breadcrumb.d.ts +0 -10
- package/dist/Breadcrumb/Breadcrumb.test.d.ts +0 -1
- package/dist/Breadcrumb/index.d.ts +0 -2
- package/dist/Button/Button.d.ts +0 -12
- package/dist/Button/Button.test.d.ts +0 -1
- package/dist/Button/index.d.ts +0 -2
- package/dist/Card/Card.d.ts +0 -19
- package/dist/Card/Card.test.d.ts +0 -1
- package/dist/Card/index.d.ts +0 -2
- package/dist/Checkbox/Checkbox.d.ts +0 -12
- package/dist/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/Checkbox/index.d.ts +0 -2
- package/dist/Dialog/Dialog.d.ts +0 -9
- package/dist/Dialog/Dialog.test.d.ts +0 -1
- package/dist/Dialog/index.d.ts +0 -2
- package/dist/Footer/Footer.d.ts +0 -17
- package/dist/Footer/Footer.test.d.ts +0 -1
- package/dist/Footer/index.d.ts +0 -1
- package/dist/FormLabel/FormLabel.d.ts +0 -9
- package/dist/FormLabel/FormLabel.test.d.ts +0 -1
- package/dist/FormLabel/index.d.ts +0 -1
- package/dist/Grid/Grid.d.ts +0 -42
- package/dist/Grid/Grid.test.d.ts +0 -1
- package/dist/Grid/GridCell.d.ts +0 -22
- package/dist/Grid/GridCell.test.d.ts +0 -1
- package/dist/Grid/gridCellClasses.d.ts +0 -2
- package/dist/Grid/index.d.ts +0 -3
- package/dist/Heading/Heading.d.ts +0 -29
- package/dist/Heading/Heading.test.d.ts +0 -1
- package/dist/Heading/index.d.ts +0 -2
- package/dist/Highlight/Highlight.d.ts +0 -10
- package/dist/Highlight/Highlight.test.d.ts +0 -1
- package/dist/Highlight/index.d.ts +0 -2
- package/dist/Icon/Icon.d.ts +0 -12
- package/dist/Icon/Icon.test.d.ts +0 -1
- package/dist/Icon/index.d.ts +0 -2
- package/dist/Image/Image.d.ts +0 -8
- package/dist/Image/Image.test.d.ts +0 -1
- package/dist/Image/index.d.ts +0 -2
- package/dist/Link/Link.d.ts +0 -21
- package/dist/Link/Link.test.d.ts +0 -1
- package/dist/Link/index.d.ts +0 -2
- package/dist/Logo/Logo.d.ts +0 -11
- package/dist/Logo/Logo.test.d.ts +0 -1
- package/dist/Logo/brand/LogoAmsterdam.d.ts +0 -3
- package/dist/Logo/brand/LogoGgdAmsterdam.d.ts +0 -3
- package/dist/Logo/brand/LogoStadsarchief.d.ts +0 -3
- package/dist/Logo/brand/LogoStadsbankVanLening.d.ts +0 -3
- package/dist/Logo/brand/LogoVgaVerzekeringen.d.ts +0 -3
- package/dist/Logo/brand/index.d.ts +0 -5
- package/dist/Logo/index.d.ts +0 -2
- package/dist/OrderedList/OrderedList.d.ts +0 -17
- package/dist/OrderedList/OrderedList.test.d.ts +0 -1
- package/dist/OrderedList/index.d.ts +0 -2
- package/dist/PageHeading/PageHeading.d.ts +0 -15
- package/dist/PageHeading/PageHeading.test.d.ts +0 -1
- package/dist/PageHeading/index.d.ts +0 -2
- package/dist/PageMenu/PageMenu.d.ts +0 -26
- package/dist/PageMenu/PageMenu.test.d.ts +0 -1
- package/dist/PageMenu/index.d.ts +0 -2
- package/dist/Pagination/Pagination.d.ts +0 -24
- package/dist/Pagination/Pagination.test.d.ts +0 -1
- package/dist/Pagination/index.d.ts +0 -2
- package/dist/Paragraph/Paragraph.d.ts +0 -17
- package/dist/Paragraph/Paragraph.test.d.ts +0 -1
- package/dist/Paragraph/index.d.ts +0 -2
- package/dist/Screen/Screen.d.ts +0 -11
- package/dist/Screen/Screen.test.d.ts +0 -1
- package/dist/Screen/index.d.ts +0 -2
- package/dist/Switch/Switch.d.ts +0 -4
- package/dist/Switch/Switch.test.d.ts +0 -1
- package/dist/Switch/index.d.ts +0 -1
- package/dist/TopTaskLink/TopTaskLink.d.ts +0 -10
- package/dist/TopTaskLink/TopTaskLink.test.d.ts +0 -1
- package/dist/TopTaskLink/index.d.ts +0 -1
- package/dist/UnorderedList/UnorderedList.d.ts +0 -17
- package/dist/UnorderedList/UnorderedList.test.d.ts +0 -1
- package/dist/UnorderedList/index.d.ts +0 -2
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +0 -8
- package/dist/VisuallyHidden/VisuallyHidden.test.d.ts +0 -1
- package/dist/VisuallyHidden/index.d.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,32 +1,673 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { PropsWithChildren, AnchorHTMLAttributes, ForwardRefExoticComponent, RefAttributes, HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, TableHTMLAttributes, ButtonHTMLAttributes, SVGProps, ReactNode, InputHTMLAttributes, DialogHTMLAttributes, ImgHTMLAttributes, BlockquoteHTMLAttributes, LiHTMLAttributes, OlHTMLAttributes, LabelHTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @license EUPL-1.2+
|
|
6
|
+
* Copyright (c) 2024 Gemeente Amsterdam
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
type BackgroundName = 'default' | 'light' | 'dark';
|
|
10
|
+
type LinkListLinkProps = {
|
|
11
|
+
/** The target url for the link. */
|
|
12
|
+
href: string;
|
|
13
|
+
/**
|
|
14
|
+
* An icon to display instead of the default chevron.
|
|
15
|
+
* Don’t mix custom icons with chevrons in one list.
|
|
16
|
+
*/
|
|
17
|
+
icon?: Function;
|
|
18
|
+
/** Whether the link sits on a dark background. */
|
|
19
|
+
onBackground?: BackgroundName;
|
|
20
|
+
/**
|
|
21
|
+
* The text size for the link.
|
|
22
|
+
* Use the same size for all items in the list.
|
|
23
|
+
*/
|
|
24
|
+
size?: 'small' | 'large';
|
|
25
|
+
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
26
|
+
type LinkListLinkComponent = ForwardRefExoticComponent<LinkListLinkProps & RefAttributes<HTMLAnchorElement>>;
|
|
27
|
+
/** One link with a Link List. */
|
|
28
|
+
declare const LinkListLink: LinkListLinkComponent;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @license EUPL-1.2+
|
|
32
|
+
* Copyright (c) 2024 Gemeente Amsterdam
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
type LinkListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
36
|
+
type LinkListComponent = {
|
|
37
|
+
Link: typeof LinkListLink;
|
|
38
|
+
} & ForwardRefExoticComponent<LinkListProps & RefAttributes<HTMLUListElement>>;
|
|
39
|
+
/** A collection of related links. */
|
|
40
|
+
declare const LinkList: LinkListComponent;
|
|
41
|
+
|
|
42
|
+
declare const badgeColors: readonly ["blue", "dark-blue", "dark-green", "green", "magenta", "orange", "purple", "yellow"];
|
|
43
|
+
type BadgeColor = (typeof badgeColors)[number];
|
|
44
|
+
type BadgeProps = {
|
|
45
|
+
color?: BadgeColor;
|
|
46
|
+
label: string | number;
|
|
47
|
+
} & HTMLAttributes<HTMLElement>;
|
|
48
|
+
declare const Badge: react.ForwardRefExoticComponent<{
|
|
49
|
+
color?: "blue" | "dark-blue" | "dark-green" | "green" | "magenta" | "orange" | "purple" | "yellow" | undefined;
|
|
50
|
+
label: string | number;
|
|
51
|
+
} & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>>;
|
|
52
|
+
|
|
53
|
+
declare const TableBody: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & {
|
|
54
|
+
children?: react.ReactNode;
|
|
55
|
+
} & react.RefAttributes<HTMLTableSectionElement>>;
|
|
56
|
+
|
|
57
|
+
declare const TableCaption: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableCaptionElement> & {
|
|
58
|
+
children?: react.ReactNode;
|
|
59
|
+
} & react.RefAttributes<HTMLTableCaptionElement>>;
|
|
60
|
+
|
|
61
|
+
declare const TableCell: react.ForwardRefExoticComponent<TdHTMLAttributes<HTMLTableCellElement> & {
|
|
62
|
+
children?: react.ReactNode;
|
|
63
|
+
} & react.RefAttributes<HTMLTableCellElement>>;
|
|
64
|
+
|
|
65
|
+
declare const TableFooter: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & {
|
|
66
|
+
children?: react.ReactNode;
|
|
67
|
+
} & react.RefAttributes<HTMLTableSectionElement>>;
|
|
68
|
+
|
|
69
|
+
declare const TableHeader: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & {
|
|
70
|
+
children?: react.ReactNode;
|
|
71
|
+
} & react.RefAttributes<HTMLTableSectionElement>>;
|
|
72
|
+
|
|
73
|
+
declare const TableHeaderCell: react.ForwardRefExoticComponent<ThHTMLAttributes<HTMLTableCellElement> & {
|
|
74
|
+
children?: react.ReactNode;
|
|
75
|
+
} & react.RefAttributes<HTMLTableCellElement>>;
|
|
76
|
+
|
|
77
|
+
declare const TableRow: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableRowElement> & {
|
|
78
|
+
children?: react.ReactNode;
|
|
79
|
+
} & react.RefAttributes<HTMLTableRowElement>>;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @license EUPL-1.2+
|
|
83
|
+
* Copyright (c) 2023 Gemeente Amsterdam
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
type TableProps = PropsWithChildren<TableHTMLAttributes<HTMLTableElement>>;
|
|
87
|
+
type TableComponent = {
|
|
88
|
+
Body: typeof TableBody;
|
|
89
|
+
Caption: typeof TableCaption;
|
|
90
|
+
Cell: typeof TableCell;
|
|
91
|
+
Footer: typeof TableFooter;
|
|
92
|
+
Header: typeof TableHeader;
|
|
93
|
+
HeaderCell: typeof TableHeaderCell;
|
|
94
|
+
Row: typeof TableRow;
|
|
95
|
+
} & ForwardRefExoticComponent<TableProps & RefAttributes<HTMLTableElement>>;
|
|
96
|
+
declare const Table: TableComponent;
|
|
97
|
+
|
|
98
|
+
type MegaMenuProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
99
|
+
type MegaMenuComponent = {
|
|
100
|
+
ListCategory: typeof MegaMenuListCategory;
|
|
101
|
+
} & ForwardRefExoticComponent<MegaMenuProps & RefAttributes<HTMLDivElement>>;
|
|
102
|
+
declare const MegaMenu: MegaMenuComponent;
|
|
103
|
+
declare const MegaMenuListCategory: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
104
|
+
children?: react.ReactNode;
|
|
105
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
106
|
+
|
|
107
|
+
type IconButtonProps = {
|
|
108
|
+
label: string;
|
|
109
|
+
onBackground?: 'light' | 'dark';
|
|
110
|
+
size?: 'level-3' | 'level-4' | 'level-5' | 'level-6';
|
|
111
|
+
svg?: Function;
|
|
112
|
+
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
113
|
+
declare const IconButton: react.ForwardRefExoticComponent<{
|
|
114
|
+
label: string;
|
|
115
|
+
onBackground?: "light" | "dark" | undefined;
|
|
116
|
+
size?: "level-3" | "level-4" | "level-5" | "level-6" | undefined;
|
|
117
|
+
svg?: Function | undefined;
|
|
118
|
+
} & ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
119
|
+
|
|
120
|
+
type SkipLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
121
|
+
declare const SkipLink: react.ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
122
|
+
children?: react.ReactNode;
|
|
123
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
124
|
+
|
|
125
|
+
type OverlapProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
126
|
+
declare const Overlap: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
127
|
+
children?: react.ReactNode;
|
|
128
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @license EUPL-1.2+
|
|
132
|
+
* Copyright (c) 2023 Gemeente Amsterdam
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
type LogoBrand = 'amsterdam' | 'ggd-amsterdam' | 'stadsarchief' | 'stadsbank-van-lening' | 'vga-verzekeringen';
|
|
136
|
+
type LogoProps = {
|
|
137
|
+
brand?: LogoBrand;
|
|
138
|
+
} & SVGProps<SVGSVGElement>;
|
|
139
|
+
declare const Logo: ForwardRefExoticComponent<Omit<LogoProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
140
|
+
|
|
141
|
+
type HeaderProps = {
|
|
142
|
+
logoBrand?: LogoBrand;
|
|
143
|
+
logoLink?: string;
|
|
144
|
+
logoLinkTitle?: string;
|
|
145
|
+
title?: string;
|
|
146
|
+
links?: ReactNode;
|
|
147
|
+
menu?: ReactNode;
|
|
148
|
+
} & HTMLAttributes<HTMLElement>;
|
|
149
|
+
declare const Header: react.ForwardRefExoticComponent<{
|
|
150
|
+
logoBrand?: LogoBrand | undefined;
|
|
151
|
+
logoLink?: string | undefined;
|
|
152
|
+
logoLinkTitle?: string | undefined;
|
|
153
|
+
title?: string | undefined;
|
|
154
|
+
links?: ReactNode;
|
|
155
|
+
menu?: ReactNode;
|
|
156
|
+
} & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>>;
|
|
157
|
+
|
|
158
|
+
type MarkProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
159
|
+
declare const Mark: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
160
|
+
children?: react.ReactNode;
|
|
161
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
162
|
+
|
|
163
|
+
type TextInputProps = InputHTMLAttributes<HTMLInputElement>;
|
|
164
|
+
declare const TextInput: react.ForwardRefExoticComponent<TextInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
165
|
+
|
|
166
|
+
type SearchFieldButtonProps = HTMLAttributes<HTMLButtonElement>;
|
|
167
|
+
declare const SearchFieldButton: react.ForwardRefExoticComponent<SearchFieldButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
168
|
+
|
|
169
|
+
declare const SearchFieldInput: react.ForwardRefExoticComponent<{
|
|
170
|
+
label?: string | undefined;
|
|
171
|
+
} & InputHTMLAttributes<HTMLInputElement> & react.RefAttributes<HTMLInputElement>>;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @license EUPL-1.2+
|
|
175
|
+
* Copyright (c) 2023 Gemeente Amsterdam
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
type SearchFieldProps = PropsWithChildren<HTMLAttributes<HTMLFormElement>>;
|
|
179
|
+
type SearchFieldComponent = {
|
|
180
|
+
Input: typeof SearchFieldInput;
|
|
181
|
+
Button: typeof SearchFieldButton;
|
|
182
|
+
} & ForwardRefExoticComponent<SearchFieldProps & RefAttributes<HTMLFormElement>>;
|
|
183
|
+
declare const SearchField: SearchFieldComponent;
|
|
184
|
+
|
|
185
|
+
type DialogProps = {
|
|
186
|
+
actions?: ReactNode;
|
|
187
|
+
} & PropsWithChildren<DialogHTMLAttributes<HTMLDialogElement>>;
|
|
188
|
+
declare const Dialog: react.ForwardRefExoticComponent<{
|
|
189
|
+
actions?: ReactNode;
|
|
190
|
+
} & DialogHTMLAttributes<HTMLDialogElement> & {
|
|
191
|
+
children?: ReactNode;
|
|
192
|
+
} & react.RefAttributes<HTMLDialogElement>>;
|
|
193
|
+
|
|
194
|
+
type ImageProps = {
|
|
195
|
+
cover?: Boolean;
|
|
196
|
+
} & ImgHTMLAttributes<HTMLImageElement>;
|
|
197
|
+
declare const Image: react.ForwardRefExoticComponent<{
|
|
198
|
+
cover?: Boolean | undefined;
|
|
199
|
+
} & ImgHTMLAttributes<HTMLImageElement> & react.RefAttributes<HTMLImageElement>>;
|
|
200
|
+
|
|
201
|
+
type PaginationProps = {
|
|
202
|
+
/**
|
|
203
|
+
* The maximum amount of pages shown. This has a lower limit of 5
|
|
204
|
+
*/
|
|
205
|
+
maxVisiblePages?: number;
|
|
206
|
+
/**
|
|
207
|
+
* Callback triggered when interaction changes the page number.
|
|
208
|
+
*/
|
|
209
|
+
onPageChange?: (page: number) => void;
|
|
210
|
+
/**
|
|
211
|
+
* The current page number.
|
|
212
|
+
*/
|
|
213
|
+
page?: number;
|
|
214
|
+
/**
|
|
215
|
+
* The total amount of pages.
|
|
216
|
+
*/
|
|
217
|
+
totalPages: number;
|
|
218
|
+
} & HTMLAttributes<HTMLElement>;
|
|
219
|
+
declare const Pagination: react.ForwardRefExoticComponent<{
|
|
220
|
+
/**
|
|
221
|
+
* The maximum amount of pages shown. This has a lower limit of 5
|
|
222
|
+
*/
|
|
223
|
+
maxVisiblePages?: number | undefined;
|
|
224
|
+
/**
|
|
225
|
+
* Callback triggered when interaction changes the page number.
|
|
226
|
+
*/
|
|
227
|
+
onPageChange?: ((page: number) => void) | undefined;
|
|
228
|
+
/**
|
|
229
|
+
* The current page number.
|
|
230
|
+
*/
|
|
231
|
+
page?: number | undefined;
|
|
232
|
+
/**
|
|
233
|
+
* The total amount of pages.
|
|
234
|
+
*/
|
|
235
|
+
totalPages: number;
|
|
236
|
+
} & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>>;
|
|
237
|
+
|
|
238
|
+
type ScreenMaxWidth = 'wide' | 'x-wide';
|
|
239
|
+
type ScreenProps = {
|
|
240
|
+
maxWidth?: ScreenMaxWidth;
|
|
241
|
+
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
242
|
+
declare const Screen: react.ForwardRefExoticComponent<{
|
|
243
|
+
maxWidth?: ScreenMaxWidth | undefined;
|
|
244
|
+
} & HTMLAttributes<HTMLDivElement> & {
|
|
245
|
+
children?: react.ReactNode;
|
|
246
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
247
|
+
|
|
248
|
+
type SwitchProps = PropsWithChildren<InputHTMLAttributes<HTMLInputElement>>;
|
|
249
|
+
declare const Switch: react.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
|
|
250
|
+
children?: react.ReactNode;
|
|
251
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
252
|
+
|
|
253
|
+
declare const spotlightColors: readonly ["blue", "dark-blue", "dark-green", "green", "magenta", "orange", "purple", "yellow"];
|
|
254
|
+
type SpotlightColor = (typeof spotlightColors)[number];
|
|
255
|
+
type SpotlightProps = {
|
|
256
|
+
as?: 'article' | 'aside' | 'div' | 'footer' | 'section';
|
|
257
|
+
color?: SpotlightColor;
|
|
258
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
259
|
+
declare const Spotlight: react.ForwardRefExoticComponent<{
|
|
260
|
+
as?: "article" | "aside" | "div" | "footer" | "section" | undefined;
|
|
261
|
+
color?: "blue" | "dark-blue" | "dark-green" | "green" | "magenta" | "orange" | "purple" | "yellow" | undefined;
|
|
262
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
263
|
+
children?: react.ReactNode;
|
|
264
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
265
|
+
|
|
266
|
+
type CardHeadingGroupProps = {
|
|
267
|
+
tagline: string;
|
|
268
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
269
|
+
declare const CardHeadingGroup: react.ForwardRefExoticComponent<{
|
|
270
|
+
tagline: string;
|
|
271
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
272
|
+
children?: react.ReactNode;
|
|
273
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
274
|
+
|
|
275
|
+
type CardLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
276
|
+
declare const CardLink: react.ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
277
|
+
children?: react.ReactNode;
|
|
278
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* @license EUPL-1.2+
|
|
282
|
+
* Copyright (c) 2023 Gemeente Amsterdam
|
|
283
|
+
*/
|
|
284
|
+
|
|
285
|
+
type CardProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
286
|
+
type CardComponent = {
|
|
287
|
+
HeadingGroup: typeof CardHeadingGroup;
|
|
288
|
+
Link: typeof CardLink;
|
|
289
|
+
} & ForwardRefExoticComponent<CardProps & RefAttributes<HTMLElement>>;
|
|
290
|
+
declare const Card: CardComponent;
|
|
291
|
+
|
|
292
|
+
type HeadingLevel = 1 | 2 | 3 | 4;
|
|
293
|
+
type HeadingSize = 'level-1' | 'level-2' | 'level-3' | 'level-4' | 'level-5' | 'level-6';
|
|
294
|
+
type HeadingProps = {
|
|
295
|
+
/**
|
|
296
|
+
* Het hiërarchische niveau van de titel.
|
|
297
|
+
*/
|
|
298
|
+
level?: HeadingLevel;
|
|
299
|
+
/**
|
|
300
|
+
* De visuele grootte van de titel.
|
|
301
|
+
* Voeg dit toe om de titel groter of kleiner weer te geven zonder de semantische betekenis te veranderen.
|
|
302
|
+
*/
|
|
303
|
+
size?: HeadingSize;
|
|
304
|
+
/**
|
|
305
|
+
* De kleur van de titel
|
|
306
|
+
* Gebruik deze property om de titel in tegenovergestelde kleur te tonen.
|
|
307
|
+
*/
|
|
308
|
+
inverseColor?: boolean;
|
|
309
|
+
} & PropsWithChildren<HTMLAttributes<HTMLHeadingElement>>;
|
|
310
|
+
declare const Heading: react.ForwardRefExoticComponent<{
|
|
311
|
+
/**
|
|
312
|
+
* Het hiërarchische niveau van de titel.
|
|
313
|
+
*/
|
|
314
|
+
level?: HeadingLevel | undefined;
|
|
315
|
+
/**
|
|
316
|
+
* De visuele grootte van de titel.
|
|
317
|
+
* Voeg dit toe om de titel groter of kleiner weer te geven zonder de semantische betekenis te veranderen.
|
|
318
|
+
*/
|
|
319
|
+
size?: HeadingSize | undefined;
|
|
320
|
+
/**
|
|
321
|
+
* De kleur van de titel
|
|
322
|
+
* Gebruik deze property om de titel in tegenovergestelde kleur te tonen.
|
|
323
|
+
*/
|
|
324
|
+
inverseColor?: boolean | undefined;
|
|
325
|
+
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
326
|
+
children?: react.ReactNode;
|
|
327
|
+
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
328
|
+
|
|
329
|
+
type AlertProps = {
|
|
330
|
+
/** Whether the alert can be dismissed by the user. Adds a button to the top right. */
|
|
331
|
+
closeable?: boolean;
|
|
332
|
+
/**
|
|
333
|
+
* The hierarchical level of the alert title within the document.
|
|
334
|
+
* @default 2
|
|
335
|
+
*/
|
|
336
|
+
headingLevel?: HeadingProps['level'];
|
|
337
|
+
/** Allows a callback when dismissing the alert. */
|
|
338
|
+
onClose?: () => void;
|
|
339
|
+
/** Highlights the meaning or tone of the message. */
|
|
340
|
+
severity?: 'error' | 'info' | 'success' | 'warning';
|
|
341
|
+
/** The title for the alert. */
|
|
342
|
+
title?: string;
|
|
343
|
+
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
344
|
+
declare const Alert: react.ForwardRefExoticComponent<{
|
|
345
|
+
/** Whether the alert can be dismissed by the user. Adds a button to the top right. */
|
|
346
|
+
closeable?: boolean | undefined;
|
|
347
|
+
/**
|
|
348
|
+
* The hierarchical level of the alert title within the document.
|
|
349
|
+
* @default 2
|
|
350
|
+
*/
|
|
351
|
+
headingLevel?: HeadingProps['level'];
|
|
352
|
+
/** Allows a callback when dismissing the alert. */
|
|
353
|
+
onClose?: (() => void) | undefined;
|
|
354
|
+
/** Highlights the meaning or tone of the message. */
|
|
355
|
+
severity?: "error" | "info" | "success" | "warning" | undefined;
|
|
356
|
+
/** The title for the alert. */
|
|
357
|
+
title?: string | undefined;
|
|
358
|
+
} & HTMLAttributes<HTMLDivElement> & {
|
|
359
|
+
children?: react.ReactNode;
|
|
360
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
361
|
+
|
|
362
|
+
type Ratio = 'x-tall' | 'tall' | 'square' | 'wide' | 'x-wide' | '2x-wide';
|
|
363
|
+
type AspectRatioProps = {
|
|
364
|
+
ratio?: Ratio;
|
|
365
|
+
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
366
|
+
declare const AspectRatio: react.ForwardRefExoticComponent<{
|
|
367
|
+
ratio?: Ratio | undefined;
|
|
368
|
+
} & HTMLAttributes<HTMLDivElement> & {
|
|
369
|
+
children?: react.ReactNode;
|
|
370
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
371
|
+
|
|
372
|
+
declare const VisuallyHidden: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
373
|
+
children?: react.ReactNode;
|
|
374
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
375
|
+
|
|
376
|
+
type FooterBottomProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
377
|
+
declare const FooterBottom: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
378
|
+
children?: react.ReactNode;
|
|
379
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
380
|
+
|
|
381
|
+
type FooterTopProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
382
|
+
declare const FooterTop: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
383
|
+
children?: react.ReactNode;
|
|
384
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @license EUPL-1.2+
|
|
388
|
+
* Copyright (c) 2023 Gemeente Amsterdam
|
|
389
|
+
*/
|
|
390
|
+
|
|
391
|
+
type FooterProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
392
|
+
type FooterComponent = {
|
|
393
|
+
Top: typeof FooterTop;
|
|
394
|
+
Bottom: typeof FooterBottom;
|
|
395
|
+
} & ForwardRefExoticComponent<FooterProps & RefAttributes<HTMLElement>>;
|
|
396
|
+
declare const Footer: FooterComponent;
|
|
397
|
+
|
|
398
|
+
type PageMenuLinkProps = {
|
|
399
|
+
icon?: Function;
|
|
400
|
+
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
401
|
+
declare const PageMenuLink: react.ForwardRefExoticComponent<{
|
|
402
|
+
icon?: Function | undefined;
|
|
403
|
+
} & AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
404
|
+
children?: react.ReactNode;
|
|
405
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* @license EUPL-1.2+
|
|
409
|
+
* Copyright (c) 2023 Gemeente Amsterdam
|
|
410
|
+
*/
|
|
411
|
+
|
|
412
|
+
type PageMenuProps = {
|
|
413
|
+
/**
|
|
414
|
+
* Whether the page menu’s items align to its end.
|
|
415
|
+
* If the menu itself aligns to the end of its container, you should set this to `true`.
|
|
416
|
+
*/
|
|
417
|
+
alignEnd?: boolean;
|
|
418
|
+
} & PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
419
|
+
type PageMenuComponent = {
|
|
420
|
+
Link: typeof PageMenuLink;
|
|
421
|
+
} & ForwardRefExoticComponent<PageMenuProps & RefAttributes<HTMLUListElement>>;
|
|
422
|
+
declare const PageMenu: PageMenuComponent;
|
|
423
|
+
|
|
424
|
+
declare const TopTaskLink: react.ForwardRefExoticComponent<{
|
|
425
|
+
label: string;
|
|
426
|
+
description: string;
|
|
427
|
+
} & AnchorHTMLAttributes<HTMLAnchorElement> & react.RefAttributes<HTMLAnchorElement>>;
|
|
428
|
+
|
|
429
|
+
type BlockquoteProps = {
|
|
430
|
+
/**
|
|
431
|
+
* De kleur van het citaat.
|
|
432
|
+
* Gebruik deze property om het citaat in tegenovergestelde kleur te tonen.
|
|
433
|
+
*/
|
|
434
|
+
inverseColor?: boolean;
|
|
435
|
+
} & PropsWithChildren<BlockquoteHTMLAttributes<HTMLQuoteElement>>;
|
|
436
|
+
declare const Blockquote: react.ForwardRefExoticComponent<{
|
|
437
|
+
/**
|
|
438
|
+
* De kleur van het citaat.
|
|
439
|
+
* Gebruik deze property om het citaat in tegenovergestelde kleur te tonen.
|
|
440
|
+
*/
|
|
441
|
+
inverseColor?: boolean | undefined;
|
|
442
|
+
} & BlockquoteHTMLAttributes<HTMLQuoteElement> & {
|
|
443
|
+
children?: react.ReactNode;
|
|
444
|
+
} & react.RefAttributes<HTMLQuoteElement>>;
|
|
445
|
+
|
|
446
|
+
type CheckboxProps = {
|
|
447
|
+
invalid?: boolean;
|
|
448
|
+
indeterminate?: boolean;
|
|
449
|
+
} & PropsWithChildren<InputHTMLAttributes<HTMLInputElement>>;
|
|
450
|
+
declare const Checkbox: react.ForwardRefExoticComponent<{
|
|
451
|
+
invalid?: boolean | undefined;
|
|
452
|
+
indeterminate?: boolean | undefined;
|
|
453
|
+
} & InputHTMLAttributes<HTMLInputElement> & {
|
|
454
|
+
children?: react.ReactNode;
|
|
455
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
456
|
+
|
|
457
|
+
type PageHeadingProps = {
|
|
458
|
+
/**
|
|
459
|
+
* De kleur van de titel
|
|
460
|
+
* Gebruik deze property om de titel in tegenovergestelde kleur te tonen.
|
|
461
|
+
*/
|
|
462
|
+
inverseColor?: boolean;
|
|
463
|
+
} & PropsWithChildren<HTMLAttributes<HTMLHeadingElement>>;
|
|
464
|
+
declare const PageHeading: react.ForwardRefExoticComponent<{
|
|
465
|
+
/**
|
|
466
|
+
* De kleur van de titel
|
|
467
|
+
* Gebruik deze property om de titel in tegenovergestelde kleur te tonen.
|
|
468
|
+
*/
|
|
469
|
+
inverseColor?: boolean | undefined;
|
|
470
|
+
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
471
|
+
children?: react.ReactNode;
|
|
472
|
+
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
473
|
+
|
|
474
|
+
type OrderedListItemProps = PropsWithChildren<LiHTMLAttributes<HTMLLIElement>>;
|
|
475
|
+
declare const OrderedListItem: react.ForwardRefExoticComponent<LiHTMLAttributes<HTMLLIElement> & {
|
|
476
|
+
children?: react.ReactNode;
|
|
477
|
+
} & react.RefAttributes<HTMLLIElement>>;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* @license EUPL-1.2+
|
|
481
|
+
* Copyright (c) 2023 Gemeente Amsterdam
|
|
482
|
+
*/
|
|
483
|
+
|
|
484
|
+
type OrderedListProps = {
|
|
485
|
+
markers?: boolean;
|
|
486
|
+
} & PropsWithChildren<OlHTMLAttributes<HTMLOListElement>>;
|
|
487
|
+
type OrderedListComponent = {
|
|
488
|
+
Item: typeof OrderedListItem;
|
|
489
|
+
} & ForwardRefExoticComponent<OrderedListProps & RefAttributes<HTMLOListElement>>;
|
|
490
|
+
declare const OrderedList: OrderedListComponent;
|
|
491
|
+
|
|
492
|
+
type BreadcrumbItemProps = {
|
|
493
|
+
href: string;
|
|
494
|
+
} & PropsWithChildren<HTMLAttributes<HTMLLIElement>>;
|
|
495
|
+
declare const BreadcrumbItem: react.ForwardRefExoticComponent<{
|
|
496
|
+
href: string;
|
|
497
|
+
} & HTMLAttributes<HTMLLIElement> & {
|
|
498
|
+
children?: react.ReactNode;
|
|
499
|
+
} & react.RefAttributes<HTMLLIElement>>;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* @license EUPL-1.2+
|
|
503
|
+
* Copyright (c) 2023 Gemeente Amsterdam
|
|
504
|
+
*/
|
|
505
|
+
|
|
506
|
+
type BreadcrumbProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
507
|
+
type BreadcrumbComponent = {
|
|
508
|
+
Item: typeof BreadcrumbItem;
|
|
509
|
+
} & ForwardRefExoticComponent<BreadcrumbProps & RefAttributes<HTMLElement>>;
|
|
510
|
+
declare const Breadcrumb: BreadcrumbComponent;
|
|
511
|
+
|
|
512
|
+
type LinkOnBackground = 'default' | 'light' | 'dark';
|
|
513
|
+
/** @deprecated Use `LinkList` instead. */
|
|
514
|
+
type DeprecatedLinkVariantInList = 'inList';
|
|
515
|
+
type LinkVariant = 'standalone' | 'inline' | DeprecatedLinkVariantInList;
|
|
516
|
+
type CommonProps = {
|
|
517
|
+
variant?: LinkVariant;
|
|
518
|
+
onBackground?: LinkOnBackground;
|
|
519
|
+
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'>;
|
|
520
|
+
type ConditionalProps = {
|
|
521
|
+
variant?: 'standalone' | 'inline';
|
|
522
|
+
icon?: never;
|
|
523
|
+
} | {
|
|
524
|
+
variant?: 'inList';
|
|
525
|
+
icon?: Function;
|
|
526
|
+
};
|
|
527
|
+
type LinkProps = PropsWithChildren<CommonProps & ConditionalProps>;
|
|
528
|
+
declare const Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
529
|
+
|
|
530
|
+
type ButtonProps = {
|
|
531
|
+
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
532
|
+
} & PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
533
|
+
declare const Button: react.ForwardRefExoticComponent<{
|
|
534
|
+
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
535
|
+
} & ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
536
|
+
children?: react.ReactNode;
|
|
537
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
538
|
+
|
|
539
|
+
type ParagraphProps = {
|
|
540
|
+
size?: 'small' | 'large';
|
|
541
|
+
/**
|
|
542
|
+
* De kleur van de paragraaf
|
|
543
|
+
* Gebruik deze property om de paragraaf in tegenovergestelde kleur te tonen.
|
|
544
|
+
*/
|
|
545
|
+
inverseColor?: boolean;
|
|
546
|
+
} & PropsWithChildren<HTMLAttributes<HTMLParagraphElement>>;
|
|
547
|
+
declare const Paragraph: react.ForwardRefExoticComponent<{
|
|
548
|
+
size?: "small" | "large" | undefined;
|
|
549
|
+
/**
|
|
550
|
+
* De kleur van de paragraaf
|
|
551
|
+
* Gebruik deze property om de paragraaf in tegenovergestelde kleur te tonen.
|
|
552
|
+
*/
|
|
553
|
+
inverseColor?: boolean | undefined;
|
|
554
|
+
} & HTMLAttributes<HTMLParagraphElement> & {
|
|
555
|
+
children?: react.ReactNode;
|
|
556
|
+
} & react.RefAttributes<HTMLParagraphElement>>;
|
|
557
|
+
|
|
558
|
+
declare const FormLabel: react.ForwardRefExoticComponent<LabelHTMLAttributes<HTMLLabelElement> & {
|
|
559
|
+
children?: react.ReactNode;
|
|
560
|
+
} & react.RefAttributes<HTMLLabelElement>>;
|
|
561
|
+
|
|
562
|
+
type UnorderedListItemProps = PropsWithChildren<LiHTMLAttributes<HTMLLIElement>>;
|
|
563
|
+
declare const UnorderedListItem: react.ForwardRefExoticComponent<LiHTMLAttributes<HTMLLIElement> & {
|
|
564
|
+
children?: react.ReactNode;
|
|
565
|
+
} & react.RefAttributes<HTMLLIElement>>;
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* @license EUPL-1.2+
|
|
569
|
+
* Copyright (c) 2023 Gemeente Amsterdam
|
|
570
|
+
*/
|
|
571
|
+
|
|
572
|
+
type UnorderedListProps = {
|
|
573
|
+
markers?: boolean;
|
|
574
|
+
} & PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
575
|
+
type UnorderedListComponent = {
|
|
576
|
+
Item: typeof UnorderedListItem;
|
|
577
|
+
} & ForwardRefExoticComponent<UnorderedListProps & RefAttributes<HTMLUListElement>>;
|
|
578
|
+
declare const UnorderedList: UnorderedListComponent;
|
|
579
|
+
|
|
580
|
+
type IconProps = {
|
|
581
|
+
size?: 'level-3' | 'level-4' | 'level-5' | 'level-6';
|
|
582
|
+
square?: boolean;
|
|
583
|
+
svg: Function;
|
|
584
|
+
} & HTMLAttributes<HTMLSpanElement>;
|
|
585
|
+
declare const Icon: react.ForwardRefExoticComponent<{
|
|
586
|
+
size?: "level-3" | "level-4" | "level-5" | "level-6" | undefined;
|
|
587
|
+
square?: boolean | undefined;
|
|
588
|
+
svg: Function;
|
|
589
|
+
} & HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLElement>>;
|
|
590
|
+
|
|
591
|
+
type AccordionSectionProps = {
|
|
592
|
+
label: string;
|
|
593
|
+
expanded?: boolean;
|
|
594
|
+
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
595
|
+
declare const AccordionSection: react.ForwardRefExoticComponent<{
|
|
596
|
+
label: string;
|
|
597
|
+
expanded?: boolean | undefined;
|
|
598
|
+
} & HTMLAttributes<HTMLElement> & {
|
|
599
|
+
children?: react.ReactNode;
|
|
600
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* @license EUPL-1.2+
|
|
604
|
+
* Copyright (c) 2023 Gemeente Amsterdam
|
|
605
|
+
*/
|
|
606
|
+
|
|
607
|
+
type AccordionProps = {
|
|
608
|
+
headingLevel: HeadingLevel;
|
|
609
|
+
section?: boolean;
|
|
610
|
+
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
611
|
+
type AccordionComponent = {
|
|
612
|
+
Section: typeof AccordionSection;
|
|
613
|
+
} & ForwardRefExoticComponent<AccordionProps & RefAttributes<HTMLDivElement>>;
|
|
614
|
+
declare const Accordion: AccordionComponent;
|
|
615
|
+
|
|
616
|
+
type GridCellSpanAllProp = {
|
|
617
|
+
/** Lets the cell span the full width of all grid variants. */
|
|
618
|
+
span: 'all';
|
|
619
|
+
start?: never;
|
|
620
|
+
};
|
|
621
|
+
type GridCellSpanAndStartProps = {
|
|
622
|
+
/** The amount of grid columns the cell spans. */
|
|
623
|
+
span?: GridColumnNumber | GridColumnNumbers;
|
|
624
|
+
/** The index of the grid column the cell starts at. */
|
|
625
|
+
start?: GridColumnNumber | GridColumnNumbers;
|
|
626
|
+
};
|
|
627
|
+
type GridCellProps = {
|
|
628
|
+
as?: 'article' | 'div' | 'section';
|
|
629
|
+
} & (GridCellSpanAllProp | GridCellSpanAndStartProps) & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
630
|
+
declare const GridCell: react.ForwardRefExoticComponent<GridCellProps & react.RefAttributes<HTMLDivElement>>;
|
|
631
|
+
|
|
1
632
|
/**
|
|
2
633
|
* @license EUPL-1.2+
|
|
3
634
|
* Copyright (c) 2023 Gemeente Amsterdam
|
|
4
635
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
636
|
+
|
|
637
|
+
type GridColumnNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
638
|
+
type GridColumnNumbers = {
|
|
639
|
+
narrow: GridColumnNumber;
|
|
640
|
+
medium: GridColumnNumber;
|
|
641
|
+
wide: GridColumnNumber;
|
|
642
|
+
};
|
|
643
|
+
type GridPaddingSize = 'small' | 'medium' | 'large';
|
|
644
|
+
type GridPaddingVerticalProp = {
|
|
645
|
+
paddingBottom?: never;
|
|
646
|
+
paddingTop?: never;
|
|
647
|
+
/** The amount of vertical whitespace above and below the grid. */
|
|
648
|
+
paddingVertical?: GridPaddingSize;
|
|
649
|
+
};
|
|
650
|
+
type GridPaddingTopAndBottomProps = {
|
|
651
|
+
/** The amount of vertical whitespace below the grid. */
|
|
652
|
+
paddingBottom?: GridPaddingSize;
|
|
653
|
+
/** The amount of vertical whitespace above the grid. */
|
|
654
|
+
paddingTop?: GridPaddingSize;
|
|
655
|
+
paddingVertical?: never;
|
|
656
|
+
};
|
|
657
|
+
type GridProps = {
|
|
658
|
+
/**
|
|
659
|
+
* Opts in to a less spacious layout.
|
|
660
|
+
* Decreases whitespace between columns and to the sides of the grid.
|
|
661
|
+
* This usually works well for applications.
|
|
662
|
+
* @todo Implement more generally – it will be moved into a theme soon.
|
|
663
|
+
*/
|
|
664
|
+
compact?: boolean;
|
|
665
|
+
/** The amount of vertical whitespace between rows of the grid. */
|
|
666
|
+
gapVertical?: 'none' | 'small' | 'large';
|
|
667
|
+
} & (GridPaddingVerticalProp | GridPaddingTopAndBottomProps) & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
668
|
+
type GridComponent = {
|
|
669
|
+
Cell: typeof GridCell;
|
|
670
|
+
} & ForwardRefExoticComponent<GridProps & RefAttributes<HTMLDivElement>>;
|
|
671
|
+
declare const Grid: GridComponent;
|
|
672
|
+
|
|
673
|
+
export { Accordion, type AccordionProps, type AccordionSectionProps, Alert, type AlertProps, AspectRatio, type AspectRatioProps, Badge, type BadgeProps, Blockquote, type BlockquoteProps, Breadcrumb, type BreadcrumbItemProps, type BreadcrumbProps, Button, type ButtonProps, Card, type CardHeadingGroupProps, type CardLinkProps, type CardProps, Checkbox, type CheckboxProps, Dialog, type DialogProps, Footer, type FooterBottomProps, type FooterProps, type FooterTopProps, FormLabel, Grid, type GridCellProps, type GridColumnNumber, type GridColumnNumbers, type GridProps, Header, type HeaderProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconProps, Image, type ImageProps, Link, LinkList, type LinkListLinkProps, type LinkListProps, type LinkProps, Logo, type LogoBrand, type LogoProps, Mark, type MarkProps, MegaMenu, type MegaMenuProps, OrderedList, type OrderedListItemProps, type OrderedListProps, Overlap, type OverlapProps, PageHeading, type PageHeadingProps, PageMenu, type PageMenuLinkProps, type PageMenuProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, type Ratio, Screen, type ScreenProps, SearchField, type SearchFieldProps, SkipLink, type SkipLinkProps, Spotlight, type SpotlightProps, Switch, type SwitchProps, Table, type TableProps, TextInput, type TextInputProps, TopTaskLink, UnorderedList, type UnorderedListItemProps, type UnorderedListProps, VisuallyHidden };
|