@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,41 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
//#region src/FormFieldLegend/FormFieldLegend.d.ts
|
|
3
|
+
interface FormFieldLegendProps extends React.HTMLAttributes<HTMLLegendElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Optional suffix text displayed after the legend (e.g., "(niet verplicht)")
|
|
6
|
+
*/
|
|
7
|
+
suffix?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Additional CSS class names
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Legend content
|
|
14
|
+
*/
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Form Field Legend component
|
|
19
|
+
* Legend for fieldsets with optional suffix for "(niet verplicht)" or "(verplicht)"
|
|
20
|
+
* Uses the same CSS classes as FormFieldLabel for consistent styling
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* // Basic usage
|
|
25
|
+
* <FormFieldLegend>Interesses</FormFieldLegend>
|
|
26
|
+
*
|
|
27
|
+
* // With suffix for optional fields
|
|
28
|
+
* <FormFieldLegend suffix="(niet verplicht)">
|
|
29
|
+
* Hobby's
|
|
30
|
+
* </FormFieldLegend>
|
|
31
|
+
*
|
|
32
|
+
* // With suffix for required fields
|
|
33
|
+
* <FormFieldLegend suffix="(verplicht)">
|
|
34
|
+
* Geslacht
|
|
35
|
+
* </FormFieldLegend>
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
declare const FormFieldLegend: React.ForwardRefExoticComponent<FormFieldLegendProps & React.RefAttributes<HTMLLegendElement>>;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { FormFieldLegend, FormFieldLegendProps };
|
|
41
|
+
//# sourceMappingURL=FormFieldLegend.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormFieldLegend.d.mts","names":[],"sources":["../../src/FormFieldLegend/FormFieldLegend.tsx"],"mappings":";;UAIiB,6BAA6B,MAAM,eAAe;;;;EAIjE;;;;EAKA;;;;EAKA,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;;;;cAwBN,iBAAe,MAAA,0BAAA,uBAAA,MAAA,cAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { classNames } from "@dsn-starter-kit/core";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/FormFieldLegend/FormFieldLegend.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Form Field Legend component
|
|
8
|
+
* Legend for fieldsets with optional suffix for "(niet verplicht)" or "(verplicht)"
|
|
9
|
+
* Uses the same CSS classes as FormFieldLabel for consistent styling
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* // Basic usage
|
|
14
|
+
* <FormFieldLegend>Interesses</FormFieldLegend>
|
|
15
|
+
*
|
|
16
|
+
* // With suffix for optional fields
|
|
17
|
+
* <FormFieldLegend suffix="(niet verplicht)">
|
|
18
|
+
* Hobby's
|
|
19
|
+
* </FormFieldLegend>
|
|
20
|
+
*
|
|
21
|
+
* // With suffix for required fields
|
|
22
|
+
* <FormFieldLegend suffix="(verplicht)">
|
|
23
|
+
* Geslacht
|
|
24
|
+
* </FormFieldLegend>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
const FormFieldLegend = React.forwardRef(({ suffix, className, children, ...props }, ref) => {
|
|
28
|
+
const classes = classNames("dsn-form-field-label", className);
|
|
29
|
+
return /* @__PURE__ */ jsxs("legend", {
|
|
30
|
+
ref,
|
|
31
|
+
className: classes,
|
|
32
|
+
...props,
|
|
33
|
+
children: [children, suffix && /* @__PURE__ */ jsx("span", {
|
|
34
|
+
className: "dsn-form-field-label-suffix",
|
|
35
|
+
children: suffix
|
|
36
|
+
})]
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
FormFieldLegend.displayName = "FormFieldLegend";
|
|
40
|
+
//#endregion
|
|
41
|
+
export { FormFieldLegend };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=FormFieldLegend2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormFieldLegend2.mjs","names":[],"sources":["../../src/FormFieldLegend/FormFieldLegend.tsx"],"sourcesContent":["import React from 'react';\nimport { classNames } from '@dsn-starter-kit/core';\nimport './FormFieldLegend.css';\n\nexport interface FormFieldLegendProps extends React.HTMLAttributes<HTMLLegendElement> {\n /**\n * Optional suffix text displayed after the legend (e.g., \"(niet verplicht)\")\n */\n suffix?: string;\n\n /**\n * Additional CSS class names\n */\n className?: string;\n\n /**\n * Legend content\n */\n children?: React.ReactNode;\n}\n\n/**\n * Form Field Legend component\n * Legend for fieldsets with optional suffix for \"(niet verplicht)\" or \"(verplicht)\"\n * Uses the same CSS classes as FormFieldLabel for consistent styling\n *\n * @example\n * ```tsx\n * // Basic usage\n * <FormFieldLegend>Interesses</FormFieldLegend>\n *\n * // With suffix for optional fields\n * <FormFieldLegend suffix=\"(niet verplicht)\">\n * Hobby's\n * </FormFieldLegend>\n *\n * // With suffix for required fields\n * <FormFieldLegend suffix=\"(verplicht)\">\n * Geslacht\n * </FormFieldLegend>\n * ```\n */\nexport const FormFieldLegend = React.forwardRef<\n HTMLLegendElement,\n FormFieldLegendProps\n>(({ suffix, className, children, ...props }, ref) => {\n const classes = classNames('dsn-form-field-label', className);\n\n return (\n <legend ref={ref} className={classes} {...props}>\n {children}\n {suffix && <span className=\"dsn-form-field-label-suffix\">{suffix}</span>}\n </legend>\n );\n});\n\nFormFieldLegend.displayName = 'FormFieldLegend';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,MAAa,kBAAkB,MAAM,YAGlC,EAAE,QAAQ,WAAW,UAAU,GAAG,SAAS,QAAQ;CACpD,MAAM,UAAU,WAAW,wBAAwB,SAAS;CAE5D,OACE,qBAAC,UAAD;EAAa;EAAK,WAAW;EAAS,GAAI;EAA1C,UAAA,CACG,UACA,UAAU,oBAAC,QAAD;GAAM,WAAU;GAA+B,UAAA;EAAa,CAAA,CACjE;;AAEZ,CAAC;AAED,gBAAgB,cAAc"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
//#region src/FormFieldStatus/FormFieldStatus.d.ts
|
|
3
|
+
type FormFieldStatusVariant = 'default' | 'positive' | 'warning';
|
|
4
|
+
interface FormFieldStatusProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
5
|
+
/**
|
|
6
|
+
* Additional CSS class names
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Status variant
|
|
11
|
+
* @default 'default'
|
|
12
|
+
*/
|
|
13
|
+
variant?: FormFieldStatusVariant;
|
|
14
|
+
/**
|
|
15
|
+
* Whether to show the icon (only for positive and warning variants)
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
showIcon?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Whether to announce changes to this status via an aria-live region.
|
|
21
|
+
* Enable this only for status text that changes during interaction, such as
|
|
22
|
+
* a character counter. A status that never changes should not be a live
|
|
23
|
+
* region: it would be announced twice.
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
live?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Status content
|
|
29
|
+
*/
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Form Field Status component
|
|
34
|
+
* Status message displayed below the form control
|
|
35
|
+
* Supports three variants: default (subtle info), positive (success), warning (caution)
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* // Default - Character counter (no icon)
|
|
40
|
+
* <FormFieldStatus>45 van 100 karakters</FormFieldStatus>
|
|
41
|
+
*
|
|
42
|
+
* // Positive - Success feedback (with check icon)
|
|
43
|
+
* <FormFieldStatus variant="positive">Wachtwoord is sterk genoeg</FormFieldStatus>
|
|
44
|
+
*
|
|
45
|
+
* // Warning - Caution (with alert-triangle icon)
|
|
46
|
+
* <FormFieldStatus variant="warning">Wachtwoord is zwak</FormFieldStatus>
|
|
47
|
+
*
|
|
48
|
+
* // Without icon (for positive/warning)
|
|
49
|
+
* <FormFieldStatus variant="positive" showIcon={false}>
|
|
50
|
+
* Gebruikersnaam beschikbaar
|
|
51
|
+
* </FormFieldStatus>
|
|
52
|
+
*
|
|
53
|
+
* // With ID for aria-describedby
|
|
54
|
+
* <FormFieldStatus id="bio-status">
|
|
55
|
+
* 280 van 500 karakters gebruikt
|
|
56
|
+
* </FormFieldStatus>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
declare const FormFieldStatus: React.ForwardRefExoticComponent<FormFieldStatusProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
60
|
+
//#endregion
|
|
61
|
+
export { FormFieldStatus, FormFieldStatusProps, FormFieldStatusVariant };
|
|
62
|
+
//# sourceMappingURL=FormFieldStatus.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormFieldStatus.d.mts","names":[],"sources":["../../src/FormFieldStatus/FormFieldStatus.tsx"],"mappings":";;KAKY;UAEK,6BAA6B,MAAM,eAAe;;;;EAIjE;;;;;EAMA,UAAU;;;;;EAMV;;;;;;;;EASA;;;;EAKA,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8BN,iBAAe,MAAA,0BAAA,uBAAA,MAAA,cAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Icon } from "../Icon/Icon2.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { classNames } from "@dsn-starter-kit/core";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/FormFieldStatus/FormFieldStatus.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Form Field Status component
|
|
9
|
+
* Status message displayed below the form control
|
|
10
|
+
* Supports three variants: default (subtle info), positive (success), warning (caution)
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* // Default - Character counter (no icon)
|
|
15
|
+
* <FormFieldStatus>45 van 100 karakters</FormFieldStatus>
|
|
16
|
+
*
|
|
17
|
+
* // Positive - Success feedback (with check icon)
|
|
18
|
+
* <FormFieldStatus variant="positive">Wachtwoord is sterk genoeg</FormFieldStatus>
|
|
19
|
+
*
|
|
20
|
+
* // Warning - Caution (with alert-triangle icon)
|
|
21
|
+
* <FormFieldStatus variant="warning">Wachtwoord is zwak</FormFieldStatus>
|
|
22
|
+
*
|
|
23
|
+
* // Without icon (for positive/warning)
|
|
24
|
+
* <FormFieldStatus variant="positive" showIcon={false}>
|
|
25
|
+
* Gebruikersnaam beschikbaar
|
|
26
|
+
* </FormFieldStatus>
|
|
27
|
+
*
|
|
28
|
+
* // With ID for aria-describedby
|
|
29
|
+
* <FormFieldStatus id="bio-status">
|
|
30
|
+
* 280 van 500 karakters gebruikt
|
|
31
|
+
* </FormFieldStatus>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
const FormFieldStatus = React.forwardRef(({ className, variant = "default", showIcon = true, live = false, children, ...props }, ref) => {
|
|
35
|
+
const classes = classNames("dsn-form-field-status", variant !== "default" && `dsn-form-field-status--${variant}`, className);
|
|
36
|
+
const iconName = variant === "positive" ? "check" : variant === "warning" ? "alert-triangle" : null;
|
|
37
|
+
const shouldShowIcon = showIcon && iconName && variant !== "default";
|
|
38
|
+
return /* @__PURE__ */ jsxs("p", {
|
|
39
|
+
ref,
|
|
40
|
+
className: classes,
|
|
41
|
+
"aria-live": live ? "polite" : void 0,
|
|
42
|
+
"aria-atomic": live ? true : void 0,
|
|
43
|
+
...props,
|
|
44
|
+
children: [shouldShowIcon && /* @__PURE__ */ jsx(Icon, {
|
|
45
|
+
name: iconName,
|
|
46
|
+
"aria-hidden": "true"
|
|
47
|
+
}), children]
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
FormFieldStatus.displayName = "FormFieldStatus";
|
|
51
|
+
//#endregion
|
|
52
|
+
export { FormFieldStatus };
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=FormFieldStatus2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormFieldStatus2.mjs","names":[],"sources":["../../src/FormFieldStatus/FormFieldStatus.tsx"],"sourcesContent":["import React from 'react';\nimport { classNames } from '@dsn-starter-kit/core';\nimport { Icon } from '../Icon';\nimport './FormFieldStatus.css';\n\nexport type FormFieldStatusVariant = 'default' | 'positive' | 'warning';\n\nexport interface FormFieldStatusProps extends React.HTMLAttributes<HTMLParagraphElement> {\n /**\n * Additional CSS class names\n */\n className?: string;\n\n /**\n * Status variant\n * @default 'default'\n */\n variant?: FormFieldStatusVariant;\n\n /**\n * Whether to show the icon (only for positive and warning variants)\n * @default true\n */\n showIcon?: boolean;\n\n /**\n * Whether to announce changes to this status via an aria-live region.\n * Enable this only for status text that changes during interaction, such as\n * a character counter. A status that never changes should not be a live\n * region: it would be announced twice.\n * @default false\n */\n live?: boolean;\n\n /**\n * Status content\n */\n children?: React.ReactNode;\n}\n\n/**\n * Form Field Status component\n * Status message displayed below the form control\n * Supports three variants: default (subtle info), positive (success), warning (caution)\n *\n * @example\n * ```tsx\n * // Default - Character counter (no icon)\n * <FormFieldStatus>45 van 100 karakters</FormFieldStatus>\n *\n * // Positive - Success feedback (with check icon)\n * <FormFieldStatus variant=\"positive\">Wachtwoord is sterk genoeg</FormFieldStatus>\n *\n * // Warning - Caution (with alert-triangle icon)\n * <FormFieldStatus variant=\"warning\">Wachtwoord is zwak</FormFieldStatus>\n *\n * // Without icon (for positive/warning)\n * <FormFieldStatus variant=\"positive\" showIcon={false}>\n * Gebruikersnaam beschikbaar\n * </FormFieldStatus>\n *\n * // With ID for aria-describedby\n * <FormFieldStatus id=\"bio-status\">\n * 280 van 500 karakters gebruikt\n * </FormFieldStatus>\n * ```\n */\nexport const FormFieldStatus = React.forwardRef<\n HTMLParagraphElement,\n FormFieldStatusProps\n>(\n (\n {\n className,\n variant = 'default',\n showIcon = true,\n live = false,\n children,\n ...props\n },\n ref\n ) => {\n const classes = classNames(\n 'dsn-form-field-status',\n variant !== 'default' && `dsn-form-field-status--${variant}`,\n className\n );\n\n const iconName =\n variant === 'positive'\n ? 'check'\n : variant === 'warning'\n ? 'alert-triangle'\n : null;\n const shouldShowIcon = showIcon && iconName && variant !== 'default';\n\n return (\n <p\n ref={ref}\n className={classes}\n aria-live={live ? 'polite' : undefined}\n aria-atomic={live ? true : undefined}\n {...props}\n >\n {shouldShowIcon && <Icon name={iconName} aria-hidden=\"true\" />}\n {children}\n </p>\n );\n }\n);\n\nFormFieldStatus.displayName = 'FormFieldStatus';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEA,MAAa,kBAAkB,MAAM,YAKjC,EACE,WACA,UAAU,WACV,WAAW,MACX,OAAO,OACP,UACA,GAAG,SAEL,QACG;CACH,MAAM,UAAU,WACd,yBACA,YAAY,aAAa,0BAA0B,WACnD,SACF;CAEA,MAAM,WACJ,YAAY,aACR,UACA,YAAY,YACV,mBACA;CACR,MAAM,iBAAiB,YAAY,YAAY,YAAY;CAE3D,OACE,qBAAC,KAAD;EACO;EACL,WAAW;EACX,aAAW,OAAO,WAAW,KAAA;EAC7B,eAAa,OAAO,OAAO,KAAA;EAC3B,GAAI;EALN,UAAA,CAOG,kBAAkB,oBAAC,MAAD;GAAM,MAAM;GAAU,eAAY;EAAQ,CAAA,GAC5D,QACA;;AAEP,CACF;AAEA,gBAAgB,cAAc"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { FormFieldStatusVariant } from "../FormFieldStatus/FormFieldStatus.mjs";
|
|
2
|
+
import "../FormFieldStatus/index.mjs";
|
|
3
|
+
import React from "react";
|
|
4
|
+
//#region src/FormFieldset/FormFieldset.d.ts
|
|
5
|
+
interface FormFieldsetProps {
|
|
6
|
+
/**
|
|
7
|
+
* The legend text for the fieldset
|
|
8
|
+
*/
|
|
9
|
+
legend: string;
|
|
10
|
+
/**
|
|
11
|
+
* Optional suffix for the legend (e.g., "(niet verplicht)" or "(verplicht)")
|
|
12
|
+
*/
|
|
13
|
+
legendSuffix?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional description text
|
|
16
|
+
*/
|
|
17
|
+
description?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Optional error message (shows when field is invalid)
|
|
20
|
+
*/
|
|
21
|
+
error?: React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Optional status message
|
|
24
|
+
*/
|
|
25
|
+
status?: React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Status variant (for status message styling)
|
|
28
|
+
* @default 'default'
|
|
29
|
+
*/
|
|
30
|
+
statusVariant?: FormFieldStatusVariant;
|
|
31
|
+
/**
|
|
32
|
+
* Announce status changes to screen readers via an aria-live region.
|
|
33
|
+
* Only enable this for status text that changes during interaction.
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
statusLive?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Optional ID for the fieldset. Used as the base for the generated
|
|
39
|
+
* description/error/status IDs. Generated via useId() when omitted.
|
|
40
|
+
*/
|
|
41
|
+
id?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Additional CSS class names
|
|
44
|
+
*/
|
|
45
|
+
className?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The form control element (CheckboxGroup, RadioGroup, DateInputGroup, etc.)
|
|
48
|
+
*/
|
|
49
|
+
children: React.ReactNode;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Form Fieldset component
|
|
53
|
+
* Container that combines FormFieldLegend, FormFieldDescription, Control, FormFieldErrorMessage, and FormFieldStatus
|
|
54
|
+
* Uses fieldset/legend structure for group controls (CheckboxGroup, RadioGroup, DateInputGroup)
|
|
55
|
+
*
|
|
56
|
+
* Description, error and status are linked via aria-describedby on the fieldset
|
|
57
|
+
* itself: a group has no single control to hang the association on.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```tsx
|
|
61
|
+
* // Checkbox group
|
|
62
|
+
* <FormFieldset legend="Interesses" description="Selecteer minimaal één interesse">
|
|
63
|
+
* <CheckboxGroup>
|
|
64
|
+
* <CheckboxOption label="Sport" value="sport" />
|
|
65
|
+
* <CheckboxOption label="Muziek" value="music" />
|
|
66
|
+
* <CheckboxOption label="Reizen" value="travel" />
|
|
67
|
+
* </CheckboxGroup>
|
|
68
|
+
* </FormFieldset>
|
|
69
|
+
*
|
|
70
|
+
* // Radio group with error
|
|
71
|
+
* <FormFieldset
|
|
72
|
+
* legend="Geslacht"
|
|
73
|
+
* legendSuffix="(verplicht)"
|
|
74
|
+
* error="Selecteer een optie"
|
|
75
|
+
* >
|
|
76
|
+
* <RadioGroup>
|
|
77
|
+
* <RadioOption name="gender" label="Man" value="male" />
|
|
78
|
+
* <RadioOption name="gender" label="Vrouw" value="female" />
|
|
79
|
+
* <RadioOption name="gender" label="Anders" value="other" />
|
|
80
|
+
* </RadioGroup>
|
|
81
|
+
* </FormFieldset>
|
|
82
|
+
*
|
|
83
|
+
* // With status
|
|
84
|
+
* <FormFieldset
|
|
85
|
+
* legend="Voorkeuren"
|
|
86
|
+
* status="Minimaal 2 opties vereist"
|
|
87
|
+
* statusVariant="warning"
|
|
88
|
+
* >
|
|
89
|
+
* <CheckboxGroup>
|
|
90
|
+
* <CheckboxOption label="E-mail" value="email" />
|
|
91
|
+
* <CheckboxOption label="SMS" value="sms" />
|
|
92
|
+
* <CheckboxOption label="Push" value="push" />
|
|
93
|
+
* </CheckboxGroup>
|
|
94
|
+
* </FormFieldset>
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
declare const FormFieldset: React.ForwardRefExoticComponent<FormFieldsetProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
98
|
+
//#endregion
|
|
99
|
+
export { FormFieldset, FormFieldsetProps };
|
|
100
|
+
//# sourceMappingURL=FormFieldset.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormFieldset.d.mts","names":[],"sources":["../../src/FormFieldset/FormFieldset.tsx"],"mappings":";;;;UAQiB;;;;EAIf;;;;EAKA;;;;EAKA,cAAc,MAAM;;;;EAKpB,QAAQ,MAAM;;;;EAKd,SAAS,MAAM;;;;;EAMf,gBAAgB;;;;;;EAOhB;;;;;EAMA;;;;EAKA;;;;EAKA,UAAU,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiDL,cAAY,MAAA,0BAAA,oBAAA,MAAA,cAAA"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { FormFieldDescription } from "../FormFieldDescription/FormFieldDescription2.mjs";
|
|
2
|
+
import { FormFieldErrorMessage } from "../FormFieldErrorMessage/FormFieldErrorMessage2.mjs";
|
|
3
|
+
import { FormFieldStatus } from "../FormFieldStatus/FormFieldStatus2.mjs";
|
|
4
|
+
import { FormFieldLegend } from "../FormFieldLegend/FormFieldLegend2.mjs";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import React, { useId } from "react";
|
|
7
|
+
import { classNames } from "@dsn-starter-kit/core";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
//#region src/FormFieldset/FormFieldset.tsx
|
|
10
|
+
/**
|
|
11
|
+
* Form Fieldset component
|
|
12
|
+
* Container that combines FormFieldLegend, FormFieldDescription, Control, FormFieldErrorMessage, and FormFieldStatus
|
|
13
|
+
* Uses fieldset/legend structure for group controls (CheckboxGroup, RadioGroup, DateInputGroup)
|
|
14
|
+
*
|
|
15
|
+
* Description, error and status are linked via aria-describedby on the fieldset
|
|
16
|
+
* itself: a group has no single control to hang the association on.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* // Checkbox group
|
|
21
|
+
* <FormFieldset legend="Interesses" description="Selecteer minimaal één interesse">
|
|
22
|
+
* <CheckboxGroup>
|
|
23
|
+
* <CheckboxOption label="Sport" value="sport" />
|
|
24
|
+
* <CheckboxOption label="Muziek" value="music" />
|
|
25
|
+
* <CheckboxOption label="Reizen" value="travel" />
|
|
26
|
+
* </CheckboxGroup>
|
|
27
|
+
* </FormFieldset>
|
|
28
|
+
*
|
|
29
|
+
* // Radio group with error
|
|
30
|
+
* <FormFieldset
|
|
31
|
+
* legend="Geslacht"
|
|
32
|
+
* legendSuffix="(verplicht)"
|
|
33
|
+
* error="Selecteer een optie"
|
|
34
|
+
* >
|
|
35
|
+
* <RadioGroup>
|
|
36
|
+
* <RadioOption name="gender" label="Man" value="male" />
|
|
37
|
+
* <RadioOption name="gender" label="Vrouw" value="female" />
|
|
38
|
+
* <RadioOption name="gender" label="Anders" value="other" />
|
|
39
|
+
* </RadioGroup>
|
|
40
|
+
* </FormFieldset>
|
|
41
|
+
*
|
|
42
|
+
* // With status
|
|
43
|
+
* <FormFieldset
|
|
44
|
+
* legend="Voorkeuren"
|
|
45
|
+
* status="Minimaal 2 opties vereist"
|
|
46
|
+
* statusVariant="warning"
|
|
47
|
+
* >
|
|
48
|
+
* <CheckboxGroup>
|
|
49
|
+
* <CheckboxOption label="E-mail" value="email" />
|
|
50
|
+
* <CheckboxOption label="SMS" value="sms" />
|
|
51
|
+
* <CheckboxOption label="Push" value="push" />
|
|
52
|
+
* </CheckboxGroup>
|
|
53
|
+
* </FormFieldset>
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
const FormFieldset = React.forwardRef(({ legend, legendSuffix, description, error, status, statusVariant = "default", statusLive = false, id, className, children }, ref) => {
|
|
57
|
+
const generatedId = useId();
|
|
58
|
+
const idBase = id ?? generatedId;
|
|
59
|
+
const descriptionId = description ? `${idBase}-description` : void 0;
|
|
60
|
+
const errorId = error ? `${idBase}-error` : void 0;
|
|
61
|
+
const statusId = status ? `${idBase}-status` : void 0;
|
|
62
|
+
const describedBy = [
|
|
63
|
+
descriptionId,
|
|
64
|
+
errorId,
|
|
65
|
+
statusId
|
|
66
|
+
].filter(Boolean).join(" ") || void 0;
|
|
67
|
+
const containerClasses = classNames("dsn-form-field", { "dsn-form-field--invalid": !!error }, className);
|
|
68
|
+
return /* @__PURE__ */ jsxs("fieldset", {
|
|
69
|
+
ref,
|
|
70
|
+
id,
|
|
71
|
+
className: containerClasses,
|
|
72
|
+
"aria-describedby": describedBy,
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ jsx(FormFieldLegend, {
|
|
75
|
+
suffix: legendSuffix,
|
|
76
|
+
children: legend
|
|
77
|
+
}),
|
|
78
|
+
description && /* @__PURE__ */ jsx(FormFieldDescription, {
|
|
79
|
+
id: descriptionId,
|
|
80
|
+
children: description
|
|
81
|
+
}),
|
|
82
|
+
error && /* @__PURE__ */ jsx(FormFieldErrorMessage, {
|
|
83
|
+
id: errorId,
|
|
84
|
+
children: error
|
|
85
|
+
}),
|
|
86
|
+
children,
|
|
87
|
+
status && /* @__PURE__ */ jsx(FormFieldStatus, {
|
|
88
|
+
id: statusId,
|
|
89
|
+
variant: statusVariant,
|
|
90
|
+
live: statusLive,
|
|
91
|
+
children: status
|
|
92
|
+
})
|
|
93
|
+
]
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
FormFieldset.displayName = "FormFieldset";
|
|
97
|
+
//#endregion
|
|
98
|
+
export { FormFieldset };
|
|
99
|
+
|
|
100
|
+
//# sourceMappingURL=FormFieldset2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormFieldset2.mjs","names":[],"sources":["../../src/FormFieldset/FormFieldset.tsx"],"sourcesContent":["import React, { useId } from 'react';\nimport { classNames } from '@dsn-starter-kit/core';\nimport { FormFieldLegend } from '../FormFieldLegend';\nimport { FormFieldDescription } from '../FormFieldDescription';\nimport { FormFieldErrorMessage } from '../FormFieldErrorMessage';\nimport { FormFieldStatus, FormFieldStatusVariant } from '../FormFieldStatus';\nimport './FormFieldset.css';\n\nexport interface FormFieldsetProps {\n /**\n * The legend text for the fieldset\n */\n legend: string;\n\n /**\n * Optional suffix for the legend (e.g., \"(niet verplicht)\" or \"(verplicht)\")\n */\n legendSuffix?: string;\n\n /**\n * Optional description text\n */\n description?: React.ReactNode;\n\n /**\n * Optional error message (shows when field is invalid)\n */\n error?: React.ReactNode;\n\n /**\n * Optional status message\n */\n status?: React.ReactNode;\n\n /**\n * Status variant (for status message styling)\n * @default 'default'\n */\n statusVariant?: FormFieldStatusVariant;\n\n /**\n * Announce status changes to screen readers via an aria-live region.\n * Only enable this for status text that changes during interaction.\n * @default false\n */\n statusLive?: boolean;\n\n /**\n * Optional ID for the fieldset. Used as the base for the generated\n * description/error/status IDs. Generated via useId() when omitted.\n */\n id?: string;\n\n /**\n * Additional CSS class names\n */\n className?: string;\n\n /**\n * The form control element (CheckboxGroup, RadioGroup, DateInputGroup, etc.)\n */\n children: React.ReactNode;\n}\n\n/**\n * Form Fieldset component\n * Container that combines FormFieldLegend, FormFieldDescription, Control, FormFieldErrorMessage, and FormFieldStatus\n * Uses fieldset/legend structure for group controls (CheckboxGroup, RadioGroup, DateInputGroup)\n *\n * Description, error and status are linked via aria-describedby on the fieldset\n * itself: a group has no single control to hang the association on.\n *\n * @example\n * ```tsx\n * // Checkbox group\n * <FormFieldset legend=\"Interesses\" description=\"Selecteer minimaal één interesse\">\n * <CheckboxGroup>\n * <CheckboxOption label=\"Sport\" value=\"sport\" />\n * <CheckboxOption label=\"Muziek\" value=\"music\" />\n * <CheckboxOption label=\"Reizen\" value=\"travel\" />\n * </CheckboxGroup>\n * </FormFieldset>\n *\n * // Radio group with error\n * <FormFieldset\n * legend=\"Geslacht\"\n * legendSuffix=\"(verplicht)\"\n * error=\"Selecteer een optie\"\n * >\n * <RadioGroup>\n * <RadioOption name=\"gender\" label=\"Man\" value=\"male\" />\n * <RadioOption name=\"gender\" label=\"Vrouw\" value=\"female\" />\n * <RadioOption name=\"gender\" label=\"Anders\" value=\"other\" />\n * </RadioGroup>\n * </FormFieldset>\n *\n * // With status\n * <FormFieldset\n * legend=\"Voorkeuren\"\n * status=\"Minimaal 2 opties vereist\"\n * statusVariant=\"warning\"\n * >\n * <CheckboxGroup>\n * <CheckboxOption label=\"E-mail\" value=\"email\" />\n * <CheckboxOption label=\"SMS\" value=\"sms\" />\n * <CheckboxOption label=\"Push\" value=\"push\" />\n * </CheckboxGroup>\n * </FormFieldset>\n * ```\n */\nexport const FormFieldset = React.forwardRef<\n HTMLFieldSetElement,\n FormFieldsetProps\n>(\n (\n {\n legend,\n legendSuffix,\n description,\n error,\n status,\n statusVariant = 'default',\n statusLive = false,\n id,\n className,\n children,\n },\n ref\n ) => {\n const generatedId = useId();\n const idBase = id ?? generatedId;\n\n const descriptionId = description ? `${idBase}-description` : undefined;\n const errorId = error ? `${idBase}-error` : undefined;\n const statusId = status ? `${idBase}-status` : undefined;\n\n // Bij een groep controls hangt de koppeling aan het fieldset zelf: er is\n // geen enkele control om hem aan te hangen. De volgorde volgt de visuele\n // volgorde, zodat een screenreader dezelfde route loopt als het oog.\n const describedBy =\n [descriptionId, errorId, statusId].filter(Boolean).join(' ') || undefined;\n\n const containerClasses = classNames(\n 'dsn-form-field',\n {\n 'dsn-form-field--invalid': !!error,\n },\n className\n );\n\n return (\n <fieldset\n ref={ref}\n id={id}\n className={containerClasses}\n aria-describedby={describedBy}\n >\n <FormFieldLegend suffix={legendSuffix}>{legend}</FormFieldLegend>\n\n {description && (\n <FormFieldDescription id={descriptionId}>\n {description}\n </FormFieldDescription>\n )}\n\n {error && (\n <FormFieldErrorMessage id={errorId}>{error}</FormFieldErrorMessage>\n )}\n\n {children}\n\n {status && (\n <FormFieldStatus\n id={statusId}\n variant={statusVariant}\n live={statusLive}\n >\n {status}\n </FormFieldStatus>\n )}\n </fieldset>\n );\n }\n);\n\nFormFieldset.displayName = 'FormFieldset';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GA,MAAa,eAAe,MAAM,YAK9B,EACE,QACA,cACA,aACA,OACA,QACA,gBAAgB,WAChB,aAAa,OACb,IACA,WACA,YAEF,QACG;CACH,MAAM,cAAc,MAAM;CAC1B,MAAM,SAAS,MAAM;CAErB,MAAM,gBAAgB,cAAc,GAAG,OAAO,gBAAgB,KAAA;CAC9D,MAAM,UAAU,QAAQ,GAAG,OAAO,UAAU,KAAA;CAC5C,MAAM,WAAW,SAAS,GAAG,OAAO,WAAW,KAAA;CAK/C,MAAM,cACJ;EAAC;EAAe;EAAS;CAAQ,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,KAAK,KAAA;CAElE,MAAM,mBAAmB,WACvB,kBACA,EACE,2BAA2B,CAAC,CAAC,MAC/B,GACA,SACF;CAEA,OACE,qBAAC,YAAD;EACO;EACD;EACJ,WAAW;EACX,oBAAkB;EAJpB,UAAA;GAME,oBAAC,iBAAD;IAAiB,QAAQ;IAAe,UAAA;GAAwB,CAAA;GAE/D,eACC,oBAAC,sBAAD;IAAsB,IAAI;IACvB,UAAA;GACmB,CAAA;GAGvB,SACC,oBAAC,uBAAD;IAAuB,IAAI;IAAU,UAAA;GAA6B,CAAA;GAGnE;GAEA,UACC,oBAAC,iBAAD;IACE,IAAI;IACJ,SAAS;IACT,MAAM;IAEL,UAAA;GACc,CAAA;EAEX;;AAEd,CACF;AAEA,aAAa,cAAc"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
//#region src/Grid/Grid.d.ts
|
|
3
|
+
interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Voegt een maximale breedte toe (--dsn-grid-max-width) en centreert de grid horizontaal.
|
|
6
|
+
* Gebruik dit voor pagina-brede layouts met een vaste breedte.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
contained?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Child-elementen van de grid.
|
|
12
|
+
*/
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Grid layout component
|
|
17
|
+
* 12-koloms CSS Grid container met gutter en optionele max-width.
|
|
18
|
+
* Gebruik GridItem voor kolomspanning van directe children.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* // Standaard grid (volledige breedte)
|
|
23
|
+
* <Grid>
|
|
24
|
+
* <GridItem colSpan={8}>Hoofdinhoud</GridItem>
|
|
25
|
+
* <GridItem colSpan={4}>Sidebar</GridItem>
|
|
26
|
+
* </Grid>
|
|
27
|
+
*
|
|
28
|
+
* // Contained grid met max-width
|
|
29
|
+
* <Grid contained>
|
|
30
|
+
* <GridItem colSpan={12}>Full-width sectie</GridItem>
|
|
31
|
+
* </Grid>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { Grid, GridProps };
|
|
37
|
+
//# sourceMappingURL=Grid.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.d.mts","names":[],"sources":["../../src/Grid/Grid.tsx"],"mappings":";;UAIiB,kBAAkB,MAAM,eAAe;;;;;;EAMtD;;;;EAKA,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;;cAsBN,MAAI,MAAA,0BAAA,YAAA,MAAA,cAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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/Grid/Grid.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Grid layout component
|
|
8
|
+
* 12-koloms CSS Grid container met gutter en optionele max-width.
|
|
9
|
+
* Gebruik GridItem voor kolomspanning van directe children.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* // Standaard grid (volledige breedte)
|
|
14
|
+
* <Grid>
|
|
15
|
+
* <GridItem colSpan={8}>Hoofdinhoud</GridItem>
|
|
16
|
+
* <GridItem colSpan={4}>Sidebar</GridItem>
|
|
17
|
+
* </Grid>
|
|
18
|
+
*
|
|
19
|
+
* // Contained grid met max-width
|
|
20
|
+
* <Grid contained>
|
|
21
|
+
* <GridItem colSpan={12}>Full-width sectie</GridItem>
|
|
22
|
+
* </Grid>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
const Grid = React.forwardRef(({ className, contained, children, ...props }, ref) => {
|
|
26
|
+
const classes = classNames("dsn-grid", contained && "dsn-grid--contained", className);
|
|
27
|
+
return /* @__PURE__ */ jsx("div", {
|
|
28
|
+
ref,
|
|
29
|
+
className: classes,
|
|
30
|
+
...props,
|
|
31
|
+
children
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
Grid.displayName = "Grid";
|
|
35
|
+
//#endregion
|
|
36
|
+
export { Grid };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=Grid2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid2.mjs","names":[],"sources":["../../src/Grid/Grid.tsx"],"sourcesContent":["import React from 'react';\nimport { classNames } from '@dsn-starter-kit/core';\nimport './Grid.css';\n\nexport interface GridProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * Voegt een maximale breedte toe (--dsn-grid-max-width) en centreert de grid horizontaal.\n * Gebruik dit voor pagina-brede layouts met een vaste breedte.\n * @default false\n */\n contained?: boolean;\n\n /**\n * Child-elementen van de grid.\n */\n children?: React.ReactNode;\n}\n\n/**\n * Grid layout component\n * 12-koloms CSS Grid container met gutter en optionele max-width.\n * Gebruik GridItem voor kolomspanning van directe children.\n *\n * @example\n * ```tsx\n * // Standaard grid (volledige breedte)\n * <Grid>\n * <GridItem colSpan={8}>Hoofdinhoud</GridItem>\n * <GridItem colSpan={4}>Sidebar</GridItem>\n * </Grid>\n *\n * // Contained grid met max-width\n * <Grid contained>\n * <GridItem colSpan={12}>Full-width sectie</GridItem>\n * </Grid>\n * ```\n */\nexport const Grid = React.forwardRef<HTMLDivElement, GridProps>(\n ({ className, contained, children, ...props }, ref) => {\n const classes = classNames(\n 'dsn-grid',\n contained && 'dsn-grid--contained',\n className\n );\n\n return (\n <div ref={ref} className={classes} {...props}>\n {children}\n </div>\n );\n }\n);\n\nGrid.displayName = 'Grid';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAqCA,MAAa,OAAO,MAAM,YACvB,EAAE,WAAW,WAAW,UAAU,GAAG,SAAS,QAAQ;CACrD,MAAM,UAAU,WACd,YACA,aAAa,uBACb,SACF;CAEA,OACE,oBAAC,OAAD;EAAU;EAAK,WAAW;EAAS,GAAI;EACpC;CACE,CAAA;AAET,CACF;AAEA,KAAK,cAAc"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
//#region src/Grid/GridItem.d.ts
|
|
3
|
+
type GridColSpan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
4
|
+
type GridColPosition = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13;
|
|
5
|
+
interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Aantal kolommen dat dit item beslaat (1–12).
|
|
8
|
+
* Zonder colSpan beslaat het item de volledige breedte (12 kolommen).
|
|
9
|
+
*/
|
|
10
|
+
colSpan?: GridColSpan;
|
|
11
|
+
/**
|
|
12
|
+
* Kolomspanning vanaf sm-breakpoint (36em ~576px).
|
|
13
|
+
* Overschrijft colSpan op dit breekpunt.
|
|
14
|
+
*/
|
|
15
|
+
colSpanSm?: GridColSpan;
|
|
16
|
+
/**
|
|
17
|
+
* Kolomspanning vanaf md-breakpoint (44em ~704px).
|
|
18
|
+
* Overschrijft colSpan op dit breekpunt.
|
|
19
|
+
*/
|
|
20
|
+
colSpanMd?: GridColSpan;
|
|
21
|
+
/**
|
|
22
|
+
* Kolomspanning vanaf lg-breakpoint (64em ~1024px).
|
|
23
|
+
* Overschrijft colSpan op dit breekpunt.
|
|
24
|
+
*/
|
|
25
|
+
colSpanLg?: GridColSpan;
|
|
26
|
+
/** Startkolom (grid-column-start, 1–13). */
|
|
27
|
+
colStart?: GridColPosition;
|
|
28
|
+
/** Startkolom vanaf sm-breakpoint. */
|
|
29
|
+
colStartSm?: GridColPosition;
|
|
30
|
+
/** Startkolom vanaf md-breakpoint. */
|
|
31
|
+
colStartMd?: GridColPosition;
|
|
32
|
+
/** Startkolom vanaf lg-breakpoint. */
|
|
33
|
+
colStartLg?: GridColPosition;
|
|
34
|
+
/** Eindkolom (grid-column-end, 1–13). */
|
|
35
|
+
colEnd?: GridColPosition;
|
|
36
|
+
/** Eindkolom vanaf sm-breakpoint. */
|
|
37
|
+
colEndSm?: GridColPosition;
|
|
38
|
+
/** Eindkolom vanaf md-breakpoint. */
|
|
39
|
+
colEndMd?: GridColPosition;
|
|
40
|
+
/** Eindkolom vanaf lg-breakpoint. */
|
|
41
|
+
colEndLg?: GridColPosition;
|
|
42
|
+
/**
|
|
43
|
+
* Breekt visueel uit tot de buitenrand van de grid container.
|
|
44
|
+
* Het item beslaat de volledige breedte inclusief de grid margin.
|
|
45
|
+
* Gebruik dit voor achtergrondvlakken die edge-to-edge lopen.
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
fullBleed?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Child-elementen van het grid item.
|
|
51
|
+
*/
|
|
52
|
+
children?: React.ReactNode;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* GridItem component
|
|
56
|
+
* Directe child van Grid met kolomspanning en optionele responsive varianten.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```tsx
|
|
60
|
+
* // Vaste kolomverdeling
|
|
61
|
+
* <Grid>
|
|
62
|
+
* <GridItem colSpan={8}>Hoofdinhoud</GridItem>
|
|
63
|
+
* <GridItem colSpan={4}>Sidebar</GridItem>
|
|
64
|
+
* </Grid>
|
|
65
|
+
*
|
|
66
|
+
* // Responsive: 12 kolommen op mobiel, 6 op md, 4 op lg
|
|
67
|
+
* <Grid contained>
|
|
68
|
+
* <GridItem colSpan={12} colSpanMd={6} colSpanLg={4}>Item</GridItem>
|
|
69
|
+
* <GridItem colSpan={12} colSpanMd={6} colSpanLg={4}>Item</GridItem>
|
|
70
|
+
* <GridItem colSpan={12} colSpanMd={12} colSpanLg={4}>Item</GridItem>
|
|
71
|
+
* </Grid>
|
|
72
|
+
*
|
|
73
|
+
* // Full-bleed: breekt uit tot de container-randen
|
|
74
|
+
* <Grid contained>
|
|
75
|
+
* <GridItem colSpan={8}>Normale content</GridItem>
|
|
76
|
+
* <GridItem fullBleed>
|
|
77
|
+
* <div style={{ background: 'var(--dsn-color-brand-bg)', padding: '2rem' }}>
|
|
78
|
+
* Edge-to-edge sectie
|
|
79
|
+
* </div>
|
|
80
|
+
* </GridItem>
|
|
81
|
+
* </Grid>
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
declare const GridItem: React.ForwardRefExoticComponent<GridItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
+
//#endregion
|
|
86
|
+
export { GridColPosition, GridColSpan, GridItem, GridItemProps };
|
|
87
|
+
//# sourceMappingURL=GridItem.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridItem.d.mts","names":[],"sources":["../../src/Grid/GridItem.tsx"],"mappings":";;KAGY;KACA;UAeK,sBAAsB,MAAM,eAAe;;;;;EAK1D,UAAU;;;;;EAMV,YAAY;;;;;EAMZ,YAAY;;;;;EAMZ,YAAY;;EAGZ,WAAW;;EAEX,aAAa;;EAEb,aAAa;;EAEb,aAAa;;EAGb,SAAS;;EAET,WAAW;;EAEX,WAAW;;EAEX,WAAW;;;;;;;EAQX;;;;EAKA,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiCN,UAAQ,MAAA,0BAAA,gBAAA,MAAA,cAAA"}
|