From d7b8e545026ac8ee3726e613e1610b30cb3ceac9 Mon Sep 17 00:00:00 2001 From: zuramai Date: Wed, 8 Nov 2023 22:18:06 +0700 Subject: [PATCH] chore: group checkbox to `forms` category --- packages/forms/package.json | 17 +++++++++++++++++ .../src => forms/src/checkbox}/index.tsx | 0 .../stories/Checkbox.stories.tsx | 4 ++-- packages/forms/tsconfig.json | 4 ++++ 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 packages/forms/package.json rename packages/{checkbox/src => forms/src/checkbox}/index.tsx (100%) rename packages/{checkbox => forms}/stories/Checkbox.stories.tsx (90%) create mode 100644 packages/forms/tsconfig.json diff --git a/packages/forms/package.json b/packages/forms/package.json new file mode 100644 index 0000000..c69a35e --- /dev/null +++ b/packages/forms/package.json @@ -0,0 +1,17 @@ +{ + "name": "@bootwind/button", + "version": "0.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "peerDependencies": { + "react": "^18.2.0", + "@types/react": "^18.2.15", + "@types/react-dom": "^18.2.14" + } +} diff --git a/packages/checkbox/src/index.tsx b/packages/forms/src/checkbox/index.tsx similarity index 100% rename from packages/checkbox/src/index.tsx rename to packages/forms/src/checkbox/index.tsx diff --git a/packages/checkbox/stories/Checkbox.stories.tsx b/packages/forms/stories/Checkbox.stories.tsx similarity index 90% rename from packages/checkbox/stories/Checkbox.stories.tsx rename to packages/forms/stories/Checkbox.stories.tsx index c669b6a..6b6fd65 100644 --- a/packages/checkbox/stories/Checkbox.stories.tsx +++ b/packages/forms/stories/Checkbox.stories.tsx @@ -1,9 +1,9 @@ import React from 'react'; import { Meta } from '@storybook/react'; -import Checkbox, { CheckboxProps } from '../src/index'; +import Checkbox, { CheckboxProps } from '../src/checkbox/index'; export default { - title: 'Components/Checkbox', + title: 'Forms/Checkbox', component: Checkbox, argTypes: { isRounded: { control: 'boolean' }, diff --git a/packages/forms/tsconfig.json b/packages/forms/tsconfig.json new file mode 100644 index 0000000..15bbb89 --- /dev/null +++ b/packages/forms/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": ["../../tsconfig.json"], + "include": ["src"] +} \ No newline at end of file