@dsn-starter-kit/components-react 3.0.0 → 3.1.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 +32 -4
- package/dist/ActionGroup/ActionGroup.d.mts +51 -0
- package/dist/ActionGroup/ActionGroup.d.mts.map +1 -0
- package/dist/ActionGroup/ActionGroup2.mjs +65 -0
- package/dist/ActionGroup/ActionGroup2.mjs.map +1 -0
- package/dist/ActionGroup/index.d.mts +2 -0
- package/dist/Alert/Alert.d.mts +85 -0
- package/dist/Alert/Alert.d.mts.map +1 -0
- package/dist/Alert/Alert2.mjs +102 -0
- package/dist/Alert/Alert2.mjs.map +1 -0
- package/dist/Alert/index.d.mts +2 -0
- package/dist/Backdrop/Backdrop.d.mts +28 -0
- package/dist/Backdrop/Backdrop.d.mts.map +1 -0
- package/dist/Backdrop/Backdrop2.mjs +32 -0
- package/dist/Backdrop/Backdrop2.mjs.map +1 -0
- package/dist/Backdrop/index.d.mts +2 -0
- package/dist/Body/Body.d.mts +29 -0
- package/dist/Body/Body.d.mts.map +1 -0
- package/dist/Body/Body2.mjs +36 -0
- package/dist/Body/Body2.mjs.map +1 -0
- package/dist/Body/index.d.mts +2 -0
- package/dist/BreadcrumbNavigation/BreadcrumbNavigation.d.mts +45 -0
- package/dist/BreadcrumbNavigation/BreadcrumbNavigation.d.mts.map +1 -0
- package/dist/BreadcrumbNavigation/BreadcrumbNavigation2.mjs +51 -0
- package/dist/BreadcrumbNavigation/BreadcrumbNavigation2.mjs.map +1 -0
- package/dist/BreadcrumbNavigation/BreadcrumbNavigationItem.d.mts +41 -0
- package/dist/BreadcrumbNavigation/BreadcrumbNavigationItem.d.mts.map +1 -0
- package/dist/BreadcrumbNavigation/BreadcrumbNavigationItem.mjs +48 -0
- package/dist/BreadcrumbNavigation/BreadcrumbNavigationItem.mjs.map +1 -0
- package/dist/BreadcrumbNavigation/index.d.mts +3 -0
- package/dist/BreakoutSection/BreakoutSection.d.mts +32 -0
- package/dist/BreakoutSection/BreakoutSection.d.mts.map +1 -0
- package/dist/BreakoutSection/BreakoutSection2.mjs +36 -0
- package/dist/BreakoutSection/BreakoutSection2.mjs.map +1 -0
- package/dist/BreakoutSection/index.d.mts +2 -0
- package/dist/Button/Button.d.mts +92 -0
- package/dist/Button/Button.d.mts.map +1 -0
- package/dist/Button/Button2.mjs +76 -0
- package/dist/Button/Button2.mjs.map +1 -0
- package/dist/Button/index.d.mts +2 -0
- package/dist/ButtonLink/ButtonLink.d.mts +94 -0
- package/dist/ButtonLink/ButtonLink.d.mts.map +1 -0
- package/dist/ButtonLink/ButtonLink2.mjs +70 -0
- package/dist/ButtonLink/ButtonLink2.mjs.map +1 -0
- package/dist/ButtonLink/index.d.mts +2 -0
- package/dist/Card/Card.d.mts +107 -0
- package/dist/Card/Card.d.mts.map +1 -0
- package/dist/Card/Card2.mjs +125 -0
- package/dist/Card/Card2.mjs.map +1 -0
- package/dist/Card/index.d.mts +2 -0
- package/dist/Checkbox/Checkbox.d.mts +20 -0
- package/dist/Checkbox/Checkbox.d.mts.map +1 -0
- package/dist/Checkbox/Checkbox2.mjs +43 -0
- package/dist/Checkbox/Checkbox2.mjs.map +1 -0
- package/dist/Checkbox/index.d.mts +2 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.mts +39 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.mts.map +1 -0
- package/dist/CheckboxGroup/CheckboxGroup2.mjs +46 -0
- package/dist/CheckboxGroup/CheckboxGroup2.mjs.map +1 -0
- package/dist/CheckboxGroup/index.d.mts +2 -0
- package/dist/CheckboxOption/CheckboxOption.d.mts +17 -0
- package/dist/CheckboxOption/CheckboxOption.d.mts.map +1 -0
- package/dist/CheckboxOption/CheckboxOption2.mjs +29 -0
- package/dist/CheckboxOption/CheckboxOption2.mjs.map +1 -0
- package/dist/CheckboxOption/index.d.mts +2 -0
- package/dist/Container/Container.d.mts +43 -0
- package/dist/Container/Container.d.mts.map +1 -0
- package/dist/Container/Container2.mjs +42 -0
- package/dist/Container/Container2.mjs.map +1 -0
- package/dist/Container/index.d.mts +2 -0
- package/dist/DateInput/DateInput.d.mts +38 -0
- package/dist/DateInput/DateInput.d.mts.map +1 -0
- package/dist/DateInput/DateInput2.mjs +69 -0
- package/dist/DateInput/DateInput2.mjs.map +1 -0
- package/dist/DateInput/index.d.mts +2 -0
- package/dist/DateInputGroup/DateInputGroup.d.mts +67 -0
- package/dist/DateInputGroup/DateInputGroup.d.mts.map +1 -0
- package/dist/DateInputGroup/DateInputGroup2.mjs +120 -0
- package/dist/DateInputGroup/DateInputGroup2.mjs.map +1 -0
- package/dist/DateInputGroup/index.d.mts +2 -0
- package/dist/Details/Details.d.mts +48 -0
- package/dist/Details/Details.d.mts.map +1 -0
- package/dist/Details/Details2.mjs +61 -0
- package/dist/Details/Details2.mjs.map +1 -0
- package/dist/Details/index.d.mts +2 -0
- package/dist/DotBadge/DotBadge.d.mts +44 -0
- package/dist/DotBadge/DotBadge.d.mts.map +1 -0
- package/dist/DotBadge/DotBadge2.mjs +42 -0
- package/dist/DotBadge/DotBadge2.mjs.map +1 -0
- package/dist/DotBadge/index.d.mts +2 -0
- package/dist/Drawer/Drawer.d.mts +111 -0
- package/dist/Drawer/Drawer.d.mts.map +1 -0
- package/dist/Drawer/Drawer2.mjs +156 -0
- package/dist/Drawer/Drawer2.mjs.map +1 -0
- package/dist/Drawer/index.d.mts +2 -0
- package/dist/EmailInput/EmailInput.d.mts +40 -0
- package/dist/EmailInput/EmailInput.d.mts.map +1 -0
- package/dist/EmailInput/EmailInput.mjs +39 -0
- package/dist/EmailInput/EmailInput.mjs.map +1 -0
- package/dist/EmailInput/index.d.mts +2 -0
- package/dist/File/File.d.mts +124 -0
- package/dist/File/File.d.mts.map +1 -0
- package/dist/File/File2.mjs +196 -0
- package/dist/File/File2.mjs.map +1 -0
- package/dist/File/index.d.mts +2 -0
- package/dist/FileInput/FileInput.d.mts +38 -0
- package/dist/FileInput/FileInput.d.mts.map +1 -0
- package/dist/FileInput/FileInput2.mjs +41 -0
- package/dist/FileInput/FileInput2.mjs.map +1 -0
- package/dist/FileInput/index.d.mts +2 -0
- package/dist/FormField/FormField.d.mts +103 -0
- package/dist/FormField/FormField.d.mts.map +1 -0
- package/dist/FormField/FormField2.mjs +101 -0
- package/dist/FormField/FormField2.mjs.map +1 -0
- package/dist/FormField/index.d.mts +2 -0
- package/dist/FormFieldDescription/FormFieldDescription.d.mts +53 -0
- package/dist/FormFieldDescription/FormFieldDescription.d.mts.map +1 -0
- package/dist/FormFieldDescription/FormFieldDescription2.mjs +49 -0
- package/dist/FormFieldDescription/FormFieldDescription2.mjs.map +1 -0
- package/dist/FormFieldDescription/index.d.mts +2 -0
- package/dist/FormFieldErrorMessage/FormFieldErrorMessage.d.mts +42 -0
- package/dist/FormFieldErrorMessage/FormFieldErrorMessage.d.mts.map +1 -0
- package/dist/FormFieldErrorMessage/FormFieldErrorMessage2.mjs +44 -0
- package/dist/FormFieldErrorMessage/FormFieldErrorMessage2.mjs.map +1 -0
- package/dist/FormFieldErrorMessage/index.d.mts +2 -0
- package/dist/FormFieldLabel/FormFieldLabel.d.mts +40 -0
- package/dist/FormFieldLabel/FormFieldLabel.d.mts.map +1 -0
- package/dist/FormFieldLabel/FormFieldLabel2.mjs +42 -0
- package/dist/FormFieldLabel/FormFieldLabel2.mjs.map +1 -0
- package/dist/FormFieldLabel/index.d.mts +2 -0
- package/dist/FormFieldLegend/FormFieldLegend.d.mts +41 -0
- package/dist/FormFieldLegend/FormFieldLegend.d.mts.map +1 -0
- package/dist/FormFieldLegend/FormFieldLegend2.mjs +43 -0
- package/dist/FormFieldLegend/FormFieldLegend2.mjs.map +1 -0
- package/dist/FormFieldLegend/index.d.mts +2 -0
- package/dist/FormFieldStatus/FormFieldStatus.d.mts +62 -0
- package/dist/FormFieldStatus/FormFieldStatus.d.mts.map +1 -0
- package/dist/FormFieldStatus/FormFieldStatus2.mjs +54 -0
- package/dist/FormFieldStatus/FormFieldStatus2.mjs.map +1 -0
- package/dist/FormFieldStatus/index.d.mts +2 -0
- package/dist/FormFieldset/FormFieldset.d.mts +100 -0
- package/dist/FormFieldset/FormFieldset.d.mts.map +1 -0
- package/dist/FormFieldset/FormFieldset2.mjs +100 -0
- package/dist/FormFieldset/FormFieldset2.mjs.map +1 -0
- package/dist/FormFieldset/index.d.mts +2 -0
- package/dist/Grid/Grid.d.mts +37 -0
- package/dist/Grid/Grid.d.mts.map +1 -0
- package/dist/Grid/Grid2.mjs +38 -0
- package/dist/Grid/Grid2.mjs.map +1 -0
- package/dist/Grid/GridItem.d.mts +87 -0
- package/dist/Grid/GridItem.d.mts.map +1 -0
- package/dist/Grid/GridItem.mjs +48 -0
- package/dist/Grid/GridItem.mjs.map +1 -0
- package/dist/Grid/index.d.mts +3 -0
- package/dist/Heading/Heading.d.mts +40 -0
- package/dist/Heading/Heading.d.mts.map +1 -0
- package/dist/Heading/Heading2.mjs +33 -0
- package/dist/Heading/Heading2.mjs.map +1 -0
- package/dist/Heading/index.d.mts +2 -0
- package/dist/HeadingGroup/HeadingGroup.d.mts +25 -0
- package/dist/HeadingGroup/HeadingGroup.d.mts.map +1 -0
- package/dist/HeadingGroup/HeadingGroup2.mjs +24 -0
- package/dist/HeadingGroup/HeadingGroup2.mjs.map +1 -0
- package/dist/HeadingGroup/index.d.mts +2 -0
- package/dist/Hero/Hero.d.mts +47 -0
- package/dist/Hero/Hero.d.mts.map +1 -0
- package/dist/Hero/Hero2.mjs +50 -0
- package/dist/Hero/Hero2.mjs.map +1 -0
- package/dist/Hero/index.d.mts +2 -0
- package/dist/Icon/Icon.d.mts +47 -0
- package/dist/Icon/Icon.d.mts.map +1 -0
- package/dist/Icon/Icon2.mjs +47 -0
- package/dist/Icon/Icon2.mjs.map +1 -0
- package/dist/Icon/icon-registry.generated.d.mts +8 -0
- package/dist/Icon/icon-registry.generated.d.mts.map +1 -0
- package/dist/Icon/icon-registry.generated.mjs +818 -0
- package/dist/Icon/icon-registry.generated.mjs.map +1 -0
- package/dist/Icon/index.d.mts +3 -0
- package/dist/IconList/IconList.d.mts +68 -0
- package/dist/IconList/IconList.d.mts.map +1 -0
- package/dist/IconList/IconList2.mjs +65 -0
- package/dist/IconList/IconList2.mjs.map +1 -0
- package/dist/IconList/index.d.mts +2 -0
- package/dist/Image/Image.d.mts +56 -0
- package/dist/Image/Image.d.mts.map +1 -0
- package/dist/Image/Image2.mjs +67 -0
- package/dist/Image/Image2.mjs.map +1 -0
- package/dist/Image/index.d.mts +2 -0
- package/dist/Link/Link.d.mts +82 -0
- package/dist/Link/Link.d.mts.map +1 -0
- package/dist/Link/Link2.mjs +73 -0
- package/dist/Link/Link2.mjs.map +1 -0
- package/dist/Link/index.d.mts +2 -0
- package/dist/LinkButton/LinkButton.d.mts +54 -0
- package/dist/LinkButton/LinkButton.d.mts.map +1 -0
- package/dist/LinkButton/LinkButton2.mjs +48 -0
- package/dist/LinkButton/LinkButton2.mjs.map +1 -0
- package/dist/LinkButton/index.d.mts +2 -0
- package/dist/Logo/Logo.d.mts +35 -0
- package/dist/Logo/Logo.d.mts.map +1 -0
- package/dist/Logo/Logo2.mjs +66 -0
- package/dist/Logo/Logo2.mjs.map +1 -0
- package/dist/Logo/index.d.mts +2 -0
- package/dist/Menu/Menu.d.mts +58 -0
- package/dist/Menu/Menu.d.mts.map +1 -0
- package/dist/Menu/Menu2.mjs +47 -0
- package/dist/Menu/Menu2.mjs.map +1 -0
- package/dist/Menu/index.d.mts +2 -0
- package/dist/MenuButton/MenuButton.d.mts +56 -0
- package/dist/MenuButton/MenuButton.d.mts.map +1 -0
- package/dist/MenuButton/MenuButton2.mjs +57 -0
- package/dist/MenuButton/MenuButton2.mjs.map +1 -0
- package/dist/MenuButton/index.d.mts +2 -0
- package/dist/MenuLink/MenuLink.d.mts +98 -0
- package/dist/MenuLink/MenuLink.d.mts.map +1 -0
- package/dist/MenuLink/MenuLink2.mjs +98 -0
- package/dist/MenuLink/MenuLink2.mjs.map +1 -0
- package/dist/MenuLink/index.d.mts +2 -0
- package/dist/ModalDialog/ModalDialog.d.mts +97 -0
- package/dist/ModalDialog/ModalDialog.d.mts.map +1 -0
- package/dist/ModalDialog/ModalDialog2.mjs +134 -0
- package/dist/ModalDialog/ModalDialog2.mjs.map +1 -0
- package/dist/ModalDialog/index.d.mts +2 -0
- package/dist/Note/Note.d.mts +95 -0
- package/dist/Note/Note.d.mts.map +1 -0
- package/dist/Note/Note2.mjs +116 -0
- package/dist/Note/Note2.mjs.map +1 -0
- package/dist/Note/index.d.mts +2 -0
- package/dist/NumberBadge/NumberBadge.d.mts +44 -0
- package/dist/NumberBadge/NumberBadge.d.mts.map +1 -0
- package/dist/NumberBadge/NumberBadge2.mjs +50 -0
- package/dist/NumberBadge/NumberBadge2.mjs.map +1 -0
- package/dist/NumberBadge/index.d.mts +2 -0
- package/dist/NumberInput/NumberInput.d.mts +47 -0
- package/dist/NumberInput/NumberInput.d.mts.map +1 -0
- package/dist/NumberInput/NumberInput.mjs +40 -0
- package/dist/NumberInput/NumberInput.mjs.map +1 -0
- package/dist/NumberInput/index.d.mts +2 -0
- package/dist/OptionLabel/OptionLabel.d.mts +15 -0
- package/dist/OptionLabel/OptionLabel.d.mts.map +1 -0
- package/dist/OptionLabel/OptionLabel2.mjs +22 -0
- package/dist/OptionLabel/OptionLabel2.mjs.map +1 -0
- package/dist/OptionLabel/index.d.mts +2 -0
- package/dist/OrderedList/OrderedList.d.mts +34 -0
- package/dist/OrderedList/OrderedList.d.mts.map +1 -0
- package/dist/OrderedList/OrderedList2.mjs +37 -0
- package/dist/OrderedList/OrderedList2.mjs.map +1 -0
- package/dist/OrderedList/index.d.mts +2 -0
- package/dist/PageBody/PageBody.d.mts +35 -0
- package/dist/PageBody/PageBody.d.mts.map +1 -0
- package/dist/PageBody/PageBody2.mjs +40 -0
- package/dist/PageBody/PageBody2.mjs.map +1 -0
- package/dist/PageBody/index.d.mts +2 -0
- package/dist/PageFooter/PageFooter.d.mts +57 -0
- package/dist/PageFooter/PageFooter.d.mts.map +1 -0
- package/dist/PageFooter/PageFooter2.mjs +78 -0
- package/dist/PageFooter/PageFooter2.mjs.map +1 -0
- package/dist/PageFooter/index.d.mts +2 -0
- package/dist/PageHeader/PageHeader.d.mts +192 -0
- package/dist/PageHeader/PageHeader.d.mts.map +1 -0
- package/dist/PageHeader/PageHeader2.mjs +275 -0
- package/dist/PageHeader/PageHeader2.mjs.map +1 -0
- package/dist/PageHeader/index.d.mts +2 -0
- package/dist/PageLayout/PageLayout.d.mts +40 -0
- package/dist/PageLayout/PageLayout.d.mts.map +1 -0
- package/dist/PageLayout/PageLayout2.mjs +42 -0
- package/dist/PageLayout/PageLayout2.mjs.map +1 -0
- package/dist/PageLayout/index.d.mts +2 -0
- package/dist/Paragraph/Paragraph.d.mts +37 -0
- package/dist/Paragraph/Paragraph.d.mts.map +1 -0
- package/dist/Paragraph/Paragraph2.mjs +34 -0
- package/dist/Paragraph/Paragraph2.mjs.map +1 -0
- package/dist/Paragraph/index.d.mts +2 -0
- package/dist/PasswordInput/PasswordInput.d.mts +54 -0
- package/dist/PasswordInput/PasswordInput.d.mts.map +1 -0
- package/dist/PasswordInput/PasswordInput.mjs +43 -0
- package/dist/PasswordInput/PasswordInput.mjs.map +1 -0
- package/dist/PasswordInput/index.d.mts +2 -0
- package/dist/Popover/Popover.d.mts +118 -0
- package/dist/Popover/Popover.d.mts.map +1 -0
- package/dist/Popover/Popover2.mjs +235 -0
- package/dist/Popover/Popover2.mjs.map +1 -0
- package/dist/Popover/index.d.mts +2 -0
- package/dist/PreHeading/PreHeading.d.mts +10 -0
- package/dist/PreHeading/PreHeading.d.mts.map +1 -0
- package/dist/PreHeading/PreHeading2.mjs +18 -0
- package/dist/PreHeading/PreHeading2.mjs.map +1 -0
- package/dist/PreHeading/index.d.mts +2 -0
- package/dist/ProgressBar/ProgressBar.d.mts +60 -0
- package/dist/ProgressBar/ProgressBar.d.mts.map +1 -0
- package/dist/ProgressBar/ProgressBar2.mjs +73 -0
- package/dist/ProgressBar/ProgressBar2.mjs.map +1 -0
- package/dist/ProgressBar/index.d.mts +2 -0
- package/dist/Radio/Radio.d.mts +16 -0
- package/dist/Radio/Radio.d.mts.map +1 -0
- package/dist/Radio/Radio2.mjs +31 -0
- package/dist/Radio/Radio2.mjs.map +1 -0
- package/dist/Radio/index.d.mts +2 -0
- package/dist/RadioGroup/RadioGroup.d.mts +39 -0
- package/dist/RadioGroup/RadioGroup.d.mts.map +1 -0
- package/dist/RadioGroup/RadioGroup2.mjs +46 -0
- package/dist/RadioGroup/RadioGroup2.mjs.map +1 -0
- package/dist/RadioGroup/index.d.mts +2 -0
- package/dist/RadioOption/RadioOption.d.mts +17 -0
- package/dist/RadioOption/RadioOption.d.mts.map +1 -0
- package/dist/RadioOption/RadioOption2.mjs +29 -0
- package/dist/RadioOption/RadioOption2.mjs.map +1 -0
- package/dist/RadioOption/index.d.mts +2 -0
- package/dist/SearchInput/SearchInput.d.mts +41 -0
- package/dist/SearchInput/SearchInput.d.mts.map +1 -0
- package/dist/SearchInput/SearchInput2.mjs +48 -0
- package/dist/SearchInput/SearchInput2.mjs.map +1 -0
- package/dist/SearchInput/index.d.mts +2 -0
- package/dist/Select/Select.d.mts +53 -0
- package/dist/Select/Select.d.mts.map +1 -0
- package/dist/Select/Select2.mjs +61 -0
- package/dist/Select/Select2.mjs.map +1 -0
- package/dist/Select/index.d.mts +2 -0
- package/dist/SkipLink/SkipLink.d.mts +37 -0
- package/dist/SkipLink/SkipLink.d.mts.map +1 -0
- package/dist/SkipLink/SkipLink2.mjs +33 -0
- package/dist/SkipLink/SkipLink2.mjs.map +1 -0
- package/dist/SkipLink/index.d.mts +2 -0
- package/dist/Spinner/Spinner.d.mts +45 -0
- package/dist/Spinner/Spinner.d.mts.map +1 -0
- package/dist/Spinner/Spinner2.mjs +58 -0
- package/dist/Spinner/Spinner2.mjs.map +1 -0
- package/dist/Spinner/index.d.mts +2 -0
- package/dist/Stack/Stack.d.mts +37 -0
- package/dist/Stack/Stack.d.mts.map +1 -0
- package/dist/Stack/Stack2.mjs +38 -0
- package/dist/Stack/Stack2.mjs.map +1 -0
- package/dist/Stack/index.d.mts +2 -0
- package/dist/StatusBadge/StatusBadge.d.mts +52 -0
- package/dist/StatusBadge/StatusBadge.d.mts.map +1 -0
- package/dist/StatusBadge/StatusBadge2.mjs +49 -0
- package/dist/StatusBadge/StatusBadge2.mjs.map +1 -0
- package/dist/StatusBadge/index.d.mts +2 -0
- package/dist/SummaryList/SummaryList.d.mts +51 -0
- package/dist/SummaryList/SummaryList.d.mts.map +1 -0
- package/dist/SummaryList/SummaryList2.mjs +66 -0
- package/dist/SummaryList/SummaryList2.mjs.map +1 -0
- package/dist/SummaryList/index.d.mts +2 -0
- package/dist/Table/Table.d.mts +63 -0
- package/dist/Table/Table.d.mts.map +1 -0
- package/dist/Table/Table2.mjs +54 -0
- package/dist/Table/Table2.mjs.map +1 -0
- package/dist/Table/index.d.mts +2 -0
- package/dist/TableOfContents/TableOfContents.d.mts +64 -0
- package/dist/TableOfContents/TableOfContents.d.mts.map +1 -0
- package/dist/TableOfContents/TableOfContents2.mjs +51 -0
- package/dist/TableOfContents/TableOfContents2.mjs.map +1 -0
- package/dist/TableOfContents/index.d.mts +2 -0
- package/dist/TelephoneInput/TelephoneInput.d.mts +40 -0
- package/dist/TelephoneInput/TelephoneInput.d.mts.map +1 -0
- package/dist/TelephoneInput/TelephoneInput.mjs +39 -0
- package/dist/TelephoneInput/TelephoneInput.mjs.map +1 -0
- package/dist/TelephoneInput/index.d.mts +2 -0
- package/dist/TextArea/TextArea.d.mts +46 -0
- package/dist/TextArea/TextArea.d.mts.map +1 -0
- package/dist/TextArea/TextArea2.mjs +43 -0
- package/dist/TextArea/TextArea2.mjs.map +1 -0
- package/dist/TextArea/index.d.mts +2 -0
- package/dist/TextInput/TextInput.d.mts +46 -0
- package/dist/TextInput/TextInput.d.mts.map +1 -0
- package/dist/TextInput/TextInput2.mjs +43 -0
- package/dist/TextInput/TextInput2.mjs.map +1 -0
- package/dist/TextInput/index.d.mts +2 -0
- package/dist/TimeInput/TimeInput.d.mts +38 -0
- package/dist/TimeInput/TimeInput.d.mts.map +1 -0
- package/dist/TimeInput/TimeInput2.mjs +69 -0
- package/dist/TimeInput/TimeInput2.mjs.map +1 -0
- package/dist/TimeInput/index.d.mts +2 -0
- package/dist/UnorderedList/UnorderedList.d.mts +28 -0
- package/dist/UnorderedList/UnorderedList.d.mts.map +1 -0
- package/dist/UnorderedList/UnorderedList2.mjs +31 -0
- package/dist/UnorderedList/UnorderedList2.mjs.map +1 -0
- package/dist/UnorderedList/index.d.mts +2 -0
- package/dist/index.css +3470 -3470
- package/dist/index.d.mts +150 -3874
- package/dist/index.mjs +76 -5006
- package/dist/utils/describeControl.mjs +25 -0
- package/dist/utils/describeControl.mjs.map +1 -0
- package/package.json +4 -3
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberBadge.d.mts","names":[],"sources":["../../src/NumberBadge/NumberBadge.tsx"],"mappings":";;KAIY;UAOK,yBAAyB,MAAM,eAAe;;;;;EAK7D,UAAU;;;;;EAMV;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BW,aAAW,MAAA,0BAAA,mBAAA,MAAA,cAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { classNames } from "@dsn-starter-kit/core";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/NumberBadge/NumberBadge.tsx
|
|
6
|
+
/**
|
|
7
|
+
* NumberBadge component
|
|
8
|
+
* Compact inline-element dat een getal toont — zoals het aantal ongelezen berichten
|
|
9
|
+
* of openstaande taken. Geplaatst binnen een Button of Menu-item, naast het label.
|
|
10
|
+
*
|
|
11
|
+
* Altijd aria-hidden="true" — context via dsn-visually-hidden in de parent.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* // Basis gebruik — inline in een Button
|
|
16
|
+
* <Button variant="subtle" iconStart={<Icon name="inbox" aria-hidden />}>
|
|
17
|
+
* Inbox
|
|
18
|
+
* <NumberBadge variant="negative">5</NumberBadge>
|
|
19
|
+
* </Button>
|
|
20
|
+
*
|
|
21
|
+
* // Afgekapt getal — toont "99+" als count > 99
|
|
22
|
+
* <Button variant="subtle" iconStart={<Icon name="inbox" aria-hidden />}>
|
|
23
|
+
* <span>
|
|
24
|
+
* Inbox
|
|
25
|
+
* <span className="dsn-visually-hidden">, 128 ongelezen berichten</span>
|
|
26
|
+
* </span>
|
|
27
|
+
* <NumberBadge variant="negative" maxCount={99}>128</NumberBadge>
|
|
28
|
+
* </Button>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
const NumberBadge = React.forwardRef(({ className, variant = "negative", maxCount, children, ...props }, ref) => {
|
|
32
|
+
const classes = classNames("dsn-number-badge", `dsn-number-badge--${variant}`, className);
|
|
33
|
+
let displayValue = children;
|
|
34
|
+
if (maxCount !== void 0) {
|
|
35
|
+
const numeric = typeof children === "number" ? children : typeof children === "string" && /^\d+$/.test(children) ? parseInt(children, 10) : null;
|
|
36
|
+
if (numeric !== null && numeric > maxCount) displayValue = `${maxCount}+`;
|
|
37
|
+
}
|
|
38
|
+
return /* @__PURE__ */ jsx("span", {
|
|
39
|
+
ref,
|
|
40
|
+
className: classes,
|
|
41
|
+
"aria-hidden": "true",
|
|
42
|
+
...props,
|
|
43
|
+
children: displayValue
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
NumberBadge.displayName = "NumberBadge";
|
|
47
|
+
//#endregion
|
|
48
|
+
export { NumberBadge };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=NumberBadge2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberBadge2.mjs","names":[],"sources":["../../src/NumberBadge/NumberBadge.tsx"],"sourcesContent":["import React from 'react';\nimport { classNames } from '@dsn-starter-kit/core';\nimport './NumberBadge.css';\n\nexport type NumberBadgeVariant =\n | 'negative'\n | 'positive'\n | 'warning'\n | 'info'\n | 'neutral';\n\nexport interface NumberBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {\n /**\n * Signaalkleur van de badge\n * @default 'negative'\n */\n variant?: NumberBadgeVariant;\n\n /**\n * Als `children` als getal groter is dan `maxCount`, wordt `{maxCount}+` getoond.\n * Heeft geen effect als `children` geen getal is.\n */\n maxCount?: number;\n}\n\n/**\n * NumberBadge component\n * Compact inline-element dat een getal toont — zoals het aantal ongelezen berichten\n * of openstaande taken. Geplaatst binnen een Button of Menu-item, naast het label.\n *\n * Altijd aria-hidden=\"true\" — context via dsn-visually-hidden in de parent.\n *\n * @example\n * ```tsx\n * // Basis gebruik — inline in een Button\n * <Button variant=\"subtle\" iconStart={<Icon name=\"inbox\" aria-hidden />}>\n * Inbox\n * <NumberBadge variant=\"negative\">5</NumberBadge>\n * </Button>\n *\n * // Afgekapt getal — toont \"99+\" als count > 99\n * <Button variant=\"subtle\" iconStart={<Icon name=\"inbox\" aria-hidden />}>\n * <span>\n * Inbox\n * <span className=\"dsn-visually-hidden\">, 128 ongelezen berichten</span>\n * </span>\n * <NumberBadge variant=\"negative\" maxCount={99}>128</NumberBadge>\n * </Button>\n * ```\n */\nexport const NumberBadge = React.forwardRef<HTMLSpanElement, NumberBadgeProps>(\n ({ className, variant = 'negative', maxCount, children, ...props }, ref) => {\n const classes = classNames(\n 'dsn-number-badge',\n `dsn-number-badge--${variant}`,\n className\n );\n\n let displayValue: React.ReactNode = children;\n if (maxCount !== undefined) {\n const numeric =\n typeof children === 'number'\n ? children\n : typeof children === 'string' && /^\\d+$/.test(children)\n ? parseInt(children, 10)\n : null;\n if (numeric !== null && numeric > maxCount) {\n displayValue = `${maxCount}+`;\n }\n }\n\n return (\n <span ref={ref} className={classes} aria-hidden=\"true\" {...props}>\n {displayValue}\n </span>\n );\n }\n);\n\nNumberBadge.displayName = 'NumberBadge';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA,MAAa,cAAc,MAAM,YAC9B,EAAE,WAAW,UAAU,YAAY,UAAU,UAAU,GAAG,SAAS,QAAQ;CAC1E,MAAM,UAAU,WACd,oBACA,qBAAqB,WACrB,SACF;CAEA,IAAI,eAAgC;CACpC,IAAI,aAAa,KAAA,GAAW;EAC1B,MAAM,UACJ,OAAO,aAAa,WAChB,WACA,OAAO,aAAa,YAAY,QAAQ,KAAK,QAAQ,IACnD,SAAS,UAAU,EAAE,IACrB;EACR,IAAI,YAAY,QAAQ,UAAU,UAChC,eAAe,GAAG,SAAS;CAE/B;CAEA,OACE,oBAAC,QAAD;EAAW;EAAK,WAAW;EAAS,eAAY;EAAO,GAAI;EACxD,UAAA;CACG,CAAA;AAEV,CACF;AAEA,YAAY,cAAc"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FormControlWidth } from "@dsn-starter-kit/core";
|
|
3
|
+
//#region src/NumberInput/NumberInput.d.ts
|
|
4
|
+
interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
5
|
+
/**
|
|
6
|
+
* Whether the input is in an invalid state
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
invalid?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Width variant for the input
|
|
12
|
+
* @default undefined (uses default max-width from form-control)
|
|
13
|
+
*/
|
|
14
|
+
width?: FormControlWidth;
|
|
15
|
+
/**
|
|
16
|
+
* Allow decimal input (e.g. amounts). When false, uses GOV.UK pattern:
|
|
17
|
+
* inputmode="numeric" + pattern="[0-9]*" for a numeric-only keyboard.
|
|
18
|
+
* When true, uses inputmode="decimal" without pattern restriction.
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
allowDecimals?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Additional CSS class names
|
|
24
|
+
*/
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Number Input component
|
|
29
|
+
* Uses type="text" with inputmode="decimal" for better mobile UX (no spinner buttons)
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* // Basic usage
|
|
34
|
+
* <NumberInput placeholder="0,00" />
|
|
35
|
+
*
|
|
36
|
+
* // With label
|
|
37
|
+
* <FormFieldLabel htmlFor="amount">Bedrag</FormFieldLabel>
|
|
38
|
+
* <NumberInput id="amount" />
|
|
39
|
+
*
|
|
40
|
+
* // Invalid state
|
|
41
|
+
* <NumberInput invalid aria-invalid="true" aria-describedby="error" />
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { NumberInput, NumberInputProps };
|
|
47
|
+
//# sourceMappingURL=NumberInput.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberInput.d.mts","names":[],"sources":["../../src/NumberInput/NumberInput.tsx"],"mappings":";;;UAIiB,yBAAyB,KACxC,MAAM,oBAAoB;;;;;EAO1B;;;;;EAMA,QAAQ;;;;;;;EAQR;;;;EAKA;;;;;;;;;;;;;;;;;;;cAoBW,aAAW,MAAA,0BAAA,mBAAA,MAAA,cAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { classNames } from "@dsn-starter-kit/core";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/NumberInput/NumberInput.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Number Input component
|
|
8
|
+
* Uses type="text" with inputmode="decimal" for better mobile UX (no spinner buttons)
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* // Basic usage
|
|
13
|
+
* <NumberInput placeholder="0,00" />
|
|
14
|
+
*
|
|
15
|
+
* // With label
|
|
16
|
+
* <FormFieldLabel htmlFor="amount">Bedrag</FormFieldLabel>
|
|
17
|
+
* <NumberInput id="amount" />
|
|
18
|
+
*
|
|
19
|
+
* // Invalid state
|
|
20
|
+
* <NumberInput invalid aria-invalid="true" aria-describedby="error" />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
const NumberInput = React.forwardRef(({ className, invalid, width, allowDecimals = false, ...props }, ref) => {
|
|
24
|
+
const classes = classNames("dsn-text-input", width && `dsn-text-input--width-${width}`, className);
|
|
25
|
+
return /* @__PURE__ */ jsx("input", {
|
|
26
|
+
ref,
|
|
27
|
+
type: "text",
|
|
28
|
+
inputMode: allowDecimals ? "decimal" : "numeric",
|
|
29
|
+
pattern: allowDecimals ? void 0 : "[0-9]*",
|
|
30
|
+
className: classes,
|
|
31
|
+
"aria-invalid": invalid || void 0,
|
|
32
|
+
autoComplete: "off",
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
NumberInput.displayName = "NumberInput";
|
|
37
|
+
//#endregion
|
|
38
|
+
export { NumberInput };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=NumberInput.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberInput.mjs","names":[],"sources":["../../src/NumberInput/NumberInput.tsx"],"sourcesContent":["import React from 'react';\nimport { classNames, FormControlWidth } from '@dsn-starter-kit/core';\nimport '../TextInput/TextInput.css';\n\nexport interface NumberInputProps extends Omit<\n React.InputHTMLAttributes<HTMLInputElement>,\n 'type'\n> {\n /**\n * Whether the input is in an invalid state\n * @default false\n */\n invalid?: boolean;\n\n /**\n * Width variant for the input\n * @default undefined (uses default max-width from form-control)\n */\n width?: FormControlWidth;\n\n /**\n * Allow decimal input (e.g. amounts). When false, uses GOV.UK pattern:\n * inputmode=\"numeric\" + pattern=\"[0-9]*\" for a numeric-only keyboard.\n * When true, uses inputmode=\"decimal\" without pattern restriction.\n * @default false\n */\n allowDecimals?: boolean;\n\n /**\n * Additional CSS class names\n */\n className?: string;\n}\n\n/**\n * Number Input component\n * Uses type=\"text\" with inputmode=\"decimal\" for better mobile UX (no spinner buttons)\n *\n * @example\n * ```tsx\n * // Basic usage\n * <NumberInput placeholder=\"0,00\" />\n *\n * // With label\n * <FormFieldLabel htmlFor=\"amount\">Bedrag</FormFieldLabel>\n * <NumberInput id=\"amount\" />\n *\n * // Invalid state\n * <NumberInput invalid aria-invalid=\"true\" aria-describedby=\"error\" />\n * ```\n */\nexport const NumberInput = React.forwardRef<HTMLInputElement, NumberInputProps>(\n ({ className, invalid, width, allowDecimals = false, ...props }, ref) => {\n const classes = classNames(\n 'dsn-text-input',\n width && `dsn-text-input--width-${width}`,\n className\n );\n\n return (\n <input\n ref={ref}\n type=\"text\"\n inputMode={allowDecimals ? 'decimal' : 'numeric'}\n pattern={allowDecimals ? undefined : '[0-9]*'}\n className={classes}\n aria-invalid={invalid || undefined}\n autoComplete=\"off\"\n {...props}\n />\n );\n }\n);\n\nNumberInput.displayName = 'NumberInput';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAmDA,MAAa,cAAc,MAAM,YAC9B,EAAE,WAAW,SAAS,OAAO,gBAAgB,OAAO,GAAG,SAAS,QAAQ;CACvE,MAAM,UAAU,WACd,kBACA,SAAS,yBAAyB,SAClC,SACF;CAEA,OACE,oBAAC,SAAD;EACO;EACL,MAAK;EACL,WAAW,gBAAgB,YAAY;EACvC,SAAS,gBAAgB,KAAA,IAAY;EACrC,WAAW;EACX,gBAAc,WAAW,KAAA;EACzB,cAAa;EACb,GAAI;CACL,CAAA;AAEL,CACF;AAEA,YAAY,cAAc"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
//#region src/OptionLabel/OptionLabel.d.ts
|
|
3
|
+
interface OptionLabelProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Whether the label is for a disabled input
|
|
6
|
+
*/
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Label component for checkbox and radio button options
|
|
11
|
+
*/
|
|
12
|
+
declare const OptionLabel: React.ForwardRefExoticComponent<OptionLabelProps & React.RefAttributes<HTMLSpanElement>>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { OptionLabel, OptionLabelProps };
|
|
15
|
+
//# sourceMappingURL=OptionLabel.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OptionLabel.d.mts","names":[],"sources":["../../src/OptionLabel/OptionLabel.tsx"],"mappings":";;UAIiB,yBAAyB,MAAM,eAAe;;;;EAI7D;;;;;cAMW,aAAW,MAAA,0BAAA,mBAAA,MAAA,cAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { classNames } from "@dsn-starter-kit/core";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/OptionLabel/OptionLabel.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Label component for checkbox and radio button options
|
|
8
|
+
*/
|
|
9
|
+
const OptionLabel = React.forwardRef(({ disabled, className, children, ...props }, ref) => {
|
|
10
|
+
const classes = classNames("dsn-option-label", disabled && "dsn-option-label--disabled", className);
|
|
11
|
+
return /* @__PURE__ */ jsx("span", {
|
|
12
|
+
ref,
|
|
13
|
+
className: classes,
|
|
14
|
+
...props,
|
|
15
|
+
children
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
OptionLabel.displayName = "OptionLabel";
|
|
19
|
+
//#endregion
|
|
20
|
+
export { OptionLabel };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=OptionLabel2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OptionLabel2.mjs","names":[],"sources":["../../src/OptionLabel/OptionLabel.tsx"],"sourcesContent":["import React from 'react';\nimport { classNames } from '@dsn-starter-kit/core';\nimport './OptionLabel.css';\n\nexport interface OptionLabelProps extends React.HTMLAttributes<HTMLSpanElement> {\n /**\n * Whether the label is for a disabled input\n */\n disabled?: boolean;\n}\n\n/**\n * Label component for checkbox and radio button options\n */\nexport const OptionLabel = React.forwardRef<HTMLSpanElement, OptionLabelProps>(\n ({ disabled, className, children, ...props }, ref) => {\n const classes = classNames(\n 'dsn-option-label',\n disabled && 'dsn-option-label--disabled',\n className\n );\n\n return (\n <span ref={ref} className={classes} {...props}>\n {children}\n </span>\n );\n }\n);\n\nOptionLabel.displayName = 'OptionLabel';\n"],"mappings":";;;;;;;;AAcA,MAAa,cAAc,MAAM,YAC9B,EAAE,UAAU,WAAW,UAAU,GAAG,SAAS,QAAQ;CACpD,MAAM,UAAU,WACd,oBACA,YAAY,8BACZ,SACF;CAEA,OACE,oBAAC,QAAD;EAAW;EAAK,WAAW;EAAS,GAAI;EACrC;CACG,CAAA;AAEV,CACF;AAEA,YAAY,cAAc"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
//#region src/OrderedList/OrderedList.d.ts
|
|
3
|
+
interface OrderedListProps extends React.OlHTMLAttributes<HTMLOListElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Additional CSS class names
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* List content (li elements)
|
|
10
|
+
*/
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Ordered list component with numbered markers
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <OrderedList>
|
|
19
|
+
* <li>First step</li>
|
|
20
|
+
* <li>Second step</li>
|
|
21
|
+
* <li>Third step</li>
|
|
22
|
+
* </OrderedList>
|
|
23
|
+
*
|
|
24
|
+
* // Starting from a specific number
|
|
25
|
+
* <OrderedList start={5}>
|
|
26
|
+
* <li>Fifth step</li>
|
|
27
|
+
* <li>Sixth step</li>
|
|
28
|
+
* </OrderedList>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare const OrderedList: React.ForwardRefExoticComponent<OrderedListProps & React.RefAttributes<HTMLOListElement>>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { OrderedList, OrderedListProps };
|
|
34
|
+
//# sourceMappingURL=OrderedList.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrderedList.d.mts","names":[],"sources":["../../src/OrderedList/OrderedList.tsx"],"mappings":";;UAIiB,yBAAyB,MAAM,iBAAiB;;;;EAI/D;;;;EAKA,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;cAqBN,aAAW,MAAA,0BAAA,mBAAA,MAAA,cAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { classNames } from "@dsn-starter-kit/core";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/OrderedList/OrderedList.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Ordered list component with numbered markers
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <OrderedList>
|
|
12
|
+
* <li>First step</li>
|
|
13
|
+
* <li>Second step</li>
|
|
14
|
+
* <li>Third step</li>
|
|
15
|
+
* </OrderedList>
|
|
16
|
+
*
|
|
17
|
+
* // Starting from a specific number
|
|
18
|
+
* <OrderedList start={5}>
|
|
19
|
+
* <li>Fifth step</li>
|
|
20
|
+
* <li>Sixth step</li>
|
|
21
|
+
* </OrderedList>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
const OrderedList = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
25
|
+
const classes = classNames("dsn-ordered-list", className);
|
|
26
|
+
return /* @__PURE__ */ jsx("ol", {
|
|
27
|
+
ref,
|
|
28
|
+
className: classes,
|
|
29
|
+
...props,
|
|
30
|
+
children
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
OrderedList.displayName = "OrderedList";
|
|
34
|
+
//#endregion
|
|
35
|
+
export { OrderedList };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=OrderedList2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrderedList2.mjs","names":[],"sources":["../../src/OrderedList/OrderedList.tsx"],"sourcesContent":["import React from 'react';\nimport { classNames } from '@dsn-starter-kit/core';\nimport './OrderedList.css';\n\nexport interface OrderedListProps extends React.OlHTMLAttributes<HTMLOListElement> {\n /**\n * Additional CSS class names\n */\n className?: string;\n\n /**\n * List content (li elements)\n */\n children?: React.ReactNode;\n}\n\n/**\n * Ordered list component with numbered markers\n *\n * @example\n * ```tsx\n * <OrderedList>\n * <li>First step</li>\n * <li>Second step</li>\n * <li>Third step</li>\n * </OrderedList>\n *\n * // Starting from a specific number\n * <OrderedList start={5}>\n * <li>Fifth step</li>\n * <li>Sixth step</li>\n * </OrderedList>\n * ```\n */\nexport const OrderedList = React.forwardRef<HTMLOListElement, OrderedListProps>(\n ({ className, children, ...props }, ref) => {\n const classes = classNames('dsn-ordered-list', className);\n\n return (\n <ol ref={ref} className={classes} {...props}>\n {children}\n </ol>\n );\n }\n);\n\nOrderedList.displayName = 'OrderedList';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAkCA,MAAa,cAAc,MAAM,YAC9B,EAAE,WAAW,UAAU,GAAG,SAAS,QAAQ;CAC1C,MAAM,UAAU,WAAW,oBAAoB,SAAS;CAExD,OACE,oBAAC,MAAD;EAAS;EAAK,WAAW;EAAS,GAAI;EACnC;CACC,CAAA;AAER,CACF;AAEA,YAAY,cAAc"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
//#region src/PageBody/PageBody.d.ts
|
|
3
|
+
interface PageBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* De paginainhoud: doorgaans een `<main>` element met `id="main-content"`.
|
|
6
|
+
*/
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Extra CSS-klassen
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* PageBody component
|
|
15
|
+
* Structurele wrapper voor de hoofdinhoud van een pagina. Vult de beschikbare
|
|
16
|
+
* verticale ruimte op binnen `PageLayout` zodat `PageFooter` altijd onderaan
|
|
17
|
+
* de viewport staat (sticky footer patroon via `flex: 1`).
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* <PageLayout>
|
|
22
|
+
* <PageHeader logoSlot={<Logo />} />
|
|
23
|
+
* <PageBody>
|
|
24
|
+
* <main id="main-content" tabIndex={-1}>
|
|
25
|
+
* <Container>...</Container>
|
|
26
|
+
* </main>
|
|
27
|
+
* </PageBody>
|
|
28
|
+
* <PageFooter slot1={<Logo />} />
|
|
29
|
+
* </PageLayout>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const PageBody: React.ForwardRefExoticComponent<PageBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { PageBody, PageBodyProps };
|
|
35
|
+
//# sourceMappingURL=PageBody.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageBody.d.mts","names":[],"sources":["../../src/PageBody/PageBody.tsx"],"mappings":";;UAIiB,sBAAsB,MAAM,eAAe;;;;EAI1D,UAAU,MAAM;;;;EAKhB;;;;;;;;;;;;;;;;;;;;;cAsBW,UAAQ,MAAA,0BAAA,gBAAA,MAAA,cAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { classNames } from "@dsn-starter-kit/core";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/PageBody/PageBody.tsx
|
|
6
|
+
/**
|
|
7
|
+
* PageBody component
|
|
8
|
+
* Structurele wrapper voor de hoofdinhoud van een pagina. Vult de beschikbare
|
|
9
|
+
* verticale ruimte op binnen `PageLayout` zodat `PageFooter` altijd onderaan
|
|
10
|
+
* de viewport staat (sticky footer patroon via `flex: 1`).
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <PageLayout>
|
|
15
|
+
* <PageHeader logoSlot={<Logo />} />
|
|
16
|
+
* <PageBody>
|
|
17
|
+
* <main id="main-content" tabIndex={-1}>
|
|
18
|
+
* <Container>...</Container>
|
|
19
|
+
* </main>
|
|
20
|
+
* </PageBody>
|
|
21
|
+
* <PageFooter slot1={<Logo />} />
|
|
22
|
+
* </PageLayout>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
const PageBody = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
26
|
+
return /* @__PURE__ */ jsx("div", {
|
|
27
|
+
ref,
|
|
28
|
+
className: classNames("dsn-page-body", className),
|
|
29
|
+
...props,
|
|
30
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
31
|
+
className: "dsn-page-body__inner",
|
|
32
|
+
children
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
PageBody.displayName = "PageBody";
|
|
37
|
+
//#endregion
|
|
38
|
+
export { PageBody };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=PageBody2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageBody2.mjs","names":[],"sources":["../../src/PageBody/PageBody.tsx"],"sourcesContent":["import React from 'react';\nimport { classNames } from '@dsn-starter-kit/core';\nimport './PageBody.css';\n\nexport interface PageBodyProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * De paginainhoud: doorgaans een `<main>` element met `id=\"main-content\"`.\n */\n children: React.ReactNode;\n\n /**\n * Extra CSS-klassen\n */\n className?: string;\n}\n\n/**\n * PageBody component\n * Structurele wrapper voor de hoofdinhoud van een pagina. Vult de beschikbare\n * verticale ruimte op binnen `PageLayout` zodat `PageFooter` altijd onderaan\n * de viewport staat (sticky footer patroon via `flex: 1`).\n *\n * @example\n * ```tsx\n * <PageLayout>\n * <PageHeader logoSlot={<Logo />} />\n * <PageBody>\n * <main id=\"main-content\" tabIndex={-1}>\n * <Container>...</Container>\n * </main>\n * </PageBody>\n * <PageFooter slot1={<Logo />} />\n * </PageLayout>\n * ```\n */\nexport const PageBody = React.forwardRef<HTMLDivElement, PageBodyProps>(\n ({ className, children, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={classNames('dsn-page-body', className)}\n {...props}\n >\n <div className=\"dsn-page-body__inner\">{children}</div>\n </div>\n );\n }\n);\n\nPageBody.displayName = 'PageBody';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAmCA,MAAa,WAAW,MAAM,YAC3B,EAAE,WAAW,UAAU,GAAG,SAAS,QAAQ;CAC1C,OACE,oBAAC,OAAD;EACO;EACL,WAAW,WAAW,iBAAiB,SAAS;EAChD,GAAI;EAEJ,UAAA,oBAAC,OAAD;GAAK,WAAU;GAAwB;EAAc,CAAA;CAClD,CAAA;AAET,CACF;AAEA,SAAS,cAAc"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
//#region src/PageFooter/PageFooter.d.ts
|
|
3
|
+
type PageFooterColorScheme = 'default' | 'inverse';
|
|
4
|
+
interface PageFooterProps extends Omit<React.HTMLAttributes<HTMLElement>, 'children'> {
|
|
5
|
+
/** Kolom 1 (inline-start). Doorgaans het organisatielogo in een `<a>`. */
|
|
6
|
+
slot1?: React.ReactNode;
|
|
7
|
+
/** Kolom 2. Optioneel — wordt niet gerenderd als weggelaten. */
|
|
8
|
+
slot2?: React.ReactNode;
|
|
9
|
+
/** Kolom 3. Vrije inhoud: navigatielinks, tekst, adressen, etc. */
|
|
10
|
+
slot3?: React.ReactNode;
|
|
11
|
+
/** Kolom 4 (inline-end). Vrije inhoud: juridische links, social media, etc. */
|
|
12
|
+
slot4?: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Kleurschema van de footer.
|
|
15
|
+
* - `default`: accent-1 achtergrond (`bg-default`)
|
|
16
|
+
* - `inverse`: accent-1-inverse achtergrond voor een donkere huisstijlvariant
|
|
17
|
+
* @default 'default'
|
|
18
|
+
*/
|
|
19
|
+
colorScheme?: PageFooterColorScheme;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* PageFooter component
|
|
23
|
+
* Paginavoettekst met accent-1 achtergrond, dikke border-block-start en
|
|
24
|
+
* een 4-koloms grid. Responsief: verticale stapeling op mobiel,
|
|
25
|
+
* vier gelijke kolommen op grote viewports (≥ 64em).
|
|
26
|
+
*
|
|
27
|
+
* Het `<footer>` element als directe afstammeling van `<body>` heeft
|
|
28
|
+
* impliciet `role="contentinfo"` — geen extra attribuut nodig.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* <PageFooter
|
|
33
|
+
* slot1={
|
|
34
|
+
* <a href="/">
|
|
35
|
+
* <Logo aria-hidden={true} />
|
|
36
|
+
* <span className="dsn-visually-hidden">Starter Kit — terug naar homepage</span>
|
|
37
|
+
* </a>
|
|
38
|
+
* }
|
|
39
|
+
* slot3={
|
|
40
|
+
* <UnorderedList>
|
|
41
|
+
* <li><Link href="/nieuws">Nieuws</Link></li>
|
|
42
|
+
* <li><Link href="/over-ons">Over ons</Link></li>
|
|
43
|
+
* </UnorderedList>
|
|
44
|
+
* }
|
|
45
|
+
* slot4={
|
|
46
|
+
* <UnorderedList>
|
|
47
|
+
* <li><Link href="/privacy">Privacyverklaring</Link></li>
|
|
48
|
+
* <li><Link href="/accessibility">Toegankelijkheid</Link></li>
|
|
49
|
+
* </UnorderedList>
|
|
50
|
+
* }
|
|
51
|
+
* />
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
declare const PageFooter: React.ForwardRefExoticComponent<PageFooterProps & React.RefAttributes<HTMLElement>>;
|
|
55
|
+
//#endregion
|
|
56
|
+
export { PageFooter, PageFooterColorScheme, PageFooterProps };
|
|
57
|
+
//# sourceMappingURL=PageFooter.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageFooter.d.mts","names":[],"sources":["../../src/PageFooter/PageFooter.tsx"],"mappings":";;KAMY;UAEK,wBAAwB,KACvC,MAAM,eAAe;;EAIrB,QAAQ,MAAM;;EAGd,QAAQ,MAAM;;EAGd,QAAQ,MAAM;;EAGd,QAAQ,MAAM;;;;;;;EAQd,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoCH,YAAU,MAAA,0BAAA,kBAAA,MAAA,cAAA"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Grid } from "../Grid/Grid2.mjs";
|
|
2
|
+
import { GridItem } from "../Grid/GridItem.mjs";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { classNames } from "@dsn-starter-kit/core";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region src/PageFooter/PageFooter.tsx
|
|
8
|
+
/**
|
|
9
|
+
* PageFooter component
|
|
10
|
+
* Paginavoettekst met accent-1 achtergrond, dikke border-block-start en
|
|
11
|
+
* een 4-koloms grid. Responsief: verticale stapeling op mobiel,
|
|
12
|
+
* vier gelijke kolommen op grote viewports (≥ 64em).
|
|
13
|
+
*
|
|
14
|
+
* Het `<footer>` element als directe afstammeling van `<body>` heeft
|
|
15
|
+
* impliciet `role="contentinfo"` — geen extra attribuut nodig.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <PageFooter
|
|
20
|
+
* slot1={
|
|
21
|
+
* <a href="/">
|
|
22
|
+
* <Logo aria-hidden={true} />
|
|
23
|
+
* <span className="dsn-visually-hidden">Starter Kit — terug naar homepage</span>
|
|
24
|
+
* </a>
|
|
25
|
+
* }
|
|
26
|
+
* slot3={
|
|
27
|
+
* <UnorderedList>
|
|
28
|
+
* <li><Link href="/nieuws">Nieuws</Link></li>
|
|
29
|
+
* <li><Link href="/over-ons">Over ons</Link></li>
|
|
30
|
+
* </UnorderedList>
|
|
31
|
+
* }
|
|
32
|
+
* slot4={
|
|
33
|
+
* <UnorderedList>
|
|
34
|
+
* <li><Link href="/privacy">Privacyverklaring</Link></li>
|
|
35
|
+
* <li><Link href="/accessibility">Toegankelijkheid</Link></li>
|
|
36
|
+
* </UnorderedList>
|
|
37
|
+
* }
|
|
38
|
+
* />
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
const PageFooter = React.forwardRef(({ className, slot1, slot2, slot3, slot4, colorScheme = "default", ...props }, ref) => {
|
|
42
|
+
const classes = classNames("dsn-page-footer", colorScheme === "inverse" && "dsn-page-footer--inverse", className);
|
|
43
|
+
return /* @__PURE__ */ jsx("footer", {
|
|
44
|
+
ref,
|
|
45
|
+
className: classes,
|
|
46
|
+
...props,
|
|
47
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
48
|
+
className: "dsn-page-footer__inner",
|
|
49
|
+
children: /* @__PURE__ */ jsxs(Grid, { children: [
|
|
50
|
+
slot1 && /* @__PURE__ */ jsx(GridItem, {
|
|
51
|
+
colSpan: 12,
|
|
52
|
+
colSpanLg: 3,
|
|
53
|
+
children: slot1
|
|
54
|
+
}),
|
|
55
|
+
slot2 && /* @__PURE__ */ jsx(GridItem, {
|
|
56
|
+
colSpan: 12,
|
|
57
|
+
colSpanLg: 3,
|
|
58
|
+
children: slot2
|
|
59
|
+
}),
|
|
60
|
+
slot3 && /* @__PURE__ */ jsx(GridItem, {
|
|
61
|
+
colSpan: 12,
|
|
62
|
+
colSpanLg: 3,
|
|
63
|
+
children: slot3
|
|
64
|
+
}),
|
|
65
|
+
slot4 && /* @__PURE__ */ jsx(GridItem, {
|
|
66
|
+
colSpan: 12,
|
|
67
|
+
colSpanLg: 3,
|
|
68
|
+
children: slot4
|
|
69
|
+
})
|
|
70
|
+
] })
|
|
71
|
+
})
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
PageFooter.displayName = "PageFooter";
|
|
75
|
+
//#endregion
|
|
76
|
+
export { PageFooter };
|
|
77
|
+
|
|
78
|
+
//# sourceMappingURL=PageFooter2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageFooter2.mjs","names":[],"sources":["../../src/PageFooter/PageFooter.tsx"],"sourcesContent":["import React from 'react';\nimport { classNames } from '@dsn-starter-kit/core';\nimport { Grid } from '../Grid';\nimport { GridItem } from '../Grid';\nimport './PageFooter.css';\n\nexport type PageFooterColorScheme = 'default' | 'inverse';\n\nexport interface PageFooterProps extends Omit<\n React.HTMLAttributes<HTMLElement>,\n 'children'\n> {\n /** Kolom 1 (inline-start). Doorgaans het organisatielogo in een `<a>`. */\n slot1?: React.ReactNode;\n\n /** Kolom 2. Optioneel — wordt niet gerenderd als weggelaten. */\n slot2?: React.ReactNode;\n\n /** Kolom 3. Vrije inhoud: navigatielinks, tekst, adressen, etc. */\n slot3?: React.ReactNode;\n\n /** Kolom 4 (inline-end). Vrije inhoud: juridische links, social media, etc. */\n slot4?: React.ReactNode;\n\n /**\n * Kleurschema van de footer.\n * - `default`: accent-1 achtergrond (`bg-default`)\n * - `inverse`: accent-1-inverse achtergrond voor een donkere huisstijlvariant\n * @default 'default'\n */\n colorScheme?: PageFooterColorScheme;\n}\n\n/**\n * PageFooter component\n * Paginavoettekst met accent-1 achtergrond, dikke border-block-start en\n * een 4-koloms grid. Responsief: verticale stapeling op mobiel,\n * vier gelijke kolommen op grote viewports (≥ 64em).\n *\n * Het `<footer>` element als directe afstammeling van `<body>` heeft\n * impliciet `role=\"contentinfo\"` — geen extra attribuut nodig.\n *\n * @example\n * ```tsx\n * <PageFooter\n * slot1={\n * <a href=\"/\">\n * <Logo aria-hidden={true} />\n * <span className=\"dsn-visually-hidden\">Starter Kit — terug naar homepage</span>\n * </a>\n * }\n * slot3={\n * <UnorderedList>\n * <li><Link href=\"/nieuws\">Nieuws</Link></li>\n * <li><Link href=\"/over-ons\">Over ons</Link></li>\n * </UnorderedList>\n * }\n * slot4={\n * <UnorderedList>\n * <li><Link href=\"/privacy\">Privacyverklaring</Link></li>\n * <li><Link href=\"/accessibility\">Toegankelijkheid</Link></li>\n * </UnorderedList>\n * }\n * />\n * ```\n */\nexport const PageFooter = React.forwardRef<HTMLElement, PageFooterProps>(\n (\n {\n className,\n slot1,\n slot2,\n slot3,\n slot4,\n colorScheme = 'default',\n ...props\n },\n ref\n ) => {\n const classes = classNames(\n 'dsn-page-footer',\n colorScheme === 'inverse' && 'dsn-page-footer--inverse',\n className\n );\n\n return (\n <footer ref={ref} className={classes} {...props}>\n <div className=\"dsn-page-footer__inner\">\n <Grid>\n {slot1 && (\n <GridItem colSpan={12} colSpanLg={3}>\n {slot1}\n </GridItem>\n )}\n {slot2 && (\n <GridItem colSpan={12} colSpanLg={3}>\n {slot2}\n </GridItem>\n )}\n {slot3 && (\n <GridItem colSpan={12} colSpanLg={3}>\n {slot3}\n </GridItem>\n )}\n {slot4 && (\n <GridItem colSpan={12} colSpanLg={3}>\n {slot4}\n </GridItem>\n )}\n </Grid>\n </div>\n </footer>\n );\n }\n);\n\nPageFooter.displayName = 'PageFooter';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEA,MAAa,aAAa,MAAM,YAE5B,EACE,WACA,OACA,OACA,OACA,OACA,cAAc,WACd,GAAG,SAEL,QACG;CACH,MAAM,UAAU,WACd,mBACA,gBAAgB,aAAa,4BAC7B,SACF;CAEA,OACE,oBAAC,UAAD;EAAa;EAAK,WAAW;EAAS,GAAI;EACxC,UAAA,oBAAC,OAAD;GAAK,WAAU;GACb,UAAA,qBAAC,MAAD,EAAA,UAAA;IACG,SACC,oBAAC,UAAD;KAAU,SAAS;KAAI,WAAW;KAC/B,UAAA;IACO,CAAA;IAEX,SACC,oBAAC,UAAD;KAAU,SAAS;KAAI,WAAW;KAC/B,UAAA;IACO,CAAA;IAEX,SACC,oBAAC,UAAD;KAAU,SAAS;KAAI,WAAW;KAC/B,UAAA;IACO,CAAA;IAEX,SACC,oBAAC,UAAD;KAAU,SAAS;KAAI,WAAW;KAC/B,UAAA;IACO,CAAA;GAER,EAAA,CAAA;EACH,CAAA;CACC,CAAA;AAEZ,CACF;AAEA,WAAW,cAAc"}
|