import { html } from 'lit-html';
import { ifDefined } from 'lit-html/directives/if-defined';
export const meta = {
  argTypes: {
    disabled: { table: { disable: true } },
    error: { table: { disable: true } },
    errorMessage: { table: { disable: true } },
    helperText: { table: { disable: true } },
    label: { table: { disable: true } },
    name: { table: { disable: true } },
    placeholder: { table: { disable: true } },
    required: { table: { disable: true } },
    requiredMessage: { table: { disable: true } },
    tooltip: { table: { disable: true } },
    value: { table: { disable: true } },
    width: { table: { disable: true } },
  },
  args: {
    disabled: false,
    error: false,
    errorMessage: '',
    helperText: '',
    label: 'Select label',
    name: 'select-name',
    placeholder: '',
    required: false,
    requiredMessage: '',
    tooltip: '',
    value: 'select-value',
    width: 'default',
  },
  decorators: [
    (story, { args: { tooltip } }) => html `
        <style type="text/css">
          #root,
          .docs-story {
            padding-top: ${tooltip ? '2rem' : ''};
        </style>
        ${story()}
      `,
  ],
  parameters: {
    controls: {
      hideNoControlsWarning: true,
      sort: 'requiredFirst',
    },
  },
  title: 'Components/Select/',
};
export const story = ({ disabled, error, errorMessage, helperText, id, label, name, placeholder, required, requiredMessage, tooltip, value, width, }) => html `
  <abds-select
    disabled="${ifDefined(disabled || undefined)}"
    error="${ifDefined(error || undefined)}"
    error-message="${ifDefined(errorMessage || undefined)}"
    helper-text="${ifDefined(helperText || undefined)}"
    id="${ifDefined(id || undefined)}"
    label="${ifDefined(label || undefined)}"
    name="${ifDefined(name || undefined)}"
    placeholder="${ifDefined(placeholder || undefined)}"
    required="${ifDefined(required || undefined)}"
    required-message="${ifDefined(requiredMessage || undefined)}"
    tooltip="${ifDefined(tooltip || undefined)}"
    value="${ifDefined(value || undefined)}"
    width="${ifDefined(width || undefined)}"
  >
    <abds-select-option value="one">First option</abds-select-option>
    <abds-select-option value="two">Second option</abds-select-option>
  </abds-select>
`;
export default { meta, story };
//# sourceMappingURL=template.js.map