From ec7a3cdf8f9efe070533883281b241f7ad133772 Mon Sep 17 00:00:00 2001 From: Cherik Date: Sun, 4 Sep 2022 14:36:38 +0430 Subject: [PATCH 1/2] fix: outline button typo --- ...neButtonLink.tsx => OutlineButtonLink.tsx} | 0 .../{OulineButton.tsx => OutlineButton.tsx} | 2 +- src/components/index.ts | 4 ++-- src/stories/OutlineButton.stories.tsx | 22 +++++++++---------- src/stories/OutlineButtonLink.stories.tsx | 14 ++++++------ 5 files changed, 21 insertions(+), 21 deletions(-) rename src/components/buttonLinks/{OulineButtonLink.tsx => OutlineButtonLink.tsx} (100%) rename src/components/buttons/{OulineButton.tsx => OutlineButton.tsx} (97%) diff --git a/src/components/buttonLinks/OulineButtonLink.tsx b/src/components/buttonLinks/OutlineButtonLink.tsx similarity index 100% rename from src/components/buttonLinks/OulineButtonLink.tsx rename to src/components/buttonLinks/OutlineButtonLink.tsx diff --git a/src/components/buttons/OulineButton.tsx b/src/components/buttons/OutlineButton.tsx similarity index 97% rename from src/components/buttons/OulineButton.tsx rename to src/components/buttons/OutlineButton.tsx index 76e1ea5..c96348c 100644 --- a/src/components/buttons/OulineButton.tsx +++ b/src/components/buttons/OutlineButton.tsx @@ -49,7 +49,7 @@ const ButtonContainer = styled.button` } `; -export const OulineButton: FC = ({ +export const OutlineButton: FC = ({ label, size = 'medium', buttonType = 'secondary', diff --git a/src/components/index.ts b/src/components/index.ts index c61651b..76a9628 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -23,11 +23,11 @@ export * from './typography/headlines/H6'; export * from './typography/ButtonText'; export * from './buttons/Button'; -export * from './buttons/OulineButton'; +export * from './buttons/OutlineButton'; export * from './buttons/type'; export * from './buttonLinks/ButtonLink'; -export * from './buttonLinks/OulineButtonLink'; +export * from './buttonLinks/OutlineButtonLink'; export * from './layout/Container'; export * from './layout/ContainerFluid'; diff --git a/src/stories/OutlineButton.stories.tsx b/src/stories/OutlineButton.stories.tsx index 31c03f6..3cbce9f 100644 --- a/src/stories/OutlineButton.stories.tsx +++ b/src/stories/OutlineButton.stories.tsx @@ -1,30 +1,30 @@ import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; -import { OulineButton } from '../components/buttons/OulineButton'; +import { OutlineButton } from '../components/buttons/OutlineButton'; export default { title: 'Example/Button', - component: OulineButton, -} as ComponentMeta; + component: OutlineButton, +} as ComponentMeta; -const Template: ComponentStory = args => ( - {args.label} +const Template: ComponentStory = args => ( + {args.label} ); -export const OulinePrimary = Template.bind({}); -OulinePrimary.args = { +export const OutlinePrimary = Template.bind({}); +OutlinePrimary.args = { buttonType: 'primary', - label: 'Ouline Primary', + label: 'Outline Primary', size: 'medium', disabled: false, loading: false, }; -export const OulineSecondary = Template.bind({}); -OulineSecondary.args = { +export const OutlineSecondary = Template.bind({}); +OutlineSecondary.args = { buttonType: 'secondary', - label: 'Ouline Secondary', + label: 'Outline Secondary', size: 'medium', disabled: false, loading: false, diff --git a/src/stories/OutlineButtonLink.stories.tsx b/src/stories/OutlineButtonLink.stories.tsx index f5e0043..51c9ccb 100644 --- a/src/stories/OutlineButtonLink.stories.tsx +++ b/src/stories/OutlineButtonLink.stories.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; -import { OutlineLinkButton } from '../components/buttonLinks/OulineButtonLink'; +import { OutlineLinkButton } from '../components/buttonLinks/OutlineButtonLink'; export default { title: 'Example/ButtonLink', @@ -12,18 +12,18 @@ const Template: ComponentStory = args => ( {args.label} ); -export const OulinePrimary = Template.bind({}); -OulinePrimary.args = { +export const OutlinePrimary = Template.bind({}); +OutlinePrimary.args = { buttonType: 'primary', - label: 'Ouline Primary', + label: 'Outline Primary', size: 'medium', disabled: false, }; -export const OulineSecondary = Template.bind({}); -OulineSecondary.args = { +export const OutlineSecondary = Template.bind({}); +OutlineSecondary.args = { buttonType: 'secondary', - label: 'Ouline Secondary', + label: 'Outline Secondary', size: 'medium', disabled: false, }; From 1b4e1ab3b7b379087bfd36f5b68deae9c0b612c9 Mon Sep 17 00:00:00 2001 From: Cherik Date: Sun, 4 Sep 2022 14:39:35 +0430 Subject: [PATCH 2/2] update version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e27e83f..7343886 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@giveth/ui-design-system", - "version": "1.8.20", + "version": "1.8.22", "files": [ "/lib" ],