Skip to content

Commit

Permalink
Add MellowColor as an export type
Browse files Browse the repository at this point in the history
  • Loading branch information
Studio384 committed Aug 22, 2022
1 parent 13080a9 commit 614fa17
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,5 @@ export { default as Toolbar } from '@components/Toolbar';
export type { ToolbarProps } from '@components/Toolbar';

export { default as useColor } from '@hooks/useColor';

export { MellowColors } from '@types';
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type MellowColor = 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'violet' | 'purple' | 'pink' | 'rose' | 'brown' | 'grey' | 'accent';
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
"outDir": "dist",
"paths": {
"@": ["./src/index.ts"],
"@docs/*": ["./src/docs/*"],
"@components/*": ["./src/components/*"],
"@hooks/*": ["./src/hooks/*"]
"@docs/*": ["./src/docs/*"],
"@hooks/*": ["./src/hooks/*"],
"@types/*": ["./src/types/*"],
}
},
"include": ["src/index.ts", "src/components", "src/hooks"],
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ export default defineConfig({
resolve: {
alias: {
'@': path.resolve(__dirname, './src/index.ts'),
'@docs': path.resolve(__dirname, './src/docs'),
'@components': path.resolve(__dirname, './src/components'),
'@docs': path.resolve(__dirname, './src/docs'),
'@hooks': path.resolve(__dirname, './src/hooks'),
'@types': path.resolve(__dirname, './src/types'),
},
}
})

0 comments on commit 614fa17

Please sign in to comment.