@norges-domstoler/dds-components 13.8.1 → 13.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/calendar_today-PMIB5OWO.svg +1 -0
- package/dist/index.d.mts +1761 -0
- package/dist/index.d.ts +1761 -50
- package/dist/index.js +10532 -74
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +10891 -0
- package/dist/index.mjs.map +1 -0
- package/dist/jordskifterett_bullet1-JEURT2QQ.svg +3 -0
- package/dist/lagmannsrett_bullet2-UGFNA6RB.svg +3 -0
- package/dist/tingrett_bullet3-KRK5OB4E.svg +3 -0
- package/package.json +23 -22
- package/dist/_virtual/_rollupPluginBabelHelpers.js +0 -392
- package/dist/assets/bundle-24847e44.css +0 -97
- package/dist/cjs/assets/bundle-24847e44.css +0 -97
- package/dist/cjs/components/AppShell/AppShell.d.ts +0 -38
- package/dist/cjs/components/AppShell/AppShell.stories.d.ts +0 -28
- package/dist/cjs/components/AppShell/AppShell.tokens.d.ts +0 -84
- package/dist/cjs/components/AppShell/AppShellContext.d.ts +0 -10
- package/dist/cjs/components/AppShell/Navigation/EmbeteIcon.d.ts +0 -7
- package/dist/cjs/components/AppShell/Navigation/Navigation.d.ts +0 -13
- package/dist/cjs/components/AppShell/Navigation/NavigationItem.d.ts +0 -20
- package/dist/cjs/components/AppShell/Navigation/NavigationLogo.d.ts +0 -3
- package/dist/cjs/components/AppShell/Navigation/TopBar.d.ts +0 -23
- package/dist/cjs/components/AppShell/index.d.ts +0 -7
- package/dist/cjs/components/BackLink/BackLink.d.ts +0 -6
- package/dist/cjs/components/BackLink/BackLink.stories.d.ts +0 -18
- package/dist/cjs/components/BackLink/BackLink.tokens.d.ts +0 -8
- package/dist/cjs/components/BackLink/index.d.ts +0 -1
- package/dist/cjs/components/Breadcrumbs/Breadcrumb.d.ts +0 -3
- package/dist/cjs/components/Breadcrumbs/Breadcrumb.tokens.d.ts +0 -13
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.d.ts +0 -4
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -8
- package/dist/cjs/components/Breadcrumbs/index.d.ts +0 -2
- package/dist/cjs/components/Button/Button.d.ts +0 -21
- package/dist/cjs/components/Button/Button.stories.d.ts +0 -64
- package/dist/cjs/components/Button/Button.styles.d.ts +0 -25
- package/dist/cjs/components/Button/Button.tokens.d.ts +0 -332
- package/dist/cjs/components/Button/Button.types.d.ts +0 -33
- package/dist/cjs/components/Button/index.d.ts +0 -2
- package/dist/cjs/components/Card/Card.d.ts +0 -26
- package/dist/cjs/components/Card/Card.stories.d.ts +0 -15
- package/dist/cjs/components/Card/Card.tokens.d.ts +0 -27
- package/dist/cjs/components/Card/CardAccordion/CardAccordion.d.ts +0 -18
- package/dist/cjs/components/Card/CardAccordion/CardAccordion.tokens.d.ts +0 -28
- package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.d.ts +0 -27
- package/dist/cjs/components/Card/CardAccordion/CardAccordionHeader.d.ts +0 -36
- package/dist/cjs/components/Card/CardAccordion/useElementHeight.d.ts +0 -1
- package/dist/cjs/components/Card/index.d.ts +0 -4
- package/dist/cjs/components/Chip/Chip.d.ts +0 -16
- package/dist/cjs/components/Chip/Chip.stories.d.ts +0 -20
- package/dist/cjs/components/Chip/Chip.tokens.d.ts +0 -14
- package/dist/cjs/components/Chip/ChipGroup.d.ts +0 -3
- package/dist/cjs/components/Chip/ChipGroup.stories.d.ts +0 -8
- package/dist/cjs/components/Chip/index.d.ts +0 -2
- package/dist/cjs/components/Datepicker/Datepicker.d.ts +0 -12
- package/dist/cjs/components/Datepicker/Datepicker.stories.d.ts +0 -53
- package/dist/cjs/components/Datepicker/Datepicker.tokens.d.ts +0 -27
- package/dist/cjs/components/Datepicker/index.d.ts +0 -1
- package/dist/cjs/components/DescriptionList/DescriptionList.d.ts +0 -23
- package/dist/cjs/components/DescriptionList/DescriptionList.stories.d.ts +0 -19
- package/dist/cjs/components/DescriptionList/DescriptionList.tokens.d.ts +0 -37
- package/dist/cjs/components/DescriptionList/DescriptionListDesc.d.ts +0 -15
- package/dist/cjs/components/DescriptionList/DescriptionListGroup.d.ts +0 -23
- package/dist/cjs/components/DescriptionList/DescriptionListTerm.d.ts +0 -3
- package/dist/cjs/components/DescriptionList/index.d.ts +0 -4
- package/dist/cjs/components/Divider/Divider.d.ts +0 -13
- package/dist/cjs/components/Divider/Divider.stories.d.ts +0 -15
- package/dist/cjs/components/Divider/Divider.tokens.d.ts +0 -13
- package/dist/cjs/components/Divider/index.d.ts +0 -1
- package/dist/cjs/components/Drawer/Drawer.d.ts +0 -50
- package/dist/cjs/components/Drawer/Drawer.stories.d.ts +0 -24
- package/dist/cjs/components/Drawer/Drawer.tokens.d.ts +0 -9
- package/dist/cjs/components/Drawer/DrawerGroup.d.ts +0 -15
- package/dist/cjs/components/Drawer/index.d.ts +0 -2
- package/dist/cjs/components/EmptyContent/EmptyContent.d.ts +0 -9
- package/dist/cjs/components/EmptyContent/EmptyContent.stories.d.ts +0 -16
- package/dist/cjs/components/EmptyContent/index.d.ts +0 -1
- package/dist/cjs/components/Feedback/CommentComponent.d.ts +0 -13
- package/dist/cjs/components/Feedback/Feedback.d.ts +0 -2
- package/dist/cjs/components/Feedback/Feedback.stories.d.ts +0 -66
- package/dist/cjs/components/Feedback/Feedback.types.d.ts +0 -36
- package/dist/cjs/components/Feedback/FlexContainer.d.ts +0 -6
- package/dist/cjs/components/Feedback/RatingComponent.d.ts +0 -11
- package/dist/cjs/components/Feedback/index.d.ts +0 -2
- package/dist/cjs/components/FileUploader/ErrorList.d.ts +0 -9
- package/dist/cjs/components/FileUploader/File.d.ts +0 -10
- package/dist/cjs/components/FileUploader/FileUploader.d.ts +0 -22
- package/dist/cjs/components/FileUploader/FileUploader.stories.d.ts +0 -28
- package/dist/cjs/components/FileUploader/FileUploader.tokens.d.ts +0 -25
- package/dist/cjs/components/FileUploader/fileUploaderReducer.d.ts +0 -33
- package/dist/cjs/components/FileUploader/index.d.ts +0 -1
- package/dist/cjs/components/FileUploader/types.d.ts +0 -10
- package/dist/cjs/components/FileUploader/useFileUploader.d.ts +0 -33
- package/dist/cjs/components/FileUploader/utils.d.ts +0 -7
- package/dist/cjs/components/GlobalMessage/GlobalMessage.d.ts +0 -27
- package/dist/cjs/components/GlobalMessage/GlobalMessage.stories.d.ts +0 -31
- package/dist/cjs/components/GlobalMessage/GlobalMessage.tokens.d.ts +0 -50
- package/dist/cjs/components/GlobalMessage/index.d.ts +0 -1
- package/dist/cjs/components/Grid/Grid.context.d.ts +0 -7
- package/dist/cjs/components/Grid/Grid.d.ts +0 -24
- package/dist/cjs/components/Grid/Grid.stories.d.ts +0 -11
- package/dist/cjs/components/Grid/Grid.tokens.d.ts +0 -82
- package/dist/cjs/components/Grid/GridChild.d.ts +0 -22
- package/dist/cjs/components/Grid/index.d.ts +0 -2
- package/dist/cjs/components/InlineEdit/InlineEdit.d.ts +0 -5
- package/dist/cjs/components/InlineEdit/InlineEdit.stories.d.ts +0 -34
- package/dist/cjs/components/InlineEdit/InlineEdit.styles.d.ts +0 -20
- package/dist/cjs/components/InlineEdit/InlineEdit.tokens.d.ts +0 -27
- package/dist/cjs/components/InlineEdit/InlineEdit.types.d.ts +0 -35
- package/dist/cjs/components/InlineEdit/InlineEdit.utils.d.ts +0 -1
- package/dist/cjs/components/InlineEdit/InlineEditInput.d.ts +0 -2
- package/dist/cjs/components/InlineEdit/InlineEditInput.stories.d.ts +0 -37
- package/dist/cjs/components/InlineEdit/InlineEditTextArea.d.ts +0 -2
- package/dist/cjs/components/InlineEdit/InlineEditTextArea.stories.d.ts +0 -37
- package/dist/cjs/components/InlineEdit/InlineInput.d.ts +0 -4
- package/dist/cjs/components/InlineEdit/InlineTextArea.d.ts +0 -4
- package/dist/cjs/components/InlineEdit/index.d.ts +0 -3
- package/dist/cjs/components/InputMessage/InputMessage.d.ts +0 -17
- package/dist/cjs/components/InputMessage/InputMessage.stories.d.ts +0 -21
- package/dist/cjs/components/InputMessage/InputMessage.tokens.d.ts +0 -16
- package/dist/cjs/components/InputMessage/index.d.ts +0 -1
- package/dist/cjs/components/InternalHeader/InternalHeader.d.ts +0 -5
- package/dist/cjs/components/InternalHeader/InternalHeader.stories.d.ts +0 -47
- package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +0 -31
- package/dist/cjs/components/InternalHeader/InternalHeader.tokens.d.ts +0 -47
- package/dist/cjs/components/InternalHeader/InternalHeader.types.d.ts +0 -36
- package/dist/cjs/components/InternalHeader/InternalHeaderListItem.d.ts +0 -3
- package/dist/cjs/components/InternalHeader/NavigationItem.d.ts +0 -14
- package/dist/cjs/components/InternalHeader/index.d.ts +0 -2
- package/dist/cjs/components/List/List.d.ts +0 -21
- package/dist/cjs/components/List/List.stories.d.ts +0 -18
- package/dist/cjs/components/List/List.tokens.d.ts +0 -24
- package/dist/cjs/components/List/ListItem.d.ts +0 -3
- package/dist/cjs/components/List/index.d.ts +0 -2
- package/dist/cjs/components/LocalMessage/LocalMessage.d.ts +0 -37
- package/dist/cjs/components/LocalMessage/LocalMessage.stories.d.ts +0 -40
- package/dist/cjs/components/LocalMessage/LocalMessage.tokens.d.ts +0 -88
- package/dist/cjs/components/LocalMessage/index.d.ts +0 -1
- package/dist/cjs/components/Modal/Backdrop/Backdrop.d.ts +0 -5
- package/dist/cjs/components/Modal/Backdrop/Backdrop.utils.d.ts +0 -2
- package/dist/cjs/components/Modal/Backdrop/index.d.ts +0 -2
- package/dist/cjs/components/Modal/Modal.d.ts +0 -30
- package/dist/cjs/components/Modal/Modal.stories.d.ts +0 -28
- package/dist/cjs/components/Modal/Modal.tokens.d.ts +0 -12
- package/dist/cjs/components/Modal/ModalActions.d.ts +0 -3
- package/dist/cjs/components/Modal/ModalBody.d.ts +0 -19
- package/dist/cjs/components/Modal/index.d.ts +0 -3
- package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +0 -24
- package/dist/cjs/components/OverflowMenu/OverflowMenu.stories.d.ts +0 -27
- package/dist/cjs/components/OverflowMenu/OverflowMenu.tokens.d.ts +0 -34
- package/dist/cjs/components/OverflowMenu/OverflowMenu.types.d.ts +0 -37
- package/dist/cjs/components/OverflowMenu/OverflowMenuGroup.d.ts +0 -17
- package/dist/cjs/components/OverflowMenu/OverflowMenuItem.d.ts +0 -21
- package/dist/cjs/components/OverflowMenu/index.d.ts +0 -3
- package/dist/cjs/components/Pagination/Pagination.d.ts +0 -52
- package/dist/cjs/components/Pagination/Pagination.stories.d.ts +0 -48
- package/dist/cjs/components/Pagination/Pagination.tokens.d.ts +0 -14
- package/dist/cjs/components/Pagination/index.d.ts +0 -1
- package/dist/cjs/components/Pagination/paginationGenerator.d.ts +0 -1
- package/dist/cjs/components/Popover/Popover.d.ts +0 -60
- package/dist/cjs/components/Popover/Popover.stories.d.ts +0 -55
- package/dist/cjs/components/Popover/Popover.tokens.d.ts +0 -17
- package/dist/cjs/components/Popover/PopoverGroup.d.ts +0 -17
- package/dist/cjs/components/Popover/index.d.ts +0 -2
- package/dist/cjs/components/ProgressTracker/ProgressTracker.context.d.ts +0 -8
- package/dist/cjs/components/ProgressTracker/ProgressTracker.d.ts +0 -14
- package/dist/cjs/components/ProgressTracker/ProgressTracker.stories.d.ts +0 -45
- package/dist/cjs/components/ProgressTracker/ProgressTracker.tokens.d.ts +0 -72
- package/dist/cjs/components/ProgressTracker/ProgressTrackerItem.d.ts +0 -27
- package/dist/cjs/components/ProgressTracker/index.d.ts +0 -1
- package/dist/cjs/components/ScrollableContainer/ScrollableContainer.d.ts +0 -10
- package/dist/cjs/components/ScrollableContainer/ScrollableContainer.stories.d.ts +0 -18
- package/dist/cjs/components/ScrollableContainer/ScrollableContainer.tokens.d.ts +0 -25
- package/dist/cjs/components/ScrollableContainer/Scrollbar.d.ts +0 -10
- package/dist/cjs/components/ScrollableContainer/index.d.ts +0 -3
- package/dist/cjs/components/ScrollableContainer/scrollbarStyling.d.ts +0 -26
- package/dist/cjs/components/Search/AutocompleteSearch.context.d.ts +0 -12
- package/dist/cjs/components/Search/Search.d.ts +0 -22
- package/dist/cjs/components/Search/Search.stories.d.ts +0 -52
- package/dist/cjs/components/Search/Search.tokens.d.ts +0 -64
- package/dist/cjs/components/Search/Search.utils.d.ts +0 -9
- package/dist/cjs/components/Search/SearchAutocompleteWrapper.d.ts +0 -34
- package/dist/cjs/components/Search/SearchSuggestions.d.ts +0 -29
- package/dist/cjs/components/Search/index.d.ts +0 -10
- package/dist/cjs/components/Select/CustomSelect.stories.d.ts +0 -66
- package/dist/cjs/components/Select/MultiSelect.stories.d.ts +0 -75
- package/dist/cjs/components/Select/Select.d.ts +0 -37
- package/dist/cjs/components/Select/Select.stories.d.ts +0 -71
- package/dist/cjs/components/Select/Select.styles.d.ts +0 -18
- package/dist/cjs/components/Select/Select.tokens.d.ts +0 -143
- package/dist/cjs/components/Select/index.d.ts +0 -1
- package/dist/cjs/components/SelectionControl/Checkbox/Checkbox.d.ts +0 -10
- package/dist/cjs/components/SelectionControl/Checkbox/Checkbox.stories.d.ts +0 -50
- package/dist/cjs/components/SelectionControl/Checkbox/Checkbox.types.d.ts +0 -15
- package/dist/cjs/components/SelectionControl/Checkbox/CheckboxGroup.d.ts +0 -18
- package/dist/cjs/components/SelectionControl/Checkbox/CheckboxGroup.stories.d.ts +0 -53
- package/dist/cjs/components/SelectionControl/Checkbox/CheckboxGroup.tokens.d.ts +0 -13
- package/dist/cjs/components/SelectionControl/Checkbox/CheckboxGroupContext.d.ts +0 -10
- package/dist/cjs/components/SelectionControl/Checkbox/index.d.ts +0 -3
- package/dist/cjs/components/SelectionControl/RadioButton/RadioButton.d.ts +0 -18
- package/dist/cjs/components/SelectionControl/RadioButton/RadioButton.stories.d.ts +0 -52
- package/dist/cjs/components/SelectionControl/RadioButton/RadioButton.types.d.ts +0 -12
- package/dist/cjs/components/SelectionControl/RadioButton/RadioButtonGroup.d.ts +0 -56
- package/dist/cjs/components/SelectionControl/RadioButton/RadioButtonGroup.stories.d.ts +0 -65
- package/dist/cjs/components/SelectionControl/RadioButton/RadioButtonGroupContext.d.ts +0 -14
- package/dist/cjs/components/SelectionControl/RadioButton/index.d.ts +0 -3
- package/dist/cjs/components/SelectionControl/SelectionControl.styles.d.ts +0 -20
- package/dist/cjs/components/SelectionControl/SelectionControl.tokens.d.ts +0 -94
- package/dist/cjs/components/SelectionControl/SelectionControl.utils.d.ts +0 -2
- package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +0 -21
- package/dist/cjs/components/SkipToContent/SkipToContent.stories.d.ts +0 -33
- package/dist/cjs/components/SkipToContent/SkipToContent.tokens.d.ts +0 -14
- package/dist/cjs/components/SkipToContent/index.d.ts +0 -1
- package/dist/cjs/components/Spinner/Spinner.d.ts +0 -15
- package/dist/cjs/components/Spinner/Spinner.stories.d.ts +0 -26
- package/dist/cjs/components/Spinner/index.d.ts +0 -1
- package/dist/cjs/components/SplitButton/SplitButton.d.ts +0 -16
- package/dist/cjs/components/SplitButton/SplitButton.stories.d.ts +0 -10
- package/dist/cjs/components/SplitButton/SplitButton.tokens.d.ts +0 -7
- package/dist/cjs/components/SplitButton/index.d.ts +0 -1
- package/dist/cjs/components/Stack/Stack.d.ts +0 -39
- package/dist/cjs/components/Stack/Stack.stories.d.ts +0 -13
- package/dist/cjs/components/Stack/Stack.tokens.d.ts +0 -20
- package/dist/cjs/components/Stack/index.d.ts +0 -1
- package/dist/cjs/components/Table/Body.d.ts +0 -3
- package/dist/cjs/components/Table/Cell.d.ts +0 -15
- package/dist/cjs/components/Table/Foot.d.ts +0 -3
- package/dist/cjs/components/Table/Head.d.ts +0 -3
- package/dist/cjs/components/Table/Row.d.ts +0 -7
- package/dist/cjs/components/Table/SortCell.d.ts +0 -19
- package/dist/cjs/components/Table/Table.d.ts +0 -7
- package/dist/cjs/components/Table/Table.stories.d.ts +0 -57
- package/dist/cjs/components/Table/Table.styles.d.ts +0 -10
- package/dist/cjs/components/Table/Table.tokens.d.ts +0 -67
- package/dist/cjs/components/Table/Table.types.d.ts +0 -37
- package/dist/cjs/components/Table/TableWrapper.d.ts +0 -6
- package/dist/cjs/components/Table/collapsible/CollapsibleRow.d.ts +0 -7
- package/dist/cjs/components/Table/collapsible/CollapsibleTable.d.ts +0 -10
- package/dist/cjs/components/Table/collapsible/CollapsibleTable.stories.d.ts +0 -49
- package/dist/cjs/components/Table/collapsible/Table.context.d.ts +0 -10
- package/dist/cjs/components/Table/index.d.ts +0 -28
- package/dist/cjs/components/Table/tableData.d.ts +0 -17
- package/dist/cjs/components/Tabs/Tab.d.ts +0 -31
- package/dist/cjs/components/Tabs/TabList.d.ts +0 -3
- package/dist/cjs/components/Tabs/TabPanel.d.ts +0 -14
- package/dist/cjs/components/Tabs/TabPanels.d.ts +0 -3
- package/dist/cjs/components/Tabs/Tabs.context.d.ts +0 -15
- package/dist/cjs/components/Tabs/Tabs.d.ts +0 -27
- package/dist/cjs/components/Tabs/Tabs.stories.d.ts +0 -53
- package/dist/cjs/components/Tabs/Tabs.tokens.d.ts +0 -32
- package/dist/cjs/components/Tabs/index.d.ts +0 -5
- package/dist/cjs/components/Tag/Tag.d.ts +0 -17
- package/dist/cjs/components/Tag/Tag.stories.d.ts +0 -19
- package/dist/cjs/components/Tag/Tag.tokens.d.ts +0 -31
- package/dist/cjs/components/Tag/index.d.ts +0 -1
- package/dist/cjs/components/TextArea/TextArea.d.ts +0 -15
- package/dist/cjs/components/TextArea/TextArea.stories.d.ts +0 -52
- package/dist/cjs/components/TextArea/TextArea.tokens.d.ts +0 -5
- package/dist/cjs/components/TextArea/index.d.ts +0 -1
- package/dist/cjs/components/TextInput/CharCounter.d.ts +0 -7
- package/dist/cjs/components/TextInput/TextInput.d.ts +0 -10
- package/dist/cjs/components/TextInput/TextInput.stories.d.ts +0 -72
- package/dist/cjs/components/TextInput/TextInput.styles.d.ts +0 -17
- package/dist/cjs/components/TextInput/TextInput.tokens.d.ts +0 -37
- package/dist/cjs/components/TextInput/TextInput.types.d.ts +0 -21
- package/dist/cjs/components/TextInput/index.d.ts +0 -2
- package/dist/cjs/components/ToggleBar/ToggleBar.context.d.ts +0 -10
- package/dist/cjs/components/ToggleBar/ToggleBar.d.ts +0 -5
- package/dist/cjs/components/ToggleBar/ToggleBar.stories.d.ts +0 -23
- package/dist/cjs/components/ToggleBar/ToggleBar.tokens.d.ts +0 -84
- package/dist/cjs/components/ToggleBar/ToggleBar.types.d.ts +0 -19
- package/dist/cjs/components/ToggleBar/ToggleRadio.d.ts +0 -19
- package/dist/cjs/components/ToggleBar/ToggleRadio.styles.d.ts +0 -11
- package/dist/cjs/components/ToggleBar/index.d.ts +0 -3
- package/dist/cjs/components/ToggleButton/ToggleButton.d.ts +0 -7
- package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +0 -19
- package/dist/cjs/components/ToggleButton/ToggleButton.tokens.d.ts +0 -32
- package/dist/cjs/components/ToggleButton/ToggleButton.types.d.ts +0 -10
- package/dist/cjs/components/ToggleButton/ToggleButtonGroup.d.ts +0 -15
- package/dist/cjs/components/ToggleButton/ToggleButtonGroup.stories.d.ts +0 -11
- package/dist/cjs/components/ToggleButton/index.d.ts +0 -3
- package/dist/cjs/components/Tooltip/Tooltip.d.ts +0 -32
- package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +0 -35
- package/dist/cjs/components/Tooltip/Tooltip.styles.d.ts +0 -11
- package/dist/cjs/components/Tooltip/Tooltip.tokens.d.ts +0 -13
- package/dist/cjs/components/Tooltip/index.d.ts +0 -1
- package/dist/cjs/components/VisuallyHidden/VisuallyHidden.d.ts +0 -14
- package/dist/cjs/components/VisuallyHidden/VisuallyHidden.stories.d.ts +0 -19
- package/dist/cjs/components/VisuallyHidden/index.d.ts +0 -1
- package/dist/cjs/dds-core.d.ts +0 -1
- package/dist/cjs/dds-form.d.ts +0 -2
- package/dist/cjs/dds-icons.d.ts +0 -2
- package/dist/cjs/dds-typography.d.ts +0 -2
- package/dist/cjs/index.d.ts +0 -50
- package/dist/cjs/index.js +0 -9412
- package/dist/cjs/test/mocks/IntersectionObserver.d.ts +0 -1
- package/dist/cjs/test/mocks/ResizeObserver.d.ts +0 -6
- package/dist/cjs/utils/icon.d.ts +0 -3
- package/dist/cjs/utils/renderInputMessage.d.ts +0 -1
- package/dist/components/AppShell/AppShell.d.ts +0 -38
- package/dist/components/AppShell/AppShell.js +0 -56
- package/dist/components/AppShell/AppShell.stories.d.ts +0 -28
- package/dist/components/AppShell/AppShell.tokens.d.ts +0 -84
- package/dist/components/AppShell/AppShell.tokens.js +0 -68
- package/dist/components/AppShell/AppShellContext.d.ts +0 -10
- package/dist/components/AppShell/AppShellContext.js +0 -27
- package/dist/components/AppShell/Navigation/EmbeteIcon.d.ts +0 -7
- package/dist/components/AppShell/Navigation/EmbeteIcon.js +0 -21
- package/dist/components/AppShell/Navigation/Navigation.d.ts +0 -13
- package/dist/components/AppShell/Navigation/Navigation.js +0 -114
- package/dist/components/AppShell/Navigation/NavigationItem.d.ts +0 -20
- package/dist/components/AppShell/Navigation/NavigationItem.js +0 -80
- package/dist/components/AppShell/Navigation/NavigationLogo.d.ts +0 -3
- package/dist/components/AppShell/Navigation/NavigationLogo.js +0 -34
- package/dist/components/AppShell/Navigation/TopBar.d.ts +0 -23
- package/dist/components/AppShell/Navigation/TopBar.js +0 -78
- package/dist/components/AppShell/index.d.ts +0 -7
- package/dist/components/AppShell/index.js +0 -7
- package/dist/components/BackLink/BackLink.d.ts +0 -6
- package/dist/components/BackLink/BackLink.js +0 -31
- package/dist/components/BackLink/BackLink.stories.d.ts +0 -18
- package/dist/components/BackLink/BackLink.tokens.d.ts +0 -8
- package/dist/components/BackLink/BackLink.tokens.js +0 -16
- package/dist/components/BackLink/index.d.ts +0 -1
- package/dist/components/Breadcrumbs/Breadcrumb.d.ts +0 -3
- package/dist/components/Breadcrumbs/Breadcrumb.js +0 -30
- package/dist/components/Breadcrumbs/Breadcrumb.tokens.d.ts +0 -13
- package/dist/components/Breadcrumbs/Breadcrumb.tokens.js +0 -21
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -4
- package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -51
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -8
- package/dist/components/Breadcrumbs/index.d.ts +0 -2
- package/dist/components/Button/Button.d.ts +0 -21
- package/dist/components/Button/Button.js +0 -96
- package/dist/components/Button/Button.stories.d.ts +0 -64
- package/dist/components/Button/Button.styles.d.ts +0 -25
- package/dist/components/Button/Button.styles.js +0 -80
- package/dist/components/Button/Button.tokens.d.ts +0 -332
- package/dist/components/Button/Button.tokens.js +0 -351
- package/dist/components/Button/Button.types.d.ts +0 -33
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Card/Card.d.ts +0 -26
- package/dist/components/Card/Card.js +0 -52
- package/dist/components/Card/Card.stories.d.ts +0 -15
- package/dist/components/Card/Card.tokens.d.ts +0 -27
- package/dist/components/Card/Card.tokens.js +0 -36
- package/dist/components/Card/CardAccordion/CardAccordion.d.ts +0 -18
- package/dist/components/Card/CardAccordion/CardAccordion.js +0 -60
- package/dist/components/Card/CardAccordion/CardAccordion.tokens.d.ts +0 -28
- package/dist/components/Card/CardAccordion/CardAccordion.tokens.js +0 -37
- package/dist/components/Card/CardAccordion/CardAccordionBody.d.ts +0 -27
- package/dist/components/Card/CardAccordion/CardAccordionBody.js +0 -90
- package/dist/components/Card/CardAccordion/CardAccordionHeader.d.ts +0 -36
- package/dist/components/Card/CardAccordion/CardAccordionHeader.js +0 -84
- package/dist/components/Card/CardAccordion/useElementHeight.d.ts +0 -1
- package/dist/components/Card/CardAccordion/useElementHeight.js +0 -22
- package/dist/components/Card/index.d.ts +0 -4
- package/dist/components/Chip/Chip.d.ts +0 -16
- package/dist/components/Chip/Chip.js +0 -52
- package/dist/components/Chip/Chip.stories.d.ts +0 -20
- package/dist/components/Chip/Chip.tokens.d.ts +0 -14
- package/dist/components/Chip/Chip.tokens.js +0 -22
- package/dist/components/Chip/ChipGroup.d.ts +0 -3
- package/dist/components/Chip/ChipGroup.js +0 -28
- package/dist/components/Chip/ChipGroup.stories.d.ts +0 -8
- package/dist/components/Chip/index.d.ts +0 -2
- package/dist/components/Datepicker/Datepicker.d.ts +0 -12
- package/dist/components/Datepicker/Datepicker.js +0 -103
- package/dist/components/Datepicker/Datepicker.stories.d.ts +0 -53
- package/dist/components/Datepicker/Datepicker.tokens.d.ts +0 -27
- package/dist/components/Datepicker/Datepicker.tokens.js +0 -35
- package/dist/components/Datepicker/calendar_today.svg.js +0 -4
- package/dist/components/Datepicker/index.d.ts +0 -1
- package/dist/components/DescriptionList/DescriptionList.d.ts +0 -23
- package/dist/components/DescriptionList/DescriptionList.js +0 -43
- package/dist/components/DescriptionList/DescriptionList.stories.d.ts +0 -19
- package/dist/components/DescriptionList/DescriptionList.tokens.d.ts +0 -37
- package/dist/components/DescriptionList/DescriptionList.tokens.js +0 -47
- package/dist/components/DescriptionList/DescriptionListDesc.d.ts +0 -15
- package/dist/components/DescriptionList/DescriptionListDesc.js +0 -32
- package/dist/components/DescriptionList/DescriptionListGroup.d.ts +0 -23
- package/dist/components/DescriptionList/DescriptionListGroup.js +0 -43
- package/dist/components/DescriptionList/DescriptionListTerm.d.ts +0 -3
- package/dist/components/DescriptionList/DescriptionListTerm.js +0 -22
- package/dist/components/DescriptionList/index.d.ts +0 -4
- package/dist/components/Divider/Divider.d.ts +0 -13
- package/dist/components/Divider/Divider.js +0 -31
- package/dist/components/Divider/Divider.stories.d.ts +0 -15
- package/dist/components/Divider/Divider.tokens.d.ts +0 -13
- package/dist/components/Divider/Divider.tokens.js +0 -20
- package/dist/components/Divider/index.d.ts +0 -1
- package/dist/components/Drawer/Drawer.d.ts +0 -50
- package/dist/components/Drawer/Drawer.js +0 -119
- package/dist/components/Drawer/Drawer.stories.d.ts +0 -24
- package/dist/components/Drawer/Drawer.tokens.d.ts +0 -9
- package/dist/components/Drawer/Drawer.tokens.js +0 -18
- package/dist/components/Drawer/DrawerGroup.d.ts +0 -15
- package/dist/components/Drawer/DrawerGroup.js +0 -51
- package/dist/components/Drawer/index.d.ts +0 -2
- package/dist/components/EmptyContent/EmptyContent.d.ts +0 -9
- package/dist/components/EmptyContent/EmptyContent.js +0 -35
- package/dist/components/EmptyContent/EmptyContent.stories.d.ts +0 -16
- package/dist/components/EmptyContent/index.d.ts +0 -1
- package/dist/components/Feedback/CommentComponent.d.ts +0 -13
- package/dist/components/Feedback/CommentComponent.js +0 -49
- package/dist/components/Feedback/Feedback.d.ts +0 -2
- package/dist/components/Feedback/Feedback.js +0 -97
- package/dist/components/Feedback/Feedback.stories.d.ts +0 -66
- package/dist/components/Feedback/Feedback.types.d.ts +0 -36
- package/dist/components/Feedback/FlexContainer.d.ts +0 -6
- package/dist/components/Feedback/FlexContainer.js +0 -12
- package/dist/components/Feedback/RatingComponent.d.ts +0 -11
- package/dist/components/Feedback/RatingComponent.js +0 -70
- package/dist/components/Feedback/index.d.ts +0 -2
- package/dist/components/FileUploader/ErrorList.d.ts +0 -9
- package/dist/components/FileUploader/ErrorList.js +0 -28
- package/dist/components/FileUploader/File.d.ts +0 -10
- package/dist/components/FileUploader/File.js +0 -66
- package/dist/components/FileUploader/FileUploader.d.ts +0 -22
- package/dist/components/FileUploader/FileUploader.js +0 -145
- package/dist/components/FileUploader/FileUploader.stories.d.ts +0 -28
- package/dist/components/FileUploader/FileUploader.tokens.d.ts +0 -25
- package/dist/components/FileUploader/FileUploader.tokens.js +0 -31
- package/dist/components/FileUploader/fileUploaderReducer.d.ts +0 -33
- package/dist/components/FileUploader/fileUploaderReducer.js +0 -37
- package/dist/components/FileUploader/index.d.ts +0 -1
- package/dist/components/FileUploader/types.d.ts +0 -10
- package/dist/components/FileUploader/useFileUploader.d.ts +0 -33
- package/dist/components/FileUploader/useFileUploader.js +0 -230
- package/dist/components/FileUploader/utils.d.ts +0 -7
- package/dist/components/FileUploader/utils.js +0 -32
- package/dist/components/GlobalMessage/GlobalMessage.d.ts +0 -27
- package/dist/components/GlobalMessage/GlobalMessage.js +0 -83
- package/dist/components/GlobalMessage/GlobalMessage.stories.d.ts +0 -31
- package/dist/components/GlobalMessage/GlobalMessage.tokens.d.ts +0 -50
- package/dist/components/GlobalMessage/GlobalMessage.tokens.js +0 -63
- package/dist/components/GlobalMessage/index.d.ts +0 -1
- package/dist/components/Grid/Grid.context.d.ts +0 -7
- package/dist/components/Grid/Grid.context.js +0 -11
- package/dist/components/Grid/Grid.d.ts +0 -24
- package/dist/components/Grid/Grid.js +0 -55
- package/dist/components/Grid/Grid.stories.d.ts +0 -11
- package/dist/components/Grid/Grid.tokens.d.ts +0 -82
- package/dist/components/Grid/Grid.tokens.js +0 -87
- package/dist/components/Grid/GridChild.d.ts +0 -22
- package/dist/components/Grid/GridChild.js +0 -43
- package/dist/components/Grid/index.d.ts +0 -2
- package/dist/components/InlineEdit/InlineEdit.d.ts +0 -5
- package/dist/components/InlineEdit/InlineEdit.js +0 -69
- package/dist/components/InlineEdit/InlineEdit.stories.d.ts +0 -34
- package/dist/components/InlineEdit/InlineEdit.styles.d.ts +0 -20
- package/dist/components/InlineEdit/InlineEdit.styles.js +0 -28
- package/dist/components/InlineEdit/InlineEdit.tokens.d.ts +0 -27
- package/dist/components/InlineEdit/InlineEdit.tokens.js +0 -29
- package/dist/components/InlineEdit/InlineEdit.types.d.ts +0 -35
- package/dist/components/InlineEdit/InlineEdit.utils.d.ts +0 -1
- package/dist/components/InlineEdit/InlineEdit.utils.js +0 -12
- package/dist/components/InlineEdit/InlineEditInput.d.ts +0 -2
- package/dist/components/InlineEdit/InlineEditInput.js +0 -32
- package/dist/components/InlineEdit/InlineEditInput.stories.d.ts +0 -37
- package/dist/components/InlineEdit/InlineEditTextArea.d.ts +0 -2
- package/dist/components/InlineEdit/InlineEditTextArea.js +0 -32
- package/dist/components/InlineEdit/InlineEditTextArea.stories.d.ts +0 -37
- package/dist/components/InlineEdit/InlineInput.d.ts +0 -4
- package/dist/components/InlineEdit/InlineInput.js +0 -57
- package/dist/components/InlineEdit/InlineTextArea.d.ts +0 -4
- package/dist/components/InlineEdit/InlineTextArea.js +0 -55
- package/dist/components/InlineEdit/index.d.ts +0 -3
- package/dist/components/InputMessage/InputMessage.d.ts +0 -17
- package/dist/components/InputMessage/InputMessage.js +0 -44
- package/dist/components/InputMessage/InputMessage.stories.d.ts +0 -21
- package/dist/components/InputMessage/InputMessage.tokens.d.ts +0 -16
- package/dist/components/InputMessage/InputMessage.tokens.js +0 -24
- package/dist/components/InputMessage/index.d.ts +0 -1
- package/dist/components/InternalHeader/InternalHeader.d.ts +0 -5
- package/dist/components/InternalHeader/InternalHeader.js +0 -111
- package/dist/components/InternalHeader/InternalHeader.stories.d.ts +0 -47
- package/dist/components/InternalHeader/InternalHeader.styles.d.ts +0 -31
- package/dist/components/InternalHeader/InternalHeader.styles.js +0 -56
- package/dist/components/InternalHeader/InternalHeader.tokens.d.ts +0 -47
- package/dist/components/InternalHeader/InternalHeader.tokens.js +0 -61
- package/dist/components/InternalHeader/InternalHeader.types.d.ts +0 -36
- package/dist/components/InternalHeader/InternalHeaderListItem.d.ts +0 -3
- package/dist/components/InternalHeader/InternalHeaderListItem.js +0 -21
- package/dist/components/InternalHeader/NavigationItem.d.ts +0 -14
- package/dist/components/InternalHeader/NavigationItem.js +0 -31
- package/dist/components/InternalHeader/index.d.ts +0 -2
- package/dist/components/List/List.d.ts +0 -21
- package/dist/components/List/List.js +0 -48
- package/dist/components/List/List.stories.d.ts +0 -18
- package/dist/components/List/List.tokens.d.ts +0 -24
- package/dist/components/List/List.tokens.js +0 -35
- package/dist/components/List/ListItem.d.ts +0 -3
- package/dist/components/List/ListItem.js +0 -22
- package/dist/components/List/bullets/jordskifterett_bullet1.svg.js +0 -4
- package/dist/components/List/bullets/lagmannsrett_bullet2.svg.js +0 -4
- package/dist/components/List/bullets/tingrett_bullet3.svg.js +0 -4
- package/dist/components/List/index.d.ts +0 -2
- package/dist/components/LocalMessage/LocalMessage.d.ts +0 -37
- package/dist/components/LocalMessage/LocalMessage.js +0 -118
- package/dist/components/LocalMessage/LocalMessage.stories.d.ts +0 -40
- package/dist/components/LocalMessage/LocalMessage.tokens.d.ts +0 -88
- package/dist/components/LocalMessage/LocalMessage.tokens.js +0 -97
- package/dist/components/LocalMessage/index.d.ts +0 -1
- package/dist/components/Modal/Backdrop/Backdrop.d.ts +0 -5
- package/dist/components/Modal/Backdrop/Backdrop.js +0 -13
- package/dist/components/Modal/Backdrop/Backdrop.utils.d.ts +0 -2
- package/dist/components/Modal/Backdrop/Backdrop.utils.js +0 -20
- package/dist/components/Modal/Backdrop/index.d.ts +0 -2
- package/dist/components/Modal/Modal.d.ts +0 -30
- package/dist/components/Modal/Modal.js +0 -113
- package/dist/components/Modal/Modal.stories.d.ts +0 -28
- package/dist/components/Modal/Modal.tokens.d.ts +0 -12
- package/dist/components/Modal/Modal.tokens.js +0 -20
- package/dist/components/Modal/ModalActions.d.ts +0 -3
- package/dist/components/Modal/ModalActions.js +0 -23
- package/dist/components/Modal/ModalBody.d.ts +0 -19
- package/dist/components/Modal/ModalBody.js +0 -36
- package/dist/components/Modal/index.d.ts +0 -3
- package/dist/components/OverflowMenu/OverflowMenu.d.ts +0 -24
- package/dist/components/OverflowMenu/OverflowMenu.js +0 -161
- package/dist/components/OverflowMenu/OverflowMenu.stories.d.ts +0 -27
- package/dist/components/OverflowMenu/OverflowMenu.tokens.d.ts +0 -34
- package/dist/components/OverflowMenu/OverflowMenu.tokens.js +0 -48
- package/dist/components/OverflowMenu/OverflowMenu.types.d.ts +0 -37
- package/dist/components/OverflowMenu/OverflowMenuGroup.d.ts +0 -17
- package/dist/components/OverflowMenu/OverflowMenuGroup.js +0 -55
- package/dist/components/OverflowMenu/OverflowMenuItem.d.ts +0 -21
- package/dist/components/OverflowMenu/OverflowMenuItem.js +0 -109
- package/dist/components/OverflowMenu/index.d.ts +0 -3
- package/dist/components/Pagination/Pagination.d.ts +0 -52
- package/dist/components/Pagination/Pagination.js +0 -233
- package/dist/components/Pagination/Pagination.stories.d.ts +0 -48
- package/dist/components/Pagination/Pagination.tokens.d.ts +0 -14
- package/dist/components/Pagination/Pagination.tokens.js +0 -24
- package/dist/components/Pagination/index.d.ts +0 -1
- package/dist/components/Pagination/paginationGenerator.d.ts +0 -1
- package/dist/components/Pagination/paginationGenerator.js +0 -37
- package/dist/components/Popover/Popover.d.ts +0 -60
- package/dist/components/Popover/Popover.js +0 -118
- package/dist/components/Popover/Popover.stories.d.ts +0 -55
- package/dist/components/Popover/Popover.tokens.d.ts +0 -17
- package/dist/components/Popover/Popover.tokens.js +0 -26
- package/dist/components/Popover/PopoverGroup.d.ts +0 -17
- package/dist/components/Popover/PopoverGroup.js +0 -62
- package/dist/components/Popover/index.d.ts +0 -2
- package/dist/components/ProgressTracker/ProgressTracker.context.d.ts +0 -8
- package/dist/components/ProgressTracker/ProgressTracker.context.js +0 -10
- package/dist/components/ProgressTracker/ProgressTracker.d.ts +0 -14
- package/dist/components/ProgressTracker/ProgressTracker.js +0 -93
- package/dist/components/ProgressTracker/ProgressTracker.stories.d.ts +0 -45
- package/dist/components/ProgressTracker/ProgressTracker.tokens.d.ts +0 -72
- package/dist/components/ProgressTracker/ProgressTracker.tokens.js +0 -81
- package/dist/components/ProgressTracker/ProgressTrackerItem.d.ts +0 -27
- package/dist/components/ProgressTracker/ProgressTrackerItem.js +0 -125
- package/dist/components/ProgressTracker/index.d.ts +0 -1
- package/dist/components/ScrollableContainer/ScrollableContainer.d.ts +0 -10
- package/dist/components/ScrollableContainer/ScrollableContainer.js +0 -46
- package/dist/components/ScrollableContainer/ScrollableContainer.stories.d.ts +0 -18
- package/dist/components/ScrollableContainer/ScrollableContainer.tokens.d.ts +0 -25
- package/dist/components/ScrollableContainer/ScrollableContainer.tokens.js +0 -36
- package/dist/components/ScrollableContainer/Scrollbar.d.ts +0 -10
- package/dist/components/ScrollableContainer/Scrollbar.js +0 -164
- package/dist/components/ScrollableContainer/index.d.ts +0 -3
- package/dist/components/ScrollableContainer/scrollbarStyling.d.ts +0 -26
- package/dist/components/ScrollableContainer/scrollbarStyling.js +0 -37
- package/dist/components/Search/AutocompleteSearch.context.d.ts +0 -12
- package/dist/components/Search/AutocompleteSearch.context.js +0 -8
- package/dist/components/Search/Search.d.ts +0 -22
- package/dist/components/Search/Search.js +0 -172
- package/dist/components/Search/Search.stories.d.ts +0 -52
- package/dist/components/Search/Search.tokens.d.ts +0 -64
- package/dist/components/Search/Search.tokens.js +0 -82
- package/dist/components/Search/Search.utils.d.ts +0 -9
- package/dist/components/Search/Search.utils.js +0 -35
- package/dist/components/Search/SearchAutocompleteWrapper.d.ts +0 -34
- package/dist/components/Search/SearchAutocompleteWrapper.js +0 -111
- package/dist/components/Search/SearchSuggestions.d.ts +0 -29
- package/dist/components/Search/SearchSuggestions.js +0 -91
- package/dist/components/Search/index.d.ts +0 -10
- package/dist/components/Search/index.js +0 -9
- package/dist/components/Select/CustomSelect.stories.d.ts +0 -66
- package/dist/components/Select/MultiSelect.stories.d.ts +0 -75
- package/dist/components/Select/Select.d.ts +0 -37
- package/dist/components/Select/Select.js +0 -204
- package/dist/components/Select/Select.stories.d.ts +0 -71
- package/dist/components/Select/Select.styles.d.ts +0 -18
- package/dist/components/Select/Select.styles.js +0 -230
- package/dist/components/Select/Select.tokens.d.ts +0 -143
- package/dist/components/Select/Select.tokens.js +0 -166
- package/dist/components/Select/index.d.ts +0 -1
- package/dist/components/SelectionControl/Checkbox/Checkbox.d.ts +0 -10
- package/dist/components/SelectionControl/Checkbox/Checkbox.js +0 -67
- package/dist/components/SelectionControl/Checkbox/Checkbox.stories.d.ts +0 -50
- package/dist/components/SelectionControl/Checkbox/Checkbox.types.d.ts +0 -15
- package/dist/components/SelectionControl/Checkbox/CheckboxGroup.d.ts +0 -18
- package/dist/components/SelectionControl/Checkbox/CheckboxGroup.js +0 -59
- package/dist/components/SelectionControl/Checkbox/CheckboxGroup.stories.d.ts +0 -53
- package/dist/components/SelectionControl/Checkbox/CheckboxGroup.tokens.d.ts +0 -13
- package/dist/components/SelectionControl/Checkbox/CheckboxGroupContext.d.ts +0 -10
- package/dist/components/SelectionControl/Checkbox/CheckboxGroupContext.js +0 -8
- package/dist/components/SelectionControl/Checkbox/index.d.ts +0 -3
- package/dist/components/SelectionControl/RadioButton/RadioButton.d.ts +0 -18
- package/dist/components/SelectionControl/RadioButton/RadioButton.js +0 -86
- package/dist/components/SelectionControl/RadioButton/RadioButton.stories.d.ts +0 -52
- package/dist/components/SelectionControl/RadioButton/RadioButton.types.d.ts +0 -12
- package/dist/components/SelectionControl/RadioButton/RadioButtonGroup.d.ts +0 -56
- package/dist/components/SelectionControl/RadioButton/RadioButtonGroup.js +0 -82
- package/dist/components/SelectionControl/RadioButton/RadioButtonGroup.stories.d.ts +0 -65
- package/dist/components/SelectionControl/RadioButton/RadioButtonGroupContext.d.ts +0 -14
- package/dist/components/SelectionControl/RadioButton/RadioButtonGroupContext.js +0 -8
- package/dist/components/SelectionControl/RadioButton/index.d.ts +0 -3
- package/dist/components/SelectionControl/SelectionControl.styles.d.ts +0 -20
- package/dist/components/SelectionControl/SelectionControl.styles.js +0 -45
- package/dist/components/SelectionControl/SelectionControl.tokens.d.ts +0 -94
- package/dist/components/SelectionControl/SelectionControl.tokens.js +0 -108
- package/dist/components/SelectionControl/SelectionControl.utils.d.ts +0 -2
- package/dist/components/SelectionControl/SelectionControl.utils.js +0 -4
- package/dist/components/SkipToContent/SkipToContent.d.ts +0 -21
- package/dist/components/SkipToContent/SkipToContent.js +0 -50
- package/dist/components/SkipToContent/SkipToContent.stories.d.ts +0 -33
- package/dist/components/SkipToContent/SkipToContent.tokens.d.ts +0 -14
- package/dist/components/SkipToContent/SkipToContent.tokens.js +0 -22
- package/dist/components/SkipToContent/index.d.ts +0 -1
- package/dist/components/Spinner/Spinner.d.ts +0 -15
- package/dist/components/Spinner/Spinner.js +0 -74
- package/dist/components/Spinner/Spinner.stories.d.ts +0 -26
- package/dist/components/Spinner/index.d.ts +0 -1
- package/dist/components/SplitButton/SplitButton.d.ts +0 -16
- package/dist/components/SplitButton/SplitButton.js +0 -63
- package/dist/components/SplitButton/SplitButton.stories.d.ts +0 -10
- package/dist/components/SplitButton/SplitButton.tokens.d.ts +0 -7
- package/dist/components/SplitButton/SplitButton.tokens.js +0 -12
- package/dist/components/SplitButton/index.d.ts +0 -1
- package/dist/components/Stack/Stack.d.ts +0 -39
- package/dist/components/Stack/Stack.js +0 -52
- package/dist/components/Stack/Stack.stories.d.ts +0 -13
- package/dist/components/Stack/Stack.tokens.d.ts +0 -20
- package/dist/components/Stack/Stack.tokens.js +0 -26
- package/dist/components/Stack/index.d.ts +0 -1
- package/dist/components/Table/Body.d.ts +0 -3
- package/dist/components/Table/Body.js +0 -22
- package/dist/components/Table/Cell.d.ts +0 -15
- package/dist/components/Table/Cell.js +0 -78
- package/dist/components/Table/Foot.d.ts +0 -3
- package/dist/components/Table/Foot.js +0 -22
- package/dist/components/Table/Head.d.ts +0 -3
- package/dist/components/Table/Head.js +0 -22
- package/dist/components/Table/Row.d.ts +0 -7
- package/dist/components/Table/Row.js +0 -25
- package/dist/components/Table/SortCell.d.ts +0 -19
- package/dist/components/Table/SortCell.js +0 -51
- package/dist/components/Table/Table.d.ts +0 -7
- package/dist/components/Table/Table.js +0 -44
- package/dist/components/Table/Table.stories.d.ts +0 -57
- package/dist/components/Table/Table.styles.d.ts +0 -10
- package/dist/components/Table/Table.styles.js +0 -24
- package/dist/components/Table/Table.tokens.d.ts +0 -67
- package/dist/components/Table/Table.tokens.js +0 -80
- package/dist/components/Table/Table.types.d.ts +0 -37
- package/dist/components/Table/TableWrapper.d.ts +0 -6
- package/dist/components/Table/TableWrapper.js +0 -58
- package/dist/components/Table/collapsible/CollapsibleRow.d.ts +0 -7
- package/dist/components/Table/collapsible/CollapsibleRow.js +0 -138
- package/dist/components/Table/collapsible/CollapsibleTable.d.ts +0 -10
- package/dist/components/Table/collapsible/CollapsibleTable.js +0 -42
- package/dist/components/Table/collapsible/CollapsibleTable.stories.d.ts +0 -49
- package/dist/components/Table/collapsible/Table.context.d.ts +0 -10
- package/dist/components/Table/collapsible/Table.context.js +0 -11
- package/dist/components/Table/index.d.ts +0 -28
- package/dist/components/Table/index.js +0 -23
- package/dist/components/Table/tableData.d.ts +0 -17
- package/dist/components/Tabs/Tab.d.ts +0 -31
- package/dist/components/Tabs/Tab.js +0 -89
- package/dist/components/Tabs/TabList.d.ts +0 -3
- package/dist/components/Tabs/TabList.js +0 -78
- package/dist/components/Tabs/TabPanel.d.ts +0 -14
- package/dist/components/Tabs/TabPanel.js +0 -37
- package/dist/components/Tabs/TabPanels.d.ts +0 -3
- package/dist/components/Tabs/TabPanels.js +0 -32
- package/dist/components/Tabs/Tabs.context.d.ts +0 -15
- package/dist/components/Tabs/Tabs.context.js +0 -21
- package/dist/components/Tabs/Tabs.d.ts +0 -27
- package/dist/components/Tabs/Tabs.js +0 -70
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -53
- package/dist/components/Tabs/Tabs.tokens.d.ts +0 -32
- package/dist/components/Tabs/Tabs.tokens.js +0 -42
- package/dist/components/Tabs/index.d.ts +0 -5
- package/dist/components/Tag/Tag.d.ts +0 -17
- package/dist/components/Tag/Tag.js +0 -35
- package/dist/components/Tag/Tag.stories.d.ts +0 -19
- package/dist/components/Tag/Tag.tokens.d.ts +0 -31
- package/dist/components/Tag/Tag.tokens.js +0 -27
- package/dist/components/Tag/index.d.ts +0 -1
- package/dist/components/TextArea/TextArea.d.ts +0 -15
- package/dist/components/TextArea/TextArea.js +0 -92
- package/dist/components/TextArea/TextArea.stories.d.ts +0 -52
- package/dist/components/TextArea/TextArea.tokens.d.ts +0 -5
- package/dist/components/TextArea/TextArea.tokens.js +0 -11
- package/dist/components/TextArea/index.d.ts +0 -1
- package/dist/components/TextInput/CharCounter.d.ts +0 -7
- package/dist/components/TextInput/CharCounter.js +0 -29
- package/dist/components/TextInput/TextInput.d.ts +0 -10
- package/dist/components/TextInput/TextInput.js +0 -187
- package/dist/components/TextInput/TextInput.stories.d.ts +0 -72
- package/dist/components/TextInput/TextInput.styles.d.ts +0 -17
- package/dist/components/TextInput/TextInput.styles.js +0 -31
- package/dist/components/TextInput/TextInput.tokens.d.ts +0 -37
- package/dist/components/TextInput/TextInput.tokens.js +0 -47
- package/dist/components/TextInput/TextInput.types.d.ts +0 -21
- package/dist/components/TextInput/index.d.ts +0 -2
- package/dist/components/ToggleBar/ToggleBar.context.d.ts +0 -10
- package/dist/components/ToggleBar/ToggleBar.context.js +0 -10
- package/dist/components/ToggleBar/ToggleBar.d.ts +0 -5
- package/dist/components/ToggleBar/ToggleBar.js +0 -70
- package/dist/components/ToggleBar/ToggleBar.stories.d.ts +0 -23
- package/dist/components/ToggleBar/ToggleBar.tokens.d.ts +0 -84
- package/dist/components/ToggleBar/ToggleBar.tokens.js +0 -102
- package/dist/components/ToggleBar/ToggleBar.types.d.ts +0 -19
- package/dist/components/ToggleBar/ToggleRadio.d.ts +0 -19
- package/dist/components/ToggleBar/ToggleRadio.js +0 -71
- package/dist/components/ToggleBar/ToggleRadio.styles.d.ts +0 -11
- package/dist/components/ToggleBar/ToggleRadio.styles.js +0 -21
- package/dist/components/ToggleBar/index.d.ts +0 -3
- package/dist/components/ToggleButton/ToggleButton.d.ts +0 -7
- package/dist/components/ToggleButton/ToggleButton.js +0 -51
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +0 -19
- package/dist/components/ToggleButton/ToggleButton.tokens.d.ts +0 -32
- package/dist/components/ToggleButton/ToggleButton.tokens.js +0 -35
- package/dist/components/ToggleButton/ToggleButton.types.d.ts +0 -10
- package/dist/components/ToggleButton/ToggleButtonGroup.d.ts +0 -15
- package/dist/components/ToggleButton/ToggleButtonGroup.js +0 -52
- package/dist/components/ToggleButton/ToggleButtonGroup.stories.d.ts +0 -11
- package/dist/components/ToggleButton/index.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.d.ts +0 -32
- package/dist/components/Tooltip/Tooltip.js +0 -143
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -35
- package/dist/components/Tooltip/Tooltip.styles.d.ts +0 -11
- package/dist/components/Tooltip/Tooltip.styles.js +0 -27
- package/dist/components/Tooltip/Tooltip.tokens.d.ts +0 -13
- package/dist/components/Tooltip/Tooltip.tokens.js +0 -21
- package/dist/components/Tooltip/index.d.ts +0 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +0 -14
- package/dist/components/VisuallyHidden/VisuallyHidden.js +0 -29
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +0 -19
- package/dist/components/VisuallyHidden/index.d.ts +0 -1
- package/dist/dds-core.d.ts +0 -1
- package/dist/dds-form.d.ts +0 -2
- package/dist/dds-icons.d.ts +0 -2
- package/dist/dds-typography.d.ts +0 -2
- package/dist/test/mocks/IntersectionObserver.d.ts +0 -1
- package/dist/test/mocks/ResizeObserver.d.ts +0 -6
- package/dist/utils/icon.d.ts +0 -3
- package/dist/utils/icon.js +0 -12
- package/dist/utils/renderInputMessage.d.ts +0 -1
- package/dist/utils/renderInputMessage.js +0 -18
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './GlobalMessage';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ScreenSize } from '@norges-domstoler/dds-core';
|
|
3
|
-
export type GridContextProps = {
|
|
4
|
-
screenSize: ScreenSize;
|
|
5
|
-
};
|
|
6
|
-
export declare const GridContext: import("react").Context<GridContextProps>;
|
|
7
|
-
export declare const useGridContext: () => GridContextProps;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createContext, useContext } from 'react';
|
|
2
|
-
import { ScreenSize } from '@norges-domstoler/dds-core';
|
|
3
|
-
|
|
4
|
-
var GridContext = /*#__PURE__*/createContext({
|
|
5
|
-
screenSize: ScreenSize.Large
|
|
6
|
-
});
|
|
7
|
-
var useGridContext = function useGridContext() {
|
|
8
|
-
return useContext(GridContext);
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export { GridContext, useGridContext };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BaseComponentPropsWithChildren } from '@norges-domstoler/dds-core';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
3
|
-
import { BreakpointBasedProps } from '@norges-domstoler/dds-core';
|
|
4
|
-
type RowGapGrid = BreakpointBasedProps<'rowGap'>;
|
|
5
|
-
type MaxWidthGrid = BreakpointBasedProps<'maxWidth'>;
|
|
6
|
-
type BaseGridProps = {
|
|
7
|
-
/**Maksimal bredde. Gjøres per brekkepunkt. */
|
|
8
|
-
maxWidth?: MaxWidthGrid;
|
|
9
|
-
/** CSS `row-gap`. Gjøres per brekkepunkt. */
|
|
10
|
-
rowGap?: RowGapGrid;
|
|
11
|
-
} & Pick<HTMLAttributes<HTMLElement>, 'style'>;
|
|
12
|
-
type GridDivProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
13
|
-
/**HTML tag som returneres. */
|
|
14
|
-
as: 'div';
|
|
15
|
-
} & BaseGridProps>;
|
|
16
|
-
type GridFormProps = BaseComponentPropsWithChildren<HTMLFormElement, {
|
|
17
|
-
as: 'form';
|
|
18
|
-
} & BaseGridProps>;
|
|
19
|
-
export type GridProps = GridDivProps | GridFormProps;
|
|
20
|
-
export declare const Grid: {
|
|
21
|
-
(props: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
displayName: string;
|
|
23
|
-
};
|
|
24
|
-
export {};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { __rest } from 'tslib';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import styled, { css } from 'styled-components';
|
|
4
|
-
import { getLiteralScreenSize, useScreenSize, getBaseHTMLProps } from '@norges-domstoler/dds-core';
|
|
5
|
-
import { gridTokens } from './Grid.tokens.js';
|
|
6
|
-
import { GridContext } from './Grid.context.js';
|
|
7
|
-
|
|
8
|
-
var getHooksGridStyling = function getHooksGridStyling(screenSize, maxWidth, rowGap) {
|
|
9
|
-
var tokens = gridTokens[screenSize].grid;
|
|
10
|
-
return {
|
|
11
|
-
gridTemplateColumns: "repeat(".concat(tokens.columns, ", minmax(0, 1fr))"),
|
|
12
|
-
columnGap: tokens.columnGap,
|
|
13
|
-
marginLeft: tokens.marginLeft,
|
|
14
|
-
marginRight: tokens.marginRight,
|
|
15
|
-
rowGap: rowGap && rowGap[getLiteralScreenSize(screenSize)] ? rowGap[getLiteralScreenSize(screenSize)] : tokens.columnGap,
|
|
16
|
-
maxWidth: maxWidth && maxWidth[getLiteralScreenSize(screenSize)] && maxWidth[getLiteralScreenSize(screenSize)]
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
var StyledGrid = styled.div.withConfig({
|
|
20
|
-
displayName: "Grid__StyledGrid",
|
|
21
|
-
componentId: "sc-1cts9va-0"
|
|
22
|
-
})(["display:grid;", " ", ""], function (_ref) {
|
|
23
|
-
var maxWidth = _ref.maxWidth;
|
|
24
|
-
return css(["max-width:", ";"], maxWidth);
|
|
25
|
-
}, function (_ref2) {
|
|
26
|
-
var screenSize = _ref2.screenSize,
|
|
27
|
-
maxWidth = _ref2.maxWidth,
|
|
28
|
-
rowGap = _ref2.rowGap;
|
|
29
|
-
return getHooksGridStyling(screenSize, maxWidth, rowGap);
|
|
30
|
-
});
|
|
31
|
-
var Grid = function Grid(props) {
|
|
32
|
-
var id = props.id,
|
|
33
|
-
className = props.className,
|
|
34
|
-
children = props.children,
|
|
35
|
-
htmlProps = props.htmlProps,
|
|
36
|
-
as = props.as,
|
|
37
|
-
rest = __rest(props, ["id", "className", "children", "htmlProps", "as"]);
|
|
38
|
-
var screenSize = useScreenSize();
|
|
39
|
-
return jsx(GridContext.Provider, {
|
|
40
|
-
value: {
|
|
41
|
-
screenSize: screenSize
|
|
42
|
-
},
|
|
43
|
-
children: as === 'div' ? jsx(StyledGrid, Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest), {
|
|
44
|
-
screenSize: screenSize,
|
|
45
|
-
children: children
|
|
46
|
-
})) : jsx(StyledGrid, Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest), {
|
|
47
|
-
screenSize: screenSize,
|
|
48
|
-
as: as,
|
|
49
|
-
children: children
|
|
50
|
-
}))
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
Grid.displayName = 'Grid';
|
|
54
|
-
|
|
55
|
-
export { Grid };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { GridProps } from '.';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: {
|
|
5
|
-
(props: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
10
|
-
export declare const PageExample: (args: GridProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const JustRelativeColumns: (args: GridProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
export declare const gridTokens: {
|
|
2
|
-
0: {
|
|
3
|
-
grid: {
|
|
4
|
-
columns: number;
|
|
5
|
-
columnGap: string;
|
|
6
|
-
marginLeft: string;
|
|
7
|
-
marginRight: string;
|
|
8
|
-
};
|
|
9
|
-
columns: {
|
|
10
|
-
firstHalf: {
|
|
11
|
-
gridColumn: string;
|
|
12
|
-
};
|
|
13
|
-
secondHalf: {
|
|
14
|
-
gridColumn: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
1: {
|
|
19
|
-
grid: {
|
|
20
|
-
columns: number;
|
|
21
|
-
columnGap: string;
|
|
22
|
-
marginLeft: string;
|
|
23
|
-
marginRight: string;
|
|
24
|
-
};
|
|
25
|
-
columns: {
|
|
26
|
-
firstHalf: {
|
|
27
|
-
gridColumn: string;
|
|
28
|
-
};
|
|
29
|
-
secondHalf: {
|
|
30
|
-
gridColumn: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
2: {
|
|
35
|
-
grid: {
|
|
36
|
-
columns: number;
|
|
37
|
-
columnGap: string;
|
|
38
|
-
marginLeft: string;
|
|
39
|
-
marginRight: string;
|
|
40
|
-
};
|
|
41
|
-
columns: {
|
|
42
|
-
firstHalf: {
|
|
43
|
-
gridColumn: string;
|
|
44
|
-
};
|
|
45
|
-
secondHalf: {
|
|
46
|
-
gridColumn: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
3: {
|
|
51
|
-
grid: {
|
|
52
|
-
columns: number;
|
|
53
|
-
columnGap: string;
|
|
54
|
-
marginLeft: string;
|
|
55
|
-
marginRight: string;
|
|
56
|
-
};
|
|
57
|
-
columns: {
|
|
58
|
-
firstHalf: {
|
|
59
|
-
gridColumn: string;
|
|
60
|
-
};
|
|
61
|
-
secondHalf: {
|
|
62
|
-
gridColumn: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
4: {
|
|
67
|
-
grid: {
|
|
68
|
-
columns: number;
|
|
69
|
-
columnGap: string;
|
|
70
|
-
marginLeft: string;
|
|
71
|
-
marginRight: string;
|
|
72
|
-
};
|
|
73
|
-
columns: {
|
|
74
|
-
firstHalf: {
|
|
75
|
-
gridColumn: string;
|
|
76
|
-
};
|
|
77
|
-
secondHalf: {
|
|
78
|
-
gridColumn: string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
3
|
-
import { ScreenSize } from '@norges-domstoler/dds-core';
|
|
4
|
-
|
|
5
|
-
var _halfWayColumn, _gridTokens;
|
|
6
|
-
var grid = ddsBaseTokens.grid,
|
|
7
|
-
spacing = ddsBaseTokens.spacing;
|
|
8
|
-
var allColumns = '1 / -1';
|
|
9
|
-
var halfWayColumn = (_halfWayColumn = {}, _defineProperty(_halfWayColumn, ScreenSize.XSmall, grid.DdsGridXs0599Count / 2 + 1), _defineProperty(_halfWayColumn, ScreenSize.Small, grid.DdsGridSm600959Count / 2 + 1), _defineProperty(_halfWayColumn, ScreenSize.Medium, grid.DdsGridMd9601279Count / 2 + 1), _defineProperty(_halfWayColumn, ScreenSize.Large, grid.DdsGridLg12801919Count / 2 + 1), _defineProperty(_halfWayColumn, ScreenSize.XLarge, grid.DdsGridXl1920Count / 2 + 1), _halfWayColumn);
|
|
10
|
-
var gridTokens = (_gridTokens = {}, _defineProperty(_gridTokens, ScreenSize.XSmall, {
|
|
11
|
-
grid: {
|
|
12
|
-
columns: grid.DdsGridXs0599Count,
|
|
13
|
-
columnGap: grid.DdsGridXs0599GutterSize,
|
|
14
|
-
marginLeft: spacing.SizesDdsSpacingLayoutX1,
|
|
15
|
-
marginRight: spacing.SizesDdsSpacingLayoutX1
|
|
16
|
-
},
|
|
17
|
-
columns: {
|
|
18
|
-
firstHalf: {
|
|
19
|
-
gridColumn: allColumns
|
|
20
|
-
},
|
|
21
|
-
secondHalf: {
|
|
22
|
-
gridColumn: allColumns
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}), _defineProperty(_gridTokens, ScreenSize.Small, {
|
|
26
|
-
grid: {
|
|
27
|
-
columns: grid.DdsGridSm600959Count,
|
|
28
|
-
columnGap: grid.DdsGridSm600959GutterSize,
|
|
29
|
-
marginLeft: spacing.SizesDdsSpacingLayoutX2,
|
|
30
|
-
marginRight: spacing.SizesDdsSpacingLayoutX2
|
|
31
|
-
},
|
|
32
|
-
columns: {
|
|
33
|
-
firstHalf: {
|
|
34
|
-
gridColumn: "1 / ".concat(halfWayColumn[ScreenSize.Small])
|
|
35
|
-
},
|
|
36
|
-
secondHalf: {
|
|
37
|
-
gridColumn: "".concat(halfWayColumn[ScreenSize.Small], " / -1")
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}), _defineProperty(_gridTokens, ScreenSize.Medium, {
|
|
41
|
-
grid: {
|
|
42
|
-
columns: grid.DdsGridMd9601279Count,
|
|
43
|
-
columnGap: grid.DdsGridMd9601279GutterSize,
|
|
44
|
-
marginLeft: spacing.SizesDdsSpacingLayoutX4,
|
|
45
|
-
marginRight: spacing.SizesDdsSpacingLayoutX4
|
|
46
|
-
},
|
|
47
|
-
columns: {
|
|
48
|
-
firstHalf: {
|
|
49
|
-
gridColumn: "1 / ".concat(halfWayColumn[ScreenSize.Medium])
|
|
50
|
-
},
|
|
51
|
-
secondHalf: {
|
|
52
|
-
gridColumn: "".concat(halfWayColumn[ScreenSize.Medium], " / -1")
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}), _defineProperty(_gridTokens, ScreenSize.Large, {
|
|
56
|
-
grid: {
|
|
57
|
-
columns: grid.DdsGridLg12801919Count,
|
|
58
|
-
columnGap: grid.DdsGridLg12801919GutterSize,
|
|
59
|
-
marginLeft: spacing.SizesDdsSpacingLayoutX6,
|
|
60
|
-
marginRight: spacing.SizesDdsSpacingLayoutX6
|
|
61
|
-
},
|
|
62
|
-
columns: {
|
|
63
|
-
firstHalf: {
|
|
64
|
-
gridColumn: "1 / ".concat(halfWayColumn[ScreenSize.Large])
|
|
65
|
-
},
|
|
66
|
-
secondHalf: {
|
|
67
|
-
gridColumn: "".concat(halfWayColumn[ScreenSize.Large], " / -1")
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}), _defineProperty(_gridTokens, ScreenSize.XLarge, {
|
|
71
|
-
grid: {
|
|
72
|
-
columns: grid.DdsGridXl1920Count,
|
|
73
|
-
columnGap: grid.DdsGridXl1920GutterSize,
|
|
74
|
-
marginLeft: spacing.SizesDdsSpacingLayoutX10,
|
|
75
|
-
marginRight: spacing.SizesDdsSpacingLayoutX10
|
|
76
|
-
},
|
|
77
|
-
columns: {
|
|
78
|
-
firstHalf: {
|
|
79
|
-
gridColumn: "1 / ".concat(halfWayColumn[ScreenSize.XLarge])
|
|
80
|
-
},
|
|
81
|
-
secondHalf: {
|
|
82
|
-
gridColumn: "".concat(halfWayColumn[ScreenSize.XLarge], " / -1")
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}), _gridTokens);
|
|
86
|
-
|
|
87
|
-
export { gridTokens };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import { BaseComponentPropsWithChildren } from '@norges-domstoler/dds-core';
|
|
3
|
-
import { HTMLAttributes } from 'react';
|
|
4
|
-
import { BreakpointBasedProps } from '@norges-domstoler/dds-core';
|
|
5
|
-
export declare const isRelativeGridColumn: (type: ColumnsOccupied | undefined) => type is RelativeColumnsOccupied;
|
|
6
|
-
export declare const isGridColumn: (type: ColumnsOccupied | undefined) => type is GridColumnPerScreenSize;
|
|
7
|
-
type RelativeColumnsOccupied = 'all' | 'firstHalf' | 'secondHalf';
|
|
8
|
-
type GridColumnPerScreenSize = BreakpointBasedProps<'gridColumn'>;
|
|
9
|
-
export type ColumnsOccupied = RelativeColumnsOccupied | GridColumnPerScreenSize;
|
|
10
|
-
export type GridChildProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
11
|
-
/**hvilke kolonner innholdet skal okkupere. Tar inn enten en string med relativ definisjon eller et objekt med egentilpassede `grid-column` CSS verdi definert for hver brekkepunkt. */
|
|
12
|
-
columnsOccupied?: ColumnsOccupied;
|
|
13
|
-
/**Plassering av innholdet på x-aksen. */
|
|
14
|
-
justifySelf?: Property.JustifySelf;
|
|
15
|
-
/**Hvilke rader innholdet skal okkupere. */
|
|
16
|
-
gridRow?: Property.GridRow;
|
|
17
|
-
}> & Pick<HTMLAttributes<HTMLElement>, 'style'>;
|
|
18
|
-
export declare const GridChild: {
|
|
19
|
-
(props: GridChildProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
displayName: string;
|
|
21
|
-
};
|
|
22
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { __rest } from 'tslib';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { gridTokens } from './Grid.tokens.js';
|
|
5
|
-
import { useGridContext } from './Grid.context.js';
|
|
6
|
-
import { getLiteralScreenSize, getBaseHTMLProps } from '@norges-domstoler/dds-core';
|
|
7
|
-
|
|
8
|
-
var isRelativeGridColumn = function isRelativeGridColumn(type) {
|
|
9
|
-
return type === 'all' || type === 'firstHalf' || type === 'secondHalf';
|
|
10
|
-
};
|
|
11
|
-
var isGridColumn = function isGridColumn(type) {
|
|
12
|
-
return type.xs !== undefined || type.sm !== undefined || type.md !== undefined || type.lg !== undefined || type.xl !== undefined;
|
|
13
|
-
};
|
|
14
|
-
var StyledGridChild = styled.div.withConfig({
|
|
15
|
-
displayName: "GridChild__StyledGridChild",
|
|
16
|
-
componentId: "sc-1wijakj-0"
|
|
17
|
-
})(["grid-column:", ";justify-self:", ";grid-row:", ";"], function (_ref) {
|
|
18
|
-
var screenSize = _ref.screenSize,
|
|
19
|
-
columnsOccupied = _ref.columnsOccupied;
|
|
20
|
-
return columnsOccupied === 'all' ? '1 / -1' : isGridColumn(columnsOccupied) ? columnsOccupied[getLiteralScreenSize(screenSize)] : isRelativeGridColumn(columnsOccupied) ? gridTokens[screenSize].columns[columnsOccupied].gridColumn : '';
|
|
21
|
-
}, function (_ref2) {
|
|
22
|
-
var justifySelf = _ref2.justifySelf;
|
|
23
|
-
return justifySelf && justifySelf;
|
|
24
|
-
}, function (_ref3) {
|
|
25
|
-
var gridRow = _ref3.gridRow;
|
|
26
|
-
return gridRow && gridRow;
|
|
27
|
-
});
|
|
28
|
-
var GridChild = function GridChild(props) {
|
|
29
|
-
var id = props.id,
|
|
30
|
-
className = props.className,
|
|
31
|
-
htmlProps = props.htmlProps,
|
|
32
|
-
children = props.children,
|
|
33
|
-
rest = __rest(props, ["id", "className", "htmlProps", "children"]);
|
|
34
|
-
var _useGridContext = useGridContext(),
|
|
35
|
-
screenSize = _useGridContext.screenSize;
|
|
36
|
-
return jsx(StyledGridChild, Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest), {
|
|
37
|
-
screenSize: screenSize,
|
|
38
|
-
children: children
|
|
39
|
-
}));
|
|
40
|
-
};
|
|
41
|
-
GridChild.displayName = 'GridChild';
|
|
42
|
-
|
|
43
|
-
export { GridChild, isGridColumn, isRelativeGridColumn };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
-
import { useState, Children, isValidElement, cloneElement } from 'react';
|
|
4
|
-
import { useOnKeyDown, useOnClickOutside } from '@norges-domstoler/dds-core';
|
|
5
|
-
|
|
6
|
-
var InlineEdit = function InlineEdit(props) {
|
|
7
|
-
var emptiable = props.emptiable,
|
|
8
|
-
value = props.value,
|
|
9
|
-
onSetValue = props.onSetValue,
|
|
10
|
-
onChange = props.onChange,
|
|
11
|
-
onFocus = props.onFocus,
|
|
12
|
-
onBlur = props.onBlur,
|
|
13
|
-
inputRef = props.inputRef,
|
|
14
|
-
children = props.children;
|
|
15
|
-
var _useState = useState(value || ''),
|
|
16
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
17
|
-
editingValue = _useState2[0],
|
|
18
|
-
setEditingValue = _useState2[1];
|
|
19
|
-
var _useState3 = useState(false),
|
|
20
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
21
|
-
isEditing = _useState4[0],
|
|
22
|
-
setIsEditing = _useState4[1];
|
|
23
|
-
var onChangeHandler = function onChangeHandler(e) {
|
|
24
|
-
setEditingValue(e.target.value);
|
|
25
|
-
onChange && onChange();
|
|
26
|
-
};
|
|
27
|
-
var onFocusHandler = function onFocusHandler() {
|
|
28
|
-
setIsEditing(true);
|
|
29
|
-
onFocus && onFocus();
|
|
30
|
-
};
|
|
31
|
-
var onBlurHandler = function onBlurHandler(e) {
|
|
32
|
-
if (!emptiable && e.target.value.trim() === '') {
|
|
33
|
-
setEditingValue(value);
|
|
34
|
-
} else {
|
|
35
|
-
onSetValue && onSetValue(e.target.value);
|
|
36
|
-
}
|
|
37
|
-
setIsEditing(false);
|
|
38
|
-
onBlur && onBlur();
|
|
39
|
-
};
|
|
40
|
-
var onExitHandler = function onExitHandler() {
|
|
41
|
-
if (inputRef.current === document.activeElement && document.activeElement instanceof HTMLElement) {
|
|
42
|
-
setIsEditing(false);
|
|
43
|
-
document.activeElement.blur();
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
useOnKeyDown(['Enter'], function () {
|
|
47
|
-
return onExitHandler();
|
|
48
|
-
});
|
|
49
|
-
useOnKeyDown(['Escape'], function () {
|
|
50
|
-
return onExitHandler();
|
|
51
|
-
});
|
|
52
|
-
useOnClickOutside(inputRef.current, function () {
|
|
53
|
-
return onExitHandler();
|
|
54
|
-
});
|
|
55
|
-
var inputChild = Children.only( /*#__PURE__*/isValidElement(children) && /*#__PURE__*/cloneElement(children, {
|
|
56
|
-
onChange: onChangeHandler,
|
|
57
|
-
onBlur: onBlurHandler,
|
|
58
|
-
onFocus: onFocusHandler,
|
|
59
|
-
isEditing: isEditing,
|
|
60
|
-
value: editingValue,
|
|
61
|
-
emptiable: emptiable
|
|
62
|
-
}));
|
|
63
|
-
return jsx(Fragment, {
|
|
64
|
-
children: inputChild
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
InlineEdit.displayName = 'InlineEdit';
|
|
68
|
-
|
|
69
|
-
export { InlineEdit };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "onFocus" | "onBlur" | "onChange" | "width"> & Pick<import("./InlineEdit.types").InlineEditProps, "onFocus" | "onBlur" | "onChange" | "onSetValue" | "emptiable"> & Pick<import("./InlineEdit.types").BaseInlineInputProps, "width" | "errorMessage" | "error" | "hideIcon"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
|
-
argTypes: {
|
|
6
|
-
emptiable: {
|
|
7
|
-
control: {
|
|
8
|
-
type: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
error: {
|
|
12
|
-
control: {
|
|
13
|
-
type: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
errorMessage: {
|
|
17
|
-
control: {
|
|
18
|
-
type: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
width: {
|
|
22
|
-
control: {
|
|
23
|
-
type: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
parameters: {
|
|
28
|
-
controls: {
|
|
29
|
-
exclude: string[];
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export default _default;
|
|
34
|
-
export declare const OverviewInputTypes: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
export declare const defaultWidth: Property.Width;
|
|
3
|
-
type StyledInlineInputProps = {
|
|
4
|
-
isEditing?: boolean;
|
|
5
|
-
hideIcon?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const StyledInlineInput: import("styled-components").StyledComponent<"input", any, Pick<import("@norges-domstoler/dds-form").InputProps, "disabled" | "readOnly"> & {
|
|
8
|
-
hasErrorMessage: boolean;
|
|
9
|
-
} & {
|
|
10
|
-
prefixLength?: number | undefined;
|
|
11
|
-
suffixLength?: number | undefined;
|
|
12
|
-
} & Pick<import("@norges-domstoler/dds-form").InputProps, "componentSize"> & StyledInlineInputProps, never>;
|
|
13
|
-
export declare const StyledInlineTextArea: import("styled-components").StyledComponent<"input", any, Pick<import("@norges-domstoler/dds-form").InputProps, "disabled" | "readOnly"> & {
|
|
14
|
-
hasErrorMessage: boolean;
|
|
15
|
-
} & {
|
|
16
|
-
prefixLength?: number | undefined;
|
|
17
|
-
suffixLength?: number | undefined;
|
|
18
|
-
} & Pick<import("@norges-domstoler/dds-form").InputProps, "componentSize"> & StyledInlineInputProps, never>;
|
|
19
|
-
export declare const IconWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
20
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import { inlineEditTokens } from './InlineEdit.tokens.js';
|
|
3
|
-
import '../ScrollableContainer/Scrollbar.js';
|
|
4
|
-
import '../ScrollableContainer/ScrollableContainer.js';
|
|
5
|
-
import { scrollbarStyling } from '../ScrollableContainer/scrollbarStyling.js';
|
|
6
|
-
import { StatefulInput } from '@norges-domstoler/dds-form';
|
|
7
|
-
|
|
8
|
-
var inlineEdit = inlineEditTokens.inlineEdit,
|
|
9
|
-
iconWrapper = inlineEditTokens.iconWrapper;
|
|
10
|
-
var defaultWidth = '140px';
|
|
11
|
-
var StyledInlineInput = styled(StatefulInput).withConfig({
|
|
12
|
-
displayName: "InlineEditstyles__StyledInlineInput",
|
|
13
|
-
componentId: "sc-1ro526a-0"
|
|
14
|
-
})(["border-color:transparent;background-color:", ";padding:", ";", ";", " &:hover:enabled:read-write:not(:focus){background-color:", ";border-color:transparent;box-shadow:none;}&:focus{background-color:", ";}"], inlineEdit.backgroundColor, inlineEdit.padding, inlineEdit.font, function (_ref) {
|
|
15
|
-
var isEditing = _ref.isEditing,
|
|
16
|
-
hideIcon = _ref.hideIcon;
|
|
17
|
-
return !isEditing && !hideIcon && css(["padding-left:", ";"], inlineEdit.withIcon.paddingLeft);
|
|
18
|
-
}, inlineEdit.hover.backgroundColor, inlineEdit.focus.backgroundColor);
|
|
19
|
-
var StyledInlineTextArea = styled(StyledInlineInput).withConfig({
|
|
20
|
-
displayName: "InlineEditstyles__StyledInlineTextArea",
|
|
21
|
-
componentId: "sc-1ro526a-1"
|
|
22
|
-
})(["resize:vertical;", " ", ""], scrollbarStyling.webkit, scrollbarStyling.firefox);
|
|
23
|
-
var IconWrapper = styled.span.withConfig({
|
|
24
|
-
displayName: "InlineEditstyles__IconWrapper",
|
|
25
|
-
componentId: "sc-1ro526a-2"
|
|
26
|
-
})(["position:absolute;left:", ";top:", ";z-index:1;&:hover{cursor:text;}"], iconWrapper.left, iconWrapper.top);
|
|
27
|
-
|
|
28
|
-
export { IconWrapper, StyledInlineInput, StyledInlineTextArea, defaultWidth };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare const inlineEditTokens: {
|
|
2
|
-
inlineEdit: {
|
|
3
|
-
padding: string;
|
|
4
|
-
font: {
|
|
5
|
-
lineHeight: any;
|
|
6
|
-
fontSize: string;
|
|
7
|
-
letterSpacing: any;
|
|
8
|
-
fontFamily: any;
|
|
9
|
-
fontWeight: any;
|
|
10
|
-
fontStyle: any;
|
|
11
|
-
};
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
withIcon: {
|
|
14
|
-
paddingLeft: string;
|
|
15
|
-
};
|
|
16
|
-
hover: {
|
|
17
|
-
backgroundColor: string;
|
|
18
|
-
};
|
|
19
|
-
focus: {
|
|
20
|
-
backgroundColor: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
iconWrapper: {
|
|
24
|
-
top: string;
|
|
25
|
-
left: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
|
-
|
|
3
|
-
var colors = ddsBaseTokens.colors,
|
|
4
|
-
spacing = ddsBaseTokens.spacing,
|
|
5
|
-
fontPackages = ddsBaseTokens.fontPackages;
|
|
6
|
-
var inlineEdit = {
|
|
7
|
-
padding: spacing.SizesDdsSpacingLocalX025,
|
|
8
|
-
font: fontPackages.body_sans_02.base,
|
|
9
|
-
backgroundColor: 'transparent',
|
|
10
|
-
withIcon: {
|
|
11
|
-
paddingLeft: spacing.SizesDdsSpacingLocalX2
|
|
12
|
-
},
|
|
13
|
-
hover: {
|
|
14
|
-
backgroundColor: colors.DdsColorInteractiveLightest
|
|
15
|
-
},
|
|
16
|
-
focus: {
|
|
17
|
-
backgroundColor: colors.DdsColorNeutralsWhite
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
var iconWrapper = {
|
|
21
|
-
top: spacing.SizesDdsSpacingLocalX05,
|
|
22
|
-
left: spacing.SizesDdsSpacingLocalX05
|
|
23
|
-
};
|
|
24
|
-
var inlineEditTokens = {
|
|
25
|
-
inlineEdit: inlineEdit,
|
|
26
|
-
iconWrapper: iconWrapper
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export { inlineEditTokens };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Property } from 'csstype';
|
|
2
|
-
import { InputHTMLAttributes, ReactNode, RefObject, TextareaHTMLAttributes } from 'react';
|
|
3
|
-
export type BaseInlineInputProps = {
|
|
4
|
-
/**Spesifiserer error state. Hvis `errorMessage` ikke brukes må inputfeltet knyttes med ARIA til en feilmelding som vises andre steder i applikasjonen. */
|
|
5
|
-
error?: boolean;
|
|
6
|
-
/**Feilmelding. Setter også error state. */
|
|
7
|
-
errorMessage?: string;
|
|
8
|
-
/** Bredde på komponenten. */
|
|
9
|
-
width?: Property.Width;
|
|
10
|
-
/**Om redigeringsikonet skal vises. */
|
|
11
|
-
hideIcon?: boolean;
|
|
12
|
-
/** **OBS!** settes automatisk av forelder. Spesifiserer om brukeren kan tømme inputfeltet. */
|
|
13
|
-
emptiable?: boolean;
|
|
14
|
-
/** **OBS!** settes automatisk av forelder. Spesifiserer om komponenten er i redigeringsmodus. */
|
|
15
|
-
isEditing?: boolean;
|
|
16
|
-
};
|
|
17
|
-
export type InlineEditProps = {
|
|
18
|
-
/**Callback for når verdien blir lagret. */
|
|
19
|
-
onSetValue?: (value: string) => void;
|
|
20
|
-
/** Ref til barnet. */
|
|
21
|
-
inputRef: RefObject<HTMLElement>;
|
|
22
|
-
/** Barn (inputelementet). */
|
|
23
|
-
children: ReactNode;
|
|
24
|
-
/**Spesifiserer om brukeren kan tømme inputfeltet. */
|
|
25
|
-
emptiable?: boolean;
|
|
26
|
-
/**Ekstra callback ved `onChange`-event. */
|
|
27
|
-
onChange?: () => void;
|
|
28
|
-
/**Ekstra callback ved `onFocus`-event. */
|
|
29
|
-
onFocus?: () => void;
|
|
30
|
-
/**Ekstra callback ved `onBlur`-event. */
|
|
31
|
-
onBlur?: () => void;
|
|
32
|
-
} & Pick<InputHTMLAttributes<HTMLInputElement>, 'value'>;
|
|
33
|
-
export type CommonInlineEditWrapperProps = Pick<InlineEditProps, 'onSetValue' | 'emptiable' | 'onBlur' | 'onFocus' | 'onChange'> & Pick<BaseInlineInputProps, 'error' | 'errorMessage' | 'width' | 'hideIcon'>;
|
|
34
|
-
export type InlineEditTextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'onFocus' | 'onBlur'> & CommonInlineEditWrapperProps;
|
|
35
|
-
export type InlineEditInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'width' | 'onChange' | 'onFocus' | 'onBlur'> & CommonInlineEditWrapperProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const inlineEditVisuallyHidden: (id: string, emptiable?: boolean) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';
|
|
3
|
-
|
|
4
|
-
var inlineEditVisuallyHidden = function inlineEditVisuallyHidden(id, emptiable) {
|
|
5
|
-
return jsxs(VisuallyHidden, {
|
|
6
|
-
id: id,
|
|
7
|
-
as: "span",
|
|
8
|
-
children: ["Escape, Enter eller Tab for \xE5 lagre.", ' ', !emptiable && 'Inputfeltet er ikke tømmbar.']
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { inlineEditVisuallyHidden };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const InlineEditInput: import("react").ForwardRefExoticComponent<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "width" | "onChange" | "onFocus" | "onBlur"> & Pick<import("./InlineEdit.types").InlineEditProps, "onChange" | "onFocus" | "onBlur" | "onSetValue" | "emptiable"> & Pick<import("./InlineEdit.types").BaseInlineInputProps, "width" | "error" | "errorMessage" | "hideIcon"> & import("react").RefAttributes<HTMLInputElement>>;
|