@codecademy/brand 6.0.0-alpha.0839dde39.0 → 6.0.0-alpha.d201d4c8f.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/AbbreviatedCommunityEventCard/index.cjs.map +1 -1
- package/dist/AbbreviatedCommunityEventCard/index.d.cts.map +1 -1
- package/dist/AbbreviatedCommunityEventCard/index.d.ts.map +1 -1
- package/dist/AbbreviatedCommunityEventCard/index.js.map +1 -1
- package/dist/AccordionAreaDeprecated/index.cjs.map +1 -1
- package/dist/AccordionAreaDeprecated/index.d.cts +0 -1
- package/dist/AccordionAreaDeprecated/index.d.cts.map +1 -1
- package/dist/AccordionAreaDeprecated/index.d.ts +0 -1
- package/dist/AccordionAreaDeprecated/index.d.ts.map +1 -1
- package/dist/AccordionAreaDeprecated/index.js.map +1 -1
- package/dist/AccordionButtonDeprecated/ButtonDeprecated/index.cjs +1 -0
- package/dist/AccordionButtonDeprecated/ButtonDeprecated/index.cjs.map +1 -1
- package/dist/AccordionButtonDeprecated/ButtonDeprecated/index.js +1 -1
- package/dist/AccordionButtonDeprecated/ButtonDeprecated/index.js.map +1 -1
- package/dist/AccordionButtonDeprecated/ButtonDeprecatedBase/index.cjs.map +1 -1
- package/dist/AccordionButtonDeprecated/ButtonDeprecatedBase/index.d.cts +0 -1
- package/dist/AccordionButtonDeprecated/ButtonDeprecatedBase/index.d.cts.map +1 -1
- package/dist/AccordionButtonDeprecated/ButtonDeprecatedBase/index.d.ts +0 -1
- package/dist/AccordionButtonDeprecated/ButtonDeprecatedBase/index.d.ts.map +1 -1
- package/dist/AccordionButtonDeprecated/ButtonDeprecatedBase/index.js.map +1 -1
- package/dist/AccordionButtonDeprecated/index.cjs.map +1 -1
- package/dist/AccordionButtonDeprecated/index.d.cts +0 -1
- package/dist/AccordionButtonDeprecated/index.d.cts.map +1 -1
- package/dist/AccordionButtonDeprecated/index.d.ts +0 -1
- package/dist/AccordionButtonDeprecated/index.d.ts.map +1 -1
- package/dist/AccordionButtonDeprecated/index.js.map +1 -1
- package/dist/AccordionDeprecated/index.cjs.map +1 -1
- package/dist/AccordionDeprecated/index.d.cts +0 -1
- package/dist/AccordionDeprecated/index.d.cts.map +1 -1
- package/dist/AccordionDeprecated/index.d.ts +0 -1
- package/dist/AccordionDeprecated/index.d.ts.map +1 -1
- package/dist/AccordionDeprecated/index.js.map +1 -1
- package/dist/AppBar/AppBarSection.cjs.map +1 -1
- package/dist/AppBar/AppBarSection.d.cts +0 -1
- package/dist/AppBar/AppBarSection.d.cts.map +1 -1
- package/dist/AppBar/AppBarSection.d.ts +0 -1
- package/dist/AppBar/AppBarSection.d.ts.map +1 -1
- package/dist/AppBar/AppBarSection.js.map +1 -1
- package/dist/AppBar/index.cjs +3 -4
- package/dist/AppBar/index.cjs.map +1 -1
- package/dist/AppBar/index.d.cts +1 -2
- package/dist/AppBar/index.d.cts.map +1 -1
- package/dist/AppBar/index.d.ts +1 -2
- package/dist/AppBar/index.d.ts.map +1 -1
- package/dist/AppBar/index.js +3 -4
- package/dist/AppBar/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/MarketingBanner.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/MarketingBanner.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.cjs +1 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.js +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.cjs +1 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.js +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.cts +2 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.cts.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +2 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderDietCard/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderDietCard/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.cts +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.cts.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderFeatureCard/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderFeatureCard/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.cts +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.cts.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/elements.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/elements.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.cjs +1 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.js +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.cts +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.cts.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.cjs +1 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.js +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.cjs +1 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.js +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.cjs +1 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.js +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/consts.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/consts.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.cts +2 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.cts.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +2 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileNavMenu.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileNavMenu.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/PanelLayout.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/PanelLayout.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/elements.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/elements.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.js.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSkillTile/index.cjs.map +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderSkillTile/index.js.map +1 -1
- package/dist/AppHeader/Search/DefaultResults.cjs.map +1 -1
- package/dist/AppHeader/Search/DefaultResults.js.map +1 -1
- package/dist/AppHeader/Search/QuizAndHelpCenterLinks.cjs +1 -0
- package/dist/AppHeader/Search/QuizAndHelpCenterLinks.cjs.map +1 -1
- package/dist/AppHeader/Search/QuizAndHelpCenterLinks.js +1 -1
- package/dist/AppHeader/Search/QuizAndHelpCenterLinks.js.map +1 -1
- package/dist/AppHeader/Search/SearchButton.cjs.map +1 -1
- package/dist/AppHeader/Search/SearchButton.js.map +1 -1
- package/dist/AppHeader/Search/SearchPane.cjs.map +1 -1
- package/dist/AppHeader/Search/SearchPane.js.map +1 -1
- package/dist/AppHeader/Search/SearchTrackingProvider/index.cjs +1 -0
- package/dist/AppHeader/Search/SearchTrackingProvider/index.cjs.map +1 -1
- package/dist/AppHeader/Search/SearchTrackingProvider/index.js +1 -1
- package/dist/AppHeader/Search/SearchTrackingProvider/index.js.map +1 -1
- package/dist/AppHeader/Search/SearchWorker/PromiseLookup.cjs.map +1 -1
- package/dist/AppHeader/Search/SearchWorker/PromiseLookup.js.map +1 -1
- package/dist/AppHeader/Search/SearchWorker/index.d.cts +0 -1
- package/dist/AppHeader/Search/SearchWorker/index.d.cts.map +1 -1
- package/dist/AppHeader/Search/SearchWorker/index.d.ts +0 -1
- package/dist/AppHeader/Search/SearchWorker/index.d.ts.map +1 -1
- package/dist/AppHeader/Search/SearchWorker/types.cjs.map +1 -1
- package/dist/AppHeader/Search/SearchWorker/types.d.cts +1 -1
- package/dist/AppHeader/Search/SearchWorker/types.d.cts.map +1 -1
- package/dist/AppHeader/Search/SearchWorker/types.d.ts +1 -1
- package/dist/AppHeader/Search/SearchWorker/types.d.ts.map +1 -1
- package/dist/AppHeader/Search/SearchWorker/types.js.map +1 -1
- package/dist/AppHeader/Search/SearchWorker/worker.cjs.map +1 -1
- package/dist/AppHeader/Search/SearchWorker/worker.js.map +1 -1
- package/dist/AppHeader/Search/consts.cjs.map +1 -1
- package/dist/AppHeader/Search/consts.d.cts.map +1 -1
- package/dist/AppHeader/Search/consts.d.ts.map +1 -1
- package/dist/AppHeader/Search/consts.js.map +1 -1
- package/dist/AppHeader/Search/hooks/useUrlChangeDetection.cjs.map +1 -1
- package/dist/AppHeader/Search/hooks/useUrlChangeDetection.js.map +1 -1
- package/dist/AppHeader/Search/types.d.cts +2 -0
- package/dist/AppHeader/Search/types.d.cts.map +1 -1
- package/dist/AppHeader/Search/types.d.ts +2 -0
- package/dist/AppHeader/Search/types.d.ts.map +1 -1
- package/dist/AppHeader/Search/useHeaderSearch.cjs.map +1 -1
- package/dist/AppHeader/Search/useHeaderSearch.js.map +1 -1
- package/dist/AppHeader/index.cjs +10 -0
- package/dist/AppHeader/index.cjs.map +1 -1
- package/dist/AppHeader/index.d.cts +2 -2
- package/dist/AppHeader/index.d.cts.map +1 -1
- package/dist/AppHeader/index.d.ts +2 -2
- package/dist/AppHeader/index.d.ts.map +1 -1
- package/dist/AppHeader/index.js +1 -1
- package/dist/AppHeader/index.js.map +1 -1
- package/dist/AppHeader/shared/elements.cjs.map +1 -1
- package/dist/AppHeader/shared/elements.d.cts +2 -0
- package/dist/AppHeader/shared/elements.d.ts +3 -1
- package/dist/AppHeader/shared/elements.js.map +1 -1
- package/dist/AppHeader/shared/index.cjs +14 -0
- package/dist/AppHeader/shared/index.d.cts +5 -1
- package/dist/AppHeader/shared/index.d.ts +5 -1
- package/dist/AppHeader/shared/index.js +2 -0
- package/dist/AppHeader/shared/keyboardNav.d.cts +1 -1
- package/dist/AppHeader/shared/keyboardNav.d.ts +1 -1
- package/dist/AppHeader/shared/mockAppHeaderItems.d.cts +1 -1
- package/dist/AppHeader/shared/mockAppHeaderItems.d.ts +1 -1
- package/dist/AppHeader/shared/types.d.cts +2 -2
- package/dist/AppHeader/shared/types.d.cts.map +1 -1
- package/dist/AppHeader/shared/types.d.ts +2 -2
- package/dist/AppHeader/shared/types.d.ts.map +1 -1
- package/dist/AppHeader/shared/utils.cjs.map +1 -1
- package/dist/AppHeader/shared/utils.js.map +1 -1
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.cjs.map +1 -1
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.cts +1 -1
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.cts.map +1 -1
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts +1 -1
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts.map +1 -1
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.js.map +1 -1
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.cjs.map +1 -1
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.js.map +1 -1
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.cjs.map +1 -1
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.cts +0 -1
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.cts.map +1 -1
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +0 -1
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts.map +1 -1
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js.map +1 -1
- package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.cjs.map +1 -1
- package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.js.map +1 -1
- package/dist/AppHeaderMobile/index.cjs.map +1 -1
- package/dist/AppHeaderMobile/index.d.cts +3 -1
- package/dist/AppHeaderMobile/index.d.cts.map +1 -1
- package/dist/AppHeaderMobile/index.d.ts +3 -1
- package/dist/AppHeaderMobile/index.d.ts.map +1 -1
- package/dist/AppHeaderMobile/index.js.map +1 -1
- package/dist/Avatar/index.cjs.map +1 -1
- package/dist/Avatar/index.d.cts +0 -1
- package/dist/Avatar/index.d.cts.map +1 -1
- package/dist/Avatar/index.d.ts +0 -1
- package/dist/Avatar/index.d.ts.map +1 -1
- package/dist/Avatar/index.js.map +1 -1
- package/dist/AvatarChooser/index.cjs.map +1 -1
- package/dist/AvatarChooser/index.d.cts +0 -1
- package/dist/AvatarChooser/index.d.cts.map +1 -1
- package/dist/AvatarChooser/index.d.ts +0 -1
- package/dist/AvatarChooser/index.d.ts.map +1 -1
- package/dist/AvatarChooser/index.js.map +1 -1
- package/dist/BackToTopAnchor/index.cjs.map +1 -1
- package/dist/BackToTopAnchor/index.d.cts +7 -3
- package/dist/BackToTopAnchor/index.d.cts.map +1 -1
- package/dist/BackToTopAnchor/index.d.ts +7 -3
- package/dist/BackToTopAnchor/index.d.ts.map +1 -1
- package/dist/BackToTopAnchor/index.js.map +1 -1
- package/dist/Banner/CountdownTimer.cjs +2 -1
- package/dist/Banner/CountdownTimer.cjs.map +1 -1
- package/dist/Banner/CountdownTimer.d.cts +0 -1
- package/dist/Banner/CountdownTimer.d.cts.map +1 -1
- package/dist/Banner/CountdownTimer.d.ts +0 -1
- package/dist/Banner/CountdownTimer.d.ts.map +1 -1
- package/dist/Banner/CountdownTimer.js +2 -1
- package/dist/Banner/CountdownTimer.js.map +1 -1
- package/dist/Banner/EnhancedBanner.cjs.map +1 -1
- package/dist/Banner/EnhancedBanner.d.cts +0 -1
- package/dist/Banner/EnhancedBanner.d.cts.map +1 -1
- package/dist/Banner/EnhancedBanner.d.ts +0 -1
- package/dist/Banner/EnhancedBanner.d.ts.map +1 -1
- package/dist/Banner/EnhancedBanner.js.map +1 -1
- package/dist/Banner/index.cjs.map +1 -1
- package/dist/Banner/index.d.cts +0 -1
- package/dist/Banner/index.d.cts.map +1 -1
- package/dist/Banner/index.d.ts +0 -1
- package/dist/Banner/index.d.ts.map +1 -1
- package/dist/Banner/index.js.map +1 -1
- package/dist/BetaSticker/index.cjs.map +1 -1
- package/dist/BetaSticker/index.d.cts +0 -1
- package/dist/BetaSticker/index.d.cts.map +1 -1
- package/dist/BetaSticker/index.d.ts +0 -1
- package/dist/BetaSticker/index.d.ts.map +1 -1
- package/dist/BetaSticker/index.js.map +1 -1
- package/dist/CareerPathCard/index.cjs.map +1 -1
- package/dist/CareerPathCard/index.d.cts +0 -1
- package/dist/CareerPathCard/index.d.cts.map +1 -1
- package/dist/CareerPathCard/index.d.ts +0 -1
- package/dist/CareerPathCard/index.d.ts.map +1 -1
- package/dist/CareerPathCard/index.js.map +1 -1
- package/dist/Carousel/elements.cjs.map +1 -1
- package/dist/Carousel/elements.js.map +1 -1
- package/dist/Carousel/index.cjs.map +1 -1
- package/dist/Carousel/index.d.cts +1 -1
- package/dist/Carousel/index.d.cts.map +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts.map +1 -1
- package/dist/Carousel/index.js.map +1 -1
- package/dist/CertificationPathCard/index.cjs.map +1 -1
- package/dist/CertificationPathCard/index.d.cts +0 -1
- package/dist/CertificationPathCard/index.d.cts.map +1 -1
- package/dist/CertificationPathCard/index.d.ts +0 -1
- package/dist/CertificationPathCard/index.d.ts.map +1 -1
- package/dist/CertificationPathCard/index.js.map +1 -1
- package/dist/Coaching/coachingOfferingIcons.d.cts +0 -1
- package/dist/Coaching/coachingOfferingIcons.d.cts.map +1 -1
- package/dist/Coaching/coachingOfferingIcons.d.ts +0 -1
- package/dist/Coaching/coachingOfferingIcons.d.ts.map +1 -1
- package/dist/Coaching/coachingOfferings.cjs.map +1 -1
- package/dist/Coaching/coachingOfferings.d.cts.map +1 -1
- package/dist/Coaching/coachingOfferings.d.ts.map +1 -1
- package/dist/Coaching/coachingOfferings.js.map +1 -1
- package/dist/Coaching/index.cjs +3 -0
- package/dist/Coaching/index.d.cts +2 -1
- package/dist/Coaching/index.d.ts +2 -1
- package/dist/Coaching/index.js +2 -0
- package/dist/CoachingSessionCard/index.cjs +28 -9
- package/dist/CoachingSessionCard/index.cjs.map +1 -1
- package/dist/CoachingSessionCard/index.d.cts.map +1 -1
- package/dist/CoachingSessionCard/index.d.ts.map +1 -1
- package/dist/CoachingSessionCard/index.js +29 -10
- package/dist/CoachingSessionCard/index.js.map +1 -1
- package/dist/CommunityEventCard/EventTypeIcon.cjs +1 -0
- package/dist/CommunityEventCard/EventTypeIcon.cjs.map +1 -1
- package/dist/CommunityEventCard/EventTypeIcon.js +1 -1
- package/dist/CommunityEventCard/EventTypeIcon.js.map +1 -1
- package/dist/CommunityEventCard/index.cjs.map +1 -1
- package/dist/CommunityEventCard/index.d.cts.map +1 -1
- package/dist/CommunityEventCard/index.d.ts.map +1 -1
- package/dist/CommunityEventCard/index.js.map +1 -1
- package/dist/CommunityEventToast/index.cjs.map +1 -1
- package/dist/CommunityEventToast/index.d.cts +0 -1
- package/dist/CommunityEventToast/index.d.cts.map +1 -1
- package/dist/CommunityEventToast/index.d.ts +0 -1
- package/dist/CommunityEventToast/index.d.ts.map +1 -1
- package/dist/CommunityEventToast/index.js.map +1 -1
- package/dist/ContentGroupBaseCard/helpers.d.cts +0 -1
- package/dist/ContentGroupBaseCard/helpers.d.cts.map +1 -1
- package/dist/ContentGroupBaseCard/helpers.d.ts +0 -1
- package/dist/ContentGroupBaseCard/helpers.d.ts.map +1 -1
- package/dist/ContentGroupBaseCard/index.cjs.map +1 -1
- package/dist/ContentGroupBaseCard/index.d.cts +0 -1
- package/dist/ContentGroupBaseCard/index.d.cts.map +1 -1
- package/dist/ContentGroupBaseCard/index.d.ts +0 -1
- package/dist/ContentGroupBaseCard/index.d.ts.map +1 -1
- package/dist/ContentGroupBaseCard/index.js.map +1 -1
- package/dist/ContentGroupBaseCard/shared.cjs.map +1 -1
- package/dist/ContentGroupBaseCard/shared.js.map +1 -1
- package/dist/ContentGroupBaseCard/types.cjs.map +1 -1
- package/dist/ContentGroupBaseCard/types.d.cts.map +1 -1
- package/dist/ContentGroupBaseCard/types.d.ts.map +1 -1
- package/dist/ContentGroupBaseCard/types.js.map +1 -1
- package/dist/CourseCard/index.cjs.map +1 -1
- package/dist/CourseCard/index.d.cts +0 -1
- package/dist/CourseCard/index.d.cts.map +1 -1
- package/dist/CourseCard/index.d.ts +0 -1
- package/dist/CourseCard/index.d.ts.map +1 -1
- package/dist/CourseCard/index.js.map +1 -1
- package/dist/CurriculumCard/BottomTag/index.cjs.map +1 -1
- package/dist/CurriculumCard/BottomTag/index.d.cts +1 -0
- package/dist/CurriculumCard/BottomTag/index.d.cts.map +1 -1
- package/dist/CurriculumCard/BottomTag/index.d.ts +1 -0
- package/dist/CurriculumCard/BottomTag/index.d.ts.map +1 -1
- package/dist/CurriculumCard/BottomTag/index.js.map +1 -1
- package/dist/CurriculumCard/Difficulty/helpers.d.cts +0 -1
- package/dist/CurriculumCard/Difficulty/helpers.d.cts.map +1 -1
- package/dist/CurriculumCard/Difficulty/helpers.d.ts +0 -1
- package/dist/CurriculumCard/Difficulty/helpers.d.ts.map +1 -1
- package/dist/CurriculumCard/Difficulty/index.cjs.map +1 -1
- package/dist/CurriculumCard/Difficulty/index.d.cts +0 -1
- package/dist/CurriculumCard/Difficulty/index.d.cts.map +1 -1
- package/dist/CurriculumCard/Difficulty/index.d.ts +0 -1
- package/dist/CurriculumCard/Difficulty/index.d.ts.map +1 -1
- package/dist/CurriculumCard/Difficulty/index.js.map +1 -1
- package/dist/CurriculumCard/Difficulty/types.cjs.map +1 -1
- package/dist/CurriculumCard/Difficulty/types.d.cts.map +1 -1
- package/dist/CurriculumCard/Difficulty/types.d.ts.map +1 -1
- package/dist/CurriculumCard/Difficulty/types.js.map +1 -1
- package/dist/CurriculumCard/Footer/index.cjs.map +1 -1
- package/dist/CurriculumCard/Footer/index.js.map +1 -1
- package/dist/CurriculumCard/Image/index.cjs.map +1 -1
- package/dist/CurriculumCard/Image/index.js.map +1 -1
- package/dist/CurriculumCard/Subtitle/index.cjs.map +1 -1
- package/dist/CurriculumCard/Subtitle/index.d.cts +1 -0
- package/dist/CurriculumCard/Subtitle/index.d.cts.map +1 -1
- package/dist/CurriculumCard/Subtitle/index.d.ts +1 -0
- package/dist/CurriculumCard/Subtitle/index.d.ts.map +1 -1
- package/dist/CurriculumCard/Subtitle/index.js.map +1 -1
- package/dist/CurriculumCard/index.cjs.map +1 -1
- package/dist/CurriculumCard/index.d.cts +0 -1
- package/dist/CurriculumCard/index.d.cts.map +1 -1
- package/dist/CurriculumCard/index.d.ts +0 -1
- package/dist/CurriculumCard/index.d.ts.map +1 -1
- package/dist/CurriculumCard/index.js.map +1 -1
- package/dist/DropdownButton/DropdownList.cjs +8 -2
- package/dist/DropdownButton/DropdownList.cjs.map +1 -1
- package/dist/DropdownButton/DropdownList.d.cts +1 -2
- package/dist/DropdownButton/DropdownList.d.cts.map +1 -1
- package/dist/DropdownButton/DropdownList.d.ts +1 -2
- package/dist/DropdownButton/DropdownList.d.ts.map +1 -1
- package/dist/DropdownButton/DropdownList.js +8 -2
- package/dist/DropdownButton/DropdownList.js.map +1 -1
- package/dist/DropdownButton/index.cjs.map +1 -1
- package/dist/DropdownButton/index.d.cts +0 -1
- package/dist/DropdownButton/index.d.cts.map +1 -1
- package/dist/DropdownButton/index.d.ts +0 -1
- package/dist/DropdownButton/index.d.ts.map +1 -1
- package/dist/DropdownButton/index.js.map +1 -1
- package/dist/EmptySection/index.cjs.map +1 -1
- package/dist/EmptySection/index.d.cts +1 -1
- package/dist/EmptySection/index.d.cts.map +1 -1
- package/dist/EmptySection/index.d.ts +1 -1
- package/dist/EmptySection/index.d.ts.map +1 -1
- package/dist/EmptySection/index.js.map +1 -1
- package/dist/ErrorContents/index.cjs.map +1 -1
- package/dist/ErrorContents/index.d.cts +0 -1
- package/dist/ErrorContents/index.d.cts.map +1 -1
- package/dist/ErrorContents/index.d.ts +0 -1
- package/dist/ErrorContents/index.d.ts.map +1 -1
- package/dist/ErrorContents/index.js.map +1 -1
- package/dist/FeatureList/index.cjs.map +1 -1
- package/dist/FeatureList/index.d.cts +1 -4
- package/dist/FeatureList/index.d.cts.map +1 -1
- package/dist/FeatureList/index.d.ts +1 -4
- package/dist/FeatureList/index.d.ts.map +1 -1
- package/dist/FeatureList/index.js.map +1 -1
- package/dist/GlobalFooter/FooterHeading.cjs.map +1 -1
- package/dist/GlobalFooter/FooterHeading.js.map +1 -1
- package/dist/GlobalFooter/FooterLegal/LegalLinks.cjs.map +1 -1
- package/dist/GlobalFooter/FooterLegal/LegalLinks.js.map +1 -1
- package/dist/GlobalFooter/FooterLegal/MadeIn.cjs.map +1 -1
- package/dist/GlobalFooter/FooterLegal/MadeIn.js.map +1 -1
- package/dist/GlobalFooter/FooterLegal/index.cjs.map +1 -1
- package/dist/GlobalFooter/FooterLegal/index.js.map +1 -1
- package/dist/GlobalFooter/FooterLinks.cjs.map +1 -1
- package/dist/GlobalFooter/FooterLinks.js.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.cjs.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.cjs.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.cjs.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.cjs.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.js.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.cjs.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.js.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.cjs.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.js.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.cts.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.ts.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.cjs.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.js.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.cjs.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.js.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.cjs.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.js.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/index.cjs.map +1 -1
- package/dist/GlobalFooter/FooterNavLinks/index.js.map +1 -1
- package/dist/GlobalFooter/index.cjs.map +1 -1
- package/dist/GlobalFooter/index.d.cts +0 -1
- package/dist/GlobalFooter/index.d.cts.map +1 -1
- package/dist/GlobalFooter/index.d.ts +0 -1
- package/dist/GlobalFooter/index.d.ts.map +1 -1
- package/dist/GlobalFooter/index.js.map +1 -1
- package/dist/GlobalFooter/types.d.cts +0 -1
- package/dist/GlobalFooter/types.d.cts.map +1 -1
- package/dist/GlobalFooter/types.d.ts +0 -1
- package/dist/GlobalFooter/types.d.ts.map +1 -1
- package/dist/GlobalHeader/GlobalHeaderItems.cjs.map +1 -1
- package/dist/GlobalHeader/GlobalHeaderItems.js.map +1 -1
- package/dist/GlobalHeader/GlobalHeaderVariants.cjs.map +1 -1
- package/dist/GlobalHeader/GlobalHeaderVariants.js.map +1 -1
- package/dist/GlobalHeader/index.cjs.map +1 -1
- package/dist/GlobalHeader/index.d.cts +1 -2
- package/dist/GlobalHeader/index.d.cts.map +1 -1
- package/dist/GlobalHeader/index.d.ts +1 -2
- package/dist/GlobalHeader/index.d.ts.map +1 -1
- package/dist/GlobalHeader/index.js.map +1 -1
- package/dist/GlobalHeader/types.d.cts +1 -1
- package/dist/GlobalHeader/types.d.cts.map +1 -1
- package/dist/GlobalHeader/types.d.ts +1 -1
- package/dist/GlobalHeader/types.d.ts.map +1 -1
- package/dist/GlobalPage/index.cjs.map +1 -1
- package/dist/GlobalPage/index.d.cts +0 -1
- package/dist/GlobalPage/index.d.cts.map +1 -1
- package/dist/GlobalPage/index.d.ts +0 -1
- package/dist/GlobalPage/index.d.ts.map +1 -1
- package/dist/GlobalPage/index.js.map +1 -1
- package/dist/Grid/GridCollapse.cjs.map +1 -1
- package/dist/Grid/GridCollapse.d.cts +1 -6
- package/dist/Grid/GridCollapse.d.cts.map +1 -1
- package/dist/Grid/GridCollapse.d.ts +1 -6
- package/dist/Grid/GridCollapse.d.ts.map +1 -1
- package/dist/Grid/GridCollapse.js.map +1 -1
- package/dist/Grid/Subgrid.d.cts +0 -1
- package/dist/Grid/Subgrid.d.cts.map +1 -1
- package/dist/Grid/Subgrid.d.ts +0 -1
- package/dist/Grid/Subgrid.d.ts.map +1 -1
- package/dist/Grid/getCSSFromColumnCount.d.cts +0 -1
- package/dist/Grid/getCSSFromColumnCount.d.cts.map +1 -1
- package/dist/Grid/getCSSFromColumnCount.d.ts +0 -1
- package/dist/Grid/getCSSFromColumnCount.d.ts.map +1 -1
- package/dist/Grid/index.cjs +6 -0
- package/dist/Grid/index.d.cts +2 -1
- package/dist/Grid/index.d.ts +2 -1
- package/dist/Grid/index.js +2 -0
- package/dist/HeaderHeightArea/index.cjs.map +1 -1
- package/dist/HeaderHeightArea/index.js.map +1 -1
- package/dist/HorizontalScrollMenu/index.cjs.map +1 -1
- package/dist/HorizontalScrollMenu/index.d.cts +1 -0
- package/dist/HorizontalScrollMenu/index.d.cts.map +1 -1
- package/dist/HorizontalScrollMenu/index.d.ts +1 -0
- package/dist/HorizontalScrollMenu/index.d.ts.map +1 -1
- package/dist/HorizontalScrollMenu/index.js.map +1 -1
- package/dist/HubCard/index.cjs.map +1 -1
- package/dist/HubCard/index.d.cts +0 -1
- package/dist/HubCard/index.d.cts.map +1 -1
- package/dist/HubCard/index.d.ts +0 -1
- package/dist/HubCard/index.d.ts.map +1 -1
- package/dist/HubCard/index.js.map +1 -1
- package/dist/InfoCard/index.cjs.map +1 -1
- package/dist/InfoCard/index.d.cts +0 -1
- package/dist/InfoCard/index.d.cts.map +1 -1
- package/dist/InfoCard/index.d.ts +0 -1
- package/dist/InfoCard/index.d.ts.map +1 -1
- package/dist/InfoCard/index.js.map +1 -1
- package/dist/InstructorCard/index.cjs.map +1 -1
- package/dist/InstructorCard/index.d.cts +13 -6
- package/dist/InstructorCard/index.d.cts.map +1 -1
- package/dist/InstructorCard/index.d.ts +13 -6
- package/dist/InstructorCard/index.d.ts.map +1 -1
- package/dist/InstructorCard/index.js.map +1 -1
- package/dist/Konamimojisplosion/Konamimojisplosion.d.cts +0 -1
- package/dist/Konamimojisplosion/Konamimojisplosion.d.cts.map +1 -1
- package/dist/Konamimojisplosion/Konamimojisplosion.d.ts +0 -1
- package/dist/Konamimojisplosion/Konamimojisplosion.d.ts.map +1 -1
- package/dist/Konamimojisplosion/index.cjs +3 -0
- package/dist/Konamimojisplosion/index.d.cts +2 -1
- package/dist/Konamimojisplosion/index.d.ts +2 -1
- package/dist/Konamimojisplosion/index.js +2 -0
- package/dist/Konamimojisplosion/useKonamimojisplosion.cjs.map +1 -1
- package/dist/Konamimojisplosion/useKonamimojisplosion.d.cts.map +1 -1
- package/dist/Konamimojisplosion/useKonamimojisplosion.d.ts.map +1 -1
- package/dist/Konamimojisplosion/useKonamimojisplosion.js.map +1 -1
- package/dist/LandingPage/Description.cjs.map +1 -1
- package/dist/LandingPage/Description.d.cts +0 -1
- package/dist/LandingPage/Description.d.cts.map +1 -1
- package/dist/LandingPage/Description.d.ts +0 -1
- package/dist/LandingPage/Description.d.ts.map +1 -1
- package/dist/LandingPage/Description.js.map +1 -1
- package/dist/LandingPage/PageFAQs.cjs.map +1 -1
- package/dist/LandingPage/PageFAQs.d.cts +0 -1
- package/dist/LandingPage/PageFAQs.d.cts.map +1 -1
- package/dist/LandingPage/PageFAQs.d.ts +0 -1
- package/dist/LandingPage/PageFAQs.d.ts.map +1 -1
- package/dist/LandingPage/PageFAQs.js.map +1 -1
- package/dist/LandingPage/Title.cjs.map +1 -1
- package/dist/LandingPage/Title.d.cts +0 -1
- package/dist/LandingPage/Title.d.cts.map +1 -1
- package/dist/LandingPage/Title.d.ts +0 -1
- package/dist/LandingPage/Title.d.ts.map +1 -1
- package/dist/LandingPage/Title.js.map +1 -1
- package/dist/LandingPage/TitleWithEyebrow.cjs.map +1 -1
- package/dist/LandingPage/TitleWithEyebrow.d.cts +0 -1
- package/dist/LandingPage/TitleWithEyebrow.d.cts.map +1 -1
- package/dist/LandingPage/TitleWithEyebrow.d.ts +0 -1
- package/dist/LandingPage/TitleWithEyebrow.d.ts.map +1 -1
- package/dist/LandingPage/TitleWithEyebrow.js.map +1 -1
- package/dist/LandingPage/index.cjs +7 -0
- package/dist/LandingPage/index.d.cts +2 -1
- package/dist/LandingPage/index.d.ts +2 -1
- package/dist/LandingPage/index.js +2 -0
- package/dist/LandingPage/types.d.cts.map +1 -1
- package/dist/LandingPage/types.d.ts.map +1 -1
- package/dist/LayoutMenu/AccordionMenu.cjs.map +1 -1
- package/dist/LayoutMenu/AccordionMenu.d.cts +0 -1
- package/dist/LayoutMenu/AccordionMenu.d.cts.map +1 -1
- package/dist/LayoutMenu/AccordionMenu.d.ts +0 -1
- package/dist/LayoutMenu/AccordionMenu.d.ts.map +1 -1
- package/dist/LayoutMenu/AccordionMenu.js.map +1 -1
- package/dist/LayoutMenu/LayoutMenu.cjs.map +1 -1
- package/dist/LayoutMenu/LayoutMenu.d.cts +0 -1
- package/dist/LayoutMenu/LayoutMenu.d.cts.map +1 -1
- package/dist/LayoutMenu/LayoutMenu.d.ts +0 -1
- package/dist/LayoutMenu/LayoutMenu.d.ts.map +1 -1
- package/dist/LayoutMenu/LayoutMenu.js.map +1 -1
- package/dist/LayoutMenu/LayoutMenuSection.cjs.map +1 -1
- package/dist/LayoutMenu/LayoutMenuSection.js.map +1 -1
- package/dist/LayoutMenu/SectionItemLink.cjs.map +1 -1
- package/dist/LayoutMenu/SectionItemLink.d.cts +0 -1
- package/dist/LayoutMenu/SectionItemLink.d.cts.map +1 -1
- package/dist/LayoutMenu/SectionItemLink.d.ts +0 -1
- package/dist/LayoutMenu/SectionItemLink.d.ts.map +1 -1
- package/dist/LayoutMenu/SectionItemLink.js.map +1 -1
- package/dist/LayoutMenu/SelectedSectionItem.cjs.map +1 -1
- package/dist/LayoutMenu/SelectedSectionItem.d.cts +0 -1
- package/dist/LayoutMenu/SelectedSectionItem.d.cts.map +1 -1
- package/dist/LayoutMenu/SelectedSectionItem.d.ts +0 -1
- package/dist/LayoutMenu/SelectedSectionItem.d.ts.map +1 -1
- package/dist/LayoutMenu/SelectedSectionItem.js.map +1 -1
- package/dist/LayoutMenu/index.cjs +4 -0
- package/dist/LayoutMenu/index.d.cts +2 -1
- package/dist/LayoutMenu/index.d.ts +2 -1
- package/dist/LayoutMenu/index.js +2 -0
- package/dist/LayoutMenuVariant/AccordionMenu.cjs.map +1 -1
- package/dist/LayoutMenuVariant/AccordionMenu.d.cts +0 -1
- package/dist/LayoutMenuVariant/AccordionMenu.d.cts.map +1 -1
- package/dist/LayoutMenuVariant/AccordionMenu.d.ts +0 -1
- package/dist/LayoutMenuVariant/AccordionMenu.d.ts.map +1 -1
- package/dist/LayoutMenuVariant/AccordionMenu.js.map +1 -1
- package/dist/LayoutMenuVariant/LayoutMenu.cjs.map +1 -1
- package/dist/LayoutMenuVariant/LayoutMenu.d.cts +0 -1
- package/dist/LayoutMenuVariant/LayoutMenu.d.cts.map +1 -1
- package/dist/LayoutMenuVariant/LayoutMenu.d.ts +0 -1
- package/dist/LayoutMenuVariant/LayoutMenu.d.ts.map +1 -1
- package/dist/LayoutMenuVariant/LayoutMenu.js.map +1 -1
- package/dist/LayoutMenuVariant/LayoutMenuSection.cjs.map +1 -1
- package/dist/LayoutMenuVariant/LayoutMenuSection.js.map +1 -1
- package/dist/LayoutMenuVariant/SectionItemLink.cjs.map +1 -1
- package/dist/LayoutMenuVariant/SectionItemLink.d.cts +0 -1
- package/dist/LayoutMenuVariant/SectionItemLink.d.cts.map +1 -1
- package/dist/LayoutMenuVariant/SectionItemLink.d.ts +0 -1
- package/dist/LayoutMenuVariant/SectionItemLink.d.ts.map +1 -1
- package/dist/LayoutMenuVariant/SectionItemLink.js.map +1 -1
- package/dist/LayoutMenuVariant/index.cjs +2 -0
- package/dist/LayoutMenuVariant/index.d.cts +1 -3
- package/dist/LayoutMenuVariant/index.d.ts +1 -3
- package/dist/LayoutMenuVariant/index.js +1 -1
- package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.cjs.map +1 -1
- package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js.map +1 -1
- package/dist/LearningOutcomeAssessmentScores/index.cjs.map +1 -1
- package/dist/LearningOutcomeAssessmentScores/index.d.cts.map +1 -1
- package/dist/LearningOutcomeAssessmentScores/index.d.ts.map +1 -1
- package/dist/LearningOutcomeAssessmentScores/index.js.map +1 -1
- package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.cjs.map +1 -1
- package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.cts +0 -1
- package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.cts.map +1 -1
- package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +0 -1
- package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts.map +1 -1
- package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.js.map +1 -1
- package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.cjs.map +1 -1
- package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.cts.map +1 -1
- package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts.map +1 -1
- package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.js.map +1 -1
- package/dist/LearningOutcomeBadges/index.cjs +11 -0
- package/dist/LearningOutcomeBadges/index.d.cts +2 -1
- package/dist/LearningOutcomeBadges/index.d.ts +2 -1
- package/dist/LearningOutcomeBadges/index.js +2 -0
- package/dist/LearningOutcomeCard/index.cjs.map +1 -1
- package/dist/LearningOutcomeCard/index.d.cts +1 -1
- package/dist/LearningOutcomeCard/index.d.cts.map +1 -1
- package/dist/LearningOutcomeCard/index.d.ts +1 -1
- package/dist/LearningOutcomeCard/index.d.ts.map +1 -1
- package/dist/LearningOutcomeCard/index.js.map +1 -1
- package/dist/LearningOutcomeFlyout/LearningOutcomeCardList.cjs.map +1 -1
- package/dist/LearningOutcomeFlyout/LearningOutcomeCardList.js.map +1 -1
- package/dist/LearningOutcomeFlyout/index.cjs.map +1 -1
- package/dist/LearningOutcomeFlyout/index.d.cts +1 -1
- package/dist/LearningOutcomeFlyout/index.d.cts.map +1 -1
- package/dist/LearningOutcomeFlyout/index.d.ts +1 -1
- package/dist/LearningOutcomeFlyout/index.d.ts.map +1 -1
- package/dist/LearningOutcomeFlyout/index.js.map +1 -1
- package/dist/LearningOutcomeFlyout/types.cjs.map +1 -1
- package/dist/LearningOutcomeFlyout/types.d.cts +2 -1
- package/dist/LearningOutcomeFlyout/types.d.cts.map +1 -1
- package/dist/LearningOutcomeFlyout/types.d.ts +2 -1
- package/dist/LearningOutcomeFlyout/types.d.ts.map +1 -1
- package/dist/LearningOutcomeFlyout/types.js.map +1 -1
- package/dist/LearningOutcomePopover/index.cjs.map +1 -1
- package/dist/LearningOutcomePopover/index.js.map +1 -1
- package/dist/LearningOutcomeTile/Tile.cjs.map +1 -1
- package/dist/LearningOutcomeTile/Tile.js.map +1 -1
- package/dist/LearningOutcomeTile/index.cjs.map +1 -1
- package/dist/LearningOutcomeTile/index.d.cts +0 -1
- package/dist/LearningOutcomeTile/index.d.cts.map +1 -1
- package/dist/LearningOutcomeTile/index.d.ts +0 -1
- package/dist/LearningOutcomeTile/index.d.ts.map +1 -1
- package/dist/LearningOutcomeTile/index.js.map +1 -1
- package/dist/LearningOutcomeTile/types.cjs.map +1 -1
- package/dist/LearningOutcomeTile/types.d.cts +2 -1
- package/dist/LearningOutcomeTile/types.d.cts.map +1 -1
- package/dist/LearningOutcomeTile/types.d.ts +2 -1
- package/dist/LearningOutcomeTile/types.d.ts.map +1 -1
- package/dist/LearningOutcomeTile/types.js.map +1 -1
- package/dist/ListSection/index.cjs.map +1 -1
- package/dist/ListSection/index.d.cts +1 -1
- package/dist/ListSection/index.d.cts.map +1 -1
- package/dist/ListSection/index.d.ts +1 -1
- package/dist/ListSection/index.d.ts.map +1 -1
- package/dist/ListSection/index.js.map +1 -1
- package/dist/Loading/elements.cjs +60 -0
- package/dist/Loading/elements.cjs.map +1 -0
- package/dist/Loading/elements.js +56 -0
- package/dist/Loading/elements.js.map +1 -0
- package/dist/Loading/index.cjs +42 -63
- package/dist/Loading/index.cjs.map +1 -1
- package/dist/Loading/index.d.cts +0 -1
- package/dist/Loading/index.d.cts.map +1 -1
- package/dist/Loading/index.d.ts +0 -1
- package/dist/Loading/index.d.ts.map +1 -1
- package/dist/Loading/index.js +43 -62
- package/dist/Loading/index.js.map +1 -1
- package/dist/LoadingCurriculumCard/index.cjs.map +1 -1
- package/dist/LoadingCurriculumCard/index.d.cts +0 -1
- package/dist/LoadingCurriculumCard/index.d.cts.map +1 -1
- package/dist/LoadingCurriculumCard/index.d.ts +0 -1
- package/dist/LoadingCurriculumCard/index.d.ts.map +1 -1
- package/dist/LoadingCurriculumCard/index.js.map +1 -1
- package/dist/Logos/LogoCodecademy/index.cjs.map +1 -1
- package/dist/Logos/LogoCodecademy/index.d.cts +0 -1
- package/dist/Logos/LogoCodecademy/index.d.cts.map +1 -1
- package/dist/Logos/LogoCodecademy/index.d.ts +0 -1
- package/dist/Logos/LogoCodecademy/index.d.ts.map +1 -1
- package/dist/Logos/LogoCodecademy/index.js.map +1 -1
- package/dist/Logos/LogoCodecademyMini/index.cjs.map +1 -1
- package/dist/Logos/LogoCodecademyMini/index.d.cts +0 -1
- package/dist/Logos/LogoCodecademyMini/index.d.cts.map +1 -1
- package/dist/Logos/LogoCodecademyMini/index.d.ts +0 -1
- package/dist/Logos/LogoCodecademyMini/index.d.ts.map +1 -1
- package/dist/Logos/LogoCodecademyMini/index.js.map +1 -1
- package/dist/Logos/LogoCodecademyPro/index.cjs.map +1 -1
- package/dist/Logos/LogoCodecademyPro/index.d.cts +0 -1
- package/dist/Logos/LogoCodecademyPro/index.d.cts.map +1 -1
- package/dist/Logos/LogoCodecademyPro/index.d.ts +0 -1
- package/dist/Logos/LogoCodecademyPro/index.d.ts.map +1 -1
- package/dist/Logos/LogoCodecademyPro/index.js.map +1 -1
- package/dist/Logos/LogoCodecademyTeams/index.cjs +11 -7
- package/dist/Logos/LogoCodecademyTeams/index.cjs.map +1 -1
- package/dist/Logos/LogoCodecademyTeams/index.d.cts +2 -2
- package/dist/Logos/LogoCodecademyTeams/index.d.cts.map +1 -1
- package/dist/Logos/LogoCodecademyTeams/index.d.ts +2 -2
- package/dist/Logos/LogoCodecademyTeams/index.d.ts.map +1 -1
- package/dist/Logos/LogoCodecademyTeams/index.js +10 -7
- package/dist/Logos/LogoCodecademyTeams/index.js.map +1 -1
- package/dist/Logos/LogoFromSkillsoft/index.cjs.map +1 -1
- package/dist/Logos/LogoFromSkillsoft/index.d.cts +0 -1
- package/dist/Logos/LogoFromSkillsoft/index.d.cts.map +1 -1
- package/dist/Logos/LogoFromSkillsoft/index.d.ts +0 -1
- package/dist/Logos/LogoFromSkillsoft/index.d.ts.map +1 -1
- package/dist/Logos/LogoFromSkillsoft/index.js.map +1 -1
- package/dist/Logos/LogoLXStudio/index.cjs.map +1 -1
- package/dist/Logos/LogoLXStudio/index.d.cts +0 -1
- package/dist/Logos/LogoLXStudio/index.d.cts.map +1 -1
- package/dist/Logos/LogoLXStudio/index.d.ts +0 -1
- package/dist/Logos/LogoLXStudio/index.d.ts.map +1 -1
- package/dist/Logos/LogoLXStudio/index.js.map +1 -1
- package/dist/Logos/LogoSkillsoft/index.cjs +26 -0
- package/dist/Logos/LogoSkillsoft/index.cjs.map +1 -0
- package/dist/Logos/LogoSkillsoft/index.d.cts +7 -0
- package/dist/Logos/LogoSkillsoft/index.d.cts.map +1 -0
- package/dist/Logos/LogoSkillsoft/index.d.ts +7 -0
- package/dist/Logos/LogoSkillsoft/index.d.ts.map +1 -0
- package/dist/Logos/LogoSkillsoft/index.js +25 -0
- package/dist/Logos/LogoSkillsoft/index.js.map +1 -0
- package/dist/Logos/ProLabel/ProLabelCutout/index.cjs.map +1 -1
- package/dist/Logos/ProLabel/ProLabelCutout/index.js.map +1 -1
- package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.cjs.map +1 -1
- package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.js.map +1 -1
- package/dist/Logos/ProLabel/index.d.cts +0 -1
- package/dist/Logos/ProLabel/index.d.cts.map +1 -1
- package/dist/Logos/ProLabel/index.d.ts +0 -1
- package/dist/Logos/ProLabel/index.d.ts.map +1 -1
- package/dist/Logos/index.cjs +12 -2
- package/dist/Logos/index.d.cts +3 -1
- package/dist/Logos/index.d.ts +3 -1
- package/dist/Logos/index.js +3 -0
- package/dist/Logos/shared.cjs.map +1 -1
- package/dist/Logos/shared.d.cts +2 -0
- package/dist/Logos/shared.d.cts.map +1 -1
- package/dist/Logos/shared.d.ts +2 -1
- package/dist/Logos/shared.d.ts.map +1 -1
- package/dist/Logos/shared.js.map +1 -1
- package/dist/MarketingToaster/index.cjs.map +1 -1
- package/dist/MarketingToaster/index.d.cts +0 -1
- package/dist/MarketingToaster/index.d.cts.map +1 -1
- package/dist/MarketingToaster/index.d.ts +0 -1
- package/dist/MarketingToaster/index.d.ts.map +1 -1
- package/dist/MarketingToaster/index.js.map +1 -1
- package/dist/NotFoundContent/404.cjs.map +1 -1
- package/dist/NotFoundContent/404.js.map +1 -1
- package/dist/NotFoundContent/index.cjs.map +1 -1
- package/dist/NotFoundContent/index.d.cts +0 -1
- package/dist/NotFoundContent/index.d.cts.map +1 -1
- package/dist/NotFoundContent/index.d.ts +0 -1
- package/dist/NotFoundContent/index.d.ts.map +1 -1
- package/dist/NotFoundContent/index.js.map +1 -1
- package/dist/NotificationList/EmptyNotification/emptyNotificationContents.cjs.map +1 -1
- package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js.map +1 -1
- package/dist/NotificationList/EmptyNotification/index.cjs.map +1 -1
- package/dist/NotificationList/EmptyNotification/index.js.map +1 -1
- package/dist/NotificationList/NotificationItem.cjs.map +1 -1
- package/dist/NotificationList/NotificationItem.d.cts +0 -1
- package/dist/NotificationList/NotificationItem.d.cts.map +1 -1
- package/dist/NotificationList/NotificationItem.d.ts +0 -1
- package/dist/NotificationList/NotificationItem.d.ts.map +1 -1
- package/dist/NotificationList/NotificationItem.js.map +1 -1
- package/dist/NotificationList/index.cjs.map +1 -1
- package/dist/NotificationList/index.d.cts +0 -1
- package/dist/NotificationList/index.d.cts.map +1 -1
- package/dist/NotificationList/index.d.ts +0 -1
- package/dist/NotificationList/index.d.ts.map +1 -1
- package/dist/NotificationList/index.js.map +1 -1
- package/dist/NotificationList/typings.d.cts.map +1 -1
- package/dist/NotificationList/typings.d.ts.map +1 -1
- package/dist/Notifications/NotificationBell.cjs.map +1 -1
- package/dist/Notifications/NotificationBell.js.map +1 -1
- package/dist/Notifications/NotificationsContents.cjs.map +1 -1
- package/dist/Notifications/NotificationsContents.js.map +1 -1
- package/dist/Notifications/NotificationsDropdown.cjs.map +1 -1
- package/dist/Notifications/NotificationsDropdown.js.map +1 -1
- package/dist/Notifications/elements.cjs.map +1 -1
- package/dist/Notifications/elements.js.map +1 -1
- package/dist/Notifications/types.d.cts +2 -1
- package/dist/Notifications/types.d.cts.map +1 -1
- package/dist/Notifications/types.d.ts +2 -1
- package/dist/Notifications/types.d.ts.map +1 -1
- package/dist/Notifications/useHeaderNotifications.cjs.map +1 -1
- package/dist/Notifications/useHeaderNotifications.js.map +1 -1
- package/dist/Notifications/useNotificationButtons.cjs.map +1 -1
- package/dist/Notifications/useNotificationButtons.js.map +1 -1
- package/dist/PageAlerts/PageAlerts.cjs.map +1 -1
- package/dist/PageAlerts/PageAlerts.d.cts +0 -1
- package/dist/PageAlerts/PageAlerts.d.cts.map +1 -1
- package/dist/PageAlerts/PageAlerts.d.ts +0 -1
- package/dist/PageAlerts/PageAlerts.d.ts.map +1 -1
- package/dist/PageAlerts/PageAlerts.js.map +1 -1
- package/dist/PageAlerts/PageAlertsProvider.cjs.map +1 -1
- package/dist/PageAlerts/PageAlertsProvider.d.cts +0 -1
- package/dist/PageAlerts/PageAlertsProvider.d.cts.map +1 -1
- package/dist/PageAlerts/PageAlertsProvider.d.ts +0 -1
- package/dist/PageAlerts/PageAlertsProvider.d.ts.map +1 -1
- package/dist/PageAlerts/PageAlertsProvider.js.map +1 -1
- package/dist/PageAlerts/index.cjs +6 -0
- package/dist/PageAlerts/index.d.cts +2 -1
- package/dist/PageAlerts/index.d.ts +2 -1
- package/dist/PageAlerts/index.js +2 -0
- package/dist/PageAlerts/types.d.cts +1 -2
- package/dist/PageAlerts/types.d.cts.map +1 -1
- package/dist/PageAlerts/types.d.ts +1 -2
- package/dist/PageAlerts/types.d.ts.map +1 -1
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.cjs.map +1 -1
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.cts +0 -1
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.cts.map +1 -1
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +0 -1
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts.map +1 -1
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js.map +1 -1
- package/dist/PageLayoutWithSidebarMenu/index.cjs +2 -0
- package/dist/PageLayoutWithSidebarMenu/index.d.cts +2 -1
- package/dist/PageLayoutWithSidebarMenu/index.d.ts +2 -1
- package/dist/PageLayoutWithSidebarMenu/index.js +2 -0
- package/dist/PageSection/index.cjs.map +1 -1
- package/dist/PageSection/index.d.cts +0 -1
- package/dist/PageSection/index.d.cts.map +1 -1
- package/dist/PageSection/index.d.ts +0 -1
- package/dist/PageSection/index.d.ts.map +1 -1
- package/dist/PageSection/index.js.map +1 -1
- package/dist/PastDue/PastDueModalContents/index.cjs.map +1 -1
- package/dist/PastDue/PastDueModalContents/index.d.cts +0 -1
- package/dist/PastDue/PastDueModalContents/index.d.cts.map +1 -1
- package/dist/PastDue/PastDueModalContents/index.d.ts +0 -1
- package/dist/PastDue/PastDueModalContents/index.d.ts.map +1 -1
- package/dist/PastDue/PastDueModalContents/index.js.map +1 -1
- package/dist/PastDue/index.cjs +3 -0
- package/dist/PastDue/index.d.cts +2 -1
- package/dist/PastDue/index.d.ts +2 -1
- package/dist/PastDue/index.js +2 -0
- package/dist/PastDue/pastDueMessages.cjs.map +1 -1
- package/dist/PastDue/pastDueMessages.d.cts +0 -1
- package/dist/PastDue/pastDueMessages.d.cts.map +1 -1
- package/dist/PastDue/pastDueMessages.d.ts +0 -1
- package/dist/PastDue/pastDueMessages.d.ts.map +1 -1
- package/dist/PastDue/pastDueMessages.js.map +1 -1
- package/dist/PausableImage/BaseImage/index.cjs.map +1 -1
- package/dist/PausableImage/BaseImage/index.js.map +1 -1
- package/dist/PausableImage/index.cjs.map +1 -1
- package/dist/PausableImage/index.d.cts +0 -1
- package/dist/PausableImage/index.d.cts.map +1 -1
- package/dist/PausableImage/index.d.ts +0 -1
- package/dist/PausableImage/index.d.ts.map +1 -1
- package/dist/PausableImage/index.js.map +1 -1
- package/dist/PlanCard/PlanCardBanner.cjs.map +1 -1
- package/dist/PlanCard/PlanCardBanner.d.cts +0 -1
- package/dist/PlanCard/PlanCardBanner.d.cts.map +1 -1
- package/dist/PlanCard/PlanCardBanner.d.ts +0 -1
- package/dist/PlanCard/PlanCardBanner.d.ts.map +1 -1
- package/dist/PlanCard/PlanCardBanner.js.map +1 -1
- package/dist/PlanCard/PlanFeature.cjs.map +1 -1
- package/dist/PlanCard/PlanFeature.js.map +1 -1
- package/dist/PlanCard/PopularBadge.cjs.map +1 -1
- package/dist/PlanCard/PopularBadge.js.map +1 -1
- package/dist/PlanCard/PricingAmount.cjs.map +1 -1
- package/dist/PlanCard/PricingAmount.js.map +1 -1
- package/dist/PlanCard/RecommendedBadge.cjs.map +1 -1
- package/dist/PlanCard/RecommendedBadge.js.map +1 -1
- package/dist/PlanCard/consts.cjs.map +1 -1
- package/dist/PlanCard/consts.js.map +1 -1
- package/dist/PlanCard/index.cjs +45 -14
- package/dist/PlanCard/index.cjs.map +1 -1
- package/dist/PlanCard/index.d.cts +1 -1
- package/dist/PlanCard/index.d.cts.map +1 -1
- package/dist/PlanCard/index.d.ts +1 -1
- package/dist/PlanCard/index.d.ts.map +1 -1
- package/dist/PlanCard/index.js +45 -14
- package/dist/PlanCard/index.js.map +1 -1
- package/dist/PlanCard/types.cjs.map +1 -1
- package/dist/PlanCard/types.d.cts +6 -6
- package/dist/PlanCard/types.d.cts.map +1 -1
- package/dist/PlanCard/types.d.ts +6 -6
- package/dist/PlanCard/types.d.ts.map +1 -1
- package/dist/PlanCard/types.js.map +1 -1
- package/dist/PlanCardTeams/consts.cjs.map +1 -1
- package/dist/PlanCardTeams/consts.js.map +1 -1
- package/dist/PlanCardTeams/index.cjs.map +1 -1
- package/dist/PlanCardTeams/index.d.cts +0 -1
- package/dist/PlanCardTeams/index.d.cts.map +1 -1
- package/dist/PlanCardTeams/index.d.ts +0 -1
- package/dist/PlanCardTeams/index.d.ts.map +1 -1
- package/dist/PlanCardTeams/index.js.map +1 -1
- package/dist/PricingSection/ConditionalColorMode.cjs.map +1 -1
- package/dist/PricingSection/ConditionalColorMode.js.map +1 -1
- package/dist/PricingSection/PricingCard/PricingAmount.cjs.map +1 -1
- package/dist/PricingSection/PricingCard/PricingAmount.js.map +1 -1
- package/dist/PricingSection/PricingCard/RecommendedBadge.cjs.map +1 -1
- package/dist/PricingSection/PricingCard/RecommendedBadge.js.map +1 -1
- package/dist/PricingSection/PricingCard/index.cjs.map +1 -1
- package/dist/PricingSection/PricingCard/index.js.map +1 -1
- package/dist/PricingSection/PricingCard/types.cjs +18 -0
- package/dist/PricingSection/PricingCard/types.cjs.map +1 -1
- package/dist/PricingSection/PricingCard/types.d.cts +1 -1
- package/dist/PricingSection/PricingCard/types.d.cts.map +1 -1
- package/dist/PricingSection/PricingCard/types.d.ts +1 -1
- package/dist/PricingSection/PricingCard/types.d.ts.map +1 -1
- package/dist/PricingSection/PricingCard/types.js +1 -1
- package/dist/PricingSection/PricingCard/types.js.map +1 -1
- package/dist/PricingSection/ProductCTA.cjs +1 -0
- package/dist/PricingSection/ProductCTA.cjs.map +1 -1
- package/dist/PricingSection/ProductCTA.js +1 -1
- package/dist/PricingSection/ProductCTA.js.map +1 -1
- package/dist/PricingSection/Products.cjs.map +1 -1
- package/dist/PricingSection/Products.js.map +1 -1
- package/dist/PricingSection/index.cjs.map +1 -1
- package/dist/PricingSection/index.d.cts +1 -5
- package/dist/PricingSection/index.d.cts.map +1 -1
- package/dist/PricingSection/index.d.ts +1 -5
- package/dist/PricingSection/index.d.ts.map +1 -1
- package/dist/PricingSection/index.js.map +1 -1
- package/dist/PricingSection/types.cjs.map +1 -1
- package/dist/PricingSection/types.d.cts.map +1 -1
- package/dist/PricingSection/types.d.ts.map +1 -1
- package/dist/PricingSection/types.js.map +1 -1
- package/dist/ProLogoAlt/index.cjs.map +1 -1
- package/dist/ProLogoAlt/index.d.cts +0 -1
- package/dist/ProLogoAlt/index.d.cts.map +1 -1
- package/dist/ProLogoAlt/index.d.ts +0 -1
- package/dist/ProLogoAlt/index.d.ts.map +1 -1
- package/dist/ProLogoAlt/index.js.map +1 -1
- package/dist/ProductFeatureShowcase/index.cjs.map +1 -1
- package/dist/ProductFeatureShowcase/index.d.cts.map +1 -1
- package/dist/ProductFeatureShowcase/index.d.ts.map +1 -1
- package/dist/ProductFeatureShowcase/index.js.map +1 -1
- package/dist/QuizScore/index.cjs.map +1 -1
- package/dist/QuizScore/index.js.map +1 -1
- package/dist/RatingsBar/index.cjs.map +1 -1
- package/dist/RatingsBar/index.d.cts +0 -1
- package/dist/RatingsBar/index.d.cts.map +1 -1
- package/dist/RatingsBar/index.d.ts +0 -1
- package/dist/RatingsBar/index.d.ts.map +1 -1
- package/dist/RatingsBar/index.js.map +1 -1
- package/dist/Recurly/context/elements/index.cjs.map +1 -1
- package/dist/Recurly/context/elements/index.d.cts +2 -3
- package/dist/Recurly/context/elements/index.d.cts.map +1 -1
- package/dist/Recurly/context/elements/index.d.ts +2 -3
- package/dist/Recurly/context/elements/index.d.ts.map +1 -1
- package/dist/Recurly/context/elements/index.js.map +1 -1
- package/dist/Recurly/context/index.cjs +5 -0
- package/dist/Recurly/context/index.d.cts +2 -1
- package/dist/Recurly/context/index.d.ts +2 -1
- package/dist/Recurly/context/index.js +2 -0
- package/dist/Recurly/context/recurly/index.cjs.map +1 -1
- package/dist/Recurly/context/recurly/index.d.cts +1 -5
- package/dist/Recurly/context/recurly/index.d.cts.map +1 -1
- package/dist/Recurly/context/recurly/index.d.ts +1 -5
- package/dist/Recurly/context/recurly/index.d.ts.map +1 -1
- package/dist/Recurly/context/recurly/index.js.map +1 -1
- package/dist/Recurly/context/recurly/loadRecurly.d.cts +0 -1
- package/dist/Recurly/context/recurly/loadRecurly.d.cts.map +1 -1
- package/dist/Recurly/context/recurly/loadRecurly.d.ts +0 -1
- package/dist/Recurly/context/recurly/loadRecurly.d.ts.map +1 -1
- package/dist/Recurly/fields/RecurlyField.cjs.map +1 -1
- package/dist/Recurly/fields/RecurlyField.d.cts +1 -6
- package/dist/Recurly/fields/RecurlyField.d.cts.map +1 -1
- package/dist/Recurly/fields/RecurlyField.d.ts +1 -6
- package/dist/Recurly/fields/RecurlyField.d.ts.map +1 -1
- package/dist/Recurly/fields/RecurlyField.js.map +1 -1
- package/dist/Recurly/fields/elements.cjs.map +1 -1
- package/dist/Recurly/fields/elements.d.cts +0 -1
- package/dist/Recurly/fields/elements.d.cts.map +1 -1
- package/dist/Recurly/fields/elements.d.ts +0 -1
- package/dist/Recurly/fields/elements.d.ts.map +1 -1
- package/dist/Recurly/fields/elements.js.map +1 -1
- package/dist/Recurly/fields/index.cjs +6 -0
- package/dist/Recurly/fields/index.d.cts +2 -1
- package/dist/Recurly/fields/index.d.ts +2 -1
- package/dist/Recurly/fields/index.js +2 -0
- package/dist/Recurly/index.cjs +9 -0
- package/dist/Recurly/index.d.cts +4 -1
- package/dist/Recurly/index.d.ts +4 -1
- package/dist/Recurly/index.js +2 -0
- package/dist/ResourceCard/index.cjs.map +1 -1
- package/dist/ResourceCard/index.d.cts +0 -1
- package/dist/ResourceCard/index.d.cts.map +1 -1
- package/dist/ResourceCard/index.d.ts +0 -1
- package/dist/ResourceCard/index.d.ts.map +1 -1
- package/dist/ResourceCard/index.js.map +1 -1
- package/dist/ScoreSummary/SubScores.cjs.map +1 -1
- package/dist/ScoreSummary/SubScores.d.cts +1 -10
- package/dist/ScoreSummary/SubScores.d.cts.map +1 -1
- package/dist/ScoreSummary/SubScores.d.ts +1 -10
- package/dist/ScoreSummary/SubScores.d.ts.map +1 -1
- package/dist/ScoreSummary/SubScores.js.map +1 -1
- package/dist/ScoreSummary/helpers.cjs +1 -0
- package/dist/ScoreSummary/helpers.js +1 -1
- package/dist/ScoreSummary/index.cjs.map +1 -1
- package/dist/ScoreSummary/index.d.cts +0 -1
- package/dist/ScoreSummary/index.d.cts.map +1 -1
- package/dist/ScoreSummary/index.d.ts +0 -1
- package/dist/ScoreSummary/index.d.ts.map +1 -1
- package/dist/ScoreSummary/index.js.map +1 -1
- package/dist/ScoreSummary/types.d.cts.map +1 -1
- package/dist/ScoreSummary/types.d.ts.map +1 -1
- package/dist/SkillPathCard/index.cjs.map +1 -1
- package/dist/SkillPathCard/index.d.cts +0 -1
- package/dist/SkillPathCard/index.d.cts.map +1 -1
- package/dist/SkillPathCard/index.d.ts +0 -1
- package/dist/SkillPathCard/index.d.ts.map +1 -1
- package/dist/SkillPathCard/index.js.map +1 -1
- package/dist/SocialMediaSharing/SocialShareIconLink.cjs.map +1 -1
- package/dist/SocialMediaSharing/SocialShareIconLink.d.cts +1 -0
- package/dist/SocialMediaSharing/SocialShareIconLink.d.cts.map +1 -1
- package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +1 -1
- package/dist/SocialMediaSharing/SocialShareIconLink.d.ts.map +1 -1
- package/dist/SocialMediaSharing/SocialShareIconLink.js.map +1 -1
- package/dist/SocialMediaSharing/index.cjs.map +1 -1
- package/dist/SocialMediaSharing/index.d.cts +3 -14
- package/dist/SocialMediaSharing/index.d.cts.map +1 -1
- package/dist/SocialMediaSharing/index.d.ts +3 -14
- package/dist/SocialMediaSharing/index.d.ts.map +1 -1
- package/dist/SocialMediaSharing/index.js.map +1 -1
- package/dist/SocialMediaSharingDropdown/index.cjs.map +1 -1
- package/dist/SocialMediaSharingDropdown/index.d.cts +0 -1
- package/dist/SocialMediaSharingDropdown/index.d.cts.map +1 -1
- package/dist/SocialMediaSharingDropdown/index.d.ts +0 -1
- package/dist/SocialMediaSharingDropdown/index.d.ts.map +1 -1
- package/dist/SocialMediaSharingDropdown/index.js.map +1 -1
- package/dist/Testimonial/index.cjs.map +1 -1
- package/dist/Testimonial/index.d.cts +0 -1
- package/dist/Testimonial/index.d.cts.map +1 -1
- package/dist/Testimonial/index.d.ts +0 -1
- package/dist/Testimonial/index.d.ts.map +1 -1
- package/dist/Testimonial/index.js.map +1 -1
- package/dist/assets/navyQuotes.cjs.map +1 -1
- package/dist/assets/navyQuotes.js.map +1 -1
- package/dist/index.cjs +21 -23
- package/dist/index.d.cts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +2 -3
- package/dist/lib/breakpointHooks/index.cjs +6 -3
- package/dist/lib/breakpointHooks/index.cjs.map +1 -1
- package/dist/lib/breakpointHooks/index.d.cts.map +1 -1
- package/dist/lib/breakpointHooks/index.d.ts.map +1 -1
- package/dist/lib/breakpointHooks/index.js +6 -3
- package/dist/lib/breakpointHooks/index.js.map +1 -1
- package/dist/lib/resourcesList/index.cjs.map +1 -1
- package/dist/lib/resourcesList/index.js.map +1 -1
- package/dist/typings/react.d.cts +0 -1
- package/dist/typings/react.d.cts.map +1 -1
- package/dist/typings/react.d.ts +0 -1
- package/dist/typings/react.d.ts.map +1 -1
- package/dist/utils/index.cjs +2 -0
- package/dist/utils/index.js +2 -0
- package/package.json +2 -2
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.cjs +0 -24
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.cjs.map +0 -1
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.cts +0 -19
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.cts.map +0 -1
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts +0 -19
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts.map +0 -1
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.js +0 -20
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.js.map +0 -1
- package/dist/AppBarDeprecated/index.cjs +0 -27
- package/dist/AppBarDeprecated/index.cjs.map +0 -1
- package/dist/AppBarDeprecated/index.d.cts +0 -19
- package/dist/AppBarDeprecated/index.d.cts.map +0 -1
- package/dist/AppBarDeprecated/index.d.ts +0 -19
- package/dist/AppBarDeprecated/index.d.ts.map +0 -1
- package/dist/AppBarDeprecated/index.js +0 -23
- package/dist/AppBarDeprecated/index.js.map +0 -1
- package/dist/AppBarDeprecated/styles/index.module.scss +0 -37
- package/dist/Loading/styles.module.scss +0 -129
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["variant","styled","useState","React","useIsomorphicLayoutEffect","BASE_STATIC_ASSET_PATH","variants","base","display","margin","default","width","small","StyledImg","getPlaceholderAssetPath","pathProgressState","progressState","Image","image","isSmall","ready","setReady","error","setError","document","addDefaultImageSource","event","target","onerror","src","alt","onError"],"sources":["../../../src/CurriculumCard/Image/index.tsx"],"sourcesContent":["import { variant } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport { useState } from 'react';\nimport * as React from 'react';\nimport { useIsomorphicLayoutEffect } from 'react-use';\n\nimport { BASE_STATIC_ASSET_PATH } from '../../remoteAssets/components';\n\nconst variants = variant({\n base: {\n display: 'block',\n margin: '0 auto',\n },\n variants: {\n default: {\n width: 160,\n },\n small: {\n width: 111,\n },\n },\n});\n\nconst StyledImg = styled.img(variants);\n\ntype ProgressState = 'inProgress' | 'completed';\n\nconst getPlaceholderAssetPath = (pathProgressState?: ProgressState) => {\n const progressState = pathProgressState ? `-${pathProgressState}` : '';\n return `${BASE_STATIC_ASSET_PATH}/curriculum/path/placeholder${progressState}.svg`;\n};\n\nexport type ImageProps = {\n image: string;\n progressState?: ProgressState;\n isSmall?: boolean;\n};\n\nexport const Image: React.FC<ImageProps> = ({\n image,\n progressState,\n isSmall,\n}) => {\n const [ready, setReady] = useState(false);\n const [error, setError] = useState(false);\n\n /** Delay initial render once to ensure that rehydration does not conflict with portal mounting */\n useIsomorphicLayoutEffect(() => {\n setReady(typeof document !== 'undefined');\n }, []);\n\n if (!ready) return null;\n\n const addDefaultImageSource = (event: React.SyntheticEvent) => {\n if (!error) {\n (event.target as HTMLImageElement).onerror = null;\n (event.target as HTMLImageElement).src =\n getPlaceholderAssetPath(progressState);\n setError(true);\n }\n };\n\n return (\n <StyledImg\n variant={isSmall ? 'small' : 'default'}\n src={image}\n alt=\"\"\n onError={addDefaultImageSource}\n />\n );\n};\n"],"mappings":";;;;;;;;AAQA,MAAMM,WAAWN,QAAQ;CACvBO,MAAM;EACJC,SAAS;EACTC,QAAQ;CACV;CACAH,UAAU;EACRI,SAAS,EACPC,OAAO,IACT;EACAC,OAAO,EACLD,OAAO,IACT;CACF;AACF,CAAA;AAEA,MAAME,YAAYZ,qBAAAA,OAAAA;;;
|
|
1
|
+
{"version":3,"file":"index.js","names":["variant","styled","useState","React","useIsomorphicLayoutEffect","BASE_STATIC_ASSET_PATH","variants","base","display","margin","default","width","small","StyledImg","getPlaceholderAssetPath","pathProgressState","progressState","Image","image","isSmall","ready","setReady","error","setError","document","addDefaultImageSource","event","target","onerror","src","alt","onError"],"sources":["../../../src/CurriculumCard/Image/index.tsx"],"sourcesContent":["import { variant } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport { useState } from 'react';\nimport * as React from 'react';\nimport { useIsomorphicLayoutEffect } from 'react-use';\n\nimport { BASE_STATIC_ASSET_PATH } from '../../remoteAssets/components';\n\nconst variants = variant({\n base: {\n display: 'block',\n margin: '0 auto',\n },\n variants: {\n default: {\n width: 160,\n },\n small: {\n width: 111,\n },\n },\n});\n\nconst StyledImg = styled.img(variants);\n\ntype ProgressState = 'inProgress' | 'completed';\n\nconst getPlaceholderAssetPath = (pathProgressState?: ProgressState) => {\n const progressState = pathProgressState ? `-${pathProgressState}` : '';\n return `${BASE_STATIC_ASSET_PATH}/curriculum/path/placeholder${progressState}.svg`;\n};\n\nexport type ImageProps = {\n image: string;\n progressState?: ProgressState;\n isSmall?: boolean;\n};\n\nexport const Image: React.FC<ImageProps> = ({\n image,\n progressState,\n isSmall,\n}) => {\n const [ready, setReady] = useState(false);\n const [error, setError] = useState(false);\n\n /** Delay initial render once to ensure that rehydration does not conflict with portal mounting */\n useIsomorphicLayoutEffect(() => {\n setReady(typeof document !== 'undefined');\n }, []);\n\n if (!ready) return null;\n\n const addDefaultImageSource = (event: React.SyntheticEvent) => {\n if (!error) {\n (event.target as HTMLImageElement).onerror = null;\n (event.target as HTMLImageElement).src =\n getPlaceholderAssetPath(progressState);\n setError(true);\n }\n };\n\n return (\n <StyledImg\n variant={isSmall ? 'small' : 'default'}\n src={image}\n alt=\"\"\n onError={addDefaultImageSource}\n />\n );\n};\n"],"mappings":";;;;;;;;AAQA,MAAMM,WAAWN,QAAQ;CACvBO,MAAM;EACJC,SAAS;EACTC,QAAQ;CACV;CACAH,UAAU;EACRI,SAAS,EACPC,OAAO,IACT;EACAC,OAAO,EACLD,OAAO,IACT;CACF;AACF,CAAA;AAEA,MAAME,YAAYZ,qBAAAA,OAAAA;;;AAAWK,CAAAA,CAAAA,CAAAA,UAAAA,qvFAAAA;AAI7B,MAAMQ,2BAA2BC,sBAAAA;CAE/B,OAAO,GAAGV,uBAAuB,8BADXU,oBAAoB,IAAIA,sBAAsB,GACS;AAC/E;AAQA,MAAaE,SAA+B,EAC1CC,OACAF,eACAG,cACD;CACC,MAAM,CAACC,OAAOC,YAAYnB,SAAS,KAAA;CACnC,MAAM,CAACoB,OAAOC,YAAYrB,SAAS,KAAA;oGAGnCE,gCAA0B;EACxBiB,SAAS,OAAOG,aAAa,WAAA;CAC/B,GAAG,CAAA,CAAE;CAEL,IAAI,CAACJ,OAAO,OAAO;CAEnB,MAAMK,yBAAyBC,UAAAA;EAC7B,IAAI,CAACJ,OAAO;GACTI,MAAMC,OAA4BC,UAAU;GAC5CF,MAAMC,OAA4BE,MACjCf,wBAAwBE,aAAAA;GAC1BO,SAAS,IAAA;EACX;CACF;CAEA,OACE,sBAAA,cAACV,WAAAA;EACCb,SAASmB,UAAU,UAAU;EAC7BU,KAAKX;EACLY,KAAI;EACJC,SAASN;;AAGf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["FlexBox","Text","capitalize","React","Difficulty","pluralizeWithS","Subtitle","difficulty","scope","showAltSubtitle","difficultyVariant","scopeToMap","Object","keys","filter","val","separatingChar","fontSize","alignItems","variant","length","map","scopeType","index","ml","key","b","textColor"],"sources":["../../../src/CurriculumCard/Subtitle/index.tsx"],"sourcesContent":["import { FlexBox, Text } from '@codecademy/gamut';\nimport capitalize from 'lodash/capitalize';\nimport * as React from 'react';\n\nimport { Difficulty } from '../Difficulty';\nimport { ContentDifficultyProps, DifficultyVariant } from '../Difficulty/types';\nimport { pluralizeWithS } from './helpers';\n\nexport type SubtitleProps = Pick<ContentDifficultyProps, 'difficulty'> & {\n scope: Record<string, number>;\n showAltSubtitle?: boolean;\n difficultyVariant?: DifficultyVariant;\n};\n\nexport const Subtitle: React.FC<SubtitleProps> = ({\n difficulty,\n scope,\n showAltSubtitle = false,\n difficultyVariant,\n}) => {\n const scopeToMap = Object.keys(scope).filter((val) => scope[val] > 0);\n\n const separatingChar = showAltSubtitle ? '|' : ',';\n\n return (\n <>\n {!showAltSubtitle && (\n <FlexBox fontSize={14} alignItems=\"center\">\n <Difficulty variant={difficultyVariant} difficulty={difficulty} />\n {scopeToMap.length ? separatingChar : null}\n </FlexBox>\n )}\n {scopeToMap.map((scopeType, index) => (\n <Text\n ml={showAltSubtitle && index === 0 ? 0 : 4}\n variant=\"p-small\"\n key={`${scopeType}-count`}\n >\n <b>{scope[scopeType]}</b>{' '}\n <Text textColor=\"gray-900\">\n {capitalize(pluralizeWithS(scopeType, scope[scopeType]))}\n </Text>{' '}\n {index < scopeToMap.length - 1 && separatingChar}{' '}\n </Text>\n ))}\n </>\n );\n};\n"],"mappings":";;;;;;;;;;AAcA,MAAaM,YAAqC,EAChDC,YACAC,OACAC,kBAAkB,OAClBC,wBACD;CACC,MAAMC,aAAaC,OAAOC,KAAKL,KAAAA,CAAAA,CAAOM,QAAQC,QAAQP,MAAMO,OAAO,CAAA;CAEnE,MAAMC,iBAAiBP,kBAAkB,MAAM;CAE/C,OACE,oBAAA,cAAA,MAAA,UAAA,MACG,CAACA,mBACA,oBAAA,cAACT,2BAAAA;EAAQiB,UAAU;EAAIC,YAAW;
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["FlexBox","Text","capitalize","React","Difficulty","pluralizeWithS","Subtitle","difficulty","scope","showAltSubtitle","difficultyVariant","scopeToMap","Object","keys","filter","val","separatingChar","fontSize","alignItems","variant","length","map","scopeType","index","ml","key","b","textColor"],"sources":["../../../src/CurriculumCard/Subtitle/index.tsx"],"sourcesContent":["import { FlexBox, Text } from '@codecademy/gamut';\nimport capitalize from 'lodash/capitalize';\nimport * as React from 'react';\n\nimport { Difficulty } from '../Difficulty';\nimport { ContentDifficultyProps, DifficultyVariant } from '../Difficulty/types';\nimport { pluralizeWithS } from './helpers';\n\nexport type SubtitleProps = Pick<ContentDifficultyProps, 'difficulty'> & {\n scope: Record<string, number>;\n showAltSubtitle?: boolean;\n difficultyVariant?: DifficultyVariant;\n};\n\nexport const Subtitle: React.FC<SubtitleProps> = ({\n difficulty,\n scope,\n showAltSubtitle = false,\n difficultyVariant,\n}) => {\n const scopeToMap = Object.keys(scope).filter((val) => scope[val] > 0);\n\n const separatingChar = showAltSubtitle ? '|' : ',';\n\n return (\n <>\n {!showAltSubtitle && (\n <FlexBox fontSize={14} alignItems=\"center\">\n <Difficulty variant={difficultyVariant} difficulty={difficulty} />\n {scopeToMap.length ? separatingChar : null}\n </FlexBox>\n )}\n {scopeToMap.map((scopeType, index) => (\n <Text\n ml={showAltSubtitle && index === 0 ? 0 : 4}\n variant=\"p-small\"\n key={`${scopeType}-count`}\n >\n <b>{scope[scopeType]}</b>{' '}\n <Text textColor=\"gray-900\">\n {capitalize(pluralizeWithS(scopeType, scope[scopeType]))}\n </Text>{' '}\n {index < scopeToMap.length - 1 && separatingChar}{' '}\n </Text>\n ))}\n </>\n );\n};\n"],"mappings":";;;;;;;;;;AAcA,MAAaM,YAAqC,EAChDC,YACAC,OACAC,kBAAkB,OAClBC,wBACD;CACC,MAAMC,aAAaC,OAAOC,KAAKL,KAAAA,CAAAA,CAAOM,QAAQC,QAAQP,MAAMO,OAAO,CAAA;CAEnE,MAAMC,iBAAiBP,kBAAkB,MAAM;CAE/C,OACE,oBAAA,cAAA,MAAA,UAAA,MACG,CAACA,mBACA,oBAAA,cAACT,2BAAAA;EAAQiB,UAAU;EAAIC,YAAW;CAChC,GAAA,oBAAA,cAACd,0BAAAA;EAAWe,SAAST;EAA+BH;CACnDI,CAAAA,GAAAA,WAAWS,SAASJ,iBAAiB,IAAA,GAGzCL,WAAWU,KAAKC,WAAWC,UAC1B,oBAAA,cAACtB,wBAAAA;EACCuB,IAAIf,mBAAmBc,UAAU,IAAI,IAAI;EACzCJ,SAAQ;EACRM,KAAK,GAAGH,UAAU;CAElB,GAAA,oBAAA,cAACI,KAAAA,MAAGlB,MAAMc,UAAU,GAAM,KAC1B,oBAAA,cAACrB,wBAAAA,EAAK0B,WAAU,WACbzB,qCAAWG,+BAAeiB,WAAWd,MAAMc,UAAU,CAAA,CAAA,GAChD,KACPC,QAAQZ,WAAWS,SAAS,KAAKJ,gBAAgB,GAAA,CAAA,CAAA;AAK5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../../src/CurriculumCard/Subtitle/index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../../src/CurriculumCard/Subtitle/index.tsx"],"mappings":";;;KAQY,gBAAgB,KAAK;EAC/B,OAAO;EACP;EACA,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/CurriculumCard/Subtitle/index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/CurriculumCard/Subtitle/index.tsx"],"mappings":";;;KAQY,gBAAgB,KAAK;EAC/B,OAAO;EACP;EACA,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["FlexBox","Text","capitalize","React","Difficulty","pluralizeWithS","Subtitle","difficulty","scope","showAltSubtitle","difficultyVariant","scopeToMap","Object","keys","filter","val","separatingChar","fontSize","alignItems","variant","length","map","scopeType","index","ml","key","b","textColor"],"sources":["../../../src/CurriculumCard/Subtitle/index.tsx"],"sourcesContent":["import { FlexBox, Text } from '@codecademy/gamut';\nimport capitalize from 'lodash/capitalize';\nimport * as React from 'react';\n\nimport { Difficulty } from '../Difficulty';\nimport { ContentDifficultyProps, DifficultyVariant } from '../Difficulty/types';\nimport { pluralizeWithS } from './helpers';\n\nexport type SubtitleProps = Pick<ContentDifficultyProps, 'difficulty'> & {\n scope: Record<string, number>;\n showAltSubtitle?: boolean;\n difficultyVariant?: DifficultyVariant;\n};\n\nexport const Subtitle: React.FC<SubtitleProps> = ({\n difficulty,\n scope,\n showAltSubtitle = false,\n difficultyVariant,\n}) => {\n const scopeToMap = Object.keys(scope).filter((val) => scope[val] > 0);\n\n const separatingChar = showAltSubtitle ? '|' : ',';\n\n return (\n <>\n {!showAltSubtitle && (\n <FlexBox fontSize={14} alignItems=\"center\">\n <Difficulty variant={difficultyVariant} difficulty={difficulty} />\n {scopeToMap.length ? separatingChar : null}\n </FlexBox>\n )}\n {scopeToMap.map((scopeType, index) => (\n <Text\n ml={showAltSubtitle && index === 0 ? 0 : 4}\n variant=\"p-small\"\n key={`${scopeType}-count`}\n >\n <b>{scope[scopeType]}</b>{' '}\n <Text textColor=\"gray-900\">\n {capitalize(pluralizeWithS(scopeType, scope[scopeType]))}\n </Text>{' '}\n {index < scopeToMap.length - 1 && separatingChar}{' '}\n </Text>\n ))}\n </>\n );\n};\n"],"mappings":";;;;;;;AAcA,MAAaM,YAAqC,EAChDC,YACAC,OACAC,kBAAkB,OAClBC,wBACD;CACC,MAAMC,aAAaC,OAAOC,KAAKL,KAAAA,CAAAA,CAAOM,QAAQC,QAAQP,MAAMO,OAAO,CAAA;CAEnE,MAAMC,iBAAiBP,kBAAkB,MAAM;CAE/C,OACE,sBAAA,cAAA,QAAA,UAAA,MACG,CAACA,mBACA,sBAAA,cAACT,SAAAA;EAAQiB,UAAU;EAAIC,YAAW;
|
|
1
|
+
{"version":3,"file":"index.js","names":["FlexBox","Text","capitalize","React","Difficulty","pluralizeWithS","Subtitle","difficulty","scope","showAltSubtitle","difficultyVariant","scopeToMap","Object","keys","filter","val","separatingChar","fontSize","alignItems","variant","length","map","scopeType","index","ml","key","b","textColor"],"sources":["../../../src/CurriculumCard/Subtitle/index.tsx"],"sourcesContent":["import { FlexBox, Text } from '@codecademy/gamut';\nimport capitalize from 'lodash/capitalize';\nimport * as React from 'react';\n\nimport { Difficulty } from '../Difficulty';\nimport { ContentDifficultyProps, DifficultyVariant } from '../Difficulty/types';\nimport { pluralizeWithS } from './helpers';\n\nexport type SubtitleProps = Pick<ContentDifficultyProps, 'difficulty'> & {\n scope: Record<string, number>;\n showAltSubtitle?: boolean;\n difficultyVariant?: DifficultyVariant;\n};\n\nexport const Subtitle: React.FC<SubtitleProps> = ({\n difficulty,\n scope,\n showAltSubtitle = false,\n difficultyVariant,\n}) => {\n const scopeToMap = Object.keys(scope).filter((val) => scope[val] > 0);\n\n const separatingChar = showAltSubtitle ? '|' : ',';\n\n return (\n <>\n {!showAltSubtitle && (\n <FlexBox fontSize={14} alignItems=\"center\">\n <Difficulty variant={difficultyVariant} difficulty={difficulty} />\n {scopeToMap.length ? separatingChar : null}\n </FlexBox>\n )}\n {scopeToMap.map((scopeType, index) => (\n <Text\n ml={showAltSubtitle && index === 0 ? 0 : 4}\n variant=\"p-small\"\n key={`${scopeType}-count`}\n >\n <b>{scope[scopeType]}</b>{' '}\n <Text textColor=\"gray-900\">\n {capitalize(pluralizeWithS(scopeType, scope[scopeType]))}\n </Text>{' '}\n {index < scopeToMap.length - 1 && separatingChar}{' '}\n </Text>\n ))}\n </>\n );\n};\n"],"mappings":";;;;;;;AAcA,MAAaM,YAAqC,EAChDC,YACAC,OACAC,kBAAkB,OAClBC,wBACD;CACC,MAAMC,aAAaC,OAAOC,KAAKL,KAAAA,CAAAA,CAAOM,QAAQC,QAAQP,MAAMO,OAAO,CAAA;CAEnE,MAAMC,iBAAiBP,kBAAkB,MAAM;CAE/C,OACE,sBAAA,cAAA,QAAA,UAAA,MACG,CAACA,mBACA,sBAAA,cAACT,SAAAA;EAAQiB,UAAU;EAAIC,YAAW;CAChC,GAAA,sBAAA,cAACd,YAAAA;EAAWe,SAAST;EAA+BH;CACnDI,CAAAA,GAAAA,WAAWS,SAASJ,iBAAiB,IAAA,GAGzCL,WAAWU,KAAKC,WAAWC,UAC1B,sBAAA,cAACtB,MAAAA;EACCuB,IAAIf,mBAAmBc,UAAU,IAAI,IAAI;EACzCJ,SAAQ;EACRM,KAAK,GAAGH,UAAU;CAElB,GAAA,sBAAA,cAACI,KAAAA,MAAGlB,MAAMc,UAAU,GAAM,KAC1B,sBAAA,cAACrB,MAAAA,EAAK0B,WAAU,WACbzB,GAAAA,WAAWG,eAAeiB,WAAWd,MAAMc,UAAU,CAAA,CAAA,GAChD,KACPC,QAAQZ,WAAWS,SAAS,KAAKJ,gBAAgB,GAAA,CAAA,CAAA;AAK5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["Box","Card","FlexBox","Text","pxRem","theme","styled","useMemo","React","Footer","Image","Subtitle","cardHeight","cardStyles","inProgress","completed","LineDecoration","colors","navy","CurriculumCard","beta","difficulty","description","headingLevel","image","isFullSize","isStaticSize","progressState","scope","tag","tagColor","text","title","showCareerPathVariant","showAltSubtitle","footerTextVariant","showDescription","difficultyVariant","horizontalOrientation","minHeight","minWidth","showProLogo","pro","boxVariant","isCareerPathVariant","toLowerCase","minimumHeight","contentType","display","flexDirection","_","xs","variant","isInteractive","position","maxWidth","pr","fontSize","mb","fontFamily","as","flexWrap","alignItems","my","pt","pb","ml","mr","isSmall"],"sources":["../../src/CurriculumCard/index.tsx"],"sourcesContent":["import { Box, Card, FlexBox, HeadingTags, Text } from '@codecademy/gamut';\nimport { pxRem, theme } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport { useMemo } from 'react';\nimport * as React from 'react';\n\nimport { TagColor } from './BottomTag/index';\nimport { Footer } from './Footer/index';\nimport { Image } from './Image/index';\nimport { Subtitle, SubtitleProps } from './Subtitle';\n\nexport type ProgressState = 'inProgress' | 'completed';\n\nexport type FooterTextVariantType = 'enrolled' | 'inProgress';\n\nconst cardHeight = 180;\n\nconst cardStyles = {\n inProgress: 'yellow',\n completed: 'navy',\n} as const;\n\nexport type CardProps = React.ComponentProps<typeof Card>;\n\nexport type CurriculumCardProps = SubtitleProps & {\n beta?: boolean;\n /**\n * Displays the curriculum type above the title\n */\n text: string;\n title: string;\n headingLevel?: HeadingTags;\n image?: string;\n isFullSize?: boolean;\n isStaticSize?: boolean;\n progressState?: ProgressState;\n showProLogo?: boolean;\n tag?: string;\n tagColor?: TagColor;\n showAltSubtitle?: boolean;\n /**\n * Changes In Progress card footer text from \"Enrolled...\" to \"In Progress...\"\n */\n footerTextVariant?: FooterTextVariantType;\n /**\n * optional text to be displayed below card subtitle\n */\n description?: string;\n /**\n * allows description to be shown in card body.\n */\n showDescription?: boolean;\n /**\n * career path cards are displayed with a variant style / decorative element\n */\n showCareerPathVariant?: boolean;\n /**\n * displays inner content with a horizontal orientation\n */\n horizontalOrientation?: boolean;\n\n /**\n * custom minimum height for curriculum card in pixels\n */\n minHeight?: CardProps['minHeight'];\n /**\n * custom minimum width for curriculum card in pixels\n */\n minWidth?: CardProps['minWidth'];\n};\n\nconst LineDecoration = styled(Box)`\n border-top: 1px solid\n ${({ inProgress }: { inProgress?: boolean }) =>\n inProgress ? theme.colors.navy : theme.colors['navy-200']};\n`;\n\n/**\n *\n * @deprecated This component is deprecated\n *\n * Please use the CareerPathCard, SkillPathCard, or CourseCard instead\n */\n\nexport const CurriculumCard: React.FC<CurriculumCardProps> = ({\n beta,\n difficulty,\n description,\n headingLevel = 'h3',\n image,\n isFullSize = false,\n isStaticSize = false,\n progressState,\n scope,\n tag,\n tagColor,\n text,\n title,\n showCareerPathVariant,\n showAltSubtitle = false,\n footerTextVariant = 'enrolled',\n showDescription,\n difficultyVariant,\n horizontalOrientation,\n minHeight,\n minWidth,\n showProLogo: pro,\n}) => {\n const boxVariant = progressState && cardStyles[progressState];\n\n const isCareerPathVariant =\n text.toLowerCase() === 'career path' && showCareerPathVariant;\n\n const minimumHeight = useMemo(() => {\n if (minHeight) return minHeight;\n return isStaticSize\n ? pxRem(285)\n : isFullSize\n ? pxRem(cardHeight * 2 + 32)\n : pxRem(cardHeight);\n }, [isFullSize, isStaticSize, minHeight]);\n\n const contentType = text === 'Course' && !pro ? 'Free Course' : text;\n return (\n <Card\n display=\"flex\"\n flexDirection={{\n _: 'column',\n xs: horizontalOrientation ? 'row' : 'column',\n }}\n minHeight={minimumHeight}\n minWidth={minWidth}\n variant={boxVariant ?? 'white'}\n isInteractive\n position=\"relative\"\n >\n <Box\n maxWidth={horizontalOrientation ? 418 : 'none'}\n pr={{ _: 0, xs: horizontalOrientation ? 40 : 0 }}\n >\n <Text display=\"flex\" fontSize={14} mb={12} fontFamily=\"accent\">\n {contentType}\n </Text>\n <Text as={headingLevel} mb={4} fontSize={20}>\n {title}\n </Text>\n {!progressState && (\n <FlexBox flexWrap=\"wrap\" alignItems=\"center\">\n <Subtitle\n scope={scope}\n difficulty={difficulty}\n showAltSubtitle={showAltSubtitle}\n difficultyVariant={difficultyVariant}\n />\n </FlexBox>\n )}\n {isCareerPathVariant && (\n <LineDecoration inProgress={progressState === 'inProgress'} my={8} />\n )}\n {(isCareerPathVariant || showDescription) && (\n <Text pt={8} pb={16} fontSize={14}>\n {description}\n </Text>\n )}\n </Box>\n {isFullSize && image && (\n <FlexBox\n my=\"auto\"\n ml=\"auto\"\n mr={horizontalOrientation ? 0 : 'auto'}\n pt={16}\n pb={isCareerPathVariant ? 32 : 0}\n pr={{ _: 0, xs: horizontalOrientation ? 24 : 0 }}\n >\n <Image\n isSmall={isCareerPathVariant}\n image={image}\n progressState={progressState}\n />\n </FlexBox>\n )}\n <Footer\n beta={beta}\n progressState={progressState}\n tag={tag}\n tagColor={tagColor}\n footerTextVariant={footerTextVariant}\n />\n </Card>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAeA,MAAMY,aAAa;AAEnB,MAAMC,aAAa;CACjBC,YAAY;CACZC,WAAW;AACb;AAmDA,MAAMC,iBAAiBV,2CAAON,uBAAAA;;;
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["Box","Card","FlexBox","Text","pxRem","theme","styled","useMemo","React","Footer","Image","Subtitle","cardHeight","cardStyles","inProgress","completed","LineDecoration","colors","navy","CurriculumCard","beta","difficulty","description","headingLevel","image","isFullSize","isStaticSize","progressState","scope","tag","tagColor","text","title","showCareerPathVariant","showAltSubtitle","footerTextVariant","showDescription","difficultyVariant","horizontalOrientation","minHeight","minWidth","showProLogo","pro","boxVariant","isCareerPathVariant","toLowerCase","minimumHeight","contentType","display","flexDirection","_","xs","variant","isInteractive","position","maxWidth","pr","fontSize","mb","fontFamily","as","flexWrap","alignItems","my","pt","pb","ml","mr","isSmall"],"sources":["../../src/CurriculumCard/index.tsx"],"sourcesContent":["import { Box, Card, FlexBox, HeadingTags, Text } from '@codecademy/gamut';\nimport { pxRem, theme } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport { useMemo } from 'react';\nimport * as React from 'react';\n\nimport { TagColor } from './BottomTag/index';\nimport { Footer } from './Footer/index';\nimport { Image } from './Image/index';\nimport { Subtitle, SubtitleProps } from './Subtitle';\n\nexport type ProgressState = 'inProgress' | 'completed';\n\nexport type FooterTextVariantType = 'enrolled' | 'inProgress';\n\nconst cardHeight = 180;\n\nconst cardStyles = {\n inProgress: 'yellow',\n completed: 'navy',\n} as const;\n\nexport type CardProps = React.ComponentProps<typeof Card>;\n\nexport type CurriculumCardProps = SubtitleProps & {\n beta?: boolean;\n /**\n * Displays the curriculum type above the title\n */\n text: string;\n title: string;\n headingLevel?: HeadingTags;\n image?: string;\n isFullSize?: boolean;\n isStaticSize?: boolean;\n progressState?: ProgressState;\n showProLogo?: boolean;\n tag?: string;\n tagColor?: TagColor;\n showAltSubtitle?: boolean;\n /**\n * Changes In Progress card footer text from \"Enrolled...\" to \"In Progress...\"\n */\n footerTextVariant?: FooterTextVariantType;\n /**\n * optional text to be displayed below card subtitle\n */\n description?: string;\n /**\n * allows description to be shown in card body.\n */\n showDescription?: boolean;\n /**\n * career path cards are displayed with a variant style / decorative element\n */\n showCareerPathVariant?: boolean;\n /**\n * displays inner content with a horizontal orientation\n */\n horizontalOrientation?: boolean;\n\n /**\n * custom minimum height for curriculum card in pixels\n */\n minHeight?: CardProps['minHeight'];\n /**\n * custom minimum width for curriculum card in pixels\n */\n minWidth?: CardProps['minWidth'];\n};\n\nconst LineDecoration = styled(Box)`\n border-top: 1px solid\n ${({ inProgress }: { inProgress?: boolean }) =>\n inProgress ? theme.colors.navy : theme.colors['navy-200']};\n`;\n\n/**\n *\n * @deprecated This component is deprecated\n *\n * Please use the CareerPathCard, SkillPathCard, or CourseCard instead\n */\n\nexport const CurriculumCard: React.FC<CurriculumCardProps> = ({\n beta,\n difficulty,\n description,\n headingLevel = 'h3',\n image,\n isFullSize = false,\n isStaticSize = false,\n progressState,\n scope,\n tag,\n tagColor,\n text,\n title,\n showCareerPathVariant,\n showAltSubtitle = false,\n footerTextVariant = 'enrolled',\n showDescription,\n difficultyVariant,\n horizontalOrientation,\n minHeight,\n minWidth,\n showProLogo: pro,\n}) => {\n const boxVariant = progressState && cardStyles[progressState];\n\n const isCareerPathVariant =\n text.toLowerCase() === 'career path' && showCareerPathVariant;\n\n const minimumHeight = useMemo(() => {\n if (minHeight) return minHeight;\n return isStaticSize\n ? pxRem(285)\n : isFullSize\n ? pxRem(cardHeight * 2 + 32)\n : pxRem(cardHeight);\n }, [isFullSize, isStaticSize, minHeight]);\n\n const contentType = text === 'Course' && !pro ? 'Free Course' : text;\n return (\n <Card\n display=\"flex\"\n flexDirection={{\n _: 'column',\n xs: horizontalOrientation ? 'row' : 'column',\n }}\n minHeight={minimumHeight}\n minWidth={minWidth}\n variant={boxVariant ?? 'white'}\n isInteractive\n position=\"relative\"\n >\n <Box\n maxWidth={horizontalOrientation ? 418 : 'none'}\n pr={{ _: 0, xs: horizontalOrientation ? 40 : 0 }}\n >\n <Text display=\"flex\" fontSize={14} mb={12} fontFamily=\"accent\">\n {contentType}\n </Text>\n <Text as={headingLevel} mb={4} fontSize={20}>\n {title}\n </Text>\n {!progressState && (\n <FlexBox flexWrap=\"wrap\" alignItems=\"center\">\n <Subtitle\n scope={scope}\n difficulty={difficulty}\n showAltSubtitle={showAltSubtitle}\n difficultyVariant={difficultyVariant}\n />\n </FlexBox>\n )}\n {isCareerPathVariant && (\n <LineDecoration inProgress={progressState === 'inProgress'} my={8} />\n )}\n {(isCareerPathVariant || showDescription) && (\n <Text pt={8} pb={16} fontSize={14}>\n {description}\n </Text>\n )}\n </Box>\n {isFullSize && image && (\n <FlexBox\n my=\"auto\"\n ml=\"auto\"\n mr={horizontalOrientation ? 0 : 'auto'}\n pt={16}\n pb={isCareerPathVariant ? 32 : 0}\n pr={{ _: 0, xs: horizontalOrientation ? 24 : 0 }}\n >\n <Image\n isSmall={isCareerPathVariant}\n image={image}\n progressState={progressState}\n />\n </FlexBox>\n )}\n <Footer\n beta={beta}\n progressState={progressState}\n tag={tag}\n tagColor={tagColor}\n footerTextVariant={footerTextVariant}\n />\n </Card>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAeA,MAAMY,aAAa;AAEnB,MAAMC,aAAa;CACjBC,YAAY;CACZC,WAAW;AACb;AAmDA,MAAMC,iBAAiBV,2CAAON,uBAAAA;;;AAExB,CAAA,CAAA,CAAA,+BAAC,EAAEc,iBACHA,aAAaT,+BAAMY,OAAOC,OAAOb,+BAAMY,OAAO,aAAW,KAAA,6nOAAA;;;;;;GAU/D,MAAaE,kBAAiD,EAC5DC,MACAC,YACAC,aACAC,eAAe,MACfC,OACAC,aAAa,OACbC,eAAe,OACfC,eACAC,OACAC,KACAC,UACAC,MACAC,OACAC,uBACAC,kBAAkB,OAClBC,oBAAoB,YACpBC,iBACAC,mBACAC,uBACAC,WACAC,UACAC,aAAaC,UACd;CACC,MAAMC,aAAahB,iBAAiBd,WAAWc;CAE/C,MAAMiB,sBACJb,KAAKc,YAAW,MAAO,iBAAiBZ;CAE1C,MAAMa,yCAAwB;EAC5B,IAAIP,WAAW,OAAOA;EACtB,OAAOb,mDACG,GAAA,IACND,iDACMb,GAAiB,wCACjBA,UAAAA;CACZ,GAAG;EAACa;EAAYC;EAAca;CAAU,CAAA;CAExC,MAAMQ,cAAchB,SAAS,YAAY,CAACW,MAAM,gBAAgBX;CAChE,OACE,oBAAA,cAAC9B,wBAAAA;EACC+C,SAAQ;EACRC,eAAe;GACbC,GAAG;GACHC,IAAIb,wBAAwB,QAAQ;EACtC;EACAC,WAAWO;EACDN;EACVY,SAAST,cAAc;EACvBU,eAAAA;EACAC,UAAS;CAET,GAAA,oBAAA,cAACtD,uBAAAA;EACCuD,UAAUjB,wBAAwB,MAAM;EACxCkB,IAAI;GAAEN,GAAG;GAAGC,IAAIb,wBAAwB,KAAK;EAAE;CAE/C,GAAA,oBAAA,cAACnC,wBAAAA;EAAK6C,SAAQ;EAAOS,UAAU;EAAIC,IAAI;EAAIC,YAAW;CACnDZ,GAAAA,WAAAA,GAEH,oBAAA,cAAC5C,wBAAAA;EAAKyD,IAAIrC;EAAcmC,IAAI;EAAGD,UAAU;CACtCzB,GAAAA,KAAAA,GAEF,CAACL,iBACA,oBAAA,cAACzB,2BAAAA;EAAQ2D,UAAS;EAAOC,YAAW;CAClC,GAAA,oBAAA,cAACnD,0BAAAA;EACQiB;EACKP;EACKa;EACEG;CAIxBO,CAAAA,CAAAA,GAAAA,uBACC,oBAAA,cAAC5B,gBAAAA;EAAeF,YAAYa,kBAAkB;EAAcoC,IAAI;CAEjE,CAAA,IAACnB,uBAAuBR,oBACvB,oBAAA,cAACjC,wBAAAA;EAAK6D,IAAI;EAAGC,IAAI;EAAIR,UAAU;CAC5BnC,GAAAA,WAAAA,CAAAA,GAING,cAAcD,SACb,oBAAA,cAACtB,2BAAAA;EACC6D,IAAG;EACHG,IAAG;EACHC,IAAI7B,wBAAwB,IAAI;EAChC0B,IAAI;EACJC,IAAIrB,sBAAsB,KAAK;EAC/BY,IAAI;GAAEN,GAAG;GAAGC,IAAIb,wBAAwB,KAAK;EAAE;CAE/C,GAAA,oBAAA,cAAC5B,uBAAAA;EACC0D,SAASxB;EACFpB;EACQG;CAIrB,CAAA,CAAA,GAAA,oBAAA,cAAClB,sBAAAA;EACOW;EACSO;EACVE;EACKC;EACSK;;AAI3B"}
|
|
@@ -2,7 +2,6 @@ import { TagColor } from "./BottomTag/index.cjs";
|
|
|
2
2
|
import { SubtitleProps } from "./Subtitle/index.cjs";
|
|
3
3
|
import { Card, HeadingTags } from "@codecademy/gamut";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
|
-
|
|
6
5
|
//#region src/CurriculumCard/index.d.ts
|
|
7
6
|
type ProgressState = 'inProgress' | 'completed';
|
|
8
7
|
type FooterTextVariantType = 'enrolled' | 'inProgress';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/CurriculumCard/index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/CurriculumCard/index.tsx"],"mappings":";;;;;KAWY;KAEA;KASA,YAAY,QAAM,sBAAsB;KAExC,sBAAsB;EAChC;;;;EAIA;EACA;EACA,eAAe;EACf;EACA;EACA;EACA,gBAAgB;EAChB;EACA;EACA,WAAW;EACX;;;;EAIA,oBAAoB;;;;EAIpB;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAKA,YAAY;;;;EAIZ,WAAW;;;;;;;;cAgBA,gBAAgB,QAAM,GAAG"}
|
|
@@ -2,7 +2,6 @@ import { TagColor } from "./BottomTag/index.js";
|
|
|
2
2
|
import { SubtitleProps } from "./Subtitle/index.js";
|
|
3
3
|
import { Card, HeadingTags } from "@codecademy/gamut";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
|
-
|
|
6
5
|
//#region src/CurriculumCard/index.d.ts
|
|
7
6
|
type ProgressState = 'inProgress' | 'completed';
|
|
8
7
|
type FooterTextVariantType = 'enrolled' | 'inProgress';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/CurriculumCard/index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/CurriculumCard/index.tsx"],"mappings":";;;;;KAWY;KAEA;KASA,YAAY,QAAM,sBAAsB;KAExC,sBAAsB;EAChC;;;;EAIA;EACA;EACA,eAAe;EACf;EACA;EACA;EACA,gBAAgB;EAChB;EACA;EACA,WAAW;EACX;;;;EAIA,oBAAoB;;;;EAIpB;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAKA,YAAY;;;;EAIZ,WAAW;;;;;;;;cAgBA,gBAAgB,QAAM,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Box","Card","FlexBox","Text","pxRem","theme","styled","useMemo","React","Footer","Image","Subtitle","cardHeight","cardStyles","inProgress","completed","LineDecoration","colors","navy","CurriculumCard","beta","difficulty","description","headingLevel","image","isFullSize","isStaticSize","progressState","scope","tag","tagColor","text","title","showCareerPathVariant","showAltSubtitle","footerTextVariant","showDescription","difficultyVariant","horizontalOrientation","minHeight","minWidth","showProLogo","pro","boxVariant","isCareerPathVariant","toLowerCase","minimumHeight","contentType","display","flexDirection","_","xs","variant","isInteractive","position","maxWidth","pr","fontSize","mb","fontFamily","as","flexWrap","alignItems","my","pt","pb","ml","mr","isSmall"],"sources":["../../src/CurriculumCard/index.tsx"],"sourcesContent":["import { Box, Card, FlexBox, HeadingTags, Text } from '@codecademy/gamut';\nimport { pxRem, theme } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport { useMemo } from 'react';\nimport * as React from 'react';\n\nimport { TagColor } from './BottomTag/index';\nimport { Footer } from './Footer/index';\nimport { Image } from './Image/index';\nimport { Subtitle, SubtitleProps } from './Subtitle';\n\nexport type ProgressState = 'inProgress' | 'completed';\n\nexport type FooterTextVariantType = 'enrolled' | 'inProgress';\n\nconst cardHeight = 180;\n\nconst cardStyles = {\n inProgress: 'yellow',\n completed: 'navy',\n} as const;\n\nexport type CardProps = React.ComponentProps<typeof Card>;\n\nexport type CurriculumCardProps = SubtitleProps & {\n beta?: boolean;\n /**\n * Displays the curriculum type above the title\n */\n text: string;\n title: string;\n headingLevel?: HeadingTags;\n image?: string;\n isFullSize?: boolean;\n isStaticSize?: boolean;\n progressState?: ProgressState;\n showProLogo?: boolean;\n tag?: string;\n tagColor?: TagColor;\n showAltSubtitle?: boolean;\n /**\n * Changes In Progress card footer text from \"Enrolled...\" to \"In Progress...\"\n */\n footerTextVariant?: FooterTextVariantType;\n /**\n * optional text to be displayed below card subtitle\n */\n description?: string;\n /**\n * allows description to be shown in card body.\n */\n showDescription?: boolean;\n /**\n * career path cards are displayed with a variant style / decorative element\n */\n showCareerPathVariant?: boolean;\n /**\n * displays inner content with a horizontal orientation\n */\n horizontalOrientation?: boolean;\n\n /**\n * custom minimum height for curriculum card in pixels\n */\n minHeight?: CardProps['minHeight'];\n /**\n * custom minimum width for curriculum card in pixels\n */\n minWidth?: CardProps['minWidth'];\n};\n\nconst LineDecoration = styled(Box)`\n border-top: 1px solid\n ${({ inProgress }: { inProgress?: boolean }) =>\n inProgress ? theme.colors.navy : theme.colors['navy-200']};\n`;\n\n/**\n *\n * @deprecated This component is deprecated\n *\n * Please use the CareerPathCard, SkillPathCard, or CourseCard instead\n */\n\nexport const CurriculumCard: React.FC<CurriculumCardProps> = ({\n beta,\n difficulty,\n description,\n headingLevel = 'h3',\n image,\n isFullSize = false,\n isStaticSize = false,\n progressState,\n scope,\n tag,\n tagColor,\n text,\n title,\n showCareerPathVariant,\n showAltSubtitle = false,\n footerTextVariant = 'enrolled',\n showDescription,\n difficultyVariant,\n horizontalOrientation,\n minHeight,\n minWidth,\n showProLogo: pro,\n}) => {\n const boxVariant = progressState && cardStyles[progressState];\n\n const isCareerPathVariant =\n text.toLowerCase() === 'career path' && showCareerPathVariant;\n\n const minimumHeight = useMemo(() => {\n if (minHeight) return minHeight;\n return isStaticSize\n ? pxRem(285)\n : isFullSize\n ? pxRem(cardHeight * 2 + 32)\n : pxRem(cardHeight);\n }, [isFullSize, isStaticSize, minHeight]);\n\n const contentType = text === 'Course' && !pro ? 'Free Course' : text;\n return (\n <Card\n display=\"flex\"\n flexDirection={{\n _: 'column',\n xs: horizontalOrientation ? 'row' : 'column',\n }}\n minHeight={minimumHeight}\n minWidth={minWidth}\n variant={boxVariant ?? 'white'}\n isInteractive\n position=\"relative\"\n >\n <Box\n maxWidth={horizontalOrientation ? 418 : 'none'}\n pr={{ _: 0, xs: horizontalOrientation ? 40 : 0 }}\n >\n <Text display=\"flex\" fontSize={14} mb={12} fontFamily=\"accent\">\n {contentType}\n </Text>\n <Text as={headingLevel} mb={4} fontSize={20}>\n {title}\n </Text>\n {!progressState && (\n <FlexBox flexWrap=\"wrap\" alignItems=\"center\">\n <Subtitle\n scope={scope}\n difficulty={difficulty}\n showAltSubtitle={showAltSubtitle}\n difficultyVariant={difficultyVariant}\n />\n </FlexBox>\n )}\n {isCareerPathVariant && (\n <LineDecoration inProgress={progressState === 'inProgress'} my={8} />\n )}\n {(isCareerPathVariant || showDescription) && (\n <Text pt={8} pb={16} fontSize={14}>\n {description}\n </Text>\n )}\n </Box>\n {isFullSize && image && (\n <FlexBox\n my=\"auto\"\n ml=\"auto\"\n mr={horizontalOrientation ? 0 : 'auto'}\n pt={16}\n pb={isCareerPathVariant ? 32 : 0}\n pr={{ _: 0, xs: horizontalOrientation ? 24 : 0 }}\n >\n <Image\n isSmall={isCareerPathVariant}\n image={image}\n progressState={progressState}\n />\n </FlexBox>\n )}\n <Footer\n beta={beta}\n progressState={progressState}\n tag={tag}\n tagColor={tagColor}\n footerTextVariant={footerTextVariant}\n />\n </Card>\n );\n};\n"],"mappings":";;;;;;;;;;AAeA,MAAMY,aAAa;AAEnB,MAAMC,aAAa;CACjBC,YAAY;CACZC,WAAW;AACb;AAmDA,MAAMC,iBAAiBV,qBAAON,KAAAA;;;
|
|
1
|
+
{"version":3,"file":"index.js","names":["Box","Card","FlexBox","Text","pxRem","theme","styled","useMemo","React","Footer","Image","Subtitle","cardHeight","cardStyles","inProgress","completed","LineDecoration","colors","navy","CurriculumCard","beta","difficulty","description","headingLevel","image","isFullSize","isStaticSize","progressState","scope","tag","tagColor","text","title","showCareerPathVariant","showAltSubtitle","footerTextVariant","showDescription","difficultyVariant","horizontalOrientation","minHeight","minWidth","showProLogo","pro","boxVariant","isCareerPathVariant","toLowerCase","minimumHeight","contentType","display","flexDirection","_","xs","variant","isInteractive","position","maxWidth","pr","fontSize","mb","fontFamily","as","flexWrap","alignItems","my","pt","pb","ml","mr","isSmall"],"sources":["../../src/CurriculumCard/index.tsx"],"sourcesContent":["import { Box, Card, FlexBox, HeadingTags, Text } from '@codecademy/gamut';\nimport { pxRem, theme } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport { useMemo } from 'react';\nimport * as React from 'react';\n\nimport { TagColor } from './BottomTag/index';\nimport { Footer } from './Footer/index';\nimport { Image } from './Image/index';\nimport { Subtitle, SubtitleProps } from './Subtitle';\n\nexport type ProgressState = 'inProgress' | 'completed';\n\nexport type FooterTextVariantType = 'enrolled' | 'inProgress';\n\nconst cardHeight = 180;\n\nconst cardStyles = {\n inProgress: 'yellow',\n completed: 'navy',\n} as const;\n\nexport type CardProps = React.ComponentProps<typeof Card>;\n\nexport type CurriculumCardProps = SubtitleProps & {\n beta?: boolean;\n /**\n * Displays the curriculum type above the title\n */\n text: string;\n title: string;\n headingLevel?: HeadingTags;\n image?: string;\n isFullSize?: boolean;\n isStaticSize?: boolean;\n progressState?: ProgressState;\n showProLogo?: boolean;\n tag?: string;\n tagColor?: TagColor;\n showAltSubtitle?: boolean;\n /**\n * Changes In Progress card footer text from \"Enrolled...\" to \"In Progress...\"\n */\n footerTextVariant?: FooterTextVariantType;\n /**\n * optional text to be displayed below card subtitle\n */\n description?: string;\n /**\n * allows description to be shown in card body.\n */\n showDescription?: boolean;\n /**\n * career path cards are displayed with a variant style / decorative element\n */\n showCareerPathVariant?: boolean;\n /**\n * displays inner content with a horizontal orientation\n */\n horizontalOrientation?: boolean;\n\n /**\n * custom minimum height for curriculum card in pixels\n */\n minHeight?: CardProps['minHeight'];\n /**\n * custom minimum width for curriculum card in pixels\n */\n minWidth?: CardProps['minWidth'];\n};\n\nconst LineDecoration = styled(Box)`\n border-top: 1px solid\n ${({ inProgress }: { inProgress?: boolean }) =>\n inProgress ? theme.colors.navy : theme.colors['navy-200']};\n`;\n\n/**\n *\n * @deprecated This component is deprecated\n *\n * Please use the CareerPathCard, SkillPathCard, or CourseCard instead\n */\n\nexport const CurriculumCard: React.FC<CurriculumCardProps> = ({\n beta,\n difficulty,\n description,\n headingLevel = 'h3',\n image,\n isFullSize = false,\n isStaticSize = false,\n progressState,\n scope,\n tag,\n tagColor,\n text,\n title,\n showCareerPathVariant,\n showAltSubtitle = false,\n footerTextVariant = 'enrolled',\n showDescription,\n difficultyVariant,\n horizontalOrientation,\n minHeight,\n minWidth,\n showProLogo: pro,\n}) => {\n const boxVariant = progressState && cardStyles[progressState];\n\n const isCareerPathVariant =\n text.toLowerCase() === 'career path' && showCareerPathVariant;\n\n const minimumHeight = useMemo(() => {\n if (minHeight) return minHeight;\n return isStaticSize\n ? pxRem(285)\n : isFullSize\n ? pxRem(cardHeight * 2 + 32)\n : pxRem(cardHeight);\n }, [isFullSize, isStaticSize, minHeight]);\n\n const contentType = text === 'Course' && !pro ? 'Free Course' : text;\n return (\n <Card\n display=\"flex\"\n flexDirection={{\n _: 'column',\n xs: horizontalOrientation ? 'row' : 'column',\n }}\n minHeight={minimumHeight}\n minWidth={minWidth}\n variant={boxVariant ?? 'white'}\n isInteractive\n position=\"relative\"\n >\n <Box\n maxWidth={horizontalOrientation ? 418 : 'none'}\n pr={{ _: 0, xs: horizontalOrientation ? 40 : 0 }}\n >\n <Text display=\"flex\" fontSize={14} mb={12} fontFamily=\"accent\">\n {contentType}\n </Text>\n <Text as={headingLevel} mb={4} fontSize={20}>\n {title}\n </Text>\n {!progressState && (\n <FlexBox flexWrap=\"wrap\" alignItems=\"center\">\n <Subtitle\n scope={scope}\n difficulty={difficulty}\n showAltSubtitle={showAltSubtitle}\n difficultyVariant={difficultyVariant}\n />\n </FlexBox>\n )}\n {isCareerPathVariant && (\n <LineDecoration inProgress={progressState === 'inProgress'} my={8} />\n )}\n {(isCareerPathVariant || showDescription) && (\n <Text pt={8} pb={16} fontSize={14}>\n {description}\n </Text>\n )}\n </Box>\n {isFullSize && image && (\n <FlexBox\n my=\"auto\"\n ml=\"auto\"\n mr={horizontalOrientation ? 0 : 'auto'}\n pt={16}\n pb={isCareerPathVariant ? 32 : 0}\n pr={{ _: 0, xs: horizontalOrientation ? 24 : 0 }}\n >\n <Image\n isSmall={isCareerPathVariant}\n image={image}\n progressState={progressState}\n />\n </FlexBox>\n )}\n <Footer\n beta={beta}\n progressState={progressState}\n tag={tag}\n tagColor={tagColor}\n footerTextVariant={footerTextVariant}\n />\n </Card>\n );\n};\n"],"mappings":";;;;;;;;;;AAeA,MAAMY,aAAa;AAEnB,MAAMC,aAAa;CACjBC,YAAY;CACZC,WAAW;AACb;AAmDA,MAAMC,iBAAiBV,qBAAON,KAAAA;;;AAExB,CAAA,CAAA,CAAA,+BAAC,EAAEc,iBACHA,aAAaT,MAAMY,OAAOC,OAAOb,MAAMY,OAAO,aAAW,KAAA,6nOAAA;;;;;;GAU/D,MAAaE,kBAAiD,EAC5DC,MACAC,YACAC,aACAC,eAAe,MACfC,OACAC,aAAa,OACbC,eAAe,OACfC,eACAC,OACAC,KACAC,UACAC,MACAC,OACAC,uBACAC,kBAAkB,OAClBC,oBAAoB,YACpBC,iBACAC,mBACAC,uBACAC,WACAC,UACAC,aAAaC,UACd;CACC,MAAMC,aAAahB,iBAAiBd,WAAWc;CAE/C,MAAMiB,sBACJb,KAAKc,YAAW,MAAO,iBAAiBZ;CAE1C,MAAMa,gBAAgBvC,cAAQ;EAC5B,IAAIgC,WAAW,OAAOA;EACtB,OAAOb,eACHtB,MAAM,GAAA,IACNqB,aACArB,MAAMQ,GAAiB,IACvBR,MAAMQ,UAAAA;CACZ,GAAG;EAACa;EAAYC;EAAca;CAAU,CAAA;CAExC,MAAMQ,cAAchB,SAAS,YAAY,CAACW,MAAM,gBAAgBX;CAChE,OACE,sBAAA,cAAC9B,MAAAA;EACC+C,SAAQ;EACRC,eAAe;GACbC,GAAG;GACHC,IAAIb,wBAAwB,QAAQ;EACtC;EACAC,WAAWO;EACDN;EACVY,SAAST,cAAc;EACvBU,eAAAA;EACAC,UAAS;CAET,GAAA,sBAAA,cAACtD,KAAAA;EACCuD,UAAUjB,wBAAwB,MAAM;EACxCkB,IAAI;GAAEN,GAAG;GAAGC,IAAIb,wBAAwB,KAAK;EAAE;CAE/C,GAAA,sBAAA,cAACnC,MAAAA;EAAK6C,SAAQ;EAAOS,UAAU;EAAIC,IAAI;EAAIC,YAAW;CACnDZ,GAAAA,WAAAA,GAEH,sBAAA,cAAC5C,MAAAA;EAAKyD,IAAIrC;EAAcmC,IAAI;EAAGD,UAAU;CACtCzB,GAAAA,KAAAA,GAEF,CAACL,iBACA,sBAAA,cAACzB,SAAAA;EAAQ2D,UAAS;EAAOC,YAAW;CAClC,GAAA,sBAAA,cAACnD,UAAAA;EACQiB;EACKP;EACKa;EACEG;CAIxBO,CAAAA,CAAAA,GAAAA,uBACC,sBAAA,cAAC5B,gBAAAA;EAAeF,YAAYa,kBAAkB;EAAcoC,IAAI;CAEjE,CAAA,IAACnB,uBAAuBR,oBACvB,sBAAA,cAACjC,MAAAA;EAAK6D,IAAI;EAAGC,IAAI;EAAIR,UAAU;CAC5BnC,GAAAA,WAAAA,CAAAA,GAING,cAAcD,SACb,sBAAA,cAACtB,SAAAA;EACC6D,IAAG;EACHG,IAAG;EACHC,IAAI7B,wBAAwB,IAAI;EAChC0B,IAAI;EACJC,IAAIrB,sBAAsB,KAAK;EAC/BY,IAAI;GAAEN,GAAG;GAAGC,IAAIb,wBAAwB,KAAK;EAAE;CAE/C,GAAA,sBAAA,cAAC5B,OAAAA;EACC0D,SAASxB;EACFpB;EACQG;CAIrB,CAAA,CAAA,GAAA,sBAAA,cAAClB,QAAAA;EACOW;EACSO;EACVE;EACKC;EACSK;;AAI3B"}
|
|
@@ -12,10 +12,16 @@ const DropdownList = ({ dropdownItems, isMenu, menuButtonId, onClose }) => {
|
|
|
12
12
|
onClose?.();
|
|
13
13
|
} else if (event.key === "ArrowUp") {
|
|
14
14
|
event.preventDefault();
|
|
15
|
-
if (index > 0)
|
|
15
|
+
if (index > 0) {
|
|
16
|
+
const decrementVal = dropdownItems[index - 1] === "separator" ? 2 : 1;
|
|
17
|
+
listRefs[index - decrementVal].current?.focus();
|
|
18
|
+
}
|
|
16
19
|
} else if (event.key === "ArrowDown") {
|
|
17
20
|
event.preventDefault();
|
|
18
|
-
if (index < dropdownItems.length - 1)
|
|
21
|
+
if (index < dropdownItems.length - 1) {
|
|
22
|
+
const incrementVal = dropdownItems[index + 1] === "separator" ? 2 : 1;
|
|
23
|
+
listRefs[index + incrementVal].current?.focus();
|
|
24
|
+
}
|
|
19
25
|
}
|
|
20
26
|
};
|
|
21
27
|
return /*#__PURE__*/ react.createElement(_codecademy_gamut.Menu, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownList.cjs","names":["Menu","MenuItem","MenuSeparator","React","DropdownList","dropdownItems","isMenu","menuButtonId","onClose","listRefs","useMemo","Array","from","length","createRef","handleKeyDown","event","index","key","preventDefault","isSeparatorEl","decrementVal","current","focus","incrementVal","variant","border","minWidth","py","role","undefined","aria-labelledby","map","item","i","aria-hidden","id","text","clickHandler","icon","linkProps","onClick","data-testid","tabIndex","onKeyDown","e","ref"],"sources":["../../src/DropdownButton/DropdownList.tsx"],"sourcesContent":["import { Menu, MenuItem, MenuSeparator } from '@codecademy/gamut';\nimport { GamutIconProps } from '@codecademy/gamut-icons';\nimport * as React from 'react';\n\nimport { DropdownButtonProps } from '.';\n\ntype AnchorProps = Partial<\n Pick<HTMLAnchorElement, 'href' | 'target' | 'ariaLabel'>\n>;\n\nexport type DropdownItem = {\n id: string;\n icon?: React.ComponentType<GamutIconProps>;\n text: string;\n clickHandler?: (event: React.MouseEvent) => void;\n} & AnchorProps;\n\nexport type DropdownListProps = {\n dropdownItems: (DropdownItem | 'separator')[];\n menuButtonId?: string;\n onClose?: () => void;\n} & Pick<DropdownButtonProps, 'isMenu'>;\n\nexport const DropdownList: React.FC<DropdownListProps> = ({\n dropdownItems,\n isMenu,\n menuButtonId,\n onClose,\n}) => {\n const listRefs = React.useMemo(\n (): React.RefObject<HTMLAnchorElement | null>[] =>\n Array.from({ length: dropdownItems.length }, () =>\n React.createRef<HTMLAnchorElement | null>()\n ),\n [dropdownItems.length]\n );\n\n const handleKeyDown = (\n event: React.KeyboardEvent | React.KeyboardEvent,\n index: number\n ) => {\n if (event.key === 'Tab') {\n event.preventDefault();\n onClose?.();\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n if (index > 0) {\n const isSeparatorEl = dropdownItems[index - 1] === 'separator';\n const decrementVal = isSeparatorEl ? 2 : 1;\n // Move focus to the previous item in the list\n listRefs[index - decrementVal].current?.focus();\n }\n } else if (event.key === 'ArrowDown') {\n event.preventDefault();\n if (index < dropdownItems.length - 1) {\n const isSeparatorEl = dropdownItems[index + 1] === 'separator';\n const incrementVal = isSeparatorEl ? 2 : 1;\n // Move focus to the next item in the list\n listRefs[index + incrementVal].current?.focus();\n }\n }\n };\n\n return (\n <Menu\n variant=\"popover\"\n border=\"none\"\n minWidth=\"max-content\"\n py={4}\n role={isMenu ? 'menu' : undefined}\n aria-labelledby={menuButtonId || ''}\n >\n {dropdownItems.map((item, i) => {\n if (item === 'separator') {\n return (\n // eslint-disable-next-line react/no-array-index-key\n <MenuSeparator key={`dropdown-separator-${i}`} aria-hidden=\"true\" />\n );\n }\n\n const { id, text, clickHandler, icon, ...linkProps } = item;\n\n const onClick = (event: React.MouseEvent) => {\n clickHandler?.(event);\n onClose?.();\n };\n\n return (\n <MenuItem\n key={id}\n data-testid={`dropdown-item-${id}`}\n onClick={onClick}\n icon={icon}\n tabIndex={0}\n onKeyDown={(e) => handleKeyDown(e, i)}\n ref={listRefs[i]}\n {...linkProps}\n >\n {text}\n </MenuItem>\n );\n })}\n </Menu>\n );\n};\n"],"mappings":";;;;;;AAuBA,MAAaI,gBAA6C,EACxDC,eACAC,QACAC,cACAC,cACD;CACC,MAAMC,WAAWN,MAAMO,cAEnBC,MAAMC,KAAK,EAAEC,QAAQR,cAAcQ,OAAO,SACxCV,oBAAMW,UAAS,CAAA,GAEnB,CAACT,cAAcQ,
|
|
1
|
+
{"version":3,"file":"DropdownList.cjs","names":["Menu","MenuItem","MenuSeparator","React","DropdownList","dropdownItems","isMenu","menuButtonId","onClose","listRefs","useMemo","Array","from","length","createRef","handleKeyDown","event","index","key","preventDefault","isSeparatorEl","decrementVal","current","focus","incrementVal","variant","border","minWidth","py","role","undefined","aria-labelledby","map","item","i","aria-hidden","id","text","clickHandler","icon","linkProps","onClick","data-testid","tabIndex","onKeyDown","e","ref"],"sources":["../../src/DropdownButton/DropdownList.tsx"],"sourcesContent":["import { Menu, MenuItem, MenuSeparator } from '@codecademy/gamut';\nimport { GamutIconProps } from '@codecademy/gamut-icons';\nimport * as React from 'react';\n\nimport { DropdownButtonProps } from '.';\n\ntype AnchorProps = Partial<\n Pick<HTMLAnchorElement, 'href' | 'target' | 'ariaLabel'>\n>;\n\nexport type DropdownItem = {\n id: string;\n icon?: React.ComponentType<GamutIconProps>;\n text: string;\n clickHandler?: (event: React.MouseEvent) => void;\n} & AnchorProps;\n\nexport type DropdownListProps = {\n dropdownItems: (DropdownItem | 'separator')[];\n menuButtonId?: string;\n onClose?: () => void;\n} & Pick<DropdownButtonProps, 'isMenu'>;\n\nexport const DropdownList: React.FC<DropdownListProps> = ({\n dropdownItems,\n isMenu,\n menuButtonId,\n onClose,\n}) => {\n const listRefs = React.useMemo(\n (): React.RefObject<HTMLAnchorElement | null>[] =>\n Array.from({ length: dropdownItems.length }, () =>\n React.createRef<HTMLAnchorElement | null>()\n ),\n [dropdownItems.length]\n );\n\n const handleKeyDown = (\n event: React.KeyboardEvent | React.KeyboardEvent,\n index: number\n ) => {\n if (event.key === 'Tab') {\n event.preventDefault();\n onClose?.();\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n if (index > 0) {\n const isSeparatorEl = dropdownItems[index - 1] === 'separator';\n const decrementVal = isSeparatorEl ? 2 : 1;\n // Move focus to the previous item in the list\n listRefs[index - decrementVal].current?.focus();\n }\n } else if (event.key === 'ArrowDown') {\n event.preventDefault();\n if (index < dropdownItems.length - 1) {\n const isSeparatorEl = dropdownItems[index + 1] === 'separator';\n const incrementVal = isSeparatorEl ? 2 : 1;\n // Move focus to the next item in the list\n listRefs[index + incrementVal].current?.focus();\n }\n }\n };\n\n return (\n <Menu\n variant=\"popover\"\n border=\"none\"\n minWidth=\"max-content\"\n py={4}\n role={isMenu ? 'menu' : undefined}\n aria-labelledby={menuButtonId || ''}\n >\n {dropdownItems.map((item, i) => {\n if (item === 'separator') {\n return (\n // eslint-disable-next-line react/no-array-index-key\n <MenuSeparator key={`dropdown-separator-${i}`} aria-hidden=\"true\" />\n );\n }\n\n const { id, text, clickHandler, icon, ...linkProps } = item;\n\n const onClick = (event: React.MouseEvent) => {\n clickHandler?.(event);\n onClose?.();\n };\n\n return (\n <MenuItem\n key={id}\n data-testid={`dropdown-item-${id}`}\n onClick={onClick}\n icon={icon}\n tabIndex={0}\n onKeyDown={(e) => handleKeyDown(e, i)}\n ref={listRefs[i]}\n {...linkProps}\n >\n {text}\n </MenuItem>\n );\n })}\n </Menu>\n );\n};\n"],"mappings":";;;;;;AAuBA,MAAaI,gBAA6C,EACxDC,eACAC,QACAC,cACAC,cACD;CACC,MAAMC,WAAWN,MAAMO,cAEnBC,MAAMC,KAAK,EAAEC,QAAQR,cAAcQ,OAAO,SACxCV,oBAAMW,UAAS,CAAA,GAEnB,CAACT,cAAcQ,MAAO,CAAA;CAGxB,MAAME,iBACJC,OACAC,UAAAA;EAEA,IAAID,MAAME,QAAQ,OAAO;GACvBF,MAAMG,eAAc;GACpBX,UAAAA;EACF,OAAO,IAAIQ,MAAME,QAAQ,WAAW;GAClCF,MAAMG,eAAc;GACpB,IAAIF,QAAQ,GAAG;IAEb,MAAMI,eADgBhB,cAAcY,QAAQ,OAAO,cACd,IAAI;IAEzCR,SAASQ,QAAQI,aAAa,CAACC,SAASC,MAAAA;GAC1C;EACF,OAAO,IAAIP,MAAME,QAAQ,aAAa;GACpCF,MAAMG,eAAc;GACpB,IAAIF,QAAQZ,cAAcQ,SAAS,GAAG;IAEpC,MAAMW,eADgBnB,cAAcY,QAAQ,OAAO,cACd,IAAI;IAEzCR,SAASQ,QAAQO,aAAa,CAACF,SAASC,MAAAA;GAC1C;EACF;CACF;CAEA,OACE,oBAAA,cAACvB,wBAAAA;EACCyB,SAAQ;EACRC,QAAO;EACPC,UAAS;EACTC,IAAI;EACJC,MAAMvB,SAAS,SAASwB;EACxBC,mBAAiBxB,gBAAgB;CAEhCF,GAAAA,cAAc2B,KAAKC,MAAMC,MAAAA;EACxB,IAAID,SAAS,aACX,OAEE,oBAAA,cAAC/B,iCAAAA;GAAcgB,KAAK,sBAAsBgB;GAAKC,eAAY;;EAI/D,MAAM,EAAEC,IAAIC,MAAMC,cAAcC,MAAM,GAAGC,cAAcP;EAEvD,MAAMQ,WAAWzB,UAAAA;GACfsB,eAAetB,KAAAA;GACfR,UAAAA;EACF;EAEA,OACE,oBAAA,cAACP,4BAAAA;GACCiB,KAAKkB;GACLM,eAAa,iBAAiBN;GACrBK;GACHF;GACNI,UAAU;GACVC,YAAYC,MAAM9B,cAAc8B,GAAGX,CAAAA;GACnCY,KAAKrC,SAASyB;GACb,GAAGM;EAEHH,GAAAA,IAAAA;CAGP,CAAA,CAAA;AAGN"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DropdownButtonProps } from "./index.cjs";
|
|
2
2
|
import { GamutIconProps } from "@codecademy/gamut-icons";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
|
-
|
|
5
4
|
//#region src/DropdownButton/DropdownList.d.ts
|
|
6
5
|
type AnchorProps = Partial<Pick<HTMLAnchorElement, 'href' | 'target' | 'ariaLabel'>>;
|
|
7
6
|
type DropdownItem = {
|
|
@@ -16,5 +15,5 @@ type DropdownListProps = {
|
|
|
16
15
|
onClose?: () => void;
|
|
17
16
|
} & Pick<DropdownButtonProps, 'isMenu'>;
|
|
18
17
|
//#endregion
|
|
19
|
-
export { DropdownListProps };
|
|
18
|
+
export { DropdownItem, DropdownListProps };
|
|
20
19
|
//# sourceMappingURL=DropdownList.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownList.d.cts","names":[],"sources":["../../src/DropdownButton/DropdownList.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DropdownList.d.cts","names":[],"sources":["../../src/DropdownButton/DropdownList.tsx"],"mappings":";;;;KAMK,cAAc,QACjB,KAAK;KAGK;EACV;EACA,OAAO,QAAM,cAAc;EAC3B;EACA,gBAAgB,OAAO,QAAM;IAC3B;KAEQ;EACV,gBAAgB;EAChB;EACA;IACE,KAAK"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DropdownButtonProps } from "./index.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { GamutIconProps } from "@codecademy/gamut-icons";
|
|
4
|
-
|
|
5
4
|
//#region src/DropdownButton/DropdownList.d.ts
|
|
6
5
|
type AnchorProps = Partial<Pick<HTMLAnchorElement, 'href' | 'target' | 'ariaLabel'>>;
|
|
7
6
|
type DropdownItem = {
|
|
@@ -16,5 +15,5 @@ type DropdownListProps = {
|
|
|
16
15
|
onClose?: () => void;
|
|
17
16
|
} & Pick<DropdownButtonProps, 'isMenu'>;
|
|
18
17
|
//#endregion
|
|
19
|
-
export { DropdownListProps };
|
|
18
|
+
export { DropdownItem, DropdownListProps };
|
|
20
19
|
//# sourceMappingURL=DropdownList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownList.d.ts","names":[],"sources":["../../src/DropdownButton/DropdownList.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DropdownList.d.ts","names":[],"sources":["../../src/DropdownButton/DropdownList.tsx"],"mappings":";;;;KAMK,cAAc,QACjB,KAAK;KAGK;EACV;EACA,OAAO,QAAM,cAAc;EAC3B;EACA,gBAAgB,OAAO,QAAM;IAC3B;KAEQ;EACV,gBAAgB;EAChB;EACA;IACE,KAAK"}
|
|
@@ -10,10 +10,16 @@ const DropdownList = ({ dropdownItems, isMenu, menuButtonId, onClose }) => {
|
|
|
10
10
|
onClose?.();
|
|
11
11
|
} else if (event.key === "ArrowUp") {
|
|
12
12
|
event.preventDefault();
|
|
13
|
-
if (index > 0)
|
|
13
|
+
if (index > 0) {
|
|
14
|
+
const decrementVal = dropdownItems[index - 1] === "separator" ? 2 : 1;
|
|
15
|
+
listRefs[index - decrementVal].current?.focus();
|
|
16
|
+
}
|
|
14
17
|
} else if (event.key === "ArrowDown") {
|
|
15
18
|
event.preventDefault();
|
|
16
|
-
if (index < dropdownItems.length - 1)
|
|
19
|
+
if (index < dropdownItems.length - 1) {
|
|
20
|
+
const incrementVal = dropdownItems[index + 1] === "separator" ? 2 : 1;
|
|
21
|
+
listRefs[index + incrementVal].current?.focus();
|
|
22
|
+
}
|
|
17
23
|
}
|
|
18
24
|
};
|
|
19
25
|
return /*#__PURE__*/ React$1.createElement(Menu, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownList.js","names":["Menu","MenuItem","MenuSeparator","React","DropdownList","dropdownItems","isMenu","menuButtonId","onClose","listRefs","useMemo","Array","from","length","createRef","handleKeyDown","event","index","key","preventDefault","isSeparatorEl","decrementVal","current","focus","incrementVal","variant","border","minWidth","py","role","undefined","aria-labelledby","map","item","i","aria-hidden","id","text","clickHandler","icon","linkProps","onClick","data-testid","tabIndex","onKeyDown","e","ref"],"sources":["../../src/DropdownButton/DropdownList.tsx"],"sourcesContent":["import { Menu, MenuItem, MenuSeparator } from '@codecademy/gamut';\nimport { GamutIconProps } from '@codecademy/gamut-icons';\nimport * as React from 'react';\n\nimport { DropdownButtonProps } from '.';\n\ntype AnchorProps = Partial<\n Pick<HTMLAnchorElement, 'href' | 'target' | 'ariaLabel'>\n>;\n\nexport type DropdownItem = {\n id: string;\n icon?: React.ComponentType<GamutIconProps>;\n text: string;\n clickHandler?: (event: React.MouseEvent) => void;\n} & AnchorProps;\n\nexport type DropdownListProps = {\n dropdownItems: (DropdownItem | 'separator')[];\n menuButtonId?: string;\n onClose?: () => void;\n} & Pick<DropdownButtonProps, 'isMenu'>;\n\nexport const DropdownList: React.FC<DropdownListProps> = ({\n dropdownItems,\n isMenu,\n menuButtonId,\n onClose,\n}) => {\n const listRefs = React.useMemo(\n (): React.RefObject<HTMLAnchorElement | null>[] =>\n Array.from({ length: dropdownItems.length }, () =>\n React.createRef<HTMLAnchorElement | null>()\n ),\n [dropdownItems.length]\n );\n\n const handleKeyDown = (\n event: React.KeyboardEvent | React.KeyboardEvent,\n index: number\n ) => {\n if (event.key === 'Tab') {\n event.preventDefault();\n onClose?.();\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n if (index > 0) {\n const isSeparatorEl = dropdownItems[index - 1] === 'separator';\n const decrementVal = isSeparatorEl ? 2 : 1;\n // Move focus to the previous item in the list\n listRefs[index - decrementVal].current?.focus();\n }\n } else if (event.key === 'ArrowDown') {\n event.preventDefault();\n if (index < dropdownItems.length - 1) {\n const isSeparatorEl = dropdownItems[index + 1] === 'separator';\n const incrementVal = isSeparatorEl ? 2 : 1;\n // Move focus to the next item in the list\n listRefs[index + incrementVal].current?.focus();\n }\n }\n };\n\n return (\n <Menu\n variant=\"popover\"\n border=\"none\"\n minWidth=\"max-content\"\n py={4}\n role={isMenu ? 'menu' : undefined}\n aria-labelledby={menuButtonId || ''}\n >\n {dropdownItems.map((item, i) => {\n if (item === 'separator') {\n return (\n // eslint-disable-next-line react/no-array-index-key\n <MenuSeparator key={`dropdown-separator-${i}`} aria-hidden=\"true\" />\n );\n }\n\n const { id, text, clickHandler, icon, ...linkProps } = item;\n\n const onClick = (event: React.MouseEvent) => {\n clickHandler?.(event);\n onClose?.();\n };\n\n return (\n <MenuItem\n key={id}\n data-testid={`dropdown-item-${id}`}\n onClick={onClick}\n icon={icon}\n tabIndex={0}\n onKeyDown={(e) => handleKeyDown(e, i)}\n ref={listRefs[i]}\n {...linkProps}\n >\n {text}\n </MenuItem>\n );\n })}\n </Menu>\n );\n};\n"],"mappings":";;;;AAuBA,MAAaI,gBAA6C,EACxDC,eACAC,QACAC,cACAC,cACD;CACC,MAAMC,WAAWN,QAAMO,cAEnBC,MAAMC,KAAK,EAAEC,QAAQR,cAAcQ,OAAO,SACxCV,sBAAMW,UAAS,CAAA,GAEnB,CAACT,cAAcQ,
|
|
1
|
+
{"version":3,"file":"DropdownList.js","names":["Menu","MenuItem","MenuSeparator","React","DropdownList","dropdownItems","isMenu","menuButtonId","onClose","listRefs","useMemo","Array","from","length","createRef","handleKeyDown","event","index","key","preventDefault","isSeparatorEl","decrementVal","current","focus","incrementVal","variant","border","minWidth","py","role","undefined","aria-labelledby","map","item","i","aria-hidden","id","text","clickHandler","icon","linkProps","onClick","data-testid","tabIndex","onKeyDown","e","ref"],"sources":["../../src/DropdownButton/DropdownList.tsx"],"sourcesContent":["import { Menu, MenuItem, MenuSeparator } from '@codecademy/gamut';\nimport { GamutIconProps } from '@codecademy/gamut-icons';\nimport * as React from 'react';\n\nimport { DropdownButtonProps } from '.';\n\ntype AnchorProps = Partial<\n Pick<HTMLAnchorElement, 'href' | 'target' | 'ariaLabel'>\n>;\n\nexport type DropdownItem = {\n id: string;\n icon?: React.ComponentType<GamutIconProps>;\n text: string;\n clickHandler?: (event: React.MouseEvent) => void;\n} & AnchorProps;\n\nexport type DropdownListProps = {\n dropdownItems: (DropdownItem | 'separator')[];\n menuButtonId?: string;\n onClose?: () => void;\n} & Pick<DropdownButtonProps, 'isMenu'>;\n\nexport const DropdownList: React.FC<DropdownListProps> = ({\n dropdownItems,\n isMenu,\n menuButtonId,\n onClose,\n}) => {\n const listRefs = React.useMemo(\n (): React.RefObject<HTMLAnchorElement | null>[] =>\n Array.from({ length: dropdownItems.length }, () =>\n React.createRef<HTMLAnchorElement | null>()\n ),\n [dropdownItems.length]\n );\n\n const handleKeyDown = (\n event: React.KeyboardEvent | React.KeyboardEvent,\n index: number\n ) => {\n if (event.key === 'Tab') {\n event.preventDefault();\n onClose?.();\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n if (index > 0) {\n const isSeparatorEl = dropdownItems[index - 1] === 'separator';\n const decrementVal = isSeparatorEl ? 2 : 1;\n // Move focus to the previous item in the list\n listRefs[index - decrementVal].current?.focus();\n }\n } else if (event.key === 'ArrowDown') {\n event.preventDefault();\n if (index < dropdownItems.length - 1) {\n const isSeparatorEl = dropdownItems[index + 1] === 'separator';\n const incrementVal = isSeparatorEl ? 2 : 1;\n // Move focus to the next item in the list\n listRefs[index + incrementVal].current?.focus();\n }\n }\n };\n\n return (\n <Menu\n variant=\"popover\"\n border=\"none\"\n minWidth=\"max-content\"\n py={4}\n role={isMenu ? 'menu' : undefined}\n aria-labelledby={menuButtonId || ''}\n >\n {dropdownItems.map((item, i) => {\n if (item === 'separator') {\n return (\n // eslint-disable-next-line react/no-array-index-key\n <MenuSeparator key={`dropdown-separator-${i}`} aria-hidden=\"true\" />\n );\n }\n\n const { id, text, clickHandler, icon, ...linkProps } = item;\n\n const onClick = (event: React.MouseEvent) => {\n clickHandler?.(event);\n onClose?.();\n };\n\n return (\n <MenuItem\n key={id}\n data-testid={`dropdown-item-${id}`}\n onClick={onClick}\n icon={icon}\n tabIndex={0}\n onKeyDown={(e) => handleKeyDown(e, i)}\n ref={listRefs[i]}\n {...linkProps}\n >\n {text}\n </MenuItem>\n );\n })}\n </Menu>\n );\n};\n"],"mappings":";;;;AAuBA,MAAaI,gBAA6C,EACxDC,eACAC,QACAC,cACAC,cACD;CACC,MAAMC,WAAWN,QAAMO,cAEnBC,MAAMC,KAAK,EAAEC,QAAQR,cAAcQ,OAAO,SACxCV,sBAAMW,UAAS,CAAA,GAEnB,CAACT,cAAcQ,MAAO,CAAA;CAGxB,MAAME,iBACJC,OACAC,UAAAA;EAEA,IAAID,MAAME,QAAQ,OAAO;GACvBF,MAAMG,eAAc;GACpBX,UAAAA;EACF,OAAO,IAAIQ,MAAME,QAAQ,WAAW;GAClCF,MAAMG,eAAc;GACpB,IAAIF,QAAQ,GAAG;IAEb,MAAMI,eADgBhB,cAAcY,QAAQ,OAAO,cACd,IAAI;IAEzCR,SAASQ,QAAQI,aAAa,CAACC,SAASC,MAAAA;GAC1C;EACF,OAAO,IAAIP,MAAME,QAAQ,aAAa;GACpCF,MAAMG,eAAc;GACpB,IAAIF,QAAQZ,cAAcQ,SAAS,GAAG;IAEpC,MAAMW,eADgBnB,cAAcY,QAAQ,OAAO,cACd,IAAI;IAEzCR,SAASQ,QAAQO,aAAa,CAACF,SAASC,MAAAA;GAC1C;EACF;CACF;CAEA,OACE,sBAAA,cAACvB,MAAAA;EACCyB,SAAQ;EACRC,QAAO;EACPC,UAAS;EACTC,IAAI;EACJC,MAAMvB,SAAS,SAASwB;EACxBC,mBAAiBxB,gBAAgB;CAEhCF,GAAAA,cAAc2B,KAAKC,MAAMC,MAAAA;EACxB,IAAID,SAAS,aACX,OAEE,sBAAA,cAAC/B,eAAAA;GAAcgB,KAAK,sBAAsBgB;GAAKC,eAAY;;EAI/D,MAAM,EAAEC,IAAIC,MAAMC,cAAcC,MAAM,GAAGC,cAAcP;EAEvD,MAAMQ,WAAWzB,UAAAA;GACfsB,eAAetB,KAAAA;GACfR,UAAAA;EACF;EAEA,OACE,sBAAA,cAACP,UAAAA;GACCiB,KAAKkB;GACLM,eAAa,iBAAiBN;GACrBK;GACHF;GACNI,UAAU;GACVC,YAAYC,MAAM9B,cAAc8B,GAAGX,CAAAA;GACnCY,KAAKrC,SAASyB;GACb,GAAGM;EAEHH,GAAAA,IAAAA;CAGP,CAAA,CAAA;AAGN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["FillButton","IconButton","Popover","StrokeButton","TextButton","ArrowChevronDownFilledIcon","MiniKebabMenuIcon","css","pxRem","styledOptions","styled","forwardRef","useId","useImperativeHandle","useRef","useState","React","DropdownList","useDynamicPopoverPosition","DownArrow","isOpen","HorizontalKebabIcon","transform","DropdownButton","align","buttonType","children","defaultPosition","dropdownItems","horizontalOffset","iconSize","isMenu","onClick","tipProps","verticalOffset","size","variant","buttonStyleProps","ref","buttonId","targetRef","position","popoverContainerRefCallback","setIsOpen","focus","current","handleClick","event","handleRequestClosed","textButtonDefaultSize","iconButtonDefaultSize","clickTarget","aria-expanded","id","data-testid","aria-haspopup","icon","tip","aria-label","length","popoverContainerRef","onRequestClose","outline","menuButtonId","onClose"],"sources":["../../src/DropdownButton/index.tsx"],"sourcesContent":["import {\n ButtonProps,\n FillButton,\n IconButton,\n Popover,\n PopoverProps,\n PopoverYPositionType,\n StrokeButton,\n TextButton,\n} from '@codecademy/gamut';\nimport {\n ArrowChevronDownFilledIcon,\n MiniKebabMenuIcon,\n} from '@codecademy/gamut-icons';\nimport { css, pxRem, styledOptions } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport {\n forwardRef,\n PropsWithChildren,\n useId,\n useImperativeHandle,\n useRef,\n useState,\n} from 'react';\nimport * as React from 'react';\n\nimport { DropdownList, DropdownListProps } from './DropdownList';\nimport { useDynamicPopoverPosition } from './useDynamicPopoverPosition';\n\nconst DownArrow = styled(ArrowChevronDownFilledIcon, styledOptions)<{\n isOpen?: boolean;\n}>`\n margin-left: ${pxRem(8)};\n transition: transform 0.35s ease-out;\n ${({ isOpen }) => isOpen && 'transform: rotate(-180deg)'};\n`;\n\nconst HorizontalKebabIcon = styled(MiniKebabMenuIcon)(\n css({\n transform: 'rotate(90deg)',\n })\n);\n\nexport type DropdownButtonRefType = {\n focus: HTMLButtonElement['focus'];\n};\n\nexport type DropdownButtonProps = PropsWithChildren<\n {\n align?: PopoverProps['align'];\n buttonType?: 'fill' | 'stroke' | 'text' | 'kebab' | 'horizontalKebab';\n defaultPosition?: PopoverYPositionType['position'];\n dropdownItems: DropdownListProps['dropdownItems'];\n horizontalOffset?: number;\n /**\n * Sets the size of the down arrow icon in the buttons that have text or the kebab and horizontal kebab icons.\n */\n iconSize?: number;\n /**\n * If the dropdown should semantically be a menu\n */\n isMenu?: boolean;\n onClick?: (event: React.MouseEvent) => void;\n tipProps?: React.ComponentProps<typeof IconButton>['tipProps'];\n verticalOffset?: number;\n } & ButtonProps\n>;\n\nexport const DropdownButton = forwardRef<\n DropdownButtonRefType,\n DropdownButtonProps\n>(\n (\n {\n align = 'left',\n buttonType = 'fill',\n children,\n defaultPosition = 'below',\n dropdownItems,\n horizontalOffset,\n iconSize,\n isMenu,\n onClick,\n tipProps,\n verticalOffset = 0,\n size,\n variant = 'primary',\n ...buttonStyleProps\n },\n ref\n ) => {\n const buttonId = useId();\n const targetRef = useRef<HTMLAnchorElement | HTMLButtonElement>(null);\n const { position, popoverContainerRefCallback } = useDynamicPopoverPosition(\n {\n targetRef,\n verticalOffset,\n defaultPosition,\n }\n );\n\n const [isOpen, setIsOpen] = useState(false);\n\n useImperativeHandle(ref, () => ({\n focus: () => targetRef.current?.focus(),\n }));\n\n const handleClick = (event: React.MouseEvent) => {\n if (!isOpen) {\n onClick?.(event);\n }\n setIsOpen(!isOpen);\n };\n const handleRequestClosed = () => {\n setIsOpen(false);\n };\n\n const textButtonDefaultSize = 'normal';\n const iconButtonDefaultSize = 'small';\n\n let clickTarget: React.ReactNode;\n switch (buttonType) {\n case 'fill':\n clickTarget = (\n <FillButton\n ref={targetRef}\n aria-expanded={isOpen}\n id={buttonId}\n onClick={handleClick}\n data-testid=\"dropdown-fill-button\"\n size={size || textButtonDefaultSize}\n variant={variant}\n {...(buttonStyleProps ?? {})}\n >\n {children}\n <DownArrow isOpen={isOpen} size={iconSize || 12} />\n </FillButton>\n );\n break;\n case 'stroke':\n clickTarget = (\n <StrokeButton\n ref={targetRef}\n aria-expanded={isOpen}\n id={buttonId}\n onClick={handleClick}\n data-testid=\"dropdown-stroke-button\"\n size={size || textButtonDefaultSize}\n variant={variant}\n {...(buttonStyleProps ?? {})}\n >\n {children}\n <DownArrow isOpen={isOpen} size={iconSize || 12} />\n </StrokeButton>\n );\n break;\n case 'text':\n clickTarget = (\n <TextButton\n ref={targetRef}\n id={buttonId}\n onClick={handleClick}\n data-testid=\"dropdown-stroke-button\"\n size={size || textButtonDefaultSize}\n variant={variant}\n {...(buttonStyleProps ?? {})}\n >\n {children}\n <DownArrow isOpen={isOpen} size={12} />\n </TextButton>\n );\n break;\n case 'kebab':\n clickTarget = (\n <IconButton\n ref={targetRef}\n aria-expanded={isOpen}\n aria-haspopup=\"menu\"\n id={buttonId}\n icon={() => <MiniKebabMenuIcon size={iconSize} />}\n size={size || iconButtonDefaultSize}\n variant=\"secondary\"\n onClick={handleClick}\n data-testid=\"dropdown-kebab-button\"\n tip=\"Show options\"\n tipProps={tipProps}\n {...(buttonStyleProps ?? {})}\n />\n );\n break;\n case 'horizontalKebab':\n clickTarget = (\n <IconButton\n aria-label=\"Options\"\n ref={targetRef}\n aria-expanded={isOpen}\n aria-haspopup=\"menu\"\n id={buttonId}\n icon={() => <HorizontalKebabIcon size={iconSize} />}\n size={size || iconButtonDefaultSize}\n variant=\"secondary\"\n onClick={handleClick}\n data-testid=\"dropdown-horizontal-kebab-button\"\n tipProps={tipProps}\n tip=\"Show more options\"\n {...(buttonStyleProps ?? {})}\n />\n );\n }\n\n return (\n <>\n {clickTarget}\n {dropdownItems.length !== 0 && (\n <Popover\n popoverContainerRef={popoverContainerRefCallback}\n targetRef={targetRef}\n isOpen={isOpen}\n onRequestClose={handleRequestClosed}\n align={align}\n verticalOffset={verticalOffset}\n horizontalOffset={horizontalOffset}\n position={position}\n outline\n >\n <DropdownList\n dropdownItems={dropdownItems}\n isMenu={isMenu}\n menuButtonId={buttonId}\n onClose={handleRequestClosed}\n />\n </Popover>\n )}\n </>\n );\n }\n);\n"],"mappings":";;;;;;;;;;;;AA6BA,MAAMmB,YAAYT,2CAAOL,oDAA4BI,wCAAAA;;;
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["FillButton","IconButton","Popover","StrokeButton","TextButton","ArrowChevronDownFilledIcon","MiniKebabMenuIcon","css","pxRem","styledOptions","styled","forwardRef","useId","useImperativeHandle","useRef","useState","React","DropdownList","useDynamicPopoverPosition","DownArrow","isOpen","HorizontalKebabIcon","transform","DropdownButton","align","buttonType","children","defaultPosition","dropdownItems","horizontalOffset","iconSize","isMenu","onClick","tipProps","verticalOffset","size","variant","buttonStyleProps","ref","buttonId","targetRef","position","popoverContainerRefCallback","setIsOpen","focus","current","handleClick","event","handleRequestClosed","textButtonDefaultSize","iconButtonDefaultSize","clickTarget","aria-expanded","id","data-testid","aria-haspopup","icon","tip","aria-label","length","popoverContainerRef","onRequestClose","outline","menuButtonId","onClose"],"sources":["../../src/DropdownButton/index.tsx"],"sourcesContent":["import {\n ButtonProps,\n FillButton,\n IconButton,\n Popover,\n PopoverProps,\n PopoverYPositionType,\n StrokeButton,\n TextButton,\n} from '@codecademy/gamut';\nimport {\n ArrowChevronDownFilledIcon,\n MiniKebabMenuIcon,\n} from '@codecademy/gamut-icons';\nimport { css, pxRem, styledOptions } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport {\n forwardRef,\n PropsWithChildren,\n useId,\n useImperativeHandle,\n useRef,\n useState,\n} from 'react';\nimport * as React from 'react';\n\nimport { DropdownList, DropdownListProps } from './DropdownList';\nimport { useDynamicPopoverPosition } from './useDynamicPopoverPosition';\n\nconst DownArrow = styled(ArrowChevronDownFilledIcon, styledOptions)<{\n isOpen?: boolean;\n}>`\n margin-left: ${pxRem(8)};\n transition: transform 0.35s ease-out;\n ${({ isOpen }) => isOpen && 'transform: rotate(-180deg)'};\n`;\n\nconst HorizontalKebabIcon = styled(MiniKebabMenuIcon)(\n css({\n transform: 'rotate(90deg)',\n })\n);\n\nexport type DropdownButtonRefType = {\n focus: HTMLButtonElement['focus'];\n};\n\nexport type DropdownButtonProps = PropsWithChildren<\n {\n align?: PopoverProps['align'];\n buttonType?: 'fill' | 'stroke' | 'text' | 'kebab' | 'horizontalKebab';\n defaultPosition?: PopoverYPositionType['position'];\n dropdownItems: DropdownListProps['dropdownItems'];\n horizontalOffset?: number;\n /**\n * Sets the size of the down arrow icon in the buttons that have text or the kebab and horizontal kebab icons.\n */\n iconSize?: number;\n /**\n * If the dropdown should semantically be a menu\n */\n isMenu?: boolean;\n onClick?: (event: React.MouseEvent) => void;\n tipProps?: React.ComponentProps<typeof IconButton>['tipProps'];\n verticalOffset?: number;\n } & ButtonProps\n>;\n\nexport const DropdownButton = forwardRef<\n DropdownButtonRefType,\n DropdownButtonProps\n>(\n (\n {\n align = 'left',\n buttonType = 'fill',\n children,\n defaultPosition = 'below',\n dropdownItems,\n horizontalOffset,\n iconSize,\n isMenu,\n onClick,\n tipProps,\n verticalOffset = 0,\n size,\n variant = 'primary',\n ...buttonStyleProps\n },\n ref\n ) => {\n const buttonId = useId();\n const targetRef = useRef<HTMLAnchorElement | HTMLButtonElement>(null);\n const { position, popoverContainerRefCallback } = useDynamicPopoverPosition(\n {\n targetRef,\n verticalOffset,\n defaultPosition,\n }\n );\n\n const [isOpen, setIsOpen] = useState(false);\n\n useImperativeHandle(ref, () => ({\n focus: () => targetRef.current?.focus(),\n }));\n\n const handleClick = (event: React.MouseEvent) => {\n if (!isOpen) {\n onClick?.(event);\n }\n setIsOpen(!isOpen);\n };\n const handleRequestClosed = () => {\n setIsOpen(false);\n };\n\n const textButtonDefaultSize = 'normal';\n const iconButtonDefaultSize = 'small';\n\n let clickTarget: React.ReactNode;\n switch (buttonType) {\n case 'fill':\n clickTarget = (\n <FillButton\n ref={targetRef}\n aria-expanded={isOpen}\n id={buttonId}\n onClick={handleClick}\n data-testid=\"dropdown-fill-button\"\n size={size || textButtonDefaultSize}\n variant={variant}\n {...(buttonStyleProps ?? {})}\n >\n {children}\n <DownArrow isOpen={isOpen} size={iconSize || 12} />\n </FillButton>\n );\n break;\n case 'stroke':\n clickTarget = (\n <StrokeButton\n ref={targetRef}\n aria-expanded={isOpen}\n id={buttonId}\n onClick={handleClick}\n data-testid=\"dropdown-stroke-button\"\n size={size || textButtonDefaultSize}\n variant={variant}\n {...(buttonStyleProps ?? {})}\n >\n {children}\n <DownArrow isOpen={isOpen} size={iconSize || 12} />\n </StrokeButton>\n );\n break;\n case 'text':\n clickTarget = (\n <TextButton\n ref={targetRef}\n id={buttonId}\n onClick={handleClick}\n data-testid=\"dropdown-stroke-button\"\n size={size || textButtonDefaultSize}\n variant={variant}\n {...(buttonStyleProps ?? {})}\n >\n {children}\n <DownArrow isOpen={isOpen} size={12} />\n </TextButton>\n );\n break;\n case 'kebab':\n clickTarget = (\n <IconButton\n ref={targetRef}\n aria-expanded={isOpen}\n aria-haspopup=\"menu\"\n id={buttonId}\n icon={() => <MiniKebabMenuIcon size={iconSize} />}\n size={size || iconButtonDefaultSize}\n variant=\"secondary\"\n onClick={handleClick}\n data-testid=\"dropdown-kebab-button\"\n tip=\"Show options\"\n tipProps={tipProps}\n {...(buttonStyleProps ?? {})}\n />\n );\n break;\n case 'horizontalKebab':\n clickTarget = (\n <IconButton\n aria-label=\"Options\"\n ref={targetRef}\n aria-expanded={isOpen}\n aria-haspopup=\"menu\"\n id={buttonId}\n icon={() => <HorizontalKebabIcon size={iconSize} />}\n size={size || iconButtonDefaultSize}\n variant=\"secondary\"\n onClick={handleClick}\n data-testid=\"dropdown-horizontal-kebab-button\"\n tipProps={tipProps}\n tip=\"Show more options\"\n {...(buttonStyleProps ?? {})}\n />\n );\n }\n\n return (\n <>\n {clickTarget}\n {dropdownItems.length !== 0 && (\n <Popover\n popoverContainerRef={popoverContainerRefCallback}\n targetRef={targetRef}\n isOpen={isOpen}\n onRequestClose={handleRequestClosed}\n align={align}\n verticalOffset={verticalOffset}\n horizontalOffset={horizontalOffset}\n position={position}\n outline\n >\n <DropdownList\n dropdownItems={dropdownItems}\n isMenu={isMenu}\n menuButtonId={buttonId}\n onClose={handleRequestClosed}\n />\n </Popover>\n )}\n </>\n );\n }\n);\n"],"mappings":";;;;;;;;;;;;AA6BA,MAAMmB,YAAYT,2CAAOL,oDAA4BI,wCAAAA;;;AAGpCD,CAAAA,CAAAA,CAAAA,oDAAM,CAAA,GAAA,0CAElB,EAAEY,aAAaA,UAAU,8BAAA,KAAA,6+RAAA;AAG9B,MAAMC,sBAAsBX,2CAAOJ,2CAAAA;;;AACjCC,CAAAA,CAAAA,mCAAI,EACFe,WAAW,gBACb,CAAA,GAAA,6+RAAA;AA4BF,MAAaC,iBAAiBZ,qCAK1B,EACEa,QAAQ,QACRC,aAAa,QACbC,UACAC,kBAAkB,SAClBC,eACAC,kBACAC,UACAC,QACAC,SACAC,UACAC,iBAAiB,GACjBC,MACAC,UAAU,WACV,GAAGC,oBAELC,QAAAA;CAEA,MAAMC,4BAAW3B;CACjB,MAAM4B,8BAA0D,IAAA;CAChE,MAAM,EAAEC,UAAUC,gCAAgCxB,4DAChD;EACEsB;EACAN;EACAP;CACF,CAAA;CAGF,MAAM,CAACP,QAAQuB,iCAAsB,KAAA;CAErC9B,+BAAoByB,YAAY,EAC9BM,aAAaJ,UAAUK,SAASD,MAAAA,EAClC,EAAA;CAEA,MAAME,eAAeC,UAAAA;EACnB,IAAI,CAAC3B,QACHY,UAAUe,KAAAA;EAEZJ,UAAU,CAACvB,MAAAA;CACb;CACA,MAAM4B,4BAAsB;EAC1BL,UAAU,KAAA;CACZ;CAEA,MAAMM,wBAAwB;CAC9B,MAAMC,wBAAwB;CAE9B,IAAIC;CACJ,QAAQ1B,YAAR;EACE,KAAK;GACH0B,cACE,oBAAA,cAACnD,8BAAAA;IACCsC,KAAKE;IACLY,iBAAehC;IACfiC,IAAId;IACJP,SAASc;IACTQ,eAAY;IACZnB,MAAMA,QAAQc;IACLb;IACR,GAAIC,oBAAoB,CAAC;GAEzBX,GAAAA,UACD,oBAAA,cAACP,WAAAA;IAAkBC;IAAQe,MAAML,YAAY;;GAGjD;EACF,KAAK;GACHqB,cACE,oBAAA,cAAChD,gCAAAA;IACCmC,KAAKE;IACLY,iBAAehC;IACfiC,IAAId;IACJP,SAASc;IACTQ,eAAY;IACZnB,MAAMA,QAAQc;IACLb;IACR,GAAIC,oBAAoB,CAAC;GAEzBX,GAAAA,UACD,oBAAA,cAACP,WAAAA;IAAkBC;IAAQe,MAAML,YAAY;;GAGjD;EACF,KAAK;GACHqB,cACE,oBAAA,cAAC/C,8BAAAA;IACCkC,KAAKE;IACLa,IAAId;IACJP,SAASc;IACTQ,eAAY;IACZnB,MAAMA,QAAQc;IACLb;IACR,GAAIC,oBAAoB,CAAC;GAEzBX,GAAAA,UACD,oBAAA,cAACP,WAAAA;IAAkBC;IAAQe,MAAM;;GAGrC;EACF,KAAK;GACHgB,cACE,oBAAA,cAAClD,8BAAAA;IACCqC,KAAKE;IACLY,iBAAehC;IACfmC,iBAAc;IACdF,IAAId;IACJiB,YAAY,oBAAA,cAAClD,2CAAAA,EAAkB6B,MAAML;IACrCK,MAAMA,QAAQe;IACdd,SAAQ;IACRJ,SAASc;IACTQ,eAAY;IACZG,KAAI;IACMxB;IACT,GAAII,oBAAoB,CAAC;;GAG9B;EACF,KAAK,mBACHc,cACE,oBAAA,cAAClD,8BAAAA;GACCyD,cAAW;GACXpB,KAAKE;GACLY,iBAAehC;GACfmC,iBAAc;GACdF,IAAId;GACJiB,YAAY,oBAAA,cAACnC,qBAAAA,EAAoBc,MAAML;GACvCK,MAAMA,QAAQe;GACdd,SAAQ;GACRJ,SAASc;GACTQ,eAAY;GACFrB;GACVwB,KAAI;GACH,GAAIpB,oBAAoB,CAAC;;CAGlC;CAEA,OACE,oBAAA,cAAA,MAAA,UAAA,MACGc,aACAvB,cAAc+B,WAAW,KACxB,oBAAA,cAACzD,2BAAAA;EACC0D,qBAAqBlB;EACVF;EACHpB;EACRyC,gBAAgBb;EACTxB;EACSU;EACEL;EACRY;EACVqB,SAAAA;CAEA,GAAA,oBAAA,cAAC7C,mCAAAA;EACgBW;EACPG;EACRgC,cAAcxB;EACdyB,SAAShB;;AAMrB,CAAA"}
|
|
@@ -2,7 +2,6 @@ import { DropdownListProps } from "./DropdownList.cjs";
|
|
|
2
2
|
import { ButtonProps, IconButton, PopoverProps, PopoverYPositionType } from "@codecademy/gamut";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { PropsWithChildren } from "react";
|
|
5
|
-
|
|
6
5
|
//#region src/DropdownButton/index.d.ts
|
|
7
6
|
type DropdownButtonRefType = {
|
|
8
7
|
focus: HTMLButtonElement['focus'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/DropdownButton/index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/DropdownButton/index.tsx"],"mappings":";;;;;KA2CY;EACV,OAAO;;KAGG,sBAAsB;EAE9B,QAAQ;EACR;EACA,kBAAkB;EAClB,eAAe;EACf;;;;EAIA;;;;EAIA;EACA,WAAW,OAAO,QAAM;EACxB,WAAW,QAAM,sBAAsB;EACvC;IACE;cAGO,gBAAc,QAAA,2BAAA;EAnBf,QAAA;EACK;EACK,kBAAA;EACH,eAAA;EACI;;;;EAIR;;;;EAIF;EACC,WAAC,OAAO,QAAM;EACb,WAAA,QAAM,sBAAsB;EACtB;;;;;;;;;EAfT,QAAA;EACK;EACK,kBAAA;EACH,eAAA;EACI;;;;EAIR;;;;EAIF;EACC,WAAC,OAAO,QAAM;EACb,WAAA,QAAM,sBAAsB;EACtB;;;;;;;;aA4KpB,QAAA,cAAA"}
|
|
@@ -2,7 +2,6 @@ import { DropdownListProps } from "./DropdownList.js";
|
|
|
2
2
|
import { ButtonProps, IconButton, PopoverProps, PopoverYPositionType } from "@codecademy/gamut";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { PropsWithChildren } from "react";
|
|
5
|
-
|
|
6
5
|
//#region src/DropdownButton/index.d.ts
|
|
7
6
|
type DropdownButtonRefType = {
|
|
8
7
|
focus: HTMLButtonElement['focus'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/DropdownButton/index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/DropdownButton/index.tsx"],"mappings":";;;;;KA2CY;EACV,OAAO;;KAGG,sBAAsB;EAE9B,QAAQ;EACR;EACA,kBAAkB;EAClB,eAAe;EACf;;;;EAIA;;;;EAIA;EACA,WAAW,OAAO,QAAM;EACxB,WAAW,QAAM,sBAAsB;EACvC;IACE;cAGO,gBAAc,QAAA,2BAAA;EAnBf,QAAA;EACK;EACK,kBAAA;EACH,eAAA;EACI;;;;EAIR;;;;EAIF;EACC,WAAC,OAAO,QAAM;EACb,WAAA,QAAM,sBAAsB;EACtB;;;;;;;;;EAfT,QAAA;EACK;EACK,kBAAA;EACH,eAAA;EACI;;;;EAIR;;;;EAIF;EACC,WAAC,OAAO,QAAM;EACb,WAAA,QAAM,sBAAsB;EACtB;;;;;;;;aA4KpB,QAAA,cAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["FillButton","IconButton","Popover","StrokeButton","TextButton","ArrowChevronDownFilledIcon","MiniKebabMenuIcon","css","pxRem","styledOptions","styled","forwardRef","useId","useImperativeHandle","useRef","useState","React","DropdownList","useDynamicPopoverPosition","DownArrow","isOpen","HorizontalKebabIcon","transform","DropdownButton","align","buttonType","children","defaultPosition","dropdownItems","horizontalOffset","iconSize","isMenu","onClick","tipProps","verticalOffset","size","variant","buttonStyleProps","ref","buttonId","targetRef","position","popoverContainerRefCallback","setIsOpen","focus","current","handleClick","event","handleRequestClosed","textButtonDefaultSize","iconButtonDefaultSize","clickTarget","aria-expanded","id","data-testid","aria-haspopup","icon","tip","aria-label","length","popoverContainerRef","onRequestClose","outline","menuButtonId","onClose"],"sources":["../../src/DropdownButton/index.tsx"],"sourcesContent":["import {\n ButtonProps,\n FillButton,\n IconButton,\n Popover,\n PopoverProps,\n PopoverYPositionType,\n StrokeButton,\n TextButton,\n} from '@codecademy/gamut';\nimport {\n ArrowChevronDownFilledIcon,\n MiniKebabMenuIcon,\n} from '@codecademy/gamut-icons';\nimport { css, pxRem, styledOptions } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport {\n forwardRef,\n PropsWithChildren,\n useId,\n useImperativeHandle,\n useRef,\n useState,\n} from 'react';\nimport * as React from 'react';\n\nimport { DropdownList, DropdownListProps } from './DropdownList';\nimport { useDynamicPopoverPosition } from './useDynamicPopoverPosition';\n\nconst DownArrow = styled(ArrowChevronDownFilledIcon, styledOptions)<{\n isOpen?: boolean;\n}>`\n margin-left: ${pxRem(8)};\n transition: transform 0.35s ease-out;\n ${({ isOpen }) => isOpen && 'transform: rotate(-180deg)'};\n`;\n\nconst HorizontalKebabIcon = styled(MiniKebabMenuIcon)(\n css({\n transform: 'rotate(90deg)',\n })\n);\n\nexport type DropdownButtonRefType = {\n focus: HTMLButtonElement['focus'];\n};\n\nexport type DropdownButtonProps = PropsWithChildren<\n {\n align?: PopoverProps['align'];\n buttonType?: 'fill' | 'stroke' | 'text' | 'kebab' | 'horizontalKebab';\n defaultPosition?: PopoverYPositionType['position'];\n dropdownItems: DropdownListProps['dropdownItems'];\n horizontalOffset?: number;\n /**\n * Sets the size of the down arrow icon in the buttons that have text or the kebab and horizontal kebab icons.\n */\n iconSize?: number;\n /**\n * If the dropdown should semantically be a menu\n */\n isMenu?: boolean;\n onClick?: (event: React.MouseEvent) => void;\n tipProps?: React.ComponentProps<typeof IconButton>['tipProps'];\n verticalOffset?: number;\n } & ButtonProps\n>;\n\nexport const DropdownButton = forwardRef<\n DropdownButtonRefType,\n DropdownButtonProps\n>(\n (\n {\n align = 'left',\n buttonType = 'fill',\n children,\n defaultPosition = 'below',\n dropdownItems,\n horizontalOffset,\n iconSize,\n isMenu,\n onClick,\n tipProps,\n verticalOffset = 0,\n size,\n variant = 'primary',\n ...buttonStyleProps\n },\n ref\n ) => {\n const buttonId = useId();\n const targetRef = useRef<HTMLAnchorElement | HTMLButtonElement>(null);\n const { position, popoverContainerRefCallback } = useDynamicPopoverPosition(\n {\n targetRef,\n verticalOffset,\n defaultPosition,\n }\n );\n\n const [isOpen, setIsOpen] = useState(false);\n\n useImperativeHandle(ref, () => ({\n focus: () => targetRef.current?.focus(),\n }));\n\n const handleClick = (event: React.MouseEvent) => {\n if (!isOpen) {\n onClick?.(event);\n }\n setIsOpen(!isOpen);\n };\n const handleRequestClosed = () => {\n setIsOpen(false);\n };\n\n const textButtonDefaultSize = 'normal';\n const iconButtonDefaultSize = 'small';\n\n let clickTarget: React.ReactNode;\n switch (buttonType) {\n case 'fill':\n clickTarget = (\n <FillButton\n ref={targetRef}\n aria-expanded={isOpen}\n id={buttonId}\n onClick={handleClick}\n data-testid=\"dropdown-fill-button\"\n size={size || textButtonDefaultSize}\n variant={variant}\n {...(buttonStyleProps ?? {})}\n >\n {children}\n <DownArrow isOpen={isOpen} size={iconSize || 12} />\n </FillButton>\n );\n break;\n case 'stroke':\n clickTarget = (\n <StrokeButton\n ref={targetRef}\n aria-expanded={isOpen}\n id={buttonId}\n onClick={handleClick}\n data-testid=\"dropdown-stroke-button\"\n size={size || textButtonDefaultSize}\n variant={variant}\n {...(buttonStyleProps ?? {})}\n >\n {children}\n <DownArrow isOpen={isOpen} size={iconSize || 12} />\n </StrokeButton>\n );\n break;\n case 'text':\n clickTarget = (\n <TextButton\n ref={targetRef}\n id={buttonId}\n onClick={handleClick}\n data-testid=\"dropdown-stroke-button\"\n size={size || textButtonDefaultSize}\n variant={variant}\n {...(buttonStyleProps ?? {})}\n >\n {children}\n <DownArrow isOpen={isOpen} size={12} />\n </TextButton>\n );\n break;\n case 'kebab':\n clickTarget = (\n <IconButton\n ref={targetRef}\n aria-expanded={isOpen}\n aria-haspopup=\"menu\"\n id={buttonId}\n icon={() => <MiniKebabMenuIcon size={iconSize} />}\n size={size || iconButtonDefaultSize}\n variant=\"secondary\"\n onClick={handleClick}\n data-testid=\"dropdown-kebab-button\"\n tip=\"Show options\"\n tipProps={tipProps}\n {...(buttonStyleProps ?? {})}\n />\n );\n break;\n case 'horizontalKebab':\n clickTarget = (\n <IconButton\n aria-label=\"Options\"\n ref={targetRef}\n aria-expanded={isOpen}\n aria-haspopup=\"menu\"\n id={buttonId}\n icon={() => <HorizontalKebabIcon size={iconSize} />}\n size={size || iconButtonDefaultSize}\n variant=\"secondary\"\n onClick={handleClick}\n data-testid=\"dropdown-horizontal-kebab-button\"\n tipProps={tipProps}\n tip=\"Show more options\"\n {...(buttonStyleProps ?? {})}\n />\n );\n }\n\n return (\n <>\n {clickTarget}\n {dropdownItems.length !== 0 && (\n <Popover\n popoverContainerRef={popoverContainerRefCallback}\n targetRef={targetRef}\n isOpen={isOpen}\n onRequestClose={handleRequestClosed}\n align={align}\n verticalOffset={verticalOffset}\n horizontalOffset={horizontalOffset}\n position={position}\n outline\n >\n <DropdownList\n dropdownItems={dropdownItems}\n isMenu={isMenu}\n menuButtonId={buttonId}\n onClose={handleRequestClosed}\n />\n </Popover>\n )}\n </>\n );\n }\n);\n"],"mappings":";;;;;;;;;;AA6BA,MAAMmB,YAAYT,qBAAOL,4BAA4BI,eAAAA;;;
|
|
1
|
+
{"version":3,"file":"index.js","names":["FillButton","IconButton","Popover","StrokeButton","TextButton","ArrowChevronDownFilledIcon","MiniKebabMenuIcon","css","pxRem","styledOptions","styled","forwardRef","useId","useImperativeHandle","useRef","useState","React","DropdownList","useDynamicPopoverPosition","DownArrow","isOpen","HorizontalKebabIcon","transform","DropdownButton","align","buttonType","children","defaultPosition","dropdownItems","horizontalOffset","iconSize","isMenu","onClick","tipProps","verticalOffset","size","variant","buttonStyleProps","ref","buttonId","targetRef","position","popoverContainerRefCallback","setIsOpen","focus","current","handleClick","event","handleRequestClosed","textButtonDefaultSize","iconButtonDefaultSize","clickTarget","aria-expanded","id","data-testid","aria-haspopup","icon","tip","aria-label","length","popoverContainerRef","onRequestClose","outline","menuButtonId","onClose"],"sources":["../../src/DropdownButton/index.tsx"],"sourcesContent":["import {\n ButtonProps,\n FillButton,\n IconButton,\n Popover,\n PopoverProps,\n PopoverYPositionType,\n StrokeButton,\n TextButton,\n} from '@codecademy/gamut';\nimport {\n ArrowChevronDownFilledIcon,\n MiniKebabMenuIcon,\n} from '@codecademy/gamut-icons';\nimport { css, pxRem, styledOptions } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport {\n forwardRef,\n PropsWithChildren,\n useId,\n useImperativeHandle,\n useRef,\n useState,\n} from 'react';\nimport * as React from 'react';\n\nimport { DropdownList, DropdownListProps } from './DropdownList';\nimport { useDynamicPopoverPosition } from './useDynamicPopoverPosition';\n\nconst DownArrow = styled(ArrowChevronDownFilledIcon, styledOptions)<{\n isOpen?: boolean;\n}>`\n margin-left: ${pxRem(8)};\n transition: transform 0.35s ease-out;\n ${({ isOpen }) => isOpen && 'transform: rotate(-180deg)'};\n`;\n\nconst HorizontalKebabIcon = styled(MiniKebabMenuIcon)(\n css({\n transform: 'rotate(90deg)',\n })\n);\n\nexport type DropdownButtonRefType = {\n focus: HTMLButtonElement['focus'];\n};\n\nexport type DropdownButtonProps = PropsWithChildren<\n {\n align?: PopoverProps['align'];\n buttonType?: 'fill' | 'stroke' | 'text' | 'kebab' | 'horizontalKebab';\n defaultPosition?: PopoverYPositionType['position'];\n dropdownItems: DropdownListProps['dropdownItems'];\n horizontalOffset?: number;\n /**\n * Sets the size of the down arrow icon in the buttons that have text or the kebab and horizontal kebab icons.\n */\n iconSize?: number;\n /**\n * If the dropdown should semantically be a menu\n */\n isMenu?: boolean;\n onClick?: (event: React.MouseEvent) => void;\n tipProps?: React.ComponentProps<typeof IconButton>['tipProps'];\n verticalOffset?: number;\n } & ButtonProps\n>;\n\nexport const DropdownButton = forwardRef<\n DropdownButtonRefType,\n DropdownButtonProps\n>(\n (\n {\n align = 'left',\n buttonType = 'fill',\n children,\n defaultPosition = 'below',\n dropdownItems,\n horizontalOffset,\n iconSize,\n isMenu,\n onClick,\n tipProps,\n verticalOffset = 0,\n size,\n variant = 'primary',\n ...buttonStyleProps\n },\n ref\n ) => {\n const buttonId = useId();\n const targetRef = useRef<HTMLAnchorElement | HTMLButtonElement>(null);\n const { position, popoverContainerRefCallback } = useDynamicPopoverPosition(\n {\n targetRef,\n verticalOffset,\n defaultPosition,\n }\n );\n\n const [isOpen, setIsOpen] = useState(false);\n\n useImperativeHandle(ref, () => ({\n focus: () => targetRef.current?.focus(),\n }));\n\n const handleClick = (event: React.MouseEvent) => {\n if (!isOpen) {\n onClick?.(event);\n }\n setIsOpen(!isOpen);\n };\n const handleRequestClosed = () => {\n setIsOpen(false);\n };\n\n const textButtonDefaultSize = 'normal';\n const iconButtonDefaultSize = 'small';\n\n let clickTarget: React.ReactNode;\n switch (buttonType) {\n case 'fill':\n clickTarget = (\n <FillButton\n ref={targetRef}\n aria-expanded={isOpen}\n id={buttonId}\n onClick={handleClick}\n data-testid=\"dropdown-fill-button\"\n size={size || textButtonDefaultSize}\n variant={variant}\n {...(buttonStyleProps ?? {})}\n >\n {children}\n <DownArrow isOpen={isOpen} size={iconSize || 12} />\n </FillButton>\n );\n break;\n case 'stroke':\n clickTarget = (\n <StrokeButton\n ref={targetRef}\n aria-expanded={isOpen}\n id={buttonId}\n onClick={handleClick}\n data-testid=\"dropdown-stroke-button\"\n size={size || textButtonDefaultSize}\n variant={variant}\n {...(buttonStyleProps ?? {})}\n >\n {children}\n <DownArrow isOpen={isOpen} size={iconSize || 12} />\n </StrokeButton>\n );\n break;\n case 'text':\n clickTarget = (\n <TextButton\n ref={targetRef}\n id={buttonId}\n onClick={handleClick}\n data-testid=\"dropdown-stroke-button\"\n size={size || textButtonDefaultSize}\n variant={variant}\n {...(buttonStyleProps ?? {})}\n >\n {children}\n <DownArrow isOpen={isOpen} size={12} />\n </TextButton>\n );\n break;\n case 'kebab':\n clickTarget = (\n <IconButton\n ref={targetRef}\n aria-expanded={isOpen}\n aria-haspopup=\"menu\"\n id={buttonId}\n icon={() => <MiniKebabMenuIcon size={iconSize} />}\n size={size || iconButtonDefaultSize}\n variant=\"secondary\"\n onClick={handleClick}\n data-testid=\"dropdown-kebab-button\"\n tip=\"Show options\"\n tipProps={tipProps}\n {...(buttonStyleProps ?? {})}\n />\n );\n break;\n case 'horizontalKebab':\n clickTarget = (\n <IconButton\n aria-label=\"Options\"\n ref={targetRef}\n aria-expanded={isOpen}\n aria-haspopup=\"menu\"\n id={buttonId}\n icon={() => <HorizontalKebabIcon size={iconSize} />}\n size={size || iconButtonDefaultSize}\n variant=\"secondary\"\n onClick={handleClick}\n data-testid=\"dropdown-horizontal-kebab-button\"\n tipProps={tipProps}\n tip=\"Show more options\"\n {...(buttonStyleProps ?? {})}\n />\n );\n }\n\n return (\n <>\n {clickTarget}\n {dropdownItems.length !== 0 && (\n <Popover\n popoverContainerRef={popoverContainerRefCallback}\n targetRef={targetRef}\n isOpen={isOpen}\n onRequestClose={handleRequestClosed}\n align={align}\n verticalOffset={verticalOffset}\n horizontalOffset={horizontalOffset}\n position={position}\n outline\n >\n <DropdownList\n dropdownItems={dropdownItems}\n isMenu={isMenu}\n menuButtonId={buttonId}\n onClose={handleRequestClosed}\n />\n </Popover>\n )}\n </>\n );\n }\n);\n"],"mappings":";;;;;;;;;;AA6BA,MAAMmB,YAAYT,qBAAOL,4BAA4BI,eAAAA;;;AAGpCD,CAAAA,CAAAA,CAAAA,gBAAAA,MAAM,CAAA,GAAA,0CAElB,EAAEY,aAAaA,UAAU,8BAAA,KAAA,6+RAAA;AAG9B,MAAMC,sBAAsBX,qBAAOJ,mBAAAA;;;AACjCC,CAAAA,CAAAA,CAAAA,IAAI,EACFe,WAAW,gBACb,CAAA,GAAA,6+RAAA;AA4BF,MAAaC,iBAAiBZ,0BAK1B,EACEa,QAAQ,QACRC,aAAa,QACbC,UACAC,kBAAkB,SAClBC,eACAC,kBACAC,UACAC,QACAC,SACAC,UACAC,iBAAiB,GACjBC,MACAC,UAAU,WACV,GAAGC,oBAELC,QAAAA;CAEA,MAAMC,WAAW3B,MAAAA;CACjB,MAAM4B,YAAY1B,OAA8C,IAAA;CAChE,MAAM,EAAE2B,UAAUC,gCAAgCxB,0BAChD;EACEsB;EACAN;EACAP;CACF,CAAA;CAGF,MAAM,CAACP,QAAQuB,aAAa5B,SAAS,KAAA;CAErCF,oBAAoByB,YAAY,EAC9BM,aAAaJ,UAAUK,SAASD,MAAAA,EAClC,EAAA;CAEA,MAAME,eAAeC,UAAAA;EACnB,IAAI,CAAC3B,QACHY,UAAUe,KAAAA;EAEZJ,UAAU,CAACvB,MAAAA;CACb;CACA,MAAM4B,4BAAsB;EAC1BL,UAAU,KAAA;CACZ;CAEA,MAAMM,wBAAwB;CAC9B,MAAMC,wBAAwB;CAE9B,IAAIC;CACJ,QAAQ1B,YAAR;EACE,KAAK;GACH0B,cACE,sBAAA,cAACnD,YAAAA;IACCsC,KAAKE;IACLY,iBAAehC;IACfiC,IAAId;IACJP,SAASc;IACTQ,eAAY;IACZnB,MAAMA,QAAQc;IACLb;IACR,GAAIC,oBAAoB,CAAC;GAEzBX,GAAAA,UACD,sBAAA,cAACP,WAAAA;IAAkBC;IAAQe,MAAML,YAAY;;GAGjD;EACF,KAAK;GACHqB,cACE,sBAAA,cAAChD,cAAAA;IACCmC,KAAKE;IACLY,iBAAehC;IACfiC,IAAId;IACJP,SAASc;IACTQ,eAAY;IACZnB,MAAMA,QAAQc;IACLb;IACR,GAAIC,oBAAoB,CAAC;GAEzBX,GAAAA,UACD,sBAAA,cAACP,WAAAA;IAAkBC;IAAQe,MAAML,YAAY;;GAGjD;EACF,KAAK;GACHqB,cACE,sBAAA,cAAC/C,YAAAA;IACCkC,KAAKE;IACLa,IAAId;IACJP,SAASc;IACTQ,eAAY;IACZnB,MAAMA,QAAQc;IACLb;IACR,GAAIC,oBAAoB,CAAC;GAEzBX,GAAAA,UACD,sBAAA,cAACP,WAAAA;IAAkBC;IAAQe,MAAM;;GAGrC;EACF,KAAK;GACHgB,cACE,sBAAA,cAAClD,YAAAA;IACCqC,KAAKE;IACLY,iBAAehC;IACfmC,iBAAc;IACdF,IAAId;IACJiB,YAAY,sBAAA,cAAClD,mBAAAA,EAAkB6B,MAAML;IACrCK,MAAMA,QAAQe;IACdd,SAAQ;IACRJ,SAASc;IACTQ,eAAY;IACZG,KAAI;IACMxB;IACT,GAAII,oBAAoB,CAAC;;GAG9B;EACF,KAAK,mBACHc,cACE,sBAAA,cAAClD,YAAAA;GACCyD,cAAW;GACXpB,KAAKE;GACLY,iBAAehC;GACfmC,iBAAc;GACdF,IAAId;GACJiB,YAAY,sBAAA,cAACnC,qBAAAA,EAAoBc,MAAML;GACvCK,MAAMA,QAAQe;GACdd,SAAQ;GACRJ,SAASc;GACTQ,eAAY;GACFrB;GACVwB,KAAI;GACH,GAAIpB,oBAAoB,CAAC;;CAGlC;CAEA,OACE,sBAAA,cAAA,QAAA,UAAA,MACGc,aACAvB,cAAc+B,WAAW,KACxB,sBAAA,cAACzD,SAAAA;EACC0D,qBAAqBlB;EACVF;EACHpB;EACRyC,gBAAgBb;EACTxB;EACSU;EACEL;EACRY;EACVqB,SAAAA;CAEA,GAAA,sBAAA,cAAC7C,cAAAA;EACgBW;EACPG;EACRgC,cAAcxB;EACdyB,SAAShB;;AAMrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["FlexBox","Text","DotLoose","pxRem","styledOptions","variant","styled","React","EmptyContainer","prop","defaultVariant","base","justifySelf","position","px","py","_","lg","width","variants","left","pl","sm","pr","right","none","Dots","top","bottom","xs","xl","illustrationPositionVariants","mx","mb","mr","ml","IllustrationContainer","EmptySection","bodyText","children","headingText","illustration","Illustration","stretchDirection","illustrationPosition","flexDirection","maxWidth","flexBasis","bg","md","zIndex","justifyContent","alignItems","textAlign","as","fontSize"],"sources":["../../src/EmptySection/index.tsx"],"sourcesContent":["import { ButtonProps, FlexBox, Text } from '@codecademy/gamut';\nimport { IllustrationProps } from '@codecademy/gamut-illustrations';\nimport { DotLoose } from '@codecademy/gamut-patterns';\nimport { pxRem, styledOptions, variant } from '@codecademy/gamut-styles';\nimport { StyleProps } from '@codecademy/variance';\nimport styled from '@emotion/styled';\nimport * as React from 'react';\n\nimport { DropdownButtonProps } from '..';\n\nexport type EmptySectionProps = {\n /**\n * Paragraph text that displays beneath the heading text\n */\n bodyText?: string;\n /**\n * Button or dropdown button with an action for the user to take\n */\n children?: React.ReactElement<ButtonProps | DropdownButtonProps>;\n /**\n * The larger heading text that appears over the body text\n */\n headingText: string;\n illustration: React.ComponentType<IllustrationProps>;\n /**\n * Whether the illustration appears to the left or right of the rest of the section's content\n */\n illustrationPosition?: 'left' | 'right';\n /**\n * Whether the pattern background stretches to the end of the left or right of the viewport\n */\n stretchDirection: 'left' | 'right' | 'none';\n};\n\nconst EmptyContainer = styled(FlexBox)(\n variant({\n prop: 'stretchDirection',\n defaultVariant: 'left',\n base: {\n justifySelf: 'center',\n position: 'relative',\n px: 32,\n py: { _: 64, lg: 96 },\n width: 1,\n },\n variants: {\n left: {\n pl: { sm: 0 },\n pr: { sm: 64, lg: 96 },\n },\n right: {\n pr: { sm: 0 },\n pl: { sm: 64, lg: 96 },\n },\n none: {},\n },\n })\n);\n\nconst Dots = styled(DotLoose)(\n variant({\n prop: 'stretchDirection',\n defaultVariant: 'left',\n base: {\n position: 'absolute',\n top: 0,\n bottom: 0,\n left: -16,\n },\n variants: {\n left: {\n left: {\n xs: -32,\n sm: -64,\n lg: -96,\n xl: 'calc((1248px - 100vw) / 2)',\n },\n width: {\n _: '100vw',\n xs: 'calc(100vw - 32px)',\n sm: 'calc(100vw - 64px)',\n lg: 'calc(100vw - 96px)',\n xl: 'calc(1248px + ((100vw - 1248px) / 2))',\n },\n },\n right: {\n left: { xs: 0 },\n width: {\n _: '100vw',\n xs: 'calc(100vw - 32px)',\n sm: 'calc(100vw - 64px)',\n lg: 'calc(100vw - 96px)',\n xl: 'calc(1248px + ((100vw - 1248px) / 2))',\n },\n },\n none: {\n left: 0,\n width: '100%',\n },\n },\n })\n);\n\nconst illustrationPositionVariants = variant({\n prop: 'illustrationPosition',\n defaultVariant: 'right',\n base: {\n mx: { _: 'auto', sm: 0 },\n mb: { _: 32, sm: 0 },\n },\n variants: {\n left: {\n mr: { sm: 48 },\n },\n right: {\n ml: { sm: 48 },\n },\n },\n});\n\ntype IllustrationContainerProps = StyleProps<\n typeof illustrationPositionVariants\n>;\n\nconst IllustrationContainer = styled(\n 'div',\n styledOptions\n)<IllustrationContainerProps>(illustrationPositionVariants);\n\nexport const EmptySection: React.FC<EmptySectionProps> = ({\n bodyText,\n children,\n headingText,\n illustration: Illustration,\n stretchDirection,\n illustrationPosition = stretchDirection === 'right' ? 'left' : 'right',\n}) => {\n const flexDirection =\n illustrationPosition === 'right' ? 'row-reverse' : 'row';\n\n return (\n <EmptyContainer stretchDirection={stretchDirection}>\n <Dots stretchDirection={stretchDirection} />\n <FlexBox\n maxWidth=\"822px\"\n flexBasis=\"100%\"\n position=\"relative\"\n bg=\"background-current\"\n py={48}\n px={{ _: 16, sm: 48, md: 64 }}\n zIndex={1}\n flexDirection={{ _: 'column', sm: flexDirection }}\n justifyContent={{ _: 'space-around', md: 'space-between' }}\n alignItems=\"center\"\n textAlign={{ _: 'center', sm: 'start' }}\n >\n <IllustrationContainer illustrationPosition={illustrationPosition}>\n <Illustration width={pxRem(100)} />\n </IllustrationContainer>\n <FlexBox\n flexDirection=\"column\"\n alignItems={{ _: 'center', sm: 'start' }}\n >\n <Text as=\"h2\" fontSize={22} mb={8}>\n {headingText}\n </Text>\n {bodyText && <Text mb={32}>{bodyText}</Text>}\n {children}\n </FlexBox>\n </FlexBox>\n </EmptyContainer>\n );\n};\n"],"mappings":";;;;;;;;;;AAkCA,MAAMQ,iBAAiBF,2CAAON,2BAAAA;;;
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["FlexBox","Text","DotLoose","pxRem","styledOptions","variant","styled","React","EmptyContainer","prop","defaultVariant","base","justifySelf","position","px","py","_","lg","width","variants","left","pl","sm","pr","right","none","Dots","top","bottom","xs","xl","illustrationPositionVariants","mx","mb","mr","ml","IllustrationContainer","EmptySection","bodyText","children","headingText","illustration","Illustration","stretchDirection","illustrationPosition","flexDirection","maxWidth","flexBasis","bg","md","zIndex","justifyContent","alignItems","textAlign","as","fontSize"],"sources":["../../src/EmptySection/index.tsx"],"sourcesContent":["import { ButtonProps, FlexBox, Text } from '@codecademy/gamut';\nimport { IllustrationProps } from '@codecademy/gamut-illustrations';\nimport { DotLoose } from '@codecademy/gamut-patterns';\nimport { pxRem, styledOptions, variant } from '@codecademy/gamut-styles';\nimport { StyleProps } from '@codecademy/variance';\nimport styled from '@emotion/styled';\nimport * as React from 'react';\n\nimport { DropdownButtonProps } from '..';\n\nexport type EmptySectionProps = {\n /**\n * Paragraph text that displays beneath the heading text\n */\n bodyText?: string;\n /**\n * Button or dropdown button with an action for the user to take\n */\n children?: React.ReactElement<ButtonProps | DropdownButtonProps>;\n /**\n * The larger heading text that appears over the body text\n */\n headingText: string;\n illustration: React.ComponentType<IllustrationProps>;\n /**\n * Whether the illustration appears to the left or right of the rest of the section's content\n */\n illustrationPosition?: 'left' | 'right';\n /**\n * Whether the pattern background stretches to the end of the left or right of the viewport\n */\n stretchDirection: 'left' | 'right' | 'none';\n};\n\nconst EmptyContainer = styled(FlexBox)(\n variant({\n prop: 'stretchDirection',\n defaultVariant: 'left',\n base: {\n justifySelf: 'center',\n position: 'relative',\n px: 32,\n py: { _: 64, lg: 96 },\n width: 1,\n },\n variants: {\n left: {\n pl: { sm: 0 },\n pr: { sm: 64, lg: 96 },\n },\n right: {\n pr: { sm: 0 },\n pl: { sm: 64, lg: 96 },\n },\n none: {},\n },\n })\n);\n\nconst Dots = styled(DotLoose)(\n variant({\n prop: 'stretchDirection',\n defaultVariant: 'left',\n base: {\n position: 'absolute',\n top: 0,\n bottom: 0,\n left: -16,\n },\n variants: {\n left: {\n left: {\n xs: -32,\n sm: -64,\n lg: -96,\n xl: 'calc((1248px - 100vw) / 2)',\n },\n width: {\n _: '100vw',\n xs: 'calc(100vw - 32px)',\n sm: 'calc(100vw - 64px)',\n lg: 'calc(100vw - 96px)',\n xl: 'calc(1248px + ((100vw - 1248px) / 2))',\n },\n },\n right: {\n left: { xs: 0 },\n width: {\n _: '100vw',\n xs: 'calc(100vw - 32px)',\n sm: 'calc(100vw - 64px)',\n lg: 'calc(100vw - 96px)',\n xl: 'calc(1248px + ((100vw - 1248px) / 2))',\n },\n },\n none: {\n left: 0,\n width: '100%',\n },\n },\n })\n);\n\nconst illustrationPositionVariants = variant({\n prop: 'illustrationPosition',\n defaultVariant: 'right',\n base: {\n mx: { _: 'auto', sm: 0 },\n mb: { _: 32, sm: 0 },\n },\n variants: {\n left: {\n mr: { sm: 48 },\n },\n right: {\n ml: { sm: 48 },\n },\n },\n});\n\ntype IllustrationContainerProps = StyleProps<\n typeof illustrationPositionVariants\n>;\n\nconst IllustrationContainer = styled(\n 'div',\n styledOptions\n)<IllustrationContainerProps>(illustrationPositionVariants);\n\nexport const EmptySection: React.FC<EmptySectionProps> = ({\n bodyText,\n children,\n headingText,\n illustration: Illustration,\n stretchDirection,\n illustrationPosition = stretchDirection === 'right' ? 'left' : 'right',\n}) => {\n const flexDirection =\n illustrationPosition === 'right' ? 'row-reverse' : 'row';\n\n return (\n <EmptyContainer stretchDirection={stretchDirection}>\n <Dots stretchDirection={stretchDirection} />\n <FlexBox\n maxWidth=\"822px\"\n flexBasis=\"100%\"\n position=\"relative\"\n bg=\"background-current\"\n py={48}\n px={{ _: 16, sm: 48, md: 64 }}\n zIndex={1}\n flexDirection={{ _: 'column', sm: flexDirection }}\n justifyContent={{ _: 'space-around', md: 'space-between' }}\n alignItems=\"center\"\n textAlign={{ _: 'center', sm: 'start' }}\n >\n <IllustrationContainer illustrationPosition={illustrationPosition}>\n <Illustration width={pxRem(100)} />\n </IllustrationContainer>\n <FlexBox\n flexDirection=\"column\"\n alignItems={{ _: 'center', sm: 'start' }}\n >\n <Text as=\"h2\" fontSize={22} mb={8}>\n {headingText}\n </Text>\n {bodyText && <Text mb={32}>{bodyText}</Text>}\n {children}\n </FlexBox>\n </FlexBox>\n </EmptyContainer>\n );\n};\n"],"mappings":";;;;;;;;;;AAkCA,MAAMQ,iBAAiBF,2CAAON,2BAAAA;;;AAC5BK,CAAAA,CAAAA,uCAAQ;CACNI,MAAM;CACNC,gBAAgB;CAChBC,MAAM;EACJC,aAAa;EACbC,UAAU;EACVC,IAAI;EACJC,IAAI;GAAEC,GAAG;GAAIC,IAAI;EAAG;EACpBC,OAAO;CACT;CACAC,UAAU;EACRC,MAAM;GACJC,IAAI,EAAEC,IAAI,EAAE;GACZC,IAAI;IAAED,IAAI;IAAIL,IAAI;GAAG;EACvB;EACAO,OAAO;GACLD,IAAI,EAAED,IAAI,EAAE;GACZD,IAAI;IAAEC,IAAI;IAAIL,IAAI;GAAG;EACvB;EACAQ,MAAM,CAAC;CACT;AACF,CAAA,GAAA,qzMAAA;AAGF,MAAMC,OAAOpB,2CAAOJ,qCAAAA;;;AAClBG,CAAAA,CAAAA,uCAAQ;CACNI,MAAM;CACNC,gBAAgB;CAChBC,MAAM;EACJE,UAAU;EACVc,KAAK;EACLC,QAAQ;EACRR,MAAM;CACR;CACAD,UAAU;EACRC,MAAM;GACJA,MAAM;IACJS,IAAI;IACJP,IAAI;IACJL,IAAI;IACJa,IAAI;GACN;GACAZ,OAAO;IACLF,GAAG;IACHa,IAAI;IACJP,IAAI;IACJL,IAAI;IACJa,IAAI;GACN;EACF;EACAN,OAAO;GACLJ,MAAM,EAAES,IAAI,EAAE;GACdX,OAAO;IACLF,GAAG;IACHa,IAAI;IACJP,IAAI;IACJL,IAAI;IACJa,IAAI;GACN;EACF;EACAL,MAAM;GACJL,MAAM;GACNF,OAAO;EACT;CACF;AACF,CAAA,GAAA,izMAAA;AAGF,MAAMa,qEAAuC;CAC3CtB,MAAM;CACNC,gBAAgB;CAChBC,MAAM;EACJqB,IAAI;GAAEhB,GAAG;GAAQM,IAAI;EAAE;EACvBW,IAAI;GAAEjB,GAAG;GAAIM,IAAI;EAAE;CACrB;CACAH,UAAU;EACRC,MAAM,EACJc,IAAI,EAAEZ,IAAI,GAAG,EACf;EACAE,OAAO,EACLW,IAAI,EAAEb,IAAI,GAAG,EACf;CACF;AACF,CAAA;AAMA,MAAMc,wBAAwB9B,2CAC5B,OACAF,wCAAAA;;;AAC4B2B,CAAAA,CAAAA,CAAAA,8BAAAA,qzMAAAA;AAE9B,MAAaM,gBAA6C,EACxDC,UACAC,UACAC,aACAC,cAAcC,cACdC,kBACAC,uBAAuBD,qBAAqB,UAAU,SAAS,cAChE;CACC,MAAME,gBACJD,yBAAyB,UAAU,gBAAgB;CAErD,OACE,oBAAA,cAACpC,gBAAAA,EAAiCmC,iBAChC,GAAA,oBAAA,cAACjB,MAAAA,EAAuBiB,iBACxB,CAAA,GAAA,oBAAA,cAAC3C,2BAAAA;EACC8C,UAAS;EACTC,WAAU;EACVlC,UAAS;EACTmC,IAAG;EACHjC,IAAI;EACJD,IAAI;GAAEE,GAAG;GAAIM,IAAI;GAAI2B,IAAI;EAAG;EAC5BC,QAAQ;EACRL,eAAe;GAAE7B,GAAG;GAAUM,IAAIuB;EAAc;EAChDM,gBAAgB;GAAEnC,GAAG;GAAgBiC,IAAI;EAAgB;EACzDG,YAAW;EACXC,WAAW;GAAErC,GAAG;GAAUM,IAAI;EAAQ;CAEtC,GAAA,oBAAA,cAACc,uBAAAA,EAA4CQ,qBAC3C,GAAA,oBAAA,cAACF,cAAAA,EAAaxB,2CAAa,GAAA,EAE7B,CAAA,CAAA,GAAA,oBAAA,cAAClB,2BAAAA;EACC6C,eAAc;EACdO,YAAY;GAAEpC,GAAG;GAAUM,IAAI;EAAQ;CAEvC,GAAA,oBAAA,cAACrB,wBAAAA;EAAKqD,IAAG;EAAKC,UAAU;EAAItB,IAAI;CAC7BO,GAAAA,WAAAA,GAEFF,YAAY,oBAAA,cAACrC,wBAAAA,EAAKgC,IAAI,GAAKK,GAAAA,QAAAA,GAC3BC,QAAAA,CAAAA,CAAAA;AAKX"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DropdownButtonProps } from "../DropdownButton/index.cjs";
|
|
2
|
+
import "../index.cjs";
|
|
2
3
|
import { ButtonProps } from "@codecademy/gamut";
|
|
3
4
|
import * as React$1 from "react";
|
|
4
5
|
import { IllustrationProps } from "@codecademy/gamut-illustrations";
|
|
5
|
-
|
|
6
6
|
//#region src/EmptySection/index.d.ts
|
|
7
7
|
type EmptySectionProps = {
|
|
8
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/EmptySection/index.tsx"],"mappings":";;;;;;KAUY
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/EmptySection/index.tsx"],"mappings":";;;;;;KAUY;;;;EAIV;;;;EAIA,WAAW,QAAM,aAAa,cAAc;;;;EAI5C;EACA,cAAc,QAAM,cAAc;;;;EAIlC;;;;EAIA;;cAkGW,cAAc,QAAM,GAAG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DropdownButtonProps } from "../DropdownButton/index.js";
|
|
2
|
+
import "../index.js";
|
|
2
3
|
import { ButtonProps } from "@codecademy/gamut";
|
|
3
4
|
import * as React$1 from "react";
|
|
4
5
|
import { IllustrationProps } from "@codecademy/gamut-illustrations";
|
|
5
|
-
|
|
6
6
|
//#region src/EmptySection/index.d.ts
|
|
7
7
|
type EmptySectionProps = {
|
|
8
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/EmptySection/index.tsx"],"mappings":";;;;;;KAUY
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/EmptySection/index.tsx"],"mappings":";;;;;;KAUY;;;;EAIV;;;;EAIA,WAAW,QAAM,aAAa,cAAc;;;;EAI5C;EACA,cAAc,QAAM,cAAc;;;;EAIlC;;;;EAIA;;cAkGW,cAAc,QAAM,GAAG"}
|