@oaknational/oak-components 3.0.0 → 3.1.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/dist/npm/cjs/index.js +7949 -0
- package/dist/npm/es/animation/usePrefersReducedMotion.js +16 -0
- package/dist/npm/es/components/OakGlobalStyle/OakGlobalStyle.js +14 -0
- package/dist/npm/es/components/OakThemeProvider/OakThemeProvider.js +14 -0
- package/dist/npm/es/components/buttons/OakButtonWithDropdown/OakButtonWithDropdown.js +105 -0
- package/dist/npm/es/components/buttons/OakCloseButton/OakCloseButton.js +18 -0
- package/dist/npm/es/components/buttons/OakLeftAlignedButton/OakLeftAlignedButton.js +57 -0
- package/dist/npm/es/components/buttons/OakPrimaryButton/OakPrimaryButton.js +23 -0
- package/dist/npm/es/components/buttons/OakPrimaryInvertedButton/OakPrimaryInvertedButton.js +23 -0
- package/dist/npm/es/components/buttons/OakSecondaryButton/OakSecondaryButton.js +23 -0
- package/dist/npm/es/components/buttons/OakSecondaryButtonWithDropdown/OakSecondaryButtonWithDropdown.js +20 -0
- package/dist/npm/es/components/buttons/OakSmallPrimaryButton/OakSmallPrimaryButton.js +23 -0
- package/dist/npm/es/components/buttons/OakSmallPrimaryInvertedButton/OakSmallPrimaryInvertedButton.js +23 -0
- package/dist/npm/es/components/buttons/OakSmallSecondaryButton/OakSmallSecondaryButton.js +23 -0
- package/dist/npm/es/components/buttons/OakSmallSecondaryButtonWithDropdown/OakSmallSecondaryButtonWithDropdown.js +20 -0
- package/dist/npm/es/components/buttons/OakSmallSecondaryToggleButton/OakSmallSecondaryToggleButton.js +37 -0
- package/dist/npm/es/components/buttons/OakSmallTertiaryInvertedButton/OakSmallTertiaryInvertedButton.js +23 -0
- package/dist/npm/es/components/buttons/OakTertiaryButton/OakTertiaryButton.js +14 -0
- package/dist/npm/es/components/buttons/OakTertiaryInvertedButton/OakTertiaryInvertedButton.js +14 -0
- package/dist/npm/es/components/cookies/OakCookieBanner/OakCookieBanner.js +62 -0
- package/dist/npm/es/components/cookies/OakCookieConsent/OakCookieConsent.js +17 -0
- package/dist/npm/es/components/cookies/OakCookieConsentProvider/OakCookieConsentProvider.js +103 -0
- package/dist/npm/es/components/cookies/OakCookieConsentProvider/cookieConsentReducer.js +32 -0
- package/dist/npm/es/components/cookies/OakCookieSettingsModal/OakCookieSettingsModal.js +91 -0
- package/dist/npm/es/components/form-elements/OakButtonAsRadioGroup/OakButtonAsRadioGroup.js +44 -0
- package/dist/npm/es/components/form-elements/OakCheckBox/OakCheckBox.js +71 -0
- package/dist/npm/es/components/form-elements/OakFieldError/OakFieldError.js +25 -0
- package/dist/npm/es/components/form-elements/OakFieldset/OakFieldset.js +12 -0
- package/dist/npm/es/components/form-elements/OakForm/OakForm.js +16 -0
- package/dist/npm/es/components/form-elements/OakFormInput/OakFormInput.js +26 -0
- package/dist/npm/es/components/form-elements/OakJauntyAngleLabel/OakJauntyAngleLabel.js +10 -0
- package/dist/npm/es/components/form-elements/OakLabel/OakLabel.js +15 -0
- package/dist/npm/es/components/form-elements/OakMultilineText/OakMultilineText.js +96 -0
- package/dist/npm/es/components/form-elements/OakRadioAsButton/OakRadioAsButton.js +96 -0
- package/dist/npm/es/components/form-elements/OakRadioButton/OakRadioButton.js +31 -0
- package/dist/npm/es/components/form-elements/OakRadioGroup/OakRadioGroup.js +44 -0
- package/dist/npm/es/components/form-elements/OakSearchFilterCheckBox/OakSearchFilterCheckBox.js +64 -0
- package/dist/npm/es/components/form-elements/OakSecondaryButtonAsRadio/OakSecondaryButtonAsRadio.js +25 -0
- package/dist/npm/es/components/form-elements/OakSelect/NativeLegend.js +9 -0
- package/dist/npm/es/components/form-elements/OakSelect/NativeOptGroup.js +7 -0
- package/dist/npm/es/components/form-elements/OakSelect/NativeOption.js +22 -0
- package/dist/npm/es/components/form-elements/OakSelect/NativeSelect.js +23 -0
- package/dist/npm/es/components/form-elements/OakSelect/OakOptGroup.js +12 -0
- package/dist/npm/es/components/form-elements/OakSelect/OakOption.js +12 -0
- package/dist/npm/es/components/form-elements/OakSelect/OakSelect.js +44 -0
- package/dist/npm/es/components/form-elements/OakTextArea/OakTextArea.js +23 -0
- package/dist/npm/es/components/form-elements/OakTextInput/OakTextInput.js +59 -0
- package/dist/npm/es/components/house-cat/OakCaptionCard/OakCaptionCard.js +81 -0
- package/dist/npm/es/components/house-cat/OakCaptionSearch/OakCaptionSearch.js +24 -0
- package/dist/npm/es/components/house-cat/utils.js +33 -0
- package/dist/npm/es/components/images-and-icons/OakAspectRatio/OakAspectRatio.js +39 -0
- package/dist/npm/es/components/images-and-icons/OakIcon/OakIcon.js +38 -0
- package/dist/npm/es/components/images-and-icons/OakImage/OakImage.js +51 -0
- package/dist/npm/es/components/images-and-icons/OakImage/useShowPlaceholder.js +29 -0
- package/dist/npm/es/components/images-and-icons/OakRoundIcon/OakRoundIcon.js +17 -0
- package/dist/npm/es/components/images-and-icons/OakSvg/OakSvg.js +47 -0
- package/dist/npm/es/components/internal-components/InternalAccordion/InternalAccordion.js +36 -0
- package/dist/npm/es/components/internal-components/InternalAccordion/InternalAccordionProvider.js +24 -0
- package/dist/npm/es/components/internal-components/InternalAccordion/useAccordionContext.js +12 -0
- package/dist/npm/es/components/internal-components/InternalButton/InternalButton.js +48 -0
- package/dist/npm/es/components/internal-components/InternalCard/InternalCard.js +19 -0
- package/dist/npm/es/components/internal-components/InternalCardWithBackgroundElement/InternalCardWithBackgroundElement.js +22 -0
- package/dist/npm/es/components/internal-components/InternalCheckBox/InternalCheckBox.js +82 -0
- package/dist/npm/es/components/internal-components/InternalCheckBoxLabel/InternalCheckBoxLabel.js +16 -0
- package/dist/npm/es/components/internal-components/InternalCheckBoxWrapper/InternalCheckBoxWrapper.js +24 -0
- package/dist/npm/es/components/internal-components/InternalChevronAccordion/InternalChevronAccordion.js +83 -0
- package/dist/npm/es/components/internal-components/InternalClientPortal/InternalClientPortal.js +13 -0
- package/dist/npm/es/components/internal-components/InternalDndContext/InternalDndContext.js +28 -0
- package/dist/npm/es/components/internal-components/InternalLink/InternalLink.js +54 -0
- package/dist/npm/es/components/internal-components/InternalModalTransition/InternalModalTransition.js +31 -0
- package/dist/npm/es/components/internal-components/InternalRadio/InternalRadio.js +82 -0
- package/dist/npm/es/components/internal-components/InternalRadioWrapper/InternalRadioWrapper.js +36 -0
- package/dist/npm/es/components/internal-components/InternalReviewAccordion/InternalReviewAccordion.js +38 -0
- package/dist/npm/es/components/internal-components/InternalShadowIconButton/InternalShadowIconButton.js +56 -0
- package/dist/npm/es/components/internal-components/InternalShadowRectButton/InternalShadowRectButton.js +56 -0
- package/dist/npm/es/components/internal-components/InternalShadowRoundButton/InternalShadowRoundButton.js +56 -0
- package/dist/npm/es/components/internal-components/InternalSlideInFlex/InternalSlideInFlex.js +30 -0
- package/dist/npm/es/components/internal-components/InternalStyledSvg/InternalStyledSvg.js +14 -0
- package/dist/npm/es/components/internal-components/InternalTextInput/InternalTextInput.js +50 -0
- package/dist/npm/es/components/internal-components/InternalTooltip/InternalTooltip.js +36 -0
- package/dist/npm/es/components/layout-and-structure/OakAccordion/OakAccordion.js +39 -0
- package/dist/npm/es/components/layout-and-structure/OakBasicAccordion/OakBasicAccordion.js +10 -0
- package/dist/npm/es/components/layout-and-structure/OakBox/OakBox.js +41 -0
- package/dist/npm/es/components/layout-and-structure/OakCollapsibleContent/OakCollapsibleContent.js +23 -0
- package/dist/npm/es/components/layout-and-structure/OakFlex/OakFlex.js +18 -0
- package/dist/npm/es/components/layout-and-structure/OakGrid/OakGrid.js +16 -0
- package/dist/npm/es/components/layout-and-structure/OakGridArea/OakGridArea.js +51 -0
- package/dist/npm/es/components/layout-and-structure/OakMaxWidth/OakMaxWidth.js +23 -0
- package/dist/npm/es/components/messaging-and-feedback/OakFocusIndicator/OakFocusIndicator.js +38 -0
- package/dist/npm/es/components/messaging-and-feedback/OakHandDrawnFocusUnderline/OakHandDrawnFocusUnderline.js +22 -0
- package/dist/npm/es/components/messaging-and-feedback/OakHandDrawnFocusUnderline/SubHandDrawnFocusUnderline.js +17 -0
- package/dist/npm/es/components/messaging-and-feedback/OakInformativeModal/OakInformativeModal.js +41 -0
- package/dist/npm/es/components/messaging-and-feedback/OakInformativeModal/OakInformativeModalBody.js +14 -0
- package/dist/npm/es/components/messaging-and-feedback/OakInformativeModal/OakInformativeModalFooter.js +16 -0
- package/dist/npm/es/components/messaging-and-feedback/OakInlineBanner/OakInlineBanner.js +129 -0
- package/dist/npm/es/components/messaging-and-feedback/OakKbd/OakKbd.js +12 -0
- package/dist/npm/es/components/messaging-and-feedback/OakLoadingSpinner/OakLoadingSpinner.js +34 -0
- package/dist/npm/es/components/messaging-and-feedback/OakModalCenter/OakModalCenter.js +106 -0
- package/dist/npm/es/components/messaging-and-feedback/OakModalCenter/OakModalCenterBody.js +36 -0
- package/dist/npm/es/components/messaging-and-feedback/OakScreenReader/OakScreenReader.js +15 -0
- package/dist/npm/es/components/messaging-and-feedback/OakTagFunctional/OakTagFunctional.js +18 -0
- package/dist/npm/es/components/messaging-and-feedback/OakToast/OakToast.js +96 -0
- package/dist/npm/es/components/messaging-and-feedback/OakTooltip/OakTooltip.js +122 -0
- package/dist/npm/es/components/navigation/OakAnchorTarget/OakAnchorTarget.js +20 -0
- package/dist/npm/es/components/navigation/OakBreadcrumbs/OakBreadcrumbs.js +46 -0
- package/dist/npm/es/components/navigation/OakCard/OakCard.js +64 -0
- package/dist/npm/es/components/navigation/OakHoverLink/OakHoverLink.js +23 -0
- package/dist/npm/es/components/navigation/OakLink/OakLink.js +17 -0
- package/dist/npm/es/components/navigation/OakLink/config.js +18 -0
- package/dist/npm/es/components/navigation/OakPagination/OakPagination.js +106 -0
- package/dist/npm/es/components/navigation/OakPagination/utils.js +19 -0
- package/dist/npm/es/components/navigation/OakPrimaryNav/OakPrimaryNav.js +22 -0
- package/dist/npm/es/components/navigation/OakPrimaryNavItem/OakPrimaryNavItem.js +23 -0
- package/dist/npm/es/components/navigation/OakSecondaryLink/OakSecondaryLink.js +25 -0
- package/dist/npm/es/components/navigation/OakTabs/OakTabs.js +47 -0
- package/dist/npm/es/components/owa/OakBackLink/OakBackLink.js +28 -0
- package/dist/npm/es/components/owa/OakBulletList/OakBulletList.js +17 -0
- package/dist/npm/es/components/owa/OakCardWithHandDrawnBorder/OakCardWithHandDrawnBorder.js +17 -0
- package/dist/npm/es/components/owa/OakCloudinaryImage/OakCloudinaryImage.js +35 -0
- package/dist/npm/es/components/owa/OakCloudinaryImage/cloudinary.js +17 -0
- package/dist/npm/es/components/owa/OakCodeRenderer/OakCodeRenderer.js +135 -0
- package/dist/npm/es/components/owa/OakCopyLinkButton/OakCopyLinkButton.js +42 -0
- package/dist/npm/es/components/owa/OakDownloadCard/OakDownloadCard.js +72 -0
- package/dist/npm/es/components/owa/OakDownloadsJourneyChildSubjectTierSelector/OakDownloadsJourneyChildSubjectTierSelector.js +54 -0
- package/dist/npm/es/components/owa/OakDragAndDropInstructions/OakDragAndDropInstructions.js +41 -0
- package/dist/npm/es/components/owa/OakDraggable/OakDraggable.js +30 -0
- package/dist/npm/es/components/owa/OakDraggableFeedback/OakDraggableFeedback.js +13 -0
- package/dist/npm/es/components/owa/OakDroppable/OakDroppable.js +45 -0
- package/dist/npm/es/components/owa/OakFilterDrawer/OakFilterDrawer.js +43 -0
- package/dist/npm/es/components/owa/OakFormInputWithLabels/OakFormInputWithLabels.js +18 -0
- package/dist/npm/es/components/owa/OakHandDrawnCard/OakHandDrawnCard.js +17 -0
- package/dist/npm/es/components/owa/OakHandDrawnCardWithIcon/OakHandDrawnCardWithIcon.js +15 -0
- package/dist/npm/es/components/owa/OakHandDrawnHR/HandDrawnHRSvg.js +11 -0
- package/dist/npm/es/components/owa/OakHandDrawnHR/OakHandDrawnHR.js +22 -0
- package/dist/npm/es/components/owa/OakHeaderHero/OakHeaderHero.js +45 -0
- package/dist/npm/es/components/owa/OakHomepageTabButton/OakHomepageTabButton.js +35 -0
- package/dist/npm/es/components/owa/OakInfo/OakInfo.js +22 -0
- package/dist/npm/es/components/owa/OakInfoButton/OakInfoButton.js +20 -0
- package/dist/npm/es/components/owa/OakLessonInfoCard/OakLessonInfoCard.js +33 -0
- package/dist/npm/es/components/owa/OakLinkCard/OakLinkCard.js +42 -0
- package/dist/npm/es/components/owa/OakListItem/OakListItem.js +93 -0
- package/dist/npm/es/components/owa/OakMediaClip/OakMediaClip.js +90 -0
- package/dist/npm/es/components/owa/OakMediaClipList/OakMediaClipList.js +26 -0
- package/dist/npm/es/components/owa/OakMediaClipListAccordion/OakMediaClipListAccordion.js +29 -0
- package/dist/npm/es/components/owa/OakMediaClipStackListItem/OakMediaClipStackListItem.js +41 -0
- package/dist/npm/es/components/owa/OakOutlineAccordion/OakOutlineAccordion.js +21 -0
- package/dist/npm/es/components/owa/OakPromoTag/OakPromoTag.js +22 -0
- package/dist/npm/es/components/owa/OakRadioTile/OakRadioTile.js +40 -0
- package/dist/npm/es/components/owa/OakSaveCount/OakSaveCount.js +33 -0
- package/dist/npm/es/components/owa/OakScaleImageButton/OakScaleImageButton.js +19 -0
- package/dist/npm/es/components/owa/OakSideMenuNav/OakSideMenuNav.js +24 -0
- package/dist/npm/es/components/owa/OakSideMenuNavLink/OakSideMenuNavLink.js +48 -0
- package/dist/npm/es/components/owa/OakSignLanguageButton/OakSignLanguageButton.js +23 -0
- package/dist/npm/es/components/owa/OakSubjectIcon/OakSubjectIcon.js +20 -0
- package/dist/npm/es/components/owa/OakSubjectIconButton/OakSubjectIconButton.js +44 -0
- package/dist/npm/es/components/owa/OakTimer/OakTimer.js +26 -0
- package/dist/npm/es/components/owa/OakVideoTranscript/OakVideoTranscript.js +32 -0
- package/dist/npm/es/components/owa/pupil/OakUnitListItem/OakUnitListItem.js +63 -0
- package/dist/npm/es/components/owa/pupil/OakUnitListOptionalityItem/OakUnitListOptionalityItem.js +57 -0
- package/dist/npm/es/components/owa/pupil/OakUnitListOptionalityItemCard/OakUnitListOptionalityItemCard.js +36 -0
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyContentGuidance/OakPupilJourneyContentGuidance.js +44 -0
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyHeader/OakPupilJourneyHeader.js +29 -0
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyLayout/OakPupilJourneyLayout.js +62 -0
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyList/OakPupilJourneyList.js +46 -0
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyListCounter/OakPupilJourneyListCounter.js +12 -0
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyListItem/OakPupilJourneyListItem.js +45 -0
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyListItemSubheading/OakPupilJourneyListItemSubheading.js +20 -0
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyOptionalityButton/OakPupilJourneyOptionalityButton.js +35 -0
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyOptionalityItem/OakPupilJourneyOptionalityItem.js +23 -0
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyProgrammeOptions/OakPupilJourneyProgrammeOptions.js +27 -0
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyUnitsFilter/OakPupilJourneyUnitsFilter.js +42 -0
- package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyYearButton/OakPupilJourneyYearButton.js +31 -0
- package/dist/npm/es/components/owa/pupil/lesson/OakLessonBottomNav/OakLessonBottomNav.js +34 -0
- package/dist/npm/es/components/owa/pupil/lesson/OakLessonLayout/OakLessonLayout.js +153 -0
- package/dist/npm/es/components/owa/pupil/lesson/OakLessonNavItem/OakLessonNavItem.js +167 -0
- package/dist/npm/es/components/owa/pupil/lesson/OakLessonReviewIntroVideo/OakPupilLessonReviewIntroVideo.js +30 -0
- package/dist/npm/es/components/owa/pupil/lesson/OakLessonReviewItem/OakPupilLessonReviewItem.js +106 -0
- package/dist/npm/es/components/owa/pupil/lesson/OakLessonReviewQuiz/OakPupilLessonReviewQuiz.js +56 -0
- package/dist/npm/es/components/owa/pupil/lesson/OakLessonTopNav/OakLessonTopNav.js +58 -0
- package/dist/npm/es/components/owa/pupil/lesson/OakLessonVideoTranscript/OakLessonVideoTranscript.js +27 -0
- package/dist/npm/es/components/owa/pupil/quiz/InternalDroppableHoldingPen/InternalDroppableHoldingPen.js +60 -0
- package/dist/npm/es/components/owa/pupil/quiz/OakHintButton/OakHintButton.js +27 -0
- package/dist/npm/es/components/owa/pupil/quiz/OakQuizCheckBox/OakQuizCheckBox.js +58 -0
- package/dist/npm/es/components/owa/pupil/quiz/OakQuizCounter/OakQuizCounter.js +33 -0
- package/dist/npm/es/components/owa/pupil/quiz/OakQuizFeedback/OakQuizFeedback.js +31 -0
- package/dist/npm/es/components/owa/pupil/quiz/OakQuizHint/OakQuizHint.js +28 -0
- package/dist/npm/es/components/owa/pupil/quiz/OakQuizMatch/OakQuizMatch.js +121 -0
- package/dist/npm/es/components/owa/pupil/quiz/OakQuizOrder/OakQuizOrder.js +88 -0
- package/dist/npm/es/components/owa/pupil/quiz/OakQuizPrintableHeader/OakQuizPrintableHeader.js +29 -0
- package/dist/npm/es/components/owa/pupil/quiz/OakQuizPrintableSubHeader/OakQuizPrintableSubHeader.js +28 -0
- package/dist/npm/es/components/owa/pupil/quiz/OakQuizRadioButton/OakQuizRadioButton.js +78 -0
- package/dist/npm/es/components/owa/pupil/quiz/OakQuizResultItem/OakQuizResultItem.js +70 -0
- package/dist/npm/es/components/owa/pupil/quiz/OakQuizTextInput/OakQuizTextInput.js +28 -0
- package/dist/npm/es/components/owa/teacher/OakDownloadsAccordion/OakDownloadsAccordion.js +56 -0
- package/dist/npm/es/components/owa/teacher/OakInlineRegistrationBanner/OakInlineRegistrationBanner.js +62 -0
- package/dist/npm/es/components/owa/teacher/OakInlineRegistrationBanner/SurfingStudentSVG.js +15 -0
- package/dist/npm/es/components/owa/teacher/OakTeacherNotesInline/OakTeacherNotesInline.js +16 -0
- package/dist/npm/es/components/owa/teacher/OakTeacherNotesModal/OakTeacherNotesModal.js +72 -0
- package/dist/npm/es/components/owa/teacher/OakTertiaryOLNav/OakTertiaryOLNav.js +34 -0
- package/dist/npm/es/components/presentational/OakCarousel/OakCarousel.js +39 -0
- package/dist/npm/es/components/presentational/OakCarousel/SubCarouselPositionControl.js +12 -0
- package/dist/npm/es/components/presentational/OakCarousel/SubCarouselPositionIndicator.js +17 -0
- package/dist/npm/es/components/presentational/OakQuote/OakQuote.js +34 -0
- package/dist/npm/es/components/typography/OakHeading/OakHeading.js +33 -0
- package/dist/npm/es/components/typography/OakLI/OakLI.js +23 -0
- package/dist/npm/es/components/typography/OakOL/OakOL.js +22 -0
- package/dist/npm/es/components/typography/OakP/OakP.js +17 -0
- package/dist/npm/es/components/typography/OakSpan/OakSpan.js +18 -0
- package/dist/npm/es/components/typography/OakTypography/OakTypography.js +16 -0
- package/dist/npm/es/components/typography/OakUL/OakUL.js +19 -0
- package/dist/npm/es/components/unstyled/UnstyledChevronAccordion/UnstyledChevronAccordion.js +55 -0
- package/dist/npm/es/hooks/useBreakpoint.js +38 -0
- package/dist/npm/es/hooks/useIsScrolled.js +30 -0
- package/dist/npm/es/hooks/useMediaQuery.js +20 -0
- package/dist/npm/es/hooks/useMounted.js +12 -0
- package/dist/npm/es/image-map.js +205 -0
- package/dist/npm/es/index.js +196 -0
- package/dist/npm/es/styles/global/oak.styles.js +17 -0
- package/dist/npm/es/styles/global/reset.styles.js +11 -0
- package/dist/npm/es/styles/helpers/getFontSize.js +9 -0
- package/dist/npm/es/styles/helpers/getInternalPadding.js +15 -0
- package/dist/npm/es/styles/helpers/parseBorder.js +13 -0
- package/dist/npm/es/styles/helpers/parseBorderRadius.js +13 -0
- package/dist/npm/es/styles/helpers/parseBorderWidth.js +15 -0
- package/dist/npm/es/styles/helpers/parseColor.js +19 -0
- package/dist/npm/es/styles/helpers/parseColorFilter.js +19 -0
- package/dist/npm/es/styles/helpers/parseDropShadow.js +15 -0
- package/dist/npm/es/styles/helpers/parseOpacity.js +12 -0
- package/dist/npm/es/styles/helpers/parseSpacing.js +29 -0
- package/dist/npm/es/styles/helpers/parseTransitions.js +12 -0
- package/dist/npm/es/styles/helpers/parseTypography.js +36 -0
- package/dist/npm/es/styles/helpers/parseZIndex.js +13 -0
- package/dist/npm/es/styles/helpers/pxToRem.js +7 -0
- package/dist/npm/es/styles/helpers/truthy.js +13 -0
- package/dist/npm/es/styles/theme/borders.js +22 -0
- package/dist/npm/es/styles/theme/color.js +207 -0
- package/dist/npm/es/styles/theme/dark.theme.js +99 -0
- package/dist/npm/es/styles/theme/default.theme.js +99 -0
- package/dist/npm/es/styles/theme/dropShadow.js +13 -0
- package/dist/npm/es/styles/theme/opacity.js +8 -0
- package/dist/npm/es/styles/theme/spacing.js +48 -0
- package/dist/npm/es/styles/theme/transitions.js +6 -0
- package/dist/npm/es/styles/theme/typography.js +73 -0
- package/dist/npm/es/styles/theme/zIndex.js +17 -0
- package/dist/npm/es/styles/utils/borderStyle.js +27 -0
- package/dist/npm/es/styles/utils/colorFilterStyle.js +9 -0
- package/dist/npm/es/styles/utils/colorStyle.js +9 -0
- package/dist/npm/es/styles/utils/displayStyle.js +8 -0
- package/dist/npm/es/styles/utils/dropShadowStyle.js +9 -0
- package/dist/npm/es/styles/utils/flexStyle.js +9 -0
- package/dist/npm/es/styles/utils/listStyle.js +8 -0
- package/dist/npm/es/styles/utils/opacityStyle.js +9 -0
- package/dist/npm/es/styles/utils/positionStyle.js +9 -0
- package/dist/npm/es/styles/utils/responsiveStyle.js +69 -0
- package/dist/npm/es/styles/utils/scrollSnapStyle.js +11 -0
- package/dist/npm/es/styles/utils/sizeStyle.js +9 -0
- package/dist/npm/es/styles/utils/spacingStyle.js +25 -0
- package/dist/npm/es/styles/utils/transformStyle.js +8 -0
- package/dist/npm/es/styles/utils/transitionStyle.js +9 -0
- package/dist/npm/es/styles/utils/typographyStyle.js +9 -0
- package/dist/npm/es/styles/utils/zIndexStyle.js +9 -0
- package/dist/npm/es/svgs/button-border-bottom.js +6 -0
- package/dist/npm/es/svgs/button-border-left.js +6 -0
- package/dist/npm/es/svgs/button-border-right.js +6 -0
- package/dist/npm/es/svgs/button-border-top.js +6 -0
- package/dist/npm/es/svgs/header-underline.js +6 -0
- package/dist/npm/es/svgs/horizontal-rule.js +6 -0
- package/dist/npm/es/svgs/icon-background.js +6 -0
- package/dist/npm/es/svgs/scribble.js +11 -0
- package/dist/npm/es/svgs/underline-3.js +6 -0
- package/dist/npm/es/svgs/underline.js +6 -0
- package/dist/npm/es/test-helpers/colorConversion.js +14 -0
- package/dist/npm/es/test-helpers/mockIntersectionObserver.js +50 -0
- package/dist/npm/es/test-helpers/mockResizeObserver.js +25 -0
- package/dist/npm/es/types.d.ts +5249 -0
- package/package.json +28 -12
- package/dist/cjs/index.js +0 -15
- package/dist/cjs/index.js.map +0 -1
- package/dist/esm/index.js +0 -15
- package/dist/esm/index.js.map +0 -1
- /package/dist/{types.d.ts → npm/cjs/types.d.ts} +0 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
var oakDefaultTheme = {
|
|
2
|
+
name: "default",
|
|
3
|
+
uiColors: {
|
|
4
|
+
"text-primary": "black",
|
|
5
|
+
"text-subdued": "grey60",
|
|
6
|
+
"text-error": "red",
|
|
7
|
+
"text-disabled": "grey50",
|
|
8
|
+
"text-link-active": "navy",
|
|
9
|
+
"text-link-hover": "navy110",
|
|
10
|
+
"text-link-pressed": "navy120",
|
|
11
|
+
"text-link-visited": "navy120",
|
|
12
|
+
"text-inverted": "white",
|
|
13
|
+
"text-success": "oakGreen",
|
|
14
|
+
"text-promo": "lemon",
|
|
15
|
+
"bg-primary": "white",
|
|
16
|
+
"bg-inverted": "black",
|
|
17
|
+
"bg-inverted-semi-transparent": "blackSemiTransparent",
|
|
18
|
+
"bg-neutral": "grey20",
|
|
19
|
+
"bg-neutral-stronger": "grey30",
|
|
20
|
+
"bg-btn-primary": "black",
|
|
21
|
+
"bg-btn-primary-hover": "grey60",
|
|
22
|
+
"bg-btn-primary-disabled": "grey50",
|
|
23
|
+
"bg-btn-secondary": "white",
|
|
24
|
+
"bg-btn-secondary-hover": "grey20",
|
|
25
|
+
"bg-btn-secondary-disabled": "grey30",
|
|
26
|
+
"bg-decorative1-main": "mint",
|
|
27
|
+
"bg-decorative1-subdued": "mint50",
|
|
28
|
+
"bg-decorative1-very-subdued": "mint30",
|
|
29
|
+
"bg-decorative2-main": "aqua",
|
|
30
|
+
"bg-decorative2-subdued": "aqua50",
|
|
31
|
+
"bg-decorative2-very-subdued": "aqua30",
|
|
32
|
+
"bg-decorative3-main": "lavender",
|
|
33
|
+
"bg-decorative3-subdued": "lavender50",
|
|
34
|
+
"bg-decorative3-very-subdued": "lavender30",
|
|
35
|
+
"bg-decorative4-main": "pink",
|
|
36
|
+
"bg-decorative4-subdued": "pink50",
|
|
37
|
+
"bg-decorative4-very-subdued": "pink30",
|
|
38
|
+
"bg-decorative5-main": "lemon",
|
|
39
|
+
"bg-decorative5-subdued": "lemon50",
|
|
40
|
+
"bg-decorative5-very-subdued": "lemon30",
|
|
41
|
+
"bg-decorative6-main": "amber",
|
|
42
|
+
"bg-decorative6-subdued": "amber50",
|
|
43
|
+
"bg-decorative6-very-subdued": "amber30",
|
|
44
|
+
"bg-interactive-element1": "grey50",
|
|
45
|
+
"bg-interactive-element2": "grey40",
|
|
46
|
+
"bg-correct": "mint50",
|
|
47
|
+
"bg-incorrect": "red30",
|
|
48
|
+
"bg-success": "oakGreen",
|
|
49
|
+
"bg-error": "red",
|
|
50
|
+
"icon-inverted": "white",
|
|
51
|
+
"icon-disabled": "grey50",
|
|
52
|
+
"icon-brand": "oakGreen",
|
|
53
|
+
"icon-success": "oakGreen",
|
|
54
|
+
"icon-error": "red",
|
|
55
|
+
"icon-warning": "amber",
|
|
56
|
+
"icon-primary": "black",
|
|
57
|
+
"icon-subdued": "grey60",
|
|
58
|
+
"icon-link-active": "navy",
|
|
59
|
+
"icon-link-hover": "navy110",
|
|
60
|
+
"icon-link-pressed": "navy120",
|
|
61
|
+
"icon-link-visited": "navy120",
|
|
62
|
+
"icon-decorative1": "mint110",
|
|
63
|
+
"icon-decorative2": "aqua110",
|
|
64
|
+
"icon-decorative3": "lavender110",
|
|
65
|
+
"icon-decorative4": "pink110",
|
|
66
|
+
"icon-decorative5": "lemon110",
|
|
67
|
+
"icon-decorative6": "amber",
|
|
68
|
+
"icon-promo": "lemon",
|
|
69
|
+
"border-primary": "black",
|
|
70
|
+
"border-inverted": "white",
|
|
71
|
+
"border-neutral": "grey50",
|
|
72
|
+
"border-neutral-lighter": "grey40",
|
|
73
|
+
"border-neutral-stronger": "grey60",
|
|
74
|
+
"border-brand": "oakGreen",
|
|
75
|
+
"border-success": "oakGreen",
|
|
76
|
+
"border-error": "red",
|
|
77
|
+
"border-warning": "amber",
|
|
78
|
+
"border-decorative1": "mint",
|
|
79
|
+
"border-decorative1-stronger": "mint110",
|
|
80
|
+
"border-decorative2": "aqua",
|
|
81
|
+
"border-decorative2-stronger": "aqua110",
|
|
82
|
+
"border-decorative3": "lavender",
|
|
83
|
+
"border-decorative3-stronger": "lavender110",
|
|
84
|
+
"border-decorative4": "pink",
|
|
85
|
+
"border-decorative4-stronger": "pink110",
|
|
86
|
+
"border-decorative5": "lemon",
|
|
87
|
+
"border-decorative5-stronger": "lemon110",
|
|
88
|
+
"border-decorative6": "amber50",
|
|
89
|
+
"border-decorative6-stronger": "amber",
|
|
90
|
+
transparent: "transparent",
|
|
91
|
+
"code-blue": "rpf-syntax-blue",
|
|
92
|
+
"code-green": "rpf-syntax-green",
|
|
93
|
+
"code-grey": "rpf-syntax-grey",
|
|
94
|
+
"code-pink": "rpf-syntax-pink",
|
|
95
|
+
"border-text-link-pressed": "navy120",
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export { oakDefaultTheme };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var oakDropShadowTokens = {
|
|
2
|
+
"drop-shadow-standard": "0 0.5rem 0.5rem rgba(92, 92, 92, 20%)",
|
|
3
|
+
"drop-shadow-lemon": "0.125rem 0.125rem 0 rgba(255, 229, 85, 100%)",
|
|
4
|
+
"drop-shadow-wide-lemon": "0.25rem 0.25rem 0 rgba(255, 229, 85, 100%)",
|
|
5
|
+
"drop-shadow-centered-lemon": "0 0 0 0.125rem rgba(255, 229, 85, 100%)",
|
|
6
|
+
"drop-shadow-grey": "0.25rem 0.25rem 0 rgba(87, 87, 87, 100%)",
|
|
7
|
+
"drop-shadow-centered-grey": "0 0 0 0.3rem rgba(87, 87, 87, 100%)",
|
|
8
|
+
"drop-shadow-black": "0.063rem 0.125rem 0 rgba(0,0,0, 100%)",
|
|
9
|
+
"drop-shadow-centred-standard": "0 0 0.5rem rgba(92, 92, 92, 20%)",
|
|
10
|
+
"drop-shadow-none": "none",
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { oakDropShadowTokens };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var oakAllSpacingTokens = {
|
|
2
|
+
"spacing-0": 0,
|
|
3
|
+
"spacing-2": 2,
|
|
4
|
+
"spacing-4": 4,
|
|
5
|
+
"spacing-8": 8,
|
|
6
|
+
"spacing-12": 12,
|
|
7
|
+
"spacing-16": 16,
|
|
8
|
+
"spacing-20": 20,
|
|
9
|
+
"spacing-24": 24,
|
|
10
|
+
"spacing-32": 32,
|
|
11
|
+
"spacing-40": 40,
|
|
12
|
+
"spacing-48": 48,
|
|
13
|
+
"spacing-56": 56,
|
|
14
|
+
"spacing-64": 64,
|
|
15
|
+
"spacing-72": 72,
|
|
16
|
+
"spacing-80": 80,
|
|
17
|
+
"spacing-92": 92,
|
|
18
|
+
"spacing-100": 100,
|
|
19
|
+
"spacing-120": 120,
|
|
20
|
+
"spacing-160": 160,
|
|
21
|
+
"spacing-180": 180,
|
|
22
|
+
"spacing-240": 240,
|
|
23
|
+
"spacing-360": 360,
|
|
24
|
+
"spacing-480": 480,
|
|
25
|
+
"spacing-640": 640,
|
|
26
|
+
"spacing-960": 960,
|
|
27
|
+
"spacing-1280": 1280,
|
|
28
|
+
"spacing-1360": 1360,
|
|
29
|
+
};
|
|
30
|
+
var oakSpaceBetweenTokens = {
|
|
31
|
+
"spacing-0": "spacing-0",
|
|
32
|
+
"spacing-2": "spacing-2",
|
|
33
|
+
"spacing-4": "spacing-4",
|
|
34
|
+
"spacing-8": "spacing-8",
|
|
35
|
+
"spacing-12": "spacing-12",
|
|
36
|
+
"spacing-16": "spacing-16",
|
|
37
|
+
"spacing-20": "spacing-20",
|
|
38
|
+
"spacing-24": "spacing-24",
|
|
39
|
+
"spacing-32": "spacing-32",
|
|
40
|
+
"spacing-40": "spacing-40",
|
|
41
|
+
"spacing-48": "spacing-48",
|
|
42
|
+
"spacing-56": "spacing-56",
|
|
43
|
+
"spacing-64": "spacing-64",
|
|
44
|
+
"spacing-72": "spacing-72",
|
|
45
|
+
"spacing-80": "spacing-80",
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export { oakAllSpacingTokens, oakSpaceBetweenTokens };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { __spreadArray, __read } from 'tslib';
|
|
2
|
+
|
|
3
|
+
var oakFontSizeTokens = {
|
|
4
|
+
"font-size-1": 12,
|
|
5
|
+
"font-size-2": 14,
|
|
6
|
+
"font-size-3": 16,
|
|
7
|
+
"font-size-4": 18,
|
|
8
|
+
"font-size-5": 20,
|
|
9
|
+
"font-size-6": 24,
|
|
10
|
+
"font-size-7": 32,
|
|
11
|
+
"font-size-8": 40,
|
|
12
|
+
"font-size-9": 48,
|
|
13
|
+
"font-size-10": 56,
|
|
14
|
+
};
|
|
15
|
+
var oakFontTokens = {
|
|
16
|
+
"heading-1": ["font-size-10", 64, 600, "0.0115rem"],
|
|
17
|
+
"heading-2": ["font-size-9", 56, 600, "0.0115rem"],
|
|
18
|
+
"heading-3": ["font-size-8", 48, 600, "0.0115rem"],
|
|
19
|
+
"heading-4": ["font-size-7", 40, 600, "0.0115rem"],
|
|
20
|
+
"heading-5": ["font-size-6", 32, 600, "0.0115rem"],
|
|
21
|
+
"heading-6": ["font-size-5", 24, 600, "0.0115rem"],
|
|
22
|
+
"heading-7": ["font-size-3", 20, 600, "0.0115rem"],
|
|
23
|
+
"heading-light-1": ["font-size-10", 64, 400, "0.0115rem"],
|
|
24
|
+
"heading-light-2": ["font-size-9", 56, 400, "0.0115rem"],
|
|
25
|
+
"heading-light-3": ["font-size-8", 48, 400, "0.0115rem"],
|
|
26
|
+
"heading-light-4": ["font-size-7", 40, 400, "0.0115rem"],
|
|
27
|
+
"heading-light-5": ["font-size-6", 32, 400, "0.0115rem"],
|
|
28
|
+
"heading-light-6": ["font-size-5", 24, 400, "0.0115rem"],
|
|
29
|
+
"heading-light-7": ["font-size-3", 20, 400, "0.0115rem"],
|
|
30
|
+
"body-1": ["font-size-4", 28, 300, "-0.005rem"],
|
|
31
|
+
"body-2": ["font-size-3", 24, 300, "-0.005rem"],
|
|
32
|
+
"body-3": ["font-size-2", 20, 300, "-0.005rem"],
|
|
33
|
+
"body-4": ["font-size-1", 16, 300, "-0.005rem"],
|
|
34
|
+
"body-1-bold": ["font-size-4", 28, 500, "-0.005rem"],
|
|
35
|
+
"body-2-bold": ["font-size-3", 24, 500, "-0.005rem"],
|
|
36
|
+
"body-3-bold": ["font-size-2", 20, 500, "-0.005rem"],
|
|
37
|
+
"list-item-1": ["font-size-4", 32, 300, "-0.005rem"],
|
|
38
|
+
"list-item-2": ["font-size-3", 24, 300, "-0.005rem"],
|
|
39
|
+
"code-1": ["font-size-6", 32, 300, "0.0115rem"],
|
|
40
|
+
"code-1-bold": ["font-size-6", 32, 700, "0.0115rem"],
|
|
41
|
+
"code-2": ["font-size-4", 24, 300, "0.0115rem"],
|
|
42
|
+
"code-2-bold": ["font-size-4", 24, 700, "0.0115rem"],
|
|
43
|
+
"code-3": ["font-size-3", 20, 300, "0.0115rem"],
|
|
44
|
+
"code-3-bold": ["font-size-3", 20, 700, "0.0115rem"],
|
|
45
|
+
};
|
|
46
|
+
var oakTextDecorationsConst = [
|
|
47
|
+
"underline",
|
|
48
|
+
"overline",
|
|
49
|
+
"line-through",
|
|
50
|
+
"none",
|
|
51
|
+
];
|
|
52
|
+
var oakWhiteSpacesConst = [
|
|
53
|
+
"normal",
|
|
54
|
+
"nowrap",
|
|
55
|
+
"wrap",
|
|
56
|
+
"pre",
|
|
57
|
+
"pre-wrap",
|
|
58
|
+
"pre-line",
|
|
59
|
+
"break-spaces",
|
|
60
|
+
];
|
|
61
|
+
var oakWordWrapsConst = [
|
|
62
|
+
"normal",
|
|
63
|
+
"break-word",
|
|
64
|
+
"initial",
|
|
65
|
+
"inherit",
|
|
66
|
+
];
|
|
67
|
+
var oakTextOverflowsConst = ["clip", "ellipsis"];
|
|
68
|
+
__spreadArray([], __read(oakTextDecorationsConst), false);
|
|
69
|
+
__spreadArray([], __read(oakWhiteSpacesConst), false);
|
|
70
|
+
__spreadArray([], __read(oakWordWrapsConst), false);
|
|
71
|
+
__spreadArray([], __read(oakTextOverflowsConst), false);
|
|
72
|
+
|
|
73
|
+
export { oakFontSizeTokens, oakFontTokens };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// For help with defining z-index values, refer to this article:
|
|
2
|
+
// https://www.smashingmagazine.com/2021/02/css-z-index-large-projects/#a-new-solution
|
|
3
|
+
var behind = -1;
|
|
4
|
+
var modalDialog = 300;
|
|
5
|
+
var banner = behind + modalDialog;
|
|
6
|
+
var oakZIndexTokens = {
|
|
7
|
+
behind: behind,
|
|
8
|
+
neutral: 0,
|
|
9
|
+
"in-front": 1,
|
|
10
|
+
"mobile-filters": 2,
|
|
11
|
+
"fixed-header": 100,
|
|
12
|
+
"modal-close-button": 150,
|
|
13
|
+
"modal-dialog": modalDialog,
|
|
14
|
+
banner: banner,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { oakZIndexTokens };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { parseColor } from '../helpers/parseColor.js';
|
|
4
|
+
import { parseBorder } from '../helpers/parseBorder.js';
|
|
5
|
+
import { parseBorderRadius } from '../helpers/parseBorderRadius.js';
|
|
6
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
7
|
+
|
|
8
|
+
var borderAll = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border", function (props) { return props.$ba; }, parseBorder));
|
|
9
|
+
var borderTop = css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-top", function (props) { return props.$bt; }, parseBorder));
|
|
10
|
+
var borderRight = css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-right", function (props) { return props.$br; }, parseBorder));
|
|
11
|
+
var borderBottom = css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-bottom", function (props) { return props.$bb; }, parseBorder));
|
|
12
|
+
var borderLeft = css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-left", function (props) { return props.$bl; }, parseBorder));
|
|
13
|
+
var borderHorizontal = css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("border-left", function (props) { return props.$bh; }, parseBorder), responsiveStyle("border-right", function (props) { return props.$bh; }, parseBorder));
|
|
14
|
+
var borderVertical = css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("border-top", function (props) { return props.$bv; }, parseBorder), responsiveStyle("border-bottom", function (props) { return props.$bv; }, parseBorder));
|
|
15
|
+
var borderColor = css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-color", function (props) { return props.$borderColor; }, parseColor));
|
|
16
|
+
var borderRadius = css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-radius", function (props) { return props.$borderRadius; }, parseBorderRadius));
|
|
17
|
+
var borderRadiusTopLeft = css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-top-left-radius", function (props) { return props.$btlr; }, parseBorderRadius));
|
|
18
|
+
var borderRadiusTopRight = css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-top-right-radius", function (props) { return props.$btrr; }, parseBorderRadius));
|
|
19
|
+
var borderRadiusBottomLeft = css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-bottom-left-radius", function (props) { return props.$bblr; }, parseBorderRadius));
|
|
20
|
+
var borderRadiusBottomRight = css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("border-bottom-right-radius", function (props) { return props.$bbrr; }, parseBorderRadius));
|
|
21
|
+
var borderRadiusTop = css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("border-top-left-radius", function (props) { return props.$btr; }, parseBorderRadius), responsiveStyle("border-top-right-radius", function (props) { return props.$btr; }, parseBorderRadius));
|
|
22
|
+
var borderRadiusBottom = css(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("border-bottom-left-radius", function (props) { return props.$bbr; }, parseBorderRadius), responsiveStyle("border-bottom-right-radius", function (props) { return props.$bbr; }, parseBorderRadius));
|
|
23
|
+
var borderStrokeStyle = css(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), responsiveStyle("border-style", function (props) { return props.$borderStyle; }));
|
|
24
|
+
var borderStyle = css(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), borderAll, borderTop, borderRight, borderBottom, borderLeft, borderHorizontal, borderVertical, borderColor, borderRadius, borderRadiusTopLeft, borderRadiusTopRight, borderRadiusBottomLeft, borderRadiusBottomRight, borderRadiusTop, borderRadiusBottom, borderStrokeStyle);
|
|
25
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
|
|
26
|
+
|
|
27
|
+
export { borderStyle };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { parseColorFilter } from '../helpers/parseColorFilter.js';
|
|
4
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
5
|
+
|
|
6
|
+
var colorFilterStyle = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("filter", function (props) { return props.$colorFilter; }, parseColorFilter));
|
|
7
|
+
var templateObject_1;
|
|
8
|
+
|
|
9
|
+
export { colorFilterStyle };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { parseColor } from '../helpers/parseColor.js';
|
|
4
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
5
|
+
|
|
6
|
+
var colorStyle = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("color", function (props) { return props.$color; }, parseColor), responsiveStyle("background", function (props) { return props.$background; }, parseColor));
|
|
7
|
+
var templateObject_1;
|
|
8
|
+
|
|
9
|
+
export { colorStyle };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
4
|
+
|
|
5
|
+
var displayStyle = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("display", function (props) { return props.$display; }));
|
|
6
|
+
var templateObject_1;
|
|
7
|
+
|
|
8
|
+
export { displayStyle };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { parseDropShadow } from '../helpers/parseDropShadow.js';
|
|
4
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
5
|
+
|
|
6
|
+
var dropShadowStyle = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("box-shadow", function (props) { return props.$dropShadow; }, parseDropShadow));
|
|
7
|
+
var templateObject_1;
|
|
8
|
+
|
|
9
|
+
export { dropShadowStyle };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
4
|
+
import { parseSpacing } from '../helpers/parseSpacing.js';
|
|
5
|
+
|
|
6
|
+
var flexStyle = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("display", function (props) { var _a; return (_a = props.$display) !== null && _a !== void 0 ? _a : "flex"; }), responsiveStyle("flex-direction", function (props) { return props.$flexDirection; }), responsiveStyle("flex-wrap", function (props) { return props.$flexWrap; }), responsiveStyle("align-items", function (props) { return props.$alignItems; }), responsiveStyle("align-content", function (props) { return props.$alignContent; }), responsiveStyle("justify-content", function (props) { return props.$justifyContent; }), responsiveStyle("align-self", function (props) { return props.$alignSelf; }), responsiveStyle("order", function (props) { return props.$order; }), responsiveStyle("flex-grow", function (props) { return props.$flexGrow; }), responsiveStyle("flex-shrink", function (props) { return props.$flexShrink; }), responsiveStyle("flex-basis", function (props) { return props.$flexBasis; }, parseSpacing), responsiveStyle("gap", function (props) { return props.$gap; }, parseSpacing), responsiveStyle("column-gap", function (props) { return props.$columnGap; }, parseSpacing), responsiveStyle("row-gap", function (props) { return props.$rowGap; }, parseSpacing));
|
|
7
|
+
var templateObject_1;
|
|
8
|
+
|
|
9
|
+
export { flexStyle };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
4
|
+
|
|
5
|
+
var listStyle = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("list-style", function (props) { return props.$listStyle; }));
|
|
6
|
+
var templateObject_1;
|
|
7
|
+
|
|
8
|
+
export { listStyle };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { parseOpacity } from '../helpers/parseOpacity.js';
|
|
4
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
5
|
+
|
|
6
|
+
var opacityStyle = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("opacity", function (props) { return props.$opacity; }, parseOpacity));
|
|
7
|
+
var templateObject_1;
|
|
8
|
+
|
|
9
|
+
export { opacityStyle };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
4
|
+
import { parseSpacing } from '../helpers/parseSpacing.js';
|
|
5
|
+
|
|
6
|
+
var positionStyle = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", " \n ", " \n ", " \n ", " \n ", " \n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", " \n ", " \n ", " \n ", " \n ", " \n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("position", function (props) { return props.$position; }), responsiveStyle("top", function (props) { return props.$top; }, parseSpacing), responsiveStyle("right", function (props) { return props.$right; }, parseSpacing), responsiveStyle("bottom", function (props) { return props.$bottom; }, parseSpacing), responsiveStyle("left", function (props) { return props.$left; }, parseSpacing), responsiveStyle("inset", function (props) { return props.$inset; }, parseSpacing), responsiveStyle("overflow", function (props) { return props.$overflow; }), responsiveStyle("overflow-x", function (props) { return props.$overflowX; }), responsiveStyle("overflow-y", function (props) { return props.$overflowY; }), responsiveStyle("object-fit", function (props) { return props.$objectFit; }), responsiveStyle("object-position", function (props) { return props.$objectPosition; }), responsiveStyle("pointer-events", function (props) { return props.$pointerEvents; }), responsiveStyle("visibility", function (props) { return props.$visibility; }), responsiveStyle("vertical-align", function (props) { return props.$verticalAlign; }));
|
|
7
|
+
var templateObject_1;
|
|
8
|
+
|
|
9
|
+
export { positionStyle };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { __makeTemplateObject, __spreadArray, __read } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { truthy } from '../helpers/truthy.js';
|
|
4
|
+
|
|
5
|
+
var breakpointsByName = {
|
|
6
|
+
small: 750,
|
|
7
|
+
large: 1280,
|
|
8
|
+
};
|
|
9
|
+
var breakpoints = Object.values(breakpointsByName).sort(function (a, b) {
|
|
10
|
+
return a > b ? 1 : -1;
|
|
11
|
+
});
|
|
12
|
+
/** Get the pixel width for a breakpoint by its name. */
|
|
13
|
+
var getBreakpoint = function (breakpointName) {
|
|
14
|
+
return breakpointsByName[breakpointName];
|
|
15
|
+
};
|
|
16
|
+
var mediaQueries = {
|
|
17
|
+
mobile: "(max-width: ".concat(getBreakpoint("small") - 1, "px)"),
|
|
18
|
+
tablet: "(min-width: ".concat(getBreakpoint("small"), "px) and (max-width: ").concat(getBreakpoint("large") - 1, "px)"),
|
|
19
|
+
desktop: "(min-width: ".concat(getBreakpoint("large"), "px)"),
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Get a CSS snippet of a media query condition which matches a specific device.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* `@media ${getMediaQuery("mobile")} { ... }`
|
|
26
|
+
*/
|
|
27
|
+
var getMediaQuery = function (device) {
|
|
28
|
+
return mediaQueries[device];
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Helper for a styled component's styles. Generates CSS to apply a value to a
|
|
32
|
+
* specific CSS property, including media queries if the value is a responsive
|
|
33
|
+
* array.
|
|
34
|
+
*/
|
|
35
|
+
var responsiveStyle = function (attr, getValues, parse) {
|
|
36
|
+
if (parse === void 0) { parse = function (x) { return x; }; }
|
|
37
|
+
return function (props) {
|
|
38
|
+
var attrCss = function (value) {
|
|
39
|
+
return typeof value === "undefined"
|
|
40
|
+
? undefined
|
|
41
|
+
: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ": ", ";\n "], ["\n ", ": ", ";\n "])), attr, parse(value));
|
|
42
|
+
};
|
|
43
|
+
var values = getValues(props);
|
|
44
|
+
if (typeof values === "undefined") {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (!Array.isArray(values)) {
|
|
48
|
+
return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), attrCss(values));
|
|
49
|
+
}
|
|
50
|
+
if (values.length === 0) {
|
|
51
|
+
return [];
|
|
52
|
+
}
|
|
53
|
+
return __spreadArray([
|
|
54
|
+
css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), attrCss(values[0]))
|
|
55
|
+
], __read(breakpoints
|
|
56
|
+
.slice(0, values.length)
|
|
57
|
+
.map(function (breakpoint, i) {
|
|
58
|
+
var value = values[i + 1]; // Values are shifted relative to breakpoints
|
|
59
|
+
if (value === undefined) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n @media (min-width: ", "px) {\n ", "\n }\n "], ["\n @media (min-width: ", "px) {\n ", "\n }\n "])), breakpoint, css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), attrCss(value)));
|
|
63
|
+
})
|
|
64
|
+
.filter(truthy)), false);
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
68
|
+
|
|
69
|
+
export { breakpoints, getBreakpoint, getMediaQuery, responsiveStyle };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
4
|
+
import { parseSpacing } from '../helpers/parseSpacing.js';
|
|
5
|
+
|
|
6
|
+
var scrollMarginTop = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("scroll-margin-top", function (props) { return props.$scrollMarginTop; }, parseSpacing));
|
|
7
|
+
var scrollMarginLeft = css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("scroll-margin-left", function (props) { return props.$scrollMarginLeft; }, parseSpacing));
|
|
8
|
+
var scrollSnapStyle = css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), scrollMarginTop, scrollMarginLeft);
|
|
9
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
10
|
+
|
|
11
|
+
export { scrollSnapStyle };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
4
|
+
import { parseSpacing } from '../helpers/parseSpacing.js';
|
|
5
|
+
|
|
6
|
+
var sizeStyle = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("width", function (props) { return props.$width; }, parseSpacing), responsiveStyle("min-width", function (props) { return props.$minWidth; }, parseSpacing), responsiveStyle("max-width", function (props) { return props.$maxWidth; }, parseSpacing), responsiveStyle("height", function (props) { return props.$height; }, parseSpacing), responsiveStyle("min-height", function (props) { return props.$minHeight; }, parseSpacing), responsiveStyle("max-height", function (props) { return props.$maxHeight; }, parseSpacing), responsiveStyle("aspect-ratio", function (props) { return props.$aspectRatio; }), responsiveStyle("box-sizing", function (props) { return props.$boxSizing; }));
|
|
7
|
+
var templateObject_1;
|
|
8
|
+
|
|
9
|
+
export { sizeStyle };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
4
|
+
import { parseSpacing } from '../helpers/parseSpacing.js';
|
|
5
|
+
|
|
6
|
+
var paddingAll = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding", function (props) { return props.$pa; }, parseSpacing));
|
|
7
|
+
var paddingHorizontal = css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("padding-left", function (props) { return props.$ph; }, parseSpacing), responsiveStyle("padding-right", function (props) { return props.$ph; }, parseSpacing));
|
|
8
|
+
var paddingVertical = css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("padding-top", function (props) { return props.$pv; }, parseSpacing), responsiveStyle("padding-bottom", function (props) { return props.$pv; }, parseSpacing));
|
|
9
|
+
var paddingLeft = css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding-left", function (props) { return props.$pl; }, parseSpacing));
|
|
10
|
+
var paddingRight = css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding-right", function (props) { return props.$pr; }, parseSpacing));
|
|
11
|
+
var paddingTop = css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding-top", function (props) { return props.$pt; }, parseSpacing));
|
|
12
|
+
var paddingBottom = css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("padding-bottom", function (props) { return props.$pb; }, parseSpacing));
|
|
13
|
+
var marginAll = css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("margin", function (props) { return props.$ma; }, parseSpacing));
|
|
14
|
+
var marginHorizontal = css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("margin-left", function (props) { return props.$mh; }, parseSpacing), responsiveStyle("margin-right", function (props) { return props.$mh; }, parseSpacing));
|
|
15
|
+
var marginVertical = css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("margin-top", function (props) { return props.$mv; }, parseSpacing), responsiveStyle("margin-bottom", function (props) { return props.$mv; }, parseSpacing));
|
|
16
|
+
var marginLeft = css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("margin-left", function (props) { return props.$ml; }, parseSpacing));
|
|
17
|
+
var marginRight = css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("margin-right", function (props) { return props.$mr; }, parseSpacing));
|
|
18
|
+
var marginTop = css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("margin-top", function (props) { return props.$mt; }, parseSpacing));
|
|
19
|
+
var marginBottom = css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("margin-bottom", function (props) { return props.$mb; }, parseSpacing));
|
|
20
|
+
var marginStyle = css(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), marginAll, marginHorizontal, marginVertical, marginLeft, marginRight, marginTop, marginBottom);
|
|
21
|
+
var paddingStyle = css(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), paddingAll, paddingHorizontal, paddingVertical, paddingLeft, paddingRight, paddingTop, paddingBottom);
|
|
22
|
+
var spacingStyle = css(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), paddingStyle, marginStyle);
|
|
23
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
|
|
24
|
+
|
|
25
|
+
export { marginStyle, paddingStyle, spacingStyle };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
4
|
+
|
|
5
|
+
var transformStyle = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), responsiveStyle("transform", function (props) { return props.$transform; }), responsiveStyle("transform-origin", function (props) { return props.$transformOrigin; }));
|
|
6
|
+
var templateObject_1;
|
|
7
|
+
|
|
8
|
+
export { transformStyle };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { parseTransitions } from '../helpers/parseTransitions.js';
|
|
4
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
5
|
+
|
|
6
|
+
var transitionStyle = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("transition", function (props) { return props.$transition; }, parseTransitions));
|
|
7
|
+
var templateObject_1;
|
|
8
|
+
|
|
9
|
+
export { transitionStyle };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { parseFontWeight, parseFontSize, parseLineHeight, parseLetterSpacing } from '../helpers/parseTypography.js';
|
|
4
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
5
|
+
|
|
6
|
+
var typographyStyle = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family:\n --var(google-font), Lexend, sans-serif; // FIXME: this should be a css variable ?\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"], ["\n font-family:\n --var(google-font), Lexend, sans-serif; // FIXME: this should be a css variable ?\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n"])), responsiveStyle("font-weight", function (props) { return props.$font; }, parseFontWeight), responsiveStyle("font-size", function (props) { return props.$font; }, parseFontSize), responsiveStyle("line-height", function (props) { return props.$font; }, parseLineHeight), responsiveStyle("letter-spacing", function (props) { return props.$font; }, parseLetterSpacing), responsiveStyle("text-align", function (props) { return props.$textAlign; }), responsiveStyle("text-decoration", function (props) { return props.$textDecoration; }), responsiveStyle("white-space", function (props) { return props.$whiteSpace; }), responsiveStyle("word-wrap", function (props) { return props.$wordWrap; }), responsiveStyle("text-overflow", function (props) { return props.$textOverflow; }), responsiveStyle("overflow", function (props) { return props.$overflow; }), responsiveStyle("text-wrap", function (props) { return props.$textWrap; }));
|
|
7
|
+
var templateObject_1;
|
|
8
|
+
|
|
9
|
+
export { typographyStyle };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { responsiveStyle } from './responsiveStyle.js';
|
|
4
|
+
import { parseZIndex } from '../helpers/parseZIndex.js';
|
|
5
|
+
|
|
6
|
+
var zIndexStyle = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), responsiveStyle("z-index", function (props) { return props.$zIndex; }, parseZIndex));
|
|
7
|
+
var templateObject_1;
|
|
8
|
+
|
|
9
|
+
export { zIndexStyle };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
var ButtonBorderBottom = function () { return (React.createElement("svg", { viewBox: "0 0 608 13", preserveAspectRatio: "none", xmlns: "http://www.w3.org/2000/svg", fill: "none" },
|
|
4
|
+
React.createElement("path", { d: "M608.142 0.86792V5.42188C601.598 5.91828 594.984 6.30677 588.404 6.50101C567.469 7.1485 546.51 7.61612 525.527 7.90389C523.002 7.90389 520.477 7.90389 517.952 7.90389C507.568 7.90389 497.112 7.60173 486.692 7.60173H317.514V6.8895C259.403 7.58015 201.256 8.18447 143.251 9.04778C136.992 9.04778 130.839 10.6881 124.545 11.3571C120.076 11.8486 115.563 12.1801 111.03 12.3499C104.238 12.6305 97.2672 12.9111 90.3678 12.8679H89.7632C84.642 12.8679 79.5208 11.724 74.3996 11.724C65.4731 11.724 56.6177 12.2636 47.62 12.5442H39.9382C30.087 12.5442 20.2003 12.8463 10.4558 12.3284C6.94877 12.1692 3.45845 11.8954 0 11.5082L0 0.86792H608.142Z", fill: "currentColor" }))); };
|
|
5
|
+
|
|
6
|
+
export { ButtonBorderBottom };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
var ButtonBorderLeft = function () { return (React.createElement("svg", { viewBox: "0 0 12 383", preserveAspectRatio: "none", xmlns: "http://www.w3.org/2000/svg", fill: "none" },
|
|
4
|
+
React.createElement("path", { d: "M11.9999 0.745605V382.868C10.1262 381.366 8.31313 378.46 6.62678 374.256C4.4417 368.142 3.54618 351.778 2.13125 339.807C1.8626 337.482 2.00588 334.21 1.77304 331.712C-0.215015 308.631 0.626776 286.24 1.25364 262.814C1.50047 244.757 1.41656 226.63 1.0029 208.644C0.841702 187.544 0.805881 166.444 0.447672 145.43C0.125284 126.828 0.77006 108.312 0.0894627 89.2789C-0.304567 78.6859 0.734239 66.8872 1.182 55.6914C1.46857 48.371 1.88051 41.2229 2.13125 33.9886C2.75812 16.0753 4.47752 5.91292 8.27454 3.58763C9.52827 2.81253 10.7462 1.86519 11.9999 0.745605Z", fill: "currentColor" }))); };
|
|
5
|
+
|
|
6
|
+
export { ButtonBorderLeft };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
var ButtonBorderRight = function () { return (React.createElement("svg", { preserveAspectRatio: "none", fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 7 381" },
|
|
4
|
+
React.createElement("path", { fill: "currentColor", d: "M5.95062 347.767C5.84838 355.359 5.51951 362.45 5.01823 367.872C4.51695 373.294 3.87318 376.723 3.19306 377.594C2.43071 378.792 1.66876 379.901 0.899662 380.831L0.946416 0.629639C1.65555 3.72393 3.98492 8.81233 4.517 14.8221C5.25211 23.0541 5.82473 32.9368 6.20066 43.8804C6.57133 54.8207 6.73441 66.5972 6.67982 78.4841C6.61613 92.4154 6.78382 106.273 6.76792 120.208C6.72772 141.198 6.63974 162.184 6.5299 182.723C6.37026 217.64 5.84139 253.158 6.04976 287.743C6.10718 308.293 6.40211 327.43 5.95062 347.767Z" }))); };
|
|
5
|
+
|
|
6
|
+
export { ButtonBorderRight };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
var ButtonBorderTop = function () { return (React.createElement("svg", { preserveAspectRatio: "none", fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 608 13" },
|
|
4
|
+
React.createElement("path", { d: "M608 12.9952H0V6.58964C9.4145 4.8402 19.066 4.00414 28.739 4.10013C43.8554 4.85537 59.1496 3.48474 74.3728 3.1211L90.2005 2.84138C98.559 2.61761 106.882 2.4218 115.098 2.44978C229.165 2.7295 343.232 3.34488 457.298 3.34488C477.43 3.34488 497.597 2.75747 517.764 2.14208C531.422 1.7225 545.08 1.30292 558.738 1.0232C566.777 0.85537 574.815 1.55467 582.818 1.86236C586.126 1.86236 589.433 2.25397 592.706 2.19803C597.889 2.00388 603.071 2.60235 607.964 3.96027", fill: "currentColor" }))); };
|
|
5
|
+
|
|
6
|
+
export { ButtonBorderTop };
|