Skip to content

Commit

Permalink
Updated - v2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
buildingwatsize committed Nov 19, 2024
1 parent 5750abd commit ea76fbd
Show file tree
Hide file tree
Showing 12 changed files with 1,357 additions and 1,164 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

## 🎉 Release - v2 🎉

## [v2.0.2] - `2024-11-19`

### Updated

- Fixed known vulnerabilities
- Updated dependencies
- Fixed bugs on css in example project

## [v2.0.1] - `2024-09-20`

### Updated
Expand Down Expand Up @@ -210,6 +218,7 @@ I have to skipping for the old versions which was unpublished once on first crea

- Initialized Project

[v2.0.2]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v2.0.2
[v2.0.1]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v2.0.1
[v2.0.0]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v2.0.0
[v1.3.6]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v1.3.6
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ export default App;
| **customInput** | A config for using custom input element. To use, you can provide a name of element like `Input` | _React.ComponentType<any> \| null_ | null | |
| **noIntegratedStyle** | A config for define to exclude integrated css `Note: if you using 2 components, which the first one contain noIntegratedStyle props but the second is not. It will import css and then it apply to them all` | _boolean_ | false | v2.0.0 |

## 🎩 Some Useful Tricks

1. To style dates outside the selected month, use the `.react-datepicker__day--outside-month` CSS class.

```css
.react-datepicker__day--outside-month {
color: #aaa;
}
```

> However, be aware that the appearance may resemble the 'disabled' attribute, which could affect the user experience
## 📝 Need More Example?

I made a couple difference stack demos. Try looking at the examples of "Vite" projects on [./example](./example).
Expand Down
18 changes: 9 additions & 9 deletions example/with-next-tailwind-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
"dependencies": {
"next": "^14.2.13",
"react": "link:../../node_modules/react",
"react-datepicker": "^7.3.0",
"react-datepicker": "^7.5.0",
"react-dom": "link:../../node_modules/react-dom",
"thaidatepicker-react": "file:../.."
},
"devDependencies": {
"@types/node": "^22.5.5",
"@types/react": "^18.3.8",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/typescript-estree": "^8.6.0",
"@types/node": "^22.9.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@typescript-eslint/typescript-estree": "^8.15.0",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.0",
"eslint-config-next": "14.2.13",
"postcss": "^8.4.47",
"postcss": "^8.4.49",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.6",
"tailwindcss": "^3.4.12",
"typescript": "^5.6.2"
"prettier-plugin-tailwindcss": "^0.6.8",
"tailwindcss": "^3.4.15",
"typescript": "^5.6.3"
}
}
266 changes: 152 additions & 114 deletions example/with-next-tailwind-ts/yarn.lock

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions example/with-vite-antd-tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
},
"dependencies": {
"@ant-design/icons": "^5.5.1",
"@vercel/analytics": "^1.3.1",
"antd": "^5.20.6",
"@vercel/analytics": "^1.4.0",
"antd": "^5.22.1",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.47",
"postcss": "^8.4.49",
"react": "link:../../node_modules/react",
"react-dom": "link:../../node_modules/react-dom",
"tailwindcss": "^3.4.12",
"tailwindcss": "^3.4.15",
"thaidatepicker-react": "link:../.."
},
"devDependencies": {
"@types/react": "^18.3.8",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"vite": "^5.4.6"
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"vite": "^5.4.11"
}
}
2 changes: 2 additions & 0 deletions example/with-vite-antd-tailwind/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const App = () => {
left: 0,
top: 0,
bottom: 0,
zIndex: 1,
}}
>
<div
Expand Down Expand Up @@ -116,6 +117,7 @@ const App = () => {
display: "flex",
flexDirection: "column",
height: "100vh",
zIndex: 0,
}}
>
<Header
Expand Down
3 changes: 3 additions & 0 deletions example/with-vite-antd-tailwind/src/components/GetStarted.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ const GetStarted = () => {
dataSource={propsDataSource}
columns={propsColumns}
pagination={{ pageSize: 100, hideOnSinglePage: true }}
scroll={{
x: true,
}}
/>
</>
),
Expand Down
Loading

1 comment on commit ea76fbd

@buildingwatsize
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closed #88, #89

Please sign in to comment.