<commit_before>import hbs from 'htmlbars-inline-precompile';
import { action } from '@storybook/addon-actions';

export default {
  title: 'Components/OSS::Checkbox',
  component: 'checkbox',
  argTypes: {
    size: {
      description: 'Adjust the size of the checkbox',
      table: {
        type: {
          summary: 'sm'
        },
        defaultValue: { summary: '' }
      },
      options: [null, 'sm'],
      control: { type: 'select' }
    },
    disabled: {
      description: 'Whether the checkbox is disabled or not',
      table: {
        type: { summary: 'true | false' },
        defaultValue: { summary: 'false' }
      },
      control: {
        type: 'boolean'
      }
    },
    checked: {
      description: 'State of the checkbox',
      table: {
        type: { summary: 'true | false' },
        defaultValue: { summary: 'false' }
      },
      control: {
        type: 'boolean'
      }
    }
  }
};

const defaultArgs = {
  size: null,
  disabled: false,
  checked: false,
  onChange: action('onSelect')
};

const Template = (args) => ({
  template: hbs`
    <OSS::Checkbox
      @checked={{this.checked}} @disabled={{this.disabled}} @sie={{this.size}} @onChange={{this.onChange}} />
  `,
  context: args
});

export const Default = Template.bind({});
Default.args = {
  ...defaultArgs
};<commit_msg>fix typo<commit_after>import hbs from 'htmlbars-inline-precompile';
import { action } from '@storybook/addon-actions';

export default {
  title: 'Components/OSS::Checkbox',
  component: 'checkbox',
  argTypes: {
    size: {
      description: 'Adjust the size of the checkbox',
      table: {
        type: {
          summary: 'sm'
        },
        defaultValue: { summary: '' }
      },
      options: [null, 'sm'],
      control: { type: 'select' }
    },
    disabled: {
      description: 'Whether the checkbox is disabled or not',
      table: {
        type: { summary: 'true | false' },
        defaultValue: { summary: 'false' }
      },
      control: {
        type: 'boolean'
      }
    },
    checked: {
      description: 'State of the checkbox',
      table: {
        type: { summary: 'true | false' },
        defaultValue: { summary: 'false' }
      },
      control: {
        type: 'boolean'
      }
    }
  }
};

const defaultArgs = {
  size: null,
  disabled: false,
  checked: false,
  onChange: action('onSelect')
};

const Template = (args) => ({
  template: hbs`
    <OSS::Checkbox
      @checked={{this.checked}} @disabled={{this.disabled}} @size={{this.size}} @onChange={{this.onChange}} />
  `,
  context: args
});

export const Default = Template.bind({});
Default.args = {
  ...defaultArgs
};
{'fraction_non_alphanumeric': 0.1595184349134688, 'fraction_numerical': 0.0, 'mean_word_length': 2.3154613466334166, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3858317', 'n_tokens_mistral': 836, 'n_tokens_neox': 830, 'n_words': 201}