@helsenorge/designsystem-react 6.5.0 → 7.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/__mocks__/IntersectionObserver.d.ts +0 -1
- package/__mocks__/MutationObserver.d.ts +0 -1
- package/__mocks__/ResizeObserver.d.ts +0 -1
- package/__mocks__/matchMedia.d.ts +1 -3
- package/__mocks__/matchMedia.js +6 -5
- package/__mocks__/matchMedia.js.map +1 -1
- package/__mocks__/useHover.d.ts +0 -1
- package/__mocks__/useHover.js +3 -2
- package/__mocks__/useHover.js.map +1 -1
- package/__mocks__/useLayoutEvent.d.ts +0 -1
- package/__mocks__/useLayoutEvent.js +3 -2
- package/__mocks__/useLayoutEvent.js.map +1 -1
- package/__mocks__/useOutsideEvent.d.ts +0 -1
- package/__mocks__/useOutsideEvent.js +3 -2
- package/__mocks__/useOutsideEvent.js.map +1 -1
- package/__mocks__/useSize.d.ts +0 -1
- package/__mocks__/useSize.js +10 -2
- package/__mocks__/useSize.js.map +1 -1
- package/__mocks__/uuid.d.ts +0 -1
- package/__mocks__/uuid.js +4 -3
- package/__mocks__/uuid.js.map +1 -1
- package/components/AnchorLink/AnchorLink.d.ts +1 -2
- package/components/AnchorLink/AnchorLink.js.map +1 -1
- package/components/AnchorLink/AnchorLink.stories.d.ts +30 -0
- package/components/AnchorLink/index.d.ts +0 -1
- package/components/Avatar/Avatar.d.ts +0 -1
- package/components/Avatar/Avatar.stories.d.ts +34 -0
- package/components/Avatar/index.d.ts +0 -1
- package/components/Badge/Badge.d.ts +0 -1
- package/components/Badge/Badge.js +5 -6
- package/components/Badge/Badge.js.map +1 -1
- package/components/Badge/Badge.stories.d.ts +28 -0
- package/components/Badge/index.d.ts +0 -1
- package/components/Button/Button.d.ts +0 -1
- package/components/Button/Button.stories.d.ts +54 -0
- package/components/Button/index.d.ts +0 -1
- package/components/Button/styles.module.scss +2 -1
- package/components/ButtonWithModal/ButtonWithModal.d.ts +1 -2
- package/components/ButtonWithModal/ButtonWithModal.js +8 -8
- package/components/ButtonWithModal/ButtonWithModal.js.map +1 -1
- package/components/ButtonWithModal/index.d.ts +0 -1
- package/components/Checkbox/Checkbox.d.ts +0 -1
- package/components/Checkbox/Checkbox.js +18 -19
- package/components/Checkbox/Checkbox.js.map +1 -1
- package/components/Checkbox/Checkbox.stories.d.ts +53 -0
- package/components/Checkbox/index.d.ts +0 -1
- package/components/Close/Close.d.ts +0 -1
- package/components/Close/Close.stories.d.ts +28 -0
- package/components/Close/index.d.ts +0 -1
- package/components/DictionaryTrigger/DictionaryTrigger.d.ts +1 -2
- package/components/DictionaryTrigger/DictionaryTrigger.js.map +1 -1
- package/components/DictionaryTrigger/DictionaryTrigger.stories.d.ts +29 -0
- package/components/DictionaryTrigger/index.d.ts +0 -1
- package/components/Dropdown/Dropdown.d.ts +0 -1
- package/components/Dropdown/Dropdown.stories.d.ts +62 -0
- package/components/Dropdown/index.d.ts +0 -1
- package/components/Duolist/Duolist.d.ts +3 -4
- package/components/Duolist/Duolist.js +10 -11
- package/components/Duolist/Duolist.js.map +1 -1
- package/components/Duolist/Duolist.stories.d.ts +31 -0
- package/components/Duolist/index.d.ts +0 -1
- package/components/EmptyState/EmptyState.d.ts +1 -2
- package/components/EmptyState/EmptyState.js.map +1 -1
- package/components/EmptyState/EmptyState.stories.d.ts +25 -0
- package/components/EmptyState/NobodyHome.d.ts +0 -1
- package/components/EmptyState/index.d.ts +0 -1
- package/components/ErrorWrapper/ErrorWrapper.d.ts +0 -1
- package/components/ErrorWrapper/index.d.ts +0 -1
- package/components/Expander/Expander.d.ts +1 -2
- package/components/Expander/Expander.js +21 -21
- package/components/Expander/Expander.js.map +1 -1
- package/components/Expander/Expander.stories.d.ts +59 -0
- package/components/Expander/index.d.ts +0 -1
- package/components/Expander/styles.module.scss +10 -3
- package/components/ExpanderHierarchy/Expander.d.ts +0 -1
- package/components/ExpanderHierarchy/Expander.js +5 -5
- package/components/ExpanderHierarchy/Expander.js.map +1 -1
- package/components/ExpanderHierarchy/ExpanderButton.d.ts +0 -1
- package/components/ExpanderHierarchy/ExpanderButton.js +3 -3
- package/components/ExpanderHierarchy/ExpanderButton.js.map +1 -1
- package/components/ExpanderHierarchy/ExpanderHierarchy.d.ts +0 -1
- package/components/ExpanderHierarchy/ExpanderHierarchy.js +3 -3
- package/components/ExpanderHierarchy/ExpanderHierarchy.js.map +1 -1
- package/components/ExpanderHierarchy/ExpanderHierarchy.stories.d.ts +42 -0
- package/components/ExpanderHierarchy/index.d.ts +0 -1
- package/components/ExpanderHierarchy/utils.d.ts +0 -1
- package/components/ExpanderList/ExpanderList.d.ts +0 -1
- package/components/ExpanderList/ExpanderList.js +84 -81
- package/components/ExpanderList/ExpanderList.js.map +1 -1
- package/components/ExpanderList/ExpanderList.stories.d.ts +57 -0
- package/components/ExpanderList/index.d.ts +0 -1
- package/components/FormExample/FormExample.d.ts +1 -2
- package/components/FormExample/FormExample.js +50 -58
- package/components/FormExample/FormExample.js.map +1 -1
- package/components/FormExample/index.d.ts +0 -1
- package/components/FormGroup/FormGroup.d.ts +0 -1
- package/components/FormGroup/FormGroup.js +62 -71
- package/components/FormGroup/FormGroup.js.map +1 -1
- package/components/FormGroup/FormGroup.stories.d.ts +48 -0
- package/components/FormGroup/index.d.ts +0 -1
- package/components/FormLayout/FormLayout.d.ts +0 -1
- package/components/FormLayout/FormLayout.stories.d.ts +31 -0
- package/components/FormLayout/index.d.ts +0 -1
- package/components/GridExample/GridExample.d.ts +0 -1
- package/components/GridExample/index.d.ts +0 -1
- package/components/HelpBubble/HelpBubble.d.ts +0 -1
- package/components/HelpBubble/HelpBubble.stories.d.ts +41 -0
- package/components/HelpBubble/index.d.ts +0 -1
- package/components/HelpBubbleExample/HelpBubbleExample.d.ts +0 -1
- package/components/HelpBubbleExample/index.d.ts +0 -1
- package/components/HelpPanel/HelpPanel.d.ts +1 -2
- package/components/HelpPanel/HelpPanel.js.map +1 -1
- package/components/HelpPanel/HelpPanel.stories.d.ts +30 -0
- package/components/HelpPanel/index.d.ts +0 -1
- package/components/HelpQuestion/HelpQuestion.d.ts +1 -2
- package/components/HelpQuestion/HelpQuestion.js.map +1 -1
- package/components/HelpQuestion/HelpQuestion.stories.d.ts +28 -0
- package/components/HelpQuestion/index.d.ts +0 -1
- package/components/HighlightBox/HighlightBox.d.ts +2 -3
- package/components/HighlightBox/HighlightBox.js +14 -15
- package/components/HighlightBox/HighlightBox.js.map +1 -1
- package/components/HighlightBox/HighlightBox.stories.d.ts +41 -0
- package/components/HighlightBox/index.d.ts +0 -1
- package/components/HorizontalScroll/HorizontalScroll.d.ts +0 -1
- package/components/HorizontalScroll/index.d.ts +0 -1
- package/components/HorizontalScroll/styles.module.scss +4 -1
- package/components/Icon/Icon.d.ts +0 -1
- package/components/Icon/Icon.stories.d.ts +34 -0
- package/components/Icon/index.d.ts +0 -1
- package/components/Icons/ActiveMonitoring.d.ts +0 -1
- package/components/Icons/ActiveMonitoring.js +1 -1
- package/components/Icons/ActiveMonitoring.js.map +1 -1
- package/components/Icons/AcupunctureBack.d.ts +0 -1
- package/components/Icons/AcupunctureBack.js +2 -2
- package/components/Icons/AcupunctureBack.js.map +1 -1
- package/components/Icons/AdditionalIconInformation.d.ts +0 -1
- package/components/Icons/AlarmClock.d.ts +0 -1
- package/components/Icons/AlertSignFill.d.ts +0 -1
- package/components/Icons/AlertSignStroke.d.ts +0 -1
- package/components/Icons/Amputation.d.ts +0 -1
- package/components/Icons/Amputation.js +2 -2
- package/components/Icons/Amputation.js.map +1 -1
- package/components/Icons/Anxiety.d.ts +0 -1
- package/components/Icons/Anxiety.js +1 -1
- package/components/Icons/Anxiety.js.map +1 -1
- package/components/Icons/Apple.d.ts +0 -1
- package/components/Icons/Apple.js +2 -2
- package/components/Icons/Apple.js.map +1 -1
- package/components/Icons/Archive.d.ts +0 -1
- package/components/Icons/ArmFlexing.d.ts +0 -1
- package/components/Icons/ArmFlexing.js +2 -2
- package/components/Icons/ArmFlexing.js.map +1 -1
- package/components/Icons/ArrowDown.d.ts +0 -1
- package/components/Icons/ArrowLeft.d.ts +0 -1
- package/components/Icons/ArrowRight.d.ts +0 -1
- package/components/Icons/ArrowUp.d.ts +0 -1
- package/components/Icons/ArrowUpRight.d.ts +0 -1
- package/components/Icons/Attachment.d.ts +0 -1
- package/components/Icons/Atv.d.ts +0 -1
- package/components/Icons/Atv.js +1 -1
- package/components/Icons/Atv.js.map +1 -1
- package/components/Icons/Avatar.d.ts +0 -1
- package/components/Icons/AwakePersonOnPillow.d.ts +0 -1
- package/components/Icons/AwakePersonOnPillow.js +2 -2
- package/components/Icons/AwakePersonOnPillow.js.map +1 -1
- package/components/Icons/Baby.d.ts +0 -1
- package/components/Icons/Baby.js +2 -2
- package/components/Icons/Baby.js.map +1 -1
- package/components/Icons/BandAid.d.ts +0 -1
- package/components/Icons/BandAid.js +2 -2
- package/components/Icons/BandAid.js.map +1 -1
- package/components/Icons/BeerAndPills.d.ts +0 -1
- package/components/Icons/BeerAndPills.js +2 -2
- package/components/Icons/BeerAndPills.js.map +1 -1
- package/components/Icons/Bell.d.ts +0 -1
- package/components/Icons/Bell.js +2 -2
- package/components/Icons/Bell.js.map +1 -1
- package/components/Icons/Bike.d.ts +0 -1
- package/components/Icons/Bike.js +2 -2
- package/components/Icons/Bike.js.map +1 -1
- package/components/Icons/BirthControl.d.ts +0 -1
- package/components/Icons/BirthdayCake.d.ts +0 -1
- package/components/Icons/BirthdayCake.js +2 -2
- package/components/Icons/BirthdayCake.js.map +1 -1
- package/components/Icons/Boat.d.ts +0 -1
- package/components/Icons/Boat.js +2 -2
- package/components/Icons/Boat.js.map +1 -1
- package/components/Icons/Body.d.ts +0 -1
- package/components/Icons/Braille.d.ts +0 -1
- package/components/Icons/Brain.d.ts +0 -1
- package/components/Icons/Brain.js +1 -1
- package/components/Icons/Brain.js.map +1 -1
- package/components/Icons/BreastReconstruction.d.ts +0 -1
- package/components/Icons/BreastReconstruction.js +2 -2
- package/components/Icons/BreastReconstruction.js.map +1 -1
- package/components/Icons/BreastRemoval.d.ts +0 -1
- package/components/Icons/BreastRemoval.js +2 -2
- package/components/Icons/BreastRemoval.js.map +1 -1
- package/components/Icons/Breasts.d.ts +0 -1
- package/components/Icons/Breasts.js +1 -1
- package/components/Icons/Breasts.js.map +1 -1
- package/components/Icons/BrokenHeart.d.ts +0 -1
- package/components/Icons/BrokenHeart.js +2 -2
- package/components/Icons/BrokenHeart.js.map +1 -1
- package/components/Icons/BrokenPuzzle.d.ts +0 -1
- package/components/Icons/BrokenPuzzle.js +2 -2
- package/components/Icons/BrokenPuzzle.js.map +1 -1
- package/components/Icons/Bus.d.ts +0 -1
- package/components/Icons/Calendar.d.ts +0 -1
- package/components/Icons/CalendarChange.d.ts +0 -1
- package/components/Icons/CalendarCheck.d.ts +0 -1
- package/components/Icons/CalendarEvent.d.ts +0 -1
- package/components/Icons/CalendarEvent.js +2 -2
- package/components/Icons/CalendarEvent.js.map +1 -1
- package/components/Icons/CalendarSave.d.ts +0 -1
- package/components/Icons/Cancer.d.ts +0 -1
- package/components/Icons/Cancer.js +2 -2
- package/components/Icons/Cancer.js.map +1 -1
- package/components/Icons/Candle.d.ts +0 -1
- package/components/Icons/Car.d.ts +0 -1
- package/components/Icons/Car.js +2 -2
- package/components/Icons/Car.js.map +1 -1
- package/components/Icons/Change.d.ts +0 -1
- package/components/Icons/Check.d.ts +0 -1
- package/components/Icons/CheckFill.d.ts +0 -1
- package/components/Icons/CheckOutline.d.ts +0 -1
- package/components/Icons/CheckOutline.js +2 -2
- package/components/Icons/CheckOutline.js.map +1 -1
- package/components/Icons/Chest.d.ts +0 -1
- package/components/Icons/Chest.js +2 -2
- package/components/Icons/Chest.js.map +1 -1
- package/components/Icons/ChevronDown.d.ts +0 -1
- package/components/Icons/ChevronLeft.d.ts +0 -1
- package/components/Icons/ChevronRight.d.ts +0 -1
- package/components/Icons/ChevronUp.d.ts +0 -1
- package/components/Icons/ChevronsDown.d.ts +0 -1
- package/components/Icons/ChevronsUp.d.ts +0 -1
- package/components/Icons/ChildPlaying.d.ts +0 -1
- package/components/Icons/ChildPlaying.js +2 -2
- package/components/Icons/ChildPlaying.js.map +1 -1
- package/components/Icons/Cigarette.d.ts +0 -1
- package/components/Icons/Cigarette.js +2 -2
- package/components/Icons/Cigarette.js.map +1 -1
- package/components/Icons/Coins.d.ts +0 -1
- package/components/Icons/Coins.js +2 -2
- package/components/Icons/Coins.js.map +1 -1
- package/components/Icons/Contacts.d.ts +0 -1
- package/components/Icons/Copy.d.ts +0 -1
- package/components/Icons/CoronaCertificate.d.ts +0 -1
- package/components/Icons/CoronaCertificate.js +2 -2
- package/components/Icons/CoronaCertificate.js.map +1 -1
- package/components/Icons/Coronavirus.d.ts +0 -1
- package/components/Icons/Coronavirus.js +2 -2
- package/components/Icons/Coronavirus.js.map +1 -1
- package/components/Icons/Cough.d.ts +0 -1
- package/components/Icons/Cough.js +2 -2
- package/components/Icons/Cough.js.map +1 -1
- package/components/Icons/CriticalHealthInfo.d.ts +0 -1
- package/components/Icons/CriticalHealthInfo.js +2 -2
- package/components/Icons/CriticalHealthInfo.js.map +1 -1
- package/components/Icons/Cross.d.ts +0 -1
- package/components/Icons/Cross.js +2 -2
- package/components/Icons/Cross.js.map +1 -1
- package/components/Icons/DataExchange.d.ts +0 -1
- package/components/Icons/DataReceived.d.ts +0 -1
- package/components/Icons/DataSent.d.ts +0 -1
- package/components/Icons/Depression.d.ts +0 -1
- package/components/Icons/Depression.js +2 -2
- package/components/Icons/Depression.js.map +1 -1
- package/components/Icons/DigestiveSystem.d.ts +0 -1
- package/components/Icons/DigestiveSystem.js +2 -2
- package/components/Icons/DigestiveSystem.js.map +1 -1
- package/components/Icons/Dizzy.d.ts +0 -1
- package/components/Icons/Dizzy.js +2 -2
- package/components/Icons/Dizzy.js.map +1 -1
- package/components/Icons/Documents.d.ts +0 -1
- package/components/Icons/Documents.js +2 -2
- package/components/Icons/Documents.js.map +1 -1
- package/components/Icons/Dog.d.ts +0 -1
- package/components/Icons/Dog.js +2 -2
- package/components/Icons/Dog.js.map +1 -1
- package/components/Icons/DonorCard.d.ts +0 -1
- package/components/Icons/DonorCard.js +2 -2
- package/components/Icons/DonorCard.js.map +1 -1
- package/components/Icons/Download.d.ts +0 -1
- package/components/Icons/Draft.d.ts +0 -1
- package/components/Icons/Draft.js +2 -2
- package/components/Icons/Draft.js.map +1 -1
- package/components/Icons/EChat.d.ts +0 -1
- package/components/Icons/Ear.d.ts +0 -1
- package/components/Icons/EarDeaf.d.ts +0 -1
- package/components/Icons/EarHearingAid.d.ts +0 -1
- package/components/Icons/EarNoseThroat.d.ts +0 -1
- package/components/Icons/EarNoseThroat.js +2 -2
- package/components/Icons/EarNoseThroat.js.map +1 -1
- package/components/Icons/EarVolume.d.ts +0 -1
- package/components/Icons/ElderlyPerson.d.ts +0 -1
- package/components/Icons/ElderlyPerson.js +2 -2
- package/components/Icons/ElderlyPerson.js.map +1 -1
- package/components/Icons/Embolization.d.ts +0 -1
- package/components/Icons/Embolization.js +2 -2
- package/components/Icons/Embolization.js.map +1 -1
- package/components/Icons/EmergencyCall.d.ts +0 -1
- package/components/Icons/EmoticonAnnoyed.d.ts +0 -1
- package/components/Icons/EmoticonDelighted.d.ts +0 -1
- package/components/Icons/EmoticonDisappointed.d.ts +0 -1
- package/components/Icons/EmoticonHappy.d.ts +0 -1
- package/components/Icons/EmoticonMeh.d.ts +0 -1
- package/components/Icons/EnterFullScreen.d.ts +0 -1
- package/components/Icons/Envelope.d.ts +0 -1
- package/components/Icons/Epilepsy.d.ts +0 -1
- package/components/Icons/Epilepsy.js +2 -2
- package/components/Icons/Epilepsy.js.map +1 -1
- package/components/Icons/Eraser.d.ts +0 -1
- package/components/Icons/ErrorSignFill.d.ts +0 -1
- package/components/Icons/ErrorSignStroke.d.ts +0 -1
- package/components/Icons/EuropeanHealthCard.d.ts +0 -1
- package/components/Icons/EuropeanHealthCard.js +2 -2
- package/components/Icons/EuropeanHealthCard.js.map +1 -1
- package/components/Icons/ExitFullScreen.d.ts +0 -1
- package/components/Icons/Eye.d.ts +0 -1
- package/components/Icons/Facebook.d.ts +0 -1
- package/components/Icons/Facebook.js +2 -2
- package/components/Icons/Facebook.js.map +1 -1
- package/components/Icons/FallingLeaf.d.ts +0 -1
- package/components/Icons/Female.d.ts +0 -1
- package/components/Icons/Female.js +2 -2
- package/components/Icons/Female.js.map +1 -1
- package/components/Icons/FemaleDoctor.d.ts +0 -1
- package/components/Icons/FemaleDoctor.js +2 -2
- package/components/Icons/FemaleDoctor.js.map +1 -1
- package/components/Icons/Ferry.d.ts +0 -1
- package/components/Icons/Ferry.js +2 -2
- package/components/Icons/Ferry.js.map +1 -1
- package/components/Icons/File.d.ts +0 -1
- package/components/Icons/Filter.d.ts +0 -1
- package/components/Icons/FingerBleed.d.ts +0 -1
- package/components/Icons/FingerBleed.js +2 -2
- package/components/Icons/FingerBleed.js.map +1 -1
- package/components/Icons/FirstAidKit.d.ts +0 -1
- package/components/Icons/FirstAidKit.js +2 -2
- package/components/Icons/FirstAidKit.js.map +1 -1
- package/components/Icons/FloppyDisk.d.ts +0 -1
- package/components/Icons/Football.d.ts +0 -1
- package/components/Icons/Football.js +2 -2
- package/components/Icons/Football.js.map +1 -1
- package/components/Icons/Form.d.ts +0 -1
- package/components/Icons/Forward.d.ts +0 -1
- package/components/Icons/Gallery.d.ts +0 -1
- package/components/Icons/Garden.d.ts +0 -1
- package/components/Icons/Garden.js +2 -2
- package/components/Icons/Garden.js.map +1 -1
- package/components/Icons/GasCan.d.ts +0 -1
- package/components/Icons/GasCan.js +2 -2
- package/components/Icons/GasCan.js.map +1 -1
- package/components/Icons/GenderIdentity.d.ts +0 -1
- package/components/Icons/Glasses.d.ts +0 -1
- package/components/Icons/Globe.d.ts +0 -1
- package/components/Icons/Graph.d.ts +0 -1
- package/components/Icons/Group.d.ts +0 -1
- package/components/Icons/GroupTwins.d.ts +0 -1
- package/components/Icons/HTMLFile.d.ts +0 -1
- package/components/Icons/HandWaving.d.ts +0 -1
- package/components/Icons/HandWaving.js +2 -2
- package/components/Icons/HandWaving.js.map +1 -1
- package/components/Icons/HandWithDisease.d.ts +0 -1
- package/components/Icons/HandWithDisease.js +2 -2
- package/components/Icons/HandWithDisease.js.map +1 -1
- package/components/Icons/HandsAndHeart.d.ts +0 -1
- package/components/Icons/HealthClinic.d.ts +0 -1
- package/components/Icons/HealthClinic.js +2 -2
- package/components/Icons/HealthClinic.js.map +1 -1
- package/components/Icons/HealthWarning.d.ts +0 -1
- package/components/Icons/HealthWarning.js +2 -2
- package/components/Icons/HealthWarning.js.map +1 -1
- package/components/Icons/HealthcarePerson.d.ts +0 -1
- package/components/Icons/HealthcarePersonell.d.ts +0 -1
- package/components/Icons/HearingProtection.d.ts +0 -1
- package/components/Icons/Heart.d.ts +0 -1
- package/components/Icons/HeartHands.d.ts +0 -1
- package/components/Icons/HelpSign.d.ts +0 -1
- package/components/Icons/HelpingHand.d.ts +0 -1
- package/components/Icons/HelpingHand.js +2 -2
- package/components/Icons/HelpingHand.js.map +1 -1
- package/components/Icons/Hemodialysis.d.ts +0 -1
- package/components/Icons/Hemodialysis.js +2 -2
- package/components/Icons/Hemodialysis.js.map +1 -1
- package/components/Icons/Hiker.d.ts +0 -1
- package/components/Icons/Hiker.js +2 -2
- package/components/Icons/Hiker.js.map +1 -1
- package/components/Icons/Hipprosthesis.d.ts +0 -1
- package/components/Icons/Hipprosthesis.js +2 -2
- package/components/Icons/Hipprosthesis.js.map +1 -1
- package/components/Icons/History.d.ts +0 -1
- package/components/Icons/HivAndAids.d.ts +0 -1
- package/components/Icons/HivAndAids.js +2 -2
- package/components/Icons/HivAndAids.js.map +1 -1
- package/components/Icons/Home.d.ts +0 -1
- package/components/Icons/Hormone.d.ts +0 -1
- package/components/Icons/Hormone.js +2 -2
- package/components/Icons/Hormone.js.map +1 -1
- package/components/Icons/Hospital.d.ts +0 -1
- package/components/Icons/Hourglass.d.ts +0 -1
- package/components/Icons/IconNames.d.ts +0 -1
- package/components/Icons/ImgFile.d.ts +0 -1
- package/components/Icons/ImgFile.js +1 -1
- package/components/Icons/ImgFile.js.map +1 -1
- package/components/Icons/Inbox.d.ts +0 -1
- package/components/Icons/Inbox.js +2 -2
- package/components/Icons/Inbox.js.map +1 -1
- package/components/Icons/InfoSignFill.d.ts +0 -1
- package/components/Icons/InfoSignStroke.d.ts +0 -1
- package/components/Icons/Instagram.d.ts +0 -1
- package/components/Icons/Instagram.js +2 -2
- package/components/Icons/Instagram.js.map +1 -1
- package/components/Icons/Intravenous.d.ts +0 -1
- package/components/Icons/Intravenous.js +2 -2
- package/components/Icons/Intravenous.js.map +1 -1
- package/components/Icons/JointPain.d.ts +0 -1
- package/components/Icons/JointPain.js +2 -2
- package/components/Icons/JointPain.js.map +1 -1
- package/components/Icons/Journal.d.ts +0 -1
- package/components/Icons/JpgFile.d.ts +0 -1
- package/components/Icons/JpgFile.js +2 -2
- package/components/Icons/JpgFile.js.map +1 -1
- package/components/Icons/Kidney.d.ts +0 -1
- package/components/Icons/Kidney.js +2 -2
- package/components/Icons/Kidney.js.map +1 -1
- package/components/Icons/KitchenScale.d.ts +0 -1
- package/components/Icons/KitchenScale.js +4 -4
- package/components/Icons/KitchenScale.js.map +1 -1
- package/components/Icons/Kjernejournal.d.ts +0 -1
- package/components/Icons/Kjernejournal.js +2 -2
- package/components/Icons/Kjernejournal.js.map +1 -1
- package/components/Icons/Laboratory.d.ts +0 -1
- package/components/Icons/Laboratory.js +2 -2
- package/components/Icons/Laboratory.js.map +1 -1
- package/components/Icons/LaptopBlog.d.ts +0 -1
- package/components/Icons/LaptopBlog.js +1 -1
- package/components/Icons/LaptopBlog.js.map +1 -1
- package/components/Icons/LawBook.d.ts +0 -1
- package/components/Icons/LawBook.js +2 -2
- package/components/Icons/LawBook.js.map +1 -1
- package/components/Icons/LegalDocument.d.ts +0 -1
- package/components/Icons/LightBulb.d.ts +0 -1
- package/components/Icons/LightBulb.js +2 -2
- package/components/Icons/LightBulb.js.map +1 -1
- package/components/Icons/List.d.ts +0 -1
- package/components/Icons/Location.d.ts +0 -1
- package/components/Icons/Lock.d.ts +0 -1
- package/components/Icons/Login.d.ts +0 -1
- package/components/Icons/Logout.d.ts +0 -1
- package/components/Icons/Lungs.d.ts +0 -1
- package/components/Icons/Lungs.js +2 -2
- package/components/Icons/Lungs.js.map +1 -1
- package/components/Icons/Makeup.d.ts +0 -1
- package/components/Icons/Makeup.js +2 -2
- package/components/Icons/Makeup.js.map +1 -1
- package/components/Icons/MaleDoctor.d.ts +0 -1
- package/components/Icons/MaleDoctor.js +2 -2
- package/components/Icons/MaleDoctor.js.map +1 -1
- package/components/Icons/MaleDoctorAndPerson.d.ts +0 -1
- package/components/Icons/MaleDoctorAndPerson.js +2 -2
- package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
- package/components/Icons/MaleGenitalia.d.ts +0 -1
- package/components/Icons/MaleGenitalia.js +2 -2
- package/components/Icons/MaleGenitalia.js.map +1 -1
- package/components/Icons/Medicine.d.ts +0 -1
- package/components/Icons/MedicineWarning.d.ts +0 -1
- package/components/Icons/MedicineWarning.js +2 -2
- package/components/Icons/MedicineWarning.js.map +1 -1
- package/components/Icons/MentalHealthAdult.d.ts +0 -1
- package/components/Icons/MentalHealthAdult.js +2 -2
- package/components/Icons/MentalHealthAdult.js.map +1 -1
- package/components/Icons/MentalHealthChild.d.ts +0 -1
- package/components/Icons/MentalHealthChild.js +2 -2
- package/components/Icons/MentalHealthChild.js.map +1 -1
- package/components/Icons/Menu.d.ts +0 -1
- package/components/Icons/Microscope.d.ts +0 -1
- package/components/Icons/Microscope.js +2 -2
- package/components/Icons/Microscope.js.map +1 -1
- package/components/Icons/Minus.d.ts +0 -1
- package/components/Icons/Mirror.d.ts +0 -1
- package/components/Icons/Mirror.js +2 -2
- package/components/Icons/Mirror.js.map +1 -1
- package/components/Icons/MobilePhone.d.ts +0 -1
- package/components/Icons/MotherHoldingBaby.d.ts +0 -1
- package/components/Icons/MotherHoldingBaby.js +2 -2
- package/components/Icons/MotherHoldingBaby.js.map +1 -1
- package/components/Icons/MuscleBack.d.ts +0 -1
- package/components/Icons/MuscleBack.js +2 -2
- package/components/Icons/MuscleBack.js.map +1 -1
- package/components/Icons/MuscleLeg.d.ts +0 -1
- package/components/Icons/MuscleLeg.js +2 -2
- package/components/Icons/MuscleLeg.js.map +1 -1
- package/components/Icons/Mushroom.d.ts +0 -1
- package/components/Icons/Mushroom.js +2 -2
- package/components/Icons/Mushroom.js.map +1 -1
- package/components/Icons/Music.d.ts +0 -1
- package/components/Icons/Music.js +2 -2
- package/components/Icons/Music.js.map +1 -1
- package/components/Icons/MusselsAndSalt.d.ts +0 -1
- package/components/Icons/MusselsAndSalt.js +2 -2
- package/components/Icons/MusselsAndSalt.js.map +1 -1
- package/components/Icons/NoAccess.d.ts +0 -1
- package/components/Icons/NoEye.d.ts +0 -1
- package/components/Icons/NoFilter.d.ts +0 -1
- package/components/Icons/Notepad.d.ts +0 -1
- package/components/Icons/Notepad.js +2 -2
- package/components/Icons/Notepad.js.map +1 -1
- package/components/Icons/Osteotomy.d.ts +0 -1
- package/components/Icons/Osteotomy.js +2 -2
- package/components/Icons/Osteotomy.js.map +1 -1
- package/components/Icons/PaintRoller.d.ts +0 -1
- package/components/Icons/PaintRoller.js +2 -2
- package/components/Icons/PaintRoller.js.map +1 -1
- package/components/Icons/PaperPlane.d.ts +0 -1
- package/components/Icons/PatientAndPerson.d.ts +0 -1
- package/components/Icons/PatientAndPerson.js +2 -2
- package/components/Icons/PatientAndPerson.js.map +1 -1
- package/components/Icons/Pause.d.ts +0 -1
- package/components/Icons/PdfFile.d.ts +0 -1
- package/components/Icons/PdfFile.js +1 -1
- package/components/Icons/PdfFile.js.map +1 -1
- package/components/Icons/Pencil.d.ts +0 -1
- package/components/Icons/PeopleTalking.d.ts +0 -1
- package/components/Icons/PeopleTalking.js +2 -2
- package/components/Icons/PeopleTalking.js.map +1 -1
- package/components/Icons/Peritonealdialysis.d.ts +0 -1
- package/components/Icons/Peritonealdialysis.js +2 -2
- package/components/Icons/Peritonealdialysis.js.map +1 -1
- package/components/Icons/Person.d.ts +0 -1
- package/components/Icons/Person.js +2 -2
- package/components/Icons/Person.js.map +1 -1
- package/components/Icons/PersonAndPatient.d.ts +0 -1
- package/components/Icons/PersonAndPatient.js +2 -2
- package/components/Icons/PersonAndPatient.js.map +1 -1
- package/components/Icons/PersonCancel.d.ts +0 -1
- package/components/Icons/PersonInXRayMachine.d.ts +0 -1
- package/components/Icons/PersonInXRayMachine.js +2 -2
- package/components/Icons/PersonInXRayMachine.js.map +1 -1
- package/components/Icons/PersonOverweight.d.ts +0 -1
- package/components/Icons/PersonOverweight.js +2 -2
- package/components/Icons/PersonOverweight.js.map +1 -1
- package/components/Icons/PersonRelaxing.d.ts +0 -1
- package/components/Icons/PersonRelaxing.js +2 -2
- package/components/Icons/PersonRelaxing.js.map +1 -1
- package/components/Icons/PersonWithBrain.d.ts +0 -1
- package/components/Icons/PersonWithBrain.js +2 -2
- package/components/Icons/PersonWithBrain.js.map +1 -1
- package/components/Icons/PersonWithBrokenArm.d.ts +0 -1
- package/components/Icons/PersonWithBrokenArm.js +2 -2
- package/components/Icons/PersonWithBrokenArm.js.map +1 -1
- package/components/Icons/PersonWithCrutches.d.ts +0 -1
- package/components/Icons/PersonWithCrutches.js +2 -2
- package/components/Icons/PersonWithCrutches.js.map +1 -1
- package/components/Icons/PersonWithJaw.d.ts +0 -1
- package/components/Icons/PersonWithJaw.js +2 -2
- package/components/Icons/PersonWithJaw.js.map +1 -1
- package/components/Icons/PersonWithMagnifyingGlass.d.ts +0 -1
- package/components/Icons/PersonWithMagnifyingGlass.js +2 -2
- package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
- package/components/Icons/PersonWithSenses.d.ts +0 -1
- package/components/Icons/PersonWithSenses.js +2 -2
- package/components/Icons/PersonWithSenses.js.map +1 -1
- package/components/Icons/PersonWorking.d.ts +0 -1
- package/components/Icons/PersonWorking.js +2 -2
- package/components/Icons/PersonWorking.js.map +1 -1
- package/components/Icons/PersonalPlan.d.ts +0 -1
- package/components/Icons/PizzaSlice.d.ts +0 -1
- package/components/Icons/PizzaSlice.js +2 -2
- package/components/Icons/PizzaSlice.js.map +1 -1
- package/components/Icons/Plane.d.ts +0 -1
- package/components/Icons/Plane.js +2 -2
- package/components/Icons/Plane.js.map +1 -1
- package/components/Icons/Plant.d.ts +0 -1
- package/components/Icons/Plant.js +2 -2
- package/components/Icons/Plant.js.map +1 -1
- package/components/Icons/Play.d.ts +0 -1
- package/components/Icons/PlusLarge.d.ts +0 -1
- package/components/Icons/PlusSmall.d.ts +0 -1
- package/components/Icons/PngFile.d.ts +0 -1
- package/components/Icons/PngFile.js +2 -2
- package/components/Icons/PngFile.js.map +1 -1
- package/components/Icons/Podcast.d.ts +0 -1
- package/components/Icons/PoisonInformation.d.ts +0 -1
- package/components/Icons/PoisonInformation.js +2 -2
- package/components/Icons/PoisonInformation.js.map +1 -1
- package/components/Icons/Pregnant.d.ts +0 -1
- package/components/Icons/Pregnant.js +2 -2
- package/components/Icons/Pregnant.js.map +1 -1
- package/components/Icons/Printer.d.ts +0 -1
- package/components/Icons/Psychosis.d.ts +0 -1
- package/components/Icons/Psychosis.js +2 -2
- package/components/Icons/Psychosis.js.map +1 -1
- package/components/Icons/Publication.d.ts +0 -1
- package/components/Icons/Publication.js +1 -1
- package/components/Icons/Publication.js.map +1 -1
- package/components/Icons/Puzzle.d.ts +0 -1
- package/components/Icons/Puzzle.js +2 -2
- package/components/Icons/Puzzle.js.map +1 -1
- package/components/Icons/QrCode.d.ts +0 -1
- package/components/Icons/Quarrel.d.ts +0 -1
- package/components/Icons/RadioTherapy.d.ts +0 -1
- package/components/Icons/RadioTherapy.js +2 -2
- package/components/Icons/RadioTherapy.js.map +1 -1
- package/components/Icons/RadioactiveTreatment.d.ts +0 -1
- package/components/Icons/RadioactiveTreatment.js +2 -2
- package/components/Icons/RadioactiveTreatment.js.map +1 -1
- package/components/Icons/Radioiodine.d.ts +0 -1
- package/components/Icons/Radioiodine.js +2 -2
- package/components/Icons/Radioiodine.js.map +1 -1
- package/components/Icons/Receipt.d.ts +0 -1
- package/components/Icons/Receipt.js +2 -2
- package/components/Icons/Receipt.js.map +1 -1
- package/components/Icons/Receptionist.d.ts +0 -1
- package/components/Icons/Recovery.d.ts +0 -1
- package/components/Icons/Recovery.js +2 -2
- package/components/Icons/Recovery.js.map +1 -1
- package/components/Icons/Referral.d.ts +0 -1
- package/components/Icons/Refresh.d.ts +0 -1
- package/components/Icons/Refund.d.ts +0 -1
- package/components/Icons/Refund.js +2 -2
- package/components/Icons/Refund.js.map +1 -1
- package/components/Icons/Reply.d.ts +0 -1
- package/components/Icons/Rocket.d.ts +0 -1
- package/components/Icons/Rocket.js +2 -2
- package/components/Icons/Rocket.js.map +1 -1
- package/components/Icons/RtfFile.d.ts +0 -1
- package/components/Icons/RtfFile.js +2 -2
- package/components/Icons/RtfFile.js.map +1 -1
- package/components/Icons/STDs.d.ts +0 -1
- package/components/Icons/Save.d.ts +0 -1
- package/components/Icons/Scale.d.ts +0 -1
- package/components/Icons/Scale.js +2 -2
- package/components/Icons/Scale.js.map +1 -1
- package/components/Icons/ScreenReader.d.ts +0 -1
- package/components/Icons/Search.d.ts +0 -1
- package/components/Icons/SectionSign.d.ts +0 -1
- package/components/Icons/Settings.d.ts +0 -1
- package/components/Icons/Sexualorientation.d.ts +0 -1
- package/components/Icons/ShakingHand.d.ts +0 -1
- package/components/Icons/ShakingHand.js +2 -2
- package/components/Icons/ShakingHand.js.map +1 -1
- package/components/Icons/Share.d.ts +0 -1
- package/components/Icons/Shield.d.ts +0 -1
- package/components/Icons/Shield.js +4 -4
- package/components/Icons/Shield.js.map +1 -1
- package/components/Icons/ShuntOperation.d.ts +0 -1
- package/components/Icons/ShuntOperation.js +2 -2
- package/components/Icons/ShuntOperation.js.map +1 -1
- package/components/Icons/Skeleton.d.ts +0 -1
- package/components/Icons/Skeleton.js +2 -2
- package/components/Icons/Skeleton.js.map +1 -1
- package/components/Icons/Skin.d.ts +0 -1
- package/components/Icons/Skin.js +2 -2
- package/components/Icons/Skin.js.map +1 -1
- package/components/Icons/Snake.d.ts +0 -1
- package/components/Icons/Snake.js +2 -2
- package/components/Icons/Snake.js.map +1 -1
- package/components/Icons/Snapchat.d.ts +0 -1
- package/components/Icons/Snapchat.js +2 -2
- package/components/Icons/Snapchat.js.map +1 -1
- package/components/Icons/SortDown.d.ts +0 -1
- package/components/Icons/SortUp.d.ts +0 -1
- package/components/Icons/SpeechBubble.d.ts +0 -1
- package/components/Icons/Spray.d.ts +0 -1
- package/components/Icons/Spray.js +2 -2
- package/components/Icons/Spray.js.map +1 -1
- package/components/Icons/Stopwatch.d.ts +0 -1
- package/components/Icons/Sun.d.ts +0 -1
- package/components/Icons/SupportingPerson.d.ts +0 -1
- package/components/Icons/Surgery.d.ts +0 -1
- package/components/Icons/Surgery.js +2 -2
- package/components/Icons/Surgery.js.map +1 -1
- package/components/Icons/Syringe.d.ts +0 -1
- package/components/Icons/Syringe.js +3 -3
- package/components/Icons/Syringe.js.map +1 -1
- package/components/Icons/Taxi.d.ts +0 -1
- package/components/Icons/Taxi.js +2 -2
- package/components/Icons/Taxi.js.map +1 -1
- package/components/Icons/TeddyBear.d.ts +0 -1
- package/components/Icons/TeddyBear.js +2 -2
- package/components/Icons/TeddyBear.js.map +1 -1
- package/components/Icons/Teenagers.d.ts +0 -1
- package/components/Icons/Teenagers.js +2 -2
- package/components/Icons/Teenagers.js.map +1 -1
- package/components/Icons/ThinkingAboutBaby.d.ts +0 -1
- package/components/Icons/ThinkingAboutBaby.js +2 -2
- package/components/Icons/ThinkingAboutBaby.js.map +1 -1
- package/components/Icons/Ticket.d.ts +0 -1
- package/components/Icons/Ticket.js +2 -2
- package/components/Icons/Ticket.js.map +1 -1
- package/components/Icons/TimePassing.d.ts +0 -1
- package/components/Icons/Tombstone.d.ts +0 -1
- package/components/Icons/Toolbox.d.ts +0 -1
- package/components/Icons/Tooth.d.ts +0 -1
- package/components/Icons/Tooth.js +2 -2
- package/components/Icons/Tooth.js.map +1 -1
- package/components/Icons/TotalKneeProsthesis.d.ts +0 -1
- package/components/Icons/TotalKneeProsthesis.js +2 -2
- package/components/Icons/TotalKneeProsthesis.js.map +1 -1
- package/components/Icons/Train.d.ts +0 -1
- package/components/Icons/Train.js +2 -2
- package/components/Icons/Train.js.map +1 -1
- package/components/Icons/Transplantation.d.ts +0 -1
- package/components/Icons/Transplantation.js +2 -2
- package/components/Icons/Transplantation.js.map +1 -1
- package/components/Icons/TrashCan.d.ts +0 -1
- package/components/Icons/TravelRoute.d.ts +0 -1
- package/components/Icons/TravelRoute.js +2 -2
- package/components/Icons/TravelRoute.js.map +1 -1
- package/components/Icons/TriangleX.d.ts +0 -1
- package/components/Icons/Twitter.d.ts +0 -1
- package/components/Icons/Twitter.js +2 -2
- package/components/Icons/Twitter.js.map +1 -1
- package/components/Icons/Undo.d.ts +0 -1
- package/components/Icons/UniProsthesis.d.ts +0 -1
- package/components/Icons/UniProsthesis.js +1 -1
- package/components/Icons/UniProsthesis.js.map +1 -1
- package/components/Icons/Upload.d.ts +0 -1
- package/components/Icons/UserOrganization.d.ts +0 -1
- package/components/Icons/UserOrganization.js +2 -2
- package/components/Icons/UserOrganization.js.map +1 -1
- package/components/Icons/Vaccine.d.ts +0 -1
- package/components/Icons/VerticalDots.d.ts +0 -1
- package/components/Icons/VideoCamera.d.ts +0 -1
- package/components/Icons/VideoChat.d.ts +0 -1
- package/components/Icons/Wallet.d.ts +0 -1
- package/components/Icons/Watch.d.ts +0 -1
- package/components/Icons/Website.d.ts +0 -1
- package/components/Icons/Website.js +2 -2
- package/components/Icons/Website.js.map +1 -1
- package/components/Icons/Wheelchair.d.ts +0 -1
- package/components/Icons/Wheelchair.js +2 -2
- package/components/Icons/Wheelchair.js.map +1 -1
- package/components/Icons/WheelchairActive.d.ts +0 -1
- package/components/Icons/WheelchairActive.js +2 -2
- package/components/Icons/WheelchairActive.js.map +1 -1
- package/components/Icons/Window.d.ts +0 -1
- package/components/Icons/Window.js +2 -2
- package/components/Icons/Window.js.map +1 -1
- package/components/Icons/WordDocument.d.ts +0 -1
- package/components/Icons/WordDocument.js +2 -2
- package/components/Icons/WordDocument.js.map +1 -1
- package/components/Icons/WorkSuitcase.d.ts +0 -1
- package/components/Icons/WorkSuitcase.js +2 -2
- package/components/Icons/WorkSuitcase.js.map +1 -1
- package/components/Icons/X.d.ts +0 -1
- package/components/Icons/XOutline.d.ts +0 -1
- package/components/Icons/XOutline.js +2 -2
- package/components/Icons/XOutline.js.map +1 -1
- package/components/Icons/XmlFile.d.ts +0 -1
- package/components/Icons/XmlFile.js +2 -2
- package/components/Icons/XmlFile.js.map +1 -1
- package/components/Icons/YouTube.d.ts +0 -1
- package/components/Icons/YouTube.js +2 -2
- package/components/Icons/YouTube.js.map +1 -1
- package/components/Icons/Zoom.d.ts +0 -1
- package/components/Illustration/Illustration.d.ts +0 -1
- package/components/Illustration/Illustration.stories.d.ts +33 -0
- package/components/Illustration/Illustrations.stories.d.ts +40 -0
- package/components/Illustration/index.d.ts +0 -1
- package/components/Illustration/utils.d.ts +0 -1
- package/components/Illustrations/Doctor.d.ts +0 -1
- package/components/Illustrations/DoctorMedium.d.ts +0 -1
- package/components/Illustrations/DoctorSmall.d.ts +0 -1
- package/components/Illustrations/HealthcarePersonnel.d.ts +0 -1
- package/components/Illustrations/HealthcarePersonnelMedium.d.ts +0 -1
- package/components/Illustrations/HealthcarePersonnelSmall.d.ts +0 -1
- package/components/Illustrations/IllustrationNames.d.ts +0 -1
- package/components/Input/Input.d.ts +0 -1
- package/components/Input/Input.js +30 -30
- package/components/Input/Input.js.map +1 -1
- package/components/Input/Input.stories.d.ts +93 -0
- package/components/Input/index.d.ts +0 -1
- package/components/Label/Label.d.ts +3 -4
- package/components/Label/Label.js +56 -61
- package/components/Label/Label.js.map +1 -1
- package/components/Label/Label.stories.d.ts +24 -0
- package/components/Label/SubLabel.d.ts +0 -1
- package/components/Label/index.d.ts +0 -1
- package/components/LazyIcon/ErrorBoundary.d.ts +0 -1
- package/components/LazyIcon/LazyIcon.d.ts +0 -1
- package/components/LazyIcon/LazyIcon.js.map +1 -1
- package/components/LazyIcon/LazyIcon.stories.d.ts +24 -0
- package/components/LazyIcon/index.d.ts +0 -1
- package/components/LazyIcon/utils.d.ts +0 -1
- package/components/LazyIllustration/LazyIllustration.d.ts +0 -1
- package/components/LazyIllustration/LazyIllustration.js.map +1 -1
- package/components/LazyIllustration/LazyIllustration.stories.d.ts +37 -0
- package/components/LazyIllustration/index.d.ts +0 -1
- package/components/LinkList/LinkList.d.ts +0 -1
- package/components/LinkList/LinkList.js +19 -19
- package/components/LinkList/LinkList.js.map +1 -1
- package/components/LinkList/LinkList.stories.d.ts +46 -0
- package/components/LinkList/index.d.ts +0 -1
- package/components/List/List.d.ts +0 -1
- package/components/List/List.stories.d.ts +35 -0
- package/components/List/index.d.ts +0 -1
- package/components/ListHeader/ListHeader.d.ts +1 -2
- package/components/ListHeader/ListHeader.js +67 -60
- package/components/ListHeader/ListHeader.js.map +1 -1
- package/components/ListHeader/ListHeaderText/ListHeaderText.d.ts +1 -2
- package/components/ListHeader/ListHeaderText/ListHeaderText.js +8 -8
- package/components/ListHeader/ListHeaderText/ListHeaderText.js.map +1 -1
- package/components/ListHeader/ListHeaderText/index.d.ts +0 -1
- package/components/ListHeader/index.d.ts +0 -1
- package/components/Loader/Loader.d.ts +1 -2
- package/components/Loader/Loader.js +35 -35
- package/components/Loader/Loader.js.map +1 -1
- package/components/Loader/Loader.stories.d.ts +30 -0
- package/components/Loader/index.d.ts +0 -1
- package/components/Logo/Logo.d.ts +1 -2
- package/components/Logo/Logo.js.map +1 -1
- package/components/Logo/Logo.stories.d.ts +36 -0
- package/components/Logo/index.d.ts +0 -1
- package/components/MaxCharacters/MaxCharacters.d.ts +0 -1
- package/components/Modal/Modal.d.ts +0 -1
- package/components/Modal/Modal.js +16 -16
- package/components/Modal/Modal.js.map +1 -1
- package/components/Modal/Modal.stories.d.ts +72 -0
- package/components/Modal/index.d.ts +0 -1
- package/components/NotificationPanel/DetailButton/DetailButton.d.ts +0 -1
- package/components/NotificationPanel/NotificationPanel.d.ts +0 -1
- package/components/NotificationPanel/NotificationPanel.js +54 -55
- package/components/NotificationPanel/NotificationPanel.js.map +1 -1
- package/components/NotificationPanel/NotificationPanel.stories.d.ts +53 -0
- package/components/NotificationPanel/index.d.ts +0 -1
- package/components/Panel/Panel.d.ts +0 -1
- package/components/Panel/Panel.js +31 -31
- package/components/Panel/Panel.js.map +1 -1
- package/components/Panel/Panel.stories.d.ts +88 -0
- package/components/Panel/index.d.ts +0 -1
- package/components/PanelList/PanelList.d.ts +1 -2
- package/components/PanelList/PanelList.js +10 -10
- package/components/PanelList/PanelList.js.map +1 -1
- package/components/PanelList/PanelList.stories.d.ts +26 -0
- package/components/PanelList/index.d.ts +0 -1
- package/components/PopMenu/PopMenu.d.ts +0 -1
- package/components/PopMenu/PopMenu.stories.d.ts +28 -0
- package/components/PopMenu/index.d.ts +0 -1
- package/components/PopOver/PopOver.d.ts +0 -1
- package/components/PopOver/PopOver.stories.d.ts +33 -0
- package/components/PopOver/index.d.ts +0 -1
- package/components/PopOver/utils.d.ts +0 -1
- package/components/Portal/index.d.ts +0 -1
- package/components/PromoPanel/PromoPanel.d.ts +1 -2
- package/components/PromoPanel/PromoPanel.js +1 -1
- package/components/PromoPanel/PromoPanel.js.map +1 -1
- package/components/PromoPanel/PromoPanel.stories.d.ts +43 -0
- package/components/PromoPanel/index.d.ts +0 -1
- package/components/PromoPanel/styles.module.scss +3 -1
- package/components/RadioButton/RadioButton.d.ts +0 -1
- package/components/RadioButton/RadioButton.js +21 -22
- package/components/RadioButton/RadioButton.js.map +1 -1
- package/components/RadioButton/RadioButton.stories.d.ts +56 -0
- package/components/RadioButton/index.d.ts +0 -1
- package/components/Select/Select.d.ts +0 -3
- package/components/Select/Select.js +28 -32
- package/components/Select/Select.js.map +1 -1
- package/components/Select/Select.stories.d.ts +37 -0
- package/components/Select/index.d.ts +0 -1
- package/components/ServiceMessage/ServiceMessage.d.ts +0 -1
- package/components/ServiceMessage/ServiceMessage.js +26 -31
- package/components/ServiceMessage/ServiceMessage.js.map +1 -1
- package/components/ServiceMessage/ServiceMessage.stories.d.ts +70 -0
- package/components/ServiceMessage/index.d.ts +0 -1
- package/components/SharingStatus/SharingStatus.d.ts +0 -1
- package/components/SharingStatus/SharingStatus.stories.d.ts +30 -0
- package/components/SharingStatus/index.d.ts +0 -1
- package/components/Slider/Slider.d.ts +1 -2
- package/components/Slider/Slider.js.map +1 -1
- package/components/Slider/Slider.stories.d.ts +51 -0
- package/components/Slider/index.d.ts +0 -1
- package/components/Spacer/Spacer.d.ts +1 -2
- package/components/Spacer/Spacer.js.map +1 -1
- package/components/Spacer/Spacer.stories.d.ts +16 -0
- package/components/Spacer/index.d.ts +0 -1
- package/components/StatusDot/StatusDot.d.ts +0 -1
- package/components/StatusDot/StatusDot.js +8 -9
- package/components/StatusDot/StatusDot.js.map +1 -1
- package/components/StatusDot/StatusDot.stories.d.ts +30 -0
- package/components/StatusDot/index.d.ts +0 -1
- package/components/Step/Step.d.ts +0 -1
- package/components/Step/Step.js.map +1 -1
- package/components/Step/Step.stories.d.ts +31 -0
- package/components/Step/index.d.ts +0 -1
- package/components/StepButtons/StepButtons.d.ts +0 -1
- package/components/StepButtons/StepButtons.js +8 -8
- package/components/StepButtons/StepButtons.js.map +1 -1
- package/components/StepButtons/StepButtons.stories.d.ts +18 -0
- package/components/StepButtons/index.d.ts +0 -1
- package/components/Stepper/Dot.d.ts +0 -1
- package/components/Stepper/DotList.d.ts +0 -1
- package/components/Stepper/Stepper.d.ts +0 -1
- package/components/Stepper/Stepper.js +2 -2
- package/components/Stepper/Stepper.stories.d.ts +37 -0
- package/components/Stepper/index.d.ts +0 -1
- package/components/Stepper/utils.d.ts +0 -1
- package/components/Table/Table.d.ts +0 -1
- package/components/Table/Table.stories.d.ts +89 -0
- package/components/Table/TableBody/TableBody.d.ts +0 -1
- package/components/Table/TableBody/index.d.ts +0 -1
- package/components/Table/TableCell/TableCell.d.ts +0 -1
- package/components/Table/TableCell/index.d.ts +0 -1
- package/components/Table/TableExpandedRow/TableExpandedRow.d.ts +0 -1
- package/components/Table/TableExpandedRow/TableExpandedRow.js +11 -13
- package/components/Table/TableExpandedRow/TableExpandedRow.js.map +1 -1
- package/components/Table/TableExpandedRow/index.d.ts +0 -1
- package/components/Table/TableExpanderCell/TableExpanderCell.d.ts +0 -1
- package/components/Table/TableExpanderCell/TableExpanderCellMobile.d.ts +0 -1
- package/components/Table/TableExpanderCell/index.d.ts +0 -1
- package/components/Table/TableHead/TableHead.d.ts +0 -1
- package/components/Table/TableHead/index.d.ts +0 -1
- package/components/Table/TableHeadCell/TableHeadCell.d.ts +0 -1
- package/components/Table/TableHeadCell/index.d.ts +0 -1
- package/components/Table/TableRow/TableRow.d.ts +0 -1
- package/components/Table/TableRow/TableRow.js +24 -25
- package/components/Table/TableRow/TableRow.js.map +1 -1
- package/components/Table/TableRow/index.d.ts +0 -1
- package/components/Table/index.d.ts +0 -1
- package/components/Table/utils.d.ts +0 -1
- package/components/Table/utils.js +11 -16
- package/components/Table/utils.js.map +1 -1
- package/components/Tag/Tag.d.ts +1 -2
- package/components/Tag/Tag.js +11 -11
- package/components/Tag/Tag.js.map +1 -1
- package/components/Tag/Tag.stories.d.ts +47 -0
- package/components/Tag/index.d.ts +0 -1
- package/components/TagList/TagList.d.ts +1 -2
- package/components/TagList/TagList.js.map +1 -1
- package/components/TagList/TagList.stories.d.ts +16 -0
- package/components/TagList/index.d.ts +0 -1
- package/components/Textarea/Textarea.d.ts +1 -2
- package/components/Textarea/Textarea.js +47 -50
- package/components/Textarea/Textarea.js.map +1 -1
- package/components/Textarea/Textarea.stories.d.ts +93 -0
- package/components/Textarea/index.d.ts +0 -1
- package/components/Tile/Tile.d.ts +0 -1
- package/components/Tile/Tile.stories.d.ts +39 -0
- package/components/Tile/index.d.ts +0 -1
- package/components/Title/Title.d.ts +0 -1
- package/components/Title/Title.stories.d.ts +39 -0
- package/components/Title/index.d.ts +0 -1
- package/components/Tooltip/Tooltip.d.ts +0 -1
- package/components/Tooltip/Tooltip.stories.d.ts +29 -0
- package/components/Tooltip/TooltipWord/TooltipWord.d.ts +0 -1
- package/components/Tooltip/TooltipWord/index.d.ts +0 -1
- package/components/Tooltip/index.d.ts +0 -1
- package/components/TooltipExample/TooltipExample.d.ts +0 -1
- package/components/TooltipExample/index.d.ts +0 -1
- package/components/Trigger/HelpSign.d.ts +0 -1
- package/components/Trigger/InfoSignStroke.d.ts +0 -1
- package/components/Trigger/Trigger.d.ts +0 -1
- package/components/Trigger/Trigger.js +6 -6
- package/components/Trigger/Trigger.js.map +1 -1
- package/components/Trigger/Trigger.stories.d.ts +51 -0
- package/components/Trigger/index.d.ts +0 -1
- package/components/Validation/Validation.d.ts +0 -1
- package/components/Validation/Validation.js +9 -9
- package/components/Validation/Validation.js.map +1 -1
- package/components/Validation/Validation.stories.d.ts +36 -0
- package/components/Validation/index.d.ts +0 -1
- package/constants.d.ts +0 -1
- package/hoc/withBreakpoint/index.d.ts +0 -1
- package/hoc/withBreakpoint/withBreakpoint.d.ts +0 -1
- package/hoc/withBreakpoint/withBreakpoint.stories.d.ts +17 -0
- package/hooks/useBreakpoint.d.ts +0 -1
- package/hooks/useBreakpoint.stories.d.ts +16 -0
- package/hooks/useDelayedState.d.ts +0 -1
- package/hooks/useDelayedState.stories.d.ts +27 -0
- package/hooks/useElementList.d.ts +0 -1
- package/hooks/useElementList.stories.d.ts +16 -0
- package/hooks/useEventListenerState.d.ts +1 -2
- package/hooks/useExpand.d.ts +0 -1
- package/hooks/useFocusToggle.d.ts +0 -1
- package/hooks/useFocusToggle.stories.d.ts +16 -0
- package/hooks/useFocusTrap.d.ts +0 -1
- package/hooks/useFocusTrap.stories.d.ts +16 -0
- package/hooks/useFocusableElements.d.ts +0 -1
- package/hooks/useFocusableElements.stories.d.ts +16 -0
- package/hooks/useHover.d.ts +1 -2
- package/hooks/useHover.stories.d.ts +16 -0
- package/hooks/useIcons.d.ts +0 -1
- package/hooks/useIntersectionObserver.d.ts +0 -1
- package/hooks/useIntersectionObserver.stories.d.ts +16 -0
- package/hooks/useInterval.d.ts +0 -1
- package/hooks/useInterval.stories.d.ts +16 -0
- package/hooks/useIsVisible.d.ts +0 -1
- package/hooks/useIsVisible.stories.d.ts +27 -0
- package/hooks/useKeyboardEvent.d.ts +0 -1
- package/hooks/useKeyboardEvent.stories.d.ts +16 -0
- package/hooks/useLayoutEvent.d.ts +0 -1
- package/hooks/useLayoutEvent.stories.d.ts +16 -0
- package/hooks/useOutsideEvent.d.ts +0 -1
- package/hooks/useOutsideEvent.stories.d.ts +16 -0
- package/hooks/usePrevious.d.ts +0 -1
- package/hooks/usePseudoClasses.d.ts +1 -2
- package/hooks/usePseudoClasses.stories.d.ts +16 -0
- package/hooks/useResizeObserver.d.ts +0 -1
- package/hooks/useResizeObserver.stories.d.ts +16 -0
- package/hooks/useSize.d.ts +0 -1
- package/hooks/useSize.stories.d.ts +16 -0
- package/hooks/useSticky.d.ts +0 -1
- package/hooks/useSticky.stories.d.ts +16 -0
- package/hooks/useToggle.d.ts +0 -1
- package/hooks/useUuid.d.ts +0 -1
- package/hooks/useUuid.stories.d.ts +16 -0
- package/index.d.ts +0 -1
- package/package.json +3 -3
- package/scss/_fonts.scss +43 -13
- package/theme/currys/color.d.ts +1 -2
- package/theme/currys/color.js +3 -3
- package/theme/currys/color.js.map +1 -1
- package/theme/currys/index.d.ts +0 -1
- package/theme/currys/spacing.d.ts +0 -1
- package/theme/grid.d.ts +0 -1
- package/theme/index.d.ts +0 -1
- package/theme/palette.d.ts +0 -1
- package/theme/spacers.d.ts +0 -1
- package/utils/accessibility.d.ts +0 -1
- package/utils/component.d.ts +0 -1
- package/utils/debounce.d.ts +0 -1
- package/utils/device.d.ts +0 -1
- package/utils/environment.d.ts +0 -1
- package/utils/focus.d.ts +0 -1
- package/utils/loremtext.d.ts +0 -1
- package/utils/mobile.d.ts +0 -1
- package/utils/refs.d.ts +2 -3
- package/utils/tests/accessibility.test.d.ts +1 -0
- package/utils/tests/setup-test.d.ts +7 -0
- package/utils/tests/uuid.test.d.ts +1 -0
- package/utils/tests/viewport.test.d.ts +1 -0
- package/utils/uuid.d.ts +0 -1
- package/utils/viewport.d.ts +0 -1
- package/__mocks__/IntersectionObserver.d.ts.map +0 -1
- package/__mocks__/MutationObserver.d.ts.map +0 -1
- package/__mocks__/ResizeObserver.d.ts.map +0 -1
- package/__mocks__/matchMedia.d.ts.map +0 -1
- package/__mocks__/useHover.d.ts.map +0 -1
- package/__mocks__/useLayoutEvent.d.ts.map +0 -1
- package/__mocks__/useOutsideEvent.d.ts.map +0 -1
- package/__mocks__/useSize.d.ts.map +0 -1
- package/__mocks__/uuid.d.ts.map +0 -1
- package/components/AnchorLink/AnchorLink.d.ts.map +0 -1
- package/components/AnchorLink/index.d.ts.map +0 -1
- package/components/Avatar/Avatar.d.ts.map +0 -1
- package/components/Avatar/index.d.ts.map +0 -1
- package/components/Badge/Badge.d.ts.map +0 -1
- package/components/Badge/index.d.ts.map +0 -1
- package/components/Button/Button.d.ts.map +0 -1
- package/components/Button/index.d.ts.map +0 -1
- package/components/ButtonWithModal/ButtonWithModal.d.ts.map +0 -1
- package/components/ButtonWithModal/index.d.ts.map +0 -1
- package/components/Checkbox/Checkbox.d.ts.map +0 -1
- package/components/Checkbox/index.d.ts.map +0 -1
- package/components/Close/Close.d.ts.map +0 -1
- package/components/Close/index.d.ts.map +0 -1
- package/components/DictionaryTrigger/DictionaryTrigger.d.ts.map +0 -1
- package/components/DictionaryTrigger/index.d.ts.map +0 -1
- package/components/Dropdown/Dropdown.d.ts.map +0 -1
- package/components/Dropdown/index.d.ts.map +0 -1
- package/components/Duolist/Duolist.d.ts.map +0 -1
- package/components/Duolist/index.d.ts.map +0 -1
- package/components/EmptyState/EmptyState.d.ts.map +0 -1
- package/components/EmptyState/NobodyHome.d.ts.map +0 -1
- package/components/EmptyState/index.d.ts.map +0 -1
- package/components/ErrorWrapper/ErrorWrapper.d.ts.map +0 -1
- package/components/ErrorWrapper/index.d.ts.map +0 -1
- package/components/Expander/Expander.d.ts.map +0 -1
- package/components/Expander/index.d.ts.map +0 -1
- package/components/ExpanderHierarchy/Expander.d.ts.map +0 -1
- package/components/ExpanderHierarchy/ExpanderButton.d.ts.map +0 -1
- package/components/ExpanderHierarchy/ExpanderHierarchy.d.ts.map +0 -1
- package/components/ExpanderHierarchy/index.d.ts.map +0 -1
- package/components/ExpanderHierarchy/utils.d.ts.map +0 -1
- package/components/ExpanderList/ExpanderList.d.ts.map +0 -1
- package/components/ExpanderList/index.d.ts.map +0 -1
- package/components/FormExample/FormExample.d.ts.map +0 -1
- package/components/FormExample/index.d.ts.map +0 -1
- package/components/FormGroup/FormGroup.d.ts.map +0 -1
- package/components/FormGroup/index.d.ts.map +0 -1
- package/components/FormLayout/FormLayout.d.ts.map +0 -1
- package/components/FormLayout/index.d.ts.map +0 -1
- package/components/GridExample/GridExample.d.ts.map +0 -1
- package/components/GridExample/index.d.ts.map +0 -1
- package/components/HelpBubble/HelpBubble.d.ts.map +0 -1
- package/components/HelpBubble/index.d.ts.map +0 -1
- package/components/HelpBubbleExample/HelpBubbleExample.d.ts.map +0 -1
- package/components/HelpBubbleExample/index.d.ts.map +0 -1
- package/components/HelpPanel/HelpPanel.d.ts.map +0 -1
- package/components/HelpPanel/index.d.ts.map +0 -1
- package/components/HelpQuestion/HelpQuestion.d.ts.map +0 -1
- package/components/HelpQuestion/index.d.ts.map +0 -1
- package/components/HighlightBox/HighlightBox.d.ts.map +0 -1
- package/components/HighlightBox/index.d.ts.map +0 -1
- package/components/HorizontalScroll/HorizontalScroll.d.ts.map +0 -1
- package/components/HorizontalScroll/index.d.ts.map +0 -1
- package/components/Icon/Icon.d.ts.map +0 -1
- package/components/Icon/index.d.ts.map +0 -1
- package/components/Icons/ActiveMonitoring.d.ts.map +0 -1
- package/components/Icons/AcupunctureBack.d.ts.map +0 -1
- package/components/Icons/AdditionalIconInformation.d.ts.map +0 -1
- package/components/Icons/AlarmClock.d.ts.map +0 -1
- package/components/Icons/AlertSignFill.d.ts.map +0 -1
- package/components/Icons/AlertSignStroke.d.ts.map +0 -1
- package/components/Icons/Amputation.d.ts.map +0 -1
- package/components/Icons/Anxiety.d.ts.map +0 -1
- package/components/Icons/Apple.d.ts.map +0 -1
- package/components/Icons/Archive.d.ts.map +0 -1
- package/components/Icons/ArmFlexing.d.ts.map +0 -1
- package/components/Icons/ArrowDown.d.ts.map +0 -1
- package/components/Icons/ArrowLeft.d.ts.map +0 -1
- package/components/Icons/ArrowRight.d.ts.map +0 -1
- package/components/Icons/ArrowUp.d.ts.map +0 -1
- package/components/Icons/ArrowUpRight.d.ts.map +0 -1
- package/components/Icons/Attachment.d.ts.map +0 -1
- package/components/Icons/Atv.d.ts.map +0 -1
- package/components/Icons/Avatar.d.ts.map +0 -1
- package/components/Icons/AwakePersonOnPillow.d.ts.map +0 -1
- package/components/Icons/Baby.d.ts.map +0 -1
- package/components/Icons/BandAid.d.ts.map +0 -1
- package/components/Icons/BeerAndPills.d.ts.map +0 -1
- package/components/Icons/Bell.d.ts.map +0 -1
- package/components/Icons/Bike.d.ts.map +0 -1
- package/components/Icons/BirthControl.d.ts.map +0 -1
- package/components/Icons/BirthdayCake.d.ts.map +0 -1
- package/components/Icons/Boat.d.ts.map +0 -1
- package/components/Icons/Body.d.ts.map +0 -1
- package/components/Icons/Braille.d.ts.map +0 -1
- package/components/Icons/Brain.d.ts.map +0 -1
- package/components/Icons/BreastReconstruction.d.ts.map +0 -1
- package/components/Icons/BreastRemoval.d.ts.map +0 -1
- package/components/Icons/Breasts.d.ts.map +0 -1
- package/components/Icons/BrokenHeart.d.ts.map +0 -1
- package/components/Icons/BrokenPuzzle.d.ts.map +0 -1
- package/components/Icons/Bus.d.ts.map +0 -1
- package/components/Icons/Calendar.d.ts.map +0 -1
- package/components/Icons/CalendarChange.d.ts.map +0 -1
- package/components/Icons/CalendarCheck.d.ts.map +0 -1
- package/components/Icons/CalendarEvent.d.ts.map +0 -1
- package/components/Icons/CalendarSave.d.ts.map +0 -1
- package/components/Icons/Cancer.d.ts.map +0 -1
- package/components/Icons/Candle.d.ts.map +0 -1
- package/components/Icons/Car.d.ts.map +0 -1
- package/components/Icons/Change.d.ts.map +0 -1
- package/components/Icons/Check.d.ts.map +0 -1
- package/components/Icons/CheckFill.d.ts.map +0 -1
- package/components/Icons/CheckOutline.d.ts.map +0 -1
- package/components/Icons/Chest.d.ts.map +0 -1
- package/components/Icons/ChevronDown.d.ts.map +0 -1
- package/components/Icons/ChevronLeft.d.ts.map +0 -1
- package/components/Icons/ChevronRight.d.ts.map +0 -1
- package/components/Icons/ChevronUp.d.ts.map +0 -1
- package/components/Icons/ChevronsDown.d.ts.map +0 -1
- package/components/Icons/ChevronsUp.d.ts.map +0 -1
- package/components/Icons/ChildPlaying.d.ts.map +0 -1
- package/components/Icons/Cigarette.d.ts.map +0 -1
- package/components/Icons/Coins.d.ts.map +0 -1
- package/components/Icons/Contacts.d.ts.map +0 -1
- package/components/Icons/Copy.d.ts.map +0 -1
- package/components/Icons/CoronaCertificate.d.ts.map +0 -1
- package/components/Icons/Coronavirus.d.ts.map +0 -1
- package/components/Icons/Cough.d.ts.map +0 -1
- package/components/Icons/CriticalHealthInfo.d.ts.map +0 -1
- package/components/Icons/Cross.d.ts.map +0 -1
- package/components/Icons/DataExchange.d.ts.map +0 -1
- package/components/Icons/DataReceived.d.ts.map +0 -1
- package/components/Icons/DataSent.d.ts.map +0 -1
- package/components/Icons/Depression.d.ts.map +0 -1
- package/components/Icons/DigestiveSystem.d.ts.map +0 -1
- package/components/Icons/Dizzy.d.ts.map +0 -1
- package/components/Icons/Documents.d.ts.map +0 -1
- package/components/Icons/Dog.d.ts.map +0 -1
- package/components/Icons/DonorCard.d.ts.map +0 -1
- package/components/Icons/Download.d.ts.map +0 -1
- package/components/Icons/Draft.d.ts.map +0 -1
- package/components/Icons/EChat.d.ts.map +0 -1
- package/components/Icons/Ear.d.ts.map +0 -1
- package/components/Icons/EarDeaf.d.ts.map +0 -1
- package/components/Icons/EarHearingAid.d.ts.map +0 -1
- package/components/Icons/EarNoseThroat.d.ts.map +0 -1
- package/components/Icons/EarVolume.d.ts.map +0 -1
- package/components/Icons/ElderlyPerson.d.ts.map +0 -1
- package/components/Icons/Embolization.d.ts.map +0 -1
- package/components/Icons/EmergencyCall.d.ts.map +0 -1
- package/components/Icons/EmoticonAnnoyed.d.ts.map +0 -1
- package/components/Icons/EmoticonDelighted.d.ts.map +0 -1
- package/components/Icons/EmoticonDisappointed.d.ts.map +0 -1
- package/components/Icons/EmoticonHappy.d.ts.map +0 -1
- package/components/Icons/EmoticonMeh.d.ts.map +0 -1
- package/components/Icons/EnterFullScreen.d.ts.map +0 -1
- package/components/Icons/Envelope.d.ts.map +0 -1
- package/components/Icons/Epilepsy.d.ts.map +0 -1
- package/components/Icons/Eraser.d.ts.map +0 -1
- package/components/Icons/ErrorSignFill.d.ts.map +0 -1
- package/components/Icons/ErrorSignStroke.d.ts.map +0 -1
- package/components/Icons/EuropeanHealthCard.d.ts.map +0 -1
- package/components/Icons/ExitFullScreen.d.ts.map +0 -1
- package/components/Icons/Eye.d.ts.map +0 -1
- package/components/Icons/Facebook.d.ts.map +0 -1
- package/components/Icons/FallingLeaf.d.ts.map +0 -1
- package/components/Icons/Female.d.ts.map +0 -1
- package/components/Icons/FemaleDoctor.d.ts.map +0 -1
- package/components/Icons/Ferry.d.ts.map +0 -1
- package/components/Icons/File.d.ts.map +0 -1
- package/components/Icons/Filter.d.ts.map +0 -1
- package/components/Icons/FingerBleed.d.ts.map +0 -1
- package/components/Icons/FirstAidKit.d.ts.map +0 -1
- package/components/Icons/FloppyDisk.d.ts.map +0 -1
- package/components/Icons/Football.d.ts.map +0 -1
- package/components/Icons/Form.d.ts.map +0 -1
- package/components/Icons/Forward.d.ts.map +0 -1
- package/components/Icons/Gallery.d.ts.map +0 -1
- package/components/Icons/Garden.d.ts.map +0 -1
- package/components/Icons/GasCan.d.ts.map +0 -1
- package/components/Icons/GenderIdentity.d.ts.map +0 -1
- package/components/Icons/Glasses.d.ts.map +0 -1
- package/components/Icons/Globe.d.ts.map +0 -1
- package/components/Icons/Graph.d.ts.map +0 -1
- package/components/Icons/Group.d.ts.map +0 -1
- package/components/Icons/GroupTwins.d.ts.map +0 -1
- package/components/Icons/HTMLFile.d.ts.map +0 -1
- package/components/Icons/HandWaving.d.ts.map +0 -1
- package/components/Icons/HandWithDisease.d.ts.map +0 -1
- package/components/Icons/HandsAndHeart.d.ts.map +0 -1
- package/components/Icons/HealthClinic.d.ts.map +0 -1
- package/components/Icons/HealthWarning.d.ts.map +0 -1
- package/components/Icons/HealthcarePerson.d.ts.map +0 -1
- package/components/Icons/HealthcarePersonell.d.ts.map +0 -1
- package/components/Icons/HearingProtection.d.ts.map +0 -1
- package/components/Icons/Heart.d.ts.map +0 -1
- package/components/Icons/HeartHands.d.ts.map +0 -1
- package/components/Icons/HelpSign.d.ts.map +0 -1
- package/components/Icons/HelpingHand.d.ts.map +0 -1
- package/components/Icons/Hemodialysis.d.ts.map +0 -1
- package/components/Icons/Hiker.d.ts.map +0 -1
- package/components/Icons/Hipprosthesis.d.ts.map +0 -1
- package/components/Icons/History.d.ts.map +0 -1
- package/components/Icons/HivAndAids.d.ts.map +0 -1
- package/components/Icons/Home.d.ts.map +0 -1
- package/components/Icons/Hormone.d.ts.map +0 -1
- package/components/Icons/Hospital.d.ts.map +0 -1
- package/components/Icons/Hourglass.d.ts.map +0 -1
- package/components/Icons/IconNames.d.ts.map +0 -1
- package/components/Icons/ImgFile.d.ts.map +0 -1
- package/components/Icons/Inbox.d.ts.map +0 -1
- package/components/Icons/InfoSignFill.d.ts.map +0 -1
- package/components/Icons/InfoSignStroke.d.ts.map +0 -1
- package/components/Icons/Instagram.d.ts.map +0 -1
- package/components/Icons/Intravenous.d.ts.map +0 -1
- package/components/Icons/JointPain.d.ts.map +0 -1
- package/components/Icons/Journal.d.ts.map +0 -1
- package/components/Icons/JpgFile.d.ts.map +0 -1
- package/components/Icons/Kidney.d.ts.map +0 -1
- package/components/Icons/KitchenScale.d.ts.map +0 -1
- package/components/Icons/Kjernejournal.d.ts.map +0 -1
- package/components/Icons/Laboratory.d.ts.map +0 -1
- package/components/Icons/LaptopBlog.d.ts.map +0 -1
- package/components/Icons/LawBook.d.ts.map +0 -1
- package/components/Icons/LegalDocument.d.ts.map +0 -1
- package/components/Icons/LightBulb.d.ts.map +0 -1
- package/components/Icons/List.d.ts.map +0 -1
- package/components/Icons/Location.d.ts.map +0 -1
- package/components/Icons/Lock.d.ts.map +0 -1
- package/components/Icons/Login.d.ts.map +0 -1
- package/components/Icons/Logout.d.ts.map +0 -1
- package/components/Icons/Lungs.d.ts.map +0 -1
- package/components/Icons/Makeup.d.ts.map +0 -1
- package/components/Icons/MaleDoctor.d.ts.map +0 -1
- package/components/Icons/MaleDoctorAndPerson.d.ts.map +0 -1
- package/components/Icons/MaleGenitalia.d.ts.map +0 -1
- package/components/Icons/Medicine.d.ts.map +0 -1
- package/components/Icons/MedicineWarning.d.ts.map +0 -1
- package/components/Icons/MentalHealthAdult.d.ts.map +0 -1
- package/components/Icons/MentalHealthChild.d.ts.map +0 -1
- package/components/Icons/Menu.d.ts.map +0 -1
- package/components/Icons/Microscope.d.ts.map +0 -1
- package/components/Icons/Minus.d.ts.map +0 -1
- package/components/Icons/Mirror.d.ts.map +0 -1
- package/components/Icons/MobilePhone.d.ts.map +0 -1
- package/components/Icons/MotherHoldingBaby.d.ts.map +0 -1
- package/components/Icons/MuscleBack.d.ts.map +0 -1
- package/components/Icons/MuscleLeg.d.ts.map +0 -1
- package/components/Icons/Mushroom.d.ts.map +0 -1
- package/components/Icons/Music.d.ts.map +0 -1
- package/components/Icons/MusselsAndSalt.d.ts.map +0 -1
- package/components/Icons/NoAccess.d.ts.map +0 -1
- package/components/Icons/NoEye.d.ts.map +0 -1
- package/components/Icons/NoFilter.d.ts.map +0 -1
- package/components/Icons/Notepad.d.ts.map +0 -1
- package/components/Icons/Osteotomy.d.ts.map +0 -1
- package/components/Icons/PaintRoller.d.ts.map +0 -1
- package/components/Icons/PaperPlane.d.ts.map +0 -1
- package/components/Icons/PatientAndPerson.d.ts.map +0 -1
- package/components/Icons/Pause.d.ts.map +0 -1
- package/components/Icons/PdfFile.d.ts.map +0 -1
- package/components/Icons/Pencil.d.ts.map +0 -1
- package/components/Icons/PeopleTalking.d.ts.map +0 -1
- package/components/Icons/Peritonealdialysis.d.ts.map +0 -1
- package/components/Icons/Person.d.ts.map +0 -1
- package/components/Icons/PersonAndPatient.d.ts.map +0 -1
- package/components/Icons/PersonCancel.d.ts.map +0 -1
- package/components/Icons/PersonInXRayMachine.d.ts.map +0 -1
- package/components/Icons/PersonOverweight.d.ts.map +0 -1
- package/components/Icons/PersonRelaxing.d.ts.map +0 -1
- package/components/Icons/PersonWithBrain.d.ts.map +0 -1
- package/components/Icons/PersonWithBrokenArm.d.ts.map +0 -1
- package/components/Icons/PersonWithCrutches.d.ts.map +0 -1
- package/components/Icons/PersonWithJaw.d.ts.map +0 -1
- package/components/Icons/PersonWithMagnifyingGlass.d.ts.map +0 -1
- package/components/Icons/PersonWithSenses.d.ts.map +0 -1
- package/components/Icons/PersonWorking.d.ts.map +0 -1
- package/components/Icons/PersonalPlan.d.ts.map +0 -1
- package/components/Icons/PizzaSlice.d.ts.map +0 -1
- package/components/Icons/Plane.d.ts.map +0 -1
- package/components/Icons/Plant.d.ts.map +0 -1
- package/components/Icons/Play.d.ts.map +0 -1
- package/components/Icons/PlusLarge.d.ts.map +0 -1
- package/components/Icons/PlusSmall.d.ts.map +0 -1
- package/components/Icons/PngFile.d.ts.map +0 -1
- package/components/Icons/Podcast.d.ts.map +0 -1
- package/components/Icons/PoisonInformation.d.ts.map +0 -1
- package/components/Icons/Pregnant.d.ts.map +0 -1
- package/components/Icons/Printer.d.ts.map +0 -1
- package/components/Icons/Psychosis.d.ts.map +0 -1
- package/components/Icons/Publication.d.ts.map +0 -1
- package/components/Icons/Puzzle.d.ts.map +0 -1
- package/components/Icons/QrCode.d.ts.map +0 -1
- package/components/Icons/Quarrel.d.ts.map +0 -1
- package/components/Icons/RadioTherapy.d.ts.map +0 -1
- package/components/Icons/RadioactiveTreatment.d.ts.map +0 -1
- package/components/Icons/Radioiodine.d.ts.map +0 -1
- package/components/Icons/Receipt.d.ts.map +0 -1
- package/components/Icons/Receptionist.d.ts.map +0 -1
- package/components/Icons/Recovery.d.ts.map +0 -1
- package/components/Icons/Referral.d.ts.map +0 -1
- package/components/Icons/Refresh.d.ts.map +0 -1
- package/components/Icons/Refund.d.ts.map +0 -1
- package/components/Icons/Reply.d.ts.map +0 -1
- package/components/Icons/Rocket.d.ts.map +0 -1
- package/components/Icons/RtfFile.d.ts.map +0 -1
- package/components/Icons/STDs.d.ts.map +0 -1
- package/components/Icons/Save.d.ts.map +0 -1
- package/components/Icons/Scale.d.ts.map +0 -1
- package/components/Icons/ScreenReader.d.ts.map +0 -1
- package/components/Icons/Search.d.ts.map +0 -1
- package/components/Icons/SectionSign.d.ts.map +0 -1
- package/components/Icons/Settings.d.ts.map +0 -1
- package/components/Icons/Sexualorientation.d.ts.map +0 -1
- package/components/Icons/ShakingHand.d.ts.map +0 -1
- package/components/Icons/Share.d.ts.map +0 -1
- package/components/Icons/Shield.d.ts.map +0 -1
- package/components/Icons/ShuntOperation.d.ts.map +0 -1
- package/components/Icons/Skeleton.d.ts.map +0 -1
- package/components/Icons/Skin.d.ts.map +0 -1
- package/components/Icons/Snake.d.ts.map +0 -1
- package/components/Icons/Snapchat.d.ts.map +0 -1
- package/components/Icons/SortDown.d.ts.map +0 -1
- package/components/Icons/SortUp.d.ts.map +0 -1
- package/components/Icons/SpeechBubble.d.ts.map +0 -1
- package/components/Icons/Spray.d.ts.map +0 -1
- package/components/Icons/Stopwatch.d.ts.map +0 -1
- package/components/Icons/Sun.d.ts.map +0 -1
- package/components/Icons/SupportingPerson.d.ts.map +0 -1
- package/components/Icons/Surgery.d.ts.map +0 -1
- package/components/Icons/Syringe.d.ts.map +0 -1
- package/components/Icons/Taxi.d.ts.map +0 -1
- package/components/Icons/TeddyBear.d.ts.map +0 -1
- package/components/Icons/Teenagers.d.ts.map +0 -1
- package/components/Icons/ThinkingAboutBaby.d.ts.map +0 -1
- package/components/Icons/Ticket.d.ts.map +0 -1
- package/components/Icons/TimePassing.d.ts.map +0 -1
- package/components/Icons/Tombstone.d.ts.map +0 -1
- package/components/Icons/Toolbox.d.ts.map +0 -1
- package/components/Icons/Tooth.d.ts.map +0 -1
- package/components/Icons/TotalKneeProsthesis.d.ts.map +0 -1
- package/components/Icons/Train.d.ts.map +0 -1
- package/components/Icons/Transplantation.d.ts.map +0 -1
- package/components/Icons/TrashCan.d.ts.map +0 -1
- package/components/Icons/TravelRoute.d.ts.map +0 -1
- package/components/Icons/TriangleX.d.ts.map +0 -1
- package/components/Icons/Twitter.d.ts.map +0 -1
- package/components/Icons/Undo.d.ts.map +0 -1
- package/components/Icons/UniProsthesis.d.ts.map +0 -1
- package/components/Icons/Upload.d.ts.map +0 -1
- package/components/Icons/UserOrganization.d.ts.map +0 -1
- package/components/Icons/Vaccine.d.ts.map +0 -1
- package/components/Icons/VerticalDots.d.ts.map +0 -1
- package/components/Icons/VideoCamera.d.ts.map +0 -1
- package/components/Icons/VideoChat.d.ts.map +0 -1
- package/components/Icons/Wallet.d.ts.map +0 -1
- package/components/Icons/Watch.d.ts.map +0 -1
- package/components/Icons/Website.d.ts.map +0 -1
- package/components/Icons/Wheelchair.d.ts.map +0 -1
- package/components/Icons/WheelchairActive.d.ts.map +0 -1
- package/components/Icons/Window.d.ts.map +0 -1
- package/components/Icons/WordDocument.d.ts.map +0 -1
- package/components/Icons/WorkSuitcase.d.ts.map +0 -1
- package/components/Icons/X.d.ts.map +0 -1
- package/components/Icons/XOutline.d.ts.map +0 -1
- package/components/Icons/XmlFile.d.ts.map +0 -1
- package/components/Icons/YouTube.d.ts.map +0 -1
- package/components/Icons/Zoom.d.ts.map +0 -1
- package/components/Illustration/Illustration.d.ts.map +0 -1
- package/components/Illustration/index.d.ts.map +0 -1
- package/components/Illustration/utils.d.ts.map +0 -1
- package/components/Illustrations/Doctor.d.ts.map +0 -1
- package/components/Illustrations/DoctorMedium.d.ts.map +0 -1
- package/components/Illustrations/DoctorSmall.d.ts.map +0 -1
- package/components/Illustrations/HealthcarePersonnel.d.ts.map +0 -1
- package/components/Illustrations/HealthcarePersonnelMedium.d.ts.map +0 -1
- package/components/Illustrations/HealthcarePersonnelSmall.d.ts.map +0 -1
- package/components/Illustrations/IllustrationNames.d.ts.map +0 -1
- package/components/Input/Input.d.ts.map +0 -1
- package/components/Input/index.d.ts.map +0 -1
- package/components/Label/Label.d.ts.map +0 -1
- package/components/Label/SubLabel.d.ts.map +0 -1
- package/components/Label/index.d.ts.map +0 -1
- package/components/LazyIcon/ErrorBoundary.d.ts.map +0 -1
- package/components/LazyIcon/LazyIcon.d.ts.map +0 -1
- package/components/LazyIcon/index.d.ts.map +0 -1
- package/components/LazyIcon/utils.d.ts.map +0 -1
- package/components/LazyIllustration/LazyIllustration.d.ts.map +0 -1
- package/components/LazyIllustration/index.d.ts.map +0 -1
- package/components/LinkList/LinkList.d.ts.map +0 -1
- package/components/LinkList/index.d.ts.map +0 -1
- package/components/List/List.d.ts.map +0 -1
- package/components/List/index.d.ts.map +0 -1
- package/components/ListHeader/ListHeader.d.ts.map +0 -1
- package/components/ListHeader/ListHeaderText/ListHeaderText.d.ts.map +0 -1
- package/components/ListHeader/ListHeaderText/index.d.ts.map +0 -1
- package/components/ListHeader/index.d.ts.map +0 -1
- package/components/Loader/Loader.d.ts.map +0 -1
- package/components/Loader/index.d.ts.map +0 -1
- package/components/Logo/Logo.d.ts.map +0 -1
- package/components/Logo/index.d.ts.map +0 -1
- package/components/MaxCharacters/MaxCharacters.d.ts.map +0 -1
- package/components/Modal/Modal.d.ts.map +0 -1
- package/components/Modal/index.d.ts.map +0 -1
- package/components/NotificationPanel/DetailButton/DetailButton.d.ts.map +0 -1
- package/components/NotificationPanel/NotificationPanel.d.ts.map +0 -1
- package/components/NotificationPanel/index.d.ts.map +0 -1
- package/components/Panel/Panel.d.ts.map +0 -1
- package/components/Panel/index.d.ts.map +0 -1
- package/components/PanelList/PanelList.d.ts.map +0 -1
- package/components/PanelList/index.d.ts.map +0 -1
- package/components/PopMenu/PopMenu.d.ts.map +0 -1
- package/components/PopMenu/index.d.ts.map +0 -1
- package/components/PopOver/PopOver.d.ts.map +0 -1
- package/components/PopOver/index.d.ts.map +0 -1
- package/components/PopOver/utils.d.ts.map +0 -1
- package/components/Portal/index.d.ts.map +0 -1
- package/components/PromoPanel/PromoPanel.d.ts.map +0 -1
- package/components/PromoPanel/index.d.ts.map +0 -1
- package/components/RadioButton/RadioButton.d.ts.map +0 -1
- package/components/RadioButton/index.d.ts.map +0 -1
- package/components/Select/Select.d.ts.map +0 -1
- package/components/Select/index.d.ts.map +0 -1
- package/components/ServiceMessage/ServiceMessage.d.ts.map +0 -1
- package/components/ServiceMessage/index.d.ts.map +0 -1
- package/components/SharingStatus/SharingStatus.d.ts.map +0 -1
- package/components/SharingStatus/index.d.ts.map +0 -1
- package/components/Slider/Slider.d.ts.map +0 -1
- package/components/Slider/index.d.ts.map +0 -1
- package/components/Spacer/Spacer.d.ts.map +0 -1
- package/components/Spacer/index.d.ts.map +0 -1
- package/components/StatusDot/StatusDot.d.ts.map +0 -1
- package/components/StatusDot/index.d.ts.map +0 -1
- package/components/Step/Step.d.ts.map +0 -1
- package/components/Step/index.d.ts.map +0 -1
- package/components/StepButtons/StepButtons.d.ts.map +0 -1
- package/components/StepButtons/index.d.ts.map +0 -1
- package/components/Stepper/Dot.d.ts.map +0 -1
- package/components/Stepper/DotList.d.ts.map +0 -1
- package/components/Stepper/Stepper.d.ts.map +0 -1
- package/components/Stepper/index.d.ts.map +0 -1
- package/components/Stepper/utils.d.ts.map +0 -1
- package/components/Table/Table.d.ts.map +0 -1
- package/components/Table/TableBody/TableBody.d.ts.map +0 -1
- package/components/Table/TableBody/index.d.ts.map +0 -1
- package/components/Table/TableCell/TableCell.d.ts.map +0 -1
- package/components/Table/TableCell/index.d.ts.map +0 -1
- package/components/Table/TableExpandedRow/TableExpandedRow.d.ts.map +0 -1
- package/components/Table/TableExpandedRow/index.d.ts.map +0 -1
- package/components/Table/TableExpanderCell/TableExpanderCell.d.ts.map +0 -1
- package/components/Table/TableExpanderCell/TableExpanderCellMobile.d.ts.map +0 -1
- package/components/Table/TableExpanderCell/index.d.ts.map +0 -1
- package/components/Table/TableHead/TableHead.d.ts.map +0 -1
- package/components/Table/TableHead/index.d.ts.map +0 -1
- package/components/Table/TableHeadCell/TableHeadCell.d.ts.map +0 -1
- package/components/Table/TableHeadCell/index.d.ts.map +0 -1
- package/components/Table/TableRow/TableRow.d.ts.map +0 -1
- package/components/Table/TableRow/index.d.ts.map +0 -1
- package/components/Table/index.d.ts.map +0 -1
- package/components/Table/utils.d.ts.map +0 -1
- package/components/Tag/Tag.d.ts.map +0 -1
- package/components/Tag/index.d.ts.map +0 -1
- package/components/TagList/TagList.d.ts.map +0 -1
- package/components/TagList/index.d.ts.map +0 -1
- package/components/Textarea/Textarea.d.ts.map +0 -1
- package/components/Textarea/index.d.ts.map +0 -1
- package/components/Tile/Tile.d.ts.map +0 -1
- package/components/Tile/index.d.ts.map +0 -1
- package/components/Title/Title.d.ts.map +0 -1
- package/components/Title/index.d.ts.map +0 -1
- package/components/Tooltip/Tooltip.d.ts.map +0 -1
- package/components/Tooltip/TooltipWord/TooltipWord.d.ts.map +0 -1
- package/components/Tooltip/TooltipWord/index.d.ts.map +0 -1
- package/components/Tooltip/index.d.ts.map +0 -1
- package/components/TooltipExample/TooltipExample.d.ts.map +0 -1
- package/components/TooltipExample/index.d.ts.map +0 -1
- package/components/Trigger/HelpSign.d.ts.map +0 -1
- package/components/Trigger/InfoSignStroke.d.ts.map +0 -1
- package/components/Trigger/Trigger.d.ts.map +0 -1
- package/components/Trigger/index.d.ts.map +0 -1
- package/components/Validation/Validation.d.ts.map +0 -1
- package/components/Validation/index.d.ts.map +0 -1
- package/constants.d.ts.map +0 -1
- package/hoc/withBreakpoint/index.d.ts.map +0 -1
- package/hoc/withBreakpoint/withBreakpoint.d.ts.map +0 -1
- package/hooks/useBreakpoint.d.ts.map +0 -1
- package/hooks/useDelayedState.d.ts.map +0 -1
- package/hooks/useElementList.d.ts.map +0 -1
- package/hooks/useEventListenerState.d.ts.map +0 -1
- package/hooks/useExpand.d.ts.map +0 -1
- package/hooks/useFocusToggle.d.ts.map +0 -1
- package/hooks/useFocusTrap.d.ts.map +0 -1
- package/hooks/useFocusableElements.d.ts.map +0 -1
- package/hooks/useHover.d.ts.map +0 -1
- package/hooks/useIcons.d.ts.map +0 -1
- package/hooks/useIntersectionObserver.d.ts.map +0 -1
- package/hooks/useInterval.d.ts.map +0 -1
- package/hooks/useIsVisible.d.ts.map +0 -1
- package/hooks/useKeyboardEvent.d.ts.map +0 -1
- package/hooks/useLayoutEvent.d.ts.map +0 -1
- package/hooks/useOutsideEvent.d.ts.map +0 -1
- package/hooks/usePrevious.d.ts.map +0 -1
- package/hooks/usePseudoClasses.d.ts.map +0 -1
- package/hooks/useResizeObserver.d.ts.map +0 -1
- package/hooks/useSize.d.ts.map +0 -1
- package/hooks/useSticky.d.ts.map +0 -1
- package/hooks/useToggle.d.ts.map +0 -1
- package/hooks/useUuid.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/theme/currys/color.d.ts.map +0 -1
- package/theme/currys/index.d.ts.map +0 -1
- package/theme/currys/spacing.d.ts.map +0 -1
- package/theme/grid.d.ts.map +0 -1
- package/theme/index.d.ts.map +0 -1
- package/theme/palette.d.ts.map +0 -1
- package/theme/spacers.d.ts.map +0 -1
- package/utils/accessibility.d.ts.map +0 -1
- package/utils/component.d.ts.map +0 -1
- package/utils/debounce.d.ts.map +0 -1
- package/utils/device.d.ts.map +0 -1
- package/utils/environment.d.ts.map +0 -1
- package/utils/focus.d.ts.map +0 -1
- package/utils/loremtext.d.ts.map +0 -1
- package/utils/mobile.d.ts.map +0 -1
- package/utils/refs.d.ts.map +0 -1
- package/utils/uuid.d.ts.map +0 -1
- package/utils/viewport.d.ts.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.FC<import("./LazyIcon").LazyIconProps>;
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
args: {
|
|
14
|
+
iconName: "Hospital";
|
|
15
|
+
};
|
|
16
|
+
argTypes: {
|
|
17
|
+
iconName: {
|
|
18
|
+
control: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
type Story = StoryObj<typeof meta>;
|
|
24
|
+
export declare const Default: Story;
|
|
@@ -7,4 +7,3 @@ export interface LazyIllustrationProps extends BaseIllustrationProps {
|
|
|
7
7
|
export declare const lazyLoadIllustration: (illustrationName: IllustrationName, size: number) => React.LazyExoticComponent<SvgIllustration>;
|
|
8
8
|
export declare const LazyIllustration: React.FC<LazyIllustrationProps>;
|
|
9
9
|
export default LazyIllustration;
|
|
10
|
-
//# sourceMappingURL=LazyIllustration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LazyIllustration.js","sources":["../../../src/components/LazyIllustration/LazyIllustration.tsx"],"sourcesContent":["import React, { lazy, Suspense, useMemo } from 'react';\n\nimport Illustration, { BaseIllustrationProps, SvgIllustration } from '../Illustration';\nimport { getIllustration } from '../Illustration/utils';\nimport { IllustrationName, IllustrationSizeList } from '../Illustrations/IllustrationNames';\nimport ErrorBoundary from '../LazyIcon/ErrorBoundary';\nimport { isServerSide } from '../LazyIcon/utils';\n\nexport interface LazyIllustrationProps extends BaseIllustrationProps {\n // Navnet på illustrasjonen som skal vises. Tilsvarer filnavnet til illustrasjonen i Icons-mappen\n illustrationName: IllustrationName;\n}\n\nexport const lazyLoadIllustration = (illustrationName: IllustrationName, size: number): React.LazyExoticComponent<SvgIllustration> => {\n const sizes = IllustrationSizeList[illustrationName];\n const illustrationFileName = getIllustration({ size, ...sizes });\n\n return lazy<SvgIllustration>(() => import(`../Illustrations/${illustrationFileName}.tsx`));\n};\n\nexport const LazyIllustration: React.FC<LazyIllustrationProps> = ({ illustrationName, size = 512, ...rest }) => {\n const illustration = useMemo(() => lazyLoadIllustration(illustrationName, size), [illustrationName, size]);\n\n if (isServerSide()) {\n return null;\n }\n\n const fallback = (\n <svg\n data-testid={'fallback'}\n role={'presentation'}\n focusable={false}\n aria-hidden={true}\n viewBox=\"0 0 512 512\"\n style={{ minWidth: size, minHeight: size }}\n width={size}\n height={size}\n />\n );\n\n return (\n <ErrorBoundary fallback={fallback} reset={illustrationName}>\n <Suspense fallback={fallback}>\n <Illustration illustration={illustration} size={size} {...rest} />\n </Suspense>\n </ErrorBoundary>\n );\n};\n\nexport default LazyIllustration;\n"],"names":["lazyLoadIllustration","illustrationName","size","sizes","IllustrationSizeList","illustrationFileName","getIllustration","lazy","__variableDynamicImportRuntimeHelper","LazyIllustration","rest","illustration","useMemo","isServerSide","fallback","React","ErrorBoundary","Suspense","Illustration","LazyIllustration$1"],"mappings":";;;;;;;AAaa,MAAAA,IAAuB,CAACC,GAAoCC,MAA6D;AAC9H,QAAAC,IAAQC,EAAqBH,CAAgB,GAC7CI,IAAuBC,EAAgB,EAAE,MAAAJ,GAAM,GAAGC,EAAO,CAAA;AAE/D,SAAOI,EAAsB,MAAMC,
|
|
1
|
+
{"version":3,"file":"LazyIllustration.js","sources":["../../../src/components/LazyIllustration/LazyIllustration.tsx"],"sourcesContent":["import React, { lazy, Suspense, useMemo } from 'react';\n\nimport Illustration, { BaseIllustrationProps, SvgIllustration } from '../Illustration';\nimport { getIllustration } from '../Illustration/utils';\nimport { IllustrationName, IllustrationSizeList } from '../Illustrations/IllustrationNames';\nimport ErrorBoundary from '../LazyIcon/ErrorBoundary';\nimport { isServerSide } from '../LazyIcon/utils';\n\nexport interface LazyIllustrationProps extends BaseIllustrationProps {\n // Navnet på illustrasjonen som skal vises. Tilsvarer filnavnet til illustrasjonen i Icons-mappen\n illustrationName: IllustrationName;\n}\n\nexport const lazyLoadIllustration = (illustrationName: IllustrationName, size: number): React.LazyExoticComponent<SvgIllustration> => {\n const sizes = IllustrationSizeList[illustrationName];\n const illustrationFileName = getIllustration({ size, ...sizes });\n\n return lazy<SvgIllustration>(() => import(`../Illustrations/${illustrationFileName}.tsx`));\n};\n\nexport const LazyIllustration: React.FC<LazyIllustrationProps> = ({ illustrationName, size = 512, ...rest }) => {\n const illustration = useMemo(() => lazyLoadIllustration(illustrationName, size), [illustrationName, size]);\n\n if (isServerSide()) {\n return null;\n }\n\n const fallback = (\n <svg\n data-testid={'fallback'}\n role={'presentation'}\n focusable={false}\n aria-hidden={true}\n viewBox=\"0 0 512 512\"\n style={{ minWidth: size, minHeight: size }}\n width={size}\n height={size}\n />\n );\n\n return (\n <ErrorBoundary fallback={fallback} reset={illustrationName}>\n <Suspense fallback={fallback}>\n <Illustration illustration={illustration} size={size} {...rest} />\n </Suspense>\n </ErrorBoundary>\n );\n};\n\nexport default LazyIllustration;\n"],"names":["lazyLoadIllustration","illustrationName","size","sizes","IllustrationSizeList","illustrationFileName","getIllustration","lazy","__variableDynamicImportRuntimeHelper","LazyIllustration","rest","illustration","useMemo","isServerSide","fallback","React","ErrorBoundary","Suspense","Illustration","LazyIllustration$1"],"mappings":";;;;;;;AAaa,MAAAA,IAAuB,CAACC,GAAoCC,MAA6D;AAC9H,QAAAC,IAAQC,EAAqBH,CAAgB,GAC7CI,IAAuBC,EAAgB,EAAE,MAAAJ,GAAM,GAAGC,EAAO,CAAA;AAE/D,SAAOI,EAAsB,MAAMC,EAAA,uBAAA,OAAA,EAAA,+BAAA,MAAA,OAAA,4BAAA,GAAA,qCAAA,MAAA,OAAA,kCAAA,GAAA,oCAAA,MAAA,OAAA,iCAAA,GAAA,4CAAA,MAAA,OAAA,yCAAA,GAAA,kDAAA,MAAA,OAAA,+CAAA,GAAA,iDAAA,MAAA,OAAA,8CAAA,EAAA,CAAA,GAAA,oBAAAH,CAAA,MAAA,CAAsD;AAC3F,GAEaI,IAAoD,CAAC,EAAE,kBAAAR,GAAkB,MAAAC,IAAO,KAAK,GAAGQ,QAAW;AACxG,QAAAC,IAAeC,EAAQ,MAAMZ,EAAqBC,GAAkBC,CAAI,GAAG,CAACD,GAAkBC,CAAI,CAAC;AAEzG,MAAIW;AACK,WAAA;AAGT,QAAMC,IACJC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAa;AAAA,MACb,MAAM;AAAA,MACN,WAAW;AAAA,MACX,eAAa;AAAA,MACb,SAAQ;AAAA,MACR,OAAO,EAAE,UAAUb,GAAM,WAAWA,EAAK;AAAA,MACzC,OAAOA;AAAA,MACP,QAAQA;AAAA,IAAA;AAAA,EAAA;AAIZ,SACGa,gBAAAA,EAAA,cAAAC,GAAA,EAAc,UAAAF,GAAoB,OAAOb,KACvCc,gBAAAA,EAAA,cAAAE,GAAA,EAAS,UAAAH,KACRC,gBAAAA,EAAA,cAACG,KAAa,cAAAP,GAA4B,MAAAT,GAAa,GAAGQ,GAAM,CAClE,CACF;AAEJ,GAEAS,IAAeV;"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.FC<import("./LazyIllustration").LazyIllustrationProps>;
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
args: {
|
|
14
|
+
illustrationName: "Doctor";
|
|
15
|
+
size: number;
|
|
16
|
+
color: "neutral";
|
|
17
|
+
ariaLabel: string;
|
|
18
|
+
};
|
|
19
|
+
argTypes: {
|
|
20
|
+
illustrationName: {
|
|
21
|
+
control: string;
|
|
22
|
+
};
|
|
23
|
+
size: {
|
|
24
|
+
control: string;
|
|
25
|
+
};
|
|
26
|
+
color: {
|
|
27
|
+
control: string;
|
|
28
|
+
options: string[];
|
|
29
|
+
};
|
|
30
|
+
ariaLabel: {
|
|
31
|
+
control: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export default meta;
|
|
36
|
+
type Story = StoryObj<typeof meta>;
|
|
37
|
+
export declare const Default: Story;
|
|
@@ -5,56 +5,56 @@ import { useHover as w } from "../../hooks/useHover.js";
|
|
|
5
5
|
import y from "../Icons/ChevronRight.js";
|
|
6
6
|
import { renderListHeader as R } from "../ListHeader/ListHeader.js";
|
|
7
7
|
import t from "./styles.module.scss";
|
|
8
|
-
const
|
|
8
|
+
const p = e.forwardRef((L, l) => {
|
|
9
9
|
const {
|
|
10
10
|
children: s,
|
|
11
11
|
className: o = "",
|
|
12
12
|
color: c = "neutral",
|
|
13
|
-
icon:
|
|
13
|
+
icon: r,
|
|
14
14
|
size: i = "medium",
|
|
15
|
-
chevron:
|
|
15
|
+
chevron: a = !1,
|
|
16
16
|
linkRef: m,
|
|
17
17
|
testId: d,
|
|
18
18
|
target: n,
|
|
19
19
|
variant: f,
|
|
20
20
|
htmlMarkup: k = "a",
|
|
21
|
-
...
|
|
22
|
-
} =
|
|
21
|
+
..._
|
|
22
|
+
} = L, { hoverRef: h, isHovered: v } = w(m), C = u({
|
|
23
23
|
[t["link-list__list-item--line"]]: f === "line",
|
|
24
24
|
[t["link-list__list-item--outline"]]: f === "outline"
|
|
25
25
|
}), N = u(
|
|
26
26
|
t["link-list__anchor"],
|
|
27
|
-
t[
|
|
27
|
+
t[`link-list__anchor--${c}`],
|
|
28
28
|
{
|
|
29
29
|
[t["link-list__anchor--fill"]]: f === "fill",
|
|
30
|
-
[t[
|
|
30
|
+
[t[`link-list__anchor--${i}`]]: i,
|
|
31
31
|
[t["link-list__anchor--button"]]: k === "button"
|
|
32
32
|
},
|
|
33
33
|
o
|
|
34
34
|
);
|
|
35
|
-
return /* @__PURE__ */ e.createElement("li", { className: C, ref:
|
|
35
|
+
return /* @__PURE__ */ e.createElement("li", { className: C, ref: l, "data-testid": d, "data-analyticsid": b.Link }, k === "a" && /* @__PURE__ */ e.createElement(
|
|
36
36
|
"a",
|
|
37
37
|
{
|
|
38
38
|
className: N,
|
|
39
39
|
ref: h,
|
|
40
40
|
rel: n === "_blank" ? "noopener noreferrer" : void 0,
|
|
41
41
|
target: n,
|
|
42
|
-
...
|
|
42
|
+
..._
|
|
43
43
|
},
|
|
44
|
-
R(s, "span", v, i,
|
|
45
|
-
), k === "button" && /* @__PURE__ */ e.createElement("button", { className: N, ref: h, type: "button", ...
|
|
46
|
-
}), E = e.forwardRef(function(
|
|
47
|
-
const { children: o, className: c = "", chevron:
|
|
44
|
+
R(s, "span", v, i, a ? y : void 0, r)
|
|
45
|
+
), k === "button" && /* @__PURE__ */ e.createElement("button", { className: N, ref: h, type: "button", ..._ }, R(s, "span", v, i, a ? y : void 0, r)));
|
|
46
|
+
}), E = e.forwardRef(function(l, s) {
|
|
47
|
+
const { children: o, className: c = "", chevron: r = !1, size: i = "medium", color: a, testId: m, variant: d = "line" } = l;
|
|
48
48
|
return /* @__PURE__ */ e.createElement("ul", { ref: s, className: u(t["link-list"], c), "data-testid": m, "data-analyticsid": b.LinkList }, e.Children.map(o, (n) => {
|
|
49
|
-
if (n.type ===
|
|
50
|
-
return e.cloneElement(n, { color:
|
|
49
|
+
if (n.type === p)
|
|
50
|
+
return e.cloneElement(n, { color: a, size: i, chevron: r, variant: d });
|
|
51
51
|
}));
|
|
52
52
|
});
|
|
53
|
-
E.Link =
|
|
54
|
-
|
|
55
|
-
const
|
|
53
|
+
E.Link = p;
|
|
54
|
+
p.displayName = "LinkList.Link";
|
|
55
|
+
const F = E;
|
|
56
56
|
export {
|
|
57
57
|
E as LinkList,
|
|
58
|
-
|
|
58
|
+
F as default
|
|
59
59
|
};
|
|
60
60
|
//# sourceMappingURL=LinkList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkList.js","sources":["../../../src/components/LinkList/LinkList.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { useHover } from '../../hooks/useHover';\nimport { PaletteNames } from '../../theme/palette';\nimport ChevronRight from '../Icons/ChevronRight';\nimport { ListHeaderType, renderListHeader } from '../ListHeader/ListHeader';\n\nimport LinkListStyles from './styles.module.scss';\n\nexport type LinkListSize = 'small' | 'medium' | 'large';\n\nexport type LinkAnchorTargets = '_self' | '_blank' | '_parent';\n\nexport type LinkListColors = PaletteNames;\nexport type LinkListVariant = 'line' | 'outline' | 'fill';\n\nexport interface LinkType extends React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLLIElement>> {\n ListHeader?: ListHeaderType;\n}\n\nexport type LinkTags = 'button' | 'a';\nexport interface CompoundComponent extends React.ForwardRefExoticComponent<LinkListProps & React.RefAttributes<HTMLUListElement>> {\n Link: LinkType;\n}\n\nexport interface LinkListProps {\n /** Items in the LinkList */\n children: React.ReactNode;\n /** Adds custom classes to the element. */\n className?: string;\n /** Changes the link list background color on hover. */\n color?: LinkListColors;\n /** Toggles chevron icon on or off. */\n chevron?: boolean;\n /** Changes size of the LinkList. */\n size?: LinkListSize;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets visual priority */\n variant?: LinkListVariant;\n}\n\ntype Modify<T, R> = Omit<T, keyof R> & R;\n\nexport type LinkProps = Modify<\n React.HTMLAttributes<HTMLAnchorElement | HTMLButtonElement>,\n {\n children: React.ReactNode;\n chevron?: boolean;\n className?: string;\n icon?: React.ReactElement;\n href?: string;\n target?: LinkAnchorTargets;\n /** HTML markup for link. Default: a */\n htmlMarkup?: LinkTags;\n /**\n * Ref for lenke/knapp\n */\n linkRef?: React.RefObject<HTMLButtonElement | HTMLAnchorElement>;\n /** Sets the data-testid attribute. */\n testId?: string;\n }\n> &\n Pick<LinkListProps, 'color' | 'size' | 'variant'>;\n\nconst Link: LinkType = React.forwardRef((props: LinkProps, ref: React.Ref<HTMLLIElement>) => {\n const {\n children,\n className = '',\n color = 'neutral',\n icon,\n size = 'medium',\n chevron = false,\n linkRef,\n testId,\n target,\n variant,\n htmlMarkup = 'a',\n ...restProps\n } = props;\n const { hoverRef, isHovered } = useHover<HTMLButtonElement | HTMLAnchorElement>(linkRef);\n\n const liClasses = cn(
|
|
1
|
+
{"version":3,"file":"LinkList.js","sources":["../../../src/components/LinkList/LinkList.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { useHover } from '../../hooks/useHover';\nimport { PaletteNames } from '../../theme/palette';\nimport ChevronRight from '../Icons/ChevronRight';\nimport { ListHeaderType, renderListHeader } from '../ListHeader/ListHeader';\n\nimport LinkListStyles from './styles.module.scss';\n\nexport type LinkListSize = 'small' | 'medium' | 'large';\n\nexport type LinkAnchorTargets = '_self' | '_blank' | '_parent';\n\nexport type LinkListColors = PaletteNames;\nexport type LinkListVariant = 'line' | 'outline' | 'fill';\n\nexport interface LinkType extends React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLLIElement>> {\n ListHeader?: ListHeaderType;\n}\n\nexport type LinkTags = 'button' | 'a';\nexport interface CompoundComponent extends React.ForwardRefExoticComponent<LinkListProps & React.RefAttributes<HTMLUListElement>> {\n Link: LinkType;\n}\n\nexport interface LinkListProps {\n /** Items in the LinkList */\n children: React.ReactNode;\n /** Adds custom classes to the element. */\n className?: string;\n /** Changes the link list background color on hover. */\n color?: LinkListColors;\n /** Toggles chevron icon on or off. */\n chevron?: boolean;\n /** Changes size of the LinkList. */\n size?: LinkListSize;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets visual priority */\n variant?: LinkListVariant;\n}\n\ntype Modify<T, R> = Omit<T, keyof R> & R;\n\nexport type LinkProps = Modify<\n React.HTMLAttributes<HTMLAnchorElement | HTMLButtonElement>,\n {\n children: React.ReactNode;\n chevron?: boolean;\n className?: string;\n icon?: React.ReactElement;\n href?: string;\n target?: LinkAnchorTargets;\n /** HTML markup for link. Default: a */\n htmlMarkup?: LinkTags;\n /**\n * Ref for lenke/knapp\n */\n linkRef?: React.RefObject<HTMLButtonElement | HTMLAnchorElement>;\n /** Sets the data-testid attribute. */\n testId?: string;\n }\n> &\n Pick<LinkListProps, 'color' | 'size' | 'variant'>;\n\nconst Link: LinkType = React.forwardRef((props: LinkProps, ref: React.Ref<HTMLLIElement>) => {\n const {\n children,\n className = '',\n color = 'neutral',\n icon,\n size = 'medium',\n chevron = false,\n linkRef,\n testId,\n target,\n variant,\n htmlMarkup = 'a',\n ...restProps\n } = props;\n const { hoverRef, isHovered } = useHover<HTMLButtonElement | HTMLAnchorElement>(linkRef);\n\n const liClasses = cn({\n [LinkListStyles['link-list__list-item--line']]: variant === 'line',\n [LinkListStyles['link-list__list-item--outline']]: variant === 'outline',\n });\n const linkClasses = cn(\n LinkListStyles['link-list__anchor'],\n LinkListStyles[`link-list__anchor--${color}`],\n {\n [LinkListStyles['link-list__anchor--fill']]: variant === 'fill',\n [LinkListStyles[`link-list__anchor--${size}`]]: size,\n [LinkListStyles['link-list__anchor--button']]: htmlMarkup === 'button',\n },\n className\n );\n return (\n <li className={liClasses} ref={ref} data-testid={testId} data-analyticsid={AnalyticsId.Link}>\n {htmlMarkup === 'a' && (\n <a\n className={linkClasses}\n ref={hoverRef as React.RefObject<HTMLAnchorElement>}\n rel={target === '_blank' ? 'noopener noreferrer' : undefined}\n target={target}\n {...restProps}\n >\n {renderListHeader(children, 'span', isHovered, size, chevron ? ChevronRight : undefined, icon)}\n </a>\n )}\n {htmlMarkup === 'button' && (\n <button className={linkClasses} ref={hoverRef as React.RefObject<HTMLButtonElement>} type=\"button\" {...restProps}>\n {renderListHeader(children, 'span', isHovered, size, chevron ? ChevronRight : undefined, icon)}\n </button>\n )}\n </li>\n );\n});\n\nexport const LinkList = React.forwardRef(function LinkListForwardedRef(props: LinkListProps, ref: React.Ref<HTMLUListElement>) {\n const { children, className = '', chevron = false, size = 'medium', color, testId, variant = 'line' } = props;\n return (\n <ul ref={ref} className={cn(LinkListStyles['link-list'], className)} data-testid={testId} data-analyticsid={AnalyticsId.LinkList}>\n {React.Children.map(children, (child: React.ReactNode | React.ReactElement<LinkProps>) => {\n if ((child as React.ReactElement<LinkProps>).type === Link) {\n return React.cloneElement(child as React.ReactElement<LinkProps>, { color, size, chevron, variant });\n }\n })}\n </ul>\n );\n}) as CompoundComponent;\n\nLinkList.Link = Link;\nLink.displayName = 'LinkList.Link';\n\nexport default LinkList;\n"],"names":["Link","React","props","ref","children","className","color","icon","size","chevron","linkRef","testId","target","variant","htmlMarkup","restProps","hoverRef","isHovered","useHover","liClasses","cn","LinkListStyles","linkClasses","AnalyticsId","renderListHeader","ChevronRight","LinkList","child","LinkList$1"],"mappings":";;;;;;;AAoEA,MAAMA,IAAiBC,EAAM,WAAW,CAACC,GAAkBC,MAAkC;AACrF,QAAA;AAAA,IACJ,UAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,OAAAC,IAAQ;AAAA,IACR,MAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,SAAAC,IAAU;AAAA,IACV,SAAAC;AAAA,IACA,QAAAC;AAAA,IACA,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,GAAGC;AAAA,EACD,IAAAb,GACE,EAAE,UAAAc,GAAU,WAAAC,EAAU,IAAIC,EAAgDR,CAAO,GAEjFS,IAAYC,EAAG;AAAA,IACnB,CAACC,EAAe,4BAA4B,CAAC,GAAGR,MAAY;AAAA,IAC5D,CAACQ,EAAe,+BAA+B,CAAC,GAAGR,MAAY;AAAA,EAAA,CAChE,GACKS,IAAcF;AAAAA,IAClBC,EAAe,mBAAmB;AAAA,IAClCA,EAAe,sBAAsBf,CAAK,EAAE;AAAA,IAC5C;AAAA,MACE,CAACe,EAAe,yBAAyB,CAAC,GAAGR,MAAY;AAAA,MACzD,CAACQ,EAAe,sBAAsBb,CAAI,EAAE,CAAC,GAAGA;AAAA,MAChD,CAACa,EAAe,2BAA2B,CAAC,GAAGP,MAAe;AAAA,IAChE;AAAA,IACAT;AAAA,EAAA;AAGA,SAAAJ,gBAAAA,EAAA,cAAC,MAAG,EAAA,WAAWkB,GAAW,KAAAhB,GAAU,eAAaQ,GAAQ,oBAAkBY,EAAY,KACpF,GAAAT,MAAe,OACdb,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWqB;AAAA,MACX,KAAKN;AAAA,MACL,KAAKJ,MAAW,WAAW,wBAAwB;AAAA,MACnD,QAAAA;AAAA,MACC,GAAGG;AAAA,IAAA;AAAA,IAEHS,EAAiBpB,GAAU,QAAQa,GAAWT,GAAMC,IAAUgB,IAAe,QAAWlB,CAAI;AAAA,EAC/F,GAEDO,MAAe,YACdb,gBAAAA,EAAA,cAAC,YAAO,WAAWqB,GAAa,KAAKN,GAAgD,MAAK,UAAU,GAAGD,EACpG,GAAAS,EAAiBpB,GAAU,QAAQa,GAAWT,GAAMC,IAAUgB,IAAe,QAAWlB,CAAI,CAC/F,CAEJ;AAEJ,CAAC,GAEYmB,IAAWzB,EAAM,WAAW,SAA8BC,GAAsBC,GAAkC;AAC7H,QAAM,EAAE,UAAAC,GAAU,WAAAC,IAAY,IAAI,SAAAI,IAAU,IAAO,MAAAD,IAAO,UAAU,OAAAF,GAAO,QAAAK,GAAQ,SAAAE,IAAU,OAAA,IAAWX;AAEtG,SAAAD,gBAAAA,EAAA,cAAC,QAAG,KAAAE,GAAU,WAAWiB,EAAGC,EAAe,WAAW,GAAGhB,CAAS,GAAG,eAAaM,GAAQ,oBAAkBY,EAAY,SACrH,GAAAtB,EAAM,SAAS,IAAIG,GAAU,CAACuB,MAA2D;AACnF,QAAAA,EAAwC,SAAS3B;AAC7C,aAAAC,EAAM,aAAa0B,GAAwC,EAAE,OAAArB,GAAO,MAAAE,GAAM,SAAAC,GAAS,SAAAI,GAAS;AAAA,EAEtG,CAAA,CACH;AAEJ,CAAC;AAEDa,EAAS,OAAO1B;AAChBA,EAAK,cAAc;AAEnB,MAAA4B,IAAeF;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("./LinkList").CompoundComponent;
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
description: {
|
|
8
|
+
component: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
args: {
|
|
13
|
+
children: string;
|
|
14
|
+
chevron: false;
|
|
15
|
+
size: "medium";
|
|
16
|
+
color: "blueberry";
|
|
17
|
+
};
|
|
18
|
+
argTypes: {
|
|
19
|
+
chevron: {
|
|
20
|
+
control: string;
|
|
21
|
+
};
|
|
22
|
+
variant: {
|
|
23
|
+
control: string;
|
|
24
|
+
options: string[];
|
|
25
|
+
};
|
|
26
|
+
size: {
|
|
27
|
+
control: string;
|
|
28
|
+
options: import("./LinkList").LinkListSize[];
|
|
29
|
+
};
|
|
30
|
+
color: {
|
|
31
|
+
control: string;
|
|
32
|
+
options: import("./LinkList").LinkListColors[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export default meta;
|
|
37
|
+
type Story = StoryObj<typeof meta>;
|
|
38
|
+
export declare const Default: Story;
|
|
39
|
+
export declare const WithIconAndChevron: Story;
|
|
40
|
+
export declare const WithListHeaderComp: Story;
|
|
41
|
+
export declare const WithAvatarAndBadge: Story;
|
|
42
|
+
export declare const VariantLine: Story;
|
|
43
|
+
export declare const VariantOutline: Story;
|
|
44
|
+
export declare const VariantFill: Story;
|
|
45
|
+
export declare const WithRef: Story;
|
|
46
|
+
export declare const AsButton: Story;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("./List").ListCompound;
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: string;
|
|
10
|
+
};
|
|
11
|
+
page: () => React.JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
args: {
|
|
15
|
+
children: string;
|
|
16
|
+
variant: "bullet";
|
|
17
|
+
margin: false;
|
|
18
|
+
};
|
|
19
|
+
argTypes: {
|
|
20
|
+
variant: {
|
|
21
|
+
control: string;
|
|
22
|
+
options: string[];
|
|
23
|
+
};
|
|
24
|
+
margin: {
|
|
25
|
+
control: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default meta;
|
|
30
|
+
type Story = StoryObj<typeof meta>;
|
|
31
|
+
export declare const Default: Story;
|
|
32
|
+
export declare const Bullet: Story;
|
|
33
|
+
export declare const Dashed: Story;
|
|
34
|
+
export declare const Numbered: Story;
|
|
35
|
+
export declare const Nested: Story;
|
|
@@ -5,7 +5,7 @@ import { BadgeProps, BadgeType } from '../Badge';
|
|
|
5
5
|
import { SvgIcon } from '../Icon';
|
|
6
6
|
import { TitleTags } from '../Title';
|
|
7
7
|
export type ListHeaderSize = 'small' | 'medium' | 'large';
|
|
8
|
-
export interface ListHeaderType extends React.
|
|
8
|
+
export interface ListHeaderType extends React.FC<ListHeaderProps> {
|
|
9
9
|
Avatar?: AvatarType;
|
|
10
10
|
Badge?: BadgeType;
|
|
11
11
|
ListHeaderText?: ListHeaderTextType;
|
|
@@ -41,4 +41,3 @@ type ChildrenMapper = (children: React.ReactNode, isJsxChild?: boolean) => ListH
|
|
|
41
41
|
export declare const mapChildren: ChildrenMapper;
|
|
42
42
|
export declare const ListHeader: ListHeaderType;
|
|
43
43
|
export default ListHeader;
|
|
44
|
-
//# sourceMappingURL=ListHeader.d.ts.map
|
|
@@ -1,73 +1,80 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useBreakpoint as
|
|
5
|
-
import { isComponent as u, isComponentWithChildren as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { Icon as
|
|
1
|
+
import r from "react";
|
|
2
|
+
import h from "classnames";
|
|
3
|
+
import L from "./ListHeaderText/ListHeaderText.js";
|
|
4
|
+
import { useBreakpoint as k, Breakpoint as A } from "../../hooks/useBreakpoint.js";
|
|
5
|
+
import { isComponent as u, isComponentWithChildren as N } from "../../utils/component.js";
|
|
6
|
+
import $, { AvatarSize as B } from "../Avatar/Avatar.js";
|
|
7
|
+
import R from "../Badge/Badge.js";
|
|
8
|
+
import { Icon as p } from "../Icon/Icon.js";
|
|
9
9
|
import { IconSize as C } from "../../constants.js";
|
|
10
10
|
import t from "./styles.module.scss";
|
|
11
|
-
const
|
|
12
|
-
if (u(
|
|
13
|
-
return
|
|
14
|
-
chevronIcon:
|
|
15
|
-
icon:
|
|
16
|
-
isHovered:
|
|
17
|
-
size:
|
|
11
|
+
const K = (m, f, _, i, c, o) => {
|
|
12
|
+
if (u(m, E))
|
|
13
|
+
return r.cloneElement(m, {
|
|
14
|
+
chevronIcon: c,
|
|
15
|
+
icon: o,
|
|
16
|
+
isHovered: _,
|
|
17
|
+
size: i
|
|
18
18
|
});
|
|
19
|
-
if (
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
},
|
|
22
|
-
var d,
|
|
23
|
-
let
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
if (m)
|
|
20
|
+
return /* @__PURE__ */ r.createElement(E, { titleHtmlMarkup: f, chevronIcon: c, icon: o, isHovered: _, size: i }, m);
|
|
21
|
+
}, b = (m, f = !1) => {
|
|
22
|
+
var d, g, s, e;
|
|
23
|
+
let _, i;
|
|
24
|
+
const c = [], o = [], l = [];
|
|
25
|
+
r.Children.forEach(m, (a) => {
|
|
26
|
+
a === null || typeof a > "u" || (u(a, $) ? _ = a : u(a, L) ? c.push(a) : u(a, R) ? i = a : typeof a == "string" ? o.push(a) : l.push(a));
|
|
27
27
|
});
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
return { avatarChild:
|
|
31
|
-
if (
|
|
32
|
-
return
|
|
33
|
-
}, E =
|
|
34
|
-
const { className:
|
|
28
|
+
const n = _ !== void 0 || c.length > 0 || i !== void 0 && o.length > 0, v = l.length === 0 || N(l[0]) && typeof ((g = (d = l[0]) == null ? void 0 : d.props) == null ? void 0 : g.children) > "u";
|
|
29
|
+
if (f || n || v)
|
|
30
|
+
return { avatarChild: _, listHeaderTextChildren: c, badgeChild: i, stringChildren: o, remainingChildren: l };
|
|
31
|
+
if (N(l[0]))
|
|
32
|
+
return b((e = (s = l[0]) == null ? void 0 : s.props) == null ? void 0 : e.children, !0);
|
|
33
|
+
}, E = (m) => {
|
|
34
|
+
const { className: f = "", titleHtmlMarkup: _ = "h2", chevronIcon: i, children: c, icon: o, isHovered: l, size: n, testId: v } = m, d = k(), g = n !== "small" && !!(i || o), s = typeof c == "string", e = b(c), a = (e == null ? void 0 : e.avatarChild) || (e == null ? void 0 : e.listHeaderTextChildren) && e.listHeaderTextChildren.length > 0 || (e == null ? void 0 : e.remainingChildren) && (e == null ? void 0 : e.remainingChildren.length) > 0, H = h(
|
|
35
35
|
t["list-header"],
|
|
36
36
|
{
|
|
37
|
-
[t["list-header--for-element-content"]]: !
|
|
38
|
-
[t["list-header--top-align-content"]]:
|
|
37
|
+
[t["list-header--for-element-content"]]: !s,
|
|
38
|
+
[t["list-header--top-align-content"]]: a
|
|
39
39
|
},
|
|
40
|
-
|
|
41
|
-
),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
[t["list-header__content--
|
|
51
|
-
[t["list-header__content--
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
40
|
+
f
|
|
41
|
+
), x = h(
|
|
42
|
+
t["list-header__badge"],
|
|
43
|
+
{
|
|
44
|
+
[t["list-header__badge--for-string-content"]]: s
|
|
45
|
+
},
|
|
46
|
+
!s && n && t[`list-header__badge--${n}`]
|
|
47
|
+
), S = h(t["list-header__chevron"], !s && n && t[`list-header__chevron--${n}`], {
|
|
48
|
+
[t["list-header__chevron--for-string-content"]]: s
|
|
49
|
+
}), y = h(t["list-header__content"], {
|
|
50
|
+
[t["list-header__content--string"]]: s,
|
|
51
|
+
[t["list-header__content--element"]]: !s,
|
|
52
|
+
[t["list-header__content--spacing"]]: !(e != null && e.avatarChild) && !o
|
|
53
|
+
}), I = h(
|
|
54
|
+
t["list-header__icon"],
|
|
55
|
+
!s && n && (n === "medium" || n === "large") && t[`list-header__icon--for-element-content--${n}`],
|
|
56
|
+
{
|
|
57
|
+
[t["list-header__icon--for-string-content"]]: s,
|
|
58
|
+
[t["list-header__icon--for-element-content"]]: !s
|
|
59
|
+
}
|
|
60
|
+
), T = h(
|
|
61
|
+
t["list-header__avatar"],
|
|
62
|
+
!s && n && (n === "medium" || n === "large") && t[`list-header__avatar--for-element-content--${n}`],
|
|
63
|
+
{
|
|
64
|
+
[t["list-header__avatar--for-string-content"]]: s,
|
|
65
|
+
[t["list-header__avatar--for-element-content"]]: !s
|
|
66
|
+
}
|
|
67
|
+
), z = _;
|
|
68
|
+
return /* @__PURE__ */ r.createElement("span", { "data-testid": v, className: H }, g && o && /* @__PURE__ */ r.createElement("span", { className: I }, r.cloneElement(o, {
|
|
69
|
+
size: d === A.xs ? C.XSmall : C.Small,
|
|
70
|
+
isHovered: l
|
|
71
|
+
})), n !== "small" && (e == null ? void 0 : e.avatarChild) && /* @__PURE__ */ r.createElement("span", { className: T }, r.cloneElement(e.avatarChild, { size: B.xsmall })), /* @__PURE__ */ r.createElement("span", { className: y }, e == null ? void 0 : e.listHeaderTextChildren, !!(e != null && e.stringChildren.length) && /* @__PURE__ */ r.createElement(z, { className: t["list-header__title"] }, e.stringChildren), e == null ? void 0 : e.remainingChildren), (e == null ? void 0 : e.badgeChild) && /* @__PURE__ */ r.createElement("span", { className: x }, e.badgeChild), g && i && /* @__PURE__ */ r.createElement("span", { className: S }, /* @__PURE__ */ r.createElement(p, { svgIcon: i, isHovered: l, size: C.XSmall })));
|
|
72
|
+
};
|
|
66
73
|
E.displayName = "ListHeader";
|
|
67
74
|
export {
|
|
68
75
|
E as ListHeader,
|
|
69
76
|
E as default,
|
|
70
|
-
|
|
71
|
-
|
|
77
|
+
b as mapChildren,
|
|
78
|
+
K as renderListHeader
|
|
72
79
|
};
|
|
73
80
|
//# sourceMappingURL=ListHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListHeader.js","sources":["../../../src/components/ListHeader/ListHeader.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport ListHeaderText, { ListHeaderTextProps, ListHeaderTextType } from './ListHeaderText/ListHeaderText';\nimport { Breakpoint, useBreakpoint } from '../../hooks/useBreakpoint';\nimport { isComponent, isComponentWithChildren } from '../../utils/component';\nimport Avatar, { AvatarProps, AvatarSize, AvatarType } from '../Avatar';\nimport Badge, { BadgeProps, BadgeType } from '../Badge';\nimport Icon, { IconSize, SvgIcon } from '../Icon';\nimport { TitleTags } from '../Title';\n\nimport styles from './styles.module.scss';\n\nexport type ListHeaderSize = 'small' | 'medium' | 'large';\n\nexport interface ListHeaderType extends React.ForwardRefExoticComponent<ListHeaderProps & React.RefAttributes<HTMLLIElement>> {\n Avatar?: AvatarType;\n Badge?: BadgeType;\n ListHeaderText?: ListHeaderTextType;\n}\n\nexport const renderListHeader = (\n element: React.ReactNode,\n titleHtmlMarkup: TitleTags,\n isHovered: boolean,\n size: ListHeaderSize,\n chevronIcon?: SvgIcon,\n icon?: React.ReactElement\n): JSX.Element | undefined => {\n if (isComponent<ListHeaderProps>(element, ListHeader)) {\n return React.cloneElement(element, {\n chevronIcon,\n icon,\n isHovered,\n size,\n });\n }\n if (element) {\n return (\n <ListHeader titleHtmlMarkup={titleHtmlMarkup} chevronIcon={chevronIcon} icon={icon} isHovered={isHovered} size={size}>\n {element}\n </ListHeader>\n );\n }\n};\n\nexport interface ListHeaderProps {\n /** Adds custom classes to the ListHeader element. */\n className?: string;\n /** Chevron to render inside of the ListHeader */\n chevronIcon?: SvgIcon;\n /** Children to be rendered inside of ListHeader */\n children: React.ReactNode;\n /** Changes the underlying element of the title. Default: h2*/\n titleHtmlMarkup?: TitleTags;\n /** icon to be rendered inside of ListHeader */\n icon?: React.ReactElement;\n /** whether or not the parent is hovered */\n isHovered?: boolean;\n /** Changes size of the ListHeader. */\n size?: ListHeaderSize;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\ninterface ListHeaderChildren {\n avatarChild?: React.ReactElement<AvatarProps>;\n listHeaderTextChildren: React.ReactElement<ListHeaderTextProps>[];\n badgeChild?: React.ReactElement<BadgeProps>;\n elementChild?: React.ReactElement;\n stringChildren: string[];\n remainingChildren: React.ReactNode[];\n}\n\ntype ChildrenMapper = (children: React.ReactNode, isJsxChild?: boolean) => ListHeaderChildren | undefined;\n\nexport const mapChildren: ChildrenMapper = (children, isJsxChild = false) => {\n let avatarChild: React.ReactElement<AvatarProps> | undefined;\n let badgeChild: React.ReactElement<BadgeProps> | undefined;\n const listHeaderTextChildren: React.ReactElement<ListHeaderTextProps>[] = [];\n const stringChildren: string[] = [];\n const remainingChildren: React.ReactNode[] = [];\n\n React.Children.forEach(children, child => {\n if (child === null || typeof child === 'undefined') return;\n if (isComponent<AvatarProps>(child, Avatar)) {\n avatarChild = child;\n } else if (isComponent<ListHeaderTextProps>(child, ListHeaderText)) {\n listHeaderTextChildren.push(child);\n } else if (isComponent<BadgeProps>(child, Badge)) {\n badgeChild = child;\n } else if (typeof child === 'string') {\n stringChildren.push(child);\n } else {\n remainingChildren.push(child);\n }\n });\n\n // Dette og recursive mapChildren under(gjøres en gang) er for å passe på at jsx children også sjekkes for Avatar og liknende innhold.\n // Slik opprettholder vi stylingen i tilfeller hvor vertikaler har wrappet elementer i en parent span eller div.\n const hasSpecialChildren =\n avatarChild !== undefined || listHeaderTextChildren.length > 0 || (badgeChild !== undefined && stringChildren.length > 0);\n const noRemainingRecursiveChildren =\n remainingChildren.length === 0 ||\n (isComponentWithChildren(remainingChildren[0]) && typeof remainingChildren[0]?.props?.children === 'undefined');\n\n if (isJsxChild || hasSpecialChildren || noRemainingRecursiveChildren) {\n return { avatarChild, listHeaderTextChildren, badgeChild, stringChildren, remainingChildren };\n }\n\n if (isComponentWithChildren(remainingChildren[0])) {\n return mapChildren(remainingChildren[0]?.props?.children, true);\n }\n};\n\nexport const ListHeader: ListHeaderType = React.forwardRef((props: ListHeaderProps, ref: React.Ref<HTMLLIElement>) => {\n const { className = '', titleHtmlMarkup = 'h2', chevronIcon, children, icon, isHovered, size, testId } = props;\n const breakpoint = useBreakpoint();\n const showChevronAndIcon = size !== 'small' && !!(chevronIcon || icon);\n const contentIsString = typeof children === 'string';\n const mappedChildren = mapChildren(children);\n const topAlignContent =\n mappedChildren?.avatarChild ||\n (mappedChildren?.listHeaderTextChildren && mappedChildren.listHeaderTextChildren.length > 0) ||\n (mappedChildren?.remainingChildren && mappedChildren?.remainingChildren.length > 0);\n\n const listLabelClasses = cn(\n styles['list-header'],\n {\n [styles['list-header--for-element-content']]: !contentIsString,\n [styles['list-header--top-align-content']]: topAlignContent,\n },\n className\n );\n const badgeClasses = cn(styles['list-header__badge'], {\n [styles['list-header__badge--for-string-content']]: contentIsString,\n [styles['list-header__badge--right']]: !contentIsString,\n [styles['list-header__badge--' + size]]: !contentIsString && size,\n });\n const chevronClasses = cn(styles['list-header__chevron'], {\n [styles['list-header__chevron--for-string-content']]: contentIsString,\n [styles['list-header__chevron--' + size]]: !contentIsString && size,\n });\n const contentClasses = cn(styles['list-header__content'], {\n [styles['list-header__content--string']]: contentIsString,\n [styles['list-header__content--element']]: !contentIsString,\n [styles['list-header__content--spacing']]: !mappedChildren?.avatarChild && !icon,\n });\n const iconClasses = cn(styles['list-header__icon'], {\n [styles['list-header__icon--for-string-content']]: contentIsString,\n [styles['list-header__icon--for-element-content']]: !contentIsString,\n [styles['list-header__icon--for-element-content--' + size]]: !contentIsString && size,\n });\n const avatarClasses = cn(styles['list-header__avatar'], {\n [styles['list-header__avatar--for-string-content']]: contentIsString,\n [styles['list-header__avatar--for-element-content']]: !contentIsString,\n [styles['list-header__avatar--for-element-content--' + size]]: !contentIsString && size,\n });\n const CustomTag = titleHtmlMarkup;\n return (\n <span data-testid={testId} className={listLabelClasses}>\n {showChevronAndIcon && icon && (\n <span className={iconClasses}>\n {React.cloneElement(icon, {\n size: breakpoint === Breakpoint.xs ? IconSize.XSmall : IconSize.Small,\n isHovered,\n })}\n </span>\n )}\n {size !== 'small' && mappedChildren?.avatarChild && (\n <span className={avatarClasses}>{React.cloneElement(mappedChildren.avatarChild, { size: AvatarSize.xsmall })}</span>\n )}\n <span className={contentClasses}>\n {mappedChildren?.listHeaderTextChildren}\n {!!mappedChildren?.stringChildren.length && (\n <CustomTag className={styles['list-header__title']}>{mappedChildren.stringChildren}</CustomTag>\n )}\n {mappedChildren?.remainingChildren}\n </span>\n\n {mappedChildren?.badgeChild && <span className={badgeClasses}>{mappedChildren.badgeChild}</span>}\n {showChevronAndIcon && chevronIcon && (\n <span className={chevronClasses}>\n <Icon svgIcon={chevronIcon} isHovered={isHovered} size={IconSize.XSmall} />\n </span>\n )}\n </span>\n );\n});\n\nListHeader.displayName = 'ListHeader';\n\nexport default ListHeader;\n"],"names":["renderListHeader","element","titleHtmlMarkup","isHovered","size","chevronIcon","icon","isComponent","ListHeader","React","mapChildren","children","isJsxChild","avatarChild","badgeChild","listHeaderTextChildren","stringChildren","remainingChildren","child","Avatar","ListHeaderText","Badge","hasSpecialChildren","noRemainingRecursiveChildren","isComponentWithChildren","_b","_a","_d","_c","props","ref","className","testId","breakpoint","useBreakpoint","showChevronAndIcon","contentIsString","mappedChildren","topAlignContent","listLabelClasses","cn","styles","badgeClasses","chevronClasses","contentClasses","iconClasses","avatarClasses","CustomTag","Breakpoint","IconSize","AvatarSize","Icon"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"ListHeader.js","sources":["../../../src/components/ListHeader/ListHeader.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport ListHeaderText, { ListHeaderTextProps, ListHeaderTextType } from './ListHeaderText/ListHeaderText';\nimport { Breakpoint, useBreakpoint } from '../../hooks/useBreakpoint';\nimport { isComponent, isComponentWithChildren } from '../../utils/component';\nimport Avatar, { AvatarProps, AvatarSize, AvatarType } from '../Avatar';\nimport Badge, { BadgeProps, BadgeType } from '../Badge';\nimport Icon, { IconSize, SvgIcon } from '../Icon';\nimport { TitleTags } from '../Title';\n\nimport styles from './styles.module.scss';\n\nexport type ListHeaderSize = 'small' | 'medium' | 'large';\n\nexport interface ListHeaderType extends React.FC<ListHeaderProps> {\n Avatar?: AvatarType;\n Badge?: BadgeType;\n ListHeaderText?: ListHeaderTextType;\n}\n\nexport const renderListHeader = (\n element: React.ReactNode,\n titleHtmlMarkup: TitleTags,\n isHovered: boolean,\n size: ListHeaderSize,\n chevronIcon?: SvgIcon,\n icon?: React.ReactElement\n): JSX.Element | undefined => {\n if (isComponent<ListHeaderProps>(element, ListHeader)) {\n return React.cloneElement(element, {\n chevronIcon,\n icon,\n isHovered,\n size,\n });\n }\n if (element) {\n return (\n <ListHeader titleHtmlMarkup={titleHtmlMarkup} chevronIcon={chevronIcon} icon={icon} isHovered={isHovered} size={size}>\n {element}\n </ListHeader>\n );\n }\n};\n\nexport interface ListHeaderProps {\n /** Adds custom classes to the ListHeader element. */\n className?: string;\n /** Chevron to render inside of the ListHeader */\n chevronIcon?: SvgIcon;\n /** Children to be rendered inside of ListHeader */\n children: React.ReactNode;\n /** Changes the underlying element of the title. Default: h2*/\n titleHtmlMarkup?: TitleTags;\n /** icon to be rendered inside of ListHeader */\n icon?: React.ReactElement;\n /** whether or not the parent is hovered */\n isHovered?: boolean;\n /** Changes size of the ListHeader. */\n size?: ListHeaderSize;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\ninterface ListHeaderChildren {\n avatarChild?: React.ReactElement<AvatarProps>;\n listHeaderTextChildren: React.ReactElement<ListHeaderTextProps>[];\n badgeChild?: React.ReactElement<BadgeProps>;\n elementChild?: React.ReactElement;\n stringChildren: string[];\n remainingChildren: React.ReactNode[];\n}\n\ntype ChildrenMapper = (children: React.ReactNode, isJsxChild?: boolean) => ListHeaderChildren | undefined;\n\nexport const mapChildren: ChildrenMapper = (children, isJsxChild = false) => {\n let avatarChild: React.ReactElement<AvatarProps> | undefined;\n let badgeChild: React.ReactElement<BadgeProps> | undefined;\n const listHeaderTextChildren: React.ReactElement<ListHeaderTextProps>[] = [];\n const stringChildren: string[] = [];\n const remainingChildren: React.ReactNode[] = [];\n\n React.Children.forEach(children, child => {\n if (child === null || typeof child === 'undefined') return;\n if (isComponent<AvatarProps>(child, Avatar)) {\n avatarChild = child;\n } else if (isComponent<ListHeaderTextProps>(child, ListHeaderText)) {\n listHeaderTextChildren.push(child);\n } else if (isComponent<BadgeProps>(child, Badge)) {\n badgeChild = child;\n } else if (typeof child === 'string') {\n stringChildren.push(child);\n } else {\n remainingChildren.push(child);\n }\n });\n\n // Dette og recursive mapChildren under(gjøres en gang) er for å passe på at jsx children også sjekkes for Avatar og liknende innhold.\n // Slik opprettholder vi stylingen i tilfeller hvor vertikaler har wrappet elementer i en parent span eller div.\n const hasSpecialChildren =\n avatarChild !== undefined || listHeaderTextChildren.length > 0 || (badgeChild !== undefined && stringChildren.length > 0);\n const noRemainingRecursiveChildren =\n remainingChildren.length === 0 ||\n (isComponentWithChildren(remainingChildren[0]) && typeof remainingChildren[0]?.props?.children === 'undefined');\n\n if (isJsxChild || hasSpecialChildren || noRemainingRecursiveChildren) {\n return { avatarChild, listHeaderTextChildren, badgeChild, stringChildren, remainingChildren };\n }\n\n if (isComponentWithChildren(remainingChildren[0])) {\n return mapChildren(remainingChildren[0]?.props?.children, true);\n }\n};\n\nexport const ListHeader: ListHeaderType = props => {\n const { className = '', titleHtmlMarkup = 'h2', chevronIcon, children, icon, isHovered, size, testId } = props;\n const breakpoint = useBreakpoint();\n const showChevronAndIcon = size !== 'small' && !!(chevronIcon || icon);\n const contentIsString = typeof children === 'string';\n const mappedChildren = mapChildren(children);\n const topAlignContent =\n mappedChildren?.avatarChild ||\n (mappedChildren?.listHeaderTextChildren && mappedChildren.listHeaderTextChildren.length > 0) ||\n (mappedChildren?.remainingChildren && mappedChildren?.remainingChildren.length > 0);\n\n const listLabelClasses = cn(\n styles['list-header'],\n {\n [styles['list-header--for-element-content']]: !contentIsString,\n [styles['list-header--top-align-content']]: topAlignContent,\n },\n className\n );\n const badgeClasses = cn(\n styles['list-header__badge'],\n {\n [styles['list-header__badge--for-string-content']]: contentIsString,\n },\n !contentIsString && size && styles[`list-header__badge--${size}`]\n );\n const chevronClasses = cn(styles['list-header__chevron'], !contentIsString && size && styles[`list-header__chevron--${size}`], {\n [styles['list-header__chevron--for-string-content']]: contentIsString,\n });\n const contentClasses = cn(styles['list-header__content'], {\n [styles['list-header__content--string']]: contentIsString,\n [styles['list-header__content--element']]: !contentIsString,\n [styles['list-header__content--spacing']]: !mappedChildren?.avatarChild && !icon,\n });\n const iconClasses = cn(\n styles['list-header__icon'],\n !contentIsString && size && (size === 'medium' || size === 'large') && styles[`list-header__icon--for-element-content--${size}`],\n {\n [styles['list-header__icon--for-string-content']]: contentIsString,\n [styles['list-header__icon--for-element-content']]: !contentIsString,\n }\n );\n const avatarClasses = cn(\n styles['list-header__avatar'],\n !contentIsString && size && (size === 'medium' || size === 'large') && styles[`list-header__avatar--for-element-content--${size}`],\n {\n [styles['list-header__avatar--for-string-content']]: contentIsString,\n [styles['list-header__avatar--for-element-content']]: !contentIsString,\n }\n );\n const CustomTag = titleHtmlMarkup;\n return (\n <span data-testid={testId} className={listLabelClasses}>\n {showChevronAndIcon && icon && (\n <span className={iconClasses}>\n {React.cloneElement(icon, {\n size: breakpoint === Breakpoint.xs ? IconSize.XSmall : IconSize.Small,\n isHovered,\n })}\n </span>\n )}\n {size !== 'small' && mappedChildren?.avatarChild && (\n <span className={avatarClasses}>{React.cloneElement(mappedChildren.avatarChild, { size: AvatarSize.xsmall })}</span>\n )}\n <span className={contentClasses}>\n {mappedChildren?.listHeaderTextChildren}\n {!!mappedChildren?.stringChildren.length && (\n <CustomTag className={styles['list-header__title']}>{mappedChildren.stringChildren}</CustomTag>\n )}\n {mappedChildren?.remainingChildren}\n </span>\n\n {mappedChildren?.badgeChild && <span className={badgeClasses}>{mappedChildren.badgeChild}</span>}\n {showChevronAndIcon && chevronIcon && (\n <span className={chevronClasses}>\n <Icon svgIcon={chevronIcon} isHovered={isHovered} size={IconSize.XSmall} />\n </span>\n )}\n </span>\n );\n};\n\nListHeader.displayName = 'ListHeader';\n\nexport default ListHeader;\n"],"names":["renderListHeader","element","titleHtmlMarkup","isHovered","size","chevronIcon","icon","isComponent","ListHeader","React","mapChildren","children","isJsxChild","avatarChild","badgeChild","listHeaderTextChildren","stringChildren","remainingChildren","child","Avatar","ListHeaderText","Badge","hasSpecialChildren","noRemainingRecursiveChildren","isComponentWithChildren","_b","_a","_d","_c","props","className","testId","breakpoint","useBreakpoint","showChevronAndIcon","contentIsString","mappedChildren","topAlignContent","listLabelClasses","cn","styles","badgeClasses","chevronClasses","contentClasses","iconClasses","avatarClasses","CustomTag","Breakpoint","IconSize","AvatarSize","Icon"],"mappings":";;;;;;;;;;AAsBO,MAAMA,IAAmB,CAC9BC,GACAC,GACAC,GACAC,GACAC,GACAC,MAC4B;AACxB,MAAAC,EAA6BN,GAASO,CAAU;AAC3C,WAAAC,EAAM,aAAaR,GAAS;AAAA,MACjC,aAAAI;AAAA,MACA,MAAAC;AAAA,MACA,WAAAH;AAAA,MACA,MAAAC;AAAA,IAAA,CACD;AAEH,MAAIH;AACF,2CACGO,GAAW,EAAA,iBAAAN,GAAkC,aAAAG,GAA0B,MAAAC,GAAY,WAAAH,GAAsB,MAAAC,KACvGH,CACH;AAGN,GAgCaS,IAA8B,CAACC,GAAUC,IAAa,OAAU;;AACvE,MAAAC,GACAC;AACJ,QAAMC,IAAoE,CAAA,GACpEC,IAA2B,CAAA,GAC3BC,IAAuC,CAAA;AAEvCR,EAAAA,EAAA,SAAS,QAAQE,GAAU,CAASO,MAAA;AACpC,IAAAA,MAAU,QAAQ,OAAOA,IAAU,QACnCX,EAAyBW,GAAOC,CAAM,IAC1BN,IAAAK,IACLX,EAAiCW,GAAOE,CAAc,IAC/DL,EAAuB,KAAKG,CAAK,IACxBX,EAAwBW,GAAOG,CAAK,IAChCP,IAAAI,IACJ,OAAOA,KAAU,WAC1BF,EAAe,KAAKE,CAAK,IAEzBD,EAAkB,KAAKC,CAAK;AAAA,EAC9B,CACD;AAIK,QAAAI,IACJT,MAAgB,UAAaE,EAAuB,SAAS,KAAMD,MAAe,UAAaE,EAAe,SAAS,GACnHO,IACJN,EAAkB,WAAW,KAC5BO,EAAwBP,EAAkB,CAAC,CAAC,KAAK,SAAOQ,KAAAC,IAAAT,EAAkB,CAAC,MAAnB,gBAAAS,EAAsB,UAAtB,gBAAAD,EAA6B,YAAa;AAEjG,MAAAb,KAAcU,KAAsBC;AACtC,WAAO,EAAE,aAAAV,GAAa,wBAAAE,GAAwB,YAAAD,GAAY,gBAAAE,GAAgB,mBAAAC,EAAkB;AAG9F,MAAIO,EAAwBP,EAAkB,CAAC,CAAC;AAC9C,WAAOP,GAAYiB,KAAAC,IAAAX,EAAkB,CAAC,MAAnB,gBAAAW,EAAsB,UAAtB,gBAAAD,EAA6B,UAAU,EAAI;AAElE,GAEanB,IAA6B,CAASqB,MAAA;AAC3C,QAAA,EAAE,WAAAC,IAAY,IAAI,iBAAA5B,IAAkB,MAAM,aAAAG,GAAa,UAAAM,GAAU,MAAAL,GAAM,WAAAH,GAAW,MAAAC,GAAM,QAAA2B,EAAA,IAAWF,GACnGG,IAAaC,KACbC,IAAqB9B,MAAS,WAAW,CAAC,EAAEC,KAAeC,IAC3D6B,IAAkB,OAAOxB,KAAa,UACtCyB,IAAiB1B,EAAYC,CAAQ,GACrC0B,KACJD,KAAA,gBAAAA,EAAgB,iBACfA,KAAA,gBAAAA,EAAgB,2BAA0BA,EAAe,uBAAuB,SAAS,MACzFA,KAAA,gBAAAA,EAAgB,uBAAqBA,KAAA,gBAAAA,EAAgB,kBAAkB,UAAS,GAE7EE,IAAmBC;AAAAA,IACvBC,EAAO,aAAa;AAAA,IACpB;AAAA,MACE,CAACA,EAAO,kCAAkC,CAAC,GAAG,CAACL;AAAA,MAC/C,CAACK,EAAO,gCAAgC,CAAC,GAAGH;AAAA,IAC9C;AAAA,IACAP;AAAA,EAAA,GAEIW,IAAeF;AAAAA,IACnBC,EAAO,oBAAoB;AAAA,IAC3B;AAAA,MACE,CAACA,EAAO,wCAAwC,CAAC,GAAGL;AAAA,IACtD;AAAA,IACA,CAACA,KAAmB/B,KAAQoC,EAAO,uBAAuBpC,CAAI,EAAE;AAAA,EAAA,GAE5DsC,IAAiBH,EAAGC,EAAO,sBAAsB,GAAG,CAACL,KAAmB/B,KAAQoC,EAAO,yBAAyBpC,CAAI,EAAE,GAAG;AAAA,IAC7H,CAACoC,EAAO,0CAA0C,CAAC,GAAGL;AAAA,EAAA,CACvD,GACKQ,IAAiBJ,EAAGC,EAAO,sBAAsB,GAAG;AAAA,IACxD,CAACA,EAAO,8BAA8B,CAAC,GAAGL;AAAA,IAC1C,CAACK,EAAO,+BAA+B,CAAC,GAAG,CAACL;AAAA,IAC5C,CAACK,EAAO,+BAA+B,CAAC,GAAG,EAACJ,KAAA,QAAAA,EAAgB,gBAAe,CAAC9B;AAAA,EAAA,CAC7E,GACKsC,IAAcL;AAAAA,IAClBC,EAAO,mBAAmB;AAAA,IAC1B,CAACL,KAAmB/B,MAASA,MAAS,YAAYA,MAAS,YAAYoC,EAAO,2CAA2CpC,CAAI,EAAE;AAAA,IAC/H;AAAA,MACE,CAACoC,EAAO,uCAAuC,CAAC,GAAGL;AAAA,MACnD,CAACK,EAAO,wCAAwC,CAAC,GAAG,CAACL;AAAA,IACvD;AAAA,EAAA,GAEIU,IAAgBN;AAAAA,IACpBC,EAAO,qBAAqB;AAAA,IAC5B,CAACL,KAAmB/B,MAASA,MAAS,YAAYA,MAAS,YAAYoC,EAAO,6CAA6CpC,CAAI,EAAE;AAAA,IACjI;AAAA,MACE,CAACoC,EAAO,yCAAyC,CAAC,GAAGL;AAAA,MACrD,CAACK,EAAO,0CAA0C,CAAC,GAAG,CAACL;AAAA,IACzD;AAAA,EAAA,GAEIW,IAAY5C;AAClB,SACGO,gBAAAA,EAAA,cAAA,QAAA,EAAK,eAAasB,GAAQ,WAAWO,EACnC,GAAAJ,KAAsB5B,KACrBG,gBAAAA,EAAA,cAAC,QAAK,EAAA,WAAWmC,KACdnC,EAAM,aAAaH,GAAM;AAAA,IACxB,MAAM0B,MAAee,EAAW,KAAKC,EAAS,SAASA,EAAS;AAAA,IAChE,WAAA7C;AAAA,EAAA,CACD,CACH,GAEDC,MAAS,YAAWgC,KAAA,gBAAAA,EAAgB,gBAClC3B,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAWoC,EAAA,GAAgBpC,EAAM,aAAa2B,EAAe,aAAa,EAAE,MAAMa,EAAW,OAAO,CAAC,CAAE,mCAE9G,QAAK,EAAA,WAAWN,EACd,GAAAP,KAAA,gBAAAA,EAAgB,wBAChB,CAAC,EAACA,KAAA,QAAAA,EAAgB,eAAe,WAChC3B,gBAAAA,EAAA,cAACqC,GAAU,EAAA,WAAWN,EAAO,oBAAoB,EAAI,GAAAJ,EAAe,cAAe,GAEpFA,KAAA,gBAAAA,EAAgB,iBACnB,IAECA,KAAA,gBAAAA,EAAgB,eAAe3B,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAWgC,KAAeL,EAAe,UAAW,GACxFF,KAAsB7B,KACpBI,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAWiC,EACf,GAAAjC,gBAAAA,EAAA,cAACyC,GAAK,EAAA,SAAS7C,GAAa,WAAAF,GAAsB,MAAM6C,EAAS,OAAA,CAAQ,CAC3E,CAEJ;AAEJ;AAEAxC,EAAW,cAAc;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StatusDotVariant } from '../../StatusDot';
|
|
3
3
|
import { TitleTags } from '../../Title';
|
|
4
|
-
export type ListHeaderTextType = React.
|
|
4
|
+
export type ListHeaderTextType = React.FC<ListHeaderTextProps>;
|
|
5
5
|
export interface ListHeaderTextProps {
|
|
6
6
|
/** The first text in the ListHeaderText Component */
|
|
7
7
|
firstText: string;
|
|
@@ -24,4 +24,3 @@ export interface ListHeaderTextProps {
|
|
|
24
24
|
}
|
|
25
25
|
export declare const ListHeaderText: ListHeaderTextType;
|
|
26
26
|
export default ListHeaderText;
|
|
27
|
-
//# sourceMappingURL=ListHeaderText.d.ts.map
|
|
@@ -2,7 +2,7 @@ import e from "react";
|
|
|
2
2
|
import s from "classnames";
|
|
3
3
|
import _ from "../../StatusDot/StatusDot.js";
|
|
4
4
|
import t from "../styles.module.scss";
|
|
5
|
-
const l =
|
|
5
|
+
const l = (m) => {
|
|
6
6
|
const {
|
|
7
7
|
firstText: n,
|
|
8
8
|
firstTextEmphasised: p = !1,
|
|
@@ -10,22 +10,22 @@ const l = e.forwardRef((m, N) => {
|
|
|
10
10
|
secondTextEmphasised: o = !1,
|
|
11
11
|
subText: c = !1,
|
|
12
12
|
statusDotVariant: r,
|
|
13
|
-
className:
|
|
14
|
-
testId:
|
|
13
|
+
className: i = "",
|
|
14
|
+
testId: d,
|
|
15
15
|
titleHtmlMarkup: x = "span"
|
|
16
|
-
} = m, f = s(
|
|
16
|
+
} = m, f = s(i, t["text-wrapper"], {
|
|
17
17
|
[t["text-wrapper--sub-level"]]: c
|
|
18
18
|
}), T = s({
|
|
19
19
|
[t["text-wrapper__text--emphasised"]]: p
|
|
20
20
|
}), u = s({
|
|
21
21
|
[t["text-wrapper__text--emphasised"]]: o
|
|
22
22
|
}), E = x;
|
|
23
|
-
return /* @__PURE__ */ e.createElement("span", { "data-testid":
|
|
24
|
-
}
|
|
23
|
+
return /* @__PURE__ */ e.createElement("span", { "data-testid": d, className: f }, r !== void 0 && /* @__PURE__ */ e.createElement("span", null, /* @__PURE__ */ e.createElement(_, { text: "", variant: r })), /* @__PURE__ */ e.createElement(E, { className: t["list-header__title"] }, /* @__PURE__ */ e.createElement("span", { className: T }, n), a && /* @__PURE__ */ e.createElement("span", { className: u }, a)));
|
|
24
|
+
};
|
|
25
25
|
l.displayName = "ListHeaderText";
|
|
26
|
-
const
|
|
26
|
+
const w = l;
|
|
27
27
|
export {
|
|
28
28
|
l as ListHeaderText,
|
|
29
|
-
|
|
29
|
+
w as default
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=ListHeaderText.js.map
|