Skip to content

Commit cf05cc9

Browse files
committed
Merge branch 'add-dates-restriction-props' of github.com:NoahMLoomis/react-tailwindcss-datepicker into add-dates-restriction-props
2 parents a0a89fe + ada3400 commit cf05cc9

15 files changed

+2121
-18
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Folders
22
dist/
33
assets/
4+
pages/
5+
test-components/
46

57
# Files
68
README.md

.eslintrc.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"plugin:react/recommended",
1111
"plugin:@typescript-eslint/recommended",
1212
"plugin:prettier/recommended",
13-
"plugin:react-hooks/recommended"
13+
"plugin:react-hooks/recommended",
14+
"next/core-web-vitals"
1415
],
1516
"overrides": [],
1617
"parser": "@typescript-eslint/parser",
@@ -26,7 +27,7 @@
2627
"version": "detect"
2728
}
2829
},
29-
"plugins": ["react", "@typescript-eslint", "import", "prettier"],
30+
"plugins": ["react", "@typescript-eslint", "import", "prettier", "@next/eslint-plugin-next"],
3031
"rules": {
3132
"indent": "off",
3233
"linebreak-style": ["error", "unix"],
@@ -47,6 +48,7 @@
4748
"react/react-in-jsx-scope": "off",
4849
"react-hooks/rules-of-hooks": "error",
4950
"react-hooks/exhaustive-deps": "warn",
50-
"@typescript-eslint/no-var-requires": 0
51+
"@typescript-eslint/no-var-requires": 0,
52+
"prettier/prettier": ["error", { "endOfLine": "auto" }, { "usePrettierrc": true }]
5153
}
5254
}

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# See https://help.github.com/ignore-files/ for more about ignoring files.
22

33
# dependencies
4-
node_modules
5-
package-lock.json
6-
yarn.lock
4+
/node_modules/
5+
/package-lock.json
6+
/yarn.lock
7+
/.next/
78

89
# test coverage
910
coverage

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Folders
22
dist/
33
assets/
4+
.next/
45

56
# Files
67
README.md

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,21 @@ You can find the demo at [here](https://react-tailwindcss-datepicker.vercel.app/
120120
> 👉 To discover the other possibilities offered by this library, you can consult the [full documentation](https://react-tailwindcss-datepicker.vercel.app/).
121121
122122

123+
## PlayGround
124+
125+
Clone the `master` branch and run commands:
126+
127+
```sh
128+
# Using npm
129+
npm install && npm dev
130+
131+
# Using yarn
132+
yarn install && yarn dev
133+
134+
```
135+
136+
Open a browser and navigate to `http://localhost:8888`
137+
123138
## Contributing
124139
Got ideas on how to make this better? Open an issue!
125140

next-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.

next.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
reactStrictMode: true
4+
};
5+
6+
module.exports = nextConfig;

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"pret:fix": "prettier -w .",
1717
"format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc",
1818
"build": "npm run pret && npm run lint && npm run clean && rollup -c",
19-
"pub": "npm run build && npm publish"
19+
"pub": "npm run build && npm publish",
20+
"dev": "next dev -p 8888"
2021
},
2122
"repository": {
2223
"type": "git",
@@ -47,16 +48,18 @@
4748
"@typescript-eslint/eslint-plugin": "^5.45.0",
4849
"@typescript-eslint/parser": "^5.45.0",
4950
"autoprefixer": "^10.4.13",
50-
"dayjs": "^1.11.6",
51+
"dayjs": "^1.11.7",
5152
"eslint": "^8.29.0",
5253
"eslint-config-prettier": "^8.5.0",
5354
"eslint-plugin-import": "^2.26.0",
5455
"eslint-plugin-prettier": "^4.2.1",
5556
"eslint-plugin-react": "^7.31.11",
5657
"eslint-plugin-react-hooks": "^4.6.0",
58+
"next": "^13.1.1",
5759
"postcss": "^8.4.19",
5860
"prettier": "^2.8.0",
5961
"react": "^18.2.0",
62+
"react-dom": "^18.2.0",
6063
"rollup": "^2.77.2",
6164
"tailwindcss": "^3.2.4",
6265
"tslib": "^2.4.0",

pages/_app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import "../styles/globals.css";
2+
3+
function MyApp({ Component, pageProps }) {
4+
return <Component {...pageProps} />;
5+
}
6+
7+
export default MyApp;

0 commit comments

Comments
 (0)