import CUpload from "../components/CUpload/CUpload.vue";
import "./utils.css";

export default {
  title: "CUpload",
  component: CUpload,
  argTypes: {
    label: String,
    hint: String,
    fileSize: String,
    isValidate: Boolean,
    type: {
      control: {
        type: "inline-radio",
        options: ["default", "filestack", "uppload"],
      },
    },
  },
};

const Template = (args, { argTypes }) => ({
  props: Object.keys(argTypes),
  components: { CUpload },
  template: '<c-upload v-bind="$props" />',
});

export const Default = Template.bind({});
Default.args = {
  buttonText: "Select File",
  hint: "Optional",
  fileSize: "10",
  isValidate: true,
  type: "default",
  filestackApiKey: "",
  maxFiles: 1,
};
