import Table from "./packages/table/index.js";
import Form from "./packages/form/index.js";

const components = [Table, Form];

const install = function(Vue) {
  components.forEach(component => {
    Vue.component(component.name, component);
  });
};

if (typeof window !== "undefined" && window.Vue) {
  install(window.Vue);
}

export default {
  version: "0.1.0",
  install,
  Table,
  Form
};
