@helsenorge/designsystem-react 13.0.0-beta.2 → 13.0.0-beta.4
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/AlertSignFill.js +17 -0
- package/AlertSignFill.js.map +1 -0
- package/AlertSignStroke.js +17 -0
- package/AlertSignStroke.js.map +1 -0
- package/AnchorLink.js +49 -63
- package/AnchorLink.js.map +1 -1
- package/ArrowDown.js +29 -0
- package/ArrowDown.js.map +1 -0
- package/ArrowRight.js +17 -0
- package/ArrowRight.js.map +1 -0
- package/ArrowUp.js +29 -0
- package/ArrowUp.js.map +1 -0
- package/ArrowUpRight.js +17 -0
- package/ArrowUpRight.js.map +1 -0
- package/AsChildSlot.js +64 -0
- package/AsChildSlot.js.map +1 -0
- package/Avatar.js +28 -37
- package/Avatar.js.map +1 -1
- package/BabyMobileMedium.js +264 -0
- package/BabyMobileMedium.js.map +1 -0
- package/Badge.js +28 -32
- package/Badge.js.map +1 -1
- package/Button.js +124 -173
- package/Button.js.map +1 -1
- package/CHANGELOG.md +171 -0
- package/Calendar.js +29 -0
- package/Calendar.js.map +1 -0
- package/Check.js +17 -0
- package/Check.js.map +1 -0
- package/CheckFill.js +29 -0
- package/CheckFill.js.map +1 -0
- package/CheckOutline.js +15 -0
- package/CheckOutline.js.map +1 -0
- package/Checkbox.js +114 -131
- package/Checkbox.js.map +1 -1
- package/Checkbox2.js +5 -0
- package/Checkbox2.js.map +1 -0
- package/ChevronDown.js +17 -0
- package/ChevronDown.js.map +1 -0
- package/ChevronLeft.js +17 -0
- package/ChevronLeft.js.map +1 -0
- package/ChevronRight.js +17 -0
- package/ChevronRight.js.map +1 -0
- package/ChevronUp.js +17 -0
- package/ChevronUp.js.map +1 -0
- package/ChildMedium.js +127 -0
- package/ChildMedium.js.map +1 -0
- package/Close.js +41 -47
- package/Close.js.map +1 -1
- package/DictionaryTrigger.js +20 -25
- package/DictionaryTrigger.js.map +1 -1
- package/DoctorMedium.js +55 -0
- package/DoctorMedium.js.map +1 -0
- package/DoctorSmall.js +65 -0
- package/DoctorSmall.js.map +1 -0
- package/Drawer.js +221 -188
- package/Drawer.js.map +1 -1
- package/Duolist.js +69 -87
- package/Duolist.js.map +1 -1
- package/ElementHeader.js +142 -141
- package/ElementHeader.js.map +1 -1
- package/ElementHeaderText.js +29 -31
- package/ElementHeaderText.js.map +1 -1
- package/EmptyBox.js +17 -0
- package/EmptyBox.js.map +1 -0
- package/ErrorSignFill.js +17 -0
- package/ErrorSignFill.js.map +1 -0
- package/ErrorWrapper.js +21 -12
- package/ErrorWrapper.js.map +1 -1
- package/Expander.js +105 -129
- package/Expander.js.map +1 -1
- package/FacialRecognitionFingerprintMedium.js +200 -0
- package/FacialRecognitionFingerprintMedium.js.map +1 -0
- package/FormFieldTag.js +44 -41
- package/FormFieldTag.js.map +1 -1
- package/FormGroup.js +131 -155
- package/FormGroup.js.map +1 -1
- package/FormLayout.js +38 -46
- package/FormLayout.js.map +1 -1
- package/Forward.js +17 -0
- package/Forward.js.map +1 -0
- package/GiveBabyFoodMedium.js +241 -0
- package/GiveBabyFoodMedium.js.map +1 -0
- package/HN.Designsystem.Dropdown.nb-NO.js +5 -0
- package/HN.Designsystem.Dropdown.nb-NO.js.map +1 -0
- package/HandWaving.js +9 -0
- package/HandWaving.js.map +1 -0
- package/HealthcarePersonnelMedium.js +149 -0
- package/HealthcarePersonnelMedium.js.map +1 -0
- package/HealthcarePersonnelSmall.js +150 -0
- package/HealthcarePersonnelSmall.js.map +1 -0
- package/HelpDetails.js +51 -62
- package/HelpDetails.js.map +1 -1
- package/HelpTriggerIcon.js +99 -120
- package/HelpTriggerIcon.js.map +1 -1
- package/HelpTriggerStandalone.js +41 -38
- package/HelpTriggerStandalone.js.map +1 -1
- package/HighlightPanel.js +75 -64
- package/HighlightPanel.js.map +1 -1
- package/Highlighter.js +42 -41
- package/Highlighter.js.map +1 -1
- package/HorizontalScroll.js +45 -56
- package/HorizontalScroll.js.map +1 -1
- package/Icon.js +45 -70
- package/Icon.js.map +1 -1
- package/Illustration.js +48 -45
- package/Illustration.js.map +1 -1
- package/IllustrationNames.js +31 -0
- package/IllustrationNames.js.map +1 -0
- package/InfoSignFill.js +17 -0
- package/InfoSignFill.js.map +1 -0
- package/InfoTeaser.js +74 -68
- package/InfoTeaser.js.map +1 -1
- package/Input.js +169 -201
- package/Input.js.map +1 -1
- package/Input2.js +5 -0
- package/Input2.js.map +1 -0
- package/Label.js +128 -130
- package/Label.js.map +1 -1
- package/LazyIcon.js +377 -31
- package/LazyIcon.js.map +1 -1
- package/LazyIllustration.js +65 -34
- package/LazyIllustration.js.map +1 -1
- package/LinkList.js +121 -144
- package/LinkList.js.map +1 -1
- package/List.js +18 -11
- package/List.js.map +1 -1
- package/ListEditMode.js +38 -37
- package/ListEditMode.js.map +1 -1
- package/MaxCharacters.js +21 -14
- package/MaxCharacters.js.map +1 -1
- package/NotificationBadge.js +51 -66
- package/NotificationBadge.js.map +1 -1
- package/Panel.js +243 -241
- package/Panel.js.map +1 -1
- package/PanelOld.js +322 -0
- package/PanelOld.js.map +1 -0
- package/PanelTitle.js +32 -17
- package/PanelTitle.js.map +1 -1
- package/Pencil.js +27 -0
- package/Pencil.js.map +1 -0
- package/PlusSmall.js +17 -0
- package/PlusSmall.js.map +1 -0
- package/PopOver.js +64 -76
- package/PopOver.js.map +1 -1
- package/Portal.js +26 -0
- package/Portal.js.map +1 -0
- package/RadioButton.js +86 -114
- package/RadioButton.js.map +1 -1
- package/RadioButton2.js +5 -0
- package/RadioButton2.js.map +1 -0
- package/ReadLettersMedium.js +79 -0
- package/ReadLettersMedium.js.map +1 -0
- package/Select.js +74 -96
- package/Select.js.map +1 -1
- package/SingleSelectItem.js +99 -0
- package/SingleSelectItem.js.map +1 -0
- package/Slider.js +265 -301
- package/Slider.js.map +1 -1
- package/Spacer.js +28 -29
- package/Spacer.js.map +1 -1
- package/StatusDot.js +147 -103
- package/StatusDot.js.map +1 -1
- package/StatusDotList.js +30 -24
- package/StatusDotList.js.map +1 -1
- package/StepButtons.js +36 -29
- package/StepButtons.js.map +1 -1
- package/StrollerMedium.js +220 -0
- package/StrollerMedium.js.map +1 -0
- package/Support2Medium.js +159 -0
- package/Support2Medium.js.map +1 -0
- package/TabList.js +185 -185
- package/TabList.js.map +1 -1
- package/TabPanel.js +14 -12
- package/TabPanel.js.map +1 -1
- package/Table.js +117 -156
- package/Table.js.map +1 -1
- package/TableBody.js +13 -10
- package/TableBody.js.map +1 -1
- package/TableCell.js +21 -32
- package/TableCell.js.map +1 -1
- package/TableExpandedRow.js +29 -36
- package/TableExpandedRow.js.map +1 -1
- package/TableExpanderCell.js +24 -32
- package/TableExpanderCell.js.map +1 -1
- package/TableHead.js +24 -26
- package/TableHead.js.map +1 -1
- package/TableHeadCell.js +52 -49
- package/TableHeadCell.js.map +1 -1
- package/TableRow.js +42 -59
- package/TableRow.js.map +1 -1
- package/Textarea.js +107 -142
- package/Textarea.js.map +1 -1
- package/Title.js +33 -27
- package/Title.js.map +1 -1
- package/Title2.js +5 -0
- package/Title2.js.map +1 -0
- package/Toast.js +46 -0
- package/Toast.js.map +1 -0
- package/TriangleX.js +33 -0
- package/TriangleX.js.map +1 -0
- package/Undo.js +37 -0
- package/Undo.js.map +1 -0
- package/VerticalDots.js +17 -0
- package/VerticalDots.js.map +1 -0
- package/Watch.js +29 -0
- package/Watch.js.map +1 -0
- package/X.js +19 -0
- package/X.js.map +1 -0
- package/__mocks__/IntersectionObserver.js +9 -14
- package/__mocks__/IntersectionObserver.js.map +1 -1
- package/__mocks__/MutationObserver.js +8 -12
- package/__mocks__/MutationObserver.js.map +1 -1
- package/__mocks__/ResizeObserver.js +9 -14
- package/__mocks__/ResizeObserver.js.map +1 -1
- package/__mocks__/matchMedia.js +9 -10
- package/__mocks__/matchMedia.js.map +1 -1
- package/__mocks__/useLayoutEvent.js +3 -4
- package/__mocks__/useLayoutEvent.js.map +1 -1
- package/__mocks__/useOutsideEvent.js +3 -4
- package/__mocks__/useOutsideEvent.js.map +1 -1
- package/__mocks__/usePseudoClasses.js +9 -6
- package/__mocks__/usePseudoClasses.js.map +1 -1
- package/__mocks__/useSize.js +10 -11
- package/__mocks__/useSize.js.map +1 -1
- package/__mocks__/uuid.js +8 -8
- package/__mocks__/uuid.js.map +1 -1
- package/_rolldown_dynamic_import_helper.js +28 -0
- package/_rolldown_dynamic_import_helper.js.map +1 -0
- package/accessibility.js +17 -0
- package/accessibility.js.map +1 -0
- package/color.js +10 -0
- package/color.js.map +1 -0
- package/component.js +10 -0
- package/component.js.map +1 -0
- package/components/AnchorLink/index.js +13 -5
- package/components/ArticleTeaser/index.js +45 -61
- package/components/ArticleTeaser/index.js.map +1 -1
- package/components/ArticleTeaser/styles.module.scss +3 -5
- package/components/AsChildSlot/AsChildSlot.d.ts +23 -0
- package/components/AsChildSlot/AsChildSlot.test.d.ts +1 -0
- package/components/AsChildSlot/index.d.ts +3 -0
- package/components/AsChildSlot/index.js +3 -0
- package/components/AsChildSlot/styles.module.scss +13 -0
- package/components/AsChildSlot/styles.module.scss.d.ts +9 -0
- package/components/Avatar/index.js +6 -7
- package/components/Badge/index.js +10 -5
- package/components/Button/index.js +19 -5
- package/components/Button/styles.module.scss +69 -25
- package/components/Checkbox/index.js +47 -6
- package/components/Checkbox/styles.module.scss +11 -0
- package/components/Chip/index.js +53 -49
- package/components/Chip/index.js.map +1 -1
- package/components/Close/index.js +10 -5
- package/components/DictionaryTrigger/index.js +3 -5
- package/components/Drawer/index.js +39 -5
- package/components/Drawer/styles.module.scss +58 -38
- package/components/Drawer/styles.module.scss.d.ts +5 -0
- package/components/Dropdown/Dropdown.d.ts +19 -21
- package/components/Dropdown/Dropdown.test.d.ts +1 -0
- package/components/Dropdown/SingleSelect/SingleSelect.d.ts +18 -0
- package/components/Dropdown/SingleSelect/SingleSelect.test.d.ts +1 -0
- package/components/Dropdown/SingleSelect/SingleSelectItem.d.ts +21 -0
- package/components/Dropdown/SingleSelect/index.d.ts +3 -0
- package/components/Dropdown/SingleSelect/index.js +7 -0
- package/components/Dropdown/SingleSelect/index.js.map +1 -0
- package/components/Dropdown/SingleSelect/styles.module.scss +54 -0
- package/components/Dropdown/SingleSelect/styles.module.scss.d.ts +14 -0
- package/components/Dropdown/index.js +280 -197
- package/components/Dropdown/index.js.map +1 -1
- package/components/Dropdown/styles.module.scss +92 -136
- package/components/Dropdown/styles.module.scss.d.ts +8 -9
- package/components/DropdownOld/DropdownOld.d.ts +42 -0
- package/components/DropdownOld/index.d.ts +3 -0
- package/components/DropdownOld/index.js +204 -0
- package/components/DropdownOld/index.js.map +1 -0
- package/components/DropdownOld/resourceHelper.d.ts +3 -0
- package/components/DropdownOld/styles.module.scss +230 -0
- package/components/DropdownOld/styles.module.scss.d.ts +25 -0
- package/components/Duolist/index.js +6 -8
- package/components/ElementHeader/ElementHeaderText/index.js +13 -6
- package/components/ElementHeader/ElementHeaderText/index.js.map +1 -1
- package/components/ElementHeader/StatusDotList/index.js +36 -6
- package/components/ElementHeader/index.js +53 -9
- package/components/ElementHeader/index.js.map +1 -1
- package/components/EmptyState/index.js +277 -302
- package/components/EmptyState/index.js.map +1 -1
- package/components/ErrorWrapper/index.js +2 -6
- package/components/Expander/index.js +26 -7
- package/components/ExpanderHierarchy/index.js +86 -107
- package/components/ExpanderHierarchy/index.js.map +1 -1
- package/components/ExpanderList/index.js +236 -211
- package/components/ExpanderList/index.js.map +1 -1
- package/components/ExpanderList/styles.module.scss +82 -102
- package/components/EyebrowHeader/index.js +19 -10
- package/components/EyebrowHeader/index.js.map +1 -1
- package/components/FavoriteButton/index.js +137 -200
- package/components/FavoriteButton/index.js.map +1 -1
- package/components/FormFieldTag/FormFieldTag.d.ts +3 -1
- package/components/FormFieldTag/index.js +4 -5
- package/components/FormGroup/FormGroup.d.ts +1 -2
- package/components/FormGroup/index.js +60 -6
- package/components/FormGroup/index.js.map +1 -1
- package/components/FormLayout/index.js +3 -8
- package/components/HelpBubble/index.js +86 -87
- package/components/HelpBubble/index.js.map +1 -1
- package/components/HelpDrawer/index.js +63 -35
- package/components/HelpDrawer/index.js.map +1 -1
- package/components/HelpExpanderInline/index.js +23 -14
- package/components/HelpExpanderInline/index.js.map +1 -1
- package/components/HelpExpanderStandalone/index.js +48 -48
- package/components/HelpExpanderStandalone/index.js.map +1 -1
- package/components/HelpPanel/index.js +49 -19
- package/components/HelpPanel/index.js.map +1 -1
- package/components/HelpTeaser/index.js +28 -22
- package/components/HelpTeaser/index.js.map +1 -1
- package/components/HelpTooltip/index.js +40 -29
- package/components/HelpTooltip/index.js.map +1 -1
- package/components/HelpTriggerIcon/index.js +6 -7
- package/components/HelpTriggerInline/index.js +39 -36
- package/components/HelpTriggerInline/index.js.map +1 -1
- package/components/HelpTriggerStandalone/index.js +10 -5
- package/components/HighlightPanel/index.js +34 -5
- package/components/Highlighter/index.js +9 -6
- package/components/HorizontalScroll/index.js +7 -6
- package/components/Icon/index.js +3 -10
- package/components/Icons/ActiveMonitoring.js +13 -20
- package/components/Icons/ActiveMonitoring.js.map +1 -1
- package/components/Icons/AcupunctureBack.js +22 -22
- package/components/Icons/AcupunctureBack.js.map +1 -1
- package/components/Icons/AdditionalIconInformation.js +1344 -340
- package/components/Icons/AdditionalIconInformation.js.map +1 -1
- package/components/Icons/AlarmClock.js +39 -34
- package/components/Icons/AlarmClock.js.map +1 -1
- package/components/Icons/AlertSignFill.js +4 -13
- package/components/Icons/AlertSignStroke.js +4 -13
- package/components/Icons/Amputation.js +7 -8
- package/components/Icons/Amputation.js.map +1 -1
- package/components/Icons/Anxiety.js +7 -8
- package/components/Icons/Anxiety.js.map +1 -1
- package/components/Icons/Apple.js +7 -8
- package/components/Icons/Apple.js.map +1 -1
- package/components/Icons/Archive.js +28 -35
- package/components/Icons/Archive.js.map +1 -1
- package/components/Icons/ArmFlexing.js +7 -8
- package/components/Icons/ArmFlexing.js.map +1 -1
- package/components/Icons/ArrowDown.js +4 -37
- package/components/Icons/ArrowLeft.js +16 -11
- package/components/Icons/ArrowLeft.js.map +1 -1
- package/components/Icons/ArrowRight.js +4 -13
- package/components/Icons/ArrowUp.js +4 -37
- package/components/Icons/ArrowUpRight.js +4 -13
- package/components/Icons/Attachment.js +26 -27
- package/components/Icons/Attachment.js.map +1 -1
- package/components/Icons/Atv.js +7 -8
- package/components/Icons/Atv.js.map +1 -1
- package/components/Icons/Avatar.js +16 -11
- package/components/Icons/Avatar.js.map +1 -1
- package/components/Icons/AwakePersonOnPillow.js +7 -8
- package/components/Icons/AwakePersonOnPillow.js.map +1 -1
- package/components/Icons/Baby.js +7 -8
- package/components/Icons/Baby.js.map +1 -1
- package/components/Icons/BandAid.js +7 -8
- package/components/Icons/BandAid.js.map +1 -1
- package/components/Icons/BeerAndPills.js +13 -20
- package/components/Icons/BeerAndPills.js.map +1 -1
- package/components/Icons/Bell.js +7 -8
- package/components/Icons/Bell.js.map +1 -1
- package/components/Icons/Bike.js +7 -8
- package/components/Icons/Bike.js.map +1 -1
- package/components/Icons/BirthControl.js +13 -20
- package/components/Icons/BirthControl.js.map +1 -1
- package/components/Icons/BirthdayCake.js +7 -8
- package/components/Icons/BirthdayCake.js.map +1 -1
- package/components/Icons/Boat.js +7 -8
- package/components/Icons/Boat.js.map +1 -1
- package/components/Icons/Body.js +13 -20
- package/components/Icons/Body.js.map +1 -1
- package/components/Icons/Braille.js +14 -9
- package/components/Icons/Braille.js.map +1 -1
- package/components/Icons/Brain.js +7 -8
- package/components/Icons/Brain.js.map +1 -1
- package/components/Icons/BreastReconstruction.js +13 -20
- package/components/Icons/BreastReconstruction.js.map +1 -1
- package/components/Icons/BreastRemoval.js +13 -20
- package/components/Icons/BreastRemoval.js.map +1 -1
- package/components/Icons/Breasts.js +7 -8
- package/components/Icons/Breasts.js.map +1 -1
- package/components/Icons/BrokenHeart.js +7 -8
- package/components/Icons/BrokenHeart.js.map +1 -1
- package/components/Icons/BrokenPuzzle.js +7 -8
- package/components/Icons/BrokenPuzzle.js.map +1 -1
- package/components/Icons/Bus.js +32 -30
- package/components/Icons/Bus.js.map +1 -1
- package/components/Icons/Calendar.js +4 -37
- package/components/Icons/CalendarChange.js +28 -35
- package/components/Icons/CalendarChange.js.map +1 -1
- package/components/Icons/CalendarCheck.js +28 -35
- package/components/Icons/CalendarCheck.js.map +1 -1
- package/components/Icons/CalendarEvent.js +7 -8
- package/components/Icons/CalendarEvent.js.map +1 -1
- package/components/Icons/CalendarSave.js +16 -11
- package/components/Icons/CalendarSave.js.map +1 -1
- package/components/Icons/Cancer.js +22 -23
- package/components/Icons/Cancer.js.map +1 -1
- package/components/Icons/Candle.js +20 -21
- package/components/Icons/Candle.js.map +1 -1
- package/components/Icons/Car.js +7 -8
- package/components/Icons/Car.js.map +1 -1
- package/components/Icons/Carton.js +28 -41
- package/components/Icons/Carton.js.map +1 -1
- package/components/Icons/Change.js +34 -44
- package/components/Icons/Change.js.map +1 -1
- package/components/Icons/Check.js +4 -13
- package/components/Icons/CheckFill.js +4 -37
- package/components/Icons/CheckOutline.js +2 -22
- package/components/Icons/Chest.js +7 -8
- package/components/Icons/Chest.js.map +1 -1
- package/components/Icons/ChevronDown.js +4 -13
- package/components/Icons/ChevronLeft.js +4 -13
- package/components/Icons/ChevronRight.js +4 -13
- package/components/Icons/ChevronUp.js +4 -13
- package/components/Icons/ChevronsDown.js +28 -35
- package/components/Icons/ChevronsDown.js.map +1 -1
- package/components/Icons/ChevronsUp.js +28 -35
- package/components/Icons/ChevronsUp.js.map +1 -1
- package/components/Icons/ChildPlaying.js +8 -15
- package/components/Icons/ChildPlaying.js.map +1 -1
- package/components/Icons/Cigarette.js +7 -8
- package/components/Icons/Cigarette.js.map +1 -1
- package/components/Icons/Coins.js +13 -20
- package/components/Icons/Coins.js.map +1 -1
- package/components/Icons/Contacts.js +16 -11
- package/components/Icons/Contacts.js.map +1 -1
- package/components/Icons/Copy.js +28 -23
- package/components/Icons/Copy.js.map +1 -1
- package/components/Icons/CoronaCertificate.js +13 -20
- package/components/Icons/CoronaCertificate.js.map +1 -1
- package/components/Icons/Coronavirus.js +7 -8
- package/components/Icons/Coronavirus.js.map +1 -1
- package/components/Icons/Cough.js +7 -8
- package/components/Icons/Cough.js.map +1 -1
- package/components/Icons/CreditCard.js +146 -47
- package/components/Icons/CreditCard.js.map +1 -1
- package/components/Icons/CriticalHealthInfo.js +7 -8
- package/components/Icons/CriticalHealthInfo.js.map +1 -1
- package/components/Icons/Cross.js +7 -8
- package/components/Icons/Cross.js.map +1 -1
- package/components/Icons/DataExchange.js +13 -20
- package/components/Icons/DataExchange.js.map +1 -1
- package/components/Icons/DataReceived.js +13 -20
- package/components/Icons/DataReceived.js.map +1 -1
- package/components/Icons/DataSent.js +13 -20
- package/components/Icons/DataSent.js.map +1 -1
- package/components/Icons/Depression.js +7 -8
- package/components/Icons/Depression.js.map +1 -1
- package/components/Icons/DigestiveSystem.js +8 -15
- package/components/Icons/DigestiveSystem.js.map +1 -1
- package/components/Icons/Dizzy.js +7 -8
- package/components/Icons/Dizzy.js.map +1 -1
- package/components/Icons/Documents.js +7 -8
- package/components/Icons/Documents.js.map +1 -1
- package/components/Icons/Dog.js +7 -8
- package/components/Icons/Dog.js.map +1 -1
- package/components/Icons/DonorCard.js +7 -8
- package/components/Icons/DonorCard.js.map +1 -1
- package/components/Icons/DotActive.js +22 -14
- package/components/Icons/DotActive.js.map +1 -1
- package/components/Icons/DotAlert.js +22 -28
- package/components/Icons/DotAlert.js.map +1 -1
- package/components/Icons/DotCancelled.js +22 -28
- package/components/Icons/DotCancelled.js.map +1 -1
- package/components/Icons/DotHalfDisc.js +22 -28
- package/components/Icons/DotHalfDisc.js.map +1 -1
- package/components/Icons/DotInactive.js +22 -28
- package/components/Icons/DotInactive.js.map +1 -1
- package/components/Icons/DotInfo.js +39 -37
- package/components/Icons/DotInfo.js.map +1 -1
- package/components/Icons/DotLookingGlass.js +22 -28
- package/components/Icons/DotLookingGlass.js.map +1 -1
- package/components/Icons/DotPending.js +14 -14
- package/components/Icons/DotPending.js.map +1 -1
- package/components/Icons/DotQuestionMark.js +22 -28
- package/components/Icons/DotQuestionMark.js.map +1 -1
- package/components/Icons/DotSuccess.js +22 -28
- package/components/Icons/DotSuccess.js.map +1 -1
- package/components/Icons/DotTransparent.js +22 -28
- package/components/Icons/DotTransparent.js.map +1 -1
- package/components/Icons/DotWarningTriangle.js +22 -28
- package/components/Icons/DotWarningTriangle.js.map +1 -1
- package/components/Icons/Download.js +28 -35
- package/components/Icons/Download.js.map +1 -1
- package/components/Icons/Draft.js +7 -8
- package/components/Icons/Draft.js.map +1 -1
- package/components/Icons/Drag.js +15 -10
- package/components/Icons/Drag.js.map +1 -1
- package/components/Icons/EChat.js +16 -11
- package/components/Icons/EChat.js.map +1 -1
- package/components/Icons/Ear.js +15 -16
- package/components/Icons/Ear.js.map +1 -1
- package/components/Icons/EarDeaf.js +14 -9
- package/components/Icons/EarDeaf.js.map +1 -1
- package/components/Icons/EarHearingAid.js +15 -13
- package/components/Icons/EarHearingAid.js.map +1 -1
- package/components/Icons/EarNoseThroat.js +16 -17
- package/components/Icons/EarNoseThroat.js.map +1 -1
- package/components/Icons/EarVolume.js +24 -25
- package/components/Icons/EarVolume.js.map +1 -1
- package/components/Icons/Edit.js +23 -30
- package/components/Icons/Edit.js.map +1 -1
- package/components/Icons/ElderlyPerson.js +7 -8
- package/components/Icons/ElderlyPerson.js.map +1 -1
- package/components/Icons/Embolization.js +13 -20
- package/components/Icons/Embolization.js.map +1 -1
- package/components/Icons/EmergencyCall.js +22 -23
- package/components/Icons/EmergencyCall.js.map +1 -1
- package/components/Icons/EmoticonAnnoyed.js +25 -23
- package/components/Icons/EmoticonAnnoyed.js.map +1 -1
- package/components/Icons/EmoticonDelighted.js +25 -16
- package/components/Icons/EmoticonDelighted.js.map +1 -1
- package/components/Icons/EmoticonDisappointed.js +25 -16
- package/components/Icons/EmoticonDisappointed.js.map +1 -1
- package/components/Icons/EmoticonHappy.js +25 -16
- package/components/Icons/EmoticonHappy.js.map +1 -1
- package/components/Icons/EmoticonMeh.js +25 -16
- package/components/Icons/EmoticonMeh.js.map +1 -1
- package/components/Icons/EmptyBox.js +2 -24
- package/components/Icons/EnterFullScreen.js +26 -21
- package/components/Icons/EnterFullScreen.js.map +1 -1
- package/components/Icons/Envelope.js +16 -11
- package/components/Icons/Envelope.js.map +1 -1
- package/components/Icons/Epilepsy.js +7 -8
- package/components/Icons/Epilepsy.js.map +1 -1
- package/components/Icons/Eraser.js +17 -18
- package/components/Icons/Eraser.js.map +1 -1
- package/components/Icons/ErrorSignFill.js +4 -13
- package/components/Icons/ErrorSignStroke.js +16 -11
- package/components/Icons/ErrorSignStroke.js.map +1 -1
- package/components/Icons/EuropeanHealthCard.js +8 -12
- package/components/Icons/EuropeanHealthCard.js.map +1 -1
- package/components/Icons/ExitFullScreen.js +26 -21
- package/components/Icons/ExitFullScreen.js.map +1 -1
- package/components/Icons/Eye.js +35 -36
- package/components/Icons/Eye.js.map +1 -1
- package/components/Icons/Facebook.js +7 -8
- package/components/Icons/Facebook.js.map +1 -1
- package/components/Icons/FallingLeaf.js +26 -30
- package/components/Icons/FallingLeaf.js.map +1 -1
- package/components/Icons/Feedback.js +20 -24
- package/components/Icons/Feedback.js.map +1 -1
- package/components/Icons/Female.js +7 -8
- package/components/Icons/Female.js.map +1 -1
- package/components/Icons/FemaleDoctor.js +7 -8
- package/components/Icons/FemaleDoctor.js.map +1 -1
- package/components/Icons/Ferry.js +7 -8
- package/components/Icons/Ferry.js.map +1 -1
- package/components/Icons/File.js +28 -35
- package/components/Icons/File.js.map +1 -1
- package/components/Icons/Filter.js +26 -30
- package/components/Icons/Filter.js.map +1 -1
- package/components/Icons/FingerBleed.js +7 -8
- package/components/Icons/FingerBleed.js.map +1 -1
- package/components/Icons/FirstAidKit.js +7 -8
- package/components/Icons/FirstAidKit.js.map +1 -1
- package/components/Icons/Fish.js +30 -43
- package/components/Icons/Fish.js.map +1 -1
- package/components/Icons/FloppyDisk.js +13 -20
- package/components/Icons/FloppyDisk.js.map +1 -1
- package/components/Icons/Football.js +7 -8
- package/components/Icons/Football.js.map +1 -1
- package/components/Icons/Form.js +16 -11
- package/components/Icons/Form.js.map +1 -1
- package/components/Icons/Forward.js +4 -19
- package/components/Icons/Gallery.js +28 -35
- package/components/Icons/Gallery.js.map +1 -1
- package/components/Icons/Garden.js +7 -8
- package/components/Icons/Garden.js.map +1 -1
- package/components/Icons/GasCan.js +7 -8
- package/components/Icons/GasCan.js.map +1 -1
- package/components/Icons/GenderIdentity.js +13 -20
- package/components/Icons/GenderIdentity.js.map +1 -1
- package/components/Icons/GlassWater.js +13 -20
- package/components/Icons/GlassWater.js.map +1 -1
- package/components/Icons/Glasses.js +22 -23
- package/components/Icons/Glasses.js.map +1 -1
- package/components/Icons/Globe.js +16 -11
- package/components/Icons/Globe.js.map +1 -1
- package/components/Icons/Grain.js +13 -20
- package/components/Icons/Grain.js.map +1 -1
- package/components/Icons/Graph.js +21 -28
- package/components/Icons/Graph.js.map +1 -1
- package/components/Icons/Group.js +34 -37
- package/components/Icons/Group.js.map +1 -1
- package/components/Icons/GroupTwins.js +61 -83
- package/components/Icons/GroupTwins.js.map +1 -1
- package/components/Icons/HTMLFile.js +23 -16
- package/components/Icons/HTMLFile.js.map +1 -1
- package/components/Icons/HandWaving.js +2 -10
- package/components/Icons/HandWithDisease.js +7 -8
- package/components/Icons/HandWithDisease.js.map +1 -1
- package/components/Icons/HandsAndHeart.js +20 -21
- package/components/Icons/HandsAndHeart.js.map +1 -1
- package/components/Icons/HealthClinic.js +13 -20
- package/components/Icons/HealthClinic.js.map +1 -1
- package/components/Icons/HealthMeasurements.js +15 -22
- package/components/Icons/HealthMeasurements.js.map +1 -1
- package/components/Icons/HealthWarning.js +13 -20
- package/components/Icons/HealthWarning.js.map +1 -1
- package/components/Icons/HealthcarePerson.js +57 -76
- package/components/Icons/HealthcarePerson.js.map +1 -1
- package/components/Icons/HealthcarePersonell.js +68 -99
- package/components/Icons/HealthcarePersonell.js.map +1 -1
- package/components/Icons/HearingProtection.js +23 -30
- package/components/Icons/HearingProtection.js.map +1 -1
- package/components/Icons/Heart.js +16 -11
- package/components/Icons/Heart.js.map +1 -1
- package/components/Icons/HeartHands.js +50 -75
- package/components/Icons/HeartHands.js.map +1 -1
- package/components/Icons/HelpSign.js +16 -11
- package/components/Icons/HelpSign.js.map +1 -1
- package/components/Icons/HelpingHand.js +13 -20
- package/components/Icons/HelpingHand.js.map +1 -1
- package/components/Icons/Hemodialysis.js +13 -20
- package/components/Icons/Hemodialysis.js.map +1 -1
- package/components/Icons/Hiker.js +7 -8
- package/components/Icons/Hiker.js.map +1 -1
- package/components/Icons/Hipprosthesis.js +13 -20
- package/components/Icons/Hipprosthesis.js.map +1 -1
- package/components/Icons/History.js +16 -11
- package/components/Icons/History.js.map +1 -1
- package/components/Icons/HivAndAids.js +7 -8
- package/components/Icons/HivAndAids.js.map +1 -1
- package/components/Icons/Home.js +28 -35
- package/components/Icons/Home.js.map +1 -1
- package/components/Icons/HomeFill.js +32 -39
- package/components/Icons/HomeFill.js.map +1 -1
- package/components/Icons/Hormone.js +7 -8
- package/components/Icons/Hormone.js.map +1 -1
- package/components/Icons/Hospital.js +28 -35
- package/components/Icons/Hospital.js.map +1 -1
- package/components/Icons/Hourglass.js +28 -35
- package/components/Icons/Hourglass.js.map +1 -1
- package/components/Icons/IconNames.js +341 -342
- package/components/Icons/IconNames.js.map +1 -1
- package/components/Icons/ImgFile.js +13 -20
- package/components/Icons/ImgFile.js.map +1 -1
- package/components/Icons/Inbox.js +11 -18
- package/components/Icons/Inbox.js.map +1 -1
- package/components/Icons/InfoSignFill.js +4 -13
- package/components/Icons/InfoSignStroke.js +16 -11
- package/components/Icons/InfoSignStroke.js.map +1 -1
- package/components/Icons/Instagram.js +12 -16
- package/components/Icons/Instagram.js.map +1 -1
- package/components/Icons/Intravenous.js +13 -20
- package/components/Icons/Intravenous.js.map +1 -1
- package/components/Icons/JointPain.js +7 -8
- package/components/Icons/JointPain.js.map +1 -1
- package/components/Icons/Journal.js +16 -11
- package/components/Icons/Journal.js.map +1 -1
- package/components/Icons/JpgFile.js +13 -20
- package/components/Icons/JpgFile.js.map +1 -1
- package/components/Icons/Kidney.js +7 -8
- package/components/Icons/Kidney.js.map +1 -1
- package/components/Icons/KitchenScale.js +13 -20
- package/components/Icons/KitchenScale.js.map +1 -1
- package/components/Icons/Kjernejournal.js +7 -8
- package/components/Icons/Kjernejournal.js.map +1 -1
- package/components/Icons/Laboratory.js +13 -20
- package/components/Icons/Laboratory.js.map +1 -1
- package/components/Icons/LaptopBlog.js +7 -8
- package/components/Icons/LaptopBlog.js.map +1 -1
- package/components/Icons/LawBook.js +8 -12
- package/components/Icons/LawBook.js.map +1 -1
- package/components/Icons/LegalDocument.js +27 -34
- package/components/Icons/LegalDocument.js.map +1 -1
- package/components/Icons/LightBulb.js +7 -8
- package/components/Icons/LightBulb.js.map +1 -1
- package/components/Icons/List.js +28 -35
- package/components/Icons/List.js.map +1 -1
- package/components/Icons/Location.js +16 -14
- package/components/Icons/Location.js.map +1 -1
- package/components/Icons/LocationFill.js +32 -39
- package/components/Icons/LocationFill.js.map +1 -1
- package/components/Icons/Lock.js +22 -23
- package/components/Icons/Lock.js.map +1 -1
- package/components/Icons/Login.js +35 -60
- package/components/Icons/Login.js.map +1 -1
- package/components/Icons/Logout.js +33 -52
- package/components/Icons/Logout.js.map +1 -1
- package/components/Icons/Lungs.js +7 -8
- package/components/Icons/Lungs.js.map +1 -1
- package/components/Icons/Makeup.js +7 -8
- package/components/Icons/Makeup.js.map +1 -1
- package/components/Icons/MaleDoctor.js +7 -8
- package/components/Icons/MaleDoctor.js.map +1 -1
- package/components/Icons/MaleDoctorAndPerson.js +16 -17
- package/components/Icons/MaleDoctorAndPerson.js.map +1 -1
- package/components/Icons/MaleDoctorCompact.js +41 -54
- package/components/Icons/MaleDoctorCompact.js.map +1 -1
- package/components/Icons/MaleDoctorCompactFill.js +33 -40
- package/components/Icons/MaleDoctorCompactFill.js.map +1 -1
- package/components/Icons/MaleGenitalia.js +7 -8
- package/components/Icons/MaleGenitalia.js.map +1 -1
- package/components/Icons/Medicine.js +28 -35
- package/components/Icons/Medicine.js.map +1 -1
- package/components/Icons/MedicineWarning.js +13 -20
- package/components/Icons/MedicineWarning.js.map +1 -1
- package/components/Icons/MentalHealthAdult.js +8 -15
- package/components/Icons/MentalHealthAdult.js.map +1 -1
- package/components/Icons/MentalHealthChild.js +8 -15
- package/components/Icons/MentalHealthChild.js.map +1 -1
- package/components/Icons/Menu.js +16 -11
- package/components/Icons/Menu.js.map +1 -1
- package/components/Icons/Microscope.js +13 -20
- package/components/Icons/Microscope.js.map +1 -1
- package/components/Icons/Minus.js +16 -11
- package/components/Icons/Minus.js.map +1 -1
- package/components/Icons/Mirror.js +7 -8
- package/components/Icons/Mirror.js.map +1 -1
- package/components/Icons/MobilePhone.js +16 -11
- package/components/Icons/MobilePhone.js.map +1 -1
- package/components/Icons/MotherHoldingBaby.js +7 -8
- package/components/Icons/MotherHoldingBaby.js.map +1 -1
- package/components/Icons/MuscleBack.js +16 -17
- package/components/Icons/MuscleBack.js.map +1 -1
- package/components/Icons/MuscleLeg.js +8 -15
- package/components/Icons/MuscleLeg.js.map +1 -1
- package/components/Icons/Mushroom.js +7 -8
- package/components/Icons/Mushroom.js.map +1 -1
- package/components/Icons/Music.js +13 -20
- package/components/Icons/Music.js.map +1 -1
- package/components/Icons/MusselsAndSalt.js +7 -8
- package/components/Icons/MusselsAndSalt.js.map +1 -1
- package/components/Icons/NoAccess.js +47 -58
- package/components/Icons/NoAccess.js.map +1 -1
- package/components/Icons/NoEye.js +30 -37
- package/components/Icons/NoEye.js.map +1 -1
- package/components/Icons/NoFilter.js +17 -18
- package/components/Icons/NoFilter.js.map +1 -1
- package/components/Icons/Notepad.js +7 -8
- package/components/Icons/Notepad.js.map +1 -1
- package/components/Icons/Osteotomy.js +13 -20
- package/components/Icons/Osteotomy.js.map +1 -1
- package/components/Icons/PaintRoller.js +7 -8
- package/components/Icons/PaintRoller.js.map +1 -1
- package/components/Icons/PaperPlane.js +16 -11
- package/components/Icons/PaperPlane.js.map +1 -1
- package/components/Icons/PatientAndPerson.js +7 -8
- package/components/Icons/PatientAndPerson.js.map +1 -1
- package/components/Icons/Pause.js +16 -11
- package/components/Icons/Pause.js.map +1 -1
- package/components/Icons/PdfFile.js +13 -20
- package/components/Icons/PdfFile.js.map +1 -1
- package/components/Icons/Pencil.js +4 -29
- package/components/Icons/PeopleTalking.js +13 -20
- package/components/Icons/PeopleTalking.js.map +1 -1
- package/components/Icons/Peritonealdialysis.js +13 -20
- package/components/Icons/Peritonealdialysis.js.map +1 -1
- package/components/Icons/Person.js +7 -8
- package/components/Icons/Person.js.map +1 -1
- package/components/Icons/PersonAndPatient.js +7 -8
- package/components/Icons/PersonAndPatient.js.map +1 -1
- package/components/Icons/PersonCancel.js +64 -72
- package/components/Icons/PersonCancel.js.map +1 -1
- package/components/Icons/PersonInXRayMachine.js +13 -20
- package/components/Icons/PersonInXRayMachine.js.map +1 -1
- package/components/Icons/PersonOverweight.js +7 -8
- package/components/Icons/PersonOverweight.js.map +1 -1
- package/components/Icons/PersonRelaxing.js +8 -15
- package/components/Icons/PersonRelaxing.js.map +1 -1
- package/components/Icons/PersonWithBrain.js +8 -12
- package/components/Icons/PersonWithBrain.js.map +1 -1
- package/components/Icons/PersonWithBrokenArm.js +7 -8
- package/components/Icons/PersonWithBrokenArm.js.map +1 -1
- package/components/Icons/PersonWithCrutches.js +7 -8
- package/components/Icons/PersonWithCrutches.js.map +1 -1
- package/components/Icons/PersonWithJaw.js +8 -15
- package/components/Icons/PersonWithJaw.js.map +1 -1
- package/components/Icons/PersonWithMagnifyingGlass.js +8 -15
- package/components/Icons/PersonWithMagnifyingGlass.js.map +1 -1
- package/components/Icons/PersonWithSenses.js +20 -21
- package/components/Icons/PersonWithSenses.js.map +1 -1
- package/components/Icons/PersonWorking.js +8 -15
- package/components/Icons/PersonWorking.js.map +1 -1
- package/components/Icons/PersonalPlan.js +27 -40
- package/components/Icons/PersonalPlan.js.map +1 -1
- package/components/Icons/PizzaSlice.js +8 -15
- package/components/Icons/PizzaSlice.js.map +1 -1
- package/components/Icons/Plane.js +7 -8
- package/components/Icons/Plane.js.map +1 -1
- package/components/Icons/Plant.js +7 -8
- package/components/Icons/Plant.js.map +1 -1
- package/components/Icons/PlateKnifeFork.js +20 -39
- package/components/Icons/PlateKnifeFork.js.map +1 -1
- package/components/Icons/Play.js +28 -11
- package/components/Icons/Play.js.map +1 -1
- package/components/Icons/PlusLarge.js +16 -11
- package/components/Icons/PlusLarge.js.map +1 -1
- package/components/Icons/PlusSmall.js +4 -13
- package/components/Icons/PngFile.js +13 -20
- package/components/Icons/PngFile.js.map +1 -1
- package/components/Icons/Podcast.js +13 -20
- package/components/Icons/Podcast.js.map +1 -1
- package/components/Icons/PoisonInformation.js +8 -15
- package/components/Icons/PoisonInformation.js.map +1 -1
- package/components/Icons/Pregnant.js +7 -8
- package/components/Icons/Pregnant.js.map +1 -1
- package/components/Icons/Printer.js +28 -35
- package/components/Icons/Printer.js.map +1 -1
- package/components/Icons/Psychosis.js +7 -8
- package/components/Icons/Psychosis.js.map +1 -1
- package/components/Icons/Publication.js +13 -20
- package/components/Icons/Publication.js.map +1 -1
- package/components/Icons/Puzzle.js +8 -12
- package/components/Icons/Puzzle.js.map +1 -1
- package/components/Icons/QrCode.js +28 -35
- package/components/Icons/QrCode.js.map +1 -1
- package/components/Icons/Quarrel.js +13 -20
- package/components/Icons/Quarrel.js.map +1 -1
- package/components/Icons/RadioTherapy.js +13 -20
- package/components/Icons/RadioTherapy.js.map +1 -1
- package/components/Icons/RadioactiveTreatment.js +13 -20
- package/components/Icons/RadioactiveTreatment.js.map +1 -1
- package/components/Icons/Radioiodine.js +13 -20
- package/components/Icons/Radioiodine.js.map +1 -1
- package/components/Icons/Receipt.js +7 -8
- package/components/Icons/Receipt.js.map +1 -1
- package/components/Icons/Receptionist.js +16 -11
- package/components/Icons/Receptionist.js.map +1 -1
- package/components/Icons/Recovery.js +13 -20
- package/components/Icons/Recovery.js.map +1 -1
- package/components/Icons/Referral.js +16 -11
- package/components/Icons/Referral.js.map +1 -1
- package/components/Icons/Refresh.js +16 -11
- package/components/Icons/Refresh.js.map +1 -1
- package/components/Icons/Refund.js +7 -8
- package/components/Icons/Refund.js.map +1 -1
- package/components/Icons/Reminder.js +28 -29
- package/components/Icons/Reminder.js.map +1 -1
- package/components/Icons/Reply.js +17 -18
- package/components/Icons/Reply.js.map +1 -1
- package/components/Icons/Rocket.js +7 -8
- package/components/Icons/Rocket.js.map +1 -1
- package/components/Icons/RtfFile.js +13 -20
- package/components/Icons/RtfFile.js.map +1 -1
- package/components/Icons/STDs.js +13 -20
- package/components/Icons/STDs.js.map +1 -1
- package/components/Icons/Save.js +25 -20
- package/components/Icons/Save.js.map +1 -1
- package/components/Icons/Scale.js +7 -8
- package/components/Icons/Scale.js.map +1 -1
- package/components/Icons/ScreenReader.js +41 -48
- package/components/Icons/ScreenReader.js.map +1 -1
- package/components/Icons/Search.js +16 -11
- package/components/Icons/Search.js.map +1 -1
- package/components/Icons/SectionSign.js +28 -35
- package/components/Icons/SectionSign.js.map +1 -1
- package/components/Icons/Settings.js +32 -39
- package/components/Icons/Settings.js.map +1 -1
- package/components/Icons/SettingsFill.js +32 -39
- package/components/Icons/SettingsFill.js.map +1 -1
- package/components/Icons/Sexualorientation.js +13 -20
- package/components/Icons/Sexualorientation.js.map +1 -1
- package/components/Icons/ShakingHand.js +10 -14
- package/components/Icons/ShakingHand.js.map +1 -1
- package/components/Icons/Share.js +17 -18
- package/components/Icons/Share.js.map +1 -1
- package/components/Icons/SharedHealthData.js +15 -22
- package/components/Icons/SharedHealthData.js.map +1 -1
- package/components/Icons/SharedHealthMeasurements.js +15 -22
- package/components/Icons/SharedHealthMeasurements.js.map +1 -1
- package/components/Icons/Shield.js +13 -20
- package/components/Icons/Shield.js.map +1 -1
- package/components/Icons/ShuntOperation.js +13 -20
- package/components/Icons/ShuntOperation.js.map +1 -1
- package/components/Icons/Skeleton.js +7 -8
- package/components/Icons/Skeleton.js.map +1 -1
- package/components/Icons/Skin.js +7 -8
- package/components/Icons/Skin.js.map +1 -1
- package/components/Icons/Snake.js +7 -8
- package/components/Icons/Snake.js.map +1 -1
- package/components/Icons/Snapchat.js +7 -11
- package/components/Icons/Snapchat.js.map +1 -1
- package/components/Icons/SortDown.js +46 -29
- package/components/Icons/SortDown.js.map +1 -1
- package/components/Icons/SortUp.js +46 -29
- package/components/Icons/SortUp.js.map +1 -1
- package/components/Icons/SpeechBubble.js +28 -35
- package/components/Icons/SpeechBubble.js.map +1 -1
- package/components/Icons/Spray.js +7 -8
- package/components/Icons/Spray.js.map +1 -1
- package/components/Icons/StickyNote.js +15 -22
- package/components/Icons/StickyNote.js.map +1 -1
- package/components/Icons/StickyNotes.js +15 -22
- package/components/Icons/StickyNotes.js.map +1 -1
- package/components/Icons/Stopwatch.js +28 -35
- package/components/Icons/Stopwatch.js.map +1 -1
- package/components/Icons/Sun.js +31 -32
- package/components/Icons/Sun.js.map +1 -1
- package/components/Icons/SupportingPerson.js +34 -50
- package/components/Icons/SupportingPerson.js.map +1 -1
- package/components/Icons/Surgery.js +13 -20
- package/components/Icons/Surgery.js.map +1 -1
- package/components/Icons/Sweets.js +28 -41
- package/components/Icons/Sweets.js.map +1 -1
- package/components/Icons/Syringe.js +22 -22
- package/components/Icons/Syringe.js.map +1 -1
- package/components/Icons/Taxi.js +7 -8
- package/components/Icons/Taxi.js.map +1 -1
- package/components/Icons/TeddyBear.js +7 -8
- package/components/Icons/TeddyBear.js.map +1 -1
- package/components/Icons/Teenagers.js +13 -20
- package/components/Icons/Teenagers.js.map +1 -1
- package/components/Icons/ThinkingAboutBaby.js +7 -8
- package/components/Icons/ThinkingAboutBaby.js.map +1 -1
- package/components/Icons/Ticket.js +7 -8
- package/components/Icons/Ticket.js.map +1 -1
- package/components/Icons/TimePassing.js +28 -35
- package/components/Icons/TimePassing.js.map +1 -1
- package/components/Icons/Toddler.js +7 -8
- package/components/Icons/Toddler.js.map +1 -1
- package/components/Icons/Tombstone.js +21 -28
- package/components/Icons/Tombstone.js.map +1 -1
- package/components/Icons/Toolbox.js +34 -53
- package/components/Icons/Toolbox.js.map +1 -1
- package/components/Icons/Tooth.js +7 -8
- package/components/Icons/Tooth.js.map +1 -1
- package/components/Icons/TotalKneeProsthesis.js +13 -20
- package/components/Icons/TotalKneeProsthesis.js.map +1 -1
- package/components/Icons/Train.js +7 -8
- package/components/Icons/Train.js.map +1 -1
- package/components/Icons/Transplantation.js +13 -20
- package/components/Icons/Transplantation.js.map +1 -1
- package/components/Icons/TrashCan.js +28 -35
- package/components/Icons/TrashCan.js.map +1 -1
- package/components/Icons/TravelRoute.js +40 -59
- package/components/Icons/TravelRoute.js.map +1 -1
- package/components/Icons/TreatmentAids.js +36 -40
- package/components/Icons/TreatmentAids.js.map +1 -1
- package/components/Icons/TriangleX.js +4 -41
- package/components/Icons/Twitter.js +7 -8
- package/components/Icons/Twitter.js.map +1 -1
- package/components/Icons/Undo.js +4 -51
- package/components/Icons/UniProsthesis.js +13 -20
- package/components/Icons/UniProsthesis.js.map +1 -1
- package/components/Icons/Upload.js +17 -18
- package/components/Icons/Upload.js.map +1 -1
- package/components/Icons/UserOrganization.js +7 -8
- package/components/Icons/UserOrganization.js.map +1 -1
- package/components/Icons/Vaccine.js +28 -35
- package/components/Icons/Vaccine.js.map +1 -1
- package/components/Icons/VerticalDots.js +4 -13
- package/components/Icons/VideoCamera.js +28 -35
- package/components/Icons/VideoCamera.js.map +1 -1
- package/components/Icons/VideoChat.js +16 -11
- package/components/Icons/VideoChat.js.map +1 -1
- package/components/Icons/Wallet.js +16 -11
- package/components/Icons/Wallet.js.map +1 -1
- package/components/Icons/Watch.js +4 -37
- package/components/Icons/Website.js +13 -20
- package/components/Icons/Website.js.map +1 -1
- package/components/Icons/Wheelchair.js +13 -20
- package/components/Icons/Wheelchair.js.map +1 -1
- package/components/Icons/WheelchairActive.js +13 -20
- package/components/Icons/WheelchairActive.js.map +1 -1
- package/components/Icons/Window.js +7 -8
- package/components/Icons/Window.js.map +1 -1
- package/components/Icons/WordDocument.js +10 -14
- package/components/Icons/WordDocument.js.map +1 -1
- package/components/Icons/WorkSuitcase.js +10 -14
- package/components/Icons/WorkSuitcase.js.map +1 -1
- package/components/Icons/X.js +4 -15
- package/components/Icons/XOutline.js +13 -20
- package/components/Icons/XOutline.js.map +1 -1
- package/components/Icons/XmlFile.js +13 -20
- package/components/Icons/XmlFile.js.map +1 -1
- package/components/Icons/YouTube.js +7 -8
- package/components/Icons/YouTube.js.map +1 -1
- package/components/Icons/Zoom.js +28 -35
- package/components/Icons/Zoom.js.map +1 -1
- package/components/Illustration/index.js +4 -8
- package/components/Illustrations/BabyMobile.js +17 -9
- package/components/Illustrations/BabyMobile.js.map +1 -1
- package/components/Illustrations/BabyMobileMedium.js +5 -424
- package/components/Illustrations/Child.js +17 -9
- package/components/Illustrations/Child.js.map +1 -1
- package/components/Illustrations/ChildMedium.js +5 -185
- package/components/Illustrations/Doctor.js +20 -11
- package/components/Illustrations/Doctor.js.map +1 -1
- package/components/Illustrations/DoctorMedium.js +2 -72
- package/components/Illustrations/DoctorSmall.js +2 -70
- package/components/Illustrations/FacialRecognitionFingerprint.js +17 -9
- package/components/Illustrations/FacialRecognitionFingerprint.js.map +1 -1
- package/components/Illustrations/FacialRecognitionFingerprintMedium.js +5 -318
- package/components/Illustrations/GiveBabyFood.js +17 -9
- package/components/Illustrations/GiveBabyFood.js.map +1 -1
- package/components/Illustrations/GiveBabyFoodMedium.js +5 -377
- package/components/Illustrations/HealthcarePersonnel.js +20 -11
- package/components/Illustrations/HealthcarePersonnel.js.map +1 -1
- package/components/Illustrations/HealthcarePersonnelMedium.js +2 -229
- package/components/Illustrations/HealthcarePersonnelSmall.js +2 -212
- package/components/Illustrations/IllustrationNames.js +2 -27
- package/components/Illustrations/ReadLetters.js +17 -9
- package/components/Illustrations/ReadLetters.js.map +1 -1
- package/components/Illustrations/ReadLettersMedium.js +5 -110
- package/components/Illustrations/Stroller.js +17 -9
- package/components/Illustrations/Stroller.js.map +1 -1
- package/components/Illustrations/StrollerMedium.js +5 -236
- package/components/Illustrations/Support2.js +17 -9
- package/components/Illustrations/Support2.js.map +1 -1
- package/components/Illustrations/Support2Medium.js +5 -232
- package/components/InfoTeaser/index.js +10 -5
- package/components/Input/index.js +47 -7
- package/components/Label/Label.d.ts +1 -2
- package/components/Label/index.js +40 -10
- package/components/LazyIcon/index.js +6 -8
- package/components/LazyIllustration/index.js +8 -8
- package/components/LinkList/index.js +54 -8
- package/components/LinkList/styles.module.scss +47 -61
- package/components/LinkList/styles.module.scss.d.ts +1 -0
- package/components/List/index.js +3 -5
- package/components/ListEditMode/index.js +6 -9
- package/components/ListEditMode/styles.module.scss +1 -0
- package/components/Loader/index.js +83 -94
- package/components/Loader/index.js.map +1 -1
- package/components/Logo/index.js +48 -46
- package/components/Logo/index.js.map +1 -1
- package/components/Modal/Modal.d.ts +1 -2
- package/components/Modal/index.js +233 -204
- package/components/Modal/index.js.map +1 -1
- package/components/Modal/styles.module.scss +0 -34
- package/components/Modal/styles.module.scss.d.ts +0 -5
- package/components/NotificationPanel/index.js +126 -106
- package/components/NotificationPanel/index.js.map +1 -1
- package/components/NotificationPanel/styles.module.scss +10 -5
- package/components/Panel/Panel.d.ts +1 -1
- package/components/Panel/PanelTitle/index.js +12 -5
- package/components/Panel/index.js +36 -15
- package/components/Panel/index.js.map +1 -1
- package/components/PanelList/index.js +52 -26
- package/components/PanelList/index.js.map +1 -1
- package/components/PanelListOld/PanelListOld.d.ts +12 -0
- package/components/PanelListOld/PanelListOld.test.d.ts +1 -0
- package/components/PanelListOld/index.d.ts +3 -0
- package/components/PanelListOld/index.js +58 -0
- package/components/PanelListOld/index.js.map +1 -0
- package/components/PanelListOld/styles.module.scss +14 -0
- package/components/PanelListOld/styles.module.scss.d.ts +9 -0
- package/components/PanelOld/PanelOld.d.ts +89 -0
- package/components/PanelOld/PanelOld.test.d.ts +1 -0
- package/components/PanelOld/index.d.ts +3 -0
- package/components/PanelOld/index.js +37 -0
- package/components/PanelOld/styles.module.scss +433 -0
- package/components/PanelOld/styles.module.scss.d.ts +61 -0
- package/components/PopMenu/index.js +150 -117
- package/components/PopMenu/index.js.map +1 -1
- package/components/PopOver/index.js +5 -7
- package/components/Portal/index.js +3 -25
- package/components/Progressbar/index.js +105 -129
- package/components/Progressbar/index.js.map +1 -1
- package/components/PromoPanel/index.js +85 -75
- package/components/PromoPanel/index.js.map +1 -1
- package/components/RadioButton/index.js +46 -8
- package/components/RadioButton/styles.module.scss +5 -0
- package/components/RadioButton/styles.module.scss.d.ts +1 -0
- package/components/Select/index.js +45 -6
- package/components/ServiceMessage/index.js +169 -122
- package/components/ServiceMessage/index.js.map +1 -1
- package/components/SharingStatus/index.js +31 -20
- package/components/SharingStatus/index.js.map +1 -1
- package/components/Slider/index.js +12 -6
- package/components/Spacer/index.js +3 -5
- package/components/StatusDot/index.js +35 -8
- package/components/StatusDot/styles.module.scss +9 -9
- package/components/Step/index.js +33 -35
- package/components/Step/index.js.map +1 -1
- package/components/StepButtons/index.js +3 -6
- package/components/Stepper/index.js +89 -73
- package/components/Stepper/index.js.map +1 -1
- package/components/StickyNote/index.js +201 -193
- package/components/StickyNote/index.js.map +1 -1
- package/components/Table/TableBody/index.js +15 -6
- package/components/Table/TableCell/index.js +15 -8
- package/components/Table/TableExpandedRow/index.js +31 -6
- package/components/Table/TableExpanderCell/index.js +32 -6
- package/components/Table/TableHead/index.js +15 -8
- package/components/Table/TableHeadCell/index.js +18 -8
- package/components/Table/TableRow/index.js +32 -6
- package/components/Table/index.js +43 -28
- package/components/Table/index.js.map +1 -1
- package/components/Tabs/TabList/index.js +16 -5
- package/components/Tabs/TabPanel/index.js +2 -5
- package/components/Tabs/index.js +84 -98
- package/components/Tabs/index.js.map +1 -1
- package/components/Tag/index.js +45 -34
- package/components/Tag/index.js.map +1 -1
- package/components/TagList/index.js +16 -8
- package/components/TagList/index.js.map +1 -1
- package/components/Textarea/index.js +45 -5
- package/components/Tile/index.js +65 -77
- package/components/Tile/index.js.map +1 -1
- package/components/Title/index.js +4 -8
- package/components/Toast/Toast.d.ts +13 -0
- package/components/Toast/Toast.test.d.ts +1 -0
- package/components/Toast/index.d.ts +3 -0
- package/components/Toast/index.js +15 -0
- package/components/Toast/index.js.map +1 -0
- package/components/Toast/styles.module.scss +70 -0
- package/components/ToastList/ToastList.d.ts +14 -0
- package/components/ToastList/ToastList.test.d.ts +1 -0
- package/components/ToastList/index.d.ts +3 -0
- package/components/ToastList/index.js +106 -0
- package/components/ToastList/index.js.map +1 -0
- package/components/ToastList/styles.module.scss +12 -0
- package/components/ToastList/styles.module.scss.d.ts +9 -0
- package/components/Toggle/index.js +158 -151
- package/components/Toggle/index.js.map +1 -1
- package/components/Toggle/styles.module.scss +9 -0
- package/components/Validation/index.js +140 -80
- package/components/Validation/index.js.map +1 -1
- package/constants.d.ts +1 -0
- package/constants.js +2 -130
- package/constants2.js +123 -0
- package/constants2.js.map +1 -0
- package/currys.js +0 -0
- package/debounce.js +16 -0
- package/debounce.js.map +1 -0
- package/deepContains.js +13 -0
- package/deepContains.js.map +1 -0
- package/designsystem-react.css +11 -0
- package/device.js +6 -0
- package/device.js.map +1 -0
- package/docs/Tokens/TokensExample.d.ts +7 -0
- package/environment.js +5 -0
- package/environment.js.map +1 -0
- package/floating-ui.react.js +3247 -4003
- package/floating-ui.react.js.map +1 -1
- package/focus.js +11 -0
- package/focus.js.map +1 -0
- package/grid.js +24 -0
- package/grid.js.map +1 -0
- package/hoc/withBreakpoint/index.js +7 -6
- package/hoc/withBreakpoint/index.js.map +1 -1
- package/hoc/withBreakpoint/withBreakpoint.js +4 -14
- package/hooks/useBreakpoint.js +3 -56
- package/hooks/useElementList.js +2 -24
- package/hooks/useEventListenerState.js +11 -12
- package/hooks/useEventListenerState.js.map +1 -1
- package/hooks/useExpand.js +3 -21
- package/hooks/useFocusToggle.js +4 -31
- package/hooks/useFocusTrap.js +5 -33
- package/hooks/useFocusableElements.js +3 -21
- package/hooks/useIcons.js +8 -23
- package/hooks/useIdWithFallback.js +2 -9
- package/hooks/useIntersectionObserver.js +2 -20
- package/hooks/useInterval.js +9 -10
- package/hooks/useInterval.js.map +1 -1
- package/hooks/useIsMobileBreakpoint.js +4 -10
- package/hooks/useIsServerSide.js +2 -12
- package/hooks/useIsVisible.js +3 -14
- package/hooks/useKeyboardEvent.js +2 -24
- package/hooks/useLayoutEvent.js +3 -18
- package/hooks/useOutsideEvent.js +2 -19
- package/hooks/usePrevious.js +2 -12
- package/hooks/usePseudoClasses.js +2 -44
- package/hooks/useResizeObserver.js +2 -31
- package/hooks/useReturnFocusOnUnmount.js +4 -21
- package/hooks/useRovingFocus.js +4 -57
- package/hooks/useSize.js +3 -47
- package/hooks/useToggle.js +3 -24
- package/hooks/usestopPropagation.js +2 -18
- package/index.d.ts +1 -0
- package/index.js +27 -43
- package/language.js +19 -0
- package/language.js.map +1 -0
- package/mobile.js +14 -0
- package/mobile.js.map +1 -0
- package/package.json +1 -1
- package/palette.js +85 -0
- package/palette.js.map +1 -0
- package/refs.js +14 -0
- package/refs.js.map +1 -0
- package/resources/HN.Designsystem.FormFieldTag.nb-NO.json.d.ts +5 -1
- package/scroll.js +9 -0
- package/scroll.js.map +1 -0
- package/scss/supernova/styles/colors.css +10 -0
- package/spacers.js +20 -0
- package/spacers.js.map +1 -0
- package/spacing.js +25 -0
- package/spacing.js.map +1 -0
- package/src.js +0 -0
- package/theme/currys/color.js +6 -16
- package/theme/currys/index.js +8 -9
- package/theme/currys/spacing.js +3 -42
- package/theme/grid.js +2 -27
- package/theme/index.js +5 -14
- package/theme/palette.js +2 -86
- package/theme/spacers.js +2 -22
- package/theme.js +13 -0
- package/theme.js.map +1 -0
- package/useBreakpoint.js +49 -0
- package/useBreakpoint.js.map +1 -0
- package/useElementList.js +25 -0
- package/useElementList.js.map +1 -0
- package/useExpand.js +16 -0
- package/useExpand.js.map +1 -0
- package/useFocusToggle.js +26 -0
- package/useFocusToggle.js.map +1 -0
- package/useFocusTrap.js +34 -0
- package/useFocusTrap.js.map +1 -0
- package/useFocusableElements.js +26 -0
- package/useFocusableElements.js.map +1 -0
- package/useIcons.js +26 -0
- package/useIcons.js.map +1 -0
- package/useIdWithFallback.js +8 -0
- package/useIdWithFallback.js.map +1 -0
- package/useIntersectionObserver.js +14 -0
- package/useIntersectionObserver.js.map +1 -0
- package/useIsMobileBreakpoint.js +8 -0
- package/useIsMobileBreakpoint.js.map +1 -0
- package/useIsServerSide.js +11 -0
- package/useIsServerSide.js.map +1 -0
- package/useIsVisible.js +16 -0
- package/useIsVisible.js.map +1 -0
- package/useKeyboardEvent.js +20 -0
- package/useKeyboardEvent.js.map +1 -0
- package/useLayoutEvent.js +21 -0
- package/useLayoutEvent.js.map +1 -0
- package/useOutsideEvent.js +20 -0
- package/useOutsideEvent.js.map +1 -0
- package/usePrevious.js +11 -0
- package/usePrevious.js.map +1 -0
- package/usePseudoClasses.js +46 -0
- package/usePseudoClasses.js.map +1 -0
- package/useResizeObserver.js +23 -0
- package/useResizeObserver.js.map +1 -0
- package/useReturnFocusOnUnmount.js +16 -0
- package/useReturnFocusOnUnmount.js.map +1 -0
- package/useRovingFocus.js +44 -0
- package/useRovingFocus.js.map +1 -0
- package/useSize.js +42 -0
- package/useSize.js.map +1 -0
- package/useToggle.js +22 -0
- package/useToggle.js.map +1 -0
- package/usestopPropagation.js +11 -0
- package/usestopPropagation.js.map +1 -0
- package/utils/accessibility.js +2 -40
- package/utils/component.js +2 -16
- package/utils/debounce.js +2 -19
- package/utils/deepContains.js +2 -19
- package/utils/device.js +2 -7
- package/utils/environment.js +2 -13
- package/utils/focus.js +2 -14
- package/utils/language.js +2 -25
- package/utils/loremtext.js +4 -7
- package/utils/loremtext.js.map +1 -1
- package/utils/mobile.js +2 -17
- package/utils/refs.js +2 -19
- package/utils/scroll.js +2 -11
- package/utils/uuid.js +3 -7
- package/utils/viewport.js +2 -8
- package/utils.js +6 -11
- package/utils.js.map +1 -1
- package/uuid.js +23 -18
- package/uuid.js.map +1 -1
- package/viewport.js +7 -0
- package/viewport.js.map +1 -0
- package/withBreakpoint.js +17 -0
- package/withBreakpoint.js.map +1 -0
- package/ErrorBoundary.js +0 -41
- package/ErrorBoundary.js.map +0 -1
- package/components/AnchorLink/index.js.map +0 -1
- package/components/Avatar/index.js.map +0 -1
- package/components/Badge/index.js.map +0 -1
- package/components/Button/index.js.map +0 -1
- package/components/Checkbox/index.js.map +0 -1
- package/components/Close/index.js.map +0 -1
- package/components/DictionaryTrigger/index.js.map +0 -1
- package/components/Drawer/index.js.map +0 -1
- package/components/Duolist/index.js.map +0 -1
- package/components/ElementHeader/StatusDotList/index.js.map +0 -1
- package/components/ErrorWrapper/index.js.map +0 -1
- package/components/Expander/index.js.map +0 -1
- package/components/FormFieldTag/index.js.map +0 -1
- package/components/FormLayout/index.js.map +0 -1
- package/components/HelpTriggerIcon/index.js.map +0 -1
- package/components/HelpTriggerStandalone/index.js.map +0 -1
- package/components/HighlightPanel/index.js.map +0 -1
- package/components/Highlighter/index.js.map +0 -1
- package/components/HorizontalScroll/index.js.map +0 -1
- package/components/Icon/index.js.map +0 -1
- package/components/Icons/AlertSignFill.js.map +0 -1
- package/components/Icons/AlertSignStroke.js.map +0 -1
- package/components/Icons/ArrowDown.js.map +0 -1
- package/components/Icons/ArrowRight.js.map +0 -1
- package/components/Icons/ArrowUp.js.map +0 -1
- package/components/Icons/ArrowUpRight.js.map +0 -1
- package/components/Icons/Calendar.js.map +0 -1
- package/components/Icons/Check.js.map +0 -1
- package/components/Icons/CheckFill.js.map +0 -1
- package/components/Icons/CheckOutline.js.map +0 -1
- package/components/Icons/ChevronDown.js.map +0 -1
- package/components/Icons/ChevronLeft.js.map +0 -1
- package/components/Icons/ChevronRight.js.map +0 -1
- package/components/Icons/ChevronUp.js.map +0 -1
- package/components/Icons/EmptyBox.js.map +0 -1
- package/components/Icons/ErrorSignFill.js.map +0 -1
- package/components/Icons/Forward.js.map +0 -1
- package/components/Icons/HandWaving.js.map +0 -1
- package/components/Icons/InfoSignFill.js.map +0 -1
- package/components/Icons/Pencil.js.map +0 -1
- package/components/Icons/PlusSmall.js.map +0 -1
- package/components/Icons/TriangleX.js.map +0 -1
- package/components/Icons/Undo.js.map +0 -1
- package/components/Icons/VerticalDots.js.map +0 -1
- package/components/Icons/Watch.js.map +0 -1
- package/components/Icons/X.js.map +0 -1
- package/components/Illustration/index.js.map +0 -1
- package/components/Illustrations/BabyMobileMedium.js.map +0 -1
- package/components/Illustrations/ChildMedium.js.map +0 -1
- package/components/Illustrations/DoctorMedium.js.map +0 -1
- package/components/Illustrations/DoctorSmall.js.map +0 -1
- package/components/Illustrations/FacialRecognitionFingerprintMedium.js.map +0 -1
- package/components/Illustrations/GiveBabyFoodMedium.js.map +0 -1
- package/components/Illustrations/HealthcarePersonnelMedium.js.map +0 -1
- package/components/Illustrations/HealthcarePersonnelSmall.js.map +0 -1
- package/components/Illustrations/IllustrationNames.js.map +0 -1
- package/components/Illustrations/ReadLettersMedium.js.map +0 -1
- package/components/Illustrations/StrollerMedium.js.map +0 -1
- package/components/Illustrations/Support2Medium.js.map +0 -1
- package/components/InfoTeaser/index.js.map +0 -1
- package/components/Input/index.js.map +0 -1
- package/components/Label/index.js.map +0 -1
- package/components/LazyIcon/index.js.map +0 -1
- package/components/LazyIllustration/index.js.map +0 -1
- package/components/LinkList/index.js.map +0 -1
- package/components/List/index.js.map +0 -1
- package/components/ListEditMode/index.js.map +0 -1
- package/components/Panel/PanelTitle/index.js.map +0 -1
- package/components/PopOver/index.js.map +0 -1
- package/components/Portal/index.js.map +0 -1
- package/components/RadioButton/index.js.map +0 -1
- package/components/Select/index.js.map +0 -1
- package/components/Slider/index.js.map +0 -1
- package/components/Spacer/index.js.map +0 -1
- package/components/StatusDot/index.js.map +0 -1
- package/components/StepButtons/index.js.map +0 -1
- package/components/Table/TableBody/index.js.map +0 -1
- package/components/Table/TableCell/index.js.map +0 -1
- package/components/Table/TableExpandedRow/index.js.map +0 -1
- package/components/Table/TableExpanderCell/index.js.map +0 -1
- package/components/Table/TableHead/index.js.map +0 -1
- package/components/Table/TableHeadCell/index.js.map +0 -1
- package/components/Table/TableRow/index.js.map +0 -1
- package/components/Tabs/TabList/index.js.map +0 -1
- package/components/Tabs/TabPanel/index.js.map +0 -1
- package/components/Textarea/index.js.map +0 -1
- package/components/Title/index.js.map +0 -1
- package/constants.js.map +0 -1
- package/hoc/withBreakpoint/withBreakpoint.js.map +0 -1
- package/hooks/useBreakpoint.js.map +0 -1
- package/hooks/useElementList.js.map +0 -1
- package/hooks/useExpand.js.map +0 -1
- package/hooks/useFocusToggle.js.map +0 -1
- package/hooks/useFocusTrap.js.map +0 -1
- package/hooks/useFocusableElements.js.map +0 -1
- package/hooks/useIcons.js.map +0 -1
- package/hooks/useIdWithFallback.js.map +0 -1
- package/hooks/useIntersectionObserver.js.map +0 -1
- package/hooks/useIsMobileBreakpoint.js.map +0 -1
- package/hooks/useIsServerSide.js.map +0 -1
- package/hooks/useIsVisible.js.map +0 -1
- package/hooks/useKeyboardEvent.js.map +0 -1
- package/hooks/useLayoutEvent.js.map +0 -1
- package/hooks/useOutsideEvent.js.map +0 -1
- package/hooks/usePrevious.js.map +0 -1
- package/hooks/usePseudoClasses.js.map +0 -1
- package/hooks/useResizeObserver.js.map +0 -1
- package/hooks/useReturnFocusOnUnmount.js.map +0 -1
- package/hooks/useRovingFocus.js.map +0 -1
- package/hooks/useSize.js.map +0 -1
- package/hooks/useToggle.js.map +0 -1
- package/hooks/usestopPropagation.js.map +0 -1
- package/index.js.map +0 -1
- package/theme/currys/color.js.map +0 -1
- package/theme/currys/index.js.map +0 -1
- package/theme/currys/spacing.js.map +0 -1
- package/theme/grid.js.map +0 -1
- package/theme/index.js.map +0 -1
- package/theme/palette.js.map +0 -1
- package/theme/spacers.js.map +0 -1
- package/utils/accessibility.js.map +0 -1
- package/utils/component.js.map +0 -1
- package/utils/debounce.js.map +0 -1
- package/utils/deepContains.js.map +0 -1
- package/utils/device.js.map +0 -1
- package/utils/environment.js.map +0 -1
- package/utils/focus.js.map +0 -1
- package/utils/language.js.map +0 -1
- package/utils/mobile.js.map +0 -1
- package/utils/refs.js.map +0 -1
- package/utils/scroll.js.map +0 -1
- package/utils/uuid.js.map +0 -1
- package/utils/viewport.js.map +0 -1
- /package/{resources/index.d.ts → components/DropdownOld/DropdownOld.test.d.ts} +0 -0
package/AlertSignFill.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { r as getIcon } from "./Icon.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var AlertSignFill = ({ size, isHovered }) => {
|
|
5
|
+
return getIcon({
|
|
6
|
+
size,
|
|
7
|
+
isHovered,
|
|
8
|
+
normal: /* @__PURE__ */ jsx("path", { d: "M24.898 21.447v7.228a.893.893 0 01-1.785 0v-7.228a.892.892 0 111.785 0zm.5 11.601a1.394 1.394 0 11-2.787-.001 1.394 1.394 0 012.787.001zm-18.822 6.71h34.847L24.111 8.242 6.576 39.758z" }),
|
|
9
|
+
normalHover: /* @__PURE__ */ jsx("path", { d: "M24.898 19.447v7.228a.893.893 0 01-1.785 0v-7.228a.892.892 0 111.785 0zm.5 13.601a1.394 1.394 0 11-2.787-.001 1.394 1.394 0 012.787.001zm-18.822 6.71h34.847L24.111 8.242 6.576 39.758z" }),
|
|
10
|
+
xSmall: /* @__PURE__ */ jsx("path", { d: "M24.896 21.452v7.213a.891.891 0 01-1.782 0v-7.213a.89.89 0 111.782 0zm.5 11.577a1.39 1.39 0 11-2.782-.001 1.39 1.39 0 012.782.001zM6.613 39.725h34.774L24.11 8.275 6.613 39.725z" }),
|
|
11
|
+
xSmallHover: /* @__PURE__ */ jsx("path", { d: "M24.896 18.926v7.213a.891.891 0 01-1.782 0v-7.213a.89.89 0 111.782 0zm.5 14.103a1.39 1.39 0 11-2.782-.001 1.39 1.39 0 012.782.001zM6.613 39.725h34.774L24.11 8.275 6.613 39.725z" })
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var AlertSignFill_default = AlertSignFill;
|
|
15
|
+
export { AlertSignFill_default as t };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=AlertSignFill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertSignFill.js","names":["AlertSignFill: React.FC<SvgPathProps>"],"sources":["../src/components/Icons/AlertSignFill.tsx"],"sourcesContent":["import React from 'react';\n\nimport { getIcon, SvgPathProps } from '../Icon';\n\nconst AlertSignFill: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): React.ReactElement => {\n const normal = (\n <path d=\"M24.898 21.447v7.228a.893.893 0 01-1.785 0v-7.228a.892.892 0 111.785 0zm.5 11.601a1.394 1.394 0 11-2.787-.001 1.394 1.394 0 012.787.001zm-18.822 6.71h34.847L24.111 8.242 6.576 39.758z\" />\n );\n\n const normalHover = (\n <path d=\"M24.898 19.447v7.228a.893.893 0 01-1.785 0v-7.228a.892.892 0 111.785 0zm.5 13.601a1.394 1.394 0 11-2.787-.001 1.394 1.394 0 012.787.001zm-18.822 6.71h34.847L24.111 8.242 6.576 39.758z\" />\n );\n\n const xSmall = (\n <path d=\"M24.896 21.452v7.213a.891.891 0 01-1.782 0v-7.213a.89.89 0 111.782 0zm.5 11.577a1.39 1.39 0 11-2.782-.001 1.39 1.39 0 012.782.001zM6.613 39.725h34.774L24.11 8.275 6.613 39.725z\" />\n );\n\n const xSmallHover = (\n <path d=\"M24.896 18.926v7.213a.891.891 0 01-1.782 0v-7.213a.89.89 0 111.782 0zm.5 14.103a1.39 1.39 0 11-2.782-.001 1.39 1.39 0 012.782.001zM6.613 39.725h34.774L24.11 8.275 6.613 39.725z\" />\n );\n\n return getIcon({ size, isHovered, normal, normalHover, xSmall, xSmallHover });\n};\n\nexport default AlertSignFill;\n"],"mappings":";;;AAIA,IAAMA,iBAAyC,EAAE,MAAM,gBAAkD;AAiBvG,QAAO,QAAQ;EAAE;EAAM;EAAW,QAfhC,oBAAC,QAAA,EAAK,GAAE,2LAAA,CAA4L;EAe5J,aAXxC,oBAAC,QAAA,EAAK,GAAE,2LAAA,CAA4L;EAW/I,QAPrD,oBAAC,QAAA,EAAK,GAAE,oLAAA,CAAqL;EAOhI,aAH7D,oBAAC,QAAA,EAAK,GAAE,oLAAA,CAAqL;EAGnH,CAAC;;AAG/E,IAAA,wBAAe"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { r as getIcon } from "./Icon.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var AlertSignStroke = ({ size, isHovered }) => {
|
|
5
|
+
return getIcon({
|
|
6
|
+
size,
|
|
7
|
+
isHovered,
|
|
8
|
+
normal: /* @__PURE__ */ jsx("path", { d: "M24.003 31.578a1.394 1.394 0 100 2.788 1.394 1.394 0 000-2.788zm.098-20.19l14.687 26.735H9.227L24.1 11.388zm.008-2.929L6.816 39.541h34.367L24.109 8.459zm-.106 21.033c.494 0 .893-.4.893-.893v-7.228a.893.893 0 00-1.786 0v7.228c0 .493.4.893.893.893z" }),
|
|
9
|
+
normalHover: /* @__PURE__ */ jsx("path", { d: "M24.003 31.578a1.394 1.394 0 100 2.788 1.394 1.394 0 000-2.788zm.098-20.19l14.687 26.735H9.227L24.1 11.388zm.008-2.929L6.816 39.541h34.367L24.109 8.459zm-.106 19.033c.494 0 .893-.4.893-.893v-7.228a.893.893 0 00-1.786 0v7.228c0 .493.4.893.893.893z" }),
|
|
10
|
+
xSmall: /* @__PURE__ */ jsx("path", { d: "M24.003 31.562a1.39 1.39 0 100 2.782 1.39 1.39 0 000-2.782zm.097-20.147l14.656 26.678H9.258L24.1 11.415zm.008-2.923L6.853 39.508h34.294L24.108 8.492zm-.105 20.988c.492 0 .892-.399.892-.89v-7.213a.891.891 0 00-1.783 0v7.212c0 .492.4.891.891.891z" }),
|
|
11
|
+
xSmallHover: /* @__PURE__ */ jsx("path", { d: "M24.003 31.562a1.39 1.39 0 100 2.782 1.39 1.39 0 000-2.782zm.097-20.147l14.656 26.678H9.258L24.1 11.415zm.008-2.923L6.853 39.508h34.294L24.108 8.492zm-.105 18.462c.492 0 .892-.399.892-.891V18.85a.891.891 0 00-1.783 0v7.213c0 .492.4.891.891.891z" })
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var AlertSignStroke_default = AlertSignStroke;
|
|
15
|
+
export { AlertSignStroke_default as t };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=AlertSignStroke.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertSignStroke.js","names":["AlertSignStroke: React.FC<SvgPathProps>"],"sources":["../src/components/Icons/AlertSignStroke.tsx"],"sourcesContent":["import React from 'react';\n\nimport { getIcon, SvgPathProps } from '../Icon';\n\nconst AlertSignStroke: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): React.ReactElement => {\n const normal = (\n <path d=\"M24.003 31.578a1.394 1.394 0 100 2.788 1.394 1.394 0 000-2.788zm.098-20.19l14.687 26.735H9.227L24.1 11.388zm.008-2.929L6.816 39.541h34.367L24.109 8.459zm-.106 21.033c.494 0 .893-.4.893-.893v-7.228a.893.893 0 00-1.786 0v7.228c0 .493.4.893.893.893z\" />\n );\n\n const normalHover = (\n <path d=\"M24.003 31.578a1.394 1.394 0 100 2.788 1.394 1.394 0 000-2.788zm.098-20.19l14.687 26.735H9.227L24.1 11.388zm.008-2.929L6.816 39.541h34.367L24.109 8.459zm-.106 19.033c.494 0 .893-.4.893-.893v-7.228a.893.893 0 00-1.786 0v7.228c0 .493.4.893.893.893z\" />\n );\n\n const xSmall = (\n <path d=\"M24.003 31.562a1.39 1.39 0 100 2.782 1.39 1.39 0 000-2.782zm.097-20.147l14.656 26.678H9.258L24.1 11.415zm.008-2.923L6.853 39.508h34.294L24.108 8.492zm-.105 20.988c.492 0 .892-.399.892-.89v-7.213a.891.891 0 00-1.783 0v7.212c0 .492.4.891.891.891z\" />\n );\n\n const xSmallHover = (\n <path d=\"M24.003 31.562a1.39 1.39 0 100 2.782 1.39 1.39 0 000-2.782zm.097-20.147l14.656 26.678H9.258L24.1 11.415zm.008-2.923L6.853 39.508h34.294L24.108 8.492zm-.105 18.462c.492 0 .892-.399.892-.891V18.85a.891.891 0 00-1.783 0v7.213c0 .492.4.891.891.891z\" />\n );\n\n return getIcon({ size, isHovered, normal, normalHover, xSmall, xSmallHover });\n};\n\nexport default AlertSignStroke;\n"],"mappings":";;;AAIA,IAAMA,mBAA2C,EAAE,MAAM,gBAAkD;AAiBzG,QAAO,QAAQ;EAAE;EAAM;EAAW,QAfhC,oBAAC,QAAA,EAAK,GAAE,0PAAA,CAA2P;EAe3N,aAXxC,oBAAC,QAAA,EAAK,GAAE,0PAAA,CAA2P;EAW9M,QAPrD,oBAAC,QAAA,EAAK,GAAE,wPAAA,CAAyP;EAOpM,aAH7D,oBAAC,QAAA,EAAK,GAAE,wPAAA,CAAyP;EAGvL,CAAC;;AAG/E,IAAA,0BAAe"}
|
package/AnchorLink.js
CHANGED
|
@@ -1,66 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { a as IconSize, n as AnalyticsId } from "./constants2.js";
|
|
2
|
+
import { t as usePseudoClasses } from "./usePseudoClasses.js";
|
|
3
|
+
import { t as getColor } from "./color.js";
|
|
4
|
+
import { t as Icon_default } from "./Icon.js";
|
|
5
|
+
import { t as ArrowUpRight_default } from "./ArrowUpRight.js";
|
|
6
|
+
import React from "react";
|
|
7
|
+
import cn from "classnames";
|
|
8
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import AnchorLinkStyles from "./components/AnchorLink/styles.module.scss";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
children: renderContent()
|
|
48
|
-
}
|
|
49
|
-
),
|
|
50
|
-
htmlMarkup === "button" && /* @__PURE__ */ jsx(
|
|
51
|
-
"button",
|
|
52
|
-
{
|
|
53
|
-
type: "button",
|
|
54
|
-
className: AnchorLinkStyles["anchorlink-wrapper"],
|
|
55
|
-
ref: refObject,
|
|
56
|
-
...commonProps,
|
|
57
|
-
children: /* @__PURE__ */ jsx("span", { className: anchorClasses, children: renderContent() })
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
] });
|
|
10
|
+
var AnchorLink = React.forwardRef((props, ref) => {
|
|
11
|
+
const { id, href, children, className, target = "_self", htmlMarkup = "a", onClick, testId } = props;
|
|
12
|
+
const external = target === "_blank";
|
|
13
|
+
const { refObject, isHovered } = usePseudoClasses(ref);
|
|
14
|
+
const anchorClasses = cn(AnchorLinkStyles.anchorlink, className);
|
|
15
|
+
const commonProps = {
|
|
16
|
+
id,
|
|
17
|
+
["data-testid"]: testId,
|
|
18
|
+
["data-analyticsid"]: AnalyticsId.AnchorLink,
|
|
19
|
+
onClick
|
|
20
|
+
};
|
|
21
|
+
const renderContent = () => /* @__PURE__ */ jsxs(Fragment, { children: [children, external && /* @__PURE__ */ jsx(Icon_default, {
|
|
22
|
+
className: AnchorLinkStyles.anchorlink__icon,
|
|
23
|
+
svgIcon: ArrowUpRight_default,
|
|
24
|
+
color: getColor("blueberry", 600),
|
|
25
|
+
hoverColor: getColor("blueberry", 700),
|
|
26
|
+
size: IconSize.XSmall,
|
|
27
|
+
isHovered
|
|
28
|
+
})] });
|
|
29
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [htmlMarkup === "a" && /* @__PURE__ */ jsx("a", {
|
|
30
|
+
href,
|
|
31
|
+
target,
|
|
32
|
+
className: anchorClasses,
|
|
33
|
+
rel: external ? "noopener noreferrer" : void 0,
|
|
34
|
+
ref: refObject,
|
|
35
|
+
...commonProps,
|
|
36
|
+
children: renderContent()
|
|
37
|
+
}), htmlMarkup === "button" && /* @__PURE__ */ jsx("button", {
|
|
38
|
+
type: "button",
|
|
39
|
+
className: AnchorLinkStyles["anchorlink-wrapper"],
|
|
40
|
+
ref: refObject,
|
|
41
|
+
...commonProps,
|
|
42
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
43
|
+
className: anchorClasses,
|
|
44
|
+
children: renderContent()
|
|
45
|
+
})
|
|
46
|
+
})] });
|
|
61
47
|
});
|
|
62
48
|
AnchorLink.displayName = "AnchorLink";
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
//# sourceMappingURL=AnchorLink.js.map
|
|
49
|
+
var AnchorLink_default$1 = AnchorLink;
|
|
50
|
+
export { AnchorLink_default$1 as t };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=AnchorLink.js.map
|
package/AnchorLink.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnchorLink.js","sources":["../src/components/AnchorLink/AnchorLink.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { usePseudoClasses } from '../../hooks/usePseudoClasses';\nimport { getColor } from '../../theme/currys';\nimport Icon, { IconSize } from '../Icon';\nimport ArrowUpRight from '../Icons/ArrowUpRight';\n\nimport AnchorLinkStyles from './styles.module.scss';\n\nexport type AnchorLinkTargets = '_self' | '_blank' | '_parent';\n\nexport type AnchorLinkTags = 'a' | 'button';\n\nexport type AnchorLinkOnClickEvent =\n | React.MouseEvent<HTMLElement, MouseEvent>\n | React.FormEvent<unknown>\n | React.KeyboardEvent<HTMLUListElement>\n | null;\n\nexport interface AnchorLinkProps {\n /** Sets the content of the <a> tag */\n children: React.ReactNode;\n /** URL to link to */\n href?: string;\n /** Gives a unique id to the anchor-link :) */\n id?: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the target type of the <a> tag. _blank adds an arrow icon at the end of the link */\n target?: AnchorLinkTargets;\n /** HTML markup for anchor link. Default: a */\n htmlMarkup?: AnchorLinkTags;\n /** Function that is called when clicked */\n onClick?: (e?: AnchorLinkOnClickEvent) => void;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst AnchorLink = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, AnchorLinkProps>((props, ref) => {\n const { id, href, children, className, target = '_self', htmlMarkup = 'a', onClick, testId } = props;\n const external = target === '_blank';\n const { refObject, isHovered } = usePseudoClasses<HTMLButtonElement | HTMLAnchorElement>(\n ref as React.RefObject<HTMLButtonElement | HTMLAnchorElement>\n );\n const anchorClasses = classNames(AnchorLinkStyles.anchorlink, className);\n\n const commonProps = {\n id,\n ['data-testid']: testId,\n ['data-analyticsid']: AnalyticsId.AnchorLink,\n onClick,\n };\n\n const renderContent = (): React.ReactElement => (\n <>\n {children}\n {external && (\n <Icon\n className={AnchorLinkStyles.anchorlink__icon}\n svgIcon={ArrowUpRight}\n color={getColor('blueberry', 600)}\n hoverColor={getColor('blueberry', 700)}\n size={IconSize.XSmall}\n isHovered={isHovered}\n />\n )}\n </>\n );\n\n return (\n <>\n {htmlMarkup === 'a' && (\n <a\n href={href}\n target={target}\n className={anchorClasses}\n rel={external ? 'noopener noreferrer' : undefined}\n ref={refObject as React.RefObject<HTMLAnchorElement>}\n {...commonProps}\n >\n {renderContent()}\n </a>\n )}\n {htmlMarkup === 'button' && (\n <button\n type=\"button\"\n className={AnchorLinkStyles['anchorlink-wrapper']}\n ref={refObject as React.RefObject<HTMLButtonElement>}\n {...commonProps}\n >\n <span className={anchorClasses}>{renderContent()}</span>\n </button>\n )}\n </>\n );\n});\n\nAnchorLink.displayName = 'AnchorLink';\n\nexport default AnchorLink;\n"
|
|
1
|
+
{"version":3,"file":"AnchorLink.js","names":[],"sources":["../src/components/AnchorLink/AnchorLink.tsx","../src/components/AnchorLink/index.ts"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { usePseudoClasses } from '../../hooks/usePseudoClasses';\nimport { getColor } from '../../theme/currys';\nimport Icon, { IconSize } from '../Icon';\nimport ArrowUpRight from '../Icons/ArrowUpRight';\n\nimport AnchorLinkStyles from './styles.module.scss';\n\nexport type AnchorLinkTargets = '_self' | '_blank' | '_parent';\n\nexport type AnchorLinkTags = 'a' | 'button';\n\nexport type AnchorLinkOnClickEvent =\n | React.MouseEvent<HTMLElement, MouseEvent>\n | React.FormEvent<unknown>\n | React.KeyboardEvent<HTMLUListElement>\n | null;\n\nexport interface AnchorLinkProps {\n /** Sets the content of the <a> tag */\n children: React.ReactNode;\n /** URL to link to */\n href?: string;\n /** Gives a unique id to the anchor-link :) */\n id?: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the target type of the <a> tag. _blank adds an arrow icon at the end of the link */\n target?: AnchorLinkTargets;\n /** HTML markup for anchor link. Default: a */\n htmlMarkup?: AnchorLinkTags;\n /** Function that is called when clicked */\n onClick?: (e?: AnchorLinkOnClickEvent) => void;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nconst AnchorLink = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, AnchorLinkProps>((props, ref) => {\n const { id, href, children, className, target = '_self', htmlMarkup = 'a', onClick, testId } = props;\n const external = target === '_blank';\n const { refObject, isHovered } = usePseudoClasses<HTMLButtonElement | HTMLAnchorElement>(\n ref as React.RefObject<HTMLButtonElement | HTMLAnchorElement>\n );\n const anchorClasses = classNames(AnchorLinkStyles.anchorlink, className);\n\n const commonProps = {\n id,\n ['data-testid']: testId,\n ['data-analyticsid']: AnalyticsId.AnchorLink,\n onClick,\n };\n\n const renderContent = (): React.ReactElement => (\n <>\n {children}\n {external && (\n <Icon\n className={AnchorLinkStyles.anchorlink__icon}\n svgIcon={ArrowUpRight}\n color={getColor('blueberry', 600)}\n hoverColor={getColor('blueberry', 700)}\n size={IconSize.XSmall}\n isHovered={isHovered}\n />\n )}\n </>\n );\n\n return (\n <>\n {htmlMarkup === 'a' && (\n <a\n href={href}\n target={target}\n className={anchorClasses}\n rel={external ? 'noopener noreferrer' : undefined}\n ref={refObject as React.RefObject<HTMLAnchorElement>}\n {...commonProps}\n >\n {renderContent()}\n </a>\n )}\n {htmlMarkup === 'button' && (\n <button\n type=\"button\"\n className={AnchorLinkStyles['anchorlink-wrapper']}\n ref={refObject as React.RefObject<HTMLButtonElement>}\n {...commonProps}\n >\n <span className={anchorClasses}>{renderContent()}</span>\n </button>\n )}\n </>\n );\n});\n\nAnchorLink.displayName = 'AnchorLink';\n\nexport default AnchorLink;\n","import AnchorLink from './AnchorLink';\nexport * from './AnchorLink';\nexport default AnchorLink;\n"],"mappings":";;;;;;;;;AAyCA,IAAM,aAAa,MAAM,YAAoE,OAAO,QAAQ;CAC1G,MAAM,EAAE,IAAI,MAAM,UAAU,WAAW,SAAS,SAAS,aAAa,KAAK,SAAS,WAAW;CAC/F,MAAM,WAAW,WAAW;CAC5B,MAAM,EAAE,WAAW,cAAc,iBAC/B,IACD;CACD,MAAM,gBAAgB,GAAW,iBAAiB,YAAY,UAAU;CAExE,MAAM,cAAc;EAClB;GACC,gBAAgB;GAChB,qBAAqB,YAAY;EAClC;EACD;CAED,MAAM,sBACJ,qBAAA,UAAA,EAAA,UAAA,CACG,UACA,YACC,oBAAC,cAAA;EACC,WAAW,iBAAiB;EAC5B,SAAS;EACT,OAAO,SAAS,aAAa,IAAI;EACjC,YAAY,SAAS,aAAa,IAAI;EACtC,MAAM,SAAS;EACJ;GACX,CAAA,EAAA,CAEH;AAGL,QACE,qBAAA,UAAA,EAAA,UAAA,CACG,eAAe,OACd,oBAAC,KAAA;EACO;EACE;EACR,WAAW;EACX,KAAK,WAAW,wBAAwB,KAAA;EACxC,KAAK;EACL,GAAI;YAEH,eAAe;GACd,EAEL,eAAe,YACd,oBAAC,UAAA;EACC,MAAK;EACL,WAAW,iBAAiB;EAC5B,KAAK;EACL,GAAI;YAEJ,oBAAC,QAAA;GAAK,WAAW;aAAgB,eAAe;IAAQ;GACjD,CAAA,EAAA,CAEV;EAEL;AAEF,WAAW,cAAc;AClGzB,IAAA,uBDoGe"}
|
package/ArrowDown.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { r as getIcon } from "./Icon.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var ArrowDown = ({ size, isHovered }) => {
|
|
5
|
+
return getIcon({
|
|
6
|
+
size,
|
|
7
|
+
isHovered,
|
|
8
|
+
normal: /* @__PURE__ */ jsx("path", {
|
|
9
|
+
transform: "rotate(270,26.17,26.17)",
|
|
10
|
+
d: "M20.925 5.929l1.142 1.377L9.023 23.027h33.048v1.948H9.023l13.044 15.717-1.142 1.379-14.996-18.07z"
|
|
11
|
+
}),
|
|
12
|
+
normalHover: /* @__PURE__ */ jsx("path", {
|
|
13
|
+
transform: "rotate(270,26.17,26.17)",
|
|
14
|
+
d: "M17.925 5.929l1.142 1.377L6.023 23.027h36.048v1.948H6.023l13.044 15.717-1.142 1.379-14.996-18.07z"
|
|
15
|
+
}),
|
|
16
|
+
xSmall: /* @__PURE__ */ jsx("path", {
|
|
17
|
+
transform: "rotate(270,26.17,26.17)",
|
|
18
|
+
d: "M20.925 5.929l1.443 1.739-12.53 15.103h32.233v2.46H9.838l12.53 15.099-1.443 1.741-14.996-18.07z"
|
|
19
|
+
}),
|
|
20
|
+
xSmallHover: /* @__PURE__ */ jsx("path", {
|
|
21
|
+
transform: "rotate(270,26.17,26.17)",
|
|
22
|
+
d: "M17.135 5.929l1.443 1.739-12.53 15.103h36.023v2.46H6.048l12.53 15.099-1.443 1.741-14.996-18.07z"
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var ArrowDown_default = ArrowDown;
|
|
27
|
+
export { ArrowDown_default as t };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=ArrowDown.js.map
|
package/ArrowDown.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowDown.js","names":["ArrowDown: React.FC<SvgPathProps>"],"sources":["../src/components/Icons/ArrowDown.tsx"],"sourcesContent":["import React from 'react';\n\nimport { getIcon, SvgPathProps } from '../Icon';\n\nconst ArrowDown: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): React.ReactElement => {\n const normal = (\n <path\n transform=\"rotate(270,26.17,26.17)\"\n d=\"M20.925 5.929l1.142 1.377L9.023 23.027h33.048v1.948H9.023l13.044 15.717-1.142 1.379-14.996-18.07z\"\n />\n );\n\n const normalHover = (\n <path\n transform=\"rotate(270,26.17,26.17)\"\n d=\"M17.925 5.929l1.142 1.377L6.023 23.027h36.048v1.948H6.023l13.044 15.717-1.142 1.379-14.996-18.07z\"\n />\n );\n\n const xSmall = (\n <path\n transform=\"rotate(270,26.17,26.17)\"\n d=\"M20.925 5.929l1.443 1.739-12.53 15.103h32.233v2.46H9.838l12.53 15.099-1.443 1.741-14.996-18.07z\"\n />\n );\n\n const xSmallHover = (\n <path\n transform=\"rotate(270,26.17,26.17)\"\n d=\"M17.135 5.929l1.443 1.739-12.53 15.103h36.023v2.46H6.048l12.53 15.099-1.443 1.741-14.996-18.07z\"\n />\n );\n\n return getIcon({ size, isHovered, normal, normalHover, xSmall, xSmallHover });\n};\n\nexport default ArrowDown;\n"],"mappings":";;;AAIA,IAAMA,aAAqC,EAAE,MAAM,gBAAkD;AA6BnG,QAAO,QAAQ;EAAE;EAAM;EAAW,QA3BhC,oBAAC,QAAA;GACC,WAAU;GACV,GAAE;IACF;EAwBsC,aApBxC,oBAAC,QAAA;GACC,WAAU;GACV,GAAE;IACF;EAiBmD,QAbrD,oBAAC,QAAA;GACC,WAAU;GACV,GAAE;IACF;EAU2D,aAN7D,oBAAC,QAAA;GACC,WAAU;GACV,GAAE;IACF;EAGwE,CAAC;;AAG/E,IAAA,oBAAe"}
|
package/ArrowRight.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { r as getIcon } from "./Icon.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var ArrowRight = ({ size, isHovered }) => {
|
|
5
|
+
return getIcon({
|
|
6
|
+
size,
|
|
7
|
+
isHovered,
|
|
8
|
+
normal: /* @__PURE__ */ jsx("path", { d: "m27.075 9.929-1.142 1.377 10.044 11.721H8.929v1.947h27.048L25.933 36.692l1.142 1.379L39.07 24 27.075 9.929Z" }),
|
|
9
|
+
normalHover: /* @__PURE__ */ jsx("path", { d: "m33.075 9.929-1.143 1.377 10.045 11.721H5.929v1.947h36.048L31.933 36.692l1.142 1.379L45.07 24 33.075 9.929Z" }),
|
|
10
|
+
xSmall: /* @__PURE__ */ jsx("path", { d: "m27.075 9.718-1.443 1.739L35.636 22.77H8.456v2.46h27.18L25.632 36.539l1.443 1.742 12.47-14.28-12.47-14.283Z" }),
|
|
11
|
+
xSmallHover: /* @__PURE__ */ jsx("path", { d: "m33.39 9.719-1.442 1.739 10.004 11.314H5.929v2.46h36.023L31.948 36.54l1.443 1.741 12.47-14.28L33.39 9.719Z" })
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var ArrowRight_default = ArrowRight;
|
|
15
|
+
export { ArrowRight_default as t };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=ArrowRight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowRight.js","names":["ArrowRight: React.FC<SvgPathProps>"],"sources":["../src/components/Icons/ArrowRight.tsx"],"sourcesContent":["import React from 'react';\n\nimport { getIcon, SvgPathProps } from '../Icon';\n\nconst ArrowRight: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): JSX.Element => {\n const normal = <path d=\"m27.075 9.929-1.142 1.377 10.044 11.721H8.929v1.947h27.048L25.933 36.692l1.142 1.379L39.07 24 27.075 9.929Z\" />;\n\n const normalHover = (\n <path d=\"m33.075 9.929-1.143 1.377 10.045 11.721H5.929v1.947h36.048L31.933 36.692l1.142 1.379L45.07 24 33.075 9.929Z\" />\n );\n\n const xSmall = <path d=\"m27.075 9.718-1.443 1.739L35.636 22.77H8.456v2.46h27.18L25.632 36.539l1.443 1.742 12.47-14.28-12.47-14.283Z\" />;\n\n const xSmallHover = (\n <path d=\"m33.39 9.719-1.442 1.739 10.004 11.314H5.929v2.46h36.023L31.948 36.54l1.443 1.741 12.47-14.28L33.39 9.719Z\" />\n );\n\n return getIcon({ size, isHovered, normal, normalHover, xSmall, xSmallHover });\n};\n\nexport default ArrowRight;\n"],"mappings":";;;AAIA,IAAMA,cAAsC,EAAE,MAAM,gBAA2C;AAa7F,QAAO,QAAQ;EAAE;EAAM;EAAW,QAZnB,oBAAC,QAAA,EAAK,GAAE,+GAAA,CAAgH;EAY7F,aATxC,oBAAC,QAAA,EAAK,GAAE,+GAAA,CAAgH;EASnE,QANxC,oBAAC,QAAA,EAAK,GAAE,+GAAA,CAAgH;EAMxE,aAH7D,oBAAC,QAAA,EAAK,GAAE,8GAAA,CAA+G;EAG7C,CAAC;;AAG/E,IAAA,qBAAe"}
|
package/ArrowUp.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { r as getIcon } from "./Icon.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var ArrowUp = ({ size, isHovered }) => {
|
|
5
|
+
return getIcon({
|
|
6
|
+
size,
|
|
7
|
+
isHovered,
|
|
8
|
+
normal: /* @__PURE__ */ jsx("path", {
|
|
9
|
+
transform: "rotate(90,26.17,26.17)",
|
|
10
|
+
d: "M20.925 5.929l1.142 1.377L9.023 23.027h33.048v1.948H9.023l13.044 15.717-1.142 1.379-14.996-18.07z"
|
|
11
|
+
}),
|
|
12
|
+
normalHover: /* @__PURE__ */ jsx("path", {
|
|
13
|
+
transform: "rotate(90,26.17,26.17)",
|
|
14
|
+
d: "M17.925 5.929l1.142 1.377L6.023 23.027h36.048v1.948H6.023l13.044 15.717-1.142 1.379-14.996-18.07z"
|
|
15
|
+
}),
|
|
16
|
+
xSmall: /* @__PURE__ */ jsx("path", {
|
|
17
|
+
transform: "rotate(90,26.17,26.17)",
|
|
18
|
+
d: "M20.925 5.929l1.443 1.739-12.53 15.103h32.233v2.46H9.838l12.53 15.099-1.443 1.741-14.996-18.07z"
|
|
19
|
+
}),
|
|
20
|
+
xSmallHover: /* @__PURE__ */ jsx("path", {
|
|
21
|
+
transform: "rotate(90,26.17,26.17)",
|
|
22
|
+
d: "M17.135 5.929l1.443 1.739-12.53 15.103h36.023v2.46H6.048l12.53 15.099-1.443 1.741-14.996-18.07z"
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var ArrowUp_default = ArrowUp;
|
|
27
|
+
export { ArrowUp_default as t };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=ArrowUp.js.map
|
package/ArrowUp.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowUp.js","names":["ArrowUp: React.FC<SvgPathProps>"],"sources":["../src/components/Icons/ArrowUp.tsx"],"sourcesContent":["import React from 'react';\n\nimport { getIcon, SvgPathProps } from '../Icon';\n\nconst ArrowUp: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): React.ReactElement => {\n const normal = (\n <path\n transform=\"rotate(90,26.17,26.17)\"\n d=\"M20.925 5.929l1.142 1.377L9.023 23.027h33.048v1.948H9.023l13.044 15.717-1.142 1.379-14.996-18.07z\"\n />\n );\n\n const normalHover = (\n <path\n transform=\"rotate(90,26.17,26.17)\"\n d=\"M17.925 5.929l1.142 1.377L6.023 23.027h36.048v1.948H6.023l13.044 15.717-1.142 1.379-14.996-18.07z\"\n />\n );\n\n const xSmall = (\n <path\n transform=\"rotate(90,26.17,26.17)\"\n d=\"M20.925 5.929l1.443 1.739-12.53 15.103h32.233v2.46H9.838l12.53 15.099-1.443 1.741-14.996-18.07z\"\n />\n );\n\n const xSmallHover = (\n <path\n transform=\"rotate(90,26.17,26.17)\"\n d=\"M17.135 5.929l1.443 1.739-12.53 15.103h36.023v2.46H6.048l12.53 15.099-1.443 1.741-14.996-18.07z\"\n />\n );\n\n return getIcon({ size, isHovered, normal, normalHover, xSmall, xSmallHover });\n};\n\nexport default ArrowUp;\n"],"mappings":";;;AAIA,IAAMA,WAAmC,EAAE,MAAM,gBAAkD;AA6BjG,QAAO,QAAQ;EAAE;EAAM;EAAW,QA3BhC,oBAAC,QAAA;GACC,WAAU;GACV,GAAE;IACF;EAwBsC,aApBxC,oBAAC,QAAA;GACC,WAAU;GACV,GAAE;IACF;EAiBmD,QAbrD,oBAAC,QAAA;GACC,WAAU;GACV,GAAE;IACF;EAU2D,aAN7D,oBAAC,QAAA;GACC,WAAU;GACV,GAAE;IACF;EAGwE,CAAC;;AAG/E,IAAA,kBAAe"}
|
package/ArrowUpRight.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { r as getIcon } from "./Icon.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var ArrowUpRight = ({ size, isHovered }) => {
|
|
5
|
+
return getIcon({
|
|
6
|
+
size,
|
|
7
|
+
isHovered,
|
|
8
|
+
normal: /* @__PURE__ */ jsx("path", { d: "M33.305 14.659v14.546h-1.3V16.948L15.804 33.149l-.919-.92 16.27-16.27-12.394.001v-1.301z" }),
|
|
9
|
+
normalHover: /* @__PURE__ */ jsx("path", { d: "M36.52 11.537v14.545h-1.3l-.001-12.347-19.415 19.414-.919-.92 19.393-19.392-12.302.001v-1.301z" }),
|
|
10
|
+
xSmall: /* @__PURE__ */ jsx("path", { d: "M18.76 14.426v1.768h11.83L14.719 32.065l1.251 1.25 15.801-15.801v11.691h1.768V14.426z" }),
|
|
11
|
+
xSmallHover: /* @__PURE__ */ jsx("path", { d: "M22.076 11.122v1.769h11.736L14.819 31.884l1.252 1.25 19.015-19.015v11.782h1.769V11.122z" })
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var ArrowUpRight_default = ArrowUpRight;
|
|
15
|
+
export { ArrowUpRight_default as t };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=ArrowUpRight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowUpRight.js","names":["ArrowUpRight: React.FC<SvgPathProps>"],"sources":["../src/components/Icons/ArrowUpRight.tsx"],"sourcesContent":["import React from 'react';\n\nimport { getIcon, SvgPathProps } from '../Icon';\n\nconst ArrowUpRight: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): React.ReactElement => {\n const normal = <path d=\"M33.305 14.659v14.546h-1.3V16.948L15.804 33.149l-.919-.92 16.27-16.27-12.394.001v-1.301z\" />;\n\n const normalHover = <path d=\"M36.52 11.537v14.545h-1.3l-.001-12.347-19.415 19.414-.919-.92 19.393-19.392-12.302.001v-1.301z\" />;\n\n const xSmall = <path d=\"M18.76 14.426v1.768h11.83L14.719 32.065l1.251 1.25 15.801-15.801v11.691h1.768V14.426z\" />;\n\n const xSmallHover = <path d=\"M22.076 11.122v1.769h11.736L14.819 31.884l1.252 1.25 19.015-19.015v11.782h1.769V11.122z\" />;\n\n return getIcon({ size, isHovered, normal, normalHover, xSmall, xSmallHover });\n};\n\nexport default ArrowUpRight;\n"],"mappings":";;;AAIA,IAAMA,gBAAwC,EAAE,MAAM,gBAAkD;AAStG,QAAO,QAAQ;EAAE;EAAM;EAAW,QARnB,oBAAC,QAAA,EAAK,GAAE,4FAAA,CAA6F;EAQ1E,aANtB,oBAAC,QAAA,EAAK,GAAE,kGAAA,CAAmG;EAMxE,QAJxC,oBAAC,QAAA,EAAK,GAAE,yFAAA,CAA0F;EAIlD,aAF3C,oBAAC,QAAA,EAAK,GAAE,2FAAA,CAA4F;EAE5C,CAAC;;AAG/E,IAAA,uBAAe"}
|
package/AsChildSlot.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { n as mergeRefs } from "./refs.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import styles from "./components/AsChildSlot/styles.module.scss";
|
|
4
|
+
var isAriaDisabled = (v) => v === true || v === "true";
|
|
5
|
+
const AsChildSlot = React.forwardRef(({ children, className, content, disabled, onSelect, ariaCurrent, elementRef }, forwardedRef) => {
|
|
6
|
+
const childElement = React.Children.toArray(children).filter(React.isValidElement)[0];
|
|
7
|
+
const nodeRef = React.useRef(null);
|
|
8
|
+
const childRef = childElement?.ref;
|
|
9
|
+
const mergedRef = mergeRefs([
|
|
10
|
+
(node) => {
|
|
11
|
+
nodeRef.current = node;
|
|
12
|
+
},
|
|
13
|
+
childRef,
|
|
14
|
+
elementRef
|
|
15
|
+
]);
|
|
16
|
+
const childProps = childElement?.props || {};
|
|
17
|
+
const childDisabled = !!childProps.disabled || isAriaDisabled(childProps["aria-disabled"]);
|
|
18
|
+
const isDisabled = !!disabled || childDisabled;
|
|
19
|
+
React.useImperativeHandle(forwardedRef, () => ({ click: () => {
|
|
20
|
+
if (isDisabled) return;
|
|
21
|
+
nodeRef.current?.click();
|
|
22
|
+
} }), [isDisabled]);
|
|
23
|
+
if (!childElement) return null;
|
|
24
|
+
const childOnClick = childProps.onClick;
|
|
25
|
+
const wrappedOnClick = (e) => {
|
|
26
|
+
if (isDisabled) {
|
|
27
|
+
e.preventDefault();
|
|
28
|
+
e.stopPropagation();
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
onSelect?.(e);
|
|
32
|
+
childOnClick?.(e);
|
|
33
|
+
};
|
|
34
|
+
const childOnKeyDown = childProps.onKeyDown;
|
|
35
|
+
const wrappedOnKeyDown = (e) => {
|
|
36
|
+
childOnKeyDown?.(e);
|
|
37
|
+
if (e.defaultPrevented) return;
|
|
38
|
+
if (e.key === " " || e.key === "Spacebar" || e.code === "Space") {
|
|
39
|
+
if (isDisabled) {
|
|
40
|
+
e.preventDefault();
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
e.preventDefault();
|
|
44
|
+
nodeRef.current?.click();
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const isButtonLike = typeof childProps.href === "undefined";
|
|
48
|
+
return React.cloneElement(childElement, {
|
|
49
|
+
ref: mergedRef,
|
|
50
|
+
className: `${styles["as-child-reset"]} ${className ?? ""}`,
|
|
51
|
+
style: void 0,
|
|
52
|
+
"aria-disabled": isDisabled || void 0,
|
|
53
|
+
"aria-current": ariaCurrent,
|
|
54
|
+
...isButtonLike && !("type" in childProps) ? { type: "button" } : null,
|
|
55
|
+
onClick: wrappedOnClick,
|
|
56
|
+
onKeyDown: wrappedOnKeyDown,
|
|
57
|
+
children: content
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
AsChildSlot.displayName = "AsChildSlot";
|
|
61
|
+
var AsChildSlot_default$1 = AsChildSlot;
|
|
62
|
+
export { AsChildSlot as n, AsChildSlot_default$1 as t };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=AsChildSlot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AsChildSlot.js","names":["wrappedOnClick: React.MouseEventHandler<HTMLElement>","wrappedOnKeyDown: React.KeyboardEventHandler<HTMLElement>"],"sources":["../src/components/AsChildSlot/AsChildSlot.tsx","../src/components/AsChildSlot/index.ts"],"sourcesContent":["import React from 'react';\n\nimport { mergeRefs } from '../../utils/refs';\n\nimport styles from './styles.module.scss';\n\nexport interface AsChildSlotHandle {\n /** Click the child’s DOM node */\n click: () => void;\n}\n\nexport interface AsChildSlotProps {\n /** Pass one element/component that we will map to a DOM element (<a>, <button>, React Router <Link>) */\n children?: React.ReactNode;\n /** Class names to apply to the visible element */\n className?: string;\n /** Content to render inside the visible element - For example the text and icons of the parent component that renders AsChildSlot */\n content?: React.ReactNode;\n /** Disabled state passed down (merged with child’s disabled/aria-disabled) */\n disabled?: boolean;\n /** Called before the child’s onClick when visible */\n onSelect?: (e: React.SyntheticEvent) => void;\n /** Optional states to apply to the DOM element */\n ariaCurrent?: 'page' | 'true';\n /** DOM ref for the element we end up rendering */\n elementRef?: React.Ref<HTMLElement>;\n}\n\nconst isAriaDisabled = (v: unknown): boolean => v === true || v === 'true';\n\nexport const AsChildSlot = React.forwardRef<AsChildSlotHandle, AsChildSlotProps>(\n ({ children, className, content, disabled, onSelect, ariaCurrent, elementRef }, forwardedRef) => {\n const childElement = React.Children.toArray(children).filter(React.isValidElement)[0] as React.ReactElement | undefined;\n const nodeRef = React.useRef<HTMLElement | null>(null);\n const childRef = (childElement as unknown as { ref?: React.Ref<HTMLElement> | undefined })?.ref;\n const mergedRef = mergeRefs<HTMLElement>([\n (node): void => {\n nodeRef.current = node;\n },\n childRef,\n elementRef,\n ]);\n\n const childProps =\n (childElement?.props as Partial<React.DOMAttributes<HTMLElement>> &\n Partial<React.AnchorHTMLAttributes<HTMLElement>> &\n Partial<React.ButtonHTMLAttributes<HTMLElement>> & { disabled?: boolean; href?: unknown }) || {};\n const childDisabled = !!childProps.disabled || isAriaDisabled((childProps as React.AriaAttributes)['aria-disabled']);\n const isDisabled = !!disabled || childDisabled;\n\n // Exposes a callable click() to the parents.\n React.useImperativeHandle(\n forwardedRef,\n () => ({\n click: (): void => {\n if (isDisabled) return;\n nodeRef.current?.click();\n },\n }),\n [isDisabled]\n );\n\n if (!childElement) return null;\n\n // Actual user mouse interaction\n const childOnClick = childProps.onClick as React.MouseEventHandler<HTMLElement> | undefined;\n const wrappedOnClick: React.MouseEventHandler<HTMLElement> = e => {\n if (isDisabled) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n onSelect?.(e);\n childOnClick?.(e);\n };\n\n // Actual user keyboard interaction\n const childOnKeyDown = childProps.onKeyDown as React.KeyboardEventHandler<HTMLElement> | undefined;\n const wrappedOnKeyDown: React.KeyboardEventHandler<HTMLElement> = e => {\n childOnKeyDown?.(e);\n if (e.defaultPrevented) return;\n if (e.key === ' ' || e.key === 'Spacebar' || e.code === 'Space') {\n if (isDisabled) {\n e.preventDefault();\n return;\n }\n e.preventDefault();\n nodeRef.current?.click();\n }\n };\n\n const isButtonLike = typeof childProps.href === 'undefined';\n\n return React.cloneElement(childElement, {\n ref: mergedRef,\n className: `${styles['as-child-reset']} ${className ?? ''}`,\n style: undefined,\n 'aria-disabled': isDisabled || undefined,\n 'aria-current': ariaCurrent,\n ...(isButtonLike && !('type' in childProps) ? { type: 'button' } : null),\n onClick: wrappedOnClick,\n onKeyDown: wrappedOnKeyDown,\n children: content,\n });\n }\n);\n\nAsChildSlot.displayName = 'AsChildSlot';\n\nexport default AsChildSlot;\n","import AsChildSlot from './AsChildSlot';\nexport * from './AsChildSlot';\nexport default AsChildSlot;\n"],"mappings":";;;AA4BA,IAAM,kBAAkB,MAAwB,MAAM,QAAQ,MAAM;AAEpE,MAAa,cAAc,MAAM,YAC9B,EAAE,UAAU,WAAW,SAAS,UAAU,UAAU,aAAa,cAAc,iBAAiB;CAC/F,MAAM,eAAe,MAAM,SAAS,QAAQ,SAAS,CAAC,OAAO,MAAM,eAAe,CAAC;CACnF,MAAM,UAAU,MAAM,OAA2B,KAAK;CACtD,MAAM,WAAY,cAA0E;CAC5F,MAAM,YAAY,UAAuB;GACtC,SAAe;AACd,WAAQ,UAAU;;EAEpB;EACA;EACD,CAAC;CAEF,MAAM,aACH,cAAc,SAEiF,EAAE;CACpG,MAAM,gBAAgB,CAAC,CAAC,WAAW,YAAY,eAAgB,WAAoC,iBAAiB;CACpH,MAAM,aAAa,CAAC,CAAC,YAAY;AAGjC,OAAM,oBACJ,qBACO,EACL,aAAmB;AACjB,MAAI,WAAY;AAChB,UAAQ,SAAS,OAAO;IAE3B,GACD,CAAC,WAAW,CACb;AAED,KAAI,CAAC,aAAc,QAAO;CAG1B,MAAM,eAAe,WAAW;CAChC,MAAMA,kBAAuD,MAAK;AAChE,MAAI,YAAY;AACd,KAAE,gBAAgB;AAClB,KAAE,iBAAiB;AACnB;;AAEF,aAAW,EAAE;AACb,iBAAe,EAAE;;CAInB,MAAM,iBAAiB,WAAW;CAClC,MAAMC,oBAA4D,MAAK;AACrE,mBAAiB,EAAE;AACnB,MAAI,EAAE,iBAAkB;AACxB,MAAI,EAAE,QAAQ,OAAO,EAAE,QAAQ,cAAc,EAAE,SAAS,SAAS;AAC/D,OAAI,YAAY;AACd,MAAE,gBAAgB;AAClB;;AAEF,KAAE,gBAAgB;AAClB,WAAQ,SAAS,OAAO;;;CAI5B,MAAM,eAAe,OAAO,WAAW,SAAS;AAEhD,QAAO,MAAM,aAAa,cAAc;EACtC,KAAK;EACL,WAAW,GAAG,OAAO,kBAAkB,GAAG,aAAa;EACvD,OAAO,KAAA;EACP,iBAAiB,cAAc,KAAA;EAC/B,gBAAgB;EAChB,GAAI,gBAAgB,EAAE,UAAU,cAAc,EAAE,MAAM,UAAU,GAAG;EACnE,SAAS;EACT,WAAW;EACX,UAAU;EACX,CAAC;EAEL;AAED,YAAY,cAAc;ACzG1B,IAAA,wBD2Ge"}
|
package/Avatar.js
CHANGED
|
@@ -1,40 +1,31 @@
|
|
|
1
|
+
import { a as IconSize, n as AnalyticsId } from "./constants2.js";
|
|
2
|
+
import { t as palette } from "./palette.js";
|
|
3
|
+
import { t as Icon_default } from "./Icon.js";
|
|
4
|
+
import { t as Check_default } from "./Check.js";
|
|
5
|
+
import React from "react";
|
|
6
|
+
import cn from "classnames";
|
|
1
7
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import React__default from "react";
|
|
3
|
-
import classNames from "classnames";
|
|
4
|
-
import { AnalyticsId, IconSize } from "./constants.js";
|
|
5
|
-
import { palette } from "./theme/palette.js";
|
|
6
|
-
import { I as Icon } from "./Icon.js";
|
|
7
|
-
import Check from "./components/Icons/Check.js";
|
|
8
8
|
import styles from "./components/Avatar/styles.module.scss";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
),
|
|
29
|
-
ref,
|
|
30
|
-
"data-testid": testId,
|
|
31
|
-
"data-analyticsid": AnalyticsId.Avatar,
|
|
32
|
-
children: selected ? /* @__PURE__ */ jsx(Icon, { svgIcon: Check, size: IconSize.Small, color: color === "black" ? palette.neutral900 : palette.blueberry600 }) : truncatedName
|
|
33
|
-
}
|
|
34
|
-
);
|
|
9
|
+
let AvatarSize = /* @__PURE__ */ function(AvatarSize$1) {
|
|
10
|
+
AvatarSize$1["xsmall"] = "xsmall";
|
|
11
|
+
AvatarSize$1["small"] = "small";
|
|
12
|
+
return AvatarSize$1;
|
|
13
|
+
}({});
|
|
14
|
+
var Avatar_default$1 = React.forwardRef(function AvatarForwardedRef(props, ref) {
|
|
15
|
+
const { children, className = "", selected = false, color = "blueberry", variant = "square", size = AvatarSize.small, testId } = props;
|
|
16
|
+
const truncatedName = children.charAt(0).toLocaleUpperCase() + children.substring(1, 2);
|
|
17
|
+
return /* @__PURE__ */ jsx("span", {
|
|
18
|
+
className: cn(styles.avatar, selected && styles["avatar--selected"], color === "black" && styles["avatar--black"], variant === "circle" && styles["avatar--circle"], size === AvatarSize.xsmall && styles["avatar--xsmall"], size === AvatarSize.small && styles["avatar--small"], className),
|
|
19
|
+
ref,
|
|
20
|
+
"data-testid": testId,
|
|
21
|
+
"data-analyticsid": AnalyticsId.Avatar,
|
|
22
|
+
children: selected ? /* @__PURE__ */ jsx(Icon_default, {
|
|
23
|
+
svgIcon: Check_default,
|
|
24
|
+
size: IconSize.Small,
|
|
25
|
+
color: color === "black" ? palette.neutral900 : palette.blueberry600
|
|
26
|
+
}) : truncatedName
|
|
27
|
+
});
|
|
35
28
|
});
|
|
36
|
-
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=Avatar.js.map
|
|
29
|
+
export { AvatarSize as n, Avatar_default$1 as t };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=Avatar.js.map
|
package/Avatar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.js","sources":["../src/components/Avatar/Avatar.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { palette } from '../../theme/palette';\nimport Icon, { IconSize } from '../Icon';\nimport Check from '../Icons/Check';\n\nimport styles from './styles.module.scss';\n\nexport enum AvatarSize {\n xsmall = 'xsmall',\n small = 'small',\n}\n\nexport interface AvatarProps {\n /** Name to display in the avatar. Will be truncated to the first two characters. */\n children: string;\n /** Displays a check icon to indicated the selected state. */\n selected?: boolean;\n /** Sets blue or black color on avatar. */\n color?: 'blueberry' | 'black';\n /** Square or circle variant of avatar. The circle should only be used for representation of someone else. NB: This is temporary and will be renamed in v10 */\n variant?: 'square' | 'circle';\n /** Avatar size. Default: small */\n size?: keyof typeof AvatarSize;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\nexport type AvatarType = React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLElement>>;\nconst Avatar: AvatarType = React.forwardRef(function AvatarForwardedRef(props: AvatarProps, ref: React.ForwardedRef<HTMLElement>) {\n const { children, className = '', selected = false, color = 'blueberry', variant = 'square', size = AvatarSize.small, testId } = props;\n const truncatedName = children.charAt(0).toLocaleUpperCase() + children.substring(1, 2);\n return (\n <span\n className={cn(\n styles.avatar,\n selected && styles['avatar--selected'],\n color === 'black' && styles['avatar--black'],\n variant === 'circle' && styles['avatar--circle'],\n size === AvatarSize.xsmall && styles['avatar--xsmall'],\n size === AvatarSize.small && styles['avatar--small'],\n className\n )}\n ref={ref}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Avatar}\n >\n {selected ? (\n <Icon svgIcon={Check} size={IconSize.Small} color={color === 'black' ? palette.neutral900 : palette.blueberry600} />\n ) : (\n truncatedName\n )}\n </span>\n );\n});\n\nexport default Avatar;\n"
|
|
1
|
+
{"version":3,"file":"Avatar.js","names":["Avatar: AvatarType"],"sources":["../src/components/Avatar/Avatar.tsx","../src/components/Avatar/index.ts"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport { AnalyticsId } from '../../constants';\nimport { palette } from '../../theme/palette';\nimport Icon, { IconSize } from '../Icon';\nimport Check from '../Icons/Check';\n\nimport styles from './styles.module.scss';\n\nexport enum AvatarSize {\n xsmall = 'xsmall',\n small = 'small',\n}\n\nexport interface AvatarProps {\n /** Name to display in the avatar. Will be truncated to the first two characters. */\n children: string;\n /** Displays a check icon to indicated the selected state. */\n selected?: boolean;\n /** Sets blue or black color on avatar. */\n color?: 'blueberry' | 'black';\n /** Square or circle variant of avatar. The circle should only be used for representation of someone else. NB: This is temporary and will be renamed in v10 */\n variant?: 'square' | 'circle';\n /** Avatar size. Default: small */\n size?: keyof typeof AvatarSize;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\nexport type AvatarType = React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLElement>>;\nconst Avatar: AvatarType = React.forwardRef(function AvatarForwardedRef(props: AvatarProps, ref: React.ForwardedRef<HTMLElement>) {\n const { children, className = '', selected = false, color = 'blueberry', variant = 'square', size = AvatarSize.small, testId } = props;\n const truncatedName = children.charAt(0).toLocaleUpperCase() + children.substring(1, 2);\n return (\n <span\n className={cn(\n styles.avatar,\n selected && styles['avatar--selected'],\n color === 'black' && styles['avatar--black'],\n variant === 'circle' && styles['avatar--circle'],\n size === AvatarSize.xsmall && styles['avatar--xsmall'],\n size === AvatarSize.small && styles['avatar--small'],\n className\n )}\n ref={ref}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Avatar}\n >\n {selected ? (\n <Icon svgIcon={Check} size={IconSize.Small} color={color === 'black' ? palette.neutral900 : palette.blueberry600} />\n ) : (\n truncatedName\n )}\n </span>\n );\n});\n\nexport default Avatar;\n","import Avatar from './Avatar';\nexport * from './Avatar';\nexport default Avatar;\n"],"mappings":";;;;;;;;AAWA,IAAY,aAAA,yBAAA,cAAL;AACL,cAAA,YAAA;AACA,cAAA,WAAA;;;ACXF,IAAA,mBD+B2B,MAAM,WAAW,SAAS,mBAAmB,OAAoB,KAAsC;CAChI,MAAM,EAAE,UAAU,YAAY,IAAI,WAAW,OAAO,QAAQ,aAAa,UAAU,UAAU,OAAO,WAAW,OAAO,WAAW;CACjI,MAAM,gBAAgB,SAAS,OAAO,EAAE,CAAC,mBAAmB,GAAG,SAAS,UAAU,GAAG,EAAE;AACvF,QACE,oBAAC,QAAA;EACC,WAAW,GACT,OAAO,QACP,YAAY,OAAO,qBACnB,UAAU,WAAW,OAAO,kBAC5B,YAAY,YAAY,OAAO,mBAC/B,SAAS,WAAW,UAAU,OAAO,mBACrC,SAAS,WAAW,SAAS,OAAO,kBACpC,UACD;EACI;EACL,eAAa;EACb,oBAAkB,YAAY;YAE7B,WACC,oBAAC,cAAA;GAAK,SAAS;GAAO,MAAM,SAAS;GAAO,OAAO,UAAU,UAAU,QAAQ,aAAa,QAAQ;IAAgB,GAEpH;GAEG;EAET"}
|