@apify/ui-library 1.171.0 → 1.171.1-uilibraryversion2candida-85b55e.71
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/README.md +1 -1
- package/dist/components/code/code_block/code_block.d.ts +1 -3
- package/dist/components/code/code_block/code_block.d.ts.map +1 -1
- package/dist/components/code/code_block/code_block.js +1 -7
- package/dist/components/code/code_block/code_block.styled.d.ts +0 -1
- package/dist/components/code/code_block/code_block.styled.d.ts.map +1 -1
- package/dist/components/code/code_block/code_block.styled.js +0 -10
- package/dist/components/code/inline_code/inline_code.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/simple_markdown/simple_markdown.d.ts.map +1 -1
- package/dist/components/simple_markdown/simple_markdown.js +1 -1
- package/dist/components/simple_markdown/simple_markdown_components.d.ts +5 -2
- package/dist/components/simple_markdown/simple_markdown_components.d.ts.map +1 -1
- package/dist/components/simple_markdown/simple_markdown_components.js +2 -3
- package/dist/components/tag/tag.d.ts +1 -1
- package/dist/components/tag/tag.d.ts.map +1 -1
- package/dist/components/text/index.d.ts +0 -1
- package/dist/components/text/index.d.ts.map +1 -1
- package/dist/components/text/text_content.d.ts +1 -1
- package/dist/components/text/text_content.js +1 -1
- package/dist/files_hash_at_build.txt +1 -1
- package/dist/index.js +1 -5
- package/dist/src/components/code/code_block/code_block.d.ts +1 -3
- package/dist/src/components/code/code_block/code_block.d.ts.map +1 -1
- package/dist/src/components/code/code_block/code_block.js +2 -3
- package/dist/src/components/code/code_block/code_block.js.map +1 -1
- package/dist/src/components/code/code_block/code_block.styled.d.ts +0 -1
- package/dist/src/components/code/code_block/code_block.styled.d.ts.map +1 -1
- package/dist/src/components/code/code_block/code_block.styled.js +0 -10
- package/dist/src/components/code/code_block/code_block.styled.js.map +1 -1
- package/dist/src/components/code/inline_code/inline_code.d.ts.map +1 -1
- package/dist/src/components/code/inline_code/inline_code.js +0 -1
- package/dist/src/components/code/inline_code/inline_code.js.map +1 -1
- package/dist/src/components/index.d.ts +0 -3
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +0 -3
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/simple_markdown/simple_markdown.d.ts.map +1 -1
- package/dist/src/components/simple_markdown/simple_markdown.js +2 -1
- package/dist/src/components/simple_markdown/simple_markdown.js.map +1 -1
- package/dist/src/components/simple_markdown/simple_markdown_components.d.ts +5 -4
- package/dist/src/components/simple_markdown/simple_markdown_components.d.ts.map +1 -1
- package/dist/src/components/simple_markdown/simple_markdown_components.js +4 -4
- package/dist/src/components/simple_markdown/simple_markdown_components.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +1 -1
- package/dist/src/components/tag/tag.d.ts.map +1 -1
- package/dist/src/components/text/index.d.ts +0 -1
- package/dist/src/components/text/index.d.ts.map +1 -1
- package/dist/src/components/text/index.js +0 -1
- package/dist/src/components/text/index.js.map +1 -1
- package/dist/src/components/text/text_content.d.ts +1 -1
- package/dist/src/components/text/text_content.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/components/code/code_block/code_block.stories.jsx +6 -13
- package/src/components/code/code_block/code_block.styled.tsx +0 -11
- package/src/components/code/code_block/code_block.tsx +0 -8
- package/src/components/code/inline_code/inline_code.tsx +0 -1
- package/src/components/index.ts +0 -3
- package/src/components/simple_markdown/simple_markdown.tsx +2 -1
- package/src/components/simple_markdown/simple_markdown_components.tsx +8 -14
- package/src/components/skeleton/skeleton.stories.tsx +4 -0
- package/src/components/tag/tag.tsx +1 -1
- package/src/components/text/index.ts +0 -1
- package/src/components/text/text_content.tsx +1 -1
- package/dist/components/banner/banner.d.ts +0 -11
- package/dist/components/banner/banner.d.ts.map +0 -1
- package/dist/components/banner/banner.js +0 -76
- package/dist/components/banner/index.d.ts +0 -2
- package/dist/components/banner/index.d.ts.map +0 -1
- package/dist/components/chip/chip.d.ts +0 -55
- package/dist/components/chip/chip.d.ts.map +0 -1
- package/dist/components/chip/chip.js +0 -144
- package/dist/components/chip/index.d.ts +0 -2
- package/dist/components/chip/index.d.ts.map +0 -1
- package/dist/components/color_wheel_gradient/color_wheel_gradient.d.ts +0 -9
- package/dist/components/color_wheel_gradient/color_wheel_gradient.d.ts.map +0 -1
- package/dist/components/color_wheel_gradient/color_wheel_gradient.js +0 -27
- package/dist/components/color_wheel_gradient/index.d.ts +0 -2
- package/dist/components/color_wheel_gradient/index.d.ts.map +0 -1
- package/dist/src/components/banner/banner.d.ts +0 -11
- package/dist/src/components/banner/banner.d.ts.map +0 -1
- package/dist/src/components/banner/banner.js +0 -70
- package/dist/src/components/banner/banner.js.map +0 -1
- package/dist/src/components/banner/index.d.ts +0 -2
- package/dist/src/components/banner/index.d.ts.map +0 -1
- package/dist/src/components/banner/index.js +0 -2
- package/dist/src/components/banner/index.js.map +0 -1
- package/dist/src/components/chip/chip.d.ts +0 -56
- package/dist/src/components/chip/chip.d.ts.map +0 -1
- package/dist/src/components/chip/chip.js +0 -123
- package/dist/src/components/chip/chip.js.map +0 -1
- package/dist/src/components/chip/index.d.ts +0 -2
- package/dist/src/components/chip/index.d.ts.map +0 -1
- package/dist/src/components/chip/index.js +0 -2
- package/dist/src/components/chip/index.js.map +0 -1
- package/dist/src/components/color_wheel_gradient/color_wheel_gradient.d.ts +0 -9
- package/dist/src/components/color_wheel_gradient/color_wheel_gradient.d.ts.map +0 -1
- package/dist/src/components/color_wheel_gradient/color_wheel_gradient.js +0 -25
- package/dist/src/components/color_wheel_gradient/color_wheel_gradient.js.map +0 -1
- package/dist/src/components/color_wheel_gradient/index.d.ts +0 -2
- package/dist/src/components/color_wheel_gradient/index.d.ts.map +0 -1
- package/dist/src/components/color_wheel_gradient/index.js +0 -2
- package/dist/src/components/color_wheel_gradient/index.js.map +0 -1
- package/src/components/banner/banner.stories.tsx +0 -238
- package/src/components/banner/banner.tsx +0 -91
- package/src/components/banner/index.ts +0 -1
- package/src/components/chip/chip.stories.tsx +0 -311
- package/src/components/chip/chip.tsx +0 -167
- package/src/components/chip/index.ts +0 -1
- package/src/components/color_wheel_gradient/color_wheel_gradient.stories.tsx +0 -152
- package/src/components/color_wheel_gradient/color_wheel_gradient.tsx +0 -33
- package/src/components/color_wheel_gradient/index.ts +0 -1
- package/src/components/text/text_content.stories.tsx +0 -194
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryContext, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import type { ElementType } from 'react';
|
|
3
|
-
|
|
4
|
-
import { ColorWheelGradient, type ColorWheelGradientProps } from './color_wheel_gradient';
|
|
5
|
-
|
|
6
|
-
const Wrapper = ({ children }: { children: React.ReactNode }) => (
|
|
7
|
-
<div
|
|
8
|
-
style={{
|
|
9
|
-
position: 'relative',
|
|
10
|
-
width: '400px',
|
|
11
|
-
height: '400px',
|
|
12
|
-
backgroundColor: '#f5f5f5',
|
|
13
|
-
border: '1px solid #ddd',
|
|
14
|
-
borderRadius: '8px',
|
|
15
|
-
overflow: 'hidden',
|
|
16
|
-
}}
|
|
17
|
-
>
|
|
18
|
-
<style>
|
|
19
|
-
{`
|
|
20
|
-
@keyframes rotate {
|
|
21
|
-
from { transform: rotate(0deg); }
|
|
22
|
-
to { transform: rotate(360deg); }
|
|
23
|
-
}
|
|
24
|
-
`}
|
|
25
|
-
</style>
|
|
26
|
-
{children}
|
|
27
|
-
</div>
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
// oxlint-disable-next-line local/storybook-figma-design-url -- decorative gradient, no Figma counterpart
|
|
31
|
-
export default {
|
|
32
|
-
title: 'UI-Library/ColorWheelGradient',
|
|
33
|
-
tags: ['deprecated'],
|
|
34
|
-
component: ColorWheelGradient,
|
|
35
|
-
decorators: [
|
|
36
|
-
(Story: ElementType, _context: StoryContext) => (
|
|
37
|
-
<Wrapper>
|
|
38
|
-
<Story />
|
|
39
|
-
</Wrapper>
|
|
40
|
-
),
|
|
41
|
-
],
|
|
42
|
-
argTypes: {
|
|
43
|
-
translateX: {
|
|
44
|
-
control: 'number',
|
|
45
|
-
},
|
|
46
|
-
translateY: {
|
|
47
|
-
control: 'number',
|
|
48
|
-
},
|
|
49
|
-
rotation: {
|
|
50
|
-
control: 'number',
|
|
51
|
-
},
|
|
52
|
-
radius: {
|
|
53
|
-
control: 'number',
|
|
54
|
-
},
|
|
55
|
-
blurSize: {
|
|
56
|
-
control: 'number',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
} as Meta<ColorWheelGradientProps>;
|
|
60
|
-
|
|
61
|
-
type Story = StoryObj<ColorWheelGradientProps>;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Default color wheel gradient with standard settings
|
|
65
|
-
*/
|
|
66
|
-
export const Default: Story = {
|
|
67
|
-
args: {
|
|
68
|
-
radius: 200,
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Small color wheel gradient
|
|
74
|
-
*/
|
|
75
|
-
export const Small: Story = {
|
|
76
|
-
args: {
|
|
77
|
-
radius: 100,
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Medium color wheel gradient
|
|
83
|
-
*/
|
|
84
|
-
export const Medium: Story = {
|
|
85
|
-
args: {
|
|
86
|
-
radius: 150,
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Large color wheel gradient
|
|
92
|
-
*/
|
|
93
|
-
export const Large: Story = {
|
|
94
|
-
args: {
|
|
95
|
-
radius: 250,
|
|
96
|
-
},
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Color wheel gradient with custom translation in both directions
|
|
101
|
-
*/
|
|
102
|
-
export const Translated: Story = {
|
|
103
|
-
args: {
|
|
104
|
-
radius: 150,
|
|
105
|
-
translateX: 30,
|
|
106
|
-
translateY: -30,
|
|
107
|
-
},
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Color wheel gradient with minimal blur
|
|
112
|
-
*/
|
|
113
|
-
export const MinimalBlur: Story = {
|
|
114
|
-
args: {
|
|
115
|
-
radius: 200,
|
|
116
|
-
blurSize: 10,
|
|
117
|
-
},
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Color wheel gradient with no blur (sharp edges)
|
|
122
|
-
*/
|
|
123
|
-
export const NoBlur: Story = {
|
|
124
|
-
args: {
|
|
125
|
-
radius: 200,
|
|
126
|
-
blurSize: 0,
|
|
127
|
-
},
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Animated rotating color wheel gradient
|
|
132
|
-
*/
|
|
133
|
-
export const AnimatedRotation: Story = {
|
|
134
|
-
args: {
|
|
135
|
-
radius: 180,
|
|
136
|
-
},
|
|
137
|
-
render: (args) => (
|
|
138
|
-
<ColorWheelGradient
|
|
139
|
-
{...args}
|
|
140
|
-
style={{
|
|
141
|
-
animation: 'rotate 4s linear infinite',
|
|
142
|
-
}}
|
|
143
|
-
/>
|
|
144
|
-
),
|
|
145
|
-
parameters: {
|
|
146
|
-
docs: {
|
|
147
|
-
description: {
|
|
148
|
-
story: 'This story demonstrates a continuously rotating color wheel gradient using CSS animation.',
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export interface ColorWheelGradientProps {
|
|
4
|
-
translateX?: number;
|
|
5
|
-
translateY?: number;
|
|
6
|
-
rotation?: number;
|
|
7
|
-
radius?: number;
|
|
8
|
-
blurSize?: number;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const ColorWheelGradient = styled.div<ColorWheelGradientProps>`
|
|
12
|
-
${({ radius, rotation = 0, blurSize = 40, translateX = 0, translateY = 0 }) => `
|
|
13
|
-
z-index: 1;
|
|
14
|
-
position: absolute;
|
|
15
|
-
width: ${radius ? `${radius}px` : 'auto'};
|
|
16
|
-
height: ${radius ? `${radius}px` : 'auto'};
|
|
17
|
-
transform-origin: center;
|
|
18
|
-
transform: translate(${translateX}px, ${translateY}px) rotate(${rotation}deg);
|
|
19
|
-
|
|
20
|
-
opacity: 0.30;
|
|
21
|
-
background: conic-gradient(
|
|
22
|
-
rgba(93, 133, 225, 0.99) 0deg,
|
|
23
|
-
rgba(106, 20, 222, 0.99) 69deg,
|
|
24
|
-
rgba(228, 68, 103, 0.99) 150deg,
|
|
25
|
-
rgba(250, 129, 54, 0.99) 221deg,
|
|
26
|
-
rgba(240, 178, 27, 0.99) 287deg,
|
|
27
|
-
rgba(18, 150, 111, 0.99) 360deg
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
border-radius: 50%;
|
|
31
|
-
filter: blur(${blurSize}px)
|
|
32
|
-
`}
|
|
33
|
-
`;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './color_wheel_gradient';
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
import { type ContentTextProps, TextContent } from './text_content';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Design Tokens/Typography/TextContent',
|
|
8
|
-
component: TextContent,
|
|
9
|
-
tags: ['deprecated'],
|
|
10
|
-
parameters: {
|
|
11
|
-
docs: {
|
|
12
|
-
description: {
|
|
13
|
-
component:
|
|
14
|
-
'⚠️ **Internal Component**: This component is specifically designed for use within the SimpleMarkdown component.' +
|
|
15
|
-
' It provides content-specific text styles for markdown rendering (paragraphs and code snippets).' +
|
|
16
|
-
' For general text usage, use TextShared or TextMarketing instead.',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
argTypes: {
|
|
21
|
-
type: {
|
|
22
|
-
control: { type: 'select' },
|
|
23
|
-
options: ['paragraph', 'snippet'],
|
|
24
|
-
description: 'Text type: paragraph for regular markdown text, snippet for inline code',
|
|
25
|
-
},
|
|
26
|
-
weight: {
|
|
27
|
-
control: { type: 'select' },
|
|
28
|
-
options: ['normal', 'bold'],
|
|
29
|
-
description: 'Font weight',
|
|
30
|
-
},
|
|
31
|
-
as: {
|
|
32
|
-
control: 'text',
|
|
33
|
-
description: 'The HTML element to render as (default: p)',
|
|
34
|
-
},
|
|
35
|
-
children: {
|
|
36
|
-
control: 'text',
|
|
37
|
-
description: 'The text content',
|
|
38
|
-
},
|
|
39
|
-
color: {
|
|
40
|
-
control: 'color',
|
|
41
|
-
description: 'Custom color for the text',
|
|
42
|
-
},
|
|
43
|
-
align: {
|
|
44
|
-
control: { type: 'select' },
|
|
45
|
-
options: ['left', 'center', 'right'],
|
|
46
|
-
description: 'Text alignment',
|
|
47
|
-
},
|
|
48
|
-
italic: {
|
|
49
|
-
control: 'boolean',
|
|
50
|
-
description: 'Apply italic style',
|
|
51
|
-
},
|
|
52
|
-
uppercase: {
|
|
53
|
-
control: 'boolean',
|
|
54
|
-
description: 'Transform text to uppercase',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
} as Meta<ContentTextProps>;
|
|
58
|
-
|
|
59
|
-
type Story = StoryObj<ContentTextProps>;
|
|
60
|
-
|
|
61
|
-
const StoryWrapper = styled.div`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
gap: 1.5rem;
|
|
65
|
-
padding: 2rem;
|
|
66
|
-
max-width: 800px;
|
|
67
|
-
`;
|
|
68
|
-
|
|
69
|
-
const TextShowcase = styled.div`
|
|
70
|
-
padding: 1rem;
|
|
71
|
-
background: #f5f5f5;
|
|
72
|
-
border-radius: 4px;
|
|
73
|
-
|
|
74
|
-
small {
|
|
75
|
-
display: block;
|
|
76
|
-
color: #666;
|
|
77
|
-
font-size: 0.75rem;
|
|
78
|
-
margin-bottom: 0.5rem;
|
|
79
|
-
font-family: monospace;
|
|
80
|
-
}
|
|
81
|
-
`;
|
|
82
|
-
|
|
83
|
-
const WarningBanner = styled.div`
|
|
84
|
-
background: #fff3cd;
|
|
85
|
-
border: 1px solid #ffc107;
|
|
86
|
-
border-radius: 4px;
|
|
87
|
-
padding: 1rem;
|
|
88
|
-
margin-bottom: 1.5rem;
|
|
89
|
-
|
|
90
|
-
strong {
|
|
91
|
-
color: #856404;
|
|
92
|
-
display: block;
|
|
93
|
-
margin-bottom: 0.5rem;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
p {
|
|
97
|
-
color: #856404;
|
|
98
|
-
margin: 0;
|
|
99
|
-
font-size: 0.875rem;
|
|
100
|
-
}
|
|
101
|
-
`;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Default content text (used by SimpleMarkdown)
|
|
105
|
-
*
|
|
106
|
-
* ⚠️ This component is for internal use by SimpleMarkdown only
|
|
107
|
-
*/
|
|
108
|
-
export const Default: Story = {
|
|
109
|
-
args: {
|
|
110
|
-
type: 'paragraph',
|
|
111
|
-
weight: 'normal',
|
|
112
|
-
children: 'Content text for markdown rendering.',
|
|
113
|
-
},
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* All content text variants as used in SimpleMarkdown component
|
|
118
|
-
*
|
|
119
|
-
* ⚠️ These text styles are specifically designed for markdown content rendering.
|
|
120
|
-
* For general application text, use TextShared or TextMarketing.
|
|
121
|
-
*/
|
|
122
|
-
export const AllVariants: Story = {
|
|
123
|
-
render: () => (
|
|
124
|
-
<StoryWrapper>
|
|
125
|
-
<WarningBanner>
|
|
126
|
-
<strong>⚠️ Internal Component</strong>
|
|
127
|
-
<p>
|
|
128
|
-
TextContent is used exclusively by the SimpleMarkdown component for rendering markdown paragraphs
|
|
129
|
-
and inline code snippets. For general text usage in your application, use TextShared or
|
|
130
|
-
TextMarketing components instead.
|
|
131
|
-
</p>
|
|
132
|
-
</WarningBanner>
|
|
133
|
-
|
|
134
|
-
<div>
|
|
135
|
-
<h3 style={{ marginTop: 0, marginBottom: '1rem' }}>Paragraph Type</h3>
|
|
136
|
-
<p style={{ fontSize: '0.875rem', color: '#666', marginBottom: '1rem' }}>
|
|
137
|
-
Used for regular text content in markdown documents
|
|
138
|
-
</p>
|
|
139
|
-
|
|
140
|
-
<TextShowcase>
|
|
141
|
-
<small>type=paragraph, weight=normal</small>
|
|
142
|
-
<TextContent type="paragraph" weight="normal">
|
|
143
|
-
This is a paragraph with normal weight, used for standard markdown text content. It provides
|
|
144
|
-
optimal readability for documentation and readme files.
|
|
145
|
-
</TextContent>
|
|
146
|
-
</TextShowcase>
|
|
147
|
-
|
|
148
|
-
<TextShowcase>
|
|
149
|
-
<small>type=paragraph, weight=bold</small>
|
|
150
|
-
<TextContent type="paragraph" weight="bold">
|
|
151
|
-
This is a paragraph with bold weight, used for **strong text** in markdown. It creates emphasis
|
|
152
|
-
for important information within the content.
|
|
153
|
-
</TextContent>
|
|
154
|
-
</TextShowcase>
|
|
155
|
-
</div>
|
|
156
|
-
|
|
157
|
-
<div>
|
|
158
|
-
<h3 style={{ marginBottom: '1rem' }}>Snippet Type</h3>
|
|
159
|
-
<p style={{ fontSize: '0.875rem', color: '#666', marginBottom: '1rem' }}>
|
|
160
|
-
Used for inline code within markdown text (e.g., `code`)
|
|
161
|
-
</p>
|
|
162
|
-
|
|
163
|
-
<TextShowcase>
|
|
164
|
-
<small>type=snippet, weight=normal</small>
|
|
165
|
-
<TextContent type="snippet" weight="normal">
|
|
166
|
-
const inlineCode = "monospace text for code snippets";
|
|
167
|
-
</TextContent>
|
|
168
|
-
</TextShowcase>
|
|
169
|
-
|
|
170
|
-
<TextShowcase>
|
|
171
|
-
<small>type=snippet, weight=bold</small>
|
|
172
|
-
<TextContent type="snippet" weight="bold">
|
|
173
|
-
function boldCodeSnippet() { return "emphasized code"; }
|
|
174
|
-
</TextContent>
|
|
175
|
-
</TextShowcase>
|
|
176
|
-
</div>
|
|
177
|
-
|
|
178
|
-
<div style={{ marginTop: '2rem', padding: '1.5rem', border: '1px solid #e0e0e0', borderRadius: '4px' }}>
|
|
179
|
-
<h4 style={{ marginTop: 0 }}>Example in Markdown Context</h4>
|
|
180
|
-
<TextContent type="paragraph" weight="normal" mb="space8">
|
|
181
|
-
The SimpleMarkdown component uses these styles to render markdown. For example, when you write code
|
|
182
|
-
like{' '}
|
|
183
|
-
<TextContent type="snippet" weight="normal" as="span">
|
|
184
|
-
npm install
|
|
185
|
-
</TextContent>{' '}
|
|
186
|
-
inline, it uses the snippet type.
|
|
187
|
-
</TextContent>
|
|
188
|
-
<TextContent type="paragraph" weight="bold">
|
|
189
|
-
Bold text in markdown is rendered using paragraph with bold weight.
|
|
190
|
-
</TextContent>
|
|
191
|
-
</div>
|
|
192
|
-
</StoryWrapper>
|
|
193
|
-
),
|
|
194
|
-
};
|