Skip to content

Commit

Permalink
feat: ant design system (#9)
Browse files Browse the repository at this point in the history
* wrap Ant Button, add stories for Type

* Commit generated CSS

* touch directory structure, move stories next to components

* add wrapped Dropdown with initial story

* Commit generated CSS

* technically default autocomplete working, but i have some question

* Commit generated CSS

* two examples with state

* Commit generated CSS

* add Input component

* add Modal component

* Add folder to component titles

* add autodocs for all components

* add .idea folder to .gitignore

* Default all stories to layout: centered

* Commit generated CSS

* Update preview to typescript

* Update csf 2->3

* Commit generated CSS

* Consistent formatting for story meta

* Add Skeleton Component

* Add Result Component

* Add initial custom hooks

* Add LoadingModal Component

* Commit generated CSS

* Add DatePicker Component

* Update Input Component, remove copy prop

* Update Loading Modal structure

* remove debugger

* Update Loading Modal stories type

* Add basic annotation modal component

* Commit generated CSS

---------

Co-authored-by: jared-dickman <[email protected]>
  • Loading branch information
jared-dickman and jared-dickman authored Dec 11, 2023
1 parent 7460566 commit ce9d5fa
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 ce9d5fa

Please sign in to comment.