@amsterdam/design-system-react 0.15.0 → 0.16.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 +1 -1
- package/dist/Accordion/Accordion.js +4 -1
- package/dist/Accordion/Accordion.test.js +19 -3
- package/dist/Accordion/AccordionSection.test.js +1 -1
- package/dist/ActionGroup/ActionGroup.test.js +1 -1
- package/dist/Alert/Alert.test.js +1 -1
- package/dist/Avatar/Avatar.test.js +1 -1
- package/dist/Badge/Badge.test.js +1 -1
- package/dist/Blockquote/Blockquote.test.js +3 -4
- package/dist/Breadcrumb/Breadcrumb.test.js +1 -1
- package/dist/Breadcrumb/BreadcrumbLink.test.js +1 -1
- package/dist/Breakout/Breakout.test.js +11 -19
- package/dist/Breakout/BreakoutCell.d.ts +3 -1
- package/dist/Breakout/BreakoutCell.js +1 -0
- package/dist/Breakout/BreakoutCell.test.js +20 -16
- package/dist/Button/Button.test.js +8 -1
- package/dist/Card/Card.d.ts +10 -0
- package/dist/Card/Card.js +8 -1
- package/dist/Card/Card.test.js +1 -1
- package/dist/Card/CardHeading.d.ts +11 -0
- package/dist/Card/CardHeading.js +10 -0
- package/dist/Card/CardHeading.test.js +34 -0
- package/dist/Card/CardHeadingGroup.test.js +1 -1
- package/dist/Card/CardImage.d.ts +7 -0
- package/dist/Card/CardImage.js +10 -0
- package/dist/{Footer/FooterSpotlight.test.js → Card/CardImage.test.js} +9 -9
- package/dist/Card/CardLink.test.js +1 -1
- package/dist/CharacterCount/CharacterCount.test.js +1 -1
- package/dist/Checkbox/Checkbox.test.js +2 -3
- package/dist/Column/Column.d.ts +4 -3
- package/dist/Column/Column.js +2 -1
- package/dist/Column/Column.test.js +10 -12
- package/dist/DateInput/DateInput.test.js +1 -1
- package/dist/DescriptionList/DescriptionList.test.js +1 -1
- package/dist/DescriptionList/DescriptionListDescription.test.js +1 -1
- package/dist/DescriptionList/DescriptionListSection.test.js +1 -1
- package/dist/DescriptionList/DescriptionListTerm.test.js +1 -1
- package/dist/Dialog/Dialog.test.js +1 -1
- package/dist/ErrorMessage/ErrorMessage.test.js +1 -1
- package/dist/Field/Field.test.js +1 -1
- package/dist/FieldSet/FieldSet.test.js +1 -1
- package/dist/Figure/Figure.test.js +1 -1
- package/dist/Figure/FigureCaption.test.js +1 -1
- package/dist/FileInput/FileInput.test.js +1 -1
- package/dist/FileList/FileList.test.js +1 -1
- package/dist/FileList/FileListItem.test.js +1 -1
- package/dist/Grid/Grid.d.ts +8 -5
- package/dist/Grid/Grid.js +2 -0
- package/dist/Grid/Grid.test.js +13 -29
- package/dist/Grid/GridCell.test.js +2 -8
- package/dist/Grid/paddingClasses.d.ts +2 -2
- package/dist/Heading/Heading.test.js +17 -11
- package/dist/Hint/Hint.test.js +1 -1
- package/dist/Icon/Icon.d.ts +1 -1
- package/dist/Icon/Icon.test.js +3 -4
- package/dist/IconButton/IconButton.js +1 -1
- package/dist/IconButton/IconButton.test.js +1 -1
- package/dist/Image/Image.d.ts +4 -8
- package/dist/Image/Image.test.js +1 -1
- package/dist/ImageSlider/ImageSlider.test.js +1 -1
- package/dist/ImageSlider/ImageSliderItem.test.js +1 -1
- package/dist/ImageSlider/ImageSliderScroller.test.js +1 -1
- package/dist/ImageSlider/ImageSliderThumbnails.js +1 -1
- package/dist/ImageSlider/ImageSliderThumbnails.test.js +1 -1
- package/dist/InvalidFormAlert/InvalidFormAlert.test.js +1 -1
- package/dist/Label/Label.test.js +3 -4
- package/dist/Link/Link.d.ts +0 -6
- package/dist/Link/Link.js +1 -1
- package/dist/Link/Link.test.js +22 -29
- package/dist/LinkList/LinkList.test.js +1 -1
- package/dist/LinkList/LinkListLink.test.js +1 -1
- package/dist/Logo/Logo.test.js +2 -3
- package/dist/Mark/Mark.test.js +1 -1
- package/dist/OrderedList/OrderedList.test.js +1 -1
- package/dist/OrderedList/OrderedListItem.test.js +1 -1
- package/dist/Overlap/Overlap.test.js +1 -1
- package/dist/{Footer/FooterSpotlight.d.ts → Page/Page.d.ts} +2 -2
- package/dist/Page/Page.js +9 -0
- package/dist/{MegaMenu/MegaMenu.test.js → Page/Page.test.js} +9 -9
- package/dist/Page/index.d.ts +2 -0
- package/dist/Page/index.js +1 -0
- package/dist/{Footer/Footer.d.ts → PageFooter/PageFooter.d.ts} +2 -2
- package/dist/PageFooter/PageFooter.js +17 -0
- package/dist/{Footer/Footer.test.js → PageFooter/PageFooter.test.js} +9 -9
- package/dist/{Footer/FooterMenu.d.ts → PageFooter/PageFooterMenu.d.ts} +2 -2
- package/dist/PageFooter/PageFooterMenu.js +9 -0
- package/dist/{Footer/FooterMenu.test.js → PageFooter/PageFooterMenu.test.js} +9 -9
- package/dist/{Footer/FooterMenuLink.d.ts → PageFooter/PageFooterMenuLink.d.ts} +2 -2
- package/dist/PageFooter/PageFooterMenuLink.js +9 -0
- package/dist/{Footer/FooterMenuLink.test.js → PageFooter/PageFooterMenuLink.test.js} +9 -9
- package/dist/PageFooter/PageFooterSpotlight.d.ts +9 -0
- package/dist/PageFooter/PageFooterSpotlight.js +9 -0
- package/dist/{MegaMenu/MegaMenuListCategory.test.js → PageFooter/PageFooterSpotlight.test.js} +9 -9
- package/dist/PageFooter/index.d.ts +5 -0
- package/dist/PageFooter/index.js +1 -0
- package/dist/{Header/Header.d.ts → PageHeader/PageHeader.d.ts} +4 -4
- package/dist/PageHeader/PageHeader.js +31 -0
- package/dist/{Header/Header.test.js → PageHeader/PageHeader.test.js} +37 -38
- package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.d.ts +2 -0
- package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.js +6 -0
- package/dist/{Header/HeaderGridCellNarrowWindowOnly.test.js → PageHeader/PageHeaderGridCellNarrowWindowOnly.test.js} +10 -10
- package/dist/PageHeader/PageHeaderMenuIcon.d.ts +2 -0
- package/dist/PageHeader/PageHeaderMenuIcon.js +2 -0
- package/dist/{Header/HeaderMenuLink.d.ts → PageHeader/PageHeaderMenuLink.d.ts} +2 -2
- package/dist/PageHeader/PageHeaderMenuLink.js +5 -0
- package/dist/{Header/HeaderMenuLink.test.js → PageHeader/PageHeaderMenuLink.test.js} +13 -13
- package/dist/PageHeader/index.d.ts +3 -0
- package/dist/PageHeader/index.js +1 -0
- package/dist/PageHeading/PageHeading.test.js +2 -3
- package/dist/Pagination/Pagination.test.js +1 -1
- package/dist/Paragraph/Paragraph.test.js +1 -1
- package/dist/PasswordInput/PasswordInput.test.js +1 -1
- package/dist/Radio/Radio.test.js +1 -1
- package/dist/Row/Row.d.ts +4 -3
- package/dist/Row/Row.js +2 -1
- package/dist/Row/Row.test.js +10 -12
- package/dist/SearchField/SearchField.d.ts +2 -0
- package/dist/SearchField/SearchField.test.js +2 -3
- package/dist/SearchField/SearchFieldInput.test.js +2 -3
- package/dist/Select/Select.test.js +1 -1
- package/dist/Select/SelectOption.test.js +1 -1
- package/dist/Select/SelectOptionGroup.test.js +1 -1
- package/dist/SkipLink/SkipLink.test.js +1 -1
- package/dist/Spotlight/Spotlight.d.ts +4 -2
- package/dist/Spotlight/Spotlight.js +1 -0
- package/dist/Spotlight/Spotlight.test.js +11 -9
- package/dist/StandaloneLink/StandaloneLink.d.ts +17 -0
- package/dist/StandaloneLink/StandaloneLink.js +10 -0
- package/dist/StandaloneLink/StandaloneLink.test.js +40 -0
- package/dist/StandaloneLink/index.d.ts +2 -0
- package/dist/StandaloneLink/index.js +1 -0
- package/dist/Switch/Switch.test.js +1 -1
- package/dist/Table/Table.test.js +1 -1
- package/dist/Table/TableBody.test.js +1 -1
- package/dist/Table/TableCaption.test.js +1 -1
- package/dist/Table/TableCell.test.js +1 -1
- package/dist/Table/TableFooter.test.js +1 -1
- package/dist/Table/TableHeader.test.js +1 -1
- package/dist/Table/TableHeaderCell.test.js +1 -1
- package/dist/Table/TableRow.test.js +1 -1
- package/dist/TableOfContents/TableOfContents.test.js +1 -1
- package/dist/TableOfContents/TableOfContentsLink.test.js +1 -1
- package/dist/TableOfContents/TableOfContentsList.test.js +1 -1
- package/dist/Tabs/Tabs.d.ts +6 -6
- package/dist/Tabs/Tabs.js +4 -5
- package/dist/Tabs/Tabs.test.js +21 -6
- package/dist/Tabs/TabsButton.d.ts +4 -4
- package/dist/Tabs/TabsButton.js +4 -4
- package/dist/Tabs/TabsButton.test.js +10 -10
- package/dist/Tabs/TabsContext.d.ts +2 -7
- package/dist/Tabs/TabsContext.js +0 -1
- package/dist/Tabs/TabsList.js +1 -1
- package/dist/Tabs/TabsList.test.js +1 -1
- package/dist/Tabs/TabsPanel.d.ts +4 -4
- package/dist/Tabs/TabsPanel.js +4 -4
- package/dist/Tabs/TabsPanel.test.js +10 -12
- package/dist/TextArea/TextArea.test.js +1 -1
- package/dist/TextInput/TextInput.test.js +2 -3
- package/dist/TimeInput/TimeInput.test.js +1 -1
- package/dist/UnorderedList/UnorderedList.test.js +1 -1
- package/dist/UnorderedList/UnorderedListItem.test.js +1 -1
- package/dist/common/accessibility.d.ts +9 -1
- package/dist/index.cjs.js +1000 -1057
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +164 -194
- package/dist/index.esm.js +998 -1053
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/dist/Footer/Footer.js +0 -17
- package/dist/Footer/FooterMenu.js +0 -9
- package/dist/Footer/FooterMenuLink.js +0 -9
- package/dist/Footer/FooterSpotlight.js +0 -9
- package/dist/Footer/index.d.ts +0 -5
- package/dist/Footer/index.js +0 -1
- package/dist/Header/Header.js +0 -31
- package/dist/Header/HeaderGridCellNarrowWindowOnly.d.ts +0 -2
- package/dist/Header/HeaderGridCellNarrowWindowOnly.js +0 -6
- package/dist/Header/HeaderMenuIcon.d.ts +0 -2
- package/dist/Header/HeaderMenuIcon.js +0 -2
- package/dist/Header/HeaderMenuLink.js +0 -5
- package/dist/Header/index.d.ts +0 -3
- package/dist/Header/index.js +0 -1
- package/dist/MegaMenu/MegaMenu.d.ts +0 -14
- package/dist/MegaMenu/MegaMenu.js +0 -12
- package/dist/MegaMenu/MegaMenuListCategory.d.ts +0 -9
- package/dist/MegaMenu/MegaMenuListCategory.js +0 -9
- package/dist/MegaMenu/index.d.ts +0 -3
- package/dist/MegaMenu/index.js +0 -1
- package/dist/PageMenu/PageMenu.d.ts +0 -25
- package/dist/PageMenu/PageMenu.js +0 -12
- package/dist/PageMenu/PageMenu.test.js +0 -45
- package/dist/PageMenu/PageMenuLink.d.ts +0 -13
- package/dist/PageMenu/PageMenuLink.js +0 -10
- package/dist/PageMenu/PageMenuLink.test.js +0 -40
- package/dist/PageMenu/index.d.ts +0 -3
- package/dist/PageMenu/index.js +0 -1
- package/dist/Screen/Screen.d.ts +0 -21
- package/dist/Screen/Screen.js +0 -9
- package/dist/Screen/Screen.test.d.ts +0 -1
- package/dist/Screen/Screen.test.js +0 -40
- package/dist/Screen/index.d.ts +0 -2
- package/dist/Screen/index.js +0 -1
- package/dist/TopTaskLink/TopTaskLink.d.ts +0 -17
- package/dist/TopTaskLink/TopTaskLink.js +0 -9
- package/dist/TopTaskLink/TopTaskLink.test.d.ts +0 -1
- package/dist/TopTaskLink/TopTaskLink.test.js +0 -42
- package/dist/TopTaskLink/index.d.ts +0 -1
- package/dist/TopTaskLink/index.js +0 -1
- /package/dist/{Footer/Footer.test.d.ts → Card/CardHeading.test.d.ts} +0 -0
- /package/dist/{Footer/FooterMenu.test.d.ts → Card/CardImage.test.d.ts} +0 -0
- /package/dist/{Footer/FooterMenuLink.test.d.ts → Page/Page.test.d.ts} +0 -0
- /package/dist/{Footer/FooterSpotlight.test.d.ts → PageFooter/PageFooter.test.d.ts} +0 -0
- /package/dist/{Header/HeaderGridCellNarrowWindowOnly.test.d.ts → PageFooter/PageFooterMenu.test.d.ts} +0 -0
- /package/dist/{Header/HeaderMenuLink.test.d.ts → PageFooter/PageFooterMenuLink.test.d.ts} +0 -0
- /package/dist/{MegaMenu/MegaMenu.test.d.ts → PageFooter/PageFooterSpotlight.test.d.ts} +0 -0
- /package/dist/{Header/Header.test.d.ts → PageHeader/PageHeader.test.d.ts} +0 -0
- /package/dist/{MegaMenu/MegaMenuListCategory.test.d.ts → PageHeader/PageHeaderGridCellNarrowWindowOnly.test.d.ts} +0 -0
- /package/dist/{PageMenu/PageMenu.test.d.ts → PageHeader/PageHeaderMenuLink.test.d.ts} +0 -0
- /package/dist/{Header → PageHeader}/matchMedia.mock.d.ts +0 -0
- /package/dist/{Header → PageHeader}/matchMedia.mock.js +0 -0
- /package/dist/{PageMenu/PageMenuLink.test.d.ts → StandaloneLink/StandaloneLink.test.d.ts} +0 -0
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { PropsWithChildren, HTMLAttributes, BlockquoteHTMLAttributes, AnchorHTMLAttributes, ReactNode, ButtonHTMLAttributes, InputHTMLAttributes, DialogHTMLAttributes, MouseEvent,
|
|
2
|
+
import { PropsWithChildren, HTMLAttributes, BlockquoteHTMLAttributes, AnchorHTMLAttributes, ReactNode, ButtonHTMLAttributes, InputHTMLAttributes, DialogHTMLAttributes, MouseEvent, ImgHTMLAttributes, LabelHTMLAttributes, ForwardRefExoticComponent, SVGProps, RefAttributes, OlHTMLAttributes, LiHTMLAttributes, ComponentType, OptionHTMLAttributes, OptgroupHTMLAttributes, SelectHTMLAttributes, TableHTMLAttributes, TextareaHTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
4
|
type HeadingProps = {
|
|
5
5
|
/** Changes the text colour for readability on a dark background. */
|
|
@@ -180,32 +180,37 @@ type GridColumnNumbers = {
|
|
|
180
180
|
medium: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
181
181
|
wide: GridColumnNumber;
|
|
182
182
|
};
|
|
183
|
-
|
|
183
|
+
declare const gridGaps: readonly ["none", "large", "2x-large"];
|
|
184
|
+
type GridGap = (typeof gridGaps)[number];
|
|
185
|
+
declare const gridPaddings: readonly ["large", "x-large", "2x-large"];
|
|
186
|
+
type GridPadding = (typeof gridPaddings)[number];
|
|
184
187
|
declare const gridTags: readonly ["article", "aside", "div", "footer", "header", "main", "nav", "section"];
|
|
185
188
|
type GridTag = (typeof gridTags)[number];
|
|
186
189
|
type GridPaddingVerticalProp = {
|
|
187
190
|
paddingBottom?: never;
|
|
188
191
|
paddingTop?: never;
|
|
189
192
|
/** The amount of space above and below. */
|
|
190
|
-
paddingVertical?:
|
|
193
|
+
paddingVertical?: GridPadding;
|
|
191
194
|
};
|
|
192
195
|
type GridPaddingTopAndBottomProps = {
|
|
193
196
|
/** The amount of space below. */
|
|
194
|
-
paddingBottom?:
|
|
197
|
+
paddingBottom?: GridPadding;
|
|
195
198
|
/** The amount of space above. */
|
|
196
|
-
paddingTop?:
|
|
199
|
+
paddingTop?: GridPadding;
|
|
197
200
|
paddingVertical?: never;
|
|
198
201
|
};
|
|
199
202
|
type GridProps = {
|
|
200
203
|
/** The HTML tag to use. */
|
|
201
204
|
as?: GridTag;
|
|
202
205
|
/** The amount of space between rows. */
|
|
203
|
-
gapVertical?:
|
|
206
|
+
gapVertical?: GridGap;
|
|
204
207
|
} & (GridPaddingVerticalProp | GridPaddingTopAndBottomProps) & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
205
208
|
declare const Grid: react.ForwardRefExoticComponent<GridProps & react.RefAttributes<any>> & {
|
|
206
209
|
Cell: react.ForwardRefExoticComponent<GridCellProps & react.RefAttributes<unknown>>;
|
|
207
210
|
};
|
|
208
211
|
|
|
212
|
+
declare const breakoutCellTags: readonly ["article", "div", "section"];
|
|
213
|
+
type BreakoutCellTag = (typeof breakoutCellTags)[number];
|
|
209
214
|
type BreakoutCellSpanAllProp = {
|
|
210
215
|
/** Lets the cell span the full width of all grid variants. */
|
|
211
216
|
colSpan: 'all';
|
|
@@ -230,7 +235,7 @@ type BreakoutCellRowSpanAndStartProps = {
|
|
|
230
235
|
};
|
|
231
236
|
type BreakoutCellProps = {
|
|
232
237
|
/** The HTML element to use. */
|
|
233
|
-
as?:
|
|
238
|
+
as?: BreakoutCellTag;
|
|
234
239
|
} & (BreakoutCellSpanAllProp | BreakoutCellSpanAndStartProps) & BreakoutCellRowSpanAndStartProps & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
235
240
|
|
|
236
241
|
type BreakoutRowNumber = 1 | 2 | 3 | 4;
|
|
@@ -244,7 +249,7 @@ declare const Breakout: react.ForwardRefExoticComponent<GridProps & react.RefAtt
|
|
|
244
249
|
Cell: react.ForwardRefExoticComponent<BreakoutCellProps & react.RefAttributes<any>>;
|
|
245
250
|
};
|
|
246
251
|
|
|
247
|
-
declare const iconSizes:
|
|
252
|
+
declare const iconSizes: readonly ["small", "large", "heading-3", "heading-4", "heading-5", "heading-6"];
|
|
248
253
|
type IconSize = (typeof iconSizes)[number];
|
|
249
254
|
type IconProps = {
|
|
250
255
|
/** Changes the icon colour for readability on a dark background. */
|
|
@@ -292,15 +297,37 @@ type ButtonProps = {
|
|
|
292
297
|
} & (IconButtonProps$1 | TextButtonProps) & PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
293
298
|
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
294
299
|
|
|
300
|
+
declare const aspectRatioOptions: readonly ["9:16", "3:4", "1:1", "4:3", "16:9", "16:5"];
|
|
301
|
+
type AspectRatioProps = {
|
|
302
|
+
/** The aspect ratio to display media content in. */
|
|
303
|
+
aspectRatio?: (typeof aspectRatioOptions)[number];
|
|
304
|
+
};
|
|
305
|
+
declare const crossAlignOptions: readonly ["start", "center", "baseline", "end"];
|
|
306
|
+
type CrossAlign = (typeof crossAlignOptions)[number];
|
|
307
|
+
declare const crossAlignOptionsForColumn: ("center" | "start" | "end")[];
|
|
308
|
+
type CrossAlignForColumn = (typeof crossAlignOptionsForColumn)[number];
|
|
309
|
+
declare const mainAlignOptions: readonly ["center", "end", "between", "around", "evenly"];
|
|
310
|
+
type MainAlign = (typeof mainAlignOptions)[number];
|
|
311
|
+
|
|
295
312
|
type CardProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
296
313
|
declare const Card: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
297
314
|
children?: react.ReactNode | undefined;
|
|
298
315
|
} & react.RefAttributes<HTMLElement>> & {
|
|
316
|
+
Heading: react.ForwardRefExoticComponent<{
|
|
317
|
+
color?: "inverse";
|
|
318
|
+
level: 1 | 2 | 3 | 4;
|
|
319
|
+
size?: "level-1" | "level-2" | "level-3" | "level-4" | "level-5" | "level-6";
|
|
320
|
+
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
321
|
+
children?: react.ReactNode | undefined;
|
|
322
|
+
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
299
323
|
HeadingGroup: react.ForwardRefExoticComponent<{
|
|
300
324
|
tagline: string;
|
|
301
325
|
} & HTMLAttributes<HTMLElement> & {
|
|
302
326
|
children?: react.ReactNode | undefined;
|
|
303
327
|
} & react.RefAttributes<HTMLElement>>;
|
|
328
|
+
Image: react.ForwardRefExoticComponent<{
|
|
329
|
+
alt: string;
|
|
330
|
+
} & AspectRatioProps & Omit<react.ImgHTMLAttributes<HTMLImageElement>, "children"> & react.RefAttributes<HTMLImageElement>>;
|
|
304
331
|
Link: react.ForwardRefExoticComponent<react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
305
332
|
children?: react.ReactNode | undefined;
|
|
306
333
|
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -341,21 +368,10 @@ declare const Checkbox: react.ForwardRefExoticComponent<{
|
|
|
341
368
|
children?: react.ReactNode | undefined;
|
|
342
369
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
343
370
|
|
|
344
|
-
declare const
|
|
345
|
-
type
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
};
|
|
349
|
-
declare const crossAlignOptions: readonly ["start", "center", "baseline", "end"];
|
|
350
|
-
type CrossAlign = (typeof crossAlignOptions)[number];
|
|
351
|
-
declare const crossAlignOptionsForColumn: ("center" | "start" | "end")[];
|
|
352
|
-
type CrossAlignForColumn = (typeof crossAlignOptionsForColumn)[number];
|
|
353
|
-
declare const mainAlignOptions: readonly ["center", "end", "between", "around", "evenly"];
|
|
354
|
-
type MainAlign = (typeof mainAlignOptions)[number];
|
|
355
|
-
|
|
356
|
-
declare const columnGaps: readonly ["none", "x-small", "small", "large", "x-large"];
|
|
357
|
-
type ColumnGap = (typeof columnGaps)[number];
|
|
358
|
-
type ColumnTag = 'article' | 'div' | 'section';
|
|
371
|
+
declare const columnTags: readonly ["article", "div", "section"];
|
|
372
|
+
type ColumnTag = (typeof columnTags)[number];
|
|
373
|
+
declare const columnGapSizes: readonly ["none", "x-small", "small", "large", "x-large"];
|
|
374
|
+
type ColumnGap = (typeof columnGapSizes)[number];
|
|
359
375
|
type ColumnProps = {
|
|
360
376
|
/**
|
|
361
377
|
* The vertical alignment of the items in the column.
|
|
@@ -548,87 +564,6 @@ declare const FileList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUList
|
|
|
548
564
|
} & HTMLAttributes<HTMLLIElement> & react.RefAttributes<HTMLLIElement>>;
|
|
549
565
|
};
|
|
550
566
|
|
|
551
|
-
type FooterProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
552
|
-
declare const Footer: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
553
|
-
children?: react.ReactNode | undefined;
|
|
554
|
-
} & react.RefAttributes<HTMLElement>> & {
|
|
555
|
-
Menu: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
|
|
556
|
-
children?: react.ReactNode | undefined;
|
|
557
|
-
} & react.RefAttributes<HTMLUListElement>>;
|
|
558
|
-
MenuLink: react.ForwardRefExoticComponent<react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
559
|
-
children?: react.ReactNode | undefined;
|
|
560
|
-
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
561
|
-
Spotlight: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
562
|
-
children?: react.ReactNode | undefined;
|
|
563
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
564
|
-
};
|
|
565
|
-
|
|
566
|
-
type FooterMenuProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
567
|
-
|
|
568
|
-
type FooterMenuLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
569
|
-
|
|
570
|
-
type FooterSpotlightProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
* @license EUPL-1.2+
|
|
574
|
-
* Copyright Gemeente Amsterdam
|
|
575
|
-
*/
|
|
576
|
-
|
|
577
|
-
type LogoBrand = 'amsterdam' | 'ggd-amsterdam' | 'museum-weesp' | 'stadsarchief' | 'stadsbank-van-lening' | 'vga-verzekeringen';
|
|
578
|
-
type LogoProps = {
|
|
579
|
-
/** The name of the brand for which to display the logo. */
|
|
580
|
-
brand?: LogoBrand;
|
|
581
|
-
} & SVGProps<SVGSVGElement>;
|
|
582
|
-
declare const Logo: ForwardRefExoticComponent<Omit<LogoProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
583
|
-
|
|
584
|
-
type HeaderProps = {
|
|
585
|
-
/** The name of the application. */
|
|
586
|
-
brandName?: string;
|
|
587
|
-
/** The name of the brand for which to display the logo. */
|
|
588
|
-
logoBrand?: LogoBrand;
|
|
589
|
-
/** The url for the link on the logo. */
|
|
590
|
-
logoLink?: string;
|
|
591
|
-
/** The accessible text for the link on the logo. */
|
|
592
|
-
logoLinkTitle?: string;
|
|
593
|
-
/** The text for the menu button. */
|
|
594
|
-
menuButtonText?: string;
|
|
595
|
-
/** A slot for the menu items. Use Header.MenuLink here. */
|
|
596
|
-
menuItems?: ReactNode;
|
|
597
|
-
/** The accessible label for the navigation section. */
|
|
598
|
-
navigationLabel?: string;
|
|
599
|
-
/** Whether the menu button is visible on wide screens. */
|
|
600
|
-
noMenuButtonOnWideWindow?: boolean;
|
|
601
|
-
} & HTMLAttributes<HTMLElement>;
|
|
602
|
-
declare const Header: react.ForwardRefExoticComponent<{
|
|
603
|
-
/** The name of the application. */
|
|
604
|
-
brandName?: string;
|
|
605
|
-
/** The name of the brand for which to display the logo. */
|
|
606
|
-
logoBrand?: LogoBrand;
|
|
607
|
-
/** The url for the link on the logo. */
|
|
608
|
-
logoLink?: string;
|
|
609
|
-
/** The accessible text for the link on the logo. */
|
|
610
|
-
logoLinkTitle?: string;
|
|
611
|
-
/** The text for the menu button. */
|
|
612
|
-
menuButtonText?: string;
|
|
613
|
-
/** A slot for the menu items. Use Header.MenuLink here. */
|
|
614
|
-
menuItems?: ReactNode;
|
|
615
|
-
/** The accessible label for the navigation section. */
|
|
616
|
-
navigationLabel?: string;
|
|
617
|
-
/** Whether the menu button is visible on wide screens. */
|
|
618
|
-
noMenuButtonOnWideWindow?: boolean;
|
|
619
|
-
} & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>> & {
|
|
620
|
-
GridCellNarrowWindowOnly: react.ForwardRefExoticComponent<GridCellProps & react.RefAttributes<HTMLElement>>;
|
|
621
|
-
MenuLink: react.ForwardRefExoticComponent<{
|
|
622
|
-
fixed?: boolean;
|
|
623
|
-
} & react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
624
|
-
children?: ReactNode | undefined;
|
|
625
|
-
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
type HeaderMenuLinkProps = {
|
|
629
|
-
fixed?: boolean;
|
|
630
|
-
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
631
|
-
|
|
632
567
|
type IconButtonProps = {
|
|
633
568
|
/** Changes the text colour for readability on a light or dark background. */
|
|
634
569
|
color?: 'contrast' | 'inverse';
|
|
@@ -651,17 +586,13 @@ declare const IconButton: react.ForwardRefExoticComponent<{
|
|
|
651
586
|
} & ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
652
587
|
|
|
653
588
|
type ImageProps = {
|
|
654
|
-
/**
|
|
655
|
-
* A textual description of the content of the image.
|
|
656
|
-
*/
|
|
589
|
+
/** A textual description of the content of the image. */
|
|
657
590
|
alt: string;
|
|
658
|
-
} & AspectRatioProps & ImgHTMLAttributes<HTMLImageElement>;
|
|
591
|
+
} & AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, 'children'>;
|
|
659
592
|
declare const Image: react.ForwardRefExoticComponent<{
|
|
660
|
-
/**
|
|
661
|
-
* A textual description of the content of the image.
|
|
662
|
-
*/
|
|
593
|
+
/** A textual description of the content of the image. */
|
|
663
594
|
alt: string;
|
|
664
|
-
} & AspectRatioProps & ImgHTMLAttributes<HTMLImageElement> & react.RefAttributes<HTMLImageElement>>;
|
|
595
|
+
} & AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, "children"> & react.RefAttributes<HTMLImageElement>>;
|
|
665
596
|
|
|
666
597
|
declare const generateAspectRatioClass: (aspectRatio?: string) => string | undefined;
|
|
667
598
|
|
|
@@ -772,18 +703,13 @@ declare const Label: react.ForwardRefExoticComponent<LabelHTMLAttributes<HTMLLab
|
|
|
772
703
|
optional?: boolean;
|
|
773
704
|
} & react.RefAttributes<HTMLLabelElement>>;
|
|
774
705
|
|
|
775
|
-
type LinkVariant = 'standalone' | 'inline';
|
|
776
706
|
type LinkProps = {
|
|
777
707
|
/** Changes the text colour for readability on a light or dark background. */
|
|
778
708
|
color?: 'contrast' | 'inverse';
|
|
779
|
-
/** Whether the link is inline or stands alone. */
|
|
780
|
-
variant?: LinkVariant;
|
|
781
709
|
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'>;
|
|
782
710
|
declare const Link: react.ForwardRefExoticComponent<{
|
|
783
711
|
/** Changes the text colour for readability on a light or dark background. */
|
|
784
712
|
color?: "contrast" | "inverse";
|
|
785
|
-
/** Whether the link is inline or stands alone. */
|
|
786
|
-
variant?: LinkVariant;
|
|
787
713
|
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
788
714
|
|
|
789
715
|
type LinkListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
@@ -808,23 +734,23 @@ type LinkListLinkProps = {
|
|
|
808
734
|
size?: 'small' | 'large';
|
|
809
735
|
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
810
736
|
|
|
737
|
+
/**
|
|
738
|
+
* @license EUPL-1.2+
|
|
739
|
+
* Copyright Gemeente Amsterdam
|
|
740
|
+
*/
|
|
741
|
+
|
|
742
|
+
type LogoBrand = 'amsterdam' | 'ggd-amsterdam' | 'museum-weesp' | 'stadsarchief' | 'stadsbank-van-lening' | 'vga-verzekeringen';
|
|
743
|
+
type LogoProps = {
|
|
744
|
+
/** The name of the brand for which to display the logo. */
|
|
745
|
+
brand?: LogoBrand;
|
|
746
|
+
} & SVGProps<SVGSVGElement>;
|
|
747
|
+
declare const Logo: ForwardRefExoticComponent<Omit<LogoProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
748
|
+
|
|
811
749
|
type MarkProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
812
750
|
declare const Mark: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
813
751
|
children?: react.ReactNode | undefined;
|
|
814
752
|
} & react.RefAttributes<HTMLElement>>;
|
|
815
753
|
|
|
816
|
-
type MegaMenuProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
817
|
-
/** @deprecated Use child components in Header instead. */
|
|
818
|
-
declare const MegaMenu: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
819
|
-
children?: react.ReactNode | undefined;
|
|
820
|
-
} & react.RefAttributes<HTMLDivElement>> & {
|
|
821
|
-
ListCategory: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
822
|
-
children?: react.ReactNode | undefined;
|
|
823
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
824
|
-
};
|
|
825
|
-
|
|
826
|
-
type MegaMenuListCategoryProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
827
|
-
|
|
828
754
|
type OrderedListProps = {
|
|
829
755
|
/** Changes the text colour for readability on a dark background. */
|
|
830
756
|
color?: 'inverse';
|
|
@@ -855,6 +781,80 @@ declare const Overlap: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivEle
|
|
|
855
781
|
children?: react.ReactNode | undefined;
|
|
856
782
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
857
783
|
|
|
784
|
+
type PageProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
785
|
+
declare const Page: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
786
|
+
children?: react.ReactNode | undefined;
|
|
787
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
788
|
+
|
|
789
|
+
type PageFooterProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
790
|
+
declare const PageFooter: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
791
|
+
children?: react.ReactNode | undefined;
|
|
792
|
+
} & react.RefAttributes<HTMLElement>> & {
|
|
793
|
+
Menu: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
|
|
794
|
+
children?: react.ReactNode | undefined;
|
|
795
|
+
} & react.RefAttributes<HTMLUListElement>>;
|
|
796
|
+
MenuLink: react.ForwardRefExoticComponent<react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
797
|
+
children?: react.ReactNode | undefined;
|
|
798
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
799
|
+
Spotlight: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
800
|
+
children?: react.ReactNode | undefined;
|
|
801
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
type PageFooterMenuProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
805
|
+
|
|
806
|
+
type PageFooterMenuLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
807
|
+
|
|
808
|
+
type PageFooterSpotlightProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
809
|
+
|
|
810
|
+
type PageHeaderProps = {
|
|
811
|
+
/** The name of the application. */
|
|
812
|
+
brandName?: string;
|
|
813
|
+
/** The name of the brand for which to display the logo. */
|
|
814
|
+
logoBrand?: LogoBrand;
|
|
815
|
+
/** The url for the link on the logo. */
|
|
816
|
+
logoLink?: string;
|
|
817
|
+
/** The accessible text for the link on the logo. */
|
|
818
|
+
logoLinkTitle?: string;
|
|
819
|
+
/** The text for the menu button. */
|
|
820
|
+
menuButtonText?: string;
|
|
821
|
+
/** A slot for the menu items. Use PageHeader.MenuLink here. */
|
|
822
|
+
menuItems?: ReactNode;
|
|
823
|
+
/** The accessible label for the navigation section. */
|
|
824
|
+
navigationLabel?: string;
|
|
825
|
+
/** Whether the menu button is visible on wide screens. */
|
|
826
|
+
noMenuButtonOnWideWindow?: boolean;
|
|
827
|
+
} & HTMLAttributes<HTMLElement>;
|
|
828
|
+
declare const PageHeader: react.ForwardRefExoticComponent<{
|
|
829
|
+
/** The name of the application. */
|
|
830
|
+
brandName?: string;
|
|
831
|
+
/** The name of the brand for which to display the logo. */
|
|
832
|
+
logoBrand?: LogoBrand;
|
|
833
|
+
/** The url for the link on the logo. */
|
|
834
|
+
logoLink?: string;
|
|
835
|
+
/** The accessible text for the link on the logo. */
|
|
836
|
+
logoLinkTitle?: string;
|
|
837
|
+
/** The text for the menu button. */
|
|
838
|
+
menuButtonText?: string;
|
|
839
|
+
/** A slot for the menu items. Use PageHeader.MenuLink here. */
|
|
840
|
+
menuItems?: ReactNode;
|
|
841
|
+
/** The accessible label for the navigation section. */
|
|
842
|
+
navigationLabel?: string;
|
|
843
|
+
/** Whether the menu button is visible on wide screens. */
|
|
844
|
+
noMenuButtonOnWideWindow?: boolean;
|
|
845
|
+
} & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>> & {
|
|
846
|
+
GridCellNarrowWindowOnly: react.ForwardRefExoticComponent<GridCellProps & react.RefAttributes<HTMLElement>>;
|
|
847
|
+
MenuLink: react.ForwardRefExoticComponent<{
|
|
848
|
+
fixed?: boolean;
|
|
849
|
+
} & react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
850
|
+
children?: ReactNode | undefined;
|
|
851
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
type PageHeaderMenuLinkProps = {
|
|
855
|
+
fixed?: boolean;
|
|
856
|
+
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
857
|
+
|
|
858
858
|
type PageHeadingProps = {
|
|
859
859
|
/** Changes the text colour for readability on a dark background. */
|
|
860
860
|
color?: 'inverse';
|
|
@@ -866,31 +866,6 @@ declare const PageHeading: react.ForwardRefExoticComponent<{
|
|
|
866
866
|
children?: react.ReactNode | undefined;
|
|
867
867
|
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
868
868
|
|
|
869
|
-
type PageMenuProps = {
|
|
870
|
-
/** Whether the items align to the end margin. Set to `true` if the Page Menu itself does so. */
|
|
871
|
-
alignEnd?: boolean;
|
|
872
|
-
/** Whether menu items should wrap if they don’t fit on a single row. */
|
|
873
|
-
wrap?: boolean;
|
|
874
|
-
} & PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
875
|
-
declare const PageMenu: react.ForwardRefExoticComponent<{
|
|
876
|
-
/** Whether the items align to the end margin. Set to `true` if the Page Menu itself does so. */
|
|
877
|
-
alignEnd?: boolean;
|
|
878
|
-
/** Whether menu items should wrap if they don’t fit on a single row. */
|
|
879
|
-
wrap?: boolean;
|
|
880
|
-
} & HTMLAttributes<HTMLUListElement> & {
|
|
881
|
-
children?: react.ReactNode | undefined;
|
|
882
|
-
} & react.RefAttributes<HTMLUListElement>> & {
|
|
883
|
-
Link: react.ForwardRefExoticComponent<{
|
|
884
|
-
icon?: Function;
|
|
885
|
-
} & react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
886
|
-
children?: react.ReactNode | undefined;
|
|
887
|
-
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
888
|
-
};
|
|
889
|
-
|
|
890
|
-
type PageMenuLinkProps = {
|
|
891
|
-
icon?: Function;
|
|
892
|
-
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
893
|
-
|
|
894
869
|
type PaginationProps = {
|
|
895
870
|
/** The React component to use for the links. */
|
|
896
871
|
linkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
@@ -985,9 +960,10 @@ declare const Radio: react.ForwardRefExoticComponent<{
|
|
|
985
960
|
children?: ReactNode | undefined;
|
|
986
961
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
987
962
|
|
|
988
|
-
declare const
|
|
989
|
-
type
|
|
990
|
-
|
|
963
|
+
declare const rowTags: readonly ["article", "div", "section"];
|
|
964
|
+
type RowTag = (typeof rowTags)[number];
|
|
965
|
+
declare const rowGapSizes: readonly ["none", "x-small", "small", "large", "x-large"];
|
|
966
|
+
type RowGap = (typeof rowGapSizes)[number];
|
|
991
967
|
type RowProps = {
|
|
992
968
|
/**
|
|
993
969
|
* The horizontal alignment of the items in the row.
|
|
@@ -1045,22 +1021,6 @@ declare const Row: react.ForwardRefExoticComponent<{
|
|
|
1045
1021
|
children?: react.ReactNode | undefined;
|
|
1046
1022
|
} & react.RefAttributes<unknown>>;
|
|
1047
1023
|
|
|
1048
|
-
type ScreenMaxWidth = 'wide' | 'x-wide';
|
|
1049
|
-
type ScreenProps = {
|
|
1050
|
-
/** Whether the screen should stretch to the full height of the viewport. */
|
|
1051
|
-
fullHeight?: boolean;
|
|
1052
|
-
/** The maximum width of the screen. */
|
|
1053
|
-
maxWidth?: ScreenMaxWidth;
|
|
1054
|
-
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1055
|
-
declare const Screen: react.ForwardRefExoticComponent<{
|
|
1056
|
-
/** Whether the screen should stretch to the full height of the viewport. */
|
|
1057
|
-
fullHeight?: boolean;
|
|
1058
|
-
/** The maximum width of the screen. */
|
|
1059
|
-
maxWidth?: ScreenMaxWidth;
|
|
1060
|
-
} & HTMLAttributes<HTMLDivElement> & {
|
|
1061
|
-
children?: react.ReactNode | undefined;
|
|
1062
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
1063
|
-
|
|
1064
1024
|
type SearchFieldProps = PropsWithChildren<HTMLAttributes<HTMLFormElement>>;
|
|
1065
1025
|
declare const SearchField: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFormElement> & {
|
|
1066
1026
|
children?: react.ReactNode | undefined;
|
|
@@ -1116,6 +1076,8 @@ declare const SearchField: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFo
|
|
|
1116
1076
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
1117
1077
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
1118
1078
|
is?: string | undefined | undefined;
|
|
1079
|
+
exportparts?: string | undefined | undefined;
|
|
1080
|
+
part?: string | undefined | undefined;
|
|
1119
1081
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
1120
1082
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
1121
1083
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -1376,23 +1338,38 @@ declare const SkipLink: react.ForwardRefExoticComponent<AnchorHTMLAttributes<HTM
|
|
|
1376
1338
|
children?: react.ReactNode | undefined;
|
|
1377
1339
|
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
1378
1340
|
|
|
1341
|
+
declare const spotlightTags: readonly ["article", "aside", "div", "footer", "section"];
|
|
1342
|
+
type SpotlightTag = (typeof spotlightTags)[number];
|
|
1379
1343
|
declare const spotlightColors: readonly ["azure", "green", "lime", "magenta", "orange", "yellow"];
|
|
1380
1344
|
type SpotlightColor = (typeof spotlightColors)[number];
|
|
1381
1345
|
type SpotlightProps = {
|
|
1382
1346
|
/** The HTML element to use. */
|
|
1383
|
-
as?:
|
|
1347
|
+
as?: SpotlightTag;
|
|
1384
1348
|
/** The background colour. */
|
|
1385
1349
|
color?: SpotlightColor;
|
|
1386
1350
|
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
1387
1351
|
declare const Spotlight: react.ForwardRefExoticComponent<{
|
|
1388
1352
|
/** The HTML element to use. */
|
|
1389
|
-
as?:
|
|
1353
|
+
as?: SpotlightTag;
|
|
1390
1354
|
/** The background colour. */
|
|
1391
1355
|
color?: SpotlightColor;
|
|
1392
1356
|
} & HTMLAttributes<HTMLElement> & {
|
|
1393
1357
|
children?: react.ReactNode | undefined;
|
|
1394
1358
|
} & react.RefAttributes<unknown>>;
|
|
1395
1359
|
|
|
1360
|
+
type StandaloneLinkProps = {
|
|
1361
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
1362
|
+
color?: 'contrast' | 'inverse';
|
|
1363
|
+
/** Adds an icon to the link, showing it before the link text. */
|
|
1364
|
+
icon?: Function;
|
|
1365
|
+
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'>;
|
|
1366
|
+
declare const StandaloneLink: react.ForwardRefExoticComponent<{
|
|
1367
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
1368
|
+
color?: "contrast" | "inverse";
|
|
1369
|
+
/** Adds an icon to the link, showing it before the link text. */
|
|
1370
|
+
icon?: Function;
|
|
1371
|
+
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
1372
|
+
|
|
1396
1373
|
type SwitchProps = PropsWithChildren<InputHTMLAttributes<HTMLInputElement>>;
|
|
1397
1374
|
declare const Switch: react.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
|
|
1398
1375
|
children?: react.ReactNode | undefined;
|
|
@@ -1461,19 +1438,19 @@ type TableOfContentsLinkProps = {
|
|
|
1461
1438
|
type TableOfContentsListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
1462
1439
|
|
|
1463
1440
|
type TabsProps = {
|
|
1464
|
-
/** The identifier of the initially active
|
|
1441
|
+
/** The identifier of the initially active Tab. Corresponds to its Panel `id` value. */
|
|
1465
1442
|
activeTab?: string;
|
|
1466
|
-
onTabChange?: (
|
|
1443
|
+
onTabChange?: (panelId: string) => void;
|
|
1467
1444
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1468
1445
|
declare const Tabs: react.ForwardRefExoticComponent<{
|
|
1469
|
-
/** The identifier of the initially active
|
|
1446
|
+
/** The identifier of the initially active Tab. Corresponds to its Panel `id` value. */
|
|
1470
1447
|
activeTab?: string;
|
|
1471
|
-
onTabChange?: (
|
|
1448
|
+
onTabChange?: (panelId: string) => void;
|
|
1472
1449
|
} & HTMLAttributes<HTMLDivElement> & {
|
|
1473
1450
|
children?: react.ReactNode | undefined;
|
|
1474
1451
|
} & react.RefAttributes<HTMLDivElement>> & {
|
|
1475
1452
|
Button: react.ForwardRefExoticComponent<{
|
|
1476
|
-
|
|
1453
|
+
'aria-controls': string;
|
|
1477
1454
|
} & react.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1478
1455
|
children?: react.ReactNode | undefined;
|
|
1479
1456
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1481,22 +1458,22 @@ declare const Tabs: react.ForwardRefExoticComponent<{
|
|
|
1481
1458
|
children?: react.ReactNode | undefined;
|
|
1482
1459
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1483
1460
|
Panel: react.ForwardRefExoticComponent<{
|
|
1484
|
-
|
|
1461
|
+
id: string;
|
|
1485
1462
|
} & HTMLAttributes<HTMLDivElement> & {
|
|
1486
1463
|
children?: react.ReactNode | undefined;
|
|
1487
1464
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1488
1465
|
};
|
|
1489
1466
|
|
|
1490
1467
|
type TabsPanelProps = {
|
|
1491
|
-
/** The identifier of the
|
|
1492
|
-
|
|
1468
|
+
/** The identifier of the Tab Panel. */
|
|
1469
|
+
id: string;
|
|
1493
1470
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1494
1471
|
|
|
1495
1472
|
type TabsListProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1496
1473
|
|
|
1497
1474
|
type TabsButtonProps = {
|
|
1498
|
-
/**
|
|
1499
|
-
|
|
1475
|
+
/** The identifier of the corresponding tab panel. */
|
|
1476
|
+
'aria-controls': string;
|
|
1500
1477
|
} & PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
1501
1478
|
|
|
1502
1479
|
type TextAreaProps = {
|
|
@@ -1536,13 +1513,6 @@ declare const TimeInput: react.ForwardRefExoticComponent<{
|
|
|
1536
1513
|
invalid?: boolean;
|
|
1537
1514
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
1538
1515
|
|
|
1539
|
-
declare const TopTaskLink: react.ForwardRefExoticComponent<{
|
|
1540
|
-
/** The text content. */
|
|
1541
|
-
description: string;
|
|
1542
|
-
/** The title. */
|
|
1543
|
-
label: string;
|
|
1544
|
-
} & AnchorHTMLAttributes<HTMLAnchorElement> & react.RefAttributes<HTMLAnchorElement>>;
|
|
1545
|
-
|
|
1546
1516
|
type UnorderedListProps = {
|
|
1547
1517
|
/** Changes the text colour for readability on a dark background. */
|
|
1548
1518
|
color?: 'inverse';
|
|
@@ -1568,5 +1538,5 @@ declare const UnorderedList: react.ForwardRefExoticComponent<{
|
|
|
1568
1538
|
|
|
1569
1539
|
type UnorderedListItemProps = PropsWithChildren<LiHTMLAttributes<HTMLLIElement>>;
|
|
1570
1540
|
|
|
1571
|
-
export { Accordion, ActionGroup, Alert, Avatar, Badge, Blockquote, Breadcrumb, Breakout, Button, Card, CharacterCount, Checkbox, Column, DateInput, DescriptionList, Dialog, ErrorMessage, Field, FieldSet, Figure, FileInput, FileList,
|
|
1572
|
-
export type { AccordionProps, AccordionSectionProps, ActionGroupProps, AlertProps, AvatarProps, BadgeProps, BlockquoteProps, BreadcrumbLinkProps, BreadcrumbProps, BreakoutCellProps, BreakoutProps, ButtonProps, CardHeadingGroupProps, CardLinkProps, CardProps, CharacterCountProps, CheckboxProps, ColumnProps, DateInputProps, DescriptionListDescriptionProps, DescriptionListProps, DescriptionListTermProps, DialogProps, ErrorLink, ErrorMessageProps, FieldProps, FieldSetProps, FigureProps, FileInputProps, FileListProps,
|
|
1541
|
+
export { Accordion, ActionGroup, Alert, Avatar, Badge, Blockquote, Breadcrumb, Breakout, Button, Card, CharacterCount, Checkbox, Column, DateInput, DescriptionList, Dialog, ErrorMessage, Field, FieldSet, Figure, FileInput, FileList, Grid, Heading, Hint, Icon, IconButton, Image, ImageSlider, InvalidFormAlert, Label, Link, LinkList, Logo, Mark, OrderedList, Overlap, Page, PageFooter, PageHeader, PageHeading, Pagination, Paragraph, PasswordInput, Radio, Row, SearchField, Select, SkipLink, Spotlight, StandaloneLink, Switch, Table, TableOfContents, Tabs, TextArea, TextInput, TimeInput, UnorderedList, generateAspectRatioClass };
|
|
1542
|
+
export type { AccordionProps, AccordionSectionProps, ActionGroupProps, AlertProps, AvatarProps, BadgeProps, BlockquoteProps, BreadcrumbLinkProps, BreadcrumbProps, BreakoutCellProps, BreakoutProps, ButtonProps, CardHeadingGroupProps, CardLinkProps, CardProps, CharacterCountProps, CheckboxProps, ColumnProps, DateInputProps, DescriptionListDescriptionProps, DescriptionListProps, DescriptionListTermProps, DialogProps, ErrorLink, ErrorMessageProps, FieldProps, FieldSetProps, FigureProps, FileInputProps, FileListProps, GridCellProps, GridColumnNumber, GridColumnNumbers, GridProps, HeadingProps, HintProps, IconButtonProps, IconProps, ImageProps, ImageSliderItemProps, ImageSliderProps, InvalidFormAlertProps, LinkListLinkProps, LinkListProps, LinkProps, LogoBrand, LogoProps, MarkProps, OrderedListItemProps, OrderedListProps, OverlapProps, PageFooterMenuLinkProps, PageFooterMenuProps, PageFooterProps, PageFooterSpotlightProps, PageHeaderMenuLinkProps, PageHeaderProps, PageHeadingProps, PageProps, PaginationProps, ParagraphProps, PasswordInputProps, RadioProps, RowProps, SearchFieldProps, SelectOptionProps, SelectProps, SkipLinkProps, SpotlightProps, StandaloneLinkProps, SwitchProps, TableOfContentsLinkProps, TableOfContentsListProps, TableOfContentsProps, TableProps, TabsButtonProps, TabsListProps, TabsPanelProps, TabsProps, TextAreaProps, TextInputProps, TimeInputProps, UnorderedListItemProps, UnorderedListProps };
|