2021-08-09 03:22:21 -07:00
|
|
|
import "./font-awesome-icons";
|
|
|
|
import "./storybook.scss";
|
2021-08-09 02:29:11 -07:00
|
|
|
|
2021-08-09 03:22:21 -07:00
|
|
|
import Vue from "vue";
|
2021-08-09 02:29:11 -07:00
|
|
|
|
|
|
|
// https://github.com/storybookjs/storybook/issues/6153
|
|
|
|
Vue.prototype.toJSON = function () {
|
2021-08-09 03:22:21 -07:00
|
|
|
return this;
|
2021-08-09 02:29:11 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
export const parameters = {
|
2021-08-09 03:22:21 -07:00
|
|
|
actions: {
|
|
|
|
argTypesRegex: "^on[A-Z].*",
|
|
|
|
},
|
|
|
|
controls: {
|
|
|
|
matchers: {
|
|
|
|
color: /(background|color)$/i,
|
|
|
|
date: /Date$/,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
backgrounds: {
|
|
|
|
default: "--color-background-xlight",
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
name: "--color-background-dark",
|
|
|
|
value: "var(--color-background-dark)",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "--color-background-base",
|
|
|
|
value: "var(--color-background-base)",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "--color-background-light",
|
|
|
|
value: "var(--color-background-light)",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "--color-background-lighter",
|
|
|
|
value: "var(--color-background-lighter)",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "--color-background-xlight",
|
|
|
|
value: "var(--color-background-xlight)",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
themes: {
|
|
|
|
list: [
|
|
|
|
{
|
|
|
|
name: "dark",
|
|
|
|
class: "theme-dark",
|
|
|
|
color: "#000",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
options: {
|
|
|
|
storySort: {
|
|
|
|
order: ["Docs", "Styleguide", "Atoms"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|