{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "flip-card",
  "type": "registry:item",
  "title": "Flip Card",
  "description": "A card with two faces that flips in 3D. Click, Space or Enter flips it. Shadow DOM: the faces are slotted, and the page's CSS styles them, not the card's.",
  "dependencies": [
    "@zubra/runtime@^5.13.1"
  ],
  "categories": [
    "display"
  ],
  "registryDependencies": [
    "https://zubra-js.github.io/zubra-ui/r/theme.json"
  ],
  "files": [
    {
      "path": "components/flip-card.js",
      "type": "registry:file",
      "target": "~/src/components/zubra/flip-card.js",
      "content": "// Generated by zubra from flip-card.zb. Do not edit.\nimport { $define, $r, $t } from \"@zubra/runtime\";\n\nexport const tag = \"flip-card\";\n\nexport default $define(tag, {\n  props: {\n    \"flipped\": { attribute: \"flipped\", default: false, required: false, model: true },\n    \"hint\": { attribute: \"hint\", default: \"Click or press Space to flip\", required: false },\n  },\n  abi: 3,\n  shadow: true,\n  form: false,\n  slots: [\"back\", \"front\"],\n  events: [\"flippedchange\"],\n  styled: true,\n  styles: \"@layer theme, base, components, utilities;\\n@layer components {\\n  :host { display: block; perspective: 1400px; }\\n  .card { position: relative; display: grid; min-height: 15rem; transform-style: preserve-3d; transition: transform var(--duration-slow, 400ms) var(--ease-out, cubic-bezier(0.2, 0.7, 0.2, 1)); cursor: pointer; border-radius: calc(var(--radius, 0.625rem) * 2); outline: none; }\\n  .card:focus-visible { box-shadow: 0 0 0 3px var(--primary, #36c); }\\n  .flipped { transform: rotateY(180deg); }\\n  .face { grid-area: 1 / 1; display: grid; place-items: center; padding: 2rem; border-radius: calc(var(--radius, 0.625rem) * 2); backface-visibility: hidden; background: var(--card-front, var(--card, #ffffff)); color: var(--card-foreground, inherit); box-shadow: 0 2px 4px #0001, 0 16px 40px #00000014; text-align: center; }\\n  .back { transform: rotateY(180deg); background: var(--card-back, var(--muted, #f4f4f5)); }\\n  .hint { position: absolute; bottom: 0.75rem; left: 0; right: 0; text-align: center; font-size: 0.75rem; color: color-mix(in oklab, var(--muted-foreground, #71717a) 75%, var(--foreground, #18181b)); backface-visibility: hidden; }\\n  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; } }\\n}\\n\",\n  template: \"\\n  <div class=\\\"card\\\" role=\\\"button\\\" tabindex=\\\"0\\\">\\n    <div class=\\\"face front\\\"><slot name=\\\"front\\\"></slot></div>\\n    <div class=\\\"face back\\\"><slot name=\\\"back\\\"></slot></div>\\n    <span class=\\\"hint\\\"></span>\\n  </div>\\n\",\n  setup($p, $emit) {\n  function flip() {\n    $p.flipped = !$p.flipped\n  }\n    return [\n      { path: [0], toggle: \"flipped\", value: () => $p.flipped },\n      { path: [0], attribute: \"aria-pressed\", value: () => ($p.flipped ? \"true\" : \"false\") },\n      { path: [0], on: \"click\", handler: () => $r(flip) },\n      { path: [0], on: \"keydown\", handler: () => $r(flip), modifiers: { prevent: true, keys: [\" \", \"Enter\"] } },\n      { path: [0, 0], attribute: \"aria-hidden\", value: () => ($p.flipped ? \"true\" : \"false\") },\n      { path: [0, 1], attribute: \"aria-hidden\", value: () => ($p.flipped ? \"false\" : \"true\") },\n      { path: [0, 2], text: () => $t($p.hint) },\n    ];\n  },\n});\n"
    }
  ]
}
