Skip to content

Commit c0e1938

Browse files
chore: update tailwindcss
1 parent c8c9608 commit c0e1938

File tree

12 files changed

+438
-482
lines changed

12 files changed

+438
-482
lines changed

pwa/components/book/Filters.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const Filters: FunctionComponent<Props> = ({ filters, mutation }) => (
5151
}) => (
5252
<form onSubmit={handleSubmit}>
5353
<FormGroup className="mb-4">
54-
<FormControlLabel name="author" labelPlacement="top" className="!m-0" label={
54+
<FormControlLabel name="author" labelPlacement="top" className="m-0!" label={
5555
<Typography className="font-semibold w-full">Author</Typography>
5656
} control={
5757
<TextField value={values?.author ?? ""} placeholder="Search by author..." type="search"
@@ -63,7 +63,7 @@ export const Filters: FunctionComponent<Props> = ({ filters, mutation }) => (
6363
}/>
6464
</FormGroup>
6565
<FormGroup className="mb-4">
66-
<FormControlLabel name="title" labelPlacement="top" className="!m-0" label={
66+
<FormControlLabel name="title" labelPlacement="top" className="m-0!" label={
6767
<Typography className="font-semibold w-full">Title</Typography>
6868
} control={
6969
<TextField value={values?.title ?? ""} placeholder="Search by title..." type="search"

pwa/components/book/Show.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export const Show: NextPage<Props> = ({ data, hubURL }) => {
137137
<p className="text-justify leading-7 my-8" data-testid="book-description">
138138
{book["description"] ?? "This book has no description."}
139139
</p>
140-
<button className="mt-4 px-10 py-4 font-semibold text-sm bg-cyan-500 text-white rounded-full shadow-sm"
140+
<button className="mt-4 px-10 py-4 font-semibold text-sm bg-cyan-500 text-white rounded-full shadow-xs"
141141
onClick={() => bookmarkMutation.mutate({ book: book["@id"] })} data-testid="bookmark">
142142
{!!bookmark && (
143143
<>

pwa/components/common/Error.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ interface Props {
55
export const Error = ({ message }: Props) => (
66
<div id="alert-border-2" role="alert"
77
className="flex items-center p-4 mb-4 text-red-800 border-t-4 border-red-300 bg-red-50 dark:text-red-400 dark:bg-gray-800 dark:border-red-800">
8-
<svg className="flex-shrink-0 w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
8+
<svg className="shrink-0 w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
99
fill="currentColor" viewBox="0 0 20 20">
1010
<path
1111
d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
@@ -14,7 +14,7 @@ export const Error = ({ message }: Props) => (
1414
{message}
1515
</div>
1616
<button type="button" data-dismiss-target="#alert-border-2" aria-label="Close"
17-
className="ml-auto -mx-1.5 -my-1.5 bg-red-50 text-red-500 rounded focus:ring-2 focus:ring-red-400 p-1.5 hover:bg-red-200 inline-flex items-center justify-center h-8 w-8 dark:bg-gray-800 dark:text-red-400 dark:hover:bg-gray-700">
17+
className="ml-auto -mx-1.5 -my-1.5 bg-red-50 text-red-500 rounded-sm focus:ring-2 focus:ring-red-400 p-1.5 hover:bg-red-200 inline-flex items-center justify-center h-8 w-8 dark:bg-gray-800 dark:text-red-400 dark:hover:bg-gray-700">
1818
<span className="sr-only">Dismiss</span>
1919
<svg className="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none"
2020
viewBox="0 0 14 14">

pwa/components/common/Loading.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ export const Loading = () => (
22
<div className="animate-pulse flex space-x-4 h-64 p-4 w-[180px]" data-testid="loading">
33
<div className="rounded-full bg-slate-700 h-10 w-[40px]"></div>
44
<div className="flex-1 space-y-6 py-1">
5-
<div className="h-2 bg-slate-700 rounded"></div>
5+
<div className="h-2 bg-slate-700 rounded-sm"></div>
66
<div className="space-y-3">
77
<div className="grid grid-cols-3 gap-4">
8-
<div className="h-2 bg-slate-700 rounded col-span-2"></div>
9-
<div className="h-2 bg-slate-700 rounded col-span-1"></div>
8+
<div className="h-2 bg-slate-700 rounded-sm col-span-2"></div>
9+
<div className="h-2 bg-slate-700 rounded-sm col-span-1"></div>
1010
</div>
11-
<div className="h-2 bg-slate-700 rounded"></div>
11+
<div className="h-2 bg-slate-700 rounded-sm"></div>
1212
</div>
1313
</div>
1414
</div>

pwa/components/review/Form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const Form: FunctionComponent<Props> = ({ book, onSuccess, review, userna
100100
</FormGroup>
101101
<FormGroup>
102102
<TextareaAutosize
103-
className="mt-2 mb-2 text-justify text-sm font-normal font-sans leading-5 p-3 rounded rounded-br-none shadow-md shadow-slate-100 focus:shadow-outline-purple focus:shadow-lg border border-solid border-slate-300 hover:border-purple-500 focus:border-purple-500 bg-white text-slate-900 focus-visible:outline-0"
103+
className="mt-2 mb-2 text-justify text-sm font-normal font-sans leading-5 p-3 rounded-sm rounded-br-none shadow-md shadow-slate-100 focus:shadow-outline-purple focus:shadow-lg border border-solid border-slate-300 hover:border-purple-500 focus:border-purple-500 bg-white text-slate-900 focus-visible:outline-0"
104104
// @ts-expect-error Ignore Eslint error
105105
aria-label="Review body" name="body" value={values?.body ?? ""} placeholder="Add a review..."
106106
onChange={handleChange} onBlur={handleBlur} data-testid="review-body"
@@ -120,7 +120,7 @@ export const Form: FunctionComponent<Props> = ({ book, onSuccess, review, userna
120120
{status.msg}
121121
</div>
122122
)}
123-
<button className="mt-4 px-10 py-3 font-semibold text-sm bg-cyan-500 text-white rounded shadow-sm"
123+
<button className="mt-4 px-10 py-3 font-semibold text-sm bg-cyan-500 text-white rounded-sm shadow-xs"
124124
type="submit" disabled={isSubmitting}>
125125
Submit
126126
</button>

pwa/components/review/List.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const List: FunctionComponent<Props> = ({ book }) => {
7373
</div>
7474
) || (
7575
<div className="flex mb-10">
76-
<button className="px-10 py-4 font-semibold text-sm bg-cyan-500 text-white rounded shadow-sm mx-auto"
76+
<button className="px-10 py-4 font-semibold text-sm bg-cyan-500 text-white rounded-sm shadow-xs mx-auto"
7777
onClick={() => signIn("keycloak")}>
7878
Log in to add a review!
7979
</button>

pwa/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"@mui/icons-material": "latest-v5",
1818
"@mui/material": "latest-v5",
1919
"@tailwindcss/forms": "^0.5.11",
20+
"@tailwindcss/postcss": "^4.1.18",
2021
"@tanstack/react-query": "^5.90.20",
2122
"@tanstack/react-query-devtools": "^5.91.3",
2223
"@tanstack/react-query-next-experimental": "^5.91.0",
23-
"autoprefixer": "^10.4.24",
2424
"formik": "^2.4.9",
2525
"next": "^16.1.6",
2626
"next-auth": "5.0.0-beta.30",
@@ -37,7 +37,7 @@
3737
"react-spinners": "^0.15.0",
3838
"sharp": "^0.34.5",
3939
"slugify": "^1.6.6",
40-
"tailwindcss": "^3.4.19",
40+
"tailwindcss": "^4.1.18",
4141
"yup": "^1.7.1"
4242
},
4343
"devDependencies": {

0 commit comments

Comments
 (0)