@amsterdam/design-system-react 0.15.0 → 1.0.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.d.ts +3 -0
- package/dist/Accordion/Accordion.js +7 -1
- package/dist/Accordion/Accordion.test.d.ts +4 -0
- package/dist/Accordion/Accordion.test.js +23 -3
- package/dist/Accordion/AccordionSection.test.d.ts +4 -0
- package/dist/Accordion/AccordionSection.test.js +5 -1
- package/dist/Accordion/index.d.ts +4 -0
- package/dist/Accordion/index.js +4 -0
- package/dist/ActionGroup/ActionGroup.d.ts +3 -0
- package/dist/ActionGroup/ActionGroup.js +3 -0
- package/dist/ActionGroup/ActionGroup.test.d.ts +4 -0
- package/dist/ActionGroup/ActionGroup.test.js +5 -1
- package/dist/ActionGroup/index.d.ts +4 -0
- package/dist/ActionGroup/index.js +4 -0
- package/dist/Alert/Alert.d.ts +3 -0
- package/dist/Alert/Alert.js +8 -5
- package/dist/Alert/Alert.test.d.ts +4 -0
- package/dist/Alert/Alert.test.js +5 -1
- package/dist/Alert/index.d.ts +4 -0
- package/dist/Alert/index.js +4 -0
- package/dist/Avatar/Avatar.d.ts +3 -0
- package/dist/Avatar/Avatar.js +5 -2
- package/dist/Avatar/Avatar.test.d.ts +4 -0
- package/dist/Avatar/Avatar.test.js +5 -1
- package/dist/Avatar/index.d.ts +4 -0
- package/dist/Avatar/index.js +4 -0
- package/dist/Badge/Badge.d.ts +3 -0
- package/dist/Badge/Badge.js +3 -0
- package/dist/Badge/Badge.test.d.ts +4 -0
- package/dist/Badge/Badge.test.js +5 -1
- package/dist/Badge/index.d.ts +4 -0
- package/dist/Badge/index.js +4 -0
- package/dist/Blockquote/Blockquote.d.ts +3 -0
- package/dist/Blockquote/Blockquote.js +3 -0
- package/dist/Blockquote/Blockquote.test.d.ts +4 -0
- package/dist/Blockquote/Blockquote.test.js +7 -4
- package/dist/Blockquote/index.d.ts +4 -0
- package/dist/Blockquote/index.js +4 -0
- package/dist/Breadcrumb/Breadcrumb.d.ts +3 -0
- package/dist/Breadcrumb/Breadcrumb.js +3 -0
- package/dist/Breadcrumb/Breadcrumb.test.d.ts +4 -0
- package/dist/Breadcrumb/Breadcrumb.test.js +5 -1
- package/dist/Breadcrumb/BreadcrumbLink.test.d.ts +4 -0
- package/dist/Breadcrumb/BreadcrumbLink.test.js +5 -1
- package/dist/Breadcrumb/index.d.ts +4 -0
- package/dist/Breadcrumb/index.js +4 -0
- package/dist/Breakout/Breakout.d.ts +3 -0
- package/dist/Breakout/Breakout.js +3 -0
- package/dist/Breakout/Breakout.test.d.ts +4 -0
- package/dist/Breakout/Breakout.test.js +15 -19
- package/dist/Breakout/BreakoutCell.d.ts +3 -1
- package/dist/Breakout/BreakoutCell.js +1 -0
- package/dist/Breakout/BreakoutCell.test.d.ts +4 -0
- package/dist/Breakout/BreakoutCell.test.js +24 -16
- package/dist/Breakout/index.d.ts +4 -0
- package/dist/Breakout/index.js +4 -0
- package/dist/Button/Button.d.ts +3 -0
- package/dist/Button/Button.js +3 -0
- package/dist/Button/Button.test.d.ts +4 -0
- package/dist/Button/Button.test.js +12 -1
- package/dist/Button/index.d.ts +4 -0
- package/dist/Button/index.js +4 -0
- package/dist/Card/Card.d.ts +13 -0
- package/dist/Card/Card.js +11 -1
- package/dist/Card/Card.test.d.ts +4 -0
- package/dist/Card/Card.test.js +5 -1
- package/dist/Card/CardHeading.d.ts +11 -0
- package/dist/Card/CardHeading.js +10 -0
- package/dist/Card/CardHeading.test.d.ts +5 -0
- package/dist/Card/CardHeading.test.js +38 -0
- package/dist/Card/CardHeadingGroup.test.d.ts +4 -0
- package/dist/Card/CardHeadingGroup.test.js +5 -1
- package/dist/Card/CardImage.d.ts +7 -0
- package/dist/Card/CardImage.js +10 -0
- package/dist/Card/CardImage.test.d.ts +5 -0
- package/dist/{Footer/FooterSpotlight.test.js → Card/CardImage.test.js} +13 -9
- package/dist/Card/CardLink.test.d.ts +4 -0
- package/dist/Card/CardLink.test.js +5 -1
- package/dist/Card/index.d.ts +4 -0
- package/dist/Card/index.js +4 -0
- package/dist/CharacterCount/CharacterCount.d.ts +3 -0
- package/dist/CharacterCount/CharacterCount.js +3 -0
- package/dist/CharacterCount/CharacterCount.test.d.ts +4 -0
- package/dist/CharacterCount/CharacterCount.test.js +5 -1
- package/dist/CharacterCount/index.d.ts +4 -0
- package/dist/CharacterCount/index.js +4 -0
- package/dist/Checkbox/Checkbox.d.ts +9 -2
- package/dist/Checkbox/Checkbox.js +6 -2
- package/dist/Checkbox/Checkbox.test.d.ts +4 -0
- package/dist/Checkbox/Checkbox.test.js +12 -3
- package/dist/Checkbox/CheckboxIcon.d.ts +7 -0
- package/dist/Checkbox/CheckboxIcon.js +3 -0
- package/dist/Checkbox/index.d.ts +4 -0
- package/dist/Checkbox/index.js +4 -0
- package/dist/Column/Column.d.ts +7 -3
- package/dist/Column/Column.js +5 -1
- package/dist/Column/Column.test.d.ts +4 -0
- package/dist/Column/Column.test.js +14 -12
- package/dist/Column/index.d.ts +4 -0
- package/dist/Column/index.js +4 -0
- package/dist/DateInput/DateInput.d.ts +3 -0
- package/dist/DateInput/DateInput.js +3 -0
- package/dist/DateInput/DateInput.test.d.ts +4 -0
- package/dist/DateInput/DateInput.test.js +5 -1
- package/dist/DateInput/index.d.ts +4 -0
- package/dist/DateInput/index.js +4 -0
- package/dist/DescriptionList/DescriptionList.d.ts +3 -0
- package/dist/DescriptionList/DescriptionList.js +3 -0
- package/dist/DescriptionList/DescriptionList.test.d.ts +4 -0
- package/dist/DescriptionList/DescriptionList.test.js +5 -1
- package/dist/DescriptionList/DescriptionListDescription.test.d.ts +4 -0
- package/dist/DescriptionList/DescriptionListDescription.test.js +5 -1
- package/dist/DescriptionList/DescriptionListSection.test.d.ts +4 -0
- package/dist/DescriptionList/DescriptionListSection.test.js +5 -1
- package/dist/DescriptionList/DescriptionListTerm.test.d.ts +4 -0
- package/dist/DescriptionList/DescriptionListTerm.test.js +5 -1
- package/dist/DescriptionList/index.d.ts +4 -0
- package/dist/DescriptionList/index.js +4 -0
- package/dist/Dialog/Dialog.d.ts +3 -0
- package/dist/Dialog/Dialog.js +3 -0
- package/dist/Dialog/Dialog.test.d.ts +4 -0
- package/dist/Dialog/Dialog.test.js +5 -1
- package/dist/Dialog/index.d.ts +4 -0
- package/dist/Dialog/index.js +4 -0
- package/dist/ErrorMessage/ErrorMessage.d.ts +3 -0
- package/dist/ErrorMessage/ErrorMessage.js +5 -2
- package/dist/ErrorMessage/ErrorMessage.test.d.ts +4 -0
- package/dist/ErrorMessage/ErrorMessage.test.js +5 -1
- package/dist/ErrorMessage/index.d.ts +4 -0
- package/dist/ErrorMessage/index.js +4 -0
- package/dist/Field/Field.d.ts +3 -0
- package/dist/Field/Field.js +3 -0
- package/dist/Field/Field.test.d.ts +4 -0
- package/dist/Field/Field.test.js +5 -1
- package/dist/Field/index.d.ts +4 -0
- package/dist/Field/index.js +4 -0
- package/dist/FieldSet/FieldSet.d.ts +3 -0
- package/dist/FieldSet/FieldSet.js +3 -0
- package/dist/FieldSet/FieldSet.test.d.ts +4 -0
- package/dist/FieldSet/FieldSet.test.js +5 -1
- package/dist/FieldSet/index.d.ts +4 -0
- package/dist/FieldSet/index.js +4 -0
- package/dist/Figure/Figure.d.ts +3 -0
- package/dist/Figure/Figure.js +3 -0
- package/dist/Figure/Figure.test.d.ts +4 -0
- package/dist/Figure/Figure.test.js +5 -1
- package/dist/Figure/FigureCaption.test.d.ts +4 -0
- package/dist/Figure/FigureCaption.test.js +5 -1
- package/dist/Figure/index.d.ts +4 -0
- package/dist/Figure/index.js +4 -0
- package/dist/FileInput/FileInput.d.ts +3 -0
- package/dist/FileInput/FileInput.js +3 -0
- package/dist/FileInput/FileInput.test.d.ts +4 -0
- package/dist/FileInput/FileInput.test.js +5 -1
- package/dist/FileInput/index.d.ts +4 -0
- package/dist/FileInput/index.js +4 -0
- package/dist/FileList/FileList.d.ts +3 -0
- package/dist/FileList/FileList.js +3 -0
- package/dist/FileList/FileList.test.d.ts +4 -0
- package/dist/FileList/FileList.test.js +5 -1
- package/dist/FileList/FileListItem.test.d.ts +4 -0
- package/dist/FileList/FileListItem.test.js +5 -1
- package/dist/FileList/index.d.ts +4 -0
- package/dist/FileList/index.js +4 -0
- package/dist/Grid/Grid.d.ts +11 -5
- package/dist/Grid/Grid.js +5 -0
- package/dist/Grid/Grid.test.d.ts +4 -0
- package/dist/Grid/Grid.test.js +17 -29
- package/dist/Grid/GridCell.test.d.ts +4 -0
- package/dist/Grid/GridCell.test.js +6 -8
- package/dist/Grid/index.d.ts +4 -0
- package/dist/Grid/index.js +4 -0
- package/dist/Grid/paddingClasses.d.ts +6 -2
- package/dist/Grid/paddingClasses.js +4 -0
- package/dist/Heading/Heading.d.ts +3 -1
- package/dist/Heading/Heading.js +7 -0
- package/dist/Heading/Heading.test.d.ts +4 -0
- package/dist/Heading/Heading.test.js +21 -11
- package/dist/Heading/getHeadingTag.d.ts +4 -0
- package/dist/Heading/getHeadingTag.js +4 -0
- package/dist/Heading/index.d.ts +4 -0
- package/dist/Heading/index.js +4 -0
- package/dist/Hint/Hint.test.d.ts +4 -0
- package/dist/Hint/Hint.test.js +5 -1
- package/dist/Hint/index.d.ts +4 -0
- package/dist/Hint/index.js +4 -0
- package/dist/Icon/Icon.d.ts +5 -3
- package/dist/Icon/Icon.js +8 -0
- package/dist/Icon/Icon.test.d.ts +4 -0
- package/dist/Icon/Icon.test.js +15 -12
- package/dist/Icon/index.d.ts +4 -0
- package/dist/Icon/index.js +4 -0
- package/dist/IconButton/IconButton.d.ts +5 -2
- package/dist/IconButton/IconButton.js +4 -1
- package/dist/IconButton/IconButton.test.d.ts +4 -0
- package/dist/IconButton/IconButton.test.js +5 -1
- package/dist/IconButton/index.d.ts +4 -0
- package/dist/IconButton/index.js +4 -0
- package/dist/Image/Image.d.ts +7 -8
- package/dist/Image/Image.js +3 -0
- package/dist/Image/Image.test.d.ts +4 -0
- package/dist/Image/Image.test.js +5 -1
- package/dist/Image/generateAspectRatioClass.d.ts +4 -0
- package/dist/Image/generateAspectRatioClass.js +4 -0
- package/dist/Image/index.d.ts +4 -0
- package/dist/Image/index.js +4 -0
- package/dist/ImageSlider/ImageSlider.d.ts +3 -0
- package/dist/ImageSlider/ImageSlider.js +3 -0
- package/dist/ImageSlider/ImageSlider.test.d.ts +4 -0
- package/dist/ImageSlider/ImageSlider.test.js +5 -1
- package/dist/ImageSlider/ImageSliderControls.js +3 -3
- package/dist/ImageSlider/ImageSliderControls.test.d.ts +4 -0
- package/dist/ImageSlider/ImageSliderControls.test.js +4 -0
- package/dist/ImageSlider/ImageSliderItem.test.d.ts +4 -0
- package/dist/ImageSlider/ImageSliderItem.test.js +5 -1
- package/dist/ImageSlider/ImageSliderScroller.test.d.ts +4 -0
- package/dist/ImageSlider/ImageSliderScroller.test.js +5 -1
- package/dist/ImageSlider/ImageSliderThumbnails.js +1 -1
- package/dist/ImageSlider/ImageSliderThumbnails.test.d.ts +4 -0
- package/dist/ImageSlider/ImageSliderThumbnails.test.js +5 -1
- package/dist/ImageSlider/index.d.ts +4 -0
- package/dist/ImageSlider/index.js +4 -0
- package/dist/InvalidFormAlert/InvalidFormAlert.d.ts +3 -0
- package/dist/InvalidFormAlert/InvalidFormAlert.js +3 -0
- package/dist/InvalidFormAlert/InvalidFormAlert.test.d.ts +4 -0
- package/dist/InvalidFormAlert/InvalidFormAlert.test.js +5 -1
- package/dist/InvalidFormAlert/index.d.ts +4 -0
- package/dist/InvalidFormAlert/index.js +4 -0
- package/dist/InvalidFormAlert/useAddErrorCountToDocumentTitle.d.ts +4 -0
- package/dist/InvalidFormAlert/useAddErrorCountToDocumentTitle.js +4 -0
- package/dist/Label/Label.d.ts +3 -1
- package/dist/Label/Label.js +7 -0
- package/dist/Label/Label.test.d.ts +4 -0
- package/dist/Label/Label.test.js +7 -4
- package/dist/Label/index.d.ts +4 -0
- package/dist/Label/index.js +4 -0
- package/dist/Link/Link.d.ts +3 -6
- package/dist/Link/Link.js +4 -1
- package/dist/Link/Link.test.d.ts +4 -0
- package/dist/Link/Link.test.js +26 -29
- package/dist/Link/index.d.ts +4 -0
- package/dist/Link/index.js +4 -0
- package/dist/LinkList/LinkList.d.ts +3 -0
- package/dist/LinkList/LinkList.js +3 -0
- package/dist/LinkList/LinkList.test.d.ts +4 -0
- package/dist/LinkList/LinkList.test.js +5 -1
- package/dist/LinkList/LinkListLink.js +2 -2
- package/dist/LinkList/LinkListLink.test.d.ts +4 -0
- package/dist/LinkList/LinkListLink.test.js +5 -1
- package/dist/LinkList/index.d.ts +4 -0
- package/dist/LinkList/index.js +4 -0
- package/dist/Logo/Logo.d.ts +3 -0
- package/dist/Logo/Logo.js +3 -0
- package/dist/Logo/Logo.test.d.ts +4 -0
- package/dist/Logo/Logo.test.js +6 -3
- package/dist/Logo/brand/LogoAmsterdam.d.ts +4 -0
- package/dist/Logo/brand/LogoAmsterdam.js +4 -0
- package/dist/Logo/brand/LogoGgdAmsterdam.d.ts +4 -0
- package/dist/Logo/brand/LogoGgdAmsterdam.js +4 -0
- package/dist/Logo/brand/LogoMuseumWeesp.d.ts +4 -0
- package/dist/Logo/brand/LogoMuseumWeesp.js +4 -0
- package/dist/Logo/brand/LogoStadsarchief.d.ts +4 -0
- package/dist/Logo/brand/LogoStadsarchief.js +4 -0
- package/dist/Logo/brand/LogoStadsbankVanLening.d.ts +4 -0
- package/dist/Logo/brand/LogoStadsbankVanLening.js +4 -0
- package/dist/Logo/brand/LogoVgaVerzekeringen.d.ts +4 -0
- package/dist/Logo/brand/LogoVgaVerzekeringen.js +4 -0
- package/dist/Logo/brand/index.d.ts +4 -0
- package/dist/Logo/brand/index.js +4 -0
- package/dist/Logo/index.d.ts +4 -0
- package/dist/Logo/index.js +4 -0
- package/dist/Mark/Mark.d.ts +3 -0
- package/dist/Mark/Mark.js +3 -0
- package/dist/Mark/Mark.test.d.ts +4 -0
- package/dist/Mark/Mark.test.js +5 -1
- package/dist/Mark/index.d.ts +4 -0
- package/dist/Mark/index.js +4 -0
- package/dist/OrderedList/OrderedList.d.ts +3 -0
- package/dist/OrderedList/OrderedList.js +3 -0
- package/dist/OrderedList/OrderedList.test.d.ts +4 -0
- package/dist/OrderedList/OrderedList.test.js +5 -1
- package/dist/OrderedList/OrderedListItem.test.d.ts +4 -0
- package/dist/OrderedList/OrderedListItem.test.js +5 -1
- package/dist/OrderedList/index.d.ts +4 -0
- package/dist/OrderedList/index.js +4 -0
- package/dist/Overlap/Overlap.d.ts +3 -0
- package/dist/Overlap/Overlap.js +3 -0
- package/dist/Overlap/Overlap.test.d.ts +4 -0
- package/dist/Overlap/Overlap.test.js +5 -1
- package/dist/Overlap/index.d.ts +4 -0
- package/dist/Overlap/index.js +4 -0
- package/dist/Page/Page.d.ts +12 -0
- package/dist/Page/Page.js +12 -0
- package/dist/Page/Page.test.d.ts +5 -0
- package/dist/{MegaMenu/MegaMenu.test.js → Page/Page.test.js} +13 -9
- package/dist/Page/index.d.ts +6 -0
- package/dist/Page/index.js +5 -0
- package/dist/{Footer/Footer.d.ts → PageFooter/PageFooter.d.ts} +5 -2
- package/dist/PageFooter/PageFooter.js +20 -0
- package/dist/PageFooter/PageFooter.test.d.ts +5 -0
- package/dist/{Footer/Footer.test.js → PageFooter/PageFooter.test.js} +13 -9
- package/dist/{Footer/FooterMenu.d.ts → PageFooter/PageFooterMenu.d.ts} +2 -2
- package/dist/PageFooter/PageFooterMenu.js +9 -0
- package/dist/PageFooter/PageFooterMenu.test.d.ts +5 -0
- package/dist/{Footer/FooterMenu.test.js → PageFooter/PageFooterMenu.test.js} +13 -9
- package/dist/{Footer/FooterMenuLink.d.ts → PageFooter/PageFooterMenuLink.d.ts} +2 -2
- package/dist/PageFooter/PageFooterMenuLink.js +9 -0
- package/dist/PageFooter/PageFooterMenuLink.test.d.ts +5 -0
- package/dist/{Footer/FooterMenuLink.test.js → PageFooter/PageFooterMenuLink.test.js} +13 -9
- package/dist/{Footer/FooterSpotlight.d.ts → PageFooter/PageFooterSpotlight.d.ts} +2 -2
- package/dist/PageFooter/PageFooterSpotlight.js +9 -0
- package/dist/PageFooter/PageFooterSpotlight.test.d.ts +5 -0
- package/dist/{MegaMenu/MegaMenuListCategory.test.js → PageFooter/PageFooterSpotlight.test.js} +13 -9
- package/dist/PageFooter/index.d.ts +9 -0
- package/dist/PageFooter/index.js +5 -0
- package/dist/{Header/Header.d.ts → PageHeader/PageHeader.d.ts} +13 -6
- package/dist/PageHeader/PageHeader.js +35 -0
- package/dist/{Header/Header.test.d.ts → PageHeader/PageHeader.test.d.ts} +4 -0
- package/dist/{Header/Header.test.js → PageHeader/PageHeader.test.js} +47 -38
- package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.d.ts +6 -0
- package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.js +10 -0
- package/dist/PageHeader/PageHeaderGridCellNarrowWindowOnly.test.d.ts +5 -0
- package/dist/{Header/HeaderGridCellNarrowWindowOnly.test.js → PageHeader/PageHeaderGridCellNarrowWindowOnly.test.js} +14 -10
- package/dist/PageHeader/PageHeaderMenuIcon.d.ts +6 -0
- package/dist/PageHeader/PageHeaderMenuIcon.js +2 -0
- package/dist/{Header/HeaderMenuLink.d.ts → PageHeader/PageHeaderMenuLink.d.ts} +6 -2
- package/dist/PageHeader/PageHeaderMenuLink.js +9 -0
- package/dist/PageHeader/PageHeaderMenuLink.test.d.ts +5 -0
- package/dist/{Header/HeaderMenuLink.test.js → PageHeader/PageHeaderMenuLink.test.js} +17 -13
- package/dist/PageHeader/index.d.ts +7 -0
- package/dist/PageHeader/index.js +5 -0
- package/dist/PageHeader/matchMedia.mock.d.ts +4 -0
- package/dist/{Header → PageHeader}/matchMedia.mock.js +4 -0
- package/dist/PageHeading/PageHeading.d.ts +3 -0
- package/dist/PageHeading/PageHeading.js +3 -0
- package/dist/PageHeading/PageHeading.test.d.ts +4 -0
- package/dist/PageHeading/PageHeading.test.js +6 -3
- package/dist/PageHeading/index.d.ts +4 -0
- package/dist/PageHeading/index.js +4 -0
- package/dist/Pagination/LinkItem.d.ts +4 -0
- package/dist/Pagination/Pagination.d.ts +3 -0
- package/dist/Pagination/Pagination.js +5 -2
- package/dist/Pagination/Pagination.test.d.ts +4 -0
- package/dist/Pagination/Pagination.test.js +5 -1
- package/dist/Pagination/Spacer.d.ts +4 -0
- package/dist/Pagination/Spacer.js +4 -0
- package/dist/Pagination/getRange.d.ts +4 -0
- package/dist/Pagination/getRange.js +4 -0
- package/dist/Pagination/index.d.ts +4 -0
- package/dist/Pagination/index.js +4 -0
- package/dist/Paragraph/Paragraph.d.ts +3 -1
- package/dist/Paragraph/Paragraph.js +7 -0
- package/dist/Paragraph/Paragraph.test.d.ts +4 -0
- package/dist/Paragraph/Paragraph.test.js +5 -1
- package/dist/Paragraph/index.d.ts +4 -0
- package/dist/Paragraph/index.js +4 -0
- package/dist/PasswordInput/PasswordInput.d.ts +3 -0
- package/dist/PasswordInput/PasswordInput.js +3 -0
- package/dist/PasswordInput/PasswordInput.test.d.ts +4 -0
- package/dist/PasswordInput/PasswordInput.test.js +5 -1
- package/dist/PasswordInput/index.d.ts +4 -0
- package/dist/PasswordInput/index.js +4 -0
- package/dist/Radio/Radio.d.ts +3 -0
- package/dist/Radio/Radio.js +3 -0
- package/dist/Radio/Radio.test.d.ts +4 -0
- package/dist/Radio/Radio.test.js +7 -3
- package/dist/Radio/RadioIcon.d.ts +4 -0
- package/dist/Radio/RadioIcon.js +1 -1
- package/dist/Radio/index.d.ts +4 -0
- package/dist/Radio/index.js +4 -0
- package/dist/Row/Row.d.ts +7 -3
- package/dist/Row/Row.js +5 -1
- package/dist/Row/Row.test.d.ts +4 -0
- package/dist/Row/Row.test.js +14 -12
- package/dist/Row/index.d.ts +4 -0
- package/dist/Row/index.js +4 -0
- package/dist/SearchField/SearchField.d.ts +5 -0
- package/dist/SearchField/SearchField.js +3 -0
- package/dist/SearchField/SearchField.test.d.ts +4 -0
- package/dist/SearchField/SearchField.test.js +6 -3
- package/dist/SearchField/SearchFieldInput.test.d.ts +4 -0
- package/dist/SearchField/SearchFieldInput.test.js +6 -3
- package/dist/SearchField/index.d.ts +4 -0
- package/dist/SearchField/index.js +4 -0
- package/dist/Select/Select.d.ts +3 -0
- package/dist/Select/Select.js +3 -0
- package/dist/Select/Select.test.d.ts +4 -0
- package/dist/Select/Select.test.js +5 -1
- package/dist/Select/SelectOption.test.d.ts +4 -0
- package/dist/Select/SelectOption.test.js +5 -1
- package/dist/Select/SelectOptionGroup.test.d.ts +4 -0
- package/dist/Select/SelectOptionGroup.test.js +5 -1
- package/dist/Select/index.d.ts +4 -0
- package/dist/Select/index.js +4 -0
- package/dist/SkipLink/SkipLink.d.ts +3 -0
- package/dist/SkipLink/SkipLink.js +3 -0
- package/dist/SkipLink/SkipLink.test.d.ts +4 -0
- package/dist/SkipLink/SkipLink.test.js +5 -1
- package/dist/SkipLink/index.d.ts +4 -0
- package/dist/SkipLink/index.js +4 -0
- package/dist/Spotlight/Spotlight.d.ts +7 -2
- package/dist/Spotlight/Spotlight.js +4 -0
- package/dist/Spotlight/Spotlight.test.d.ts +4 -0
- package/dist/Spotlight/Spotlight.test.js +15 -9
- package/dist/Spotlight/index.d.ts +4 -0
- package/dist/Spotlight/index.js +4 -0
- package/dist/StandaloneLink/StandaloneLink.d.ts +20 -0
- package/dist/StandaloneLink/StandaloneLink.js +13 -0
- package/dist/StandaloneLink/StandaloneLink.test.d.ts +5 -0
- package/dist/StandaloneLink/StandaloneLink.test.js +44 -0
- package/dist/StandaloneLink/index.d.ts +6 -0
- package/dist/StandaloneLink/index.js +5 -0
- package/dist/Switch/Switch.d.ts +3 -0
- package/dist/Switch/Switch.js +3 -0
- package/dist/Switch/Switch.test.d.ts +4 -0
- package/dist/Switch/Switch.test.js +5 -1
- package/dist/Switch/index.d.ts +4 -0
- package/dist/Switch/index.js +4 -0
- package/dist/Table/Table.d.ts +3 -0
- package/dist/Table/Table.js +3 -0
- package/dist/Table/Table.test.d.ts +4 -0
- package/dist/Table/Table.test.js +5 -1
- package/dist/Table/TableBody.test.d.ts +4 -0
- package/dist/Table/TableBody.test.js +5 -1
- package/dist/Table/TableCaption.d.ts +1 -2
- package/dist/Table/TableCaption.js +4 -0
- package/dist/Table/TableCaption.test.d.ts +4 -0
- package/dist/Table/TableCaption.test.js +5 -1
- package/dist/Table/TableCell.test.d.ts +4 -0
- package/dist/Table/TableCell.test.js +5 -1
- package/dist/Table/TableFooter.test.d.ts +4 -0
- package/dist/Table/TableFooter.test.js +5 -1
- package/dist/Table/TableHeader.test.d.ts +4 -0
- package/dist/Table/TableHeader.test.js +5 -1
- package/dist/Table/TableHeaderCell.test.d.ts +4 -0
- package/dist/Table/TableHeaderCell.test.js +5 -1
- package/dist/Table/TableRow.test.d.ts +4 -0
- package/dist/Table/TableRow.test.js +5 -1
- package/dist/Table/index.d.ts +4 -0
- package/dist/Table/index.js +4 -0
- package/dist/TableOfContents/TableOfContents.d.ts +3 -0
- package/dist/TableOfContents/TableOfContents.js +3 -0
- package/dist/TableOfContents/TableOfContents.test.d.ts +4 -0
- package/dist/TableOfContents/TableOfContents.test.js +5 -1
- package/dist/TableOfContents/TableOfContentsLink.test.d.ts +4 -0
- package/dist/TableOfContents/TableOfContentsLink.test.js +5 -1
- package/dist/TableOfContents/TableOfContentsList.test.d.ts +4 -0
- package/dist/TableOfContents/TableOfContentsList.test.js +5 -1
- package/dist/TableOfContents/index.d.ts +4 -0
- package/dist/TableOfContents/index.js +4 -0
- package/dist/Tabs/Tabs.d.ts +9 -6
- package/dist/Tabs/Tabs.js +9 -6
- package/dist/Tabs/Tabs.test.d.ts +4 -0
- package/dist/Tabs/Tabs.test.js +25 -6
- package/dist/Tabs/TabsButton.d.ts +4 -4
- package/dist/Tabs/TabsButton.js +7 -4
- package/dist/Tabs/TabsButton.test.d.ts +4 -0
- package/dist/Tabs/TabsButton.test.js +24 -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.d.ts +4 -0
- package/dist/Tabs/TabsList.test.js +5 -1
- package/dist/Tabs/TabsPanel.d.ts +4 -4
- package/dist/Tabs/TabsPanel.js +4 -4
- package/dist/Tabs/TabsPanel.test.d.ts +4 -0
- package/dist/Tabs/TabsPanel.test.js +14 -12
- package/dist/Tabs/index.d.ts +4 -0
- package/dist/Tabs/index.js +4 -0
- package/dist/TextArea/TextArea.d.ts +3 -0
- package/dist/TextArea/TextArea.js +3 -0
- package/dist/TextArea/TextArea.test.d.ts +4 -0
- package/dist/TextArea/TextArea.test.js +5 -1
- package/dist/TextArea/index.d.ts +4 -0
- package/dist/TextArea/index.js +4 -0
- package/dist/TextInput/TextInput.d.ts +3 -0
- package/dist/TextInput/TextInput.js +3 -0
- package/dist/TextInput/TextInput.test.d.ts +4 -0
- package/dist/TextInput/TextInput.test.js +6 -3
- package/dist/TextInput/index.d.ts +4 -0
- package/dist/TextInput/index.js +4 -0
- package/dist/TimeInput/TimeInput.d.ts +3 -0
- package/dist/TimeInput/TimeInput.js +3 -0
- package/dist/TimeInput/TimeInput.test.d.ts +4 -0
- package/dist/TimeInput/TimeInput.test.js +5 -1
- package/dist/TimeInput/index.d.ts +4 -0
- package/dist/TimeInput/index.js +4 -0
- package/dist/UnorderedList/UnorderedList.d.ts +3 -0
- package/dist/UnorderedList/UnorderedList.js +3 -0
- package/dist/UnorderedList/UnorderedList.test.d.ts +4 -0
- package/dist/UnorderedList/UnorderedList.test.js +5 -1
- package/dist/UnorderedList/UnorderedListItem.test.d.ts +4 -0
- package/dist/UnorderedList/UnorderedListItem.test.js +5 -1
- package/dist/UnorderedList/index.d.ts +4 -0
- package/dist/UnorderedList/index.js +4 -0
- package/dist/common/accessibility.d.ts +9 -1
- package/dist/common/formatFileSize.test.d.ts +4 -0
- package/dist/common/formatFileSize.test.js +4 -0
- package/dist/common/formatFileType.test.d.ts +4 -0
- package/dist/common/formatFileType.test.js +4 -0
- package/dist/common/types.d.ts +4 -0
- package/dist/common/types.js +4 -0
- package/dist/common/useIsAfterBreakpoint.d.ts +4 -0
- package/dist/common/useIsAfterBreakpoint.js +4 -0
- package/dist/common/useKeyboardFocus.test.d.ts +4 -0
- package/dist/common/useKeyboardFocus.test.js +4 -0
- package/dist/index.cjs.js +1307 -1105
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +358 -197
- package/dist/index.esm.js +1306 -1102
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -15
- package/dist/Footer/Footer.js +0 -17
- package/dist/Footer/Footer.test.d.ts +0 -1
- package/dist/Footer/FooterMenu.js +0 -9
- package/dist/Footer/FooterMenu.test.d.ts +0 -1
- package/dist/Footer/FooterMenuLink.js +0 -9
- package/dist/Footer/FooterMenuLink.test.d.ts +0 -1
- package/dist/Footer/FooterSpotlight.js +0 -9
- package/dist/Footer/FooterSpotlight.test.d.ts +0 -1
- 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/HeaderGridCellNarrowWindowOnly.test.d.ts +0 -1
- 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/HeaderMenuLink.test.d.ts +0 -1
- package/dist/Header/index.d.ts +0 -3
- package/dist/Header/index.js +0 -1
- package/dist/Header/matchMedia.mock.d.ts +0 -0
- package/dist/MegaMenu/MegaMenu.d.ts +0 -14
- package/dist/MegaMenu/MegaMenu.js +0 -12
- package/dist/MegaMenu/MegaMenu.test.d.ts +0 -1
- package/dist/MegaMenu/MegaMenuListCategory.d.ts +0 -9
- package/dist/MegaMenu/MegaMenuListCategory.js +0 -9
- package/dist/MegaMenu/MegaMenuListCategory.test.d.ts +0 -1
- 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.d.ts +0 -1
- 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.d.ts +0 -1
- 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/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. */
|
|
@@ -9,6 +9,9 @@ type HeadingProps = {
|
|
|
9
9
|
/** Uses larger or smaller text without changing its position in the heading hierarchy. */
|
|
10
10
|
size?: 'level-1' | 'level-2' | 'level-3' | 'level-4' | 'level-5' | 'level-6';
|
|
11
11
|
} & PropsWithChildren<HTMLAttributes<HTMLHeadingElement>>;
|
|
12
|
+
/**
|
|
13
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-heading--docs Heading docs at Amsterdam Design System}
|
|
14
|
+
*/
|
|
12
15
|
declare const Heading: react.ForwardRefExoticComponent<{
|
|
13
16
|
/** Changes the text colour for readability on a dark background. */
|
|
14
17
|
color?: "inverse";
|
|
@@ -30,6 +33,9 @@ type AccordionProps = {
|
|
|
30
33
|
/** The HTML element to use for each Accordion Section. */
|
|
31
34
|
sectionAs?: 'div' | 'section';
|
|
32
35
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
36
|
+
/**
|
|
37
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-accordion--docs Accordion docs at Amsterdam Design System}
|
|
38
|
+
*/
|
|
33
39
|
declare const Accordion: react.ForwardRefExoticComponent<{
|
|
34
40
|
/**
|
|
35
41
|
* The hierarchical level of this Accordion’s Section Headings within the document.
|
|
@@ -58,6 +64,9 @@ type AccordionSectionProps = {
|
|
|
58
64
|
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
59
65
|
|
|
60
66
|
type ActionGroupProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
67
|
+
/**
|
|
68
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-action-group--docs Action Group docs at Amsterdam Design System}
|
|
69
|
+
*/
|
|
61
70
|
declare const ActionGroup: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
62
71
|
children?: react.ReactNode | undefined;
|
|
63
72
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -81,6 +90,9 @@ type AlertProps = {
|
|
|
81
90
|
/** The significance of the message conveyed. */
|
|
82
91
|
severity?: Severity;
|
|
83
92
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
93
|
+
/**
|
|
94
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-feedback-alert--docs Alert docs at Amsterdam Design System}
|
|
95
|
+
*/
|
|
84
96
|
declare const Alert: react.ForwardRefExoticComponent<{
|
|
85
97
|
/** Whether the user can dismiss the Alert. Adds a button to its top right. */
|
|
86
98
|
closeable?: boolean;
|
|
@@ -112,6 +124,9 @@ type AvatarProps = {
|
|
|
112
124
|
/** The text content. Should be the user’s initials. The first two characters will be displayed. */
|
|
113
125
|
label: string;
|
|
114
126
|
} & HTMLAttributes<HTMLSpanElement>;
|
|
127
|
+
/**
|
|
128
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-feedback-avatar--docs Avatar docs at Amsterdam Design System}
|
|
129
|
+
*/
|
|
115
130
|
declare const Avatar: react.ForwardRefExoticComponent<{
|
|
116
131
|
/** The background colour. */
|
|
117
132
|
color?: AvatarColor;
|
|
@@ -129,6 +144,9 @@ type BadgeProps = {
|
|
|
129
144
|
/** The text content. */
|
|
130
145
|
label: string | number;
|
|
131
146
|
} & HTMLAttributes<HTMLElement>;
|
|
147
|
+
/**
|
|
148
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-feedback-badge--docs Badge docs at Amsterdam Design System}
|
|
149
|
+
*/
|
|
132
150
|
declare const Badge: react.ForwardRefExoticComponent<{
|
|
133
151
|
/** The background colour. */
|
|
134
152
|
color?: BadgeColor;
|
|
@@ -140,6 +158,9 @@ type BlockquoteProps = {
|
|
|
140
158
|
/** Changes the text colour for readability on a dark background. */
|
|
141
159
|
color?: 'inverse';
|
|
142
160
|
} & PropsWithChildren<BlockquoteHTMLAttributes<HTMLQuoteElement>>;
|
|
161
|
+
/**
|
|
162
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-blockquote--docs Blockquote docs at Amsterdam Design System}
|
|
163
|
+
*/
|
|
143
164
|
declare const Blockquote: react.ForwardRefExoticComponent<{
|
|
144
165
|
/** Changes the text colour for readability on a dark background. */
|
|
145
166
|
color?: "inverse";
|
|
@@ -150,6 +171,9 @@ declare const Blockquote: react.ForwardRefExoticComponent<{
|
|
|
150
171
|
type BreadcrumbLinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
151
172
|
|
|
152
173
|
type BreadcrumbProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
174
|
+
/**
|
|
175
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-breadcrumb--docs Breadcrumb docs at Amsterdam Design System}
|
|
176
|
+
*/
|
|
153
177
|
declare const Breadcrumb: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
154
178
|
children?: react.ReactNode | undefined;
|
|
155
179
|
} & react.RefAttributes<HTMLElement>> & {
|
|
@@ -180,32 +204,40 @@ type GridColumnNumbers = {
|
|
|
180
204
|
medium: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
181
205
|
wide: GridColumnNumber;
|
|
182
206
|
};
|
|
183
|
-
|
|
207
|
+
declare const gridGaps: readonly ["none", "large", "2x-large"];
|
|
208
|
+
type GridGap = (typeof gridGaps)[number];
|
|
209
|
+
declare const gridPaddings: readonly ["large", "x-large", "2x-large"];
|
|
210
|
+
type GridPadding = (typeof gridPaddings)[number];
|
|
184
211
|
declare const gridTags: readonly ["article", "aside", "div", "footer", "header", "main", "nav", "section"];
|
|
185
212
|
type GridTag = (typeof gridTags)[number];
|
|
186
213
|
type GridPaddingVerticalProp = {
|
|
187
214
|
paddingBottom?: never;
|
|
188
215
|
paddingTop?: never;
|
|
189
216
|
/** The amount of space above and below. */
|
|
190
|
-
paddingVertical?:
|
|
217
|
+
paddingVertical?: GridPadding;
|
|
191
218
|
};
|
|
192
219
|
type GridPaddingTopAndBottomProps = {
|
|
193
220
|
/** The amount of space below. */
|
|
194
|
-
paddingBottom?:
|
|
221
|
+
paddingBottom?: GridPadding;
|
|
195
222
|
/** The amount of space above. */
|
|
196
|
-
paddingTop?:
|
|
223
|
+
paddingTop?: GridPadding;
|
|
197
224
|
paddingVertical?: never;
|
|
198
225
|
};
|
|
199
226
|
type GridProps = {
|
|
200
227
|
/** The HTML tag to use. */
|
|
201
228
|
as?: GridTag;
|
|
202
229
|
/** The amount of space between rows. */
|
|
203
|
-
gapVertical?:
|
|
230
|
+
gapVertical?: GridGap;
|
|
204
231
|
} & (GridPaddingVerticalProp | GridPaddingTopAndBottomProps) & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
232
|
+
/**
|
|
233
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-grid--docs Grid docs at Amsterdam Design System}
|
|
234
|
+
*/
|
|
205
235
|
declare const Grid: react.ForwardRefExoticComponent<GridProps & react.RefAttributes<any>> & {
|
|
206
236
|
Cell: react.ForwardRefExoticComponent<GridCellProps & react.RefAttributes<unknown>>;
|
|
207
237
|
};
|
|
208
238
|
|
|
239
|
+
declare const breakoutCellTags: readonly ["article", "div", "section"];
|
|
240
|
+
type BreakoutCellTag = (typeof breakoutCellTags)[number];
|
|
209
241
|
type BreakoutCellSpanAllProp = {
|
|
210
242
|
/** Lets the cell span the full width of all grid variants. */
|
|
211
243
|
colSpan: 'all';
|
|
@@ -230,7 +262,7 @@ type BreakoutCellRowSpanAndStartProps = {
|
|
|
230
262
|
};
|
|
231
263
|
type BreakoutCellProps = {
|
|
232
264
|
/** The HTML element to use. */
|
|
233
|
-
as?:
|
|
265
|
+
as?: BreakoutCellTag;
|
|
234
266
|
} & (BreakoutCellSpanAllProp | BreakoutCellSpanAndStartProps) & BreakoutCellRowSpanAndStartProps & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
235
267
|
|
|
236
268
|
type BreakoutRowNumber = 1 | 2 | 3 | 4;
|
|
@@ -240,11 +272,14 @@ type BreakoutRowNumbers = {
|
|
|
240
272
|
wide: BreakoutRowNumber;
|
|
241
273
|
};
|
|
242
274
|
type BreakoutProps = GridProps;
|
|
275
|
+
/**
|
|
276
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-breakout--docs Breakout docs at Amsterdam Design System}
|
|
277
|
+
*/
|
|
243
278
|
declare const Breakout: react.ForwardRefExoticComponent<GridProps & react.RefAttributes<HTMLDivElement>> & {
|
|
244
279
|
Cell: react.ForwardRefExoticComponent<BreakoutCellProps & react.RefAttributes<any>>;
|
|
245
280
|
};
|
|
246
281
|
|
|
247
|
-
declare const iconSizes:
|
|
282
|
+
declare const iconSizes: readonly ["small", "large", "heading-3", "heading-4", "heading-5", "heading-6"];
|
|
248
283
|
type IconSize = (typeof iconSizes)[number];
|
|
249
284
|
type IconProps = {
|
|
250
285
|
/** Changes the icon colour for readability on a dark background. */
|
|
@@ -256,6 +291,10 @@ type IconProps = {
|
|
|
256
291
|
/** The component rendering the icon’s markup. */
|
|
257
292
|
svg: Function | ReactNode;
|
|
258
293
|
} & HTMLAttributes<HTMLSpanElement>;
|
|
294
|
+
/**
|
|
295
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-icon--docs Icon docs at Amsterdam Design System}
|
|
296
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/brand-assets-icons--docs Icons overview at Amsterdam Design System}
|
|
297
|
+
*/
|
|
259
298
|
declare const Icon: react.ForwardRefExoticComponent<{
|
|
260
299
|
/** Changes the icon colour for readability on a dark background. */
|
|
261
300
|
color?: "inverse";
|
|
@@ -290,17 +329,49 @@ type ButtonProps = {
|
|
|
290
329
|
/** The level of prominence. Use a primary button only once per page or section. */
|
|
291
330
|
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
292
331
|
} & (IconButtonProps$1 | TextButtonProps) & PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
332
|
+
/**
|
|
333
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-buttons-button--docs Button docs at Amsterdam Design System}
|
|
334
|
+
*/
|
|
293
335
|
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
294
336
|
|
|
337
|
+
/**
|
|
338
|
+
* @license EUPL-1.2+
|
|
339
|
+
* Copyright Gemeente Amsterdam
|
|
340
|
+
*/
|
|
341
|
+
declare const aspectRatioOptions: readonly ["9:16", "3:4", "1:1", "4:3", "16:9", "16:5"];
|
|
342
|
+
type AspectRatioProps = {
|
|
343
|
+
/** The aspect ratio to display media content in. */
|
|
344
|
+
aspectRatio?: (typeof aspectRatioOptions)[number];
|
|
345
|
+
};
|
|
346
|
+
declare const crossAlignOptions: readonly ["start", "center", "baseline", "end"];
|
|
347
|
+
type CrossAlign = (typeof crossAlignOptions)[number];
|
|
348
|
+
declare const crossAlignOptionsForColumn: ("center" | "start" | "end")[];
|
|
349
|
+
type CrossAlignForColumn = (typeof crossAlignOptionsForColumn)[number];
|
|
350
|
+
declare const mainAlignOptions: readonly ["center", "end", "between", "around", "evenly"];
|
|
351
|
+
type MainAlign = (typeof mainAlignOptions)[number];
|
|
352
|
+
|
|
295
353
|
type CardProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
354
|
+
/**
|
|
355
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-card--docs Card docs at Amsterdam Design System}
|
|
356
|
+
*/
|
|
296
357
|
declare const Card: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
297
358
|
children?: react.ReactNode | undefined;
|
|
298
359
|
} & react.RefAttributes<HTMLElement>> & {
|
|
360
|
+
Heading: react.ForwardRefExoticComponent<{
|
|
361
|
+
color?: "inverse";
|
|
362
|
+
level: 1 | 2 | 3 | 4;
|
|
363
|
+
size?: "level-1" | "level-2" | "level-3" | "level-4" | "level-5" | "level-6";
|
|
364
|
+
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
365
|
+
children?: react.ReactNode | undefined;
|
|
366
|
+
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
299
367
|
HeadingGroup: react.ForwardRefExoticComponent<{
|
|
300
368
|
tagline: string;
|
|
301
369
|
} & HTMLAttributes<HTMLElement> & {
|
|
302
370
|
children?: react.ReactNode | undefined;
|
|
303
371
|
} & react.RefAttributes<HTMLElement>>;
|
|
372
|
+
Image: react.ForwardRefExoticComponent<{
|
|
373
|
+
alt: string;
|
|
374
|
+
} & AspectRatioProps & Omit<react.ImgHTMLAttributes<HTMLImageElement>, "children"> & react.RefAttributes<HTMLImageElement>>;
|
|
304
375
|
Link: react.ForwardRefExoticComponent<react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
305
376
|
children?: react.ReactNode | undefined;
|
|
306
377
|
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -319,6 +390,9 @@ type CharacterCountProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
319
390
|
/** The maximum length of the field’s value. */
|
|
320
391
|
maxLength: number;
|
|
321
392
|
};
|
|
393
|
+
/**
|
|
394
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-character-count--docs Character Count docs at Amsterdam Design System}
|
|
395
|
+
*/
|
|
322
396
|
declare const CharacterCount: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
323
397
|
/** The current length of the field’s value. */
|
|
324
398
|
length: number;
|
|
@@ -327,35 +401,31 @@ declare const CharacterCount: react.ForwardRefExoticComponent<HTMLAttributes<HTM
|
|
|
327
401
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
328
402
|
|
|
329
403
|
type CheckboxProps = {
|
|
404
|
+
/** An icon to display instead of the default icon. */
|
|
405
|
+
icon?: ReactNode;
|
|
330
406
|
/** Allows being neither checked nor unchecked. */
|
|
331
407
|
indeterminate?: boolean;
|
|
332
408
|
/** Whether the value fails a validation rule. */
|
|
333
409
|
invalid?: boolean;
|
|
334
410
|
} & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>;
|
|
411
|
+
/**
|
|
412
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-checkbox--docs Checkbox docs at Amsterdam Design System}
|
|
413
|
+
*/
|
|
335
414
|
declare const Checkbox: react.ForwardRefExoticComponent<{
|
|
415
|
+
/** An icon to display instead of the default icon. */
|
|
416
|
+
icon?: ReactNode;
|
|
336
417
|
/** Allows being neither checked nor unchecked. */
|
|
337
418
|
indeterminate?: boolean;
|
|
338
419
|
/** Whether the value fails a validation rule. */
|
|
339
420
|
invalid?: boolean;
|
|
340
421
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
341
|
-
children?:
|
|
422
|
+
children?: ReactNode | undefined;
|
|
342
423
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
343
424
|
|
|
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';
|
|
425
|
+
declare const columnTags: readonly ["article", "div", "section"];
|
|
426
|
+
type ColumnTag = (typeof columnTags)[number];
|
|
427
|
+
declare const columnGapSizes: readonly ["none", "x-small", "small", "large", "x-large"];
|
|
428
|
+
type ColumnGap = (typeof columnGapSizes)[number];
|
|
359
429
|
type ColumnProps = {
|
|
360
430
|
/**
|
|
361
431
|
* The vertical alignment of the items in the column.
|
|
@@ -378,6 +448,9 @@ type ColumnProps = {
|
|
|
378
448
|
*/
|
|
379
449
|
gap?: ColumnGap;
|
|
380
450
|
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
451
|
+
/**
|
|
452
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-column--docs Column docs at Amsterdam Design System}
|
|
453
|
+
*/
|
|
381
454
|
declare const Column: react.ForwardRefExoticComponent<{
|
|
382
455
|
/**
|
|
383
456
|
* The vertical alignment of the items in the column.
|
|
@@ -411,6 +484,9 @@ type DateInputProps = {
|
|
|
411
484
|
/** The kind of data that the user should provide. */
|
|
412
485
|
type?: DateInputType;
|
|
413
486
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>;
|
|
487
|
+
/**
|
|
488
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-date-input--docs Date Input docs at Amsterdam Design System}
|
|
489
|
+
*/
|
|
414
490
|
declare const DateInput: react.ForwardRefExoticComponent<{
|
|
415
491
|
/** Whether the value fails a validation rule. */
|
|
416
492
|
invalid?: boolean;
|
|
@@ -425,6 +501,9 @@ type DescriptionListProps = {
|
|
|
425
501
|
color?: 'inverse';
|
|
426
502
|
termsWidth?: DescriptionListTermsWidth;
|
|
427
503
|
} & PropsWithChildren<HTMLAttributes<HTMLDListElement>>;
|
|
504
|
+
/**
|
|
505
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-description-list--docs Description List docs at Amsterdam Design System}
|
|
506
|
+
*/
|
|
428
507
|
declare const DescriptionList: react.ForwardRefExoticComponent<{
|
|
429
508
|
/** Changes the text colour for readability on a dark background. */
|
|
430
509
|
color?: "inverse";
|
|
@@ -455,6 +534,9 @@ type DialogProps = {
|
|
|
455
534
|
/** The text for the Heading. */
|
|
456
535
|
heading: string;
|
|
457
536
|
} & PropsWithChildren<DialogHTMLAttributes<HTMLDialogElement>>;
|
|
537
|
+
/**
|
|
538
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-dialog--docs Dialog docs at Amsterdam Design System}
|
|
539
|
+
*/
|
|
458
540
|
declare const Dialog: react.ForwardRefExoticComponent<{
|
|
459
541
|
/** The label for the button that dismisses the Dialog. */
|
|
460
542
|
closeButtonLabel?: string;
|
|
@@ -475,6 +557,9 @@ type ErrorMessageProps = {
|
|
|
475
557
|
/** An accessible phrase that screen readers announce before the error message. Should translate to something like ‘input error’. */
|
|
476
558
|
prefix?: string;
|
|
477
559
|
} & PropsWithChildren<HTMLAttributes<HTMLParagraphElement>>;
|
|
560
|
+
/**
|
|
561
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-error-message--docs Error Message docs at Amsterdam Design System}
|
|
562
|
+
*/
|
|
478
563
|
declare const ErrorMessage: react.ForwardRefExoticComponent<{
|
|
479
564
|
/** An icon to display instead of the default icon. */
|
|
480
565
|
icon?: Function;
|
|
@@ -488,6 +573,9 @@ type FieldProps = {
|
|
|
488
573
|
/** Whether the field has an input with a validation error */
|
|
489
574
|
invalid?: boolean;
|
|
490
575
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
576
|
+
/**
|
|
577
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-field--docs Field docs at Amsterdam Design System}
|
|
578
|
+
*/
|
|
491
579
|
declare const Field: react.ForwardRefExoticComponent<{
|
|
492
580
|
/** Whether the field has an input with a validation error */
|
|
493
581
|
invalid?: boolean;
|
|
@@ -512,6 +600,9 @@ type FieldSetProps = PropsWithChildren<HTMLAttributes<HTMLFieldSetElement>> & {
|
|
|
512
600
|
/** The text for the caption. */
|
|
513
601
|
legend: string;
|
|
514
602
|
} & HintProps;
|
|
603
|
+
/**
|
|
604
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-field-set--docs Field Set docs at Amsterdam Design System}
|
|
605
|
+
*/
|
|
515
606
|
declare const FieldSet: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFieldSetElement> & {
|
|
516
607
|
children?: react.ReactNode | undefined;
|
|
517
608
|
} & {
|
|
@@ -525,6 +616,9 @@ declare const FieldSet: react.ForwardRefExoticComponent<HTMLAttributes<HTMLField
|
|
|
525
616
|
} & react.RefAttributes<HTMLFieldSetElement>>;
|
|
526
617
|
|
|
527
618
|
type FigureProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
619
|
+
/**
|
|
620
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-figure--docs Figure docs at Amsterdam Design System}
|
|
621
|
+
*/
|
|
528
622
|
declare const Figure: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
529
623
|
children?: react.ReactNode | undefined;
|
|
530
624
|
} & react.RefAttributes<HTMLElement>> & {
|
|
@@ -536,9 +630,15 @@ declare const Figure: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement
|
|
|
536
630
|
};
|
|
537
631
|
|
|
538
632
|
type FileInputProps = InputHTMLAttributes<HTMLInputElement>;
|
|
633
|
+
/**
|
|
634
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-file-input--docs File Input docs at Amsterdam Design System}
|
|
635
|
+
*/
|
|
539
636
|
declare const FileInput: react.ForwardRefExoticComponent<FileInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
540
637
|
|
|
541
638
|
type FileListProps = {} & PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
639
|
+
/**
|
|
640
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-file-list--docs File List docs at Amsterdam Design System}
|
|
641
|
+
*/
|
|
542
642
|
declare const FileList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
|
|
543
643
|
children?: react.ReactNode | undefined;
|
|
544
644
|
} & react.RefAttributes<HTMLOListElement>> & {
|
|
@@ -548,121 +648,46 @@ declare const FileList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUList
|
|
|
548
648
|
} & HTMLAttributes<HTMLLIElement> & react.RefAttributes<HTMLLIElement>>;
|
|
549
649
|
};
|
|
550
650
|
|
|
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
651
|
type IconButtonProps = {
|
|
633
652
|
/** Changes the text colour for readability on a light or dark background. */
|
|
634
653
|
color?: 'contrast' | 'inverse';
|
|
635
654
|
/** The accessible text for the button. Will be announced by screen readers. Should describe the button’s action. */
|
|
636
655
|
label: string;
|
|
637
|
-
/** The size of the icon. */
|
|
656
|
+
/** The size of the icon. Match it to the text that the Icon Buttons aligns with. */
|
|
638
657
|
size?: IconProps['size'];
|
|
639
658
|
/** The component rendering the icon’s markup. */
|
|
640
659
|
svg?: IconProps['svg'];
|
|
641
660
|
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
661
|
+
/**
|
|
662
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-buttons-icon-button--docs Icon Button docs at Amsterdam Design System}
|
|
663
|
+
*/
|
|
642
664
|
declare const IconButton: react.ForwardRefExoticComponent<{
|
|
643
665
|
/** Changes the text colour for readability on a light or dark background. */
|
|
644
666
|
color?: "contrast" | "inverse";
|
|
645
667
|
/** The accessible text for the button. Will be announced by screen readers. Should describe the button’s action. */
|
|
646
668
|
label: string;
|
|
647
|
-
/** The size of the icon. */
|
|
669
|
+
/** The size of the icon. Match it to the text that the Icon Buttons aligns with. */
|
|
648
670
|
size?: IconProps["size"];
|
|
649
671
|
/** The component rendering the icon’s markup. */
|
|
650
672
|
svg?: IconProps["svg"];
|
|
651
673
|
} & ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
652
674
|
|
|
653
675
|
type ImageProps = {
|
|
654
|
-
/**
|
|
655
|
-
* A textual description of the content of the image.
|
|
656
|
-
*/
|
|
676
|
+
/** A textual description of the content of the image. */
|
|
657
677
|
alt: string;
|
|
658
|
-
} & AspectRatioProps & ImgHTMLAttributes<HTMLImageElement>;
|
|
678
|
+
} & AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, 'children'>;
|
|
679
|
+
/**
|
|
680
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-image--docs Image docs at Amsterdam Design System}
|
|
681
|
+
*/
|
|
659
682
|
declare const Image: react.ForwardRefExoticComponent<{
|
|
660
|
-
/**
|
|
661
|
-
* A textual description of the content of the image.
|
|
662
|
-
*/
|
|
683
|
+
/** A textual description of the content of the image. */
|
|
663
684
|
alt: string;
|
|
664
|
-
} & AspectRatioProps & ImgHTMLAttributes<HTMLImageElement> & react.RefAttributes<HTMLImageElement>>;
|
|
685
|
+
} & AspectRatioProps & Omit<ImgHTMLAttributes<HTMLImageElement>, "children"> & react.RefAttributes<HTMLImageElement>>;
|
|
665
686
|
|
|
687
|
+
/**
|
|
688
|
+
* @license EUPL-1.2+
|
|
689
|
+
* Copyright Gemeente Amsterdam
|
|
690
|
+
*/
|
|
666
691
|
declare const generateAspectRatioClass: (aspectRatio?: string) => string | undefined;
|
|
667
692
|
|
|
668
693
|
type ImageSliderImageProps = ImageProps;
|
|
@@ -678,6 +703,9 @@ type ImageSliderProps = {
|
|
|
678
703
|
/** The label for the ‘previous’ button */
|
|
679
704
|
previousLabel?: string;
|
|
680
705
|
} & HTMLAttributes<HTMLDivElement>;
|
|
706
|
+
/**
|
|
707
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-image-slider--docs Image Slider docs at Amsterdam Design System}
|
|
708
|
+
*/
|
|
681
709
|
declare const ImageSlider: react.ForwardRefExoticComponent<{
|
|
682
710
|
/** Display buttons to navigate to the previous or next image. */
|
|
683
711
|
controls?: boolean;
|
|
@@ -735,6 +763,9 @@ type InvalidFormAlertProps = {
|
|
|
735
763
|
**/
|
|
736
764
|
headingLevel: HeadingProps['level'];
|
|
737
765
|
} & HTMLAttributes<HTMLDivElement>;
|
|
766
|
+
/**
|
|
767
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-invalid-form-alert--docs Invalid Form Alert docs at Amsterdam Design System}
|
|
768
|
+
*/
|
|
738
769
|
declare const InvalidFormAlert: react.ForwardRefExoticComponent<{
|
|
739
770
|
/**
|
|
740
771
|
* The text following the error count.
|
|
@@ -765,6 +796,9 @@ declare const InvalidFormAlert: react.ForwardRefExoticComponent<{
|
|
|
765
796
|
headingLevel: HeadingProps["level"];
|
|
766
797
|
} & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
767
798
|
|
|
799
|
+
/**
|
|
800
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-label--docs Label docs at Amsterdam Design System}
|
|
801
|
+
*/
|
|
768
802
|
declare const Label: react.ForwardRefExoticComponent<LabelHTMLAttributes<HTMLLabelElement> & {
|
|
769
803
|
children?: react.ReactNode | undefined;
|
|
770
804
|
} & react.HTMLAttributes<HTMLElement> & {
|
|
@@ -772,21 +806,22 @@ declare const Label: react.ForwardRefExoticComponent<LabelHTMLAttributes<HTMLLab
|
|
|
772
806
|
optional?: boolean;
|
|
773
807
|
} & react.RefAttributes<HTMLLabelElement>>;
|
|
774
808
|
|
|
775
|
-
type LinkVariant = 'standalone' | 'inline';
|
|
776
809
|
type LinkProps = {
|
|
777
810
|
/** Changes the text colour for readability on a light or dark background. */
|
|
778
811
|
color?: 'contrast' | 'inverse';
|
|
779
|
-
/** Whether the link is inline or stands alone. */
|
|
780
|
-
variant?: LinkVariant;
|
|
781
812
|
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'>;
|
|
813
|
+
/**
|
|
814
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-link--docs Link docs at Amsterdam Design System}
|
|
815
|
+
*/
|
|
782
816
|
declare const Link: react.ForwardRefExoticComponent<{
|
|
783
817
|
/** Changes the text colour for readability on a light or dark background. */
|
|
784
818
|
color?: "contrast" | "inverse";
|
|
785
|
-
/** Whether the link is inline or stands alone. */
|
|
786
|
-
variant?: LinkVariant;
|
|
787
819
|
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
788
820
|
|
|
789
821
|
type LinkListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
822
|
+
/**
|
|
823
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-link-list--docs Link List docs at Amsterdam Design System}
|
|
824
|
+
*/
|
|
790
825
|
declare const LinkList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
|
|
791
826
|
children?: react.ReactNode | undefined;
|
|
792
827
|
} & react.RefAttributes<HTMLUListElement>> & {
|
|
@@ -808,23 +843,29 @@ type LinkListLinkProps = {
|
|
|
808
843
|
size?: 'small' | 'large';
|
|
809
844
|
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
810
845
|
|
|
846
|
+
/**
|
|
847
|
+
* @license EUPL-1.2+
|
|
848
|
+
* Copyright Gemeente Amsterdam
|
|
849
|
+
*/
|
|
850
|
+
|
|
851
|
+
type LogoBrand = 'amsterdam' | 'ggd-amsterdam' | 'museum-weesp' | 'stadsarchief' | 'stadsbank-van-lening' | 'vga-verzekeringen';
|
|
852
|
+
type LogoProps = {
|
|
853
|
+
/** The name of the brand for which to display the logo. */
|
|
854
|
+
brand?: LogoBrand;
|
|
855
|
+
} & SVGProps<SVGSVGElement>;
|
|
856
|
+
/**
|
|
857
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-media-logo--docs Logo docs at Amsterdam Design System}
|
|
858
|
+
*/
|
|
859
|
+
declare const Logo: ForwardRefExoticComponent<Omit<LogoProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
860
|
+
|
|
811
861
|
type MarkProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
862
|
+
/**
|
|
863
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-mark--docs Mark docs at Amsterdam Design System}
|
|
864
|
+
*/
|
|
812
865
|
declare const Mark: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
813
866
|
children?: react.ReactNode | undefined;
|
|
814
867
|
} & react.RefAttributes<HTMLElement>>;
|
|
815
868
|
|
|
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
869
|
type OrderedListProps = {
|
|
829
870
|
/** Changes the text colour for readability on a dark background. */
|
|
830
871
|
color?: 'inverse';
|
|
@@ -833,6 +874,9 @@ type OrderedListProps = {
|
|
|
833
874
|
/** The size of the text. */
|
|
834
875
|
size?: 'small';
|
|
835
876
|
} & PropsWithChildren<OlHTMLAttributes<HTMLOListElement>>;
|
|
877
|
+
/**
|
|
878
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-ordered-list--docs Ordered List docs at Amsterdam Design System}
|
|
879
|
+
*/
|
|
836
880
|
declare const OrderedList: react.ForwardRefExoticComponent<{
|
|
837
881
|
/** Changes the text colour for readability on a dark background. */
|
|
838
882
|
color?: "inverse";
|
|
@@ -851,14 +895,107 @@ declare const OrderedList: react.ForwardRefExoticComponent<{
|
|
|
851
895
|
type OrderedListItemProps = PropsWithChildren<LiHTMLAttributes<HTMLLIElement>>;
|
|
852
896
|
|
|
853
897
|
type OverlapProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
898
|
+
/**
|
|
899
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-overlap--docs Overlap docs at Amsterdam Design System}
|
|
900
|
+
*/
|
|
854
901
|
declare const Overlap: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
855
902
|
children?: react.ReactNode | undefined;
|
|
856
903
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
857
904
|
|
|
905
|
+
type PageProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
906
|
+
/**
|
|
907
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-page--docs Page docs at Amsterdam Design System}
|
|
908
|
+
*/
|
|
909
|
+
declare const Page: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
910
|
+
children?: react.ReactNode | undefined;
|
|
911
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
912
|
+
|
|
913
|
+
type PageFooterProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
914
|
+
/**
|
|
915
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-page-footer--docs Page Footer docs at Amsterdam Design System}
|
|
916
|
+
*/
|
|
917
|
+
declare const PageFooter: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
918
|
+
children?: react.ReactNode | undefined;
|
|
919
|
+
} & react.RefAttributes<HTMLElement>> & {
|
|
920
|
+
Menu: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
|
|
921
|
+
children?: react.ReactNode | undefined;
|
|
922
|
+
} & react.RefAttributes<HTMLUListElement>>;
|
|
923
|
+
MenuLink: react.ForwardRefExoticComponent<react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
924
|
+
children?: react.ReactNode | undefined;
|
|
925
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
926
|
+
Spotlight: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
927
|
+
children?: react.ReactNode | undefined;
|
|
928
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
929
|
+
};
|
|
930
|
+
|
|
931
|
+
type PageFooterMenuProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
932
|
+
|
|
933
|
+
type PageFooterMenuLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
934
|
+
|
|
935
|
+
type PageFooterSpotlightProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
936
|
+
|
|
937
|
+
type PageHeaderProps = {
|
|
938
|
+
/** The name of the application. */
|
|
939
|
+
brandName?: string;
|
|
940
|
+
/** The name of the brand for which to display the logo. */
|
|
941
|
+
logoBrand?: LogoBrand;
|
|
942
|
+
/** The url for the link on the logo. */
|
|
943
|
+
logoLink?: string;
|
|
944
|
+
/** The React component to use for the logo link. */
|
|
945
|
+
logoLinkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
946
|
+
/** The accessible text for the link on the logo. */
|
|
947
|
+
logoLinkTitle?: string;
|
|
948
|
+
/** The text for the menu button. */
|
|
949
|
+
menuButtonText?: string;
|
|
950
|
+
/** A slot for the menu items. Use PageHeader.MenuLink here. */
|
|
951
|
+
menuItems?: ReactNode;
|
|
952
|
+
/** The accessible label for the navigation section. */
|
|
953
|
+
navigationLabel?: string;
|
|
954
|
+
/** Whether the menu button is visible on wide screens. */
|
|
955
|
+
noMenuButtonOnWideWindow?: boolean;
|
|
956
|
+
} & HTMLAttributes<HTMLElement>;
|
|
957
|
+
/**
|
|
958
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-page-header--docs Page Header docs at Amsterdam Design System}
|
|
959
|
+
*/
|
|
960
|
+
declare const PageHeader: react.ForwardRefExoticComponent<{
|
|
961
|
+
/** The name of the application. */
|
|
962
|
+
brandName?: string;
|
|
963
|
+
/** The name of the brand for which to display the logo. */
|
|
964
|
+
logoBrand?: LogoBrand;
|
|
965
|
+
/** The url for the link on the logo. */
|
|
966
|
+
logoLink?: string;
|
|
967
|
+
/** The React component to use for the logo link. */
|
|
968
|
+
logoLinkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
969
|
+
/** The accessible text for the link on the logo. */
|
|
970
|
+
logoLinkTitle?: string;
|
|
971
|
+
/** The text for the menu button. */
|
|
972
|
+
menuButtonText?: string;
|
|
973
|
+
/** A slot for the menu items. Use PageHeader.MenuLink here. */
|
|
974
|
+
menuItems?: ReactNode;
|
|
975
|
+
/** The accessible label for the navigation section. */
|
|
976
|
+
navigationLabel?: string;
|
|
977
|
+
/** Whether the menu button is visible on wide screens. */
|
|
978
|
+
noMenuButtonOnWideWindow?: boolean;
|
|
979
|
+
} & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>> & {
|
|
980
|
+
GridCellNarrowWindowOnly: react.ForwardRefExoticComponent<GridCellProps & react.RefAttributes<HTMLElement>>;
|
|
981
|
+
MenuLink: react.ForwardRefExoticComponent<{
|
|
982
|
+
fixed?: boolean;
|
|
983
|
+
} & AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
984
|
+
children?: ReactNode | undefined;
|
|
985
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
986
|
+
};
|
|
987
|
+
|
|
988
|
+
type PageHeaderMenuLinkProps = {
|
|
989
|
+
fixed?: boolean;
|
|
990
|
+
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
991
|
+
|
|
858
992
|
type PageHeadingProps = {
|
|
859
993
|
/** Changes the text colour for readability on a dark background. */
|
|
860
994
|
color?: 'inverse';
|
|
861
995
|
} & PropsWithChildren<HTMLAttributes<HTMLHeadingElement>>;
|
|
996
|
+
/**
|
|
997
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-page-heading--docs Page Heading docs at Amsterdam Design System}
|
|
998
|
+
*/
|
|
862
999
|
declare const PageHeading: react.ForwardRefExoticComponent<{
|
|
863
1000
|
/** Changes the text colour for readability on a dark background. */
|
|
864
1001
|
color?: "inverse";
|
|
@@ -866,31 +1003,6 @@ declare const PageHeading: react.ForwardRefExoticComponent<{
|
|
|
866
1003
|
children?: react.ReactNode | undefined;
|
|
867
1004
|
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
868
1005
|
|
|
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
1006
|
type PaginationProps = {
|
|
895
1007
|
/** The React component to use for the links. */
|
|
896
1008
|
linkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
@@ -918,6 +1030,9 @@ type PaginationProps = {
|
|
|
918
1030
|
*/
|
|
919
1031
|
visuallyHiddenLabelId?: string;
|
|
920
1032
|
} & HTMLAttributes<HTMLElement>;
|
|
1033
|
+
/**
|
|
1034
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-pagination--docs Pagination docs at Amsterdam Design System}
|
|
1035
|
+
*/
|
|
921
1036
|
declare const Pagination: react.ForwardRefExoticComponent<{
|
|
922
1037
|
/** The React component to use for the links. */
|
|
923
1038
|
linkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
@@ -952,6 +1067,9 @@ type ParagraphProps = {
|
|
|
952
1067
|
/** The size of the text. */
|
|
953
1068
|
size?: 'small' | 'large';
|
|
954
1069
|
} & PropsWithChildren<HTMLAttributes<HTMLParagraphElement>>;
|
|
1070
|
+
/**
|
|
1071
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-paragraph--docs Paragraph docs at Amsterdam Design System}
|
|
1072
|
+
*/
|
|
955
1073
|
declare const Paragraph: react.ForwardRefExoticComponent<{
|
|
956
1074
|
/** Changes the text colour for readability on a dark background. */
|
|
957
1075
|
color?: "inverse";
|
|
@@ -965,6 +1083,9 @@ type PasswordInputProps = {
|
|
|
965
1083
|
/** Whether the value fails a validation rule. */
|
|
966
1084
|
invalid?: boolean;
|
|
967
1085
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'autoCapitalize' | 'autoCorrect' | 'spellCheck' | 'type'>;
|
|
1086
|
+
/**
|
|
1087
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-password-input--docs Password Input docs at Amsterdam Design System}
|
|
1088
|
+
*/
|
|
968
1089
|
declare const PasswordInput: react.ForwardRefExoticComponent<{
|
|
969
1090
|
/** Whether the value fails a validation rule. */
|
|
970
1091
|
invalid?: boolean;
|
|
@@ -976,6 +1097,9 @@ type RadioProps = {
|
|
|
976
1097
|
/** Whether the value fails a validation rule. */
|
|
977
1098
|
invalid?: boolean;
|
|
978
1099
|
} & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>;
|
|
1100
|
+
/**
|
|
1101
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-radio--docs Radio docs at Amsterdam Design System}
|
|
1102
|
+
*/
|
|
979
1103
|
declare const Radio: react.ForwardRefExoticComponent<{
|
|
980
1104
|
/** An icon to display instead of the default icon. */
|
|
981
1105
|
icon?: ReactNode;
|
|
@@ -985,9 +1109,10 @@ declare const Radio: react.ForwardRefExoticComponent<{
|
|
|
985
1109
|
children?: ReactNode | undefined;
|
|
986
1110
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
987
1111
|
|
|
988
|
-
declare const
|
|
989
|
-
type
|
|
990
|
-
|
|
1112
|
+
declare const rowTags: readonly ["article", "div", "section"];
|
|
1113
|
+
type RowTag = (typeof rowTags)[number];
|
|
1114
|
+
declare const rowGapSizes: readonly ["none", "x-small", "small", "large", "x-large"];
|
|
1115
|
+
type RowGap = (typeof rowGapSizes)[number];
|
|
991
1116
|
type RowProps = {
|
|
992
1117
|
/**
|
|
993
1118
|
* The horizontal alignment of the items in the row.
|
|
@@ -1015,6 +1140,9 @@ type RowProps = {
|
|
|
1015
1140
|
*/
|
|
1016
1141
|
wrap?: boolean;
|
|
1017
1142
|
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
1143
|
+
/**
|
|
1144
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-layout-row--docs Row docs at Amsterdam Design System}
|
|
1145
|
+
*/
|
|
1018
1146
|
declare const Row: react.ForwardRefExoticComponent<{
|
|
1019
1147
|
/**
|
|
1020
1148
|
* The horizontal alignment of the items in the row.
|
|
@@ -1045,23 +1173,10 @@ declare const Row: react.ForwardRefExoticComponent<{
|
|
|
1045
1173
|
children?: react.ReactNode | undefined;
|
|
1046
1174
|
} & react.RefAttributes<unknown>>;
|
|
1047
1175
|
|
|
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
1176
|
type SearchFieldProps = PropsWithChildren<HTMLAttributes<HTMLFormElement>>;
|
|
1177
|
+
/**
|
|
1178
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-search-field--docs Search Field docs at Amsterdam Design System}
|
|
1179
|
+
*/
|
|
1065
1180
|
declare const SearchField: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFormElement> & {
|
|
1066
1181
|
children?: react.ReactNode | undefined;
|
|
1067
1182
|
} & react.RefAttributes<HTMLFormElement>> & {
|
|
@@ -1116,6 +1231,8 @@ declare const SearchField: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFo
|
|
|
1116
1231
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
1117
1232
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
1118
1233
|
is?: string | undefined | undefined;
|
|
1234
|
+
exportparts?: string | undefined | undefined;
|
|
1235
|
+
part?: string | undefined | undefined;
|
|
1119
1236
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
1120
1237
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
1121
1238
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -1357,6 +1474,9 @@ type SelectProps = {
|
|
|
1357
1474
|
/** Whether the value fails a validation rule. */
|
|
1358
1475
|
invalid?: boolean;
|
|
1359
1476
|
} & PropsWithChildren<Omit<SelectHTMLAttributes<HTMLSelectElement>, 'aria-invalid'>>;
|
|
1477
|
+
/**
|
|
1478
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-select--docs Select docs at Amsterdam Design System}
|
|
1479
|
+
*/
|
|
1360
1480
|
declare const Select: react.ForwardRefExoticComponent<{
|
|
1361
1481
|
/** Whether the value fails a validation rule. */
|
|
1362
1482
|
invalid?: boolean;
|
|
@@ -1372,33 +1492,63 @@ declare const Select: react.ForwardRefExoticComponent<{
|
|
|
1372
1492
|
};
|
|
1373
1493
|
|
|
1374
1494
|
type SkipLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
1495
|
+
/**
|
|
1496
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-skip-link--docs Skip Link docs at Amsterdam Design System}
|
|
1497
|
+
*/
|
|
1375
1498
|
declare const SkipLink: react.ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1376
1499
|
children?: react.ReactNode | undefined;
|
|
1377
1500
|
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
1378
1501
|
|
|
1502
|
+
declare const spotlightTags: readonly ["article", "aside", "div", "footer", "section"];
|
|
1503
|
+
type SpotlightTag = (typeof spotlightTags)[number];
|
|
1379
1504
|
declare const spotlightColors: readonly ["azure", "green", "lime", "magenta", "orange", "yellow"];
|
|
1380
1505
|
type SpotlightColor = (typeof spotlightColors)[number];
|
|
1381
1506
|
type SpotlightProps = {
|
|
1382
1507
|
/** The HTML element to use. */
|
|
1383
|
-
as?:
|
|
1508
|
+
as?: SpotlightTag;
|
|
1384
1509
|
/** The background colour. */
|
|
1385
1510
|
color?: SpotlightColor;
|
|
1386
1511
|
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
1512
|
+
/**
|
|
1513
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-spotlight--docs Spotlight docs at Amsterdam Design System}
|
|
1514
|
+
*/
|
|
1387
1515
|
declare const Spotlight: react.ForwardRefExoticComponent<{
|
|
1388
1516
|
/** The HTML element to use. */
|
|
1389
|
-
as?:
|
|
1517
|
+
as?: SpotlightTag;
|
|
1390
1518
|
/** The background colour. */
|
|
1391
1519
|
color?: SpotlightColor;
|
|
1392
1520
|
} & HTMLAttributes<HTMLElement> & {
|
|
1393
1521
|
children?: react.ReactNode | undefined;
|
|
1394
1522
|
} & react.RefAttributes<unknown>>;
|
|
1395
1523
|
|
|
1524
|
+
type StandaloneLinkProps = {
|
|
1525
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
1526
|
+
color?: 'contrast' | 'inverse';
|
|
1527
|
+
/** Adds an icon to the link, showing it before the link text. */
|
|
1528
|
+
icon?: Function;
|
|
1529
|
+
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'>;
|
|
1530
|
+
/**
|
|
1531
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-standalone-link--docs Standalone Link docs at Amsterdam Design System}
|
|
1532
|
+
*/
|
|
1533
|
+
declare const StandaloneLink: react.ForwardRefExoticComponent<{
|
|
1534
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
1535
|
+
color?: "contrast" | "inverse";
|
|
1536
|
+
/** Adds an icon to the link, showing it before the link text. */
|
|
1537
|
+
icon?: Function;
|
|
1538
|
+
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
1539
|
+
|
|
1396
1540
|
type SwitchProps = PropsWithChildren<InputHTMLAttributes<HTMLInputElement>>;
|
|
1541
|
+
/**
|
|
1542
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-switch--docs Switch docs at Amsterdam Design System}
|
|
1543
|
+
*/
|
|
1397
1544
|
declare const Switch: react.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
|
|
1398
1545
|
children?: react.ReactNode | undefined;
|
|
1399
1546
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
1400
1547
|
|
|
1401
1548
|
type TableProps = PropsWithChildren<TableHTMLAttributes<HTMLTableElement>>;
|
|
1549
|
+
/**
|
|
1550
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-table--docs Table docs at Amsterdam Design System}
|
|
1551
|
+
*/
|
|
1402
1552
|
declare const Table: react.ForwardRefExoticComponent<TableHTMLAttributes<HTMLTableElement> & {
|
|
1403
1553
|
children?: react.ReactNode | undefined;
|
|
1404
1554
|
} & react.RefAttributes<HTMLTableElement>> & {
|
|
@@ -1434,6 +1584,9 @@ type TableOfContentsProps = {
|
|
|
1434
1584
|
*/
|
|
1435
1585
|
headingLevel?: HeadingProps['level'];
|
|
1436
1586
|
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
1587
|
+
/**
|
|
1588
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-table-of-contents--docs Table Of Contents docs at Amsterdam Design System}
|
|
1589
|
+
*/
|
|
1437
1590
|
declare const TableOfContents: react.ForwardRefExoticComponent<{
|
|
1438
1591
|
/** The text for the Heading. */
|
|
1439
1592
|
heading?: string;
|
|
@@ -1461,19 +1614,22 @@ type TableOfContentsLinkProps = {
|
|
|
1461
1614
|
type TableOfContentsListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
1462
1615
|
|
|
1463
1616
|
type TabsProps = {
|
|
1464
|
-
/** The identifier of the initially active
|
|
1617
|
+
/** The identifier of the initially active Tab. Corresponds to its Panel `id` value. */
|
|
1465
1618
|
activeTab?: string;
|
|
1466
|
-
onTabChange?: (
|
|
1619
|
+
onTabChange?: (panelId: string) => void;
|
|
1467
1620
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1621
|
+
/**
|
|
1622
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-tabs--docs Tabs docs at Amsterdam Design System}
|
|
1623
|
+
*/
|
|
1468
1624
|
declare const Tabs: react.ForwardRefExoticComponent<{
|
|
1469
|
-
/** The identifier of the initially active
|
|
1625
|
+
/** The identifier of the initially active Tab. Corresponds to its Panel `id` value. */
|
|
1470
1626
|
activeTab?: string;
|
|
1471
|
-
onTabChange?: (
|
|
1627
|
+
onTabChange?: (panelId: string) => void;
|
|
1472
1628
|
} & HTMLAttributes<HTMLDivElement> & {
|
|
1473
1629
|
children?: react.ReactNode | undefined;
|
|
1474
1630
|
} & react.RefAttributes<HTMLDivElement>> & {
|
|
1475
1631
|
Button: react.ForwardRefExoticComponent<{
|
|
1476
|
-
|
|
1632
|
+
'aria-controls': string;
|
|
1477
1633
|
} & react.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1478
1634
|
children?: react.ReactNode | undefined;
|
|
1479
1635
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1481,22 +1637,22 @@ declare const Tabs: react.ForwardRefExoticComponent<{
|
|
|
1481
1637
|
children?: react.ReactNode | undefined;
|
|
1482
1638
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1483
1639
|
Panel: react.ForwardRefExoticComponent<{
|
|
1484
|
-
|
|
1640
|
+
id: string;
|
|
1485
1641
|
} & HTMLAttributes<HTMLDivElement> & {
|
|
1486
1642
|
children?: react.ReactNode | undefined;
|
|
1487
1643
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1488
1644
|
};
|
|
1489
1645
|
|
|
1490
1646
|
type TabsPanelProps = {
|
|
1491
|
-
/** The identifier of the
|
|
1492
|
-
|
|
1647
|
+
/** The identifier of the Tab Panel. */
|
|
1648
|
+
id: string;
|
|
1493
1649
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1494
1650
|
|
|
1495
1651
|
type TabsListProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1496
1652
|
|
|
1497
1653
|
type TabsButtonProps = {
|
|
1498
|
-
/**
|
|
1499
|
-
|
|
1654
|
+
/** The identifier of the corresponding tab panel. */
|
|
1655
|
+
'aria-controls': string;
|
|
1500
1656
|
} & PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
1501
1657
|
|
|
1502
1658
|
type TextAreaProps = {
|
|
@@ -1505,6 +1661,9 @@ type TextAreaProps = {
|
|
|
1505
1661
|
/** Allows the user to resize the text box. The default is resizing in both directions. */
|
|
1506
1662
|
resize?: 'none' | 'horizontal' | 'vertical';
|
|
1507
1663
|
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'aria-invalid'>;
|
|
1664
|
+
/**
|
|
1665
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-text-area--docs Text Area docs at Amsterdam Design System}
|
|
1666
|
+
*/
|
|
1508
1667
|
declare const TextArea: react.ForwardRefExoticComponent<{
|
|
1509
1668
|
/** Whether the value fails a validation rule. */
|
|
1510
1669
|
invalid?: boolean;
|
|
@@ -1520,6 +1679,9 @@ type TextInputProps = {
|
|
|
1520
1679
|
/** The kind of data that the user should provide. */
|
|
1521
1680
|
type?: TextInputType;
|
|
1522
1681
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid'>;
|
|
1682
|
+
/**
|
|
1683
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-text-input--docs Text Input docs at Amsterdam Design System}
|
|
1684
|
+
*/
|
|
1523
1685
|
declare const TextInput: react.ForwardRefExoticComponent<{
|
|
1524
1686
|
/** Whether the value fails a validation rule. */
|
|
1525
1687
|
invalid?: boolean;
|
|
@@ -1531,18 +1693,14 @@ type TimeInputProps = {
|
|
|
1531
1693
|
/** Whether the value fails a validation rule. */
|
|
1532
1694
|
invalid?: boolean;
|
|
1533
1695
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>;
|
|
1696
|
+
/**
|
|
1697
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-time-input--docs Time Input docs at Amsterdam Design System}
|
|
1698
|
+
*/
|
|
1534
1699
|
declare const TimeInput: react.ForwardRefExoticComponent<{
|
|
1535
1700
|
/** Whether the value fails a validation rule. */
|
|
1536
1701
|
invalid?: boolean;
|
|
1537
1702
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
1538
1703
|
|
|
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
1704
|
type UnorderedListProps = {
|
|
1547
1705
|
/** Changes the text colour for readability on a dark background. */
|
|
1548
1706
|
color?: 'inverse';
|
|
@@ -1551,6 +1709,9 @@ type UnorderedListProps = {
|
|
|
1551
1709
|
/** The size of the text. */
|
|
1552
1710
|
size?: 'small';
|
|
1553
1711
|
} & PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
1712
|
+
/**
|
|
1713
|
+
* @see {@link https://designsystem.amsterdam/?path=/docs/components-text-unordered-list--docs Unordered List docs at Amsterdam Design System}
|
|
1714
|
+
*/
|
|
1554
1715
|
declare const UnorderedList: react.ForwardRefExoticComponent<{
|
|
1555
1716
|
/** Changes the text colour for readability on a dark background. */
|
|
1556
1717
|
color?: "inverse";
|
|
@@ -1568,5 +1729,5 @@ declare const UnorderedList: react.ForwardRefExoticComponent<{
|
|
|
1568
1729
|
|
|
1569
1730
|
type UnorderedListItemProps = PropsWithChildren<LiHTMLAttributes<HTMLLIElement>>;
|
|
1570
1731
|
|
|
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,
|
|
1732
|
+
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 };
|
|
1733
|
+
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 };
|