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>
29 lines
838 B
Vue
29 lines
838 B
Vue
<script setup lang="ts">
|
|
import type { HTMLAttributes } from "vue"
|
|
import type { OTPInputEmits, OTPInputProps } from "vue-input-otp"
|
|
import { reactiveOmit } from "@vueuse/core"
|
|
import { useForwardPropsEmits } from "reka-ui"
|
|
import { OTPInput } from "vue-input-otp"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
const props = defineProps<OTPInputProps & { class?: HTMLAttributes["class"] }>()
|
|
|
|
const emits = defineEmits<OTPInputEmits>()
|
|
|
|
const delegatedProps = reactiveOmit(props, "class")
|
|
|
|
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
</script>
|
|
|
|
<template>
|
|
<OTPInput
|
|
v-slot="slotProps"
|
|
v-bind="forwarded"
|
|
:container-class="cn('flex items-center gap-2 has-disabled:opacity-50', props.class)"
|
|
data-slot="input-otp"
|
|
class="disabled:cursor-not-allowed"
|
|
>
|
|
<slot v-bind="slotProps" />
|
|
</OTPInput>
|
|
</template>
|