@norges-domstoler/dds-components 4.3.0 → 5.2.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- 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/Stepper/Step.d.ts +20 -0
- package/dist/cjs/components/Stepper/Stepper.context.d.ts +6 -0
- package/dist/cjs/components/Stepper/Stepper.d.ts +11 -0
- package/dist/cjs/components/Stepper/Stepper.stories.d.ts +25 -0
- package/dist/cjs/components/Stepper/Stepper.tokens.d.ts +39 -0
- package/dist/cjs/components/Stepper/index.d.ts +2 -0
- 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 +0 -1
- package/dist/cjs/components/VisuallyHidden/VisuallyHidden.stories.d.ts +0 -1
- 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 +3672 -749
- 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 +1 -1
- 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/Stepper/Step.d.ts +20 -0
- package/dist/components/Stepper/Step.js +114 -0
- package/dist/components/Stepper/Stepper.context.d.ts +6 -0
- package/dist/components/Stepper/Stepper.context.js +10 -0
- package/dist/components/Stepper/Stepper.d.ts +11 -0
- package/dist/components/Stepper/Stepper.js +66 -0
- package/dist/components/Stepper/Stepper.stories.d.ts +25 -0
- package/dist/components/Stepper/Stepper.tokens.d.ts +39 -0
- package/dist/components/Stepper/Stepper.tokens.js +49 -0
- package/dist/components/Stepper/index.d.ts +2 -0
- 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 +0 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +0 -1
- 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 +130 -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
|
@@ -19,7 +19,7 @@ export declare type BaseComponentProps<TElement extends Element, TOtherProps ext
|
|
|
19
19
|
*
|
|
20
20
|
* {@link BaseComponentProps}
|
|
21
21
|
*/
|
|
22
|
-
export declare type BaseComponentPropsWithChildren<T extends Element, TProps extends Record<string, unknown>, THTMLProps extends HTMLAttributes<T> = HTMLAttributes<T>> = BaseComponentProps<T, PropsWithChildren<TProps>, THTMLProps>;
|
|
22
|
+
export declare type BaseComponentPropsWithChildren<T extends Element, TProps extends Record<string, unknown> = Record<string, unknown>, THTMLProps extends HTMLAttributes<T> = HTMLAttributes<T>> = BaseComponentProps<T, PropsWithChildren<TProps>, THTMLProps>;
|
|
23
23
|
export declare const joinClassNames: (...classNames: (string | undefined)[]) => string;
|
|
24
24
|
declare type GetBaseHTMLProps = {
|
|
25
25
|
<T extends Element>(id: HTMLAttributes<T>['id'], className: HTMLAttributes<T>['className'], htmlProps: HTMLAttributes<T> | undefined, unknownProps: object): HTMLAttributes<T> & object;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var colors = ddsBaseTokens.colors,
|
|
4
|
+
spacing = ddsBaseTokens.spacing,
|
|
5
|
+
fontPackages = ddsBaseTokens.fontPackages;
|
|
6
6
|
var iconBase = {
|
|
7
|
-
color:
|
|
8
|
-
marginLeft:
|
|
9
|
-
marginRight: Spacing.SizesDdsSpacingLocalX05
|
|
7
|
+
color: colors.DdsColorInteractiveBase,
|
|
8
|
+
marginLeft: spacing.SizesDdsSpacingLocalX05
|
|
10
9
|
};
|
|
11
|
-
var breadcrumbBase = Object.assign({},
|
|
10
|
+
var breadcrumbBase = Object.assign(Object.assign({}, fontPackages.body_sans_02.base), {
|
|
11
|
+
gap: spacing.SizesDdsSpacingLocalX05
|
|
12
|
+
});
|
|
12
13
|
var breadcrumbTokens = {
|
|
13
14
|
breadcrumb: {
|
|
14
15
|
base: breadcrumbBase
|
|
@@ -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. */
|
|
@@ -2,10 +2,10 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef, Children } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import ChevronRightOutlinedIcon from '@mui/icons-material/ChevronRightOutlined';
|
|
6
|
-
import ArrowBackOutlinedIcon from '@mui/icons-material/ArrowBackOutlined';
|
|
7
5
|
import { breadcrumbTokens } from './Breadcrumb.tokens.js';
|
|
8
|
-
import {
|
|
6
|
+
import { ArrowLeftIcon } from '../../icons/tsx/arrowLeft.js';
|
|
7
|
+
import { ChevronRightIcon } from '../../icons/tsx/chevronRight.js';
|
|
8
|
+
import { Icon } from '../Icon/Icon.js';
|
|
9
9
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
10
10
|
|
|
11
11
|
var List = styled.ol.withConfig({
|
|
@@ -16,14 +16,19 @@ var ListItem = styled.li.withConfig({
|
|
|
16
16
|
displayName: "Breadcrumbs__ListItem",
|
|
17
17
|
componentId: "sc-xdj21o-1"
|
|
18
18
|
})(["align-items:center;display:flex;", ""], breadcrumbTokens.breadcrumb.base);
|
|
19
|
-
var
|
|
20
|
-
|
|
19
|
+
var StyledIcon = styled(Icon).attrs(function (_ref) {
|
|
20
|
+
var _ref$iconSize = _ref.iconSize,
|
|
21
|
+
iconSize = _ref$iconSize === void 0 ? breadcrumbTokens.icon.size : _ref$iconSize,
|
|
22
|
+
_ref$color = _ref.color,
|
|
23
|
+
color = _ref$color === void 0 ? breadcrumbTokens.icon.base.color : _ref$color;
|
|
24
|
+
return {
|
|
25
|
+
iconSize: iconSize,
|
|
26
|
+
color: color
|
|
27
|
+
};
|
|
28
|
+
}).withConfig({
|
|
29
|
+
displayName: "Breadcrumbs__StyledIcon",
|
|
21
30
|
componentId: "sc-xdj21o-2"
|
|
22
31
|
})(["", ""], breadcrumbTokens.icon.base);
|
|
23
|
-
var BackIcon = styled(ArrowBackOutlinedIcon).withConfig({
|
|
24
|
-
displayName: "Breadcrumbs__BackIcon",
|
|
25
|
-
componentId: "sc-xdj21o-3"
|
|
26
|
-
})(["", ""], breadcrumbTokens.icon.base);
|
|
27
32
|
var Breadcrumbs = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
28
33
|
var smallScreen = props.smallScreen,
|
|
29
34
|
children = props.children,
|
|
@@ -32,21 +37,16 @@ var Breadcrumbs = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32
37
|
htmlProps = props.htmlProps,
|
|
33
38
|
rest = __rest(props, ["smallScreen", "children", "id", "className", "htmlProps"]);
|
|
34
39
|
|
|
35
|
-
var breadcrumbIconSize = breadcrumbTokens.icon.size;
|
|
36
40
|
var childrenArray = Children.toArray(children);
|
|
37
41
|
var breadcrumbChildren = smallScreen ? jsxs(ListItem, {
|
|
38
|
-
children: [jsx(
|
|
39
|
-
|
|
40
|
-
iconSize: breadcrumbIconSize,
|
|
41
|
-
color: breadcrumbTokens.icon.base.color
|
|
42
|
+
children: [jsx(StyledIcon, {
|
|
43
|
+
icon: ArrowLeftIcon
|
|
42
44
|
}), childrenArray[childrenArray.length - 2]]
|
|
43
45
|
}) : childrenArray.map(function (item, index) {
|
|
44
46
|
return jsxs(ListItem, {
|
|
45
|
-
children: [index !== 0
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
color: breadcrumbTokens.icon.base.color
|
|
49
|
-
}) : '', item]
|
|
47
|
+
children: [index !== 0 && jsx(StyledIcon, {
|
|
48
|
+
icon: ChevronRightIcon
|
|
49
|
+
}), item]
|
|
50
50
|
}, "breadcrumb-".concat(index));
|
|
51
51
|
});
|
|
52
52
|
return jsx("nav", Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest), {
|
|
@@ -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;
|
|
@@ -5,7 +5,7 @@ import { buttonTokens } from './Button.tokens.js';
|
|
|
5
5
|
import { StyledIconWrapperSpan, ButtonWrapper, Label } from './Button.styles.js';
|
|
6
6
|
import { Spinner } from '../Spinner/Spinner.js';
|
|
7
7
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
8
|
-
import {
|
|
8
|
+
import { Icon } from '../Icon/Icon.js';
|
|
9
9
|
|
|
10
10
|
var Button = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
11
11
|
var label = props.label,
|
|
@@ -23,18 +23,18 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
23
23
|
loading = _props$loading === void 0 ? false : _props$loading,
|
|
24
24
|
_props$fullWidth = props.fullWidth,
|
|
25
25
|
fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth,
|
|
26
|
-
|
|
26
|
+
icon = props.icon,
|
|
27
27
|
onClick = props.onClick,
|
|
28
28
|
onFocus = props.onFocus,
|
|
29
29
|
onBlur = props.onBlur,
|
|
30
30
|
id = props.id,
|
|
31
31
|
className = props.className,
|
|
32
32
|
htmlProps = props.htmlProps,
|
|
33
|
-
rest = __rest(props, ["label", "purpose", "size", "iconPosition", "appearance", "href", "target", "loading", "fullWidth", "
|
|
33
|
+
rest = __rest(props, ["label", "purpose", "size", "iconPosition", "appearance", "href", "target", "loading", "fullWidth", "icon", "onClick", "onFocus", "onBlur", "id", "className", "htmlProps"]);
|
|
34
34
|
|
|
35
35
|
var as = href ? 'a' : 'button';
|
|
36
36
|
var hasLabel = !!label;
|
|
37
|
-
var hasIcon = !!
|
|
37
|
+
var hasIcon = !!icon;
|
|
38
38
|
var wrapperProps = Object.assign(Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest)), {
|
|
39
39
|
href: href,
|
|
40
40
|
label: label,
|
|
@@ -56,14 +56,14 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
56
56
|
});
|
|
57
57
|
var isIconButton = !hasLabel && hasIcon;
|
|
58
58
|
|
|
59
|
-
var iconElement =
|
|
59
|
+
var iconElement = icon && jsx(StyledIconWrapperSpan, Object.assign({
|
|
60
60
|
iconPosition: isIconButton ? undefined : iconPosition,
|
|
61
61
|
size: size,
|
|
62
62
|
isHidden: hasIcon && loading
|
|
63
63
|
}, {
|
|
64
|
-
children: jsx(
|
|
65
|
-
|
|
66
|
-
iconSize: "
|
|
64
|
+
children: jsx(Icon, {
|
|
65
|
+
icon: icon,
|
|
66
|
+
iconSize: "inherit"
|
|
67
67
|
})
|
|
68
68
|
}));
|
|
69
69
|
|
|
@@ -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, {
|
|
@@ -4,9 +4,9 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
4
4
|
import { forwardRef, useState } from 'react';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { chipTokens } from './Chip.tokens.js';
|
|
7
|
-
import CloseOutlinedIcon from '@mui/icons-material/CloseOutlined';
|
|
8
7
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
9
8
|
import { Button } from '../Button/Button.js';
|
|
9
|
+
import { CloseIcon } from '../../icons/tsx/close.js';
|
|
10
10
|
|
|
11
11
|
var Container = styled.div.withConfig({
|
|
12
12
|
displayName: "Chip__Container",
|
|
@@ -45,7 +45,7 @@ var Chip = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
45
45
|
children: text
|
|
46
46
|
}), jsx(Button, {
|
|
47
47
|
size: "tiny",
|
|
48
|
-
|
|
48
|
+
icon: CloseIcon,
|
|
49
49
|
appearance: "borderless",
|
|
50
50
|
purpose: "secondary",
|
|
51
51
|
onClick: onClick,
|
|
@@ -18,7 +18,7 @@ var getWidth = function getWidth(type) {
|
|
|
18
18
|
var StyledInput = styled(StatefulInput).withConfig({
|
|
19
19
|
displayName: "Datepicker__StyledInput",
|
|
20
20
|
componentId: "sc-1ijxhje-0"
|
|
21
|
-
})(["::-webkit-calendar-picker-indicator{background-image:url(\"", "\");", " margin-left:0px;padding:0;top:50%;transform:translate(0,-50%);box-sizing:border-box;}::-webkit-calendar-picker-indicator:focus-visible{", "}::-webkit-inner-spin-button{display:none;}@media (prefers-reduced-motion:no-preference){::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{transition:0.2s;}}::-webkit-datetime-edit-day-field:focus,::-webkit-datetime-edit-month-field:focus,::-webkit-datetime-edit-year-field:focus,::-webkit-datetime-edit-hour-field:focus,::-webkit-datetime-edit-minute-field:focus{", "}"], CalendarIcon, datepickerTokens.calendarIndicator.base, datepickerTokens.calendarIndicator.focus.base, typographyTokens.selection.base);
|
|
21
|
+
})(["::-webkit-calendar-picker-indicator{background-image:url(\"", "\");", " margin-left:0px;padding:0;top:50%;transform:translate(0,-50%);box-sizing:border-box;}::-webkit-datetime-edit-fields-wrapper{padding:0;}::-webkit-calendar-picker-indicator:focus-visible{", "}::-webkit-inner-spin-button{display:none;}@media (prefers-reduced-motion:no-preference){::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{transition:0.2s;}}::-webkit-datetime-edit-day-field:focus,::-webkit-datetime-edit-month-field:focus,::-webkit-datetime-edit-year-field:focus,::-webkit-datetime-edit-hour-field:focus,::-webkit-datetime-edit-minute-field:focus{", "}"], CalendarIcon, datepickerTokens.calendarIndicator.base, datepickerTokens.calendarIndicator.focus.base, typographyTokens.selection.base);
|
|
22
22
|
var nextUniqueId = 0;
|
|
23
23
|
var Datepicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
24
24
|
var id = _a.id,
|
|
@@ -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>>;
|
|
@@ -3,32 +3,28 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import { descriptionListDescTokens } from './DescriptionListDesc.tokens.js';
|
|
6
|
-
import { IconWrapper } from '../IconWrapper/IconWrapper.js';
|
|
7
6
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
7
|
+
import { Icon } from '../Icon/Icon.js';
|
|
8
8
|
|
|
9
9
|
var DListDesc = styled.dd.withConfig({
|
|
10
10
|
displayName: "DescriptionListDesc__DListDesc",
|
|
11
11
|
componentId: "sc-1djcf0s-0"
|
|
12
|
-
})(["", "
|
|
13
|
-
var StyledIconWrapper = styled(IconWrapper).withConfig({
|
|
14
|
-
displayName: "DescriptionListDesc__StyledIconWrapper",
|
|
15
|
-
componentId: "sc-1djcf0s-1"
|
|
16
|
-
})(["", ""], descriptionListDescTokens.icon.base);
|
|
12
|
+
})(["", " margin-inline-start:0;"], descriptionListDescTokens.base);
|
|
17
13
|
var DescriptionListDesc = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
18
14
|
var children = props.children,
|
|
19
|
-
|
|
15
|
+
icon = props.icon,
|
|
20
16
|
id = props.id,
|
|
21
17
|
className = props.className,
|
|
22
18
|
htmlProps = props.htmlProps,
|
|
23
|
-
rest = __rest(props, ["children", "
|
|
19
|
+
rest = __rest(props, ["children", "icon", "id", "className", "htmlProps"]);
|
|
24
20
|
|
|
25
21
|
var dListDescProps = Object.assign(Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest)), {
|
|
26
22
|
children: children,
|
|
27
23
|
ref: ref
|
|
28
24
|
});
|
|
29
25
|
return jsxs(DListDesc, Object.assign({}, dListDescProps, {
|
|
30
|
-
children: [
|
|
31
|
-
|
|
26
|
+
children: [icon && jsx(Icon, {
|
|
27
|
+
icon: icon
|
|
32
28
|
}), " ", children]
|
|
33
29
|
}));
|
|
34
30
|
});
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { ddsBaseTokens, ddsReferenceTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
3
|
+
var spacing = ddsBaseTokens.spacing,
|
|
4
|
+
fontPackages = ddsBaseTokens.fontPackages;
|
|
5
5
|
var textDefault = ddsReferenceTokens.textDefault;
|
|
6
|
-
var base = Object.assign(Object.assign({},
|
|
6
|
+
var base = Object.assign(Object.assign({}, fontPackages.body_sans_03.base), {
|
|
7
|
+
display: 'flex',
|
|
8
|
+
alignItems: 'center',
|
|
9
|
+
gap: spacing.SizesDdsSpacingLocalX025,
|
|
7
10
|
color: textDefault.textColor
|
|
8
11
|
});
|
|
9
12
|
var iconBase = {
|
|
10
|
-
marginRight:
|
|
13
|
+
marginRight: spacing.SizesDdsSpacingLocalX025
|
|
11
14
|
};
|
|
12
15
|
var descriptionListDescTokens = {
|
|
13
16
|
base: base,
|
|
@@ -5,7 +5,6 @@ import { forwardRef, useState } from 'react';
|
|
|
5
5
|
import { createPortal } from 'react-dom';
|
|
6
6
|
import styled, { css } from 'styled-components';
|
|
7
7
|
import { drawerTokens } from './Drawer.tokens.js';
|
|
8
|
-
import CloseOutlinedIcon from '@mui/icons-material/CloseOutlined';
|
|
9
8
|
import { Paper } from '../../helpers/Paper/Paper.js';
|
|
10
9
|
import { useMountTransition } from '../../hooks/useMountTransition.js';
|
|
11
10
|
import { focusVisible } from '../../helpers/styling/focusVisible.js';
|
|
@@ -17,6 +16,7 @@ import { useOnKeyDown } from '../../hooks/useOnKeyDown.js';
|
|
|
17
16
|
import { useOnClickOutside } from '../../hooks/useOnClickOutside.js';
|
|
18
17
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
19
18
|
import { Typography } from '../Typography/Typography.js';
|
|
19
|
+
import { CloseIcon } from '../../icons/tsx/close.js';
|
|
20
20
|
|
|
21
21
|
var Container = styled(Paper).withConfig({
|
|
22
22
|
displayName: "Drawer__Container",
|
|
@@ -113,7 +113,7 @@ var Drawer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
113
113
|
appearance: "borderless",
|
|
114
114
|
onClick: onClose,
|
|
115
115
|
"aria-label": "Lukk",
|
|
116
|
-
|
|
116
|
+
icon: CloseIcon
|
|
117
117
|
})]
|
|
118
118
|
})), parentElement) : null;
|
|
119
119
|
});
|
|
@@ -2,11 +2,11 @@ import { slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBab
|
|
|
2
2
|
import { __rest } from 'tslib';
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
|
-
import CloseOutlinedIcon from '@mui/icons-material/CloseOutlined';
|
|
6
5
|
import { forwardRef, useState } from 'react';
|
|
7
6
|
import { globalMessageTokens } from './GlobalMessage.tokens.js';
|
|
8
7
|
import { Button } from '../Button/Button.js';
|
|
9
|
-
import {
|
|
8
|
+
import { CloseIcon } from '../../icons/tsx/close.js';
|
|
9
|
+
import { Icon } from '../Icon/Icon.js';
|
|
10
10
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
11
11
|
import { Typography } from '../Typography/Typography.js';
|
|
12
12
|
|
|
@@ -17,7 +17,7 @@ var Container = styled.div.withConfig({
|
|
|
17
17
|
var purpose = _ref.purpose;
|
|
18
18
|
return purpose && css(["", " ", ""], globalMessageTokens.container.base, globalMessageTokens.container[purpose].base);
|
|
19
19
|
});
|
|
20
|
-
var MessageIconWrapper = styled(
|
|
20
|
+
var MessageIconWrapper = styled(Icon).withConfig({
|
|
21
21
|
displayName: "GlobalMessage__MessageIconWrapper",
|
|
22
22
|
componentId: "sc-bf2l65-1"
|
|
23
23
|
})(["margin-right:", ";"], globalMessageTokens.icon.marginRight);
|
|
@@ -59,7 +59,7 @@ var GlobalMessage = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
59
59
|
closable: closable
|
|
60
60
|
}, {
|
|
61
61
|
children: [jsx(MessageIconWrapper, {
|
|
62
|
-
|
|
62
|
+
icon: globalMessageTokens.icon[purpose].icon,
|
|
63
63
|
color: globalMessageTokens.icon[purpose].color
|
|
64
64
|
}), children !== null && children !== void 0 ? children : jsx(Typography, Object.assign({
|
|
65
65
|
as: "span"
|
|
@@ -68,7 +68,7 @@ var GlobalMessage = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
68
68
|
}))]
|
|
69
69
|
})), jsx(ControlsContainer, {
|
|
70
70
|
children: closable && jsx(Button, {
|
|
71
|
-
|
|
71
|
+
icon: CloseIcon,
|
|
72
72
|
purpose: buttonPurpose,
|
|
73
73
|
appearance: "borderless",
|
|
74
74
|
onClick: function onClick() {
|
|
@@ -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
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { InfoIcon } from '../../icons/tsx/info.js';
|
|
3
|
+
import { WarningIcon } from '../../icons/tsx/warning.js';
|
|
4
|
+
import { ErrorIcon } from '../../icons/tsx/error.js';
|
|
5
5
|
|
|
6
6
|
var Colors = ddsBaseTokens.colors,
|
|
7
7
|
Spacing = ddsBaseTokens.spacing,
|
|
@@ -16,7 +16,8 @@ var containerBase = Object.assign(Object.assign({
|
|
|
16
16
|
var contentContainerBase = {
|
|
17
17
|
paddingRight: Spacing.SizesDdsSpacingLocalX15,
|
|
18
18
|
paddingTop: Spacing.SizesDdsSpacingLocalX075,
|
|
19
|
-
paddingBottom: Spacing.SizesDdsSpacingLocalX075
|
|
19
|
+
paddingBottom: Spacing.SizesDdsSpacingLocalX075,
|
|
20
|
+
gap: Spacing.SizesDdsSpacingLocalX075
|
|
20
21
|
};
|
|
21
22
|
var contentContainerWithClosableBase = {
|
|
22
23
|
paddingRight: Spacing.SizesDdsSpacingLocalX075
|
|
@@ -55,15 +56,15 @@ var globalMessageTokens = {
|
|
|
55
56
|
icon: {
|
|
56
57
|
marginRight: "".concat(Spacing.SizesDdsSpacingLocalX075),
|
|
57
58
|
info: {
|
|
58
|
-
icon:
|
|
59
|
+
icon: InfoIcon,
|
|
59
60
|
color: Colors.DdsColorInfoDarkest
|
|
60
61
|
},
|
|
61
62
|
danger: {
|
|
62
|
-
icon:
|
|
63
|
+
icon: ErrorIcon,
|
|
63
64
|
color: Colors.DdsColorDangerDarkest
|
|
64
65
|
},
|
|
65
66
|
warning: {
|
|
66
|
-
icon:
|
|
67
|
+
icon: WarningIcon,
|
|
67
68
|
color: Colors.DdsColorWarningDarkest
|
|
68
69
|
}
|
|
69
70
|
},
|
|
@@ -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;
|