@helsenorge/designsystem-react 9.4.0 → 9.4.3
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/AnchorLink.js +47 -42
- package/AnchorLink.js.map +1 -1
- package/Avatar.js +31 -26
- package/Avatar.js.map +1 -1
- package/Badge.js +28 -24
- package/Badge.js.map +1 -1
- package/Button.js +158 -113
- package/Button.js.map +1 -1
- package/CHANGELOG.md +29 -0
- package/Checkbox.js +130 -106
- package/Checkbox.js.map +1 -1
- package/Close.js +26 -22
- package/Close.js.map +1 -1
- package/ErrorBoundary.js +22 -16
- package/ErrorBoundary.js.map +1 -1
- package/ErrorWrapper.js +9 -9
- package/ErrorWrapper.js.map +1 -1
- package/Expander.js +110 -91
- package/Expander.js.map +1 -1
- package/FormGroup.js +121 -108
- package/FormGroup.js.map +1 -1
- package/FormLayout.js +38 -26
- package/FormLayout.js.map +1 -1
- package/HelpBubble.js +64 -54
- package/HelpBubble.js.map +1 -1
- package/HighlightPanel.js +86 -60
- package/HighlightPanel.js.map +1 -1
- package/HorizontalScroll.js +39 -29
- package/HorizontalScroll.js.map +1 -1
- package/Icon.js +62 -50
- package/Icon.js.map +1 -1
- package/Illustration.js +40 -32
- package/Illustration.js.map +1 -1
- package/Input.js +187 -129
- package/Input.js.map +1 -1
- package/Label.js +117 -97
- package/Label.js.map +1 -1
- package/LazyIcon.js +21 -18
- package/LazyIcon.js.map +1 -1
- package/LazyIllustration.js +26 -22
- package/LazyIllustration.js.map +1 -1
- package/LinkList.js +54 -49
- package/LinkList.js.map +1 -1
- package/List.js +11 -9
- package/List.js.map +1 -1
- package/ListHeader.js +109 -76
- package/ListHeader.js.map +1 -1
- package/ListHeaderText.js +31 -27
- package/ListHeaderText.js.map +1 -1
- package/MaxCharacters.js +13 -11
- package/MaxCharacters.js.map +1 -1
- package/NotificationBadge.js +47 -47
- package/NotificationBadge.js.map +1 -1
- package/Panel.js +285 -215
- package/Panel.js.map +1 -1
- package/PopOver.js +187 -71
- package/PopOver.js.map +1 -1
- package/RadioButton.js +104 -87
- package/RadioButton.js.map +1 -1
- package/Select.js +87 -70
- package/Select.js.map +1 -1
- package/Slider.js +252 -165
- package/Slider.js.map +1 -1
- package/Spacer.js +25 -24
- package/Spacer.js.map +1 -1
- package/StatusDot.js +58 -25
- package/StatusDot.js.map +1 -1
- package/StepButtons.js +28 -24
- package/StepButtons.js.map +1 -1
- package/TabList.js +102 -69
- package/TabList.js.map +1 -1
- package/TabPanel.js +12 -14
- package/TabPanel.js.map +1 -1
- package/Table.js +139 -72
- package/Table.js.map +1 -1
- package/TableBody.js +9 -9
- package/TableBody.js.map +1 -1
- package/TableCell.js +29 -24
- package/TableCell.js.map +1 -1
- package/TableExpandedRow.js +32 -30
- package/TableExpandedRow.js.map +1 -1
- package/TableExpanderCell.js +25 -24
- package/TableExpanderCell.js.map +1 -1
- package/TableHead.js +22 -17
- package/TableHead.js.map +1 -1
- package/TableHeadCell.js +40 -32
- package/TableHeadCell.js.map +1 -1
- package/TableRow.js +48 -47
- package/TableRow.js.map +1 -1
- package/Textarea.js +133 -96
- package/Textarea.js.map +1 -1
- package/Title.js +26 -20
- package/Title.js.map +1 -1
- package/TooltipWord.js +20 -20
- package/TooltipWord.js.map +1 -1
- package/Trigger.js +76 -59
- package/Trigger.js.map +1 -1
- package/__mocks__/IntersectionObserver.js +3 -3
- package/__mocks__/IntersectionObserver.js.map +1 -1
- package/__mocks__/MutationObserver.js +3 -3
- package/__mocks__/MutationObserver.js.map +1 -1
- package/__mocks__/ResizeObserver.js +3 -3
- package/__mocks__/ResizeObserver.js.map +1 -1
- package/__mocks__/matchMedia.d.ts +1 -1
- package/__mocks__/matchMedia.js +9 -9
- package/__mocks__/matchMedia.js.map +1 -1
- package/__mocks__/useHover.js +3 -1
- package/__mocks__/useHover.js.map +1 -1
- package/__mocks__/usePseudoClasses.js +3 -1
- package/__mocks__/usePseudoClasses.js.map +1 -1
- package/__mocks__/useSize.js.map +1 -1
- package/__mocks__/uuid.js +6 -3
- package/__mocks__/uuid.js.map +1 -1
- package/components/AnchorLink/AnchorLink.d.ts +1 -1
- package/components/AnchorLink/index.d.ts +1 -1
- package/components/AnchorLink/index.js +2 -2
- package/components/Avatar/Avatar.d.ts +1 -1
- package/components/Avatar/index.d.ts +1 -1
- package/components/Avatar/index.js +4 -4
- package/components/Badge/Badge.d.ts +1 -1
- package/components/Badge/NotificationBadge.d.ts +1 -1
- package/components/Badge/index.d.ts +1 -1
- package/components/Badge/index.js +2 -2
- package/components/Button/Button.d.ts +1 -1
- package/components/Button/index.d.ts +1 -1
- package/components/Button/index.js +2 -2
- package/components/Checkbox/Checkbox.d.ts +1 -1
- package/components/Checkbox/index.d.ts +1 -1
- package/components/Checkbox/index.js +3 -3
- package/components/Chip/Chip.d.ts +1 -1
- package/components/Chip/index.d.ts +1 -1
- package/components/Chip/index.js +42 -24
- package/components/Chip/index.js.map +1 -1
- package/components/Close/Close.d.ts +1 -1
- package/components/Close/index.d.ts +1 -1
- package/components/Close/index.js +2 -2
- package/components/DictionaryTrigger/DictionaryTrigger.d.ts +1 -1
- package/components/DictionaryTrigger/index.d.ts +1 -1
- package/components/DictionaryTrigger/index.js +18 -18
- package/components/DictionaryTrigger/index.js.map +1 -1
- package/components/Dropdown/Dropdown.d.ts +1 -1
- package/components/Dropdown/Dropdown.test.d.ts +0 -1
- package/components/Dropdown/index.d.ts +1 -1
- package/components/Dropdown/index.js +134 -97
- package/components/Dropdown/index.js.map +1 -1
- package/components/Duolist/Duolist.d.ts +1 -1
- package/components/Duolist/index.d.ts +1 -1
- package/components/Duolist/index.js +77 -58
- package/components/Duolist/index.js.map +1 -1
- package/components/EmptyState/EmptyState.d.ts +1 -1
- package/components/EmptyState/index.d.ts +1 -1
- package/components/EmptyState/index.js +30 -29
- package/components/EmptyState/index.js.map +1 -1
- package/components/ErrorWrapper/ErrorWrapper.d.ts +1 -1
- package/components/ErrorWrapper/index.d.ts +1 -1
- package/components/ErrorWrapper/index.js +3 -3
- package/components/Expander/Expander.d.ts +1 -1
- package/components/Expander/index.d.ts +1 -1
- package/components/Expander/index.js +4 -4
- package/components/Expander/styles.module.scss +11 -2
- package/components/Expander/styles.module.scss.d.ts +2 -1
- package/components/ExpanderHierarchy/Expander.d.ts +1 -1
- package/components/ExpanderHierarchy/ExpanderButton.d.ts +1 -1
- package/components/ExpanderHierarchy/ExpanderHierarchy.d.ts +1 -1
- package/components/ExpanderHierarchy/index.d.ts +1 -1
- package/components/ExpanderHierarchy/index.js +82 -73
- package/components/ExpanderHierarchy/index.js.map +1 -1
- package/components/ExpanderList/ExpanderList.d.ts +1 -1
- package/components/ExpanderList/ExpanderList.test.d.ts +0 -1
- package/components/ExpanderList/index.d.ts +1 -1
- package/components/ExpanderList/index.js +143 -113
- package/components/ExpanderList/index.js.map +1 -1
- package/components/EyebrowHeader/EyebrowHeader.d.ts +2 -2
- package/components/EyebrowHeader/index.d.ts +1 -1
- package/components/EyebrowHeader/index.js +12 -9
- package/components/EyebrowHeader/index.js.map +1 -1
- package/components/FormGroup/FormGroup.d.ts +1 -1
- package/components/FormGroup/index.d.ts +1 -1
- package/components/FormGroup/index.js +3 -3
- package/components/FormLayout/FormLayout.d.ts +1 -1
- package/components/FormLayout/index.d.ts +1 -1
- package/components/FormLayout/index.js +5 -5
- package/components/HelpBubble/HelpBubble.d.ts +1 -1
- package/components/HelpBubble/index.d.ts +1 -1
- package/components/HelpBubble/index.js +4 -4
- package/components/HelpPanel/HelpPanel.d.ts +1 -1
- package/components/HelpPanel/index.d.ts +1 -1
- package/components/HelpPanel/index.js +20 -18
- package/components/HelpPanel/index.js.map +1 -1
- package/components/HelpQuestion/HelpQuestion.d.ts +1 -1
- package/components/HelpQuestion/index.d.ts +1 -1
- package/components/HelpQuestion/index.js +23 -22
- package/components/HelpQuestion/index.js.map +1 -1
- package/components/HighlightPanel/HighlightPanel.d.ts +1 -1
- package/components/HighlightPanel/index.d.ts +1 -1
- package/components/HighlightPanel/index.js +4 -4
- package/components/HorizontalScroll/HorizontalScroll.d.ts +1 -1
- package/components/HorizontalScroll/index.d.ts +1 -1
- package/components/HorizontalScroll/index.js +3 -3
- package/components/Icon/Icon.d.ts +1 -1
- package/components/Icon/index.d.ts +1 -1
- package/components/Icon/index.js +7 -7
- package/components/Icons/ActiveMonitoring.d.ts +1 -1
- package/components/Icons/ActiveMonitoring.js +19 -15
- package/components/Icons/ActiveMonitoring.js.map +1 -1
- package/components/Icons/AcupunctureBack.d.ts +1 -1
- package/components/Icons/AcupunctureBack.js +9 -8
- package/components/Icons/AcupunctureBack.js.map +1 -1
- package/components/Icons/AdditionalIconInformation.js +2 -2
- package/components/Icons/AdditionalIconInformation.js.map +1 -1
- package/components/Icons/AlarmClock.d.ts +1 -1
- package/components/Icons/AlarmClock.js +32 -26
- package/components/Icons/AlarmClock.js.map +1 -1
- package/components/Icons/AlertSignFill.d.ts +1 -1
- package/components/Icons/AlertSignFill.js +10 -4
- package/components/Icons/AlertSignFill.js.map +1 -1
- package/components/Icons/AlertSignStroke.d.ts +1 -1
- package/components/Icons/AlertSignStroke.js +10 -4
- package/components/Icons/AlertSignStroke.js.map +1 -1
- package/components/Icons/Amputation.d.ts +1 -1
- package/components/Icons/Amputation.js +7 -3
- package/components/Icons/Amputation.js.map +1 -1
- package/components/Icons/Anxiety.d.ts +1 -1
- package/components/Icons/Anxiety.js +7 -3
- package/components/Icons/Anxiety.js.map +1 -1
- package/components/Icons/Apple.d.ts +1 -1
- package/components/Icons/Apple.js +7 -3
- package/components/Icons/Apple.js.map +1 -1
- package/components/Icons/Archive.d.ts +1 -1
- package/components/Icons/Archive.js +34 -28
- package/components/Icons/Archive.js.map +1 -1
- package/components/Icons/ArmFlexing.d.ts +1 -1
- package/components/Icons/ArmFlexing.js +7 -3
- package/components/Icons/ArmFlexing.js.map +1 -1
- package/components/Icons/ArrowDown.d.ts +1 -1
- package/components/Icons/ArrowDown.js +34 -28
- package/components/Icons/ArrowDown.js.map +1 -1
- package/components/Icons/ArrowLeft.d.ts +1 -1
- package/components/Icons/ArrowLeft.js +10 -4
- package/components/Icons/ArrowLeft.js.map +1 -1
- package/components/Icons/ArrowRight.d.ts +1 -1
- package/components/Icons/ArrowRight.js +10 -4
- package/components/Icons/ArrowRight.js.map +1 -1
- package/components/Icons/ArrowUp.d.ts +1 -1
- package/components/Icons/ArrowUp.js +34 -28
- package/components/Icons/ArrowUp.js.map +1 -1
- package/components/Icons/ArrowUpRight.d.ts +1 -1
- package/components/Icons/ArrowUpRight.js +10 -4
- package/components/Icons/ArrowUpRight.js.map +1 -1
- package/components/Icons/Attachment.d.ts +1 -1
- package/components/Icons/Attachment.js +12 -4
- package/components/Icons/Attachment.js.map +1 -1
- package/components/Icons/Atv.d.ts +1 -1
- package/components/Icons/Atv.js +7 -3
- package/components/Icons/Atv.js.map +1 -1
- package/components/Icons/Avatar.d.ts +1 -1
- package/components/Icons/Avatar.js +10 -4
- package/components/Icons/Avatar.js.map +1 -1
- package/components/Icons/AwakePersonOnPillow.d.ts +1 -1
- package/components/Icons/AwakePersonOnPillow.js +7 -3
- package/components/Icons/AwakePersonOnPillow.js.map +1 -1
- package/components/Icons/Baby.d.ts +1 -1
- package/components/Icons/Baby.js +7 -3
- package/components/Icons/Baby.js.map +1 -1
- package/components/Icons/BandAid.d.ts +1 -1
- package/components/Icons/BandAid.js +7 -3
- package/components/Icons/BandAid.js.map +1 -1
- package/components/Icons/BeerAndPills.d.ts +1 -1
- package/components/Icons/BeerAndPills.js +19 -15
- package/components/Icons/BeerAndPills.js.map +1 -1
- package/components/Icons/Bell.d.ts +1 -1
- package/components/Icons/Bell.js +7 -3
- package/components/Icons/Bell.js.map +1 -1
- package/components/Icons/Bike.d.ts +1 -1
- package/components/Icons/Bike.js +7 -3
- package/components/Icons/Bike.js.map +1 -1
- package/components/Icons/BirthControl.d.ts +1 -1
- package/components/Icons/BirthControl.js +19 -15
- package/components/Icons/BirthControl.js.map +1 -1
- package/components/Icons/BirthdayCake.d.ts +1 -1
- package/components/Icons/BirthdayCake.js +7 -3
- package/components/Icons/BirthdayCake.js.map +1 -1
- package/components/Icons/Boat.d.ts +1 -1
- package/components/Icons/Boat.js +7 -3
- package/components/Icons/Boat.js.map +1 -1
- package/components/Icons/Body.d.ts +1 -1
- package/components/Icons/Body.js +19 -15
- package/components/Icons/Body.js.map +1 -1
- package/components/Icons/Braille.d.ts +1 -1
- package/components/Icons/Braille.js +8 -4
- package/components/Icons/Braille.js.map +1 -1
- package/components/Icons/Brain.d.ts +1 -1
- package/components/Icons/Brain.js +7 -3
- package/components/Icons/Brain.js.map +1 -1
- package/components/Icons/BreastReconstruction.d.ts +1 -1
- package/components/Icons/BreastReconstruction.js +19 -15
- package/components/Icons/BreastReconstruction.js.map +1 -1
- package/components/Icons/BreastRemoval.d.ts +1 -1
- package/components/Icons/BreastRemoval.js +19 -15
- package/components/Icons/BreastRemoval.js.map +1 -1
- package/components/Icons/Breasts.d.ts +1 -1
- package/components/Icons/Breasts.js +7 -3
- package/components/Icons/Breasts.js.map +1 -1
- package/components/Icons/BrokenHeart.d.ts +1 -1
- package/components/Icons/BrokenHeart.js +7 -3
- package/components/Icons/BrokenHeart.js.map +1 -1
- package/components/Icons/BrokenPuzzle.d.ts +1 -1
- package/components/Icons/BrokenPuzzle.js +7 -3
- package/components/Icons/BrokenPuzzle.js.map +1 -1
- package/components/Icons/Bus.d.ts +1 -1
- package/components/Icons/Bus.js +29 -23
- package/components/Icons/Bus.js.map +1 -1
- package/components/Icons/Calendar.d.ts +1 -1
- package/components/Icons/Calendar.js +34 -28
- package/components/Icons/Calendar.js.map +1 -1
- package/components/Icons/CalendarChange.d.ts +1 -1
- package/components/Icons/CalendarChange.js +34 -28
- package/components/Icons/CalendarChange.js.map +1 -1
- package/components/Icons/CalendarCheck.d.ts +1 -1
- package/components/Icons/CalendarCheck.js +34 -28
- package/components/Icons/CalendarCheck.js.map +1 -1
- package/components/Icons/CalendarEvent.d.ts +1 -1
- package/components/Icons/CalendarEvent.js +7 -3
- package/components/Icons/CalendarEvent.js.map +1 -1
- package/components/Icons/CalendarSave.d.ts +1 -1
- package/components/Icons/CalendarSave.js +10 -4
- package/components/Icons/CalendarSave.js.map +1 -1
- package/components/Icons/Cancer.d.ts +1 -1
- package/components/Icons/Cancer.js +21 -17
- package/components/Icons/Cancer.js.map +1 -1
- package/components/Icons/Candle.d.ts +1 -1
- package/components/Icons/Candle.js +20 -16
- package/components/Icons/Candle.js.map +1 -1
- package/components/Icons/Car.d.ts +1 -1
- package/components/Icons/Car.js +7 -3
- package/components/Icons/Car.js.map +1 -1
- package/components/Icons/Carton.d.ts +1 -1
- package/components/Icons/Carton.js +39 -35
- package/components/Icons/Carton.js.map +1 -1
- package/components/Icons/Change.d.ts +1 -1
- package/components/Icons/Change.js +42 -34
- package/components/Icons/Change.js.map +1 -1
- package/components/Icons/Check.d.ts +1 -1
- package/components/Icons/Check.js +10 -4
- package/components/Icons/Check.js.map +1 -1
- package/components/Icons/CheckFill.d.ts +1 -1
- package/components/Icons/CheckFill.js +34 -28
- package/components/Icons/CheckFill.js.map +1 -1
- package/components/Icons/CheckOutline.d.ts +1 -1
- package/components/Icons/CheckOutline.js +19 -15
- package/components/Icons/CheckOutline.js.map +1 -1
- package/components/Icons/Chest.d.ts +1 -1
- package/components/Icons/Chest.js +7 -3
- package/components/Icons/Chest.js.map +1 -1
- package/components/Icons/ChevronDown.d.ts +1 -1
- package/components/Icons/ChevronDown.js +10 -4
- package/components/Icons/ChevronDown.js.map +1 -1
- package/components/Icons/ChevronLeft.d.ts +1 -1
- package/components/Icons/ChevronLeft.js +10 -4
- package/components/Icons/ChevronLeft.js.map +1 -1
- package/components/Icons/ChevronRight.d.ts +1 -1
- package/components/Icons/ChevronRight.js +10 -4
- package/components/Icons/ChevronRight.js.map +1 -1
- package/components/Icons/ChevronUp.d.ts +1 -1
- package/components/Icons/ChevronUp.js +10 -4
- package/components/Icons/ChevronUp.js.map +1 -1
- package/components/Icons/ChevronsDown.d.ts +1 -1
- package/components/Icons/ChevronsDown.js +34 -28
- package/components/Icons/ChevronsDown.js.map +1 -1
- package/components/Icons/ChevronsUp.d.ts +1 -1
- package/components/Icons/ChevronsUp.js +34 -28
- package/components/Icons/ChevronsUp.js.map +1 -1
- package/components/Icons/ChildPlaying.d.ts +1 -1
- package/components/Icons/ChildPlaying.js +13 -9
- package/components/Icons/ChildPlaying.js.map +1 -1
- package/components/Icons/Cigarette.d.ts +1 -1
- package/components/Icons/Cigarette.js +7 -3
- package/components/Icons/Cigarette.js.map +1 -1
- package/components/Icons/Coins.d.ts +1 -1
- package/components/Icons/Coins.js +19 -15
- package/components/Icons/Coins.js.map +1 -1
- package/components/Icons/Contacts.d.ts +1 -1
- package/components/Icons/Contacts.js +10 -4
- package/components/Icons/Contacts.js.map +1 -1
- package/components/Icons/Copy.d.ts +1 -1
- package/components/Icons/Copy.js +21 -15
- package/components/Icons/Copy.js.map +1 -1
- package/components/Icons/CoronaCertificate.d.ts +1 -1
- package/components/Icons/CoronaCertificate.js +19 -15
- package/components/Icons/CoronaCertificate.js.map +1 -1
- package/components/Icons/Coronavirus.d.ts +1 -1
- package/components/Icons/Coronavirus.js +7 -3
- package/components/Icons/Coronavirus.js.map +1 -1
- package/components/Icons/Cough.d.ts +1 -1
- package/components/Icons/Cough.js +7 -3
- package/components/Icons/Cough.js.map +1 -1
- package/components/Icons/CreditCard.d.ts +1 -1
- package/components/Icons/CreditCard.js +45 -41
- package/components/Icons/CreditCard.js.map +1 -1
- package/components/Icons/CriticalHealthInfo.d.ts +1 -1
- package/components/Icons/CriticalHealthInfo.js +7 -3
- package/components/Icons/CriticalHealthInfo.js.map +1 -1
- package/components/Icons/Cross.d.ts +1 -1
- package/components/Icons/Cross.js +7 -3
- package/components/Icons/Cross.js.map +1 -1
- package/components/Icons/DataExchange.d.ts +1 -1
- package/components/Icons/DataExchange.js +19 -15
- package/components/Icons/DataExchange.js.map +1 -1
- package/components/Icons/DataReceived.d.ts +1 -1
- package/components/Icons/DataReceived.js +19 -15
- package/components/Icons/DataReceived.js.map +1 -1
- package/components/Icons/DataSent.d.ts +1 -1
- package/components/Icons/DataSent.js +19 -15
- package/components/Icons/DataSent.js.map +1 -1
- package/components/Icons/Depression.d.ts +1 -1
- package/components/Icons/Depression.js +7 -3
- package/components/Icons/Depression.js.map +1 -1
- package/components/Icons/DigestiveSystem.d.ts +1 -1
- package/components/Icons/DigestiveSystem.js +13 -9
- package/components/Icons/DigestiveSystem.js.map +1 -1
- package/components/Icons/Dizzy.d.ts +1 -1
- package/components/Icons/Dizzy.js +7 -3
- package/components/Icons/Dizzy.js.map +1 -1
- package/components/Icons/Documents.d.ts +1 -1
- package/components/Icons/Documents.js +7 -3
- package/components/Icons/Documents.js.map +1 -1
- package/components/Icons/Dog.d.ts +1 -1
- package/components/Icons/Dog.js +7 -3
- package/components/Icons/Dog.js.map +1 -1
- package/components/Icons/DonorCard.d.ts +1 -1
- package/components/Icons/DonorCard.js +7 -3
- package/components/Icons/DonorCard.js.map +1 -1
- package/components/Icons/Download.d.ts +1 -1
- package/components/Icons/Download.js +34 -28
- package/components/Icons/Download.js.map +1 -1
- package/components/Icons/Draft.d.ts +1 -1
- package/components/Icons/Draft.js +7 -3
- package/components/Icons/Draft.js.map +1 -1
- package/components/Icons/EChat.d.ts +1 -1
- package/components/Icons/EChat.js +10 -4
- package/components/Icons/EChat.js.map +1 -1
- package/components/Icons/Ear.d.ts +1 -1
- package/components/Icons/Ear.js +14 -10
- package/components/Icons/Ear.js.map +1 -1
- package/components/Icons/EarDeaf.d.ts +1 -1
- package/components/Icons/EarDeaf.js +8 -4
- package/components/Icons/EarDeaf.js.map +1 -1
- package/components/Icons/EarHearingAid.d.ts +1 -1
- package/components/Icons/EarHearingAid.js +11 -7
- package/components/Icons/EarHearingAid.js.map +1 -1
- package/components/Icons/EarNoseThroat.d.ts +1 -1
- package/components/Icons/EarNoseThroat.js +15 -11
- package/components/Icons/EarNoseThroat.js.map +1 -1
- package/components/Icons/EarVolume.d.ts +1 -1
- package/components/Icons/EarVolume.js +23 -19
- package/components/Icons/EarVolume.js.map +1 -1
- package/components/Icons/ElderlyPerson.d.ts +1 -1
- package/components/Icons/ElderlyPerson.js +7 -3
- package/components/Icons/ElderlyPerson.js.map +1 -1
- package/components/Icons/Embolization.d.ts +1 -1
- package/components/Icons/Embolization.js +19 -15
- package/components/Icons/Embolization.js.map +1 -1
- package/components/Icons/EmergencyCall.d.ts +1 -1
- package/components/Icons/EmergencyCall.js +22 -18
- package/components/Icons/EmergencyCall.js.map +1 -1
- package/components/Icons/EmoticonAnnoyed.d.ts +1 -1
- package/components/Icons/EmoticonAnnoyed.js +21 -17
- package/components/Icons/EmoticonAnnoyed.js.map +1 -1
- package/components/Icons/EmoticonDelighted.d.ts +1 -1
- package/components/Icons/EmoticonDelighted.js +14 -10
- package/components/Icons/EmoticonDelighted.js.map +1 -1
- package/components/Icons/EmoticonDisappointed.d.ts +1 -1
- package/components/Icons/EmoticonDisappointed.js +14 -10
- package/components/Icons/EmoticonDisappointed.js.map +1 -1
- package/components/Icons/EmoticonHappy.d.ts +1 -1
- package/components/Icons/EmoticonHappy.js +14 -10
- package/components/Icons/EmoticonHappy.js.map +1 -1
- package/components/Icons/EmoticonMeh.d.ts +1 -1
- package/components/Icons/EmoticonMeh.js +14 -10
- package/components/Icons/EmoticonMeh.js.map +1 -1
- package/components/Icons/EnterFullScreen.d.ts +1 -1
- package/components/Icons/EnterFullScreen.js +19 -13
- package/components/Icons/EnterFullScreen.js.map +1 -1
- package/components/Icons/Envelope.d.ts +1 -1
- package/components/Icons/Envelope.js +10 -4
- package/components/Icons/Envelope.js.map +1 -1
- package/components/Icons/Epilepsy.d.ts +1 -1
- package/components/Icons/Epilepsy.js +7 -3
- package/components/Icons/Epilepsy.js.map +1 -1
- package/components/Icons/Eraser.d.ts +1 -1
- package/components/Icons/Eraser.js +16 -10
- package/components/Icons/Eraser.js.map +1 -1
- package/components/Icons/ErrorSignFill.d.ts +1 -1
- package/components/Icons/ErrorSignFill.js +10 -4
- package/components/Icons/ErrorSignFill.js.map +1 -1
- package/components/Icons/ErrorSignStroke.d.ts +1 -1
- package/components/Icons/ErrorSignStroke.js +10 -4
- package/components/Icons/ErrorSignStroke.js.map +1 -1
- package/components/Icons/EuropeanHealthCard.d.ts +1 -1
- package/components/Icons/EuropeanHealthCard.js +10 -6
- package/components/Icons/EuropeanHealthCard.js.map +1 -1
- package/components/Icons/ExitFullScreen.d.ts +1 -1
- package/components/Icons/ExitFullScreen.js +19 -13
- package/components/Icons/ExitFullScreen.js.map +1 -1
- package/components/Icons/Eye.d.ts +1 -1
- package/components/Icons/Eye.js +34 -26
- package/components/Icons/Eye.js.map +1 -1
- package/components/Icons/Facebook.d.ts +1 -1
- package/components/Icons/Facebook.js +7 -3
- package/components/Icons/Facebook.js.map +1 -1
- package/components/Icons/FallingLeaf.d.ts +1 -1
- package/components/Icons/FallingLeaf.js +28 -24
- package/components/Icons/FallingLeaf.js.map +1 -1
- package/components/Icons/Female.d.ts +1 -1
- package/components/Icons/Female.js +7 -3
- package/components/Icons/Female.js.map +1 -1
- package/components/Icons/FemaleDoctor.d.ts +1 -1
- package/components/Icons/FemaleDoctor.js +7 -3
- package/components/Icons/FemaleDoctor.js.map +1 -1
- package/components/Icons/Ferry.d.ts +1 -1
- package/components/Icons/Ferry.js +7 -3
- package/components/Icons/Ferry.js.map +1 -1
- package/components/Icons/File.d.ts +1 -1
- package/components/Icons/File.js +34 -28
- package/components/Icons/File.js.map +1 -1
- package/components/Icons/Filter.d.ts +1 -1
- package/components/Icons/Filter.js +29 -23
- package/components/Icons/Filter.js.map +1 -1
- package/components/Icons/FingerBleed.d.ts +1 -1
- package/components/Icons/FingerBleed.js +7 -3
- package/components/Icons/FingerBleed.js.map +1 -1
- package/components/Icons/FirstAidKit.d.ts +1 -1
- package/components/Icons/FirstAidKit.js +7 -3
- package/components/Icons/FirstAidKit.js.map +1 -1
- package/components/Icons/Fish.d.ts +1 -1
- package/components/Icons/Fish.js +41 -37
- package/components/Icons/Fish.js.map +1 -1
- package/components/Icons/FloppyDisk.d.ts +1 -1
- package/components/Icons/FloppyDisk.js +19 -15
- package/components/Icons/FloppyDisk.js.map +1 -1
- package/components/Icons/Football.d.ts +1 -1
- package/components/Icons/Football.js +7 -3
- package/components/Icons/Football.js.map +1 -1
- package/components/Icons/Form.d.ts +1 -1
- package/components/Icons/Form.js +10 -4
- package/components/Icons/Form.js.map +1 -1
- package/components/Icons/Forward.d.ts +1 -1
- package/components/Icons/Forward.js +16 -10
- package/components/Icons/Forward.js.map +1 -1
- package/components/Icons/Gallery.d.ts +1 -1
- package/components/Icons/Gallery.js +34 -28
- package/components/Icons/Gallery.js.map +1 -1
- package/components/Icons/Garden.d.ts +1 -1
- package/components/Icons/Garden.js +7 -3
- package/components/Icons/Garden.js.map +1 -1
- package/components/Icons/GasCan.d.ts +1 -1
- package/components/Icons/GasCan.js +7 -3
- package/components/Icons/GasCan.js.map +1 -1
- package/components/Icons/GenderIdentity.d.ts +1 -1
- package/components/Icons/GenderIdentity.js +19 -15
- package/components/Icons/GenderIdentity.js.map +1 -1
- package/components/Icons/GlassWater.d.ts +1 -1
- package/components/Icons/GlassWater.js +19 -15
- package/components/Icons/GlassWater.js.map +1 -1
- package/components/Icons/Glasses.d.ts +1 -1
- package/components/Icons/Glasses.js +22 -18
- package/components/Icons/Glasses.js.map +1 -1
- package/components/Icons/Globe.d.ts +1 -1
- package/components/Icons/Globe.js +10 -4
- package/components/Icons/Globe.js.map +1 -1
- package/components/Icons/Grain.d.ts +1 -1
- package/components/Icons/Grain.js +19 -15
- package/components/Icons/Grain.js.map +1 -1
- package/components/Icons/Graph.d.ts +1 -1
- package/components/Icons/Graph.js +26 -22
- package/components/Icons/Graph.js.map +1 -1
- package/components/Icons/Group.d.ts +1 -1
- package/components/Icons/Group.js +10 -8
- package/components/Icons/Group.js.map +1 -1
- package/components/Icons/GroupTwins.d.ts +1 -1
- package/components/Icons/GroupTwins.js +77 -71
- package/components/Icons/GroupTwins.js.map +1 -1
- package/components/Icons/HTMLFile.d.ts +1 -1
- package/components/Icons/HTMLFile.js +14 -10
- package/components/Icons/HTMLFile.js.map +1 -1
- package/components/Icons/HandWaving.d.ts +1 -1
- package/components/Icons/HandWaving.js +7 -3
- package/components/Icons/HandWaving.js.map +1 -1
- package/components/Icons/HandWithDisease.d.ts +1 -1
- package/components/Icons/HandWithDisease.js +7 -3
- package/components/Icons/HandWithDisease.js.map +1 -1
- package/components/Icons/HandsAndHeart.d.ts +1 -1
- package/components/Icons/HandsAndHeart.js +20 -16
- package/components/Icons/HandsAndHeart.js.map +1 -1
- package/components/Icons/HealthClinic.d.ts +1 -1
- package/components/Icons/HealthClinic.js +19 -15
- package/components/Icons/HealthClinic.js.map +1 -1
- package/components/Icons/HealthWarning.d.ts +1 -1
- package/components/Icons/HealthWarning.js +19 -15
- package/components/Icons/HealthWarning.js.map +1 -1
- package/components/Icons/HealthcarePerson.d.ts +1 -1
- package/components/Icons/HealthcarePerson.js +74 -68
- package/components/Icons/HealthcarePerson.js.map +1 -1
- package/components/Icons/HealthcarePersonell.d.ts +1 -1
- package/components/Icons/HealthcarePersonell.js +97 -91
- package/components/Icons/HealthcarePersonell.js.map +1 -1
- package/components/Icons/HearingProtection.d.ts +1 -1
- package/components/Icons/HearingProtection.js +28 -24
- package/components/Icons/HearingProtection.js.map +1 -1
- package/components/Icons/Heart.d.ts +1 -1
- package/components/Icons/Heart.js +10 -4
- package/components/Icons/Heart.js.map +1 -1
- package/components/Icons/HeartHands.d.ts +1 -1
- package/components/Icons/HeartHands.js +73 -69
- package/components/Icons/HeartHands.js.map +1 -1
- package/components/Icons/HelpSign.d.ts +1 -1
- package/components/Icons/HelpSign.js +10 -4
- package/components/Icons/HelpSign.js.map +1 -1
- package/components/Icons/HelpingHand.d.ts +1 -1
- package/components/Icons/HelpingHand.js +19 -15
- package/components/Icons/HelpingHand.js.map +1 -1
- package/components/Icons/Hemodialysis.d.ts +1 -1
- package/components/Icons/Hemodialysis.js +19 -15
- package/components/Icons/Hemodialysis.js.map +1 -1
- package/components/Icons/Hiker.d.ts +1 -1
- package/components/Icons/Hiker.js +7 -3
- package/components/Icons/Hiker.js.map +1 -1
- package/components/Icons/Hipprosthesis.d.ts +1 -1
- package/components/Icons/Hipprosthesis.js +19 -15
- package/components/Icons/Hipprosthesis.js.map +1 -1
- package/components/Icons/History.d.ts +1 -1
- package/components/Icons/History.js +10 -4
- package/components/Icons/History.js.map +1 -1
- package/components/Icons/HivAndAids.d.ts +1 -1
- package/components/Icons/HivAndAids.js +7 -3
- package/components/Icons/HivAndAids.js.map +1 -1
- package/components/Icons/Home.d.ts +1 -1
- package/components/Icons/Home.js +34 -28
- package/components/Icons/Home.js.map +1 -1
- package/components/Icons/HomeFill.d.ts +1 -1
- package/components/Icons/HomeFill.js +38 -32
- package/components/Icons/HomeFill.js.map +1 -1
- package/components/Icons/Hormone.d.ts +1 -1
- package/components/Icons/Hormone.js +7 -3
- package/components/Icons/Hormone.js.map +1 -1
- package/components/Icons/Hospital.d.ts +1 -1
- package/components/Icons/Hospital.js +34 -28
- package/components/Icons/Hospital.js.map +1 -1
- package/components/Icons/Hourglass.d.ts +1 -1
- package/components/Icons/Hourglass.js +34 -28
- package/components/Icons/Hourglass.js.map +1 -1
- package/components/Icons/IconNames.js +2 -2
- package/components/Icons/IconNames.js.map +1 -1
- package/components/Icons/ImgFile.d.ts +1 -1
- package/components/Icons/ImgFile.js +19 -15
- package/components/Icons/ImgFile.js.map +1 -1
- package/components/Icons/Inbox.d.ts +1 -1
- package/components/Icons/Inbox.js +16 -12
- package/components/Icons/Inbox.js.map +1 -1
- package/components/Icons/InfoSignFill.d.ts +1 -1
- package/components/Icons/InfoSignFill.js +10 -4
- package/components/Icons/InfoSignFill.js.map +1 -1
- package/components/Icons/InfoSignStroke.d.ts +1 -1
- package/components/Icons/InfoSignStroke.js +10 -4
- package/components/Icons/InfoSignStroke.js.map +1 -1
- package/components/Icons/Instagram.d.ts +1 -1
- package/components/Icons/Instagram.js +14 -10
- package/components/Icons/Instagram.js.map +1 -1
- package/components/Icons/Intravenous.d.ts +1 -1
- package/components/Icons/Intravenous.js +19 -15
- package/components/Icons/Intravenous.js.map +1 -1
- package/components/Icons/JointPain.d.ts +1 -1
- package/components/Icons/JointPain.js +7 -3
- package/components/Icons/JointPain.js.map +1 -1
- package/components/Icons/Journal.d.ts +1 -1
- package/components/Icons/Journal.js +10 -4
- package/components/Icons/Journal.js.map +1 -1
- package/components/Icons/JpgFile.d.ts +1 -1
- package/components/Icons/JpgFile.js +19 -15
- package/components/Icons/JpgFile.js.map +1 -1
- package/components/Icons/Kidney.d.ts +1 -1
- package/components/Icons/Kidney.js +7 -3
- package/components/Icons/Kidney.js.map +1 -1
- package/components/Icons/KitchenScale.d.ts +1 -1
- package/components/Icons/KitchenScale.js +19 -15
- package/components/Icons/KitchenScale.js.map +1 -1
- package/components/Icons/Kjernejournal.d.ts +1 -1
- package/components/Icons/Kjernejournal.js +7 -3
- package/components/Icons/Kjernejournal.js.map +1 -1
- package/components/Icons/Laboratory.d.ts +1 -1
- package/components/Icons/Laboratory.js +19 -15
- package/components/Icons/Laboratory.js.map +1 -1
- package/components/Icons/LaptopBlog.d.ts +1 -1
- package/components/Icons/LaptopBlog.js +7 -3
- package/components/Icons/LaptopBlog.js.map +1 -1
- package/components/Icons/LawBook.d.ts +1 -1
- package/components/Icons/LawBook.js +10 -6
- package/components/Icons/LawBook.js.map +1 -1
- package/components/Icons/LegalDocument.d.ts +1 -1
- package/components/Icons/LegalDocument.js +32 -28
- package/components/Icons/LegalDocument.js.map +1 -1
- package/components/Icons/LightBulb.d.ts +1 -1
- package/components/Icons/LightBulb.js +7 -3
- package/components/Icons/LightBulb.js.map +1 -1
- package/components/Icons/List.d.ts +1 -1
- package/components/Icons/List.js +34 -28
- package/components/Icons/List.js.map +1 -1
- package/components/Icons/Location.d.ts +1 -1
- package/components/Icons/Location.js +13 -7
- package/components/Icons/Location.js.map +1 -1
- package/components/Icons/LocationFill.d.ts +1 -1
- package/components/Icons/LocationFill.js +38 -32
- package/components/Icons/LocationFill.js.map +1 -1
- package/components/Icons/Lock.d.ts +1 -1
- package/components/Icons/Lock.js +22 -16
- package/components/Icons/Lock.js.map +1 -1
- package/components/Icons/Login.d.ts +1 -1
- package/components/Icons/Login.js +50 -44
- package/components/Icons/Login.js.map +1 -1
- package/components/Icons/Logout.d.ts +1 -1
- package/components/Icons/Logout.js +50 -44
- package/components/Icons/Logout.js.map +1 -1
- package/components/Icons/Lungs.d.ts +1 -1
- package/components/Icons/Lungs.js +7 -3
- package/components/Icons/Lungs.js.map +1 -1
- package/components/Icons/Makeup.d.ts +1 -1
- package/components/Icons/Makeup.js +7 -3
- package/components/Icons/Makeup.js.map +1 -1
- package/components/Icons/MaleDoctor.d.ts +1 -1
- package/components/Icons/MaleDoctor.js +7 -3
- package/components/Icons/MaleDoctor.js.map +1 -1
- package/components/Icons/MaleDoctorAndPerson.d.ts +1 -1
- package/components/Icons/MaleDoctorAndPerson.js +15 -11
- package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
- package/components/Icons/MaleDoctorCompact.d.ts +1 -1
- package/components/Icons/MaleDoctorCompact.js +52 -45
- package/components/Icons/MaleDoctorCompact.js.map +1 -1
- package/components/Icons/MaleDoctorCompactFill.d.ts +1 -1
- package/components/Icons/MaleDoctorCompactFill.js +23 -37
- package/components/Icons/MaleDoctorCompactFill.js.map +1 -1
- package/components/Icons/MaleGenitalia.d.ts +1 -1
- package/components/Icons/MaleGenitalia.js +7 -3
- package/components/Icons/MaleGenitalia.js.map +1 -1
- package/components/Icons/Medicine.d.ts +1 -1
- package/components/Icons/Medicine.js +34 -28
- package/components/Icons/Medicine.js.map +1 -1
- package/components/Icons/MedicineWarning.d.ts +1 -1
- package/components/Icons/MedicineWarning.js +19 -15
- package/components/Icons/MedicineWarning.js.map +1 -1
- package/components/Icons/MentalHealthAdult.d.ts +1 -1
- package/components/Icons/MentalHealthAdult.js +13 -9
- package/components/Icons/MentalHealthAdult.js.map +1 -1
- package/components/Icons/MentalHealthChild.d.ts +1 -1
- package/components/Icons/MentalHealthChild.js +13 -9
- package/components/Icons/MentalHealthChild.js.map +1 -1
- package/components/Icons/Menu.d.ts +1 -1
- package/components/Icons/Menu.js +10 -4
- package/components/Icons/Menu.js.map +1 -1
- package/components/Icons/Microscope.d.ts +1 -1
- package/components/Icons/Microscope.js +19 -15
- package/components/Icons/Microscope.js.map +1 -1
- package/components/Icons/Minus.d.ts +1 -1
- package/components/Icons/Minus.js +10 -4
- package/components/Icons/Minus.js.map +1 -1
- package/components/Icons/Mirror.d.ts +1 -1
- package/components/Icons/Mirror.js +7 -3
- package/components/Icons/Mirror.js.map +1 -1
- package/components/Icons/MobilePhone.d.ts +1 -1
- package/components/Icons/MobilePhone.js +10 -4
- package/components/Icons/MobilePhone.js.map +1 -1
- package/components/Icons/MotherHoldingBaby.d.ts +1 -1
- package/components/Icons/MotherHoldingBaby.js +7 -3
- package/components/Icons/MotherHoldingBaby.js.map +1 -1
- package/components/Icons/MuscleBack.d.ts +1 -1
- package/components/Icons/MuscleBack.js +15 -11
- package/components/Icons/MuscleBack.js.map +1 -1
- package/components/Icons/MuscleLeg.d.ts +1 -1
- package/components/Icons/MuscleLeg.js +13 -9
- package/components/Icons/MuscleLeg.js.map +1 -1
- package/components/Icons/Mushroom.d.ts +1 -1
- package/components/Icons/Mushroom.js +7 -3
- package/components/Icons/Mushroom.js.map +1 -1
- package/components/Icons/Music.d.ts +1 -1
- package/components/Icons/Music.js +19 -15
- package/components/Icons/Music.js.map +1 -1
- package/components/Icons/MusselsAndSalt.d.ts +1 -1
- package/components/Icons/MusselsAndSalt.js +7 -3
- package/components/Icons/MusselsAndSalt.js.map +1 -1
- package/components/Icons/NoAccess.d.ts +1 -1
- package/components/Icons/NoAccess.js +17 -13
- package/components/Icons/NoAccess.js.map +1 -1
- package/components/Icons/NoEye.d.ts +1 -1
- package/components/Icons/NoEye.js +50 -42
- package/components/Icons/NoEye.js.map +1 -1
- package/components/Icons/NoFilter.d.ts +1 -1
- package/components/Icons/NoFilter.js +16 -10
- package/components/Icons/NoFilter.js.map +1 -1
- package/components/Icons/Notepad.d.ts +1 -1
- package/components/Icons/Notepad.js +7 -3
- package/components/Icons/Notepad.js.map +1 -1
- package/components/Icons/Osteotomy.d.ts +1 -1
- package/components/Icons/Osteotomy.js +19 -15
- package/components/Icons/Osteotomy.js.map +1 -1
- package/components/Icons/PaintRoller.d.ts +1 -1
- package/components/Icons/PaintRoller.js +7 -3
- package/components/Icons/PaintRoller.js.map +1 -1
- package/components/Icons/PaperPlane.d.ts +1 -1
- package/components/Icons/PaperPlane.js +10 -4
- package/components/Icons/PaperPlane.js.map +1 -1
- package/components/Icons/PatientAndPerson.d.ts +1 -1
- package/components/Icons/PatientAndPerson.js +7 -3
- package/components/Icons/PatientAndPerson.js.map +1 -1
- package/components/Icons/Pause.d.ts +1 -1
- package/components/Icons/Pause.js +10 -4
- package/components/Icons/Pause.js.map +1 -1
- package/components/Icons/PdfFile.d.ts +1 -1
- package/components/Icons/PdfFile.js +19 -15
- package/components/Icons/PdfFile.js.map +1 -1
- package/components/Icons/Pencil.d.ts +1 -1
- package/components/Icons/Pencil.js +10 -4
- package/components/Icons/Pencil.js.map +1 -1
- package/components/Icons/PeopleTalking.d.ts +1 -1
- package/components/Icons/PeopleTalking.js +19 -15
- package/components/Icons/PeopleTalking.js.map +1 -1
- package/components/Icons/Peritonealdialysis.d.ts +1 -1
- package/components/Icons/Peritonealdialysis.js +19 -15
- package/components/Icons/Peritonealdialysis.js.map +1 -1
- package/components/Icons/Person.d.ts +1 -1
- package/components/Icons/Person.js +7 -3
- package/components/Icons/Person.js.map +1 -1
- package/components/Icons/PersonAndPatient.d.ts +1 -1
- package/components/Icons/PersonAndPatient.js +7 -3
- package/components/Icons/PersonAndPatient.js.map +1 -1
- package/components/Icons/PersonCancel.d.ts +1 -1
- package/components/Icons/PersonCancel.js +66 -60
- package/components/Icons/PersonCancel.js.map +1 -1
- package/components/Icons/PersonInXRayMachine.d.ts +1 -1
- package/components/Icons/PersonInXRayMachine.js +19 -15
- package/components/Icons/PersonInXRayMachine.js.map +1 -1
- package/components/Icons/PersonOverweight.d.ts +1 -1
- package/components/Icons/PersonOverweight.js +7 -3
- package/components/Icons/PersonOverweight.js.map +1 -1
- package/components/Icons/PersonRelaxing.d.ts +1 -1
- package/components/Icons/PersonRelaxing.js +13 -9
- package/components/Icons/PersonRelaxing.js.map +1 -1
- package/components/Icons/PersonWithBrain.d.ts +1 -1
- package/components/Icons/PersonWithBrain.js +10 -6
- package/components/Icons/PersonWithBrain.js.map +1 -1
- package/components/Icons/PersonWithBrokenArm.d.ts +1 -1
- package/components/Icons/PersonWithBrokenArm.js +7 -3
- package/components/Icons/PersonWithBrokenArm.js.map +1 -1
- package/components/Icons/PersonWithCrutches.d.ts +1 -1
- package/components/Icons/PersonWithCrutches.js +7 -3
- package/components/Icons/PersonWithCrutches.js.map +1 -1
- package/components/Icons/PersonWithJaw.d.ts +1 -1
- package/components/Icons/PersonWithJaw.js +13 -9
- package/components/Icons/PersonWithJaw.js.map +1 -1
- package/components/Icons/PersonWithMagnifyingGlass.d.ts +1 -1
- package/components/Icons/PersonWithMagnifyingGlass.js +13 -9
- package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
- package/components/Icons/PersonWithSenses.d.ts +1 -1
- package/components/Icons/PersonWithSenses.js +19 -15
- package/components/Icons/PersonWithSenses.js.map +1 -1
- package/components/Icons/PersonWorking.d.ts +1 -1
- package/components/Icons/PersonWorking.js +13 -9
- package/components/Icons/PersonWorking.js.map +1 -1
- package/components/Icons/PersonalPlan.d.ts +1 -1
- package/components/Icons/PersonalPlan.js +38 -34
- package/components/Icons/PersonalPlan.js.map +1 -1
- package/components/Icons/PizzaSlice.d.ts +1 -1
- package/components/Icons/PizzaSlice.js +13 -9
- package/components/Icons/PizzaSlice.js.map +1 -1
- package/components/Icons/Plane.d.ts +1 -1
- package/components/Icons/Plane.js +7 -3
- package/components/Icons/Plane.js.map +1 -1
- package/components/Icons/Plant.d.ts +1 -1
- package/components/Icons/Plant.js +7 -3
- package/components/Icons/Plant.js.map +1 -1
- package/components/Icons/PlateKnifeFork.d.ts +1 -1
- package/components/Icons/PlateKnifeFork.js +37 -33
- package/components/Icons/PlateKnifeFork.js.map +1 -1
- package/components/Icons/Play.d.ts +1 -1
- package/components/Icons/Play.js +10 -4
- package/components/Icons/Play.js.map +1 -1
- package/components/Icons/PlusLarge.d.ts +1 -1
- package/components/Icons/PlusLarge.js +10 -4
- package/components/Icons/PlusLarge.js.map +1 -1
- package/components/Icons/PlusSmall.d.ts +1 -1
- package/components/Icons/PlusSmall.js +10 -4
- package/components/Icons/PlusSmall.js.map +1 -1
- package/components/Icons/PngFile.d.ts +1 -1
- package/components/Icons/PngFile.js +19 -15
- package/components/Icons/PngFile.js.map +1 -1
- package/components/Icons/Podcast.d.ts +1 -1
- package/components/Icons/Podcast.js +19 -15
- package/components/Icons/Podcast.js.map +1 -1
- package/components/Icons/PoisonInformation.d.ts +1 -1
- package/components/Icons/PoisonInformation.js +13 -9
- package/components/Icons/PoisonInformation.js.map +1 -1
- package/components/Icons/Pregnant.d.ts +1 -1
- package/components/Icons/Pregnant.js +7 -3
- package/components/Icons/Pregnant.js.map +1 -1
- package/components/Icons/Printer.d.ts +1 -1
- package/components/Icons/Printer.js +34 -28
- package/components/Icons/Printer.js.map +1 -1
- package/components/Icons/Psychosis.d.ts +1 -1
- package/components/Icons/Psychosis.js +7 -3
- package/components/Icons/Psychosis.js.map +1 -1
- package/components/Icons/Publication.d.ts +1 -1
- package/components/Icons/Publication.js +19 -15
- package/components/Icons/Publication.js.map +1 -1
- package/components/Icons/Puzzle.d.ts +1 -1
- package/components/Icons/Puzzle.js +10 -6
- package/components/Icons/Puzzle.js.map +1 -1
- package/components/Icons/QrCode.d.ts +1 -1
- package/components/Icons/QrCode.js +34 -28
- package/components/Icons/QrCode.js.map +1 -1
- package/components/Icons/Quarrel.d.ts +1 -1
- package/components/Icons/Quarrel.js +19 -15
- package/components/Icons/Quarrel.js.map +1 -1
- package/components/Icons/RadioTherapy.d.ts +1 -1
- package/components/Icons/RadioTherapy.js +19 -15
- package/components/Icons/RadioTherapy.js.map +1 -1
- package/components/Icons/RadioactiveTreatment.d.ts +1 -1
- package/components/Icons/RadioactiveTreatment.js +19 -15
- package/components/Icons/RadioactiveTreatment.js.map +1 -1
- package/components/Icons/Radioiodine.d.ts +1 -1
- package/components/Icons/Radioiodine.js +19 -15
- package/components/Icons/Radioiodine.js.map +1 -1
- package/components/Icons/Receipt.d.ts +1 -1
- package/components/Icons/Receipt.js +7 -3
- package/components/Icons/Receipt.js.map +1 -1
- package/components/Icons/Receptionist.d.ts +1 -1
- package/components/Icons/Receptionist.js +10 -4
- package/components/Icons/Receptionist.js.map +1 -1
- package/components/Icons/Recovery.d.ts +1 -1
- package/components/Icons/Recovery.js +19 -15
- package/components/Icons/Recovery.js.map +1 -1
- package/components/Icons/Referral.d.ts +1 -1
- package/components/Icons/Referral.js +10 -4
- package/components/Icons/Referral.js.map +1 -1
- package/components/Icons/Refresh.d.ts +1 -1
- package/components/Icons/Refresh.js +10 -4
- package/components/Icons/Refresh.js.map +1 -1
- package/components/Icons/Refund.d.ts +1 -1
- package/components/Icons/Refund.js +7 -3
- package/components/Icons/Refund.js.map +1 -1
- package/components/Icons/Reminder.d.ts +1 -1
- package/components/Icons/Reminder.js +27 -23
- package/components/Icons/Reminder.js.map +1 -1
- package/components/Icons/Reply.d.ts +1 -1
- package/components/Icons/Reply.js +16 -10
- package/components/Icons/Reply.js.map +1 -1
- package/components/Icons/Rocket.d.ts +1 -1
- package/components/Icons/Rocket.js +7 -3
- package/components/Icons/Rocket.js.map +1 -1
- package/components/Icons/RtfFile.d.ts +1 -1
- package/components/Icons/RtfFile.js +19 -15
- package/components/Icons/RtfFile.js.map +1 -1
- package/components/Icons/STDs.d.ts +1 -1
- package/components/Icons/STDs.js +19 -15
- package/components/Icons/STDs.js.map +1 -1
- package/components/Icons/Save.d.ts +1 -1
- package/components/Icons/Save.js +18 -12
- package/components/Icons/Save.js.map +1 -1
- package/components/Icons/Scale.d.ts +1 -1
- package/components/Icons/Scale.js +7 -3
- package/components/Icons/Scale.js.map +1 -1
- package/components/Icons/ScreenReader.d.ts +1 -1
- package/components/Icons/ScreenReader.js +46 -42
- package/components/Icons/ScreenReader.js.map +1 -1
- package/components/Icons/Search.d.ts +1 -1
- package/components/Icons/Search.js +10 -4
- package/components/Icons/Search.js.map +1 -1
- package/components/Icons/SectionSign.d.ts +1 -1
- package/components/Icons/SectionSign.js +34 -28
- package/components/Icons/SectionSign.js.map +1 -1
- package/components/Icons/Settings.d.ts +1 -1
- package/components/Icons/Settings.js +38 -32
- package/components/Icons/Settings.js.map +1 -1
- package/components/Icons/SettingsFill.d.ts +1 -1
- package/components/Icons/SettingsFill.js +38 -32
- package/components/Icons/SettingsFill.js.map +1 -1
- package/components/Icons/Sexualorientation.d.ts +1 -1
- package/components/Icons/Sexualorientation.js +19 -15
- package/components/Icons/Sexualorientation.js.map +1 -1
- package/components/Icons/ShakingHand.d.ts +1 -1
- package/components/Icons/ShakingHand.js +13 -9
- package/components/Icons/ShakingHand.js.map +1 -1
- package/components/Icons/Share.d.ts +1 -1
- package/components/Icons/Share.js +16 -10
- package/components/Icons/Share.js.map +1 -1
- package/components/Icons/Shield.d.ts +1 -1
- package/components/Icons/Shield.js +19 -15
- package/components/Icons/Shield.js.map +1 -1
- package/components/Icons/ShuntOperation.d.ts +1 -1
- package/components/Icons/ShuntOperation.js +19 -15
- package/components/Icons/ShuntOperation.js.map +1 -1
- package/components/Icons/Skeleton.d.ts +1 -1
- package/components/Icons/Skeleton.js +7 -3
- package/components/Icons/Skeleton.js.map +1 -1
- package/components/Icons/Skin.d.ts +1 -1
- package/components/Icons/Skin.js +7 -3
- package/components/Icons/Skin.js.map +1 -1
- package/components/Icons/Snake.d.ts +1 -1
- package/components/Icons/Snake.js +7 -3
- package/components/Icons/Snake.js.map +1 -1
- package/components/Icons/Snapchat.d.ts +1 -1
- package/components/Icons/Snapchat.js +10 -6
- package/components/Icons/Snapchat.js.map +1 -1
- package/components/Icons/SortDown.d.ts +1 -1
- package/components/Icons/SortDown.js +27 -19
- package/components/Icons/SortDown.js.map +1 -1
- package/components/Icons/SortUp.d.ts +1 -1
- package/components/Icons/SortUp.js +27 -19
- package/components/Icons/SortUp.js.map +1 -1
- package/components/Icons/SpeechBubble.d.ts +1 -1
- package/components/Icons/SpeechBubble.js +34 -28
- package/components/Icons/SpeechBubble.js.map +1 -1
- package/components/Icons/Spray.d.ts +1 -1
- package/components/Icons/Spray.js +7 -3
- package/components/Icons/Spray.js.map +1 -1
- package/components/Icons/Stopwatch.d.ts +1 -1
- package/components/Icons/Stopwatch.js +34 -28
- package/components/Icons/Stopwatch.js.map +1 -1
- package/components/Icons/Sun.d.ts +1 -1
- package/components/Icons/Sun.js +30 -26
- package/components/Icons/Sun.js.map +1 -1
- package/components/Icons/SupportingPerson.d.ts +1 -1
- package/components/Icons/SupportingPerson.js +41 -35
- package/components/Icons/SupportingPerson.js.map +1 -1
- package/components/Icons/Surgery.d.ts +1 -1
- package/components/Icons/Surgery.js +19 -15
- package/components/Icons/Surgery.js.map +1 -1
- package/components/Icons/Sweets.d.ts +1 -1
- package/components/Icons/Sweets.js +39 -35
- package/components/Icons/Sweets.js.map +1 -1
- package/components/Icons/Syringe.d.ts +1 -1
- package/components/Icons/Syringe.js +9 -8
- package/components/Icons/Syringe.js.map +1 -1
- package/components/Icons/Taxi.d.ts +1 -1
- package/components/Icons/Taxi.js +7 -3
- package/components/Icons/Taxi.js.map +1 -1
- package/components/Icons/TeddyBear.d.ts +1 -1
- package/components/Icons/TeddyBear.js +7 -3
- package/components/Icons/TeddyBear.js.map +1 -1
- package/components/Icons/Teenagers.d.ts +1 -1
- package/components/Icons/Teenagers.js +19 -15
- package/components/Icons/Teenagers.js.map +1 -1
- package/components/Icons/ThinkingAboutBaby.d.ts +1 -1
- package/components/Icons/ThinkingAboutBaby.js +7 -3
- package/components/Icons/ThinkingAboutBaby.js.map +1 -1
- package/components/Icons/Ticket.d.ts +1 -1
- package/components/Icons/Ticket.js +7 -3
- package/components/Icons/Ticket.js.map +1 -1
- package/components/Icons/TimePassing.d.ts +1 -1
- package/components/Icons/TimePassing.js +34 -28
- package/components/Icons/TimePassing.js.map +1 -1
- package/components/Icons/Tombstone.d.ts +1 -1
- package/components/Icons/Tombstone.js +26 -22
- package/components/Icons/Tombstone.js.map +1 -1
- package/components/Icons/Toolbox.d.ts +1 -1
- package/components/Icons/Toolbox.js +44 -38
- package/components/Icons/Toolbox.js.map +1 -1
- package/components/Icons/Tooth.d.ts +1 -1
- package/components/Icons/Tooth.js +7 -3
- package/components/Icons/Tooth.js.map +1 -1
- package/components/Icons/TotalKneeProsthesis.d.ts +1 -1
- package/components/Icons/TotalKneeProsthesis.js +19 -15
- package/components/Icons/TotalKneeProsthesis.js.map +1 -1
- package/components/Icons/Train.d.ts +1 -1
- package/components/Icons/Train.js +7 -3
- package/components/Icons/Train.js.map +1 -1
- package/components/Icons/Transplantation.d.ts +1 -1
- package/components/Icons/Transplantation.js +19 -15
- package/components/Icons/Transplantation.js.map +1 -1
- package/components/Icons/TrashCan.d.ts +1 -1
- package/components/Icons/TrashCan.js +34 -28
- package/components/Icons/TrashCan.js.map +1 -1
- package/components/Icons/TravelRoute.d.ts +1 -1
- package/components/Icons/TravelRoute.js +57 -53
- package/components/Icons/TravelRoute.js.map +1 -1
- package/components/Icons/TriangleX.d.ts +1 -1
- package/components/Icons/TriangleX.js +38 -32
- package/components/Icons/TriangleX.js.map +1 -1
- package/components/Icons/Twitter.d.ts +1 -1
- package/components/Icons/Twitter.js +7 -3
- package/components/Icons/Twitter.js.map +1 -1
- package/components/Icons/Undo.d.ts +1 -1
- package/components/Icons/Undo.js +48 -40
- package/components/Icons/Undo.js.map +1 -1
- package/components/Icons/UniProsthesis.d.ts +1 -1
- package/components/Icons/UniProsthesis.js +19 -15
- package/components/Icons/UniProsthesis.js.map +1 -1
- package/components/Icons/Upload.d.ts +1 -1
- package/components/Icons/Upload.js +16 -10
- package/components/Icons/Upload.js.map +1 -1
- package/components/Icons/UserOrganization.d.ts +1 -1
- package/components/Icons/UserOrganization.js +7 -3
- package/components/Icons/UserOrganization.js.map +1 -1
- package/components/Icons/Vaccine.d.ts +1 -1
- package/components/Icons/Vaccine.js +34 -28
- package/components/Icons/Vaccine.js.map +1 -1
- package/components/Icons/VerticalDots.d.ts +1 -1
- package/components/Icons/VerticalDots.js +10 -4
- package/components/Icons/VerticalDots.js.map +1 -1
- package/components/Icons/VideoCamera.d.ts +1 -1
- package/components/Icons/VideoCamera.js +34 -28
- package/components/Icons/VideoCamera.js.map +1 -1
- package/components/Icons/VideoChat.d.ts +1 -1
- package/components/Icons/VideoChat.js +10 -4
- package/components/Icons/VideoChat.js.map +1 -1
- package/components/Icons/Wallet.d.ts +1 -1
- package/components/Icons/Wallet.js +10 -4
- package/components/Icons/Wallet.js.map +1 -1
- package/components/Icons/Watch.d.ts +1 -1
- package/components/Icons/Watch.js +34 -28
- package/components/Icons/Watch.js.map +1 -1
- package/components/Icons/Website.d.ts +1 -1
- package/components/Icons/Website.js +19 -15
- package/components/Icons/Website.js.map +1 -1
- package/components/Icons/Wheelchair.d.ts +1 -1
- package/components/Icons/Wheelchair.js +19 -15
- package/components/Icons/Wheelchair.js.map +1 -1
- package/components/Icons/WheelchairActive.d.ts +1 -1
- package/components/Icons/WheelchairActive.js +19 -15
- package/components/Icons/WheelchairActive.js.map +1 -1
- package/components/Icons/Window.d.ts +1 -1
- package/components/Icons/Window.js +7 -3
- package/components/Icons/Window.js.map +1 -1
- package/components/Icons/WordDocument.d.ts +1 -1
- package/components/Icons/WordDocument.js +13 -9
- package/components/Icons/WordDocument.js.map +1 -1
- package/components/Icons/WorkSuitcase.d.ts +1 -1
- package/components/Icons/WorkSuitcase.js +13 -9
- package/components/Icons/WorkSuitcase.js.map +1 -1
- package/components/Icons/X.d.ts +1 -1
- package/components/Icons/X.js +12 -4
- package/components/Icons/X.js.map +1 -1
- package/components/Icons/XOutline.d.ts +1 -1
- package/components/Icons/XOutline.js +19 -15
- package/components/Icons/XOutline.js.map +1 -1
- package/components/Icons/XmlFile.d.ts +1 -1
- package/components/Icons/XmlFile.js +19 -15
- package/components/Icons/XmlFile.js.map +1 -1
- package/components/Icons/YouTube.d.ts +1 -1
- package/components/Icons/YouTube.js +7 -3
- package/components/Icons/YouTube.js.map +1 -1
- package/components/Icons/Zoom.d.ts +1 -1
- package/components/Icons/Zoom.js +34 -28
- package/components/Icons/Zoom.js.map +1 -1
- package/components/Illustration/Illustration.d.ts +1 -1
- package/components/Illustration/index.d.ts +1 -1
- package/components/Illustration/index.js +5 -5
- package/components/Illustrations/Doctor.d.ts +1 -1
- package/components/Illustrations/Doctor.js +9 -8
- package/components/Illustrations/Doctor.js.map +1 -1
- package/components/Illustrations/DoctorMedium.d.ts +1 -1
- package/components/Illustrations/DoctorMedium.js +15 -15
- package/components/Illustrations/DoctorMedium.js.map +1 -1
- package/components/Illustrations/DoctorSmall.d.ts +1 -1
- package/components/Illustrations/DoctorSmall.js +16 -16
- package/components/Illustrations/DoctorSmall.js.map +1 -1
- package/components/Illustrations/FacialRecognitionFingerprint.d.ts +1 -1
- package/components/Illustrations/FacialRecognitionFingerprint.js +7 -7
- package/components/Illustrations/FacialRecognitionFingerprint.js.map +1 -1
- package/components/Illustrations/FacialRecognitionFingerprintMedium.d.ts +1 -1
- package/components/Illustrations/FacialRecognitionFingerprintMedium.js +52 -52
- package/components/Illustrations/FacialRecognitionFingerprintMedium.js.map +1 -1
- package/components/Illustrations/HealthcarePersonnel.d.ts +1 -1
- package/components/Illustrations/HealthcarePersonnel.js +9 -8
- package/components/Illustrations/HealthcarePersonnel.js.map +1 -1
- package/components/Illustrations/HealthcarePersonnelMedium.d.ts +1 -1
- package/components/Illustrations/HealthcarePersonnelMedium.js +40 -40
- package/components/Illustrations/HealthcarePersonnelMedium.js.map +1 -1
- package/components/Illustrations/HealthcarePersonnelSmall.d.ts +1 -1
- package/components/Illustrations/HealthcarePersonnelSmall.js +33 -33
- package/components/Illustrations/HealthcarePersonnelSmall.js.map +1 -1
- package/components/Illustrations/IllustrationNames.js +4 -3
- package/components/Illustrations/IllustrationNames.js.map +1 -1
- package/components/Input/Input.d.ts +1 -1
- package/components/Input/index.d.ts +1 -1
- package/components/Input/index.js +4 -4
- package/components/Label/Label.d.ts +1 -1
- package/components/Label/SubLabel.d.ts +1 -1
- package/components/Label/index.d.ts +1 -1
- package/components/Label/index.js +7 -7
- package/components/LazyIcon/ErrorBoundary.d.ts +1 -1
- package/components/LazyIcon/LazyIcon.d.ts +1 -1
- package/components/LazyIcon/index.d.ts +1 -1
- package/components/LazyIcon/index.js +5 -5
- package/components/LazyIllustration/LazyIllustration.d.ts +1 -1
- package/components/LazyIllustration/index.d.ts +1 -1
- package/components/LazyIllustration/index.js +5 -5
- package/components/LinkList/LinkList.d.ts +1 -1
- package/components/LinkList/index.d.ts +1 -1
- package/components/LinkList/index.js +3 -3
- package/components/List/List.d.ts +1 -1
- package/components/List/index.d.ts +1 -1
- package/components/List/index.js +2 -2
- package/components/ListHeader/ListHeader.d.ts +1 -1
- package/components/ListHeader/ListHeaderText/ListHeaderText.d.ts +1 -1
- package/components/ListHeader/ListHeaderText/index.d.ts +1 -1
- package/components/ListHeader/ListHeaderText/index.js +3 -3
- package/components/ListHeader/index.js +8 -8
- package/components/Loader/Loader.d.ts +1 -1
- package/components/Loader/index.d.ts +1 -1
- package/components/Loader/index.js +83 -56
- package/components/Loader/index.js.map +1 -1
- package/components/Logo/Logo.d.ts +1 -1
- package/components/Logo/index.d.ts +1 -1
- package/components/Logo/index.js +34 -31
- package/components/Logo/index.js.map +1 -1
- package/components/MaxCharacters/MaxCharacters.d.ts +1 -1
- package/components/Modal/Modal.d.ts +1 -1
- package/components/Modal/index.d.ts +1 -1
- package/components/Modal/index.js +166 -109
- package/components/Modal/index.js.map +1 -1
- package/components/NotificationPanel/NotificationPanel.d.ts +1 -1
- package/components/NotificationPanel/index.d.ts +1 -1
- package/components/NotificationPanel/index.js +90 -79
- package/components/NotificationPanel/index.js.map +1 -1
- package/components/Panel/Panel.d.ts +1 -1
- package/components/Panel/index.d.ts +1 -1
- package/components/Panel/index.js +6 -6
- package/components/PanelList/PanelList.d.ts +1 -1
- package/components/PanelList/index.d.ts +1 -1
- package/components/PanelList/index.js +15 -13
- package/components/PanelList/index.js.map +1 -1
- package/components/PopMenu/PopMenu.d.ts +1 -1
- package/components/PopMenu/PopMenu.test.d.ts +0 -1
- package/components/PopMenu/index.d.ts +1 -1
- package/components/PopMenu/index.js +104 -75
- package/components/PopMenu/index.js.map +1 -1
- package/components/PopOver/PopOver.d.ts +1 -1
- package/components/PopOver/index.d.ts +1 -1
- package/components/PopOver/index.js +4 -4
- package/components/Portal/index.d.ts +1 -1
- package/components/Portal/index.js +20 -11
- package/components/Portal/index.js.map +1 -1
- package/components/Progressbar/Progressbar.d.ts +1 -1
- package/components/Progressbar/index.d.ts +1 -1
- package/components/Progressbar/index.js +95 -59
- package/components/Progressbar/index.js.map +1 -1
- package/components/PromoPanel/PromoPanel.d.ts +1 -1
- package/components/PromoPanel/index.d.ts +1 -1
- package/components/PromoPanel/index.js +65 -46
- package/components/PromoPanel/index.js.map +1 -1
- package/components/RadioButton/RadioButton.d.ts +1 -1
- package/components/RadioButton/index.d.ts +1 -1
- package/components/RadioButton/index.js +5 -5
- package/components/Select/Select.d.ts +1 -1
- package/components/Select/index.d.ts +1 -1
- package/components/Select/index.js +3 -3
- package/components/ServiceMessage/ServiceMessage.d.ts +1 -1
- package/components/ServiceMessage/index.d.ts +1 -1
- package/components/ServiceMessage/index.js +101 -87
- package/components/ServiceMessage/index.js.map +1 -1
- package/components/SharingStatus/SharingStatus.d.ts +1 -1
- package/components/SharingStatus/index.d.ts +1 -1
- package/components/SharingStatus/index.js +16 -13
- package/components/SharingStatus/index.js.map +1 -1
- package/components/Slider/Slider.d.ts +1 -1
- package/components/Slider/index.d.ts +1 -1
- package/components/Slider/index.js +3 -3
- package/components/Spacer/Spacer.d.ts +1 -1
- package/components/Spacer/index.d.ts +1 -1
- package/components/Spacer/index.js +2 -2
- package/components/StatusDot/StatusDot.d.ts +1 -1
- package/components/StatusDot/index.d.ts +1 -1
- package/components/StatusDot/index.js +5 -5
- package/components/Step/Step.d.ts +1 -1
- package/components/Step/index.d.ts +1 -1
- package/components/Step/index.js +25 -25
- package/components/Step/index.js.map +1 -1
- package/components/StepButtons/StepButtons.d.ts +1 -1
- package/components/StepButtons/index.d.ts +1 -1
- package/components/StepButtons/index.js +3 -3
- package/components/Stepper/Dot.d.ts +1 -1
- package/components/Stepper/DotList.d.ts +1 -1
- package/components/Stepper/Stepper.d.ts +1 -1
- package/components/Stepper/index.d.ts +1 -1
- package/components/Stepper/index.js +71 -37
- package/components/Stepper/index.js.map +1 -1
- package/components/Table/Table.d.ts +1 -1
- package/components/Table/TableBody/TableBody.d.ts +1 -1
- package/components/Table/TableBody/index.d.ts +1 -1
- package/components/Table/TableBody/index.js +3 -3
- package/components/Table/TableCell/TableCell.d.ts +1 -1
- package/components/Table/TableCell/index.d.ts +1 -1
- package/components/Table/TableCell/index.js +5 -5
- package/components/Table/TableExpandedRow/TableExpandedRow.d.ts +1 -1
- package/components/Table/TableExpandedRow/index.d.ts +1 -1
- package/components/Table/TableExpandedRow/index.js +3 -3
- package/components/Table/TableExpanderCell/TableExpanderCell.d.ts +1 -1
- package/components/Table/TableExpanderCell/TableExpanderCellMobile.d.ts +1 -1
- package/components/Table/TableExpanderCell/index.d.ts +1 -1
- package/components/Table/TableExpanderCell/index.js +3 -3
- package/components/Table/TableHead/TableHead.d.ts +1 -1
- package/components/Table/TableHead/index.d.ts +1 -1
- package/components/Table/TableHead/index.js +5 -5
- package/components/Table/TableHeadCell/TableHeadCell.d.ts +1 -1
- package/components/Table/TableHeadCell/index.d.ts +1 -1
- package/components/Table/TableHeadCell/index.js +5 -5
- package/components/Table/TableRow/TableRow.d.ts +1 -1
- package/components/Table/TableRow/index.d.ts +1 -1
- package/components/Table/TableRow/index.js +3 -3
- package/components/Table/index.js +24 -24
- package/components/Table/utils.d.ts +1 -1
- package/components/Tabs/Tab.d.ts +1 -1
- package/components/Tabs/TabList/TabItem.d.ts +1 -1
- package/components/Tabs/TabList/TabList.d.ts +1 -1
- package/components/Tabs/TabList/index.d.ts +1 -1
- package/components/Tabs/TabList/index.js +2 -2
- package/components/Tabs/TabPanel/TabPanel.d.ts +1 -3
- package/components/Tabs/TabPanel/index.d.ts +1 -1
- package/components/Tabs/TabPanel/index.js +2 -2
- package/components/Tabs/TabPanel/styles.module.scss +0 -28
- package/components/Tabs/TabPanel/styles.module.scss.d.ts +0 -4
- package/components/Tabs/Tabs.d.ts +2 -2
- package/components/Tabs/index.d.ts +1 -1
- package/components/Tabs/index.js +45 -72
- package/components/Tabs/index.js.map +1 -1
- package/components/Tag/Tag.d.ts +1 -1
- package/components/Tag/index.d.ts +1 -1
- package/components/Tag/index.js +29 -18
- package/components/Tag/index.js.map +1 -1
- package/components/TagList/TagList.d.ts +1 -1
- package/components/TagList/index.d.ts +1 -1
- package/components/TagList/index.js +8 -6
- package/components/TagList/index.js.map +1 -1
- package/components/Textarea/Textarea.d.ts +1 -1
- package/components/Textarea/index.d.ts +1 -1
- package/components/Textarea/index.js +2 -2
- package/components/Tile/Tile.d.ts +1 -1
- package/components/Tile/index.d.ts +1 -1
- package/components/Tile/index.js +64 -55
- package/components/Tile/index.js.map +1 -1
- package/components/Tile/styles.module.scss +28 -23
- package/components/Tile/styles.module.scss.d.ts +1 -0
- package/components/Title/Title.d.ts +1 -1
- package/components/Title/index.d.ts +1 -1
- package/components/Title/index.js +5 -5
- package/components/Toggle/Toggle.d.ts +1 -2
- package/components/Toggle/index.d.ts +1 -1
- package/components/Toggle/index.js +3161 -1786
- package/components/Toggle/index.js.map +1 -1
- package/components/Tooltip/Tooltip.d.ts +1 -1
- package/components/Tooltip/TooltipWord/TooltipWord.d.ts +1 -1
- package/components/Tooltip/TooltipWord/index.d.ts +1 -1
- package/components/Tooltip/TooltipWord/index.js +2 -2
- package/components/Tooltip/index.d.ts +1 -1
- package/components/Tooltip/index.js +79 -46
- package/components/Tooltip/index.js.map +1 -1
- package/components/Trigger/HelpSign.d.ts +1 -1
- package/components/Trigger/InfoSignStroke.d.ts +1 -1
- package/components/Trigger/Trigger.d.ts +1 -1
- package/components/Trigger/index.d.ts +1 -1
- package/components/Trigger/index.js +2 -2
- package/components/Validation/ErrorList.d.ts +1 -1
- package/components/Validation/ErrorListItem.d.ts +1 -1
- package/components/Validation/Validation.d.ts +1 -1
- package/components/Validation/ValidationSummary.d.ts +1 -1
- package/components/Validation/index.d.ts +1 -1
- package/components/Validation/index.js +65 -41
- package/components/Validation/index.js.map +1 -1
- package/constants.js +113 -10
- package/constants.js.map +1 -1
- package/docs/ButtonWithModal/ButtonWithModal.d.ts +1 -1
- package/docs/ButtonWithModal/index.d.ts +1 -1
- package/docs/FormExample/index.d.ts +1 -1
- package/docs/GridExample/GridExample.d.ts +1 -1
- package/docs/GridExample/index.d.ts +1 -1
- package/docs/HelpBubbleExample/HelpBubbleExample.d.ts +1 -1
- package/docs/HelpBubbleExample/index.d.ts +1 -1
- package/docs/TooltipExample/TooltipExample.d.ts +1 -1
- package/docs/TooltipExample/index.d.ts +1 -1
- package/hoc/withBreakpoint/index.d.ts +1 -1
- package/hoc/withBreakpoint/index.js +3 -3
- package/hoc/withBreakpoint/withBreakpoint.d.ts +1 -1
- package/hoc/withBreakpoint/withBreakpoint.js +9 -9
- package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
- package/hooks/useBreakpoint.js +51 -30
- package/hooks/useBreakpoint.js.map +1 -1
- package/hooks/useDelayedState.js +18 -10
- package/hooks/useDelayedState.js.map +1 -1
- package/hooks/useElementList.js +19 -13
- package/hooks/useElementList.js.map +1 -1
- package/hooks/useEventListenerState.d.ts +1 -1
- package/hooks/useEventListenerState.js +10 -7
- package/hooks/useEventListenerState.js.map +1 -1
- package/hooks/useExpand.js +17 -10
- package/hooks/useExpand.js.map +1 -1
- package/hooks/useFocusToggle.d.ts +1 -1
- package/hooks/useFocusToggle.js +27 -15
- package/hooks/useFocusToggle.js.map +1 -1
- package/hooks/useFocusTrap.d.ts +1 -1
- package/hooks/useFocusTrap.js +26 -16
- package/hooks/useFocusTrap.js.map +1 -1
- package/hooks/useFocusableElements.js +6 -5
- package/hooks/useFocusableElements.js.map +1 -1
- package/hooks/useHover.js +5 -5
- package/hooks/useHover.js.map +1 -1
- package/hooks/useIcons.js +19 -12
- package/hooks/useIcons.js.map +1 -1
- package/hooks/useIntersectionObserver.js +15 -8
- package/hooks/useIntersectionObserver.js.map +1 -1
- package/hooks/useInterval.js +7 -7
- package/hooks/useInterval.js.map +1 -1
- package/hooks/useIsServerSide.js +8 -7
- package/hooks/useIsServerSide.js.map +1 -1
- package/hooks/useIsVisible.js +10 -8
- package/hooks/useIsVisible.js.map +1 -1
- package/hooks/useKeyboardEvent.js +17 -14
- package/hooks/useKeyboardEvent.js.map +1 -1
- package/hooks/useLayoutEvent.js +12 -9
- package/hooks/useLayoutEvent.js.map +1 -1
- package/hooks/useOutsideEvent.js +13 -8
- package/hooks/useOutsideEvent.js.map +1 -1
- package/hooks/usePrevious.js +8 -7
- package/hooks/usePrevious.js.map +1 -1
- package/hooks/usePseudoClasses.js +38 -11
- package/hooks/usePseudoClasses.js.map +1 -1
- package/hooks/useResizeObserver.js +25 -12
- package/hooks/useResizeObserver.js.map +1 -1
- package/hooks/useRovingFocus.js +51 -21
- package/hooks/useRovingFocus.js.map +1 -1
- package/hooks/useSize.js +39 -20
- package/hooks/useSize.js.map +1 -1
- package/hooks/useToggle.js +19 -11
- package/hooks/useToggle.js.map +1 -1
- package/hooks/useUuid.js +6 -6
- package/hooks/useUuid.js.map +1 -1
- package/hooks/usestopPropagation.js +14 -11
- package/hooks/usestopPropagation.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +43 -45
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/style.css +181 -1
- package/theme/currys/color.js +13 -4
- package/theme/currys/color.js.map +1 -1
- package/theme/currys/index.js +6 -6
- package/theme/currys/spacing.js +24 -20
- package/theme/currys/spacing.js.map +1 -1
- package/theme/grid.js +14 -12
- package/theme/grid.js.map +1 -1
- package/theme/index.js +10 -10
- package/theme/index.js.map +1 -1
- package/theme/palette.js +20 -14
- package/theme/palette.js.map +1 -1
- package/theme/spacers.js +17 -16
- package/theme/spacers.js.map +1 -1
- package/utils/accessibility.js +25 -18
- package/utils/accessibility.js.map +1 -1
- package/utils/component.d.ts +1 -1
- package/utils/component.js +12 -7
- package/utils/component.js.map +1 -1
- package/utils/debounce.js +15 -10
- package/utils/debounce.js.map +1 -1
- package/utils/device.js +4 -2
- package/utils/device.js.map +1 -1
- package/utils/environment.js +9 -8
- package/utils/environment.js.map +1 -1
- package/utils/focus.js +8 -5
- package/utils/focus.js.map +1 -1
- package/utils/loremtext.js +7 -5
- package/utils/loremtext.js.map +1 -1
- package/utils/mobile.js +13 -7
- package/utils/mobile.js.map +1 -1
- package/utils/refs.js +16 -7
- package/utils/refs.js.map +1 -1
- package/utils/tests/setup-test.d.ts +0 -8
- package/utils/uuid.js +3 -3
- package/utils/viewport.js +4 -4
- package/utils/viewport.js.map +1 -1
- package/utils.js +10 -2
- package/utils.js.map +1 -1
- package/uuid.js +15 -9
- package/uuid.js.map +1 -1
- package/hooks/useSticky.d.ts +0 -21
- package/hooks/useSticky.js +0 -18
- package/hooks/useSticky.js.map +0 -1
package/FormLayout.js
CHANGED
|
@@ -1,38 +1,50 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { FormSize
|
|
5
|
-
import
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { FormSize, AnalyticsId } from "./constants.js";
|
|
5
|
+
import formGroupStyles from "./components/FormLayout/styles.module.scss";
|
|
6
|
+
var FormLayoutColumns = /* @__PURE__ */ ((FormLayoutColumns2) => {
|
|
7
|
+
FormLayoutColumns2["one"] = "one";
|
|
8
|
+
FormLayoutColumns2["two"] = "two";
|
|
9
|
+
FormLayoutColumns2["three"] = "three";
|
|
10
|
+
FormLayoutColumns2["four"] = "four";
|
|
11
|
+
FormLayoutColumns2["five"] = "five";
|
|
12
|
+
return FormLayoutColumns2;
|
|
13
|
+
})(FormLayoutColumns || {});
|
|
14
|
+
const FormLayout = React.forwardRef((props, ref) => {
|
|
15
|
+
const { maxColumns: columns = "one", colMinWidth = 300, size, className, mapHelper } = props;
|
|
16
|
+
const cssVariable = { "--min-col-width": `${colMinWidth}px` };
|
|
17
|
+
const formLayoutContainerClasses = classNames(
|
|
18
|
+
formGroupStyles["form-layout-container"],
|
|
10
19
|
{
|
|
11
|
-
[
|
|
20
|
+
[formGroupStyles["form-layout-container--large"]]: size === FormSize.large
|
|
12
21
|
},
|
|
13
|
-
|
|
14
|
-
)
|
|
15
|
-
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
22
|
+
className
|
|
23
|
+
);
|
|
24
|
+
const formLayoutChildClasses = classNames(formGroupStyles["form-layout-child"], {
|
|
25
|
+
[formGroupStyles["form-layout-child--two"]]: columns === "two",
|
|
26
|
+
[formGroupStyles["form-layout-child--three"]]: columns === "three",
|
|
27
|
+
[formGroupStyles["form-layout-child--four"]]: columns === "four",
|
|
28
|
+
[formGroupStyles["form-layout-child--five"]]: columns === "five"
|
|
19
29
|
/* five */
|
|
20
30
|
});
|
|
21
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ jsx(
|
|
22
32
|
"div",
|
|
23
33
|
{
|
|
24
|
-
"data-testid":
|
|
25
|
-
"data-analyticsid":
|
|
26
|
-
style:
|
|
27
|
-
className:
|
|
28
|
-
ref
|
|
29
|
-
children:
|
|
34
|
+
"data-testid": props.testId,
|
|
35
|
+
"data-analyticsid": AnalyticsId.FormLayout,
|
|
36
|
+
style: cssVariable,
|
|
37
|
+
className: formLayoutContainerClasses,
|
|
38
|
+
ref,
|
|
39
|
+
children: React.Children.map(props.children, (child, index) => {
|
|
40
|
+
return /* @__PURE__ */ jsx("div", { className: formLayoutChildClasses, children: mapHelper ? mapHelper(child, index) : child });
|
|
41
|
+
})
|
|
30
42
|
}
|
|
31
43
|
);
|
|
32
44
|
});
|
|
33
|
-
|
|
45
|
+
FormLayout.displayName = "FormLayout";
|
|
34
46
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
47
|
+
FormLayout as F,
|
|
48
|
+
FormLayoutColumns as a
|
|
37
49
|
};
|
|
38
50
|
//# sourceMappingURL=FormLayout.js.map
|
package/FormLayout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormLayout.js","sources":["../src/components/FormLayout/FormLayout.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId, FormSize } from '../../constants';\n\nimport formGroupStyles from './styles.module.scss';\n\nexport enum FormLayoutColumns {\n one = 'one',\n two = 'two',\n three = 'three',\n four = 'four',\n five = 'five',\n}\n\nexport interface FormLayoutProps {\n /** The max number of columns that will exist if space is available */\n maxColumns?: keyof typeof FormLayoutColumns;\n /** Sets the minimum width for the columns in pixels - this determines how many will fit on a row */\n colMinWidth?: number;\n /** Items in the FormLayout component */\n children?: React.ReactNode;\n /** Changes the visuals of the formgroup */\n size?: keyof typeof FormSize;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Function that helps map the form children */\n mapHelper?: (child: React.ReactNode, index: number) => React.ReactNode;\n}\n\nexport const FormLayout = React.forwardRef((props: FormLayoutProps, ref: React.ForwardedRef<HTMLDivElement>) => {\n const { maxColumns: columns = FormLayoutColumns.one, colMinWidth = 300, size, className, mapHelper } = props;\n\n const cssVariable = { '--min-col-width': `${colMinWidth}px` } as React.CSSProperties;\n const formLayoutContainerClasses = classNames(\n formGroupStyles['form-layout-container'],\n {\n [formGroupStyles['form-layout-container--large']]: size === FormSize.large,\n },\n className\n );\n const formLayoutChildClasses = classNames(formGroupStyles['form-layout-child'], {\n [formGroupStyles['form-layout-child--two']]: columns === FormLayoutColumns.two,\n [formGroupStyles['form-layout-child--three']]: columns === FormLayoutColumns.three,\n [formGroupStyles['form-layout-child--four']]: columns === FormLayoutColumns.four,\n [formGroupStyles['form-layout-child--five']]: columns === FormLayoutColumns.five,\n });\n\n return (\n <div\n data-testid={props.testId}\n data-analyticsid={AnalyticsId.FormLayout}\n style={cssVariable}\n className={formLayoutContainerClasses}\n ref={ref}\n >\n {React.Children.map(props.children, (child: React.ReactNode, index: number) => {\n return <div className={formLayoutChildClasses}>{mapHelper ? mapHelper(child, index) : child}</div>;\n })}\n </div>\n );\n});\n\nFormLayout.displayName = 'FormLayout';\n\nexport default FormLayout;\n"],"names":["FormLayoutColumns"
|
|
1
|
+
{"version":3,"file":"FormLayout.js","sources":["../src/components/FormLayout/FormLayout.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId, FormSize } from '../../constants';\n\nimport formGroupStyles from './styles.module.scss';\n\nexport enum FormLayoutColumns {\n one = 'one',\n two = 'two',\n three = 'three',\n four = 'four',\n five = 'five',\n}\n\nexport interface FormLayoutProps {\n /** The max number of columns that will exist if space is available */\n maxColumns?: keyof typeof FormLayoutColumns;\n /** Sets the minimum width for the columns in pixels - this determines how many will fit on a row */\n colMinWidth?: number;\n /** Items in the FormLayout component */\n children?: React.ReactNode;\n /** Changes the visuals of the formgroup */\n size?: keyof typeof FormSize;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Function that helps map the form children */\n mapHelper?: (child: React.ReactNode, index: number) => React.ReactNode;\n}\n\nexport const FormLayout = React.forwardRef((props: FormLayoutProps, ref: React.ForwardedRef<HTMLDivElement>) => {\n const { maxColumns: columns = FormLayoutColumns.one, colMinWidth = 300, size, className, mapHelper } = props;\n\n const cssVariable = { '--min-col-width': `${colMinWidth}px` } as React.CSSProperties;\n const formLayoutContainerClasses = classNames(\n formGroupStyles['form-layout-container'],\n {\n [formGroupStyles['form-layout-container--large']]: size === FormSize.large,\n },\n className\n );\n const formLayoutChildClasses = classNames(formGroupStyles['form-layout-child'], {\n [formGroupStyles['form-layout-child--two']]: columns === FormLayoutColumns.two,\n [formGroupStyles['form-layout-child--three']]: columns === FormLayoutColumns.three,\n [formGroupStyles['form-layout-child--four']]: columns === FormLayoutColumns.four,\n [formGroupStyles['form-layout-child--five']]: columns === FormLayoutColumns.five,\n });\n\n return (\n <div\n data-testid={props.testId}\n data-analyticsid={AnalyticsId.FormLayout}\n style={cssVariable}\n className={formLayoutContainerClasses}\n ref={ref}\n >\n {React.Children.map(props.children, (child: React.ReactNode, index: number) => {\n return <div className={formLayoutChildClasses}>{mapHelper ? mapHelper(child, index) : child}</div>;\n })}\n </div>\n );\n});\n\nFormLayout.displayName = 'FormLayout';\n\nexport default FormLayout;\n"],"names":["FormLayoutColumns"],"mappings":";;;;;AAQY,IAAA,sCAAAA,uBAAL;AACLA,qBAAA,KAAM,IAAA;AACNA,qBAAA,KAAM,IAAA;AACNA,qBAAA,OAAQ,IAAA;AACRA,qBAAA,MAAO,IAAA;AACPA,qBAAA,MAAO,IAAA;AALGA,SAAAA;AAAA,GAAA,qBAAA,CAAA,CAAA;AAyBL,MAAM,aAAa,MAAM,WAAW,CAAC,OAAwB,QAA4C;AACxG,QAAA,EAAE,YAAY,UAAU,OAAuB,cAAc,KAAK,MAAM,WAAW,UAAA,IAAc;AAEvG,QAAM,cAAc,EAAE,mBAAmB,GAAG,WAAW,KAAK;AAC5D,QAAM,6BAA6B;AAAA,IACjC,gBAAgB,uBAAuB;AAAA,IACvC;AAAA,MACE,CAAC,gBAAgB,8BAA8B,CAAC,GAAG,SAAS,SAAS;AAAA,IACvE;AAAA,IACA;AAAA,EACF;AACA,QAAM,yBAAyB,WAAW,gBAAgB,mBAAmB,GAAG;AAAA,IAC9E,CAAC,gBAAgB,wBAAwB,CAAC,GAAG,YAAY;AAAA,IACzD,CAAC,gBAAgB,0BAA0B,CAAC,GAAG,YAAY;AAAA,IAC3D,CAAC,gBAAgB,yBAAyB,CAAC,GAAG,YAAY;AAAA,IAC1D,CAAC,gBAAgB,yBAAyB,CAAC,GAAG,YAAY;AAAA;AAAA,EAAA,CAC3D;AAGC,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAa,MAAM;AAAA,MACnB,oBAAkB,YAAY;AAAA,MAC9B,OAAO;AAAA,MACP,WAAW;AAAA,MACX;AAAA,MAEC,gBAAM,SAAS,IAAI,MAAM,UAAU,CAAC,OAAwB,UAAkB;AACtE,eAAA,oBAAC,SAAI,WAAW,wBAAyB,sBAAY,UAAU,OAAO,KAAK,IAAI,MAAM,CAAA;AAAA,MAC7F,CAAA;AAAA,IAAA;AAAA,EACH;AAEJ,CAAC;AAED,WAAW,cAAc;"}
|
package/HelpBubble.js
CHANGED
|
@@ -1,68 +1,78 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { AnalyticsId
|
|
5
|
-
import { A as
|
|
6
|
-
import { C as
|
|
7
|
-
import { P as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { AnalyticsId } from "./constants.js";
|
|
5
|
+
import { A as AnchorLink } from "./AnchorLink.js";
|
|
6
|
+
import { C as Close } from "./Close.js";
|
|
7
|
+
import { P as PopOverVariant, a as PopOver } from "./PopOver.js";
|
|
8
|
+
import styles from "./components/HelpBubble/styles.module.scss";
|
|
9
|
+
const HelpBubbleVariant = PopOverVariant;
|
|
10
|
+
const HelpBubble = React.forwardRef((props, ref) => {
|
|
10
11
|
const {
|
|
11
|
-
children
|
|
12
|
-
className
|
|
13
|
-
noCloseButton
|
|
14
|
-
linkText
|
|
15
|
-
linkUrl
|
|
16
|
-
linkTarget
|
|
17
|
-
onLinkClick
|
|
18
|
-
onClose
|
|
19
|
-
closeAriaLabel
|
|
12
|
+
children,
|
|
13
|
+
className = "",
|
|
14
|
+
noCloseButton,
|
|
15
|
+
linkText = "Mer hjelp",
|
|
16
|
+
linkUrl,
|
|
17
|
+
linkTarget,
|
|
18
|
+
onLinkClick,
|
|
19
|
+
onClose,
|
|
20
|
+
closeAriaLabel,
|
|
20
21
|
// Props passed on to PopOver
|
|
21
|
-
showBubble
|
|
22
|
-
helpBubbleId
|
|
23
|
-
variant
|
|
24
|
-
controllerRef
|
|
25
|
-
role
|
|
26
|
-
testId
|
|
27
|
-
} =
|
|
28
|
-
|
|
22
|
+
showBubble,
|
|
23
|
+
helpBubbleId,
|
|
24
|
+
variant,
|
|
25
|
+
controllerRef,
|
|
26
|
+
role,
|
|
27
|
+
testId
|
|
28
|
+
} = props;
|
|
29
|
+
const isTooltip = role === "tooltip";
|
|
30
|
+
if (!showBubble && !isTooltip) {
|
|
29
31
|
return null;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
}
|
|
33
|
+
const helpBubbleClasses = classNames(styles.helpbubble, className);
|
|
34
|
+
const contentClasses = classNames(styles.helpbubble__content, {
|
|
35
|
+
[styles["helpbubble__content--close"]]: !noCloseButton && !isTooltip
|
|
36
|
+
});
|
|
37
|
+
const renderLink = () => {
|
|
38
|
+
if (isTooltip) {
|
|
39
|
+
return;
|
|
38
40
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
if (onLinkClick && linkText) {
|
|
42
|
+
return /* @__PURE__ */ jsx("button", { className: styles.helpbubble__link, onClick: onLinkClick, type: "button", children: linkText });
|
|
43
|
+
} else if (linkUrl && linkText) {
|
|
44
|
+
return /* @__PURE__ */ jsx(AnchorLink, { href: linkUrl, target: linkTarget, children: linkText });
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const renderCloseButton = () => {
|
|
48
|
+
if (noCloseButton || isTooltip) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
return /* @__PURE__ */ jsx("div", { className: styles.helpbubble__close, children: /* @__PURE__ */ jsx(Close, { small: true, onClick: onClose, ariaLabel: closeAriaLabel }) });
|
|
42
52
|
};
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
|
|
53
|
+
return /* @__PURE__ */ jsx(
|
|
54
|
+
PopOver,
|
|
45
55
|
{
|
|
46
|
-
id:
|
|
47
|
-
variant
|
|
48
|
-
controllerRef
|
|
49
|
-
role
|
|
50
|
-
ref
|
|
51
|
-
show:
|
|
52
|
-
testId
|
|
53
|
-
children: /* @__PURE__ */
|
|
54
|
-
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
id: helpBubbleId,
|
|
57
|
+
variant,
|
|
58
|
+
controllerRef,
|
|
59
|
+
role,
|
|
60
|
+
ref,
|
|
61
|
+
show: isTooltip && showBubble,
|
|
62
|
+
testId,
|
|
63
|
+
children: /* @__PURE__ */ jsxs("div", { className: helpBubbleClasses, "data-analyticsid": AnalyticsId.HelpBubble, children: [
|
|
64
|
+
renderCloseButton(),
|
|
65
|
+
/* @__PURE__ */ jsxs("div", { className: contentClasses, children: [
|
|
66
|
+
children,
|
|
67
|
+
renderLink()
|
|
58
68
|
] })
|
|
59
69
|
] })
|
|
60
70
|
}
|
|
61
71
|
);
|
|
62
72
|
});
|
|
63
|
-
|
|
73
|
+
HelpBubble.displayName = "HelpBubble";
|
|
64
74
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
75
|
+
HelpBubble as H,
|
|
76
|
+
HelpBubbleVariant as a
|
|
67
77
|
};
|
|
68
78
|
//# sourceMappingURL=HelpBubble.js.map
|
package/HelpBubble.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpBubble.js","sources":["../src/components/HelpBubble/HelpBubble.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport AnchorLink, { AnchorLinkTargets } from '../AnchorLink';\nimport Close from '../Close';\nimport PopOver, { PopOverProps, PopOverVariant } from '../PopOver';\n\nimport styles from './styles.module.scss';\n\nexport const HelpBubbleVariant = PopOverVariant;\n\ntype HelpBubbleRole = 'tooltip';\n\nexport interface HelpBubbleProps extends Pick<PopOverProps, 'children' | 'variant' | 'controllerRef' | 'role'> {\n /** Id of the HelpBubble */\n helpBubbleId?: string;\n /** Content shown inside HelpBubble. Note that if role=\"tooltip\", you must not include interactive/focusable elements. */\n children: React.ReactNode;\n /** Ref for the element the HelpBubble is placed upon */\n controllerRef: React.RefObject<HTMLElement | SVGSVGElement>;\n /** Adds custom classes to the element. */\n className?: string;\n /** Determines the placement of the helpbubble. Default: automatic positioning. */\n variant?: keyof typeof HelpBubbleVariant;\n /** Show the bubble. Default: false. */\n showBubble?: boolean;\n /** Hide the close button in the bubble. Close button is never rendered if role=\"tooltip\". */\n noCloseButton?: boolean;\n /** Visible text on the link. Link is never rendered if role=\"tooltip\". */\n linkText?: string;\n /** Url the link leads to */\n linkUrl?: string;\n /** Sets the target type of the link. _blank adds an arrow icon at the end of the link */\n linkTarget?: AnchorLinkTargets;\n /** Function is called when link is clicked */\n onLinkClick?: () => void;\n /** Function is called when user clicks the button */\n onClose?: () => void;\n /** aria-label to be passed onto Close */\n closeAriaLabel?: string;\n /** Sets role of the HelpBubble element. If set to \"tooltip\", */\n role?: HelpBubbleRole;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst HelpBubble = React.forwardRef<HTMLDivElement | SVGSVGElement, HelpBubbleProps>((props, ref) => {\n const {\n children,\n className = '',\n noCloseButton,\n linkText = 'Mer hjelp',\n linkUrl,\n linkTarget,\n onLinkClick,\n onClose,\n closeAriaLabel,\n // Props passed on to PopOver\n showBubble,\n helpBubbleId,\n variant,\n controllerRef,\n role,\n testId,\n } = props;\n\n const isTooltip = role === 'tooltip';\n\n if (!showBubble && !isTooltip) {\n return null;\n }\n\n const helpBubbleClasses = classNames(styles.helpbubble, className);\n\n const contentClasses = classNames(styles.helpbubble__content, {\n [styles['helpbubble__content--close']]: !noCloseButton && !isTooltip,\n });\n\n const renderLink = (): JSX.Element | undefined => {\n // Det er ikke tillatt med interaktive/fokuserbare elementer i role=\"tooltip\"\n if (isTooltip) {\n return;\n }\n if (onLinkClick && linkText) {\n return (\n <button className={styles.helpbubble__link} onClick={onLinkClick} type=\"button\">\n {linkText}\n </button>\n );\n } else if (linkUrl && linkText) {\n return (\n <AnchorLink href={linkUrl} target={linkTarget}>\n {linkText}\n </AnchorLink>\n );\n }\n };\n\n const renderCloseButton = (): JSX.Element | undefined => {\n if (noCloseButton || isTooltip) {\n return;\n }\n return (\n <div className={styles.helpbubble__close}>\n <Close small onClick={onClose} ariaLabel={closeAriaLabel} />\n </div>\n );\n };\n\n return (\n <PopOver\n id={helpBubbleId}\n variant={variant}\n controllerRef={controllerRef}\n role={role}\n ref={ref}\n show={isTooltip && showBubble}\n testId={testId}\n >\n <div className={helpBubbleClasses} data-analyticsid={AnalyticsId.HelpBubble}>\n {renderCloseButton()}\n <div className={contentClasses}>\n {children}\n {renderLink()}\n </div>\n </div>\n </PopOver>\n );\n});\n\nHelpBubble.displayName = 'HelpBubble';\n\nexport default HelpBubble;\n"],"names":[
|
|
1
|
+
{"version":3,"file":"HelpBubble.js","sources":["../src/components/HelpBubble/HelpBubble.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport AnchorLink, { AnchorLinkTargets } from '../AnchorLink';\nimport Close from '../Close';\nimport PopOver, { PopOverProps, PopOverVariant } from '../PopOver';\n\nimport styles from './styles.module.scss';\n\nexport const HelpBubbleVariant = PopOverVariant;\n\ntype HelpBubbleRole = 'tooltip';\n\nexport interface HelpBubbleProps extends Pick<PopOverProps, 'children' | 'variant' | 'controllerRef' | 'role'> {\n /** Id of the HelpBubble */\n helpBubbleId?: string;\n /** Content shown inside HelpBubble. Note that if role=\"tooltip\", you must not include interactive/focusable elements. */\n children: React.ReactNode;\n /** Ref for the element the HelpBubble is placed upon */\n controllerRef: React.RefObject<HTMLElement | SVGSVGElement>;\n /** Adds custom classes to the element. */\n className?: string;\n /** Determines the placement of the helpbubble. Default: automatic positioning. */\n variant?: keyof typeof HelpBubbleVariant;\n /** Show the bubble. Default: false. */\n showBubble?: boolean;\n /** Hide the close button in the bubble. Close button is never rendered if role=\"tooltip\". */\n noCloseButton?: boolean;\n /** Visible text on the link. Link is never rendered if role=\"tooltip\". */\n linkText?: string;\n /** Url the link leads to */\n linkUrl?: string;\n /** Sets the target type of the link. _blank adds an arrow icon at the end of the link */\n linkTarget?: AnchorLinkTargets;\n /** Function is called when link is clicked */\n onLinkClick?: () => void;\n /** Function is called when user clicks the button */\n onClose?: () => void;\n /** aria-label to be passed onto Close */\n closeAriaLabel?: string;\n /** Sets role of the HelpBubble element. If set to \"tooltip\", */\n role?: HelpBubbleRole;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst HelpBubble = React.forwardRef<HTMLDivElement | SVGSVGElement, HelpBubbleProps>((props, ref) => {\n const {\n children,\n className = '',\n noCloseButton,\n linkText = 'Mer hjelp',\n linkUrl,\n linkTarget,\n onLinkClick,\n onClose,\n closeAriaLabel,\n // Props passed on to PopOver\n showBubble,\n helpBubbleId,\n variant,\n controllerRef,\n role,\n testId,\n } = props;\n\n const isTooltip = role === 'tooltip';\n\n if (!showBubble && !isTooltip) {\n return null;\n }\n\n const helpBubbleClasses = classNames(styles.helpbubble, className);\n\n const contentClasses = classNames(styles.helpbubble__content, {\n [styles['helpbubble__content--close']]: !noCloseButton && !isTooltip,\n });\n\n const renderLink = (): JSX.Element | undefined => {\n // Det er ikke tillatt med interaktive/fokuserbare elementer i role=\"tooltip\"\n if (isTooltip) {\n return;\n }\n if (onLinkClick && linkText) {\n return (\n <button className={styles.helpbubble__link} onClick={onLinkClick} type=\"button\">\n {linkText}\n </button>\n );\n } else if (linkUrl && linkText) {\n return (\n <AnchorLink href={linkUrl} target={linkTarget}>\n {linkText}\n </AnchorLink>\n );\n }\n };\n\n const renderCloseButton = (): JSX.Element | undefined => {\n if (noCloseButton || isTooltip) {\n return;\n }\n return (\n <div className={styles.helpbubble__close}>\n <Close small onClick={onClose} ariaLabel={closeAriaLabel} />\n </div>\n );\n };\n\n return (\n <PopOver\n id={helpBubbleId}\n variant={variant}\n controllerRef={controllerRef}\n role={role}\n ref={ref}\n show={isTooltip && showBubble}\n testId={testId}\n >\n <div className={helpBubbleClasses} data-analyticsid={AnalyticsId.HelpBubble}>\n {renderCloseButton()}\n <div className={contentClasses}>\n {children}\n {renderLink()}\n </div>\n </div>\n </PopOver>\n );\n});\n\nHelpBubble.displayName = 'HelpBubble';\n\nexport default HelpBubble;\n"],"names":[],"mappings":";;;;;;;;AAWO,MAAM,oBAAoB;AAqCjC,MAAM,aAAa,MAAM,WAA4D,CAAC,OAAO,QAAQ;AAC7F,QAAA;AAAA,IACJ;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE;AAEJ,QAAM,YAAY,SAAS;AAEvB,MAAA,CAAC,cAAc,CAAC,WAAW;AACtB,WAAA;AAAA,EAAA;AAGT,QAAM,oBAAoB,WAAW,OAAO,YAAY,SAAS;AAE3D,QAAA,iBAAiB,WAAW,OAAO,qBAAqB;AAAA,IAC5D,CAAC,OAAO,4BAA4B,CAAC,GAAG,CAAC,iBAAiB,CAAC;AAAA,EAAA,CAC5D;AAED,QAAM,aAAa,MAA+B;AAEhD,QAAI,WAAW;AACb;AAAA,IAAA;AAEF,QAAI,eAAe,UAAU;AAEzB,aAAA,oBAAC,YAAO,WAAW,OAAO,kBAAkB,SAAS,aAAa,MAAK,UACpE,UACH,SAAA,CAAA;AAAA,IAAA,WAEO,WAAW,UAAU;AAC9B,iCACG,YAAW,EAAA,MAAM,SAAS,QAAQ,YAChC,UACH,UAAA;AAAA,IAAA;AAAA,EAGN;AAEA,QAAM,oBAAoB,MAA+B;AACvD,QAAI,iBAAiB,WAAW;AAC9B;AAAA,IAAA;AAEF,WACG,oBAAA,OAAA,EAAI,WAAW,OAAO,mBACrB,UAAA,oBAAC,OAAM,EAAA,OAAK,MAAC,SAAS,SAAS,WAAW,eAAgB,CAAA,GAC5D;AAAA,EAEJ;AAGE,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,MAAM,aAAa;AAAA,MACnB;AAAA,MAEA,+BAAC,OAAI,EAAA,WAAW,mBAAmB,oBAAkB,YAAY,YAC9D,UAAA;AAAA,QAAkB,kBAAA;AAAA,QACnB,qBAAC,OAAI,EAAA,WAAW,gBACb,UAAA;AAAA,UAAA;AAAA,UACA,WAAW;AAAA,QAAA,EACd,CAAA;AAAA,MAAA,EACF,CAAA;AAAA,IAAA;AAAA,EACF;AAEJ,CAAC;AAED,WAAW,cAAc;"}
|
package/HighlightPanel.js
CHANGED
|
@@ -1,71 +1,97 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import classNames from "classnames";
|
|
3
3
|
import "./theme/grid.js";
|
|
4
|
-
import { useBreakpoint
|
|
4
|
+
import { useBreakpoint, Breakpoint } from "./hooks/useBreakpoint.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import { AnalyticsId
|
|
7
|
-
import { I as
|
|
8
|
-
import { L as
|
|
9
|
-
import { T as
|
|
10
|
-
import
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
import { AnalyticsId, IconSize } from "./constants.js";
|
|
7
|
+
import { I as Icon } from "./Icon.js";
|
|
8
|
+
import { L as LazyIcon } from "./LazyIcon.js";
|
|
9
|
+
import { T as Title } from "./Title.js";
|
|
10
|
+
import styles from "./components/HighlightPanel/styles.module.scss";
|
|
11
|
+
var HighlightPanelSize = /* @__PURE__ */ ((HighlightPanelSize2) => {
|
|
12
|
+
HighlightPanelSize2["medium"] = "medium";
|
|
13
|
+
HighlightPanelSize2["large"] = "large";
|
|
14
|
+
HighlightPanelSize2["fluid"] = "fluid";
|
|
15
|
+
return HighlightPanelSize2;
|
|
16
|
+
})(HighlightPanelSize || {});
|
|
17
|
+
const Wrapper = ({ className, size, children }) => /* @__PURE__ */ jsx("div", { className, "data-testid": "highlightpanel-wrapper", children: /* @__PURE__ */ jsx("div", { className: styles.highlightpanel__row, children: /* @__PURE__ */ jsx("div", { className: classNames(styles.highlightpanel__col, size === "medium" && styles["highlightpanel__col--offset"]), children }) }) });
|
|
18
|
+
const ContentWrapper = (props) => {
|
|
19
|
+
const { children, className } = props;
|
|
20
|
+
const contentWrapperClasses = classNames(styles["highlightpanel__content-wrapper"], className);
|
|
21
|
+
return /* @__PURE__ */ jsx("div", { className: contentWrapperClasses, children: /* @__PURE__ */ jsx("div", { className: classNames(styles.highlightpanel__row), children }) });
|
|
22
|
+
};
|
|
23
|
+
const HighlightPanel = (props) => {
|
|
16
24
|
const {
|
|
17
|
-
children
|
|
18
|
-
color
|
|
19
|
-
size
|
|
20
|
-
testId
|
|
21
|
-
svgIcon
|
|
22
|
-
htmlMarkup
|
|
23
|
-
className
|
|
24
|
-
contentWrapperClassName
|
|
25
|
-
title
|
|
26
|
-
titleHtmlMarkup
|
|
27
|
-
} =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
25
|
+
children,
|
|
26
|
+
color = "white",
|
|
27
|
+
size = "medium",
|
|
28
|
+
testId,
|
|
29
|
+
svgIcon,
|
|
30
|
+
htmlMarkup = "div",
|
|
31
|
+
className,
|
|
32
|
+
contentWrapperClassName,
|
|
33
|
+
title,
|
|
34
|
+
titleHtmlMarkup = "h2"
|
|
35
|
+
} = props;
|
|
36
|
+
const breakpoint = useBreakpoint();
|
|
37
|
+
const containerClassName = classNames(
|
|
38
|
+
styles[`highlightpanel--${color}`],
|
|
39
|
+
styles[`highlightpanel--${size}`],
|
|
40
|
+
svgIcon && styles["highlightpanel--has-icon"],
|
|
41
|
+
{ container: size === "medium" || size === "large" },
|
|
42
|
+
className
|
|
43
|
+
);
|
|
44
|
+
const renderContent = () => {
|
|
45
|
+
if (svgIcon) {
|
|
46
|
+
const iconSize = size === "large" && breakpoint && breakpoint >= Breakpoint.md ? IconSize.Medium : IconSize.Small;
|
|
47
|
+
const titleElement = /* @__PURE__ */ jsx(Title, { testId: "titleId", htmlMarkup: titleHtmlMarkup, appearance: "title4", children: title });
|
|
48
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
49
|
+
/* @__PURE__ */ jsxs("div", { className: styles.highlightpanel__icon, children: [
|
|
50
|
+
typeof svgIcon === "string" ? /* @__PURE__ */ jsx(LazyIcon, { iconName: svgIcon, size: iconSize }) : /* @__PURE__ */ jsx(Icon, { svgIcon, size: iconSize }),
|
|
51
|
+
title && /* @__PURE__ */ jsx("div", { className: styles["mobile"], children: titleElement })
|
|
40
52
|
] }),
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
|
|
43
|
-
|
|
53
|
+
/* @__PURE__ */ jsxs("div", { className: styles.highlightpanel__content, children: [
|
|
54
|
+
title && /* @__PURE__ */ jsx("div", { className: styles["desktop"], "aria-hidden": "true", children: titleElement }),
|
|
55
|
+
children
|
|
44
56
|
] })
|
|
45
57
|
] });
|
|
46
58
|
}
|
|
47
|
-
return
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
return children;
|
|
60
|
+
};
|
|
61
|
+
const CustomTag = htmlMarkup;
|
|
62
|
+
const contentWrapperClasses = classNames(styles["highlightpanel__content-wrapper"], contentWrapperClassName);
|
|
63
|
+
if (size === "medium") {
|
|
64
|
+
return /* @__PURE__ */ jsx(Wrapper, { className: containerClassName, size, children: /* @__PURE__ */ jsx(CustomTag, { className: contentWrapperClasses, "data-testid": testId, "data-analyticsid": AnalyticsId.HighlightPanel, children: renderContent() }) });
|
|
65
|
+
}
|
|
66
|
+
if (size === "large" && svgIcon) {
|
|
67
|
+
return /* @__PURE__ */ jsx(Wrapper, { className: containerClassName, size, children: /* @__PURE__ */ jsx(ContentWrapper, { className: contentWrapperClasses, children: /* @__PURE__ */ jsx(
|
|
68
|
+
CustomTag,
|
|
69
|
+
{
|
|
70
|
+
className: classNames(styles.highlightpanel__col, styles["highlightpanel__col--large-with-icon"]),
|
|
71
|
+
"data-testid": testId,
|
|
72
|
+
"data-analyticsid": AnalyticsId.HighlightPanel,
|
|
73
|
+
children: renderContent()
|
|
74
|
+
}
|
|
75
|
+
) }) });
|
|
76
|
+
}
|
|
77
|
+
if (size === "large") {
|
|
78
|
+
return /* @__PURE__ */ jsx(Wrapper, { className: containerClassName, size, children: /* @__PURE__ */ jsx(ContentWrapper, { className: contentWrapperClasses, children: /* @__PURE__ */ jsx(
|
|
79
|
+
CustomTag,
|
|
80
|
+
{
|
|
81
|
+
className: classNames(styles.highlightpanel__col, styles["highlightpanel__col--offset"]),
|
|
82
|
+
"data-testid": testId,
|
|
83
|
+
"data-analyticsid": AnalyticsId.HighlightPanel,
|
|
84
|
+
children: renderContent()
|
|
85
|
+
}
|
|
86
|
+
) }) });
|
|
87
|
+
}
|
|
88
|
+
if (size === "fluid") {
|
|
89
|
+
return /* @__PURE__ */ jsx(CustomTag, { className: containerClassName, "data-testid": testId, children: renderContent() });
|
|
90
|
+
}
|
|
91
|
+
return null;
|
|
66
92
|
};
|
|
67
93
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
94
|
+
HighlightPanel as H,
|
|
95
|
+
HighlightPanelSize as a
|
|
70
96
|
};
|
|
71
97
|
//# sourceMappingURL=HighlightPanel.js.map
|
package/HighlightPanel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HighlightPanel.js","sources":["../src/components/HighlightPanel/HighlightPanel.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { useBreakpoint, Breakpoint } from '../..';\nimport { AnalyticsId } from '../../constants';\nimport { PaletteNames } from '../../theme/palette';\nimport Icon, { SvgIcon, IconSize } from '../Icon';\nimport { IconName } from '../Icons/IconNames';\nimport LazyIcon from '../LazyIcon';\nimport Title, { TitleTags } from '../Title';\n\nimport styles from './styles.module.scss';\n\nexport type HighlightPanelColors = Extract<PaletteNames, 'white' | 'neutral' | 'blueberry' | 'cherry'>;\n\nexport enum HighlightPanelSize {\n medium = 'medium',\n large = 'large',\n fluid = 'fluid',\n}\n\nexport type HighlightPanelTags = Exclude<\n keyof HTMLElementTagNameMap,\n 'dir' | 'font' | 'frame' | 'frameset' | 'marquee' | 'applet' | 'basefont' | 'search'\n>;\n\nexport interface HighlightPanelProps {\n /** What's in the box? */\n children: React.ReactNode;\n /** Changes the background color. Default: white */\n color?: HighlightPanelColors;\n /** Changes the size. Default: medium */\n size?: keyof typeof HighlightPanelSize;\n /** Adds an icon to the highlightpanel. */\n svgIcon?: SvgIcon | IconName;\n /** Changes the underlying element. Default: div */\n htmlMarkup?: HighlightPanelTags;\n /** Adds custom classes to the element. */\n className?: string;\n /** Adds custom classes to the content-wrapper. Not used for fluid size. */\n contentWrapperClassName?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Element that is set after the icon-element in the DOM, often a title-element */\n title?: string;\n /** Markup props for title */\n titleHtmlMarkup?: TitleTags;\n}\n\ninterface WrapperProps {\n children?: React.ReactNode;\n className: string;\n size?: keyof typeof HighlightPanelSize;\n}\n\nconst Wrapper: React.FC<WrapperProps> = ({ className, size, children }) => (\n <div className={className} data-testid={'highlightpanel-wrapper'}>\n <div className={styles.highlightpanel__row}>\n <div className={classNames(styles.highlightpanel__col, size === HighlightPanelSize.medium && styles['highlightpanel__col--offset'])}>\n {children}\n </div>\n </div>\n </div>\n);\n\ninterface ContentWrapperProps {\n children: React.ReactNode;\n className?: string;\n}\n\nconst ContentWrapper: React.FC<ContentWrapperProps> = props => {\n const { children, className } = props;\n const contentWrapperClasses = classNames(styles['highlightpanel__content-wrapper'], className);\n\n return (\n <div className={contentWrapperClasses}>\n <div className={classNames(styles.highlightpanel__row)}>{children}</div>\n </div>\n );\n};\n\nconst HighlightPanel: React.FC<HighlightPanelProps> = props => {\n const {\n children,\n color = 'white',\n size = HighlightPanelSize.medium,\n testId,\n svgIcon,\n htmlMarkup = 'div',\n className,\n contentWrapperClassName,\n title,\n titleHtmlMarkup = 'h2',\n } = props;\n const breakpoint = useBreakpoint();\n\n const containerClassName = classNames(\n styles[`highlightpanel--${color}`],\n styles[`highlightpanel--${size}`],\n svgIcon && styles['highlightpanel--has-icon'],\n { container: size === 'medium' || size === 'large' },\n className\n );\n\n const renderContent = () => {\n if (svgIcon) {\n const iconSize = size === HighlightPanelSize.large && breakpoint && breakpoint >= Breakpoint.md ? IconSize.Medium : IconSize.Small;\n\n const titleElement = (\n <Title testId=\"titleId\" htmlMarkup={titleHtmlMarkup} appearance=\"title4\">\n {title}\n </Title>\n );\n\n return (\n <>\n <div className={styles.highlightpanel__icon}>\n {typeof svgIcon === 'string' ? <LazyIcon iconName={svgIcon} size={iconSize} /> : <Icon svgIcon={svgIcon} size={iconSize} />}\n {title && <div className={styles['mobile']}>{titleElement}</div>}\n </div>\n <div className={styles.highlightpanel__content}>\n {title && (\n <div className={styles['desktop']} aria-hidden=\"true\">\n {titleElement}\n </div>\n )}\n {children}\n </div>\n </>\n );\n }\n\n return children;\n };\n\n const CustomTag = htmlMarkup;\n\n const contentWrapperClasses = classNames(styles['highlightpanel__content-wrapper'], contentWrapperClassName);\n\n if (size === HighlightPanelSize.medium) {\n return (\n <Wrapper className={containerClassName} size={size}>\n <CustomTag className={contentWrapperClasses} data-testid={testId} data-analyticsid={AnalyticsId.HighlightPanel}>\n {renderContent()}\n </CustomTag>\n </Wrapper>\n );\n }\n\n if (size === HighlightPanelSize.large && svgIcon) {\n return (\n <Wrapper className={containerClassName} size={size}>\n <ContentWrapper className={contentWrapperClasses}>\n <CustomTag\n className={classNames(styles.highlightpanel__col, styles['highlightpanel__col--large-with-icon'])}\n data-testid={testId}\n data-analyticsid={AnalyticsId.HighlightPanel}\n >\n {renderContent()}\n </CustomTag>\n </ContentWrapper>\n </Wrapper>\n );\n }\n\n if (size === HighlightPanelSize.large) {\n return (\n <Wrapper className={containerClassName} size={size}>\n <ContentWrapper className={contentWrapperClasses}>\n <CustomTag\n className={classNames(styles.highlightpanel__col, styles['highlightpanel__col--offset'])}\n data-testid={testId}\n data-analyticsid={AnalyticsId.HighlightPanel}\n >\n {renderContent()}\n </CustomTag>\n </ContentWrapper>\n </Wrapper>\n );\n }\n\n if (size === HighlightPanelSize.fluid) {\n return (\n <CustomTag className={containerClassName} data-testid={testId}>\n {renderContent()}\n </CustomTag>\n );\n }\n\n return null;\n};\n\nexport default HighlightPanel;\n"],"names":["HighlightPanelSize"
|
|
1
|
+
{"version":3,"file":"HighlightPanel.js","sources":["../src/components/HighlightPanel/HighlightPanel.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { useBreakpoint, Breakpoint } from '../..';\nimport { AnalyticsId } from '../../constants';\nimport { PaletteNames } from '../../theme/palette';\nimport Icon, { SvgIcon, IconSize } from '../Icon';\nimport { IconName } from '../Icons/IconNames';\nimport LazyIcon from '../LazyIcon';\nimport Title, { TitleTags } from '../Title';\n\nimport styles from './styles.module.scss';\n\nexport type HighlightPanelColors = Extract<PaletteNames, 'white' | 'neutral' | 'blueberry' | 'cherry'>;\n\nexport enum HighlightPanelSize {\n medium = 'medium',\n large = 'large',\n fluid = 'fluid',\n}\n\nexport type HighlightPanelTags = Exclude<\n keyof HTMLElementTagNameMap,\n 'dir' | 'font' | 'frame' | 'frameset' | 'marquee' | 'applet' | 'basefont' | 'search'\n>;\n\nexport interface HighlightPanelProps {\n /** What's in the box? */\n children: React.ReactNode;\n /** Changes the background color. Default: white */\n color?: HighlightPanelColors;\n /** Changes the size. Default: medium */\n size?: keyof typeof HighlightPanelSize;\n /** Adds an icon to the highlightpanel. */\n svgIcon?: SvgIcon | IconName;\n /** Changes the underlying element. Default: div */\n htmlMarkup?: HighlightPanelTags;\n /** Adds custom classes to the element. */\n className?: string;\n /** Adds custom classes to the content-wrapper. Not used for fluid size. */\n contentWrapperClassName?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Element that is set after the icon-element in the DOM, often a title-element */\n title?: string;\n /** Markup props for title */\n titleHtmlMarkup?: TitleTags;\n}\n\ninterface WrapperProps {\n children?: React.ReactNode;\n className: string;\n size?: keyof typeof HighlightPanelSize;\n}\n\nconst Wrapper: React.FC<WrapperProps> = ({ className, size, children }) => (\n <div className={className} data-testid={'highlightpanel-wrapper'}>\n <div className={styles.highlightpanel__row}>\n <div className={classNames(styles.highlightpanel__col, size === HighlightPanelSize.medium && styles['highlightpanel__col--offset'])}>\n {children}\n </div>\n </div>\n </div>\n);\n\ninterface ContentWrapperProps {\n children: React.ReactNode;\n className?: string;\n}\n\nconst ContentWrapper: React.FC<ContentWrapperProps> = props => {\n const { children, className } = props;\n const contentWrapperClasses = classNames(styles['highlightpanel__content-wrapper'], className);\n\n return (\n <div className={contentWrapperClasses}>\n <div className={classNames(styles.highlightpanel__row)}>{children}</div>\n </div>\n );\n};\n\nconst HighlightPanel: React.FC<HighlightPanelProps> = props => {\n const {\n children,\n color = 'white',\n size = HighlightPanelSize.medium,\n testId,\n svgIcon,\n htmlMarkup = 'div',\n className,\n contentWrapperClassName,\n title,\n titleHtmlMarkup = 'h2',\n } = props;\n const breakpoint = useBreakpoint();\n\n const containerClassName = classNames(\n styles[`highlightpanel--${color}`],\n styles[`highlightpanel--${size}`],\n svgIcon && styles['highlightpanel--has-icon'],\n { container: size === 'medium' || size === 'large' },\n className\n );\n\n const renderContent = () => {\n if (svgIcon) {\n const iconSize = size === HighlightPanelSize.large && breakpoint && breakpoint >= Breakpoint.md ? IconSize.Medium : IconSize.Small;\n\n const titleElement = (\n <Title testId=\"titleId\" htmlMarkup={titleHtmlMarkup} appearance=\"title4\">\n {title}\n </Title>\n );\n\n return (\n <>\n <div className={styles.highlightpanel__icon}>\n {typeof svgIcon === 'string' ? <LazyIcon iconName={svgIcon} size={iconSize} /> : <Icon svgIcon={svgIcon} size={iconSize} />}\n {title && <div className={styles['mobile']}>{titleElement}</div>}\n </div>\n <div className={styles.highlightpanel__content}>\n {title && (\n <div className={styles['desktop']} aria-hidden=\"true\">\n {titleElement}\n </div>\n )}\n {children}\n </div>\n </>\n );\n }\n\n return children;\n };\n\n const CustomTag = htmlMarkup;\n\n const contentWrapperClasses = classNames(styles['highlightpanel__content-wrapper'], contentWrapperClassName);\n\n if (size === HighlightPanelSize.medium) {\n return (\n <Wrapper className={containerClassName} size={size}>\n <CustomTag className={contentWrapperClasses} data-testid={testId} data-analyticsid={AnalyticsId.HighlightPanel}>\n {renderContent()}\n </CustomTag>\n </Wrapper>\n );\n }\n\n if (size === HighlightPanelSize.large && svgIcon) {\n return (\n <Wrapper className={containerClassName} size={size}>\n <ContentWrapper className={contentWrapperClasses}>\n <CustomTag\n className={classNames(styles.highlightpanel__col, styles['highlightpanel__col--large-with-icon'])}\n data-testid={testId}\n data-analyticsid={AnalyticsId.HighlightPanel}\n >\n {renderContent()}\n </CustomTag>\n </ContentWrapper>\n </Wrapper>\n );\n }\n\n if (size === HighlightPanelSize.large) {\n return (\n <Wrapper className={containerClassName} size={size}>\n <ContentWrapper className={contentWrapperClasses}>\n <CustomTag\n className={classNames(styles.highlightpanel__col, styles['highlightpanel__col--offset'])}\n data-testid={testId}\n data-analyticsid={AnalyticsId.HighlightPanel}\n >\n {renderContent()}\n </CustomTag>\n </ContentWrapper>\n </Wrapper>\n );\n }\n\n if (size === HighlightPanelSize.fluid) {\n return (\n <CustomTag className={containerClassName} data-testid={testId}>\n {renderContent()}\n </CustomTag>\n );\n }\n\n return null;\n};\n\nexport default HighlightPanel;\n"],"names":["HighlightPanelSize"],"mappings":";;;;;;;;;;AAgBY,IAAA,uCAAAA,wBAAL;AACLA,sBAAA,QAAS,IAAA;AACTA,sBAAA,OAAQ,IAAA;AACRA,sBAAA,OAAQ,IAAA;AAHEA,SAAAA;AAAA,GAAA,sBAAA,CAAA,CAAA;AAwCZ,MAAM,UAAkC,CAAC,EAAE,WAAW,MAAM,SAAA,MAC1D,oBAAC,OAAI,EAAA,WAAsB,eAAa,0BACtC,8BAAC,OAAI,EAAA,WAAW,OAAO,qBACrB,UAAC,oBAAA,OAAA,EAAI,WAAW,WAAW,OAAO,qBAAqB,SAAS,YAA6B,OAAO,6BAA6B,CAAC,GAC/H,SACH,CAAA,EACF,CAAA,GACF;AAQF,MAAM,iBAAgD,CAAS,UAAA;AACvD,QAAA,EAAE,UAAU,UAAA,IAAc;AAChC,QAAM,wBAAwB,WAAW,OAAO,iCAAiC,GAAG,SAAS;AAE7F,SACG,oBAAA,OAAA,EAAI,WAAW,uBACd,UAAC,oBAAA,OAAA,EAAI,WAAW,WAAW,OAAO,mBAAmB,GAAI,SAAS,CAAA,GACpE;AAEJ;AAEA,MAAM,iBAAgD,CAAS,UAAA;AACvD,QAAA;AAAA,IACJ;AAAA,IACA,QAAQ;AAAA,IACR,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA,aAAa;AAAA,IACb;AAAA,IACA;AAAA,IACA;AAAA,IACA,kBAAkB;AAAA,EAAA,IAChB;AACJ,QAAM,aAAa,cAAc;AAEjC,QAAM,qBAAqB;AAAA,IACzB,OAAO,mBAAmB,KAAK,EAAE;AAAA,IACjC,OAAO,mBAAmB,IAAI,EAAE;AAAA,IAChC,WAAW,OAAO,0BAA0B;AAAA,IAC5C,EAAE,WAAW,SAAS,YAAY,SAAS,QAAQ;AAAA,IACnD;AAAA,EACF;AAEA,QAAM,gBAAgB,MAAM;AAC1B,QAAI,SAAS;AACL,YAAA,WAAW,SAAS,WAA4B,cAAc,cAAc,WAAW,KAAK,SAAS,SAAS,SAAS;AAEvH,YAAA,mCACH,OAAM,EAAA,QAAO,WAAU,YAAY,iBAAiB,YAAW,UAC7D,UACH,MAAA,CAAA;AAGF,aAEI,qBAAA,UAAA,EAAA,UAAA;AAAA,QAAC,qBAAA,OAAA,EAAI,WAAW,OAAO,sBACpB,UAAA;AAAA,UAAA,OAAO,YAAY,WAAY,oBAAA,UAAA,EAAS,UAAU,SAAS,MAAM,SAAU,CAAA,IAAK,oBAAC,MAAK,EAAA,SAAkB,MAAM,UAAU;AAAA,UACxH,SAAU,oBAAA,OAAA,EAAI,WAAW,OAAO,QAAQ,GAAI,UAAa,aAAA,CAAA;AAAA,QAAA,GAC5D;AAAA,QACC,qBAAA,OAAA,EAAI,WAAW,OAAO,yBACpB,UAAA;AAAA,UACC,SAAA,oBAAC,SAAI,WAAW,OAAO,SAAS,GAAG,eAAY,QAC5C,UACH,aAAA,CAAA;AAAA,UAED;AAAA,QAAA,EACH,CAAA;AAAA,MAAA,GACF;AAAA,IAAA;AAIG,WAAA;AAAA,EACT;AAEA,QAAM,YAAY;AAElB,QAAM,wBAAwB,WAAW,OAAO,iCAAiC,GAAG,uBAAuB;AAE3G,MAAI,SAAS,UAA2B;AACtC,+BACG,SAAQ,EAAA,WAAW,oBAAoB,MACtC,8BAAC,WAAU,EAAA,WAAW,uBAAuB,eAAa,QAAQ,oBAAkB,YAAY,gBAC7F,UAAA,gBACH,CAAA,GACF;AAAA,EAAA;AAIA,MAAA,SAAS,WAA4B,SAAS;AAE9C,WAAA,oBAAC,WAAQ,WAAW,oBAAoB,MACtC,UAAC,oBAAA,gBAAA,EAAe,WAAW,uBACzB,UAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,WAAW,OAAO,qBAAqB,OAAO,sCAAsC,CAAC;AAAA,QAChG,eAAa;AAAA,QACb,oBAAkB,YAAY;AAAA,QAE7B,UAAc,cAAA;AAAA,MAAA;AAAA,OAEnB,EACF,CAAA;AAAA,EAAA;AAIJ,MAAI,SAAS,SAA0B;AAEnC,WAAA,oBAAC,WAAQ,WAAW,oBAAoB,MACtC,UAAC,oBAAA,gBAAA,EAAe,WAAW,uBACzB,UAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,WAAW,OAAO,qBAAqB,OAAO,6BAA6B,CAAC;AAAA,QACvF,eAAa;AAAA,QACb,oBAAkB,YAAY;AAAA,QAE7B,UAAc,cAAA;AAAA,MAAA;AAAA,OAEnB,EACF,CAAA;AAAA,EAAA;AAIJ,MAAI,SAAS,SAA0B;AACrC,+BACG,WAAU,EAAA,WAAW,oBAAoB,eAAa,QACpD,2BACH;AAAA,EAAA;AAIG,SAAA;AACT;"}
|
package/HorizontalScroll.js
CHANGED
|
@@ -1,49 +1,59 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import { useRef
|
|
3
|
-
import
|
|
4
|
-
import { useIsVisible
|
|
5
|
-
import { useSize
|
|
6
|
-
import { useStopPropagation
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useRef } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { useIsVisible } from "./hooks/useIsVisible.js";
|
|
5
|
+
import { useSize } from "./hooks/useSize.js";
|
|
6
|
+
import { useStopPropagation } from "./hooks/usestopPropagation.js";
|
|
7
|
+
import styles from "./components/HorizontalScroll/styles.module.scss";
|
|
8
|
+
const ROOT_MARGIN_OFFSET = "3px";
|
|
9
|
+
const HorizontalScroll = ({ children, childWidth, testId, ...rest }) => {
|
|
10
|
+
const viewportRef = useRef(null);
|
|
11
|
+
const leftRef = useRef(null);
|
|
12
|
+
const rightRef = useRef(null);
|
|
13
|
+
const leftIsVisible = useIsVisible(leftRef, 1, { root: viewportRef == null ? void 0 : viewportRef.current, rootMargin: ROOT_MARGIN_OFFSET }, true);
|
|
14
|
+
const rightIsVisible = useIsVisible(rightRef, 1, { root: viewportRef == null ? void 0 : viewportRef.current, rootMargin: ROOT_MARGIN_OFFSET }, true);
|
|
15
|
+
const { width: viewPortWidth = 0 } = useSize(viewportRef) || {};
|
|
16
|
+
const isOverflowing = childWidth > viewPortWidth;
|
|
17
|
+
const viewportClasses = classNames(styles.horizontalscroll__viewport, isOverflowing && styles["horizontalscroll__viewport--overflow"]);
|
|
18
|
+
const hasAriaAttributes = rest["aria-label"] || rest["aria-labelledby"];
|
|
19
|
+
useStopPropagation(viewportRef, ["touchstart", "touchmove"]);
|
|
20
|
+
return /* @__PURE__ */ jsx("div", { className: styles.horizontalscroll, "data-testid": testId, children: /* @__PURE__ */ jsxs(
|
|
11
21
|
"div",
|
|
12
22
|
{
|
|
13
|
-
className:
|
|
14
|
-
ref:
|
|
15
|
-
tabIndex:
|
|
16
|
-
role:
|
|
17
|
-
...
|
|
23
|
+
className: viewportClasses,
|
|
24
|
+
ref: viewportRef,
|
|
25
|
+
tabIndex: hasAriaAttributes ? 0 : void 0,
|
|
26
|
+
role: hasAriaAttributes ? "region" : void 0,
|
|
27
|
+
...rest,
|
|
18
28
|
children: [
|
|
19
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ jsx(
|
|
20
30
|
"div",
|
|
21
31
|
{
|
|
22
|
-
className:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
!
|
|
32
|
+
className: classNames(
|
|
33
|
+
styles.horizontalscroll__indicator,
|
|
34
|
+
styles["horizontalscroll__indicator--left"],
|
|
35
|
+
!leftIsVisible && styles["horizontalscroll__indicator--visible"]
|
|
26
36
|
)
|
|
27
37
|
}
|
|
28
38
|
),
|
|
29
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ jsx(
|
|
30
40
|
"div",
|
|
31
41
|
{
|
|
32
|
-
className:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
!
|
|
42
|
+
className: classNames(
|
|
43
|
+
styles.horizontalscroll__indicator,
|
|
44
|
+
styles["horizontalscroll__indicator--right"],
|
|
45
|
+
!rightIsVisible && styles["horizontalscroll__indicator--visible"]
|
|
36
46
|
)
|
|
37
47
|
}
|
|
38
48
|
),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
41
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ jsx("div", { ref: leftRef }),
|
|
50
|
+
children,
|
|
51
|
+
/* @__PURE__ */ jsx("div", { ref: rightRef })
|
|
42
52
|
]
|
|
43
53
|
}
|
|
44
54
|
) });
|
|
45
55
|
};
|
|
46
56
|
export {
|
|
47
|
-
|
|
57
|
+
HorizontalScroll as H
|
|
48
58
|
};
|
|
49
59
|
//# sourceMappingURL=HorizontalScroll.js.map
|