Skip to content

Commit ea76fbd

Browse files
Updated - v2.0.2
1 parent 5750abd commit ea76fbd

File tree

12 files changed

+1357
-1164
lines changed

12 files changed

+1357
-1164
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## 🎉 Release - v2 🎉
44

5+
## [v2.0.2] - `2024-11-19`
6+
7+
### Updated
8+
9+
- Fixed known vulnerabilities
10+
- Updated dependencies
11+
- Fixed bugs on css in example project
12+
513
## [v2.0.1] - `2024-09-20`
614

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

211219
- Initialized Project
212220

221+
[v2.0.2]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v2.0.2
213222
[v2.0.1]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v2.0.1
214223
[v2.0.0]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v2.0.0
215224
[v1.3.6]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v1.3.6

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,18 @@ export default App;
7878
| **customInput** | A config for using custom input element. To use, you can provide a name of element like `Input` | _React.ComponentType<any> \| null_ | null | |
7979
| **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 |
8080

81+
## 🎩 Some Useful Tricks
82+
83+
1. To style dates outside the selected month, use the `.react-datepicker__day--outside-month` CSS class.
84+
85+
```css
86+
.react-datepicker__day--outside-month {
87+
color: #aaa;
88+
}
89+
```
90+
91+
> However, be aware that the appearance may resemble the 'disabled' attribute, which could affect the user experience
92+
8193
## 📝 Need More Example?
8294

8395
I made a couple difference stack demos. Try looking at the examples of "Vite" projects on [./example](./example).

example/with-next-tailwind-ts/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@
1010
"dependencies": {
1111
"next": "^14.2.13",
1212
"react": "link:../../node_modules/react",
13-
"react-datepicker": "^7.3.0",
13+
"react-datepicker": "^7.5.0",
1414
"react-dom": "link:../../node_modules/react-dom",
1515
"thaidatepicker-react": "file:../.."
1616
},
1717
"devDependencies": {
18-
"@types/node": "^22.5.5",
19-
"@types/react": "^18.3.8",
20-
"@types/react-dom": "^18.3.0",
21-
"@typescript-eslint/typescript-estree": "^8.6.0",
18+
"@types/node": "^22.9.0",
19+
"@types/react": "^18.3.12",
20+
"@types/react-dom": "^18.3.1",
21+
"@typescript-eslint/typescript-estree": "^8.15.0",
2222
"autoprefixer": "^10.4.20",
2323
"eslint": "^8.57.0",
2424
"eslint-config-next": "14.2.13",
25-
"postcss": "^8.4.47",
25+
"postcss": "^8.4.49",
2626
"prettier": "^3.3.3",
27-
"prettier-plugin-tailwindcss": "^0.6.6",
28-
"tailwindcss": "^3.4.12",
29-
"typescript": "^5.6.2"
27+
"prettier-plugin-tailwindcss": "^0.6.8",
28+
"tailwindcss": "^3.4.15",
29+
"typescript": "^5.6.3"
3030
}
3131
}

example/with-next-tailwind-ts/yarn.lock

Lines changed: 152 additions & 114 deletions
Large diffs are not rendered by default.

example/with-vite-antd-tailwind/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414
},
1515
"dependencies": {
1616
"@ant-design/icons": "^5.5.1",
17-
"@vercel/analytics": "^1.3.1",
18-
"antd": "^5.20.6",
17+
"@vercel/analytics": "^1.4.0",
18+
"antd": "^5.22.1",
1919
"autoprefixer": "^10.4.20",
20-
"postcss": "^8.4.47",
20+
"postcss": "^8.4.49",
2121
"react": "link:../../node_modules/react",
2222
"react-dom": "link:../../node_modules/react-dom",
23-
"tailwindcss": "^3.4.12",
23+
"tailwindcss": "^3.4.15",
2424
"thaidatepicker-react": "link:../.."
2525
},
2626
"devDependencies": {
27-
"@types/react": "^18.3.8",
28-
"@types/react-dom": "^18.3.0",
29-
"@vitejs/plugin-react": "^4.3.1",
30-
"vite": "^5.4.6"
27+
"@types/react": "^18.3.12",
28+
"@types/react-dom": "^18.3.1",
29+
"@vitejs/plugin-react": "^4.3.3",
30+
"vite": "^5.4.11"
3131
}
3232
}

example/with-vite-antd-tailwind/src/App.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ const App = () => {
7373
left: 0,
7474
top: 0,
7575
bottom: 0,
76+
zIndex: 1,
7677
}}
7778
>
7879
<div
@@ -116,6 +117,7 @@ const App = () => {
116117
display: "flex",
117118
flexDirection: "column",
118119
height: "100vh",
120+
zIndex: 0,
119121
}}
120122
>
121123
<Header

example/with-vite-antd-tailwind/src/components/GetStarted.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ const GetStarted = () => {
5353
dataSource={propsDataSource}
5454
columns={propsColumns}
5555
pagination={{ pageSize: 100, hideOnSinglePage: true }}
56+
scroll={{
57+
x: true,
58+
}}
5659
/>
5760
</>
5861
),

0 commit comments

Comments
 (0)