diff --git a/apps/docs-react/stories/0_Introduction.mdx b/apps/docs-react/stories/0_Introduction.mdx new file mode 100644 index 000000000..4cb3001ea --- /dev/null +++ b/apps/docs-react/stories/0_Introduction.mdx @@ -0,0 +1,9 @@ +import { Meta } from '@storybook/blocks' + + + +# About React Components + +All [React Components is generated by Stencil](https://stenciljs.com/docs/react) using [Stencil's output target](https://stenciljs.com/docs/react#output-targets) to automatically generate React components from our Atomium's web components. + +The target of this stories is run Atomium's web components in React environment and show how to use the components. diff --git a/apps/docs-react/stories/0_Introduction.stories.mdx b/apps/docs-react/stories/0_Introduction.stories.mdx deleted file mode 100644 index 378fad06b..000000000 --- a/apps/docs-react/stories/0_Introduction.stories.mdx +++ /dev/null @@ -1,31 +0,0 @@ -import { Meta } from '@storybook/addon-docs' - - - -# About React Components - -All [React Components is generated by Stencil](https://stenciljs.com/docs/react) using [Stencil's output target](https://stenciljs.com/docs/react#output-targets) to automatically generate React components from our Atomium's web components. - -The target of this stories is run Atomium's web components in React environment and show how to use the components. - -**!important** - -There is a problem to render the code of [React's components outputed by Stencil in Storybook](https://github.com/storybookjs/storybook/issues/22287), so the code of the components is not shown correctly in the stories. - -Example, in [Button component](?path=/docs/react_components-button--docs): - -```jsx - - Button - -``` - -The code above is not shown correctly in the stories, but it is correct in the source code: - -```jsx - - Button - -``` - -Just keep in mind that when check the code of the components inside Storybook diff --git a/apps/docs-vue/stories/0_Introduction.mdx b/apps/docs-vue/stories/0_Introduction.mdx new file mode 100644 index 000000000..ab1246a25 --- /dev/null +++ b/apps/docs-vue/stories/0_Introduction.mdx @@ -0,0 +1,9 @@ +import { Meta } from '@storybook/blocks' + + + +# About Vue Components + +All [Vue Components is generated by Stencil](https://stenciljs.com/docs/vue) using [Stencil's output target](https://stenciljs.com/docs/vue#output-targets) to automatically generate Vue components from our Atomium's web components. + +The target of this stories is run Atomium's web components in Vue environment and show how to use the components. diff --git a/apps/docs-vue/stories/0_Introduction.stories.mdx b/apps/docs-vue/stories/0_Introduction.stories.mdx deleted file mode 100644 index 222625dd0..000000000 --- a/apps/docs-vue/stories/0_Introduction.stories.mdx +++ /dev/null @@ -1,34 +0,0 @@ -import { Meta } from '@storybook/addon-docs' - - - -# About Vue Components - -All [Vue Components is generated by Stencil](https://stenciljs.com/docs/vue) using [Stencil's output target](https://stenciljs.com/docs/vue#output-targets) to automatically generate Vue components from our Atomium's web components. - -The target of this stories is run Atomium's web components in Vue environment and show how to use the components. - -**!important** - -There is a problem to render the code of [Vue's components outputed by Stencil in Storybook](https://github.com/storybookjs/storybook/issues/22287), so the code of the components is not shown correctly in the stories. - -Example, in [Button component](?path=/docs/react_components-button--docs): - -```jsx -{ - render: args => createButton(args), - args: { - ...ButtonComponentArgs - } -} -``` - -The code above is not shown correctly in the stories, but it is correct in the source code: - -```jsx - - Button - -``` - -Just keep in mind that when check the code of the components inside Storybook diff --git a/apps/docs/stories/0_Introduction.mdx b/apps/docs/stories/0_Introduction.mdx new file mode 100644 index 000000000..765088763 --- /dev/null +++ b/apps/docs/stories/0_Introduction.mdx @@ -0,0 +1,9 @@ +import { Meta, Markdown } from '@storybook/blocks' + +import README from '../../../README.md?raw' + + + + + {README} + diff --git a/apps/docs/stories/0_Introduction.stories.mdx b/apps/docs/stories/0_Introduction.stories.mdx deleted file mode 100644 index febda9b8f..000000000 --- a/apps/docs/stories/0_Introduction.stories.mdx +++ /dev/null @@ -1,7 +0,0 @@ -import { Meta, Markdown } from '@storybook/addon-docs' - -import README from '../../../README.md?raw' - - - -{README} diff --git a/apps/docs/stories/1_0_Core.mdx b/apps/docs/stories/1_0_Core.mdx new file mode 100644 index 000000000..9cfb6c75d --- /dev/null +++ b/apps/docs/stories/1_0_Core.mdx @@ -0,0 +1,9 @@ +import { Meta, Markdown } from '@storybook/blocks' + +import README from '../../../packages/core/README.md?raw' + + + + + {README} + diff --git a/apps/docs/stories/1_0_Core.stories.mdx b/apps/docs/stories/1_0_Core.stories.mdx deleted file mode 100644 index 23d445c2f..000000000 --- a/apps/docs/stories/1_0_Core.stories.mdx +++ /dev/null @@ -1,7 +0,0 @@ -import { Meta, Markdown } from '@storybook/addon-docs' - -import README from '../../../packages/core/README.md?raw' - - - -{README} diff --git a/apps/docs/stories/1_1_React.mdx b/apps/docs/stories/1_1_React.mdx new file mode 100644 index 000000000..0474182af --- /dev/null +++ b/apps/docs/stories/1_1_React.mdx @@ -0,0 +1,9 @@ +import { Meta, Markdown } from '@storybook/blocks' + +import README from '../../../packages/react/README.md?raw' + + + + + {README} + diff --git a/apps/docs/stories/1_1_React.stories.mdx b/apps/docs/stories/1_1_React.stories.mdx deleted file mode 100644 index dc43fe9e9..000000000 --- a/apps/docs/stories/1_1_React.stories.mdx +++ /dev/null @@ -1,7 +0,0 @@ -import { Meta, Markdown } from '@storybook/addon-docs' - -import README from '../../../packages/react/README.md?raw' - - - -{README} diff --git a/apps/docs/stories/1_2_Vue.mdx b/apps/docs/stories/1_2_Vue.mdx new file mode 100644 index 000000000..26419713b --- /dev/null +++ b/apps/docs/stories/1_2_Vue.mdx @@ -0,0 +1,9 @@ +import { Meta, Markdown } from '@storybook/blocks' + +import README from '../../../packages/vue/README.md?raw' + + + + + {README} + diff --git a/apps/docs/stories/1_2_Vue.stories.mdx b/apps/docs/stories/1_2_Vue.stories.mdx deleted file mode 100644 index 5389027cd..000000000 --- a/apps/docs/stories/1_2_Vue.stories.mdx +++ /dev/null @@ -1,7 +0,0 @@ -import { Meta, Markdown } from '@storybook/addon-docs' - -import README from '../../../packages/vue/README.md?raw' - - - -{README} diff --git a/apps/docs/stories/1_3_Tokens.mdx b/apps/docs/stories/1_3_Tokens.mdx new file mode 100644 index 000000000..89858b691 --- /dev/null +++ b/apps/docs/stories/1_3_Tokens.mdx @@ -0,0 +1,9 @@ +import { Meta, Markdown } from '@storybook/blocks' + +import README from '../../../packages/tokens/README.md?raw' + + + + + {README} + diff --git a/apps/docs/stories/1_3_Tokens.stories.mdx b/apps/docs/stories/1_3_Tokens.stories.mdx deleted file mode 100644 index bf9125ad9..000000000 --- a/apps/docs/stories/1_3_Tokens.stories.mdx +++ /dev/null @@ -1,7 +0,0 @@ -import { Meta, Markdown } from '@storybook/addon-docs' - -import README from '../../../packages/tokens/README.md?raw' - - - -{README} diff --git a/apps/docs/stories/1_4_Icons.stories.mdx b/apps/docs/stories/1_4_Icons.mdx similarity index 63% rename from apps/docs/stories/1_4_Icons.stories.mdx rename to apps/docs/stories/1_4_Icons.mdx index 6793d6675..9d8ba75b2 100644 --- a/apps/docs/stories/1_4_Icons.stories.mdx +++ b/apps/docs/stories/1_4_Icons.mdx @@ -2,41 +2,42 @@ import { Meta, Title, IconGallery, IconItem } from '@storybook/blocks' import { iconsList } from '../utils/icons-list' - + # Icons The icons are a collection of icons that can be used in your components. It is based on the [Material Design Icons](https://materialdesignicons.com/) library but we can also add our own custom icons. -- [Architecture decisions](/docs/docs-architecture-decision-records-adr-0011-why-host-our-own-icon-library-and-why-cdn--docs) -- [Using icons](/docs/components-icon--docs) -- [How add a custom icon](https://github.com/juntossomosmais/atomium/tree/main/packages/icons#adding-a-new-icon) +* [Architecture decisions](/docs/docs-architecture-decision-records-adr-0011-why-host-our-own-icon-library-and-why-cdn--docs) +* [Using icons](/docs/components-icon--docs) +* [How add a custom icon](https://github.com/juntossomosmais/atomium/tree/main/packages/icons#adding-a-new-icon) ## List of icons See the list of all available icons: -