├── .nvmrc ├── .npmignore ├── test ├── empty.js ├── apps │ ├── defaults │ │ ├── src │ │ │ └── components │ │ │ │ ├── Button.js │ │ │ │ ├── Button.md │ │ │ │ └── Placeholder.js │ │ ├── package.json │ │ └── styleguide.config.js │ ├── no-webpack │ │ ├── package.json │ │ └── styleguide.config.js │ ├── basic │ │ ├── package.json │ │ ├── webpack.config.js │ │ └── styleguide.config.js │ └── cra │ │ └── package.json ├── components │ ├── Placeholder │ │ ├── examples.md │ │ ├── Placeholder.md │ │ └── Placeholder.json │ ├── .eslintrc │ ├── Label │ │ ├── Label.md │ │ └── index.js │ ├── Annotation │ │ └── Annotation.js │ ├── Button │ │ ├── Readme.md │ │ └── Button.js │ ├── RandomButton │ │ └── RandomButton.js │ └── Price │ │ └── Price.js ├── cypress │ ├── .eslintrc │ ├── fixtures │ │ └── example.json │ ├── plugins │ │ └── index.js │ └── support │ │ └── index.js ├── data │ ├── webpack.config.js │ ├── webpack.config.func.js │ ├── badconfig.config.js │ └── styleguide.config.js ├── classes.js ├── raf-polyfill.js ├── run.build.js └── jestsetup.js ├── examples ├── cra │ ├── .env │ ├── src │ │ ├── components │ │ │ ├── Placeholder.css │ │ │ ├── Placeholder.md │ │ │ ├── RandomButton.md │ │ │ ├── Button.css │ │ │ ├── RandomButton.css │ │ │ ├── Button.js │ │ │ └── RandomButton.js │ │ ├── index.css │ │ ├── index.js │ │ ├── App.test.js │ │ ├── App.css │ │ └── App.js │ ├── public │ │ └── favicon.ico │ ├── styleguide.config.js │ └── Readme.md ├── react-native │ ├── .watchmanconfig │ ├── src │ │ ├── Root.md │ │ └── SimpleCard.md │ ├── App.js │ ├── .gitignore │ ├── assets │ │ ├── icon.png │ │ └── splash.png │ ├── babel.config.js │ ├── .editorconfig │ └── app.json ├── sections │ ├── styleguide │ │ └── CNAME │ ├── src │ │ ├── components │ │ │ ├── Button │ │ │ │ ├── index.js │ │ │ │ ├── Button.css │ │ │ │ └── Button.js │ │ │ ├── Label │ │ │ │ ├── index.js │ │ │ │ ├── Readme.md │ │ │ │ └── Label.js │ │ │ ├── MyLabel │ │ │ │ ├── index.js │ │ │ │ ├── Readme.md │ │ │ │ └── Label.js │ │ │ ├── Placeholder │ │ │ │ ├── index.js │ │ │ │ ├── Placeholder.css │ │ │ │ ├── _Readme.md │ │ │ │ └── Example.md │ │ │ ├── ThemeButton │ │ │ │ ├── index.js │ │ │ │ ├── ThemeButton.css │ │ │ │ ├── Readme.md │ │ │ │ └── ThemeButton.js │ │ │ ├── RandomButton │ │ │ │ ├── index.js │ │ │ │ ├── RandomButton.css │ │ │ │ └── RandomButton.js │ │ │ └── WrappedButton │ │ │ │ ├── index.js │ │ │ │ ├── Readme.md │ │ │ │ └── WrappedButton.js │ │ └── ThemeContext.js │ ├── docs │ │ ├── Two.md │ │ └── Components.md │ ├── babel.config.js │ └── Readme.md ├── basic │ ├── src │ │ └── components │ │ │ ├── Button │ │ │ ├── index.js │ │ │ └── Button.css │ │ │ ├── PushButton │ │ │ ├── index.js │ │ │ └── PushButton.css │ │ │ ├── Placeholder │ │ │ ├── index.js │ │ │ ├── Readme.md │ │ │ └── Placeholder.css │ │ │ ├── CounterButton │ │ │ ├── index.js │ │ │ └── Readme.md │ │ │ ├── WrappedButton │ │ │ ├── index.js │ │ │ ├── Readme.md │ │ │ └── WrappedButton.css │ │ │ ├── RandomButton │ │ │ ├── index.js │ │ │ ├── Readme.md │ │ │ └── RandomButton.css │ │ │ └── Label │ │ │ ├── Label.md │ │ │ └── index.js │ ├── babel.config.js │ ├── Readme.md │ └── styleguide.config.js ├── preact │ ├── src │ │ └── components │ │ │ ├── Button │ │ │ ├── index.js │ │ │ ├── Button.css │ │ │ └── Button.js │ │ │ ├── CounterButton │ │ │ ├── Readme.md │ │ │ └── index.js │ │ │ ├── Placeholder │ │ │ ├── index.js │ │ │ ├── Placeholder.css │ │ │ └── Readme.md │ │ │ ├── PushButton │ │ │ ├── index.js │ │ │ ├── PushButton.css │ │ │ └── PushButton.js │ │ │ ├── RandomButton │ │ │ ├── index.js │ │ │ ├── Readme.md │ │ │ ├── RandomButton.css │ │ │ └── RandomButton.js │ │ │ └── WrappedButton │ │ │ ├── index.js │ │ │ ├── Readme.md │ │ │ └── WrappedButton.css │ ├── babel.config.js │ ├── Readme.md │ └── styleguide.config.js ├── themed │ ├── src │ │ └── Components │ │ │ ├── Button │ │ │ ├── index.js │ │ │ └── Button.css │ │ │ └── CounterButton │ │ │ ├── index.js │ │ │ └── Readme.md │ ├── styleguide.theme.js │ ├── styleguide.styles.js │ ├── babel.config.js │ ├── Readme.md │ └── styleguide.config.js ├── customised │ ├── src │ │ └── components │ │ │ ├── Button │ │ │ ├── index.js │ │ │ ├── Button.json │ │ │ ├── Button.css │ │ │ └── Button.js │ │ │ ├── Placeholder │ │ │ ├── Placeholder.css │ │ │ ├── Placeholder.json │ │ │ ├── index.js │ │ │ └── Readme.md │ │ │ └── RandomButton │ │ │ ├── index.js │ │ │ ├── RandomButton.json │ │ │ ├── Readme.md │ │ │ ├── RandomButton.css │ │ │ └── RandomButton.js │ ├── babel.config.js │ └── Readme.md ├── styled-components │ ├── src │ │ ├── components │ │ │ ├── Button │ │ │ │ ├── index.ts │ │ │ │ └── Button.md │ │ │ ├── Heading │ │ │ │ ├── index.ts │ │ │ │ ├── Heading.md │ │ │ │ └── Heading.tsx │ │ │ ├── Box │ │ │ │ └── Box.js │ │ │ └── Flex │ │ │ │ └── Flex.tsx │ │ ├── styles.ts │ │ ├── ThemeProvider.tsx │ │ └── StyleGuideWrapper.tsx │ ├── babel.config.js │ ├── Readme.md │ ├── tsconfig.json │ └── styleguide.config.js ├── webpack │ ├── src │ │ ├── components │ │ │ ├── Placeholder.css │ │ │ ├── Placeholder.md │ │ │ ├── RandomButton.md │ │ │ ├── Button.css │ │ │ ├── RandomButton.css │ │ │ ├── Button.js │ │ │ └── RandomButton.js │ │ ├── index.css │ │ ├── index.js │ │ ├── App.test.js │ │ ├── App.css │ │ └── App.js │ ├── styleguide.config.js │ ├── babel.config.js │ ├── Readme.md │ └── webpack.config.js ├── express │ ├── src │ │ └── components │ │ │ └── CustomEndpoint │ │ │ ├── index.js │ │ │ ├── Readme.md │ │ │ └── CustomEndpoint.js │ ├── babel.config.js │ ├── Readme.md │ └── styleguide.config.js └── .eslintrc ├── site ├── CNAME ├── src │ ├── .eslintrc.json │ ├── components │ │ ├── Box.module.css │ │ ├── List.module.css │ │ ├── Column.module.css │ │ ├── VisuallyHidden.module.css │ │ ├── ImageLink.module.css │ │ ├── VisuallyHidden.js │ │ ├── VideoImage.module.css │ │ ├── List.js │ │ ├── VideoImage.js │ │ ├── Stack.module.css │ │ ├── ImageLink.js │ │ ├── Stack.js │ │ └── Box.js │ └── pages │ │ └── learn.module.css ├── static │ └── img │ │ ├── example1.png │ │ ├── example2.png │ │ ├── example3.png │ │ ├── example4.png │ │ ├── favicon.ico │ │ ├── workshop.jpg │ │ ├── cddcourse.png │ │ ├── rsgcourse.png │ │ ├── workbench.jpg │ │ ├── playground1.png │ │ ├── playground2.png │ │ ├── styleguide1.jpg │ │ └── styleguide2.jpg ├── .eslintrc.json ├── sidebars.js ├── .gitignore ├── scripts │ └── deploy.sh └── Readme.md ├── .prettierignore ├── src ├── client │ ├── styles │ │ ├── index.ts │ │ └── styles.ts │ ├── rsg-components │ │ ├── Components │ │ │ ├── index.ts │ │ │ └── ComponentsRenderer.tsx │ │ ├── JsDoc │ │ │ └── index.ts │ │ ├── Slot │ │ │ └── index.ts │ │ ├── Usage │ │ │ ├── index.ts │ │ │ └── Usage.tsx │ │ ├── Code │ │ │ ├── index.ts │ │ │ ├── __snapshots__ │ │ │ │ └── Code.spec.tsx.snap │ │ │ └── Code.spec.tsx │ │ ├── Editor │ │ │ ├── index.ts │ │ │ └── __snapshots__ │ │ │ │ └── Editor.spec.tsx.snap │ │ ├── Link │ │ │ ├── index.ts │ │ │ └── __snapshots__ │ │ │ │ └── Link.spec.tsx.snap │ │ ├── Logo │ │ │ ├── index.ts │ │ │ ├── __snapshots__ │ │ │ │ └── Logo.spec.tsx.snap │ │ │ ├── Logo.spec.tsx │ │ │ └── LogoRenderer.tsx │ │ ├── Name │ │ │ ├── index.ts │ │ │ ├── __snapshots__ │ │ │ │ └── Name.spec.tsx.snap │ │ │ └── Name.spec.tsx │ │ ├── Para │ │ │ ├── index.ts │ │ │ ├── __snapshots__ │ │ │ │ └── Para.spec.tsx.snap │ │ │ └── Para.spec.tsx │ │ ├── Ribbon │ │ │ ├── index.ts │ │ │ └── Ribbon.tsx │ │ ├── Text │ │ │ └── index.ts │ │ ├── Type │ │ │ ├── index.ts │ │ │ ├── __snapshots__ │ │ │ │ └── Type.spec.tsx.snap │ │ │ └── Type.spec.tsx │ │ ├── Error │ │ │ ├── index.ts │ │ │ ├── Error.spec.tsx │ │ │ └── __snapshots__ │ │ │ │ └── Error.spec.tsx.snap │ │ ├── Markdown │ │ │ ├── index.ts │ │ │ ├── Hr │ │ │ │ ├── index.ts │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── Hr.spec.tsx.snap │ │ │ │ ├── Hr.spec.tsx │ │ │ │ └── HrRenderer.tsx │ │ │ ├── List │ │ │ │ ├── index.ts │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── List.spec.tsx.snap │ │ │ │ └── List.spec.tsx │ │ │ ├── Checkbox │ │ │ │ ├── index.ts │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── Checkbox.spec.tsx.snap │ │ │ │ ├── Checkbox.spec.tsx │ │ │ │ └── CheckboxRenderer.tsx │ │ │ ├── Blockquote │ │ │ │ ├── index.ts │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── Blockquote.spec.tsx.snap │ │ │ │ └── Blockquote.spec.tsx │ │ │ ├── MarkdownHeading │ │ │ │ ├── index.ts │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── MarkdownHeading.spec.tsx.snap │ │ │ │ └── MarkdownHeading.spec.tsx │ │ │ ├── Pre │ │ │ │ ├── index.ts │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── Pre.spec.tsx.snap │ │ │ │ └── Pre.spec.tsx │ │ │ ├── Details │ │ │ │ ├── index.ts │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── Details.spec.tsx.snap │ │ │ │ └── Details.spec.tsx │ │ │ └── Table │ │ │ │ ├── TableRowRenderer.tsx │ │ │ │ ├── TableBodyRenderer.tsx │ │ │ │ ├── index.ts │ │ │ │ ├── Table.spec.tsx │ │ │ │ ├── __snapshots__ │ │ │ │ └── Table.spec.tsx.snap │ │ │ │ ├── TableRenderer.tsx │ │ │ │ └── TableHeadRenderer.tsx │ │ ├── Preview │ │ │ └── index.ts │ │ ├── Props │ │ │ └── index.ts │ │ ├── Sections │ │ │ ├── index.ts │ │ │ ├── SectionsRenderer.tsx │ │ │ └── Sections.tsx │ │ ├── Table │ │ │ └── index.ts │ │ ├── Wrapper │ │ │ ├── index.ts │ │ │ ├── __snapshots__ │ │ │ │ └── Wrapper.spec.tsx.snap │ │ │ └── Wrapper.ts │ │ ├── Heading │ │ │ ├── index.ts │ │ │ ├── __snapshots__ │ │ │ │ └── Heading.spec.tsx.snap │ │ │ └── Heading.spec.tsx │ │ ├── Message │ │ │ ├── index.ts │ │ │ ├── __snapshots__ │ │ │ │ └── Message.spec.tsx.snap │ │ │ └── Message.spec.tsx │ │ ├── Playground │ │ │ └── index.ts │ │ ├── StyleGuide │ │ │ └── index.ts │ │ ├── Tooltip │ │ │ └── index.ts │ │ ├── Version │ │ │ ├── index.ts │ │ │ ├── __snapshots__ │ │ │ │ └── Version.spec.tsx.snap │ │ │ └── Version.spec.tsx │ │ ├── Welcome │ │ │ ├── index.ts │ │ │ ├── Welcome.spec.tsx │ │ │ └── __snapshots__ │ │ │ │ └── Welcome.spec.tsx.snap │ │ ├── Arguments │ │ │ ├── index.ts │ │ │ └── __snapshots__ │ │ │ │ └── Arguments.spec.tsx.snap │ │ ├── NotFound │ │ │ ├── index.ts │ │ │ ├── __snapshots__ │ │ │ │ └── NotFound.spec.tsx.snap │ │ │ └── NotFound.spec.tsx │ │ ├── Pathline │ │ │ ├── index.ts │ │ │ └── __snapshots__ │ │ │ │ └── Pathline.spec.tsx.snap │ │ ├── TabButton │ │ │ ├── index.ts │ │ │ └── TabButton.spec.tsx │ │ ├── ReactExample │ │ │ ├── index.ts │ │ │ └── __snapshots__ │ │ │ │ └── ReactExample.spec.tsx.snap │ │ ├── ComplexType │ │ │ ├── index.ts │ │ │ └── ComplexType.spec.tsx │ │ ├── SectionHeading │ │ │ └── index.ts │ │ ├── TableOfContents │ │ │ └── index.ts │ │ ├── ToolbarButton │ │ │ └── index.ts │ │ ├── PlaygroundError │ │ │ ├── index.ts │ │ │ ├── __snapshots__ │ │ │ │ └── PlaygroundError.spec.tsx.snap │ │ │ └── PlaygroundError.spec.tsx │ │ ├── ExamplePlaceholder │ │ │ ├── index.ts │ │ │ └── ExamplePlaceholder.spec.tsx │ │ ├── Styled │ │ │ └── index.ts │ │ ├── Context │ │ │ ├── index.ts │ │ │ └── Context.ts │ │ ├── Section │ │ │ └── index.ts │ │ ├── Examples │ │ │ └── index.ts │ │ ├── Methods │ │ │ └── index.ts │ │ ├── Argument │ │ │ └── index.ts │ │ ├── ComponentsList │ │ │ ├── index.ts │ │ │ └── ComponentsList.tsx │ │ ├── ReactComponent │ │ │ └── index.ts │ │ └── slots │ │ │ ├── CodeTabButton.tsx │ │ │ ├── __snapshots__ │ │ │ ├── UsageTabButton.spec.tsx.snap │ │ │ └── IsolateButton.spec.tsx.snap │ │ │ └── UsageTabButton.spec.tsx │ ├── utils │ │ ├── __tests__ │ │ │ ├── getAst.spec.ts │ │ │ ├── filterComponentsByExactName.spec.ts │ │ │ ├── filterSectionExamples.spec.ts │ │ │ ├── __snapshots__ │ │ │ │ ├── getAst.spec.ts.snap │ │ │ │ └── filterSectionsByName.spec.ts.snap │ │ │ ├── filterComponentExamples.spec.ts │ │ │ └── filterComponentsInSectionsByExactName.spec.ts │ │ ├── getFilterRegExp.ts │ │ ├── filterComponentsByExactName.ts │ │ ├── filterComponentsByName.ts │ │ ├── filterSectionExamples.ts │ │ ├── getAst.ts │ │ └── filterComponentExamples.ts │ ├── polyfills.ts │ └── consts.ts ├── loaders │ └── utils │ │ ├── __tests__ │ │ ├── .eslintrc │ │ ├── requireIt.spec.ts │ │ ├── getAst.spec.ts │ │ ├── removeDoclets.spec.ts │ │ ├── getComponents.spec.ts │ │ ├── __snapshots__ │ │ │ ├── highlightCode.spec.ts.snap │ │ │ ├── processComponent.spec.ts.snap │ │ │ └── highlightCodeInMarkdown.spec.ts.snap │ │ ├── resolveESModule.spec.ts │ │ ├── processComponent.spec.ts │ │ ├── expandDefaultComponent.spec.ts │ │ └── highlightCodeInMarkdown.spec.ts │ │ ├── client │ │ ├── __tests__ │ │ │ ├── .eslintrc │ │ │ ├── requireInRuntime.spec.js │ │ │ └── evalInContext.spec.js │ │ └── requireInRuntime.ts │ │ ├── slugger.ts │ │ ├── removeDoclets.ts │ │ ├── getComponents.ts │ │ ├── expandDefaultComponent.ts │ │ ├── requireIt.ts │ │ ├── highlightCodeInMarkdown.ts │ │ ├── getNameFromFilePath.ts │ │ ├── sortProps.ts │ │ ├── getAllContentPages.ts │ │ ├── filterComponentsWithExample.ts │ │ ├── getComponentPatternsFromSections.ts │ │ └── getAst.ts ├── bin │ ├── .eslintrc │ └── __tests__ │ │ └── styleguidist.spec.js ├── typings │ ├── dependencies │ │ ├── q-i.ts │ │ ├── common-dir.ts │ │ ├── deepfreeze.ts │ │ ├── strip-shebang.ts │ │ ├── findup.ts │ │ ├── to-ast.ts │ │ ├── stripHtmlComments.ts │ │ ├── mini-html-webpack-template.ts │ │ ├── github-slugger.ts │ │ ├── acorn-jsx.ts │ │ ├── listify.ts │ │ ├── deabsdeep.ts │ │ ├── glogg.ts │ │ └── webpack-merge.ts │ ├── RsgRequireItResult.ts │ ├── test.Classes.d.ts │ ├── RsgExample.ts │ ├── RecursivePartial.ts │ ├── RsgPropsObject.ts │ └── index.ts └── scripts │ ├── index.ts │ ├── utils │ ├── __tests__ │ │ ├── getWebpackVersion.spec.ts │ │ ├── getUserPackageJson.spec.ts │ │ └── findFileCaseInsensitive.spec.ts │ ├── getUserPackageJson.ts │ ├── getWebpackVersion.ts │ ├── error.ts │ └── findFileCaseInsensitive.ts │ ├── __mocks__ │ ├── server.ts │ └── build.ts │ ├── build.ts │ ├── server.ts │ ├── consts.ts │ └── __tests__ │ └── server.spec.ts ├── templates └── DefaultExample.md ├── .github ├── FUNDING.yml ├── workflows │ ├── danger-js.yml │ ├── release.yml │ └── coverage.yml ├── ISSUE_TEMPLATE │ ├── Question.md │ ├── Feature_request.md │ └── Bug_report.md └── stale.yml ├── .editorconfig ├── styleguide.config.js ├── cypress.json ├── .gitignore ├── tsconfig.types.json ├── tsconfig.json ├── .prettierrc ├── .eslintignore ├── dangerfile.ts └── docs └── Readme.md /.nvmrc: -------------------------------------------------------------------------------- 1 | v16 2 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | __tests__/ 2 | -------------------------------------------------------------------------------- /test/empty.js: -------------------------------------------------------------------------------- 1 | module.exports = ''; 2 | -------------------------------------------------------------------------------- /examples/cra/.env: -------------------------------------------------------------------------------- 1 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /site/CNAME: -------------------------------------------------------------------------------- 1 | react-styleguidist.js.org 2 | -------------------------------------------------------------------------------- /test/apps/defaults/src/components/Button.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/apps/defaults/src/components/Button.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/react-native/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /test/apps/defaults/src/components/Placeholder.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | examples/*/styleguide/ 2 | lib/ 3 | -------------------------------------------------------------------------------- /test/components/Placeholder/examples.md: -------------------------------------------------------------------------------- 1 | Hello world! 2 | -------------------------------------------------------------------------------- /examples/react-native/src/Root.md: -------------------------------------------------------------------------------- 1 | ``` 2 | 3 | ``` 4 | -------------------------------------------------------------------------------- /examples/sections/styleguide/CNAME: -------------------------------------------------------------------------------- 1 | react-styleguidist.js.org 2 | -------------------------------------------------------------------------------- /test/apps/defaults/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Pizza" 3 | } 4 | -------------------------------------------------------------------------------- /test/apps/defaults/styleguide.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /src/client/styles/index.ts: -------------------------------------------------------------------------------- 1 | import './setupjss'; 2 | import './styles'; 3 | -------------------------------------------------------------------------------- /test/components/Placeholder/Placeholder.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/cypress/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "mocha": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /examples/basic/src/components/Button/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './Button'; 2 | -------------------------------------------------------------------------------- /examples/preact/src/components/Button/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './Button'; 2 | -------------------------------------------------------------------------------- /examples/sections/src/components/Button/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './Button'; 2 | -------------------------------------------------------------------------------- /examples/sections/src/components/Label/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './Label'; 2 | -------------------------------------------------------------------------------- /examples/sections/src/components/MyLabel/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './Label'; 2 | -------------------------------------------------------------------------------- /examples/themed/src/Components/Button/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './Button'; 2 | -------------------------------------------------------------------------------- /site/src/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "extends": "tamia/react" 4 | } 5 | -------------------------------------------------------------------------------- /src/loaders/utils/__tests__/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "tamia/typescript" 3 | } 4 | -------------------------------------------------------------------------------- /templates/DefaultExample.md: -------------------------------------------------------------------------------- 1 | <__COMPONENT__>Default Example Usage 2 | -------------------------------------------------------------------------------- /examples/basic/src/components/PushButton/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './PushButton'; 2 | -------------------------------------------------------------------------------- /examples/cra/src/components/Placeholder.css: -------------------------------------------------------------------------------- 1 | .placeholder { 2 | background: #ccc; 3 | } 4 | -------------------------------------------------------------------------------- /examples/customised/src/components/Button/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './Button'; 2 | -------------------------------------------------------------------------------- /examples/react-native/App.js: -------------------------------------------------------------------------------- 1 | import Root from './src/Root'; 2 | 3 | export default Root; 4 | -------------------------------------------------------------------------------- /src/client/rsg-components/Components/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Components'; 2 | -------------------------------------------------------------------------------- /examples/basic/src/components/Placeholder/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './Placeholder'; 2 | -------------------------------------------------------------------------------- /examples/cra/src/components/Placeholder.md: -------------------------------------------------------------------------------- 1 | ```jsx 2 | 3 | ``` 4 | -------------------------------------------------------------------------------- /examples/preact/src/components/CounterButton/Readme.md: -------------------------------------------------------------------------------- 1 | ```jsx 2 | 3 | ``` 4 | -------------------------------------------------------------------------------- /examples/preact/src/components/Placeholder/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './Placeholder'; 2 | -------------------------------------------------------------------------------- /examples/preact/src/components/PushButton/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './PushButton'; 2 | -------------------------------------------------------------------------------- /examples/preact/src/components/RandomButton/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './RandomButton'; 2 | -------------------------------------------------------------------------------- /examples/sections/src/components/Placeholder/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './Placeholder'; 2 | -------------------------------------------------------------------------------- /examples/sections/src/components/ThemeButton/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './ThemeButton'; 2 | -------------------------------------------------------------------------------- /examples/styled-components/src/components/Button/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Button' 2 | -------------------------------------------------------------------------------- /examples/styled-components/src/components/Heading/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Heading' 2 | -------------------------------------------------------------------------------- /examples/webpack/src/components/Placeholder.css: -------------------------------------------------------------------------------- 1 | .placeholder { 2 | background: #ccc; 3 | } 4 | -------------------------------------------------------------------------------- /examples/webpack/src/components/Placeholder.md: -------------------------------------------------------------------------------- 1 | ```jsx 2 | 3 | ``` 4 | -------------------------------------------------------------------------------- /site/src/components/Box.module.css: -------------------------------------------------------------------------------- 1 | .box--textAlign-center { 2 | text-align: center; 3 | } 4 | -------------------------------------------------------------------------------- /src/client/rsg-components/JsDoc/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/JsDoc/JsDoc'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Slot/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Slot/Slot'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Usage/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Usage/Usage'; 2 | -------------------------------------------------------------------------------- /examples/basic/src/components/CounterButton/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './CounterButton'; 2 | -------------------------------------------------------------------------------- /examples/basic/src/components/Placeholder/Readme.md: -------------------------------------------------------------------------------- 1 | ```jsx 2 | 3 | ``` 4 | -------------------------------------------------------------------------------- /examples/basic/src/components/WrappedButton/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './WrappedButton'; 2 | -------------------------------------------------------------------------------- /examples/customised/src/components/Placeholder/Placeholder.css: -------------------------------------------------------------------------------- 1 | .root { 2 | background: #ccc; 3 | } 4 | -------------------------------------------------------------------------------- /examples/customised/src/components/Placeholder/Placeholder.json: -------------------------------------------------------------------------------- 1 | { 2 | "tags": [ "image" ] 3 | } 4 | -------------------------------------------------------------------------------- /examples/customised/src/components/Placeholder/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './Placeholder'; 2 | -------------------------------------------------------------------------------- /examples/customised/src/components/RandomButton/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './RandomButton'; 2 | -------------------------------------------------------------------------------- /examples/express/src/components/CustomEndpoint/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './CustomEndpoint'; 2 | -------------------------------------------------------------------------------- /examples/preact/src/components/CounterButton/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './CounterButton'; 2 | -------------------------------------------------------------------------------- /examples/preact/src/components/WrappedButton/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './WrappedButton'; 2 | -------------------------------------------------------------------------------- /examples/sections/src/components/RandomButton/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './RandomButton'; 2 | -------------------------------------------------------------------------------- /examples/sections/src/components/WrappedButton/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './WrappedButton'; 2 | -------------------------------------------------------------------------------- /examples/themed/src/Components/CounterButton/index.js: -------------------------------------------------------------------------------- 1 | export { default } from './CounterButton'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Code/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Code/CodeRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Editor/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Editor/Editor'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Link/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Link/LinkRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Logo/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Logo/LogoRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Name/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Name/NameRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Para/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Para/ParaRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Ribbon/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Ribbon/Ribbon'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Text/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Text/TextRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Type/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Type/TypeRenderer'; 2 | -------------------------------------------------------------------------------- /examples/basic/src/components/Placeholder/Placeholder.css: -------------------------------------------------------------------------------- 1 | .placeholder { 2 | background: #ccc; 3 | } 4 | -------------------------------------------------------------------------------- /examples/cra/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | padding: 0; 4 | font-family: sans-serif; 5 | } 6 | -------------------------------------------------------------------------------- /examples/customised/src/components/Button/Button.json: -------------------------------------------------------------------------------- 1 | { 2 | "tags": [ "atom", "interactive" ] 3 | } 4 | -------------------------------------------------------------------------------- /examples/customised/src/components/Placeholder/Readme.md: -------------------------------------------------------------------------------- 1 | ```jsx 2 | 3 | ``` 4 | -------------------------------------------------------------------------------- /examples/preact/src/components/Placeholder/Placeholder.css: -------------------------------------------------------------------------------- 1 | .placeholder { 2 | background: #ccc; 3 | } 4 | -------------------------------------------------------------------------------- /examples/preact/src/components/Placeholder/Readme.md: -------------------------------------------------------------------------------- 1 | ```jsx 2 | 3 | ``` 4 | -------------------------------------------------------------------------------- /examples/sections/src/components/Placeholder/Placeholder.css: -------------------------------------------------------------------------------- 1 | .placeholder { 2 | background: #ccc; 3 | } 4 | -------------------------------------------------------------------------------- /examples/sections/src/components/Placeholder/_Readme.md: -------------------------------------------------------------------------------- 1 | ```jsx 2 | 3 | ``` 4 | -------------------------------------------------------------------------------- /examples/styled-components/src/components/Heading/Heading.md: -------------------------------------------------------------------------------- 1 | ```jsx 2 | 3 | ``` 4 | -------------------------------------------------------------------------------- /examples/themed/styleguide.theme.js: -------------------------------------------------------------------------------- 1 | export default { 2 | color: { 3 | link: '#F50', 4 | }, 5 | }; 6 | -------------------------------------------------------------------------------- /src/client/rsg-components/Error/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Error/ErrorRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Markdown/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Markdown/Markdown'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Preview/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Preview/Preview'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Props/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Props/PropsRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Sections/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Sections/Sections'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Table/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Table/TableRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Wrapper/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Wrapper/Wrapper'; 2 | -------------------------------------------------------------------------------- /test/apps/no-webpack/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pizza-no-webpack", 3 | "devDependencies": {} 4 | } 5 | -------------------------------------------------------------------------------- /examples/webpack/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | padding: 0; 4 | font-family: sans-serif; 5 | } 6 | -------------------------------------------------------------------------------- /site/src/components/List.module.css: -------------------------------------------------------------------------------- 1 | .list { 2 | margin: 0; 3 | padding: 0; 4 | list-style: none; 5 | } 6 | -------------------------------------------------------------------------------- /src/client/rsg-components/Heading/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Heading/HeadingRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Message/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Message/MessageRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Playground/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Playground/Playground'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/StyleGuide/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/StyleGuide/StyleGuide'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Tooltip/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Tooltip/TooltipRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Version/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Version/VersionRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Welcome/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Welcome/WelcomeRenderer'; 2 | -------------------------------------------------------------------------------- /src/bin/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "tamia", 3 | "parserOptions": { 4 | "sourceType": "script" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/client/rsg-components/Arguments/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Arguments/ArgumentsRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Markdown/Hr/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Markdown/Hr/HrRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/NotFound/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/NotFound/NotFoundRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/Pathline/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Pathline/PathlineRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/TabButton/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/TabButton/TabButtonRenderer'; 2 | -------------------------------------------------------------------------------- /src/typings/dependencies/q-i.ts: -------------------------------------------------------------------------------- 1 | declare module 'q-i' { 2 | export const stringify: (obj: any) => string; 3 | } 4 | -------------------------------------------------------------------------------- /site/src/components/Column.module.css: -------------------------------------------------------------------------------- 1 | @media (min-width: 997px) { 2 | .col--order-2 { 3 | order: 2; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /site/static/img/example1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/site/static/img/example1.png -------------------------------------------------------------------------------- /site/static/img/example2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/site/static/img/example2.png -------------------------------------------------------------------------------- /site/static/img/example3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/site/static/img/example3.png -------------------------------------------------------------------------------- /site/static/img/example4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/site/static/img/example4.png -------------------------------------------------------------------------------- /site/static/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/site/static/img/favicon.ico -------------------------------------------------------------------------------- /site/static/img/workshop.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/site/static/img/workshop.jpg -------------------------------------------------------------------------------- /src/client/rsg-components/Markdown/List/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Markdown/List/ListRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/ReactExample/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/ReactExample/ReactExample'; 2 | -------------------------------------------------------------------------------- /examples/customised/src/components/RandomButton/RandomButton.json: -------------------------------------------------------------------------------- 1 | { 2 | "tags": [ "atom", "interactive", "random" ] 3 | } 4 | -------------------------------------------------------------------------------- /site/static/img/cddcourse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/site/static/img/cddcourse.png -------------------------------------------------------------------------------- /site/static/img/rsgcourse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/site/static/img/rsgcourse.png -------------------------------------------------------------------------------- /site/static/img/workbench.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/site/static/img/workbench.jpg -------------------------------------------------------------------------------- /src/client/rsg-components/ComplexType/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/ComplexType/ComplexTypeRenderder'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/SectionHeading/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/SectionHeading/SectionHeading'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/TableOfContents/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/TableOfContents/TableOfContents'; 2 | -------------------------------------------------------------------------------- /examples/cra/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/examples/cra/public/favicon.ico -------------------------------------------------------------------------------- /site/static/img/playground1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/site/static/img/playground1.png -------------------------------------------------------------------------------- /site/static/img/playground2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/site/static/img/playground2.png -------------------------------------------------------------------------------- /site/static/img/styleguide1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/site/static/img/styleguide1.jpg -------------------------------------------------------------------------------- /site/static/img/styleguide2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/site/static/img/styleguide2.jpg -------------------------------------------------------------------------------- /src/client/rsg-components/Markdown/Checkbox/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/Markdown/Checkbox/CheckboxRenderer'; 2 | -------------------------------------------------------------------------------- /src/client/rsg-components/ToolbarButton/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/ToolbarButton/ToolbarButtonRenderer'; 2 | -------------------------------------------------------------------------------- /src/loaders/utils/client/__tests__/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "parser": "babel-eslint", 4 | "extends": "tamia" 5 | } 6 | -------------------------------------------------------------------------------- /examples/react-native/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/**/* 2 | .expo/* 3 | npm-debug.* 4 | *.jks 5 | *.p12 6 | *.key 7 | *.mobileprovision 8 | -------------------------------------------------------------------------------- /src/client/rsg-components/PlaygroundError/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from 'rsg-components/PlaygroundError/PlaygroundErrorRenderer'; 2 | -------------------------------------------------------------------------------- /test/data/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | output: 'nope.js', 3 | resolve: { 4 | extensions: ['.scss'], 5 | }, 6 | }; 7 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | open_collective: styleguidist 2 | github: sapegin 3 | ko_fi: sapegin 4 | custom: https://www.buymeacoffee.com/sapegin 5 | -------------------------------------------------------------------------------- /examples/react-native/assets/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/styleguidist/react-styleguidist/HEAD/examples/react-native/assets/icon.png -------------------------------------------------------------------------------- /examples/sections/src/components/Label/Readme.md: -------------------------------------------------------------------------------- 1 | Should use the `fantasy` font inherited from `body`: 2 | 3 | ```jsx 4 |