Layer 2: state matrix
4 parts × 10 states. Every cell is the real component in that state, or says why the state doesn't apply. No blank cells.
23 drawn, 17 marked “doesn't apply”, 0 blank.
Primary button
default
hover
active
focus-visible
disabled
Only while a booking is being sent, so a second tap can't book twice.
loading
empty
Doesn't apply. A button always has its label.
error
Doesn't apply. Errors sit on the fields and in the summary, never on the button (it stays enabled).
full-class
Doesn't apply. Fullness belongs to the class option, not the submit.
success
Doesn't apply. After success the form hides; the WhatsApp button takes over.
Class option
default
hover
active
focus-visible
disabled
loading
Doesn't apply. Classes are in the server HTML; nothing loads after the page.
empty
Domingo: sin clases. El gimnasio está cerrado.
error
Escoge una clase con cupos.
full-class
success
Doesn't apply. The picked class is repeated in the success message.
Text field
default
Como quieres que te llamemos.
hover
Como quieres que te llamemos.
active
Como quieres que te llamemos.
focus-visible
Como quieres que te llamemos.
disabled
Doesn't apply. Fields never disable: a person can always fix what they typed.
loading
Doesn't apply. Nothing is fetched while typing.
empty
10 dígitos, por ejemplo 809-555-0100.
error
10 dígitos, por ejemplo 809-555-0100.
Revisa el número: 10 dígitos que empiezan con 809, 829 u 849.
full-class
Doesn't apply. Only classes fill up.
success
Doesn't apply. The form hides on success.
Result panel
default
Doesn't apply. Empty and silent until the person submits.
hover
Doesn't apply. Not interactive.
active
Doesn't apply. Not interactive.
focus-visible
Focus moves here after a failed submit.
disabled
Doesn't apply. Not interactive.
loading
Doesn't apply. Loading shows on the button, where the person is looking.
empty
Doesn't apply. Same as default.
error
Faltan 2 datos:
- Escoge una clase con cupos.
- Escribe tu nombre.
full-class
Doesn't apply. Shown on the option itself.
success
¡Listo! Tu cupo está apartado. Confirma por WhatsApp.