@norges-domstoler/dds-components 11.3.1 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/cjs/components/BackLink/BackLink.d.ts +6 -0
- package/dist/cjs/components/BackLink/BackLink.stories.d.ts +17 -0
- package/dist/cjs/components/BackLink/BackLink.tokens.d.ts +8 -0
- package/dist/cjs/components/BackLink/index.d.ts +1 -0
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.d.ts +3 -12
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -16
- package/dist/cjs/components/Button/Button.d.ts +1 -0
- package/dist/cjs/components/Button/Button.stories.d.ts +3 -3
- package/dist/cjs/components/Card/CardAccordion/CardAccordion.d.ts +1 -0
- package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.d.ts +1 -0
- package/dist/cjs/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +2 -2
- package/dist/cjs/components/Checkbox/CheckboxGroup.d.ts +1 -0
- package/dist/cjs/components/Chip/Chip.d.ts +1 -0
- package/dist/cjs/components/Datepicker/Datepicker.d.ts +1 -0
- package/dist/cjs/components/DescriptionList/DescriptionList.d.ts +1 -0
- package/dist/cjs/components/DescriptionList/DescriptionListDesc.d.ts +1 -0
- package/dist/cjs/components/DescriptionList/DescriptionListGroup.d.ts +1 -0
- package/dist/cjs/components/Divider/Divider.d.ts +1 -0
- package/dist/cjs/components/Drawer/DrawerGroup.d.ts +1 -2
- package/dist/cjs/components/FileUploader/ErrorList.d.ts +1 -0
- package/dist/cjs/components/FileUploader/File.d.ts +1 -0
- package/dist/cjs/components/FileUploader/FileUploader.d.ts +1 -0
- package/dist/cjs/components/FileUploader/utils.d.ts +1 -0
- package/dist/cjs/components/GlobalMessage/GlobalMessage.d.ts +1 -0
- package/dist/cjs/components/Grid/Grid.context.d.ts +1 -0
- package/dist/cjs/components/Icon/Icon.d.ts +1 -0
- package/dist/cjs/components/InlineEdit/InlineEdit.d.ts +1 -0
- package/dist/cjs/components/InlineEdit/InlineEdit.utils.d.ts +1 -0
- package/dist/cjs/components/InlineEdit/InlineEditInput.d.ts +1 -0
- package/dist/cjs/components/InlineEdit/InlineEditTextArea.d.ts +1 -0
- package/dist/cjs/components/InputMessage/InputMessage.d.ts +1 -0
- package/dist/cjs/components/InternalHeader/InternalHeader.d.ts +1 -0
- package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +1 -0
- package/dist/cjs/components/List/List.d.ts +1 -0
- package/dist/cjs/components/LocalMessage/LocalMessage.d.ts +1 -0
- package/dist/cjs/components/Modal/ModalBody.d.ts +1 -0
- package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +1 -0
- package/dist/cjs/components/ProgressTracker/ProgressTracker.context.d.ts +1 -0
- package/dist/cjs/components/ProgressTracker/ProgressTrackerItem.d.ts +1 -0
- package/dist/cjs/components/RadioButton/RadioButton.d.ts +1 -0
- package/dist/cjs/components/RadioButton/RadioButton.stories.d.ts +3 -3
- package/dist/cjs/components/ScrollableContainer/ScrollableContainer.d.ts +1 -0
- package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +1 -0
- package/dist/cjs/components/Spinner/Spinner.d.ts +1 -0
- package/dist/cjs/components/SplitButton/SplitButton.d.ts +1 -0
- package/dist/cjs/components/Stack/Stack.d.ts +1 -0
- package/dist/cjs/components/Stack/Stack.stories.d.ts +1 -0
- package/dist/cjs/components/Table/Row.d.ts +1 -0
- package/dist/cjs/components/Table/Table.d.ts +1 -0
- package/dist/cjs/components/Table/collapsible/CollapsibleRow.d.ts +1 -0
- package/dist/cjs/components/Table/collapsible/CollapsibleTable.d.ts +1 -0
- package/dist/cjs/components/Table/collapsible/Table.context.d.ts +1 -0
- package/dist/cjs/components/Tabs/TabPanel.d.ts +1 -0
- package/dist/cjs/components/Tag/Tag.d.ts +1 -0
- package/dist/cjs/components/TextInput/CharCounter.d.ts +1 -0
- package/dist/cjs/components/ToggleBar/ToggleBar.d.ts +1 -0
- package/dist/cjs/components/ToggleButton/ToggleButton.d.ts +1 -0
- package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
- package/dist/cjs/components/ToggleButton/ToggleButtonGroup.d.ts +1 -0
- package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/cjs/components/Typography/Caption/Caption.d.ts +1 -0
- package/dist/cjs/components/Typography/Heading/Heading.d.ts +1 -0
- package/dist/cjs/components/Typography/Legend/Legend.d.ts +1 -0
- package/dist/cjs/components/Typography/Link/Link.stories.d.ts +3 -3
- package/dist/cjs/components/Typography/Paragraph/Paragraph.d.ts +1 -0
- package/dist/cjs/components/VisuallyHidden/VisuallyHidden.d.ts +1 -0
- package/dist/cjs/helpers/Chevron/AnimatedChevronUpDown.d.ts +1 -0
- package/dist/cjs/helpers/Input/Input.utils.d.ts +1 -0
- package/dist/cjs/helpers/RequiredMarker/RequiredMarker.d.ts +1 -0
- package/dist/cjs/hooks/useFloatPosition.d.ts +1 -0
- package/dist/cjs/icons/tsx/apps.d.ts +1 -0
- package/dist/cjs/icons/tsx/archive.d.ts +1 -0
- package/dist/cjs/icons/tsx/arrowDown.d.ts +1 -0
- package/dist/cjs/icons/tsx/arrowLeft.d.ts +1 -0
- package/dist/cjs/icons/tsx/arrowRight.d.ts +1 -0
- package/dist/cjs/icons/tsx/arrowUp.d.ts +1 -0
- package/dist/cjs/icons/tsx/attachment.d.ts +1 -0
- package/dist/cjs/icons/tsx/barChart.d.ts +1 -0
- package/dist/cjs/icons/tsx/barChartBoxed.d.ts +1 -0
- package/dist/cjs/icons/tsx/block.d.ts +1 -0
- package/dist/cjs/icons/tsx/book.d.ts +1 -0
- package/dist/cjs/icons/tsx/build.d.ts +1 -0
- package/dist/cjs/icons/tsx/buildCircled.d.ts +1 -0
- package/dist/cjs/icons/tsx/calendar.d.ts +1 -0
- package/dist/cjs/icons/tsx/calendarMonth.d.ts +1 -0
- package/dist/cjs/icons/tsx/calendarViewDay.d.ts +1 -0
- package/dist/cjs/icons/tsx/calendarViewMonth.d.ts +1 -0
- package/dist/cjs/icons/tsx/calendarViewWeek.d.ts +1 -0
- package/dist/cjs/icons/tsx/call.d.ts +1 -0
- package/dist/cjs/icons/tsx/chat.d.ts +1 -0
- package/dist/cjs/icons/tsx/check.d.ts +1 -0
- package/dist/cjs/icons/tsx/checkCircled.d.ts +1 -0
- package/dist/cjs/icons/tsx/checklist.d.ts +1 -0
- package/dist/cjs/icons/tsx/chevronDown.d.ts +1 -0
- package/dist/cjs/icons/tsx/chevronFirst.d.ts +1 -0
- package/dist/cjs/icons/tsx/chevronLargeLeft.d.ts +1 -0
- package/dist/cjs/icons/tsx/chevronLargeRight.d.ts +1 -0
- package/dist/cjs/icons/tsx/chevronLast.d.ts +1 -0
- package/dist/cjs/icons/tsx/chevronLeft.d.ts +1 -0
- package/dist/cjs/icons/tsx/chevronRight.d.ts +1 -0
- package/dist/cjs/icons/tsx/chevronUp.d.ts +1 -0
- package/dist/cjs/icons/tsx/close.d.ts +1 -0
- package/dist/cjs/icons/tsx/closeCircled.d.ts +1 -0
- package/dist/cjs/icons/tsx/closeSmall.d.ts +1 -0
- package/dist/cjs/icons/tsx/cloud.d.ts +1 -0
- package/dist/cjs/icons/tsx/collapse.d.ts +1 -0
- package/dist/cjs/icons/tsx/comment.d.ts +1 -0
- package/dist/cjs/icons/tsx/copy.d.ts +1 -0
- package/dist/cjs/icons/tsx/court.d.ts +1 -0
- package/dist/cjs/icons/tsx/dateRange.d.ts +1 -0
- package/dist/cjs/icons/tsx/deaths.d.ts +1 -0
- package/dist/cjs/icons/tsx/doubleChevronLeft.d.ts +1 -0
- package/dist/cjs/icons/tsx/doubleChevronRight.d.ts +1 -0
- package/dist/cjs/icons/tsx/download.d.ts +1 -0
- package/dist/cjs/icons/tsx/downloadDone.d.ts +1 -0
- package/dist/cjs/icons/tsx/dragHandle.d.ts +1 -0
- package/dist/cjs/icons/tsx/edit.d.ts +1 -0
- package/dist/cjs/icons/tsx/error.d.ts +1 -0
- package/dist/cjs/icons/tsx/exclaim.d.ts +1 -0
- package/dist/cjs/icons/tsx/expand.d.ts +1 -0
- package/dist/cjs/icons/tsx/facebook.d.ts +1 -0
- package/dist/cjs/icons/tsx/family.d.ts +1 -0
- package/dist/cjs/icons/tsx/feedback.d.ts +1 -0
- package/dist/cjs/icons/tsx/file.d.ts +1 -0
- package/dist/cjs/icons/tsx/fileAdd.d.ts +1 -0
- package/dist/cjs/icons/tsx/fileText.d.ts +1 -0
- package/dist/cjs/icons/tsx/filter.d.ts +1 -0
- package/dist/cjs/icons/tsx/filterList.d.ts +1 -0
- package/dist/cjs/icons/tsx/filterListOff.d.ts +1 -0
- package/dist/cjs/icons/tsx/filterOff.d.ts +1 -0
- package/dist/cjs/icons/tsx/findInPage.d.ts +1 -0
- package/dist/cjs/icons/tsx/folder.d.ts +1 -0
- package/dist/cjs/icons/tsx/folderAdd.d.ts +1 -0
- package/dist/cjs/icons/tsx/fullsceenExit.d.ts +1 -0
- package/dist/cjs/icons/tsx/fullscreen.d.ts +1 -0
- package/dist/cjs/icons/tsx/gavel.d.ts +1 -0
- package/dist/cjs/icons/tsx/help.d.ts +1 -0
- package/dist/cjs/icons/tsx/helpFilled.d.ts +1 -0
- package/dist/cjs/icons/tsx/home.d.ts +1 -0
- package/dist/cjs/icons/tsx/image.d.ts +1 -0
- package/dist/cjs/icons/tsx/info.d.ts +1 -0
- package/dist/cjs/icons/tsx/instagram.d.ts +1 -0
- package/dist/cjs/icons/tsx/jordskifterett.d.ts +1 -0
- package/dist/cjs/icons/tsx/key.d.ts +1 -0
- package/dist/cjs/icons/tsx/lagmannsrett.d.ts +1 -0
- package/dist/cjs/icons/tsx/language.d.ts +1 -0
- package/dist/cjs/icons/tsx/libraryAdd.d.ts +1 -0
- package/dist/cjs/icons/tsx/lineChart.d.ts +1 -0
- package/dist/cjs/icons/tsx/link.d.ts +1 -0
- package/dist/cjs/icons/tsx/linkOff.d.ts +1 -0
- package/dist/cjs/icons/tsx/linkedIn.d.ts +1 -0
- package/dist/cjs/icons/tsx/list.d.ts +1 -0
- package/dist/cjs/icons/tsx/listAlt.d.ts +1 -0
- package/dist/cjs/icons/tsx/location.d.ts +1 -0
- package/dist/cjs/icons/tsx/lock.d.ts +1 -0
- package/dist/cjs/icons/tsx/lockOpen.d.ts +1 -0
- package/dist/cjs/icons/tsx/login.d.ts +1 -0
- package/dist/cjs/icons/tsx/logout.d.ts +1 -0
- package/dist/cjs/icons/tsx/mail.d.ts +1 -0
- package/dist/cjs/icons/tsx/mailOpen.d.ts +1 -0
- package/dist/cjs/icons/tsx/menu.d.ts +1 -0
- package/dist/cjs/icons/tsx/minus.d.ts +1 -0
- package/dist/cjs/icons/tsx/minusCircled.d.ts +1 -0
- package/dist/cjs/icons/tsx/moreHorizontal.d.ts +1 -0
- package/dist/cjs/icons/tsx/moreVertical.d.ts +1 -0
- package/dist/cjs/icons/tsx/notarial.d.ts +1 -0
- package/dist/cjs/icons/tsx/notifications.d.ts +1 -0
- package/dist/cjs/icons/tsx/notificationsOff.d.ts +1 -0
- package/dist/cjs/icons/tsx/onlineMeeting.d.ts +1 -0
- package/dist/cjs/icons/tsx/openExternal.d.ts +1 -0
- package/dist/cjs/icons/tsx/pdf.d.ts +1 -0
- package/dist/cjs/icons/tsx/person.d.ts +1 -0
- package/dist/cjs/icons/tsx/personAdd.d.ts +1 -0
- package/dist/cjs/icons/tsx/pin.d.ts +1 -0
- package/dist/cjs/icons/tsx/plus.d.ts +1 -0
- package/dist/cjs/icons/tsx/plusCircled.d.ts +1 -0
- package/dist/cjs/icons/tsx/print.d.ts +1 -0
- package/dist/cjs/icons/tsx/property.d.ts +1 -0
- package/dist/cjs/icons/tsx/publish.d.ts +1 -0
- package/dist/cjs/icons/tsx/questionAnswer.d.ts +1 -0
- package/dist/cjs/icons/tsx/receipt.d.ts +1 -0
- package/dist/cjs/icons/tsx/redo.d.ts +1 -0
- package/dist/cjs/icons/tsx/refresh.d.ts +1 -0
- package/dist/cjs/icons/tsx/replay.d.ts +1 -0
- package/dist/cjs/icons/tsx/search.d.ts +1 -0
- package/dist/cjs/icons/tsx/settings.d.ts +1 -0
- package/dist/cjs/icons/tsx/sms.d.ts +1 -0
- package/dist/cjs/icons/tsx/star.d.ts +1 -0
- package/dist/cjs/icons/tsx/starFilled.d.ts +1 -0
- package/dist/cjs/icons/tsx/sync.d.ts +1 -0
- package/dist/cjs/icons/tsx/time.d.ts +1 -0
- package/dist/cjs/icons/tsx/tingrett.d.ts +1 -0
- package/dist/cjs/icons/tsx/tip.d.ts +1 -0
- package/dist/cjs/icons/tsx/trash.d.ts +1 -0
- package/dist/cjs/icons/tsx/trendingDown.d.ts +1 -0
- package/dist/cjs/icons/tsx/trendingUp.d.ts +1 -0
- package/dist/cjs/icons/tsx/twitter.d.ts +1 -0
- package/dist/cjs/icons/tsx/undo.d.ts +1 -0
- package/dist/cjs/icons/tsx/unfoldLess.d.ts +1 -0
- package/dist/cjs/icons/tsx/unfoldMore.d.ts +1 -0
- package/dist/cjs/icons/tsx/upload.d.ts +1 -0
- package/dist/cjs/icons/tsx/visibilityOff.d.ts +1 -0
- package/dist/cjs/icons/tsx/visibilityOn.d.ts +1 -0
- package/dist/cjs/icons/tsx/warning.d.ts +1 -0
- package/dist/cjs/icons/tsx/zoomIn.d.ts +1 -0
- package/dist/cjs/icons/tsx/zoomOut.d.ts +1 -0
- package/dist/cjs/icons/utils/SvgWrapper.d.ts +1 -0
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +654 -974
- package/dist/cjs/test/mocks/IntersectionObserver.d.ts +1 -0
- package/dist/components/BackLink/BackLink.d.ts +6 -0
- package/dist/components/BackLink/BackLink.js +47 -0
- package/dist/components/BackLink/BackLink.stories.d.ts +17 -0
- package/dist/components/BackLink/BackLink.tokens.d.ts +8 -0
- package/dist/components/BackLink/BackLink.tokens.js +16 -0
- package/dist/components/BackLink/index.d.ts +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -12
- package/dist/components/Breadcrumbs/Breadcrumbs.js +3 -10
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -16
- package/dist/components/Button/Button.d.ts +1 -0
- package/dist/components/Button/Button.stories.d.ts +3 -3
- package/dist/components/Card/CardAccordion/CardAccordion.d.ts +1 -0
- package/dist/components/Card/CardAccordion/CardAccordionBody.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +2 -2
- package/dist/components/Checkbox/CheckboxGroup.d.ts +1 -0
- package/dist/components/Chip/Chip.d.ts +1 -0
- package/dist/components/Datepicker/Datepicker.d.ts +1 -0
- package/dist/components/DescriptionList/DescriptionList.d.ts +1 -0
- package/dist/components/DescriptionList/DescriptionListDesc.d.ts +1 -0
- package/dist/components/DescriptionList/DescriptionListGroup.d.ts +1 -0
- package/dist/components/Divider/Divider.d.ts +1 -0
- package/dist/components/Drawer/DrawerGroup.d.ts +1 -2
- package/dist/components/FileUploader/ErrorList.d.ts +1 -0
- package/dist/components/FileUploader/File.d.ts +1 -0
- package/dist/components/FileUploader/FileUploader.d.ts +1 -0
- package/dist/components/FileUploader/utils.d.ts +1 -0
- package/dist/components/GlobalMessage/GlobalMessage.d.ts +1 -0
- package/dist/components/Grid/Grid.context.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +1 -0
- package/dist/components/InlineEdit/InlineEdit.d.ts +1 -0
- package/dist/components/InlineEdit/InlineEdit.utils.d.ts +1 -0
- package/dist/components/InlineEdit/InlineEditInput.d.ts +1 -0
- package/dist/components/InlineEdit/InlineEditTextArea.d.ts +1 -0
- package/dist/components/InputMessage/InputMessage.d.ts +1 -0
- package/dist/components/InternalHeader/InternalHeader.d.ts +1 -0
- package/dist/components/InternalHeader/InternalHeader.styles.d.ts +1 -0
- package/dist/components/List/List.d.ts +1 -0
- package/dist/components/LocalMessage/LocalMessage.d.ts +1 -0
- package/dist/components/Modal/ModalBody.d.ts +1 -0
- package/dist/components/OverflowMenu/OverflowMenu.d.ts +1 -0
- package/dist/components/ProgressTracker/ProgressTracker.context.d.ts +1 -0
- package/dist/components/ProgressTracker/ProgressTrackerItem.d.ts +1 -0
- package/dist/components/RadioButton/RadioButton.d.ts +1 -0
- package/dist/components/RadioButton/RadioButton.stories.d.ts +3 -3
- package/dist/components/ScrollableContainer/ScrollableContainer.d.ts +1 -0
- package/dist/components/SkipToContent/SkipToContent.d.ts +1 -0
- package/dist/components/Spinner/Spinner.d.ts +1 -0
- package/dist/components/SplitButton/SplitButton.d.ts +1 -0
- package/dist/components/Stack/Stack.d.ts +1 -0
- package/dist/components/Stack/Stack.stories.d.ts +1 -0
- package/dist/components/Table/Row.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +1 -0
- package/dist/components/Table/collapsible/CollapsibleRow.d.ts +1 -0
- package/dist/components/Table/collapsible/CollapsibleTable.d.ts +1 -0
- package/dist/components/Table/collapsible/Table.context.d.ts +1 -0
- package/dist/components/Tabs/TabPanel.d.ts +1 -0
- package/dist/components/Tag/Tag.d.ts +1 -0
- package/dist/components/TextInput/CharCounter.d.ts +1 -0
- package/dist/components/ToggleBar/ToggleBar.d.ts +1 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +1 -0
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButtonGroup.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/components/Typography/Caption/Caption.d.ts +1 -0
- package/dist/components/Typography/Heading/Heading.d.ts +1 -0
- package/dist/components/Typography/Legend/Legend.d.ts +1 -0
- package/dist/components/Typography/Link/Link.stories.d.ts +3 -3
- package/dist/components/Typography/Paragraph/Paragraph.d.ts +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -0
- package/dist/helpers/Chevron/AnimatedChevronUpDown.d.ts +1 -0
- package/dist/helpers/Input/Input.utils.d.ts +1 -0
- package/dist/helpers/RequiredMarker/RequiredMarker.d.ts +1 -0
- package/dist/hooks/useFloatPosition.d.ts +1 -0
- package/dist/icons/tsx/apps.d.ts +1 -0
- package/dist/icons/tsx/archive.d.ts +1 -0
- package/dist/icons/tsx/arrowDown.d.ts +1 -0
- package/dist/icons/tsx/arrowLeft.d.ts +1 -0
- package/dist/icons/tsx/arrowRight.d.ts +1 -0
- package/dist/icons/tsx/arrowUp.d.ts +1 -0
- package/dist/icons/tsx/attachment.d.ts +1 -0
- package/dist/icons/tsx/barChart.d.ts +1 -0
- package/dist/icons/tsx/barChartBoxed.d.ts +1 -0
- package/dist/icons/tsx/block.d.ts +1 -0
- package/dist/icons/tsx/book.d.ts +1 -0
- package/dist/icons/tsx/build.d.ts +1 -0
- package/dist/icons/tsx/buildCircled.d.ts +1 -0
- package/dist/icons/tsx/calendar.d.ts +1 -0
- package/dist/icons/tsx/calendarMonth.d.ts +1 -0
- package/dist/icons/tsx/calendarViewDay.d.ts +1 -0
- package/dist/icons/tsx/calendarViewMonth.d.ts +1 -0
- package/dist/icons/tsx/calendarViewWeek.d.ts +1 -0
- package/dist/icons/tsx/call.d.ts +1 -0
- package/dist/icons/tsx/chat.d.ts +1 -0
- package/dist/icons/tsx/check.d.ts +1 -0
- package/dist/icons/tsx/checkCircled.d.ts +1 -0
- package/dist/icons/tsx/checklist.d.ts +1 -0
- package/dist/icons/tsx/chevronDown.d.ts +1 -0
- package/dist/icons/tsx/chevronFirst.d.ts +1 -0
- package/dist/icons/tsx/chevronLargeLeft.d.ts +1 -0
- package/dist/icons/tsx/chevronLargeRight.d.ts +1 -0
- package/dist/icons/tsx/chevronLast.d.ts +1 -0
- package/dist/icons/tsx/chevronLeft.d.ts +1 -0
- package/dist/icons/tsx/chevronRight.d.ts +1 -0
- package/dist/icons/tsx/chevronUp.d.ts +1 -0
- package/dist/icons/tsx/close.d.ts +1 -0
- package/dist/icons/tsx/closeCircled.d.ts +1 -0
- package/dist/icons/tsx/closeSmall.d.ts +1 -0
- package/dist/icons/tsx/cloud.d.ts +1 -0
- package/dist/icons/tsx/collapse.d.ts +1 -0
- package/dist/icons/tsx/comment.d.ts +1 -0
- package/dist/icons/tsx/copy.d.ts +1 -0
- package/dist/icons/tsx/court.d.ts +1 -0
- package/dist/icons/tsx/dateRange.d.ts +1 -0
- package/dist/icons/tsx/deaths.d.ts +1 -0
- package/dist/icons/tsx/doubleChevronLeft.d.ts +1 -0
- package/dist/icons/tsx/doubleChevronRight.d.ts +1 -0
- package/dist/icons/tsx/download.d.ts +1 -0
- package/dist/icons/tsx/downloadDone.d.ts +1 -0
- package/dist/icons/tsx/dragHandle.d.ts +1 -0
- package/dist/icons/tsx/edit.d.ts +1 -0
- package/dist/icons/tsx/error.d.ts +1 -0
- package/dist/icons/tsx/exclaim.d.ts +1 -0
- package/dist/icons/tsx/expand.d.ts +1 -0
- package/dist/icons/tsx/facebook.d.ts +1 -0
- package/dist/icons/tsx/family.d.ts +1 -0
- package/dist/icons/tsx/feedback.d.ts +1 -0
- package/dist/icons/tsx/file.d.ts +1 -0
- package/dist/icons/tsx/fileAdd.d.ts +1 -0
- package/dist/icons/tsx/fileText.d.ts +1 -0
- package/dist/icons/tsx/filter.d.ts +1 -0
- package/dist/icons/tsx/filterList.d.ts +1 -0
- package/dist/icons/tsx/filterListOff.d.ts +1 -0
- package/dist/icons/tsx/filterOff.d.ts +1 -0
- package/dist/icons/tsx/findInPage.d.ts +1 -0
- package/dist/icons/tsx/folder.d.ts +1 -0
- package/dist/icons/tsx/folderAdd.d.ts +1 -0
- package/dist/icons/tsx/fullsceenExit.d.ts +1 -0
- package/dist/icons/tsx/fullscreen.d.ts +1 -0
- package/dist/icons/tsx/gavel.d.ts +1 -0
- package/dist/icons/tsx/help.d.ts +1 -0
- package/dist/icons/tsx/helpFilled.d.ts +1 -0
- package/dist/icons/tsx/home.d.ts +1 -0
- package/dist/icons/tsx/image.d.ts +1 -0
- package/dist/icons/tsx/info.d.ts +1 -0
- package/dist/icons/tsx/instagram.d.ts +1 -0
- package/dist/icons/tsx/jordskifterett.d.ts +1 -0
- package/dist/icons/tsx/key.d.ts +1 -0
- package/dist/icons/tsx/lagmannsrett.d.ts +1 -0
- package/dist/icons/tsx/language.d.ts +1 -0
- package/dist/icons/tsx/libraryAdd.d.ts +1 -0
- package/dist/icons/tsx/lineChart.d.ts +1 -0
- package/dist/icons/tsx/link.d.ts +1 -0
- package/dist/icons/tsx/linkOff.d.ts +1 -0
- package/dist/icons/tsx/linkedIn.d.ts +1 -0
- package/dist/icons/tsx/list.d.ts +1 -0
- package/dist/icons/tsx/listAlt.d.ts +1 -0
- package/dist/icons/tsx/location.d.ts +1 -0
- package/dist/icons/tsx/lock.d.ts +1 -0
- package/dist/icons/tsx/lockOpen.d.ts +1 -0
- package/dist/icons/tsx/login.d.ts +1 -0
- package/dist/icons/tsx/logout.d.ts +1 -0
- package/dist/icons/tsx/mail.d.ts +1 -0
- package/dist/icons/tsx/mailOpen.d.ts +1 -0
- package/dist/icons/tsx/menu.d.ts +1 -0
- package/dist/icons/tsx/minus.d.ts +1 -0
- package/dist/icons/tsx/minusCircled.d.ts +1 -0
- package/dist/icons/tsx/moreHorizontal.d.ts +1 -0
- package/dist/icons/tsx/moreVertical.d.ts +1 -0
- package/dist/icons/tsx/notarial.d.ts +1 -0
- package/dist/icons/tsx/notifications.d.ts +1 -0
- package/dist/icons/tsx/notificationsOff.d.ts +1 -0
- package/dist/icons/tsx/onlineMeeting.d.ts +1 -0
- package/dist/icons/tsx/openExternal.d.ts +1 -0
- package/dist/icons/tsx/pdf.d.ts +1 -0
- package/dist/icons/tsx/person.d.ts +1 -0
- package/dist/icons/tsx/personAdd.d.ts +1 -0
- package/dist/icons/tsx/pin.d.ts +1 -0
- package/dist/icons/tsx/plus.d.ts +1 -0
- package/dist/icons/tsx/plusCircled.d.ts +1 -0
- package/dist/icons/tsx/print.d.ts +1 -0
- package/dist/icons/tsx/property.d.ts +1 -0
- package/dist/icons/tsx/publish.d.ts +1 -0
- package/dist/icons/tsx/questionAnswer.d.ts +1 -0
- package/dist/icons/tsx/receipt.d.ts +1 -0
- package/dist/icons/tsx/redo.d.ts +1 -0
- package/dist/icons/tsx/refresh.d.ts +1 -0
- package/dist/icons/tsx/replay.d.ts +1 -0
- package/dist/icons/tsx/search.d.ts +1 -0
- package/dist/icons/tsx/settings.d.ts +1 -0
- package/dist/icons/tsx/sms.d.ts +1 -0
- package/dist/icons/tsx/star.d.ts +1 -0
- package/dist/icons/tsx/starFilled.d.ts +1 -0
- package/dist/icons/tsx/sync.d.ts +1 -0
- package/dist/icons/tsx/time.d.ts +1 -0
- package/dist/icons/tsx/tingrett.d.ts +1 -0
- package/dist/icons/tsx/tip.d.ts +1 -0
- package/dist/icons/tsx/trash.d.ts +1 -0
- package/dist/icons/tsx/trendingDown.d.ts +1 -0
- package/dist/icons/tsx/trendingUp.d.ts +1 -0
- package/dist/icons/tsx/twitter.d.ts +1 -0
- package/dist/icons/tsx/undo.d.ts +1 -0
- package/dist/icons/tsx/unfoldLess.d.ts +1 -0
- package/dist/icons/tsx/unfoldMore.d.ts +1 -0
- package/dist/icons/tsx/upload.d.ts +1 -0
- package/dist/icons/tsx/visibilityOff.d.ts +1 -0
- package/dist/icons/tsx/visibilityOn.d.ts +1 -0
- package/dist/icons/tsx/warning.d.ts +1 -0
- package/dist/icons/tsx/zoomIn.d.ts +1 -0
- package/dist/icons/tsx/zoomOut.d.ts +1 -0
- package/dist/icons/utils/SvgWrapper.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -2
- package/dist/test/mocks/IntersectionObserver.d.ts +1 -0
- package/package.json +8 -28
- package/dist/cjs/components/FormGenerator/FormGenerator.d.ts +0 -5
- package/dist/cjs/components/FormGenerator/FormGenerator.examples.d.ts +0 -5
- package/dist/cjs/components/FormGenerator/FormGenerator.stories.d.ts +0 -10
- package/dist/cjs/components/FormGenerator/FormGenerator.styles.d.ts +0 -10
- package/dist/cjs/components/FormGenerator/FormGenerator.tokens.d.ts +0 -19
- package/dist/cjs/components/FormGenerator/FormGenerator.types.d.ts +0 -223
- package/dist/cjs/components/FormGenerator/index.d.ts +0 -2
- package/dist/components/FormGenerator/FormGenerator.d.ts +0 -5
- package/dist/components/FormGenerator/FormGenerator.examples.d.ts +0 -5
- package/dist/components/FormGenerator/FormGenerator.js +0 -316
- package/dist/components/FormGenerator/FormGenerator.stories.d.ts +0 -10
- package/dist/components/FormGenerator/FormGenerator.styles.d.ts +0 -10
- package/dist/components/FormGenerator/FormGenerator.styles.js +0 -48
- package/dist/components/FormGenerator/FormGenerator.tokens.d.ts +0 -19
- package/dist/components/FormGenerator/FormGenerator.tokens.js +0 -21
- package/dist/components/FormGenerator/FormGenerator.types.d.ts +0 -223
- package/dist/components/FormGenerator/FormGenerator.types.js +0 -33
- package/dist/components/FormGenerator/index.d.ts +0 -2
package/dist/icons/tsx/pdf.d.ts
CHANGED
package/dist/icons/tsx/pin.d.ts
CHANGED
package/dist/icons/tsx/plus.d.ts
CHANGED
package/dist/icons/tsx/redo.d.ts
CHANGED
package/dist/icons/tsx/sms.d.ts
CHANGED
package/dist/icons/tsx/star.d.ts
CHANGED
package/dist/icons/tsx/sync.d.ts
CHANGED
package/dist/icons/tsx/time.d.ts
CHANGED
package/dist/icons/tsx/tip.d.ts
CHANGED
package/dist/icons/tsx/undo.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -43,8 +43,8 @@ export * from './components/InlineEdit';
|
|
|
43
43
|
export * from './components/TextArea';
|
|
44
44
|
export * from './components/SplitButton';
|
|
45
45
|
export * from './components/Stack';
|
|
46
|
-
export * from './components/FormGenerator';
|
|
47
46
|
export * from './components/FileUploader';
|
|
48
47
|
export * from './types/BaseComponentProps';
|
|
49
48
|
export * from './helpers/ScreenSize';
|
|
50
49
|
export * from './components/EmptyContent';
|
|
50
|
+
export * from './components/BackLink';
|
package/dist/index.js
CHANGED
|
@@ -216,9 +216,8 @@ export { InlineEditInput } from './components/InlineEdit/InlineEditInput.js';
|
|
|
216
216
|
export { StyledTextArea, TextArea } from './components/TextArea/TextArea.js';
|
|
217
217
|
export { SplitButton } from './components/SplitButton/SplitButton.js';
|
|
218
218
|
export { HStack, VStack } from './components/Stack/Stack.js';
|
|
219
|
-
export { FormGenerator } from './components/FormGenerator/FormGenerator.js';
|
|
220
|
-
export { FormGeneratorSupportedFields } from './components/FormGenerator/FormGenerator.types.js';
|
|
221
219
|
export { FileUploader } from './components/FileUploader/FileUploader.js';
|
|
222
220
|
export { getBaseHTMLProps, joinClassNames } from './types/BaseComponentProps.js';
|
|
223
221
|
export { getLiteralScreenSize } from './helpers/ScreenSize/ScreenSize.utils.js';
|
|
224
222
|
export { EmptyContent } from './components/EmptyContent/EmptyContent.js';
|
|
223
|
+
export { BackLink } from './components/BackLink/BackLink.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@norges-domstoler/dds-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "React components used in Elsa - domstolenes designsystem",
|
|
5
5
|
"author": "Elsa team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"homepage": "https://design.domstol.no",
|
|
21
21
|
"scripts": {
|
|
22
22
|
"clean": "rm -r dist || :",
|
|
23
|
-
"test": "
|
|
24
|
-
"test:watch": "
|
|
23
|
+
"test": "vitest run",
|
|
24
|
+
"test:watch": "vitest watch",
|
|
25
25
|
"build": "rollup -c",
|
|
26
26
|
"dev": "concurrently 'npm:dev:*'",
|
|
27
27
|
"dev:rollup": "rollup -c -w",
|
|
@@ -67,7 +67,6 @@
|
|
|
67
67
|
"@testing-library/jest-dom": "^5.16.5",
|
|
68
68
|
"@testing-library/react": "^14.0.0",
|
|
69
69
|
"@testing-library/user-event": "^14.4.3",
|
|
70
|
-
"@types/jest": "^29.4.0",
|
|
71
70
|
"@types/react": "^18.0.21",
|
|
72
71
|
"@types/react-dom": "^18.0.11",
|
|
73
72
|
"@types/styled-components": "^5.1.26",
|
|
@@ -76,13 +75,12 @@
|
|
|
76
75
|
"babel-loader": "^9.1.2",
|
|
77
76
|
"babel-plugin-styled-components": "^2.0.7",
|
|
78
77
|
"concurrently": "^7.4.0",
|
|
79
|
-
"eslint": "^8.
|
|
78
|
+
"eslint": "^8.38.0",
|
|
80
79
|
"eslint-config-prettier": "^8.7.0",
|
|
81
80
|
"eslint-plugin-prettier": "^4.2.1",
|
|
82
81
|
"eslint-plugin-react": "^7.32.2",
|
|
83
82
|
"eslint-plugin-storybook": "^0.6.4",
|
|
84
|
-
"
|
|
85
|
-
"jest-environment-jsdom": "^29.4.2",
|
|
83
|
+
"jsdom": "^21.1.1",
|
|
86
84
|
"react": "^18.2.0",
|
|
87
85
|
"react-dom": "^18.2.0",
|
|
88
86
|
"rollup": "^3.10.0",
|
|
@@ -90,8 +88,9 @@
|
|
|
90
88
|
"rollup-plugin-import-css": "^3.1.0",
|
|
91
89
|
"rollup-plugin-sass": "^1.12.19",
|
|
92
90
|
"rollup-plugin-typescript2": "^0.34.1",
|
|
93
|
-
"
|
|
94
|
-
"
|
|
91
|
+
"typescript": "^5.0.2",
|
|
92
|
+
"vite": "^4.2.1",
|
|
93
|
+
"vitest": "^0.30.1"
|
|
95
94
|
},
|
|
96
95
|
"peerDependencies": {
|
|
97
96
|
"@norges-domstoler/dds-design-tokens": "^3",
|
|
@@ -99,25 +98,6 @@
|
|
|
99
98
|
"react-dom": "^16 || ^17 || ^18",
|
|
100
99
|
"styled-components": "^5"
|
|
101
100
|
},
|
|
102
|
-
"jest": {
|
|
103
|
-
"preset": "ts-jest",
|
|
104
|
-
"testEnvironment": "jsdom",
|
|
105
|
-
"setupFilesAfterEnv": [
|
|
106
|
-
"<rootDir>/src/setupTests.ts"
|
|
107
|
-
],
|
|
108
|
-
"moduleNameMapper": {
|
|
109
|
-
"\\.css$": "<rootDir>/__mocks__/styleMock.js"
|
|
110
|
-
},
|
|
111
|
-
"transform": {
|
|
112
|
-
"\\.svg$": "<rootDir>/svgTransform.js",
|
|
113
|
-
"^.+\\.tsx?$": [
|
|
114
|
-
"ts-jest",
|
|
115
|
-
{
|
|
116
|
-
"tsconfig": "tsconfig.json"
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
101
|
"dependencies": {
|
|
122
102
|
"@floating-ui/react-dom": "^1.3.0",
|
|
123
103
|
"attr-accept": "^2.2.2",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FormGeneratorProps } from './FormGenerator.types';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated FormGenerator er flyttet til egen pakke og renamet til PageGenerator. Se @norges-domstoler/dds-page-generator.
|
|
4
|
-
*/
|
|
5
|
-
export declare const FormGenerator: (props: FormGeneratorProps) => JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FormGeneratorField, FormGeneratorRow } from './FormGenerator.types';
|
|
2
|
-
export declare const exampleDefault: (FormGeneratorField | FormGeneratorRow)[];
|
|
3
|
-
export declare const exampleRowTypes: (FormGeneratorField | FormGeneratorRow)[];
|
|
4
|
-
export declare const exampleChildren: (FormGeneratorField | FormGeneratorRow)[];
|
|
5
|
-
export declare const exampleFull: (FormGeneratorField | FormGeneratorRow)[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FormGeneratorProps } from './FormGenerator.types';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: (props: FormGeneratorProps) => JSX.Element;
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: (args: FormGeneratorProps) => JSX.Element;
|
|
8
|
-
export declare const Rows: (args: FormGeneratorProps) => JSX.Element;
|
|
9
|
-
export declare const ComponentWithChildren: (args: FormGeneratorProps) => JSX.Element;
|
|
10
|
-
export declare const FullExample: (args: FormGeneratorProps) => JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ScreenSize } from '../../hooks/useScreenSize';
|
|
2
|
-
export declare const FormGeneratorFlexContainer: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
-
screenSize: ScreenSize;
|
|
4
|
-
}, never>;
|
|
5
|
-
export declare const SubContainer: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
-
screenSize: ScreenSize;
|
|
7
|
-
length: number;
|
|
8
|
-
breakpoint?: ScreenSize | undefined;
|
|
9
|
-
}, never>;
|
|
10
|
-
export declare const ButtonRow: import("styled-components").StyledComponent<(props: import("../Grid").GridChildProps) => JSX.Element, any, {}, never>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const formGeneratorTokens: {
|
|
2
|
-
columnGaps: {
|
|
3
|
-
0: string;
|
|
4
|
-
1: string;
|
|
5
|
-
2: string;
|
|
6
|
-
3: string;
|
|
7
|
-
4: string;
|
|
8
|
-
};
|
|
9
|
-
rowGaps: {
|
|
10
|
-
xs: string;
|
|
11
|
-
sm: string;
|
|
12
|
-
md: string;
|
|
13
|
-
lg: string;
|
|
14
|
-
xl: string;
|
|
15
|
-
};
|
|
16
|
-
buttonRow: {
|
|
17
|
-
marginTop: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import { ScreenSize } from '../..';
|
|
2
|
-
import { BaseComponentPropsWithChildren } from '../../types';
|
|
3
|
-
import { ButtonProps } from '../Button';
|
|
4
|
-
import { CardProps } from '../Card';
|
|
5
|
-
import { CheckboxGroupProps, CheckboxProps } from '../Checkbox';
|
|
6
|
-
import { DatepickerProps } from '../Datepicker';
|
|
7
|
-
import { DescriptionListProps, DescriptionListDescProps, DescriptionListGroupProps, DescriptionListTermProps } from '../DescriptionList';
|
|
8
|
-
import { DividerProps } from '../Divider';
|
|
9
|
-
import { GlobalMessageProps } from '../GlobalMessage';
|
|
10
|
-
import { InputMessageProps } from '../InputMessage';
|
|
11
|
-
import { ListProps, ListItemProps } from '../List';
|
|
12
|
-
import { LocalMessageProps } from '../LocalMessage';
|
|
13
|
-
import { RadioButtonGroupProps, RadioButtonProps } from '../RadioButton';
|
|
14
|
-
import { SelectOption, SelectProps } from '../Select';
|
|
15
|
-
import { SpinnerProps } from '../Spinner';
|
|
16
|
-
import { TextInputProps } from '../TextInput';
|
|
17
|
-
import { ToggleButtonProps, ToggleButtonGroupProps } from '../ToggleButton';
|
|
18
|
-
import { HeadingProps, LabelProps, LinkProps, ParagraphProps, TypographyProps } from '../Typography';
|
|
19
|
-
import { VisuallyHiddenProps } from '../VisuallyHidden';
|
|
20
|
-
export type FormGeneratorProps = BaseComponentPropsWithChildren<HTMLElement, {
|
|
21
|
-
/** Definere liste med felt/komponenter og/eller rader med felt/komponenter */
|
|
22
|
-
fields: (FormGeneratorField | FormGeneratorRow)[];
|
|
23
|
-
/** For å hente ut state etter endringer */
|
|
24
|
-
stateOnChange: (newState: object) => void;
|
|
25
|
-
}>;
|
|
26
|
-
export type FormGeneratorRow = {
|
|
27
|
-
rowType: 'button' | 'standard';
|
|
28
|
-
breakpoint?: ScreenSize;
|
|
29
|
-
fields: FormGeneratorField[];
|
|
30
|
-
};
|
|
31
|
-
export declare enum FormGeneratorSupportedFields {
|
|
32
|
-
Button = "Button",
|
|
33
|
-
Card = "Card",
|
|
34
|
-
Checkbox = "Checkbox",
|
|
35
|
-
CheckboxGroup = "CheckboxGroup",
|
|
36
|
-
Datepicker = "Datepicker",
|
|
37
|
-
DescriptionList = "DescriptionList",
|
|
38
|
-
DescriptionListGroup = "DescriptionListGroup",
|
|
39
|
-
DescriptionListDesc = "DescriptionListDesc",
|
|
40
|
-
DescriptionListTerm = "DescriptionListTerm",
|
|
41
|
-
Divider = "Divider",
|
|
42
|
-
GlobalMessage = "GlobalMessage",
|
|
43
|
-
Heading = "Heading",
|
|
44
|
-
InputMessage = "InputMessage",
|
|
45
|
-
Label = "Label",
|
|
46
|
-
Link = "Link",
|
|
47
|
-
List = "List",
|
|
48
|
-
ListItem = "ListItem",
|
|
49
|
-
LocalMessage = "LocalMessage",
|
|
50
|
-
Paragraph = "Paragraph",
|
|
51
|
-
RadioButton = "RadioButton",
|
|
52
|
-
RadioButtonGroup = "RadioButtonGroup",
|
|
53
|
-
Select = "Select",
|
|
54
|
-
Spinner = "Spinner",
|
|
55
|
-
TextInput = "TextInput",
|
|
56
|
-
ToggleButton = "ToggleButton",
|
|
57
|
-
ToggleButtonGroup = "ToggleButtonGroup",
|
|
58
|
-
Typography = "Typography",
|
|
59
|
-
VisuallyHidden = "VisuallyHidden"
|
|
60
|
-
}
|
|
61
|
-
export type FormGeneratorField = FieldWithChildren | FieldWithoutChildren;
|
|
62
|
-
type FieldWithChildren = CheckboxGroupField | DescriptionListField | DescriptionListGroupField | ListField | RadioButtonGroupField | ToggleButtonGroupField;
|
|
63
|
-
type FieldWithoutChildren = ButtonField | CardField | CheckboxField | DatepickerField | DescriptionListTermField | DescriptionListDescField | DividerField | GlobalMessageField | HeadingField | InputMessageField | LabelField | LinkField | ListItemField | LocalMessageField | ParagraphField | RadioButtonField | SelectField | SpinnerField | TextInputField | ToggleButtonField | TypographyField | VisuallyHiddenField;
|
|
64
|
-
type ButtonField = {
|
|
65
|
-
component: FormGeneratorSupportedFields.Button;
|
|
66
|
-
props: ButtonProps;
|
|
67
|
-
hide?: boolean;
|
|
68
|
-
};
|
|
69
|
-
type CardField = {
|
|
70
|
-
component: FormGeneratorSupportedFields.Card;
|
|
71
|
-
props: CardProps;
|
|
72
|
-
hide?: boolean;
|
|
73
|
-
innerHTML: JSX.Element | string;
|
|
74
|
-
};
|
|
75
|
-
type CheckboxField = {
|
|
76
|
-
component: FormGeneratorSupportedFields.Checkbox;
|
|
77
|
-
props: CheckboxProps;
|
|
78
|
-
hide?: boolean;
|
|
79
|
-
};
|
|
80
|
-
type CheckboxGroupField = {
|
|
81
|
-
component: FormGeneratorSupportedFields.CheckboxGroup;
|
|
82
|
-
props: CheckboxGroupProps;
|
|
83
|
-
hide?: boolean;
|
|
84
|
-
children: CheckboxField[];
|
|
85
|
-
};
|
|
86
|
-
type DatepickerField = {
|
|
87
|
-
component: FormGeneratorSupportedFields.Datepicker;
|
|
88
|
-
props: DatepickerProps;
|
|
89
|
-
hide?: boolean;
|
|
90
|
-
};
|
|
91
|
-
type DescriptionListField = {
|
|
92
|
-
component: FormGeneratorSupportedFields.DescriptionList;
|
|
93
|
-
props: DescriptionListProps;
|
|
94
|
-
hide?: boolean;
|
|
95
|
-
children: DescriptionListGroupField[];
|
|
96
|
-
};
|
|
97
|
-
type DescriptionListGroupField = {
|
|
98
|
-
component: FormGeneratorSupportedFields.DescriptionListGroup;
|
|
99
|
-
props: DescriptionListGroupProps;
|
|
100
|
-
hide?: boolean;
|
|
101
|
-
children: (DescriptionListTermField | DescriptionListDescField)[];
|
|
102
|
-
};
|
|
103
|
-
type DescriptionListTermField = {
|
|
104
|
-
component: FormGeneratorSupportedFields.DescriptionListTerm;
|
|
105
|
-
props: DescriptionListTermProps;
|
|
106
|
-
hide?: boolean;
|
|
107
|
-
innerHTML: JSX.Element | string;
|
|
108
|
-
};
|
|
109
|
-
type DescriptionListDescField = {
|
|
110
|
-
component: FormGeneratorSupportedFields.DescriptionListDesc;
|
|
111
|
-
props: DescriptionListDescProps;
|
|
112
|
-
hide?: boolean;
|
|
113
|
-
innerHTML: JSX.Element | string;
|
|
114
|
-
};
|
|
115
|
-
type DividerField = {
|
|
116
|
-
component: FormGeneratorSupportedFields.Divider;
|
|
117
|
-
props: DividerProps;
|
|
118
|
-
hide?: boolean;
|
|
119
|
-
};
|
|
120
|
-
type GlobalMessageField = {
|
|
121
|
-
component: FormGeneratorSupportedFields.GlobalMessage;
|
|
122
|
-
props: GlobalMessageProps;
|
|
123
|
-
hide?: boolean;
|
|
124
|
-
innerHTML?: JSX.Element | string;
|
|
125
|
-
};
|
|
126
|
-
type HeadingField = {
|
|
127
|
-
component: FormGeneratorSupportedFields.Heading;
|
|
128
|
-
props: HeadingProps;
|
|
129
|
-
hide?: boolean;
|
|
130
|
-
innerHTML?: JSX.Element | string;
|
|
131
|
-
};
|
|
132
|
-
type InputMessageField = {
|
|
133
|
-
component: FormGeneratorSupportedFields.InputMessage;
|
|
134
|
-
props: InputMessageProps;
|
|
135
|
-
hide?: boolean;
|
|
136
|
-
};
|
|
137
|
-
type LabelField = {
|
|
138
|
-
component: FormGeneratorSupportedFields.Label;
|
|
139
|
-
props: LabelProps;
|
|
140
|
-
hide?: boolean;
|
|
141
|
-
innerHTML?: JSX.Element | string;
|
|
142
|
-
};
|
|
143
|
-
type LinkField = {
|
|
144
|
-
component: FormGeneratorSupportedFields.Link;
|
|
145
|
-
props: LinkProps;
|
|
146
|
-
hide?: boolean;
|
|
147
|
-
innerHTML?: JSX.Element | string;
|
|
148
|
-
};
|
|
149
|
-
type ListItemField = {
|
|
150
|
-
component: FormGeneratorSupportedFields.ListItem;
|
|
151
|
-
props?: ListItemProps;
|
|
152
|
-
hide?: boolean;
|
|
153
|
-
innerHTML?: JSX.Element | string;
|
|
154
|
-
};
|
|
155
|
-
type ListField = {
|
|
156
|
-
component: FormGeneratorSupportedFields.List;
|
|
157
|
-
props?: ListProps;
|
|
158
|
-
hide?: boolean;
|
|
159
|
-
children: ListItemField[];
|
|
160
|
-
};
|
|
161
|
-
type LocalMessageField = {
|
|
162
|
-
component: FormGeneratorSupportedFields.LocalMessage;
|
|
163
|
-
props: LocalMessageProps;
|
|
164
|
-
hide?: boolean;
|
|
165
|
-
innerHTML?: JSX.Element | string;
|
|
166
|
-
};
|
|
167
|
-
type ParagraphField = {
|
|
168
|
-
component: FormGeneratorSupportedFields.Paragraph;
|
|
169
|
-
props: ParagraphProps;
|
|
170
|
-
hide?: boolean;
|
|
171
|
-
innerHTML?: JSX.Element | string;
|
|
172
|
-
};
|
|
173
|
-
type RadioButtonField = {
|
|
174
|
-
component: FormGeneratorSupportedFields.RadioButton;
|
|
175
|
-
props: RadioButtonProps;
|
|
176
|
-
hide?: boolean;
|
|
177
|
-
};
|
|
178
|
-
type RadioButtonGroupField = {
|
|
179
|
-
component: FormGeneratorSupportedFields.RadioButtonGroup;
|
|
180
|
-
props: RadioButtonGroupProps<string | number>;
|
|
181
|
-
hide?: boolean;
|
|
182
|
-
children: RadioButtonField[];
|
|
183
|
-
};
|
|
184
|
-
type SelectField = {
|
|
185
|
-
component: FormGeneratorSupportedFields.Select;
|
|
186
|
-
props: SelectProps<SelectOption<unknown>, boolean>;
|
|
187
|
-
name: string;
|
|
188
|
-
hide?: boolean;
|
|
189
|
-
};
|
|
190
|
-
type SpinnerField = {
|
|
191
|
-
component: FormGeneratorSupportedFields.Spinner;
|
|
192
|
-
props: SpinnerProps;
|
|
193
|
-
hide?: boolean;
|
|
194
|
-
};
|
|
195
|
-
type TextInputField = {
|
|
196
|
-
component: FormGeneratorSupportedFields.TextInput;
|
|
197
|
-
props: TextInputProps;
|
|
198
|
-
hide?: boolean;
|
|
199
|
-
};
|
|
200
|
-
type ToggleButtonField = {
|
|
201
|
-
component: FormGeneratorSupportedFields.ToggleButton;
|
|
202
|
-
props: ToggleButtonProps;
|
|
203
|
-
hide?: boolean;
|
|
204
|
-
};
|
|
205
|
-
type ToggleButtonGroupField = {
|
|
206
|
-
component: FormGeneratorSupportedFields.ToggleButtonGroup;
|
|
207
|
-
props: ToggleButtonGroupProps;
|
|
208
|
-
hide?: boolean;
|
|
209
|
-
children: ToggleButtonField[];
|
|
210
|
-
};
|
|
211
|
-
type TypographyField = {
|
|
212
|
-
component: FormGeneratorSupportedFields.Typography;
|
|
213
|
-
props: TypographyProps;
|
|
214
|
-
hide?: boolean;
|
|
215
|
-
innerHTML: JSX.Element | string;
|
|
216
|
-
};
|
|
217
|
-
type VisuallyHiddenField = {
|
|
218
|
-
component: FormGeneratorSupportedFields.VisuallyHidden;
|
|
219
|
-
props: VisuallyHiddenProps;
|
|
220
|
-
hide?: boolean;
|
|
221
|
-
innerHTML: JSX.Element | string;
|
|
222
|
-
};
|
|
223
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FormGeneratorProps } from './FormGenerator.types';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated FormGenerator er flyttet til egen pakke og renamet til PageGenerator. Se @norges-domstoler/dds-page-generator.
|
|
4
|
-
*/
|
|
5
|
-
export declare const FormGenerator: (props: FormGeneratorProps) => JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FormGeneratorField, FormGeneratorRow } from './FormGenerator.types';
|
|
2
|
-
export declare const exampleDefault: (FormGeneratorField | FormGeneratorRow)[];
|
|
3
|
-
export declare const exampleRowTypes: (FormGeneratorField | FormGeneratorRow)[];
|
|
4
|
-
export declare const exampleChildren: (FormGeneratorField | FormGeneratorRow)[];
|
|
5
|
-
export declare const exampleFull: (FormGeneratorField | FormGeneratorRow)[];
|