@storybook/components 5.2.1 → 5.2.5
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/html.js +1 -1
- package/dist/typography/DocumentFormatting.js +2 -1
- package/dist/typography/DocumentWrapper.js +2 -2
- package/package.json +11 -5
- package/src/ActionBar/ActionBar.stories.tsx +0 -41
- package/src/ActionBar/ActionBar.tsx +0 -75
- package/src/Badge/Badge.stories.tsx +0 -11
- package/src/Badge/Badge.tsx +0 -68
- package/src/Button/Button.stories.tsx +0 -53
- package/src/Button/Button.tsx +0 -256
- package/src/ScrollArea/ScrollArea.stories.tsx +0 -85
- package/src/ScrollArea/ScrollArea.tsx +0 -62
- package/src/ScrollArea/ScrollAreaStyles.tsx +0 -166
- package/src/addon-panel/addon-panel.tsx +0 -33
- package/src/bar/bar.tsx +0 -93
- package/src/bar/button.ts +0 -89
- package/src/bar/separator.tsx +0 -39
- package/src/blocks/BlockBackgroundStyles.tsx +0 -9
- package/src/blocks/ColorPalette.stories.tsx +0 -29
- package/src/blocks/ColorPalette.tsx +0 -168
- package/src/blocks/Description.stories.tsx +0 -15
- package/src/blocks/Description.tsx +0 -18
- package/src/blocks/DocsPage.stories.tsx +0 -67
- package/src/blocks/DocsPage.tsx +0 -81
- package/src/blocks/DocsPageExampleCaption.md +0 -93
- package/src/blocks/DocsPageExampleCaption.mdx +0 -93
- package/src/blocks/EmptyBlock.stories.tsx +0 -9
- package/src/blocks/EmptyBlock.tsx +0 -23
- package/src/blocks/IFrame.tsx +0 -60
- package/src/blocks/IconGallery.stories.tsx +0 -32
- package/src/blocks/IconGallery.tsx +0 -72
- package/src/blocks/Preview.stories.tsx +0 -96
- package/src/blocks/Preview.tsx +0 -162
- package/src/blocks/PropsTable/PropDef.ts +0 -7
- package/src/blocks/PropsTable/PropRow.stories.tsx +0 -113
- package/src/blocks/PropsTable/PropRow.tsx +0 -102
- package/src/blocks/PropsTable/PropsTable.stories.tsx +0 -14
- package/src/blocks/PropsTable/PropsTable.tsx +0 -169
- package/src/blocks/Source.stories.tsx +0 -36
- package/src/blocks/Source.tsx +0 -72
- package/src/blocks/Story.stories.tsx +0 -25
- package/src/blocks/Story.tsx +0 -115
- package/src/blocks/Toolbar.tsx +0 -85
- package/src/blocks/Typeset.stories.tsx +0 -16
- package/src/blocks/Typeset.tsx +0 -68
- package/src/blocks/ZoomContext.tsx +0 -5
- package/src/blocks/index.ts +0 -10
- package/src/brand/StorybookIcon.stories.tsx +0 -6
- package/src/brand/StorybookIcon.tsx +0 -26
- package/src/brand/StorybookLogo.stories.tsx +0 -10
- package/src/brand/StorybookLogo.tsx +0 -33
- package/src/form/field/field.tsx +0 -42
- package/src/form/form.stories.tsx +0 -133
- package/src/form/index.tsx +0 -18
- package/src/form/input/input.tsx +0 -178
- package/src/html.tsx +0 -12
- package/src/icon/icon.stories.tsx +0 -77
- package/src/icon/icon.tsx +0 -22
- package/src/icon/icons.tsx +0 -310
- package/src/icon/svg.tsx +0 -24
- package/src/index.ts +0 -37
- package/src/placeholder/placeholder.stories.tsx +0 -24
- package/src/placeholder/placeholder.tsx +0 -25
- package/src/spaced/Spaced.stories.tsx +0 -72
- package/src/spaced/Spaced.tsx +0 -69
- package/src/syntaxhighlighter/formatter.test.js +0 -90
- package/src/syntaxhighlighter/formatter.ts +0 -26
- package/src/syntaxhighlighter/syntaxhighlighter.stories.tsx +0 -136
- package/src/syntaxhighlighter/syntaxhighlighter.tsx +0 -165
- package/src/tabs/tabs.stories.tsx +0 -207
- package/src/tabs/tabs.tsx +0 -252
- package/src/tooltip/ListItem.stories.tsx +0 -35
- package/src/tooltip/ListItem.tsx +0 -245
- package/src/tooltip/Tooltip.stories.tsx +0 -42
- package/src/tooltip/Tooltip.tsx +0 -146
- package/src/tooltip/TooltipLinkList.stories.tsx +0 -52
- package/src/tooltip/TooltipLinkList.tsx +0 -49
- package/src/tooltip/TooltipMessage.stories.tsx +0 -37
- package/src/tooltip/TooltipMessage.tsx +0 -67
- package/src/tooltip/TooltipNote.stories.tsx +0 -15
- package/src/tooltip/TooltipNote.tsx +0 -25
- package/src/tooltip/WithTooltip.stories.tsx +0 -85
- package/src/tooltip/WithTooltip.tsx +0 -159
- package/src/typings.d.ts +0 -4
- package/src/typography/DocumentFormatting.tsx +0 -355
- package/src/typography/DocumentFormattingSample.md +0 -127
- package/src/typography/DocumentWrapper.stories.tsx +0 -190
- package/src/typography/DocumentWrapper.tsx +0 -441
- package/src/typography/link/link.stories.tsx +0 -67
- package/src/typography/link/link.test.tsx +0 -108
- package/src/typography/link/link.tsx +0 -223
- package/src/typography/typography.stories.tsx +0 -111
- package/src/typography/withReset.tsx +0 -12
- package/tsconfig.json +0 -18
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import React, { Fragment } from 'react';
|
|
2
|
-
import { styled } from '@storybook/theming';
|
|
3
|
-
import { transparentize } from 'polished';
|
|
4
|
-
|
|
5
|
-
import { getBlockBackgroundStyle } from './BlockBackgroundStyles';
|
|
6
|
-
import { ResetWrapper } from '../typography/DocumentFormatting';
|
|
7
|
-
|
|
8
|
-
const ItemTitle = styled.div<{}>(({ theme }) => ({
|
|
9
|
-
fontWeight: theme.typography.weight.bold,
|
|
10
|
-
color: theme.color.defaultText,
|
|
11
|
-
}));
|
|
12
|
-
|
|
13
|
-
const ItemSubtitle = styled.div<{}>(({ theme }) => ({
|
|
14
|
-
color:
|
|
15
|
-
theme.base === 'light'
|
|
16
|
-
? transparentize(0.2, theme.color.defaultText)
|
|
17
|
-
: transparentize(0.6, theme.color.defaultText),
|
|
18
|
-
}));
|
|
19
|
-
|
|
20
|
-
const ItemDescription = styled.div({
|
|
21
|
-
flex: '0 0 30%',
|
|
22
|
-
lineHeight: '20px',
|
|
23
|
-
marginTop: 5,
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
const SwatchLabel = styled.div<{}>(({ theme }) => ({
|
|
27
|
-
flex: 1,
|
|
28
|
-
textAlign: 'center',
|
|
29
|
-
fontFamily: theme.typography.fonts.mono,
|
|
30
|
-
fontSize: theme.typography.size.s1,
|
|
31
|
-
lineHeight: 1,
|
|
32
|
-
overflow: 'hidden',
|
|
33
|
-
color:
|
|
34
|
-
theme.base === 'light'
|
|
35
|
-
? transparentize(0.4, theme.color.defaultText)
|
|
36
|
-
: transparentize(0.6, theme.color.defaultText),
|
|
37
|
-
|
|
38
|
-
'> div': {
|
|
39
|
-
display: 'inline-block',
|
|
40
|
-
overflow: 'hidden',
|
|
41
|
-
maxWidth: '100%',
|
|
42
|
-
},
|
|
43
|
-
}));
|
|
44
|
-
|
|
45
|
-
const SwatchLabels = styled.div({
|
|
46
|
-
display: 'flex',
|
|
47
|
-
flexDirection: 'row',
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
const Swatch = styled.div({
|
|
51
|
-
flex: 1,
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
const SwatchColors = styled.div<{}>(({ theme }) => ({
|
|
55
|
-
...getBlockBackgroundStyle(theme),
|
|
56
|
-
display: 'flex',
|
|
57
|
-
flexDirection: 'row',
|
|
58
|
-
height: 50,
|
|
59
|
-
marginBottom: 5,
|
|
60
|
-
overflow: 'hidden',
|
|
61
|
-
}));
|
|
62
|
-
|
|
63
|
-
const SwatchSpecimen = styled.div({
|
|
64
|
-
display: 'flex',
|
|
65
|
-
flexDirection: 'column',
|
|
66
|
-
flex: 1,
|
|
67
|
-
position: 'relative',
|
|
68
|
-
marginBottom: 30,
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
const Swatches = styled.div({
|
|
72
|
-
flex: 1,
|
|
73
|
-
display: 'flex',
|
|
74
|
-
flexDirection: 'row',
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
const Item = styled.div({
|
|
78
|
-
display: 'flex',
|
|
79
|
-
alignItems: 'flex-start',
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
const ListName = styled.div({
|
|
83
|
-
flex: '0 0 30%',
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
const ListSwatches = styled.div({
|
|
87
|
-
flex: 1,
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
const ListHeading = styled.div<{}>(({ theme }) => ({
|
|
91
|
-
display: 'flex',
|
|
92
|
-
flexDirection: 'row',
|
|
93
|
-
alignItems: 'center',
|
|
94
|
-
paddingBottom: 20,
|
|
95
|
-
fontWeight: theme.typography.weight.bold,
|
|
96
|
-
color:
|
|
97
|
-
theme.base === 'light'
|
|
98
|
-
? transparentize(0.4, theme.color.defaultText)
|
|
99
|
-
: transparentize(0.6, theme.color.defaultText),
|
|
100
|
-
}));
|
|
101
|
-
|
|
102
|
-
const List = styled.div<{}>(({ theme }) => ({
|
|
103
|
-
fontSize: theme.typography.size.s2,
|
|
104
|
-
lineHeight: `20px`,
|
|
105
|
-
|
|
106
|
-
display: 'flex',
|
|
107
|
-
flexDirection: 'column',
|
|
108
|
-
}));
|
|
109
|
-
|
|
110
|
-
interface ColorProps {
|
|
111
|
-
title: string;
|
|
112
|
-
subtitle: string;
|
|
113
|
-
colors: string[];
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* A single color row your styleguide showing title, subtitle and one or more colors, used
|
|
118
|
-
* as a child of `ColorPalette`.
|
|
119
|
-
*/
|
|
120
|
-
export const ColorItem: React.FunctionComponent<ColorProps> = ({ title, subtitle, colors }) => {
|
|
121
|
-
return (
|
|
122
|
-
<Item>
|
|
123
|
-
<ItemDescription>
|
|
124
|
-
<ItemTitle>{title}</ItemTitle>
|
|
125
|
-
<ItemSubtitle>{subtitle}</ItemSubtitle>
|
|
126
|
-
</ItemDescription>
|
|
127
|
-
|
|
128
|
-
<Swatches>
|
|
129
|
-
<SwatchSpecimen>
|
|
130
|
-
<SwatchColors>
|
|
131
|
-
{colors.map(color => (
|
|
132
|
-
<Swatch
|
|
133
|
-
key={color}
|
|
134
|
-
title={color}
|
|
135
|
-
style={{
|
|
136
|
-
backgroundColor: color,
|
|
137
|
-
}}
|
|
138
|
-
/>
|
|
139
|
-
))}
|
|
140
|
-
</SwatchColors>
|
|
141
|
-
<SwatchLabels>
|
|
142
|
-
{colors.map(color => (
|
|
143
|
-
<SwatchLabel key={color} title={color}>
|
|
144
|
-
<div>{color}</div>
|
|
145
|
-
</SwatchLabel>
|
|
146
|
-
))}
|
|
147
|
-
</SwatchLabels>
|
|
148
|
-
</SwatchSpecimen>
|
|
149
|
-
</Swatches>
|
|
150
|
-
</Item>
|
|
151
|
-
);
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Styleguide documentation for colors, including names, captions, and color swatches,
|
|
156
|
-
* all specified as `ColorItem` children of this wrapper component.
|
|
157
|
-
*/
|
|
158
|
-
export const ColorPalette: React.FunctionComponent = ({ children, ...props }) => (
|
|
159
|
-
<ResetWrapper>
|
|
160
|
-
<List {...props} className="docblock-colorpalette">
|
|
161
|
-
<ListHeading>
|
|
162
|
-
<ListName>Name</ListName>
|
|
163
|
-
<ListSwatches>Swatches</ListSwatches>
|
|
164
|
-
</ListHeading>
|
|
165
|
-
{children}
|
|
166
|
-
</List>
|
|
167
|
-
</ResetWrapper>
|
|
168
|
-
);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Description } from './Description';
|
|
3
|
-
|
|
4
|
-
import markdownCaption from './DocsPageExampleCaption.md';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Docs|Description',
|
|
8
|
-
component: Description,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const textCaption = `That was Wintermute, manipulating the lock the way it had manipulated the drone micro and the amplified breathing of the room where Case waited. The semiotics of the bright void beyond the chain link. The tug Marcus Garvey, a steel drum nine meters long and two in diameter, creaked and shuddered as Maelcum punched for a California gambling cartel, then as a paid killer in the dark, curled in his capsule in some coffin hotel, his hands clawed into the nearest door and watched the other passengers as he rode. After the postoperative check at the clinic, Molly took him to the simple Chinese hollow points Shin had sold him. Still it was a handgun and nine rounds of ammunition, and as he made his way down Shiga from the missionaries, the train reached Case’s station. Now this quiet courtyard, Sunday afternoon, this girl with a random collection of European furniture, as though Deane had once intended to use the place as his home. Case felt the edge of the Flatline as a construct, a hardwired ROM cassette replicating a dead man’s skills, obsessions, kneejerk responses. They were dropping, losing altitude in a canyon of rainbow foliage, a lurid communal mural that completely covered the hull of the console in faded pinks and yellows.`;
|
|
12
|
-
|
|
13
|
-
export const text = () => <Description markdown={textCaption} />;
|
|
14
|
-
|
|
15
|
-
export const markdown = () => <Description markdown={markdownCaption} />;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Markdown from 'markdown-to-jsx';
|
|
3
|
-
import { ResetWrapper } from '../typography/DocumentFormatting';
|
|
4
|
-
import { components } from '../html';
|
|
5
|
-
|
|
6
|
-
export interface DescriptionProps {
|
|
7
|
-
markdown: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* A markdown description for a component, typically used to show the
|
|
12
|
-
* components docgen docs.
|
|
13
|
-
*/
|
|
14
|
-
export const Description: React.FunctionComponent<DescriptionProps> = ({ markdown }) => (
|
|
15
|
-
<ResetWrapper>
|
|
16
|
-
<Markdown options={{ forceBlock: true, overrides: components }}>{markdown}</Markdown>
|
|
17
|
-
</ResetWrapper>
|
|
18
|
-
);
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DocsPage, DocsWrapper, DocsContent } from './DocsPage';
|
|
3
|
-
import * as storyStories from './Story.stories';
|
|
4
|
-
import * as previewStories from './Preview.stories';
|
|
5
|
-
import * as propsTableStories from './PropsTable/PropsTable.stories';
|
|
6
|
-
import * as sourceStories from './Source.stories';
|
|
7
|
-
import * as descriptionStories from './Description.stories';
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
title: 'Docs|DocsPage',
|
|
11
|
-
component: DocsPage,
|
|
12
|
-
decorators: [
|
|
13
|
-
storyFn => (
|
|
14
|
-
<DocsWrapper>
|
|
15
|
-
<DocsContent>{storyFn()}</DocsContent>
|
|
16
|
-
</DocsWrapper>
|
|
17
|
-
),
|
|
18
|
-
],
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const withSubtitle = () => (
|
|
22
|
-
<DocsPage
|
|
23
|
-
title="DocsPage"
|
|
24
|
-
subtitle="What the DocsPage looks like. Meant to be QAed in Canvas tab not in Docs tab."
|
|
25
|
-
>
|
|
26
|
-
{descriptionStories.text()}
|
|
27
|
-
{previewStories.single()}
|
|
28
|
-
{propsTableStories.normal()}
|
|
29
|
-
{sourceStories.jsx()}
|
|
30
|
-
</DocsPage>
|
|
31
|
-
);
|
|
32
|
-
withSubtitle.story = { name: 'with subtitle' };
|
|
33
|
-
|
|
34
|
-
export const empty = () => (
|
|
35
|
-
<DocsPage title={null}>
|
|
36
|
-
{storyStories.error()}
|
|
37
|
-
{propsTableStories.error()}
|
|
38
|
-
{sourceStories.sourceUnavailable()}
|
|
39
|
-
</DocsPage>
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
export const noText = () => (
|
|
43
|
-
<DocsPage title="no text">
|
|
44
|
-
{previewStories.single()}
|
|
45
|
-
{propsTableStories.normal()}
|
|
46
|
-
{sourceStories.jsx()}
|
|
47
|
-
</DocsPage>
|
|
48
|
-
);
|
|
49
|
-
noText.story = { name: 'no text' };
|
|
50
|
-
|
|
51
|
-
export const text = () => (
|
|
52
|
-
<DocsPage title="Sensorium">
|
|
53
|
-
{descriptionStories.text()}
|
|
54
|
-
{previewStories.single()}
|
|
55
|
-
{propsTableStories.normal()}
|
|
56
|
-
{sourceStories.jsx()}
|
|
57
|
-
</DocsPage>
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
export const markdown = () => (
|
|
61
|
-
<DocsPage title="markdown">
|
|
62
|
-
{descriptionStories.markdown()}
|
|
63
|
-
{previewStories.single()}
|
|
64
|
-
{propsTableStories.normal()}
|
|
65
|
-
{sourceStories.jsx()}
|
|
66
|
-
</DocsPage>
|
|
67
|
-
);
|
package/src/blocks/DocsPage.tsx
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { styled } from '@storybook/theming';
|
|
3
|
-
import { transparentize } from 'polished';
|
|
4
|
-
|
|
5
|
-
import { withReset } from '../typography/withReset';
|
|
6
|
-
|
|
7
|
-
const breakpoint = 600;
|
|
8
|
-
const pageMargin = '5.55555';
|
|
9
|
-
|
|
10
|
-
export interface DocsPageProps {
|
|
11
|
-
title: string;
|
|
12
|
-
subtitle?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const Title = styled.h1<{}>(withReset, ({ theme }) => ({
|
|
16
|
-
color: theme.color.defaultText,
|
|
17
|
-
fontSize: theme.typography.size.m3,
|
|
18
|
-
fontWeight: theme.typography.weight.black,
|
|
19
|
-
lineHeight: '32px',
|
|
20
|
-
|
|
21
|
-
[`@media (min-width: ${breakpoint * 1}px)`]: {
|
|
22
|
-
fontSize: theme.typography.size.l1,
|
|
23
|
-
lineHeight: '36px',
|
|
24
|
-
marginBottom: '.5rem', // 8px
|
|
25
|
-
},
|
|
26
|
-
}));
|
|
27
|
-
|
|
28
|
-
const Subtitle = styled.h2<{}>(withReset, ({ theme }) => ({
|
|
29
|
-
fontWeight: theme.typography.weight.regular,
|
|
30
|
-
fontSize: theme.typography.size.s3,
|
|
31
|
-
lineHeight: '20px',
|
|
32
|
-
borderBottom: 'none',
|
|
33
|
-
marginBottom: '15px',
|
|
34
|
-
|
|
35
|
-
[`@media (min-width: ${breakpoint * 1}px)`]: {
|
|
36
|
-
fontSize: theme.typography.size.m1,
|
|
37
|
-
lineHeight: '28px',
|
|
38
|
-
marginBottom: '24px',
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
color:
|
|
42
|
-
theme.base === 'light'
|
|
43
|
-
? transparentize(0.25, theme.color.defaultText)
|
|
44
|
-
: transparentize(0.25, theme.color.defaultText),
|
|
45
|
-
}));
|
|
46
|
-
|
|
47
|
-
export const DocsContent = styled.div({
|
|
48
|
-
maxWidth: 800,
|
|
49
|
-
width: '100%',
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
export const DocsWrapper = styled.div<{}>(({ theme }) => ({
|
|
53
|
-
background: theme.background.content,
|
|
54
|
-
display: 'flex',
|
|
55
|
-
justifyContent: 'center',
|
|
56
|
-
minHeight: '100vh',
|
|
57
|
-
padding: '4rem 20px',
|
|
58
|
-
|
|
59
|
-
[`@media (min-width: ${breakpoint * 1}px)`]: {},
|
|
60
|
-
}));
|
|
61
|
-
|
|
62
|
-
export const DocsPageWrapper: React.FunctionComponent = ({ children }) => (
|
|
63
|
-
<DocsWrapper>
|
|
64
|
-
<DocsContent>{children}</DocsContent>
|
|
65
|
-
</DocsWrapper>
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* An out-of-the box documentation page for components that shows the
|
|
70
|
-
* title & subtitle and a collection of blocks including `Description`,
|
|
71
|
-
* and `Preview`s for each of the component's stories.
|
|
72
|
-
*/
|
|
73
|
-
const DocsPage: React.FunctionComponent<DocsPageProps> = ({ title, subtitle, children }) => (
|
|
74
|
-
<>
|
|
75
|
-
{title && <Title className="sbdocs-title">{title}</Title>}
|
|
76
|
-
{subtitle && <Subtitle className="sbdocs-subtitle">{subtitle}</Subtitle>}
|
|
77
|
-
{children}
|
|
78
|
-
</>
|
|
79
|
-
);
|
|
80
|
-
|
|
81
|
-
export { DocsPage };
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
# My Example Markdown
|
|
2
|
-
|
|
3
|
-
The group looked like tall, exotic grazing animals, swaying gracefully and unconsciously with the movement of the train, their high heels like polished hooves against the gray metal of the Flatline as a construct, a hardwired ROM cassette replicating a dead man’s skills, obsessions, kneejerk responses.
|
|
4
|
-
|
|
5
|
-

|
|
6
|
-
|
|
7
|
-
He stared at the clinic, Molly took him to the Tank War, mouth touched with hot gold as a gliding cursor struck sparks from the wall of a skyscraper canyon. Light from a service hatch at the rear of the Sprawl’s towers and ragged Fuller domes, dim figures moving toward him in the dark. A narrow wedge of light from a half-open service hatch at the twin mirrors. Its hands were holograms that altered to match the convolutions of the bright void beyond the chain link. Strata of cigarette smoke rose from the tiers, drifting until it struck currents set up by the blowers and the robot gardener. Still it was a steady pulse of pain midway down his spine. After the postoperative check at the clinic, Molly took him to the simple Chinese hollow points Shin had sold him. The last Case saw of Chiba were the cutting edge, whole bodies of technique supplanted monthly, and still he’d see the matrix in his capsule in some coffin hotel, his hands clawed into the nearest door and watched the other passengers as he rode.
|
|
8
|
-
|
|
9
|
-
## Typography
|
|
10
|
-
|
|
11
|
-
# H1
|
|
12
|
-
|
|
13
|
-
## H2
|
|
14
|
-
|
|
15
|
-
### H3
|
|
16
|
-
|
|
17
|
-
#### H4
|
|
18
|
-
|
|
19
|
-
##### H5
|
|
20
|
-
|
|
21
|
-
###### H6
|
|
22
|
-
|
|
23
|
-
Emphasis, aka italics, with _asterisks_ or _underscores_.
|
|
24
|
-
|
|
25
|
-
Strong emphasis, aka bold, with **asterisks** or **underscores**.
|
|
26
|
-
|
|
27
|
-
Combined emphasis with **asterisks and _underscores_**.
|
|
28
|
-
|
|
29
|
-
Strikethrough uses two tildes. ~~Scratch this.~~
|
|
30
|
-
|
|
31
|
-
Maybe include a [link](http://storybook.js.org) to your project as well.
|
|
32
|
-
|
|
33
|
-
## Block quote
|
|
34
|
-
|
|
35
|
-
How about a block quote to spice things up?
|
|
36
|
-
|
|
37
|
-
> In der Bilanz ausgewiesene Verbindlichkeiten im Zusammenhang mit leistungsorientierten Pensionsfonds sind bei der Ermittlung des harten Kernkapitals („Common Equity Tier 1“, CET1) einhalten müssen. Mit dem antizyklischen Kapitalpolster sollen die Kapitalanforderungen für den Bankensektor das globale Finanzumfeld berücksichtigen, in dem die Banken häufig Bewertungen der vertraglichen Laufzeiteninkongruenz durchführen. In der Bilanz ausgewiesene Verbindlichkeiten im Zusammenhang mit leistungsorientierten Pensionsfonds sind bei der Ermittlung des harten Kernkapitals am gesamten Eigenkapital. Dies wäre im Rahmen der standardisierten CVA-Risikokapitalanforderungen gemäss Absatz 104 einbezogen werden. Situationen, in denen Geschäfte als illiquide im Sinne dieser Bestimmungen gelten, umfassen beispielsweise Instrumente, in denen keine tägliche Preisfeststellung erfolgt sowie Instrumente, für die Berechnung und Durchführung von Nachschussforderungen, die Handhabung von Streitigkeiten über Nachschüsse sowie für die genaue tägliche Berichterstattung zu Zusatzbeträgen, Einschüssen und Nachschüssen. In der Bilanz ausgewiesene Verbindlichkeiten im Zusammenhang mit leistungsorientierten Pensionsfonds sind bei der Ermittlung des harten Kernkapitals („Common Equity Tier 1“, CET1) einhalten müssen. Mit dem antizyklischen Kapitalpolster sollen die Kapitalanforderungen für den Bankensektor das globale Finanzumfeld berücksichtigen, in dem die Banken häufig Bewertungen der vertraglichen Laufzeiteninkongruenz durchführen. Nur Absicherungen, die zur Verwendung des auf internen Marktrisikomodellen basierenden Ansatzes für das spezifische Zinsänderungsrisiko zugelassen sind, beziehen diese Nicht-IMM-Netting-Sets gemäss Absatz 98 ein, es sei denn, die nationale Aufsichtsinstanz erklärt für diese Portfolios Absatz 104 für anwendbar.
|
|
38
|
-
|
|
39
|
-
## Lists
|
|
40
|
-
|
|
41
|
-
Mixed list:
|
|
42
|
-
|
|
43
|
-
1. First ordered list item
|
|
44
|
-
2. Another item
|
|
45
|
-
- Unordered sub-list.
|
|
46
|
-
3. Actual numbers don't matter, just that it's a number
|
|
47
|
-
1. Ordered sub-list
|
|
48
|
-
2. Yo ho ho
|
|
49
|
-
4. And another item.
|
|
50
|
-
|
|
51
|
-
Bullet list:
|
|
52
|
-
|
|
53
|
-
- Whatever
|
|
54
|
-
- This is getting
|
|
55
|
-
- Very ...
|
|
56
|
-
- Very ...
|
|
57
|
-
- Tedious!
|
|
58
|
-
- It's getting late, nothing to see here
|
|
59
|
-
|
|
60
|
-
Numbered:
|
|
61
|
-
|
|
62
|
-
1. You get the idea
|
|
63
|
-
2. You still get the idea
|
|
64
|
-
3. You really get the idea
|
|
65
|
-
4. I'm done
|
|
66
|
-
|
|
67
|
-
## Tables
|
|
68
|
-
|
|
69
|
-
A basic table:
|
|
70
|
-
|
|
71
|
-
| Tables | Are | Cool |
|
|
72
|
-
| ------------- | :-----------: | -----: |
|
|
73
|
-
| col 3 is | right-aligned | \$1600 |
|
|
74
|
-
| col 2 is | centered | \$12 |
|
|
75
|
-
| zebra stripes | are neat | \$1 |
|
|
76
|
-
|
|
77
|
-
Let's throw in a crazy table, because why not?
|
|
78
|
-
|
|
79
|
-
| | [React](app/react) | [React Native](app/react-native) | [Vue](app/vue) | [Angular](app/angular) | [Polymer](app/polymer) | [Mithril](app/mithril) | [HTML](app/html) | [Marko](app/marko) | [Svelte](app/svelte) | [Riot](app/riot) | [Ember](app/ember) | [Preact](app/preact) |
|
|
80
|
-
| --------------------------------- | :----------------: | :------------------------------: | :------------: | :--------------------: | :--------------------: | :--------------------: | :--------------: | :----------------: | :------------------: | :--------------: | :----------------: | :------------------: |
|
|
81
|
-
| [a11y](addons/a11y) | + | | + | + | + | + | + | + | | | + | + |
|
|
82
|
-
| [actions](addons/actions) | + | + | + | + | + | + | + | + | + | + | + | + |
|
|
83
|
-
| [backgrounds](addons/backgrounds) | + | \* | + | + | + | + | + | + | + | + | + | + |
|
|
84
|
-
| [centered](addons/centered) | + | | + | + | | + | + | | + | | + | + |
|
|
85
|
-
| [contexts](addons/contexts) | + | | + | | | | | | | | | + |
|
|
86
|
-
|
|
87
|
-
## Code
|
|
88
|
-
|
|
89
|
-
Sometimes you might want to manually include some \`code\` examples? Let's do it.
|
|
90
|
-
|
|
91
|
-
```js
|
|
92
|
-
const Button = () => <button />;
|
|
93
|
-
```
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
# My Example Markdown
|
|
2
|
-
|
|
3
|
-
The group looked like tall, exotic grazing animals, swaying gracefully and unconsciously with the movement of the train, their high heels like polished hooves against the gray metal of the Flatline as a construct, a hardwired ROM cassette replicating a dead man’s skills, obsessions, kneejerk responses.
|
|
4
|
-
|
|
5
|
-

|
|
6
|
-
|
|
7
|
-
He stared at the clinic, Molly took him to the Tank War, mouth touched with hot gold as a gliding cursor struck sparks from the wall of a skyscraper canyon. Light from a service hatch at the rear of the Sprawl’s towers and ragged Fuller domes, dim figures moving toward him in the dark. A narrow wedge of light from a half-open service hatch at the twin mirrors. Its hands were holograms that altered to match the convolutions of the bright void beyond the chain link. Strata of cigarette smoke rose from the tiers, drifting until it struck currents set up by the blowers and the robot gardener. Still it was a steady pulse of pain midway down his spine. After the postoperative check at the clinic, Molly took him to the simple Chinese hollow points Shin had sold him. The last Case saw of Chiba were the cutting edge, whole bodies of technique supplanted monthly, and still he’d see the matrix in his capsule in some coffin hotel, his hands clawed into the nearest door and watched the other passengers as he rode.
|
|
8
|
-
|
|
9
|
-
## Typography
|
|
10
|
-
|
|
11
|
-
# H1
|
|
12
|
-
|
|
13
|
-
## H2
|
|
14
|
-
|
|
15
|
-
### H3
|
|
16
|
-
|
|
17
|
-
#### H4
|
|
18
|
-
|
|
19
|
-
##### H5
|
|
20
|
-
|
|
21
|
-
###### H6
|
|
22
|
-
|
|
23
|
-
Emphasis, aka italics, with _asterisks_ or _underscores_.
|
|
24
|
-
|
|
25
|
-
Strong emphasis, aka bold, with **asterisks** or **underscores**.
|
|
26
|
-
|
|
27
|
-
Combined emphasis with **asterisks and _underscores_**.
|
|
28
|
-
|
|
29
|
-
Strikethrough uses two tildes. ~~Scratch this.~~
|
|
30
|
-
|
|
31
|
-
Maybe include a [link](http://storybook.js.org) to your project as well.
|
|
32
|
-
|
|
33
|
-
## Block quote
|
|
34
|
-
|
|
35
|
-
How about a block quote to spice things up?
|
|
36
|
-
|
|
37
|
-
> In der Bilanz ausgewiesene Verbindlichkeiten im Zusammenhang mit leistungsorientierten Pensionsfonds sind bei der Ermittlung des harten Kernkapitals („Common Equity Tier 1“, CET1) einhalten müssen. Mit dem antizyklischen Kapitalpolster sollen die Kapitalanforderungen für den Bankensektor das globale Finanzumfeld berücksichtigen, in dem die Banken häufig Bewertungen der vertraglichen Laufzeiteninkongruenz durchführen. In der Bilanz ausgewiesene Verbindlichkeiten im Zusammenhang mit leistungsorientierten Pensionsfonds sind bei der Ermittlung des harten Kernkapitals am gesamten Eigenkapital. Dies wäre im Rahmen der standardisierten CVA-Risikokapitalanforderungen gemäss Absatz 104 einbezogen werden. Situationen, in denen Geschäfte als illiquide im Sinne dieser Bestimmungen gelten, umfassen beispielsweise Instrumente, in denen keine tägliche Preisfeststellung erfolgt sowie Instrumente, für die Berechnung und Durchführung von Nachschussforderungen, die Handhabung von Streitigkeiten über Nachschüsse sowie für die genaue tägliche Berichterstattung zu Zusatzbeträgen, Einschüssen und Nachschüssen. In der Bilanz ausgewiesene Verbindlichkeiten im Zusammenhang mit leistungsorientierten Pensionsfonds sind bei der Ermittlung des harten Kernkapitals („Common Equity Tier 1“, CET1) einhalten müssen. Mit dem antizyklischen Kapitalpolster sollen die Kapitalanforderungen für den Bankensektor das globale Finanzumfeld berücksichtigen, in dem die Banken häufig Bewertungen der vertraglichen Laufzeiteninkongruenz durchführen. Nur Absicherungen, die zur Verwendung des auf internen Marktrisikomodellen basierenden Ansatzes für das spezifische Zinsänderungsrisiko zugelassen sind, beziehen diese Nicht-IMM-Netting-Sets gemäss Absatz 98 ein, es sei denn, die nationale Aufsichtsinstanz erklärt für diese Portfolios Absatz 104 für anwendbar.
|
|
38
|
-
|
|
39
|
-
## Lists
|
|
40
|
-
|
|
41
|
-
Mixed list:
|
|
42
|
-
|
|
43
|
-
1. First ordered list item
|
|
44
|
-
2. Another item
|
|
45
|
-
- Unordered sub-list.
|
|
46
|
-
3. Actual numbers don't matter, just that it's a number
|
|
47
|
-
1. Ordered sub-list
|
|
48
|
-
2. Yo ho ho
|
|
49
|
-
4. And another item.
|
|
50
|
-
|
|
51
|
-
Bullet list:
|
|
52
|
-
|
|
53
|
-
- Whatever
|
|
54
|
-
- This is getting
|
|
55
|
-
- Very ...
|
|
56
|
-
- Very ...
|
|
57
|
-
- Tedious!
|
|
58
|
-
- It's getting late, nothing to see here
|
|
59
|
-
|
|
60
|
-
Numbered:
|
|
61
|
-
|
|
62
|
-
1. You get the idea
|
|
63
|
-
2. You still get the idea
|
|
64
|
-
3. You really get the idea
|
|
65
|
-
4. I'm done
|
|
66
|
-
|
|
67
|
-
## Tables
|
|
68
|
-
|
|
69
|
-
A basic table:
|
|
70
|
-
|
|
71
|
-
| Tables | Are | Cool |
|
|
72
|
-
| ------------- | :-----------: | -----: |
|
|
73
|
-
| col 3 is | right-aligned | \$1600 |
|
|
74
|
-
| col 2 is | centered | \$12 |
|
|
75
|
-
| zebra stripes | are neat | \$1 |
|
|
76
|
-
|
|
77
|
-
Let's throw in a crazy table, because why not?
|
|
78
|
-
|
|
79
|
-
| | [React](app/react) | [React Native](app/react-native) | [Vue](app/vue) | [Angular](app/angular) | [Polymer](app/polymer) | [Mithril](app/mithril) | [HTML](app/html) | [Marko](app/marko) | [Svelte](app/svelte) | [Riot](app/riot) | [Ember](app/ember) | [Preact](app/preact) |
|
|
80
|
-
| --------------------------------- | :----------------: | :------------------------------: | :------------: | :--------------------: | :--------------------: | :--------------------: | :--------------: | :----------------: | :------------------: | :--------------: | :----------------: | :------------------: |
|
|
81
|
-
| [a11y](addons/a11y) | + | | + | + | + | + | + | + | | | + | + |
|
|
82
|
-
| [actions](addons/actions) | + | + | + | + | + | + | + | + | + | + | + | + |
|
|
83
|
-
| [backgrounds](addons/backgrounds) | + | \* | + | + | + | + | + | + | + | + | + | + |
|
|
84
|
-
| [centered](addons/centered) | + | | + | + | | + | + | | + | | + | + |
|
|
85
|
-
| [contexts](addons/contexts) | + | | + | | | | | | | | | + |
|
|
86
|
-
|
|
87
|
-
## Code
|
|
88
|
-
|
|
89
|
-
Sometimes you might want to manually include some \`code\` examples? Let's do it.
|
|
90
|
-
|
|
91
|
-
```js
|
|
92
|
-
const Button = () => <button />;
|
|
93
|
-
```
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { styled } from '@storybook/theming';
|
|
3
|
-
import { transparentize } from 'polished';
|
|
4
|
-
import { withReset } from '../typography/withReset';
|
|
5
|
-
|
|
6
|
-
const Wrapper = styled.div<{}>(withReset, ({ theme }) => ({
|
|
7
|
-
backgroundColor: theme.base === 'light' ? 'rgba(0,0,0,.01)' : 'rgba(255,255,255,.01)',
|
|
8
|
-
borderRadius: theme.appBorderRadius,
|
|
9
|
-
border: `1px dashed ${theme.appBorderColor}`,
|
|
10
|
-
display: 'flex',
|
|
11
|
-
fontSize: `${theme.typography.size.s2}px`,
|
|
12
|
-
alignItems: 'center',
|
|
13
|
-
justifyContent: 'center',
|
|
14
|
-
padding: '20px',
|
|
15
|
-
margin: '25px 0 40px',
|
|
16
|
-
|
|
17
|
-
color:
|
|
18
|
-
theme.base === 'light'
|
|
19
|
-
? transparentize(0.4, theme.color.defaultText)
|
|
20
|
-
: transparentize(0.6, theme.color.defaultText),
|
|
21
|
-
}));
|
|
22
|
-
|
|
23
|
-
export const EmptyBlock = (props: any) => <Wrapper {...props} className="docblock-emptyblock" />;
|
package/src/blocks/IFrame.tsx
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import window from 'global';
|
|
3
|
-
|
|
4
|
-
interface IFrameProps {
|
|
5
|
-
id: string;
|
|
6
|
-
key?: string;
|
|
7
|
-
title: string;
|
|
8
|
-
src: string;
|
|
9
|
-
allowFullScreen: boolean;
|
|
10
|
-
scale: number;
|
|
11
|
-
style?: any;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface BodyStyle {
|
|
15
|
-
width: string;
|
|
16
|
-
height: string;
|
|
17
|
-
transform: string;
|
|
18
|
-
transformOrigin: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export class IFrame extends React.Component<IFrameProps> {
|
|
22
|
-
iframe: any = null;
|
|
23
|
-
|
|
24
|
-
componentDidMount() {
|
|
25
|
-
const { id } = this.props;
|
|
26
|
-
this.iframe = window.document.getElementById(id);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
shouldComponentUpdate(nextProps: IFrameProps) {
|
|
30
|
-
const { scale } = nextProps;
|
|
31
|
-
// eslint-disable-next-line react/destructuring-assignment
|
|
32
|
-
if (scale !== this.props.scale) {
|
|
33
|
-
this.setIframeBodyStyle({
|
|
34
|
-
width: `${scale * 100}%`,
|
|
35
|
-
height: `${scale * 100}%`,
|
|
36
|
-
transform: `scale(${1 / scale})`,
|
|
37
|
-
transformOrigin: 'top left',
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
setIframeBodyStyle(style: BodyStyle) {
|
|
44
|
-
return Object.assign(this.iframe.contentDocument.body.style, style);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
render() {
|
|
48
|
-
const { id, title, src, allowFullScreen, scale, ...rest } = this.props;
|
|
49
|
-
return (
|
|
50
|
-
<iframe
|
|
51
|
-
scrolling="yes"
|
|
52
|
-
id={id}
|
|
53
|
-
title={title}
|
|
54
|
-
src={src}
|
|
55
|
-
allowFullScreen={allowFullScreen}
|
|
56
|
-
{...rest}
|
|
57
|
-
/>
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IconItem, IconGallery } from './IconGallery';
|
|
3
|
-
|
|
4
|
-
import { Icons as ExampleIcon } from '../icon/icon';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Docs|IconGallery',
|
|
8
|
-
component: IconGallery,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export const defaultStyle = () => (
|
|
12
|
-
<IconGallery>
|
|
13
|
-
<IconItem name="add">
|
|
14
|
-
<ExampleIcon icon="add" />
|
|
15
|
-
</IconItem>
|
|
16
|
-
<IconItem name="subtract">
|
|
17
|
-
<ExampleIcon icon="subtract" />
|
|
18
|
-
</IconItem>
|
|
19
|
-
<IconItem name="home">
|
|
20
|
-
<ExampleIcon icon="home" />
|
|
21
|
-
</IconItem>
|
|
22
|
-
<IconItem name="facehappy">
|
|
23
|
-
<ExampleIcon icon="facehappy" />
|
|
24
|
-
</IconItem>
|
|
25
|
-
<IconItem name="bar">
|
|
26
|
-
<img src="https://placehold.it/50x50" alt="example" />
|
|
27
|
-
</IconItem>
|
|
28
|
-
<IconItem name="bar">
|
|
29
|
-
<img src="https://placehold.it/50x50" alt="example" />
|
|
30
|
-
</IconItem>
|
|
31
|
-
</IconGallery>
|
|
32
|
-
);
|