Skip to content

Commit

Permalink
feat: ant design system (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
jared-dickman authored and brewdente committed Dec 12, 2023
1 parent 023bb8f commit 7c0f090
Show file tree
Hide file tree
Showing 31 changed files with 1,668 additions and 46 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ dist
.DS_Store
node_modules/
.vscode/
.idea/
out/
test/reports
test/test-bundle.js.map
test/stub/test-stub-bundle.js
**/dist
**/dist
15 changes: 7 additions & 8 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite)
import type { StorybookConfig } from "@storybook/react-vite"
import type { StorybookConfig } from "@storybook/react-vite";

const config: StorybookConfig = {
framework: "@storybook/react-vite",

stories: [
"../src/stories/**/*.mdx",
"../src/stories/**/*.stories.@(js|jsx|mjs|ts|tsx)",
"../src/**/*.mdx",
"../src/**/*.stories.@(ts|tsx)",
],

addons: [
Expand All @@ -16,11 +16,10 @@ const config: StorybookConfig = {
],

docs: {
autodocs: "tag",
autodocs: true,
defaultName: "Documentation",
},

// staticDirs: ["../public"],
};

}

export default config
export default config;
12 changes: 8 additions & 4 deletions .storybook/preview.js → .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
/** @type { import('@storybook/react').Preview } */
const preview = {
import type { Preview } from "@storybook/react";

const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },

layout: "centered",

controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
}
};

export default preview
export default preview;
Loading

0 comments on commit 7c0f090

Please sign in to comment.