@helsenorge/designsystem-react 6.0.0-beta.9 → 6.0.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/CHANGELOG.md +251 -0
- package/components/AnchorLink/AnchorLink.js +7 -7
- package/components/AnchorLink/AnchorLink.js.map +1 -1
- package/components/AnchorLink/styles.module.scss +0 -11
- package/components/Avatar/Avatar.js.map +1 -1
- package/components/Badge/Badge.js +5 -5
- package/components/Badge/Badge.js.map +1 -1
- package/components/Button/Button.d.ts +2 -0
- package/components/Button/Button.d.ts.map +1 -1
- package/components/Button/Button.js +78 -72
- package/components/Button/Button.js.map +1 -1
- package/components/Button/styles.module.scss +30 -24
- package/components/Button/styles.module.scss.d.ts +2 -0
- package/components/ButtonWithModal/ButtonWithModal.js +6 -6
- package/components/ButtonWithModal/ButtonWithModal.js.map +1 -1
- package/components/Checkbox/Checkbox.js +9 -9
- package/components/Checkbox/Checkbox.js.map +1 -1
- package/components/Close/Close.d.ts +1 -1
- package/components/Close/Close.d.ts.map +1 -1
- package/components/Close/Close.js +9 -9
- package/components/Close/Close.js.map +1 -1
- package/components/DictionaryTrigger/DictionaryTrigger.js +12 -12
- package/components/DictionaryTrigger/DictionaryTrigger.js.map +1 -1
- package/components/Dropdown/Dropdown.js.map +1 -1
- package/components/Dropdown/styles.module.scss +2 -2
- package/components/Duolist/Duolist.js +7 -7
- package/components/Duolist/Duolist.js.map +1 -1
- package/components/EmptyState/EmptyState.d.ts +13 -0
- package/components/EmptyState/EmptyState.d.ts.map +1 -0
- package/components/EmptyState/EmptyState.js +10 -0
- package/components/EmptyState/EmptyState.js.map +1 -0
- package/components/EmptyState/NobodyHome.d.ts +4 -0
- package/components/EmptyState/NobodyHome.d.ts.map +1 -0
- package/components/EmptyState/NobodyHome.js +155 -0
- package/components/EmptyState/NobodyHome.js.map +1 -0
- package/components/EmptyState/index.d.ts +4 -0
- package/components/EmptyState/index.d.ts.map +1 -0
- package/components/EmptyState/index.js +5 -0
- package/components/EmptyState/index.js.map +1 -0
- package/components/EmptyState/styles.module.scss +26 -0
- package/components/EmptyState/styles.module.scss.d.ts +10 -0
- package/components/ErrorWrapper/ErrorWrapper.js +4 -4
- package/components/ErrorWrapper/ErrorWrapper.js.map +1 -1
- package/components/Expander/Expander.js +10 -10
- package/components/Expander/Expander.js.map +1 -1
- package/components/ExpanderHierarchy/Expander.js +8 -8
- package/components/ExpanderHierarchy/Expander.js.map +1 -1
- package/components/ExpanderHierarchy/ExpanderButton.js +7 -7
- package/components/ExpanderHierarchy/ExpanderButton.js.map +1 -1
- package/components/ExpanderHierarchy/ExpanderHierarchy.js +5 -5
- package/components/ExpanderHierarchy/ExpanderHierarchy.js.map +1 -1
- package/components/ExpanderList/ExpanderList.d.ts +0 -7
- package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
- package/components/ExpanderList/ExpanderList.js +102 -115
- package/components/ExpanderList/ExpanderList.js.map +1 -1
- package/components/FormExample/FormExample.js +5 -5
- package/components/FormExample/FormExample.js.map +1 -1
- package/components/FormGroup/FormGroup.js +4 -4
- package/components/FormGroup/FormGroup.js.map +1 -1
- package/components/FormGroup/styles.module.scss +3 -3
- package/components/FormLayout/FormLayout.js +4 -4
- package/components/FormLayout/FormLayout.js.map +1 -1
- package/components/GridExample/GridExample.js.map +1 -1
- package/components/HelpBubble/HelpBubble.js +14 -14
- package/components/HelpBubble/HelpBubble.js.map +1 -1
- package/components/HelpBubbleExample/HelpBubbleExample.js.map +1 -1
- package/components/HelpPanel/HelpPanel.js +2 -2
- package/components/HelpPanel/HelpPanel.js.map +1 -1
- package/components/HelpQuestion/HelpQuestion.js +8 -8
- package/components/HelpQuestion/HelpQuestion.js.map +1 -1
- package/components/HighlightBox/HighlightBox.js +3 -3
- package/components/HighlightBox/HighlightBox.js.map +1 -1
- package/components/HorizontalScroll/HorizontalScroll.d.ts +2 -1
- package/components/HorizontalScroll/HorizontalScroll.d.ts.map +1 -1
- package/components/HorizontalScroll/HorizontalScroll.js +39 -25
- package/components/HorizontalScroll/HorizontalScroll.js.map +1 -1
- package/components/HorizontalScroll/styles.module.scss +1 -2
- package/components/Icon/Icon.js +10 -10
- package/components/Icon/Icon.js.map +1 -1
- package/components/Icons/ActiveMonitoring.js +3 -3
- package/components/Icons/ActiveMonitoring.js.map +1 -1
- package/components/Icons/AcupunctureBack.js +2 -2
- package/components/Icons/AcupunctureBack.js.map +1 -1
- package/components/Icons/AdditionalIconInformation.d.ts +44 -0
- package/components/Icons/AdditionalIconInformation.d.ts.map +1 -1
- package/components/Icons/AdditionalIconInformation.js +12 -1
- package/components/Icons/AdditionalIconInformation.js.map +1 -1
- package/components/Icons/AlarmClock.js.map +1 -1
- package/components/Icons/AlertSignFill.js.map +1 -1
- package/components/Icons/AlertSignStroke.js +2 -2
- package/components/Icons/AlertSignStroke.js.map +1 -1
- package/components/Icons/Amputation.js.map +1 -1
- package/components/Icons/Anxiety.js.map +1 -1
- package/components/Icons/Apple.js.map +1 -1
- package/components/Icons/Archive.js.map +1 -1
- package/components/Icons/ArmFlexing.js +3 -3
- package/components/Icons/ArmFlexing.js.map +1 -1
- package/components/Icons/ArrowDown.js +2 -2
- package/components/Icons/ArrowDown.js.map +1 -1
- package/components/Icons/ArrowLeft.js.map +1 -1
- package/components/Icons/ArrowRight.js.map +1 -1
- package/components/Icons/ArrowUp.js +3 -3
- package/components/Icons/ArrowUp.js.map +1 -1
- package/components/Icons/ArrowUpRight.js.map +1 -1
- package/components/Icons/Attachment.js.map +1 -1
- package/components/Icons/Atv.js.map +1 -1
- package/components/Icons/Avatar.js.map +1 -1
- package/components/Icons/AwakePersonOnPillow.js.map +1 -1
- package/components/Icons/Baby.js.map +1 -1
- package/components/Icons/BandAid.js.map +1 -1
- package/components/Icons/BeerAndPills.js.map +1 -1
- package/components/Icons/Bell.js +2 -2
- package/components/Icons/Bell.js.map +1 -1
- package/components/Icons/Bike.js.map +1 -1
- package/components/Icons/BirthControl.js.map +1 -1
- package/components/Icons/BirthdayCake.js +2 -2
- package/components/Icons/BirthdayCake.js.map +1 -1
- package/components/Icons/Boat.js.map +1 -1
- package/components/Icons/Body.js.map +1 -1
- package/components/Icons/Braille.d.ts +5 -0
- package/components/Icons/Braille.d.ts.map +1 -0
- package/components/Icons/Braille.js +7 -0
- package/components/Icons/Braille.js.map +1 -0
- package/components/Icons/Brain.js +2 -2
- package/components/Icons/Brain.js.map +1 -1
- package/components/Icons/BreastReconstruction.js.map +1 -1
- package/components/Icons/BreastRemoval.js +2 -2
- package/components/Icons/BreastRemoval.js.map +1 -1
- package/components/Icons/Breasts.js.map +1 -1
- package/components/Icons/BrokenHeart.js +1 -1
- package/components/Icons/BrokenHeart.js.map +1 -1
- package/components/Icons/BrokenPuzzle.js +2 -2
- package/components/Icons/BrokenPuzzle.js.map +1 -1
- package/components/Icons/Bus.js.map +1 -1
- package/components/Icons/Calendar.js.map +1 -1
- package/components/Icons/CalendarChange.js.map +1 -1
- package/components/Icons/CalendarCheck.js.map +1 -1
- package/components/Icons/CalendarEvent.js +2 -2
- package/components/Icons/CalendarEvent.js.map +1 -1
- package/components/Icons/CalendarSave.js.map +1 -1
- package/components/Icons/Cancer.js.map +1 -1
- package/components/Icons/Candle.js +2 -2
- package/components/Icons/Candle.js.map +1 -1
- package/components/Icons/Car.js.map +1 -1
- package/components/Icons/Change.js.map +1 -1
- package/components/Icons/Check.js +2 -2
- package/components/Icons/Check.js.map +1 -1
- package/components/Icons/CheckFill.js +2 -2
- package/components/Icons/CheckFill.js.map +1 -1
- package/components/Icons/CheckOutline.js.map +1 -1
- package/components/Icons/Chest.js.map +1 -1
- package/components/Icons/ChevronDown.js.map +1 -1
- package/components/Icons/ChevronLeft.js +2 -2
- package/components/Icons/ChevronLeft.js.map +1 -1
- package/components/Icons/ChevronRight.js +2 -2
- package/components/Icons/ChevronRight.js.map +1 -1
- package/components/Icons/ChevronUp.js +2 -2
- package/components/Icons/ChevronUp.js.map +1 -1
- package/components/Icons/ChevronsDown.js.map +1 -1
- package/components/Icons/ChevronsUp.js +2 -2
- package/components/Icons/ChevronsUp.js.map +1 -1
- package/components/Icons/ChildPlaying.js.map +1 -1
- package/components/Icons/Cigarette.js +1 -1
- package/components/Icons/Cigarette.js.map +1 -1
- package/components/Icons/Coins.js.map +1 -1
- package/components/Icons/Contacts.js.map +1 -1
- package/components/Icons/Copy.js.map +1 -1
- package/components/Icons/CoronaCertificate.js.map +1 -1
- package/components/Icons/Coronavirus.js.map +1 -1
- package/components/Icons/Cough.js +2 -2
- package/components/Icons/Cough.js.map +1 -1
- package/components/Icons/CriticalHealthInfo.js.map +1 -1
- package/components/Icons/Cross.d.ts.map +1 -1
- package/components/Icons/Cross.js +1 -1
- package/components/Icons/Cross.js.map +1 -1
- package/components/Icons/DataExchange.js.map +1 -1
- package/components/Icons/DataReceived.js.map +1 -1
- package/components/Icons/DataSent.js.map +1 -1
- package/components/Icons/Depression.js.map +1 -1
- package/components/Icons/DigestiveSystem.js.map +1 -1
- package/components/Icons/Dizzy.js.map +1 -1
- package/components/Icons/Documents.js +2 -2
- package/components/Icons/Documents.js.map +1 -1
- package/components/Icons/Dog.js.map +1 -1
- package/components/Icons/DonorCard.js +2 -2
- package/components/Icons/DonorCard.js.map +1 -1
- package/components/Icons/Download.js.map +1 -1
- package/components/Icons/Draft.js.map +1 -1
- package/components/Icons/EChat.js.map +1 -1
- package/components/Icons/Ear.d.ts +5 -0
- package/components/Icons/Ear.d.ts.map +1 -0
- package/components/Icons/Ear.js +10 -0
- package/components/Icons/Ear.js.map +1 -0
- package/components/Icons/EarDeaf.d.ts +5 -0
- package/components/Icons/EarDeaf.d.ts.map +1 -0
- package/components/Icons/EarDeaf.js +7 -0
- package/components/Icons/EarDeaf.js.map +1 -0
- package/components/Icons/EarHearingAid.d.ts +5 -0
- package/components/Icons/EarHearingAid.d.ts.map +1 -0
- package/components/Icons/EarHearingAid.js +10 -0
- package/components/Icons/EarHearingAid.js.map +1 -0
- package/components/Icons/EarNoseThroat.js.map +1 -1
- package/components/Icons/EarVolume.d.ts +5 -0
- package/components/Icons/EarVolume.d.ts.map +1 -0
- package/components/Icons/EarVolume.js +17 -0
- package/components/Icons/EarVolume.js.map +1 -0
- package/components/Icons/ElderlyPerson.js.map +1 -1
- package/components/Icons/Embolization.js.map +1 -1
- package/components/Icons/EmergencyCall.d.ts +5 -0
- package/components/Icons/EmergencyCall.d.ts.map +1 -0
- package/components/Icons/EmergencyCall.js +21 -0
- package/components/Icons/EmergencyCall.js.map +1 -0
- package/components/Icons/EmoticonAnnoyed.js.map +1 -1
- package/components/Icons/EmoticonDelighted.js.map +1 -1
- package/components/Icons/EmoticonDisappointed.js +2 -2
- package/components/Icons/EmoticonDisappointed.js.map +1 -1
- package/components/Icons/EmoticonHappy.js +2 -2
- package/components/Icons/EmoticonHappy.js.map +1 -1
- package/components/Icons/EmoticonMeh.js +2 -2
- package/components/Icons/EmoticonMeh.js.map +1 -1
- package/components/Icons/EnterFullScreen.js.map +1 -1
- package/components/Icons/Envelope.js.map +1 -1
- package/components/Icons/Epilepsy.js +2 -2
- package/components/Icons/Epilepsy.js.map +1 -1
- package/components/Icons/Eraser.js.map +1 -1
- package/components/Icons/ErrorSignFill.js.map +1 -1
- package/components/Icons/ErrorSignStroke.js +2 -2
- package/components/Icons/ErrorSignStroke.js.map +1 -1
- package/components/Icons/EuropeanHealthCard.js.map +1 -1
- package/components/Icons/ExitFullScreen.js.map +1 -1
- package/components/Icons/Eye.d.ts.map +1 -1
- package/components/Icons/Eye.js +17 -3
- package/components/Icons/Eye.js.map +1 -1
- package/components/Icons/Facebook.js +2 -2
- package/components/Icons/Facebook.js.map +1 -1
- package/components/Icons/FallingLeaf.js.map +1 -1
- package/components/Icons/Female.js.map +1 -1
- package/components/Icons/FemaleDoctor.js.map +1 -1
- package/components/Icons/Ferry.js.map +1 -1
- package/components/Icons/File.js +2 -2
- package/components/Icons/File.js.map +1 -1
- package/components/Icons/Filter.js +2 -2
- package/components/Icons/Filter.js.map +1 -1
- package/components/Icons/FingerBleed.js +2 -2
- package/components/Icons/FingerBleed.js.map +1 -1
- package/components/Icons/FirstAidKit.js.map +1 -1
- package/components/Icons/FloppyDisk.js.map +1 -1
- package/components/Icons/Football.js.map +1 -1
- package/components/Icons/Form.js +2 -2
- package/components/Icons/Form.js.map +1 -1
- package/components/Icons/Forward.js +2 -2
- package/components/Icons/Forward.js.map +1 -1
- package/components/Icons/Gallery.js.map +1 -1
- package/components/Icons/Garden.js +2 -2
- package/components/Icons/Garden.js.map +1 -1
- package/components/Icons/GasCan.js.map +1 -1
- package/components/Icons/GenderIdentity.js +2 -2
- package/components/Icons/GenderIdentity.js.map +1 -1
- package/components/Icons/Glasses.d.ts +5 -0
- package/components/Icons/Glasses.d.ts.map +1 -0
- package/components/Icons/Glasses.js +21 -0
- package/components/Icons/Glasses.js.map +1 -0
- package/components/Icons/Globe.js +2 -2
- package/components/Icons/Globe.js.map +1 -1
- package/components/Icons/Graph.js.map +1 -1
- package/components/Icons/Group.js.map +1 -1
- package/components/Icons/GroupTwins.js +2 -2
- package/components/Icons/GroupTwins.js.map +1 -1
- package/components/Icons/HTMLFile.d.ts +5 -0
- package/components/Icons/HTMLFile.d.ts.map +1 -0
- package/components/Icons/HTMLFile.js +10 -0
- package/components/Icons/HTMLFile.js.map +1 -0
- package/components/Icons/HandWaving.js.map +1 -1
- package/components/Icons/HandWithDisease.js.map +1 -1
- package/components/Icons/HandsAndHeart.js +2 -2
- package/components/Icons/HandsAndHeart.js.map +1 -1
- package/components/Icons/HealthClinic.js.map +1 -1
- package/components/Icons/HealthWarning.js.map +1 -1
- package/components/Icons/HealthcarePerson.js +4 -4
- package/components/Icons/HealthcarePerson.js.map +1 -1
- package/components/Icons/HealthcarePersonell.js.map +1 -1
- package/components/Icons/HearingProtection.d.ts +5 -0
- package/components/Icons/HearingProtection.d.ts.map +1 -0
- package/components/Icons/HearingProtection.js +24 -0
- package/components/Icons/HearingProtection.js.map +1 -0
- package/components/Icons/Heart.js +2 -2
- package/components/Icons/Heart.js.map +1 -1
- package/components/Icons/HeartHands.js.map +1 -1
- package/components/Icons/HelpSign.js +2 -2
- package/components/Icons/HelpSign.js.map +1 -1
- package/components/Icons/HelpingHand.js +2 -2
- package/components/Icons/HelpingHand.js.map +1 -1
- 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 +2 -2
- package/components/Icons/Hipprosthesis.js.map +1 -1
- package/components/Icons/History.js.map +1 -1
- package/components/Icons/HivAndAids.js +2 -2
- package/components/Icons/HivAndAids.js.map +1 -1
- package/components/Icons/Home.js.map +1 -1
- package/components/Icons/Hormone.js +2 -2
- package/components/Icons/Hormone.js.map +1 -1
- package/components/Icons/Hospital.js.map +1 -1
- package/components/Icons/Hourglass.js.map +1 -1
- package/components/Icons/IconNames.d.ts +1 -1
- package/components/Icons/IconNames.d.ts.map +1 -1
- package/components/Icons/IconNames.js +11 -0
- package/components/Icons/IconNames.js.map +1 -1
- package/components/Icons/ImgFile.js +2 -2
- package/components/Icons/ImgFile.js.map +1 -1
- package/components/Icons/Inbox.js.map +1 -1
- package/components/Icons/InfoSignFill.js +2 -2
- package/components/Icons/InfoSignFill.js.map +1 -1
- package/components/Icons/InfoSignStroke.js.map +1 -1
- package/components/Icons/Instagram.js.map +1 -1
- package/components/Icons/Intravenous.js.map +1 -1
- package/components/Icons/JointPain.js +1 -1
- package/components/Icons/JointPain.js.map +1 -1
- package/components/Icons/Journal.js.map +1 -1
- package/components/Icons/JpgFile.js +2 -2
- package/components/Icons/JpgFile.js.map +1 -1
- package/components/Icons/Kidney.js.map +1 -1
- package/components/Icons/KitchenScale.js +2 -2
- package/components/Icons/KitchenScale.js.map +1 -1
- package/components/Icons/Kjernejournal.js.map +1 -1
- package/components/Icons/Laboratory.js.map +1 -1
- package/components/Icons/LaptopBlog.js.map +1 -1
- package/components/Icons/LawBook.js +1 -1
- package/components/Icons/LawBook.js.map +1 -1
- package/components/Icons/LegalDocument.js.map +1 -1
- package/components/Icons/LightBulb.js.map +1 -1
- package/components/Icons/List.js +2 -2
- package/components/Icons/List.js.map +1 -1
- package/components/Icons/Location.js.map +1 -1
- package/components/Icons/Lock.js +1 -1
- package/components/Icons/Lock.js.map +1 -1
- package/components/Icons/Login.js.map +1 -1
- package/components/Icons/Logout.js +2 -2
- package/components/Icons/Logout.js.map +1 -1
- package/components/Icons/Lungs.js +1 -1
- package/components/Icons/Lungs.js.map +1 -1
- package/components/Icons/Makeup.js.map +1 -1
- package/components/Icons/MaleDoctor.js.map +1 -1
- package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
- package/components/Icons/MaleGenitalia.js.map +1 -1
- package/components/Icons/Medicine.js.map +1 -1
- package/components/Icons/MedicineWarning.js.map +1 -1
- package/components/Icons/MentalHealthAdult.js.map +1 -1
- package/components/Icons/MentalHealthChild.js.map +1 -1
- package/components/Icons/Menu.js +2 -2
- package/components/Icons/Menu.js.map +1 -1
- package/components/Icons/Microscope.js +1 -1
- package/components/Icons/Microscope.js.map +1 -1
- package/components/Icons/Minus.js.map +1 -1
- package/components/Icons/Mirror.js +2 -2
- package/components/Icons/Mirror.js.map +1 -1
- package/components/Icons/MobilePhone.js.map +1 -1
- package/components/Icons/MotherHoldingBaby.js.map +1 -1
- package/components/Icons/MuscleBack.js.map +1 -1
- package/components/Icons/MuscleLeg.js.map +1 -1
- package/components/Icons/Mushroom.js +2 -2
- package/components/Icons/Mushroom.js.map +1 -1
- package/components/Icons/Music.js.map +1 -1
- package/components/Icons/MusselsAndSalt.js.map +1 -1
- package/components/Icons/NoAccess.js +4 -4
- package/components/Icons/NoAccess.js.map +1 -1
- package/components/Icons/NoEye.d.ts.map +1 -1
- package/components/Icons/NoEye.js +17 -3
- package/components/Icons/NoEye.js.map +1 -1
- package/components/Icons/NoFilter.js.map +1 -1
- package/components/Icons/Notepad.js.map +1 -1
- package/components/Icons/Osteotomy.js +1 -1
- package/components/Icons/Osteotomy.js.map +1 -1
- package/components/Icons/PaintRoller.js +2 -2
- package/components/Icons/PaintRoller.js.map +1 -1
- package/components/Icons/PaperPlane.js.map +1 -1
- package/components/Icons/PatientAndPerson.js.map +1 -1
- package/components/Icons/Pause.js.map +1 -1
- package/components/Icons/PdfFile.js.map +1 -1
- package/components/Icons/Pencil.js.map +1 -1
- package/components/Icons/PeopleTalking.js.map +1 -1
- package/components/Icons/Peritonealdialysis.js.map +1 -1
- package/components/Icons/Person.js.map +1 -1
- package/components/Icons/PersonAndPatient.js.map +1 -1
- package/components/Icons/PersonCancel.js.map +1 -1
- package/components/Icons/PersonInXRayMachine.js.map +1 -1
- package/components/Icons/PersonOverweight.js.map +1 -1
- package/components/Icons/PersonRelaxing.js.map +1 -1
- package/components/Icons/PersonWithBrain.js.map +1 -1
- package/components/Icons/PersonWithBrokenArm.js.map +1 -1
- package/components/Icons/PersonWithCrutches.js.map +1 -1
- package/components/Icons/PersonWithJaw.js.map +1 -1
- package/components/Icons/PersonWithMagnifyingGlass.js +1 -1
- package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
- package/components/Icons/PersonWithSenses.js.map +1 -1
- package/components/Icons/PersonWorking.js.map +1 -1
- package/components/Icons/PersonalPlan.js.map +1 -1
- package/components/Icons/PizzaSlice.js +1 -1
- package/components/Icons/PizzaSlice.js.map +1 -1
- package/components/Icons/Plane.js.map +1 -1
- package/components/Icons/Plant.js.map +1 -1
- package/components/Icons/Play.js.map +1 -1
- package/components/Icons/PlusLarge.js.map +1 -1
- package/components/Icons/PlusSmall.js.map +1 -1
- package/components/Icons/PngFile.js +2 -2
- package/components/Icons/PngFile.js.map +1 -1
- package/components/Icons/Podcast.js +2 -2
- package/components/Icons/Podcast.js.map +1 -1
- package/components/Icons/PoisonInformation.js.map +1 -1
- package/components/Icons/Pregnant.js.map +1 -1
- package/components/Icons/Printer.js.map +1 -1
- package/components/Icons/Psychosis.js.map +1 -1
- package/components/Icons/Publication.js.map +1 -1
- package/components/Icons/Puzzle.js.map +1 -1
- package/components/Icons/QrCode.js.map +1 -1
- package/components/Icons/Quarrel.js +2 -2
- package/components/Icons/Quarrel.js.map +1 -1
- package/components/Icons/RadioTherapy.js +2 -2
- package/components/Icons/RadioTherapy.js.map +1 -1
- package/components/Icons/RadioactiveTreatment.js.map +1 -1
- package/components/Icons/Radioiodine.js.map +1 -1
- package/components/Icons/Receipt.js.map +1 -1
- package/components/Icons/Receptionist.js.map +1 -1
- package/components/Icons/Recovery.js +2 -2
- package/components/Icons/Recovery.js.map +1 -1
- package/components/Icons/Referral.js.map +1 -1
- package/components/Icons/Refresh.js.map +1 -1
- package/components/Icons/Refund.js.map +1 -1
- package/components/Icons/Reply.js.map +1 -1
- package/components/Icons/Rocket.js.map +1 -1
- package/components/Icons/RtfFile.js +2 -2
- package/components/Icons/RtfFile.js.map +1 -1
- package/components/Icons/STDs.js +2 -2
- package/components/Icons/STDs.js.map +1 -1
- package/components/Icons/Save.js.map +1 -1
- package/components/Icons/Scale.js.map +1 -1
- package/components/Icons/ScreenReader.d.ts +5 -0
- package/components/Icons/ScreenReader.d.ts.map +1 -0
- package/components/Icons/ScreenReader.js +38 -0
- package/components/Icons/ScreenReader.js.map +1 -0
- package/components/Icons/Search.js.map +1 -1
- package/components/Icons/SectionSign.js +1 -1
- package/components/Icons/SectionSign.js.map +1 -1
- package/components/Icons/Settings.js.map +1 -1
- package/components/Icons/Sexualorientation.js +2 -2
- package/components/Icons/Sexualorientation.js.map +1 -1
- package/components/Icons/ShakingHand.js.map +1 -1
- package/components/Icons/Share.js.map +1 -1
- package/components/Icons/Shield.js +2 -2
- package/components/Icons/Shield.js.map +1 -1
- package/components/Icons/ShuntOperation.js.map +1 -1
- package/components/Icons/Skeleton.js.map +1 -1
- package/components/Icons/Skin.js.map +1 -1
- package/components/Icons/Snake.js +2 -2
- package/components/Icons/Snake.js.map +1 -1
- package/components/Icons/Snapchat.js.map +1 -1
- package/components/Icons/SortDown.js +2 -2
- package/components/Icons/SortDown.js.map +1 -1
- package/components/Icons/SortUp.js +2 -2
- package/components/Icons/SortUp.js.map +1 -1
- 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 +2 -2
- package/components/Icons/Stopwatch.js.map +1 -1
- package/components/Icons/Sun.d.ts +5 -0
- package/components/Icons/Sun.d.ts.map +1 -0
- package/components/Icons/Sun.js +24 -0
- package/components/Icons/Sun.js.map +1 -0
- package/components/Icons/SupportingPerson.js.map +1 -1
- package/components/Icons/Surgery.js +1 -1
- package/components/Icons/Surgery.js.map +1 -1
- package/components/Icons/Syringe.js +3 -3
- package/components/Icons/Syringe.js.map +1 -1
- package/components/Icons/Taxi.js.map +1 -1
- package/components/Icons/TeddyBear.js +2 -2
- package/components/Icons/TeddyBear.js.map +1 -1
- package/components/Icons/Teenagers.js.map +1 -1
- package/components/Icons/ThinkingAboutBaby.js +2 -2
- package/components/Icons/ThinkingAboutBaby.js.map +1 -1
- package/components/Icons/Ticket.js.map +1 -1
- package/components/Icons/TimePassing.js.map +1 -1
- package/components/Icons/Tombstone.js.map +1 -1
- package/components/Icons/Toolbox.js.map +1 -1
- package/components/Icons/Tooth.js.map +1 -1
- package/components/Icons/TotalKneeProsthesis.js.map +1 -1
- package/components/Icons/Train.js.map +1 -1
- package/components/Icons/Transplantation.js.map +1 -1
- package/components/Icons/TrashCan.js.map +1 -1
- package/components/Icons/TravelRoute.js.map +1 -1
- package/components/Icons/TriangleX.js.map +1 -1
- package/components/Icons/Twitter.js.map +1 -1
- package/components/Icons/Undo.js +2 -2
- package/components/Icons/Undo.js.map +1 -1
- package/components/Icons/UniProsthesis.js +2 -2
- package/components/Icons/UniProsthesis.js.map +1 -1
- package/components/Icons/Upload.js.map +1 -1
- package/components/Icons/UserOrganization.js.map +1 -1
- package/components/Icons/Vaccine.js.map +1 -1
- package/components/Icons/VerticalDots.js.map +1 -1
- package/components/Icons/VideoCamera.js.map +1 -1
- package/components/Icons/VideoChat.js.map +1 -1
- package/components/Icons/Wallet.js.map +1 -1
- package/components/Icons/Watch.js.map +1 -1
- package/components/Icons/Website.js.map +1 -1
- package/components/Icons/Wheelchair.js +2 -2
- package/components/Icons/Wheelchair.js.map +1 -1
- package/components/Icons/WheelchairActive.js.map +1 -1
- package/components/Icons/Window.js +2 -2
- package/components/Icons/Window.js.map +1 -1
- 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 +2 -2
- package/components/Icons/X.js.map +1 -1
- package/components/Icons/XOutline.js +2 -2
- package/components/Icons/XOutline.js.map +1 -1
- package/components/Icons/XmlFile.js +2 -2
- package/components/Icons/XmlFile.js.map +1 -1
- package/components/Icons/YouTube.js +1 -1
- package/components/Icons/YouTube.js.map +1 -1
- package/components/Icons/Zoom.js.map +1 -1
- package/components/Illustration/Illustration.d.ts +6 -0
- package/components/Illustration/Illustration.d.ts.map +1 -0
- package/components/Illustration/index.d.ts +2 -0
- package/components/Illustration/index.d.ts.map +1 -0
- package/components/Illustration/index.js +2 -0
- package/components/Illustration/index.js.map +1 -0
- package/components/Input/Input.d.ts.map +1 -1
- package/components/Input/Input.js +65 -61
- package/components/Input/Input.js.map +1 -1
- package/components/Input/index.d.ts.map +1 -1
- package/components/Label/Label.js +36 -36
- package/components/Label/Label.js.map +1 -1
- package/components/Label/SubLabel.js +5 -5
- package/components/Label/SubLabel.js.map +1 -1
- package/components/Label/styles.module.scss +5 -0
- package/components/Label/styles.module.scss.d.ts +1 -0
- package/components/LazyIcon/LazyIcon.d.ts.map +1 -1
- package/components/LazyIcon/LazyIcon.js +16 -15
- package/components/LazyIcon/LazyIcon.js.map +1 -1
- package/components/LinkList/LinkList.d.ts +0 -4
- package/components/LinkList/LinkList.d.ts.map +1 -1
- package/components/LinkList/LinkList.js +8 -8
- package/components/LinkList/LinkList.js.map +1 -1
- package/components/List/List.js +2 -2
- package/components/List/List.js.map +1 -1
- package/components/ListHeader/ListHeader.js +12 -12
- package/components/ListHeader/ListHeader.js.map +1 -1
- package/components/ListHeader/ListHeaderText/ListHeaderText.js +6 -6
- package/components/ListHeader/ListHeaderText/ListHeaderText.js.map +1 -1
- package/components/Loader/Loader.js.map +1 -1
- package/components/Logo/Logo.js +2 -2
- package/components/Logo/Logo.js.map +1 -1
- package/components/MaxCharacters/MaxCharacters.js +6 -6
- package/components/MaxCharacters/MaxCharacters.js.map +1 -1
- package/components/Modal/Modal.js.map +1 -1
- package/components/NotificationPanel/DetailButton/DetailButton.js +5 -5
- package/components/NotificationPanel/DetailButton/DetailButton.js.map +1 -1
- package/components/NotificationPanel/NotificationPanel.d.ts.map +1 -1
- package/components/NotificationPanel/NotificationPanel.js +32 -31
- package/components/NotificationPanel/NotificationPanel.js.map +1 -1
- package/components/NotificationPanel/styles.module.scss +8 -0
- package/components/NotificationPanel/styles.module.scss.d.ts +1 -0
- package/components/Panel/Panel.d.ts +40 -40
- package/components/Panel/Panel.d.ts.map +1 -1
- package/components/Panel/Panel.js +167 -122
- package/components/Panel/Panel.js.map +1 -1
- package/components/Panel/styles.module.scss +137 -191
- package/components/Panel/styles.module.scss.d.ts +24 -31
- package/components/PanelList/PanelList.js +4 -4
- package/components/PanelList/PanelList.js.map +1 -1
- package/components/PopMenu/PopMenu.d.ts.map +1 -1
- package/components/PopMenu/PopMenu.js +58 -56
- package/components/PopMenu/PopMenu.js.map +1 -1
- package/components/PopOver/PopOver.js +8 -8
- package/components/PopOver/PopOver.js.map +1 -1
- package/components/Portal/index.js +3 -3
- package/components/PromoPanel/PromoPanel.d.ts +33 -0
- package/components/PromoPanel/PromoPanel.d.ts.map +1 -0
- package/components/PromoPanel/PromoPanel.js +42 -0
- package/components/PromoPanel/PromoPanel.js.map +1 -0
- package/components/PromoPanel/index.d.ts +4 -0
- package/components/PromoPanel/index.d.ts.map +1 -0
- package/components/PromoPanel/index.js +5 -0
- package/components/PromoPanel/index.js.map +1 -0
- package/components/PromoPanel/styles.module.scss +115 -0
- package/components/PromoPanel/styles.module.scss.d.ts +16 -0
- package/components/RadioButton/RadioButton.js +13 -13
- package/components/RadioButton/RadioButton.js.map +1 -1
- package/components/RadioButton/styles.module.scss +2 -2
- package/components/Select/Select.js +10 -10
- package/components/Select/Select.js.map +1 -1
- package/components/ServiceMessage/ServiceMessage.d.ts +0 -5
- package/components/ServiceMessage/ServiceMessage.d.ts.map +1 -1
- package/components/ServiceMessage/ServiceMessage.js +12 -12
- package/components/ServiceMessage/ServiceMessage.js.map +1 -1
- package/components/SharingStatus/SharingStatus.d.ts +21 -0
- package/components/SharingStatus/SharingStatus.d.ts.map +1 -0
- package/components/SharingStatus/SharingStatus.js +16 -0
- package/components/SharingStatus/SharingStatus.js.map +1 -0
- package/components/SharingStatus/index.d.ts +4 -0
- package/components/SharingStatus/index.d.ts.map +1 -0
- package/components/SharingStatus/index.js +5 -0
- package/components/SharingStatus/index.js.map +1 -0
- package/components/SharingStatus/styles.module.scss +74 -0
- package/components/SharingStatus/styles.module.scss.d.ts +22 -0
- package/components/Slider/Slider.d.ts +12 -0
- package/components/Slider/Slider.d.ts.map +1 -1
- package/components/Slider/Slider.js +124 -84
- package/components/Slider/Slider.js.map +1 -1
- package/components/Slider/styles.module.scss +51 -8
- package/components/Slider/styles.module.scss.d.ts +7 -0
- package/components/Spacer/Spacer.js.map +1 -1
- package/components/StatusDot/StatusDot.js.map +1 -1
- package/components/StatusDot/styles.module.scss +12 -3
- package/components/Step/Step.js +7 -7
- package/components/Step/Step.js.map +1 -1
- package/components/StepButtons/StepButtons.js.map +1 -1
- package/components/Stepper/Dot.js +8 -8
- package/components/Stepper/DotList.js +1 -1
- package/components/Stepper/DotList.js.map +1 -1
- package/components/Stepper/Stepper.js +8 -8
- package/components/Stepper/Stepper.js.map +1 -1
- package/components/Table/Table.d.ts +4 -0
- package/components/Table/Table.d.ts.map +1 -1
- package/components/Table/Table.js +30 -28
- package/components/Table/Table.js.map +1 -1
- package/components/Table/TableBody/TableBody.js +5 -5
- package/components/Table/TableBody/TableBody.js.map +1 -1
- package/components/Table/TableCell/TableCell.js +5 -5
- package/components/Table/TableCell/TableCell.js.map +1 -1
- package/components/Table/TableExpandedRow/TableExpandedRow.js +8 -8
- package/components/Table/TableExpandedRow/TableExpandedRow.js.map +1 -1
- package/components/Table/TableExpanderCell/TableExpanderCell.js +17 -17
- package/components/Table/TableExpanderCell/TableExpanderCell.js.map +1 -1
- package/components/Table/TableExpanderCell/TableExpanderCellMobile.js +5 -5
- package/components/Table/TableExpanderCell/TableExpanderCellMobile.js.map +1 -1
- package/components/Table/TableHead/TableHead.js +2 -2
- package/components/Table/TableHead/TableHead.js.map +1 -1
- package/components/Table/TableHeadCell/TableHeadCell.d.ts.map +1 -1
- package/components/Table/TableHeadCell/TableHeadCell.js +21 -24
- package/components/Table/TableHeadCell/TableHeadCell.js.map +1 -1
- package/components/Table/TableRow/TableRow.js +8 -8
- package/components/Table/TableRow/TableRow.js.map +1 -1
- package/components/Table/styles.module.scss +0 -12
- package/components/Table/styles.module.scss.d.ts +0 -1
- package/components/Tag/Tag.js +7 -7
- package/components/Tag/Tag.js.map +1 -1
- package/components/TagList/TagList.js +2 -2
- package/components/TagList/TagList.js.map +1 -1
- package/components/Textarea/Textarea.d.ts.map +1 -1
- package/components/Textarea/Textarea.js +61 -57
- package/components/Textarea/Textarea.js.map +1 -1
- package/components/Tile/Tile.d.ts +1 -0
- package/components/Tile/Tile.d.ts.map +1 -1
- package/components/Tile/Tile.js +39 -25
- package/components/Tile/Tile.js.map +1 -1
- package/components/Tile/styles.module.scss +4 -0
- package/components/Tile/styles.module.scss.d.ts +1 -0
- package/components/Title/Title.js +7 -7
- package/components/Title/Title.js.map +1 -1
- package/components/Tooltip/Tooltip.js +17 -17
- package/components/Tooltip/Tooltip.js.map +1 -1
- package/components/Tooltip/TooltipWord/TooltipWord.js +5 -5
- package/components/Tooltip/TooltipWord/TooltipWord.js.map +1 -1
- package/components/TooltipExample/TooltipExample.js.map +1 -1
- package/components/Trigger/HelpSign.js.map +1 -1
- package/components/Trigger/Trigger.js +2 -2
- package/components/Trigger/Trigger.js.map +1 -1
- package/components/Validation/Validation.js.map +1 -1
- package/constants.d.ts +3 -0
- package/constants.d.ts.map +1 -1
- package/constants.js +5 -5
- package/constants.js.map +1 -1
- package/hoc/withBreakpoint/withBreakpoint.js +6 -6
- package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
- package/hooks/usePseudoClasses.d.ts.map +1 -1
- package/hooks/usePseudoClasses.js +11 -11
- package/hooks/usePseudoClasses.js.map +1 -1
- package/package.json +1 -1
- package/scss/_font-settings.scss +2 -0
- package/scss/_palette.scss +2 -1
- package/scss/_title.scss +13 -0
- package/scss/typography.module.scss +1 -8
- package/utils/component.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,254 @@
|
|
|
1
|
+
## [6.0.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.13.0&targetVersion=GTv6.0.0) (2024-01-26)
|
|
2
|
+
|
|
3
|
+
## 6.0.0-beta.14 (2024-01-24)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- lagt til ikonsøk i ikonwall story ([26b0446](https://github.com/helsenorge/designsystem/commit/26b044688c29a530c5605c1d938d208c8adc9e0c)),
|
|
8
|
+
closes [#311212](https://github.com/helsenorge/designsystem/issues/311212)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
- datepicker styling feil og validering tweak
|
|
13
|
+
([7bbdaa8](https://github.com/helsenorge/designsystem/commit/7bbdaa8e933d9ebbcc48d11647b3a8d6033502e9)), closes
|
|
14
|
+
[#316824](https://github.com/helsenorge/designsystem/issues/316824)
|
|
15
|
+
- lange ord i dropdown havner på ny linje
|
|
16
|
+
([a69ab16](https://github.com/helsenorge/designsystem/commit/a69ab167e99e2e408d6168ef710f9e8aa4f7615a)), closes
|
|
17
|
+
[#313017](https://github.com/helsenorge/designsystem/issues/313017)
|
|
18
|
+
|
|
19
|
+
## 6.0.0-beta.13 (2024-01-08)
|
|
20
|
+
|
|
21
|
+
## 6.0.0-beta.12 (2024-01-08)
|
|
22
|
+
|
|
23
|
+
## 6.0.0-beta.11 (2024-01-08)
|
|
24
|
+
|
|
25
|
+
## 6.0.0-beta.10 (2023-11-22)
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
- iconwall med alle ikoner og siste master merge
|
|
30
|
+
([8007aec](https://github.com/helsenorge/designsystem/commit/8007aec989f53a4dc23d712852fcbc0e1adf0d7e)), closes
|
|
31
|
+
[#312799](https://github.com/helsenorge/designsystem/issues/312799)
|
|
32
|
+
|
|
33
|
+
## 6.0.0-beta.9 (2023-11-13)
|
|
34
|
+
|
|
35
|
+
## 6.0.0-beta.7 (2023-10-25)
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
|
|
39
|
+
- ikon-import ([c3d3ae1](https://github.com/helsenorge/designsystem/commit/c3d3ae18b3792918953f6f447500888b019f3444))
|
|
40
|
+
|
|
41
|
+
## 6.0.0-beta.6 (2023-10-24)
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
- typesikkerhet ved lazy loading av ikoner
|
|
46
|
+
([0d3f3fb](https://github.com/helsenorge/designsystem/commit/0d3f3fb734e503bd26429a8e84477bd53480dd93)), closes
|
|
47
|
+
[#301359](https://github.com/helsenorge/designsystem/issues/301359)
|
|
48
|
+
|
|
49
|
+
## 6.0.0-beta.5 (2023-10-24)
|
|
50
|
+
|
|
51
|
+
### ⚠ BREAKING CHANGES
|
|
52
|
+
|
|
53
|
+
- props endret fra variant til size. bigform er nå large. normal er nå medium.
|
|
54
|
+
|
|
55
|
+
### Reverts
|
|
56
|
+
|
|
57
|
+
- legg tilbake additionaliconinformation
|
|
58
|
+
([0b46b2c](https://github.com/helsenorge/designsystem/commit/0b46b2cbb029e9d85d021d477ef49bf24788c0d8))
|
|
59
|
+
|
|
60
|
+
### Code Refactoring
|
|
61
|
+
|
|
62
|
+
- formvariant heter nå formsize ([a8ef22c](https://github.com/helsenorge/designsystem/commit/a8ef22c9b4efdf063d4a861946f6407b60a5a580)),
|
|
63
|
+
closes [#305247](https://github.com/helsenorge/designsystem/issues/305247)
|
|
64
|
+
|
|
65
|
+
## 6.0.0-beta.4 (2023-10-23)
|
|
66
|
+
|
|
67
|
+
### Features
|
|
68
|
+
|
|
69
|
+
- komponenter støtter lazyicon ([0148ee6](https://github.com/helsenorge/designsystem/commit/0148ee6b3c72dedadbecb21105a729af1487a445)),
|
|
70
|
+
closes [#301359](https://github.com/helsenorge/designsystem/issues/301359)
|
|
71
|
+
|
|
72
|
+
## 6.0.0-beta.3 (2023-10-20)
|
|
73
|
+
|
|
74
|
+
### Bug Fixes
|
|
75
|
+
|
|
76
|
+
- lazy icons fallback tar like mye plass som ikon
|
|
77
|
+
([d5207c8](https://github.com/helsenorge/designsystem/commit/d5207c8f538cd8a111356af9e4913f29ed032f58)), closes
|
|
78
|
+
[#301359](https://github.com/helsenorge/designsystem/issues/301359)
|
|
79
|
+
|
|
80
|
+
## 6.0.0-beta.2 (2023-10-18)
|
|
81
|
+
|
|
82
|
+
## 6.0.0-beta.1 (2023-10-18)
|
|
83
|
+
|
|
84
|
+
## 6.0.0-beta.0 (2023-10-18)
|
|
85
|
+
|
|
86
|
+
### ⚠ BREAKING CHANGES
|
|
87
|
+
|
|
88
|
+
- Ikon-komponent er flyttet fra components/Icons/Icon til components/Icon/Icon
|
|
89
|
+
|
|
90
|
+
Ikonene ligger fortsatt i components/Icons, f.eks. components/Icons/Minus
|
|
91
|
+
|
|
92
|
+
Dette er fordi vi skal kunne dynamisk importere alt som ligger i Icons, så da bør det bare være ikoner der.
|
|
93
|
+
|
|
94
|
+
### Features
|
|
95
|
+
|
|
96
|
+
- lazy loading av ikoner ([f688e78](https://github.com/helsenorge/designsystem/commit/f688e78a955bb43a2efa92b72b208c582dbfdd1d)), closes
|
|
97
|
+
[#301359](https://github.com/helsenorge/designsystem/issues/301359)
|
|
98
|
+
|
|
99
|
+
## [5.13.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.12.0&targetVersion=GTv5.13.0) (2024-01-09)
|
|
100
|
+
|
|
101
|
+
### Features
|
|
102
|
+
|
|
103
|
+
- tile stotter react children ([161a49a](https://github.com/helsenorge/designsystem/commit/161a49ae1ec4ec165bcf565b870b1f608f8fe90c)),
|
|
104
|
+
closes [#310764](https://github.com/helsenorge/designsystem/issues/310764)
|
|
105
|
+
|
|
106
|
+
## [5.12.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.11.0&targetVersion=GTv5.12.0) (2024-01-04)
|
|
107
|
+
|
|
108
|
+
### Bug Fixes
|
|
109
|
+
|
|
110
|
+
- datepicker eksporterer funksjoner riktig
|
|
111
|
+
([46285e5](https://github.com/helsenorge/designsystem/commit/46285e5e4cacf0f1fa224fcaa42eb75b73ce24e1)), closes
|
|
112
|
+
[#315273](https://github.com/helsenorge/designsystem/issues/315273)
|
|
113
|
+
- justert fontstørrelse på legend i form
|
|
114
|
+
([afd858b](https://github.com/helsenorge/designsystem/commit/afd858b850330bb13d0dca6b11aae50f7e1cd17c)), closes
|
|
115
|
+
[#316149](https://github.com/helsenorge/designsystem/issues/316149)
|
|
116
|
+
- sentrere tekst på notificationpanel
|
|
117
|
+
([5188c22](https://github.com/helsenorge/designsystem/commit/5188c22bbdd920479655eab87dd19657b84ed27e)), closes
|
|
118
|
+
[#311338](https://github.com/helsenorge/designsystem/issues/311338)
|
|
119
|
+
|
|
120
|
+
## [5.11.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.10.0&targetVersion=GTv5.11.0) (2023-12-18)
|
|
121
|
+
|
|
122
|
+
### Bug Fixes
|
|
123
|
+
|
|
124
|
+
- justeringer på button ([927e486](https://github.com/helsenorge/designsystem/commit/927e486876be4cbe2bb6c9b6d022e032439a2a11)), closes
|
|
125
|
+
[#308138](https://github.com/helsenorge/designsystem/issues/308138)
|
|
126
|
+
- oppdatert metadata til ikoner ([3b3510b](https://github.com/helsenorge/designsystem/commit/3b3510bb19da59156adb077e15137eb855cb1722)),
|
|
127
|
+
closes [#316105](https://github.com/helsenorge/designsystem/issues/316105)
|
|
128
|
+
|
|
129
|
+
## [5.10.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.9.2&targetVersion=GTv5.10.0) (2023-12-13)
|
|
130
|
+
|
|
131
|
+
### Features
|
|
132
|
+
|
|
133
|
+
- button onblur lagt til ([e30e815](https://github.com/helsenorge/designsystem/commit/e30e8152dcac4341af0879e6b5379b6c992701b2)), closes
|
|
134
|
+
[#315943](https://github.com/helsenorge/designsystem/issues/315943)
|
|
135
|
+
|
|
136
|
+
### Bug Fixes
|
|
137
|
+
|
|
138
|
+
- input og textarea har ikke defaultValue som default
|
|
139
|
+
([2f0a39d](https://github.com/helsenorge/designsystem/commit/2f0a39da5a85558488fdb14280888ceb1a3f49ec)), closes
|
|
140
|
+
[#309847](https://github.com/helsenorge/designsystem/issues/309847)
|
|
141
|
+
|
|
142
|
+
## [5.9.2](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.9.1&targetVersion=GTv5.9.2) (2023-12-12)
|
|
143
|
+
|
|
144
|
+
### Bug Fixes
|
|
145
|
+
|
|
146
|
+
- slider forenklet emojirendring ([9df0d90](https://github.com/helsenorge/designsystem/commit/9df0d90e58c16f0609ce2c0de6c770f10420e7eb)),
|
|
147
|
+
closes [#313810](https://github.com/helsenorge/designsystem/issues/313810)
|
|
148
|
+
|
|
149
|
+
## [5.9.1](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.9.0&targetVersion=GTv5.9.1) (2023-12-11)
|
|
150
|
+
|
|
151
|
+
### Bug Fixes
|
|
152
|
+
|
|
153
|
+
- promopanel har position=relative ([360a762](https://github.com/helsenorge/designsystem/commit/360a762ec3ce63cfe870f6cd7300af9fb9b83a5e)),
|
|
154
|
+
closes [#315387](https://github.com/helsenorge/designsystem/issues/315387)
|
|
155
|
+
|
|
156
|
+
## [5.9.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.8.0&targetVersion=GTv5.9.0) (2023-12-11)
|
|
157
|
+
|
|
158
|
+
### Features
|
|
159
|
+
|
|
160
|
+
- promopanel ([a190968](https://github.com/helsenorge/designsystem/commit/a190968285e95e09c20590cbdf14799165affb30)), closes
|
|
161
|
+
[#315387](https://github.com/helsenorge/designsystem/issues/315387)
|
|
162
|
+
|
|
163
|
+
### Bug Fixes
|
|
164
|
+
|
|
165
|
+
- label kan og sendes inn til emoji ([6d5d680](https://github.com/helsenorge/designsystem/commit/6d5d680d31b0c797230f3539305659bc073ddb3a)),
|
|
166
|
+
closes [#310765](https://github.com/helsenorge/designsystem/issues/310765)
|
|
167
|
+
- tabellheader med sortering har ikke underline
|
|
168
|
+
([f191991](https://github.com/helsenorge/designsystem/commit/f191991cb9e3f32bda2df281b703833d12dfb5db)), closes
|
|
169
|
+
[#315407](https://github.com/helsenorge/designsystem/issues/315407)
|
|
170
|
+
|
|
171
|
+
## [5.8.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.7.0&targetVersion=GTv5.8.0) (2023-12-08)
|
|
172
|
+
|
|
173
|
+
### Features
|
|
174
|
+
|
|
175
|
+
- emptystate ([7e1d9a8](https://github.com/helsenorge/designsystem/commit/7e1d9a87a75009ebd7a5b313fbed946c905fdabc))
|
|
176
|
+
|
|
177
|
+
### Bug Fixes
|
|
178
|
+
|
|
179
|
+
- anchorlink har ikke hardkodet font-size/line-height
|
|
180
|
+
([687bac1](https://github.com/helsenorge/designsystem/commit/687bac112e20f8e5c09c5b99623401baf01d5bd4))
|
|
181
|
+
- slider aria fix for emoji og step labels
|
|
182
|
+
([1ca0c1e](https://github.com/helsenorge/designsystem/commit/1ca0c1e8b979357ec2544248a2c4657ed25509fe)), closes
|
|
183
|
+
[#313810](https://github.com/helsenorge/designsystem/issues/313810) [#310765](https://github.com/helsenorge/designsystem/issues/310765)
|
|
184
|
+
|
|
185
|
+
## [5.7.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.6.0&targetVersion=GTv5.7.0) (2023-12-08)
|
|
186
|
+
|
|
187
|
+
### Features
|
|
188
|
+
|
|
189
|
+
- tabell med horizontal scroll støtter aria-atributter
|
|
190
|
+
([5f0fb2c](https://github.com/helsenorge/designsystem/commit/5f0fb2cd1c86c7ee6348f3ddd144b823a10fe6be)), closes
|
|
191
|
+
[#314191](https://github.com/helsenorge/designsystem/issues/314191)
|
|
192
|
+
|
|
193
|
+
## [5.6.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.5.0&targetVersion=GTv5.6.0) (2023-12-07)
|
|
194
|
+
|
|
195
|
+
### Features
|
|
196
|
+
|
|
197
|
+
- legg til default tekst på sharingstatus
|
|
198
|
+
([8c8385d](https://github.com/helsenorge/designsystem/commit/8c8385da218e2c0213b95cab7cf97075d0207393)), closes
|
|
199
|
+
[#315571](https://github.com/helsenorge/designsystem/issues/315571)
|
|
200
|
+
|
|
201
|
+
### Bug Fixes
|
|
202
|
+
|
|
203
|
+
- defaultValue i input og textarea oppdaterer antall tegn
|
|
204
|
+
([5799a7d](https://github.com/helsenorge/designsystem/commit/5799a7d0ee39c789f0eb22b9569c962faa595ebb)), closes
|
|
205
|
+
[#309847](https://github.com/helsenorge/designsystem/issues/309847)
|
|
206
|
+
- tom tabell-celle i head er td, ikke th
|
|
207
|
+
([548f1bb](https://github.com/helsenorge/designsystem/commit/548f1bb5e28138fda3be750a2e3a00aab7ddba0a)), closes
|
|
208
|
+
[#313691](https://github.com/helsenorge/designsystem/issues/313691)
|
|
209
|
+
|
|
210
|
+
## [5.5.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.4.1&targetVersion=GTv5.5.0) (2023-12-05)
|
|
211
|
+
|
|
212
|
+
### Features
|
|
213
|
+
|
|
214
|
+
- datetimepickerwrapper får legend prop
|
|
215
|
+
([739df6c](https://github.com/helsenorge/designsystem/commit/739df6c35a31c2ad8cb2ee259cb0701540b68d7e))
|
|
216
|
+
- opprett ny komponent sharingstatus
|
|
217
|
+
([bd8fc70](https://github.com/helsenorge/designsystem/commit/bd8fc70397f2b58825f50f7bb391746faa5c59ee)), closes
|
|
218
|
+
[#312652](https://github.com/helsenorge/designsystem/issues/312652)
|
|
219
|
+
- slider ny funksjonalitet ([2e7a269](https://github.com/helsenorge/designsystem/commit/2e7a269af5422a710224504a418720b40c534840)), closes
|
|
220
|
+
[#310765](https://github.com/helsenorge/designsystem/issues/310765)
|
|
221
|
+
|
|
222
|
+
## [5.4.1](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.4.0&targetVersion=GTv5.4.1) (2023-11-24)
|
|
223
|
+
|
|
224
|
+
### Bug Fixes
|
|
225
|
+
|
|
226
|
+
- endret plassering på statusdot og at statusdot forblir rund
|
|
227
|
+
([562726f](https://github.com/helsenorge/designsystem/commit/562726ff8b186753b0f0dd98735b335603a2fcd3)), closes
|
|
228
|
+
[#311236](https://github.com/helsenorge/designsystem/issues/311236)
|
|
229
|
+
|
|
230
|
+
## [5.4.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.3.0&targetVersion=GTv5.4.0) (2023-11-21)
|
|
231
|
+
|
|
232
|
+
### Features
|
|
233
|
+
|
|
234
|
+
- lagt til nye ikoner ([924fc90](https://github.com/helsenorge/designsystem/commit/924fc903960165211519760412e1de3bb65b85de)), closes
|
|
235
|
+
[#312799](https://github.com/helsenorge/designsystem/issues/312799)
|
|
236
|
+
|
|
237
|
+
## [5.3.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.2.0&targetVersion=GTv5.3.0) (2023-11-17)
|
|
238
|
+
|
|
239
|
+
### Features
|
|
240
|
+
|
|
241
|
+
- panel refaktorering og contentHeader prop
|
|
242
|
+
([42b0a03](https://github.com/helsenorge/designsystem/commit/42b0a03fa1f7d28ca966f3105dcaded49bcd886d)), closes
|
|
243
|
+
[#304524](https://github.com/helsenorge/designsystem/issues/304524) [#304573](https://github.com/helsenorge/designsystem/issues/304573)
|
|
244
|
+
[#304575](https://github.com/helsenorge/designsystem/issues/304575) [#304590](https://github.com/helsenorge/designsystem/issues/304590)
|
|
245
|
+
|
|
246
|
+
### Bug Fixes
|
|
247
|
+
|
|
248
|
+
- popmenu knapp stopper event propagation
|
|
249
|
+
([baa56a1](https://github.com/helsenorge/designsystem/commit/baa56a1780c027db01989ff0cd9b14fce6faab99)), closes
|
|
250
|
+
[#313765](https://github.com/helsenorge/designsystem/issues/313765)
|
|
251
|
+
|
|
1
252
|
## [5.2.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv5.1.4&targetVersion=GTv5.2.0) (2023-11-02)
|
|
2
253
|
|
|
3
254
|
### Bug Fixes
|
|
@@ -4,21 +4,21 @@ import { AnalyticsId as y, IconSize as A } from "../../constants.js";
|
|
|
4
4
|
import { useHover as E } from "../../hooks/useHover.js";
|
|
5
5
|
import { getColor as m } from "../../theme/currys/color.js";
|
|
6
6
|
import { Icon as N } from "../Icon/Icon.js";
|
|
7
|
-
import
|
|
7
|
+
import _ from "../Icons/ArrowUpRight.js";
|
|
8
8
|
import r from "./styles.module.scss";
|
|
9
|
-
const
|
|
10
|
-
const { id: p, href:
|
|
9
|
+
const C = e.forwardRef((i, f) => {
|
|
10
|
+
const { id: p, href: d, children: h, className: u, target: o = "_self", htmlMarkup: t = "a", onClick: k, testId: b } = i, n = o === "_blank", { hoverRef: a, isHovered: g } = E(
|
|
11
11
|
f
|
|
12
12
|
), c = v(r.anchorlink, u), l = {
|
|
13
13
|
id: p,
|
|
14
14
|
"data-testid": b,
|
|
15
15
|
"data-analyticsid": y.AnchorLink,
|
|
16
16
|
onClick: k
|
|
17
|
-
}, s = () => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
17
|
+
}, s = () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, n && /* @__PURE__ */ e.createElement(
|
|
18
18
|
N,
|
|
19
19
|
{
|
|
20
20
|
className: r.anchorlink__icon,
|
|
21
|
-
svgIcon:
|
|
21
|
+
svgIcon: _,
|
|
22
22
|
color: m("blueberry", 600),
|
|
23
23
|
hoverColor: m("blueberry", 700),
|
|
24
24
|
size: A.XSmall,
|
|
@@ -28,7 +28,7 @@ const I = e.forwardRef((i, f) => {
|
|
|
28
28
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, t === "a" && /* @__PURE__ */ e.createElement(
|
|
29
29
|
"a",
|
|
30
30
|
{
|
|
31
|
-
href:
|
|
31
|
+
href: d,
|
|
32
32
|
target: o,
|
|
33
33
|
className: c,
|
|
34
34
|
rel: n ? "noopener noreferrer" : void 0,
|
|
@@ -46,7 +46,7 @@ const I = e.forwardRef((i, f) => {
|
|
|
46
46
|
},
|
|
47
47
|
/* @__PURE__ */ e.createElement("span", { className: c }, s())
|
|
48
48
|
));
|
|
49
|
-
}), H =
|
|
49
|
+
}), H = C;
|
|
50
50
|
export {
|
|
51
51
|
H as default
|
|
52
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnchorLink.js","sources":["../../../src/components/AnchorLink/AnchorLink.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { useHover } from '../../hooks/useHover';\nimport { getColor } from '../../theme/currys';\nimport Icon, { IconSize } from '../Icon';\nimport ArrowUpRight from '../Icons/ArrowUpRight';\n\nimport AnchorLinkStyles from './styles.module.scss';\n\nexport type AnchorLinkTargets = '_self' | '_blank' | '_parent';\n\nexport type AnchorLinkTags = 'a' | 'button';\n\ninterface AnchorLinkProps {\n /** Sets the content of the <a> tag */\n children: React.ReactNode;\n /** URL to link to */\n href?: string;\n /** Gives a unique id to the anchor-link :) */\n id?: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the target type of the <a> tag. _blank adds an arrow icon at the end of the link */\n target?: AnchorLinkTargets;\n /** HTML markup for anchor link. Default: a */\n htmlMarkup?: AnchorLinkTags;\n /** Function that is called when clicked */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent> | React.FormEvent<{}> | React.KeyboardEvent<HTMLUListElement> | null) => void;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst AnchorLink = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, AnchorLinkProps>((props, ref) => {\n const { id, href, children, className, target = '_self', htmlMarkup = 'a', onClick, testId } = props;\n const external = target === '_blank';\n const { hoverRef, isHovered } = useHover<HTMLButtonElement | HTMLAnchorElement>(\n ref as React.RefObject<HTMLButtonElement | HTMLAnchorElement>\n );\n const anchorClasses = classNames(AnchorLinkStyles.anchorlink, className);\n\n const commonProps = {\n id,\n ['data-testid']: testId,\n ['data-analyticsid']: AnalyticsId.AnchorLink,\n onClick,\n };\n\n const renderContent = () => (\n <>\n {children}\n {external && (\n <Icon\n className={AnchorLinkStyles.anchorlink__icon}\n svgIcon={ArrowUpRight}\n color={getColor('blueberry', 600)}\n hoverColor={getColor('blueberry', 700)}\n size={IconSize.XSmall}\n isHovered={isHovered}\n />\n )}\n </>\n );\n\n return (\n <>\n {htmlMarkup === 'a' && (\n <a\n href={href}\n target={target}\n className={anchorClasses}\n rel={external ? 'noopener noreferrer' : undefined}\n ref={hoverRef as React.RefObject<HTMLAnchorElement>}\n {...commonProps}\n >\n {renderContent()}\n </a>\n )}\n {htmlMarkup === 'button' && (\n <button\n type=\"button\"\n className={AnchorLinkStyles['anchorlink-wrapper']}\n ref={hoverRef as React.RefObject<HTMLButtonElement>}\n {...commonProps}\n >\n <span className={anchorClasses}>{renderContent()}</span>\n </button>\n )}\n </>\n );\n});\n\nexport default AnchorLink;\n"],"names":["AnchorLink","React","props","ref","id","href","children","className","target","htmlMarkup","onClick","testId","external","hoverRef","isHovered","useHover","anchorClasses","classNames","AnchorLinkStyles","commonProps","AnalyticsId","renderContent","Icon","ArrowUpRight","getColor","IconSize","AnchorLink$1"],"mappings":";;;;;;;;AAmCA,MAAMA,IAAaC,EAAM,WAAmE,CAACC,GAAOC,MAAQ;AACpG,QAAA,EAAE,IAAAC,GAAI,MAAAC,GAAM,UAAAC,GAAU,WAAAC,GAAW,QAAAC,IAAS,SAAS,YAAAC,IAAa,KAAK,SAAAC,GAAS,QAAAC,EAAA,IAAWT,GACzFU,IAAWJ,MAAW,UACtB,EAAE,UAAAK,GAAU,WAAAC,EAAA,IAAcC;AAAA,IAC9BZ;AAAA,EAAA,GAEIa,IAAgBC,EAAWC,EAAiB,YAAYX,CAAS,GAEjEY,IAAc;AAAA,IAClB,IAAAf;AAAA,IACC,eAAgBO;AAAA,IAChB,oBAAqBS,EAAY;AAAA,IAClC,SAAAV;AAAA,EAAA,GAGIW,IAAgB,
|
|
1
|
+
{"version":3,"file":"AnchorLink.js","sources":["../../../src/components/AnchorLink/AnchorLink.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { useHover } from '../../hooks/useHover';\nimport { getColor } from '../../theme/currys';\nimport Icon, { IconSize } from '../Icon';\nimport ArrowUpRight from '../Icons/ArrowUpRight';\n\nimport AnchorLinkStyles from './styles.module.scss';\n\nexport type AnchorLinkTargets = '_self' | '_blank' | '_parent';\n\nexport type AnchorLinkTags = 'a' | 'button';\n\ninterface AnchorLinkProps {\n /** Sets the content of the <a> tag */\n children: React.ReactNode;\n /** URL to link to */\n href?: string;\n /** Gives a unique id to the anchor-link :) */\n id?: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the target type of the <a> tag. _blank adds an arrow icon at the end of the link */\n target?: AnchorLinkTargets;\n /** HTML markup for anchor link. Default: a */\n htmlMarkup?: AnchorLinkTags;\n /** Function that is called when clicked */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent> | React.FormEvent<{}> | React.KeyboardEvent<HTMLUListElement> | null) => void;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst AnchorLink = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, AnchorLinkProps>((props, ref) => {\n const { id, href, children, className, target = '_self', htmlMarkup = 'a', onClick, testId } = props;\n const external = target === '_blank';\n const { hoverRef, isHovered } = useHover<HTMLButtonElement | HTMLAnchorElement>(\n ref as React.RefObject<HTMLButtonElement | HTMLAnchorElement>\n );\n const anchorClasses = classNames(AnchorLinkStyles.anchorlink, className);\n\n const commonProps = {\n id,\n ['data-testid']: testId,\n ['data-analyticsid']: AnalyticsId.AnchorLink,\n onClick,\n };\n\n const renderContent = () => (\n <>\n {children}\n {external && (\n <Icon\n className={AnchorLinkStyles.anchorlink__icon}\n svgIcon={ArrowUpRight}\n color={getColor('blueberry', 600)}\n hoverColor={getColor('blueberry', 700)}\n size={IconSize.XSmall}\n isHovered={isHovered}\n />\n )}\n </>\n );\n\n return (\n <>\n {htmlMarkup === 'a' && (\n <a\n href={href}\n target={target}\n className={anchorClasses}\n rel={external ? 'noopener noreferrer' : undefined}\n ref={hoverRef as React.RefObject<HTMLAnchorElement>}\n {...commonProps}\n >\n {renderContent()}\n </a>\n )}\n {htmlMarkup === 'button' && (\n <button\n type=\"button\"\n className={AnchorLinkStyles['anchorlink-wrapper']}\n ref={hoverRef as React.RefObject<HTMLButtonElement>}\n {...commonProps}\n >\n <span className={anchorClasses}>{renderContent()}</span>\n </button>\n )}\n </>\n );\n});\n\nexport default AnchorLink;\n"],"names":["AnchorLink","React","props","ref","id","href","children","className","target","htmlMarkup","onClick","testId","external","hoverRef","isHovered","useHover","anchorClasses","classNames","AnchorLinkStyles","commonProps","AnalyticsId","renderContent","Icon","ArrowUpRight","getColor","IconSize","AnchorLink$1"],"mappings":";;;;;;;;AAmCA,MAAMA,IAAaC,EAAM,WAAmE,CAACC,GAAOC,MAAQ;AACpG,QAAA,EAAE,IAAAC,GAAI,MAAAC,GAAM,UAAAC,GAAU,WAAAC,GAAW,QAAAC,IAAS,SAAS,YAAAC,IAAa,KAAK,SAAAC,GAAS,QAAAC,EAAA,IAAWT,GACzFU,IAAWJ,MAAW,UACtB,EAAE,UAAAK,GAAU,WAAAC,EAAA,IAAcC;AAAA,IAC9BZ;AAAA,EAAA,GAEIa,IAAgBC,EAAWC,EAAiB,YAAYX,CAAS,GAEjEY,IAAc;AAAA,IAClB,IAAAf;AAAA,IACC,eAAgBO;AAAA,IAChB,oBAAqBS,EAAY;AAAA,IAClC,SAAAV;AAAA,EAAA,GAGIW,IAAgB,MAEjBpB,gBAAAA,EAAA,cAAAA,EAAA,UAAA,MAAAK,GACAM,KACCX,gBAAAA,EAAA;AAAA,IAACqB;AAAA,IAAA;AAAA,MACC,WAAWJ,EAAiB;AAAA,MAC5B,SAASK;AAAA,MACT,OAAOC,EAAS,aAAa,GAAG;AAAA,MAChC,YAAYA,EAAS,aAAa,GAAG;AAAA,MACrC,MAAMC,EAAS;AAAA,MACf,WAAAX;AAAA,IAAA;AAAA,EAAA,CAGN;AAIA,SAAAb,gBAAAA,EAAA,cAAAA,EAAA,UAAA,MACGQ,MAAe,OACdR,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAAI;AAAA,MACA,QAAAG;AAAA,MACA,WAAWQ;AAAA,MACX,KAAKJ,IAAW,wBAAwB;AAAA,MACxC,KAAKC;AAAA,MACJ,GAAGM;AAAA,IAAA;AAAA,IAEHE,EAAc;AAAA,EAAA,GAGlBZ,MAAe,YACdR,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAWiB,EAAiB,oBAAoB;AAAA,MAChD,KAAKL;AAAA,MACJ,GAAGM;AAAA,IAAA;AAAA,IAEHlB,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAWe,EAAA,GAAgBK,GAAgB;AAAA,EAAA,CAGvD;AAEJ,CAAC,GAEDK,IAAe1B;"}
|
|
@@ -48,16 +48,6 @@ $focus-width: 0.15rem;
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
@mixin anchorlink-font {
|
|
52
|
-
font-size: 1.125rem;
|
|
53
|
-
line-height: 1.875rem;
|
|
54
|
-
font-weight: 400;
|
|
55
|
-
|
|
56
|
-
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
57
|
-
font-size: 1.25rem;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
51
|
@mixin anchorlink-icon {
|
|
62
52
|
&[target='_blank'] {
|
|
63
53
|
&::after {
|
|
@@ -73,7 +63,6 @@ $focus-width: 0.15rem;
|
|
|
73
63
|
|
|
74
64
|
.anchorlink {
|
|
75
65
|
@include anchorlink;
|
|
76
|
-
@include anchorlink-font;
|
|
77
66
|
}
|
|
78
67
|
|
|
79
68
|
.anchorlink-wrapper {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.js","sources":["../../../src/components/Avatar/Avatar.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { palette } from '../../theme/palette';\nimport Icon, { IconSize } from '../Icon';\nimport Check from '../Icons/Check';\n\nimport styles from './styles.module.scss';\n\nexport enum AvatarSize {\n xsmall = 'xsmall',\n small = 'small',\n}\n\nexport interface AvatarProps {\n /** Name to display in the avatar. Will be truncated to the first two characters. */\n children: string;\n /** Displays a check icon to indicated the selected state. */\n selected?: boolean;\n /** background and color will be determined on variant. */\n variant?: 'normal' | 'black';\n /** Avatar size. Default: small */\n size?: keyof typeof AvatarSize;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\nexport type AvatarType = React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLElement>>;\nconst Avatar: AvatarType = React.forwardRef(function AvatarForwardedRef(props: AvatarProps, ref: React.ForwardedRef<HTMLElement>) {\n const { children, className = '', selected = false, variant = 'normal', size = AvatarSize.small, testId } = props;\n const truncatedName = children.charAt(0).toLocaleUpperCase() + children.substring(1, 2);\n return (\n <span\n className={cn(\n styles.avatar,\n selected && styles['avatar--selected'],\n variant === 'black' && styles['avatar--black'],\n size === AvatarSize.xsmall && styles['avatar--xsmall'],\n size === AvatarSize.small && styles['avatar--small'],\n className\n )}\n ref={ref}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Avatar}\n >\n {selected ? (\n <Icon svgIcon={Check} size={IconSize.Small} color={variant === 'black' ? palette.neutral900 : palette.blueberry600} />\n ) : (\n truncatedName\n )}\n </span>\n );\n});\n\nexport default Avatar;\n"],"names":["AvatarSize","Avatar","React","props","ref","children","className","selected","variant","size","testId","truncatedName","cn","styles","AnalyticsId","Icon","Check","IconSize","palette","Avatar$1"],"mappings":";;;;;;;AAWY,IAAAA,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,QAAQ,SAFEA,IAAAA,KAAA,CAAA,CAAA;AAoBZ,MAAMC,IAAqBC,EAAM,WAAW,SAA4BC,GAAoBC,GAAsC;AAC1H,QAAA,EAAE,UAAAC,GAAU,WAAAC,IAAY,IAAI,UAAAC,IAAW,IAAO,SAAAC,IAAU,UAAU,MAAAC,IAAO,SAAkB,QAAAC,EAAA,IAAWP,GACtGQ,IAAgBN,EAAS,OAAO,CAAC,EAAE,kBAAsB,IAAAA,EAAS,UAAU,GAAG,CAAC;AAEpF,
|
|
1
|
+
{"version":3,"file":"Avatar.js","sources":["../../../src/components/Avatar/Avatar.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { palette } from '../../theme/palette';\nimport Icon, { IconSize } from '../Icon';\nimport Check from '../Icons/Check';\n\nimport styles from './styles.module.scss';\n\nexport enum AvatarSize {\n xsmall = 'xsmall',\n small = 'small',\n}\n\nexport interface AvatarProps {\n /** Name to display in the avatar. Will be truncated to the first two characters. */\n children: string;\n /** Displays a check icon to indicated the selected state. */\n selected?: boolean;\n /** background and color will be determined on variant. */\n variant?: 'normal' | 'black';\n /** Avatar size. Default: small */\n size?: keyof typeof AvatarSize;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\nexport type AvatarType = React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLElement>>;\nconst Avatar: AvatarType = React.forwardRef(function AvatarForwardedRef(props: AvatarProps, ref: React.ForwardedRef<HTMLElement>) {\n const { children, className = '', selected = false, variant = 'normal', size = AvatarSize.small, testId } = props;\n const truncatedName = children.charAt(0).toLocaleUpperCase() + children.substring(1, 2);\n return (\n <span\n className={cn(\n styles.avatar,\n selected && styles['avatar--selected'],\n variant === 'black' && styles['avatar--black'],\n size === AvatarSize.xsmall && styles['avatar--xsmall'],\n size === AvatarSize.small && styles['avatar--small'],\n className\n )}\n ref={ref}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Avatar}\n >\n {selected ? (\n <Icon svgIcon={Check} size={IconSize.Small} color={variant === 'black' ? palette.neutral900 : palette.blueberry600} />\n ) : (\n truncatedName\n )}\n </span>\n );\n});\n\nexport default Avatar;\n"],"names":["AvatarSize","Avatar","React","props","ref","children","className","selected","variant","size","testId","truncatedName","cn","styles","AnalyticsId","Icon","Check","IconSize","palette","Avatar$1"],"mappings":";;;;;;;AAWY,IAAAA,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,QAAQ,SAFEA,IAAAA,KAAA,CAAA,CAAA;AAoBZ,MAAMC,IAAqBC,EAAM,WAAW,SAA4BC,GAAoBC,GAAsC;AAC1H,QAAA,EAAE,UAAAC,GAAU,WAAAC,IAAY,IAAI,UAAAC,IAAW,IAAO,SAAAC,IAAU,UAAU,MAAAC,IAAO,SAAkB,QAAAC,EAAA,IAAWP,GACtGQ,IAAgBN,EAAS,OAAO,CAAC,EAAE,kBAAsB,IAAAA,EAAS,UAAU,GAAG,CAAC;AAEpF,SAAAH,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWU;AAAAA,QACTC,EAAO;AAAA,QACPN,KAAYM,EAAO,kBAAkB;AAAA,QACrCL,MAAY,WAAWK,EAAO,eAAe;AAAA,QAC7CJ,MAAS,YAAqBI,EAAO,gBAAgB;AAAA,QACrDJ,MAAS,WAAoBI,EAAO,eAAe;AAAA,QACnDP;AAAA,MACF;AAAA,MACA,KAAAF;AAAA,MACA,eAAaM;AAAA,MACb,oBAAkBI,EAAY;AAAA,IAAA;AAAA,IAE7BP,IACCL,gBAAAA,EAAA,cAACa,GAAK,EAAA,SAASC,GAAO,MAAMC,EAAS,OAAO,OAAOT,MAAY,UAAUU,EAAQ,aAAaA,EAAQ,aAAc,CAAA,IAEpHP;AAAA,EAAA;AAIR,CAAC,GAEDQ,IAAelB;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from "react";
|
|
2
2
|
import n from "classnames";
|
|
3
3
|
import { AnalyticsId as o } from "../../constants.js";
|
|
4
4
|
import a from "./styles.module.scss";
|
|
5
|
-
const i =
|
|
6
|
-
const { children:
|
|
5
|
+
const i = t.forwardRef(function(r, d) {
|
|
6
|
+
const { children: l, className: s = "", color: e = "black", testId: b } = r, c = n(
|
|
7
7
|
a.badge,
|
|
8
8
|
{
|
|
9
9
|
[a["badge--black"]]: e === "black",
|
|
@@ -15,9 +15,9 @@ const i = r.forwardRef(function(t, d) {
|
|
|
15
15
|
[a["badge--neutral"]]: e === "neutral",
|
|
16
16
|
[a["badge--plum"]]: e === "plum"
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
s
|
|
19
19
|
);
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ t.createElement("span", { className: c, ref: d, "data-testid": b, "data-analyticsid": o.Badge }, l);
|
|
21
21
|
}), y = i;
|
|
22
22
|
export {
|
|
23
23
|
y as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.js","sources":["../../../src/components/Badge/Badge.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { PaletteNames } from '../../theme/palette';\n\nimport badgeStyles from './styles.module.scss';\n\nexport type BadgeColors = PaletteNames;\nexport type BadgeChildren = string | number;\n\nexport interface BadgeProps {\n /** Sets the content of the badge. */\n children: BadgeChildren;\n /** Adds custom classes to the element. */\n className?: string;\n /** Changes the badge background color. */\n color?: BadgeColors;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\nexport type BadgeType = React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLElement>>;\nconst Badge: BadgeType = React.forwardRef(function BadgeForwardedRef(props: BadgeProps, ref: React.ForwardedRef<HTMLElement>) {\n const { children, className = '', color = 'black', testId } = props;\n const badgeClasses = classNames(\n badgeStyles.badge,\n {\n [badgeStyles['badge--black']]: color === 'black',\n [badgeStyles['badge--white']]: color === 'white',\n [badgeStyles['badge--blueberry']]: color === 'blueberry',\n [badgeStyles['badge--banana']]: color === 'banana',\n [badgeStyles['badge--cherry']]: color === 'cherry',\n [badgeStyles['badge--kiwi']]: color === 'kiwi',\n [badgeStyles['badge--neutral']]: color === 'neutral',\n [badgeStyles['badge--plum']]: color === 'plum',\n },\n className\n );\n\n return (\n <span className={badgeClasses} ref={ref} data-testid={testId} data-analyticsid={AnalyticsId.Badge}>\n {children}\n </span>\n );\n});\n\nexport default Badge;\n"],"names":["Badge","React","props","ref","children","className","color","testId","badgeClasses","classNames","badgeStyles","AnalyticsId","Badge$1"],"mappings":";;;;AAuBA,MAAMA,IAAmBC,EAAM,WAAW,SAA2BC,GAAmBC,GAAsC;AAC5H,QAAM,EAAE,UAAAC,GAAU,WAAAC,IAAY,IAAI,OAAAC,IAAQ,SAAS,QAAAC,EAAW,IAAAL,GACxDM,IAAeC;AAAA,IACnBC,EAAY;AAAA,IACZ;AAAA,MACE,CAACA,EAAY,cAAc,CAAC,GAAGJ,MAAU;AAAA,MACzC,CAACI,EAAY,cAAc,CAAC,GAAGJ,MAAU;AAAA,MACzC,CAACI,EAAY,kBAAkB,CAAC,GAAGJ,MAAU;AAAA,MAC7C,CAACI,EAAY,eAAe,CAAC,GAAGJ,MAAU;AAAA,MAC1C,CAACI,EAAY,eAAe,CAAC,GAAGJ,MAAU;AAAA,MAC1C,CAACI,EAAY,aAAa,CAAC,GAAGJ,MAAU;AAAA,MACxC,CAACI,EAAY,gBAAgB,CAAC,GAAGJ,MAAU;AAAA,MAC3C,CAACI,EAAY,aAAa,CAAC,GAAGJ,MAAU;AAAA,IAC1C;AAAA,IACAD;AAAA,EAAA;AAIA,
|
|
1
|
+
{"version":3,"file":"Badge.js","sources":["../../../src/components/Badge/Badge.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { PaletteNames } from '../../theme/palette';\n\nimport badgeStyles from './styles.module.scss';\n\nexport type BadgeColors = PaletteNames;\nexport type BadgeChildren = string | number;\n\nexport interface BadgeProps {\n /** Sets the content of the badge. */\n children: BadgeChildren;\n /** Adds custom classes to the element. */\n className?: string;\n /** Changes the badge background color. */\n color?: BadgeColors;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\nexport type BadgeType = React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLElement>>;\nconst Badge: BadgeType = React.forwardRef(function BadgeForwardedRef(props: BadgeProps, ref: React.ForwardedRef<HTMLElement>) {\n const { children, className = '', color = 'black', testId } = props;\n const badgeClasses = classNames(\n badgeStyles.badge,\n {\n [badgeStyles['badge--black']]: color === 'black',\n [badgeStyles['badge--white']]: color === 'white',\n [badgeStyles['badge--blueberry']]: color === 'blueberry',\n [badgeStyles['badge--banana']]: color === 'banana',\n [badgeStyles['badge--cherry']]: color === 'cherry',\n [badgeStyles['badge--kiwi']]: color === 'kiwi',\n [badgeStyles['badge--neutral']]: color === 'neutral',\n [badgeStyles['badge--plum']]: color === 'plum',\n },\n className\n );\n\n return (\n <span className={badgeClasses} ref={ref} data-testid={testId} data-analyticsid={AnalyticsId.Badge}>\n {children}\n </span>\n );\n});\n\nexport default Badge;\n"],"names":["Badge","React","props","ref","children","className","color","testId","badgeClasses","classNames","badgeStyles","AnalyticsId","Badge$1"],"mappings":";;;;AAuBA,MAAMA,IAAmBC,EAAM,WAAW,SAA2BC,GAAmBC,GAAsC;AAC5H,QAAM,EAAE,UAAAC,GAAU,WAAAC,IAAY,IAAI,OAAAC,IAAQ,SAAS,QAAAC,EAAW,IAAAL,GACxDM,IAAeC;AAAA,IACnBC,EAAY;AAAA,IACZ;AAAA,MACE,CAACA,EAAY,cAAc,CAAC,GAAGJ,MAAU;AAAA,MACzC,CAACI,EAAY,cAAc,CAAC,GAAGJ,MAAU;AAAA,MACzC,CAACI,EAAY,kBAAkB,CAAC,GAAGJ,MAAU;AAAA,MAC7C,CAACI,EAAY,eAAe,CAAC,GAAGJ,MAAU;AAAA,MAC1C,CAACI,EAAY,eAAe,CAAC,GAAGJ,MAAU;AAAA,MAC1C,CAACI,EAAY,aAAa,CAAC,GAAGJ,MAAU;AAAA,MACxC,CAACI,EAAY,gBAAgB,CAAC,GAAGJ,MAAU;AAAA,MAC3C,CAACI,EAAY,aAAa,CAAC,GAAGJ,MAAU;AAAA,IAC1C;AAAA,IACAD;AAAA,EAAA;AAIA,SAAAJ,gBAAAA,EAAA,cAAC,QAAK,EAAA,WAAWO,GAAc,KAAAL,GAAU,eAAaI,GAAQ,oBAAkBI,EAAY,MAAA,GACzFP,CACH;AAEJ,CAAC,GAEDQ,IAAeZ;"}
|
|
@@ -28,6 +28,8 @@ export interface ButtonProps extends HTMLButtonProps, HTMLAnchorProps, AriaAttri
|
|
|
28
28
|
htmlMarkup?: ButtonTags;
|
|
29
29
|
/** Changes the button colors for different backgrounds. */
|
|
30
30
|
mode?: ButtonMode;
|
|
31
|
+
/** Function that is called when the Button loses focus */
|
|
32
|
+
onBlur?: () => void;
|
|
31
33
|
/** Function that is called when clicked */
|
|
32
34
|
onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent> | React.FormEvent<{}> | React.KeyboardEvent<HTMLUListElement> | null) => void;
|
|
33
35
|
/** Changes the button colors for different backgrounds. (Large not available in borderless variant) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAqB,MAAM,OAAO,CAAC;AAKjE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAe,MAAM,iBAAiB,CAAC;AAYhF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC9C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,GAAG,CAAC;AAExC,MAAM,WAAW,WAAY,SAAQ,eAAe,EAAE,eAAe,EAAE,cAAc;IACnF,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sCAAsC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iGAAiG;IACjG,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oDAAoD;IACpD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACvI,uGAAuG;IACvG,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,uDAAuD;IACvD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;CAC9D;AAkCD,QAAA,MAAM,MAAM,2GA+JV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAqB,MAAM,OAAO,CAAC;AAKjE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAe,MAAM,iBAAiB,CAAC;AAYhF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC9C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,GAAG,CAAC;AAExC,MAAM,WAAW,WAAY,SAAQ,eAAe,EAAE,eAAe,EAAE,cAAc;IACnF,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sCAAsC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iGAAiG;IACjG,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oDAAoD;IACpD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACvI,uGAAuG;IACvG,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,uDAAuD;IACvD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;CAC9D;AAkCD,QAAA,MAAM,MAAM,2GA+JV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1,113 +1,119 @@
|
|
|
1
|
-
import o, { useRef as
|
|
2
|
-
import
|
|
1
|
+
import o, { useRef as at, useEffect as lt } from "react";
|
|
2
|
+
import m from "classnames";
|
|
3
3
|
import { Icon as it } from "../Icon/Icon.js";
|
|
4
|
-
import { AnalyticsId as
|
|
4
|
+
import { AnalyticsId as W, IconSize as y } from "../../constants.js";
|
|
5
5
|
import { useBreakpoint as ct } from "../../hooks/useBreakpoint.js";
|
|
6
|
-
import { useHover as
|
|
6
|
+
import { useHover as $ } from "../../hooks/useHover.js";
|
|
7
7
|
import { useIcons as ut } from "../../hooks/useIcons.js";
|
|
8
8
|
import { useSize as mt } from "../../hooks/useSize.js";
|
|
9
9
|
import { getColor as i } from "../../theme/currys/color.js";
|
|
10
|
-
import { breakpoints as
|
|
11
|
-
import { isTest as pt, isProd as
|
|
10
|
+
import { breakpoints as bt } from "../../theme/grid.js";
|
|
11
|
+
import { isTest as pt, isProd as dt } from "../../utils/environment.js";
|
|
12
12
|
import ft from "../Icons/ArrowRight.js";
|
|
13
13
|
import t from "./styles.module.scss";
|
|
14
|
-
const ht = (e, r,
|
|
15
|
-
if (
|
|
14
|
+
const ht = (e, r, n, b, s, g) => g && n ? !s || e ? i("neutral", r ? 500 : 700) : i("white") : n ? !s || e ? i("neutral", 500) : `${i("white")}b3` : e && !s || !e && s ? "white" : b === "normal" ? i("blueberry", 600) : i("cherry", 500), k = (e, r) => r && e ? y.Small : e ? y.Medium : y.XSmall, gt = (e, r, n) => {
|
|
15
|
+
if (n && e && (r === void 0 || r === ""))
|
|
16
16
|
throw new Error("Fyll inn ariaLabel prop på Button uten tekst for å opprettholde UU krav");
|
|
17
|
-
},
|
|
17
|
+
}, _t = o.forwardRef(function(r, n) {
|
|
18
18
|
const {
|
|
19
|
-
ariaLabel:
|
|
19
|
+
ariaLabel: b,
|
|
20
20
|
id: s,
|
|
21
|
-
children:
|
|
22
|
-
wrapperClassName:
|
|
23
|
-
className:
|
|
24
|
-
arrow:
|
|
25
|
-
concept:
|
|
21
|
+
children: g,
|
|
22
|
+
wrapperClassName: D,
|
|
23
|
+
className: O,
|
|
24
|
+
arrow: v = !1,
|
|
25
|
+
concept: N = "normal",
|
|
26
26
|
disabled: p = !1,
|
|
27
|
-
ellipsis:
|
|
28
|
-
fluid:
|
|
29
|
-
htmlMarkup:
|
|
30
|
-
mode:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
ellipsis: B = !1,
|
|
28
|
+
fluid: X = !1,
|
|
29
|
+
htmlMarkup: _ = "button",
|
|
30
|
+
mode: j = "onlight",
|
|
31
|
+
onBlur: R,
|
|
32
|
+
onClick: S,
|
|
33
|
+
size: q = "medium",
|
|
34
|
+
variant: w = "fill",
|
|
34
35
|
href: G,
|
|
35
|
-
tabIndex:
|
|
36
|
-
testId:
|
|
36
|
+
tabIndex: x,
|
|
37
|
+
testId: z,
|
|
37
38
|
target: A,
|
|
38
39
|
type: J = "button",
|
|
39
40
|
...E
|
|
40
|
-
} = r, [
|
|
41
|
+
} = r, [d, f, F] = ut(o.Children.toArray(g)), { hoverRef: H, isHovered: K } = _ === "button" ? $(n) : $(n), L = at(null);
|
|
42
|
+
mt(L);
|
|
43
|
+
const a = !!(d || f) && !F, M = d && (f || v) && !a, I = j === "ondark", h = ct() < bt.md, P = N === "destructive" && !p, Q = w === "outline", c = w === "borderless", Y = ht(w === "fill", c, p, N, I, h), T = v && !c, u = q === "large" && !P && !c, Z = { ...E }, U = m(
|
|
41
44
|
t["button-wrapper"],
|
|
42
|
-
{ [t["button-wrapper--fluid"]]:
|
|
43
|
-
|
|
44
|
-
),
|
|
45
|
+
{ [t["button-wrapper--fluid"]]: X || B },
|
|
46
|
+
D
|
|
47
|
+
), tt = m(
|
|
45
48
|
t.button,
|
|
46
49
|
{
|
|
47
|
-
[t["button--destructive"]]:
|
|
48
|
-
[t["button--normal"]]: !
|
|
49
|
-
[t["button--large"]]:
|
|
50
|
-
[t["button--outline"]]:
|
|
51
|
-
[t["button--borderless"]]:
|
|
52
|
-
[t["button--left-icon"]]:
|
|
53
|
-
[t["button--right-icon"]]: f && !
|
|
54
|
-
[t["button--both-icons"]]:
|
|
55
|
-
[t["button--only-icon"]]:
|
|
56
|
-
[t["button--arrow"]]:
|
|
57
|
-
[t["button--on-dark"]]:
|
|
50
|
+
[t["button--destructive"]]: P,
|
|
51
|
+
[t["button--normal"]]: !u,
|
|
52
|
+
[t["button--large"]]: u,
|
|
53
|
+
[t["button--outline"]]: Q,
|
|
54
|
+
[t["button--borderless"]]: c,
|
|
55
|
+
[t["button--left-icon"]]: d && !a,
|
|
56
|
+
[t["button--right-icon"]]: f && !a,
|
|
57
|
+
[t["button--both-icons"]]: M,
|
|
58
|
+
[t["button--only-icon"]]: a,
|
|
59
|
+
[t["button--arrow"]]: T,
|
|
60
|
+
[t["button--on-dark"]]: I
|
|
58
61
|
},
|
|
59
|
-
|
|
60
|
-
),
|
|
61
|
-
[t["button__text--ellipsis"]]:
|
|
62
|
-
}),
|
|
63
|
-
[t["diagonal--on-dark"]]:
|
|
62
|
+
O
|
|
63
|
+
), ot = m(t.button__text, {
|
|
64
|
+
[t["button__text--ellipsis"]]: B
|
|
65
|
+
}), et = m(t.diagonal, {
|
|
66
|
+
[t["diagonal--on-dark"]]: I
|
|
64
67
|
});
|
|
65
68
|
lt(() => {
|
|
66
|
-
gt(
|
|
69
|
+
gt(a, b, !pt() && !dt());
|
|
67
70
|
}, []);
|
|
68
|
-
const
|
|
69
|
-
size:
|
|
70
|
-
color:
|
|
71
|
+
const C = (l, nt, st) => l ? o.cloneElement(l, {
|
|
72
|
+
size: nt,
|
|
73
|
+
color: l != null && l.props.color ? l.props.color : Y,
|
|
71
74
|
isHovered: K,
|
|
72
|
-
className:
|
|
73
|
-
}) : null,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
className: st
|
|
76
|
+
}) : null, rt = () => /* @__PURE__ */ o.createElement("span", { className: ot, ref: L }, p && c && /* @__PURE__ */ o.createElement("span", { className: et }, /* @__PURE__ */ o.createElement("span", { className: t.diagonal__line })), /* @__PURE__ */ o.createElement("span", null, a ? b : F)), V = () => /* @__PURE__ */ o.createElement("span", { className: tt }, C(d, k(u, h), a ? void 0 : t["button__left-icon"]), rt(), T ? C(
|
|
77
|
+
/* @__PURE__ */ o.createElement(it, { svgIcon: ft }),
|
|
78
|
+
k(u, h),
|
|
79
|
+
m(t.button__arrow, { [t["button__arrow--both-icons"]]: M })
|
|
80
|
+
) : C(f, k(u, h), t["button__right-icon"]));
|
|
81
|
+
return /* @__PURE__ */ o.createElement(o.Fragment, null, _ === "button" && /* @__PURE__ */ o.createElement(
|
|
78
82
|
"button",
|
|
79
83
|
{
|
|
80
84
|
id: s,
|
|
81
|
-
|
|
85
|
+
onBlur: R,
|
|
86
|
+
onClick: S,
|
|
82
87
|
disabled: p,
|
|
83
|
-
"data-testid":
|
|
84
|
-
"data-analyticsid":
|
|
85
|
-
className:
|
|
86
|
-
ref:
|
|
87
|
-
tabIndex:
|
|
88
|
+
"data-testid": z,
|
|
89
|
+
"data-analyticsid": W.Button,
|
|
90
|
+
className: U,
|
|
91
|
+
ref: H,
|
|
92
|
+
tabIndex: x,
|
|
88
93
|
type: J,
|
|
89
|
-
...
|
|
94
|
+
...Z
|
|
90
95
|
},
|
|
91
|
-
|
|
92
|
-
),
|
|
96
|
+
V()
|
|
97
|
+
), _ === "a" && /* @__PURE__ */ o.createElement(
|
|
93
98
|
"a",
|
|
94
99
|
{
|
|
95
100
|
id: s,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"data-
|
|
99
|
-
|
|
101
|
+
onBlur: R,
|
|
102
|
+
onClick: S,
|
|
103
|
+
"data-testid": z,
|
|
104
|
+
"data-analyticsid": W.Button,
|
|
105
|
+
className: U,
|
|
100
106
|
href: G,
|
|
101
107
|
target: A,
|
|
102
108
|
rel: A === "_blank" ? "noopener noreferrer" : r.rel,
|
|
103
|
-
ref:
|
|
104
|
-
tabIndex:
|
|
109
|
+
ref: H,
|
|
110
|
+
tabIndex: x,
|
|
105
111
|
...E
|
|
106
112
|
},
|
|
107
|
-
|
|
113
|
+
V()
|
|
108
114
|
));
|
|
109
|
-
}),
|
|
115
|
+
}), Ft = _t;
|
|
110
116
|
export {
|
|
111
|
-
|
|
117
|
+
Ft as default
|
|
112
118
|
};
|
|
113
119
|
//# sourceMappingURL=Button.js.map
|