@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.
Files changed (120) hide show
  1. package/dist/cjs/ActionBar/ActionBar.stories.js +7 -7
  2. package/dist/cjs/ScrollArea/GlobalScrollAreaStyles.js +1 -1
  3. package/dist/cjs/ScrollArea/ScrollArea.stories.js +13 -13
  4. package/dist/cjs/Zoom/Zoom.stories.js +22 -22
  5. package/dist/cjs/bar/bar.js +5 -3
  6. package/dist/cjs/bar/button.js +64 -26
  7. package/dist/cjs/bar/button.stories.js +90 -0
  8. package/dist/cjs/bar/separator.js +4 -2
  9. package/dist/cjs/blocks/ArgsTable/ArgRow.js +18 -6
  10. package/dist/cjs/blocks/ArgsTable/ArgRow.stories.js +6 -1
  11. package/dist/cjs/blocks/ArgsTable/ArgsTable.js +125 -32
  12. package/dist/cjs/blocks/ArgsTable/ArgsTable.stories.js +6 -1
  13. package/dist/cjs/blocks/ColorPalette.stories.js +4 -4
  14. package/dist/cjs/blocks/DocsPage.stories.js +9 -2
  15. package/dist/cjs/blocks/EmptyBlock.stories.js +4 -4
  16. package/dist/cjs/blocks/IconGallery.stories.js +4 -4
  17. package/dist/cjs/blocks/Preview.js +13 -2
  18. package/dist/cjs/blocks/Preview.stories.js +8 -1
  19. package/dist/cjs/blocks/Source.js +57 -8
  20. package/dist/cjs/blocks/Source.stories.js +11 -1
  21. package/dist/cjs/blocks/Story.js +11 -2
  22. package/dist/cjs/blocks/Story.stories.js +11 -1
  23. package/dist/cjs/blocks/Typeset.stories.js +13 -13
  24. package/dist/cjs/brand/StorybookLogo.stories.js +4 -4
  25. package/dist/cjs/icon/icons.js +2 -0
  26. package/dist/cjs/placeholder/placeholder.stories.js +7 -7
  27. package/dist/cjs/tabs/tabs.js +1 -1
  28. package/dist/cjs/tooltip/TooltipNote.js +1 -1
  29. package/dist/cjs/typography/DocumentFormatting.js +15 -4
  30. package/dist/cjs/typography/DocumentWrapper.stories.js +7 -7
  31. package/dist/cjs/typography/link/link.js +2 -2
  32. package/dist/cjs/typography/typography.stories.mdx +75 -0
  33. package/dist/esm/ActionBar/ActionBar.stories.js +4 -4
  34. package/dist/esm/ScrollArea/GlobalScrollAreaStyles.js +1 -1
  35. package/dist/esm/ScrollArea/ScrollArea.stories.js +8 -8
  36. package/dist/esm/Zoom/Zoom.stories.js +15 -15
  37. package/dist/esm/bar/bar.js +5 -3
  38. package/dist/esm/bar/button.js +56 -25
  39. package/dist/esm/bar/button.stories.js +56 -0
  40. package/dist/esm/bar/separator.js +4 -2
  41. package/dist/esm/blocks/ArgsTable/ArgRow.js +15 -5
  42. package/dist/esm/blocks/ArgsTable/ArgRow.stories.js +4 -0
  43. package/dist/esm/blocks/ArgsTable/ArgsTable.js +123 -32
  44. package/dist/esm/blocks/ArgsTable/ArgsTable.stories.js +4 -0
  45. package/dist/esm/blocks/ColorPalette.stories.js +2 -2
  46. package/dist/esm/blocks/DocsPage.stories.js +5 -1
  47. package/dist/esm/blocks/EmptyBlock.stories.js +2 -2
  48. package/dist/esm/blocks/IconGallery.stories.js +2 -2
  49. package/dist/esm/blocks/Preview.js +8 -3
  50. package/dist/esm/blocks/Preview.stories.js +5 -1
  51. package/dist/esm/blocks/Source.js +56 -8
  52. package/dist/esm/blocks/Source.stories.js +7 -0
  53. package/dist/esm/blocks/Story.js +7 -1
  54. package/dist/esm/blocks/Story.stories.js +8 -1
  55. package/dist/esm/blocks/Typeset.stories.js +8 -8
  56. package/dist/esm/brand/StorybookLogo.stories.js +2 -2
  57. package/dist/esm/icon/icons.js +2 -0
  58. package/dist/esm/placeholder/placeholder.stories.js +4 -4
  59. package/dist/esm/tabs/tabs.js +1 -1
  60. package/dist/esm/tooltip/TooltipNote.js +1 -1
  61. package/dist/esm/typography/DocumentFormatting.js +12 -3
  62. package/dist/esm/typography/DocumentWrapper.stories.js +4 -4
  63. package/dist/esm/typography/link/link.js +2 -2
  64. package/dist/esm/typography/typography.stories.mdx +75 -0
  65. package/dist/modern/ActionBar/ActionBar.stories.js +4 -4
  66. package/dist/modern/ScrollArea/GlobalScrollAreaStyles.js +1 -1
  67. package/dist/modern/ScrollArea/ScrollArea.stories.js +8 -8
  68. package/dist/modern/Zoom/Zoom.stories.js +15 -15
  69. package/dist/modern/bar/bar.js +5 -3
  70. package/dist/modern/bar/button.js +48 -24
  71. package/dist/modern/bar/button.stories.js +42 -0
  72. package/dist/modern/bar/separator.js +4 -2
  73. package/dist/modern/blocks/ArgsTable/ArgRow.js +9 -1
  74. package/dist/modern/blocks/ArgsTable/ArgRow.stories.js +4 -0
  75. package/dist/modern/blocks/ArgsTable/ArgsTable.js +99 -12
  76. package/dist/modern/blocks/ArgsTable/ArgsTable.stories.js +4 -0
  77. package/dist/modern/blocks/ColorPalette.stories.js +2 -2
  78. package/dist/modern/blocks/DocsPage.stories.js +3 -1
  79. package/dist/modern/blocks/EmptyBlock.stories.js +2 -2
  80. package/dist/modern/blocks/IconGallery.stories.js +2 -2
  81. package/dist/modern/blocks/Preview.js +6 -3
  82. package/dist/modern/blocks/Preview.stories.js +3 -1
  83. package/dist/modern/blocks/Source.js +44 -0
  84. package/dist/modern/blocks/Source.stories.js +5 -0
  85. package/dist/modern/blocks/Story.js +5 -1
  86. package/dist/modern/blocks/Story.stories.js +6 -1
  87. package/dist/modern/blocks/Typeset.stories.js +8 -8
  88. package/dist/modern/brand/StorybookLogo.stories.js +2 -2
  89. package/dist/modern/icon/icons.js +2 -0
  90. package/dist/modern/placeholder/placeholder.stories.js +4 -4
  91. package/dist/modern/tabs/tabs.js +1 -1
  92. package/dist/modern/tooltip/TooltipNote.js +1 -1
  93. package/dist/modern/typography/DocumentFormatting.js +7 -2
  94. package/dist/modern/typography/DocumentWrapper.stories.js +4 -4
  95. package/dist/modern/typography/link/link.js +2 -2
  96. package/dist/modern/typography/typography.stories.mdx +75 -0
  97. package/dist/ts3.4/ScrollArea/GlobalScrollAreaStyles.d.ts +1 -0
  98. package/dist/ts3.4/bar/button.d.ts +2 -0
  99. package/dist/ts3.4/blocks/ArgsTable/ArgRow.d.ts +7 -1
  100. package/dist/ts3.4/blocks/ArgsTable/ArgsTable.d.ts +8 -2
  101. package/dist/ts3.4/blocks/ArgsTable/NoControlsWarning.d.ts +1 -0
  102. package/dist/ts3.4/blocks/EmptyBlock.d.ts +1 -0
  103. package/dist/ts3.4/blocks/Preview.d.ts +2 -2
  104. package/dist/ts3.4/blocks/Source.d.ts +1 -0
  105. package/dist/ts3.4/blocks/Story.d.ts +4 -3
  106. package/dist/ts3.4/icon/icons.d.ts +2 -0
  107. package/dist/ts3.9/ScrollArea/GlobalScrollAreaStyles.d.ts +1 -0
  108. package/dist/ts3.9/bar/button.d.ts +2 -0
  109. package/dist/ts3.9/blocks/ArgsTable/ArgRow.d.ts +7 -1
  110. package/dist/ts3.9/blocks/ArgsTable/ArgsTable.d.ts +8 -2
  111. package/dist/ts3.9/blocks/ArgsTable/NoControlsWarning.d.ts +1 -0
  112. package/dist/ts3.9/blocks/EmptyBlock.d.ts +1 -0
  113. package/dist/ts3.9/blocks/Preview.d.ts +2 -2
  114. package/dist/ts3.9/blocks/Source.d.ts +1 -0
  115. package/dist/ts3.9/blocks/Story.d.ts +4 -3
  116. package/dist/ts3.9/icon/icons.d.ts +2 -0
  117. package/package.json +5 -5
  118. package/dist/cjs/typography/typography.stories.js +0 -130
  119. package/dist/esm/typography/typography.stories.js +0 -106
  120. 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")))));