@apify/ui-library 0.64.0 → 0.64.1-featcodeblockwithtabs-5a4360.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/code/code_block/code_block.d.ts +2 -2
- package/dist/src/components/code/code_block/code_block.d.ts.map +1 -1
- package/dist/src/components/code/code_block/code_block.js +6 -6
- package/dist/src/components/code/code_block/code_block.js.map +1 -1
- package/dist/src/components/code/code_block/code_block_with_tabs.d.ts +34 -0
- package/dist/src/components/code/code_block/code_block_with_tabs.d.ts.map +1 -0
- package/dist/src/components/code/code_block/code_block_with_tabs.js +176 -0
- package/dist/src/components/code/code_block/code_block_with_tabs.js.map +1 -0
- package/dist/src/components/code/index.d.ts +1 -0
- package/dist/src/components/code/index.d.ts.map +1 -1
- package/dist/src/components/code/index.js +1 -0
- package/dist/src/components/code/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/components/code/code_block/code_block.tsx +9 -9
- package/src/components/code/code_block/code_block_with_tabs.tsx +250 -0
- package/src/components/code/index.ts +1 -0
|
@@ -11,7 +11,7 @@ type CodeTab = {
|
|
|
11
11
|
bashCommandsStart?: number[];
|
|
12
12
|
to?: string;
|
|
13
13
|
};
|
|
14
|
-
type CodeBlockProps = RegularBoxProps & {
|
|
14
|
+
export type CodeBlockProps = RegularBoxProps & {
|
|
15
15
|
content: string | CodeTab[];
|
|
16
16
|
size?: SharedTextSize;
|
|
17
17
|
language?: string | undefined;
|
|
@@ -33,6 +33,6 @@ type CodeBlockProps = RegularBoxProps & {
|
|
|
33
33
|
hideBashPromptPrefixes?: boolean;
|
|
34
34
|
hideLineNumbers?: boolean | undefined;
|
|
35
35
|
};
|
|
36
|
-
export declare
|
|
36
|
+
export declare const CodeBlock: ({ content, size, language, highlightLines, onTabChange, defaultTabKey, showGradient, hideBashHeader, showActionButton, fullWidth, actionButtonLabel, gradientRotation, hideLineNumbers, fullHeight, title, hideCopyButton, bashCommandsStart, hideBashPromptPrefixes, onActionButtonClick, ...rest }: CodeBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
export {};
|
|
38
38
|
//# sourceMappingURL=code_block.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code_block.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAMhE,KAAK,OAAO,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;CACf,CAAA;AAqED,
|
|
1
|
+
{"version":3,"file":"code_block.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAMhE,KAAK,OAAO,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EA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BashLine } from './utils.js';
|
|
11
11
|
const LANGUAGES_WITHOUT_LINE_NUMBERS = ['json', 'jsonp', 'jsonp', 'rss', 'yaml', 'xml', 'html', 'bash', 'text', 'dockerfile', 'http'];
|
|
12
|
-
|
|
12
|
+
const HeaderDots = () => {
|
|
13
13
|
return (_jsxs("div", { className: "CodeBlock-HederDotsWrapper", children: [_jsx("div", { className: "CodeBlock-HeaderDot" }), _jsx("div", { className: "CodeBlock-HeaderDot" }), _jsx("div", { className: "CodeBlock-HeaderDot" })] }));
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
};
|
|
15
|
+
const Header = ({ tabs, currentTab, showBashHeader, onTabChange, title, }) => {
|
|
16
16
|
return (_jsxs("div", { className: "CodeBlock-Header", children: [showBashHeader && _jsx(HeaderDots, {}), title && (_jsx(Text, { weight: "bold", className: "CodeBlock-HeaderTitle", children: title })), _jsx("div", { className: "CodeBlock-HeaderTabsWrapper", children: tabs?.map((tab) => {
|
|
17
17
|
const selected = tab.key === currentTab?.key;
|
|
18
18
|
const props = {
|
|
@@ -27,8 +27,8 @@ function Header({ tabs, currentTab, showBashHeader, onTabChange, title, }) {
|
|
|
27
27
|
}
|
|
28
28
|
return (_jsx("div", { ...props, children: label }, tab.key));
|
|
29
29
|
}) })] }));
|
|
30
|
-
}
|
|
31
|
-
export
|
|
30
|
+
};
|
|
31
|
+
export const CodeBlock = ({ content, size, language, highlightLines, onTabChange, defaultTabKey, showGradient, hideBashHeader, showActionButton, fullWidth, actionButtonLabel, gradientRotation = 340, hideLineNumbers, fullHeight, title, hideCopyButton, bashCommandsStart, hideBashPromptPrefixes, onActionButtonClick, ...rest }) => {
|
|
32
32
|
const isMultiTab = content instanceof Array;
|
|
33
33
|
const defaultTab = isMultiTab
|
|
34
34
|
? content.find((tab) => tab.key === defaultTabKey) ?? content[0]
|
|
@@ -65,5 +65,5 @@ export function CodeBlock({ content, size, language, highlightLines, onTabChange
|
|
|
65
65
|
return { data: data.join(' ') };
|
|
66
66
|
}, [currentHighlightLines, showBashPrompt, currentBashLinesPrefixes]);
|
|
67
67
|
return (_jsxs(CodeBlockWrapper, { "$hasHeader": showHeader, "$gradientRotation": gradientRotation, "$hasActionButton": showActionButton, "$hasTabs": isMultiTab, "$fullWidth": fullWidth, "$fullHeight": fullHeight, "$showLineNumbers": showLineNumbers, ...rest, children: [showHeader && (_jsx(Header, { tabs: isMultiTab ? content : null, currentTab: currentTab, onTabChange: handleTabClick, showBashHeader: showBashHeader, title: title })), _jsx(SyntaxHighlighter, { showLineNumbers: true, wrapLines: true, language: currentLanguage, size: size, lineProps: getLineProps, ref: syntaxHighlighterRef, children: currentCode }), _jsxs("div", { className: "CodeBlock-TopRightActionsWrapper", children: [showActionButton && _jsx(ActionButton, { successStyle: true, onClick: onActionButtonClick, children: actionButtonLabel ?? 'Run on Apify' }), !hideCopyButton && _jsx(CopyButton, { code: currentCode })] }), showGradient && (_jsx(ColorWheelGradient, { className: "CodeBlock-Gradient", blurSize: 69 }))] }));
|
|
68
|
-
}
|
|
68
|
+
};
|
|
69
69
|
//# sourceMappingURL=code_block.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code_block.js","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAc,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,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AC,EACD,CAAC,qBAAqB,EAAE,cAAc,EAAE,wBAAwB,CAAC,CACpE,CAAC;IAEF,OAAO,CACH,MAAC,gBAAgB,kBACD,UAAU,uBACH,gBAAgB,sBACjB,gBAAgB,cACxB,UAAU,gBACR,SAAS,iBACR,UAAU,sBACL,eAAe,KAC7B,IAAI,aAEP,UAAU,IAAI,CACX,KAAC,MAAM,IACH,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EACjC,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,cAAc,EAC3B,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAK,GACd,CACL,EAED,KAAC,iBAAiB,IACd,eAAe,QACf,SAAS,QACT,QAAQ,EAAE,eAAe,EACzB,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,YAAY,EACvB,GAAG,EAAE,oBAAoB,YAExB,WAAW,GACI,EAEpB,eAAK,SAAS,EAAC,kCAAkC,aAC5C,gBAAgB,IAAI,KAAC,YAAY,IAAC,YAAY,QAAC,OAAO,EAAE,mBAAmB,YAAG,iBAAiB,IAAI,cAAc,GAAgB,EACjI,CAAC,cAAc,IAAI,KAAC,UAAU,IAAC,IAAI,EAAE,WAAW,GAAI,IACnD,EAEL,YAAY,IAAI,CACb,KAAC,kBAAkB,IACf,SAAS,EAAC,oBAAoB,EAC9B,QAAQ,EAAE,EAAE,GACd,CACL,IACe,CACvB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type MarginSpacingProps, type RegularBoxProps } from '../../box.js';
|
|
3
|
+
import { type RegularLinkProps } from '../../link.js';
|
|
4
|
+
import { type CodeBlockProps } from './code_block.js';
|
|
5
|
+
export type CodeBlockTabKey = 'cli' | 'http' | 'javascript' | 'mcp' | 'openapi' | 'python' | 'typescript';
|
|
6
|
+
type CodeBlockTabConfig = {
|
|
7
|
+
label: string;
|
|
8
|
+
language: string;
|
|
9
|
+
src: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const CODE_BLOCK_TAB_CATALOG: Record<CodeBlockTabKey, CodeBlockTabConfig>;
|
|
12
|
+
type SharedBoxProps = Omit<RegularBoxProps, 'as' | 'children' | 'onClick'> & MarginSpacingProps;
|
|
13
|
+
type SharedCodeBlockProps = Omit<CodeBlockProps, 'bashCommandsStart' | 'content' | 'language' | 'defaultTabKey' | 'onTabChange'>;
|
|
14
|
+
type SharedLinkProps = Pick<RegularLinkProps, 'to' | 'rel' | 'target'>;
|
|
15
|
+
export type CodeBlockTabProps = {
|
|
16
|
+
key: CodeBlockTabKey;
|
|
17
|
+
bashCommandsStart?: number[];
|
|
18
|
+
content: string;
|
|
19
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
20
|
+
} & Partial<SharedLinkProps>;
|
|
21
|
+
type CodeBlockWithTabsProps = SharedBoxProps & {
|
|
22
|
+
codeBlockProps: SharedCodeBlockProps;
|
|
23
|
+
currentTabKey: CodeBlockTabKey;
|
|
24
|
+
tabs: CodeBlockTabProps[];
|
|
25
|
+
};
|
|
26
|
+
export declare const CODE_BLOCK_WITH_TABS_CLASSNAMES: {
|
|
27
|
+
WRAPPER: string;
|
|
28
|
+
TABS: string;
|
|
29
|
+
TAB: string;
|
|
30
|
+
CONTENT: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const CodeBlockWithTabs: ({ className, codeBlockProps, currentTabKey, tabs, ...props }: CodeBlockWithTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=code_block_with_tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code_block_with_tabs.d.ts","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block_with_tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAO,KAAK,kBAAkB,EAAE,KAAK,eAAe,EAAE,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C,CAAC;AAwGF,eAAO,MAAM,iBAAiB,iEAAkE,sBAAsB,4CA+DrH,CAAC"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { theme } from '../../../design_system/theme.js';
|
|
5
|
+
import { useSharedUiDependencies } from '../../../ui_dependency_provider.js';
|
|
6
|
+
import { Box } from '../../box.js';
|
|
7
|
+
import { Link } from '../../link.js';
|
|
8
|
+
import { HeadingShared } from '../../text/heading_shared.js';
|
|
9
|
+
import { CodeBlock } from './code_block.js';
|
|
10
|
+
export const CODE_BLOCK_TAB_CATALOG = {
|
|
11
|
+
cli: {
|
|
12
|
+
label: 'CLI',
|
|
13
|
+
language: 'bash',
|
|
14
|
+
src: 'https://apify.com/img/icons/code.svg',
|
|
15
|
+
},
|
|
16
|
+
http: {
|
|
17
|
+
label: 'HTTP',
|
|
18
|
+
language: 'bash',
|
|
19
|
+
src: 'https://apify.com/img/icons/http.svg',
|
|
20
|
+
},
|
|
21
|
+
javascript: {
|
|
22
|
+
label: 'JavaScript',
|
|
23
|
+
language: 'javascript',
|
|
24
|
+
// TODO: duplicate icon from 'template-icons' to 'icons' folder on the web
|
|
25
|
+
src: 'https://apify.com/img/template-icons/javascript.svg',
|
|
26
|
+
},
|
|
27
|
+
mcp: {
|
|
28
|
+
label: 'MCP',
|
|
29
|
+
language: 'bash',
|
|
30
|
+
src: 'https://apify.com/img/icons/mcp.svg',
|
|
31
|
+
},
|
|
32
|
+
openapi: {
|
|
33
|
+
label: 'OpenAPI',
|
|
34
|
+
language: 'json',
|
|
35
|
+
src: 'https://apify.com/img/icons/openapi.svg',
|
|
36
|
+
},
|
|
37
|
+
python: {
|
|
38
|
+
label: 'Python',
|
|
39
|
+
language: 'python',
|
|
40
|
+
// TODO: duplicate icon from 'template-icons' to 'icons' folder on the web
|
|
41
|
+
src: 'https://apify.com/img/template-icons/python.svg',
|
|
42
|
+
},
|
|
43
|
+
typescript: {
|
|
44
|
+
label: 'TypeScript',
|
|
45
|
+
language: 'typescript',
|
|
46
|
+
// TODO: duplicate icon from 'template-icons' to 'icons' folder on the web
|
|
47
|
+
src: 'https://apify.com/img/template-icons/typescript.svg',
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
export const CODE_BLOCK_WITH_TABS_CLASSNAMES = {
|
|
51
|
+
WRAPPER: 'CodeBlockWithTabsWrapper',
|
|
52
|
+
TABS: 'CodeBlockWithTabsTabs',
|
|
53
|
+
TAB: 'CodeBlockWithTabsTab',
|
|
54
|
+
CONTENT: 'CodeBlockWithTabsContent',
|
|
55
|
+
};
|
|
56
|
+
const CodeBlockWithTabsWrapper = styled(Box) `
|
|
57
|
+
.${CODE_BLOCK_WITH_TABS_CLASSNAMES.TABS} {
|
|
58
|
+
min-width: 266px;
|
|
59
|
+
height: 72px;
|
|
60
|
+
padding-inline: ${theme.space.space8};
|
|
61
|
+
display: flex;
|
|
62
|
+
gap: ${theme.space.space4};
|
|
63
|
+
overflow-x: auto;
|
|
64
|
+
background-color: ${theme.color.neutral.backgroundSubtle};
|
|
65
|
+
border: 1px solid ${theme.color.neutral.border};
|
|
66
|
+
border-bottom: none;
|
|
67
|
+
border-top-right-radius: ${theme.radius.radius12};
|
|
68
|
+
border-top-left-radius: ${theme.radius.radius12};
|
|
69
|
+
position: relative;
|
|
70
|
+
|
|
71
|
+
& > [role="tabpanel"] {
|
|
72
|
+
position: sticky;
|
|
73
|
+
right: 0;
|
|
74
|
+
top: 0;
|
|
75
|
+
height: 100%;
|
|
76
|
+
width: 0;
|
|
77
|
+
|
|
78
|
+
&::after {
|
|
79
|
+
right: -${theme.space.space8};
|
|
80
|
+
height: 100%;
|
|
81
|
+
width: ${theme.space.space16};
|
|
82
|
+
background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, ${theme.color.neutral.backgroundSubtle} 100%);
|
|
83
|
+
content: ' ';
|
|
84
|
+
pointer-events: none;
|
|
85
|
+
position: absolute;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@media ${theme.device.tablet} {
|
|
90
|
+
height: 88px;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
gap: ${theme.space.space24};
|
|
93
|
+
padding-inline: ${theme.space.space24};
|
|
94
|
+
|
|
95
|
+
& > [role="tabpanel"]::after {
|
|
96
|
+
right: -${theme.space.space24};
|
|
97
|
+
width: ${theme.space.space32};
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.${CODE_BLOCK_WITH_TABS_CLASSNAMES.TAB} {
|
|
103
|
+
min-width: 64px;
|
|
104
|
+
position: relative;
|
|
105
|
+
padding: ${theme.space.space12} ${theme.space.space8};
|
|
106
|
+
color: ${theme.color.neutral.textMuted};
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
flex-shrink: 0;
|
|
110
|
+
align-items: center;
|
|
111
|
+
justify-content: flex-end;
|
|
112
|
+
gap: ${theme.space.space4};
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
|
|
115
|
+
img {
|
|
116
|
+
width: 20px;
|
|
117
|
+
height: 20px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
[role="tabpanel"] {
|
|
121
|
+
bottom: 0;
|
|
122
|
+
width: 100%;
|
|
123
|
+
height: 2px;
|
|
124
|
+
color: ${theme.color.neutral.text};
|
|
125
|
+
background-color: ${theme.color.primaryBlack.action};
|
|
126
|
+
border-radius: ${theme.radius.radiusFull};
|
|
127
|
+
display: none;
|
|
128
|
+
position: absolute;
|
|
129
|
+
z-index: 2;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&.selected {
|
|
133
|
+
color: ${theme.color.neutral.text};
|
|
134
|
+
|
|
135
|
+
[role="tabpanel"] {
|
|
136
|
+
display: block;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&:hover {
|
|
141
|
+
color: ${theme.color.neutral.text};
|
|
142
|
+
text-decoration: none;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.${CODE_BLOCK_WITH_TABS_CLASSNAMES.CONTENT} {
|
|
147
|
+
max-width: initial;
|
|
148
|
+
border-top-left-radius: 0;
|
|
149
|
+
border-top-right-radius: 0;
|
|
150
|
+
}
|
|
151
|
+
`;
|
|
152
|
+
const IMG_RESIZE = {
|
|
153
|
+
width: 20,
|
|
154
|
+
height: 20,
|
|
155
|
+
};
|
|
156
|
+
export const CodeBlockWithTabs = ({ className, codeBlockProps, currentTabKey, tabs, ...props }) => {
|
|
157
|
+
const { generateProxyImageUrl } = useSharedUiDependencies();
|
|
158
|
+
const currentTab = tabs.find((tab) => tab.key === currentTabKey) ?? tabs[0];
|
|
159
|
+
return (_jsxs(CodeBlockWithTabsWrapper, { className: clsx(CODE_BLOCK_WITH_TABS_CLASSNAMES.WRAPPER, className), ...props, children: [_jsxs("div", { className: CODE_BLOCK_WITH_TABS_CLASSNAMES.TABS, children: [tabs.map((tab) => {
|
|
160
|
+
const { label, src } = CODE_BLOCK_TAB_CATALOG[tab.key];
|
|
161
|
+
const selected = tab.key === currentTab?.key;
|
|
162
|
+
const commonProps = {
|
|
163
|
+
key: tab.key,
|
|
164
|
+
className: clsx(CODE_BLOCK_WITH_TABS_CLASSNAMES.TAB, { selected }),
|
|
165
|
+
'data-test': `code-block-tab-${tab.key}`,
|
|
166
|
+
onClick: tab.onClick,
|
|
167
|
+
};
|
|
168
|
+
const children = (_jsxs(_Fragment, { children: [_jsx("img", { src: generateProxyImageUrl?.(src, { resize: IMG_RESIZE }) ?? src, alt: label }), _jsx(HeadingShared, { type: "titleS", as: "p", children: label }), _jsx("div", { role: "tabpanel" })] }));
|
|
169
|
+
// if the tab has a 'to' prop, render a Link component
|
|
170
|
+
if (tab.to) {
|
|
171
|
+
return (_jsx(Link, { ...commonProps, to: tab.to, rel: tab.rel, target: tab.target, children: children }));
|
|
172
|
+
}
|
|
173
|
+
return (_jsx("div", { ...commonProps, role: "button", children: children }));
|
|
174
|
+
}), _jsx("div", { role: "tabpanel" })] }), _jsx(CodeBlock, { bashCommandsStart: currentTab?.bashCommandsStart, content: currentTab?.content ?? '', language: CODE_BLOCK_TAB_CATALOG[currentTab?.key]?.language, className: CODE_BLOCK_WITH_TABS_CLASSNAMES.CONTENT, hideBashHeader: true, ...codeBlockProps })] }));
|
|
175
|
+
};
|
|
176
|
+
//# sourceMappingURL=code_block_with_tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code_block_with_tabs.js","sourceRoot":"","sources":["../../../../../src/components/code/code_block/code_block_with_tabs.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,GAAG,EAAiD,MAAM,cAAc,CAAC;AAClF,OAAO,EAAE,IAAI,EAAyB,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAuB,MAAM,iBAAiB,CAAC;AASjE,MAAM,CAAC,MAAM,sBAAsB,GAAgD;IAC/E,GAAG,EAAE;QACD,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,MAAM;QAChB,GAAG,EAAE,sCAAsC;KAC9C;IACD,IAAI,EAAE;QACF,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,MAAM;QAChB,GAAG,EAAE,sCAAsC;KAC9C;IACD,UAAU,EAAE;QACR,KAAK,EAAE,YAAY;QACnB,QAAQ,EAAE,YAAY;QACtB,0EAA0E;QAC1E,GAAG,EAAE,qDAAqD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,UAAU,EAAE,GAAG,CAAC,EAAE,QAAQ,EAC3D,SAAS,EAAE,+BAA+B,CAAC,OAAO,EAClD,cAAc,WACV,cAAc,GACpB,IACqB,CAC9B,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/code/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/code/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/code/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/code/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC"}
|