@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,66 @@
|
|
|
1
|
+
import { slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import { __rest } from 'tslib';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
import { forwardRef, useState, useEffect, Children, isValidElement, cloneElement } from 'react';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import { StepperContext } from './Stepper.context.js';
|
|
7
|
+
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
8
|
+
|
|
9
|
+
var StepsWrapper = styled.ol.withConfig({
|
|
10
|
+
displayName: "Stepper__StepsWrapper",
|
|
11
|
+
componentId: "sc-4w2c73-0"
|
|
12
|
+
})(["display:flex;margin:0;padding:0;"]);
|
|
13
|
+
/**
|
|
14
|
+
* @beta Denne komponenten er ikke ferdig og endringer kan gjøres utenfor semver.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
var Stepper = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
18
|
+
var _a;
|
|
19
|
+
|
|
20
|
+
var id = props.id,
|
|
21
|
+
_props$activeStep = props.activeStep,
|
|
22
|
+
activeStep = _props$activeStep === void 0 ? 0 : _props$activeStep,
|
|
23
|
+
children = props.children,
|
|
24
|
+
className = props.className,
|
|
25
|
+
htmlProps = props.htmlProps,
|
|
26
|
+
rest = __rest(props, ["id", "activeStep", "children", "className", "htmlProps"]);
|
|
27
|
+
|
|
28
|
+
var _useState = useState(activeStep),
|
|
29
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
30
|
+
thisActiveStep = _useState2[0],
|
|
31
|
+
setActiveStep = _useState2[1];
|
|
32
|
+
|
|
33
|
+
useEffect(function () {
|
|
34
|
+
if (activeStep !== undefined && activeStep != thisActiveStep) {
|
|
35
|
+
setActiveStep(activeStep);
|
|
36
|
+
}
|
|
37
|
+
}, [activeStep, thisActiveStep]);
|
|
38
|
+
var containerProps = Object.assign(Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest)), {
|
|
39
|
+
ref: ref
|
|
40
|
+
});
|
|
41
|
+
var steps = (_a = Children.map(children, function (step, index) {
|
|
42
|
+
if (! /*#__PURE__*/isValidElement(step)) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return /*#__PURE__*/cloneElement(step, Object.assign(Object.assign({}, step.props), {
|
|
47
|
+
index: index
|
|
48
|
+
}));
|
|
49
|
+
})) === null || _a === void 0 ? void 0 : _a.filter(Boolean);
|
|
50
|
+
return jsx(StepperContext.Provider, Object.assign({
|
|
51
|
+
value: {
|
|
52
|
+
activeStep: thisActiveStep
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
children: jsx("div", Object.assign({
|
|
56
|
+
role: "group",
|
|
57
|
+
"aria-label": "progress"
|
|
58
|
+
}, containerProps, {
|
|
59
|
+
children: jsx(StepsWrapper, {
|
|
60
|
+
children: steps
|
|
61
|
+
})
|
|
62
|
+
}))
|
|
63
|
+
}));
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export { Stepper };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
4
|
+
htmlProps?: import("react").HTMLAttributes<HTMLDivElement> | undefined;
|
|
5
|
+
} & Pick<import("react").HTMLAttributes<HTMLDivElement>, "id" | "className"> & {
|
|
6
|
+
activeStep?: number | undefined;
|
|
7
|
+
} & {
|
|
8
|
+
children?: import("react").ReactNode;
|
|
9
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
argTypes: {
|
|
11
|
+
color: {
|
|
12
|
+
control: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
control: {
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
export declare const Overview: () => JSX.Element;
|
|
25
|
+
export declare const NonClickable: () => JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const stepperTokens: {
|
|
2
|
+
connector: {
|
|
3
|
+
color: string;
|
|
4
|
+
};
|
|
5
|
+
stepNumber: {
|
|
6
|
+
active: {
|
|
7
|
+
borderColor: string;
|
|
8
|
+
color: string;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
};
|
|
11
|
+
completed: {
|
|
12
|
+
borderColor: string;
|
|
13
|
+
color: string;
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
};
|
|
16
|
+
inactive: {
|
|
17
|
+
borderColor: string;
|
|
18
|
+
color: string;
|
|
19
|
+
backgroundColor: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
stepButton: {
|
|
23
|
+
marginTop: string;
|
|
24
|
+
fontFamily: string;
|
|
25
|
+
fontSize: string;
|
|
26
|
+
active: {
|
|
27
|
+
color: string;
|
|
28
|
+
textDecoration: string;
|
|
29
|
+
};
|
|
30
|
+
completed: {
|
|
31
|
+
color: string;
|
|
32
|
+
textDecoration: string;
|
|
33
|
+
};
|
|
34
|
+
inactive: {
|
|
35
|
+
color: string;
|
|
36
|
+
textDecoration: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
|
|
2
|
+
|
|
3
|
+
var colors = ddsBaseTokens.colors,
|
|
4
|
+
spacing = ddsBaseTokens.spacing,
|
|
5
|
+
font = ddsBaseTokens.font;
|
|
6
|
+
var connector = {
|
|
7
|
+
color: colors.DdsColorInteractiveBase
|
|
8
|
+
};
|
|
9
|
+
var stepNumber = {
|
|
10
|
+
active: {
|
|
11
|
+
borderColor: colors.DdsColorInteractiveBase,
|
|
12
|
+
color: colors.DdsColorNeutralsWhite,
|
|
13
|
+
backgroundColor: colors.DdsColorInteractiveBase
|
|
14
|
+
},
|
|
15
|
+
completed: {
|
|
16
|
+
borderColor: colors.DdsColorSuccessLighter,
|
|
17
|
+
color: colors.DdsColorNeutralsGray9,
|
|
18
|
+
backgroundColor: colors.DdsColorSuccessLighter
|
|
19
|
+
},
|
|
20
|
+
inactive: {
|
|
21
|
+
borderColor: colors.DdsColorInteractiveBase,
|
|
22
|
+
color: colors.DdsColorInteractiveBase,
|
|
23
|
+
backgroundColor: colors.DdsColorNeutralsWhite
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
var stepButton = {
|
|
27
|
+
marginTop: spacing.SizesDdsSpacingLayoutX1,
|
|
28
|
+
fontFamily: font.DdsFontSupportingStyleLabel01FontFamily,
|
|
29
|
+
fontSize: font.DdsFontSupportingStyleLabel01FontSize,
|
|
30
|
+
active: {
|
|
31
|
+
color: colors.DdsColorNeutralsGray9,
|
|
32
|
+
textDecoration: 'none'
|
|
33
|
+
},
|
|
34
|
+
completed: {
|
|
35
|
+
color: colors.DdsColorInteractiveBase,
|
|
36
|
+
textDecoration: 'underline'
|
|
37
|
+
},
|
|
38
|
+
inactive: {
|
|
39
|
+
color: colors.DdsColorInteractiveBase,
|
|
40
|
+
textDecoration: 'underline'
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
var stepperTokens = {
|
|
44
|
+
connector: connector,
|
|
45
|
+
stepNumber: stepNumber,
|
|
46
|
+
stepButton: stepButton
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export { stepperTokens };
|
|
@@ -3,15 +3,15 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { Cell } from './Cell.js';
|
|
5
5
|
import { cellTokens } from './Cell.tokens.js';
|
|
6
|
-
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
|
|
7
|
-
import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp';
|
|
8
|
-
import UnfoldMoreIcon from '@mui/icons-material/UnfoldMore';
|
|
9
6
|
import styled from 'styled-components';
|
|
10
7
|
import { removeButtonStyling } from '../../helpers/styling/removeButtonStyling.js';
|
|
11
|
-
import {
|
|
8
|
+
import { UnfoldMoreIcon } from '../../icons/tsx/unfoldMore.js';
|
|
9
|
+
import { ChevronDownIcon } from '../../icons/tsx/chevronDown.js';
|
|
10
|
+
import { ChevronUpIcon } from '../../icons/tsx/chevronUp.js';
|
|
11
|
+
import { Icon } from '../Icon/Icon.js';
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
displayName: "
|
|
13
|
+
var SortIcon = styled(Icon).withConfig({
|
|
14
|
+
displayName: "SortCell__SortIcon",
|
|
15
15
|
componentId: "sc-1l3jzvh-0"
|
|
16
16
|
})(["", ""], cellTokens.head.sortCell.icon.base);
|
|
17
17
|
var StyledButton = styled.button.withConfig({
|
|
@@ -21,18 +21,18 @@ var StyledButton = styled.button.withConfig({
|
|
|
21
21
|
|
|
22
22
|
var makeSortIcon = function makeSortIcon(isSorted, sortOrder) {
|
|
23
23
|
if (!isSorted || !sortOrder) {
|
|
24
|
-
return jsx(
|
|
25
|
-
|
|
26
|
-
iconSize: "
|
|
24
|
+
return jsx(SortIcon, {
|
|
25
|
+
icon: UnfoldMoreIcon,
|
|
26
|
+
iconSize: "inherit"
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
return sortOrder === 'ascending' ? jsx(
|
|
31
|
-
|
|
32
|
-
iconSize: "
|
|
33
|
-
}) : jsx(
|
|
34
|
-
|
|
35
|
-
iconSize: "
|
|
30
|
+
return sortOrder === 'ascending' ? jsx(SortIcon, {
|
|
31
|
+
icon: ChevronDownIcon,
|
|
32
|
+
iconSize: "inherit"
|
|
33
|
+
}) : jsx(SortIcon, {
|
|
34
|
+
icon: ChevronUpIcon,
|
|
35
|
+
iconSize: "inherit"
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { SvgIconTypeMap } from '@mui/material';
|
|
2
|
-
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
3
1
|
import { ButtonHTMLAttributes, Dispatch, SetStateAction } from 'react';
|
|
4
2
|
import { BaseComponentPropsWithChildren } from '../../types';
|
|
5
3
|
import { Property } from 'csstype';
|
|
4
|
+
import { SvgIcon } from '../../icons/utils';
|
|
6
5
|
export declare type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
|
|
7
6
|
/**Spesifiserer om fanen er aktiv. */
|
|
8
7
|
active?: boolean;
|
|
9
8
|
/** Ikon. */
|
|
10
|
-
|
|
9
|
+
icon?: SvgIcon;
|
|
11
10
|
/** Custom bredde for enkel fane. */
|
|
12
11
|
width?: Property.Width;
|
|
13
12
|
/** Spesifiserer om `<Tab />` skal ha fokus. **OBS!** settes automatisk av forelder.*/
|
|
@@ -23,7 +22,7 @@ export declare const Tab: import("react").ForwardRefExoticComponent<{
|
|
|
23
22
|
/**Spesifiserer om fanen er aktiv. */
|
|
24
23
|
active?: boolean | undefined;
|
|
25
24
|
/** Ikon. */
|
|
26
|
-
|
|
25
|
+
icon?: SvgIcon | undefined;
|
|
27
26
|
/** Custom bredde for enkel fane. */
|
|
28
27
|
width?: Property.Width<0 | (string & {})> | undefined;
|
|
29
28
|
/** Spesifiserer om `<Tab />` skal ha fokus. **OBS!** settes automatisk av forelder.*/
|
|
@@ -8,7 +8,7 @@ import { focusVisibleTransitionValue } from '../../helpers/styling/focusVisible.
|
|
|
8
8
|
import { useCombinedRef } from '../../hooks/useCombinedRefs.js';
|
|
9
9
|
import { useOnKeyDown } from '../../hooks/useOnKeyDown.js';
|
|
10
10
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
11
|
-
import {
|
|
11
|
+
import { Icon } from '../Icon/Icon.js';
|
|
12
12
|
|
|
13
13
|
var Button = styled.button.withConfig({
|
|
14
14
|
displayName: "Tab__Button",
|
|
@@ -27,7 +27,7 @@ var Tab = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
27
27
|
var _props$active = props.active,
|
|
28
28
|
active = _props$active === void 0 ? false : _props$active,
|
|
29
29
|
width = props.width,
|
|
30
|
-
|
|
30
|
+
icon = props.icon,
|
|
31
31
|
children = props.children,
|
|
32
32
|
focus = props.focus,
|
|
33
33
|
setFocus = props.setFocus,
|
|
@@ -37,7 +37,7 @@ var Tab = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37
37
|
id = props.id,
|
|
38
38
|
className = props.className,
|
|
39
39
|
htmlProps = props.htmlProps,
|
|
40
|
-
rest = __rest(props, ["active", "width", "
|
|
40
|
+
rest = __rest(props, ["active", "width", "icon", "children", "focus", "setFocus", "index", "onClick", "onKeyDown", "id", "className", "htmlProps"]);
|
|
41
41
|
|
|
42
42
|
var itemRef = useRef(null);
|
|
43
43
|
var combinedRef = useCombinedRef(ref, itemRef);
|
|
@@ -90,9 +90,9 @@ var Tab = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
90
90
|
tabIndex: focus ? 0 : -1
|
|
91
91
|
});
|
|
92
92
|
return jsxs(Button, Object.assign({}, buttonProps, {
|
|
93
|
-
children: [
|
|
94
|
-
|
|
95
|
-
iconSize: "
|
|
93
|
+
children: [icon && jsx(Icon, {
|
|
94
|
+
icon: icon,
|
|
95
|
+
iconSize: "inherit"
|
|
96
96
|
}), jsx("span", {
|
|
97
97
|
children: children
|
|
98
98
|
})]
|
|
@@ -30,12 +30,14 @@ var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30
30
|
withCharacterCounter = _a$withCharacterCount === void 0 ? true : _a$withCharacterCount,
|
|
31
31
|
className = _a.className,
|
|
32
32
|
style = _a.style,
|
|
33
|
+
value = _a.value,
|
|
34
|
+
defaultValue = _a.defaultValue,
|
|
33
35
|
ariaDescribedby = _a['aria-describedby'],
|
|
34
|
-
rest = __rest(_a, ["label", "disabled", "readOnly", "errorMessage", "tip", "required", "maxLength", "multiline", "onChange", "id", "width", "type", "withCharacterCounter", "className", "style", 'aria-describedby']);
|
|
36
|
+
rest = __rest(_a, ["label", "disabled", "readOnly", "errorMessage", "tip", "required", "maxLength", "multiline", "onChange", "id", "width", "type", "withCharacterCounter", "className", "style", "value", "defaultValue", 'aria-describedby']);
|
|
35
37
|
|
|
36
38
|
var textAreaRef = useRef(null);
|
|
37
39
|
|
|
38
|
-
var _useState = useState(
|
|
40
|
+
var _useState = useState(getDefaultText(value, defaultValue)),
|
|
39
41
|
_useState2 = _slicedToArray(_useState, 2),
|
|
40
42
|
text = _useState2[0],
|
|
41
43
|
setText = _useState2[1];
|
|
@@ -84,6 +86,8 @@ var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
84
86
|
readOnly: readOnly,
|
|
85
87
|
tabIndex: readOnly ? -1 : 0,
|
|
86
88
|
maxLength: maxLength,
|
|
89
|
+
value: value,
|
|
90
|
+
defaultValue: defaultValue,
|
|
87
91
|
'aria-describedby': spaceSeparatedIdListGenerator([tipId, errorMessageId, characterCounterId, ariaDescribedby]),
|
|
88
92
|
'aria-invalid': hasErrorMessage ? true : undefined
|
|
89
93
|
}, rest);
|
|
@@ -136,4 +140,16 @@ var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
136
140
|
}));
|
|
137
141
|
});
|
|
138
142
|
|
|
143
|
+
function getDefaultText(value, defaultValue) {
|
|
144
|
+
if (typeof value === 'string') {
|
|
145
|
+
return value;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if (typeof defaultValue === 'string') {
|
|
149
|
+
return defaultValue;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return '';
|
|
153
|
+
}
|
|
154
|
+
|
|
139
155
|
export { TextInput };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TextInputProps } from './TextInput.types';
|
|
3
2
|
export declare const TextArea: import("styled-components").StyledComponent<"input", any, Pick<import("../../helpers").InputProps, "disabled" | "readOnly"> & {
|
|
4
3
|
hasErrorMessage: boolean;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { SvgIconTypeMap } from '@mui/material';
|
|
2
|
-
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
|
3
1
|
import { InputHTMLAttributes } from 'react';
|
|
4
2
|
import { BaseComponentProps } from '../../types';
|
|
3
|
+
import { SvgIcon } from '../../icons/utils';
|
|
5
4
|
export declare type ToggleButtonProps = BaseComponentProps<HTMLInputElement, {
|
|
6
5
|
/**Ledetekst for inputelementet. */
|
|
7
6
|
label?: string;
|
|
8
7
|
/** Ikon. */
|
|
9
|
-
|
|
8
|
+
icon?: SvgIcon;
|
|
10
9
|
}, InputHTMLAttributes<HTMLInputElement>>;
|
|
11
10
|
export declare const ToggleButton: import("react").ForwardRefExoticComponent<{
|
|
12
11
|
htmlProps?: InputHTMLAttributes<HTMLInputElement> | undefined;
|
|
@@ -14,5 +13,5 @@ export declare const ToggleButton: import("react").ForwardRefExoticComponent<{
|
|
|
14
13
|
/**Ledetekst for inputelementet. */
|
|
15
14
|
label?: string | undefined;
|
|
16
15
|
/** Ikon. */
|
|
17
|
-
|
|
16
|
+
icon?: SvgIcon | undefined;
|
|
18
17
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -9,7 +9,7 @@ import { toggleButtonTokens } from './ToggleButton.tokens.js';
|
|
|
9
9
|
import { hideInput } from '../../helpers/styling/hideInput.js';
|
|
10
10
|
import { focusVisibleTransitionValue } from '../../helpers/styling/focusVisible.js';
|
|
11
11
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
12
|
-
import {
|
|
12
|
+
import { Icon } from '../Icon/Icon.js';
|
|
13
13
|
|
|
14
14
|
var Input = styled.input.withConfig({
|
|
15
15
|
displayName: "ToggleButton__Input",
|
|
@@ -27,10 +27,10 @@ var nextUniqueId = 0;
|
|
|
27
27
|
var ToggleButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
28
28
|
var id = _a.id,
|
|
29
29
|
label = _a.label,
|
|
30
|
-
|
|
30
|
+
icon = _a.icon,
|
|
31
31
|
className = _a.className,
|
|
32
32
|
htmlProps = _a.htmlProps,
|
|
33
|
-
rest = __rest(_a, ["id", "label", "
|
|
33
|
+
rest = __rest(_a, ["id", "label", "icon", "className", "htmlProps"]);
|
|
34
34
|
|
|
35
35
|
var _useState = useState(id !== null && id !== void 0 ? id : "toggleButton-".concat(nextUniqueId++)),
|
|
36
36
|
_useState2 = _slicedToArray(_useState, 1),
|
|
@@ -45,9 +45,9 @@ var ToggleButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
45
45
|
};
|
|
46
46
|
return jsxs(Container, Object.assign({}, containerProps, {
|
|
47
47
|
children: [jsx(Input, Object.assign({}, inputProps)), jsxs(Content, {
|
|
48
|
-
children: [
|
|
49
|
-
|
|
50
|
-
iconSize: "
|
|
48
|
+
children: [icon && jsx(Icon, {
|
|
49
|
+
icon: icon,
|
|
50
|
+
iconSize: "inherit"
|
|
51
51
|
}), " ", label]
|
|
52
52
|
})]
|
|
53
53
|
}));
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ToggleButtonProps } from '.';
|
|
3
2
|
declare const _default: {
|
|
4
3
|
title: string;
|
|
@@ -6,8 +5,13 @@ declare const _default: {
|
|
|
6
5
|
htmlProps?: import("react").InputHTMLAttributes<HTMLInputElement> | undefined;
|
|
7
6
|
} & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "id" | "className"> & {
|
|
8
7
|
label?: string | undefined;
|
|
9
|
-
|
|
8
|
+
icon?: import("../../icons/utils").SvgIcon | undefined;
|
|
10
9
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
10
|
+
argTypes: {
|
|
11
|
+
label: {
|
|
12
|
+
control: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
11
15
|
};
|
|
12
16
|
export default _default;
|
|
13
17
|
export declare const Default: (args: ToggleButtonProps) => JSX.Element;
|
|
@@ -26,6 +26,7 @@ declare type BaseTypographyProps = PropsWithChildren<{
|
|
|
26
26
|
interactionProps?: TypographyInteractionProps;
|
|
27
27
|
}> & Pick<HTMLAttributes<HTMLElement>, 'style'>;
|
|
28
28
|
declare type AnchorTypographyProps = BaseComponentProps<HTMLAnchorElement, BaseTypographyProps & {
|
|
29
|
+
/**nativ `href`-prop ved `typographyType='a'`. */
|
|
29
30
|
href?: string | undefined;
|
|
30
31
|
/** Spesifiserer om lenka er ekstern ved `typographyType='a'` eller `as='a'`.*/
|
|
31
32
|
externalLink?: boolean;
|
|
@@ -3,9 +3,9 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
5
|
import { textColorsArray, textColors, typographyTokens } from './Typography.tokens.js';
|
|
6
|
-
import
|
|
7
|
-
import { IconWrapper } from '../IconWrapper/IconWrapper.js';
|
|
6
|
+
import { Icon } from '../Icon/Icon.js';
|
|
8
7
|
import { focusVisibleLinkTransitionValue } from '../../helpers/styling/focusVisible.js';
|
|
8
|
+
import { OpenExternalIcon } from '../../icons/tsx/openExternal.js';
|
|
9
9
|
import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
10
10
|
|
|
11
11
|
var getElementType = function getElementType(element) {
|
|
@@ -79,8 +79,8 @@ var getElementStyling = function getElementStyling(type) {
|
|
|
79
79
|
return css(["", " &::selection,*::selection{", "}"], typographyTokens.typographyType[type].base, typographyTokens.selection.base);
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
var
|
|
83
|
-
displayName: "
|
|
82
|
+
var LinkIcon = styled(Icon).withConfig({
|
|
83
|
+
displayName: "Typography__LinkIcon",
|
|
84
84
|
componentId: "sc-1uvxoh6-0"
|
|
85
85
|
})(["", ""], typographyTokens.typographyType.a.icon);
|
|
86
86
|
var StyledTypography = styled.p.withConfig({
|
|
@@ -142,12 +142,12 @@ var Typography = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
142
142
|
var as = propAs ? propAs : getElementType(typographyType);
|
|
143
143
|
var relProp;
|
|
144
144
|
var targetProp;
|
|
145
|
-
var
|
|
145
|
+
var renderIcon = false;
|
|
146
146
|
|
|
147
147
|
if (isAnchorProps(props)) {
|
|
148
148
|
var externalLink = props.externalLink,
|
|
149
149
|
target = props.target;
|
|
150
|
-
|
|
150
|
+
renderIcon = (_a = as === 'a' && externalLink) !== null && _a !== void 0 ? _a : false;
|
|
151
151
|
relProp = as === 'a' ? 'noopener noreferer' : undefined;
|
|
152
152
|
targetProp = as !== 'a' ? undefined : externalLink ? '_blank' : target;
|
|
153
153
|
}
|
|
@@ -162,9 +162,9 @@ var Typography = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
162
162
|
return jsxs(StyledTypography, Object.assign({
|
|
163
163
|
ref: ref
|
|
164
164
|
}, typographyProps, {
|
|
165
|
-
children: [children,
|
|
166
|
-
|
|
167
|
-
iconSize: "
|
|
165
|
+
children: [children, renderIcon && jsx(LinkIcon, {
|
|
166
|
+
icon: OpenExternalIcon,
|
|
167
|
+
iconSize: "inherit"
|
|
168
168
|
})]
|
|
169
169
|
}));
|
|
170
170
|
});
|
|
@@ -6,7 +6,7 @@ import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
|
|
|
6
6
|
var Wrapper = styled.span.withConfig({
|
|
7
7
|
displayName: "VisuallyHidden__Wrapper",
|
|
8
8
|
componentId: "sc-ciubxt-0"
|
|
9
|
-
})(["width:1px;height:1px;margin:0px;padding:0px;top:0px;inset-inline-start:0px;overflow:hidden;clip:rect(
|
|
9
|
+
})(["position:absolute;width:1px;height:1px;margin:0px;padding:0px;top:0px;inset-inline-start:0px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);border:0px;"]);
|
|
10
10
|
var VisuallyHidden = function VisuallyHidden(props) {
|
|
11
11
|
var children = props.children,
|
|
12
12
|
id = props.id,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Strategy } from '@floating-ui/react-dom';
|
|
3
2
|
export declare type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
4
3
|
export declare const useFloatPosition: (arrowRef: HTMLElement | null, placement?: Placement, offset?: number) => {
|