2023-05-17 08:46:18 +03:00
|
|
|
import React from 'react';
|
|
|
|
|
2023-05-17 12:53:55 +03:00
|
|
|
import '../src/styles/demo.css';
|
2023-05-17 08:46:18 +03:00
|
|
|
import type { Preview } from "@storybook/react";
|
|
|
|
|
|
|
|
const preview: Preview = {
|
|
|
|
parameters: {
|
|
|
|
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
|
|
controls: {
|
|
|
|
matchers: {
|
|
|
|
color: /(background|color)$/i,
|
|
|
|
date: /Date$/,
|
|
|
|
},
|
|
|
|
},
|
2023-05-17 20:01:01 +03:00
|
|
|
options: {
|
|
|
|
storySort: {
|
|
|
|
order: ['Global', 'Settings', 'Experimental'],
|
|
|
|
},
|
|
|
|
},
|
2023-05-17 08:46:18 +03:00
|
|
|
},
|
|
|
|
decorators: [
|
|
|
|
(Story) => (
|
2023-05-17 20:01:01 +03:00
|
|
|
<div className="admin-x-settings" style={{ padding: '24px' }}>
|
2023-05-17 08:46:18 +03:00
|
|
|
{/* 👇 Decorators in Storybook also accept a function. Replace <Story/> with Story() to enable it */}
|
|
|
|
<Story />
|
|
|
|
</div>
|
|
|
|
),
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
export default preview;
|