@helsenorge/designsystem-react 1.0.0-beta106 → 1.0.0-beta110
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/Button-ed1c6e3f.js +2 -0
- package/Button-ed1c6e3f.js.map +1 -0
- package/CHANGELOG.md +52 -52
- package/Checkbox-8e590de0.js +2 -0
- package/Checkbox-8e590de0.js.map +1 -0
- package/Close-48d39d0e.js +2 -0
- package/Close-48d39d0e.js.map +1 -0
- package/{FormGroup-b2b6efe0.js → FormGroup-f10939e6.js} +2 -2
- package/FormGroup-f10939e6.js.map +1 -0
- package/Input-01c967ac.js +2 -0
- package/Input-01c967ac.js.map +1 -0
- package/{Loader-bc13d060.js → Loader-bf89238f.js} +2 -2
- package/Loader-bf89238f.js.map +1 -0
- package/Modal-240f0699.js +2 -0
- package/Modal-240f0699.js.map +1 -0
- package/README.md +69 -69
- package/{RadioButton-c173d440.js → RadioButton-b0da1997.js} +2 -2
- package/RadioButton-b0da1997.js.map +1 -0
- package/{Textarea-78e20c9a.js → Textarea-648063a9.js} +2 -2
- package/Textarea-648063a9.js.map +1 -0
- package/{Title-9df559dd.js → Title-1d8708ea.js} +2 -2
- package/Title-1d8708ea.js.map +1 -0
- package/Validation-c196f3f2.js +2 -0
- package/Validation-c196f3f2.js.map +1 -0
- package/_rollupPluginBabelHelpers-6b3099b0.js +2 -0
- package/_rollupPluginBabelHelpers-6b3099b0.js.map +1 -0
- package/color-e7d082c1.js +2 -0
- package/color-e7d082c1.js.map +1 -0
- package/components/AnchorLink/AnchorLink.d.ts +18 -18
- package/components/AnchorLink/index.d.ts +3 -3
- package/components/AnchorLink/index.js +1 -1
- package/components/AnchorLink/styles.module.scss +63 -63
- package/components/AnchorLink/styles.module.scss.d.ts +10 -10
- package/components/Avatar/Avatar.d.ts +15 -15
- package/components/Avatar/index.d.ts +3 -3
- package/components/Avatar/index.js +1 -1
- package/components/Avatar/styles.module.scss +22 -22
- package/components/Avatar/styles.module.scss.d.ts +11 -11
- package/components/Badge/Badge.d.ts +16 -16
- package/components/Badge/index.d.ts +3 -3
- package/components/Badge/index.js +1 -1
- package/components/Badge/styles.module.scss +41 -41
- package/components/Badge/styles.module.scss.d.ts +17 -17
- package/components/Button/Button.d.ts +42 -41
- package/components/Button/Button.d.ts.map +1 -1
- package/components/Button/componentdata.json +2 -2
- package/components/Button/index.d.ts +3 -3
- package/components/Button/index.js +1 -1
- package/components/Button/styles.module.scss +434 -434
- package/components/Button/styles.module.scss.d.ts +34 -34
- package/components/ButtonWithModal/ButtonWithModal.d.ts +10 -10
- package/components/ButtonWithModal/index.d.ts +3 -3
- package/components/ButtonWithModal/index.js +1 -1
- package/components/Checkbox/Checkbox.d.ts +30 -30
- package/components/Checkbox/index.d.ts +3 -3
- package/components/Checkbox/index.js +1 -1
- package/components/Checkbox/styles.module.scss +204 -204
- package/components/Checkbox/styles.module.scss.d.ts +26 -26
- package/components/Close/Close.d.ts +11 -11
- package/components/Close/index.d.ts +3 -3
- package/components/Close/index.js +1 -1
- package/components/Close/styles.module.scss +32 -32
- package/components/Close/styles.module.scss.d.ts +9 -9
- package/components/Expander/Expander.d.ts +32 -32
- package/components/Expander/Expander.d.ts.map +1 -1
- package/components/Expander/index.d.ts +3 -3
- package/components/Expander/index.js +1 -1
- package/components/Expander/styles.module.scss +165 -165
- package/components/Expander/styles.module.scss.d.ts +42 -42
- package/components/ExpanderList/ExpanderList.d.ts +47 -45
- package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
- package/components/ExpanderList/index.d.ts +3 -3
- package/components/ExpanderList/index.js +1 -1
- package/components/ExpanderList/styles.module.scss +160 -160
- package/components/ExpanderList/styles.module.scss.d.ts +28 -28
- package/components/FormExample/FormExample.d.ts +15 -15
- package/components/FormExample/index.d.ts +3 -3
- package/components/FormExample/index.js +1 -1
- package/components/FormExample/index.js.map +1 -1
- package/components/FormGroup/FormGroup.d.ts +24 -24
- package/components/FormGroup/index.d.ts +3 -3
- package/components/FormGroup/index.js +1 -1
- package/components/FormGroup/styles.module.scss +67 -67
- package/components/FormGroup/styles.module.scss.d.ts +16 -16
- package/components/HighlightBox/HighlightBox.d.ts +26 -26
- package/components/HighlightBox/index.d.ts +3 -3
- package/components/HighlightBox/index.js +1 -1
- package/components/HighlightBox/styles.module.scss +174 -174
- package/components/Icons/ActiveMonitoring.d.ts +4 -4
- package/components/Icons/ActiveMonitoring.js +1 -1
- package/components/Icons/AcupunctureBack.d.ts +4 -4
- package/components/Icons/AcupunctureBack.d.ts.map +1 -1
- package/components/Icons/AcupunctureBack.js +1 -1
- package/components/Icons/AdditionalIconInformation.js +263 -263
- package/components/Icons/AdditionalIconInformation.js.map +1 -1
- package/components/Icons/AlarmClock.d.ts +4 -4
- package/components/Icons/AlarmClock.d.ts.map +1 -1
- package/components/Icons/AlarmClock.js +1 -1
- package/components/Icons/AlertSignFill.d.ts +4 -4
- package/components/Icons/AlertSignFill.d.ts.map +1 -1
- package/components/Icons/AlertSignFill.js +1 -1
- package/components/Icons/AlertSignStroke.d.ts +4 -4
- package/components/Icons/AlertSignStroke.d.ts.map +1 -1
- package/components/Icons/AlertSignStroke.js +1 -1
- package/components/Icons/Amputation.d.ts +4 -4
- package/components/Icons/Amputation.js +1 -1
- package/components/Icons/Anxiety.d.ts +4 -4
- package/components/Icons/Anxiety.js +1 -1
- package/components/Icons/Apple.d.ts +4 -4
- package/components/Icons/Apple.js +1 -1
- package/components/Icons/Archive.d.ts +4 -4
- package/components/Icons/Archive.d.ts.map +1 -1
- package/components/Icons/Archive.js +1 -1
- package/components/Icons/ArmFlexing.d.ts +4 -4
- package/components/Icons/ArmFlexing.js +1 -1
- package/components/Icons/ArrowLeft.d.ts +4 -4
- package/components/Icons/ArrowLeft.d.ts.map +1 -1
- package/components/Icons/ArrowLeft.js +1 -1
- package/components/Icons/ArrowRight.d.ts +4 -4
- package/components/Icons/ArrowRight.d.ts.map +1 -1
- package/components/Icons/ArrowRight.js +1 -1
- package/components/Icons/ArrowUpRight.d.ts +4 -4
- package/components/Icons/ArrowUpRight.d.ts.map +1 -1
- package/components/Icons/ArrowUpRight.js +1 -1
- package/components/Icons/Attachment.d.ts +4 -4
- package/components/Icons/Attachment.d.ts.map +1 -1
- package/components/Icons/Attachment.js +1 -1
- package/components/Icons/Atv.d.ts +4 -4
- package/components/Icons/Atv.js +1 -1
- package/components/Icons/Avatar.d.ts +4 -4
- package/components/Icons/Avatar.d.ts.map +1 -1
- package/components/Icons/Avatar.js +1 -1
- package/components/Icons/AwakePersonOnPillow.d.ts +4 -4
- package/components/Icons/AwakePersonOnPillow.js +1 -1
- package/components/Icons/Baby.d.ts +4 -4
- package/components/Icons/Baby.js +1 -1
- package/components/Icons/BandAid.d.ts +4 -4
- package/components/Icons/BandAid.js +1 -1
- package/components/Icons/BeerAndPills.d.ts +4 -4
- package/components/Icons/BeerAndPills.js +1 -1
- package/components/Icons/Bell.d.ts +4 -4
- package/components/Icons/Bell.js +1 -1
- package/components/Icons/Bike.d.ts +4 -4
- package/components/Icons/Bike.js +1 -1
- package/components/Icons/BirthControl.d.ts +4 -4
- package/components/Icons/BirthdayCake.d.ts +4 -4
- package/components/Icons/BirthdayCake.js +1 -1
- package/components/Icons/Boat.d.ts +4 -4
- package/components/Icons/Boat.js +1 -1
- package/components/Icons/Body.d.ts +4 -4
- package/components/Icons/Brain.d.ts +4 -4
- package/components/Icons/Brain.js +1 -1
- package/components/Icons/BreastReconstruction.d.ts +4 -4
- package/components/Icons/BreastReconstruction.js +1 -1
- package/components/Icons/BreastRemoval.d.ts +4 -4
- package/components/Icons/BreastRemoval.js +1 -1
- package/components/Icons/Breasts.d.ts +4 -4
- package/components/Icons/Breasts.js +1 -1
- package/components/Icons/BrokenHeart.d.ts +4 -4
- package/components/Icons/BrokenHeart.js +1 -1
- package/components/Icons/BrokenPuzzle.d.ts +4 -4
- package/components/Icons/BrokenPuzzle.js +1 -1
- package/components/Icons/Bus.d.ts +4 -4
- package/components/Icons/Bus.d.ts.map +1 -1
- package/components/Icons/Bus.js +1 -1
- package/components/Icons/Calendar.d.ts +4 -4
- package/components/Icons/Calendar.d.ts.map +1 -1
- package/components/Icons/Calendar.js +1 -1
- package/components/Icons/CalendarChange.d.ts +4 -4
- package/components/Icons/CalendarChange.d.ts.map +1 -1
- package/components/Icons/CalendarChange.js +1 -1
- package/components/Icons/CalendarCheck.d.ts +4 -4
- package/components/Icons/CalendarCheck.d.ts.map +1 -1
- package/components/Icons/CalendarCheck.js +1 -1
- package/components/Icons/CalendarEvent.d.ts +4 -4
- package/components/Icons/CalendarEvent.js +1 -1
- package/components/Icons/CalendarSave.d.ts +4 -4
- package/components/Icons/CalendarSave.d.ts.map +1 -1
- package/components/Icons/CalendarSave.js +1 -1
- package/components/Icons/Cancer.d.ts +4 -4
- package/components/Icons/Cancer.js +1 -1
- package/components/Icons/Car.d.ts +4 -4
- package/components/Icons/Car.js +1 -1
- package/components/Icons/Change.d.ts +4 -4
- package/components/Icons/Change.d.ts.map +1 -1
- package/components/Icons/Change.js +1 -1
- package/components/Icons/Check.d.ts +4 -4
- package/components/Icons/Check.d.ts.map +1 -1
- package/components/Icons/Check.js +1 -1
- package/components/Icons/CheckOutline.d.ts +4 -4
- package/components/Icons/CheckOutline.js +1 -1
- package/components/Icons/Chest.d.ts +4 -4
- package/components/Icons/Chest.js +1 -1
- package/components/Icons/ChevronDown.d.ts +4 -4
- package/components/Icons/ChevronDown.d.ts.map +1 -1
- package/components/Icons/ChevronDown.js +1 -1
- package/components/Icons/ChevronLeft.d.ts +4 -4
- package/components/Icons/ChevronLeft.d.ts.map +1 -1
- package/components/Icons/ChevronLeft.js +1 -1
- package/components/Icons/ChevronRight.d.ts +4 -4
- package/components/Icons/ChevronRight.d.ts.map +1 -1
- package/components/Icons/ChevronRight.js +1 -1
- package/components/Icons/ChevronUp.d.ts +4 -4
- package/components/Icons/ChevronUp.d.ts.map +1 -1
- package/components/Icons/ChevronUp.js +1 -1
- package/components/Icons/ChevronsDown.d.ts +4 -4
- package/components/Icons/ChevronsDown.d.ts.map +1 -1
- package/components/Icons/ChevronsDown.js +1 -1
- package/components/Icons/ChevronsUp.d.ts +4 -4
- package/components/Icons/ChevronsUp.d.ts.map +1 -1
- package/components/Icons/ChevronsUp.js +1 -1
- package/components/Icons/ChildPlaying.d.ts +4 -4
- package/components/Icons/ChildPlaying.js +1 -1
- package/components/Icons/Cigarette.d.ts +4 -4
- package/components/Icons/Cigarette.js +1 -1
- package/components/Icons/Contacts.d.ts +4 -4
- package/components/Icons/Contacts.d.ts.map +1 -1
- package/components/Icons/Contacts.js +1 -1
- package/components/Icons/Copy.d.ts +4 -4
- package/components/Icons/Copy.d.ts.map +1 -1
- package/components/Icons/Copy.js +1 -1
- package/components/Icons/CoronaCertificate.d.ts +4 -4
- package/components/Icons/CoronaCertificate.js +1 -1
- package/components/Icons/Coronavirus.d.ts +4 -4
- package/components/Icons/Coronavirus.js +1 -1
- package/components/Icons/Cough.d.ts +4 -4
- package/components/Icons/Cough.js +1 -1
- package/components/Icons/CriticalHealthInfo.d.ts +4 -4
- package/components/Icons/CriticalHealthInfo.js +1 -1
- package/components/Icons/Cross.d.ts +4 -4
- package/components/Icons/Cross.js +1 -1
- package/components/Icons/DataExchange.d.ts +4 -4
- package/components/Icons/DataReceived.d.ts +4 -4
- package/components/Icons/DataSent.d.ts +4 -4
- package/components/Icons/Depression.d.ts +4 -4
- package/components/Icons/Depression.js +1 -1
- package/components/Icons/DigestiveSystem.d.ts +4 -4
- package/components/Icons/DigestiveSystem.js +1 -1
- package/components/Icons/Dizzy.d.ts +4 -4
- package/components/Icons/Dizzy.js +1 -1
- package/components/Icons/Documents.d.ts +4 -4
- package/components/Icons/Documents.js +1 -1
- package/components/Icons/Dog.d.ts +4 -4
- package/components/Icons/Dog.js +1 -1
- package/components/Icons/DonorCard.d.ts +4 -4
- package/components/Icons/DonorCard.js +1 -1
- package/components/Icons/Download.d.ts +4 -4
- package/components/Icons/Download.d.ts.map +1 -1
- package/components/Icons/Download.js +1 -1
- package/components/Icons/Draft.d.ts +4 -4
- package/components/Icons/Draft.js +1 -1
- package/components/Icons/EChat.d.ts +4 -4
- package/components/Icons/EChat.d.ts.map +1 -1
- package/components/Icons/EChat.js +1 -1
- package/components/Icons/EarNoseThroat.d.ts +4 -4
- package/components/Icons/EarNoseThroat.js +1 -1
- package/components/Icons/ElderlyPerson.d.ts +4 -4
- package/components/Icons/ElderlyPerson.js +1 -1
- package/components/Icons/Embolization.d.ts +4 -4
- package/components/Icons/Embolization.js +1 -1
- package/components/Icons/EnterFullScreen.d.ts +4 -4
- package/components/Icons/EnterFullScreen.d.ts.map +1 -1
- package/components/Icons/EnterFullScreen.js +1 -1
- package/components/Icons/Envelope.d.ts +4 -4
- package/components/Icons/Envelope.d.ts.map +1 -1
- package/components/Icons/Envelope.js +1 -1
- package/components/Icons/Epilepsy.d.ts +4 -4
- package/components/Icons/Epilepsy.js +1 -1
- package/components/Icons/Eraser.d.ts +4 -4
- package/components/Icons/Eraser.d.ts.map +1 -1
- package/components/Icons/Eraser.js +1 -1
- package/components/Icons/ErrorSignFill.d.ts +4 -4
- package/components/Icons/ErrorSignFill.d.ts.map +1 -1
- package/components/Icons/ErrorSignFill.js +1 -1
- package/components/Icons/ErrorSignStroke.d.ts +4 -4
- package/components/Icons/ErrorSignStroke.d.ts.map +1 -1
- package/components/Icons/ErrorSignStroke.js +1 -1
- package/components/Icons/EuropeanHealthCard.d.ts +4 -4
- package/components/Icons/EuropeanHealthCard.js +1 -1
- package/components/Icons/ExitFullScreen.d.ts +4 -4
- package/components/Icons/ExitFullScreen.d.ts.map +1 -1
- package/components/Icons/ExitFullScreen.js +1 -1
- package/components/Icons/Eye.d.ts +4 -4
- package/components/Icons/Eye.d.ts.map +1 -1
- package/components/Icons/Eye.js +1 -1
- package/components/Icons/Facebook.d.ts +4 -4
- package/components/Icons/Facebook.js +1 -1
- package/components/Icons/Female.d.ts +4 -4
- package/components/Icons/Female.js +1 -1
- package/components/Icons/FemaleDoctor.d.ts +4 -4
- package/components/Icons/FemaleDoctor.js +1 -1
- package/components/Icons/Ferry.d.ts +4 -4
- package/components/Icons/Ferry.js +1 -1
- package/components/Icons/FingerBleed.d.ts +4 -4
- package/components/Icons/FingerBleed.js +1 -1
- package/components/Icons/FirstAidKit.d.ts +4 -4
- package/components/Icons/FirstAidKit.js +1 -1
- package/components/Icons/FloppyDisk.d.ts +4 -4
- package/components/Icons/Football.d.ts +4 -4
- package/components/Icons/Football.js +1 -1
- package/components/Icons/Form.d.ts +4 -4
- package/components/Icons/Form.d.ts.map +1 -1
- package/components/Icons/Form.js +1 -1
- package/components/Icons/Forward.d.ts +4 -4
- package/components/Icons/Forward.d.ts.map +1 -1
- package/components/Icons/Forward.js +1 -1
- package/components/Icons/Gallery.d.ts +4 -4
- package/components/Icons/Gallery.d.ts.map +1 -1
- package/components/Icons/Gallery.js +1 -1
- package/components/Icons/Garden.d.ts +4 -4
- package/components/Icons/Garden.js +1 -1
- package/components/Icons/GasCan.d.ts +4 -4
- package/components/Icons/GasCan.js +1 -1
- package/components/Icons/GenderIdentity.d.ts +4 -4
- package/components/Icons/Globe.d.ts +4 -4
- package/components/Icons/Globe.d.ts.map +1 -1
- package/components/Icons/Globe.js +1 -1
- package/components/Icons/HandWaving.d.ts +4 -4
- package/components/Icons/HandWaving.js +1 -1
- package/components/Icons/HandWithDisease.d.ts +4 -4
- package/components/Icons/HandWithDisease.js +1 -1
- package/components/Icons/HealthClinic.d.ts +4 -4
- package/components/Icons/HealthClinic.js +1 -1
- package/components/Icons/HealthWarning.d.ts +4 -4
- package/components/Icons/HealthWarning.js +1 -1
- package/components/Icons/Heart.d.ts +4 -4
- package/components/Icons/Heart.d.ts.map +1 -1
- package/components/Icons/Heart.js +1 -1
- package/components/Icons/HelpSign.d.ts +4 -4
- package/components/Icons/HelpSign.d.ts.map +1 -1
- package/components/Icons/HelpSign.js +1 -1
- package/components/Icons/HelpingHand.d.ts +4 -4
- package/components/Icons/HelpingHand.js +1 -1
- package/components/Icons/Hemodialysis.d.ts +4 -4
- package/components/Icons/Hemodialysis.js +1 -1
- package/components/Icons/Hiker.d.ts +4 -4
- package/components/Icons/Hiker.js +1 -1
- package/components/Icons/Hipprosthesis.d.ts +4 -4
- package/components/Icons/Hipprosthesis.js +1 -1
- package/components/Icons/History.d.ts +4 -4
- package/components/Icons/History.d.ts.map +1 -1
- package/components/Icons/History.js +1 -1
- package/components/Icons/HivAndAids.d.ts +4 -4
- package/components/Icons/HivAndAids.js +1 -1
- package/components/Icons/Home.d.ts +4 -4
- package/components/Icons/Home.d.ts.map +1 -1
- package/components/Icons/Home.js +1 -1
- package/components/Icons/Hormone.d.ts +4 -4
- package/components/Icons/Hormone.js +1 -1
- package/components/Icons/Hospital.d.ts +4 -4
- package/components/Icons/Hospital.d.ts.map +1 -1
- package/components/Icons/Hospital.js +1 -1
- package/components/Icons/Hourglass.d.ts +4 -4
- package/components/Icons/Hourglass.d.ts.map +1 -1
- package/components/Icons/Hourglass.js +1 -1
- package/components/Icons/Icon.d.ts +23 -22
- package/components/Icons/Icon.d.ts.map +1 -1
- package/components/Icons/Icon.js +1 -1
- package/components/Icons/ImgFile.d.ts +4 -4
- package/components/Icons/ImgFile.js +1 -1
- package/components/Icons/Inbox.d.ts +4 -4
- package/components/Icons/Inbox.js +1 -1
- package/components/Icons/InfoSignFill.d.ts +4 -4
- package/components/Icons/InfoSignFill.d.ts.map +1 -1
- package/components/Icons/InfoSignFill.js +1 -1
- package/components/Icons/InfoSignStroke.d.ts +4 -4
- package/components/Icons/InfoSignStroke.d.ts.map +1 -1
- package/components/Icons/InfoSignStroke.js +1 -1
- package/components/Icons/Instagram.d.ts +4 -4
- package/components/Icons/Instagram.js +1 -1
- package/components/Icons/Intravenous.d.ts +4 -4
- package/components/Icons/Intravenous.js +1 -1
- package/components/Icons/JointPain.d.ts +4 -4
- package/components/Icons/JointPain.js +1 -1
- package/components/Icons/Journal.d.ts +4 -4
- package/components/Icons/Journal.d.ts.map +1 -1
- package/components/Icons/Journal.js +1 -1
- package/components/Icons/JpgFile.d.ts +4 -4
- package/components/Icons/JpgFile.js +1 -1
- package/components/Icons/Kidney.d.ts +4 -4
- package/components/Icons/Kidney.js +1 -1
- package/components/Icons/KitchenScale.d.ts +4 -4
- package/components/Icons/KitchenScale.js +1 -1
- package/components/Icons/Kjernejournal.d.ts +4 -4
- package/components/Icons/Kjernejournal.js +1 -1
- package/components/Icons/Laboratory.d.ts +4 -4
- package/components/Icons/Laboratory.js +1 -1
- package/components/Icons/LaptopBlog.d.ts +4 -4
- package/components/Icons/LaptopBlog.js +1 -1
- package/components/Icons/LawBook.d.ts +4 -4
- package/components/Icons/LawBook.js +1 -1
- package/components/Icons/LightBulb.d.ts +4 -4
- package/components/Icons/LightBulb.js +1 -1
- package/components/Icons/List.d.ts +4 -4
- package/components/Icons/List.d.ts.map +1 -1
- package/components/Icons/List.js +1 -1
- package/components/Icons/Location.d.ts +4 -4
- package/components/Icons/Location.d.ts.map +1 -1
- package/components/Icons/Location.js +1 -1
- package/components/Icons/Lock.d.ts +4 -4
- package/components/Icons/Lock.d.ts.map +1 -1
- package/components/Icons/Lock.js +1 -1
- package/components/Icons/Lungs.d.ts +4 -4
- package/components/Icons/Lungs.js +1 -1
- package/components/Icons/Makeup.d.ts +4 -4
- package/components/Icons/Makeup.js +1 -1
- package/components/Icons/MaleDoctor.d.ts +4 -4
- package/components/Icons/MaleDoctor.js +1 -1
- package/components/Icons/MaleDoctorAndPerson.d.ts +4 -4
- package/components/Icons/MaleDoctorAndPerson.js +1 -1
- package/components/Icons/MaleGenitalia.d.ts +4 -4
- package/components/Icons/MaleGenitalia.js +1 -1
- package/components/Icons/Medicine.d.ts +4 -4
- package/components/Icons/Medicine.d.ts.map +1 -1
- package/components/Icons/Medicine.js +1 -1
- package/components/Icons/MedicineWarning.d.ts +4 -4
- package/components/Icons/MedicineWarning.js +1 -1
- package/components/Icons/MentalHealthAdult.d.ts +4 -4
- package/components/Icons/MentalHealthAdult.js +1 -1
- package/components/Icons/MentalHealthChild.d.ts +4 -4
- package/components/Icons/MentalHealthChild.js +1 -1
- package/components/Icons/Menu.d.ts +4 -4
- package/components/Icons/Menu.d.ts.map +1 -1
- package/components/Icons/Menu.js +1 -1
- package/components/Icons/Microscope.d.ts +4 -4
- package/components/Icons/Microscope.js +1 -1
- package/components/Icons/Minus.d.ts +4 -4
- package/components/Icons/Minus.d.ts.map +1 -1
- package/components/Icons/Minus.js +1 -1
- package/components/Icons/Mirror.d.ts +4 -4
- package/components/Icons/Mirror.js +1 -1
- package/components/Icons/MobilePhone.d.ts +4 -4
- package/components/Icons/MobilePhone.d.ts.map +1 -1
- package/components/Icons/MobilePhone.js +1 -1
- package/components/Icons/MotherHoldingBaby.d.ts +4 -4
- package/components/Icons/MotherHoldingBaby.js +1 -1
- package/components/Icons/MuscleBack.d.ts +4 -4
- package/components/Icons/MuscleBack.js +1 -1
- package/components/Icons/MuscleLeg.d.ts +4 -4
- package/components/Icons/MuscleLeg.js +1 -1
- package/components/Icons/Mushroom.d.ts +4 -4
- package/components/Icons/Mushroom.js +1 -1
- package/components/Icons/Music.d.ts +4 -4
- package/components/Icons/Music.js +1 -1
- package/components/Icons/MusselsAndSalt.d.ts +4 -4
- package/components/Icons/MusselsAndSalt.js +1 -1
- package/components/Icons/NoEye.d.ts +4 -4
- package/components/Icons/NoEye.d.ts.map +1 -1
- package/components/Icons/NoEye.js +1 -1
- package/components/Icons/NoFilter.d.ts +4 -4
- package/components/Icons/NoFilter.d.ts.map +1 -1
- package/components/Icons/NoFilter.js +1 -1
- package/components/Icons/Notepad.d.ts +4 -4
- package/components/Icons/Notepad.js +1 -1
- package/components/Icons/Osteotomy.d.ts +4 -4
- package/components/Icons/Osteotomy.js +1 -1
- package/components/Icons/PaintRoller.d.ts +4 -4
- package/components/Icons/PaintRoller.js +1 -1
- package/components/Icons/PaperPlane.d.ts +4 -4
- package/components/Icons/PaperPlane.d.ts.map +1 -1
- package/components/Icons/PaperPlane.js +1 -1
- package/components/Icons/PatientAndPerson.d.ts +4 -4
- package/components/Icons/PatientAndPerson.js +1 -1
- package/components/Icons/Pause.d.ts +4 -4
- package/components/Icons/Pause.d.ts.map +1 -1
- package/components/Icons/Pause.js +1 -1
- package/components/Icons/PdfFile.d.ts +4 -4
- package/components/Icons/PdfFile.js +1 -1
- package/components/Icons/Pencil.d.ts +4 -4
- package/components/Icons/Pencil.d.ts.map +1 -1
- package/components/Icons/Pencil.js +1 -1
- package/components/Icons/PeopleTalking.d.ts +4 -4
- package/components/Icons/PeopleTalking.js +1 -1
- package/components/Icons/Peritonealdialysis.d.ts +4 -4
- package/components/Icons/Peritonealdialysis.js +1 -1
- package/components/Icons/Person.d.ts +4 -4
- package/components/Icons/Person.js +1 -1
- package/components/Icons/PersonAndPatient.d.ts +4 -4
- package/components/Icons/PersonAndPatient.js +1 -1
- package/components/Icons/PersonInXRayMachine.d.ts +4 -4
- package/components/Icons/PersonInXRayMachine.js +1 -1
- package/components/Icons/PersonOverweight.d.ts +4 -4
- package/components/Icons/PersonOverweight.js +1 -1
- package/components/Icons/PersonRelaxing.d.ts +4 -4
- package/components/Icons/PersonRelaxing.js +1 -1
- package/components/Icons/PersonWithBrain.d.ts +4 -4
- package/components/Icons/PersonWithBrain.js +1 -1
- package/components/Icons/PersonWithBrokenArm.d.ts +4 -4
- package/components/Icons/PersonWithBrokenArm.js +1 -1
- package/components/Icons/PersonWithCrutches.d.ts +4 -4
- package/components/Icons/PersonWithCrutches.js +1 -1
- package/components/Icons/PersonWithJaw.d.ts +4 -4
- package/components/Icons/PersonWithJaw.js +1 -1
- package/components/Icons/PersonWithMagnifyingGlass.d.ts +4 -4
- package/components/Icons/PersonWithMagnifyingGlass.js +1 -1
- package/components/Icons/PersonWithSenses.d.ts +4 -4
- package/components/Icons/PersonWithSenses.js +1 -1
- package/components/Icons/PersonWorking.d.ts +4 -4
- package/components/Icons/PersonWorking.js +1 -1
- package/components/Icons/PizzaSlice.d.ts +4 -4
- package/components/Icons/PizzaSlice.js +1 -1
- package/components/Icons/Plane.d.ts +4 -4
- package/components/Icons/Plane.js +1 -1
- package/components/Icons/Plant.d.ts +4 -4
- package/components/Icons/Plant.js +1 -1
- package/components/Icons/Play.d.ts +4 -4
- package/components/Icons/Play.d.ts.map +1 -1
- package/components/Icons/Play.js +1 -1
- package/components/Icons/PlusLarge.d.ts +4 -4
- package/components/Icons/PlusLarge.d.ts.map +1 -1
- package/components/Icons/PlusLarge.js +1 -1
- package/components/Icons/PlusSmall.d.ts +4 -4
- package/components/Icons/PlusSmall.d.ts.map +1 -1
- package/components/Icons/PlusSmall.js +1 -1
- package/components/Icons/PngFile.d.ts +4 -4
- package/components/Icons/PngFile.js +1 -1
- package/components/Icons/Podcast.d.ts +4 -4
- package/components/Icons/PoisonInformation.d.ts +4 -4
- package/components/Icons/PoisonInformation.js +1 -1
- package/components/Icons/Pregnant.d.ts +4 -4
- package/components/Icons/Pregnant.js +1 -1
- package/components/Icons/Printer.d.ts +4 -4
- package/components/Icons/Printer.d.ts.map +1 -1
- package/components/Icons/Printer.js +1 -1
- package/components/Icons/Psychosis.d.ts +4 -4
- package/components/Icons/Psychosis.js +1 -1
- package/components/Icons/Publication.d.ts +4 -4
- package/components/Icons/Publication.js +1 -1
- package/components/Icons/Puzzle.d.ts +4 -4
- package/components/Icons/Puzzle.js +1 -1
- package/components/Icons/QrCode.d.ts +4 -4
- package/components/Icons/QrCode.d.ts.map +1 -1
- package/components/Icons/QrCode.js +1 -1
- package/components/Icons/Quarrel.d.ts +4 -4
- package/components/Icons/RadioTherapy.d.ts +4 -4
- package/components/Icons/RadioTherapy.js +1 -1
- package/components/Icons/RadioactiveTreatment.d.ts +4 -4
- package/components/Icons/RadioactiveTreatment.js +1 -1
- package/components/Icons/Radioiodine.d.ts +4 -4
- package/components/Icons/Radioiodine.js +1 -1
- package/components/Icons/Receipt.d.ts +4 -4
- package/components/Icons/Receipt.js +1 -1
- package/components/Icons/Receptionist.d.ts +4 -4
- package/components/Icons/Receptionist.d.ts.map +1 -1
- package/components/Icons/Receptionist.js +1 -1
- package/components/Icons/Recovery.d.ts +4 -4
- package/components/Icons/Recovery.js +1 -1
- package/components/Icons/Referral.d.ts +4 -4
- package/components/Icons/Referral.d.ts.map +1 -1
- package/components/Icons/Referral.js +1 -1
- package/components/Icons/Refresh.d.ts +4 -4
- package/components/Icons/Refresh.d.ts.map +1 -1
- package/components/Icons/Refresh.js +1 -1
- package/components/Icons/Refund.d.ts +4 -4
- package/components/Icons/Refund.js +1 -1
- package/components/Icons/Reply.d.ts +4 -4
- package/components/Icons/Reply.d.ts.map +1 -1
- package/components/Icons/Reply.js +1 -1
- package/components/Icons/Rocket.d.ts +4 -4
- package/components/Icons/Rocket.js +1 -1
- package/components/Icons/RtfFile.d.ts +4 -4
- package/components/Icons/RtfFile.js +1 -1
- package/components/Icons/STDs.d.ts +4 -4
- package/components/Icons/Save.d.ts +4 -4
- package/components/Icons/Save.d.ts.map +1 -1
- package/components/Icons/Save.js +1 -1
- package/components/Icons/Scale.d.ts +4 -4
- package/components/Icons/Scale.js +1 -1
- package/components/Icons/Search.d.ts +4 -4
- package/components/Icons/Search.d.ts.map +1 -1
- package/components/Icons/Search.js +1 -1
- package/components/Icons/SectionSign.d.ts +4 -4
- package/components/Icons/SectionSign.d.ts.map +1 -1
- package/components/Icons/SectionSign.js +1 -1
- package/components/Icons/Settings.d.ts +4 -4
- package/components/Icons/Settings.d.ts.map +1 -1
- package/components/Icons/Settings.js +1 -1
- package/components/Icons/Sexualorientation.d.ts +4 -4
- package/components/Icons/ShakingHand.d.ts +4 -4
- package/components/Icons/ShakingHand.js +1 -1
- package/components/Icons/Share.d.ts +4 -4
- package/components/Icons/Share.d.ts.map +1 -1
- package/components/Icons/Share.js +1 -1
- package/components/Icons/Shield.d.ts +4 -4
- package/components/Icons/Shield.js +1 -1
- package/components/Icons/ShuntOperation.d.ts +4 -4
- package/components/Icons/ShuntOperation.js +1 -1
- package/components/Icons/Skeleton.d.ts +4 -4
- package/components/Icons/Skeleton.js +1 -1
- package/components/Icons/Skin.d.ts +4 -4
- package/components/Icons/Skin.js +1 -1
- package/components/Icons/Snake.d.ts +4 -4
- package/components/Icons/Snake.js +1 -1
- package/components/Icons/Snapchat.d.ts +4 -4
- package/components/Icons/Snapchat.js +1 -1
- package/components/Icons/SpeechBubble.d.ts +4 -4
- package/components/Icons/SpeechBubble.d.ts.map +1 -1
- package/components/Icons/SpeechBubble.js +1 -1
- package/components/Icons/Spray.d.ts +4 -4
- package/components/Icons/Spray.js +1 -1
- package/components/Icons/Stopwatch.d.ts +4 -4
- package/components/Icons/Stopwatch.d.ts.map +1 -1
- package/components/Icons/Stopwatch.js +1 -1
- package/components/Icons/SupportingPerson.d.ts +4 -4
- package/components/Icons/SupportingPerson.d.ts.map +1 -1
- package/components/Icons/SupportingPerson.js +1 -1
- package/components/Icons/Surgery.d.ts +4 -4
- package/components/Icons/Surgery.js +1 -1
- package/components/Icons/Syringe.d.ts +4 -4
- package/components/Icons/Syringe.d.ts.map +1 -1
- package/components/Icons/Syringe.js +1 -1
- package/components/Icons/Taxi.d.ts +4 -4
- package/components/Icons/Taxi.js +1 -1
- package/components/Icons/TeddyBear.d.ts +4 -4
- package/components/Icons/TeddyBear.js +1 -1
- package/components/Icons/Teenagers.d.ts +4 -4
- package/components/Icons/Teenagers.js +1 -1
- package/components/Icons/ThinkingAboutBaby.d.ts +4 -4
- package/components/Icons/ThinkingAboutBaby.js +1 -1
- package/components/Icons/Ticket.d.ts +4 -4
- package/components/Icons/Ticket.js +1 -1
- package/components/Icons/TimePassing.d.ts +4 -4
- package/components/Icons/TimePassing.d.ts.map +1 -1
- package/components/Icons/TimePassing.js +1 -1
- package/components/Icons/Toolbox.d.ts +4 -4
- package/components/Icons/Toolbox.d.ts.map +1 -1
- package/components/Icons/Toolbox.js +1 -1
- package/components/Icons/Tooth.d.ts +4 -4
- package/components/Icons/Tooth.js +1 -1
- package/components/Icons/TotalKneeProsthesis.d.ts +4 -4
- package/components/Icons/TotalKneeProsthesis.js +1 -1
- package/components/Icons/Train.d.ts +4 -4
- package/components/Icons/Train.js +1 -1
- package/components/Icons/Transplantation.d.ts +4 -4
- package/components/Icons/Transplantation.js +1 -1
- package/components/Icons/TrashCan.d.ts +4 -4
- package/components/Icons/TrashCan.d.ts.map +1 -1
- package/components/Icons/TrashCan.js +1 -1
- package/components/Icons/Twitter.d.ts +4 -4
- package/components/Icons/Twitter.js +1 -1
- package/components/Icons/Undo.d.ts +4 -4
- package/components/Icons/Undo.d.ts.map +1 -1
- package/components/Icons/Undo.js +1 -1
- package/components/Icons/UniProsthesis.d.ts +4 -4
- package/components/Icons/UniProsthesis.js +1 -1
- package/components/Icons/Upload.d.ts +4 -4
- package/components/Icons/Upload.d.ts.map +1 -1
- package/components/Icons/Upload.js +1 -1
- package/components/Icons/UserOrganization.d.ts +4 -4
- package/components/Icons/UserOrganization.js +1 -1
- package/components/Icons/Vaccine.d.ts +4 -4
- package/components/Icons/Vaccine.d.ts.map +1 -1
- package/components/Icons/Vaccine.js +1 -1
- package/components/Icons/VerticalDots.d.ts +4 -4
- package/components/Icons/VerticalDots.d.ts.map +1 -1
- package/components/Icons/VerticalDots.js +1 -1
- package/components/Icons/VideoCamera.d.ts +4 -4
- package/components/Icons/VideoCamera.d.ts.map +1 -1
- package/components/Icons/VideoCamera.js +1 -1
- package/components/Icons/VideoChat.d.ts +4 -4
- package/components/Icons/VideoChat.d.ts.map +1 -1
- package/components/Icons/VideoChat.js +1 -1
- package/components/Icons/Wallet.d.ts +4 -4
- package/components/Icons/Wallet.d.ts.map +1 -1
- package/components/Icons/Wallet.js +1 -1
- package/components/Icons/Watch.d.ts +4 -4
- package/components/Icons/Watch.d.ts.map +1 -1
- package/components/Icons/Watch.js +1 -1
- package/components/Icons/Website.d.ts +4 -4
- package/components/Icons/Website.js +1 -1
- package/components/Icons/Wheelchair.d.ts +4 -4
- package/components/Icons/Wheelchair.js +1 -1
- package/components/Icons/WheelchairActive.d.ts +4 -4
- package/components/Icons/WheelchairActive.js +1 -1
- package/components/Icons/Window.d.ts +4 -4
- package/components/Icons/Window.js +1 -1
- package/components/Icons/WordDocument.d.ts +4 -4
- package/components/Icons/WordDocument.js +1 -1
- package/components/Icons/WorkSuitcase.d.ts +4 -4
- package/components/Icons/WorkSuitcase.js +1 -1
- package/components/Icons/X.d.ts +4 -4
- package/components/Icons/X.d.ts.map +1 -1
- package/components/Icons/X.js +1 -1
- package/components/Icons/XOutline.d.ts +4 -4
- package/components/Icons/XOutline.js +1 -1
- package/components/Icons/XmlFile.d.ts +4 -4
- package/components/Icons/XmlFile.js +1 -1
- package/components/Icons/YouTube.d.ts +4 -4
- package/components/Icons/YouTube.js +1 -1
- package/components/Icons/Zoom.d.ts +4 -4
- package/components/Icons/Zoom.d.ts.map +1 -1
- package/components/Icons/Zoom.js +1 -1
- package/components/Icons/index.d.ts +4 -4
- package/components/Icons/index.js +1 -1
- package/components/Input/Input.d.ts +54 -54
- package/components/Input/index.d.ts +3 -3
- package/components/Input/index.js +1 -1
- package/components/Input/styles.module.scss +59 -59
- package/components/Input/styles.module.scss.d.ts +23 -23
- package/components/LinkList/LinkList.d.ts +41 -41
- package/components/LinkList/index.d.ts +3 -3
- package/components/LinkList/index.js +1 -1
- package/components/LinkList/styles.module.scss +147 -147
- package/components/LinkList/styles.module.scss.d.ts +26 -26
- package/components/List/List.d.ts +9 -9
- package/components/List/index.d.ts +3 -3
- package/components/List/index.js +1 -1
- package/components/List/styles.module.scss +11 -11
- package/components/List/styles.module.scss.d.ts +10 -10
- package/components/Loader/Loader.d.ts +32 -32
- package/components/Loader/Loader.d.ts.map +1 -1
- package/components/Loader/index.d.ts +3 -3
- package/components/Loader/index.js +1 -1
- package/components/Loader/styles.module.scss +194 -194
- package/components/Logo/Logo.d.ts +17 -17
- package/components/Logo/index.d.ts +3 -3
- package/components/Logo/index.js +1 -1
- package/components/Modal/Modal.d.ts +69 -69
- package/components/Modal/index.d.ts +3 -3
- package/components/Modal/index.js +1 -1
- package/components/Modal/styles.module.scss +245 -243
- package/components/Modal/styles.module.scss.d.ts +41 -41
- package/components/NotificationPanel/NotificationPanel.d.ts +47 -47
- package/components/NotificationPanel/index.d.ts +3 -3
- package/components/NotificationPanel/index.js +1 -1
- package/components/NotificationPanel/styles.module.scss +153 -153
- package/components/NotificationPanel/styles.module.scss.d.ts +33 -33
- package/components/Portal/index.d.ts +12 -12
- package/components/Portal/index.js +1 -1
- package/components/RadioButton/RadioButton.d.ts +30 -30
- package/components/RadioButton/index.d.ts +3 -3
- package/components/RadioButton/index.js +1 -1
- package/components/RadioButton/styles.module.scss +236 -236
- package/components/RadioButton/styles.module.scss.d.ts +23 -23
- package/components/Slider/Slider.d.ts +19 -19
- package/components/Slider/SliderUtils.d.ts +40 -40
- package/components/Slider/index.d.ts +3 -3
- package/components/Slider/index.js +1 -1
- package/components/Slider/styles.module.scss +85 -85
- package/components/Slider/styles.module.scss.d.ts +19 -19
- package/components/Spacer/Spacer.d.ts +12 -12
- package/components/Spacer/index.d.ts +3 -3
- package/components/Spacer/index.js +1 -1
- package/components/Spacer/styles.module.scss +47 -47
- package/components/Spacer/styles.module.scss.d.ts +22 -22
- package/components/Textarea/Textarea.d.ts +36 -36
- package/components/Textarea/index.d.ts +3 -3
- package/components/Textarea/index.js +1 -1
- package/components/Textarea/styles.module.scss +57 -57
- package/components/Textarea/styles.module.scss.d.ts +26 -26
- package/components/Tile/Tile.d.ts +33 -33
- package/components/Tile/index.d.ts +3 -3
- package/components/Tile/index.js +1 -1
- package/components/Tile/styles.module.scss +115 -115
- package/components/Tile/styles.module.scss.d.ts +18 -18
- package/components/Title/Title.d.ts +25 -25
- package/components/Title/index.d.ts +3 -3
- package/components/Title/index.js +1 -1
- package/components/Title/styles.module.scss +27 -27
- package/components/Title/styles.module.scss.d.ts +15 -15
- package/components/Validation/Validation.d.ts +16 -16
- package/components/Validation/index.d.ts +3 -3
- package/components/Validation/index.js +1 -1
- package/components/Validation/styles.module.scss +18 -18
- package/components/Validation/styles.module.scss.d.ts +10 -10
- package/constants-075356e2.js +2 -0
- package/constants-075356e2.js.map +1 -0
- package/constants.d.ts +92 -91
- package/constants.d.ts.map +1 -1
- package/grid-c105cad1.js +2 -0
- package/grid-c105cad1.js.map +1 -0
- package/hoc/withBreakpoint/index.d.ts +4 -0
- package/hoc/withBreakpoint/index.d.ts.map +1 -0
- package/hoc/withBreakpoint/index.js +2 -0
- package/{components/__mocks__ → hoc/withBreakpoint}/index.js.map +0 -0
- package/hoc/withBreakpoint/withBreakpoint.d.ts +14 -0
- package/hoc/withBreakpoint/withBreakpoint.d.ts.map +1 -0
- package/hooks/focus-utils.d.ts +6 -6
- package/hooks/useBreakpoint.d.ts +13 -12
- package/hooks/useBreakpoint.d.ts.map +1 -1
- package/hooks/useFocusToggle.d.ts +13 -13
- package/hooks/useFocusTrap.d.ts +3 -3
- package/hooks/useHover.d.ts +11 -11
- package/hooks/useIcons.d.ts +3 -3
- package/hooks/useIntersectionObserver.d.ts +10 -10
- package/hooks/useIsVisible.d.ts +9 -9
- package/hooks/useLayoutEvent.d.ts +8 -8
- package/hooks/useLayoutEvent.d.ts.map +1 -1
- package/hooks/usePrevious.d.ts +7 -0
- package/hooks/usePrevious.d.ts.map +1 -0
- package/hooks/useSize.d.ts +8 -8
- package/hooks/useSticky.d.ts +20 -20
- package/hooks/useWindowSize.d.ts +4 -4
- package/hooks/useWindowSize.d.ts.map +1 -1
- package/index-d1c9177a.js +2 -0
- package/index-d1c9177a.js.map +1 -0
- package/index.d.ts +13 -12
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/package.json +2 -1
- package/scss/_body.scss +11 -11
- package/scss/_breakpoints.scss +16 -16
- package/scss/_font-settings.scss +8 -8
- package/scss/_fonts.scss +112 -112
- package/scss/_grid.scss +1 -1
- package/scss/_input.scss +176 -176
- package/scss/_palette.scss +136 -136
- package/scss/_print.scss +176 -176
- package/scss/_reset.scss +13 -13
- package/scss/_spacers.scss +40 -40
- package/scss/_title.scss +59 -59
- package/scss/helsenorge.scss +8 -8
- package/scss/typography.module.scss +154 -154
- package/theme/currys/color.d.ts +3 -3
- package/theme/currys/index.d.ts +2 -2
- package/theme/currys/spacing.d.ts +3 -3
- package/theme/grid.d.ts +21 -20
- package/theme/grid.d.ts.map +1 -1
- package/theme/index.d.ts +99 -98
- package/theme/index.d.ts.map +1 -1
- package/theme/palette.d.ts +67 -67
- package/theme/spacers.d.ts +18 -18
- package/useBreakpoint-8209ae3c.js +2 -0
- package/useBreakpoint-8209ae3c.js.map +1 -0
- package/{useHover-9710204a.js → useHover-507fb85a.js} +2 -2
- package/useHover-507fb85a.js.map +1 -0
- package/{useIsVisible-a1f67a11.js → useIsVisible-f5d49913.js} +2 -2
- package/useIsVisible-f5d49913.js.map +1 -0
- package/usePrevious-ae293b10.js +2 -0
- package/usePrevious-ae293b10.js.map +1 -0
- package/useSticky-a572c326.js +2 -0
- package/useSticky-a572c326.js.map +1 -0
- package/useWindowSize-58f26dea.js +2 -0
- package/useWindowSize-58f26dea.js.map +1 -0
- package/utils/debounce.d.ts +7 -7
- package/utils/uuid.d.ts +2 -2
- package/utils/viewport.d.ts +1 -1
- package/AlertSignFill-e607ff43.js +0 -2
- package/AlertSignFill-e607ff43.js.map +0 -1
- package/Button-397ff5a8.js +0 -2
- package/Button-397ff5a8.js.map +0 -1
- package/Check-6291ad09.js +0 -2
- package/Check-6291ad09.js.map +0 -1
- package/Checkbox-acd12b0c.js +0 -2
- package/Checkbox-acd12b0c.js.map +0 -1
- package/ChevronUp-4b6797ef.js +0 -2
- package/ChevronUp-4b6797ef.js.map +0 -1
- package/Close-060173de.js +0 -2
- package/Close-060173de.js.map +0 -1
- package/FormGroup-b2b6efe0.js.map +0 -1
- package/Icon-537c6b21.js +0 -2
- package/Icon-537c6b21.js.map +0 -1
- package/Input-59ca2467.js +0 -2
- package/Input-59ca2467.js.map +0 -1
- package/Loader-bc13d060.js.map +0 -1
- package/Modal-3c7f9f93.js +0 -2
- package/Modal-3c7f9f93.js.map +0 -1
- package/RadioButton-c173d440.js.map +0 -1
- package/Textarea-78e20c9a.js.map +0 -1
- package/Title-9df559dd.js.map +0 -1
- package/Validation-16a8bdcd.js +0 -2
- package/Validation-16a8bdcd.js.map +0 -1
- package/_rollupPluginBabelHelpers-b8ef6dd9.js +0 -2
- package/_rollupPluginBabelHelpers-b8ef6dd9.js.map +0 -1
- package/color-a10c7892.js +0 -2
- package/color-a10c7892.js.map +0 -1
- package/components/Modal/__mocks__/IntersectionObserver.d.ts +0 -6
- package/components/Modal/__mocks__/IntersectionObserver.d.ts.map +0 -1
- package/components/__mocks__/index.js +0 -2
- package/constants-eb74321e.js +0 -2
- package/constants-eb74321e.js.map +0 -1
- package/grid-11a70eb7.js +0 -2
- package/grid-11a70eb7.js.map +0 -1
- package/index-0e78dfa0.js +0 -2
- package/index-0e78dfa0.js.map +0 -1
- package/useBreakpoint-552af2b9.js +0 -2
- package/useBreakpoint-552af2b9.js.map +0 -1
- package/useHover-9710204a.js.map +0 -1
- package/useIsVisible-a1f67a11.js.map +0 -1
- package/useSticky-d61d1f0b.js +0 -2
- package/useSticky-d61d1f0b.js.map +0 -1
- package/useWindowSize-750f9b68.js +0 -2
- package/useWindowSize-750f9b68.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as t,b as e}from"./_rollupPluginBabelHelpers-6b3099b0.js";import{_ as n}from"./_tslib-51c8a283.js";import o from"react";import{A as r,I as l}from"./constants-075356e2.js";import{g as i}from"./color-e7d082c1.js";import{L as a}from"./Loader-bf89238f.js";import{u as s}from"./useHover-507fb85a.js";import{a as d}from"./useWindowSize-58f26dea.js";import{b as u}from"./grid-c105cad1.js";import{c}from"./index-9b84fabc.js";import m from"./components/Button/styles.module.scss";var f={primary:"blueberry",warning:"banana",danger:"cherry"},b=function(t,e){return e&&e<u.md&&t?l.Small:t?l.Medium:l.XSmall},p=o.forwardRef((function(u,p){var v,_,g,h=u.id,w=u.children,j=u.className,E=void 0===j?"":j,y=u.fluid,k=void 0!==y&&y,N=u.intent,I=void 0===N?"primary":N,B=u.inverted,C=void 0!==B&&B,H=u.htmlMarkup,O=void 0===H?"button":H,S=u.onClick,z=u.large,F=void 0!==z&&z,M=u.loading,x=void 0!==M&&M,A=u.variant,L=void 0===A?"fill":A,R=u.disabled,X=void 0!==R&&R,P=u.ellipsis,W=void 0!==P&&P,q=u.testId,D=u.href,G=u.target,J=n(u,["id","children","className","fluid","intent","inverted","htmlMarkup","onClick","large","loading","variant","disabled","ellipsis","testId","href","target"]),K=function(t){var e,n,o,r,l=null,i=null;void 0!==(null===(n=null===(e=t[0])||void 0===e?void 0:e.props)||void 0===n?void 0:n.svgIcon)&&(l=t.shift()),void 0!==(null===(r=null===(o=t[t.length-1])||void 0===o?void 0:o.props)||void 0===r?void 0:r.svgIcon)&&(i=t.pop());var a=t.filter((function(t){return t}));return[l,i,a.length>0?a:null]}(o.Children.toArray(w)),Q=t(K,3),T=Q[0],U=Q[1],V=Q[2],Y=s(p),Z=Y.hoverRef,$=Y.isHovered,tt=function(t,e,n,o,r){return e?i("neutral",600):t&&!o||!t&&o?"white":i(f[n],r?700:600)}("fill"===L,X,I,C,$),et=d(),nt="fill"===L,ot="outline"===L,rt="borderless"===L,lt="warning"===I,it="danger"===I,at=!(!T&&!U||x),st=Object.assign({},J),dt=c(m.button,(e(v={},m["button--fluid"],k),e(v,m["button--large"],F),e(v,m["button--warning"],lt),e(v,m["button--danger"],it),e(v,m["button--inverted"],C),e(v,m["button--fill"],nt),e(v,m["button--outline"],ot),e(v,m["button--borderless"],rt),e(v,m["button--with-icon"],at),e(v,m["button--ellipsis"],W),v),E),ut=c(m.button__content,(e(_={},m["button__content--warning"],lt),e(_,m["button__content--danger"],it),e(_,m["button__content--fill"],nt),e(_,m["button__content--borderless"],rt),e(_,m["button__content--with-icon"],at),e(_,m["button__content--large"],F),e(_,m["button__content--ellipsis"],W),e(_,m["button__content--inverted"],C),e(_,m["button__content--fluid"],k),_)),ct=c(m["button__left-fluid-content"],(e(g={},m["button__left-fluid-content--with-icon"],at),e(g,m["button__left-fluid-content--large"],F),g));function mt(t,e,n,r){var l=t&&t.props&&t.props.color?t.props.color:n;return t&&Object.keys(t).length>0?o.cloneElement(t,{size:e,color:l,isHovered:r}):null}var ft=function(){return V?o.createElement("span",{className:ut},V):null},bt=function(){return o.createElement("span",{className:m["content-wrapper"]},x?o.createElement("div",{className:m["button__left-fluid-content"]},o.createElement(a,{testId:"test-id-loader",color:"fill"!==L||C?f[I]:"white",size:"tiny"})):o.createElement(o.Fragment,null,k?o.createElement("div",{className:ct},mt(T,b(F,et.width),tt,$),ft()):o.createElement(o.Fragment,null,mt(T,b(F,et.width),tt,$),ft()),mt(U,l.XSmall,tt,$)))};return o.createElement(o.Fragment,null,"button"===O&&o.createElement("button",Object.assign({id:h,onClick:S,disabled:X,"data-testid":q,"data-analyticsid":r.Button,className:dt,ref:Z},st),bt()),"a"===O&&o.createElement("a",Object.assign({id:h,onClick:S,"data-testid":q,"data-analyticsid":r.Button,className:dt,href:D,target:G,rel:"_blank"===G?"noopener noreferrer":u.rel,ref:Z},J),bt()))}));export{p as B,f as i};
|
|
2
|
+
//# sourceMappingURL=Button-ed1c6e3f.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button-ed1c6e3f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [0.0.3-dev.3](https://github.com/helsenorge/designsystem/compare/v0.0.3-dev.2...v0.0.3-dev.3) (2020-02-04)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Bug Fixes
|
|
10
|
-
|
|
11
|
-
* replace badge width with min-width ([#112](https://github.com/helsenorge/designsystem/issues/112)) ([275bd03](https://github.com/helsenorge/designsystem/commit/275bd0300007660767ea2bfcd9c677ea5e23b725))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## [0.0.3-dev.2](https://github.com/helsenorge/designsystem/compare/v0.0.3-dev.1...v0.0.3-dev.2) (2020-02-04)
|
|
18
|
-
|
|
19
|
-
**Note:** Version bump only for package @helsenorge/designsystem-react
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## [0.0.2-dev.2](https://github.com/helsenorge/designsystem/compare/v0.0.2-dev.1...v0.0.2-dev.2) (2019-12-04)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
### Bug Fixes
|
|
29
|
-
|
|
30
|
-
* add diveboard to story ([a332f9e](https://github.com/helsenorge/designsystem/commit/a332f9e40b912bfde97e48103dc4ba817cc711d7))
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
## [0.0.1-dev.34](https://github.com/helsenorge/designsystem/compare/v0.0.1-dev.33...v0.0.1-dev.34) (2019-11-19)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
### Bug Fixes
|
|
40
|
-
|
|
41
|
-
* trigger a change ([e8ad1bf](https://github.com/helsenorge/designsystem/commit/e8ad1bfa806811133ea648ee87ef1f7a9a72b645))
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
## [0.0.1-dev.33](https://github.com/helsenorge/designsystem/compare/v0.0.1-dev.32...v0.0.1-dev.33) (2019-11-19)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
### Bug Fixes
|
|
51
|
-
|
|
52
|
-
* test to trigger release ([69aee84](https://github.com/helsenorge/designsystem/commit/69aee84c9fbfa26089b7a4f9769799f394d45617))
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [0.0.3-dev.3](https://github.com/helsenorge/designsystem/compare/v0.0.3-dev.2...v0.0.3-dev.3) (2020-02-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* replace badge width with min-width ([#112](https://github.com/helsenorge/designsystem/issues/112)) ([275bd03](https://github.com/helsenorge/designsystem/commit/275bd0300007660767ea2bfcd9c677ea5e23b725))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.0.3-dev.2](https://github.com/helsenorge/designsystem/compare/v0.0.3-dev.1...v0.0.3-dev.2) (2020-02-04)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @helsenorge/designsystem-react
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [0.0.2-dev.2](https://github.com/helsenorge/designsystem/compare/v0.0.2-dev.1...v0.0.2-dev.2) (2019-12-04)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* add diveboard to story ([a332f9e](https://github.com/helsenorge/designsystem/commit/a332f9e40b912bfde97e48103dc4ba817cc711d7))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [0.0.1-dev.34](https://github.com/helsenorge/designsystem/compare/v0.0.1-dev.33...v0.0.1-dev.34) (2019-11-19)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* trigger a change ([e8ad1bf](https://github.com/helsenorge/designsystem/commit/e8ad1bfa806811133ea648ee87ef1f7a9a72b645))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## [0.0.1-dev.33](https://github.com/helsenorge/designsystem/compare/v0.0.1-dev.32...v0.0.1-dev.33) (2019-11-19)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* test to trigger release ([69aee84](https://github.com/helsenorge/designsystem/commit/69aee84c9fbfa26089b7a4f9769799f394d45617))
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as e,b as o}from"./_rollupPluginBabelHelpers-6b3099b0.js";import r,{useState as c,useEffect as a}from"react";import{c as l}from"./index-9b84fabc.js";import{u as b}from"./uuid-fe7442b7.js";import n from"./components/Icons/Check.js";import{Icon as s}from"./components/Icons/Icon.js";import{F as i,a as t,A as m}from"./constants-075356e2.js";import{g as p}from"./color-e7d082c1.js";import d from"./components/Checkbox/styles.module.scss";var h=r.forwardRef((function(h,k){var x,f,u,v=h.className,_=h.checked,w=void 0!==_&&_,y=h.disabled,g=h.label,j=h.inputId,N=void 0===j?b():j,E=h.mode,I=h.name,C=void 0===I?N:I,F=h.variant,z=h.errorText,A=h.error,B=void 0===A?!!z:A,H=h.value,P=void 0===H?g:H,R=c(w),T=e(R,2),q=T[0],D=T[1],G=B||E===i.oninvalid,J=E===i.ondark,K=E===i.onblueberry,L=F===t.bigform,M=l(d["checkbox-wrapper"],(o(x={},d["checkbox-wrapper--with-error"],z),o(x,d["checkbox-wrapper--bigform"],L),x)),O=l(d["checkbox-label"],(o(f={},d["checkbox-label--disabled"],y),o(f,d["checkbox-label--on-dark"],J),o(f,d["checkbox-label--on-blueberry"],K),o(f,d["checkbox-label--invalid"],G),o(f,d["checkbox-label--bigform"],L),f)),Q=l(d.checkbox,v),S=l(d["checkbox__icon-wrapper"],(o(u={},d["checkbox__icon-wrapper--checked"],q),o(u,d["checkbox__icon-wrapper--disabled"],y),o(u,d["checkbox__icon-wrapper--on-dark"],J),o(u,d["checkbox__icon-wrapper--on-blueberry"],K),o(u,d["checkbox__icon-wrapper--invalid"],G),u)),U=l(d["checkbox-errors"],o({},d["checkbox-errors--bigform"],L)),V=p("blueberry",500);return y&&(V=p("neutral",400)),J&&(V=p("blueberry",200)),G&&(V=p("cherry",500)),a((function(){D(w)}),[w]),r.createElement("div",{"data-testid":h.testId,"data-analyticsid":m.Checkbox,className:M},z&&r.createElement("p",{className:U},z),r.createElement("label",{htmlFor:N,className:O},r.createElement("input",{id:N,name:C,className:Q,type:"checkbox",checked:q,disabled:y,onChange:function(){D(!q)},value:P,ref:k,"aria-invalid":B}),r.createElement("span",{className:S},q&&r.createElement(s,{color:V,className:d.checkbox__icon,svgIcon:n,size:38})),g))}));export{h as C};
|
|
2
|
+
//# sourceMappingURL=Checkbox-8e590de0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox-8e590de0.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from"react";import{p as t}from"./palette-f206f488.js";import{Icon as e}from"./components/Icons/Icon.js";import{A as s}from"./constants-075356e2.js";import r from"./components/Icons/X.js";import a from"./components/Close/styles.module.scss";import{u as n,B as m}from"./useBreakpoint-8209ae3c.js";var c=function(c){var l=n()===m.xs?38:48;return o.createElement("button",{"data-testid":c.testId,"data-analyticsid":s.Close,className:a.close,"aria-label":c.ariaLabel||"Lukk",onClick:c.onClick,role:"button"},o.createElement(e,{svgIcon:r,color:t.blueberry600,size:l}))};export{c as C};
|
|
2
|
+
//# sourceMappingURL=Close-48d39d0e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Close-48d39d0e.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as e}from"./_rollupPluginBabelHelpers-
|
|
2
|
-
//# sourceMappingURL=FormGroup-
|
|
1
|
+
import{b as e}from"./_rollupPluginBabelHelpers-6b3099b0.js";import r from"react";import{c as a}from"./index-9b84fabc.js";import o from"./components/FormGroup/styles.module.scss";import{C as t}from"./Checkbox-8e590de0.js";import{F as m,a as n,A as l}from"./constants-075356e2.js";import{R as i}from"./RadioButton-b0da1997.js";import{I as p}from"./Input-01c967ac.js";import{T as s}from"./Title-1d8708ea.js";var d=r.forwardRef((function(d,f){var u,c,g,v=d.className,_=d.mode,b=void 0===_?m.onwhite:_,w=d.variant,E=void 0===w?n.normal:w,y=d.error,j=d.name,N=b===m.ondark,h=E===n.bigform,k=a(o["form-group-wrapper"],(e(u={},o["form-group-wrapper--on-dark"],N),e(u,o["form-group-wrapper--invalid"],y),u),v),F=a(o["form-group-wrapper__title"],(e(c={},o["form-group-wrapper__title--on-dark"],N&&!y),e(c,o["form-group-wrapper__title--bigform"],h),c)),x=a(o["form-group"],e({},o["form-group--invalid"],y)),B=a(o["form-group-wrapper__errors"],e({},o["form-group-wrapper__errors--bigform"],h)),C=a(o["field-set__legend"],(e(g={},o["field-set__legend--on-dark"],N&&!y),e(g,o["field-set__legend--bigform"],h),g));return r.createElement("div",{"data-testid":d.testId,"data-analyticsid":l.FormGroup,className:k},d.title&&r.createElement(s,{className:F,htmlMarkup:"h4",appearance:"title4",margin:{marginTop:0,marginBottom:2}},d.title),r.createElement("div",{className:x},y&&r.createElement("p",{className:B},y),r.createElement("fieldset",{name:d.title,className:o["field-set"]},d.legend&&r.createElement("legend",{className:C},d.legend),r.Children.map(d.children,(function(e){if(e.type===t){var a=e.type===t;return r.cloneElement(e,{name:null!=j?j:a.valueOf.name,mode:b,variant:E,error:!!y})}if(e.type===i){var o=e.type===i;return r.cloneElement(e,{name:null!=j?j:o.valueOf.name,mode:b,variant:E,error:!!y})}if(e.type===p){var m=e.type===p;return r.cloneElement(e,{name:null!=j?j:m.valueOf.name,mode:b,variant:E,error:!!y})}return e})))))}));export{d as F};
|
|
2
|
+
//# sourceMappingURL=FormGroup-f10939e6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormGroup-f10939e6.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as e}from"./_rollupPluginBabelHelpers-6b3099b0.js";import{_ as r}from"./_tslib-51c8a283.js";import a,{useRef as t}from"react";import{c as n}from"./index-9b84fabc.js";import{F as l,a as o,A as i,I as p}from"./constants-075356e2.js";import{u as s}from"./uuid-fe7442b7.js";import{Icon as c}from"./components/Icons/Icon.js";import{g as d}from"./color-e7d082c1.js";import{u as m,B as u}from"./useBreakpoint-8209ae3c.js";import b from"./components/Input/styles.module.scss";var f;!function(e){e.text="text",e.number="number",e.email="email",e.password="password",e.search="search",e.tel="tel",e.url="url"}(f||(f={}));var w=a.forwardRef((function(w,v){var _,h,I,y=w.defaultValue,g=w.placeholder,j=w.type,x=void 0===j?f.text:j,E=w.inputId,k=void 0===E?s():E,C=w.name,N=w.transparent,L=void 0!==N&&N,O=w.icon,B=w.iconRight,R=w.mode,V=w.variant,F=w.label,S=w.error,T=w.errorText,z=w.testId,A=w.disabled,H=w.readOnly,P=w.autocomplete,X=w.afterLabelChildren,q=w.belowLabelChildren,D=r(w,["defaultValue","placeholder","type","inputId","name","transparent","icon","iconRight","mode","variant","label","error","errorText","testId","disabled","readOnly","autocomplete","afterLabelChildren","belowLabelChildren"]),G=m(),J=t(null),K=R===l.ondark,M=R===l.onblueberry,Q=R===l.oninvalid||T||S,U=V===o.bigform,W=L&&R!==l.ondark&&!Q,Y=n(b["input-wrapper"],e({},b["input-wrapper--invalid"],T)),Z=n(b["input-wrapper__label-wrapper"],(e(_={},b["input-wrapper__label-wrapper--on-dark"],K),e(_,b["input-wrapper__label-wrapper--disabled"],A),_)),$=n(b["content-wrapper"],(e(h={},b["content-wrapper--transparent"],W),e(h,b["content-wrapper--on-blueberry"],M),e(h,b["content-wrapper--on-dark"],K),e(h,b["content-wrapper--invalid"],Q),e(h,b["content-wrapper--bigform"],U),e(h,b["content-wrapper--disabled"],A),e(h,b["content-wrapper--with-icon"],O),h)),ee=n(b["content-wrapper__input"],(e(I={},b["content-wrapper__input--bigform"],U),e(I,b["content-wrapper__input--disabled"],A),I)),re=A?d("neutral",500):d("black"),ae=function(){var e=G!==u.xs&&U?p.Small:p.XSmall;return void 0!==O?a.createElement(c,{color:re,size:e,svgIcon:O}):null};return a.createElement("div",{"data-testid":z,"data-analyticsid":i.Input,className:Y},F&&a.createElement("div",{className:Z},a.createElement("label",{htmlFor:k},F),X&&a.createElement("div",{className:b["input-wrapper__after-label-children"]},X)),q&&a.createElement("div",null,q),a.createElement("div",{onClick:function(){if(J&&J.current&&O){var e=B?0:1;J.current.children[e].focus()}},ref:J,className:$},!B&&ae(),a.createElement("input",Object.assign({name:C,type:x,defaultValue:y,id:k,className:ee,ref:v,"aria-invalid":!!Q,disabled:A,placeholder:g,readOnly:H,autoComplete:P||"off"},D)),B&&ae()))}));export{w as I,f as a};
|
|
2
|
+
//# sourceMappingURL=Input-01c967ac.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input-01c967ac.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,b as a}from"./_rollupPluginBabelHelpers-
|
|
2
|
-
//# sourceMappingURL=Loader-
|
|
1
|
+
import{_ as e,b as a}from"./_rollupPluginBabelHelpers-6b3099b0.js";import r,{useState as l,useRef as t,useEffect as o}from"react";import{c as d}from"./index-9b84fabc.js";import{u as n}from"./uuid-fe7442b7.js";import i from"./components/Loader/styles.module.scss";import{A as s}from"./constants-075356e2.js";var m;!function(e){e.screen="screen",e.parent="parent"}(m||(m={}));var c=r.forwardRef((function(c,p){var v,u,_,b=c.overlay,f=c.color,y=void 0===f?b?"black":"neutral":f,w=c.size,E=void 0===w?"small":w,N=c.className,L=void 0===N?"":N,g=c.labelId,h=void 0===g?n():g,k=c.testId,j=c.center,x=c.inline,I=c.ariaLabelledById,B=c.ariaLabel,z=void 0===B?"Laster inn":B,A=l(b!==m.parent&&!x),H=e(A,2),O=H[0],P=H[1],R="small"===E,q="medium"===E,C="large"===E,D=d(i["loader-wrapper"],(a(v={},i["loader-wrapper--center"],j),a(v,i["loader-wrapper--overlay"],b),a(v,i["loader-wrapper--overlay-screen"],b===m.screen),a(v,i["loader-wrapper--overlay-parent"],b===m.parent&&O),a(v,i["loader-wrapper--inline"],x&&O),v)),F=d(i.loader,(a(u={},i["loader--small"],R),a(u,i["loader--medium"],q),a(u,i["loader--large"],C),u),L),G=d(i.loader__dot,(a(_={},i["loader__dot--small"],R),a(_,i["loader__dot--medium"],q),a(_,i["loader__dot--large"],C),a(_,i["loader__dot--banana"],"banana"===y),a(_,i["loader__dot--cherry"],"cherry"===y),a(_,i["loader__dot--kiwi"],"kiwi"===y),a(_,i["loader__dot--neutral"],"neutral"===y),a(_,i["loader__dot--plum"],"plum"===y),a(_,i["loader__dot--black"],"black"===y),a(_,i["loader__dot--white"],"white"===y),_)),J=t(null);return o((function(){var e,a,r,l;b===m.parent&&(null===(a=null===(e=J.current)||void 0===e?void 0:e.parentElement)||void 0===a?void 0:a.style)&&(J.current.parentElement.style.position="relative",P(!0)),x&&(null===(l=null===(r=J.current)||void 0===r?void 0:r.parentElement)||void 0===l?void 0:l.style)&&(J.current.parentElement.style.display="flex",P(!0))}),[]),r.createElement("div",{role:"progressbar",className:D,ref:J},O&&r.createElement("div",{"data-testid":k,"data-analyticsid":s.Loader,"aria-labelledby":I||h,className:F},r.createElement("div",{className:G}),r.createElement("div",{className:G}),r.createElement("div",{className:G}),r.createElement("div",{className:G}),!I&&r.createElement("span",{id:h,className:i["loader__hidden-text"]},z)))}));export{c as L,m as O};
|
|
2
|
+
//# sourceMappingURL=Loader-bf89238f.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loader-bf89238f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as e,b as a}from"./_rollupPluginBabelHelpers-6b3099b0.js";import t,{useEffect as o}from"react";import{c as r}from"./index-9b84fabc.js";import{p as l}from"./palette-f206f488.js";import{B as n}from"./Button-ed1c6e3f.js";import{Icon as s}from"./components/Icons/Icon.js";import{Z as c,A as i,I as m}from"./constants-075356e2.js";import d from"./components/Modal/styles.module.scss";import p from"./components/Icons/AlertSignStroke.js";import u from"./components/Icons/AlertSignFill.js";import{b as _,u as v}from"./useIsVisible-f5d49913.js";import{T as f}from"./Title-1d8708ea.js";import{u as E}from"./uuid-fe7442b7.js";import{C as b}from"./Close-48d39d0e.js";import g from"./components/Icons/CheckOutline.js";import y from"./components/Portal/index.js";var h,N;!function(e){e.normal="normal",e.warning="warning",e.error="error",e.success="success",e.image="image"}(h||(h={})),function(e){e.large="large",e.medium="medium"}(N||(N={}));var C={variant:h.normal,primaryButtonText:"OK",titleId:E(),className:"",size:N.large,zIndex:c.Modal},I=function(e,a){var o=function(e){return e===h.error?t.createElement(s,{size:m.Small,svgIcon:u,color:l.cherry500}):e===h.warning?t.createElement(s,{size:m.Small,svgIcon:p,color:l.black}):e===h.success?t.createElement(s,{size:m.Small,svgIcon:g,color:l.kiwi900}):null}(e);return o?t.createElement("div",{className:d.modal__iconWrapper},o):a?t.createElement("div",{className:d.modal__iconWrapper},t.cloneElement(a,{size:m.Small})):null},w=function(l){var s,c,m,p=t.useState(0),u=e(p,2),E=u[0],g=u[1],N=t.useRef(null),C=t.useRef(null),w=t.useRef(null),B=_(C),j=t.useRef(null),x=_(j),k=w.current&&w.current.scrollHeight>w.current.clientHeight;function T(e){"Escape"===e.key&&l.onClose&&(e.stopPropagation(),l.onClose())}function W(e){e.target&&L.current===e.target&&l.onClose&&(e.stopPropagation(),l.onClose())}var z=l.variant===h.image,L=t.useRef(null),S=l.secondaryButtonText&&(null===(c=l.secondaryButtonText)||void 0===c?void 0:c.length)>0||l.onSuccess,P=l.ariaLabelledBy?void 0:l.ariaLabel,M=l.ariaLabelledBy?l.ariaLabelledBy:l.ariaLabel?void 0:l.titleId;o((function(){var e,a=L.current;return null===(e=N.current)||void 0===e||e.focus(),document.body.style.overflow="hidden",l.disableCloseEvents||!a||S||(a.addEventListener("keydown",T),a.addEventListener("click",W)),function(){document.body.style.removeProperty("overflow"),l.disableCloseEvents||!a||S||(a.removeEventListener("keydown",T),a.removeEventListener("click",W))}}),[]);var R=r((a(s={},d["modal__title--error"],l.variant===h.error),a(s,d["modal__title--success"],l.variant===h.success),s)),A=t.createElement("div",{"data-testid":"dialog-container"},t.createElement("div",{ref:L,className:d["modal-overlay"],"data-testid":l.testId,"data-analyticsid":i.Modal,style:{zIndex:l.zIndex}},t.createElement("div",{className:d.align,ref:v()},t.createElement("div",{className:r(l.className,d.modal,d["modal--".concat(l.variant)],d["modal--".concat(l.size)]),role:"dialog","aria-label":P,"aria-labelledby":M},t.createElement("div",{tabIndex:E,ref:N,onBlur:function(){return g(-1)}}),t.createElement("div",{className:r(d.modal__shadow,d["modal__shadow--top"],a({},d["modal__shadow--show"],!B&&k))}),t.createElement("div",{className:r(d.modal__contentWrapper,a({},d["modal__contentWrapper--image"],z)),ref:w},!l.noCloseButton&&t.createElement("div",{className:d.modal__closeWrapper},t.createElement("div",{className:r(d.modal__closeWrapper__close)},t.createElement(b,{onClick:l.onClose,ariaLabel:l.ariaLabelCloseBtn}))),t.createElement("div",{className:r(d["modal__contentWrapper__scroll--".concat(l.size)],a({},d["modal__contentWrapper__scroll--image"],z))},t.createElement("div",{ref:C}),t.createElement("div",{className:d.modal__contentWrapper__title},I(l.variant,l.icon),t.createElement(f,{id:M,htmlMarkup:"h3",appearance:"title3",className:R},l.title),l.afterTitleChildren&&t.createElement("div",{className:d.modal__afterTitleChildren},l.afterTitleChildren)),z&&t.createElement("div",null,t.createElement("div",{className:d.modal__contentWrapper__imageWrapper},l.children),t.createElement("span",{className:d.modal__contentWrapper__imageDescription},l.description)),!z&&l.children&&t.createElement("div",null,l.children),!z&&!l.children&&t.createElement("p",{className:d.modal__description},l.description),t.createElement("div",{ref:j}))),t.createElement("div",{className:r(d.modal__shadow,d["modal__shadow--bottom"],a({},d["modal__shadow--show"],!x&&k))}),S&&t.createElement("div",{className:r(d["modal__call-to-action"],d["modal__call-to-action--".concat(l.size)])},l.onSuccess&&t.createElement(n,{onClick:l.onSuccess},l.primaryButtonText),l.secondaryButtonText&&(null===(m=l.secondaryButtonText)||void 0===m?void 0:m.length)>0&&t.createElement(n,{variant:"borderless",onClick:l.onClose},l.secondaryButtonText))))));if(l.printable){return t.createElement(y,{className:"print-modal",testId:"print-modal"},t.createElement("style",{media:"print"},"body > *:not(.".concat("print-modal",") {display: none;}")),A)}return A};w.defaultProps=C;export{w as M,h as a,N as b};
|
|
2
|
+
//# sourceMappingURL=Modal-240f0699.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal-240f0699.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/README.md
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
# `designsystem-react`
|
|
2
|
-
|
|
3
|
-
<h1>OUTDATED -> should refer to confluence for now</h1>
|
|
4
|
-
|
|
5
|
-
<a href="https://www.npmjs.com/package/@helsenorge/designsystem-react/v/latest">
|
|
6
|
-
<img src="https://img.shields.io/npm/v/@helsenorge/designsystem-react/latest" />
|
|
7
|
-
</a>
|
|
8
|
-
<a href="https://www.npmjs.com/package/@helsenorge/designsystem-react/v/next">
|
|
9
|
-
<img src="https://img.shields.io/npm/v/@helsenorge/designsystem-react/next" />
|
|
10
|
-
</a>
|
|
11
|
-
|
|
12
|
-
## 👋 Introduction
|
|
13
|
-
|
|
14
|
-
**TODO: Add introduction text**
|
|
15
|
-
|
|
16
|
-
## 🚀 Quick start
|
|
17
|
-
|
|
18
|
-
To install and use our React components simply run the following commands in your favorite terminal:
|
|
19
|
-
|
|
20
|
-
### yarn
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
yarn add @helsenorge/designsystem-react
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### npm
|
|
27
|
-
|
|
28
|
-
```npm
|
|
29
|
-
npm install @helsenorge/designsystem-react
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
### Usage example
|
|
33
|
-
|
|
34
|
-
This is example takes basis in the file `App.tsx/js` from the out-of-the-box project using CRA.
|
|
35
|
-
|
|
36
|
-
```typescript
|
|
37
|
-
import React from 'react';
|
|
38
|
-
import logo from './logo.svg';
|
|
39
|
-
import './App.css';
|
|
40
|
-
|
|
41
|
-
import { CommonButton } from '@helsenorge/designsystem-react';
|
|
42
|
-
|
|
43
|
-
const App: React.FC = () => {
|
|
44
|
-
return (
|
|
45
|
-
<div className="App">
|
|
46
|
-
<header className="App-header">
|
|
47
|
-
<img src={logo} className="App-logo" alt="logo" />
|
|
48
|
-
<p>
|
|
49
|
-
Edit <code>src/App.tsx</code> and save to reload.
|
|
50
|
-
</p>
|
|
51
|
-
<a className="App-link" href="https://reactjs.org" target="_blank" rel="noopener noreferrer">
|
|
52
|
-
Learn React
|
|
53
|
-
</a>
|
|
54
|
-
</header>
|
|
55
|
-
<CommonButton>Hello world!</CommonButton>
|
|
56
|
-
</div>
|
|
57
|
-
);
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export default App;
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
## 📓 Documentation
|
|
64
|
-
|
|
65
|
-
A more detailed getting started manual can be viewed [here](https://helsenorge.design/pattern-library). For a full overview of all the
|
|
66
|
-
available components and their specification, head over [here](https://helsenorge.design/pattern-library/components)
|
|
67
|
-
|
|
68
|
-
To read the full design system documentation head over to our web page [Helsenorge Design](https://helsenorge.design/). Here you can read
|
|
69
|
-
about our use of design principles, design language, patterns, compositions, live code examples and techincal component specifications.
|
|
1
|
+
# `designsystem-react`
|
|
2
|
+
|
|
3
|
+
<h1>OUTDATED -> should refer to confluence for now</h1>
|
|
4
|
+
|
|
5
|
+
<a href="https://www.npmjs.com/package/@helsenorge/designsystem-react/v/latest">
|
|
6
|
+
<img src="https://img.shields.io/npm/v/@helsenorge/designsystem-react/latest" />
|
|
7
|
+
</a>
|
|
8
|
+
<a href="https://www.npmjs.com/package/@helsenorge/designsystem-react/v/next">
|
|
9
|
+
<img src="https://img.shields.io/npm/v/@helsenorge/designsystem-react/next" />
|
|
10
|
+
</a>
|
|
11
|
+
|
|
12
|
+
## 👋 Introduction
|
|
13
|
+
|
|
14
|
+
**TODO: Add introduction text**
|
|
15
|
+
|
|
16
|
+
## 🚀 Quick start
|
|
17
|
+
|
|
18
|
+
To install and use our React components simply run the following commands in your favorite terminal:
|
|
19
|
+
|
|
20
|
+
### yarn
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
yarn add @helsenorge/designsystem-react
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### npm
|
|
27
|
+
|
|
28
|
+
```npm
|
|
29
|
+
npm install @helsenorge/designsystem-react
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Usage example
|
|
33
|
+
|
|
34
|
+
This is example takes basis in the file `App.tsx/js` from the out-of-the-box project using CRA.
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import React from 'react';
|
|
38
|
+
import logo from './logo.svg';
|
|
39
|
+
import './App.css';
|
|
40
|
+
|
|
41
|
+
import { CommonButton } from '@helsenorge/designsystem-react';
|
|
42
|
+
|
|
43
|
+
const App: React.FC = () => {
|
|
44
|
+
return (
|
|
45
|
+
<div className="App">
|
|
46
|
+
<header className="App-header">
|
|
47
|
+
<img src={logo} className="App-logo" alt="logo" />
|
|
48
|
+
<p>
|
|
49
|
+
Edit <code>src/App.tsx</code> and save to reload.
|
|
50
|
+
</p>
|
|
51
|
+
<a className="App-link" href="https://reactjs.org" target="_blank" rel="noopener noreferrer">
|
|
52
|
+
Learn React
|
|
53
|
+
</a>
|
|
54
|
+
</header>
|
|
55
|
+
<CommonButton>Hello world!</CommonButton>
|
|
56
|
+
</div>
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export default App;
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## 📓 Documentation
|
|
64
|
+
|
|
65
|
+
A more detailed getting started manual can be viewed [here](https://helsenorge.design/pattern-library). For a full overview of all the
|
|
66
|
+
available components and their specification, head over [here](https://helsenorge.design/pattern-library/components)
|
|
67
|
+
|
|
68
|
+
To read the full design system documentation head over to our web page [Helsenorge Design](https://helsenorge.design/). Here you can read
|
|
69
|
+
about our use of design principles, design language, patterns, compositions, live code examples and techincal component specifications.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as a}from"./_rollupPluginBabelHelpers-
|
|
2
|
-
//# sourceMappingURL=RadioButton-
|
|
1
|
+
import{b as a}from"./_rollupPluginBabelHelpers-6b3099b0.js";import r from"react";import{c as o}from"./index-9b84fabc.js";import{u as e}from"./uuid-fe7442b7.js";import t from"./components/RadioButton/styles.module.scss";import{F as i,a as d,A as l}from"./constants-075356e2.js";var n=r.forwardRef((function(n,b){var s,u,m,p=n.className,c=n.defaultChecked,f=void 0!==c&&c,v=n.disabled,y=n.label,g=n.inputId,k=void 0===g?e():g,w=n.mode,N=n.name,h=void 0===N?k:N,j=n.variant,E=n.errorText,R=n.error,x=void 0===R?!!E:R,B=n.value,C=void 0===B?y:B,F=x||w===i.oninvalid,I=w===i.ondark,A=w===i.onblueberry,H=j===d.bigform,P=o(t["radio-button-wrapper"],(a(s={},t["radio-button-wrapper--with-error"],E),a(s,t["radio-button-wrapper--bigform"],H),s)),T=o(t["radio-button-label"],(a(u={},t["radio-button-label--disabled"],v),a(u,t["radio-button-label--on-dark"],I),a(u,t["radio-button-label--on-blueberry"],A),a(u,t["radio-button-label--invalid"],F),a(u,t["radio-button-label--bigform"],H),u)),_=o(t["radio-button"],(a(m={},t["radio-button--on-dark"],I),a(m,t["radio-button--disabled"],v),a(m,t["radio-button--on-blueberry"],A),a(m,t["radio-button--invalid"],F),m),p),q=o(t["radio-button-errors"],a({},t["radio-button-errors--bigform"],H));return r.createElement("div",{"data-testid":n.testId,"data-analyticsid":l.RadioButton,className:P},E&&r.createElement("p",{className:q},E),r.createElement("label",{htmlFor:k,className:T},r.createElement("input",{id:k,name:h,className:_,type:"radio",disabled:v,value:C,ref:b,"aria-invalid":x,defaultChecked:f}),y))}));export{n as R};
|
|
2
|
+
//# sourceMappingURL=RadioButton-b0da1997.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioButton-b0da1997.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,b as a}from"./_rollupPluginBabelHelpers-
|
|
2
|
-
//# sourceMappingURL=Textarea-
|
|
1
|
+
import{_ as e,b as a}from"./_rollupPluginBabelHelpers-6b3099b0.js";import{_ as r}from"./_tslib-51c8a283.js";import t,{useState as n,useRef as l,useEffect as o}from"react";import{c as i}from"./index-9b84fabc.js";import s from"./components/Textarea/styles.module.scss";import{F as d,A as c}from"./constants-075356e2.js";import{u as m}from"./uuid-fe7442b7.js";var p=t.forwardRef((function(p,u){var b,v,w,x=p.maxCharacters,f=p.maxText,_=p.testId,h=p.defaultValue,g=p.marginBottom,E=p.transparent,T=p.mode,C=p.label,j=p.textareaId,N=void 0===j?m():j,R=p.minRows,k=void 0===R?3:R,y=p.maxRows,B=void 0===y?10:y,I=p.grow,L=p.errorText,H=p.afterLabelChildren,V=p.belowLabelChildren,F=r(p,["maxCharacters","maxText","testId","defaultValue","marginBottom","transparent","mode","label","textareaId","minRows","maxRows","grow","errorText","afterLabelChildren","belowLabelChildren"]),A=n(k),M=e(A,2),O=M[0],P=M[1],q=n(h||""),z=e(q,2),D=z[0],G=z[1],J=l(null),K=function(e){var a=e.rows;e.rows=k;var r=Math.floor((e.scrollHeight-16)/28);r===a&&(e.rows=r),r>=B&&(e.rows=B,e.scrollTop=e.scrollHeight),P(r<B?r:B)},Q=T===d.ondark,S=T===d.onblueberry,U=x&&D.length>x,W=T===d.oninvalid||L||U,X=i(s.textarea,(a(b={},s["textarea--gutterBottom"],g),a(b,s["textarea--invalid"],L),b)),Y=i(s["textarea__label-wrapper"],a({},s["textarea__label-wrapper--on-dark"],Q)),Z=i(s["content-wrapper"],(a(v={},s["content-wrapper--transparent"],E),a(v,s["content-wrapper--on-blueberry"],S),a(v,s["content-wrapper--on-dark"],Q),a(v,s["content-wrapper--invalid"],W),a(v,s["content-wrapper--disabled"],p.disabled),v)),$=i(s["content-wrapper__input"],a({},s["content-wrapper__input--disabled"],p.disabled)),ee=i(s["textarea__counter-wrapper"],(a(w={},s["textarea__counter-wrapper--on-dark"],Q),a(w,s["textarea__counter-wrapper--invalid"],W),w));return o((function(){var e,a,r;if(I&&(null===(e=J.current)||void 0===e?void 0:e.children)&&(null===(a=J.current)||void 0===a?void 0:a.children[0])){var t=null===(r=J.current)||void 0===r?void 0:r.children[0];K(t)}}),[]),t.createElement("div",{"data-testid":_,"data-analyticsid":c.Textarea,className:X},C&&t.createElement("div",{className:Y},t.createElement("label",{htmlFor:N},C),H&&t.createElement("div",{className:s["textarea__after-label-children"]},H)),V&&t.createElement("div",null,V),t.createElement("div",{className:Z,ref:J},t.createElement("textarea",Object.assign({rows:O,defaultValue:h,id:N,className:$,ref:u,onChange:function(e){I&&K(e.target),G(e.target.value)},"aria-invalid":!!W},F))),x&&t.createElement("div",{className:ee},t.createElement("p",null,"".concat(D.length,"/").concat(x," ").concat(f||"tegn"))))}));export{p as T};
|
|
2
|
+
//# sourceMappingURL=Textarea-648063a9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea-648063a9.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as t}from"./_rollupPluginBabelHelpers-
|
|
2
|
-
//# sourceMappingURL=Title-
|
|
1
|
+
import{b as t}from"./_rollupPluginBabelHelpers-6b3099b0.js";import e from"react";import{c as i}from"./index-9b84fabc.js";import r from"./components/Title/styles.module.scss";import{A as a}from"./constants-075356e2.js";var o=function(t){return Object.prototype.hasOwnProperty.call(t,"marginTop")&&Object.prototype.hasOwnProperty.call(t,"marginBottom")},l=e.forwardRef((function(l,m){var n,s=l.id,c=l.children,p=l.className,d=l.htmlMarkup,f=void 0===d?"h1":d,g=l.appearance,u=void 0===g?"title1":g,b=l.margin,y=void 0===b?0:b,T=l.testId,h=i(r.title,(t(n={},r["title--feature"],"titleFeature"===u),t(n,r["title--title1"],"title1"===u),t(n,r["title--title2"],"title2"===u),t(n,r["title--title3"],"title3"===u),t(n,r["title--title4"],"title4"===u),t(n,r["title--title5"],"title5"===u),n),p),j=f,v=o(y)?{marginTop:"".concat(y.marginTop,"rem"),marginBottom:"".concat(y.marginBottom,"rem")}:{marginTop:"".concat(y,"rem"),marginBottom:"".concat(y,"rem")};return e.createElement(j,{id:s,className:h,style:v,ref:m,"data-testid":T,"data-analyticsid":a.Title},c)}));export{l as T,o as i};
|
|
2
|
+
//# sourceMappingURL=Title-1d8708ea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Title-1d8708ea.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import r from"react";import{c as e}from"./index-9b84fabc.js";import{F as a}from"./FormGroup-f10939e6.js";import t from"./components/Validation/styles.module.scss";import{A as o}from"./constants-075356e2.js";var s=r.forwardRef((function(s,m){var n=s.errorSummary,i=s.className,l=e(t.validation,i);return r.createElement(r.Fragment,null,r.createElement("div",{"data-testid":s.testId,"data-analyticsid":o.Validation,className:l},r.Children.map(s.children,(function(e){return e.type===a?r.cloneElement(e,{className:n?t["form-group-wrapper--error-sibling"]:""}):e}))),n&&r.createElement("p",{className:t.validation__errors},n))}));export{s as V};
|
|
2
|
+
//# sourceMappingURL=Validation-c196f3f2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Validation-c196f3f2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function t(r){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(r)}function r(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function n(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],e=!0,o=!1,u=void 0;try{for(var i,a=t[Symbol.iterator]();!(e=(i=a.next()).done)&&(n.push(i.value),!r||n.length!==r);e=!0);}catch(t){o=!0,u=t}finally{try{e||null==a.return||a.return()}finally{if(o)throw u}}return n}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}export{n as _,t as a,r as b};
|
|
2
|
+
//# sourceMappingURL=_rollupPluginBabelHelpers-6b3099b0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_rollupPluginBabelHelpers-6b3099b0.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-e7d082c1.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare type AnchorLinkTargets = '_self' | '_blank' | '_parent';
|
|
3
|
-
interface AnchorLinkProps {
|
|
4
|
-
/** Sets the content of the <a> tag */
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
/** URL to link to */
|
|
7
|
-
href: string;
|
|
8
|
-
/** Gives a unique id to the anchor-link :) */
|
|
9
|
-
id?: string;
|
|
10
|
-
/** Adds custom classes to the element. */
|
|
11
|
-
className?: string;
|
|
12
|
-
/** Sets the target type of the <a> tag. _blank adds an arrow icon at the end of the link */
|
|
13
|
-
target?: AnchorLinkTargets;
|
|
14
|
-
/** Sets the data-testid attribute. */
|
|
15
|
-
testId?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const AnchorLink: React.ForwardRefExoticComponent<AnchorLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
18
|
-
export default AnchorLink;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type AnchorLinkTargets = '_self' | '_blank' | '_parent';
|
|
3
|
+
interface AnchorLinkProps {
|
|
4
|
+
/** Sets the content of the <a> tag */
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/** URL to link to */
|
|
7
|
+
href: string;
|
|
8
|
+
/** Gives a unique id to the anchor-link :) */
|
|
9
|
+
id?: string;
|
|
10
|
+
/** Adds custom classes to the element. */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Sets the target type of the <a> tag. _blank adds an arrow icon at the end of the link */
|
|
13
|
+
target?: AnchorLinkTargets;
|
|
14
|
+
/** Sets the data-testid attribute. */
|
|
15
|
+
testId?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const AnchorLink: React.ForwardRefExoticComponent<AnchorLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
18
|
+
export default AnchorLink;
|
|
19
19
|
//# sourceMappingURL=AnchorLink.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AnchorLink from './AnchorLink';
|
|
2
|
-
export * from './AnchorLink';
|
|
3
|
-
export default AnchorLink;
|
|
1
|
+
import AnchorLink from './AnchorLink';
|
|
2
|
+
export * from './AnchorLink';
|
|
3
|
+
export default AnchorLink;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from"react";import{Icon as e}from"../Icons/Icon.js";import{A as o,I as s}from"../../constants-075356e2.js";import t from"../Icons/ArrowUpRight.js";import{g as a}from"../../color-e7d082c1.js";import{u as i}from"../../useHover-507fb85a.js";import l from"./styles.module.scss";import{c}from"../../index-9b84fabc.js";import"../../_tslib-51c8a283.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../_rollupPluginBabelHelpers-6b3099b0.js";var m=r.forwardRef((function(m,n){var d=m.id,f=m.href,p=m.children,b=m.className,j=m.target,u=void 0===j?"_self":j,v=m.testId,h="_blank"===u,g=i(n,void 0,!1),I=g.hoverRef,_=g.isHovered,k=c(l.anchorlink,null!=b?b:"");return r.createElement("a",{id:d,href:f,className:k,target:u,rel:h?"noopener noreferrer":void 0,ref:I,"data-testid":v,"data-analyticsid":o.AnchorLink},p,h&&r.createElement(e,{className:l.anchorlink__icon,svgIcon:t,color:a("blueberry",600),hoverColor:a("blueberry",700),size:s.XSmall,isHovered:_}))}));export default m;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|