From ddf1e886e2f760593c711b0d685751bb6e758efa Mon Sep 17 00:00:00 2001 From: qa46hx Date: Thu, 12 Mar 2020 17:15:38 +0100 Subject: [PATCH] chore: storybook fixes --- .../stories/{checkbox-group.stories.mdx => index.stories.mdx} | 0 packages/form-system/stories/20-System-Overview.stories.mdx | 2 +- packages/input-email/stories/index.stories.mdx | 2 +- packages/localize/stories/10-intro.stories.mdx | 2 +- .../stories/{radio-group.stories.mdx => index.stories.mdx} | 4 ++-- packages/tabs/stories/index.stories.mdx | 2 -- packages/textarea/stories/index.stories.mdx | 2 +- 7 files changed, 6 insertions(+), 8 deletions(-) rename packages/checkbox-group/stories/{checkbox-group.stories.mdx => index.stories.mdx} (100%) rename packages/radio-group/stories/{radio-group.stories.mdx => index.stories.mdx} (98%) diff --git a/packages/checkbox-group/stories/checkbox-group.stories.mdx b/packages/checkbox-group/stories/index.stories.mdx similarity index 100% rename from packages/checkbox-group/stories/checkbox-group.stories.mdx rename to packages/checkbox-group/stories/index.stories.mdx diff --git a/packages/form-system/stories/20-System-Overview.stories.mdx b/packages/form-system/stories/20-System-Overview.stories.mdx index 3d9fe11da..a83a21d36 100644 --- a/packages/form-system/stories/20-System-Overview.stories.mdx +++ b/packages/form-system/stories/20-System-Overview.stories.mdx @@ -90,4 +90,4 @@ Fieldsets are at the base of: - [Model Value](?path=/docs/forms-system-modelvalue--page) - [Formatting and parsing](?path=/docs/forms-system-formatting-and-parsing--parser) - [Interaction states](?path=/docs/forms-system-interaction-states--interaction-states) -- [Validation System](?path=/docs/forms-validation-overview--page) +- [Validation System](?path=/docs/forms-validation-overview--page) diff --git a/packages/input-email/stories/index.stories.mdx b/packages/input-email/stories/index.stories.mdx index 68386148e..893cd46a7 100644 --- a/packages/input-email/stories/index.stories.mdx +++ b/packages/input-email/stories/index.stories.mdx @@ -55,7 +55,7 @@ Use `loadDefaultFeedbackMessages` to get our default feedback messages displayed ```js -import { loadDefaultFeedbackMessages } from 'lion/validate'; +import { loadDefaultFeedbackMessages } from '@lion/validate'; loadDefaultFeedbackMessages(); ``` diff --git a/packages/localize/stories/10-intro.stories.mdx b/packages/localize/stories/10-intro.stories.mdx index 25cd1d6bb..91ca67618 100644 --- a/packages/localize/stories/10-intro.stories.mdx +++ b/packages/localize/stories/10-intro.stories.mdx @@ -23,7 +23,7 @@ Further examples can be seen at [Features Overview Demo](?path=/docs/localize-fe | --------------------------------------------------------------------- | --------------------------------------------- | | [Translate Text](?path=/docs/localize-translate-text--function-story) | Load and translate text in multiple languages | | [Format Numbers](?path=/docs/localize-numbers--formatting) | Format numbers in multiple languages | -| [Format Dates](?path=/docs/localize-dates--formatting)--formatting) | Format dates in multiple languages | +| [Format Dates](?path=/docs/localize-dates--formatting) | Format dates in multiple languages | ## How to use diff --git a/packages/radio-group/stories/radio-group.stories.mdx b/packages/radio-group/stories/index.stories.mdx similarity index 98% rename from packages/radio-group/stories/radio-group.stories.mdx rename to packages/radio-group/stories/index.stories.mdx index 1e7d2d549..94cbb4021 100644 --- a/packages/radio-group/stories/radio-group.stories.mdx +++ b/packages/radio-group/stories/index.stories.mdx @@ -166,7 +166,7 @@ You can do the same thing for the entire group by setting the `disabled` attribu ```js -import { loadDefaultFeedbackMessages, Required } from 'lion/validate'; +import { loadDefaultFeedbackMessages, Required } from '@lion/validate'; loadDefaultFeedbackMessages(); const validate = () => { const radioGroup = document.querySelector('#dinosGroup'); @@ -224,7 +224,7 @@ You can also create a validator that validates whether a certain option is check ```js -import { loadDefaultFeedbackMessages, Required, Validator } from 'lion/validate'; +import { loadDefaultFeedbackMessages, Required, Validator } from '@lion/validate'; class IsBrontosaurus extends Validator { static get validatorName() { diff --git a/packages/tabs/stories/index.stories.mdx b/packages/tabs/stories/index.stories.mdx index 466e52ea5..c506e1df8 100644 --- a/packages/tabs/stories/index.stories.mdx +++ b/packages/tabs/stories/index.stories.mdx @@ -34,8 +34,6 @@ import '../lion-tabs.js'; npm i --save @lion/tabs; ``` -### Usage - ```js import '@lion/tabs/lion-tabs.js'; ``` diff --git a/packages/textarea/stories/index.stories.mdx b/packages/textarea/stories/index.stories.mdx index 809577cdd..2bfd0a150 100644 --- a/packages/textarea/stories/index.stories.mdx +++ b/packages/textarea/stories/index.stories.mdx @@ -11,7 +11,7 @@ import '../lion-textarea.js'; Its purpose is to provide a way for users to write text that is multiple lines long. - + {html` `}