schema: ai-cjm-component-contract/v1 id: event-card version: 2.0.0 status: stable owner: AI CJM Design purpose: Представляет выступление, вебинар или событие с понятным форматом и следующим действием. use_when: - Нужно представить событие, вебинар, конференцию или выступление. evidence: - id: production-style url: https://aicjm.ru/edu/cases/case-card.css?v=20260811-case-canon locator: .case-card, .case-card__body, .case-card__bottom supports: - anatomy - variant:default - size:default - state:default - id: production-dom url: https://aicjm.ru/edu/cases/ locator: .case-grid .case-card[href*='ozon'] supports: - approved-example - content anatomy: - id: event-type required: true role: Формат события. - id: title required: true role: Тема или результат участия. - id: context required: true role: Площадка, аудитория или клиент. - id: date-place required: false role: Дата и место только при наличии. - id: action required: true role: Регистрация, detail или запрос выступления. variants: - id: default status: stable description: Каноническая композиция v2. evidence_refs: - production-style sizes: - id: default status: stable description: Размер следует токенам и содержимому без локальных чисел. evidence_refs: - production-style states: default: status: stable basis: observed description: event-card default is observed at the exact production locator. evidence_refs: - production-style hover: status: not-applicable basis: not-applicable description: hover is not owned by event-card. focus-visible: status: not-applicable basis: not-applicable description: focus-visible is not owned by event-card. active: status: not-applicable basis: not-applicable description: active is not owned by event-card. selected: status: not-applicable basis: not-applicable description: selected is not owned by event-card. open: status: not-applicable basis: not-applicable description: open is not owned by event-card. disabled: status: not-applicable basis: not-applicable description: disabled is not owned by event-card. loading: status: not-applicable basis: not-applicable description: loading is not owned by event-card. success: status: not-applicable basis: not-applicable description: success is not owned by event-card. error: status: not-applicable basis: not-applicable description: error is not owned by event-card. empty: status: not-applicable basis: not-applicable description: empty is not owned by event-card. responsive: mode: event-card-to-compact-reading-order reading_order: 'event-card: DOM order remains authoritative at every viewport.' rules: - Preserve event-card anatomy and primary action in one reading sequence. - Wrap text without horizontal page overflow and preserve evidence labels. accessibility: pattern: event-card-navigation semantics: - Expose event-card as the nearest correct native landmark, article or control. keyboard: - Tab reaches real actions in DOM order; Enter or Space follows the native control contract. focus: - Interactive descendants use focus.ring and preserve a visible label. motion: - Reduced motion removes nonessential transitions without hiding state or evidence. tokens: - component.card.background - component.card.text - component.card.border - type.size.metadata - action.primary - focus.ring content: required: - Формат события. - Тема или результат участия. - Площадка, аудитория или клиент. - Регистрация, detail или запрос выступления. constraints: - Называть точный формат и реальное следующее действие. - Каждый факт и asset сохраняет provenance. do: - Называть точный формат и реальное следующее действие. dont: - Не показывать прошедшее событие как доступную регистрацию. examples: approved: status: stable description: Live event-card at the scoped production locator. evidence: https://aicjm.ru/edu/cases/ prohibited: description: Не показывать прошедшее событие как доступную регистрацию. acceptance: - id: event-card-1 criterion: Все обязательные anatomy parts присутствуют в DOM и видимы. method: automated-and-manual - id: event-card-2 criterion: На mobile сохраняются reading order, target size и отсутствие overflow. method: browser