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

@@ -12,9 +12,9 @@
hasError
? isOpen
? openDirection === 'down'
? 'rounded-b-none !border-2 !border-m-error !border-b-0'
: 'rounded-t-none !border-2 !border-m-error !border-t-0'
: 'border-m-error'
? 'rounded-b-none !border-2 !border-m-danger !border-b-0'
: 'rounded-t-none !border-2 !border-m-danger !border-t-0'
: 'border-m-danger'
: hasSuccess
? isOpen
? openDirection === 'down'
@@ -46,7 +46,7 @@
:class="[
isOpen ? 'top-2 z-30' : 'top-2',
hasError
? 'text-m-error'
? 'text-m-danger'
: hasSuccess
? 'text-m-success'
: isOpen
@@ -75,7 +75,7 @@
class="absolute right-3 top-1/2 -translate-y-1/2"
:class="[
hasError
? 'text-m-error'
? 'text-m-danger'
: hasSuccess
? 'text-m-success'
: 'text-current'
@@ -109,7 +109,7 @@
? 'select-scrollbar-success'
: 'select-scrollbar-primary',
hasError
? 'border-m-error'
? 'border-m-danger'
: hasSuccess
? 'border-m-success'
: 'border-m-primary'
@@ -140,7 +140,7 @@
:id="`${buttonId}-describedby`"
:class="[
hasError
? 'text-m-error'
? 'text-m-danger'
: hasSuccess
? 'text-m-success'
: 'text-m-muted',

View File

@@ -12,9 +12,9 @@
hasError
? isOpen
? openDirection === 'down'
? 'rounded-b-none !border-2 !border-m-error !border-b-0'
: 'rounded-t-none !border-2 !border-m-error !border-t-0'
: 'border-m-error'
? 'rounded-b-none !border-2 !border-m-danger !border-b-0'
: 'rounded-t-none !border-2 !border-m-danger !border-t-0'
: 'border-m-danger'
: hasSuccess
? isOpen
? openDirection === 'down'
@@ -46,7 +46,7 @@
:class="[
shouldFloatLabel ? 'top-2 z-30' : 'top-1/2 -translate-y-1/2',
hasError
? 'text-m-error'
? 'text-m-danger'
: hasSuccess
? 'text-m-success'
: isOpen
@@ -103,7 +103,7 @@
class="absolute right-3 top-1/2 -translate-y-1/2"
:class="[
hasError
? 'text-m-error'
? 'text-m-danger'
: hasSuccess
? 'text-m-success'
: 'text-current'
@@ -137,7 +137,7 @@
? 'select-scrollbar-success'
: 'select-scrollbar-primary',
hasError
? 'border-m-error'
? 'border-m-danger'
: hasSuccess
? 'border-m-success'
: 'border-m-primary'
@@ -190,7 +190,7 @@
:id="`${buttonId}-describedby`"
:class="[
hasError
? 'text-m-error'
? 'text-m-danger'
: hasSuccess
? 'text-m-success'
: 'text-m-muted',