Skip to content

Commit

Permalink
[Wat][Updated - v0.2.0]
Browse files Browse the repository at this point in the history
- [Updated] Dependencies (Note: Upgrade major version of `React@18.1.0` and `react-datepicker`)
- [Added] `inputProps` property for customizable of input
- [Added] `inputProps` description on README.md and also a missing one `reactDatePickerProps`
- [Edited] ESLint and prettier
- [Edited] missing remove unused code
  • Loading branch information
buildingwatsize committed Apr 29, 2022
1 parent 19782df commit 8f49c10
Show file tree
Hide file tree
Showing 10 changed files with 10,755 additions and 14,420 deletions.
22 changes: 13 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
{
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"extends": [
"standard",
"standard-react",
"plugin:prettier/recommended",
"prettier/standard",
"prettier/react"
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"env": {
"node": true
"browser": true,
"es2021": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 2020,
"ecmaVersion": "latest",
"ecmaFeatures": {
"legacyDecorators": true,
"jsx": true
}
},
"babelOptions": {
"presets": ["@babel/preset-react"]
},
"requireConfigFile": false
},
"settings": {
"react": {
Expand Down
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"semi": false,
"tabWidth": 2,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"trailingComma": "none"
}
}
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# CHANGELOG.MD

## [v0.2.0] - `2022-04-29`

- [Updated] Dependencies (Note: Upgrade major version of `React@18.1.0` and `react-datepicker`)
- [Added] `inputProps` property for customizable of input
- [Added] `inputProps` description on README.md and also a missing one `reactDatePickerProps`
- [Edited] ESLint and prettier
- [Edited] missing remove unused code

## [v0.1.5] - `2021-04-02`

- [Updated] Dependencies
- [Fixed] bug on "Form Submit" after click prev/next month button

## [v0.1.4] - `2021-01-19`

- [Merged] [PR#2](https://github.com/buildingwatsize/thaidatepicker-react/pull/2)
- [Added] CodeQL Analysis
- [Added] Supported props `disabled` and `readOnly`
- [Added] Supported year boundaries with `yearBoundary` props. The default is 99 btw It depends on `minDate` and `maxDate`
- [Added] Clearable button will hide on `disabled` or `readOnly` props is true. The default is true
- [Added] Supported more props of `react-datepicker` by using `reactDatePickerProps` props
- [Fixed] some buggy on yarn

## [v0.1.3] - `2021-01-12`

- [Merged] [PR#1](https://github.com/buildingwatsize/thaidatepicker-react/pull/1)
- [Added] more features, displayFormat, inputStyle, and clearable

## [v0.1.2] - `2021-01-11`

- [Fixed] Known vulnerabilities
- [Added] Link for demo
- [Added] display date format for input
- [Added] clearable props to let user clear their selected date
- [Added] inputStyle to control input box styling

## [v0.1.1] - `2020-05-11`

- Initialized Project

## [v0.1.0] - `2020-05-11`

- Initialized Project

[v0.2.0]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v0.2.0
[v0.1.5]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v0.1.5
[v0.1.4]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v0.1.4
[v0.1.3]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v0.1.3
[v0.1.2]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v0.1.2
[v0.1.1]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v0.1.1
[v0.1.0]: https://github.com/buildingwatsize/thaidatepicker-react/releases/tag/v0.1.0
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Thaidatepicker-react is a component for ReactJS that likes other DatePicker, but
- `clearable` The small button to allow user clear the selected value, possible value true, false
- `inputStyle` The style customization.
- `dateFormat` The format of value, possible value is "yyyy-MM-dd" please see more at [date-fns](https://date-fns.org/v2.12.0/docs/format)
- `inputProps` Customizable an input component properties
- `reactDatePickerProps` Customizable a react-datepicker properties

## ⚙ Install

Expand Down
3 changes: 2 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"homepage": "https://buildingwatsize.github.io/thaidatepicker-react",
"version": "0.0.0",
"private": true,
"license": "MIT",
"dependencies": {
"react": "link:../node_modules/react",
"react-dom": "link:../node_modules/react-dom",
Expand All @@ -25,4 +26,4 @@
"not ie <= 11",
"not op_mini all"
]
}
}

0 comments on commit 8f49c10

Please sign in to comment.