import React from 'react'; import { StoryObj, Meta } from '@storybook/react'; import AUCharacterCountComponent from '../src/components/AUCharacterCountComponent'; import { ThemeWrapper, translations } from './lib/helpers'; export default { title: 'Delphinus/Character Count', component: AUCharacterCountComponent, argTypes: { }, decorators: [ (Story, context) => (
{Story()}
) ], } as Meta; type Story = StoryObj; export const Recommended_empty: Story = { args: { type: 'recommended', initialChars: 0, maxChars: 100, translations, children: ( ), }, render: (args) => { return ( {args.children} ); }, }; export const Recommended_initial: Story = { args: { type: 'recommended', initialChars: 19, maxChars: 15, translations, children: ( ), }, render: (args) => { return ( {args.children} ); }, }; export const Allowed_empty: Story = { args: { type: 'allowed', initialChars: 0, maxChars: 30, translations, children: ( ), }, render: (args) => { return ( {args.children} ); }, }; export const Allowed_initial: Story = { args: { type: 'allowed', initialChars: 19, maxChars: 15, translations, children: ( ), }, render: (args) => { return ( {args.children} ); }, }; export const Allowed_initial_with_textarea: Story = { args: { type: 'allowed', initialChars: 664, maxChars: 500, translations, children: (