@oaknational/oak-components 2.45.1 → 3.1.0
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/{types.d.ts → npm/cjs/types.d.ts} +2 -16
- 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
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
export { OakButtonWithDropdown } from './components/buttons/OakButtonWithDropdown/OakButtonWithDropdown.js';
|
|
2
|
+
export { OakCloseButton } from './components/buttons/OakCloseButton/OakCloseButton.js';
|
|
3
|
+
export { OakPrimaryButton } from './components/buttons/OakPrimaryButton/OakPrimaryButton.js';
|
|
4
|
+
export { OakPrimaryInvertedButton } from './components/buttons/OakPrimaryInvertedButton/OakPrimaryInvertedButton.js';
|
|
5
|
+
export { OakSecondaryButton } from './components/buttons/OakSecondaryButton/OakSecondaryButton.js';
|
|
6
|
+
export { OakSecondaryButtonWithDropdown } from './components/buttons/OakSecondaryButtonWithDropdown/OakSecondaryButtonWithDropdown.js';
|
|
7
|
+
export { OakSmallPrimaryButton } from './components/buttons/OakSmallPrimaryButton/OakSmallPrimaryButton.js';
|
|
8
|
+
export { OakSmallPrimaryInvertedButton } from './components/buttons/OakSmallPrimaryInvertedButton/OakSmallPrimaryInvertedButton.js';
|
|
9
|
+
export { OakSmallSecondaryButton } from './components/buttons/OakSmallSecondaryButton/OakSmallSecondaryButton.js';
|
|
10
|
+
export { OakSmallSecondaryButtonWithDropdown } from './components/buttons/OakSmallSecondaryButtonWithDropdown/OakSmallSecondaryButtonWithDropdown.js';
|
|
11
|
+
export { OakSmallSecondaryToggleButton } from './components/buttons/OakSmallSecondaryToggleButton/OakSmallSecondaryToggleButton.js';
|
|
12
|
+
export { OakSmallTertiaryInvertedButton } from './components/buttons/OakSmallTertiaryInvertedButton/OakSmallTertiaryInvertedButton.js';
|
|
13
|
+
export { OakTertiaryButton } from './components/buttons/OakTertiaryButton/OakTertiaryButton.js';
|
|
14
|
+
export { OakTertiaryInvertedButton } from './components/buttons/OakTertiaryInvertedButton/OakTertiaryInvertedButton.js';
|
|
15
|
+
export { OakLeftAlignedButton } from './components/buttons/OakLeftAlignedButton/OakLeftAlignedButton.js';
|
|
16
|
+
export { OakCookieBanner } from './components/cookies/OakCookieBanner/OakCookieBanner.js';
|
|
17
|
+
export { OakCookieConsent } from './components/cookies/OakCookieConsent/OakCookieConsent.js';
|
|
18
|
+
export { OakCookieConsentContext, OakCookieConsentProvider, getDefaultContextState, useCookieConsent } from './components/cookies/OakCookieConsentProvider/OakCookieConsentProvider.js';
|
|
19
|
+
export { OakCookieSettingsModal } from './components/cookies/OakCookieSettingsModal/OakCookieSettingsModal.js';
|
|
20
|
+
export { OakFieldset } from './components/form-elements/OakFieldset/OakFieldset.js';
|
|
21
|
+
export { OakForm } from './components/form-elements/OakForm/OakForm.js';
|
|
22
|
+
export { OakLabel } from './components/form-elements/OakLabel/OakLabel.js';
|
|
23
|
+
export { OakTextArea } from './components/form-elements/OakTextArea/OakTextArea.js';
|
|
24
|
+
export { OakButtonAsRadioGroup } from './components/form-elements/OakButtonAsRadioGroup/OakButtonAsRadioGroup.js';
|
|
25
|
+
export { OakCheckBox } from './components/form-elements/OakCheckBox/OakCheckBox.js';
|
|
26
|
+
export { OakFieldError } from './components/form-elements/OakFieldError/OakFieldError.js';
|
|
27
|
+
export { OakFormInput } from './components/form-elements/OakFormInput/OakFormInput.js';
|
|
28
|
+
export { OakJauntyAngleLabel } from './components/form-elements/OakJauntyAngleLabel/OakJauntyAngleLabel.js';
|
|
29
|
+
export { OakMultilineText, useDevice } from './components/form-elements/OakMultilineText/OakMultilineText.js';
|
|
30
|
+
export { OakRadioButton } from './components/form-elements/OakRadioButton/OakRadioButton.js';
|
|
31
|
+
export { OakRadioGroup, RadioContext } from './components/form-elements/OakRadioGroup/OakRadioGroup.js';
|
|
32
|
+
export { OakSecondaryButtonAsRadio } from './components/form-elements/OakSecondaryButtonAsRadio/OakSecondaryButtonAsRadio.js';
|
|
33
|
+
export { IconDown, IconUp, OakSelect } from './components/form-elements/OakSelect/OakSelect.js';
|
|
34
|
+
export { OakOption } from './components/form-elements/OakSelect/OakOption.js';
|
|
35
|
+
export { OakOptGroup } from './components/form-elements/OakSelect/OakOptGroup.js';
|
|
36
|
+
export { OakTextInput } from './components/form-elements/OakTextInput/OakTextInput.js';
|
|
37
|
+
export { OakRadioAsButton, colorSchemes } from './components/form-elements/OakRadioAsButton/OakRadioAsButton.js';
|
|
38
|
+
export { OakSearchFilterCheckBox } from './components/form-elements/OakSearchFilterCheckBox/OakSearchFilterCheckBox.js';
|
|
39
|
+
export { OakCaptionCard } from './components/house-cat/OakCaptionCard/OakCaptionCard.js';
|
|
40
|
+
export { OakCaptionSearch } from './components/house-cat/OakCaptionSearch/OakCaptionSearch.js';
|
|
41
|
+
export { OakAspectRatio } from './components/images-and-icons/OakAspectRatio/OakAspectRatio.js';
|
|
42
|
+
export { OakIcon, generateOakIconURL, isValidIconName, oakIconNames } from './components/images-and-icons/OakIcon/OakIcon.js';
|
|
43
|
+
export { OakImage, oakPlaceholder, placeholderStyles } from './components/images-and-icons/OakImage/OakImage.js';
|
|
44
|
+
export { OakSvg } from './components/images-and-icons/OakSvg/OakSvg.js';
|
|
45
|
+
export { OakRoundIcon } from './components/images-and-icons/OakRoundIcon/OakRoundIcon.js';
|
|
46
|
+
export { OakFlex, oakFlexCss } from './components/layout-and-structure/OakFlex/OakFlex.js';
|
|
47
|
+
export { OakBox, oakBoxCss } from './components/layout-and-structure/OakBox/OakBox.js';
|
|
48
|
+
export { OakGrid } from './components/layout-and-structure/OakGrid/OakGrid.js';
|
|
49
|
+
export { OakGridArea } from './components/layout-and-structure/OakGridArea/OakGridArea.js';
|
|
50
|
+
export { OakMaxWidth } from './components/layout-and-structure/OakMaxWidth/OakMaxWidth.js';
|
|
51
|
+
export { OakAccordion } from './components/layout-and-structure/OakAccordion/OakAccordion.js';
|
|
52
|
+
export { OakBasicAccordion } from './components/layout-and-structure/OakBasicAccordion/OakBasicAccordion.js';
|
|
53
|
+
export { OakCollapsibleContent } from './components/layout-and-structure/OakCollapsibleContent/OakCollapsibleContent.js';
|
|
54
|
+
export { OakKbd } from './components/messaging-and-feedback/OakKbd/OakKbd.js';
|
|
55
|
+
export { OakScreenReader } from './components/messaging-and-feedback/OakScreenReader/OakScreenReader.js';
|
|
56
|
+
export { OakInformativeModal, OakInformativeModalBorderColor } from './components/messaging-and-feedback/OakInformativeModal/OakInformativeModal.js';
|
|
57
|
+
export { OakInformativeModalBody } from './components/messaging-and-feedback/OakInformativeModal/OakInformativeModalBody.js';
|
|
58
|
+
export { OakInformativeModalFooter } from './components/messaging-and-feedback/OakInformativeModal/OakInformativeModalFooter.js';
|
|
59
|
+
export { OakInlineBanner, bannerTypes, bannerVariants } from './components/messaging-and-feedback/OakInlineBanner/OakInlineBanner.js';
|
|
60
|
+
export { OakLoadingSpinner } from './components/messaging-and-feedback/OakLoadingSpinner/OakLoadingSpinner.js';
|
|
61
|
+
export { OakModalCenter } from './components/messaging-and-feedback/OakModalCenter/OakModalCenter.js';
|
|
62
|
+
export { OakModalCenterBody } from './components/messaging-and-feedback/OakModalCenter/OakModalCenterBody.js';
|
|
63
|
+
export { OakTagFunctional } from './components/messaging-and-feedback/OakTagFunctional/OakTagFunctional.js';
|
|
64
|
+
export { OakToast } from './components/messaging-and-feedback/OakToast/OakToast.js';
|
|
65
|
+
export { OakTooltip } from './components/messaging-and-feedback/OakTooltip/OakTooltip.js';
|
|
66
|
+
export { OakFocusIndicator } from './components/messaging-and-feedback/OakFocusIndicator/OakFocusIndicator.js';
|
|
67
|
+
export { OakHandDrawnFocusUnderline } from './components/messaging-and-feedback/OakHandDrawnFocusUnderline/OakHandDrawnFocusUnderline.js';
|
|
68
|
+
export { OakAnchorTarget } from './components/navigation/OakAnchorTarget/OakAnchorTarget.js';
|
|
69
|
+
export { OakHoverLink } from './components/navigation/OakHoverLink/OakHoverLink.js';
|
|
70
|
+
export { OakLink } from './components/navigation/OakLink/OakLink.js';
|
|
71
|
+
export { OakPagination } from './components/navigation/OakPagination/OakPagination.js';
|
|
72
|
+
export { OakPrimaryNav } from './components/navigation/OakPrimaryNav/OakPrimaryNav.js';
|
|
73
|
+
export { OakPrimaryNavItem } from './components/navigation/OakPrimaryNavItem/OakPrimaryNavItem.js';
|
|
74
|
+
export { OakSecondaryLink } from './components/navigation/OakSecondaryLink/OakSecondaryLink.js';
|
|
75
|
+
export { OakTabs } from './components/navigation/OakTabs/OakTabs.js';
|
|
76
|
+
export { OakCard } from './components/navigation/OakCard/OakCard.js';
|
|
77
|
+
export { OakBreadcrumbs } from './components/navigation/OakBreadcrumbs/OakBreadcrumbs.js';
|
|
78
|
+
export { OakDownloadsAccordion } from './components/owa/teacher/OakDownloadsAccordion/OakDownloadsAccordion.js';
|
|
79
|
+
export { OakInlineRegistrationBanner } from './components/owa/teacher/OakInlineRegistrationBanner/OakInlineRegistrationBanner.js';
|
|
80
|
+
export { OakTeacherNotesInline } from './components/owa/teacher/OakTeacherNotesInline/OakTeacherNotesInline.js';
|
|
81
|
+
export { OakTeacherNotesModal } from './components/owa/teacher/OakTeacherNotesModal/OakTeacherNotesModal.js';
|
|
82
|
+
export { OakTertiaryOLNav } from './components/owa/teacher/OakTertiaryOLNav/OakTertiaryOLNav.js';
|
|
83
|
+
export { OakPupilJourneyContentGuidance, removedGuidanceDuplicates } from './components/owa/pupil/browse/OakPupilJourneyContentGuidance/OakPupilJourneyContentGuidance.js';
|
|
84
|
+
export { OakPupilJourneyHeader } from './components/owa/pupil/browse/OakPupilJourneyHeader/OakPupilJourneyHeader.js';
|
|
85
|
+
export { OakPupilJourneyLayout, getBackgroundUrlForSection } from './components/owa/pupil/browse/OakPupilJourneyLayout/OakPupilJourneyLayout.js';
|
|
86
|
+
export { OakPupilJourneyList } from './components/owa/pupil/browse/OakPupilJourneyList/OakPupilJourneyList.js';
|
|
87
|
+
export { OakPupilJourneyListCounter } from './components/owa/pupil/browse/OakPupilJourneyListCounter/OakPupilJourneyListCounter.js';
|
|
88
|
+
export { OakPupilJourneyListItem } from './components/owa/pupil/browse/OakPupilJourneyListItem/OakPupilJourneyListItem.js';
|
|
89
|
+
export { OakPupilJourneyListItemSubheading } from './components/owa/pupil/browse/OakPupilJourneyListItemSubheading/OakPupilJourneyListItemSubheading.js';
|
|
90
|
+
export { OakPupilJourneyOptionalityButton } from './components/owa/pupil/browse/OakPupilJourneyOptionalityButton/OakPupilJourneyOptionalityButton.js';
|
|
91
|
+
export { OakPupilJourneyOptionalityItem } from './components/owa/pupil/browse/OakPupilJourneyOptionalityItem/OakPupilJourneyOptionalityItem.js';
|
|
92
|
+
export { OakPupilJourneyProgrammeOptions } from './components/owa/pupil/browse/OakPupilJourneyProgrammeOptions/OakPupilJourneyProgrammeOptions.js';
|
|
93
|
+
export { OakPupilJourneyUnitsFilter } from './components/owa/pupil/browse/OakPupilJourneyUnitsFilter/OakPupilJourneyUnitsFilter.js';
|
|
94
|
+
export { OakPupilJourneyYearButton } from './components/owa/pupil/browse/OakPupilJourneyYearButton/OakPupilJourneyYearButton.js';
|
|
95
|
+
export { OakLessonBottomNav } from './components/owa/pupil/lesson/OakLessonBottomNav/OakLessonBottomNav.js';
|
|
96
|
+
export { OakLessonLayout, lessonSectionNames } from './components/owa/pupil/lesson/OakLessonLayout/OakLessonLayout.js';
|
|
97
|
+
export { OakLessonNavItem } from './components/owa/pupil/lesson/OakLessonNavItem/OakLessonNavItem.js';
|
|
98
|
+
export { OakLessonReviewIntroVideo } from './components/owa/pupil/lesson/OakLessonReviewIntroVideo/OakPupilLessonReviewIntroVideo.js';
|
|
99
|
+
export { OakLessonReviewItem } from './components/owa/pupil/lesson/OakLessonReviewItem/OakPupilLessonReviewItem.js';
|
|
100
|
+
export { OakLessonReviewQuiz, ReviewItemContainer, ReviewItemTitleSection } from './components/owa/pupil/lesson/OakLessonReviewQuiz/OakPupilLessonReviewQuiz.js';
|
|
101
|
+
export { OakLessonTopNav } from './components/owa/pupil/lesson/OakLessonTopNav/OakLessonTopNav.js';
|
|
102
|
+
export { OakLessonVideoTranscript } from './components/owa/pupil/lesson/OakLessonVideoTranscript/OakLessonVideoTranscript.js';
|
|
103
|
+
export { OakHintButton } from './components/owa/pupil/quiz/OakHintButton/OakHintButton.js';
|
|
104
|
+
export { OakQuizCheckBox } from './components/owa/pupil/quiz/OakQuizCheckBox/OakQuizCheckBox.js';
|
|
105
|
+
export { OakQuizCounter } from './components/owa/pupil/quiz/OakQuizCounter/OakQuizCounter.js';
|
|
106
|
+
export { OakQuizFeedback } from './components/owa/pupil/quiz/OakQuizFeedback/OakQuizFeedback.js';
|
|
107
|
+
export { OakQuizHint } from './components/owa/pupil/quiz/OakQuizHint/OakQuizHint.js';
|
|
108
|
+
export { OakQuizMatch, OakQuizMatchItemId, announcements } from './components/owa/pupil/quiz/OakQuizMatch/OakQuizMatch.js';
|
|
109
|
+
export { OakQuizOrder, OakQuizOrderitemId } from './components/owa/pupil/quiz/OakQuizOrder/OakQuizOrder.js';
|
|
110
|
+
export { OakQuizPrintableHeader } from './components/owa/pupil/quiz/OakQuizPrintableHeader/OakQuizPrintableHeader.js';
|
|
111
|
+
export { OakQuizPrintableSubHeader } from './components/owa/pupil/quiz/OakQuizPrintableSubHeader/OakQuizPrintableSubHeader.js';
|
|
112
|
+
export { OakQuizRadioButton } from './components/owa/pupil/quiz/OakQuizRadioButton/OakQuizRadioButton.js';
|
|
113
|
+
export { OakQuizResultItem } from './components/owa/pupil/quiz/OakQuizResultItem/OakQuizResultItem.js';
|
|
114
|
+
export { OakQuizTextInput } from './components/owa/pupil/quiz/OakQuizTextInput/OakQuizTextInput.js';
|
|
115
|
+
export { OakUnitListItem } from './components/owa/pupil/OakUnitListItem/OakUnitListItem.js';
|
|
116
|
+
export { OakUnitListOptionalityItem } from './components/owa/pupil/OakUnitListOptionalityItem/OakUnitListOptionalityItem.js';
|
|
117
|
+
export { OakBackLink } from './components/owa/OakBackLink/OakBackLink.js';
|
|
118
|
+
export { OakBulletList } from './components/owa/OakBulletList/OakBulletList.js';
|
|
119
|
+
export { OakCardWithHandDrawnBorder } from './components/owa/OakCardWithHandDrawnBorder/OakCardWithHandDrawnBorder.js';
|
|
120
|
+
export { OakCopyLinkButton } from './components/owa/OakCopyLinkButton/OakCopyLinkButton.js';
|
|
121
|
+
export { OakDownloadCard } from './components/owa/OakDownloadCard/OakDownloadCard.js';
|
|
122
|
+
export { OakDragAndDropInstructions } from './components/owa/OakDragAndDropInstructions/OakDragAndDropInstructions.js';
|
|
123
|
+
export { OakDraggable } from './components/owa/OakDraggable/OakDraggable.js';
|
|
124
|
+
export { OakDraggableFeedback } from './components/owa/OakDraggableFeedback/OakDraggableFeedback.js';
|
|
125
|
+
export { OakDroppable } from './components/owa/OakDroppable/OakDroppable.js';
|
|
126
|
+
export { OakFilterDrawer } from './components/owa/OakFilterDrawer/OakFilterDrawer.js';
|
|
127
|
+
export { OakFormInputWithLabels } from './components/owa/OakFormInputWithLabels/OakFormInputWithLabels.js';
|
|
128
|
+
export { OakHandDrawnCard } from './components/owa/OakHandDrawnCard/OakHandDrawnCard.js';
|
|
129
|
+
export { OakHandDrawnCardWithIcon } from './components/owa/OakHandDrawnCardWithIcon/OakHandDrawnCardWithIcon.js';
|
|
130
|
+
export { OakHandDrawnHR } from './components/owa/OakHandDrawnHR/OakHandDrawnHR.js';
|
|
131
|
+
export { OakInfoButton } from './components/owa/OakInfoButton/OakInfoButton.js';
|
|
132
|
+
export { OakCardHeader, OakLessonInfoCard, OakStaticMessageCard } from './components/owa/OakLessonInfoCard/OakLessonInfoCard.js';
|
|
133
|
+
export { OakLinkCard } from './components/owa/OakLinkCard/OakLinkCard.js';
|
|
134
|
+
export { OakMediaClipListAccordion } from './components/owa/OakMediaClipListAccordion/OakMediaClipListAccordion.js';
|
|
135
|
+
export { OakOutlineAccordion } from './components/owa/OakOutlineAccordion/OakOutlineAccordion.js';
|
|
136
|
+
export { OakPromoTag } from './components/owa/OakPromoTag/OakPromoTag.js';
|
|
137
|
+
export { OakRadioTile, isTileItem } from './components/owa/OakRadioTile/OakRadioTile.js';
|
|
138
|
+
export { OakSaveCount } from './components/owa/OakSaveCount/OakSaveCount.js';
|
|
139
|
+
export { OakScaleImageButton } from './components/owa/OakScaleImageButton/OakScaleImageButton.js';
|
|
140
|
+
export { OakSignLanguageButton } from './components/owa/OakSignLanguageButton/OakSignLanguageButton.js';
|
|
141
|
+
export { OakTimer, formatTimeCode } from './components/owa/OakTimer/OakTimer.js';
|
|
142
|
+
export { OakDownloadsJourneyChildSubjectTierSelector } from './components/owa/OakDownloadsJourneyChildSubjectTierSelector/OakDownloadsJourneyChildSubjectTierSelector.js';
|
|
143
|
+
export { OakCodeRenderer } from './components/owa/OakCodeRenderer/OakCodeRenderer.js';
|
|
144
|
+
export { OakHeaderHero } from './components/owa/OakHeaderHero/OakHeaderHero.js';
|
|
145
|
+
export { OakHomepageTabButton } from './components/owa/OakHomepageTabButton/OakHomepageTabButton.js';
|
|
146
|
+
export { OakInfo } from './components/owa/OakInfo/OakInfo.js';
|
|
147
|
+
export { OakListItem } from './components/owa/OakListItem/OakListItem.js';
|
|
148
|
+
export { OakMediaClip, StyledMediaClipImage } from './components/owa/OakMediaClip/OakMediaClip.js';
|
|
149
|
+
export { OakMediaClipList } from './components/owa/OakMediaClipList/OakMediaClipList.js';
|
|
150
|
+
export { OakMediaClipStackListItem } from './components/owa/OakMediaClipStackListItem/OakMediaClipStackListItem.js';
|
|
151
|
+
export { OakSideMenuNav } from './components/owa/OakSideMenuNav/OakSideMenuNav.js';
|
|
152
|
+
export { OakSideMenuNavLink } from './components/owa/OakSideMenuNavLink/OakSideMenuNavLink.js';
|
|
153
|
+
export { OakSubjectIcon } from './components/owa/OakSubjectIcon/OakSubjectIcon.js';
|
|
154
|
+
export { OakSubjectIconButton } from './components/owa/OakSubjectIconButton/OakSubjectIconButton.js';
|
|
155
|
+
export { OakVideoTranscript } from './components/owa/OakVideoTranscript/OakVideoTranscript.js';
|
|
156
|
+
export { OakCloudinaryConfigProvider, OakCloudinaryImage } from './components/owa/OakCloudinaryImage/OakCloudinaryImage.js';
|
|
157
|
+
export { OakCarousel } from './components/presentational/OakCarousel/OakCarousel.js';
|
|
158
|
+
export { OakQuote } from './components/presentational/OakQuote/OakQuote.js';
|
|
159
|
+
export { HeadingTagComponent, OakHeading, oakHeadingTags } from './components/typography/OakHeading/OakHeading.js';
|
|
160
|
+
export { OakLI, oakLIDefaults } from './components/typography/OakLI/OakLI.js';
|
|
161
|
+
export { OakOL } from './components/typography/OakOL/OakOL.js';
|
|
162
|
+
export { OakP } from './components/typography/OakP/OakP.js';
|
|
163
|
+
export { OakSpan } from './components/typography/OakSpan/OakSpan.js';
|
|
164
|
+
export { OakTypography } from './components/typography/OakTypography/OakTypography.js';
|
|
165
|
+
export { OakUL } from './components/typography/OakUL/OakUL.js';
|
|
166
|
+
export { UnstyledChevronAccordion } from './components/unstyled/UnstyledChevronAccordion/UnstyledChevronAccordion.js';
|
|
167
|
+
export { OakGlobalStyle } from './components/OakGlobalStyle/OakGlobalStyle.js';
|
|
168
|
+
export { OakThemeProvider } from './components/OakThemeProvider/OakThemeProvider.js';
|
|
169
|
+
export { oakColorTokens, oakUiRoleTokens } from './styles/theme/color.js';
|
|
170
|
+
export { oakAllSpacingTokens, oakSpaceBetweenTokens } from './styles/theme/spacing.js';
|
|
171
|
+
export { oakDropShadowTokens } from './styles/theme/dropShadow.js';
|
|
172
|
+
export { oakOpacityTokens } from './styles/theme/opacity.js';
|
|
173
|
+
export { oakTransitionTokens } from './styles/theme/transitions.js';
|
|
174
|
+
export { oakBorderRadiusTokens, oakBorderWidthTokens } from './styles/theme/borders.js';
|
|
175
|
+
export { oakFontSizeTokens, oakFontTokens } from './styles/theme/typography.js';
|
|
176
|
+
export { oakZIndexTokens } from './styles/theme/zIndex.js';
|
|
177
|
+
export { oakDefaultTheme } from './styles/theme/default.theme.js';
|
|
178
|
+
export { oakDarkTheme } from './styles/theme/dark.theme.js';
|
|
179
|
+
export { parseBorder } from './styles/helpers/parseBorder.js';
|
|
180
|
+
export { parseColor } from './styles/helpers/parseColor.js';
|
|
181
|
+
export { parseColorFilter } from './styles/helpers/parseColorFilter.js';
|
|
182
|
+
export { parseDropShadow } from './styles/helpers/parseDropShadow.js';
|
|
183
|
+
export { parseOpacity } from './styles/helpers/parseOpacity.js';
|
|
184
|
+
export { parseTransitions } from './styles/helpers/parseTransitions.js';
|
|
185
|
+
export { parseSpacing } from './styles/helpers/parseSpacing.js';
|
|
186
|
+
export { parseFontSize, parseFontWeight, parseLetterSpacing, parseLineHeight } from './styles/helpers/parseTypography.js';
|
|
187
|
+
export { parseBorderRadius } from './styles/helpers/parseBorderRadius.js';
|
|
188
|
+
export { parseZIndex } from './styles/helpers/parseZIndex.js';
|
|
189
|
+
export { getBreakpoint, getMediaQuery, responsiveStyle } from './styles/utils/responsiveStyle.js';
|
|
190
|
+
export { installMockIntersectionObserver } from './test-helpers/mockIntersectionObserver.js';
|
|
191
|
+
export { installMockResizeObserver } from './test-helpers/mockResizeObserver.js';
|
|
192
|
+
export { rgbToHex } from './test-helpers/colorConversion.js';
|
|
193
|
+
export { useMediaQuery } from './hooks/useMediaQuery.js';
|
|
194
|
+
export { useMounted } from './hooks/useMounted.js';
|
|
195
|
+
export { useIsScrolled } from './hooks/useIsScrolled.js';
|
|
196
|
+
export { useBreakpoint } from './hooks/useBreakpoint.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
import { parseColor } from '../helpers/parseColor.js';
|
|
4
|
+
import '../theme/color.js';
|
|
5
|
+
import '../theme/typography.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* This is our global stylesheet. It's for resets in addition to reset.styles.ts
|
|
9
|
+
* which is taken from a publically available reset. We want to minimise global
|
|
10
|
+
* styles where possible so if you add any styles here please comment with what
|
|
11
|
+
* they are doing and why they belong here (rather than in component specific
|
|
12
|
+
* styles)
|
|
13
|
+
*/
|
|
14
|
+
var oakGlobalCss = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n html,\n body {\n padding: 0;\n margin: 0;\n font-family: __Lexend_866216, __Lexend_Fallback_866216, Lexend, sans-serif;\n font-weight: 300;\n line-height: 1.4;\n }\n\n /* stylelint-disable */\n body,\n #__next {\n /* stylelint-enable */\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n color: ", ";\n }\n\n a {\n color: inherit;\n text-decoration: none;\n font-family: inherit;\n\n /*\n * Remove grey background on tap on ios\n */\n -webkit-tap-highlight-color: transparent;\n }\n\n button {\n /*\n * some browsers have a small margin by default\n * @see https://github.com/oaknational/Oak-Web-Application/issues/709\n */\n margin: 0;\n\n /*\n * Remove grey background on tap on ios\n */\n -webkit-tap-highlight-color: transparent;\n }\n\n /*\n * Inline styling for mathjax equations\n */\n mjx-container {\n display: inline-grid !important;\n margin: 0 !important;\n }\n"], ["\n html,\n body {\n padding: 0;\n margin: 0;\n font-family: __Lexend_866216, __Lexend_Fallback_866216, Lexend, sans-serif;\n font-weight: 300;\n line-height: 1.4;\n }\n\n /* stylelint-disable */\n body,\n #__next {\n /* stylelint-enable */\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n color: ", ";\n }\n\n a {\n color: inherit;\n text-decoration: none;\n font-family: inherit;\n\n /*\n * Remove grey background on tap on ios\n */\n -webkit-tap-highlight-color: transparent;\n }\n\n button {\n /*\n * some browsers have a small margin by default\n * @see https://github.com/oaknational/Oak-Web-Application/issues/709\n */\n margin: 0;\n\n /*\n * Remove grey background on tap on ios\n */\n -webkit-tap-highlight-color: transparent;\n }\n\n /*\n * Inline styling for mathjax equations\n */\n mjx-container {\n display: inline-grid !important;\n margin: 0 !important;\n }\n"])), parseColor("text-primary"));
|
|
15
|
+
var templateObject_1;
|
|
16
|
+
|
|
17
|
+
export { oakGlobalCss };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __makeTemplateObject } from 'tslib';
|
|
2
|
+
import { css } from 'styled-components';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* From https://piccalil.li/blog/a-modern-css-reset/
|
|
6
|
+
* Do not edit this file. If you want to add global styles, use oak.styles.ts
|
|
7
|
+
*/
|
|
8
|
+
var resetGlobalCss = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* Box sizing rules */\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n /* Remove default margin */\n body,\n h1,\n h2,\n h3,\n h4,\n h5,\n p,\n figure,\n blockquote,\n dl,\n dd {\n margin: 0;\n }\n\n /* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */\n ul[role=\"list\"],\n ol[role=\"list\"] {\n list-style: none;\n padding-left: 0;\n margin-top: 0;\n margin-bottom: 0;\n }\n\n /* Set core root defaults */\n html,\n html:focus-within {\n scroll-behavior: smooth;\n }\n\n /* Set core body defaults */\n body {\n min-height: 100vh;\n text-rendering: optimizespeed;\n line-height: 1.5;\n }\n\n /* A elements that don't have a class get default styles */\n a:not([class]) {\n text-decoration-skip-ink: auto;\n }\n\n /* Make images easier to work with */\n img,\n picture {\n max-width: 100%;\n display: block;\n }\n\n /* Inherit fonts for inputs and buttons */\n input,\n button,\n textarea,\n select {\n font: inherit;\n }\n\n cite {\n font-style: inherit;\n }\n\n /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */\n @media (prefers-reduced-motion: reduce) {\n html:focus-within {\n scroll-behavior: auto;\n }\n\n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }\n"], ["\n /* Box sizing rules */\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n /* Remove default margin */\n body,\n h1,\n h2,\n h3,\n h4,\n h5,\n p,\n figure,\n blockquote,\n dl,\n dd {\n margin: 0;\n }\n\n /* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */\n ul[role=\"list\"],\n ol[role=\"list\"] {\n list-style: none;\n padding-left: 0;\n margin-top: 0;\n margin-bottom: 0;\n }\n\n /* Set core root defaults */\n html,\n html:focus-within {\n scroll-behavior: smooth;\n }\n\n /* Set core body defaults */\n body {\n min-height: 100vh;\n text-rendering: optimizespeed;\n line-height: 1.5;\n }\n\n /* A elements that don't have a class get default styles */\n a:not([class]) {\n text-decoration-skip-ink: auto;\n }\n\n /* Make images easier to work with */\n img,\n picture {\n max-width: 100%;\n display: block;\n }\n\n /* Inherit fonts for inputs and buttons */\n input,\n button,\n textarea,\n select {\n font: inherit;\n }\n\n cite {\n font-style: inherit;\n }\n\n /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */\n @media (prefers-reduced-motion: reduce) {\n html:focus-within {\n scroll-behavior: auto;\n }\n\n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }\n"])));
|
|
9
|
+
var templateObject_1;
|
|
10
|
+
|
|
11
|
+
export { resetGlobalCss };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { oakFontTokens, oakFontSizeTokens } from '../theme/typography.js';
|
|
2
|
+
|
|
3
|
+
/** Returns the font size in pixels for a given font size token */
|
|
4
|
+
function getFontSize(token) {
|
|
5
|
+
var fontSizeToken = oakFontTokens[token][0];
|
|
6
|
+
return oakFontSizeTokens[fontSizeToken];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { getFontSize };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { getFontSize } from './getFontSize.js';
|
|
2
|
+
|
|
3
|
+
var MAX_PADDING = 12;
|
|
4
|
+
/** Returns the internal padding for a textarea component based on the height and font size. */
|
|
5
|
+
function getInternalPadding(height) {
|
|
6
|
+
if (typeof height !== "string") {
|
|
7
|
+
return "".concat(MAX_PADDING, "px");
|
|
8
|
+
}
|
|
9
|
+
var heightNumber = parseInt(height.replace("spacing-", ""));
|
|
10
|
+
var textLineHeight = Math.ceil(getFontSize("body-1") * 1.4);
|
|
11
|
+
var padding = Math.max(Math.floor((heightNumber - textLineHeight) / 2) - 1, 0);
|
|
12
|
+
return "".concat(Math.min(padding, MAX_PADDING), "px");
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { MAX_PADDING, getInternalPadding };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { oakBorderWidthTokens } from '../theme/borders.js';
|
|
2
|
+
import pxToRem from './pxToRem.js';
|
|
3
|
+
|
|
4
|
+
var parseBorder = function (value) {
|
|
5
|
+
if (value === undefined || value === null) {
|
|
6
|
+
return undefined;
|
|
7
|
+
}
|
|
8
|
+
if (value in oakBorderWidthTokens) {
|
|
9
|
+
return "".concat(pxToRem(oakBorderWidthTokens[value]), "rem solid");
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { parseBorder };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import pxToRem from './pxToRem.js';
|
|
2
|
+
import { oakBorderRadiusTokens } from '../theme/borders.js';
|
|
3
|
+
|
|
4
|
+
var parseBorderRadius = function (value) {
|
|
5
|
+
if (value === undefined || value === null) {
|
|
6
|
+
return undefined;
|
|
7
|
+
}
|
|
8
|
+
if (value in oakBorderRadiusTokens) {
|
|
9
|
+
return "".concat(pxToRem(oakBorderRadiusTokens[value]), "rem");
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { parseBorderRadius };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import pxToRem from './pxToRem.js';
|
|
2
|
+
import '../theme/color.js';
|
|
3
|
+
import { oakBorderWidthTokens } from '../theme/borders.js';
|
|
4
|
+
import '../theme/typography.js';
|
|
5
|
+
|
|
6
|
+
function parseBorderWidth(value) {
|
|
7
|
+
if (!value) {
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
if (value in oakBorderWidthTokens) {
|
|
11
|
+
return "".concat(pxToRem(oakBorderWidthTokens[value]), "rem");
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { parseBorderWidth };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { oakColorTokens, oakUiRoleTokens } from '../theme/color.js';
|
|
2
|
+
|
|
3
|
+
function parseColor(value) {
|
|
4
|
+
if (value === undefined || value === null) {
|
|
5
|
+
return undefined;
|
|
6
|
+
}
|
|
7
|
+
if (value in oakColorTokens) {
|
|
8
|
+
return oakColorTokens[value];
|
|
9
|
+
}
|
|
10
|
+
if (oakUiRoleTokens.includes(value)) {
|
|
11
|
+
return function (_a) {
|
|
12
|
+
var theme = _a.theme;
|
|
13
|
+
var c = theme.uiColors[value];
|
|
14
|
+
return oakColorTokens[c];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { parseColor };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { oakUiRoleTokens, oakColorFilterTokens } from '../theme/color.js';
|
|
2
|
+
|
|
3
|
+
function parseColorFilter(value) {
|
|
4
|
+
if (value === undefined || value === null) {
|
|
5
|
+
return undefined;
|
|
6
|
+
}
|
|
7
|
+
if (oakUiRoleTokens.includes(value)) {
|
|
8
|
+
return function (_a) {
|
|
9
|
+
var theme = _a.theme;
|
|
10
|
+
var c = theme.uiColors[value];
|
|
11
|
+
if (c && c in oakColorFilterTokens) {
|
|
12
|
+
return oakColorFilterTokens[c];
|
|
13
|
+
}
|
|
14
|
+
return undefined;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { parseColorFilter };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { oakDropShadowTokens } from '../theme/dropShadow.js';
|
|
2
|
+
|
|
3
|
+
var parseDropShadow = function (variant) {
|
|
4
|
+
if (variant === null) {
|
|
5
|
+
return "none";
|
|
6
|
+
}
|
|
7
|
+
if (!variant) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (variant in oakDropShadowTokens) {
|
|
11
|
+
return oakDropShadowTokens[variant];
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { parseDropShadow };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import pxToRem from './pxToRem.js';
|
|
2
|
+
import { oakAllSpacingTokens, oakSpaceBetweenTokens } from '../theme/spacing.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* - takes any of OakInnerPadding, OakSpaceBetween, OakAllSpacing, and other accepted values,
|
|
6
|
+
* - derives and returns the corresponding css value
|
|
7
|
+
* - converting to rem where necessary
|
|
8
|
+
*/
|
|
9
|
+
function parseSpacing(value) {
|
|
10
|
+
// if value is null or undefined, return undefined
|
|
11
|
+
if (value === undefined || value === null) {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
// mapped values
|
|
15
|
+
if (value in oakAllSpacingTokens) {
|
|
16
|
+
return "".concat(pxToRem(oakAllSpacingTokens[value]), "rem"); // NB. type assertion is necessary because the OakAllSpacing type is dervied from oakAllSpacingPx
|
|
17
|
+
}
|
|
18
|
+
if (value in oakAllSpacingTokens) {
|
|
19
|
+
return "".concat(pxToRem(oakAllSpacingTokens[value]), "rem");
|
|
20
|
+
}
|
|
21
|
+
if (value in oakSpaceBetweenTokens) {
|
|
22
|
+
var v = oakSpaceBetweenTokens[value];
|
|
23
|
+
return "".concat(pxToRem(oakAllSpacingTokens[v]), "rem");
|
|
24
|
+
}
|
|
25
|
+
// value is a number, percentage or css value
|
|
26
|
+
return value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { parseSpacing };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { oakTransitionTokens } from '../theme/transitions.js';
|
|
2
|
+
|
|
3
|
+
var parseTransitions = function (variant) {
|
|
4
|
+
if (!variant) {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
if (variant in oakTransitionTokens) {
|
|
8
|
+
return oakTransitionTokens[variant];
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { parseTransitions };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { oakFontTokens, oakFontSizeTokens } from '../theme/typography.js';
|
|
2
|
+
import pxToRem from './pxToRem.js';
|
|
3
|
+
|
|
4
|
+
var parseFontWeight = function (font) {
|
|
5
|
+
var _a;
|
|
6
|
+
if (!font)
|
|
7
|
+
return;
|
|
8
|
+
return (_a = oakFontTokens[font]) === null || _a === void 0 ? void 0 : _a[2];
|
|
9
|
+
};
|
|
10
|
+
var parseFontSize = function (font) {
|
|
11
|
+
var _a;
|
|
12
|
+
if (!font)
|
|
13
|
+
return;
|
|
14
|
+
var fontSize = (_a = oakFontTokens[font]) === null || _a === void 0 ? void 0 : _a[0];
|
|
15
|
+
if (!fontSize)
|
|
16
|
+
return;
|
|
17
|
+
var fontSizePx = oakFontSizeTokens[fontSize];
|
|
18
|
+
return "".concat(pxToRem(fontSizePx), "rem");
|
|
19
|
+
};
|
|
20
|
+
var parseLineHeight = function (font) {
|
|
21
|
+
var _a;
|
|
22
|
+
if (!font)
|
|
23
|
+
return;
|
|
24
|
+
var lineHeight = (_a = oakFontTokens[font]) === null || _a === void 0 ? void 0 : _a[1];
|
|
25
|
+
if (!lineHeight)
|
|
26
|
+
return;
|
|
27
|
+
return "".concat(pxToRem(lineHeight), "rem");
|
|
28
|
+
};
|
|
29
|
+
var parseLetterSpacing = function (font) {
|
|
30
|
+
var _a;
|
|
31
|
+
if (!font)
|
|
32
|
+
return;
|
|
33
|
+
return (_a = oakFontTokens[font]) === null || _a === void 0 ? void 0 : _a[3];
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { parseFontSize, parseFontWeight, parseLetterSpacing, parseLineHeight };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { oakZIndexTokens } from '../theme/zIndex.js';
|
|
2
|
+
|
|
3
|
+
var parseZIndex = function (value) {
|
|
4
|
+
if (value === undefined || value === null) {
|
|
5
|
+
return undefined;
|
|
6
|
+
}
|
|
7
|
+
if (typeof value === "number") {
|
|
8
|
+
return value;
|
|
9
|
+
}
|
|
10
|
+
return oakZIndexTokens[value];
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { parseZIndex };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @see https://stackoverflow.com/questions/47632622/typescript-and-filter-boolean
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @description truthy takes a value and returns true|false with the correct type
|
|
5
|
+
* It's useful, for example, when filtering out null values from an array.
|
|
6
|
+
* Typescript compiler needs a hint to realise there aren't any more null values.
|
|
7
|
+
* [{ foo: "bar" }, null]<Record | null>[].filter(truthy) // [{ foo: "bar"}]<Record>[]
|
|
8
|
+
*/
|
|
9
|
+
function truthy(value) {
|
|
10
|
+
return !!value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { truthy };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var oakBorderWidthTokens = {
|
|
2
|
+
"border-solid-none": 0,
|
|
3
|
+
"border-solid-s": 1,
|
|
4
|
+
"border-solid-m": 2,
|
|
5
|
+
"border-solid-l": 3,
|
|
6
|
+
"border-solid-xl": 4,
|
|
7
|
+
"border-solid-xxl": 6,
|
|
8
|
+
"border-solid-xxxl": 8,
|
|
9
|
+
"border-solid-xxxxl": 10,
|
|
10
|
+
};
|
|
11
|
+
var oakBorderRadiusTokens = {
|
|
12
|
+
"border-radius-square": 0,
|
|
13
|
+
"border-radius-xs": 2,
|
|
14
|
+
"border-radius-s": 4,
|
|
15
|
+
"border-radius-m": 6,
|
|
16
|
+
"border-radius-m2": 8,
|
|
17
|
+
"border-radius-l": 16,
|
|
18
|
+
"border-radius-xl": 24,
|
|
19
|
+
"border-radius-circle": 100,
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { oakBorderRadiusTokens, oakBorderWidthTokens };
|