Skip to content

Commit c2e4c99

Browse files
committed
format playgrounds
1 parent f75e09a commit c2e4c99

32 files changed

+51
-51
lines changed

packages/playground-react/pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function KeyCaster() {
132132
if (keys.length <= 0) return null
133133

134134
return (
135-
<div className="pointer-events-none fixed right-4 bottom-4 z-50 cursor-default select-none overflow-hidden rounded-md bg-blue-800 px-4 py-2 text-2xl tracking-wide text-blue-100 shadow">
135+
<div className="pointer-events-none fixed bottom-4 right-4 z-50 cursor-default select-none overflow-hidden rounded-md bg-blue-800 px-4 py-2 text-2xl tracking-wide text-blue-100 shadow">
136136
{keys.slice().reverse().join(' ')}
137137
</div>
138138
)

packages/playground-react/pages/combinations/form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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-md rounded border-gray-300 bg-clip-padding px-3 py-1 shadow-sm focus:border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
263+
className="w-full rounded rounded-md border-gray-300 bg-clip-padding px-3 py-1 shadow-sm focus:border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
264264
placeholder="Search users..."
265265
/>
266266
<div

packages/playground-react/pages/combinations/tabs-in-dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function App() {
1111
<Dialog open={open} onClose={setOpen} className="fixed inset-0 grid place-content-center">
1212
<div className="fixed inset-0 bg-gray-500/70" />
1313
<Dialog.Panel className="inline-block transform overflow-hidden rounded-lg bg-white text-left align-bottom shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:align-middle">
14-
<div className="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
14+
<div className="bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4">
1515
<Tab.Group>
1616
<Tab.List className="flex gap-4 py-4">
1717
<Tab as={Button}>Tab 1</Tab>

packages/playground-react/pages/dialog/dialog-scroll-issue.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function MyDialog({ open, close }) {
1515
leaveFrom="opacity-100"
1616
leaveTo="opacity-0"
1717
>
18-
<div className="fixed left-0 top-0 bottom-0 flex items-center justify-center bg-red-500 p-4">
18+
<div className="fixed bottom-0 left-0 top-0 flex items-center justify-center bg-red-500 p-4">
1919
<Dialog.Panel className="mx-auto w-48 rounded bg-white p-4">
2020
<p className="my-2">Gray area should be scrollable</p>
2121

packages/playground-react/pages/dialog/dialog-with-shadow-children.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function App() {
6363
<ShadowChildren id="btn_outside_shadow" />
6464
</div>
6565
</div>
66-
<Dialog.Panel className="fixed top-16 left-16 z-50 h-64 w-64 rounded-lg border border-black/10 bg-white bg-clip-padding p-12 shadow-lg">
66+
<Dialog.Panel className="fixed left-16 top-16 z-50 h-64 w-64 rounded-lg border border-black/10 bg-white bg-clip-padding p-12 shadow-lg">
6767
<div>
6868
<button
6969
className="m-4 rounded border-0 bg-gray-500 px-3 py-1 font-medium text-white hover:bg-gray-600"

packages/playground-react/pages/dialog/dialog.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function Home() {
7777
}}
7878
>
7979
<div className="fixed inset-0 z-10 overflow-y-auto">
80-
<div className="flex min-h-screen items-end justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0">
80+
<div className="flex min-h-screen items-end justify-center px-4 pb-20 pt-4 text-center sm:block sm:p-0">
8181
<Transition.Child
8282
as={Fragment}
8383
enter="ease-out duration-300"
@@ -115,7 +115,7 @@ export default function Home() {
115115
&#8203;
116116
</span>
117117
<Dialog.Panel className="inline-block transform overflow-hidden rounded-lg bg-white text-left align-bottom shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:align-middle">
118-
<div className="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
118+
<div className="bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4">
119119
<div className="sm:flex sm:items-start">
120120
<div className="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10">
121121
{/* Heroicon name: exclamation */}
@@ -135,7 +135,7 @@ export default function Home() {
135135
/>
136136
</svg>
137137
</div>
138-
<div className="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
138+
<div className="mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left">
139139
<Dialog.Title
140140
as="h3"
141141
className="text-lg font-medium leading-6 text-gray-900"
@@ -152,7 +152,7 @@ export default function Home() {
152152
<Menu.Button as={Button} ref={trigger}>
153153
<span>Choose a reason</span>
154154
<svg
155-
className="ml-2 -mr-1 h-5 w-5"
155+
className="-mr-1 ml-2 h-5 w-5"
156156
viewBox="0 0 20 20"
157157
fill="currentColor"
158158
>

packages/playground-react/pages/dialog/scrollable-dialog.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ export default function Example() {
4343
leaveFrom="opacity-100 translate-y-0 sm:scale-100"
4444
leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
4545
>
46-
<Dialog.Panel className="relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6">
46+
<Dialog.Panel className="relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6">
4747
<div className="sm:flex sm:items-start">
4848
<div className="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10">
4949
<ExclamationIcon className="h-6 w-6 text-red-600" aria-hidden="true" />
5050
</div>
51-
<div className="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
51+
<div className="mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left">
5252
<Dialog.Title as="h3" className="text-lg font-medium leading-6 text-gray-900">
5353
Deactivate account
5454
</Dialog.Title>
@@ -70,7 +70,7 @@ export default function Example() {
7070
</div>
7171
</div>
7272
</div>
73-
<div className="mt-5 sm:mt-4 sm:ml-10 sm:flex sm:pl-4">
73+
<div className="mt-5 sm:ml-10 sm:mt-4 sm:flex sm:pl-4">
7474
<button
7575
type="button"
7676
className="inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 sm:w-auto sm:text-sm"
@@ -80,7 +80,7 @@ export default function Example() {
8080
</button>
8181
<button
8282
type="button"
83-
className="mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
83+
className="mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 sm:ml-3 sm:mt-0 sm:w-auto sm:text-sm"
8484
onClick={() => setOpen(false)}
8585
ref={cancelButtonRef}
8686
>

packages/playground-react/pages/dialog/scrollable-page-with-dialog.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function Home() {
5050
}}
5151
>
5252
<div className="fixed inset-0 z-10 overflow-y-auto">
53-
<div className="flex min-h-screen items-end justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0">
53+
<div className="flex min-h-screen items-end justify-center px-4 pb-20 pt-4 text-center sm:block sm:p-0">
5454
<Transition.Child
5555
as={Fragment}
5656
enter="ease-out duration-300"
@@ -88,7 +88,7 @@ export default function Home() {
8888
&#8203;
8989
</span>
9090
<Dialog.Panel className="inline-block transform overflow-hidden rounded-lg bg-white text-left align-bottom shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:align-middle">
91-
<div className="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
91+
<div className="bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4">
9292
<div className="sm:flex sm:items-start">
9393
<div className="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10">
9494
{/* Heroicon name: exclamation */}
@@ -108,7 +108,7 @@ export default function Home() {
108108
/>
109109
</svg>
110110
</div>
111-
<div className="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
111+
<div className="mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left">
112112
<Dialog.Title
113113
as="h3"
114114
className="text-lg font-medium leading-6 text-gray-900"

packages/playground-react/pages/menu/menu-with-floating-ui.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function Home() {
2828
<span className="inline-flex rounded-md shadow-sm">
2929
<Menu.Button ref={refs.setReference} as={Button}>
3030
<span>Options</span>
31-
<svg className="ml-2 -mr-1 h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
31+
<svg className="-mr-1 ml-2 h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
3232
<path
3333
fillRule="evenodd"
3434
d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"

packages/playground-react/pages/menu/menu-with-framer-motion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function Home() {
1616
<span className="rounded-md shadow-sm">
1717
<Menu.Button as={Button}>
1818
<span>Options</span>
19-
<svg className="ml-2 -mr-1 h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
19+
<svg className="-mr-1 ml-2 h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
2020
<path
2121
fillRule="evenodd"
2222
d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"

0 commit comments

Comments
 (0)