{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-onboarding",
  "type": "registry:block",
  "title": "Onboarding",
  "description": "A first run on a raised page: a welcome, a setup checklist with progress, and the next best actions.",
  "dependencies": [
    "@remixicon/react@^4.9.0"
  ],
  "registryDependencies": [
    "https://wideset.co/r/action-tile.json",
    "https://wideset.co/r/app-shell.json",
    "https://wideset.co/r/avatar.json",
    "https://wideset.co/r/block-styles.json",
    "https://wideset.co/r/button.json",
    "https://wideset.co/r/card.json",
    "https://wideset.co/r/checkbox.json",
    "https://wideset.co/r/dropdown-menu.json",
    "https://wideset.co/r/icon-button.json",
    "https://wideset.co/r/list-item.json",
    "https://wideset.co/r/progress-bar.json",
    "https://wideset.co/r/sidebar.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/onboarding/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/onboarding/brand-mark.tsx",
      "content": "'use client';\n\nimport { cn } from '@/lib/wideset/utils';\n\nconst TILE =\n  'M0 16C0 8.45753 0 4.68629 2.34315 2.34315C4.68629 0 8.45753 0 16 0C23.5425 0 27.3137 0 29.6569 2.34315C32 4.68629 32 8.45753 32 16C32 23.5425 32 27.3137 29.6569 29.6569C27.3137 32 23.5425 32 16 32C8.45753 32 4.68629 32 2.34315 29.6569C0 27.3137 0 23.5425 0 16Z';\n\n/**\n * Orbit's mark: a planet and its ring on the inverse tile, so it inverts in dark mode. It takes\n * the size of its place (32px in a sidebar, 36px in a larger switcher). Decorative beside the\n * product's name; give it a `label` when it stands alone.\n */\nexport function BrandMark({ className, label }: { className?: string; label?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 32 32\"\n      role={label ? 'img' : undefined}\n      aria-label={label}\n      aria-hidden={label ? undefined : true}\n      className={cn('size-ws-14 shrink-0', className)}\n    >\n      <path d={TILE} className=\"fill-(--ws-static-fill-inverse-background)\" />\n      <ellipse\n        cx=\"16\"\n        cy=\"16\"\n        rx=\"10.5\"\n        ry=\"4\"\n        transform=\"rotate(-28 16 16)\"\n        strokeWidth=\"1.75\"\n        className=\"fill-none stroke-(--ws-static-text-inverse-strong)\"\n      />\n      <circle cx=\"16\" cy=\"16\" r=\"4.75\" className=\"fill-(--ws-static-text-inverse-strong)\" />\n    </svg>\n  );\n}\n"
    },
    {
      "path": "src/blocks/onboarding/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/onboarding/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBarChartBoxLine,\n  RiBuilding2Line,\n  RiFlag2Fill,\n  RiFlag2Line,\n  RiHandCoinLine,\n  RiHome5Line,\n  RiQuestionLine,\n  RiSettingsLine,\n} from '@remixicon/react';\nimport type { AvatarColor } from '@/components/ui/wideset/avatar/Avatar.colors';\n\n/*\n  Orbit, a customer and revenue platform, on the day Maya Chen opened the Lumen Studio workspace.\n  She has imported her customers and connected her e-mail; the team, the defaults and the first\n  deal are still to do.\n*/\n\nexport const workspace = { name: 'Lumen Studio', plan: 'Trial, 14 days left' };\n\n/** The signed-in person, who created the workspace. */\nexport const account = {\n  name: 'Maya Chen',\n  firstName: 'Maya',\n  initials: 'MC',\n  color: 'teal' as AvatarColor,\n  email: 'maya@lumenstudio.co',\n};\n\nexport type NavLink = {\n  id: string;\n  label: string;\n  icon: RemixiconComponentType;\n  /** The icon while the page is open (a line icon swaps for its fill). */\n  activeIcon?: RemixiconComponentType;\n};\n\n/** A young app: the pages exist, nothing in them is set up yet. */\nexport const mainLinks: NavLink[] = [\n  { id: 'get-started', label: 'Get started', icon: RiFlag2Line, activeIcon: RiFlag2Fill },\n  { id: 'home', label: 'Home', icon: RiHome5Line },\n  { id: 'customers', label: 'Customers', icon: RiBuilding2Line },\n  { id: 'deals', label: 'Deals', icon: RiHandCoinLine },\n  { id: 'reports', label: 'Reports', icon: RiBarChartBoxLine },\n];\n\nexport const footerLinks: NavLink[] = [\n  { id: 'settings', label: 'Settings', icon: RiSettingsLine },\n  { id: 'help', label: 'Help', icon: RiQuestionLine },\n];\n\nexport type Step = {\n  id: string;\n  title: string;\n  /** One line: why the step is worth doing. */\n  why: string;\n  /** The one action that does the step. */\n  action: string;\n  /** What doing it left behind, shown once it is done. */\n  result: string;\n};\n\nexport const steps: Step[] = [\n  {\n    id: 'import',\n    title: 'Import your customers',\n    why: 'Bring in the companies you already work with, from a file or a CRM.',\n    action: 'Import customers',\n    result: '128 customers imported',\n  },\n  {\n    id: 'email',\n    title: 'Connect your e-mail',\n    why: 'Orbit files every e-mail with a customer on their record for you.',\n    action: 'Connect e-mail',\n    result: 'Syncing maya@lumenstudio.co',\n  },\n  {\n    id: 'team',\n    title: 'Invite your team',\n    why: 'Work from the same customers and give every account an owner.',\n    action: 'Invite people',\n    result: '4 people invited',\n  },\n  {\n    id: 'defaults',\n    title: 'Set your currency and time zone',\n    why: 'Reports use your currency; reminders arrive in your working hours.',\n    action: 'Open settings',\n    result: 'EUR, Europe/Lisbon',\n  },\n  {\n    id: 'deal',\n    title: 'Create your first deal',\n    why: 'Follow one opportunity from the first call to the signed contract.',\n    action: 'Create deal',\n    result: 'Lanetrack, Q4 seat expansion',\n  },\n];\n\n/** The steps Maya has done before this visit. */\nexport const doneAtStart = ['import', 'email'];\n\nexport type Resource = { id: string; title: string; description: string; href: string };\n\nexport const resources: Resource[] = [\n  {\n    id: 'guide',\n    title: 'Getting started guide',\n    description: 'A ten-minute tour',\n    href: '#guide',\n  },\n  {\n    id: 'template',\n    title: 'Agency pipeline template',\n    description: 'Stages built for studios',\n    href: '#templates',\n  },\n  {\n    id: 'help',\n    title: 'Help centre',\n    description: 'Imports, e-mail and access',\n    href: '#help',\n  },\n];\n"
    },
    {
      "path": "src/blocks/onboarding/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/onboarding/index.tsx",
      "content": "'use client';\n\nimport '@/styles/wideset-blocks.css';\n\nimport { AppShell } from '@/components/ui/wideset/app-shell/AppShell';\nimport { useState } from 'react';\n\nimport { account, doneAtStart, steps, workspace } from './data';\nimport { Resources } from './resources';\nimport { SetupChecklist } from './setup-checklist';\nimport { OnboardingSidebar } from './sidebar';\n\n/**\n * Onboarding (Inset direction): a new workspace's first run on the raised page, in one reading\n * column: a welcome that says what Orbit is for, the setup checklist with its progress, and help\n * under it. Steps tick off by hand or by doing them; the sidebar's Get started keeps the count.\n */\nexport default function Onboarding() {\n  const [done, setDone] = useState(doneAtStart);\n\n  const mark = (id: string, value: boolean) =>\n    setDone((current) => (value ? [...current, id] : current.filter((item) => item !== id)));\n\n  return (\n    <AppShell className=\"ws-block-utility\" direction=\"inset\">\n      <OnboardingSidebar progress={`${done.length}/${steps.length}`} />\n      <AppShell.Main>\n        {/* The page scrolls inside the card, so the card's corners stay put. */}\n        <div className=\"ws-scrollbar min-h-0 flex-1 overflow-y-auto\">\n          <div className=\"px-ws-16 gap-ws-16 py-ws-16 mx-auto flex w-full max-w-[52rem] flex-col\">\n            <header className=\"gap-ws-3 flex flex-col\">\n              <h1 className=\"typography-title-md text-ws-static-strong\">\n                Welcome to Orbit, {account.firstName}\n              </h1>\n              <p className=\"typography-body-md text-ws-static-base\">\n                Keep your customers, deals and revenue in one place, so the whole studio knows who\n                to call next.\n              </p>\n            </header>\n\n            <SetupChecklist\n              workspaceName={workspace.name}\n              steps={steps}\n              done={done}\n              onDoneChange={mark}\n              // Each action opens its own flow in a real app (an import, the invite dialog,\n              // settings); here finishing it is instant.\n              onStart={(id) => mark(id, true)}\n            />\n            <Resources />\n          </div>\n        </div>\n      </AppShell.Main>\n    </AppShell>\n  );\n}\n"
    },
    {
      "path": "src/blocks/onboarding/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/onboarding/people.assets.ts",
      "content": "// Portraits of the sample people as small JPEG data URLs (a block ships only .ts and .tsx).\n// Exported from the Wideset Core Figma file by people.cjs: do not edit by hand.\n\n/** A person’s photo by name. People who are not here show their initials. */\nexport const PHOTOS: Record<string, string | undefined> = {\n  'Maya Chen':\n    'data:image/jpeg;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TUsadsCmV5StQbPHAVipVvOyBl7vHLO6htK+PcO5wD5K/zXNgaKvNsZ7uRBdUpPItDvM/y5ofs1LDXEvBP8hEFa3XcwBjgMdCsUeI3HjHgMmg27VFiMTUNvvO7wUnul+Y5ijhY03eZWEs2x7I6vfox9airtO7H3pmye8X2c80mVakJfQyyCQfeAOVHyPQVNQgmbKH6ThQX5oXRFhcMnkgBtrifaF8eCufx6/PHzojuz/KLN5ltHgHmgrHmDxoXYrhZeTniB08R1FFF2UZzEvX8aBI3XGpLK28KGd7A3h9BWrfrfqIjEDjKy+HWRXmEpGcIkgeAq6pCu2zpK1FcBzuyf2auI/KmHNhP26U5GkIKHWzgg0EXOHT0z70bd+iOaXEq9we6O/bqnDou3IU57U4ASThOegqT2mk7gQR7yeH+KZVhY9jjNJV9xTYyfJQxn54pyQ55cYiyFcN8d2vyUklJ+oo9o121oGxAch59UA37DrM7pSeZ2+XRdJTQ8KtS0M1nwFgEcqVKcVcVLKVsbmMcK2UvKArElOavCadMs4fX4imPthsq9UbNNS2oZK5MNaUgeOMj608+VYpbQfjOtnktJFMRkYTtOCCvEdbRQ4oEEKQog1LGwDUZ0/tM03JUrdR7UhtR8le6f7j86ZevLV9ja31Fb8YEea8gDyCz+FatglKhXGO+g4W0tKwR0IP5VXfu1Ts2cvaZgpUtPDiE71MPaVZ0uxW7g2kBxk7q/NJ/wf612tAagb1RpWy3dpQUmXCbWceOOP1zW5qGL9o2yYwBkrQQPXHD61xdgFms6PuNvn0XdGc1bTJOx3+XVf//Z',\n};\n"
    },
    {
      "path": "src/blocks/onboarding/resources.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/onboarding/resources.tsx",
      "content": "'use client';\n\nimport { RiArrowRightLine } from '@remixicon/react';\nimport { ActionTile } from '@/components/ui/wideset/action-tile/ActionTile';\nimport { useId } from 'react';\n\nimport { resources } from './data';\n\n/**\n * Help under the checklist, for when a step needs more than its one line. The tiles go\n * somewhere, so each ends in an arrow; no icon badges, which would add a colour per tile.\n */\nexport function Resources() {\n  const id = useId();\n\n  return (\n    <section aria-labelledby={id} className=\"gap-ws-9 flex flex-col\">\n      <h2 id={id} className=\"typography-label-strong-md text-ws-static-strong\">\n        Learn as you go\n      </h2>\n      <ul className=\"gap-ws-5 grid grid-cols-1 sm:grid-cols-3\">\n        {resources.map((resource) => (\n          <li key={resource.id}>\n            <ActionTile\n              title={resource.title}\n              description={resource.description}\n              icon={RiArrowRightLine}\n              href={resource.href}\n            />\n          </li>\n        ))}\n      </ul>\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/onboarding/setup-checklist.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/onboarding/setup-checklist.tsx",
      "content": "'use client';\n\n// TODO(custom): setup checklist (progress header, step rows: checkbox, title, why, one action); Wideset has no checklist.\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { Card } from '@/components/ui/wideset/card/Card';\nimport { Checkbox } from '@/components/ui/wideset/checkbox/Checkbox';\nimport { cn } from '@/lib/wideset/utils';\nimport { ProgressBar } from '@/components/ui/wideset/progress-bar/ProgressBar';\nimport { useId } from 'react';\n\nimport type { Step } from './data';\n\ntype StepRowProps = {\n  step: Step;\n  done: boolean;\n  /** The first step not done: the one place on the page with the filled button. */\n  next: boolean;\n  onDoneChange: (done: boolean) => void;\n  onStart: () => void;\n  className?: string;\n};\n\n/**\n * One step. To do, it says why and offers its one action; done, it shrinks to a quiet line with\n * what the step left behind. The checkbox ticks a step off by hand, in either direction.\n */\nfunction StepRow({ step, done, next, onDoneChange, onStart, className }: StepRowProps) {\n  const titleId = useId();\n  const noteId = useId();\n\n  return (\n    <li className={cn('gap-ws-7 px-ws-11 py-ws-11 flex items-start', className)}>\n      <Checkbox\n        checked={done}\n        onCheckedChange={(checked) => onDoneChange(checked === true)}\n        aria-labelledby={titleId}\n        aria-describedby={noteId}\n      />\n      <div className=\"gap-ws-2 flex min-w-0 flex-1 flex-col\">\n        <p\n          id={titleId}\n          className={cn(\n            'typography-label-strong-sm',\n            done ? 'text-ws-static-subtle' : 'text-ws-static-strong',\n          )}\n        >\n          {step.title}\n        </p>\n        <p\n          id={noteId}\n          className={cn(\n            done\n              ? 'typography-label-sm text-ws-static-subtle'\n              : 'typography-body-md text-ws-static-base',\n          )}\n        >\n          {done ? step.result : step.why}\n        </p>\n      </div>\n      {!done && (\n        <Button\n          size=\"sm\"\n          variant={next ? 'primary' : 'secondary'}\n          preset={next ? 'filled' : 'border'}\n          onClick={onStart}\n          className=\"self-center\"\n        >\n          {step.action}\n        </Button>\n      )}\n    </li>\n  );\n}\n\ntype SetupChecklistProps = {\n  workspaceName: string;\n  steps: Step[];\n  /** Ids of the steps done. */\n  done: string[];\n  onDoneChange: (id: string, done: boolean) => void;\n  /** Opens the step's own flow (an import, the invite dialog, settings). */\n  onStart: (id: string) => void;\n};\n\n/**\n * The setup checklist: how far the workspace is, then the steps in the order they pay off. The\n * first one not done is the next step and carries the page's one filled button.\n */\nexport function SetupChecklist({\n  workspaceName,\n  steps,\n  done,\n  onDoneChange,\n  onStart,\n}: SetupChecklistProps) {\n  const count = steps.filter((step) => done.includes(step.id)).length;\n  const next = steps.find((step) => !done.includes(step.id));\n\n  return (\n    <Card>\n      <Card.Header>\n        <div className=\"gap-ws-7 flex flex-col\">\n          <div className=\"gap-ws-9 flex items-baseline justify-between\">\n            <h2 className=\"typography-subtitle-xs text-ws-static-strong\">\n              {next ? `Set up ${workspaceName}` : `${workspaceName} is set up`}\n            </h2>\n            <p className=\"typography-label-sm text-ws-static-subtle tabular-nums\">\n              {count} of {steps.length} done\n            </p>\n          </div>\n          <ProgressBar\n            value={count}\n            max={steps.length}\n            status={next ? 'default' : 'success'}\n            aria-label=\"Setup progress\"\n            aria-valuetext={`${count} of ${steps.length} steps done`}\n          />\n        </div>\n      </Card.Header>\n      <ol aria-label=\"Setup steps\">\n        {steps.map((step, index) => (\n          <StepRow\n            key={step.id}\n            step={step}\n            done={done.includes(step.id)}\n            next={step.id === next?.id}\n            onDoneChange={(value) => onDoneChange(step.id, value)}\n            onStart={() => onStart(step.id)}\n            className={cn(index > 0 && 'border-ws-static-base border-t')}\n          />\n        ))}\n      </ol>\n    </Card>\n  );\n}\n"
    },
    {
      "path": "src/blocks/onboarding/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/onboarding/sidebar.tsx",
      "content": "'use client';\n\n// TODO(custom): workspace switcher and account menu are composed by hand.\nimport { RiAddLine, RiArrowDownSLine, RiLogoutBoxRLine, RiSearchLine } from '@remixicon/react';\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport { Sidebar } from '@/components/ui/wideset/sidebar/Sidebar';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { useState } from 'react';\n\nimport { BrandMark } from './brand-mark';\nimport { account, footerLinks, mainLinks, type NavLink, workspace } from './data';\nimport { PHOTOS } from './people.assets';\n\n/**\n * The sidebar of a workspace opened today, on the grey frame: the switcher, search, the app's\n * pages with nothing in them yet, and the account. Get started carries the setup's progress.\n */\nexport function OnboardingSidebar({ progress }: { progress: string }) {\n  const [active, setActive] = useState('get-started');\n  const photo = PHOTOS[account.name];\n\n  const link = ({ id, label, icon, activeIcon }: NavLink) => (\n    <Sidebar.Item\n      key={id}\n      href={`#${id}`}\n      icon={active === id ? (activeIcon ?? icon) : icon}\n      label={label}\n      active={active === id}\n      suffix={id === 'get-started' ? progress : undefined}\n      onClick={() => setActive(id)}\n    />\n  );\n\n  return (\n    <Sidebar>\n      <Sidebar.Header>\n        <div className=\"gap-ws-9 flex flex-col\">\n          <div className=\"gap-ws-7 pt-ws-3 pb-ws-7 flex items-center\">\n            <BrandMark className=\"size-ws-15\" />\n            <div className=\"flex min-w-0 flex-1 flex-col\">\n              <span className=\"typography-label-strong-sm text-ws-static-strong truncate\">\n                {workspace.name}\n              </span>\n              <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                {workspace.plan}\n              </span>\n            </div>\n            <DropdownMenu>\n              <DropdownMenu.Trigger asChild>\n                <IconButton\n                  icon={RiArrowDownSLine}\n                  variant=\"secondary\"\n                  preset=\"ghost\"\n                  size=\"xs\"\n                  aria-label=\"Switch workspace\"\n                  className=\"mr-ws-3\"\n                />\n              </DropdownMenu.Trigger>\n              <DropdownMenu.Content className=\"ws-block-utility\" align=\"end\">\n                <DropdownMenu.Item data-state=\"checked\">\n                  <ListItem.Content>\n                    <ListItem.Label>{workspace.name}</ListItem.Label>\n                  </ListItem.Content>\n                </DropdownMenu.Item>\n                <DropdownMenu.Separator />\n                <DropdownMenu.Item>\n                  <ListItem.Prefix>\n                    <RiAddLine className=\"size-ws-9\" />\n                  </ListItem.Prefix>\n                  <ListItem.Content>\n                    <ListItem.Label>New workspace</ListItem.Label>\n                  </ListItem.Content>\n                </DropdownMenu.Item>\n              </DropdownMenu.Content>\n            </DropdownMenu>\n          </div>\n          <TextInput size=\"sm\">\n            <TextInput.Prefix inner>\n              <TextInput.Icon icon={RiSearchLine} />\n            </TextInput.Prefix>\n            <TextInput.Input type=\"search\" placeholder=\"Search\" aria-label=\"Search\" />\n          </TextInput>\n        </div>\n      </Sidebar.Header>\n\n      <Sidebar.Section scrollable>\n        <Sidebar.Expanded>\n          <nav aria-label=\"Workspace\" className=\"flex flex-col\">\n            {mainLinks.map(link)}\n          </nav>\n        </Sidebar.Expanded>\n      </Sidebar.Section>\n\n      <Sidebar.Footer>\n        <div className=\"gap-ws-9 flex flex-col\">\n          <div className=\"gap-ws-3 flex flex-col\">{footerLinks.map(link)}</div>\n          {/* On the grey ground the line keeps the nav's inset: run edge to edge, it would stop\n              short of the page and read as broken. */}\n          <div className=\"border-ws-static-base pt-ws-5 border-t\">\n            <DropdownMenu>\n              <DropdownMenu.Trigger asChild>\n                <button\n                  type=\"button\"\n                  className=\"gap-ws-5 px-ws-5 py-ws-3 rounded-ws-control-lg hover:bg-ws-dynamic-tertiary-alpha-strong-default focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex w-full items-center text-left\"\n                >\n                  {photo ? (\n                    <Avatar src={photo} alt=\"\" initials={account.initials} status=\"online\" />\n                  ) : (\n                    <Avatar initials={account.initials} color={account.color} status=\"online\" />\n                  )}\n                  <span className=\"flex min-w-0 flex-1 flex-col\">\n                    <span className=\"typography-label-strong-sm text-ws-static-base truncate\">\n                      {account.name}\n                    </span>\n                    <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                      {account.email}\n                    </span>\n                  </span>\n                  <RiArrowDownSLine\n                    aria-hidden=\"true\"\n                    className=\"size-ws-9 text-ws-static-strong\"\n                  />\n                </button>\n              </DropdownMenu.Trigger>\n              <DropdownMenu.Content side=\"top\" align=\"start\" className=\"ws-block-utility w-[14rem]\">\n                <DropdownMenu.Item variant=\"danger\">\n                  <ListItem.Prefix>\n                    <RiLogoutBoxRLine className=\"size-ws-9\" />\n                  </ListItem.Prefix>\n                  <ListItem.Content>\n                    <ListItem.Label>Log out</ListItem.Label>\n                  </ListItem.Content>\n                </DropdownMenu.Item>\n              </DropdownMenu.Content>\n            </DropdownMenu>\n          </div>\n        </div>\n      </Sidebar.Footer>\n    </Sidebar>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
