@dnanpm/styleguide 2.1.0 → 2.2.1
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/README.md +3 -3
- package/build/cjs/components/Accordion/Accordion.d.ts +3 -33
- package/build/cjs/components/Accordion/Accordion.js +14 -10
- package/build/cjs/components/Accordion/AccordionItem.d.ts +32 -2
- package/build/cjs/components/Accordion/AccordionItem.js +21 -18
- package/build/cjs/components/AmountSelector/AmountSelector.js +3 -1
- package/build/cjs/components/Buttons/ButtonBasicStyles.d.ts +2 -1
- package/build/cjs/components/Buttons/ButtonDefault.d.ts +1 -1
- package/build/cjs/components/Buttons/ButtonDefault.js +3 -2
- package/build/cjs/components/Buttons/ButtonIcon.d.ts +1 -1
- package/build/cjs/components/Buttons/ButtonIconPrimary.d.ts +1 -1
- package/build/cjs/components/Buttons/ButtonPrimary.d.ts +1 -1
- package/build/cjs/components/Buttons/ButtonPrimary.js +3 -2
- package/build/cjs/components/Buttons/ButtonRoundStyles.js +6 -5
- package/build/cjs/components/Buttons/ButtonSecondary.d.ts +1 -1
- package/build/cjs/components/Buttons/ButtonSecondary.js +1 -1
- package/build/cjs/components/Buttons/ButtonTertiary.d.ts +1 -1
- package/build/cjs/components/Buttons/ButtonTertiary.js +1 -1
- package/build/cjs/components/Card/Card.d.ts +1 -1
- package/build/cjs/components/Card/Card.js +3 -5
- package/build/cjs/components/Card/CardRow.d.ts +2 -2
- package/build/cjs/components/Card/CardRow.js +3 -3
- package/build/cjs/components/Checkbox/Checkbox.js +4 -2
- package/build/cjs/components/DnaLogo/DnaLogo.d.ts +14 -113
- package/build/cjs/components/DnaLogo/DnaLogo.js +24 -21
- package/build/cjs/components/EmptyState/EmptyState.d.ts +1 -1
- package/build/cjs/components/EmptyState/EmptyState.js +2 -1
- package/build/cjs/components/Footer/Components/FooterComponents.d.ts +1 -1
- package/build/cjs/components/Footer/Components/FooterComponents.js +16 -30
- package/build/cjs/components/Footer/Footer.d.ts +1 -1
- package/build/cjs/components/Footer/Footer.js +4 -6
- package/build/cjs/components/Footer/context/FooterContext.d.ts +1 -1
- package/build/cjs/components/Helper/Helper.d.ts +16 -7
- package/build/cjs/components/Helper/Helper.js +1 -1
- package/build/cjs/components/Icon/Icon.d.ts +1 -1
- package/build/cjs/components/Icon/Icon.js +5 -4
- package/build/cjs/components/Icon/Icons.d.ts +1 -1
- package/build/cjs/components/Icon/Icons.js +1155 -500
- package/build/cjs/components/Icons/Small/hlArrowBackSmall.d.ts +1 -1
- package/build/cjs/components/Icons/Small/hlArrowBackSmall.js +6 -2
- package/build/cjs/components/Icons/Small/hlArrowForwardSmall.d.ts +1 -1
- package/build/cjs/components/Icons/Small/hlArrowForwardSmall.js +6 -2
- package/build/cjs/components/Icons/Small/hlArrowUnderSmall.d.ts +1 -1
- package/build/cjs/components/Icons/Small/hlArrowUnderSmall.js +6 -2
- package/build/cjs/components/Icons/Small/hlCalendarSmall.d.ts +1 -1
- package/build/cjs/components/Icons/Small/hlCalendarSmall.js +6 -2
- package/build/cjs/components/Icons/Small/hlChevronDownSmall.d.ts +1 -1
- package/build/cjs/components/Icons/Small/hlChevronDownSmall.js +6 -2
- package/build/cjs/components/Icons/Small/hlChevronLeftSmall.d.ts +1 -1
- package/build/cjs/components/Icons/Small/hlChevronLeftSmall.js +6 -2
- package/build/cjs/components/Icons/Small/hlChevronRightSmall.d.ts +1 -1
- package/build/cjs/components/Icons/Small/hlChevronRightSmall.js +6 -2
- package/build/cjs/components/Icons/Small/hlChevronUpSmall.d.ts +1 -1
- package/build/cjs/components/Icons/Small/hlChevronUpSmall.js +6 -2
- package/build/cjs/components/Icons/Small/hlClockSmall.d.ts +1 -1
- package/build/cjs/components/Icons/Small/hlClockSmall.js +7 -3
- package/build/cjs/components/Icons/Small/hlDownloadSmall.d.ts +1 -1
- package/build/cjs/components/Icons/Small/hlDownloadSmall.js +8 -4
- package/build/cjs/components/Icons/Small/hlExternalSmall.d.ts +1 -1
- package/build/cjs/components/Icons/Small/hlExternalSmall.js +6 -2
- package/build/cjs/components/Icons/Small/hlUploadSmall.d.ts +1 -1
- package/build/cjs/components/Icons/Small/hlUploadSmall.js +8 -4
- package/build/cjs/components/Icons/Social/facebook.d.ts +1 -1
- package/build/cjs/components/Icons/Social/facebook.js +6 -2
- package/build/cjs/components/Icons/Social/instagram.d.ts +1 -1
- package/build/cjs/components/Icons/Social/instagram.js +6 -2
- package/build/cjs/components/Icons/Social/linkedin.d.ts +1 -1
- package/build/cjs/components/Icons/Social/linkedin.js +6 -2
- package/build/cjs/components/Icons/Social/tiktok.d.ts +1 -1
- package/build/cjs/components/Icons/Social/tiktok.js +6 -2
- package/build/cjs/components/Icons/Social/twitter.d.ts +1 -1
- package/build/cjs/components/Icons/Social/twitter.js +6 -2
- package/build/cjs/components/Icons/Social/youtube.d.ts +1 -1
- package/build/cjs/components/Icons/Social/youtube.js +6 -2
- package/build/cjs/components/Icons/hl404.d.ts +1 -1
- package/build/cjs/components/Icons/hl404.js +6 -2
- package/build/cjs/components/Icons/hl4gSim.d.ts +1 -1
- package/build/cjs/components/Icons/hl4gSim.js +6 -2
- package/build/cjs/components/Icons/hl5gSim.d.ts +1 -1
- package/build/cjs/components/Icons/hl5gSim.js +6 -2
- package/build/cjs/components/Icons/hlBattery.d.ts +1 -1
- package/build/cjs/components/Icons/hlBattery.js +8 -4
- package/build/cjs/components/Icons/hlBell.d.ts +1 -1
- package/build/cjs/components/Icons/hlBell.js +6 -2
- package/build/cjs/components/Icons/hlCalendar.d.ts +1 -1
- package/build/cjs/components/Icons/hlCalendar.js +17 -13
- package/build/cjs/components/Icons/hlCall.d.ts +1 -1
- package/build/cjs/components/Icons/hlCall.js +6 -2
- package/build/cjs/components/Icons/hlCameraBack.d.ts +1 -1
- package/build/cjs/components/Icons/hlCameraBack.js +8 -4
- package/build/cjs/components/Icons/hlCameraFront.d.ts +1 -1
- package/build/cjs/components/Icons/hlCameraFront.js +7 -3
- package/build/cjs/components/Icons/hlCart.d.ts +1 -1
- package/build/cjs/components/Icons/hlCart.js +8 -4
- package/build/cjs/components/Icons/hlCartEmpty.d.ts +1 -1
- package/build/cjs/components/Icons/hlCartEmpty.js +8 -4
- package/build/cjs/components/Icons/hlChat.d.ts +1 -1
- package/build/cjs/components/Icons/hlChat.js +9 -5
- package/build/cjs/components/Icons/hlCheck.d.ts +1 -1
- package/build/cjs/components/Icons/hlCheck.js +6 -2
- package/build/cjs/components/Icons/hlChevronDown.d.ts +1 -1
- package/build/cjs/components/Icons/hlChevronDown.js +6 -2
- package/build/cjs/components/Icons/hlChevronLeft.d.ts +1 -1
- package/build/cjs/components/Icons/hlChevronLeft.js +6 -2
- package/build/cjs/components/Icons/hlChevronRight.d.ts +1 -1
- package/build/cjs/components/Icons/hlChevronRight.js +6 -2
- package/build/cjs/components/Icons/hlChevronUp.d.ts +1 -1
- package/build/cjs/components/Icons/hlChevronUp.js +6 -2
- package/build/cjs/components/Icons/hlCompensation.d.ts +1 -1
- package/build/cjs/components/Icons/hlCompensation.js +6 -2
- package/build/cjs/components/Icons/hlCookie.d.ts +1 -1
- package/build/cjs/components/Icons/hlCookie.js +6 -2
- package/build/cjs/components/Icons/hlCopy.d.ts +1 -1
- package/build/cjs/components/Icons/hlCopy.js +7 -3
- package/build/cjs/components/Icons/hlCoupon.d.ts +1 -1
- package/build/cjs/components/Icons/hlCoupon.js +8 -4
- package/build/cjs/components/Icons/hlDelivery.d.ts +1 -1
- package/build/cjs/components/Icons/hlDelivery.js +6 -2
- package/build/cjs/components/Icons/hlDigiturva.d.ts +1 -1
- package/build/cjs/components/Icons/hlDigiturva.js +6 -2
- package/build/cjs/components/Icons/hlDisplaySize.d.ts +1 -1
- package/build/cjs/components/Icons/hlDisplaySize.js +8 -4
- package/build/cjs/components/Icons/hlDocument.d.ts +1 -1
- package/build/cjs/components/Icons/hlDocument.js +7 -3
- package/build/cjs/components/Icons/hlDownload.d.ts +1 -1
- package/build/cjs/components/Icons/hlDownload.js +8 -4
- package/build/cjs/components/Icons/hlEnvelope.d.ts +1 -1
- package/build/cjs/components/Icons/hlEnvelope.js +6 -2
- package/build/cjs/components/Icons/hlError.d.ts +1 -1
- package/build/cjs/components/Icons/hlError.js +8 -4
- package/build/cjs/components/Icons/hlEuro.d.ts +1 -1
- package/build/cjs/components/Icons/hlEuro.js +6 -2
- package/build/cjs/components/Icons/hlExclamationMark.d.ts +1 -1
- package/build/cjs/components/Icons/hlExclamationMark.js +6 -2
- package/build/cjs/components/Icons/hlExpand.d.ts +1 -1
- package/build/cjs/components/Icons/hlExpand.js +6 -2
- package/build/cjs/components/Icons/hlExternal.d.ts +1 -1
- package/build/cjs/components/Icons/hlExternal.js +6 -2
- package/build/cjs/components/Icons/hlEyeClosed.d.ts +1 -1
- package/build/cjs/components/Icons/hlEyeClosed.js +6 -2
- package/build/cjs/components/Icons/hlEyeOpen.d.ts +1 -1
- package/build/cjs/components/Icons/hlEyeOpen.js +7 -3
- package/build/cjs/components/Icons/hlFaceId.d.ts +1 -1
- package/build/cjs/components/Icons/hlFaceId.js +6 -2
- package/build/cjs/components/Icons/hlFastDelivery.d.ts +1 -1
- package/build/cjs/components/Icons/hlFastDelivery.js +6 -2
- package/build/cjs/components/Icons/hlFingerprint.d.ts +1 -1
- package/build/cjs/components/Icons/hlFingerprint.js +10 -6
- package/build/cjs/components/Icons/hlGlobe.d.ts +1 -1
- package/build/cjs/components/Icons/hlGlobe.js +6 -2
- package/build/cjs/components/Icons/hlHeadphones.d.ts +1 -1
- package/build/cjs/components/Icons/hlHeadphones.js +6 -2
- package/build/cjs/components/Icons/hlHeadset.d.ts +1 -1
- package/build/cjs/components/Icons/hlHeadset.js +8 -4
- package/build/cjs/components/Icons/hlHeart.d.ts +1 -1
- package/build/cjs/components/Icons/hlHeart.js +6 -2
- package/build/cjs/components/Icons/hlHome.d.ts +1 -1
- package/build/cjs/components/Icons/hlHome.js +6 -2
- package/build/cjs/components/Icons/hlImage.d.ts +1 -1
- package/build/cjs/components/Icons/hlImage.js +6 -2
- package/build/cjs/components/Icons/hlInfo.d.ts +1 -1
- package/build/cjs/components/Icons/hlInfo.js +8 -4
- package/build/cjs/components/Icons/hlInstallment.d.ts +1 -1
- package/build/cjs/components/Icons/hlInstallment.js +7 -3
- package/build/cjs/components/Icons/hlIotSim.d.ts +1 -1
- package/build/cjs/components/Icons/hlIotSim.js +7 -3
- package/build/cjs/components/Icons/hlLock.d.ts +1 -1
- package/build/cjs/components/Icons/hlLock.js +8 -4
- package/build/cjs/components/Icons/hlMagnifyingGlass.d.ts +1 -1
- package/build/cjs/components/Icons/hlMagnifyingGlass.js +7 -3
- package/build/cjs/components/Icons/hlMarker.d.ts +1 -1
- package/build/cjs/components/Icons/hlMarker.js +7 -3
- package/build/cjs/components/Icons/hlMemory.d.ts +1 -1
- package/build/cjs/components/Icons/hlMemory.js +7 -3
- package/build/cjs/components/Icons/hlMenu.d.ts +1 -1
- package/build/cjs/components/Icons/hlMenu.js +6 -2
- package/build/cjs/components/Icons/hlMinimize.d.ts +1 -1
- package/build/cjs/components/Icons/hlMinimize.js +6 -2
- package/build/cjs/components/Icons/hlMinus.d.ts +1 -1
- package/build/cjs/components/Icons/hlMinus.js +6 -2
- package/build/cjs/components/Icons/hlMobileData.d.ts +1 -1
- package/build/cjs/components/Icons/hlMobileData.js +6 -2
- package/build/cjs/components/Icons/hlMobilePayment.d.ts +1 -1
- package/build/cjs/components/Icons/hlMobilePayment.js +8 -4
- package/build/cjs/components/Icons/hlModem.d.ts +1 -1
- package/build/cjs/components/Icons/hlModem.js +10 -6
- package/build/cjs/components/Icons/hlMore.d.ts +1 -1
- package/build/cjs/components/Icons/hlMore.js +8 -4
- package/build/cjs/components/Icons/hlOs.d.ts +1 -1
- package/build/cjs/components/Icons/hlOs.js +7 -3
- package/build/cjs/components/Icons/hlPackage.d.ts +1 -1
- package/build/cjs/components/Icons/hlPackage.js +6 -2
- package/build/cjs/components/Icons/hlPaperclip.d.ts +1 -1
- package/build/cjs/components/Icons/hlPaperclip.js +6 -2
- package/build/cjs/components/Icons/hlPaytime.d.ts +1 -1
- package/build/cjs/components/Icons/hlPaytime.js +6 -2
- package/build/cjs/components/Icons/hlPen.d.ts +1 -1
- package/build/cjs/components/Icons/hlPen.js +6 -2
- package/build/cjs/components/Icons/hlPerson.d.ts +1 -1
- package/build/cjs/components/Icons/hlPerson.js +6 -2
- package/build/cjs/components/Icons/hlPhone.d.ts +1 -1
- package/build/cjs/components/Icons/hlPhone.js +7 -3
- package/build/cjs/components/Icons/hlPlus.d.ts +1 -1
- package/build/cjs/components/Icons/hlPlus.js +7 -3
- package/build/cjs/components/Icons/hlPrepaid.d.ts +1 -1
- package/build/cjs/components/Icons/hlPrepaid.js +6 -2
- package/build/cjs/components/Icons/hlProcessor.d.ts +1 -1
- package/build/cjs/components/Icons/hlProcessor.js +7 -3
- package/build/cjs/components/Icons/hlServices.d.ts +1 -1
- package/build/cjs/components/Icons/hlServices.js +6 -2
- package/build/cjs/components/Icons/hlSettings.d.ts +1 -1
- package/build/cjs/components/Icons/hlSettings.js +6 -2
- package/build/cjs/components/Icons/hlShield.d.ts +1 -1
- package/build/cjs/components/Icons/hlShield.js +7 -3
- package/build/cjs/components/Icons/hlSim.d.ts +1 -1
- package/build/cjs/components/Icons/hlSim.js +7 -3
- package/build/cjs/components/Icons/hlSimSimple.d.ts +1 -1
- package/build/cjs/components/Icons/hlSimSimple.js +8 -4
- package/build/cjs/components/Icons/hlSmile.d.ts +1 -1
- package/build/cjs/components/Icons/hlSmile.js +9 -5
- package/build/cjs/components/Icons/hlSpeechBubble.d.ts +1 -1
- package/build/cjs/components/Icons/hlSpeechBubble.js +7 -3
- package/build/cjs/components/Icons/hlSquaretrade.d.ts +1 -1
- package/build/cjs/components/Icons/hlSquaretrade.js +6 -2
- package/build/cjs/components/Icons/hlStar.d.ts +1 -1
- package/build/cjs/components/Icons/hlStar.js +6 -2
- package/build/cjs/components/Icons/hlStarFilled.d.ts +1 -1
- package/build/cjs/components/Icons/hlStarFilled.js +6 -2
- package/build/cjs/components/Icons/hlTrash.d.ts +1 -1
- package/build/cjs/components/Icons/hlTrash.js +7 -3
- package/build/cjs/components/Icons/hlTv.d.ts +1 -1
- package/build/cjs/components/Icons/hlTv.js +6 -2
- package/build/cjs/components/Icons/hlUnlock.d.ts +1 -1
- package/build/cjs/components/Icons/hlUnlock.js +8 -4
- package/build/cjs/components/Icons/hlUpload.d.ts +1 -1
- package/build/cjs/components/Icons/hlUpload.js +8 -4
- package/build/cjs/components/Icons/hlWarning.d.ts +1 -1
- package/build/cjs/components/Icons/hlWarning.js +8 -4
- package/build/cjs/components/Icons/hlWifi.d.ts +1 -1
- package/build/cjs/components/Icons/hlWifi.js +8 -4
- package/build/cjs/components/Icons/hlX.d.ts +1 -1
- package/build/cjs/components/Icons/hlX.js +6 -2
- package/build/cjs/components/Image/Image.d.ts +4 -0
- package/build/cjs/components/Image/Image.js +1 -1
- package/build/cjs/components/Input/Input.d.ts +7 -7
- package/build/cjs/components/Input/Input.js +10 -9
- package/build/cjs/components/Label/Label.d.ts +5 -1
- package/build/cjs/components/Label/Label.js +4 -2
- package/build/cjs/components/LabelText/LabelText.d.ts +1 -1
- package/build/cjs/components/LabelText/LabelText.js +0 -1
- package/build/cjs/components/MainNavigation/ChildComponents/BusinessMenu.js +2 -4
- package/build/cjs/components/MainNavigation/ChildComponents/DesktopMenu.js +3 -2
- package/build/cjs/components/MainNavigation/ChildComponents/HeaderNavigationElements.js +6 -7
- package/build/cjs/components/MainNavigation/ChildComponents/LanguageSelector.d.ts +1 -1
- package/build/cjs/components/MainNavigation/ChildComponents/LanguageSelector.js +1 -1
- package/build/cjs/components/MainNavigation/ChildComponents/LinkModifier.d.ts +1 -1
- package/build/cjs/components/MainNavigation/ChildComponents/LinkModifier.js +1 -1
- package/build/cjs/components/MainNavigation/ChildComponents/LoginTooltip.d.ts +1 -1
- package/build/cjs/components/MainNavigation/ChildComponents/LoginTooltip.js +1 -0
- package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenu.js +1 -4
- package/build/cjs/components/MainNavigation/ChildComponents/MinicartTooltip.js +2 -1
- package/build/cjs/components/MainNavigation/ChildComponents/MobileMenu.js +2 -1
- package/build/cjs/components/MainNavigation/ChildComponents/PageSearch.js +1 -0
- package/build/cjs/components/MainNavigation/ChildComponents/Ribbon.d.ts +1 -1
- package/build/cjs/components/MainNavigation/ChildComponents/Ribbon.js +8 -12
- package/build/cjs/components/MainNavigation/MainNavigation.d.ts +2 -2
- package/build/cjs/components/MainNavigation/MainNavigation.js +8 -36
- package/build/cjs/components/Modal/Modal.js +17 -4
- package/build/cjs/components/Notification/Notification.d.ts +1 -1
- package/build/cjs/components/Notification/Notification.js +3 -1
- package/build/cjs/components/PixelLoader/PixelLoader.d.ts +17 -2
- package/build/cjs/components/PixelLoader/PixelLoader.js +33 -7
- package/build/cjs/components/ProgressIndicator/ProgressIndicator.js +19 -18
- package/build/cjs/components/RadioButton/RadioButton.d.ts +2 -2
- package/build/cjs/components/RadioButton/RadioButton.js +4 -2
- package/build/cjs/components/ReadMore/ReadMore.js +1 -0
- package/build/cjs/components/Ribbon/Ribbon.d.ts +1 -1
- package/build/cjs/components/Ribbon/Ribbon.js +9 -8
- package/build/cjs/components/Search/Search.d.ts +3 -3
- package/build/cjs/components/Search/Search.js +4 -2
- package/build/cjs/components/SecondaryNavigation/SecondaryNavigation.js +2 -1
- package/build/cjs/components/Selectbox/Selectbox.d.ts +17 -17
- package/build/cjs/components/Selectbox/Selectbox.js +43 -73
- package/build/cjs/components/Switch/Switch.d.ts +35 -15
- package/build/cjs/components/Switch/Switch.js +34 -29
- package/build/cjs/components/Tabs/Tab.d.ts +3 -3
- package/build/cjs/components/Tabs/Tabs.d.ts +18 -17
- package/build/cjs/components/Tabs/Tabs.js +8 -17
- package/build/cjs/components/Textarea/Textarea.js +6 -4
- package/build/cjs/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.js +2 -2
- package/build/cjs/components/TooltipMenu/TooltipMenu.d.ts +1 -1
- package/build/cjs/components/TooltipMenu/TooltipMenu.js +1 -0
- package/build/cjs/hooks/useCloseOutsideOrElementClicked.d.ts +2 -1
- package/build/cjs/hooks/useCloseOutsideOrElementClicked.js +1 -0
- package/build/cjs/hooks/useDocHeight.js +1 -1
- package/build/cjs/hooks/useOutsideClick.d.ts +4 -3
- package/build/cjs/hooks/useOutsideClick.js +3 -2
- package/build/cjs/hooks/useScrollPosition.d.ts +2 -2
- package/build/cjs/hooks/useScrollPosition.js +4 -6
- package/build/cjs/index.js +2 -2
- package/build/cjs/themes/globalStyles.d.ts +1 -1
- package/build/cjs/themes/globalStyles.js +3 -3
- package/build/cjs/themes/styled.js +1 -1
- package/build/cjs/themes/themeComponents/fontSize.js +1 -5
- package/build/cjs/themes/themeComponents/lineHeight.js +1 -5
- package/build/cjs/utils/createStyled.d.ts +1 -1
- package/build/es/components/Accordion/Accordion.d.ts +3 -33
- package/build/es/components/Accordion/Accordion.js +14 -10
- package/build/es/components/Accordion/AccordionItem.d.ts +32 -2
- package/build/es/components/Accordion/AccordionItem.js +21 -18
- package/build/es/components/AmountSelector/AmountSelector.js +3 -1
- package/build/es/components/Buttons/ButtonBasicStyles.d.ts +2 -1
- package/build/es/components/Buttons/ButtonDefault.d.ts +1 -1
- package/build/es/components/Buttons/ButtonDefault.js +3 -2
- package/build/es/components/Buttons/ButtonIcon.d.ts +1 -1
- package/build/es/components/Buttons/ButtonIconPrimary.d.ts +1 -1
- package/build/es/components/Buttons/ButtonPrimary.d.ts +1 -1
- package/build/es/components/Buttons/ButtonPrimary.js +3 -2
- package/build/es/components/Buttons/ButtonRoundStyles.js +6 -5
- package/build/es/components/Buttons/ButtonSecondary.d.ts +1 -1
- package/build/es/components/Buttons/ButtonSecondary.js +1 -1
- package/build/es/components/Buttons/ButtonTertiary.d.ts +1 -1
- package/build/es/components/Buttons/ButtonTertiary.js +1 -1
- package/build/es/components/Card/Card.d.ts +1 -1
- package/build/es/components/Card/Card.js +3 -5
- package/build/es/components/Card/CardRow.d.ts +2 -2
- package/build/es/components/Card/CardRow.js +3 -3
- package/build/es/components/Checkbox/Checkbox.js +5 -3
- package/build/es/components/DnaLogo/DnaLogo.d.ts +14 -113
- package/build/es/components/DnaLogo/DnaLogo.js +24 -21
- package/build/es/components/EmptyState/EmptyState.d.ts +1 -1
- package/build/es/components/EmptyState/EmptyState.js +2 -1
- package/build/es/components/Footer/Components/FooterComponents.d.ts +1 -1
- package/build/es/components/Footer/Components/FooterComponents.js +16 -30
- package/build/es/components/Footer/Footer.d.ts +1 -1
- package/build/es/components/Footer/Footer.js +4 -6
- package/build/es/components/Footer/context/FooterContext.d.ts +1 -1
- package/build/es/components/Helper/Helper.d.ts +16 -7
- package/build/es/components/Helper/Helper.js +1 -1
- package/build/es/components/Icon/Icon.d.ts +1 -1
- package/build/es/components/Icon/Icon.js +5 -3
- package/build/es/components/Icon/Icons.d.ts +1 -1
- package/build/es/components/Icon/Icons.js +1155 -500
- package/build/es/components/Icons/Small/hlArrowBackSmall.d.ts +1 -1
- package/build/es/components/Icons/Small/hlArrowBackSmall.js +6 -2
- package/build/es/components/Icons/Small/hlArrowForwardSmall.d.ts +1 -1
- package/build/es/components/Icons/Small/hlArrowForwardSmall.js +6 -2
- package/build/es/components/Icons/Small/hlArrowUnderSmall.d.ts +1 -1
- package/build/es/components/Icons/Small/hlArrowUnderSmall.js +6 -2
- package/build/es/components/Icons/Small/hlCalendarSmall.d.ts +1 -1
- package/build/es/components/Icons/Small/hlCalendarSmall.js +6 -2
- package/build/es/components/Icons/Small/hlChevronDownSmall.d.ts +1 -1
- package/build/es/components/Icons/Small/hlChevronDownSmall.js +6 -2
- package/build/es/components/Icons/Small/hlChevronLeftSmall.d.ts +1 -1
- package/build/es/components/Icons/Small/hlChevronLeftSmall.js +6 -2
- package/build/es/components/Icons/Small/hlChevronRightSmall.d.ts +1 -1
- package/build/es/components/Icons/Small/hlChevronRightSmall.js +6 -2
- package/build/es/components/Icons/Small/hlChevronUpSmall.d.ts +1 -1
- package/build/es/components/Icons/Small/hlChevronUpSmall.js +6 -2
- package/build/es/components/Icons/Small/hlClockSmall.d.ts +1 -1
- package/build/es/components/Icons/Small/hlClockSmall.js +7 -3
- package/build/es/components/Icons/Small/hlDownloadSmall.d.ts +1 -1
- package/build/es/components/Icons/Small/hlDownloadSmall.js +8 -4
- package/build/es/components/Icons/Small/hlExternalSmall.d.ts +1 -1
- package/build/es/components/Icons/Small/hlExternalSmall.js +6 -2
- package/build/es/components/Icons/Small/hlUploadSmall.d.ts +1 -1
- package/build/es/components/Icons/Small/hlUploadSmall.js +8 -4
- package/build/es/components/Icons/Social/facebook.d.ts +1 -1
- package/build/es/components/Icons/Social/facebook.js +6 -2
- package/build/es/components/Icons/Social/instagram.d.ts +1 -1
- package/build/es/components/Icons/Social/instagram.js +6 -2
- package/build/es/components/Icons/Social/linkedin.d.ts +1 -1
- package/build/es/components/Icons/Social/linkedin.js +6 -2
- package/build/es/components/Icons/Social/tiktok.d.ts +1 -1
- package/build/es/components/Icons/Social/tiktok.js +6 -2
- package/build/es/components/Icons/Social/twitter.d.ts +1 -1
- package/build/es/components/Icons/Social/twitter.js +6 -2
- package/build/es/components/Icons/Social/youtube.d.ts +1 -1
- package/build/es/components/Icons/Social/youtube.js +6 -2
- package/build/es/components/Icons/hl404.d.ts +1 -1
- package/build/es/components/Icons/hl404.js +6 -2
- package/build/es/components/Icons/hl4gSim.d.ts +1 -1
- package/build/es/components/Icons/hl4gSim.js +6 -2
- package/build/es/components/Icons/hl5gSim.d.ts +1 -1
- package/build/es/components/Icons/hl5gSim.js +6 -2
- package/build/es/components/Icons/hlBattery.d.ts +1 -1
- package/build/es/components/Icons/hlBattery.js +8 -4
- package/build/es/components/Icons/hlBell.d.ts +1 -1
- package/build/es/components/Icons/hlBell.js +6 -2
- package/build/es/components/Icons/hlCalendar.d.ts +1 -1
- package/build/es/components/Icons/hlCalendar.js +17 -13
- package/build/es/components/Icons/hlCall.d.ts +1 -1
- package/build/es/components/Icons/hlCall.js +6 -2
- package/build/es/components/Icons/hlCameraBack.d.ts +1 -1
- package/build/es/components/Icons/hlCameraBack.js +8 -4
- package/build/es/components/Icons/hlCameraFront.d.ts +1 -1
- package/build/es/components/Icons/hlCameraFront.js +7 -3
- package/build/es/components/Icons/hlCart.d.ts +1 -1
- package/build/es/components/Icons/hlCart.js +8 -4
- package/build/es/components/Icons/hlCartEmpty.d.ts +1 -1
- package/build/es/components/Icons/hlCartEmpty.js +8 -4
- package/build/es/components/Icons/hlChat.d.ts +1 -1
- package/build/es/components/Icons/hlChat.js +9 -5
- package/build/es/components/Icons/hlCheck.d.ts +1 -1
- package/build/es/components/Icons/hlCheck.js +6 -2
- package/build/es/components/Icons/hlChevronDown.d.ts +1 -1
- package/build/es/components/Icons/hlChevronDown.js +6 -2
- package/build/es/components/Icons/hlChevronLeft.d.ts +1 -1
- package/build/es/components/Icons/hlChevronLeft.js +6 -2
- package/build/es/components/Icons/hlChevronRight.d.ts +1 -1
- package/build/es/components/Icons/hlChevronRight.js +6 -2
- package/build/es/components/Icons/hlChevronUp.d.ts +1 -1
- package/build/es/components/Icons/hlChevronUp.js +6 -2
- package/build/es/components/Icons/hlCompensation.d.ts +1 -1
- package/build/es/components/Icons/hlCompensation.js +6 -2
- package/build/es/components/Icons/hlCookie.d.ts +1 -1
- package/build/es/components/Icons/hlCookie.js +6 -2
- package/build/es/components/Icons/hlCopy.d.ts +1 -1
- package/build/es/components/Icons/hlCopy.js +7 -3
- package/build/es/components/Icons/hlCoupon.d.ts +1 -1
- package/build/es/components/Icons/hlCoupon.js +8 -4
- package/build/es/components/Icons/hlDelivery.d.ts +1 -1
- package/build/es/components/Icons/hlDelivery.js +6 -2
- package/build/es/components/Icons/hlDigiturva.d.ts +1 -1
- package/build/es/components/Icons/hlDigiturva.js +6 -2
- package/build/es/components/Icons/hlDisplaySize.d.ts +1 -1
- package/build/es/components/Icons/hlDisplaySize.js +8 -4
- package/build/es/components/Icons/hlDocument.d.ts +1 -1
- package/build/es/components/Icons/hlDocument.js +7 -3
- package/build/es/components/Icons/hlDownload.d.ts +1 -1
- package/build/es/components/Icons/hlDownload.js +8 -4
- package/build/es/components/Icons/hlEnvelope.d.ts +1 -1
- package/build/es/components/Icons/hlEnvelope.js +6 -2
- package/build/es/components/Icons/hlError.d.ts +1 -1
- package/build/es/components/Icons/hlError.js +8 -4
- package/build/es/components/Icons/hlEuro.d.ts +1 -1
- package/build/es/components/Icons/hlEuro.js +6 -2
- package/build/es/components/Icons/hlExclamationMark.d.ts +1 -1
- package/build/es/components/Icons/hlExclamationMark.js +6 -2
- package/build/es/components/Icons/hlExpand.d.ts +1 -1
- package/build/es/components/Icons/hlExpand.js +6 -2
- package/build/es/components/Icons/hlExternal.d.ts +1 -1
- package/build/es/components/Icons/hlExternal.js +6 -2
- package/build/es/components/Icons/hlEyeClosed.d.ts +1 -1
- package/build/es/components/Icons/hlEyeClosed.js +6 -2
- package/build/es/components/Icons/hlEyeOpen.d.ts +1 -1
- package/build/es/components/Icons/hlEyeOpen.js +7 -3
- package/build/es/components/Icons/hlFaceId.d.ts +1 -1
- package/build/es/components/Icons/hlFaceId.js +6 -2
- package/build/es/components/Icons/hlFastDelivery.d.ts +1 -1
- package/build/es/components/Icons/hlFastDelivery.js +6 -2
- package/build/es/components/Icons/hlFingerprint.d.ts +1 -1
- package/build/es/components/Icons/hlFingerprint.js +10 -6
- package/build/es/components/Icons/hlGlobe.d.ts +1 -1
- package/build/es/components/Icons/hlGlobe.js +6 -2
- package/build/es/components/Icons/hlHeadphones.d.ts +1 -1
- package/build/es/components/Icons/hlHeadphones.js +6 -2
- package/build/es/components/Icons/hlHeadset.d.ts +1 -1
- package/build/es/components/Icons/hlHeadset.js +8 -4
- package/build/es/components/Icons/hlHeart.d.ts +1 -1
- package/build/es/components/Icons/hlHeart.js +6 -2
- package/build/es/components/Icons/hlHome.d.ts +1 -1
- package/build/es/components/Icons/hlHome.js +6 -2
- package/build/es/components/Icons/hlImage.d.ts +1 -1
- package/build/es/components/Icons/hlImage.js +6 -2
- package/build/es/components/Icons/hlInfo.d.ts +1 -1
- package/build/es/components/Icons/hlInfo.js +8 -4
- package/build/es/components/Icons/hlInstallment.d.ts +1 -1
- package/build/es/components/Icons/hlInstallment.js +7 -3
- package/build/es/components/Icons/hlIotSim.d.ts +1 -1
- package/build/es/components/Icons/hlIotSim.js +7 -3
- package/build/es/components/Icons/hlLock.d.ts +1 -1
- package/build/es/components/Icons/hlLock.js +8 -4
- package/build/es/components/Icons/hlMagnifyingGlass.d.ts +1 -1
- package/build/es/components/Icons/hlMagnifyingGlass.js +7 -3
- package/build/es/components/Icons/hlMarker.d.ts +1 -1
- package/build/es/components/Icons/hlMarker.js +7 -3
- package/build/es/components/Icons/hlMemory.d.ts +1 -1
- package/build/es/components/Icons/hlMemory.js +7 -3
- package/build/es/components/Icons/hlMenu.d.ts +1 -1
- package/build/es/components/Icons/hlMenu.js +6 -2
- package/build/es/components/Icons/hlMinimize.d.ts +1 -1
- package/build/es/components/Icons/hlMinimize.js +6 -2
- package/build/es/components/Icons/hlMinus.d.ts +1 -1
- package/build/es/components/Icons/hlMinus.js +6 -2
- package/build/es/components/Icons/hlMobileData.d.ts +1 -1
- package/build/es/components/Icons/hlMobileData.js +6 -2
- package/build/es/components/Icons/hlMobilePayment.d.ts +1 -1
- package/build/es/components/Icons/hlMobilePayment.js +8 -4
- package/build/es/components/Icons/hlModem.d.ts +1 -1
- package/build/es/components/Icons/hlModem.js +10 -6
- package/build/es/components/Icons/hlMore.d.ts +1 -1
- package/build/es/components/Icons/hlMore.js +8 -4
- package/build/es/components/Icons/hlOs.d.ts +1 -1
- package/build/es/components/Icons/hlOs.js +7 -3
- package/build/es/components/Icons/hlPackage.d.ts +1 -1
- package/build/es/components/Icons/hlPackage.js +6 -2
- package/build/es/components/Icons/hlPaperclip.d.ts +1 -1
- package/build/es/components/Icons/hlPaperclip.js +6 -2
- package/build/es/components/Icons/hlPaytime.d.ts +1 -1
- package/build/es/components/Icons/hlPaytime.js +6 -2
- package/build/es/components/Icons/hlPen.d.ts +1 -1
- package/build/es/components/Icons/hlPen.js +6 -2
- package/build/es/components/Icons/hlPerson.d.ts +1 -1
- package/build/es/components/Icons/hlPerson.js +6 -2
- package/build/es/components/Icons/hlPhone.d.ts +1 -1
- package/build/es/components/Icons/hlPhone.js +7 -3
- package/build/es/components/Icons/hlPlus.d.ts +1 -1
- package/build/es/components/Icons/hlPlus.js +7 -3
- package/build/es/components/Icons/hlPrepaid.d.ts +1 -1
- package/build/es/components/Icons/hlPrepaid.js +6 -2
- package/build/es/components/Icons/hlProcessor.d.ts +1 -1
- package/build/es/components/Icons/hlProcessor.js +7 -3
- package/build/es/components/Icons/hlServices.d.ts +1 -1
- package/build/es/components/Icons/hlServices.js +6 -2
- package/build/es/components/Icons/hlSettings.d.ts +1 -1
- package/build/es/components/Icons/hlSettings.js +6 -2
- package/build/es/components/Icons/hlShield.d.ts +1 -1
- package/build/es/components/Icons/hlShield.js +7 -3
- package/build/es/components/Icons/hlSim.d.ts +1 -1
- package/build/es/components/Icons/hlSim.js +7 -3
- package/build/es/components/Icons/hlSimSimple.d.ts +1 -1
- package/build/es/components/Icons/hlSimSimple.js +8 -4
- package/build/es/components/Icons/hlSmile.d.ts +1 -1
- package/build/es/components/Icons/hlSmile.js +9 -5
- package/build/es/components/Icons/hlSpeechBubble.d.ts +1 -1
- package/build/es/components/Icons/hlSpeechBubble.js +7 -3
- package/build/es/components/Icons/hlSquaretrade.d.ts +1 -1
- package/build/es/components/Icons/hlSquaretrade.js +6 -2
- package/build/es/components/Icons/hlStar.d.ts +1 -1
- package/build/es/components/Icons/hlStar.js +6 -2
- package/build/es/components/Icons/hlStarFilled.d.ts +1 -1
- package/build/es/components/Icons/hlStarFilled.js +6 -2
- package/build/es/components/Icons/hlTrash.d.ts +1 -1
- package/build/es/components/Icons/hlTrash.js +7 -3
- package/build/es/components/Icons/hlTv.d.ts +1 -1
- package/build/es/components/Icons/hlTv.js +6 -2
- package/build/es/components/Icons/hlUnlock.d.ts +1 -1
- package/build/es/components/Icons/hlUnlock.js +8 -4
- package/build/es/components/Icons/hlUpload.d.ts +1 -1
- package/build/es/components/Icons/hlUpload.js +8 -4
- package/build/es/components/Icons/hlWarning.d.ts +1 -1
- package/build/es/components/Icons/hlWarning.js +8 -4
- package/build/es/components/Icons/hlWifi.d.ts +1 -1
- package/build/es/components/Icons/hlWifi.js +8 -4
- package/build/es/components/Icons/hlX.d.ts +1 -1
- package/build/es/components/Icons/hlX.js +6 -2
- package/build/es/components/Image/Image.d.ts +4 -0
- package/build/es/components/Image/Image.js +1 -1
- package/build/es/components/Input/Input.d.ts +7 -7
- package/build/es/components/Input/Input.js +10 -9
- package/build/es/components/Label/Label.d.ts +5 -1
- package/build/es/components/Label/Label.js +4 -2
- package/build/es/components/LabelText/LabelText.d.ts +1 -1
- package/build/es/components/LabelText/LabelText.js +0 -1
- package/build/es/components/MainNavigation/ChildComponents/BusinessMenu.js +2 -4
- package/build/es/components/MainNavigation/ChildComponents/DesktopMenu.js +3 -2
- package/build/es/components/MainNavigation/ChildComponents/HeaderNavigationElements.js +6 -7
- package/build/es/components/MainNavigation/ChildComponents/LanguageSelector.d.ts +1 -1
- package/build/es/components/MainNavigation/ChildComponents/LanguageSelector.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/LinkModifier.d.ts +1 -1
- package/build/es/components/MainNavigation/ChildComponents/LinkModifier.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/LoginTooltip.d.ts +1 -1
- package/build/es/components/MainNavigation/ChildComponents/LoginTooltip.js +1 -0
- package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenu.js +1 -4
- package/build/es/components/MainNavigation/ChildComponents/MinicartTooltip.js +2 -1
- package/build/es/components/MainNavigation/ChildComponents/MobileMenu.js +2 -1
- package/build/es/components/MainNavigation/ChildComponents/PageSearch.js +1 -0
- package/build/es/components/MainNavigation/ChildComponents/Ribbon.d.ts +1 -1
- package/build/es/components/MainNavigation/ChildComponents/Ribbon.js +8 -12
- package/build/es/components/MainNavigation/MainNavigation.d.ts +2 -2
- package/build/es/components/MainNavigation/MainNavigation.js +8 -36
- package/build/es/components/Modal/Modal.js +17 -4
- package/build/es/components/Notification/Notification.d.ts +1 -1
- package/build/es/components/Notification/Notification.js +3 -1
- package/build/es/components/PixelLoader/PixelLoader.d.ts +17 -2
- package/build/es/components/PixelLoader/PixelLoader.js +28 -2
- package/build/es/components/ProgressIndicator/ProgressIndicator.js +19 -18
- package/build/es/components/RadioButton/RadioButton.d.ts +2 -2
- package/build/es/components/RadioButton/RadioButton.js +5 -3
- package/build/es/components/ReadMore/ReadMore.js +1 -0
- package/build/es/components/Ribbon/Ribbon.d.ts +1 -1
- package/build/es/components/Ribbon/Ribbon.js +9 -8
- package/build/es/components/Search/Search.d.ts +3 -3
- package/build/es/components/Search/Search.js +4 -2
- package/build/es/components/SecondaryNavigation/SecondaryNavigation.js +2 -1
- package/build/es/components/Selectbox/Selectbox.d.ts +17 -17
- package/build/es/components/Selectbox/Selectbox.js +42 -72
- package/build/es/components/Switch/Switch.d.ts +35 -15
- package/build/es/components/Switch/Switch.js +34 -29
- package/build/es/components/Tabs/Tab.d.ts +3 -3
- package/build/es/components/Tabs/Tabs.d.ts +18 -17
- package/build/es/components/Tabs/Tabs.js +9 -18
- package/build/es/components/Textarea/Textarea.js +6 -4
- package/build/es/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.js +2 -2
- package/build/es/components/TooltipMenu/TooltipMenu.d.ts +1 -1
- package/build/es/components/TooltipMenu/TooltipMenu.js +1 -0
- package/build/es/hooks/useCloseOutsideOrElementClicked.d.ts +2 -1
- package/build/es/hooks/useCloseOutsideOrElementClicked.js +1 -0
- package/build/es/hooks/useDocHeight.js +1 -1
- package/build/es/hooks/useOutsideClick.d.ts +4 -3
- package/build/es/hooks/useOutsideClick.js +3 -2
- package/build/es/hooks/useScrollPosition.d.ts +2 -2
- package/build/es/hooks/useScrollPosition.js +4 -6
- package/build/es/index.js +2 -2
- package/build/es/themes/globalStyles.d.ts +1 -1
- package/build/es/themes/globalStyles.js +3 -3
- package/build/es/themes/styled.js +1 -1
- package/build/es/themes/themeComponents/fontSize.js +1 -5
- package/build/es/themes/themeComponents/lineHeight.js +1 -5
- package/build/es/utils/createStyled.d.ts +1 -1
- package/package.json +20 -14
- package/build/cjs/components/PixelLoader/PixelLoaderStyles.d.ts +0 -203
- package/build/cjs/components/PixelLoader/PixelLoaderStyles.js +0 -35
- package/build/es/components/PixelLoader/PixelLoaderStyles.d.ts +0 -203
- package/build/es/components/PixelLoader/PixelLoaderStyles.js +0 -30
|
@@ -99,7 +99,7 @@ export declare const globalStyles: import("styled-components").FlattenInterpolat
|
|
|
99
99
|
};
|
|
100
100
|
media: Record<string | number, (l: TemplateStringsArray, ...p: any[]) => string>;
|
|
101
101
|
}>>;
|
|
102
|
-
export declare const
|
|
102
|
+
export declare const CheckboxAndRadioInputCore: import("styled-components").StyledComponent<"input", {
|
|
103
103
|
base: {
|
|
104
104
|
baseHeight: {
|
|
105
105
|
value: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import styled, { css, createGlobalStyle } from './styled.js';
|
|
2
1
|
import { media, getMultipliedSize, getDividedSize } from '../utils/styledUtils.js';
|
|
2
|
+
import styled, { css, createGlobalStyle } from './styled.js';
|
|
3
3
|
|
|
4
4
|
const globalStyles = css `
|
|
5
5
|
*,
|
|
@@ -175,7 +175,7 @@ const globalStyles = css `
|
|
|
175
175
|
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
|
|
176
176
|
}
|
|
177
177
|
`;
|
|
178
|
-
const
|
|
178
|
+
const CheckboxAndRadioInputCore = styled.input `
|
|
179
179
|
display: inline-grid;
|
|
180
180
|
appearance: none;
|
|
181
181
|
place-content: center;
|
|
@@ -232,4 +232,4 @@ createGlobalStyle `
|
|
|
232
232
|
${globalStyles}
|
|
233
233
|
`;
|
|
234
234
|
|
|
235
|
-
export {
|
|
235
|
+
export { CheckboxAndRadioInputCore, globalStyles };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import createStyled from '../utils/createStyled.js';
|
|
2
2
|
|
|
3
|
-
const { styled, css, createGlobalStyle, keyframes, ThemeProvider, ServerStyleSheet
|
|
3
|
+
const { styled, css, createGlobalStyle, keyframes, ThemeProvider, ServerStyleSheet } = createStyled();
|
|
4
4
|
|
|
5
5
|
export default styled;
|
|
6
6
|
export { ServerStyleSheet, ThemeProvider, createGlobalStyle, css, keyframes };
|
|
@@ -14,10 +14,6 @@ const fontSize = {
|
|
|
14
14
|
h4: '1.25rem',
|
|
15
15
|
h5: '1rem',
|
|
16
16
|
};
|
|
17
|
-
var fontSize$1 = {
|
|
18
|
-
h1: fontSize.h1L,
|
|
19
|
-
h2: fontSize.h2M,
|
|
20
|
-
...fontSize,
|
|
21
|
-
};
|
|
17
|
+
var fontSize$1 = Object.assign({ h1: fontSize.h1L, h2: fontSize.h2M }, fontSize);
|
|
22
18
|
|
|
23
19
|
export default fontSize$1;
|
|
@@ -15,10 +15,6 @@ const lineHeight = {
|
|
|
15
15
|
h4: '1.5rem',
|
|
16
16
|
h5: '1rem',
|
|
17
17
|
};
|
|
18
|
-
var lineHeight$1 = {
|
|
19
|
-
h1: lineHeight.h1L,
|
|
20
|
-
h2: lineHeight.h2M,
|
|
21
|
-
...lineHeight,
|
|
22
|
-
};
|
|
18
|
+
var lineHeight$1 = Object.assign({ h1: lineHeight.h1L, h2: lineHeight.h2M }, lineHeight);
|
|
23
19
|
|
|
24
20
|
export default lineHeight$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as styledComponents from 'styled-components';
|
|
2
|
-
import { ThemeInterface } from '../themes/theme';
|
|
2
|
+
import type { ThemeInterface } from '../themes/theme';
|
|
3
3
|
declare function createStyled<T extends ThemeInterface>(): {
|
|
4
4
|
styled: styledComponents.ThemedStyledInterface<T>;
|
|
5
5
|
css: styledComponents.ThemedCssFunction<T>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnanpm/styleguide",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "2.1
|
|
4
|
+
"version": "2.2.1",
|
|
5
5
|
"main": "build/cjs/index.js",
|
|
6
6
|
"module": "build/es/index.js",
|
|
7
7
|
"jsnext:main": "build/es/index.js",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"url": "https://github.com/DNA-Online-Services/b2cwebshop-styleguide.git"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"
|
|
23
|
+
"eslint": "cross-env eslint --fix './**/*.{ts,tsx}'",
|
|
24
|
+
"eslint:check": "cross-env eslint './**/*.{ts,tsx}'",
|
|
24
25
|
"eject": "react-scripts eject",
|
|
25
26
|
"styleguide": "styleguidist server",
|
|
26
27
|
"styleguide:build": "styleguidist build",
|
|
@@ -31,13 +32,10 @@
|
|
|
31
32
|
"unlock": "echo 'check if its ours ,remove it and ours.'",
|
|
32
33
|
"condtar": "npm run lock && ( [ -s dnanpm-styleguide-snapshot.tgz ] || npm run tar) && npm run unlock",
|
|
33
34
|
"tar": "npm run clean && npm ci && npm run build && npm pack && mv dnanpm-styleguide*.tgz dnanpm-styleguide-snapshot.tgz",
|
|
34
|
-
"prepublishOnly": "npm run clean && npm ci && npm run
|
|
35
|
+
"prepublishOnly": "npm run clean && npm ci && npm run eslint:check && npm run build",
|
|
35
36
|
"format": "cross-env prettier --ignore-path .prettierignore --write --loglevel silent '**/*.{ts,tsx,js,json}'",
|
|
36
37
|
"format:check": "cross-env prettier --ignore-path .prettierignore --check '**/*.{ts,tsx,js,json}'",
|
|
37
|
-
"preCommit": "npm run
|
|
38
|
-
},
|
|
39
|
-
"eslintConfig": {
|
|
40
|
-
"extends": "react-app"
|
|
38
|
+
"preCommit": "npm run eslint:check && npm run format:check"
|
|
41
39
|
},
|
|
42
40
|
"browserslist": [
|
|
43
41
|
">0.2%",
|
|
@@ -51,12 +49,24 @@
|
|
|
51
49
|
"@types/react": "^17.0.0",
|
|
52
50
|
"@types/react-dom": "^17.0.0",
|
|
53
51
|
"@types/react-modal": "^3.10.6",
|
|
54
|
-
"@types/react-select": "^
|
|
52
|
+
"@types/react-select": "^5.0.1",
|
|
55
53
|
"@types/react-sizes": "^2.0.0",
|
|
56
54
|
"@types/react-tooltip": "^3.11.0",
|
|
57
55
|
"@types/styled-components": "^5.1.7",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
|
57
|
+
"@typescript-eslint/parser": "^5.31.0",
|
|
58
58
|
"cross-env": "^7.0.3",
|
|
59
|
-
"
|
|
59
|
+
"eslint": "^8.20.0",
|
|
60
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
61
|
+
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
62
|
+
"eslint-config-prettier": "^8.5.0",
|
|
63
|
+
"eslint-plugin-import": "2.26.0",
|
|
64
|
+
"eslint-plugin-jsdoc": "^39.3.3",
|
|
65
|
+
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
66
|
+
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
67
|
+
"eslint-plugin-react": "^7.30.1",
|
|
68
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
69
|
+
"prettier": "^2.7.1",
|
|
60
70
|
"react": "^17.0.1",
|
|
61
71
|
"react-docgen-typescript": "^1.20.5",
|
|
62
72
|
"react-dom": "^17.0.1",
|
|
@@ -71,10 +81,6 @@
|
|
|
71
81
|
"rollup-plugin-visualizer": "^4.2.0",
|
|
72
82
|
"styled-components": "^5.2.1",
|
|
73
83
|
"tslib": "^2.1.0",
|
|
74
|
-
"tslint": "^6.1.3",
|
|
75
|
-
"tslint-config-prettier": "^1.18.0",
|
|
76
|
-
"tslint-react": "^4.2.0",
|
|
77
|
-
"tslint-react-hooks": "^2.2.2",
|
|
78
84
|
"typescript": "^4.1.3"
|
|
79
85
|
},
|
|
80
86
|
"dependencies": {
|
|
@@ -82,7 +88,7 @@
|
|
|
82
88
|
"ramda": "^0.27.1",
|
|
83
89
|
"react-modal": "^3.12.1",
|
|
84
90
|
"react-progressive-image": "^0.6.0",
|
|
85
|
-
"react-select": "^5.
|
|
91
|
+
"react-select": "^5.4.0",
|
|
86
92
|
"react-sizes": "^2.0.0",
|
|
87
93
|
"react-spring": "^8.0.27",
|
|
88
94
|
"react-tooltip": "4.1.0"
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import LoaderProps from './types/LoaderProps';
|
|
2
|
-
declare const LoaderWrapper: import("styled-components").StyledComponent<"div", {
|
|
3
|
-
base: {
|
|
4
|
-
baseHeight: {
|
|
5
|
-
value: number;
|
|
6
|
-
unit: string;
|
|
7
|
-
};
|
|
8
|
-
baseWidth: {
|
|
9
|
-
value: number;
|
|
10
|
-
unit: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
breakpoints: import("../../themes/themeComponents/breakpoints").ViewBreakpoints;
|
|
14
|
-
button: {
|
|
15
|
-
border: string;
|
|
16
|
-
};
|
|
17
|
-
color: {
|
|
18
|
-
black: string;
|
|
19
|
-
white: string;
|
|
20
|
-
text: string;
|
|
21
|
-
hotPink: string;
|
|
22
|
-
waterBlue: string;
|
|
23
|
-
melonYellow: string;
|
|
24
|
-
slateGray: string;
|
|
25
|
-
grayWhite: string;
|
|
26
|
-
hotPinkHover: string;
|
|
27
|
-
waterBlueHover: string;
|
|
28
|
-
pink1: string;
|
|
29
|
-
pink2: string;
|
|
30
|
-
pinkday: string;
|
|
31
|
-
info: string;
|
|
32
|
-
error: string;
|
|
33
|
-
success: string;
|
|
34
|
-
warning: string;
|
|
35
|
-
grayBg: string;
|
|
36
|
-
gray80: string;
|
|
37
|
-
gray70: string;
|
|
38
|
-
gray55: string;
|
|
39
|
-
gray40: string;
|
|
40
|
-
gray25: string;
|
|
41
|
-
gray15: string;
|
|
42
|
-
gray10: string;
|
|
43
|
-
gray5: string;
|
|
44
|
-
};
|
|
45
|
-
fontFamily: {
|
|
46
|
-
default: string;
|
|
47
|
-
heading: string;
|
|
48
|
-
numerals: string;
|
|
49
|
-
};
|
|
50
|
-
fontSize: {
|
|
51
|
-
default: string;
|
|
52
|
-
xl: string;
|
|
53
|
-
l: string;
|
|
54
|
-
s: string;
|
|
55
|
-
xs: string;
|
|
56
|
-
h1XL: string;
|
|
57
|
-
h1L: string;
|
|
58
|
-
h1M: string;
|
|
59
|
-
h1S: string;
|
|
60
|
-
h2M: string;
|
|
61
|
-
h2S: string;
|
|
62
|
-
h3: string;
|
|
63
|
-
h4: string;
|
|
64
|
-
h5: string;
|
|
65
|
-
h1: string;
|
|
66
|
-
h2: string;
|
|
67
|
-
};
|
|
68
|
-
fontWeight: {
|
|
69
|
-
book: number;
|
|
70
|
-
medium: number;
|
|
71
|
-
bold: number;
|
|
72
|
-
black: number;
|
|
73
|
-
};
|
|
74
|
-
form: {
|
|
75
|
-
smallSelectWidth: string;
|
|
76
|
-
smallSelectHeight: string;
|
|
77
|
-
};
|
|
78
|
-
grid: {
|
|
79
|
-
gutter: string;
|
|
80
|
-
};
|
|
81
|
-
lineHeight: {
|
|
82
|
-
default: string;
|
|
83
|
-
xl: string;
|
|
84
|
-
s: string;
|
|
85
|
-
xs: string;
|
|
86
|
-
xxs: string;
|
|
87
|
-
auto: string;
|
|
88
|
-
h1XL: string;
|
|
89
|
-
h1L: string;
|
|
90
|
-
h1M: string;
|
|
91
|
-
h1S: string;
|
|
92
|
-
h2M: string;
|
|
93
|
-
h2S: string;
|
|
94
|
-
h3: string;
|
|
95
|
-
h4: string;
|
|
96
|
-
h5: string;
|
|
97
|
-
h1: string;
|
|
98
|
-
h2: string;
|
|
99
|
-
};
|
|
100
|
-
media: Record<string | number, (l: TemplateStringsArray, ...p: any[]) => string>;
|
|
101
|
-
}, {}, never>;
|
|
102
|
-
declare const Pixel: import("styled-components").StyledComponent<"div", {
|
|
103
|
-
base: {
|
|
104
|
-
baseHeight: {
|
|
105
|
-
value: number;
|
|
106
|
-
unit: string;
|
|
107
|
-
};
|
|
108
|
-
baseWidth: {
|
|
109
|
-
value: number;
|
|
110
|
-
unit: string;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
breakpoints: import("../../themes/themeComponents/breakpoints").ViewBreakpoints;
|
|
114
|
-
button: {
|
|
115
|
-
border: string;
|
|
116
|
-
};
|
|
117
|
-
color: {
|
|
118
|
-
black: string;
|
|
119
|
-
white: string;
|
|
120
|
-
text: string;
|
|
121
|
-
hotPink: string;
|
|
122
|
-
waterBlue: string;
|
|
123
|
-
melonYellow: string;
|
|
124
|
-
slateGray: string;
|
|
125
|
-
grayWhite: string;
|
|
126
|
-
hotPinkHover: string;
|
|
127
|
-
waterBlueHover: string;
|
|
128
|
-
pink1: string;
|
|
129
|
-
pink2: string;
|
|
130
|
-
pinkday: string;
|
|
131
|
-
info: string;
|
|
132
|
-
error: string;
|
|
133
|
-
success: string;
|
|
134
|
-
warning: string;
|
|
135
|
-
grayBg: string;
|
|
136
|
-
gray80: string;
|
|
137
|
-
gray70: string;
|
|
138
|
-
gray55: string;
|
|
139
|
-
gray40: string;
|
|
140
|
-
gray25: string;
|
|
141
|
-
gray15: string;
|
|
142
|
-
gray10: string;
|
|
143
|
-
gray5: string;
|
|
144
|
-
};
|
|
145
|
-
fontFamily: {
|
|
146
|
-
default: string;
|
|
147
|
-
heading: string;
|
|
148
|
-
numerals: string;
|
|
149
|
-
};
|
|
150
|
-
fontSize: {
|
|
151
|
-
default: string;
|
|
152
|
-
xl: string;
|
|
153
|
-
l: string;
|
|
154
|
-
s: string;
|
|
155
|
-
xs: string;
|
|
156
|
-
h1XL: string;
|
|
157
|
-
h1L: string;
|
|
158
|
-
h1M: string;
|
|
159
|
-
h1S: string;
|
|
160
|
-
h2M: string;
|
|
161
|
-
h2S: string;
|
|
162
|
-
h3: string;
|
|
163
|
-
h4: string;
|
|
164
|
-
h5: string;
|
|
165
|
-
h1: string;
|
|
166
|
-
h2: string;
|
|
167
|
-
};
|
|
168
|
-
fontWeight: {
|
|
169
|
-
book: number;
|
|
170
|
-
medium: number;
|
|
171
|
-
bold: number;
|
|
172
|
-
black: number;
|
|
173
|
-
};
|
|
174
|
-
form: {
|
|
175
|
-
smallSelectWidth: string;
|
|
176
|
-
smallSelectHeight: string;
|
|
177
|
-
};
|
|
178
|
-
grid: {
|
|
179
|
-
gutter: string;
|
|
180
|
-
};
|
|
181
|
-
lineHeight: {
|
|
182
|
-
default: string;
|
|
183
|
-
xl: string;
|
|
184
|
-
s: string;
|
|
185
|
-
xs: string;
|
|
186
|
-
xxs: string;
|
|
187
|
-
auto: string;
|
|
188
|
-
h1XL: string;
|
|
189
|
-
h1L: string;
|
|
190
|
-
h1M: string;
|
|
191
|
-
h1S: string;
|
|
192
|
-
h2M: string;
|
|
193
|
-
h2S: string;
|
|
194
|
-
h3: string;
|
|
195
|
-
h4: string;
|
|
196
|
-
h5: string;
|
|
197
|
-
h1: string;
|
|
198
|
-
h2: string;
|
|
199
|
-
};
|
|
200
|
-
media: Record<string | number, (l: TemplateStringsArray, ...p: any[]) => string>;
|
|
201
|
-
}, LoaderProps, never>;
|
|
202
|
-
/** @component */
|
|
203
|
-
export { LoaderWrapper, Pixel };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var styled = require('../../themes/styled.js');
|
|
6
|
-
|
|
7
|
-
const loading = styled.keyframes `
|
|
8
|
-
0% {
|
|
9
|
-
transform: scale(1);
|
|
10
|
-
}
|
|
11
|
-
20% {
|
|
12
|
-
transform: scale(1.4, 1.4);
|
|
13
|
-
}
|
|
14
|
-
40% {
|
|
15
|
-
transform: scale(1);
|
|
16
|
-
}
|
|
17
|
-
`;
|
|
18
|
-
const LoaderWrapper = styled['default'].div `
|
|
19
|
-
display: flex;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
align-items: center;
|
|
22
|
-
padding: 0.125rem;
|
|
23
|
-
`;
|
|
24
|
-
const Pixel = styled['default'].div `
|
|
25
|
-
background: ${props => (props && props.color ? props.color : 'currentColor')};
|
|
26
|
-
display: inline-block;
|
|
27
|
-
width: 0.625rem;
|
|
28
|
-
height: 0.625rem;
|
|
29
|
-
margin: 0.125rem;
|
|
30
|
-
animation: ${loading} 1s ease-in-out infinite;
|
|
31
|
-
animation-delay: ${props => props.delay}s;
|
|
32
|
-
`;
|
|
33
|
-
|
|
34
|
-
exports.LoaderWrapper = LoaderWrapper;
|
|
35
|
-
exports.Pixel = Pixel;
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import LoaderProps from './types/LoaderProps';
|
|
2
|
-
declare const LoaderWrapper: import("styled-components").StyledComponent<"div", {
|
|
3
|
-
base: {
|
|
4
|
-
baseHeight: {
|
|
5
|
-
value: number;
|
|
6
|
-
unit: string;
|
|
7
|
-
};
|
|
8
|
-
baseWidth: {
|
|
9
|
-
value: number;
|
|
10
|
-
unit: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
breakpoints: import("../../themes/themeComponents/breakpoints").ViewBreakpoints;
|
|
14
|
-
button: {
|
|
15
|
-
border: string;
|
|
16
|
-
};
|
|
17
|
-
color: {
|
|
18
|
-
black: string;
|
|
19
|
-
white: string;
|
|
20
|
-
text: string;
|
|
21
|
-
hotPink: string;
|
|
22
|
-
waterBlue: string;
|
|
23
|
-
melonYellow: string;
|
|
24
|
-
slateGray: string;
|
|
25
|
-
grayWhite: string;
|
|
26
|
-
hotPinkHover: string;
|
|
27
|
-
waterBlueHover: string;
|
|
28
|
-
pink1: string;
|
|
29
|
-
pink2: string;
|
|
30
|
-
pinkday: string;
|
|
31
|
-
info: string;
|
|
32
|
-
error: string;
|
|
33
|
-
success: string;
|
|
34
|
-
warning: string;
|
|
35
|
-
grayBg: string;
|
|
36
|
-
gray80: string;
|
|
37
|
-
gray70: string;
|
|
38
|
-
gray55: string;
|
|
39
|
-
gray40: string;
|
|
40
|
-
gray25: string;
|
|
41
|
-
gray15: string;
|
|
42
|
-
gray10: string;
|
|
43
|
-
gray5: string;
|
|
44
|
-
};
|
|
45
|
-
fontFamily: {
|
|
46
|
-
default: string;
|
|
47
|
-
heading: string;
|
|
48
|
-
numerals: string;
|
|
49
|
-
};
|
|
50
|
-
fontSize: {
|
|
51
|
-
default: string;
|
|
52
|
-
xl: string;
|
|
53
|
-
l: string;
|
|
54
|
-
s: string;
|
|
55
|
-
xs: string;
|
|
56
|
-
h1XL: string;
|
|
57
|
-
h1L: string;
|
|
58
|
-
h1M: string;
|
|
59
|
-
h1S: string;
|
|
60
|
-
h2M: string;
|
|
61
|
-
h2S: string;
|
|
62
|
-
h3: string;
|
|
63
|
-
h4: string;
|
|
64
|
-
h5: string;
|
|
65
|
-
h1: string;
|
|
66
|
-
h2: string;
|
|
67
|
-
};
|
|
68
|
-
fontWeight: {
|
|
69
|
-
book: number;
|
|
70
|
-
medium: number;
|
|
71
|
-
bold: number;
|
|
72
|
-
black: number;
|
|
73
|
-
};
|
|
74
|
-
form: {
|
|
75
|
-
smallSelectWidth: string;
|
|
76
|
-
smallSelectHeight: string;
|
|
77
|
-
};
|
|
78
|
-
grid: {
|
|
79
|
-
gutter: string;
|
|
80
|
-
};
|
|
81
|
-
lineHeight: {
|
|
82
|
-
default: string;
|
|
83
|
-
xl: string;
|
|
84
|
-
s: string;
|
|
85
|
-
xs: string;
|
|
86
|
-
xxs: string;
|
|
87
|
-
auto: string;
|
|
88
|
-
h1XL: string;
|
|
89
|
-
h1L: string;
|
|
90
|
-
h1M: string;
|
|
91
|
-
h1S: string;
|
|
92
|
-
h2M: string;
|
|
93
|
-
h2S: string;
|
|
94
|
-
h3: string;
|
|
95
|
-
h4: string;
|
|
96
|
-
h5: string;
|
|
97
|
-
h1: string;
|
|
98
|
-
h2: string;
|
|
99
|
-
};
|
|
100
|
-
media: Record<string | number, (l: TemplateStringsArray, ...p: any[]) => string>;
|
|
101
|
-
}, {}, never>;
|
|
102
|
-
declare const Pixel: import("styled-components").StyledComponent<"div", {
|
|
103
|
-
base: {
|
|
104
|
-
baseHeight: {
|
|
105
|
-
value: number;
|
|
106
|
-
unit: string;
|
|
107
|
-
};
|
|
108
|
-
baseWidth: {
|
|
109
|
-
value: number;
|
|
110
|
-
unit: string;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
breakpoints: import("../../themes/themeComponents/breakpoints").ViewBreakpoints;
|
|
114
|
-
button: {
|
|
115
|
-
border: string;
|
|
116
|
-
};
|
|
117
|
-
color: {
|
|
118
|
-
black: string;
|
|
119
|
-
white: string;
|
|
120
|
-
text: string;
|
|
121
|
-
hotPink: string;
|
|
122
|
-
waterBlue: string;
|
|
123
|
-
melonYellow: string;
|
|
124
|
-
slateGray: string;
|
|
125
|
-
grayWhite: string;
|
|
126
|
-
hotPinkHover: string;
|
|
127
|
-
waterBlueHover: string;
|
|
128
|
-
pink1: string;
|
|
129
|
-
pink2: string;
|
|
130
|
-
pinkday: string;
|
|
131
|
-
info: string;
|
|
132
|
-
error: string;
|
|
133
|
-
success: string;
|
|
134
|
-
warning: string;
|
|
135
|
-
grayBg: string;
|
|
136
|
-
gray80: string;
|
|
137
|
-
gray70: string;
|
|
138
|
-
gray55: string;
|
|
139
|
-
gray40: string;
|
|
140
|
-
gray25: string;
|
|
141
|
-
gray15: string;
|
|
142
|
-
gray10: string;
|
|
143
|
-
gray5: string;
|
|
144
|
-
};
|
|
145
|
-
fontFamily: {
|
|
146
|
-
default: string;
|
|
147
|
-
heading: string;
|
|
148
|
-
numerals: string;
|
|
149
|
-
};
|
|
150
|
-
fontSize: {
|
|
151
|
-
default: string;
|
|
152
|
-
xl: string;
|
|
153
|
-
l: string;
|
|
154
|
-
s: string;
|
|
155
|
-
xs: string;
|
|
156
|
-
h1XL: string;
|
|
157
|
-
h1L: string;
|
|
158
|
-
h1M: string;
|
|
159
|
-
h1S: string;
|
|
160
|
-
h2M: string;
|
|
161
|
-
h2S: string;
|
|
162
|
-
h3: string;
|
|
163
|
-
h4: string;
|
|
164
|
-
h5: string;
|
|
165
|
-
h1: string;
|
|
166
|
-
h2: string;
|
|
167
|
-
};
|
|
168
|
-
fontWeight: {
|
|
169
|
-
book: number;
|
|
170
|
-
medium: number;
|
|
171
|
-
bold: number;
|
|
172
|
-
black: number;
|
|
173
|
-
};
|
|
174
|
-
form: {
|
|
175
|
-
smallSelectWidth: string;
|
|
176
|
-
smallSelectHeight: string;
|
|
177
|
-
};
|
|
178
|
-
grid: {
|
|
179
|
-
gutter: string;
|
|
180
|
-
};
|
|
181
|
-
lineHeight: {
|
|
182
|
-
default: string;
|
|
183
|
-
xl: string;
|
|
184
|
-
s: string;
|
|
185
|
-
xs: string;
|
|
186
|
-
xxs: string;
|
|
187
|
-
auto: string;
|
|
188
|
-
h1XL: string;
|
|
189
|
-
h1L: string;
|
|
190
|
-
h1M: string;
|
|
191
|
-
h1S: string;
|
|
192
|
-
h2M: string;
|
|
193
|
-
h2S: string;
|
|
194
|
-
h3: string;
|
|
195
|
-
h4: string;
|
|
196
|
-
h5: string;
|
|
197
|
-
h1: string;
|
|
198
|
-
h2: string;
|
|
199
|
-
};
|
|
200
|
-
media: Record<string | number, (l: TemplateStringsArray, ...p: any[]) => string>;
|
|
201
|
-
}, LoaderProps, never>;
|
|
202
|
-
/** @component */
|
|
203
|
-
export { LoaderWrapper, Pixel };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import styled, { keyframes } from '../../themes/styled.js';
|
|
2
|
-
|
|
3
|
-
const loading = keyframes `
|
|
4
|
-
0% {
|
|
5
|
-
transform: scale(1);
|
|
6
|
-
}
|
|
7
|
-
20% {
|
|
8
|
-
transform: scale(1.4, 1.4);
|
|
9
|
-
}
|
|
10
|
-
40% {
|
|
11
|
-
transform: scale(1);
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
const LoaderWrapper = styled.div `
|
|
15
|
-
display: flex;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
align-items: center;
|
|
18
|
-
padding: 0.125rem;
|
|
19
|
-
`;
|
|
20
|
-
const Pixel = styled.div `
|
|
21
|
-
background: ${props => (props && props.color ? props.color : 'currentColor')};
|
|
22
|
-
display: inline-block;
|
|
23
|
-
width: 0.625rem;
|
|
24
|
-
height: 0.625rem;
|
|
25
|
-
margin: 0.125rem;
|
|
26
|
-
animation: ${loading} 1s ease-in-out infinite;
|
|
27
|
-
animation-delay: ${props => props.delay}s;
|
|
28
|
-
`;
|
|
29
|
-
|
|
30
|
-
export { LoaderWrapper, Pixel };
|