Skip to content

Commit cebc9f0

Browse files
Release version to v1.0.0 (#21)
* wip * fix: Update secondary button text color for better contrast in dark mode * wip: update storybook * wip * wip * wip * wip * wip * fix: modal * fix: improve modal overflow handling * wip * wip * wip * apply linting * wip * wip * wip * wip * wip
1 parent 8faf55b commit cebc9f0

79 files changed

Lines changed: 5305 additions & 11883 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@ root = true
33
[*]
44
charset = utf-8
55
end_of_line = lf
6-
insert_final_newline = true
7-
indent_style = space
86
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11-
[*.json]
12-
indent_size = 2
13-
1411
[*.md]
1512
trim_trailing_whitespace = false
1613

17-
[*.{yml,yaml,ts,tsx,js}]
14+
[*.{tsx,ts,js,json,css}]
15+
indent_size = 2
16+
indent_style = space
17+
18+
[*.{yml,yaml}]
1819
indent_size = 2
1920

2021
[docker-compose.yml]

.eslintrc.cjs

Lines changed: 0 additions & 16 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ storybook-static
2727

2828
.vercel
2929
.yarnrc.yml
30+
31+
*storybook.log

.prettierrc

Lines changed: 0 additions & 13 deletions
This file was deleted.

.storybook/main.ts

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
11
import type { StorybookConfig } from '@storybook/react-vite';
2+
import remarkGfm from 'remark-gfm';
3+
24

35
const config: StorybookConfig = {
4-
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
6+
framework: '@storybook/react-vite',
7+
stories: [
8+
'../src/**/*.mdx',
9+
'../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'
10+
],
11+
512
addons: [
6-
'@storybook/addon-links',
7-
'@storybook/addon-essentials',
813
'@storybook/addon-onboarding',
9-
'@storybook/addon-interactions',
10-
'storybook-dark-mode',
14+
'@storybook/addon-essentials',
15+
'@chromatic-com/storybook',
16+
'@storybook/addon-interactions', {
17+
name: '@storybook/addon-docs',
18+
options: {
19+
mdxPluginOptions: {
20+
mdxCompileOptions: {
21+
remarkPlugins: [remarkGfm],
22+
},
23+
},
24+
},
25+
},
1126
],
12-
framework: {
13-
name: '@storybook/react-vite',
14-
options: {},
15-
},
16-
docs: {
17-
autodocs: 'tag',
18-
},
27+
28+
typescript: {
29+
reactDocgen: 'react-docgen-typescript'
30+
}
1931
};
2032
export default config;

.storybook/preview.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import type { Preview } from '@storybook/react';
22
import { themes } from '@storybook/theming';
33

4-
import '../src/index.css';
4+
import '../src/app.css';
55

66
const preview: Preview = {
77
parameters: {
8-
actions: { argTypesRegex: '^on[A-Z].*' },
98
darkMode: {
109
dark: { ...themes.dark, appBg: 'black', base: 'dark', appPreviewBg: 'black' },
1110
stylePreview: true,
@@ -18,6 +17,8 @@ const preview: Preview = {
1817
},
1918
},
2019
},
20+
21+
tags: ['autodocs', 'autodocs']
2122
};
2223

2324
export default preview;

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ yarn add @wedevs/tail-react
1414

1515
## Usage
1616

17-
On your `tailwind.config.js` file, update the content entry:
17+
v4: On your app.css file, add the source file:
18+
19+
```diff
20+
+ @source './node_modules/@wedevs/tail-react/dist/index.{js,ts,jsx,tsx}';
21+
```
22+
23+
v3: On your `tailwind.config.js` file, update the content entry:
1824

1925
```diff
2026
/** @type {import('tailwindcss').Config} */

RELEASE.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@ Follow these steps to release a new version:
1010

1111
2. **Commit the changes**: Commit the updated `package.json` file using the following command:
1212

13-
```shell
14-
git add package.json
15-
git commit -m "Bump version to vX.X.X"
16-
```
13+
```shell
14+
git add package.json
15+
git commit -m "Bump version to vX.X.X"
16+
```
1717

1818
3. **Tag the release**: Create a new Git tag for the release using the following command:
1919

20-
```shell
21-
git tag -a vX.X.X -m "Release vX.X.X"
22-
```
20+
```shell
21+
git tag -a vX.X.X -m "Release vX.X.X"
22+
```
2323

24-
Replace `X.X.X` with the actual version number.
24+
Replace `X.X.X` with the actual version number.
2525

2626
4. **Push the changes**: Push the committed changes and the newly created tag to the GitHub repository:
2727

28-
```shell
29-
git push origin main
30-
git push origin vX.X.X
31-
```
28+
```shell
29+
git push origin main
30+
git push origin vX.X.X
31+
```
3232

3333
5. **Create a GitHub release**: Create a new release in GitHub with the new tag. This will trigger a GitHub action that will automatically publish the new version to npm.
3434

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
<body>
1111
<div id="root"></div>
12+
1213
<script type="module" src="/src/main.tsx"></script>
1314
</body>
1415

package.json

Lines changed: 38 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wedevs/tail-react",
3-
"version": "0.5.1",
3+
"version": "1.0.0",
44
"description": "A React UI component library based on Tailwind CSS",
55
"author": "Tareq Hasan",
66
"license": "MIT",
@@ -35,54 +35,48 @@
3535
"scripts": {
3636
"dev": "vite",
3737
"build": "tsc && vite build",
38-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
3938
"preview": "vite preview",
4039
"storybook": "storybook dev -p 6006",
41-
"build-storybook": "storybook build",
42-
"test": "echo \"Error: no test specified\" && exit 0"
40+
"build-storybook": "storybook build"
4341
},
4442
"dependencies": {
45-
"@headlessui/react": "^1.7.16",
46-
"@headlessui/tailwindcss": "^0.2.0",
47-
"@heroicons/react": "^2.0.18",
48-
"@radix-ui/react-popover": "^1.0.7",
49-
"@radix-ui/react-tooltip": "^1.0.7",
50-
"classnames": "^2.3.2",
51-
"react": "^18.2.0",
52-
"react-dom": "^18.2.0",
53-
"tailwind-merge": "^1.14.0"
43+
"@headlessui/react": "^2.2.0",
44+
"@heroicons/react": "^2.2.0",
45+
"@radix-ui/react-popover": "^1.1.6",
46+
"@radix-ui/react-tooltip": "^1.1.8",
47+
"classnames": "^2.5.1",
48+
"react": "^19.0.0",
49+
"react-dom": "^19.0.0",
50+
"tailwind-merge": "^3.0.1"
5451
},
5552
"devDependencies": {
56-
"@storybook/addon-essentials": "^7.6.14",
57-
"@storybook/addon-interactions": "^7.6.14",
58-
"@storybook/addon-links": "^7.6.14",
59-
"@storybook/addon-onboarding": "^1.0.8",
60-
"@storybook/blocks": "^7.6.14",
61-
"@storybook/manager-api": "^7.6.14",
62-
"@storybook/react": "^7.6.14",
63-
"@storybook/react-vite": "^7.6.14",
64-
"@storybook/testing-library": "^0.2.0",
65-
"@storybook/theming": "^7.6.14",
66-
"@tailwindcss/forms": "^0.5.4",
67-
"@types/node": "^20.4.7",
68-
"@types/react": "^18.2.15",
69-
"@types/react-dom": "^18.2.7",
70-
"@typescript-eslint/eslint-plugin": "^6.0.0",
71-
"@typescript-eslint/parser": "^6.0.0",
72-
"@vitejs/plugin-react": "^4.0.3",
73-
"autoprefixer": "^10.4.14",
74-
"eslint": "^8.45.0",
75-
"eslint-plugin-react-hooks": "^4.6.0",
76-
"eslint-plugin-react-refresh": "^0.4.3",
77-
"eslint-plugin-storybook": "^0.6.13",
53+
"@chromatic-com/storybook": "^3",
54+
"@storybook/addon-essentials": "^8.5.8",
55+
"@storybook/addon-interactions": "^8.5.8",
56+
"@storybook/addon-links": "^8.5.8",
57+
"@storybook/addon-mdx-gfm": "^8.5.8",
58+
"@storybook/addon-onboarding": "^8.5.8",
59+
"@storybook/blocks": "^8.5.8",
60+
"@storybook/manager-api": "^8.5.8",
61+
"@storybook/react": "^8.5.8",
62+
"@storybook/react-vite": "^8.5.8",
63+
"@storybook/test": "^8.5.8",
64+
"@storybook/theming": "^8.5.8",
65+
"@tailwindcss/forms": "^0.5.10",
66+
"@tailwindcss/vite": "^4.0.7",
67+
"@types/node": "^22.13.4",
68+
"@types/react": "^19.0.10",
69+
"@types/react-dom": "^19.0.4",
70+
"@vitejs/plugin-react": "^4.3.4",
7871
"path": "^0.12.7",
79-
"postcss": "^8.4.27",
80-
"storybook": "^7.6.14",
81-
"storybook-dark-mode": "^3.0.3",
82-
"tailwindcss": "^3.3.3",
83-
"typescript": "^5.0.2",
84-
"vite": "^4.4.5",
85-
"vite-plugin-dts": "^3.4.0"
86-
},
87-
"packageManager": "yarn@4.1.0"
72+
"postcss": "^8.5.3",
73+
"prettier": "^3.5.3",
74+
"prettier-plugin-tailwindcss": "^0.6.11",
75+
"storybook": "^8.5.8",
76+
"storybook-dark-mode": "^4.0.2",
77+
"tailwindcss": "^4.0.7",
78+
"typescript": "^5.7.3",
79+
"vite": "^6.1.1",
80+
"vite-plugin-dts": "^4.5.0"
81+
}
8882
}

0 commit comments

Comments
 (0)