Skip to content

Commit f46550b

Browse files
authored
Merge pull request #21 from idesigncode/storybook
Storybook improvements
2 parents 2ed20a3 + 2f6ca29 commit f46550b

25 files changed

+115
-114
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ __snapshots__/failed/
1919

2020
# Build files
2121
storybook-static/
22-
/exampleFunction.mjs
23-
/exampleStyles.css
24-
/ExampleComponent.mjs
22+
/SampleComponent.mjs
23+
/sampleFunction.mjs
24+
/sampleStyles.css

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Quickly setup ESM React repositories with preconfigured functionality.
99

1010
## Usage
1111

12-
Remove/replace the example source files in the `src` directory with your own.
12+
Remove/replace the sample source files in `src` & `stories` with your own.
1313

1414
When adding source files, remember to add the build output file details to the `files` & `exports` fields of [package.json](package.json) and [.gitignore](.gitignore).
1515

-26.6 KB
Binary file not shown.
-44.1 KB
Binary file not shown.
-13.1 KB
Binary file not shown.
25.3 KB
Loading
42.3 KB
Loading

__snapshots__/examplecomponent.test.js.snap renamed to __snapshots__/samplecomponent.test.js.snap

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`ExampleComponent Example test 1`] = `
3+
exports[`SampleComponent Example test 1`] = `
44
<div class="example sb-unstyled">
5-
<input class="ExampleComponentWithProps"
6-
data-testid="ExampleComponent"
5+
<input class="SampleComponent"
6+
data-testid="SampleComponent"
77
value="test"
88
>
99
</div>
@@ -42,7 +42,7 @@ exports[`ExampleComponent Example test 1`] = `
4242
style="white-space: pre;"
4343
>
4444
<span class="token string">
45-
"ExampleComponentWithProps"
45+
"SampleComponent"
4646
</span>
4747
</code>
4848
</pre>
@@ -173,7 +173,7 @@ exports[`ExampleComponent Example test 1`] = `
173173
</div>
174174
`;
175175
176-
exports[`ExampleComponent Implementation test 1`] = `
176+
exports[`SampleComponent Implementation test 1`] = `
177177
<div class="Source sb-unstyled ">
178178
<pre class="prismjs">
179179
<code class="language-jsx"
@@ -204,15 +204,15 @@ exports[`ExampleComponent Implementation test 1`] = `
204204
import
205205
</span>
206206
<span class>
207-
ExampleComponent
207+
SampleComponent
208208
</span>
209209
<span class="token keyword">
210210
from
211211
</span>
212212
<span class>
213213
</span>
214214
<span class="token string">
215-
"template-esm-react/ExampleComponent.mjs"
215+
"template-esm-react/SampleComponent.mjs"
216216
</span>
217217
<span class="token punctuation">
218218
;
@@ -227,7 +227,7 @@ exports[`ExampleComponent Implementation test 1`] = `
227227
<span class>
228228
</span>
229229
<span class="token function-variable function">
230-
ExampleComponentWithProps
230+
SampleComponentExample
231231
</span>
232232
<span class>
233233
</span>
@@ -322,7 +322,7 @@ exports[`ExampleComponent Implementation test 1`] = `
322322
&lt;
323323
</span>
324324
<span class="token tag class-name">
325-
ExampleComponent
325+
SampleComponent
326326
</span>
327327
<span class="token tag">
328328
</span>
@@ -394,7 +394,7 @@ exports[`ExampleComponent Implementation test 1`] = `
394394
"
395395
</span>
396396
<span class="token tag attr-value">
397-
ExampleComponentWithProps
397+
SampleComponent
398398
</span>
399399
<span class="token tag attr-value punctuation">
400400
"
@@ -458,7 +458,7 @@ exports[`ExampleComponent Implementation test 1`] = `
458458
default
459459
</span>
460460
<span class>
461-
ExampleComponentWithProps
461+
SampleComponentExample
462462
</span>
463463
<span class="token punctuation">
464464
;
8.14 KB
Loading
12.9 KB
Loading

0 commit comments

Comments
 (0)