@helsenorge/designsystem-react 1.0.0-beta106 → 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-b2b6efe0.js → FormGroup-af33981a.js} +2 -2
- package/FormGroup-af33981a.js.map +1 -0
- package/Input-31d7accc.js +2 -0
- package/Input-31d7accc.js.map +1 -0
- package/Modal-ff546be0.js +2 -0
- package/Modal-ff546be0.js.map +1 -0
- package/README.md +69 -69
- package/Validation-4041c083.js +2 -0
- 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/styles.module.scss +41 -41
- package/components/Badge/styles.module.scss.d.ts +17 -17
- package/components/Button/Button.d.ts +41 -41
- 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/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/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/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/styles.module.scss +194 -194
- package/components/Logo/Logo.d.ts +17 -17
- package/components/Logo/index.d.ts +3 -3
- 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/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/RadioButton/RadioButton.d.ts +30 -30
- package/components/RadioButton/index.d.ts +3 -3
- 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/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/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/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/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.d.ts +91 -91
- 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 +8 -8
- package/hooks/useSticky.d.ts +20 -20
- package/hooks/useWindowSize.d.ts +4 -4
- package/index.d.ts +13 -12
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/package.json +1 -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 +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/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/Modal-3c7f9f93.js +0 -2
- package/Modal-3c7f9f93.js.map +0 -1
- package/Validation-16a8bdcd.js +0 -2
- package/Validation-16a8bdcd.js.map +0 -1
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
@import '../../scss/spacers';
|
|
2
|
-
@import '../../scss/breakpoints';
|
|
3
|
-
@import '../../scss/palette';
|
|
4
|
-
|
|
5
|
-
.slider {
|
|
6
|
-
width: 100%;
|
|
7
|
-
padding: getSpacer(m) 0;
|
|
8
|
-
position: relative;
|
|
9
|
-
outline: none !important;
|
|
10
|
-
|
|
11
|
-
&__track-wrapper {
|
|
12
|
-
width: 100%;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
|
|
15
|
-
&--disabled {
|
|
16
|
-
cursor: default;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&__track {
|
|
21
|
-
height: 2px;
|
|
22
|
-
background-color: $black;
|
|
23
|
-
width: 100%;
|
|
24
|
-
position: relative;
|
|
25
|
-
top: 1rem;
|
|
26
|
-
|
|
27
|
-
&--disabled {
|
|
28
|
-
background-color: $neutral600;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&__trigger {
|
|
33
|
-
display: flex;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
width: 2rem;
|
|
37
|
-
height: 2rem;
|
|
38
|
-
background-color: $white;
|
|
39
|
-
border: 0.15rem solid $black;
|
|
40
|
-
border-radius: 1rem;
|
|
41
|
-
position: relative;
|
|
42
|
-
top: -0.05rem;
|
|
43
|
-
z-index: 9;
|
|
44
|
-
outline: none;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
|
|
47
|
-
&--disabled {
|
|
48
|
-
border-color: $neutral500;
|
|
49
|
-
cursor: default;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&__trigger-inner {
|
|
54
|
-
width: 1.25rem;
|
|
55
|
-
height: 1.25rem;
|
|
56
|
-
border: 0.1rem solid $black;
|
|
57
|
-
border-radius: 1rem;
|
|
58
|
-
background-color: $blueberry600;
|
|
59
|
-
|
|
60
|
-
:hover > &,
|
|
61
|
-
:focus > & {
|
|
62
|
-
background-color: $blueberry800;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&--disabled {
|
|
66
|
-
border-color: $neutral500;
|
|
67
|
-
background-color: $neutral200;
|
|
68
|
-
|
|
69
|
-
:hover > &,
|
|
70
|
-
:focus > & {
|
|
71
|
-
background-color: $neutral200;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&__options {
|
|
77
|
-
display: inline-flex;
|
|
78
|
-
justify-content: space-between;
|
|
79
|
-
width: 100%;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&__text {
|
|
83
|
-
margin: 0;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
1
|
+
@import '../../scss/spacers';
|
|
2
|
+
@import '../../scss/breakpoints';
|
|
3
|
+
@import '../../scss/palette';
|
|
4
|
+
|
|
5
|
+
.slider {
|
|
6
|
+
width: 100%;
|
|
7
|
+
padding: getSpacer(m) 0;
|
|
8
|
+
position: relative;
|
|
9
|
+
outline: none !important;
|
|
10
|
+
|
|
11
|
+
&__track-wrapper {
|
|
12
|
+
width: 100%;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
|
|
15
|
+
&--disabled {
|
|
16
|
+
cursor: default;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__track {
|
|
21
|
+
height: 2px;
|
|
22
|
+
background-color: $black;
|
|
23
|
+
width: 100%;
|
|
24
|
+
position: relative;
|
|
25
|
+
top: 1rem;
|
|
26
|
+
|
|
27
|
+
&--disabled {
|
|
28
|
+
background-color: $neutral600;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__trigger {
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
width: 2rem;
|
|
37
|
+
height: 2rem;
|
|
38
|
+
background-color: $white;
|
|
39
|
+
border: 0.15rem solid $black;
|
|
40
|
+
border-radius: 1rem;
|
|
41
|
+
position: relative;
|
|
42
|
+
top: -0.05rem;
|
|
43
|
+
z-index: 9;
|
|
44
|
+
outline: none;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
|
|
47
|
+
&--disabled {
|
|
48
|
+
border-color: $neutral500;
|
|
49
|
+
cursor: default;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__trigger-inner {
|
|
54
|
+
width: 1.25rem;
|
|
55
|
+
height: 1.25rem;
|
|
56
|
+
border: 0.1rem solid $black;
|
|
57
|
+
border-radius: 1rem;
|
|
58
|
+
background-color: $blueberry600;
|
|
59
|
+
|
|
60
|
+
:hover > &,
|
|
61
|
+
:focus > & {
|
|
62
|
+
background-color: $blueberry800;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&--disabled {
|
|
66
|
+
border-color: $neutral500;
|
|
67
|
+
background-color: $neutral200;
|
|
68
|
+
|
|
69
|
+
:hover > &,
|
|
70
|
+
:focus > & {
|
|
71
|
+
background-color: $neutral200;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&__options {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
justify-content: space-between;
|
|
79
|
+
width: 100%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&__text {
|
|
83
|
+
margin: 0;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export type Styles = {
|
|
2
|
-
slider: string;
|
|
3
|
-
slider__options: string;
|
|
4
|
-
slider__text: string;
|
|
5
|
-
slider__track: string;
|
|
6
|
-
'slider__track--disabled': string;
|
|
7
|
-
'slider__track-wrapper': string;
|
|
8
|
-
'slider__track-wrapper--disabled': string;
|
|
9
|
-
slider__trigger: string;
|
|
10
|
-
'slider__trigger--disabled': string;
|
|
11
|
-
'slider__trigger-inner': string;
|
|
12
|
-
'slider__trigger-inner--disabled': string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export type ClassNames = keyof Styles;
|
|
16
|
-
|
|
17
|
-
declare const styles: Styles;
|
|
18
|
-
|
|
19
|
-
export default styles;
|
|
1
|
+
export type Styles = {
|
|
2
|
+
slider: string;
|
|
3
|
+
slider__options: string;
|
|
4
|
+
slider__text: string;
|
|
5
|
+
slider__track: string;
|
|
6
|
+
'slider__track--disabled': string;
|
|
7
|
+
'slider__track-wrapper': string;
|
|
8
|
+
'slider__track-wrapper--disabled': string;
|
|
9
|
+
slider__trigger: string;
|
|
10
|
+
'slider__trigger--disabled': string;
|
|
11
|
+
'slider__trigger-inner': string;
|
|
12
|
+
'slider__trigger-inner--disabled': string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type ClassNames = keyof Styles;
|
|
16
|
+
|
|
17
|
+
declare const styles: Styles;
|
|
18
|
+
|
|
19
|
+
export default styles;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SpacerSizes } from './../../theme/spacers';
|
|
3
|
-
interface SpacerProps {
|
|
4
|
-
/** Sets the size of the spacer. */
|
|
5
|
-
size?: SpacerSizes;
|
|
6
|
-
/** Adds custom classes to the element. */
|
|
7
|
-
className?: string;
|
|
8
|
-
/** Sets the data-testid attribute. */
|
|
9
|
-
testId?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const Spacer: React.ForwardRefExoticComponent<SpacerProps & React.RefAttributes<HTMLElement>>;
|
|
12
|
-
export default Spacer;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpacerSizes } from './../../theme/spacers';
|
|
3
|
+
interface SpacerProps {
|
|
4
|
+
/** Sets the size of the spacer. */
|
|
5
|
+
size?: SpacerSizes;
|
|
6
|
+
/** Adds custom classes to the element. */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Sets the data-testid attribute. */
|
|
9
|
+
testId?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Spacer: React.ForwardRefExoticComponent<SpacerProps & React.RefAttributes<HTMLElement>>;
|
|
12
|
+
export default Spacer;
|
|
13
13
|
//# sourceMappingURL=Spacer.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Spacer from './Spacer';
|
|
2
|
-
export * from './Spacer';
|
|
3
|
-
export default Spacer;
|
|
1
|
+
import Spacer from './Spacer';
|
|
2
|
+
export * from './Spacer';
|
|
3
|
+
export default Spacer;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
@import '../../scss/spacers.scss';
|
|
2
|
-
|
|
3
|
-
.spacer {
|
|
4
|
-
display: block;
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 0.125rem;
|
|
7
|
-
|
|
8
|
-
&--4xs {
|
|
9
|
-
height: getSpacer(4xs);
|
|
10
|
-
}
|
|
11
|
-
&--3xs {
|
|
12
|
-
height: getSpacer(3xs);
|
|
13
|
-
}
|
|
14
|
-
&--2xs {
|
|
15
|
-
height: getSpacer(2xs);
|
|
16
|
-
}
|
|
17
|
-
&--xs {
|
|
18
|
-
height: getSpacer(xs);
|
|
19
|
-
}
|
|
20
|
-
&--s {
|
|
21
|
-
height: getSpacer(s);
|
|
22
|
-
}
|
|
23
|
-
&--m {
|
|
24
|
-
height: getSpacer(m);
|
|
25
|
-
}
|
|
26
|
-
&--l {
|
|
27
|
-
height: getSpacer(l);
|
|
28
|
-
}
|
|
29
|
-
&--xl {
|
|
30
|
-
height: getSpacer(xl);
|
|
31
|
-
}
|
|
32
|
-
&--2xl {
|
|
33
|
-
height: getSpacer(2xl);
|
|
34
|
-
}
|
|
35
|
-
&--3xl {
|
|
36
|
-
height: getSpacer(3xl);
|
|
37
|
-
}
|
|
38
|
-
&--4xl {
|
|
39
|
-
height: getSpacer(4xl);
|
|
40
|
-
}
|
|
41
|
-
&--5xl {
|
|
42
|
-
height: getSpacer(5xl);
|
|
43
|
-
}
|
|
44
|
-
&--6xl {
|
|
45
|
-
height: getSpacer(6xl);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
1
|
+
@import '../../scss/spacers.scss';
|
|
2
|
+
|
|
3
|
+
.spacer {
|
|
4
|
+
display: block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 0.125rem;
|
|
7
|
+
|
|
8
|
+
&--4xs {
|
|
9
|
+
height: getSpacer(4xs);
|
|
10
|
+
}
|
|
11
|
+
&--3xs {
|
|
12
|
+
height: getSpacer(3xs);
|
|
13
|
+
}
|
|
14
|
+
&--2xs {
|
|
15
|
+
height: getSpacer(2xs);
|
|
16
|
+
}
|
|
17
|
+
&--xs {
|
|
18
|
+
height: getSpacer(xs);
|
|
19
|
+
}
|
|
20
|
+
&--s {
|
|
21
|
+
height: getSpacer(s);
|
|
22
|
+
}
|
|
23
|
+
&--m {
|
|
24
|
+
height: getSpacer(m);
|
|
25
|
+
}
|
|
26
|
+
&--l {
|
|
27
|
+
height: getSpacer(l);
|
|
28
|
+
}
|
|
29
|
+
&--xl {
|
|
30
|
+
height: getSpacer(xl);
|
|
31
|
+
}
|
|
32
|
+
&--2xl {
|
|
33
|
+
height: getSpacer(2xl);
|
|
34
|
+
}
|
|
35
|
+
&--3xl {
|
|
36
|
+
height: getSpacer(3xl);
|
|
37
|
+
}
|
|
38
|
+
&--4xl {
|
|
39
|
+
height: getSpacer(4xl);
|
|
40
|
+
}
|
|
41
|
+
&--5xl {
|
|
42
|
+
height: getSpacer(5xl);
|
|
43
|
+
}
|
|
44
|
+
&--6xl {
|
|
45
|
+
height: getSpacer(6xl);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export type Styles = {
|
|
2
|
-
spacer: string;
|
|
3
|
-
'spacer--2xl': string;
|
|
4
|
-
'spacer--2xs': string;
|
|
5
|
-
'spacer--3xl': string;
|
|
6
|
-
'spacer--3xs': string;
|
|
7
|
-
'spacer--4xl': string;
|
|
8
|
-
'spacer--4xs': string;
|
|
9
|
-
'spacer--5xl': string;
|
|
10
|
-
'spacer--6xl': string;
|
|
11
|
-
'spacer--l': string;
|
|
12
|
-
'spacer--m': string;
|
|
13
|
-
'spacer--s': string;
|
|
14
|
-
'spacer--xl': string;
|
|
15
|
-
'spacer--xs': string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export type ClassNames = keyof Styles;
|
|
19
|
-
|
|
20
|
-
declare const styles: Styles;
|
|
21
|
-
|
|
22
|
-
export default styles;
|
|
1
|
+
export type Styles = {
|
|
2
|
+
spacer: string;
|
|
3
|
+
'spacer--2xl': string;
|
|
4
|
+
'spacer--2xs': string;
|
|
5
|
+
'spacer--3xl': string;
|
|
6
|
+
'spacer--3xs': string;
|
|
7
|
+
'spacer--4xl': string;
|
|
8
|
+
'spacer--4xs': string;
|
|
9
|
+
'spacer--5xl': string;
|
|
10
|
+
'spacer--6xl': string;
|
|
11
|
+
'spacer--l': string;
|
|
12
|
+
'spacer--m': string;
|
|
13
|
+
'spacer--s': string;
|
|
14
|
+
'spacer--xl': string;
|
|
15
|
+
'spacer--xs': string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type ClassNames = keyof Styles;
|
|
19
|
+
|
|
20
|
+
declare const styles: Styles;
|
|
21
|
+
|
|
22
|
+
export default styles;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { HTMLTextareaProps, FormMode } from '../../constants';
|
|
3
|
-
interface TextareaProps extends HTMLTextareaProps {
|
|
4
|
-
/** initial value for textarea */
|
|
5
|
-
defaultValue?: string;
|
|
6
|
-
/** max character limit in textarea */
|
|
7
|
-
maxCharacters?: number;
|
|
8
|
-
/** The text is displayed in the end of the text-counter */
|
|
9
|
-
maxText?: string;
|
|
10
|
-
/** Sets the data-testid attribute. */
|
|
11
|
-
testId?: string;
|
|
12
|
-
/** If true, the component will have a bottom margin. */
|
|
13
|
-
marginBottom?: boolean;
|
|
14
|
-
/** If true, the component will be transparent. */
|
|
15
|
-
transparent?: boolean;
|
|
16
|
-
/** Changes the visuals of the textarea */
|
|
17
|
-
mode?: keyof typeof FormMode;
|
|
18
|
-
/** Label of the input */
|
|
19
|
-
label?: string;
|
|
20
|
-
/** id of the textarea */
|
|
21
|
-
textareaId?: string;
|
|
22
|
-
/** max rows */
|
|
23
|
-
maxRows?: number;
|
|
24
|
-
/** min rows */
|
|
25
|
-
minRows?: number;
|
|
26
|
-
/** auto-grows until maxRows */
|
|
27
|
-
grow?: boolean;
|
|
28
|
-
/** Error text to show above the component */
|
|
29
|
-
errorText?: string;
|
|
30
|
-
/** Component shown after label */
|
|
31
|
-
afterLabelChildren?: React.ReactNode;
|
|
32
|
-
/** Component shown under label */
|
|
33
|
-
belowLabelChildren?: React.ReactNode;
|
|
34
|
-
}
|
|
35
|
-
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
36
|
-
export default Textarea;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HTMLTextareaProps, FormMode } from '../../constants';
|
|
3
|
+
interface TextareaProps extends HTMLTextareaProps {
|
|
4
|
+
/** initial value for textarea */
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
/** max character limit in textarea */
|
|
7
|
+
maxCharacters?: number;
|
|
8
|
+
/** The text is displayed in the end of the text-counter */
|
|
9
|
+
maxText?: string;
|
|
10
|
+
/** Sets the data-testid attribute. */
|
|
11
|
+
testId?: string;
|
|
12
|
+
/** If true, the component will have a bottom margin. */
|
|
13
|
+
marginBottom?: boolean;
|
|
14
|
+
/** If true, the component will be transparent. */
|
|
15
|
+
transparent?: boolean;
|
|
16
|
+
/** Changes the visuals of the textarea */
|
|
17
|
+
mode?: keyof typeof FormMode;
|
|
18
|
+
/** Label of the input */
|
|
19
|
+
label?: string;
|
|
20
|
+
/** id of the textarea */
|
|
21
|
+
textareaId?: string;
|
|
22
|
+
/** max rows */
|
|
23
|
+
maxRows?: number;
|
|
24
|
+
/** min rows */
|
|
25
|
+
minRows?: number;
|
|
26
|
+
/** auto-grows until maxRows */
|
|
27
|
+
grow?: boolean;
|
|
28
|
+
/** Error text to show above the component */
|
|
29
|
+
errorText?: string;
|
|
30
|
+
/** Component shown after label */
|
|
31
|
+
afterLabelChildren?: React.ReactNode;
|
|
32
|
+
/** Component shown under label */
|
|
33
|
+
belowLabelChildren?: React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
36
|
+
export default Textarea;
|
|
37
37
|
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Textarea from './Textarea';
|
|
2
|
-
export * from './Textarea';
|
|
3
|
-
export default Textarea;
|
|
1
|
+
import Textarea from './Textarea';
|
|
2
|
+
export * from './Textarea';
|
|
3
|
+
export default Textarea;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
@import '../../scss/_spacers.scss';
|
|
2
|
-
@import '../../scss/_breakpoints.scss';
|
|
3
|
-
@import '../../scss/_palette.scss';
|
|
4
|
-
@import '../../scss/_font-settings.scss';
|
|
5
|
-
@import '../../scss/_input.scss';
|
|
6
|
-
|
|
7
|
-
.textarea {
|
|
8
|
-
@include input-wrapper;
|
|
9
|
-
|
|
10
|
-
&__error-text {
|
|
11
|
-
font-size: $font-size-sm;
|
|
12
|
-
line-height: $font-size-sm;
|
|
13
|
-
font-weight: 600;
|
|
14
|
-
color: $cherry500;
|
|
15
|
-
margin-top: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&--gutterBottom {
|
|
19
|
-
margin-bottom: getSpacer(s);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&__counter-wrapper {
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: end;
|
|
25
|
-
padding-top: getSpacer(2xs);
|
|
26
|
-
padding-right: 2px;
|
|
27
|
-
font-size: $font-size-sm;
|
|
28
|
-
line-height: 28px;
|
|
29
|
-
|
|
30
|
-
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
31
|
-
line-height: 30px;
|
|
32
|
-
font-size: $font-size-md;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
p {
|
|
36
|
-
margin: 0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&--on-dark {
|
|
40
|
-
color: $white;
|
|
41
|
-
}
|
|
42
|
-
&--invalid {
|
|
43
|
-
color: $cherry500;
|
|
44
|
-
font-weight: 600;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.content-wrapper {
|
|
50
|
-
@include content-wrapper;
|
|
51
|
-
&__input {
|
|
52
|
-
line-height: 28px;
|
|
53
|
-
height: auto;
|
|
54
|
-
padding: 16px;
|
|
55
|
-
resize: none;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
1
|
+
@import '../../scss/_spacers.scss';
|
|
2
|
+
@import '../../scss/_breakpoints.scss';
|
|
3
|
+
@import '../../scss/_palette.scss';
|
|
4
|
+
@import '../../scss/_font-settings.scss';
|
|
5
|
+
@import '../../scss/_input.scss';
|
|
6
|
+
|
|
7
|
+
.textarea {
|
|
8
|
+
@include input-wrapper;
|
|
9
|
+
|
|
10
|
+
&__error-text {
|
|
11
|
+
font-size: $font-size-sm;
|
|
12
|
+
line-height: $font-size-sm;
|
|
13
|
+
font-weight: 600;
|
|
14
|
+
color: $cherry500;
|
|
15
|
+
margin-top: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&--gutterBottom {
|
|
19
|
+
margin-bottom: getSpacer(s);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__counter-wrapper {
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: end;
|
|
25
|
+
padding-top: getSpacer(2xs);
|
|
26
|
+
padding-right: 2px;
|
|
27
|
+
font-size: $font-size-sm;
|
|
28
|
+
line-height: 28px;
|
|
29
|
+
|
|
30
|
+
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
31
|
+
line-height: 30px;
|
|
32
|
+
font-size: $font-size-md;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
p {
|
|
36
|
+
margin: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&--on-dark {
|
|
40
|
+
color: $white;
|
|
41
|
+
}
|
|
42
|
+
&--invalid {
|
|
43
|
+
color: $cherry500;
|
|
44
|
+
font-weight: 600;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.content-wrapper {
|
|
50
|
+
@include content-wrapper;
|
|
51
|
+
&__input {
|
|
52
|
+
line-height: 28px;
|
|
53
|
+
height: auto;
|
|
54
|
+
padding: 16px;
|
|
55
|
+
resize: none;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export type Styles = {
|
|
2
|
-
'content-wrapper': string;
|
|
3
|
-
'content-wrapper__input': string;
|
|
4
|
-
'content-wrapper__input--disabled': string;
|
|
5
|
-
'content-wrapper--bigform': string;
|
|
6
|
-
'content-wrapper--disabled': string;
|
|
7
|
-
'content-wrapper--invalid': string;
|
|
8
|
-
'content-wrapper--on-blueberry': string;
|
|
9
|
-
'content-wrapper--on-dark': string;
|
|
10
|
-
'content-wrapper--transparent': string;
|
|
11
|
-
textarea: string;
|
|
12
|
-
'textarea__after-label-children': string;
|
|
13
|
-
'textarea__counter-wrapper': string;
|
|
14
|
-
'textarea__counter-wrapper--invalid': string;
|
|
15
|
-
'textarea__counter-wrapper--on-dark': string;
|
|
16
|
-
'textarea__error-text': string;
|
|
17
|
-
'textarea__label-wrapper': string;
|
|
18
|
-
'textarea__label-wrapper--on-dark': string;
|
|
19
|
-
'textarea--gutterBottom': string;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export type ClassNames = keyof Styles;
|
|
23
|
-
|
|
24
|
-
declare const styles: Styles;
|
|
25
|
-
|
|
26
|
-
export default styles;
|
|
1
|
+
export type Styles = {
|
|
2
|
+
'content-wrapper': string;
|
|
3
|
+
'content-wrapper__input': string;
|
|
4
|
+
'content-wrapper__input--disabled': string;
|
|
5
|
+
'content-wrapper--bigform': string;
|
|
6
|
+
'content-wrapper--disabled': string;
|
|
7
|
+
'content-wrapper--invalid': string;
|
|
8
|
+
'content-wrapper--on-blueberry': string;
|
|
9
|
+
'content-wrapper--on-dark': string;
|
|
10
|
+
'content-wrapper--transparent': string;
|
|
11
|
+
textarea: string;
|
|
12
|
+
'textarea__after-label-children': string;
|
|
13
|
+
'textarea__counter-wrapper': string;
|
|
14
|
+
'textarea__counter-wrapper--invalid': string;
|
|
15
|
+
'textarea__counter-wrapper--on-dark': string;
|
|
16
|
+
'textarea__error-text': string;
|
|
17
|
+
'textarea__label-wrapper': string;
|
|
18
|
+
'textarea__label-wrapper--on-dark': string;
|
|
19
|
+
'textarea--gutterBottom': string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type ClassNames = keyof Styles;
|
|
23
|
+
|
|
24
|
+
declare const styles: Styles;
|
|
25
|
+
|
|
26
|
+
export default styles;
|