Skip to content

Commit 9f40ecf

Browse files
committed
feat: sync
1 parent 84a2539 commit 9f40ecf

11 files changed

+75
-68
lines changed

bun.lockb

744 Bytes
Binary file not shown.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "justd/laravel",
3-
"version": "1.4.12",
3+
"version": "1.4.13",
44
"type": "project",
55
"description": "The skeleton application for the Laravel framework.",
66
"keywords": [

composer.lock

+28-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
"sonner": "^2.0.1",
3737
"tailwindcss-animate": "^1.0.7",
3838
"tailwindcss-react-aria-components": "^2.0.0",
39-
"vite": "^6.2.1"
39+
"vite": "^6.2.2"
4040
}
4141
}

resources/js/components/flash-message.tsx resources/js/components/flash.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useEffect } from "react"
44
import { toast } from "sonner"
55
import { Toast } from "ui"
66

7-
export function FlashMessage() {
7+
export function Flash() {
88
const { flash } = usePage<{ flash: FlashProps }>().props
99
useEffect(() => {
1010
if (flash?.message) {

resources/js/components/ui/card.tsx

+9-6
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const Card = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) =>
55
<div
66
data-slot="card"
77
className={twMerge(
8+
"group/card flex flex-col gap-(--card-spacing) rounded-lg border bg-bg py-(--card-spacing) text-fg shadow-xs [--card-spacing:theme(spacing.6)] has-[table]:overflow-hidden **:data-[slot=table-header]:bg-muted/50 has-[table]:**:data-[slot=card-footer]:border-t **:[table]:overflow-hidden",
89
className,
9-
"rounded-lg border bg-bg text-fg shadow-xs [--card-spacing:theme(spacing.6)] has-[table]:overflow-hidden **:data-[slot=table-header]:bg-muted/50 has-[table]:**:data-[slot=card-footer]:border-t **:[table]:overflow-hidden",
1010
)}
1111
{...props}
1212
/>
@@ -22,7 +22,7 @@ const CardHeader = ({ className, title, description, children, ...props }: Heade
2222
<div
2323
data-slot="card-header"
2424
className={twMerge(
25-
"grid w-full grid-cols-[1fr_auto] gap-y-1 px-(--card-spacing) py-6",
25+
"grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-(--card-spacing) has-[data-slot=card-action]:grid-cols-[1fr_auto]",
2626
className,
2727
)}
2828
{...props}
@@ -37,7 +37,7 @@ const CardTitle = ({ className, ...props }: React.ComponentProps<"div">) => {
3737
return (
3838
<div
3939
data-slot="card-title"
40-
className={twMerge("font-semibold text-lg/6 tracking-tight", className)}
40+
className={twMerge("font-semibold text-lg leading-none tracking-tight", className)}
4141
{...props}
4242
/>
4343
)
@@ -58,7 +58,10 @@ const CardAction = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement
5858
return (
5959
<div
6060
data-slot="card-action"
61-
className={twMerge("col-start-2 row-span-1 flex self-center", className)}
61+
className={twMerge(
62+
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
63+
className,
64+
)}
6265
{...props}
6366
/>
6467
)
@@ -69,7 +72,7 @@ const CardContent = ({ className, ...props }: React.HTMLAttributes<HTMLDivElemen
6972
<div
7073
data-slot="card-content"
7174
className={twMerge(
72-
"px-(--card-spacing) pb-(--card-spacing) has-[table]:border-t has-[[data-slot=table-header]]:bg-muted/40 has-[table]:p-0 **:data-[slot=table-cell]:px-(--card-spacing) **:data-[slot=table-column]:px-(--card-spacing) [&:has(table)+[data-slot=card-footer]]:py-6",
75+
"px-(--card-spacing) has-[[data-slot=table-header]]:bg-muted/40 has-[table]:p-0 group-has-[table]/card:border-t **:data-[slot=table-cell]:px-(--card-spacing) **:data-[slot=table-column]:px-(--card-spacing) [&:has(table)+[data-slot=card-footer]]:pt-(--card-spacing)",
7376
className,
7477
)}
7578
{...props}
@@ -81,7 +84,7 @@ const CardFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement
8184
return (
8285
<div
8386
data-slot="card-footer"
84-
className={twMerge("flex items-center p-(--card-spacing) pt-0", className)}
87+
className={twMerge("flex items-center px-(--card-spacing) [.border-t]:pt-6", className)}
8588
{...props}
8689
/>
8790
)

resources/js/components/ui/container.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { twMerge } from "tailwind-merge"
22

33
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
44
constrained?: boolean
5-
ref?: React.Ref<HTMLDivElement>
5+
ref?: React.RefObject<HTMLDivElement>
66
}
77

88
const Container = ({ className, constrained = false, ref, ...props }: ContainerProps) => (

resources/js/components/ui/field.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,14 @@ const fieldGroupStyles = tv({
9696
},
9797
})
9898

99-
const FieldGroup = ({ className, ...props }: GroupProps) => {
99+
interface FieldGroupProps extends GroupProps {
100+
ref?: React.RefObject<HTMLDivElement>
101+
}
102+
const FieldGroup = ({ className, ref, ...props }: FieldGroupProps) => {
100103
return (
101104
<Group
102105
{...props}
106+
ref={ref}
103107
className={composeRenderProps(className, (className, renderProps) =>
104108
fieldGroupStyles({
105109
...renderProps,

resources/js/components/ui/index.ts

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
export * from './primitive'
2-
export * from './avatar'
3-
export * from './button'
4-
export * from './card'
5-
export * from './checkbox'
6-
export * from './container'
7-
export * from './dialog'
8-
export * from './dropdown'
9-
export * from './field'
10-
export * from './form'
11-
export * from './heading'
12-
export * from './keyboard'
13-
export * from './link'
14-
export * from './list-box'
15-
export * from './loader'
16-
export * from './menu'
17-
export * from './modal'
18-
export * from './navbar'
19-
export * from './popover'
20-
export * from './separator'
21-
export * from './sheet'
22-
export * from './text-field'
23-
export * from './toast'
24-
export * from './visually-hidden'
1+
export * from "./primitive"
2+
export * from "./avatar"
3+
export * from "./button"
4+
export * from "./card"
5+
export * from "./checkbox"
6+
export * from "./container"
7+
export * from "./dialog"
8+
export * from "./dropdown"
9+
export * from "./field"
10+
export * from "./form"
11+
export * from "./heading"
12+
export * from "./keyboard"
13+
export * from "./link"
14+
export * from "./list-box"
15+
export * from "./loader"
16+
export * from "./menu"
17+
export * from "./modal"
18+
export * from "./navbar"
19+
export * from "./popover"
20+
export * from "./separator"
21+
export * from "./sheet"
22+
export * from "./text-field"
23+
export * from "./toast"
24+
export * from "./visually-hidden"

resources/js/layouts/app-layout.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { FlashMessage } from "@/components/flash-message"
1+
import { Flash } from "@/components/flash"
22
import { Footer } from "@/components/footer"
33
import { AppNavbar } from "@/layouts/app-navbar"
44
import type { PropsWithChildren } from "react"
55

66
export default function AppLayout({ children }: PropsWithChildren) {
77
return (
88
<div>
9-
<FlashMessage />
9+
<Flash />
1010
<AppNavbar>{children}</AppNavbar>
1111
<Footer />
1212
</div>

resources/js/layouts/guest-layout.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FlashMessage } from "@/components/flash-message"
1+
import { Flash } from "@/components/flash"
22
import { Logo } from "@/components/logo"
33
import { Card } from "@/components/ui/card"
44
import type { PropsWithChildren, ReactNode } from "react"
@@ -16,12 +16,12 @@ export default function GuestLayout({
1616
}: PropsWithChildren<GuestLayoutProps>) {
1717
return (
1818
<div className="flex min-h-screen flex-col items-center pt-6 sm:justify-center sm:pt-0">
19-
<FlashMessage />
19+
<Flash />
2020
<Link href={route("home")}>
2121
<Logo className="size-6" />
2222
</Link>
2323

24-
<div className="w-full max-w-sm">
24+
<div className="mt-6 w-full max-w-sm">
2525
<Card.Header className="text-center">
2626
<Card.Title>{header}</Card.Title>
2727
<Card.Description>{description}</Card.Description>

0 commit comments

Comments
 (0)