Initial commit of the L'Ami Fiduciaire SaaS platform built on Laravel 12, Vue 3, Inertia.js 2, and Tailwind CSS 4. Story 0.1 (rename folders to declarations in database) is implemented and code-reviewed: migration, rollback, and 6 Pest tests all passing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
1.0 KiB
Vue
31 lines
1.0 KiB
Vue
<script setup lang="ts">
|
|
import type { DropdownMenuSubTriggerProps } from "reka-ui"
|
|
import type { HTMLAttributes } from "vue"
|
|
import { reactiveOmit } from "@vueuse/core"
|
|
import { ChevronRight } from "lucide-vue-next"
|
|
import {
|
|
DropdownMenuSubTrigger,
|
|
useForwardProps,
|
|
} from "reka-ui"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
const props = defineProps<DropdownMenuSubTriggerProps & { class?: HTMLAttributes["class"], inset?: boolean }>()
|
|
|
|
const delegatedProps = reactiveOmit(props, "class", "inset")
|
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
</script>
|
|
|
|
<template>
|
|
<DropdownMenuSubTrigger
|
|
data-slot="dropdown-menu-sub-trigger"
|
|
v-bind="forwardedProps"
|
|
:class="cn(
|
|
'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8',
|
|
props.class,
|
|
)"
|
|
>
|
|
<slot />
|
|
<ChevronRight class="ml-auto size-4" />
|
|
</DropdownMenuSubTrigger>
|
|
</template>
|