From a17abdb126cb35cc6318ef7cfceb5072639aa14d Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Fri, 8 May 2020 15:38:53 -0400 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20migrate=20component?= =?UTF-8?q?=20stories=20to=20storybook=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/rose/.storybook/main.js | 5 +- .../addon/components/rose/button.stories.mdx | 98 + .../components/rose/form/checkbox.stories.mdx | 44 + .../components/rose/form/input.stories.mdx | 56 + .../components/rose/form/select.stories.mdx | 67 + .../components/rose/form/textarea.stories.mdx | 44 + .../addon/components/rose/icon.stories.mdx | 36 + addons/rose/package.json | 3 +- yarn.lock | 1625 ++++++++++++++++- 9 files changed, 1893 insertions(+), 85 deletions(-) create mode 100644 addons/rose/addon/components/rose/button.stories.mdx create mode 100644 addons/rose/addon/components/rose/form/checkbox.stories.mdx create mode 100644 addons/rose/addon/components/rose/form/input.stories.mdx create mode 100644 addons/rose/addon/components/rose/form/select.stories.mdx create mode 100644 addons/rose/addon/components/rose/form/textarea.stories.mdx create mode 100644 addons/rose/addon/components/rose/icon.stories.mdx diff --git a/addons/rose/.storybook/main.js b/addons/rose/.storybook/main.js index 990a60bc9..3d146546d 100644 --- a/addons/rose/.storybook/main.js +++ b/addons/rose/.storybook/main.js @@ -1,9 +1,8 @@ module.exports = { - stories: ['../stories/**/*.stories.js'], + stories: ['../addon/components/**/*.stories.(js|mdx)'], addons: [ '@storybook/addon-knobs', '@storybook/addon-actions', - '@storybook/addon-links', - '@storybook/addon-storysource' + '@storybook/addon-docs', ] }; diff --git a/addons/rose/addon/components/rose/button.stories.mdx b/addons/rose/addon/components/rose/button.stories.mdx new file mode 100644 index 000000000..7617f0ba3 --- /dev/null +++ b/addons/rose/addon/components/rose/button.stories.mdx @@ -0,0 +1,98 @@ +import { Meta, Story, Preview } from '@storybook/addon-docs/blocks'; +import { hbs } from 'ember-cli-htmlbars'; +import { action } from '@storybook/addon-actions'; +import { text, boolean, select } from '@storybook/addon-knobs'; + + + +# Button + +A simple button component that renders an HTML `