@codecademy/gamut 67.6.4-alpha.773a9b.0 → 67.6.4-alpha.abebfb.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.
@@ -148,20 +148,12 @@ declare const anchorProps: import("@codecademy/variance/dist/types/config").Pars
148
148
  readonly scale: "spacing";
149
149
  };
150
150
  readonly mr: {
151
- readonly property: {
152
- readonly physical: "marginRight";
153
- readonly logical: "marginInlineEnd";
154
- };
151
+ readonly property: "marginRight";
155
152
  readonly scale: "spacing";
156
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
157
153
  };
158
154
  readonly ml: {
159
- readonly property: {
160
- readonly physical: "marginLeft";
161
- readonly logical: "marginInlineStart";
162
- };
155
+ readonly property: "marginLeft";
163
156
  readonly scale: "spacing";
164
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
165
157
  };
166
158
  }>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
167
159
  readonly fontFamily: {
@@ -62,20 +62,12 @@ declare const badgeProps: import("@codecademy/variance/dist/types/config").Parse
62
62
  readonly scale: "spacing";
63
63
  };
64
64
  readonly mr: {
65
- readonly property: {
66
- readonly physical: "marginRight";
67
- readonly logical: "marginInlineEnd";
68
- };
65
+ readonly property: "marginRight";
69
66
  readonly scale: "spacing";
70
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
71
67
  };
72
68
  readonly ml: {
73
- readonly property: {
74
- readonly physical: "marginLeft";
75
- readonly logical: "marginInlineStart";
76
- };
69
+ readonly property: "marginLeft";
77
70
  readonly scale: "spacing";
78
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
79
71
  };
80
72
  }>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
81
73
  readonly flexBasis: {
@@ -54,20 +54,12 @@ export declare const boxProps: import("@codecademy/variance/dist/types/config").
54
54
  readonly scale: "spacing";
55
55
  };
56
56
  readonly mr: {
57
- readonly property: {
58
- readonly physical: "marginRight";
59
- readonly logical: "marginInlineEnd";
60
- };
57
+ readonly property: "marginRight";
61
58
  readonly scale: "spacing";
62
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
63
59
  };
64
60
  readonly ml: {
65
- readonly property: {
66
- readonly physical: "marginLeft";
67
- readonly logical: "marginInlineStart";
68
- };
61
+ readonly property: "marginLeft";
69
62
  readonly scale: "spacing";
70
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
71
63
  };
72
64
  }>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
73
65
  readonly border: {
@@ -176,20 +176,12 @@ export declare const buttonProps: import("@codecademy/variance/dist/types/config
176
176
  readonly scale: "spacing";
177
177
  };
178
178
  readonly mr: {
179
- readonly property: {
180
- readonly physical: "marginRight";
181
- readonly logical: "marginInlineEnd";
182
- };
179
+ readonly property: "marginRight";
183
180
  readonly scale: "spacing";
184
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
185
181
  };
186
182
  readonly ml: {
187
- readonly property: {
188
- readonly physical: "marginLeft";
189
- readonly logical: "marginInlineStart";
190
- };
183
+ readonly property: "marginLeft";
191
184
  readonly scale: "spacing";
192
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
193
185
  };
194
186
  }>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
195
187
  readonly border: {
@@ -547,20 +547,12 @@ export declare const MotionBox: import("react").ComponentType<{
547
547
  readonly scale: "spacing";
548
548
  }>;
549
549
  mr?: import("@codecademy/variance/dist/types/config").Scale<{
550
- readonly property: {
551
- readonly physical: "marginRight";
552
- readonly logical: "marginInlineEnd";
553
- };
550
+ readonly property: "marginRight";
554
551
  readonly scale: "spacing";
555
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
556
552
  }>;
557
553
  ml?: import("@codecademy/variance/dist/types/config").Scale<{
558
- readonly property: {
559
- readonly physical: "marginLeft";
560
- readonly logical: "marginInlineStart";
561
- };
554
+ readonly property: "marginLeft";
562
555
  readonly scale: "spacing";
563
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
564
556
  }>;
565
557
  borderX?: import("@codecademy/variance/dist/types/config").Scale<{
566
558
  readonly property: "border";
@@ -1240,20 +1232,12 @@ export declare const DynamicCardWrapper: import("@emotion/styled").StyledCompone
1240
1232
  readonly scale: "spacing";
1241
1233
  }>;
1242
1234
  mr?: import("@codecademy/variance/dist/types/config").Scale<{
1243
- readonly property: {
1244
- readonly physical: "marginRight";
1245
- readonly logical: "marginInlineEnd";
1246
- };
1235
+ readonly property: "marginRight";
1247
1236
  readonly scale: "spacing";
1248
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
1249
1237
  }>;
1250
1238
  ml?: import("@codecademy/variance/dist/types/config").Scale<{
1251
- readonly property: {
1252
- readonly physical: "marginLeft";
1253
- readonly logical: "marginInlineStart";
1254
- };
1239
+ readonly property: "marginLeft";
1255
1240
  readonly scale: "spacing";
1256
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
1257
1241
  }>;
1258
1242
  borderX?: import("@codecademy/variance/dist/types/config").Scale<{
1259
1243
  readonly property: "border";
@@ -1917,20 +1901,12 @@ export declare const StaticCardWrapper: import("@emotion/styled").StyledComponen
1917
1901
  readonly scale: "spacing";
1918
1902
  }>;
1919
1903
  mr?: import("@codecademy/variance/dist/types/config").Scale<{
1920
- readonly property: {
1921
- readonly physical: "marginRight";
1922
- readonly logical: "marginInlineEnd";
1923
- };
1904
+ readonly property: "marginRight";
1924
1905
  readonly scale: "spacing";
1925
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
1926
1906
  }>;
1927
1907
  ml?: import("@codecademy/variance/dist/types/config").Scale<{
1928
- readonly property: {
1929
- readonly physical: "marginLeft";
1930
- readonly logical: "marginInlineStart";
1931
- };
1908
+ readonly property: "marginLeft";
1932
1909
  readonly scale: "spacing";
1933
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
1934
1910
  }>;
1935
1911
  borderX?: import("@codecademy/variance/dist/types/config").Scale<{
1936
1912
  readonly property: "border";
@@ -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,17 @@
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
+ column: true,
11
+ children: /*#__PURE__*/_jsx(Source, {
12
+ code: code,
13
+ dark: true,
14
+ language: language
15
+ })
16
+ });
17
+ };
@@ -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,65 @@
1
+ import { MiniChevronDownIcon } from '@codecademy/gamut-icons';
2
+ import * as React from 'react';
3
+ import { Rotation } from '../../Animation';
4
+ import { Box, FlexBox } from '../../Box';
5
+ import { Text } from '../../Typography';
6
+ import { DetailedCodeButtonWrapper } from '../elements';
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
+ export const DetailedCodeButton = ({
9
+ heading,
10
+ isExpanded,
11
+ language,
12
+ setIsExpanded
13
+ }) => {
14
+ const handleClick = () => {
15
+ if (setIsExpanded) {
16
+ setIsExpanded(prev => !prev);
17
+ }
18
+ };
19
+ return /*#__PURE__*/_jsx(FlexBox, {
20
+ children: /*#__PURE__*/_jsx(DetailedCodeButtonWrapper, {
21
+ "aria-expanded": isExpanded,
22
+ height: "100%",
23
+ px: 16,
24
+ py: 12,
25
+ variant: "interface",
26
+ width: "100%",
27
+ onClick: handleClick,
28
+ children: /*#__PURE__*/_jsxs(FlexBox, {
29
+ alignItems: "center",
30
+ columnGap: 16,
31
+ flexDirection: "row",
32
+ justifyContent: "space-between",
33
+ width: "100%",
34
+ children: [/*#__PURE__*/_jsxs(FlexBox, {
35
+ alignItems: "center",
36
+ columnGap: 12,
37
+ children: [heading && /*#__PURE__*/_jsx(Text, {
38
+ as: "h3",
39
+ fontWeight: "title",
40
+ p: 0,
41
+ textAlign: "start",
42
+ variant: "title-xs",
43
+ children: heading
44
+ }), /*#__PURE__*/_jsx(Text, {
45
+ color: "text-secondary",
46
+ fontFamily: "monospace",
47
+ variant: "p-small",
48
+ children: language
49
+ })]
50
+ }), /*#__PURE__*/_jsx(Box, {
51
+ p: 8,
52
+ children: /*#__PURE__*/_jsx(Rotation, {
53
+ height: 16,
54
+ rotated: isExpanded,
55
+ width: 16,
56
+ children: /*#__PURE__*/_jsx(MiniChevronDownIcon, {
57
+ "aria-hidden": true,
58
+ size: 16
59
+ })
60
+ })
61
+ })]
62
+ })
63
+ })
64
+ });
65
+ };
@@ -0,0 +1,37 @@
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 DetailedCodeButtonWrapper: import("@emotion/styled").StyledComponent<(((Omit<Partial<import("../helpers").AppendedIconProps> & {
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
+ } & import("../Anchor").AnchorProps & Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "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" | "media" | "target" | "type" | "href" | keyof import("react").ClassAttributes<HTMLAnchorElement> | "download" | "hrefLang" | "ping" | "referrerPolicy">, "ref"> | Omit<Partial<import("../helpers").AppendedIconProps> & {
12
+ theme?: import("@emotion/react").Theme | undefined;
13
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
14
+ } & import("../Anchor").AnchorProps & Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "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" | "media" | "target" | "type" | "href" | keyof import("react").ClassAttributes<HTMLAnchorElement> | "download" | "hrefLang" | "ping" | "referrerPolicy"> & Omit<{
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
17
+ } & {
18
+ theme?: import("@emotion/react").Theme | undefined;
19
+ } & Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "disabled" | "name" | "form" | "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "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" | "type" | keyof import("react").ClassAttributes<HTMLButtonElement> | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value">, "ref"> & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref"> | Omit<Partial<import("../helpers").AppendedIconProps> & {
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
22
+ } & import("../Anchor").AnchorProps & Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "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" | "media" | "target" | "type" | "href" | keyof import("react").ClassAttributes<HTMLAnchorElement> | "download" | "hrefLang" | "ping" | "referrerPolicy"> & Omit<{
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
25
+ } & {
26
+ theme?: import("@emotion/react").Theme | undefined;
27
+ } & Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "disabled" | "name" | "form" | "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "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" | "type" | keyof import("react").ClassAttributes<HTMLButtonElement> | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value"> & Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "slot" | "style" | "title" | "dir" | "children" | "className" | "aria-hidden" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "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" | "media" | "target" | "type" | "href" | keyof import("react").ClassAttributes<HTMLAnchorElement> | "download" | "hrefLang" | "ping" | "referrerPolicy">, "ref"> & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>, "ref">) & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>) & {
28
+ theme?: import("@emotion/react").Theme | undefined;
29
+ }) & {
30
+ theme?: import("@emotion/react").Theme | undefined;
31
+ }, {}, {}>;
32
+ export declare const DetailedCodeBodyWrapper: import("@emotion/styled").StyledComponent<{
33
+ theme?: import("@emotion/react").Theme | undefined;
34
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
35
+ } & 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"> & {
36
+ theme?: import("@emotion/react").Theme | undefined;
37
+ }, {}, {}>;
@@ -0,0 +1,34 @@
1
+ import _styled from "@emotion/styled/base";
2
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
3
+ import { css } from '@codecademy/gamut-styles';
4
+ import { Anchor } from '../Anchor';
5
+ import { FlexBox } from '../Box';
6
+ export const DetailedCodeWrapper = /*#__PURE__*/_styled(FlexBox, {
7
+ target: "ewqc84l2",
8
+ label: "DetailedCodeWrapper"
9
+ })(css({
10
+ width: '100%',
11
+ maxHeight: 'fit-content',
12
+ borderRadius: 'md',
13
+ border: 1,
14
+ bg: 'background'
15
+ }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9EZXRhaWxlZENvZGUvZWxlbWVudHMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU1tQyIsImZpbGUiOiIuLi8uLi9zcmMvRGV0YWlsZWRDb2RlL2VsZW1lbnRzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXN0eWxlcyc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IEFuY2hvciB9IGZyb20gJy4uL0FuY2hvcic7XG5pbXBvcnQgeyBGbGV4Qm94IH0gZnJvbSAnLi4vQm94JztcblxuZXhwb3J0IGNvbnN0IERldGFpbGVkQ29kZVdyYXBwZXIgPSBzdHlsZWQoRmxleEJveCkoXG4gIGNzcyh7XG4gICAgd2lkdGg6ICcxMDAlJyxcbiAgICBtYXhIZWlnaHQ6ICdmaXQtY29udGVudCcsXG4gICAgYm9yZGVyUmFkaXVzOiAnbWQnLFxuICAgIGJvcmRlcjogMSxcbiAgICBiZzogJ2JhY2tncm91bmQnLFxuICB9KVxuKTtcblxuZXhwb3J0IGNvbnN0IERldGFpbGVkQ29kZUJ1dHRvbldyYXBwZXIgPSBzdHlsZWQoQW5jaG9yKShcbiAgY3NzKHtcbiAgICBib3JkZXJSYWRpdXM6ICdtZCcsXG4gICAgYmc6ICdpbmhlcml0JyxcbiAgfSlcbik7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxlZENvZGVCb2R5V3JhcHBlciA9IHN0eWxlZChGbGV4Qm94KSh7XG4gIG92ZXJmbG93OiAnaGlkZGVuJyxcbiAgJyYgcHJlJzoge1xuICAgIG1hcmdpbjogMCxcbiAgfSxcbiAgJyYgPiBkaXYnOiB7XG4gICAgYm9yZGVyUmFkaXVzOiAwLFxuICAgIHBhZGRpbmc6IDAsXG4gIH0sXG4gIC8vIFJlbW92ZSBtYXJnaW4gZnJvbSBzdG9yeWJvb2sgc291cmNlIGJsb2NrLCBvdmVycmlkZSBkZWZhdWx0IG1hcmdpbiAoMjUgdG9wLCA0MCBib3R0b20pXG4gICcmIC5kb2NibG9jay1zb3VyY2UnOiB7XG4gICAgbWFyZ2luOiAwLFxuICB9LFxufSk7XG4iXX0= */");
16
+ export const DetailedCodeButtonWrapper = /*#__PURE__*/_styled(Anchor, {
17
+ target: "ewqc84l1",
18
+ label: "DetailedCodeButtonWrapper"
19
+ })(css({
20
+ borderRadius: 'md',
21
+ bg: 'inherit'
22
+ }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9EZXRhaWxlZENvZGUvZWxlbWVudHMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdCeUMiLCJmaWxlIjoiLi4vLi4vc3JjL0RldGFpbGVkQ29kZS9lbGVtZW50cy50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1zdHlsZXMnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBBbmNob3IgfSBmcm9tICcuLi9BbmNob3InO1xuaW1wb3J0IHsgRmxleEJveCB9IGZyb20gJy4uL0JveCc7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxlZENvZGVXcmFwcGVyID0gc3R5bGVkKEZsZXhCb3gpKFxuICBjc3Moe1xuICAgIHdpZHRoOiAnMTAwJScsXG4gICAgbWF4SGVpZ2h0OiAnZml0LWNvbnRlbnQnLFxuICAgIGJvcmRlclJhZGl1czogJ21kJyxcbiAgICBib3JkZXI6IDEsXG4gICAgYmc6ICdiYWNrZ3JvdW5kJyxcbiAgfSlcbik7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxlZENvZGVCdXR0b25XcmFwcGVyID0gc3R5bGVkKEFuY2hvcikoXG4gIGNzcyh7XG4gICAgYm9yZGVyUmFkaXVzOiAnbWQnLFxuICAgIGJnOiAnaW5oZXJpdCcsXG4gIH0pXG4pO1xuXG5leHBvcnQgY29uc3QgRGV0YWlsZWRDb2RlQm9keVdyYXBwZXIgPSBzdHlsZWQoRmxleEJveCkoe1xuICBvdmVyZmxvdzogJ2hpZGRlbicsXG4gICcmIHByZSc6IHtcbiAgICBtYXJnaW46IDAsXG4gIH0sXG4gICcmID4gZGl2Jzoge1xuICAgIGJvcmRlclJhZGl1czogMCxcbiAgICBwYWRkaW5nOiAwLFxuICB9LFxuICAvLyBSZW1vdmUgbWFyZ2luIGZyb20gc3Rvcnlib29rIHNvdXJjZSBibG9jaywgb3ZlcnJpZGUgZGVmYXVsdCBtYXJnaW4gKDI1IHRvcCwgNDAgYm90dG9tKVxuICAnJiAuZG9jYmxvY2stc291cmNlJzoge1xuICAgIG1hcmdpbjogMCxcbiAgfSxcbn0pO1xuIl19 */");
23
+ export const DetailedCodeBodyWrapper = /*#__PURE__*/_styled(FlexBox, {
24
+ target: "ewqc84l0",
25
+ label: "DetailedCodeBodyWrapper"
26
+ })(process.env.NODE_ENV === "production" ? {
27
+ name: "pwbapd",
28
+ styles: "overflow:hidden;& pre{margin:0;}& > div{border-radius:0;padding:0;}& .docblock-source{margin:0;}"
29
+ } : {
30
+ name: "pwbapd",
31
+ styles: "overflow:hidden;& pre{margin:0;}& > div{border-radius:0;padding:0;}& .docblock-source{margin:0;}",
32
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9EZXRhaWxlZENvZGUvZWxlbWVudHMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCdUMiLCJmaWxlIjoiLi4vLi4vc3JjL0RldGFpbGVkQ29kZS9lbGVtZW50cy50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1zdHlsZXMnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5pbXBvcnQgeyBBbmNob3IgfSBmcm9tICcuLi9BbmNob3InO1xuaW1wb3J0IHsgRmxleEJveCB9IGZyb20gJy4uL0JveCc7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxlZENvZGVXcmFwcGVyID0gc3R5bGVkKEZsZXhCb3gpKFxuICBjc3Moe1xuICAgIHdpZHRoOiAnMTAwJScsXG4gICAgbWF4SGVpZ2h0OiAnZml0LWNvbnRlbnQnLFxuICAgIGJvcmRlclJhZGl1czogJ21kJyxcbiAgICBib3JkZXI6IDEsXG4gICAgYmc6ICdiYWNrZ3JvdW5kJyxcbiAgfSlcbik7XG5cbmV4cG9ydCBjb25zdCBEZXRhaWxlZENvZGVCdXR0b25XcmFwcGVyID0gc3R5bGVkKEFuY2hvcikoXG4gIGNzcyh7XG4gICAgYm9yZGVyUmFkaXVzOiAnbWQnLFxuICAgIGJnOiAnaW5oZXJpdCcsXG4gIH0pXG4pO1xuXG5leHBvcnQgY29uc3QgRGV0YWlsZWRDb2RlQm9keVdyYXBwZXIgPSBzdHlsZWQoRmxleEJveCkoe1xuICBvdmVyZmxvdzogJ2hpZGRlbicsXG4gICcmIHByZSc6IHtcbiAgICBtYXJnaW46IDAsXG4gIH0sXG4gICcmID4gZGl2Jzoge1xuICAgIGJvcmRlclJhZGl1czogMCxcbiAgICBwYWRkaW5nOiAwLFxuICB9LFxuICAvLyBSZW1vdmUgbWFyZ2luIGZyb20gc3Rvcnlib29rIHNvdXJjZSBibG9jaywgb3ZlcnJpZGUgZGVmYXVsdCBtYXJnaW4gKDI1IHRvcCwgNDAgYm90dG9tKVxuICAnJiAuZG9jYmxvY2stc291cmNlJzoge1xuICAgIG1hcmdpbjogMCxcbiAgfSxcbn0pO1xuIl19 */",
33
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
34
+ });
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { DetailedCodeProps } from './types';
3
+ export declare const DetailedCode: React.FC<DetailedCodeProps>;
@@ -0,0 +1,43 @@
1
+ import { useState } from 'react';
2
+ import * as React from 'react';
3
+ import { DetailedCodeBody } from './DetailedCodeBody';
4
+ import { DetailedCodeButton } from './DetailedCodeButton';
5
+ import { DetailedCodeWrapper } from './elements';
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ const DEFAULT_PREVIEW_LINES = 10;
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
+ heading,
18
+ initiallyExpanded = false,
19
+ language,
20
+ preview = false,
21
+ previewLines = DEFAULT_PREVIEW_LINES
22
+ }) => {
23
+ const [isExpanded, setIsExpanded] = useState(initiallyExpanded);
24
+ const normalizedPreviewLines = Math.max(0, previewLines);
25
+ const previewEnabled = preview && normalizedPreviewLines > 0;
26
+ const previewCode = previewEnabled ? getPreviewCode(code, normalizedPreviewLines) : code;
27
+
28
+ // Show the button to expand the code if there is more code than the preview lines, and hide the button if there is no more code
29
+ const hasMoreCode = previewEnabled && code.split('\n').length > normalizedPreviewLines;
30
+ const displayedCode = isExpanded ? code : previewCode;
31
+ return /*#__PURE__*/_jsxs(DetailedCodeWrapper, {
32
+ column: true,
33
+ children: [/*#__PURE__*/_jsx(DetailedCodeBody, {
34
+ code: displayedCode,
35
+ language: language
36
+ }), hasMoreCode && /*#__PURE__*/_jsx(DetailedCodeButton, {
37
+ heading: heading,
38
+ isExpanded: isExpanded,
39
+ language: language,
40
+ setIsExpanded: setIsExpanded
41
+ })]
42
+ });
43
+ };
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ export interface DetailedCodeProps {
3
+ code: string;
4
+ heading?: string;
5
+ language: string;
6
+ initiallyExpanded?: boolean;
7
+ preview?: boolean;
8
+ previewLines?: number;
9
+ }
10
+ export interface DetailedCodeButtonProps {
11
+ heading?: string;
12
+ isExpanded?: boolean;
13
+ language: string;
14
+ setIsExpanded?: React.Dispatch<React.SetStateAction<boolean>>;
15
+ }
16
+ export interface DetailedCodeBodyProps {
17
+ code: string;
18
+ language: string;
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -215,20 +215,12 @@ declare const StyledForm: import("@emotion/styled").StyledComponent<{
215
215
  readonly scale: "spacing";
216
216
  }>;
217
217
  mr?: import("@codecademy/variance/dist/types/config").Scale<{
218
- readonly property: {
219
- readonly physical: "marginRight";
220
- readonly logical: "marginInlineEnd";
221
- };
218
+ readonly property: "marginRight";
222
219
  readonly scale: "spacing";
223
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
224
220
  }>;
225
221
  ml?: import("@codecademy/variance/dist/types/config").Scale<{
226
- readonly property: {
227
- readonly physical: "marginLeft";
228
- readonly logical: "marginInlineStart";
229
- };
222
+ readonly property: "marginLeft";
230
223
  readonly scale: "spacing";
231
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
232
224
  }>;
233
225
  borderX?: import("@codecademy/variance/dist/types/config").Scale<{
234
226
  readonly property: "border";
@@ -144,20 +144,12 @@ declare const columnProps: import("@codecademy/variance/dist/types/config").Pars
144
144
  readonly scale: "spacing";
145
145
  };
146
146
  readonly mr: {
147
- readonly property: {
148
- readonly physical: "marginRight";
149
- readonly logical: "marginInlineEnd";
150
- };
147
+ readonly property: "marginRight";
151
148
  readonly scale: "spacing";
152
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
153
149
  };
154
150
  readonly ml: {
155
- readonly property: {
156
- readonly physical: "marginLeft";
157
- readonly logical: "marginInlineStart";
158
- };
151
+ readonly property: "marginLeft";
159
152
  readonly scale: "spacing";
160
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
161
153
  };
162
154
  }>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
163
155
  readonly gridColumn: {
@@ -54,20 +54,12 @@ declare const gridProps: import("@codecademy/variance/dist/types/config").Parser
54
54
  readonly scale: "spacing";
55
55
  };
56
56
  readonly mr: {
57
- readonly property: {
58
- readonly physical: "marginRight";
59
- readonly logical: "marginInlineEnd";
60
- };
57
+ readonly property: "marginRight";
61
58
  readonly scale: "spacing";
62
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
63
59
  };
64
60
  readonly ml: {
65
- readonly property: {
66
- readonly physical: "marginLeft";
67
- readonly logical: "marginInlineStart";
68
- };
61
+ readonly property: "marginLeft";
69
62
  readonly scale: "spacing";
70
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
71
63
  };
72
64
  }>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
73
65
  gap: {
@@ -54,20 +54,12 @@ declare const space: import("@codecademy/variance/dist/types/config").Parser<imp
54
54
  readonly scale: "spacing";
55
55
  };
56
56
  readonly mr: {
57
- readonly property: {
58
- readonly physical: "marginRight";
59
- readonly logical: "marginInlineEnd";
60
- };
57
+ readonly property: "marginRight";
61
58
  readonly scale: "spacing";
62
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
63
59
  };
64
60
  readonly ml: {
65
- readonly property: {
66
- readonly physical: "marginLeft";
67
- readonly logical: "marginInlineStart";
68
- };
61
+ readonly property: "marginLeft";
69
62
  readonly scale: "spacing";
70
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
71
63
  };
72
64
  }>>, grid: import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
73
65
  readonly gridColumn: {
@@ -888,20 +880,12 @@ export declare const AnimatedListWrapper: import("@emotion/styled").StyledCompon
888
880
  readonly scale: "spacing";
889
881
  }>;
890
882
  mr?: import("@codecademy/variance/dist/types/config").Scale<{
891
- readonly property: {
892
- readonly physical: "marginRight";
893
- readonly logical: "marginInlineEnd";
894
- };
883
+ readonly property: "marginRight";
895
884
  readonly scale: "spacing";
896
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
897
885
  }>;
898
886
  ml?: import("@codecademy/variance/dist/types/config").Scale<{
899
- readonly property: {
900
- readonly physical: "marginLeft";
901
- readonly logical: "marginInlineStart";
902
- };
887
+ readonly property: "marginLeft";
903
888
  readonly scale: "spacing";
904
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
905
889
  }>;
906
890
  borderX?: import("@codecademy/variance/dist/types/config").Scale<{
907
891
  readonly property: "border";
@@ -180,20 +180,12 @@ declare const listProps: import("@codecademy/variance/dist/types/config").Parser
180
180
  readonly scale: "spacing";
181
181
  };
182
182
  readonly mr: {
183
- readonly property: {
184
- readonly physical: "marginRight";
185
- readonly logical: "marginInlineEnd";
186
- };
183
+ readonly property: "marginRight";
187
184
  readonly scale: "spacing";
188
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
189
185
  };
190
186
  readonly ml: {
191
- readonly property: {
192
- readonly physical: "marginLeft";
193
- readonly logical: "marginInlineStart";
194
- };
187
+ readonly property: "marginLeft";
195
188
  readonly scale: "spacing";
196
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
197
189
  };
198
190
  }>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
199
191
  readonly position: {
@@ -464,20 +464,12 @@ export declare const AnimatedFadeButton: (props: {
464
464
  readonly scale: "spacing";
465
465
  }>;
466
466
  mr?: import("@codecademy/variance/dist/types/config").Scale<{
467
- readonly property: {
468
- readonly physical: "marginRight";
469
- readonly logical: "marginInlineEnd";
470
- };
467
+ readonly property: "marginRight";
471
468
  readonly scale: "spacing";
472
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
473
469
  }>;
474
470
  ml?: import("@codecademy/variance/dist/types/config").Scale<{
475
- readonly property: {
476
- readonly physical: "marginLeft";
477
- readonly logical: "marginInlineStart";
478
- };
471
+ readonly property: "marginLeft";
479
472
  readonly scale: "spacing";
480
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
481
473
  }>;
482
474
  borderX?: import("@codecademy/variance/dist/types/config").Scale<{
483
475
  readonly property: "border";
@@ -477,20 +477,12 @@ export declare const createAnimatedFadeButton: (WrappedComponent: typeof Paginat
477
477
  readonly scale: "spacing";
478
478
  }>;
479
479
  mr?: import("@codecademy/variance/dist/types/config").Scale<{
480
- readonly property: {
481
- readonly physical: "marginRight";
482
- readonly logical: "marginInlineEnd";
483
- };
480
+ readonly property: "marginRight";
484
481
  readonly scale: "spacing";
485
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
486
482
  }>;
487
483
  ml?: import("@codecademy/variance/dist/types/config").Scale<{
488
- readonly property: {
489
- readonly physical: "marginLeft";
490
- readonly logical: "marginInlineStart";
491
- };
484
+ readonly property: "marginLeft";
492
485
  readonly scale: "spacing";
493
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
494
486
  }>;
495
487
  borderX?: import("@codecademy/variance/dist/types/config").Scale<{
496
488
  readonly property: "border";
@@ -182,19 +182,11 @@ export declare const tabElementBaseProps: import("@codecademy/variance/dist/type
182
182
  readonly scale: "spacing";
183
183
  };
184
184
  readonly mr: {
185
- readonly property: {
186
- readonly physical: "marginRight";
187
- readonly logical: "marginInlineEnd";
188
- };
185
+ readonly property: "marginRight";
189
186
  readonly scale: "spacing";
190
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
191
187
  };
192
188
  readonly ml: {
193
- readonly property: {
194
- readonly physical: "marginLeft";
195
- readonly logical: "marginInlineStart";
196
- };
189
+ readonly property: "marginLeft";
197
190
  readonly scale: "spacing";
198
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
199
191
  };
200
192
  }>>]>>;
@@ -57,20 +57,12 @@ export declare const tagProps: import("@codecademy/variance/dist/types/config").
57
57
  readonly scale: "spacing";
58
58
  };
59
59
  readonly mr: {
60
- readonly property: {
61
- readonly physical: "marginRight";
62
- readonly logical: "marginInlineEnd";
63
- };
60
+ readonly property: "marginRight";
64
61
  readonly scale: "spacing";
65
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
66
62
  };
67
63
  readonly ml: {
68
- readonly property: {
69
- readonly physical: "marginLeft";
70
- readonly logical: "marginInlineStart";
71
- };
64
+ readonly property: "marginLeft";
72
65
  readonly scale: "spacing";
73
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
74
66
  };
75
67
  }>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
76
68
  readonly flexBasis: {
@@ -78,20 +78,12 @@ export declare const ToggleTrack: import("@emotion/styled").StyledComponent<{
78
78
  readonly scale: "spacing";
79
79
  }>;
80
80
  mr?: import("@codecademy/variance/dist/types/config").Scale<{
81
- readonly property: {
82
- readonly physical: "marginRight";
83
- readonly logical: "marginInlineEnd";
84
- };
81
+ readonly property: "marginRight";
85
82
  readonly scale: "spacing";
86
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
87
83
  }>;
88
84
  ml?: import("@codecademy/variance/dist/types/config").Scale<{
89
- readonly property: {
90
- readonly physical: "marginLeft";
91
- readonly logical: "marginInlineStart";
92
- };
85
+ readonly property: "marginLeft";
93
86
  readonly scale: "spacing";
94
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
95
87
  }>;
96
88
  textColor?: import("@codecademy/variance/dist/types/config").Scale<{
97
89
  readonly property: "color";
@@ -198,19 +190,11 @@ export declare const ToggleLabel: import("@emotion/styled").StyledComponent<{
198
190
  readonly scale: "spacing";
199
191
  }>;
200
192
  mr?: import("@codecademy/variance/dist/types/config").Scale<{
201
- readonly property: {
202
- readonly physical: "marginRight";
203
- readonly logical: "marginInlineEnd";
204
- };
193
+ readonly property: "marginRight";
205
194
  readonly scale: "spacing";
206
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
207
195
  }>;
208
196
  ml?: import("@codecademy/variance/dist/types/config").Scale<{
209
- readonly property: {
210
- readonly physical: "marginLeft";
211
- readonly logical: "marginInlineStart";
212
- };
197
+ readonly property: "marginLeft";
213
198
  readonly scale: "spacing";
214
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
215
199
  }>;
216
200
  }, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
@@ -231,20 +231,12 @@ declare const textProps: import("@codecademy/variance/dist/types/config").Parser
231
231
  readonly scale: "spacing";
232
232
  };
233
233
  readonly mr: {
234
- readonly property: {
235
- readonly physical: "marginRight";
236
- readonly logical: "marginInlineEnd";
237
- };
234
+ readonly property: "marginRight";
238
235
  readonly scale: "spacing";
239
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
240
236
  };
241
237
  readonly ml: {
242
- readonly property: {
243
- readonly physical: "marginLeft";
244
- readonly logical: "marginInlineStart";
245
- };
238
+ readonly property: "marginLeft";
246
239
  readonly scale: "spacing";
247
- readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance").PropertyMode;
248
240
  };
249
241
  }>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
250
242
  truncateLines: {
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,14 +1,14 @@
1
1
  {
2
2
  "name": "@codecademy/gamut",
3
3
  "description": "Styleguide & Component library for Codecademy",
4
- "version": "67.6.4-alpha.773a9b.0",
4
+ "version": "67.6.4-alpha.abebfb.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
- "@codecademy/gamut-icons": "9.54.1-alpha.773a9b.0",
8
- "@codecademy/gamut-illustrations": "0.58.1-alpha.773a9b.0",
9
- "@codecademy/gamut-patterns": "0.10.20-alpha.773a9b.0",
10
- "@codecademy/gamut-styles": "17.11.1-alpha.773a9b.0",
11
- "@codecademy/variance": "0.25.1-alpha.773a9b.0",
7
+ "@codecademy/gamut-icons": "9.54.0",
8
+ "@codecademy/gamut-illustrations": "0.58.0",
9
+ "@codecademy/gamut-patterns": "0.10.19",
10
+ "@codecademy/gamut-styles": "17.11.0",
11
+ "@codecademy/variance": "0.25.0",
12
12
  "@types/marked": "^4.0.8",
13
13
  "@vidstack/react": "^1.12.12",
14
14
  "classnames": "^2.2.5",
@@ -56,5 +56,5 @@
56
56
  "dist/**/[A-Z]**/[A-Z]*.js",
57
57
  "dist/**/[A-Z]**/index.js"
58
58
  ],
59
- "gitHead": "0a98755d341287af382245ccb3086c381f334793"
59
+ "gitHead": "bb48e953c9bd7f75ef8f34e6f61d19b40db48901"
60
60
  }