@helsenorge/designsystem-react 12.0.0-beta.2 → 12.0.2
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/AnchorLink.js +1 -0
- package/AnchorLink.js.map +1 -1
- package/Avatar.js.map +1 -1
- package/Badge.js.map +1 -1
- package/Button.js +1 -1
- package/Button.js.map +1 -1
- package/CHANGELOG.md +1779 -972
- package/Checkbox.js.map +1 -1
- package/Close.js.map +1 -1
- package/DictionaryTrigger.js.map +1 -1
- package/Drawer.js +3 -3
- package/Drawer.js.map +1 -1
- package/Duolist.js.map +1 -1
- package/ElementHeader.js +10 -10
- package/ElementHeader.js.map +1 -1
- package/ElementHeaderText.js.map +1 -1
- package/ErrorBoundary.js.map +1 -1
- package/ErrorWrapper.js +3 -2
- package/ErrorWrapper.js.map +1 -1
- package/Expander.js +3 -0
- package/Expander.js.map +1 -1
- package/FormGroup.js +16 -4
- package/FormGroup.js.map +1 -1
- package/FormLayout.js.map +1 -1
- package/HelpDetails.js.map +1 -1
- package/HelpTriggerIcon.js.map +1 -1
- package/HelpTriggerStandalone.js.map +1 -1
- package/HighlightPanel.js.map +1 -1
- package/Highlighter.js.map +1 -1
- package/HorizontalScroll.js.map +1 -1
- package/Icon.js.map +1 -1
- package/Illustration.js.map +1 -1
- package/InfoTeaser.js.map +1 -1
- package/Input.js +2 -2
- package/Input.js.map +1 -1
- package/Label.js.map +1 -1
- package/LazyIcon.js.map +1 -1
- package/LazyIllustration.js.map +1 -1
- package/LinkList.js +4 -2
- package/LinkList.js.map +1 -1
- package/List.js.map +1 -1
- package/MaxCharacters.js.map +1 -1
- package/NotificationBadge.js.map +1 -1
- package/Panel.js +7 -2
- package/Panel.js.map +1 -1
- package/PanelOld.js.map +1 -1
- package/PanelTitle.js.map +1 -1
- package/PopOver.js.map +1 -1
- package/RadioButton.js +1 -1
- package/RadioButton.js.map +1 -1
- package/Select.js.map +1 -1
- package/Slider.js.map +1 -1
- package/Spacer.js.map +1 -1
- package/StatusDot.js.map +1 -1
- package/{StatusDotMultiComposition.js → StatusDotList.js} +7 -7
- package/StatusDotList.js.map +1 -0
- package/StepButtons.js.map +1 -1
- package/TabList.js +5 -6
- package/TabList.js.map +1 -1
- package/TabPanel.js.map +1 -1
- package/Table.js.map +1 -1
- package/TableBody.js.map +1 -1
- package/TableCell.js.map +1 -1
- package/TableExpandedRow.js.map +1 -1
- package/TableExpanderCell.js.map +1 -1
- package/TableHead.js.map +1 -1
- package/TableHeadCell.js.map +1 -1
- package/TableRow.js.map +1 -1
- package/Textarea.js +1 -1
- package/Textarea.js.map +1 -1
- package/Title.js.map +1 -1
- package/__mocks__/IntersectionObserver.js.map +1 -1
- package/__mocks__/MutationObserver.js.map +1 -1
- package/__mocks__/ResizeObserver.js.map +1 -1
- package/__mocks__/matchMedia.js.map +1 -1
- package/__mocks__/useHover.js.map +1 -1
- package/__mocks__/useLayoutEvent.js.map +1 -1
- package/__mocks__/useOutsideEvent.js.map +1 -1
- package/__mocks__/usePseudoClasses.js.map +1 -1
- package/__mocks__/useSize.js.map +1 -1
- package/__mocks__/uuid.js.map +1 -1
- package/components/AnchorLink/AnchorLink.d.ts +1 -1
- package/components/AnchorLink/styles.module.scss +1 -1
- package/components/ArticleTeaser/index.js.map +1 -1
- package/components/Button/Button.d.ts +1 -1
- package/components/Chip/index.js.map +1 -1
- package/components/Drawer/styles.module.scss +4 -4
- package/components/Dropdown/index.js.map +1 -1
- package/components/ElementHeader/ElementHeader.d.ts +4 -4
- package/components/ElementHeader/{StatusDotMultiComposition/StatusDotMultiComposition.d.ts → StatusDotList/StatusDotList.d.ts} +4 -4
- package/components/ElementHeader/StatusDotList/index.d.ts +3 -0
- package/components/ElementHeader/StatusDotList/index.js +6 -0
- package/components/ElementHeader/{StatusDotMultiComposition → StatusDotList}/styles.module.scss +1 -1
- package/components/ElementHeader/StatusDotList/styles.module.scss.d.ts +11 -0
- package/components/ElementHeader/styles.module.scss +29 -19
- package/components/ElementHeader/styles.module.scss.d.ts +1 -0
- package/components/EmptyState/index.js.map +1 -1
- package/components/ErrorWrapper/ErrorWrapper.d.ts +4 -0
- package/components/Expander/Expander.d.ts +1 -0
- package/components/ExpanderHierarchy/index.js.map +1 -1
- package/components/ExpanderList/index.js.map +1 -1
- package/components/ExpanderList/styles.module.scss +2 -2
- package/components/EyebrowHeader/index.js +1 -1
- package/components/EyebrowHeader/index.js.map +1 -1
- package/components/FormGroup/FormGroup.d.ts +2 -0
- package/components/HelpBubble/index.js +1 -1
- package/components/HelpBubble/index.js.map +1 -1
- package/components/HelpDrawer/index.js.map +1 -1
- package/components/HelpExpanderInline/index.js.map +1 -1
- package/components/HelpExpanderStandalone/index.js.map +1 -1
- package/components/HelpPanel/index.js.map +1 -1
- package/components/HelpTeaser/index.js.map +1 -1
- package/components/HelpTooltip/index.js.map +1 -1
- package/components/HelpTriggerInline/index.js.map +1 -1
- package/components/Icons/ActiveMonitoring.js.map +1 -1
- package/components/Icons/AcupunctureBack.js.map +1 -1
- package/components/Icons/AdditionalIconInformation.js.map +1 -1
- package/components/Icons/AlarmClock.js.map +1 -1
- package/components/Icons/AlertSignFill.js.map +1 -1
- package/components/Icons/AlertSignStroke.js.map +1 -1
- package/components/Icons/Amputation.js.map +1 -1
- package/components/Icons/Anxiety.js.map +1 -1
- package/components/Icons/Apple.js.map +1 -1
- package/components/Icons/Archive.js.map +1 -1
- package/components/Icons/ArmFlexing.js.map +1 -1
- package/components/Icons/ArrowDown.js.map +1 -1
- package/components/Icons/ArrowLeft.js.map +1 -1
- package/components/Icons/ArrowRight.js.map +1 -1
- package/components/Icons/ArrowUp.js.map +1 -1
- package/components/Icons/ArrowUpRight.js.map +1 -1
- package/components/Icons/Attachment.js.map +1 -1
- package/components/Icons/Atv.js.map +1 -1
- package/components/Icons/Avatar.js.map +1 -1
- package/components/Icons/AwakePersonOnPillow.js.map +1 -1
- package/components/Icons/Baby.js.map +1 -1
- package/components/Icons/BandAid.js.map +1 -1
- package/components/Icons/BeerAndPills.js.map +1 -1
- package/components/Icons/Bell.js.map +1 -1
- package/components/Icons/Bike.js.map +1 -1
- package/components/Icons/BirthControl.js.map +1 -1
- package/components/Icons/BirthdayCake.js.map +1 -1
- package/components/Icons/Boat.js.map +1 -1
- package/components/Icons/Body.js.map +1 -1
- package/components/Icons/Braille.js.map +1 -1
- package/components/Icons/Brain.js.map +1 -1
- package/components/Icons/BreastReconstruction.js.map +1 -1
- package/components/Icons/BreastRemoval.js.map +1 -1
- package/components/Icons/Breasts.js.map +1 -1
- package/components/Icons/BrokenHeart.js.map +1 -1
- package/components/Icons/BrokenPuzzle.js.map +1 -1
- package/components/Icons/Bus.js.map +1 -1
- package/components/Icons/Calendar.js.map +1 -1
- package/components/Icons/CalendarChange.js.map +1 -1
- package/components/Icons/CalendarCheck.js.map +1 -1
- package/components/Icons/CalendarEvent.js.map +1 -1
- package/components/Icons/CalendarSave.js.map +1 -1
- package/components/Icons/Cancer.js.map +1 -1
- package/components/Icons/Candle.js.map +1 -1
- package/components/Icons/Car.js.map +1 -1
- package/components/Icons/Carton.js.map +1 -1
- package/components/Icons/Change.js.map +1 -1
- package/components/Icons/Check.js.map +1 -1
- package/components/Icons/CheckFill.js.map +1 -1
- package/components/Icons/CheckOutline.js.map +1 -1
- package/components/Icons/Chest.js.map +1 -1
- package/components/Icons/ChevronDown.js.map +1 -1
- package/components/Icons/ChevronLeft.js.map +1 -1
- package/components/Icons/ChevronRight.js.map +1 -1
- package/components/Icons/ChevronUp.js.map +1 -1
- package/components/Icons/ChevronsDown.js.map +1 -1
- package/components/Icons/ChevronsUp.js.map +1 -1
- package/components/Icons/ChildPlaying.js.map +1 -1
- package/components/Icons/Cigarette.js.map +1 -1
- package/components/Icons/Coins.js.map +1 -1
- package/components/Icons/Contacts.js.map +1 -1
- package/components/Icons/Copy.js.map +1 -1
- package/components/Icons/CoronaCertificate.js.map +1 -1
- package/components/Icons/Coronavirus.js.map +1 -1
- package/components/Icons/Cough.js.map +1 -1
- package/components/Icons/CreditCard.js.map +1 -1
- package/components/Icons/CriticalHealthInfo.js.map +1 -1
- package/components/Icons/Cross.js.map +1 -1
- package/components/Icons/DataExchange.js.map +1 -1
- package/components/Icons/DataReceived.js.map +1 -1
- package/components/Icons/DataSent.js.map +1 -1
- package/components/Icons/Depression.js.map +1 -1
- package/components/Icons/DigestiveSystem.js.map +1 -1
- package/components/Icons/Dizzy.js.map +1 -1
- package/components/Icons/Documents.js.map +1 -1
- package/components/Icons/Dog.js.map +1 -1
- package/components/Icons/DonorCard.js.map +1 -1
- package/components/Icons/DotActive.js.map +1 -1
- package/components/Icons/DotAlert.js.map +1 -1
- package/components/Icons/DotCancelled.js.map +1 -1
- package/components/Icons/DotHalfDisc.js.map +1 -1
- package/components/Icons/DotInactive.js.map +1 -1
- package/components/Icons/DotInfo.js.map +1 -1
- package/components/Icons/DotLookingGlass.js.map +1 -1
- package/components/Icons/DotPending.js.map +1 -1
- package/components/Icons/DotQuestionMark.js.map +1 -1
- package/components/Icons/DotSuccess.js.map +1 -1
- package/components/Icons/DotTransparent.js.map +1 -1
- package/components/Icons/DotWarningTriangle.js.map +1 -1
- package/components/Icons/Download.js.map +1 -1
- package/components/Icons/Draft.js.map +1 -1
- package/components/Icons/EChat.js.map +1 -1
- package/components/Icons/Ear.js.map +1 -1
- package/components/Icons/EarDeaf.js.map +1 -1
- package/components/Icons/EarHearingAid.js.map +1 -1
- package/components/Icons/EarNoseThroat.js.map +1 -1
- package/components/Icons/EarVolume.js.map +1 -1
- package/components/Icons/ElderlyPerson.js.map +1 -1
- package/components/Icons/Embolization.js.map +1 -1
- package/components/Icons/EmergencyCall.js.map +1 -1
- package/components/Icons/EmoticonAnnoyed.js.map +1 -1
- package/components/Icons/EmoticonDelighted.js.map +1 -1
- package/components/Icons/EmoticonDisappointed.js.map +1 -1
- package/components/Icons/EmoticonHappy.js.map +1 -1
- package/components/Icons/EmoticonMeh.js.map +1 -1
- package/components/Icons/EmptyBox.js.map +1 -1
- package/components/Icons/EnterFullScreen.js.map +1 -1
- package/components/Icons/Envelope.js.map +1 -1
- package/components/Icons/Epilepsy.js.map +1 -1
- package/components/Icons/Eraser.js.map +1 -1
- package/components/Icons/ErrorSignFill.js.map +1 -1
- package/components/Icons/ErrorSignStroke.js.map +1 -1
- package/components/Icons/EuropeanHealthCard.js.map +1 -1
- package/components/Icons/ExitFullScreen.js.map +1 -1
- package/components/Icons/Eye.js.map +1 -1
- package/components/Icons/Facebook.js.map +1 -1
- package/components/Icons/FallingLeaf.js.map +1 -1
- package/components/Icons/Female.js.map +1 -1
- package/components/Icons/FemaleDoctor.js.map +1 -1
- package/components/Icons/Ferry.js.map +1 -1
- package/components/Icons/File.js.map +1 -1
- package/components/Icons/Filter.js.map +1 -1
- package/components/Icons/FingerBleed.js.map +1 -1
- package/components/Icons/FirstAidKit.js.map +1 -1
- package/components/Icons/Fish.js.map +1 -1
- package/components/Icons/FloppyDisk.js.map +1 -1
- package/components/Icons/Football.js.map +1 -1
- package/components/Icons/Form.js.map +1 -1
- package/components/Icons/Forward.js.map +1 -1
- package/components/Icons/Gallery.js.map +1 -1
- package/components/Icons/Garden.js.map +1 -1
- package/components/Icons/GasCan.js.map +1 -1
- package/components/Icons/GenderIdentity.js.map +1 -1
- package/components/Icons/GlassWater.js.map +1 -1
- package/components/Icons/Glasses.js.map +1 -1
- package/components/Icons/Globe.js.map +1 -1
- package/components/Icons/Grain.js.map +1 -1
- package/components/Icons/Graph.js.map +1 -1
- package/components/Icons/Group.js.map +1 -1
- package/components/Icons/GroupTwins.js.map +1 -1
- package/components/Icons/HTMLFile.js.map +1 -1
- package/components/Icons/HandWaving.js.map +1 -1
- package/components/Icons/HandWithDisease.js.map +1 -1
- package/components/Icons/HandsAndHeart.js.map +1 -1
- package/components/Icons/HealthClinic.js.map +1 -1
- package/components/Icons/HealthMeasurements.js.map +1 -1
- package/components/Icons/HealthWarning.js.map +1 -1
- package/components/Icons/HealthcarePerson.js.map +1 -1
- package/components/Icons/HealthcarePersonell.js.map +1 -1
- package/components/Icons/HearingProtection.js.map +1 -1
- package/components/Icons/Heart.js.map +1 -1
- package/components/Icons/HeartHands.js.map +1 -1
- package/components/Icons/HelpSign.js.map +1 -1
- package/components/Icons/HelpingHand.js.map +1 -1
- package/components/Icons/Hemodialysis.js.map +1 -1
- package/components/Icons/Hiker.js.map +1 -1
- package/components/Icons/Hipprosthesis.js.map +1 -1
- package/components/Icons/History.js.map +1 -1
- package/components/Icons/HivAndAids.js.map +1 -1
- package/components/Icons/Home.js.map +1 -1
- package/components/Icons/HomeFill.js.map +1 -1
- package/components/Icons/Hormone.js.map +1 -1
- package/components/Icons/Hospital.js.map +1 -1
- package/components/Icons/Hourglass.js.map +1 -1
- package/components/Icons/ImgFile.js.map +1 -1
- package/components/Icons/Inbox.js.map +1 -1
- package/components/Icons/InfoSignFill.js.map +1 -1
- package/components/Icons/InfoSignStroke.js.map +1 -1
- package/components/Icons/Instagram.js.map +1 -1
- package/components/Icons/Intravenous.js.map +1 -1
- package/components/Icons/JointPain.js.map +1 -1
- package/components/Icons/Journal.js.map +1 -1
- package/components/Icons/JpgFile.js.map +1 -1
- package/components/Icons/Kidney.js.map +1 -1
- package/components/Icons/KitchenScale.js.map +1 -1
- package/components/Icons/Kjernejournal.js.map +1 -1
- package/components/Icons/Laboratory.js.map +1 -1
- package/components/Icons/LaptopBlog.js.map +1 -1
- package/components/Icons/LawBook.js.map +1 -1
- package/components/Icons/LegalDocument.js.map +1 -1
- package/components/Icons/LightBulb.js.map +1 -1
- package/components/Icons/List.js.map +1 -1
- package/components/Icons/Location.js.map +1 -1
- package/components/Icons/LocationFill.js.map +1 -1
- package/components/Icons/Lock.js.map +1 -1
- package/components/Icons/Login.js.map +1 -1
- package/components/Icons/Logout.js.map +1 -1
- package/components/Icons/Lungs.js.map +1 -1
- package/components/Icons/Makeup.js.map +1 -1
- package/components/Icons/MaleDoctor.js.map +1 -1
- package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
- package/components/Icons/MaleDoctorCompact.js.map +1 -1
- package/components/Icons/MaleDoctorCompactFill.js.map +1 -1
- package/components/Icons/MaleGenitalia.js.map +1 -1
- package/components/Icons/Medicine.js.map +1 -1
- package/components/Icons/MedicineWarning.js.map +1 -1
- package/components/Icons/MentalHealthAdult.js.map +1 -1
- package/components/Icons/MentalHealthChild.js.map +1 -1
- package/components/Icons/Menu.js.map +1 -1
- package/components/Icons/Microscope.js.map +1 -1
- package/components/Icons/Minus.js.map +1 -1
- package/components/Icons/Mirror.js.map +1 -1
- package/components/Icons/MobilePhone.js.map +1 -1
- package/components/Icons/MotherHoldingBaby.js.map +1 -1
- package/components/Icons/MuscleBack.js.map +1 -1
- package/components/Icons/MuscleLeg.js.map +1 -1
- package/components/Icons/Mushroom.js.map +1 -1
- package/components/Icons/Music.js.map +1 -1
- package/components/Icons/MusselsAndSalt.js.map +1 -1
- package/components/Icons/NoAccess.js.map +1 -1
- package/components/Icons/NoEye.js.map +1 -1
- package/components/Icons/NoFilter.js.map +1 -1
- package/components/Icons/Notepad.js.map +1 -1
- package/components/Icons/Osteotomy.js.map +1 -1
- package/components/Icons/PaintRoller.js.map +1 -1
- package/components/Icons/PaperPlane.js.map +1 -1
- package/components/Icons/PatientAndPerson.js.map +1 -1
- package/components/Icons/Pause.js.map +1 -1
- package/components/Icons/PdfFile.js.map +1 -1
- package/components/Icons/Pencil.js.map +1 -1
- package/components/Icons/PeopleTalking.js.map +1 -1
- package/components/Icons/Peritonealdialysis.js.map +1 -1
- package/components/Icons/Person.js.map +1 -1
- package/components/Icons/PersonAndPatient.js.map +1 -1
- package/components/Icons/PersonCancel.js.map +1 -1
- package/components/Icons/PersonInXRayMachine.js.map +1 -1
- package/components/Icons/PersonOverweight.js.map +1 -1
- package/components/Icons/PersonRelaxing.js.map +1 -1
- package/components/Icons/PersonWithBrain.js.map +1 -1
- package/components/Icons/PersonWithBrokenArm.js.map +1 -1
- package/components/Icons/PersonWithCrutches.js.map +1 -1
- package/components/Icons/PersonWithJaw.js.map +1 -1
- package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
- package/components/Icons/PersonWithSenses.js.map +1 -1
- package/components/Icons/PersonWorking.js.map +1 -1
- package/components/Icons/PersonalPlan.js.map +1 -1
- package/components/Icons/PizzaSlice.js.map +1 -1
- package/components/Icons/Plane.js.map +1 -1
- package/components/Icons/Plant.js.map +1 -1
- package/components/Icons/PlateKnifeFork.js.map +1 -1
- package/components/Icons/Play.js.map +1 -1
- package/components/Icons/PlusLarge.js.map +1 -1
- package/components/Icons/PlusSmall.js.map +1 -1
- package/components/Icons/PngFile.js.map +1 -1
- package/components/Icons/Podcast.js.map +1 -1
- package/components/Icons/PoisonInformation.js.map +1 -1
- package/components/Icons/Pregnant.js.map +1 -1
- package/components/Icons/Printer.js.map +1 -1
- package/components/Icons/Psychosis.js.map +1 -1
- package/components/Icons/Publication.js.map +1 -1
- package/components/Icons/Puzzle.js.map +1 -1
- package/components/Icons/QrCode.js.map +1 -1
- package/components/Icons/Quarrel.js.map +1 -1
- package/components/Icons/RadioTherapy.js.map +1 -1
- package/components/Icons/RadioactiveTreatment.js.map +1 -1
- package/components/Icons/Radioiodine.js.map +1 -1
- package/components/Icons/Receipt.js.map +1 -1
- package/components/Icons/Receptionist.js.map +1 -1
- package/components/Icons/Recovery.js.map +1 -1
- package/components/Icons/Referral.js.map +1 -1
- package/components/Icons/Refresh.js.map +1 -1
- package/components/Icons/Refund.js.map +1 -1
- package/components/Icons/Reminder.js.map +1 -1
- package/components/Icons/Reply.js.map +1 -1
- package/components/Icons/Rocket.js.map +1 -1
- package/components/Icons/RtfFile.js.map +1 -1
- package/components/Icons/STDs.js.map +1 -1
- package/components/Icons/Save.js.map +1 -1
- package/components/Icons/Scale.js.map +1 -1
- package/components/Icons/ScreenReader.js.map +1 -1
- package/components/Icons/Search.js.map +1 -1
- package/components/Icons/SectionSign.js.map +1 -1
- package/components/Icons/Settings.js.map +1 -1
- package/components/Icons/SettingsFill.js.map +1 -1
- package/components/Icons/Sexualorientation.js.map +1 -1
- package/components/Icons/ShakingHand.js.map +1 -1
- package/components/Icons/Share.js.map +1 -1
- package/components/Icons/SharedHealthData.js.map +1 -1
- package/components/Icons/SharedHealthMeasurements.js.map +1 -1
- package/components/Icons/Shield.js.map +1 -1
- package/components/Icons/ShuntOperation.js.map +1 -1
- package/components/Icons/Skeleton.js.map +1 -1
- package/components/Icons/Skin.js.map +1 -1
- package/components/Icons/Snake.js.map +1 -1
- package/components/Icons/Snapchat.js.map +1 -1
- package/components/Icons/SortDown.js.map +1 -1
- package/components/Icons/SortUp.js.map +1 -1
- package/components/Icons/SpeechBubble.js.map +1 -1
- package/components/Icons/Spray.js.map +1 -1
- package/components/Icons/StickyNote.js.map +1 -1
- package/components/Icons/StickyNotes.js.map +1 -1
- package/components/Icons/Stopwatch.js.map +1 -1
- package/components/Icons/Sun.js.map +1 -1
- package/components/Icons/SupportingPerson.js.map +1 -1
- package/components/Icons/Surgery.js.map +1 -1
- package/components/Icons/Sweets.js.map +1 -1
- package/components/Icons/Syringe.js.map +1 -1
- package/components/Icons/Taxi.js.map +1 -1
- package/components/Icons/TeddyBear.js.map +1 -1
- package/components/Icons/Teenagers.js.map +1 -1
- package/components/Icons/ThinkingAboutBaby.js.map +1 -1
- package/components/Icons/Ticket.js.map +1 -1
- package/components/Icons/TimePassing.js.map +1 -1
- package/components/Icons/Toddler.js.map +1 -1
- package/components/Icons/Tombstone.js.map +1 -1
- package/components/Icons/Toolbox.js.map +1 -1
- package/components/Icons/Tooth.js.map +1 -1
- package/components/Icons/TotalKneeProsthesis.js.map +1 -1
- package/components/Icons/Train.js.map +1 -1
- package/components/Icons/Transplantation.js.map +1 -1
- package/components/Icons/TrashCan.js.map +1 -1
- package/components/Icons/TravelRoute.js.map +1 -1
- package/components/Icons/TreatmentAids.js.map +1 -1
- package/components/Icons/TriangleX.js.map +1 -1
- package/components/Icons/Twitter.js.map +1 -1
- package/components/Icons/Undo.js.map +1 -1
- package/components/Icons/UniProsthesis.js.map +1 -1
- package/components/Icons/Upload.js.map +1 -1
- package/components/Icons/UserOrganization.js.map +1 -1
- package/components/Icons/Vaccine.js.map +1 -1
- package/components/Icons/VerticalDots.js.map +1 -1
- package/components/Icons/VideoCamera.js.map +1 -1
- package/components/Icons/VideoChat.js.map +1 -1
- package/components/Icons/Wallet.js.map +1 -1
- package/components/Icons/Watch.js.map +1 -1
- package/components/Icons/Website.js.map +1 -1
- package/components/Icons/Wheelchair.js.map +1 -1
- package/components/Icons/WheelchairActive.js.map +1 -1
- package/components/Icons/Window.js.map +1 -1
- package/components/Icons/WordDocument.js.map +1 -1
- package/components/Icons/WorkSuitcase.js.map +1 -1
- package/components/Icons/X.js.map +1 -1
- package/components/Icons/XOutline.js.map +1 -1
- package/components/Icons/XmlFile.js.map +1 -1
- package/components/Icons/YouTube.js.map +1 -1
- package/components/Icons/Zoom.js.map +1 -1
- package/components/Illustrations/BabyMobile.js.map +1 -1
- package/components/Illustrations/BabyMobileMedium.js.map +1 -1
- package/components/Illustrations/Child.js.map +1 -1
- package/components/Illustrations/ChildMedium.js.map +1 -1
- package/components/Illustrations/Doctor.js.map +1 -1
- package/components/Illustrations/DoctorMedium.js.map +1 -1
- package/components/Illustrations/DoctorSmall.js.map +1 -1
- package/components/Illustrations/FacialRecognitionFingerprint.js.map +1 -1
- package/components/Illustrations/FacialRecognitionFingerprintMedium.js.map +1 -1
- package/components/Illustrations/GiveBabyFood.js.map +1 -1
- package/components/Illustrations/GiveBabyFoodMedium.js.map +1 -1
- package/components/Illustrations/HealthcarePersonnel.js.map +1 -1
- package/components/Illustrations/HealthcarePersonnelMedium.js.map +1 -1
- package/components/Illustrations/HealthcarePersonnelSmall.js.map +1 -1
- package/components/Illustrations/IllustrationNames.js.map +1 -1
- package/components/Illustrations/ReadLetters.js.map +1 -1
- package/components/Illustrations/ReadLettersMedium.js.map +1 -1
- package/components/Illustrations/Stroller.js.map +1 -1
- package/components/Illustrations/StrollerMedium.js.map +1 -1
- package/components/Illustrations/Support2.js.map +1 -1
- package/components/Illustrations/Support2Medium.js.map +1 -1
- package/components/LinkList/LinkList.d.ts +2 -0
- package/components/LinkList/styles.module.scss +23 -6
- package/components/LinkList/styles.module.scss.d.ts +1 -0
- package/components/Loader/index.js.map +1 -1
- package/components/Logo/index.js.map +1 -1
- package/components/Modal/index.js.map +1 -1
- package/components/NotificationPanel/NotificationPanel.d.ts +1 -1
- package/components/NotificationPanel/index.js +2 -3
- package/components/NotificationPanel/index.js.map +1 -1
- package/components/Panel/Panel.d.ts +2 -0
- package/components/PanelList/index.js.map +1 -1
- package/components/PanelListOld/index.js.map +1 -1
- package/components/PopMenu/index.js +2 -2
- package/components/PopMenu/index.js.map +1 -1
- package/components/PopOver/styles.module.scss +1 -1
- package/components/Portal/index.js.map +1 -1
- package/components/Progressbar/index.js.map +1 -1
- package/components/PromoPanel/index.js.map +1 -1
- package/components/RadioButton/styles.module.scss +6 -1
- package/components/ServiceMessage/index.js +1 -1
- package/components/ServiceMessage/index.js.map +1 -1
- package/components/SharingStatus/index.js.map +1 -1
- package/components/Step/index.js.map +1 -1
- package/components/Stepper/index.js.map +1 -1
- package/components/StickyNote/index.js +2 -2
- package/components/StickyNote/index.js.map +1 -1
- package/components/Tabs/TabList/styles.module.scss +14 -4
- package/components/Tabs/TabList/styles.module.scss.d.ts +1 -0
- package/components/Tabs/index.js.map +1 -1
- package/components/Tabs/styles.module.scss +4 -2
- package/components/Tag/index.js.map +1 -1
- package/components/TagList/index.js.map +1 -1
- package/components/Tile/index.js.map +1 -1
- package/components/Tile/styles.module.scss +1 -2
- package/components/Toggle/index.js.map +1 -1
- package/components/Validation/index.js +1 -1
- package/components/Validation/index.js.map +1 -1
- package/constants.js.map +1 -1
- package/floating-ui.react.js +142 -88
- package/floating-ui.react.js.map +1 -1
- package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
- package/hooks/useBreakpoint.js +4 -3
- package/hooks/useBreakpoint.js.map +1 -1
- package/hooks/useElementList.js.map +1 -1
- package/hooks/useEventListenerState.js.map +1 -1
- package/hooks/useExpand.js.map +1 -1
- package/hooks/useFocusToggle.js.map +1 -1
- package/hooks/useFocusTrap.js.map +1 -1
- package/hooks/useFocusableElements.js.map +1 -1
- package/hooks/useHover.js.map +1 -1
- package/hooks/useIcons.js.map +1 -1
- package/hooks/useIntersectionObserver.js.map +1 -1
- package/hooks/useInterval.js.map +1 -1
- package/hooks/useIsMobileBreakpoint.js.map +1 -1
- package/hooks/useIsServerSide.js.map +1 -1
- package/hooks/useIsVisible.js.map +1 -1
- package/hooks/useKeyboardEvent.js.map +1 -1
- package/hooks/useLayoutEvent.js.map +1 -1
- package/hooks/useOutsideEvent.js.map +1 -1
- package/hooks/usePrevious.js.map +1 -1
- package/hooks/usePseudoClasses.js +2 -1
- package/hooks/usePseudoClasses.js.map +1 -1
- package/hooks/useResizeObserver.js.map +1 -1
- package/hooks/useReturnFocusOnUnmount.js.map +1 -1
- package/hooks/useRovingFocus.js.map +1 -1
- package/hooks/useSize.js +1 -1
- package/hooks/useSize.js.map +1 -1
- package/hooks/useToggle.js.map +1 -1
- package/hooks/useUuid.js.map +1 -1
- package/hooks/usestopPropagation.js.map +1 -1
- package/package.json +1 -1
- package/scss/bootstrap/scss/_variables.scss +1 -1
- package/scss/typography.module.scss +1 -1
- package/scss/typography.stories.tsx +2 -4
- package/theme/currys/color.js.map +1 -1
- package/theme/currys/spacing.js.map +1 -1
- package/use-animate.js +1 -1
- package/use-animate.js.map +1 -1
- package/utils/accessibility.js.map +1 -1
- package/utils/component.d.ts +2 -2
- package/utils/component.js.map +1 -1
- package/utils/debounce.js +1 -1
- package/utils/debounce.js.map +1 -1
- package/utils/device.js.map +1 -1
- package/utils/environment.js.map +1 -1
- package/utils/focus.js.map +1 -1
- package/utils/language.js.map +1 -1
- package/utils/mobile.js.map +1 -1
- package/utils/refs.js.map +1 -1
- package/utils/scroll.js.map +1 -1
- package/utils/viewport.js.map +1 -1
- package/utils.js.map +1 -1
- package/uuid.js.map +1 -1
- package/StatusDotMultiComposition.js.map +0 -1
- package/components/ElementHeader/StatusDotMultiComposition/index.d.ts +0 -3
- package/components/ElementHeader/StatusDotMultiComposition/index.js +0 -6
- package/components/ElementHeader/StatusDotMultiComposition/styles.module.scss.d.ts +0 -11
- /package/components/ElementHeader/{StatusDotMultiComposition → StatusDotList}/index.js.map +0 -0
package/floating-ui.react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { useLayoutEffect
|
|
2
|
+
import { useLayoutEffect } from "react";
|
|
3
3
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
4
4
|
import * as ReactDOM from "react-dom";
|
|
5
5
|
function hasWindow() {
|
|
@@ -43,6 +43,7 @@ function isShadowRoot(value) {
|
|
|
43
43
|
}
|
|
44
44
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
45
45
|
}
|
|
46
|
+
const invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
46
47
|
function isOverflowElement(element) {
|
|
47
48
|
const {
|
|
48
49
|
overflow,
|
|
@@ -50,24 +51,29 @@ function isOverflowElement(element) {
|
|
|
50
51
|
overflowY,
|
|
51
52
|
display
|
|
52
53
|
} = getComputedStyle$1(element);
|
|
53
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
54
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
|
54
55
|
}
|
|
56
|
+
const tableElements = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
55
57
|
function isTableElement(element) {
|
|
56
|
-
return
|
|
58
|
+
return tableElements.has(getNodeName(element));
|
|
57
59
|
}
|
|
60
|
+
const topLayerSelectors = [":popover-open", ":modal"];
|
|
58
61
|
function isTopLayer(element) {
|
|
59
|
-
return
|
|
62
|
+
return topLayerSelectors.some((selector) => {
|
|
60
63
|
try {
|
|
61
64
|
return element.matches(selector);
|
|
62
|
-
} catch (
|
|
65
|
+
} catch (_e) {
|
|
63
66
|
return false;
|
|
64
67
|
}
|
|
65
68
|
});
|
|
66
69
|
}
|
|
70
|
+
const transformProperties = ["transform", "translate", "scale", "rotate", "perspective"];
|
|
71
|
+
const willChangeValues = ["transform", "translate", "scale", "rotate", "perspective", "filter"];
|
|
72
|
+
const containValues = ["paint", "layout", "strict", "content"];
|
|
67
73
|
function isContainingBlock(elementOrCss) {
|
|
68
74
|
const webkit = isWebKit();
|
|
69
75
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
70
|
-
return
|
|
76
|
+
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));
|
|
71
77
|
}
|
|
72
78
|
function getContainingBlock(element) {
|
|
73
79
|
let currentNode = getParentNode(element);
|
|
@@ -85,8 +91,9 @@ function isWebKit() {
|
|
|
85
91
|
if (typeof CSS === "undefined" || !CSS.supports) return false;
|
|
86
92
|
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
87
93
|
}
|
|
94
|
+
const lastTraversableNodeNames = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
88
95
|
function isLastTraversableNode(node) {
|
|
89
|
-
return
|
|
96
|
+
return lastTraversableNodeNames.has(getNodeName(node));
|
|
90
97
|
}
|
|
91
98
|
function getComputedStyle$1(element) {
|
|
92
99
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -183,8 +190,9 @@ function getOppositeAxis(axis) {
|
|
|
183
190
|
function getAxisLength(axis) {
|
|
184
191
|
return axis === "y" ? "height" : "width";
|
|
185
192
|
}
|
|
193
|
+
const yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
186
194
|
function getSideAxis(placement) {
|
|
187
|
-
return
|
|
195
|
+
return yAxisSides.has(getSide(placement)) ? "y" : "x";
|
|
188
196
|
}
|
|
189
197
|
function getAlignmentAxis(placement) {
|
|
190
198
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -209,19 +217,19 @@ function getExpandedPlacements(placement) {
|
|
|
209
217
|
function getOppositeAlignmentPlacement(placement) {
|
|
210
218
|
return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
|
|
211
219
|
}
|
|
220
|
+
const lrPlacement = ["left", "right"];
|
|
221
|
+
const rlPlacement = ["right", "left"];
|
|
222
|
+
const tbPlacement = ["top", "bottom"];
|
|
223
|
+
const btPlacement = ["bottom", "top"];
|
|
212
224
|
function getSideList(side, isStart, rtl) {
|
|
213
|
-
const lr = ["left", "right"];
|
|
214
|
-
const rl = ["right", "left"];
|
|
215
|
-
const tb = ["top", "bottom"];
|
|
216
|
-
const bt = ["bottom", "top"];
|
|
217
225
|
switch (side) {
|
|
218
226
|
case "top":
|
|
219
227
|
case "bottom":
|
|
220
|
-
if (rtl) return isStart ?
|
|
221
|
-
return isStart ?
|
|
228
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
229
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
222
230
|
case "left":
|
|
223
231
|
case "right":
|
|
224
|
-
return isStart ?
|
|
232
|
+
return isStart ? tbPlacement : btPlacement;
|
|
225
233
|
default:
|
|
226
234
|
return [];
|
|
227
235
|
}
|
|
@@ -706,22 +714,11 @@ function getNodeChildren(nodes, id, onlyOpenChildren) {
|
|
|
706
714
|
if (onlyOpenChildren === void 0) {
|
|
707
715
|
onlyOpenChildren = true;
|
|
708
716
|
}
|
|
709
|
-
|
|
717
|
+
const directChildren = nodes.filter((node) => {
|
|
710
718
|
var _node$context;
|
|
711
|
-
return node.parentId === id && ((_node$context = node.context) == null ? void 0 : _node$context.open);
|
|
719
|
+
return node.parentId === id && (!onlyOpenChildren || ((_node$context = node.context) == null ? void 0 : _node$context.open));
|
|
712
720
|
});
|
|
713
|
-
|
|
714
|
-
while (currentChildren.length) {
|
|
715
|
-
currentChildren = onlyOpenChildren ? nodes.filter((node) => {
|
|
716
|
-
var _currentChildren;
|
|
717
|
-
return (_currentChildren = currentChildren) == null ? void 0 : _currentChildren.some((n) => {
|
|
718
|
-
var _node$context2;
|
|
719
|
-
return node.parentId === n.id && ((_node$context2 = node.context) == null ? void 0 : _node$context2.open);
|
|
720
|
-
});
|
|
721
|
-
}) : nodes;
|
|
722
|
-
allChildren = allChildren.concat(currentChildren);
|
|
723
|
-
}
|
|
724
|
-
return allChildren;
|
|
721
|
+
return directChildren.flatMap((child) => [child, ...getNodeChildren(nodes, child.id, onlyOpenChildren)]);
|
|
725
722
|
}
|
|
726
723
|
function getNodeAncestors(nodes, id) {
|
|
727
724
|
var _nodes$find;
|
|
@@ -764,7 +761,10 @@ function isMouseLikePointerType(pointerType, strict) {
|
|
|
764
761
|
}
|
|
765
762
|
return values.includes(pointerType);
|
|
766
763
|
}
|
|
767
|
-
var
|
|
764
|
+
var isClient$1 = typeof document !== "undefined";
|
|
765
|
+
var noop$1 = function noop() {
|
|
766
|
+
};
|
|
767
|
+
var index$1 = isClient$1 ? useLayoutEffect : noop$1;
|
|
768
768
|
const SafeReact$1 = {
|
|
769
769
|
...React
|
|
770
770
|
};
|
|
@@ -1136,15 +1136,20 @@ const flip$2 = function(options) {
|
|
|
1136
1136
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
1137
1137
|
const nextPlacement = placements[nextIndex];
|
|
1138
1138
|
if (nextPlacement) {
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1139
|
+
const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
1140
|
+
if (!ignoreCrossAxisOverflow || // We leave the current main axis only if every placement on that axis
|
|
1141
|
+
// overflows the main axis.
|
|
1142
|
+
overflowsData.every((d) => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
|
|
1143
|
+
return {
|
|
1144
|
+
data: {
|
|
1145
|
+
index: nextIndex,
|
|
1146
|
+
overflows: overflowsData
|
|
1147
|
+
},
|
|
1148
|
+
reset: {
|
|
1149
|
+
placement: nextPlacement
|
|
1150
|
+
}
|
|
1151
|
+
};
|
|
1152
|
+
}
|
|
1148
1153
|
}
|
|
1149
1154
|
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;
|
|
1150
1155
|
if (!resetPlacement) {
|
|
@@ -1242,6 +1247,7 @@ const hide$2 = function(options) {
|
|
|
1242
1247
|
}
|
|
1243
1248
|
};
|
|
1244
1249
|
};
|
|
1250
|
+
const originSides = /* @__PURE__ */ new Set(["left", "top"]);
|
|
1245
1251
|
async function convertValueToCoords(state, options) {
|
|
1246
1252
|
const {
|
|
1247
1253
|
placement,
|
|
@@ -1252,7 +1258,7 @@ async function convertValueToCoords(state, options) {
|
|
|
1252
1258
|
const side = getSide(placement);
|
|
1253
1259
|
const alignment = getAlignment(placement);
|
|
1254
1260
|
const isVertical = getSideAxis(placement) === "y";
|
|
1255
|
-
const mainAxisMulti =
|
|
1261
|
+
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
1256
1262
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
1257
1263
|
const rawValue = evaluate(options, state);
|
|
1258
1264
|
let {
|
|
@@ -1583,15 +1589,9 @@ function getWindowScrollBarX(element, rect) {
|
|
|
1583
1589
|
}
|
|
1584
1590
|
return rect.left + leftScroll;
|
|
1585
1591
|
}
|
|
1586
|
-
function getHTMLOffset(documentElement, scroll
|
|
1587
|
-
if (ignoreScrollbarX === void 0) {
|
|
1588
|
-
ignoreScrollbarX = false;
|
|
1589
|
-
}
|
|
1592
|
+
function getHTMLOffset(documentElement, scroll) {
|
|
1590
1593
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
1591
|
-
const x = htmlRect.left + scroll.scrollLeft - (
|
|
1592
|
-
// RTL <body> scrollbar.
|
|
1593
|
-
getWindowScrollBarX(documentElement, htmlRect)
|
|
1594
|
-
));
|
|
1594
|
+
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
1595
1595
|
const y = htmlRect.top + scroll.scrollTop;
|
|
1596
1596
|
return {
|
|
1597
1597
|
x,
|
|
@@ -1629,7 +1629,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
1629
1629
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1630
1630
|
}
|
|
1631
1631
|
}
|
|
1632
|
-
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll
|
|
1632
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
1633
1633
|
return {
|
|
1634
1634
|
width: rect.width * scale.x,
|
|
1635
1635
|
height: rect.height * scale.y,
|
|
@@ -1658,6 +1658,7 @@ function getDocumentRect(element) {
|
|
|
1658
1658
|
y
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
+
const SCROLLBAR_MAX = 25;
|
|
1661
1662
|
function getViewportRect(element, strategy) {
|
|
1662
1663
|
const win = getWindow(element);
|
|
1663
1664
|
const html = getDocumentElement(element);
|
|
@@ -1675,6 +1676,19 @@ function getViewportRect(element, strategy) {
|
|
|
1675
1676
|
y = visualViewport.offsetTop;
|
|
1676
1677
|
}
|
|
1677
1678
|
}
|
|
1679
|
+
const windowScrollbarX = getWindowScrollBarX(html);
|
|
1680
|
+
if (windowScrollbarX <= 0) {
|
|
1681
|
+
const doc = html.ownerDocument;
|
|
1682
|
+
const body = doc.body;
|
|
1683
|
+
const bodyStyles = getComputedStyle(body);
|
|
1684
|
+
const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
1685
|
+
const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
|
|
1686
|
+
if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
|
|
1687
|
+
width -= clippingStableScrollbarWidth;
|
|
1688
|
+
}
|
|
1689
|
+
} else if (windowScrollbarX <= SCROLLBAR_MAX) {
|
|
1690
|
+
width += windowScrollbarX;
|
|
1691
|
+
}
|
|
1678
1692
|
return {
|
|
1679
1693
|
width,
|
|
1680
1694
|
height,
|
|
@@ -1682,6 +1696,7 @@ function getViewportRect(element, strategy) {
|
|
|
1682
1696
|
y
|
|
1683
1697
|
};
|
|
1684
1698
|
}
|
|
1699
|
+
const absoluteOrFixed = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1685
1700
|
function getInnerBoundingClientRect(element, strategy) {
|
|
1686
1701
|
const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
|
|
1687
1702
|
const top = clientRect.top + element.clientTop;
|
|
@@ -1739,7 +1754,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
1739
1754
|
if (!currentNodeIsContaining && computedStyle.position === "fixed") {
|
|
1740
1755
|
currentContainingBlockComputedStyle = null;
|
|
1741
1756
|
}
|
|
1742
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle &&
|
|
1757
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
1743
1758
|
if (shouldDropCurrentNode) {
|
|
1744
1759
|
result = result.filter((ancestor) => ancestor !== currentNode);
|
|
1745
1760
|
} else {
|
|
@@ -1795,6 +1810,9 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
1795
1810
|
scrollTop: 0
|
|
1796
1811
|
};
|
|
1797
1812
|
const offsets = createCoords(0);
|
|
1813
|
+
function setLeftRTLScrollbarOffset() {
|
|
1814
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
1815
|
+
}
|
|
1798
1816
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1799
1817
|
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
|
|
1800
1818
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -1804,9 +1822,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
1804
1822
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1805
1823
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1806
1824
|
} else if (documentElement) {
|
|
1807
|
-
|
|
1825
|
+
setLeftRTLScrollbarOffset();
|
|
1808
1826
|
}
|
|
1809
1827
|
}
|
|
1828
|
+
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
1829
|
+
setLeftRTLScrollbarOffset();
|
|
1830
|
+
}
|
|
1810
1831
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
1811
1832
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
1812
1833
|
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
@@ -1955,7 +1976,7 @@ function observeMove(element, onMove) {
|
|
|
1955
1976
|
// Handle <iframe>s
|
|
1956
1977
|
root: root.ownerDocument
|
|
1957
1978
|
});
|
|
1958
|
-
} catch (
|
|
1979
|
+
} catch (_e) {
|
|
1959
1980
|
io = new IntersectionObserver(handleObserve, options);
|
|
1960
1981
|
}
|
|
1961
1982
|
io.observe(element);
|
|
@@ -2052,7 +2073,10 @@ const computePosition = (reference, floating, options) => {
|
|
|
2052
2073
|
platform: platformWithCache
|
|
2053
2074
|
});
|
|
2054
2075
|
};
|
|
2055
|
-
var
|
|
2076
|
+
var isClient = typeof document !== "undefined";
|
|
2077
|
+
var noop2 = function noop3() {
|
|
2078
|
+
};
|
|
2079
|
+
var index = isClient ? useLayoutEffect : noop2;
|
|
2056
2080
|
function deepEqual(a, b) {
|
|
2057
2081
|
if (a === b) {
|
|
2058
2082
|
return true;
|
|
@@ -2612,11 +2636,11 @@ function useHover(context, props) {
|
|
|
2612
2636
|
const unbindMouseMoveRef = React.useRef(() => {
|
|
2613
2637
|
});
|
|
2614
2638
|
const restTimeoutPendingRef = React.useRef(false);
|
|
2615
|
-
const isHoverOpen =
|
|
2639
|
+
const isHoverOpen = useEffectEvent(() => {
|
|
2616
2640
|
var _dataRef$current$open;
|
|
2617
2641
|
const type = (_dataRef$current$open = dataRef.current.openEvent) == null ? void 0 : _dataRef$current$open.type;
|
|
2618
2642
|
return (type == null ? void 0 : type.includes("mouse")) && type !== "mousedown";
|
|
2619
|
-
}
|
|
2643
|
+
});
|
|
2620
2644
|
React.useEffect(() => {
|
|
2621
2645
|
if (!enabled) return;
|
|
2622
2646
|
function onOpenChange2(_ref) {
|
|
@@ -2801,7 +2825,7 @@ function useHover(context, props) {
|
|
|
2801
2825
|
index$1(() => {
|
|
2802
2826
|
var _handleCloseRef$curre;
|
|
2803
2827
|
if (!enabled) return;
|
|
2804
|
-
if (open && (_handleCloseRef$curre = handleCloseRef.current) != null && _handleCloseRef$curre.__options.blockPointerEvents && isHoverOpen()) {
|
|
2828
|
+
if (open && (_handleCloseRef$curre = handleCloseRef.current) != null && (_handleCloseRef$curre = _handleCloseRef$curre.__options) != null && _handleCloseRef$curre.blockPointerEvents && isHoverOpen()) {
|
|
2805
2829
|
performedPointerEventsMutationRef.current = true;
|
|
2806
2830
|
const floatingEl = elements.floating;
|
|
2807
2831
|
if (isElement(elements.domReference) && floatingEl) {
|
|
@@ -2962,7 +2986,16 @@ function enqueueFocus(el, options) {
|
|
|
2962
2986
|
function getDocument(node) {
|
|
2963
2987
|
return (node == null ? void 0 : node.ownerDocument) || document;
|
|
2964
2988
|
}
|
|
2965
|
-
|
|
2989
|
+
const counters = {
|
|
2990
|
+
inert: /* @__PURE__ */ new WeakMap(),
|
|
2991
|
+
"aria-hidden": /* @__PURE__ */ new WeakMap(),
|
|
2992
|
+
none: /* @__PURE__ */ new WeakMap()
|
|
2993
|
+
};
|
|
2994
|
+
function getCounterMap(control) {
|
|
2995
|
+
if (control === "inert") return counters.inert;
|
|
2996
|
+
if (control === "aria-hidden") return counters["aria-hidden"];
|
|
2997
|
+
return counters.none;
|
|
2998
|
+
}
|
|
2966
2999
|
let uncontrolledElementsSet = /* @__PURE__ */ new WeakSet();
|
|
2967
3000
|
let markerMap = {};
|
|
2968
3001
|
let lockCount$1 = 0;
|
|
@@ -3010,8 +3043,8 @@ function applyAttributeToOthers(uncorrectedAvoidElements, body, ariaHidden, iner
|
|
|
3010
3043
|
} else {
|
|
3011
3044
|
const attr = controlAttribute ? node.getAttribute(controlAttribute) : null;
|
|
3012
3045
|
const alreadyHidden = attr !== null && attr !== "false";
|
|
3013
|
-
const
|
|
3014
|
-
const counterValue =
|
|
3046
|
+
const counterMap = getCounterMap(controlAttribute);
|
|
3047
|
+
const counterValue = (counterMap.get(node) || 0) + 1;
|
|
3015
3048
|
const markerValue = (markerCounter.get(node) || 0) + 1;
|
|
3016
3049
|
counterMap.set(node, counterValue);
|
|
3017
3050
|
markerCounter.set(node, markerValue);
|
|
@@ -3031,8 +3064,9 @@ function applyAttributeToOthers(uncorrectedAvoidElements, body, ariaHidden, iner
|
|
|
3031
3064
|
lockCount$1++;
|
|
3032
3065
|
return () => {
|
|
3033
3066
|
hiddenElements.forEach((element) => {
|
|
3067
|
+
const counterMap = getCounterMap(controlAttribute);
|
|
3034
3068
|
const currentCounterValue = counterMap.get(element) || 0;
|
|
3035
|
-
const counterValue =
|
|
3069
|
+
const counterValue = currentCounterValue - 1;
|
|
3036
3070
|
const markerValue = (markerCounter.get(element) || 0) - 1;
|
|
3037
3071
|
counterMap.set(element, counterValue);
|
|
3038
3072
|
markerCounter.set(element, markerValue);
|
|
@@ -3048,8 +3082,9 @@ function applyAttributeToOthers(uncorrectedAvoidElements, body, ariaHidden, iner
|
|
|
3048
3082
|
});
|
|
3049
3083
|
lockCount$1--;
|
|
3050
3084
|
if (!lockCount$1) {
|
|
3051
|
-
|
|
3052
|
-
|
|
3085
|
+
counters.inert = /* @__PURE__ */ new WeakMap();
|
|
3086
|
+
counters["aria-hidden"] = /* @__PURE__ */ new WeakMap();
|
|
3087
|
+
counters.none = /* @__PURE__ */ new WeakMap();
|
|
3053
3088
|
uncontrolledElementsSet = /* @__PURE__ */ new WeakSet();
|
|
3054
3089
|
markerMap = {};
|
|
3055
3090
|
}
|
|
@@ -3063,7 +3098,7 @@ function markOthers(avoidElements, ariaHidden, inert) {
|
|
|
3063
3098
|
inert = false;
|
|
3064
3099
|
}
|
|
3065
3100
|
const body = getDocument(avoidElements[0]).body;
|
|
3066
|
-
return applyAttributeToOthers(avoidElements.concat(Array.from(body.querySelectorAll(
|
|
3101
|
+
return applyAttributeToOthers(avoidElements.concat(Array.from(body.querySelectorAll('[aria-live],[role="status"],output'))), body, ariaHidden, inert);
|
|
3067
3102
|
}
|
|
3068
3103
|
const HIDDEN_STYLES = {
|
|
3069
3104
|
border: 0,
|
|
@@ -3114,8 +3149,11 @@ function useLiteMergeRefs(refs) {
|
|
|
3114
3149
|
}
|
|
3115
3150
|
const LIST_LIMIT = 20;
|
|
3116
3151
|
let previouslyFocusedElements = [];
|
|
3117
|
-
function
|
|
3152
|
+
function clearDisconnectedPreviouslyFocusedElements() {
|
|
3118
3153
|
previouslyFocusedElements = previouslyFocusedElements.filter((el) => el.isConnected);
|
|
3154
|
+
}
|
|
3155
|
+
function addPreviouslyFocusedElement(element) {
|
|
3156
|
+
clearDisconnectedPreviouslyFocusedElements();
|
|
3119
3157
|
if (element && getNodeName(element) !== "body") {
|
|
3120
3158
|
previouslyFocusedElements.push(element);
|
|
3121
3159
|
if (previouslyFocusedElements.length > LIST_LIMIT) {
|
|
@@ -3124,7 +3162,8 @@ function addPreviouslyFocusedElement(element) {
|
|
|
3124
3162
|
}
|
|
3125
3163
|
}
|
|
3126
3164
|
function getPreviouslyFocusedElement() {
|
|
3127
|
-
|
|
3165
|
+
clearDisconnectedPreviouslyFocusedElements();
|
|
3166
|
+
return previouslyFocusedElements[previouslyFocusedElements.length - 1];
|
|
3128
3167
|
}
|
|
3129
3168
|
function getFirstTabbableElement(container) {
|
|
3130
3169
|
const tabbableOptions = getTabbableOptions();
|
|
@@ -3209,6 +3248,7 @@ function FloatingFocusManager(props) {
|
|
|
3209
3248
|
const preventReturnFocusRef = React.useRef(false);
|
|
3210
3249
|
const isPointerDownRef = React.useRef(false);
|
|
3211
3250
|
const tabbableIndexRef = React.useRef(-1);
|
|
3251
|
+
const blurTimeoutRef = React.useRef(-1);
|
|
3212
3252
|
const isInsidePortal = portalContext != null;
|
|
3213
3253
|
const floatingFocusElement = getFloatingFocusElement(floating);
|
|
3214
3254
|
const getTabbableContent = useEffectEvent(function(container) {
|
|
@@ -3287,6 +3327,7 @@ function FloatingFocusManager(props) {
|
|
|
3287
3327
|
function handleFocusOutside(event) {
|
|
3288
3328
|
const relatedTarget = event.relatedTarget;
|
|
3289
3329
|
const currentTarget = event.currentTarget;
|
|
3330
|
+
const target = getTarget(event);
|
|
3290
3331
|
queueMicrotask(() => {
|
|
3291
3332
|
const nodeId = getNodeId();
|
|
3292
3333
|
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) => {
|
|
@@ -3299,7 +3340,7 @@ function FloatingFocusManager(props) {
|
|
|
3299
3340
|
if (currentTarget === domReference && floatingFocusElement) {
|
|
3300
3341
|
handleTabIndex(floatingFocusElement, orderRef);
|
|
3301
3342
|
}
|
|
3302
|
-
if (restoreFocus &&
|
|
3343
|
+
if (restoreFocus && currentTarget !== domReference && !(target != null && target.isConnected) && activeElement(getDocument$1(floatingFocusElement)) === getDocument$1(floatingFocusElement).body) {
|
|
3303
3344
|
if (isHTMLElement(floatingFocusElement)) {
|
|
3304
3345
|
floatingFocusElement.focus();
|
|
3305
3346
|
}
|
|
@@ -3310,6 +3351,10 @@ function FloatingFocusManager(props) {
|
|
|
3310
3351
|
nodeToFocus.focus();
|
|
3311
3352
|
}
|
|
3312
3353
|
}
|
|
3354
|
+
if (dataRef.current.insideReactTree) {
|
|
3355
|
+
dataRef.current.insideReactTree = false;
|
|
3356
|
+
return;
|
|
3357
|
+
}
|
|
3313
3358
|
if ((isUntrappedTypeableCombobox ? true : !modal) && relatedTarget && movedToUnrelatedNode && !isPointerDownRef.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
|
|
3314
3359
|
relatedTarget !== getPreviouslyFocusedElement()) {
|
|
3315
3360
|
preventReturnFocusRef.current = true;
|
|
@@ -3317,17 +3362,31 @@ function FloatingFocusManager(props) {
|
|
|
3317
3362
|
}
|
|
3318
3363
|
});
|
|
3319
3364
|
}
|
|
3365
|
+
const shouldHandleBlurCapture = Boolean(!tree && portalContext);
|
|
3366
|
+
function markInsideReactTree() {
|
|
3367
|
+
clearTimeoutIfSet(blurTimeoutRef);
|
|
3368
|
+
dataRef.current.insideReactTree = true;
|
|
3369
|
+
blurTimeoutRef.current = window.setTimeout(() => {
|
|
3370
|
+
dataRef.current.insideReactTree = false;
|
|
3371
|
+
});
|
|
3372
|
+
}
|
|
3320
3373
|
if (floating && isHTMLElement(domReference)) {
|
|
3321
3374
|
domReference.addEventListener("focusout", handleFocusOutside);
|
|
3322
3375
|
domReference.addEventListener("pointerdown", handlePointerDown);
|
|
3323
3376
|
floating.addEventListener("focusout", handleFocusOutside);
|
|
3377
|
+
if (shouldHandleBlurCapture) {
|
|
3378
|
+
floating.addEventListener("focusout", markInsideReactTree, true);
|
|
3379
|
+
}
|
|
3324
3380
|
return () => {
|
|
3325
3381
|
domReference.removeEventListener("focusout", handleFocusOutside);
|
|
3326
3382
|
domReference.removeEventListener("pointerdown", handlePointerDown);
|
|
3327
3383
|
floating.removeEventListener("focusout", handleFocusOutside);
|
|
3384
|
+
if (shouldHandleBlurCapture) {
|
|
3385
|
+
floating.removeEventListener("focusout", markInsideReactTree, true);
|
|
3386
|
+
}
|
|
3328
3387
|
};
|
|
3329
3388
|
}
|
|
3330
|
-
}, [disabled, domReference, floating, floatingFocusElement, modal, tree, portalContext, onOpenChange, closeOnFocusOut, restoreFocus, getTabbableContent, isUntrappedTypeableCombobox, getNodeId, orderRef]);
|
|
3389
|
+
}, [disabled, domReference, floating, floatingFocusElement, modal, tree, portalContext, onOpenChange, closeOnFocusOut, restoreFocus, getTabbableContent, isUntrappedTypeableCombobox, getNodeId, orderRef, dataRef]);
|
|
3331
3390
|
const beforeGuardRef = React.useRef(null);
|
|
3332
3391
|
const afterGuardRef = React.useRef(null);
|
|
3333
3392
|
const mergedBeforeGuardRef = useLiteMergeRefs([beforeGuardRef, portalContext == null ? void 0 : portalContext.beforeInsideRef]);
|
|
@@ -3338,15 +3397,11 @@ function FloatingFocusManager(props) {
|
|
|
3338
3397
|
if (!floating) return;
|
|
3339
3398
|
const portalNodes = Array.from((portalContext == null || (_portalContext$portal = portalContext.portalNode) == null ? void 0 : _portalContext$portal.querySelectorAll("[" + createAttribute("portal") + "]")) || []);
|
|
3340
3399
|
const ancestors = tree ? getNodeAncestors(tree.nodesRef.current, getNodeId()) : [];
|
|
3341
|
-
const ancestorFloatingNodes = tree && !modal ? ancestors.map((node) => {
|
|
3342
|
-
var _node$context6;
|
|
3343
|
-
return (_node$context6 = node.context) == null ? void 0 : _node$context6.elements.floating;
|
|
3344
|
-
}) : [];
|
|
3345
3400
|
const rootAncestorComboboxDomReference = (_ancestors$find = ancestors.find((node) => {
|
|
3346
|
-
var _node$
|
|
3347
|
-
return isTypeableCombobox(((_node$
|
|
3401
|
+
var _node$context6;
|
|
3402
|
+
return isTypeableCombobox(((_node$context6 = node.context) == null ? void 0 : _node$context6.elements.domReference) || null);
|
|
3348
3403
|
})) == null || (_ancestors$find = _ancestors$find.context) == null ? void 0 : _ancestors$find.elements.domReference;
|
|
3349
|
-
const insideElements = [floating, rootAncestorComboboxDomReference, ...portalNodes, ...
|
|
3404
|
+
const insideElements = [floating, rootAncestorComboboxDomReference, ...portalNodes, ...getInsideElements(), startDismissButtonRef.current, endDismissButtonRef.current, beforeGuardRef.current, afterGuardRef.current, portalContext == null ? void 0 : portalContext.beforeOutsideRef.current, portalContext == null ? void 0 : portalContext.afterOutsideRef.current, orderRef.current.includes("reference") || isUntrappedTypeableCombobox ? domReference : null].filter((x) => x != null);
|
|
3350
3405
|
const cleanup = modal || isUntrappedTypeableCombobox ? markOthers(insideElements, !useInert, useInert) : markOthers(insideElements);
|
|
3351
3406
|
return () => {
|
|
3352
3407
|
cleanup();
|
|
@@ -3370,7 +3425,6 @@ function FloatingFocusManager(props) {
|
|
|
3370
3425
|
}, [disabled, open, floatingFocusElement, ignoreInitialFocus, getTabbableElements, initialFocusRef]);
|
|
3371
3426
|
index$1(() => {
|
|
3372
3427
|
if (disabled || !floatingFocusElement) return;
|
|
3373
|
-
let preventReturnFocusScroll = false;
|
|
3374
3428
|
const doc = getDocument$1(floatingFocusElement);
|
|
3375
3429
|
const previouslyFocusedElement = activeElement(doc);
|
|
3376
3430
|
addPreviouslyFocusedElement(previouslyFocusedElement);
|
|
@@ -3386,7 +3440,6 @@ function FloatingFocusManager(props) {
|
|
|
3386
3440
|
if (reason !== "outside-press") return;
|
|
3387
3441
|
if (nested) {
|
|
3388
3442
|
preventReturnFocusRef.current = false;
|
|
3389
|
-
preventReturnFocusScroll = true;
|
|
3390
3443
|
} else if (isVirtualClick(event) || isVirtualPointerEvent(event)) {
|
|
3391
3444
|
preventReturnFocusRef.current = false;
|
|
3392
3445
|
} else {
|
|
@@ -3399,7 +3452,6 @@ function FloatingFocusManager(props) {
|
|
|
3399
3452
|
});
|
|
3400
3453
|
if (isPreventScrollSupported) {
|
|
3401
3454
|
preventReturnFocusRef.current = false;
|
|
3402
|
-
preventReturnFocusScroll = true;
|
|
3403
3455
|
} else {
|
|
3404
3456
|
preventReturnFocusRef.current = true;
|
|
3405
3457
|
}
|
|
@@ -3423,9 +3475,9 @@ function FloatingFocusManager(props) {
|
|
|
3423
3475
|
return () => {
|
|
3424
3476
|
events.off("openchange", onOpenChange2);
|
|
3425
3477
|
const activeEl = activeElement(doc);
|
|
3426
|
-
const isFocusInsideFloatingTree = contains(floating, activeEl) || tree && getNodeChildren(tree.nodesRef.current, getNodeId()).some((node) => {
|
|
3427
|
-
var _node$
|
|
3428
|
-
return contains((_node$
|
|
3478
|
+
const isFocusInsideFloatingTree = contains(floating, activeEl) || tree && getNodeChildren(tree.nodesRef.current, getNodeId(), false).some((node) => {
|
|
3479
|
+
var _node$context7;
|
|
3480
|
+
return contains((_node$context7 = node.context) == null ? void 0 : _node$context7.elements.floating, activeEl);
|
|
3429
3481
|
});
|
|
3430
3482
|
const returnElement = getReturnElement();
|
|
3431
3483
|
queueMicrotask(() => {
|
|
@@ -3438,7 +3490,7 @@ function FloatingFocusManager(props) {
|
|
|
3438
3490
|
(tabbableReturnElement !== activeEl && activeEl !== doc.body ? isFocusInsideFloatingTree : true)
|
|
3439
3491
|
) {
|
|
3440
3492
|
tabbableReturnElement.focus({
|
|
3441
|
-
preventScroll:
|
|
3493
|
+
preventScroll: true
|
|
3442
3494
|
});
|
|
3443
3495
|
}
|
|
3444
3496
|
fallbackEl.remove();
|
|
@@ -3449,6 +3501,9 @@ function FloatingFocusManager(props) {
|
|
|
3449
3501
|
queueMicrotask(() => {
|
|
3450
3502
|
preventReturnFocusRef.current = false;
|
|
3451
3503
|
});
|
|
3504
|
+
return () => {
|
|
3505
|
+
queueMicrotask(clearDisconnectedPreviouslyFocusedElements);
|
|
3506
|
+
};
|
|
3452
3507
|
}, [disabled]);
|
|
3453
3508
|
index$1(() => {
|
|
3454
3509
|
if (disabled) return;
|
|
@@ -3660,7 +3715,6 @@ function useDismiss(context, props) {
|
|
|
3660
3715
|
const tree = useFloatingTree();
|
|
3661
3716
|
const outsidePressFn = useEffectEvent(typeof unstable_outsidePress === "function" ? unstable_outsidePress : () => false);
|
|
3662
3717
|
const outsidePress = typeof unstable_outsidePress === "function" ? outsidePressFn : unstable_outsidePress;
|
|
3663
|
-
const insideReactTreeRef = React.useRef(false);
|
|
3664
3718
|
const endedOrStartedInsideRef = React.useRef(false);
|
|
3665
3719
|
const {
|
|
3666
3720
|
escapeKey: escapeKeyBubbles,
|
|
@@ -3710,8 +3764,8 @@ function useDismiss(context, props) {
|
|
|
3710
3764
|
});
|
|
3711
3765
|
const closeOnPressOutside = useEffectEvent((event) => {
|
|
3712
3766
|
var _dataRef$current$floa2;
|
|
3713
|
-
const insideReactTree =
|
|
3714
|
-
|
|
3767
|
+
const insideReactTree = dataRef.current.insideReactTree;
|
|
3768
|
+
dataRef.current.insideReactTree = false;
|
|
3715
3769
|
const endedOrStartedInside = endedOrStartedInsideRef.current;
|
|
3716
3770
|
endedOrStartedInsideRef.current = false;
|
|
3717
3771
|
if (outsidePressEvent === "click" && endedOrStartedInside) {
|
|
@@ -3854,8 +3908,8 @@ function useDismiss(context, props) {
|
|
|
3854
3908
|
};
|
|
3855
3909
|
}, [dataRef, elements, escapeKey, outsidePress, outsidePressEvent, open, onOpenChange, ancestorScroll, enabled, escapeKeyBubbles, outsidePressBubbles, closeOnEscapeKeyDown, escapeKeyCapture, closeOnEscapeKeyDownCapture, closeOnPressOutside, outsidePressCapture, closeOnPressOutsideCapture]);
|
|
3856
3910
|
React.useEffect(() => {
|
|
3857
|
-
|
|
3858
|
-
}, [outsidePress, outsidePressEvent]);
|
|
3911
|
+
dataRef.current.insideReactTree = false;
|
|
3912
|
+
}, [dataRef, outsidePress, outsidePressEvent]);
|
|
3859
3913
|
const reference = React.useMemo(() => ({
|
|
3860
3914
|
onKeyDown: closeOnEscapeKeyDown,
|
|
3861
3915
|
...referencePress && {
|
|
@@ -3878,9 +3932,9 @@ function useDismiss(context, props) {
|
|
|
3878
3932
|
endedOrStartedInsideRef.current = true;
|
|
3879
3933
|
},
|
|
3880
3934
|
[captureHandlerKeys[outsidePressEvent]]: () => {
|
|
3881
|
-
|
|
3935
|
+
dataRef.current.insideReactTree = true;
|
|
3882
3936
|
}
|
|
3883
|
-
}), [closeOnEscapeKeyDown, outsidePressEvent]);
|
|
3937
|
+
}), [closeOnEscapeKeyDown, outsidePressEvent, dataRef]);
|
|
3884
3938
|
return React.useMemo(() => enabled ? {
|
|
3885
3939
|
reference,
|
|
3886
3940
|
floating
|