@storybook/components 6.4.0-beta.3 → 6.4.0-beta.33
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/cjs/ActionBar/ActionBar.stories.js +7 -7
- package/dist/cjs/ScrollArea/GlobalScrollAreaStyles.js +1 -1
- package/dist/cjs/ScrollArea/ScrollArea.stories.js +13 -13
- package/dist/cjs/Zoom/Zoom.stories.js +22 -22
- package/dist/cjs/bar/bar.js +5 -3
- package/dist/cjs/bar/button.js +64 -26
- package/dist/cjs/bar/button.stories.js +90 -0
- package/dist/cjs/bar/separator.js +4 -2
- package/dist/cjs/blocks/ArgsTable/ArgRow.js +18 -6
- package/dist/cjs/blocks/ArgsTable/ArgRow.stories.js +6 -1
- package/dist/cjs/blocks/ArgsTable/ArgsTable.js +125 -32
- package/dist/cjs/blocks/ArgsTable/ArgsTable.stories.js +6 -1
- package/dist/cjs/blocks/ColorPalette.stories.js +4 -4
- package/dist/cjs/blocks/DocsPage.stories.js +9 -2
- package/dist/cjs/blocks/EmptyBlock.stories.js +4 -4
- package/dist/cjs/blocks/IconGallery.stories.js +4 -4
- package/dist/cjs/blocks/Preview.js +13 -2
- package/dist/cjs/blocks/Preview.stories.js +8 -1
- package/dist/cjs/blocks/Source.js +57 -8
- package/dist/cjs/blocks/Source.stories.js +11 -1
- package/dist/cjs/blocks/Story.js +11 -2
- package/dist/cjs/blocks/Story.stories.js +11 -1
- package/dist/cjs/blocks/Typeset.stories.js +13 -13
- package/dist/cjs/brand/StorybookLogo.stories.js +4 -4
- package/dist/cjs/icon/icons.js +2 -0
- package/dist/cjs/placeholder/placeholder.stories.js +7 -7
- package/dist/cjs/tabs/tabs.js +1 -1
- package/dist/cjs/tooltip/TooltipNote.js +1 -1
- package/dist/cjs/typography/DocumentFormatting.js +15 -4
- package/dist/cjs/typography/DocumentWrapper.stories.js +7 -7
- package/dist/cjs/typography/link/link.js +2 -2
- package/dist/cjs/typography/typography.stories.mdx +75 -0
- package/dist/esm/ActionBar/ActionBar.stories.js +4 -4
- package/dist/esm/ScrollArea/GlobalScrollAreaStyles.js +1 -1
- package/dist/esm/ScrollArea/ScrollArea.stories.js +8 -8
- package/dist/esm/Zoom/Zoom.stories.js +15 -15
- package/dist/esm/bar/bar.js +5 -3
- package/dist/esm/bar/button.js +56 -25
- package/dist/esm/bar/button.stories.js +56 -0
- package/dist/esm/bar/separator.js +4 -2
- package/dist/esm/blocks/ArgsTable/ArgRow.js +15 -5
- package/dist/esm/blocks/ArgsTable/ArgRow.stories.js +4 -0
- package/dist/esm/blocks/ArgsTable/ArgsTable.js +123 -32
- package/dist/esm/blocks/ArgsTable/ArgsTable.stories.js +4 -0
- package/dist/esm/blocks/ColorPalette.stories.js +2 -2
- package/dist/esm/blocks/DocsPage.stories.js +5 -1
- package/dist/esm/blocks/EmptyBlock.stories.js +2 -2
- package/dist/esm/blocks/IconGallery.stories.js +2 -2
- package/dist/esm/blocks/Preview.js +8 -3
- package/dist/esm/blocks/Preview.stories.js +5 -1
- package/dist/esm/blocks/Source.js +56 -8
- package/dist/esm/blocks/Source.stories.js +7 -0
- package/dist/esm/blocks/Story.js +7 -1
- package/dist/esm/blocks/Story.stories.js +8 -1
- package/dist/esm/blocks/Typeset.stories.js +8 -8
- package/dist/esm/brand/StorybookLogo.stories.js +2 -2
- package/dist/esm/icon/icons.js +2 -0
- package/dist/esm/placeholder/placeholder.stories.js +4 -4
- package/dist/esm/tabs/tabs.js +1 -1
- package/dist/esm/tooltip/TooltipNote.js +1 -1
- package/dist/esm/typography/DocumentFormatting.js +12 -3
- package/dist/esm/typography/DocumentWrapper.stories.js +4 -4
- package/dist/esm/typography/link/link.js +2 -2
- package/dist/esm/typography/typography.stories.mdx +75 -0
- package/dist/modern/ActionBar/ActionBar.stories.js +4 -4
- package/dist/modern/ScrollArea/GlobalScrollAreaStyles.js +1 -1
- package/dist/modern/ScrollArea/ScrollArea.stories.js +8 -8
- package/dist/modern/Zoom/Zoom.stories.js +15 -15
- package/dist/modern/bar/bar.js +5 -3
- package/dist/modern/bar/button.js +48 -24
- package/dist/modern/bar/button.stories.js +42 -0
- package/dist/modern/bar/separator.js +4 -2
- package/dist/modern/blocks/ArgsTable/ArgRow.js +9 -1
- package/dist/modern/blocks/ArgsTable/ArgRow.stories.js +4 -0
- package/dist/modern/blocks/ArgsTable/ArgsTable.js +99 -12
- package/dist/modern/blocks/ArgsTable/ArgsTable.stories.js +4 -0
- package/dist/modern/blocks/ColorPalette.stories.js +2 -2
- package/dist/modern/blocks/DocsPage.stories.js +3 -1
- package/dist/modern/blocks/EmptyBlock.stories.js +2 -2
- package/dist/modern/blocks/IconGallery.stories.js +2 -2
- package/dist/modern/blocks/Preview.js +6 -3
- package/dist/modern/blocks/Preview.stories.js +3 -1
- package/dist/modern/blocks/Source.js +44 -0
- package/dist/modern/blocks/Source.stories.js +5 -0
- package/dist/modern/blocks/Story.js +5 -1
- package/dist/modern/blocks/Story.stories.js +6 -1
- package/dist/modern/blocks/Typeset.stories.js +8 -8
- package/dist/modern/brand/StorybookLogo.stories.js +2 -2
- package/dist/modern/icon/icons.js +2 -0
- package/dist/modern/placeholder/placeholder.stories.js +4 -4
- package/dist/modern/tabs/tabs.js +1 -1
- package/dist/modern/tooltip/TooltipNote.js +1 -1
- package/dist/modern/typography/DocumentFormatting.js +7 -2
- package/dist/modern/typography/DocumentWrapper.stories.js +4 -4
- package/dist/modern/typography/link/link.js +2 -2
- package/dist/modern/typography/typography.stories.mdx +75 -0
- package/dist/ts3.4/ScrollArea/GlobalScrollAreaStyles.d.ts +1 -0
- package/dist/ts3.4/bar/button.d.ts +2 -0
- package/dist/ts3.4/blocks/ArgsTable/ArgRow.d.ts +7 -1
- package/dist/ts3.4/blocks/ArgsTable/ArgsTable.d.ts +8 -2
- package/dist/ts3.4/blocks/ArgsTable/NoControlsWarning.d.ts +1 -0
- package/dist/ts3.4/blocks/EmptyBlock.d.ts +1 -0
- package/dist/ts3.4/blocks/Preview.d.ts +2 -2
- package/dist/ts3.4/blocks/Source.d.ts +1 -0
- package/dist/ts3.4/blocks/Story.d.ts +4 -3
- package/dist/ts3.4/icon/icons.d.ts +2 -0
- package/dist/ts3.9/ScrollArea/GlobalScrollAreaStyles.d.ts +1 -0
- package/dist/ts3.9/bar/button.d.ts +2 -0
- package/dist/ts3.9/blocks/ArgsTable/ArgRow.d.ts +7 -1
- package/dist/ts3.9/blocks/ArgsTable/ArgsTable.d.ts +8 -2
- package/dist/ts3.9/blocks/ArgsTable/NoControlsWarning.d.ts +1 -0
- package/dist/ts3.9/blocks/EmptyBlock.d.ts +1 -0
- package/dist/ts3.9/blocks/Preview.d.ts +2 -2
- package/dist/ts3.9/blocks/Source.d.ts +1 -0
- package/dist/ts3.9/blocks/Story.d.ts +4 -3
- package/dist/ts3.9/icon/icons.d.ts +2 -0
- package/package.json +5 -5
- package/dist/cjs/typography/typography.stories.js +0 -130
- package/dist/esm/typography/typography.stories.js +0 -106
- package/dist/modern/typography/typography.stories.js +0 -91
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { styled } from '@storybook/theming';
|
|
3
|
-
import { storiesOf } from '@storybook/react';
|
|
4
|
-
var Info = styled.div({
|
|
5
|
-
marginBottom: '3rem'
|
|
6
|
-
});
|
|
7
|
-
var Heading1 = styled.div(function (_ref) {
|
|
8
|
-
var theme = _ref.theme;
|
|
9
|
-
return {
|
|
10
|
-
fontSize: theme.typography.size.l3
|
|
11
|
-
};
|
|
12
|
-
});
|
|
13
|
-
var Heading2 = styled.div(function (_ref2) {
|
|
14
|
-
var theme = _ref2.theme;
|
|
15
|
-
return {
|
|
16
|
-
fontSize: theme.typography.size.l2
|
|
17
|
-
};
|
|
18
|
-
});
|
|
19
|
-
var Heading3 = styled.div(function (_ref3) {
|
|
20
|
-
var theme = _ref3.theme;
|
|
21
|
-
return {
|
|
22
|
-
fontSize: theme.typography.size.l1
|
|
23
|
-
};
|
|
24
|
-
});
|
|
25
|
-
var Heading4 = styled.div(function (_ref4) {
|
|
26
|
-
var theme = _ref4.theme;
|
|
27
|
-
return {
|
|
28
|
-
fontSize: theme.typography.size.m3
|
|
29
|
-
};
|
|
30
|
-
});
|
|
31
|
-
var Heading5 = styled.div(function (_ref5) {
|
|
32
|
-
var theme = _ref5.theme;
|
|
33
|
-
return {
|
|
34
|
-
fontSize: theme.typography.size.m3
|
|
35
|
-
};
|
|
36
|
-
});
|
|
37
|
-
var Heading6 = styled.div(function (_ref6) {
|
|
38
|
-
var theme = _ref6.theme;
|
|
39
|
-
return {
|
|
40
|
-
fontSize: theme.typography.size.m1
|
|
41
|
-
};
|
|
42
|
-
});
|
|
43
|
-
var Heading7 = styled.div(function (_ref7) {
|
|
44
|
-
var theme = _ref7.theme;
|
|
45
|
-
return {
|
|
46
|
-
fontSize: theme.typography.size.s3
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
|
-
var Heading8 = styled.div(function (_ref8) {
|
|
50
|
-
var theme = _ref8.theme;
|
|
51
|
-
return {
|
|
52
|
-
fontSize: theme.typography.size.s2
|
|
53
|
-
};
|
|
54
|
-
});
|
|
55
|
-
var Heading9 = styled.div(function (_ref9) {
|
|
56
|
-
var theme = _ref9.theme;
|
|
57
|
-
return {
|
|
58
|
-
fontSize: theme.typography.size.s1
|
|
59
|
-
};
|
|
60
|
-
});
|
|
61
|
-
var HeadingWrapper = styled.div(function (_ref10) {
|
|
62
|
-
var theme = _ref10.theme;
|
|
63
|
-
return {
|
|
64
|
-
fontWeight: theme.typography.weight.black,
|
|
65
|
-
'> *': {
|
|
66
|
-
marginBottom: '1rem'
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
});
|
|
70
|
-
var Type1 = styled.div(function (_ref11) {
|
|
71
|
-
var theme = _ref11.theme;
|
|
72
|
-
return {
|
|
73
|
-
fontSize: theme.typography.size.s3
|
|
74
|
-
};
|
|
75
|
-
});
|
|
76
|
-
var Type2 = styled.div(function (_ref12) {
|
|
77
|
-
var theme = _ref12.theme;
|
|
78
|
-
return {
|
|
79
|
-
fontSize: theme.typography.size.s2
|
|
80
|
-
};
|
|
81
|
-
});
|
|
82
|
-
var Type3 = styled.div(function (_ref13) {
|
|
83
|
-
var theme = _ref13.theme;
|
|
84
|
-
return {
|
|
85
|
-
fontSize: theme.typography.size.s1
|
|
86
|
-
};
|
|
87
|
-
});
|
|
88
|
-
var TypeWrapper = styled.div({
|
|
89
|
-
'> *': {
|
|
90
|
-
marginBottom: '1rem'
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
var Wrapper = styled.div({
|
|
94
|
-
display: 'flex',
|
|
95
|
-
flexDirection: 'row',
|
|
96
|
-
'> *': {
|
|
97
|
-
flex: 1,
|
|
98
|
-
paddingRight: 40
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
var Page = styled.div({
|
|
102
|
-
padding: '3rem'
|
|
103
|
-
});
|
|
104
|
-
storiesOf('Basics/typography', module).add('all', function () {
|
|
105
|
-
return /*#__PURE__*/React.createElement(Page, null, /*#__PURE__*/React.createElement(Info, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, "Font-family:"), " \"Nunito sans\", Apple system font ... sans-serif"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, "UI text size:"), " 13px"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, "Document/Markdown text size:"), " 14px"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, "Code font:"), " ", /*#__PURE__*/React.createElement("code", null, "Operator Mono, Fira Code, Consolas ... monospace")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, "Weights:"), " 400(normal), 600(bold), 900(black)")), /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(HeadingWrapper, null, /*#__PURE__*/React.createElement(Heading1, null, "48 heading"), /*#__PURE__*/React.createElement(Heading2, null, "40 heading"), /*#__PURE__*/React.createElement(Heading3, null, "32 heading"), /*#__PURE__*/React.createElement(Heading4, null, "28 heading"), /*#__PURE__*/React.createElement(Heading5, null, "24 heading"), /*#__PURE__*/React.createElement(Heading6, null, "20 heading"), /*#__PURE__*/React.createElement(Heading7, null, "16 heading"), /*#__PURE__*/React.createElement(Heading8, null, "14 heading"), /*#__PURE__*/React.createElement(Heading9, null, "12 heading")), /*#__PURE__*/React.createElement(TypeWrapper, null, /*#__PURE__*/React.createElement(Type1, null, "16 The quick brown fox jumps over the lazy dog"), /*#__PURE__*/React.createElement(Type2, null, "14 The quick brown fox jumps over the lazy dog"), /*#__PURE__*/React.createElement(Type3, null, "12 The quick brown fox jumps over the lazy dog"))));
|
|
106
|
-
});
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { styled } from '@storybook/theming';
|
|
3
|
-
import { storiesOf } from '@storybook/react';
|
|
4
|
-
const Info = styled.div({
|
|
5
|
-
marginBottom: '3rem'
|
|
6
|
-
});
|
|
7
|
-
const Heading1 = styled.div(({
|
|
8
|
-
theme
|
|
9
|
-
}) => ({
|
|
10
|
-
fontSize: theme.typography.size.l3
|
|
11
|
-
}));
|
|
12
|
-
const Heading2 = styled.div(({
|
|
13
|
-
theme
|
|
14
|
-
}) => ({
|
|
15
|
-
fontSize: theme.typography.size.l2
|
|
16
|
-
}));
|
|
17
|
-
const Heading3 = styled.div(({
|
|
18
|
-
theme
|
|
19
|
-
}) => ({
|
|
20
|
-
fontSize: theme.typography.size.l1
|
|
21
|
-
}));
|
|
22
|
-
const Heading4 = styled.div(({
|
|
23
|
-
theme
|
|
24
|
-
}) => ({
|
|
25
|
-
fontSize: theme.typography.size.m3
|
|
26
|
-
}));
|
|
27
|
-
const Heading5 = styled.div(({
|
|
28
|
-
theme
|
|
29
|
-
}) => ({
|
|
30
|
-
fontSize: theme.typography.size.m3
|
|
31
|
-
}));
|
|
32
|
-
const Heading6 = styled.div(({
|
|
33
|
-
theme
|
|
34
|
-
}) => ({
|
|
35
|
-
fontSize: theme.typography.size.m1
|
|
36
|
-
}));
|
|
37
|
-
const Heading7 = styled.div(({
|
|
38
|
-
theme
|
|
39
|
-
}) => ({
|
|
40
|
-
fontSize: theme.typography.size.s3
|
|
41
|
-
}));
|
|
42
|
-
const Heading8 = styled.div(({
|
|
43
|
-
theme
|
|
44
|
-
}) => ({
|
|
45
|
-
fontSize: theme.typography.size.s2
|
|
46
|
-
}));
|
|
47
|
-
const Heading9 = styled.div(({
|
|
48
|
-
theme
|
|
49
|
-
}) => ({
|
|
50
|
-
fontSize: theme.typography.size.s1
|
|
51
|
-
}));
|
|
52
|
-
const HeadingWrapper = styled.div(({
|
|
53
|
-
theme
|
|
54
|
-
}) => ({
|
|
55
|
-
fontWeight: theme.typography.weight.black,
|
|
56
|
-
'> *': {
|
|
57
|
-
marginBottom: '1rem'
|
|
58
|
-
}
|
|
59
|
-
}));
|
|
60
|
-
const Type1 = styled.div(({
|
|
61
|
-
theme
|
|
62
|
-
}) => ({
|
|
63
|
-
fontSize: theme.typography.size.s3
|
|
64
|
-
}));
|
|
65
|
-
const Type2 = styled.div(({
|
|
66
|
-
theme
|
|
67
|
-
}) => ({
|
|
68
|
-
fontSize: theme.typography.size.s2
|
|
69
|
-
}));
|
|
70
|
-
const Type3 = styled.div(({
|
|
71
|
-
theme
|
|
72
|
-
}) => ({
|
|
73
|
-
fontSize: theme.typography.size.s1
|
|
74
|
-
}));
|
|
75
|
-
const TypeWrapper = styled.div({
|
|
76
|
-
'> *': {
|
|
77
|
-
marginBottom: '1rem'
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
const Wrapper = styled.div({
|
|
81
|
-
display: 'flex',
|
|
82
|
-
flexDirection: 'row',
|
|
83
|
-
'> *': {
|
|
84
|
-
flex: 1,
|
|
85
|
-
paddingRight: 40
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
const Page = styled.div({
|
|
89
|
-
padding: '3rem'
|
|
90
|
-
});
|
|
91
|
-
storiesOf('Basics/typography', module).add('all', () => /*#__PURE__*/React.createElement(Page, null, /*#__PURE__*/React.createElement(Info, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, "Font-family:"), " \"Nunito sans\", Apple system font ... sans-serif"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, "UI text size:"), " 13px"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, "Document/Markdown text size:"), " 14px"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, "Code font:"), " ", /*#__PURE__*/React.createElement("code", null, "Operator Mono, Fira Code, Consolas ... monospace")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, "Weights:"), " 400(normal), 600(bold), 900(black)")), /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(HeadingWrapper, null, /*#__PURE__*/React.createElement(Heading1, null, "48 heading"), /*#__PURE__*/React.createElement(Heading2, null, "40 heading"), /*#__PURE__*/React.createElement(Heading3, null, "32 heading"), /*#__PURE__*/React.createElement(Heading4, null, "28 heading"), /*#__PURE__*/React.createElement(Heading5, null, "24 heading"), /*#__PURE__*/React.createElement(Heading6, null, "20 heading"), /*#__PURE__*/React.createElement(Heading7, null, "16 heading"), /*#__PURE__*/React.createElement(Heading8, null, "14 heading"), /*#__PURE__*/React.createElement(Heading9, null, "12 heading")), /*#__PURE__*/React.createElement(TypeWrapper, null, /*#__PURE__*/React.createElement(Type1, null, "16 The quick brown fox jumps over the lazy dog"), /*#__PURE__*/React.createElement(Type2, null, "14 The quick brown fox jumps over the lazy dog"), /*#__PURE__*/React.createElement(Type3, null, "12 The quick brown fox jumps over the lazy dog")))));
|