feat(attendance): refactor attendance summary logic and update tests feat(analytics): extend GroupRiskSummary schema with absence and attendance counts feat(groups): enhance group schema with attendee and waitlist counts chore(skills): add frontend design skill with guidelines and license feat(attendee-detail): implement AttendeePhoneLine component for phone display feat(groups): create AttendanceBadge and CapacityIndicator components for group cards feat(groups): add card utility functions for attendance alerts and capacity summaries test(groups): implement tests for attendance alert and capacity summary logic
16 lines
1.3 KiB
TypeScript
16 lines
1.3 KiB
TypeScript
/** Botón de acción de la pantalla (WhatsApp, Llamar, Copiar link).
|
|
*
|
|
* Relleno `primary-soft`, que es la misma superficie rellena que usa el detalle
|
|
* de grupo: un borde fino sobre `surface` en tema claro es invisible porque
|
|
* `surface` y `background` son el mismo blanco. 44px de alto para el dedo, y
|
|
* el mismo anillo de foco y feedback de presión que el `Button` de la app. */
|
|
export const ACTION_BUTTON_CLASS =
|
|
'inline-flex h-11 items-center justify-center gap-2 rounded-xl bg-primary-soft px-3 text-sm font-medium text-primary transition-colors hover:bg-accent-soft active:scale-[0.96] motion-reduce:active:scale-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent'
|
|
|
|
/** Acción principal de un panel (Enviar por WhatsApp). Misma superficie que el
|
|
* `Button` `primary` de la app —relleno `accent` con texto `on-accent`, que
|
|
* da 6.8:1 en los dos temas— pero a ancho completo porque sola en la columna:
|
|
* al lado de la secundaria al 50% los rótulos largos se parten en dos líneas. */
|
|
export const PRIMARY_ACTION_CLASS =
|
|
'inline-flex h-11 w-full items-center justify-center gap-2 rounded-xl bg-accent px-4 text-sm font-medium text-on-accent transition-colors hover:bg-accent-strong active:scale-[0.96] motion-reduce:active:scale-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent'
|