{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"welcome-cards","type":"registry:component","title":"Welcome cards","description":"Three dashboard welcome cards — today at a glance, onboarding checklist and what’s new — with staggered count-ups, one-at-a-time steps and a swipeable release carousel.","author":"GetUrUI <hello@geturui.dev>","dependencies":["motion","lucide-react"],"registryDependencies":[],"files":[{"path":"registry/geturui/examples/welcome-cards/today.tsx","type":"registry:component","target":"components/examples/welcome-cards/today.tsx","content":"\"use client\";\n\nimport * as React from \"react\";\nimport { AnimatePresence, animate, motion, useReducedMotion } from \"motion/react\";\nimport { ChevronLeft, ChevronRight, Video } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface TodayStat {\n  label: string;\n  value: number;\n  /** Small caption under the number. */\n  hint?: string;\n}\n\nexport interface TodayEvent {\n  title: string;\n  /** Formatted time, e.g. \"10:30\". */\n  time: string;\n  /** Relative caption, e.g. \"in 25 min\". */\n  relative: string;\n  people: string[];\n}\n\nexport interface WelcomeTodayCardProps {\n  name?: string;\n  /** Local hour (0–23) used for the greeting; pass it in so render stays deterministic. */\n  hour?: number;\n  /** Formatted date, e.g. \"Friday, October 2\". */\n  dateLabel?: string;\n  stats?: TodayStat[];\n  events?: TodayEvent[];\n  onJoin?: (event: TodayEvent) => void;\n  className?: string;\n}\n\nconst focus = \"outline-none focus-visible:shadow-[var(--focus-ring)]\";\n\nfunction greeting(h: number) {\n  return h < 12 ? \"Good morning\" : h < 18 ? \"Good afternoon\" : \"Good evening\";\n}\n\nfunction CountUp({ to, delay, reduce }: { to: number; delay: number; reduce: boolean }) {\n  const ref = React.useRef<HTMLSpanElement>(null);\n  React.useEffect(() => {\n    const el = ref.current;\n    if (!el || reduce) return;\n    el.textContent = \"0\";\n    const c = animate(0, to, { duration: 0.9, delay, ease: [0.22, 1, 0.36, 1], onUpdate: (v) => (el.textContent = String(Math.round(v))) });\n    return () => c.stop();\n  }, [to, delay, reduce]);\n  return <span ref={ref}>{to}</span>;\n}\n\n/** Dashboard welcome: time-aware greeting, today’s numbers counting up in a stagger, and an up-next strip you can step through. */\nexport function WelcomeTodayCard({\n  name = \"Maya\",\n  hour = 9,\n  dateLabel = \"Friday, October 2\",\n  stats = [\n    { label: \"Meetings\", value: 4, hint: \"2h 15m total\" },\n    { label: \"Tasks due\", value: 6, hint: \"2 overdue\" },\n    { label: \"Unread\", value: 18, hint: \"3 mentions\" },\n  ],\n  events = [\n    { title: \"Design review: billing v2\", time: \"10:30\", relative: \"in 25 min\", people: [\"PR\", \"TH\", \"KM\"] },\n    { title: \"1:1 with Jordan\", time: \"13:00\", relative: \"in 3h 55m\", people: [\"JL\"] },\n    { title: \"Pricing sync\", time: \"16:00\", relative: \"in 6h 55m\", people: [\"AO\", \"LM\"] },\n  ],\n  onJoin,\n  className,\n}: WelcomeTodayCardProps) {\n  const reduce = useReducedMotion() ?? false;\n  const [i, setI] = React.useState(0);\n  const [dir, setDir] = React.useState(1);\n  const ev = events[i];\n\n  function go(d: number) {\n    setDir(d);\n    setI((n) => (n + d + events.length) % events.length);\n  }\n\n  return (\n    <section aria-label=\"Today\" className={cn(\"@container w-full max-w-[520px] rounded-xl border border-border bg-surface-raised p-5 shadow-sm\", className)}>\n      <motion.div initial={reduce ? false : { opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }} transition={{ type: \"spring\", stiffness: 260, damping: 28 }}>\n        <p className=\"font-mono text-[11px] uppercase tracking-[0.12em] text-ink-subtle\">{dateLabel}</p>\n        <h2 className=\"mt-1.5 font-display text-[26px] font-semibold leading-tight tracking-[-0.6px] text-ink\">\n          {greeting(hour)}, {name}\n        </h2>\n        <p className=\"mt-1 text-sm text-ink-muted\">Here is what today looks like.</p>\n      </motion.div>\n\n      <dl className=\"mt-5 grid grid-cols-3 gap-2\">\n        {stats.map((s, k) => (\n          <motion.div\n            key={s.label}\n            initial={reduce ? false : { opacity: 0, y: 10 }}\n            animate={{ opacity: 1, y: 0 }}\n            transition={{ type: \"spring\", stiffness: 280, damping: 26, delay: reduce ? 0 : 0.12 + k * 0.08 }}\n            className=\"rounded-md bg-surface-sunken/70 px-3 py-3\"\n          >\n            <dt className=\"text-[11.5px] font-medium text-ink-muted\">{s.label}</dt>\n            <dd className=\"mt-1 font-display text-[26px] font-semibold leading-none tracking-[-0.6px] text-ink tabular-nums\">\n              <CountUp to={s.value} delay={0.15 + k * 0.08} reduce={reduce} />\n            </dd>\n            {s.hint && <dd className=\"mt-1 truncate text-[11px] text-ink-subtle\">{s.hint}</dd>}\n          </motion.div>\n        ))}\n      </dl>\n\n      {ev && (\n        <div className=\"mt-4 flex flex-wrap items-center gap-3 rounded-lg border border-border p-3\">\n          <div className=\"relative min-w-[200px] flex-1 overflow-hidden\" aria-live=\"polite\">\n            <AnimatePresence mode=\"popLayout\" initial={false} custom={dir}>\n              <motion.div\n                key={i}\n                custom={dir}\n                initial={reduce ? { opacity: 0 } : { opacity: 0, x: dir * 24, filter: \"blur(6px)\" }}\n                animate={{ opacity: 1, x: 0, filter: \"blur(0px)\" }}\n                exit={reduce ? { opacity: 0 } : { opacity: 0, x: dir * -24, filter: \"blur(6px)\" }}\n                transition={{ type: \"spring\", stiffness: 340, damping: 32 }}\n              >\n                <p className=\"text-[11px] font-medium text-ink-subtle\">\n                  Up next · <span className=\"text-ink\">{ev.time}</span> · {ev.relative}\n                </p>\n                <p className=\"mt-0.5 truncate text-[14px] font-semibold text-ink\">{ev.title}</p>\n                <div className=\"mt-1.5 flex\">\n                  {ev.people.map((p, k) => (\n                    <span key={p} aria-hidden className={cn(\"grid size-5 place-items-center rounded-full border-2 border-surface-raised bg-surface-sunken font-mono text-[8px] font-semibold text-ink\", k && \"-ml-1.5\")}>\n                      {p}\n                    </span>\n                  ))}\n                  <span className=\"sr-only\">{ev.people.length} attendees</span>\n                </div>\n              </motion.div>\n            </AnimatePresence>\n          </div>\n          <div className=\"ml-auto flex items-center gap-1.5\">\n            <button type=\"button\" aria-label=\"Previous event\" onClick={() => go(-1)} className={cn(\"grid size-8 place-items-center rounded-full text-ink-muted hover:bg-surface-hover hover:text-ink\", focus)}>\n              <ChevronLeft aria-hidden className=\"size-4\" />\n            </button>\n            <button type=\"button\" aria-label=\"Next event\" onClick={() => go(1)} className={cn(\"grid size-8 place-items-center rounded-full text-ink-muted hover:bg-surface-hover hover:text-ink\", focus)}>\n              <ChevronRight aria-hidden className=\"size-4\" />\n            </button>\n            <motion.button type=\"button\" whileTap={reduce ? undefined : { scale: 0.96 }} onClick={() => onJoin?.(ev)} className={cn(\"inline-flex h-9 items-center gap-1.5 rounded-full bg-volt px-4 text-[13px] font-semibold text-on-volt\", focus)}>\n              <Video aria-hidden className=\"size-4\" />\n              Join\n            </motion.button>\n          </div>\n        </div>\n      )}\n    </section>\n  );\n}\n"},{"path":"registry/geturui/examples/welcome-cards/onboarding.tsx","type":"registry:component","target":"components/examples/welcome-cards/onboarding.tsx","content":"\"use client\";\n\nimport * as React from \"react\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\nimport { Check, ChevronDown, PartyPopper } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface OnboardingStep {\n  id: string;\n  title: string;\n  description: string;\n  /** Button label inside the open step. */\n  action: string;\n  done?: boolean;\n}\n\nexport interface OnboardingChecklistCardProps {\n  title?: string;\n  steps?: OnboardingStep[];\n  /** Called when a step’s action is pressed; the step is then marked done. */\n  onStep?: (id: string) => void;\n  onDismiss?: () => void;\n  className?: string;\n}\n\nconst DEFAULT_STEPS: OnboardingStep[] = [\n  { id: \"workspace\", title: \"Create your workspace\", description: \"Name it and pick a URL your team will recognise.\", action: \"Open settings\", done: true },\n  { id: \"invite\", title: \"Invite two teammates\", description: \"Projects move faster with reviewers. Invites are free on every plan.\", action: \"Send invites\", done: true },\n  { id: \"import\", title: \"Import your first project\", description: \"Bring tasks in from a CSV, Linear or Jira. It takes about a minute.\", action: \"Import project\" },\n  { id: \"integrate\", title: \"Connect Slack\", description: \"Get updates where your team already talks, and reply without switching apps.\", action: \"Connect Slack\" },\n  { id: \"automate\", title: \"Turn on a weekly digest\", description: \"A Monday summary of what shipped and what is at risk.\", action: \"Turn on digest\" },\n];\n\nconst focus = \"outline-none focus-visible:shadow-[var(--focus-ring)]\";\n\n/** Getting-started checklist: one step open at a time, completing a step ticks and advances, and the card celebrates when everything is done. */\nexport function OnboardingChecklistCard({ title = \"Get set up\", steps = DEFAULT_STEPS, onStep, onDismiss, className }: OnboardingChecklistCardProps) {\n  const reduce = useReducedMotion() ?? false;\n  const [done, setDone] = React.useState<string[]>(() => steps.filter((s) => s.done).map((s) => s.id));\n  const [open, setOpen] = React.useState<string | null>(() => steps.find((s) => !s.done)?.id ?? null);\n  const baseId = React.useId();\n  const count = done.length;\n  const all = count === steps.length;\n  const spring = { type: \"spring\" as const, stiffness: 340, damping: 32 };\n\n  function complete(id: string) {\n    onStep?.(id);\n    const next = [...done, id];\n    setDone(next);\n    setOpen(steps.find((s) => !next.includes(s.id))?.id ?? null);\n  }\n\n  return (\n    <section aria-labelledby={`${baseId}-t`} className={cn(\"w-full max-w-[420px] overflow-hidden rounded-xl border border-border bg-surface-raised shadow-sm\", className)}>\n      <header className=\"px-5 pt-5\">\n        <div className=\"flex items-center justify-between gap-3\">\n          <h3 id={`${baseId}-t`} className=\"text-[15px] font-semibold text-ink\">\n            {title}\n          </h3>\n          <span className=\"font-mono text-[11px] tabular-nums text-ink-muted\">\n            {count} of {steps.length} done\n          </span>\n        </div>\n        <div className=\"mt-3 flex gap-1\" aria-hidden>\n          {steps.map((s) => (\n            <span key={s.id} className=\"h-1.5 flex-1 overflow-hidden rounded-full bg-surface-sunken\">\n              <motion.span className=\"block h-full origin-left rounded-full bg-volt\" initial={false} animate={{ scaleX: done.includes(s.id) ? 1 : 0 }} transition={reduce ? { duration: 0 } : spring} />\n            </span>\n          ))}\n        </div>\n      </header>\n\n      <AnimatePresence mode=\"popLayout\" initial={false}>\n        {all ? (\n          <motion.div key=\"all\" initial={{ opacity: 0, filter: \"blur(8px)\" }} animate={{ opacity: 1, filter: \"blur(0px)\" }} exit={{ opacity: 0 }} className=\"flex flex-col items-center px-6 pb-6 pt-8 text-center\">\n            <motion.span initial={reduce ? false : { scale: 0.3, rotate: -25 }} animate={{ scale: 1, rotate: 0 }} transition={{ type: \"spring\", stiffness: 380, damping: 14 }} className=\"grid size-12 place-items-center rounded-full bg-volt-soft text-volt-ink\">\n              <PartyPopper aria-hidden className=\"size-6\" />\n            </motion.span>\n            <p className=\"mt-3 text-[15px] font-semibold text-ink\">You are all set</p>\n            <p className=\"mt-1 max-w-[260px] text-[13px] text-ink-muted\">Your workspace is ready. We will tuck this checklist away.</p>\n            <button type=\"button\" onClick={onDismiss} className={cn(\"mt-4 h-9 rounded-full border border-border-strong/50 px-4 text-[13px] font-medium text-ink hover:bg-surface-hover\", focus)}>\n              Hide checklist\n            </button>\n          </motion.div>\n        ) : (\n          <motion.ol key=\"list\" exit={{ opacity: 0, filter: \"blur(8px)\" }} className=\"mt-3 px-2 pb-2\">\n            {steps.map((s, i) => {\n              const isDone = done.includes(s.id);\n              const isOpen = open === s.id;\n              return (\n                <li key={s.id} className={cn(\"rounded-md transition-colors\", isOpen && \"bg-surface-sunken/70\")}>\n                  <button\n                    type=\"button\"\n                    aria-expanded={isOpen}\n                    aria-controls={`${baseId}-${s.id}`}\n                    onClick={() => setOpen(isOpen ? null : s.id)}\n                    className={cn(\"flex w-full items-center gap-3 rounded-md px-3 py-2.5 text-left\", focus)}\n                  >\n                    <span className={cn(\"grid size-6 shrink-0 place-items-center rounded-full border text-[11px] font-semibold transition-colors\", isDone ? \"border-ink bg-ink text-bg\" : \"border-border-strong/50 text-ink-muted\")}>\n                      <AnimatePresence mode=\"popLayout\" initial={false}>\n                        {isDone ? (\n                          <motion.span key=\"c\" initial={reduce ? false : { scale: 0, rotate: -45 }} animate={{ scale: 1, rotate: 0 }} transition={{ type: \"spring\", stiffness: 500, damping: 18 }}>\n                            <Check aria-hidden className=\"size-3.5\" strokeWidth={3} />\n                          </motion.span>\n                        ) : (\n                          <motion.span key=\"n\" exit={{ scale: 0 }}>\n                            {i + 1}\n                          </motion.span>\n                        )}\n                      </AnimatePresence>\n                    </span>\n                    <span className={cn(\"flex-1 text-[13.5px] font-medium\", isDone ? \"text-ink-subtle line-through decoration-ink-subtle/60\" : \"text-ink\")}>\n                      {s.title}\n                      <span className=\"sr-only\">{isDone ? \", done\" : \"\"}</span>\n                    </span>\n                    <ChevronDown aria-hidden className={cn(\"size-4 text-ink-subtle transition-transform duration-300 ease-spring\", isOpen && \"rotate-180\")} />\n                  </button>\n                  <AnimatePresence initial={false}>\n                    {isOpen && (\n                      <motion.div\n                        id={`${baseId}-${s.id}`}\n                        initial={reduce ? { opacity: 0 } : { height: 0, opacity: 0 }}\n                        animate={reduce ? { opacity: 1 } : { height: \"auto\", opacity: 1 }}\n                        exit={reduce ? { opacity: 0 } : { height: 0, opacity: 0 }}\n                        transition={spring}\n                        className=\"overflow-hidden\"\n                      >\n                        <div className=\"pb-3 pl-12 pr-3\">\n                          <p className=\"text-[13px] leading-relaxed text-ink-muted\">{s.description}</p>\n                          {!isDone && (\n                            <motion.button type=\"button\" whileTap={reduce ? undefined : { scale: 0.96 }} onClick={() => complete(s.id)} className={cn(\"mt-3 h-8 rounded-full bg-volt px-3.5 text-[12.5px] font-semibold text-on-volt\", focus)}>\n                              {s.action}\n                            </motion.button>\n                          )}\n                        </div>\n                      </motion.div>\n                    )}\n                  </AnimatePresence>\n                </li>\n              );\n            })}\n          </motion.ol>\n        )}\n      </AnimatePresence>\n    </section>\n  );\n}\n"},{"path":"registry/geturui/examples/welcome-cards/whats-new.tsx","type":"registry:component","target":"components/examples/welcome-cards/whats-new.tsx","content":"\"use client\";\n\nimport * as React from \"react\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\nimport { ArrowRight, ChevronLeft, ChevronRight, Sparkles, X } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface WhatsNewSlide {\n  title: string;\n  body: string;\n  art?: \"branches\" | \"search\" | \"audit\";\n  /** Marks the feature as Pro; its button becomes an upgrade. */\n  pro?: boolean;\n}\n\nexport interface WhatsNewCardProps {\n  version?: string;\n  slides?: WhatsNewSlide[];\n  onTry?: (slide: WhatsNewSlide) => void;\n  onUpgrade?: () => void;\n  onDismiss?: () => void;\n  className?: string;\n}\n\nconst DEFAULT_SLIDES: WhatsNewSlide[] = [\n  { title: \"Branches for docs\", body: \"Draft big changes on a branch, get a review, and merge when it reads right.\", art: \"branches\" },\n  { title: \"Search that reads your mind\", body: \"Fuzzy matching across tasks, docs and comments. Press / anywhere to start.\", art: \"search\" },\n  { title: \"Audit log with export\", body: \"Every permission change and sign-in, filterable and exportable to CSV.\", art: \"audit\", pro: true },\n];\n\nconst focus = \"outline-none focus-visible:shadow-[var(--focus-ring)]\";\n\nfunction Art({ kind }: { kind: WhatsNewSlide[\"art\"] }) {\n  return (\n    <svg viewBox=\"0 0 320 120\" className=\"size-full\" aria-hidden>\n      <rect width=\"320\" height=\"120\" className=\"fill-surface-sunken\" />\n      {kind === \"search\" ? (\n        <g>\n          <rect x=\"50\" y=\"26\" width=\"220\" height=\"30\" rx=\"10\" className=\"fill-surface-raised stroke-border\" />\n          <circle cx=\"68\" cy=\"41\" r=\"5\" fill=\"none\" strokeWidth=\"2\" className=\"stroke-ink-subtle\" />\n          <rect x=\"82\" y=\"38\" width=\"70\" height=\"6\" rx=\"3\" className=\"fill-ink/70\" />\n          <rect x=\"50\" y=\"64\" width=\"220\" height=\"38\" rx=\"10\" className=\"fill-surface-raised stroke-border\" />\n          <rect x=\"62\" y=\"74\" width=\"8\" height=\"8\" rx=\"2\" className=\"fill-volt\" />\n          <rect x=\"78\" y=\"76\" width=\"110\" height=\"5\" rx=\"2.5\" className=\"fill-ink/50\" />\n          <rect x=\"62\" y=\"88\" width=\"8\" height=\"8\" rx=\"2\" className=\"fill-ink-subtle/40\" />\n          <rect x=\"78\" y=\"90\" width=\"80\" height=\"5\" rx=\"2.5\" className=\"fill-ink/25\" />\n        </g>\n      ) : kind === \"audit\" ? (\n        <g>\n          {[0, 1, 2, 3].map((r) => (\n            <g key={r} transform={`translate(40 ${20 + r * 22})`}>\n              <rect width=\"240\" height=\"16\" rx=\"5\" className={r === 1 ? \"fill-ember-soft\" : \"fill-surface-raised\"} />\n              <circle cx=\"12\" cy=\"8\" r=\"4\" className={r === 1 ? \"fill-ember\" : \"fill-ink-subtle/50\"} />\n              <rect x=\"24\" y=\"5.5\" width={90 - r * 10} height=\"5\" rx=\"2.5\" className=\"fill-ink/40\" />\n              <rect x=\"190\" y=\"5.5\" width=\"38\" height=\"5\" rx=\"2.5\" className=\"fill-ink/20\" />\n            </g>\n          ))}\n        </g>\n      ) : (\n        <g fill=\"none\" strokeWidth=\"2.5\" strokeLinecap=\"round\">\n          <path d=\"M30 70h260\" className=\"stroke-ink/30\" />\n          <path d=\"M90 70c20 0 20-34 46-34h70c26 0 26 34 46 34\" className=\"stroke-volt-ink\" />\n          {[30, 90, 290].map((x) => (\n            <circle key={x} cx={x} cy=\"70\" r=\"7\" className=\"fill-surface-raised stroke-ink/40\" />\n          ))}\n          {[150, 200].map((x) => (\n            <circle key={x} cx={x} cy=\"36\" r=\"7\" className=\"fill-volt stroke-volt-ink\" />\n          ))}\n          <circle cx=\"252\" cy=\"70\" r=\"7\" className=\"fill-surface-raised stroke-volt-ink\" />\n        </g>\n      )}\n    </svg>\n  );\n}\n\n/** Release card: swipe or step through what shipped, with drawn art per feature and a Pro feature that turns the button into an upgrade. */\nexport function WhatsNewCard({ version = \"Version 4.2 · Oct 2\", slides = DEFAULT_SLIDES, onTry, onUpgrade, onDismiss, className }: WhatsNewCardProps) {\n  const reduce = useReducedMotion() ?? false;\n  const [[i, dir], setPage] = React.useState<[number, number]>([0, 1]);\n  const slide = slides[i];\n  const last = i === slides.length - 1;\n\n  function go(d: number) {\n    const n = i + d;\n    if (n < 0 || n >= slides.length) return;\n    setPage([n, d]);\n  }\n\n  const fade = (key: string, content: React.ReactNode, cls?: string) => (\n    <motion.div\n      key={key}\n      initial={reduce ? { opacity: 0 } : { opacity: 0, x: dir * 28, filter: \"blur(6px)\" }}\n      animate={{ opacity: 1, x: 0, filter: \"blur(0px)\" }}\n      exit={reduce ? { opacity: 0 } : { opacity: 0, x: dir * -28, filter: \"blur(6px)\" }}\n      transition={{ type: \"spring\", stiffness: 320, damping: 32 }}\n      className={cls}\n    >\n      {content}\n    </motion.div>\n  );\n\n  return (\n    <section\n      aria-roledescription=\"carousel\"\n      aria-label=\"What’s new\"\n      onKeyDown={(e) => {\n        if (e.key === \"ArrowRight\") go(1);\n        if (e.key === \"ArrowLeft\") go(-1);\n      }}\n      className={cn(\"w-full max-w-[400px] overflow-hidden rounded-xl border border-border bg-surface-raised shadow-sm\", className)}\n    >\n      <div className=\"flex items-center justify-between px-5 pt-4\">\n        <span className=\"inline-flex items-center gap-1.5 text-[12px] font-semibold text-ink\">\n          <Sparkles aria-hidden className=\"size-3.5 text-volt-ink\" />\n          What’s new\n          <span className=\"font-normal text-ink-subtle\">· {version}</span>\n        </span>\n        <button type=\"button\" aria-label=\"Dismiss\" onClick={onDismiss} className={cn(\"grid size-7 place-items-center rounded-full text-ink-subtle hover:bg-surface-hover hover:text-ink\", focus)}>\n          <X aria-hidden className=\"size-4\" />\n        </button>\n      </div>\n\n      <motion.div\n        drag={reduce ? false : \"x\"}\n        dragConstraints={{ left: 0, right: 0 }}\n        dragElastic={0.18}\n        onDragEnd={(_, info) => {\n          if (info.offset.x < -50) go(1);\n          else if (info.offset.x > 50) go(-1);\n        }}\n        className=\"mx-5 mt-3 h-[120px] cursor-grab overflow-hidden rounded-lg border border-border active:cursor-grabbing\"\n      >\n        <AnimatePresence mode=\"popLayout\" initial={false}>\n          {fade(`art-${i}`, <Art kind={slide.art} />, \"size-full\")}\n        </AnimatePresence>\n      </motion.div>\n\n      <div className=\"relative h-[92px] overflow-hidden px-5 pt-4\" aria-live=\"polite\">\n        <AnimatePresence mode=\"popLayout\" initial={false}>\n          {fade(\n            `t-${i}`,\n            <>\n              <h3 className=\"flex items-center gap-2 text-[15px] font-semibold text-ink\">\n                {slide.title}\n                {slide.pro && <span className=\"rounded-full bg-ember-soft px-2 py-0.5 text-[10.5px] font-semibold text-ember-ink\">Pro</span>}\n              </h3>\n              <p className=\"mt-1 text-[13px] leading-relaxed text-ink-muted\">{slide.body}</p>\n            </>,\n          )}\n        </AnimatePresence>\n      </div>\n\n      <div className=\"flex items-center justify-between gap-3 border-t border-border px-5 py-3.5\">\n        <div className=\"flex items-center gap-1\">\n          <button type=\"button\" aria-label=\"Previous update\" disabled={i === 0} onClick={() => go(-1)} className={cn(\"grid size-8 place-items-center rounded-full text-ink-muted hover:bg-surface-hover disabled:opacity-30\", focus)}>\n            <ChevronLeft aria-hidden className=\"size-4\" />\n          </button>\n          <div className=\"flex gap-1.5\" aria-label={`Update ${i + 1} of ${slides.length}`} role=\"img\">\n            {slides.map((_, k) => (\n              <motion.span key={k} animate={{ width: k === i ? 16 : 6 }} transition={{ type: \"spring\", stiffness: 420, damping: 30 }} className={cn(\"h-1.5 rounded-full\", k === i ? \"bg-ink\" : \"bg-ink-subtle/35\")} />\n            ))}\n          </div>\n          <button type=\"button\" aria-label=\"Next update\" disabled={last} onClick={() => go(1)} className={cn(\"grid size-8 place-items-center rounded-full text-ink-muted hover:bg-surface-hover disabled:opacity-30\", focus)}>\n            <ChevronRight aria-hidden className=\"size-4\" />\n          </button>\n        </div>\n        <AnimatePresence mode=\"popLayout\" initial={false}>\n          <motion.button\n            key={slide.pro ? \"pro\" : \"try\"}\n            type=\"button\"\n            initial={{ opacity: 0, scale: 0.9, filter: \"blur(4px)\" }}\n            animate={{ opacity: 1, scale: 1, filter: \"blur(0px)\" }}\n            exit={{ opacity: 0, scale: 0.9, filter: \"blur(4px)\" }}\n            whileTap={reduce ? undefined : { scale: 0.96 }}\n            onClick={() => (slide.pro ? onUpgrade?.() : onTry?.(slide))}\n            className={cn(\"inline-flex h-9 items-center gap-1.5 rounded-full px-4 text-[13px] font-semibold\", slide.pro ? \"bg-ember text-on-ember\" : \"bg-volt text-on-volt\", focus)}\n          >\n            {slide.pro ? \"Upgrade to Pro\" : \"Try it now\"}\n            <ArrowRight aria-hidden className=\"size-3.5\" />\n          </motion.button>\n        </AnimatePresence>\n      </div>\n    </section>\n  );\n}\n"},{"path":"LICENSE-geturui.md","type":"registry:file","target":"LICENSE-geturui.md","content":"MIT License\n\nCopyright (c) 2026 geturui.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"}],"categories":["examples","welcome","dashboard","onboarding","checklist","greeting","changelog","announcement","upgrade"],"meta":{"tier":"free","license":"MIT","docs":"https://geturui.com/docs/welcome-cards"}}