810 Commits

Author SHA1 Message Date
Michael Shilman
5989fd2bb2 Merge branch 'next' into 1009-async-loaders 2020-10-10 10:48:39 +08:00
Michael Shilman
2bb142ac65 Add global & story loaders 2020-10-08 14:00:35 +08:00
Michael Shilman
9c4ba3537d Namespace loader results as "loaded" 2020-10-08 14:00:11 +08:00
Andrew Salib
958e7ed5a8 fix(addon-docs): only support forwardRef outer propTypes
Attaching propTypes to forwardRef component's inner render fn doesn't make sense, so we are only supporting outer propTypes. Keeping inner proptypes story to show it doesn't work & isn't recommended.
2020-10-08 10:33:41 +11:00
Andrew Salib
b71a1c5a10 addon-docs: use new exotic components in docs stories
Now showing off that argstable works w/ Memo components & also Forward Ref w/ propTypes on render fn (inner) or on wrapped component (outer).
2020-10-07 16:41:50 +11:00
Michael Shilman
c1ff295246 Merge branch 'next' into 10009-poc-async-loaders 2020-10-07 12:23:34 +08:00
Andrew Salib
861e9b08ce fix(official-storybook): cleanup 2020-10-05 15:27:16 +11:00
Andrew Salib
2c63dc63e7 fix(official-storybook): use existing forward-ref story 2020-10-05 15:22:31 +11:00
Andrew Salib
1b7f55000e fix(official-storybook): fix displayName for memo & add forward-ref example
Component should be fed directly to React.memo|forwardRef functions so that displayName is set. Previously was passing an anonymous arrow fn...
2020-10-05 14:46:37 +11:00
Michael Shilman
f80bc26810 Add React.memo dynamic snippet to official-storybook 2020-10-03 14:33:16 +08:00
Michael Shilman
2dee98f955
Merge pull request #12590 from jsoref/spelling
Fix spelling errors
2020-09-30 18:23:06 +08:00
Josh Soref
0dfcbd10aa spelling: webpage
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-09-29 09:42:32 -04:00
Josh Soref
02cf622559 spelling: another's
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-09-27 16:14:47 -04:00
Michael Shilman
fc3549b1a7 Title splitting test case 2020-09-26 09:44:19 +08:00
Yann Braga
bc90fab518 fix(backgrounds): apply styles in correct order
- Make background also work with gradients and images
2020-09-24 14:58:27 +02:00
Yann Braga
97277fd00f chore: update backgrounds examples in official storybook 2020-09-24 14:58:26 +02:00
Yann Braga
deb453ecb7 fix(fast-refresh): set babel plugin correctly in the preset
- Rather than in the webpack config, set it in babel, so that
 there aren't multiple loaders and instead just the plugin is added
 together with the presets.
 Examples were moved to cra-kitchen-sink because official removes
 the babel-loader taht comes from storybook.
2020-09-21 16:53:12 +02:00
Clément DUNGLER
d789ea53fa Merge remote-tracking branch 'origin/next' into react/refresh2 2020-09-14 23:02:08 +02:00
Yann Braga
a3db517a7a add react refresh example 2020-09-14 12:52:15 +02:00
Clément DUNGLER
688b3891cb WIP 2020-09-14 09:11:44 +02:00
Fabien Rassinier
ab4d4b451e adjust canvas demo 2020-09-11 02:15:16 +02:00
Fabien Rassinier
92ca7f04aa use canvas demo 2020-09-11 01:56:25 +02:00
Blaine Bublitz
1162772cf6
SourceType enum values are lowercase
Co-authored-by: Michael Shilman <shilman@users.noreply.github.com>
2020-09-09 18:54:42 -07:00
Blaine Bublitz
d41baf3d25 Small cleanup fix 2020-09-09 17:46:00 -07:00
Blaine Bublitz
220e89afdb Add example to official-storybook 2020-09-09 17:45:26 -07:00
Michael Shilman
1b399dbd5a Add repro for #12153 2020-08-25 13:11:12 +08:00
Michael Shilman
6319946c5a Don't use templates with default args 2020-08-25 13:10:38 +08:00
Michael Shilman
698ec24483
Merge pull request #12003 from storybookjs/fix/a11yManualRun
Addon-A11y: Fix manual run & timeline
2020-08-18 19:19:30 +08:00
Michael Shilman
0459349271 Addon-docs: Fix CSF names importing in MDX 2020-08-15 10:22:57 +08:00
Michael Shilman
4b5f29b3fc ArgsTable: Add warning when subcomponents is an array 2020-08-15 02:06:00 +08:00
tooppaaa
ec047c25c1 Addon-A11y: fix manual run & timeline 2020-08-13 23:23:54 +02:00
Michael Shilman
e220ba13dd Add more visible test cases 2020-08-11 18:30:00 +08:00
Michael Shilman
d866128522 React CSF types: Rename entry point, split out base types 2020-08-06 17:43:29 +08:00
Michael Shilman
25146ff859 React types WIP 2020-08-05 19:04:08 +08:00
Michael Shilman
8eb9ce79e8
Merge pull request #11770 from ajkl2533/11393
Addon-docs: Fix link font size to inherit
2020-08-03 21:05:21 +08:00
Radek Podrazky
481a3addcb fix(DocumentFormatting): inherit font size in links 2020-08-03 13:56:54 +02:00
Akira Sudoh
f25cd64da6 Merge remote-tracking branch 'upstream/next' into uri-encoding-next 2020-08-03 14:36:29 +09:00
Michael Shilman
29eef0b871 Official-storybook: Fix missing import 2020-08-03 11:03:29 +08:00
Michael Shilman
ecd9a41611 Addon-docs: Add docs.description parameter 2020-08-02 19:58:34 +08:00
Michael Shilman
3e128bcf83 Update csf-with-mdx-docs.stories.mdx 2020-08-01 16:30:00 +08:00
Michael Shilman
e85a4f2a9b Addon-docs: Add Story.story for CSF stories with MDX docs 2020-08-01 14:00:23 +08:00
Michael Shilman
201ae325cc Addon-docs: Rename Preview/Props to Canvas/ArgsTable 2020-07-31 14:10:07 +08:00
Jon Palmer
111d5f31b1
Failing test case for Controls with names not updating 2020-07-29 09:18:12 -04:00
Akira Sudoh
0fc8d477b9 fix(preview): uri-encode search params
This change applies basic URI encoding to knob keys/values in
`<iframe>` URL and torn-away window URL in preview.

Fixes storybookjs#11641.
2020-07-22 19:59:16 +09:00
Tom Coleman
2dff01ff3b
Update examples/official-storybook/stories/core/prefix.stories.js
Co-authored-by: Michael Shilman <shilman@users.noreply.github.com>
2020-07-22 15:50:39 +10:00
Tom Coleman
dea3738449 Add prefix stories to replicate #11571 2020-07-22 13:46:04 +10:00
Michael Shilman
920b9a7833
Merge pull request #11619 from storybookjs/11586-fix-args-refresh
Addon-controls: Fix undefined args handling
2020-07-20 20:01:13 +08:00
Michael Shilman
8699df2568 Controls: Allow optional input values and add stories 2020-07-20 16:54:10 +08:00
Tom Coleman
831d30a8ec Stop using deprecated hierarchy separators 2020-07-20 14:04:24 +10:00
Tom Coleman
36e5acf484 Add stories to reproduce #11586 2020-07-20 12:29:02 +10:00