@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
|
@@ -1,124 +1,123 @@
|
|
|
1
1
|
import t from "react";
|
|
2
|
-
import
|
|
2
|
+
import c from "classnames";
|
|
3
3
|
import { DetailButton as A } from "./DetailButton/DetailButton.js";
|
|
4
|
-
import { IconSize as
|
|
4
|
+
import { IconSize as o, AnalyticsId as B } from "../../constants.js";
|
|
5
5
|
import { useUuid as L } from "../../hooks/useUuid.js";
|
|
6
6
|
import { getColor as P } from "../../theme/currys/color.js";
|
|
7
|
-
import { palette as
|
|
8
|
-
import { getAriaLabelAttributes as
|
|
9
|
-
import
|
|
10
|
-
import { Icon as
|
|
7
|
+
import { palette as n } from "../../theme/palette.js";
|
|
8
|
+
import { getAriaLabelAttributes as R } from "../../utils/accessibility.js";
|
|
9
|
+
import $ from "../Close/Close.js";
|
|
10
|
+
import { Icon as p } from "../Icon/Icon.js";
|
|
11
11
|
import D from "../Icons/CheckFill.js";
|
|
12
12
|
import M from "../Icons/ErrorSignFill.js";
|
|
13
13
|
import O from "../Icons/InfoSignFill.js";
|
|
14
14
|
import U from "../Icons/TriangleX.js";
|
|
15
15
|
import e from "./styles.module.scss";
|
|
16
|
-
const V = ({ fluid:
|
|
17
|
-
if (
|
|
18
|
-
const
|
|
19
|
-
return /* @__PURE__ */ t.createElement("div", { className:
|
|
16
|
+
const V = ({ fluid: s, children: m }) => {
|
|
17
|
+
if (s) {
|
|
18
|
+
const l = c(e["fluid-wrapper"]);
|
|
19
|
+
return /* @__PURE__ */ t.createElement("div", { className: l }, m);
|
|
20
20
|
}
|
|
21
|
-
return
|
|
22
|
-
}, W = t.forwardRef((
|
|
21
|
+
return m;
|
|
22
|
+
}, W = t.forwardRef((s, m) => {
|
|
23
23
|
const {
|
|
24
|
-
children:
|
|
25
|
-
variant:
|
|
24
|
+
children: l,
|
|
25
|
+
variant: f = "info",
|
|
26
26
|
dismissable: _ = !1,
|
|
27
|
-
onClick:
|
|
28
|
-
expanderChildren:
|
|
27
|
+
onClick: E,
|
|
28
|
+
expanderChildren: r,
|
|
29
29
|
expanderButtonText: b,
|
|
30
30
|
expanderButtonClosedText: u,
|
|
31
|
-
expanderOpenFromStart:
|
|
31
|
+
expanderOpenFromStart: h = !1,
|
|
32
32
|
compactVariant: a,
|
|
33
|
-
label:
|
|
33
|
+
label: i,
|
|
34
34
|
fluid: N = !1,
|
|
35
35
|
size: C,
|
|
36
36
|
className: S,
|
|
37
37
|
labelId: I,
|
|
38
38
|
role: g,
|
|
39
39
|
testId: x
|
|
40
|
-
} =
|
|
40
|
+
} = s, d = L(I), y = {
|
|
41
41
|
info: /* @__PURE__ */ t.createElement(
|
|
42
|
-
|
|
42
|
+
p,
|
|
43
43
|
{
|
|
44
44
|
svgIcon: O,
|
|
45
|
-
color:
|
|
46
|
-
hoverColor:
|
|
47
|
-
size: a ?
|
|
45
|
+
color: n.blueberry700,
|
|
46
|
+
hoverColor: n.blueberry700,
|
|
47
|
+
size: a ? o.XSmall : o.Small
|
|
48
48
|
}
|
|
49
49
|
),
|
|
50
50
|
warn: /* @__PURE__ */ t.createElement(
|
|
51
|
-
|
|
51
|
+
p,
|
|
52
52
|
{
|
|
53
53
|
svgIcon: M,
|
|
54
|
-
color:
|
|
55
|
-
hoverColor:
|
|
56
|
-
size: a ?
|
|
54
|
+
color: n.banana700,
|
|
55
|
+
hoverColor: n.banana700,
|
|
56
|
+
size: a ? o.XSmall : o.Small
|
|
57
57
|
}
|
|
58
58
|
),
|
|
59
59
|
alert: /* @__PURE__ */ t.createElement(
|
|
60
|
-
|
|
60
|
+
p,
|
|
61
61
|
{
|
|
62
62
|
svgIcon: U,
|
|
63
|
-
color:
|
|
64
|
-
hoverColor:
|
|
65
|
-
size: a ?
|
|
63
|
+
color: n.cherry700,
|
|
64
|
+
hoverColor: n.cherry700,
|
|
65
|
+
size: a ? o.XSmall : o.Small
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
68
|
success: /* @__PURE__ */ t.createElement(
|
|
69
|
-
|
|
69
|
+
p,
|
|
70
70
|
{
|
|
71
71
|
svgIcon: D,
|
|
72
|
-
color:
|
|
73
|
-
hoverColor:
|
|
74
|
-
size: a ?
|
|
72
|
+
color: n.kiwi900,
|
|
73
|
+
hoverColor: n.kiwi900,
|
|
74
|
+
size: a ? o.XSmall : o.Small
|
|
75
75
|
}
|
|
76
76
|
)
|
|
77
|
-
},
|
|
78
|
-
const k =
|
|
79
|
-
[e["notification-panel__label--no-content"]]: !
|
|
77
|
+
}, w = () => {
|
|
78
|
+
const k = c(e["notification-panel__content"]), F = c(e["notification-panel__label"], {
|
|
79
|
+
[e["notification-panel__label--no-content"]]: !l && !r,
|
|
80
80
|
[e["notification-panel__label__compact"]]: !!a,
|
|
81
81
|
[e["notification-panel__label__compact--basic"]]: a === "basic"
|
|
82
|
-
}), X =
|
|
83
|
-
[e["notification-panel__label-and-content--spacing"]]:
|
|
84
|
-
[e["notification-panel__children--expander-no-label"]]:
|
|
82
|
+
}), X = c(e["notification-panel__children"], {
|
|
83
|
+
[e["notification-panel__label-and-content--spacing"]]: i,
|
|
84
|
+
[e["notification-panel__children--expander-no-label"]]: r && !i
|
|
85
85
|
});
|
|
86
|
-
return /* @__PURE__ */ t.createElement("div", { className: k, id:
|
|
86
|
+
return /* @__PURE__ */ t.createElement("div", { className: k, id: i ? void 0 : d }, i && /* @__PURE__ */ t.createElement("h1", { className: F, id: d }, i), l && !a && /* @__PURE__ */ t.createElement("div", { className: X }, l), r && b && u && !a && /* @__PURE__ */ t.createElement(
|
|
87
87
|
A,
|
|
88
88
|
{
|
|
89
|
-
expanderOpenFromStart:
|
|
90
|
-
content:
|
|
89
|
+
expanderOpenFromStart: h,
|
|
90
|
+
content: r,
|
|
91
91
|
buttonText: b,
|
|
92
92
|
buttonClosedText: u
|
|
93
93
|
}
|
|
94
94
|
));
|
|
95
|
-
}, z =
|
|
95
|
+
}, z = c(
|
|
96
96
|
e["notification-panel"],
|
|
97
|
-
e[`notification-panel--${
|
|
97
|
+
e[`notification-panel--${f}`],
|
|
98
|
+
C && e[`notification-panel--${C}`],
|
|
98
99
|
{
|
|
99
|
-
[e[`notification-panel--${C}`]]: !!C,
|
|
100
100
|
[e["notification-panel__compact"]]: !!a,
|
|
101
101
|
[e["notification-panel__compact--basic"]]: a === "basic",
|
|
102
102
|
[e["notification-panel__compact--outline"]]: a === "outline",
|
|
103
|
-
[e["notification-panel--
|
|
104
|
-
[e["notification-panel--with-content"]]: c || l && o,
|
|
103
|
+
[e["notification-panel--with-content"]]: r || i && l,
|
|
105
104
|
[e["notification-panel--dismissable"]]: _
|
|
106
105
|
},
|
|
107
106
|
S
|
|
108
|
-
), v = g ||
|
|
109
|
-
return /* @__PURE__ */ t.createElement(V, { fluid: N
|
|
107
|
+
), v = g || f === "alert" && "alert" || void 0, T = v ? R({ label: i, id: d }) : void 0;
|
|
108
|
+
return /* @__PURE__ */ t.createElement(V, { fluid: N }, /* @__PURE__ */ t.createElement(
|
|
110
109
|
"div",
|
|
111
110
|
{
|
|
112
|
-
ref:
|
|
111
|
+
ref: m,
|
|
113
112
|
role: v,
|
|
114
113
|
"data-testid": x,
|
|
115
114
|
"data-analyticsid": B.NotificationPanel,
|
|
116
115
|
className: z,
|
|
117
116
|
...T
|
|
118
117
|
},
|
|
119
|
-
/* @__PURE__ */ t.createElement("span", { className: e["notification-panel__icon"] },
|
|
120
|
-
_ && /* @__PURE__ */ t.createElement("span", { className: e["notification-panel__close"] }, /* @__PURE__ */ t.createElement(
|
|
121
|
-
|
|
118
|
+
/* @__PURE__ */ t.createElement("span", { className: e["notification-panel__icon"] }, y[f]),
|
|
119
|
+
_ && /* @__PURE__ */ t.createElement("span", { className: e["notification-panel__close"] }, /* @__PURE__ */ t.createElement($, { ariaLabel: s.ariaLabelCloseBtn, onClick: E, color: P("black") })),
|
|
120
|
+
w()
|
|
122
121
|
));
|
|
123
122
|
}), le = W;
|
|
124
123
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationPanel.js","sources":["../../../src/components/NotificationPanel/NotificationPanel.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { DetailButton } from './DetailButton/DetailButton';\nimport { AnalyticsId, IconSize } from '../../constants';\nimport { useUuid } from '../../hooks/useUuid';\nimport { getColor } from '../../theme/currys';\nimport { palette } from '../../theme/palette';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport Close from '../Close';\nimport Icon from '../Icon';\nimport CheckFill from '../Icons/CheckFill';\nimport ErrorSignFill from '../Icons/ErrorSignFill';\nimport InfoSignFill from '../Icons/InfoSignFill';\nimport TriangleX from '../Icons/TriangleX';\n\nimport styles from './styles.module.scss';\n\nexport type NotificationPanelVariants = 'info' | 'warn' | 'alert' | 'success';\nexport type NotificationCompactVariants = 'basic' | 'outline';\nexport type NotificationPanelSizes = 'small' | 'medium' | 'large';\n\nexport interface NotificationPanelProps {\n /** Adds custom classes to the element. */\n className?: string;\n /** Adds inner child elements. */\n children?: React.ReactNode;\n /** Adds inner expander elements. */\n expanderChildren?: React.ReactNode;\n /** Text for expanderButton. */\n expanderButtonText?: string;\n /** Text for expanderButton when closed. */\n expanderButtonClosedText?: string;\n /** Makes expander be open from start. */\n expanderOpenFromStart?: boolean;\n /** Changes the visual representation of the notification panel. */\n variant?: NotificationPanelVariants;\n /** Makes the panel more compact. Available in basic and outline. */\n compactVariant?: NotificationCompactVariants;\n /** Sets a fixed size for the content container. */\n size?: NotificationPanelSizes;\n /** Used in combination with dismissiable property to close the notification panel. */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;\n /** Toggles the close button in the top right corner. */\n dismissable?: boolean;\n /** Enables a fluid outer container that spans the entire width of parent. */\n fluid?: boolean;\n /** Sets a label for the notification panel. */\n label?: string;\n /** Close button aria-label */\n ariaLabelCloseBtn?: string;\n /** Custom id for the label */\n labelId?: string;\n /** Custom role for the panel. Default is no role. If variant is alert or crisis, the aria role will be set to \"alert\" unless the role-prop is also set. */\n role?: 'region' | 'alert';\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\ntype WrapFluidProps = Pick<NotificationPanelProps, 'fluid' | 'variant'> & {\n children: React.ReactElement;\n};\n\nconst FluidWrapper: React.FC<WrapFluidProps> = ({ fluid, variant, children }) => {\n if (fluid) {\n const fluidClasses = classNames(styles['fluid-wrapper'], { [styles[`fluid-wrapper--${variant}`]]: variant });\n\n return <div className={fluidClasses}>{children}</div>;\n }\n return children;\n};\n\nconst NotificationPanel = React.forwardRef<HTMLDivElement, NotificationPanelProps>((props, ref) => {\n const {\n children,\n variant = 'info',\n dismissable = false,\n onClick,\n expanderChildren,\n expanderButtonText,\n expanderButtonClosedText,\n expanderOpenFromStart = false,\n compactVariant,\n label,\n fluid = false,\n size,\n className,\n labelId,\n role,\n testId,\n } = props;\n const uuid = useUuid(labelId);\n const variantToIconMap = {\n info: (\n <Icon\n svgIcon={InfoSignFill}\n color={palette.blueberry700}\n hoverColor={palette.blueberry700}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n warn: (\n <Icon\n svgIcon={ErrorSignFill}\n color={palette.banana700}\n hoverColor={palette.banana700}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n alert: (\n <Icon\n svgIcon={TriangleX}\n color={palette.cherry700}\n hoverColor={palette.cherry700}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n success: (\n <Icon\n svgIcon={CheckFill}\n color={palette.kiwi900}\n hoverColor={palette.kiwi900}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n };\n const renderContent = (): JSX.Element => {\n const contentClasses = classNames(styles['notification-panel__content']);\n const labelClasses = classNames(styles['notification-panel__label'], {\n [styles['notification-panel__label--no-content']]: !children && !expanderChildren,\n [styles['notification-panel__label__compact']]: !!compactVariant,\n [styles['notification-panel__label__compact--basic']]: compactVariant === 'basic',\n });\n const childrenClasses = classNames(styles['notification-panel__children'], {\n [styles['notification-panel__label-and-content--spacing']]: label,\n [styles['notification-panel__children--expander-no-label']]: expanderChildren && !label,\n });\n\n return (\n <div className={contentClasses} id={!label ? uuid : undefined}>\n {label && (\n <h1 className={labelClasses} id={uuid}>\n {label}\n </h1>\n )}\n {children && !compactVariant && <div className={childrenClasses}>{children}</div>}\n {expanderChildren && expanderButtonText && expanderButtonClosedText && !compactVariant && (\n <DetailButton\n expanderOpenFromStart={expanderOpenFromStart}\n content={expanderChildren}\n buttonText={expanderButtonText}\n buttonClosedText={expanderButtonClosedText}\n />\n )}\n </div>\n );\n };\n\n const notificationPanelClasses = classNames(\n styles['notification-panel'],\n styles[`notification-panel--${variant}`],\n {\n [styles[`notification-panel--${size}`]]: !!size,\n [styles['notification-panel__compact']]: !!compactVariant,\n [styles['notification-panel__compact--basic']]: compactVariant === 'basic',\n [styles['notification-panel__compact--outline']]: compactVariant === 'outline',\n [styles['notification-panel--has-children']]: !!children,\n [styles['notification-panel--with-content']]: expanderChildren || (label && children),\n [styles['notification-panel--dismissable']]: dismissable,\n },\n className\n );\n\n const ariaRole = role || (variant === 'alert' && 'alert') || undefined;\n const ariaLabelAttributes = ariaRole ? getAriaLabelAttributes({ label, id: uuid }) : undefined;\n\n return (\n <FluidWrapper fluid={fluid} variant={variant}>\n <div\n ref={ref}\n role={ariaRole}\n data-testid={testId}\n data-analyticsid={AnalyticsId.NotificationPanel}\n className={notificationPanelClasses}\n {...ariaLabelAttributes}\n >\n <span className={styles['notification-panel__icon']}>{variantToIconMap[variant]}</span>\n {dismissable && (\n <span className={styles['notification-panel__close']}>\n <Close ariaLabel={props.ariaLabelCloseBtn} onClick={onClick} color={getColor('black')} />\n </span>\n )}\n {renderContent()}\n </div>\n </FluidWrapper>\n );\n});\n\nexport default NotificationPanel;\n"],"names":["FluidWrapper","fluid","variant","children","fluidClasses","classNames","styles","React","NotificationPanel","props","ref","dismissable","onClick","expanderChildren","expanderButtonText","expanderButtonClosedText","expanderOpenFromStart","compactVariant","label","size","className","labelId","role","testId","uuid","useUuid","variantToIconMap","Icon","InfoSignFill","palette","IconSize","ErrorSignFill","TriangleX","CheckFill","renderContent","contentClasses","labelClasses","childrenClasses","DetailButton","notificationPanelClasses","ariaRole","ariaLabelAttributes","getAriaLabelAttributes","AnalyticsId","Close","getColor","NotificationPanel$1"],"mappings":";;;;;;;;;;;;;;;AAgEA,MAAMA,IAAyC,CAAC,EAAE,OAAAC,GAAO,SAAAC,GAAS,UAAAC,QAAe;AAC/E,MAAIF,GAAO;AACT,UAAMG,IAAeC,EAAWC,EAAO,eAAe,GAAG,EAAE,CAACA,EAAO,kBAAkBJ,CAAO,EAAE,CAAC,GAAGA,EAAS,CAAA;AAE3G,WAAQK,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAWH,EAAA,GAAeD,CAAS;AAAA,EACjD;AACO,SAAAA;AACT,GAEMK,IAAoBD,EAAM,WAAmD,CAACE,GAAOC,MAAQ;AAC3F,QAAA;AAAA,IACJ,UAAAP;AAAA,IACA,SAAAD,IAAU;AAAA,IACV,aAAAS,IAAc;AAAA,IACd,SAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,0BAAAC;AAAA,IACA,uBAAAC,IAAwB;AAAA,IACxB,gBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAjB,IAAQ;AAAA,IACR,MAAAkB;AAAA,IACA,WAAAC;AAAA,IACA,SAAAC;AAAA,IACA,MAAAC;AAAA,IACA,QAAAC;AAAA,EACE,IAAAd,GACEe,IAAOC,EAAQJ,CAAO,GACtBK,IAAmB;AAAA,IACvB,MACEnB,gBAAAA,EAAA;AAAA,MAACoB;AAAA,MAAA;AAAA,QACC,SAASC;AAAA,QACT,OAA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AAA,MACb,oBAAkBoB,EAAY;AAAA,MAC9B,WAAWJ;AAAA,MACV,GAAGE;AAAA,IAAA;AAAA,IAEJlC,gBAAAA,EAAA,cAAC,UAAK,WAAWD,EAAO,0BAA0B,EAAI,GAAAoB,EAAiBxB,CAAO,CAAE;AAAA,IAC/ES,KACEJ,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAWD,EAAO,2BAA2B,EACjD,GAAAC,gBAAAA,EAAA,cAACqC,GAAM,EAAA,WAAWnC,EAAM,mBAAmB,SAAAG,GAAkB,OAAOiC,EAAS,OAAO,GAAG,CACzF;AAAA,IAEDX,EAAc;AAAA,EAAA,CAEnB;AAEJ,CAAC,GAEDY,KAAetC;"}
|
|
1
|
+
{"version":3,"file":"NotificationPanel.js","sources":["../../../src/components/NotificationPanel/NotificationPanel.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { DetailButton } from './DetailButton/DetailButton';\nimport { AnalyticsId, IconSize } from '../../constants';\nimport { useUuid } from '../../hooks/useUuid';\nimport { getColor } from '../../theme/currys';\nimport { palette } from '../../theme/palette';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport Close from '../Close';\nimport Icon from '../Icon';\nimport CheckFill from '../Icons/CheckFill';\nimport ErrorSignFill from '../Icons/ErrorSignFill';\nimport InfoSignFill from '../Icons/InfoSignFill';\nimport TriangleX from '../Icons/TriangleX';\n\nimport styles from './styles.module.scss';\n\nexport type NotificationPanelVariants = 'info' | 'warn' | 'alert' | 'success';\nexport type NotificationCompactVariants = 'basic' | 'outline';\nexport type NotificationPanelSizes = 'small' | 'medium' | 'large';\n\nexport interface NotificationPanelProps {\n /** Adds custom classes to the element. */\n className?: string;\n /** Adds inner child elements. */\n children?: React.ReactNode;\n /** Adds inner expander elements. */\n expanderChildren?: React.ReactNode;\n /** Text for expanderButton. */\n expanderButtonText?: string;\n /** Text for expanderButton when closed. */\n expanderButtonClosedText?: string;\n /** Makes expander be open from start. */\n expanderOpenFromStart?: boolean;\n /** Changes the visual representation of the notification panel. */\n variant?: NotificationPanelVariants;\n /** Makes the panel more compact. Available in basic and outline. */\n compactVariant?: NotificationCompactVariants;\n /** Sets a fixed size for the content container. */\n size?: NotificationPanelSizes;\n /** Used in combination with dismissiable property to close the notification panel. */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;\n /** Toggles the close button in the top right corner. */\n dismissable?: boolean;\n /** Enables a fluid outer container that spans the entire width of parent. */\n fluid?: boolean;\n /** Sets a label for the notification panel. */\n label?: string;\n /** Close button aria-label */\n ariaLabelCloseBtn?: string;\n /** Custom id for the label */\n labelId?: string;\n /** Custom role for the panel. Default is no role. If variant is alert or crisis, the aria role will be set to \"alert\" unless the role-prop is also set. */\n role?: 'region' | 'alert';\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\ntype WrapFluidProps = Pick<NotificationPanelProps, 'fluid'> & {\n children: React.ReactElement;\n};\n\nconst FluidWrapper: React.FC<WrapFluidProps> = ({ fluid, children }) => {\n if (fluid) {\n const fluidClasses = classNames(styles['fluid-wrapper']);\n\n return <div className={fluidClasses}>{children}</div>;\n }\n return children;\n};\n\nconst NotificationPanel = React.forwardRef<HTMLDivElement, NotificationPanelProps>((props, ref) => {\n const {\n children,\n variant = 'info',\n dismissable = false,\n onClick,\n expanderChildren,\n expanderButtonText,\n expanderButtonClosedText,\n expanderOpenFromStart = false,\n compactVariant,\n label,\n fluid = false,\n size,\n className,\n labelId,\n role,\n testId,\n } = props;\n const uuid = useUuid(labelId);\n const variantToIconMap = {\n info: (\n <Icon\n svgIcon={InfoSignFill}\n color={palette.blueberry700}\n hoverColor={palette.blueberry700}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n warn: (\n <Icon\n svgIcon={ErrorSignFill}\n color={palette.banana700}\n hoverColor={palette.banana700}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n alert: (\n <Icon\n svgIcon={TriangleX}\n color={palette.cherry700}\n hoverColor={palette.cherry700}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n success: (\n <Icon\n svgIcon={CheckFill}\n color={palette.kiwi900}\n hoverColor={palette.kiwi900}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n };\n const renderContent = (): JSX.Element => {\n const contentClasses = classNames(styles['notification-panel__content']);\n const labelClasses = classNames(styles['notification-panel__label'], {\n [styles['notification-panel__label--no-content']]: !children && !expanderChildren,\n [styles['notification-panel__label__compact']]: !!compactVariant,\n [styles['notification-panel__label__compact--basic']]: compactVariant === 'basic',\n });\n const childrenClasses = classNames(styles['notification-panel__children'], {\n [styles['notification-panel__label-and-content--spacing']]: label,\n [styles['notification-panel__children--expander-no-label']]: expanderChildren && !label,\n });\n\n return (\n <div className={contentClasses} id={!label ? uuid : undefined}>\n {label && (\n <h1 className={labelClasses} id={uuid}>\n {label}\n </h1>\n )}\n {children && !compactVariant && <div className={childrenClasses}>{children}</div>}\n {expanderChildren && expanderButtonText && expanderButtonClosedText && !compactVariant && (\n <DetailButton\n expanderOpenFromStart={expanderOpenFromStart}\n content={expanderChildren}\n buttonText={expanderButtonText}\n buttonClosedText={expanderButtonClosedText}\n />\n )}\n </div>\n );\n };\n\n const notificationPanelClasses = classNames(\n styles['notification-panel'],\n styles[`notification-panel--${variant}`],\n size && styles[`notification-panel--${size}`],\n {\n [styles['notification-panel__compact']]: !!compactVariant,\n [styles['notification-panel__compact--basic']]: compactVariant === 'basic',\n [styles['notification-panel__compact--outline']]: compactVariant === 'outline',\n [styles['notification-panel--with-content']]: expanderChildren || (label && children),\n [styles['notification-panel--dismissable']]: dismissable,\n },\n className\n );\n\n const ariaRole = role || (variant === 'alert' && 'alert') || undefined;\n const ariaLabelAttributes = ariaRole ? getAriaLabelAttributes({ label, id: uuid }) : undefined;\n\n return (\n <FluidWrapper fluid={fluid}>\n <div\n ref={ref}\n role={ariaRole}\n data-testid={testId}\n data-analyticsid={AnalyticsId.NotificationPanel}\n className={notificationPanelClasses}\n {...ariaLabelAttributes}\n >\n <span className={styles['notification-panel__icon']}>{variantToIconMap[variant]}</span>\n {dismissable && (\n <span className={styles['notification-panel__close']}>\n <Close ariaLabel={props.ariaLabelCloseBtn} onClick={onClick} color={getColor('black')} />\n </span>\n )}\n {renderContent()}\n </div>\n </FluidWrapper>\n );\n});\n\nexport default NotificationPanel;\n"],"names":["FluidWrapper","fluid","children","fluidClasses","classNames","styles","React","NotificationPanel","props","ref","variant","dismissable","onClick","expanderChildren","expanderButtonText","expanderButtonClosedText","expanderOpenFromStart","compactVariant","label","size","className","labelId","role","testId","uuid","useUuid","variantToIconMap","Icon","InfoSignFill","palette","IconSize","ErrorSignFill","TriangleX","CheckFill","renderContent","contentClasses","labelClasses","childrenClasses","DetailButton","notificationPanelClasses","ariaRole","ariaLabelAttributes","getAriaLabelAttributes","AnalyticsId","Close","getColor","NotificationPanel$1"],"mappings":";;;;;;;;;;;;;;;AAgEA,MAAMA,IAAyC,CAAC,EAAE,OAAAC,GAAO,UAAAC,QAAe;AACtE,MAAID,GAAO;AACT,UAAME,IAAeC,EAAWC,EAAO,eAAe,CAAC;AAEvD,WAAQC,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAWH,EAAA,GAAeD,CAAS;AAAA,EACjD;AACO,SAAAA;AACT,GAEMK,IAAoBD,EAAM,WAAmD,CAACE,GAAOC,MAAQ;AAC3F,QAAA;AAAA,IACJ,UAAAP;AAAA,IACA,SAAAQ,IAAU;AAAA,IACV,aAAAC,IAAc;AAAA,IACd,SAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,0BAAAC;AAAA,IACA,uBAAAC,IAAwB;AAAA,IACxB,gBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAjB,IAAQ;AAAA,IACR,MAAAkB;AAAA,IACA,WAAAC;AAAA,IACA,SAAAC;AAAA,IACA,MAAAC;AAAA,IACA,QAAAC;AAAA,EACE,IAAAf,GACEgB,IAAOC,E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+B;AAAA,MACN,eAAajB;AAAA,MACb,oBAAkBoB,EAAY;AAAA,MAC9B,WAAWJ;AAAA,MACV,GAAGE;AAAA,IAAA;AAAA,IAEJnC,gBAAAA,EAAA,cAAC,UAAK,WAAWD,EAAO,0BAA0B,EAAI,GAAAqB,EAAiBhB,CAAO,CAAE;AAAA,IAC/EC,KACEL,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAWD,EAAO,2BAA2B,EACjD,GAAAC,gBAAAA,EAAA,cAACsC,GAAM,EAAA,WAAWpC,EAAM,mBAAmB,SAAAI,GAAkB,OAAOiC,EAAS,OAAO,GAAG,CACzF;AAAA,IAEDX,EAAc;AAAA,EAAA,CAEnB;AAEJ,CAAC,GAEDY,KAAevC;"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<import("./NotificationPanel").NotificationPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
args: {
|
|
14
|
+
dismissable: false;
|
|
15
|
+
size: "large";
|
|
16
|
+
fluid: false;
|
|
17
|
+
label: string;
|
|
18
|
+
variant: "alert";
|
|
19
|
+
role: undefined;
|
|
20
|
+
};
|
|
21
|
+
argTypes: {
|
|
22
|
+
dismissable: {
|
|
23
|
+
control: string;
|
|
24
|
+
};
|
|
25
|
+
size: {
|
|
26
|
+
control: string;
|
|
27
|
+
options: string[];
|
|
28
|
+
};
|
|
29
|
+
fluid: {
|
|
30
|
+
control: string;
|
|
31
|
+
};
|
|
32
|
+
label: {
|
|
33
|
+
control: string;
|
|
34
|
+
};
|
|
35
|
+
variant: {
|
|
36
|
+
control: string;
|
|
37
|
+
options: string[];
|
|
38
|
+
};
|
|
39
|
+
role: {
|
|
40
|
+
control: string;
|
|
41
|
+
options: string[];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export default meta;
|
|
46
|
+
type Story = StoryObj<typeof meta>;
|
|
47
|
+
export declare const Default: Story;
|
|
48
|
+
export declare const WithoutLabel: Story;
|
|
49
|
+
export declare const AllVariants: Story;
|
|
50
|
+
export declare const Expander: Story;
|
|
51
|
+
export declare const Dismissable: Story;
|
|
52
|
+
export declare const Compact: Story;
|
|
53
|
+
export declare const WithSetWidth: Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import r from "classnames";
|
|
3
|
-
import { AnalyticsId as oe, IconSize as
|
|
3
|
+
import { AnalyticsId as oe, IconSize as A } from "../../constants.js";
|
|
4
4
|
import { useExpand as se } from "../../hooks/useExpand.js";
|
|
5
5
|
import { useUuid as H } from "../../hooks/useUuid.js";
|
|
6
6
|
import { palette as W } from "../../theme/palette.js";
|
|
@@ -18,13 +18,13 @@ import fe from "../Icons/Watch.js";
|
|
|
18
18
|
import ye from "../Title/Title.js";
|
|
19
19
|
import e from "./styles.module.scss";
|
|
20
20
|
var ve = /* @__PURE__ */ ((a) => (a.normal = "normal", a.new = "new", a.error = "error", a.draft = "draft", a))(ve || {}), be = /* @__PURE__ */ ((a) => (a.fill = "fill", a.white = "white", a.stroke = "stroke", a.line = "line", a))(be || {}), Ce = /* @__PURE__ */ ((a) => (a.layout1 = "layout1", a.layout2 = "layout2", a.layout3a = "layout3a", a.layout3b = "layout3b", a.layout3c = "layout3c", a))(Ce || {});
|
|
21
|
-
const
|
|
21
|
+
const S = ({ status: a, statusMessage: n }) => {
|
|
22
22
|
const m = () => a === "error" ? { color: W.cherry500, svgIcon: me } : { color: W.black, svgIcon: Ee }, s = r(e["status-message"], {
|
|
23
23
|
[e["status-message--new"]]: a === "new"
|
|
24
24
|
/* new */
|
|
25
25
|
});
|
|
26
|
-
return (a === "error" || a === "draft") && n ? /* @__PURE__ */ t.createElement("div", { className: s, "data-testid": "display-status" }, /* @__PURE__ */ t.createElement(C, { ...m(), size:
|
|
27
|
-
},
|
|
26
|
+
return (a === "error" || a === "draft") && n ? /* @__PURE__ */ t.createElement("div", { className: s, "data-testid": "display-status" }, /* @__PURE__ */ t.createElement(C, { ...m(), size: A.XSmall }), " ", /* @__PURE__ */ t.createElement("span", null, n)) : null;
|
|
27
|
+
}, L = ({ children: a }) => typeof a > "u" ? null : /* @__PURE__ */ t.createElement("div", { className: e["header-container"] }, a), Ne = ({ date: a, time: n }) => a || n ? /* @__PURE__ */ t.createElement("div", { className: e["datetime-container"], "data-testid": "datetime" }, a && /* @__PURE__ */ t.createElement("div", { className: e["datetime-container__icon"] }, /* @__PURE__ */ t.createElement(C, { svgIcon: de, size: A.XSmall }), /* @__PURE__ */ t.createElement("span", null, a)), n && /* @__PURE__ */ t.createElement("div", { className: e["datetime-container__icon"] }, /* @__PURE__ */ t.createElement(C, { svgIcon: fe, size: A.XSmall }), /* @__PURE__ */ t.createElement("span", null, n))) : null, he = ({
|
|
28
28
|
contentA: a,
|
|
29
29
|
contentB: n,
|
|
30
30
|
contentHeader: m,
|
|
@@ -39,7 +39,7 @@ const L = ({ status: a, statusMessage: n }) => {
|
|
|
39
39
|
}), o = r(e.panel__icon, e["panel__icon--layout-1"], {
|
|
40
40
|
[e["panel__icon--no-content"]]: !a && !n
|
|
41
41
|
});
|
|
42
|
-
return /* @__PURE__ */ t.createElement("div", { className: i }, /* @__PURE__ */ t.createElement(
|
|
42
|
+
return /* @__PURE__ */ t.createElement("div", { className: i }, /* @__PURE__ */ t.createElement(S, { status: c, statusMessage: d }), /* @__PURE__ */ t.createElement(L, null, m), l && /* @__PURE__ */ t.createElement("div", { className: o }, l), /* @__PURE__ */ t.createElement("div", { className: e["panel__layout-1__content-a"] }, p, a), n && /* @__PURE__ */ t.createElement("div", null, n), s);
|
|
43
43
|
}, we = ({
|
|
44
44
|
contentA: a,
|
|
45
45
|
contentB: n,
|
|
@@ -55,7 +55,7 @@ const L = ({ status: a, statusMessage: n }) => {
|
|
|
55
55
|
}), o = r(e.panel__icon, e["panel__icon--layout-2"], {
|
|
56
56
|
[e["panel__icon--no-content"]]: !a && !n
|
|
57
57
|
}), y = e["panel__layout-2__last-column"];
|
|
58
|
-
return /* @__PURE__ */ t.createElement("div", { className: i }, /* @__PURE__ */ t.createElement(
|
|
58
|
+
return /* @__PURE__ */ t.createElement("div", { className: i }, /* @__PURE__ */ t.createElement(S, { status: c, statusMessage: d }), /* @__PURE__ */ t.createElement(L, null, m), l && /* @__PURE__ */ t.createElement("div", { className: o }, l), /* @__PURE__ */ t.createElement("div", { className: e["panel__layout-2__content-a"] }, p, a), n && /* @__PURE__ */ t.createElement("div", { className: y }, n), s && /* @__PURE__ */ t.createElement("div", { className: y }, s));
|
|
59
59
|
}, Ie = ({
|
|
60
60
|
contentA: a,
|
|
61
61
|
contentB: n,
|
|
@@ -76,7 +76,7 @@ const L = ({ status: a, statusMessage: n }) => {
|
|
|
76
76
|
}), y = r(e.panel__icon, e["panel__icon--layout-3"], {
|
|
77
77
|
[e["panel__icon--no-content"]]: !a && !n
|
|
78
78
|
});
|
|
79
|
-
return /* @__PURE__ */ t.createElement("div", { className: o }, /* @__PURE__ */ t.createElement(
|
|
79
|
+
return /* @__PURE__ */ t.createElement("div", { className: o }, /* @__PURE__ */ t.createElement(S, { status: d, statusMessage: p }), /* @__PURE__ */ t.createElement(L, null, m), l && /* @__PURE__ */ t.createElement("div", { className: y }, l), /* @__PURE__ */ t.createElement("div", null, i, a), /* @__PURE__ */ t.createElement("div", { className: e["panel__layout-3__last-column"] }, n && /* @__PURE__ */ t.createElement("div", { className: e["panel__layout-3__last-column__content-b"] }, n), s));
|
|
80
80
|
}, ge = t.forwardRef(function(n, m) {
|
|
81
81
|
const {
|
|
82
82
|
buttonAriaLabel: s,
|
|
@@ -88,28 +88,28 @@ const L = ({ status: a, statusMessage: n }) => {
|
|
|
88
88
|
children: o,
|
|
89
89
|
className: y,
|
|
90
90
|
containerAsButton: w = !1,
|
|
91
|
-
contentA:
|
|
92
|
-
contentB:
|
|
91
|
+
contentA: M,
|
|
92
|
+
contentB: $,
|
|
93
93
|
contentHeader: F,
|
|
94
|
-
date:
|
|
94
|
+
date: z,
|
|
95
95
|
expanded: U = !1,
|
|
96
96
|
focusable: O = !1,
|
|
97
|
-
icon:
|
|
97
|
+
icon: B,
|
|
98
98
|
layout: v = "layout2",
|
|
99
99
|
noTopBorder: P,
|
|
100
100
|
onExpand: D,
|
|
101
101
|
renderChildrenWhenClosed: q = !1,
|
|
102
102
|
status: _ = "normal",
|
|
103
|
-
statusMessage:
|
|
103
|
+
statusMessage: I,
|
|
104
104
|
target: G = "_self",
|
|
105
105
|
testId: J,
|
|
106
106
|
time: R,
|
|
107
|
-
title:
|
|
107
|
+
title: g,
|
|
108
108
|
titleHtmlMarkup: K = "h2",
|
|
109
|
-
url:
|
|
109
|
+
url: x,
|
|
110
110
|
variant: E = "fill"
|
|
111
111
|
/* fill */
|
|
112
|
-
} = n, [f, Q] = se(U, D),
|
|
112
|
+
} = n, [f, Q] = se(U, D), k = H(), N = H(), j = I && _ === "new", h = typeof $ > "u", Y = v === "layout1" || h, Z = !h && v === "layout2", V = !h && (v === "layout3a" || v === "layout3b" || v === "layout3c"), ee = r(e["panel-wrapper"], y), te = r(e.panel, {
|
|
113
113
|
[e["panel--fill"]]: E === "fill",
|
|
114
114
|
[e["panel--stroke"]]: E === "stroke",
|
|
115
115
|
[e["panel--white"]]: E === "white",
|
|
@@ -120,19 +120,19 @@ const L = ({ status: a, statusMessage: n }) => {
|
|
|
120
120
|
[e["panel--draft"]]: _ === "draft",
|
|
121
121
|
[e["panel--error"]]: _ === "error",
|
|
122
122
|
[e["panel--status"]]: _ && _ !== "normal",
|
|
123
|
-
[e["panel--with-icon"]]:
|
|
123
|
+
[e["panel--with-icon"]]: B,
|
|
124
124
|
[e["panel--button"]]: w,
|
|
125
|
-
[e["panel--clickable"]]: o ||
|
|
125
|
+
[e["panel--clickable"]]: o || x || D || i || w
|
|
126
126
|
}), ae = () => {
|
|
127
|
-
const u = o ||
|
|
127
|
+
const u = o || x || i, b = r(e["panel__btn-container"], {
|
|
128
128
|
[e["panel__btn-container--no-content-b"]]: h,
|
|
129
129
|
[e["panel__btn-container--no-button"]]: !u
|
|
130
130
|
});
|
|
131
|
-
return (u ||
|
|
131
|
+
return (u || z || R) && /* @__PURE__ */ t.createElement("div", { className: b }, /* @__PURE__ */ t.createElement(Ne, { date: z, time: R }), u && /* @__PURE__ */ t.createElement("div", { className: e["panel__details-btn"] }, ne()));
|
|
132
132
|
}, ne = () => {
|
|
133
133
|
const u = ce({
|
|
134
134
|
label: s,
|
|
135
|
-
id: l && `${N} ${l}` ||
|
|
135
|
+
id: l && `${N} ${l}` || g && k && `${N} ${k}`,
|
|
136
136
|
prefer: "label"
|
|
137
137
|
}), b = {
|
|
138
138
|
onClick: i || (() => Q(!f)),
|
|
@@ -141,32 +141,32 @@ const L = ({ status: a, statusMessage: n }) => {
|
|
|
141
141
|
ellipsis: !0,
|
|
142
142
|
...u
|
|
143
143
|
};
|
|
144
|
-
return o ? /* @__PURE__ */ t.createElement(X, { testId: "expand", "aria-expanded": f, ...b }, /* @__PURE__ */ t.createElement("span", { id: N }, f ? d : c), /* @__PURE__ */ t.createElement(C, { svgIcon: f ? _e : pe })) : /* @__PURE__ */ t.createElement(X, { testId: "url", htmlMarkup: p, href:
|
|
144
|
+
return o ? /* @__PURE__ */ t.createElement(X, { testId: "expand", "aria-expanded": f, ...b }, /* @__PURE__ */ t.createElement("span", { id: N }, f ? d : c), /* @__PURE__ */ t.createElement(C, { svgIcon: f ? _e : pe })) : /* @__PURE__ */ t.createElement(X, { testId: "url", htmlMarkup: p, href: x, target: G, ...b }, /* @__PURE__ */ t.createElement("span", { id: N }, c), /* @__PURE__ */ t.createElement(C, { svgIcon: ue }));
|
|
145
145
|
}, le = () => {
|
|
146
146
|
if (!o || !q && !f)
|
|
147
147
|
return null;
|
|
148
148
|
const u = r(e["panel-details"], {
|
|
149
149
|
[e["panel-details--open"]]: f,
|
|
150
150
|
[e["panel-details--line"]]: E === "line",
|
|
151
|
-
[e["panel-details--white"]]: E === "white"
|
|
152
|
-
|
|
151
|
+
[e["panel-details--white"]]: E === "white"
|
|
152
|
+
/* white */
|
|
153
153
|
});
|
|
154
154
|
return /* @__PURE__ */ t.createElement("div", { className: u, "data-testid": "panel-details" }, /* @__PURE__ */ t.createElement("div", null, o));
|
|
155
155
|
}, re = () => {
|
|
156
156
|
const u = r(e["title-container"], {
|
|
157
|
-
[e["title-container--no-content-a"]]:
|
|
157
|
+
[e["title-container--no-content-a"]]: !M
|
|
158
158
|
}), b = r(e["title-container__title"], {
|
|
159
159
|
[e["title-container__title--badge"]]: j
|
|
160
160
|
});
|
|
161
|
-
return
|
|
162
|
-
},
|
|
163
|
-
contentA:
|
|
164
|
-
contentB:
|
|
161
|
+
return g && /* @__PURE__ */ t.createElement("div", { className: u }, /* @__PURE__ */ t.createElement(ye, { appearance: "title3", htmlMarkup: K, id: k, className: b }, g), j && /* @__PURE__ */ t.createElement("div", { className: e.panel__badge }, /* @__PURE__ */ t.createElement(ie, { color: "blueberry", testId: "badge-status" }, I)));
|
|
162
|
+
}, T = {
|
|
163
|
+
contentA: M,
|
|
164
|
+
contentB: $,
|
|
165
165
|
contentHeader: F,
|
|
166
166
|
ctaContainer: ae(),
|
|
167
|
-
icon:
|
|
167
|
+
icon: B,
|
|
168
168
|
status: _,
|
|
169
|
-
statusMessage:
|
|
169
|
+
statusMessage: I,
|
|
170
170
|
titleElement: re()
|
|
171
171
|
};
|
|
172
172
|
return /* @__PURE__ */ t.createElement(
|
|
@@ -178,7 +178,7 @@ const L = ({ status: a, statusMessage: n }) => {
|
|
|
178
178
|
className: ee,
|
|
179
179
|
"data-analyticsid": oe.Panel
|
|
180
180
|
},
|
|
181
|
-
/* @__PURE__ */ t.createElement("div", { className: te }, Y && /* @__PURE__ */ t.createElement(he, { ...
|
|
181
|
+
/* @__PURE__ */ t.createElement("div", { className: te }, Y && /* @__PURE__ */ t.createElement(he, { ...T }), Z && /* @__PURE__ */ t.createElement(we, { ...T }), V && /* @__PURE__ */ t.createElement(Ie, { ...T, layout: v })),
|
|
182
182
|
le()
|
|
183
183
|
);
|
|
184
184
|
}), Pe = ge;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.js","sources":["../../../src/components/Panel/Panel.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnchorTarget, AnalyticsId } from '../../constants';\nimport { useExpand } from '../../hooks/useExpand';\nimport { useUuid } from '../../hooks/useUuid';\nimport { palette } from '../../theme/palette';\nimport { AriaLabelAttributes, getAriaLabelAttributes } from '../../utils/accessibility';\nimport Badge from '../Badge';\nimport Button, { ButtonProps, ButtonTags } from '../Button';\nimport Icon, { IconSize, SvgPathProps } from '../Icon';\nimport AlertSignFill from '../Icons/AlertSignFill';\nimport ArrowRight from '../Icons/ArrowRight';\nimport Calendar from '../Icons/Calendar';\nimport ChevronDown from '../Icons/ChevronDown';\nimport ChevronUp from '../Icons/ChevronUp';\nimport Pencil from '../Icons/Pencil';\nimport Watch from '../Icons/Watch';\nimport Title, { TitleTags } from '../Title';\n\nimport panelStyles from './styles.module.scss';\n\nexport enum PanelStatus {\n normal = 'normal',\n new = 'new',\n error = 'error',\n draft = 'draft',\n}\n\nexport enum PanelVariant {\n fill = 'fill',\n white = 'white',\n stroke = 'stroke',\n line = 'line',\n}\n\nexport enum PanelLayout {\n layout1 = 'layout1',\n layout2 = 'layout2',\n layout3a = 'layout3a',\n layout3b = 'layout3b',\n layout3c = 'layout3c',\n}\n\nexport interface PanelProps {\n /** Adds custom classes to the element. */\n className?: string;\n /** Panel section A content */\n contentA?: React.ReactNode | string;\n /** Panel section B content */\n contentB?: React.ReactNode | string;\n /** Content for a container that renders above A and B regardless of layout */\n contentHeader?: React.ReactNode;\n /** Container acts as a button, clicking anywhere triggers a panel button click */\n containerAsButton?: boolean;\n /** Panel children */\n children?: React.ReactNode;\n /** Displays date with icon */\n date?: string;\n /** Expands or collapses the panel */\n expanded?: boolean;\n /** Whether the panel can be focused */\n focusable?: boolean;\n /** Icon displayed in title */\n icon?: React.ReactNode;\n /** Panel button text */\n buttonText?: string;\n /** Panel button close text */\n buttonTextClose?: string;\n /** HTML markup for panel button. Default: a */\n buttonHtmlMarkup?: ButtonTags;\n /** Callback when the panel button is clicked */\n buttonOnClick?: ButtonProps['onClick'];\n /** Panel button is aria-labelledby the text in the button itself + the element set in buttonAriaLabelledById. Default: auto-generated id for title (if title is set). */\n buttonAriaLabelledById?: string;\n /** Panel button aria label */\n buttonAriaLabel?: string;\n /** Layout of the panel */\n layout?: keyof typeof PanelLayout;\n /** Removes top border when variant is \"line\" */\n noTopBorder?: boolean;\n /** Called when the panel is opened/closed */\n onExpand?: (isExpanded: boolean) => void;\n /** Whether to render children when closed (in which case they are hidden with CSS). Default: false */\n renderChildrenWhenClosed?: boolean;\n /** Displays a status on the left side: default normal */\n status?: keyof typeof PanelStatus;\n /** Displayed on top of the panel with a status icon */\n statusMessage?: string;\n /** Sets the data-testid attribute for testing purposes */\n testId?: string;\n /** Displays time with icon */\n time?: string;\n /** Title of the panel */\n title?: string;\n /** Changes the underlying element of the title. Default: h2 */\n titleHtmlMarkup?: TitleTags;\n /** Changes the visual representation of the panel */\n variant?: keyof typeof PanelVariant;\n /** URL to details, renders as a button with anchor tag */\n url?: string;\n /** target used in the button: default is _self */\n target?: AnchorTarget;\n}\n\nexport interface LayoutProps\n extends Pick<PanelProps, 'contentA' | 'contentB' | 'contentHeader' | 'icon' | 'layout' | 'status' | 'statusMessage'> {\n ctaContainer?: React.ReactNode;\n titleElement: React.ReactNode;\n}\n\nconst StatusText: React.FC<{ status?: keyof typeof PanelStatus; statusMessage?: string }> = ({ status, statusMessage }) => {\n const statusIcon = (): { color: string; svgIcon: React.FC<SvgPathProps> } => {\n if (status === PanelStatus.error) {\n return { color: palette.cherry500, svgIcon: AlertSignFill };\n }\n\n return { color: palette.black, svgIcon: Pencil };\n };\n\n const statusMessageClass = classNames(panelStyles['status-message'], {\n [panelStyles['status-message--new']]: status === PanelStatus.new,\n });\n\n if ((status === PanelStatus.error || status === PanelStatus.draft) && statusMessage) {\n return (\n <div className={statusMessageClass} data-testid=\"display-status\">\n {<Icon {...statusIcon()} size={IconSize.XSmall} />} <span>{statusMessage}</span>\n </div>\n );\n }\n\n return null;\n};\n\nconst PreContainer: React.FC<{ children?: React.ReactNode }> = ({ children }) => {\n if (typeof children === 'undefined') return null;\n return <div className={panelStyles['header-container']}>{children}</div>;\n};\n\nconst DateTime: React.FC<{ date?: string; time?: string }> = ({ date, time }) => {\n if (date || time) {\n return (\n <div className={panelStyles['datetime-container']} data-testid=\"datetime\">\n {date && (\n <div className={panelStyles['datetime-container__icon']}>\n <Icon svgIcon={Calendar} size={IconSize.XSmall} />\n <span>{date}</span>\n </div>\n )}\n {time && (\n <div className={panelStyles['datetime-container__icon']}>\n <Icon svgIcon={Watch} size={IconSize.XSmall} />\n <span>{time}</span>\n </div>\n )}\n </div>\n );\n }\n\n return null;\n};\n\nconst PanelLayout1: React.FC<LayoutProps> = ({\n contentA,\n contentB,\n contentHeader,\n ctaContainer,\n icon,\n status,\n statusMessage,\n titleElement,\n}) => {\n const panelLayoutClasses = classNames(panelStyles['panel__layout-1'], {\n [panelStyles['panel__layout-1--with-icon']]: icon,\n });\n const iconClasses = classNames(panelStyles.panel__icon, panelStyles['panel__icon--layout-1'], {\n [panelStyles['panel__icon--no-content']]: !contentA && !contentB,\n });\n\n return (\n <div className={panelLayoutClasses}>\n <StatusText status={status} statusMessage={statusMessage} />\n <PreContainer>{contentHeader}</PreContainer>\n {icon && <div className={iconClasses}>{icon}</div>}\n <div className={panelStyles['panel__layout-1__content-a']}>\n {titleElement}\n {contentA}\n </div>\n {contentB && <div>{contentB}</div>}\n {ctaContainer}\n </div>\n );\n};\n\nconst PanelLayout2: React.FC<LayoutProps> = ({\n contentA,\n contentB,\n contentHeader,\n ctaContainer,\n icon,\n status,\n statusMessage,\n titleElement,\n}) => {\n const panelLayoutClasses = classNames(panelStyles['panel__layout-2'], {\n [panelStyles['panel__layout-2--with-icon']]: icon,\n });\n const iconClasses = classNames(panelStyles.panel__icon, panelStyles['panel__icon--layout-2'], {\n [panelStyles['panel__icon--no-content']]: !contentA && !contentB,\n });\n const lastColumnClass = panelStyles['panel__layout-2__last-column'];\n\n return (\n <div className={panelLayoutClasses}>\n <StatusText status={status} statusMessage={statusMessage} />\n <PreContainer>{contentHeader}</PreContainer>\n {icon && <div className={iconClasses}>{icon}</div>}\n <div className={panelStyles['panel__layout-2__content-a']}>\n {titleElement}\n {contentA}\n </div>\n {contentB && <div className={lastColumnClass}>{contentB}</div>}\n {ctaContainer && <div className={lastColumnClass}>{ctaContainer}</div>}\n </div>\n );\n};\n\nconst PanelLayout3: React.FC<LayoutProps> = ({\n contentA,\n contentB,\n contentHeader,\n ctaContainer,\n icon,\n layout,\n status,\n statusMessage,\n titleElement,\n}) => {\n const layoutClasses = classNames(panelStyles['panel__layout-3'], {\n [panelStyles['panel__layout-3--with-icon']]: icon,\n [panelStyles['panel__layout-3--a']]: layout === PanelLayout.layout3a,\n [panelStyles['panel__layout-3--b']]: layout === PanelLayout.layout3b,\n [panelStyles['panel__layout-3--c']]: layout === PanelLayout.layout3c,\n });\n const iconClasses = classNames(panelStyles.panel__icon, panelStyles['panel__icon--layout-3'], {\n [panelStyles['panel__icon--no-content']]: !contentA && !contentB,\n });\n\n return (\n <div className={layoutClasses}>\n <StatusText status={status} statusMessage={statusMessage} />\n <PreContainer>{contentHeader}</PreContainer>\n {icon && <div className={iconClasses}>{icon}</div>}\n <div>\n {titleElement}\n {contentA}\n </div>\n <div className={panelStyles['panel__layout-3__last-column']}>\n {contentB && <div className={panelStyles['panel__layout-3__last-column__content-b']}>{contentB}</div>}\n {ctaContainer}\n </div>\n </div>\n );\n};\n\nconst Panel = React.forwardRef(function PanelForwardedRef(props: PanelProps, ref: React.ForwardedRef<HTMLHeadingElement>) {\n const {\n buttonAriaLabel,\n buttonAriaLabelledById,\n buttonText = 'Se detaljer',\n buttonTextClose = 'Skjul detaljer',\n buttonHtmlMarkup = 'a',\n buttonOnClick,\n children,\n className,\n containerAsButton = false,\n contentA,\n contentB,\n contentHeader,\n date,\n expanded = false,\n focusable = false,\n icon,\n layout = PanelLayout.layout2,\n noTopBorder,\n onExpand,\n renderChildrenWhenClosed = false,\n status = PanelStatus.normal,\n statusMessage,\n target = '_self',\n testId,\n time,\n title,\n titleHtmlMarkup = 'h2',\n url,\n variant = PanelVariant.fill,\n } = props;\n\n const [isExpanded, setIsExpanded] = useExpand(expanded, onExpand);\n const titleId = useUuid();\n const buttonTextId = useUuid();\n const hasBadge = statusMessage && status === PanelStatus.new;\n const noContentB = typeof contentB === 'undefined';\n const layout1 = layout === 'layout1' || noContentB;\n const layout2 = !noContentB && layout === 'layout2';\n const layout3 = !noContentB && (layout === 'layout3a' || layout === 'layout3b' || layout === 'layout3c');\n const panelWrapperClasses = classNames(panelStyles['panel-wrapper'], className);\n\n const panelClasses = classNames(panelStyles.panel, {\n [panelStyles['panel--fill']]: variant === PanelVariant.fill,\n [panelStyles['panel--stroke']]: variant === PanelVariant.stroke,\n [panelStyles['panel--white']]: variant === PanelVariant.white,\n [panelStyles['panel--line']]: variant === PanelVariant.line,\n [panelStyles['panel--no-top-border']]: variant === PanelVariant.line && noTopBorder,\n [panelStyles['panel--selected']]: isExpanded,\n [panelStyles['panel--new']]: status === PanelStatus.new,\n [panelStyles['panel--draft']]: status === PanelStatus.draft,\n [panelStyles['panel--error']]: status === PanelStatus.error,\n [panelStyles['panel--status']]: status && status !== PanelStatus.normal,\n [panelStyles['panel--with-icon']]: icon,\n [panelStyles['panel--button']]: containerAsButton,\n [panelStyles['panel--clickable']]: children || url || onExpand || buttonOnClick || containerAsButton,\n });\n\n const renderCTAContainer = () => {\n const hasButton = children || url || buttonOnClick;\n const btnContainerClasses = classNames(panelStyles['panel__btn-container'], {\n [panelStyles['panel__btn-container--no-content-b']]: noContentB,\n [panelStyles['panel__btn-container--no-button']]: !hasButton,\n });\n\n return (\n (hasButton || date || time) && (\n <div className={btnContainerClasses}>\n {<DateTime date={date} time={time} />}\n {hasButton && <div className={panelStyles['panel__details-btn']}>{renderDetailsButton()}</div>}\n </div>\n )\n );\n };\n\n const renderDetailsButton = (): React.ReactNode => {\n const ariaLabelAttributes = getAriaLabelAttributes({\n label: buttonAriaLabel,\n id: (buttonAriaLabelledById && `${buttonTextId} ${buttonAriaLabelledById}`) || (title && titleId && `${buttonTextId} ${titleId}`),\n prefer: 'label',\n });\n\n const commonProps: Partial<ButtonProps> & AriaLabelAttributes = {\n onClick: buttonOnClick ? buttonOnClick : (): void => setIsExpanded(!isExpanded),\n className: containerAsButton ? panelStyles['panel__expand'] : undefined,\n variant: 'borderless',\n ellipsis: true,\n ...ariaLabelAttributes,\n };\n\n if (children) {\n return (\n <Button testId=\"expand\" aria-expanded={isExpanded} {...commonProps}>\n <span id={buttonTextId}>{isExpanded ? buttonTextClose : buttonText}</span>\n <Icon svgIcon={isExpanded ? ChevronUp : ChevronDown} />\n </Button>\n );\n }\n\n return (\n <Button testId=\"url\" htmlMarkup={buttonHtmlMarkup} href={url} target={target} {...commonProps}>\n <span id={buttonTextId}>{buttonText}</span>\n <Icon svgIcon={ArrowRight} />\n </Button>\n );\n };\n\n const renderContent = (): React.ReactNode | null => {\n if (!children || (!renderChildrenWhenClosed && !isExpanded)) {\n return null;\n }\n\n const panelDetailsClasses = classNames(panelStyles['panel-details'], {\n [panelStyles['panel-details--open']]: isExpanded,\n [panelStyles['panel-details--line']]: variant === PanelVariant.line,\n [panelStyles['panel-details--white']]: variant === PanelVariant.white,\n [panelStyles['panel-details--with-icon']]: icon,\n });\n\n return (\n <div className={panelDetailsClasses} data-testid=\"panel-details\">\n <div>{children}</div>\n </div>\n );\n };\n\n const renderTitle = () => {\n const titleContainerClasses = classNames(panelStyles['title-container'], {\n [panelStyles['title-container--no-content-a']]: !contentA,\n });\n const titleClasses = classNames(panelStyles['title-container__title'], {\n [panelStyles['title-container__title--badge']]: hasBadge,\n });\n\n return (\n title && (\n <div className={titleContainerClasses}>\n <Title appearance=\"title3\" htmlMarkup={titleHtmlMarkup} id={titleId} className={titleClasses}>\n {title}\n </Title>\n {hasBadge && (\n <div className={panelStyles.panel__badge}>\n <Badge color=\"blueberry\" testId=\"badge-status\">\n {statusMessage}\n </Badge>\n </div>\n )}\n </div>\n )\n );\n };\n\n const layoutProps: LayoutProps = {\n contentA: contentA,\n contentB: contentB,\n contentHeader: contentHeader,\n ctaContainer: renderCTAContainer(),\n icon: icon,\n status: status,\n statusMessage: statusMessage,\n titleElement: renderTitle(),\n };\n\n return (\n <div\n // eslint-disable-next-line no-constant-condition\n tabIndex={focusable ? -1 : undefined}\n ref={ref}\n data-testid={testId}\n className={panelWrapperClasses}\n data-analyticsid={AnalyticsId.Panel}\n >\n <div className={panelClasses}>\n {layout1 && <PanelLayout1 {...layoutProps} />}\n {layout2 && <PanelLayout2 {...layoutProps} />}\n {layout3 && <PanelLayout3 {...layoutProps} layout={layout} />}\n </div>\n {renderContent()}\n </div>\n );\n});\n\nexport default Panel;\n"],"names":["PanelStatus","PanelVariant","PanelLayout","StatusText","status","statusMessage","statusIcon","palette","AlertSignFill","Pencil","statusMessageClass","classNames","panelStyles","Icon","IconSize","React","PreContainer","children","DateTime","date","time","Calendar","Watch","PanelLayout1","contentA","contentB","contentHeader","ctaContainer","icon","titleElement","panelLayoutClasses","iconClasses","PanelLayout2","lastColumnClass","PanelLayout3","layout","layoutClasses","Panel","props","ref","buttonAriaLabel","buttonAriaLabelledById","buttonText","buttonTextClose","buttonHtmlMarkup","buttonOnClick","className","containerAsButton","expanded","focusable","noTopBorder","onExpand","renderChildrenWhenClosed","target","testId","title","titleHtmlMarkup","url","variant","isExpanded","setIsExpanded","useExpand","titleId","useUuid","buttonTextId","hasBadge","noContentB","layout1","layout2","layout3","panelWrapperClasses","panelClasses","renderCTAContainer","hasButton","btnContainerClasses","renderDetailsButton","ariaLabelAttributes","getAriaLabelAttributes","commonProps","Button","ChevronUp","ChevronDown","ArrowRight","renderContent","panelDetailsClasses","renderTitle","titleContainerClasses","titleClasses","Title","Badge","layoutProps","AnalyticsId","Panel$1"],"mappings":";;;;;;;;;;;;;;;;;;;AAuBY,IAAAA,uBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,MAAM,OACNA,EAAA,QAAQ,SACRA,EAAA,QAAQ,SAJEA,IAAAA,MAAA,CAAA,CAAA,GAOAC,uBAAAA,OACVA,EAAA,OAAO,QACPA,EAAA,QAAQ,SACRA,EAAA,SAAS,UACTA,EAAA,OAAO,QAJGA,IAAAA,MAAA,CAAA,CAAA,GAOAC,uBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,UAAU,WACVA,EAAA,WAAW,YACXA,EAAA,WAAW,YACXA,EAAA,WAAW,YALDA,IAAAA,MAAA,CAAA,CAAA;AA2EZ,MAAMC,IAAsF,CAAC,EAAE,QAAAC,GAAQ,eAAAC,QAAoB;AACzH,QAAMC,IAAa,MACbF,MAAW,UACN,EAAE,OAAOG,EAAQ,WAAW,SAASC,GAAc,IAGrD,EAAE,OAAOD,EAAQ,OAAO,SAASE,GAAO,GAG3CC,IAAqBC,EAAWC,EAAY,gBAAgB,GAAG;AAAA,IACnE,CAACA,EAAY,qBAAqB,CAAC,GAAGR,MAAW;AAAA;AAAA,EAAA,CAClD;AAED,UAAKA,MAAW,WAAqBA,MAAW,YAAsBC,oCAEjE,OAAI,EAAA,WAAWK,GAAoB,eAAY,iBAAA,mCAC5CG,GAAM,EAAA,GAAGP,KAAc,MAAMQ,EAAS,OAAQ,CAAA,GAAG,KAAEC,gBAAAA,EAAA,cAAA,QAAA,MAAMV,CAAc,CAC3E,IAIG;AACT,GAEMW,IAAyD,CAAC,EAAE,UAAAC,QAC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A,WAAWH,EAAY,gBAC1BG,gBAAAA,EAAA,cAAC0E,IAAM,EAAA,OAAM,aAAY,QAAO,eAC7B,GAAApF,CACH,CACF,CAEJ;AAAA,EAAA,GAKAqF,IAA2B;AAAA,IAC/B,UAAAlE;AAAA,IACA,UAAAC;AAAA,IACA,eAAAC;AAAA,IACA,cAAc8C,GAAmB;AAAA,IACjC,MAAA5C;AAAA,IACA,QAAAxB;AAAA,IACA,eAAAC;AAAA,IACA,cAAcgF,GAAY;AAAA,EAAA;AAI1B,SAAAtE,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MAEC,UAAUkC,IAAY,KAAK;AAAA,MAC3B,KAAAV;AAAA,MACA,eAAae;AAAA,MACb,WAAWgB;AAAA,MACX,oBAAkBqB,GAAY;AAAA,IAAA;AAAA,IAE9B5E,gBAAAA,EAAA,cAAC,SAAI,WAAWwD,GAAA,GACbJ,KAAYpD,gBAAAA,EAAA,cAAAQ,IAAA,EAAc,GAAGmE,EAAa,CAAA,GAC1CtB,qCAAYpC,IAAc,EAAA,GAAG0D,GAAa,GAC1CrB,qCAAYnC,IAAc,EAAA,GAAGwD,GAAa,QAAAvD,EAAgB,CAAA,CAC7D;AAAA,IACCgD,GAAc;AAAA,EAAA;AAGrB,CAAC,GAEDS,KAAevD;"}
|
|
1
|
+
{"version":3,"file":"Panel.js","sources":["../../../src/components/Panel/Panel.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnchorTarget, AnalyticsId } from '../../constants';\nimport { useExpand } from '../../hooks/useExpand';\nimport { useUuid } from '../../hooks/useUuid';\nimport { palette } from '../../theme/palette';\nimport { AriaLabelAttributes, getAriaLabelAttributes } from '../../utils/accessibility';\nimport Badge from '../Badge';\nimport Button, { ButtonProps, ButtonTags } from '../Button';\nimport Icon, { IconSize, SvgPathProps } from '../Icon';\nimport AlertSignFill from '../Icons/AlertSignFill';\nimport ArrowRight from '../Icons/ArrowRight';\nimport Calendar from '../Icons/Calendar';\nimport ChevronDown from '../Icons/ChevronDown';\nimport ChevronUp from '../Icons/ChevronUp';\nimport Pencil from '../Icons/Pencil';\nimport Watch from '../Icons/Watch';\nimport Title, { TitleTags } from '../Title';\n\nimport panelStyles from './styles.module.scss';\n\nexport enum PanelStatus {\n normal = 'normal',\n new = 'new',\n error = 'error',\n draft = 'draft',\n}\n\nexport enum PanelVariant {\n fill = 'fill',\n white = 'white',\n stroke = 'stroke',\n line = 'line',\n}\n\nexport enum PanelLayout {\n layout1 = 'layout1',\n layout2 = 'layout2',\n layout3a = 'layout3a',\n layout3b = 'layout3b',\n layout3c = 'layout3c',\n}\n\nexport interface PanelProps {\n /** Adds custom classes to the element. */\n className?: string;\n /** Panel section A content */\n contentA?: React.ReactNode | string;\n /** Panel section B content */\n contentB?: React.ReactNode | string;\n /** Content for a container that renders above A and B regardless of layout */\n contentHeader?: React.ReactNode;\n /** Container acts as a button, clicking anywhere triggers a panel button click */\n containerAsButton?: boolean;\n /** Panel children */\n children?: React.ReactNode;\n /** Displays date with icon */\n date?: string;\n /** Expands or collapses the panel */\n expanded?: boolean;\n /** Whether the panel can be focused */\n focusable?: boolean;\n /** Icon displayed in title */\n icon?: React.ReactNode;\n /** Panel button text */\n buttonText?: string;\n /** Panel button close text */\n buttonTextClose?: string;\n /** HTML markup for panel button. Default: a */\n buttonHtmlMarkup?: ButtonTags;\n /** Callback when the panel button is clicked */\n buttonOnClick?: ButtonProps['onClick'];\n /** Panel button is aria-labelledby the text in the button itself + the element set in buttonAriaLabelledById. Default: auto-generated id for title (if title is set). */\n buttonAriaLabelledById?: string;\n /** Panel button aria label */\n buttonAriaLabel?: string;\n /** Layout of the panel */\n layout?: keyof typeof PanelLayout;\n /** Removes top border when variant is \"line\" */\n noTopBorder?: boolean;\n /** Called when the panel is opened/closed */\n onExpand?: (isExpanded: boolean) => void;\n /** Whether to render children when closed (in which case they are hidden with CSS). Default: false */\n renderChildrenWhenClosed?: boolean;\n /** Displays a status on the left side: default normal */\n status?: keyof typeof PanelStatus;\n /** Displayed on top of the panel with a status icon */\n statusMessage?: string;\n /** Sets the data-testid attribute for testing purposes */\n testId?: string;\n /** Displays time with icon */\n time?: string;\n /** Title of the panel */\n title?: string;\n /** Changes the underlying element of the title. Default: h2 */\n titleHtmlMarkup?: TitleTags;\n /** Changes the visual representation of the panel */\n variant?: keyof typeof PanelVariant;\n /** URL to details, renders as a button with anchor tag */\n url?: string;\n /** target used in the button: default is _self */\n target?: AnchorTarget;\n}\n\nexport interface LayoutProps\n extends Pick<PanelProps, 'contentA' | 'contentB' | 'contentHeader' | 'icon' | 'layout' | 'status' | 'statusMessage'> {\n ctaContainer?: React.ReactNode;\n titleElement: React.ReactNode;\n}\n\nconst StatusText: React.FC<{ status?: keyof typeof PanelStatus; statusMessage?: string }> = ({ status, statusMessage }) => {\n const statusIcon = (): { color: string; svgIcon: React.FC<SvgPathProps> } => {\n if (status === PanelStatus.error) {\n return { color: palette.cherry500, svgIcon: AlertSignFill };\n }\n\n return { color: palette.black, svgIcon: Pencil };\n };\n\n const statusMessageClass = classNames(panelStyles['status-message'], {\n [panelStyles['status-message--new']]: status === PanelStatus.new,\n });\n\n if ((status === PanelStatus.error || status === PanelStatus.draft) && statusMessage) {\n return (\n <div className={statusMessageClass} data-testid=\"display-status\">\n {<Icon {...statusIcon()} size={IconSize.XSmall} />} <span>{statusMessage}</span>\n </div>\n );\n }\n\n return null;\n};\n\nconst PreContainer: React.FC<{ children?: React.ReactNode }> = ({ children }) => {\n if (typeof children === 'undefined') return null;\n return <div className={panelStyles['header-container']}>{children}</div>;\n};\n\nconst DateTime: React.FC<{ date?: string; time?: string }> = ({ date, time }) => {\n if (date || time) {\n return (\n <div className={panelStyles['datetime-container']} data-testid=\"datetime\">\n {date && (\n <div className={panelStyles['datetime-container__icon']}>\n <Icon svgIcon={Calendar} size={IconSize.XSmall} />\n <span>{date}</span>\n </div>\n )}\n {time && (\n <div className={panelStyles['datetime-container__icon']}>\n <Icon svgIcon={Watch} size={IconSize.XSmall} />\n <span>{time}</span>\n </div>\n )}\n </div>\n );\n }\n\n return null;\n};\n\nconst PanelLayout1: React.FC<LayoutProps> = ({\n contentA,\n contentB,\n contentHeader,\n ctaContainer,\n icon,\n status,\n statusMessage,\n titleElement,\n}) => {\n const panelLayoutClasses = classNames(panelStyles['panel__layout-1'], {\n [panelStyles['panel__layout-1--with-icon']]: icon,\n });\n const iconClasses = classNames(panelStyles.panel__icon, panelStyles['panel__icon--layout-1'], {\n [panelStyles['panel__icon--no-content']]: !contentA && !contentB,\n });\n\n return (\n <div className={panelLayoutClasses}>\n <StatusText status={status} statusMessage={statusMessage} />\n <PreContainer>{contentHeader}</PreContainer>\n {icon && <div className={iconClasses}>{icon}</div>}\n <div className={panelStyles['panel__layout-1__content-a']}>\n {titleElement}\n {contentA}\n </div>\n {contentB && <div>{contentB}</div>}\n {ctaContainer}\n </div>\n );\n};\n\nconst PanelLayout2: React.FC<LayoutProps> = ({\n contentA,\n contentB,\n contentHeader,\n ctaContainer,\n icon,\n status,\n statusMessage,\n titleElement,\n}) => {\n const panelLayoutClasses = classNames(panelStyles['panel__layout-2'], {\n [panelStyles['panel__layout-2--with-icon']]: icon,\n });\n const iconClasses = classNames(panelStyles.panel__icon, panelStyles['panel__icon--layout-2'], {\n [panelStyles['panel__icon--no-content']]: !contentA && !contentB,\n });\n const lastColumnClass = panelStyles['panel__layout-2__last-column'];\n\n return (\n <div className={panelLayoutClasses}>\n <StatusText status={status} statusMessage={statusMessage} />\n <PreContainer>{contentHeader}</PreContainer>\n {icon && <div className={iconClasses}>{icon}</div>}\n <div className={panelStyles['panel__layout-2__content-a']}>\n {titleElement}\n {contentA}\n </div>\n {contentB && <div className={lastColumnClass}>{contentB}</div>}\n {ctaContainer && <div className={lastColumnClass}>{ctaContainer}</div>}\n </div>\n );\n};\n\nconst PanelLayout3: React.FC<LayoutProps> = ({\n contentA,\n contentB,\n contentHeader,\n ctaContainer,\n icon,\n layout,\n status,\n statusMessage,\n titleElement,\n}) => {\n const layoutClasses = classNames(panelStyles['panel__layout-3'], {\n [panelStyles['panel__layout-3--with-icon']]: icon,\n [panelStyles['panel__layout-3--a']]: layout === PanelLayout.layout3a,\n [panelStyles['panel__layout-3--b']]: layout === PanelLayout.layout3b,\n [panelStyles['panel__layout-3--c']]: layout === PanelLayout.layout3c,\n });\n const iconClasses = classNames(panelStyles.panel__icon, panelStyles['panel__icon--layout-3'], {\n [panelStyles['panel__icon--no-content']]: !contentA && !contentB,\n });\n\n return (\n <div className={layoutClasses}>\n <StatusText status={status} statusMessage={statusMessage} />\n <PreContainer>{contentHeader}</PreContainer>\n {icon && <div className={iconClasses}>{icon}</div>}\n <div>\n {titleElement}\n {contentA}\n </div>\n <div className={panelStyles['panel__layout-3__last-column']}>\n {contentB && <div className={panelStyles['panel__layout-3__last-column__content-b']}>{contentB}</div>}\n {ctaContainer}\n </div>\n </div>\n );\n};\n\nconst Panel = React.forwardRef(function PanelForwardedRef(props: PanelProps, ref: React.ForwardedRef<HTMLHeadingElement>) {\n const {\n buttonAriaLabel,\n buttonAriaLabelledById,\n buttonText = 'Se detaljer',\n buttonTextClose = 'Skjul detaljer',\n buttonHtmlMarkup = 'a',\n buttonOnClick,\n children,\n className,\n containerAsButton = false,\n contentA,\n contentB,\n contentHeader,\n date,\n expanded = false,\n focusable = false,\n icon,\n layout = PanelLayout.layout2,\n noTopBorder,\n onExpand,\n renderChildrenWhenClosed = false,\n status = PanelStatus.normal,\n statusMessage,\n target = '_self',\n testId,\n time,\n title,\n titleHtmlMarkup = 'h2',\n url,\n variant = PanelVariant.fill,\n } = props;\n\n const [isExpanded, setIsExpanded] = useExpand(expanded, onExpand);\n const titleId = useUuid();\n const buttonTextId = useUuid();\n const hasBadge = statusMessage && status === PanelStatus.new;\n const noContentB = typeof contentB === 'undefined';\n const layout1 = layout === 'layout1' || noContentB;\n const layout2 = !noContentB && layout === 'layout2';\n const layout3 = !noContentB && (layout === 'layout3a' || layout === 'layout3b' || layout === 'layout3c');\n const panelWrapperClasses = classNames(panelStyles['panel-wrapper'], className);\n\n const panelClasses = classNames(panelStyles.panel, {\n [panelStyles['panel--fill']]: variant === PanelVariant.fill,\n [panelStyles['panel--stroke']]: variant === PanelVariant.stroke,\n [panelStyles['panel--white']]: variant === PanelVariant.white,\n [panelStyles['panel--line']]: variant === PanelVariant.line,\n [panelStyles['panel--no-top-border']]: variant === PanelVariant.line && noTopBorder,\n [panelStyles['panel--selected']]: isExpanded,\n [panelStyles['panel--new']]: status === PanelStatus.new,\n [panelStyles['panel--draft']]: status === PanelStatus.draft,\n [panelStyles['panel--error']]: status === PanelStatus.error,\n [panelStyles['panel--status']]: status && status !== PanelStatus.normal,\n [panelStyles['panel--with-icon']]: icon,\n [panelStyles['panel--button']]: containerAsButton,\n [panelStyles['panel--clickable']]: children || url || onExpand || buttonOnClick || containerAsButton,\n });\n\n const renderCTAContainer = () => {\n const hasButton = children || url || buttonOnClick;\n const btnContainerClasses = classNames(panelStyles['panel__btn-container'], {\n [panelStyles['panel__btn-container--no-content-b']]: noContentB,\n [panelStyles['panel__btn-container--no-button']]: !hasButton,\n });\n\n return (\n (hasButton || date || time) && (\n <div className={btnContainerClasses}>\n {<DateTime date={date} time={time} />}\n {hasButton && <div className={panelStyles['panel__details-btn']}>{renderDetailsButton()}</div>}\n </div>\n )\n );\n };\n\n const renderDetailsButton = (): React.ReactNode => {\n const ariaLabelAttributes = getAriaLabelAttributes({\n label: buttonAriaLabel,\n id: (buttonAriaLabelledById && `${buttonTextId} ${buttonAriaLabelledById}`) || (title && titleId && `${buttonTextId} ${titleId}`),\n prefer: 'label',\n });\n\n const commonProps: Partial<ButtonProps> & AriaLabelAttributes = {\n onClick: buttonOnClick ? buttonOnClick : (): void => setIsExpanded(!isExpanded),\n className: containerAsButton ? panelStyles['panel__expand'] : undefined,\n variant: 'borderless',\n ellipsis: true,\n ...ariaLabelAttributes,\n };\n\n if (children) {\n return (\n <Button testId=\"expand\" aria-expanded={isExpanded} {...commonProps}>\n <span id={buttonTextId}>{isExpanded ? buttonTextClose : buttonText}</span>\n <Icon svgIcon={isExpanded ? ChevronUp : ChevronDown} />\n </Button>\n );\n }\n\n return (\n <Button testId=\"url\" htmlMarkup={buttonHtmlMarkup} href={url} target={target} {...commonProps}>\n <span id={buttonTextId}>{buttonText}</span>\n <Icon svgIcon={ArrowRight} />\n </Button>\n );\n };\n\n const renderContent = (): React.ReactNode | null => {\n if (!children || (!renderChildrenWhenClosed && !isExpanded)) {\n return null;\n }\n\n const panelDetailsClasses = classNames(panelStyles['panel-details'], {\n [panelStyles['panel-details--open']]: isExpanded,\n [panelStyles['panel-details--line']]: variant === PanelVariant.line,\n [panelStyles['panel-details--white']]: variant === PanelVariant.white,\n });\n\n return (\n <div className={panelDetailsClasses} data-testid=\"panel-details\">\n <div>{children}</div>\n </div>\n );\n };\n\n const renderTitle = () => {\n const titleContainerClasses = classNames(panelStyles['title-container'], {\n [panelStyles['title-container--no-content-a']]: !contentA,\n });\n const titleClasses = classNames(panelStyles['title-container__title'], {\n [panelStyles['title-container__title--badge']]: hasBadge,\n });\n\n return (\n title && (\n <div className={titleContainerClasses}>\n <Title appearance=\"title3\" htmlMarkup={titleHtmlMarkup} id={titleId} className={titleClasses}>\n {title}\n </Title>\n {hasBadge && (\n <div className={panelStyles.panel__badge}>\n <Badge color=\"blueberry\" testId=\"badge-status\">\n {statusMessage}\n </Badge>\n </div>\n )}\n </div>\n )\n );\n };\n\n const layoutProps: LayoutProps = {\n contentA: contentA,\n contentB: contentB,\n contentHeader: contentHeader,\n ctaContainer: renderCTAContainer(),\n icon: icon,\n status: status,\n statusMessage: statusMessage,\n titleElement: renderTitle(),\n };\n\n return (\n <div\n // eslint-disable-next-line no-constant-condition\n tabIndex={focusable ? -1 : undefined}\n ref={ref}\n data-testid={testId}\n className={panelWrapperClasses}\n data-analyticsid={AnalyticsId.Panel}\n >\n <div className={panelClasses}>\n {layout1 && <PanelLayout1 {...layoutProps} />}\n {layout2 && <PanelLayout2 {...layoutProps} />}\n {layout3 && <PanelLayout3 {...layoutProps} layout={layout} />}\n </div>\n {renderContent()}\n </div>\n );\n});\n\nexport default Panel;\n"],"names":["PanelStatus","PanelVariant","PanelLayout","StatusText","status","statusMessage","statusIcon","palette","AlertSignFill","Pencil","statusMessageClass","classNames","panelStyles","Icon","IconSize","React","PreContainer","children","DateTime","date","time","Calendar","Watch","PanelLayout1","contentA","contentB","contentHeader","ctaContainer","icon","titleElement","panelLayoutClasses","iconClasses","PanelLayout2","lastColumnClass","PanelLayout3","layout","layoutClasses","Panel","props","ref","buttonAriaLabel","buttonAriaLabelledById","buttonText","buttonTextClose","buttonHtmlMarkup","buttonOnClick","className","containerAsButton","expanded","focusable","noTopBorder","onExpand","renderChildrenWhenClosed","target","testId","title","titleHtmlMarkup","url","variant","isExpanded","setIsExpanded","useExpand","titleId","useUuid","buttonTextId","hasBadge","noContentB","layout1","layout2","layout3","panelWrapperClasses","panelClasses","renderCTAContainer","hasButton","btnContainerClasses","renderDetailsButton","ariaLabelAttributes","getAriaLabelAttributes","commonProps","Button","ChevronUp","ChevronDown","ArrowRight","renderContent","panelDetailsClasses","renderTitle","titleContainerClasses","titleClasses","Title","Badge","layoutProps","AnalyticsId","Panel$1"],"mappings":";;;;;;;;;;;;;;;;;;;AAuBY,IAAAA,uBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,MAAM,OACNA,EAAA,QAAQ,SACRA,EAAA,QAAQ,SAJEA,IAAAA,MAAA,CAAA,CAAA,GAOAC,uBAAAA,OACVA,EAAA,OAAO,QACPA,EAAA,QAAQ,SACRA,EAAA,SAAS,UACTA,EAAA,OAAO,QAJGA,IAAAA,MAAA,CAAA,CAAA,GAOAC,uBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,UAAU,WACVA,EAAA,WAAW,YACXA,EAAA,WAAW,YACXA,EAAA,WAAW,YALDA,IAAAA,MAAA,CAAA,CAAA;AA2EZ,MAAMC,IAAsF,CAAC,EAAE,QAAAC,GAAQ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