import { ComponentMeta, ComponentStory } from '@storybook/react';
import { IntlProvider } from 'react-intl';
import MotionToggleComponent from './motion-toggle';

/**
 * MotionToggle - Storybook Meta
 */
export default {
  title: 'Molecules/Forms/Toggle',
  component: MotionToggleComponent,
  argTypes: {
    labelClassName: {
      control: {
        type: 'text',
      },
      description: 'Set additional classnames to the label wrapper.',
      table: {
        category: 'Styles',
      },
      type: {
        name: 'string',
        required: false,
      },
    },
    value: {
      control: {
        type: null,
      },
      description: 'The reduce motion value.',
      type: {
        name: 'boolean',
        required: true,
      },
    },
  },
  decorators: [
    (Story) => (
      <IntlProvider locale="en">
        <Story />
      </IntlProvider>
    ),
  ],
} as ComponentMeta<typeof MotionToggleComponent>;

const Template: ComponentStory<typeof MotionToggleComponent> = (args) => (
  <MotionToggleComponent {...args} />
);

/**
 * Toggle Stories - Motion
 */
export const Motion = Template.bind({});
Motion.args = {
  value: false,
};
/></form></td></tr>
<tr><td class='sub'>The frontend of my personal website.</td><td class='sub right'>Armand Philippot</td></tr></table>
<table class='tabs'><tr><td>
<a href='/www.armandphilippot.com/about/'>about</a><a href='/www.armandphilippot.com/'>summary</a><a href='/www.armandphilippot.com/refs/?id=84a679b0e48ed76eee2fa44d3caac83591aa3c8c'>refs</a><a href='/www.armandphilippot.com/log/src/components/atoms/forms/fields/radio/index.ts'>log</a><a class='active' href='/www.armandphilippot.com/tree/src/components/atoms/forms/fields/radio/index.ts?id=84a679b0e48ed76eee2fa44d3caac83591aa3c8c'>tree</a><a href='/www.armandphilippot.com/commit/src/components/atoms/forms/fields/radio/index.ts?id=84a679b0e48ed76eee2fa44d3caac83591aa3c8c'>commit</a><a href='/www.armandphilippot.com/diff/src/components/atoms/forms/fields/radio/index.ts?id=84a679b0e48ed76eee2fa44d3caac83591aa3c8c'>diff</a><a href='/www.armandphilippot.com/stats/src/components/atoms/forms/fields/radio/index.ts'>stats</a></td><td class='form'><form class='right' method='get' action='/www.armandphilippot.com/log/src/components/atoms/forms/fields/radio/index.ts'>
<input type='hidden' name='id' value='84a679b0e48ed76eee2fa44d3caac83591aa3c8c'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/www.armandphilippot.com/tree/?id=84a679b0e48ed76eee2fa44d3caac83591aa3c8c'>root</a>/<a href='/www.armandphilippot.com/tree/src?id=84a679b0e48ed76eee2fa44d3caac83591aa3c8c'>src</a>/<a href='/www.armandphilippot.com/tree/src/components?id=84a679b0e48ed76eee2fa44d3caac83591aa3c8c'>components</a>/<a href='/www.armandphilippot.com/tree/src/components/atoms?id=84a679b0e48ed76eee2fa44d3caac83591aa3c8c'>atoms</a>/<a href='/www.armandphilippot.com/tree/src/components/atoms/forms?id=84a679b0e48ed76eee2fa44d3caac83591aa3c8c'>forms</a>/<a href='/www.armandphilippot.com/tree/src/components/atoms/forms/fields?id=84a679b0e48ed76eee2fa44d3caac83591aa3c8c'>fields</a>/<a href='/www.armandphilippot.com/tree/src/components/atoms/forms/fields/radio?id=84a679b0e48ed76eee2fa44d3caac83591aa3c8c'>radio</a>/<a href='/www.armandphilippot.com/tree/src/components/atoms/forms/fields/radio/index.ts?id=84a679b0e48ed76eee2fa44d3caac83591aa3c8c'>index.ts</a></div><div class='content'>blob: 1140e08e216fcb536780db403d9a549797a00f88 (<a href='/www.armandphilippot.com/plain/src/components/atoms/forms/fields/radio/index.ts?id=84a679b0e48ed76eee2fa44d3caac83591aa3c8c'>plain</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
</pre></td>
<td class='lines'><pre><code>