@norges-domstoler/dds-components 13.5.0 → 13.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rollupPluginBabelHelpers.js +1 -61
- package/dist/cjs/components/Breadcrumbs/Breadcrumb.tokens.d.ts +1 -1
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/cjs/components/Button/Button.d.ts +1 -1
- package/dist/cjs/components/Button/Button.stories.d.ts +4 -4
- package/dist/cjs/components/Button/Button.tokens.d.ts +1 -1
- package/dist/cjs/components/Button/Button.types.d.ts +2 -2
- package/dist/cjs/components/Card/Card.d.ts +1 -1
- package/dist/cjs/components/Card/CardAccordion/CardAccordion.d.ts +1 -1
- package/dist/cjs/components/Card/CardAccordion/CardAccordion.tokens.d.ts +1 -1
- package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.d.ts +1 -1
- package/dist/cjs/components/Card/CardAccordion/CardAccordionHeader.d.ts +2 -2
- package/dist/cjs/components/Chip/Chip.d.ts +1 -1
- package/dist/cjs/components/Chip/Chip.stories.d.ts +1 -1
- package/dist/cjs/components/Chip/Chip.tokens.d.ts +1 -1
- package/dist/cjs/components/Datepicker/Datepicker.d.ts +1 -1
- package/dist/cjs/components/Datepicker/Datepicker.stories.d.ts +1 -1
- package/dist/cjs/components/DescriptionList/DescriptionList.d.ts +1 -1
- package/dist/cjs/components/DescriptionList/DescriptionList.stories.d.ts +2 -2
- package/dist/cjs/components/DescriptionList/DescriptionListDesc.d.ts +2 -2
- package/dist/cjs/components/DescriptionList/DescriptionListGroup.d.ts +1 -1
- package/dist/cjs/components/Divider/Divider.d.ts +1 -1
- package/dist/cjs/components/Divider/Divider.stories.d.ts +1 -1
- package/dist/cjs/components/Drawer/Drawer.d.ts +1 -1
- package/dist/cjs/components/Drawer/Drawer.stories.d.ts +1 -1
- package/dist/cjs/components/Feedback/CommentComponent.d.ts +13 -0
- package/dist/cjs/components/Feedback/Feedback.d.ts +2 -0
- package/dist/cjs/components/Feedback/Feedback.stories.d.ts +66 -0
- package/dist/cjs/components/Feedback/Feedback.types.d.ts +36 -0
- package/dist/cjs/components/Feedback/FlexContainer.d.ts +6 -0
- package/dist/cjs/components/Feedback/RatingComponent.d.ts +11 -0
- package/dist/cjs/components/Feedback/index.d.ts +2 -0
- package/dist/cjs/components/GlobalMessage/GlobalMessage.d.ts +1 -1
- package/dist/cjs/components/GlobalMessage/GlobalMessage.stories.d.ts +1 -1
- package/dist/cjs/components/GlobalMessage/GlobalMessage.tokens.d.ts +2 -2
- package/dist/cjs/components/Grid/Grid.context.d.ts +1 -1
- package/dist/cjs/components/Grid/Grid.d.ts +2 -2
- package/dist/cjs/components/Grid/GridChild.d.ts +2 -2
- package/dist/cjs/components/InlineEdit/InlineEdit.stories.d.ts +1 -1
- package/dist/cjs/components/InlineEdit/InlineEdit.styles.d.ts +4 -4
- package/dist/cjs/components/InlineEdit/InlineEditInput.stories.d.ts +1 -1
- package/dist/cjs/components/InlineEdit/InlineEditTextArea.stories.d.ts +1 -1
- package/dist/cjs/components/InputMessage/InputMessage.d.ts +1 -1
- package/dist/cjs/components/InputMessage/InputMessage.stories.d.ts +1 -1
- package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +1 -1
- package/dist/cjs/components/InternalHeader/InternalHeader.tokens.d.ts +1 -1
- package/dist/cjs/components/InternalHeader/InternalHeader.types.d.ts +2 -2
- package/dist/cjs/components/List/List.d.ts +2 -2
- package/dist/cjs/components/List/List.stories.d.ts +1 -1
- package/dist/cjs/components/LocalMessage/LocalMessage.d.ts +1 -1
- package/dist/cjs/components/LocalMessage/LocalMessage.stories.d.ts +1 -1
- package/dist/cjs/components/LocalMessage/LocalMessage.tokens.d.ts +2 -2
- package/dist/cjs/components/Modal/Modal.d.ts +1 -1
- package/dist/cjs/components/Modal/Modal.stories.d.ts +1 -1
- package/dist/cjs/components/Modal/ModalBody.d.ts +1 -1
- package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +1 -1
- package/dist/cjs/components/OverflowMenu/OverflowMenu.stories.d.ts +3 -3
- package/dist/cjs/components/OverflowMenu/OverflowMenu.tokens.d.ts +1 -1
- package/dist/cjs/components/OverflowMenu/OverflowMenu.types.d.ts +3 -3
- package/dist/cjs/components/OverflowMenu/OverflowMenuItem.d.ts +2 -2
- package/dist/cjs/components/Pagination/Pagination.d.ts +1 -1
- package/dist/cjs/components/Pagination/Pagination.stories.d.ts +1 -1
- package/dist/cjs/components/Popover/Popover.d.ts +2 -2
- package/dist/cjs/components/Popover/Popover.stories.d.ts +2 -2
- package/dist/cjs/components/ProgressTracker/ProgressTracker.d.ts +1 -1
- package/dist/cjs/components/ProgressTracker/ProgressTracker.stories.d.ts +5 -5
- package/dist/cjs/components/ProgressTracker/ProgressTracker.tokens.d.ts +2 -2
- package/dist/cjs/components/ProgressTracker/ProgressTrackerItem.d.ts +2 -2
- package/dist/cjs/components/ScrollableContainer/ScrollableContainer.d.ts +1 -1
- package/dist/cjs/components/ScrollableContainer/Scrollbar.d.ts +1 -1
- package/dist/cjs/components/Search/Search.d.ts +1 -1
- package/dist/cjs/components/Search/Search.stories.d.ts +2 -2
- package/dist/cjs/components/Search/Search.tokens.d.ts +1 -1
- package/dist/cjs/components/Search/SearchSuggestions.d.ts +1 -1
- package/dist/cjs/components/Select/Select.d.ts +3 -3
- package/dist/cjs/components/Select/Select.styles.d.ts +2 -2
- package/dist/cjs/components/Select/Select.tokens.d.ts +2 -2
- package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/Checkbox.d.ts +1 -1
- package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/Checkbox.stories.d.ts +3 -3
- package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/Checkbox.types.d.ts +2 -2
- package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroup.d.ts +1 -1
- package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroupContext.d.ts +1 -0
- package/dist/{components → cjs/components/SelectionControl}/RadioButton/RadioButton.stories.d.ts +5 -5
- package/dist/{components → cjs/components/SelectionControl}/RadioButton/RadioButton.types.d.ts +1 -1
- package/dist/cjs/components/{RadioButton → SelectionControl/RadioButton}/RadioButtonGroup.d.ts +1 -1
- package/dist/{components → cjs/components/SelectionControl}/RadioButton/RadioButtonGroup.stories.d.ts +2 -2
- package/dist/cjs/components/{RadioButton → SelectionControl/RadioButton}/RadioButtonGroupContext.d.ts +1 -0
- package/dist/{helpers → cjs/components}/SelectionControl/SelectionControl.styles.d.ts +1 -1
- package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +1 -1
- package/dist/cjs/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
- package/dist/cjs/components/Spinner/Spinner.d.ts +2 -2
- package/dist/cjs/components/SplitButton/SplitButton.d.ts +1 -1
- package/dist/cjs/components/Stack/Stack.d.ts +1 -1
- package/dist/cjs/components/Stack/Stack.stories.d.ts +1 -1
- package/dist/cjs/components/Tabs/Tab.d.ts +2 -2
- package/dist/cjs/components/Tabs/TabPanel.d.ts +1 -1
- package/dist/cjs/components/Tabs/Tabs.context.d.ts +1 -1
- package/dist/cjs/components/Tabs/Tabs.d.ts +1 -1
- package/dist/cjs/components/Tabs/Tabs.stories.d.ts +5 -5
- package/dist/cjs/components/Tag/Tag.d.ts +1 -1
- package/dist/cjs/components/Tag/Tag.stories.d.ts +1 -1
- package/dist/cjs/components/Tag/Tag.tokens.d.ts +1 -1
- package/dist/cjs/components/TextArea/TextArea.d.ts +8 -3
- package/dist/cjs/components/TextArea/TextArea.stories.d.ts +1 -1
- package/dist/cjs/components/TextInput/CharCounter.d.ts +1 -1
- package/dist/cjs/components/TextInput/TextInput.d.ts +3 -3
- package/dist/cjs/components/TextInput/TextInput.stories.d.ts +3 -3
- package/dist/cjs/components/TextInput/TextInput.styles.d.ts +4 -4
- package/dist/cjs/components/TextInput/TextInput.types.d.ts +2 -2
- package/dist/cjs/components/ToggleBar/ToggleBar.tokens.d.ts +1 -1
- package/dist/cjs/components/ToggleBar/ToggleBar.types.d.ts +1 -1
- package/dist/cjs/components/ToggleBar/ToggleRadio.d.ts +2 -2
- package/dist/cjs/components/ToggleButton/ToggleButton.d.ts +2 -2
- package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +4 -4
- package/dist/cjs/components/ToggleButton/ToggleButton.tokens.d.ts +1 -1
- package/dist/cjs/components/ToggleButton/ToggleButton.types.d.ts +3 -3
- package/dist/cjs/components/ToggleButton/ToggleButtonGroup.d.ts +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/cjs/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/cjs/dds-core.d.ts +1 -0
- package/dist/cjs/dds-form.d.ts +2 -0
- package/dist/cjs/dds-icons.d.ts +2 -0
- package/dist/cjs/dds-typography.d.ts +2 -0
- package/dist/cjs/index.d.ts +7 -8
- package/dist/cjs/index.js +1314 -4073
- package/dist/cjs/utils/icon.d.ts +3 -0
- package/dist/cjs/utils/renderInputMessage.d.ts +1 -0
- package/dist/components/BackLink/BackLink.js +3 -12
- package/dist/components/Breadcrumbs/Breadcrumb.js +1 -7
- package/dist/components/Breadcrumbs/Breadcrumb.tokens.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +5 -8
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/Button.stories.d.ts +4 -4
- package/dist/components/Button/Button.styles.js +3 -7
- package/dist/components/Button/Button.tokens.d.ts +1 -1
- package/dist/components/Button/Button.tokens.js +1 -2
- package/dist/components/Button/Button.types.d.ts +2 -2
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.js +3 -7
- package/dist/components/Card/CardAccordion/CardAccordion.d.ts +1 -1
- package/dist/components/Card/CardAccordion/CardAccordion.js +1 -1
- package/dist/components/Card/CardAccordion/CardAccordion.tokens.d.ts +1 -1
- package/dist/components/Card/CardAccordion/CardAccordionBody.d.ts +1 -1
- package/dist/components/Card/CardAccordion/CardAccordionBody.js +3 -4
- package/dist/components/Card/CardAccordion/CardAccordionHeader.d.ts +2 -2
- package/dist/components/Card/CardAccordion/CardAccordionHeader.js +2 -20
- package/dist/components/Chip/Chip.d.ts +1 -1
- package/dist/components/Chip/Chip.js +4 -6
- package/dist/components/Chip/Chip.stories.d.ts +1 -1
- package/dist/components/Chip/Chip.tokens.d.ts +1 -1
- package/dist/components/Chip/ChipGroup.js +1 -1
- package/dist/components/Datepicker/Datepicker.d.ts +1 -1
- package/dist/components/Datepicker/Datepicker.js +5 -25
- package/dist/components/Datepicker/Datepicker.stories.d.ts +1 -1
- package/dist/components/DescriptionList/DescriptionList.d.ts +1 -1
- package/dist/components/DescriptionList/DescriptionList.js +1 -6
- package/dist/components/DescriptionList/DescriptionList.stories.d.ts +2 -2
- package/dist/components/DescriptionList/DescriptionListDesc.d.ts +2 -2
- package/dist/components/DescriptionList/DescriptionListDesc.js +2 -2
- package/dist/components/DescriptionList/DescriptionListGroup.d.ts +1 -1
- package/dist/components/DescriptionList/DescriptionListGroup.js +1 -1
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Divider/Divider.stories.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts +1 -1
- package/dist/components/Drawer/Drawer.js +4 -31
- package/dist/components/Drawer/Drawer.stories.d.ts +1 -1
- package/dist/components/EmptyContent/EmptyContent.js +1 -7
- package/dist/components/Feedback/CommentComponent.d.ts +13 -0
- package/dist/components/Feedback/CommentComponent.js +49 -0
- package/dist/components/Feedback/Feedback.d.ts +2 -0
- package/dist/components/Feedback/Feedback.js +97 -0
- package/dist/components/Feedback/Feedback.stories.d.ts +66 -0
- package/dist/components/Feedback/Feedback.types.d.ts +36 -0
- package/dist/components/Feedback/FlexContainer.d.ts +6 -0
- package/dist/components/Feedback/FlexContainer.js +12 -0
- package/dist/components/Feedback/RatingComponent.d.ts +11 -0
- package/dist/components/Feedback/RatingComponent.js +70 -0
- package/dist/components/Feedback/index.d.ts +2 -0
- package/dist/components/FileUploader/File.js +2 -5
- package/dist/components/FileUploader/FileUploader.js +3 -12
- package/dist/components/GlobalMessage/GlobalMessage.d.ts +1 -1
- package/dist/components/GlobalMessage/GlobalMessage.js +4 -13
- package/dist/components/GlobalMessage/GlobalMessage.stories.d.ts +1 -1
- package/dist/components/GlobalMessage/GlobalMessage.tokens.d.ts +2 -2
- package/dist/components/GlobalMessage/GlobalMessage.tokens.js +1 -6
- package/dist/components/Grid/Grid.context.d.ts +1 -1
- package/dist/components/Grid/Grid.context.js +1 -3
- package/dist/components/Grid/Grid.d.ts +2 -2
- package/dist/components/Grid/Grid.js +1 -14
- package/dist/components/Grid/Grid.tokens.js +1 -4
- package/dist/components/Grid/GridChild.d.ts +2 -2
- package/dist/components/Grid/GridChild.js +1 -10
- package/dist/components/InlineEdit/InlineEdit.js +1 -5
- package/dist/components/InlineEdit/InlineEdit.stories.d.ts +1 -1
- package/dist/components/InlineEdit/InlineEdit.styles.d.ts +4 -4
- package/dist/components/InlineEdit/InlineEdit.styles.js +1 -13
- package/dist/components/InlineEdit/InlineEditInput.js +1 -4
- package/dist/components/InlineEdit/InlineEditInput.stories.d.ts +1 -1
- package/dist/components/InlineEdit/InlineEditTextArea.js +1 -4
- package/dist/components/InlineEdit/InlineEditTextArea.stories.d.ts +1 -1
- package/dist/components/InlineEdit/InlineInput.js +4 -16
- package/dist/components/InlineEdit/InlineTextArea.js +4 -16
- package/dist/components/InputMessage/InputMessage.d.ts +1 -1
- package/dist/components/InputMessage/InputMessage.js +3 -11
- package/dist/components/InputMessage/InputMessage.stories.d.ts +1 -1
- package/dist/components/InternalHeader/InternalHeader.js +3 -11
- package/dist/components/InternalHeader/InternalHeader.styles.d.ts +1 -1
- package/dist/components/InternalHeader/InternalHeader.styles.js +1 -5
- package/dist/components/InternalHeader/InternalHeader.tokens.d.ts +1 -1
- package/dist/components/InternalHeader/InternalHeader.types.d.ts +2 -2
- package/dist/components/InternalHeader/NavigationItem.js +3 -7
- package/dist/components/List/List.d.ts +2 -2
- package/dist/components/List/List.js +5 -10
- package/dist/components/List/List.stories.d.ts +1 -1
- package/dist/components/LocalMessage/LocalMessage.d.ts +1 -1
- package/dist/components/LocalMessage/LocalMessage.js +3 -17
- package/dist/components/LocalMessage/LocalMessage.stories.d.ts +1 -1
- package/dist/components/LocalMessage/LocalMessage.tokens.d.ts +2 -2
- package/dist/components/LocalMessage/LocalMessage.tokens.js +1 -8
- package/dist/{helpers → components/Modal}/Backdrop/Backdrop.js +2 -2
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.js +6 -32
- package/dist/components/Modal/Modal.stories.d.ts +1 -1
- package/dist/components/Modal/ModalBody.d.ts +1 -1
- package/dist/components/Modal/ModalBody.js +1 -1
- package/dist/components/OverflowMenu/OverflowMenu.d.ts +1 -1
- package/dist/components/OverflowMenu/OverflowMenu.js +2 -16
- package/dist/components/OverflowMenu/OverflowMenu.stories.d.ts +3 -3
- package/dist/components/OverflowMenu/OverflowMenu.tokens.d.ts +1 -1
- package/dist/components/OverflowMenu/OverflowMenu.tokens.js +1 -2
- package/dist/components/OverflowMenu/OverflowMenu.types.d.ts +3 -3
- package/dist/components/OverflowMenu/OverflowMenuItem.d.ts +2 -2
- package/dist/components/OverflowMenu/OverflowMenuItem.js +4 -14
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/Pagination.js +3 -15
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +2 -2
- package/dist/components/Popover/Popover.js +4 -31
- package/dist/components/Popover/Popover.stories.d.ts +2 -2
- package/dist/components/Popover/PopoverGroup.js +1 -4
- package/dist/components/ProgressTracker/ProgressTracker.d.ts +1 -1
- package/dist/components/ProgressTracker/ProgressTracker.js +1 -1
- package/dist/components/ProgressTracker/ProgressTracker.stories.d.ts +5 -5
- package/dist/components/ProgressTracker/ProgressTracker.tokens.d.ts +2 -2
- package/dist/components/ProgressTracker/ProgressTrackerItem.d.ts +2 -2
- package/dist/components/ProgressTracker/ProgressTrackerItem.js +4 -11
- package/dist/components/ScrollableContainer/ScrollableContainer.d.ts +1 -1
- package/dist/components/ScrollableContainer/ScrollableContainer.js +2 -6
- package/dist/components/ScrollableContainer/Scrollbar.d.ts +1 -1
- package/dist/components/ScrollableContainer/Scrollbar.js +1 -1
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Search/Search.js +6 -26
- package/dist/components/Search/Search.stories.d.ts +2 -2
- package/dist/components/Search/Search.tokens.d.ts +1 -1
- package/dist/components/Search/SearchAutocompleteWrapper.js +1 -6
- package/dist/components/Search/SearchSuggestions.d.ts +1 -1
- package/dist/components/Search/SearchSuggestions.js +3 -30
- package/dist/components/Select/Select.d.ts +3 -3
- package/dist/components/Select/Select.js +5 -16
- package/dist/components/Select/Select.styles.d.ts +2 -2
- package/dist/components/Select/Select.styles.js +5 -8
- package/dist/components/Select/Select.tokens.d.ts +2 -2
- package/dist/components/Select/Select.tokens.js +1 -13
- package/dist/components/{Checkbox → SelectionControl/Checkbox}/Checkbox.d.ts +1 -1
- package/dist/components/{Checkbox → SelectionControl/Checkbox}/Checkbox.js +4 -22
- package/dist/components/{Checkbox → SelectionControl/Checkbox}/Checkbox.stories.d.ts +3 -3
- package/dist/components/{Checkbox → SelectionControl/Checkbox}/Checkbox.types.d.ts +2 -2
- package/dist/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroup.d.ts +1 -1
- package/dist/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroup.js +4 -22
- package/dist/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroupContext.d.ts +1 -0
- package/dist/components/{RadioButton → SelectionControl/RadioButton}/RadioButton.js +4 -21
- package/dist/{cjs/components → components/SelectionControl}/RadioButton/RadioButton.stories.d.ts +5 -5
- package/dist/{cjs/components → components/SelectionControl}/RadioButton/RadioButton.types.d.ts +1 -1
- package/dist/components/{RadioButton → SelectionControl/RadioButton}/RadioButtonGroup.d.ts +1 -1
- package/dist/components/{RadioButton → SelectionControl/RadioButton}/RadioButtonGroup.js +5 -23
- package/dist/{cjs/components → components/SelectionControl}/RadioButton/RadioButtonGroup.stories.d.ts +2 -2
- package/dist/components/{RadioButton → SelectionControl/RadioButton}/RadioButtonGroupContext.d.ts +1 -0
- package/dist/{cjs/helpers → components}/SelectionControl/SelectionControl.styles.d.ts +1 -1
- package/dist/{helpers → components}/SelectionControl/SelectionControl.styles.js +5 -9
- package/dist/{helpers → components}/SelectionControl/SelectionControl.tokens.js +1 -6
- package/dist/components/SkipToContent/SkipToContent.d.ts +1 -1
- package/dist/components/SkipToContent/SkipToContent.js +3 -7
- package/dist/components/SkipToContent/SkipToContent.stories.d.ts +1 -1
- package/dist/components/Spinner/Spinner.d.ts +2 -2
- package/dist/components/Spinner/Spinner.js +1 -2
- package/dist/components/SplitButton/SplitButton.d.ts +1 -1
- package/dist/components/SplitButton/SplitButton.js +1 -4
- package/dist/components/Stack/Stack.d.ts +1 -1
- package/dist/components/Stack/Stack.js +1 -1
- package/dist/components/Stack/Stack.stories.d.ts +1 -1
- package/dist/components/Table/SortCell.js +4 -13
- package/dist/components/Table/Table.js +1 -5
- package/dist/components/Table/Table.styles.js +2 -6
- package/dist/components/Table/collapsible/CollapsibleRow.js +2 -18
- package/dist/components/Tabs/Tab.d.ts +2 -2
- package/dist/components/Tabs/Tab.js +4 -15
- package/dist/components/Tabs/TabList.js +2 -12
- package/dist/components/Tabs/TabPanel.d.ts +1 -1
- package/dist/components/Tabs/TabPanel.js +2 -6
- package/dist/components/Tabs/TabPanels.js +1 -4
- package/dist/components/Tabs/Tabs.context.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.stories.d.ts +5 -5
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.js +3 -4
- package/dist/components/Tag/Tag.stories.d.ts +1 -1
- package/dist/components/Tag/Tag.tokens.d.ts +1 -1
- package/dist/components/TextArea/TextArea.d.ts +8 -3
- package/dist/components/TextArea/TextArea.js +4 -16
- package/dist/components/TextArea/TextArea.stories.d.ts +1 -1
- package/dist/components/TextInput/CharCounter.d.ts +1 -1
- package/dist/components/TextInput/CharCounter.js +2 -8
- package/dist/components/TextInput/TextInput.d.ts +3 -3
- package/dist/components/TextInput/TextInput.js +7 -21
- package/dist/components/TextInput/TextInput.stories.d.ts +3 -3
- package/dist/components/TextInput/TextInput.styles.d.ts +4 -4
- package/dist/components/TextInput/TextInput.styles.js +3 -15
- package/dist/components/TextInput/TextInput.types.d.ts +2 -2
- package/dist/components/ToggleBar/ToggleBar.js +2 -15
- package/dist/components/ToggleBar/ToggleBar.tokens.d.ts +1 -1
- package/dist/components/ToggleBar/ToggleBar.tokens.js +1 -2
- package/dist/components/ToggleBar/ToggleBar.types.d.ts +1 -1
- package/dist/components/ToggleBar/ToggleRadio.d.ts +2 -2
- package/dist/components/ToggleBar/ToggleRadio.js +3 -13
- package/dist/components/ToggleBar/ToggleRadio.styles.js +3 -20
- package/dist/components/ToggleButton/ToggleButton.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.js +5 -20
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +4 -4
- package/dist/components/ToggleButton/ToggleButton.tokens.d.ts +1 -1
- package/dist/components/ToggleButton/ToggleButton.tokens.js +1 -2
- package/dist/components/ToggleButton/ToggleButton.types.d.ts +3 -3
- package/dist/components/ToggleButton/ToggleButtonGroup.d.ts +1 -1
- package/dist/components/ToggleButton/ToggleButtonGroup.js +2 -8
- package/dist/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.js +1 -7
- package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.styles.js +2 -20
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -1
- package/dist/dds-core.d.ts +1 -0
- package/dist/dds-form.d.ts +2 -0
- package/dist/dds-icons.d.ts +2 -0
- package/dist/dds-typography.d.ts +2 -0
- package/dist/index.d.ts +7 -8
- package/dist/index.js +9 -172
- package/dist/utils/icon.d.ts +3 -0
- package/dist/utils/icon.js +12 -0
- package/dist/utils/renderInputMessage.d.ts +1 -0
- package/dist/utils/renderInputMessage.js +18 -0
- package/package.json +5 -1
- package/dist/assets/svg/openExternal.svg.js +0 -4
- package/dist/cjs/components/Icon/Icon.d.ts +0 -17
- package/dist/cjs/components/Icon/Icon.stories.d.ts +0 -21
- package/dist/cjs/components/Icon/index.d.ts +0 -1
- package/dist/cjs/components/Typography/Caption/Caption.d.ts +0 -11
- package/dist/cjs/components/Typography/Caption/Caption.stories.d.ts +0 -29
- package/dist/cjs/components/Typography/Caption/index.d.ts +0 -1
- package/dist/cjs/components/Typography/Heading/Heading.d.ts +0 -22
- package/dist/cjs/components/Typography/Heading/Heading.stories.d.ts +0 -38
- package/dist/cjs/components/Typography/Heading/index.d.ts +0 -1
- package/dist/cjs/components/Typography/Label/Label.d.ts +0 -17
- package/dist/cjs/components/Typography/Label/Label.stories.d.ts +0 -33
- package/dist/cjs/components/Typography/Label/index.d.ts +0 -1
- package/dist/cjs/components/Typography/Legend/Legend.d.ts +0 -11
- package/dist/cjs/components/Typography/Legend/Legend.stories.d.ts +0 -29
- package/dist/cjs/components/Typography/Legend/index.d.ts +0 -1
- package/dist/cjs/components/Typography/Link/Link.d.ts +0 -23
- package/dist/cjs/components/Typography/Link/Link.stories.d.ts +0 -48
- package/dist/cjs/components/Typography/Link/index.d.ts +0 -1
- package/dist/cjs/components/Typography/Paragraph/Paragraph.d.ts +0 -17
- package/dist/cjs/components/Typography/Paragraph/Paragraph.stories.d.ts +0 -37
- package/dist/cjs/components/Typography/Paragraph/index.d.ts +0 -1
- package/dist/cjs/components/Typography/Typography/Typography.d.ts +0 -25
- package/dist/cjs/components/Typography/Typography/Typography.stories.d.ts +0 -64
- package/dist/cjs/components/Typography/Typography/Typography.types.d.ts +0 -36
- package/dist/cjs/components/Typography/Typography/index.d.ts +0 -2
- package/dist/cjs/components/Typography/Typography.tokens.d.ts +0 -448
- package/dist/cjs/components/Typography/Typography.utils.d.ts +0 -203
- package/dist/cjs/components/Typography/index.d.ts +0 -7
- package/dist/cjs/components/Typography/stories/Examples.stories.d.ts +0 -5
- package/dist/cjs/components/Typography/stories/TypographyComponents.stories.d.ts +0 -42
- package/dist/cjs/components/Typography/stories/TypographyTypes.stories.d.ts +0 -11
- package/dist/cjs/helpers/Chevron/AnimatedChevronUpDown.d.ts +0 -8
- package/dist/cjs/helpers/Chevron/AnimatedChevronUpDown.styles.d.ts +0 -7
- package/dist/cjs/helpers/Chevron/index.d.ts +0 -1
- package/dist/cjs/helpers/HiddenInput/HiddenInput.d.ts +0 -1
- package/dist/cjs/helpers/HiddenInput/index.d.ts +0 -1
- package/dist/cjs/helpers/Input/Input.styles.d.ts +0 -16
- package/dist/cjs/helpers/Input/Input.tokens.d.ts +0 -38
- package/dist/cjs/helpers/Input/Input.types.d.ts +0 -28
- package/dist/cjs/helpers/Input/Input.utils.d.ts +0 -5
- package/dist/cjs/helpers/Input/index.d.ts +0 -4
- package/dist/cjs/helpers/Paper/Paper.d.ts +0 -8
- package/dist/cjs/helpers/Paper/Paper.tokens.d.ts +0 -7
- package/dist/cjs/helpers/Paper/index.d.ts +0 -1
- package/dist/cjs/helpers/RequiredMarker/RequiredMarker.d.ts +0 -1
- package/dist/cjs/helpers/RequiredMarker/index.d.ts +0 -1
- package/dist/cjs/helpers/ScreenSize/ScreenSize.utils.d.ts +0 -7
- package/dist/cjs/helpers/ScreenSize/index.d.ts +0 -1
- package/dist/cjs/helpers/SelectionControl/index.d.ts +0 -3
- package/dist/cjs/helpers/TextOverflowEllipsis/TextOverflowEllipsis.d.ts +0 -2
- package/dist/cjs/helpers/TextOverflowEllipsis/index.d.ts +0 -1
- package/dist/cjs/helpers/index.d.ts +0 -7
- package/dist/cjs/helpers/styling/danger.d.ts +0 -4
- package/dist/cjs/helpers/styling/focus.d.ts +0 -9
- package/dist/cjs/helpers/styling/focusVisible.d.ts +0 -37
- package/dist/cjs/helpers/styling/hideInput.d.ts +0 -7
- package/dist/cjs/helpers/styling/hover.d.ts +0 -12
- package/dist/cjs/helpers/styling/index.d.ts +0 -9
- package/dist/cjs/helpers/styling/normalize.d.ts +0 -5
- package/dist/cjs/helpers/styling/removeButtonStyling.d.ts +0 -9
- package/dist/cjs/helpers/styling/removeListStyling.d.ts +0 -5
- package/dist/cjs/helpers/styling/selection.d.ts +0 -4
- package/dist/cjs/helpers/styling/visibilityTransition.d.ts +0 -1
- package/dist/cjs/hooks/index.d.ts +0 -9
- package/dist/cjs/hooks/useCombinedRefs.d.ts +0 -20
- package/dist/cjs/hooks/useFloatPosition.d.ts +0 -48
- package/dist/cjs/hooks/useFocusTrap.d.ts +0 -16
- package/dist/cjs/hooks/useIsMounted.d.ts +0 -2
- package/dist/cjs/hooks/useMountTransition.d.ts +0 -33
- package/dist/cjs/hooks/useOnClickOutside.d.ts +0 -14
- package/dist/cjs/hooks/useOnKeyDown.d.ts +0 -14
- package/dist/cjs/hooks/useReturnFocusOnBlur.d.ts +0 -31
- package/dist/cjs/hooks/useRoveFocus.d.ts +0 -28
- package/dist/cjs/hooks/useScreenSize.d.ts +0 -20
- package/dist/cjs/icons/icons.stories.d.ts +0 -5
- package/dist/cjs/icons/tsx/agreement.d.ts +0 -2
- package/dist/cjs/icons/tsx/apps.d.ts +0 -2
- package/dist/cjs/icons/tsx/archive.d.ts +0 -2
- package/dist/cjs/icons/tsx/arrowDown.d.ts +0 -2
- package/dist/cjs/icons/tsx/arrowLeft.d.ts +0 -2
- package/dist/cjs/icons/tsx/arrowRight.d.ts +0 -2
- package/dist/cjs/icons/tsx/arrowUp.d.ts +0 -2
- package/dist/cjs/icons/tsx/attachment.d.ts +0 -2
- package/dist/cjs/icons/tsx/barChart.d.ts +0 -2
- package/dist/cjs/icons/tsx/barChartBoxed.d.ts +0 -2
- package/dist/cjs/icons/tsx/block.d.ts +0 -2
- package/dist/cjs/icons/tsx/book.d.ts +0 -2
- package/dist/cjs/icons/tsx/build.d.ts +0 -2
- package/dist/cjs/icons/tsx/buildCircled.d.ts +0 -2
- package/dist/cjs/icons/tsx/calendar.d.ts +0 -2
- package/dist/cjs/icons/tsx/calendarMonth.d.ts +0 -2
- package/dist/cjs/icons/tsx/calendarViewDay.d.ts +0 -2
- package/dist/cjs/icons/tsx/calendarViewMonth.d.ts +0 -2
- package/dist/cjs/icons/tsx/calendarViewWeek.d.ts +0 -2
- package/dist/cjs/icons/tsx/call.d.ts +0 -2
- package/dist/cjs/icons/tsx/caring.d.ts +0 -2
- package/dist/cjs/icons/tsx/chat.d.ts +0 -2
- package/dist/cjs/icons/tsx/check.d.ts +0 -2
- package/dist/cjs/icons/tsx/checkCircled.d.ts +0 -2
- package/dist/cjs/icons/tsx/checklist.d.ts +0 -2
- package/dist/cjs/icons/tsx/chevronDown.d.ts +0 -2
- package/dist/cjs/icons/tsx/chevronFirst.d.ts +0 -2
- package/dist/cjs/icons/tsx/chevronLargeLeft.d.ts +0 -2
- package/dist/cjs/icons/tsx/chevronLargeRight.d.ts +0 -2
- package/dist/cjs/icons/tsx/chevronLast.d.ts +0 -2
- package/dist/cjs/icons/tsx/chevronLeft.d.ts +0 -2
- package/dist/cjs/icons/tsx/chevronRight.d.ts +0 -2
- package/dist/cjs/icons/tsx/chevronUp.d.ts +0 -2
- package/dist/cjs/icons/tsx/close.d.ts +0 -2
- package/dist/cjs/icons/tsx/closeCircled.d.ts +0 -2
- package/dist/cjs/icons/tsx/closeSmall.d.ts +0 -2
- package/dist/cjs/icons/tsx/cloud.d.ts +0 -2
- package/dist/cjs/icons/tsx/collapse.d.ts +0 -2
- package/dist/cjs/icons/tsx/comment.d.ts +0 -2
- package/dist/cjs/icons/tsx/copy.d.ts +0 -2
- package/dist/cjs/icons/tsx/court.d.ts +0 -2
- package/dist/cjs/icons/tsx/dateRange.d.ts +0 -2
- package/dist/cjs/icons/tsx/deaths.d.ts +0 -2
- package/dist/cjs/icons/tsx/doubleChevronLeft.d.ts +0 -2
- package/dist/cjs/icons/tsx/doubleChevronRight.d.ts +0 -2
- package/dist/cjs/icons/tsx/download.d.ts +0 -2
- package/dist/cjs/icons/tsx/downloadDone.d.ts +0 -2
- package/dist/cjs/icons/tsx/dragHandle.d.ts +0 -2
- package/dist/cjs/icons/tsx/edit.d.ts +0 -2
- package/dist/cjs/icons/tsx/error.d.ts +0 -2
- package/dist/cjs/icons/tsx/exclaim.d.ts +0 -2
- package/dist/cjs/icons/tsx/expand.d.ts +0 -2
- package/dist/cjs/icons/tsx/facebook.d.ts +0 -2
- package/dist/cjs/icons/tsx/family.d.ts +0 -2
- package/dist/cjs/icons/tsx/feedback.d.ts +0 -2
- package/dist/cjs/icons/tsx/file.d.ts +0 -2
- package/dist/cjs/icons/tsx/fileAdd.d.ts +0 -2
- package/dist/cjs/icons/tsx/fileText.d.ts +0 -2
- package/dist/cjs/icons/tsx/filter.d.ts +0 -2
- package/dist/cjs/icons/tsx/filterList.d.ts +0 -2
- package/dist/cjs/icons/tsx/filterListOff.d.ts +0 -2
- package/dist/cjs/icons/tsx/filterOff.d.ts +0 -2
- package/dist/cjs/icons/tsx/findInPage.d.ts +0 -2
- package/dist/cjs/icons/tsx/folder.d.ts +0 -2
- package/dist/cjs/icons/tsx/folderAdd.d.ts +0 -2
- package/dist/cjs/icons/tsx/fullsceenExit.d.ts +0 -2
- package/dist/cjs/icons/tsx/fullscreen.d.ts +0 -2
- package/dist/cjs/icons/tsx/gavel.d.ts +0 -2
- package/dist/cjs/icons/tsx/help.d.ts +0 -2
- package/dist/cjs/icons/tsx/helpFilled.d.ts +0 -2
- package/dist/cjs/icons/tsx/home.d.ts +0 -2
- package/dist/cjs/icons/tsx/hourglassBottom.d.ts +0 -2
- package/dist/cjs/icons/tsx/hourglassDisabled.d.ts +0 -2
- package/dist/cjs/icons/tsx/hourglassEmpty.d.ts +0 -2
- package/dist/cjs/icons/tsx/hourglassFull.d.ts +0 -2
- package/dist/cjs/icons/tsx/hourglassTop.d.ts +0 -2
- package/dist/cjs/icons/tsx/image.d.ts +0 -2
- package/dist/cjs/icons/tsx/index.d.ts +0 -149
- package/dist/cjs/icons/tsx/info.d.ts +0 -2
- package/dist/cjs/icons/tsx/instagram.d.ts +0 -2
- package/dist/cjs/icons/tsx/jordskifterett.d.ts +0 -2
- package/dist/cjs/icons/tsx/key.d.ts +0 -2
- package/dist/cjs/icons/tsx/lagmannsrett.d.ts +0 -2
- package/dist/cjs/icons/tsx/language.d.ts +0 -2
- package/dist/cjs/icons/tsx/libraryAdd.d.ts +0 -2
- package/dist/cjs/icons/tsx/lineChart.d.ts +0 -2
- package/dist/cjs/icons/tsx/link.d.ts +0 -2
- package/dist/cjs/icons/tsx/linkOff.d.ts +0 -2
- package/dist/cjs/icons/tsx/linkedIn.d.ts +0 -2
- package/dist/cjs/icons/tsx/list.d.ts +0 -2
- package/dist/cjs/icons/tsx/listAlt.d.ts +0 -2
- package/dist/cjs/icons/tsx/location.d.ts +0 -2
- package/dist/cjs/icons/tsx/lock.d.ts +0 -2
- package/dist/cjs/icons/tsx/lockOpen.d.ts +0 -2
- package/dist/cjs/icons/tsx/login.d.ts +0 -2
- package/dist/cjs/icons/tsx/logout.d.ts +0 -2
- package/dist/cjs/icons/tsx/mail.d.ts +0 -2
- package/dist/cjs/icons/tsx/mailOpen.d.ts +0 -2
- package/dist/cjs/icons/tsx/menu.d.ts +0 -2
- package/dist/cjs/icons/tsx/minus.d.ts +0 -2
- package/dist/cjs/icons/tsx/minusCircled.d.ts +0 -2
- package/dist/cjs/icons/tsx/moreHorizontal.d.ts +0 -2
- package/dist/cjs/icons/tsx/moreVertical.d.ts +0 -2
- package/dist/cjs/icons/tsx/notarial.d.ts +0 -2
- package/dist/cjs/icons/tsx/notifications.d.ts +0 -2
- package/dist/cjs/icons/tsx/notificationsOff.d.ts +0 -2
- package/dist/cjs/icons/tsx/onlineMeeting.d.ts +0 -2
- package/dist/cjs/icons/tsx/openExternal.d.ts +0 -2
- package/dist/cjs/icons/tsx/payout.d.ts +0 -2
- package/dist/cjs/icons/tsx/pdf.d.ts +0 -2
- package/dist/cjs/icons/tsx/person.d.ts +0 -2
- package/dist/cjs/icons/tsx/personAdd.d.ts +0 -2
- package/dist/cjs/icons/tsx/pin.d.ts +0 -2
- package/dist/cjs/icons/tsx/plus.d.ts +0 -2
- package/dist/cjs/icons/tsx/plusCircled.d.ts +0 -2
- package/dist/cjs/icons/tsx/print.d.ts +0 -2
- package/dist/cjs/icons/tsx/property.d.ts +0 -2
- package/dist/cjs/icons/tsx/publish.d.ts +0 -2
- package/dist/cjs/icons/tsx/questionAnswer.d.ts +0 -2
- package/dist/cjs/icons/tsx/receipt.d.ts +0 -2
- package/dist/cjs/icons/tsx/redo.d.ts +0 -2
- package/dist/cjs/icons/tsx/refresh.d.ts +0 -2
- package/dist/cjs/icons/tsx/replay.d.ts +0 -2
- package/dist/cjs/icons/tsx/search.d.ts +0 -2
- package/dist/cjs/icons/tsx/settings.d.ts +0 -2
- package/dist/cjs/icons/tsx/sms.d.ts +0 -2
- package/dist/cjs/icons/tsx/star.d.ts +0 -2
- package/dist/cjs/icons/tsx/starFilled.d.ts +0 -2
- package/dist/cjs/icons/tsx/starHalfFilled.d.ts +0 -2
- package/dist/cjs/icons/tsx/sync.d.ts +0 -2
- package/dist/cjs/icons/tsx/thumbdown.d.ts +0 -2
- package/dist/cjs/icons/tsx/thumbdownFilled.d.ts +0 -2
- package/dist/cjs/icons/tsx/thumbup.d.ts +0 -2
- package/dist/cjs/icons/tsx/thumbupFilled.d.ts +0 -2
- package/dist/cjs/icons/tsx/time.d.ts +0 -2
- package/dist/cjs/icons/tsx/tingrett.d.ts +0 -2
- package/dist/cjs/icons/tsx/tip.d.ts +0 -2
- package/dist/cjs/icons/tsx/trash.d.ts +0 -2
- package/dist/cjs/icons/tsx/trendingDown.d.ts +0 -2
- package/dist/cjs/icons/tsx/trendingUp.d.ts +0 -2
- package/dist/cjs/icons/tsx/twitter.d.ts +0 -2
- package/dist/cjs/icons/tsx/undo.d.ts +0 -2
- package/dist/cjs/icons/tsx/unfoldLess.d.ts +0 -2
- package/dist/cjs/icons/tsx/unfoldMore.d.ts +0 -2
- package/dist/cjs/icons/tsx/upload.d.ts +0 -2
- package/dist/cjs/icons/tsx/visibilityOff.d.ts +0 -2
- package/dist/cjs/icons/tsx/visibilityOn.d.ts +0 -2
- package/dist/cjs/icons/tsx/warning.d.ts +0 -2
- package/dist/cjs/icons/tsx/zoomIn.d.ts +0 -2
- package/dist/cjs/icons/tsx/zoomOut.d.ts +0 -2
- package/dist/cjs/icons/utils/StyledSvg.d.ts +0 -4
- package/dist/cjs/icons/utils/SvgWrapper.d.ts +0 -2
- package/dist/cjs/icons/utils/index.d.ts +0 -2
- package/dist/cjs/icons/utils/propTypes.d.ts +0 -5
- package/dist/cjs/types/BaseComponentProps.d.ts +0 -58
- package/dist/cjs/types/CheckboxPickedHTMLAttributes.d.ts +0 -2
- package/dist/cjs/types/Direction.d.ts +0 -1
- package/dist/cjs/types/index.d.ts +0 -4
- package/dist/cjs/types/utils.d.ts +0 -15
- package/dist/cjs/utils/color.d.ts +0 -30
- package/dist/cjs/utils/combineHandlers.d.ts +0 -1
- package/dist/cjs/utils/getFocusableElements.d.ts +0 -2
- package/dist/cjs/utils/getScrollbarSize.d.ts +0 -1
- package/dist/cjs/utils/idGenerator.d.ts +0 -2
- package/dist/cjs/utils/index.d.ts +0 -7
- package/dist/cjs/utils/searchFilter.d.ts +0 -2
- package/dist/cjs/utils/text.d.ts +0 -2
- package/dist/components/Icon/Icon.d.ts +0 -17
- package/dist/components/Icon/Icon.js +0 -44
- package/dist/components/Icon/Icon.stories.d.ts +0 -21
- package/dist/components/Icon/index.d.ts +0 -1
- package/dist/components/Typography/Caption/Caption.d.ts +0 -11
- package/dist/components/Typography/Caption/Caption.js +0 -22
- package/dist/components/Typography/Caption/Caption.stories.d.ts +0 -29
- package/dist/components/Typography/Caption/index.d.ts +0 -1
- package/dist/components/Typography/Heading/Heading.d.ts +0 -22
- package/dist/components/Typography/Heading/Heading.js +0 -48
- package/dist/components/Typography/Heading/Heading.stories.d.ts +0 -38
- package/dist/components/Typography/Heading/index.d.ts +0 -1
- package/dist/components/Typography/Label/Label.d.ts +0 -17
- package/dist/components/Typography/Label/Label.js +0 -33
- package/dist/components/Typography/Label/Label.stories.d.ts +0 -33
- package/dist/components/Typography/Label/index.d.ts +0 -1
- package/dist/components/Typography/Legend/Legend.d.ts +0 -11
- package/dist/components/Typography/Legend/Legend.js +0 -22
- package/dist/components/Typography/Legend/Legend.stories.d.ts +0 -29
- package/dist/components/Typography/Legend/index.d.ts +0 -1
- package/dist/components/Typography/Link/Link.d.ts +0 -23
- package/dist/components/Typography/Link/Link.js +0 -39
- package/dist/components/Typography/Link/Link.stories.d.ts +0 -48
- package/dist/components/Typography/Link/index.d.ts +0 -1
- package/dist/components/Typography/Paragraph/Paragraph.d.ts +0 -17
- package/dist/components/Typography/Paragraph/Paragraph.js +0 -25
- package/dist/components/Typography/Paragraph/Paragraph.stories.d.ts +0 -37
- package/dist/components/Typography/Paragraph/index.d.ts +0 -1
- package/dist/components/Typography/Typography/Typography.d.ts +0 -25
- package/dist/components/Typography/Typography/Typography.js +0 -86
- package/dist/components/Typography/Typography/Typography.stories.d.ts +0 -64
- package/dist/components/Typography/Typography/Typography.types.d.ts +0 -36
- package/dist/components/Typography/Typography/index.d.ts +0 -2
- package/dist/components/Typography/Typography.tokens.d.ts +0 -448
- package/dist/components/Typography/Typography.tokens.js +0 -314
- package/dist/components/Typography/Typography.utils.d.ts +0 -203
- package/dist/components/Typography/Typography.utils.js +0 -69
- package/dist/components/Typography/index.d.ts +0 -7
- package/dist/components/Typography/stories/Examples.stories.d.ts +0 -5
- package/dist/components/Typography/stories/TypographyComponents.stories.d.ts +0 -42
- package/dist/components/Typography/stories/TypographyTypes.stories.d.ts +0 -11
- package/dist/helpers/Chevron/AnimatedChevronUpDown.d.ts +0 -8
- package/dist/helpers/Chevron/AnimatedChevronUpDown.js +0 -31
- package/dist/helpers/Chevron/AnimatedChevronUpDown.styles.d.ts +0 -7
- package/dist/helpers/Chevron/AnimatedChevronUpDown.styles.js +0 -29
- package/dist/helpers/Chevron/index.d.ts +0 -1
- package/dist/helpers/HiddenInput/HiddenInput.d.ts +0 -1
- package/dist/helpers/HiddenInput/HiddenInput.js +0 -8
- package/dist/helpers/HiddenInput/index.d.ts +0 -1
- package/dist/helpers/Input/Input.styles.d.ts +0 -16
- package/dist/helpers/Input/Input.styles.js +0 -51
- package/dist/helpers/Input/Input.tokens.d.ts +0 -38
- package/dist/helpers/Input/Input.tokens.js +0 -51
- package/dist/helpers/Input/Input.types.d.ts +0 -28
- package/dist/helpers/Input/Input.utils.d.ts +0 -5
- package/dist/helpers/Input/Input.utils.js +0 -37
- package/dist/helpers/Input/index.d.ts +0 -4
- package/dist/helpers/Paper/Paper.d.ts +0 -8
- package/dist/helpers/Paper/Paper.js +0 -43
- package/dist/helpers/Paper/Paper.tokens.d.ts +0 -7
- package/dist/helpers/Paper/Paper.tokens.js +0 -15
- package/dist/helpers/Paper/index.d.ts +0 -1
- package/dist/helpers/RequiredMarker/RequiredMarker.d.ts +0 -1
- package/dist/helpers/RequiredMarker/RequiredMarker.js +0 -15
- package/dist/helpers/RequiredMarker/index.d.ts +0 -1
- package/dist/helpers/ScreenSize/ScreenSize.utils.d.ts +0 -7
- package/dist/helpers/ScreenSize/ScreenSize.utils.js +0 -21
- package/dist/helpers/ScreenSize/index.d.ts +0 -1
- package/dist/helpers/SelectionControl/index.d.ts +0 -3
- package/dist/helpers/TextOverflowEllipsis/TextOverflowEllipsis.d.ts +0 -2
- package/dist/helpers/TextOverflowEllipsis/TextOverflowEllipsis.js +0 -12
- package/dist/helpers/TextOverflowEllipsis/index.d.ts +0 -1
- package/dist/helpers/index.d.ts +0 -7
- package/dist/helpers/styling/danger.d.ts +0 -4
- package/dist/helpers/styling/danger.js +0 -9
- package/dist/helpers/styling/focus.d.ts +0 -9
- package/dist/helpers/styling/focus.js +0 -14
- package/dist/helpers/styling/focusVisible.d.ts +0 -37
- package/dist/helpers/styling/focusVisible.js +0 -44
- package/dist/helpers/styling/hideInput.d.ts +0 -7
- package/dist/helpers/styling/hover.d.ts +0 -12
- package/dist/helpers/styling/hover.js +0 -18
- package/dist/helpers/styling/index.d.ts +0 -9
- package/dist/helpers/styling/normalize.d.ts +0 -5
- package/dist/helpers/styling/normalize.js +0 -6
- package/dist/helpers/styling/removeButtonStyling.d.ts +0 -9
- package/dist/helpers/styling/removeButtonStyling.js +0 -11
- package/dist/helpers/styling/removeListStyling.d.ts +0 -5
- package/dist/helpers/styling/removeListStyling.js +0 -7
- package/dist/helpers/styling/selection.d.ts +0 -4
- package/dist/helpers/styling/selection.js +0 -9
- package/dist/helpers/styling/visibilityTransition.d.ts +0 -1
- package/dist/helpers/styling/visibilityTransition.js +0 -7
- package/dist/hooks/index.d.ts +0 -9
- package/dist/hooks/useCombinedRefs.d.ts +0 -20
- package/dist/hooks/useCombinedRefs.js +0 -33
- package/dist/hooks/useFloatPosition.d.ts +0 -48
- package/dist/hooks/useFloatPosition.js +0 -91
- package/dist/hooks/useFocusTrap.d.ts +0 -16
- package/dist/hooks/useFocusTrap.js +0 -48
- package/dist/hooks/useIsMounted.d.ts +0 -2
- package/dist/hooks/useIsMounted.js +0 -16
- package/dist/hooks/useMountTransition.d.ts +0 -33
- package/dist/hooks/useMountTransition.js +0 -55
- package/dist/hooks/useOnClickOutside.d.ts +0 -14
- package/dist/hooks/useOnClickOutside.js +0 -38
- package/dist/hooks/useOnKeyDown.d.ts +0 -14
- package/dist/hooks/useOnKeyDown.js +0 -31
- package/dist/hooks/useReturnFocusOnBlur.d.ts +0 -31
- package/dist/hooks/useReturnFocusOnBlur.js +0 -60
- package/dist/hooks/useRoveFocus.d.ts +0 -28
- package/dist/hooks/useRoveFocus.js +0 -63
- package/dist/hooks/useScreenSize.d.ts +0 -20
- package/dist/hooks/useScreenSize.js +0 -61
- package/dist/icons/icons.stories.d.ts +0 -5
- package/dist/icons/tsx/agreement.d.ts +0 -2
- package/dist/icons/tsx/agreement.js +0 -12
- package/dist/icons/tsx/apps.d.ts +0 -2
- package/dist/icons/tsx/apps.js +0 -12
- package/dist/icons/tsx/archive.d.ts +0 -2
- package/dist/icons/tsx/archive.js +0 -14
- package/dist/icons/tsx/arrowDown.d.ts +0 -2
- package/dist/icons/tsx/arrowDown.js +0 -12
- package/dist/icons/tsx/arrowLeft.d.ts +0 -2
- package/dist/icons/tsx/arrowLeft.js +0 -12
- package/dist/icons/tsx/arrowRight.d.ts +0 -2
- package/dist/icons/tsx/arrowRight.js +0 -12
- package/dist/icons/tsx/arrowUp.d.ts +0 -2
- package/dist/icons/tsx/arrowUp.js +0 -12
- package/dist/icons/tsx/attachment.d.ts +0 -2
- package/dist/icons/tsx/attachment.js +0 -12
- package/dist/icons/tsx/barChart.d.ts +0 -2
- package/dist/icons/tsx/barChart.js +0 -12
- package/dist/icons/tsx/barChartBoxed.d.ts +0 -2
- package/dist/icons/tsx/barChartBoxed.js +0 -12
- package/dist/icons/tsx/block.d.ts +0 -2
- package/dist/icons/tsx/block.js +0 -12
- package/dist/icons/tsx/book.d.ts +0 -2
- package/dist/icons/tsx/book.js +0 -14
- package/dist/icons/tsx/build.d.ts +0 -2
- package/dist/icons/tsx/build.js +0 -12
- package/dist/icons/tsx/buildCircled.d.ts +0 -2
- package/dist/icons/tsx/buildCircled.js +0 -18
- package/dist/icons/tsx/calendar.d.ts +0 -2
- package/dist/icons/tsx/calendar.js +0 -12
- package/dist/icons/tsx/calendarMonth.d.ts +0 -2
- package/dist/icons/tsx/calendarMonth.js +0 -12
- package/dist/icons/tsx/calendarViewDay.d.ts +0 -2
- package/dist/icons/tsx/calendarViewDay.js +0 -12
- package/dist/icons/tsx/calendarViewMonth.d.ts +0 -2
- package/dist/icons/tsx/calendarViewMonth.js +0 -12
- package/dist/icons/tsx/calendarViewWeek.d.ts +0 -2
- package/dist/icons/tsx/calendarViewWeek.js +0 -12
- package/dist/icons/tsx/call.d.ts +0 -2
- package/dist/icons/tsx/call.js +0 -12
- package/dist/icons/tsx/caring.d.ts +0 -2
- package/dist/icons/tsx/caring.js +0 -12
- package/dist/icons/tsx/chat.d.ts +0 -2
- package/dist/icons/tsx/chat.js +0 -12
- package/dist/icons/tsx/check.d.ts +0 -2
- package/dist/icons/tsx/check.js +0 -12
- package/dist/icons/tsx/checkCircled.d.ts +0 -2
- package/dist/icons/tsx/checkCircled.js +0 -12
- package/dist/icons/tsx/checklist.d.ts +0 -2
- package/dist/icons/tsx/checklist.js +0 -12
- package/dist/icons/tsx/chevronDown.d.ts +0 -2
- package/dist/icons/tsx/chevronDown.js +0 -12
- package/dist/icons/tsx/chevronFirst.d.ts +0 -2
- package/dist/icons/tsx/chevronFirst.js +0 -12
- package/dist/icons/tsx/chevronLargeLeft.d.ts +0 -2
- package/dist/icons/tsx/chevronLargeLeft.js +0 -12
- package/dist/icons/tsx/chevronLargeRight.d.ts +0 -2
- package/dist/icons/tsx/chevronLargeRight.js +0 -12
- package/dist/icons/tsx/chevronLast.d.ts +0 -2
- package/dist/icons/tsx/chevronLast.js +0 -12
- package/dist/icons/tsx/chevronLeft.d.ts +0 -2
- package/dist/icons/tsx/chevronLeft.js +0 -12
- package/dist/icons/tsx/chevronRight.d.ts +0 -2
- package/dist/icons/tsx/chevronRight.js +0 -12
- package/dist/icons/tsx/chevronUp.d.ts +0 -2
- package/dist/icons/tsx/chevronUp.js +0 -12
- package/dist/icons/tsx/close.d.ts +0 -2
- package/dist/icons/tsx/close.js +0 -12
- package/dist/icons/tsx/closeCircled.d.ts +0 -2
- package/dist/icons/tsx/closeCircled.js +0 -12
- package/dist/icons/tsx/closeSmall.d.ts +0 -2
- package/dist/icons/tsx/closeSmall.js +0 -12
- package/dist/icons/tsx/cloud.d.ts +0 -2
- package/dist/icons/tsx/cloud.js +0 -12
- package/dist/icons/tsx/collapse.d.ts +0 -2
- package/dist/icons/tsx/collapse.js +0 -12
- package/dist/icons/tsx/comment.d.ts +0 -2
- package/dist/icons/tsx/comment.js +0 -12
- package/dist/icons/tsx/copy.d.ts +0 -2
- package/dist/icons/tsx/copy.js +0 -12
- package/dist/icons/tsx/court.d.ts +0 -2
- package/dist/icons/tsx/court.js +0 -12
- package/dist/icons/tsx/dateRange.d.ts +0 -2
- package/dist/icons/tsx/dateRange.js +0 -12
- package/dist/icons/tsx/deaths.d.ts +0 -2
- package/dist/icons/tsx/deaths.js +0 -12
- package/dist/icons/tsx/doubleChevronLeft.d.ts +0 -2
- package/dist/icons/tsx/doubleChevronLeft.js +0 -12
- package/dist/icons/tsx/doubleChevronRight.d.ts +0 -2
- package/dist/icons/tsx/doubleChevronRight.js +0 -12
- package/dist/icons/tsx/download.d.ts +0 -2
- package/dist/icons/tsx/download.js +0 -12
- package/dist/icons/tsx/downloadDone.d.ts +0 -2
- package/dist/icons/tsx/downloadDone.js +0 -12
- package/dist/icons/tsx/dragHandle.d.ts +0 -2
- package/dist/icons/tsx/dragHandle.js +0 -12
- package/dist/icons/tsx/edit.d.ts +0 -2
- package/dist/icons/tsx/edit.js +0 -12
- package/dist/icons/tsx/error.d.ts +0 -2
- package/dist/icons/tsx/error.js +0 -12
- package/dist/icons/tsx/exclaim.d.ts +0 -2
- package/dist/icons/tsx/exclaim.js +0 -12
- package/dist/icons/tsx/expand.d.ts +0 -2
- package/dist/icons/tsx/expand.js +0 -12
- package/dist/icons/tsx/facebook.d.ts +0 -2
- package/dist/icons/tsx/facebook.js +0 -12
- package/dist/icons/tsx/family.d.ts +0 -2
- package/dist/icons/tsx/family.js +0 -12
- package/dist/icons/tsx/feedback.d.ts +0 -2
- package/dist/icons/tsx/feedback.js +0 -12
- package/dist/icons/tsx/file.d.ts +0 -2
- package/dist/icons/tsx/file.js +0 -12
- package/dist/icons/tsx/fileAdd.d.ts +0 -2
- package/dist/icons/tsx/fileAdd.js +0 -12
- package/dist/icons/tsx/fileText.d.ts +0 -2
- package/dist/icons/tsx/fileText.js +0 -12
- package/dist/icons/tsx/filter.d.ts +0 -2
- package/dist/icons/tsx/filter.js +0 -12
- package/dist/icons/tsx/filterList.d.ts +0 -2
- package/dist/icons/tsx/filterList.js +0 -12
- package/dist/icons/tsx/filterListOff.d.ts +0 -2
- package/dist/icons/tsx/filterListOff.js +0 -12
- package/dist/icons/tsx/filterOff.d.ts +0 -2
- package/dist/icons/tsx/filterOff.js +0 -12
- package/dist/icons/tsx/findInPage.d.ts +0 -2
- package/dist/icons/tsx/findInPage.js +0 -12
- package/dist/icons/tsx/folder.d.ts +0 -2
- package/dist/icons/tsx/folder.js +0 -12
- package/dist/icons/tsx/folderAdd.d.ts +0 -2
- package/dist/icons/tsx/folderAdd.js +0 -12
- package/dist/icons/tsx/fullsceenExit.d.ts +0 -2
- package/dist/icons/tsx/fullsceenExit.js +0 -12
- package/dist/icons/tsx/fullscreen.d.ts +0 -2
- package/dist/icons/tsx/fullscreen.js +0 -12
- package/dist/icons/tsx/gavel.d.ts +0 -2
- package/dist/icons/tsx/gavel.js +0 -18
- package/dist/icons/tsx/help.d.ts +0 -2
- package/dist/icons/tsx/help.js +0 -12
- package/dist/icons/tsx/helpFilled.d.ts +0 -2
- package/dist/icons/tsx/helpFilled.js +0 -12
- package/dist/icons/tsx/home.d.ts +0 -2
- package/dist/icons/tsx/home.js +0 -12
- package/dist/icons/tsx/hourglassBottom.d.ts +0 -2
- package/dist/icons/tsx/hourglassBottom.js +0 -12
- package/dist/icons/tsx/hourglassDisabled.d.ts +0 -2
- package/dist/icons/tsx/hourglassDisabled.js +0 -12
- package/dist/icons/tsx/hourglassEmpty.d.ts +0 -2
- package/dist/icons/tsx/hourglassEmpty.js +0 -12
- package/dist/icons/tsx/hourglassFull.d.ts +0 -2
- package/dist/icons/tsx/hourglassFull.js +0 -12
- package/dist/icons/tsx/hourglassTop.d.ts +0 -2
- package/dist/icons/tsx/hourglassTop.js +0 -12
- package/dist/icons/tsx/image.d.ts +0 -2
- package/dist/icons/tsx/image.js +0 -12
- package/dist/icons/tsx/index.d.ts +0 -149
- package/dist/icons/tsx/info.d.ts +0 -2
- package/dist/icons/tsx/info.js +0 -12
- package/dist/icons/tsx/instagram.d.ts +0 -2
- package/dist/icons/tsx/instagram.js +0 -12
- package/dist/icons/tsx/jordskifterett.d.ts +0 -2
- package/dist/icons/tsx/jordskifterett.js +0 -24
- package/dist/icons/tsx/key.d.ts +0 -2
- package/dist/icons/tsx/key.js +0 -12
- package/dist/icons/tsx/lagmannsrett.d.ts +0 -2
- package/dist/icons/tsx/lagmannsrett.js +0 -12
- package/dist/icons/tsx/language.d.ts +0 -2
- package/dist/icons/tsx/language.js +0 -12
- package/dist/icons/tsx/libraryAdd.d.ts +0 -2
- package/dist/icons/tsx/libraryAdd.js +0 -12
- package/dist/icons/tsx/lineChart.d.ts +0 -2
- package/dist/icons/tsx/lineChart.js +0 -12
- package/dist/icons/tsx/link.d.ts +0 -2
- package/dist/icons/tsx/link.js +0 -12
- package/dist/icons/tsx/linkOff.d.ts +0 -2
- package/dist/icons/tsx/linkOff.js +0 -12
- package/dist/icons/tsx/linkedIn.d.ts +0 -2
- package/dist/icons/tsx/linkedIn.js +0 -14
- package/dist/icons/tsx/list.d.ts +0 -2
- package/dist/icons/tsx/list.js +0 -12
- package/dist/icons/tsx/listAlt.d.ts +0 -2
- package/dist/icons/tsx/listAlt.js +0 -12
- package/dist/icons/tsx/location.d.ts +0 -2
- package/dist/icons/tsx/location.js +0 -12
- package/dist/icons/tsx/lock.d.ts +0 -2
- package/dist/icons/tsx/lock.js +0 -12
- package/dist/icons/tsx/lockOpen.d.ts +0 -2
- package/dist/icons/tsx/lockOpen.js +0 -12
- package/dist/icons/tsx/login.d.ts +0 -2
- package/dist/icons/tsx/login.js +0 -12
- package/dist/icons/tsx/logout.d.ts +0 -2
- package/dist/icons/tsx/logout.js +0 -12
- package/dist/icons/tsx/mail.d.ts +0 -2
- package/dist/icons/tsx/mail.js +0 -12
- package/dist/icons/tsx/mailOpen.d.ts +0 -2
- package/dist/icons/tsx/mailOpen.js +0 -12
- package/dist/icons/tsx/menu.d.ts +0 -2
- package/dist/icons/tsx/menu.js +0 -12
- package/dist/icons/tsx/minus.d.ts +0 -2
- package/dist/icons/tsx/minus.js +0 -12
- package/dist/icons/tsx/minusCircled.d.ts +0 -2
- package/dist/icons/tsx/minusCircled.js +0 -12
- package/dist/icons/tsx/moreHorizontal.d.ts +0 -2
- package/dist/icons/tsx/moreHorizontal.js +0 -12
- package/dist/icons/tsx/moreVertical.d.ts +0 -2
- package/dist/icons/tsx/moreVertical.js +0 -12
- package/dist/icons/tsx/notarial.d.ts +0 -2
- package/dist/icons/tsx/notarial.js +0 -12
- package/dist/icons/tsx/notifications.d.ts +0 -2
- package/dist/icons/tsx/notifications.js +0 -12
- package/dist/icons/tsx/notificationsOff.d.ts +0 -2
- package/dist/icons/tsx/notificationsOff.js +0 -12
- package/dist/icons/tsx/onlineMeeting.d.ts +0 -2
- package/dist/icons/tsx/onlineMeeting.js +0 -12
- package/dist/icons/tsx/openExternal.d.ts +0 -2
- package/dist/icons/tsx/openExternal.js +0 -12
- package/dist/icons/tsx/payout.d.ts +0 -2
- package/dist/icons/tsx/payout.js +0 -12
- package/dist/icons/tsx/pdf.d.ts +0 -2
- package/dist/icons/tsx/pdf.js +0 -12
- package/dist/icons/tsx/person.d.ts +0 -2
- package/dist/icons/tsx/person.js +0 -12
- package/dist/icons/tsx/personAdd.d.ts +0 -2
- package/dist/icons/tsx/personAdd.js +0 -12
- package/dist/icons/tsx/pin.d.ts +0 -2
- package/dist/icons/tsx/pin.js +0 -12
- package/dist/icons/tsx/plus.d.ts +0 -2
- package/dist/icons/tsx/plus.js +0 -12
- package/dist/icons/tsx/plusCircled.d.ts +0 -2
- package/dist/icons/tsx/plusCircled.js +0 -12
- package/dist/icons/tsx/print.d.ts +0 -2
- package/dist/icons/tsx/print.js +0 -14
- package/dist/icons/tsx/property.d.ts +0 -2
- package/dist/icons/tsx/property.js +0 -14
- package/dist/icons/tsx/publish.d.ts +0 -2
- package/dist/icons/tsx/publish.js +0 -12
- package/dist/icons/tsx/questionAnswer.d.ts +0 -2
- package/dist/icons/tsx/questionAnswer.js +0 -12
- package/dist/icons/tsx/receipt.d.ts +0 -2
- package/dist/icons/tsx/receipt.js +0 -12
- package/dist/icons/tsx/redo.d.ts +0 -2
- package/dist/icons/tsx/redo.js +0 -12
- package/dist/icons/tsx/refresh.d.ts +0 -2
- package/dist/icons/tsx/refresh.js +0 -12
- package/dist/icons/tsx/replay.d.ts +0 -2
- package/dist/icons/tsx/replay.js +0 -12
- package/dist/icons/tsx/search.d.ts +0 -2
- package/dist/icons/tsx/search.js +0 -12
- package/dist/icons/tsx/settings.d.ts +0 -2
- package/dist/icons/tsx/settings.js +0 -12
- package/dist/icons/tsx/sms.d.ts +0 -2
- package/dist/icons/tsx/sms.js +0 -12
- package/dist/icons/tsx/star.d.ts +0 -2
- package/dist/icons/tsx/star.js +0 -12
- package/dist/icons/tsx/starFilled.d.ts +0 -2
- package/dist/icons/tsx/starFilled.js +0 -12
- package/dist/icons/tsx/starHalfFilled.d.ts +0 -2
- package/dist/icons/tsx/starHalfFilled.js +0 -12
- package/dist/icons/tsx/sync.d.ts +0 -2
- package/dist/icons/tsx/sync.js +0 -12
- package/dist/icons/tsx/thumbdown.d.ts +0 -2
- package/dist/icons/tsx/thumbdown.js +0 -12
- package/dist/icons/tsx/thumbdownFilled.d.ts +0 -2
- package/dist/icons/tsx/thumbdownFilled.js +0 -12
- package/dist/icons/tsx/thumbup.d.ts +0 -2
- package/dist/icons/tsx/thumbup.js +0 -12
- package/dist/icons/tsx/thumbupFilled.d.ts +0 -2
- package/dist/icons/tsx/thumbupFilled.js +0 -12
- package/dist/icons/tsx/time.d.ts +0 -2
- package/dist/icons/tsx/time.js +0 -12
- package/dist/icons/tsx/tingrett.d.ts +0 -2
- package/dist/icons/tsx/tingrett.js +0 -12
- package/dist/icons/tsx/tip.d.ts +0 -2
- package/dist/icons/tsx/tip.js +0 -12
- package/dist/icons/tsx/trash.d.ts +0 -2
- package/dist/icons/tsx/trash.js +0 -12
- package/dist/icons/tsx/trendingDown.d.ts +0 -2
- package/dist/icons/tsx/trendingDown.js +0 -12
- package/dist/icons/tsx/trendingUp.d.ts +0 -2
- package/dist/icons/tsx/trendingUp.js +0 -12
- package/dist/icons/tsx/twitter.d.ts +0 -2
- package/dist/icons/tsx/twitter.js +0 -12
- package/dist/icons/tsx/undo.d.ts +0 -2
- package/dist/icons/tsx/undo.js +0 -12
- package/dist/icons/tsx/unfoldLess.d.ts +0 -2
- package/dist/icons/tsx/unfoldLess.js +0 -12
- package/dist/icons/tsx/unfoldMore.d.ts +0 -2
- package/dist/icons/tsx/unfoldMore.js +0 -12
- package/dist/icons/tsx/upload.d.ts +0 -2
- package/dist/icons/tsx/upload.js +0 -12
- package/dist/icons/tsx/visibilityOff.d.ts +0 -2
- package/dist/icons/tsx/visibilityOff.js +0 -12
- package/dist/icons/tsx/visibilityOn.d.ts +0 -2
- package/dist/icons/tsx/visibilityOn.js +0 -12
- package/dist/icons/tsx/warning.d.ts +0 -2
- package/dist/icons/tsx/warning.js +0 -14
- package/dist/icons/tsx/zoomIn.d.ts +0 -2
- package/dist/icons/tsx/zoomIn.js +0 -12
- package/dist/icons/tsx/zoomOut.d.ts +0 -2
- package/dist/icons/tsx/zoomOut.js +0 -12
- package/dist/icons/utils/StyledSvg.d.ts +0 -4
- package/dist/icons/utils/StyledSvg.js +0 -21
- package/dist/icons/utils/SvgWrapper.d.ts +0 -2
- package/dist/icons/utils/SvgWrapper.js +0 -16
- package/dist/icons/utils/index.d.ts +0 -2
- package/dist/icons/utils/propTypes.d.ts +0 -5
- package/dist/types/BaseComponentProps.d.ts +0 -58
- package/dist/types/BaseComponentProps.js +0 -66
- package/dist/types/CheckboxPickedHTMLAttributes.d.ts +0 -2
- package/dist/types/Direction.d.ts +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/utils.d.ts +0 -15
- package/dist/utils/color.d.ts +0 -30
- package/dist/utils/color.js +0 -38
- package/dist/utils/combineHandlers.d.ts +0 -1
- package/dist/utils/combineHandlers.js +0 -9
- package/dist/utils/getFocusableElements.d.ts +0 -2
- package/dist/utils/getFocusableElements.js +0 -5
- package/dist/utils/getScrollbarSize.d.ts +0 -1
- package/dist/utils/idGenerator.d.ts +0 -2
- package/dist/utils/idGenerator.js +0 -9
- package/dist/utils/index.d.ts +0 -7
- package/dist/utils/searchFilter.d.ts +0 -2
- package/dist/utils/searchFilter.js +0 -10
- package/dist/utils/text.d.ts +0 -2
- package/dist/utils/text.js +0 -5
- /package/dist/cjs/{helpers → components/Modal}/Backdrop/Backdrop.d.ts +0 -0
- /package/dist/cjs/{helpers → components/Modal}/Backdrop/Backdrop.utils.d.ts +0 -0
- /package/dist/cjs/{helpers → components/Modal}/Backdrop/index.d.ts +0 -0
- /package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroup.stories.d.ts +0 -0
- /package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroup.tokens.d.ts +0 -0
- /package/dist/cjs/components/{Checkbox → SelectionControl/Checkbox}/index.d.ts +0 -0
- /package/dist/cjs/components/{RadioButton → SelectionControl/RadioButton}/RadioButton.d.ts +0 -0
- /package/dist/cjs/components/{RadioButton → SelectionControl/RadioButton}/index.d.ts +0 -0
- /package/dist/cjs/{helpers → components}/SelectionControl/SelectionControl.tokens.d.ts +0 -0
- /package/dist/cjs/{helpers → components}/SelectionControl/SelectionControl.utils.d.ts +0 -0
- /package/dist/{assets/svg → components/Datepicker}/calendar_today.svg.js +0 -0
- /package/dist/{assets/svg → components/List}/bullets/jordskifterett_bullet1.svg.js +0 -0
- /package/dist/{assets/svg → components/List}/bullets/lagmannsrett_bullet2.svg.js +0 -0
- /package/dist/{assets/svg → components/List}/bullets/tingrett_bullet3.svg.js +0 -0
- /package/dist/{helpers → components/Modal}/Backdrop/Backdrop.d.ts +0 -0
- /package/dist/{helpers → components/Modal}/Backdrop/Backdrop.utils.d.ts +0 -0
- /package/dist/{helpers → components/Modal}/Backdrop/Backdrop.utils.js +0 -0
- /package/dist/{helpers → components/Modal}/Backdrop/index.d.ts +0 -0
- /package/dist/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroup.stories.d.ts +0 -0
- /package/dist/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroup.tokens.d.ts +0 -0
- /package/dist/components/{Checkbox → SelectionControl/Checkbox}/CheckboxGroupContext.js +0 -0
- /package/dist/components/{Checkbox → SelectionControl/Checkbox}/index.d.ts +0 -0
- /package/dist/components/{RadioButton → SelectionControl/RadioButton}/RadioButton.d.ts +0 -0
- /package/dist/components/{RadioButton → SelectionControl/RadioButton}/RadioButtonGroupContext.js +0 -0
- /package/dist/components/{RadioButton → SelectionControl/RadioButton}/index.d.ts +0 -0
- /package/dist/{helpers → components}/SelectionControl/SelectionControl.tokens.d.ts +0 -0
- /package/dist/{helpers → components}/SelectionControl/SelectionControl.utils.d.ts +0 -0
- /package/dist/{helpers → components}/SelectionControl/SelectionControl.utils.js +0 -0
|
@@ -1,29 +1,11 @@
|
|
|
1
1
|
import { __rest } from 'tslib';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef, useId } from 'react';
|
|
4
|
-
import {
|
|
5
|
-
import '
|
|
6
|
-
import '../Typography/Paragraph/Paragraph.js';
|
|
7
|
-
import '../Typography/Heading/Heading.js';
|
|
8
|
-
import '../Typography/Link/Link.js';
|
|
9
|
-
import '../Typography/Legend/Legend.js';
|
|
10
|
-
import '../Typography/Caption/Caption.js';
|
|
4
|
+
import { joinClassNames, getBaseHTMLProps, spaceSeparatedIdListGenerator } from '@norges-domstoler/dds-core';
|
|
5
|
+
import { Typography } from '@norges-domstoler/dds-typography';
|
|
11
6
|
import { useCheckboxGroup } from './CheckboxGroupContext.js';
|
|
12
|
-
import {
|
|
13
|
-
import '
|
|
14
|
-
import { joinClassNames, getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
15
|
-
import '../../helpers/Backdrop/Backdrop.js';
|
|
16
|
-
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
17
|
-
import { HiddenInput } from '../../helpers/HiddenInput/HiddenInput.js';
|
|
18
|
-
import '../../helpers/Input/Input.styles.js';
|
|
19
|
-
import '../../helpers/Input/Input.tokens.js';
|
|
20
|
-
import '../InputMessage/InputMessage.js';
|
|
21
|
-
import '../../helpers/Paper/Paper.js';
|
|
22
|
-
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
23
|
-
import '../../hooks/useFloatPosition.js';
|
|
24
|
-
import '../../hooks/useScreenSize.js';
|
|
25
|
-
import { Container, CustomSelectionControl } from '../../helpers/SelectionControl/SelectionControl.styles.js';
|
|
26
|
-
import '../../helpers/SelectionControl/SelectionControl.tokens.js';
|
|
7
|
+
import { Container, CustomSelectionControl } from '../SelectionControl.styles.js';
|
|
8
|
+
import { HiddenInput } from '@norges-domstoler/dds-form';
|
|
27
9
|
|
|
28
10
|
var Checkbox = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
29
11
|
var id = props.id,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import { CheckboxProps } from '.';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "defaultChecked" | "defaultValue" | "aria-describedby" | "onBlur" | "onChange" | "
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "defaultChecked" | "defaultValue" | "aria-describedby" | "onBlur" | "onChange" | "value" | "checked">, "className" | "id"> & {
|
|
6
6
|
label?: string | undefined;
|
|
7
7
|
error?: boolean | undefined;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
readOnly?: boolean | undefined;
|
|
10
10
|
indeterminate?: boolean | undefined;
|
|
11
|
-
} & import("
|
|
12
|
-
htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "defaultChecked" | "defaultValue" | "aria-describedby" | "onBlur" | "onChange" | "
|
|
11
|
+
} & import("./Checkbox.types").CheckboxPickedHTMLAttributes & {
|
|
12
|
+
htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "defaultChecked" | "defaultValue" | "aria-describedby" | "onBlur" | "onChange" | "value" | "checked"> | undefined;
|
|
13
13
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
14
14
|
argTypes: {
|
|
15
15
|
label: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { BaseComponentProps } from '
|
|
3
|
-
|
|
2
|
+
import { BaseComponentProps } from '@norges-domstoler/dds-core';
|
|
3
|
+
export type CheckboxPickedHTMLAttributes = Pick<InputHTMLAttributes<HTMLInputElement>, 'aria-describedby' | 'name' | 'checked' | 'defaultChecked' | 'value' | 'defaultValue' | 'onChange' | 'onBlur'>;
|
|
4
4
|
export type CheckboxProps = BaseComponentProps<HTMLInputElement, {
|
|
5
5
|
/** Ledetekst for inputelementet. */
|
|
6
6
|
label?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseComponentPropsWithChildren, Direction } from '
|
|
1
|
+
import { BaseComponentPropsWithChildren, Direction } from '@norges-domstoler/dds-core';
|
|
2
2
|
export type CheckboxGroupProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
3
3
|
/**Ledetekst for gruppen. */
|
|
4
4
|
label?: string;
|
|
@@ -1,29 +1,11 @@
|
|
|
1
1
|
import { __rest } from 'tslib';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useId } from 'react';
|
|
4
|
-
import '../../helpers/Backdrop/Backdrop.js';
|
|
5
|
-
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
6
|
-
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
7
|
-
import '../../helpers/Input/Input.styles.js';
|
|
8
|
-
import '../../helpers/Input/Input.tokens.js';
|
|
9
|
-
import { renderInputMessage } from '../../helpers/Input/Input.utils.js';
|
|
10
|
-
import '../../helpers/Paper/Paper.js';
|
|
11
|
-
import { RequiredMarker } from '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
12
|
-
import '../../hooks/useFloatPosition.js';
|
|
13
|
-
import { derivativeIdGenerator } from '../../utils/idGenerator.js';
|
|
14
|
-
import '../../utils/color.js';
|
|
15
|
-
import '../../hooks/useScreenSize.js';
|
|
16
4
|
import { CheckboxGroupContext } from './CheckboxGroupContext.js';
|
|
17
|
-
import { Typography } from '
|
|
18
|
-
import '
|
|
19
|
-
import '
|
|
20
|
-
import '../
|
|
21
|
-
import '../Typography/Link/Link.js';
|
|
22
|
-
import '../Typography/Legend/Legend.js';
|
|
23
|
-
import '../Typography/Caption/Caption.js';
|
|
24
|
-
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
25
|
-
import { OuterGroupContainer, GroupContainer } from '../../helpers/SelectionControl/SelectionControl.styles.js';
|
|
26
|
-
import '../../helpers/SelectionControl/SelectionControl.tokens.js';
|
|
5
|
+
import { Typography } from '@norges-domstoler/dds-typography';
|
|
6
|
+
import { derivativeIdGenerator, getBaseHTMLProps, RequiredMarker } from '@norges-domstoler/dds-core';
|
|
7
|
+
import { renderInputMessage } from '../../../utils/renderInputMessage.js';
|
|
8
|
+
import { OuterGroupContainer, GroupContainer } from '../SelectionControl.styles.js';
|
|
27
9
|
|
|
28
10
|
var CheckboxGroup = function CheckboxGroup(props) {
|
|
29
11
|
var label = props.label,
|
|
@@ -1,28 +1,11 @@
|
|
|
1
1
|
import { __rest } from 'tslib';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef, useId } from 'react';
|
|
4
|
-
import {
|
|
5
|
-
import '
|
|
6
|
-
import '
|
|
7
|
-
import '../Typography/Heading/Heading.js';
|
|
8
|
-
import '../Typography/Link/Link.js';
|
|
9
|
-
import '../Typography/Legend/Legend.js';
|
|
10
|
-
import '../Typography/Caption/Caption.js';
|
|
4
|
+
import { getBaseHTMLProps, joinClassNames } from '@norges-domstoler/dds-core';
|
|
5
|
+
import { Typography } from '@norges-domstoler/dds-typography';
|
|
6
|
+
import { HiddenInput } from '@norges-domstoler/dds-form';
|
|
11
7
|
import { useRadioButtonGroup } from './RadioButtonGroupContext.js';
|
|
12
|
-
import {
|
|
13
|
-
import '../../helpers/Backdrop/Backdrop.js';
|
|
14
|
-
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
15
|
-
import { HiddenInput } from '../../helpers/HiddenInput/HiddenInput.js';
|
|
16
|
-
import '../../helpers/Input/Input.styles.js';
|
|
17
|
-
import '../../helpers/Input/Input.tokens.js';
|
|
18
|
-
import '../InputMessage/InputMessage.js';
|
|
19
|
-
import '../../helpers/Paper/Paper.js';
|
|
20
|
-
import '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
21
|
-
import '../../hooks/useFloatPosition.js';
|
|
22
|
-
import '../../utils/color.js';
|
|
23
|
-
import '../../hooks/useScreenSize.js';
|
|
24
|
-
import { Container, CustomSelectionControl } from '../../helpers/SelectionControl/SelectionControl.styles.js';
|
|
25
|
-
import '../../helpers/SelectionControl/SelectionControl.tokens.js';
|
|
8
|
+
import { Container, CustomSelectionControl } from '../SelectionControl.styles.js';
|
|
26
9
|
|
|
27
10
|
var isValueEqualToGroupValueOrFalsy = function isValueEqualToGroupValueOrFalsy(value, group) {
|
|
28
11
|
if (typeof value !== 'undefined' && value !== null && group) {
|
package/dist/{cjs/components → components/SelectionControl}/RadioButton/RadioButton.stories.d.ts
RENAMED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
import { RadioButtonProps } from '.';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "aria-describedby" | "onChange" | "readOnly" | "required" | "value" | "checked">, "className" | "id"> & {
|
|
6
6
|
label?: string | undefined;
|
|
7
7
|
disabled?: boolean | undefined;
|
|
8
8
|
error?: boolean | undefined;
|
|
9
9
|
} & {
|
|
10
|
+
name?: string | undefined;
|
|
10
11
|
'aria-describedby'?: string | undefined;
|
|
11
12
|
onChange?: import("react").ChangeEventHandler<HTMLInputElement> | undefined;
|
|
12
|
-
name?: string | undefined;
|
|
13
|
-
value?: string | number | readonly string[] | undefined;
|
|
14
|
-
checked?: boolean | undefined;
|
|
15
13
|
readOnly?: boolean | undefined;
|
|
16
14
|
required?: boolean | undefined;
|
|
15
|
+
value?: string | number | readonly string[] | undefined;
|
|
16
|
+
checked?: boolean | undefined;
|
|
17
17
|
} & {
|
|
18
18
|
children?: import("react").ReactNode;
|
|
19
19
|
} & {
|
|
20
|
-
htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "
|
|
20
|
+
htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "aria-describedby" | "onChange" | "readOnly" | "required" | "value" | "checked"> | undefined;
|
|
21
21
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
22
22
|
argTypes: {
|
|
23
23
|
label: {
|
package/dist/{cjs/components → components/SelectionControl}/RadioButton/RadioButton.types.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { BaseComponentPropsWithChildren } from '
|
|
2
|
+
import { BaseComponentPropsWithChildren } from '@norges-domstoler/dds-core';
|
|
3
3
|
type PickedInputHTMLAttributes = Pick<InputHTMLAttributes<HTMLInputElement>, 'name' | 'readOnly' | 'checked' | 'value' | 'required' | 'onChange' | 'aria-describedby'>;
|
|
4
4
|
export type RadioButtonProps = BaseComponentPropsWithChildren<HTMLInputElement, {
|
|
5
5
|
/**Ledetekst for alternativet. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, HTMLAttributes, ReactElement, Ref } from 'react';
|
|
2
|
-
import { BaseComponentPropsWithChildren, Direction } from '
|
|
2
|
+
import { BaseComponentPropsWithChildren, Direction } from '@norges-domstoler/dds-core';
|
|
3
3
|
export type RadioButtonGroupProps<T extends string | number> = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
4
4
|
/** Gir alle barna `name` prop.*/
|
|
5
5
|
name?: string;
|
|
@@ -1,30 +1,12 @@
|
|
|
1
|
-
import { slicedToArray as _slicedToArray } from '
|
|
1
|
+
import { slicedToArray as _slicedToArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import { __rest } from 'tslib';
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { forwardRef, useState, useId } from 'react';
|
|
5
|
-
import '../../helpers/Backdrop/Backdrop.js';
|
|
6
|
-
import '../../helpers/Chevron/AnimatedChevronUpDown.styles.js';
|
|
7
|
-
import '../../helpers/HiddenInput/HiddenInput.js';
|
|
8
|
-
import '../../helpers/Input/Input.styles.js';
|
|
9
|
-
import '../../helpers/Input/Input.tokens.js';
|
|
10
|
-
import { renderInputMessage } from '../../helpers/Input/Input.utils.js';
|
|
11
|
-
import '../../helpers/Paper/Paper.js';
|
|
12
|
-
import { RequiredMarker } from '../../helpers/RequiredMarker/RequiredMarker.js';
|
|
13
|
-
import '../../hooks/useFloatPosition.js';
|
|
14
|
-
import { combineHandlers } from '../../utils/combineHandlers.js';
|
|
15
|
-
import '../../utils/color.js';
|
|
16
|
-
import '../../hooks/useScreenSize.js';
|
|
17
5
|
import { RadioButtonGroupContext } from './RadioButtonGroupContext.js';
|
|
18
|
-
import { Typography } from '
|
|
19
|
-
import '
|
|
20
|
-
import '
|
|
21
|
-
import '../
|
|
22
|
-
import '../Typography/Link/Link.js';
|
|
23
|
-
import '../Typography/Legend/Legend.js';
|
|
24
|
-
import '../Typography/Caption/Caption.js';
|
|
25
|
-
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
26
|
-
import { OuterGroupContainer, GroupContainer } from '../../helpers/SelectionControl/SelectionControl.styles.js';
|
|
27
|
-
import '../../helpers/SelectionControl/SelectionControl.tokens.js';
|
|
6
|
+
import { Typography } from '@norges-domstoler/dds-typography';
|
|
7
|
+
import { combineHandlers, getBaseHTMLProps, RequiredMarker } from '@norges-domstoler/dds-core';
|
|
8
|
+
import { renderInputMessage } from '../../../utils/renderInputMessage.js';
|
|
9
|
+
import { OuterGroupContainer, GroupContainer } from '../SelectionControl.styles.js';
|
|
28
10
|
|
|
29
11
|
var RadioButtonGroupInner = function RadioButtonGroupInner(props, ref) {
|
|
30
12
|
var name = props.name,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { RadioButtonGroupProps } from '.';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: <T extends string | number = string>(props: Pick<Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange">, "
|
|
5
|
+
component: <T extends string | number = string>(props: Pick<Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange">, "className" | "id"> & {
|
|
6
6
|
name?: string | undefined;
|
|
7
7
|
label?: string | undefined;
|
|
8
8
|
onChange?: ((event: import("react").ChangeEvent<HTMLInputElement>, value: T | undefined) => void) | undefined;
|
|
@@ -11,7 +11,7 @@ declare const _default: {
|
|
|
11
11
|
tip?: string | undefined;
|
|
12
12
|
disabled?: boolean | undefined;
|
|
13
13
|
readOnly?: boolean | undefined;
|
|
14
|
-
direction?: import("
|
|
14
|
+
direction?: import("@norges-domstoler/dds-core").Direction | undefined;
|
|
15
15
|
value?: T | undefined;
|
|
16
16
|
groupId?: string | undefined;
|
|
17
17
|
} & {
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { focusVisible, focusVisibleTransitionValue } from '
|
|
3
|
-
import '../styling/hover.js';
|
|
4
|
-
import '../styling/focus.js';
|
|
5
|
-
import '../styling/danger.js';
|
|
6
|
-
import '../styling/selection.js';
|
|
2
|
+
import { focusVisible, focusVisibleTransitionValue } from '@norges-domstoler/dds-form';
|
|
7
3
|
import { selectionControlTokens } from './SelectionControl.tokens.js';
|
|
8
4
|
|
|
9
5
|
var selectionControl = selectionControlTokens.selectionControl,
|
|
@@ -13,14 +9,14 @@ var selectionControl = selectionControlTokens.selectionControl,
|
|
|
13
9
|
outerGroupContainer = selectionControlTokens.outerGroupContainer;
|
|
14
10
|
var CustomSelectionControl = styled.span.withConfig({
|
|
15
11
|
displayName: "SelectionControlstyles__CustomSelectionControl",
|
|
16
|
-
componentId: "sc-
|
|
12
|
+
componentId: "sc-vs1fm0-0"
|
|
17
13
|
})(["position:absolute;left:0;box-sizing:border-box;border:", ";border-color:", ";background-color:", ";border-radius:", ";height:", ";width:", ";", " &:after{content:'';position:absolute;display:none;}"], selectionControl.base.border, selectionControl.base.borderColor, selectionControl.base.backgroundColor, selectionControl.base.borderRadius, selectionControl.base.height, selectionControl.base.width, function (_ref) {
|
|
18
14
|
var controlType = _ref.controlType;
|
|
19
15
|
return controlType === 'radio' && css(["border-radius:50%;"]);
|
|
20
16
|
});
|
|
21
17
|
var Container = styled.label.withConfig({
|
|
22
18
|
displayName: "SelectionControlstyles__Container",
|
|
23
|
-
componentId: "sc-
|
|
19
|
+
componentId: "sc-vs1fm0-1"
|
|
24
20
|
})(["position:relative;display:flex;align-items:center;cursor:pointer;user-select:none;width:fit-content;color:", ";", " input ~ ", "{@media (prefers-reduced-motion:no-preference){transition:box-shadow 0.2s,background-color 0.2s,border 0.2s;}}&:focus-within{", " @media (prefers-reduced-motion:no-preference){transition:", ";}}&:hover input:enabled ~ ", "{background-color:", ";box-shadow:", ";border-color:", ";}input:checked:enabled ~ ", ",input[data-indeterminate='true'] ~ ", "{border-color:", ";background-color:", ";}&:hover input:checked:enabled ~ ", ",&:hover input:enabled[data-indeterminate='true'] ~ ", "{background-color:", ";box-shadow:", ";border-color:", ";}", " input:disabled ~ ", "{", "}input:checked:disabled ~ ", ",input:disabled[data-indeterminate='true'] ~ ", "{background-color:", ";border-color:", ";}input:checked ~ ", ":after,input[data-indeterminate='true'] ~ ", ":after{display:block;}", " ", ""], container.color, function (_ref2) {
|
|
25
21
|
var hasLabel = _ref2.hasLabel;
|
|
26
22
|
return hasLabel ? css(["padding-left:", ";"], container.withLabel.paddingLeft) : css(["padding:", ";"], container.noLabel.padding);
|
|
@@ -36,11 +32,11 @@ var Container = styled.label.withConfig({
|
|
|
36
32
|
});
|
|
37
33
|
var OuterGroupContainer = styled.div.withConfig({
|
|
38
34
|
displayName: "SelectionControlstyles__OuterGroupContainer",
|
|
39
|
-
componentId: "sc-
|
|
35
|
+
componentId: "sc-vs1fm0-2"
|
|
40
36
|
})(["display:flex;flex-direction:column;gap:", ";"], outerGroupContainer.gap);
|
|
41
37
|
var GroupContainer = styled.div.withConfig({
|
|
42
38
|
displayName: "SelectionControlstyles__GroupContainer",
|
|
43
|
-
componentId: "sc-
|
|
39
|
+
componentId: "sc-vs1fm0-3"
|
|
44
40
|
})(["display:flex;", ""], function (_ref6) {
|
|
45
41
|
var direction = _ref6.direction;
|
|
46
42
|
return css(["flex-direction:", ";gap:", ";"], direction, groupContainer[direction].gap);
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
|
+
import { hoverInputfield, dangerInputfield } from '@norges-domstoler/dds-form';
|
|
2
3
|
import { selectionControlSize, selectionControlSizeNumberPx } from './SelectionControl.utils.js';
|
|
3
|
-
import 'styled-components';
|
|
4
|
-
import '../styling/focusVisible.js';
|
|
5
|
-
import { hoverInputfield } from '../styling/hover.js';
|
|
6
|
-
import '../styling/focus.js';
|
|
7
|
-
import { dangerInputfield } from '../styling/danger.js';
|
|
8
|
-
import '../styling/selection.js';
|
|
9
4
|
|
|
10
5
|
var colors = ddsBaseTokens.colors,
|
|
11
6
|
spacing = ddsBaseTokens.spacing,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
|
-
import { BaseComponentProps } from '
|
|
3
|
+
import { BaseComponentProps } from '@norges-domstoler/dds-core';
|
|
4
4
|
export type SkipToContentProps = BaseComponentProps<HTMLAnchorElement, {
|
|
5
5
|
/** Teksten som vises i lenka. */
|
|
6
6
|
text?: string;
|
|
@@ -2,14 +2,10 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
+
import { joinClassNames, getBaseHTMLProps } from '@norges-domstoler/dds-core';
|
|
6
|
+
import { getFontStyling, defaultTypographyType } from '@norges-domstoler/dds-typography';
|
|
7
|
+
import { focusVisibleTransitionValue, focusVisibleOnDark } from '@norges-domstoler/dds-form';
|
|
5
8
|
import { skipToContentTokens } from './SkipToContent.tokens.js';
|
|
6
|
-
import { focusVisibleTransitionValue, focusVisibleOnDark } from '../../helpers/styling/focusVisible.js';
|
|
7
|
-
import '../../helpers/styling/hover.js';
|
|
8
|
-
import '../../helpers/styling/focus.js';
|
|
9
|
-
import '../../helpers/styling/danger.js';
|
|
10
|
-
import '../../helpers/styling/selection.js';
|
|
11
|
-
import { joinClassNames, getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
12
|
-
import { getFontStyling, defaultTypographyType } from '../Typography/Typography.utils.js';
|
|
13
9
|
|
|
14
10
|
var wrapper = skipToContentTokens.wrapper,
|
|
15
11
|
link = skipToContentTokens.link;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { SkipToContentProps } from '.';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLAnchorElement>, "
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLAnchorElement>, "className" | "id"> & {
|
|
6
6
|
text?: string | undefined;
|
|
7
7
|
href: string;
|
|
8
8
|
top?: import("csstype").Property.Top<0 | (string & {})> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
|
-
import { TextColor } from '
|
|
3
|
-
import { BaseComponentProps } from '
|
|
2
|
+
import { TextColor } from '@norges-domstoler/dds-core';
|
|
3
|
+
import { BaseComponentProps } from '@norges-domstoler/dds-core';
|
|
4
4
|
export type SpinnerProps = BaseComponentProps<SVGElement, {
|
|
5
5
|
/**Farge på spinneren. */
|
|
6
6
|
color?: TextColor | string;
|
|
@@ -2,9 +2,8 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useId } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import { getTextColor } from '
|
|
5
|
+
import { getTextColor, getBaseHTMLProps } from '@norges-domstoler/dds-core';
|
|
6
6
|
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
7
|
-
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
8
7
|
|
|
9
8
|
var StyledSpinner = styled.svg.withConfig({
|
|
10
9
|
displayName: "Spinner__StyledSpinner",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ExtractStrict } from '
|
|
2
|
+
import { ExtractStrict } from '@norges-domstoler/dds-core';
|
|
3
3
|
import { ButtonProps, ButtonPurpose, ButtonSize } from '../Button';
|
|
4
4
|
import { OverflowMenuButtonItem } from '../OverflowMenu';
|
|
5
5
|
export type SplitButtonPurpose = ExtractStrict<ButtonPurpose, 'primary' | 'secondary'>;
|
|
@@ -2,10 +2,7 @@ import { slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBab
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef, useState } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import '
|
|
6
|
-
import '../../icons/utils/StyledSvg.js';
|
|
7
|
-
import { ChevronDownIcon } from '../../icons/tsx/chevronDown.js';
|
|
8
|
-
import { ChevronUpIcon } from '../../icons/tsx/chevronUp.js';
|
|
5
|
+
import { ChevronUpIcon, ChevronDownIcon } from '@norges-domstoler/dds-icons';
|
|
9
6
|
import { Button } from '../Button/Button.js';
|
|
10
7
|
import { OverflowMenu } from '../OverflowMenu/OverflowMenu.js';
|
|
11
8
|
import { OverflowMenuGroup } from '../OverflowMenu/OverflowMenuGroup.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { stackTokens } from './Stack.tokens';
|
|
3
|
-
import { BaseComponentPropsWithChildren } from '
|
|
3
|
+
import { BaseComponentPropsWithChildren } from '@norges-domstoler/dds-core';
|
|
4
4
|
import { StandardProperties } from 'csstype';
|
|
5
5
|
export interface StackStyleProps {
|
|
6
6
|
/**
|
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
5
|
import { stackTokens } from './Stack.tokens.js';
|
|
6
|
-
import { getBaseHTMLProps } from '
|
|
6
|
+
import { getBaseHTMLProps } from '@norges-domstoler/dds-core';
|
|
7
7
|
|
|
8
8
|
var Stack = styled.div.withConfig({
|
|
9
9
|
displayName: "Stack",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { StackProps } from './Stack';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<HTMLDivElement>, "className" | "id"> & Omit<import("./Stack").StackStyleProps, "direction"> & {
|
|
6
6
|
children?: import("react").ReactNode;
|
|
7
7
|
} & {
|
|
8
8
|
htmlProps?: import("react").HTMLAttributes<HTMLDivElement> | undefined;
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
import { __rest } from 'tslib';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
+
import { Icon, UnfoldMoreIcon, ChevronDownIcon, ChevronUpIcon } from '@norges-domstoler/dds-icons';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import { normalizeButton, removeButtonStyling } from '@norges-domstoler/dds-core';
|
|
7
|
+
import { focusVisible } from '@norges-domstoler/dds-form';
|
|
4
8
|
import { Cell } from './Cell.js';
|
|
5
9
|
import { tableTokens } from './Table.tokens.js';
|
|
6
|
-
import { Icon } from '../Icon/Icon.js';
|
|
7
|
-
import '../../icons/utils/StyledSvg.js';
|
|
8
|
-
import { ChevronDownIcon } from '../../icons/tsx/chevronDown.js';
|
|
9
|
-
import { ChevronUpIcon } from '../../icons/tsx/chevronUp.js';
|
|
10
|
-
import { UnfoldMoreIcon } from '../../icons/tsx/unfoldMore.js';
|
|
11
|
-
import styled from 'styled-components';
|
|
12
|
-
import { removeButtonStyling } from '../../helpers/styling/removeButtonStyling.js';
|
|
13
|
-
import { focusVisible } from '../../helpers/styling/focusVisible.js';
|
|
14
|
-
import '../../helpers/styling/hover.js';
|
|
15
|
-
import '../../helpers/styling/focus.js';
|
|
16
|
-
import '../../helpers/styling/danger.js';
|
|
17
|
-
import '../../helpers/styling/selection.js';
|
|
18
|
-
import { normalizeButton } from '../../helpers/styling/normalize.js';
|
|
19
10
|
|
|
20
11
|
var cell = tableTokens.cell;
|
|
21
12
|
var StyledButton = styled.button.withConfig({
|
|
@@ -2,11 +2,7 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
|
-
import '
|
|
6
|
-
import '../../helpers/styling/hover.js';
|
|
7
|
-
import '../../helpers/styling/focus.js';
|
|
8
|
-
import '../../helpers/styling/danger.js';
|
|
9
|
-
import { selection } from '../../helpers/styling/selection.js';
|
|
5
|
+
import { selection } from '@norges-domstoler/dds-core';
|
|
10
6
|
import '../ScrollableContainer/Scrollbar.js';
|
|
11
7
|
import '../ScrollableContainer/ScrollableContainer.js';
|
|
12
8
|
import { scrollbarStyling } from '../ScrollableContainer/scrollbarStyling.js';
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
+
import { getFontStyling, defaultTypographyType } from '@norges-domstoler/dds-typography';
|
|
3
|
+
import { focusVisibleInset } from '@norges-domstoler/dds-form';
|
|
2
4
|
import { tableTokens } from './Table.tokens.js';
|
|
3
|
-
import { focusVisibleInset } from '../../helpers/styling/focusVisible.js';
|
|
4
|
-
import '../../helpers/styling/hover.js';
|
|
5
|
-
import '../../helpers/styling/focus.js';
|
|
6
|
-
import '../../helpers/styling/danger.js';
|
|
7
|
-
import '../../helpers/styling/selection.js';
|
|
8
|
-
import { getFontStyling, defaultTypographyType } from '../Typography/Typography.utils.js';
|
|
9
5
|
|
|
10
6
|
var row = tableTokens.row;
|
|
11
7
|
var bodyRowStyles = function bodyRowStyles(mode, selected) {
|
|
@@ -3,15 +3,9 @@ import { __rest } from 'tslib';
|
|
|
3
3
|
import { jsxs, jsx, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
4
4
|
import { forwardRef, useState, useEffect, Children, Fragment, isValidElement, cloneElement } from 'react';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
|
+
import { focusVisibleTransitionValue, focusVisible } from '@norges-domstoler/dds-form';
|
|
7
|
+
import { removeButtonStyling, derivativeIdGenerator, spaceSeparatedIdListGenerator, AnimatedChevronUpDown } from '@norges-domstoler/dds-core';
|
|
6
8
|
import { Table } from '../index.js';
|
|
7
|
-
import { removeButtonStyling } from '../../../helpers/styling/removeButtonStyling.js';
|
|
8
|
-
import { focusVisibleTransitionValue, focusVisible } from '../../../helpers/styling/focusVisible.js';
|
|
9
|
-
import '../../../helpers/styling/hover.js';
|
|
10
|
-
import '../../../helpers/styling/focus.js';
|
|
11
|
-
import '../../../helpers/styling/danger.js';
|
|
12
|
-
import '../../../helpers/styling/selection.js';
|
|
13
|
-
import { derivativeIdGenerator, spaceSeparatedIdListGenerator } from '../../../utils/idGenerator.js';
|
|
14
|
-
import '../../../utils/color.js';
|
|
15
9
|
import { DescriptionList } from '../../DescriptionList/DescriptionList.js';
|
|
16
10
|
import { DescriptionListTerm } from '../../DescriptionList/DescriptionListTerm.js';
|
|
17
11
|
import '../../DescriptionList/DescriptionListDesc.js';
|
|
@@ -19,16 +13,6 @@ import '../../DescriptionList/DescriptionListGroup.js';
|
|
|
19
13
|
import { VisuallyHidden } from '../../VisuallyHidden/VisuallyHidden.js';
|
|
20
14
|
import { Cell } from '../Cell.js';
|
|
21
15
|
import { useCollapsibleTableContext } from './Table.context.js';
|
|
22
|
-
import '../../../helpers/Backdrop/Backdrop.js';
|
|
23
|
-
import { AnimatedChevronUpDown } from '../../../helpers/Chevron/AnimatedChevronUpDown.js';
|
|
24
|
-
import '../../../helpers/HiddenInput/HiddenInput.js';
|
|
25
|
-
import '../../../helpers/Input/Input.styles.js';
|
|
26
|
-
import '../../../helpers/Input/Input.tokens.js';
|
|
27
|
-
import '../../InputMessage/InputMessage.js';
|
|
28
|
-
import '../../../helpers/Paper/Paper.js';
|
|
29
|
-
import '../../../helpers/RequiredMarker/RequiredMarker.js';
|
|
30
|
-
import '../../../hooks/useFloatPosition.js';
|
|
31
|
-
import '../../../hooks/useScreenSize.js';
|
|
32
16
|
import { StyledRow } from '../Table.styles.js';
|
|
33
17
|
import { tableTokens } from '../Table.tokens.js';
|
|
34
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { BaseComponentPropsWithChildren } from '
|
|
3
|
-
import { SvgIcon } from '
|
|
2
|
+
import { BaseComponentPropsWithChildren } from '@norges-domstoler/dds-core';
|
|
3
|
+
import { SvgIcon } from '@norges-domstoler/dds-icons';
|
|
4
4
|
export type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
|
|
5
5
|
/**Spesifiserer om fanen er aktiv. */
|
|
6
6
|
active?: boolean;
|
|
@@ -2,23 +2,12 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef, useRef, useEffect, useCallback } from 'react';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
|
-
import {
|
|
5
|
+
import { normalizeButton, removeButtonStyling, useCombinedRef, useOnKeyDown, getBaseHTMLProps } from '@norges-domstoler/dds-core';
|
|
6
|
+
import { Icon } from '@norges-domstoler/dds-icons';
|
|
7
|
+
import { getFontStyling, defaultTypographyType } from '@norges-domstoler/dds-typography';
|
|
8
|
+
import { focusVisibleTransitionValue, focusVisible } from '@norges-domstoler/dds-form';
|
|
6
9
|
import { tabsTokens } from './Tabs.tokens.js';
|
|
7
|
-
import { useCombinedRef } from '../../hooks/useCombinedRefs.js';
|
|
8
|
-
import { useOnKeyDown } from '../../hooks/useOnKeyDown.js';
|
|
9
|
-
import '../../hooks/useFloatPosition.js';
|
|
10
|
-
import '../../utils/color.js';
|
|
11
|
-
import '../../hooks/useScreenSize.js';
|
|
12
10
|
import { useTabsContext } from './Tabs.context.js';
|
|
13
|
-
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
14
|
-
import { removeButtonStyling } from '../../helpers/styling/removeButtonStyling.js';
|
|
15
|
-
import { focusVisibleTransitionValue, focusVisible } from '../../helpers/styling/focusVisible.js';
|
|
16
|
-
import '../../helpers/styling/hover.js';
|
|
17
|
-
import '../../helpers/styling/focus.js';
|
|
18
|
-
import '../../helpers/styling/danger.js';
|
|
19
|
-
import '../../helpers/styling/selection.js';
|
|
20
|
-
import { normalizeButton } from '../../helpers/styling/normalize.js';
|
|
21
|
-
import { getFontStyling, defaultTypographyType } from '../Typography/Typography.utils.js';
|
|
22
11
|
|
|
23
12
|
var tab = tabsTokens.tab;
|
|
24
13
|
var Button = styled.button.withConfig({
|
|
@@ -3,23 +3,13 @@ import { __rest } from 'tslib';
|
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { forwardRef, Children, isValidElement, cloneElement } from 'react';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
|
+
import { useRoveFocus, useCombinedRef, useOnKeyDown, useOnClickOutside } from '@norges-domstoler/dds-core';
|
|
7
|
+
import { focusVisibleTransitionValue, focusVisible } from '@norges-domstoler/dds-form';
|
|
6
8
|
import { tabsTokens } from './Tabs.tokens.js';
|
|
7
|
-
import { useCombinedRef } from '../../hooks/useCombinedRefs.js';
|
|
8
|
-
import { useOnClickOutside } from '../../hooks/useOnClickOutside.js';
|
|
9
|
-
import { useOnKeyDown } from '../../hooks/useOnKeyDown.js';
|
|
10
|
-
import '../../hooks/useFloatPosition.js';
|
|
11
|
-
import { useRoveFocus } from '../../hooks/useRoveFocus.js';
|
|
12
|
-
import '../../utils/color.js';
|
|
13
|
-
import '../../hooks/useScreenSize.js';
|
|
14
9
|
import { useTabsContext } from './Tabs.context.js';
|
|
15
10
|
import '../ScrollableContainer/Scrollbar.js';
|
|
16
11
|
import '../ScrollableContainer/ScrollableContainer.js';
|
|
17
12
|
import { scrollbarStyling } from '../ScrollableContainer/scrollbarStyling.js';
|
|
18
|
-
import { focusVisibleTransitionValue, focusVisible } from '../../helpers/styling/focusVisible.js';
|
|
19
|
-
import '../../helpers/styling/hover.js';
|
|
20
|
-
import '../../helpers/styling/focus.js';
|
|
21
|
-
import '../../helpers/styling/danger.js';
|
|
22
|
-
import '../../helpers/styling/selection.js';
|
|
23
13
|
|
|
24
14
|
var tabList = tabsTokens.tabList;
|
|
25
15
|
var TabRow = styled.div.withConfig({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseComponentPropsWithChildren } from '
|
|
2
|
+
import { BaseComponentPropsWithChildren } from '@norges-domstoler/dds-core';
|
|
3
3
|
export type TabPanelProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
4
4
|
/** Spesifiserer om panelet skal vises basert på aktiv fane. */
|
|
5
5
|
active?: boolean;
|