@helsenorge/designsystem-react 13.0.0-beta.2 → 13.0.0-beta.5
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/index.d.ts +7 -16
- package/lib/AlertSignFill.js +17 -0
- package/lib/AlertSignFill.js.map +1 -0
- package/lib/AlertSignStroke.js +17 -0
- package/lib/AlertSignStroke.js.map +1 -0
- package/lib/AnchorLink.js +52 -0
- package/lib/AnchorLink.js.map +1 -0
- package/lib/ArrowDown.js +29 -0
- package/lib/ArrowDown.js.map +1 -0
- package/lib/ArrowRight.js +17 -0
- package/lib/ArrowRight.js.map +1 -0
- package/lib/ArrowUp.js +29 -0
- package/lib/ArrowUp.js.map +1 -0
- package/lib/ArrowUpRight.js +17 -0
- package/lib/ArrowUpRight.js.map +1 -0
- package/lib/AsChildSlot.js +64 -0
- package/lib/AsChildSlot.js.map +1 -0
- package/lib/Avatar.js +31 -0
- package/lib/Avatar.js.map +1 -0
- package/lib/BabyMobileMedium.js +264 -0
- package/lib/BabyMobileMedium.js.map +1 -0
- package/lib/Badge.js +31 -0
- package/lib/Badge.js.map +1 -0
- package/lib/Button.js +129 -0
- package/lib/Button.js.map +1 -0
- package/lib/CHANGELOG.md +2653 -0
- package/lib/Calendar.js +29 -0
- package/lib/Calendar.js.map +1 -0
- package/lib/Check.js +17 -0
- package/lib/Check.js.map +1 -0
- package/lib/CheckFill.js +29 -0
- package/lib/CheckFill.js.map +1 -0
- package/lib/CheckOutline.js +15 -0
- package/lib/CheckOutline.js.map +1 -0
- package/lib/Checkbox.js +117 -0
- package/lib/Checkbox.js.map +1 -0
- package/lib/Checkbox2.js +5 -0
- package/lib/Checkbox2.js.map +1 -0
- package/lib/ChevronDown.js +17 -0
- package/lib/ChevronDown.js.map +1 -0
- package/lib/ChevronLeft.js +17 -0
- package/lib/ChevronLeft.js.map +1 -0
- package/lib/ChevronRight.js +17 -0
- package/lib/ChevronRight.js.map +1 -0
- package/lib/ChevronUp.js +17 -0
- package/lib/ChevronUp.js.map +1 -0
- package/lib/ChildMedium.js +127 -0
- package/lib/ChildMedium.js.map +1 -0
- package/lib/Close.js +44 -0
- package/lib/Close.js.map +1 -0
- package/lib/DictionaryTrigger.js +23 -0
- package/lib/DictionaryTrigger.js.map +1 -0
- package/lib/DoctorMedium.js +55 -0
- package/lib/DoctorMedium.js.map +1 -0
- package/lib/DoctorSmall.js +65 -0
- package/lib/DoctorSmall.js.map +1 -0
- package/lib/Drawer.js +227 -0
- package/lib/Drawer.js.map +1 -0
- package/lib/Duolist.js +74 -0
- package/lib/Duolist.js.map +1 -0
- package/lib/ElementHeader.js +152 -0
- package/lib/ElementHeader.js.map +1 -0
- package/lib/ElementHeaderText.js +33 -0
- package/lib/ElementHeaderText.js.map +1 -0
- package/lib/EmptyBox.js +17 -0
- package/lib/EmptyBox.js.map +1 -0
- package/lib/ErrorSignFill.js +17 -0
- package/lib/ErrorSignFill.js.map +1 -0
- package/lib/ErrorWrapper.js +24 -0
- package/lib/ErrorWrapper.js.map +1 -0
- package/lib/Expander.js +107 -0
- package/lib/Expander.js.map +1 -0
- package/lib/FacialRecognitionFingerprintMedium.js +200 -0
- package/lib/FacialRecognitionFingerprintMedium.js.map +1 -0
- package/lib/FormFieldTag.js +50 -0
- package/lib/FormFieldTag.js.map +1 -0
- package/lib/FormGroup.js +134 -0
- package/lib/FormGroup.js.map +1 -0
- package/lib/FormLayout.js +42 -0
- package/lib/FormLayout.js.map +1 -0
- package/lib/Forward.js +17 -0
- package/lib/Forward.js.map +1 -0
- package/lib/GiveBabyFoodMedium.js +241 -0
- package/lib/GiveBabyFoodMedium.js.map +1 -0
- package/lib/HN.Designsystem.Dropdown.nb-NO.js +5 -0
- package/lib/HN.Designsystem.Dropdown.nb-NO.js.map +1 -0
- package/lib/HandWaving.js +9 -0
- package/lib/HandWaving.js.map +1 -0
- package/lib/HealthcarePersonnelMedium.js +149 -0
- package/lib/HealthcarePersonnelMedium.js.map +1 -0
- package/lib/HealthcarePersonnelSmall.js +150 -0
- package/lib/HealthcarePersonnelSmall.js.map +1 -0
- package/lib/HelpDetails.js +54 -0
- package/lib/HelpDetails.js.map +1 -0
- package/lib/HelpTriggerIcon.js +105 -0
- package/lib/HelpTriggerIcon.js.map +1 -0
- package/lib/HelpTriggerStandalone.js +43 -0
- package/lib/HelpTriggerStandalone.js.map +1 -0
- package/lib/HighlightPanel.js +77 -0
- package/lib/HighlightPanel.js.map +1 -0
- package/lib/Highlighter.js +45 -0
- package/lib/Highlighter.js.map +1 -0
- package/lib/HorizontalScroll.js +48 -0
- package/lib/HorizontalScroll.js.map +1 -0
- package/lib/Icon.js +48 -0
- package/lib/Icon.js.map +1 -0
- package/lib/Illustration.js +51 -0
- package/lib/Illustration.js.map +1 -0
- package/lib/IllustrationNames.js +31 -0
- package/lib/IllustrationNames.js.map +1 -0
- package/lib/InfoSignFill.js +17 -0
- package/lib/InfoSignFill.js.map +1 -0
- package/lib/InfoTeaser.js +80 -0
- package/lib/InfoTeaser.js.map +1 -0
- package/lib/Input.js +174 -0
- package/lib/Input.js.map +1 -0
- package/lib/Input2.js +5 -0
- package/lib/Input2.js.map +1 -0
- package/lib/Label.js +138 -0
- package/lib/Label.js.map +1 -0
- package/lib/LazyIcon.js +379 -0
- package/lib/LazyIcon.js.map +1 -0
- package/lib/LazyIllustration.js +69 -0
- package/lib/LazyIllustration.js.map +1 -0
- package/lib/LinkList.js +128 -0
- package/lib/LinkList.js.map +1 -0
- package/lib/List.js +22 -0
- package/lib/List.js.map +1 -0
- package/lib/ListEditMode.js +43 -0
- package/lib/ListEditMode.js.map +1 -0
- package/lib/MaxCharacters.js +24 -0
- package/lib/MaxCharacters.js.map +1 -0
- package/lib/NotificationBadge.js +53 -0
- package/lib/NotificationBadge.js.map +1 -0
- package/lib/Panel.js +267 -0
- package/lib/Panel.js.map +1 -0
- package/lib/PanelOld.js +322 -0
- package/lib/PanelOld.js.map +1 -0
- package/lib/PanelTitle.js +34 -0
- package/lib/PanelTitle.js.map +1 -0
- package/lib/Pencil.js +27 -0
- package/lib/Pencil.js.map +1 -0
- package/lib/PlusSmall.js +17 -0
- package/lib/PlusSmall.js.map +1 -0
- package/lib/PopOver.js +68 -0
- package/lib/PopOver.js.map +1 -0
- package/lib/Portal.js +26 -0
- package/lib/Portal.js.map +1 -0
- package/lib/RadioButton.js +92 -0
- package/lib/RadioButton.js.map +1 -0
- package/lib/RadioButton2.js +5 -0
- package/lib/RadioButton2.js.map +1 -0
- package/lib/ReadLettersMedium.js +79 -0
- package/lib/ReadLettersMedium.js.map +1 -0
- package/lib/Select.js +79 -0
- package/lib/Select.js.map +1 -0
- package/lib/SingleSelectItem.js +99 -0
- package/lib/SingleSelectItem.js.map +1 -0
- package/lib/Slider.js +269 -0
- package/lib/Slider.js.map +1 -0
- package/lib/Spacer.js +31 -0
- package/lib/Spacer.js.map +1 -0
- package/lib/StatusDot.js +150 -0
- package/lib/StatusDot.js.map +1 -0
- package/lib/StatusDotList.js +33 -0
- package/lib/StatusDotList.js.map +1 -0
- package/lib/StepButtons.js +39 -0
- package/lib/StepButtons.js.map +1 -0
- package/lib/StrollerMedium.js +220 -0
- package/lib/StrollerMedium.js.map +1 -0
- package/lib/Support2Medium.js +159 -0
- package/lib/Support2Medium.js.map +1 -0
- package/lib/TabList.js +190 -0
- package/lib/TabList.js.map +1 -0
- package/lib/TabPanel.js +18 -0
- package/lib/TabPanel.js.map +1 -0
- package/lib/Table.js +126 -0
- package/lib/Table.js.map +1 -0
- package/lib/TableBody.js +16 -0
- package/lib/TableBody.js.map +1 -0
- package/lib/TableCell.js +24 -0
- package/lib/TableCell.js.map +1 -0
- package/lib/TableExpandedRow.js +32 -0
- package/lib/TableExpandedRow.js.map +1 -0
- package/lib/TableExpanderCell.js +27 -0
- package/lib/TableExpanderCell.js.map +1 -0
- package/lib/TableHead.js +27 -0
- package/lib/TableHead.js.map +1 -0
- package/lib/TableHeadCell.js +55 -0
- package/lib/TableHeadCell.js.map +1 -0
- package/lib/TableRow.js +46 -0
- package/lib/TableRow.js.map +1 -0
- package/lib/Textarea.js +112 -0
- package/lib/Textarea.js.map +1 -0
- package/lib/Title.js +38 -0
- package/lib/Title.js.map +1 -0
- package/lib/Title2.js +5 -0
- package/lib/Title2.js.map +1 -0
- package/lib/Toast.js +46 -0
- package/lib/Toast.js.map +1 -0
- package/lib/TriangleX.js +33 -0
- package/lib/TriangleX.js.map +1 -0
- package/lib/Undo.js +37 -0
- package/lib/Undo.js.map +1 -0
- package/lib/VerticalDots.js +17 -0
- package/lib/VerticalDots.js.map +1 -0
- package/lib/Watch.js +29 -0
- package/lib/Watch.js.map +1 -0
- package/lib/X.js +19 -0
- package/lib/X.js.map +1 -0
- package/lib/__mocks__/IntersectionObserver.js +10 -0
- package/lib/__mocks__/IntersectionObserver.js.map +1 -0
- package/lib/__mocks__/MutationObserver.js +9 -0
- package/lib/__mocks__/MutationObserver.js.map +1 -0
- package/lib/__mocks__/ResizeObserver.js +10 -0
- package/lib/__mocks__/ResizeObserver.js.map +1 -0
- package/lib/__mocks__/matchMedia.js +14 -0
- package/lib/__mocks__/matchMedia.js.map +1 -0
- package/lib/__mocks__/useLayoutEvent.js +3 -0
- package/lib/__mocks__/useLayoutEvent.js.map +1 -0
- package/lib/__mocks__/useOutsideEvent.js +3 -0
- package/lib/__mocks__/useOutsideEvent.js.map +1 -0
- package/lib/__mocks__/usePseudoClasses.js +9 -0
- package/lib/__mocks__/usePseudoClasses.js.map +1 -0
- package/lib/__mocks__/useSize.js +10 -0
- package/lib/__mocks__/useSize.js.map +1 -0
- package/lib/__mocks__/uuid.js +9 -0
- package/lib/__mocks__/uuid.js.map +1 -0
- package/lib/_rolldown_dynamic_import_helper.js +28 -0
- package/lib/_rolldown_dynamic_import_helper.js.map +1 -0
- package/lib/accessibility.js +17 -0
- package/lib/accessibility.js.map +1 -0
- package/lib/color.js +10 -0
- package/lib/color.js.map +1 -0
- package/lib/component.js +10 -0
- package/lib/component.js.map +1 -0
- package/lib/components/AnchorLink/index.js +13 -0
- package/lib/components/ArticleTeaser/index.js +51 -0
- package/lib/components/ArticleTeaser/index.js.map +1 -0
- package/lib/components/ArticleTeaser/styles.module.scss +81 -0
- package/lib/components/AsChildSlot/AsChildSlot.d.ts +23 -0
- package/lib/components/AsChildSlot/index.d.ts +3 -0
- package/lib/components/AsChildSlot/index.js +3 -0
- package/lib/components/AsChildSlot/styles.module.scss +13 -0
- package/lib/components/AsChildSlot/styles.module.scss.d.ts +9 -0
- package/lib/components/Avatar/index.js +6 -0
- package/lib/components/Badge/index.js +10 -0
- package/lib/components/Button/index.js +19 -0
- package/lib/components/Button/styles.module.scss +447 -0
- package/lib/components/Checkbox/index.js +47 -0
- package/lib/components/Checkbox/styles.module.scss +460 -0
- package/lib/components/Chip/index.js +55 -0
- package/lib/components/Chip/index.js.map +1 -0
- package/lib/components/Close/index.js +10 -0
- package/lib/components/DictionaryTrigger/index.js +3 -0
- package/lib/components/Drawer/index.js +39 -0
- package/lib/components/Drawer/styles.module.scss +186 -0
- package/lib/components/Drawer/styles.module.scss.d.ts +23 -0
- package/lib/components/Dropdown/Dropdown.d.ts +40 -0
- package/lib/components/Dropdown/SingleSelect/SingleSelect.d.ts +18 -0
- package/lib/components/Dropdown/SingleSelect/SingleSelectItem.d.ts +21 -0
- package/lib/components/Dropdown/SingleSelect/index.d.ts +3 -0
- package/lib/components/Dropdown/SingleSelect/index.js +7 -0
- package/lib/components/Dropdown/SingleSelect/index.js.map +1 -0
- package/lib/components/Dropdown/SingleSelect/styles.module.scss +54 -0
- package/lib/components/Dropdown/SingleSelect/styles.module.scss.d.ts +14 -0
- package/lib/components/Dropdown/index.js +284 -0
- package/lib/components/Dropdown/index.js.map +1 -0
- package/lib/components/Dropdown/styles.module.scss +186 -0
- package/lib/components/Dropdown/styles.module.scss.d.ts +24 -0
- package/lib/components/DropdownOld/DropdownOld.d.ts +42 -0
- package/lib/components/DropdownOld/index.d.ts +3 -0
- package/lib/components/DropdownOld/index.js +204 -0
- package/lib/components/DropdownOld/index.js.map +1 -0
- package/lib/components/DropdownOld/resourceHelper.d.ts +3 -0
- package/lib/components/Duolist/index.js +6 -0
- package/lib/components/ElementHeader/ElementHeaderText/index.js +13 -0
- package/lib/components/ElementHeader/ElementHeaderText/index.js.map +1 -0
- package/lib/components/ElementHeader/StatusDotList/index.js +36 -0
- package/lib/components/ElementHeader/index.js +53 -0
- package/lib/components/ElementHeader/index.js.map +1 -0
- package/lib/components/ElementHeader/styles.module.scss +155 -0
- package/lib/components/EmptyState/index.js +281 -0
- package/lib/components/EmptyState/index.js.map +1 -0
- package/lib/components/ErrorWrapper/index.js +2 -0
- package/lib/components/Expander/index.js +26 -0
- package/lib/components/ExpanderHierarchy/index.js +94 -0
- package/lib/components/ExpanderHierarchy/index.js.map +1 -0
- package/lib/components/ExpanderList/index.js +243 -0
- package/lib/components/ExpanderList/index.js.map +1 -0
- package/lib/components/ExpanderList/styles.module.scss +498 -0
- package/lib/components/EyebrowHeader/index.js +24 -0
- package/lib/components/EyebrowHeader/index.js.map +1 -0
- package/lib/components/FavoriteButton/index.js +146 -0
- package/lib/components/FavoriteButton/index.js.map +1 -0
- package/lib/components/FormFieldTag/FormFieldTag.d.ts +15 -0
- package/lib/components/FormFieldTag/index.js +4 -0
- package/lib/components/FormGroup/FormGroup.d.ts +45 -0
- package/lib/components/FormGroup/index.js +60 -0
- package/lib/components/FormGroup/index.js.map +1 -0
- package/lib/components/FormLayout/index.js +3 -0
- package/lib/components/HelpBubble/index.js +93 -0
- package/lib/components/HelpBubble/index.js.map +1 -0
- package/lib/components/HelpDrawer/index.js +68 -0
- package/lib/components/HelpDrawer/index.js.map +1 -0
- package/lib/components/HelpExpanderInline/index.js +25 -0
- package/lib/components/HelpExpanderInline/index.js.map +1 -0
- package/lib/components/HelpExpanderStandalone/index.js +50 -0
- package/lib/components/HelpExpanderStandalone/index.js.map +1 -0
- package/lib/components/HelpPanel/index.js +52 -0
- package/lib/components/HelpPanel/index.js.map +1 -0
- package/lib/components/HelpTeaser/index.js +31 -0
- package/lib/components/HelpTeaser/index.js.map +1 -0
- package/lib/components/HelpTooltip/index.js +43 -0
- package/lib/components/HelpTooltip/index.js.map +1 -0
- package/lib/components/HelpTriggerIcon/index.js +6 -0
- package/lib/components/HelpTriggerInline/index.js +41 -0
- package/lib/components/HelpTriggerInline/index.js.map +1 -0
- package/lib/components/HelpTriggerStandalone/index.js +10 -0
- package/lib/components/HighlightPanel/index.js +34 -0
- package/lib/components/Highlighter/index.js +9 -0
- package/lib/components/HorizontalScroll/index.js +7 -0
- package/lib/components/Icon/index.js +3 -0
- package/lib/components/Icons/ActiveMonitoring.js +15 -0
- package/lib/components/Icons/ActiveMonitoring.js.map +1 -0
- package/lib/components/Icons/AcupunctureBack.js +24 -0
- package/lib/components/Icons/AcupunctureBack.js.map +1 -0
- package/lib/components/Icons/AdditionalIconInformation.js +1345 -0
- package/lib/components/Icons/AdditionalIconInformation.js.map +1 -0
- package/lib/components/Icons/AlarmClock.js +40 -0
- package/lib/components/Icons/AlarmClock.js.map +1 -0
- package/lib/components/Icons/AlertSignFill.js +4 -0
- package/lib/components/Icons/AlertSignStroke.js +4 -0
- package/lib/components/Icons/Amputation.js +9 -0
- package/lib/components/Icons/Amputation.js.map +1 -0
- package/lib/components/Icons/Anxiety.js +9 -0
- package/lib/components/Icons/Anxiety.js.map +1 -0
- package/lib/components/Icons/Apple.js +9 -0
- package/lib/components/Icons/Apple.js.map +1 -0
- package/lib/components/Icons/Archive.js +30 -0
- package/lib/components/Icons/Archive.js.map +1 -0
- package/lib/components/Icons/ArmFlexing.js +9 -0
- package/lib/components/Icons/ArmFlexing.js.map +1 -0
- package/lib/components/Icons/ArrowDown.js +4 -0
- package/lib/components/Icons/ArrowLeft.js +18 -0
- package/lib/components/Icons/ArrowLeft.js.map +1 -0
- package/lib/components/Icons/ArrowRight.js +4 -0
- package/lib/components/Icons/ArrowUp.js +4 -0
- package/lib/components/Icons/ArrowUpRight.js +4 -0
- package/lib/components/Icons/Attachment.js +28 -0
- package/lib/components/Icons/Attachment.js.map +1 -0
- package/lib/components/Icons/Atv.js +9 -0
- package/lib/components/Icons/Atv.js.map +1 -0
- package/lib/components/Icons/Avatar.js +18 -0
- package/lib/components/Icons/Avatar.js.map +1 -0
- package/lib/components/Icons/AwakePersonOnPillow.js +9 -0
- package/lib/components/Icons/AwakePersonOnPillow.js.map +1 -0
- package/lib/components/Icons/Baby.js +9 -0
- package/lib/components/Icons/Baby.js.map +1 -0
- package/lib/components/Icons/BandAid.js +9 -0
- package/lib/components/Icons/BandAid.js.map +1 -0
- package/lib/components/Icons/BeerAndPills.js +15 -0
- package/lib/components/Icons/BeerAndPills.js.map +1 -0
- package/lib/components/Icons/Bell.js +9 -0
- package/lib/components/Icons/Bell.js.map +1 -0
- package/lib/components/Icons/Bike.js +9 -0
- package/lib/components/Icons/Bike.js.map +1 -0
- package/lib/components/Icons/BirthControl.js +15 -0
- package/lib/components/Icons/BirthControl.js.map +1 -0
- package/lib/components/Icons/BirthdayCake.js +9 -0
- package/lib/components/Icons/BirthdayCake.js.map +1 -0
- package/lib/components/Icons/Boat.js +9 -0
- package/lib/components/Icons/Boat.js.map +1 -0
- package/lib/components/Icons/Body.js +15 -0
- package/lib/components/Icons/Body.js.map +1 -0
- package/lib/components/Icons/Braille.js +16 -0
- package/lib/components/Icons/Braille.js.map +1 -0
- package/lib/components/Icons/Brain.js +9 -0
- package/lib/components/Icons/Brain.js.map +1 -0
- package/lib/components/Icons/BreastReconstruction.js +15 -0
- package/lib/components/Icons/BreastReconstruction.js.map +1 -0
- package/lib/components/Icons/BreastRemoval.js +15 -0
- package/lib/components/Icons/BreastRemoval.js.map +1 -0
- package/lib/components/Icons/Breasts.js +9 -0
- package/lib/components/Icons/Breasts.js.map +1 -0
- package/lib/components/Icons/BrokenHeart.js +9 -0
- package/lib/components/Icons/BrokenHeart.js.map +1 -0
- package/lib/components/Icons/BrokenPuzzle.js +9 -0
- package/lib/components/Icons/BrokenPuzzle.js.map +1 -0
- package/lib/components/Icons/Bus.js +34 -0
- package/lib/components/Icons/Bus.js.map +1 -0
- package/lib/components/Icons/Calendar.js +4 -0
- package/lib/components/Icons/CalendarChange.js +30 -0
- package/lib/components/Icons/CalendarChange.js.map +1 -0
- package/lib/components/Icons/CalendarCheck.js +30 -0
- package/lib/components/Icons/CalendarCheck.js.map +1 -0
- package/lib/components/Icons/CalendarEvent.js +9 -0
- package/lib/components/Icons/CalendarEvent.js.map +1 -0
- package/lib/components/Icons/CalendarSave.js +18 -0
- package/lib/components/Icons/CalendarSave.js.map +1 -0
- package/lib/components/Icons/Cancer.js +23 -0
- package/lib/components/Icons/Cancer.js.map +1 -0
- package/lib/components/Icons/Candle.js +22 -0
- package/lib/components/Icons/Candle.js.map +1 -0
- package/lib/components/Icons/Car.js +9 -0
- package/lib/components/Icons/Car.js.map +1 -0
- package/lib/components/Icons/Carton.js +29 -0
- package/lib/components/Icons/Carton.js.map +1 -0
- package/lib/components/Icons/Change.js +36 -0
- package/lib/components/Icons/Change.js.map +1 -0
- package/lib/components/Icons/Check.js +4 -0
- package/lib/components/Icons/CheckFill.js +4 -0
- package/lib/components/Icons/CheckOutline.js +2 -0
- package/lib/components/Icons/Chest.js +9 -0
- package/lib/components/Icons/Chest.js.map +1 -0
- package/lib/components/Icons/ChevronDown.js +4 -0
- package/lib/components/Icons/ChevronLeft.js +4 -0
- package/lib/components/Icons/ChevronRight.js +4 -0
- package/lib/components/Icons/ChevronUp.js +4 -0
- package/lib/components/Icons/ChevronsDown.js +30 -0
- package/lib/components/Icons/ChevronsDown.js.map +1 -0
- package/lib/components/Icons/ChevronsUp.js +30 -0
- package/lib/components/Icons/ChevronsUp.js.map +1 -0
- package/lib/components/Icons/ChildPlaying.js +9 -0
- package/lib/components/Icons/ChildPlaying.js.map +1 -0
- package/lib/components/Icons/Cigarette.js +9 -0
- package/lib/components/Icons/Cigarette.js.map +1 -0
- package/lib/components/Icons/Coins.js +15 -0
- package/lib/components/Icons/Coins.js.map +1 -0
- package/lib/components/Icons/Contacts.js +18 -0
- package/lib/components/Icons/Contacts.js.map +1 -0
- package/lib/components/Icons/Copy.js +29 -0
- package/lib/components/Icons/Copy.js.map +1 -0
- package/lib/components/Icons/CoronaCertificate.js +15 -0
- package/lib/components/Icons/CoronaCertificate.js.map +1 -0
- package/lib/components/Icons/Coronavirus.js +9 -0
- package/lib/components/Icons/Coronavirus.js.map +1 -0
- package/lib/components/Icons/Cough.js +9 -0
- package/lib/components/Icons/Cough.js.map +1 -0
- package/lib/components/Icons/CreditCard.js +147 -0
- package/lib/components/Icons/CreditCard.js.map +1 -0
- package/lib/components/Icons/CriticalHealthInfo.js +9 -0
- package/lib/components/Icons/CriticalHealthInfo.js.map +1 -0
- package/lib/components/Icons/Cross.js +9 -0
- package/lib/components/Icons/Cross.js.map +1 -0
- package/lib/components/Icons/DataExchange.js +15 -0
- package/lib/components/Icons/DataExchange.js.map +1 -0
- package/lib/components/Icons/DataReceived.js +15 -0
- package/lib/components/Icons/DataReceived.js.map +1 -0
- package/lib/components/Icons/DataSent.js +15 -0
- package/lib/components/Icons/DataSent.js.map +1 -0
- package/lib/components/Icons/Depression.js +9 -0
- package/lib/components/Icons/Depression.js.map +1 -0
- package/lib/components/Icons/DigestiveSystem.js +9 -0
- package/lib/components/Icons/DigestiveSystem.js.map +1 -0
- package/lib/components/Icons/Dizzy.js +9 -0
- package/lib/components/Icons/Dizzy.js.map +1 -0
- package/lib/components/Icons/Documents.js +9 -0
- package/lib/components/Icons/Documents.js.map +1 -0
- package/lib/components/Icons/Dog.js +9 -0
- package/lib/components/Icons/Dog.js.map +1 -0
- package/lib/components/Icons/DonorCard.js +9 -0
- package/lib/components/Icons/DonorCard.js.map +1 -0
- package/lib/components/Icons/DotActive.js +24 -0
- package/lib/components/Icons/DotActive.js.map +1 -0
- package/lib/components/Icons/DotAlert.js +24 -0
- package/lib/components/Icons/DotAlert.js.map +1 -0
- package/lib/components/Icons/DotCancelled.js +24 -0
- package/lib/components/Icons/DotCancelled.js.map +1 -0
- package/lib/components/Icons/DotHalfDisc.js +24 -0
- package/lib/components/Icons/DotHalfDisc.js.map +1 -0
- package/lib/components/Icons/DotInactive.js +24 -0
- package/lib/components/Icons/DotInactive.js.map +1 -0
- package/lib/components/Icons/DotInfo.js +40 -0
- package/lib/components/Icons/DotInfo.js.map +1 -0
- package/lib/components/Icons/DotLookingGlass.js +24 -0
- package/lib/components/Icons/DotLookingGlass.js.map +1 -0
- package/lib/components/Icons/DotPending.js +16 -0
- package/lib/components/Icons/DotPending.js.map +1 -0
- package/lib/components/Icons/DotQuestionMark.js +24 -0
- package/lib/components/Icons/DotQuestionMark.js.map +1 -0
- package/lib/components/Icons/DotSuccess.js +24 -0
- package/lib/components/Icons/DotSuccess.js.map +1 -0
- package/lib/components/Icons/DotTransparent.js +24 -0
- package/lib/components/Icons/DotTransparent.js.map +1 -0
- package/lib/components/Icons/DotWarningTriangle.js +24 -0
- package/lib/components/Icons/DotWarningTriangle.js.map +1 -0
- package/lib/components/Icons/Download.js +30 -0
- package/lib/components/Icons/Download.js.map +1 -0
- package/lib/components/Icons/Draft.js +9 -0
- package/lib/components/Icons/Draft.js.map +1 -0
- package/lib/components/Icons/Drag.js +16 -0
- package/lib/components/Icons/Drag.js.map +1 -0
- package/lib/components/Icons/EChat.js +18 -0
- package/lib/components/Icons/EChat.js.map +1 -0
- package/lib/components/Icons/Ear.js +16 -0
- package/lib/components/Icons/Ear.js.map +1 -0
- package/lib/components/Icons/EarDeaf.js +16 -0
- package/lib/components/Icons/EarDeaf.js.map +1 -0
- package/lib/components/Icons/EarHearingAid.js +16 -0
- package/lib/components/Icons/EarHearingAid.js.map +1 -0
- package/lib/components/Icons/EarNoseThroat.js +17 -0
- package/lib/components/Icons/EarNoseThroat.js.map +1 -0
- package/lib/components/Icons/EarVolume.js +25 -0
- package/lib/components/Icons/EarVolume.js.map +1 -0
- package/lib/components/Icons/Edit.js +24 -0
- package/lib/components/Icons/Edit.js.map +1 -0
- package/lib/components/Icons/ElderlyPerson.js +9 -0
- package/lib/components/Icons/ElderlyPerson.js.map +1 -0
- package/lib/components/Icons/Embolization.js +15 -0
- package/lib/components/Icons/Embolization.js.map +1 -0
- package/lib/components/Icons/EmergencyCall.js +24 -0
- package/lib/components/Icons/EmergencyCall.js.map +1 -0
- package/lib/components/Icons/EmoticonAnnoyed.js +26 -0
- package/lib/components/Icons/EmoticonAnnoyed.js.map +1 -0
- package/lib/components/Icons/EmoticonDelighted.js +26 -0
- package/lib/components/Icons/EmoticonDelighted.js.map +1 -0
- package/lib/components/Icons/EmoticonDisappointed.js +26 -0
- package/lib/components/Icons/EmoticonDisappointed.js.map +1 -0
- package/lib/components/Icons/EmoticonHappy.js +26 -0
- package/lib/components/Icons/EmoticonHappy.js.map +1 -0
- package/lib/components/Icons/EmoticonMeh.js +26 -0
- package/lib/components/Icons/EmoticonMeh.js.map +1 -0
- package/lib/components/Icons/EmptyBox.js +2 -0
- package/lib/components/Icons/EnterFullScreen.js +27 -0
- package/lib/components/Icons/EnterFullScreen.js.map +1 -0
- package/lib/components/Icons/Envelope.js +18 -0
- package/lib/components/Icons/Envelope.js.map +1 -0
- package/lib/components/Icons/Epilepsy.js +9 -0
- package/lib/components/Icons/Epilepsy.js.map +1 -0
- package/lib/components/Icons/Eraser.js +18 -0
- package/lib/components/Icons/Eraser.js.map +1 -0
- package/lib/components/Icons/ErrorSignFill.js +4 -0
- package/lib/components/Icons/ErrorSignStroke.js +18 -0
- package/lib/components/Icons/ErrorSignStroke.js.map +1 -0
- package/lib/components/Icons/EuropeanHealthCard.js +9 -0
- package/lib/components/Icons/EuropeanHealthCard.js.map +1 -0
- package/lib/components/Icons/ExitFullScreen.js +27 -0
- package/lib/components/Icons/ExitFullScreen.js.map +1 -0
- package/lib/components/Icons/Eye.js +36 -0
- package/lib/components/Icons/Eye.js.map +1 -0
- package/lib/components/Icons/Facebook.js +9 -0
- package/lib/components/Icons/Facebook.js.map +1 -0
- package/lib/components/Icons/FallingLeaf.js +27 -0
- package/lib/components/Icons/FallingLeaf.js.map +1 -0
- package/lib/components/Icons/Feedback.js +21 -0
- package/lib/components/Icons/Feedback.js.map +1 -0
- package/lib/components/Icons/Female.js +9 -0
- package/lib/components/Icons/Female.js.map +1 -0
- package/lib/components/Icons/FemaleDoctor.js +9 -0
- package/lib/components/Icons/FemaleDoctor.js.map +1 -0
- package/lib/components/Icons/Ferry.js +9 -0
- package/lib/components/Icons/Ferry.js.map +1 -0
- package/lib/components/Icons/File.js +30 -0
- package/lib/components/Icons/File.js.map +1 -0
- package/lib/components/Icons/Filter.js +28 -0
- package/lib/components/Icons/Filter.js.map +1 -0
- package/lib/components/Icons/FingerBleed.js +9 -0
- package/lib/components/Icons/FingerBleed.js.map +1 -0
- package/lib/components/Icons/FirstAidKit.js +9 -0
- package/lib/components/Icons/FirstAidKit.js.map +1 -0
- package/lib/components/Icons/Fish.js +31 -0
- package/lib/components/Icons/Fish.js.map +1 -0
- package/lib/components/Icons/FloppyDisk.js +15 -0
- package/lib/components/Icons/FloppyDisk.js.map +1 -0
- package/lib/components/Icons/Football.js +9 -0
- package/lib/components/Icons/Football.js.map +1 -0
- package/lib/components/Icons/Form.js +18 -0
- package/lib/components/Icons/Form.js.map +1 -0
- package/lib/components/Icons/Forward.js +4 -0
- package/lib/components/Icons/Gallery.js +30 -0
- package/lib/components/Icons/Gallery.js.map +1 -0
- package/lib/components/Icons/Garden.js +9 -0
- package/lib/components/Icons/Garden.js.map +1 -0
- package/lib/components/Icons/GasCan.js +9 -0
- package/lib/components/Icons/GasCan.js.map +1 -0
- package/lib/components/Icons/GenderIdentity.js +15 -0
- package/lib/components/Icons/GenderIdentity.js.map +1 -0
- package/lib/components/Icons/GlassWater.js +15 -0
- package/lib/components/Icons/GlassWater.js.map +1 -0
- package/lib/components/Icons/Glasses.js +24 -0
- package/lib/components/Icons/Glasses.js.map +1 -0
- package/lib/components/Icons/Globe.js +18 -0
- package/lib/components/Icons/Globe.js.map +1 -0
- package/lib/components/Icons/Grain.js +15 -0
- package/lib/components/Icons/Grain.js.map +1 -0
- package/lib/components/Icons/Graph.js +22 -0
- package/lib/components/Icons/Graph.js.map +1 -0
- package/lib/components/Icons/Group.js +36 -0
- package/lib/components/Icons/Group.js.map +1 -0
- package/lib/components/Icons/GroupTwins.js +62 -0
- package/lib/components/Icons/GroupTwins.js.map +1 -0
- package/lib/components/Icons/HTMLFile.js +24 -0
- package/lib/components/Icons/HTMLFile.js.map +1 -0
- package/lib/components/Icons/HandWaving.js +2 -0
- package/lib/components/Icons/HandWithDisease.js +9 -0
- package/lib/components/Icons/HandWithDisease.js.map +1 -0
- package/lib/components/Icons/HandsAndHeart.js +22 -0
- package/lib/components/Icons/HandsAndHeart.js.map +1 -0
- package/lib/components/Icons/HealthClinic.js +15 -0
- package/lib/components/Icons/HealthClinic.js.map +1 -0
- package/lib/components/Icons/HealthMeasurements.js +17 -0
- package/lib/components/Icons/HealthMeasurements.js.map +1 -0
- package/lib/components/Icons/HealthWarning.js +15 -0
- package/lib/components/Icons/HealthWarning.js.map +1 -0
- package/lib/components/Icons/HealthcarePerson.js +58 -0
- package/lib/components/Icons/HealthcarePerson.js.map +1 -0
- package/lib/components/Icons/HealthcarePersonell.js +69 -0
- package/lib/components/Icons/HealthcarePersonell.js.map +1 -0
- package/lib/components/Icons/HearingProtection.js +24 -0
- package/lib/components/Icons/HearingProtection.js.map +1 -0
- package/lib/components/Icons/Heart.js +18 -0
- package/lib/components/Icons/Heart.js.map +1 -0
- package/lib/components/Icons/HeartHands.js +51 -0
- package/lib/components/Icons/HeartHands.js.map +1 -0
- package/lib/components/Icons/HelpSign.js +18 -0
- package/lib/components/Icons/HelpSign.js.map +1 -0
- package/lib/components/Icons/HelpingHand.js +15 -0
- package/lib/components/Icons/HelpingHand.js.map +1 -0
- package/lib/components/Icons/Hemodialysis.js +15 -0
- package/lib/components/Icons/Hemodialysis.js.map +1 -0
- package/lib/components/Icons/Hiker.js +9 -0
- package/lib/components/Icons/Hiker.js.map +1 -0
- package/lib/components/Icons/Hipprosthesis.js +15 -0
- package/lib/components/Icons/Hipprosthesis.js.map +1 -0
- package/lib/components/Icons/History.js +18 -0
- package/lib/components/Icons/History.js.map +1 -0
- package/lib/components/Icons/HivAndAids.js +9 -0
- package/lib/components/Icons/HivAndAids.js.map +1 -0
- package/lib/components/Icons/Home.js +30 -0
- package/lib/components/Icons/Home.js.map +1 -0
- package/lib/components/Icons/HomeFill.js +34 -0
- package/lib/components/Icons/HomeFill.js.map +1 -0
- package/lib/components/Icons/Hormone.js +9 -0
- package/lib/components/Icons/Hormone.js.map +1 -0
- package/lib/components/Icons/Hospital.js +30 -0
- package/lib/components/Icons/Hospital.js.map +1 -0
- package/lib/components/Icons/Hourglass.js +30 -0
- package/lib/components/Icons/Hourglass.js.map +1 -0
- package/lib/components/Icons/IconNames.js +343 -0
- package/lib/components/Icons/IconNames.js.map +1 -0
- package/lib/components/Icons/ImgFile.js +15 -0
- package/lib/components/Icons/ImgFile.js.map +1 -0
- package/lib/components/Icons/Inbox.js +12 -0
- package/lib/components/Icons/Inbox.js.map +1 -0
- package/lib/components/Icons/InfoSignFill.js +4 -0
- package/lib/components/Icons/InfoSignStroke.js +18 -0
- package/lib/components/Icons/InfoSignStroke.js.map +1 -0
- package/lib/components/Icons/Instagram.js +13 -0
- package/lib/components/Icons/Instagram.js.map +1 -0
- package/lib/components/Icons/Intravenous.js +15 -0
- package/lib/components/Icons/Intravenous.js.map +1 -0
- package/lib/components/Icons/JointPain.js +9 -0
- package/lib/components/Icons/JointPain.js.map +1 -0
- package/lib/components/Icons/Journal.js +18 -0
- package/lib/components/Icons/Journal.js.map +1 -0
- package/lib/components/Icons/JpgFile.js +15 -0
- package/lib/components/Icons/JpgFile.js.map +1 -0
- package/lib/components/Icons/Kidney.js +9 -0
- package/lib/components/Icons/Kidney.js.map +1 -0
- package/lib/components/Icons/KitchenScale.js +15 -0
- package/lib/components/Icons/KitchenScale.js.map +1 -0
- package/lib/components/Icons/Kjernejournal.js +9 -0
- package/lib/components/Icons/Kjernejournal.js.map +1 -0
- package/lib/components/Icons/Laboratory.js +15 -0
- package/lib/components/Icons/Laboratory.js.map +1 -0
- package/lib/components/Icons/LaptopBlog.js +9 -0
- package/lib/components/Icons/LaptopBlog.js.map +1 -0
- package/lib/components/Icons/LawBook.js +9 -0
- package/lib/components/Icons/LawBook.js.map +1 -0
- package/lib/components/Icons/LegalDocument.js +28 -0
- package/lib/components/Icons/LegalDocument.js.map +1 -0
- package/lib/components/Icons/LightBulb.js +9 -0
- package/lib/components/Icons/LightBulb.js.map +1 -0
- package/lib/components/Icons/List.js +30 -0
- package/lib/components/Icons/List.js.map +1 -0
- package/lib/components/Icons/Location.js +18 -0
- package/lib/components/Icons/Location.js.map +1 -0
- package/lib/components/Icons/LocationFill.js +34 -0
- package/lib/components/Icons/LocationFill.js.map +1 -0
- package/lib/components/Icons/Lock.js +24 -0
- package/lib/components/Icons/Lock.js.map +1 -0
- package/lib/components/Icons/Login.js +36 -0
- package/lib/components/Icons/Login.js.map +1 -0
- package/lib/components/Icons/Logout.js +34 -0
- package/lib/components/Icons/Logout.js.map +1 -0
- package/lib/components/Icons/Lungs.js +9 -0
- package/lib/components/Icons/Lungs.js.map +1 -0
- package/lib/components/Icons/Makeup.js +9 -0
- package/lib/components/Icons/Makeup.js.map +1 -0
- package/lib/components/Icons/MaleDoctor.js +9 -0
- package/lib/components/Icons/MaleDoctor.js.map +1 -0
- package/lib/components/Icons/MaleDoctorAndPerson.js +17 -0
- package/lib/components/Icons/MaleDoctorAndPerson.js.map +1 -0
- package/lib/components/Icons/MaleDoctorCompact.js +42 -0
- package/lib/components/Icons/MaleDoctorCompact.js.map +1 -0
- package/lib/components/Icons/MaleDoctorCompactFill.js +34 -0
- package/lib/components/Icons/MaleDoctorCompactFill.js.map +1 -0
- package/lib/components/Icons/MaleGenitalia.js +9 -0
- package/lib/components/Icons/MaleGenitalia.js.map +1 -0
- package/lib/components/Icons/Medicine.js +30 -0
- package/lib/components/Icons/Medicine.js.map +1 -0
- package/lib/components/Icons/MedicineWarning.js +15 -0
- package/lib/components/Icons/MedicineWarning.js.map +1 -0
- package/lib/components/Icons/MentalHealthAdult.js +9 -0
- package/lib/components/Icons/MentalHealthAdult.js.map +1 -0
- package/lib/components/Icons/MentalHealthChild.js +9 -0
- package/lib/components/Icons/MentalHealthChild.js.map +1 -0
- package/lib/components/Icons/Menu.js +18 -0
- package/lib/components/Icons/Menu.js.map +1 -0
- package/lib/components/Icons/Microscope.js +15 -0
- package/lib/components/Icons/Microscope.js.map +1 -0
- package/lib/components/Icons/Minus.js +18 -0
- package/lib/components/Icons/Minus.js.map +1 -0
- package/lib/components/Icons/Mirror.js +9 -0
- package/lib/components/Icons/Mirror.js.map +1 -0
- package/lib/components/Icons/MobilePhone.js +18 -0
- package/lib/components/Icons/MobilePhone.js.map +1 -0
- package/lib/components/Icons/MotherHoldingBaby.js +9 -0
- package/lib/components/Icons/MotherHoldingBaby.js.map +1 -0
- package/lib/components/Icons/MuscleBack.js +17 -0
- package/lib/components/Icons/MuscleBack.js.map +1 -0
- package/lib/components/Icons/MuscleLeg.js +9 -0
- package/lib/components/Icons/MuscleLeg.js.map +1 -0
- package/lib/components/Icons/Mushroom.js +9 -0
- package/lib/components/Icons/Mushroom.js.map +1 -0
- package/lib/components/Icons/Music.js +15 -0
- package/lib/components/Icons/Music.js.map +1 -0
- package/lib/components/Icons/MusselsAndSalt.js +9 -0
- package/lib/components/Icons/MusselsAndSalt.js.map +1 -0
- package/lib/components/Icons/NoAccess.js +48 -0
- package/lib/components/Icons/NoAccess.js.map +1 -0
- package/lib/components/Icons/NoEye.js +32 -0
- package/lib/components/Icons/NoEye.js.map +1 -0
- package/lib/components/Icons/NoFilter.js +18 -0
- package/lib/components/Icons/NoFilter.js.map +1 -0
- package/lib/components/Icons/Notepad.js +9 -0
- package/lib/components/Icons/Notepad.js.map +1 -0
- package/lib/components/Icons/Osteotomy.js +15 -0
- package/lib/components/Icons/Osteotomy.js.map +1 -0
- package/lib/components/Icons/PaintRoller.js +9 -0
- package/lib/components/Icons/PaintRoller.js.map +1 -0
- package/lib/components/Icons/PaperPlane.js +18 -0
- package/lib/components/Icons/PaperPlane.js.map +1 -0
- package/lib/components/Icons/PatientAndPerson.js +9 -0
- package/lib/components/Icons/PatientAndPerson.js.map +1 -0
- package/lib/components/Icons/Pause.js +18 -0
- package/lib/components/Icons/Pause.js.map +1 -0
- package/lib/components/Icons/PdfFile.js +15 -0
- package/lib/components/Icons/PdfFile.js.map +1 -0
- package/lib/components/Icons/Pencil.js +4 -0
- package/lib/components/Icons/PeopleTalking.js +15 -0
- package/lib/components/Icons/PeopleTalking.js.map +1 -0
- package/lib/components/Icons/Peritonealdialysis.js +15 -0
- package/lib/components/Icons/Peritonealdialysis.js.map +1 -0
- package/lib/components/Icons/Person.js +9 -0
- package/lib/components/Icons/Person.js.map +1 -0
- package/lib/components/Icons/PersonAndPatient.js +9 -0
- package/lib/components/Icons/PersonAndPatient.js.map +1 -0
- package/lib/components/Icons/PersonCancel.js +65 -0
- package/lib/components/Icons/PersonCancel.js.map +1 -0
- package/lib/components/Icons/PersonInXRayMachine.js +15 -0
- package/lib/components/Icons/PersonInXRayMachine.js.map +1 -0
- package/lib/components/Icons/PersonOverweight.js +9 -0
- package/lib/components/Icons/PersonOverweight.js.map +1 -0
- package/lib/components/Icons/PersonRelaxing.js +9 -0
- package/lib/components/Icons/PersonRelaxing.js.map +1 -0
- package/lib/components/Icons/PersonWithBrain.js +9 -0
- package/lib/components/Icons/PersonWithBrain.js.map +1 -0
- package/lib/components/Icons/PersonWithBrokenArm.js +9 -0
- package/lib/components/Icons/PersonWithBrokenArm.js.map +1 -0
- package/lib/components/Icons/PersonWithCrutches.js +9 -0
- package/lib/components/Icons/PersonWithCrutches.js.map +1 -0
- package/lib/components/Icons/PersonWithJaw.js +9 -0
- package/lib/components/Icons/PersonWithJaw.js.map +1 -0
- package/lib/components/Icons/PersonWithMagnifyingGlass.js +9 -0
- package/lib/components/Icons/PersonWithMagnifyingGlass.js.map +1 -0
- package/lib/components/Icons/PersonWithSenses.js +21 -0
- package/lib/components/Icons/PersonWithSenses.js.map +1 -0
- package/lib/components/Icons/PersonWorking.js +9 -0
- package/lib/components/Icons/PersonWorking.js.map +1 -0
- package/lib/components/Icons/PersonalPlan.js +28 -0
- package/lib/components/Icons/PersonalPlan.js.map +1 -0
- package/lib/components/Icons/PizzaSlice.js +9 -0
- package/lib/components/Icons/PizzaSlice.js.map +1 -0
- package/lib/components/Icons/Plane.js +9 -0
- package/lib/components/Icons/Plane.js.map +1 -0
- package/lib/components/Icons/Plant.js +9 -0
- package/lib/components/Icons/Plant.js.map +1 -0
- package/lib/components/Icons/PlateKnifeFork.js +21 -0
- package/lib/components/Icons/PlateKnifeFork.js.map +1 -0
- package/lib/components/Icons/Play.js +30 -0
- package/lib/components/Icons/Play.js.map +1 -0
- package/lib/components/Icons/PlusLarge.js +18 -0
- package/lib/components/Icons/PlusLarge.js.map +1 -0
- package/lib/components/Icons/PlusSmall.js +4 -0
- package/lib/components/Icons/PngFile.js +15 -0
- package/lib/components/Icons/PngFile.js.map +1 -0
- package/lib/components/Icons/Podcast.js +15 -0
- package/lib/components/Icons/Podcast.js.map +1 -0
- package/lib/components/Icons/PoisonInformation.js +9 -0
- package/lib/components/Icons/PoisonInformation.js.map +1 -0
- package/lib/components/Icons/Pregnant.js +9 -0
- package/lib/components/Icons/Pregnant.js.map +1 -0
- package/lib/components/Icons/Printer.js +30 -0
- package/lib/components/Icons/Printer.js.map +1 -0
- package/lib/components/Icons/Psychosis.js +9 -0
- package/lib/components/Icons/Psychosis.js.map +1 -0
- package/lib/components/Icons/Publication.js +15 -0
- package/lib/components/Icons/Publication.js.map +1 -0
- package/lib/components/Icons/Puzzle.js +9 -0
- package/lib/components/Icons/Puzzle.js.map +1 -0
- package/lib/components/Icons/QrCode.js +30 -0
- package/lib/components/Icons/QrCode.js.map +1 -0
- package/lib/components/Icons/Quarrel.js +15 -0
- package/lib/components/Icons/Quarrel.js.map +1 -0
- package/lib/components/Icons/RadioTherapy.js +15 -0
- package/lib/components/Icons/RadioTherapy.js.map +1 -0
- package/lib/components/Icons/RadioactiveTreatment.js +15 -0
- package/lib/components/Icons/RadioactiveTreatment.js.map +1 -0
- package/lib/components/Icons/Radioiodine.js +15 -0
- package/lib/components/Icons/Radioiodine.js.map +1 -0
- package/lib/components/Icons/Receipt.js +9 -0
- package/lib/components/Icons/Receipt.js.map +1 -0
- package/lib/components/Icons/Receptionist.js +18 -0
- package/lib/components/Icons/Receptionist.js.map +1 -0
- package/lib/components/Icons/Recovery.js +15 -0
- package/lib/components/Icons/Recovery.js.map +1 -0
- package/lib/components/Icons/Referral.js +18 -0
- package/lib/components/Icons/Referral.js.map +1 -0
- package/lib/components/Icons/Refresh.js +18 -0
- package/lib/components/Icons/Refresh.js.map +1 -0
- package/lib/components/Icons/Refund.js +9 -0
- package/lib/components/Icons/Refund.js.map +1 -0
- package/lib/components/Icons/Reminder.js +29 -0
- package/lib/components/Icons/Reminder.js.map +1 -0
- package/lib/components/Icons/Reply.js +18 -0
- package/lib/components/Icons/Reply.js.map +1 -0
- package/lib/components/Icons/Rocket.js +9 -0
- package/lib/components/Icons/Rocket.js.map +1 -0
- package/lib/components/Icons/RtfFile.js +15 -0
- package/lib/components/Icons/RtfFile.js.map +1 -0
- package/lib/components/Icons/STDs.js +15 -0
- package/lib/components/Icons/STDs.js.map +1 -0
- package/lib/components/Icons/Save.js +26 -0
- package/lib/components/Icons/Save.js.map +1 -0
- package/lib/components/Icons/Scale.js +9 -0
- package/lib/components/Icons/Scale.js.map +1 -0
- package/lib/components/Icons/ScreenReader.js +42 -0
- package/lib/components/Icons/ScreenReader.js.map +1 -0
- package/lib/components/Icons/Search.js +18 -0
- package/lib/components/Icons/Search.js.map +1 -0
- package/lib/components/Icons/SectionSign.js +30 -0
- package/lib/components/Icons/SectionSign.js.map +1 -0
- package/lib/components/Icons/Settings.js +34 -0
- package/lib/components/Icons/Settings.js.map +1 -0
- package/lib/components/Icons/SettingsFill.js +34 -0
- package/lib/components/Icons/SettingsFill.js.map +1 -0
- package/lib/components/Icons/Sexualorientation.js +15 -0
- package/lib/components/Icons/Sexualorientation.js.map +1 -0
- package/lib/components/Icons/ShakingHand.js +12 -0
- package/lib/components/Icons/ShakingHand.js.map +1 -0
- package/lib/components/Icons/Share.js +18 -0
- package/lib/components/Icons/Share.js.map +1 -0
- package/lib/components/Icons/SharedHealthData.js +17 -0
- package/lib/components/Icons/SharedHealthData.js.map +1 -0
- package/lib/components/Icons/SharedHealthMeasurements.js +17 -0
- package/lib/components/Icons/SharedHealthMeasurements.js.map +1 -0
- package/lib/components/Icons/Shield.js +15 -0
- package/lib/components/Icons/Shield.js.map +1 -0
- package/lib/components/Icons/ShuntOperation.js +15 -0
- package/lib/components/Icons/ShuntOperation.js.map +1 -0
- package/lib/components/Icons/Skeleton.js +9 -0
- package/lib/components/Icons/Skeleton.js.map +1 -0
- package/lib/components/Icons/Skin.js +9 -0
- package/lib/components/Icons/Skin.js.map +1 -0
- package/lib/components/Icons/Snake.js +9 -0
- package/lib/components/Icons/Snake.js.map +1 -0
- package/lib/components/Icons/Snapchat.js +9 -0
- package/lib/components/Icons/Snapchat.js.map +1 -0
- package/lib/components/Icons/SortDown.js +47 -0
- package/lib/components/Icons/SortDown.js.map +1 -0
- package/lib/components/Icons/SortUp.js +47 -0
- package/lib/components/Icons/SortUp.js.map +1 -0
- package/lib/components/Icons/SpeechBubble.js +30 -0
- package/lib/components/Icons/SpeechBubble.js.map +1 -0
- package/lib/components/Icons/Spray.js +9 -0
- package/lib/components/Icons/Spray.js.map +1 -0
- package/lib/components/Icons/StickyNote.js +17 -0
- package/lib/components/Icons/StickyNote.js.map +1 -0
- package/lib/components/Icons/StickyNotes.js +17 -0
- package/lib/components/Icons/StickyNotes.js.map +1 -0
- package/lib/components/Icons/Stopwatch.js +30 -0
- package/lib/components/Icons/Stopwatch.js.map +1 -0
- package/lib/components/Icons/Sun.js +32 -0
- package/lib/components/Icons/Sun.js.map +1 -0
- package/lib/components/Icons/SupportingPerson.js +35 -0
- package/lib/components/Icons/SupportingPerson.js.map +1 -0
- package/lib/components/Icons/Surgery.js +15 -0
- package/lib/components/Icons/Surgery.js.map +1 -0
- package/lib/components/Icons/Sweets.js +29 -0
- package/lib/components/Icons/Sweets.js.map +1 -0
- package/lib/components/Icons/Syringe.js +24 -0
- package/lib/components/Icons/Syringe.js.map +1 -0
- package/lib/components/Icons/Taxi.js +9 -0
- package/lib/components/Icons/Taxi.js.map +1 -0
- package/lib/components/Icons/TeddyBear.js +9 -0
- package/lib/components/Icons/TeddyBear.js.map +1 -0
- package/lib/components/Icons/Teenagers.js +15 -0
- package/lib/components/Icons/Teenagers.js.map +1 -0
- package/lib/components/Icons/ThinkingAboutBaby.js +9 -0
- package/lib/components/Icons/ThinkingAboutBaby.js.map +1 -0
- package/lib/components/Icons/Ticket.js +9 -0
- package/lib/components/Icons/Ticket.js.map +1 -0
- package/lib/components/Icons/TimePassing.js +30 -0
- package/lib/components/Icons/TimePassing.js.map +1 -0
- package/lib/components/Icons/Toddler.js +9 -0
- package/lib/components/Icons/Toddler.js.map +1 -0
- package/lib/components/Icons/Tombstone.js +22 -0
- package/lib/components/Icons/Tombstone.js.map +1 -0
- package/lib/components/Icons/Toolbox.js +36 -0
- package/lib/components/Icons/Toolbox.js.map +1 -0
- package/lib/components/Icons/Tooth.js +9 -0
- package/lib/components/Icons/Tooth.js.map +1 -0
- package/lib/components/Icons/TotalKneeProsthesis.js +15 -0
- package/lib/components/Icons/TotalKneeProsthesis.js.map +1 -0
- package/lib/components/Icons/Train.js +9 -0
- package/lib/components/Icons/Train.js.map +1 -0
- package/lib/components/Icons/Transplantation.js +15 -0
- package/lib/components/Icons/Transplantation.js.map +1 -0
- package/lib/components/Icons/TrashCan.js +30 -0
- package/lib/components/Icons/TrashCan.js.map +1 -0
- package/lib/components/Icons/TravelRoute.js +41 -0
- package/lib/components/Icons/TravelRoute.js.map +1 -0
- package/lib/components/Icons/TreatmentAids.js +37 -0
- package/lib/components/Icons/TreatmentAids.js.map +1 -0
- package/lib/components/Icons/TriangleX.js +4 -0
- package/lib/components/Icons/Twitter.js +9 -0
- package/lib/components/Icons/Twitter.js.map +1 -0
- package/lib/components/Icons/Undo.js +4 -0
- package/lib/components/Icons/UniProsthesis.js +15 -0
- package/lib/components/Icons/UniProsthesis.js.map +1 -0
- package/lib/components/Icons/Upload.js +18 -0
- package/lib/components/Icons/Upload.js.map +1 -0
- package/lib/components/Icons/UserOrganization.js +9 -0
- package/lib/components/Icons/UserOrganization.js.map +1 -0
- package/lib/components/Icons/Vaccine.js +30 -0
- package/lib/components/Icons/Vaccine.js.map +1 -0
- package/lib/components/Icons/VerticalDots.js +4 -0
- package/lib/components/Icons/VideoCamera.js +30 -0
- package/lib/components/Icons/VideoCamera.js.map +1 -0
- package/lib/components/Icons/VideoChat.js +18 -0
- package/lib/components/Icons/VideoChat.js.map +1 -0
- package/lib/components/Icons/Wallet.js +18 -0
- package/lib/components/Icons/Wallet.js.map +1 -0
- package/lib/components/Icons/Watch.js +4 -0
- package/lib/components/Icons/Website.js +15 -0
- package/lib/components/Icons/Website.js.map +1 -0
- package/lib/components/Icons/Wheelchair.js +15 -0
- package/lib/components/Icons/Wheelchair.js.map +1 -0
- package/lib/components/Icons/WheelchairActive.js +15 -0
- package/lib/components/Icons/WheelchairActive.js.map +1 -0
- package/lib/components/Icons/Window.js +9 -0
- package/lib/components/Icons/Window.js.map +1 -0
- package/lib/components/Icons/WordDocument.js +12 -0
- package/lib/components/Icons/WordDocument.js.map +1 -0
- package/lib/components/Icons/WorkSuitcase.js +12 -0
- package/lib/components/Icons/WorkSuitcase.js.map +1 -0
- package/lib/components/Icons/X.js +4 -0
- package/lib/components/Icons/XOutline.js +15 -0
- package/lib/components/Icons/XOutline.js.map +1 -0
- package/lib/components/Icons/XmlFile.js +15 -0
- package/lib/components/Icons/XmlFile.js.map +1 -0
- package/lib/components/Icons/YouTube.js +9 -0
- package/lib/components/Icons/YouTube.js.map +1 -0
- package/lib/components/Icons/Zoom.js +30 -0
- package/lib/components/Icons/Zoom.js.map +1 -0
- package/lib/components/Illustration/index.js +4 -0
- package/lib/components/Illustrations/BabyMobile.js +19 -0
- package/lib/components/Illustrations/BabyMobile.js.map +1 -0
- package/lib/components/Illustrations/BabyMobileMedium.js +5 -0
- package/lib/components/Illustrations/Child.js +19 -0
- package/lib/components/Illustrations/Child.js.map +1 -0
- package/lib/components/Illustrations/ChildMedium.js +5 -0
- package/lib/components/Illustrations/Doctor.js +22 -0
- package/lib/components/Illustrations/Doctor.js.map +1 -0
- package/lib/components/Illustrations/DoctorMedium.js +2 -0
- package/lib/components/Illustrations/DoctorSmall.js +2 -0
- package/lib/components/Illustrations/FacialRecognitionFingerprint.js +19 -0
- package/lib/components/Illustrations/FacialRecognitionFingerprint.js.map +1 -0
- package/lib/components/Illustrations/FacialRecognitionFingerprintMedium.js +5 -0
- package/lib/components/Illustrations/GiveBabyFood.js +19 -0
- package/lib/components/Illustrations/GiveBabyFood.js.map +1 -0
- package/lib/components/Illustrations/GiveBabyFoodMedium.js +5 -0
- package/lib/components/Illustrations/HealthcarePersonnel.js +22 -0
- package/lib/components/Illustrations/HealthcarePersonnel.js.map +1 -0
- package/lib/components/Illustrations/HealthcarePersonnelMedium.js +2 -0
- package/lib/components/Illustrations/HealthcarePersonnelSmall.js +2 -0
- package/lib/components/Illustrations/IllustrationNames.js +2 -0
- package/lib/components/Illustrations/ReadLetters.js +19 -0
- package/lib/components/Illustrations/ReadLetters.js.map +1 -0
- package/lib/components/Illustrations/ReadLettersMedium.js +5 -0
- package/lib/components/Illustrations/Stroller.js +19 -0
- package/lib/components/Illustrations/Stroller.js.map +1 -0
- package/lib/components/Illustrations/StrollerMedium.js +5 -0
- package/lib/components/Illustrations/Support2.js +19 -0
- package/lib/components/Illustrations/Support2.js.map +1 -0
- package/lib/components/Illustrations/Support2Medium.js +5 -0
- package/lib/components/InfoTeaser/index.js +10 -0
- package/lib/components/Input/index.js +47 -0
- package/lib/components/Label/Label.d.ts +45 -0
- package/lib/components/Label/index.js +40 -0
- package/lib/components/Label/styles.module.scss +71 -0
- package/lib/components/LazyIcon/index.js +6 -0
- package/lib/components/LazyIllustration/index.js +8 -0
- package/lib/components/LinkList/index.js +54 -0
- package/lib/components/LinkList/styles.module.scss +306 -0
- package/lib/components/LinkList/styles.module.scss.d.ts +51 -0
- package/lib/components/List/index.js +3 -0
- package/lib/components/ListEditMode/index.js +6 -0
- package/lib/components/ListEditMode/styles.module.scss +80 -0
- package/lib/components/Loader/index.js +86 -0
- package/lib/components/Loader/index.js.map +1 -0
- package/lib/components/Logo/index.js +49 -0
- package/lib/components/Logo/index.js.map +1 -0
- package/lib/components/Modal/Modal.d.ts +61 -0
- package/lib/components/Modal/index.js +238 -0
- package/lib/components/Modal/index.js.map +1 -0
- package/lib/components/Modal/styles.module.scss +263 -0
- package/lib/components/Modal/styles.module.scss.d.ts +37 -0
- package/lib/components/NotificationPanel/index.js +130 -0
- package/lib/components/NotificationPanel/index.js.map +1 -0
- package/lib/components/NotificationPanel/styles.module.scss +198 -0
- package/lib/components/Panel/Panel.d.ts +78 -0
- package/lib/components/Panel/PanelTitle/index.js +12 -0
- package/lib/components/Panel/index.js +36 -0
- package/lib/components/Panel/index.js.map +1 -0
- package/lib/components/PanelList/index.js +55 -0
- package/lib/components/PanelList/index.js.map +1 -0
- package/lib/components/PanelListOld/PanelListOld.d.ts +12 -0
- package/lib/components/PanelListOld/index.d.ts +3 -0
- package/lib/components/PanelListOld/index.js +58 -0
- package/lib/components/PanelListOld/index.js.map +1 -0
- package/lib/components/PanelListOld/styles.module.scss +14 -0
- package/lib/components/PanelListOld/styles.module.scss.d.ts +9 -0
- package/lib/components/PanelOld/PanelOld.d.ts +89 -0
- package/lib/components/PanelOld/index.d.ts +3 -0
- package/lib/components/PanelOld/index.js +37 -0
- package/lib/components/PanelOld/styles.module.scss +433 -0
- package/lib/components/PanelOld/styles.module.scss.d.ts +61 -0
- package/lib/components/PopMenu/PopMenu.d.ts +41 -0
- package/lib/components/PopMenu/index.js +149 -0
- package/lib/components/PopMenu/index.js.map +1 -0
- package/lib/components/PopMenu/styles.module.scss +37 -0
- package/lib/components/PopMenu/styles.module.scss.d.ts +9 -0
- package/lib/components/PopOver/index.js +5 -0
- package/lib/components/Portal/index.js +3 -0
- package/lib/components/Progressbar/index.js +107 -0
- package/lib/components/Progressbar/index.js.map +1 -0
- package/lib/components/PromoPanel/index.js +89 -0
- package/lib/components/PromoPanel/index.js.map +1 -0
- package/lib/components/RadioButton/index.js +46 -0
- package/lib/components/RadioButton/styles.module.scss +449 -0
- package/lib/components/RadioButton/styles.module.scss.d.ts +35 -0
- package/lib/components/Select/index.js +45 -0
- package/lib/components/ServiceMessage/index.js +173 -0
- package/lib/components/ServiceMessage/index.js.map +1 -0
- package/lib/components/SharingStatus/index.js +33 -0
- package/lib/components/SharingStatus/index.js.map +1 -0
- package/lib/components/Slider/index.js +12 -0
- package/lib/components/Spacer/index.js +3 -0
- package/lib/components/StatusDot/index.js +35 -0
- package/lib/components/StatusDot/styles.module.scss +104 -0
- package/lib/components/Step/index.js +35 -0
- package/lib/components/Step/index.js.map +1 -0
- package/lib/components/StepButtons/index.js +3 -0
- package/lib/components/Stepper/index.js +102 -0
- package/lib/components/Stepper/index.js.map +1 -0
- package/lib/components/StickyNote/index.js +205 -0
- package/lib/components/StickyNote/index.js.map +1 -0
- package/lib/components/Table/TableBody/index.js +15 -0
- package/lib/components/Table/TableCell/index.js +15 -0
- package/lib/components/Table/TableExpandedRow/index.js +31 -0
- package/lib/components/Table/TableExpanderCell/index.js +32 -0
- package/lib/components/Table/TableHead/index.js +15 -0
- package/lib/components/Table/TableHeadCell/index.js +18 -0
- package/lib/components/Table/TableRow/index.js +32 -0
- package/lib/components/Table/index.js +43 -0
- package/lib/components/Table/index.js.map +1 -0
- package/lib/components/Tabs/TabList/index.js +16 -0
- package/lib/components/Tabs/TabPanel/index.js +2 -0
- package/lib/components/Tabs/index.js +94 -0
- package/lib/components/Tabs/index.js.map +1 -0
- package/lib/components/Tag/index.js +47 -0
- package/lib/components/Tag/index.js.map +1 -0
- package/lib/components/TagList/index.js +19 -0
- package/lib/components/TagList/index.js.map +1 -0
- package/lib/components/Textarea/index.js +45 -0
- package/lib/components/Tile/index.js +71 -0
- package/lib/components/Tile/index.js.map +1 -0
- package/lib/components/Title/index.js +4 -0
- package/lib/components/Toast/Toast.d.ts +13 -0
- package/lib/components/Toast/index.d.ts +3 -0
- package/lib/components/Toast/index.js +15 -0
- package/lib/components/Toast/index.js.map +1 -0
- package/lib/components/Toast/styles.module.scss +70 -0
- package/lib/components/Toast/styles.module.scss.d.ts +15 -0
- package/lib/components/ToastList/ToastList.d.ts +14 -0
- package/lib/components/ToastList/index.d.ts +3 -0
- package/lib/components/ToastList/index.js +106 -0
- package/lib/components/ToastList/index.js.map +1 -0
- package/lib/components/ToastList/styles.module.scss +12 -0
- package/lib/components/ToastList/styles.module.scss.d.ts +9 -0
- package/lib/components/Toggle/index.js +161 -0
- package/lib/components/Toggle/index.js.map +1 -0
- package/lib/components/Toggle/styles.module.scss +161 -0
- package/lib/components/Validation/ValidationSummary.test.d.ts +1 -0
- package/lib/components/Validation/index.js +145 -0
- package/lib/components/Validation/index.js.map +1 -0
- package/lib/constants.d.ts +139 -0
- package/lib/constants.js +2 -0
- package/lib/constants2.js +123 -0
- package/lib/constants2.js.map +1 -0
- package/lib/debounce.js +16 -0
- package/lib/debounce.js.map +1 -0
- package/lib/deepContains.js +13 -0
- package/lib/deepContains.js.map +1 -0
- package/lib/designsystem-react.css +259 -0
- package/lib/device.js +6 -0
- package/lib/device.js.map +1 -0
- package/lib/docs/Tokens/TokensExample.d.ts +7 -0
- package/lib/environment.js +5 -0
- package/lib/environment.js.map +1 -0
- package/lib/floating-ui.react.js +3550 -0
- package/lib/floating-ui.react.js.map +1 -0
- package/lib/focus.js +11 -0
- package/lib/focus.js.map +1 -0
- package/lib/grid.js +24 -0
- package/lib/grid.js.map +1 -0
- package/lib/hoc/withBreakpoint/index.js +7 -0
- package/lib/hoc/withBreakpoint/index.js.map +1 -0
- package/lib/hoc/withBreakpoint/withBreakpoint.js +4 -0
- package/lib/hoc/withBreakpoint/withBreakpoint.test.d.ts +1 -0
- package/lib/hooks/useBreakpoint.js +3 -0
- package/lib/hooks/useElementList.js +2 -0
- package/lib/hooks/useEventListenerState.js +13 -0
- package/lib/hooks/useEventListenerState.js.map +1 -0
- package/lib/hooks/useExpand.js +3 -0
- package/lib/hooks/useFocusToggle.js +4 -0
- package/lib/hooks/useFocusTrap.js +5 -0
- package/lib/hooks/useFocusableElements.js +3 -0
- package/lib/hooks/useIcons.js +8 -0
- package/lib/hooks/useIdWithFallback.js +2 -0
- package/lib/hooks/useIntersectionObserver.js +2 -0
- package/lib/hooks/useInterval.js +12 -0
- package/lib/hooks/useInterval.js.map +1 -0
- package/lib/hooks/useIsMobileBreakpoint.js +4 -0
- package/lib/hooks/useIsServerSide.js +2 -0
- package/lib/hooks/useIsVisible.js +3 -0
- package/lib/hooks/useKeyboardEvent.js +2 -0
- package/lib/hooks/useLayoutEvent.js +3 -0
- package/lib/hooks/useOutsideEvent.js +2 -0
- package/lib/hooks/usePrevious.js +2 -0
- package/lib/hooks/usePseudoClasses.js +2 -0
- package/lib/hooks/useResizeObserver.js +2 -0
- package/lib/hooks/useReturnFocusOnUnmount.js +4 -0
- package/lib/hooks/useRovingFocus.js +4 -0
- package/lib/hooks/useSize.js +3 -0
- package/lib/hooks/useToggle.js +3 -0
- package/lib/hooks/usestopPropagation.js +2 -0
- package/lib/index.d.ts +17 -0
- package/lib/index.js +27 -0
- package/lib/language.js +19 -0
- package/lib/language.js.map +1 -0
- package/lib/mobile.js +14 -0
- package/lib/mobile.js.map +1 -0
- package/lib/palette.js +85 -0
- package/lib/palette.js.map +1 -0
- package/lib/refs.js +14 -0
- package/lib/refs.js.map +1 -0
- package/lib/resources/HN.Designsystem.FormFieldTag.nb-NO.json.d.ts +12 -0
- package/lib/scroll.js +9 -0
- package/lib/scroll.js.map +1 -0
- package/lib/scss/_body.scss +11 -0
- package/lib/scss/_breakpoints.scss +29 -0
- package/lib/scss/_figma-tokens.scss +68 -0
- package/lib/scss/_font-mixins.scss +262 -0
- package/lib/scss/_font-settings.scss +8 -0
- package/lib/scss/_fonts.scss +155 -0
- package/lib/scss/_grid.scss +6 -0
- package/lib/scss/_icon.scss +8 -0
- package/lib/scss/_input.scss +139 -0
- package/lib/scss/_palette.scss +146 -0
- package/lib/scss/_print.scss +219 -0
- package/lib/scss/_radio-reset.scss +21 -0
- package/lib/scss/_reset.scss +13 -0
- package/lib/scss/_screen-reader.scss +63 -0
- package/lib/scss/_spacers.scss +42 -0
- package/lib/scss/bootstrap/LICENSE +22 -0
- package/lib/scss/bootstrap/scss/_functions.scss +210 -0
- package/lib/scss/bootstrap/scss/_grid.scss +73 -0
- package/lib/scss/bootstrap/scss/_variables.scss +990 -0
- package/lib/scss/bootstrap/scss/bootstrap-grid.scss +30 -0
- package/lib/scss/bootstrap/scss/mixins/_breakpoints.scss +131 -0
- package/lib/scss/bootstrap/scss/mixins/_deprecate.scss +11 -0
- package/lib/scss/bootstrap/scss/mixins/_grid-framework.scss +89 -0
- package/lib/scss/bootstrap/scss/mixins/_grid.scss +76 -0
- package/lib/scss/bootstrap/scss/utilities/_display.scss +30 -0
- package/lib/scss/bootstrap/scss/utilities/_flex.scss +120 -0
- package/lib/scss/bootstrap/scss/utilities/_spacing.scss +80 -0
- package/lib/scss/bootstrap/scss/vendor/_rfs.scss +233 -0
- package/lib/scss/helsenorge.scss +11 -0
- package/lib/scss/layout.module.scss +14 -0
- package/lib/scss/layout.module.scss.d.ts +9 -0
- package/lib/scss/supernova/index.css +4 -0
- package/lib/scss/supernova/styles/colors.css +258 -0
- package/lib/scss/supernova/styles/spacers.css +24 -0
- package/lib/scss/supernova/styles/typography.css +110 -0
- package/lib/scss/typography.module.scss +182 -0
- package/lib/scss/typography.module.scss.d.ts +38 -0
- package/lib/scss/typography.stories.tsx +203 -0
- package/lib/spacers.js +20 -0
- package/lib/spacers.js.map +1 -0
- package/lib/spacing.js +25 -0
- package/lib/spacing.js.map +1 -0
- package/lib/theme/currys/color.js +6 -0
- package/lib/theme/currys/index.js +8 -0
- package/lib/theme/currys/spacing.js +3 -0
- package/lib/theme/grid.js +2 -0
- package/lib/theme/index.js +5 -0
- package/lib/theme/palette.js +2 -0
- package/lib/theme/spacers.js +2 -0
- package/lib/theme.js +13 -0
- package/lib/theme.js.map +1 -0
- package/lib/useBreakpoint.js +49 -0
- package/lib/useBreakpoint.js.map +1 -0
- package/lib/useElementList.js +25 -0
- package/lib/useElementList.js.map +1 -0
- package/lib/useExpand.js +16 -0
- package/lib/useExpand.js.map +1 -0
- package/lib/useFocusToggle.js +26 -0
- package/lib/useFocusToggle.js.map +1 -0
- package/lib/useFocusTrap.js +34 -0
- package/lib/useFocusTrap.js.map +1 -0
- package/lib/useFocusableElements.js +26 -0
- package/lib/useFocusableElements.js.map +1 -0
- package/lib/useIcons.js +26 -0
- package/lib/useIcons.js.map +1 -0
- package/lib/useIdWithFallback.js +8 -0
- package/lib/useIdWithFallback.js.map +1 -0
- package/lib/useIntersectionObserver.js +14 -0
- package/lib/useIntersectionObserver.js.map +1 -0
- package/lib/useIsMobileBreakpoint.js +8 -0
- package/lib/useIsMobileBreakpoint.js.map +1 -0
- package/lib/useIsServerSide.js +11 -0
- package/lib/useIsServerSide.js.map +1 -0
- package/lib/useIsVisible.js +16 -0
- package/lib/useIsVisible.js.map +1 -0
- package/lib/useKeyboardEvent.js +20 -0
- package/lib/useKeyboardEvent.js.map +1 -0
- package/lib/useLayoutEvent.js +21 -0
- package/lib/useLayoutEvent.js.map +1 -0
- package/lib/useOutsideEvent.js +20 -0
- package/lib/useOutsideEvent.js.map +1 -0
- package/lib/usePrevious.js +11 -0
- package/lib/usePrevious.js.map +1 -0
- package/lib/usePseudoClasses.js +46 -0
- package/lib/usePseudoClasses.js.map +1 -0
- package/lib/useResizeObserver.js +23 -0
- package/lib/useResizeObserver.js.map +1 -0
- package/lib/useReturnFocusOnUnmount.js +16 -0
- package/lib/useReturnFocusOnUnmount.js.map +1 -0
- package/lib/useRovingFocus.js +44 -0
- package/lib/useRovingFocus.js.map +1 -0
- package/lib/useSize.js +42 -0
- package/lib/useSize.js.map +1 -0
- package/lib/useToggle.js +22 -0
- package/lib/useToggle.js.map +1 -0
- package/lib/usestopPropagation.js +11 -0
- package/lib/usestopPropagation.js.map +1 -0
- package/lib/utils/accessibility.js +2 -0
- package/lib/utils/component.js +2 -0
- package/lib/utils/debounce.js +2 -0
- package/lib/utils/deepContains.js +2 -0
- package/lib/utils/device.js +2 -0
- package/lib/utils/environment.js +2 -0
- package/lib/utils/focus.js +2 -0
- package/lib/utils/language.js +2 -0
- package/lib/utils/loremtext.js +7 -0
- package/lib/utils/loremtext.js.map +1 -0
- package/lib/utils/mobile.js +2 -0
- package/lib/utils/refs.js +2 -0
- package/lib/utils/scroll.js +2 -0
- package/lib/utils/tests/accessibility.test.d.ts +1 -0
- package/lib/utils/tests/deepContains.test.d.ts +1 -0
- package/lib/utils/tests/language.test.d.ts +1 -0
- package/lib/utils/tests/setup-test.d.ts +0 -0
- package/lib/utils/tests/uuid.test.d.ts +1 -0
- package/lib/utils/tests/viewport.test.d.ts +1 -0
- package/lib/utils/uuid.js +3 -0
- package/lib/utils/viewport.js +2 -0
- package/lib/utils.js +8 -0
- package/lib/utils.js.map +1 -0
- package/lib/uuid.js +25 -0
- package/lib/uuid.js.map +1 -0
- package/lib/viewport.js +7 -0
- package/lib/viewport.js.map +1 -0
- package/lib/withBreakpoint.js +17 -0
- package/lib/withBreakpoint.js.map +1 -0
- package/package.json +749 -5
- package/scss/_radio-reset.scss +21 -0
- package/scss/helsenorge.scss +1 -0
- package/scss/supernova/styles/colors.css +20 -1
- package/AnchorLink.js +0 -66
- package/AnchorLink.js.map +0 -1
- package/Avatar.js +0 -40
- package/Avatar.js.map +0 -1
- package/Badge.js +0 -35
- package/Badge.js.map +0 -1
- package/Button.js +0 -178
- package/Button.js.map +0 -1
- package/CHANGELOG.md +0 -3262
- package/Checkbox.js +0 -134
- package/Checkbox.js.map +0 -1
- package/Close.js +0 -50
- package/Close.js.map +0 -1
- package/DictionaryTrigger.js +0 -28
- package/DictionaryTrigger.js.map +0 -1
- package/Drawer.js +0 -194
- package/Drawer.js.map +0 -1
- package/Duolist.js +0 -92
- package/Duolist.js.map +0 -1
- package/ElementHeader.js +0 -151
- package/ElementHeader.js.map +0 -1
- package/ElementHeaderText.js +0 -35
- package/ElementHeaderText.js.map +0 -1
- package/ErrorBoundary.js +0 -41
- package/ErrorBoundary.js.map +0 -1
- package/ErrorWrapper.js +0 -15
- package/ErrorWrapper.js.map +0 -1
- package/Expander.js +0 -131
- package/Expander.js.map +0 -1
- package/FormFieldTag.js +0 -47
- package/FormFieldTag.js.map +0 -1
- package/FormGroup.js +0 -158
- package/FormGroup.js.map +0 -1
- package/FormLayout.js +0 -50
- package/FormLayout.js.map +0 -1
- package/HelpDetails.js +0 -65
- package/HelpDetails.js.map +0 -1
- package/HelpTriggerIcon.js +0 -126
- package/HelpTriggerIcon.js.map +0 -1
- package/HelpTriggerStandalone.js +0 -40
- package/HelpTriggerStandalone.js.map +0 -1
- package/HighlightPanel.js +0 -66
- package/HighlightPanel.js.map +0 -1
- package/Highlighter.js +0 -44
- package/Highlighter.js.map +0 -1
- package/HorizontalScroll.js +0 -59
- package/HorizontalScroll.js.map +0 -1
- package/Icon.js +0 -73
- package/Icon.js.map +0 -1
- package/Illustration.js +0 -48
- package/Illustration.js.map +0 -1
- package/InfoTeaser.js +0 -74
- package/InfoTeaser.js.map +0 -1
- package/Input.js +0 -206
- package/Input.js.map +0 -1
- package/Label.js +0 -140
- package/Label.js.map +0 -1
- package/LazyIcon.js +0 -33
- package/LazyIcon.js.map +0 -1
- package/LazyIllustration.js +0 -38
- package/LazyIllustration.js.map +0 -1
- package/LinkList.js +0 -151
- package/LinkList.js.map +0 -1
- package/List.js +0 -15
- package/List.js.map +0 -1
- package/ListEditMode.js +0 -42
- package/ListEditMode.js.map +0 -1
- package/MaxCharacters.js +0 -17
- package/MaxCharacters.js.map +0 -1
- package/NotificationBadge.js +0 -68
- package/NotificationBadge.js.map +0 -1
- package/Panel.js +0 -265
- package/Panel.js.map +0 -1
- package/PanelTitle.js +0 -19
- package/PanelTitle.js.map +0 -1
- package/PopOver.js +0 -80
- package/PopOver.js.map +0 -1
- package/RadioButton.js +0 -120
- package/RadioButton.js.map +0 -1
- package/Select.js +0 -101
- package/Select.js.map +0 -1
- package/Slider.js +0 -305
- package/Slider.js.map +0 -1
- package/Spacer.js +0 -32
- package/Spacer.js.map +0 -1
- package/StatusDot.js +0 -106
- package/StatusDot.js.map +0 -1
- package/StatusDotList.js +0 -27
- package/StatusDotList.js.map +0 -1
- package/StepButtons.js +0 -32
- package/StepButtons.js.map +0 -1
- package/TabList.js +0 -190
- package/TabList.js.map +0 -1
- package/TabPanel.js +0 -16
- package/TabPanel.js.map +0 -1
- package/Table.js +0 -165
- package/Table.js.map +0 -1
- package/TableBody.js +0 -13
- package/TableBody.js.map +0 -1
- package/TableCell.js +0 -35
- package/TableCell.js.map +0 -1
- package/TableExpandedRow.js +0 -39
- package/TableExpandedRow.js.map +0 -1
- package/TableExpanderCell.js +0 -35
- package/TableExpanderCell.js.map +0 -1
- package/TableHead.js +0 -29
- package/TableHead.js.map +0 -1
- package/TableHeadCell.js +0 -52
- package/TableHeadCell.js.map +0 -1
- package/TableRow.js +0 -63
- package/TableRow.js.map +0 -1
- package/Textarea.js +0 -147
- package/Textarea.js.map +0 -1
- package/Title.js +0 -32
- package/Title.js.map +0 -1
- package/__mocks__/IntersectionObserver.js +0 -15
- package/__mocks__/IntersectionObserver.js.map +0 -1
- package/__mocks__/MutationObserver.js +0 -13
- package/__mocks__/MutationObserver.js.map +0 -1
- package/__mocks__/ResizeObserver.js +0 -15
- package/__mocks__/ResizeObserver.js.map +0 -1
- package/__mocks__/matchMedia.js +0 -15
- package/__mocks__/matchMedia.js.map +0 -1
- package/__mocks__/useLayoutEvent.js +0 -4
- package/__mocks__/useLayoutEvent.js.map +0 -1
- package/__mocks__/useOutsideEvent.js +0 -4
- package/__mocks__/useOutsideEvent.js.map +0 -1
- package/__mocks__/usePseudoClasses.js +0 -6
- package/__mocks__/usePseudoClasses.js.map +0 -1
- package/__mocks__/useSize.js +0 -11
- package/__mocks__/useSize.js.map +0 -1
- package/__mocks__/uuid.js +0 -9
- package/__mocks__/uuid.js.map +0 -1
- package/components/AnchorLink/index.js +0 -5
- package/components/AnchorLink/index.js.map +0 -1
- package/components/ArticleTeaser/index.js +0 -67
- package/components/ArticleTeaser/index.js.map +0 -1
- package/components/ArticleTeaser/styles.module.scss +0 -83
- package/components/Avatar/index.js +0 -7
- package/components/Avatar/index.js.map +0 -1
- package/components/Badge/index.js +0 -5
- package/components/Badge/index.js.map +0 -1
- package/components/Button/index.js +0 -5
- package/components/Button/index.js.map +0 -1
- package/components/Button/styles.module.scss +0 -402
- package/components/Checkbox/index.js +0 -6
- package/components/Checkbox/index.js.map +0 -1
- package/components/Checkbox/styles.module.scss +0 -449
- package/components/Chip/index.js +0 -51
- package/components/Chip/index.js.map +0 -1
- package/components/Close/index.js +0 -5
- package/components/Close/index.js.map +0 -1
- package/components/DictionaryTrigger/index.js +0 -5
- package/components/DictionaryTrigger/index.js.map +0 -1
- package/components/Drawer/index.js +0 -5
- package/components/Drawer/index.js.map +0 -1
- package/components/Drawer/styles.module.scss +0 -166
- package/components/Drawer/styles.module.scss.d.ts +0 -18
- package/components/Dropdown/Dropdown.d.ts +0 -42
- package/components/Dropdown/index.js +0 -201
- package/components/Dropdown/index.js.map +0 -1
- package/components/Duolist/index.js +0 -8
- package/components/Duolist/index.js.map +0 -1
- package/components/ElementHeader/ElementHeaderText/index.js +0 -6
- package/components/ElementHeader/ElementHeaderText/index.js.map +0 -1
- package/components/ElementHeader/StatusDotList/index.js +0 -6
- package/components/ElementHeader/StatusDotList/index.js.map +0 -1
- package/components/ElementHeader/index.js +0 -9
- package/components/ElementHeader/index.js.map +0 -1
- package/components/ElementHeader/styles.module.scss +0 -151
- package/components/EmptyState/index.js +0 -306
- package/components/EmptyState/index.js.map +0 -1
- package/components/ErrorWrapper/index.js +0 -6
- package/components/ErrorWrapper/index.js.map +0 -1
- package/components/Expander/index.js +0 -7
- package/components/Expander/index.js.map +0 -1
- package/components/ExpanderHierarchy/index.js +0 -115
- package/components/ExpanderHierarchy/index.js.map +0 -1
- package/components/ExpanderList/index.js +0 -218
- package/components/ExpanderList/index.js.map +0 -1
- package/components/ExpanderList/styles.module.scss +0 -518
- package/components/EyebrowHeader/index.js +0 -15
- package/components/EyebrowHeader/index.js.map +0 -1
- package/components/FavoriteButton/index.js +0 -209
- package/components/FavoriteButton/index.js.map +0 -1
- package/components/FormFieldTag/FormFieldTag.d.ts +0 -13
- package/components/FormFieldTag/index.js +0 -5
- package/components/FormFieldTag/index.js.map +0 -1
- package/components/FormGroup/FormGroup.d.ts +0 -46
- package/components/FormGroup/index.js +0 -6
- package/components/FormGroup/index.js.map +0 -1
- package/components/FormLayout/index.js +0 -8
- package/components/FormLayout/index.js.map +0 -1
- package/components/HelpBubble/index.js +0 -94
- package/components/HelpBubble/index.js.map +0 -1
- package/components/HelpDrawer/index.js +0 -40
- package/components/HelpDrawer/index.js.map +0 -1
- package/components/HelpExpanderInline/index.js +0 -16
- package/components/HelpExpanderInline/index.js.map +0 -1
- package/components/HelpExpanderStandalone/index.js +0 -50
- package/components/HelpExpanderStandalone/index.js.map +0 -1
- package/components/HelpPanel/index.js +0 -22
- package/components/HelpPanel/index.js.map +0 -1
- package/components/HelpTeaser/index.js +0 -25
- package/components/HelpTeaser/index.js.map +0 -1
- package/components/HelpTooltip/index.js +0 -32
- package/components/HelpTooltip/index.js.map +0 -1
- package/components/HelpTriggerIcon/index.js +0 -7
- package/components/HelpTriggerIcon/index.js.map +0 -1
- package/components/HelpTriggerInline/index.js +0 -38
- package/components/HelpTriggerInline/index.js.map +0 -1
- package/components/HelpTriggerStandalone/index.js +0 -5
- package/components/HelpTriggerStandalone/index.js.map +0 -1
- package/components/HighlightPanel/index.js +0 -5
- package/components/HighlightPanel/index.js.map +0 -1
- package/components/Highlighter/index.js +0 -6
- package/components/Highlighter/index.js.map +0 -1
- package/components/HorizontalScroll/index.js +0 -6
- package/components/HorizontalScroll/index.js.map +0 -1
- package/components/Icon/index.js +0 -10
- package/components/Icon/index.js.map +0 -1
- package/components/Icons/ActiveMonitoring.js +0 -22
- package/components/Icons/ActiveMonitoring.js.map +0 -1
- package/components/Icons/AcupunctureBack.js +0 -24
- package/components/Icons/AcupunctureBack.js.map +0 -1
- package/components/Icons/AdditionalIconInformation.js +0 -341
- package/components/Icons/AdditionalIconInformation.js.map +0 -1
- package/components/Icons/AlarmClock.js +0 -35
- package/components/Icons/AlarmClock.js.map +0 -1
- package/components/Icons/AlertSignFill.js +0 -13
- package/components/Icons/AlertSignFill.js.map +0 -1
- package/components/Icons/AlertSignStroke.js +0 -13
- package/components/Icons/AlertSignStroke.js.map +0 -1
- package/components/Icons/Amputation.js +0 -10
- package/components/Icons/Amputation.js.map +0 -1
- package/components/Icons/Anxiety.js +0 -10
- package/components/Icons/Anxiety.js.map +0 -1
- package/components/Icons/Apple.js +0 -10
- package/components/Icons/Apple.js.map +0 -1
- package/components/Icons/Archive.js +0 -37
- package/components/Icons/Archive.js.map +0 -1
- package/components/Icons/ArmFlexing.js +0 -10
- package/components/Icons/ArmFlexing.js.map +0 -1
- package/components/Icons/ArrowDown.js +0 -37
- package/components/Icons/ArrowDown.js.map +0 -1
- package/components/Icons/ArrowLeft.js +0 -13
- package/components/Icons/ArrowLeft.js.map +0 -1
- package/components/Icons/ArrowRight.js +0 -13
- package/components/Icons/ArrowRight.js.map +0 -1
- package/components/Icons/ArrowUp.js +0 -37
- package/components/Icons/ArrowUp.js.map +0 -1
- package/components/Icons/ArrowUpRight.js +0 -13
- package/components/Icons/ArrowUpRight.js.map +0 -1
- package/components/Icons/Attachment.js +0 -29
- package/components/Icons/Attachment.js.map +0 -1
- package/components/Icons/Atv.js +0 -10
- package/components/Icons/Atv.js.map +0 -1
- package/components/Icons/Avatar.js +0 -13
- package/components/Icons/Avatar.js.map +0 -1
- package/components/Icons/AwakePersonOnPillow.js +0 -10
- package/components/Icons/AwakePersonOnPillow.js.map +0 -1
- package/components/Icons/Baby.js +0 -10
- package/components/Icons/Baby.js.map +0 -1
- package/components/Icons/BandAid.js +0 -10
- package/components/Icons/BandAid.js.map +0 -1
- package/components/Icons/BeerAndPills.js +0 -22
- package/components/Icons/BeerAndPills.js.map +0 -1
- package/components/Icons/Bell.js +0 -10
- package/components/Icons/Bell.js.map +0 -1
- package/components/Icons/Bike.js +0 -10
- package/components/Icons/Bike.js.map +0 -1
- package/components/Icons/BirthControl.js +0 -22
- package/components/Icons/BirthControl.js.map +0 -1
- package/components/Icons/BirthdayCake.js +0 -10
- package/components/Icons/BirthdayCake.js.map +0 -1
- package/components/Icons/Boat.js +0 -10
- package/components/Icons/Boat.js.map +0 -1
- package/components/Icons/Body.js +0 -22
- package/components/Icons/Body.js.map +0 -1
- package/components/Icons/Braille.js +0 -11
- package/components/Icons/Braille.js.map +0 -1
- package/components/Icons/Brain.js +0 -10
- package/components/Icons/Brain.js.map +0 -1
- package/components/Icons/BreastReconstruction.js +0 -22
- package/components/Icons/BreastReconstruction.js.map +0 -1
- package/components/Icons/BreastRemoval.js +0 -22
- package/components/Icons/BreastRemoval.js.map +0 -1
- package/components/Icons/Breasts.js +0 -10
- package/components/Icons/Breasts.js.map +0 -1
- package/components/Icons/BrokenHeart.js +0 -10
- package/components/Icons/BrokenHeart.js.map +0 -1
- package/components/Icons/BrokenPuzzle.js +0 -10
- package/components/Icons/BrokenPuzzle.js.map +0 -1
- package/components/Icons/Bus.js +0 -32
- package/components/Icons/Bus.js.map +0 -1
- package/components/Icons/Calendar.js +0 -37
- package/components/Icons/Calendar.js.map +0 -1
- package/components/Icons/CalendarChange.js +0 -37
- package/components/Icons/CalendarChange.js.map +0 -1
- package/components/Icons/CalendarCheck.js +0 -37
- package/components/Icons/CalendarCheck.js.map +0 -1
- package/components/Icons/CalendarEvent.js +0 -10
- package/components/Icons/CalendarEvent.js.map +0 -1
- package/components/Icons/CalendarSave.js +0 -13
- package/components/Icons/CalendarSave.js.map +0 -1
- package/components/Icons/Cancer.js +0 -24
- package/components/Icons/Cancer.js.map +0 -1
- package/components/Icons/Candle.js +0 -23
- package/components/Icons/Candle.js.map +0 -1
- package/components/Icons/Car.js +0 -10
- package/components/Icons/Car.js.map +0 -1
- package/components/Icons/Carton.js +0 -42
- package/components/Icons/Carton.js.map +0 -1
- package/components/Icons/Change.js +0 -46
- package/components/Icons/Change.js.map +0 -1
- package/components/Icons/Check.js +0 -13
- package/components/Icons/Check.js.map +0 -1
- package/components/Icons/CheckFill.js +0 -37
- package/components/Icons/CheckFill.js.map +0 -1
- package/components/Icons/CheckOutline.js +0 -22
- package/components/Icons/CheckOutline.js.map +0 -1
- package/components/Icons/Chest.js +0 -10
- package/components/Icons/Chest.js.map +0 -1
- package/components/Icons/ChevronDown.js +0 -13
- package/components/Icons/ChevronDown.js.map +0 -1
- package/components/Icons/ChevronLeft.js +0 -13
- package/components/Icons/ChevronLeft.js.map +0 -1
- package/components/Icons/ChevronRight.js +0 -13
- package/components/Icons/ChevronRight.js.map +0 -1
- package/components/Icons/ChevronUp.js +0 -13
- package/components/Icons/ChevronUp.js.map +0 -1
- package/components/Icons/ChevronsDown.js +0 -37
- package/components/Icons/ChevronsDown.js.map +0 -1
- package/components/Icons/ChevronsUp.js +0 -37
- package/components/Icons/ChevronsUp.js.map +0 -1
- package/components/Icons/ChildPlaying.js +0 -16
- package/components/Icons/ChildPlaying.js.map +0 -1
- package/components/Icons/Cigarette.js +0 -10
- package/components/Icons/Cigarette.js.map +0 -1
- package/components/Icons/Coins.js +0 -22
- package/components/Icons/Coins.js.map +0 -1
- package/components/Icons/Contacts.js +0 -13
- package/components/Icons/Contacts.js.map +0 -1
- package/components/Icons/Copy.js +0 -24
- package/components/Icons/Copy.js.map +0 -1
- package/components/Icons/CoronaCertificate.js +0 -22
- package/components/Icons/CoronaCertificate.js.map +0 -1
- package/components/Icons/Coronavirus.js +0 -10
- package/components/Icons/Coronavirus.js.map +0 -1
- package/components/Icons/Cough.js +0 -10
- package/components/Icons/Cough.js.map +0 -1
- package/components/Icons/CreditCard.js +0 -48
- package/components/Icons/CreditCard.js.map +0 -1
- package/components/Icons/CriticalHealthInfo.js +0 -10
- package/components/Icons/CriticalHealthInfo.js.map +0 -1
- package/components/Icons/Cross.js +0 -10
- package/components/Icons/Cross.js.map +0 -1
- package/components/Icons/DataExchange.js +0 -22
- package/components/Icons/DataExchange.js.map +0 -1
- package/components/Icons/DataReceived.js +0 -22
- package/components/Icons/DataReceived.js.map +0 -1
- package/components/Icons/DataSent.js +0 -22
- package/components/Icons/DataSent.js.map +0 -1
- package/components/Icons/Depression.js +0 -10
- package/components/Icons/Depression.js.map +0 -1
- package/components/Icons/DigestiveSystem.js +0 -16
- package/components/Icons/DigestiveSystem.js.map +0 -1
- package/components/Icons/Dizzy.js +0 -10
- package/components/Icons/Dizzy.js.map +0 -1
- package/components/Icons/Documents.js +0 -10
- package/components/Icons/Documents.js.map +0 -1
- package/components/Icons/Dog.js +0 -10
- package/components/Icons/Dog.js.map +0 -1
- package/components/Icons/DonorCard.js +0 -10
- package/components/Icons/DonorCard.js.map +0 -1
- package/components/Icons/DotActive.js +0 -16
- package/components/Icons/DotActive.js.map +0 -1
- package/components/Icons/DotAlert.js +0 -30
- package/components/Icons/DotAlert.js.map +0 -1
- package/components/Icons/DotCancelled.js +0 -30
- package/components/Icons/DotCancelled.js.map +0 -1
- package/components/Icons/DotHalfDisc.js +0 -30
- package/components/Icons/DotHalfDisc.js.map +0 -1
- package/components/Icons/DotInactive.js +0 -30
- package/components/Icons/DotInactive.js.map +0 -1
- package/components/Icons/DotInfo.js +0 -38
- package/components/Icons/DotInfo.js.map +0 -1
- package/components/Icons/DotLookingGlass.js +0 -30
- package/components/Icons/DotLookingGlass.js.map +0 -1
- package/components/Icons/DotPending.js +0 -16
- package/components/Icons/DotPending.js.map +0 -1
- package/components/Icons/DotQuestionMark.js +0 -30
- package/components/Icons/DotQuestionMark.js.map +0 -1
- package/components/Icons/DotSuccess.js +0 -30
- package/components/Icons/DotSuccess.js.map +0 -1
- package/components/Icons/DotTransparent.js +0 -30
- package/components/Icons/DotTransparent.js.map +0 -1
- package/components/Icons/DotWarningTriangle.js +0 -30
- package/components/Icons/DotWarningTriangle.js.map +0 -1
- package/components/Icons/Download.js +0 -37
- package/components/Icons/Download.js.map +0 -1
- package/components/Icons/Draft.js +0 -10
- package/components/Icons/Draft.js.map +0 -1
- package/components/Icons/Drag.js +0 -11
- package/components/Icons/Drag.js.map +0 -1
- package/components/Icons/EChat.js +0 -13
- package/components/Icons/EChat.js.map +0 -1
- package/components/Icons/Ear.js +0 -17
- package/components/Icons/Ear.js.map +0 -1
- package/components/Icons/EarDeaf.js +0 -11
- package/components/Icons/EarDeaf.js.map +0 -1
- package/components/Icons/EarHearingAid.js +0 -14
- package/components/Icons/EarHearingAid.js.map +0 -1
- package/components/Icons/EarNoseThroat.js +0 -18
- package/components/Icons/EarNoseThroat.js.map +0 -1
- package/components/Icons/EarVolume.js +0 -26
- package/components/Icons/EarVolume.js.map +0 -1
- package/components/Icons/Edit.js +0 -31
- package/components/Icons/Edit.js.map +0 -1
- package/components/Icons/ElderlyPerson.js +0 -10
- package/components/Icons/ElderlyPerson.js.map +0 -1
- package/components/Icons/Embolization.js +0 -22
- package/components/Icons/Embolization.js.map +0 -1
- package/components/Icons/EmergencyCall.js +0 -25
- package/components/Icons/EmergencyCall.js.map +0 -1
- package/components/Icons/EmoticonAnnoyed.js +0 -24
- package/components/Icons/EmoticonAnnoyed.js.map +0 -1
- package/components/Icons/EmoticonDelighted.js +0 -17
- package/components/Icons/EmoticonDelighted.js.map +0 -1
- package/components/Icons/EmoticonDisappointed.js +0 -17
- package/components/Icons/EmoticonDisappointed.js.map +0 -1
- package/components/Icons/EmoticonHappy.js +0 -17
- package/components/Icons/EmoticonHappy.js.map +0 -1
- package/components/Icons/EmoticonMeh.js +0 -17
- package/components/Icons/EmoticonMeh.js.map +0 -1
- package/components/Icons/EmptyBox.js +0 -24
- package/components/Icons/EmptyBox.js.map +0 -1
- package/components/Icons/EnterFullScreen.js +0 -22
- package/components/Icons/EnterFullScreen.js.map +0 -1
- package/components/Icons/Envelope.js +0 -13
- package/components/Icons/Envelope.js.map +0 -1
- package/components/Icons/Epilepsy.js +0 -10
- package/components/Icons/Epilepsy.js.map +0 -1
- package/components/Icons/Eraser.js +0 -19
- package/components/Icons/Eraser.js.map +0 -1
- package/components/Icons/ErrorSignFill.js +0 -13
- package/components/Icons/ErrorSignFill.js.map +0 -1
- package/components/Icons/ErrorSignStroke.js +0 -13
- package/components/Icons/ErrorSignStroke.js.map +0 -1
- package/components/Icons/EuropeanHealthCard.js +0 -13
- package/components/Icons/EuropeanHealthCard.js.map +0 -1
- package/components/Icons/ExitFullScreen.js +0 -22
- package/components/Icons/ExitFullScreen.js.map +0 -1
- package/components/Icons/Eye.js +0 -37
- package/components/Icons/Eye.js.map +0 -1
- package/components/Icons/Facebook.js +0 -10
- package/components/Icons/Facebook.js.map +0 -1
- package/components/Icons/FallingLeaf.js +0 -31
- package/components/Icons/FallingLeaf.js.map +0 -1
- package/components/Icons/Feedback.js +0 -25
- package/components/Icons/Feedback.js.map +0 -1
- package/components/Icons/Female.js +0 -10
- package/components/Icons/Female.js.map +0 -1
- package/components/Icons/FemaleDoctor.js +0 -10
- package/components/Icons/FemaleDoctor.js.map +0 -1
- package/components/Icons/Ferry.js +0 -10
- package/components/Icons/Ferry.js.map +0 -1
- package/components/Icons/File.js +0 -37
- package/components/Icons/File.js.map +0 -1
- package/components/Icons/Filter.js +0 -32
- package/components/Icons/Filter.js.map +0 -1
- package/components/Icons/FingerBleed.js +0 -10
- package/components/Icons/FingerBleed.js.map +0 -1
- package/components/Icons/FirstAidKit.js +0 -10
- package/components/Icons/FirstAidKit.js.map +0 -1
- package/components/Icons/Fish.js +0 -44
- package/components/Icons/Fish.js.map +0 -1
- package/components/Icons/FloppyDisk.js +0 -22
- package/components/Icons/FloppyDisk.js.map +0 -1
- package/components/Icons/Football.js +0 -10
- package/components/Icons/Football.js.map +0 -1
- package/components/Icons/Form.js +0 -13
- package/components/Icons/Form.js.map +0 -1
- package/components/Icons/Forward.js +0 -19
- package/components/Icons/Forward.js.map +0 -1
- package/components/Icons/Gallery.js +0 -37
- package/components/Icons/Gallery.js.map +0 -1
- package/components/Icons/Garden.js +0 -10
- package/components/Icons/Garden.js.map +0 -1
- package/components/Icons/GasCan.js +0 -10
- package/components/Icons/GasCan.js.map +0 -1
- package/components/Icons/GenderIdentity.js +0 -22
- package/components/Icons/GenderIdentity.js.map +0 -1
- package/components/Icons/GlassWater.js +0 -22
- package/components/Icons/GlassWater.js.map +0 -1
- package/components/Icons/Glasses.js +0 -25
- package/components/Icons/Glasses.js.map +0 -1
- package/components/Icons/Globe.js +0 -13
- package/components/Icons/Globe.js.map +0 -1
- package/components/Icons/Grain.js +0 -22
- package/components/Icons/Grain.js.map +0 -1
- package/components/Icons/Graph.js +0 -29
- package/components/Icons/Graph.js.map +0 -1
- package/components/Icons/Group.js +0 -39
- package/components/Icons/Group.js.map +0 -1
- package/components/Icons/GroupTwins.js +0 -84
- package/components/Icons/GroupTwins.js.map +0 -1
- package/components/Icons/HTMLFile.js +0 -17
- package/components/Icons/HTMLFile.js.map +0 -1
- package/components/Icons/HandWaving.js +0 -10
- package/components/Icons/HandWaving.js.map +0 -1
- package/components/Icons/HandWithDisease.js +0 -10
- package/components/Icons/HandWithDisease.js.map +0 -1
- package/components/Icons/HandsAndHeart.js +0 -23
- package/components/Icons/HandsAndHeart.js.map +0 -1
- package/components/Icons/HealthClinic.js +0 -22
- package/components/Icons/HealthClinic.js.map +0 -1
- package/components/Icons/HealthMeasurements.js +0 -24
- package/components/Icons/HealthMeasurements.js.map +0 -1
- package/components/Icons/HealthWarning.js +0 -22
- package/components/Icons/HealthWarning.js.map +0 -1
- package/components/Icons/HealthcarePerson.js +0 -77
- package/components/Icons/HealthcarePerson.js.map +0 -1
- package/components/Icons/HealthcarePersonell.js +0 -100
- package/components/Icons/HealthcarePersonell.js.map +0 -1
- package/components/Icons/HearingProtection.js +0 -31
- package/components/Icons/HearingProtection.js.map +0 -1
- package/components/Icons/Heart.js +0 -13
- package/components/Icons/Heart.js.map +0 -1
- package/components/Icons/HeartHands.js +0 -76
- package/components/Icons/HeartHands.js.map +0 -1
- package/components/Icons/HelpSign.js +0 -13
- package/components/Icons/HelpSign.js.map +0 -1
- package/components/Icons/HelpingHand.js +0 -22
- package/components/Icons/HelpingHand.js.map +0 -1
- package/components/Icons/Hemodialysis.js +0 -22
- package/components/Icons/Hemodialysis.js.map +0 -1
- package/components/Icons/Hiker.js +0 -10
- package/components/Icons/Hiker.js.map +0 -1
- package/components/Icons/Hipprosthesis.js +0 -22
- package/components/Icons/Hipprosthesis.js.map +0 -1
- package/components/Icons/History.js +0 -13
- package/components/Icons/History.js.map +0 -1
- package/components/Icons/HivAndAids.js +0 -10
- package/components/Icons/HivAndAids.js.map +0 -1
- package/components/Icons/Home.js +0 -37
- package/components/Icons/Home.js.map +0 -1
- package/components/Icons/HomeFill.js +0 -41
- package/components/Icons/HomeFill.js.map +0 -1
- package/components/Icons/Hormone.js +0 -10
- package/components/Icons/Hormone.js.map +0 -1
- package/components/Icons/Hospital.js +0 -37
- package/components/Icons/Hospital.js.map +0 -1
- package/components/Icons/Hourglass.js +0 -37
- package/components/Icons/Hourglass.js.map +0 -1
- package/components/Icons/IconNames.js +0 -344
- package/components/Icons/IconNames.js.map +0 -1
- package/components/Icons/ImgFile.js +0 -22
- package/components/Icons/ImgFile.js.map +0 -1
- package/components/Icons/Inbox.js +0 -19
- package/components/Icons/Inbox.js.map +0 -1
- package/components/Icons/InfoSignFill.js +0 -13
- package/components/Icons/InfoSignFill.js.map +0 -1
- package/components/Icons/InfoSignStroke.js +0 -13
- package/components/Icons/InfoSignStroke.js.map +0 -1
- package/components/Icons/Instagram.js +0 -17
- package/components/Icons/Instagram.js.map +0 -1
- package/components/Icons/Intravenous.js +0 -22
- package/components/Icons/Intravenous.js.map +0 -1
- package/components/Icons/JointPain.js +0 -10
- package/components/Icons/JointPain.js.map +0 -1
- package/components/Icons/Journal.js +0 -13
- package/components/Icons/Journal.js.map +0 -1
- package/components/Icons/JpgFile.js +0 -22
- package/components/Icons/JpgFile.js.map +0 -1
- package/components/Icons/Kidney.js +0 -10
- package/components/Icons/Kidney.js.map +0 -1
- package/components/Icons/KitchenScale.js +0 -22
- package/components/Icons/KitchenScale.js.map +0 -1
- package/components/Icons/Kjernejournal.js +0 -10
- package/components/Icons/Kjernejournal.js.map +0 -1
- package/components/Icons/Laboratory.js +0 -22
- package/components/Icons/Laboratory.js.map +0 -1
- package/components/Icons/LaptopBlog.js +0 -10
- package/components/Icons/LaptopBlog.js.map +0 -1
- package/components/Icons/LawBook.js +0 -13
- package/components/Icons/LawBook.js.map +0 -1
- package/components/Icons/LegalDocument.js +0 -35
- package/components/Icons/LegalDocument.js.map +0 -1
- package/components/Icons/LightBulb.js +0 -10
- package/components/Icons/LightBulb.js.map +0 -1
- package/components/Icons/List.js +0 -37
- package/components/Icons/List.js.map +0 -1
- package/components/Icons/Location.js +0 -16
- package/components/Icons/Location.js.map +0 -1
- package/components/Icons/LocationFill.js +0 -41
- package/components/Icons/LocationFill.js.map +0 -1
- package/components/Icons/Lock.js +0 -25
- package/components/Icons/Lock.js.map +0 -1
- package/components/Icons/Login.js +0 -61
- package/components/Icons/Login.js.map +0 -1
- package/components/Icons/Logout.js +0 -53
- package/components/Icons/Logout.js.map +0 -1
- package/components/Icons/Lungs.js +0 -10
- package/components/Icons/Lungs.js.map +0 -1
- package/components/Icons/Makeup.js +0 -10
- package/components/Icons/Makeup.js.map +0 -1
- package/components/Icons/MaleDoctor.js +0 -10
- package/components/Icons/MaleDoctor.js.map +0 -1
- package/components/Icons/MaleDoctorAndPerson.js +0 -18
- package/components/Icons/MaleDoctorAndPerson.js.map +0 -1
- package/components/Icons/MaleDoctorCompact.js +0 -55
- package/components/Icons/MaleDoctorCompact.js.map +0 -1
- package/components/Icons/MaleDoctorCompactFill.js +0 -41
- package/components/Icons/MaleDoctorCompactFill.js.map +0 -1
- package/components/Icons/MaleGenitalia.js +0 -10
- package/components/Icons/MaleGenitalia.js.map +0 -1
- package/components/Icons/Medicine.js +0 -37
- package/components/Icons/Medicine.js.map +0 -1
- package/components/Icons/MedicineWarning.js +0 -22
- package/components/Icons/MedicineWarning.js.map +0 -1
- package/components/Icons/MentalHealthAdult.js +0 -16
- package/components/Icons/MentalHealthAdult.js.map +0 -1
- package/components/Icons/MentalHealthChild.js +0 -16
- package/components/Icons/MentalHealthChild.js.map +0 -1
- package/components/Icons/Menu.js +0 -13
- package/components/Icons/Menu.js.map +0 -1
- package/components/Icons/Microscope.js +0 -22
- package/components/Icons/Microscope.js.map +0 -1
- package/components/Icons/Minus.js +0 -13
- package/components/Icons/Minus.js.map +0 -1
- package/components/Icons/Mirror.js +0 -10
- package/components/Icons/Mirror.js.map +0 -1
- package/components/Icons/MobilePhone.js +0 -13
- package/components/Icons/MobilePhone.js.map +0 -1
- package/components/Icons/MotherHoldingBaby.js +0 -10
- package/components/Icons/MotherHoldingBaby.js.map +0 -1
- package/components/Icons/MuscleBack.js +0 -18
- package/components/Icons/MuscleBack.js.map +0 -1
- package/components/Icons/MuscleLeg.js +0 -16
- package/components/Icons/MuscleLeg.js.map +0 -1
- package/components/Icons/Mushroom.js +0 -10
- package/components/Icons/Mushroom.js.map +0 -1
- package/components/Icons/Music.js +0 -22
- package/components/Icons/Music.js.map +0 -1
- package/components/Icons/MusselsAndSalt.js +0 -10
- package/components/Icons/MusselsAndSalt.js.map +0 -1
- package/components/Icons/NoAccess.js +0 -59
- package/components/Icons/NoAccess.js.map +0 -1
- package/components/Icons/NoEye.js +0 -39
- package/components/Icons/NoEye.js.map +0 -1
- package/components/Icons/NoFilter.js +0 -19
- package/components/Icons/NoFilter.js.map +0 -1
- package/components/Icons/Notepad.js +0 -10
- package/components/Icons/Notepad.js.map +0 -1
- package/components/Icons/Osteotomy.js +0 -22
- package/components/Icons/Osteotomy.js.map +0 -1
- package/components/Icons/PaintRoller.js +0 -10
- package/components/Icons/PaintRoller.js.map +0 -1
- package/components/Icons/PaperPlane.js +0 -13
- package/components/Icons/PaperPlane.js.map +0 -1
- package/components/Icons/PatientAndPerson.js +0 -10
- package/components/Icons/PatientAndPerson.js.map +0 -1
- package/components/Icons/Pause.js +0 -13
- package/components/Icons/Pause.js.map +0 -1
- package/components/Icons/PdfFile.js +0 -22
- package/components/Icons/PdfFile.js.map +0 -1
- package/components/Icons/Pencil.js +0 -29
- package/components/Icons/Pencil.js.map +0 -1
- package/components/Icons/PeopleTalking.js +0 -22
- package/components/Icons/PeopleTalking.js.map +0 -1
- package/components/Icons/Peritonealdialysis.js +0 -22
- package/components/Icons/Peritonealdialysis.js.map +0 -1
- package/components/Icons/Person.js +0 -10
- package/components/Icons/Person.js.map +0 -1
- package/components/Icons/PersonAndPatient.js +0 -10
- package/components/Icons/PersonAndPatient.js.map +0 -1
- package/components/Icons/PersonCancel.js +0 -73
- package/components/Icons/PersonCancel.js.map +0 -1
- package/components/Icons/PersonInXRayMachine.js +0 -22
- package/components/Icons/PersonInXRayMachine.js.map +0 -1
- package/components/Icons/PersonOverweight.js +0 -10
- package/components/Icons/PersonOverweight.js.map +0 -1
- package/components/Icons/PersonRelaxing.js +0 -16
- package/components/Icons/PersonRelaxing.js.map +0 -1
- package/components/Icons/PersonWithBrain.js +0 -13
- package/components/Icons/PersonWithBrain.js.map +0 -1
- package/components/Icons/PersonWithBrokenArm.js +0 -10
- package/components/Icons/PersonWithBrokenArm.js.map +0 -1
- package/components/Icons/PersonWithCrutches.js +0 -10
- package/components/Icons/PersonWithCrutches.js.map +0 -1
- package/components/Icons/PersonWithJaw.js +0 -16
- package/components/Icons/PersonWithJaw.js.map +0 -1
- package/components/Icons/PersonWithMagnifyingGlass.js +0 -16
- package/components/Icons/PersonWithMagnifyingGlass.js.map +0 -1
- package/components/Icons/PersonWithSenses.js +0 -22
- package/components/Icons/PersonWithSenses.js.map +0 -1
- package/components/Icons/PersonWorking.js +0 -16
- package/components/Icons/PersonWorking.js.map +0 -1
- package/components/Icons/PersonalPlan.js +0 -41
- package/components/Icons/PersonalPlan.js.map +0 -1
- package/components/Icons/PizzaSlice.js +0 -16
- package/components/Icons/PizzaSlice.js.map +0 -1
- package/components/Icons/Plane.js +0 -10
- package/components/Icons/Plane.js.map +0 -1
- package/components/Icons/Plant.js +0 -10
- package/components/Icons/Plant.js.map +0 -1
- package/components/Icons/PlateKnifeFork.js +0 -40
- package/components/Icons/PlateKnifeFork.js.map +0 -1
- package/components/Icons/Play.js +0 -13
- package/components/Icons/Play.js.map +0 -1
- package/components/Icons/PlusLarge.js +0 -13
- package/components/Icons/PlusLarge.js.map +0 -1
- package/components/Icons/PlusSmall.js +0 -13
- package/components/Icons/PlusSmall.js.map +0 -1
- package/components/Icons/PngFile.js +0 -22
- package/components/Icons/PngFile.js.map +0 -1
- package/components/Icons/Podcast.js +0 -22
- package/components/Icons/Podcast.js.map +0 -1
- package/components/Icons/PoisonInformation.js +0 -16
- package/components/Icons/PoisonInformation.js.map +0 -1
- package/components/Icons/Pregnant.js +0 -10
- package/components/Icons/Pregnant.js.map +0 -1
- package/components/Icons/Printer.js +0 -37
- package/components/Icons/Printer.js.map +0 -1
- package/components/Icons/Psychosis.js +0 -10
- package/components/Icons/Psychosis.js.map +0 -1
- package/components/Icons/Publication.js +0 -22
- package/components/Icons/Publication.js.map +0 -1
- package/components/Icons/Puzzle.js +0 -13
- package/components/Icons/Puzzle.js.map +0 -1
- package/components/Icons/QrCode.js +0 -37
- package/components/Icons/QrCode.js.map +0 -1
- package/components/Icons/Quarrel.js +0 -22
- package/components/Icons/Quarrel.js.map +0 -1
- package/components/Icons/RadioTherapy.js +0 -22
- package/components/Icons/RadioTherapy.js.map +0 -1
- package/components/Icons/RadioactiveTreatment.js +0 -22
- package/components/Icons/RadioactiveTreatment.js.map +0 -1
- package/components/Icons/Radioiodine.js +0 -22
- package/components/Icons/Radioiodine.js.map +0 -1
- package/components/Icons/Receipt.js +0 -10
- package/components/Icons/Receipt.js.map +0 -1
- package/components/Icons/Receptionist.js +0 -13
- package/components/Icons/Receptionist.js.map +0 -1
- package/components/Icons/Recovery.js +0 -22
- package/components/Icons/Recovery.js.map +0 -1
- package/components/Icons/Referral.js +0 -13
- package/components/Icons/Referral.js.map +0 -1
- package/components/Icons/Refresh.js +0 -13
- package/components/Icons/Refresh.js.map +0 -1
- package/components/Icons/Refund.js +0 -10
- package/components/Icons/Refund.js.map +0 -1
- package/components/Icons/Reminder.js +0 -30
- package/components/Icons/Reminder.js.map +0 -1
- package/components/Icons/Reply.js +0 -19
- package/components/Icons/Reply.js.map +0 -1
- package/components/Icons/Rocket.js +0 -10
- package/components/Icons/Rocket.js.map +0 -1
- package/components/Icons/RtfFile.js +0 -22
- package/components/Icons/RtfFile.js.map +0 -1
- package/components/Icons/STDs.js +0 -22
- package/components/Icons/STDs.js.map +0 -1
- package/components/Icons/Save.js +0 -21
- package/components/Icons/Save.js.map +0 -1
- package/components/Icons/Scale.js +0 -10
- package/components/Icons/Scale.js.map +0 -1
- package/components/Icons/ScreenReader.js +0 -49
- package/components/Icons/ScreenReader.js.map +0 -1
- package/components/Icons/Search.js +0 -13
- package/components/Icons/Search.js.map +0 -1
- package/components/Icons/SectionSign.js +0 -37
- package/components/Icons/SectionSign.js.map +0 -1
- package/components/Icons/Settings.js +0 -41
- package/components/Icons/Settings.js.map +0 -1
- package/components/Icons/SettingsFill.js +0 -41
- package/components/Icons/SettingsFill.js.map +0 -1
- package/components/Icons/Sexualorientation.js +0 -22
- package/components/Icons/Sexualorientation.js.map +0 -1
- package/components/Icons/ShakingHand.js +0 -16
- package/components/Icons/ShakingHand.js.map +0 -1
- package/components/Icons/Share.js +0 -19
- package/components/Icons/Share.js.map +0 -1
- package/components/Icons/SharedHealthData.js +0 -24
- package/components/Icons/SharedHealthData.js.map +0 -1
- package/components/Icons/SharedHealthMeasurements.js +0 -24
- package/components/Icons/SharedHealthMeasurements.js.map +0 -1
- package/components/Icons/Shield.js +0 -22
- package/components/Icons/Shield.js.map +0 -1
- package/components/Icons/ShuntOperation.js +0 -22
- package/components/Icons/ShuntOperation.js.map +0 -1
- package/components/Icons/Skeleton.js +0 -10
- package/components/Icons/Skeleton.js.map +0 -1
- package/components/Icons/Skin.js +0 -10
- package/components/Icons/Skin.js.map +0 -1
- package/components/Icons/Snake.js +0 -10
- package/components/Icons/Snake.js.map +0 -1
- package/components/Icons/Snapchat.js +0 -13
- package/components/Icons/Snapchat.js.map +0 -1
- package/components/Icons/SortDown.js +0 -30
- package/components/Icons/SortDown.js.map +0 -1
- package/components/Icons/SortUp.js +0 -30
- package/components/Icons/SortUp.js.map +0 -1
- package/components/Icons/SpeechBubble.js +0 -37
- package/components/Icons/SpeechBubble.js.map +0 -1
- package/components/Icons/Spray.js +0 -10
- package/components/Icons/Spray.js.map +0 -1
- package/components/Icons/StickyNote.js +0 -24
- package/components/Icons/StickyNote.js.map +0 -1
- package/components/Icons/StickyNotes.js +0 -24
- package/components/Icons/StickyNotes.js.map +0 -1
- package/components/Icons/Stopwatch.js +0 -37
- package/components/Icons/Stopwatch.js.map +0 -1
- package/components/Icons/Sun.js +0 -33
- package/components/Icons/Sun.js.map +0 -1
- package/components/Icons/SupportingPerson.js +0 -51
- package/components/Icons/SupportingPerson.js.map +0 -1
- package/components/Icons/Surgery.js +0 -22
- package/components/Icons/Surgery.js.map +0 -1
- package/components/Icons/Sweets.js +0 -42
- package/components/Icons/Sweets.js.map +0 -1
- package/components/Icons/Syringe.js +0 -24
- package/components/Icons/Syringe.js.map +0 -1
- package/components/Icons/Taxi.js +0 -10
- package/components/Icons/Taxi.js.map +0 -1
- package/components/Icons/TeddyBear.js +0 -10
- package/components/Icons/TeddyBear.js.map +0 -1
- package/components/Icons/Teenagers.js +0 -22
- package/components/Icons/Teenagers.js.map +0 -1
- package/components/Icons/ThinkingAboutBaby.js +0 -10
- package/components/Icons/ThinkingAboutBaby.js.map +0 -1
- package/components/Icons/Ticket.js +0 -10
- package/components/Icons/Ticket.js.map +0 -1
- package/components/Icons/TimePassing.js +0 -37
- package/components/Icons/TimePassing.js.map +0 -1
- package/components/Icons/Toddler.js +0 -10
- package/components/Icons/Toddler.js.map +0 -1
- package/components/Icons/Tombstone.js +0 -29
- package/components/Icons/Tombstone.js.map +0 -1
- package/components/Icons/Toolbox.js +0 -55
- package/components/Icons/Toolbox.js.map +0 -1
- package/components/Icons/Tooth.js +0 -10
- package/components/Icons/Tooth.js.map +0 -1
- package/components/Icons/TotalKneeProsthesis.js +0 -22
- package/components/Icons/TotalKneeProsthesis.js.map +0 -1
- package/components/Icons/Train.js +0 -10
- package/components/Icons/Train.js.map +0 -1
- package/components/Icons/Transplantation.js +0 -22
- package/components/Icons/Transplantation.js.map +0 -1
- package/components/Icons/TrashCan.js +0 -37
- package/components/Icons/TrashCan.js.map +0 -1
- package/components/Icons/TravelRoute.js +0 -60
- package/components/Icons/TravelRoute.js.map +0 -1
- package/components/Icons/TreatmentAids.js +0 -41
- package/components/Icons/TreatmentAids.js.map +0 -1
- package/components/Icons/TriangleX.js +0 -41
- package/components/Icons/TriangleX.js.map +0 -1
- package/components/Icons/Twitter.js +0 -10
- package/components/Icons/Twitter.js.map +0 -1
- package/components/Icons/Undo.js +0 -51
- package/components/Icons/Undo.js.map +0 -1
- package/components/Icons/UniProsthesis.js +0 -22
- package/components/Icons/UniProsthesis.js.map +0 -1
- package/components/Icons/Upload.js +0 -19
- package/components/Icons/Upload.js.map +0 -1
- package/components/Icons/UserOrganization.js +0 -10
- package/components/Icons/UserOrganization.js.map +0 -1
- package/components/Icons/Vaccine.js +0 -37
- package/components/Icons/Vaccine.js.map +0 -1
- package/components/Icons/VerticalDots.js +0 -13
- package/components/Icons/VerticalDots.js.map +0 -1
- package/components/Icons/VideoCamera.js +0 -37
- package/components/Icons/VideoCamera.js.map +0 -1
- package/components/Icons/VideoChat.js +0 -13
- package/components/Icons/VideoChat.js.map +0 -1
- package/components/Icons/Wallet.js +0 -13
- package/components/Icons/Wallet.js.map +0 -1
- package/components/Icons/Watch.js +0 -37
- package/components/Icons/Watch.js.map +0 -1
- package/components/Icons/Website.js +0 -22
- package/components/Icons/Website.js.map +0 -1
- package/components/Icons/Wheelchair.js +0 -22
- package/components/Icons/Wheelchair.js.map +0 -1
- package/components/Icons/WheelchairActive.js +0 -22
- package/components/Icons/WheelchairActive.js.map +0 -1
- package/components/Icons/Window.js +0 -10
- package/components/Icons/Window.js.map +0 -1
- package/components/Icons/WordDocument.js +0 -16
- package/components/Icons/WordDocument.js.map +0 -1
- package/components/Icons/WorkSuitcase.js +0 -16
- package/components/Icons/WorkSuitcase.js.map +0 -1
- package/components/Icons/X.js +0 -15
- package/components/Icons/X.js.map +0 -1
- package/components/Icons/XOutline.js +0 -22
- package/components/Icons/XOutline.js.map +0 -1
- package/components/Icons/XmlFile.js +0 -22
- package/components/Icons/XmlFile.js.map +0 -1
- package/components/Icons/YouTube.js +0 -10
- package/components/Icons/YouTube.js.map +0 -1
- package/components/Icons/Zoom.js +0 -37
- package/components/Icons/Zoom.js.map +0 -1
- package/components/Illustration/index.js +0 -8
- package/components/Illustration/index.js.map +0 -1
- package/components/Illustrations/BabyMobile.js +0 -11
- package/components/Illustrations/BabyMobile.js.map +0 -1
- package/components/Illustrations/BabyMobileMedium.js +0 -424
- package/components/Illustrations/BabyMobileMedium.js.map +0 -1
- package/components/Illustrations/Child.js +0 -11
- package/components/Illustrations/Child.js.map +0 -1
- package/components/Illustrations/ChildMedium.js +0 -185
- package/components/Illustrations/ChildMedium.js.map +0 -1
- package/components/Illustrations/Doctor.js +0 -13
- package/components/Illustrations/Doctor.js.map +0 -1
- package/components/Illustrations/DoctorMedium.js +0 -72
- package/components/Illustrations/DoctorMedium.js.map +0 -1
- package/components/Illustrations/DoctorSmall.js +0 -70
- package/components/Illustrations/DoctorSmall.js.map +0 -1
- package/components/Illustrations/FacialRecognitionFingerprint.js +0 -11
- package/components/Illustrations/FacialRecognitionFingerprint.js.map +0 -1
- package/components/Illustrations/FacialRecognitionFingerprintMedium.js +0 -318
- package/components/Illustrations/FacialRecognitionFingerprintMedium.js.map +0 -1
- package/components/Illustrations/GiveBabyFood.js +0 -11
- package/components/Illustrations/GiveBabyFood.js.map +0 -1
- package/components/Illustrations/GiveBabyFoodMedium.js +0 -377
- package/components/Illustrations/GiveBabyFoodMedium.js.map +0 -1
- package/components/Illustrations/HealthcarePersonnel.js +0 -13
- package/components/Illustrations/HealthcarePersonnel.js.map +0 -1
- package/components/Illustrations/HealthcarePersonnelMedium.js +0 -229
- package/components/Illustrations/HealthcarePersonnelMedium.js.map +0 -1
- package/components/Illustrations/HealthcarePersonnelSmall.js +0 -212
- package/components/Illustrations/HealthcarePersonnelSmall.js.map +0 -1
- package/components/Illustrations/IllustrationNames.js +0 -27
- package/components/Illustrations/IllustrationNames.js.map +0 -1
- package/components/Illustrations/ReadLetters.js +0 -11
- package/components/Illustrations/ReadLetters.js.map +0 -1
- package/components/Illustrations/ReadLettersMedium.js +0 -110
- package/components/Illustrations/ReadLettersMedium.js.map +0 -1
- package/components/Illustrations/Stroller.js +0 -11
- package/components/Illustrations/Stroller.js.map +0 -1
- package/components/Illustrations/StrollerMedium.js +0 -236
- package/components/Illustrations/StrollerMedium.js.map +0 -1
- package/components/Illustrations/Support2.js +0 -11
- package/components/Illustrations/Support2.js.map +0 -1
- package/components/Illustrations/Support2Medium.js +0 -232
- package/components/Illustrations/Support2Medium.js.map +0 -1
- package/components/InfoTeaser/index.js +0 -5
- package/components/InfoTeaser/index.js.map +0 -1
- package/components/Input/index.js +0 -7
- package/components/Input/index.js.map +0 -1
- package/components/Label/Label.d.ts +0 -46
- package/components/Label/index.js +0 -10
- package/components/Label/index.js.map +0 -1
- package/components/Label/styles.module.scss +0 -69
- package/components/LazyIcon/index.js +0 -8
- package/components/LazyIcon/index.js.map +0 -1
- package/components/LazyIllustration/index.js +0 -8
- package/components/LazyIllustration/index.js.map +0 -1
- package/components/LinkList/index.js +0 -8
- package/components/LinkList/index.js.map +0 -1
- package/components/LinkList/styles.module.scss +0 -320
- package/components/LinkList/styles.module.scss.d.ts +0 -50
- package/components/List/index.js +0 -5
- package/components/List/index.js.map +0 -1
- package/components/ListEditMode/index.js +0 -9
- package/components/ListEditMode/index.js.map +0 -1
- package/components/ListEditMode/styles.module.scss +0 -79
- package/components/Loader/index.js +0 -97
- package/components/Loader/index.js.map +0 -1
- package/components/Logo/index.js +0 -47
- package/components/Logo/index.js.map +0 -1
- package/components/Modal/Modal.d.ts +0 -62
- package/components/Modal/index.js +0 -209
- package/components/Modal/index.js.map +0 -1
- package/components/Modal/styles.module.scss +0 -297
- package/components/Modal/styles.module.scss.d.ts +0 -42
- package/components/NotificationPanel/index.js +0 -110
- package/components/NotificationPanel/index.js.map +0 -1
- package/components/NotificationPanel/styles.module.scss +0 -193
- package/components/Panel/Panel.d.ts +0 -78
- package/components/Panel/PanelTitle/index.js +0 -5
- package/components/Panel/PanelTitle/index.js.map +0 -1
- package/components/Panel/index.js +0 -15
- package/components/Panel/index.js.map +0 -1
- package/components/PanelList/index.js +0 -29
- package/components/PanelList/index.js.map +0 -1
- package/components/PopMenu/PopMenu.d.ts +0 -41
- package/components/PopMenu/index.js +0 -121
- package/components/PopMenu/index.js.map +0 -1
- package/components/PopMenu/styles.module.scss +0 -145
- package/components/PopMenu/styles.module.scss.d.ts +0 -14
- package/components/PopOver/index.js +0 -7
- package/components/PopOver/index.js.map +0 -1
- package/components/Portal/index.js +0 -25
- package/components/Portal/index.js.map +0 -1
- package/components/Progressbar/index.js +0 -131
- package/components/Progressbar/index.js.map +0 -1
- package/components/PromoPanel/index.js +0 -79
- package/components/PromoPanel/index.js.map +0 -1
- package/components/RadioButton/index.js +0 -8
- package/components/RadioButton/index.js.map +0 -1
- package/components/RadioButton/styles.module.scss +0 -467
- package/components/RadioButton/styles.module.scss.d.ts +0 -34
- package/components/Select/index.js +0 -6
- package/components/Select/index.js.map +0 -1
- package/components/ServiceMessage/index.js +0 -126
- package/components/ServiceMessage/index.js.map +0 -1
- package/components/SharingStatus/index.js +0 -22
- package/components/SharingStatus/index.js.map +0 -1
- package/components/Slider/index.js +0 -6
- package/components/Slider/index.js.map +0 -1
- package/components/Spacer/index.js +0 -5
- package/components/Spacer/index.js.map +0 -1
- package/components/StatusDot/index.js +0 -8
- package/components/StatusDot/index.js.map +0 -1
- package/components/StatusDot/styles.module.scss +0 -104
- package/components/Step/index.js +0 -37
- package/components/Step/index.js.map +0 -1
- package/components/StepButtons/index.js +0 -6
- package/components/StepButtons/index.js.map +0 -1
- package/components/Stepper/index.js +0 -86
- package/components/Stepper/index.js.map +0 -1
- package/components/StickyNote/index.js +0 -197
- package/components/StickyNote/index.js.map +0 -1
- package/components/Table/TableBody/index.js +0 -6
- package/components/Table/TableBody/index.js.map +0 -1
- package/components/Table/TableCell/index.js +0 -8
- package/components/Table/TableCell/index.js.map +0 -1
- package/components/Table/TableExpandedRow/index.js +0 -6
- package/components/Table/TableExpandedRow/index.js.map +0 -1
- package/components/Table/TableExpanderCell/index.js +0 -6
- package/components/Table/TableExpanderCell/index.js.map +0 -1
- package/components/Table/TableHead/index.js +0 -8
- package/components/Table/TableHead/index.js.map +0 -1
- package/components/Table/TableHeadCell/index.js +0 -8
- package/components/Table/TableHeadCell/index.js.map +0 -1
- package/components/Table/TableRow/index.js +0 -6
- package/components/Table/TableRow/index.js.map +0 -1
- package/components/Table/index.js +0 -28
- package/components/Table/index.js.map +0 -1
- package/components/Tabs/TabList/index.js +0 -5
- package/components/Tabs/TabList/index.js.map +0 -1
- package/components/Tabs/TabPanel/index.js +0 -5
- package/components/Tabs/TabPanel/index.js.map +0 -1
- package/components/Tabs/index.js +0 -108
- package/components/Tabs/index.js.map +0 -1
- package/components/Tag/index.js +0 -36
- package/components/Tag/index.js.map +0 -1
- package/components/TagList/index.js +0 -11
- package/components/TagList/index.js.map +0 -1
- package/components/Textarea/index.js +0 -5
- package/components/Textarea/index.js.map +0 -1
- package/components/Tile/index.js +0 -83
- package/components/Tile/index.js.map +0 -1
- package/components/Title/index.js +0 -8
- package/components/Title/index.js.map +0 -1
- package/components/Toggle/index.js +0 -154
- package/components/Toggle/index.js.map +0 -1
- package/components/Toggle/styles.module.scss +0 -152
- package/components/Validation/index.js +0 -85
- package/components/Validation/index.js.map +0 -1
- package/constants.d.ts +0 -138
- package/constants.js +0 -130
- package/constants.js.map +0 -1
- package/designsystem-react.css +0 -239
- package/floating-ui.react.js +0 -4306
- package/floating-ui.react.js.map +0 -1
- package/hoc/withBreakpoint/index.js +0 -6
- package/hoc/withBreakpoint/index.js.map +0 -1
- package/hoc/withBreakpoint/withBreakpoint.js +0 -14
- package/hoc/withBreakpoint/withBreakpoint.js.map +0 -1
- package/hooks/useBreakpoint.js +0 -56
- package/hooks/useBreakpoint.js.map +0 -1
- package/hooks/useElementList.js +0 -24
- package/hooks/useElementList.js.map +0 -1
- package/hooks/useEventListenerState.js +0 -14
- package/hooks/useEventListenerState.js.map +0 -1
- package/hooks/useExpand.js +0 -21
- package/hooks/useExpand.js.map +0 -1
- package/hooks/useFocusToggle.js +0 -31
- package/hooks/useFocusToggle.js.map +0 -1
- package/hooks/useFocusTrap.js +0 -33
- package/hooks/useFocusTrap.js.map +0 -1
- package/hooks/useFocusableElements.js +0 -21
- package/hooks/useFocusableElements.js.map +0 -1
- package/hooks/useIcons.js +0 -23
- package/hooks/useIcons.js.map +0 -1
- package/hooks/useIdWithFallback.js +0 -9
- package/hooks/useIdWithFallback.js.map +0 -1
- package/hooks/useIntersectionObserver.js +0 -20
- package/hooks/useIntersectionObserver.js.map +0 -1
- package/hooks/useInterval.js +0 -13
- package/hooks/useInterval.js.map +0 -1
- package/hooks/useIsMobileBreakpoint.js +0 -10
- package/hooks/useIsMobileBreakpoint.js.map +0 -1
- package/hooks/useIsServerSide.js +0 -12
- package/hooks/useIsServerSide.js.map +0 -1
- package/hooks/useIsVisible.js +0 -14
- package/hooks/useIsVisible.js.map +0 -1
- package/hooks/useKeyboardEvent.js +0 -24
- package/hooks/useKeyboardEvent.js.map +0 -1
- package/hooks/useLayoutEvent.js +0 -18
- package/hooks/useLayoutEvent.js.map +0 -1
- package/hooks/useOutsideEvent.js +0 -19
- package/hooks/useOutsideEvent.js.map +0 -1
- package/hooks/usePrevious.js +0 -12
- package/hooks/usePrevious.js.map +0 -1
- package/hooks/usePseudoClasses.js +0 -44
- package/hooks/usePseudoClasses.js.map +0 -1
- package/hooks/useResizeObserver.js +0 -31
- package/hooks/useResizeObserver.js.map +0 -1
- package/hooks/useReturnFocusOnUnmount.js +0 -21
- package/hooks/useReturnFocusOnUnmount.js.map +0 -1
- package/hooks/useRovingFocus.js +0 -57
- package/hooks/useRovingFocus.js.map +0 -1
- package/hooks/useSize.js +0 -47
- package/hooks/useSize.js.map +0 -1
- package/hooks/useToggle.js +0 -24
- package/hooks/useToggle.js.map +0 -1
- package/hooks/usestopPropagation.js +0 -18
- package/hooks/usestopPropagation.js.map +0 -1
- package/index.js +0 -43
- package/index.js.map +0 -1
- package/resources/HN.Designsystem.FormFieldTag.nb-NO.json.d.ts +0 -8
- package/theme/currys/color.js +0 -16
- package/theme/currys/color.js.map +0 -1
- package/theme/currys/index.js +0 -9
- package/theme/currys/index.js.map +0 -1
- package/theme/currys/spacing.js +0 -42
- package/theme/currys/spacing.js.map +0 -1
- package/theme/grid.js +0 -27
- package/theme/grid.js.map +0 -1
- package/theme/index.js +0 -14
- package/theme/index.js.map +0 -1
- package/theme/palette.js +0 -86
- package/theme/palette.js.map +0 -1
- package/theme/spacers.js +0 -22
- package/theme/spacers.js.map +0 -1
- package/utils/accessibility.js +0 -40
- package/utils/accessibility.js.map +0 -1
- package/utils/component.js +0 -16
- package/utils/component.js.map +0 -1
- package/utils/debounce.js +0 -19
- package/utils/debounce.js.map +0 -1
- package/utils/deepContains.js +0 -19
- package/utils/deepContains.js.map +0 -1
- package/utils/device.js +0 -7
- package/utils/device.js.map +0 -1
- package/utils/environment.js +0 -13
- package/utils/environment.js.map +0 -1
- package/utils/focus.js +0 -14
- package/utils/focus.js.map +0 -1
- package/utils/language.js +0 -25
- package/utils/language.js.map +0 -1
- package/utils/loremtext.js +0 -10
- package/utils/loremtext.js.map +0 -1
- package/utils/mobile.js +0 -17
- package/utils/mobile.js.map +0 -1
- package/utils/refs.js +0 -19
- package/utils/refs.js.map +0 -1
- package/utils/scroll.js +0 -11
- package/utils/scroll.js.map +0 -1
- package/utils/uuid.js +0 -7
- package/utils/uuid.js.map +0 -1
- package/utils/viewport.js +0 -8
- package/utils/viewport.js.map +0 -1
- package/utils.js +0 -13
- package/utils.js.map +0 -1
- package/uuid.js +0 -20
- package/uuid.js.map +0 -1
- /package/{__mocks__ → lib/__mocks__}/IntersectionObserver.d.ts +0 -0
- /package/{__mocks__ → lib/__mocks__}/MutationObserver.d.ts +0 -0
- /package/{__mocks__ → lib/__mocks__}/ResizeObserver.d.ts +0 -0
- /package/{__mocks__ → lib/__mocks__}/matchMedia.d.ts +0 -0
- /package/{__mocks__ → lib/__mocks__}/useLayoutEvent.d.ts +0 -0
- /package/{__mocks__ → lib/__mocks__}/useOutsideEvent.d.ts +0 -0
- /package/{__mocks__ → lib/__mocks__}/usePseudoClasses.d.ts +0 -0
- /package/{__mocks__ → lib/__mocks__}/useSize.d.ts +0 -0
- /package/{__mocks__ → lib/__mocks__}/uuid.d.ts +0 -0
- /package/{components → lib/components}/AnchorLink/AnchorLink.d.ts +0 -0
- /package/{components → lib/components}/AnchorLink/AnchorLink.test.d.ts +0 -0
- /package/{components → lib/components}/AnchorLink/index.d.ts +0 -0
- /package/{components → lib/components}/AnchorLink/styles.module.scss +0 -0
- /package/{components → lib/components}/AnchorLink/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/ArticleTeaser/ArticleTeaser.d.ts +0 -0
- /package/{components → lib/components}/ArticleTeaser/ArticleTeaser.test.d.ts +0 -0
- /package/{components → lib/components}/ArticleTeaser/index.d.ts +0 -0
- /package/{components → lib/components}/ArticleTeaser/resourceHelper.d.ts +0 -0
- /package/{components → lib/components}/ArticleTeaser/styles.module.scss.d.ts +0 -0
- /package/{components/Avatar/Avatar.test.d.ts → lib/components/AsChildSlot/AsChildSlot.test.d.ts} +0 -0
- /package/{components → lib/components}/Avatar/Avatar.d.ts +0 -0
- /package/{components/Badge/Badge.test.d.ts → lib/components/Avatar/Avatar.test.d.ts} +0 -0
- /package/{components → lib/components}/Avatar/index.d.ts +0 -0
- /package/{components → lib/components}/Avatar/styles.module.scss +0 -0
- /package/{components → lib/components}/Avatar/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Badge/Badge.d.ts +0 -0
- /package/{components/Button/Button.test.d.ts → lib/components/Badge/Badge.test.d.ts} +0 -0
- /package/{components → lib/components}/Badge/NotificationBadge.d.ts +0 -0
- /package/{components → lib/components}/Badge/index.d.ts +0 -0
- /package/{components → lib/components}/Badge/styles.module.scss +0 -0
- /package/{components → lib/components}/Badge/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Button/Button.d.ts +0 -0
- /package/{components/Checkbox/Checkbox.test.d.ts → lib/components/Button/Button.test.d.ts} +0 -0
- /package/{components → lib/components}/Button/index.d.ts +0 -0
- /package/{components → lib/components}/Button/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Checkbox/Checkbox.d.ts +0 -0
- /package/{components/Chip/Chip.test.d.ts → lib/components/Checkbox/Checkbox.test.d.ts} +0 -0
- /package/{components → lib/components}/Checkbox/index.d.ts +0 -0
- /package/{components → lib/components}/Checkbox/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Chip/Chip.d.ts +0 -0
- /package/{components/Close/Close.test.d.ts → lib/components/Chip/Chip.test.d.ts} +0 -0
- /package/{components → lib/components}/Chip/index.d.ts +0 -0
- /package/{components → lib/components}/Chip/styles.module.scss +0 -0
- /package/{components → lib/components}/Chip/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Close/Close.d.ts +0 -0
- /package/{components/DictionaryTrigger/DictionaryTrigger.test.d.ts → lib/components/Close/Close.test.d.ts} +0 -0
- /package/{components → lib/components}/Close/index.d.ts +0 -0
- /package/{components → lib/components}/Close/styles.module.scss +0 -0
- /package/{components → lib/components}/Close/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/DictionaryTrigger/DictionaryTrigger.d.ts +0 -0
- /package/{components/Drawer/Drawer.test.d.ts → lib/components/DictionaryTrigger/DictionaryTrigger.test.d.ts} +0 -0
- /package/{components → lib/components}/DictionaryTrigger/index.d.ts +0 -0
- /package/{components → lib/components}/DictionaryTrigger/styles.module.scss +0 -0
- /package/{components → lib/components}/DictionaryTrigger/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Drawer/Drawer.d.ts +0 -0
- /package/{components/Duolist/Duolist.test.d.ts → lib/components/Drawer/Drawer.test.d.ts} +0 -0
- /package/{components → lib/components}/Drawer/index.d.ts +0 -0
- /package/{components → lib/components}/Drawer/resourceHelper.d.ts +0 -0
- /package/{components/EmptyState/EmptyState.test.d.ts → lib/components/Dropdown/Dropdown.test.d.ts} +0 -0
- /package/{components/ErrorWrapper/ErrorWrapper.test.d.ts → lib/components/Dropdown/SingleSelect/SingleSelect.test.d.ts} +0 -0
- /package/{components → lib/components}/Dropdown/index.d.ts +0 -0
- /package/{components → lib/components}/Dropdown/resourceHelper.d.ts +0 -0
- /package/{components/Dropdown/Dropdown.test.d.ts → lib/components/DropdownOld/DropdownOld.test.d.ts} +0 -0
- /package/{components/Dropdown → lib/components/DropdownOld}/styles.module.scss +0 -0
- /package/{components/Dropdown → lib/components/DropdownOld}/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Duolist/Duolist.d.ts +0 -0
- /package/{components/Expander/Expander.test.d.ts → lib/components/Duolist/Duolist.test.d.ts} +0 -0
- /package/{components → lib/components}/Duolist/index.d.ts +0 -0
- /package/{components → lib/components}/Duolist/styles.module.scss +0 -0
- /package/{components → lib/components}/Duolist/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/ElementHeader/ElementHeader.d.ts +0 -0
- /package/{components → lib/components}/ElementHeader/ElementHeaderText/ElementHeaderText.d.ts +0 -0
- /package/{components → lib/components}/ElementHeader/ElementHeaderText/index.d.ts +0 -0
- /package/{components → lib/components}/ElementHeader/StatusDotList/StatusDotList.d.ts +0 -0
- /package/{components → lib/components}/ElementHeader/StatusDotList/index.d.ts +0 -0
- /package/{components → lib/components}/ElementHeader/StatusDotList/styles.module.scss +0 -0
- /package/{components → lib/components}/ElementHeader/StatusDotList/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/ElementHeader/index.d.ts +0 -0
- /package/{components → lib/components}/ElementHeader/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/EmptyState/EmptyBoxBeeMedium.d.ts +0 -0
- /package/{components → lib/components}/EmptyState/EmptyBoxBeeSmall.d.ts +0 -0
- /package/{components → lib/components}/EmptyState/EmptyState.d.ts +0 -0
- /package/{components/ExpanderHierarchy/ExpanderHierarchy.test.d.ts → lib/components/EmptyState/EmptyState.test.d.ts} +0 -0
- /package/{components → lib/components}/EmptyState/index.d.ts +0 -0
- /package/{components → lib/components}/EmptyState/styles.module.scss +0 -0
- /package/{components → lib/components}/EmptyState/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/ErrorWrapper/ErrorWrapper.d.ts +0 -0
- /package/{components/EyebrowHeader/EyebrowHeader.test.d.ts → lib/components/ErrorWrapper/ErrorWrapper.test.d.ts} +0 -0
- /package/{components → lib/components}/ErrorWrapper/index.d.ts +0 -0
- /package/{components → lib/components}/ErrorWrapper/styles.module.scss +0 -0
- /package/{components → lib/components}/ErrorWrapper/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Expander/Expander.d.ts +0 -0
- /package/{components/FavoriteButton/FavoriteButton.test.d.ts → lib/components/Expander/Expander.test.d.ts} +0 -0
- /package/{components → lib/components}/Expander/index.d.ts +0 -0
- /package/{components → lib/components}/Expander/styles.module.scss +0 -0
- /package/{components → lib/components}/Expander/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/ExpanderHierarchy/Expander.d.ts +0 -0
- /package/{components → lib/components}/ExpanderHierarchy/ExpanderButton.d.ts +0 -0
- /package/{components → lib/components}/ExpanderHierarchy/ExpanderHierarchy.d.ts +0 -0
- /package/{components/FormFieldTag/FormFieldTag.test.d.ts → lib/components/ExpanderHierarchy/ExpanderHierarchy.test.d.ts} +0 -0
- /package/{components → lib/components}/ExpanderHierarchy/expander.module.scss +0 -0
- /package/{components → lib/components}/ExpanderHierarchy/expander.module.scss.d.ts +0 -0
- /package/{components → lib/components}/ExpanderHierarchy/index.d.ts +0 -0
- /package/{components → lib/components}/ExpanderHierarchy/styles.module.scss +0 -0
- /package/{components → lib/components}/ExpanderHierarchy/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/ExpanderHierarchy/utils.d.ts +0 -0
- /package/{components → lib/components}/ExpanderList/ExpanderList.d.ts +0 -0
- /package/{components → lib/components}/ExpanderList/ExpanderList.test.d.ts +0 -0
- /package/{components → lib/components}/ExpanderList/index.d.ts +0 -0
- /package/{components → lib/components}/ExpanderList/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/EyebrowHeader/EyebrowHeader.d.ts +0 -0
- /package/{components/FormGroup/FormGroup.test.d.ts → lib/components/EyebrowHeader/EyebrowHeader.test.d.ts} +0 -0
- /package/{components → lib/components}/EyebrowHeader/index.d.ts +0 -0
- /package/{components → lib/components}/EyebrowHeader/styles.module.scss +0 -0
- /package/{components → lib/components}/EyebrowHeader/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/FavoriteButton/FavoriteButton.d.ts +0 -0
- /package/{components/FormLayout/FormLayout.test.d.ts → lib/components/FavoriteButton/FavoriteButton.test.d.ts} +0 -0
- /package/{components → lib/components}/FavoriteButton/StarIcon.d.ts +0 -0
- /package/{components → lib/components}/FavoriteButton/index.d.ts +0 -0
- /package/{components → lib/components}/FavoriteButton/resourceHelper.d.ts +0 -0
- /package/{components → lib/components}/FavoriteButton/stories.module.scss +0 -0
- /package/{components → lib/components}/FavoriteButton/stories.module.scss.d.ts +0 -0
- /package/{components → lib/components}/FavoriteButton/styles.module.scss +0 -0
- /package/{components → lib/components}/FavoriteButton/styles.module.scss.d.ts +0 -0
- /package/{components/HelpBubble/HelpBubble.test.d.ts → lib/components/FormFieldTag/FormFieldTag.test.d.ts} +0 -0
- /package/{components → lib/components}/FormFieldTag/index.d.ts +0 -0
- /package/{components → lib/components}/FormFieldTag/resourceHelper.d.ts +0 -0
- /package/{components → lib/components}/FormFieldTag/styles.module.scss +0 -0
- /package/{components → lib/components}/FormFieldTag/styles.module.scss.d.ts +0 -0
- /package/{components/HelpDetails/HelpDetails.test.d.ts → lib/components/FormGroup/FormGroup.test.d.ts} +0 -0
- /package/{components → lib/components}/FormGroup/formGroup.module.scss +0 -0
- /package/{components → lib/components}/FormGroup/formGroup.module.scss.d.ts +0 -0
- /package/{components → lib/components}/FormGroup/index.d.ts +0 -0
- /package/{components → lib/components}/FormGroup/styles.module.scss +0 -0
- /package/{components → lib/components}/FormGroup/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/FormLayout/FormLayout.d.ts +0 -0
- /package/{components/HelpDrawer/HelpDrawer.test.d.ts → lib/components/FormLayout/FormLayout.test.d.ts} +0 -0
- /package/{components → lib/components}/FormLayout/index.d.ts +0 -0
- /package/{components → lib/components}/FormLayout/styles.module.scss +0 -0
- /package/{components → lib/components}/FormLayout/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/HelpBubble/HelpBubble.d.ts +0 -0
- /package/{components/HelpExpanderInline/HelpExpanderInline.test.d.ts → lib/components/HelpBubble/HelpBubble.test.d.ts} +0 -0
- /package/{components → lib/components}/HelpBubble/index.d.ts +0 -0
- /package/{components → lib/components}/HelpBubble/resourceHelper.d.ts +0 -0
- /package/{components → lib/components}/HelpBubble/styles.module.scss +0 -0
- /package/{components → lib/components}/HelpBubble/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/HelpDetails/HelpDetails.d.ts +0 -0
- /package/{components/HelpExpanderStandalone/HelpExpanderStandalone.test.d.ts → lib/components/HelpDetails/HelpDetails.test.d.ts} +0 -0
- /package/{components → lib/components}/HelpDetails/styles.module.scss +0 -0
- /package/{components → lib/components}/HelpDetails/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/HelpDrawer/HelpDrawer.d.ts +0 -0
- /package/{components/HelpPanel/HelpPanel.test.d.ts → lib/components/HelpDrawer/HelpDrawer.test.d.ts} +0 -0
- /package/{components → lib/components}/HelpDrawer/index.d.ts +0 -0
- /package/{components → lib/components}/HelpDrawer/resourceHelper.d.ts +0 -0
- /package/{components → lib/components}/HelpDrawer/styles.module.scss +0 -0
- /package/{components → lib/components}/HelpDrawer/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/HelpExpanderInline/HelpExpanderInline.d.ts +0 -0
- /package/{components/HelpTeaser/HelpTeaser.test.d.ts → lib/components/HelpExpanderInline/HelpExpanderInline.test.d.ts} +0 -0
- /package/{components → lib/components}/HelpExpanderInline/index.d.ts +0 -0
- /package/{components → lib/components}/HelpExpanderStandalone/HelpExpanderStandalone.d.ts +0 -0
- /package/{components/HelpTooltip/HelpTooltip.test.d.ts → lib/components/HelpExpanderStandalone/HelpExpanderStandalone.test.d.ts} +0 -0
- /package/{components → lib/components}/HelpExpanderStandalone/index.d.ts +0 -0
- /package/{components → lib/components}/HelpExpanderStandalone/styles.module.scss +0 -0
- /package/{components → lib/components}/HelpExpanderStandalone/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/HelpPanel/HelpPanel.d.ts +0 -0
- /package/{components/HelpTriggerIcon/HelpTriggerIcon.test.d.ts → lib/components/HelpPanel/HelpPanel.test.d.ts} +0 -0
- /package/{components → lib/components}/HelpPanel/index.d.ts +0 -0
- /package/{components → lib/components}/HelpPanel/styles.module.scss +0 -0
- /package/{components → lib/components}/HelpPanel/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/HelpTeaser/HelpTeaser.d.ts +0 -0
- /package/{components/HelpTriggerInline/HelpTriggerInline.test.d.ts → lib/components/HelpTeaser/HelpTeaser.test.d.ts} +0 -0
- /package/{components → lib/components}/HelpTeaser/index.d.ts +0 -0
- /package/{components → lib/components}/HelpTeaser/styles.module.scss +0 -0
- /package/{components → lib/components}/HelpTeaser/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/HelpTooltip/HelpTooltip.d.ts +0 -0
- /package/{components/HelpTriggerStandalone/HelpTriggerStandalone.test.d.ts → lib/components/HelpTooltip/HelpTooltip.test.d.ts} +0 -0
- /package/{components → lib/components}/HelpTooltip/index.d.ts +0 -0
- /package/{components → lib/components}/HelpTriggerIcon/HelpSign.d.ts +0 -0
- /package/{components → lib/components}/HelpTriggerIcon/HelpTriggerIcon.d.ts +0 -0
- /package/{components/HighlightPanel/HighlightPanel.test.d.ts → lib/components/HelpTriggerIcon/HelpTriggerIcon.test.d.ts} +0 -0
- /package/{components → lib/components}/HelpTriggerIcon/index.d.ts +0 -0
- /package/{components → lib/components}/HelpTriggerIcon/styles.module.scss +0 -0
- /package/{components → lib/components}/HelpTriggerIcon/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/HelpTriggerInline/HelpTriggerInline.d.ts +0 -0
- /package/{components/Highlighter/Highlighter.test.d.ts → lib/components/HelpTriggerInline/HelpTriggerInline.test.d.ts} +0 -0
- /package/{components → lib/components}/HelpTriggerInline/index.d.ts +0 -0
- /package/{components → lib/components}/HelpTriggerInline/styles.module.scss +0 -0
- /package/{components → lib/components}/HelpTriggerInline/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/HelpTriggerStandalone/HelpTriggerStandalone.d.ts +0 -0
- /package/{components/HorizontalScroll/HorizontalScroll.test.d.ts → lib/components/HelpTriggerStandalone/HelpTriggerStandalone.test.d.ts} +0 -0
- /package/{components → lib/components}/HelpTriggerStandalone/index.d.ts +0 -0
- /package/{components → lib/components}/HelpTriggerStandalone/styles.module.scss +0 -0
- /package/{components → lib/components}/HelpTriggerStandalone/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/HighlightPanel/HighlightPanel.d.ts +0 -0
- /package/{components/Icon/Icon.test.d.ts → lib/components/HighlightPanel/HighlightPanel.test.d.ts} +0 -0
- /package/{components → lib/components}/HighlightPanel/index.d.ts +0 -0
- /package/{components → lib/components}/HighlightPanel/styles.module.scss +0 -0
- /package/{components → lib/components}/HighlightPanel/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Highlighter/Highlighter.d.ts +0 -0
- /package/{components/Illustration/Illustration.test.d.ts → lib/components/Highlighter/Highlighter.test.d.ts} +0 -0
- /package/{components → lib/components}/Highlighter/index.d.ts +0 -0
- /package/{components → lib/components}/Highlighter/styles.module.scss +0 -0
- /package/{components → lib/components}/Highlighter/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/HorizontalScroll/HorizontalScroll.d.ts +0 -0
- /package/{components/InfoTeaser/InfoTeaser.test.d.ts → lib/components/HorizontalScroll/HorizontalScroll.test.d.ts} +0 -0
- /package/{components → lib/components}/HorizontalScroll/index.d.ts +0 -0
- /package/{components → lib/components}/HorizontalScroll/styles.module.scss +0 -0
- /package/{components → lib/components}/HorizontalScroll/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Icon/Icon.d.ts +0 -0
- /package/{components/Input/Input.test.d.ts → lib/components/Icon/Icon.test.d.ts} +0 -0
- /package/{components → lib/components}/Icon/index.d.ts +0 -0
- /package/{components → lib/components}/Icons/ActiveMonitoring.d.ts +0 -0
- /package/{components → lib/components}/Icons/AcupunctureBack.d.ts +0 -0
- /package/{components → lib/components}/Icons/AdditionalIconInformation.d.ts +0 -0
- /package/{components → lib/components}/Icons/AlarmClock.d.ts +0 -0
- /package/{components → lib/components}/Icons/AlertSignFill.d.ts +0 -0
- /package/{components → lib/components}/Icons/AlertSignStroke.d.ts +0 -0
- /package/{components → lib/components}/Icons/Amputation.d.ts +0 -0
- /package/{components → lib/components}/Icons/Anxiety.d.ts +0 -0
- /package/{components → lib/components}/Icons/Apple.d.ts +0 -0
- /package/{components → lib/components}/Icons/Archive.d.ts +0 -0
- /package/{components → lib/components}/Icons/ArmFlexing.d.ts +0 -0
- /package/{components → lib/components}/Icons/ArrowDown.d.ts +0 -0
- /package/{components → lib/components}/Icons/ArrowLeft.d.ts +0 -0
- /package/{components → lib/components}/Icons/ArrowRight.d.ts +0 -0
- /package/{components → lib/components}/Icons/ArrowUp.d.ts +0 -0
- /package/{components → lib/components}/Icons/ArrowUpRight.d.ts +0 -0
- /package/{components → lib/components}/Icons/Attachment.d.ts +0 -0
- /package/{components → lib/components}/Icons/Atv.d.ts +0 -0
- /package/{components → lib/components}/Icons/Avatar.d.ts +0 -0
- /package/{components → lib/components}/Icons/AwakePersonOnPillow.d.ts +0 -0
- /package/{components → lib/components}/Icons/Baby.d.ts +0 -0
- /package/{components → lib/components}/Icons/BandAid.d.ts +0 -0
- /package/{components → lib/components}/Icons/BeerAndPills.d.ts +0 -0
- /package/{components → lib/components}/Icons/Bell.d.ts +0 -0
- /package/{components → lib/components}/Icons/Bike.d.ts +0 -0
- /package/{components → lib/components}/Icons/BirthControl.d.ts +0 -0
- /package/{components → lib/components}/Icons/BirthdayCake.d.ts +0 -0
- /package/{components → lib/components}/Icons/Boat.d.ts +0 -0
- /package/{components → lib/components}/Icons/Body.d.ts +0 -0
- /package/{components → lib/components}/Icons/Braille.d.ts +0 -0
- /package/{components → lib/components}/Icons/Brain.d.ts +0 -0
- /package/{components → lib/components}/Icons/BreastReconstruction.d.ts +0 -0
- /package/{components → lib/components}/Icons/BreastRemoval.d.ts +0 -0
- /package/{components → lib/components}/Icons/Breasts.d.ts +0 -0
- /package/{components → lib/components}/Icons/BrokenHeart.d.ts +0 -0
- /package/{components → lib/components}/Icons/BrokenPuzzle.d.ts +0 -0
- /package/{components → lib/components}/Icons/Bus.d.ts +0 -0
- /package/{components → lib/components}/Icons/Calendar.d.ts +0 -0
- /package/{components → lib/components}/Icons/CalendarChange.d.ts +0 -0
- /package/{components → lib/components}/Icons/CalendarCheck.d.ts +0 -0
- /package/{components → lib/components}/Icons/CalendarEvent.d.ts +0 -0
- /package/{components → lib/components}/Icons/CalendarSave.d.ts +0 -0
- /package/{components → lib/components}/Icons/Cancer.d.ts +0 -0
- /package/{components → lib/components}/Icons/Candle.d.ts +0 -0
- /package/{components → lib/components}/Icons/Car.d.ts +0 -0
- /package/{components → lib/components}/Icons/Carton.d.ts +0 -0
- /package/{components → lib/components}/Icons/Change.d.ts +0 -0
- /package/{components → lib/components}/Icons/Check.d.ts +0 -0
- /package/{components → lib/components}/Icons/CheckFill.d.ts +0 -0
- /package/{components → lib/components}/Icons/CheckOutline.d.ts +0 -0
- /package/{components → lib/components}/Icons/Chest.d.ts +0 -0
- /package/{components → lib/components}/Icons/ChevronDown.d.ts +0 -0
- /package/{components → lib/components}/Icons/ChevronLeft.d.ts +0 -0
- /package/{components → lib/components}/Icons/ChevronRight.d.ts +0 -0
- /package/{components → lib/components}/Icons/ChevronUp.d.ts +0 -0
- /package/{components → lib/components}/Icons/ChevronsDown.d.ts +0 -0
- /package/{components → lib/components}/Icons/ChevronsUp.d.ts +0 -0
- /package/{components → lib/components}/Icons/ChildPlaying.d.ts +0 -0
- /package/{components → lib/components}/Icons/Cigarette.d.ts +0 -0
- /package/{components → lib/components}/Icons/Coins.d.ts +0 -0
- /package/{components → lib/components}/Icons/Contacts.d.ts +0 -0
- /package/{components → lib/components}/Icons/Copy.d.ts +0 -0
- /package/{components → lib/components}/Icons/CoronaCertificate.d.ts +0 -0
- /package/{components → lib/components}/Icons/Coronavirus.d.ts +0 -0
- /package/{components → lib/components}/Icons/Cough.d.ts +0 -0
- /package/{components → lib/components}/Icons/CreditCard.d.ts +0 -0
- /package/{components → lib/components}/Icons/CriticalHealthInfo.d.ts +0 -0
- /package/{components → lib/components}/Icons/Cross.d.ts +0 -0
- /package/{components → lib/components}/Icons/DataExchange.d.ts +0 -0
- /package/{components → lib/components}/Icons/DataReceived.d.ts +0 -0
- /package/{components → lib/components}/Icons/DataSent.d.ts +0 -0
- /package/{components → lib/components}/Icons/Depression.d.ts +0 -0
- /package/{components → lib/components}/Icons/DigestiveSystem.d.ts +0 -0
- /package/{components → lib/components}/Icons/Dizzy.d.ts +0 -0
- /package/{components → lib/components}/Icons/Documents.d.ts +0 -0
- /package/{components → lib/components}/Icons/Dog.d.ts +0 -0
- /package/{components → lib/components}/Icons/DonorCard.d.ts +0 -0
- /package/{components → lib/components}/Icons/DotActive.d.ts +0 -0
- /package/{components → lib/components}/Icons/DotAlert.d.ts +0 -0
- /package/{components → lib/components}/Icons/DotCancelled.d.ts +0 -0
- /package/{components → lib/components}/Icons/DotHalfDisc.d.ts +0 -0
- /package/{components → lib/components}/Icons/DotInactive.d.ts +0 -0
- /package/{components → lib/components}/Icons/DotInfo.d.ts +0 -0
- /package/{components → lib/components}/Icons/DotLookingGlass.d.ts +0 -0
- /package/{components → lib/components}/Icons/DotPending.d.ts +0 -0
- /package/{components → lib/components}/Icons/DotQuestionMark.d.ts +0 -0
- /package/{components → lib/components}/Icons/DotSuccess.d.ts +0 -0
- /package/{components → lib/components}/Icons/DotTransparent.d.ts +0 -0
- /package/{components → lib/components}/Icons/DotWarningTriangle.d.ts +0 -0
- /package/{components → lib/components}/Icons/Download.d.ts +0 -0
- /package/{components → lib/components}/Icons/Draft.d.ts +0 -0
- /package/{components → lib/components}/Icons/Drag.d.ts +0 -0
- /package/{components → lib/components}/Icons/EChat.d.ts +0 -0
- /package/{components → lib/components}/Icons/Ear.d.ts +0 -0
- /package/{components → lib/components}/Icons/EarDeaf.d.ts +0 -0
- /package/{components → lib/components}/Icons/EarHearingAid.d.ts +0 -0
- /package/{components → lib/components}/Icons/EarNoseThroat.d.ts +0 -0
- /package/{components → lib/components}/Icons/EarVolume.d.ts +0 -0
- /package/{components → lib/components}/Icons/Edit.d.ts +0 -0
- /package/{components → lib/components}/Icons/ElderlyPerson.d.ts +0 -0
- /package/{components → lib/components}/Icons/Embolization.d.ts +0 -0
- /package/{components → lib/components}/Icons/EmergencyCall.d.ts +0 -0
- /package/{components → lib/components}/Icons/EmoticonAnnoyed.d.ts +0 -0
- /package/{components → lib/components}/Icons/EmoticonDelighted.d.ts +0 -0
- /package/{components → lib/components}/Icons/EmoticonDisappointed.d.ts +0 -0
- /package/{components → lib/components}/Icons/EmoticonHappy.d.ts +0 -0
- /package/{components → lib/components}/Icons/EmoticonMeh.d.ts +0 -0
- /package/{components → lib/components}/Icons/EmptyBox.d.ts +0 -0
- /package/{components → lib/components}/Icons/EnterFullScreen.d.ts +0 -0
- /package/{components → lib/components}/Icons/Envelope.d.ts +0 -0
- /package/{components → lib/components}/Icons/Epilepsy.d.ts +0 -0
- /package/{components → lib/components}/Icons/Eraser.d.ts +0 -0
- /package/{components → lib/components}/Icons/ErrorSignFill.d.ts +0 -0
- /package/{components → lib/components}/Icons/ErrorSignStroke.d.ts +0 -0
- /package/{components → lib/components}/Icons/EuropeanHealthCard.d.ts +0 -0
- /package/{components → lib/components}/Icons/ExitFullScreen.d.ts +0 -0
- /package/{components → lib/components}/Icons/Eye.d.ts +0 -0
- /package/{components → lib/components}/Icons/Facebook.d.ts +0 -0
- /package/{components → lib/components}/Icons/FallingLeaf.d.ts +0 -0
- /package/{components → lib/components}/Icons/Feedback.d.ts +0 -0
- /package/{components → lib/components}/Icons/Female.d.ts +0 -0
- /package/{components → lib/components}/Icons/FemaleDoctor.d.ts +0 -0
- /package/{components → lib/components}/Icons/Ferry.d.ts +0 -0
- /package/{components → lib/components}/Icons/File.d.ts +0 -0
- /package/{components → lib/components}/Icons/Filter.d.ts +0 -0
- /package/{components → lib/components}/Icons/FingerBleed.d.ts +0 -0
- /package/{components → lib/components}/Icons/FirstAidKit.d.ts +0 -0
- /package/{components → lib/components}/Icons/Fish.d.ts +0 -0
- /package/{components → lib/components}/Icons/FloppyDisk.d.ts +0 -0
- /package/{components → lib/components}/Icons/Football.d.ts +0 -0
- /package/{components → lib/components}/Icons/Form.d.ts +0 -0
- /package/{components → lib/components}/Icons/Forward.d.ts +0 -0
- /package/{components → lib/components}/Icons/Gallery.d.ts +0 -0
- /package/{components → lib/components}/Icons/Garden.d.ts +0 -0
- /package/{components → lib/components}/Icons/GasCan.d.ts +0 -0
- /package/{components → lib/components}/Icons/GenderIdentity.d.ts +0 -0
- /package/{components → lib/components}/Icons/GlassWater.d.ts +0 -0
- /package/{components → lib/components}/Icons/Glasses.d.ts +0 -0
- /package/{components → lib/components}/Icons/Globe.d.ts +0 -0
- /package/{components → lib/components}/Icons/Grain.d.ts +0 -0
- /package/{components → lib/components}/Icons/Graph.d.ts +0 -0
- /package/{components → lib/components}/Icons/Group.d.ts +0 -0
- /package/{components → lib/components}/Icons/GroupTwins.d.ts +0 -0
- /package/{components → lib/components}/Icons/HTMLFile.d.ts +0 -0
- /package/{components → lib/components}/Icons/HandWaving.d.ts +0 -0
- /package/{components → lib/components}/Icons/HandWithDisease.d.ts +0 -0
- /package/{components → lib/components}/Icons/HandsAndHeart.d.ts +0 -0
- /package/{components → lib/components}/Icons/HealthClinic.d.ts +0 -0
- /package/{components → lib/components}/Icons/HealthMeasurements.d.ts +0 -0
- /package/{components → lib/components}/Icons/HealthWarning.d.ts +0 -0
- /package/{components → lib/components}/Icons/HealthcarePerson.d.ts +0 -0
- /package/{components → lib/components}/Icons/HealthcarePersonell.d.ts +0 -0
- /package/{components → lib/components}/Icons/HearingProtection.d.ts +0 -0
- /package/{components → lib/components}/Icons/Heart.d.ts +0 -0
- /package/{components → lib/components}/Icons/HeartHands.d.ts +0 -0
- /package/{components → lib/components}/Icons/HelpSign.d.ts +0 -0
- /package/{components → lib/components}/Icons/HelpingHand.d.ts +0 -0
- /package/{components → lib/components}/Icons/Hemodialysis.d.ts +0 -0
- /package/{components → lib/components}/Icons/Hiker.d.ts +0 -0
- /package/{components → lib/components}/Icons/Hipprosthesis.d.ts +0 -0
- /package/{components → lib/components}/Icons/History.d.ts +0 -0
- /package/{components → lib/components}/Icons/HivAndAids.d.ts +0 -0
- /package/{components → lib/components}/Icons/Home.d.ts +0 -0
- /package/{components → lib/components}/Icons/HomeFill.d.ts +0 -0
- /package/{components → lib/components}/Icons/Hormone.d.ts +0 -0
- /package/{components → lib/components}/Icons/Hospital.d.ts +0 -0
- /package/{components → lib/components}/Icons/Hourglass.d.ts +0 -0
- /package/{components → lib/components}/Icons/IconNames.d.ts +0 -0
- /package/{components → lib/components}/Icons/ImgFile.d.ts +0 -0
- /package/{components → lib/components}/Icons/Inbox.d.ts +0 -0
- /package/{components → lib/components}/Icons/InfoSignFill.d.ts +0 -0
- /package/{components → lib/components}/Icons/InfoSignStroke.d.ts +0 -0
- /package/{components → lib/components}/Icons/Instagram.d.ts +0 -0
- /package/{components → lib/components}/Icons/Intravenous.d.ts +0 -0
- /package/{components → lib/components}/Icons/JointPain.d.ts +0 -0
- /package/{components → lib/components}/Icons/Journal.d.ts +0 -0
- /package/{components → lib/components}/Icons/JpgFile.d.ts +0 -0
- /package/{components → lib/components}/Icons/Kidney.d.ts +0 -0
- /package/{components → lib/components}/Icons/KitchenScale.d.ts +0 -0
- /package/{components → lib/components}/Icons/Kjernejournal.d.ts +0 -0
- /package/{components → lib/components}/Icons/Laboratory.d.ts +0 -0
- /package/{components → lib/components}/Icons/LaptopBlog.d.ts +0 -0
- /package/{components → lib/components}/Icons/LawBook.d.ts +0 -0
- /package/{components → lib/components}/Icons/LegalDocument.d.ts +0 -0
- /package/{components → lib/components}/Icons/LightBulb.d.ts +0 -0
- /package/{components → lib/components}/Icons/List.d.ts +0 -0
- /package/{components → lib/components}/Icons/Location.d.ts +0 -0
- /package/{components → lib/components}/Icons/LocationFill.d.ts +0 -0
- /package/{components → lib/components}/Icons/Lock.d.ts +0 -0
- /package/{components → lib/components}/Icons/Login.d.ts +0 -0
- /package/{components → lib/components}/Icons/Logout.d.ts +0 -0
- /package/{components → lib/components}/Icons/Lungs.d.ts +0 -0
- /package/{components → lib/components}/Icons/Makeup.d.ts +0 -0
- /package/{components → lib/components}/Icons/MaleDoctor.d.ts +0 -0
- /package/{components → lib/components}/Icons/MaleDoctorAndPerson.d.ts +0 -0
- /package/{components → lib/components}/Icons/MaleDoctorCompact.d.ts +0 -0
- /package/{components → lib/components}/Icons/MaleDoctorCompactFill.d.ts +0 -0
- /package/{components → lib/components}/Icons/MaleGenitalia.d.ts +0 -0
- /package/{components → lib/components}/Icons/Medicine.d.ts +0 -0
- /package/{components → lib/components}/Icons/MedicineWarning.d.ts +0 -0
- /package/{components → lib/components}/Icons/MentalHealthAdult.d.ts +0 -0
- /package/{components → lib/components}/Icons/MentalHealthChild.d.ts +0 -0
- /package/{components → lib/components}/Icons/Menu.d.ts +0 -0
- /package/{components → lib/components}/Icons/Microscope.d.ts +0 -0
- /package/{components → lib/components}/Icons/Minus.d.ts +0 -0
- /package/{components → lib/components}/Icons/Mirror.d.ts +0 -0
- /package/{components → lib/components}/Icons/MobilePhone.d.ts +0 -0
- /package/{components → lib/components}/Icons/MotherHoldingBaby.d.ts +0 -0
- /package/{components → lib/components}/Icons/MuscleBack.d.ts +0 -0
- /package/{components → lib/components}/Icons/MuscleLeg.d.ts +0 -0
- /package/{components → lib/components}/Icons/Mushroom.d.ts +0 -0
- /package/{components → lib/components}/Icons/Music.d.ts +0 -0
- /package/{components → lib/components}/Icons/MusselsAndSalt.d.ts +0 -0
- /package/{components → lib/components}/Icons/NoAccess.d.ts +0 -0
- /package/{components → lib/components}/Icons/NoEye.d.ts +0 -0
- /package/{components → lib/components}/Icons/NoFilter.d.ts +0 -0
- /package/{components → lib/components}/Icons/Notepad.d.ts +0 -0
- /package/{components → lib/components}/Icons/Osteotomy.d.ts +0 -0
- /package/{components → lib/components}/Icons/PaintRoller.d.ts +0 -0
- /package/{components → lib/components}/Icons/PaperPlane.d.ts +0 -0
- /package/{components → lib/components}/Icons/PatientAndPerson.d.ts +0 -0
- /package/{components → lib/components}/Icons/Pause.d.ts +0 -0
- /package/{components → lib/components}/Icons/PdfFile.d.ts +0 -0
- /package/{components → lib/components}/Icons/Pencil.d.ts +0 -0
- /package/{components → lib/components}/Icons/PeopleTalking.d.ts +0 -0
- /package/{components → lib/components}/Icons/Peritonealdialysis.d.ts +0 -0
- /package/{components → lib/components}/Icons/Person.d.ts +0 -0
- /package/{components → lib/components}/Icons/PersonAndPatient.d.ts +0 -0
- /package/{components → lib/components}/Icons/PersonCancel.d.ts +0 -0
- /package/{components → lib/components}/Icons/PersonInXRayMachine.d.ts +0 -0
- /package/{components → lib/components}/Icons/PersonOverweight.d.ts +0 -0
- /package/{components → lib/components}/Icons/PersonRelaxing.d.ts +0 -0
- /package/{components → lib/components}/Icons/PersonWithBrain.d.ts +0 -0
- /package/{components → lib/components}/Icons/PersonWithBrokenArm.d.ts +0 -0
- /package/{components → lib/components}/Icons/PersonWithCrutches.d.ts +0 -0
- /package/{components → lib/components}/Icons/PersonWithJaw.d.ts +0 -0
- /package/{components → lib/components}/Icons/PersonWithMagnifyingGlass.d.ts +0 -0
- /package/{components → lib/components}/Icons/PersonWithSenses.d.ts +0 -0
- /package/{components → lib/components}/Icons/PersonWorking.d.ts +0 -0
- /package/{components → lib/components}/Icons/PersonalPlan.d.ts +0 -0
- /package/{components → lib/components}/Icons/PizzaSlice.d.ts +0 -0
- /package/{components → lib/components}/Icons/Plane.d.ts +0 -0
- /package/{components → lib/components}/Icons/Plant.d.ts +0 -0
- /package/{components → lib/components}/Icons/PlateKnifeFork.d.ts +0 -0
- /package/{components → lib/components}/Icons/Play.d.ts +0 -0
- /package/{components → lib/components}/Icons/PlusLarge.d.ts +0 -0
- /package/{components → lib/components}/Icons/PlusSmall.d.ts +0 -0
- /package/{components → lib/components}/Icons/PngFile.d.ts +0 -0
- /package/{components → lib/components}/Icons/Podcast.d.ts +0 -0
- /package/{components → lib/components}/Icons/PoisonInformation.d.ts +0 -0
- /package/{components → lib/components}/Icons/Pregnant.d.ts +0 -0
- /package/{components → lib/components}/Icons/Printer.d.ts +0 -0
- /package/{components → lib/components}/Icons/Psychosis.d.ts +0 -0
- /package/{components → lib/components}/Icons/Publication.d.ts +0 -0
- /package/{components → lib/components}/Icons/Puzzle.d.ts +0 -0
- /package/{components → lib/components}/Icons/QrCode.d.ts +0 -0
- /package/{components → lib/components}/Icons/Quarrel.d.ts +0 -0
- /package/{components → lib/components}/Icons/RadioTherapy.d.ts +0 -0
- /package/{components → lib/components}/Icons/RadioactiveTreatment.d.ts +0 -0
- /package/{components → lib/components}/Icons/Radioiodine.d.ts +0 -0
- /package/{components → lib/components}/Icons/Receipt.d.ts +0 -0
- /package/{components → lib/components}/Icons/Receptionist.d.ts +0 -0
- /package/{components → lib/components}/Icons/Recovery.d.ts +0 -0
- /package/{components → lib/components}/Icons/Referral.d.ts +0 -0
- /package/{components → lib/components}/Icons/Refresh.d.ts +0 -0
- /package/{components → lib/components}/Icons/Refund.d.ts +0 -0
- /package/{components → lib/components}/Icons/Reminder.d.ts +0 -0
- /package/{components → lib/components}/Icons/Reply.d.ts +0 -0
- /package/{components → lib/components}/Icons/Rocket.d.ts +0 -0
- /package/{components → lib/components}/Icons/RtfFile.d.ts +0 -0
- /package/{components → lib/components}/Icons/STDs.d.ts +0 -0
- /package/{components → lib/components}/Icons/Save.d.ts +0 -0
- /package/{components → lib/components}/Icons/Scale.d.ts +0 -0
- /package/{components → lib/components}/Icons/ScreenReader.d.ts +0 -0
- /package/{components → lib/components}/Icons/Search.d.ts +0 -0
- /package/{components → lib/components}/Icons/SectionSign.d.ts +0 -0
- /package/{components → lib/components}/Icons/Settings.d.ts +0 -0
- /package/{components → lib/components}/Icons/SettingsFill.d.ts +0 -0
- /package/{components → lib/components}/Icons/Sexualorientation.d.ts +0 -0
- /package/{components → lib/components}/Icons/ShakingHand.d.ts +0 -0
- /package/{components → lib/components}/Icons/Share.d.ts +0 -0
- /package/{components → lib/components}/Icons/SharedHealthData.d.ts +0 -0
- /package/{components → lib/components}/Icons/SharedHealthMeasurements.d.ts +0 -0
- /package/{components → lib/components}/Icons/Shield.d.ts +0 -0
- /package/{components → lib/components}/Icons/ShuntOperation.d.ts +0 -0
- /package/{components → lib/components}/Icons/Skeleton.d.ts +0 -0
- /package/{components → lib/components}/Icons/Skin.d.ts +0 -0
- /package/{components → lib/components}/Icons/Snake.d.ts +0 -0
- /package/{components → lib/components}/Icons/Snapchat.d.ts +0 -0
- /package/{components → lib/components}/Icons/SortDown.d.ts +0 -0
- /package/{components → lib/components}/Icons/SortUp.d.ts +0 -0
- /package/{components → lib/components}/Icons/SpeechBubble.d.ts +0 -0
- /package/{components → lib/components}/Icons/Spray.d.ts +0 -0
- /package/{components → lib/components}/Icons/StickyNote.d.ts +0 -0
- /package/{components → lib/components}/Icons/StickyNotes.d.ts +0 -0
- /package/{components → lib/components}/Icons/Stopwatch.d.ts +0 -0
- /package/{components → lib/components}/Icons/Sun.d.ts +0 -0
- /package/{components → lib/components}/Icons/SupportingPerson.d.ts +0 -0
- /package/{components → lib/components}/Icons/Surgery.d.ts +0 -0
- /package/{components → lib/components}/Icons/Sweets.d.ts +0 -0
- /package/{components → lib/components}/Icons/Syringe.d.ts +0 -0
- /package/{components → lib/components}/Icons/Taxi.d.ts +0 -0
- /package/{components → lib/components}/Icons/TeddyBear.d.ts +0 -0
- /package/{components → lib/components}/Icons/Teenagers.d.ts +0 -0
- /package/{components → lib/components}/Icons/ThinkingAboutBaby.d.ts +0 -0
- /package/{components → lib/components}/Icons/Ticket.d.ts +0 -0
- /package/{components → lib/components}/Icons/TimePassing.d.ts +0 -0
- /package/{components → lib/components}/Icons/Toddler.d.ts +0 -0
- /package/{components → lib/components}/Icons/Tombstone.d.ts +0 -0
- /package/{components → lib/components}/Icons/Toolbox.d.ts +0 -0
- /package/{components → lib/components}/Icons/Tooth.d.ts +0 -0
- /package/{components → lib/components}/Icons/TotalKneeProsthesis.d.ts +0 -0
- /package/{components → lib/components}/Icons/Train.d.ts +0 -0
- /package/{components → lib/components}/Icons/Transplantation.d.ts +0 -0
- /package/{components → lib/components}/Icons/TrashCan.d.ts +0 -0
- /package/{components → lib/components}/Icons/TravelRoute.d.ts +0 -0
- /package/{components → lib/components}/Icons/TreatmentAids.d.ts +0 -0
- /package/{components → lib/components}/Icons/TriangleX.d.ts +0 -0
- /package/{components → lib/components}/Icons/Twitter.d.ts +0 -0
- /package/{components → lib/components}/Icons/Undo.d.ts +0 -0
- /package/{components → lib/components}/Icons/UniProsthesis.d.ts +0 -0
- /package/{components → lib/components}/Icons/Upload.d.ts +0 -0
- /package/{components → lib/components}/Icons/UserOrganization.d.ts +0 -0
- /package/{components → lib/components}/Icons/Vaccine.d.ts +0 -0
- /package/{components → lib/components}/Icons/VerticalDots.d.ts +0 -0
- /package/{components → lib/components}/Icons/VideoCamera.d.ts +0 -0
- /package/{components → lib/components}/Icons/VideoChat.d.ts +0 -0
- /package/{components → lib/components}/Icons/Wallet.d.ts +0 -0
- /package/{components → lib/components}/Icons/Watch.d.ts +0 -0
- /package/{components → lib/components}/Icons/Website.d.ts +0 -0
- /package/{components → lib/components}/Icons/Wheelchair.d.ts +0 -0
- /package/{components → lib/components}/Icons/WheelchairActive.d.ts +0 -0
- /package/{components → lib/components}/Icons/Window.d.ts +0 -0
- /package/{components → lib/components}/Icons/WordDocument.d.ts +0 -0
- /package/{components → lib/components}/Icons/WorkSuitcase.d.ts +0 -0
- /package/{components → lib/components}/Icons/X.d.ts +0 -0
- /package/{components → lib/components}/Icons/XOutline.d.ts +0 -0
- /package/{components → lib/components}/Icons/XmlFile.d.ts +0 -0
- /package/{components → lib/components}/Icons/YouTube.d.ts +0 -0
- /package/{components → lib/components}/Icons/Zoom.d.ts +0 -0
- /package/{components → lib/components}/Illustration/Illustration.d.ts +0 -0
- /package/{components/Label/Label.test.d.ts → lib/components/Illustration/Illustration.test.d.ts} +0 -0
- /package/{components → lib/components}/Illustration/index.d.ts +0 -0
- /package/{components → lib/components}/Illustration/utils.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/BabyMobile.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/BabyMobileMedium.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/Child.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/ChildMedium.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/Doctor.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/DoctorMedium.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/DoctorSmall.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/FacialRecognitionFingerprint.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/FacialRecognitionFingerprintMedium.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/GiveBabyFood.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/GiveBabyFoodMedium.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/HealthcarePersonnel.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/HealthcarePersonnelMedium.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/HealthcarePersonnelSmall.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/IllustrationNames.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/ReadLetters.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/ReadLettersMedium.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/Stroller.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/StrollerMedium.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/Support2.d.ts +0 -0
- /package/{components → lib/components}/Illustrations/Support2Medium.d.ts +0 -0
- /package/{components → lib/components}/InfoTeaser/InfoTeaser.d.ts +0 -0
- /package/{components/LazyIcon/LazyIcon.test.d.ts → lib/components/InfoTeaser/InfoTeaser.test.d.ts} +0 -0
- /package/{components → lib/components}/InfoTeaser/index.d.ts +0 -0
- /package/{components → lib/components}/InfoTeaser/resourceHelper.d.ts +0 -0
- /package/{components → lib/components}/InfoTeaser/styles.module.scss +0 -0
- /package/{components → lib/components}/InfoTeaser/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Input/Input.d.ts +0 -0
- /package/{components/LazyIllustration/LazyIllustration.test.d.ts → lib/components/Input/Input.test.d.ts} +0 -0
- /package/{components → lib/components}/Input/index.d.ts +0 -0
- /package/{components → lib/components}/Input/styles.module.scss +0 -0
- /package/{components → lib/components}/Input/styles.module.scss.d.ts +0 -0
- /package/{components/LinkList/LinkList.test.d.ts → lib/components/Label/Label.test.d.ts} +0 -0
- /package/{components → lib/components}/Label/SubLabel.d.ts +0 -0
- /package/{components → lib/components}/Label/index.d.ts +0 -0
- /package/{components → lib/components}/Label/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/LazyIcon/ErrorBoundary.d.ts +0 -0
- /package/{components → lib/components}/LazyIcon/LazyIcon.d.ts +0 -0
- /package/{components/List/List.test.d.ts → lib/components/LazyIcon/LazyIcon.test.d.ts} +0 -0
- /package/{components → lib/components}/LazyIcon/index.d.ts +0 -0
- /package/{components → lib/components}/LazyIcon/utils.d.ts +0 -0
- /package/{components → lib/components}/LazyIllustration/LazyIllustration.d.ts +0 -0
- /package/{components/Loader/Loader.test.d.ts → lib/components/LazyIllustration/LazyIllustration.test.d.ts} +0 -0
- /package/{components → lib/components}/LazyIllustration/index.d.ts +0 -0
- /package/{components → lib/components}/LinkList/LinkList.d.ts +0 -0
- /package/{components/Logo/Logo.test.d.ts → lib/components/LinkList/LinkList.test.d.ts} +0 -0
- /package/{components → lib/components}/LinkList/index.d.ts +0 -0
- /package/{components → lib/components}/List/List.d.ts +0 -0
- /package/{components/MaxCharacters/MaxCharacters.test.d.ts → lib/components/List/List.test.d.ts} +0 -0
- /package/{components → lib/components}/List/index.d.ts +0 -0
- /package/{components → lib/components}/List/stories.module.scss +0 -0
- /package/{components → lib/components}/List/stories.module.scss.d.ts +0 -0
- /package/{components → lib/components}/List/styles.module.scss +0 -0
- /package/{components → lib/components}/List/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/ListEditMode/ListEditMode.d.ts +0 -0
- /package/{components → lib/components}/ListEditMode/index.d.ts +0 -0
- /package/{components → lib/components}/ListEditMode/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Loader/Loader.d.ts +0 -0
- /package/{components/Modal/Modal.test.d.ts → lib/components/Loader/Loader.test.d.ts} +0 -0
- /package/{components → lib/components}/Loader/index.d.ts +0 -0
- /package/{components → lib/components}/Loader/styles.module.scss +0 -0
- /package/{components → lib/components}/Loader/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Logo/Logo.d.ts +0 -0
- /package/{components/NotificationPanel/NotificationPanel.test.d.ts → lib/components/Logo/Logo.test.d.ts} +0 -0
- /package/{components → lib/components}/Logo/index.d.ts +0 -0
- /package/{components → lib/components}/MaxCharacters/MaxCharacters.d.ts +0 -0
- /package/{components/Panel/Panel.test.d.ts → lib/components/MaxCharacters/MaxCharacters.test.d.ts} +0 -0
- /package/{components → lib/components}/MaxCharacters/styles.module.scss +0 -0
- /package/{components → lib/components}/MaxCharacters/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Mittens/styles.module.scss +0 -0
- /package/{components → lib/components}/Mittens/styles.module.scss.d.ts +0 -0
- /package/{components/PanelList/PanelList.test.d.ts → lib/components/Modal/Modal.test.d.ts} +0 -0
- /package/{components → lib/components}/Modal/index.d.ts +0 -0
- /package/{components → lib/components}/NotificationPanel/NotificationPanel.d.ts +0 -0
- /package/{components/PopOver/PopOver.test.d.ts → lib/components/NotificationPanel/NotificationPanel.test.d.ts} +0 -0
- /package/{components → lib/components}/NotificationPanel/index.d.ts +0 -0
- /package/{components → lib/components}/NotificationPanel/styles.module.scss.d.ts +0 -0
- /package/{components/Progressbar/Progressbar.test.d.ts → lib/components/Panel/Panel.test.d.ts} +0 -0
- /package/{components → lib/components}/Panel/PanelExamples.d.ts +0 -0
- /package/{components → lib/components}/Panel/PanelTitle/PanelTitle.d.ts +0 -0
- /package/{components → lib/components}/Panel/PanelTitle/index.d.ts +0 -0
- /package/{components → lib/components}/Panel/PanelTitle/styles.module.scss +0 -0
- /package/{components → lib/components}/Panel/PanelTitle/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Panel/Paneldocs.d.ts +0 -0
- /package/{components → lib/components}/Panel/index.d.ts +0 -0
- /package/{components → lib/components}/Panel/resourceHelper.d.ts +0 -0
- /package/{components → lib/components}/Panel/styles.module.scss +0 -0
- /package/{components → lib/components}/Panel/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/PanelList/PanelList.d.ts +0 -0
- /package/{components/PromoPanel/PromoPanel.test.d.ts → lib/components/PanelList/PanelList.test.d.ts} +0 -0
- /package/{components → lib/components}/PanelList/index.d.ts +0 -0
- /package/{components → lib/components}/PanelList/styles.module.scss +0 -0
- /package/{components → lib/components}/PanelList/styles.module.scss.d.ts +0 -0
- /package/{components/RadioButton/RadioButton.test.d.ts → lib/components/PanelListOld/PanelListOld.test.d.ts} +0 -0
- /package/{components/Select/Select.test.d.ts → lib/components/PanelOld/PanelOld.test.d.ts} +0 -0
- /package/{components → lib/components}/PopMenu/PopMenu.test.d.ts +0 -0
- /package/{components → lib/components}/PopMenu/index.d.ts +0 -0
- /package/{components → lib/components}/PopMenu/story.module.scss +0 -0
- /package/{components → lib/components}/PopMenu/story.module.scss.d.ts +0 -0
- /package/{components → lib/components}/PopOver/PopOver.d.ts +0 -0
- /package/{components/ServiceMessage/ServiceMessage.test.d.ts → lib/components/PopOver/PopOver.test.d.ts} +0 -0
- /package/{components → lib/components}/PopOver/index.d.ts +0 -0
- /package/{components → lib/components}/PopOver/styles.module.scss +0 -0
- /package/{components → lib/components}/PopOver/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/PopOver/utils.d.ts +0 -0
- /package/{components → lib/components}/Portal/index.d.ts +0 -0
- /package/{components → lib/components}/Progressbar/Progressbar.d.ts +0 -0
- /package/{components/SharingStatus/SharingStatus.test.d.ts → lib/components/Progressbar/Progressbar.test.d.ts} +0 -0
- /package/{components → lib/components}/Progressbar/index.d.ts +0 -0
- /package/{components → lib/components}/Progressbar/styles.module.scss +0 -0
- /package/{components → lib/components}/Progressbar/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/PromoPanel/PromoPanel.d.ts +0 -0
- /package/{components/Slider/Slider.test.d.ts → lib/components/PromoPanel/PromoPanel.test.d.ts} +0 -0
- /package/{components → lib/components}/PromoPanel/index.d.ts +0 -0
- /package/{components → lib/components}/PromoPanel/styles.module.scss +0 -0
- /package/{components → lib/components}/PromoPanel/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/RadioButton/RadioButton.d.ts +0 -0
- /package/{components/Spacer/Spacer.test.d.ts → lib/components/RadioButton/RadioButton.test.d.ts} +0 -0
- /package/{components → lib/components}/RadioButton/index.d.ts +0 -0
- /package/{components → lib/components}/Select/Select.d.ts +0 -0
- /package/{components/StatusDot/StatusDot.test.d.ts → lib/components/Select/Select.test.d.ts} +0 -0
- /package/{components → lib/components}/Select/index.d.ts +0 -0
- /package/{components → lib/components}/Select/styles.module.scss +0 -0
- /package/{components → lib/components}/Select/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/ServiceMessage/ServiceMessage.d.ts +0 -0
- /package/{components/Step/Step.test.d.ts → lib/components/ServiceMessage/ServiceMessage.test.d.ts} +0 -0
- /package/{components → lib/components}/ServiceMessage/index.d.ts +0 -0
- /package/{components → lib/components}/ServiceMessage/styles.module.scss +0 -0
- /package/{components → lib/components}/ServiceMessage/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/SharingStatus/SharingStatus.d.ts +0 -0
- /package/{components/StepButtons/StepButtons.test.d.ts → lib/components/SharingStatus/SharingStatus.test.d.ts} +0 -0
- /package/{components → lib/components}/SharingStatus/index.d.ts +0 -0
- /package/{components → lib/components}/SharingStatus/styles.module.scss +0 -0
- /package/{components → lib/components}/SharingStatus/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Slider/Slider.d.ts +0 -0
- /package/{components/Stepper/Stepper.test.d.ts → lib/components/Slider/Slider.test.d.ts} +0 -0
- /package/{components → lib/components}/Slider/index.d.ts +0 -0
- /package/{components → lib/components}/Slider/styles.module.scss +0 -0
- /package/{components → lib/components}/Slider/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Spacer/Spacer.d.ts +0 -0
- /package/{components/StickyNote/StickyNote.test.d.ts → lib/components/Spacer/Spacer.test.d.ts} +0 -0
- /package/{components → lib/components}/Spacer/index.d.ts +0 -0
- /package/{components → lib/components}/Spacer/styles.module.scss +0 -0
- /package/{components → lib/components}/Spacer/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/StatusDot/StatusDot.d.ts +0 -0
- /package/{components/Table/Table.test.d.ts → lib/components/StatusDot/StatusDot.test.d.ts} +0 -0
- /package/{components → lib/components}/StatusDot/index.d.ts +0 -0
- /package/{components → lib/components}/StatusDot/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Step/Step.d.ts +0 -0
- /package/{components/Tabs/Tabs.test.d.ts → lib/components/Step/Step.test.d.ts} +0 -0
- /package/{components → lib/components}/Step/index.d.ts +0 -0
- /package/{components → lib/components}/Step/styles.module.scss +0 -0
- /package/{components → lib/components}/Step/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/StepButtons/StepButtons.d.ts +0 -0
- /package/{components/Tag/Tag.test.d.ts → lib/components/StepButtons/StepButtons.test.d.ts} +0 -0
- /package/{components → lib/components}/StepButtons/index.d.ts +0 -0
- /package/{components → lib/components}/StepButtons/styles.module.scss +0 -0
- /package/{components → lib/components}/StepButtons/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Stepper/Dot.d.ts +0 -0
- /package/{components → lib/components}/Stepper/DotList.d.ts +0 -0
- /package/{components → lib/components}/Stepper/Stepper.d.ts +0 -0
- /package/{components/TagList/TagList.test.d.ts → lib/components/Stepper/Stepper.test.d.ts} +0 -0
- /package/{components → lib/components}/Stepper/index.d.ts +0 -0
- /package/{components → lib/components}/Stepper/styles.module.scss +0 -0
- /package/{components → lib/components}/Stepper/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Stepper/utils.d.ts +0 -0
- /package/{components → lib/components}/StickyNote/Close.d.ts +0 -0
- /package/{components → lib/components}/StickyNote/StickyNote.d.ts +0 -0
- /package/{components/Textarea/Textarea.test.d.ts → lib/components/StickyNote/StickyNote.test.d.ts} +0 -0
- /package/{components → lib/components}/StickyNote/Triangle.d.ts +0 -0
- /package/{components → lib/components}/StickyNote/index.d.ts +0 -0
- /package/{components → lib/components}/StickyNote/styles.module.scss +0 -0
- /package/{components → lib/components}/StickyNote/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Table/Table.d.ts +0 -0
- /package/{components/Tile/Tile.test.d.ts → lib/components/Table/Table.test.d.ts} +0 -0
- /package/{components → lib/components}/Table/TableBody/TableBody.d.ts +0 -0
- /package/{components → lib/components}/Table/TableBody/index.d.ts +0 -0
- /package/{components → lib/components}/Table/TableCell/TableCell.d.ts +0 -0
- /package/{components → lib/components}/Table/TableCell/index.d.ts +0 -0
- /package/{components → lib/components}/Table/TableExpandedRow/TableExpandedRow.d.ts +0 -0
- /package/{components → lib/components}/Table/TableExpandedRow/index.d.ts +0 -0
- /package/{components → lib/components}/Table/TableExpanderCell/TableExpanderCell.d.ts +0 -0
- /package/{components → lib/components}/Table/TableExpanderCell/TableExpanderCellMobile.d.ts +0 -0
- /package/{components → lib/components}/Table/TableExpanderCell/index.d.ts +0 -0
- /package/{components → lib/components}/Table/TableHead/TableHead.d.ts +0 -0
- /package/{components → lib/components}/Table/TableHead/index.d.ts +0 -0
- /package/{components → lib/components}/Table/TableHeadCell/TableHeadCell.d.ts +0 -0
- /package/{components → lib/components}/Table/TableHeadCell/index.d.ts +0 -0
- /package/{components → lib/components}/Table/TableRow/TableRow.d.ts +0 -0
- /package/{components → lib/components}/Table/TableRow/index.d.ts +0 -0
- /package/{components → lib/components}/Table/index.d.ts +0 -0
- /package/{components → lib/components}/Table/styles.module.scss +0 -0
- /package/{components → lib/components}/Table/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Table/utils.d.ts +0 -0
- /package/{components → lib/components}/Tabs/Tab.d.ts +0 -0
- /package/{components → lib/components}/Tabs/TabList/TabChevron.d.ts +0 -0
- /package/{components → lib/components}/Tabs/TabList/TabItem.d.ts +0 -0
- /package/{components → lib/components}/Tabs/TabList/TabList.d.ts +0 -0
- /package/{components → lib/components}/Tabs/TabList/index.d.ts +0 -0
- /package/{components → lib/components}/Tabs/TabList/styles.module.scss +0 -0
- /package/{components → lib/components}/Tabs/TabList/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Tabs/TabPanel/TabPanel.d.ts +0 -0
- /package/{components → lib/components}/Tabs/TabPanel/index.d.ts +0 -0
- /package/{components → lib/components}/Tabs/TabPanel/styles.module.scss +0 -0
- /package/{components → lib/components}/Tabs/TabPanel/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Tabs/Tabs.d.ts +0 -0
- /package/{components/Title/Title.test.d.ts → lib/components/Tabs/Tabs.test.d.ts} +0 -0
- /package/{components → lib/components}/Tabs/index.d.ts +0 -0
- /package/{components → lib/components}/Tabs/resourceHelper.d.ts +0 -0
- /package/{components → lib/components}/Tabs/styles.module.scss +0 -0
- /package/{components → lib/components}/Tabs/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Tag/Tag.d.ts +0 -0
- /package/{components/Toggle/Toggle.test.d.ts → lib/components/Tag/Tag.test.d.ts} +0 -0
- /package/{components → lib/components}/Tag/index.d.ts +0 -0
- /package/{components → lib/components}/Tag/styles.module.scss +0 -0
- /package/{components → lib/components}/Tag/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/TagList/TagList.d.ts +0 -0
- /package/{components/Validation/Validation.test.d.ts → lib/components/TagList/TagList.test.d.ts} +0 -0
- /package/{components → lib/components}/TagList/index.d.ts +0 -0
- /package/{components → lib/components}/TagList/styles.module.scss +0 -0
- /package/{components → lib/components}/TagList/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Textarea/Textarea.d.ts +0 -0
- /package/{components/Validation/ValidationSummary.test.d.ts → lib/components/Textarea/Textarea.test.d.ts} +0 -0
- /package/{components → lib/components}/Textarea/index.d.ts +0 -0
- /package/{components → lib/components}/Textarea/styles.module.scss +0 -0
- /package/{components → lib/components}/Textarea/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Tile/Tile.d.ts +0 -0
- /package/{hoc/withBreakpoint/withBreakpoint.test.d.ts → lib/components/Tile/Tile.test.d.ts} +0 -0
- /package/{components → lib/components}/Tile/index.d.ts +0 -0
- /package/{components → lib/components}/Tile/styles.module.scss +0 -0
- /package/{components → lib/components}/Tile/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Title/Title.d.ts +0 -0
- /package/{utils/tests/accessibility.test.d.ts → lib/components/Title/Title.test.d.ts} +0 -0
- /package/{components → lib/components}/Title/index.d.ts +0 -0
- /package/{components → lib/components}/Title/styles.module.scss +0 -0
- /package/{components → lib/components}/Title/styles.module.scss.d.ts +0 -0
- /package/{utils/tests/deepContains.test.d.ts → lib/components/Toast/Toast.test.d.ts} +0 -0
- /package/{utils/tests/language.test.d.ts → lib/components/ToastList/ToastList.test.d.ts} +0 -0
- /package/{components → lib/components}/Toggle/Toggle.d.ts +0 -0
- /package/{utils/tests/uuid.test.d.ts → lib/components/Toggle/Toggle.test.d.ts} +0 -0
- /package/{components → lib/components}/Toggle/index.d.ts +0 -0
- /package/{components → lib/components}/Toggle/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Validation/ErrorList.d.ts +0 -0
- /package/{components → lib/components}/Validation/ErrorListItem.d.ts +0 -0
- /package/{components → lib/components}/Validation/Validation.d.ts +0 -0
- /package/{utils/tests/viewport.test.d.ts → lib/components/Validation/Validation.test.d.ts} +0 -0
- /package/{components → lib/components}/Validation/ValidationSummary.d.ts +0 -0
- /package/{components → lib/components}/Validation/index.d.ts +0 -0
- /package/{components → lib/components}/Validation/styles.module.scss +0 -0
- /package/{components → lib/components}/Validation/styles.module.scss.d.ts +0 -0
- /package/{components → lib/components}/Validation/types.d.ts +0 -0
- /package/{resources/index.d.ts → lib/currys.js} +0 -0
- /package/{docs → lib/docs}/ButtonWithModal/ButtonWithModal.d.ts +0 -0
- /package/{docs → lib/docs}/ButtonWithModal/index.d.ts +0 -0
- /package/{docs → lib/docs}/FormExample/FormExample.d.ts +0 -0
- /package/{docs → lib/docs}/FormExample/index.d.ts +0 -0
- /package/{docs → lib/docs}/GridExample/GridExample.d.ts +0 -0
- /package/{docs → lib/docs}/GridExample/index.d.ts +0 -0
- /package/{docs → lib/docs}/HelpBubbleExample/HelpBubbleExample.d.ts +0 -0
- /package/{docs → lib/docs}/HelpBubbleExample/index.d.ts +0 -0
- /package/{docs → lib/docs}/HelpTooltipExample/HelpTooltipExample.d.ts +0 -0
- /package/{docs → lib/docs}/HelpTooltipExample/index.d.ts +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-200-extralight-italic.woff +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-200-extralight-italic.woff2 +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-200-extralight.woff +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-200-extralight.woff2 +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-300-light-italic.woff +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-300-light-italic.woff2 +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-300-light.woff +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-300-light.woff2 +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-400-regular-italic.woff +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-400-regular-italic.woff2 +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-400-regular.woff +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-400-regular.woff2 +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-600-semibold-italic.woff +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-600-semibold-italic.woff2 +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-600-semibold.woff +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-600-semibold.woff2 +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-700-bold-italic.woff +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-700-bold-italic.woff2 +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-700-bold.woff +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-700-bold.woff2 +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-900-black-italic.woff +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-900-black-italic.woff2 +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-900-black.woff +0 -0
- /package/{fonts → lib/fonts}/source-sans-pro-900-black.woff2 +0 -0
- /package/{hoc → lib/hoc}/withBreakpoint/index.d.ts +0 -0
- /package/{hoc → lib/hoc}/withBreakpoint/withBreakpoint.d.ts +0 -0
- /package/{hooks → lib/hooks}/useBreakpoint.d.ts +0 -0
- /package/{hooks → lib/hooks}/useElementList.d.ts +0 -0
- /package/{hooks → lib/hooks}/useEventListenerState.d.ts +0 -0
- /package/{hooks → lib/hooks}/useExpand.d.ts +0 -0
- /package/{hooks → lib/hooks}/useFocusToggle.d.ts +0 -0
- /package/{hooks → lib/hooks}/useFocusTrap.d.ts +0 -0
- /package/{hooks → lib/hooks}/useFocusableElements.d.ts +0 -0
- /package/{hooks → lib/hooks}/useIcons.d.ts +0 -0
- /package/{hooks → lib/hooks}/useIdWithFallback.d.ts +0 -0
- /package/{hooks → lib/hooks}/useIntersectionObserver.d.ts +0 -0
- /package/{hooks → lib/hooks}/useInterval.d.ts +0 -0
- /package/{hooks → lib/hooks}/useIsMobileBreakpoint.d.ts +0 -0
- /package/{hooks → lib/hooks}/useIsServerSide.d.ts +0 -0
- /package/{hooks → lib/hooks}/useIsVisible.d.ts +0 -0
- /package/{hooks → lib/hooks}/useKeyboardEvent.d.ts +0 -0
- /package/{hooks → lib/hooks}/useLayoutEvent.d.ts +0 -0
- /package/{hooks → lib/hooks}/useOutsideEvent.d.ts +0 -0
- /package/{hooks → lib/hooks}/usePrevious.d.ts +0 -0
- /package/{hooks → lib/hooks}/usePseudoClasses.d.ts +0 -0
- /package/{hooks → lib/hooks}/useResizeObserver.d.ts +0 -0
- /package/{hooks → lib/hooks}/useReturnFocusOnUnmount.d.ts +0 -0
- /package/{hooks → lib/hooks}/useRovingFocus.d.ts +0 -0
- /package/{hooks → lib/hooks}/useSize.d.ts +0 -0
- /package/{hooks → lib/hooks}/useToggle.d.ts +0 -0
- /package/{hooks → lib/hooks}/usestopPropagation.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.ArticleTeaser.en-GB.json.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.ArticleTeaser.nb-NO.json.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.Drawer.en-GB.json.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.Drawer.nb-NO.json.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.Dropdown.en-GB.json.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.Dropdown.nb-NO.json.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.FavoriteButton.nb-NO.json.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.HelpBubble.nb-NO.json.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.HelpDrawer.nb-NO.json.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.InfoTeaser.en-GB.json.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.InfoTeaser.nb-NO.json.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.Panel.en-GB.json.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.Panel.nb-NO.json.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.Tabs.en-GB.json.d.ts +0 -0
- /package/{resources → lib/resources}/HN.Designsystem.Tabs.nb-NO.json.d.ts +0 -0
- /package/{utils/tests/setup-test.d.ts → lib/src.js} +0 -0
- /package/{theme → lib/theme}/currys/color.d.ts +0 -0
- /package/{theme → lib/theme}/currys/index.d.ts +0 -0
- /package/{theme → lib/theme}/currys/spacing.d.ts +0 -0
- /package/{theme → lib/theme}/grid.d.ts +0 -0
- /package/{theme → lib/theme}/index.d.ts +0 -0
- /package/{theme → lib/theme}/palette.d.ts +0 -0
- /package/{theme → lib/theme}/spacers.d.ts +0 -0
- /package/{utils → lib/utils}/accessibility.d.ts +0 -0
- /package/{utils → lib/utils}/component.d.ts +0 -0
- /package/{utils → lib/utils}/debounce.d.ts +0 -0
- /package/{utils → lib/utils}/deepContains.d.ts +0 -0
- /package/{utils → lib/utils}/device.d.ts +0 -0
- /package/{utils → lib/utils}/environment.d.ts +0 -0
- /package/{utils → lib/utils}/focus.d.ts +0 -0
- /package/{utils → lib/utils}/language.d.ts +0 -0
- /package/{utils → lib/utils}/loremtext.d.ts +0 -0
- /package/{utils → lib/utils}/mobile.d.ts +0 -0
- /package/{utils → lib/utils}/refs.d.ts +0 -0
- /package/{utils → lib/utils}/scroll.d.ts +0 -0
- /package/{utils → lib/utils}/uuid.d.ts +0 -0
- /package/{utils → lib/utils}/viewport.d.ts +0 -0
|
@@ -0,0 +1,3550 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { useLayoutEffect } from "react";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import * as ReactDOM from "react-dom";
|
|
5
|
+
function hasWindow() {
|
|
6
|
+
return typeof window !== "undefined";
|
|
7
|
+
}
|
|
8
|
+
function getNodeName(node) {
|
|
9
|
+
if (isNode(node)) return (node.nodeName || "").toLowerCase();
|
|
10
|
+
return "#document";
|
|
11
|
+
}
|
|
12
|
+
function getWindow(node) {
|
|
13
|
+
var _node$ownerDocument;
|
|
14
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
15
|
+
}
|
|
16
|
+
function getDocumentElement(node) {
|
|
17
|
+
var _ref;
|
|
18
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
19
|
+
}
|
|
20
|
+
function isNode(value) {
|
|
21
|
+
if (!hasWindow()) return false;
|
|
22
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
23
|
+
}
|
|
24
|
+
function isElement(value) {
|
|
25
|
+
if (!hasWindow()) return false;
|
|
26
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
27
|
+
}
|
|
28
|
+
function isHTMLElement(value) {
|
|
29
|
+
if (!hasWindow()) return false;
|
|
30
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
31
|
+
}
|
|
32
|
+
function isShadowRoot(value) {
|
|
33
|
+
if (!hasWindow() || typeof ShadowRoot === "undefined") return false;
|
|
34
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
35
|
+
}
|
|
36
|
+
var invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
37
|
+
function isOverflowElement(element) {
|
|
38
|
+
const { overflow, overflowX, overflowY, display } = getComputedStyle$1(element);
|
|
39
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
|
40
|
+
}
|
|
41
|
+
var tableElements = /* @__PURE__ */ new Set([
|
|
42
|
+
"table",
|
|
43
|
+
"td",
|
|
44
|
+
"th"
|
|
45
|
+
]);
|
|
46
|
+
function isTableElement(element) {
|
|
47
|
+
return tableElements.has(getNodeName(element));
|
|
48
|
+
}
|
|
49
|
+
var topLayerSelectors = [":popover-open", ":modal"];
|
|
50
|
+
function isTopLayer(element) {
|
|
51
|
+
return topLayerSelectors.some((selector) => {
|
|
52
|
+
try {
|
|
53
|
+
return element.matches(selector);
|
|
54
|
+
} catch (_e) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
var transformProperties = [
|
|
60
|
+
"transform",
|
|
61
|
+
"translate",
|
|
62
|
+
"scale",
|
|
63
|
+
"rotate",
|
|
64
|
+
"perspective"
|
|
65
|
+
];
|
|
66
|
+
var willChangeValues = [
|
|
67
|
+
"transform",
|
|
68
|
+
"translate",
|
|
69
|
+
"scale",
|
|
70
|
+
"rotate",
|
|
71
|
+
"perspective",
|
|
72
|
+
"filter"
|
|
73
|
+
];
|
|
74
|
+
var containValues = [
|
|
75
|
+
"paint",
|
|
76
|
+
"layout",
|
|
77
|
+
"strict",
|
|
78
|
+
"content"
|
|
79
|
+
];
|
|
80
|
+
function isContainingBlock(elementOrCss) {
|
|
81
|
+
const webkit = isWebKit();
|
|
82
|
+
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
83
|
+
return transformProperties.some((value) => css[value] ? css[value] !== "none" : false) || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || willChangeValues.some((value) => (css.willChange || "").includes(value)) || containValues.some((value) => (css.contain || "").includes(value));
|
|
84
|
+
}
|
|
85
|
+
function getContainingBlock(element) {
|
|
86
|
+
let currentNode = getParentNode(element);
|
|
87
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
88
|
+
if (isContainingBlock(currentNode)) return currentNode;
|
|
89
|
+
else if (isTopLayer(currentNode)) return null;
|
|
90
|
+
currentNode = getParentNode(currentNode);
|
|
91
|
+
}
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
function isWebKit() {
|
|
95
|
+
if (typeof CSS === "undefined" || !CSS.supports) return false;
|
|
96
|
+
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
97
|
+
}
|
|
98
|
+
var lastTraversableNodeNames = /* @__PURE__ */ new Set([
|
|
99
|
+
"html",
|
|
100
|
+
"body",
|
|
101
|
+
"#document"
|
|
102
|
+
]);
|
|
103
|
+
function isLastTraversableNode(node) {
|
|
104
|
+
return lastTraversableNodeNames.has(getNodeName(node));
|
|
105
|
+
}
|
|
106
|
+
function getComputedStyle$1(element) {
|
|
107
|
+
return getWindow(element).getComputedStyle(element);
|
|
108
|
+
}
|
|
109
|
+
function getNodeScroll(element) {
|
|
110
|
+
if (isElement(element)) return {
|
|
111
|
+
scrollLeft: element.scrollLeft,
|
|
112
|
+
scrollTop: element.scrollTop
|
|
113
|
+
};
|
|
114
|
+
return {
|
|
115
|
+
scrollLeft: element.scrollX,
|
|
116
|
+
scrollTop: element.scrollY
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function getParentNode(node) {
|
|
120
|
+
if (getNodeName(node) === "html") return node;
|
|
121
|
+
const result = node.assignedSlot || node.parentNode || isShadowRoot(node) && node.host || getDocumentElement(node);
|
|
122
|
+
return isShadowRoot(result) ? result.host : result;
|
|
123
|
+
}
|
|
124
|
+
function getNearestOverflowAncestor(node) {
|
|
125
|
+
const parentNode = getParentNode(node);
|
|
126
|
+
if (isLastTraversableNode(parentNode)) return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
127
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) return parentNode;
|
|
128
|
+
return getNearestOverflowAncestor(parentNode);
|
|
129
|
+
}
|
|
130
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
131
|
+
var _node$ownerDocument2;
|
|
132
|
+
if (list === void 0) list = [];
|
|
133
|
+
if (traverseIframes === void 0) traverseIframes = true;
|
|
134
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
135
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
136
|
+
const win = getWindow(scrollableAncestor);
|
|
137
|
+
if (isBody) {
|
|
138
|
+
const frameElement = getFrameElement(win);
|
|
139
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
140
|
+
}
|
|
141
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
142
|
+
}
|
|
143
|
+
function getFrameElement(win) {
|
|
144
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
145
|
+
}
|
|
146
|
+
var sides = [
|
|
147
|
+
"top",
|
|
148
|
+
"right",
|
|
149
|
+
"bottom",
|
|
150
|
+
"left"
|
|
151
|
+
];
|
|
152
|
+
var min = Math.min;
|
|
153
|
+
var max = Math.max;
|
|
154
|
+
var round = Math.round;
|
|
155
|
+
var floor = Math.floor;
|
|
156
|
+
var createCoords = (v) => ({
|
|
157
|
+
x: v,
|
|
158
|
+
y: v
|
|
159
|
+
});
|
|
160
|
+
var oppositeSideMap = {
|
|
161
|
+
left: "right",
|
|
162
|
+
right: "left",
|
|
163
|
+
bottom: "top",
|
|
164
|
+
top: "bottom"
|
|
165
|
+
};
|
|
166
|
+
var oppositeAlignmentMap = {
|
|
167
|
+
start: "end",
|
|
168
|
+
end: "start"
|
|
169
|
+
};
|
|
170
|
+
function clamp(start, value, end) {
|
|
171
|
+
return max(start, min(value, end));
|
|
172
|
+
}
|
|
173
|
+
function evaluate(value, param) {
|
|
174
|
+
return typeof value === "function" ? value(param) : value;
|
|
175
|
+
}
|
|
176
|
+
function getSide(placement) {
|
|
177
|
+
return placement.split("-")[0];
|
|
178
|
+
}
|
|
179
|
+
function getAlignment(placement) {
|
|
180
|
+
return placement.split("-")[1];
|
|
181
|
+
}
|
|
182
|
+
function getOppositeAxis(axis) {
|
|
183
|
+
return axis === "x" ? "y" : "x";
|
|
184
|
+
}
|
|
185
|
+
function getAxisLength(axis) {
|
|
186
|
+
return axis === "y" ? "height" : "width";
|
|
187
|
+
}
|
|
188
|
+
var yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
189
|
+
function getSideAxis(placement) {
|
|
190
|
+
return yAxisSides.has(getSide(placement)) ? "y" : "x";
|
|
191
|
+
}
|
|
192
|
+
function getAlignmentAxis(placement) {
|
|
193
|
+
return getOppositeAxis(getSideAxis(placement));
|
|
194
|
+
}
|
|
195
|
+
function getAlignmentSides(placement, rects, rtl) {
|
|
196
|
+
if (rtl === void 0) rtl = false;
|
|
197
|
+
const alignment = getAlignment(placement);
|
|
198
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
199
|
+
const length = getAxisLength(alignmentAxis);
|
|
200
|
+
let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
|
|
201
|
+
if (rects.reference[length] > rects.floating[length]) mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
202
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
203
|
+
}
|
|
204
|
+
function getExpandedPlacements(placement) {
|
|
205
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
206
|
+
return [
|
|
207
|
+
getOppositeAlignmentPlacement(placement),
|
|
208
|
+
oppositePlacement,
|
|
209
|
+
getOppositeAlignmentPlacement(oppositePlacement)
|
|
210
|
+
];
|
|
211
|
+
}
|
|
212
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
213
|
+
return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
|
|
214
|
+
}
|
|
215
|
+
var lrPlacement = ["left", "right"];
|
|
216
|
+
var rlPlacement = ["right", "left"];
|
|
217
|
+
var tbPlacement = ["top", "bottom"];
|
|
218
|
+
var btPlacement = ["bottom", "top"];
|
|
219
|
+
function getSideList(side, isStart, rtl) {
|
|
220
|
+
switch (side) {
|
|
221
|
+
case "top":
|
|
222
|
+
case "bottom":
|
|
223
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
224
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
225
|
+
case "left":
|
|
226
|
+
case "right": return isStart ? tbPlacement : btPlacement;
|
|
227
|
+
default: return [];
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
231
|
+
const alignment = getAlignment(placement);
|
|
232
|
+
let list = getSideList(getSide(placement), direction === "start", rtl);
|
|
233
|
+
if (alignment) {
|
|
234
|
+
list = list.map((side) => side + "-" + alignment);
|
|
235
|
+
if (flipAlignment) list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
236
|
+
}
|
|
237
|
+
return list;
|
|
238
|
+
}
|
|
239
|
+
function getOppositePlacement(placement) {
|
|
240
|
+
return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
|
|
241
|
+
}
|
|
242
|
+
function expandPaddingObject(padding) {
|
|
243
|
+
return {
|
|
244
|
+
top: 0,
|
|
245
|
+
right: 0,
|
|
246
|
+
bottom: 0,
|
|
247
|
+
left: 0,
|
|
248
|
+
...padding
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
function getPaddingObject(padding) {
|
|
252
|
+
return typeof padding !== "number" ? expandPaddingObject(padding) : {
|
|
253
|
+
top: padding,
|
|
254
|
+
right: padding,
|
|
255
|
+
bottom: padding,
|
|
256
|
+
left: padding
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
function rectToClientRect(rect) {
|
|
260
|
+
const { x, y, width, height } = rect;
|
|
261
|
+
return {
|
|
262
|
+
width,
|
|
263
|
+
height,
|
|
264
|
+
top: y,
|
|
265
|
+
left: x,
|
|
266
|
+
right: x + width,
|
|
267
|
+
bottom: y + height,
|
|
268
|
+
x,
|
|
269
|
+
y
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
var candidateSelector = /* @__PURE__ */ [
|
|
273
|
+
"input:not([inert])",
|
|
274
|
+
"select:not([inert])",
|
|
275
|
+
"textarea:not([inert])",
|
|
276
|
+
"a[href]:not([inert])",
|
|
277
|
+
"button:not([inert])",
|
|
278
|
+
"[tabindex]:not(slot):not([inert])",
|
|
279
|
+
"audio[controls]:not([inert])",
|
|
280
|
+
"video[controls]:not([inert])",
|
|
281
|
+
"[contenteditable]:not([contenteditable=\"false\"]):not([inert])",
|
|
282
|
+
"details>summary:first-of-type:not([inert])",
|
|
283
|
+
"details:not([inert])"
|
|
284
|
+
].join(",");
|
|
285
|
+
var NoElement = typeof Element === "undefined";
|
|
286
|
+
var matches = NoElement ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
287
|
+
var getRootNode = !NoElement && Element.prototype.getRootNode ? function(element) {
|
|
288
|
+
var _element$getRootNode;
|
|
289
|
+
return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
|
|
290
|
+
} : function(element) {
|
|
291
|
+
return element === null || element === void 0 ? void 0 : element.ownerDocument;
|
|
292
|
+
};
|
|
293
|
+
var _isInert = function isInert(node, lookUp) {
|
|
294
|
+
var _node$getAttribute;
|
|
295
|
+
if (lookUp === void 0) lookUp = true;
|
|
296
|
+
var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, "inert");
|
|
297
|
+
return inertAtt === "" || inertAtt === "true" || lookUp && node && _isInert(node.parentNode);
|
|
298
|
+
};
|
|
299
|
+
var isContentEditable = function isContentEditable$1(node) {
|
|
300
|
+
var _node$getAttribute2;
|
|
301
|
+
var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, "contenteditable");
|
|
302
|
+
return attValue === "" || attValue === "true";
|
|
303
|
+
};
|
|
304
|
+
var getCandidates = function getCandidates$1(el, includeContainer, filter) {
|
|
305
|
+
if (_isInert(el)) return [];
|
|
306
|
+
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
307
|
+
if (includeContainer && matches.call(el, candidateSelector)) candidates.unshift(el);
|
|
308
|
+
candidates = candidates.filter(filter);
|
|
309
|
+
return candidates;
|
|
310
|
+
};
|
|
311
|
+
var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
312
|
+
var candidates = [];
|
|
313
|
+
var elementsToCheck = Array.from(elements);
|
|
314
|
+
while (elementsToCheck.length) {
|
|
315
|
+
var element = elementsToCheck.shift();
|
|
316
|
+
if (_isInert(element, false)) continue;
|
|
317
|
+
if (element.tagName === "SLOT") {
|
|
318
|
+
var assigned = element.assignedElements();
|
|
319
|
+
var nestedCandidates = _getCandidatesIteratively(assigned.length ? assigned : element.children, true, options);
|
|
320
|
+
if (options.flatten) candidates.push.apply(candidates, nestedCandidates);
|
|
321
|
+
else candidates.push({
|
|
322
|
+
scopeParent: element,
|
|
323
|
+
candidates: nestedCandidates
|
|
324
|
+
});
|
|
325
|
+
} else {
|
|
326
|
+
if (matches.call(element, candidateSelector) && options.filter(element) && (includeContainer || !elements.includes(element))) candidates.push(element);
|
|
327
|
+
var shadowRoot = element.shadowRoot || typeof options.getShadowRoot === "function" && options.getShadowRoot(element);
|
|
328
|
+
var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
|
|
329
|
+
if (shadowRoot && validShadowRoot) {
|
|
330
|
+
var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
331
|
+
if (options.flatten) candidates.push.apply(candidates, _nestedCandidates);
|
|
332
|
+
else candidates.push({
|
|
333
|
+
scopeParent: element,
|
|
334
|
+
candidates: _nestedCandidates
|
|
335
|
+
});
|
|
336
|
+
} else elementsToCheck.unshift.apply(elementsToCheck, element.children);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
return candidates;
|
|
340
|
+
};
|
|
341
|
+
var hasTabIndex = function hasTabIndex$1(node) {
|
|
342
|
+
return !isNaN(parseInt(node.getAttribute("tabindex"), 10));
|
|
343
|
+
};
|
|
344
|
+
var getTabIndex = function getTabIndex$1(node) {
|
|
345
|
+
if (!node) throw new Error("No node provided");
|
|
346
|
+
if (node.tabIndex < 0) {
|
|
347
|
+
if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) return 0;
|
|
348
|
+
}
|
|
349
|
+
return node.tabIndex;
|
|
350
|
+
};
|
|
351
|
+
var getSortOrderTabIndex = function getSortOrderTabIndex$1(node, isScope) {
|
|
352
|
+
var tabIndex = getTabIndex(node);
|
|
353
|
+
if (tabIndex < 0 && isScope && !hasTabIndex(node)) return 0;
|
|
354
|
+
return tabIndex;
|
|
355
|
+
};
|
|
356
|
+
var sortOrderedTabbables = function sortOrderedTabbables$1(a, b) {
|
|
357
|
+
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
358
|
+
};
|
|
359
|
+
var isInput = function isInput$1(node) {
|
|
360
|
+
return node.tagName === "INPUT";
|
|
361
|
+
};
|
|
362
|
+
var isHiddenInput = function isHiddenInput$1(node) {
|
|
363
|
+
return isInput(node) && node.type === "hidden";
|
|
364
|
+
};
|
|
365
|
+
var isDetailsWithSummary = function isDetailsWithSummary$1(node) {
|
|
366
|
+
return node.tagName === "DETAILS" && Array.prototype.slice.apply(node.children).some(function(child) {
|
|
367
|
+
return child.tagName === "SUMMARY";
|
|
368
|
+
});
|
|
369
|
+
};
|
|
370
|
+
var getCheckedRadio = function getCheckedRadio$1(nodes, form) {
|
|
371
|
+
for (var i = 0; i < nodes.length; i++) if (nodes[i].checked && nodes[i].form === form) return nodes[i];
|
|
372
|
+
};
|
|
373
|
+
var isTabbableRadio = function isTabbableRadio$1(node) {
|
|
374
|
+
if (!node.name) return true;
|
|
375
|
+
var radioScope = node.form || getRootNode(node);
|
|
376
|
+
var queryRadios = function queryRadios$1(name) {
|
|
377
|
+
return radioScope.querySelectorAll("input[type=\"radio\"][name=\"" + name + "\"]");
|
|
378
|
+
};
|
|
379
|
+
var radioSet;
|
|
380
|
+
if (typeof window !== "undefined" && typeof window.CSS !== "undefined" && typeof window.CSS.escape === "function") radioSet = queryRadios(window.CSS.escape(node.name));
|
|
381
|
+
else try {
|
|
382
|
+
radioSet = queryRadios(node.name);
|
|
383
|
+
} catch (err) {
|
|
384
|
+
console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", err.message);
|
|
385
|
+
return false;
|
|
386
|
+
}
|
|
387
|
+
var checked = getCheckedRadio(radioSet, node.form);
|
|
388
|
+
return !checked || checked === node;
|
|
389
|
+
};
|
|
390
|
+
var isRadio = function isRadio$1(node) {
|
|
391
|
+
return isInput(node) && node.type === "radio";
|
|
392
|
+
};
|
|
393
|
+
var isNonTabbableRadio = function isNonTabbableRadio$1(node) {
|
|
394
|
+
return isRadio(node) && !isTabbableRadio(node);
|
|
395
|
+
};
|
|
396
|
+
var isNodeAttached = function isNodeAttached$1(node) {
|
|
397
|
+
var _nodeRoot;
|
|
398
|
+
var nodeRoot = node && getRootNode(node);
|
|
399
|
+
var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
|
|
400
|
+
var attached = false;
|
|
401
|
+
if (nodeRoot && nodeRoot !== node) {
|
|
402
|
+
var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
|
|
403
|
+
attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
|
|
404
|
+
while (!attached && nodeRootHost) {
|
|
405
|
+
var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
|
|
406
|
+
nodeRoot = getRootNode(nodeRootHost);
|
|
407
|
+
nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
|
|
408
|
+
attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
return attached;
|
|
412
|
+
};
|
|
413
|
+
var isZeroArea = function isZeroArea$1(node) {
|
|
414
|
+
var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;
|
|
415
|
+
return width === 0 && height === 0;
|
|
416
|
+
};
|
|
417
|
+
var isHidden = function isHidden$1(node, _ref) {
|
|
418
|
+
var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;
|
|
419
|
+
if (displayCheck === "full-native") {
|
|
420
|
+
if ("checkVisibility" in node) return !node.checkVisibility({
|
|
421
|
+
checkOpacity: false,
|
|
422
|
+
opacityProperty: false,
|
|
423
|
+
contentVisibilityAuto: true,
|
|
424
|
+
visibilityProperty: true,
|
|
425
|
+
checkVisibilityCSS: true
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
if (getComputedStyle(node).visibility === "hidden") return true;
|
|
429
|
+
var nodeUnderDetails = matches.call(node, "details>summary:first-of-type") ? node.parentElement : node;
|
|
430
|
+
if (matches.call(nodeUnderDetails, "details:not([open]) *")) return true;
|
|
431
|
+
if (!displayCheck || displayCheck === "full" || displayCheck === "full-native" || displayCheck === "legacy-full") {
|
|
432
|
+
if (typeof getShadowRoot === "function") {
|
|
433
|
+
var originalNode = node;
|
|
434
|
+
while (node) {
|
|
435
|
+
var parentElement = node.parentElement;
|
|
436
|
+
var rootNode = getRootNode(node);
|
|
437
|
+
if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true) return isZeroArea(node);
|
|
438
|
+
else if (node.assignedSlot) node = node.assignedSlot;
|
|
439
|
+
else if (!parentElement && rootNode !== node.ownerDocument) node = rootNode.host;
|
|
440
|
+
else node = parentElement;
|
|
441
|
+
}
|
|
442
|
+
node = originalNode;
|
|
443
|
+
}
|
|
444
|
+
if (isNodeAttached(node)) return !node.getClientRects().length;
|
|
445
|
+
if (displayCheck !== "legacy-full") return true;
|
|
446
|
+
} else if (displayCheck === "non-zero-area") return isZeroArea(node);
|
|
447
|
+
return false;
|
|
448
|
+
};
|
|
449
|
+
var isDisabledFromFieldset = function isDisabledFromFieldset$1(node) {
|
|
450
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
|
|
451
|
+
var parentNode = node.parentElement;
|
|
452
|
+
while (parentNode) {
|
|
453
|
+
if (parentNode.tagName === "FIELDSET" && parentNode.disabled) {
|
|
454
|
+
for (var i = 0; i < parentNode.children.length; i++) {
|
|
455
|
+
var child = parentNode.children.item(i);
|
|
456
|
+
if (child.tagName === "LEGEND") return matches.call(parentNode, "fieldset[disabled] *") ? true : !child.contains(node);
|
|
457
|
+
}
|
|
458
|
+
return true;
|
|
459
|
+
}
|
|
460
|
+
parentNode = parentNode.parentElement;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
return false;
|
|
464
|
+
};
|
|
465
|
+
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable$1(options, node) {
|
|
466
|
+
if (node.disabled || _isInert(node) || isHiddenInput(node) || isHidden(node, options) || isDetailsWithSummary(node) || isDisabledFromFieldset(node)) return false;
|
|
467
|
+
return true;
|
|
468
|
+
};
|
|
469
|
+
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable$1(options, node) {
|
|
470
|
+
if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) return false;
|
|
471
|
+
return true;
|
|
472
|
+
};
|
|
473
|
+
var isShadowRootTabbable = function isShadowRootTabbable$1(shadowHostNode) {
|
|
474
|
+
var tabIndex = parseInt(shadowHostNode.getAttribute("tabindex"), 10);
|
|
475
|
+
if (isNaN(tabIndex) || tabIndex >= 0) return true;
|
|
476
|
+
return false;
|
|
477
|
+
};
|
|
478
|
+
var _sortByOrder = function sortByOrder(candidates) {
|
|
479
|
+
var regularTabbables = [];
|
|
480
|
+
var orderedTabbables = [];
|
|
481
|
+
candidates.forEach(function(item, i) {
|
|
482
|
+
var isScope = !!item.scopeParent;
|
|
483
|
+
var element = isScope ? item.scopeParent : item;
|
|
484
|
+
var candidateTabindex = getSortOrderTabIndex(element, isScope);
|
|
485
|
+
var elements = isScope ? _sortByOrder(item.candidates) : element;
|
|
486
|
+
if (candidateTabindex === 0) isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
487
|
+
else orderedTabbables.push({
|
|
488
|
+
documentOrder: i,
|
|
489
|
+
tabIndex: candidateTabindex,
|
|
490
|
+
item,
|
|
491
|
+
isScope,
|
|
492
|
+
content: elements
|
|
493
|
+
});
|
|
494
|
+
});
|
|
495
|
+
return orderedTabbables.sort(sortOrderedTabbables).reduce(function(acc, sortable) {
|
|
496
|
+
sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
|
|
497
|
+
return acc;
|
|
498
|
+
}, []).concat(regularTabbables);
|
|
499
|
+
};
|
|
500
|
+
var tabbable = function tabbable$1(container, options) {
|
|
501
|
+
options = options || {};
|
|
502
|
+
var candidates;
|
|
503
|
+
if (options.getShadowRoot) candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
504
|
+
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
505
|
+
flatten: false,
|
|
506
|
+
getShadowRoot: options.getShadowRoot,
|
|
507
|
+
shadowRootFilter: isShadowRootTabbable
|
|
508
|
+
});
|
|
509
|
+
else candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
510
|
+
return _sortByOrder(candidates);
|
|
511
|
+
};
|
|
512
|
+
var focusable = function focusable$1(container, options) {
|
|
513
|
+
options = options || {};
|
|
514
|
+
var candidates;
|
|
515
|
+
if (options.getShadowRoot) candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
516
|
+
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
517
|
+
flatten: true,
|
|
518
|
+
getShadowRoot: options.getShadowRoot
|
|
519
|
+
});
|
|
520
|
+
else candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
521
|
+
return candidates;
|
|
522
|
+
};
|
|
523
|
+
var isTabbable = function isTabbable$1(node, options) {
|
|
524
|
+
options = options || {};
|
|
525
|
+
if (!node) throw new Error("No node provided");
|
|
526
|
+
if (matches.call(node, candidateSelector) === false) return false;
|
|
527
|
+
return isNodeMatchingSelectorTabbable(options, node);
|
|
528
|
+
};
|
|
529
|
+
function getPlatform() {
|
|
530
|
+
const uaData = navigator.userAgentData;
|
|
531
|
+
if (uaData != null && uaData.platform) return uaData.platform;
|
|
532
|
+
return navigator.platform;
|
|
533
|
+
}
|
|
534
|
+
function getUserAgent() {
|
|
535
|
+
const uaData = navigator.userAgentData;
|
|
536
|
+
if (uaData && Array.isArray(uaData.brands)) return uaData.brands.map((_ref) => {
|
|
537
|
+
let { brand, version } = _ref;
|
|
538
|
+
return brand + "/" + version;
|
|
539
|
+
}).join(" ");
|
|
540
|
+
return navigator.userAgent;
|
|
541
|
+
}
|
|
542
|
+
function isSafari() {
|
|
543
|
+
return /apple/i.test(navigator.vendor);
|
|
544
|
+
}
|
|
545
|
+
function isAndroid() {
|
|
546
|
+
const re = /android/i;
|
|
547
|
+
return re.test(getPlatform()) || re.test(getUserAgent());
|
|
548
|
+
}
|
|
549
|
+
function isMac() {
|
|
550
|
+
return getPlatform().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
|
|
551
|
+
}
|
|
552
|
+
function isJSDOM() {
|
|
553
|
+
return getUserAgent().includes("jsdom/");
|
|
554
|
+
}
|
|
555
|
+
var FOCUSABLE_ATTRIBUTE$1 = "data-floating-ui-focusable";
|
|
556
|
+
var TYPEABLE_SELECTOR = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
557
|
+
function activeElement(doc) {
|
|
558
|
+
let activeElement$1 = doc.activeElement;
|
|
559
|
+
while (((_activeElement = activeElement$1) == null || (_activeElement = _activeElement.shadowRoot) == null ? void 0 : _activeElement.activeElement) != null) {
|
|
560
|
+
var _activeElement;
|
|
561
|
+
activeElement$1 = activeElement$1.shadowRoot.activeElement;
|
|
562
|
+
}
|
|
563
|
+
return activeElement$1;
|
|
564
|
+
}
|
|
565
|
+
function contains(parent, child) {
|
|
566
|
+
if (!parent || !child) return false;
|
|
567
|
+
const rootNode = child.getRootNode == null ? void 0 : child.getRootNode();
|
|
568
|
+
if (parent.contains(child)) return true;
|
|
569
|
+
if (rootNode && isShadowRoot(rootNode)) {
|
|
570
|
+
let next = child;
|
|
571
|
+
while (next) {
|
|
572
|
+
if (parent === next) return true;
|
|
573
|
+
next = next.parentNode || next.host;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
return false;
|
|
577
|
+
}
|
|
578
|
+
function getTarget(event) {
|
|
579
|
+
if ("composedPath" in event) return event.composedPath()[0];
|
|
580
|
+
return event.target;
|
|
581
|
+
}
|
|
582
|
+
function isEventTargetWithin(event, node) {
|
|
583
|
+
if (node == null) return false;
|
|
584
|
+
if ("composedPath" in event) return event.composedPath().includes(node);
|
|
585
|
+
const e = event;
|
|
586
|
+
return e.target != null && node.contains(e.target);
|
|
587
|
+
}
|
|
588
|
+
function isRootElement(element) {
|
|
589
|
+
return element.matches("html,body");
|
|
590
|
+
}
|
|
591
|
+
function getDocument(node) {
|
|
592
|
+
return (node == null ? void 0 : node.ownerDocument) || document;
|
|
593
|
+
}
|
|
594
|
+
function isTypeableElement(element) {
|
|
595
|
+
return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR);
|
|
596
|
+
}
|
|
597
|
+
function isTypeableCombobox(element) {
|
|
598
|
+
if (!element) return false;
|
|
599
|
+
return element.getAttribute("role") === "combobox" && isTypeableElement(element);
|
|
600
|
+
}
|
|
601
|
+
function matchesFocusVisible(element) {
|
|
602
|
+
if (!element || isJSDOM()) return true;
|
|
603
|
+
try {
|
|
604
|
+
return element.matches(":focus-visible");
|
|
605
|
+
} catch (_e) {
|
|
606
|
+
return true;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
function getFloatingFocusElement(floatingElement) {
|
|
610
|
+
if (!floatingElement) return null;
|
|
611
|
+
return floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE$1) ? floatingElement : floatingElement.querySelector("[" + FOCUSABLE_ATTRIBUTE$1 + "]") || floatingElement;
|
|
612
|
+
}
|
|
613
|
+
function getNodeChildren(nodes, id, onlyOpenChildren) {
|
|
614
|
+
if (onlyOpenChildren === void 0) onlyOpenChildren = true;
|
|
615
|
+
return nodes.filter((node) => {
|
|
616
|
+
var _node$context;
|
|
617
|
+
return node.parentId === id && (!onlyOpenChildren || ((_node$context = node.context) == null ? void 0 : _node$context.open));
|
|
618
|
+
}).flatMap((child) => [child, ...getNodeChildren(nodes, child.id, onlyOpenChildren)]);
|
|
619
|
+
}
|
|
620
|
+
function getNodeAncestors(nodes, id) {
|
|
621
|
+
var _nodes$find;
|
|
622
|
+
let allAncestors = [];
|
|
623
|
+
let currentParentId = (_nodes$find = nodes.find((node) => node.id === id)) == null ? void 0 : _nodes$find.parentId;
|
|
624
|
+
while (currentParentId) {
|
|
625
|
+
const currentNode = nodes.find((node) => node.id === currentParentId);
|
|
626
|
+
currentParentId = currentNode == null ? void 0 : currentNode.parentId;
|
|
627
|
+
if (currentNode) allAncestors = allAncestors.concat(currentNode);
|
|
628
|
+
}
|
|
629
|
+
return allAncestors;
|
|
630
|
+
}
|
|
631
|
+
function stopEvent(event) {
|
|
632
|
+
event.preventDefault();
|
|
633
|
+
event.stopPropagation();
|
|
634
|
+
}
|
|
635
|
+
function isReactEvent(event) {
|
|
636
|
+
return "nativeEvent" in event;
|
|
637
|
+
}
|
|
638
|
+
function isVirtualClick(event) {
|
|
639
|
+
if (event.mozInputSource === 0 && event.isTrusted) return true;
|
|
640
|
+
if (isAndroid() && event.pointerType) return event.type === "click" && event.buttons === 1;
|
|
641
|
+
return event.detail === 0 && !event.pointerType;
|
|
642
|
+
}
|
|
643
|
+
function isVirtualPointerEvent(event) {
|
|
644
|
+
if (isJSDOM()) return false;
|
|
645
|
+
return !isAndroid() && event.width === 0 && event.height === 0 || isAndroid() && event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse" || event.width < 1 && event.height < 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "touch";
|
|
646
|
+
}
|
|
647
|
+
function isMouseLikePointerType(pointerType, strict) {
|
|
648
|
+
const values = ["mouse", "pen"];
|
|
649
|
+
if (!strict) values.push("", void 0);
|
|
650
|
+
return values.includes(pointerType);
|
|
651
|
+
}
|
|
652
|
+
var index = typeof document !== "undefined" ? useLayoutEffect : function noop() {};
|
|
653
|
+
var SafeReact$1 = { ...React$1 };
|
|
654
|
+
function useLatestRef(value) {
|
|
655
|
+
const ref = React$1.useRef(value);
|
|
656
|
+
index(() => {
|
|
657
|
+
ref.current = value;
|
|
658
|
+
});
|
|
659
|
+
return ref;
|
|
660
|
+
}
|
|
661
|
+
var useSafeInsertionEffect = SafeReact$1.useInsertionEffect || ((fn) => fn());
|
|
662
|
+
function useEffectEvent(callback) {
|
|
663
|
+
const ref = React$1.useRef(() => {
|
|
664
|
+
if (process.env.NODE_ENV !== "production") throw new Error("Cannot call an event handler while rendering.");
|
|
665
|
+
});
|
|
666
|
+
useSafeInsertionEffect(() => {
|
|
667
|
+
ref.current = callback;
|
|
668
|
+
});
|
|
669
|
+
return React$1.useCallback(function() {
|
|
670
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
671
|
+
return ref.current == null ? void 0 : ref.current(...args);
|
|
672
|
+
}, []);
|
|
673
|
+
}
|
|
674
|
+
var getTabbableOptions = () => ({
|
|
675
|
+
getShadowRoot: true,
|
|
676
|
+
displayCheck: typeof ResizeObserver === "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
677
|
+
});
|
|
678
|
+
function getTabbableIn(container, dir) {
|
|
679
|
+
const list = tabbable(container, getTabbableOptions());
|
|
680
|
+
const len = list.length;
|
|
681
|
+
if (len === 0) return;
|
|
682
|
+
const active = activeElement(getDocument(container));
|
|
683
|
+
const index$2 = list.indexOf(active);
|
|
684
|
+
return list[index$2 === -1 ? dir === 1 ? 0 : len - 1 : index$2 + dir];
|
|
685
|
+
}
|
|
686
|
+
function getNextTabbable(referenceElement) {
|
|
687
|
+
return getTabbableIn(getDocument(referenceElement).body, 1) || referenceElement;
|
|
688
|
+
}
|
|
689
|
+
function getPreviousTabbable(referenceElement) {
|
|
690
|
+
return getTabbableIn(getDocument(referenceElement).body, -1) || referenceElement;
|
|
691
|
+
}
|
|
692
|
+
function isOutsideEvent(event, container) {
|
|
693
|
+
const containerElement = container || event.currentTarget;
|
|
694
|
+
const relatedTarget = event.relatedTarget;
|
|
695
|
+
return !relatedTarget || !contains(containerElement, relatedTarget);
|
|
696
|
+
}
|
|
697
|
+
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
698
|
+
let { reference, floating } = _ref;
|
|
699
|
+
const sideAxis = getSideAxis(placement);
|
|
700
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
701
|
+
const alignLength = getAxisLength(alignmentAxis);
|
|
702
|
+
const side = getSide(placement);
|
|
703
|
+
const isVertical = sideAxis === "y";
|
|
704
|
+
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
705
|
+
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
706
|
+
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
707
|
+
let coords;
|
|
708
|
+
switch (side) {
|
|
709
|
+
case "top":
|
|
710
|
+
coords = {
|
|
711
|
+
x: commonX,
|
|
712
|
+
y: reference.y - floating.height
|
|
713
|
+
};
|
|
714
|
+
break;
|
|
715
|
+
case "bottom":
|
|
716
|
+
coords = {
|
|
717
|
+
x: commonX,
|
|
718
|
+
y: reference.y + reference.height
|
|
719
|
+
};
|
|
720
|
+
break;
|
|
721
|
+
case "right":
|
|
722
|
+
coords = {
|
|
723
|
+
x: reference.x + reference.width,
|
|
724
|
+
y: commonY
|
|
725
|
+
};
|
|
726
|
+
break;
|
|
727
|
+
case "left":
|
|
728
|
+
coords = {
|
|
729
|
+
x: reference.x - floating.width,
|
|
730
|
+
y: commonY
|
|
731
|
+
};
|
|
732
|
+
break;
|
|
733
|
+
default: coords = {
|
|
734
|
+
x: reference.x,
|
|
735
|
+
y: reference.y
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
switch (getAlignment(placement)) {
|
|
739
|
+
case "start":
|
|
740
|
+
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
741
|
+
break;
|
|
742
|
+
case "end":
|
|
743
|
+
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
744
|
+
break;
|
|
745
|
+
}
|
|
746
|
+
return coords;
|
|
747
|
+
}
|
|
748
|
+
var computePosition$1 = async (reference, floating, config) => {
|
|
749
|
+
const { placement = "bottom", strategy = "absolute", middleware = [], platform: platform$1 } = config;
|
|
750
|
+
const validMiddleware = middleware.filter(Boolean);
|
|
751
|
+
const rtl = await (platform$1.isRTL == null ? void 0 : platform$1.isRTL(floating));
|
|
752
|
+
let rects = await platform$1.getElementRects({
|
|
753
|
+
reference,
|
|
754
|
+
floating,
|
|
755
|
+
strategy
|
|
756
|
+
});
|
|
757
|
+
let { x, y } = computeCoordsFromPlacement(rects, placement, rtl);
|
|
758
|
+
let statefulPlacement = placement;
|
|
759
|
+
let middlewareData = {};
|
|
760
|
+
let resetCount = 0;
|
|
761
|
+
for (let i = 0; i < validMiddleware.length; i++) {
|
|
762
|
+
const { name, fn } = validMiddleware[i];
|
|
763
|
+
const { x: nextX, y: nextY, data, reset } = await fn({
|
|
764
|
+
x,
|
|
765
|
+
y,
|
|
766
|
+
initialPlacement: placement,
|
|
767
|
+
placement: statefulPlacement,
|
|
768
|
+
strategy,
|
|
769
|
+
middlewareData,
|
|
770
|
+
rects,
|
|
771
|
+
platform: platform$1,
|
|
772
|
+
elements: {
|
|
773
|
+
reference,
|
|
774
|
+
floating
|
|
775
|
+
}
|
|
776
|
+
});
|
|
777
|
+
x = nextX != null ? nextX : x;
|
|
778
|
+
y = nextY != null ? nextY : y;
|
|
779
|
+
middlewareData = {
|
|
780
|
+
...middlewareData,
|
|
781
|
+
[name]: {
|
|
782
|
+
...middlewareData[name],
|
|
783
|
+
...data
|
|
784
|
+
}
|
|
785
|
+
};
|
|
786
|
+
if (reset && resetCount <= 50) {
|
|
787
|
+
resetCount++;
|
|
788
|
+
if (typeof reset === "object") {
|
|
789
|
+
if (reset.placement) statefulPlacement = reset.placement;
|
|
790
|
+
if (reset.rects) rects = reset.rects === true ? await platform$1.getElementRects({
|
|
791
|
+
reference,
|
|
792
|
+
floating,
|
|
793
|
+
strategy
|
|
794
|
+
}) : reset.rects;
|
|
795
|
+
({x, y} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
796
|
+
}
|
|
797
|
+
i = -1;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
return {
|
|
801
|
+
x,
|
|
802
|
+
y,
|
|
803
|
+
placement: statefulPlacement,
|
|
804
|
+
strategy,
|
|
805
|
+
middlewareData
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
async function detectOverflow$1(state, options) {
|
|
809
|
+
var _await$platform$isEle;
|
|
810
|
+
if (options === void 0) options = {};
|
|
811
|
+
const { x, y, platform: platform$1, rects, elements, strategy } = state;
|
|
812
|
+
const { boundary = "clippingAncestors", rootBoundary = "viewport", elementContext = "floating", altBoundary = false, padding = 0 } = evaluate(options, state);
|
|
813
|
+
const paddingObject = getPaddingObject(padding);
|
|
814
|
+
const element = elements[altBoundary ? elementContext === "floating" ? "reference" : "floating" : elementContext];
|
|
815
|
+
const clippingClientRect = rectToClientRect(await platform$1.getClippingRect({
|
|
816
|
+
element: ((_await$platform$isEle = await (platform$1.isElement == null ? void 0 : platform$1.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform$1.getDocumentElement == null ? void 0 : platform$1.getDocumentElement(elements.floating)),
|
|
817
|
+
boundary,
|
|
818
|
+
rootBoundary,
|
|
819
|
+
strategy
|
|
820
|
+
}));
|
|
821
|
+
const rect = elementContext === "floating" ? {
|
|
822
|
+
x,
|
|
823
|
+
y,
|
|
824
|
+
width: rects.floating.width,
|
|
825
|
+
height: rects.floating.height
|
|
826
|
+
} : rects.reference;
|
|
827
|
+
const offsetParent = await (platform$1.getOffsetParent == null ? void 0 : platform$1.getOffsetParent(elements.floating));
|
|
828
|
+
const offsetScale = await (platform$1.isElement == null ? void 0 : platform$1.isElement(offsetParent)) ? await (platform$1.getScale == null ? void 0 : platform$1.getScale(offsetParent)) || {
|
|
829
|
+
x: 1,
|
|
830
|
+
y: 1
|
|
831
|
+
} : {
|
|
832
|
+
x: 1,
|
|
833
|
+
y: 1
|
|
834
|
+
};
|
|
835
|
+
const elementClientRect = rectToClientRect(platform$1.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform$1.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
836
|
+
elements,
|
|
837
|
+
rect,
|
|
838
|
+
offsetParent,
|
|
839
|
+
strategy
|
|
840
|
+
}) : rect);
|
|
841
|
+
return {
|
|
842
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
843
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
844
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
845
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
var arrow$2 = (options) => ({
|
|
849
|
+
name: "arrow",
|
|
850
|
+
options,
|
|
851
|
+
async fn(state) {
|
|
852
|
+
const { x, y, placement, rects, platform: platform$1, elements, middlewareData } = state;
|
|
853
|
+
const { element, padding = 0 } = evaluate(options, state) || {};
|
|
854
|
+
if (element == null) return {};
|
|
855
|
+
const paddingObject = getPaddingObject(padding);
|
|
856
|
+
const coords = {
|
|
857
|
+
x,
|
|
858
|
+
y
|
|
859
|
+
};
|
|
860
|
+
const axis = getAlignmentAxis(placement);
|
|
861
|
+
const length = getAxisLength(axis);
|
|
862
|
+
const arrowDimensions = await platform$1.getDimensions(element);
|
|
863
|
+
const isYAxis = axis === "y";
|
|
864
|
+
const minProp = isYAxis ? "top" : "left";
|
|
865
|
+
const maxProp = isYAxis ? "bottom" : "right";
|
|
866
|
+
const clientProp = isYAxis ? "clientHeight" : "clientWidth";
|
|
867
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
868
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
|
869
|
+
const arrowOffsetParent = await (platform$1.getOffsetParent == null ? void 0 : platform$1.getOffsetParent(element));
|
|
870
|
+
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
871
|
+
if (!clientSize || !await (platform$1.isElement == null ? void 0 : platform$1.isElement(arrowOffsetParent))) clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
872
|
+
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
873
|
+
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
874
|
+
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
875
|
+
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
876
|
+
const min$1 = minPadding;
|
|
877
|
+
const max$1 = clientSize - arrowDimensions[length] - maxPadding;
|
|
878
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
879
|
+
const offset$3 = clamp(min$1, center, max$1);
|
|
880
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset$3 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
881
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max$1 : 0;
|
|
882
|
+
return {
|
|
883
|
+
[axis]: coords[axis] + alignmentOffset,
|
|
884
|
+
data: {
|
|
885
|
+
[axis]: offset$3,
|
|
886
|
+
centerOffset: center - offset$3 - alignmentOffset,
|
|
887
|
+
...shouldAddOffset && { alignmentOffset }
|
|
888
|
+
},
|
|
889
|
+
reset: shouldAddOffset
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
});
|
|
893
|
+
var flip$2 = function(options) {
|
|
894
|
+
if (options === void 0) options = {};
|
|
895
|
+
return {
|
|
896
|
+
name: "flip",
|
|
897
|
+
options,
|
|
898
|
+
async fn(state) {
|
|
899
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
|
900
|
+
const { placement, middlewareData, rects, initialPlacement, platform: platform$1, elements } = state;
|
|
901
|
+
const { mainAxis: checkMainAxis = true, crossAxis: checkCrossAxis = true, fallbackPlacements: specifiedFallbackPlacements, fallbackStrategy = "bestFit", fallbackAxisSideDirection = "none", flipAlignment = true, ...detectOverflowOptions } = evaluate(options, state);
|
|
902
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) return {};
|
|
903
|
+
const side = getSide(placement);
|
|
904
|
+
const initialSideAxis = getSideAxis(initialPlacement);
|
|
905
|
+
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
906
|
+
const rtl = await (platform$1.isRTL == null ? void 0 : platform$1.isRTL(elements.floating));
|
|
907
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
908
|
+
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
|
|
909
|
+
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
910
|
+
const placements$1 = [initialPlacement, ...fallbackPlacements];
|
|
911
|
+
const overflow = await detectOverflow$1(state, detectOverflowOptions);
|
|
912
|
+
const overflows = [];
|
|
913
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
914
|
+
if (checkMainAxis) overflows.push(overflow[side]);
|
|
915
|
+
if (checkCrossAxis) {
|
|
916
|
+
const sides$1 = getAlignmentSides(placement, rects, rtl);
|
|
917
|
+
overflows.push(overflow[sides$1[0]], overflow[sides$1[1]]);
|
|
918
|
+
}
|
|
919
|
+
overflowsData = [...overflowsData, {
|
|
920
|
+
placement,
|
|
921
|
+
overflows
|
|
922
|
+
}];
|
|
923
|
+
if (!overflows.every((side$1) => side$1 <= 0)) {
|
|
924
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
|
925
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
926
|
+
const nextPlacement = placements$1[nextIndex];
|
|
927
|
+
if (nextPlacement) {
|
|
928
|
+
if (!(checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false) || overflowsData.every((d) => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) return {
|
|
929
|
+
data: {
|
|
930
|
+
index: nextIndex,
|
|
931
|
+
overflows: overflowsData
|
|
932
|
+
},
|
|
933
|
+
reset: { placement: nextPlacement }
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
937
|
+
if (!resetPlacement) switch (fallbackStrategy) {
|
|
938
|
+
case "bestFit": {
|
|
939
|
+
var _overflowsData$filter2;
|
|
940
|
+
const placement$1 = (_overflowsData$filter2 = overflowsData.filter((d) => {
|
|
941
|
+
if (hasFallbackAxisSideDirection) {
|
|
942
|
+
const currentSideAxis = getSideAxis(d.placement);
|
|
943
|
+
return currentSideAxis === initialSideAxis || currentSideAxis === "y";
|
|
944
|
+
}
|
|
945
|
+
return true;
|
|
946
|
+
}).map((d) => [d.placement, d.overflows.filter((overflow$1) => overflow$1 > 0).reduce((acc, overflow$1) => acc + overflow$1, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
947
|
+
if (placement$1) resetPlacement = placement$1;
|
|
948
|
+
break;
|
|
949
|
+
}
|
|
950
|
+
case "initialPlacement":
|
|
951
|
+
resetPlacement = initialPlacement;
|
|
952
|
+
break;
|
|
953
|
+
}
|
|
954
|
+
if (placement !== resetPlacement) return { reset: { placement: resetPlacement } };
|
|
955
|
+
}
|
|
956
|
+
return {};
|
|
957
|
+
}
|
|
958
|
+
};
|
|
959
|
+
};
|
|
960
|
+
function getSideOffsets(overflow, rect) {
|
|
961
|
+
return {
|
|
962
|
+
top: overflow.top - rect.height,
|
|
963
|
+
right: overflow.right - rect.width,
|
|
964
|
+
bottom: overflow.bottom - rect.height,
|
|
965
|
+
left: overflow.left - rect.width
|
|
966
|
+
};
|
|
967
|
+
}
|
|
968
|
+
function isAnySideFullyClipped(overflow) {
|
|
969
|
+
return sides.some((side) => overflow[side] >= 0);
|
|
970
|
+
}
|
|
971
|
+
var hide$2 = function(options) {
|
|
972
|
+
if (options === void 0) options = {};
|
|
973
|
+
return {
|
|
974
|
+
name: "hide",
|
|
975
|
+
options,
|
|
976
|
+
async fn(state) {
|
|
977
|
+
const { rects } = state;
|
|
978
|
+
const { strategy = "referenceHidden", ...detectOverflowOptions } = evaluate(options, state);
|
|
979
|
+
switch (strategy) {
|
|
980
|
+
case "referenceHidden": {
|
|
981
|
+
const offsets = getSideOffsets(await detectOverflow$1(state, {
|
|
982
|
+
...detectOverflowOptions,
|
|
983
|
+
elementContext: "reference"
|
|
984
|
+
}), rects.reference);
|
|
985
|
+
return { data: {
|
|
986
|
+
referenceHiddenOffsets: offsets,
|
|
987
|
+
referenceHidden: isAnySideFullyClipped(offsets)
|
|
988
|
+
} };
|
|
989
|
+
}
|
|
990
|
+
case "escaped": {
|
|
991
|
+
const offsets = getSideOffsets(await detectOverflow$1(state, {
|
|
992
|
+
...detectOverflowOptions,
|
|
993
|
+
altBoundary: true
|
|
994
|
+
}), rects.floating);
|
|
995
|
+
return { data: {
|
|
996
|
+
escapedOffsets: offsets,
|
|
997
|
+
escaped: isAnySideFullyClipped(offsets)
|
|
998
|
+
} };
|
|
999
|
+
}
|
|
1000
|
+
default: return {};
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
var originSides = /* @__PURE__ */ new Set(["left", "top"]);
|
|
1006
|
+
async function convertValueToCoords(state, options) {
|
|
1007
|
+
const { placement, platform: platform$1, elements } = state;
|
|
1008
|
+
const rtl = await (platform$1.isRTL == null ? void 0 : platform$1.isRTL(elements.floating));
|
|
1009
|
+
const side = getSide(placement);
|
|
1010
|
+
const alignment = getAlignment(placement);
|
|
1011
|
+
const isVertical = getSideAxis(placement) === "y";
|
|
1012
|
+
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
1013
|
+
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
1014
|
+
const rawValue = evaluate(options, state);
|
|
1015
|
+
let { mainAxis, crossAxis, alignmentAxis } = typeof rawValue === "number" ? {
|
|
1016
|
+
mainAxis: rawValue,
|
|
1017
|
+
crossAxis: 0,
|
|
1018
|
+
alignmentAxis: null
|
|
1019
|
+
} : {
|
|
1020
|
+
mainAxis: rawValue.mainAxis || 0,
|
|
1021
|
+
crossAxis: rawValue.crossAxis || 0,
|
|
1022
|
+
alignmentAxis: rawValue.alignmentAxis
|
|
1023
|
+
};
|
|
1024
|
+
if (alignment && typeof alignmentAxis === "number") crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
|
|
1025
|
+
return isVertical ? {
|
|
1026
|
+
x: crossAxis * crossAxisMulti,
|
|
1027
|
+
y: mainAxis * mainAxisMulti
|
|
1028
|
+
} : {
|
|
1029
|
+
x: mainAxis * mainAxisMulti,
|
|
1030
|
+
y: crossAxis * crossAxisMulti
|
|
1031
|
+
};
|
|
1032
|
+
}
|
|
1033
|
+
var offset$2 = function(options) {
|
|
1034
|
+
if (options === void 0) options = 0;
|
|
1035
|
+
return {
|
|
1036
|
+
name: "offset",
|
|
1037
|
+
options,
|
|
1038
|
+
async fn(state) {
|
|
1039
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
|
1040
|
+
const { x, y, placement, middlewareData } = state;
|
|
1041
|
+
const diffCoords = await convertValueToCoords(state, options);
|
|
1042
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) return {};
|
|
1043
|
+
return {
|
|
1044
|
+
x: x + diffCoords.x,
|
|
1045
|
+
y: y + diffCoords.y,
|
|
1046
|
+
data: {
|
|
1047
|
+
...diffCoords,
|
|
1048
|
+
placement
|
|
1049
|
+
}
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
1052
|
+
};
|
|
1053
|
+
};
|
|
1054
|
+
var shift$2 = function(options) {
|
|
1055
|
+
if (options === void 0) options = {};
|
|
1056
|
+
return {
|
|
1057
|
+
name: "shift",
|
|
1058
|
+
options,
|
|
1059
|
+
async fn(state) {
|
|
1060
|
+
const { x, y, placement } = state;
|
|
1061
|
+
const { mainAxis: checkMainAxis = true, crossAxis: checkCrossAxis = false, limiter = { fn: (_ref) => {
|
|
1062
|
+
let { x: x$1, y: y$1 } = _ref;
|
|
1063
|
+
return {
|
|
1064
|
+
x: x$1,
|
|
1065
|
+
y: y$1
|
|
1066
|
+
};
|
|
1067
|
+
} }, ...detectOverflowOptions } = evaluate(options, state);
|
|
1068
|
+
const coords = {
|
|
1069
|
+
x,
|
|
1070
|
+
y
|
|
1071
|
+
};
|
|
1072
|
+
const overflow = await detectOverflow$1(state, detectOverflowOptions);
|
|
1073
|
+
const crossAxis = getSideAxis(getSide(placement));
|
|
1074
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
1075
|
+
let mainAxisCoord = coords[mainAxis];
|
|
1076
|
+
let crossAxisCoord = coords[crossAxis];
|
|
1077
|
+
if (checkMainAxis) {
|
|
1078
|
+
const minSide = mainAxis === "y" ? "top" : "left";
|
|
1079
|
+
const maxSide = mainAxis === "y" ? "bottom" : "right";
|
|
1080
|
+
const min$1 = mainAxisCoord + overflow[minSide];
|
|
1081
|
+
const max$1 = mainAxisCoord - overflow[maxSide];
|
|
1082
|
+
mainAxisCoord = clamp(min$1, mainAxisCoord, max$1);
|
|
1083
|
+
}
|
|
1084
|
+
if (checkCrossAxis) {
|
|
1085
|
+
const minSide = crossAxis === "y" ? "top" : "left";
|
|
1086
|
+
const maxSide = crossAxis === "y" ? "bottom" : "right";
|
|
1087
|
+
const min$1 = crossAxisCoord + overflow[minSide];
|
|
1088
|
+
const max$1 = crossAxisCoord - overflow[maxSide];
|
|
1089
|
+
crossAxisCoord = clamp(min$1, crossAxisCoord, max$1);
|
|
1090
|
+
}
|
|
1091
|
+
const limitedCoords = limiter.fn({
|
|
1092
|
+
...state,
|
|
1093
|
+
[mainAxis]: mainAxisCoord,
|
|
1094
|
+
[crossAxis]: crossAxisCoord
|
|
1095
|
+
});
|
|
1096
|
+
return {
|
|
1097
|
+
...limitedCoords,
|
|
1098
|
+
data: {
|
|
1099
|
+
x: limitedCoords.x - x,
|
|
1100
|
+
y: limitedCoords.y - y,
|
|
1101
|
+
enabled: {
|
|
1102
|
+
[mainAxis]: checkMainAxis,
|
|
1103
|
+
[crossAxis]: checkCrossAxis
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
};
|
|
1109
|
+
};
|
|
1110
|
+
var size$2 = function(options) {
|
|
1111
|
+
if (options === void 0) options = {};
|
|
1112
|
+
return {
|
|
1113
|
+
name: "size",
|
|
1114
|
+
options,
|
|
1115
|
+
async fn(state) {
|
|
1116
|
+
var _state$middlewareData, _state$middlewareData2;
|
|
1117
|
+
const { placement, rects, platform: platform$1, elements } = state;
|
|
1118
|
+
const { apply = () => {}, ...detectOverflowOptions } = evaluate(options, state);
|
|
1119
|
+
const overflow = await detectOverflow$1(state, detectOverflowOptions);
|
|
1120
|
+
const side = getSide(placement);
|
|
1121
|
+
const alignment = getAlignment(placement);
|
|
1122
|
+
const isYAxis = getSideAxis(placement) === "y";
|
|
1123
|
+
const { width, height } = rects.floating;
|
|
1124
|
+
let heightSide;
|
|
1125
|
+
let widthSide;
|
|
1126
|
+
if (side === "top" || side === "bottom") {
|
|
1127
|
+
heightSide = side;
|
|
1128
|
+
widthSide = alignment === (await (platform$1.isRTL == null ? void 0 : platform$1.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right";
|
|
1129
|
+
} else {
|
|
1130
|
+
widthSide = side;
|
|
1131
|
+
heightSide = alignment === "end" ? "top" : "bottom";
|
|
1132
|
+
}
|
|
1133
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
1134
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
1135
|
+
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
|
1136
|
+
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
|
1137
|
+
const noShift = !state.middlewareData.shift;
|
|
1138
|
+
let availableHeight = overflowAvailableHeight;
|
|
1139
|
+
let availableWidth = overflowAvailableWidth;
|
|
1140
|
+
if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) availableWidth = maximumClippingWidth;
|
|
1141
|
+
if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) availableHeight = maximumClippingHeight;
|
|
1142
|
+
if (noShift && !alignment) {
|
|
1143
|
+
const xMin = max(overflow.left, 0);
|
|
1144
|
+
const xMax = max(overflow.right, 0);
|
|
1145
|
+
const yMin = max(overflow.top, 0);
|
|
1146
|
+
const yMax = max(overflow.bottom, 0);
|
|
1147
|
+
if (isYAxis) availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
|
|
1148
|
+
else availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
1149
|
+
}
|
|
1150
|
+
await apply({
|
|
1151
|
+
...state,
|
|
1152
|
+
availableWidth,
|
|
1153
|
+
availableHeight
|
|
1154
|
+
});
|
|
1155
|
+
const nextDimensions = await platform$1.getDimensions(elements.floating);
|
|
1156
|
+
if (width !== nextDimensions.width || height !== nextDimensions.height) return { reset: { rects: true } };
|
|
1157
|
+
return {};
|
|
1158
|
+
}
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1161
|
+
function getCssDimensions(element) {
|
|
1162
|
+
const css = getComputedStyle$1(element);
|
|
1163
|
+
let width = parseFloat(css.width) || 0;
|
|
1164
|
+
let height = parseFloat(css.height) || 0;
|
|
1165
|
+
const hasOffset = isHTMLElement(element);
|
|
1166
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
1167
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
1168
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
1169
|
+
if (shouldFallback) {
|
|
1170
|
+
width = offsetWidth;
|
|
1171
|
+
height = offsetHeight;
|
|
1172
|
+
}
|
|
1173
|
+
return {
|
|
1174
|
+
width,
|
|
1175
|
+
height,
|
|
1176
|
+
$: shouldFallback
|
|
1177
|
+
};
|
|
1178
|
+
}
|
|
1179
|
+
function unwrapElement(element) {
|
|
1180
|
+
return !isElement(element) ? element.contextElement : element;
|
|
1181
|
+
}
|
|
1182
|
+
function getScale(element) {
|
|
1183
|
+
const domElement = unwrapElement(element);
|
|
1184
|
+
if (!isHTMLElement(domElement)) return createCoords(1);
|
|
1185
|
+
const rect = domElement.getBoundingClientRect();
|
|
1186
|
+
const { width, height, $ } = getCssDimensions(domElement);
|
|
1187
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
1188
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
1189
|
+
if (!x || !Number.isFinite(x)) x = 1;
|
|
1190
|
+
if (!y || !Number.isFinite(y)) y = 1;
|
|
1191
|
+
return {
|
|
1192
|
+
x,
|
|
1193
|
+
y
|
|
1194
|
+
};
|
|
1195
|
+
}
|
|
1196
|
+
var noOffsets = /* @__PURE__ */ createCoords(0);
|
|
1197
|
+
function getVisualOffsets(element) {
|
|
1198
|
+
const win = getWindow(element);
|
|
1199
|
+
if (!isWebKit() || !win.visualViewport) return noOffsets;
|
|
1200
|
+
return {
|
|
1201
|
+
x: win.visualViewport.offsetLeft,
|
|
1202
|
+
y: win.visualViewport.offsetTop
|
|
1203
|
+
};
|
|
1204
|
+
}
|
|
1205
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
1206
|
+
if (isFixed === void 0) isFixed = false;
|
|
1207
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) return false;
|
|
1208
|
+
return isFixed;
|
|
1209
|
+
}
|
|
1210
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
1211
|
+
if (includeScale === void 0) includeScale = false;
|
|
1212
|
+
if (isFixedStrategy === void 0) isFixedStrategy = false;
|
|
1213
|
+
const clientRect = element.getBoundingClientRect();
|
|
1214
|
+
const domElement = unwrapElement(element);
|
|
1215
|
+
let scale = createCoords(1);
|
|
1216
|
+
if (includeScale) if (offsetParent) {
|
|
1217
|
+
if (isElement(offsetParent)) scale = getScale(offsetParent);
|
|
1218
|
+
} else scale = getScale(element);
|
|
1219
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
1220
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
1221
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
1222
|
+
let width = clientRect.width / scale.x;
|
|
1223
|
+
let height = clientRect.height / scale.y;
|
|
1224
|
+
if (domElement) {
|
|
1225
|
+
const win = getWindow(domElement);
|
|
1226
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
1227
|
+
let currentWin = win;
|
|
1228
|
+
let currentIFrame = getFrameElement(currentWin);
|
|
1229
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
1230
|
+
const iframeScale = getScale(currentIFrame);
|
|
1231
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
1232
|
+
const css = getComputedStyle$1(currentIFrame);
|
|
1233
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
1234
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
1235
|
+
x *= iframeScale.x;
|
|
1236
|
+
y *= iframeScale.y;
|
|
1237
|
+
width *= iframeScale.x;
|
|
1238
|
+
height *= iframeScale.y;
|
|
1239
|
+
x += left;
|
|
1240
|
+
y += top;
|
|
1241
|
+
currentWin = getWindow(currentIFrame);
|
|
1242
|
+
currentIFrame = getFrameElement(currentWin);
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
return rectToClientRect({
|
|
1246
|
+
width,
|
|
1247
|
+
height,
|
|
1248
|
+
x,
|
|
1249
|
+
y
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
function getWindowScrollBarX(element, rect) {
|
|
1253
|
+
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
1254
|
+
if (!rect) return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
1255
|
+
return rect.left + leftScroll;
|
|
1256
|
+
}
|
|
1257
|
+
function getHTMLOffset(documentElement, scroll) {
|
|
1258
|
+
const htmlRect = documentElement.getBoundingClientRect();
|
|
1259
|
+
return {
|
|
1260
|
+
x: htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect),
|
|
1261
|
+
y: htmlRect.top + scroll.scrollTop
|
|
1262
|
+
};
|
|
1263
|
+
}
|
|
1264
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
1265
|
+
let { elements, rect, offsetParent, strategy } = _ref;
|
|
1266
|
+
const isFixed = strategy === "fixed";
|
|
1267
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
1268
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
|
1269
|
+
if (offsetParent === documentElement || topLayer && isFixed) return rect;
|
|
1270
|
+
let scroll = {
|
|
1271
|
+
scrollLeft: 0,
|
|
1272
|
+
scrollTop: 0
|
|
1273
|
+
};
|
|
1274
|
+
let scale = createCoords(1);
|
|
1275
|
+
const offsets = createCoords(0);
|
|
1276
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1277
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1278
|
+
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) scroll = getNodeScroll(offsetParent);
|
|
1279
|
+
if (isHTMLElement(offsetParent)) {
|
|
1280
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
|
1281
|
+
scale = getScale(offsetParent);
|
|
1282
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1283
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
1287
|
+
return {
|
|
1288
|
+
width: rect.width * scale.x,
|
|
1289
|
+
height: rect.height * scale.y,
|
|
1290
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
|
|
1291
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
function getClientRects(element) {
|
|
1295
|
+
return Array.from(element.getClientRects());
|
|
1296
|
+
}
|
|
1297
|
+
function getDocumentRect(element) {
|
|
1298
|
+
const html = getDocumentElement(element);
|
|
1299
|
+
const scroll = getNodeScroll(element);
|
|
1300
|
+
const body = element.ownerDocument.body;
|
|
1301
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
1302
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
1303
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
1304
|
+
const y = -scroll.scrollTop;
|
|
1305
|
+
if (getComputedStyle$1(body).direction === "rtl") x += max(html.clientWidth, body.clientWidth) - width;
|
|
1306
|
+
return {
|
|
1307
|
+
width,
|
|
1308
|
+
height,
|
|
1309
|
+
x,
|
|
1310
|
+
y
|
|
1311
|
+
};
|
|
1312
|
+
}
|
|
1313
|
+
var SCROLLBAR_MAX = 25;
|
|
1314
|
+
function getViewportRect(element, strategy) {
|
|
1315
|
+
const win = getWindow(element);
|
|
1316
|
+
const html = getDocumentElement(element);
|
|
1317
|
+
const visualViewport = win.visualViewport;
|
|
1318
|
+
let width = html.clientWidth;
|
|
1319
|
+
let height = html.clientHeight;
|
|
1320
|
+
let x = 0;
|
|
1321
|
+
let y = 0;
|
|
1322
|
+
if (visualViewport) {
|
|
1323
|
+
width = visualViewport.width;
|
|
1324
|
+
height = visualViewport.height;
|
|
1325
|
+
const visualViewportBased = isWebKit();
|
|
1326
|
+
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
1327
|
+
x = visualViewport.offsetLeft;
|
|
1328
|
+
y = visualViewport.offsetTop;
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
const windowScrollbarX = getWindowScrollBarX(html);
|
|
1332
|
+
if (windowScrollbarX <= 0) {
|
|
1333
|
+
const doc = html.ownerDocument;
|
|
1334
|
+
const body = doc.body;
|
|
1335
|
+
const bodyStyles = getComputedStyle(body);
|
|
1336
|
+
const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
1337
|
+
const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
|
|
1338
|
+
if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) width -= clippingStableScrollbarWidth;
|
|
1339
|
+
} else if (windowScrollbarX <= SCROLLBAR_MAX) width += windowScrollbarX;
|
|
1340
|
+
return {
|
|
1341
|
+
width,
|
|
1342
|
+
height,
|
|
1343
|
+
x,
|
|
1344
|
+
y
|
|
1345
|
+
};
|
|
1346
|
+
}
|
|
1347
|
+
var absoluteOrFixed = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1348
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
1349
|
+
const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
|
|
1350
|
+
const top = clientRect.top + element.clientTop;
|
|
1351
|
+
const left = clientRect.left + element.clientLeft;
|
|
1352
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
|
1353
|
+
return {
|
|
1354
|
+
width: element.clientWidth * scale.x,
|
|
1355
|
+
height: element.clientHeight * scale.y,
|
|
1356
|
+
x: left * scale.x,
|
|
1357
|
+
y: top * scale.y
|
|
1358
|
+
};
|
|
1359
|
+
}
|
|
1360
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1361
|
+
let rect;
|
|
1362
|
+
if (clippingAncestor === "viewport") rect = getViewportRect(element, strategy);
|
|
1363
|
+
else if (clippingAncestor === "document") rect = getDocumentRect(getDocumentElement(element));
|
|
1364
|
+
else if (isElement(clippingAncestor)) rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1365
|
+
else {
|
|
1366
|
+
const visualOffsets = getVisualOffsets(element);
|
|
1367
|
+
rect = {
|
|
1368
|
+
x: clippingAncestor.x - visualOffsets.x,
|
|
1369
|
+
y: clippingAncestor.y - visualOffsets.y,
|
|
1370
|
+
width: clippingAncestor.width,
|
|
1371
|
+
height: clippingAncestor.height
|
|
1372
|
+
};
|
|
1373
|
+
}
|
|
1374
|
+
return rectToClientRect(rect);
|
|
1375
|
+
}
|
|
1376
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
|
1377
|
+
const parentNode = getParentNode(element);
|
|
1378
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) return false;
|
|
1379
|
+
return getComputedStyle$1(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1380
|
+
}
|
|
1381
|
+
function getClippingElementAncestors(element, cache) {
|
|
1382
|
+
const cachedResult = cache.get(element);
|
|
1383
|
+
if (cachedResult) return cachedResult;
|
|
1384
|
+
let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
|
|
1385
|
+
let currentContainingBlockComputedStyle = null;
|
|
1386
|
+
const elementIsFixed = getComputedStyle$1(element).position === "fixed";
|
|
1387
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1388
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1389
|
+
const computedStyle = getComputedStyle$1(currentNode);
|
|
1390
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1391
|
+
if (!currentNodeIsContaining && computedStyle.position === "fixed") currentContainingBlockComputedStyle = null;
|
|
1392
|
+
if (elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode)) result = result.filter((ancestor) => ancestor !== currentNode);
|
|
1393
|
+
else currentContainingBlockComputedStyle = computedStyle;
|
|
1394
|
+
currentNode = getParentNode(currentNode);
|
|
1395
|
+
}
|
|
1396
|
+
cache.set(element, result);
|
|
1397
|
+
return result;
|
|
1398
|
+
}
|
|
1399
|
+
function getClippingRect(_ref) {
|
|
1400
|
+
let { element, boundary, rootBoundary, strategy } = _ref;
|
|
1401
|
+
const clippingAncestors = [...boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary), rootBoundary];
|
|
1402
|
+
const firstClippingAncestor = clippingAncestors[0];
|
|
1403
|
+
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
1404
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
1405
|
+
accRect.top = max(rect.top, accRect.top);
|
|
1406
|
+
accRect.right = min(rect.right, accRect.right);
|
|
1407
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
1408
|
+
accRect.left = max(rect.left, accRect.left);
|
|
1409
|
+
return accRect;
|
|
1410
|
+
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
1411
|
+
return {
|
|
1412
|
+
width: clippingRect.right - clippingRect.left,
|
|
1413
|
+
height: clippingRect.bottom - clippingRect.top,
|
|
1414
|
+
x: clippingRect.left,
|
|
1415
|
+
y: clippingRect.top
|
|
1416
|
+
};
|
|
1417
|
+
}
|
|
1418
|
+
function getDimensions(element) {
|
|
1419
|
+
const { width, height } = getCssDimensions(element);
|
|
1420
|
+
return {
|
|
1421
|
+
width,
|
|
1422
|
+
height
|
|
1423
|
+
};
|
|
1424
|
+
}
|
|
1425
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
1426
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1427
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
1428
|
+
const isFixed = strategy === "fixed";
|
|
1429
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
1430
|
+
let scroll = {
|
|
1431
|
+
scrollLeft: 0,
|
|
1432
|
+
scrollTop: 0
|
|
1433
|
+
};
|
|
1434
|
+
const offsets = createCoords(0);
|
|
1435
|
+
function setLeftRTLScrollbarOffset() {
|
|
1436
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
1437
|
+
}
|
|
1438
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1439
|
+
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) scroll = getNodeScroll(offsetParent);
|
|
1440
|
+
if (isOffsetParentAnElement) {
|
|
1441
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
1442
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1443
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1444
|
+
} else if (documentElement) setLeftRTLScrollbarOffset();
|
|
1445
|
+
}
|
|
1446
|
+
if (isFixed && !isOffsetParentAnElement && documentElement) setLeftRTLScrollbarOffset();
|
|
1447
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
1448
|
+
return {
|
|
1449
|
+
x: rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x,
|
|
1450
|
+
y: rect.top + scroll.scrollTop - offsets.y - htmlOffset.y,
|
|
1451
|
+
width: rect.width,
|
|
1452
|
+
height: rect.height
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1455
|
+
function isStaticPositioned(element) {
|
|
1456
|
+
return getComputedStyle$1(element).position === "static";
|
|
1457
|
+
}
|
|
1458
|
+
function getTrueOffsetParent(element, polyfill) {
|
|
1459
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === "fixed") return null;
|
|
1460
|
+
if (polyfill) return polyfill(element);
|
|
1461
|
+
let rawOffsetParent = element.offsetParent;
|
|
1462
|
+
if (getDocumentElement(element) === rawOffsetParent) rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
|
1463
|
+
return rawOffsetParent;
|
|
1464
|
+
}
|
|
1465
|
+
function getOffsetParent(element, polyfill) {
|
|
1466
|
+
const win = getWindow(element);
|
|
1467
|
+
if (isTopLayer(element)) return win;
|
|
1468
|
+
if (!isHTMLElement(element)) {
|
|
1469
|
+
let svgOffsetParent = getParentNode(element);
|
|
1470
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
1471
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) return svgOffsetParent;
|
|
1472
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
1473
|
+
}
|
|
1474
|
+
return win;
|
|
1475
|
+
}
|
|
1476
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
1477
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1478
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) return win;
|
|
1479
|
+
return offsetParent || getContainingBlock(element) || win;
|
|
1480
|
+
}
|
|
1481
|
+
var getElementRects = async function(data) {
|
|
1482
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
1483
|
+
const getDimensionsFn = this.getDimensions;
|
|
1484
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
1485
|
+
return {
|
|
1486
|
+
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
1487
|
+
floating: {
|
|
1488
|
+
x: 0,
|
|
1489
|
+
y: 0,
|
|
1490
|
+
width: floatingDimensions.width,
|
|
1491
|
+
height: floatingDimensions.height
|
|
1492
|
+
}
|
|
1493
|
+
};
|
|
1494
|
+
};
|
|
1495
|
+
function isRTL(element) {
|
|
1496
|
+
return getComputedStyle$1(element).direction === "rtl";
|
|
1497
|
+
}
|
|
1498
|
+
var platform = {
|
|
1499
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
1500
|
+
getDocumentElement,
|
|
1501
|
+
getClippingRect,
|
|
1502
|
+
getOffsetParent,
|
|
1503
|
+
getElementRects,
|
|
1504
|
+
getClientRects,
|
|
1505
|
+
getDimensions,
|
|
1506
|
+
getScale,
|
|
1507
|
+
isElement,
|
|
1508
|
+
isRTL
|
|
1509
|
+
};
|
|
1510
|
+
function rectsAreEqual(a, b) {
|
|
1511
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
1512
|
+
}
|
|
1513
|
+
function observeMove(element, onMove) {
|
|
1514
|
+
let io = null;
|
|
1515
|
+
let timeoutId;
|
|
1516
|
+
const root = getDocumentElement(element);
|
|
1517
|
+
function cleanup() {
|
|
1518
|
+
var _io;
|
|
1519
|
+
clearTimeout(timeoutId);
|
|
1520
|
+
(_io = io) == null || _io.disconnect();
|
|
1521
|
+
io = null;
|
|
1522
|
+
}
|
|
1523
|
+
function refresh(skip, threshold) {
|
|
1524
|
+
if (skip === void 0) skip = false;
|
|
1525
|
+
if (threshold === void 0) threshold = 1;
|
|
1526
|
+
cleanup();
|
|
1527
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
1528
|
+
const { left, top, width, height } = elementRectForRootMargin;
|
|
1529
|
+
if (!skip) onMove();
|
|
1530
|
+
if (!width || !height) return;
|
|
1531
|
+
const insetTop = floor(top);
|
|
1532
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
|
1533
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
|
1534
|
+
const insetLeft = floor(left);
|
|
1535
|
+
const options = {
|
|
1536
|
+
rootMargin: -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px",
|
|
1537
|
+
threshold: max(0, min(1, threshold)) || 1
|
|
1538
|
+
};
|
|
1539
|
+
let isFirstUpdate = true;
|
|
1540
|
+
function handleObserve(entries) {
|
|
1541
|
+
const ratio = entries[0].intersectionRatio;
|
|
1542
|
+
if (ratio !== threshold) {
|
|
1543
|
+
if (!isFirstUpdate) return refresh();
|
|
1544
|
+
if (!ratio) timeoutId = setTimeout(() => {
|
|
1545
|
+
refresh(false, 1e-7);
|
|
1546
|
+
}, 1e3);
|
|
1547
|
+
else refresh(false, ratio);
|
|
1548
|
+
}
|
|
1549
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) refresh();
|
|
1550
|
+
isFirstUpdate = false;
|
|
1551
|
+
}
|
|
1552
|
+
try {
|
|
1553
|
+
io = new IntersectionObserver(handleObserve, {
|
|
1554
|
+
...options,
|
|
1555
|
+
root: root.ownerDocument
|
|
1556
|
+
});
|
|
1557
|
+
} catch (_e) {
|
|
1558
|
+
io = new IntersectionObserver(handleObserve, options);
|
|
1559
|
+
}
|
|
1560
|
+
io.observe(element);
|
|
1561
|
+
}
|
|
1562
|
+
refresh(true);
|
|
1563
|
+
return cleanup;
|
|
1564
|
+
}
|
|
1565
|
+
function autoUpdate(reference, floating, update, options) {
|
|
1566
|
+
if (options === void 0) options = {};
|
|
1567
|
+
const { ancestorScroll = true, ancestorResize = true, elementResize = typeof ResizeObserver === "function", layoutShift = typeof IntersectionObserver === "function", animationFrame = false } = options;
|
|
1568
|
+
const referenceEl = unwrapElement(reference);
|
|
1569
|
+
const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
|
|
1570
|
+
ancestors.forEach((ancestor) => {
|
|
1571
|
+
ancestorScroll && ancestor.addEventListener("scroll", update, { passive: true });
|
|
1572
|
+
ancestorResize && ancestor.addEventListener("resize", update);
|
|
1573
|
+
});
|
|
1574
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
1575
|
+
let reobserveFrame = -1;
|
|
1576
|
+
let resizeObserver = null;
|
|
1577
|
+
if (elementResize) {
|
|
1578
|
+
resizeObserver = new ResizeObserver((_ref) => {
|
|
1579
|
+
let [firstEntry] = _ref;
|
|
1580
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
1581
|
+
resizeObserver.unobserve(floating);
|
|
1582
|
+
cancelAnimationFrame(reobserveFrame);
|
|
1583
|
+
reobserveFrame = requestAnimationFrame(() => {
|
|
1584
|
+
var _resizeObserver;
|
|
1585
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
1586
|
+
});
|
|
1587
|
+
}
|
|
1588
|
+
update();
|
|
1589
|
+
});
|
|
1590
|
+
if (referenceEl && !animationFrame) resizeObserver.observe(referenceEl);
|
|
1591
|
+
resizeObserver.observe(floating);
|
|
1592
|
+
}
|
|
1593
|
+
let frameId;
|
|
1594
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
1595
|
+
if (animationFrame) frameLoop();
|
|
1596
|
+
function frameLoop() {
|
|
1597
|
+
const nextRefRect = getBoundingClientRect(reference);
|
|
1598
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) update();
|
|
1599
|
+
prevRefRect = nextRefRect;
|
|
1600
|
+
frameId = requestAnimationFrame(frameLoop);
|
|
1601
|
+
}
|
|
1602
|
+
update();
|
|
1603
|
+
return () => {
|
|
1604
|
+
var _resizeObserver2;
|
|
1605
|
+
ancestors.forEach((ancestor) => {
|
|
1606
|
+
ancestorScroll && ancestor.removeEventListener("scroll", update);
|
|
1607
|
+
ancestorResize && ancestor.removeEventListener("resize", update);
|
|
1608
|
+
});
|
|
1609
|
+
cleanupIo?.();
|
|
1610
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
1611
|
+
resizeObserver = null;
|
|
1612
|
+
if (animationFrame) cancelAnimationFrame(frameId);
|
|
1613
|
+
};
|
|
1614
|
+
}
|
|
1615
|
+
var offset$1 = offset$2;
|
|
1616
|
+
var shift$1 = shift$2;
|
|
1617
|
+
var flip$1 = flip$2;
|
|
1618
|
+
var size$1 = size$2;
|
|
1619
|
+
var hide$1 = hide$2;
|
|
1620
|
+
var arrow$1 = arrow$2;
|
|
1621
|
+
var computePosition = (reference, floating, options) => {
|
|
1622
|
+
const cache = /* @__PURE__ */ new Map();
|
|
1623
|
+
const mergedOptions = {
|
|
1624
|
+
platform,
|
|
1625
|
+
...options
|
|
1626
|
+
};
|
|
1627
|
+
const platformWithCache = {
|
|
1628
|
+
...mergedOptions.platform,
|
|
1629
|
+
_c: cache
|
|
1630
|
+
};
|
|
1631
|
+
return computePosition$1(reference, floating, {
|
|
1632
|
+
...mergedOptions,
|
|
1633
|
+
platform: platformWithCache
|
|
1634
|
+
});
|
|
1635
|
+
};
|
|
1636
|
+
var index$1 = typeof document !== "undefined" ? useLayoutEffect : function noop() {};
|
|
1637
|
+
function deepEqual(a, b) {
|
|
1638
|
+
if (a === b) return true;
|
|
1639
|
+
if (typeof a !== typeof b) return false;
|
|
1640
|
+
if (typeof a === "function" && a.toString() === b.toString()) return true;
|
|
1641
|
+
let length;
|
|
1642
|
+
let i;
|
|
1643
|
+
let keys;
|
|
1644
|
+
if (a && b && typeof a === "object") {
|
|
1645
|
+
if (Array.isArray(a)) {
|
|
1646
|
+
length = a.length;
|
|
1647
|
+
if (length !== b.length) return false;
|
|
1648
|
+
for (i = length; i-- !== 0;) if (!deepEqual(a[i], b[i])) return false;
|
|
1649
|
+
return true;
|
|
1650
|
+
}
|
|
1651
|
+
keys = Object.keys(a);
|
|
1652
|
+
length = keys.length;
|
|
1653
|
+
if (length !== Object.keys(b).length) return false;
|
|
1654
|
+
for (i = length; i-- !== 0;) if (!{}.hasOwnProperty.call(b, keys[i])) return false;
|
|
1655
|
+
for (i = length; i-- !== 0;) {
|
|
1656
|
+
const key = keys[i];
|
|
1657
|
+
if (key === "_owner" && a.$$typeof) continue;
|
|
1658
|
+
if (!deepEqual(a[key], b[key])) return false;
|
|
1659
|
+
}
|
|
1660
|
+
return true;
|
|
1661
|
+
}
|
|
1662
|
+
return a !== a && b !== b;
|
|
1663
|
+
}
|
|
1664
|
+
function getDPR(element) {
|
|
1665
|
+
if (typeof window === "undefined") return 1;
|
|
1666
|
+
return (element.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1667
|
+
}
|
|
1668
|
+
function roundByDPR(element, value) {
|
|
1669
|
+
const dpr = getDPR(element);
|
|
1670
|
+
return Math.round(value * dpr) / dpr;
|
|
1671
|
+
}
|
|
1672
|
+
function useLatestRef$1(value) {
|
|
1673
|
+
const ref = React$1.useRef(value);
|
|
1674
|
+
index$1(() => {
|
|
1675
|
+
ref.current = value;
|
|
1676
|
+
});
|
|
1677
|
+
return ref;
|
|
1678
|
+
}
|
|
1679
|
+
function useFloating(options) {
|
|
1680
|
+
if (options === void 0) options = {};
|
|
1681
|
+
const { placement = "bottom", strategy = "absolute", middleware = [], platform: platform$1, elements: { reference: externalReference, floating: externalFloating } = {}, transform = true, whileElementsMounted, open } = options;
|
|
1682
|
+
const [data, setData] = React$1.useState({
|
|
1683
|
+
x: 0,
|
|
1684
|
+
y: 0,
|
|
1685
|
+
strategy,
|
|
1686
|
+
placement,
|
|
1687
|
+
middlewareData: {},
|
|
1688
|
+
isPositioned: false
|
|
1689
|
+
});
|
|
1690
|
+
const [latestMiddleware, setLatestMiddleware] = React$1.useState(middleware);
|
|
1691
|
+
if (!deepEqual(latestMiddleware, middleware)) setLatestMiddleware(middleware);
|
|
1692
|
+
const [_reference, _setReference] = React$1.useState(null);
|
|
1693
|
+
const [_floating, _setFloating] = React$1.useState(null);
|
|
1694
|
+
const setReference = React$1.useCallback((node) => {
|
|
1695
|
+
if (node !== referenceRef.current) {
|
|
1696
|
+
referenceRef.current = node;
|
|
1697
|
+
_setReference(node);
|
|
1698
|
+
}
|
|
1699
|
+
}, []);
|
|
1700
|
+
const setFloating = React$1.useCallback((node) => {
|
|
1701
|
+
if (node !== floatingRef.current) {
|
|
1702
|
+
floatingRef.current = node;
|
|
1703
|
+
_setFloating(node);
|
|
1704
|
+
}
|
|
1705
|
+
}, []);
|
|
1706
|
+
const referenceEl = externalReference || _reference;
|
|
1707
|
+
const floatingEl = externalFloating || _floating;
|
|
1708
|
+
const referenceRef = React$1.useRef(null);
|
|
1709
|
+
const floatingRef = React$1.useRef(null);
|
|
1710
|
+
const dataRef = React$1.useRef(data);
|
|
1711
|
+
const hasWhileElementsMounted = whileElementsMounted != null;
|
|
1712
|
+
const whileElementsMountedRef = useLatestRef$1(whileElementsMounted);
|
|
1713
|
+
const platformRef = useLatestRef$1(platform$1);
|
|
1714
|
+
const openRef = useLatestRef$1(open);
|
|
1715
|
+
const update = React$1.useCallback(() => {
|
|
1716
|
+
if (!referenceRef.current || !floatingRef.current) return;
|
|
1717
|
+
const config = {
|
|
1718
|
+
placement,
|
|
1719
|
+
strategy,
|
|
1720
|
+
middleware: latestMiddleware
|
|
1721
|
+
};
|
|
1722
|
+
if (platformRef.current) config.platform = platformRef.current;
|
|
1723
|
+
computePosition(referenceRef.current, floatingRef.current, config).then((data$1) => {
|
|
1724
|
+
const fullData = {
|
|
1725
|
+
...data$1,
|
|
1726
|
+
isPositioned: openRef.current !== false
|
|
1727
|
+
};
|
|
1728
|
+
if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
|
|
1729
|
+
dataRef.current = fullData;
|
|
1730
|
+
ReactDOM.flushSync(() => {
|
|
1731
|
+
setData(fullData);
|
|
1732
|
+
});
|
|
1733
|
+
}
|
|
1734
|
+
});
|
|
1735
|
+
}, [
|
|
1736
|
+
latestMiddleware,
|
|
1737
|
+
placement,
|
|
1738
|
+
strategy,
|
|
1739
|
+
platformRef,
|
|
1740
|
+
openRef
|
|
1741
|
+
]);
|
|
1742
|
+
index$1(() => {
|
|
1743
|
+
if (open === false && dataRef.current.isPositioned) {
|
|
1744
|
+
dataRef.current.isPositioned = false;
|
|
1745
|
+
setData((data$1) => ({
|
|
1746
|
+
...data$1,
|
|
1747
|
+
isPositioned: false
|
|
1748
|
+
}));
|
|
1749
|
+
}
|
|
1750
|
+
}, [open]);
|
|
1751
|
+
const isMountedRef = React$1.useRef(false);
|
|
1752
|
+
index$1(() => {
|
|
1753
|
+
isMountedRef.current = true;
|
|
1754
|
+
return () => {
|
|
1755
|
+
isMountedRef.current = false;
|
|
1756
|
+
};
|
|
1757
|
+
}, []);
|
|
1758
|
+
index$1(() => {
|
|
1759
|
+
if (referenceEl) referenceRef.current = referenceEl;
|
|
1760
|
+
if (floatingEl) floatingRef.current = floatingEl;
|
|
1761
|
+
if (referenceEl && floatingEl) {
|
|
1762
|
+
if (whileElementsMountedRef.current) return whileElementsMountedRef.current(referenceEl, floatingEl, update);
|
|
1763
|
+
update();
|
|
1764
|
+
}
|
|
1765
|
+
}, [
|
|
1766
|
+
referenceEl,
|
|
1767
|
+
floatingEl,
|
|
1768
|
+
update,
|
|
1769
|
+
whileElementsMountedRef,
|
|
1770
|
+
hasWhileElementsMounted
|
|
1771
|
+
]);
|
|
1772
|
+
const refs = React$1.useMemo(() => ({
|
|
1773
|
+
reference: referenceRef,
|
|
1774
|
+
floating: floatingRef,
|
|
1775
|
+
setReference,
|
|
1776
|
+
setFloating
|
|
1777
|
+
}), [setReference, setFloating]);
|
|
1778
|
+
const elements = React$1.useMemo(() => ({
|
|
1779
|
+
reference: referenceEl,
|
|
1780
|
+
floating: floatingEl
|
|
1781
|
+
}), [referenceEl, floatingEl]);
|
|
1782
|
+
const floatingStyles = React$1.useMemo(() => {
|
|
1783
|
+
const initialStyles = {
|
|
1784
|
+
position: strategy,
|
|
1785
|
+
left: 0,
|
|
1786
|
+
top: 0
|
|
1787
|
+
};
|
|
1788
|
+
if (!elements.floating) return initialStyles;
|
|
1789
|
+
const x = roundByDPR(elements.floating, data.x);
|
|
1790
|
+
const y = roundByDPR(elements.floating, data.y);
|
|
1791
|
+
if (transform) return {
|
|
1792
|
+
...initialStyles,
|
|
1793
|
+
transform: "translate(" + x + "px, " + y + "px)",
|
|
1794
|
+
...getDPR(elements.floating) >= 1.5 && { willChange: "transform" }
|
|
1795
|
+
};
|
|
1796
|
+
return {
|
|
1797
|
+
position: strategy,
|
|
1798
|
+
left: x,
|
|
1799
|
+
top: y
|
|
1800
|
+
};
|
|
1801
|
+
}, [
|
|
1802
|
+
strategy,
|
|
1803
|
+
transform,
|
|
1804
|
+
elements.floating,
|
|
1805
|
+
data.x,
|
|
1806
|
+
data.y
|
|
1807
|
+
]);
|
|
1808
|
+
return React$1.useMemo(() => ({
|
|
1809
|
+
...data,
|
|
1810
|
+
update,
|
|
1811
|
+
refs,
|
|
1812
|
+
elements,
|
|
1813
|
+
floatingStyles
|
|
1814
|
+
}), [
|
|
1815
|
+
data,
|
|
1816
|
+
update,
|
|
1817
|
+
refs,
|
|
1818
|
+
elements,
|
|
1819
|
+
floatingStyles
|
|
1820
|
+
]);
|
|
1821
|
+
}
|
|
1822
|
+
var arrow$1$1 = (options) => {
|
|
1823
|
+
function isRef(value) {
|
|
1824
|
+
return {}.hasOwnProperty.call(value, "current");
|
|
1825
|
+
}
|
|
1826
|
+
return {
|
|
1827
|
+
name: "arrow",
|
|
1828
|
+
options,
|
|
1829
|
+
fn(state) {
|
|
1830
|
+
const { element, padding } = typeof options === "function" ? options(state) : options;
|
|
1831
|
+
if (element && isRef(element)) {
|
|
1832
|
+
if (element.current != null) return arrow$1({
|
|
1833
|
+
element: element.current,
|
|
1834
|
+
padding
|
|
1835
|
+
}).fn(state);
|
|
1836
|
+
return {};
|
|
1837
|
+
}
|
|
1838
|
+
if (element) return arrow$1({
|
|
1839
|
+
element,
|
|
1840
|
+
padding
|
|
1841
|
+
}).fn(state);
|
|
1842
|
+
return {};
|
|
1843
|
+
}
|
|
1844
|
+
};
|
|
1845
|
+
};
|
|
1846
|
+
var offset = (options, deps) => ({
|
|
1847
|
+
...offset$1(options),
|
|
1848
|
+
options: [options, deps]
|
|
1849
|
+
});
|
|
1850
|
+
var shift = (options, deps) => ({
|
|
1851
|
+
...shift$1(options),
|
|
1852
|
+
options: [options, deps]
|
|
1853
|
+
});
|
|
1854
|
+
var flip = (options, deps) => ({
|
|
1855
|
+
...flip$1(options),
|
|
1856
|
+
options: [options, deps]
|
|
1857
|
+
});
|
|
1858
|
+
var size = (options, deps) => ({
|
|
1859
|
+
...size$1(options),
|
|
1860
|
+
options: [options, deps]
|
|
1861
|
+
});
|
|
1862
|
+
var hide = (options, deps) => ({
|
|
1863
|
+
...hide$1(options),
|
|
1864
|
+
options: [options, deps]
|
|
1865
|
+
});
|
|
1866
|
+
var arrow = (options, deps) => ({
|
|
1867
|
+
...arrow$1$1(options),
|
|
1868
|
+
options: [options, deps]
|
|
1869
|
+
});
|
|
1870
|
+
function useMergeRefs(refs) {
|
|
1871
|
+
const cleanupRef = React$1.useRef(void 0);
|
|
1872
|
+
const refEffect = React$1.useCallback((instance) => {
|
|
1873
|
+
const cleanups = refs.map((ref) => {
|
|
1874
|
+
if (ref == null) return;
|
|
1875
|
+
if (typeof ref === "function") {
|
|
1876
|
+
const refCallback = ref;
|
|
1877
|
+
const refCleanup = refCallback(instance);
|
|
1878
|
+
return typeof refCleanup === "function" ? refCleanup : () => {
|
|
1879
|
+
refCallback(null);
|
|
1880
|
+
};
|
|
1881
|
+
}
|
|
1882
|
+
ref.current = instance;
|
|
1883
|
+
return () => {
|
|
1884
|
+
ref.current = null;
|
|
1885
|
+
};
|
|
1886
|
+
});
|
|
1887
|
+
return () => {
|
|
1888
|
+
cleanups.forEach((refCleanup) => refCleanup == null ? void 0 : refCleanup());
|
|
1889
|
+
};
|
|
1890
|
+
}, refs);
|
|
1891
|
+
return React$1.useMemo(() => {
|
|
1892
|
+
if (refs.every((ref) => ref == null)) return null;
|
|
1893
|
+
return (value) => {
|
|
1894
|
+
if (cleanupRef.current) {
|
|
1895
|
+
cleanupRef.current();
|
|
1896
|
+
cleanupRef.current = void 0;
|
|
1897
|
+
}
|
|
1898
|
+
if (value != null) cleanupRef.current = refEffect(value);
|
|
1899
|
+
};
|
|
1900
|
+
}, refs);
|
|
1901
|
+
}
|
|
1902
|
+
var FOCUSABLE_ATTRIBUTE = "data-floating-ui-focusable";
|
|
1903
|
+
var ACTIVE_KEY = "active";
|
|
1904
|
+
var SELECTED_KEY = "selected";
|
|
1905
|
+
var ARROW_LEFT = "ArrowLeft";
|
|
1906
|
+
var ARROW_RIGHT = "ArrowRight";
|
|
1907
|
+
var ARROW_UP = "ArrowUp";
|
|
1908
|
+
var ARROW_DOWN = "ArrowDown";
|
|
1909
|
+
var horizontalKeys = [ARROW_LEFT, ARROW_RIGHT];
|
|
1910
|
+
var verticalKeys = [ARROW_UP, ARROW_DOWN];
|
|
1911
|
+
[...horizontalKeys, ...verticalKeys];
|
|
1912
|
+
var SafeReact = { ...React$1 };
|
|
1913
|
+
var serverHandoffComplete = false;
|
|
1914
|
+
var count = 0;
|
|
1915
|
+
var genId = () => "floating-ui-" + Math.random().toString(36).slice(2, 6) + count++;
|
|
1916
|
+
function useFloatingId() {
|
|
1917
|
+
const [id, setId] = React$1.useState(() => serverHandoffComplete ? genId() : void 0);
|
|
1918
|
+
index(() => {
|
|
1919
|
+
if (id == null) setId(genId());
|
|
1920
|
+
}, []);
|
|
1921
|
+
React$1.useEffect(() => {
|
|
1922
|
+
serverHandoffComplete = true;
|
|
1923
|
+
}, []);
|
|
1924
|
+
return id;
|
|
1925
|
+
}
|
|
1926
|
+
var useId$1 = SafeReact.useId || useFloatingId;
|
|
1927
|
+
var devMessageSet;
|
|
1928
|
+
if (process.env.NODE_ENV !== "production") devMessageSet = /* @__PURE__ */ new Set();
|
|
1929
|
+
function warn() {
|
|
1930
|
+
var _devMessageSet;
|
|
1931
|
+
for (var _len = arguments.length, messages = new Array(_len), _key = 0; _key < _len; _key++) messages[_key] = arguments[_key];
|
|
1932
|
+
const message = "Floating UI: " + messages.join(" ");
|
|
1933
|
+
if (!((_devMessageSet = devMessageSet) != null && _devMessageSet.has(message))) {
|
|
1934
|
+
var _devMessageSet2;
|
|
1935
|
+
(_devMessageSet2 = devMessageSet) == null || _devMessageSet2.add(message);
|
|
1936
|
+
console.warn(message);
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
function error() {
|
|
1940
|
+
var _devMessageSet3;
|
|
1941
|
+
for (var _len2 = arguments.length, messages = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) messages[_key2] = arguments[_key2];
|
|
1942
|
+
const message = "Floating UI: " + messages.join(" ");
|
|
1943
|
+
if (!((_devMessageSet3 = devMessageSet) != null && _devMessageSet3.has(message))) {
|
|
1944
|
+
var _devMessageSet4;
|
|
1945
|
+
(_devMessageSet4 = devMessageSet) == null || _devMessageSet4.add(message);
|
|
1946
|
+
console.error(message);
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
var FloatingArrow = /* @__PURE__ */ React$1.forwardRef(function FloatingArrow$1(props, ref) {
|
|
1950
|
+
const { context: { placement, elements: { floating }, middlewareData: { arrow: arrow$3, shift: shift$3 } }, width = 14, height = 7, tipRadius = 0, strokeWidth = 0, staticOffset, stroke, d, style: { transform, ...restStyle } = {}, ...rest } = props;
|
|
1951
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1952
|
+
if (!ref) warn("The `ref` prop is required for `FloatingArrow`.");
|
|
1953
|
+
}
|
|
1954
|
+
const clipPathId = useId$1();
|
|
1955
|
+
const [isRTL$1, setIsRTL] = React$1.useState(false);
|
|
1956
|
+
index(() => {
|
|
1957
|
+
if (!floating) return;
|
|
1958
|
+
if (getComputedStyle$1(floating).direction === "rtl") setIsRTL(true);
|
|
1959
|
+
}, [floating]);
|
|
1960
|
+
if (!floating) return null;
|
|
1961
|
+
const [side, alignment] = placement.split("-");
|
|
1962
|
+
const isVerticalSide = side === "top" || side === "bottom";
|
|
1963
|
+
let computedStaticOffset = staticOffset;
|
|
1964
|
+
if (isVerticalSide && shift$3 != null && shift$3.x || !isVerticalSide && shift$3 != null && shift$3.y) computedStaticOffset = null;
|
|
1965
|
+
const computedStrokeWidth = strokeWidth * 2;
|
|
1966
|
+
const halfStrokeWidth = computedStrokeWidth / 2;
|
|
1967
|
+
const svgX = width / 2 * (tipRadius / -8 + 1);
|
|
1968
|
+
const svgY = height / 2 * tipRadius / 4;
|
|
1969
|
+
const isCustomShape = !!d;
|
|
1970
|
+
const yOffsetProp = computedStaticOffset && alignment === "end" ? "bottom" : "top";
|
|
1971
|
+
let xOffsetProp = computedStaticOffset && alignment === "end" ? "right" : "left";
|
|
1972
|
+
if (computedStaticOffset && isRTL$1) xOffsetProp = alignment === "end" ? "left" : "right";
|
|
1973
|
+
const arrowX = (arrow$3 == null ? void 0 : arrow$3.x) != null ? computedStaticOffset || arrow$3.x : "";
|
|
1974
|
+
const arrowY = (arrow$3 == null ? void 0 : arrow$3.y) != null ? computedStaticOffset || arrow$3.y : "";
|
|
1975
|
+
const dValue = d || "M0,0" + (" H" + width) + (" L" + (width - svgX) + "," + (height - svgY)) + (" Q" + width / 2 + "," + height + " " + svgX + "," + (height - svgY)) + " Z";
|
|
1976
|
+
const rotation = {
|
|
1977
|
+
top: isCustomShape ? "rotate(180deg)" : "",
|
|
1978
|
+
left: isCustomShape ? "rotate(90deg)" : "rotate(-90deg)",
|
|
1979
|
+
bottom: isCustomShape ? "" : "rotate(180deg)",
|
|
1980
|
+
right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
|
|
1981
|
+
}[side];
|
|
1982
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
1983
|
+
...rest,
|
|
1984
|
+
"aria-hidden": true,
|
|
1985
|
+
ref,
|
|
1986
|
+
width: isCustomShape ? width : width + computedStrokeWidth,
|
|
1987
|
+
height: width,
|
|
1988
|
+
viewBox: "0 0 " + width + " " + (height > width ? height : width),
|
|
1989
|
+
style: {
|
|
1990
|
+
position: "absolute",
|
|
1991
|
+
pointerEvents: "none",
|
|
1992
|
+
[xOffsetProp]: arrowX,
|
|
1993
|
+
[yOffsetProp]: arrowY,
|
|
1994
|
+
[side]: isVerticalSide || isCustomShape ? "100%" : "calc(100% - " + computedStrokeWidth / 2 + "px)",
|
|
1995
|
+
transform: [rotation, transform].filter((t) => !!t).join(" "),
|
|
1996
|
+
...restStyle
|
|
1997
|
+
},
|
|
1998
|
+
children: [
|
|
1999
|
+
computedStrokeWidth > 0 && /* @__PURE__ */ jsx("path", {
|
|
2000
|
+
clipPath: "url(#" + clipPathId + ")",
|
|
2001
|
+
fill: "none",
|
|
2002
|
+
stroke,
|
|
2003
|
+
strokeWidth: computedStrokeWidth + (d ? 0 : 1),
|
|
2004
|
+
d: dValue
|
|
2005
|
+
}),
|
|
2006
|
+
/* @__PURE__ */ jsx("path", {
|
|
2007
|
+
stroke: computedStrokeWidth && !d ? rest.fill : "none",
|
|
2008
|
+
d: dValue
|
|
2009
|
+
}),
|
|
2010
|
+
/* @__PURE__ */ jsx("clipPath", {
|
|
2011
|
+
id: clipPathId,
|
|
2012
|
+
children: /* @__PURE__ */ jsx("rect", {
|
|
2013
|
+
x: -halfStrokeWidth,
|
|
2014
|
+
y: halfStrokeWidth * (isCustomShape ? -1 : 1),
|
|
2015
|
+
width: width + computedStrokeWidth,
|
|
2016
|
+
height: width
|
|
2017
|
+
})
|
|
2018
|
+
})
|
|
2019
|
+
]
|
|
2020
|
+
});
|
|
2021
|
+
});
|
|
2022
|
+
function createEventEmitter() {
|
|
2023
|
+
const map = /* @__PURE__ */ new Map();
|
|
2024
|
+
return {
|
|
2025
|
+
emit(event, data) {
|
|
2026
|
+
var _map$get;
|
|
2027
|
+
(_map$get = map.get(event)) == null || _map$get.forEach((listener) => listener(data));
|
|
2028
|
+
},
|
|
2029
|
+
on(event, listener) {
|
|
2030
|
+
if (!map.has(event)) map.set(event, /* @__PURE__ */ new Set());
|
|
2031
|
+
map.get(event).add(listener);
|
|
2032
|
+
},
|
|
2033
|
+
off(event, listener) {
|
|
2034
|
+
var _map$get2;
|
|
2035
|
+
(_map$get2 = map.get(event)) == null || _map$get2.delete(listener);
|
|
2036
|
+
}
|
|
2037
|
+
};
|
|
2038
|
+
}
|
|
2039
|
+
var FloatingNodeContext = /* @__PURE__ */ React$1.createContext(null);
|
|
2040
|
+
var FloatingTreeContext = /* @__PURE__ */ React$1.createContext(null);
|
|
2041
|
+
var useFloatingParentNodeId = () => {
|
|
2042
|
+
var _React$useContext;
|
|
2043
|
+
return ((_React$useContext = React$1.useContext(FloatingNodeContext)) == null ? void 0 : _React$useContext.id) || null;
|
|
2044
|
+
};
|
|
2045
|
+
var useFloatingTree = () => React$1.useContext(FloatingTreeContext);
|
|
2046
|
+
function createAttribute(name) {
|
|
2047
|
+
return "data-floating-ui-" + name;
|
|
2048
|
+
}
|
|
2049
|
+
function clearTimeoutIfSet(timeoutRef) {
|
|
2050
|
+
if (timeoutRef.current !== -1) {
|
|
2051
|
+
clearTimeout(timeoutRef.current);
|
|
2052
|
+
timeoutRef.current = -1;
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
2055
|
+
var safePolygonIdentifier = /* @__PURE__ */ createAttribute("safe-polygon");
|
|
2056
|
+
function getDelay(value, prop, pointerType) {
|
|
2057
|
+
if (pointerType && !isMouseLikePointerType(pointerType)) return 0;
|
|
2058
|
+
if (typeof value === "number") return value;
|
|
2059
|
+
if (typeof value === "function") {
|
|
2060
|
+
const result = value();
|
|
2061
|
+
if (typeof result === "number") return result;
|
|
2062
|
+
return result == null ? void 0 : result[prop];
|
|
2063
|
+
}
|
|
2064
|
+
return value == null ? void 0 : value[prop];
|
|
2065
|
+
}
|
|
2066
|
+
function getRestMs(value) {
|
|
2067
|
+
if (typeof value === "function") return value();
|
|
2068
|
+
return value;
|
|
2069
|
+
}
|
|
2070
|
+
function useHover(context, props) {
|
|
2071
|
+
if (props === void 0) props = {};
|
|
2072
|
+
const { open, onOpenChange, dataRef, events, elements } = context;
|
|
2073
|
+
const { enabled = true, delay = 0, handleClose = null, mouseOnly = false, restMs = 0, move = true } = props;
|
|
2074
|
+
const tree = useFloatingTree();
|
|
2075
|
+
const parentId = useFloatingParentNodeId();
|
|
2076
|
+
const handleCloseRef = useLatestRef(handleClose);
|
|
2077
|
+
const delayRef = useLatestRef(delay);
|
|
2078
|
+
const openRef = useLatestRef(open);
|
|
2079
|
+
const restMsRef = useLatestRef(restMs);
|
|
2080
|
+
const pointerTypeRef = React$1.useRef();
|
|
2081
|
+
const timeoutRef = React$1.useRef(-1);
|
|
2082
|
+
const handlerRef = React$1.useRef();
|
|
2083
|
+
const restTimeoutRef = React$1.useRef(-1);
|
|
2084
|
+
const blockMouseMoveRef = React$1.useRef(true);
|
|
2085
|
+
const performedPointerEventsMutationRef = React$1.useRef(false);
|
|
2086
|
+
const unbindMouseMoveRef = React$1.useRef(() => {});
|
|
2087
|
+
const restTimeoutPendingRef = React$1.useRef(false);
|
|
2088
|
+
const isHoverOpen = useEffectEvent(() => {
|
|
2089
|
+
var _dataRef$current$open;
|
|
2090
|
+
const type = (_dataRef$current$open = dataRef.current.openEvent) == null ? void 0 : _dataRef$current$open.type;
|
|
2091
|
+
return (type == null ? void 0 : type.includes("mouse")) && type !== "mousedown";
|
|
2092
|
+
});
|
|
2093
|
+
React$1.useEffect(() => {
|
|
2094
|
+
if (!enabled) return;
|
|
2095
|
+
function onOpenChange$1(_ref) {
|
|
2096
|
+
let { open: open$1 } = _ref;
|
|
2097
|
+
if (!open$1) {
|
|
2098
|
+
clearTimeoutIfSet(timeoutRef);
|
|
2099
|
+
clearTimeoutIfSet(restTimeoutRef);
|
|
2100
|
+
blockMouseMoveRef.current = true;
|
|
2101
|
+
restTimeoutPendingRef.current = false;
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
events.on("openchange", onOpenChange$1);
|
|
2105
|
+
return () => {
|
|
2106
|
+
events.off("openchange", onOpenChange$1);
|
|
2107
|
+
};
|
|
2108
|
+
}, [enabled, events]);
|
|
2109
|
+
React$1.useEffect(() => {
|
|
2110
|
+
if (!enabled) return;
|
|
2111
|
+
if (!handleCloseRef.current) return;
|
|
2112
|
+
if (!open) return;
|
|
2113
|
+
function onLeave(event) {
|
|
2114
|
+
if (isHoverOpen()) onOpenChange(false, event, "hover");
|
|
2115
|
+
}
|
|
2116
|
+
const html = getDocument(elements.floating).documentElement;
|
|
2117
|
+
html.addEventListener("mouseleave", onLeave);
|
|
2118
|
+
return () => {
|
|
2119
|
+
html.removeEventListener("mouseleave", onLeave);
|
|
2120
|
+
};
|
|
2121
|
+
}, [
|
|
2122
|
+
elements.floating,
|
|
2123
|
+
open,
|
|
2124
|
+
onOpenChange,
|
|
2125
|
+
enabled,
|
|
2126
|
+
handleCloseRef,
|
|
2127
|
+
isHoverOpen
|
|
2128
|
+
]);
|
|
2129
|
+
const closeWithDelay = React$1.useCallback(function(event, runElseBranch, reason) {
|
|
2130
|
+
if (runElseBranch === void 0) runElseBranch = true;
|
|
2131
|
+
if (reason === void 0) reason = "hover";
|
|
2132
|
+
const closeDelay = getDelay(delayRef.current, "close", pointerTypeRef.current);
|
|
2133
|
+
if (closeDelay && !handlerRef.current) {
|
|
2134
|
+
clearTimeoutIfSet(timeoutRef);
|
|
2135
|
+
timeoutRef.current = window.setTimeout(() => onOpenChange(false, event, reason), closeDelay);
|
|
2136
|
+
} else if (runElseBranch) {
|
|
2137
|
+
clearTimeoutIfSet(timeoutRef);
|
|
2138
|
+
onOpenChange(false, event, reason);
|
|
2139
|
+
}
|
|
2140
|
+
}, [delayRef, onOpenChange]);
|
|
2141
|
+
const cleanupMouseMoveHandler = useEffectEvent(() => {
|
|
2142
|
+
unbindMouseMoveRef.current();
|
|
2143
|
+
handlerRef.current = void 0;
|
|
2144
|
+
});
|
|
2145
|
+
const clearPointerEvents = useEffectEvent(() => {
|
|
2146
|
+
if (performedPointerEventsMutationRef.current) {
|
|
2147
|
+
const body = getDocument(elements.floating).body;
|
|
2148
|
+
body.style.pointerEvents = "";
|
|
2149
|
+
body.removeAttribute(safePolygonIdentifier);
|
|
2150
|
+
performedPointerEventsMutationRef.current = false;
|
|
2151
|
+
}
|
|
2152
|
+
});
|
|
2153
|
+
const isClickLikeOpenEvent = useEffectEvent(() => {
|
|
2154
|
+
return dataRef.current.openEvent ? ["click", "mousedown"].includes(dataRef.current.openEvent.type) : false;
|
|
2155
|
+
});
|
|
2156
|
+
React$1.useEffect(() => {
|
|
2157
|
+
if (!enabled) return;
|
|
2158
|
+
function onReferenceMouseEnter(event) {
|
|
2159
|
+
clearTimeoutIfSet(timeoutRef);
|
|
2160
|
+
blockMouseMoveRef.current = false;
|
|
2161
|
+
if (mouseOnly && !isMouseLikePointerType(pointerTypeRef.current) || getRestMs(restMsRef.current) > 0 && !getDelay(delayRef.current, "open")) return;
|
|
2162
|
+
const openDelay = getDelay(delayRef.current, "open", pointerTypeRef.current);
|
|
2163
|
+
if (openDelay) timeoutRef.current = window.setTimeout(() => {
|
|
2164
|
+
if (!openRef.current) onOpenChange(true, event, "hover");
|
|
2165
|
+
}, openDelay);
|
|
2166
|
+
else if (!open) onOpenChange(true, event, "hover");
|
|
2167
|
+
}
|
|
2168
|
+
function onReferenceMouseLeave(event) {
|
|
2169
|
+
if (isClickLikeOpenEvent()) {
|
|
2170
|
+
clearPointerEvents();
|
|
2171
|
+
return;
|
|
2172
|
+
}
|
|
2173
|
+
unbindMouseMoveRef.current();
|
|
2174
|
+
const doc = getDocument(elements.floating);
|
|
2175
|
+
clearTimeoutIfSet(restTimeoutRef);
|
|
2176
|
+
restTimeoutPendingRef.current = false;
|
|
2177
|
+
if (handleCloseRef.current && dataRef.current.floatingContext) {
|
|
2178
|
+
if (!open) clearTimeoutIfSet(timeoutRef);
|
|
2179
|
+
handlerRef.current = handleCloseRef.current({
|
|
2180
|
+
...dataRef.current.floatingContext,
|
|
2181
|
+
tree,
|
|
2182
|
+
x: event.clientX,
|
|
2183
|
+
y: event.clientY,
|
|
2184
|
+
onClose() {
|
|
2185
|
+
clearPointerEvents();
|
|
2186
|
+
cleanupMouseMoveHandler();
|
|
2187
|
+
if (!isClickLikeOpenEvent()) closeWithDelay(event, true, "safe-polygon");
|
|
2188
|
+
}
|
|
2189
|
+
});
|
|
2190
|
+
const handler = handlerRef.current;
|
|
2191
|
+
doc.addEventListener("mousemove", handler);
|
|
2192
|
+
unbindMouseMoveRef.current = () => {
|
|
2193
|
+
doc.removeEventListener("mousemove", handler);
|
|
2194
|
+
};
|
|
2195
|
+
return;
|
|
2196
|
+
}
|
|
2197
|
+
if (pointerTypeRef.current === "touch" ? !contains(elements.floating, event.relatedTarget) : true) closeWithDelay(event);
|
|
2198
|
+
}
|
|
2199
|
+
function onScrollMouseLeave(event) {
|
|
2200
|
+
if (isClickLikeOpenEvent()) return;
|
|
2201
|
+
if (!dataRef.current.floatingContext) return;
|
|
2202
|
+
handleCloseRef.current == null || handleCloseRef.current({
|
|
2203
|
+
...dataRef.current.floatingContext,
|
|
2204
|
+
tree,
|
|
2205
|
+
x: event.clientX,
|
|
2206
|
+
y: event.clientY,
|
|
2207
|
+
onClose() {
|
|
2208
|
+
clearPointerEvents();
|
|
2209
|
+
cleanupMouseMoveHandler();
|
|
2210
|
+
if (!isClickLikeOpenEvent()) closeWithDelay(event);
|
|
2211
|
+
}
|
|
2212
|
+
})(event);
|
|
2213
|
+
}
|
|
2214
|
+
function onFloatingMouseEnter() {
|
|
2215
|
+
clearTimeoutIfSet(timeoutRef);
|
|
2216
|
+
}
|
|
2217
|
+
function onFloatingMouseLeave(event) {
|
|
2218
|
+
if (!isClickLikeOpenEvent()) closeWithDelay(event, false);
|
|
2219
|
+
}
|
|
2220
|
+
if (isElement(elements.domReference)) {
|
|
2221
|
+
const reference$1 = elements.domReference;
|
|
2222
|
+
const floating = elements.floating;
|
|
2223
|
+
if (open) reference$1.addEventListener("mouseleave", onScrollMouseLeave);
|
|
2224
|
+
if (move) reference$1.addEventListener("mousemove", onReferenceMouseEnter, { once: true });
|
|
2225
|
+
reference$1.addEventListener("mouseenter", onReferenceMouseEnter);
|
|
2226
|
+
reference$1.addEventListener("mouseleave", onReferenceMouseLeave);
|
|
2227
|
+
if (floating) {
|
|
2228
|
+
floating.addEventListener("mouseleave", onScrollMouseLeave);
|
|
2229
|
+
floating.addEventListener("mouseenter", onFloatingMouseEnter);
|
|
2230
|
+
floating.addEventListener("mouseleave", onFloatingMouseLeave);
|
|
2231
|
+
}
|
|
2232
|
+
return () => {
|
|
2233
|
+
if (open) reference$1.removeEventListener("mouseleave", onScrollMouseLeave);
|
|
2234
|
+
if (move) reference$1.removeEventListener("mousemove", onReferenceMouseEnter);
|
|
2235
|
+
reference$1.removeEventListener("mouseenter", onReferenceMouseEnter);
|
|
2236
|
+
reference$1.removeEventListener("mouseleave", onReferenceMouseLeave);
|
|
2237
|
+
if (floating) {
|
|
2238
|
+
floating.removeEventListener("mouseleave", onScrollMouseLeave);
|
|
2239
|
+
floating.removeEventListener("mouseenter", onFloatingMouseEnter);
|
|
2240
|
+
floating.removeEventListener("mouseleave", onFloatingMouseLeave);
|
|
2241
|
+
}
|
|
2242
|
+
};
|
|
2243
|
+
}
|
|
2244
|
+
}, [
|
|
2245
|
+
elements,
|
|
2246
|
+
enabled,
|
|
2247
|
+
context,
|
|
2248
|
+
mouseOnly,
|
|
2249
|
+
move,
|
|
2250
|
+
closeWithDelay,
|
|
2251
|
+
cleanupMouseMoveHandler,
|
|
2252
|
+
clearPointerEvents,
|
|
2253
|
+
onOpenChange,
|
|
2254
|
+
open,
|
|
2255
|
+
openRef,
|
|
2256
|
+
tree,
|
|
2257
|
+
delayRef,
|
|
2258
|
+
handleCloseRef,
|
|
2259
|
+
dataRef,
|
|
2260
|
+
isClickLikeOpenEvent,
|
|
2261
|
+
restMsRef
|
|
2262
|
+
]);
|
|
2263
|
+
index(() => {
|
|
2264
|
+
var _handleCloseRef$curre;
|
|
2265
|
+
if (!enabled) return;
|
|
2266
|
+
if (open && (_handleCloseRef$curre = handleCloseRef.current) != null && (_handleCloseRef$curre = _handleCloseRef$curre.__options) != null && _handleCloseRef$curre.blockPointerEvents && isHoverOpen()) {
|
|
2267
|
+
performedPointerEventsMutationRef.current = true;
|
|
2268
|
+
const floatingEl = elements.floating;
|
|
2269
|
+
if (isElement(elements.domReference) && floatingEl) {
|
|
2270
|
+
var _tree$nodesRef$curren;
|
|
2271
|
+
const body = getDocument(elements.floating).body;
|
|
2272
|
+
body.setAttribute(safePolygonIdentifier, "");
|
|
2273
|
+
const ref = elements.domReference;
|
|
2274
|
+
const parentFloating = tree == null || (_tree$nodesRef$curren = tree.nodesRef.current.find((node) => node.id === parentId)) == null || (_tree$nodesRef$curren = _tree$nodesRef$curren.context) == null ? void 0 : _tree$nodesRef$curren.elements.floating;
|
|
2275
|
+
if (parentFloating) parentFloating.style.pointerEvents = "";
|
|
2276
|
+
body.style.pointerEvents = "none";
|
|
2277
|
+
ref.style.pointerEvents = "auto";
|
|
2278
|
+
floatingEl.style.pointerEvents = "auto";
|
|
2279
|
+
return () => {
|
|
2280
|
+
body.style.pointerEvents = "";
|
|
2281
|
+
ref.style.pointerEvents = "";
|
|
2282
|
+
floatingEl.style.pointerEvents = "";
|
|
2283
|
+
};
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2286
|
+
}, [
|
|
2287
|
+
enabled,
|
|
2288
|
+
open,
|
|
2289
|
+
parentId,
|
|
2290
|
+
elements,
|
|
2291
|
+
tree,
|
|
2292
|
+
handleCloseRef,
|
|
2293
|
+
isHoverOpen
|
|
2294
|
+
]);
|
|
2295
|
+
index(() => {
|
|
2296
|
+
if (!open) {
|
|
2297
|
+
pointerTypeRef.current = void 0;
|
|
2298
|
+
restTimeoutPendingRef.current = false;
|
|
2299
|
+
cleanupMouseMoveHandler();
|
|
2300
|
+
clearPointerEvents();
|
|
2301
|
+
}
|
|
2302
|
+
}, [
|
|
2303
|
+
open,
|
|
2304
|
+
cleanupMouseMoveHandler,
|
|
2305
|
+
clearPointerEvents
|
|
2306
|
+
]);
|
|
2307
|
+
React$1.useEffect(() => {
|
|
2308
|
+
return () => {
|
|
2309
|
+
cleanupMouseMoveHandler();
|
|
2310
|
+
clearTimeoutIfSet(timeoutRef);
|
|
2311
|
+
clearTimeoutIfSet(restTimeoutRef);
|
|
2312
|
+
clearPointerEvents();
|
|
2313
|
+
};
|
|
2314
|
+
}, [
|
|
2315
|
+
enabled,
|
|
2316
|
+
elements.domReference,
|
|
2317
|
+
cleanupMouseMoveHandler,
|
|
2318
|
+
clearPointerEvents
|
|
2319
|
+
]);
|
|
2320
|
+
const reference = React$1.useMemo(() => {
|
|
2321
|
+
function setPointerRef(event) {
|
|
2322
|
+
pointerTypeRef.current = event.pointerType;
|
|
2323
|
+
}
|
|
2324
|
+
return {
|
|
2325
|
+
onPointerDown: setPointerRef,
|
|
2326
|
+
onPointerEnter: setPointerRef,
|
|
2327
|
+
onMouseMove(event) {
|
|
2328
|
+
const { nativeEvent } = event;
|
|
2329
|
+
function handleMouseMove() {
|
|
2330
|
+
if (!blockMouseMoveRef.current && !openRef.current) onOpenChange(true, nativeEvent, "hover");
|
|
2331
|
+
}
|
|
2332
|
+
if (mouseOnly && !isMouseLikePointerType(pointerTypeRef.current)) return;
|
|
2333
|
+
if (open || getRestMs(restMsRef.current) === 0) return;
|
|
2334
|
+
if (restTimeoutPendingRef.current && event.movementX ** 2 + event.movementY ** 2 < 2) return;
|
|
2335
|
+
clearTimeoutIfSet(restTimeoutRef);
|
|
2336
|
+
if (pointerTypeRef.current === "touch") handleMouseMove();
|
|
2337
|
+
else {
|
|
2338
|
+
restTimeoutPendingRef.current = true;
|
|
2339
|
+
restTimeoutRef.current = window.setTimeout(handleMouseMove, getRestMs(restMsRef.current));
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
};
|
|
2343
|
+
}, [
|
|
2344
|
+
mouseOnly,
|
|
2345
|
+
onOpenChange,
|
|
2346
|
+
open,
|
|
2347
|
+
openRef,
|
|
2348
|
+
restMsRef
|
|
2349
|
+
]);
|
|
2350
|
+
return React$1.useMemo(() => enabled ? { reference } : {}, [enabled, reference]);
|
|
2351
|
+
}
|
|
2352
|
+
var NOOP = () => {};
|
|
2353
|
+
var FloatingDelayGroupContext = /* @__PURE__ */ React$1.createContext({
|
|
2354
|
+
delay: 0,
|
|
2355
|
+
initialDelay: 0,
|
|
2356
|
+
timeoutMs: 0,
|
|
2357
|
+
currentId: null,
|
|
2358
|
+
setCurrentId: NOOP,
|
|
2359
|
+
setState: NOOP,
|
|
2360
|
+
isInstantPhase: false
|
|
2361
|
+
});
|
|
2362
|
+
function FloatingDelayGroup(props) {
|
|
2363
|
+
const { children, delay, timeoutMs = 0 } = props;
|
|
2364
|
+
const [state, setState] = React$1.useReducer((prev, next) => ({
|
|
2365
|
+
...prev,
|
|
2366
|
+
...next
|
|
2367
|
+
}), {
|
|
2368
|
+
delay,
|
|
2369
|
+
timeoutMs,
|
|
2370
|
+
initialDelay: delay,
|
|
2371
|
+
currentId: null,
|
|
2372
|
+
isInstantPhase: false
|
|
2373
|
+
});
|
|
2374
|
+
const initialCurrentIdRef = React$1.useRef(null);
|
|
2375
|
+
const setCurrentId = React$1.useCallback((currentId) => {
|
|
2376
|
+
setState({ currentId });
|
|
2377
|
+
}, []);
|
|
2378
|
+
index(() => {
|
|
2379
|
+
if (state.currentId) {
|
|
2380
|
+
if (initialCurrentIdRef.current === null) initialCurrentIdRef.current = state.currentId;
|
|
2381
|
+
else if (!state.isInstantPhase) setState({ isInstantPhase: true });
|
|
2382
|
+
} else {
|
|
2383
|
+
if (state.isInstantPhase) setState({ isInstantPhase: false });
|
|
2384
|
+
initialCurrentIdRef.current = null;
|
|
2385
|
+
}
|
|
2386
|
+
}, [state.currentId, state.isInstantPhase]);
|
|
2387
|
+
return /* @__PURE__ */ jsx(FloatingDelayGroupContext.Provider, {
|
|
2388
|
+
value: React$1.useMemo(() => ({
|
|
2389
|
+
...state,
|
|
2390
|
+
setState,
|
|
2391
|
+
setCurrentId
|
|
2392
|
+
}), [state, setCurrentId]),
|
|
2393
|
+
children
|
|
2394
|
+
});
|
|
2395
|
+
}
|
|
2396
|
+
var rafId = 0;
|
|
2397
|
+
function enqueueFocus(el, options) {
|
|
2398
|
+
if (options === void 0) options = {};
|
|
2399
|
+
const { preventScroll = false, cancelPrevious = true, sync = false } = options;
|
|
2400
|
+
cancelPrevious && cancelAnimationFrame(rafId);
|
|
2401
|
+
const exec = () => el == null ? void 0 : el.focus({ preventScroll });
|
|
2402
|
+
if (sync) exec();
|
|
2403
|
+
else rafId = requestAnimationFrame(exec);
|
|
2404
|
+
}
|
|
2405
|
+
function getDocument$1(node) {
|
|
2406
|
+
return (node == null ? void 0 : node.ownerDocument) || document;
|
|
2407
|
+
}
|
|
2408
|
+
var counters = {
|
|
2409
|
+
inert: /* @__PURE__ */ new WeakMap(),
|
|
2410
|
+
"aria-hidden": /* @__PURE__ */ new WeakMap(),
|
|
2411
|
+
none: /* @__PURE__ */ new WeakMap()
|
|
2412
|
+
};
|
|
2413
|
+
function getCounterMap(control) {
|
|
2414
|
+
if (control === "inert") return counters.inert;
|
|
2415
|
+
if (control === "aria-hidden") return counters["aria-hidden"];
|
|
2416
|
+
return counters.none;
|
|
2417
|
+
}
|
|
2418
|
+
var uncontrolledElementsSet = /* @__PURE__ */ new WeakSet();
|
|
2419
|
+
var markerMap = {};
|
|
2420
|
+
var lockCount$1 = 0;
|
|
2421
|
+
var supportsInert = () => typeof HTMLElement !== "undefined" && "inert" in HTMLElement.prototype;
|
|
2422
|
+
var unwrapHost = (node) => node && (node.host || unwrapHost(node.parentNode));
|
|
2423
|
+
var correctElements = (parent, targets) => targets.map((target) => {
|
|
2424
|
+
if (parent.contains(target)) return target;
|
|
2425
|
+
const correctedTarget = unwrapHost(target);
|
|
2426
|
+
if (parent.contains(correctedTarget)) return correctedTarget;
|
|
2427
|
+
return null;
|
|
2428
|
+
}).filter((x) => x != null);
|
|
2429
|
+
function applyAttributeToOthers(uncorrectedAvoidElements, body, ariaHidden, inert) {
|
|
2430
|
+
const markerName = "data-floating-ui-inert";
|
|
2431
|
+
const controlAttribute = inert ? "inert" : ariaHidden ? "aria-hidden" : null;
|
|
2432
|
+
const avoidElements = correctElements(body, uncorrectedAvoidElements);
|
|
2433
|
+
const elementsToKeep = /* @__PURE__ */ new Set();
|
|
2434
|
+
const elementsToStop = new Set(avoidElements);
|
|
2435
|
+
const hiddenElements = [];
|
|
2436
|
+
if (!markerMap[markerName]) markerMap[markerName] = /* @__PURE__ */ new WeakMap();
|
|
2437
|
+
const markerCounter = markerMap[markerName];
|
|
2438
|
+
avoidElements.forEach(keep);
|
|
2439
|
+
deep(body);
|
|
2440
|
+
elementsToKeep.clear();
|
|
2441
|
+
function keep(el) {
|
|
2442
|
+
if (!el || elementsToKeep.has(el)) return;
|
|
2443
|
+
elementsToKeep.add(el);
|
|
2444
|
+
el.parentNode && keep(el.parentNode);
|
|
2445
|
+
}
|
|
2446
|
+
function deep(parent) {
|
|
2447
|
+
if (!parent || elementsToStop.has(parent)) return;
|
|
2448
|
+
[].forEach.call(parent.children, (node) => {
|
|
2449
|
+
if (getNodeName(node) === "script") return;
|
|
2450
|
+
if (elementsToKeep.has(node)) deep(node);
|
|
2451
|
+
else {
|
|
2452
|
+
const attr = controlAttribute ? node.getAttribute(controlAttribute) : null;
|
|
2453
|
+
const alreadyHidden = attr !== null && attr !== "false";
|
|
2454
|
+
const counterMap = getCounterMap(controlAttribute);
|
|
2455
|
+
const counterValue = (counterMap.get(node) || 0) + 1;
|
|
2456
|
+
const markerValue = (markerCounter.get(node) || 0) + 1;
|
|
2457
|
+
counterMap.set(node, counterValue);
|
|
2458
|
+
markerCounter.set(node, markerValue);
|
|
2459
|
+
hiddenElements.push(node);
|
|
2460
|
+
if (counterValue === 1 && alreadyHidden) uncontrolledElementsSet.add(node);
|
|
2461
|
+
if (markerValue === 1) node.setAttribute(markerName, "");
|
|
2462
|
+
if (!alreadyHidden && controlAttribute) node.setAttribute(controlAttribute, controlAttribute === "inert" ? "" : "true");
|
|
2463
|
+
}
|
|
2464
|
+
});
|
|
2465
|
+
}
|
|
2466
|
+
lockCount$1++;
|
|
2467
|
+
return () => {
|
|
2468
|
+
hiddenElements.forEach((element) => {
|
|
2469
|
+
const counterMap = getCounterMap(controlAttribute);
|
|
2470
|
+
const counterValue = (counterMap.get(element) || 0) - 1;
|
|
2471
|
+
const markerValue = (markerCounter.get(element) || 0) - 1;
|
|
2472
|
+
counterMap.set(element, counterValue);
|
|
2473
|
+
markerCounter.set(element, markerValue);
|
|
2474
|
+
if (!counterValue) {
|
|
2475
|
+
if (!uncontrolledElementsSet.has(element) && controlAttribute) element.removeAttribute(controlAttribute);
|
|
2476
|
+
uncontrolledElementsSet.delete(element);
|
|
2477
|
+
}
|
|
2478
|
+
if (!markerValue) element.removeAttribute(markerName);
|
|
2479
|
+
});
|
|
2480
|
+
lockCount$1--;
|
|
2481
|
+
if (!lockCount$1) {
|
|
2482
|
+
counters.inert = /* @__PURE__ */ new WeakMap();
|
|
2483
|
+
counters["aria-hidden"] = /* @__PURE__ */ new WeakMap();
|
|
2484
|
+
counters.none = /* @__PURE__ */ new WeakMap();
|
|
2485
|
+
uncontrolledElementsSet = /* @__PURE__ */ new WeakSet();
|
|
2486
|
+
markerMap = {};
|
|
2487
|
+
}
|
|
2488
|
+
};
|
|
2489
|
+
}
|
|
2490
|
+
function markOthers(avoidElements, ariaHidden, inert) {
|
|
2491
|
+
if (ariaHidden === void 0) ariaHidden = false;
|
|
2492
|
+
if (inert === void 0) inert = false;
|
|
2493
|
+
const body = getDocument$1(avoidElements[0]).body;
|
|
2494
|
+
return applyAttributeToOthers(avoidElements.concat(Array.from(body.querySelectorAll("[aria-live],[role=\"status\"],output"))), body, ariaHidden, inert);
|
|
2495
|
+
}
|
|
2496
|
+
var HIDDEN_STYLES = {
|
|
2497
|
+
border: 0,
|
|
2498
|
+
clip: "rect(0 0 0 0)",
|
|
2499
|
+
height: "1px",
|
|
2500
|
+
margin: "-1px",
|
|
2501
|
+
overflow: "hidden",
|
|
2502
|
+
padding: 0,
|
|
2503
|
+
position: "fixed",
|
|
2504
|
+
whiteSpace: "nowrap",
|
|
2505
|
+
width: "1px",
|
|
2506
|
+
top: 0,
|
|
2507
|
+
left: 0
|
|
2508
|
+
};
|
|
2509
|
+
var FocusGuard = /* @__PURE__ */ React$1.forwardRef(function FocusGuard$1(props, ref) {
|
|
2510
|
+
const [role, setRole] = React$1.useState();
|
|
2511
|
+
index(() => {
|
|
2512
|
+
if (isSafari()) setRole("button");
|
|
2513
|
+
}, []);
|
|
2514
|
+
const restProps = {
|
|
2515
|
+
ref,
|
|
2516
|
+
tabIndex: 0,
|
|
2517
|
+
role,
|
|
2518
|
+
"aria-hidden": role ? void 0 : true,
|
|
2519
|
+
[createAttribute("focus-guard")]: "",
|
|
2520
|
+
style: HIDDEN_STYLES
|
|
2521
|
+
};
|
|
2522
|
+
return /* @__PURE__ */ jsx("span", {
|
|
2523
|
+
...props,
|
|
2524
|
+
...restProps
|
|
2525
|
+
});
|
|
2526
|
+
});
|
|
2527
|
+
var PortalContext = /* @__PURE__ */ React$1.createContext(null);
|
|
2528
|
+
var usePortalContext = () => React$1.useContext(PortalContext);
|
|
2529
|
+
function useLiteMergeRefs(refs) {
|
|
2530
|
+
return React$1.useMemo(() => {
|
|
2531
|
+
return (value) => {
|
|
2532
|
+
refs.forEach((ref) => {
|
|
2533
|
+
if (ref) ref.current = value;
|
|
2534
|
+
});
|
|
2535
|
+
};
|
|
2536
|
+
}, refs);
|
|
2537
|
+
}
|
|
2538
|
+
var LIST_LIMIT = 20;
|
|
2539
|
+
var previouslyFocusedElements = [];
|
|
2540
|
+
function clearDisconnectedPreviouslyFocusedElements() {
|
|
2541
|
+
previouslyFocusedElements = previouslyFocusedElements.filter((el) => el.isConnected);
|
|
2542
|
+
}
|
|
2543
|
+
function addPreviouslyFocusedElement(element) {
|
|
2544
|
+
clearDisconnectedPreviouslyFocusedElements();
|
|
2545
|
+
if (element && getNodeName(element) !== "body") {
|
|
2546
|
+
previouslyFocusedElements.push(element);
|
|
2547
|
+
if (previouslyFocusedElements.length > LIST_LIMIT) previouslyFocusedElements = previouslyFocusedElements.slice(-20);
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2550
|
+
function getPreviouslyFocusedElement() {
|
|
2551
|
+
clearDisconnectedPreviouslyFocusedElements();
|
|
2552
|
+
return previouslyFocusedElements[previouslyFocusedElements.length - 1];
|
|
2553
|
+
}
|
|
2554
|
+
function getFirstTabbableElement(container) {
|
|
2555
|
+
const tabbableOptions = getTabbableOptions();
|
|
2556
|
+
if (isTabbable(container, tabbableOptions)) return container;
|
|
2557
|
+
return tabbable(container, tabbableOptions)[0] || container;
|
|
2558
|
+
}
|
|
2559
|
+
function handleTabIndex(floatingFocusElement, orderRef) {
|
|
2560
|
+
var _floatingFocusElement;
|
|
2561
|
+
if (!orderRef.current.includes("floating") && !((_floatingFocusElement = floatingFocusElement.getAttribute("role")) != null && _floatingFocusElement.includes("dialog"))) return;
|
|
2562
|
+
const options = getTabbableOptions();
|
|
2563
|
+
const tabbableContent = focusable(floatingFocusElement, options).filter((element) => {
|
|
2564
|
+
const dataTabIndex = element.getAttribute("data-tabindex") || "";
|
|
2565
|
+
return isTabbable(element, options) || element.hasAttribute("data-tabindex") && !dataTabIndex.startsWith("-");
|
|
2566
|
+
});
|
|
2567
|
+
const tabIndex = floatingFocusElement.getAttribute("tabindex");
|
|
2568
|
+
if (orderRef.current.includes("floating") || tabbableContent.length === 0) {
|
|
2569
|
+
if (tabIndex !== "0") floatingFocusElement.setAttribute("tabindex", "0");
|
|
2570
|
+
} else if (tabIndex !== "-1" || floatingFocusElement.hasAttribute("data-tabindex") && floatingFocusElement.getAttribute("data-tabindex") !== "-1") {
|
|
2571
|
+
floatingFocusElement.setAttribute("tabindex", "-1");
|
|
2572
|
+
floatingFocusElement.setAttribute("data-tabindex", "-1");
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
var VisuallyHiddenDismiss = /* @__PURE__ */ React$1.forwardRef(function VisuallyHiddenDismiss$1(props, ref) {
|
|
2576
|
+
return /* @__PURE__ */ jsx("button", {
|
|
2577
|
+
...props,
|
|
2578
|
+
type: "button",
|
|
2579
|
+
ref,
|
|
2580
|
+
tabIndex: -1,
|
|
2581
|
+
style: HIDDEN_STYLES
|
|
2582
|
+
});
|
|
2583
|
+
});
|
|
2584
|
+
function FloatingFocusManager(props) {
|
|
2585
|
+
const { context, children, disabled = false, order = ["content"], guards: _guards = true, initialFocus = 0, returnFocus = true, restoreFocus = false, modal = true, visuallyHiddenDismiss = false, closeOnFocusOut = true, outsideElementsInert = false, getInsideElements: _getInsideElements = () => [] } = props;
|
|
2586
|
+
const { open, onOpenChange, events, dataRef, elements: { domReference, floating } } = context;
|
|
2587
|
+
const getNodeId = useEffectEvent(() => {
|
|
2588
|
+
var _dataRef$current$floa;
|
|
2589
|
+
return (_dataRef$current$floa = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa.nodeId;
|
|
2590
|
+
});
|
|
2591
|
+
const getInsideElements = useEffectEvent(_getInsideElements);
|
|
2592
|
+
const ignoreInitialFocus = typeof initialFocus === "number" && initialFocus < 0;
|
|
2593
|
+
const isUntrappedTypeableCombobox = isTypeableCombobox(domReference) && ignoreInitialFocus;
|
|
2594
|
+
const inertSupported = supportsInert();
|
|
2595
|
+
const guards = inertSupported ? _guards : true;
|
|
2596
|
+
const useInert = !guards || inertSupported && outsideElementsInert;
|
|
2597
|
+
const orderRef = useLatestRef(order);
|
|
2598
|
+
const initialFocusRef = useLatestRef(initialFocus);
|
|
2599
|
+
const returnFocusRef = useLatestRef(returnFocus);
|
|
2600
|
+
const tree = useFloatingTree();
|
|
2601
|
+
const portalContext = usePortalContext();
|
|
2602
|
+
const startDismissButtonRef = React$1.useRef(null);
|
|
2603
|
+
const endDismissButtonRef = React$1.useRef(null);
|
|
2604
|
+
const preventReturnFocusRef = React$1.useRef(false);
|
|
2605
|
+
const isPointerDownRef = React$1.useRef(false);
|
|
2606
|
+
const tabbableIndexRef = React$1.useRef(-1);
|
|
2607
|
+
const blurTimeoutRef = React$1.useRef(-1);
|
|
2608
|
+
const isInsidePortal = portalContext != null;
|
|
2609
|
+
const floatingFocusElement = getFloatingFocusElement(floating);
|
|
2610
|
+
const getTabbableContent = useEffectEvent(function(container) {
|
|
2611
|
+
if (container === void 0) container = floatingFocusElement;
|
|
2612
|
+
return container ? tabbable(container, getTabbableOptions()) : [];
|
|
2613
|
+
});
|
|
2614
|
+
const getTabbableElements = useEffectEvent((container) => {
|
|
2615
|
+
const content = getTabbableContent(container);
|
|
2616
|
+
return orderRef.current.map((type) => {
|
|
2617
|
+
if (domReference && type === "reference") return domReference;
|
|
2618
|
+
if (floatingFocusElement && type === "floating") return floatingFocusElement;
|
|
2619
|
+
return content;
|
|
2620
|
+
}).filter(Boolean).flat();
|
|
2621
|
+
});
|
|
2622
|
+
React$1.useEffect(() => {
|
|
2623
|
+
if (disabled) return;
|
|
2624
|
+
if (!modal) return;
|
|
2625
|
+
function onKeyDown(event) {
|
|
2626
|
+
if (event.key === "Tab") {
|
|
2627
|
+
if (contains(floatingFocusElement, activeElement(getDocument(floatingFocusElement))) && getTabbableContent().length === 0 && !isUntrappedTypeableCombobox) stopEvent(event);
|
|
2628
|
+
const els = getTabbableElements();
|
|
2629
|
+
const target = getTarget(event);
|
|
2630
|
+
if (orderRef.current[0] === "reference" && target === domReference) {
|
|
2631
|
+
stopEvent(event);
|
|
2632
|
+
if (event.shiftKey) enqueueFocus(els[els.length - 1]);
|
|
2633
|
+
else enqueueFocus(els[1]);
|
|
2634
|
+
}
|
|
2635
|
+
if (orderRef.current[1] === "floating" && target === floatingFocusElement && event.shiftKey) {
|
|
2636
|
+
stopEvent(event);
|
|
2637
|
+
enqueueFocus(els[0]);
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
const doc = getDocument(floatingFocusElement);
|
|
2642
|
+
doc.addEventListener("keydown", onKeyDown);
|
|
2643
|
+
return () => {
|
|
2644
|
+
doc.removeEventListener("keydown", onKeyDown);
|
|
2645
|
+
};
|
|
2646
|
+
}, [
|
|
2647
|
+
disabled,
|
|
2648
|
+
domReference,
|
|
2649
|
+
floatingFocusElement,
|
|
2650
|
+
modal,
|
|
2651
|
+
orderRef,
|
|
2652
|
+
isUntrappedTypeableCombobox,
|
|
2653
|
+
getTabbableContent,
|
|
2654
|
+
getTabbableElements
|
|
2655
|
+
]);
|
|
2656
|
+
React$1.useEffect(() => {
|
|
2657
|
+
if (disabled) return;
|
|
2658
|
+
if (!floating) return;
|
|
2659
|
+
function handleFocusIn(event) {
|
|
2660
|
+
const target = getTarget(event);
|
|
2661
|
+
const tabbableIndex = getTabbableContent().indexOf(target);
|
|
2662
|
+
if (tabbableIndex !== -1) tabbableIndexRef.current = tabbableIndex;
|
|
2663
|
+
}
|
|
2664
|
+
floating.addEventListener("focusin", handleFocusIn);
|
|
2665
|
+
return () => {
|
|
2666
|
+
floating.removeEventListener("focusin", handleFocusIn);
|
|
2667
|
+
};
|
|
2668
|
+
}, [
|
|
2669
|
+
disabled,
|
|
2670
|
+
floating,
|
|
2671
|
+
getTabbableContent
|
|
2672
|
+
]);
|
|
2673
|
+
React$1.useEffect(() => {
|
|
2674
|
+
if (disabled) return;
|
|
2675
|
+
if (!closeOnFocusOut) return;
|
|
2676
|
+
function handlePointerDown() {
|
|
2677
|
+
isPointerDownRef.current = true;
|
|
2678
|
+
setTimeout(() => {
|
|
2679
|
+
isPointerDownRef.current = false;
|
|
2680
|
+
});
|
|
2681
|
+
}
|
|
2682
|
+
function handleFocusOutside(event) {
|
|
2683
|
+
const relatedTarget = event.relatedTarget;
|
|
2684
|
+
const currentTarget = event.currentTarget;
|
|
2685
|
+
const target = getTarget(event);
|
|
2686
|
+
queueMicrotask(() => {
|
|
2687
|
+
const nodeId = getNodeId();
|
|
2688
|
+
const movedToUnrelatedNode = !(contains(domReference, relatedTarget) || contains(floating, relatedTarget) || contains(relatedTarget, floating) || contains(portalContext == null ? void 0 : portalContext.portalNode, relatedTarget) || relatedTarget != null && relatedTarget.hasAttribute(createAttribute("focus-guard")) || tree && (getNodeChildren(tree.nodesRef.current, nodeId).find((node) => {
|
|
2689
|
+
var _node$context, _node$context2;
|
|
2690
|
+
return contains((_node$context = node.context) == null ? void 0 : _node$context.elements.floating, relatedTarget) || contains((_node$context2 = node.context) == null ? void 0 : _node$context2.elements.domReference, relatedTarget);
|
|
2691
|
+
}) || getNodeAncestors(tree.nodesRef.current, nodeId).find((node) => {
|
|
2692
|
+
var _node$context3, _node$context4, _node$context5;
|
|
2693
|
+
return [(_node$context3 = node.context) == null ? void 0 : _node$context3.elements.floating, getFloatingFocusElement((_node$context4 = node.context) == null ? void 0 : _node$context4.elements.floating)].includes(relatedTarget) || ((_node$context5 = node.context) == null ? void 0 : _node$context5.elements.domReference) === relatedTarget;
|
|
2694
|
+
})));
|
|
2695
|
+
if (currentTarget === domReference && floatingFocusElement) handleTabIndex(floatingFocusElement, orderRef);
|
|
2696
|
+
if (restoreFocus && currentTarget !== domReference && !(target != null && target.isConnected) && activeElement(getDocument(floatingFocusElement)) === getDocument(floatingFocusElement).body) {
|
|
2697
|
+
if (isHTMLElement(floatingFocusElement)) floatingFocusElement.focus();
|
|
2698
|
+
const prevTabbableIndex = tabbableIndexRef.current;
|
|
2699
|
+
const tabbableContent = getTabbableContent();
|
|
2700
|
+
const nodeToFocus = tabbableContent[prevTabbableIndex] || tabbableContent[tabbableContent.length - 1] || floatingFocusElement;
|
|
2701
|
+
if (isHTMLElement(nodeToFocus)) nodeToFocus.focus();
|
|
2702
|
+
}
|
|
2703
|
+
if (dataRef.current.insideReactTree) {
|
|
2704
|
+
dataRef.current.insideReactTree = false;
|
|
2705
|
+
return;
|
|
2706
|
+
}
|
|
2707
|
+
if ((isUntrappedTypeableCombobox ? true : !modal) && relatedTarget && movedToUnrelatedNode && !isPointerDownRef.current && relatedTarget !== getPreviouslyFocusedElement()) {
|
|
2708
|
+
preventReturnFocusRef.current = true;
|
|
2709
|
+
onOpenChange(false, event, "focus-out");
|
|
2710
|
+
}
|
|
2711
|
+
});
|
|
2712
|
+
}
|
|
2713
|
+
const shouldHandleBlurCapture = Boolean(!tree && portalContext);
|
|
2714
|
+
function markInsideReactTree() {
|
|
2715
|
+
clearTimeoutIfSet(blurTimeoutRef);
|
|
2716
|
+
dataRef.current.insideReactTree = true;
|
|
2717
|
+
blurTimeoutRef.current = window.setTimeout(() => {
|
|
2718
|
+
dataRef.current.insideReactTree = false;
|
|
2719
|
+
});
|
|
2720
|
+
}
|
|
2721
|
+
if (floating && isHTMLElement(domReference)) {
|
|
2722
|
+
domReference.addEventListener("focusout", handleFocusOutside);
|
|
2723
|
+
domReference.addEventListener("pointerdown", handlePointerDown);
|
|
2724
|
+
floating.addEventListener("focusout", handleFocusOutside);
|
|
2725
|
+
if (shouldHandleBlurCapture) floating.addEventListener("focusout", markInsideReactTree, true);
|
|
2726
|
+
return () => {
|
|
2727
|
+
domReference.removeEventListener("focusout", handleFocusOutside);
|
|
2728
|
+
domReference.removeEventListener("pointerdown", handlePointerDown);
|
|
2729
|
+
floating.removeEventListener("focusout", handleFocusOutside);
|
|
2730
|
+
if (shouldHandleBlurCapture) floating.removeEventListener("focusout", markInsideReactTree, true);
|
|
2731
|
+
};
|
|
2732
|
+
}
|
|
2733
|
+
}, [
|
|
2734
|
+
disabled,
|
|
2735
|
+
domReference,
|
|
2736
|
+
floating,
|
|
2737
|
+
floatingFocusElement,
|
|
2738
|
+
modal,
|
|
2739
|
+
tree,
|
|
2740
|
+
portalContext,
|
|
2741
|
+
onOpenChange,
|
|
2742
|
+
closeOnFocusOut,
|
|
2743
|
+
restoreFocus,
|
|
2744
|
+
getTabbableContent,
|
|
2745
|
+
isUntrappedTypeableCombobox,
|
|
2746
|
+
getNodeId,
|
|
2747
|
+
orderRef,
|
|
2748
|
+
dataRef
|
|
2749
|
+
]);
|
|
2750
|
+
const beforeGuardRef = React$1.useRef(null);
|
|
2751
|
+
const afterGuardRef = React$1.useRef(null);
|
|
2752
|
+
const mergedBeforeGuardRef = useLiteMergeRefs([beforeGuardRef, portalContext == null ? void 0 : portalContext.beforeInsideRef]);
|
|
2753
|
+
const mergedAfterGuardRef = useLiteMergeRefs([afterGuardRef, portalContext == null ? void 0 : portalContext.afterInsideRef]);
|
|
2754
|
+
React$1.useEffect(() => {
|
|
2755
|
+
var _portalContext$portal, _ancestors$find;
|
|
2756
|
+
if (disabled) return;
|
|
2757
|
+
if (!floating) return;
|
|
2758
|
+
const portalNodes = Array.from((portalContext == null || (_portalContext$portal = portalContext.portalNode) == null ? void 0 : _portalContext$portal.querySelectorAll("[" + createAttribute("portal") + "]")) || []);
|
|
2759
|
+
const insideElements = [
|
|
2760
|
+
floating,
|
|
2761
|
+
(_ancestors$find = (tree ? getNodeAncestors(tree.nodesRef.current, getNodeId()) : []).find((node) => {
|
|
2762
|
+
var _node$context6;
|
|
2763
|
+
return isTypeableCombobox(((_node$context6 = node.context) == null ? void 0 : _node$context6.elements.domReference) || null);
|
|
2764
|
+
})) == null || (_ancestors$find = _ancestors$find.context) == null ? void 0 : _ancestors$find.elements.domReference,
|
|
2765
|
+
...portalNodes,
|
|
2766
|
+
...getInsideElements(),
|
|
2767
|
+
startDismissButtonRef.current,
|
|
2768
|
+
endDismissButtonRef.current,
|
|
2769
|
+
beforeGuardRef.current,
|
|
2770
|
+
afterGuardRef.current,
|
|
2771
|
+
portalContext == null ? void 0 : portalContext.beforeOutsideRef.current,
|
|
2772
|
+
portalContext == null ? void 0 : portalContext.afterOutsideRef.current,
|
|
2773
|
+
orderRef.current.includes("reference") || isUntrappedTypeableCombobox ? domReference : null
|
|
2774
|
+
].filter((x) => x != null);
|
|
2775
|
+
const cleanup = modal || isUntrappedTypeableCombobox ? markOthers(insideElements, !useInert, useInert) : markOthers(insideElements);
|
|
2776
|
+
return () => {
|
|
2777
|
+
cleanup();
|
|
2778
|
+
};
|
|
2779
|
+
}, [
|
|
2780
|
+
disabled,
|
|
2781
|
+
domReference,
|
|
2782
|
+
floating,
|
|
2783
|
+
modal,
|
|
2784
|
+
orderRef,
|
|
2785
|
+
portalContext,
|
|
2786
|
+
isUntrappedTypeableCombobox,
|
|
2787
|
+
guards,
|
|
2788
|
+
useInert,
|
|
2789
|
+
tree,
|
|
2790
|
+
getNodeId,
|
|
2791
|
+
getInsideElements
|
|
2792
|
+
]);
|
|
2793
|
+
index(() => {
|
|
2794
|
+
if (disabled || !isHTMLElement(floatingFocusElement)) return;
|
|
2795
|
+
const previouslyFocusedElement = activeElement(getDocument(floatingFocusElement));
|
|
2796
|
+
queueMicrotask(() => {
|
|
2797
|
+
const focusableElements = getTabbableElements(floatingFocusElement);
|
|
2798
|
+
const initialFocusValue = initialFocusRef.current;
|
|
2799
|
+
const elToFocus = (typeof initialFocusValue === "number" ? focusableElements[initialFocusValue] : initialFocusValue.current) || floatingFocusElement;
|
|
2800
|
+
const focusAlreadyInsideFloatingEl = contains(floatingFocusElement, previouslyFocusedElement);
|
|
2801
|
+
if (!ignoreInitialFocus && !focusAlreadyInsideFloatingEl && open) enqueueFocus(elToFocus, { preventScroll: elToFocus === floatingFocusElement });
|
|
2802
|
+
});
|
|
2803
|
+
}, [
|
|
2804
|
+
disabled,
|
|
2805
|
+
open,
|
|
2806
|
+
floatingFocusElement,
|
|
2807
|
+
ignoreInitialFocus,
|
|
2808
|
+
getTabbableElements,
|
|
2809
|
+
initialFocusRef
|
|
2810
|
+
]);
|
|
2811
|
+
index(() => {
|
|
2812
|
+
if (disabled || !floatingFocusElement) return;
|
|
2813
|
+
const doc = getDocument(floatingFocusElement);
|
|
2814
|
+
addPreviouslyFocusedElement(activeElement(doc));
|
|
2815
|
+
function onOpenChange$1(_ref) {
|
|
2816
|
+
let { reason, event, nested } = _ref;
|
|
2817
|
+
if (["hover", "safe-polygon"].includes(reason) && event.type === "mouseleave") preventReturnFocusRef.current = true;
|
|
2818
|
+
if (reason !== "outside-press") return;
|
|
2819
|
+
if (nested) preventReturnFocusRef.current = false;
|
|
2820
|
+
else if (isVirtualClick(event) || isVirtualPointerEvent(event)) preventReturnFocusRef.current = false;
|
|
2821
|
+
else {
|
|
2822
|
+
let isPreventScrollSupported = false;
|
|
2823
|
+
document.createElement("div").focus({ get preventScroll() {
|
|
2824
|
+
isPreventScrollSupported = true;
|
|
2825
|
+
return false;
|
|
2826
|
+
} });
|
|
2827
|
+
if (isPreventScrollSupported) preventReturnFocusRef.current = false;
|
|
2828
|
+
else preventReturnFocusRef.current = true;
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
events.on("openchange", onOpenChange$1);
|
|
2832
|
+
const fallbackEl = doc.createElement("span");
|
|
2833
|
+
fallbackEl.setAttribute("tabindex", "-1");
|
|
2834
|
+
fallbackEl.setAttribute("aria-hidden", "true");
|
|
2835
|
+
Object.assign(fallbackEl.style, HIDDEN_STYLES);
|
|
2836
|
+
if (isInsidePortal && domReference) domReference.insertAdjacentElement("afterend", fallbackEl);
|
|
2837
|
+
function getReturnElement() {
|
|
2838
|
+
if (typeof returnFocusRef.current === "boolean") {
|
|
2839
|
+
const el = domReference || getPreviouslyFocusedElement();
|
|
2840
|
+
return el && el.isConnected ? el : fallbackEl;
|
|
2841
|
+
}
|
|
2842
|
+
return returnFocusRef.current.current || fallbackEl;
|
|
2843
|
+
}
|
|
2844
|
+
return () => {
|
|
2845
|
+
events.off("openchange", onOpenChange$1);
|
|
2846
|
+
const activeEl = activeElement(doc);
|
|
2847
|
+
const isFocusInsideFloatingTree = contains(floating, activeEl) || tree && getNodeChildren(tree.nodesRef.current, getNodeId(), false).some((node) => {
|
|
2848
|
+
var _node$context7;
|
|
2849
|
+
return contains((_node$context7 = node.context) == null ? void 0 : _node$context7.elements.floating, activeEl);
|
|
2850
|
+
});
|
|
2851
|
+
const returnElement = getReturnElement();
|
|
2852
|
+
queueMicrotask(() => {
|
|
2853
|
+
const tabbableReturnElement = getFirstTabbableElement(returnElement);
|
|
2854
|
+
if (returnFocusRef.current && !preventReturnFocusRef.current && isHTMLElement(tabbableReturnElement) && (tabbableReturnElement !== activeEl && activeEl !== doc.body ? isFocusInsideFloatingTree : true)) tabbableReturnElement.focus({ preventScroll: true });
|
|
2855
|
+
fallbackEl.remove();
|
|
2856
|
+
});
|
|
2857
|
+
};
|
|
2858
|
+
}, [
|
|
2859
|
+
disabled,
|
|
2860
|
+
floating,
|
|
2861
|
+
floatingFocusElement,
|
|
2862
|
+
returnFocusRef,
|
|
2863
|
+
dataRef,
|
|
2864
|
+
events,
|
|
2865
|
+
tree,
|
|
2866
|
+
isInsidePortal,
|
|
2867
|
+
domReference,
|
|
2868
|
+
getNodeId
|
|
2869
|
+
]);
|
|
2870
|
+
React$1.useEffect(() => {
|
|
2871
|
+
queueMicrotask(() => {
|
|
2872
|
+
preventReturnFocusRef.current = false;
|
|
2873
|
+
});
|
|
2874
|
+
return () => {
|
|
2875
|
+
queueMicrotask(clearDisconnectedPreviouslyFocusedElements);
|
|
2876
|
+
};
|
|
2877
|
+
}, [disabled]);
|
|
2878
|
+
index(() => {
|
|
2879
|
+
if (disabled) return;
|
|
2880
|
+
if (!portalContext) return;
|
|
2881
|
+
portalContext.setFocusManagerState({
|
|
2882
|
+
modal,
|
|
2883
|
+
closeOnFocusOut,
|
|
2884
|
+
open,
|
|
2885
|
+
onOpenChange,
|
|
2886
|
+
domReference
|
|
2887
|
+
});
|
|
2888
|
+
return () => {
|
|
2889
|
+
portalContext.setFocusManagerState(null);
|
|
2890
|
+
};
|
|
2891
|
+
}, [
|
|
2892
|
+
disabled,
|
|
2893
|
+
portalContext,
|
|
2894
|
+
modal,
|
|
2895
|
+
open,
|
|
2896
|
+
onOpenChange,
|
|
2897
|
+
closeOnFocusOut,
|
|
2898
|
+
domReference
|
|
2899
|
+
]);
|
|
2900
|
+
index(() => {
|
|
2901
|
+
if (disabled) return;
|
|
2902
|
+
if (!floatingFocusElement) return;
|
|
2903
|
+
handleTabIndex(floatingFocusElement, orderRef);
|
|
2904
|
+
}, [
|
|
2905
|
+
disabled,
|
|
2906
|
+
floatingFocusElement,
|
|
2907
|
+
orderRef
|
|
2908
|
+
]);
|
|
2909
|
+
function renderDismissButton(location) {
|
|
2910
|
+
if (disabled || !visuallyHiddenDismiss || !modal) return null;
|
|
2911
|
+
return /* @__PURE__ */ jsx(VisuallyHiddenDismiss, {
|
|
2912
|
+
ref: location === "start" ? startDismissButtonRef : endDismissButtonRef,
|
|
2913
|
+
onClick: (event) => onOpenChange(false, event.nativeEvent),
|
|
2914
|
+
children: typeof visuallyHiddenDismiss === "string" ? visuallyHiddenDismiss : "Dismiss"
|
|
2915
|
+
});
|
|
2916
|
+
}
|
|
2917
|
+
const shouldRenderGuards = !disabled && guards && (modal ? !isUntrappedTypeableCombobox : true) && (isInsidePortal || modal);
|
|
2918
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2919
|
+
shouldRenderGuards && /* @__PURE__ */ jsx(FocusGuard, {
|
|
2920
|
+
"data-type": "inside",
|
|
2921
|
+
ref: mergedBeforeGuardRef,
|
|
2922
|
+
onFocus: (event) => {
|
|
2923
|
+
if (modal) {
|
|
2924
|
+
const els = getTabbableElements();
|
|
2925
|
+
enqueueFocus(order[0] === "reference" ? els[0] : els[els.length - 1]);
|
|
2926
|
+
} else if (portalContext != null && portalContext.preserveTabOrder && portalContext.portalNode) {
|
|
2927
|
+
preventReturnFocusRef.current = false;
|
|
2928
|
+
if (isOutsideEvent(event, portalContext.portalNode)) getNextTabbable(domReference)?.focus();
|
|
2929
|
+
else {
|
|
2930
|
+
var _portalContext$before;
|
|
2931
|
+
(_portalContext$before = portalContext.beforeOutsideRef.current) == null || _portalContext$before.focus();
|
|
2932
|
+
}
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
}),
|
|
2936
|
+
!isUntrappedTypeableCombobox && renderDismissButton("start"),
|
|
2937
|
+
children,
|
|
2938
|
+
renderDismissButton("end"),
|
|
2939
|
+
shouldRenderGuards && /* @__PURE__ */ jsx(FocusGuard, {
|
|
2940
|
+
"data-type": "inside",
|
|
2941
|
+
ref: mergedAfterGuardRef,
|
|
2942
|
+
onFocus: (event) => {
|
|
2943
|
+
if (modal) enqueueFocus(getTabbableElements()[0]);
|
|
2944
|
+
else if (portalContext != null && portalContext.preserveTabOrder && portalContext.portalNode) {
|
|
2945
|
+
if (closeOnFocusOut) preventReturnFocusRef.current = true;
|
|
2946
|
+
if (isOutsideEvent(event, portalContext.portalNode)) getPreviousTabbable(domReference)?.focus();
|
|
2947
|
+
else {
|
|
2948
|
+
var _portalContext$afterO;
|
|
2949
|
+
(_portalContext$afterO = portalContext.afterOutsideRef.current) == null || _portalContext$afterO.focus();
|
|
2950
|
+
}
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
})
|
|
2954
|
+
] });
|
|
2955
|
+
}
|
|
2956
|
+
function isButtonTarget(event) {
|
|
2957
|
+
return isHTMLElement(event.target) && event.target.tagName === "BUTTON";
|
|
2958
|
+
}
|
|
2959
|
+
function isAnchorTarget(event) {
|
|
2960
|
+
return isHTMLElement(event.target) && event.target.tagName === "A";
|
|
2961
|
+
}
|
|
2962
|
+
function isSpaceIgnored(element) {
|
|
2963
|
+
return isTypeableElement(element);
|
|
2964
|
+
}
|
|
2965
|
+
function useClick(context, props) {
|
|
2966
|
+
if (props === void 0) props = {};
|
|
2967
|
+
const { open, onOpenChange, dataRef, elements: { domReference } } = context;
|
|
2968
|
+
const { enabled = true, event: eventOption = "click", toggle = true, ignoreMouse = false, keyboardHandlers = true, stickIfOpen = true } = props;
|
|
2969
|
+
const pointerTypeRef = React$1.useRef();
|
|
2970
|
+
const didKeyDownRef = React$1.useRef(false);
|
|
2971
|
+
const reference = React$1.useMemo(() => ({
|
|
2972
|
+
onPointerDown(event) {
|
|
2973
|
+
pointerTypeRef.current = event.pointerType;
|
|
2974
|
+
},
|
|
2975
|
+
onMouseDown(event) {
|
|
2976
|
+
const pointerType = pointerTypeRef.current;
|
|
2977
|
+
if (event.button !== 0) return;
|
|
2978
|
+
if (eventOption === "click") return;
|
|
2979
|
+
if (isMouseLikePointerType(pointerType, true) && ignoreMouse) return;
|
|
2980
|
+
if (open && toggle && (dataRef.current.openEvent && stickIfOpen ? dataRef.current.openEvent.type === "mousedown" : true)) onOpenChange(false, event.nativeEvent, "click");
|
|
2981
|
+
else {
|
|
2982
|
+
event.preventDefault();
|
|
2983
|
+
onOpenChange(true, event.nativeEvent, "click");
|
|
2984
|
+
}
|
|
2985
|
+
},
|
|
2986
|
+
onClick(event) {
|
|
2987
|
+
const pointerType = pointerTypeRef.current;
|
|
2988
|
+
if (eventOption === "mousedown" && pointerTypeRef.current) {
|
|
2989
|
+
pointerTypeRef.current = void 0;
|
|
2990
|
+
return;
|
|
2991
|
+
}
|
|
2992
|
+
if (isMouseLikePointerType(pointerType, true) && ignoreMouse) return;
|
|
2993
|
+
if (open && toggle && (dataRef.current.openEvent && stickIfOpen ? dataRef.current.openEvent.type === "click" : true)) onOpenChange(false, event.nativeEvent, "click");
|
|
2994
|
+
else onOpenChange(true, event.nativeEvent, "click");
|
|
2995
|
+
},
|
|
2996
|
+
onKeyDown(event) {
|
|
2997
|
+
pointerTypeRef.current = void 0;
|
|
2998
|
+
if (event.defaultPrevented || !keyboardHandlers || isButtonTarget(event)) return;
|
|
2999
|
+
if (event.key === " " && !isSpaceIgnored(domReference)) {
|
|
3000
|
+
event.preventDefault();
|
|
3001
|
+
didKeyDownRef.current = true;
|
|
3002
|
+
}
|
|
3003
|
+
if (isAnchorTarget(event)) return;
|
|
3004
|
+
if (event.key === "Enter") if (open && toggle) onOpenChange(false, event.nativeEvent, "click");
|
|
3005
|
+
else onOpenChange(true, event.nativeEvent, "click");
|
|
3006
|
+
},
|
|
3007
|
+
onKeyUp(event) {
|
|
3008
|
+
if (event.defaultPrevented || !keyboardHandlers || isButtonTarget(event) || isSpaceIgnored(domReference)) return;
|
|
3009
|
+
if (event.key === " " && didKeyDownRef.current) {
|
|
3010
|
+
didKeyDownRef.current = false;
|
|
3011
|
+
if (open && toggle) onOpenChange(false, event.nativeEvent, "click");
|
|
3012
|
+
else onOpenChange(true, event.nativeEvent, "click");
|
|
3013
|
+
}
|
|
3014
|
+
}
|
|
3015
|
+
}), [
|
|
3016
|
+
dataRef,
|
|
3017
|
+
domReference,
|
|
3018
|
+
eventOption,
|
|
3019
|
+
ignoreMouse,
|
|
3020
|
+
keyboardHandlers,
|
|
3021
|
+
onOpenChange,
|
|
3022
|
+
open,
|
|
3023
|
+
stickIfOpen,
|
|
3024
|
+
toggle
|
|
3025
|
+
]);
|
|
3026
|
+
return React$1.useMemo(() => enabled ? { reference } : {}, [enabled, reference]);
|
|
3027
|
+
}
|
|
3028
|
+
var bubbleHandlerKeys = {
|
|
3029
|
+
pointerdown: "onPointerDown",
|
|
3030
|
+
mousedown: "onMouseDown",
|
|
3031
|
+
click: "onClick"
|
|
3032
|
+
};
|
|
3033
|
+
var captureHandlerKeys = {
|
|
3034
|
+
pointerdown: "onPointerDownCapture",
|
|
3035
|
+
mousedown: "onMouseDownCapture",
|
|
3036
|
+
click: "onClickCapture"
|
|
3037
|
+
};
|
|
3038
|
+
var normalizeProp = (normalizable) => {
|
|
3039
|
+
var _normalizable$escapeK, _normalizable$outside;
|
|
3040
|
+
return {
|
|
3041
|
+
escapeKey: typeof normalizable === "boolean" ? normalizable : (_normalizable$escapeK = normalizable == null ? void 0 : normalizable.escapeKey) != null ? _normalizable$escapeK : false,
|
|
3042
|
+
outsidePress: typeof normalizable === "boolean" ? normalizable : (_normalizable$outside = normalizable == null ? void 0 : normalizable.outsidePress) != null ? _normalizable$outside : true
|
|
3043
|
+
};
|
|
3044
|
+
};
|
|
3045
|
+
function useDismiss(context, props) {
|
|
3046
|
+
if (props === void 0) props = {};
|
|
3047
|
+
const { open, onOpenChange, elements, dataRef } = context;
|
|
3048
|
+
const { enabled = true, escapeKey = true, outsidePress: unstable_outsidePress = true, outsidePressEvent = "pointerdown", referencePress = false, referencePressEvent = "pointerdown", ancestorScroll = false, bubbles, capture } = props;
|
|
3049
|
+
const tree = useFloatingTree();
|
|
3050
|
+
const outsidePressFn = useEffectEvent(typeof unstable_outsidePress === "function" ? unstable_outsidePress : () => false);
|
|
3051
|
+
const outsidePress = typeof unstable_outsidePress === "function" ? outsidePressFn : unstable_outsidePress;
|
|
3052
|
+
const endedOrStartedInsideRef = React$1.useRef(false);
|
|
3053
|
+
const { escapeKey: escapeKeyBubbles, outsidePress: outsidePressBubbles } = normalizeProp(bubbles);
|
|
3054
|
+
const { escapeKey: escapeKeyCapture, outsidePress: outsidePressCapture } = normalizeProp(capture);
|
|
3055
|
+
const isComposingRef = React$1.useRef(false);
|
|
3056
|
+
const closeOnEscapeKeyDown = useEffectEvent((event) => {
|
|
3057
|
+
var _dataRef$current$floa;
|
|
3058
|
+
if (!open || !enabled || !escapeKey || event.key !== "Escape") return;
|
|
3059
|
+
if (isComposingRef.current) return;
|
|
3060
|
+
const nodeId = (_dataRef$current$floa = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa.nodeId;
|
|
3061
|
+
const children = tree ? getNodeChildren(tree.nodesRef.current, nodeId) : [];
|
|
3062
|
+
if (!escapeKeyBubbles) {
|
|
3063
|
+
event.stopPropagation();
|
|
3064
|
+
if (children.length > 0) {
|
|
3065
|
+
let shouldDismiss = true;
|
|
3066
|
+
children.forEach((child) => {
|
|
3067
|
+
var _child$context;
|
|
3068
|
+
if ((_child$context = child.context) != null && _child$context.open && !child.context.dataRef.current.__escapeKeyBubbles) {
|
|
3069
|
+
shouldDismiss = false;
|
|
3070
|
+
return;
|
|
3071
|
+
}
|
|
3072
|
+
});
|
|
3073
|
+
if (!shouldDismiss) return;
|
|
3074
|
+
}
|
|
3075
|
+
}
|
|
3076
|
+
onOpenChange(false, isReactEvent(event) ? event.nativeEvent : event, "escape-key");
|
|
3077
|
+
});
|
|
3078
|
+
const closeOnEscapeKeyDownCapture = useEffectEvent((event) => {
|
|
3079
|
+
var _getTarget2;
|
|
3080
|
+
const callback = () => {
|
|
3081
|
+
var _getTarget;
|
|
3082
|
+
closeOnEscapeKeyDown(event);
|
|
3083
|
+
(_getTarget = getTarget(event)) == null || _getTarget.removeEventListener("keydown", callback);
|
|
3084
|
+
};
|
|
3085
|
+
(_getTarget2 = getTarget(event)) == null || _getTarget2.addEventListener("keydown", callback);
|
|
3086
|
+
});
|
|
3087
|
+
const closeOnPressOutside = useEffectEvent((event) => {
|
|
3088
|
+
var _dataRef$current$floa2;
|
|
3089
|
+
const insideReactTree = dataRef.current.insideReactTree;
|
|
3090
|
+
dataRef.current.insideReactTree = false;
|
|
3091
|
+
const endedOrStartedInside = endedOrStartedInsideRef.current;
|
|
3092
|
+
endedOrStartedInsideRef.current = false;
|
|
3093
|
+
if (outsidePressEvent === "click" && endedOrStartedInside) return;
|
|
3094
|
+
if (insideReactTree) return;
|
|
3095
|
+
if (typeof outsidePress === "function" && !outsidePress(event)) return;
|
|
3096
|
+
const target = getTarget(event);
|
|
3097
|
+
const inertSelector = "[" + createAttribute("inert") + "]";
|
|
3098
|
+
const markers = getDocument(elements.floating).querySelectorAll(inertSelector);
|
|
3099
|
+
let targetRootAncestor = isElement(target) ? target : null;
|
|
3100
|
+
while (targetRootAncestor && !isLastTraversableNode(targetRootAncestor)) {
|
|
3101
|
+
const nextParent = getParentNode(targetRootAncestor);
|
|
3102
|
+
if (isLastTraversableNode(nextParent) || !isElement(nextParent)) break;
|
|
3103
|
+
targetRootAncestor = nextParent;
|
|
3104
|
+
}
|
|
3105
|
+
if (markers.length && isElement(target) && !isRootElement(target) && !contains(target, elements.floating) && Array.from(markers).every((marker) => !contains(targetRootAncestor, marker))) return;
|
|
3106
|
+
if (isHTMLElement(target) && floating) {
|
|
3107
|
+
const lastTraversableNode = isLastTraversableNode(target);
|
|
3108
|
+
const style = getComputedStyle$1(target);
|
|
3109
|
+
const scrollRe = /auto|scroll/;
|
|
3110
|
+
const isScrollableX = lastTraversableNode || scrollRe.test(style.overflowX);
|
|
3111
|
+
const isScrollableY = lastTraversableNode || scrollRe.test(style.overflowY);
|
|
3112
|
+
const canScrollX = isScrollableX && target.clientWidth > 0 && target.scrollWidth > target.clientWidth;
|
|
3113
|
+
const canScrollY = isScrollableY && target.clientHeight > 0 && target.scrollHeight > target.clientHeight;
|
|
3114
|
+
const isRTL$1 = style.direction === "rtl";
|
|
3115
|
+
const pressedVerticalScrollbar = canScrollY && (isRTL$1 ? event.offsetX <= target.offsetWidth - target.clientWidth : event.offsetX > target.clientWidth);
|
|
3116
|
+
const pressedHorizontalScrollbar = canScrollX && event.offsetY > target.clientHeight;
|
|
3117
|
+
if (pressedVerticalScrollbar || pressedHorizontalScrollbar) return;
|
|
3118
|
+
}
|
|
3119
|
+
const nodeId = (_dataRef$current$floa2 = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa2.nodeId;
|
|
3120
|
+
const targetIsInsideChildren = tree && getNodeChildren(tree.nodesRef.current, nodeId).some((node) => {
|
|
3121
|
+
var _node$context;
|
|
3122
|
+
return isEventTargetWithin(event, (_node$context = node.context) == null ? void 0 : _node$context.elements.floating);
|
|
3123
|
+
});
|
|
3124
|
+
if (isEventTargetWithin(event, elements.floating) || isEventTargetWithin(event, elements.domReference) || targetIsInsideChildren) return;
|
|
3125
|
+
const children = tree ? getNodeChildren(tree.nodesRef.current, nodeId) : [];
|
|
3126
|
+
if (children.length > 0) {
|
|
3127
|
+
let shouldDismiss = true;
|
|
3128
|
+
children.forEach((child) => {
|
|
3129
|
+
var _child$context2;
|
|
3130
|
+
if ((_child$context2 = child.context) != null && _child$context2.open && !child.context.dataRef.current.__outsidePressBubbles) {
|
|
3131
|
+
shouldDismiss = false;
|
|
3132
|
+
return;
|
|
3133
|
+
}
|
|
3134
|
+
});
|
|
3135
|
+
if (!shouldDismiss) return;
|
|
3136
|
+
}
|
|
3137
|
+
onOpenChange(false, event, "outside-press");
|
|
3138
|
+
});
|
|
3139
|
+
const closeOnPressOutsideCapture = useEffectEvent((event) => {
|
|
3140
|
+
var _getTarget4;
|
|
3141
|
+
const callback = () => {
|
|
3142
|
+
var _getTarget3;
|
|
3143
|
+
closeOnPressOutside(event);
|
|
3144
|
+
(_getTarget3 = getTarget(event)) == null || _getTarget3.removeEventListener(outsidePressEvent, callback);
|
|
3145
|
+
};
|
|
3146
|
+
(_getTarget4 = getTarget(event)) == null || _getTarget4.addEventListener(outsidePressEvent, callback);
|
|
3147
|
+
});
|
|
3148
|
+
React$1.useEffect(() => {
|
|
3149
|
+
if (!open || !enabled) return;
|
|
3150
|
+
dataRef.current.__escapeKeyBubbles = escapeKeyBubbles;
|
|
3151
|
+
dataRef.current.__outsidePressBubbles = outsidePressBubbles;
|
|
3152
|
+
let compositionTimeout = -1;
|
|
3153
|
+
function onScroll(event) {
|
|
3154
|
+
onOpenChange(false, event, "ancestor-scroll");
|
|
3155
|
+
}
|
|
3156
|
+
function handleCompositionStart() {
|
|
3157
|
+
window.clearTimeout(compositionTimeout);
|
|
3158
|
+
isComposingRef.current = true;
|
|
3159
|
+
}
|
|
3160
|
+
function handleCompositionEnd() {
|
|
3161
|
+
compositionTimeout = window.setTimeout(() => {
|
|
3162
|
+
isComposingRef.current = false;
|
|
3163
|
+
}, isWebKit() ? 5 : 0);
|
|
3164
|
+
}
|
|
3165
|
+
const doc = getDocument(elements.floating);
|
|
3166
|
+
if (escapeKey) {
|
|
3167
|
+
doc.addEventListener("keydown", escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture);
|
|
3168
|
+
doc.addEventListener("compositionstart", handleCompositionStart);
|
|
3169
|
+
doc.addEventListener("compositionend", handleCompositionEnd);
|
|
3170
|
+
}
|
|
3171
|
+
outsidePress && doc.addEventListener(outsidePressEvent, outsidePressCapture ? closeOnPressOutsideCapture : closeOnPressOutside, outsidePressCapture);
|
|
3172
|
+
let ancestors = [];
|
|
3173
|
+
if (ancestorScroll) {
|
|
3174
|
+
if (isElement(elements.domReference)) ancestors = getOverflowAncestors(elements.domReference);
|
|
3175
|
+
if (isElement(elements.floating)) ancestors = ancestors.concat(getOverflowAncestors(elements.floating));
|
|
3176
|
+
if (!isElement(elements.reference) && elements.reference && elements.reference.contextElement) ancestors = ancestors.concat(getOverflowAncestors(elements.reference.contextElement));
|
|
3177
|
+
}
|
|
3178
|
+
ancestors = ancestors.filter((ancestor) => {
|
|
3179
|
+
var _doc$defaultView;
|
|
3180
|
+
return ancestor !== ((_doc$defaultView = doc.defaultView) == null ? void 0 : _doc$defaultView.visualViewport);
|
|
3181
|
+
});
|
|
3182
|
+
ancestors.forEach((ancestor) => {
|
|
3183
|
+
ancestor.addEventListener("scroll", onScroll, { passive: true });
|
|
3184
|
+
});
|
|
3185
|
+
return () => {
|
|
3186
|
+
if (escapeKey) {
|
|
3187
|
+
doc.removeEventListener("keydown", escapeKeyCapture ? closeOnEscapeKeyDownCapture : closeOnEscapeKeyDown, escapeKeyCapture);
|
|
3188
|
+
doc.removeEventListener("compositionstart", handleCompositionStart);
|
|
3189
|
+
doc.removeEventListener("compositionend", handleCompositionEnd);
|
|
3190
|
+
}
|
|
3191
|
+
outsidePress && doc.removeEventListener(outsidePressEvent, outsidePressCapture ? closeOnPressOutsideCapture : closeOnPressOutside, outsidePressCapture);
|
|
3192
|
+
ancestors.forEach((ancestor) => {
|
|
3193
|
+
ancestor.removeEventListener("scroll", onScroll);
|
|
3194
|
+
});
|
|
3195
|
+
window.clearTimeout(compositionTimeout);
|
|
3196
|
+
};
|
|
3197
|
+
}, [
|
|
3198
|
+
dataRef,
|
|
3199
|
+
elements,
|
|
3200
|
+
escapeKey,
|
|
3201
|
+
outsidePress,
|
|
3202
|
+
outsidePressEvent,
|
|
3203
|
+
open,
|
|
3204
|
+
onOpenChange,
|
|
3205
|
+
ancestorScroll,
|
|
3206
|
+
enabled,
|
|
3207
|
+
escapeKeyBubbles,
|
|
3208
|
+
outsidePressBubbles,
|
|
3209
|
+
closeOnEscapeKeyDown,
|
|
3210
|
+
escapeKeyCapture,
|
|
3211
|
+
closeOnEscapeKeyDownCapture,
|
|
3212
|
+
closeOnPressOutside,
|
|
3213
|
+
outsidePressCapture,
|
|
3214
|
+
closeOnPressOutsideCapture
|
|
3215
|
+
]);
|
|
3216
|
+
React$1.useEffect(() => {
|
|
3217
|
+
dataRef.current.insideReactTree = false;
|
|
3218
|
+
}, [
|
|
3219
|
+
dataRef,
|
|
3220
|
+
outsidePress,
|
|
3221
|
+
outsidePressEvent
|
|
3222
|
+
]);
|
|
3223
|
+
const reference = React$1.useMemo(() => ({
|
|
3224
|
+
onKeyDown: closeOnEscapeKeyDown,
|
|
3225
|
+
...referencePress && {
|
|
3226
|
+
[bubbleHandlerKeys[referencePressEvent]]: (event) => {
|
|
3227
|
+
onOpenChange(false, event.nativeEvent, "reference-press");
|
|
3228
|
+
},
|
|
3229
|
+
...referencePressEvent !== "click" && { onClick(event) {
|
|
3230
|
+
onOpenChange(false, event.nativeEvent, "reference-press");
|
|
3231
|
+
} }
|
|
3232
|
+
}
|
|
3233
|
+
}), [
|
|
3234
|
+
closeOnEscapeKeyDown,
|
|
3235
|
+
onOpenChange,
|
|
3236
|
+
referencePress,
|
|
3237
|
+
referencePressEvent
|
|
3238
|
+
]);
|
|
3239
|
+
const floating = React$1.useMemo(() => ({
|
|
3240
|
+
onKeyDown: closeOnEscapeKeyDown,
|
|
3241
|
+
onMouseDown() {
|
|
3242
|
+
endedOrStartedInsideRef.current = true;
|
|
3243
|
+
},
|
|
3244
|
+
onMouseUp() {
|
|
3245
|
+
endedOrStartedInsideRef.current = true;
|
|
3246
|
+
},
|
|
3247
|
+
[captureHandlerKeys[outsidePressEvent]]: () => {
|
|
3248
|
+
dataRef.current.insideReactTree = true;
|
|
3249
|
+
}
|
|
3250
|
+
}), [
|
|
3251
|
+
closeOnEscapeKeyDown,
|
|
3252
|
+
outsidePressEvent,
|
|
3253
|
+
dataRef
|
|
3254
|
+
]);
|
|
3255
|
+
return React$1.useMemo(() => enabled ? {
|
|
3256
|
+
reference,
|
|
3257
|
+
floating
|
|
3258
|
+
} : {}, [
|
|
3259
|
+
enabled,
|
|
3260
|
+
reference,
|
|
3261
|
+
floating
|
|
3262
|
+
]);
|
|
3263
|
+
}
|
|
3264
|
+
function useFloatingRootContext(options) {
|
|
3265
|
+
const { open = false, onOpenChange: onOpenChangeProp, elements: elementsProp } = options;
|
|
3266
|
+
const floatingId = useId$1();
|
|
3267
|
+
const dataRef = React$1.useRef({});
|
|
3268
|
+
const [events] = React$1.useState(() => createEventEmitter());
|
|
3269
|
+
const nested = useFloatingParentNodeId() != null;
|
|
3270
|
+
if (process.env.NODE_ENV !== "production") {
|
|
3271
|
+
const optionDomReference = elementsProp.reference;
|
|
3272
|
+
if (optionDomReference && !isElement(optionDomReference)) error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
3273
|
+
}
|
|
3274
|
+
const [positionReference, setPositionReference] = React$1.useState(elementsProp.reference);
|
|
3275
|
+
const onOpenChange = useEffectEvent((open$1, event, reason) => {
|
|
3276
|
+
dataRef.current.openEvent = open$1 ? event : void 0;
|
|
3277
|
+
events.emit("openchange", {
|
|
3278
|
+
open: open$1,
|
|
3279
|
+
event,
|
|
3280
|
+
reason,
|
|
3281
|
+
nested
|
|
3282
|
+
});
|
|
3283
|
+
onOpenChangeProp?.(open$1, event, reason);
|
|
3284
|
+
});
|
|
3285
|
+
const refs = React$1.useMemo(() => ({ setPositionReference }), []);
|
|
3286
|
+
const elements = React$1.useMemo(() => ({
|
|
3287
|
+
reference: positionReference || elementsProp.reference || null,
|
|
3288
|
+
floating: elementsProp.floating || null,
|
|
3289
|
+
domReference: elementsProp.reference
|
|
3290
|
+
}), [
|
|
3291
|
+
positionReference,
|
|
3292
|
+
elementsProp.reference,
|
|
3293
|
+
elementsProp.floating
|
|
3294
|
+
]);
|
|
3295
|
+
return React$1.useMemo(() => ({
|
|
3296
|
+
dataRef,
|
|
3297
|
+
open,
|
|
3298
|
+
onOpenChange,
|
|
3299
|
+
elements,
|
|
3300
|
+
events,
|
|
3301
|
+
floatingId,
|
|
3302
|
+
refs
|
|
3303
|
+
}), [
|
|
3304
|
+
open,
|
|
3305
|
+
onOpenChange,
|
|
3306
|
+
elements,
|
|
3307
|
+
events,
|
|
3308
|
+
floatingId,
|
|
3309
|
+
refs
|
|
3310
|
+
]);
|
|
3311
|
+
}
|
|
3312
|
+
function useFloating$1(options) {
|
|
3313
|
+
if (options === void 0) options = {};
|
|
3314
|
+
const { nodeId } = options;
|
|
3315
|
+
const internalRootContext = useFloatingRootContext({
|
|
3316
|
+
...options,
|
|
3317
|
+
elements: {
|
|
3318
|
+
reference: null,
|
|
3319
|
+
floating: null,
|
|
3320
|
+
...options.elements
|
|
3321
|
+
}
|
|
3322
|
+
});
|
|
3323
|
+
const rootContext = options.rootContext || internalRootContext;
|
|
3324
|
+
const computedElements = rootContext.elements;
|
|
3325
|
+
const [_domReference, setDomReference] = React$1.useState(null);
|
|
3326
|
+
const [positionReference, _setPositionReference] = React$1.useState(null);
|
|
3327
|
+
const domReference = (computedElements == null ? void 0 : computedElements.domReference) || _domReference;
|
|
3328
|
+
const domReferenceRef = React$1.useRef(null);
|
|
3329
|
+
const tree = useFloatingTree();
|
|
3330
|
+
index(() => {
|
|
3331
|
+
if (domReference) domReferenceRef.current = domReference;
|
|
3332
|
+
}, [domReference]);
|
|
3333
|
+
const position = useFloating({
|
|
3334
|
+
...options,
|
|
3335
|
+
elements: {
|
|
3336
|
+
...computedElements,
|
|
3337
|
+
...positionReference && { reference: positionReference }
|
|
3338
|
+
}
|
|
3339
|
+
});
|
|
3340
|
+
const setPositionReference = React$1.useCallback((node) => {
|
|
3341
|
+
const computedPositionReference = isElement(node) ? {
|
|
3342
|
+
getBoundingClientRect: () => node.getBoundingClientRect(),
|
|
3343
|
+
getClientRects: () => node.getClientRects(),
|
|
3344
|
+
contextElement: node
|
|
3345
|
+
} : node;
|
|
3346
|
+
_setPositionReference(computedPositionReference);
|
|
3347
|
+
position.refs.setReference(computedPositionReference);
|
|
3348
|
+
}, [position.refs]);
|
|
3349
|
+
const setReference = React$1.useCallback((node) => {
|
|
3350
|
+
if (isElement(node) || node === null) {
|
|
3351
|
+
domReferenceRef.current = node;
|
|
3352
|
+
setDomReference(node);
|
|
3353
|
+
}
|
|
3354
|
+
if (isElement(position.refs.reference.current) || position.refs.reference.current === null || node !== null && !isElement(node)) position.refs.setReference(node);
|
|
3355
|
+
}, [position.refs]);
|
|
3356
|
+
const refs = React$1.useMemo(() => ({
|
|
3357
|
+
...position.refs,
|
|
3358
|
+
setReference,
|
|
3359
|
+
setPositionReference,
|
|
3360
|
+
domReference: domReferenceRef
|
|
3361
|
+
}), [
|
|
3362
|
+
position.refs,
|
|
3363
|
+
setReference,
|
|
3364
|
+
setPositionReference
|
|
3365
|
+
]);
|
|
3366
|
+
const elements = React$1.useMemo(() => ({
|
|
3367
|
+
...position.elements,
|
|
3368
|
+
domReference
|
|
3369
|
+
}), [position.elements, domReference]);
|
|
3370
|
+
const context = React$1.useMemo(() => ({
|
|
3371
|
+
...position,
|
|
3372
|
+
...rootContext,
|
|
3373
|
+
refs,
|
|
3374
|
+
elements,
|
|
3375
|
+
nodeId
|
|
3376
|
+
}), [
|
|
3377
|
+
position,
|
|
3378
|
+
refs,
|
|
3379
|
+
elements,
|
|
3380
|
+
nodeId,
|
|
3381
|
+
rootContext
|
|
3382
|
+
]);
|
|
3383
|
+
index(() => {
|
|
3384
|
+
rootContext.dataRef.current.floatingContext = context;
|
|
3385
|
+
const node = tree == null ? void 0 : tree.nodesRef.current.find((node$1) => node$1.id === nodeId);
|
|
3386
|
+
if (node) node.context = context;
|
|
3387
|
+
});
|
|
3388
|
+
return React$1.useMemo(() => ({
|
|
3389
|
+
...position,
|
|
3390
|
+
context,
|
|
3391
|
+
refs,
|
|
3392
|
+
elements
|
|
3393
|
+
}), [
|
|
3394
|
+
position,
|
|
3395
|
+
refs,
|
|
3396
|
+
elements,
|
|
3397
|
+
context
|
|
3398
|
+
]);
|
|
3399
|
+
}
|
|
3400
|
+
function isMacSafari() {
|
|
3401
|
+
return isMac() && isSafari();
|
|
3402
|
+
}
|
|
3403
|
+
function useFocus(context, props) {
|
|
3404
|
+
if (props === void 0) props = {};
|
|
3405
|
+
const { open, onOpenChange, events, dataRef, elements } = context;
|
|
3406
|
+
const { enabled = true, visibleOnly = true } = props;
|
|
3407
|
+
const blockFocusRef = React$1.useRef(false);
|
|
3408
|
+
const timeoutRef = React$1.useRef(-1);
|
|
3409
|
+
const keyboardModalityRef = React$1.useRef(true);
|
|
3410
|
+
React$1.useEffect(() => {
|
|
3411
|
+
if (!enabled) return;
|
|
3412
|
+
const win = getWindow(elements.domReference);
|
|
3413
|
+
function onBlur() {
|
|
3414
|
+
if (!open && isHTMLElement(elements.domReference) && elements.domReference === activeElement(getDocument(elements.domReference))) blockFocusRef.current = true;
|
|
3415
|
+
}
|
|
3416
|
+
function onKeyDown() {
|
|
3417
|
+
keyboardModalityRef.current = true;
|
|
3418
|
+
}
|
|
3419
|
+
function onPointerDown() {
|
|
3420
|
+
keyboardModalityRef.current = false;
|
|
3421
|
+
}
|
|
3422
|
+
win.addEventListener("blur", onBlur);
|
|
3423
|
+
if (isMacSafari()) {
|
|
3424
|
+
win.addEventListener("keydown", onKeyDown, true);
|
|
3425
|
+
win.addEventListener("pointerdown", onPointerDown, true);
|
|
3426
|
+
}
|
|
3427
|
+
return () => {
|
|
3428
|
+
win.removeEventListener("blur", onBlur);
|
|
3429
|
+
if (isMacSafari()) {
|
|
3430
|
+
win.removeEventListener("keydown", onKeyDown, true);
|
|
3431
|
+
win.removeEventListener("pointerdown", onPointerDown, true);
|
|
3432
|
+
}
|
|
3433
|
+
};
|
|
3434
|
+
}, [
|
|
3435
|
+
elements.domReference,
|
|
3436
|
+
open,
|
|
3437
|
+
enabled
|
|
3438
|
+
]);
|
|
3439
|
+
React$1.useEffect(() => {
|
|
3440
|
+
if (!enabled) return;
|
|
3441
|
+
function onOpenChange$1(_ref) {
|
|
3442
|
+
let { reason } = _ref;
|
|
3443
|
+
if (reason === "reference-press" || reason === "escape-key") blockFocusRef.current = true;
|
|
3444
|
+
}
|
|
3445
|
+
events.on("openchange", onOpenChange$1);
|
|
3446
|
+
return () => {
|
|
3447
|
+
events.off("openchange", onOpenChange$1);
|
|
3448
|
+
};
|
|
3449
|
+
}, [events, enabled]);
|
|
3450
|
+
React$1.useEffect(() => {
|
|
3451
|
+
return () => {
|
|
3452
|
+
clearTimeoutIfSet(timeoutRef);
|
|
3453
|
+
};
|
|
3454
|
+
}, []);
|
|
3455
|
+
const reference = React$1.useMemo(() => ({
|
|
3456
|
+
onMouseLeave() {
|
|
3457
|
+
blockFocusRef.current = false;
|
|
3458
|
+
},
|
|
3459
|
+
onFocus(event) {
|
|
3460
|
+
if (blockFocusRef.current) return;
|
|
3461
|
+
const target = getTarget(event.nativeEvent);
|
|
3462
|
+
if (visibleOnly && isElement(target)) {
|
|
3463
|
+
if (isMacSafari() && !event.relatedTarget) {
|
|
3464
|
+
if (!keyboardModalityRef.current && !isTypeableElement(target)) return;
|
|
3465
|
+
} else if (!matchesFocusVisible(target)) return;
|
|
3466
|
+
}
|
|
3467
|
+
onOpenChange(true, event.nativeEvent, "focus");
|
|
3468
|
+
},
|
|
3469
|
+
onBlur(event) {
|
|
3470
|
+
blockFocusRef.current = false;
|
|
3471
|
+
const relatedTarget = event.relatedTarget;
|
|
3472
|
+
const nativeEvent = event.nativeEvent;
|
|
3473
|
+
const movedToFocusGuard = isElement(relatedTarget) && relatedTarget.hasAttribute(createAttribute("focus-guard")) && relatedTarget.getAttribute("data-type") === "outside";
|
|
3474
|
+
timeoutRef.current = window.setTimeout(() => {
|
|
3475
|
+
var _dataRef$current$floa;
|
|
3476
|
+
const activeEl = activeElement(elements.domReference ? elements.domReference.ownerDocument : document);
|
|
3477
|
+
if (!relatedTarget && activeEl === elements.domReference) return;
|
|
3478
|
+
if (contains((_dataRef$current$floa = dataRef.current.floatingContext) == null ? void 0 : _dataRef$current$floa.refs.floating.current, activeEl) || contains(elements.domReference, activeEl) || movedToFocusGuard) return;
|
|
3479
|
+
onOpenChange(false, nativeEvent, "focus");
|
|
3480
|
+
});
|
|
3481
|
+
}
|
|
3482
|
+
}), [
|
|
3483
|
+
dataRef,
|
|
3484
|
+
elements.domReference,
|
|
3485
|
+
onOpenChange,
|
|
3486
|
+
visibleOnly
|
|
3487
|
+
]);
|
|
3488
|
+
return React$1.useMemo(() => enabled ? { reference } : {}, [enabled, reference]);
|
|
3489
|
+
}
|
|
3490
|
+
function mergeProps(userProps, propsList, elementKey) {
|
|
3491
|
+
const map = /* @__PURE__ */ new Map();
|
|
3492
|
+
const isItem = elementKey === "item";
|
|
3493
|
+
let domUserProps = userProps;
|
|
3494
|
+
if (isItem && userProps) {
|
|
3495
|
+
const { [ACTIVE_KEY]: _, [SELECTED_KEY]: __, ...validProps } = userProps;
|
|
3496
|
+
domUserProps = validProps;
|
|
3497
|
+
}
|
|
3498
|
+
return {
|
|
3499
|
+
...elementKey === "floating" && {
|
|
3500
|
+
tabIndex: -1,
|
|
3501
|
+
[FOCUSABLE_ATTRIBUTE]: ""
|
|
3502
|
+
},
|
|
3503
|
+
...domUserProps,
|
|
3504
|
+
...propsList.map((value) => {
|
|
3505
|
+
const propsOrGetProps = value ? value[elementKey] : null;
|
|
3506
|
+
if (typeof propsOrGetProps === "function") return userProps ? propsOrGetProps(userProps) : null;
|
|
3507
|
+
return propsOrGetProps;
|
|
3508
|
+
}).concat(userProps).reduce((acc, props) => {
|
|
3509
|
+
if (!props) return acc;
|
|
3510
|
+
Object.entries(props).forEach((_ref) => {
|
|
3511
|
+
let [key, value] = _ref;
|
|
3512
|
+
if (isItem && [ACTIVE_KEY, SELECTED_KEY].includes(key)) return;
|
|
3513
|
+
if (key.indexOf("on") === 0) {
|
|
3514
|
+
if (!map.has(key)) map.set(key, []);
|
|
3515
|
+
if (typeof value === "function") {
|
|
3516
|
+
var _map$get;
|
|
3517
|
+
(_map$get = map.get(key)) == null || _map$get.push(value);
|
|
3518
|
+
acc[key] = function() {
|
|
3519
|
+
var _map$get2;
|
|
3520
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
3521
|
+
return (_map$get2 = map.get(key)) == null ? void 0 : _map$get2.map((fn) => fn(...args)).find((val) => val !== void 0);
|
|
3522
|
+
};
|
|
3523
|
+
}
|
|
3524
|
+
} else acc[key] = value;
|
|
3525
|
+
});
|
|
3526
|
+
return acc;
|
|
3527
|
+
}, {})
|
|
3528
|
+
};
|
|
3529
|
+
}
|
|
3530
|
+
function useInteractions(propsList) {
|
|
3531
|
+
if (propsList === void 0) propsList = [];
|
|
3532
|
+
const referenceDeps = propsList.map((key) => key == null ? void 0 : key.reference);
|
|
3533
|
+
const floatingDeps = propsList.map((key) => key == null ? void 0 : key.floating);
|
|
3534
|
+
const itemDeps = propsList.map((key) => key == null ? void 0 : key.item);
|
|
3535
|
+
const getReferenceProps = React$1.useCallback((userProps) => mergeProps(userProps, propsList, "reference"), referenceDeps);
|
|
3536
|
+
const getFloatingProps = React$1.useCallback((userProps) => mergeProps(userProps, propsList, "floating"), floatingDeps);
|
|
3537
|
+
const getItemProps = React$1.useCallback((userProps) => mergeProps(userProps, propsList, "item"), itemDeps);
|
|
3538
|
+
return React$1.useMemo(() => ({
|
|
3539
|
+
getReferenceProps,
|
|
3540
|
+
getFloatingProps,
|
|
3541
|
+
getItemProps
|
|
3542
|
+
}), [
|
|
3543
|
+
getReferenceProps,
|
|
3544
|
+
getFloatingProps,
|
|
3545
|
+
getItemProps
|
|
3546
|
+
]);
|
|
3547
|
+
}
|
|
3548
|
+
export { autoUpdate as _, useDismiss as a, useHover as c, arrow as d, flip as f, size as g, shift as h, useClick as i, useInteractions as l, offset as m, FloatingDelayGroup as n, useFloating$1 as o, hide as p, FloatingFocusManager as r, useFocus as s, FloatingArrow as t, useMergeRefs as u };
|
|
3549
|
+
|
|
3550
|
+
//# sourceMappingURL=floating-ui.react.js.map
|