@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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __rest } from 'tslib';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { StyledSvg } from '../utils/StyledSvg.js';
|
|
4
|
+
|
|
5
|
+
function VisibilityOffIcon(props) {
|
|
6
|
+
var title = props.title,
|
|
7
|
+
rest = __rest(props, ["title"]);
|
|
8
|
+
|
|
9
|
+
return jsxs(StyledSvg, Object.assign({
|
|
10
|
+
width: 24,
|
|
11
|
+
height: 24,
|
|
12
|
+
fill: "currentColor"
|
|
13
|
+
}, rest, {
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
viewBox: "0 0 24 24"
|
|
16
|
+
}, {
|
|
17
|
+
children: [title && jsx("title", {
|
|
18
|
+
children: title
|
|
19
|
+
}), jsx("path", {
|
|
20
|
+
d: "M12 6a9.77 9.77 0 018.82 5.5 9.648 9.648 0 01-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68C3.04 7.841 1.766 9.55 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5l2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 01-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4l1.75 1.75a4.6 4.6 0 00-.36 1.78 4.507 4.507 0 006.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 01-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z"
|
|
21
|
+
})]
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { VisibilityOffIcon };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __rest } from 'tslib';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { StyledSvg } from '../utils/StyledSvg.js';
|
|
4
|
+
|
|
5
|
+
function VisibilityOnIcon(props) {
|
|
6
|
+
var title = props.title,
|
|
7
|
+
rest = __rest(props, ["title"]);
|
|
8
|
+
|
|
9
|
+
return jsxs(StyledSvg, Object.assign({
|
|
10
|
+
width: 24,
|
|
11
|
+
height: 24,
|
|
12
|
+
fill: "currentColor"
|
|
13
|
+
}, rest, {
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
viewBox: "0 0 24 24"
|
|
16
|
+
}, {
|
|
17
|
+
children: [title && jsx("title", {
|
|
18
|
+
children: title
|
|
19
|
+
}), jsx("path", {
|
|
20
|
+
d: "M12 6a9.77 9.77 0 018.82 5.5A9.77 9.77 0 0112 17a9.77 9.77 0 01-8.82-5.5A9.77 9.77 0 0112 6zm0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5a2.5 2.5 0 110 5 2.5 2.5 0 010-5zm0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z"
|
|
21
|
+
})]
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { VisibilityOnIcon };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __rest } from 'tslib';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { StyledSvg } from '../utils/StyledSvg.js';
|
|
4
|
+
|
|
5
|
+
function WarningIcon(props) {
|
|
6
|
+
var title = props.title,
|
|
7
|
+
rest = __rest(props, ["title"]);
|
|
8
|
+
|
|
9
|
+
return jsxs(StyledSvg, Object.assign({
|
|
10
|
+
width: 24,
|
|
11
|
+
height: 24,
|
|
12
|
+
fill: "currentColor"
|
|
13
|
+
}, rest, {
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
viewBox: "0 0 24 24"
|
|
16
|
+
}, {
|
|
17
|
+
children: [title && jsx("title", {
|
|
18
|
+
children: title
|
|
19
|
+
}), jsx("path", {
|
|
20
|
+
d: "M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM19 14.9L14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1v5.8z"
|
|
21
|
+
}), jsx("path", {
|
|
22
|
+
d: "M12 17a1 1 0 100-2 1 1 0 000 2zM11 7h2v7h-2V7z"
|
|
23
|
+
})]
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { WarningIcon };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __rest } from 'tslib';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { StyledSvg } from '../utils/StyledSvg.js';
|
|
4
|
+
|
|
5
|
+
function ZoomInIcon(props) {
|
|
6
|
+
var title = props.title,
|
|
7
|
+
rest = __rest(props, ["title"]);
|
|
8
|
+
|
|
9
|
+
return jsxs(StyledSvg, Object.assign({
|
|
10
|
+
width: 24,
|
|
11
|
+
height: 24,
|
|
12
|
+
fill: "currentColor"
|
|
13
|
+
}, rest, {
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
viewBox: "0 0 24 24"
|
|
16
|
+
}, {
|
|
17
|
+
children: [title && jsx("title", {
|
|
18
|
+
children: title
|
|
19
|
+
}), jsx("path", {
|
|
20
|
+
d: "M15.5 14h-.79l-.28-.27A6.47 6.47 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm.5-7H9v2H7v1h2v2h1v-2h2V9h-2V7z"
|
|
21
|
+
})]
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { ZoomInIcon };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __rest } from 'tslib';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { StyledSvg } from '../utils/StyledSvg.js';
|
|
4
|
+
|
|
5
|
+
function ZoomOutIcon(props) {
|
|
6
|
+
var title = props.title,
|
|
7
|
+
rest = __rest(props, ["title"]);
|
|
8
|
+
|
|
9
|
+
return jsxs(StyledSvg, Object.assign({
|
|
10
|
+
width: 24,
|
|
11
|
+
height: 24,
|
|
12
|
+
fill: "currentColor"
|
|
13
|
+
}, rest, {
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
viewBox: "0 0 24 24"
|
|
16
|
+
}, {
|
|
17
|
+
children: [title && jsx("title", {
|
|
18
|
+
children: title
|
|
19
|
+
}), jsx("path", {
|
|
20
|
+
d: "M15.5 14h-.79l-.28-.27A6.47 6.47 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7V9z"
|
|
21
|
+
})]
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { ZoomOutIcon };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledSvg: import("styled-components").StyledComponent<"svg", any, {}, never>;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export * from './components/Search';
|
|
|
12
12
|
export * from './components/Typography';
|
|
13
13
|
export * from './components/Table';
|
|
14
14
|
export * from './components/Breadcrumbs';
|
|
15
|
-
export * from './components/
|
|
15
|
+
export * from './components/Icon';
|
|
16
16
|
export * from './components/Pagination';
|
|
17
17
|
export * from './components/Divider';
|
|
18
18
|
export * from './components/List';
|
|
@@ -33,3 +33,5 @@ export * from './components/Tabs';
|
|
|
33
33
|
export * from './components/Tag';
|
|
34
34
|
export * from './components/Chip';
|
|
35
35
|
export * from './components/VisuallyHidden';
|
|
36
|
+
export * from './icons/tsx';
|
|
37
|
+
export * from './components/Stepper';
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ export { Foot } from './components/Table/Foot.js';
|
|
|
20
20
|
export { TableWrapper } from './components/Table/TableWrapper.js';
|
|
21
21
|
export { Breadcrumb } from './components/Breadcrumbs/Breadcrumb.js';
|
|
22
22
|
export { Breadcrumbs } from './components/Breadcrumbs/Breadcrumbs.js';
|
|
23
|
-
export {
|
|
23
|
+
export { Icon } from './components/Icon/Icon.js';
|
|
24
24
|
export { Pagination } from './components/Pagination/Pagination.js';
|
|
25
25
|
export { Divider } from './components/Divider/Divider.js';
|
|
26
26
|
export { List } from './components/List/List.js';
|
|
@@ -59,3 +59,132 @@ export { Tag } from './components/Tag/Tag.js';
|
|
|
59
59
|
export { Chip } from './components/Chip/Chip.js';
|
|
60
60
|
export { ChipGroup } from './components/Chip/ChipGroup.js';
|
|
61
61
|
export { VisuallyHidden } from './components/VisuallyHidden/VisuallyHidden.js';
|
|
62
|
+
export { AppsIcon } from './icons/tsx/apps.js';
|
|
63
|
+
export { ArchiveIcon } from './icons/tsx/archive.js';
|
|
64
|
+
export { ArrowDownIcon } from './icons/tsx/arrowDown.js';
|
|
65
|
+
export { ArrowLeftIcon } from './icons/tsx/arrowLeft.js';
|
|
66
|
+
export { ArrowRightIcon } from './icons/tsx/arrowRight.js';
|
|
67
|
+
export { ArrowUpIcon } from './icons/tsx/arrowUp.js';
|
|
68
|
+
export { AttachmentIcon } from './icons/tsx/attachment.js';
|
|
69
|
+
export { BlockIcon } from './icons/tsx/block.js';
|
|
70
|
+
export { BookIcon } from './icons/tsx/book.js';
|
|
71
|
+
export { BuildIcon } from './icons/tsx/build.js';
|
|
72
|
+
export { BuildCircledIcon } from './icons/tsx/buildCircled.js';
|
|
73
|
+
export { CalendarIcon } from './icons/tsx/calendar.js';
|
|
74
|
+
export { CalendarMonthIcon } from './icons/tsx/calendarMonth.js';
|
|
75
|
+
export { CalendarViewDayIcon } from './icons/tsx/calendarViewDay.js';
|
|
76
|
+
export { CalendarViewMonthIcon } from './icons/tsx/calendarViewMonth.js';
|
|
77
|
+
export { CalendarViewWeekIcon } from './icons/tsx/calendarViewWeek.js';
|
|
78
|
+
export { CallIcon } from './icons/tsx/call.js';
|
|
79
|
+
export { ChatIcon } from './icons/tsx/chat.js';
|
|
80
|
+
export { CheckIcon } from './icons/tsx/check.js';
|
|
81
|
+
export { CheckCircledIcon } from './icons/tsx/checkCircled.js';
|
|
82
|
+
export { ChecklistIcon } from './icons/tsx/checklist.js';
|
|
83
|
+
export { ChevronDownIcon } from './icons/tsx/chevronDown.js';
|
|
84
|
+
export { ChevronFirstIcon } from './icons/tsx/chevronFirst.js';
|
|
85
|
+
export { ChevronLargeLeftIcon } from './icons/tsx/chevronLargeLeft.js';
|
|
86
|
+
export { ChevronLargeRightIcon } from './icons/tsx/chevronLargeRight.js';
|
|
87
|
+
export { ChevronLastIcon } from './icons/tsx/chevronLast.js';
|
|
88
|
+
export { ChevronLeftIcon } from './icons/tsx/chevronLeft.js';
|
|
89
|
+
export { ChevronRightIcon } from './icons/tsx/chevronRight.js';
|
|
90
|
+
export { ChevronUpIcon } from './icons/tsx/chevronUp.js';
|
|
91
|
+
export { CloseIcon } from './icons/tsx/close.js';
|
|
92
|
+
export { CloseCircledIcon } from './icons/tsx/closeCircled.js';
|
|
93
|
+
export { CloudIcon } from './icons/tsx/cloud.js';
|
|
94
|
+
export { CollapseIcon } from './icons/tsx/collapse.js';
|
|
95
|
+
export { CommentIcon } from './icons/tsx/comment.js';
|
|
96
|
+
export { CopyIcon } from './icons/tsx/copy.js';
|
|
97
|
+
export { CourtIcon } from './icons/tsx/court.js';
|
|
98
|
+
export { DateRangeIcon } from './icons/tsx/dateRange.js';
|
|
99
|
+
export { DeathsIcon } from './icons/tsx/deaths.js';
|
|
100
|
+
export { DownloadIcon } from './icons/tsx/download.js';
|
|
101
|
+
export { DownloadDoneIcon } from './icons/tsx/downloadDone.js';
|
|
102
|
+
export { DragHandleIcon } from './icons/tsx/dragHandle.js';
|
|
103
|
+
export { EditIcon } from './icons/tsx/edit.js';
|
|
104
|
+
export { ErrorIcon } from './icons/tsx/error.js';
|
|
105
|
+
export { ExclaimIcon } from './icons/tsx/exclaim.js';
|
|
106
|
+
export { ExpandIcon } from './icons/tsx/expand.js';
|
|
107
|
+
export { FacebookIcon } from './icons/tsx/facebook.js';
|
|
108
|
+
export { FamilyIcon } from './icons/tsx/family.js';
|
|
109
|
+
export { FeedbackIcon } from './icons/tsx/feedback.js';
|
|
110
|
+
export { FileIcon } from './icons/tsx/file.js';
|
|
111
|
+
export { FileAddIcon } from './icons/tsx/fileAdd.js';
|
|
112
|
+
export { FileTextIcon } from './icons/tsx/fileText.js';
|
|
113
|
+
export { FilterIcon } from './icons/tsx/filter.js';
|
|
114
|
+
export { FilterListIcon } from './icons/tsx/filterList.js';
|
|
115
|
+
export { FilterListOffIcon } from './icons/tsx/filterListOff.js';
|
|
116
|
+
export { FilterOffIcon } from './icons/tsx/filterOff.js';
|
|
117
|
+
export { FindInPageIcon } from './icons/tsx/findInPage.js';
|
|
118
|
+
export { FolderIcon } from './icons/tsx/folder.js';
|
|
119
|
+
export { FolderAddIcon } from './icons/tsx/folderAdd.js';
|
|
120
|
+
export { FullscreenExitIcon } from './icons/tsx/fullsceenExit.js';
|
|
121
|
+
export { FullscreenIcon } from './icons/tsx/fullscreen.js';
|
|
122
|
+
export { GavelIcon } from './icons/tsx/gavel.js';
|
|
123
|
+
export { HelpIcon } from './icons/tsx/help.js';
|
|
124
|
+
export { HelpFilledIcon } from './icons/tsx/helpFilled.js';
|
|
125
|
+
export { HomeIcon } from './icons/tsx/home.js';
|
|
126
|
+
export { ImageIcon } from './icons/tsx/image.js';
|
|
127
|
+
export { InfoIcon } from './icons/tsx/info.js';
|
|
128
|
+
export { InstagramIcon } from './icons/tsx/instagram.js';
|
|
129
|
+
export { JordskifterettIcon } from './icons/tsx/jordskifterett.js';
|
|
130
|
+
export { KeyIcon } from './icons/tsx/key.js';
|
|
131
|
+
export { LagmannsrettIcon } from './icons/tsx/lagmannsrett.js';
|
|
132
|
+
export { LanguageIcon } from './icons/tsx/language.js';
|
|
133
|
+
export { LinkIcon } from './icons/tsx/link.js';
|
|
134
|
+
export { LinkedInIcon } from './icons/tsx/linkedIn.js';
|
|
135
|
+
export { LinkOffIcon } from './icons/tsx/linkOff.js';
|
|
136
|
+
export { ListIcon } from './icons/tsx/list.js';
|
|
137
|
+
export { ListAltIcon } from './icons/tsx/listAlt.js';
|
|
138
|
+
export { LocationIcon } from './icons/tsx/location.js';
|
|
139
|
+
export { LockIcon } from './icons/tsx/lock.js';
|
|
140
|
+
export { LockOpenIcon } from './icons/tsx/lockOpen.js';
|
|
141
|
+
export { LoginIcon } from './icons/tsx/login.js';
|
|
142
|
+
export { LogoutIcon } from './icons/tsx/logout.js';
|
|
143
|
+
export { MailIcon } from './icons/tsx/mail.js';
|
|
144
|
+
export { MailOpenIcon } from './icons/tsx/mailOpen.js';
|
|
145
|
+
export { MenuIcon } from './icons/tsx/menu.js';
|
|
146
|
+
export { MinusIcon } from './icons/tsx/minus.js';
|
|
147
|
+
export { MinusCirledIcon } from './icons/tsx/minusCircled.js';
|
|
148
|
+
export { MoreHorizontalIcon } from './icons/tsx/moreHorizontal.js';
|
|
149
|
+
export { MoreVerticalIcon } from './icons/tsx/moreVertical.js';
|
|
150
|
+
export { NotarialIcon } from './icons/tsx/notarial.js';
|
|
151
|
+
export { NotificationsIcon } from './icons/tsx/notifications.js';
|
|
152
|
+
export { NotificationsOffIcon } from './icons/tsx/notificationsOff.js';
|
|
153
|
+
export { OnlineMeetingIcon } from './icons/tsx/onlineMeeting.js';
|
|
154
|
+
export { OpenExternalIcon } from './icons/tsx/openExternal.js';
|
|
155
|
+
export { PdfIcon } from './icons/tsx/pdf.js';
|
|
156
|
+
export { PersonIcon } from './icons/tsx/person.js';
|
|
157
|
+
export { PersonAddIcon } from './icons/tsx/personAdd.js';
|
|
158
|
+
export { PinIcon } from './icons/tsx/pin.js';
|
|
159
|
+
export { PlusIcon } from './icons/tsx/plus.js';
|
|
160
|
+
export { PlusCircledIcon } from './icons/tsx/plusCircled.js';
|
|
161
|
+
export { PrintIcon } from './icons/tsx/print.js';
|
|
162
|
+
export { PropertyIcon } from './icons/tsx/property.js';
|
|
163
|
+
export { PublishIcon } from './icons/tsx/publish.js';
|
|
164
|
+
export { QuestionAnswerIcon } from './icons/tsx/questionAnswer.js';
|
|
165
|
+
export { ReceiptIcon } from './icons/tsx/receipt.js';
|
|
166
|
+
export { RedoIcon } from './icons/tsx/redo.js';
|
|
167
|
+
export { RefreshIcon } from './icons/tsx/refresh.js';
|
|
168
|
+
export { ReplayIcon } from './icons/tsx/replay.js';
|
|
169
|
+
export { SearchIcon } from './icons/tsx/search.js';
|
|
170
|
+
export { SettingsIcon } from './icons/tsx/settings.js';
|
|
171
|
+
export { SmsIcon } from './icons/tsx/sms.js';
|
|
172
|
+
export { StarIcon } from './icons/tsx/star.js';
|
|
173
|
+
export { StarFilledIcon } from './icons/tsx/starFilled.js';
|
|
174
|
+
export { SyncIcon } from './icons/tsx/sync.js';
|
|
175
|
+
export { TimeIcon } from './icons/tsx/time.js';
|
|
176
|
+
export { TingrettIcon } from './icons/tsx/tingrett.js';
|
|
177
|
+
export { TipIcon } from './icons/tsx/tip.js';
|
|
178
|
+
export { TrashIcon } from './icons/tsx/trash.js';
|
|
179
|
+
export { TwitterIcon } from './icons/tsx/twitter.js';
|
|
180
|
+
export { UndoIcon } from './icons/tsx/undo.js';
|
|
181
|
+
export { UnfoldLessIcon } from './icons/tsx/unfoldLess.js';
|
|
182
|
+
export { UnfoldMoreIcon } from './icons/tsx/unfoldMore.js';
|
|
183
|
+
export { UploadIcon } from './icons/tsx/upload.js';
|
|
184
|
+
export { VisibilityOffIcon } from './icons/tsx/visibilityOff.js';
|
|
185
|
+
export { VisibilityOnIcon } from './icons/tsx/visibilityOn.js';
|
|
186
|
+
export { WarningIcon } from './icons/tsx/warning.js';
|
|
187
|
+
export { ZoomInIcon } from './icons/tsx/zoomIn.js';
|
|
188
|
+
export { ZoomOutIcon } from './icons/tsx/zoomOut.js';
|
|
189
|
+
export { Stepper } from './components/Stepper/Stepper.js';
|
|
190
|
+
export { Step } from './components/Stepper/Step.js';
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@norges-domstoler/dds-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.2.0-beta.0",
|
|
4
4
|
"description": "React components used in Elsa - domstolenes designsystem",
|
|
5
5
|
"author": "Elsa team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@babel/preset-react": "^7.16.7",
|
|
48
48
|
"@mdx-js/react": "^2.1.1",
|
|
49
49
|
"@rollup/plugin-babel": "^5.3.1",
|
|
50
|
-
"@rollup/plugin-commonjs": "^
|
|
50
|
+
"@rollup/plugin-commonjs": "^22.0.2",
|
|
51
51
|
"@rollup/plugin-image": "^2.1.1",
|
|
52
52
|
"@rollup/plugin-node-resolve": "^13.2.0",
|
|
53
53
|
"@storybook/addon-actions": "^6.5.9",
|
|
@@ -111,9 +111,7 @@
|
|
|
111
111
|
"dependencies": {
|
|
112
112
|
"@emotion/react": "^11.9.0",
|
|
113
113
|
"@emotion/styled": "^11.8.1",
|
|
114
|
-
"@floating-ui/react-dom": "^0.
|
|
115
|
-
"@mui/icons-material": "^5.6.2",
|
|
116
|
-
"@mui/material": "^5.6.3",
|
|
114
|
+
"@floating-ui/react-dom": "^1.0.0",
|
|
117
115
|
"focus-visible": "^5.2.0",
|
|
118
116
|
"react-select": "^5.3.0",
|
|
119
117
|
"tslib": "^2.4.0"
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SvgIconTypeMap } from '@mui/material/SvgIcon';
|
|
2
|
-
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
3
|
-
import { HTMLAttributes } from 'react';
|
|
4
|
-
import { Property } from 'csstype';
|
|
5
|
-
export declare type IconSize = 'small' | 'medium' | 'large' | 'inline';
|
|
6
|
-
declare type SvgIconTypeProps = SvgIconTypeMap<Record<string, unknown>, 'svg'>;
|
|
7
|
-
export declare type IconWrapperProps = {
|
|
8
|
-
/**Ikon. */
|
|
9
|
-
Icon: OverridableComponent<SvgIconTypeProps>;
|
|
10
|
-
/**Størrelsen til ikonet. */
|
|
11
|
-
iconSize?: IconSize;
|
|
12
|
-
/**Fargen til ikonet. */
|
|
13
|
-
color?: Property.Color;
|
|
14
|
-
className?: HTMLAttributes<SVGElement>['className'];
|
|
15
|
-
style?: HTMLAttributes<SVGElement>['style'];
|
|
16
|
-
svgProps?: SvgIconTypeProps['props'];
|
|
17
|
-
};
|
|
18
|
-
export declare function IconWrapper({ Icon, iconSize, color, className, style, svgProps }: IconWrapperProps): JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IconWrapper, IconWrapperProps } from '.';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof IconWrapper;
|
|
6
|
-
argTypes: {
|
|
7
|
-
color: {
|
|
8
|
-
control: {
|
|
9
|
-
type: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
parameters: {
|
|
14
|
-
controls: {
|
|
15
|
-
exclude: string[];
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export default _default;
|
|
20
|
-
export declare const Overview: (args: IconWrapperProps) => JSX.Element;
|
|
21
|
-
export declare const Default: (args: IconWrapperProps) => JSX.Element;
|
|
22
|
-
export declare const Inline: (args: IconWrapperProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IconWrapper';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SvgIconTypeMap } from '@mui/material/SvgIcon';
|
|
2
|
-
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
3
|
-
import { HTMLAttributes } from 'react';
|
|
4
|
-
import { Property } from 'csstype';
|
|
5
|
-
export declare type IconSize = 'small' | 'medium' | 'large' | 'inline';
|
|
6
|
-
declare type SvgIconTypeProps = SvgIconTypeMap<Record<string, unknown>, 'svg'>;
|
|
7
|
-
export declare type IconWrapperProps = {
|
|
8
|
-
/**Ikon. */
|
|
9
|
-
Icon: OverridableComponent<SvgIconTypeProps>;
|
|
10
|
-
/**Størrelsen til ikonet. */
|
|
11
|
-
iconSize?: IconSize;
|
|
12
|
-
/**Fargen til ikonet. */
|
|
13
|
-
color?: Property.Color;
|
|
14
|
-
className?: HTMLAttributes<SVGElement>['className'];
|
|
15
|
-
style?: HTMLAttributes<SVGElement>['style'];
|
|
16
|
-
svgProps?: SvgIconTypeProps['props'];
|
|
17
|
-
};
|
|
18
|
-
export declare function IconWrapper({ Icon, iconSize, color, className, style, svgProps }: IconWrapperProps): JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
3
|
-
|
|
4
|
-
var getSize = function getSize(iconSize) {
|
|
5
|
-
switch (iconSize) {
|
|
6
|
-
case 'small':
|
|
7
|
-
return ddsBaseTokens.iconSizes.DdsIconsizeSmall;
|
|
8
|
-
|
|
9
|
-
case 'medium':
|
|
10
|
-
return ddsBaseTokens.iconSizes.DdsIconsizeMedium;
|
|
11
|
-
|
|
12
|
-
case 'large':
|
|
13
|
-
return ddsBaseTokens.iconSizes.DdsIconsizeLarge;
|
|
14
|
-
|
|
15
|
-
case 'inline':
|
|
16
|
-
return '1em';
|
|
17
|
-
|
|
18
|
-
default:
|
|
19
|
-
return ddsBaseTokens.iconSizes.DdsIconsizeMedium;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
function IconWrapper(_ref) {
|
|
24
|
-
var Icon = _ref.Icon,
|
|
25
|
-
_ref$iconSize = _ref.iconSize,
|
|
26
|
-
iconSize = _ref$iconSize === void 0 ? 'medium' : _ref$iconSize,
|
|
27
|
-
color = _ref.color,
|
|
28
|
-
className = _ref.className,
|
|
29
|
-
style = _ref.style,
|
|
30
|
-
svgProps = _ref.svgProps;
|
|
31
|
-
var PropIcon = Icon;
|
|
32
|
-
var size = getSize(iconSize);
|
|
33
|
-
return jsx(PropIcon, Object.assign({}, svgProps, {
|
|
34
|
-
className: className,
|
|
35
|
-
style: Object.assign(Object.assign({}, style), {
|
|
36
|
-
color: color ? color : 'inherit',
|
|
37
|
-
fontSize: size
|
|
38
|
-
})
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { IconWrapper };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IconWrapper, IconWrapperProps } from '.';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof IconWrapper;
|
|
6
|
-
argTypes: {
|
|
7
|
-
color: {
|
|
8
|
-
control: {
|
|
9
|
-
type: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
parameters: {
|
|
14
|
-
controls: {
|
|
15
|
-
exclude: string[];
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export default _default;
|
|
20
|
-
export declare const Overview: (args: IconWrapperProps) => JSX.Element;
|
|
21
|
-
export declare const Default: (args: IconWrapperProps) => JSX.Element;
|
|
22
|
-
export declare const Inline: (args: IconWrapperProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IconWrapper';
|