@amsterdam/design-system-react 0.14.0 → 0.15.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/dist/Accordion/Accordion.d.ts +35 -0
- package/dist/Accordion/Accordion.js +19 -0
- package/dist/Accordion/Accordion.test.d.ts +1 -0
- package/dist/Accordion/Accordion.test.js +24 -0
- package/dist/Accordion/AccordionContext.d.ts +12 -0
- package/dist/Accordion/AccordionContext.js +11 -0
- package/dist/Accordion/AccordionSection.d.ts +19 -0
- package/dist/Accordion/AccordionSection.js +22 -0
- package/dist/Accordion/AccordionSection.test.d.ts +1 -0
- package/dist/Accordion/AccordionSection.test.js +83 -0
- package/dist/Accordion/index.d.ts +3 -0
- package/dist/Accordion/index.js +1 -0
- package/dist/ActionGroup/ActionGroup.d.ts +9 -0
- package/dist/ActionGroup/ActionGroup.js +9 -0
- package/dist/ActionGroup/ActionGroup.test.d.ts +1 -0
- package/dist/ActionGroup/ActionGroup.test.js +29 -0
- package/dist/ActionGroup/index.d.ts +2 -0
- package/dist/ActionGroup/index.js +1 -0
- package/dist/Alert/Alert.d.ts +46 -0
- package/dist/Alert/Alert.js +22 -0
- package/dist/Alert/Alert.test.d.ts +1 -0
- package/dist/Alert/Alert.test.js +59 -0
- package/dist/Alert/index.d.ts +2 -0
- package/dist/Alert/index.js +1 -0
- package/dist/Avatar/Avatar.d.ts +24 -0
- package/dist/Avatar/Avatar.js +25 -0
- package/dist/Avatar/Avatar.test.d.ts +1 -0
- package/dist/Avatar/Avatar.test.js +58 -0
- package/dist/Avatar/index.d.ts +2 -0
- package/dist/Avatar/index.js +1 -0
- package/dist/Badge/Badge.d.ts +20 -0
- package/dist/Badge/Badge.js +10 -0
- package/dist/Badge/Badge.test.d.ts +1 -0
- package/dist/Badge/Badge.test.js +39 -0
- package/dist/Badge/index.d.ts +2 -0
- package/dist/Badge/index.js +1 -0
- package/dist/Blockquote/Blockquote.d.ts +15 -0
- package/dist/Blockquote/Blockquote.js +9 -0
- package/dist/Blockquote/Blockquote.test.d.ts +1 -0
- package/dist/Blockquote/Blockquote.test.js +43 -0
- package/dist/Blockquote/index.d.ts +2 -0
- package/dist/Blockquote/index.js +1 -0
- package/dist/Breadcrumb/Breadcrumb.d.ts +11 -0
- package/dist/Breadcrumb/Breadcrumb.js +11 -0
- package/dist/Breadcrumb/Breadcrumb.test.d.ts +1 -0
- package/dist/Breadcrumb/Breadcrumb.test.js +41 -0
- package/dist/Breadcrumb/BreadcrumbLink.d.ts +7 -0
- package/dist/Breadcrumb/BreadcrumbLink.js +9 -0
- package/dist/Breadcrumb/BreadcrumbLink.test.d.ts +1 -0
- package/dist/Breadcrumb/BreadcrumbLink.test.js +36 -0
- package/dist/Breadcrumb/index.d.ts +3 -0
- package/dist/Breadcrumb/index.js +1 -0
- package/dist/Breakout/Breakout.d.ts +15 -0
- package/dist/Breakout/Breakout.js +12 -0
- package/dist/Breakout/Breakout.test.d.ts +1 -0
- package/dist/Breakout/Breakout.test.js +66 -0
- package/dist/Breakout/BreakoutCell.d.ts +35 -0
- package/dist/Breakout/BreakoutCell.js +10 -0
- package/dist/Breakout/BreakoutCell.test.d.ts +1 -0
- package/dist/Breakout/BreakoutCell.test.js +120 -0
- package/dist/Breakout/breakoutCellClasses.d.ts +6 -0
- package/dist/Breakout/breakoutCellClasses.js +11 -0
- package/dist/Breakout/index.d.ts +3 -0
- package/dist/Breakout/index.js +1 -0
- package/dist/Button/Button.d.ts +31 -0
- package/dist/Button/Button.js +10 -0
- package/dist/Button/Button.test.d.ts +1 -0
- package/dist/Button/Button.test.js +103 -0
- package/dist/Button/index.d.ts +2 -0
- package/dist/Button/index.js +1 -0
- package/dist/Card/Card.d.ts +18 -0
- package/dist/Card/Card.js +12 -0
- package/dist/Card/Card.test.d.ts +1 -0
- package/dist/Card/Card.test.js +29 -0
- package/dist/Card/CardHeadingGroup.d.ts +15 -0
- package/dist/Card/CardHeadingGroup.js +10 -0
- package/dist/Card/CardHeadingGroup.test.d.ts +1 -0
- package/dist/Card/CardHeadingGroup.test.js +34 -0
- package/dist/Card/CardLink.d.ts +9 -0
- package/dist/Card/CardLink.js +9 -0
- package/dist/Card/CardLink.test.d.ts +1 -0
- package/dist/Card/CardLink.test.js +29 -0
- package/dist/Card/index.d.ts +4 -0
- package/dist/Card/index.js +1 -0
- package/dist/CharacterCount/CharacterCount.d.ts +17 -0
- package/dist/CharacterCount/CharacterCount.js +9 -0
- package/dist/CharacterCount/CharacterCount.test.d.ts +1 -0
- package/dist/CharacterCount/CharacterCount.test.js +34 -0
- package/dist/CharacterCount/index.d.ts +2 -0
- package/dist/CharacterCount/index.js +1 -0
- package/dist/Checkbox/Checkbox.d.ts +19 -0
- package/dist/Checkbox/Checkbox.js +24 -0
- package/dist/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/Checkbox/Checkbox.test.js +124 -0
- package/dist/Checkbox/index.d.ts +2 -0
- package/dist/Checkbox/index.js +1 -0
- package/dist/Column/Column.d.ts +56 -0
- package/dist/Column/Column.js +10 -0
- package/dist/Column/Column.test.d.ts +1 -0
- package/dist/Column/Column.test.js +57 -0
- package/dist/Column/index.d.ts +2 -0
- package/dist/Column/index.js +1 -0
- package/dist/DateInput/DateInput.d.ts +20 -0
- package/dist/DateInput/DateInput.js +10 -0
- package/dist/DateInput/DateInput.test.d.ts +1 -0
- package/dist/DateInput/DateInput.test.js +54 -0
- package/dist/DateInput/index.d.ts +2 -0
- package/dist/DateInput/index.js +1 -0
- package/dist/DescriptionList/DescriptionList.d.ts +30 -0
- package/dist/DescriptionList/DescriptionList.js +18 -0
- package/dist/DescriptionList/DescriptionList.test.d.ts +1 -0
- package/dist/DescriptionList/DescriptionList.test.js +39 -0
- package/dist/DescriptionList/DescriptionListDescription.d.ts +9 -0
- package/dist/DescriptionList/DescriptionListDescription.js +9 -0
- package/dist/DescriptionList/DescriptionListDescription.test.d.ts +1 -0
- package/dist/DescriptionList/DescriptionListDescription.test.js +29 -0
- package/dist/DescriptionList/DescriptionListSection.d.ts +9 -0
- package/dist/DescriptionList/DescriptionListSection.js +9 -0
- package/dist/DescriptionList/DescriptionListSection.test.d.ts +1 -0
- package/dist/DescriptionList/DescriptionListSection.test.js +29 -0
- package/dist/DescriptionList/DescriptionListTerm.d.ts +9 -0
- package/dist/DescriptionList/DescriptionListTerm.js +9 -0
- package/dist/DescriptionList/DescriptionListTerm.test.d.ts +1 -0
- package/dist/DescriptionList/DescriptionListTerm.test.js +29 -0
- package/dist/DescriptionList/index.d.ts +4 -0
- package/dist/DescriptionList/index.js +1 -0
- package/dist/Dialog/Dialog.d.ts +27 -0
- package/dist/Dialog/Dialog.js +17 -0
- package/dist/Dialog/Dialog.test.d.ts +1 -0
- package/dist/Dialog/Dialog.test.js +78 -0
- package/dist/Dialog/index.d.ts +2 -0
- package/dist/Dialog/index.js +1 -0
- package/dist/ErrorMessage/ErrorMessage.d.ts +19 -0
- package/dist/ErrorMessage/ErrorMessage.js +11 -0
- package/dist/ErrorMessage/ErrorMessage.test.d.ts +1 -0
- package/dist/ErrorMessage/ErrorMessage.test.js +49 -0
- package/dist/ErrorMessage/index.d.ts +2 -0
- package/dist/ErrorMessage/index.js +1 -0
- package/dist/Field/Field.d.ts +15 -0
- package/dist/Field/Field.js +9 -0
- package/dist/Field/Field.test.d.ts +1 -0
- package/dist/Field/Field.test.js +34 -0
- package/dist/Field/index.d.ts +2 -0
- package/dist/Field/index.js +1 -0
- package/dist/FieldSet/FieldSet.d.ts +23 -0
- package/dist/FieldSet/FieldSet.js +12 -0
- package/dist/FieldSet/FieldSet.test.d.ts +1 -0
- package/dist/FieldSet/FieldSet.test.js +59 -0
- package/dist/FieldSet/index.d.ts +2 -0
- package/dist/FieldSet/index.js +1 -0
- package/dist/Figure/Figure.d.ts +15 -0
- package/dist/Figure/Figure.js +11 -0
- package/dist/Figure/Figure.test.d.ts +1 -0
- package/dist/Figure/Figure.test.js +29 -0
- package/dist/Figure/FigureCaption.d.ts +15 -0
- package/dist/Figure/FigureCaption.js +9 -0
- package/dist/Figure/FigureCaption.test.d.ts +1 -0
- package/dist/Figure/FigureCaption.test.js +34 -0
- package/dist/Figure/index.d.ts +2 -0
- package/dist/Figure/index.js +1 -0
- package/dist/FileInput/FileInput.d.ts +7 -0
- package/dist/FileInput/FileInput.js +9 -0
- package/dist/FileInput/FileInput.test.d.ts +1 -0
- package/dist/FileInput/FileInput.test.js +29 -0
- package/dist/FileInput/index.d.ts +2 -0
- package/dist/FileInput/index.js +1 -0
- package/dist/FileList/FileList.d.ts +17 -0
- package/dist/FileList/FileList.js +13 -0
- package/dist/FileList/FileList.test.d.ts +1 -0
- package/dist/FileList/FileList.test.js +29 -0
- package/dist/FileList/FileListItem.d.ts +13 -0
- package/dist/FileList/FileListItem.js +14 -0
- package/dist/FileList/FileListItem.test.d.ts +1 -0
- package/dist/FileList/FileListItem.test.js +40 -0
- package/dist/FileList/index.d.ts +2 -0
- package/dist/FileList/index.js +1 -0
- package/dist/Footer/Footer.d.ts +19 -0
- package/dist/Footer/Footer.js +17 -0
- package/dist/Footer/Footer.test.d.ts +1 -0
- package/dist/Footer/Footer.test.js +29 -0
- package/dist/Footer/FooterMenu.d.ts +9 -0
- package/dist/Footer/FooterMenu.js +9 -0
- package/dist/Footer/FooterMenu.test.d.ts +1 -0
- package/dist/Footer/FooterMenu.test.js +31 -0
- package/dist/Footer/FooterMenuLink.d.ts +9 -0
- package/dist/Footer/FooterMenuLink.js +9 -0
- package/dist/Footer/FooterMenuLink.test.d.ts +1 -0
- package/dist/Footer/FooterMenuLink.test.js +29 -0
- package/dist/Footer/FooterSpotlight.d.ts +9 -0
- package/dist/Footer/FooterSpotlight.js +9 -0
- package/dist/Footer/FooterSpotlight.test.d.ts +1 -0
- package/dist/Footer/FooterSpotlight.test.js +29 -0
- package/dist/Footer/index.d.ts +5 -0
- package/dist/Footer/index.js +1 -0
- package/dist/Grid/Grid.d.ts +37 -0
- package/dist/Grid/Grid.js +13 -0
- package/dist/Grid/Grid.test.d.ts +1 -0
- package/dist/Grid/Grid.test.js +81 -0
- package/dist/Grid/GridCell.d.ts +25 -0
- package/dist/Grid/GridCell.js +11 -0
- package/dist/Grid/GridCell.test.d.ts +1 -0
- package/dist/Grid/GridCell.test.js +86 -0
- package/dist/Grid/gridCellClasses.d.ts +8 -0
- package/dist/Grid/gridCellClasses.js +18 -0
- package/dist/Grid/index.d.ts +3 -0
- package/dist/Grid/index.js +1 -0
- package/dist/Grid/paddingClasses.d.ts +2 -0
- package/dist/Grid/paddingClasses.js +13 -0
- package/dist/Header/Header.d.ts +49 -0
- package/dist/Header/Header.js +31 -0
- package/dist/Header/Header.test.d.ts +2 -0
- package/dist/Header/Header.test.js +121 -0
- package/dist/Header/HeaderGridCellNarrowWindowOnly.d.ts +2 -0
- package/dist/Header/HeaderGridCellNarrowWindowOnly.js +6 -0
- package/dist/Header/HeaderGridCellNarrowWindowOnly.test.d.ts +1 -0
- package/dist/Header/HeaderGridCellNarrowWindowOnly.test.js +34 -0
- package/dist/Header/HeaderMenuIcon.d.ts +2 -0
- package/dist/Header/HeaderMenuIcon.js +2 -0
- package/dist/Header/HeaderMenuLink.d.ts +9 -0
- package/dist/Header/HeaderMenuLink.js +5 -0
- package/dist/Header/HeaderMenuLink.test.d.ts +1 -0
- package/dist/Header/HeaderMenuLink.test.js +41 -0
- package/dist/Header/index.d.ts +3 -0
- package/dist/Header/index.js +1 -0
- package/dist/Header/matchMedia.mock.d.ts +0 -0
- package/dist/Header/matchMedia.mock.js +15 -0
- package/dist/Heading/Heading.d.ts +24 -0
- package/dist/Heading/Heading.js +15 -0
- package/dist/Heading/Heading.test.d.ts +1 -0
- package/dist/Heading/Heading.test.js +62 -0
- package/dist/Heading/getHeadingTag.d.ts +2 -0
- package/dist/Heading/getHeadingTag.js +13 -0
- package/dist/Heading/index.d.ts +2 -0
- package/dist/Heading/index.js +1 -0
- package/dist/Hint/Hint.d.ts +16 -0
- package/dist/Hint/Hint.js +21 -0
- package/dist/Hint/Hint.test.d.ts +1 -0
- package/dist/Hint/Hint.test.js +49 -0
- package/dist/Hint/index.d.ts +2 -0
- package/dist/Hint/index.js +1 -0
- package/dist/Icon/Icon.d.ts +30 -0
- package/dist/Icon/Icon.js +12 -0
- package/dist/Icon/Icon.test.d.ts +1 -0
- package/dist/Icon/Icon.test.js +52 -0
- package/dist/Icon/index.d.ts +2 -0
- package/dist/Icon/index.js +1 -0
- package/dist/IconButton/IconButton.d.ts +26 -0
- package/dist/IconButton/IconButton.js +11 -0
- package/dist/IconButton/IconButton.test.d.ts +1 -0
- package/dist/IconButton/IconButton.test.js +44 -0
- package/dist/IconButton/index.d.ts +2 -0
- package/dist/IconButton/index.js +1 -0
- package/dist/Image/Image.d.ts +18 -0
- package/dist/Image/Image.js +10 -0
- package/dist/Image/Image.test.d.ts +1 -0
- package/dist/Image/Image.test.js +39 -0
- package/dist/Image/generateAspectRatioClass.d.ts +1 -0
- package/dist/Image/generateAspectRatioClass.js +1 -0
- package/dist/Image/index.d.ts +3 -0
- package/dist/Image/index.js +2 -0
- package/dist/ImageSlider/ImageSlider.d.ts +49 -0
- package/dist/ImageSlider/ImageSlider.js +98 -0
- package/dist/ImageSlider/ImageSlider.test.d.ts +1 -0
- package/dist/ImageSlider/ImageSlider.test.js +66 -0
- package/dist/ImageSlider/ImageSliderContext.d.ts +13 -0
- package/dist/ImageSlider/ImageSliderContext.js +14 -0
- package/dist/ImageSlider/ImageSliderControls.d.ts +17 -0
- package/dist/ImageSlider/ImageSliderControls.js +17 -0
- package/dist/ImageSlider/ImageSliderControls.test.d.ts +1 -0
- package/dist/ImageSlider/ImageSliderControls.test.js +21 -0
- package/dist/ImageSlider/ImageSliderItem.d.ts +15 -0
- package/dist/ImageSlider/ImageSliderItem.js +15 -0
- package/dist/ImageSlider/ImageSliderItem.test.d.ts +1 -0
- package/dist/ImageSlider/ImageSliderItem.test.js +33 -0
- package/dist/ImageSlider/ImageSliderScroller.d.ts +9 -0
- package/dist/ImageSlider/ImageSliderScroller.js +9 -0
- package/dist/ImageSlider/ImageSliderScroller.test.d.ts +1 -0
- package/dist/ImageSlider/ImageSliderScroller.test.js +33 -0
- package/dist/ImageSlider/ImageSliderThumbnails.d.ts +14 -0
- package/dist/ImageSlider/ImageSliderThumbnails.js +32 -0
- package/dist/ImageSlider/ImageSliderThumbnails.test.d.ts +1 -0
- package/dist/ImageSlider/ImageSliderThumbnails.test.js +48 -0
- package/dist/ImageSlider/index.d.ts +3 -0
- package/dist/ImageSlider/index.js +1 -0
- package/dist/InvalidFormAlert/InvalidFormAlert.d.ts +68 -0
- package/dist/InvalidFormAlert/InvalidFormAlert.js +20 -0
- package/dist/InvalidFormAlert/InvalidFormAlert.test.d.ts +1 -0
- package/dist/InvalidFormAlert/InvalidFormAlert.test.js +104 -0
- package/dist/InvalidFormAlert/InvalidFormAlertWithErrors.d.ts +12 -0
- package/dist/InvalidFormAlert/InvalidFormAlertWithErrors.js +22 -0
- package/dist/InvalidFormAlert/index.d.ts +2 -0
- package/dist/InvalidFormAlert/index.js +1 -0
- package/dist/InvalidFormAlert/useAddErrorCountToDocumentTitle.d.ts +11 -0
- package/dist/InvalidFormAlert/useAddErrorCountToDocumentTitle.js +26 -0
- package/dist/Label/Label.d.ts +14 -0
- package/dist/Label/Label.js +13 -0
- package/dist/Label/Label.test.d.ts +1 -0
- package/dist/Label/Label.test.js +74 -0
- package/dist/Label/index.d.ts +1 -0
- package/dist/Label/index.js +1 -0
- package/dist/Link/Link.d.ts +19 -0
- package/dist/Link/Link.js +9 -0
- package/dist/Link/Link.test.d.ts +1 -0
- package/dist/Link/Link.test.js +46 -0
- package/dist/Link/index.d.ts +2 -0
- package/dist/Link/index.js +1 -0
- package/dist/LinkList/LinkList.d.ts +17 -0
- package/dist/LinkList/LinkList.js +14 -0
- package/dist/LinkList/LinkList.test.d.ts +1 -0
- package/dist/LinkList/LinkList.test.js +29 -0
- package/dist/LinkList/LinkListLink.d.ts +24 -0
- package/dist/LinkList/LinkListLink.js +14 -0
- package/dist/LinkList/LinkListLink.test.d.ts +1 -0
- package/dist/LinkList/LinkListLink.test.js +50 -0
- package/dist/LinkList/index.d.ts +3 -0
- package/dist/LinkList/index.js +1 -0
- package/dist/Logo/Logo.d.ts +11 -0
- package/dist/Logo/Logo.js +21 -0
- package/dist/Logo/Logo.test.d.ts +1 -0
- package/dist/Logo/Logo.test.js +30 -0
- package/dist/Logo/brand/LogoAmsterdam.d.ts +3 -0
- package/dist/Logo/brand/LogoAmsterdam.js +5 -0
- package/dist/Logo/brand/LogoGgdAmsterdam.d.ts +3 -0
- package/dist/Logo/brand/LogoGgdAmsterdam.js +5 -0
- package/dist/Logo/brand/LogoMuseumWeesp.d.ts +3 -0
- package/dist/Logo/brand/LogoMuseumWeesp.js +5 -0
- package/dist/Logo/brand/LogoStadsarchief.d.ts +3 -0
- package/dist/Logo/brand/LogoStadsarchief.js +5 -0
- package/dist/Logo/brand/LogoStadsbankVanLening.d.ts +3 -0
- package/dist/Logo/brand/LogoStadsbankVanLening.js +5 -0
- package/dist/Logo/brand/LogoVgaVerzekeringen.d.ts +3 -0
- package/dist/Logo/brand/LogoVgaVerzekeringen.js +5 -0
- package/dist/Logo/brand/index.d.ts +6 -0
- package/dist/Logo/brand/index.js +6 -0
- package/dist/Logo/index.d.ts +2 -0
- package/dist/Logo/index.js +1 -0
- package/dist/Mark/Mark.d.ts +9 -0
- package/dist/Mark/Mark.js +9 -0
- package/dist/Mark/Mark.test.d.ts +1 -0
- package/dist/Mark/Mark.test.js +29 -0
- package/dist/Mark/index.d.ts +2 -0
- package/dist/Mark/index.js +1 -0
- package/dist/MegaMenu/MegaMenu.d.ts +14 -0
- package/dist/MegaMenu/MegaMenu.js +12 -0
- package/dist/MegaMenu/MegaMenu.test.d.ts +1 -0
- package/dist/MegaMenu/MegaMenu.test.js +29 -0
- package/dist/MegaMenu/MegaMenuListCategory.d.ts +9 -0
- package/dist/MegaMenu/MegaMenuListCategory.js +9 -0
- package/dist/MegaMenu/MegaMenuListCategory.test.d.ts +1 -0
- package/dist/MegaMenu/MegaMenuListCategory.test.js +29 -0
- package/dist/MegaMenu/index.d.ts +3 -0
- package/dist/MegaMenu/index.js +1 -0
- package/dist/OrderedList/OrderedList.d.ts +27 -0
- package/dist/OrderedList/OrderedList.js +11 -0
- package/dist/OrderedList/OrderedList.test.d.ts +1 -0
- package/dist/OrderedList/OrderedList.test.js +51 -0
- package/dist/OrderedList/OrderedListItem.d.ts +9 -0
- package/dist/OrderedList/OrderedListItem.js +9 -0
- package/dist/OrderedList/OrderedListItem.test.d.ts +1 -0
- package/dist/OrderedList/OrderedListItem.test.js +28 -0
- package/dist/OrderedList/index.d.ts +3 -0
- package/dist/OrderedList/index.js +1 -0
- package/dist/Overlap/Overlap.d.ts +9 -0
- package/dist/Overlap/Overlap.js +9 -0
- package/dist/Overlap/Overlap.test.d.ts +1 -0
- package/dist/Overlap/Overlap.test.js +34 -0
- package/dist/Overlap/index.d.ts +2 -0
- package/dist/Overlap/index.js +1 -0
- package/dist/PageHeading/PageHeading.d.ts +15 -0
- package/dist/PageHeading/PageHeading.js +9 -0
- package/dist/PageHeading/PageHeading.test.d.ts +1 -0
- package/dist/PageHeading/PageHeading.test.js +37 -0
- package/dist/PageHeading/index.d.ts +2 -0
- package/dist/PageHeading/index.js +1 -0
- package/dist/PageMenu/PageMenu.d.ts +25 -0
- package/dist/PageMenu/PageMenu.js +12 -0
- package/dist/PageMenu/PageMenu.test.d.ts +1 -0
- package/dist/PageMenu/PageMenu.test.js +45 -0
- package/dist/PageMenu/PageMenuLink.d.ts +13 -0
- package/dist/PageMenu/PageMenuLink.js +10 -0
- package/dist/PageMenu/PageMenuLink.test.d.ts +1 -0
- package/dist/PageMenu/PageMenuLink.test.js +40 -0
- package/dist/PageMenu/index.d.ts +3 -0
- package/dist/PageMenu/index.js +1 -0
- package/dist/Pagination/LinkItem.d.ts +7 -0
- package/dist/Pagination/LinkItem.js +7 -0
- package/dist/Pagination/Pagination.d.ts +59 -0
- package/dist/Pagination/Pagination.js +23 -0
- package/dist/Pagination/Pagination.test.d.ts +1 -0
- package/dist/Pagination/Pagination.test.js +120 -0
- package/dist/Pagination/Spacer.d.ts +1 -0
- package/dist/Pagination/Spacer.js +2 -0
- package/dist/Pagination/getRange.d.ts +16 -0
- package/dist/Pagination/getRange.js +41 -0
- package/dist/Pagination/index.d.ts +2 -0
- package/dist/Pagination/index.js +1 -0
- package/dist/Paragraph/Paragraph.d.ts +20 -0
- package/dist/Paragraph/Paragraph.js +10 -0
- package/dist/Paragraph/Paragraph.test.d.ts +1 -0
- package/dist/Paragraph/Paragraph.test.js +58 -0
- package/dist/Paragraph/index.d.ts +2 -0
- package/dist/Paragraph/index.js +1 -0
- package/dist/PasswordInput/PasswordInput.d.ts +13 -0
- package/dist/PasswordInput/PasswordInput.js +9 -0
- package/dist/PasswordInput/PasswordInput.test.d.ts +1 -0
- package/dist/PasswordInput/PasswordInput.test.js +85 -0
- package/dist/PasswordInput/index.d.ts +2 -0
- package/dist/PasswordInput/index.js +1 -0
- package/dist/Radio/Radio.d.ts +19 -0
- package/dist/Radio/Radio.js +16 -0
- package/dist/Radio/Radio.test.d.ts +1 -0
- package/dist/Radio/Radio.test.js +121 -0
- package/dist/Radio/RadioIcon.d.ts +3 -0
- package/dist/Radio/RadioIcon.js +3 -0
- package/dist/Radio/index.d.ts +2 -0
- package/dist/Radio/index.js +1 -0
- package/dist/Row/Row.d.ts +66 -0
- package/dist/Row/Row.js +10 -0
- package/dist/Row/Row.test.d.ts +1 -0
- package/dist/Row/Row.test.js +62 -0
- package/dist/Row/index.d.ts +2 -0
- package/dist/Row/index.js +1 -0
- package/dist/Screen/Screen.d.ts +21 -0
- package/dist/Screen/Screen.js +9 -0
- package/dist/Screen/Screen.test.d.ts +1 -0
- package/dist/Screen/Screen.test.js +40 -0
- package/dist/Screen/index.d.ts +2 -0
- package/dist/Screen/index.js +1 -0
- package/dist/SearchField/SearchField.d.ts +292 -0
- package/dist/SearchField/SearchField.js +14 -0
- package/dist/SearchField/SearchField.test.d.ts +1 -0
- package/dist/SearchField/SearchField.test.js +47 -0
- package/dist/SearchField/SearchFieldButton.d.ts +8 -0
- package/dist/SearchField/SearchFieldButton.js +10 -0
- package/dist/SearchField/SearchFieldInput.d.ts +11 -0
- package/dist/SearchField/SearchFieldInput.js +12 -0
- package/dist/SearchField/SearchFieldInput.test.d.ts +1 -0
- package/dist/SearchField/SearchFieldInput.test.js +62 -0
- package/dist/SearchField/index.d.ts +2 -0
- package/dist/SearchField/index.js +1 -0
- package/dist/Select/Select.d.ts +22 -0
- package/dist/Select/Select.js +12 -0
- package/dist/Select/Select.test.d.ts +1 -0
- package/dist/Select/Select.test.js +70 -0
- package/dist/Select/SelectOption.d.ts +9 -0
- package/dist/Select/SelectOption.js +9 -0
- package/dist/Select/SelectOption.test.d.ts +1 -0
- package/dist/Select/SelectOption.test.js +41 -0
- package/dist/Select/SelectOptionGroup.d.ts +9 -0
- package/dist/Select/SelectOptionGroup.js +9 -0
- package/dist/Select/SelectOptionGroup.test.d.ts +1 -0
- package/dist/Select/SelectOptionGroup.test.js +41 -0
- package/dist/Select/index.d.ts +3 -0
- package/dist/Select/index.js +1 -0
- package/dist/SkipLink/SkipLink.d.ts +9 -0
- package/dist/SkipLink/SkipLink.js +9 -0
- package/dist/SkipLink/SkipLink.test.d.ts +1 -0
- package/dist/SkipLink/SkipLink.test.js +29 -0
- package/dist/SkipLink/index.d.ts +2 -0
- package/dist/SkipLink/index.js +1 -0
- package/dist/Spotlight/Spotlight.d.ts +22 -0
- package/dist/Spotlight/Spotlight.js +10 -0
- package/dist/Spotlight/Spotlight.test.d.ts +1 -0
- package/dist/Spotlight/Spotlight.test.js +40 -0
- package/dist/Spotlight/index.d.ts +2 -0
- package/dist/Spotlight/index.js +1 -0
- package/dist/Switch/Switch.d.ts +9 -0
- package/dist/Switch/Switch.js +12 -0
- package/dist/Switch/Switch.test.d.ts +1 -0
- package/dist/Switch/Switch.test.js +65 -0
- package/dist/Switch/index.d.ts +2 -0
- package/dist/Switch/index.js +1 -0
- package/dist/Table/Table.d.ts +31 -0
- package/dist/Table/Table.js +25 -0
- package/dist/Table/Table.test.d.ts +1 -0
- package/dist/Table/Table.test.js +29 -0
- package/dist/Table/TableBody.d.ts +9 -0
- package/dist/Table/TableBody.js +9 -0
- package/dist/Table/TableBody.test.d.ts +1 -0
- package/dist/Table/TableBody.test.js +30 -0
- package/dist/Table/TableCaption.d.ts +10 -0
- package/dist/Table/TableCaption.js +10 -0
- package/dist/Table/TableCaption.test.d.ts +1 -0
- package/dist/Table/TableCaption.test.js +41 -0
- package/dist/Table/TableCell.d.ts +9 -0
- package/dist/Table/TableCell.js +9 -0
- package/dist/Table/TableCell.test.d.ts +1 -0
- package/dist/Table/TableCell.test.js +32 -0
- package/dist/Table/TableFooter.d.ts +9 -0
- package/dist/Table/TableFooter.js +9 -0
- package/dist/Table/TableFooter.test.d.ts +1 -0
- package/dist/Table/TableFooter.test.js +30 -0
- package/dist/Table/TableHeader.d.ts +9 -0
- package/dist/Table/TableHeader.js +9 -0
- package/dist/Table/TableHeader.test.d.ts +1 -0
- package/dist/Table/TableHeader.test.js +30 -0
- package/dist/Table/TableHeaderCell.d.ts +9 -0
- package/dist/Table/TableHeaderCell.js +9 -0
- package/dist/Table/TableHeaderCell.test.d.ts +1 -0
- package/dist/Table/TableHeaderCell.test.js +38 -0
- package/dist/Table/TableRow.d.ts +9 -0
- package/dist/Table/TableRow.js +9 -0
- package/dist/Table/TableRow.test.d.ts +1 -0
- package/dist/Table/TableRow.test.js +31 -0
- package/dist/Table/index.d.ts +2 -0
- package/dist/Table/index.js +1 -0
- package/dist/TableOfContents/TableOfContents.d.ts +33 -0
- package/dist/TableOfContents/TableOfContents.js +18 -0
- package/dist/TableOfContents/TableOfContents.test.d.ts +1 -0
- package/dist/TableOfContents/TableOfContents.test.js +40 -0
- package/dist/TableOfContents/TableOfContentsLink.d.ts +13 -0
- package/dist/TableOfContents/TableOfContentsLink.js +9 -0
- package/dist/TableOfContents/TableOfContentsLink.test.d.ts +1 -0
- package/dist/TableOfContents/TableOfContentsLink.test.js +30 -0
- package/dist/TableOfContents/TableOfContentsList.d.ts +9 -0
- package/dist/TableOfContents/TableOfContentsList.js +11 -0
- package/dist/TableOfContents/TableOfContentsList.test.d.ts +1 -0
- package/dist/TableOfContents/TableOfContentsList.test.js +36 -0
- package/dist/TableOfContents/index.d.ts +4 -0
- package/dist/TableOfContents/index.js +1 -0
- package/dist/Tabs/Tabs.d.ts +31 -0
- package/dist/Tabs/Tabs.js +57 -0
- package/dist/Tabs/Tabs.test.d.ts +1 -0
- package/dist/Tabs/Tabs.test.js +85 -0
- package/dist/Tabs/TabsButton.d.ts +15 -0
- package/dist/Tabs/TabsButton.js +19 -0
- package/dist/Tabs/TabsButton.test.d.ts +1 -0
- package/dist/Tabs/TabsButton.test.js +43 -0
- package/dist/Tabs/TabsContext.d.ts +16 -0
- package/dist/Tabs/TabsContext.js +11 -0
- package/dist/Tabs/TabsList.d.ts +9 -0
- package/dist/Tabs/TabsList.js +20 -0
- package/dist/Tabs/TabsList.test.d.ts +1 -0
- package/dist/Tabs/TabsList.test.js +28 -0
- package/dist/Tabs/TabsPanel.d.ts +15 -0
- package/dist/Tabs/TabsPanel.js +16 -0
- package/dist/Tabs/TabsPanel.test.d.ts +1 -0
- package/dist/Tabs/TabsPanel.test.js +40 -0
- package/dist/Tabs/index.d.ts +5 -0
- package/dist/Tabs/index.js +1 -0
- package/dist/TextArea/TextArea.d.ts +17 -0
- package/dist/TextArea/TextArea.js +9 -0
- package/dist/TextArea/TextArea.test.d.ts +1 -0
- package/dist/TextArea/TextArea.test.js +101 -0
- package/dist/TextArea/index.d.ts +2 -0
- package/dist/TextArea/index.js +1 -0
- package/dist/TextInput/TextInput.d.ts +20 -0
- package/dist/TextInput/TextInput.js +10 -0
- package/dist/TextInput/TextInput.test.d.ts +1 -0
- package/dist/TextInput/TextInput.test.js +89 -0
- package/dist/TextInput/index.d.ts +2 -0
- package/dist/TextInput/index.js +1 -0
- package/dist/TimeInput/TimeInput.d.ts +13 -0
- package/dist/TimeInput/TimeInput.js +9 -0
- package/dist/TimeInput/TimeInput.test.d.ts +1 -0
- package/dist/TimeInput/TimeInput.test.js +47 -0
- package/dist/TimeInput/index.d.ts +2 -0
- package/dist/TimeInput/index.js +1 -0
- package/dist/TopTaskLink/TopTaskLink.d.ts +17 -0
- package/dist/TopTaskLink/TopTaskLink.js +9 -0
- package/dist/TopTaskLink/TopTaskLink.test.d.ts +1 -0
- package/dist/TopTaskLink/TopTaskLink.test.js +42 -0
- package/dist/TopTaskLink/index.d.ts +1 -0
- package/dist/TopTaskLink/index.js +1 -0
- package/dist/UnorderedList/UnorderedList.d.ts +27 -0
- package/dist/UnorderedList/UnorderedList.js +13 -0
- package/dist/UnorderedList/UnorderedList.test.d.ts +1 -0
- package/dist/UnorderedList/UnorderedList.test.js +51 -0
- package/dist/UnorderedList/UnorderedListItem.d.ts +9 -0
- package/dist/UnorderedList/UnorderedListItem.js +9 -0
- package/dist/UnorderedList/UnorderedListItem.test.d.ts +1 -0
- package/dist/UnorderedList/UnorderedListItem.test.js +28 -0
- package/dist/UnorderedList/index.d.ts +3 -0
- package/dist/UnorderedList/index.js +1 -0
- package/dist/common/accessibility.d.ts +5 -0
- package/dist/common/accessibility.js +13 -0
- package/dist/common/formatFileSize.d.ts +10 -0
- package/dist/common/formatFileSize.js +17 -0
- package/dist/common/formatFileSize.test.d.ts +1 -0
- package/dist/common/formatFileSize.test.js +18 -0
- package/dist/common/formatFileType.d.ts +10 -0
- package/dist/common/formatFileType.js +34 -0
- package/dist/common/formatFileType.test.d.ts +1 -0
- package/dist/common/formatFileType.test.js +23 -0
- package/dist/common/shortSize.d.ts +12 -0
- package/dist/common/shortSize.js +15 -0
- package/dist/common/types.d.ts +11 -0
- package/dist/common/types.js +9 -0
- package/dist/common/useIsAfterBreakpoint.d.ts +3 -0
- package/dist/common/useIsAfterBreakpoint.js +24 -0
- package/dist/common/useKeyboardFocus.d.ts +23 -0
- package/dist/common/useKeyboardFocus.js +56 -0
- package/dist/common/useKeyboardFocus.test.d.ts +1 -0
- package/dist/common/useKeyboardFocus.test.js +79 -0
- package/dist/index.cjs.js +1051 -1041
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +213 -187
- package/dist/index.esm.js +1051 -1042
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +66 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +20 -21
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
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, ForwardRefExoticComponent, SVGProps, RefAttributes, ImgHTMLAttributes, LabelHTMLAttributes, 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. */
|
|
6
|
-
|
|
6
|
+
color?: 'inverse';
|
|
7
7
|
/** The hierarchical level within the document. */
|
|
8
|
-
level
|
|
8
|
+
level: 1 | 2 | 3 | 4;
|
|
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
12
|
declare const Heading: react.ForwardRefExoticComponent<{
|
|
13
13
|
/** Changes the text colour for readability on a dark background. */
|
|
14
|
-
|
|
14
|
+
color?: "inverse";
|
|
15
15
|
/** The hierarchical level within the document. */
|
|
16
|
-
level
|
|
16
|
+
level: 1 | 2 | 3 | 4;
|
|
17
17
|
/** Uses larger or smaller text without changing its position in the heading hierarchy. */
|
|
18
18
|
size?: "level-1" | "level-2" | "level-3" | "level-4" | "level-5" | "level-6";
|
|
19
19
|
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
@@ -21,13 +21,21 @@ declare const Heading: react.ForwardRefExoticComponent<{
|
|
|
21
21
|
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
22
22
|
|
|
23
23
|
type AccordionProps = {
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* The hierarchical level of this Accordion’s Section Headings within the document.
|
|
26
|
+
* There is no default value; determine the correct level for each instance.
|
|
27
|
+
* Note: this intentionally does not change the font size.
|
|
28
|
+
**/
|
|
25
29
|
headingLevel: HeadingProps['level'];
|
|
26
30
|
/** The HTML element to use for each Accordion Section. */
|
|
27
31
|
sectionAs?: 'div' | 'section';
|
|
28
32
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
29
33
|
declare const Accordion: react.ForwardRefExoticComponent<{
|
|
30
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* The hierarchical level of this Accordion’s Section Headings within the document.
|
|
36
|
+
* There is no default value; determine the correct level for each instance.
|
|
37
|
+
* Note: this intentionally does not change the font size.
|
|
38
|
+
**/
|
|
31
39
|
headingLevel: HeadingProps["level"];
|
|
32
40
|
/** The HTML element to use for each Accordion Section. */
|
|
33
41
|
sectionAs?: "div" | "section";
|
|
@@ -35,18 +43,18 @@ declare const Accordion: react.ForwardRefExoticComponent<{
|
|
|
35
43
|
children?: react.ReactNode | undefined;
|
|
36
44
|
} & react.RefAttributes<HTMLDivElement>> & {
|
|
37
45
|
Section: react.ForwardRefExoticComponent<{
|
|
38
|
-
label: string;
|
|
39
46
|
expanded?: boolean;
|
|
47
|
+
label: string;
|
|
40
48
|
} & HTMLAttributes<HTMLElement> & {
|
|
41
49
|
children?: react.ReactNode | undefined;
|
|
42
50
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
43
51
|
};
|
|
44
52
|
|
|
45
53
|
type AccordionSectionProps = {
|
|
46
|
-
/** The heading text. */
|
|
47
|
-
label: string;
|
|
48
54
|
/** Whether the content is displayed initially. */
|
|
49
55
|
expanded?: boolean;
|
|
56
|
+
/** The heading text. */
|
|
57
|
+
label: string;
|
|
50
58
|
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
51
59
|
|
|
52
60
|
type ActionGroupProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
@@ -54,22 +62,24 @@ declare const ActionGroup: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDi
|
|
|
54
62
|
children?: react.ReactNode | undefined;
|
|
55
63
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
56
64
|
|
|
65
|
+
type Severity = 'error' | 'success' | 'warning';
|
|
57
66
|
type AlertProps = {
|
|
58
67
|
/** Whether the user can dismiss the Alert. Adds a button to its top right. */
|
|
59
68
|
closeable?: boolean;
|
|
60
69
|
/** The label for the button that dismisses the Alert. */
|
|
61
70
|
closeButtonLabel?: string;
|
|
62
71
|
/** The text for the Heading. */
|
|
63
|
-
heading
|
|
72
|
+
heading: string;
|
|
64
73
|
/**
|
|
65
|
-
* The hierarchical level of the Heading within the document.
|
|
74
|
+
* The hierarchical level of the Alert’s Heading within the document.
|
|
75
|
+
* There is no default value; determine the correct level for each instance.
|
|
66
76
|
* Note: this intentionally does not change the font size.
|
|
67
|
-
|
|
68
|
-
headingLevel
|
|
77
|
+
**/
|
|
78
|
+
headingLevel: HeadingProps['level'];
|
|
69
79
|
/** A function to run when dismissing. */
|
|
70
80
|
onClose?: () => void;
|
|
71
81
|
/** The significance of the message conveyed. */
|
|
72
|
-
severity?:
|
|
82
|
+
severity?: Severity;
|
|
73
83
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
74
84
|
declare const Alert: react.ForwardRefExoticComponent<{
|
|
75
85
|
/** Whether the user can dismiss the Alert. Adds a button to its top right. */
|
|
@@ -77,21 +87,22 @@ declare const Alert: react.ForwardRefExoticComponent<{
|
|
|
77
87
|
/** The label for the button that dismisses the Alert. */
|
|
78
88
|
closeButtonLabel?: string;
|
|
79
89
|
/** The text for the Heading. */
|
|
80
|
-
heading
|
|
90
|
+
heading: string;
|
|
81
91
|
/**
|
|
82
|
-
* The hierarchical level of the Heading within the document.
|
|
92
|
+
* The hierarchical level of the Alert’s Heading within the document.
|
|
93
|
+
* There is no default value; determine the correct level for each instance.
|
|
83
94
|
* Note: this intentionally does not change the font size.
|
|
84
|
-
|
|
85
|
-
headingLevel
|
|
95
|
+
**/
|
|
96
|
+
headingLevel: HeadingProps["level"];
|
|
86
97
|
/** A function to run when dismissing. */
|
|
87
98
|
onClose?: () => void;
|
|
88
99
|
/** The significance of the message conveyed. */
|
|
89
|
-
severity?:
|
|
100
|
+
severity?: Severity;
|
|
90
101
|
} & HTMLAttributes<HTMLDivElement> & {
|
|
91
102
|
children?: react.ReactNode | undefined;
|
|
92
103
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
93
104
|
|
|
94
|
-
declare const avatarColors: readonly ["
|
|
105
|
+
declare const avatarColors: readonly ["azure", "green", "lime", "magenta", "orange", "yellow"];
|
|
95
106
|
type AvatarColor = (typeof avatarColors)[number];
|
|
96
107
|
type AvatarProps = {
|
|
97
108
|
/** The background colour. */
|
|
@@ -110,7 +121,7 @@ declare const Avatar: react.ForwardRefExoticComponent<{
|
|
|
110
121
|
label: string;
|
|
111
122
|
} & HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
|
|
112
123
|
|
|
113
|
-
declare const badgeColors: readonly ["
|
|
124
|
+
declare const badgeColors: readonly ["azure", "lime", "magenta", "orange", "purple", "red", "yellow"];
|
|
114
125
|
type BadgeColor = (typeof badgeColors)[number];
|
|
115
126
|
type BadgeProps = {
|
|
116
127
|
/** The background colour. */
|
|
@@ -127,11 +138,11 @@ declare const Badge: react.ForwardRefExoticComponent<{
|
|
|
127
138
|
|
|
128
139
|
type BlockquoteProps = {
|
|
129
140
|
/** Changes the text colour for readability on a dark background. */
|
|
130
|
-
|
|
141
|
+
color?: 'inverse';
|
|
131
142
|
} & PropsWithChildren<BlockquoteHTMLAttributes<HTMLQuoteElement>>;
|
|
132
143
|
declare const Blockquote: react.ForwardRefExoticComponent<{
|
|
133
144
|
/** Changes the text colour for readability on a dark background. */
|
|
134
|
-
|
|
145
|
+
color?: "inverse";
|
|
135
146
|
} & BlockquoteHTMLAttributes<HTMLQuoteElement> & {
|
|
136
147
|
children?: react.ReactNode | undefined;
|
|
137
148
|
} & react.RefAttributes<HTMLQuoteElement>>;
|
|
@@ -233,11 +244,13 @@ declare const Breakout: react.ForwardRefExoticComponent<GridProps & react.RefAtt
|
|
|
233
244
|
Cell: react.ForwardRefExoticComponent<BreakoutCellProps & react.RefAttributes<any>>;
|
|
234
245
|
};
|
|
235
246
|
|
|
247
|
+
declare const iconSizes: string[];
|
|
248
|
+
type IconSize = (typeof iconSizes)[number];
|
|
236
249
|
type IconProps = {
|
|
237
250
|
/** Changes the icon colour for readability on a dark background. */
|
|
238
|
-
|
|
239
|
-
/** The size of the icon.
|
|
240
|
-
size?:
|
|
251
|
+
color?: 'inverse';
|
|
252
|
+
/** The size of the icon. Choose the size of the corresponding body text or heading. */
|
|
253
|
+
size?: IconSize;
|
|
241
254
|
/** Whether the icon container should be made square. */
|
|
242
255
|
square?: boolean;
|
|
243
256
|
/** The component rendering the icon’s markup. */
|
|
@@ -245,9 +258,9 @@ type IconProps = {
|
|
|
245
258
|
} & HTMLAttributes<HTMLSpanElement>;
|
|
246
259
|
declare const Icon: react.ForwardRefExoticComponent<{
|
|
247
260
|
/** Changes the icon colour for readability on a dark background. */
|
|
248
|
-
|
|
249
|
-
/** The size of the icon.
|
|
250
|
-
size?:
|
|
261
|
+
color?: "inverse";
|
|
262
|
+
/** The size of the icon. Choose the size of the corresponding body text or heading. */
|
|
263
|
+
size?: IconSize;
|
|
251
264
|
/** Whether the icon container should be made square. */
|
|
252
265
|
square?: boolean;
|
|
253
266
|
/** The component rendering the icon’s markup. */
|
|
@@ -314,34 +327,34 @@ declare const CharacterCount: react.ForwardRefExoticComponent<HTMLAttributes<HTM
|
|
|
314
327
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
315
328
|
|
|
316
329
|
type CheckboxProps = {
|
|
317
|
-
/** Whether the value fails a validation rule. */
|
|
318
|
-
invalid?: boolean;
|
|
319
330
|
/** Allows being neither checked nor unchecked. */
|
|
320
331
|
indeterminate?: boolean;
|
|
321
|
-
} & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>;
|
|
322
|
-
declare const Checkbox: react.ForwardRefExoticComponent<{
|
|
323
332
|
/** Whether the value fails a validation rule. */
|
|
324
333
|
invalid?: boolean;
|
|
334
|
+
} & PropsWithChildren<Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'type'>>;
|
|
335
|
+
declare const Checkbox: react.ForwardRefExoticComponent<{
|
|
325
336
|
/** Allows being neither checked nor unchecked. */
|
|
326
337
|
indeterminate?: boolean;
|
|
338
|
+
/** Whether the value fails a validation rule. */
|
|
339
|
+
invalid?: boolean;
|
|
327
340
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & {
|
|
328
341
|
children?: react.ReactNode | undefined;
|
|
329
342
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
330
343
|
|
|
331
|
-
declare const aspectRatioOptions: readonly ["
|
|
344
|
+
declare const aspectRatioOptions: readonly ["9:16", "3:4", "1:1", "4:3", "16:9", "16:5"];
|
|
332
345
|
type AspectRatioProps = {
|
|
333
346
|
/** The aspect ratio to display media content in. */
|
|
334
347
|
aspectRatio?: (typeof aspectRatioOptions)[number];
|
|
335
348
|
};
|
|
336
349
|
declare const crossAlignOptions: readonly ["start", "center", "baseline", "end"];
|
|
337
350
|
type CrossAlign = (typeof crossAlignOptions)[number];
|
|
338
|
-
declare const crossAlignOptionsForColumn: ("
|
|
351
|
+
declare const crossAlignOptionsForColumn: ("center" | "start" | "end")[];
|
|
339
352
|
type CrossAlignForColumn = (typeof crossAlignOptionsForColumn)[number];
|
|
340
353
|
declare const mainAlignOptions: readonly ["center", "end", "between", "around", "evenly"];
|
|
341
354
|
type MainAlign = (typeof mainAlignOptions)[number];
|
|
342
355
|
|
|
343
|
-
declare const
|
|
344
|
-
type ColumnGap = (typeof
|
|
356
|
+
declare const columnGaps: readonly ["none", "x-small", "small", "large", "x-large"];
|
|
357
|
+
type ColumnGap = (typeof columnGaps)[number];
|
|
345
358
|
type ColumnTag = 'article' | 'div' | 'section';
|
|
346
359
|
type ColumnProps = {
|
|
347
360
|
/**
|
|
@@ -405,16 +418,16 @@ declare const DateInput: react.ForwardRefExoticComponent<{
|
|
|
405
418
|
type?: DateInputType;
|
|
406
419
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
407
420
|
|
|
408
|
-
declare const descriptionListTermsWidths: readonly ["
|
|
421
|
+
declare const descriptionListTermsWidths: readonly ["narrow", "medium", "wide"];
|
|
409
422
|
type DescriptionListTermsWidth = (typeof descriptionListTermsWidths)[number];
|
|
410
423
|
type DescriptionListProps = {
|
|
411
424
|
/** Changes the text colour for readability on a dark background. */
|
|
412
|
-
|
|
425
|
+
color?: 'inverse';
|
|
413
426
|
termsWidth?: DescriptionListTermsWidth;
|
|
414
427
|
} & PropsWithChildren<HTMLAttributes<HTMLDListElement>>;
|
|
415
428
|
declare const DescriptionList: react.ForwardRefExoticComponent<{
|
|
416
429
|
/** Changes the text colour for readability on a dark background. */
|
|
417
|
-
|
|
430
|
+
color?: "inverse";
|
|
418
431
|
termsWidth?: DescriptionListTermsWidth;
|
|
419
432
|
} & HTMLAttributes<HTMLDListElement> & {
|
|
420
433
|
children?: react.ReactNode | undefined;
|
|
@@ -516,7 +529,7 @@ declare const Figure: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement
|
|
|
516
529
|
children?: react.ReactNode | undefined;
|
|
517
530
|
} & react.RefAttributes<HTMLElement>> & {
|
|
518
531
|
Caption: react.ForwardRefExoticComponent<{
|
|
519
|
-
|
|
532
|
+
color?: "inverse";
|
|
520
533
|
} & HTMLAttributes<HTMLElement> & {
|
|
521
534
|
children?: react.ReactNode | undefined;
|
|
522
535
|
} & react.RefAttributes<HTMLElement>>;
|
|
@@ -539,80 +552,22 @@ type FooterProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
|
539
552
|
declare const Footer: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
540
553
|
children?: react.ReactNode | undefined;
|
|
541
554
|
} & react.RefAttributes<HTMLElement>> & {
|
|
542
|
-
|
|
555
|
+
Menu: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
|
|
543
556
|
children?: react.ReactNode | undefined;
|
|
544
|
-
} & react.RefAttributes<
|
|
545
|
-
|
|
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> & {
|
|
546
562
|
children?: react.ReactNode | undefined;
|
|
547
563
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
548
564
|
};
|
|
549
565
|
|
|
550
|
-
type
|
|
566
|
+
type FooterMenuProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
551
567
|
|
|
552
|
-
type
|
|
568
|
+
type FooterMenuLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
553
569
|
|
|
554
|
-
type
|
|
555
|
-
id: string;
|
|
556
|
-
label: string;
|
|
557
|
-
};
|
|
558
|
-
type FormErrorListProps = {
|
|
559
|
-
/**
|
|
560
|
-
* The text following the error count.
|
|
561
|
-
* This is used to show the error count in the document title.
|
|
562
|
-
* @default { plural: 'invoerfouten', singular: 'invoerfout' }
|
|
563
|
-
*/
|
|
564
|
-
errorCountLabel?: {
|
|
565
|
-
plural: string;
|
|
566
|
-
singular: string;
|
|
567
|
-
};
|
|
568
|
-
/** The list of error messages to display. */
|
|
569
|
-
errors: FormError[];
|
|
570
|
-
/**
|
|
571
|
-
* Whether the component receives focus on first render
|
|
572
|
-
* @default true
|
|
573
|
-
*/
|
|
574
|
-
focusOnRender?: boolean;
|
|
575
|
-
/**
|
|
576
|
-
* The text for the Heading.
|
|
577
|
-
* @default Verbeter de fouten voor u verder gaat
|
|
578
|
-
*/
|
|
579
|
-
heading?: string;
|
|
580
|
-
/**
|
|
581
|
-
* The hierarchical level of the Heading within the document.
|
|
582
|
-
* Note: this intentionally does not change the font size.
|
|
583
|
-
* @default 2
|
|
584
|
-
*/
|
|
585
|
-
headingLevel?: HeadingProps['level'];
|
|
586
|
-
} & HTMLAttributes<HTMLDivElement>;
|
|
587
|
-
declare const FormErrorList: react.ForwardRefExoticComponent<{
|
|
588
|
-
/**
|
|
589
|
-
* The text following the error count.
|
|
590
|
-
* This is used to show the error count in the document title.
|
|
591
|
-
* @default { plural: 'invoerfouten', singular: 'invoerfout' }
|
|
592
|
-
*/
|
|
593
|
-
errorCountLabel?: {
|
|
594
|
-
plural: string;
|
|
595
|
-
singular: string;
|
|
596
|
-
};
|
|
597
|
-
/** The list of error messages to display. */
|
|
598
|
-
errors: FormError[];
|
|
599
|
-
/**
|
|
600
|
-
* Whether the component receives focus on first render
|
|
601
|
-
* @default true
|
|
602
|
-
*/
|
|
603
|
-
focusOnRender?: boolean;
|
|
604
|
-
/**
|
|
605
|
-
* The text for the Heading.
|
|
606
|
-
* @default Verbeter de fouten voor u verder gaat
|
|
607
|
-
*/
|
|
608
|
-
heading?: string;
|
|
609
|
-
/**
|
|
610
|
-
* The hierarchical level of the Heading within the document.
|
|
611
|
-
* Note: this intentionally does not change the font size.
|
|
612
|
-
* @default 2
|
|
613
|
-
*/
|
|
614
|
-
headingLevel?: HeadingProps["level"];
|
|
615
|
-
} & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
570
|
+
type FooterSpotlightProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
616
571
|
|
|
617
572
|
/**
|
|
618
573
|
* @license EUPL-1.2+
|
|
@@ -635,10 +590,10 @@ type HeaderProps = {
|
|
|
635
590
|
logoLink?: string;
|
|
636
591
|
/** The accessible text for the link on the logo. */
|
|
637
592
|
logoLinkTitle?: string;
|
|
638
|
-
/** A slot for the menu items. Use Header.MenuLink here. */
|
|
639
|
-
menuItems?: ReactNode;
|
|
640
593
|
/** The text for the menu button. */
|
|
641
594
|
menuButtonText?: string;
|
|
595
|
+
/** A slot for the menu items. Use Header.MenuLink here. */
|
|
596
|
+
menuItems?: ReactNode;
|
|
642
597
|
/** The accessible label for the navigation section. */
|
|
643
598
|
navigationLabel?: string;
|
|
644
599
|
/** Whether the menu button is visible on wide screens. */
|
|
@@ -653,10 +608,10 @@ declare const Header: react.ForwardRefExoticComponent<{
|
|
|
653
608
|
logoLink?: string;
|
|
654
609
|
/** The accessible text for the link on the logo. */
|
|
655
610
|
logoLinkTitle?: string;
|
|
656
|
-
/** A slot for the menu items. Use Header.MenuLink here. */
|
|
657
|
-
menuItems?: ReactNode;
|
|
658
611
|
/** The text for the menu button. */
|
|
659
612
|
menuButtonText?: string;
|
|
613
|
+
/** A slot for the menu items. Use Header.MenuLink here. */
|
|
614
|
+
menuItems?: ReactNode;
|
|
660
615
|
/** The accessible label for the navigation section. */
|
|
661
616
|
navigationLabel?: string;
|
|
662
617
|
/** Whether the menu button is visible on wide screens. */
|
|
@@ -675,28 +630,24 @@ type HeaderMenuLinkProps = {
|
|
|
675
630
|
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
676
631
|
|
|
677
632
|
type IconButtonProps = {
|
|
633
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
634
|
+
color?: 'contrast' | 'inverse';
|
|
678
635
|
/** The accessible text for the button. Will be announced by screen readers. Should describe the button’s action. */
|
|
679
636
|
label: string;
|
|
680
|
-
/**
|
|
681
|
-
|
|
682
|
-
/** Changes the text colour for readability on a dark background. */
|
|
683
|
-
inverseColor?: boolean;
|
|
684
|
-
/** The size of the icon. Corresponds with the text levels. */
|
|
685
|
-
size?: 'level-3' | 'level-4' | 'level-5' | 'level-6';
|
|
637
|
+
/** The size of the icon. */
|
|
638
|
+
size?: IconProps['size'];
|
|
686
639
|
/** The component rendering the icon’s markup. */
|
|
687
|
-
svg?:
|
|
640
|
+
svg?: IconProps['svg'];
|
|
688
641
|
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
689
642
|
declare const IconButton: react.ForwardRefExoticComponent<{
|
|
643
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
644
|
+
color?: "contrast" | "inverse";
|
|
690
645
|
/** The accessible text for the button. Will be announced by screen readers. Should describe the button’s action. */
|
|
691
646
|
label: string;
|
|
692
|
-
/**
|
|
693
|
-
|
|
694
|
-
/** Changes the text colour for readability on a dark background. */
|
|
695
|
-
inverseColor?: boolean;
|
|
696
|
-
/** The size of the icon. Corresponds with the text levels. */
|
|
697
|
-
size?: "level-3" | "level-4" | "level-5" | "level-6";
|
|
647
|
+
/** The size of the icon. */
|
|
648
|
+
size?: IconProps["size"];
|
|
698
649
|
/** The component rendering the icon’s markup. */
|
|
699
|
-
svg?:
|
|
650
|
+
svg?: IconProps["svg"];
|
|
700
651
|
} & ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
701
652
|
|
|
702
653
|
type ImageProps = {
|
|
@@ -712,6 +663,8 @@ declare const Image: react.ForwardRefExoticComponent<{
|
|
|
712
663
|
alt: string;
|
|
713
664
|
} & AspectRatioProps & ImgHTMLAttributes<HTMLImageElement> & react.RefAttributes<HTMLImageElement>>;
|
|
714
665
|
|
|
666
|
+
declare const generateAspectRatioClass: (aspectRatio?: string) => string | undefined;
|
|
667
|
+
|
|
715
668
|
type ImageSliderImageProps = ImageProps;
|
|
716
669
|
type ImageSliderProps = {
|
|
717
670
|
/** Display buttons to navigate to the previous or next image. */
|
|
@@ -749,6 +702,69 @@ type ImageSliderItemProps = {
|
|
|
749
702
|
slideId: number;
|
|
750
703
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
751
704
|
|
|
705
|
+
type ErrorLink = {
|
|
706
|
+
id: string;
|
|
707
|
+
label: string;
|
|
708
|
+
};
|
|
709
|
+
type InvalidFormAlertProps = {
|
|
710
|
+
/**
|
|
711
|
+
* The text following the error count.
|
|
712
|
+
* This is used to show the error count in the document title.
|
|
713
|
+
* @default { plural: 'invoerfouten', singular: 'invoerfout' }
|
|
714
|
+
*/
|
|
715
|
+
errorCountLabel?: {
|
|
716
|
+
plural: string;
|
|
717
|
+
singular: string;
|
|
718
|
+
};
|
|
719
|
+
/** The list of error messages to display. */
|
|
720
|
+
errors: ErrorLink[];
|
|
721
|
+
/**
|
|
722
|
+
* Whether the component receives focus on first render
|
|
723
|
+
* @default true
|
|
724
|
+
*/
|
|
725
|
+
focusOnRender?: boolean;
|
|
726
|
+
/**
|
|
727
|
+
* The text for the Heading.
|
|
728
|
+
* @default Verbeter de fouten voor u verder gaat
|
|
729
|
+
*/
|
|
730
|
+
heading?: string;
|
|
731
|
+
/**
|
|
732
|
+
* The hierarchical level of the Invalid Form Alert’s Heading within the document.
|
|
733
|
+
* There is no default value; determine the correct level for each instance.
|
|
734
|
+
* Note: this intentionally does not change the font size.
|
|
735
|
+
**/
|
|
736
|
+
headingLevel: HeadingProps['level'];
|
|
737
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
738
|
+
declare const InvalidFormAlert: react.ForwardRefExoticComponent<{
|
|
739
|
+
/**
|
|
740
|
+
* The text following the error count.
|
|
741
|
+
* This is used to show the error count in the document title.
|
|
742
|
+
* @default { plural: 'invoerfouten', singular: 'invoerfout' }
|
|
743
|
+
*/
|
|
744
|
+
errorCountLabel?: {
|
|
745
|
+
plural: string;
|
|
746
|
+
singular: string;
|
|
747
|
+
};
|
|
748
|
+
/** The list of error messages to display. */
|
|
749
|
+
errors: ErrorLink[];
|
|
750
|
+
/**
|
|
751
|
+
* Whether the component receives focus on first render
|
|
752
|
+
* @default true
|
|
753
|
+
*/
|
|
754
|
+
focusOnRender?: boolean;
|
|
755
|
+
/**
|
|
756
|
+
* The text for the Heading.
|
|
757
|
+
* @default Verbeter de fouten voor u verder gaat
|
|
758
|
+
*/
|
|
759
|
+
heading?: string;
|
|
760
|
+
/**
|
|
761
|
+
* The hierarchical level of the Invalid Form Alert’s Heading within the document.
|
|
762
|
+
* There is no default value; determine the correct level for each instance.
|
|
763
|
+
* Note: this intentionally does not change the font size.
|
|
764
|
+
**/
|
|
765
|
+
headingLevel: HeadingProps["level"];
|
|
766
|
+
} & HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
767
|
+
|
|
752
768
|
declare const Label: react.ForwardRefExoticComponent<LabelHTMLAttributes<HTMLLabelElement> & {
|
|
753
769
|
children?: react.ReactNode | undefined;
|
|
754
770
|
} & react.HTMLAttributes<HTMLElement> & {
|
|
@@ -758,18 +774,14 @@ declare const Label: react.ForwardRefExoticComponent<LabelHTMLAttributes<HTMLLab
|
|
|
758
774
|
|
|
759
775
|
type LinkVariant = 'standalone' | 'inline';
|
|
760
776
|
type LinkProps = {
|
|
761
|
-
/** Changes the text colour for readability on a light background. */
|
|
762
|
-
|
|
763
|
-
/** Changes the text colour for readability on a dark background. */
|
|
764
|
-
inverseColor?: boolean;
|
|
777
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
778
|
+
color?: 'contrast' | 'inverse';
|
|
765
779
|
/** Whether the link is inline or stands alone. */
|
|
766
780
|
variant?: LinkVariant;
|
|
767
781
|
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'placeholder'>;
|
|
768
782
|
declare const Link: react.ForwardRefExoticComponent<{
|
|
769
|
-
/** Changes the text colour for readability on a light background. */
|
|
770
|
-
|
|
771
|
-
/** Changes the text colour for readability on a dark background. */
|
|
772
|
-
inverseColor?: boolean;
|
|
783
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
784
|
+
color?: "contrast" | "inverse";
|
|
773
785
|
/** Whether the link is inline or stands alone. */
|
|
774
786
|
variant?: LinkVariant;
|
|
775
787
|
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "placeholder"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -779,9 +791,8 @@ declare const LinkList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUList
|
|
|
779
791
|
children?: react.ReactNode | undefined;
|
|
780
792
|
} & react.RefAttributes<HTMLUListElement>> & {
|
|
781
793
|
Link: react.ForwardRefExoticComponent<{
|
|
794
|
+
color?: "contrast" | "inverse";
|
|
782
795
|
icon?: Function;
|
|
783
|
-
contrastColor?: boolean;
|
|
784
|
-
inverseColor?: boolean;
|
|
785
796
|
size?: "small" | "large";
|
|
786
797
|
} & react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
787
798
|
children?: react.ReactNode | undefined;
|
|
@@ -789,12 +800,10 @@ declare const LinkList: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUList
|
|
|
789
800
|
};
|
|
790
801
|
|
|
791
802
|
type LinkListLinkProps = {
|
|
803
|
+
/** Changes the text colour for readability on a light or dark background. */
|
|
804
|
+
color?: 'contrast' | 'inverse';
|
|
792
805
|
/** An icon to display instead of the default chevron. Don’t mix custom icons with chevrons in one list. */
|
|
793
806
|
icon?: Function;
|
|
794
|
-
/** Changes the text colour for readability on a light background. */
|
|
795
|
-
contrastColor?: boolean;
|
|
796
|
-
/** Changes the text colour for readability on a dark background. */
|
|
797
|
-
inverseColor?: boolean;
|
|
798
807
|
/** The size of the text. Use the same size for all items in the list. */
|
|
799
808
|
size?: 'small' | 'large';
|
|
800
809
|
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
@@ -805,6 +814,7 @@ declare const Mark: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement>
|
|
|
805
814
|
} & react.RefAttributes<HTMLElement>>;
|
|
806
815
|
|
|
807
816
|
type MegaMenuProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
817
|
+
/** @deprecated Use child components in Header instead. */
|
|
808
818
|
declare const MegaMenu: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
809
819
|
children?: react.ReactNode | undefined;
|
|
810
820
|
} & react.RefAttributes<HTMLDivElement>> & {
|
|
@@ -817,7 +827,7 @@ type MegaMenuListCategoryProps = PropsWithChildren<HTMLAttributes<HTMLDivElement
|
|
|
817
827
|
|
|
818
828
|
type OrderedListProps = {
|
|
819
829
|
/** Changes the text colour for readability on a dark background. */
|
|
820
|
-
|
|
830
|
+
color?: 'inverse';
|
|
821
831
|
/** Whether the list items show a marker. */
|
|
822
832
|
markers?: boolean;
|
|
823
833
|
/** The size of the text. */
|
|
@@ -825,7 +835,7 @@ type OrderedListProps = {
|
|
|
825
835
|
} & PropsWithChildren<OlHTMLAttributes<HTMLOListElement>>;
|
|
826
836
|
declare const OrderedList: react.ForwardRefExoticComponent<{
|
|
827
837
|
/** Changes the text colour for readability on a dark background. */
|
|
828
|
-
|
|
838
|
+
color?: "inverse";
|
|
829
839
|
/** Whether the list items show a marker. */
|
|
830
840
|
markers?: boolean;
|
|
831
841
|
/** The size of the text. */
|
|
@@ -847,11 +857,11 @@ declare const Overlap: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivEle
|
|
|
847
857
|
|
|
848
858
|
type PageHeadingProps = {
|
|
849
859
|
/** Changes the text colour for readability on a dark background. */
|
|
850
|
-
|
|
860
|
+
color?: 'inverse';
|
|
851
861
|
} & PropsWithChildren<HTMLAttributes<HTMLHeadingElement>>;
|
|
852
862
|
declare const PageHeading: react.ForwardRefExoticComponent<{
|
|
853
863
|
/** Changes the text colour for readability on a dark background. */
|
|
854
|
-
|
|
864
|
+
color?: "inverse";
|
|
855
865
|
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
856
866
|
children?: react.ReactNode | undefined;
|
|
857
867
|
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -882,55 +892,69 @@ type PageMenuLinkProps = {
|
|
|
882
892
|
} & PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
883
893
|
|
|
884
894
|
type PaginationProps = {
|
|
895
|
+
/** The React component to use for the links. */
|
|
896
|
+
linkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
897
|
+
/** The template used to construct the link hrefs. */
|
|
898
|
+
linkTemplate: (page: number) => string;
|
|
885
899
|
/** The maximum amount of pages shown. Minimum value: 5. */
|
|
886
900
|
maxVisiblePages?: number;
|
|
887
|
-
/** The visible label for the next page
|
|
901
|
+
/** The visible label for the link to the next page. */
|
|
888
902
|
nextLabel?: string;
|
|
889
|
-
/** The accessible name for the next page
|
|
903
|
+
/** The accessible name for the link to the next page. */
|
|
890
904
|
nextVisuallyHiddenLabel?: string;
|
|
891
|
-
/** A function to run when the page number changes. */
|
|
892
|
-
onPageChange?: (page: number) => void;
|
|
893
905
|
/** The current page number. */
|
|
894
906
|
page?: number;
|
|
895
|
-
/** The visible label for the previous page
|
|
907
|
+
/** The visible label for the link to the previous page. */
|
|
896
908
|
previousLabel?: string;
|
|
897
|
-
/** The accessible name for the previous page
|
|
909
|
+
/** The accessible name for the link to the previous page. */
|
|
898
910
|
previousVisuallyHiddenLabel?: string;
|
|
899
911
|
/** The total amount of pages. */
|
|
900
912
|
totalPages: number;
|
|
901
913
|
/** The accessible name for the Pagination component. */
|
|
902
914
|
visuallyHiddenLabel?: string;
|
|
915
|
+
/**
|
|
916
|
+
* Connects the component with an internal element that defines its accessible name.
|
|
917
|
+
* Note: must be unique for the page.
|
|
918
|
+
*/
|
|
919
|
+
visuallyHiddenLabelId?: string;
|
|
903
920
|
} & HTMLAttributes<HTMLElement>;
|
|
904
921
|
declare const Pagination: react.ForwardRefExoticComponent<{
|
|
922
|
+
/** The React component to use for the links. */
|
|
923
|
+
linkComponent?: ComponentType<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
924
|
+
/** The template used to construct the link hrefs. */
|
|
925
|
+
linkTemplate: (page: number) => string;
|
|
905
926
|
/** The maximum amount of pages shown. Minimum value: 5. */
|
|
906
927
|
maxVisiblePages?: number;
|
|
907
|
-
/** The visible label for the next page
|
|
928
|
+
/** The visible label for the link to the next page. */
|
|
908
929
|
nextLabel?: string;
|
|
909
|
-
/** The accessible name for the next page
|
|
930
|
+
/** The accessible name for the link to the next page. */
|
|
910
931
|
nextVisuallyHiddenLabel?: string;
|
|
911
|
-
/** A function to run when the page number changes. */
|
|
912
|
-
onPageChange?: (page: number) => void;
|
|
913
932
|
/** The current page number. */
|
|
914
933
|
page?: number;
|
|
915
|
-
/** The visible label for the previous page
|
|
934
|
+
/** The visible label for the link to the previous page. */
|
|
916
935
|
previousLabel?: string;
|
|
917
|
-
/** The accessible name for the previous page
|
|
936
|
+
/** The accessible name for the link to the previous page. */
|
|
918
937
|
previousVisuallyHiddenLabel?: string;
|
|
919
938
|
/** The total amount of pages. */
|
|
920
939
|
totalPages: number;
|
|
921
940
|
/** The accessible name for the Pagination component. */
|
|
922
941
|
visuallyHiddenLabel?: string;
|
|
942
|
+
/**
|
|
943
|
+
* Connects the component with an internal element that defines its accessible name.
|
|
944
|
+
* Note: must be unique for the page.
|
|
945
|
+
*/
|
|
946
|
+
visuallyHiddenLabelId?: string;
|
|
923
947
|
} & HTMLAttributes<HTMLElement> & react.RefAttributes<HTMLElement>>;
|
|
924
948
|
|
|
925
949
|
type ParagraphProps = {
|
|
926
950
|
/** Changes the text colour for readability on a dark background. */
|
|
927
|
-
|
|
951
|
+
color?: 'inverse';
|
|
928
952
|
/** The size of the text. */
|
|
929
953
|
size?: 'small' | 'large';
|
|
930
954
|
} & PropsWithChildren<HTMLAttributes<HTMLParagraphElement>>;
|
|
931
955
|
declare const Paragraph: react.ForwardRefExoticComponent<{
|
|
932
956
|
/** Changes the text colour for readability on a dark background. */
|
|
933
|
-
|
|
957
|
+
color?: "inverse";
|
|
934
958
|
/** The size of the text. */
|
|
935
959
|
size?: "small" | "large";
|
|
936
960
|
} & HTMLAttributes<HTMLParagraphElement> & {
|
|
@@ -944,7 +968,7 @@ type PasswordInputProps = {
|
|
|
944
968
|
declare const PasswordInput: react.ForwardRefExoticComponent<{
|
|
945
969
|
/** Whether the value fails a validation rule. */
|
|
946
970
|
invalid?: boolean;
|
|
947
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, "
|
|
971
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "autoCapitalize" | "spellCheck" | "autoCorrect" | "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
948
972
|
|
|
949
973
|
type RadioProps = {
|
|
950
974
|
/** An icon to display instead of the default icon. */
|
|
@@ -961,8 +985,8 @@ declare const Radio: react.ForwardRefExoticComponent<{
|
|
|
961
985
|
children?: ReactNode | undefined;
|
|
962
986
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
963
987
|
|
|
964
|
-
declare const
|
|
965
|
-
type RowGap = (typeof
|
|
988
|
+
declare const rowGaps: readonly ["none", "x-small", "small", "large", "x-large"];
|
|
989
|
+
type RowGap = (typeof rowGaps)[number];
|
|
966
990
|
type RowTag = 'article' | 'div' | 'section';
|
|
967
991
|
type RowProps = {
|
|
968
992
|
/**
|
|
@@ -1044,6 +1068,7 @@ declare const SearchField: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFo
|
|
|
1044
1068
|
Button: react.ForwardRefExoticComponent<{
|
|
1045
1069
|
children?: react.ReactNode;
|
|
1046
1070
|
className?: string | undefined | undefined;
|
|
1071
|
+
color?: string | undefined | undefined;
|
|
1047
1072
|
defaultChecked?: boolean | undefined | undefined;
|
|
1048
1073
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
1049
1074
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -1081,7 +1106,6 @@ declare const SearchField: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFo
|
|
|
1081
1106
|
vocab?: string | undefined | undefined;
|
|
1082
1107
|
autoCorrect?: string | undefined | undefined;
|
|
1083
1108
|
autoSave?: string | undefined | undefined;
|
|
1084
|
-
color?: string | undefined | undefined;
|
|
1085
1109
|
itemProp?: string | undefined | undefined;
|
|
1086
1110
|
itemScope?: boolean | undefined | undefined;
|
|
1087
1111
|
itemType?: string | undefined | undefined;
|
|
@@ -1308,16 +1332,16 @@ declare const SearchField: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFo
|
|
|
1308
1332
|
onAnimationIterationCapture?: react.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
1309
1333
|
onTransitionEnd?: react.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
1310
1334
|
onTransitionEndCapture?: react.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
1311
|
-
disabled?: boolean | undefined | undefined;
|
|
1312
1335
|
form?: string | undefined | undefined;
|
|
1336
|
+
value?: string | number | readonly string[] | undefined;
|
|
1337
|
+
type?: "submit" | "reset" | "button" | undefined | undefined;
|
|
1338
|
+
disabled?: boolean | undefined | undefined;
|
|
1313
1339
|
formAction?: string | undefined;
|
|
1314
1340
|
formEncType?: string | undefined | undefined;
|
|
1315
1341
|
formMethod?: string | undefined | undefined;
|
|
1316
1342
|
formNoValidate?: boolean | undefined | undefined;
|
|
1317
1343
|
formTarget?: string | undefined | undefined;
|
|
1318
1344
|
name?: string | undefined | undefined;
|
|
1319
|
-
type?: "submit" | "reset" | "button" | undefined | undefined;
|
|
1320
|
-
value?: string | number | readonly string[] | undefined;
|
|
1321
1345
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
1322
1346
|
Input: react.ForwardRefExoticComponent<{
|
|
1323
1347
|
invalid?: boolean;
|
|
@@ -1325,10 +1349,10 @@ declare const SearchField: react.ForwardRefExoticComponent<HTMLAttributes<HTMLFo
|
|
|
1325
1349
|
} & react.InputHTMLAttributes<HTMLInputElement> & react.RefAttributes<HTMLInputElement>>;
|
|
1326
1350
|
};
|
|
1327
1351
|
|
|
1328
|
-
type SelectOptionGroupProps = OptgroupHTMLAttributes<HTMLOptGroupElement>;
|
|
1329
|
-
|
|
1330
1352
|
type SelectOptionProps = OptionHTMLAttributes<HTMLOptionElement>;
|
|
1331
1353
|
|
|
1354
|
+
type SelectOptionGroupProps = OptgroupHTMLAttributes<HTMLOptGroupElement>;
|
|
1355
|
+
|
|
1332
1356
|
type SelectProps = {
|
|
1333
1357
|
/** Whether the value fails a validation rule. */
|
|
1334
1358
|
invalid?: boolean;
|
|
@@ -1339,12 +1363,12 @@ declare const Select: react.ForwardRefExoticComponent<{
|
|
|
1339
1363
|
} & Omit<SelectHTMLAttributes<HTMLSelectElement>, "aria-invalid"> & {
|
|
1340
1364
|
children?: react.ReactNode | undefined;
|
|
1341
1365
|
} & react.RefAttributes<HTMLSelectElement>> & {
|
|
1342
|
-
Option: react.ForwardRefExoticComponent<SelectOptionProps & {
|
|
1343
|
-
children?: react.ReactNode | undefined;
|
|
1344
|
-
} & react.RefAttributes<HTMLOptionElement>>;
|
|
1345
1366
|
Group: react.ForwardRefExoticComponent<SelectOptionGroupProps & {
|
|
1346
1367
|
children?: react.ReactNode | undefined;
|
|
1347
1368
|
} & react.RefAttributes<HTMLOptGroupElement>>;
|
|
1369
|
+
Option: react.ForwardRefExoticComponent<SelectOptionProps & {
|
|
1370
|
+
children?: react.ReactNode | undefined;
|
|
1371
|
+
} & react.RefAttributes<HTMLOptionElement>>;
|
|
1348
1372
|
};
|
|
1349
1373
|
|
|
1350
1374
|
type SkipLinkProps = PropsWithChildren<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
@@ -1352,9 +1376,8 @@ declare const SkipLink: react.ForwardRefExoticComponent<AnchorHTMLAttributes<HTM
|
|
|
1352
1376
|
children?: react.ReactNode | undefined;
|
|
1353
1377
|
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
1354
1378
|
|
|
1355
|
-
declare const
|
|
1356
|
-
|
|
1357
|
-
type SpotlightColor = (typeof spotlightColors)[number] | typeof defaultColor;
|
|
1379
|
+
declare const spotlightColors: readonly ["azure", "green", "lime", "magenta", "orange", "yellow"];
|
|
1380
|
+
type SpotlightColor = (typeof spotlightColors)[number];
|
|
1358
1381
|
type SpotlightProps = {
|
|
1359
1382
|
/** The HTML element to use. */
|
|
1360
1383
|
as?: 'article' | 'aside' | 'div' | 'footer' | 'section';
|
|
@@ -1438,17 +1461,19 @@ type TableOfContentsLinkProps = {
|
|
|
1438
1461
|
type TableOfContentsListProps = PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
1439
1462
|
|
|
1440
1463
|
type TabsProps = {
|
|
1441
|
-
/** The
|
|
1442
|
-
activeTab?:
|
|
1464
|
+
/** The identifier of the initially active tab. Corresponds to its `tab` value. */
|
|
1465
|
+
activeTab?: string;
|
|
1466
|
+
onTabChange?: (tabId: string) => void;
|
|
1443
1467
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1444
1468
|
declare const Tabs: react.ForwardRefExoticComponent<{
|
|
1445
|
-
/** The
|
|
1446
|
-
activeTab?:
|
|
1469
|
+
/** The identifier of the initially active tab. Corresponds to its `tab` value. */
|
|
1470
|
+
activeTab?: string;
|
|
1471
|
+
onTabChange?: (tabId: string) => void;
|
|
1447
1472
|
} & HTMLAttributes<HTMLDivElement> & {
|
|
1448
1473
|
children?: react.ReactNode | undefined;
|
|
1449
1474
|
} & react.RefAttributes<HTMLDivElement>> & {
|
|
1450
1475
|
Button: react.ForwardRefExoticComponent<{
|
|
1451
|
-
tab:
|
|
1476
|
+
tab: string;
|
|
1452
1477
|
} & react.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1453
1478
|
children?: react.ReactNode | undefined;
|
|
1454
1479
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1456,7 +1481,7 @@ declare const Tabs: react.ForwardRefExoticComponent<{
|
|
|
1456
1481
|
children?: react.ReactNode | undefined;
|
|
1457
1482
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1458
1483
|
Panel: react.ForwardRefExoticComponent<{
|
|
1459
|
-
tab:
|
|
1484
|
+
tab: string;
|
|
1460
1485
|
} & HTMLAttributes<HTMLDivElement> & {
|
|
1461
1486
|
children?: react.ReactNode | undefined;
|
|
1462
1487
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -1464,14 +1489,14 @@ declare const Tabs: react.ForwardRefExoticComponent<{
|
|
|
1464
1489
|
|
|
1465
1490
|
type TabsPanelProps = {
|
|
1466
1491
|
/** The identifier of the corresponding Tab. */
|
|
1467
|
-
tab:
|
|
1492
|
+
tab: string;
|
|
1468
1493
|
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1469
1494
|
|
|
1470
1495
|
type TabsListProps = PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
|
|
1471
1496
|
|
|
1472
1497
|
type TabsButtonProps = {
|
|
1473
1498
|
/** An identifier. */
|
|
1474
|
-
tab:
|
|
1499
|
+
tab: string;
|
|
1475
1500
|
} & PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
1476
1501
|
|
|
1477
1502
|
type TextAreaProps = {
|
|
@@ -1512,15 +1537,15 @@ declare const TimeInput: react.ForwardRefExoticComponent<{
|
|
|
1512
1537
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid" | "type"> & react.RefAttributes<HTMLInputElement>>;
|
|
1513
1538
|
|
|
1514
1539
|
declare const TopTaskLink: react.ForwardRefExoticComponent<{
|
|
1515
|
-
/** The title. */
|
|
1516
|
-
label: string;
|
|
1517
1540
|
/** The text content. */
|
|
1518
1541
|
description: string;
|
|
1542
|
+
/** The title. */
|
|
1543
|
+
label: string;
|
|
1519
1544
|
} & AnchorHTMLAttributes<HTMLAnchorElement> & react.RefAttributes<HTMLAnchorElement>>;
|
|
1520
1545
|
|
|
1521
1546
|
type UnorderedListProps = {
|
|
1522
1547
|
/** Changes the text colour for readability on a dark background. */
|
|
1523
|
-
|
|
1548
|
+
color?: 'inverse';
|
|
1524
1549
|
/** Whether the list items show a marker. */
|
|
1525
1550
|
markers?: boolean;
|
|
1526
1551
|
/** The size of the text. */
|
|
@@ -1528,7 +1553,7 @@ type UnorderedListProps = {
|
|
|
1528
1553
|
} & PropsWithChildren<HTMLAttributes<HTMLUListElement>>;
|
|
1529
1554
|
declare const UnorderedList: react.ForwardRefExoticComponent<{
|
|
1530
1555
|
/** Changes the text colour for readability on a dark background. */
|
|
1531
|
-
|
|
1556
|
+
color?: "inverse";
|
|
1532
1557
|
/** Whether the list items show a marker. */
|
|
1533
1558
|
markers?: boolean;
|
|
1534
1559
|
/** The size of the text. */
|
|
@@ -1543,4 +1568,5 @@ declare const UnorderedList: react.ForwardRefExoticComponent<{
|
|
|
1543
1568
|
|
|
1544
1569
|
type UnorderedListItemProps = PropsWithChildren<LiHTMLAttributes<HTMLLIElement>>;
|
|
1545
1570
|
|
|
1546
|
-
export { Accordion,
|
|
1571
|
+
export { Accordion, ActionGroup, Alert, Avatar, Badge, Blockquote, Breadcrumb, Breakout, Button, Card, CharacterCount, Checkbox, Column, DateInput, DescriptionList, Dialog, ErrorMessage, Field, FieldSet, Figure, FileInput, FileList, Footer, Grid, Header, Heading, Hint, Icon, IconButton, Image, ImageSlider, InvalidFormAlert, Label, Link, LinkList, Logo, Mark, MegaMenu, OrderedList, Overlap, PageHeading, PageMenu, Pagination, Paragraph, PasswordInput, Radio, Row, Screen, SearchField, Select, SkipLink, Spotlight, Switch, Table, TableOfContents, Tabs, TextArea, TextInput, TimeInput, TopTaskLink, UnorderedList, generateAspectRatioClass };
|
|
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, FooterMenuLinkProps, FooterMenuProps, FooterProps, FooterSpotlightProps, GridCellProps, GridColumnNumber, GridColumnNumbers, GridProps, HeaderMenuLinkProps, HeaderProps, HeadingProps, HintProps, IconButtonProps, IconProps, ImageProps, ImageSliderItemProps, ImageSliderProps, InvalidFormAlertProps, LinkListLinkProps, LinkListProps, LinkProps, LogoBrand, LogoProps, MarkProps, MegaMenuListCategoryProps, MegaMenuProps, OrderedListItemProps, OrderedListProps, OverlapProps, PageHeadingProps, PageMenuLinkProps, PageMenuProps, PaginationProps, ParagraphProps, PasswordInputProps, RadioProps, RowProps, ScreenProps, SearchFieldProps, SelectOptionProps, SelectProps, SkipLinkProps, SpotlightProps, SwitchProps, TableOfContentsLinkProps, TableOfContentsListProps, TableOfContentsProps, TableProps, TabsButtonProps, TabsListProps, TabsPanelProps, TabsProps, TextAreaProps, TextInputProps, TimeInputProps, UnorderedListItemProps, UnorderedListProps };
|