refactor(styleguide): include all components
*
Renders ui components, pubsweet components, and xpub components in the same styleguide. Notes:
- It was necessary to fix several problems in the xpub components where the API of the component had changed and the documentation had not been updated. In
ReviewerLayout
I had to change the component itself, which contained a bug. - I also noted an issue with a thinslices component (@bogdan), where js provided in the readme was not such as could be rendered by Styleguidist (I changed it to
js static
instead). - I added the journal provider to the wrapper, but this should at some point be removed and added to each example where it is needed, like here: https://gitlab.coko.foundation/pubsweet/pubsweet/merge_requests/new/diffs?merge_request%5Bsource_branch%5D=global-styleguide#0574056580984da4380ee34ca44f32ea2a6d5bb9_35_29
- Had to rename a component to fix a name clash: https://gitlab.coko.foundation/pubsweet/pubsweet/merge_requests/new/diffs?merge_request%5Bsource_branch%5D=global-styleguide#6d994785391a0a4fbd55aa87d23a6bdaa3e855dd_51_50
- Added
key
props in a couple of places where it was missing. - Fixes a bug in
File
TL; DR we need some TESTS!!!!!
Deploys on other branches will be broken till this is merged.
When this PR on Styleguidist is merged we should update accordingly