From e923ec9dae8d6708945335f907d137c6de858892 Mon Sep 17 00:00:00 2001 From: Syauqizaidan Khairan Khalaf Date: Wed, 31 Jan 2024 19:58:57 +0700 Subject: [PATCH] feat: finalizing touch for core section in storybook --- .../core/src/stories/BackdropBlur.stories.tsx | 10 +++--- packages/core/src/stories/Blur.stories.tsx | 10 +++--- packages/core/src/stories/Colors.stories.tsx | 13 ++++--- .../core/src/stories/Container.stories.tsx | 7 ++-- .../core/src/stories/Gradients.stories.tsx | 34 ++++++++++--------- .../core/src/stories/GridSystem.stories.tsx | 6 ++-- packages/core/src/stories/Shadows.stories.tsx | 8 +++-- packages/core/src/stories/Spacing.stories.tsx | 8 +++-- packages/forms/src/stories/Input.stories.tsx | 29 ---------------- 9 files changed, 56 insertions(+), 69 deletions(-) diff --git a/packages/core/src/stories/BackdropBlur.stories.tsx b/packages/core/src/stories/BackdropBlur.stories.tsx index cfca581..7f5e37f 100644 --- a/packages/core/src/stories/BackdropBlur.stories.tsx +++ b/packages/core/src/stories/BackdropBlur.stories.tsx @@ -11,9 +11,11 @@ export const AllBackdropBlur = () => { backgroundImage: "url(" + 'https://w0.peakpx.com/wallpaper/390/257/HD-wallpaper-macos-ventura-ios-16-dark-wwdc-2022-apple.jpg' + ")", backgroundPosition: 'center', backgroundSize: 'cover', backgroundRepeat: 'no-repeat' - }} className='p-4'> -

All the backrop blur used by default tailwind classes https://tailwindcss.com/docs/backdrop-blur

-
+ }} className='p-5 rounded-md'> +

Backdrop Blur

+

All the backrop blur used by default tailwind classes https://tailwindcss.com/docs/backrop-blur

+
+

@@ -57,7 +59,7 @@ export const AllBackdropBlur = () => {

-
+

diff --git a/packages/core/src/stories/Blur.stories.tsx b/packages/core/src/stories/Blur.stories.tsx index b3dda5c..3706eef 100644 --- a/packages/core/src/stories/Blur.stories.tsx +++ b/packages/core/src/stories/Blur.stories.tsx @@ -7,9 +7,11 @@ export default { export const AllBlur = () => { return ( -

-

All the blur used by default tailwind classes https://tailwindcss.com/docs/blur

-
+
+

Blur

+

All the blur used by default tailwind classes https://tailwindcss.com/docs/blur

+
+

@@ -53,7 +55,7 @@ export const AllBlur = () => {

-
+

diff --git a/packages/core/src/stories/Colors.stories.tsx b/packages/core/src/stories/Colors.stories.tsx index 16197f5..b51ff1f 100644 --- a/packages/core/src/stories/Colors.stories.tsx +++ b/packages/core/src/stories/Colors.stories.tsx @@ -32,10 +32,13 @@ export const AllColors = () => { const levels = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950] return ( -

-
+
+

Colors

+

All the colors used by default tailwind classes https://tailwindcss.com/docs/colors

+
+
-
+

primary @@ -44,10 +47,10 @@ export const AllColors = () => {

{colors.map(color => { return ( -
+
{levels.map(level => (
-
+

{color} diff --git a/packages/core/src/stories/Container.stories.tsx b/packages/core/src/stories/Container.stories.tsx index 082dc62..1ce8c47 100644 --- a/packages/core/src/stories/Container.stories.tsx +++ b/packages/core/src/stories/Container.stories.tsx @@ -7,9 +7,10 @@ export default { export const AllContainer = () => { return ( -

-

All the container used by default tailwind classes https://tailwindcss.com/docs/container

- +
+

Container

+

All the container used by default tailwind classes https://tailwindcss.com/docs/container

+
sm (640px)
diff --git a/packages/core/src/stories/Gradients.stories.tsx b/packages/core/src/stories/Gradients.stories.tsx index 913f40a..9ede300 100644 --- a/packages/core/src/stories/Gradients.stories.tsx +++ b/packages/core/src/stories/Gradients.stories.tsx @@ -7,80 +7,82 @@ export default { export const AllGradients = () => { return ( -
-

All the gradients use bg-gradient-to-b tailwind classes and the color from - to is below the gradients box.

-
+
+

Gradients

+

All the gradients use bg-gradient-to-b tailwind classes and the color from - to is below the gradients box.

+
+
-
+

fuchsia-500 → indigo-600

-
+

indigo-500 → indigo-800

-
+

pink-500 → indigo-600

-
+

sky-400 → purple-500

-
+

violet-400 → purple-700

-
+

blue-400 → blue-600

-
+
-
+

emerald-400 → lime-700

-
+

yellow-200 → lime-700

-
+

green-400 → blue-500

-
+

blue-500 → pink-500

-
+

orange-500 → pink-600

-
+

fuchsia-700 → red-500

diff --git a/packages/core/src/stories/GridSystem.stories.tsx b/packages/core/src/stories/GridSystem.stories.tsx index 2dd8b99..2e2fa44 100644 --- a/packages/core/src/stories/GridSystem.stories.tsx +++ b/packages/core/src/stories/GridSystem.stories.tsx @@ -7,8 +7,10 @@ export default { export const AllGridSystem = () => { return ( -
-

All the grid used by default tailwind classes https://tailwindcss.com/docs/flex

+
+

Grid System

+

All the grid used by default tailwind classes https://tailwindcss.com/docs/flex

+
diff --git a/packages/core/src/stories/Shadows.stories.tsx b/packages/core/src/stories/Shadows.stories.tsx index 3b300fc..cc8281b 100644 --- a/packages/core/src/stories/Shadows.stories.tsx +++ b/packages/core/src/stories/Shadows.stories.tsx @@ -7,9 +7,11 @@ export default { export const AllShadows = () => { return ( -
-

All the shadows used by default tailwind classes https://tailwindcss.com/docs/box-shadow

-
+
+

Shadows

+

All the shadows used by default tailwind classes https://tailwindcss.com/docs/box-shadow

+
+

diff --git a/packages/core/src/stories/Spacing.stories.tsx b/packages/core/src/stories/Spacing.stories.tsx index fab12e2..f3abfdd 100644 --- a/packages/core/src/stories/Spacing.stories.tsx +++ b/packages/core/src/stories/Spacing.stories.tsx @@ -7,10 +7,12 @@ export default { export const AllSpacing = () => { return ( -

-

All the spacing used by default tailwind classes https://tailwindcss.com/docs/theme#spacing

+
+

Spacing

+

All the spacing used by default tailwind classes https://tailwindcss.com/docs/spacing

+
-
+
diff --git a/packages/forms/src/stories/Input.stories.tsx b/packages/forms/src/stories/Input.stories.tsx index b24c60e..9bea92f 100644 --- a/packages/forms/src/stories/Input.stories.tsx +++ b/packages/forms/src/stories/Input.stories.tsx @@ -140,32 +140,3 @@ export const LeftRightSection: Story = { rightSection: } } - - - -export const Variants = (args: ToggleProps) => ( - <> - - - - <div className="mb-10"> - <Text type='paragraph' size={2}>Default</Text> - <Input variant='default' {...args}></Input> - </div> - <div className="mb-10"> - <Text type='paragraph' size={2}>Error</Text> - <Input variant='error' {...args}></Input> - </div> - <div className="mb-10"> - <Text type='paragraph' size={2}>Warning</Text> - <Input variant='warning' {...args}></Input> - </div> - <div className="mb-10"> - <Text type='paragraph' size={2}>Success</Text> - <Input variant='success' {...args}></Input> - </div> - </> -) \ No newline at end of file