Skip to content

Upgrade to tailwinds v4 #307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function Playground() {
<title>react-tailwindcss-datepicker PlayGround</title>
</Head>
<h1 className="text-center font-semibold text-xl">
<pre className="text-gray-600 text-lg bg-gray-200 max-w-max mx-auto px-2 rounded">
<pre className="text-gray-600 text-lg bg-gray-200 max-w-max mx-auto px-2 rounded-sm">
react-tailwindcss-datepicker
</pre>
<span className="text-gray-700">PlayGround</span>
Expand Down Expand Up @@ -150,7 +150,7 @@ export default function Playground() {
<div className="inline-flex items-center">
<input
type="checkbox"
className="mr-2 rounded"
className="mr-2 rounded-sm"
id="useRange"
checked={useRange}
onChange={e => setUseRange(e.target.checked)}
Expand All @@ -164,7 +164,7 @@ export default function Playground() {
<div className="inline-flex items-center">
<input
type="checkbox"
className="mr-2 rounded"
className="mr-2 rounded-sm"
id="showFooter"
checked={showFooter}
onChange={e => setShowFooter(e.target.checked)}
Expand All @@ -178,7 +178,7 @@ export default function Playground() {
<div className="inline-flex items-center">
<input
type="checkbox"
className="mr-2 rounded"
className="mr-2 rounded-sm"
id="showShortcuts"
checked={showShortcuts}
onChange={e => setShowShortcuts(e.target.checked)}
Expand All @@ -192,7 +192,7 @@ export default function Playground() {
<div className="inline-flex items-center">
<input
type="checkbox"
className="mr-2 rounded"
className="mr-2 rounded-sm"
id="asSingle"
checked={asSingle}
onChange={e => setAsSingle(e.target.checked)}
Expand All @@ -206,7 +206,7 @@ export default function Playground() {
<div className="inline-flex items-center">
<input
type="checkbox"
className="mr-2 rounded"
className="mr-2 rounded-sm"
id="disabled"
checked={disabled}
onChange={e => setDisabled(e.target.checked)}
Expand All @@ -220,7 +220,7 @@ export default function Playground() {
<div className="inline-flex items-center">
<input
type="checkbox"
className="mr-2 rounded"
className="mr-2 rounded-sm"
id="readOnly"
checked={readOnly}
onChange={e => setReadOnly(e.target.checked)}
Expand All @@ -234,7 +234,7 @@ export default function Playground() {
<div className="inline-flex items-center">
<input
type="checkbox"
className="mr-2 rounded"
className="mr-2 rounded-sm"
id="required"
checked={required}
onChange={e => setRequired(e.target.checked)}
Expand All @@ -252,7 +252,7 @@ export default function Playground() {
Primary Color
</label>
<select
className="rounded block w-full border-gray-200 border px-4 py-2"
className="rounded-sm block w-full border-gray-200 border px-4 py-2"
id="primaryColor"
value={primaryColor}
onChange={e => {
Expand All @@ -272,7 +272,7 @@ export default function Playground() {
Placeholder
</label>
<input
className="rounded border px-4 py-2 w-full border-gray-200"
className="rounded-sm border px-4 py-2 w-full border-gray-200"
id="placeholder"
value={placeholder}
onChange={e => {
Expand All @@ -286,7 +286,7 @@ export default function Playground() {
Separator
</label>
<input
className="rounded border px-4 py-2 w-full border-gray-200"
className="rounded-sm border px-4 py-2 w-full border-gray-200"
id="separator"
value={separator}
onChange={e => {
Expand All @@ -300,7 +300,7 @@ export default function Playground() {
Start From
</label>
<input
className="rounded border px-4 py-2 w-full border-gray-200"
className="rounded-sm border px-4 py-2 w-full border-gray-200"
id="startFrom"
type="date"
value={startFrom}
Expand All @@ -315,7 +315,7 @@ export default function Playground() {
Minimum Date
</label>
<input
className="rounded border px-4 py-2 w-full border-gray-200"
className="rounded-sm border px-4 py-2 w-full border-gray-200"
id="minDate"
type="date"
max={maxDate}
Expand All @@ -331,7 +331,7 @@ export default function Playground() {
Maximum Date
</label>
<input
className="rounded border px-4 py-2 w-full border-gray-200"
className="rounded-sm border px-4 py-2 w-full border-gray-200"
id="maxDate"
type="date"
min={minDate}
Expand All @@ -347,7 +347,7 @@ export default function Playground() {
Date Looking
</label>
<select
className="rounded block w-full border-gray-200 border px-4 py-2"
className="rounded-sm block w-full border-gray-200 border px-4 py-2"
id="dateLooking"
value={dateLooking}
onChange={e => {
Expand All @@ -369,7 +369,7 @@ export default function Playground() {
i18n
</label>
<input
className="rounded border px-4 py-2 w-full border-gray-200"
className="rounded-sm border px-4 py-2 w-full border-gray-200"
id="i18n"
value={i18n}
onChange={e => {
Expand All @@ -383,7 +383,7 @@ export default function Playground() {
Display Format
</label>
<input
className="rounded border px-4 py-2 w-full border-gray-200"
className="rounded-sm border px-4 py-2 w-full border-gray-200"
id="displayFormat"
value={displayFormat}
onChange={e => {
Expand All @@ -397,7 +397,7 @@ export default function Playground() {
Input Class
</label>
<input
className="rounded border px-4 py-2 w-full border-gray-200"
className="rounded-sm border px-4 py-2 w-full border-gray-200"
id="inputClassName"
value={inputClassName}
onChange={e => {
Expand All @@ -411,7 +411,7 @@ export default function Playground() {
Container Class
</label>
<input
className="rounded border px-4 py-2 w-full border-gray-200"
className="rounded-sm border px-4 py-2 w-full border-gray-200"
id="containerClassName"
value={containerClassName}
onChange={e => {
Expand All @@ -425,7 +425,7 @@ export default function Playground() {
Toggle Class
</label>
<input
className="rounded border px-4 py-2 w-full border-gray-200"
className="rounded-sm border px-4 py-2 w-full border-gray-200"
id="toggleClassName"
value={toggleClassName}
onChange={e => {
Expand All @@ -440,7 +440,7 @@ export default function Playground() {
</label>

<select
className="rounded block w-full border-gray-200 border px-4 py-2"
className="rounded-sm block w-full border-gray-200 border px-4 py-2"
id="startWeekOnClassName"
value={startWeekOn}
onChange={e => {
Expand All @@ -461,7 +461,7 @@ export default function Playground() {
</label>

<select
className="rounded block w-full border-gray-200 border px-4 py-2"
className="rounded-sm block w-full border-gray-200 border px-4 py-2"
id="startWeekOnClassName"
value={popoverDirection}
onChange={e => {
Expand Down Expand Up @@ -491,7 +491,7 @@ export default function Playground() {
</label>

<input
className="rounded border px-4 py-2 border-gray-200 sm:w-full w-full"
className="rounded-sm border px-4 py-2 border-gray-200 sm:w-full w-full"
id="startDate"
type="date"
value={newDisabledDates.startDate}
Expand All @@ -513,7 +513,7 @@ export default function Playground() {
</label>

<input
className="rounded border px-4 py-2 border-gray-200 sm:w-full w-full"
className="rounded-sm border px-4 py-2 border-gray-200 sm:w-full w-full"
id="endDate"
type="date"
value={newDisabledDates.endDate}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-typescript": "^12.1.2",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/postcss": "^4.0.0",
"@types/node": "^22.3.0",
"@types/react": "^19.0.8",
"@typescript-eslint/eslint-plugin": "^8.22.0",
"@typescript-eslint/parser": "^8.22.0",
"autoprefixer": "^10.4.20",
"dayjs": "^1.11.12",
"eslint": "^8.57.0",
"eslint-config-next": "^15.1.6",
Expand All @@ -66,7 +66,7 @@
"react": "^19.0.0",
"react-dom": "^19.0.0",
"rollup": "^4.34.0",
"tailwindcss": "^3.4.10",
"tailwindcss": "^4.0.0",
"tslib": "^2.8.1",
"typescript": "^5.5.4"
},
Expand Down
Loading