{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"empty-calendar","type":"registry:block","title":"Empty Calendar","description":"Stack of calendar cards marked empty, fanning out on hover","dependencies":[],"files":[{"path":"illustrations/empty-calendar/empty-calendar.tsx","type":"registry:block","content":"\"use client\";\n\nimport { useId } from \"react\";\n\n/*\n * Empty Calendar – a small card illustration, in a single self-contained file.\n * Three stacked calendar cards with an \"Empty\" badge and a disabled \"Join meeting\" button.\n * Hover the front card to lift it, hover a back card to slide it further out.\n * The artwork is drawn on a 320 × 240 viewBox inside a 3 : 2 frame.\n */\n\nexport type EmptyCalendarProps = {\n  className?: string;\n  /** Accessible description of the scene */\n  label?: string;\n};\n\nexport function EmptyCalendar({\n  className,\n  label = \"Stacked calendar cards marked empty, with a disabled join meeting button\",\n}: EmptyCalendarProps) {\n  const id = \"ui-ec\" + useId().replace(/[^a-zA-Z0-9_-]/g, \"\");\n\n  return (\n    <div className={[\"ui-ec\", className].filter(Boolean).join(\" \")} role=\"img\" aria-label={label}>\n      {/* React 19 hoists this into <head> once, no matter how many instances render */}\n      <style href=\"ui-empty-calendar\" precedence=\"default\">\n        {css}\n      </style>\n      <svg className=\"ui-ec-art\" viewBox=\"0 0 320 240\" aria-hidden=\"true\">\n        <defs>\n          <filter id={`${id}-blur`} x=\"-30%\" y=\"-100%\" width=\"160%\" height=\"300%\">\n            <feGaussianBlur stdDeviation=\"14\" />\n          </filter>\n          <filter id={`${id}-shadow`} x=\"-20%\" y=\"-20%\" width=\"140%\" height=\"140%\">\n            <feDropShadow className=\"ui-ec-drop\" dx=\"0\" dy=\"3\" stdDeviation=\"4\" floodColor=\"#000000\" floodOpacity=\"0.06\" />\n          </filter>\n          <linearGradient id={`${id}-blob`} x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">\n            <stop offset=\"0%\" stopColor=\"#FFA0AB\" stopOpacity=\"0.25\" />\n            <stop offset=\"33%\" stopColor=\"#FFB89E\" stopOpacity=\"0.25\" />\n            <stop offset=\"66%\" stopColor=\"#C8A8E5\" stopOpacity=\"0.25\" />\n            <stop offset=\"100%\" stopColor=\"#A8B5FF\" stopOpacity=\"0.25\" />\n          </linearGradient>\n          <linearGradient id={`${id}-stroke`} x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\">\n            <stop className=\"ui-ec-edge\" offset=\"0%\" stopColor=\"#E4E7EC\" />\n            <stop offset=\"18%\" stopColor=\"#FFB5BC\" />\n            <stop offset=\"40%\" stopColor=\"#FFC5AB\" />\n            <stop offset=\"60%\" stopColor=\"#D5BBEF\" />\n            <stop offset=\"82%\" stopColor=\"#B5C0FF\" />\n            <stop className=\"ui-ec-edge\" offset=\"100%\" stopColor=\"#E4E7EC\" />\n          </linearGradient>\n        </defs>\n\n        <g transform=\"translate(30 47) scale(0.814)\">\n          {/* Back cards – hover to slide them out further */}\n          <g className=\"ui-ec-back ui-ec-back-left\">\n            <CalendarCard shadow={`url(#${id}-shadow)`} />\n          </g>\n          <g className=\"ui-ec-back ui-ec-back-right\">\n            <CalendarCard shadow={`url(#${id}-shadow)`} />\n          </g>\n\n          {/* Front card with a soft colored glow underneath */}\n          <g className=\"ui-ec-front\">\n            <ellipse\n              className=\"ui-ec-blob\"\n              cx=\"160\"\n              cy=\"152\"\n              rx=\"125\"\n              ry=\"35\"\n              fill={`url(#${id}-blob)`}\n              filter={`url(#${id}-blur)`}\n            />\n            <CalendarCard shadow={`url(#${id}-shadow)`} />\n            {/* Colored bottom edge, matching the glow */}\n            <path\n              d=\"M40 150 A 10 10 0 0 0 50 160 L270 160 A 10 10 0 0 0 280 150\"\n              fill=\"none\"\n              stroke={`url(#${id}-stroke)`}\n              strokeWidth=\"0.5\"\n            />\n          </g>\n        </g>\n      </svg>\n    </div>\n  );\n}\n\n/** One calendar card: title, \"Empty\" badge, placeholder lines and a disabled button */\nfunction CalendarCard({ shadow }: { shadow: string }) {\n  return (\n    <>\n      <rect className=\"ui-ec-card\" x=\"40\" y=\"20\" width=\"240\" height=\"140\" rx=\"10\" fill=\"#FFFFFF\" stroke=\"#E4E7EC\" strokeWidth=\"0.5\" filter={shadow} />\n      <text className=\"ui-ec-title\" x=\"56\" y=\"48\" fontSize=\"13\" fontWeight=\"500\" fill=\"#8A8A8A\">\n        Calendar\n      </text>\n      <g transform=\"translate(218 34)\">\n        <rect className=\"ui-ec-badge\" width=\"46\" height=\"18\" rx=\"5\" fill=\"#FEF8EF\" />\n        <text x=\"23\" y=\"12\" textAnchor=\"middle\" fontSize=\"9\" fontWeight=\"600\" letterSpacing=\"0.06em\" fill=\"#FAB082\">\n          EMPTY\n        </text>\n      </g>\n      <rect className=\"ui-ec-bar\" x=\"56\" y=\"64\" width=\"208\" height=\"7\" rx=\"2\" fill=\"#EFF1F4\" />\n      <rect className=\"ui-ec-bar\" x=\"56\" y=\"74\" width=\"208\" height=\"7\" rx=\"2\" fill=\"#EFF1F4\" />\n      <rect className=\"ui-ec-bar\" x=\"56\" y=\"84\" width=\"168\" height=\"7\" rx=\"2\" fill=\"#EFF1F4\" />\n      <g transform=\"translate(56 104)\">\n        <rect className=\"ui-ec-btn\" width=\"208\" height=\"40\" rx=\"8\" fill=\"#F4F4F6\" stroke=\"#E4E7EC\" strokeWidth=\"0.5\" />\n        {/* \"Not available\" icon + label, centered together */}\n        <g\n          className=\"ui-ec-btn-ink\"\n          transform=\"translate(64 14)\"\n          fill=\"none\"\n          stroke=\"#9A9AA3\"\n          strokeWidth=\"1.3\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n        >\n          <circle cx=\"6\" cy=\"6\" r=\"5\" />\n          <line x1=\"2.5\" y1=\"9.5\" x2=\"9.5\" y2=\"2.5\" />\n        </g>\n        <text className=\"ui-ec-btn-label\" x=\"84\" y=\"24\" fontSize=\"10\" fontWeight=\"500\" fill=\"#9A9AA3\">\n          Join meeting\n        </text>\n      </g>\n    </>\n  );\n}\n\n/* ---------- Styles ---------- */\n\nconst css = /* css */ `\n.ui-ec {\n  position: relative;\n  width: 100%;\n  aspect-ratio: 3 / 2;\n  overflow: hidden;\n  font-family: \"Inter\", ui-sans-serif, system-ui, -apple-system, sans-serif;\n}\n.ui-ec-art {\n  position: absolute;\n  inset: 0;\n  display: block;\n  width: 100%;\n  height: 100%;\n}\n\n/* Placeholder lines shimmer softly */\n.ui-ec-bar { animation: ui-ec-shimmer 2.4s ease-in-out infinite; }\n@keyframes ui-ec-shimmer {\n  0%, 100% { fill: #EFF1F4; }\n  50% { fill: #DDE1E5; }\n}\n\n/* The glow under the front card breathes */\n.ui-ec-blob {\n  transform-origin: 160px 152px;\n  animation: ui-ec-breathe 5s ease-in-out infinite;\n}\n@keyframes ui-ec-breathe {\n  0%, 100% { opacity: 0.85; transform: scale(1); }\n  50% { opacity: 1; transform: scale(1.06); }\n}\n\n/* Front card: lifts and tilts on hover */\n.ui-ec-front {\n  transform-origin: 160px 90px;\n  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);\n}\n.ui-ec-front:hover { transform: translate(0, -8px) rotate(2deg); }\n\n/* Back cards: fanned out, slide further on hover */\n.ui-ec-back {\n  transform-box: fill-box;\n  transform-origin: center;\n  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);\n}\n.ui-ec-back-left { transform: translate(-22px, 0) rotate(-3deg); }\n.ui-ec-back-left:hover { transform: translate(-48px, 4px) rotate(-7deg); }\n.ui-ec-back-right { transform: translate(22px, 0) rotate(3deg); }\n.ui-ec-back-right:hover { transform: translate(48px, 4px) rotate(7deg); }\n\n@media (prefers-reduced-motion: reduce) {\n  .ui-ec-bar, .ui-ec-blob { animation: none; }\n  .ui-ec-front, .ui-ec-back { transition: none; }\n}\n\n/* Dark mode: follows a .dark class or data-theme=\"dark\" on any ancestor, e.g. <html> */\n:where(.dark, [data-theme=\"dark\"]) .ui-ec-card { fill: #232326; stroke: rgba(255, 255, 255, 0.08); }\n:where(.dark, [data-theme=\"dark\"]) .ui-ec-drop { flood-opacity: 0.4; }\n:where(.dark, [data-theme=\"dark\"]) .ui-ec-edge { stop-color: #3a3a3f; }\n:where(.dark, [data-theme=\"dark\"]) .ui-ec-title { fill: #8f8f8f; }\n:where(.dark, [data-theme=\"dark\"]) .ui-ec-badge { fill: rgba(250, 176, 130, 0.16); }\n:where(.dark, [data-theme=\"dark\"]) .ui-ec-bar { fill: #2a2a2d; }\n@media (prefers-reduced-motion: no-preference) {\n  :where(.dark, [data-theme=\"dark\"]) .ui-ec-bar { animation-name: ui-ec-shimmer-dark; }\n}\n:where(.dark, [data-theme=\"dark\"]) .ui-ec-btn { fill: #2a2a2d; stroke: rgba(255, 255, 255, 0.08); }\n:where(.dark, [data-theme=\"dark\"]) .ui-ec-btn-ink { stroke: #6b6b70; }\n:where(.dark, [data-theme=\"dark\"]) .ui-ec-btn-label { fill: #6b6b70; }\n@keyframes ui-ec-shimmer-dark {\n  0%, 100% { fill: #2a2a2d; }\n  50% { fill: #36363b; }\n}\n`;\n"}]}