@norges-domstoler/dds-components 4.2.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.d.ts +0 -1
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -1
- package/dist/cjs/components/Button/Button.d.ts +1 -2
- package/dist/cjs/components/Button/Button.stories.d.ts +2 -3
- package/dist/cjs/components/Button/Button.types.d.ts +2 -3
- package/dist/cjs/components/Card/Card.stories.d.ts +0 -1
- package/dist/cjs/components/Card/CardAccordion/CardAccordion.d.ts +0 -1
- package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.d.ts +0 -1
- package/dist/cjs/components/Checkbox/Checkbox.d.ts +0 -1
- package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +0 -1
- package/dist/cjs/components/Checkbox/Checkbox.styles.d.ts +0 -1
- package/dist/cjs/components/Checkbox/CheckboxGroup.d.ts +0 -1
- package/dist/cjs/components/Checkbox/CheckboxGroup.stories.d.ts +0 -1
- package/dist/cjs/components/Chip/Chip.d.ts +0 -1
- package/dist/cjs/components/Chip/Chip.stories.d.ts +0 -1
- package/dist/cjs/components/Chip/ChipGroup.stories.d.ts +0 -1
- package/dist/cjs/components/Datepicker/Datepicker.d.ts +0 -1
- package/dist/cjs/components/Datepicker/Datepicker.stories.d.ts +0 -1
- package/dist/cjs/components/DescriptionList/DescriptionList.d.ts +0 -1
- package/dist/cjs/components/DescriptionList/DescriptionList.stories.d.ts +0 -1
- package/dist/cjs/components/DescriptionList/DescriptionListDesc.d.ts +3 -5
- package/dist/cjs/components/DescriptionList/DescriptionListGroup.d.ts +0 -1
- package/dist/cjs/components/Divider/Divider.d.ts +0 -1
- package/dist/cjs/components/Divider/Divider.stories.d.ts +0 -1
- package/dist/cjs/components/Drawer/Drawer.stories.d.ts +0 -1
- package/dist/cjs/components/GlobalMessage/GlobalMessage.d.ts +0 -1
- package/dist/cjs/components/GlobalMessage/GlobalMessage.stories.d.ts +0 -1
- package/dist/cjs/components/GlobalMessage/GlobalMessage.tokens.d.ts +4 -9
- package/dist/cjs/components/Icon/Icon.d.ts +13 -0
- package/dist/cjs/components/Icon/Icon.stories.d.ts +21 -0
- package/dist/cjs/components/Icon/index.d.ts +1 -0
- package/dist/cjs/components/InputMessage/InputMessage.d.ts +0 -1
- package/dist/cjs/components/InputMessage/InputMessage.stories.d.ts +0 -1
- package/dist/cjs/components/InternalHeader/InternalHeader.d.ts +0 -1
- package/dist/cjs/components/InternalHeader/InternalHeader.stories.d.ts +0 -1
- package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +0 -1
- package/dist/cjs/components/InternalHeader/InternalHeader.types.d.ts +2 -3
- package/dist/cjs/components/List/List.d.ts +0 -1
- package/dist/cjs/components/List/List.stories.d.ts +0 -1
- package/dist/cjs/components/LocalMessage/LocalMessage.d.ts +0 -1
- package/dist/cjs/components/LocalMessage/LocalMessage.stories.d.ts +0 -1
- package/dist/cjs/components/LocalMessage/LocalMessage.tokens.d.ts +7 -18
- package/dist/cjs/components/Modal/Modal.stories.d.ts +0 -1
- package/dist/cjs/components/Modal/ModalBody.d.ts +0 -1
- package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +0 -1
- package/dist/cjs/components/OverflowMenu/OverflowMenu.stories.d.ts +0 -1
- package/dist/cjs/components/OverflowMenu/OverflowMenu.types.d.ts +3 -4
- package/dist/cjs/components/OverflowMenu/OverflowMenuItem.d.ts +4 -7
- package/dist/cjs/components/Pagination/Pagination.stories.d.ts +0 -1
- package/dist/cjs/components/Popover/Popover.stories.d.ts +0 -1
- package/dist/cjs/components/RadioButton/RadioButton.d.ts +0 -1
- package/dist/cjs/components/RadioButton/RadioButton.stories.d.ts +0 -1
- package/dist/cjs/components/RadioButton/RadioButton.styles.d.ts +0 -1
- package/dist/cjs/components/RadioButton/RadioButtonGroup.stories.d.ts +0 -1
- package/dist/cjs/components/Search/Search.stories.d.ts +0 -1
- package/dist/cjs/components/Search/Search.tokens.d.ts +13 -1
- package/dist/cjs/components/Select/CustomSelect.stories.d.ts +66 -0
- package/dist/cjs/components/Select/MultiSelect.stories.d.ts +1 -2
- package/dist/cjs/components/Select/Select.d.ts +4 -2
- package/dist/cjs/components/Select/Select.stories.d.ts +1 -2
- package/dist/cjs/components/Select/Select.styles.d.ts +0 -3
- package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +0 -1
- package/dist/cjs/components/SkipToContent/SkipToContent.stories.d.ts +0 -1
- package/dist/cjs/components/Spinner/Spinner.d.ts +0 -1
- package/dist/cjs/components/Spinner/Spinner.stories.d.ts +0 -1
- package/dist/cjs/components/Table/Table.stories.d.ts +0 -1
- package/dist/cjs/components/Tabs/Tab.d.ts +3 -4
- package/dist/cjs/components/Tabs/TabPanel.d.ts +0 -1
- package/dist/cjs/components/Tag/Tag.d.ts +0 -1
- package/dist/cjs/components/Tag/Tag.stories.d.ts +0 -1
- package/dist/cjs/components/TextInput/CharCounter.d.ts +0 -1
- package/dist/cjs/components/TextInput/TextInput.stories.d.ts +0 -1
- package/dist/cjs/components/TextInput/TextInput.styles.d.ts +0 -1
- package/dist/cjs/components/ToggleButton/ToggleButton.d.ts +3 -4
- package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +6 -2
- package/dist/cjs/components/ToggleButton/ToggleButtonGroup.d.ts +0 -1
- package/dist/cjs/components/ToggleButton/ToggleButtonGroup.stories.d.ts +0 -1
- package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +0 -1
- package/dist/cjs/components/Typography/Body.stories.d.ts +0 -1
- package/dist/cjs/components/Typography/Examples.stories.d.ts +0 -1
- package/dist/cjs/components/Typography/Typography.d.ts +1 -0
- package/dist/cjs/components/Typography/Typography.stories.d.ts +0 -1
- package/dist/cjs/components/VisuallyHidden/VisuallyHidden.d.ts +11 -0
- package/dist/cjs/components/VisuallyHidden/VisuallyHidden.stories.d.ts +16 -0
- package/dist/cjs/components/VisuallyHidden/index.d.ts +1 -0
- package/dist/cjs/helpers/Chevron/AnimatedChevronUpDown.d.ts +0 -1
- package/dist/cjs/helpers/Input/Input.styles.d.ts +0 -1
- package/dist/cjs/helpers/RequiredMarker/RequiredMarker.d.ts +0 -1
- package/dist/cjs/hooks/useFloatPosition.d.ts +0 -1
- package/dist/cjs/hooks/useFocusTrap.d.ts +0 -1
- package/dist/cjs/icons/icons.stories.d.ts +5 -0
- package/dist/cjs/icons/tsx/apps.d.ts +2 -0
- package/dist/cjs/icons/tsx/archive.d.ts +2 -0
- package/dist/cjs/icons/tsx/arrowDown.d.ts +2 -0
- package/dist/cjs/icons/tsx/arrowLeft.d.ts +2 -0
- package/dist/cjs/icons/tsx/arrowRight.d.ts +2 -0
- package/dist/cjs/icons/tsx/arrowUp.d.ts +2 -0
- package/dist/cjs/icons/tsx/attachment.d.ts +2 -0
- package/dist/cjs/icons/tsx/block.d.ts +2 -0
- package/dist/cjs/icons/tsx/book.d.ts +2 -0
- package/dist/cjs/icons/tsx/build.d.ts +2 -0
- package/dist/cjs/icons/tsx/buildCircled.d.ts +2 -0
- package/dist/cjs/icons/tsx/calendar.d.ts +2 -0
- package/dist/cjs/icons/tsx/calendarMonth.d.ts +2 -0
- package/dist/cjs/icons/tsx/calendarViewDay.d.ts +2 -0
- package/dist/cjs/icons/tsx/calendarViewMonth.d.ts +2 -0
- package/dist/cjs/icons/tsx/calendarViewWeek.d.ts +2 -0
- package/dist/cjs/icons/tsx/call.d.ts +2 -0
- package/dist/cjs/icons/tsx/chat.d.ts +2 -0
- package/dist/cjs/icons/tsx/check.d.ts +2 -0
- package/dist/cjs/icons/tsx/checkCircled.d.ts +2 -0
- package/dist/cjs/icons/tsx/checklist.d.ts +2 -0
- package/dist/cjs/icons/tsx/chevronDown.d.ts +2 -0
- package/dist/cjs/icons/tsx/chevronFirst.d.ts +2 -0
- package/dist/cjs/icons/tsx/chevronLargeLeft.d.ts +2 -0
- package/dist/cjs/icons/tsx/chevronLargeRight.d.ts +2 -0
- package/dist/cjs/icons/tsx/chevronLast.d.ts +2 -0
- package/dist/cjs/icons/tsx/chevronLeft.d.ts +2 -0
- package/dist/cjs/icons/tsx/chevronRight.d.ts +2 -0
- package/dist/cjs/icons/tsx/chevronUp.d.ts +2 -0
- package/dist/cjs/icons/tsx/close.d.ts +2 -0
- package/dist/cjs/icons/tsx/closeCircled.d.ts +2 -0
- package/dist/cjs/icons/tsx/cloud.d.ts +2 -0
- package/dist/cjs/icons/tsx/collapse.d.ts +2 -0
- package/dist/cjs/icons/tsx/comment.d.ts +2 -0
- package/dist/cjs/icons/tsx/copy.d.ts +2 -0
- package/dist/cjs/icons/tsx/court.d.ts +2 -0
- package/dist/cjs/icons/tsx/dateRange.d.ts +2 -0
- package/dist/cjs/icons/tsx/deaths.d.ts +2 -0
- package/dist/cjs/icons/tsx/download.d.ts +2 -0
- package/dist/cjs/icons/tsx/downloadDone.d.ts +2 -0
- package/dist/cjs/icons/tsx/dragHandle.d.ts +2 -0
- package/dist/cjs/icons/tsx/edit.d.ts +2 -0
- package/dist/cjs/icons/tsx/error.d.ts +2 -0
- package/dist/cjs/icons/tsx/exclaim.d.ts +2 -0
- package/dist/cjs/icons/tsx/expand.d.ts +2 -0
- package/dist/cjs/icons/tsx/facebook.d.ts +2 -0
- package/dist/cjs/icons/tsx/family.d.ts +2 -0
- package/dist/cjs/icons/tsx/feedback.d.ts +2 -0
- package/dist/cjs/icons/tsx/file.d.ts +2 -0
- package/dist/cjs/icons/tsx/fileAdd.d.ts +2 -0
- package/dist/cjs/icons/tsx/fileText.d.ts +2 -0
- package/dist/cjs/icons/tsx/filter.d.ts +2 -0
- package/dist/cjs/icons/tsx/filterList.d.ts +2 -0
- package/dist/cjs/icons/tsx/filterListOff.d.ts +2 -0
- package/dist/cjs/icons/tsx/filterOff.d.ts +2 -0
- package/dist/cjs/icons/tsx/findInPage.d.ts +2 -0
- package/dist/cjs/icons/tsx/folder.d.ts +2 -0
- package/dist/cjs/icons/tsx/folderAdd.d.ts +2 -0
- package/dist/cjs/icons/tsx/fullsceenExit.d.ts +2 -0
- package/dist/cjs/icons/tsx/fullscreen.d.ts +2 -0
- package/dist/cjs/icons/tsx/gavel.d.ts +2 -0
- package/dist/cjs/icons/tsx/help.d.ts +2 -0
- package/dist/cjs/icons/tsx/helpFilled.d.ts +2 -0
- package/dist/cjs/icons/tsx/home.d.ts +2 -0
- package/dist/cjs/icons/tsx/image.d.ts +2 -0
- package/dist/cjs/icons/tsx/index.d.ts +127 -0
- package/dist/cjs/icons/tsx/info.d.ts +2 -0
- package/dist/cjs/icons/tsx/instagram.d.ts +2 -0
- package/dist/cjs/icons/tsx/jordskifterett.d.ts +2 -0
- package/dist/cjs/icons/tsx/key.d.ts +2 -0
- package/dist/cjs/icons/tsx/lagmannsrett.d.ts +2 -0
- package/dist/cjs/icons/tsx/language.d.ts +2 -0
- package/dist/cjs/icons/tsx/link.d.ts +2 -0
- package/dist/cjs/icons/tsx/linkOff.d.ts +2 -0
- package/dist/cjs/icons/tsx/linkedIn.d.ts +2 -0
- package/dist/cjs/icons/tsx/list.d.ts +2 -0
- package/dist/cjs/icons/tsx/listAlt.d.ts +2 -0
- package/dist/cjs/icons/tsx/location.d.ts +2 -0
- package/dist/cjs/icons/tsx/lock.d.ts +2 -0
- package/dist/cjs/icons/tsx/lockOpen.d.ts +2 -0
- package/dist/cjs/icons/tsx/login.d.ts +2 -0
- package/dist/cjs/icons/tsx/logout.d.ts +2 -0
- package/dist/cjs/icons/tsx/mail.d.ts +2 -0
- package/dist/cjs/icons/tsx/mailOpen.d.ts +2 -0
- package/dist/cjs/icons/tsx/menu.d.ts +2 -0
- package/dist/cjs/icons/tsx/minus.d.ts +2 -0
- package/dist/cjs/icons/tsx/minusCircled.d.ts +2 -0
- package/dist/cjs/icons/tsx/moreHorizontal.d.ts +2 -0
- package/dist/cjs/icons/tsx/moreVertical.d.ts +2 -0
- package/dist/cjs/icons/tsx/notarial.d.ts +2 -0
- package/dist/cjs/icons/tsx/notifications.d.ts +2 -0
- package/dist/cjs/icons/tsx/notificationsOff.d.ts +2 -0
- package/dist/cjs/icons/tsx/onlineMeeting.d.ts +2 -0
- package/dist/cjs/icons/tsx/openExternal.d.ts +2 -0
- package/dist/cjs/icons/tsx/pdf.d.ts +2 -0
- package/dist/cjs/icons/tsx/person.d.ts +2 -0
- package/dist/cjs/icons/tsx/personAdd.d.ts +2 -0
- package/dist/cjs/icons/tsx/pin.d.ts +2 -0
- package/dist/cjs/icons/tsx/plus.d.ts +2 -0
- package/dist/cjs/icons/tsx/plusCircled.d.ts +2 -0
- package/dist/cjs/icons/tsx/print.d.ts +2 -0
- package/dist/cjs/icons/tsx/property.d.ts +2 -0
- package/dist/cjs/icons/tsx/publish.d.ts +2 -0
- package/dist/cjs/icons/tsx/questionAnswer.d.ts +2 -0
- package/dist/cjs/icons/tsx/receipt.d.ts +2 -0
- package/dist/cjs/icons/tsx/redo.d.ts +2 -0
- package/dist/cjs/icons/tsx/refresh.d.ts +2 -0
- package/dist/cjs/icons/tsx/replay.d.ts +2 -0
- package/dist/cjs/icons/tsx/search.d.ts +2 -0
- package/dist/cjs/icons/tsx/settings.d.ts +2 -0
- package/dist/cjs/icons/tsx/sms.d.ts +2 -0
- package/dist/cjs/icons/tsx/star.d.ts +2 -0
- package/dist/cjs/icons/tsx/starFilled.d.ts +2 -0
- package/dist/cjs/icons/tsx/sync.d.ts +2 -0
- package/dist/cjs/icons/tsx/time.d.ts +2 -0
- package/dist/cjs/icons/tsx/tingrett.d.ts +2 -0
- package/dist/cjs/icons/tsx/tip.d.ts +2 -0
- package/dist/cjs/icons/tsx/trash.d.ts +2 -0
- package/dist/cjs/icons/tsx/twitter.d.ts +2 -0
- package/dist/cjs/icons/tsx/undo.d.ts +2 -0
- package/dist/cjs/icons/tsx/unfoldLess.d.ts +2 -0
- package/dist/cjs/icons/tsx/unfoldMore.d.ts +2 -0
- package/dist/cjs/icons/tsx/upload.d.ts +2 -0
- package/dist/cjs/icons/tsx/visibilityOff.d.ts +2 -0
- package/dist/cjs/icons/tsx/visibilityOn.d.ts +2 -0
- package/dist/cjs/icons/tsx/warning.d.ts +2 -0
- package/dist/cjs/icons/tsx/zoomIn.d.ts +2 -0
- package/dist/cjs/icons/tsx/zoomOut.d.ts +2 -0
- package/dist/cjs/icons/utils/StyledSvg.d.ts +1 -0
- package/dist/cjs/icons/utils/index.d.ts +2 -0
- package/dist/cjs/icons/utils/propTypes.d.ts +5 -0
- package/dist/cjs/index.d.ts +3 -1
- package/dist/cjs/index.js +3499 -766
- package/dist/cjs/types/BaseComponentProps.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumb.tokens.js +8 -7
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +19 -19
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -1
- package/dist/components/Button/Button.d.ts +1 -2
- package/dist/components/Button/Button.js +8 -8
- package/dist/components/Button/Button.stories.d.ts +2 -3
- package/dist/components/Button/Button.types.d.ts +2 -3
- package/dist/components/Card/Card.stories.d.ts +0 -1
- package/dist/components/Card/CardAccordion/CardAccordion.d.ts +0 -1
- package/dist/components/Card/CardAccordion/CardAccordionBody.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.styles.d.ts +0 -1
- package/dist/components/Checkbox/CheckboxGroup.d.ts +0 -1
- package/dist/components/Checkbox/CheckboxGroup.stories.d.ts +0 -1
- package/dist/components/Chip/Chip.d.ts +0 -1
- package/dist/components/Chip/Chip.js +2 -2
- package/dist/components/Chip/Chip.stories.d.ts +0 -1
- package/dist/components/Chip/ChipGroup.stories.d.ts +0 -1
- package/dist/components/Datepicker/Datepicker.d.ts +0 -1
- package/dist/components/Datepicker/Datepicker.js +4 -2
- package/dist/components/Datepicker/Datepicker.stories.d.ts +0 -1
- package/dist/components/DescriptionList/DescriptionList.d.ts +0 -1
- package/dist/components/DescriptionList/DescriptionList.stories.d.ts +0 -1
- package/dist/components/DescriptionList/DescriptionListDesc.d.ts +3 -5
- package/dist/components/DescriptionList/DescriptionListDesc.js +6 -10
- package/dist/components/DescriptionList/DescriptionListDesc.tokens.js +7 -4
- package/dist/components/DescriptionList/DescriptionListGroup.d.ts +0 -1
- package/dist/components/Divider/Divider.d.ts +0 -1
- package/dist/components/Divider/Divider.stories.d.ts +0 -1
- package/dist/components/Drawer/Drawer.js +2 -2
- package/dist/components/Drawer/Drawer.stories.d.ts +0 -1
- package/dist/components/GlobalMessage/GlobalMessage.d.ts +0 -1
- package/dist/components/GlobalMessage/GlobalMessage.js +5 -5
- package/dist/components/GlobalMessage/GlobalMessage.stories.d.ts +0 -1
- package/dist/components/GlobalMessage/GlobalMessage.tokens.d.ts +4 -9
- package/dist/components/GlobalMessage/GlobalMessage.tokens.js +8 -7
- package/dist/components/Icon/Icon.d.ts +13 -0
- package/dist/components/Icon/Icon.js +50 -0
- package/dist/components/Icon/Icon.stories.d.ts +21 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/InputMessage/InputMessage.d.ts +0 -1
- package/dist/components/InputMessage/InputMessage.js +5 -5
- package/dist/components/InputMessage/InputMessage.stories.d.ts +0 -1
- package/dist/components/InternalHeader/InternalHeader.d.ts +0 -1
- package/dist/components/InternalHeader/InternalHeader.js +3 -3
- package/dist/components/InternalHeader/InternalHeader.stories.d.ts +0 -1
- package/dist/components/InternalHeader/InternalHeader.styles.d.ts +0 -1
- package/dist/components/InternalHeader/InternalHeader.types.d.ts +2 -3
- package/dist/components/List/List.d.ts +0 -1
- package/dist/components/List/List.stories.d.ts +0 -1
- package/dist/components/LocalMessage/LocalMessage.d.ts +0 -1
- package/dist/components/LocalMessage/LocalMessage.js +5 -5
- package/dist/components/LocalMessage/LocalMessage.stories.d.ts +0 -1
- package/dist/components/LocalMessage/LocalMessage.tokens.d.ts +7 -18
- package/dist/components/LocalMessage/LocalMessage.tokens.js +11 -11
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/Modal.stories.d.ts +0 -1
- package/dist/components/Modal/ModalBody.d.ts +0 -1
- package/dist/components/OverflowMenu/OverflowMenu.d.ts +0 -1
- package/dist/components/OverflowMenu/OverflowMenu.js +3 -3
- package/dist/components/OverflowMenu/OverflowMenu.stories.d.ts +0 -1
- package/dist/components/OverflowMenu/OverflowMenu.types.d.ts +3 -4
- package/dist/components/OverflowMenu/OverflowMenuItem.d.ts +4 -7
- package/dist/components/OverflowMenu/OverflowMenuItem.js +10 -14
- package/dist/components/Pagination/Pagination.js +12 -12
- package/dist/components/Pagination/Pagination.stories.d.ts +0 -1
- package/dist/components/Popover/Popover.js +2 -2
- package/dist/components/Popover/Popover.stories.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.styles.d.ts +0 -1
- package/dist/components/RadioButton/RadioButtonGroup.stories.d.ts +0 -1
- package/dist/components/Search/Search.js +10 -4
- package/dist/components/Search/Search.stories.d.ts +0 -1
- package/dist/components/Search/Search.tokens.d.ts +13 -1
- package/dist/components/Search/Search.tokens.js +16 -3
- package/dist/components/Select/CustomSelect.stories.d.ts +66 -0
- package/dist/components/Select/MultiSelect.stories.d.ts +1 -2
- package/dist/components/Select/Select.d.ts +4 -2
- package/dist/components/Select/Select.js +30 -9
- package/dist/components/Select/Select.stories.d.ts +1 -2
- package/dist/components/Select/Select.styles.d.ts +0 -3
- package/dist/components/Select/Select.styles.js +12 -22
- package/dist/components/Select/Select.tokens.js +3 -0
- package/dist/components/SkipToContent/SkipToContent.d.ts +0 -1
- package/dist/components/SkipToContent/SkipToContent.stories.d.ts +0 -1
- package/dist/components/Spinner/Spinner.d.ts +0 -1
- package/dist/components/Spinner/Spinner.stories.d.ts +0 -1
- package/dist/components/Table/SortCell.js +15 -15
- package/dist/components/Table/Table.stories.d.ts +0 -1
- package/dist/components/Tabs/Tab.d.ts +3 -4
- package/dist/components/Tabs/Tab.js +6 -6
- package/dist/components/Tabs/TabPanel.d.ts +0 -1
- package/dist/components/Tag/Tag.d.ts +0 -1
- package/dist/components/Tag/Tag.stories.d.ts +0 -1
- package/dist/components/TextInput/CharCounter.d.ts +0 -1
- package/dist/components/TextInput/TextInput.js +18 -2
- package/dist/components/TextInput/TextInput.stories.d.ts +0 -1
- package/dist/components/TextInput/TextInput.styles.d.ts +0 -1
- package/dist/components/ToggleButton/ToggleButton.d.ts +3 -4
- package/dist/components/ToggleButton/ToggleButton.js +6 -6
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +6 -2
- package/dist/components/ToggleButton/ToggleButtonGroup.d.ts +0 -1
- package/dist/components/ToggleButton/ToggleButtonGroup.stories.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -1
- package/dist/components/Typography/Body.stories.d.ts +0 -1
- package/dist/components/Typography/Examples.stories.d.ts +0 -1
- package/dist/components/Typography/Typography.d.ts +1 -0
- package/dist/components/Typography/Typography.js +9 -9
- package/dist/components/Typography/Typography.stories.d.ts +0 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +11 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +31 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +16 -0
- package/dist/components/VisuallyHidden/index.d.ts +1 -0
- package/dist/helpers/Chevron/AnimatedChevronUpDown.d.ts +0 -1
- package/dist/helpers/Input/Input.styles.d.ts +0 -1
- package/dist/helpers/RequiredMarker/RequiredMarker.d.ts +0 -1
- package/dist/hooks/useFloatPosition.d.ts +0 -1
- package/dist/hooks/useFocusTrap.d.ts +0 -1
- package/dist/icons/icons.stories.d.ts +5 -0
- package/dist/icons/tsx/apps.d.ts +2 -0
- package/dist/icons/tsx/apps.js +25 -0
- package/dist/icons/tsx/archive.d.ts +2 -0
- package/dist/icons/tsx/archive.js +27 -0
- package/dist/icons/tsx/arrowDown.d.ts +2 -0
- package/dist/icons/tsx/arrowDown.js +25 -0
- package/dist/icons/tsx/arrowLeft.d.ts +2 -0
- package/dist/icons/tsx/arrowLeft.js +25 -0
- package/dist/icons/tsx/arrowRight.d.ts +2 -0
- package/dist/icons/tsx/arrowRight.js +25 -0
- package/dist/icons/tsx/arrowUp.d.ts +2 -0
- package/dist/icons/tsx/arrowUp.js +25 -0
- package/dist/icons/tsx/attachment.d.ts +2 -0
- package/dist/icons/tsx/attachment.js +25 -0
- package/dist/icons/tsx/block.d.ts +2 -0
- package/dist/icons/tsx/block.js +25 -0
- package/dist/icons/tsx/book.d.ts +2 -0
- package/dist/icons/tsx/book.js +27 -0
- package/dist/icons/tsx/build.d.ts +2 -0
- package/dist/icons/tsx/build.js +25 -0
- package/dist/icons/tsx/buildCircled.d.ts +2 -0
- package/dist/icons/tsx/buildCircled.js +31 -0
- package/dist/icons/tsx/calendar.d.ts +2 -0
- package/dist/icons/tsx/calendar.js +25 -0
- package/dist/icons/tsx/calendarMonth.d.ts +2 -0
- package/dist/icons/tsx/calendarMonth.js +25 -0
- package/dist/icons/tsx/calendarViewDay.d.ts +2 -0
- package/dist/icons/tsx/calendarViewDay.js +25 -0
- package/dist/icons/tsx/calendarViewMonth.d.ts +2 -0
- package/dist/icons/tsx/calendarViewMonth.js +25 -0
- package/dist/icons/tsx/calendarViewWeek.d.ts +2 -0
- package/dist/icons/tsx/calendarViewWeek.js +25 -0
- package/dist/icons/tsx/call.d.ts +2 -0
- package/dist/icons/tsx/call.js +25 -0
- package/dist/icons/tsx/chat.d.ts +2 -0
- package/dist/icons/tsx/chat.js +25 -0
- package/dist/icons/tsx/check.d.ts +2 -0
- package/dist/icons/tsx/check.js +25 -0
- package/dist/icons/tsx/checkCircled.d.ts +2 -0
- package/dist/icons/tsx/checkCircled.js +25 -0
- package/dist/icons/tsx/checklist.d.ts +2 -0
- package/dist/icons/tsx/checklist.js +25 -0
- package/dist/icons/tsx/chevronDown.d.ts +2 -0
- package/dist/icons/tsx/chevronDown.js +25 -0
- package/dist/icons/tsx/chevronFirst.d.ts +2 -0
- package/dist/icons/tsx/chevronFirst.js +25 -0
- package/dist/icons/tsx/chevronLargeLeft.d.ts +2 -0
- package/dist/icons/tsx/chevronLargeLeft.js +25 -0
- package/dist/icons/tsx/chevronLargeRight.d.ts +2 -0
- package/dist/icons/tsx/chevronLargeRight.js +25 -0
- package/dist/icons/tsx/chevronLast.d.ts +2 -0
- package/dist/icons/tsx/chevronLast.js +25 -0
- package/dist/icons/tsx/chevronLeft.d.ts +2 -0
- package/dist/icons/tsx/chevronLeft.js +25 -0
- package/dist/icons/tsx/chevronRight.d.ts +2 -0
- package/dist/icons/tsx/chevronRight.js +25 -0
- package/dist/icons/tsx/chevronUp.d.ts +2 -0
- package/dist/icons/tsx/chevronUp.js +25 -0
- package/dist/icons/tsx/close.d.ts +2 -0
- package/dist/icons/tsx/close.js +25 -0
- package/dist/icons/tsx/closeCircled.d.ts +2 -0
- package/dist/icons/tsx/closeCircled.js +25 -0
- package/dist/icons/tsx/cloud.d.ts +2 -0
- package/dist/icons/tsx/cloud.js +25 -0
- package/dist/icons/tsx/collapse.d.ts +2 -0
- package/dist/icons/tsx/collapse.js +25 -0
- package/dist/icons/tsx/comment.d.ts +2 -0
- package/dist/icons/tsx/comment.js +25 -0
- package/dist/icons/tsx/copy.d.ts +2 -0
- package/dist/icons/tsx/copy.js +25 -0
- package/dist/icons/tsx/court.d.ts +2 -0
- package/dist/icons/tsx/court.js +25 -0
- package/dist/icons/tsx/dateRange.d.ts +2 -0
- package/dist/icons/tsx/dateRange.js +25 -0
- package/dist/icons/tsx/deaths.d.ts +2 -0
- package/dist/icons/tsx/deaths.js +25 -0
- package/dist/icons/tsx/download.d.ts +2 -0
- package/dist/icons/tsx/download.js +25 -0
- package/dist/icons/tsx/downloadDone.d.ts +2 -0
- package/dist/icons/tsx/downloadDone.js +25 -0
- package/dist/icons/tsx/dragHandle.d.ts +2 -0
- package/dist/icons/tsx/dragHandle.js +25 -0
- package/dist/icons/tsx/edit.d.ts +2 -0
- package/dist/icons/tsx/edit.js +25 -0
- package/dist/icons/tsx/error.d.ts +2 -0
- package/dist/icons/tsx/error.js +25 -0
- package/dist/icons/tsx/exclaim.d.ts +2 -0
- package/dist/icons/tsx/exclaim.js +25 -0
- package/dist/icons/tsx/expand.d.ts +2 -0
- package/dist/icons/tsx/expand.js +25 -0
- package/dist/icons/tsx/facebook.d.ts +2 -0
- package/dist/icons/tsx/facebook.js +25 -0
- package/dist/icons/tsx/family.d.ts +2 -0
- package/dist/icons/tsx/family.js +25 -0
- package/dist/icons/tsx/feedback.d.ts +2 -0
- package/dist/icons/tsx/feedback.js +25 -0
- package/dist/icons/tsx/file.d.ts +2 -0
- package/dist/icons/tsx/file.js +25 -0
- package/dist/icons/tsx/fileAdd.d.ts +2 -0
- package/dist/icons/tsx/fileAdd.js +25 -0
- package/dist/icons/tsx/fileText.d.ts +2 -0
- package/dist/icons/tsx/fileText.js +25 -0
- package/dist/icons/tsx/filter.d.ts +2 -0
- package/dist/icons/tsx/filter.js +25 -0
- package/dist/icons/tsx/filterList.d.ts +2 -0
- package/dist/icons/tsx/filterList.js +25 -0
- package/dist/icons/tsx/filterListOff.d.ts +2 -0
- package/dist/icons/tsx/filterListOff.js +25 -0
- package/dist/icons/tsx/filterOff.d.ts +2 -0
- package/dist/icons/tsx/filterOff.js +25 -0
- package/dist/icons/tsx/findInPage.d.ts +2 -0
- package/dist/icons/tsx/findInPage.js +25 -0
- package/dist/icons/tsx/folder.d.ts +2 -0
- package/dist/icons/tsx/folder.js +25 -0
- package/dist/icons/tsx/folderAdd.d.ts +2 -0
- package/dist/icons/tsx/folderAdd.js +25 -0
- package/dist/icons/tsx/fullsceenExit.d.ts +2 -0
- package/dist/icons/tsx/fullsceenExit.js +25 -0
- package/dist/icons/tsx/fullscreen.d.ts +2 -0
- package/dist/icons/tsx/fullscreen.js +25 -0
- package/dist/icons/tsx/gavel.d.ts +2 -0
- package/dist/icons/tsx/gavel.js +31 -0
- package/dist/icons/tsx/help.d.ts +2 -0
- package/dist/icons/tsx/help.js +25 -0
- package/dist/icons/tsx/helpFilled.d.ts +2 -0
- package/dist/icons/tsx/helpFilled.js +25 -0
- package/dist/icons/tsx/home.d.ts +2 -0
- package/dist/icons/tsx/home.js +25 -0
- package/dist/icons/tsx/image.d.ts +2 -0
- package/dist/icons/tsx/image.js +25 -0
- package/dist/icons/tsx/index.d.ts +127 -0
- package/dist/icons/tsx/info.d.ts +2 -0
- package/dist/icons/tsx/info.js +25 -0
- package/dist/icons/tsx/instagram.d.ts +2 -0
- package/dist/icons/tsx/instagram.js +25 -0
- package/dist/icons/tsx/jordskifterett.d.ts +2 -0
- package/dist/icons/tsx/jordskifterett.js +26 -0
- package/dist/icons/tsx/key.d.ts +2 -0
- package/dist/icons/tsx/key.js +25 -0
- package/dist/icons/tsx/lagmannsrett.d.ts +2 -0
- package/dist/icons/tsx/lagmannsrett.js +25 -0
- package/dist/icons/tsx/language.d.ts +2 -0
- package/dist/icons/tsx/language.js +23 -0
- package/dist/icons/tsx/link.d.ts +2 -0
- package/dist/icons/tsx/link.js +25 -0
- package/dist/icons/tsx/linkOff.d.ts +2 -0
- package/dist/icons/tsx/linkOff.js +25 -0
- package/dist/icons/tsx/linkedIn.d.ts +2 -0
- package/dist/icons/tsx/linkedIn.js +27 -0
- package/dist/icons/tsx/list.d.ts +2 -0
- package/dist/icons/tsx/list.js +25 -0
- package/dist/icons/tsx/listAlt.d.ts +2 -0
- package/dist/icons/tsx/listAlt.js +25 -0
- package/dist/icons/tsx/location.d.ts +2 -0
- package/dist/icons/tsx/location.js +25 -0
- package/dist/icons/tsx/lock.d.ts +2 -0
- package/dist/icons/tsx/lock.js +25 -0
- package/dist/icons/tsx/lockOpen.d.ts +2 -0
- package/dist/icons/tsx/lockOpen.js +25 -0
- package/dist/icons/tsx/login.d.ts +2 -0
- package/dist/icons/tsx/login.js +25 -0
- package/dist/icons/tsx/logout.d.ts +2 -0
- package/dist/icons/tsx/logout.js +25 -0
- package/dist/icons/tsx/mail.d.ts +2 -0
- package/dist/icons/tsx/mail.js +25 -0
- package/dist/icons/tsx/mailOpen.d.ts +2 -0
- package/dist/icons/tsx/mailOpen.js +25 -0
- package/dist/icons/tsx/menu.d.ts +2 -0
- package/dist/icons/tsx/menu.js +25 -0
- package/dist/icons/tsx/minus.d.ts +2 -0
- package/dist/icons/tsx/minus.js +25 -0
- package/dist/icons/tsx/minusCircled.d.ts +2 -0
- package/dist/icons/tsx/minusCircled.js +25 -0
- package/dist/icons/tsx/moreHorizontal.d.ts +2 -0
- package/dist/icons/tsx/moreHorizontal.js +25 -0
- package/dist/icons/tsx/moreVertical.d.ts +2 -0
- package/dist/icons/tsx/moreVertical.js +25 -0
- package/dist/icons/tsx/notarial.d.ts +2 -0
- package/dist/icons/tsx/notarial.js +25 -0
- package/dist/icons/tsx/notifications.d.ts +2 -0
- package/dist/icons/tsx/notifications.js +25 -0
- package/dist/icons/tsx/notificationsOff.d.ts +2 -0
- package/dist/icons/tsx/notificationsOff.js +25 -0
- package/dist/icons/tsx/onlineMeeting.d.ts +2 -0
- package/dist/icons/tsx/onlineMeeting.js +25 -0
- package/dist/icons/tsx/openExternal.d.ts +2 -0
- package/dist/icons/tsx/openExternal.js +25 -0
- package/dist/icons/tsx/pdf.d.ts +2 -0
- package/dist/icons/tsx/pdf.js +25 -0
- package/dist/icons/tsx/person.d.ts +2 -0
- package/dist/icons/tsx/person.js +25 -0
- package/dist/icons/tsx/personAdd.d.ts +2 -0
- package/dist/icons/tsx/personAdd.js +25 -0
- package/dist/icons/tsx/pin.d.ts +2 -0
- package/dist/icons/tsx/pin.js +25 -0
- package/dist/icons/tsx/plus.d.ts +2 -0
- package/dist/icons/tsx/plus.js +25 -0
- package/dist/icons/tsx/plusCircled.d.ts +2 -0
- package/dist/icons/tsx/plusCircled.js +25 -0
- package/dist/icons/tsx/print.d.ts +2 -0
- package/dist/icons/tsx/print.js +27 -0
- package/dist/icons/tsx/property.d.ts +2 -0
- package/dist/icons/tsx/property.js +27 -0
- package/dist/icons/tsx/publish.d.ts +2 -0
- package/dist/icons/tsx/publish.js +25 -0
- package/dist/icons/tsx/questionAnswer.d.ts +2 -0
- package/dist/icons/tsx/questionAnswer.js +25 -0
- package/dist/icons/tsx/receipt.d.ts +2 -0
- package/dist/icons/tsx/receipt.js +25 -0
- package/dist/icons/tsx/redo.d.ts +2 -0
- package/dist/icons/tsx/redo.js +25 -0
- package/dist/icons/tsx/refresh.d.ts +2 -0
- package/dist/icons/tsx/refresh.js +25 -0
- package/dist/icons/tsx/replay.d.ts +2 -0
- package/dist/icons/tsx/replay.js +25 -0
- package/dist/icons/tsx/search.d.ts +2 -0
- package/dist/icons/tsx/search.js +25 -0
- package/dist/icons/tsx/settings.d.ts +2 -0
- package/dist/icons/tsx/settings.js +25 -0
- package/dist/icons/tsx/sms.d.ts +2 -0
- package/dist/icons/tsx/sms.js +25 -0
- package/dist/icons/tsx/star.d.ts +2 -0
- package/dist/icons/tsx/star.js +25 -0
- package/dist/icons/tsx/starFilled.d.ts +2 -0
- package/dist/icons/tsx/starFilled.js +25 -0
- package/dist/icons/tsx/sync.d.ts +2 -0
- package/dist/icons/tsx/sync.js +25 -0
- package/dist/icons/tsx/time.d.ts +2 -0
- package/dist/icons/tsx/time.js +25 -0
- package/dist/icons/tsx/tingrett.d.ts +2 -0
- package/dist/icons/tsx/tingrett.js +25 -0
- package/dist/icons/tsx/tip.d.ts +2 -0
- package/dist/icons/tsx/tip.js +25 -0
- package/dist/icons/tsx/trash.d.ts +2 -0
- package/dist/icons/tsx/trash.js +25 -0
- package/dist/icons/tsx/twitter.d.ts +2 -0
- package/dist/icons/tsx/twitter.js +25 -0
- package/dist/icons/tsx/undo.d.ts +2 -0
- package/dist/icons/tsx/undo.js +25 -0
- package/dist/icons/tsx/unfoldLess.d.ts +2 -0
- package/dist/icons/tsx/unfoldLess.js +25 -0
- package/dist/icons/tsx/unfoldMore.d.ts +2 -0
- package/dist/icons/tsx/unfoldMore.js +25 -0
- package/dist/icons/tsx/upload.d.ts +2 -0
- package/dist/icons/tsx/upload.js +25 -0
- package/dist/icons/tsx/visibilityOff.d.ts +2 -0
- package/dist/icons/tsx/visibilityOff.js +25 -0
- package/dist/icons/tsx/visibilityOn.d.ts +2 -0
- package/dist/icons/tsx/visibilityOn.js +25 -0
- package/dist/icons/tsx/warning.d.ts +2 -0
- package/dist/icons/tsx/warning.js +27 -0
- package/dist/icons/tsx/zoomIn.d.ts +2 -0
- package/dist/icons/tsx/zoomIn.js +25 -0
- package/dist/icons/tsx/zoomOut.d.ts +2 -0
- package/dist/icons/tsx/zoomOut.js +25 -0
- package/dist/icons/utils/StyledSvg.d.ts +1 -0
- package/dist/icons/utils/StyledSvg.js +8 -0
- package/dist/icons/utils/index.d.ts +2 -0
- package/dist/icons/utils/propTypes.d.ts +5 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +129 -1
- package/dist/types/BaseComponentProps.d.ts +1 -1
- package/package.json +3 -5
- package/dist/cjs/components/IconWrapper/IconWrapper.d.ts +0 -19
- package/dist/cjs/components/IconWrapper/IconWrapper.stories.d.ts +0 -22
- package/dist/cjs/components/IconWrapper/index.d.ts +0 -1
- package/dist/components/IconWrapper/IconWrapper.d.ts +0 -19
- package/dist/components/IconWrapper/IconWrapper.js +0 -42
- package/dist/components/IconWrapper/IconWrapper.stories.d.ts +0 -22
- package/dist/components/IconWrapper/index.d.ts +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BaseComponentPropsWithChildren } from '../../types';
|
|
3
2
|
export declare type BreadcrumbsProps = BaseComponentPropsWithChildren<HTMLElement, {
|
|
4
3
|
/** Spesifiserer om versjonen for små skjermer skal vises; den viser `<Breadcrumb />` kun til den forrige siden. */
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Button: import("react").ForwardRefExoticComponent<{
|
|
3
2
|
htmlProps?: Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "onClick" | "onFocus" | "onBlur" | "type"> | undefined;
|
|
4
3
|
} & Pick<Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "onClick" | "onFocus" | "onBlur" | "type">, "id" | "className"> & {
|
|
@@ -8,7 +7,7 @@ export declare const Button: import("react").ForwardRefExoticComponent<{
|
|
|
8
7
|
iconPosition?: import("./Button.types").IconPosition | undefined;
|
|
9
8
|
appearance?: import("./Button.types").ButtonAppearance | undefined;
|
|
10
9
|
loading?: boolean | undefined;
|
|
11
|
-
|
|
10
|
+
icon?: import("../../icons/utils").SvgIcon | undefined;
|
|
12
11
|
fullWidth?: boolean | undefined;
|
|
13
12
|
href?: string | undefined;
|
|
14
13
|
target?: string | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ButtonProps } from '.';
|
|
3
2
|
declare const _default: {
|
|
4
3
|
title: string;
|
|
@@ -11,7 +10,7 @@ declare const _default: {
|
|
|
11
10
|
iconPosition?: import("./Button.types").IconPosition | undefined;
|
|
12
11
|
appearance?: import("./Button.types").ButtonAppearance | undefined;
|
|
13
12
|
loading?: boolean | undefined;
|
|
14
|
-
|
|
13
|
+
icon?: import("../../icons/utils").SvgIcon | undefined;
|
|
15
14
|
fullWidth?: boolean | undefined;
|
|
16
15
|
href?: string | undefined;
|
|
17
16
|
target?: string | undefined;
|
|
@@ -56,7 +55,7 @@ export declare const OverviewSizes: (args: ButtonProps) => JSX.Element;
|
|
|
56
55
|
export declare const OverviewLoading: (args: ButtonProps) => JSX.Element;
|
|
57
56
|
export declare const OverviewFullWidth: (args: ButtonProps) => JSX.Element;
|
|
58
57
|
export declare const Default: (args: ButtonProps) => JSX.Element;
|
|
59
|
-
export declare const
|
|
58
|
+
export declare const TextWithIcon: (args: ButtonProps) => JSX.Element;
|
|
60
59
|
export declare const Icon: (args: ButtonProps) => JSX.Element;
|
|
61
60
|
export declare const Ghost: (args: ButtonProps) => JSX.Element;
|
|
62
61
|
export declare const Borderless: (args: ButtonProps) => JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { SvgIconTypeMap } from '@mui/material/SvgIcon';
|
|
2
|
-
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
3
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { SvgIcon } from '../../icons/utils/propTypes';
|
|
4
3
|
import { BaseComponentProps } from '../../types';
|
|
5
4
|
export declare type ButtonPurpose = 'primary' | 'secondary' | 'danger';
|
|
6
5
|
export declare type ButtonSize = 'tiny' | 'small' | 'medium' | 'large';
|
|
@@ -21,7 +20,7 @@ export declare type ButtonProps = BaseComponentProps<HTMLButtonElement, {
|
|
|
21
20
|
/**Indikerer en loading-knapp. */
|
|
22
21
|
loading?: boolean;
|
|
23
22
|
/**Ikonet som ligger i knappen. */
|
|
24
|
-
|
|
23
|
+
icon?: SvgIcon;
|
|
25
24
|
/**Knapp med full bredde. */
|
|
26
25
|
fullWidth?: boolean;
|
|
27
26
|
/**URL for knapper som skal brukes som lenke. Knappen blir til et `<a>`-element. */
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Checkbox: import("react").ForwardRefExoticComponent<{
|
|
3
2
|
htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "aria-describedby" | "name" | "checked" | "defaultChecked" | "value" | "defaultValue" | "onChange" | "onBlur"> | undefined;
|
|
4
3
|
} & Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "aria-describedby" | "name" | "checked" | "defaultChecked" | "value" | "defaultValue" | "onChange" | "onBlur">, "id" | "className"> & {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CheckboxProps } from './Checkbox.types';
|
|
3
2
|
export declare const CustomCheckbox: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
4
3
|
export declare const Input: import("styled-components").StyledComponent<"input", any, {
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
3
|
-
import { SvgIconTypeMap } from '@mui/material';
|
|
4
1
|
import { BaseComponentPropsWithChildren } from '../../types';
|
|
2
|
+
import { SvgIcon } from '../../icons/utils';
|
|
5
3
|
export declare type DescriptionListDescProps = BaseComponentPropsWithChildren<HTMLElement, {
|
|
6
4
|
/**Ikon som vises ved siden av teksten. */
|
|
7
|
-
|
|
5
|
+
icon?: SvgIcon;
|
|
8
6
|
}>;
|
|
9
7
|
export declare const DescriptionListDesc: import("react").ForwardRefExoticComponent<{
|
|
10
8
|
htmlProps?: import("react").HTMLAttributes<HTMLElement> | undefined;
|
|
11
9
|
} & Pick<import("react").HTMLAttributes<HTMLElement>, "className" | "id"> & {
|
|
12
10
|
/**Ikon som vises ved siden av teksten. */
|
|
13
|
-
|
|
11
|
+
icon?: SvgIcon | undefined;
|
|
14
12
|
} & {
|
|
15
13
|
children?: import("react").ReactNode;
|
|
16
14
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSObject } from 'styled-components';
|
|
2
|
+
import { ErrorIcon, InfoIcon, WarningIcon } from '../../icons/tsx';
|
|
2
3
|
export declare const globalMessageTokens: {
|
|
3
4
|
container: {
|
|
4
5
|
base: CSSObject;
|
|
@@ -21,21 +22,15 @@ export declare const globalMessageTokens: {
|
|
|
21
22
|
icon: {
|
|
22
23
|
marginRight: string;
|
|
23
24
|
info: {
|
|
24
|
-
icon:
|
|
25
|
-
muiName: string;
|
|
26
|
-
};
|
|
25
|
+
icon: typeof InfoIcon;
|
|
27
26
|
color: string;
|
|
28
27
|
};
|
|
29
28
|
danger: {
|
|
30
|
-
icon:
|
|
31
|
-
muiName: string;
|
|
32
|
-
};
|
|
29
|
+
icon: typeof ErrorIcon;
|
|
33
30
|
color: string;
|
|
34
31
|
};
|
|
35
32
|
warning: {
|
|
36
|
-
icon:
|
|
37
|
-
muiName: string;
|
|
38
|
-
};
|
|
33
|
+
icon: typeof WarningIcon;
|
|
39
34
|
color: string;
|
|
40
35
|
};
|
|
41
36
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
import { BaseComponentProps } from '../../types';
|
|
3
|
+
import { SvgIcon } from '../../icons/utils/propTypes';
|
|
4
|
+
export declare type IconSize = 'small' | 'medium' | 'large' | 'inherit';
|
|
5
|
+
export declare type IconProps = BaseComponentProps<SVGSVGElement, {
|
|
6
|
+
/**Ikonet importert fra `@norges-domstoler/dds-components`. */
|
|
7
|
+
icon: SvgIcon;
|
|
8
|
+
/**Størrelsen på ikonet. */
|
|
9
|
+
iconSize?: IconSize;
|
|
10
|
+
/**Fargen på ikonet. */
|
|
11
|
+
color?: Property.Color;
|
|
12
|
+
}>;
|
|
13
|
+
export declare function Icon(props: IconProps): JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Icon, IconProps } from '.';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: typeof Icon;
|
|
5
|
+
argTypes: {
|
|
6
|
+
color: {
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
parameters: {
|
|
13
|
+
controls: {
|
|
14
|
+
exclude: string[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
export declare const Overview: (args: IconProps) => JSX.Element;
|
|
20
|
+
export declare const Default: (args: IconProps) => JSX.Element;
|
|
21
|
+
export declare const Inherit: (args: IconProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Icon';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
2
|
-
import { SvgIconTypeMap } from '@mui/material/SvgIcon';
|
|
3
1
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { SvgIcon } from '../../icons/utils';
|
|
4
3
|
import { BaseComponentProps } from '../../types';
|
|
5
4
|
declare type NavigationLinkProps = {
|
|
6
5
|
href: string;
|
|
@@ -9,7 +8,7 @@ declare type NavigationLinkProps = {
|
|
|
9
8
|
declare type ContextMenuElementProps = {
|
|
10
9
|
title: string;
|
|
11
10
|
href?: string;
|
|
12
|
-
|
|
11
|
+
icon?: SvgIcon;
|
|
13
12
|
onClick?: () => void;
|
|
14
13
|
} & (AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>);
|
|
15
14
|
declare type InternaHeaderUserProps = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from 'styled-components';
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
|
+
import { ErrorIcon, TipIcon, InfoIcon, WarningIcon, CheckCircledIcon } from '../../icons/tsx';
|
|
3
4
|
export declare const localMessageTokens: {
|
|
4
5
|
container: {
|
|
5
6
|
base: CSSObject;
|
|
@@ -41,39 +42,27 @@ export declare const localMessageTokens: {
|
|
|
41
42
|
icon: {
|
|
42
43
|
marginRight: string;
|
|
43
44
|
info: {
|
|
44
|
-
icon:
|
|
45
|
-
muiName: string;
|
|
46
|
-
};
|
|
45
|
+
icon: typeof InfoIcon;
|
|
47
46
|
color: string;
|
|
48
47
|
};
|
|
49
48
|
danger: {
|
|
50
|
-
icon:
|
|
51
|
-
muiName: string;
|
|
52
|
-
};
|
|
49
|
+
icon: typeof ErrorIcon;
|
|
53
50
|
color: string;
|
|
54
51
|
};
|
|
55
52
|
warning: {
|
|
56
|
-
icon:
|
|
57
|
-
muiName: string;
|
|
58
|
-
};
|
|
53
|
+
icon: typeof WarningIcon;
|
|
59
54
|
color: string;
|
|
60
55
|
};
|
|
61
56
|
success: {
|
|
62
|
-
icon:
|
|
63
|
-
muiName: string;
|
|
64
|
-
};
|
|
57
|
+
icon: typeof CheckCircledIcon;
|
|
65
58
|
color: string;
|
|
66
59
|
};
|
|
67
60
|
tips: {
|
|
68
|
-
icon:
|
|
69
|
-
muiName: string;
|
|
70
|
-
};
|
|
61
|
+
icon: typeof TipIcon;
|
|
71
62
|
color: string;
|
|
72
63
|
};
|
|
73
64
|
confidential: {
|
|
74
|
-
icon:
|
|
75
|
-
muiName: string;
|
|
76
|
-
};
|
|
65
|
+
icon: typeof ErrorIcon;
|
|
77
66
|
color: string;
|
|
78
67
|
};
|
|
79
68
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BaseComponentPropsWithChildren } from '../../types';
|
|
3
2
|
export declare type ModalBodyProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
|
4
3
|
/**Gjør at innholdet kan scrolles. Det må eventuelt settes (max)bredde og (max)høyde styling på både denne subkomponenten og `<Modal />`. */
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { SvgIconTypeMap } from '@mui/material';
|
|
2
|
-
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
3
1
|
import { Placement } from '../../hooks/useFloatPosition';
|
|
4
2
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes, RefObject } from 'react';
|
|
5
3
|
import { BaseComponentProps } from '../../types';
|
|
4
|
+
import { SvgIcon } from '../../icons/utils';
|
|
6
5
|
export declare type OverflowMenuContextItem = {
|
|
7
6
|
title: string;
|
|
8
|
-
|
|
7
|
+
icon?: SvgIcon;
|
|
9
8
|
} & (AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>);
|
|
10
9
|
export declare type OverflowMenuNavItem = {
|
|
11
10
|
title: string;
|
|
12
|
-
|
|
11
|
+
icon?: SvgIcon;
|
|
13
12
|
} & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
14
13
|
declare type UserProps = {
|
|
15
14
|
name: string;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
3
|
-
import { SvgIconTypeMap } from '@mui/material/SvgIcon';
|
|
4
|
-
import { IconWrapper } from '../IconWrapper';
|
|
1
|
+
import { AnchorHTMLAttributes, ButtonHTMLAttributes, Dispatch, SetStateAction } from 'react';
|
|
5
2
|
import { BaseComponentProps } from '../../types';
|
|
3
|
+
import { SvgIcon } from '../../icons/utils';
|
|
6
4
|
export declare const Span: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
5
|
export declare const Link: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
8
|
-
export declare const StyledIconWrapper: import("styled-components").StyledComponent<typeof IconWrapper, any, {}, never>;
|
|
9
6
|
declare type BaseOverflowMenuItemProps = {
|
|
10
7
|
title: string;
|
|
11
|
-
|
|
8
|
+
icon?: SvgIcon;
|
|
12
9
|
focus?: boolean;
|
|
13
10
|
setFocus?: Dispatch<SetStateAction<number>>;
|
|
14
11
|
index?: number;
|
|
@@ -20,5 +17,5 @@ declare type AnchorOverflowMenuItemProps = BaseOverflowMenuItemProps & BaseCompo
|
|
|
20
17
|
declare type ButtonOverflowMenuItemProps = BaseOverflowMenuItemProps & BaseComponentProps<HTMLButtonElement, Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'>, ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
21
18
|
declare type OtherOverflowMenuItemProps = BaseOverflowMenuItemProps & BaseComponentProps<HTMLSpanElement>;
|
|
22
19
|
export declare type OverflowMenuItemProps = AnchorOverflowMenuItemProps | ButtonOverflowMenuItemProps | OtherOverflowMenuItemProps;
|
|
23
|
-
export declare const OverflowMenuItem:
|
|
20
|
+
export declare const OverflowMenuItem: import("react").ForwardRefExoticComponent<(AnchorOverflowMenuItemProps | ButtonOverflowMenuItemProps | Pick<OtherOverflowMenuItemProps, string>) & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
24
21
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const RadioButton: import("react").ForwardRefExoticComponent<{
|
|
3
2
|
htmlProps?: Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "readOnly" | "checked" | "value" | "required" | "onChange" | "aria-describedby"> | undefined;
|
|
4
3
|
} & Pick<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "name" | "readOnly" | "checked" | "value" | "required" | "onChange" | "aria-describedby">, "id" | "className"> & {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { RadioButtonProps } from './RadioButton.types';
|
|
3
2
|
export declare const CustomRadioButton: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
4
3
|
export declare const Input: import("styled-components").StyledComponent<"input", any, {
|
|
@@ -13,8 +13,20 @@ export declare const searchTokens: {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
icon: {
|
|
16
|
-
spaceTop: string;
|
|
17
16
|
spaceLeft: string;
|
|
17
|
+
small: {
|
|
18
|
+
size: string;
|
|
19
|
+
spaceTop: string;
|
|
20
|
+
};
|
|
21
|
+
medium: {
|
|
22
|
+
size: string;
|
|
23
|
+
spaceTop: string;
|
|
24
|
+
};
|
|
25
|
+
large: {
|
|
26
|
+
size: string;
|
|
27
|
+
spaceTop: string;
|
|
28
|
+
};
|
|
29
|
+
spaceTop: string;
|
|
18
30
|
};
|
|
19
31
|
iconWrapper: {
|
|
20
32
|
base: CSSObject;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SelectOption, SelectProps } from '.';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: <TOption extends Record<string, unknown>, IsMulti extends boolean = false>({ id, label, errorMessage, tip, required, readOnly, options, isMulti, value, defaultValue, width, closeMenuOnSelect, className, style, isDisabled, isClearable, placeholder, customOptionElement, customSingleValueElement, ...rest }: SelectProps<TOption, IsMulti>, ref: ((instance: import("react-select").SelectInstance<TOption, IsMulti, import("react-select").GroupBase<TOption>> | null) => void) | React.MutableRefObject<import("react-select").SelectInstance<TOption, IsMulti, import("react-select").GroupBase<TOption>> | null> | null) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
label: {
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
tip: {
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
errorMessage: {
|
|
18
|
+
control: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
width: {
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
placeholder: {
|
|
28
|
+
control: {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
isDisabled: {
|
|
33
|
+
control: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
isClearable: {
|
|
38
|
+
control: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
required: {
|
|
43
|
+
control: {
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
readOnly: {
|
|
48
|
+
control: {
|
|
49
|
+
type: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
isLoading: {
|
|
53
|
+
control: {
|
|
54
|
+
type: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
parameters: {
|
|
59
|
+
controls: {
|
|
60
|
+
exclude: string[];
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export default _default;
|
|
65
|
+
declare type SingleSelectProps = SelectProps<SelectOption, false>;
|
|
66
|
+
export declare const Overview: (args: SingleSelectProps) => JSX.Element;
|