From 81b1e0e05919eb368a66aef47adcf7738af76f29 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 29 Sep 2023 11:47:06 +0200
Subject: refactor(components): rewrite Spinner component

* Message should be set as children
* Default message is no longer available (depending on use case, the
consumer might prefer aria-label instead)
* It is now possible to define the message position
---
 src/components/atoms/loaders/spinner.stories.tsx | 42 ------------------------
 1 file changed, 42 deletions(-)
 delete mode 100644 src/components/atoms/loaders/spinner.stories.tsx

(limited to 'src/components/atoms/loaders/spinner.stories.tsx')

diff --git a/src/components/atoms/loaders/spinner.stories.tsx b/src/components/atoms/loaders/spinner.stories.tsx
deleted file mode 100644
index 197d06c..0000000
--- a/src/components/atoms/loaders/spinner.stories.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import { ComponentMeta, ComponentStory } from '@storybook/react';
-import { Spinner as SpinnerComponent } from './spinner';
-
-/**
- * Spinner - Storybook Meta
- */
-export default {
-  title: 'Atoms/Loaders/Spinner',
-  component: SpinnerComponent,
-  argTypes: {
-    message: {
-      control: {
-        type: 'text',
-      },
-      description: 'Loading message.',
-      table: {
-        category: 'Options',
-      },
-      type: {
-        name: 'string',
-        required: false,
-      },
-    },
-  },
-} as ComponentMeta<typeof SpinnerComponent>;
-
-const Template: ComponentStory<typeof SpinnerComponent> = (args) => (
-  <SpinnerComponent {...args} />
-);
-
-/**
- * Loaders Stories - Default Spinner
- */
-export const Spinner = Template.bind({});
-
-/**
- * Loaders Stories - Spinner with custom message
- */
-export const SpinnerCustomMessage = Template.bind({});
-SpinnerCustomMessage.args = {
-  message: 'Submitting...',
-};
-- 
cgit v1.2.3

