Skip to content

Commit b04babd

Browse files
committed
run prettier
1 parent bee4895 commit b04babd

36 files changed

+121
-121
lines changed

playgrounds/react/components/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export let Button = forwardRef<
1212
ref={ref}
1313
type="button"
1414
className={classNames(
15-
'ui-focus-visible:ring-2 ui-focus-visible:ring-offset-2 flex items-center rounded-md border border-gray-300 bg-white px-2 py-1 ring-gray-500 ring-offset-gray-100 focus:outline-hidden',
15+
'ui-focus-visible:ring-2 ui-focus-visible:ring-offset-2 focus:outline-hidden flex items-center rounded-md border border-gray-300 bg-white px-2 py-1 ring-gray-500 ring-offset-gray-100',
1616
className
1717
)}
1818
{...props}

playgrounds/react/pages/combinations/form.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function App() {
4646
name="notifications"
4747
className={({ checked }) =>
4848
classNames(
49-
'relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent focus:outline-hidden focus:ring-2 focus:ring-blue-500 focus:ring-offset-2',
49+
'focus:outline-hidden relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent focus:ring-2 focus:ring-blue-500 focus:ring-offset-2',
5050
checked ? 'bg-blue-600' : 'bg-gray-200'
5151
)
5252
}
@@ -72,7 +72,7 @@ export default function App() {
7272
value="apple"
7373
className={({ checked }) =>
7474
classNames(
75-
'relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent focus:outline-hidden focus:ring-2 focus:ring-blue-500 focus:ring-offset-2',
75+
'focus:outline-hidden relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent focus:ring-2 focus:ring-blue-500 focus:ring-offset-2',
7676
checked ? 'bg-blue-600' : 'bg-gray-200'
7777
)
7878
}
@@ -95,7 +95,7 @@ export default function App() {
9595
value="banana"
9696
className={({ checked }) =>
9797
classNames(
98-
'relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent focus:outline-hidden focus:ring-2 focus:ring-blue-500 focus:ring-offset-2',
98+
'focus:outline-hidden relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent focus:ring-2 focus:ring-blue-500 focus:ring-offset-2',
9999
checked ? 'bg-blue-600' : 'bg-gray-200'
100100
)
101101
}
@@ -122,7 +122,7 @@ export default function App() {
122122
value={size}
123123
className={({ active }) =>
124124
classNames(
125-
'relative flex w-20 border px-2 py-4 first:rounded-l-md last:rounded-r-md focus:outline-hidden focus:ring-2 focus:ring-blue-500 focus:ring-offset-2',
125+
'focus:outline-hidden relative flex w-20 border px-2 py-4 first:rounded-l-md last:rounded-r-md focus:ring-2 focus:ring-blue-500 focus:ring-offset-2',
126126
active ? 'z-10 border-blue-200 bg-blue-50' : 'border-gray-200'
127127
)
128128
}
@@ -191,7 +191,7 @@ export default function App() {
191191
</Listbox.Button>
192192

193193
<div className="absolute z-10 mt-1 w-full rounded-md bg-white shadow-lg">
194-
<Listbox.Options className="shadow-2xs max-h-60 overflow-auto rounded-md py-1 text-base leading-6 focus:outline-hidden sm:text-sm sm:leading-5">
194+
<Listbox.Options className="shadow-2xs focus:outline-hidden max-h-60 overflow-auto rounded-md py-1 text-base leading-6 sm:text-sm sm:leading-5">
195195
{people.map((person) => (
196196
<Listbox.Option
197197
key={person.id}
@@ -260,7 +260,7 @@ export default function App() {
260260
<div className="flex w-full flex-col">
261261
<Combobox.Input
262262
onChange={(e) => setQuery(e.target.value)}
263-
className="w-full rounded-sm rounded-md border-gray-300 bg-clip-padding px-3 py-1 shadow-xs focus:border-gray-300 focus:outline-hidden focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
263+
className="shadow-xs focus:outline-hidden w-full rounded-md rounded-sm border-gray-300 bg-clip-padding px-3 py-1 focus:border-gray-300 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
264264
placeholder="Search users..."
265265
/>
266266
<div
@@ -335,13 +335,13 @@ export default function App() {
335335
</div>
336336

337337
<div className="space-x-4">
338-
<button className="rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium leading-6 text-gray-700 shadow-xs hover:text-gray-500 focus:outline-hidden focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 sm:text-sm sm:leading-5">
338+
<button className="shadow-xs focus:outline-hidden rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium leading-6 text-gray-700 hover:text-gray-500 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 sm:text-sm sm:leading-5">
339339
Submit
340340
</button>
341341

342342
<button
343343
type="reset"
344-
className="rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium leading-6 text-gray-700 shadow-xs hover:text-gray-500 focus:outline-hidden focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 sm:text-sm sm:leading-5"
344+
className="shadow-xs focus:outline-hidden rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium leading-6 text-gray-700 hover:text-gray-500 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 sm:text-sm sm:leading-5"
345345
>
346346
Reset
347347
</button>

playgrounds/react/pages/combobox/combobox-countries.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ export default function Home() {
4848
</Combobox.Label>
4949

5050
<div className="relative">
51-
<span className="relative inline-flex flex-row overflow-hidden rounded-md border shadow-xs">
51+
<span className="shadow-xs relative inline-flex flex-row overflow-hidden rounded-md border">
5252
<Combobox.Input
5353
onChange={(e) => setQuery(e.target.value)}
54-
className="border-none px-3 py-1 outline-hidden"
54+
className="outline-hidden border-none px-3 py-1"
5555
/>
5656
<Combobox.Button as={Button}>
5757
<span className="pointer-events-none flex items-center px-2">
@@ -75,15 +75,15 @@ export default function Home() {
7575
<Combobox.Options
7676
transition
7777
anchor="bottom start"
78-
className="w-[calc(var(--input-width)+var(--button-width))] overflow-auto rounded-md bg-white py-1 text-base leading-6 shadow-lg transition duration-1000 [--anchor-gap:--spacing(1)] [--anchor-max-height:--spacing(60)] focus:outline-hidden data-closed:opacity-0 sm:text-sm sm:leading-5"
78+
className="focus:outline-hidden data-closed:opacity-0 w-[calc(var(--input-width)+var(--button-width))] overflow-auto rounded-md bg-white py-1 text-base leading-6 shadow-lg transition duration-1000 [--anchor-gap:--spacing(1)] [--anchor-max-height:--spacing(60)] sm:text-sm sm:leading-5"
7979
>
8080
{countries.map((country) => (
8181
<Combobox.Option
8282
key={country}
8383
value={country}
8484
className={({ active }) => {
8585
return classNames(
86-
'relative cursor-default select-none py-2 pl-3 pr-9 focus:outline-hidden',
86+
'focus:outline-hidden relative cursor-default select-none py-2 pl-3 pr-9',
8787
active ? 'bg-indigo-600 text-white' : 'text-gray-900'
8888
)
8989
}}

playgrounds/react/pages/combobox/combobox-open-on-focus.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ export default function Home() {
6262
</Combobox.Label>
6363

6464
<div className="relative">
65-
<span className="relative inline-flex flex-row overflow-hidden rounded-md border shadow-xs">
65+
<span className="shadow-xs relative inline-flex flex-row overflow-hidden rounded-md border">
6666
<Combobox.Input
6767
onChange={(e) => setQuery(e.target.value)}
68-
className="border-none px-3 py-1 outline-hidden"
68+
className="outline-hidden border-none px-3 py-1"
6969
/>
7070
<Combobox.Button as={Button}>
7171
<span className="pointer-events-none flex items-center px-2">
@@ -87,14 +87,14 @@ export default function Home() {
8787
</span>
8888

8989
<div className="absolute mt-1 w-full rounded-md bg-white shadow-lg">
90-
<Combobox.Options className="shadow-2xs max-h-60 overflow-auto rounded-md py-1 text-base leading-6 focus:outline-hidden sm:text-sm sm:leading-5">
90+
<Combobox.Options className="shadow-2xs focus:outline-hidden max-h-60 overflow-auto rounded-md py-1 text-base leading-6 sm:text-sm sm:leading-5">
9191
{people.map((name) => (
9292
<Combobox.Option
9393
key={name}
9494
value={name}
9595
className={({ active }) => {
9696
return classNames(
97-
'relative cursor-default select-none py-2 pl-3 pr-9 focus:outline-hidden',
97+
'focus:outline-hidden relative cursor-default select-none py-2 pl-3 pr-9',
9898
active ? 'bg-indigo-600 text-white' : 'text-gray-900'
9999
)
100100
}}

playgrounds/react/pages/combobox/combobox-virtual-with-empty-states.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ export default function Home() {
8383
</Combobox.Label>
8484

8585
<div className="relative">
86-
<span className="relative inline-flex flex-row overflow-hidden rounded-md border shadow-xs">
86+
<span className="shadow-xs relative inline-flex flex-row overflow-hidden rounded-md border">
8787
<Combobox.Input
8888
onChange={(e) => setQuery(e.target.value)}
8989
displayValue={(option: Option | null) => option?.name ?? ''}
90-
className="border-none px-3 py-1 outline-hidden"
90+
className="outline-hidden border-none px-3 py-1"
9191
/>
9292
<Combobox.Button as={Button}>
9393
<span className="pointer-events-none flex items-center px-2">
@@ -116,7 +116,7 @@ export default function Home() {
116116
static={filtered.length === 0}
117117
ref={optionsRef}
118118
className={classNames(
119-
'shadow-2xs max-h-60 rounded-md py-1 text-base leading-6 focus:outline-hidden sm:text-sm sm:leading-5',
119+
'shadow-2xs focus:outline-hidden max-h-60 rounded-md py-1 text-base leading-6 sm:text-sm sm:leading-5',
120120
filtered.length === 0 ? 'overflow-hidden' : 'overflow-auto'
121121
)}
122122
>
@@ -130,7 +130,7 @@ export default function Home() {
130130
disabled
131131
// Note: Do NOT use `null` for the `value`
132132
value={option ?? emptyOption.current}
133-
className="relative w-full cursor-default select-none px-3 py-2 text-center focus:outline-hidden"
133+
className="focus:outline-hidden relative w-full cursor-default select-none px-3 py-2 text-center"
134134
>
135135
<div className="relative grid h-full grid-cols-1 grid-rows-1">
136136
<div className="absolute inset-0">
@@ -155,7 +155,7 @@ export default function Home() {
155155
<button
156156
id="add_person"
157157
type="button"
158-
className="rounded-sm bg-blue-500 px-4 py-2 font-semibold text-white hover:bg-blue-600 focus:outline-hidden focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
158+
className="focus:outline-hidden rounded-sm bg-blue-500 px-4 py-2 font-semibold text-white hover:bg-blue-600 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
159159
onClick={() => {
160160
let person = { name: query, disabled: false }
161161
setList((list) => [...list, person])
@@ -177,7 +177,7 @@ export default function Home() {
177177
value={option}
178178
className={({ active }) => {
179179
return classNames(
180-
'relative w-full cursor-default select-none py-2 pl-3 pr-9 focus:outline-hidden',
180+
'focus:outline-hidden relative w-full cursor-default select-none py-2 pl-3 pr-9',
181181
active ? 'bg-indigo-600 text-white' : 'text-gray-900'
182182
)
183183
}}

playgrounds/react/pages/combobox/combobox-virtualized.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ function Example({ virtual = true, data, initial }: { virtual?: boolean; data; i
8080
</Combobox.Label>
8181

8282
<div className="relative">
83-
<span className="relative inline-flex flex-row overflow-hidden rounded-md border shadow-xs">
83+
<span className="shadow-xs relative inline-flex flex-row overflow-hidden rounded-md border">
8484
<Combobox.Input
8585
onChange={(e) => setQuery(e.target.value)}
86-
className="border-none px-3 py-1 outline-hidden"
86+
className="outline-hidden border-none px-3 py-1"
8787
/>
8888
<Combobox.Button as={Button}>
8989
<span className="pointer-events-none flex items-center px-2">
@@ -108,15 +108,15 @@ function Example({ virtual = true, data, initial }: { virtual?: boolean; data; i
108108
<Combobox.Options
109109
transition
110110
anchor="bottom start"
111-
className="w-[calc(var(--input-width)+var(--button-width))] overflow-auto rounded-md bg-white py-1 text-base leading-6 shadow-lg transition duration-300 [--anchor-gap:--spacing(1)] [--anchor-max-height:--spacing(60)] focus:outline-hidden data-closed:opacity-0 sm:text-sm sm:leading-5"
111+
className="focus:outline-hidden data-closed:opacity-0 w-[calc(var(--input-width)+var(--button-width))] overflow-auto rounded-md bg-white py-1 text-base leading-6 shadow-lg transition duration-300 [--anchor-gap:--spacing(1)] [--anchor-max-height:--spacing(60)] sm:text-sm sm:leading-5"
112112
>
113113
{({ option }) => {
114114
return (
115115
<Combobox.Option
116116
value={option}
117117
className={({ active }) => {
118118
return classNames(
119-
'relative w-full cursor-default select-none py-2 pl-3 pr-9 focus:outline-hidden',
119+
'focus:outline-hidden relative w-full cursor-default select-none py-2 pl-3 pr-9',
120120
active ? 'bg-indigo-600 text-white' : 'text-gray-900'
121121
)
122122
}}
@@ -157,7 +157,7 @@ function Example({ virtual = true, data, initial }: { virtual?: boolean; data; i
157157
<Combobox.Options
158158
transition
159159
anchor="bottom start"
160-
className="w-[calc(var(--input-width)+var(--button-width))] overflow-auto rounded-md bg-white py-1 text-base leading-6 shadow-lg transition duration-300 [--anchor-gap:--spacing(1)] [--anchor-max-height:--spacing(60)] focus:outline-hidden data-closed:opacity-0 sm:text-sm sm:leading-5"
160+
className="focus:outline-hidden data-closed:opacity-0 w-[calc(var(--input-width)+var(--button-width))] overflow-auto rounded-md bg-white py-1 text-base leading-6 shadow-lg transition duration-300 [--anchor-gap:--spacing(1)] [--anchor-max-height:--spacing(60)] sm:text-sm sm:leading-5"
161161
>
162162
{timezones.map((timezone, idx) => {
163163
return (
@@ -167,7 +167,7 @@ function Example({ virtual = true, data, initial }: { virtual?: boolean; data; i
167167
value={timezone}
168168
className={({ active }) => {
169169
return classNames(
170-
'relative w-full cursor-default select-none py-2 pl-3 pr-9 focus:outline-hidden',
170+
'focus:outline-hidden relative w-full cursor-default select-none py-2 pl-3 pr-9',
171171
active ? 'bg-indigo-600 text-white' : 'text-gray-900'
172172
)
173173
}}

playgrounds/react/pages/combobox/combobox-with-pure-tailwind.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ export default function Home() {
6060
</Combobox.Label>
6161

6262
<div className="relative">
63-
<span className="relative inline-flex flex-row overflow-hidden rounded-md border shadow-xs">
63+
<span className="shadow-xs relative inline-flex flex-row overflow-hidden rounded-md border">
6464
<Combobox.Input
6565
onChange={(e) => setQuery(e.target.value)}
66-
className="border-none px-3 py-1 outline-hidden"
66+
className="outline-hidden border-none px-3 py-1"
6767
/>
6868
<Combobox.Button as={Button}>
6969
<span className="pointer-events-none flex items-center px-2">
@@ -85,14 +85,14 @@ export default function Home() {
8585
</span>
8686

8787
<div className="absolute mt-1 w-full rounded-md bg-white shadow-lg">
88-
<Combobox.Options className="shadow-2xs max-h-60 overflow-auto rounded-md py-1 text-base leading-6 focus:outline-hidden sm:text-sm sm:leading-5">
88+
<Combobox.Options className="shadow-2xs focus:outline-hidden max-h-60 overflow-auto rounded-md py-1 text-base leading-6 sm:text-sm sm:leading-5">
8989
{people.map((name) => (
9090
<Combobox.Option
9191
key={name}
9292
value={name}
9393
className={({ active }) => {
9494
return classNames(
95-
'relative cursor-default select-none py-2 pl-3 pr-9 focus:outline-hidden',
95+
'focus:outline-hidden relative cursor-default select-none py-2 pl-3 pr-9',
9696
active ? 'bg-indigo-600 text-white' : 'text-gray-900'
9797
)
9898
}}

0 commit comments

Comments
 (0)