@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/Table.js
CHANGED
|
@@ -1,45 +1,88 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { AnalyticsId
|
|
5
|
-
import { Breakpoint
|
|
6
|
-
import { useIsVisible
|
|
7
|
-
import { useLayoutEvent
|
|
8
|
-
import { getAriaLabelAttributes
|
|
9
|
-
import { H as
|
|
10
|
-
import
|
|
11
|
-
import { isTouchDevice
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React, { useState, useRef, useEffect } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { AnalyticsId } from "./constants.js";
|
|
5
|
+
import { Breakpoint, useBreakpoint } from "./hooks/useBreakpoint.js";
|
|
6
|
+
import { useIsVisible } from "./hooks/useIsVisible.js";
|
|
7
|
+
import { useLayoutEvent } from "./hooks/useLayoutEvent.js";
|
|
8
|
+
import { getAriaLabelAttributes } from "./utils/accessibility.js";
|
|
9
|
+
import { H as HorizontalScroll } from "./HorizontalScroll.js";
|
|
10
|
+
import tableStyles from "./components/Table/styles.module.scss";
|
|
11
|
+
import { isTouchDevice } from "./utils/device.js";
|
|
12
|
+
const configUsesCss = (config) => config.variant === ResponsiveTableVariant.centeredoverflow || config.variant === ResponsiveTableVariant.block;
|
|
13
|
+
const mapConfigToClass = (config) => config.variant === "centeredoverflow" || config.variant === "block" ? tableStyles[`table--${config.variant}-${config.breakpoint}`] : "";
|
|
14
|
+
const sortByBreakpointsDescending = (a, b) => Breakpoint[a.breakpoint] - Breakpoint[b.breakpoint];
|
|
15
|
+
const isValidForCurrentBreakpoint = (config, breakpoint) => Breakpoint[config.breakpoint] >= breakpoint;
|
|
16
|
+
const getConfigForBreakpoint = (config, breakpoint) => {
|
|
17
|
+
if (Array.isArray(config)) {
|
|
18
|
+
config.sort(sortByBreakpointsDescending);
|
|
19
|
+
return config.find((x) => isValidForCurrentBreakpoint(x, breakpoint));
|
|
20
|
+
} else if (config && isValidForCurrentBreakpoint(config, breakpoint)) {
|
|
21
|
+
return config;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const getCurrentConfig = (config, breakpoint, tableWidth, windowWidth) => {
|
|
25
|
+
const breakpointConfig = getConfigForBreakpoint(config, breakpoint);
|
|
26
|
+
const canUseHorizontalScroll = isTouchDevice();
|
|
27
|
+
const canUseCenteredOverflow = tableWidth <= windowWidth;
|
|
28
|
+
if (!breakpointConfig) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (breakpointConfig.variant === ResponsiveTableVariant.centeredoverflow && !canUseCenteredOverflow && breakpointConfig.fallbackVariant === ResponsiveTableVariant.horizontalscroll) {
|
|
32
|
+
return {
|
|
33
|
+
variant: canUseHorizontalScroll ? ResponsiveTableVariant.horizontalscroll : ResponsiveTableVariant.none,
|
|
34
|
+
breakpoint: breakpointConfig.breakpoint
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
if (breakpointConfig.variant === ResponsiveTableVariant.centeredoverflow && !canUseCenteredOverflow && breakpointConfig.fallbackVariant !== ResponsiveTableVariant.centeredoverflow) {
|
|
38
|
+
return {
|
|
39
|
+
variant: breakpointConfig.fallbackVariant ?? ResponsiveTableVariant.none,
|
|
40
|
+
breakpoint: breakpointConfig.breakpoint
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
if (breakpointConfig.variant === ResponsiveTableVariant.horizontalscroll && !canUseHorizontalScroll && breakpointConfig.fallbackVariant === ResponsiveTableVariant.centeredoverflow) {
|
|
44
|
+
return {
|
|
45
|
+
variant: canUseCenteredOverflow ? ResponsiveTableVariant.centeredoverflow : ResponsiveTableVariant.none,
|
|
46
|
+
breakpoint: breakpointConfig.breakpoint
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
if (breakpointConfig.variant === ResponsiveTableVariant.horizontalscroll && !canUseHorizontalScroll && breakpointConfig.fallbackVariant !== ResponsiveTableVariant.horizontalscroll) {
|
|
50
|
+
return {
|
|
51
|
+
variant: breakpointConfig.fallbackVariant ?? ResponsiveTableVariant.none,
|
|
52
|
+
breakpoint: breakpointConfig.breakpoint
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
return breakpointConfig;
|
|
56
|
+
};
|
|
57
|
+
const getBreakpointClass = (config) => config && configUsesCss(config) ? mapConfigToClass(config) : void 0;
|
|
58
|
+
const getCenteredOverflowTableStyle = (parentWidth, tableWidth) => {
|
|
59
|
+
if (parentWidth >= tableWidth) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const COLUMN_GUTTER_WIDTH_PX = 8;
|
|
63
|
+
return { left: `${(parentWidth - tableWidth) / 2 - COLUMN_GUTTER_WIDTH_PX}px` };
|
|
64
|
+
};
|
|
65
|
+
var ResponsiveTableVariant = /* @__PURE__ */ ((ResponsiveTableVariant2) => {
|
|
66
|
+
ResponsiveTableVariant2["none"] = "none";
|
|
67
|
+
ResponsiveTableVariant2["centeredoverflow"] = "centeredoverflow";
|
|
68
|
+
ResponsiveTableVariant2["horizontalscroll"] = "horizontalscroll";
|
|
69
|
+
ResponsiveTableVariant2["block"] = "block";
|
|
70
|
+
return ResponsiveTableVariant2;
|
|
71
|
+
})(ResponsiveTableVariant || {});
|
|
72
|
+
var ModeType = /* @__PURE__ */ ((ModeType2) => {
|
|
73
|
+
ModeType2["compact"] = "compact";
|
|
74
|
+
ModeType2["normal"] = "normal";
|
|
75
|
+
return ModeType2;
|
|
76
|
+
})(ModeType || {});
|
|
77
|
+
const defaultConfig = [
|
|
36
78
|
{
|
|
37
79
|
breakpoint: "xl",
|
|
38
80
|
variant: "centeredoverflow",
|
|
39
81
|
fallbackVariant: "horizontalscroll"
|
|
40
82
|
/* horizontalscroll */
|
|
41
83
|
}
|
|
42
|
-
]
|
|
84
|
+
];
|
|
85
|
+
const simpleConfig = [
|
|
43
86
|
{
|
|
44
87
|
breakpoint: "xl",
|
|
45
88
|
variant: "centeredoverflow",
|
|
@@ -52,47 +95,71 @@ const g = [
|
|
|
52
95
|
fallbackVariant: "block"
|
|
53
96
|
/* block */
|
|
54
97
|
}
|
|
55
|
-
]
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
98
|
+
];
|
|
99
|
+
const Table = ({
|
|
100
|
+
id,
|
|
101
|
+
testId,
|
|
102
|
+
className,
|
|
103
|
+
children,
|
|
104
|
+
breakpointConfig = defaultConfig,
|
|
105
|
+
mode = "normal",
|
|
106
|
+
scrollAriaLabel,
|
|
107
|
+
scrollAriaLabelledById,
|
|
108
|
+
...rest
|
|
65
109
|
}) => {
|
|
66
|
-
const [
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}, [
|
|
76
|
-
|
|
110
|
+
const [currentConfig, setCurrentConfig] = useState();
|
|
111
|
+
const [tableWidth, setTableWidth] = useState(0);
|
|
112
|
+
const [parentWidth, setParentWidth] = useState(0);
|
|
113
|
+
const [windowWidth, setWindowWidth] = useState(window.innerWidth);
|
|
114
|
+
const tableRef = useRef(null);
|
|
115
|
+
const tableIsVisible = useIsVisible(tableRef, 0);
|
|
116
|
+
const breakpoint = useBreakpoint();
|
|
117
|
+
useEffect(() => {
|
|
118
|
+
setCurrentConfig(getCurrentConfig(breakpointConfig, breakpoint, tableWidth, windowWidth));
|
|
119
|
+
}, [breakpointConfig, breakpoint, tableWidth, windowWidth]);
|
|
120
|
+
useEffect(() => {
|
|
121
|
+
var _a, _b, _c;
|
|
122
|
+
if ((currentConfig == null ? void 0 : currentConfig.variant) === "centeredoverflow" || (currentConfig == null ? void 0 : currentConfig.variant) === "horizontalscroll") {
|
|
123
|
+
setTableWidth(((_a = tableRef.current) == null ? void 0 : _a.getBoundingClientRect().width) ?? 0);
|
|
124
|
+
}
|
|
125
|
+
if ((currentConfig == null ? void 0 : currentConfig.variant) === "centeredoverflow") {
|
|
126
|
+
setParentWidth(((_c = (_b = tableRef.current) == null ? void 0 : _b.parentElement) == null ? void 0 : _c.getBoundingClientRect().width) ?? 0);
|
|
127
|
+
}
|
|
128
|
+
}, [currentConfig, breakpoint]);
|
|
129
|
+
useLayoutEvent(() => setWindowWidth(window.innerWidth), ["resize"], 100);
|
|
130
|
+
useEffect(() => {
|
|
131
|
+
var _a;
|
|
132
|
+
if (tableWidth === 0 && tableIsVisible) {
|
|
133
|
+
setTableWidth(((_a = tableRef.current) == null ? void 0 : _a.getBoundingClientRect().width) ?? 0);
|
|
134
|
+
}
|
|
135
|
+
}, [tableWidth, tableIsVisible]);
|
|
136
|
+
const tableStyle = (currentConfig == null ? void 0 : currentConfig.variant) === "centeredoverflow" ? getCenteredOverflowTableStyle(parentWidth, tableWidth) : void 0;
|
|
137
|
+
const breakpointClass = getBreakpointClass(currentConfig);
|
|
138
|
+
const tableClass = classNames(tableStyles.table, breakpointClass, className);
|
|
139
|
+
const table = /* @__PURE__ */ jsx(
|
|
77
140
|
"table",
|
|
78
141
|
{
|
|
79
|
-
className:
|
|
80
|
-
id
|
|
81
|
-
"data-testid":
|
|
82
|
-
"data-analyticsid":
|
|
83
|
-
ref:
|
|
84
|
-
style:
|
|
85
|
-
...
|
|
86
|
-
children:
|
|
142
|
+
className: tableClass,
|
|
143
|
+
id,
|
|
144
|
+
"data-testid": testId,
|
|
145
|
+
"data-analyticsid": AnalyticsId.Table,
|
|
146
|
+
ref: tableRef,
|
|
147
|
+
style: tableStyle,
|
|
148
|
+
...rest,
|
|
149
|
+
children: React.Children.map(children, (child) => React.isValidElement(child) && React.cloneElement(child, { mode }))
|
|
87
150
|
}
|
|
88
|
-
)
|
|
89
|
-
|
|
151
|
+
);
|
|
152
|
+
const ariaLabelAttributes = getAriaLabelAttributes({ label: scrollAriaLabel, id: scrollAriaLabelledById });
|
|
153
|
+
if ((currentConfig == null ? void 0 : currentConfig.variant) === "horizontalscroll") {
|
|
154
|
+
return /* @__PURE__ */ jsx(HorizontalScroll, { childWidth: tableWidth, testId: "horizontal-scroll", ...ariaLabelAttributes, children: table });
|
|
155
|
+
}
|
|
156
|
+
return table;
|
|
90
157
|
};
|
|
91
158
|
export {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
159
|
+
ModeType as M,
|
|
160
|
+
ResponsiveTableVariant as R,
|
|
161
|
+
Table as T,
|
|
162
|
+
defaultConfig as d,
|
|
163
|
+
simpleConfig as s
|
|
97
164
|
};
|
|
98
165
|
//# sourceMappingURL=Table.js.map
|
package/Table.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sources":["../src/components/Table/utils.ts","../src/components/Table/Table.tsx"],"sourcesContent":["import React from 'react';\n\nimport { BreakpointConfig, ResponsiveTableVariant } from './Table';\nimport { Breakpoint } from '../../hooks/useBreakpoint';\nimport { isTouchDevice } from '../../utils/device';\n\nimport styles from './styles.module.scss';\n\n/**\n * Sjekk om det skal brukes CSS for å bestemme responsivt utseende på dette breakpoint\n * @param config Konfigurasjon for responsiv oppførsel\n * @returns true om breakpoint bruker CSS\n */\nconst configUsesCss = (config: BreakpointConfig): boolean =>\n config.variant === ResponsiveTableVariant.centeredoverflow || config.variant === ResponsiveTableVariant.block;\n\n/**\n * Lag klassenavn for CSS-config\n * @param config Konfigurasjon for responsiv oppførsel\n * @returns CSS-klassenavn\n */\nconst mapConfigToClass = (config: BreakpointConfig): string =>\n config.variant === 'centeredoverflow' || config.variant === 'block' ? styles[`table--${config.variant}-${config.breakpoint}`] : '';\n\n/**\n * Sorter konfigurasjon etter breakpoints, fra største til minste\n * @param a Konfigurasjon for responsiv oppførsel\n * @param b Konfigurasjon for responsiv oppførsel\n * @returns Sortert liste\n */\nconst sortByBreakpointsDescending = (a: BreakpointConfig, b: BreakpointConfig): number =>\n Breakpoint[a.breakpoint] - Breakpoint[b.breakpoint];\n\n/**\n * Sjekk om en konfigurasjon skal brukes for nåværende breakpoint\n * @param a Konfigurasjon for responsiv oppførsel\n * @param breakpoint Nåværende breakpoint\n * @returns true dersom config skal brukes for breakpointet\n */\nconst isValidForCurrentBreakpoint = (config: BreakpointConfig, breakpoint: Breakpoint): boolean =>\n Breakpoint[config.breakpoint] >= breakpoint;\n\n/**\n * Finn konfigurasjon for nåværende breakpoint\n * @param config Konfigurasjon for responsiv oppførsel\n * @param breakpoint Nåværende breakpoint\n * @returns Konfigurasjon for responsiv oppførsel\n */\nconst getConfigForBreakpoint = (config: BreakpointConfig | BreakpointConfig[], breakpoint: Breakpoint): BreakpointConfig | undefined => {\n if (Array.isArray(config)) {\n config.sort(sortByBreakpointsDescending);\n\n return config.find(x => isValidForCurrentBreakpoint(x, breakpoint));\n } else if (config && isValidForCurrentBreakpoint(config, breakpoint)) {\n return config;\n }\n};\n\n/**\n * Finn konfigurasjon for nåværende breakpoint og tabellbredde\n * @param config Konfigurasjon for responsiv oppførsel\n * @param breakpoint Nåværende breakpoint\n * @param tableWidth Bredde på tabell i px\n * @returns Konfigurasjon for responsiv oppførsel uten fallbackVariant\n */\nexport const getCurrentConfig = (\n config: BreakpointConfig | BreakpointConfig[],\n breakpoint: Breakpoint,\n tableWidth: number,\n windowWidth: number\n): Omit<BreakpointConfig, 'fallbackVariant'> | undefined => {\n const breakpointConfig = getConfigForBreakpoint(config, breakpoint);\n const canUseHorizontalScroll = isTouchDevice();\n const canUseCenteredOverflow = tableWidth <= windowWidth;\n\n if (!breakpointConfig) {\n return;\n }\n\n if (\n breakpointConfig.variant === ResponsiveTableVariant.centeredoverflow &&\n !canUseCenteredOverflow &&\n breakpointConfig.fallbackVariant === ResponsiveTableVariant.horizontalscroll\n ) {\n return {\n variant: canUseHorizontalScroll ? ResponsiveTableVariant.horizontalscroll : ResponsiveTableVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n if (\n breakpointConfig.variant === ResponsiveTableVariant.centeredoverflow &&\n !canUseCenteredOverflow &&\n breakpointConfig.fallbackVariant !== ResponsiveTableVariant.centeredoverflow\n ) {\n return {\n variant: breakpointConfig.fallbackVariant ?? ResponsiveTableVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n if (\n breakpointConfig.variant === ResponsiveTableVariant.horizontalscroll &&\n !canUseHorizontalScroll &&\n breakpointConfig.fallbackVariant === ResponsiveTableVariant.centeredoverflow\n ) {\n return {\n variant: canUseCenteredOverflow ? ResponsiveTableVariant.centeredoverflow : ResponsiveTableVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n if (\n breakpointConfig.variant === ResponsiveTableVariant.horizontalscroll &&\n !canUseHorizontalScroll &&\n breakpointConfig.fallbackVariant !== ResponsiveTableVariant.horizontalscroll\n ) {\n return {\n variant: breakpointConfig.fallbackVariant ?? ResponsiveTableVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n return breakpointConfig;\n};\n\n/**\n * Finn klassenavn for responsiv oppførsel\n * @param config Konfigurasjon for responsiv oppførsel\n * @returns Klassenavn\n */\nexport const getBreakpointClass = (config?: BreakpointConfig): string | undefined =>\n config && configUsesCss(config) ? mapConfigToClass(config) : undefined;\n\n/**\n * Finn riktig posisjon for horisontal sentrering av tabell som skal vises \"centeredoverflow\"\n * @param parentWidth Bredde på element som tabellen ligger i\n * @param tableWidth Bredde på tabellen\n * @returns Styling som posisjonerer tabellen riktig\n */\nexport const getCenteredOverflowTableStyle = (parentWidth: number, tableWidth: number): React.CSSProperties | undefined => {\n if (parentWidth >= tableWidth) {\n return;\n }\n\n const COLUMN_GUTTER_WIDTH_PX = 8;\n\n return { left: `${(parentWidth - tableWidth) / 2 - COLUMN_GUTTER_WIDTH_PX}px` };\n};\n","import React, { useEffect, useRef, useState } from 'react';\n\nimport classNames from 'classnames';\n\nimport { getCurrentConfig, getBreakpointClass, getCenteredOverflowTableStyle } from './utils';\nimport { AnalyticsId } from '../../constants';\nimport { Breakpoint, useBreakpoint } from '../../hooks/useBreakpoint';\nimport { useIsVisible } from '../../hooks/useIsVisible';\nimport { useLayoutEvent } from '../../hooks/useLayoutEvent';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport HorizontalScroll from '../HorizontalScroll';\n\nimport styles from './styles.module.scss';\n\nexport enum ResponsiveTableVariant {\n /** No handling responsive behaviour. Default. */\n none = 'none',\n /** Overflow parent container to the left and right while remaining centered horizontally. */\n centeredoverflow = 'centeredoverflow',\n /** Show horizontal scrollbar when table is too big for the screen. */\n horizontalscroll = 'horizontalscroll',\n /** Collapse to two columns. */\n block = 'block',\n}\nexport enum ModeType {\n compact = 'compact',\n normal = 'normal',\n}\nexport interface BreakpointConfig {\n /** Breakpoint at which responsive behaviour will be applied. The table component uses a \"desktop first\" approach. */\n breakpoint: keyof typeof Breakpoint;\n /** Desired behaviour on this breakpoint and all smaller screens. */\n variant: keyof typeof ResponsiveTableVariant;\n /** If variant is horizontallscroll, use a fallback instead of device is not a touch device. */\n fallbackVariant?: keyof typeof ResponsiveTableVariant;\n}\n\nexport interface Props extends Omit<React.ComponentPropsWithoutRef<'table'>, 'style'> {\n /** Unique ID */\n id?: string;\n /** Id used for testing */\n testId?: string;\n /** Customize how the table behaves on various screen widths */\n breakpointConfig?: BreakpointConfig | BreakpointConfig[];\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table. Use TableHead and TableBody */\n children: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n /** Sets aria-label of the horizontal scroll container. scrollAriaLabel or scrollAriaLabelledById MUST be set if horizontal scrolling is enabled! */\n scrollAriaLabel?: string;\n /** Sets aria-labelledby of the horizontal scroll container. scrollAriaLabel or scrollAriaLabelledById MUST be set if horizontal scrolling is enabled! */\n scrollAriaLabelledById?: string;\n}\n\nexport const defaultConfig: BreakpointConfig[] = [\n {\n breakpoint: 'xl',\n variant: ResponsiveTableVariant.centeredoverflow,\n fallbackVariant: ResponsiveTableVariant.horizontalscroll,\n },\n];\n\nexport const simpleConfig: BreakpointConfig[] = [\n {\n breakpoint: 'xl',\n variant: ResponsiveTableVariant.centeredoverflow,\n fallbackVariant: ResponsiveTableVariant.horizontalscroll,\n },\n {\n breakpoint: 'sm',\n variant: ResponsiveTableVariant.centeredoverflow,\n fallbackVariant: ResponsiveTableVariant.block,\n },\n];\n\nexport const Table: React.FC<Props> = ({\n id,\n testId,\n className,\n children,\n breakpointConfig = defaultConfig,\n mode = ModeType.normal,\n scrollAriaLabel,\n scrollAriaLabelledById,\n ...rest\n}) => {\n const [currentConfig, setCurrentConfig] = useState<BreakpointConfig>();\n const [tableWidth, setTableWidth] = useState<number>(0);\n const [parentWidth, setParentWidth] = useState<number>(0);\n const [windowWidth, setWindowWidth] = useState(window.innerWidth);\n const tableRef = useRef<HTMLTableElement>(null);\n const tableIsVisible = useIsVisible(tableRef, 0);\n const breakpoint = useBreakpoint();\n\n useEffect(() => {\n setCurrentConfig(getCurrentConfig(breakpointConfig, breakpoint, tableWidth, windowWidth));\n }, [breakpointConfig, breakpoint, tableWidth, windowWidth]);\n\n useEffect(() => {\n if (\n currentConfig?.variant === ResponsiveTableVariant.centeredoverflow ||\n currentConfig?.variant === ResponsiveTableVariant.horizontalscroll\n ) {\n setTableWidth(tableRef.current?.getBoundingClientRect().width ?? 0);\n }\n if (currentConfig?.variant === ResponsiveTableVariant.centeredoverflow) {\n setParentWidth(tableRef.current?.parentElement?.getBoundingClientRect().width ?? 0);\n }\n }, [currentConfig, breakpoint]);\n\n useLayoutEvent(() => setWindowWidth(window.innerWidth), ['resize'], 100);\n\n useEffect(() => {\n if (tableWidth === 0 && tableIsVisible) {\n setTableWidth(tableRef.current?.getBoundingClientRect().width ?? 0);\n }\n }, [tableWidth, tableIsVisible]);\n\n const tableStyle =\n currentConfig?.variant === ResponsiveTableVariant.centeredoverflow ? getCenteredOverflowTableStyle(parentWidth, tableWidth) : undefined;\n\n const breakpointClass = getBreakpointClass(currentConfig);\n const tableClass = classNames(styles.table, breakpointClass, className);\n\n const table = (\n <table\n className={tableClass}\n id={id}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Table}\n ref={tableRef}\n style={tableStyle}\n {...rest}\n >\n {React.Children.map(children, child => React.isValidElement<{ mode?: ModeType }>(child) && React.cloneElement(child, { mode }))}\n </table>\n );\n\n const ariaLabelAttributes = getAriaLabelAttributes({ label: scrollAriaLabel, id: scrollAriaLabelledById });\n\n if (currentConfig?.variant === ResponsiveTableVariant.horizontalscroll) {\n return (\n <HorizontalScroll childWidth={tableWidth} testId=\"horizontal-scroll\" {...ariaLabelAttributes}>\n {table}\n </HorizontalScroll>\n );\n }\n\n return table;\n};\n\nexport default Table;\n"],"names":["configUsesCss","config","ResponsiveTableVariant","mapConfigToClass","styles","sortByBreakpointsDescending","a","b","Breakpoint","isValidForCurrentBreakpoint","breakpoint","getConfigForBreakpoint","x","getCurrentConfig","tableWidth","windowWidth","breakpointConfig","canUseHorizontalScroll","isTouchDevice","canUseCenteredOverflow","getBreakpointClass","getCenteredOverflowTableStyle","parentWidth","ModeType","defaultConfig","simpleConfig","Table","id","testId","className","children","mode","scrollAriaLabel","scrollAriaLabelledById","rest","currentConfig","setCurrentConfig","useState","setTableWidth","setParentWidth","setWindowWidth","tableRef","useRef","tableIsVisible","useIsVisible","useBreakpoint","useEffect","_a","_c","_b","useLayoutEvent","tableStyle","breakpointClass","tableClass","classNames","table","jsx","AnalyticsId","React","child","ariaLabelAttributes","getAriaLabelAttributes","HorizontalScroll"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"Table.js","sources":["../src/components/Table/utils.ts","../src/components/Table/Table.tsx"],"sourcesContent":["import React from 'react';\n\nimport { BreakpointConfig, ResponsiveTableVariant } from './Table';\nimport { Breakpoint } from '../../hooks/useBreakpoint';\nimport { isTouchDevice } from '../../utils/device';\n\nimport styles from './styles.module.scss';\n\n/**\n * Sjekk om det skal brukes CSS for å bestemme responsivt utseende på dette breakpoint\n * @param config Konfigurasjon for responsiv oppførsel\n * @returns true om breakpoint bruker CSS\n */\nconst configUsesCss = (config: BreakpointConfig): boolean =>\n config.variant === ResponsiveTableVariant.centeredoverflow || config.variant === ResponsiveTableVariant.block;\n\n/**\n * Lag klassenavn for CSS-config\n * @param config Konfigurasjon for responsiv oppførsel\n * @returns CSS-klassenavn\n */\nconst mapConfigToClass = (config: BreakpointConfig): string =>\n config.variant === 'centeredoverflow' || config.variant === 'block' ? styles[`table--${config.variant}-${config.breakpoint}`] : '';\n\n/**\n * Sorter konfigurasjon etter breakpoints, fra største til minste\n * @param a Konfigurasjon for responsiv oppførsel\n * @param b Konfigurasjon for responsiv oppførsel\n * @returns Sortert liste\n */\nconst sortByBreakpointsDescending = (a: BreakpointConfig, b: BreakpointConfig): number =>\n Breakpoint[a.breakpoint] - Breakpoint[b.breakpoint];\n\n/**\n * Sjekk om en konfigurasjon skal brukes for nåværende breakpoint\n * @param a Konfigurasjon for responsiv oppførsel\n * @param breakpoint Nåværende breakpoint\n * @returns true dersom config skal brukes for breakpointet\n */\nconst isValidForCurrentBreakpoint = (config: BreakpointConfig, breakpoint: Breakpoint): boolean =>\n Breakpoint[config.breakpoint] >= breakpoint;\n\n/**\n * Finn konfigurasjon for nåværende breakpoint\n * @param config Konfigurasjon for responsiv oppførsel\n * @param breakpoint Nåværende breakpoint\n * @returns Konfigurasjon for responsiv oppførsel\n */\nconst getConfigForBreakpoint = (config: BreakpointConfig | BreakpointConfig[], breakpoint: Breakpoint): BreakpointConfig | undefined => {\n if (Array.isArray(config)) {\n config.sort(sortByBreakpointsDescending);\n\n return config.find(x => isValidForCurrentBreakpoint(x, breakpoint));\n } else if (config && isValidForCurrentBreakpoint(config, breakpoint)) {\n return config;\n }\n};\n\n/**\n * Finn konfigurasjon for nåværende breakpoint og tabellbredde\n * @param config Konfigurasjon for responsiv oppførsel\n * @param breakpoint Nåværende breakpoint\n * @param tableWidth Bredde på tabell i px\n * @returns Konfigurasjon for responsiv oppførsel uten fallbackVariant\n */\nexport const getCurrentConfig = (\n config: BreakpointConfig | BreakpointConfig[],\n breakpoint: Breakpoint,\n tableWidth: number,\n windowWidth: number\n): Omit<BreakpointConfig, 'fallbackVariant'> | undefined => {\n const breakpointConfig = getConfigForBreakpoint(config, breakpoint);\n const canUseHorizontalScroll = isTouchDevice();\n const canUseCenteredOverflow = tableWidth <= windowWidth;\n\n if (!breakpointConfig) {\n return;\n }\n\n if (\n breakpointConfig.variant === ResponsiveTableVariant.centeredoverflow &&\n !canUseCenteredOverflow &&\n breakpointConfig.fallbackVariant === ResponsiveTableVariant.horizontalscroll\n ) {\n return {\n variant: canUseHorizontalScroll ? ResponsiveTableVariant.horizontalscroll : ResponsiveTableVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n if (\n breakpointConfig.variant === ResponsiveTableVariant.centeredoverflow &&\n !canUseCenteredOverflow &&\n breakpointConfig.fallbackVariant !== ResponsiveTableVariant.centeredoverflow\n ) {\n return {\n variant: breakpointConfig.fallbackVariant ?? ResponsiveTableVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n if (\n breakpointConfig.variant === ResponsiveTableVariant.horizontalscroll &&\n !canUseHorizontalScroll &&\n breakpointConfig.fallbackVariant === ResponsiveTableVariant.centeredoverflow\n ) {\n return {\n variant: canUseCenteredOverflow ? ResponsiveTableVariant.centeredoverflow : ResponsiveTableVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n if (\n breakpointConfig.variant === ResponsiveTableVariant.horizontalscroll &&\n !canUseHorizontalScroll &&\n breakpointConfig.fallbackVariant !== ResponsiveTableVariant.horizontalscroll\n ) {\n return {\n variant: breakpointConfig.fallbackVariant ?? ResponsiveTableVariant.none,\n breakpoint: breakpointConfig.breakpoint,\n };\n }\n\n return breakpointConfig;\n};\n\n/**\n * Finn klassenavn for responsiv oppførsel\n * @param config Konfigurasjon for responsiv oppførsel\n * @returns Klassenavn\n */\nexport const getBreakpointClass = (config?: BreakpointConfig): string | undefined =>\n config && configUsesCss(config) ? mapConfigToClass(config) : undefined;\n\n/**\n * Finn riktig posisjon for horisontal sentrering av tabell som skal vises \"centeredoverflow\"\n * @param parentWidth Bredde på element som tabellen ligger i\n * @param tableWidth Bredde på tabellen\n * @returns Styling som posisjonerer tabellen riktig\n */\nexport const getCenteredOverflowTableStyle = (parentWidth: number, tableWidth: number): React.CSSProperties | undefined => {\n if (parentWidth >= tableWidth) {\n return;\n }\n\n const COLUMN_GUTTER_WIDTH_PX = 8;\n\n return { left: `${(parentWidth - tableWidth) / 2 - COLUMN_GUTTER_WIDTH_PX}px` };\n};\n","import React, { useEffect, useRef, useState } from 'react';\n\nimport classNames from 'classnames';\n\nimport { getCurrentConfig, getBreakpointClass, getCenteredOverflowTableStyle } from './utils';\nimport { AnalyticsId } from '../../constants';\nimport { Breakpoint, useBreakpoint } from '../../hooks/useBreakpoint';\nimport { useIsVisible } from '../../hooks/useIsVisible';\nimport { useLayoutEvent } from '../../hooks/useLayoutEvent';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport HorizontalScroll from '../HorizontalScroll';\n\nimport styles from './styles.module.scss';\n\nexport enum ResponsiveTableVariant {\n /** No handling responsive behaviour. Default. */\n none = 'none',\n /** Overflow parent container to the left and right while remaining centered horizontally. */\n centeredoverflow = 'centeredoverflow',\n /** Show horizontal scrollbar when table is too big for the screen. */\n horizontalscroll = 'horizontalscroll',\n /** Collapse to two columns. */\n block = 'block',\n}\nexport enum ModeType {\n compact = 'compact',\n normal = 'normal',\n}\nexport interface BreakpointConfig {\n /** Breakpoint at which responsive behaviour will be applied. The table component uses a \"desktop first\" approach. */\n breakpoint: keyof typeof Breakpoint;\n /** Desired behaviour on this breakpoint and all smaller screens. */\n variant: keyof typeof ResponsiveTableVariant;\n /** If variant is horizontallscroll, use a fallback instead of device is not a touch device. */\n fallbackVariant?: keyof typeof ResponsiveTableVariant;\n}\n\nexport interface Props extends Omit<React.ComponentPropsWithoutRef<'table'>, 'style'> {\n /** Unique ID */\n id?: string;\n /** Id used for testing */\n testId?: string;\n /** Customize how the table behaves on various screen widths */\n breakpointConfig?: BreakpointConfig | BreakpointConfig[];\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table. Use TableHead and TableBody */\n children: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n /** Sets aria-label of the horizontal scroll container. scrollAriaLabel or scrollAriaLabelledById MUST be set if horizontal scrolling is enabled! */\n scrollAriaLabel?: string;\n /** Sets aria-labelledby of the horizontal scroll container. scrollAriaLabel or scrollAriaLabelledById MUST be set if horizontal scrolling is enabled! */\n scrollAriaLabelledById?: string;\n}\n\nexport const defaultConfig: BreakpointConfig[] = [\n {\n breakpoint: 'xl',\n variant: ResponsiveTableVariant.centeredoverflow,\n fallbackVariant: ResponsiveTableVariant.horizontalscroll,\n },\n];\n\nexport const simpleConfig: BreakpointConfig[] = [\n {\n breakpoint: 'xl',\n variant: ResponsiveTableVariant.centeredoverflow,\n fallbackVariant: ResponsiveTableVariant.horizontalscroll,\n },\n {\n breakpoint: 'sm',\n variant: ResponsiveTableVariant.centeredoverflow,\n fallbackVariant: ResponsiveTableVariant.block,\n },\n];\n\nexport const Table: React.FC<Props> = ({\n id,\n testId,\n className,\n children,\n breakpointConfig = defaultConfig,\n mode = ModeType.normal,\n scrollAriaLabel,\n scrollAriaLabelledById,\n ...rest\n}) => {\n const [currentConfig, setCurrentConfig] = useState<BreakpointConfig>();\n const [tableWidth, setTableWidth] = useState<number>(0);\n const [parentWidth, setParentWidth] = useState<number>(0);\n const [windowWidth, setWindowWidth] = useState(window.innerWidth);\n const tableRef = useRef<HTMLTableElement>(null);\n const tableIsVisible = useIsVisible(tableRef, 0);\n const breakpoint = useBreakpoint();\n\n useEffect(() => {\n setCurrentConfig(getCurrentConfig(breakpointConfig, breakpoint, tableWidth, windowWidth));\n }, [breakpointConfig, breakpoint, tableWidth, windowWidth]);\n\n useEffect(() => {\n if (\n currentConfig?.variant === ResponsiveTableVariant.centeredoverflow ||\n currentConfig?.variant === ResponsiveTableVariant.horizontalscroll\n ) {\n setTableWidth(tableRef.current?.getBoundingClientRect().width ?? 0);\n }\n if (currentConfig?.variant === ResponsiveTableVariant.centeredoverflow) {\n setParentWidth(tableRef.current?.parentElement?.getBoundingClientRect().width ?? 0);\n }\n }, [currentConfig, breakpoint]);\n\n useLayoutEvent(() => setWindowWidth(window.innerWidth), ['resize'], 100);\n\n useEffect(() => {\n if (tableWidth === 0 && tableIsVisible) {\n setTableWidth(tableRef.current?.getBoundingClientRect().width ?? 0);\n }\n }, [tableWidth, tableIsVisible]);\n\n const tableStyle =\n currentConfig?.variant === ResponsiveTableVariant.centeredoverflow ? getCenteredOverflowTableStyle(parentWidth, tableWidth) : undefined;\n\n const breakpointClass = getBreakpointClass(currentConfig);\n const tableClass = classNames(styles.table, breakpointClass, className);\n\n const table = (\n <table\n className={tableClass}\n id={id}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Table}\n ref={tableRef}\n style={tableStyle}\n {...rest}\n >\n {React.Children.map(children, child => React.isValidElement<{ mode?: ModeType }>(child) && React.cloneElement(child, { mode }))}\n </table>\n );\n\n const ariaLabelAttributes = getAriaLabelAttributes({ label: scrollAriaLabel, id: scrollAriaLabelledById });\n\n if (currentConfig?.variant === ResponsiveTableVariant.horizontalscroll) {\n return (\n <HorizontalScroll childWidth={tableWidth} testId=\"horizontal-scroll\" {...ariaLabelAttributes}>\n {table}\n </HorizontalScroll>\n );\n }\n\n return table;\n};\n\nexport default Table;\n"],"names":["styles","ResponsiveTableVariant","ModeType"],"mappings":"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"}
|
package/TableBody.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { M as
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import tableStyles from "./components/Table/styles.module.scss";
|
|
5
|
+
import { M as ModeType } from "./Table.js";
|
|
6
|
+
const TableBody = ({ className, children, mode = ModeType.normal, ...rest }) => {
|
|
7
|
+
const tableBodyClasses = classNames(tableStyles["table-body"], className);
|
|
8
|
+
return /* @__PURE__ */ jsx("tbody", { className: tableBodyClasses, ...rest, children: React.Children.map(children, (child) => React.isValidElement(child) && React.cloneElement(child, { mode })) });
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
T
|
|
11
|
+
TableBody as T
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=TableBody.js.map
|
package/TableBody.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBody.js","sources":["../src/components/Table/TableBody/TableBody.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport tableStyles from '../styles.module.scss';\nimport { ModeType } from '../Table';\n\nexport interface Props extends Omit<React.ComponentPropsWithoutRef<'tbody'>, 'style'> {\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table body. Use TableRows */\n children?: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n}\n\nexport const TableBody: React.FC<Props> = ({ className, children, mode = ModeType.normal, ...rest }) => {\n const tableBodyClasses = classNames(tableStyles['table-body'], className);\n return (\n <tbody className={tableBodyClasses} {...rest}>\n {React.Children.map(children, child => React.isValidElement<{ mode?: ModeType }>(child) && React.cloneElement(child, { mode }))}\n </tbody>\n );\n};\n\nexport default TableBody;\n"],"names":[
|
|
1
|
+
{"version":3,"file":"TableBody.js","sources":["../src/components/Table/TableBody/TableBody.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport tableStyles from '../styles.module.scss';\nimport { ModeType } from '../Table';\n\nexport interface Props extends Omit<React.ComponentPropsWithoutRef<'tbody'>, 'style'> {\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table body. Use TableRows */\n children?: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n}\n\nexport const TableBody: React.FC<Props> = ({ className, children, mode = ModeType.normal, ...rest }) => {\n const tableBodyClasses = classNames(tableStyles['table-body'], className);\n return (\n <tbody className={tableBodyClasses} {...rest}>\n {React.Children.map(children, child => React.isValidElement<{ mode?: ModeType }>(child) && React.cloneElement(child, { mode }))}\n </tbody>\n );\n};\n\nexport default TableBody;\n"],"names":[],"mappings":";;;;;AAgBa,MAAA,YAA6B,CAAC,EAAE,WAAW,UAAU,OAAO,SAAS,QAAQ,GAAG,WAAW;AACtG,QAAM,mBAAmB,WAAW,YAAY,YAAY,GAAG,SAAS;AAEtE,SAAA,oBAAC,WAAM,WAAW,kBAAmB,GAAG,MACrC,UAAA,MAAM,SAAS,IAAI,UAAU,CAAA,UAAS,MAAM,eAAoC,KAAK,KAAK,MAAM,aAAa,OAAO,EAAE,KAAM,CAAA,CAAC,EAChI,CAAA;AAEJ;"}
|
package/TableCell.js
CHANGED
|
@@ -1,30 +1,35 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { M as
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import tableStyles from "./components/Table/styles.module.scss";
|
|
4
|
+
import { M as ModeType } from "./Table.js";
|
|
5
|
+
var TextAlign = /* @__PURE__ */ ((TextAlign2) => {
|
|
6
|
+
TextAlign2["left"] = "left";
|
|
7
|
+
TextAlign2["center"] = "center";
|
|
8
|
+
TextAlign2["right"] = "right";
|
|
9
|
+
return TextAlign2;
|
|
10
|
+
})(TextAlign || {});
|
|
11
|
+
const TableCell = ({
|
|
12
|
+
nowrap = false,
|
|
13
|
+
textAlign = "left",
|
|
14
|
+
dataLabel,
|
|
15
|
+
children,
|
|
16
|
+
className,
|
|
17
|
+
testId,
|
|
18
|
+
mode = ModeType.normal,
|
|
19
|
+
...rest
|
|
15
20
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
{ [
|
|
19
|
-
{ [
|
|
20
|
-
{ [
|
|
21
|
-
{ [
|
|
22
|
-
|
|
21
|
+
const tableCellClass = classNames(
|
|
22
|
+
tableStyles["table__cell"],
|
|
23
|
+
{ [tableStyles["table__cell--compact"]]: mode === ModeType.compact },
|
|
24
|
+
{ [tableStyles["table__cell--nowrap"]]: nowrap },
|
|
25
|
+
{ [tableStyles["table__cell--center"]]: textAlign === "center" },
|
|
26
|
+
{ [tableStyles["table__cell--right"]]: textAlign === "right" },
|
|
27
|
+
className
|
|
23
28
|
);
|
|
24
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ jsx("td", { className: tableCellClass, "data-label": dataLabel, "data-testid": testId, ...rest, children });
|
|
25
30
|
};
|
|
26
31
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
32
|
+
TableCell as T,
|
|
33
|
+
TextAlign as a
|
|
29
34
|
};
|
|
30
35
|
//# sourceMappingURL=TableCell.js.map
|
package/TableCell.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.js","sources":["../src/components/Table/TableCell/TableCell.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport tableStyles from '../styles.module.scss';\nimport { ModeType } from '../Table';\n\nexport enum TextAlign {\n left = 'left',\n center = 'center',\n right = 'right',\n}\n\nexport interface Props extends Omit<React.ComponentPropsWithoutRef<'td'>, 'style'> {\n /** Label used for small viewport block */\n dataLabel?: string;\n /** text align in cell */\n textAlign?: TextAlign;\n /** nowrap for white space */\n nowrap?: boolean;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table cell */\n children?: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n /** For test purposes */\n testId?: string;\n}\n\nexport const TableCell: React.FC<Props> = ({\n nowrap = false,\n textAlign = TextAlign.left,\n dataLabel,\n children,\n className,\n testId,\n mode = ModeType.normal,\n ...rest\n}) => {\n const tableCellClass = classNames(\n tableStyles['table__cell'],\n { [tableStyles['table__cell--compact']]: mode === ModeType.compact },\n { [tableStyles['table__cell--nowrap']]: nowrap },\n { [tableStyles['table__cell--center']]: textAlign === 'center' },\n { [tableStyles['table__cell--right']]: textAlign === 'right' },\n className\n );\n\n return (\n <td className={tableCellClass} data-label={dataLabel} data-testid={testId} {...rest}>\n {children}\n </td>\n );\n};\n\nexport default TableCell;\n"],"names":["TextAlign"
|
|
1
|
+
{"version":3,"file":"TableCell.js","sources":["../src/components/Table/TableCell/TableCell.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport tableStyles from '../styles.module.scss';\nimport { ModeType } from '../Table';\n\nexport enum TextAlign {\n left = 'left',\n center = 'center',\n right = 'right',\n}\n\nexport interface Props extends Omit<React.ComponentPropsWithoutRef<'td'>, 'style'> {\n /** Label used for small viewport block */\n dataLabel?: string;\n /** text align in cell */\n textAlign?: TextAlign;\n /** nowrap for white space */\n nowrap?: boolean;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the table cell */\n children?: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n /** For test purposes */\n testId?: string;\n}\n\nexport const TableCell: React.FC<Props> = ({\n nowrap = false,\n textAlign = TextAlign.left,\n dataLabel,\n children,\n className,\n testId,\n mode = ModeType.normal,\n ...rest\n}) => {\n const tableCellClass = classNames(\n tableStyles['table__cell'],\n { [tableStyles['table__cell--compact']]: mode === ModeType.compact },\n { [tableStyles['table__cell--nowrap']]: nowrap },\n { [tableStyles['table__cell--center']]: textAlign === 'center' },\n { [tableStyles['table__cell--right']]: textAlign === 'right' },\n className\n );\n\n return (\n <td className={tableCellClass} data-label={dataLabel} data-testid={testId} {...rest}>\n {children}\n </td>\n );\n};\n\nexport default TableCell;\n"],"names":["TextAlign"],"mappings":";;;;AAOY,IAAA,8BAAAA,eAAL;AACLA,aAAA,MAAO,IAAA;AACPA,aAAA,QAAS,IAAA;AACTA,aAAA,OAAQ,IAAA;AAHEA,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;AAuBL,MAAM,YAA6B,CAAC;AAAA,EACzC,SAAS;AAAA,EACT,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO,SAAS;AAAA,EAChB,GAAG;AACL,MAAM;AACJ,QAAM,iBAAiB;AAAA,IACrB,YAAY,aAAa;AAAA,IACzB,EAAE,CAAC,YAAY,sBAAsB,CAAC,GAAG,SAAS,SAAS,QAAQ;AAAA,IACnE,EAAE,CAAC,YAAY,qBAAqB,CAAC,GAAG,OAAO;AAAA,IAC/C,EAAE,CAAC,YAAY,qBAAqB,CAAC,GAAG,cAAc,SAAS;AAAA,IAC/D,EAAE,CAAC,YAAY,oBAAoB,CAAC,GAAG,cAAc,QAAQ;AAAA,IAC7D;AAAA,EACF;AAGE,SAAA,oBAAC,MAAG,EAAA,WAAW,gBAAgB,cAAY,WAAW,eAAa,QAAS,GAAG,MAC5E,SACH,CAAA;AAEJ;"}
|
package/TableExpandedRow.js
CHANGED
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { B as
|
|
5
|
-
import { I as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { M as
|
|
9
|
-
const
|
|
10
|
-
numberOfColumns
|
|
11
|
-
expanded
|
|
12
|
-
hideDetailsText
|
|
13
|
-
toggleClick
|
|
14
|
-
children
|
|
15
|
-
className
|
|
16
|
-
mode
|
|
17
|
-
id
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { B as Button } from "./Button.js";
|
|
5
|
+
import { I as Icon } from "./Icon.js";
|
|
6
|
+
import ChevronUp from "./components/Icons/ChevronUp.js";
|
|
7
|
+
import tableStyles from "./components/Table/styles.module.scss";
|
|
8
|
+
import { M as ModeType } from "./Table.js";
|
|
9
|
+
const TableExpandedRow = ({
|
|
10
|
+
numberOfColumns,
|
|
11
|
+
expanded,
|
|
12
|
+
hideDetailsText,
|
|
13
|
+
toggleClick,
|
|
14
|
+
children,
|
|
15
|
+
className,
|
|
16
|
+
mode = ModeType.normal,
|
|
17
|
+
id
|
|
18
18
|
}) => {
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
{ [
|
|
22
|
-
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
const tableRowClass = classNames(
|
|
20
|
+
tableStyles["table__expanded-row"],
|
|
21
|
+
{ [tableStyles["table__expanded-row--expanded"]]: expanded },
|
|
22
|
+
className
|
|
23
|
+
);
|
|
24
|
+
const tableCellClass = classNames(tableStyles["table__cell"], className, {
|
|
25
|
+
[tableStyles["table__cell--compact"]]: mode === ModeType.compact
|
|
26
|
+
});
|
|
27
|
+
const containerClass = classNames(tableStyles["table__expanded-row-container"]);
|
|
28
|
+
return /* @__PURE__ */ jsx("tr", { className: tableRowClass, id, children: /* @__PURE__ */ jsx("td", { colSpan: numberOfColumns, className: tableCellClass, children: /* @__PURE__ */ jsxs("div", { className: containerClass, children: [
|
|
29
|
+
React.Children.map(children, (child) => React.isValidElement(child) && React.cloneElement(child)),
|
|
30
|
+
/* @__PURE__ */ jsxs(Button, { variant: "borderless", onClick: toggleClick, "aria-expanded": expanded, tabIndex: expanded ? 0 : -1, children: [
|
|
31
|
+
hideDetailsText,
|
|
32
|
+
/* @__PURE__ */ jsx(Icon, { svgIcon: ChevronUp })
|
|
31
33
|
] })
|
|
32
34
|
] }) }) });
|
|
33
35
|
};
|
|
34
36
|
export {
|
|
35
|
-
|
|
37
|
+
TableExpandedRow as T
|
|
36
38
|
};
|
|
37
39
|
//# sourceMappingURL=TableExpandedRow.js.map
|
package/TableExpandedRow.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableExpandedRow.js","sources":["../src/components/Table/TableExpandedRow/TableExpandedRow.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport Button from '../../Button';\nimport Icon from '../../Icon';\nimport ChevronUp from '../../Icons/ChevronUp';\nimport tableStyles from '../styles.module.scss';\nimport { ModeType } from '../Table';\n\nexport interface Props {\n /** Row is expanded. */\n expanded: boolean;\n /** Number of columns in table. */\n numberOfColumns: number;\n /** Text for hide button. */\n hideDetailsText: string;\n /** When hide button inside expanded row is clicked. */\n toggleClick: () => void;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the expanded row. */\n children: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n /** Row id. For use with aria-controls. */\n id?: string;\n}\n\nexport const TableExpandedRow = ({\n numberOfColumns,\n expanded,\n hideDetailsText,\n toggleClick,\n children,\n className,\n mode = ModeType.normal,\n id,\n}: Props): React.JSX.Element => {\n const tableRowClass = classNames(\n tableStyles['table__expanded-row'],\n { [tableStyles['table__expanded-row--expanded']]: expanded },\n className\n );\n const tableCellClass = classNames(tableStyles['table__cell'], className, {\n [tableStyles['table__cell--compact']]: mode === ModeType.compact,\n });\n\n const containerClass = classNames(tableStyles['table__expanded-row-container']);\n\n return (\n <tr className={tableRowClass} id={id}>\n <td colSpan={numberOfColumns} className={tableCellClass}>\n <div className={containerClass}>\n {React.Children.map(children, child => React.isValidElement(child) && React.cloneElement(child))}\n <Button variant={'borderless'} onClick={toggleClick} aria-expanded={expanded} tabIndex={expanded ? 0 : -1}>\n {hideDetailsText}\n <Icon svgIcon={ChevronUp} />\n </Button>\n </div>\n </td>\n </tr>\n );\n};\n\nexport default TableExpandedRow;\n"],"names":[
|
|
1
|
+
{"version":3,"file":"TableExpandedRow.js","sources":["../src/components/Table/TableExpandedRow/TableExpandedRow.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport Button from '../../Button';\nimport Icon from '../../Icon';\nimport ChevronUp from '../../Icons/ChevronUp';\nimport tableStyles from '../styles.module.scss';\nimport { ModeType } from '../Table';\n\nexport interface Props {\n /** Row is expanded. */\n expanded: boolean;\n /** Number of columns in table. */\n numberOfColumns: number;\n /** Text for hide button. */\n hideDetailsText: string;\n /** When hide button inside expanded row is clicked. */\n toggleClick: () => void;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the content of the expanded row. */\n children: React.ReactNode;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n /** Row id. For use with aria-controls. */\n id?: string;\n}\n\nexport const TableExpandedRow = ({\n numberOfColumns,\n expanded,\n hideDetailsText,\n toggleClick,\n children,\n className,\n mode = ModeType.normal,\n id,\n}: Props): React.JSX.Element => {\n const tableRowClass = classNames(\n tableStyles['table__expanded-row'],\n { [tableStyles['table__expanded-row--expanded']]: expanded },\n className\n );\n const tableCellClass = classNames(tableStyles['table__cell'], className, {\n [tableStyles['table__cell--compact']]: mode === ModeType.compact,\n });\n\n const containerClass = classNames(tableStyles['table__expanded-row-container']);\n\n return (\n <tr className={tableRowClass} id={id}>\n <td colSpan={numberOfColumns} className={tableCellClass}>\n <div className={containerClass}>\n {React.Children.map(children, child => React.isValidElement(child) && React.cloneElement(child))}\n <Button variant={'borderless'} onClick={toggleClick} aria-expanded={expanded} tabIndex={expanded ? 0 : -1}>\n {hideDetailsText}\n <Icon svgIcon={ChevronUp} />\n </Button>\n </div>\n </td>\n </tr>\n );\n};\n\nexport default TableExpandedRow;\n"],"names":[],"mappings":";;;;;;;;AA6BO,MAAM,mBAAmB,CAAC;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO,SAAS;AAAA,EAChB;AACF,MAAgC;AAC9B,QAAM,gBAAgB;AAAA,IACpB,YAAY,qBAAqB;AAAA,IACjC,EAAE,CAAC,YAAY,+BAA+B,CAAC,GAAG,SAAS;AAAA,IAC3D;AAAA,EACF;AACA,QAAM,iBAAiB,WAAW,YAAY,aAAa,GAAG,WAAW;AAAA,IACvE,CAAC,YAAY,sBAAsB,CAAC,GAAG,SAAS,SAAS;AAAA,EAAA,CAC1D;AAED,QAAM,iBAAiB,WAAW,YAAY,+BAA+B,CAAC;AAE9E,SACG,oBAAA,MAAA,EAAG,WAAW,eAAe,IAC5B,UAAC,oBAAA,MAAA,EAAG,SAAS,iBAAiB,WAAW,gBACvC,UAAC,qBAAA,OAAA,EAAI,WAAW,gBACb,UAAA;AAAA,IAAM,MAAA,SAAS,IAAI,UAAU,CAAS,UAAA,MAAM,eAAe,KAAK,KAAK,MAAM,aAAa,KAAK,CAAC;AAAA,IAC/F,qBAAC,QAAO,EAAA,SAAS,cAAc,SAAS,aAAa,iBAAe,UAAU,UAAU,WAAW,IAAI,IACpG,UAAA;AAAA,MAAA;AAAA,MACD,oBAAC,MAAK,EAAA,SAAS,UAAW,CAAA;AAAA,IAAA,EAC5B,CAAA;AAAA,EAAA,EACF,CAAA,EACF,CAAA,GACF;AAEJ;"}
|
package/TableExpanderCell.js
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import
|
|
3
|
-
import { B as
|
|
4
|
-
import { I as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { M as
|
|
9
|
-
const
|
|
10
|
-
expandableRowId
|
|
11
|
-
hideDetailsText
|
|
12
|
-
showDetailsText
|
|
13
|
-
expanded
|
|
14
|
-
className
|
|
15
|
-
mode
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import { B as Button } from "./Button.js";
|
|
4
|
+
import { I as Icon } from "./Icon.js";
|
|
5
|
+
import ChevronDown from "./components/Icons/ChevronDown.js";
|
|
6
|
+
import ChevronUp from "./components/Icons/ChevronUp.js";
|
|
7
|
+
import tableStyles from "./components/Table/styles.module.scss";
|
|
8
|
+
import { M as ModeType } from "./Table.js";
|
|
9
|
+
const TableExpanderCell = ({
|
|
10
|
+
expandableRowId,
|
|
11
|
+
hideDetailsText,
|
|
12
|
+
showDetailsText,
|
|
13
|
+
expanded,
|
|
14
|
+
className,
|
|
15
|
+
mode = ModeType.normal
|
|
16
16
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
[
|
|
17
|
+
const tableCellClass = classNames(tableStyles["table__cell"], tableStyles["table__cell-expander"], className, {
|
|
18
|
+
[tableStyles["table__cell--compact"]]: mode === ModeType.compact
|
|
19
19
|
});
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
const icon = expanded ? ChevronUp : ChevronDown;
|
|
21
|
+
return /* @__PURE__ */ jsx("td", { className: tableCellClass, children: /* @__PURE__ */ jsx(
|
|
22
|
+
Button,
|
|
22
23
|
{
|
|
23
24
|
variant: "borderless",
|
|
24
|
-
"aria-expanded":
|
|
25
|
-
"aria-controls":
|
|
26
|
-
ariaLabel:
|
|
27
|
-
children: /* @__PURE__ */
|
|
25
|
+
"aria-expanded": expanded,
|
|
26
|
+
"aria-controls": expandableRowId,
|
|
27
|
+
ariaLabel: expanded ? hideDetailsText : showDetailsText,
|
|
28
|
+
children: /* @__PURE__ */ jsx(Icon, { svgIcon: icon })
|
|
28
29
|
}
|
|
29
30
|
) });
|
|
30
31
|
};
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
TableExpanderCell as T
|
|
33
34
|
};
|
|
34
35
|
//# sourceMappingURL=TableExpanderCell.js.map
|
package/TableExpanderCell.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableExpanderCell.js","sources":["../src/components/Table/TableExpanderCell/TableExpanderCell.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport Button from '../../Button';\nimport Icon from '../../Icon';\nimport ChevronDown from '../../Icons/ChevronDown';\nimport ChevronUp from '../../Icons/ChevronUp';\nimport tableStyles from '../styles.module.scss';\nimport { ModeType } from '../Table';\n\nexport interface Props {\n /** Adds custom classes to the element. */\n className?: string;\n /** Row is expanded. */\n expanded: boolean;\n /** Id for expanded row. */\n expandableRowId: string;\n /** Text for hide button used for aria label. */\n hideDetailsText: string;\n /** Text for show button used for aria label. */\n showDetailsText: string;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n}\n\nexport const TableExpanderCell = ({\n expandableRowId,\n hideDetailsText,\n showDetailsText,\n expanded,\n className,\n mode = ModeType.normal,\n}: Props): React.JSX.Element => {\n const tableCellClass = classNames(tableStyles['table__cell'], tableStyles['table__cell-expander'], className, {\n [tableStyles['table__cell--compact']]: mode === ModeType.compact,\n });\n const icon = expanded ? ChevronUp : ChevronDown;\n\n return (\n <td className={tableCellClass}>\n <Button\n variant=\"borderless\"\n aria-expanded={expanded}\n aria-controls={expandableRowId}\n ariaLabel={expanded ? hideDetailsText : showDetailsText}\n >\n <Icon svgIcon={icon} />\n </Button>\n </td>\n );\n};\n\nexport default TableExpanderCell;\n"],"names":[
|
|
1
|
+
{"version":3,"file":"TableExpanderCell.js","sources":["../src/components/Table/TableExpanderCell/TableExpanderCell.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport Button from '../../Button';\nimport Icon from '../../Icon';\nimport ChevronDown from '../../Icons/ChevronDown';\nimport ChevronUp from '../../Icons/ChevronUp';\nimport tableStyles from '../styles.module.scss';\nimport { ModeType } from '../Table';\n\nexport interface Props {\n /** Adds custom classes to the element. */\n className?: string;\n /** Row is expanded. */\n expanded: boolean;\n /** Id for expanded row. */\n expandableRowId: string;\n /** Text for hide button used for aria label. */\n hideDetailsText: string;\n /** Text for show button used for aria label. */\n showDetailsText: string;\n /** For display with less space. Discouraged to use together with interactive elements. */\n mode?: ModeType;\n}\n\nexport const TableExpanderCell = ({\n expandableRowId,\n hideDetailsText,\n showDetailsText,\n expanded,\n className,\n mode = ModeType.normal,\n}: Props): React.JSX.Element => {\n const tableCellClass = classNames(tableStyles['table__cell'], tableStyles['table__cell-expander'], className, {\n [tableStyles['table__cell--compact']]: mode === ModeType.compact,\n });\n const icon = expanded ? ChevronUp : ChevronDown;\n\n return (\n <td className={tableCellClass}>\n <Button\n variant=\"borderless\"\n aria-expanded={expanded}\n aria-controls={expandableRowId}\n ariaLabel={expanded ? hideDetailsText : showDetailsText}\n >\n <Icon svgIcon={icon} />\n </Button>\n </td>\n );\n};\n\nexport default TableExpanderCell;\n"],"names":[],"mappings":";;;;;;;;AA0BO,MAAM,oBAAoB,CAAC;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO,SAAS;AAClB,MAAgC;AACxB,QAAA,iBAAiB,WAAW,YAAY,aAAa,GAAG,YAAY,sBAAsB,GAAG,WAAW;AAAA,IAC5G,CAAC,YAAY,sBAAsB,CAAC,GAAG,SAAS,SAAS;AAAA,EAAA,CAC1D;AACK,QAAA,OAAO,WAAW,YAAY;AAGlC,SAAA,oBAAC,MAAG,EAAA,WAAW,gBACb,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,iBAAe;AAAA,MACf,iBAAe;AAAA,MACf,WAAW,WAAW,kBAAkB;AAAA,MAExC,UAAA,oBAAC,MAAK,EAAA,SAAS,KAAM,CAAA;AAAA,IAAA;AAAA,EAAA,GAEzB;AAEJ;"}
|