From 94448fa278ab352a741ff13f22d6104869571144 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Wed, 18 Oct 2023 19:25:02 +0200
Subject: feat(components): add a generic Grid component

* merge Columns, Gallery and CardsList into Grid component
* add more options to control the grid
---
 .../organisms/images/gallery.stories.tsx           | 84 ----------------------
 1 file changed, 84 deletions(-)
 delete mode 100644 src/components/organisms/images/gallery.stories.tsx

(limited to 'src/components/organisms/images/gallery.stories.tsx')

diff --git a/src/components/organisms/images/gallery.stories.tsx b/src/components/organisms/images/gallery.stories.tsx
deleted file mode 100644
index 016b18e..0000000
--- a/src/components/organisms/images/gallery.stories.tsx
+++ /dev/null
@@ -1,84 +0,0 @@
-import type { ComponentMeta, ComponentStory } from '@storybook/react';
-import NextImage from 'next/image';
-import { Figure } from '../../atoms';
-import { Gallery } from './gallery';
-
-/**
- * Gallery - Storybook Meta
- */
-export default {
-  title: 'Organisms/Images/Gallery',
-  component: Gallery,
-  argTypes: {
-    children: {
-      control: {
-        type: null,
-      },
-      description: 'Two or more images.',
-      type: {
-        name: 'function',
-        required: true,
-      },
-    },
-    columns: {
-      control: {
-        type: 'number',
-        min: 2,
-        max: 4,
-      },
-      description: 'The columns count.',
-      type: {
-        name: 'number',
-        required: true,
-      },
-    },
-  },
-} as ComponentMeta<typeof Gallery>;
-
-const image = {
-  alt: 'Modi provident omnis',
-  height: 480,
-  src: 'https://picsum.photos/640/480',
-  width: 640,
-};
-
-const Template: ComponentStory<typeof Gallery> = (args) => (
-  <Gallery {...args}>
-    <Figure>
-      <NextImage {...image} />
-    </Figure>
-    <Figure>
-      <NextImage {...image} />
-    </Figure>
-    <Figure>
-      <NextImage {...image} />
-    </Figure>
-    <Figure>
-      <NextImage {...image} />
-    </Figure>
-  </Gallery>
-);
-
-/**
- * Gallery Stories - Two columns
- */
-export const TwoColumns = Template.bind({});
-TwoColumns.args = {
-  columns: 2,
-};
-
-/**
- * Gallery Stories - Three columns
- */
-export const ThreeColumns = Template.bind({});
-ThreeColumns.args = {
-  columns: 3,
-};
-
-/**
- * Gallery Stories - Four columns
- */
-export const FourColumns = Template.bind({});
-FourColumns.args = {
-  columns: 4,
-};
-- 
cgit v1.2.3

