@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,135 @@
|
|
|
1
|
+
import { __makeTemplateObject, __rest, __assign, __values, __read } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
|
|
5
|
+
import { OakSpan } from '../../typography/OakSpan/OakSpan.js';
|
|
6
|
+
import { OakP } from '../../typography/OakP/OakP.js';
|
|
7
|
+
import { OakUL } from '../../typography/OakUL/OakUL.js';
|
|
8
|
+
import { OakLI } from '../../typography/OakLI/OakLI.js';
|
|
9
|
+
import { OakInfo } from '../OakInfo/OakInfo.js';
|
|
10
|
+
|
|
11
|
+
var StyledCodeContainer = styled(OakSpan)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: \"Roboto Mono\", --font-roboto-mono, monospace;\n"], ["\n font-family: \"Roboto Mono\", --font-roboto-mono, monospace;\n"])));
|
|
12
|
+
var OakCodeRenderer = function (_a) {
|
|
13
|
+
var string = _a.string, rest = __rest(_a, ["string"]);
|
|
14
|
+
var findAndStyleInlineCode = function (text) {
|
|
15
|
+
var parts = text.split(/(`.*?`)/); // Matches text enclosed in backticks
|
|
16
|
+
if (parts.length === 1 && !text.startsWith("`")) {
|
|
17
|
+
return text;
|
|
18
|
+
}
|
|
19
|
+
return (React.createElement(OakSpan, null, parts.map(function (part, index) {
|
|
20
|
+
if (part.startsWith("`") && part.endsWith("`")) {
|
|
21
|
+
// Remove backticks and style the content
|
|
22
|
+
return (React.createElement(StyledCodeContainer, __assign({ key: index, "$background": "bg-inverted", "$color": "text-inverted", "$pv": ["spacing-0", "spacing-4"], "$ph": ["spacing-8", "spacing-8"], "$borderRadius": "border-radius-m2", "$display": "inline-block", "$font": ["code-2", "code-1"] }, rest), part.slice(1, -1)));
|
|
23
|
+
}
|
|
24
|
+
return part; // Return the unstyled part
|
|
25
|
+
})));
|
|
26
|
+
};
|
|
27
|
+
var syntaxHighlight = function (code) {
|
|
28
|
+
// Define regex patterns for different code parts
|
|
29
|
+
var patterns = [
|
|
30
|
+
{ regex: /"(.*?)"|'(.*?)'/g, color: "code-green" }, // Strings
|
|
31
|
+
{
|
|
32
|
+
regex: /\b(and|as|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\b/g,
|
|
33
|
+
color: "code-pink",
|
|
34
|
+
}, // Keywords
|
|
35
|
+
{
|
|
36
|
+
regex: /\b(False|None|True)\b/g,
|
|
37
|
+
color: "code-blue",
|
|
38
|
+
}, // Keywords
|
|
39
|
+
{ regex: /\b\d+\b/g, color: "code-blue" }, // Numbers
|
|
40
|
+
// { regex: /(#.*?$)/gm, color: "code-grey" }, // Comments
|
|
41
|
+
// { regex: /(=|==|!=|<=|>=|\+|-|\*|\/|:)/g, color: "red" }, // Operators
|
|
42
|
+
];
|
|
43
|
+
// Apply syntax highlighting by replacing matches with styled spans
|
|
44
|
+
var parts = [code];
|
|
45
|
+
var isCheckingMatches = true;
|
|
46
|
+
var _loop_1 = function () {
|
|
47
|
+
var matchFound = false;
|
|
48
|
+
parts.forEach(function (part, index) {
|
|
49
|
+
var e_1, _a;
|
|
50
|
+
try {
|
|
51
|
+
for (var patterns_1 = (e_1 = void 0, __values(patterns)), patterns_1_1 = patterns_1.next(); !patterns_1_1.done; patterns_1_1 = patterns_1.next()) {
|
|
52
|
+
var _b = patterns_1_1.value, regex = _b.regex, color = _b.color;
|
|
53
|
+
if (typeof part === "string") {
|
|
54
|
+
var match = regex.exec(part);
|
|
55
|
+
if (match) {
|
|
56
|
+
matchFound = true;
|
|
57
|
+
var _c = __read(match, 1), matchedText = _c[0];
|
|
58
|
+
parts.splice(index, 1);
|
|
59
|
+
parts.splice(index, 0, part.slice(0, match.index));
|
|
60
|
+
parts.splice(index + 1, 0, React.createElement(OakSpan, { key: "".concat(part, "-").concat(index), "$color": color }, matchedText));
|
|
61
|
+
parts.splice(index + 2, 0, part.slice(match.index + matchedText.length));
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
68
|
+
finally {
|
|
69
|
+
try {
|
|
70
|
+
if (patterns_1_1 && !patterns_1_1.done && (_a = patterns_1.return)) _a.call(patterns_1);
|
|
71
|
+
}
|
|
72
|
+
finally { if (e_1) throw e_1.error; }
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
if (!matchFound) {
|
|
76
|
+
isCheckingMatches = false;
|
|
77
|
+
return { value: parts };
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
while (isCheckingMatches) {
|
|
81
|
+
var state_1 = _loop_1();
|
|
82
|
+
if (typeof state_1 === "object")
|
|
83
|
+
return state_1.value;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
var StyleCodeBlock = function (text, index) {
|
|
87
|
+
var matches = text.match(/```([\s\S]*?)```/);
|
|
88
|
+
if (!matches)
|
|
89
|
+
return text;
|
|
90
|
+
// Extract the content inside the backticks
|
|
91
|
+
var codeContent = matches[1];
|
|
92
|
+
if (!codeContent)
|
|
93
|
+
return text;
|
|
94
|
+
// Apply syntax highlighting
|
|
95
|
+
var codeWithSyntaxHighlighting = syntaxHighlight(codeContent);
|
|
96
|
+
return (React.createElement(StyledCodeContainer, __assign({ key: "".concat(text, "-").concat(index), "$background": "bg-inverted", "$color": "code-grey", "$pv": "spacing-8", "$ph": "spacing-12", "$borderRadius": "border-radius-m2", "$whiteSpace": "pre-wrap", "$mt": "spacing-56", "$font": "code-2" }, rest),
|
|
97
|
+
React.createElement(OakFlex, { "$flexDirection": "row" },
|
|
98
|
+
React.createElement(OakFlex, { "$flexDirection": "column", "$br": "border-solid-s", "$borderColor": "border-neutral", "$pr": "spacing-12" }, codeContent.split("\n").map(function (line, index) { return (React.createElement(OakSpan, { key: "".concat(line, "-").concat(index) }, index + 1)); })),
|
|
99
|
+
React.createElement(OakSpan, { "$pl": "spacing-12" }, codeWithSyntaxHighlighting))));
|
|
100
|
+
};
|
|
101
|
+
var extractAndMap = function (text) {
|
|
102
|
+
var parts = text.split(/(```[\s\S]*?```)/);
|
|
103
|
+
if (parts.length === 1 && !text.startsWith("```")) {
|
|
104
|
+
return findAndStyleInlineCode(text);
|
|
105
|
+
}
|
|
106
|
+
return (React.createElement(OakFlex, { "$flexDirection": "column" },
|
|
107
|
+
parts.map(function (part, index) {
|
|
108
|
+
if (part.startsWith("```") && part.endsWith("```")) {
|
|
109
|
+
return StyleCodeBlock(part, index);
|
|
110
|
+
}
|
|
111
|
+
return (React.createElement(OakSpan, { key: "".concat(part, "-").concat(index) }, findAndStyleInlineCode(part)));
|
|
112
|
+
}),
|
|
113
|
+
React.createElement(OakFlex, { "$alignSelf": "flex-end", "$width": "fit-content", "$alignItems": "center", "$gap": "spacing-12", "$mt": "spacing-16" },
|
|
114
|
+
React.createElement(OakSpan, { "$font": "heading-light-7" }, "Code colour"),
|
|
115
|
+
React.createElement(OakInfo, { hint: React.createElement(OakFlex, { "$flexDirection": "column" },
|
|
116
|
+
React.createElement(OakP, null, "When programmers write code, they use a special tool called an IDE (Integrated Development Environment). In an IDE, different colours are used to help programmers understand the code:"),
|
|
117
|
+
React.createElement("br", null),
|
|
118
|
+
React.createElement(OakUL, { "$reset": true, "$pl": "spacing-8" },
|
|
119
|
+
React.createElement(OakLI, null,
|
|
120
|
+
React.createElement(OakSpan, { "$font": "heading-7" }, "\u2022 Blue"),
|
|
121
|
+
React.createElement(OakSpan, { "$font": "heading-light-7" }, "\u00A0- numbers and boolean values")),
|
|
122
|
+
React.createElement(OakLI, null,
|
|
123
|
+
React.createElement(OakSpan, { "$font": "heading-7" }, "\u2022 Green"),
|
|
124
|
+
React.createElement(OakSpan, { "$font": "heading-light-7" }, "\u00A0- strings")),
|
|
125
|
+
React.createElement(OakLI, null,
|
|
126
|
+
React.createElement(OakSpan, { "$font": "heading-7" }, "\u2022 Purple"),
|
|
127
|
+
React.createElement(OakSpan, { "$font": "heading-light-7" }, "\u00A0- keywords")))), id: "oak-code-renderer-tooltip", tooltipPosition: "bottom-right", buttonProps: {
|
|
128
|
+
type: "button",
|
|
129
|
+
} }))));
|
|
130
|
+
};
|
|
131
|
+
return extractAndMap(string);
|
|
132
|
+
};
|
|
133
|
+
var templateObject_1;
|
|
134
|
+
|
|
135
|
+
export { OakCodeRenderer };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { __read } from 'tslib';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { OakSmallSecondaryButton } from '../../buttons/OakSmallSecondaryButton/OakSmallSecondaryButton.js';
|
|
4
|
+
import { OakBox } from '../../layout-and-structure/OakBox/OakBox.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Display copy link button
|
|
8
|
+
*/
|
|
9
|
+
var OakCopyLinkButton = function (_a) {
|
|
10
|
+
var href = _a.href;
|
|
11
|
+
var copyLinkMessage = "Copy link";
|
|
12
|
+
var linkCopiedMessage = "Link copied";
|
|
13
|
+
var _b = __read(useState(copyLinkMessage), 2), label = _b[0], setLabel = _b[1];
|
|
14
|
+
var _c = __read(useState(true), 2), active = _c[0], setActive = _c[1];
|
|
15
|
+
var _d = __read(useState(""), 2), announce = _d[0], setAnnounce = _d[1];
|
|
16
|
+
var copyLink = function () {
|
|
17
|
+
if (navigator.clipboard) {
|
|
18
|
+
var urlToCopy = href || window.location.href;
|
|
19
|
+
navigator.clipboard.writeText(urlToCopy);
|
|
20
|
+
setLabel(linkCopiedMessage);
|
|
21
|
+
setAnnounce(linkCopiedMessage);
|
|
22
|
+
setActive(false);
|
|
23
|
+
var resetCopyLinkButtonTimer = 4000;
|
|
24
|
+
setTimeout(function () {
|
|
25
|
+
setAnnounce(""); // used for aria-live announcement
|
|
26
|
+
setActive(true);
|
|
27
|
+
setLabel(copyLinkMessage);
|
|
28
|
+
}, resetCopyLinkButtonTimer);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
alert("Please update your browser to support this feature");
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
return (React.createElement(React.Fragment, null,
|
|
35
|
+
React.createElement(OakBox, { "$display": ["none", "block"] },
|
|
36
|
+
React.createElement(OakSmallSecondaryButton, { iconName: active ? "copy" : "tick", iconAriaHidden: true, isTrailingIcon: true, onClick: copyLink, "data-testid": "copy-link-desktop-button" }, label)),
|
|
37
|
+
React.createElement(OakBox, { "$display": ["block", "none"] },
|
|
38
|
+
React.createElement(OakSmallSecondaryButton, { onClick: copyLink }, label)),
|
|
39
|
+
announce && (React.createElement("div", { "aria-relevant": "all", "aria-live": "polite", style: { position: "absolute", left: "-9999px" }, "data-testid": "announce" }, announce))));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export { OakCopyLinkButton };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { __makeTemplateObject, __rest, __assign } from 'tslib';
|
|
2
|
+
import React, { useContext } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { RadioContext } from '../../form-elements/OakRadioGroup/OakRadioGroup.js';
|
|
5
|
+
import { InternalCheckBoxHoverFocus } from '../../internal-components/InternalCheckBox/InternalCheckBox.js';
|
|
6
|
+
import { InternalCheckBoxWrapper } from '../../internal-components/InternalCheckBoxWrapper/InternalCheckBoxWrapper.js';
|
|
7
|
+
import { InternalRadio } from '../../internal-components/InternalRadio/InternalRadio.js';
|
|
8
|
+
import { InternalRadioWrapper } from '../../internal-components/InternalRadioWrapper/InternalRadioWrapper.js';
|
|
9
|
+
import { OakIcon } from '../../images-and-icons/OakIcon/OakIcon.js';
|
|
10
|
+
import { OakBox } from '../../layout-and-structure/OakBox/OakBox.js';
|
|
11
|
+
import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
|
|
12
|
+
import { parseColor } from '../../../styles/helpers/parseColor.js';
|
|
13
|
+
|
|
14
|
+
var SingleIcon = function (_a) {
|
|
15
|
+
var iconName = _a.iconName;
|
|
16
|
+
return (React.createElement(OakFlex, { "$background": "bg-decorative5-main", "$pa": "spacing-12", "$alignItems": "center", "$alignSelf": "stretch" },
|
|
17
|
+
React.createElement(OakIcon, { iconName: iconName, "$width": "spacing-48", "$height": "spacing-48" })));
|
|
18
|
+
};
|
|
19
|
+
var MultipleIcons = function (_a) {
|
|
20
|
+
var iconName = _a.iconName;
|
|
21
|
+
return (React.createElement(OakFlex, { "$background": "bg-decorative5-main", "$pa": "spacing-12", "$alignItems": "center", "$flexDirection": "column", "$gap": "spacing-16", "$justifyContent": "center" }, iconName.map(function (name, index) { return (React.createElement(OakFlex, { key: "".concat(name, "-").concat(index), "$position": "relative", "$alignContent": "center", "$alignItems": "center", "$justifyContent": "center" },
|
|
22
|
+
React.createElement(OakIcon, { iconName: name, "$width": "spacing-40", "$height": "spacing-40", "$mr": index < iconName.length - 1 ? "spacing-8" : "spacing-0" }))); })));
|
|
23
|
+
};
|
|
24
|
+
var LabelContainer = styled("label")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex: 1;\n cursor: pointer;\n display: flex;\n"], ["\n flex: 1;\n cursor: pointer;\n display: flex;\n"])));
|
|
25
|
+
var Container = styled(OakFlex)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n\n &:has(input:focus-within) {\n &:focus-visible {\n box-shadow:\n 0px 0px 0px 2px ", ",\n 0px 0px 0px 5px ", ";\n }\n }\n @media (hover: hover) {\n &:hover:not(:disabled, :active) {\n background: ", ";\n }\n }\n"], ["\n cursor: pointer;\n\n &:has(input:focus-within) {\n &:focus-visible {\n box-shadow:\n 0px 0px 0px 2px ", ",\n 0px 0px 0px 5px ", ";\n }\n }\n @media (hover: hover) {\n &:hover:not(:disabled, :active) {\n background: ", ";\n }\n }\n"])), parseColor("bg-decorative5-main"), parseColor("bg-btn-primary-hover"), function (props) {
|
|
26
|
+
return props.$hoverBackground ? parseColor(props.$hoverBackground) : null;
|
|
27
|
+
});
|
|
28
|
+
/**
|
|
29
|
+
* Download cards present a downloadable resource with metadata and a selectable control.
|
|
30
|
+
* ## Usage
|
|
31
|
+
* Use this component when users need to select one or more downloadable resources,
|
|
32
|
+
* such as lesson plans, slide decks, or worksheets.
|
|
33
|
+
* Design document: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=14795-5603>
|
|
34
|
+
*/
|
|
35
|
+
var OakDownloadCard = function (props) {
|
|
36
|
+
var _a;
|
|
37
|
+
var radioContext = useContext(RadioContext);
|
|
38
|
+
var title = props.title, fileSize = props.fileSize, format = props.format, iconName = props.iconName, value = props.value, _b = props.disabled, disabled = _b === void 0 ? false : _b, defaultChecked = props.defaultChecked, checked = props.checked, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onHovered = props.onHovered, _c = props.isRadio, isRadio = _c === void 0 ? false : _c, dataTestId = props["data-testid"], rest = __rest(props, ["title", "fileSize", "format", "iconName", "value", "disabled", "defaultChecked", "checked", "onChange", "onFocus", "onBlur", "onHovered", "isRadio", "data-testid"]);
|
|
39
|
+
var checkboxSize = "spacing-24";
|
|
40
|
+
var checkedBorderColor = "border-primary";
|
|
41
|
+
var disabledColor = "text-disabled";
|
|
42
|
+
var currentCheckedBackgroundFill = disabled
|
|
43
|
+
? disabledColor
|
|
44
|
+
: checkedBorderColor;
|
|
45
|
+
var currentCheckedBorderColor = disabled
|
|
46
|
+
? disabledColor
|
|
47
|
+
: checkedBorderColor;
|
|
48
|
+
var anyDisabled = disabled || radioContext.disabled;
|
|
49
|
+
var isChecked = value === radioContext.currentValue;
|
|
50
|
+
var radioChecked = checked !== null && checked !== void 0 ? checked : isChecked;
|
|
51
|
+
var handleRadioChange = function (event) {
|
|
52
|
+
var _a;
|
|
53
|
+
(_a = radioContext.onValueUpdated) === null || _a === void 0 ? void 0 : _a.call(radioContext, event);
|
|
54
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
55
|
+
};
|
|
56
|
+
var isMultipleIcon = Array.isArray(iconName);
|
|
57
|
+
return (React.createElement(Container, { "data-testid": dataTestId, "$background": "bg-primary", "$ba": "border-solid-m", "$borderRadius": "border-radius-s", "$overflow": "hidden", "$hoverBackground": "bg-btn-secondary-hover", "$color": "text-primary", "$width": "100%" },
|
|
58
|
+
React.createElement(LabelContainer, null,
|
|
59
|
+
React.createElement(OakFlex, { "$alignItems": "stretch", "$flexGrow": 1 },
|
|
60
|
+
isMultipleIcon ? (React.createElement(MultipleIcons, { iconName: iconName })) : (React.createElement(SingleIcon, { iconName: iconName })),
|
|
61
|
+
React.createElement(OakFlex, { "$flexGrow": 1, "$flexDirection": "column", "$justifyContent": "center", "$gap": "spacing-4", "$pv": "spacing-12", "$ph": "spacing-16" },
|
|
62
|
+
React.createElement(OakBox, { "$font": "body-2-bold" }, title),
|
|
63
|
+
fileSize && React.createElement(OakBox, { "$font": "body-3" }, fileSize),
|
|
64
|
+
React.createElement(OakBox, { "$font": "body-3" }, format))),
|
|
65
|
+
React.createElement(OakFlex, null,
|
|
66
|
+
React.createElement(OakFlex, { "$alignItems": "center", "$pr": "spacing-16" },
|
|
67
|
+
isRadio && (React.createElement(InternalRadioWrapper, { checked: isChecked, size: checkboxSize, disabled: anyDisabled, radioBorderColor: checkedBorderColor, internalRadio: React.createElement(InternalRadio, __assign({}, rest, { id: props.id, name: (_a = props.name) !== null && _a !== void 0 ? _a : radioContext.name, value: value, disabled: anyDisabled, onHovered: onHovered, onChange: handleRadioChange, onFocus: onFocus, onBlur: onBlur, defaultChecked: defaultChecked, checked: radioChecked })) })),
|
|
68
|
+
!isRadio && (React.createElement(InternalCheckBoxWrapper, { size: checkboxSize, internalCheckbox: React.createElement(InternalCheckBoxHoverFocus, __assign({ name: radioContext.name, value: value, "$width": checkboxSize, "$height": checkboxSize, "$ba": "border-solid-m", "$borderRadius": "border-radius-xs", "$borderColor": "text-primary", "$checkedBackground": currentCheckedBackgroundFill, "$checkedBorderColor": currentCheckedBorderColor, "$uncheckedBorderColor": "border-neutral", "$hoverBorderRadius": "border-radius-xs", onHovered: onHovered, onChange: onChange, onFocus: onFocus, onBlur: onBlur, defaultChecked: defaultChecked, checked: checked, disabled: anyDisabled }, rest)), iconPadding: "spacing-0" })))))));
|
|
69
|
+
};
|
|
70
|
+
var templateObject_1, templateObject_2;
|
|
71
|
+
|
|
72
|
+
export { OakDownloadCard };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { __makeTemplateObject, __read } from 'tslib';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import styled, { css } from 'styled-components';
|
|
4
|
+
import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
|
|
5
|
+
import { OakInlineBanner } from '../../messaging-and-feedback/OakInlineBanner/OakInlineBanner.js';
|
|
6
|
+
import { OakPrimaryButton } from '../../buttons/OakPrimaryButton/OakPrimaryButton.js';
|
|
7
|
+
import { OakRadioButton } from '../../form-elements/OakRadioButton/OakRadioButton.js';
|
|
8
|
+
import { OakRadioGroup } from '../../form-elements/OakRadioGroup/OakRadioGroup.js';
|
|
9
|
+
|
|
10
|
+
var OakDownloadsJourneyChildSubjectTierSelectorCss = css(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
|
|
11
|
+
var UnstyledComponent = function (props) {
|
|
12
|
+
var _a;
|
|
13
|
+
var childSubjects = props.childSubjects, tiers = props.tiers, getTierSubjectValues = props.getTierSubjectValues;
|
|
14
|
+
var _b = __read(useState((childSubjects === null || childSubjects === void 0 ? void 0 : childSubjects[0]) ? (_a = childSubjects[0]) === null || _a === void 0 ? void 0 : _a.subjectSlug : null), 2), childSubjectSelected = _b[0], setChildSubjectSelected = _b[1];
|
|
15
|
+
var _c = __read(useState("foundation"), 2), tierSelected = _c[0], setTierSelected = _c[1];
|
|
16
|
+
var tiersAvailable = tiers && tierSelected.length > 0;
|
|
17
|
+
var childSubjectsAvailable = childSubjects && childSubjects.length > 0;
|
|
18
|
+
function handleChildSubjectSelection(e) {
|
|
19
|
+
var childSubjectSlug = e.currentTarget.value;
|
|
20
|
+
setChildSubjectSelected(childSubjectSlug);
|
|
21
|
+
}
|
|
22
|
+
function handleTierSelection(e) {
|
|
23
|
+
var tierSlug = e.currentTarget.value;
|
|
24
|
+
setTierSelected(tierSlug);
|
|
25
|
+
}
|
|
26
|
+
function handleNextClick() {
|
|
27
|
+
getTierSubjectValues(tierSelected, childSubjectSelected);
|
|
28
|
+
}
|
|
29
|
+
return (React.createElement(OakFlex, { "$flexDirection": "column", "$gap": "spacing-24" },
|
|
30
|
+
React.createElement(OakInlineBanner, { isOpen: true, message: "Before downloading, choose ".concat(childSubjectsAvailable && tiersAvailable ? "options" : "an option", " for KS4. The document will still display both KS3 and KS4."), "$maxWidth": "spacing-640" }),
|
|
31
|
+
childSubjectsAvailable && (React.createElement(OakRadioGroup, { label: "Choose subject for KS4 units", name: "childSubjectRadio", onChange: handleChildSubjectSelection, "$flexDirection": "column", "$gap": "spacing-16", defaultValue: childSubjectSelected || "combined-science", "data-testid": "child-subject-selector" }, childSubjects.map(function (_a) {
|
|
32
|
+
var subject = _a.subject, subjectSlug = _a.subjectSlug;
|
|
33
|
+
return (React.createElement(OakRadioButton, { id: subjectSlug, label: subject, value: subjectSlug, "data-testid": "child-subject-radio-button", key: subjectSlug }));
|
|
34
|
+
}))),
|
|
35
|
+
tiersAvailable && (React.createElement(OakRadioGroup, { "data-testid": "tier-selector", label: "Choose learning tier for KS4 units", name: "tierRadio", onChange: handleTierSelection, "$flexDirection": "column", "$gap": "spacing-16", defaultValue: tierSelected }, tiers.map(function (_a) {
|
|
36
|
+
var tier = _a.tier, tierSlug = _a.tierSlug;
|
|
37
|
+
return (React.createElement(OakRadioButton, { id: tierSlug, label: tier, value: tierSlug, "data-testid": "tier-radio-button", key: tierSlug }));
|
|
38
|
+
}))),
|
|
39
|
+
React.createElement(OakPrimaryButton, { iconName: "arrow-right", isTrailingIcon: true, onClick: handleNextClick }, "Next")));
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* The component is used in the Curriculum Downloads journey for KS4 Maths and Science, where a tier
|
|
44
|
+
* must be selected before download (Maths) as well as a child subject (Science).
|
|
45
|
+
*
|
|
46
|
+
* ### Callbacks
|
|
47
|
+
* `getTierSubjectValues(tier, childSubject)`: a callback function to retrieve the selected values
|
|
48
|
+
* once the Next button is pressed to continue on the Downloads journey.
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
var OakDownloadsJourneyChildSubjectTierSelector = styled(UnstyledComponent)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), OakDownloadsJourneyChildSubjectTierSelectorCss);
|
|
52
|
+
var templateObject_1, templateObject_2;
|
|
53
|
+
|
|
54
|
+
export { OakDownloadsJourneyChildSubjectTierSelector };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { __makeTemplateObject, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { OakBox } from '../../layout-and-structure/OakBox/OakBox.js';
|
|
5
|
+
import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
|
|
6
|
+
import { OakIcon } from '../../images-and-icons/OakIcon/OakIcon.js';
|
|
7
|
+
import { OakKbd } from '../../messaging-and-feedback/OakKbd/OakKbd.js';
|
|
8
|
+
import { parseSpacing } from '../../../styles/helpers/parseSpacing.js';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Adds additional leading between each line of text to make room for the
|
|
12
|
+
* keyboard instructions wrapped in `<OakKbd>`
|
|
13
|
+
*
|
|
14
|
+
* This might be a useful atom to extract
|
|
15
|
+
*/
|
|
16
|
+
var StyledLeadingTrim = styled(OakBox)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-block: calc(-", " / 2);\n line-height: calc(1.5rem + ", ");\n"], ["\n margin-block: calc(-", " / 2);\n line-height: calc(1.5rem + ", ");\n"])), parseSpacing("spacing-8"), parseSpacing("spacing-8"));
|
|
17
|
+
/**
|
|
18
|
+
* Displays instructions for drag and drop functionality
|
|
19
|
+
*/
|
|
20
|
+
var OakDragAndDropInstructions = function (props) {
|
|
21
|
+
return (React.createElement(OakFlex, __assign({ "$gap": "spacing-8" }, props),
|
|
22
|
+
React.createElement(OakFlex, { "$flexGrow": 0 },
|
|
23
|
+
React.createElement(OakIcon, { iconName: "move-arrows" })),
|
|
24
|
+
React.createElement(StyledLeadingTrim, { "$font": "body-2" },
|
|
25
|
+
"Click and drag answers to change the order, or select using",
|
|
26
|
+
" ",
|
|
27
|
+
React.createElement(OakKbd, null,
|
|
28
|
+
React.createElement("span", { "aria-hidden": "true" }, "\u21B9"),
|
|
29
|
+
" Tab"),
|
|
30
|
+
" ",
|
|
31
|
+
"then move by pressing ",
|
|
32
|
+
React.createElement(OakKbd, null, "Space"),
|
|
33
|
+
" and the ",
|
|
34
|
+
React.createElement(OakKbd, null, "\u2191"),
|
|
35
|
+
" ",
|
|
36
|
+
React.createElement(OakKbd, null, "\u2193"),
|
|
37
|
+
" arrows on your keyboard.")));
|
|
38
|
+
};
|
|
39
|
+
var templateObject_1;
|
|
40
|
+
|
|
41
|
+
export { OakDragAndDropInstructions };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { __makeTemplateObject, __rest, __assign } from 'tslib';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { OakBox } from '../../layout-and-structure/OakBox/OakBox.js';
|
|
5
|
+
import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
|
|
6
|
+
import { OakIcon } from '../../images-and-icons/OakIcon/OakIcon.js';
|
|
7
|
+
import { parseColor } from '../../../styles/helpers/parseColor.js';
|
|
8
|
+
import { parseBorder } from '../../../styles/helpers/parseBorder.js';
|
|
9
|
+
import { parseDropShadow } from '../../../styles/helpers/parseDropShadow.js';
|
|
10
|
+
import { parseSpacing } from '../../../styles/helpers/parseSpacing.js';
|
|
11
|
+
import { parseBorderWidth } from '../../../styles/helpers/parseBorderWidth.js';
|
|
12
|
+
import { parseColorFilter } from '../../../styles/helpers/parseColorFilter.js';
|
|
13
|
+
|
|
14
|
+
var StyledOakIcon = styled(OakIcon)(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
|
|
15
|
+
var StyledDraggable = styled(OakBox)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: grab;\n outline: none;\n user-select: none;\n\n ", " {\n filter: ", ";\n }\n\n @media (hover: hover) {\n &:hover:not([data-dragging=\"true\"]):not([data-disabled=\"true\"]):not(\n [data-readonly=\"true\"]\n ) {\n background-color: ", ";\n color: ", ";\n box-shadow: ", ";\n border-bottom: ", "\n ", ";\n padding-bottom: ", ";\n text-decoration: underline;\n\n ", " {\n filter: ", ";\n }\n }\n }\n\n &:focus-visible:not([data-dragging=\"true\"]):not([data-disabled=\"true\"]) {\n box-shadow:\n ", ",\n ", ";\n }\n\n &[data-dragging=\"true\"] {\n cursor: move;\n background-color: ", ";\n color: ", ";\n outline: ", " ", ";\n outline-offset: -", ";\n box-shadow:\n ", ",\n ", ";\n text-decoration: underline;\n\n ", " {\n filter: ", ";\n }\n }\n\n &[data-disabled=\"true\"] {\n cursor: default;\n background-color: ", ";\n color: ", ";\n\n ", " {\n filter: ", ";\n }\n }\n\n &[data-readonly=\"true\"] {\n cursor: default;\n }\n"], ["\n cursor: grab;\n outline: none;\n user-select: none;\n\n ", " {\n filter: ", ";\n }\n\n @media (hover: hover) {\n &:hover:not([data-dragging=\"true\"]):not([data-disabled=\"true\"]):not(\n [data-readonly=\"true\"]\n ) {\n background-color: ", ";\n color: ", ";\n box-shadow: ", ";\n border-bottom: ", "\n ", ";\n padding-bottom: ", ";\n text-decoration: underline;\n\n ", " {\n filter: ", ";\n }\n }\n }\n\n &:focus-visible:not([data-dragging=\"true\"]):not([data-disabled=\"true\"]) {\n box-shadow:\n ", ",\n ", ";\n }\n\n &[data-dragging=\"true\"] {\n cursor: move;\n background-color: ", ";\n color: ", ";\n outline: ", " ", ";\n outline-offset: -", ";\n box-shadow:\n ", ",\n ", ";\n text-decoration: underline;\n\n ", " {\n filter: ", ";\n }\n }\n\n &[data-disabled=\"true\"] {\n cursor: default;\n background-color: ", ";\n color: ", ";\n\n ", " {\n filter: ", ";\n }\n }\n\n &[data-readonly=\"true\"] {\n cursor: default;\n }\n"])), StyledOakIcon, function (props) { return parseColorFilter(props.$iconColor); }, parseColor("bg-decorative1-subdued"), parseColor("text-primary"), parseDropShadow("drop-shadow-standard"), parseBorder("border-solid-xl"), parseColor("border-primary"), parseSpacing("spacing-16"), StyledOakIcon, parseColorFilter("icon-primary"), parseDropShadow("drop-shadow-centered-lemon"), parseDropShadow("drop-shadow-centered-grey"), parseColor("bg-decorative1-main"), parseColor("text-primary"), parseBorder("border-solid-xl"), parseColor("border-primary"), parseBorderWidth("border-solid-xl"), parseDropShadow("drop-shadow-lemon"), parseDropShadow("drop-shadow-grey"), StyledOakIcon, parseColorFilter("icon-primary"), parseColor("bg-neutral"), parseColor("text-disabled"), StyledOakIcon, parseColorFilter("icon-disabled"));
|
|
16
|
+
var StyledFlex = styled(OakFlex)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin-block: -", ";\n"], ["\n margin-block: -", ";\n"])), parseSpacing("spacing-8"));
|
|
17
|
+
/**
|
|
18
|
+
* The component has no intrinsic draggable functionality.
|
|
19
|
+
* It is intended to be used with `useDraggable` from `@dnd-kit/core`
|
|
20
|
+
*/
|
|
21
|
+
var OakDraggable = forwardRef(function (_a, ref) {
|
|
22
|
+
var children = _a.children, _b = _a.iconName, iconName = _b === void 0 ? "move-arrows" : _b, _c = _a.iconColor, iconColor = _c === void 0 ? "icon-primary" : _c, _d = _a.iconAlt, iconAlt = _d === void 0 ? "" : _d, _e = _a.color, color = _e === void 0 ? "text-primary" : _e, _f = _a.background, background = _f === void 0 ? "bg-primary" : _f, isDragging = _a.isDragging, isDisabled = _a.isDisabled, isReadOnly = _a.isReadOnly, props = __rest(_a, ["children", "iconName", "iconColor", "iconAlt", "color", "background", "isDragging", "isDisabled", "isReadOnly"]);
|
|
23
|
+
return (React.createElement(StyledDraggable, __assign({ ref: ref, "$pv": "spacing-20", "$pl": "spacing-12", "$pr": "spacing-16", "$background": background, "$color": color, "$borderRadius": "border-radius-m2", "$minHeight": "spacing-56", "data-dragging": isDragging, "data-disabled": isDisabled, "data-readonly": isReadOnly, "$iconColor": iconColor }, props),
|
|
24
|
+
React.createElement(StyledFlex, { "$gap": "spacing-16", "$alignItems": "center" },
|
|
25
|
+
React.createElement(StyledOakIcon, { iconName: iconName, "$width": "spacing-32", "$height": "spacing-32", alt: iconAlt }),
|
|
26
|
+
React.createElement(OakFlex, { "$font": "body-1-bold" }, children))));
|
|
27
|
+
});
|
|
28
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
29
|
+
|
|
30
|
+
export { OakDraggable };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { OakDraggable } from '../OakDraggable/OakDraggable.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A draggable element that visually indicates whether or not its state is correct or not
|
|
7
|
+
*/
|
|
8
|
+
var OakDraggableFeedback = function (_a) {
|
|
9
|
+
var feedback = _a.feedback, props = __rest(_a, ["feedback"]);
|
|
10
|
+
return (React.createElement(OakDraggable, __assign({}, props, { iconName: feedback === "correct" ? "tick" : "cross", iconColor: feedback === "correct" ? "icon-success" : "icon-error", iconAlt: feedback === "correct" ? "correct" : "incorrect", "$ba": "border-solid-xl", "$borderColor": feedback === "correct" ? "border-success" : "border-error", "$background": feedback === "correct" ? "bg-correct" : "bg-incorrect", isReadOnly: true })));
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { OakDraggableFeedback };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { __makeTemplateObject, __rest, __assign } from 'tslib';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { OakBox } from '../../layout-and-structure/OakBox/OakBox.js';
|
|
5
|
+
import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
|
|
6
|
+
import { parseBorder } from '../../../styles/helpers/parseBorder.js';
|
|
7
|
+
import { parseColor } from '../../../styles/helpers/parseColor.js';
|
|
8
|
+
|
|
9
|
+
var StyledFlex = styled(OakFlex)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n outline: ", " ", ";\n outline-style: dashed;\n\n &[data-disabled=\"true\"] {\n outline-color: ", ";\n }\n"], ["\n outline: ", " ", ";\n outline-style: dashed;\n\n &[data-disabled=\"true\"] {\n outline-color: ", ";\n }\n"])), parseBorder("border-solid-l"), parseColor("border-primary"), parseColor("border-neutral"));
|
|
10
|
+
/**
|
|
11
|
+
* A drop zone for a draggable
|
|
12
|
+
*
|
|
13
|
+
* Has no intrinsic drop functionality.
|
|
14
|
+
* It is intended to be used with `useDraggable` from `@dnd-kit/core`
|
|
15
|
+
*/
|
|
16
|
+
var OakDroppable = forwardRef(function (_a, ref) {
|
|
17
|
+
var children = _a.children, labelSlot = _a.labelSlot, isOver = _a.isOver, isHighlighted = _a.isHighlighted, isDisabled = _a.isDisabled, props = __rest(_a, ["children", "labelSlot", "isOver", "isHighlighted", "isDisabled"]);
|
|
18
|
+
var slotBackground = (function () {
|
|
19
|
+
switch (true) {
|
|
20
|
+
case isOver:
|
|
21
|
+
return "bg-primary";
|
|
22
|
+
case isDisabled:
|
|
23
|
+
return "bg-decorative2-subdued";
|
|
24
|
+
default:
|
|
25
|
+
return "bg-neutral";
|
|
26
|
+
}
|
|
27
|
+
})();
|
|
28
|
+
var background = (function () {
|
|
29
|
+
switch (true) {
|
|
30
|
+
case isOver:
|
|
31
|
+
return "bg-decorative2-main";
|
|
32
|
+
case isHighlighted:
|
|
33
|
+
return "bg-decorative5-main";
|
|
34
|
+
default:
|
|
35
|
+
return "bg-decorative2-subdued";
|
|
36
|
+
}
|
|
37
|
+
})();
|
|
38
|
+
return (React.createElement(OakFlex, __assign({ ref: ref, "$background": background, "$pa": "spacing-16", "$borderRadius": "border-radius-l", "$gap": "spacing-16", "$flexDirection": ["column", "row", "row"] }, props),
|
|
39
|
+
React.createElement(StyledFlex, { "$background": slotBackground, "$pa": "spacing-4", "$borderRadius": "border-radius-m2", "$minHeight": "spacing-64", "$flexBasis": "100%", "data-disabled": isDisabled },
|
|
40
|
+
React.createElement(OakBox, { "$width": "100%" }, children)),
|
|
41
|
+
labelSlot && (React.createElement(OakFlex, { "$background": isOver ? "bg-primary" : "bg-decorative2-very-subdued", "$borderRadius": "border-radius-m2", "$alignItems": "center", "$font": "body-1", "$ph": "spacing-20", "$minHeight": "spacing-56", "$pv": "spacing-4", "$flexBasis": "100%", "$width": "100%", "$alignSelf": "center", "data-testid": "label" }, labelSlot))));
|
|
42
|
+
});
|
|
43
|
+
var templateObject_1;
|
|
44
|
+
|
|
45
|
+
export { OakDroppable };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React, { useRef } from 'react';
|
|
3
|
+
import { createPortal } from 'react-dom';
|
|
4
|
+
import { InternalShadowRoundButton } from '../../internal-components/InternalShadowRoundButton/InternalShadowRoundButton.js';
|
|
5
|
+
import { OakBox } from '../../layout-and-structure/OakBox/OakBox.js';
|
|
6
|
+
import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
|
|
7
|
+
import { OakHeading } from '../../typography/OakHeading/OakHeading.js';
|
|
8
|
+
import { useIsScrolled } from '../../../hooks/useIsScrolled.js';
|
|
9
|
+
import { useMounted } from '../../../hooks/useMounted.js';
|
|
10
|
+
import InternalModalTransition from '../../internal-components/InternalModalTransition/InternalModalTransition.js';
|
|
11
|
+
import { OakLink } from '../../navigation/OakLink/OakLink.js';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* Based on the OakModal component, this component is a filter drawer that slides in from the right side of the screen.
|
|
16
|
+
* Designed for mobile and tablet devices
|
|
17
|
+
*
|
|
18
|
+
* ### Callbacks
|
|
19
|
+
* clearAllInputs: used to clear filter options
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
var OakFilterDrawer = function (_a) {
|
|
23
|
+
var isOpen = _a.isOpen, domContainer = _a.domContainer, onClose = _a.onClose, zIndex = _a.zIndex, children = _a.children, clearAllInputs = _a.clearAllInputs, footerSlot = _a.footerSlot, rest = __rest(_a, ["isOpen", "domContainer", "onClose", "zIndex", "children", "clearAllInputs", "footerSlot"]);
|
|
24
|
+
var _b = useIsScrolled(), isScrolled = _b.isScrolled, ObserveScroll = _b.ObserveScroll;
|
|
25
|
+
var transitionRef = useRef(null);
|
|
26
|
+
var isMounted = useMounted();
|
|
27
|
+
if (!isMounted) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
var finalZIndex = typeof zIndex === "number" ? zIndex : "modal-dialog";
|
|
31
|
+
return createPortal(React.createElement(InternalModalTransition, __assign({ isOpen: isOpen, transitionRef: transitionRef, onClose: onClose, finalZIndex: finalZIndex, isLeftHandSide: false }, rest),
|
|
32
|
+
React.createElement(OakFlex, { "$ma": "spacing-24", "$justifyContent": "space-between", "$alignItems": "center" },
|
|
33
|
+
React.createElement(OakLink, { variant: "secondary", onClick: clearAllInputs, "aria-label": "Clear", element: "button" }, "Clear"),
|
|
34
|
+
React.createElement(OakHeading, { "$font": "heading-6", tag: "h3" }, "Filters"),
|
|
35
|
+
React.createElement(InternalShadowRoundButton, { onClick: onClose, "aria-label": "Close", defaultIconBackground: "transparent", defaultIconColor: "icon-primary", defaultTextColor: "transparent", hoverTextColor: "transparent", disabledTextColor: "transparent", hoverIconBackground: "icon-primary", hoverIconColor: "icon-inverted", disabledIconBackground: "transparent", iconBackgroundSize: "spacing-24", iconSize: "spacing-24", iconName: "cross" })),
|
|
36
|
+
React.createElement(OakFlex, { "$flexGrow": 1, "$flexDirection": "column", "$overflow": "auto", "$bt": "border-solid-s", "$borderColor": isScrolled ? "border-neutral-lighter" : "transparent" },
|
|
37
|
+
React.createElement(ObserveScroll, null,
|
|
38
|
+
React.createElement("div", { "data-autofocus-inside": true, tabIndex: -2 },
|
|
39
|
+
React.createElement(OakBox, { "$mh": "spacing-24" }, children)))),
|
|
40
|
+
React.createElement(OakFlex, { "$flexDirection": ["column", "row"], "$bt": "border-solid-s", "$borderColor": "border-neutral-lighter", "$pa": "spacing-12", "$gap": ["spacing-16", "spacing-24"], "$width": "100%" }, footerSlot)), domContainer !== null && domContainer !== void 0 ? domContainer : document.body);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export { OakFilterDrawer };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OakFlex } from '../../layout-and-structure/OakFlex/OakFlex.js';
|
|
3
|
+
import { OakFormInput } from '../../form-elements/OakFormInput/OakFormInput.js';
|
|
4
|
+
import { OakLabel } from '../../form-elements/OakLabel/OakLabel.js';
|
|
5
|
+
import { OakP } from '../../typography/OakP/OakP.js';
|
|
6
|
+
|
|
7
|
+
var OakFormInputWithLabels = function (_a) {
|
|
8
|
+
var label = _a.label, helperText = _a.helperText, placeholder = _a.placeholder, invalid = _a.invalid, invalidText = _a.invalidText, value = _a.value, inputName = _a.inputName, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.required, required = _c === void 0 ? false : _c, defaultValue = _a.defaultValue, _d = _a.onChange, onChange = _d === void 0 ? function () { } : _d, _e = _a.onInitialFocus, onInitialFocus = _e === void 0 ? function () { } : _e, _f = _a.onBlur, onBlur = _f === void 0 ? function () { } : _f;
|
|
9
|
+
var inputId = "input-".concat(label.toLowerCase().replace(/\s+/g, "-"));
|
|
10
|
+
return (React.createElement(OakFlex, { "$width": "100%", "$flexDirection": "column", "$gap": "spacing-8" },
|
|
11
|
+
React.createElement(OakFlex, { "$flexDirection": "column" },
|
|
12
|
+
React.createElement(OakLabel, { "$font": "body-2-bold", htmlFor: inputId }, label),
|
|
13
|
+
helperText && React.createElement(OakP, { "$font": "body-3" }, helperText)),
|
|
14
|
+
React.createElement(OakFormInput, { name: inputName, id: inputId, placeholder: placeholder, invalid: invalid, value: value, onChange: onChange, onInitialFocus: onInitialFocus, onBlur: onBlur, disabled: disabled, "aria-describedby": invalid ? "error-".concat(inputId) : undefined, defaultValue: defaultValue, required: required }),
|
|
15
|
+
invalid && invalidText && (React.createElement(OakP, { id: "error-".concat(inputId), "$font": "body-2", "$color": "text-error" }, invalidText))));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { OakFormInputWithLabels };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { InternalCardWithBackgroundElement } from '../../internal-components/InternalCardWithBackgroundElement/InternalCardWithBackgroundElement.js';
|
|
4
|
+
import { InternalStyledSvg } from '../../internal-components/InternalStyledSvg/InternalStyledSvg.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A flexed card with a hand-drawn filled background
|
|
8
|
+
*
|
|
9
|
+
* An optional `stroke` and `strokeWidth` can be applied to give the background a border
|
|
10
|
+
*/
|
|
11
|
+
var OakHandDrawnCard = function (_a) {
|
|
12
|
+
var _b = _a.$pa, $pa = _b === void 0 ? "spacing-24" : _b, _c = _a.fill, fill = _c === void 0 ? "bg-decorative1-main" : _c, stroke = _a.stroke, strokeWidth = _a.strokeWidth, _d = _a.$width, $width = _d === void 0 ? "fit-content" : _d, props = __rest(_a, ["$pa", "fill", "stroke", "strokeWidth", "$width"]);
|
|
13
|
+
return (React.createElement(InternalCardWithBackgroundElement, __assign({ "$pa": $pa, "$width": $width, backgroundElement: React.createElement(InternalStyledSvg, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 457 120", preserveAspectRatio: "none", "$fill": fill, "$stroke": stroke, "$strokeWidth": strokeWidth },
|
|
14
|
+
React.createElement("path", { d: "M27.442 2.59c5.262-.362 11.96-.656 18.624-.932 4.374-.19 8.748-.371 12.712-.578 1.367-.07 3.042-.087 4.716-.095C65.032.976 66.57.959 67.903.907 91.858-.017 115.164.268 139.325.57l6.22.078c20.333.12 40.768.086 61.033-.13 6.664-.025 13.294-.043 19.957-.06C243.656.415 260.777.363 277.83.234c8.85-.07 17.667-.052 26.518-.035 12.132.026 24.366.052 36.771-.147 8.475-.138 17.633.087 26.757.302 3.725.087 7.45.182 11.107.25 3.69.061 7.347.139 10.969.217 4.511.095 8.988.19 13.499.259 13.464.207 30.619 1.519 30.619 1.519 3.588.449 7.074 1.32 10.286 2.59 2.973 1.304 4.682 4.135 6.391 6.967.717 1.165 1.435 2.33 2.221 3.384.273.363.342.812.376 1.26.034.406.102.82.307 1.175 3.52 6.388 2.427 12.604 1.299 19.044a27.243 27.243 0 0 0-.273 1.658 70.082 70.082 0 0 0 .478 16.273l.205 5.31c.171 4.575.342 9.133.854 13.683.274 2.357.205 4.705.137 7.07-.102 3.238-.205 6.492.547 9.808.547 2.261-.308 4.705-1.162 7.13-.342.993-.684 1.986-.923 2.962-.239.984-.546 1.951-.82 2.926-.342 1.2-.718 2.392-.991 3.6-1.196 5.379-4.511 8.435-11.756 9.134-2.392.233-4.75.518-7.142.855h-6.937c-5.263.371-11.961.656-18.624.932-4.375.19-8.749.371-12.713.579-1.367.069-3.041.086-4.716.095-1.538.008-3.075.025-4.408.086-23.956.924-47.262.639-71.422.337l-6.186-.078a3693.945 3693.945 0 0 0-61.033.129c-6.664.026-13.294.044-19.958.061-17.121.043-34.241.095-51.294.224-8.851.069-17.667.052-26.518.035-12.132-.026-24.366-.052-36.771.147-8.475.138-17.633-.087-26.758-.303-3.725-.086-7.45-.181-11.106-.25-3.69-.06-7.313-.138-10.97-.216-4.51-.095-8.987-.19-13.498-.259-18.932-.293-30.175-1.079-33.66-2.754-1.47-.38-2.871-.837-4.238-1.355-3.076-1.304-4.887-4.135-6.664-6.967-.752-1.165-1.47-2.331-2.29-3.384-.273-.363-.341-.812-.376-1.261-.034-.405-.102-.82-.307-1.174C0 95.664 1.128 89.448 2.324 83.008l.308-1.658c.478-5.421.341-10.869-.513-16.273-.102-1.77-.17-3.548-.24-5.318-.17-4.567-.375-9.125-.888-13.675-.273-2.357-.205-4.705-.136-7.07.102-3.238.205-6.493-.581-9.808-.547-2.262.341-4.705 1.196-7.13.342-.994.717-1.986.99-2.962.24-.984.548-1.96.855-2.927.376-1.2.752-2.39 1.025-3.6C5.605 7.21 9.022 4.154 16.574 3.455c2.495-.233 10.936-.855 10.936-.855l-.069-.009Z", vectorEffect: "non-scaling-stroke" })) }, props)));
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { OakHandDrawnCard };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { OakHandDrawnCard } from '../OakHandDrawnCard/OakHandDrawnCard.js';
|
|
4
|
+
import { OakIcon } from '../../images-and-icons/OakIcon/OakIcon.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A hand-drawn card with an icon in the center
|
|
8
|
+
*/
|
|
9
|
+
var OakHandDrawnCardWithIcon = function (_a) {
|
|
10
|
+
var iconName = _a.iconName, _b = _a.iconColor, iconColor = _b === void 0 ? "text-primary" : _b, _c = _a.iconWidth, iconWidth = _c === void 0 ? ["spacing-64", "spacing-120"] : _c, _d = _a.iconHeight, iconHeight = _d === void 0 ? ["spacing-64", "spacing-120"] : _d, alt = _a.alt, _e = _a.$width, $width = _e === void 0 ? ["spacing-80", "spacing-160"] : _e, _f = _a.$height, $height = _f === void 0 ? ["spacing-80", "spacing-160"] : _f, _g = _a.$alignItems, $alignItems = _g === void 0 ? "center" : _g, _h = _a.$justifyContent, $justifyContent = _h === void 0 ? "center" : _h, props = __rest(_a, ["iconName", "iconColor", "iconWidth", "iconHeight", "alt", "$width", "$height", "$alignItems", "$justifyContent"]);
|
|
11
|
+
return (React.createElement(OakHandDrawnCard, __assign({ "$width": $width, "$height": $height, "$alignItems": $alignItems, "$justifyContent": $justifyContent }, props),
|
|
12
|
+
React.createElement(OakIcon, { iconName: iconName, alt: alt, "$height": iconHeight, "$width": iconWidth, "$colorFilter": iconColor })));
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { OakHandDrawnCardWithIcon };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { InternalStyledSvg } from '../../internal-components/InternalStyledSvg/InternalStyledSvg.js';
|
|
4
|
+
|
|
5
|
+
var HandDrawnHRSvg = function (props) {
|
|
6
|
+
return (React.createElement(InternalStyledSvg, __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 866 8", preserveAspectRatio: "none", height: "100%", width: "100%" }, props),
|
|
7
|
+
React.createElement("g", { clipPath: "url(#clip0_175_6785)" },
|
|
8
|
+
React.createElement("path", { d: "M865.845 2.15897C865.975 1.74492 865.563 1.33087 864.955 1.33087C788.833 1.21257 638.585 4.00739 558.84 1.30129C560.814 1.22736 562.55 1.36044 563.287 1.18299C546.019 0.946396 526.408 1.10906 509.119 1.44917C530.292 -0.0295749 543.785 1.41959 562.289 0.931608C559.556 0.872458 545.347 0.842884 554.436 0.798521C547.538 0.369686 533.003 0.754159 530.27 0.621072C522.113 0.177449 549.794 0.724584 549.23 0.399261C544.219 0.0295749 524.586 0.295749 522.937 0C522.959 0.369686 522.352 0.295749 522.612 0.399261C423.669 0.724584 317.892 0.340111 218.666 0.828096C218.861 0.828096 219.013 0.828096 219.078 0.857671C218.753 0.902033 217.451 0.857671 218.579 0.828096C154.909 1.71534 98.6582 -0.502773 49.7396 2.18854C59.3281 0.0887246 12.145 1.39002 8.34861 1.52311C2.75172 1.44917 6.69991 1.96673 8.13168 1.67098C8.43539 2.91312 0.799314 1.73013 2.20938 3.12015C-18.7247 12.7024 115.622 4.7024 130.504 6.96488C127.011 6.21072 147.056 7.34935 148.705 6.93531C147.859 6.89094 146.362 6.78743 144.692 6.75786C140.396 6.72828 151.525 6.07763 149.486 6.93531C150.354 7.18669 153.282 6.44732 152.935 6.93531C154.714 7.06839 166.385 5.75231 158.814 6.92052C165.647 6.52126 168.077 7.68946 162.046 6.26987C222.332 7.55638 283.247 5.8854 342.34 6.29945C458.66 5.97412 569.839 6.10721 682.124 6.69871C679.932 6.22551 684.532 6.07763 683.36 6.69871C715.076 6.71349 731.801 6.81701 762.432 6.99446C757.486 6.72828 758.68 6.13678 763.821 6.55083C784.278 7.51202 841.353 7.73383 863.784 6.96488C863.35 6.68392 864.804 6.77264 864.782 6.92052C864.955 5.84104 865.259 5.84104 864.717 5.95934C864.76 5.95934 863.697 6.32902 864.001 5.73752C864.153 5.44177 864.999 5.60444 864.088 5.30869C864.652 5.30869 866.192 4.90943 864.608 5.02773C861.723 4.17006 866.778 4.99815 865.91 4.42144C865.519 4.12569 865.606 2.95749 865.845 2.15897ZM526.43 0.606285C528.448 0.650647 526.539 0.754159 525.476 0.606285C524.825 0.547135 525.042 0.547135 526.43 0.606285ZM17.0694 1.61183C17.0694 1.61183 17.3731 1.58226 17.308 1.62662C17.2646 1.6414 17.0694 1.6414 17.0694 1.61183ZM18.0889 1.15342C18.1974 1.15342 18.2408 1.15342 18.3059 1.16821H17.8286C17.8286 1.16821 17.9805 1.15342 18.0889 1.15342ZM18.371 1.41959C18.371 1.41959 18.3059 1.40481 18.371 1.39002V1.41959ZM36.8971 2.04067C30.6928 1.68577 40.9321 1.62662 42.6242 2.08503C42.4072 2.08503 37.4611 2.04067 36.8971 2.04067ZM63.6451 1.34566C67.5933 1.34566 62.4302 1.41959 61.736 1.36044C62.018 1.34566 62.8641 1.34566 63.6451 1.34566ZM84.8395 3.88909C84.5141 3.88909 84.6226 3.87431 84.8395 3.87431V3.88909ZM92.1068 1.58226C80.2405 2.24769 61.6926 1.878 59.0461 1.61183C67.2028 1.43438 85.2734 1.52311 95.3608 1.47874C94.3629 1.47874 93.2565 1.52311 92.1068 1.58226ZM97.183 2.41035C96.6841 2.38078 97.5084 2.30684 97.4867 2.41035C97.4867 2.41035 97.3566 2.41035 97.183 2.41035ZM95.9899 1.47874C96.8142 1.44917 97.5518 1.46396 98.1809 1.47874C97.5084 1.49353 96.7709 1.49353 95.9899 1.47874ZM100.589 1.53789C100.589 1.53789 99.7862 1.50832 98.5714 1.47874C100.415 1.50832 101.348 1.46396 102.368 1.52311C102.238 1.53789 101.587 1.53789 100.589 1.53789ZM101.869 1.18299C101.869 1.18299 102.997 1.15342 103.105 1.18299C102.867 1.21257 101.999 1.21257 101.869 1.18299ZM107.704 1.84843C107.704 1.84843 107.509 1.84843 107.422 1.83364C107.769 1.83364 107.856 1.83364 107.704 1.84843ZM139.29 1.21257C138.704 1.18299 139.767 1.13863 139.724 1.18299C139.659 1.19778 139.463 1.21257 139.29 1.21257ZM141.633 5.6488C140.982 5.6488 141.199 5.60444 141.633 5.61922V5.6488ZM177.882 6.50647C162.654 6.71349 183.132 5.97412 183.588 5.73752C183.588 5.78189 181.006 6.50647 177.882 6.50647ZM185.779 0.946396H184.564C183.631 0.916821 186.56 0.931608 185.779 0.946396ZM209.945 1.00555C210.488 0.975971 210.813 0.975971 211.355 1.00555C212.18 1.02033 209.099 1.02033 209.945 1.00555ZM202.244 6.41775C199.077 6.46211 192.873 6.50647 188.989 6.66913C187.818 5.67837 202.873 6.38817 202.244 6.41775ZM213.264 6.41775C212.874 6.46211 208.492 6.46211 208.231 6.43253C207.667 6.50647 214.175 5.45656 213.264 6.41775ZM218.905 6.19593C218.601 6.19593 215.434 6.38817 215.087 6.38817C215.412 6.28466 220.336 6.01849 218.905 6.19593ZM226.801 0.857671C226.953 0.842884 227.343 0.842884 227.495 0.857671C227.3 0.872458 226.996 0.872458 226.801 0.857671ZM256.152 0.768946C258.018 0.768946 255.914 0.783734 255.588 0.783734C255.718 0.768946 255.914 0.768946 256.152 0.768946ZM252.855 4.00739C252.291 3.97782 254.742 3.26802 254.634 3.62292C254.46 3.66728 253.115 4.05176 252.855 4.00739ZM257.757 4.99815C257.302 4.92422 255.415 4.33272 254.677 4.43623C255.501 4.24399 258.625 4.87985 257.757 4.99815ZM254.785 3.46026C255.133 3.43068 257.541 3.38632 257.259 3.43068C257.888 3.46026 254.937 3.48983 254.785 3.46026ZM259.363 3.59335C258.669 3.59335 257.757 3.10536 257.757 3.07579C257.974 3.07579 261.836 2.88355 259.363 3.59335ZM258.886 2.01109C256.456 2.04067 254.72 1.65619 254.417 1.62662C253.332 1.44917 266.543 1.70055 258.886 2.01109ZM264.157 4.64325L263.181 4.02218C262.226 3.44547 265.35 4.40665 264.157 4.64325ZM289.712 3.50462C290.71 3.50462 291.686 4.24399 290.948 4.25878C288.432 3.90388 285.655 2.91312 289.712 3.50462ZM271.424 2.20333C273.203 2.45471 281.577 1.00555 275.394 2.54344C275.763 2.42514 267.389 2.15897 271.424 2.20333ZM275.893 3.12015C276.717 2.79482 278.345 3.6525 278.019 4.09612C277.542 4.09612 275.893 3.20887 275.893 3.12015ZM284.223 2.97227C281.447 2.45471 286.935 2.21811 287.022 2.07024C287.022 2.1146 285.351 3.01664 284.223 2.97227ZM290.862 5.36784C288.822 5.36784 287.477 5.33826 287.477 5.33826C286.653 3.91867 298.172 6.0037 290.862 5.36784ZM296.719 5.07209C293.053 4.39187 298.671 4.5841 298.91 4.61368C298.91 4.64325 297.717 5.07209 296.719 5.07209ZM317.219 3.43068C320.126 4.62847 316.178 3.7708 315.744 3.4159C315.917 3.38632 316.612 3.40111 317.219 3.43068ZM304.702 4.39187C302.967 5.13124 304.116 4.03697 304.42 3.93346C305.526 3.69686 306.459 4.12569 304.702 4.39187ZM307.587 3.35675C307.457 3.16451 302.858 2.43993 305.808 2.67653C306.741 2.5878 307.001 2.7061 305.895 2.67653C306.958 2.7061 307.978 3.32717 307.587 3.35675ZM310.928 2.54344C309.561 2.54344 311.253 1.78928 312.533 1.98152C312.403 1.9963 311.362 2.54344 310.928 2.54344ZM319.649 5.56007C320.343 5.58965 309.323 5.66359 314.572 5.54529C317.284 6.31423 322.751 2.98706 319.649 5.56007ZM329.411 5.24954C326.808 5.27911 331.884 4.64325 331.992 4.61368C332.339 4.67283 330.235 5.2939 329.411 5.24954ZM335.355 2.24769C334.704 2.01109 338.023 2.5878 338.413 2.29205C338.023 2.41035 335.897 3.00185 335.355 2.24769ZM346.201 4.12569C343.338 4.12569 344.097 3.97782 346.57 3.82994C349.499 4.52495 348.696 4.42144 346.201 4.12569ZM359.977 3.01664C359.977 3.01664 355.421 3.07579 355.248 3.061C355.226 3.19409 362.211 1.49353 359.977 3.01664ZM413.364 0.902033C414.102 0.857671 414.492 0.872459 414.536 0.902033C415.555 1.70055 411.889 0.842884 413.364 0.902033ZM371.886 1.52311C370.238 2.51386 367.656 1.52311 365.704 1.52311C365.704 1.47874 371.322 1.46396 371.886 1.52311ZM364.966 3.03142C363.816 3.87431 362.905 3.81516 364.25 2.60259C365.205 1.90758 366.919 2.01109 364.966 3.03142ZM370.954 6.01849C369.999 6.01849 366.81 6.01848 366.485 5.91497C367.266 5.8854 375.574 4.92422 370.954 6.01849ZM378.546 6.01849C375.943 5.90019 376.117 5.2939 377.722 5.4122C379.956 5.23475 382.581 5.50093 378.546 6.01849ZM387.267 3.57856C386.312 3.56377 386.963 2.76525 388.178 2.76525C390.413 2.98706 389.87 3.51941 387.267 3.57856ZM393.623 1.80407C389.545 1.58226 393.341 1.12384 394.795 1.34566C397.506 1.00555 397.745 1.37523 393.623 1.80407ZM401.303 5.84104C396.942 5.87061 401.216 5.38263 402.734 5.24954C403.429 5.2939 402.301 5.84104 401.303 5.84104ZM405.207 4.03697C405.164 4.14048 404.904 4.52495 403.472 4.02218C400.934 2.76525 406.162 3.82995 405.207 4.03697ZM408.722 4.11091C407.116 4.11091 404.253 3.68207 407.42 3.68207C407.746 2.60259 410.761 3.93346 408.722 4.11091ZM410.848 1.62662C409.958 1.46396 406.704 1.16821 409.546 0.680222C410.11 0.680222 413.581 1.81885 410.848 1.62662ZM412.93 5.4122C413.147 5.38263 414.232 4.33272 415.902 4.85028L412.93 5.4122ZM429.027 0.857671C430.393 0.857671 434.71 0.813309 435.708 0.887246C436.424 1.25693 425.643 2.52865 429.027 0.857671ZM437.878 0.857671C438.181 0.813309 439.309 0.828096 439.591 0.916821C431.587 2.83919 437.14 0.946396 437.878 0.857671ZM451.653 5.35305C451.176 5.35305 448.898 4.83549 448.898 4.80592C448.898 4.79113 450.807 4.5841 451.111 4.5841C453.562 4.65804 452.412 5.44177 451.653 5.35305ZM480.245 3.4159C478.661 3.6525 474.822 3.6525 474.822 3.4159C474.149 3.38632 481.568 3.14972 480.245 3.4159ZM485.69 5.32348C473.325 5.45656 491.829 4.64325 490.983 5.0573C490.983 5.23475 491.46 5.23475 485.69 5.32348ZM495.018 2.51386C494.454 2.51386 493.977 2.43993 493.977 2.36599C494.194 1.98152 497.252 2.45471 495.018 2.51386ZM502.524 2.26248C502.307 2.45471 501.656 2.49908 500.159 2.60259C492.285 2.85397 502.871 1.65619 502.524 2.26248ZM506.429 2.39556C510.377 2.3512 507.275 2.89834 505.105 2.41035C505.214 2.39556 505.648 2.39556 506.429 2.39556ZM506.559 3.13494C507.926 3.13494 509.01 3.22366 509.01 3.31238C508.338 3.4159 501.136 3.12015 506.559 3.13494ZM522.243 5.75231C518.36 6.38817 511.418 5.91497 507.253 5.4122C510.16 5.66359 522.547 5.33826 522.243 5.75231ZM590.057 3.48983C589.319 3.59335 587.128 3.59335 586.391 3.48983C587.367 3.2976 588.972 3.31238 590.057 3.48983ZM582.551 2.20333C586.109 1.98152 588.083 1.98152 588.083 2.20333C588.777 2.41035 577.019 2.61738 582.551 2.20333ZM564.545 1.71534C566.302 1.71534 566.064 2.83919 564.155 2.07024C563.699 1.86322 563.374 1.67098 564.545 1.71534ZM558.84 1.71534C560.619 1.7597 562.007 1.83364 563.049 2.07024C561.899 2.29205 549.273 1.70055 558.84 1.71534ZM553.438 3.72643C543.893 3.4159 556.107 3.20887 556.801 3.72643C556.801 3.87431 555.564 3.87431 553.438 3.72643ZM562.897 3.23845C561.205 3.26802 556.15 2.92791 560.749 2.89834C562.398 2.86876 567.474 3.19409 562.897 3.23845ZM567.17 2.54344C565.261 2.54344 563.96 2.54344 563.504 2.4695C565.977 2.17375 576.846 2.57301 567.17 2.54344ZM573.939 5.51571C571.704 5.51571 569.708 5.42699 569.708 5.35305C570.62 4.89464 582.79 5.45656 573.939 5.51571ZM588.885 5.67837C588.712 5.87061 575.37 6.15157 583.354 5.57486C586.911 5.23475 590.859 5.33826 588.885 5.67837ZM595.979 4.09612C594.678 4.18484 594.743 5.14603 593.137 3.99261C593.051 3.99261 587.28 4.37708 587.193 4.37708C588.517 3.50462 594.981 3.80037 595.979 4.09612ZM602.444 2.49908C606.913 2.54344 602.097 2.61738 600.795 2.52865C600.795 2.52865 601.489 2.49908 602.444 2.49908ZM601.576 4.53974C601.12 4.53974 600.556 4.4658 600.405 4.37708C599.428 3.66728 603.767 4.76155 601.576 4.53974ZM605.112 4.42144C603.724 4.42144 602.769 4.25878 602.422 4.09612C602.986 3.44547 611.468 4.28836 605.112 4.42144ZM622.315 5.24954C616.544 5.14603 619.365 3.68207 624.311 4.74677C626.09 4.99815 625.612 5.24954 622.315 5.24954ZM654.269 2.97227C655.788 2.8244 656.482 2.8244 657.068 2.97227C657.849 3.1793 651.926 3.13494 654.269 2.97227ZM651.124 2.39556C656.243 2.43993 650.712 2.5878 649.714 2.52865C648.651 2.39556 649.28 2.39556 651.124 2.39556ZM633.943 5.51571C634.767 5.11645 637.066 5.13124 637.826 5.51571C636.763 5.7671 635.006 5.7671 633.943 5.51571ZM646.047 3.97782C638.368 3.59335 651.774 3.72643 653.553 3.97782C660.907 4.89464 647.241 4.25878 646.047 3.97782ZM653.271 5.97412C652.859 5.72274 661.211 5.73752 660.777 5.97412C660.322 6.34381 654.031 6.16636 653.271 5.97412ZM667.611 3.09057C661.276 3.2976 665.398 1.89279 669.563 2.92791C670.691 3.09057 670.236 3.09057 667.611 3.09057ZM676.18 6.3586C675.789 6.38817 669.715 6.53605 669.476 6.38817C670.214 5.91497 676.245 6.37338 676.657 6.3586C676.375 6.38817 676.223 6.3586 676.18 6.3586ZM683.121 4.21442C682.774 4.21442 682.514 4.03697 682.514 3.85952C682.579 2.83919 684.814 4.3475 683.121 4.21442ZM696.875 5.5305C694.445 5.75231 693.122 5.75231 693.122 5.5305C692.558 5.32348 700.476 5.11645 696.875 5.5305ZM699.283 4.61368C691.17 4.48059 701.713 3.99261 702.754 4.49538C702.754 4.49538 701.257 4.61368 699.283 4.61368ZM701.474 3.80037C693.231 3.84473 704.598 3.1793 705.205 3.66728C705.205 3.80037 703.643 3.80037 701.474 3.80037ZM706.03 5.81146C705.27 5.11645 709.436 5.70795 709.327 5.81146C709.978 6.16636 706.811 6.16636 706.03 5.81146ZM716.746 6.56562C716.985 6.90573 706.919 6.50647 711.844 6.26987C714.815 6.122 717.679 6.26987 716.746 6.56562ZM718.091 4.22921C714.75 4.19963 714.707 3.72643 718.091 3.82994C721.28 3.72643 721.237 4.19963 718.091 4.22921ZM770.459 3.20887C772.455 3.20887 773.995 3.44547 773.995 3.68207C772.889 4.56932 763.083 3.25324 770.459 3.20887ZM730.934 4.08133C730.5 4.08133 730.76 3.96303 731.715 3.84473C736.856 3.28281 732.322 4.36229 730.934 4.08133ZM735.663 6.49168C732.799 6.49168 732.799 5.95934 735.663 5.95934C738.44 5.95934 738.44 6.49168 735.663 6.49168ZM737.854 4.49538C736.986 4.49538 736.27 4.42144 736.27 4.34751C735.771 4.09612 741.108 4.45102 737.854 4.49538ZM738.591 3.97782C737.767 3.97782 736.682 3.94824 736.27 3.84473C736.791 3.68207 744.687 3.91867 738.591 3.97782ZM756.922 5.5305C723.276 5.90019 765.556 4.73198 769.83 5.33826C769.83 5.33826 763.843 5.5305 756.922 5.5305ZM767.726 6.83179C758.745 6.56562 775.687 6.68392 775.34 6.83179C776.056 6.96488 772.997 6.96488 767.726 6.83179ZM785.124 4.96858C784.451 5.73752 778.572 6.75786 782.022 5.78189C782.868 5.54529 788.009 3.60813 785.124 4.96858ZM787.705 6.4769C789.289 6.04806 793.454 6.07763 795.016 6.4769C793.02 6.75786 789.701 6.75786 787.705 6.4769ZM808.206 5.87061C802.066 5.47135 813.868 4.61368 811.633 5.58965C811.633 6.13678 811.112 6.13678 808.206 5.87061ZM839.986 5.57486C838.229 5.57486 836.559 5.57486 836.277 5.4122C836.993 4.53974 847.601 5.58965 839.986 5.57486ZM858.404 5.94455C847.839 5.7671 869.988 0.635859 859.163 5.7671C858.361 6.21072 859.163 6.4769 858.404 5.94455ZM862.461 5.8854C862.461 5.97412 859.424 6.40296 859.185 6.37338C860.009 6.22551 863.61 4.15527 862.461 5.8854ZM864.088 5.07209C864.088 5.07209 864.174 5.04251 864.218 5.04251C864.348 5.14603 863.914 5.19039 864.088 5.07209Z", fill: "inherit" }))));
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { HandDrawnHRSvg };
|