From b0be39707c1fb9f65546a9c1c7ff9147b0f77f74 Mon Sep 17 00:00:00 2001 From: devgioele Date: Mon, 11 Sep 2023 16:44:54 +0200 Subject: [PATCH] fix wrong enums being used --- src/components/action/Actions.stories.mdx | 8 ++--- src/components/button/ButtonIcon.stories.mdx | 30 +++++++++---------- .../button/ButtonIconLink.stories.mdx | 6 ++-- src/components/button/ButtonLink.stories.mdx | 6 ++-- .../ContentMessage/ContentMessage.stories.mdx | 12 ++++---- .../ConfirmationDialog.stories.mdx | 8 ++--- src/components/form/CheckboxField.stories.mdx | 2 +- .../form/ToggleSwitchField.stories.mdx | 2 +- src/components/menu/Menu.stories.mdx | 2 +- src/examples/details.stories.mdx | 4 +-- 10 files changed, 40 insertions(+), 40 deletions(-) diff --git a/src/components/action/Actions.stories.mdx b/src/components/action/Actions.stories.mdx index 3e92d1fe..0f20992b 100644 --- a/src/components/action/Actions.stories.mdx +++ b/src/components/action/Actions.stories.mdx @@ -27,8 +27,8 @@ export const Template = ({ children, ...args }) => ( 'One button': , 'Two buttons': ( <> - - + @@ -55,8 +55,8 @@ export const Template = ({ children, ...args }) => ( - - + diff --git a/src/components/button/ButtonIcon.stories.mdx b/src/components/button/ButtonIcon.stories.mdx index 7e129be3..4fdc721b 100644 --- a/src/components/button/ButtonIcon.stories.mdx +++ b/src/components/button/ButtonIcon.stories.mdx @@ -18,9 +18,9 @@ export const Template = ({ ...args }) => args={{ disabled: false, mode: Mode.Light, - variant: ButtonVariant.solid, - size: Size.md, - tone: Tone.primary, + variant: ButtonVariant.Solid, + size: Size.Md, + tone: Tone.Primary, icon: 'Add', }} argTypes={{ @@ -91,13 +91,13 @@ The `Variant` determine if there is a background fill and a border. The `transpa - + - + - + @@ -107,13 +107,13 @@ The size determine the padding between the button text and its border. - + - + - + @@ -125,22 +125,22 @@ For additional information about Tailwind config, please refer to the [Tailwind - + - + - + - + - + - + diff --git a/src/components/button/ButtonIconLink.stories.mdx b/src/components/button/ButtonIconLink.stories.mdx index 1306b764..280c5646 100644 --- a/src/components/button/ButtonIconLink.stories.mdx +++ b/src/components/button/ButtonIconLink.stories.mdx @@ -18,9 +18,9 @@ export const Template = ({ ...args }) => href: '#', disabled: false, mode: Mode.Light, - variant: ButtonVariant.solid, - size: Size.md, - tone: Tone.primary, + variant: ButtonVariant.Solid, + size: Size.Md, + tone: Tone.Primary, icon: 'Add', }} argTypes={{ diff --git a/src/components/button/ButtonLink.stories.mdx b/src/components/button/ButtonLink.stories.mdx index 4652fc85..362fcaf6 100644 --- a/src/components/button/ButtonLink.stories.mdx +++ b/src/components/button/ButtonLink.stories.mdx @@ -25,9 +25,9 @@ export const Template = ({ children, ...args }) => ( disabled: false, internal: true, mode: Mode.Light, - variant: ButtonVariant.solid, - size: Size.md, - tone: Tone.primary, + variant: ButtonVariant.Solid, + size: Size.Md, + tone: Tone.Primary, iconStart: 'None', iconEnd: 'None', }} diff --git a/src/components/content/ContentMessage/ContentMessage.stories.mdx b/src/components/content/ContentMessage/ContentMessage.stories.mdx index f8d6d23b..99b7e0ac 100644 --- a/src/components/content/ContentMessage/ContentMessage.stories.mdx +++ b/src/components/content/ContentMessage/ContentMessage.stories.mdx @@ -79,7 +79,7 @@ export const Template = (args) => args={{ label: 'Label', message: 'This is the message', - status: Status.invalid, + status: Status.Invalid, }} > {Template.bind({})} diff --git a/src/components/form/ToggleSwitchField.stories.mdx b/src/components/form/ToggleSwitchField.stories.mdx index 70a48472..0810336c 100644 --- a/src/components/form/ToggleSwitchField.stories.mdx +++ b/src/components/form/ToggleSwitchField.stories.mdx @@ -53,7 +53,7 @@ export const Template = ({ ...args }) => args={{ label: 'Label', message: 'This is the message', - status: Status.invalid, + status: Status.Invalid, }} > {Template.bind({})} diff --git a/src/components/menu/Menu.stories.mdx b/src/components/menu/Menu.stories.mdx index 522b0b73..cac3f629 100644 --- a/src/components/menu/Menu.stories.mdx +++ b/src/components/menu/Menu.stories.mdx @@ -33,7 +33,7 @@ export const Template = ({ menuLabel, className, ...args }) => { args={{ menuLabel: 'Menu', menuButtonContent: 'Menu', - direction: MenuDirection.down, + direction: MenuDirection.Down, }} > {Template.bind({})} diff --git a/src/examples/details.stories.mdx b/src/examples/details.stories.mdx index baea8cf7..b20eb709 100644 --- a/src/examples/details.stories.mdx +++ b/src/examples/details.stories.mdx @@ -20,7 +20,7 @@ export const Template = ({ title }) => {
- + @@ -58,7 +58,7 @@ export const TwoColumnTemplate = ({ title }) => {
- +