From c63aff4861a1f2a03dc66b544bd62089f6df567f Mon Sep 17 00:00:00 2001 From: Nathan Vasse Date: Thu, 14 Mar 2024 17:17:30 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D(react)=20upgrade=20stories=20for?= =?UTF-8?q?=20Storybook=208?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The old way of using Canvas is deprecated, we need to migrate all the stories to the new standard. --- .../react/src/components/Button/index.mdx | 38 +++------- .../react/src/components/DataGrid/index.mdx | 29 ++------ .../src/components/Forms/Checkbox/index.mdx | 56 ++++---------- .../src/components/Forms/DatePicker/index.mdx | 57 ++++++--------- .../components/Forms/FileUploader/index.mdx | 49 +++---------- .../src/components/Forms/Input/index.mdx | 60 ++++----------- .../src/components/Forms/Radio/index.mdx | 57 ++++----------- .../src/components/Forms/Select/mono.mdx | 58 ++++----------- .../src/components/Forms/Select/multi.mdx | 57 ++++----------- .../src/components/Forms/Switch/index.mdx | 63 +++++----------- .../src/components/Forms/TextArea/index.mdx | 52 ++++--------- packages/react/src/components/Modal/index.mdx | 73 +++++-------------- .../react/src/components/Pagination/index.mdx | 16 +--- 13 files changed, 175 insertions(+), 490 deletions(-) diff --git a/packages/react/src/components/Button/index.mdx b/packages/react/src/components/Button/index.mdx index 8c0cb13..5ec2a1d 100644 --- a/packages/react/src/components/Button/index.mdx +++ b/packages/react/src/components/Button/index.mdx @@ -23,19 +23,13 @@ You can use icons within the button by passing the icon name as a prop. > Use the attribute `iconPosition` to position the icon on the left or right side of the button. The default is `left`. - - - + - - - + You can also use button with only an icon. - - - + ## Disabled @@ -43,34 +37,22 @@ The button can be disabled. The disabled button will render the same no matter w > Keep in the mind that a disabled button will never call `onClick` if it is provided. - - - + ## Full width The button can be set to full width. You can use the `fullWidth` prop to do so. - - - - - - + + ## Size You can adjust the size of the button by using the `size` prop. Default value is `medium`. - - - - - - - - - + + + ## Props @@ -78,8 +60,6 @@ You can use all the props of the native html `