@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.
Files changed (94) hide show
  1. package/dist/html.js +1 -1
  2. package/dist/typography/DocumentFormatting.js +2 -1
  3. package/dist/typography/DocumentWrapper.js +2 -2
  4. package/package.json +11 -5
  5. package/src/ActionBar/ActionBar.stories.tsx +0 -41
  6. package/src/ActionBar/ActionBar.tsx +0 -75
  7. package/src/Badge/Badge.stories.tsx +0 -11
  8. package/src/Badge/Badge.tsx +0 -68
  9. package/src/Button/Button.stories.tsx +0 -53
  10. package/src/Button/Button.tsx +0 -256
  11. package/src/ScrollArea/ScrollArea.stories.tsx +0 -85
  12. package/src/ScrollArea/ScrollArea.tsx +0 -62
  13. package/src/ScrollArea/ScrollAreaStyles.tsx +0 -166
  14. package/src/addon-panel/addon-panel.tsx +0 -33
  15. package/src/bar/bar.tsx +0 -93
  16. package/src/bar/button.ts +0 -89
  17. package/src/bar/separator.tsx +0 -39
  18. package/src/blocks/BlockBackgroundStyles.tsx +0 -9
  19. package/src/blocks/ColorPalette.stories.tsx +0 -29
  20. package/src/blocks/ColorPalette.tsx +0 -168
  21. package/src/blocks/Description.stories.tsx +0 -15
  22. package/src/blocks/Description.tsx +0 -18
  23. package/src/blocks/DocsPage.stories.tsx +0 -67
  24. package/src/blocks/DocsPage.tsx +0 -81
  25. package/src/blocks/DocsPageExampleCaption.md +0 -93
  26. package/src/blocks/DocsPageExampleCaption.mdx +0 -93
  27. package/src/blocks/EmptyBlock.stories.tsx +0 -9
  28. package/src/blocks/EmptyBlock.tsx +0 -23
  29. package/src/blocks/IFrame.tsx +0 -60
  30. package/src/blocks/IconGallery.stories.tsx +0 -32
  31. package/src/blocks/IconGallery.tsx +0 -72
  32. package/src/blocks/Preview.stories.tsx +0 -96
  33. package/src/blocks/Preview.tsx +0 -162
  34. package/src/blocks/PropsTable/PropDef.ts +0 -7
  35. package/src/blocks/PropsTable/PropRow.stories.tsx +0 -113
  36. package/src/blocks/PropsTable/PropRow.tsx +0 -102
  37. package/src/blocks/PropsTable/PropsTable.stories.tsx +0 -14
  38. package/src/blocks/PropsTable/PropsTable.tsx +0 -169
  39. package/src/blocks/Source.stories.tsx +0 -36
  40. package/src/blocks/Source.tsx +0 -72
  41. package/src/blocks/Story.stories.tsx +0 -25
  42. package/src/blocks/Story.tsx +0 -115
  43. package/src/blocks/Toolbar.tsx +0 -85
  44. package/src/blocks/Typeset.stories.tsx +0 -16
  45. package/src/blocks/Typeset.tsx +0 -68
  46. package/src/blocks/ZoomContext.tsx +0 -5
  47. package/src/blocks/index.ts +0 -10
  48. package/src/brand/StorybookIcon.stories.tsx +0 -6
  49. package/src/brand/StorybookIcon.tsx +0 -26
  50. package/src/brand/StorybookLogo.stories.tsx +0 -10
  51. package/src/brand/StorybookLogo.tsx +0 -33
  52. package/src/form/field/field.tsx +0 -42
  53. package/src/form/form.stories.tsx +0 -133
  54. package/src/form/index.tsx +0 -18
  55. package/src/form/input/input.tsx +0 -178
  56. package/src/html.tsx +0 -12
  57. package/src/icon/icon.stories.tsx +0 -77
  58. package/src/icon/icon.tsx +0 -22
  59. package/src/icon/icons.tsx +0 -310
  60. package/src/icon/svg.tsx +0 -24
  61. package/src/index.ts +0 -37
  62. package/src/placeholder/placeholder.stories.tsx +0 -24
  63. package/src/placeholder/placeholder.tsx +0 -25
  64. package/src/spaced/Spaced.stories.tsx +0 -72
  65. package/src/spaced/Spaced.tsx +0 -69
  66. package/src/syntaxhighlighter/formatter.test.js +0 -90
  67. package/src/syntaxhighlighter/formatter.ts +0 -26
  68. package/src/syntaxhighlighter/syntaxhighlighter.stories.tsx +0 -136
  69. package/src/syntaxhighlighter/syntaxhighlighter.tsx +0 -165
  70. package/src/tabs/tabs.stories.tsx +0 -207
  71. package/src/tabs/tabs.tsx +0 -252
  72. package/src/tooltip/ListItem.stories.tsx +0 -35
  73. package/src/tooltip/ListItem.tsx +0 -245
  74. package/src/tooltip/Tooltip.stories.tsx +0 -42
  75. package/src/tooltip/Tooltip.tsx +0 -146
  76. package/src/tooltip/TooltipLinkList.stories.tsx +0 -52
  77. package/src/tooltip/TooltipLinkList.tsx +0 -49
  78. package/src/tooltip/TooltipMessage.stories.tsx +0 -37
  79. package/src/tooltip/TooltipMessage.tsx +0 -67
  80. package/src/tooltip/TooltipNote.stories.tsx +0 -15
  81. package/src/tooltip/TooltipNote.tsx +0 -25
  82. package/src/tooltip/WithTooltip.stories.tsx +0 -85
  83. package/src/tooltip/WithTooltip.tsx +0 -159
  84. package/src/typings.d.ts +0 -4
  85. package/src/typography/DocumentFormatting.tsx +0 -355
  86. package/src/typography/DocumentFormattingSample.md +0 -127
  87. package/src/typography/DocumentWrapper.stories.tsx +0 -190
  88. package/src/typography/DocumentWrapper.tsx +0 -441
  89. package/src/typography/link/link.stories.tsx +0 -67
  90. package/src/typography/link/link.test.tsx +0 -108
  91. package/src/typography/link/link.tsx +0 -223
  92. package/src/typography/typography.stories.tsx +0 -111
  93. package/src/typography/withReset.tsx +0 -12
  94. package/tsconfig.json +0 -18
@@ -1,127 +0,0 @@
1
- # h1 Heading
2
-
3
- ## h2 Heading
4
-
5
- ### h3 Heading
6
-
7
- #### h4 Heading
8
-
9
- ##### h5 Heading
10
-
11
- ###### h6 Heading
12
-
13
- ## Typographic replacements
14
-
15
- Enable typographer option to see result.
16
-
17
- (c) (C) (r) (R) (tm) (TM) (p) (P) +-
18
-
19
- test.. test... test..... test?..... test!....
20
-
21
- !!!!!! ???? ,, -- ---
22
-
23
- "Smartypants, double quotes" and 'single quotes'
24
-
25
- ## Emphasis
26
-
27
- **This is bold text**
28
-
29
- **This is bold text**
30
-
31
- _This is italic text_
32
-
33
- _This is italic text_
34
-
35
- ~~Strikethrough~~
36
-
37
- ## Blockquotes
38
-
39
- > Blockquotes can also be nested...
40
- >
41
- > > ...by using additional greater-than signs right next to each other...
42
- > >
43
- > > > ...or with spaces between arrows.
44
-
45
- ## Lists
46
-
47
- Unordered
48
-
49
- - Create a list by starting a line with `+`, `-`, or `*`
50
- - Sub-lists are made by indenting 2 spaces:
51
- - Marker character change forces new list start:
52
- - Ac tristique libero volutpat at
53
- * Facilisis in pretium nisl aliquet
54
- - Nulla volutpat aliquam velit
55
- - Very easy!
56
-
57
- Ordered
58
-
59
- 1. Lorem ipsum dolor sit amet
60
- 2. Consectetur adipiscing elit
61
- 3. Integer molestie lorem at massa
62
-
63
- 1) You can use sequential numbers...
64
- 1) ...or keep all the numbers as `1.`
65
-
66
- Start numbering with offset:
67
-
68
- 57. foo
69
- 1. bar
70
-
71
- ## Code
72
-
73
- Inline `code`
74
-
75
- Indented code
76
-
77
- // Some comments
78
- line 1 of code
79
- line 2 of code
80
- line 3 of code
81
-
82
- Block code "fences"
83
-
84
- ```
85
- Sample text here...
86
- ```
87
-
88
- Syntax highlighting
89
-
90
- ```js
91
- var foo = function(bar) {
92
- return bar++;
93
- };
94
-
95
- console.log(foo(5));
96
- ```
97
-
98
- ## Tables
99
-
100
- | Option | Description |
101
- | ------ | ------------------------------------------------------------------------- |
102
- | data | path to data files to supply the data that will be passed into templates. |
103
- | engine | engine to be used for processing templates. Handlebars is the default. |
104
- | ext | extension to be used for dest files. |
105
-
106
- Right aligned columns
107
-
108
- | Option | Description |
109
- | -----: | ------------------------------------------------------------------------: |
110
- | data | path to data files to supply the data that will be passed into templates. |
111
- | engine | engine to be used for processing templates. Handlebars is the default. |
112
- | ext | extension to be used for dest files. |
113
-
114
- ## Links
115
-
116
- [link text](http://dev.nodeca.com)
117
-
118
- [link with title](http://nodeca.github.io/pica/demo/ 'title text!')
119
-
120
- <!--lint disable no-literal-urls-->
121
- Autoconverted link https://github.com/nodeca/pica (enable linkify to see)
122
- <!--lint enable no-literal-urls-->
123
-
124
- ## Images
125
-
126
- ![Minion](https://octodex.github.com/images/minion.png)
127
- ![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg 'The Stormtroopocat')
@@ -1,190 +0,0 @@
1
- import React from 'react';
2
-
3
- import Markdown from 'markdown-to-jsx';
4
- import { DocumentWrapper } from './DocumentWrapper';
5
- import markdownSample from './DocumentFormattingSample.md';
6
-
7
- export default {
8
- component: DocumentWrapper,
9
- title: 'Basics|DocumentFormatting',
10
- decorators: [
11
- (storyFn: any) => (
12
- <div
13
- style={{ width: '600px', margin: '3rem auto', padding: '40px 20px', background: 'white' }}
14
- >
15
- {storyFn()}
16
- </div>
17
- ),
18
- ],
19
- };
20
-
21
- export const withMarkdown = () => (
22
- <DocumentWrapper>
23
- <Markdown>{markdownSample}</Markdown>
24
- </DocumentWrapper>
25
- );
26
-
27
- export const withDOM = () => (
28
- <DocumentWrapper>
29
- <h1>h1 Heading</h1>
30
- <h2>h2 Heading</h2>
31
- <h3>h3 Heading</h3>
32
- <h4>h4 Heading</h4>
33
- <h5>h5 Heading</h5>
34
- <h6>h6 Heading</h6>
35
- <h2>Typographic replacements</h2>
36
- <p>Enable typographer option to see result.</p>
37
- <p>© © ® ® ™ ™ § § ±</p>
38
- <p>test… test… test… test?.. test!..</p>
39
- <p>!!! ??? , – —</p>
40
- <p>“Smartypants, double quotes” and ‘single quotes’</p>
41
- <h2>Emphasis</h2>
42
- <p>
43
- <strong>This is bold text</strong>
44
- </p>
45
- <p>
46
- <strong>This is bold text</strong>
47
- </p>
48
- <p>
49
- <em>This is italic text</em>
50
- </p>
51
- <p>
52
- <em>This is italic text</em>
53
- </p>
54
- <p>
55
- <s>Strikethrough</s>
56
- </p>
57
- <h2>Blockquotes</h2>
58
- <blockquote>
59
- <p>Blockquotes can also be nested…</p>
60
- <blockquote>
61
- <p>…by using additional greater-than signs right next to each other…</p>
62
- <blockquote>
63
- <p>…or with spaces between arrows.</p>
64
- </blockquote>
65
- </blockquote>
66
- </blockquote>
67
- <h2>Lists</h2>
68
- <p>Unordered</p>
69
- <ul>
70
- <li>
71
- Create a list by starting a line with <code>+</code>, <code>-</code>, or <code>*</code>
72
- </li>
73
- <li>
74
- Sub-lists are made by indenting 2 spaces:
75
- <ul>
76
- <li>
77
- Marker character change forces new list start:
78
- <ul>
79
- <li>Ac tristique libero volutpat at</li>
80
- </ul>
81
- <ul>
82
- <li>Facilisis in pretium nisl aliquet</li>
83
- </ul>
84
- <ul>
85
- <li>Nulla volutpat aliquam velit</li>
86
- </ul>
87
- </li>
88
- </ul>
89
- </li>
90
- <li>Very easy!</li>
91
- </ul>
92
- <p>Ordered</p>
93
- <ol>
94
- <li>
95
- <p>Lorem ipsum dolor sit amet</p>
96
- </li>
97
- <li>
98
- <p>Consectetur adipiscing elit</p>
99
- </li>
100
- <li>
101
- <p>Integer molestie lorem at massa</p>
102
- </li>
103
- <li>
104
- <p>You can use sequential numbers…</p>
105
- </li>
106
- <li>
107
- <p>
108
- …or keep all the numbers as <code>1.</code>
109
- </p>
110
- </li>
111
- </ol>
112
- <p>Start numbering with offset:</p>
113
- <ol start={57}>
114
- <li>foo</li>
115
- <li>bar</li>
116
- </ol>
117
- <h2>Tables</h2>
118
- <table>
119
- <thead>
120
- <tr>
121
- <th>Option</th>
122
- <th>Description</th>
123
- </tr>
124
- </thead>
125
- <tbody>
126
- <tr>
127
- <td>data</td>
128
- <td>path to data files to supply the data that will be passed into templates.</td>
129
- </tr>
130
- <tr>
131
- <td>engine</td>
132
- <td>engine to be used for processing templates. Handlebars is the default.</td>
133
- </tr>
134
- <tr>
135
- <td>ext</td>
136
- <td>extension to be used for dest files.</td>
137
- </tr>
138
- </tbody>
139
- </table>
140
- <p>Right aligned columns</p>
141
- <table>
142
- <thead>
143
- <tr>
144
- <th style={{ textAlign: 'right' }}>Option</th>
145
- <th style={{ textAlign: 'right' }}>Description</th>
146
- </tr>
147
- </thead>
148
- <tbody>
149
- <tr>
150
- <td style={{ textAlign: 'right' }}>data</td>
151
- <td style={{ textAlign: 'right' }}>
152
- path to data files to supply the data that will be passed into templates.
153
- </td>
154
- </tr>
155
- <tr>
156
- <td style={{ textAlign: 'right' }}>engine</td>
157
- <td style={{ textAlign: 'right' }}>
158
- engine to be used for processing templates. Handlebars is the default.
159
- </td>
160
- </tr>
161
- <tr>
162
- <td style={{ textAlign: 'right' }}>ext</td>
163
- <td style={{ textAlign: 'right' }}>extension to be used for dest files.</td>
164
- </tr>
165
- </tbody>
166
- </table>
167
- <h2>Links</h2>
168
- <p>
169
- <a href="http://dev.nodeca.com">link text</a>
170
- </p>
171
- <p>
172
- <a href="http://nodeca.github.io/pica/demo/" title="title text!">
173
- link with title
174
- </a>
175
- </p>
176
- <p>
177
- Autoconverted link <a href="https://github.com/nodeca/pica">https://github.com/nodeca/pica</a>{' '}
178
- (enable linkify to see)
179
- </p>
180
- <h2>Images</h2>
181
- <p>
182
- <img src="https://octodex.github.com/images/minion.png" alt="Minion" />
183
- <img
184
- src="https://octodex.github.com/images/stormtroopocat.jpg"
185
- alt="Stormtroopocat"
186
- title="The Stormtroopocat"
187
- />
188
- </p>
189
- </DocumentWrapper>
190
- );