@helsenorge/designsystem-react 8.5.0 → 8.5.1
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 +60 -0
- package/AnchorLink.js.map +1 -0
- package/Avatar.js +34 -0
- package/Avatar.js.map +1 -0
- package/Badge.js +31 -0
- package/Badge.js.map +1 -0
- package/Button.js +130 -0
- package/Button.js.map +1 -0
- package/CHANGELOG.md +28 -3
- package/Checkbox.js +113 -0
- package/Checkbox.js.map +1 -0
- package/Close.js +31 -0
- package/Close.js.map +1 -0
- package/ErrorBoundary.js +35 -0
- package/ErrorBoundary.js.map +1 -0
- package/ErrorWrapper.js +14 -0
- package/ErrorWrapper.js.map +1 -0
- package/Expander.js +108 -0
- package/Expander.js.map +1 -0
- package/FormGroup.js +113 -0
- package/FormGroup.js.map +1 -0
- package/FormLayout.js +38 -0
- package/FormLayout.js.map +1 -0
- package/HelpBubble.js +68 -0
- package/HelpBubble.js.map +1 -0
- package/HighlightPanel.js +71 -0
- package/HighlightPanel.js.map +1 -0
- package/HorizontalScroll.js +49 -0
- package/HorizontalScroll.js.map +1 -0
- package/Icon.js +62 -0
- package/Icon.js.map +1 -0
- package/Illustration.js +41 -0
- package/Illustration.js.map +1 -0
- package/Input.js +140 -0
- package/Input.js.map +1 -0
- package/Label.js +108 -0
- package/Label.js.map +1 -0
- package/LazyIcon.js +30 -0
- package/LazyIcon.js.map +1 -0
- package/LazyIllustration.js +34 -0
- package/LazyIllustration.js.map +1 -0
- package/LinkList.js +63 -0
- package/LinkList.js.map +1 -0
- package/List.js +13 -0
- package/List.js.map +1 -0
- package/ListHeader.js +94 -0
- package/ListHeader.js.map +1 -0
- package/ListHeaderText.js +35 -0
- package/ListHeaderText.js.map +1 -0
- package/MaxCharacters.js +15 -0
- package/MaxCharacters.js.map +1 -0
- package/NotificationBadge.js +68 -0
- package/NotificationBadge.js.map +1 -0
- package/Panel.js +255 -0
- package/Panel.js.map +1 -0
- package/PopOver.js +85 -0
- package/PopOver.js.map +1 -0
- package/RadioButton.js +104 -0
- package/RadioButton.js.map +1 -0
- package/Select.js +76 -0
- package/Select.js.map +1 -0
- package/{components/Spacer/Spacer.js → Spacer.js} +10 -9
- package/Spacer.js.map +1 -0
- package/StatusDot.js +33 -0
- package/StatusDot.js.map +1 -0
- package/StepButtons.js +28 -0
- package/StepButtons.js.map +1 -0
- package/TabList.js +68 -0
- package/TabList.js.map +1 -0
- package/TabPanel.js +18 -0
- package/TabPanel.js.map +1 -0
- package/Table.js +98 -0
- package/Table.js.map +1 -0
- package/TableBody.js +13 -0
- package/TableBody.js.map +1 -0
- package/{components/Table/TableCell/TableCell.js → TableCell.js} +12 -13
- package/TableCell.js.map +1 -0
- package/TableExpandedRow.js +37 -0
- package/TableExpandedRow.js.map +1 -0
- package/TableExpanderCell.js +34 -0
- package/TableExpanderCell.js.map +1 -0
- package/TableHead.js +24 -0
- package/TableHead.js.map +1 -0
- package/TableHeadCell.js +44 -0
- package/TableHeadCell.js.map +1 -0
- package/TableRow.js +62 -0
- package/TableRow.js.map +1 -0
- package/Textarea.js +110 -0
- package/Textarea.js.map +1 -0
- package/Title.js +25 -0
- package/Title.js.map +1 -0
- package/TooltipWord.js +28 -0
- package/TooltipWord.js.map +1 -0
- package/Trigger.js +73 -0
- package/Trigger.js.map +1 -0
- package/__mocks__/uuid.js +1 -1
- package/components/AnchorLink/index.js +1 -1
- package/components/Avatar/index.js +3 -3
- package/components/Badge/index.js +1 -1
- package/components/Button/index.js +1 -1
- package/components/Checkbox/index.js +3 -3
- package/components/Chip/index.js +30 -6
- package/components/Chip/index.js.map +1 -1
- package/components/Close/index.js +2 -2
- package/components/DictionaryTrigger/index.js +25 -2
- package/components/DictionaryTrigger/index.js.map +1 -1
- package/components/Dropdown/index.js +124 -4
- package/components/Dropdown/index.js.map +1 -1
- package/components/Duolist/index.js +70 -5
- package/components/Duolist/index.js.map +1 -1
- package/components/EmptyState/index.js +159 -2
- package/components/EmptyState/index.js.map +1 -1
- package/components/ErrorWrapper/index.js +3 -3
- package/components/Expander/index.js +4 -4
- package/components/ExpanderHierarchy/index.js +102 -2
- package/components/ExpanderHierarchy/index.js.map +1 -1
- package/components/ExpanderList/index.js +139 -3
- package/components/ExpanderList/index.js.map +1 -1
- package/components/EyebrowHeader/index.js +9 -2
- package/components/EyebrowHeader/index.js.map +1 -1
- package/components/FormGroup/index.js +1 -1
- package/components/FormLayout/index.js +5 -5
- package/components/HelpBubble/index.js +4 -4
- package/components/HelpPanel/index.js +21 -2
- package/components/HelpPanel/index.js.map +1 -1
- package/components/HelpQuestion/index.js +31 -2
- package/components/HelpQuestion/index.js.map +1 -1
- package/components/HighlightPanel/index.js +4 -4
- package/components/HorizontalScroll/index.js +1 -1
- package/components/Icon/index.js +5 -5
- package/components/Icons/ActiveMonitoring.js +4 -4
- package/components/Icons/ActiveMonitoring.js.map +1 -1
- package/components/Icons/AcupunctureBack.js +6 -6
- package/components/Icons/AcupunctureBack.js.map +1 -1
- package/components/Icons/AlarmClock.js +15 -5
- package/components/Icons/AlarmClock.js.map +1 -1
- package/components/Icons/AlertSignFill.js +4 -4
- package/components/Icons/AlertSignFill.js.map +1 -1
- package/components/Icons/AlertSignStroke.js +4 -4
- package/components/Icons/AlertSignStroke.js.map +1 -1
- package/components/Icons/Amputation.js +3 -3
- package/components/Icons/Amputation.js.map +1 -1
- package/components/Icons/Anxiety.js +3 -3
- package/components/Icons/Anxiety.js.map +1 -1
- package/components/Icons/Apple.js +3 -3
- package/components/Icons/Apple.js.map +1 -1
- package/components/Icons/Archive.js +7 -7
- package/components/Icons/Archive.js.map +1 -1
- package/components/Icons/ArmFlexing.js +3 -3
- package/components/Icons/ArmFlexing.js.map +1 -1
- package/components/Icons/ArrowDown.js +7 -7
- package/components/Icons/ArrowDown.js.map +1 -1
- package/components/Icons/ArrowLeft.js +3 -3
- package/components/Icons/ArrowLeft.js.map +1 -1
- package/components/Icons/ArrowRight.js +3 -3
- package/components/Icons/ArrowRight.js.map +1 -1
- package/components/Icons/ArrowUp.js +7 -7
- package/components/Icons/ArrowUp.js.map +1 -1
- package/components/Icons/ArrowUpRight.js +4 -4
- package/components/Icons/ArrowUpRight.js.map +1 -1
- package/components/Icons/Attachment.js +4 -4
- package/components/Icons/Attachment.js.map +1 -1
- package/components/Icons/Atv.js +3 -3
- package/components/Icons/Atv.js.map +1 -1
- package/components/Icons/Avatar.js +4 -4
- package/components/Icons/Avatar.js.map +1 -1
- package/components/Icons/AwakePersonOnPillow.js +2 -2
- package/components/Icons/AwakePersonOnPillow.js.map +1 -1
- package/components/Icons/Baby.js +3 -3
- package/components/Icons/Baby.js.map +1 -1
- package/components/Icons/BandAid.js +3 -3
- package/components/Icons/BandAid.js.map +1 -1
- package/components/Icons/BeerAndPills.js +3 -3
- package/components/Icons/BeerAndPills.js.map +1 -1
- package/components/Icons/Bell.js +3 -3
- package/components/Icons/Bell.js.map +1 -1
- package/components/Icons/Bike.js +3 -3
- package/components/Icons/Bike.js.map +1 -1
- package/components/Icons/BirthControl.js +4 -4
- package/components/Icons/BirthControl.js.map +1 -1
- package/components/Icons/BirthdayCake.js +2 -2
- package/components/Icons/BirthdayCake.js.map +1 -1
- package/components/Icons/Boat.js +3 -3
- package/components/Icons/Boat.js.map +1 -1
- package/components/Icons/Body.js +4 -4
- package/components/Icons/Body.js.map +1 -1
- package/components/Icons/Braille.js +4 -4
- package/components/Icons/Braille.js.map +1 -1
- package/components/Icons/Brain.js +3 -3
- package/components/Icons/Brain.js.map +1 -1
- package/components/Icons/BreastReconstruction.js +4 -4
- package/components/Icons/BreastReconstruction.js.map +1 -1
- package/components/Icons/BreastRemoval.js +4 -4
- package/components/Icons/BreastRemoval.js.map +1 -1
- package/components/Icons/Breasts.js +2 -2
- package/components/Icons/Breasts.js.map +1 -1
- package/components/Icons/BrokenHeart.js +3 -3
- package/components/Icons/BrokenHeart.js.map +1 -1
- package/components/Icons/BrokenPuzzle.js +3 -3
- package/components/Icons/BrokenPuzzle.js.map +1 -1
- package/components/Icons/Bus.js +13 -6
- package/components/Icons/Bus.js.map +1 -1
- package/components/Icons/Calendar.js +6 -6
- package/components/Icons/Calendar.js.map +1 -1
- package/components/Icons/CalendarChange.js +7 -7
- package/components/Icons/CalendarChange.js.map +1 -1
- package/components/Icons/CalendarCheck.js +7 -7
- package/components/Icons/CalendarCheck.js.map +1 -1
- package/components/Icons/CalendarEvent.js +3 -3
- package/components/Icons/CalendarEvent.js.map +1 -1
- package/components/Icons/CalendarSave.js +4 -4
- package/components/Icons/CalendarSave.js.map +1 -1
- package/components/Icons/Cancer.js +17 -3
- package/components/Icons/Cancer.js.map +1 -1
- package/components/Icons/Candle.js +5 -5
- package/components/Icons/Candle.js.map +1 -1
- package/components/Icons/Car.js +2 -2
- package/components/Icons/Car.js.map +1 -1
- package/components/Icons/Carton.js +19 -14
- package/components/Icons/Carton.js.map +1 -1
- package/components/Icons/Change.js +14 -8
- package/components/Icons/Change.js.map +1 -1
- package/components/Icons/Check.js +4 -4
- package/components/Icons/Check.js.map +1 -1
- package/components/Icons/CheckFill.js +7 -7
- package/components/Icons/CheckFill.js.map +1 -1
- package/components/Icons/CheckOutline.js +4 -4
- package/components/Icons/CheckOutline.js.map +1 -1
- package/components/Icons/Chest.js +2 -2
- package/components/Icons/Chest.js.map +1 -1
- package/components/Icons/ChevronDown.js +3 -3
- package/components/Icons/ChevronDown.js.map +1 -1
- package/components/Icons/ChevronLeft.js +3 -3
- package/components/Icons/ChevronLeft.js.map +1 -1
- package/components/Icons/ChevronRight.js +3 -3
- package/components/Icons/ChevronRight.js.map +1 -1
- package/components/Icons/ChevronUp.js +3 -3
- package/components/Icons/ChevronUp.js.map +1 -1
- package/components/Icons/ChevronsDown.js +6 -6
- package/components/Icons/ChevronsDown.js.map +1 -1
- package/components/Icons/ChevronsUp.js +7 -7
- package/components/Icons/ChevronsUp.js.map +1 -1
- package/components/Icons/ChildPlaying.js +9 -3
- package/components/Icons/ChildPlaying.js.map +1 -1
- package/components/Icons/Cigarette.js +3 -3
- package/components/Icons/Cigarette.js.map +1 -1
- package/components/Icons/Coins.js +4 -4
- package/components/Icons/Coins.js.map +1 -1
- package/components/Icons/Contacts.js +4 -4
- package/components/Icons/Contacts.js.map +1 -1
- package/components/Icons/Copy.js +15 -4
- package/components/Icons/Copy.js.map +1 -1
- package/components/Icons/CoronaCertificate.js +3 -3
- package/components/Icons/CoronaCertificate.js.map +1 -1
- package/components/Icons/Coronavirus.js +3 -3
- package/components/Icons/Coronavirus.js.map +1 -1
- package/components/Icons/Cough.js +3 -3
- package/components/Icons/Cough.js.map +1 -1
- package/components/Icons/CreditCard.js +33 -10
- package/components/Icons/CreditCard.js.map +1 -1
- package/components/Icons/CriticalHealthInfo.js +3 -3
- package/components/Icons/CriticalHealthInfo.js.map +1 -1
- package/components/Icons/Cross.js +3 -3
- package/components/Icons/Cross.js.map +1 -1
- package/components/Icons/DataExchange.js +4 -4
- package/components/Icons/DataExchange.js.map +1 -1
- package/components/Icons/DataReceived.js +4 -4
- package/components/Icons/DataReceived.js.map +1 -1
- package/components/Icons/DataSent.js +4 -4
- package/components/Icons/DataSent.js.map +1 -1
- package/components/Icons/Depression.js +3 -3
- package/components/Icons/Depression.js.map +1 -1
- package/components/Icons/DigestiveSystem.js +9 -3
- package/components/Icons/DigestiveSystem.js.map +1 -1
- package/components/Icons/Dizzy.js +3 -3
- package/components/Icons/Dizzy.js.map +1 -1
- package/components/Icons/Documents.js +3 -3
- package/components/Icons/Documents.js.map +1 -1
- package/components/Icons/Dog.js +3 -3
- package/components/Icons/Dog.js.map +1 -1
- package/components/Icons/DonorCard.js +3 -3
- package/components/Icons/DonorCard.js.map +1 -1
- package/components/Icons/Download.js +7 -7
- package/components/Icons/Download.js.map +1 -1
- package/components/Icons/Draft.js +3 -3
- package/components/Icons/Draft.js.map +1 -1
- package/components/Icons/EChat.js +4 -4
- package/components/Icons/EChat.js.map +1 -1
- package/components/Icons/Ear.js +10 -7
- package/components/Icons/Ear.js.map +1 -1
- package/components/Icons/EarDeaf.js +4 -4
- package/components/Icons/EarDeaf.js.map +1 -1
- package/components/Icons/EarHearingAid.js +7 -7
- package/components/Icons/EarHearingAid.js.map +1 -1
- package/components/Icons/EarNoseThroat.js +11 -3
- package/components/Icons/EarNoseThroat.js.map +1 -1
- package/components/Icons/EarVolume.js +13 -8
- package/components/Icons/EarVolume.js.map +1 -1
- package/components/Icons/ElderlyPerson.js +2 -2
- package/components/Icons/ElderlyPerson.js.map +1 -1
- package/components/Icons/Embolization.js +4 -4
- package/components/Icons/Embolization.js.map +1 -1
- package/components/Icons/EmergencyCall.js +5 -5
- package/components/Icons/EmergencyCall.js.map +1 -1
- package/components/Icons/EmoticonAnnoyed.js +12 -8
- package/components/Icons/EmoticonAnnoyed.js.map +1 -1
- package/components/Icons/EmoticonDelighted.js +10 -7
- package/components/Icons/EmoticonDelighted.js.map +1 -1
- package/components/Icons/EmoticonDisappointed.js +10 -7
- package/components/Icons/EmoticonDisappointed.js.map +1 -1
- package/components/Icons/EmoticonHappy.js +10 -7
- package/components/Icons/EmoticonHappy.js.map +1 -1
- package/components/Icons/EmoticonMeh.js +10 -7
- package/components/Icons/EmoticonMeh.js.map +1 -1
- package/components/Icons/EnterFullScreen.js +13 -4
- package/components/Icons/EnterFullScreen.js.map +1 -1
- package/components/Icons/Envelope.js +4 -4
- package/components/Icons/Envelope.js.map +1 -1
- package/components/Icons/Epilepsy.js +3 -3
- package/components/Icons/Epilepsy.js.map +1 -1
- package/components/Icons/Eraser.js +10 -4
- package/components/Icons/Eraser.js.map +1 -1
- package/components/Icons/ErrorSignFill.js +4 -4
- package/components/Icons/ErrorSignFill.js.map +1 -1
- package/components/Icons/ErrorSignStroke.js +4 -4
- package/components/Icons/ErrorSignStroke.js.map +1 -1
- package/components/Icons/EuropeanHealthCard.js +6 -3
- package/components/Icons/EuropeanHealthCard.js.map +1 -1
- package/components/Icons/ExitFullScreen.js +13 -4
- package/components/Icons/ExitFullScreen.js.map +1 -1
- package/components/Icons/Eye.js +12 -4
- package/components/Icons/Eye.js.map +1 -1
- package/components/Icons/Facebook.js +3 -3
- package/components/Icons/Facebook.js.map +1 -1
- package/components/Icons/FallingLeaf.js +14 -9
- package/components/Icons/FallingLeaf.js.map +1 -1
- package/components/Icons/Female.js +3 -3
- package/components/Icons/Female.js.map +1 -1
- package/components/Icons/FemaleDoctor.js +2 -2
- package/components/Icons/FemaleDoctor.js.map +1 -1
- package/components/Icons/Ferry.js +3 -3
- package/components/Icons/Ferry.js.map +1 -1
- package/components/Icons/File.js +6 -6
- package/components/Icons/File.js.map +1 -1
- package/components/Icons/Filter.js +5 -5
- package/components/Icons/Filter.js.map +1 -1
- package/components/Icons/FingerBleed.js +3 -3
- package/components/Icons/FingerBleed.js.map +1 -1
- package/components/Icons/FirstAidKit.js +3 -3
- package/components/Icons/FirstAidKit.js.map +1 -1
- package/components/Icons/Fish.js +21 -14
- package/components/Icons/Fish.js.map +1 -1
- package/components/Icons/FloppyDisk.js +4 -4
- package/components/Icons/FloppyDisk.js.map +1 -1
- package/components/Icons/Football.js +3 -3
- package/components/Icons/Football.js.map +1 -1
- package/components/Icons/Form.js +4 -4
- package/components/Icons/Form.js.map +1 -1
- package/components/Icons/Forward.js +10 -4
- package/components/Icons/Forward.js.map +1 -1
- package/components/Icons/Gallery.js +7 -7
- package/components/Icons/Gallery.js.map +1 -1
- package/components/Icons/Garden.js +3 -3
- package/components/Icons/Garden.js.map +1 -1
- package/components/Icons/GasCan.js +3 -3
- package/components/Icons/GasCan.js.map +1 -1
- package/components/Icons/GenderIdentity.js +4 -4
- package/components/Icons/GenderIdentity.js.map +1 -1
- package/components/Icons/GlassWater.js +3 -3
- package/components/Icons/GlassWater.js.map +1 -1
- package/components/Icons/Glasses.js +4 -4
- package/components/Icons/Glasses.js.map +1 -1
- package/components/Icons/Globe.js +4 -4
- package/components/Icons/Globe.js.map +1 -1
- package/components/Icons/Grain.js +3 -3
- package/components/Icons/Grain.js.map +1 -1
- package/components/Icons/Graph.js +12 -9
- package/components/Icons/Graph.js.map +1 -1
- package/components/Icons/Group.js +8 -8
- package/components/Icons/Group.js.map +1 -1
- package/components/Icons/GroupTwins.js +35 -21
- package/components/Icons/GroupTwins.js.map +1 -1
- package/components/Icons/HTMLFile.js +10 -7
- package/components/Icons/HTMLFile.js.map +1 -1
- package/components/Icons/HandWaving.js +3 -3
- package/components/Icons/HandWaving.js.map +1 -1
- package/components/Icons/HandWithDisease.js +3 -3
- package/components/Icons/HandWithDisease.js.map +1 -1
- package/components/Icons/HandsAndHeart.js +5 -5
- package/components/Icons/HandsAndHeart.js.map +1 -1
- package/components/Icons/HealthClinic.js +4 -4
- package/components/Icons/HealthClinic.js.map +1 -1
- package/components/Icons/HealthWarning.js +4 -4
- package/components/Icons/HealthWarning.js.map +1 -1
- package/components/Icons/HealthcarePerson.js +27 -14
- package/components/Icons/HealthcarePerson.js.map +1 -1
- package/components/Icons/HealthcarePersonell.js +36 -18
- package/components/Icons/HealthcarePersonell.js.map +1 -1
- package/components/Icons/HearingProtection.js +12 -9
- package/components/Icons/HearingProtection.js.map +1 -1
- package/components/Icons/Heart.js +4 -4
- package/components/Icons/Heart.js.map +1 -1
- package/components/Icons/HeartHands.js +29 -22
- package/components/Icons/HeartHands.js.map +1 -1
- package/components/Icons/HelpSign.js +4 -4
- package/components/Icons/HelpSign.js.map +1 -1
- package/components/Icons/HelpingHand.js +3 -3
- package/components/Icons/HelpingHand.js.map +1 -1
- package/components/Icons/Hemodialysis.js +3 -3
- package/components/Icons/Hemodialysis.js.map +1 -1
- package/components/Icons/Hiker.js +2 -2
- package/components/Icons/Hiker.js.map +1 -1
- package/components/Icons/Hipprosthesis.js +4 -4
- package/components/Icons/Hipprosthesis.js.map +1 -1
- package/components/Icons/History.js +4 -4
- package/components/Icons/History.js.map +1 -1
- package/components/Icons/HivAndAids.js +3 -3
- package/components/Icons/HivAndAids.js.map +1 -1
- package/components/Icons/Home.js +7 -7
- package/components/Icons/Home.js.map +1 -1
- package/components/Icons/Hormone.js +3 -3
- package/components/Icons/Hormone.js.map +1 -1
- package/components/Icons/Hospital.js +7 -7
- package/components/Icons/Hospital.js.map +1 -1
- package/components/Icons/Hourglass.js +7 -7
- package/components/Icons/Hourglass.js.map +1 -1
- package/components/Icons/ImgFile.js +4 -4
- package/components/Icons/ImgFile.js.map +1 -1
- package/components/Icons/Inbox.js +6 -3
- package/components/Icons/Inbox.js.map +1 -1
- package/components/Icons/InfoSignFill.js +4 -4
- package/components/Icons/InfoSignFill.js.map +1 -1
- package/components/Icons/InfoSignStroke.js +4 -4
- package/components/Icons/InfoSignStroke.js.map +1 -1
- package/components/Icons/Instagram.js +9 -2
- package/components/Icons/Instagram.js.map +1 -1
- package/components/Icons/Intravenous.js +4 -4
- package/components/Icons/Intravenous.js.map +1 -1
- package/components/Icons/JointPain.js +3 -3
- package/components/Icons/JointPain.js.map +1 -1
- package/components/Icons/Journal.js +4 -4
- package/components/Icons/Journal.js.map +1 -1
- package/components/Icons/JpgFile.js +4 -4
- package/components/Icons/JpgFile.js.map +1 -1
- package/components/Icons/Kidney.js +3 -3
- package/components/Icons/Kidney.js.map +1 -1
- package/components/Icons/KitchenScale.js +4 -4
- package/components/Icons/KitchenScale.js.map +1 -1
- package/components/Icons/Kjernejournal.js +3 -3
- package/components/Icons/Kjernejournal.js.map +1 -1
- package/components/Icons/Laboratory.js +4 -4
- package/components/Icons/Laboratory.js.map +1 -1
- package/components/Icons/LaptopBlog.js +3 -3
- package/components/Icons/LaptopBlog.js.map +1 -1
- package/components/Icons/LawBook.js +6 -3
- package/components/Icons/LawBook.js.map +1 -1
- package/components/Icons/LegalDocument.js +13 -10
- package/components/Icons/LegalDocument.js.map +1 -1
- package/components/Icons/LightBulb.js +2 -2
- package/components/Icons/LightBulb.js.map +1 -1
- package/components/Icons/List.js +7 -7
- package/components/Icons/List.js.map +1 -1
- package/components/Icons/Location.js +6 -3
- package/components/Icons/Location.js.map +1 -1
- package/components/Icons/Lock.js +4 -4
- package/components/Icons/Lock.js.map +1 -1
- package/components/Icons/Login.js +20 -11
- package/components/Icons/Login.js.map +1 -1
- package/components/Icons/Logout.js +20 -11
- package/components/Icons/Logout.js.map +1 -1
- package/components/Icons/Lungs.js +3 -3
- package/components/Icons/Lungs.js.map +1 -1
- package/components/Icons/Makeup.js +2 -2
- package/components/Icons/Makeup.js.map +1 -1
- package/components/Icons/MaleDoctor.js +2 -2
- package/components/Icons/MaleDoctor.js.map +1 -1
- package/components/Icons/MaleDoctorAndPerson.js +11 -3
- package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
- package/components/Icons/MaleGenitalia.js +2 -2
- package/components/Icons/MaleGenitalia.js.map +1 -1
- package/components/Icons/Medicine.js +6 -6
- package/components/Icons/Medicine.js.map +1 -1
- package/components/Icons/MedicineWarning.js +4 -4
- package/components/Icons/MedicineWarning.js.map +1 -1
- package/components/Icons/MentalHealthAdult.js +9 -3
- package/components/Icons/MentalHealthAdult.js.map +1 -1
- package/components/Icons/MentalHealthChild.js +9 -3
- package/components/Icons/MentalHealthChild.js.map +1 -1
- package/components/Icons/Menu.js +4 -4
- package/components/Icons/Menu.js.map +1 -1
- package/components/Icons/Microscope.js +4 -4
- package/components/Icons/Microscope.js.map +1 -1
- package/components/Icons/Minus.js +3 -3
- package/components/Icons/Minus.js.map +1 -1
- package/components/Icons/Mirror.js +3 -3
- package/components/Icons/Mirror.js.map +1 -1
- package/components/Icons/MobilePhone.js +4 -4
- package/components/Icons/MobilePhone.js.map +1 -1
- package/components/Icons/MotherHoldingBaby.js +2 -2
- package/components/Icons/MotherHoldingBaby.js.map +1 -1
- package/components/Icons/MuscleBack.js +11 -3
- package/components/Icons/MuscleBack.js.map +1 -1
- package/components/Icons/MuscleLeg.js +9 -3
- package/components/Icons/MuscleLeg.js.map +1 -1
- package/components/Icons/Mushroom.js +3 -3
- package/components/Icons/Mushroom.js.map +1 -1
- package/components/Icons/Music.js +3 -3
- package/components/Icons/Music.js.map +1 -1
- package/components/Icons/MusselsAndSalt.js +2 -2
- package/components/Icons/MusselsAndSalt.js.map +1 -1
- package/components/Icons/NoAccess.js +20 -17
- package/components/Icons/NoAccess.js.map +1 -1
- package/components/Icons/NoEye.js +9 -9
- package/components/Icons/NoEye.js.map +1 -1
- package/components/Icons/NoFilter.js +10 -4
- package/components/Icons/NoFilter.js.map +1 -1
- package/components/Icons/Notepad.js +2 -2
- package/components/Icons/Notepad.js.map +1 -1
- package/components/Icons/Osteotomy.js +4 -4
- package/components/Icons/Osteotomy.js.map +1 -1
- package/components/Icons/PaintRoller.js +3 -3
- package/components/Icons/PaintRoller.js.map +1 -1
- package/components/Icons/PaperPlane.js +4 -4
- package/components/Icons/PaperPlane.js.map +1 -1
- package/components/Icons/PatientAndPerson.js +2 -2
- package/components/Icons/PatientAndPerson.js.map +1 -1
- package/components/Icons/Pause.js +4 -4
- package/components/Icons/Pause.js.map +1 -1
- package/components/Icons/PdfFile.js +4 -4
- package/components/Icons/PdfFile.js.map +1 -1
- package/components/Icons/Pencil.js +4 -4
- package/components/Icons/Pencil.js.map +1 -1
- package/components/Icons/PeopleTalking.js +3 -3
- package/components/Icons/PeopleTalking.js.map +1 -1
- package/components/Icons/Peritonealdialysis.js +4 -4
- package/components/Icons/Peritonealdialysis.js.map +1 -1
- package/components/Icons/Person.js +2 -2
- package/components/Icons/Person.js.map +1 -1
- package/components/Icons/PersonAndPatient.js +2 -2
- package/components/Icons/PersonAndPatient.js.map +1 -1
- package/components/Icons/PersonCancel.js +28 -19
- package/components/Icons/PersonCancel.js.map +1 -1
- package/components/Icons/PersonInXRayMachine.js +4 -4
- package/components/Icons/PersonInXRayMachine.js.map +1 -1
- package/components/Icons/PersonOverweight.js +3 -3
- package/components/Icons/PersonOverweight.js.map +1 -1
- package/components/Icons/PersonRelaxing.js +9 -3
- package/components/Icons/PersonRelaxing.js.map +1 -1
- package/components/Icons/PersonWithBrain.js +6 -3
- package/components/Icons/PersonWithBrain.js.map +1 -1
- package/components/Icons/PersonWithBrokenArm.js +3 -3
- package/components/Icons/PersonWithBrokenArm.js.map +1 -1
- package/components/Icons/PersonWithCrutches.js +3 -3
- package/components/Icons/PersonWithCrutches.js.map +1 -1
- package/components/Icons/PersonWithJaw.js +9 -3
- package/components/Icons/PersonWithJaw.js.map +1 -1
- package/components/Icons/PersonWithMagnifyingGlass.js +8 -2
- package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
- package/components/Icons/PersonWithSenses.js +15 -3
- package/components/Icons/PersonWithSenses.js.map +1 -1
- package/components/Icons/PersonWorking.js +9 -3
- package/components/Icons/PersonWorking.js.map +1 -1
- package/components/Icons/PersonalPlan.js +14 -11
- package/components/Icons/PersonalPlan.js.map +1 -1
- package/components/Icons/PizzaSlice.js +8 -2
- package/components/Icons/PizzaSlice.js.map +1 -1
- package/components/Icons/Plane.js +3 -3
- package/components/Icons/Plane.js.map +1 -1
- package/components/Icons/Plant.js +3 -3
- package/components/Icons/Plant.js.map +1 -1
- package/components/Icons/PlateKnifeFork.js +17 -14
- package/components/Icons/PlateKnifeFork.js.map +1 -1
- package/components/Icons/Play.js +4 -4
- package/components/Icons/Play.js.map +1 -1
- package/components/Icons/PlusLarge.js +4 -4
- package/components/Icons/PlusLarge.js.map +1 -1
- package/components/Icons/PlusSmall.js +4 -4
- package/components/Icons/PlusSmall.js.map +1 -1
- package/components/Icons/PngFile.js +4 -4
- package/components/Icons/PngFile.js.map +1 -1
- package/components/Icons/Podcast.js +4 -4
- package/components/Icons/Podcast.js.map +1 -1
- package/components/Icons/PoisonInformation.js +9 -3
- package/components/Icons/PoisonInformation.js.map +1 -1
- package/components/Icons/Pregnant.js +2 -2
- package/components/Icons/Pregnant.js.map +1 -1
- package/components/Icons/Printer.js +7 -7
- package/components/Icons/Printer.js.map +1 -1
- package/components/Icons/Psychosis.js +2 -2
- package/components/Icons/Psychosis.js.map +1 -1
- package/components/Icons/Publication.js +4 -4
- package/components/Icons/Publication.js.map +1 -1
- package/components/Icons/Puzzle.js +5 -2
- package/components/Icons/Puzzle.js.map +1 -1
- package/components/Icons/QrCode.js +7 -7
- package/components/Icons/QrCode.js.map +1 -1
- package/components/Icons/Quarrel.js +4 -4
- package/components/Icons/Quarrel.js.map +1 -1
- package/components/Icons/RadioTherapy.js +4 -4
- package/components/Icons/RadioTherapy.js.map +1 -1
- package/components/Icons/RadioactiveTreatment.js +4 -4
- package/components/Icons/RadioactiveTreatment.js.map +1 -1
- package/components/Icons/Radioiodine.js +4 -4
- package/components/Icons/Radioiodine.js.map +1 -1
- package/components/Icons/Receipt.js +2 -2
- package/components/Icons/Receipt.js.map +1 -1
- package/components/Icons/Receptionist.js +4 -4
- package/components/Icons/Receptionist.js.map +1 -1
- package/components/Icons/Recovery.js +4 -4
- package/components/Icons/Recovery.js.map +1 -1
- package/components/Icons/Referral.js +4 -4
- package/components/Icons/Referral.js.map +1 -1
- package/components/Icons/Refresh.js +4 -4
- package/components/Icons/Refresh.js.map +1 -1
- package/components/Icons/Refund.js +3 -3
- package/components/Icons/Refund.js.map +1 -1
- package/components/Icons/Reminder.js +14 -9
- package/components/Icons/Reminder.js.map +1 -1
- package/components/Icons/Reply.js +10 -4
- package/components/Icons/Reply.js.map +1 -1
- package/components/Icons/Rocket.js +3 -3
- package/components/Icons/Rocket.js.map +1 -1
- package/components/Icons/RtfFile.js +4 -4
- package/components/Icons/RtfFile.js.map +1 -1
- package/components/Icons/STDs.js +4 -4
- package/components/Icons/STDs.js.map +1 -1
- package/components/Icons/Save.js +12 -4
- package/components/Icons/Save.js.map +1 -1
- package/components/Icons/Scale.js +3 -3
- package/components/Icons/Scale.js.map +1 -1
- package/components/Icons/ScreenReader.js +18 -11
- package/components/Icons/ScreenReader.js.map +1 -1
- package/components/Icons/Search.js +4 -4
- package/components/Icons/Search.js.map +1 -1
- package/components/Icons/SectionSign.js +6 -6
- package/components/Icons/SectionSign.js.map +1 -1
- package/components/Icons/Settings.js +7 -7
- package/components/Icons/Settings.js.map +1 -1
- package/components/Icons/Sexualorientation.js +4 -4
- package/components/Icons/Sexualorientation.js.map +1 -1
- package/components/Icons/ShakingHand.js +3 -3
- package/components/Icons/ShakingHand.js.map +1 -1
- package/components/Icons/Share.js +10 -4
- package/components/Icons/Share.js.map +1 -1
- package/components/Icons/Shield.js +4 -4
- package/components/Icons/Shield.js.map +1 -1
- package/components/Icons/ShuntOperation.js +3 -3
- package/components/Icons/ShuntOperation.js.map +1 -1
- package/components/Icons/Skeleton.js +2 -2
- package/components/Icons/Skeleton.js.map +1 -1
- package/components/Icons/Skin.js +3 -3
- package/components/Icons/Skin.js.map +1 -1
- package/components/Icons/Snake.js +3 -3
- package/components/Icons/Snake.js.map +1 -1
- package/components/Icons/Snapchat.js +6 -3
- package/components/Icons/Snapchat.js.map +1 -1
- package/components/Icons/SortDown.js +19 -7
- package/components/Icons/SortDown.js.map +1 -1
- package/components/Icons/SortUp.js +19 -7
- package/components/Icons/SortUp.js.map +1 -1
- package/components/Icons/SpeechBubble.js +6 -6
- package/components/Icons/SpeechBubble.js.map +1 -1
- package/components/Icons/Spray.js +2 -2
- package/components/Icons/Spray.js.map +1 -1
- package/components/Icons/Stopwatch.js +7 -7
- package/components/Icons/Stopwatch.js.map +1 -1
- package/components/Icons/Sun.js +14 -9
- package/components/Icons/Sun.js.map +1 -1
- package/components/Icons/SupportingPerson.js +25 -22
- package/components/Icons/SupportingPerson.js.map +1 -1
- package/components/Icons/Surgery.js +3 -3
- package/components/Icons/Surgery.js.map +1 -1
- package/components/Icons/Sweets.js +19 -14
- package/components/Icons/Sweets.js.map +1 -1
- package/components/Icons/Syringe.js +6 -6
- package/components/Icons/Syringe.js.map +1 -1
- package/components/Icons/Taxi.js +2 -2
- package/components/Icons/Taxi.js.map +1 -1
- package/components/Icons/TeddyBear.js +3 -3
- package/components/Icons/TeddyBear.js.map +1 -1
- package/components/Icons/Teenagers.js +4 -4
- package/components/Icons/Teenagers.js.map +1 -1
- package/components/Icons/ThinkingAboutBaby.js +3 -3
- package/components/Icons/ThinkingAboutBaby.js.map +1 -1
- package/components/Icons/Ticket.js +3 -3
- package/components/Icons/Ticket.js.map +1 -1
- package/components/Icons/TimePassing.js +7 -7
- package/components/Icons/TimePassing.js.map +1 -1
- package/components/Icons/Tombstone.js +12 -9
- package/components/Icons/Tombstone.js.map +1 -1
- package/components/Icons/Toolbox.js +36 -30
- package/components/Icons/Toolbox.js.map +1 -1
- package/components/Icons/Tooth.js +3 -3
- package/components/Icons/Tooth.js.map +1 -1
- package/components/Icons/TotalKneeProsthesis.js +4 -4
- package/components/Icons/TotalKneeProsthesis.js.map +1 -1
- package/components/Icons/Train.js +3 -3
- package/components/Icons/Train.js.map +1 -1
- package/components/Icons/Transplantation.js +3 -3
- package/components/Icons/Transplantation.js.map +1 -1
- package/components/Icons/TrashCan.js +7 -7
- package/components/Icons/TrashCan.js.map +1 -1
- package/components/Icons/TravelRoute.js +21 -16
- package/components/Icons/TravelRoute.js.map +1 -1
- package/components/Icons/TriangleX.js +32 -35
- package/components/Icons/TriangleX.js.map +1 -1
- package/components/Icons/Twitter.js +3 -3
- package/components/Icons/Twitter.js.map +1 -1
- package/components/Icons/Undo.js +8 -8
- package/components/Icons/Undo.js.map +1 -1
- package/components/Icons/UniProsthesis.js +3 -3
- package/components/Icons/UniProsthesis.js.map +1 -1
- package/components/Icons/Upload.js +10 -4
- package/components/Icons/Upload.js.map +1 -1
- package/components/Icons/UserOrganization.js +2 -2
- package/components/Icons/UserOrganization.js.map +1 -1
- package/components/Icons/Vaccine.js +7 -7
- package/components/Icons/Vaccine.js.map +1 -1
- package/components/Icons/VerticalDots.js +4 -4
- package/components/Icons/VerticalDots.js.map +1 -1
- package/components/Icons/VideoCamera.js +7 -7
- package/components/Icons/VideoCamera.js.map +1 -1
- package/components/Icons/VideoChat.js +4 -4
- package/components/Icons/VideoChat.js.map +1 -1
- package/components/Icons/Wallet.js +4 -4
- package/components/Icons/Wallet.js.map +1 -1
- package/components/Icons/Watch.js +6 -6
- package/components/Icons/Watch.js.map +1 -1
- package/components/Icons/Website.js +4 -4
- package/components/Icons/Website.js.map +1 -1
- package/components/Icons/Wheelchair.js +4 -4
- package/components/Icons/Wheelchair.js.map +1 -1
- package/components/Icons/WheelchairActive.js +3 -3
- package/components/Icons/WheelchairActive.js.map +1 -1
- package/components/Icons/Window.js +3 -3
- package/components/Icons/Window.js.map +1 -1
- package/components/Icons/WordDocument.js +3 -3
- package/components/Icons/WordDocument.js.map +1 -1
- package/components/Icons/WorkSuitcase.js +2 -2
- package/components/Icons/WorkSuitcase.js.map +1 -1
- package/components/Icons/X.js +4 -4
- package/components/Icons/X.js.map +1 -1
- package/components/Icons/XOutline.js +3 -3
- package/components/Icons/XOutline.js.map +1 -1
- package/components/Icons/XmlFile.js +4 -4
- package/components/Icons/XmlFile.js.map +1 -1
- package/components/Icons/YouTube.js +3 -3
- package/components/Icons/YouTube.js.map +1 -1
- package/components/Icons/Zoom.js +6 -6
- package/components/Icons/Zoom.js.map +1 -1
- package/components/Illustration/index.js +3 -3
- package/components/Illustrations/Doctor.js +8 -8
- package/components/Illustrations/Doctor.js.map +1 -1
- package/components/Illustrations/DoctorMedium.js +49 -41
- package/components/Illustrations/DoctorMedium.js.map +1 -1
- package/components/Illustrations/DoctorSmall.js +48 -38
- package/components/Illustrations/DoctorSmall.js.map +1 -1
- package/components/Illustrations/FacialRecognitionFingerprint.js +6 -6
- package/components/Illustrations/FacialRecognitionFingerprint.js.map +1 -1
- package/components/Illustrations/FacialRecognitionFingerprintMedium.js +297 -253
- package/components/Illustrations/FacialRecognitionFingerprintMedium.js.map +1 -1
- package/components/Illustrations/HealthcarePersonnel.js +7 -7
- package/components/Illustrations/HealthcarePersonnel.js.map +1 -1
- package/components/Illustrations/HealthcarePersonnelMedium.js +202 -171
- package/components/Illustrations/HealthcarePersonnelMedium.js.map +1 -1
- package/components/Illustrations/HealthcarePersonnelSmall.js +190 -165
- package/components/Illustrations/HealthcarePersonnelSmall.js.map +1 -1
- package/components/Input/index.js +3 -3
- package/components/Label/index.js +7 -8
- package/components/Label/index.js.map +1 -1
- package/components/LazyIcon/index.js +2 -2
- package/components/LazyIllustration/index.js +5 -5
- package/components/LinkList/index.js +3 -3
- package/components/List/index.js +2 -2
- package/components/ListHeader/ListHeaderText/index.js +1 -1
- package/components/ListHeader/index.js +5 -5
- package/components/Loader/index.js +67 -4
- package/components/Loader/index.js.map +1 -1
- package/components/Logo/index.js +41 -2
- package/components/Logo/index.js.map +1 -1
- package/components/Modal/index.js +162 -5
- package/components/Modal/index.js.map +1 -1
- package/components/NotificationPanel/index.js +98 -2
- package/components/NotificationPanel/index.js.map +1 -1
- package/components/Panel/index.js +4 -4
- package/components/PanelList/index.js +15 -2
- package/components/PanelList/index.js.map +1 -1
- package/components/PopMenu/index.js +92 -6
- package/components/PopMenu/index.js.map +1 -1
- package/components/PopOver/index.js +4 -4
- package/components/Portal/index.js +3 -3
- package/components/Progressbar/index.js +92 -6
- package/components/Progressbar/index.js.map +1 -1
- package/components/Progressbar/styles.module.scss +5 -0
- package/components/Progressbar/styles.module.scss.d.ts +1 -0
- package/components/PromoPanel/index.js +57 -2
- package/components/PromoPanel/index.js.map +1 -1
- package/components/RadioButton/index.js +5 -5
- package/components/Select/index.js +1 -1
- package/components/ServiceMessage/index.js +110 -2
- package/components/ServiceMessage/index.js.map +1 -1
- package/components/SharingStatus/index.js +16 -2
- package/components/SharingStatus/index.js.map +1 -1
- package/components/Slider/index.js +189 -3
- package/components/Slider/index.js.map +1 -1
- package/components/Spacer/index.js +2 -2
- package/components/StatusDot/index.js +4 -4
- package/components/Step/index.js +31 -2
- package/components/Step/index.js.map +1 -1
- package/components/StepButtons/index.js +1 -1
- package/components/Stepper/index.js +49 -2
- package/components/Stepper/index.js.map +1 -1
- package/components/Table/TableBody/index.js +3 -3
- package/components/Table/TableCell/index.js +5 -5
- package/components/Table/TableExpandedRow/index.js +1 -1
- package/components/Table/TableExpanderCell/index.js +3 -3
- package/components/Table/TableHead/index.js +4 -4
- package/components/Table/TableHeadCell/index.js +3 -3
- package/components/Table/TableRow/index.js +3 -3
- package/components/Table/index.js +22 -22
- package/components/Tabs/TabList/index.js +2 -2
- package/components/Tabs/TabPanel/index.js +1 -1
- package/components/Tabs/index.js +94 -2
- package/components/Tabs/index.js.map +1 -1
- package/components/Tag/index.js +22 -5
- package/components/Tag/index.js.map +1 -1
- package/components/TagList/index.js +6 -2
- package/components/TagList/index.js.map +1 -1
- package/components/Textarea/index.js +1 -1
- package/components/Tile/index.js +70 -3
- package/components/Tile/index.js.map +1 -1
- package/components/Title/index.js +5 -5
- package/components/Toggle/index.js +2653 -5
- package/components/Toggle/index.js.map +1 -1
- package/components/Tooltip/TooltipWord/index.js +1 -1
- package/components/Tooltip/index.js +54 -5
- package/components/Tooltip/index.js.map +1 -1
- package/components/Trigger/index.js +2 -2
- package/components/Validation/index.js +47 -3
- package/components/Validation/index.js.map +1 -1
- package/{components → docs}/ButtonWithModal/ButtonWithModal.d.ts +1 -1
- package/{components → docs}/HelpBubbleExample/HelpBubbleExample.d.ts +1 -1
- package/{components → docs}/TooltipExample/TooltipExample.d.ts +1 -1
- package/hoc/withBreakpoint/withBreakpoint.js +9 -8
- package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
- package/hooks/useIcons.js +9 -9
- package/hooks/useUuid.js +3 -3
- package/index.js +3 -3
- package/package.json +1 -1
- package/utils/component.js +2 -2
- package/utils/uuid.js +4 -7
- package/utils/uuid.js.map +1 -1
- package/{components/Illustration/utils.js → utils.js} +1 -1
- package/utils.js.map +1 -0
- package/uuid.js +14 -0
- package/uuid.js.map +1 -0
- package/_virtual/_cloneBuffer.js +0 -5
- package/_virtual/_cloneBuffer.js.map +0 -1
- package/_virtual/_commonjs-dynamic-modules.js +0 -7
- package/_virtual/_commonjs-dynamic-modules.js.map +0 -1
- package/_virtual/_commonjsHelpers.js +0 -9
- package/_virtual/_commonjsHelpers.js.map +0 -1
- package/_virtual/_nodeUtil.js +0 -5
- package/_virtual/_nodeUtil.js.map +0 -1
- package/_virtual/dynamic-import-helper.js +0 -17
- package/_virtual/dynamic-import-helper.js.map +0 -1
- package/_virtual/isBuffer.js +0 -5
- package/_virtual/isBuffer.js.map +0 -1
- package/_virtual/memoizerific.js +0 -5
- package/_virtual/memoizerific.js.map +0 -1
- package/components/AnchorLink/AnchorLink.js +0 -53
- package/components/AnchorLink/AnchorLink.js.map +0 -1
- package/components/Avatar/Avatar.js +0 -33
- package/components/Avatar/Avatar.js.map +0 -1
- package/components/Badge/Badge.js +0 -30
- package/components/Badge/Badge.js.map +0 -1
- package/components/Badge/NotificationBadge.js +0 -68
- package/components/Badge/NotificationBadge.js.map +0 -1
- package/components/Button/Button.js +0 -118
- package/components/Button/Button.js.map +0 -1
- package/components/ButtonWithModal/ButtonWithModal.js +0 -11
- package/components/ButtonWithModal/ButtonWithModal.js.map +0 -1
- package/components/ButtonWithModal/index.js +0 -5
- package/components/ButtonWithModal/index.js.map +0 -1
- package/components/Checkbox/Checkbox.js +0 -110
- package/components/Checkbox/Checkbox.js.map +0 -1
- package/components/Chip/Chip.js +0 -30
- package/components/Chip/Chip.js.map +0 -1
- package/components/Close/Close.js +0 -30
- package/components/Close/Close.js.map +0 -1
- package/components/DictionaryTrigger/DictionaryTrigger.js +0 -27
- package/components/DictionaryTrigger/DictionaryTrigger.js.map +0 -1
- package/components/Dropdown/Dropdown.js +0 -117
- package/components/Dropdown/Dropdown.js.map +0 -1
- package/components/Duolist/Duolist.js +0 -63
- package/components/Duolist/Duolist.js.map +0 -1
- package/components/EmptyState/EmptyState.js +0 -10
- package/components/EmptyState/EmptyState.js.map +0 -1
- package/components/EmptyState/NobodyHome.js +0 -155
- package/components/EmptyState/NobodyHome.js.map +0 -1
- package/components/ErrorWrapper/ErrorWrapper.js +0 -12
- package/components/ErrorWrapper/ErrorWrapper.js.map +0 -1
- package/components/Expander/Expander.js +0 -101
- package/components/Expander/Expander.js.map +0 -1
- package/components/ExpanderHierarchy/Expander.js +0 -31
- package/components/ExpanderHierarchy/Expander.js.map +0 -1
- package/components/ExpanderHierarchy/ExpanderButton.js +0 -46
- package/components/ExpanderHierarchy/ExpanderButton.js.map +0 -1
- package/components/ExpanderHierarchy/ExpanderHierarchy.js +0 -28
- package/components/ExpanderHierarchy/ExpanderHierarchy.js.map +0 -1
- package/components/ExpanderHierarchy/utils.js +0 -20
- package/components/ExpanderHierarchy/utils.js.map +0 -1
- package/components/ExpanderList/ExpanderList.js +0 -139
- package/components/ExpanderList/ExpanderList.js.map +0 -1
- package/components/EyebrowHeader/EyebrowHeader.js +0 -12
- package/components/EyebrowHeader/EyebrowHeader.js.map +0 -1
- package/components/FormExample/FormExample.js +0 -161
- package/components/FormExample/FormExample.js.map +0 -1
- package/components/FormExample/index.js +0 -8
- package/components/FormExample/index.js.map +0 -1
- package/components/FormExample/styles.module.scss +0 -33
- package/components/FormExample/styles.module.scss.d.ts +0 -12
- package/components/FormGroup/FormGroup.js +0 -101
- package/components/FormGroup/FormGroup.js.map +0 -1
- package/components/FormLayout/FormLayout.js +0 -38
- package/components/FormLayout/FormLayout.js.map +0 -1
- package/components/GridExample/GridExample.js +0 -8
- package/components/GridExample/GridExample.js.map +0 -1
- package/components/GridExample/index.js +0 -6
- package/components/GridExample/index.js.map +0 -1
- package/components/HelpBubble/HelpBubble.js +0 -61
- package/components/HelpBubble/HelpBubble.js.map +0 -1
- package/components/HelpBubbleExample/HelpBubbleExample.js +0 -20
- package/components/HelpBubbleExample/HelpBubbleExample.js.map +0 -1
- package/components/HelpBubbleExample/index.js +0 -5
- package/components/HelpBubbleExample/index.js.map +0 -1
- package/components/HelpPanel/HelpPanel.js +0 -24
- package/components/HelpPanel/HelpPanel.js.map +0 -1
- package/components/HelpQuestion/HelpQuestion.js +0 -31
- package/components/HelpQuestion/HelpQuestion.js.map +0 -1
- package/components/HighlightPanel/HighlightPanel.js +0 -61
- package/components/HighlightPanel/HighlightPanel.js.map +0 -1
- package/components/HorizontalScroll/HorizontalScroll.js +0 -47
- package/components/HorizontalScroll/HorizontalScroll.js.map +0 -1
- package/components/Icon/Icon.js +0 -60
- package/components/Icon/Icon.js.map +0 -1
- package/components/Illustration/Illustration.js +0 -41
- package/components/Illustration/Illustration.js.map +0 -1
- package/components/Illustration/utils.js.map +0 -1
- package/components/Input/Input.js +0 -129
- package/components/Input/Input.js.map +0 -1
- package/components/Label/Label.js +0 -79
- package/components/Label/Label.js.map +0 -1
- package/components/Label/SubLabel.js +0 -19
- package/components/Label/SubLabel.js.map +0 -1
- package/components/LazyIcon/ErrorBoundary.js +0 -21
- package/components/LazyIcon/ErrorBoundary.js.map +0 -1
- package/components/LazyIcon/LazyIcon.js +0 -31
- package/components/LazyIcon/LazyIcon.js.map +0 -1
- package/components/LazyIllustration/LazyIllustration.js +0 -35
- package/components/LazyIllustration/LazyIllustration.js.map +0 -1
- package/components/LinkList/LinkList.js +0 -60
- package/components/LinkList/LinkList.js.map +0 -1
- package/components/List/List.js +0 -13
- package/components/List/List.js.map +0 -1
- package/components/ListHeader/ListHeader.js +0 -84
- package/components/ListHeader/ListHeader.js.map +0 -1
- package/components/ListHeader/ListHeaderText/ListHeaderText.js +0 -30
- package/components/ListHeader/ListHeaderText/ListHeaderText.js.map +0 -1
- package/components/Loader/Loader.js +0 -67
- package/components/Loader/Loader.js.map +0 -1
- package/components/Logo/Logo.js +0 -40
- package/components/Logo/Logo.js.map +0 -1
- package/components/MaxCharacters/MaxCharacters.js +0 -15
- package/components/MaxCharacters/MaxCharacters.js.map +0 -1
- package/components/Modal/Modal.js +0 -145
- package/components/Modal/Modal.js.map +0 -1
- package/components/NotificationPanel/NotificationPanel.js +0 -94
- package/components/NotificationPanel/NotificationPanel.js.map +0 -1
- package/components/Panel/Panel.js +0 -191
- package/components/Panel/Panel.js.map +0 -1
- package/components/PanelList/PanelList.js +0 -17
- package/components/PanelList/PanelList.js.map +0 -1
- package/components/PopMenu/PopMenu.js +0 -89
- package/components/PopMenu/PopMenu.js.map +0 -1
- package/components/PopOver/PopOver.js +0 -56
- package/components/PopOver/PopOver.js.map +0 -1
- package/components/PopOver/utils.js +0 -33
- package/components/PopOver/utils.js.map +0 -1
- package/components/Progressbar/Progressbar.js +0 -89
- package/components/Progressbar/Progressbar.js.map +0 -1
- package/components/PromoPanel/PromoPanel.js +0 -52
- package/components/PromoPanel/PromoPanel.js.map +0 -1
- package/components/RadioButton/RadioButton.js +0 -104
- package/components/RadioButton/RadioButton.js.map +0 -1
- package/components/Select/Select.js +0 -70
- package/components/Select/Select.js.map +0 -1
- package/components/ServiceMessage/ServiceMessage.js +0 -92
- package/components/ServiceMessage/ServiceMessage.js.map +0 -1
- package/components/SharingStatus/SharingStatus.js +0 -16
- package/components/SharingStatus/SharingStatus.js.map +0 -1
- package/components/Slider/Slider.js +0 -178
- package/components/Slider/Slider.js.map +0 -1
- package/components/Spacer/Spacer.js.map +0 -1
- package/components/StatusDot/StatusDot.js +0 -29
- package/components/StatusDot/StatusDot.js.map +0 -1
- package/components/Step/Step.js +0 -30
- package/components/Step/Step.js.map +0 -1
- package/components/StepButtons/StepButtons.js +0 -21
- package/components/StepButtons/StepButtons.js.map +0 -1
- package/components/Stepper/Dot.js +0 -16
- package/components/Stepper/Dot.js.map +0 -1
- package/components/Stepper/DotList.js +0 -7
- package/components/Stepper/DotList.js.map +0 -1
- package/components/Stepper/Stepper.js +0 -35
- package/components/Stepper/Stepper.js.map +0 -1
- package/components/Stepper/utils.js +0 -16
- package/components/Stepper/utils.js.map +0 -1
- package/components/Table/Table.js +0 -76
- package/components/Table/Table.js.map +0 -1
- package/components/Table/TableBody/TableBody.js +0 -13
- package/components/Table/TableBody/TableBody.js.map +0 -1
- package/components/Table/TableCell/TableCell.js.map +0 -1
- package/components/Table/TableExpandedRow/TableExpandedRow.js +0 -31
- package/components/Table/TableExpandedRow/TableExpandedRow.js.map +0 -1
- package/components/Table/TableExpanderCell/TableExpanderCell.js +0 -35
- package/components/Table/TableExpanderCell/TableExpanderCell.js.map +0 -1
- package/components/Table/TableExpanderCell/TableExpanderCellMobile.js +0 -25
- package/components/Table/TableExpanderCell/TableExpanderCellMobile.js.map +0 -1
- package/components/Table/TableHead/TableHead.js +0 -24
- package/components/Table/TableHead/TableHead.js.map +0 -1
- package/components/Table/TableHeadCell/TableHeadCell.js +0 -42
- package/components/Table/TableHeadCell/TableHeadCell.js.map +0 -1
- package/components/Table/TableRow/TableRow.js +0 -40
- package/components/Table/TableRow/TableRow.js.map +0 -1
- package/components/Table/utils.js +0 -32
- package/components/Table/utils.js.map +0 -1
- package/components/Tabs/Tab.js +0 -6
- package/components/Tabs/Tab.js.map +0 -1
- package/components/Tabs/TabList/TabItem.js +0 -45
- package/components/Tabs/TabList/TabItem.js.map +0 -1
- package/components/Tabs/TabList/TabList.js +0 -28
- package/components/Tabs/TabList/TabList.js.map +0 -1
- package/components/Tabs/TabPanel/TabPanel.js +0 -17
- package/components/Tabs/TabPanel/TabPanel.js.map +0 -1
- package/components/Tabs/Tabs.js +0 -92
- package/components/Tabs/Tabs.js.map +0 -1
- package/components/Tag/Tag.js +0 -22
- package/components/Tag/Tag.js.map +0 -1
- package/components/TagList/TagList.js +0 -8
- package/components/TagList/TagList.js.map +0 -1
- package/components/Textarea/Textarea.js +0 -105
- package/components/Textarea/Textarea.js.map +0 -1
- package/components/Tile/Tile.js +0 -67
- package/components/Tile/Tile.js.map +0 -1
- package/components/Title/Title.js +0 -25
- package/components/Title/Title.js.map +0 -1
- package/components/Toggle/Toggle.js +0 -92
- package/components/Toggle/Toggle.js.map +0 -1
- package/components/Tooltip/Tooltip.js +0 -55
- package/components/Tooltip/Tooltip.js.map +0 -1
- package/components/Tooltip/TooltipWord/TooltipWord.js +0 -27
- package/components/Tooltip/TooltipWord/TooltipWord.js.map +0 -1
- package/components/TooltipExample/TooltipExample.js +0 -8
- package/components/TooltipExample/TooltipExample.js.map +0 -1
- package/components/TooltipExample/index.js +0 -5
- package/components/TooltipExample/index.js.map +0 -1
- package/components/Trigger/HelpSign.js +0 -7
- package/components/Trigger/HelpSign.js.map +0 -1
- package/components/Trigger/Trigger.js +0 -73
- package/components/Trigger/Trigger.js.map +0 -1
- package/components/Validation/ErrorList.js +0 -8
- package/components/Validation/ErrorList.js.map +0 -1
- package/components/Validation/ErrorListItem.js +0 -12
- package/components/Validation/ErrorListItem.js.map +0 -1
- package/components/Validation/Validation.js +0 -18
- package/components/Validation/Validation.js.map +0 -1
- package/components/Validation/ValidationSummary.js +0 -25
- package/components/Validation/ValidationSummary.js.map +0 -1
- package/docs/index.d.ts +0 -8
- package/docs/index.js +0 -14
- package/docs/index.js.map +0 -1
- /package/{components → docs}/ButtonWithModal/index.d.ts +0 -0
- /package/{components → docs}/FormExample/FormExample.d.ts +0 -0
- /package/{components → docs}/FormExample/index.d.ts +0 -0
- /package/{components → docs}/GridExample/GridExample.d.ts +0 -0
- /package/{components → docs}/GridExample/index.d.ts +0 -0
- /package/{components → docs}/HelpBubbleExample/index.d.ts +0 -0
- /package/{components → docs}/TooltipExample/index.d.ts +0 -0
|
@@ -1,8 +1,2656 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as Q, Fragment as ut, jsx as E } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as kn, useEffect as ye, useState as ct } from "react";
|
|
3
|
+
import W from "classnames";
|
|
4
|
+
import { AnalyticsId as Ln } from "../../constants.js";
|
|
5
|
+
import { usePseudoClasses as Wn } from "../../hooks/usePseudoClasses.js";
|
|
6
|
+
import { useUuid as J } from "../../hooks/useUuid.js";
|
|
7
|
+
import M from "./styles.module.scss";
|
|
8
|
+
const ht = /* @__PURE__ */ new Set();
|
|
9
|
+
function Le(t, e, n) {
|
|
10
|
+
t || ht.has(e) || (console.warn(e), ht.add(e));
|
|
11
|
+
}
|
|
12
|
+
function $n(t) {
|
|
13
|
+
return t !== null && typeof t == "object" && typeof t.start == "function";
|
|
14
|
+
}
|
|
15
|
+
const Un = (t) => Array.isArray(t);
|
|
16
|
+
function Bt(t) {
|
|
17
|
+
return typeof t == "string" || Array.isArray(t);
|
|
18
|
+
}
|
|
19
|
+
function ft(t) {
|
|
20
|
+
const e = [{}, {}];
|
|
21
|
+
return t == null || t.values.forEach((n, s) => {
|
|
22
|
+
e[0][s] = n.get(), e[1][s] = n.getVelocity();
|
|
23
|
+
}), e;
|
|
24
|
+
}
|
|
25
|
+
function kt(t, e, n, s) {
|
|
26
|
+
if (typeof e == "function") {
|
|
27
|
+
const [i, r] = ft(s);
|
|
28
|
+
e = e(n !== void 0 ? n : t.custom, i, r);
|
|
29
|
+
}
|
|
30
|
+
if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
|
|
31
|
+
const [i, r] = ft(s);
|
|
32
|
+
e = e(n !== void 0 ? n : t.custom, i, r);
|
|
33
|
+
}
|
|
34
|
+
return e;
|
|
35
|
+
}
|
|
36
|
+
function jn(t, e, n) {
|
|
37
|
+
const s = t.getProps();
|
|
38
|
+
return kt(s, e, s.custom, t);
|
|
39
|
+
}
|
|
40
|
+
const Gn = [
|
|
41
|
+
"animate",
|
|
42
|
+
"whileInView",
|
|
43
|
+
"whileFocus",
|
|
44
|
+
"whileHover",
|
|
45
|
+
"whileTap",
|
|
46
|
+
"whileDrag",
|
|
47
|
+
"exit"
|
|
48
|
+
], We = ["initial", ...Gn], oe = [
|
|
49
|
+
"transformPerspective",
|
|
50
|
+
"x",
|
|
51
|
+
"y",
|
|
52
|
+
"z",
|
|
53
|
+
"translateX",
|
|
54
|
+
"translateY",
|
|
55
|
+
"translateZ",
|
|
56
|
+
"scale",
|
|
57
|
+
"scaleX",
|
|
58
|
+
"scaleY",
|
|
59
|
+
"rotate",
|
|
60
|
+
"rotateX",
|
|
61
|
+
"rotateY",
|
|
62
|
+
"rotateZ",
|
|
63
|
+
"skew",
|
|
64
|
+
"skewX",
|
|
65
|
+
"skewY"
|
|
66
|
+
], L = new Set(oe), O = (t) => t * 1e3, I = (t) => t / 1e3, zn = {
|
|
67
|
+
type: "spring",
|
|
68
|
+
stiffness: 500,
|
|
69
|
+
damping: 25,
|
|
70
|
+
restSpeed: 10
|
|
71
|
+
}, qn = (t) => ({
|
|
72
|
+
type: "spring",
|
|
73
|
+
stiffness: 550,
|
|
74
|
+
damping: t === 0 ? 2 * Math.sqrt(550) : 30,
|
|
75
|
+
restSpeed: 10
|
|
76
|
+
}), Yn = {
|
|
77
|
+
type: "keyframes",
|
|
78
|
+
duration: 0.8
|
|
79
|
+
}, Hn = {
|
|
80
|
+
type: "keyframes",
|
|
81
|
+
ease: [0.25, 0.1, 0.35, 1],
|
|
82
|
+
duration: 0.3
|
|
83
|
+
}, Xn = (t, { keyframes: e }) => e.length > 2 ? Yn : L.has(t) ? t.startsWith("scale") ? qn(e[1]) : zn : Hn;
|
|
84
|
+
function Zn({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: o, repeatDelay: l, from: a, elapsed: u, ...c }) {
|
|
85
|
+
return !!Object.keys(c).length;
|
|
86
|
+
}
|
|
87
|
+
function Lt(t, e) {
|
|
88
|
+
return t[e] || t.default || t;
|
|
89
|
+
}
|
|
90
|
+
const Qn = {
|
|
91
|
+
skipAnimations: !1,
|
|
92
|
+
useManualTiming: !1
|
|
93
|
+
}, Jn = (t) => t !== null;
|
|
94
|
+
function xe(t, { repeat: e, repeatType: n = "loop" }, s) {
|
|
95
|
+
const i = t.filter(Jn), r = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
|
|
96
|
+
return !r || s === void 0 ? i[r] : s;
|
|
97
|
+
}
|
|
98
|
+
const B = (t) => t;
|
|
99
|
+
function es(t) {
|
|
100
|
+
let e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = !1, i = !1;
|
|
101
|
+
const r = /* @__PURE__ */ new WeakSet();
|
|
102
|
+
let o = {
|
|
103
|
+
delta: 0,
|
|
104
|
+
timestamp: 0,
|
|
105
|
+
isProcessing: !1
|
|
106
|
+
};
|
|
107
|
+
function l(u) {
|
|
108
|
+
r.has(u) && (a.schedule(u), t()), u(o);
|
|
109
|
+
}
|
|
110
|
+
const a = {
|
|
111
|
+
/**
|
|
112
|
+
* Schedule a process to run on the next frame.
|
|
113
|
+
*/
|
|
114
|
+
schedule: (u, c = !1, h = !1) => {
|
|
115
|
+
const d = h && s ? e : n;
|
|
116
|
+
return c && r.add(u), d.has(u) || d.add(u), u;
|
|
117
|
+
},
|
|
118
|
+
/**
|
|
119
|
+
* Cancel the provided callback from running on the next frame.
|
|
120
|
+
*/
|
|
121
|
+
cancel: (u) => {
|
|
122
|
+
n.delete(u), r.delete(u);
|
|
123
|
+
},
|
|
124
|
+
/**
|
|
125
|
+
* Execute all schedule callbacks.
|
|
126
|
+
*/
|
|
127
|
+
process: (u) => {
|
|
128
|
+
if (o = u, s) {
|
|
129
|
+
i = !0;
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
s = !0, [e, n] = [n, e], n.clear(), e.forEach(l), s = !1, i && (i = !1, a.process(u));
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
return a;
|
|
136
|
+
}
|
|
137
|
+
const me = [
|
|
138
|
+
"read",
|
|
139
|
+
// Read
|
|
140
|
+
"resolveKeyframes",
|
|
141
|
+
// Write/Read/Write/Read
|
|
142
|
+
"update",
|
|
143
|
+
// Compute
|
|
144
|
+
"preRender",
|
|
145
|
+
// Compute
|
|
146
|
+
"render",
|
|
147
|
+
// Write
|
|
148
|
+
"postRender"
|
|
149
|
+
// Compute
|
|
150
|
+
], ts = 40;
|
|
151
|
+
function ns(t, e) {
|
|
152
|
+
let n = !1, s = !0;
|
|
153
|
+
const i = {
|
|
154
|
+
delta: 0,
|
|
155
|
+
timestamp: 0,
|
|
156
|
+
isProcessing: !1
|
|
157
|
+
}, r = () => n = !0, o = me.reduce((m, S) => (m[S] = es(r), m), {}), { read: l, resolveKeyframes: a, update: u, preRender: c, render: h, postRender: f } = o, d = () => {
|
|
158
|
+
const m = performance.now();
|
|
159
|
+
n = !1, i.delta = s ? 1e3 / 60 : Math.max(Math.min(m - i.timestamp, ts), 1), i.timestamp = m, i.isProcessing = !0, l.process(i), a.process(i), u.process(i), c.process(i), h.process(i), f.process(i), i.isProcessing = !1, n && e && (s = !1, t(d));
|
|
160
|
+
}, y = () => {
|
|
161
|
+
n = !0, s = !0, i.isProcessing || t(d);
|
|
162
|
+
};
|
|
163
|
+
return { schedule: me.reduce((m, S) => {
|
|
164
|
+
const V = o[S];
|
|
165
|
+
return m[S] = (w, T = !1, x = !1) => (n || y(), V.schedule(w, T, x)), m;
|
|
166
|
+
}, {}), cancel: (m) => {
|
|
167
|
+
for (let S = 0; S < me.length; S++)
|
|
168
|
+
o[me[S]].cancel(m);
|
|
169
|
+
}, state: i, steps: o };
|
|
170
|
+
}
|
|
171
|
+
const { schedule: _, cancel: be, state: Te, steps: Ur } = ns(typeof requestAnimationFrame < "u" ? requestAnimationFrame : B, !0), Wt = (t) => /^0[^.\s]+$/u.test(t);
|
|
172
|
+
function ss(t) {
|
|
173
|
+
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Wt(t) : !0;
|
|
174
|
+
}
|
|
175
|
+
let ae = B, k = B;
|
|
176
|
+
process.env.NODE_ENV !== "production" && (ae = (t, e) => {
|
|
177
|
+
!t && typeof console < "u" && console.warn(e);
|
|
178
|
+
}, k = (t, e) => {
|
|
179
|
+
if (!t)
|
|
180
|
+
throw new Error(e);
|
|
181
|
+
});
|
|
182
|
+
const $t = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Ut = (t) => (e) => typeof e == "string" && e.startsWith(t), jt = Ut("--"), is = Ut("var(--"), $e = (t) => is(t) ? rs.test(t.split("/*")[0].trim()) : !1, rs = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, os = (
|
|
183
|
+
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
184
|
+
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
185
|
+
);
|
|
186
|
+
function as(t) {
|
|
187
|
+
const e = os.exec(t);
|
|
188
|
+
if (!e)
|
|
189
|
+
return [,];
|
|
190
|
+
const [, n, s, i] = e;
|
|
191
|
+
return [`--${n ?? s}`, i];
|
|
192
|
+
}
|
|
193
|
+
const ls = 4;
|
|
194
|
+
function Gt(t, e, n = 1) {
|
|
195
|
+
k(n <= ls, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
|
|
196
|
+
const [s, i] = as(t);
|
|
197
|
+
if (!s)
|
|
198
|
+
return;
|
|
199
|
+
const r = window.getComputedStyle(e).getPropertyValue(s);
|
|
200
|
+
if (r) {
|
|
201
|
+
const o = r.trim();
|
|
202
|
+
return $t(o) ? parseFloat(o) : o;
|
|
203
|
+
}
|
|
204
|
+
return $e(i) ? Gt(i, e, n + 1) : i;
|
|
205
|
+
}
|
|
206
|
+
const q = (t, e, n) => n > e ? e : n < t ? t : n, H = {
|
|
207
|
+
test: (t) => typeof t == "number",
|
|
208
|
+
parse: parseFloat,
|
|
209
|
+
transform: (t) => t
|
|
210
|
+
}, te = {
|
|
211
|
+
...H,
|
|
212
|
+
transform: (t) => q(0, 1, t)
|
|
213
|
+
}, ge = {
|
|
214
|
+
...H,
|
|
215
|
+
default: 1
|
|
216
|
+
}, ne = (t) => Math.round(t * 1e5) / 1e5, Ue = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, us = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, cs = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
|
|
217
|
+
function le(t) {
|
|
218
|
+
return typeof t == "string";
|
|
219
|
+
}
|
|
220
|
+
function hs(t) {
|
|
221
|
+
return t == null;
|
|
222
|
+
}
|
|
223
|
+
const ue = (t) => ({
|
|
224
|
+
test: (e) => le(e) && e.endsWith(t) && e.split(" ").length === 1,
|
|
225
|
+
parse: parseFloat,
|
|
226
|
+
transform: (e) => `${e}${t}`
|
|
227
|
+
}), K = /* @__PURE__ */ ue("deg"), z = /* @__PURE__ */ ue("%"), p = /* @__PURE__ */ ue("px"), fs = /* @__PURE__ */ ue("vh"), ds = /* @__PURE__ */ ue("vw"), dt = {
|
|
228
|
+
...z,
|
|
229
|
+
parse: (t) => z.parse(t) / 100,
|
|
230
|
+
transform: (t) => z.transform(t * 100)
|
|
231
|
+
}, ps = /* @__PURE__ */ new Set([
|
|
232
|
+
"width",
|
|
233
|
+
"height",
|
|
234
|
+
"top",
|
|
235
|
+
"left",
|
|
236
|
+
"right",
|
|
237
|
+
"bottom",
|
|
238
|
+
"x",
|
|
239
|
+
"y",
|
|
240
|
+
"translateX",
|
|
241
|
+
"translateY"
|
|
242
|
+
]), pt = (t) => t === H || t === p, mt = (t, e) => parseFloat(t.split(", ")[e]), gt = (t, e) => (n, { transform: s }) => {
|
|
243
|
+
if (s === "none" || !s)
|
|
244
|
+
return 0;
|
|
245
|
+
const i = s.match(/^matrix3d\((.+)\)$/u);
|
|
246
|
+
if (i)
|
|
247
|
+
return mt(i[1], e);
|
|
248
|
+
{
|
|
249
|
+
const r = s.match(/^matrix\((.+)\)$/u);
|
|
250
|
+
return r ? mt(r[1], t) : 0;
|
|
251
|
+
}
|
|
252
|
+
}, ms = /* @__PURE__ */ new Set(["x", "y", "z"]), gs = oe.filter((t) => !ms.has(t));
|
|
253
|
+
function ys(t) {
|
|
254
|
+
const e = [];
|
|
255
|
+
return gs.forEach((n) => {
|
|
256
|
+
const s = t.getValue(n);
|
|
257
|
+
s !== void 0 && (e.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
|
|
258
|
+
}), e;
|
|
259
|
+
}
|
|
260
|
+
const Y = {
|
|
261
|
+
// Dimensions
|
|
262
|
+
width: ({ x: t }, { paddingLeft: e = "0", paddingRight: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
|
|
263
|
+
height: ({ y: t }, { paddingTop: e = "0", paddingBottom: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
|
|
264
|
+
top: (t, { top: e }) => parseFloat(e),
|
|
265
|
+
left: (t, { left: e }) => parseFloat(e),
|
|
266
|
+
bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
|
|
267
|
+
right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
|
|
268
|
+
// Transform
|
|
269
|
+
x: gt(4, 13),
|
|
270
|
+
y: gt(5, 14)
|
|
271
|
+
};
|
|
272
|
+
Y.translateX = Y.x;
|
|
273
|
+
Y.translateY = Y.y;
|
|
274
|
+
const zt = (t) => (e) => e.test(t), vs = {
|
|
275
|
+
test: (t) => t === "auto",
|
|
276
|
+
parse: (t) => t
|
|
277
|
+
}, qt = [H, p, z, K, ds, fs, vs], yt = (t) => qt.find(zt(t)), U = /* @__PURE__ */ new Set();
|
|
278
|
+
let De = !1, Ne = !1;
|
|
279
|
+
function Yt() {
|
|
280
|
+
if (Ne) {
|
|
281
|
+
const t = Array.from(U).filter((s) => s.needsMeasurement), e = new Set(t.map((s) => s.element)), n = /* @__PURE__ */ new Map();
|
|
282
|
+
e.forEach((s) => {
|
|
283
|
+
const i = ys(s);
|
|
284
|
+
i.length && (n.set(s, i), s.render());
|
|
285
|
+
}), t.forEach((s) => s.measureInitialState()), e.forEach((s) => {
|
|
286
|
+
s.render();
|
|
287
|
+
const i = n.get(s);
|
|
288
|
+
i && i.forEach(([r, o]) => {
|
|
289
|
+
var l;
|
|
290
|
+
(l = s.getValue(r)) === null || l === void 0 || l.set(o);
|
|
291
|
+
});
|
|
292
|
+
}), t.forEach((s) => s.measureEndState()), t.forEach((s) => {
|
|
293
|
+
s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
Ne = !1, De = !1, U.forEach((t) => t.complete()), U.clear();
|
|
297
|
+
}
|
|
298
|
+
function Ht() {
|
|
299
|
+
U.forEach((t) => {
|
|
300
|
+
t.readKeyframes(), t.needsMeasurement && (Ne = !0);
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
function bs() {
|
|
304
|
+
Ht(), Yt();
|
|
305
|
+
}
|
|
306
|
+
class je {
|
|
307
|
+
constructor(e, n, s, i, r, o = !1) {
|
|
308
|
+
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = s, this.motionValue = i, this.element = r, this.isAsync = o;
|
|
309
|
+
}
|
|
310
|
+
scheduleResolve() {
|
|
311
|
+
this.isScheduled = !0, this.isAsync ? (U.add(this), De || (De = !0, _.read(Ht), _.resolveKeyframes(Yt))) : (this.readKeyframes(), this.complete());
|
|
312
|
+
}
|
|
313
|
+
readKeyframes() {
|
|
314
|
+
const { unresolvedKeyframes: e, name: n, element: s, motionValue: i } = this;
|
|
315
|
+
for (let r = 0; r < e.length; r++)
|
|
316
|
+
if (e[r] === null)
|
|
317
|
+
if (r === 0) {
|
|
318
|
+
const o = i == null ? void 0 : i.get(), l = e[e.length - 1];
|
|
319
|
+
if (o !== void 0)
|
|
320
|
+
e[0] = o;
|
|
321
|
+
else if (s && n) {
|
|
322
|
+
const a = s.readValue(n, l);
|
|
323
|
+
a != null && (e[0] = a);
|
|
324
|
+
}
|
|
325
|
+
e[0] === void 0 && (e[0] = l), i && o === void 0 && i.set(e[0]);
|
|
326
|
+
} else
|
|
327
|
+
e[r] = e[r - 1];
|
|
328
|
+
}
|
|
329
|
+
setFinalKeyframe() {
|
|
330
|
+
}
|
|
331
|
+
measureInitialState() {
|
|
332
|
+
}
|
|
333
|
+
renderEndStyles() {
|
|
334
|
+
}
|
|
335
|
+
measureEndState() {
|
|
336
|
+
}
|
|
337
|
+
complete() {
|
|
338
|
+
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe), U.delete(this);
|
|
339
|
+
}
|
|
340
|
+
cancel() {
|
|
341
|
+
this.isComplete || (this.isScheduled = !1, U.delete(this));
|
|
342
|
+
}
|
|
343
|
+
resume() {
|
|
344
|
+
this.isComplete || this.scheduleResolve();
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
const Ge = (t, e) => (n) => !!(le(n) && cs.test(n) && n.startsWith(t) || e && !hs(n) && Object.prototype.hasOwnProperty.call(n, e)), Xt = (t, e, n) => (s) => {
|
|
348
|
+
if (!le(s))
|
|
349
|
+
return s;
|
|
350
|
+
const [i, r, o, l] = s.match(Ue);
|
|
351
|
+
return {
|
|
352
|
+
[t]: parseFloat(i),
|
|
353
|
+
[e]: parseFloat(r),
|
|
354
|
+
[n]: parseFloat(o),
|
|
355
|
+
alpha: l !== void 0 ? parseFloat(l) : 1
|
|
356
|
+
};
|
|
357
|
+
}, Ts = (t) => q(0, 255, t), Ce = {
|
|
358
|
+
...H,
|
|
359
|
+
transform: (t) => Math.round(Ts(t))
|
|
360
|
+
}, $ = {
|
|
361
|
+
test: /* @__PURE__ */ Ge("rgb", "red"),
|
|
362
|
+
parse: /* @__PURE__ */ Xt("red", "green", "blue"),
|
|
363
|
+
transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + Ce.transform(t) + ", " + Ce.transform(e) + ", " + Ce.transform(n) + ", " + ne(te.transform(s)) + ")"
|
|
364
|
+
};
|
|
365
|
+
function Vs(t) {
|
|
366
|
+
let e = "", n = "", s = "", i = "";
|
|
367
|
+
return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), s = t.substring(5, 7), i = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), s = t.substring(3, 4), i = t.substring(4, 5), e += e, n += n, s += s, i += i), {
|
|
368
|
+
red: parseInt(e, 16),
|
|
369
|
+
green: parseInt(n, 16),
|
|
370
|
+
blue: parseInt(s, 16),
|
|
371
|
+
alpha: i ? parseInt(i, 16) / 255 : 1
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
const Oe = {
|
|
375
|
+
test: /* @__PURE__ */ Ge("#"),
|
|
376
|
+
parse: Vs,
|
|
377
|
+
transform: $.transform
|
|
378
|
+
}, G = {
|
|
379
|
+
test: /* @__PURE__ */ Ge("hsl", "hue"),
|
|
380
|
+
parse: /* @__PURE__ */ Xt("hue", "saturation", "lightness"),
|
|
381
|
+
transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + z.transform(ne(e)) + ", " + z.transform(ne(n)) + ", " + ne(te.transform(s)) + ")"
|
|
382
|
+
}, C = {
|
|
383
|
+
test: (t) => $.test(t) || Oe.test(t) || G.test(t),
|
|
384
|
+
parse: (t) => $.test(t) ? $.parse(t) : G.test(t) ? G.parse(t) : Oe.parse(t),
|
|
385
|
+
transform: (t) => le(t) ? t : t.hasOwnProperty("red") ? $.transform(t) : G.transform(t)
|
|
386
|
+
};
|
|
387
|
+
function ws(t) {
|
|
388
|
+
var e, n;
|
|
389
|
+
return isNaN(t) && le(t) && (((e = t.match(Ue)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(us)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
390
|
+
}
|
|
391
|
+
const Zt = "number", Qt = "color", Ss = "var", xs = "var(", vt = "${}", As = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
392
|
+
function se(t) {
|
|
393
|
+
const e = t.toString(), n = [], s = {
|
|
394
|
+
color: [],
|
|
395
|
+
number: [],
|
|
396
|
+
var: []
|
|
397
|
+
}, i = [];
|
|
398
|
+
let r = 0;
|
|
399
|
+
const l = e.replace(As, (a) => (C.test(a) ? (s.color.push(r), i.push(Qt), n.push(C.parse(a))) : a.startsWith(xs) ? (s.var.push(r), i.push(Ss), n.push(a)) : (s.number.push(r), i.push(Zt), n.push(parseFloat(a))), ++r, vt)).split(vt);
|
|
400
|
+
return { values: n, split: l, indexes: s, types: i };
|
|
401
|
+
}
|
|
402
|
+
function Jt(t) {
|
|
403
|
+
return se(t).values;
|
|
404
|
+
}
|
|
405
|
+
function en(t) {
|
|
406
|
+
const { split: e, types: n } = se(t), s = e.length;
|
|
407
|
+
return (i) => {
|
|
408
|
+
let r = "";
|
|
409
|
+
for (let o = 0; o < s; o++)
|
|
410
|
+
if (r += e[o], i[o] !== void 0) {
|
|
411
|
+
const l = n[o];
|
|
412
|
+
l === Zt ? r += ne(i[o]) : l === Qt ? r += C.transform(i[o]) : r += i[o];
|
|
413
|
+
}
|
|
414
|
+
return r;
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
const Ms = (t) => typeof t == "number" ? 0 : t;
|
|
418
|
+
function Cs(t) {
|
|
419
|
+
const e = Jt(t);
|
|
420
|
+
return en(t)(e.map(Ms));
|
|
421
|
+
}
|
|
422
|
+
const X = {
|
|
423
|
+
test: ws,
|
|
424
|
+
parse: Jt,
|
|
425
|
+
createTransformer: en,
|
|
426
|
+
getAnimatableNone: Cs
|
|
427
|
+
}, Fs = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
428
|
+
function Ps(t) {
|
|
429
|
+
const [e, n] = t.slice(0, -1).split("(");
|
|
430
|
+
if (e === "drop-shadow")
|
|
431
|
+
return t;
|
|
432
|
+
const [s] = n.match(Ue) || [];
|
|
433
|
+
if (!s)
|
|
434
|
+
return t;
|
|
435
|
+
const i = n.replace(s, "");
|
|
436
|
+
let r = Fs.has(e) ? 1 : 0;
|
|
437
|
+
return s !== n && (r *= 100), e + "(" + r + i + ")";
|
|
438
|
+
}
|
|
439
|
+
const Rs = /\b([a-z-]*)\(.*?\)/gu, _e = {
|
|
440
|
+
...X,
|
|
441
|
+
getAnimatableNone: (t) => {
|
|
442
|
+
const e = t.match(Rs);
|
|
443
|
+
return e ? e.map(Ps).join(" ") : t;
|
|
444
|
+
}
|
|
445
|
+
}, bt = {
|
|
446
|
+
...H,
|
|
447
|
+
transform: Math.round
|
|
448
|
+
}, ze = {
|
|
449
|
+
// Border props
|
|
450
|
+
borderWidth: p,
|
|
451
|
+
borderTopWidth: p,
|
|
452
|
+
borderRightWidth: p,
|
|
453
|
+
borderBottomWidth: p,
|
|
454
|
+
borderLeftWidth: p,
|
|
455
|
+
borderRadius: p,
|
|
456
|
+
radius: p,
|
|
457
|
+
borderTopLeftRadius: p,
|
|
458
|
+
borderTopRightRadius: p,
|
|
459
|
+
borderBottomRightRadius: p,
|
|
460
|
+
borderBottomLeftRadius: p,
|
|
461
|
+
// Positioning props
|
|
462
|
+
width: p,
|
|
463
|
+
maxWidth: p,
|
|
464
|
+
height: p,
|
|
465
|
+
maxHeight: p,
|
|
466
|
+
size: p,
|
|
467
|
+
top: p,
|
|
468
|
+
right: p,
|
|
469
|
+
bottom: p,
|
|
470
|
+
left: p,
|
|
471
|
+
// Spacing props
|
|
472
|
+
padding: p,
|
|
473
|
+
paddingTop: p,
|
|
474
|
+
paddingRight: p,
|
|
475
|
+
paddingBottom: p,
|
|
476
|
+
paddingLeft: p,
|
|
477
|
+
margin: p,
|
|
478
|
+
marginTop: p,
|
|
479
|
+
marginRight: p,
|
|
480
|
+
marginBottom: p,
|
|
481
|
+
marginLeft: p,
|
|
482
|
+
// Transform props
|
|
483
|
+
rotate: K,
|
|
484
|
+
rotateX: K,
|
|
485
|
+
rotateY: K,
|
|
486
|
+
rotateZ: K,
|
|
487
|
+
scale: ge,
|
|
488
|
+
scaleX: ge,
|
|
489
|
+
scaleY: ge,
|
|
490
|
+
scaleZ: ge,
|
|
491
|
+
skew: K,
|
|
492
|
+
skewX: K,
|
|
493
|
+
skewY: K,
|
|
494
|
+
distance: p,
|
|
495
|
+
translateX: p,
|
|
496
|
+
translateY: p,
|
|
497
|
+
translateZ: p,
|
|
498
|
+
x: p,
|
|
499
|
+
y: p,
|
|
500
|
+
z: p,
|
|
501
|
+
perspective: p,
|
|
502
|
+
transformPerspective: p,
|
|
503
|
+
opacity: te,
|
|
504
|
+
originX: dt,
|
|
505
|
+
originY: dt,
|
|
506
|
+
originZ: p,
|
|
507
|
+
// Misc
|
|
508
|
+
zIndex: bt,
|
|
509
|
+
backgroundPositionX: p,
|
|
510
|
+
backgroundPositionY: p,
|
|
511
|
+
// SVG
|
|
512
|
+
fillOpacity: te,
|
|
513
|
+
strokeOpacity: te,
|
|
514
|
+
numOctaves: bt
|
|
515
|
+
}, Ds = {
|
|
516
|
+
...ze,
|
|
517
|
+
// Color props
|
|
518
|
+
color: C,
|
|
519
|
+
backgroundColor: C,
|
|
520
|
+
outlineColor: C,
|
|
521
|
+
fill: C,
|
|
522
|
+
stroke: C,
|
|
523
|
+
// Border props
|
|
524
|
+
borderColor: C,
|
|
525
|
+
borderTopColor: C,
|
|
526
|
+
borderRightColor: C,
|
|
527
|
+
borderBottomColor: C,
|
|
528
|
+
borderLeftColor: C,
|
|
529
|
+
filter: _e,
|
|
530
|
+
WebkitFilter: _e
|
|
531
|
+
}, qe = (t) => Ds[t];
|
|
532
|
+
function tn(t, e) {
|
|
533
|
+
let n = qe(t);
|
|
534
|
+
return n !== _e && (n = X), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
535
|
+
}
|
|
536
|
+
const Ns = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
537
|
+
function Os(t, e, n) {
|
|
538
|
+
let s = 0, i;
|
|
539
|
+
for (; s < t.length && !i; ) {
|
|
540
|
+
const r = t[s];
|
|
541
|
+
typeof r == "string" && !Ns.has(r) && se(r).values.length && (i = t[s]), s++;
|
|
542
|
+
}
|
|
543
|
+
if (i && n)
|
|
544
|
+
for (const r of e)
|
|
545
|
+
t[r] = tn(n, i);
|
|
546
|
+
}
|
|
547
|
+
class nn extends je {
|
|
548
|
+
constructor(e, n, s, i, r) {
|
|
549
|
+
super(e, n, s, i, r, !0);
|
|
550
|
+
}
|
|
551
|
+
readKeyframes() {
|
|
552
|
+
const { unresolvedKeyframes: e, element: n, name: s } = this;
|
|
553
|
+
if (!n || !n.current)
|
|
554
|
+
return;
|
|
555
|
+
super.readKeyframes();
|
|
556
|
+
for (let a = 0; a < e.length; a++) {
|
|
557
|
+
let u = e[a];
|
|
558
|
+
if (typeof u == "string" && (u = u.trim(), $e(u))) {
|
|
559
|
+
const c = Gt(u, n.current);
|
|
560
|
+
c !== void 0 && (e[a] = c), a === e.length - 1 && (this.finalKeyframe = u);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
if (this.resolveNoneKeyframes(), !ps.has(s) || e.length !== 2)
|
|
564
|
+
return;
|
|
565
|
+
const [i, r] = e, o = yt(i), l = yt(r);
|
|
566
|
+
if (o !== l)
|
|
567
|
+
if (pt(o) && pt(l))
|
|
568
|
+
for (let a = 0; a < e.length; a++) {
|
|
569
|
+
const u = e[a];
|
|
570
|
+
typeof u == "string" && (e[a] = parseFloat(u));
|
|
571
|
+
}
|
|
572
|
+
else
|
|
573
|
+
this.needsMeasurement = !0;
|
|
574
|
+
}
|
|
575
|
+
resolveNoneKeyframes() {
|
|
576
|
+
const { unresolvedKeyframes: e, name: n } = this, s = [];
|
|
577
|
+
for (let i = 0; i < e.length; i++)
|
|
578
|
+
ss(e[i]) && s.push(i);
|
|
579
|
+
s.length && Os(e, s, n);
|
|
580
|
+
}
|
|
581
|
+
measureInitialState() {
|
|
582
|
+
const { element: e, unresolvedKeyframes: n, name: s } = this;
|
|
583
|
+
if (!e || !e.current)
|
|
584
|
+
return;
|
|
585
|
+
s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Y[s](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
|
|
586
|
+
const i = n[n.length - 1];
|
|
587
|
+
i !== void 0 && e.getValue(s, i).jump(i, !1);
|
|
588
|
+
}
|
|
589
|
+
measureEndState() {
|
|
590
|
+
var e;
|
|
591
|
+
const { element: n, name: s, unresolvedKeyframes: i } = this;
|
|
592
|
+
if (!n || !n.current)
|
|
593
|
+
return;
|
|
594
|
+
const r = n.getValue(s);
|
|
595
|
+
r && r.jump(this.measuredOrigin, !1);
|
|
596
|
+
const o = i.length - 1, l = i[o];
|
|
597
|
+
i[o] = Y[s](n.measureViewportBox(), window.getComputedStyle(n.current)), l !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = l), !((e = this.removedTransforms) === null || e === void 0) && e.length && this.removedTransforms.forEach(([a, u]) => {
|
|
598
|
+
n.getValue(a).set(u);
|
|
599
|
+
}), this.resolveNoneKeyframes();
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
function sn(t) {
|
|
603
|
+
let e;
|
|
604
|
+
return () => (e === void 0 && (e = t()), e);
|
|
605
|
+
}
|
|
606
|
+
let ve;
|
|
607
|
+
function _s() {
|
|
608
|
+
ve = void 0;
|
|
609
|
+
}
|
|
610
|
+
const j = {
|
|
611
|
+
now: () => (ve === void 0 && j.set(Te.isProcessing || Qn.useManualTiming ? Te.timestamp : performance.now()), ve),
|
|
612
|
+
set: (t) => {
|
|
613
|
+
ve = t, queueMicrotask(_s);
|
|
614
|
+
}
|
|
615
|
+
}, Tt = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
616
|
+
(X.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
617
|
+
!t.startsWith("url("));
|
|
618
|
+
function Is(t) {
|
|
619
|
+
const e = t[0];
|
|
620
|
+
if (t.length === 1)
|
|
621
|
+
return !0;
|
|
622
|
+
for (let n = 0; n < t.length; n++)
|
|
623
|
+
if (t[n] !== e)
|
|
624
|
+
return !0;
|
|
625
|
+
}
|
|
626
|
+
function Es(t, e, n, s) {
|
|
627
|
+
const i = t[0];
|
|
628
|
+
if (i === null)
|
|
629
|
+
return !1;
|
|
630
|
+
if (e === "display" || e === "visibility")
|
|
631
|
+
return !0;
|
|
632
|
+
const r = t[t.length - 1], o = Tt(i, e), l = Tt(r, e);
|
|
633
|
+
return ae(o === l, `You are trying to animate ${e} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`), !o || !l ? !1 : Is(t) || n === "spring" && s;
|
|
634
|
+
}
|
|
635
|
+
const Ks = 40;
|
|
636
|
+
class rn {
|
|
637
|
+
constructor({ autoplay: e = !0, delay: n = 0, type: s = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: o = "loop", ...l }) {
|
|
638
|
+
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = j.now(), this.options = {
|
|
639
|
+
autoplay: e,
|
|
640
|
+
delay: n,
|
|
641
|
+
type: s,
|
|
642
|
+
repeat: i,
|
|
643
|
+
repeatDelay: r,
|
|
644
|
+
repeatType: o,
|
|
645
|
+
...l
|
|
646
|
+
}, this.updateFinishedPromise();
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* This method uses the createdAt and resolvedAt to calculate the
|
|
650
|
+
* animation startTime. *Ideally*, we would use the createdAt time as t=0
|
|
651
|
+
* as the following frame would then be the first frame of the animation in
|
|
652
|
+
* progress, which would feel snappier.
|
|
653
|
+
*
|
|
654
|
+
* However, if there's a delay (main thread work) between the creation of
|
|
655
|
+
* the animation and the first commited frame, we prefer to use resolvedAt
|
|
656
|
+
* to avoid a sudden jump into the animation.
|
|
657
|
+
*/
|
|
658
|
+
calcStartTime() {
|
|
659
|
+
return this.resolvedAt ? this.resolvedAt - this.createdAt > Ks ? this.resolvedAt : this.createdAt : this.createdAt;
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* A getter for resolved data. If keyframes are not yet resolved, accessing
|
|
663
|
+
* this.resolved will synchronously flush all pending keyframe resolvers.
|
|
664
|
+
* This is a deoptimisation, but at its worst still batches read/writes.
|
|
665
|
+
*/
|
|
666
|
+
get resolved() {
|
|
667
|
+
return !this._resolved && !this.hasAttemptedResolve && bs(), this._resolved;
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* A method to be called when the keyframes resolver completes. This method
|
|
671
|
+
* will check if its possible to run the animation and, if not, skip it.
|
|
672
|
+
* Otherwise, it will call initPlayback on the implementing class.
|
|
673
|
+
*/
|
|
674
|
+
onKeyframesResolved(e, n) {
|
|
675
|
+
this.resolvedAt = j.now(), this.hasAttemptedResolve = !0;
|
|
676
|
+
const { name: s, type: i, velocity: r, delay: o, onComplete: l, onUpdate: a, isGenerator: u } = this.options;
|
|
677
|
+
if (!u && !Es(e, s, i, r))
|
|
678
|
+
if (o)
|
|
679
|
+
this.options.duration = 0;
|
|
680
|
+
else {
|
|
681
|
+
a == null || a(xe(e, this.options, n)), l == null || l(), this.resolveFinishedPromise();
|
|
682
|
+
return;
|
|
683
|
+
}
|
|
684
|
+
const c = this.initPlayback(e, n);
|
|
685
|
+
c !== !1 && (this._resolved = {
|
|
686
|
+
keyframes: e,
|
|
687
|
+
finalKeyframe: n,
|
|
688
|
+
...c
|
|
689
|
+
}, this.onPostResolved());
|
|
690
|
+
}
|
|
691
|
+
onPostResolved() {
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* Allows the returned animation to be awaited or promise-chained. Currently
|
|
695
|
+
* resolves when the animation finishes at all but in a future update could/should
|
|
696
|
+
* reject if its cancels.
|
|
697
|
+
*/
|
|
698
|
+
then(e, n) {
|
|
699
|
+
return this.currentFinishedPromise.then(e, n);
|
|
700
|
+
}
|
|
701
|
+
updateFinishedPromise() {
|
|
702
|
+
this.currentFinishedPromise = new Promise((e) => {
|
|
703
|
+
this.resolveFinishedPromise = e;
|
|
704
|
+
});
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
function on(t, e) {
|
|
708
|
+
return e ? t * (1e3 / e) : 0;
|
|
709
|
+
}
|
|
710
|
+
const Bs = 5;
|
|
711
|
+
function an(t, e, n) {
|
|
712
|
+
const s = Math.max(e - Bs, 0);
|
|
713
|
+
return on(n - t(s), e - s);
|
|
714
|
+
}
|
|
715
|
+
const Fe = 1e-3, ks = 0.01, Vt = 10, Ls = 0.05, Ws = 1;
|
|
716
|
+
function $s({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: s = 1 }) {
|
|
717
|
+
let i, r;
|
|
718
|
+
ae(t <= O(Vt), "Spring duration must be 10 seconds or less");
|
|
719
|
+
let o = 1 - e;
|
|
720
|
+
o = q(Ls, Ws, o), t = q(ks, Vt, I(t)), o < 1 ? (i = (u) => {
|
|
721
|
+
const c = u * o, h = c * t, f = c - n, d = Ie(u, o), y = Math.exp(-h);
|
|
722
|
+
return Fe - f / d * y;
|
|
723
|
+
}, r = (u) => {
|
|
724
|
+
const h = u * o * t, f = h * n + n, d = Math.pow(o, 2) * Math.pow(u, 2) * t, y = Math.exp(-h), v = Ie(Math.pow(u, 2), o);
|
|
725
|
+
return (-i(u) + Fe > 0 ? -1 : 1) * ((f - d) * y) / v;
|
|
726
|
+
}) : (i = (u) => {
|
|
727
|
+
const c = Math.exp(-u * t), h = (u - n) * t + 1;
|
|
728
|
+
return -Fe + c * h;
|
|
729
|
+
}, r = (u) => {
|
|
730
|
+
const c = Math.exp(-u * t), h = (n - u) * (t * t);
|
|
731
|
+
return c * h;
|
|
732
|
+
});
|
|
733
|
+
const l = 5 / t, a = js(i, r, l);
|
|
734
|
+
if (t = O(t), isNaN(a))
|
|
735
|
+
return {
|
|
736
|
+
stiffness: 100,
|
|
737
|
+
damping: 10,
|
|
738
|
+
duration: t
|
|
739
|
+
};
|
|
740
|
+
{
|
|
741
|
+
const u = Math.pow(a, 2) * s;
|
|
742
|
+
return {
|
|
743
|
+
stiffness: u,
|
|
744
|
+
damping: o * 2 * Math.sqrt(s * u),
|
|
745
|
+
duration: t
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
const Us = 12;
|
|
750
|
+
function js(t, e, n) {
|
|
751
|
+
let s = n;
|
|
752
|
+
for (let i = 1; i < Us; i++)
|
|
753
|
+
s = s - t(s) / e(s);
|
|
754
|
+
return s;
|
|
755
|
+
}
|
|
756
|
+
function Ie(t, e) {
|
|
757
|
+
return t * Math.sqrt(1 - e * e);
|
|
758
|
+
}
|
|
759
|
+
const Gs = ["duration", "bounce"], zs = ["stiffness", "damping", "mass"];
|
|
760
|
+
function wt(t, e) {
|
|
761
|
+
return e.some((n) => t[n] !== void 0);
|
|
762
|
+
}
|
|
763
|
+
function qs(t) {
|
|
764
|
+
let e = {
|
|
765
|
+
velocity: 0,
|
|
766
|
+
stiffness: 100,
|
|
767
|
+
damping: 10,
|
|
768
|
+
mass: 1,
|
|
769
|
+
isResolvedFromDuration: !1,
|
|
770
|
+
...t
|
|
771
|
+
};
|
|
772
|
+
if (!wt(t, zs) && wt(t, Gs)) {
|
|
773
|
+
const n = $s(t);
|
|
774
|
+
e = {
|
|
775
|
+
...e,
|
|
776
|
+
...n,
|
|
777
|
+
mass: 1
|
|
778
|
+
}, e.isResolvedFromDuration = !0;
|
|
779
|
+
}
|
|
780
|
+
return e;
|
|
781
|
+
}
|
|
782
|
+
function Ye({ keyframes: t, restDelta: e, restSpeed: n, ...s }) {
|
|
783
|
+
const i = t[0], r = t[t.length - 1], o = { done: !1, value: i }, { stiffness: l, damping: a, mass: u, duration: c, velocity: h, isResolvedFromDuration: f } = qs({
|
|
784
|
+
...s,
|
|
785
|
+
velocity: -I(s.velocity || 0)
|
|
786
|
+
}), d = h || 0, y = a / (2 * Math.sqrt(l * u)), v = r - i, b = I(Math.sqrt(l / u)), m = Math.abs(v) < 5;
|
|
787
|
+
n || (n = m ? 0.01 : 2), e || (e = m ? 5e-3 : 0.5);
|
|
788
|
+
let S;
|
|
789
|
+
if (y < 1) {
|
|
790
|
+
const V = Ie(b, y);
|
|
791
|
+
S = (w) => {
|
|
792
|
+
const T = Math.exp(-y * b * w);
|
|
793
|
+
return r - T * ((d + y * b * v) / V * Math.sin(V * w) + v * Math.cos(V * w));
|
|
794
|
+
};
|
|
795
|
+
} else if (y === 1)
|
|
796
|
+
S = (V) => r - Math.exp(-b * V) * (v + (d + b * v) * V);
|
|
797
|
+
else {
|
|
798
|
+
const V = b * Math.sqrt(y * y - 1);
|
|
799
|
+
S = (w) => {
|
|
800
|
+
const T = Math.exp(-y * b * w), x = Math.min(V * w, 300);
|
|
801
|
+
return r - T * ((d + y * b * v) * Math.sinh(x) + V * v * Math.cosh(x)) / V;
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
return {
|
|
805
|
+
calculatedDuration: f && c || null,
|
|
806
|
+
next: (V) => {
|
|
807
|
+
const w = S(V);
|
|
808
|
+
if (f)
|
|
809
|
+
o.done = V >= c;
|
|
810
|
+
else {
|
|
811
|
+
let T = 0;
|
|
812
|
+
y < 1 && (T = V === 0 ? O(d) : an(S, V, w));
|
|
813
|
+
const x = Math.abs(T) <= n, F = Math.abs(r - w) <= e;
|
|
814
|
+
o.done = x && F;
|
|
815
|
+
}
|
|
816
|
+
return o.value = o.done ? r : w, o;
|
|
817
|
+
}
|
|
818
|
+
};
|
|
819
|
+
}
|
|
820
|
+
function St({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: r = 500, modifyTarget: o, min: l, max: a, restDelta: u = 0.5, restSpeed: c }) {
|
|
821
|
+
const h = t[0], f = {
|
|
822
|
+
done: !1,
|
|
823
|
+
value: h
|
|
824
|
+
}, d = (g) => l !== void 0 && g < l || a !== void 0 && g > a, y = (g) => l === void 0 ? a : a === void 0 || Math.abs(l - g) < Math.abs(a - g) ? l : a;
|
|
825
|
+
let v = n * e;
|
|
826
|
+
const b = h + v, m = o === void 0 ? b : o(b);
|
|
827
|
+
m !== b && (v = m - h);
|
|
828
|
+
const S = (g) => -v * Math.exp(-g / s), V = (g) => m + S(g), w = (g) => {
|
|
829
|
+
const P = S(g), A = V(g);
|
|
830
|
+
f.done = Math.abs(P) <= u, f.value = f.done ? m : A;
|
|
831
|
+
};
|
|
832
|
+
let T, x;
|
|
833
|
+
const F = (g) => {
|
|
834
|
+
d(f.value) && (T = g, x = Ye({
|
|
835
|
+
keyframes: [f.value, y(f.value)],
|
|
836
|
+
velocity: an(V, g, f.value),
|
|
837
|
+
// TODO: This should be passing * 1000
|
|
838
|
+
damping: i,
|
|
839
|
+
stiffness: r,
|
|
840
|
+
restDelta: u,
|
|
841
|
+
restSpeed: c
|
|
842
|
+
}));
|
|
843
|
+
};
|
|
844
|
+
return F(0), {
|
|
845
|
+
calculatedDuration: null,
|
|
846
|
+
next: (g) => {
|
|
847
|
+
let P = !1;
|
|
848
|
+
return !x && T === void 0 && (P = !0, w(g), F(g)), T !== void 0 && g >= T ? x.next(g - T) : (!P && w(g), f);
|
|
849
|
+
}
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
const ln = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Ys = 1e-7, Hs = 12;
|
|
853
|
+
function Xs(t, e, n, s, i) {
|
|
854
|
+
let r, o, l = 0;
|
|
855
|
+
do
|
|
856
|
+
o = e + (n - e) / 2, r = ln(o, s, i) - t, r > 0 ? n = o : e = o;
|
|
857
|
+
while (Math.abs(r) > Ys && ++l < Hs);
|
|
858
|
+
return o;
|
|
859
|
+
}
|
|
860
|
+
function ce(t, e, n, s) {
|
|
861
|
+
if (t === e && n === s)
|
|
862
|
+
return B;
|
|
863
|
+
const i = (r) => Xs(r, 0, 1, t, n);
|
|
864
|
+
return (r) => r === 0 || r === 1 ? r : ln(i(r), e, s);
|
|
865
|
+
}
|
|
866
|
+
const Zs = /* @__PURE__ */ ce(0.42, 0, 1, 1), Qs = /* @__PURE__ */ ce(0, 0, 0.58, 1), un = /* @__PURE__ */ ce(0.42, 0, 0.58, 1), cn = (t) => Array.isArray(t) && typeof t[0] != "number", hn = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, fn = (t) => (e) => 1 - t(1 - e), He = (t) => 1 - Math.sin(Math.acos(t)), Js = fn(He), ei = hn(He), dn = /* @__PURE__ */ ce(0.33, 1.53, 0.69, 0.99), Xe = /* @__PURE__ */ fn(dn), ti = /* @__PURE__ */ hn(Xe), ni = (t) => (t *= 2) < 1 ? 0.5 * Xe(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), xt = {
|
|
867
|
+
linear: B,
|
|
868
|
+
easeIn: Zs,
|
|
869
|
+
easeInOut: un,
|
|
870
|
+
easeOut: Qs,
|
|
871
|
+
circIn: He,
|
|
872
|
+
circInOut: ei,
|
|
873
|
+
circOut: Js,
|
|
874
|
+
backIn: Xe,
|
|
875
|
+
backInOut: ti,
|
|
876
|
+
backOut: dn,
|
|
877
|
+
anticipate: ni
|
|
878
|
+
}, At = (t) => {
|
|
879
|
+
if (Array.isArray(t)) {
|
|
880
|
+
k(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
|
881
|
+
const [e, n, s, i] = t;
|
|
882
|
+
return ce(e, n, s, i);
|
|
883
|
+
} else if (typeof t == "string")
|
|
884
|
+
return k(xt[t] !== void 0, `Invalid easing type '${t}'`), xt[t];
|
|
885
|
+
return t;
|
|
886
|
+
}, si = (t, e) => (n) => e(t(n)), Ze = (...t) => t.reduce(si), Qe = (t, e, n) => {
|
|
887
|
+
const s = e - t;
|
|
888
|
+
return s === 0 ? 1 : (n - t) / s;
|
|
889
|
+
}, he = (t, e, n) => t + (e - t) * n;
|
|
890
|
+
function Pe(t, e, n) {
|
|
891
|
+
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
|
|
892
|
+
}
|
|
893
|
+
function ii({ hue: t, saturation: e, lightness: n, alpha: s }) {
|
|
894
|
+
t /= 360, e /= 100, n /= 100;
|
|
895
|
+
let i = 0, r = 0, o = 0;
|
|
896
|
+
if (!e)
|
|
897
|
+
i = r = o = n;
|
|
898
|
+
else {
|
|
899
|
+
const l = n < 0.5 ? n * (1 + e) : n + e - n * e, a = 2 * n - l;
|
|
900
|
+
i = Pe(a, l, t + 1 / 3), r = Pe(a, l, t), o = Pe(a, l, t - 1 / 3);
|
|
901
|
+
}
|
|
902
|
+
return {
|
|
903
|
+
red: Math.round(i * 255),
|
|
904
|
+
green: Math.round(r * 255),
|
|
905
|
+
blue: Math.round(o * 255),
|
|
906
|
+
alpha: s
|
|
907
|
+
};
|
|
908
|
+
}
|
|
909
|
+
function Ve(t, e) {
|
|
910
|
+
return (n) => n > 0 ? e : t;
|
|
911
|
+
}
|
|
912
|
+
const Re = (t, e, n) => {
|
|
913
|
+
const s = t * t, i = n * (e * e - s) + s;
|
|
914
|
+
return i < 0 ? 0 : Math.sqrt(i);
|
|
915
|
+
}, ri = [Oe, $, G], oi = (t) => ri.find((e) => e.test(t));
|
|
916
|
+
function Mt(t) {
|
|
917
|
+
const e = oi(t);
|
|
918
|
+
if (ae(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
919
|
+
return !1;
|
|
920
|
+
let n = e.parse(t);
|
|
921
|
+
return e === G && (n = ii(n)), n;
|
|
922
|
+
}
|
|
923
|
+
const Ct = (t, e) => {
|
|
924
|
+
const n = Mt(t), s = Mt(e);
|
|
925
|
+
if (!n || !s)
|
|
926
|
+
return Ve(t, e);
|
|
927
|
+
const i = { ...n };
|
|
928
|
+
return (r) => (i.red = Re(n.red, s.red, r), i.green = Re(n.green, s.green, r), i.blue = Re(n.blue, s.blue, r), i.alpha = he(n.alpha, s.alpha, r), $.transform(i));
|
|
929
|
+
}, Ee = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
930
|
+
function ai(t, e) {
|
|
931
|
+
return Ee.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
932
|
+
}
|
|
933
|
+
function li(t, e) {
|
|
934
|
+
return (n) => he(t, e, n);
|
|
935
|
+
}
|
|
936
|
+
function Je(t) {
|
|
937
|
+
return typeof t == "number" ? li : typeof t == "string" ? $e(t) ? Ve : C.test(t) ? Ct : hi : Array.isArray(t) ? pn : typeof t == "object" ? C.test(t) ? Ct : ui : Ve;
|
|
938
|
+
}
|
|
939
|
+
function pn(t, e) {
|
|
940
|
+
const n = [...t], s = n.length, i = t.map((r, o) => Je(r)(r, e[o]));
|
|
941
|
+
return (r) => {
|
|
942
|
+
for (let o = 0; o < s; o++)
|
|
943
|
+
n[o] = i[o](r);
|
|
944
|
+
return n;
|
|
945
|
+
};
|
|
946
|
+
}
|
|
947
|
+
function ui(t, e) {
|
|
948
|
+
const n = { ...t, ...e }, s = {};
|
|
949
|
+
for (const i in n)
|
|
950
|
+
t[i] !== void 0 && e[i] !== void 0 && (s[i] = Je(t[i])(t[i], e[i]));
|
|
951
|
+
return (i) => {
|
|
952
|
+
for (const r in s)
|
|
953
|
+
n[r] = s[r](i);
|
|
954
|
+
return n;
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
function ci(t, e) {
|
|
958
|
+
var n;
|
|
959
|
+
const s = [], i = { color: 0, var: 0, number: 0 };
|
|
960
|
+
for (let r = 0; r < e.values.length; r++) {
|
|
961
|
+
const o = e.types[r], l = t.indexes[o][i[o]], a = (n = t.values[l]) !== null && n !== void 0 ? n : 0;
|
|
962
|
+
s[r] = a, i[o]++;
|
|
963
|
+
}
|
|
964
|
+
return s;
|
|
965
|
+
}
|
|
966
|
+
const hi = (t, e) => {
|
|
967
|
+
const n = X.createTransformer(e), s = se(t), i = se(e);
|
|
968
|
+
return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? Ee.has(t) && !i.values.length || Ee.has(e) && !s.values.length ? ai(t, e) : Ze(pn(ci(s, i), i.values), n) : (ae(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Ve(t, e));
|
|
969
|
+
};
|
|
970
|
+
function mn(t, e, n) {
|
|
971
|
+
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? he(t, e, n) : Je(t)(t, e);
|
|
972
|
+
}
|
|
973
|
+
function fi(t, e, n) {
|
|
974
|
+
const s = [], i = n || mn, r = t.length - 1;
|
|
975
|
+
for (let o = 0; o < r; o++) {
|
|
976
|
+
let l = i(t[o], t[o + 1]);
|
|
977
|
+
if (e) {
|
|
978
|
+
const a = Array.isArray(e) ? e[o] || B : e;
|
|
979
|
+
l = Ze(a, l);
|
|
980
|
+
}
|
|
981
|
+
s.push(l);
|
|
982
|
+
}
|
|
983
|
+
return s;
|
|
984
|
+
}
|
|
985
|
+
function di(t, e, { clamp: n = !0, ease: s, mixer: i } = {}) {
|
|
986
|
+
const r = t.length;
|
|
987
|
+
if (k(r === e.length, "Both input and output ranges must be the same length"), r === 1)
|
|
988
|
+
return () => e[0];
|
|
989
|
+
if (r === 2 && t[0] === t[1])
|
|
990
|
+
return () => e[1];
|
|
991
|
+
t[0] > t[r - 1] && (t = [...t].reverse(), e = [...e].reverse());
|
|
992
|
+
const o = fi(e, s, i), l = o.length, a = (u) => {
|
|
993
|
+
let c = 0;
|
|
994
|
+
if (l > 1)
|
|
995
|
+
for (; c < t.length - 2 && !(u < t[c + 1]); c++)
|
|
996
|
+
;
|
|
997
|
+
const h = Qe(t[c], t[c + 1], u);
|
|
998
|
+
return o[c](h);
|
|
999
|
+
};
|
|
1000
|
+
return n ? (u) => a(q(t[0], t[r - 1], u)) : a;
|
|
1001
|
+
}
|
|
1002
|
+
function gn(t, e) {
|
|
1003
|
+
const n = t[t.length - 1];
|
|
1004
|
+
for (let s = 1; s <= e; s++) {
|
|
1005
|
+
const i = Qe(0, e, s);
|
|
1006
|
+
t.push(he(n, 1, i));
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
function yn(t) {
|
|
1010
|
+
const e = [0];
|
|
1011
|
+
return gn(e, t.length - 1), e;
|
|
1012
|
+
}
|
|
1013
|
+
function pi(t, e) {
|
|
1014
|
+
return t.map((n) => n * e);
|
|
1015
|
+
}
|
|
1016
|
+
function mi(t, e) {
|
|
1017
|
+
return t.map(() => e || un).splice(0, t.length - 1);
|
|
1018
|
+
}
|
|
1019
|
+
function we({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }) {
|
|
1020
|
+
const i = cn(s) ? s.map(At) : At(s), r = {
|
|
1021
|
+
done: !1,
|
|
1022
|
+
value: e[0]
|
|
1023
|
+
}, o = pi(
|
|
1024
|
+
// Only use the provided offsets if they're the correct length
|
|
1025
|
+
// TODO Maybe we should warn here if there's a length mismatch
|
|
1026
|
+
n && n.length === e.length ? n : yn(e),
|
|
1027
|
+
t
|
|
1028
|
+
), l = di(o, e, {
|
|
1029
|
+
ease: Array.isArray(i) ? i : mi(e, i)
|
|
1030
|
+
});
|
|
1031
|
+
return {
|
|
1032
|
+
calculatedDuration: t,
|
|
1033
|
+
next: (a) => (r.value = l(a), r.done = a >= t, r)
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
const Ke = 2e4;
|
|
1037
|
+
function vn(t) {
|
|
1038
|
+
let e = 0;
|
|
1039
|
+
const n = 50;
|
|
1040
|
+
let s = t.next(e);
|
|
1041
|
+
for (; !s.done && e < Ke; )
|
|
1042
|
+
e += n, s = t.next(e);
|
|
1043
|
+
return e >= Ke ? 1 / 0 : e;
|
|
1044
|
+
}
|
|
1045
|
+
const gi = (t) => {
|
|
1046
|
+
const e = ({ timestamp: n }) => t(n);
|
|
1047
|
+
return {
|
|
1048
|
+
start: () => _.update(e, !0),
|
|
1049
|
+
stop: () => be(e),
|
|
1050
|
+
/**
|
|
1051
|
+
* If we're processing this frame we can use the
|
|
1052
|
+
* framelocked timestamp to keep things in sync.
|
|
1053
|
+
*/
|
|
1054
|
+
now: () => Te.isProcessing ? Te.timestamp : j.now()
|
|
1055
|
+
};
|
|
1056
|
+
}, yi = {
|
|
1057
|
+
decay: St,
|
|
1058
|
+
inertia: St,
|
|
1059
|
+
tween: we,
|
|
1060
|
+
keyframes: we,
|
|
1061
|
+
spring: Ye
|
|
1062
|
+
}, vi = (t) => t / 100;
|
|
1063
|
+
class et extends rn {
|
|
1064
|
+
constructor(e) {
|
|
1065
|
+
super(e), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
|
|
1066
|
+
if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
|
|
1067
|
+
return;
|
|
1068
|
+
this.teardown();
|
|
1069
|
+
const { onStop: a } = this.options;
|
|
1070
|
+
a && a();
|
|
1071
|
+
};
|
|
1072
|
+
const { name: n, motionValue: s, element: i, keyframes: r } = this.options, o = (i == null ? void 0 : i.KeyframeResolver) || je, l = (a, u) => this.onKeyframesResolved(a, u);
|
|
1073
|
+
this.resolver = new o(r, l, n, s, i), this.resolver.scheduleResolve();
|
|
1074
|
+
}
|
|
1075
|
+
initPlayback(e) {
|
|
1076
|
+
const { type: n = "keyframes", repeat: s = 0, repeatDelay: i = 0, repeatType: r, velocity: o = 0 } = this.options, l = yi[n] || we;
|
|
1077
|
+
let a, u;
|
|
1078
|
+
l !== we && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && k(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), a = Ze(vi, mn(e[0], e[1])), e = [0, 100]);
|
|
1079
|
+
const c = l({ ...this.options, keyframes: e });
|
|
1080
|
+
r === "mirror" && (u = l({
|
|
1081
|
+
...this.options,
|
|
1082
|
+
keyframes: [...e].reverse(),
|
|
1083
|
+
velocity: -o
|
|
1084
|
+
})), c.calculatedDuration === null && (c.calculatedDuration = vn(c));
|
|
1085
|
+
const { calculatedDuration: h } = c, f = h + i, d = f * (s + 1) - i;
|
|
1086
|
+
return {
|
|
1087
|
+
generator: c,
|
|
1088
|
+
mirroredGenerator: u,
|
|
1089
|
+
mapPercentToKeyframes: a,
|
|
1090
|
+
calculatedDuration: h,
|
|
1091
|
+
resolvedDuration: f,
|
|
1092
|
+
totalDuration: d
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
onPostResolved() {
|
|
1096
|
+
const { autoplay: e = !0 } = this.options;
|
|
1097
|
+
this.play(), this.pendingPlayState === "paused" || !e ? this.pause() : this.state = this.pendingPlayState;
|
|
1098
|
+
}
|
|
1099
|
+
tick(e, n = !1) {
|
|
1100
|
+
const { resolved: s } = this;
|
|
1101
|
+
if (!s) {
|
|
1102
|
+
const { keyframes: g } = this.options;
|
|
1103
|
+
return { done: !0, value: g[g.length - 1] };
|
|
1104
|
+
}
|
|
1105
|
+
const { finalKeyframe: i, generator: r, mirroredGenerator: o, mapPercentToKeyframes: l, keyframes: a, calculatedDuration: u, totalDuration: c, resolvedDuration: h } = s;
|
|
1106
|
+
if (this.startTime === null)
|
|
1107
|
+
return r.next(0);
|
|
1108
|
+
const { delay: f, repeat: d, repeatType: y, repeatDelay: v, onUpdate: b } = this.options;
|
|
1109
|
+
this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - c / this.speed, this.startTime)), n ? this.currentTime = e : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(e - this.startTime) * this.speed;
|
|
1110
|
+
const m = this.currentTime - f * (this.speed >= 0 ? 1 : -1), S = this.speed >= 0 ? m < 0 : m > c;
|
|
1111
|
+
this.currentTime = Math.max(m, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = c);
|
|
1112
|
+
let V = this.currentTime, w = r;
|
|
1113
|
+
if (d) {
|
|
1114
|
+
const g = Math.min(this.currentTime, c) / h;
|
|
1115
|
+
let P = Math.floor(g), A = g % 1;
|
|
1116
|
+
!A && g >= 1 && (A = 1), A === 1 && P--, P = Math.min(P, d + 1), !!(P % 2) && (y === "reverse" ? (A = 1 - A, v && (A -= v / h)) : y === "mirror" && (w = o)), V = q(0, 1, A) * h;
|
|
1117
|
+
}
|
|
1118
|
+
const T = S ? { done: !1, value: a[0] } : w.next(V);
|
|
1119
|
+
l && (T.value = l(T.value));
|
|
1120
|
+
let { done: x } = T;
|
|
1121
|
+
!S && u !== null && (x = this.speed >= 0 ? this.currentTime >= c : this.currentTime <= 0);
|
|
1122
|
+
const F = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
|
|
1123
|
+
return F && i !== void 0 && (T.value = xe(a, this.options, i)), b && b(T.value), F && this.finish(), T;
|
|
1124
|
+
}
|
|
1125
|
+
get duration() {
|
|
1126
|
+
const { resolved: e } = this;
|
|
1127
|
+
return e ? I(e.calculatedDuration) : 0;
|
|
1128
|
+
}
|
|
1129
|
+
get time() {
|
|
1130
|
+
return I(this.currentTime);
|
|
1131
|
+
}
|
|
1132
|
+
set time(e) {
|
|
1133
|
+
e = O(e), this.currentTime = e, this.holdTime !== null || this.speed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.speed);
|
|
1134
|
+
}
|
|
1135
|
+
get speed() {
|
|
1136
|
+
return this.playbackSpeed;
|
|
1137
|
+
}
|
|
1138
|
+
set speed(e) {
|
|
1139
|
+
const n = this.playbackSpeed !== e;
|
|
1140
|
+
this.playbackSpeed = e, n && (this.time = I(this.currentTime));
|
|
1141
|
+
}
|
|
1142
|
+
play() {
|
|
1143
|
+
if (this.resolver.isScheduled || this.resolver.resume(), !this._resolved) {
|
|
1144
|
+
this.pendingPlayState = "running";
|
|
1145
|
+
return;
|
|
1146
|
+
}
|
|
1147
|
+
if (this.isStopped)
|
|
1148
|
+
return;
|
|
1149
|
+
const { driver: e = gi, onPlay: n, startTime: s } = this.options;
|
|
1150
|
+
this.driver || (this.driver = e((r) => this.tick(r))), n && n();
|
|
1151
|
+
const i = this.driver.now();
|
|
1152
|
+
this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = i) : this.startTime = s ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
|
|
1153
|
+
}
|
|
1154
|
+
pause() {
|
|
1155
|
+
var e;
|
|
1156
|
+
if (!this._resolved) {
|
|
1157
|
+
this.pendingPlayState = "paused";
|
|
1158
|
+
return;
|
|
1159
|
+
}
|
|
1160
|
+
this.state = "paused", this.holdTime = (e = this.currentTime) !== null && e !== void 0 ? e : 0;
|
|
1161
|
+
}
|
|
1162
|
+
complete() {
|
|
1163
|
+
this.state !== "running" && this.play(), this.pendingPlayState = this.state = "finished", this.holdTime = null;
|
|
1164
|
+
}
|
|
1165
|
+
finish() {
|
|
1166
|
+
this.teardown(), this.state = "finished";
|
|
1167
|
+
const { onComplete: e } = this.options;
|
|
1168
|
+
e && e();
|
|
1169
|
+
}
|
|
1170
|
+
cancel() {
|
|
1171
|
+
this.cancelTime !== null && this.tick(this.cancelTime), this.teardown(), this.updateFinishedPromise();
|
|
1172
|
+
}
|
|
1173
|
+
teardown() {
|
|
1174
|
+
this.state = "idle", this.stopDriver(), this.resolveFinishedPromise(), this.updateFinishedPromise(), this.startTime = this.cancelTime = null, this.resolver.cancel();
|
|
1175
|
+
}
|
|
1176
|
+
stopDriver() {
|
|
1177
|
+
this.driver && (this.driver.stop(), this.driver = void 0);
|
|
1178
|
+
}
|
|
1179
|
+
sample(e) {
|
|
1180
|
+
return this.startTime = 0, this.tick(e, !0);
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
const bn = /* @__PURE__ */ new Set([
|
|
1184
|
+
"opacity",
|
|
1185
|
+
"clipPath",
|
|
1186
|
+
"filter",
|
|
1187
|
+
"transform"
|
|
1188
|
+
// TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
|
|
1189
|
+
// or until we implement support for linear() easing.
|
|
1190
|
+
// "background-color"
|
|
1191
|
+
]), Tn = (t) => Array.isArray(t) && typeof t[0] == "number";
|
|
1192
|
+
function Vn(t) {
|
|
1193
|
+
return !!(!t || typeof t == "string" && t in tt || Tn(t) || Array.isArray(t) && t.every(Vn));
|
|
1194
|
+
}
|
|
1195
|
+
const ee = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, tt = {
|
|
1196
|
+
linear: "linear",
|
|
1197
|
+
ease: "ease",
|
|
1198
|
+
easeIn: "ease-in",
|
|
1199
|
+
easeOut: "ease-out",
|
|
1200
|
+
easeInOut: "ease-in-out",
|
|
1201
|
+
circIn: /* @__PURE__ */ ee([0, 0.65, 0.55, 1]),
|
|
1202
|
+
circOut: /* @__PURE__ */ ee([0.55, 0, 1, 0.45]),
|
|
1203
|
+
backIn: /* @__PURE__ */ ee([0.31, 0.01, 0.66, -0.59]),
|
|
1204
|
+
backOut: /* @__PURE__ */ ee([0.33, 1.53, 0.69, 0.99])
|
|
1205
|
+
};
|
|
1206
|
+
function bi(t) {
|
|
1207
|
+
return wn(t) || tt.easeOut;
|
|
1208
|
+
}
|
|
1209
|
+
function wn(t) {
|
|
1210
|
+
if (t)
|
|
1211
|
+
return Tn(t) ? ee(t) : Array.isArray(t) ? t.map(bi) : tt[t];
|
|
1212
|
+
}
|
|
1213
|
+
function Ti(t, e, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatType: o = "loop", ease: l, times: a } = {}) {
|
|
1214
|
+
const u = { [e]: n };
|
|
1215
|
+
a && (u.offset = a);
|
|
1216
|
+
const c = wn(l);
|
|
1217
|
+
return Array.isArray(c) && (u.easing = c), t.animate(u, {
|
|
1218
|
+
delay: s,
|
|
1219
|
+
duration: i,
|
|
1220
|
+
easing: Array.isArray(c) ? "linear" : c,
|
|
1221
|
+
fill: "both",
|
|
1222
|
+
iterations: r + 1,
|
|
1223
|
+
direction: o === "reverse" ? "alternate" : "normal"
|
|
1224
|
+
});
|
|
1225
|
+
}
|
|
1226
|
+
const Vi = /* @__PURE__ */ sn(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Se = 10, wi = 2e4;
|
|
1227
|
+
function Si(t) {
|
|
1228
|
+
return t.type === "spring" || !Vn(t.ease);
|
|
1229
|
+
}
|
|
1230
|
+
function xi(t, e) {
|
|
1231
|
+
const n = new et({
|
|
1232
|
+
...e,
|
|
1233
|
+
keyframes: t,
|
|
1234
|
+
repeat: 0,
|
|
1235
|
+
delay: 0,
|
|
1236
|
+
isGenerator: !0
|
|
1237
|
+
});
|
|
1238
|
+
let s = { done: !1, value: t[0] };
|
|
1239
|
+
const i = [];
|
|
1240
|
+
let r = 0;
|
|
1241
|
+
for (; !s.done && r < wi; )
|
|
1242
|
+
s = n.sample(r), i.push(s.value), r += Se;
|
|
1243
|
+
return {
|
|
1244
|
+
times: void 0,
|
|
1245
|
+
keyframes: i,
|
|
1246
|
+
duration: r - Se,
|
|
1247
|
+
ease: "linear"
|
|
1248
|
+
};
|
|
1249
|
+
}
|
|
1250
|
+
class Ft extends rn {
|
|
1251
|
+
constructor(e) {
|
|
1252
|
+
super(e);
|
|
1253
|
+
const { name: n, motionValue: s, element: i, keyframes: r } = this.options;
|
|
1254
|
+
this.resolver = new nn(r, (o, l) => this.onKeyframesResolved(o, l), n, s, i), this.resolver.scheduleResolve();
|
|
1255
|
+
}
|
|
1256
|
+
initPlayback(e, n) {
|
|
1257
|
+
var s;
|
|
1258
|
+
let { duration: i = 300, times: r, ease: o, type: l, motionValue: a, name: u, startTime: c } = this.options;
|
|
1259
|
+
if (!(!((s = a.owner) === null || s === void 0) && s.current))
|
|
1260
|
+
return !1;
|
|
1261
|
+
if (Si(this.options)) {
|
|
1262
|
+
const { onComplete: f, onUpdate: d, motionValue: y, element: v, ...b } = this.options, m = xi(e, b);
|
|
1263
|
+
e = m.keyframes, e.length === 1 && (e[1] = e[0]), i = m.duration, r = m.times, o = m.ease, l = "keyframes";
|
|
1264
|
+
}
|
|
1265
|
+
const h = Ti(a.owner.current, u, e, { ...this.options, duration: i, times: r, ease: o });
|
|
1266
|
+
return h.startTime = c ?? this.calcStartTime(), this.pendingTimeline ? (h.timeline = this.pendingTimeline, this.pendingTimeline = void 0) : h.onfinish = () => {
|
|
1267
|
+
const { onComplete: f } = this.options;
|
|
1268
|
+
a.set(xe(e, this.options, n)), f && f(), this.cancel(), this.resolveFinishedPromise();
|
|
1269
|
+
}, {
|
|
1270
|
+
animation: h,
|
|
1271
|
+
duration: i,
|
|
1272
|
+
times: r,
|
|
1273
|
+
type: l,
|
|
1274
|
+
ease: o,
|
|
1275
|
+
keyframes: e
|
|
1276
|
+
};
|
|
1277
|
+
}
|
|
1278
|
+
get duration() {
|
|
1279
|
+
const { resolved: e } = this;
|
|
1280
|
+
if (!e)
|
|
1281
|
+
return 0;
|
|
1282
|
+
const { duration: n } = e;
|
|
1283
|
+
return I(n);
|
|
1284
|
+
}
|
|
1285
|
+
get time() {
|
|
1286
|
+
const { resolved: e } = this;
|
|
1287
|
+
if (!e)
|
|
1288
|
+
return 0;
|
|
1289
|
+
const { animation: n } = e;
|
|
1290
|
+
return I(n.currentTime || 0);
|
|
1291
|
+
}
|
|
1292
|
+
set time(e) {
|
|
1293
|
+
const { resolved: n } = this;
|
|
1294
|
+
if (!n)
|
|
1295
|
+
return;
|
|
1296
|
+
const { animation: s } = n;
|
|
1297
|
+
s.currentTime = O(e);
|
|
1298
|
+
}
|
|
1299
|
+
get speed() {
|
|
1300
|
+
const { resolved: e } = this;
|
|
1301
|
+
if (!e)
|
|
1302
|
+
return 1;
|
|
1303
|
+
const { animation: n } = e;
|
|
1304
|
+
return n.playbackRate;
|
|
1305
|
+
}
|
|
1306
|
+
set speed(e) {
|
|
1307
|
+
const { resolved: n } = this;
|
|
1308
|
+
if (!n)
|
|
1309
|
+
return;
|
|
1310
|
+
const { animation: s } = n;
|
|
1311
|
+
s.playbackRate = e;
|
|
1312
|
+
}
|
|
1313
|
+
get state() {
|
|
1314
|
+
const { resolved: e } = this;
|
|
1315
|
+
if (!e)
|
|
1316
|
+
return "idle";
|
|
1317
|
+
const { animation: n } = e;
|
|
1318
|
+
return n.playState;
|
|
1319
|
+
}
|
|
1320
|
+
get startTime() {
|
|
1321
|
+
const { resolved: e } = this;
|
|
1322
|
+
if (!e)
|
|
1323
|
+
return null;
|
|
1324
|
+
const { animation: n } = e;
|
|
1325
|
+
return n.startTime;
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Replace the default DocumentTimeline with another AnimationTimeline.
|
|
1329
|
+
* Currently used for scroll animations.
|
|
1330
|
+
*/
|
|
1331
|
+
attachTimeline(e) {
|
|
1332
|
+
if (!this._resolved)
|
|
1333
|
+
this.pendingTimeline = e;
|
|
1334
|
+
else {
|
|
1335
|
+
const { resolved: n } = this;
|
|
1336
|
+
if (!n)
|
|
1337
|
+
return B;
|
|
1338
|
+
const { animation: s } = n;
|
|
1339
|
+
s.timeline = e, s.onfinish = null;
|
|
1340
|
+
}
|
|
1341
|
+
return B;
|
|
1342
|
+
}
|
|
1343
|
+
play() {
|
|
1344
|
+
if (this.isStopped)
|
|
1345
|
+
return;
|
|
1346
|
+
const { resolved: e } = this;
|
|
1347
|
+
if (!e)
|
|
1348
|
+
return;
|
|
1349
|
+
const { animation: n } = e;
|
|
1350
|
+
n.playState === "finished" && this.updateFinishedPromise(), n.play();
|
|
1351
|
+
}
|
|
1352
|
+
pause() {
|
|
1353
|
+
const { resolved: e } = this;
|
|
1354
|
+
if (!e)
|
|
1355
|
+
return;
|
|
1356
|
+
const { animation: n } = e;
|
|
1357
|
+
n.pause();
|
|
1358
|
+
}
|
|
1359
|
+
stop() {
|
|
1360
|
+
if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
|
|
1361
|
+
return;
|
|
1362
|
+
this.resolveFinishedPromise(), this.updateFinishedPromise();
|
|
1363
|
+
const { resolved: e } = this;
|
|
1364
|
+
if (!e)
|
|
1365
|
+
return;
|
|
1366
|
+
const { animation: n, keyframes: s, duration: i, type: r, ease: o, times: l } = e;
|
|
1367
|
+
if (n.playState === "idle" || n.playState === "finished")
|
|
1368
|
+
return;
|
|
1369
|
+
if (this.time) {
|
|
1370
|
+
const { motionValue: u, onUpdate: c, onComplete: h, element: f, ...d } = this.options, y = new et({
|
|
1371
|
+
...d,
|
|
1372
|
+
keyframes: s,
|
|
1373
|
+
duration: i,
|
|
1374
|
+
type: r,
|
|
1375
|
+
ease: o,
|
|
1376
|
+
times: l,
|
|
1377
|
+
isGenerator: !0
|
|
1378
|
+
}), v = O(this.time);
|
|
1379
|
+
u.setWithVelocity(y.sample(v - Se).value, y.sample(v).value, Se);
|
|
1380
|
+
}
|
|
1381
|
+
const { onStop: a } = this.options;
|
|
1382
|
+
a && a(), this.cancel();
|
|
1383
|
+
}
|
|
1384
|
+
complete() {
|
|
1385
|
+
const { resolved: e } = this;
|
|
1386
|
+
e && e.animation.finish();
|
|
1387
|
+
}
|
|
1388
|
+
cancel() {
|
|
1389
|
+
const { resolved: e } = this;
|
|
1390
|
+
e && e.animation.cancel();
|
|
1391
|
+
}
|
|
1392
|
+
static supports(e) {
|
|
1393
|
+
const { motionValue: n, name: s, repeatDelay: i, repeatType: r, damping: o, type: l } = e;
|
|
1394
|
+
return Vi() && s && bn.has(s) && n && n.owner && n.owner.current instanceof HTMLElement && /**
|
|
1395
|
+
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
1396
|
+
* no way to read the value from WAAPI every frame.
|
|
1397
|
+
*/
|
|
1398
|
+
!n.owner.getProps().onUpdate && !i && r !== "mirror" && o !== 0 && l !== "inertia";
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
function Ai(t, e) {
|
|
1402
|
+
let n;
|
|
1403
|
+
const s = () => {
|
|
1404
|
+
const { currentTime: i } = e, o = (i === null ? 0 : i.value) / 100;
|
|
1405
|
+
n !== o && t(o), n = o;
|
|
1406
|
+
};
|
|
1407
|
+
return _.update(s, !0), () => be(s);
|
|
1408
|
+
}
|
|
1409
|
+
const Mi = sn(() => window.ScrollTimeline !== void 0);
|
|
1410
|
+
class nt {
|
|
1411
|
+
constructor(e) {
|
|
1412
|
+
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
|
1413
|
+
}
|
|
1414
|
+
then(e, n) {
|
|
1415
|
+
return Promise.all(this.animations).then(e).catch(n);
|
|
1416
|
+
}
|
|
1417
|
+
/**
|
|
1418
|
+
* TODO: Filter out cancelled or stopped animations before returning
|
|
1419
|
+
*/
|
|
1420
|
+
getAll(e) {
|
|
1421
|
+
return this.animations[0][e];
|
|
1422
|
+
}
|
|
1423
|
+
setAll(e, n) {
|
|
1424
|
+
for (let s = 0; s < this.animations.length; s++)
|
|
1425
|
+
this.animations[s][e] = n;
|
|
1426
|
+
}
|
|
1427
|
+
attachTimeline(e) {
|
|
1428
|
+
const n = this.animations.map((s) => {
|
|
1429
|
+
if (Mi() && s.attachTimeline)
|
|
1430
|
+
s.attachTimeline(e);
|
|
1431
|
+
else
|
|
1432
|
+
return s.pause(), Ai((i) => {
|
|
1433
|
+
s.time = s.duration * i;
|
|
1434
|
+
}, e);
|
|
1435
|
+
});
|
|
1436
|
+
return () => {
|
|
1437
|
+
n.forEach((s, i) => {
|
|
1438
|
+
s && s(), this.animations[i].stop();
|
|
1439
|
+
});
|
|
1440
|
+
};
|
|
1441
|
+
}
|
|
1442
|
+
get time() {
|
|
1443
|
+
return this.getAll("time");
|
|
1444
|
+
}
|
|
1445
|
+
set time(e) {
|
|
1446
|
+
this.setAll("time", e);
|
|
1447
|
+
}
|
|
1448
|
+
get speed() {
|
|
1449
|
+
return this.getAll("speed");
|
|
1450
|
+
}
|
|
1451
|
+
set speed(e) {
|
|
1452
|
+
this.setAll("speed", e);
|
|
1453
|
+
}
|
|
1454
|
+
get startTime() {
|
|
1455
|
+
return this.getAll("startTime");
|
|
1456
|
+
}
|
|
1457
|
+
get duration() {
|
|
1458
|
+
let e = 0;
|
|
1459
|
+
for (let n = 0; n < this.animations.length; n++)
|
|
1460
|
+
e = Math.max(e, this.animations[n].duration);
|
|
1461
|
+
return e;
|
|
1462
|
+
}
|
|
1463
|
+
runAll(e) {
|
|
1464
|
+
this.animations.forEach((n) => n[e]());
|
|
1465
|
+
}
|
|
1466
|
+
play() {
|
|
1467
|
+
this.runAll("play");
|
|
1468
|
+
}
|
|
1469
|
+
pause() {
|
|
1470
|
+
this.runAll("pause");
|
|
1471
|
+
}
|
|
1472
|
+
cancel() {
|
|
1473
|
+
this.runAll("cancel");
|
|
1474
|
+
}
|
|
1475
|
+
complete() {
|
|
1476
|
+
this.runAll("complete");
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
const Sn = (t, e, n, s = {}, i, r, o) => (l) => {
|
|
1480
|
+
const a = Lt(s, t) || {}, u = a.delay || s.delay || 0;
|
|
1481
|
+
let { elapsed: c = 0 } = s;
|
|
1482
|
+
c = c - O(u);
|
|
1483
|
+
let h = {
|
|
1484
|
+
keyframes: Array.isArray(n) ? n : [null, n],
|
|
1485
|
+
ease: "easeOut",
|
|
1486
|
+
velocity: e.getVelocity(),
|
|
1487
|
+
...a,
|
|
1488
|
+
delay: -c,
|
|
1489
|
+
onUpdate: (d) => {
|
|
1490
|
+
e.set(d), a.onUpdate && a.onUpdate(d);
|
|
1491
|
+
},
|
|
1492
|
+
onComplete: () => {
|
|
1493
|
+
l(), a.onComplete && a.onComplete(), o && o();
|
|
1494
|
+
},
|
|
1495
|
+
onStop: o,
|
|
1496
|
+
name: t,
|
|
1497
|
+
motionValue: e,
|
|
1498
|
+
element: r ? void 0 : i
|
|
1499
|
+
};
|
|
1500
|
+
Zn(a) || (h = {
|
|
1501
|
+
...h,
|
|
1502
|
+
...Xn(t, h)
|
|
1503
|
+
}), h.duration && (h.duration = O(h.duration)), h.repeatDelay && (h.repeatDelay = O(h.repeatDelay)), h.from !== void 0 && (h.keyframes[0] = h.from);
|
|
1504
|
+
let f = !1;
|
|
1505
|
+
if ((h.type === !1 || h.duration === 0 && !h.repeatDelay) && (h.duration = 0, h.delay === 0 && (f = !0)), f && !r && e.get() !== void 0) {
|
|
1506
|
+
const d = xe(h.keyframes, a);
|
|
1507
|
+
if (d !== void 0)
|
|
1508
|
+
return _.update(() => {
|
|
1509
|
+
h.onUpdate(d), h.onComplete();
|
|
1510
|
+
}), new nt([]);
|
|
1511
|
+
}
|
|
1512
|
+
return !r && Ft.supports(h) ? new Ft(h) : new et(h);
|
|
1513
|
+
}, Ci = (t) => Un(t) ? t[t.length - 1] || 0 : t;
|
|
1514
|
+
function Fi(t, e) {
|
|
1515
|
+
t.indexOf(e) === -1 && t.push(e);
|
|
1516
|
+
}
|
|
1517
|
+
function st(t, e) {
|
|
1518
|
+
const n = t.indexOf(e);
|
|
1519
|
+
n > -1 && t.splice(n, 1);
|
|
1520
|
+
}
|
|
1521
|
+
class xn {
|
|
1522
|
+
constructor() {
|
|
1523
|
+
this.subscriptions = [];
|
|
1524
|
+
}
|
|
1525
|
+
add(e) {
|
|
1526
|
+
return Fi(this.subscriptions, e), () => st(this.subscriptions, e);
|
|
1527
|
+
}
|
|
1528
|
+
notify(e, n, s) {
|
|
1529
|
+
const i = this.subscriptions.length;
|
|
1530
|
+
if (i)
|
|
1531
|
+
if (i === 1)
|
|
1532
|
+
this.subscriptions[0](e, n, s);
|
|
1533
|
+
else
|
|
1534
|
+
for (let r = 0; r < i; r++) {
|
|
1535
|
+
const o = this.subscriptions[r];
|
|
1536
|
+
o && o(e, n, s);
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
getSize() {
|
|
1540
|
+
return this.subscriptions.length;
|
|
1541
|
+
}
|
|
1542
|
+
clear() {
|
|
1543
|
+
this.subscriptions.length = 0;
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
const Pt = 30, Pi = (t) => !isNaN(parseFloat(t));
|
|
1547
|
+
class An {
|
|
1548
|
+
/**
|
|
1549
|
+
* @param init - The initiating value
|
|
1550
|
+
* @param config - Optional configuration options
|
|
1551
|
+
*
|
|
1552
|
+
* - `transformer`: A function to transform incoming values with.
|
|
1553
|
+
*
|
|
1554
|
+
* @internal
|
|
1555
|
+
*/
|
|
1556
|
+
constructor(e, n = {}) {
|
|
1557
|
+
this.version = "11.5.4", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (s, i = !0) => {
|
|
1558
|
+
const r = j.now();
|
|
1559
|
+
this.updatedAt !== r && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(s), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), i && this.events.renderRequest && this.events.renderRequest.notify(this.current);
|
|
1560
|
+
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
|
|
1561
|
+
}
|
|
1562
|
+
setCurrent(e) {
|
|
1563
|
+
this.current = e, this.updatedAt = j.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Pi(this.current));
|
|
1564
|
+
}
|
|
1565
|
+
setPrevFrameValue(e = this.current) {
|
|
1566
|
+
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
1567
|
+
}
|
|
1568
|
+
/**
|
|
1569
|
+
* Adds a function that will be notified when the `MotionValue` is updated.
|
|
1570
|
+
*
|
|
1571
|
+
* It returns a function that, when called, will cancel the subscription.
|
|
1572
|
+
*
|
|
1573
|
+
* When calling `onChange` inside a React component, it should be wrapped with the
|
|
1574
|
+
* `useEffect` hook. As it returns an unsubscribe function, this should be returned
|
|
1575
|
+
* from the `useEffect` function to ensure you don't add duplicate subscribers..
|
|
1576
|
+
*
|
|
1577
|
+
* ```jsx
|
|
1578
|
+
* export const MyComponent = () => {
|
|
1579
|
+
* const x = useMotionValue(0)
|
|
1580
|
+
* const y = useMotionValue(0)
|
|
1581
|
+
* const opacity = useMotionValue(1)
|
|
1582
|
+
*
|
|
1583
|
+
* useEffect(() => {
|
|
1584
|
+
* function updateOpacity() {
|
|
1585
|
+
* const maxXY = Math.max(x.get(), y.get())
|
|
1586
|
+
* const newOpacity = transform(maxXY, [0, 100], [1, 0])
|
|
1587
|
+
* opacity.set(newOpacity)
|
|
1588
|
+
* }
|
|
1589
|
+
*
|
|
1590
|
+
* const unsubscribeX = x.on("change", updateOpacity)
|
|
1591
|
+
* const unsubscribeY = y.on("change", updateOpacity)
|
|
1592
|
+
*
|
|
1593
|
+
* return () => {
|
|
1594
|
+
* unsubscribeX()
|
|
1595
|
+
* unsubscribeY()
|
|
1596
|
+
* }
|
|
1597
|
+
* }, [])
|
|
1598
|
+
*
|
|
1599
|
+
* return <motion.div style={{ x }} />
|
|
1600
|
+
* }
|
|
1601
|
+
* ```
|
|
1602
|
+
*
|
|
1603
|
+
* @param subscriber - A function that receives the latest value.
|
|
1604
|
+
* @returns A function that, when called, will cancel this subscription.
|
|
1605
|
+
*
|
|
1606
|
+
* @deprecated
|
|
1607
|
+
*/
|
|
1608
|
+
onChange(e) {
|
|
1609
|
+
return process.env.NODE_ENV !== "production" && Le(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
|
|
1610
|
+
}
|
|
1611
|
+
on(e, n) {
|
|
1612
|
+
this.events[e] || (this.events[e] = new xn());
|
|
1613
|
+
const s = this.events[e].add(n);
|
|
1614
|
+
return e === "change" ? () => {
|
|
1615
|
+
s(), _.read(() => {
|
|
1616
|
+
this.events.change.getSize() || this.stop();
|
|
1617
|
+
});
|
|
1618
|
+
} : s;
|
|
1619
|
+
}
|
|
1620
|
+
clearListeners() {
|
|
1621
|
+
for (const e in this.events)
|
|
1622
|
+
this.events[e].clear();
|
|
1623
|
+
}
|
|
1624
|
+
/**
|
|
1625
|
+
* Attaches a passive effect to the `MotionValue`.
|
|
1626
|
+
*
|
|
1627
|
+
* @internal
|
|
1628
|
+
*/
|
|
1629
|
+
attach(e, n) {
|
|
1630
|
+
this.passiveEffect = e, this.stopPassiveEffect = n;
|
|
1631
|
+
}
|
|
1632
|
+
/**
|
|
1633
|
+
* Sets the state of the `MotionValue`.
|
|
1634
|
+
*
|
|
1635
|
+
* @remarks
|
|
1636
|
+
*
|
|
1637
|
+
* ```jsx
|
|
1638
|
+
* const x = useMotionValue(0)
|
|
1639
|
+
* x.set(10)
|
|
1640
|
+
* ```
|
|
1641
|
+
*
|
|
1642
|
+
* @param latest - Latest value to set.
|
|
1643
|
+
* @param render - Whether to notify render subscribers. Defaults to `true`
|
|
1644
|
+
*
|
|
1645
|
+
* @public
|
|
1646
|
+
*/
|
|
1647
|
+
set(e, n = !0) {
|
|
1648
|
+
!n || !this.passiveEffect ? this.updateAndNotify(e, n) : this.passiveEffect(e, this.updateAndNotify);
|
|
1649
|
+
}
|
|
1650
|
+
setWithVelocity(e, n, s) {
|
|
1651
|
+
this.set(n), this.prev = void 0, this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt - s;
|
|
1652
|
+
}
|
|
1653
|
+
/**
|
|
1654
|
+
* Set the state of the `MotionValue`, stopping any active animations,
|
|
1655
|
+
* effects, and resets velocity to `0`.
|
|
1656
|
+
*/
|
|
1657
|
+
jump(e, n = !0) {
|
|
1658
|
+
this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, n && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1659
|
+
}
|
|
1660
|
+
/**
|
|
1661
|
+
* Returns the latest state of `MotionValue`
|
|
1662
|
+
*
|
|
1663
|
+
* @returns - The latest state of `MotionValue`
|
|
1664
|
+
*
|
|
1665
|
+
* @public
|
|
1666
|
+
*/
|
|
1667
|
+
get() {
|
|
1668
|
+
return this.current;
|
|
1669
|
+
}
|
|
1670
|
+
/**
|
|
1671
|
+
* @public
|
|
1672
|
+
*/
|
|
1673
|
+
getPrevious() {
|
|
1674
|
+
return this.prev;
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* Returns the latest velocity of `MotionValue`
|
|
1678
|
+
*
|
|
1679
|
+
* @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.
|
|
1680
|
+
*
|
|
1681
|
+
* @public
|
|
1682
|
+
*/
|
|
1683
|
+
getVelocity() {
|
|
1684
|
+
const e = j.now();
|
|
1685
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Pt)
|
|
1686
|
+
return 0;
|
|
1687
|
+
const n = Math.min(this.updatedAt - this.prevUpdatedAt, Pt);
|
|
1688
|
+
return on(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
|
|
1689
|
+
}
|
|
1690
|
+
/**
|
|
1691
|
+
* Registers a new animation to control this `MotionValue`. Only one
|
|
1692
|
+
* animation can drive a `MotionValue` at one time.
|
|
1693
|
+
*
|
|
1694
|
+
* ```jsx
|
|
1695
|
+
* value.start()
|
|
1696
|
+
* ```
|
|
1697
|
+
*
|
|
1698
|
+
* @param animation - A function that starts the provided animation
|
|
1699
|
+
*
|
|
1700
|
+
* @internal
|
|
1701
|
+
*/
|
|
1702
|
+
start(e) {
|
|
1703
|
+
return this.stop(), new Promise((n) => {
|
|
1704
|
+
this.hasAnimated = !0, this.animation = e(n), this.events.animationStart && this.events.animationStart.notify();
|
|
1705
|
+
}).then(() => {
|
|
1706
|
+
this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
|
|
1707
|
+
});
|
|
1708
|
+
}
|
|
1709
|
+
/**
|
|
1710
|
+
* Stop the currently active animation.
|
|
1711
|
+
*
|
|
1712
|
+
* @public
|
|
1713
|
+
*/
|
|
1714
|
+
stop() {
|
|
1715
|
+
this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
* Returns `true` if this value is currently animating.
|
|
1719
|
+
*
|
|
1720
|
+
* @public
|
|
1721
|
+
*/
|
|
1722
|
+
isAnimating() {
|
|
1723
|
+
return !!this.animation;
|
|
1724
|
+
}
|
|
1725
|
+
clearAnimation() {
|
|
1726
|
+
delete this.animation;
|
|
1727
|
+
}
|
|
1728
|
+
/**
|
|
1729
|
+
* Destroy and clean up subscribers to this `MotionValue`.
|
|
1730
|
+
*
|
|
1731
|
+
* The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically
|
|
1732
|
+
* handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually
|
|
1733
|
+
* created a `MotionValue` via the `motionValue` function.
|
|
1734
|
+
*
|
|
1735
|
+
* @public
|
|
1736
|
+
*/
|
|
1737
|
+
destroy() {
|
|
1738
|
+
this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
function ie(t, e) {
|
|
1742
|
+
return new An(t, e);
|
|
1743
|
+
}
|
|
1744
|
+
function Ri(t, e, n) {
|
|
1745
|
+
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, ie(n));
|
|
1746
|
+
}
|
|
1747
|
+
function Di(t, e) {
|
|
1748
|
+
const n = jn(t, e);
|
|
1749
|
+
let { transitionEnd: s = {}, transition: i = {}, ...r } = n || {};
|
|
1750
|
+
r = { ...r, ...s };
|
|
1751
|
+
for (const o in r) {
|
|
1752
|
+
const l = Ci(r[o]);
|
|
1753
|
+
Ri(t, o, l);
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
const Ae = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Ni = "framerAppearId", Oi = "data-" + Ae(Ni);
|
|
1757
|
+
function _i(t) {
|
|
1758
|
+
return t.props[Oi];
|
|
1759
|
+
}
|
|
1760
|
+
function Ii(t) {
|
|
1761
|
+
if (L.has(t))
|
|
1762
|
+
return "transform";
|
|
1763
|
+
if (bn.has(t))
|
|
1764
|
+
return Ae(t);
|
|
1765
|
+
}
|
|
1766
|
+
class Ei extends An {
|
|
1767
|
+
constructor() {
|
|
1768
|
+
super(...arguments), this.output = [], this.counts = /* @__PURE__ */ new Map();
|
|
1769
|
+
}
|
|
1770
|
+
add(e) {
|
|
1771
|
+
const n = Ii(e);
|
|
1772
|
+
if (!n)
|
|
1773
|
+
return;
|
|
1774
|
+
const s = this.counts.get(n) || 0;
|
|
1775
|
+
this.counts.set(n, s + 1), s === 0 && (this.output.push(n), this.update());
|
|
1776
|
+
let i = !1;
|
|
1777
|
+
return () => {
|
|
1778
|
+
if (i)
|
|
1779
|
+
return;
|
|
1780
|
+
i = !0;
|
|
1781
|
+
const r = this.counts.get(n) - 1;
|
|
1782
|
+
this.counts.set(n, r), r === 0 && (st(this.output, n), this.update());
|
|
1783
|
+
};
|
|
1784
|
+
}
|
|
1785
|
+
update() {
|
|
1786
|
+
this.set(this.output.length ? this.output.join(", ") : "auto");
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
const R = (t) => !!(t && t.getVelocity);
|
|
1790
|
+
function Ki(t) {
|
|
1791
|
+
return !!(R(t) && t.add);
|
|
1792
|
+
}
|
|
1793
|
+
function Bi(t, e) {
|
|
1794
|
+
var n;
|
|
1795
|
+
if (!t.applyWillChange)
|
|
1796
|
+
return;
|
|
1797
|
+
let s = t.getValue("willChange");
|
|
1798
|
+
if (!s && !(!((n = t.props.style) === null || n === void 0) && n.willChange) && (s = new Ei("auto"), t.addValue("willChange", s)), Ki(s))
|
|
1799
|
+
return s.add(e);
|
|
1800
|
+
}
|
|
1801
|
+
function ki({ protectedKeys: t, needsAnimating: e }, n) {
|
|
1802
|
+
const s = t.hasOwnProperty(n) && e[n] !== !0;
|
|
1803
|
+
return e[n] = !1, s;
|
|
1804
|
+
}
|
|
1805
|
+
function Li(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
|
|
1806
|
+
var r;
|
|
1807
|
+
let { transition: o = t.getDefaultTransition(), transitionEnd: l, ...a } = e;
|
|
1808
|
+
s && (o = s);
|
|
1809
|
+
const u = [], c = i && t.animationState && t.animationState.getState()[i];
|
|
1810
|
+
for (const h in a) {
|
|
1811
|
+
const f = t.getValue(h, (r = t.latestValues[h]) !== null && r !== void 0 ? r : null), d = a[h];
|
|
1812
|
+
if (d === void 0 || c && ki(c, h))
|
|
1813
|
+
continue;
|
|
1814
|
+
const y = {
|
|
1815
|
+
delay: n,
|
|
1816
|
+
...Lt(o || {}, h)
|
|
1817
|
+
};
|
|
1818
|
+
let v = !1;
|
|
1819
|
+
if (window.MotionHandoffAnimation) {
|
|
1820
|
+
const m = _i(t);
|
|
1821
|
+
if (m) {
|
|
1822
|
+
const S = window.MotionHandoffAnimation(m, h, _);
|
|
1823
|
+
S !== null && (y.startTime = S, v = !0);
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
f.start(Sn(h, f, d, t.shouldReduceMotion && L.has(h) ? { type: !1 } : y, t, v, Bi(t, h)));
|
|
1827
|
+
const b = f.animation;
|
|
1828
|
+
b && u.push(b);
|
|
1829
|
+
}
|
|
1830
|
+
return l && Promise.all(u).then(() => {
|
|
1831
|
+
_.update(() => {
|
|
1832
|
+
l && Di(t, l);
|
|
1833
|
+
});
|
|
1834
|
+
}), u;
|
|
1835
|
+
}
|
|
1836
|
+
const Rt = () => ({ min: 0, max: 0 }), Mn = () => ({
|
|
1837
|
+
x: Rt(),
|
|
1838
|
+
y: Rt()
|
|
1839
|
+
});
|
|
1840
|
+
function Wi({ top: t, left: e, right: n, bottom: s }) {
|
|
1841
|
+
return {
|
|
1842
|
+
x: { min: e, max: n },
|
|
1843
|
+
y: { min: t, max: s }
|
|
1844
|
+
};
|
|
1845
|
+
}
|
|
1846
|
+
function $i(t, e) {
|
|
1847
|
+
if (!e)
|
|
1848
|
+
return t;
|
|
1849
|
+
const n = e({ x: t.left, y: t.top }), s = e({ x: t.right, y: t.bottom });
|
|
1850
|
+
return {
|
|
1851
|
+
top: n.y,
|
|
1852
|
+
left: n.x,
|
|
1853
|
+
bottom: s.y,
|
|
1854
|
+
right: s.x
|
|
1855
|
+
};
|
|
1856
|
+
}
|
|
1857
|
+
function Ui(t, e) {
|
|
1858
|
+
return Wi($i(t.getBoundingClientRect(), e));
|
|
1859
|
+
}
|
|
1860
|
+
const ji = {};
|
|
1861
|
+
function Gi(t) {
|
|
1862
|
+
return t instanceof SVGElement && t.tagName !== "svg";
|
|
1863
|
+
}
|
|
1864
|
+
function Cn(t, e, n) {
|
|
1865
|
+
const s = R(t) ? t : ie(t);
|
|
1866
|
+
return s.start(Sn("", s, e, n)), s.animation;
|
|
1867
|
+
}
|
|
1868
|
+
const zi = typeof window < "u";
|
|
1869
|
+
function Fn(t) {
|
|
1870
|
+
return $n(t.animate) || We.some((e) => Bt(t[e]));
|
|
1871
|
+
}
|
|
1872
|
+
function qi(t) {
|
|
1873
|
+
return !!(Fn(t) || t.variants);
|
|
1874
|
+
}
|
|
1875
|
+
const Dt = {
|
|
1876
|
+
animation: [
|
|
1877
|
+
"animate",
|
|
1878
|
+
"variants",
|
|
1879
|
+
"whileHover",
|
|
1880
|
+
"whileTap",
|
|
1881
|
+
"exit",
|
|
1882
|
+
"whileInView",
|
|
1883
|
+
"whileFocus",
|
|
1884
|
+
"whileDrag"
|
|
1885
|
+
],
|
|
1886
|
+
exit: ["exit"],
|
|
1887
|
+
drag: ["drag", "dragControls"],
|
|
1888
|
+
focus: ["whileFocus"],
|
|
1889
|
+
hover: ["whileHover", "onHoverStart", "onHoverEnd"],
|
|
1890
|
+
tap: ["whileTap", "onTap", "onTapStart", "onTapCancel"],
|
|
1891
|
+
pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
|
|
1892
|
+
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
1893
|
+
layout: ["layout", "layoutId"]
|
|
1894
|
+
}, Be = {};
|
|
1895
|
+
for (const t in Dt)
|
|
1896
|
+
Be[t] = {
|
|
1897
|
+
isEnabled: (e) => Dt[t].some((n) => !!e[n])
|
|
1898
|
+
};
|
|
1899
|
+
function Pn(t, { style: e, vars: n }, s, i) {
|
|
1900
|
+
Object.assign(t.style, e, i && i.getProjectionStyles(s));
|
|
1901
|
+
for (const r in n)
|
|
1902
|
+
t.style.setProperty(r, n[r]);
|
|
1903
|
+
}
|
|
1904
|
+
const Rn = /* @__PURE__ */ new Set([
|
|
1905
|
+
"baseFrequency",
|
|
1906
|
+
"diffuseConstant",
|
|
1907
|
+
"kernelMatrix",
|
|
1908
|
+
"kernelUnitLength",
|
|
1909
|
+
"keySplines",
|
|
1910
|
+
"keyTimes",
|
|
1911
|
+
"limitingConeAngle",
|
|
1912
|
+
"markerHeight",
|
|
1913
|
+
"markerWidth",
|
|
1914
|
+
"numOctaves",
|
|
1915
|
+
"targetX",
|
|
1916
|
+
"targetY",
|
|
1917
|
+
"surfaceScale",
|
|
1918
|
+
"specularConstant",
|
|
1919
|
+
"specularExponent",
|
|
1920
|
+
"stdDeviation",
|
|
1921
|
+
"tableValues",
|
|
1922
|
+
"viewBox",
|
|
1923
|
+
"gradientTransform",
|
|
1924
|
+
"pathLength",
|
|
1925
|
+
"startOffset",
|
|
1926
|
+
"textLength",
|
|
1927
|
+
"lengthAdjust"
|
|
1928
|
+
]);
|
|
1929
|
+
function Yi(t, e, n, s) {
|
|
1930
|
+
Pn(t, e, void 0, s);
|
|
1931
|
+
for (const i in e.attrs)
|
|
1932
|
+
t.setAttribute(Rn.has(i) ? i : Ae(i), e.attrs[i]);
|
|
1933
|
+
}
|
|
1934
|
+
function Hi(t, { layout: e, layoutId: n }) {
|
|
1935
|
+
return L.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!ji[t] || t === "opacity");
|
|
1936
|
+
}
|
|
1937
|
+
function Dn(t, e, n) {
|
|
1938
|
+
var s;
|
|
1939
|
+
const { style: i } = t, r = {};
|
|
1940
|
+
for (const o in i)
|
|
1941
|
+
(R(i[o]) || e.style && R(e.style[o]) || Hi(o, t) || ((s = n == null ? void 0 : n.getValue(o)) === null || s === void 0 ? void 0 : s.liveStyle) !== void 0) && (r[o] = i[o]);
|
|
1942
|
+
return n && i && typeof i.willChange == "string" && (n.applyWillChange = !1), r;
|
|
1943
|
+
}
|
|
1944
|
+
function Xi(t, e, n) {
|
|
1945
|
+
const s = Dn(t, e, n);
|
|
1946
|
+
for (const i in t)
|
|
1947
|
+
if (R(t[i]) || R(e[i])) {
|
|
1948
|
+
const r = oe.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
|
|
1949
|
+
s[r] = t[i];
|
|
1950
|
+
}
|
|
1951
|
+
return s;
|
|
1952
|
+
}
|
|
1953
|
+
function Nt(t) {
|
|
1954
|
+
const e = kn(null);
|
|
1955
|
+
return e.current === null && (e.current = t()), e.current;
|
|
1956
|
+
}
|
|
1957
|
+
const Nn = (t, e) => e && typeof t == "number" ? e.transform(t) : t, Zi = {
|
|
1958
|
+
x: "translateX",
|
|
1959
|
+
y: "translateY",
|
|
1960
|
+
z: "translateZ",
|
|
1961
|
+
transformPerspective: "perspective"
|
|
1962
|
+
}, Qi = oe.length;
|
|
1963
|
+
function Ji(t, e, n) {
|
|
1964
|
+
let s = "", i = !0;
|
|
1965
|
+
for (let r = 0; r < Qi; r++) {
|
|
1966
|
+
const o = oe[r], l = t[o];
|
|
1967
|
+
if (l === void 0)
|
|
1968
|
+
continue;
|
|
1969
|
+
let a = !0;
|
|
1970
|
+
if (typeof l == "number" ? a = l === (o.startsWith("scale") ? 1 : 0) : a = parseFloat(l) === 0, !a || n) {
|
|
1971
|
+
const u = Nn(l, ze[o]);
|
|
1972
|
+
if (!a) {
|
|
1973
|
+
i = !1;
|
|
1974
|
+
const c = Zi[o] || o;
|
|
1975
|
+
s += `${c}(${u}) `;
|
|
1976
|
+
}
|
|
1977
|
+
n && (e[o] = u);
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
return s = s.trim(), n ? s = n(e, i ? "" : s) : i && (s = "none"), s;
|
|
1981
|
+
}
|
|
1982
|
+
function On(t, e, n) {
|
|
1983
|
+
const { style: s, vars: i, transformOrigin: r } = t;
|
|
1984
|
+
let o = !1, l = !1;
|
|
1985
|
+
for (const a in e) {
|
|
1986
|
+
const u = e[a];
|
|
1987
|
+
if (L.has(a)) {
|
|
1988
|
+
o = !0;
|
|
1989
|
+
continue;
|
|
1990
|
+
} else if (jt(a)) {
|
|
1991
|
+
i[a] = u;
|
|
1992
|
+
continue;
|
|
1993
|
+
} else {
|
|
1994
|
+
const c = Nn(u, ze[a]);
|
|
1995
|
+
a.startsWith("origin") ? (l = !0, r[a] = c) : s[a] = c;
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
if (e.transform || (o || n ? s.transform = Ji(e, t.transform, n) : s.transform && (s.transform = "none")), l) {
|
|
1999
|
+
const { originX: a = "50%", originY: u = "50%", originZ: c = 0 } = r;
|
|
2000
|
+
s.transformOrigin = `${a} ${u} ${c}`;
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
function Ot(t, e, n) {
|
|
2004
|
+
return typeof t == "string" ? t : p.transform(e + n * t);
|
|
2005
|
+
}
|
|
2006
|
+
function er(t, e, n) {
|
|
2007
|
+
const s = Ot(e, t.x, t.width), i = Ot(n, t.y, t.height);
|
|
2008
|
+
return `${s} ${i}`;
|
|
2009
|
+
}
|
|
2010
|
+
const tr = {
|
|
2011
|
+
offset: "stroke-dashoffset",
|
|
2012
|
+
array: "stroke-dasharray"
|
|
2013
|
+
}, nr = {
|
|
2014
|
+
offset: "strokeDashoffset",
|
|
2015
|
+
array: "strokeDasharray"
|
|
2016
|
+
};
|
|
2017
|
+
function sr(t, e, n = 1, s = 0, i = !0) {
|
|
2018
|
+
t.pathLength = 1;
|
|
2019
|
+
const r = i ? tr : nr;
|
|
2020
|
+
t[r.offset] = p.transform(-s);
|
|
2021
|
+
const o = p.transform(e), l = p.transform(n);
|
|
2022
|
+
t[r.array] = `${o} ${l}`;
|
|
2023
|
+
}
|
|
2024
|
+
function ir(t, {
|
|
2025
|
+
attrX: e,
|
|
2026
|
+
attrY: n,
|
|
2027
|
+
attrScale: s,
|
|
2028
|
+
originX: i,
|
|
2029
|
+
originY: r,
|
|
2030
|
+
pathLength: o,
|
|
2031
|
+
pathSpacing: l = 1,
|
|
2032
|
+
pathOffset: a = 0,
|
|
2033
|
+
// This is object creation, which we try to avoid per-frame.
|
|
2034
|
+
...u
|
|
2035
|
+
}, c, h) {
|
|
2036
|
+
if (On(t, u, h), c) {
|
|
2037
|
+
t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
|
|
2038
|
+
return;
|
|
2039
|
+
}
|
|
2040
|
+
t.attrs = t.style, t.style = {};
|
|
2041
|
+
const { attrs: f, style: d, dimensions: y } = t;
|
|
2042
|
+
f.transform && (y && (d.transform = f.transform), delete f.transform), y && (i !== void 0 || r !== void 0 || d.transform) && (d.transformOrigin = er(y, i !== void 0 ? i : 0.5, r !== void 0 ? r : 0.5)), e !== void 0 && (f.x = e), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), o !== void 0 && sr(f, o, l, a, !1);
|
|
2043
|
+
}
|
|
2044
|
+
const rr = (t) => typeof t == "string" && t.toLowerCase() === "svg", ke = { current: null }, _n = { current: !1 };
|
|
2045
|
+
function or() {
|
|
2046
|
+
if (_n.current = !0, !!zi)
|
|
2047
|
+
if (window.matchMedia) {
|
|
2048
|
+
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => ke.current = t.matches;
|
|
2049
|
+
t.addListener(e), e();
|
|
2050
|
+
} else
|
|
2051
|
+
ke.current = !1;
|
|
2052
|
+
}
|
|
2053
|
+
function ar(t, e, n) {
|
|
2054
|
+
for (const s in e) {
|
|
2055
|
+
const i = e[s], r = n[s];
|
|
2056
|
+
if (R(i))
|
|
2057
|
+
t.addValue(s, i), process.env.NODE_ENV === "development" && Le(i.version === "11.5.4", `Attempting to mix Framer Motion versions ${i.version} with 11.5.4 may not work as expected.`);
|
|
2058
|
+
else if (R(r))
|
|
2059
|
+
t.addValue(s, ie(i, { owner: t }));
|
|
2060
|
+
else if (r !== i)
|
|
2061
|
+
if (t.hasValue(s)) {
|
|
2062
|
+
const o = t.getValue(s);
|
|
2063
|
+
o.liveStyle === !0 ? o.jump(i) : o.hasAnimated || o.set(i);
|
|
2064
|
+
} else {
|
|
2065
|
+
const o = t.getStaticValue(s);
|
|
2066
|
+
t.addValue(s, ie(o !== void 0 ? o : i, { owner: t }));
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
for (const s in n)
|
|
2070
|
+
e[s] === void 0 && t.removeValue(s);
|
|
2071
|
+
return e;
|
|
2072
|
+
}
|
|
2073
|
+
const re = /* @__PURE__ */ new WeakMap(), lr = [...qt, C, X], ur = (t) => lr.find(zt(t)), _t = [
|
|
2074
|
+
"AnimationStart",
|
|
2075
|
+
"AnimationComplete",
|
|
2076
|
+
"Update",
|
|
2077
|
+
"BeforeLayoutMeasure",
|
|
2078
|
+
"LayoutMeasure",
|
|
2079
|
+
"LayoutAnimationStart",
|
|
2080
|
+
"LayoutAnimationComplete"
|
|
2081
|
+
], cr = We.length;
|
|
2082
|
+
class hr {
|
|
2083
|
+
/**
|
|
2084
|
+
* This method takes React props and returns found MotionValues. For example, HTML
|
|
2085
|
+
* MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
|
|
2086
|
+
*
|
|
2087
|
+
* This isn't an abstract method as it needs calling in the constructor, but it is
|
|
2088
|
+
* intended to be one.
|
|
2089
|
+
*/
|
|
2090
|
+
scrapeMotionValuesFromProps(e, n, s) {
|
|
2091
|
+
return {};
|
|
2092
|
+
}
|
|
2093
|
+
constructor({ parent: e, props: n, presenceContext: s, reducedMotionConfig: i, blockInitialAnimation: r, visualState: o }, l = {}) {
|
|
2094
|
+
this.applyWillChange = !1, this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = je, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
2095
|
+
this.isRenderScheduled = !1, this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
2096
|
+
}, this.isRenderScheduled = !1, this.scheduleRender = () => {
|
|
2097
|
+
this.isRenderScheduled || (this.isRenderScheduled = !0, _.render(this.render, !1, !0));
|
|
2098
|
+
};
|
|
2099
|
+
const { latestValues: a, renderState: u } = o;
|
|
2100
|
+
this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = n.initial ? { ...a } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = l, this.blockInitialAnimation = !!r, this.isControllingVariants = Fn(n), this.isVariantNode = qi(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
2101
|
+
const { willChange: c, ...h } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
2102
|
+
for (const f in h) {
|
|
2103
|
+
const d = h[f];
|
|
2104
|
+
a[f] !== void 0 && R(d) && d.set(a[f], !1);
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
mount(e) {
|
|
2108
|
+
this.current = e, re.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), _n.current || or(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : ke.current, process.env.NODE_ENV !== "production" && Le(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
2109
|
+
}
|
|
2110
|
+
unmount() {
|
|
2111
|
+
re.delete(this.current), this.projection && this.projection.unmount(), be(this.notifyUpdate), be(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
2112
|
+
for (const e in this.events)
|
|
2113
|
+
this.events[e].clear();
|
|
2114
|
+
for (const e in this.features) {
|
|
2115
|
+
const n = this.features[e];
|
|
2116
|
+
n && (n.unmount(), n.isMounted = !1);
|
|
2117
|
+
}
|
|
2118
|
+
this.current = null;
|
|
2119
|
+
}
|
|
2120
|
+
bindToMotionValue(e, n) {
|
|
2121
|
+
this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)();
|
|
2122
|
+
const s = L.has(e), i = n.on("change", (l) => {
|
|
2123
|
+
this.latestValues[e] = l, this.props.onUpdate && _.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0);
|
|
2124
|
+
}), r = n.on("renderRequest", this.scheduleRender);
|
|
2125
|
+
let o;
|
|
2126
|
+
window.MotionCheckAppearSync && (o = window.MotionCheckAppearSync(this, e, n)), this.valueSubscriptions.set(e, () => {
|
|
2127
|
+
i(), r(), o && o(), n.owner && n.stop();
|
|
2128
|
+
});
|
|
2129
|
+
}
|
|
2130
|
+
sortNodePosition(e) {
|
|
2131
|
+
return !this.current || !this.sortInstanceNodePosition || this.type !== e.type ? 0 : this.sortInstanceNodePosition(this.current, e.current);
|
|
2132
|
+
}
|
|
2133
|
+
updateFeatures() {
|
|
2134
|
+
let e = "animation";
|
|
2135
|
+
for (e in Be) {
|
|
2136
|
+
const n = Be[e];
|
|
2137
|
+
if (!n)
|
|
2138
|
+
continue;
|
|
2139
|
+
const { isEnabled: s, Feature: i } = n;
|
|
2140
|
+
if (!this.features[e] && i && s(this.props) && (this.features[e] = new i(this)), this.features[e]) {
|
|
2141
|
+
const r = this.features[e];
|
|
2142
|
+
r.isMounted ? r.update() : (r.mount(), r.isMounted = !0);
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
triggerBuild() {
|
|
2147
|
+
this.build(this.renderState, this.latestValues, this.props);
|
|
2148
|
+
}
|
|
2149
|
+
/**
|
|
2150
|
+
* Measure the current viewport box with or without transforms.
|
|
2151
|
+
* Only measures axis-aligned boxes, rotate and skew must be manually
|
|
2152
|
+
* removed with a re-render to work.
|
|
2153
|
+
*/
|
|
2154
|
+
measureViewportBox() {
|
|
2155
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Mn();
|
|
2156
|
+
}
|
|
2157
|
+
getStaticValue(e) {
|
|
2158
|
+
return this.latestValues[e];
|
|
2159
|
+
}
|
|
2160
|
+
setStaticValue(e, n) {
|
|
2161
|
+
this.latestValues[e] = n;
|
|
2162
|
+
}
|
|
2163
|
+
/**
|
|
2164
|
+
* Update the provided props. Ensure any newly-added motion values are
|
|
2165
|
+
* added to our map, old ones removed, and listeners updated.
|
|
2166
|
+
*/
|
|
2167
|
+
update(e, n) {
|
|
2168
|
+
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
|
|
2169
|
+
for (let s = 0; s < _t.length; s++) {
|
|
2170
|
+
const i = _t[s];
|
|
2171
|
+
this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);
|
|
2172
|
+
const r = "on" + i, o = e[r];
|
|
2173
|
+
o && (this.propEventSubscriptions[i] = this.on(i, o));
|
|
2174
|
+
}
|
|
2175
|
+
this.prevMotionValues = ar(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
|
|
2176
|
+
}
|
|
2177
|
+
getProps() {
|
|
2178
|
+
return this.props;
|
|
2179
|
+
}
|
|
2180
|
+
/**
|
|
2181
|
+
* Returns the variant definition with a given name.
|
|
2182
|
+
*/
|
|
2183
|
+
getVariant(e) {
|
|
2184
|
+
return this.props.variants ? this.props.variants[e] : void 0;
|
|
2185
|
+
}
|
|
2186
|
+
/**
|
|
2187
|
+
* Returns the defined default transition on this component.
|
|
2188
|
+
*/
|
|
2189
|
+
getDefaultTransition() {
|
|
2190
|
+
return this.props.transition;
|
|
2191
|
+
}
|
|
2192
|
+
getTransformPagePoint() {
|
|
2193
|
+
return this.props.transformPagePoint;
|
|
2194
|
+
}
|
|
2195
|
+
getClosestVariantNode() {
|
|
2196
|
+
return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;
|
|
2197
|
+
}
|
|
2198
|
+
getVariantContext(e = !1) {
|
|
2199
|
+
if (e)
|
|
2200
|
+
return this.parent ? this.parent.getVariantContext() : void 0;
|
|
2201
|
+
if (!this.isControllingVariants) {
|
|
2202
|
+
const s = this.parent ? this.parent.getVariantContext() || {} : {};
|
|
2203
|
+
return this.props.initial !== void 0 && (s.initial = this.props.initial), s;
|
|
2204
|
+
}
|
|
2205
|
+
const n = {};
|
|
2206
|
+
for (let s = 0; s < cr; s++) {
|
|
2207
|
+
const i = We[s], r = this.props[i];
|
|
2208
|
+
(Bt(r) || r === !1) && (n[i] = r);
|
|
2209
|
+
}
|
|
2210
|
+
return n;
|
|
2211
|
+
}
|
|
2212
|
+
/**
|
|
2213
|
+
* Add a child visual element to our set of children.
|
|
2214
|
+
*/
|
|
2215
|
+
addVariantChild(e) {
|
|
2216
|
+
const n = this.getClosestVariantNode();
|
|
2217
|
+
if (n)
|
|
2218
|
+
return n.variantChildren && n.variantChildren.add(e), () => n.variantChildren.delete(e);
|
|
2219
|
+
}
|
|
2220
|
+
/**
|
|
2221
|
+
* Add a motion value and bind it to this visual element.
|
|
2222
|
+
*/
|
|
2223
|
+
addValue(e, n) {
|
|
2224
|
+
const s = this.values.get(e);
|
|
2225
|
+
n !== s && (s && this.removeValue(e), this.bindToMotionValue(e, n), this.values.set(e, n), this.latestValues[e] = n.get());
|
|
2226
|
+
}
|
|
2227
|
+
/**
|
|
2228
|
+
* Remove a motion value and unbind any active subscriptions.
|
|
2229
|
+
*/
|
|
2230
|
+
removeValue(e) {
|
|
2231
|
+
this.values.delete(e);
|
|
2232
|
+
const n = this.valueSubscriptions.get(e);
|
|
2233
|
+
n && (n(), this.valueSubscriptions.delete(e)), delete this.latestValues[e], this.removeValueFromRenderState(e, this.renderState);
|
|
2234
|
+
}
|
|
2235
|
+
/**
|
|
2236
|
+
* Check whether we have a motion value for this key
|
|
2237
|
+
*/
|
|
2238
|
+
hasValue(e) {
|
|
2239
|
+
return this.values.has(e);
|
|
2240
|
+
}
|
|
2241
|
+
getValue(e, n) {
|
|
2242
|
+
if (this.props.values && this.props.values[e])
|
|
2243
|
+
return this.props.values[e];
|
|
2244
|
+
let s = this.values.get(e);
|
|
2245
|
+
return s === void 0 && n !== void 0 && (s = ie(n === null ? void 0 : n, { owner: this }), this.addValue(e, s)), s;
|
|
2246
|
+
}
|
|
2247
|
+
/**
|
|
2248
|
+
* If we're trying to animate to a previously unencountered value,
|
|
2249
|
+
* we need to check for it in our state and as a last resort read it
|
|
2250
|
+
* directly from the instance (which might have performance implications).
|
|
2251
|
+
*/
|
|
2252
|
+
readValue(e, n) {
|
|
2253
|
+
var s;
|
|
2254
|
+
let i = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (s = this.getBaseTargetFromProps(this.props, e)) !== null && s !== void 0 ? s : this.readValueFromInstance(this.current, e, this.options);
|
|
2255
|
+
return i != null && (typeof i == "string" && ($t(i) || Wt(i)) ? i = parseFloat(i) : !ur(i) && X.test(n) && (i = tn(e, n)), this.setBaseTarget(e, R(i) ? i.get() : i)), R(i) ? i.get() : i;
|
|
2256
|
+
}
|
|
2257
|
+
/**
|
|
2258
|
+
* Set the base target to later animate back to. This is currently
|
|
2259
|
+
* only hydrated on creation and when we first read a value.
|
|
2260
|
+
*/
|
|
2261
|
+
setBaseTarget(e, n) {
|
|
2262
|
+
this.baseTarget[e] = n;
|
|
2263
|
+
}
|
|
2264
|
+
/**
|
|
2265
|
+
* Find the base target for a value thats been removed from all animation
|
|
2266
|
+
* props.
|
|
2267
|
+
*/
|
|
2268
|
+
getBaseTarget(e) {
|
|
2269
|
+
var n;
|
|
2270
|
+
const { initial: s } = this.props;
|
|
2271
|
+
let i;
|
|
2272
|
+
if (typeof s == "string" || typeof s == "object") {
|
|
2273
|
+
const o = kt(this.props, s, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom);
|
|
2274
|
+
o && (i = o[e]);
|
|
2275
|
+
}
|
|
2276
|
+
if (s && i !== void 0)
|
|
2277
|
+
return i;
|
|
2278
|
+
const r = this.getBaseTargetFromProps(this.props, e);
|
|
2279
|
+
return r !== void 0 && !R(r) ? r : this.initialValues[e] !== void 0 && i === void 0 ? void 0 : this.baseTarget[e];
|
|
2280
|
+
}
|
|
2281
|
+
on(e, n) {
|
|
2282
|
+
return this.events[e] || (this.events[e] = new xn()), this.events[e].add(n);
|
|
2283
|
+
}
|
|
2284
|
+
notify(e, ...n) {
|
|
2285
|
+
this.events[e] && this.events[e].notify(...n);
|
|
2286
|
+
}
|
|
2287
|
+
}
|
|
2288
|
+
class In extends hr {
|
|
2289
|
+
constructor() {
|
|
2290
|
+
super(...arguments), this.KeyframeResolver = nn;
|
|
2291
|
+
}
|
|
2292
|
+
sortInstanceNodePosition(e, n) {
|
|
2293
|
+
return e.compareDocumentPosition(n) & 2 ? 1 : -1;
|
|
2294
|
+
}
|
|
2295
|
+
getBaseTargetFromProps(e, n) {
|
|
2296
|
+
return e.style ? e.style[n] : void 0;
|
|
2297
|
+
}
|
|
2298
|
+
removeValueFromRenderState(e, { vars: n, style: s }) {
|
|
2299
|
+
delete n[e], delete s[e];
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
function fr(t) {
|
|
2303
|
+
return window.getComputedStyle(t);
|
|
2304
|
+
}
|
|
2305
|
+
class dr extends In {
|
|
2306
|
+
constructor() {
|
|
2307
|
+
super(...arguments), this.type = "html", this.applyWillChange = !0, this.renderInstance = Pn;
|
|
2308
|
+
}
|
|
2309
|
+
readValueFromInstance(e, n) {
|
|
2310
|
+
if (L.has(n)) {
|
|
2311
|
+
const s = qe(n);
|
|
2312
|
+
return s && s.default || 0;
|
|
2313
|
+
} else {
|
|
2314
|
+
const s = fr(e), i = (jt(n) ? s.getPropertyValue(n) : s[n]) || 0;
|
|
2315
|
+
return typeof i == "string" ? i.trim() : i;
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
measureInstanceViewportBox(e, { transformPagePoint: n }) {
|
|
2319
|
+
return Ui(e, n);
|
|
2320
|
+
}
|
|
2321
|
+
build(e, n, s) {
|
|
2322
|
+
On(e, n, s.transformTemplate);
|
|
2323
|
+
}
|
|
2324
|
+
scrapeMotionValuesFromProps(e, n, s) {
|
|
2325
|
+
return Dn(e, n, s);
|
|
2326
|
+
}
|
|
2327
|
+
handleChildMotionValue() {
|
|
2328
|
+
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
|
|
2329
|
+
const { children: e } = this.props;
|
|
2330
|
+
R(e) && (this.childSubscription = e.on("change", (n) => {
|
|
2331
|
+
this.current && (this.current.textContent = `${n}`);
|
|
2332
|
+
}));
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
class pr extends In {
|
|
2336
|
+
constructor() {
|
|
2337
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Mn;
|
|
2338
|
+
}
|
|
2339
|
+
getBaseTargetFromProps(e, n) {
|
|
2340
|
+
return e[n];
|
|
2341
|
+
}
|
|
2342
|
+
readValueFromInstance(e, n) {
|
|
2343
|
+
if (L.has(n)) {
|
|
2344
|
+
const s = qe(n);
|
|
2345
|
+
return s && s.default || 0;
|
|
2346
|
+
}
|
|
2347
|
+
return n = Rn.has(n) ? n : Ae(n), e.getAttribute(n);
|
|
2348
|
+
}
|
|
2349
|
+
scrapeMotionValuesFromProps(e, n, s) {
|
|
2350
|
+
return Xi(e, n, s);
|
|
2351
|
+
}
|
|
2352
|
+
build(e, n, s) {
|
|
2353
|
+
ir(e, n, this.isSVGTag, s.transformTemplate);
|
|
2354
|
+
}
|
|
2355
|
+
renderInstance(e, n, s, i) {
|
|
2356
|
+
Yi(e, n, s, i);
|
|
2357
|
+
}
|
|
2358
|
+
mount(e) {
|
|
2359
|
+
this.isSVGTag = rr(e.tagName), super.mount(e);
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
function En(t, e, n) {
|
|
2363
|
+
var s;
|
|
2364
|
+
if (typeof t == "string") {
|
|
2365
|
+
let i = document;
|
|
2366
|
+
e && (k(!!e.current, "Scope provided, but no element detected."), i = e.current), n ? ((s = n[t]) !== null && s !== void 0 || (n[t] = i.querySelectorAll(t)), t = n[t]) : t = i.querySelectorAll(t);
|
|
2367
|
+
} else t instanceof Element && (t = [t]);
|
|
2368
|
+
return Array.from(t || []);
|
|
2369
|
+
}
|
|
2370
|
+
function mr(t) {
|
|
2371
|
+
return ye(() => () => t(), []);
|
|
2372
|
+
}
|
|
2373
|
+
function gr(t) {
|
|
2374
|
+
return typeof t == "object" && !Array.isArray(t);
|
|
2375
|
+
}
|
|
2376
|
+
function yr(t) {
|
|
2377
|
+
const e = {
|
|
2378
|
+
presenceContext: null,
|
|
2379
|
+
props: {},
|
|
2380
|
+
visualState: {
|
|
2381
|
+
renderState: {
|
|
2382
|
+
transform: {},
|
|
2383
|
+
transformOrigin: {},
|
|
2384
|
+
style: {},
|
|
2385
|
+
vars: {},
|
|
2386
|
+
attrs: {}
|
|
2387
|
+
},
|
|
2388
|
+
latestValues: {}
|
|
2389
|
+
}
|
|
2390
|
+
}, n = Gi(t) ? new pr(e) : new dr(e);
|
|
2391
|
+
n.mount(t), re.set(t, n);
|
|
2392
|
+
}
|
|
2393
|
+
function vr(t, e = 100) {
|
|
2394
|
+
const n = Ye({ keyframes: [0, e], ...t }), s = Math.min(vn(n), Ke);
|
|
2395
|
+
return {
|
|
2396
|
+
type: "keyframes",
|
|
2397
|
+
ease: (i) => n.next(s * i).value / e,
|
|
2398
|
+
duration: I(s)
|
|
2399
|
+
};
|
|
2400
|
+
}
|
|
2401
|
+
function It(t, e, n, s) {
|
|
2402
|
+
var i;
|
|
2403
|
+
return typeof e == "number" ? e : e.startsWith("-") || e.startsWith("+") ? Math.max(0, t + parseFloat(e)) : e === "<" ? n : (i = s.get(e)) !== null && i !== void 0 ? i : t;
|
|
2404
|
+
}
|
|
2405
|
+
const br = (t, e, n) => {
|
|
2406
|
+
const s = e - t;
|
|
2407
|
+
return ((n - t) % s + s) % s + t;
|
|
2408
|
+
};
|
|
2409
|
+
function Tr(t, e) {
|
|
2410
|
+
return cn(t) ? t[br(0, t.length, e)] : t;
|
|
2411
|
+
}
|
|
2412
|
+
function Vr(t, e, n) {
|
|
2413
|
+
for (let s = 0; s < t.length; s++) {
|
|
2414
|
+
const i = t[s];
|
|
2415
|
+
i.at > e && i.at < n && (st(t, i), s--);
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
function wr(t, e, n, s, i, r) {
|
|
2419
|
+
Vr(t, i, r);
|
|
2420
|
+
for (let o = 0; o < e.length; o++)
|
|
2421
|
+
t.push({
|
|
2422
|
+
value: e[o],
|
|
2423
|
+
at: he(i, r, s[o]),
|
|
2424
|
+
easing: Tr(n, o)
|
|
2425
|
+
});
|
|
2426
|
+
}
|
|
2427
|
+
function Sr(t, e) {
|
|
2428
|
+
return t.at === e.at ? t.value === null ? 1 : e.value === null ? -1 : 0 : t.at - e.at;
|
|
2429
|
+
}
|
|
2430
|
+
const xr = "easeInOut";
|
|
2431
|
+
function Ar(t, { defaultTransition: e = {}, ...n } = {}, s) {
|
|
2432
|
+
const i = e.duration || 0.3, r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = {}, a = /* @__PURE__ */ new Map();
|
|
2433
|
+
let u = 0, c = 0, h = 0;
|
|
2434
|
+
for (let f = 0; f < t.length; f++) {
|
|
2435
|
+
const d = t[f];
|
|
2436
|
+
if (typeof d == "string") {
|
|
2437
|
+
a.set(d, c);
|
|
2438
|
+
continue;
|
|
2439
|
+
} else if (!Array.isArray(d)) {
|
|
2440
|
+
a.set(d.name, It(c, d.at, u, a));
|
|
2441
|
+
continue;
|
|
2442
|
+
}
|
|
2443
|
+
let [y, v, b = {}] = d;
|
|
2444
|
+
b.at !== void 0 && (c = It(c, b.at, u, a));
|
|
2445
|
+
let m = 0;
|
|
2446
|
+
const S = (V, w, T, x = 0, F = 0) => {
|
|
2447
|
+
const g = Mr(V), { delay: P = 0, times: A = yn(g), type: fe = "keyframes", ...Me } = w;
|
|
2448
|
+
let { ease: de = e.ease || "easeOut", duration: N } = w;
|
|
2449
|
+
const Z = typeof P == "function" ? P(x, F) : P, D = g.length;
|
|
2450
|
+
if (D <= 2 && fe === "spring") {
|
|
2451
|
+
let ot = 100;
|
|
2452
|
+
if (D === 2 && Pr(g)) {
|
|
2453
|
+
const Bn = g[1] - g[0];
|
|
2454
|
+
ot = Math.abs(Bn);
|
|
2455
|
+
}
|
|
2456
|
+
const at = { ...Me };
|
|
2457
|
+
N !== void 0 && (at.duration = O(N));
|
|
2458
|
+
const lt = vr(at, ot);
|
|
2459
|
+
de = lt.ease, N = lt.duration;
|
|
2460
|
+
}
|
|
2461
|
+
N ?? (N = i);
|
|
2462
|
+
const pe = c + Z, it = pe + N;
|
|
2463
|
+
A.length === 1 && A[0] === 0 && (A[1] = 1);
|
|
2464
|
+
const rt = A.length - g.length;
|
|
2465
|
+
rt > 0 && gn(A, rt), g.length === 1 && g.unshift(null), wr(T, g, de, A, pe, it), m = Math.max(Z + N, m), h = Math.max(it, h);
|
|
2466
|
+
};
|
|
2467
|
+
if (R(y)) {
|
|
2468
|
+
const V = Et(y, o);
|
|
2469
|
+
S(v, b, Kt("default", V));
|
|
2470
|
+
} else {
|
|
2471
|
+
const V = En(y, s, l), w = V.length;
|
|
2472
|
+
for (let T = 0; T < w; T++) {
|
|
2473
|
+
v = v, b = b;
|
|
2474
|
+
const x = V[T], F = Et(x, o);
|
|
2475
|
+
for (const g in v)
|
|
2476
|
+
S(v[g], Cr(b, g), Kt(g, F), T, w);
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
u = c, c += m;
|
|
2480
|
+
}
|
|
2481
|
+
return o.forEach((f, d) => {
|
|
2482
|
+
for (const y in f) {
|
|
2483
|
+
const v = f[y];
|
|
2484
|
+
v.sort(Sr);
|
|
2485
|
+
const b = [], m = [], S = [];
|
|
2486
|
+
for (let w = 0; w < v.length; w++) {
|
|
2487
|
+
const { at: T, value: x, easing: F } = v[w];
|
|
2488
|
+
b.push(x), m.push(Qe(0, h, T)), S.push(F || "easeOut");
|
|
2489
|
+
}
|
|
2490
|
+
m[0] !== 0 && (m.unshift(0), b.unshift(b[0]), S.unshift(xr)), m[m.length - 1] !== 1 && (m.push(1), b.push(null)), r.has(d) || r.set(d, {
|
|
2491
|
+
keyframes: {},
|
|
2492
|
+
transition: {}
|
|
2493
|
+
});
|
|
2494
|
+
const V = r.get(d);
|
|
2495
|
+
V.keyframes[y] = b, V.transition[y] = {
|
|
2496
|
+
...e,
|
|
2497
|
+
duration: h,
|
|
2498
|
+
ease: S,
|
|
2499
|
+
times: m,
|
|
2500
|
+
...n
|
|
2501
|
+
};
|
|
2502
|
+
}
|
|
2503
|
+
}), r;
|
|
2504
|
+
}
|
|
2505
|
+
function Et(t, e) {
|
|
2506
|
+
return !e.has(t) && e.set(t, {}), e.get(t);
|
|
2507
|
+
}
|
|
2508
|
+
function Kt(t, e) {
|
|
2509
|
+
return e[t] || (e[t] = []), e[t];
|
|
2510
|
+
}
|
|
2511
|
+
function Mr(t) {
|
|
2512
|
+
return Array.isArray(t) ? t : [t];
|
|
2513
|
+
}
|
|
2514
|
+
function Cr(t, e) {
|
|
2515
|
+
return t[e] ? {
|
|
2516
|
+
...t,
|
|
2517
|
+
...t[e]
|
|
2518
|
+
} : { ...t };
|
|
2519
|
+
}
|
|
2520
|
+
const Fr = (t) => typeof t == "number", Pr = (t) => t.every(Fr);
|
|
2521
|
+
function Kn(t, e, n, s) {
|
|
2522
|
+
const i = En(t, s), r = i.length;
|
|
2523
|
+
k(!!r, "No valid element provided.");
|
|
2524
|
+
const o = [];
|
|
2525
|
+
for (let l = 0; l < r; l++) {
|
|
2526
|
+
const a = i[l];
|
|
2527
|
+
re.has(a) || yr(a);
|
|
2528
|
+
const u = re.get(a), c = { ...n };
|
|
2529
|
+
typeof c.delay == "function" && (c.delay = c.delay(l, r)), o.push(...Li(u, { ...e, transition: c }, {}));
|
|
2530
|
+
}
|
|
2531
|
+
return new nt(o);
|
|
2532
|
+
}
|
|
2533
|
+
const Rr = (t) => Array.isArray(t) && Array.isArray(t[0]);
|
|
2534
|
+
function Dr(t, e, n) {
|
|
2535
|
+
const s = [];
|
|
2536
|
+
return Ar(t, e, n).forEach(({ keyframes: r, transition: o }, l) => {
|
|
2537
|
+
let a;
|
|
2538
|
+
R(l) ? a = Cn(l, r.default, o.default) : a = Kn(l, r, o), s.push(a);
|
|
2539
|
+
}), new nt(s);
|
|
2540
|
+
}
|
|
2541
|
+
const Nr = (t) => {
|
|
2542
|
+
function e(n, s, i) {
|
|
2543
|
+
let r;
|
|
2544
|
+
return Rr(n) ? r = Dr(n, s, t) : gr(s) ? r = Kn(n, s, i, t) : r = Cn(n, s, i), t && t.animations.push(r), r;
|
|
2545
|
+
}
|
|
2546
|
+
return e;
|
|
2547
|
+
};
|
|
2548
|
+
function Or() {
|
|
2549
|
+
const t = Nt(() => ({
|
|
2550
|
+
current: null,
|
|
2551
|
+
// Will be hydrated by React
|
|
2552
|
+
animations: []
|
|
2553
|
+
})), e = Nt(() => Nr(t));
|
|
2554
|
+
return mr(() => {
|
|
2555
|
+
t.animations.forEach((n) => n.stop());
|
|
2556
|
+
}), [t, e];
|
|
2557
|
+
}
|
|
2558
|
+
var _r = /* @__PURE__ */ ((t) => (t.left = "left", t.right = "right", t))(_r || {}), Ir = /* @__PURE__ */ ((t) => (t.onwhite = "onwhite", t.onneutral = "onneutral", t.onblueberry = "onblueberry", t))(Ir || {});
|
|
2559
|
+
const jr = ({
|
|
2560
|
+
checked: t = !1,
|
|
2561
|
+
label: e,
|
|
2562
|
+
onChange: n,
|
|
2563
|
+
onColor: s = "onwhite",
|
|
2564
|
+
subLabel: i,
|
|
2565
|
+
togglePosition: r = "left",
|
|
2566
|
+
testId: o
|
|
2567
|
+
}) => {
|
|
2568
|
+
const [l, a] = ct(t), [u, c] = ct(!1), [h, f] = Or(), d = J(), y = J(), v = J(), b = J(), m = J(), { refObject: S, isHovered: V, isActive: w } = Wn(h), T = V && !u, x = s === "onwhite";
|
|
2569
|
+
ye(() => {
|
|
2570
|
+
if (u) {
|
|
2571
|
+
const D = setTimeout(() => c(!1), 300);
|
|
2572
|
+
return () => clearTimeout(D);
|
|
2573
|
+
}
|
|
2574
|
+
}, [u]), ye(() => {
|
|
2575
|
+
a(t);
|
|
2576
|
+
}, [t]), ye(() => {
|
|
2577
|
+
f("#" + y, { background: F() }, { duration: 0.2, ease: "easeInOut" }), f(
|
|
2578
|
+
"#" + v,
|
|
2579
|
+
{ background: l ? "var(--color-action-graphics-ondark)" : "var(--core-color-neutral-700)" },
|
|
2580
|
+
{ duration: 0.2, ease: "easeInOut" }
|
|
2581
|
+
), f("#" + v, { x: T ? 9 : l ? 18 : 0 }, { duration: 0.2, ease: "easeInOut" }), f("svg", { opacity: l ? 1 : 0 }, { duration: 0.2, ease: "easeInOut" });
|
|
2582
|
+
}, [l, T, w]);
|
|
2583
|
+
const F = () => l && w ? "var(--core-color-blueberry-800)" : l ? T ? "var(--color-action-graphics-onlight-hover)" : "var(--color-action-graphics-onlight)" : x && w ? "var(--core-color-neutral-400)" : x ? T ? "var(--core-color-neutral-200)" : "var(--core-color-neutral-50)" : w ? "var(--core-color-neutral-200)" : T ? "var(--core-color-neutral-50)" : "var(--core-color-white)", g = (D) => {
|
|
2584
|
+
a(D.target.checked), c(!0), n == null || n(D);
|
|
2585
|
+
}, P = W(M["toggle-container"]), A = W(M["toggle-container__row"], {
|
|
2586
|
+
[M["toggle-container__row--right"]]: r === "right"
|
|
2587
|
+
/* right */
|
|
2588
|
+
}), fe = W(M["toggle-container__sublabel"], {
|
|
2589
|
+
[M["toggle-container__sublabel--toggle-right"]]: r === "right"
|
|
2590
|
+
/* right */
|
|
2591
|
+
}), Me = W(M["toggle-container__toggle"], {
|
|
2592
|
+
[M["toggle-container__toggle--ignore-hover"]]: u,
|
|
2593
|
+
[M["toggle-container__toggle--on-white"]]: s === "onwhite"
|
|
2594
|
+
/* onwhite */
|
|
2595
|
+
}), de = W(M["toggle-container__toggle__dot"], {
|
|
2596
|
+
[M["toggle-container__toggle__dot--ignore-hover"]]: u
|
|
2597
|
+
}), N = () => /* @__PURE__ */ Q("label", { ref: S, className: M["toggle-container__toggle-group"], children: [
|
|
2598
|
+
/* @__PURE__ */ E(
|
|
2599
|
+
"input",
|
|
2600
|
+
{
|
|
2601
|
+
id: d,
|
|
2602
|
+
type: "checkbox",
|
|
2603
|
+
checked: l,
|
|
2604
|
+
onChange: g,
|
|
2605
|
+
className: M["toggle-container__input"],
|
|
2606
|
+
"aria-label": e.map((D) => D.text).join(" "),
|
|
2607
|
+
"aria-describedby": i ? m : void 0
|
|
2608
|
+
}
|
|
2609
|
+
),
|
|
2610
|
+
/* @__PURE__ */ E("span", { id: y, className: Me, "aria-hidden": "true", children: /* @__PURE__ */ E("span", { id: v, className: de, "aria-hidden": "true", children: /* @__PURE__ */ E(
|
|
2611
|
+
"svg",
|
|
2612
|
+
{
|
|
2613
|
+
width: "17",
|
|
2614
|
+
height: "13",
|
|
2615
|
+
viewBox: "0 0 17 13",
|
|
2616
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2617
|
+
className: M["toggle-container__toggle__dot__icon"],
|
|
2618
|
+
children: /* @__PURE__ */ E("path", { d: "M15 2L6.80839 10.548L2 5.53145", fill: "none", strokeWidth: "3" })
|
|
2619
|
+
}
|
|
2620
|
+
) }) })
|
|
2621
|
+
] }), Z = () => /* @__PURE__ */ E(
|
|
2622
|
+
"span",
|
|
2623
|
+
{
|
|
2624
|
+
id: b,
|
|
2625
|
+
className: W(M["toggle-container__label"], {
|
|
2626
|
+
[M["toggle-container__label--toggle-right"]]: r === "right"
|
|
2627
|
+
/* right */
|
|
2628
|
+
}),
|
|
2629
|
+
children: e.map((D) => {
|
|
2630
|
+
const pe = W({
|
|
2631
|
+
[M["toggle-container__label__text--semibold"]]: D.type === "semibold"
|
|
2632
|
+
});
|
|
2633
|
+
return /* @__PURE__ */ E("span", { className: pe, children: D.text }, b + D.text);
|
|
2634
|
+
})
|
|
2635
|
+
}
|
|
2636
|
+
);
|
|
2637
|
+
return /* @__PURE__ */ Q("div", { className: P, "data-testid": o, "data-analyticsid": Ln.Toggle, children: [
|
|
2638
|
+
/* @__PURE__ */ Q("div", { className: A, children: [
|
|
2639
|
+
r === "left" && /* @__PURE__ */ Q(ut, { children: [
|
|
2640
|
+
N(),
|
|
2641
|
+
Z()
|
|
2642
|
+
] }),
|
|
2643
|
+
r === "right" && /* @__PURE__ */ Q(ut, { children: [
|
|
2644
|
+
Z(),
|
|
2645
|
+
N()
|
|
2646
|
+
] })
|
|
2647
|
+
] }),
|
|
2648
|
+
i && /* @__PURE__ */ E("div", { id: m, className: fe, children: i })
|
|
2649
|
+
] });
|
|
2650
|
+
};
|
|
3
2651
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2652
|
+
Ir as ToggleOnColor,
|
|
2653
|
+
_r as TogglePosition,
|
|
2654
|
+
jr as default
|
|
7
2655
|
};
|
|
8
2656
|
//# sourceMappingURL=index.js.map
|