@codecademy/brand 0.14.0-alpha.cb92d1ec32.0 → 0.14.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/AppBar/AppBarSection.js +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +0 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.js +2 -4
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +14 -14
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.js +6 -6
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.d.ts +0 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +24 -11
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +5 -5
- package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.d.ts +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.js +2 -2
- package/dist/AppHeader/Search/QuizAndHelpCenterLinks.d.ts +0 -1
- package/dist/AppHeader/Search/QuizAndHelpCenterLinks.js +11 -8
- package/dist/AppHeader/Search/SearchButton.js +1 -3
- package/dist/AppHeader/Search/SearchPane.d.ts +1 -1
- package/dist/AppHeader/Search/SearchPane.js +73 -66
- package/dist/AppHeader/Search/SearchWorker/PromiseLookup.d.ts +18 -0
- package/dist/AppHeader/Search/SearchWorker/PromiseLookup.js +35 -0
- package/dist/AppHeader/Search/SearchWorker/index.d.ts +4 -34
- package/dist/AppHeader/Search/SearchWorker/index.js +22 -73
- package/dist/AppHeader/Search/SearchWorker/src.d.ts +1 -2
- package/dist/AppHeader/Search/SearchWorker/src.js +253 -199
- package/dist/AppHeader/Search/SearchWorker/types.d.ts +32 -0
- package/dist/AppHeader/Search/SearchWorker/types.js +5 -0
- package/dist/AppHeader/Search/SearchWorker/worker.d.ts +2 -0
- package/dist/AppHeader/Search/SearchWorker/worker.js +32 -0
- package/dist/AppHeader/Search/useHeaderSearch.d.ts +1 -3
- package/dist/AppHeader/Search/useHeaderSearch.js +7 -4
- package/dist/AppHeader/index.d.ts +1 -2
- package/dist/AppHeader/index.js +11 -16
- package/dist/AppHeader/shared/elements.d.ts +10 -272
- package/dist/AppHeader/shared/elements.js +7 -7
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.js +1 -1
- package/dist/AppHeaderMobile/index.d.ts +0 -1
- package/dist/AppHeaderMobile/index.js +6 -8
- package/dist/Avatar/index.js +1 -1
- package/dist/Carousel/elements.d.ts +4 -4
- package/dist/Carousel/index.js +7 -4
- package/dist/CertificationPathCard/__tests__/__fixtures__/index.d.ts +2 -0
- package/dist/CertificationPathCard/index.d.ts +18 -0
- package/dist/CertificationPathCard/index.js +34 -0
- package/dist/ContentGroupBaseCard/index.d.ts +4 -0
- package/dist/ContentGroupBaseCard/index.js +15 -5
- package/dist/DropdownButton/DropdownList.js +1 -1
- package/dist/DropdownButton/index.d.ts +312 -1
- package/dist/DropdownButton/index.js +9 -6
- package/dist/EmptySection/index.d.ts +1 -1
- package/dist/EmptySection/index.js +31 -10
- package/dist/GlobalFooter/FooterHeading.d.ts +2 -2
- package/dist/GlobalFooter/FooterLinks.d.ts +1 -1
- package/dist/GlobalFooter/FooterLinks.js +10 -19
- package/dist/GlobalFooter/FooterSubHeading.d.ts +2 -2
- package/dist/GlobalHeader/GlobalHeaderItems.d.ts +0 -1
- package/dist/GlobalHeader/GlobalHeaderItems.js +0 -8
- package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +4 -4
- package/dist/GlobalHeader/GlobalHeaderVariants.js +11 -11
- package/dist/GlobalHeader/index.d.ts +7 -2
- package/dist/GlobalHeader/index.js +23 -18
- package/dist/GlobalHeader/types.d.ts +1 -4
- package/dist/Grid/GridCollapse.js +16 -23
- package/dist/LoadingCurriculumCard/index.js +1 -1
- package/dist/LogoFromSkillsoft/index.js +1 -1
- package/dist/Notifications/elements.d.ts +2 -2
- package/dist/PlanCard/consts.js +1 -1
- package/dist/PlanCard/index.d.ts +0 -1
- package/dist/PlanCard/index.js +8 -16
- package/dist/ProLabel/index.d.ts +1 -1
- package/dist/ProLabel/index.js +1 -1
- package/dist/ResourceCard/index.d.ts +4 -3
- package/dist/ResourceCard/index.js +6 -3
- package/dist/SocialMediaSharing/SocialShareIconLink.js +2 -2
- package/dist/SocialMediaSharingDropdown/index.d.ts +4 -1
- package/dist/SocialMediaSharingDropdown/index.js +11 -2
- package/dist/Testimonial/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/catalogList/index.js +1 -1
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.d.ts +9 -0
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +65 -0
- package/dist/stories/Organisms/PlanCard.stories.js +0 -1
- package/package.json +4 -5
- package/dist/StudyPlan/ContentItemDetail.d.ts +0 -10
- package/dist/StudyPlan/ContentItemDetail.js +0 -114
- package/dist/StudyPlan/CreateStudyPlanSectionContent.d.ts +0 -14
- package/dist/StudyPlan/CreateStudyPlanSectionContent.js +0 -90
- package/dist/StudyPlan/ShowMoreContentItemsButton.d.ts +0 -9
- package/dist/StudyPlan/ShowMoreContentItemsButton.js +0 -44
- package/dist/StudyPlan/StudyPlanDeleteDialog.d.ts +0 -6
- package/dist/StudyPlan/StudyPlanDeleteDialog.js +0 -26
- package/dist/StudyPlan/StudyPlanDescription.d.ts +0 -10
- package/dist/StudyPlan/StudyPlanDescription.js +0 -50
- package/dist/StudyPlan/StudyPlanModal/StudyPlanForm.d.ts +0 -10
- package/dist/StudyPlan/StudyPlanModal/StudyPlanForm.js +0 -138
- package/dist/StudyPlan/StudyPlanModal/StudyPlanModalFooter.d.ts +0 -14
- package/dist/StudyPlan/StudyPlanModal/StudyPlanModalFooter.js +0 -64
- package/dist/StudyPlan/StudyPlanModal/index.d.ts +0 -18
- package/dist/StudyPlan/StudyPlanModal/index.js +0 -120
- package/dist/StudyPlan/SuggestedContentItemsSectionHeader.d.ts +0 -8
- package/dist/StudyPlan/SuggestedContentItemsSectionHeader.js +0 -58
- package/dist/StudyPlan/assets/studyPlanBanner.svg +0 -9
- package/dist/StudyPlan/helpers.d.ts +0 -75
- package/dist/StudyPlan/helpers.js +0 -165
- package/dist/StudyPlan/index.d.ts +0 -8
- package/dist/StudyPlan/index.js +0 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const FooterHeading: import("@emotion/styled").StyledComponent<(((Omit<{
|
|
2
2
|
theme?: import("@emotion/react").Theme | undefined;
|
|
3
3
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
4
|
-
} & import("@codecademy/gamut").TextTruncateProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "onClick" | "children" | "style" | "title" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "
|
|
4
|
+
} & import("@codecademy/gamut").TextTruncateProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "onClick" | "children" | "slot" | "style" | "title" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("react").ClassAttributes<HTMLSpanElement>>, "ref"> | Omit<{
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
|
-
} & import("@codecademy/gamut").TextNoTruncateProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "onClick" | "children" | "style" | "title" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "
|
|
7
|
+
} & import("@codecademy/gamut").TextNoTruncateProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "onClick" | "children" | "slot" | "style" | "title" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("react").ClassAttributes<HTMLSpanElement>>, "ref">) & import("react").RefAttributes<HTMLSpanElement>) & {
|
|
8
8
|
theme?: import("@emotion/react").Theme;
|
|
9
9
|
}) & {}, {}, {}>;
|
|
@@ -5,7 +5,7 @@ import { GlobalFooterClickHandler } from './types';
|
|
|
5
5
|
export declare const FooterLinkItems: import("@emotion/styled").StyledComponent<{
|
|
6
6
|
theme?: import("@emotion/react").Theme | undefined;
|
|
7
7
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
|
-
} & import("@codecademy/gamut").BoxProps & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onClick" | "children" | "style" | "title" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "
|
|
8
|
+
} & import("@codecademy/gamut").BoxProps & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onClick" | "children" | "slot" | "style" | "title" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof React.ClassAttributes<HTMLDivElement>> & {
|
|
9
9
|
theme?: import("@emotion/react").Theme;
|
|
10
10
|
}, {}, {}>;
|
|
11
11
|
export declare const FooterLinkItem: import("@emotion/styled").StyledComponent<{
|
|
@@ -5,21 +5,7 @@ import { theme } from '@codecademy/gamut-styles';
|
|
|
5
5
|
import { useCallback } from 'react';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
|
|
9
|
-
let {
|
|
10
|
-
as = 'ul',
|
|
11
|
-
pl = 0,
|
|
12
|
-
mb = 0,
|
|
13
|
-
...props
|
|
14
|
-
} = _ref;
|
|
15
|
-
return /*#__PURE__*/_jsx(Box, {
|
|
16
|
-
...props,
|
|
17
|
-
as: as,
|
|
18
|
-
pl: pl,
|
|
19
|
-
mb: mb
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export const FooterLinkItems = /*#__PURE__*/_styled(FooterLinkItemsDefaults, {
|
|
8
|
+
export const FooterLinkItems = /*#__PURE__*/_styled(Box, {
|
|
23
9
|
target: "ebdzcwh1",
|
|
24
10
|
label: "FooterLinkItems"
|
|
25
11
|
})(process.env.NODE_ENV === "production" ? {
|
|
@@ -28,19 +14,24 @@ export const FooterLinkItems = /*#__PURE__*/_styled(FooterLinkItemsDefaults, {
|
|
|
28
14
|
} : {
|
|
29
15
|
name: "ffhm6p",
|
|
30
16
|
styles: "list-style-type:none",
|
|
31
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
17
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9HbG9iYWxGb290ZXIvRm9vdGVyTGlua3MudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVEwQyIsImZpbGUiOiIuLi8uLi9zcmMvR2xvYmFsRm9vdGVyL0Zvb3RlckxpbmtzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFuY2hvciwgQm94IH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQnO1xuaW1wb3J0IHsgdGhlbWUgfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1zdHlsZXMnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgQ29tcG9uZW50UHJvcHMsIHVzZUNhbGxiYWNrIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0ICogYXMgUmVhY3QgZnJvbSAncmVhY3QnO1xuXG5pbXBvcnQgeyBHbG9iYWxGb290ZXJDbGlja0hhbmRsZXIgfSBmcm9tICcuL3R5cGVzJztcblxuZXhwb3J0IGNvbnN0IEZvb3RlckxpbmtJdGVtcyA9IHN0eWxlZChCb3gpYFxuICBsaXN0LXN0eWxlLXR5cGU6IG5vbmU7XG5gO1xuXG5Gb290ZXJMaW5rSXRlbXMuZGVmYXVsdFByb3BzID0ge1xuICBhczogJ3VsJyxcbiAgcGw6IDAsXG4gIG1iOiAwLFxufTtcblxuZXhwb3J0IGNvbnN0IEZvb3RlckxpbmtJdGVtID0gc3R5bGVkLmxpYFxuICBmb250LXNpemU6IDAuODc1cmVtO1xuICBtYXJnaW46IDAuNXJlbSAwO1xuXG4gICR7dGhlbWUuYnJlYWtwb2ludHMuc219IHtcbiAgICBmb250LXNpemU6IDFyZW07XG4gICAgbWFyZ2luOiAwLjI1cmVtIDA7XG4gIH1cblxuICAke3RoZW1lLmJyZWFrcG9pbnRzLm1kfSB7XG4gICAgbWFyZ2luOiAwLjE1cmVtIDA7XG4gIH1cbmA7XG5cbmV4cG9ydCBjb25zdCBGb290ZXJMaW5rSXRlbVdpdGhBbmNob3I6IFJlYWN0LkZDPFxuICBDb21wb25lbnRQcm9wczx0eXBlb2YgQW5jaG9yPiAmIHtcbiAgICB0cmFja2luZ1RhcmdldDogc3RyaW5nO1xuICAgIGZvb3Rlck9uQ2xpY2s6IEdsb2JhbEZvb3RlckNsaWNrSGFuZGxlcjtcbiAgfVxuPiA9ICh7IHRyYWNraW5nVGFyZ2V0LCBmb290ZXJPbkNsaWNrLCAuLi5hbmNob3JQcm9wcyB9KSA9PiB7XG4gIGNvbnN0IGFuY2hvck9uQ2xpY2sgPSB1c2VDYWxsYmFjayhcbiAgICAoZXZlbnQ6IFJlYWN0Lk1vdXNlRXZlbnQ8RWxlbWVudCwgTW91c2VFdmVudD4pID0+IHtcbiAgICAgIGZvb3Rlck9uQ2xpY2soeyBldmVudCwgdGFyZ2V0OiB0cmFja2luZ1RhcmdldCB9KTtcbiAgICB9LFxuICAgIFtmb290ZXJPbkNsaWNrLCB0cmFja2luZ1RhcmdldF1cbiAgKTtcblxuICByZXR1cm4gKFxuICAgIDxGb290ZXJMaW5rSXRlbT5cbiAgICAgIDxBbmNob3Igey4uLmFuY2hvclByb3BzfSBvbkNsaWNrPXthbmNob3JPbkNsaWNrfSAvPlxuICAgIDwvRm9vdGVyTGlua0l0ZW0+XG4gICk7XG59O1xuIl19 */",
|
|
32
18
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
33
19
|
});
|
|
20
|
+
FooterLinkItems.defaultProps = {
|
|
21
|
+
as: 'ul',
|
|
22
|
+
pl: 0,
|
|
23
|
+
mb: 0
|
|
24
|
+
};
|
|
34
25
|
export const FooterLinkItem = /*#__PURE__*/_styled("li", {
|
|
35
26
|
target: "ebdzcwh0",
|
|
36
27
|
label: "FooterLinkItem"
|
|
37
|
-
})("font-size:0.875rem;margin:0.5rem 0;", theme.breakpoints.sm, "{font-size:1rem;margin:0.25rem 0;}", theme.breakpoints.md, "{margin:0.15rem 0;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
38
|
-
export const FooterLinkItemWithAnchor =
|
|
28
|
+
})("font-size:0.875rem;margin:0.5rem 0;", theme.breakpoints.sm, "{font-size:1rem;margin:0.25rem 0;}", theme.breakpoints.md, "{margin:0.15rem 0;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9HbG9iYWxGb290ZXIvRm9vdGVyTGlua3MudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtCdUMiLCJmaWxlIjoiLi4vLi4vc3JjL0dsb2JhbEZvb3Rlci9Gb290ZXJMaW5rcy50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBbmNob3IsIEJveCB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0JztcbmltcG9ydCB7IHRoZW1lIH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQtc3R5bGVzJztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IENvbXBvbmVudFByb3BzLCB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gJ3JlYWN0JztcblxuaW1wb3J0IHsgR2xvYmFsRm9vdGVyQ2xpY2tIYW5kbGVyIH0gZnJvbSAnLi90eXBlcyc7XG5cbmV4cG9ydCBjb25zdCBGb290ZXJMaW5rSXRlbXMgPSBzdHlsZWQoQm94KWBcbiAgbGlzdC1zdHlsZS10eXBlOiBub25lO1xuYDtcblxuRm9vdGVyTGlua0l0ZW1zLmRlZmF1bHRQcm9wcyA9IHtcbiAgYXM6ICd1bCcsXG4gIHBsOiAwLFxuICBtYjogMCxcbn07XG5cbmV4cG9ydCBjb25zdCBGb290ZXJMaW5rSXRlbSA9IHN0eWxlZC5saWBcbiAgZm9udC1zaXplOiAwLjg3NXJlbTtcbiAgbWFyZ2luOiAwLjVyZW0gMDtcblxuICAke3RoZW1lLmJyZWFrcG9pbnRzLnNtfSB7XG4gICAgZm9udC1zaXplOiAxcmVtO1xuICAgIG1hcmdpbjogMC4yNXJlbSAwO1xuICB9XG5cbiAgJHt0aGVtZS5icmVha3BvaW50cy5tZH0ge1xuICAgIG1hcmdpbjogMC4xNXJlbSAwO1xuICB9XG5gO1xuXG5leHBvcnQgY29uc3QgRm9vdGVyTGlua0l0ZW1XaXRoQW5jaG9yOiBSZWFjdC5GQzxcbiAgQ29tcG9uZW50UHJvcHM8dHlwZW9mIEFuY2hvcj4gJiB7XG4gICAgdHJhY2tpbmdUYXJnZXQ6IHN0cmluZztcbiAgICBmb290ZXJPbkNsaWNrOiBHbG9iYWxGb290ZXJDbGlja0hhbmRsZXI7XG4gIH1cbj4gPSAoeyB0cmFja2luZ1RhcmdldCwgZm9vdGVyT25DbGljaywgLi4uYW5jaG9yUHJvcHMgfSkgPT4ge1xuICBjb25zdCBhbmNob3JPbkNsaWNrID0gdXNlQ2FsbGJhY2soXG4gICAgKGV2ZW50OiBSZWFjdC5Nb3VzZUV2ZW50PEVsZW1lbnQsIE1vdXNlRXZlbnQ+KSA9PiB7XG4gICAgICBmb290ZXJPbkNsaWNrKHsgZXZlbnQsIHRhcmdldDogdHJhY2tpbmdUYXJnZXQgfSk7XG4gICAgfSxcbiAgICBbZm9vdGVyT25DbGljaywgdHJhY2tpbmdUYXJnZXRdXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8Rm9vdGVyTGlua0l0ZW0+XG4gICAgICA8QW5jaG9yIHsuLi5hbmNob3JQcm9wc30gb25DbGljaz17YW5jaG9yT25DbGlja30gLz5cbiAgICA8L0Zvb3RlckxpbmtJdGVtPlxuICApO1xufTtcbiJdfQ== */"));
|
|
29
|
+
export const FooterLinkItemWithAnchor = _ref => {
|
|
39
30
|
let {
|
|
40
31
|
trackingTarget,
|
|
41
32
|
footerOnClick,
|
|
42
33
|
...anchorProps
|
|
43
|
-
} =
|
|
34
|
+
} = _ref;
|
|
44
35
|
const anchorOnClick = useCallback(event => {
|
|
45
36
|
footerOnClick({
|
|
46
37
|
event,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const FooterSubHeading: import("@emotion/styled").StyledComponent<(((Omit<{
|
|
2
2
|
theme?: import("@emotion/react").Theme | undefined;
|
|
3
3
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
4
|
-
} & import("@codecademy/gamut").TextTruncateProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "onClick" | "children" | "style" | "title" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "
|
|
4
|
+
} & import("@codecademy/gamut").TextTruncateProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "onClick" | "children" | "slot" | "style" | "title" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("react").ClassAttributes<HTMLSpanElement>>, "ref"> | Omit<{
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
|
-
} & import("@codecademy/gamut").TextNoTruncateProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "onClick" | "children" | "style" | "title" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "
|
|
7
|
+
} & import("@codecademy/gamut").TextNoTruncateProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "onClick" | "children" | "slot" | "style" | "title" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("react").ClassAttributes<HTMLSpanElement>>, "ref">) & import("react").RefAttributes<HTMLSpanElement>) & {
|
|
8
8
|
theme?: import("@emotion/react").Theme;
|
|
9
9
|
}) & {}, {}, {}>;
|
|
@@ -19,7 +19,6 @@ export declare const contactSales: AppHeaderTextButtonItem;
|
|
|
19
19
|
export declare const addPayment: AppHeaderFillButtonItem;
|
|
20
20
|
export declare const tryProForFree: (checkoutUrl?: string) => AppHeaderFillButtonItem;
|
|
21
21
|
export declare const upgradeToPro: (checkoutUrl?: string) => AppHeaderFillButtonItem;
|
|
22
|
-
export declare const tryRiskFree: (checkoutUrl?: string) => AppHeaderFillButtonItem;
|
|
23
22
|
export declare const unpausePro: AppHeaderFillButtonItem;
|
|
24
23
|
export declare const login: AppHeaderTextButtonItem;
|
|
25
24
|
export declare const signUp: AppHeaderFillButtonItem;
|
|
@@ -346,14 +346,6 @@ export const upgradeToPro = checkoutUrl => ({
|
|
|
346
346
|
trackingTarget: 'topnav_pro_upgrade',
|
|
347
347
|
type: 'fill-button'
|
|
348
348
|
});
|
|
349
|
-
export const tryRiskFree = checkoutUrl => ({
|
|
350
|
-
dataTestId: 'upgrade-link',
|
|
351
|
-
id: 'try-risk-free',
|
|
352
|
-
text: 'Try risk-free',
|
|
353
|
-
href: checkoutUrl || '/pages/pro',
|
|
354
|
-
trackingTarget: 'topnav_pro_upgrade',
|
|
355
|
-
type: 'fill-button'
|
|
356
|
-
});
|
|
357
349
|
export const unpausePro = {
|
|
358
350
|
dataTestId: 'unpause-link',
|
|
359
351
|
id: 'unpause-pro',
|
|
@@ -9,17 +9,17 @@ export declare const anonLoginHeaderItems: (hidePricing?: boolean, user?: User)
|
|
|
9
9
|
export declare const anonLoginMobileHeaderItems: (hidePricing?: boolean, user?: User) => FormattedMobileAppHeaderItems;
|
|
10
10
|
export declare const anonSignupHeaderItems: (hidePricing?: boolean, user?: User) => FormattedAppHeaderItems;
|
|
11
11
|
export declare const anonSignupMobileHeaderItems: (hidePricing?: boolean, user?: User) => FormattedMobileAppHeaderItems;
|
|
12
|
-
export declare const freeHeaderItems: (user: User, hidePricing?: boolean
|
|
13
|
-
export declare const freeMobileHeaderItems: (user: User, hidePricing?: boolean
|
|
12
|
+
export declare const freeHeaderItems: (user: User, hidePricing?: boolean) => FormattedAppHeaderItems;
|
|
13
|
+
export declare const freeMobileHeaderItems: (user: User, hidePricing?: boolean) => FormattedMobileAppHeaderItems;
|
|
14
14
|
export declare const enterpriseHeaderItems: (user: User, props: GlobalHeaderProps) => {
|
|
15
15
|
left: AppHeaderItem[];
|
|
16
16
|
right: never[];
|
|
17
17
|
};
|
|
18
18
|
export declare const proHeaderItems: (user: User) => FormattedAppHeaderItems;
|
|
19
|
-
export declare const teamsHeaderItems: (user: User
|
|
19
|
+
export declare const teamsHeaderItems: (user: User) => FormattedAppHeaderItems;
|
|
20
20
|
export declare const enterpriseMobileHeaderItems: (user: User, props: GlobalHeaderProps) => FormattedMobileAppHeaderItems;
|
|
21
21
|
export declare const proMobileHeaderItems: (user: User) => FormattedMobileAppHeaderItems;
|
|
22
|
-
export declare const teamsMobileHeaderItems: (user: User
|
|
22
|
+
export declare const teamsMobileHeaderItems: (user: User) => FormattedMobileAppHeaderItems;
|
|
23
23
|
export declare const loadingHeaderItems: FormattedAppHeaderItems;
|
|
24
24
|
export declare const loadingMobileHeaderItems: FormattedMobileAppHeaderItems;
|
|
25
25
|
export declare const simpleHeaderItems: FormattedAppHeaderItems;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addPayment, bootcampCta, businessSolutions, careerCenter, catalogDropdown, communityDropdown, contactSales, enterpriseLogo, freeProfile, loading, login, logo, myHome, myPercipioHome, pricingDropdown, proProfile, resourcesDropdown, signUp, simpleResourcesDropdown, tryProForFree,
|
|
1
|
+
import { addPayment, bootcampCta, businessSolutions, careerCenter, catalogDropdown, communityDropdown, contactSales, enterpriseLogo, freeProfile, loading, login, logo, myHome, myPercipioHome, pricingDropdown, proProfile, resourcesDropdown, signUp, simpleResourcesDropdown, tryProForFree, unpausePro, upgradePlan, upgradeToPro } from './GlobalHeaderItems';
|
|
2
2
|
const transformSimpleResourcesDropdownlabels = resourcesLabel => ({
|
|
3
3
|
...simpleResourcesDropdown,
|
|
4
4
|
text: resourcesLabel?.title || simpleResourcesDropdown.text,
|
|
@@ -69,13 +69,13 @@ export const anonSignupHeaderItems = (hidePricing, user) => {
|
|
|
69
69
|
export const anonSignupMobileHeaderItems = (hidePricing, user) => {
|
|
70
70
|
return anonMobileHeaderItems(true, false, hidePricing, user);
|
|
71
71
|
};
|
|
72
|
-
export const freeHeaderItems = (user, hidePricing
|
|
72
|
+
export const freeHeaderItems = (user, hidePricing) => {
|
|
73
73
|
const specialLogo = {
|
|
74
74
|
...logo,
|
|
75
75
|
checkMini: true
|
|
76
76
|
};
|
|
77
77
|
const leftItems = [specialLogo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), careerCenter, businessSolutions];
|
|
78
|
-
const upgradeButton =
|
|
78
|
+
const upgradeButton = upgradeToPro(user.proCheckoutUrl);
|
|
79
79
|
const rightItems = [];
|
|
80
80
|
rightItems.push(freeProfile(user));
|
|
81
81
|
rightItems.push(user.showProUpgrade ? upgradeButton : tryProForFree(user.proCheckoutUrl));
|
|
@@ -84,14 +84,14 @@ export const freeHeaderItems = (user, hidePricing, showMoneyback) => {
|
|
|
84
84
|
right: rightItems
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
|
-
export const freeMobileHeaderItems = (user, hidePricing
|
|
87
|
+
export const freeMobileHeaderItems = (user, hidePricing) => {
|
|
88
88
|
const specialLogo = {
|
|
89
89
|
...logo,
|
|
90
90
|
checkMini: true
|
|
91
91
|
};
|
|
92
92
|
const leftItems = [specialLogo];
|
|
93
93
|
const rightItems = [];
|
|
94
|
-
const upgradeButton =
|
|
94
|
+
const upgradeButton = upgradeToPro(user.proCheckoutUrl);
|
|
95
95
|
const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), careerCenter, businessSolutions, freeProfile(user, true), user.showProUpgrade ? upgradeButton : tryProForFree(user.proCheckoutUrl)];
|
|
96
96
|
return {
|
|
97
97
|
left: leftItems,
|
|
@@ -124,13 +124,13 @@ export const proHeaderItems = user => {
|
|
|
124
124
|
right: rightItems
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
|
-
export const teamsHeaderItems =
|
|
127
|
+
export const teamsHeaderItems = user => {
|
|
128
128
|
const leftItems = [logo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), careerCenter];
|
|
129
129
|
const rightItems = [];
|
|
130
|
-
if (
|
|
130
|
+
if (user.isBusinessUser) {
|
|
131
131
|
rightItems.push(contactSales);
|
|
132
132
|
}
|
|
133
|
-
if (
|
|
133
|
+
if (user.isAccountManager && user.inBusinessTrial) {
|
|
134
134
|
rightItems.push(addPayment);
|
|
135
135
|
}
|
|
136
136
|
rightItems.push(proProfile(user));
|
|
@@ -168,14 +168,14 @@ export const proMobileHeaderItems = user => {
|
|
|
168
168
|
mainMenu: mainMenuItems
|
|
169
169
|
};
|
|
170
170
|
};
|
|
171
|
-
export const teamsMobileHeaderItems =
|
|
171
|
+
export const teamsMobileHeaderItems = user => {
|
|
172
172
|
const leftItems = [logo];
|
|
173
173
|
const rightItems = [];
|
|
174
174
|
const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), careerCenter, proProfile(user)];
|
|
175
|
-
if (
|
|
175
|
+
if (user.isAccountManager && user.inBusinessTrial) {
|
|
176
176
|
mainMenuItems.push(addPayment);
|
|
177
177
|
}
|
|
178
|
-
if (
|
|
178
|
+
if (user.isBusinessUser) {
|
|
179
179
|
mainMenuItems.push(contactSales);
|
|
180
180
|
}
|
|
181
181
|
return {
|
|
@@ -2,6 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
import { AnonHeader, EnterpriseHeader, FreeHeader, LoadingHeader, ProHeader, SimpleBootcampHeader, SimpleHeader, TeamsHeader } from './types';
|
|
3
3
|
export * from './types';
|
|
4
4
|
export type GlobalHeaderProps = AnonHeader | FreeHeader | ProHeader | EnterpriseHeader | TeamsHeader | LoadingHeader | SimpleHeader | SimpleBootcampHeader;
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
5
|
+
export declare const HeaderQuizContext: React.Context<{
|
|
6
|
+
showOnboardingQuiz?: boolean;
|
|
7
|
+
showSortingQuiz?: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const CertPathContext: React.Context<{
|
|
10
|
+
newCertPathsEnabled: boolean;
|
|
11
|
+
}>;
|
|
7
12
|
export declare const GlobalHeader: React.FC<GlobalHeaderProps>;
|
|
@@ -11,8 +11,7 @@ export * from './types';
|
|
|
11
11
|
|
|
12
12
|
function getAppHeaderItems(props, mobile) {
|
|
13
13
|
const {
|
|
14
|
-
hidePricing
|
|
15
|
-
teamsRevampEnabled
|
|
14
|
+
hidePricing
|
|
16
15
|
} = props;
|
|
17
16
|
switch (props.type) {
|
|
18
17
|
case 'anon':
|
|
@@ -29,12 +28,11 @@ function getAppHeaderItems(props, mobile) {
|
|
|
29
28
|
case 'enterprise':
|
|
30
29
|
return mobile ? enterpriseMobileHeaderItems(props.user, props) : enterpriseHeaderItems(props.user, props);
|
|
31
30
|
case 'free':
|
|
32
|
-
|
|
33
|
-
return mobile ? freeMobileHeaderItems(props.user, hidePricing, showMoneyback) : freeHeaderItems(props.user, hidePricing, showMoneyback);
|
|
31
|
+
return mobile ? freeMobileHeaderItems(props.user, hidePricing) : freeHeaderItems(props.user, hidePricing);
|
|
34
32
|
case 'pro':
|
|
35
33
|
return mobile ? proMobileHeaderItems(props.user) : proHeaderItems(props.user);
|
|
36
34
|
case 'teams':
|
|
37
|
-
return mobile ? teamsMobileHeaderItems(props.user
|
|
35
|
+
return mobile ? teamsMobileHeaderItems(props.user) : teamsHeaderItems(props.user);
|
|
38
36
|
case 'simple':
|
|
39
37
|
return mobile ? simpleMobileHeaderItems : simpleHeaderItems;
|
|
40
38
|
case 'bootcamp':
|
|
@@ -43,8 +41,13 @@ function getAppHeaderItems(props, mobile) {
|
|
|
43
41
|
return mobile ? loadingMobileHeaderItems : loadingHeaderItems;
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
|
-
export const
|
|
47
|
-
|
|
44
|
+
export const HeaderQuizContext = /*#__PURE__*/React.createContext({
|
|
45
|
+
showOnboardingQuiz: false,
|
|
46
|
+
showSortingQuiz: false
|
|
47
|
+
});
|
|
48
|
+
export const CertPathContext = /*#__PURE__*/React.createContext({
|
|
49
|
+
newCertPathsEnabled: false
|
|
50
|
+
});
|
|
48
51
|
export const GlobalHeader = props => {
|
|
49
52
|
const {
|
|
50
53
|
action,
|
|
@@ -56,13 +59,17 @@ export const GlobalHeader = props => {
|
|
|
56
59
|
if (isAppHeaderItemWithHref(item)) onLinkAction?.(event, item);
|
|
57
60
|
}, [action, onLinkAction]);
|
|
58
61
|
const hideNotification = props.type === 'loading' || props.type === 'enterprise' || props.type === 'simple' || props.type === 'bootcamp';
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
const showOnboardingQuiz = props.type === 'anon' || (props.type === 'free' || props.type === 'pro') && !props.user.enrolledInTwoOrMoreContainers;
|
|
63
|
+
const showSortingQuiz = (props.type === 'free' || props.type === 'pro') && props.user.enrolledInTwoOrMoreContainers;
|
|
64
|
+
return /*#__PURE__*/_jsx(HeaderQuizContext.Provider, {
|
|
65
|
+
value: {
|
|
66
|
+
showOnboardingQuiz,
|
|
67
|
+
showSortingQuiz
|
|
68
|
+
},
|
|
69
|
+
children: /*#__PURE__*/_jsx(CertPathContext.Provider, {
|
|
70
|
+
value: {
|
|
71
|
+
newCertPathsEnabled: !!props.newCertPathsEnabled
|
|
72
|
+
},
|
|
66
73
|
children: /*#__PURE__*/_jsxs(Box, {
|
|
67
74
|
as: "header",
|
|
68
75
|
position: "sticky",
|
|
@@ -79,8 +86,7 @@ export const GlobalHeader = props => {
|
|
|
79
86
|
}),
|
|
80
87
|
hideRightButtonDefaults: hideNotification,
|
|
81
88
|
isAnon: props.type === 'anon',
|
|
82
|
-
isTeams: props.type === 'teams'
|
|
83
|
-
showQuiz: showQuiz
|
|
89
|
+
isTeams: props.type === 'teams'
|
|
84
90
|
}), /*#__PURE__*/_jsx(AppHeaderMobile, {
|
|
85
91
|
action: combinedAction,
|
|
86
92
|
items: getAppHeaderItems(props, true),
|
|
@@ -93,8 +99,7 @@ export const GlobalHeader = props => {
|
|
|
93
99
|
isAnon: props.type === 'anon',
|
|
94
100
|
isSimple: props.type === 'simple',
|
|
95
101
|
hideRightMenuButton: props.type === 'simple' || props.type === 'loading',
|
|
96
|
-
navigationMenuFormattedLabel: props?.localizedLabels?.navigationMenuFormattedLabel
|
|
97
|
-
showQuiz: showQuiz
|
|
102
|
+
navigationMenuFormattedLabel: props?.localizedLabels?.navigationMenuFormattedLabel
|
|
98
103
|
}), props.children]
|
|
99
104
|
})
|
|
100
105
|
})
|
|
@@ -30,9 +30,7 @@ interface BaseHeader extends WithChildrenProp, AppHeaderAction {
|
|
|
30
30
|
hideHeaderInChromeless?: boolean;
|
|
31
31
|
localizedLabels?: localizedLabels;
|
|
32
32
|
search: AppHeaderSearch;
|
|
33
|
-
|
|
34
|
-
teamsRevampEnabled?: boolean;
|
|
35
|
-
unifiedRecFlowV2Enabled?: boolean;
|
|
33
|
+
newCertPathsEnabled?: boolean;
|
|
36
34
|
}
|
|
37
35
|
export type User = {
|
|
38
36
|
avatar: string;
|
|
@@ -49,7 +47,6 @@ export type User = {
|
|
|
49
47
|
inBusinessTrial?: boolean;
|
|
50
48
|
proCheckoutUrl?: string;
|
|
51
49
|
showProUpgrade?: boolean;
|
|
52
|
-
showMoneybackCTA?: boolean;
|
|
53
50
|
hideCareerPaths?: boolean;
|
|
54
51
|
hideBusinessAccount?: boolean;
|
|
55
52
|
enrolledInTwoOrMoreContainers?: boolean;
|