@helsenorge/designsystem-react 1.0.0-beta103 → 1.0.0-beta107
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-7e82091f.js +2 -0
- package/Button-7e82091f.js.map +1 -0
- package/CHANGELOG.md +52 -52
- package/Checkbox-f2418dc5.js +2 -0
- package/Checkbox-f2418dc5.js.map +1 -0
- package/Close-d81081c8.js +2 -0
- package/Close-d81081c8.js.map +1 -0
- package/FormGroup-af33981a.js +2 -0
- package/FormGroup-af33981a.js.map +1 -0
- package/Input-31d7accc.js +2 -0
- package/Input-31d7accc.js.map +1 -0
- package/{Loader-fa16a352.js → Loader-bc13d060.js} +2 -2
- package/Loader-bc13d060.js.map +1 -0
- package/Modal-ff546be0.js +2 -0
- package/Modal-ff546be0.js.map +1 -0
- package/README.md +69 -69
- package/{RadioButton-fe4bbd36.js → RadioButton-c173d440.js} +2 -2
- package/RadioButton-c173d440.js.map +1 -0
- package/{Textarea-e1d1144c.js → Textarea-78e20c9a.js} +2 -2
- package/Textarea-78e20c9a.js.map +1 -0
- package/{Title-af53f589.js → Title-9df559dd.js} +2 -2
- package/Title-9df559dd.js.map +1 -0
- package/{Validation-fd3f7f58.js → Validation-4041c083.js} +2 -2
- package/Validation-4041c083.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 +41 -39
- package/components/Button/Button.d.ts.map +1 -1
- package/components/Button/componentdata.json +19 -0
- 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 -155
- package/components/ExpanderList/styles.module.scss.d.ts +28 -27
- 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 -23
- package/components/HighlightBox/HighlightBox.d.ts.map +1 -1
- package/components/HighlightBox/componentdata.json +19 -0
- package/components/HighlightBox/index.d.ts +3 -3
- package/components/HighlightBox/index.js +1 -1
- package/components/HighlightBox/styles.module.scss +174 -89
- package/components/Icons/ActiveMonitoring.d.ts +4 -4
- package/components/Icons/AcupunctureBack.d.ts +4 -4
- 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/AlertSignFill.d.ts +4 -4
- package/components/Icons/AlertSignStroke.d.ts +4 -4
- package/components/Icons/Amputation.d.ts +4 -4
- package/components/Icons/Anxiety.d.ts +4 -4
- package/components/Icons/Apple.d.ts +4 -4
- package/components/Icons/Archive.d.ts +4 -4
- package/components/Icons/ArmFlexing.d.ts +4 -4
- package/components/Icons/ArrowLeft.d.ts +4 -4
- package/components/Icons/ArrowRight.d.ts +4 -4
- package/components/Icons/ArrowUpRight.d.ts +4 -4
- package/components/Icons/Attachment.d.ts +4 -4
- package/components/Icons/Atv.d.ts +4 -4
- package/components/Icons/Avatar.d.ts +4 -4
- package/components/Icons/AwakePersonOnPillow.d.ts +4 -4
- package/components/Icons/Baby.d.ts +4 -4
- package/components/Icons/BandAid.d.ts +4 -4
- package/components/Icons/BeerAndPills.d.ts +4 -4
- package/components/Icons/Bell.d.ts +4 -4
- package/components/Icons/Bike.d.ts +4 -4
- package/components/Icons/BirthControl.d.ts +4 -4
- package/components/Icons/BirthdayCake.d.ts +4 -4
- package/components/Icons/Boat.d.ts +4 -4
- package/components/Icons/Body.d.ts +4 -4
- package/components/Icons/Brain.d.ts +4 -4
- package/components/Icons/BreastReconstruction.d.ts +4 -4
- package/components/Icons/BreastRemoval.d.ts +4 -4
- package/components/Icons/Breasts.d.ts +4 -4
- package/components/Icons/BrokenHeart.d.ts +4 -4
- package/components/Icons/BrokenPuzzle.d.ts +4 -4
- package/components/Icons/Bus.d.ts +4 -4
- package/components/Icons/Calendar.d.ts +4 -4
- package/components/Icons/CalendarChange.d.ts +4 -4
- package/components/Icons/CalendarCheck.d.ts +4 -4
- package/components/Icons/CalendarEvent.d.ts +4 -4
- package/components/Icons/CalendarSave.d.ts +4 -4
- package/components/Icons/Cancer.d.ts +4 -4
- package/components/Icons/Car.d.ts +4 -4
- package/components/Icons/Change.d.ts +4 -4
- package/components/Icons/Check.d.ts +4 -4
- package/components/Icons/CheckOutline.d.ts +4 -4
- package/components/Icons/Chest.d.ts +4 -4
- package/components/Icons/ChevronDown.d.ts +4 -4
- package/components/Icons/ChevronLeft.d.ts +4 -4
- package/components/Icons/ChevronRight.d.ts +4 -4
- package/components/Icons/ChevronUp.d.ts +4 -4
- package/components/Icons/ChevronsDown.d.ts +4 -4
- package/components/Icons/ChevronsUp.d.ts +4 -4
- package/components/Icons/ChildPlaying.d.ts +4 -4
- package/components/Icons/Cigarette.d.ts +4 -4
- package/components/Icons/Contacts.d.ts +4 -4
- package/components/Icons/Copy.d.ts +4 -4
- package/components/Icons/CoronaCertificate.d.ts +4 -4
- package/components/Icons/Coronavirus.d.ts +4 -4
- package/components/Icons/Cough.d.ts +4 -4
- package/components/Icons/CriticalHealthInfo.d.ts +4 -4
- package/components/Icons/Cross.d.ts +4 -4
- 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/DigestiveSystem.d.ts +4 -4
- package/components/Icons/Dizzy.d.ts +4 -4
- package/components/Icons/Documents.d.ts +4 -4
- package/components/Icons/Dog.d.ts +4 -4
- package/components/Icons/DonorCard.d.ts +4 -4
- package/components/Icons/Download.d.ts +4 -4
- package/components/Icons/Draft.d.ts +4 -4
- package/components/Icons/EChat.d.ts +4 -4
- package/components/Icons/EarNoseThroat.d.ts +4 -4
- package/components/Icons/ElderlyPerson.d.ts +4 -4
- package/components/Icons/Embolization.d.ts +4 -4
- package/components/Icons/EnterFullScreen.d.ts +4 -4
- package/components/Icons/Envelope.d.ts +4 -4
- package/components/Icons/Epilepsy.d.ts +4 -4
- package/components/Icons/Eraser.d.ts +4 -4
- package/components/Icons/ErrorSignFill.d.ts +4 -4
- package/components/Icons/ErrorSignStroke.d.ts +4 -4
- package/components/Icons/EuropeanHealthCard.d.ts +4 -4
- package/components/Icons/ExitFullScreen.d.ts +4 -4
- package/components/Icons/Eye.d.ts +4 -4
- package/components/Icons/Facebook.d.ts +4 -4
- package/components/Icons/Female.d.ts +4 -4
- package/components/Icons/FemaleDoctor.d.ts +4 -4
- package/components/Icons/Ferry.d.ts +4 -4
- package/components/Icons/FingerBleed.d.ts +4 -4
- package/components/Icons/FirstAidKit.d.ts +4 -4
- package/components/Icons/FloppyDisk.d.ts +4 -4
- package/components/Icons/Football.d.ts +4 -4
- package/components/Icons/Form.d.ts +4 -4
- package/components/Icons/Forward.d.ts +4 -4
- package/components/Icons/Gallery.d.ts +4 -4
- package/components/Icons/Garden.d.ts +4 -4
- package/components/Icons/GasCan.d.ts +4 -4
- package/components/Icons/GenderIdentity.d.ts +4 -4
- package/components/Icons/Globe.d.ts +4 -4
- package/components/Icons/HandWaving.d.ts +4 -4
- package/components/Icons/HandWithDisease.d.ts +4 -4
- package/components/Icons/HealthClinic.d.ts +4 -4
- package/components/Icons/HealthWarning.d.ts +4 -4
- package/components/Icons/Heart.d.ts +4 -4
- package/components/Icons/HelpSign.d.ts +4 -4
- package/components/Icons/HelpingHand.d.ts +4 -4
- package/components/Icons/Hemodialysis.d.ts +4 -4
- package/components/Icons/Hiker.d.ts +4 -4
- package/components/Icons/Hipprosthesis.d.ts +4 -4
- package/components/Icons/History.d.ts +4 -4
- package/components/Icons/HivAndAids.d.ts +4 -4
- package/components/Icons/Home.d.ts +4 -4
- package/components/Icons/Hormone.d.ts +4 -4
- package/components/Icons/Hospital.d.ts +4 -4
- package/components/Icons/Hourglass.d.ts +4 -4
- package/components/Icons/Icon.d.ts +22 -22
- package/components/Icons/Icon.js +1 -1
- package/components/Icons/ImgFile.d.ts +4 -4
- package/components/Icons/Inbox.d.ts +4 -4
- package/components/Icons/InfoSignFill.d.ts +4 -4
- package/components/Icons/InfoSignStroke.d.ts +4 -4
- package/components/Icons/Instagram.d.ts +4 -4
- package/components/Icons/Intravenous.d.ts +4 -4
- package/components/Icons/JointPain.d.ts +4 -4
- package/components/Icons/Journal.d.ts +4 -4
- package/components/Icons/JpgFile.d.ts +4 -4
- package/components/Icons/Kidney.d.ts +4 -4
- package/components/Icons/KitchenScale.d.ts +4 -4
- package/components/Icons/Kjernejournal.d.ts +4 -4
- package/components/Icons/Laboratory.d.ts +4 -4
- package/components/Icons/LaptopBlog.d.ts +4 -4
- package/components/Icons/LawBook.d.ts +4 -4
- package/components/Icons/LightBulb.d.ts +4 -4
- package/components/Icons/List.d.ts +4 -4
- package/components/Icons/Location.d.ts +4 -4
- package/components/Icons/Lock.d.ts +4 -4
- package/components/Icons/Lungs.d.ts +4 -4
- package/components/Icons/Makeup.d.ts +4 -4
- package/components/Icons/MaleDoctor.d.ts +4 -4
- package/components/Icons/MaleDoctorAndPerson.d.ts +4 -4
- package/components/Icons/MaleGenitalia.d.ts +4 -4
- package/components/Icons/Medicine.d.ts +4 -4
- package/components/Icons/MedicineWarning.d.ts +4 -4
- package/components/Icons/MentalHealthAdult.d.ts +4 -4
- package/components/Icons/MentalHealthChild.d.ts +4 -4
- package/components/Icons/Menu.d.ts +4 -4
- package/components/Icons/Microscope.d.ts +4 -4
- package/components/Icons/Minus.d.ts +4 -4
- package/components/Icons/Mirror.d.ts +4 -4
- package/components/Icons/MobilePhone.d.ts +4 -4
- package/components/Icons/MotherHoldingBaby.d.ts +4 -4
- package/components/Icons/MuscleBack.d.ts +4 -4
- package/components/Icons/MuscleLeg.d.ts +4 -4
- package/components/Icons/Mushroom.d.ts +4 -4
- package/components/Icons/Music.d.ts +4 -4
- package/components/Icons/MusselsAndSalt.d.ts +4 -4
- package/components/Icons/NoEye.d.ts +4 -4
- package/components/Icons/NoEye.js +1 -1
- package/components/Icons/NoFilter.d.ts +4 -4
- package/components/Icons/Notepad.d.ts +4 -4
- package/components/Icons/Osteotomy.d.ts +4 -4
- package/components/Icons/PaintRoller.d.ts +4 -4
- package/components/Icons/PaperPlane.d.ts +4 -4
- package/components/Icons/PatientAndPerson.d.ts +4 -4
- package/components/Icons/Pause.d.ts +4 -4
- package/components/Icons/PdfFile.d.ts +4 -4
- package/components/Icons/Pencil.d.ts +4 -4
- package/components/Icons/PeopleTalking.d.ts +4 -4
- package/components/Icons/Peritonealdialysis.d.ts +4 -4
- package/components/Icons/Person.d.ts +4 -4
- package/components/Icons/PersonAndPatient.d.ts +4 -4
- package/components/Icons/PersonInXRayMachine.d.ts +4 -4
- package/components/Icons/PersonOverweight.d.ts +4 -4
- package/components/Icons/PersonRelaxing.d.ts +4 -4
- package/components/Icons/PersonWithBrain.d.ts +4 -4
- package/components/Icons/PersonWithBrokenArm.d.ts +4 -4
- package/components/Icons/PersonWithCrutches.d.ts +4 -4
- package/components/Icons/PersonWithJaw.d.ts +4 -4
- package/components/Icons/PersonWithMagnifyingGlass.d.ts +4 -4
- package/components/Icons/PersonWithSenses.d.ts +4 -4
- package/components/Icons/PersonWorking.d.ts +4 -4
- package/components/Icons/PizzaSlice.d.ts +4 -4
- package/components/Icons/Plane.d.ts +4 -4
- package/components/Icons/Plant.d.ts +4 -4
- package/components/Icons/Play.d.ts +4 -4
- package/components/Icons/PlusLarge.d.ts +4 -4
- package/components/Icons/PlusSmall.d.ts +4 -4
- package/components/Icons/PngFile.d.ts +4 -4
- package/components/Icons/Podcast.d.ts +4 -4
- package/components/Icons/PoisonInformation.d.ts +4 -4
- package/components/Icons/Pregnant.d.ts +4 -4
- package/components/Icons/Printer.d.ts +4 -4
- package/components/Icons/Psychosis.d.ts +4 -4
- package/components/Icons/Publication.d.ts +4 -4
- package/components/Icons/Puzzle.d.ts +4 -4
- package/components/Icons/QrCode.d.ts +4 -4
- package/components/Icons/Quarrel.d.ts +4 -4
- package/components/Icons/RadioTherapy.d.ts +4 -4
- package/components/Icons/RadioactiveTreatment.d.ts +4 -4
- package/components/Icons/Radioiodine.d.ts +4 -4
- package/components/Icons/Receipt.d.ts +4 -4
- package/components/Icons/Receptionist.d.ts +4 -4
- package/components/Icons/Recovery.d.ts +4 -4
- package/components/Icons/Referral.d.ts +4 -4
- package/components/Icons/Refresh.d.ts +4 -4
- package/components/Icons/Refund.d.ts +4 -4
- package/components/Icons/Reply.d.ts +4 -4
- package/components/Icons/Rocket.d.ts +4 -4
- package/components/Icons/RtfFile.d.ts +4 -4
- package/components/Icons/STDs.d.ts +4 -4
- package/components/Icons/Save.d.ts +4 -4
- package/components/Icons/Scale.d.ts +4 -4
- package/components/Icons/Search.d.ts +4 -4
- package/components/Icons/SectionSign.d.ts +4 -4
- package/components/Icons/SectionSign.js +1 -1
- package/components/Icons/Settings.d.ts +4 -4
- package/components/Icons/Sexualorientation.d.ts +4 -4
- package/components/Icons/ShakingHand.d.ts +4 -4
- package/components/Icons/Share.d.ts +4 -4
- package/components/Icons/Shield.d.ts +4 -4
- package/components/Icons/ShuntOperation.d.ts +4 -4
- package/components/Icons/Skeleton.d.ts +4 -4
- package/components/Icons/Skin.d.ts +4 -4
- package/components/Icons/Snake.d.ts +4 -4
- package/components/Icons/Snapchat.d.ts +4 -4
- package/components/Icons/SpeechBubble.d.ts +4 -4
- package/components/Icons/SpeechBubble.js +1 -1
- package/components/Icons/Spray.d.ts +4 -4
- package/components/Icons/Stopwatch.d.ts +4 -4
- package/components/Icons/SupportingPerson.d.ts +4 -4
- package/components/Icons/SupportingPerson.js +1 -1
- package/components/Icons/Surgery.d.ts +4 -4
- package/components/Icons/Syringe.d.ts +4 -4
- package/components/Icons/Syringe.js +1 -1
- package/components/Icons/Taxi.d.ts +4 -4
- package/components/Icons/TeddyBear.d.ts +4 -4
- package/components/Icons/Teenagers.d.ts +4 -4
- package/components/Icons/ThinkingAboutBaby.d.ts +4 -4
- package/components/Icons/Ticket.d.ts +4 -4
- package/components/Icons/TimePassing.d.ts +4 -4
- package/components/Icons/Toolbox.d.ts +4 -4
- package/components/Icons/Tooth.d.ts +4 -4
- package/components/Icons/TotalKneeProsthesis.d.ts +4 -4
- package/components/Icons/Train.d.ts +4 -4
- package/components/Icons/Transplantation.d.ts +4 -4
- package/components/Icons/TrashCan.d.ts +4 -4
- package/components/Icons/Twitter.d.ts +4 -4
- package/components/Icons/Undo.d.ts +4 -4
- package/components/Icons/UniProsthesis.d.ts +4 -4
- package/components/Icons/Upload.d.ts +4 -4
- package/components/Icons/UserOrganization.d.ts +4 -4
- package/components/Icons/Vaccine.d.ts +4 -4
- package/components/Icons/VerticalDots.d.ts +4 -4
- package/components/Icons/VideoCamera.d.ts +4 -4
- package/components/Icons/VideoChat.d.ts +4 -4
- package/components/Icons/Wallet.d.ts +4 -4
- package/components/Icons/Watch.d.ts +4 -4
- package/components/Icons/Website.d.ts +4 -4
- package/components/Icons/Wheelchair.d.ts +4 -4
- package/components/Icons/WheelchairActive.d.ts +4 -4
- package/components/Icons/Window.d.ts +4 -4
- package/components/Icons/WordDocument.d.ts +4 -4
- package/components/Icons/WorkSuitcase.d.ts +4 -4
- package/components/Icons/X.d.ts +4 -4
- package/components/Icons/XOutline.d.ts +4 -4
- package/components/Icons/XmlFile.d.ts +4 -4
- package/components/Icons/YouTube.d.ts +4 -4
- package/components/Icons/Zoom.d.ts +4 -4
- 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/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/__mocks__/IntersectionObserver.d.ts +5 -5
- package/components/Modal/index.d.ts +3 -3
- package/components/Modal/index.js +1 -1
- package/components/Modal/styles.module.scss +243 -243
- package/components/Modal/styles.module.scss.d.ts +41 -41
- package/components/NotificationPanel/NotificationPanel.d.ts +47 -47
- package/components/NotificationPanel/NotificationPanel.d.ts.map +1 -1
- package/components/NotificationPanel/componentdata.json +1 -1
- package/components/NotificationPanel/index.d.ts +3 -3
- package/components/NotificationPanel/index.js +1 -1
- package/components/NotificationPanel/styles.module.scss +153 -138
- package/components/NotificationPanel/styles.module.scss.d.ts +33 -34
- 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-eb74321e.js +2 -0
- package/constants-eb74321e.js.map +1 -0
- package/constants.d.ts +91 -90
- package/constants.d.ts.map +1 -1
- package/hooks/focus-utils.d.ts +6 -6
- package/hooks/useBreakpoint.d.ts +12 -12
- 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/usePrevious.d.ts +7 -0
- package/hooks/usePrevious.d.ts.map +1 -0
- package/hooks/useSize.d.ts +9 -0
- package/hooks/useSize.d.ts.map +1 -0
- package/hooks/useSticky.d.ts +20 -20
- package/hooks/useWindowSize.d.ts +4 -4
- package/index.d.ts +13 -11
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/package.json +2 -6
- 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 -175
- 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 +20 -20
- package/theme/index.d.ts +98 -98
- package/theme/palette.d.ts +67 -67
- package/theme/spacers.d.ts +18 -18
- package/usePrevious-ae293b10.js +2 -0
- package/usePrevious-ae293b10.js.map +1 -0
- package/useSticky-d61d1f0b.js +2 -0
- package/useSticky-d61d1f0b.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-d5147e38.js +0 -2
- package/Button-d5147e38.js.map +0 -1
- package/Check-6291ad09.js +0 -2
- package/Check-6291ad09.js.map +0 -1
- package/Checkbox-798282e4.js +0 -2
- package/Checkbox-798282e4.js.map +0 -1
- package/ChevronUp-4b6797ef.js +0 -2
- package/ChevronUp-4b6797ef.js.map +0 -1
- package/Close-35ad7d35.js +0 -2
- package/Close-35ad7d35.js.map +0 -1
- package/FormGroup-0577b07f.js +0 -2
- package/FormGroup-0577b07f.js.map +0 -1
- package/Icon-89da8de4.js +0 -2
- package/Icon-89da8de4.js.map +0 -1
- package/Input-19650c24.js +0 -2
- package/Input-19650c24.js.map +0 -1
- package/Loader-fa16a352.js.map +0 -1
- package/Modal-ad02991b.js +0 -2
- package/Modal-ad02991b.js.map +0 -1
- package/RadioButton-fe4bbd36.js.map +0 -1
- package/Textarea-e1d1144c.js.map +0 -1
- package/Title-af53f589.js.map +0 -1
- package/Validation-fd3f7f58.js.map +0 -1
- package/constants-ad6c82db.js +0 -2
- package/constants-ad6c82db.js.map +0 -1
- package/useSticky-194f2b78.js +0 -2
- package/useSticky-194f2b78.js.map +0 -1
|
@@ -1,194 +1,194 @@
|
|
|
1
|
-
@import '../../scss/_spacers.scss';
|
|
2
|
-
@import '../../scss/_palette.scss';
|
|
3
|
-
@import 'bootstrap/scss/mixins/_screen-reader.scss';
|
|
4
|
-
|
|
5
|
-
@mixin keyframes($name) {
|
|
6
|
-
@keyframes #{$name} {
|
|
7
|
-
@content;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@mixin animate($name, $animation, $duration, $times) {
|
|
12
|
-
animation: $animation $duration $times;
|
|
13
|
-
animation-name: $name;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@mixin loaderDotScale($name, $scale-start, $scale-end) {
|
|
17
|
-
@include keyframes($name) {
|
|
18
|
-
0% {
|
|
19
|
-
transform: scale($scale-start);
|
|
20
|
-
}
|
|
21
|
-
100% {
|
|
22
|
-
transform: scale($scale-end);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
@include animate($name, scale, 0.6s, infinite);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@mixin loaderDotTranslate($name, $distance) {
|
|
29
|
-
@include keyframes($name) {
|
|
30
|
-
0% {
|
|
31
|
-
transform: translate(0, 0);
|
|
32
|
-
}
|
|
33
|
-
100% {
|
|
34
|
-
transform: translate($distance, 0);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
@include animate($name, translate, 0.6s, infinite);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.loader-wrapper {
|
|
41
|
-
&--center {
|
|
42
|
-
text-align: center;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&--inline {
|
|
46
|
-
align-self: center;
|
|
47
|
-
padding-left: getSpacer(2xs);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&--overlay {
|
|
51
|
-
display: flex;
|
|
52
|
-
align-items: center;
|
|
53
|
-
justify-content: center;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&--overlay-screen {
|
|
57
|
-
z-index: 9999;
|
|
58
|
-
background: $transparentGrey;
|
|
59
|
-
position: fixed;
|
|
60
|
-
top: 0;
|
|
61
|
-
left: 0;
|
|
62
|
-
right: 0;
|
|
63
|
-
bottom: 0;
|
|
64
|
-
}
|
|
65
|
-
&--overlay-parent {
|
|
66
|
-
position: absolute;
|
|
67
|
-
top: 0;
|
|
68
|
-
left: 0;
|
|
69
|
-
background: $transparentGrey;
|
|
70
|
-
height: 100%;
|
|
71
|
-
width: 100%;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.loader {
|
|
76
|
-
display: inline-block;
|
|
77
|
-
position: relative;
|
|
78
|
-
width: 8 * 5px;
|
|
79
|
-
height: 8px;
|
|
80
|
-
|
|
81
|
-
&--small {
|
|
82
|
-
width: 12 * 5px;
|
|
83
|
-
height: 12px;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&--medium {
|
|
87
|
-
width: 18 * 5px;
|
|
88
|
-
height: 18px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&--large {
|
|
92
|
-
width: 24 * 5px;
|
|
93
|
-
height: 24px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&__hidden-text {
|
|
97
|
-
@include sr-only();
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&__dot {
|
|
101
|
-
position: absolute;
|
|
102
|
-
width: 8px;
|
|
103
|
-
height: 8px;
|
|
104
|
-
background-color: $blueberry500;
|
|
105
|
-
border-radius: 50%;
|
|
106
|
-
|
|
107
|
-
&--small {
|
|
108
|
-
width: 12px;
|
|
109
|
-
height: 12px;
|
|
110
|
-
}
|
|
111
|
-
&--medium {
|
|
112
|
-
width: 18px;
|
|
113
|
-
height: 18px;
|
|
114
|
-
}
|
|
115
|
-
&--large {
|
|
116
|
-
width: 24px;
|
|
117
|
-
height: 24px;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&--banana {
|
|
121
|
-
background-color: $banana500;
|
|
122
|
-
}
|
|
123
|
-
&--cherry {
|
|
124
|
-
background-color: $cherry500;
|
|
125
|
-
}
|
|
126
|
-
&--kiwi {
|
|
127
|
-
background-color: $kiwi500;
|
|
128
|
-
}
|
|
129
|
-
&--neutral {
|
|
130
|
-
background-color: $neutral500;
|
|
131
|
-
}
|
|
132
|
-
&--plum {
|
|
133
|
-
background-color: $plum500;
|
|
134
|
-
}
|
|
135
|
-
&--black {
|
|
136
|
-
background-color: $black;
|
|
137
|
-
}
|
|
138
|
-
&--white {
|
|
139
|
-
background-color: $white;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// Sets a form of easing animation curve
|
|
143
|
-
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
144
|
-
// Scales up the first dot
|
|
145
|
-
&:nth-child(1) {
|
|
146
|
-
@include loaderDotScale(scale-regular, 0, 1);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// Translates the dots rightwards depending on size
|
|
150
|
-
&:nth-child(2),
|
|
151
|
-
&:nth-child(3) {
|
|
152
|
-
@include loaderDotTranslate(translate-tiny, 16px);
|
|
153
|
-
}
|
|
154
|
-
&:nth-child(3) {
|
|
155
|
-
left: 16px;
|
|
156
|
-
}
|
|
157
|
-
&--small:nth-child(2),
|
|
158
|
-
&--small:nth-child(3) {
|
|
159
|
-
@include loaderDotTranslate(translate-small, 24px);
|
|
160
|
-
}
|
|
161
|
-
&--medium:nth-child(2),
|
|
162
|
-
&--medium:nth-child(3) {
|
|
163
|
-
@include loaderDotTranslate(translate-medium, 36px);
|
|
164
|
-
}
|
|
165
|
-
&--large:nth-child(2),
|
|
166
|
-
&--large:nth-child(3) {
|
|
167
|
-
@include loaderDotTranslate(translate-large, 48px);
|
|
168
|
-
}
|
|
169
|
-
&--small:nth-child(3) {
|
|
170
|
-
left: 24px;
|
|
171
|
-
}
|
|
172
|
-
&--medium:nth-child(3) {
|
|
173
|
-
left: 36px;
|
|
174
|
-
}
|
|
175
|
-
&--large:nth-child(3) {
|
|
176
|
-
left: 48px;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// Scales down the last dot
|
|
180
|
-
&:nth-child(4) {
|
|
181
|
-
left: 32px;
|
|
182
|
-
@include loaderDotScale(scale-reverse, 1, 0);
|
|
183
|
-
}
|
|
184
|
-
&--small:nth-child(4) {
|
|
185
|
-
left: 48px;
|
|
186
|
-
}
|
|
187
|
-
&--medium:nth-child(4) {
|
|
188
|
-
left: 72px;
|
|
189
|
-
}
|
|
190
|
-
&--large:nth-child(4) {
|
|
191
|
-
left: 96px;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
1
|
+
@import '../../scss/_spacers.scss';
|
|
2
|
+
@import '../../scss/_palette.scss';
|
|
3
|
+
@import 'bootstrap/scss/mixins/_screen-reader.scss';
|
|
4
|
+
|
|
5
|
+
@mixin keyframes($name) {
|
|
6
|
+
@keyframes #{$name} {
|
|
7
|
+
@content;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin animate($name, $animation, $duration, $times) {
|
|
12
|
+
animation: $animation $duration $times;
|
|
13
|
+
animation-name: $name;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin loaderDotScale($name, $scale-start, $scale-end) {
|
|
17
|
+
@include keyframes($name) {
|
|
18
|
+
0% {
|
|
19
|
+
transform: scale($scale-start);
|
|
20
|
+
}
|
|
21
|
+
100% {
|
|
22
|
+
transform: scale($scale-end);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
@include animate($name, scale, 0.6s, infinite);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin loaderDotTranslate($name, $distance) {
|
|
29
|
+
@include keyframes($name) {
|
|
30
|
+
0% {
|
|
31
|
+
transform: translate(0, 0);
|
|
32
|
+
}
|
|
33
|
+
100% {
|
|
34
|
+
transform: translate($distance, 0);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
@include animate($name, translate, 0.6s, infinite);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.loader-wrapper {
|
|
41
|
+
&--center {
|
|
42
|
+
text-align: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&--inline {
|
|
46
|
+
align-self: center;
|
|
47
|
+
padding-left: getSpacer(2xs);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&--overlay {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&--overlay-screen {
|
|
57
|
+
z-index: 9999;
|
|
58
|
+
background: $transparentGrey;
|
|
59
|
+
position: fixed;
|
|
60
|
+
top: 0;
|
|
61
|
+
left: 0;
|
|
62
|
+
right: 0;
|
|
63
|
+
bottom: 0;
|
|
64
|
+
}
|
|
65
|
+
&--overlay-parent {
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: 0;
|
|
68
|
+
left: 0;
|
|
69
|
+
background: $transparentGrey;
|
|
70
|
+
height: 100%;
|
|
71
|
+
width: 100%;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.loader {
|
|
76
|
+
display: inline-block;
|
|
77
|
+
position: relative;
|
|
78
|
+
width: 8 * 5px;
|
|
79
|
+
height: 8px;
|
|
80
|
+
|
|
81
|
+
&--small {
|
|
82
|
+
width: 12 * 5px;
|
|
83
|
+
height: 12px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&--medium {
|
|
87
|
+
width: 18 * 5px;
|
|
88
|
+
height: 18px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&--large {
|
|
92
|
+
width: 24 * 5px;
|
|
93
|
+
height: 24px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&__hidden-text {
|
|
97
|
+
@include sr-only();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&__dot {
|
|
101
|
+
position: absolute;
|
|
102
|
+
width: 8px;
|
|
103
|
+
height: 8px;
|
|
104
|
+
background-color: $blueberry500;
|
|
105
|
+
border-radius: 50%;
|
|
106
|
+
|
|
107
|
+
&--small {
|
|
108
|
+
width: 12px;
|
|
109
|
+
height: 12px;
|
|
110
|
+
}
|
|
111
|
+
&--medium {
|
|
112
|
+
width: 18px;
|
|
113
|
+
height: 18px;
|
|
114
|
+
}
|
|
115
|
+
&--large {
|
|
116
|
+
width: 24px;
|
|
117
|
+
height: 24px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&--banana {
|
|
121
|
+
background-color: $banana500;
|
|
122
|
+
}
|
|
123
|
+
&--cherry {
|
|
124
|
+
background-color: $cherry500;
|
|
125
|
+
}
|
|
126
|
+
&--kiwi {
|
|
127
|
+
background-color: $kiwi500;
|
|
128
|
+
}
|
|
129
|
+
&--neutral {
|
|
130
|
+
background-color: $neutral500;
|
|
131
|
+
}
|
|
132
|
+
&--plum {
|
|
133
|
+
background-color: $plum500;
|
|
134
|
+
}
|
|
135
|
+
&--black {
|
|
136
|
+
background-color: $black;
|
|
137
|
+
}
|
|
138
|
+
&--white {
|
|
139
|
+
background-color: $white;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// Sets a form of easing animation curve
|
|
143
|
+
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
144
|
+
// Scales up the first dot
|
|
145
|
+
&:nth-child(1) {
|
|
146
|
+
@include loaderDotScale(scale-regular, 0, 1);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// Translates the dots rightwards depending on size
|
|
150
|
+
&:nth-child(2),
|
|
151
|
+
&:nth-child(3) {
|
|
152
|
+
@include loaderDotTranslate(translate-tiny, 16px);
|
|
153
|
+
}
|
|
154
|
+
&:nth-child(3) {
|
|
155
|
+
left: 16px;
|
|
156
|
+
}
|
|
157
|
+
&--small:nth-child(2),
|
|
158
|
+
&--small:nth-child(3) {
|
|
159
|
+
@include loaderDotTranslate(translate-small, 24px);
|
|
160
|
+
}
|
|
161
|
+
&--medium:nth-child(2),
|
|
162
|
+
&--medium:nth-child(3) {
|
|
163
|
+
@include loaderDotTranslate(translate-medium, 36px);
|
|
164
|
+
}
|
|
165
|
+
&--large:nth-child(2),
|
|
166
|
+
&--large:nth-child(3) {
|
|
167
|
+
@include loaderDotTranslate(translate-large, 48px);
|
|
168
|
+
}
|
|
169
|
+
&--small:nth-child(3) {
|
|
170
|
+
left: 24px;
|
|
171
|
+
}
|
|
172
|
+
&--medium:nth-child(3) {
|
|
173
|
+
left: 36px;
|
|
174
|
+
}
|
|
175
|
+
&--large:nth-child(3) {
|
|
176
|
+
left: 48px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// Scales down the last dot
|
|
180
|
+
&:nth-child(4) {
|
|
181
|
+
left: 32px;
|
|
182
|
+
@include loaderDotScale(scale-reverse, 1, 0);
|
|
183
|
+
}
|
|
184
|
+
&--small:nth-child(4) {
|
|
185
|
+
left: 48px;
|
|
186
|
+
}
|
|
187
|
+
&--medium:nth-child(4) {
|
|
188
|
+
left: 72px;
|
|
189
|
+
}
|
|
190
|
+
&--large:nth-child(4) {
|
|
191
|
+
left: 96px;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PaletteNames } from '../../theme/palette';
|
|
3
|
-
declare type LogoColor = PaletteNames;
|
|
4
|
-
interface LogoProps {
|
|
5
|
-
/** Changes the size of the logo. */
|
|
6
|
-
size?: number;
|
|
7
|
-
/** Adds custom classes to the element. */
|
|
8
|
-
className?: string;
|
|
9
|
-
/** Changes the color of the logo. */
|
|
10
|
-
color?: LogoColor;
|
|
11
|
-
/** Changes to the byline variant of the logo. */
|
|
12
|
-
byline?: boolean;
|
|
13
|
-
/** Sets the data-testid attribute. */
|
|
14
|
-
testId?: string;
|
|
15
|
-
}
|
|
16
|
-
declare function Logo(props: LogoProps): JSX.Element;
|
|
17
|
-
export default Logo;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PaletteNames } from '../../theme/palette';
|
|
3
|
+
declare type LogoColor = PaletteNames;
|
|
4
|
+
interface LogoProps {
|
|
5
|
+
/** Changes the size of the logo. */
|
|
6
|
+
size?: number;
|
|
7
|
+
/** Adds custom classes to the element. */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Changes the color of the logo. */
|
|
10
|
+
color?: LogoColor;
|
|
11
|
+
/** Changes to the byline variant of the logo. */
|
|
12
|
+
byline?: boolean;
|
|
13
|
+
/** Sets the data-testid attribute. */
|
|
14
|
+
testId?: string;
|
|
15
|
+
}
|
|
16
|
+
declare function Logo(props: LogoProps): JSX.Element;
|
|
17
|
+
export default Logo;
|
|
18
18
|
//# sourceMappingURL=Logo.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Logo from './Logo';
|
|
2
|
-
export * from './Logo';
|
|
3
|
-
export default Logo;
|
|
1
|
+
import Logo from './Logo';
|
|
2
|
+
export * from './Logo';
|
|
3
|
+
export default Logo;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/components/Logo/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e}from"../../_tslib-51c8a283.js";import t from"react";import{A as c}from"../../constants-
|
|
1
|
+
import{_ as e}from"../../_tslib-51c8a283.js";import t from"react";import{A as c}from"../../constants-eb74321e.js";import{g as l}from"../../color-a10c7892.js";import"../../index-0e78dfa0.js";import"../../palette-f206f488.js";import"../../grid-11a70eb7.js";var a=function(e){var a=e.size,s=void 0===a?300:a,v=e.color,h=void 0===v?"black":v,i=e.className,o=void 0===i?"":i,r=e.testId;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,role:"img","aria-labelledby":"logo-title",viewBox:"0 0 502 220",className:o,"data-testid":r,"data-analyticsid":c.Logo},t.createElement("title",{id:"logo-title"},"Helsenorge"),t.createElement("g",{fill:l(h,500)},t.createElement("path",{d:"M39.8 2.5v26.9H17V2.5H1v69.9h16V43.6h22.8v28.8h16.1V2.5zM250.3 58.6V2.5h-16v69.9h43.5V58.6zM142.9 122.5c-16.1 0-27.4 13.6-27.4 33.1s11.2 33.1 27.4 33.1 27.4-13.6 27.4-33.1-11.3-33.1-27.4-33.1zm19 33.1c0 11.9-5 25.9-19 25.9s-19-13.9-19-25.9c0-11.9 5-25.9 19-25.9s19 14 19 25.9zM501 40c0-19.1-11.1-32.4-27-32.4-16.4 0-27.4 13.3-27.4 33.1 0 19.5 11.5 33.1 28 33.1 12.2 0 21.4-6 24.7-16.2l.5-1.6h-8.3l-.3.7c-2.8 6.2-8.8 9.8-16.6 9.8-12.9 0-18.5-11.5-19.5-22.7H501V40zm-8.3-3.2h-37.6c1-10.8 6.5-21.9 18.9-21.9 13.2 0 18.3 12.6 18.7 21.9zM30.4 122.4c-10.8 0-16.6 6.7-19.5 11.8v-9.9H3.3v62.6h8.1v-31.4c0-8.4 4.4-25.7 18.1-25.7 14 0 15.9 12 15.9 25v32.1h8.1v-32.1c.1-16.1-2.7-32.4-23.1-32.4zM134.3 59V43H157V30h-22.7V15.9H165V2.5h-46.4v69.9h47.3V59zM466.7 173.4v-16h22.7v-13h-22.7v-14.1h30.7v-13.4H451v69.9h47.3v-13.4zM246.7 140.5v-16.3h-7.6v62.6h8.1v-37.6l27.3-19.6v-9zM393.5 120.6l-14.7 10.5c-4.4-5.6-11.2-8.7-18.8-8.7-13.6 0-23.6 9.8-23.6 23.3 0 10.6 6.2 19.1 16 22.2l-16 17.5c-4 4.6-5.7 8.3-5.7 12.7 0 12.6 11.1 20.7 28.2 20.7 16.9 0 28.3-8.3 28.3-20.7 0-12.5-11.1-20.6-28.3-20.6-1.7 0-3.9.2-5.6.5l8-9c12.9-.7 22.2-10.4 22.2-23.3 0-2.8-.4-5.5-1.2-7.8 0-.1-.1-.2-.1-.3l11.2-8.1v-8.9zm-34.4 64.2c12.1 0 20 5.2 20 13.4s-7.8 13.5-20 13.5c-12.1 0-19.9-5.3-19.9-13.5 0-7.8 8.3-13.4 19.9-13.4zm.9-23c-8.8 0-15.2-6.8-15.2-16 0-9.3 6.4-16 15.2-16s15.2 6.7 15.2 16c0 9.2-6.4 16-15.2 16zM366.7 30.3c-6.6-2.3-13.5-4.7-13.5-9.2 0-4.8 4.2-7 9.3-7 5.4 0 9 4.5 9 8.5v.8h16.2v-.6c0-13-10.2-21.7-25.4-21.7-15.3 0-24.9 7.8-24.9 20.4 0 14.7 13.1 18.4 22.9 21.9 6.5 2.4 13.6 4.3 13.6 8.7 0 4.6-3.4 8-10.6 8-6.5 0-10.9-3.8-10.9-9.4v-.8h-16.7v.8c0 14.5 10.3 23.1 27.5 23.1 16.5 0 26-7.6 26-21.5 0-14.4-12.5-18.5-22.5-22z"})))},s=function(e){var c=e.size,a=void 0===c?300:c,s=e.color,v=void 0===s?"black":s,h=e.className,i=void 0===h?"":h,o=e.testId;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,role:"img","aria-labelledby":"logo-title",viewBox:"0 0 87 12",className:i,"data-testid":o},t.createElement("title",{id:"logo-title"},"Helsenorge"),t.createElement("g",{fill:l(v,500)},t.createElement("path",{d:"M5 .8v2.8H2.6V.8H1V8h1.6V5.1H5V8h1.6V.8zM20.9 6.6V.8h-1.6V8h4.5V6.6zM57.9 1.4c-1.7 0-2.8 1.4-2.8 3.4s1.2 3.4 2.8 3.4 2.8-1.4 2.8-3.4-1.1-3.4-2.8-3.4zm2 3.4c0 1.2-.5 2.7-2 2.7-1.4 0-2-1.4-2-2.7s.5-2.7 2-2.7 2 1.5 2 2.7zM86 4.7c0-2-1.1-3.3-2.8-3.3-1.7 0-2.8 1.4-2.8 3.4s1.2 3.4 2.9 3.4c1.2 0 2.2-.6 2.5-1.7l.1-.2H85v.1c-.3.6-.9 1-1.7 1-1.3 0-1.9-1.2-2-2.3H86v-.4zm-.9-.3h-3.9c.1-1.1.7-2.3 1.9-2.3 1.5 0 2 1.3 2 2.3zM49.2 1.4c-1.1 0-1.7.7-2 1.2v-1h-.8V8h.8V4.8c0-.9.5-2.6 1.9-2.6s1.6 1.2 1.6 2.6V8h.8V4.7c0-1.6-.2-3.3-2.3-3.3zM12.1 6.6V5h2.4V3.7h-2.4V2.2h3.2V.8h-4.8V8h4.9V6.6zM38.3 6.6V5h2.3V3.7h-2.3V2.2h3.2V.8h-4.8V8h4.9V6.6zM65.5 3.3V1.6h-.8V8h.8V4.1l2.8-2v-.9zM77.6 1.2l-1.5 1.1c-.5-.6-1.1-.9-1.9-.9-1.4 0-2.4 1-2.4 2.4 0 1.1.6 2 1.6 2.3l-1.6 1.8c-.4.5-.6.9-.6 1.3 0 1.3 1.1 2.1 2.9 2.1 1.7 0 2.9-.9 2.9-2.1 0-1.3-1.1-2.1-2.9-2.1h-.6l.8-.9c1.3-.1 2.3-1.1 2.3-2.4 0-.3 0-.6-.1-.8l1.2-.8v-1zM74 7.8c1.2 0 2.1.5 2.1 1.4 0 .8-.8 1.4-2.1 1.4-1.2 0-2-.5-2-1.4 0-.8.8-1.4 2-1.4zm.1-2.4c-.9 0-1.6-.7-1.6-1.7s.7-1.6 1.6-1.6c.9 0 1.6.7 1.6 1.6 0 1-.7 1.7-1.6 1.7zM30.4 3.7c-.7-.2-1.4-.5-1.4-1s.4-.7 1-.7.9.5.9.9V3h1.7v-.1c0-1.3-1.1-2.2-2.6-2.2-1.6 0-2.6.8-2.6 2.1 0 1.5 1.3 1.9 2.4 2.3.7.2 1.4.4 1.4.9s-.3.8-1.1.8c-.7 0-1.1-.4-1.1-1v-.1h-1.7v.1c0 1.5 1.1 2.4 2.8 2.4 1.7 0 2.7-.8 2.7-2.2-.1-1.5-1.4-2-2.4-2.3z"})))};export default function(c){var l=c.byline,v=void 0!==l&&l,h=e(c,["byline"]);return v?t.createElement(s,Object.assign({},h)):t.createElement(a,Object.assign({},h))}
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ZIndex } from '../../constants';
|
|
3
|
-
export declare enum ModalVariants {
|
|
4
|
-
normal = "normal",
|
|
5
|
-
warning = "warning",
|
|
6
|
-
error = "error",
|
|
7
|
-
success = "success",
|
|
8
|
-
image = "image"
|
|
9
|
-
}
|
|
10
|
-
export declare enum ModalSize {
|
|
11
|
-
large = "large",
|
|
12
|
-
medium = "medium"
|
|
13
|
-
}
|
|
14
|
-
export interface ModalProps {
|
|
15
|
-
/** Title of the modal */
|
|
16
|
-
title: string;
|
|
17
|
-
/** id of the modal title */
|
|
18
|
-
titleId?: string;
|
|
19
|
-
/** Description of the modal */
|
|
20
|
-
description?: string;
|
|
21
|
-
/** Changes the visual representation of the modal. Description will not render if children prop is provided */
|
|
22
|
-
variant?: keyof typeof ModalVariants;
|
|
23
|
-
/** Change width of the modal (default: large) */
|
|
24
|
-
size?: keyof typeof ModalSize;
|
|
25
|
-
/** Icon displayed in title */
|
|
26
|
-
icon?: React.ReactElement;
|
|
27
|
-
/** Hides the close button */
|
|
28
|
-
noCloseButton?: boolean;
|
|
29
|
-
/** Sets the data-testid attribute. */
|
|
30
|
-
testId?: string;
|
|
31
|
-
/**Primary button text */
|
|
32
|
-
primaryButtonText?: string;
|
|
33
|
-
/**Secondary button text */
|
|
34
|
-
secondaryButtonText?: string;
|
|
35
|
-
/** Sets the aria-label of the modal */
|
|
36
|
-
ariaLabel?: string;
|
|
37
|
-
/** Sets the aria-labelledby of the modal */
|
|
38
|
-
ariaLabelledBy?: string;
|
|
39
|
-
/** Close button aria-label */
|
|
40
|
-
ariaLabelCloseBtn?: string;
|
|
41
|
-
/** Alternative component to modal */
|
|
42
|
-
children?: React.ReactNode;
|
|
43
|
-
/** Component shown after title */
|
|
44
|
-
afterTitleChildren?: React.ReactNode;
|
|
45
|
-
/** Adds custom classes to the element. */
|
|
46
|
-
className?: string;
|
|
47
|
-
/** Customize the z-index of the modal */
|
|
48
|
-
zIndex?: number;
|
|
49
|
-
/** Function is called when user clicks primary button */
|
|
50
|
-
onSuccess?: () => void;
|
|
51
|
-
/** Function is called when user clicks secondary button */
|
|
52
|
-
onClose?: () => void;
|
|
53
|
-
/** When enabled the component will be rendered in the bottom of document.body */
|
|
54
|
-
printable?: boolean;
|
|
55
|
-
/** When enabled the events for closing the modal won't be added */
|
|
56
|
-
disableCloseEvents?: boolean;
|
|
57
|
-
}
|
|
58
|
-
declare const Modal: {
|
|
59
|
-
(props: ModalProps): JSX.Element;
|
|
60
|
-
defaultProps: {
|
|
61
|
-
variant: ModalVariants;
|
|
62
|
-
primaryButtonText: string;
|
|
63
|
-
titleId: string;
|
|
64
|
-
className: string;
|
|
65
|
-
size: ModalSize;
|
|
66
|
-
zIndex: ZIndex;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
export default Modal;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ZIndex } from '../../constants';
|
|
3
|
+
export declare enum ModalVariants {
|
|
4
|
+
normal = "normal",
|
|
5
|
+
warning = "warning",
|
|
6
|
+
error = "error",
|
|
7
|
+
success = "success",
|
|
8
|
+
image = "image"
|
|
9
|
+
}
|
|
10
|
+
export declare enum ModalSize {
|
|
11
|
+
large = "large",
|
|
12
|
+
medium = "medium"
|
|
13
|
+
}
|
|
14
|
+
export interface ModalProps {
|
|
15
|
+
/** Title of the modal */
|
|
16
|
+
title: string;
|
|
17
|
+
/** id of the modal title */
|
|
18
|
+
titleId?: string;
|
|
19
|
+
/** Description of the modal */
|
|
20
|
+
description?: string;
|
|
21
|
+
/** Changes the visual representation of the modal. Description will not render if children prop is provided */
|
|
22
|
+
variant?: keyof typeof ModalVariants;
|
|
23
|
+
/** Change width of the modal (default: large) */
|
|
24
|
+
size?: keyof typeof ModalSize;
|
|
25
|
+
/** Icon displayed in title */
|
|
26
|
+
icon?: React.ReactElement;
|
|
27
|
+
/** Hides the close button */
|
|
28
|
+
noCloseButton?: boolean;
|
|
29
|
+
/** Sets the data-testid attribute. */
|
|
30
|
+
testId?: string;
|
|
31
|
+
/**Primary button text */
|
|
32
|
+
primaryButtonText?: string;
|
|
33
|
+
/**Secondary button text */
|
|
34
|
+
secondaryButtonText?: string;
|
|
35
|
+
/** Sets the aria-label of the modal */
|
|
36
|
+
ariaLabel?: string;
|
|
37
|
+
/** Sets the aria-labelledby of the modal */
|
|
38
|
+
ariaLabelledBy?: string;
|
|
39
|
+
/** Close button aria-label */
|
|
40
|
+
ariaLabelCloseBtn?: string;
|
|
41
|
+
/** Alternative component to modal */
|
|
42
|
+
children?: React.ReactNode;
|
|
43
|
+
/** Component shown after title */
|
|
44
|
+
afterTitleChildren?: React.ReactNode;
|
|
45
|
+
/** Adds custom classes to the element. */
|
|
46
|
+
className?: string;
|
|
47
|
+
/** Customize the z-index of the modal */
|
|
48
|
+
zIndex?: number;
|
|
49
|
+
/** Function is called when user clicks primary button */
|
|
50
|
+
onSuccess?: () => void;
|
|
51
|
+
/** Function is called when user clicks secondary button */
|
|
52
|
+
onClose?: () => void;
|
|
53
|
+
/** When enabled the component will be rendered in the bottom of document.body */
|
|
54
|
+
printable?: boolean;
|
|
55
|
+
/** When enabled the events for closing the modal won't be added */
|
|
56
|
+
disableCloseEvents?: boolean;
|
|
57
|
+
}
|
|
58
|
+
declare const Modal: {
|
|
59
|
+
(props: ModalProps): JSX.Element;
|
|
60
|
+
defaultProps: {
|
|
61
|
+
variant: ModalVariants;
|
|
62
|
+
primaryButtonText: string;
|
|
63
|
+
titleId: string;
|
|
64
|
+
className: string;
|
|
65
|
+
size: ModalSize;
|
|
66
|
+
zIndex: ZIndex;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export default Modal;
|
|
70
70
|
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare class IntersectionObserver {
|
|
2
|
-
observe(): void;
|
|
3
|
-
unobserve(): void;
|
|
4
|
-
}
|
|
5
|
-
export default IntersectionObserver;
|
|
1
|
+
declare class IntersectionObserver {
|
|
2
|
+
observe(): void;
|
|
3
|
+
unobserve(): void;
|
|
4
|
+
}
|
|
5
|
+
export default IntersectionObserver;
|
|
6
6
|
//# sourceMappingURL=IntersectionObserver.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Modal from './Modal';
|
|
2
|
-
export * from './Modal';
|
|
3
|
-
export default Modal;
|
|
1
|
+
import Modal from './Modal';
|
|
2
|
+
export * from './Modal';
|
|
3
|
+
export default Modal;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{M as s}from"../../Modal-
|
|
1
|
+
import{M as s}from"../../Modal-ff546be0.js";export{b as ModalSize,a as ModalVariants,M as default}from"../../Modal-ff546be0.js";import"../../_rollupPluginBabelHelpers-b8ef6dd9.js";import"react";import"../../index-9b84fabc.js";import"../../palette-f206f488.js";import"../../Button-7e82091f.js";import"../../_tslib-51c8a283.js";import"../../constants-eb74321e.js";import"../../color-a10c7892.js";import"../../index-0e78dfa0.js";import"../../grid-11a70eb7.js";import"../../Loader-bc13d060.js";import"../../uuid-fe7442b7.js";import"../Loader/styles.module.scss";import"../../useHover-9710204a.js";import"../../useWindowSize-750f9b68.js";import"../Button/styles.module.scss";import"../Icons/Icon.js";import"./styles.module.scss";import"../Icons/AlertSignStroke.js";import"../Icons/AlertSignFill.js";import"../../useIsVisible-a1f67a11.js";import"../../Title-9df559dd.js";import"../Title/styles.module.scss";import"../../Close-d81081c8.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../useBreakpoint-552af2b9.js";import"../Icons/CheckOutline.js";import"../Portal/index.js";import"react-dom";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|