diff --git a/README.md b/README.md index 8a05a42..2fcdfc7 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ First install dependencies and run the build script ```shell npm install -npm build +npm run build ``` Then create a fresh laravel install with jetstream diff --git a/src/commands/install.ts b/src/commands/install.ts index d9ad37c..7eeab9a 100644 --- a/src/commands/install.ts +++ b/src/commands/install.ts @@ -25,33 +25,31 @@ export default class Install extends Command { static args = []; private devDeps = { - '@prettier/plugin-php': '^0.18.4', - '@tailwindcss/forms': '^0.5.2', - '@tailwindcss/typography': '^0.5.2', + '@prettier/plugin-php': '^0.22.2', + '@tailwindcss/forms': '^0.5.8', + '@tailwindcss/typography': '^0.5.15', '@types/lodash': '^4.14.181', - '@types/react': '^18.0.25', - '@types/react-dom': '^18.0.8', - '@types/ziggy-js': '^1.3.0', - '@vitejs/plugin-react': '^2.2.0', - autoprefixer: '^10.4.7', - 'laravel-vite-plugin': '^0.7.7', - postcss: '^8.4.14', - prettier: '^2.8.4', - tailwindcss: '^3.2.7', - typescript: '^4.6.3', - vite: '^3.0.0', + '@types/react': '^18.3.5', + '@types/react-dom': '^18.3.0', + '@vitejs/plugin-react': '^4.3.1', + autoprefixer: '^10.4.20', + 'laravel-vite-plugin': '^1.0.5', + postcss: '^8.4.41', + prettier: '^3.3.3', + tailwindcss: '^3.4.10', + typescript: '^5.5.4', + vite: '^5.4.2', }; private deps = { - '@headlessui/react': '^1.7.11', - '@inertiajs/core': '^1.0.2', - '@inertiajs/react': '^1.0.2', - axios: '^0.26.1', - classnames: '^2.3.1', + '@headlessui/react': '^2.1.3', + '@inertiajs/react': '^1.2.0', + axios: '^1.7.6', + classnames: '^2.5.1', lodash: '^4.17.21', - react: '^18.2.0', - 'react-dom': '^18.2.0', - 'ziggy-js': '^1.4.5', + react: '^18.3.1', + 'react-dom': '^18.3.1', + 'ziggy-js': '^2.3.0', }; private oldDeps = [ diff --git a/src/stubs/resources/js/Components/Dropdown.tsx b/src/stubs/resources/js/Components/Dropdown.tsx index 0529a49..a0407ad 100644 --- a/src/stubs/resources/js/Components/Dropdown.tsx +++ b/src/stubs/resources/js/Components/Dropdown.tsx @@ -51,23 +51,24 @@ export default function Dropdown({ leave="transition ease-in duration-75" leaveFrom="transform opacity-100 scale-100" leaveTo="transform opacity-0 scale-95" - className={'relative z-50'} > -
setOpen(false)} - > +
setOpen(false)} > - {children} +
+ {children} +
diff --git a/src/stubs/resources/js/Components/Modal.tsx b/src/stubs/resources/js/Components/Modal.tsx index 0cb1579..e06c0fd 100644 --- a/src/stubs/resources/js/Components/Modal.tsx +++ b/src/stubs/resources/js/Components/Modal.tsx @@ -1,4 +1,4 @@ -import { Dialog, Transition } from '@headlessui/react'; +import { Dialog, Transition, TransitionChild } from '@headlessui/react'; import classNames from 'classnames'; import React, { PropsWithChildren } from 'react'; import ReactDOM from 'react-dom'; @@ -28,7 +28,7 @@ export default function Modal({ } return ReactDOM.createPortal( - +
- - - +
+ {/* This element is to trick the browser into centering the modal contents. */} - {children}
- +
-
, + , document.body, ); } diff --git a/src/stubs/resources/js/Hooks/useRoute.ts b/src/stubs/resources/js/Hooks/useRoute.ts index eb1a736..9da928f 100644 --- a/src/stubs/resources/js/Hooks/useRoute.ts +++ b/src/stubs/resources/js/Hooks/useRoute.ts @@ -1,4 +1,4 @@ -import route from 'ziggy-js'; +import { route } from 'ziggy-js'; import { createContext, useContext } from 'react'; export const RouteContext = createContext(null);