feat : ajout du composant bouton

This commit is contained in:
2026-03-24 11:11:25 +01:00
parent 968b7087b5
commit 51a138f5b8
16 changed files with 631 additions and 50 deletions

View File

@@ -62,7 +62,7 @@
:id="`${inputId}-describedby`"
:class="[
hasError
? 'text-m-error'
? 'text-m-danger'
: hasSuccess
? 'text-m-success'
: 'text-m-muted',
@@ -185,7 +185,7 @@ const mergedGroupClass = computed(() =>
const mergedLabelClass = computed(() =>
twMerge(
'mt-px mr-4 cursor-pointer text-black text-[18px]',
hasError.value ? 'text-m-error' : '',
hasError.value ? 'text-m-danger' : '',
hasSuccess.value ? 'text-m-success' : '',
props.disabled ? 'cursor-not-allowed text-black/60' : '',
props.labelClass
@@ -197,7 +197,7 @@ const mergedInputClass = (field: 'hours' | 'minutes') =>
'h-[30px] w-10 border bg-white text-center text-[18px] outline-none rounded-md placeholder:text-m-muted',
props.disabled ? 'cursor-not-allowed text-black/60 border-m-muted' : 'cursor-text',
hasError.value
? 'focus:border-2 border-m-error focus:border-m-error'
? 'focus:border-2 border-m-danger focus:border-m-danger'
: hasSuccess.value
? 'focus:border-2 border-m-success focus:border-m-success'
: activeField.value === field