@codecademy/gamut 68.0.0 → 68.0.1-alpha.3a9965.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.
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { DetailedCodeBodyProps } from '../types';
3
+ export declare const DetailedCodeBody: React.FC<DetailedCodeBodyProps>;
@@ -0,0 +1,16 @@
1
+ import { Source } from '@storybook/blocks';
2
+ import * as React from 'react';
3
+ import { DetailedCodeBodyWrapper } from '../elements';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ export const DetailedCodeBody = ({
6
+ code,
7
+ language
8
+ }) => {
9
+ return /*#__PURE__*/_jsx(DetailedCodeBodyWrapper, {
10
+ children: /*#__PURE__*/_jsx(Source, {
11
+ code: code,
12
+ dark: true,
13
+ language: language
14
+ })
15
+ });
16
+ };
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { DetailedCodeButtonProps } from '../types';
3
+ export declare const DetailedCodeButton: React.FC<DetailedCodeButtonProps>;
@@ -0,0 +1,43 @@
1
+ import { MiniChevronDownIcon } from '@codecademy/gamut-icons';
2
+ import * as React from 'react';
3
+ import { Anchor } from '../../Anchor';
4
+ import { Rotation } from '../../Animation';
5
+ import { FlexBox } from '../../Box';
6
+ import { Text } from '../../Typography';
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
+ export const DetailedCodeButton = ({
9
+ isExpanded,
10
+ setIsExpanded
11
+ }) => {
12
+ const handleClick = () => {
13
+ if (setIsExpanded) {
14
+ setIsExpanded(prev => !prev);
15
+ }
16
+ };
17
+ return /*#__PURE__*/_jsx(Anchor, {
18
+ "aria-expanded": isExpanded,
19
+ height: "100%",
20
+ px: 16,
21
+ py: 12,
22
+ variant: "interface",
23
+ width: "100%",
24
+ onClick: handleClick,
25
+ children: /*#__PURE__*/_jsxs(FlexBox, {
26
+ columnGap: 16,
27
+ flexDirection: "row",
28
+ justifyContent: "space-between",
29
+ width: "100%",
30
+ children: [/*#__PURE__*/_jsx(Text, {
31
+ children: isExpanded ? 'Show Less Code' : 'Show More Code'
32
+ }), /*#__PURE__*/_jsx(Rotation, {
33
+ height: 16,
34
+ rotated: isExpanded,
35
+ width: 16,
36
+ children: /*#__PURE__*/_jsx(MiniChevronDownIcon, {
37
+ "aria-hidden": true,
38
+ size: 16
39
+ })
40
+ })]
41
+ })
42
+ });
43
+ };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ export declare const DetailedCodeWrapper: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
+ } & import("../Box").FlexBoxProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | keyof import("react").ClassAttributes<HTMLDivElement> | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "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-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" | "onClick" | "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"> & {
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ }, {}, {}>;
8
+ export declare const DetailedCodeBodyWrapper: import("@emotion/styled").StyledComponent<{
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
+ } & import("../Box").FlexBoxProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | keyof import("react").ClassAttributes<HTMLDivElement> | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "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-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" | "onClick" | "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"> & {
12
+ theme?: import("@emotion/react").Theme | undefined;
13
+ }, {}, {}>;
@@ -0,0 +1,24 @@
1
+ import _styled from "@emotion/styled/base";
2
+ import { css } from '@codecademy/gamut-styles';
3
+ import { FlexBox } from '../Box';
4
+ export const DetailedCodeWrapper = /*#__PURE__*/_styled(FlexBox, {
5
+ target: "ewqc84l1",
6
+ label: "DetailedCodeWrapper"
7
+ })(css({
8
+ width: '100%',
9
+ flexDirection: 'column',
10
+ borderRadius: 'md',
11
+ border: 1,
12
+ bg: 'background'
13
+ }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9EZXRhaWxlZENvZGUvZWxlbWVudHMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUttQyIsImZpbGUiOiIuLi8uLi9zcmMvRGV0YWlsZWRDb2RlL2VsZW1lbnRzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXN0eWxlcyc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IEZsZXhCb3ggfSBmcm9tICcuLi9Cb3gnO1xuXG5leHBvcnQgY29uc3QgRGV0YWlsZWRDb2RlV3JhcHBlciA9IHN0eWxlZChGbGV4Qm94KShcbiAgY3NzKHtcbiAgICB3aWR0aDogJzEwMCUnLFxuICAgIGZsZXhEaXJlY3Rpb246ICdjb2x1bW4nLFxuICAgIGJvcmRlclJhZGl1czogJ21kJyxcbiAgICBib3JkZXI6IDEsXG4gICAgYmc6ICdiYWNrZ3JvdW5kJyxcbiAgfSlcbik7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxlZENvZGVCb2R5V3JhcHBlciA9IHN0eWxlZChGbGV4Qm94KShcbiAgY3NzKHtcbiAgICBmbGV4RGlyZWN0aW9uOiAnY29sdW1uJyxcbiAgICAvKiBPdmVycmlkZSBTdG9yeWJvb2sncyBTb3VyY2UgY29tcG9uZW50IGRlZmF1bHQgc3R5bGVzIHRvIHJlbW92ZSB1bndhbnRlZCBzcGFjaW5nIGFuZCBib3JkZXJzIGluIHRoZSBjb250YWluZXIgKi9cbiAgICAnJiAuZG9jYmxvY2stc291cmNlJzoge1xuICAgICAgYm9yZGVyUmFkaXVzOiAnbm9uZScsXG4gICAgICBtYXJnaW46IDAsXG4gICAgfSxcbiAgfSlcbik7XG4iXX0= */");
14
+ export const DetailedCodeBodyWrapper = /*#__PURE__*/_styled(FlexBox, {
15
+ target: "ewqc84l0",
16
+ label: "DetailedCodeBodyWrapper"
17
+ })(css({
18
+ flexDirection: 'column',
19
+ /* Override Storybook's Source component default styles to remove unwanted spacing and borders in the container */
20
+ '& .docblock-source': {
21
+ borderRadius: 'none',
22
+ margin: 0
23
+ }
24
+ }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9EZXRhaWxlZENvZGUvZWxlbWVudHMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWV1QyIsImZpbGUiOiIuLi8uLi9zcmMvRGV0YWlsZWRDb2RlL2VsZW1lbnRzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXN0eWxlcyc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IEZsZXhCb3ggfSBmcm9tICcuLi9Cb3gnO1xuXG5leHBvcnQgY29uc3QgRGV0YWlsZWRDb2RlV3JhcHBlciA9IHN0eWxlZChGbGV4Qm94KShcbiAgY3NzKHtcbiAgICB3aWR0aDogJzEwMCUnLFxuICAgIGZsZXhEaXJlY3Rpb246ICdjb2x1bW4nLFxuICAgIGJvcmRlclJhZGl1czogJ21kJyxcbiAgICBib3JkZXI6IDEsXG4gICAgYmc6ICdiYWNrZ3JvdW5kJyxcbiAgfSlcbik7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxlZENvZGVCb2R5V3JhcHBlciA9IHN0eWxlZChGbGV4Qm94KShcbiAgY3NzKHtcbiAgICBmbGV4RGlyZWN0aW9uOiAnY29sdW1uJyxcbiAgICAvKiBPdmVycmlkZSBTdG9yeWJvb2sncyBTb3VyY2UgY29tcG9uZW50IGRlZmF1bHQgc3R5bGVzIHRvIHJlbW92ZSB1bndhbnRlZCBzcGFjaW5nIGFuZCBib3JkZXJzIGluIHRoZSBjb250YWluZXIgKi9cbiAgICAnJiAuZG9jYmxvY2stc291cmNlJzoge1xuICAgICAgYm9yZGVyUmFkaXVzOiAnbm9uZScsXG4gICAgICBtYXJnaW46IDAsXG4gICAgfSxcbiAgfSlcbik7XG4iXX0= */");
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { DetailedCodeProps } from './types';
3
+ export declare const DetailedCode: React.FC<DetailedCodeProps>;
@@ -0,0 +1,37 @@
1
+ import React, { useState } from 'react';
2
+ import { DetailedCodeBody } from './DetailedCodeBody';
3
+ import { DetailedCodeButton } from './DetailedCodeButton';
4
+ import { DetailedCodeWrapper } from './elements';
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ const DEFAULT_PREVIEW_LINES = 10;
7
+ const DEFAULT_LANGUAGE = 'tsx';
8
+ const getPreviewCode = (code, previewLines) => {
9
+ const lines = code.split('\n');
10
+ if (lines.length <= previewLines) {
11
+ return code;
12
+ }
13
+ return lines.slice(0, previewLines).join('\n');
14
+ };
15
+ export const DetailedCode = ({
16
+ code,
17
+ initiallyExpanded = false,
18
+ language = DEFAULT_LANGUAGE,
19
+ preview = false,
20
+ previewLines = DEFAULT_PREVIEW_LINES
21
+ }) => {
22
+ const [isExpanded, setIsExpanded] = useState(initiallyExpanded);
23
+ const normalizedPreviewLines = Math.max(0, previewLines);
24
+ const previewEnabled = preview && normalizedPreviewLines > 0;
25
+ const previewCode = previewEnabled ? getPreviewCode(code, normalizedPreviewLines) : code;
26
+ const hasMoreCode = previewEnabled && code.split('\n').length > normalizedPreviewLines;
27
+ const displayedCode = isExpanded ? code : previewCode;
28
+ return /*#__PURE__*/_jsxs(DetailedCodeWrapper, {
29
+ children: [/*#__PURE__*/_jsx(DetailedCodeBody, {
30
+ code: displayedCode,
31
+ language: language
32
+ }), hasMoreCode && /*#__PURE__*/_jsx(DetailedCodeButton, {
33
+ isExpanded: isExpanded,
34
+ setIsExpanded: setIsExpanded
35
+ })]
36
+ });
37
+ };
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ export interface DetailedCodeProps {
3
+ code: string;
4
+ language: string;
5
+ initiallyExpanded?: boolean;
6
+ preview?: boolean;
7
+ previewLines?: number;
8
+ }
9
+ export interface DetailedCodeButtonProps {
10
+ isExpanded?: boolean;
11
+ setIsExpanded?: React.Dispatch<React.SetStateAction<boolean>>;
12
+ }
13
+ export interface DetailedCodeBodyProps {
14
+ code: string;
15
+ language: string;
16
+ }
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export * from './Coachmark';
16
16
  export * from './ConnectedForm';
17
17
  export * from './ContentContainer';
18
18
  export * from './DelayedRenderWrapper';
19
+ export * from './DetailedCode';
19
20
  export * from './Disclosure';
20
21
  export * from './DataList';
21
22
  export * from './Drawer';
package/dist/index.js CHANGED
@@ -15,6 +15,7 @@ export * from './Coachmark';
15
15
  export * from './ConnectedForm';
16
16
  export * from './ContentContainer';
17
17
  export * from './DelayedRenderWrapper';
18
+ export * from './DetailedCode';
18
19
  export * from './Disclosure';
19
20
  export * from './DataList';
20
21
  export * from './Drawer';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/gamut",
3
3
  "description": "Styleguide & Component library for Codecademy",
4
- "version": "68.0.0",
4
+ "version": "68.0.1-alpha.3a9965.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@codecademy/gamut-icons": "9.54.2",
@@ -56,5 +56,5 @@
56
56
  "dist/**/[A-Z]**/[A-Z]*.js",
57
57
  "dist/**/[A-Z]**/index.js"
58
58
  ],
59
- "gitHead": "08a04d5b6f9ff743b925e7edb6c71a713125e52c"
59
+ "gitHead": "787d4ab4255e824cf312213e6b711c4219fe314c"
60
60
  }