{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-process",
  "type": "registry:block",
  "title": "Process",
  "description": "A creation flow: a workspace rail beside the sidebar, a step header with progress, and a choice of type.",
  "dependencies": [
    "@remixicon/react@^4.9.0"
  ],
  "registryDependencies": [
    "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/icon-button.json",
    "https://wideset.co/r/progress-tracker.json",
    "https://wideset.co/r/sidebar.json",
    "https://wideset.co/r/tabs.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/process/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/process/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';\nconst W =\n  'M21.6907 12C21.6907 12 19.618 17.322 19.5381 17.5183C19.4954 17.4215 17.1775 12 17.1775 12H15.0877C15.0877 12 12.7755 17.5183 12.7413 17.5916C12.7042 17.5157 10.2409 12 10.2409 12H8L11.7434 20H13.8047L16.1483 14.3403H16.1853C16.211 14.3953 18.5802 20 18.5802 20H20.7042C20.7042 20 23.9772 12.0707 24 12.0052L21.6935 12H21.6907Z';\n\n/**\n * The Wideset mark: a W on the inverse tile, Figma's workspace Thumbnail. It takes the size of\n * its place (32px in a sidebar or top bar, 36px in a larger switcher) and inverts in dark mode.\n * Decorative beside the 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      <path d={W} className=\"fill-(--ws-static-text-inverse-strong)\" />\n    </svg>\n  );\n}\n"
    },
    {
      "path": "src/blocks/process/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/process/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBarChartLine,\n  RiBikeLine,\n  RiBodyScanLine,\n  RiBoxingLine,\n  RiBuilding2Line,\n  RiCalendarCheckLine,\n  RiFootballLine,\n  RiGroupLine,\n  RiHeartPulseLine,\n  RiListUnordered,\n  RiLungsLine,\n  RiMedalLine,\n  RiOpenArmLine,\n  RiPhoneLine,\n  RiPictureInPictureLine,\n  RiRestaurantLine,\n  RiRoadMapLine,\n  RiRunLine,\n  RiStarLine,\n  RiStore2Line,\n  RiSurveyLine,\n  RiTimer2Line,\n  RiUserLine,\n  RiUserVoiceLine,\n  RiVideoLine,\n  RiWalkLine,\n} from '@remixicon/react';\nimport type { AvatarColor } from '@/components/ui/wideset/avatar/Avatar.colors';\n\nexport type ShortcutColor = 'purple' | 'indigo' | 'blue' | 'cyan' | 'teal' | 'green';\n\nexport const workspaces: { id: string; name: string; initials: string; color: AvatarColor }[] = [\n  { id: 'finance', name: 'Finance', initials: 'F', color: 'cyan' },\n  { id: 'design', name: 'Design', initials: 'D', color: 'purple' },\n  { id: 'wideset', name: 'Wideset', initials: 'W', color: 'brand' },\n];\n\nexport const account = { name: 'Adam Smith', initials: 'AS' };\n\nexport const navigation = [\n  { id: 'studio', label: 'Studio', icon: RiBarChartLine },\n  { id: 'experiences', label: 'Experiences', icon: RiTimer2Line },\n  { id: 'archived', label: 'Archived', icon: RiStarLine },\n];\n\nexport const shortcuts: { id: string; label: string; color: ShortcutColor }[] = [\n  { id: 'fit-restarts', label: 'Fit Restarts', color: 'purple' },\n  { id: 'fit-family', label: 'FitFamily', color: 'indigo' },\n  { id: 'fit-couple', label: 'Fit Couple 2024', color: 'blue' },\n  { id: 'fit-vip', label: 'FitVIP', color: 'cyan' },\n  { id: 'club-fit', label: 'Club Fit 2025', color: 'teal' },\n  { id: 'on-demand', label: 'On-demand workout', color: 'green' },\n];\n\n/** The flow's steps; the header tracks the first. */\nexport const steps = ['Type', 'Details', 'Schedule', 'Publish'];\n\nexport type ExperienceType = {\n  id: string;\n  title: string;\n  steps: number;\n  icon: RemixiconComponentType;\n};\n\nexport const categories: {\n  value: string;\n  label: string;\n  icon: RemixiconComponentType;\n  types: ExperienceType[];\n}[] = [\n  {\n    value: 'training',\n    label: 'Training',\n    icon: RiBikeLine,\n    types: [\n      { id: 'workout', title: 'Workout', steps: 3, icon: RiOpenArmLine },\n      { id: 'cardio', title: 'Cardio', steps: 2, icon: RiBikeLine },\n      { id: 'running', title: 'Running', steps: 5, icon: RiRunLine },\n    ],\n  },\n  {\n    value: 'coaching',\n    label: 'Coaching',\n    icon: RiPictureInPictureLine,\n    types: [\n      { id: 'one-to-one', title: 'One-to-one', steps: 4, icon: RiUserVoiceLine },\n      { id: 'group-class', title: 'Group class', steps: 3, icon: RiGroupLine },\n      { id: 'nutrition', title: 'Nutrition plan', steps: 2, icon: RiRestaurantLine },\n    ],\n  },\n  {\n    value: 'consulting',\n    label: 'Consulting',\n    icon: RiUserLine,\n    types: [\n      { id: 'assessment', title: 'Assessment', steps: 3, icon: RiSurveyLine },\n      { id: 'strategy-call', title: 'Strategy call', steps: 2, icon: RiPhoneLine },\n      { id: 'follow-up', title: 'Follow-up', steps: 1, icon: RiCalendarCheckLine },\n    ],\n  },\n  {\n    value: 'workshops',\n    label: 'Workshops',\n    icon: RiVideoLine,\n    types: [\n      { id: 'mobility', title: 'Mobility', steps: 4, icon: RiBodyScanLine },\n      { id: 'breathwork', title: 'Breathwork', steps: 2, icon: RiLungsLine },\n      { id: 'recovery', title: 'Recovery', steps: 3, icon: RiHeartPulseLine },\n    ],\n  },\n  {\n    value: 'tours',\n    label: 'Tours',\n    icon: RiStore2Line,\n    types: [\n      { id: 'gym-tour', title: 'Gym tour', steps: 2, icon: RiBuilding2Line },\n      { id: 'trail-run', title: 'Trail run', steps: 4, icon: RiRoadMapLine },\n      { id: 'city-walk', title: 'City walk', steps: 3, icon: RiWalkLine },\n    ],\n  },\n  {\n    value: 'courses',\n    label: 'Courses',\n    icon: RiListUnordered,\n    types: [\n      { id: 'strength', title: 'Strength basics', steps: 6, icon: RiMedalLine },\n      { id: 'boxing', title: 'Boxing fundamentals', steps: 5, icon: RiBoxingLine },\n      { id: 'team-sports', title: 'Team sports', steps: 4, icon: RiFootballLine },\n    ],\n  },\n];\n"
    },
    {
      "path": "src/blocks/process/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/process/index.tsx",
      "content": "'use client';\n\nimport '@/styles/wideset-blocks.css';\n\nimport { RiArrowDownSLine, RiArrowLeftLine } from '@remixicon/react';\nimport { AppShell } from '@/components/ui/wideset/app-shell/AppShell';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { cn } from '@/lib/wideset/utils';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ProgressTracker } from '@/components/ui/wideset/progress-tracker/ProgressTracker';\nimport { Tabs } from '@/components/ui/wideset/tabs/Tabs';\nimport { useId, useState } from 'react';\n\nimport { categories, steps } from './data';\nimport { ProcessSidebar } from './sidebar';\nimport { WorkspaceRail } from './workspace-rail';\n\n/**\n * Process: the first step of a creation flow in the Flat direction, with a workspace rail beside\n * the sidebar. The header carries the draft's name, the progress and the publish actions.\n */\nexport default function Process() {\n  const [type, setType] = useState<string>();\n  const headingId = useId();\n\n  return (\n    <AppShell className=\"ws-block-utility\" direction=\"flat\">\n      <WorkspaceRail />\n      <ProcessSidebar />\n      <AppShell.Main className=\"flex flex-col\">\n        <header className=\"border-ws-static-base h-ws-20 px-ws-14 gap-ws-14 flex shrink-0 items-center border-b\">\n          {/* A bar's icon buttons are sm, like the Sidebar trigger beside it; gap-ws-5 keeps the\n              arrow 16px from the title, as before. */}\n          <div className=\"gap-ws-5 flex min-w-0 flex-1 items-center\">\n            <IconButton\n              icon={RiArrowLeftLine}\n              size=\"sm\"\n              variant=\"secondary\"\n              preset=\"ghost\"\n              aria-label=\"Back to experiences\"\n            />\n            <h1 className=\"typography-subtitle-xs text-ws-static-strong truncate\">Untitled</h1>\n          </div>\n          <ProgressTracker\n            steps={steps.map(() => ({}))}\n            activeStep={0}\n            aria-label={`Step 1 of ${steps.length}: ${steps[0]}`}\n            className=\"w-[10rem] shrink-0\"\n          />\n          <div className=\"gap-ws-5 flex flex-1 items-center justify-end\">\n            <Button variant=\"primary\" preset=\"ghost\" size=\"sm\">\n              Unsaved\n            </Button>\n            <Button variant=\"secondary\" preset=\"border\" size=\"sm\">\n              Preview\n            </Button>\n            <Button size=\"sm\">\n              Make it live\n              <Button.Icon icon={RiArrowDownSLine} />\n            </Button>\n          </div>\n        </header>\n\n        {/* pb-ws-20 matches the header's height, so the step centres on the screen as in Figma. */}\n        <div className=\"px-ws-14 pb-ws-20 flex flex-1 items-center justify-center\">\n          <section\n            aria-labelledby={headingId}\n            className=\"gap-ws-14 flex w-full max-w-[53.4375rem] flex-col\"\n          >\n            <h2 id={headingId} className=\"typography-title-md text-ws-static-strong\">\n              Choose type of experience\n            </h2>\n            <Tabs type=\"ghost\" defaultValue=\"training\" className=\"gap-ws-14\">\n              <Tabs.List aria-label=\"Categories\">\n                {categories.map((category) => (\n                  <Tabs.Item key={category.value} value={category.value}>\n                    <Tabs.Icon icon={category.icon} />\n                    <Tabs.Label>{category.label}</Tabs.Label>\n                  </Tabs.Item>\n                ))}\n              </Tabs.List>\n              {categories.map((category) => (\n                <Tabs.Content\n                  key={category.value}\n                  value={category.value}\n                  className=\"gap-ws-12 flex\"\n                >\n                  {category.types.map(({ id, title, steps: count, icon: Icon }) => (\n                    <button\n                      key={id}\n                      type=\"button\"\n                      aria-pressed={type === id}\n                      onClick={() => setType(id)}\n                      className={cn(\n                        'rounded-ws-container-md p-ws-9 focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex h-[12.5rem] min-w-0 flex-1 flex-col items-start justify-between text-left',\n                        type === id\n                          ? 'bg-ws-dynamic-primary-alpha-strong-default'\n                          : 'bg-ws-static-alpha-subtle hover:bg-ws-static-alpha-base',\n                      )}\n                    >\n                      <Icon aria-hidden=\"true\" className=\"size-ws-12 text-ws-static-strong\" />\n                      <span className=\"gap-ws-3 flex flex-col\">\n                        <span className=\"typography-subtitle-xs text-ws-static-strong\">\n                          {title}\n                        </span>\n                        <span className=\"typography-caption-strong-md text-ws-static-subtle\">\n                          {count} {count === 1 ? 'step' : 'steps'}\n                        </span>\n                      </span>\n                    </button>\n                  ))}\n                </Tabs.Content>\n              ))}\n            </Tabs>\n          </section>\n        </div>\n      </AppShell.Main>\n    </AppShell>\n  );\n}\n"
    },
    {
      "path": "src/blocks/process/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/process/sidebar.tsx",
      "content": "'use client';\n\nimport { type RemixiconComponentType, RiCornerUpRightFill } from '@remixicon/react';\nimport { cn } from '@/lib/wideset/utils';\nimport { Sidebar } from '@/components/ui/wideset/sidebar/Sidebar';\nimport { useState } from 'react';\n\nimport { BrandMark } from './brand-mark';\nimport { navigation, type ShortcutColor, shortcuts } from './data';\n\nconst TILE: Record<ShortcutColor, string> = {\n  purple: 'bg-ws-non-semantic-purple-strong text-ws-non-semantic-purple-on-strong',\n  indigo: 'bg-ws-non-semantic-indigo-strong text-ws-non-semantic-indigo-on-strong',\n  blue: 'bg-ws-non-semantic-blue-strong text-ws-non-semantic-blue-on-strong',\n  cyan: 'bg-ws-non-semantic-cyan-strong text-ws-non-semantic-cyan-on-strong',\n  teal: 'bg-ws-non-semantic-teal-strong text-ws-non-semantic-teal-on-strong',\n  green: 'bg-ws-non-semantic-green-strong text-ws-non-semantic-green-on-strong',\n};\n\n/** Figma's Sidebar Item `Type=Thumbnail`: a 20px colour tile with a white glyph, as the item icon. */\nconst shortcutTile = (color: ShortcutColor): RemixiconComponentType => {\n  const ShortcutTile = () => (\n    <span\n      aria-hidden=\"true\"\n      className={cn(\n        'rounded-ws-control-md size-ws-11 flex shrink-0 items-center justify-center',\n        TILE[color],\n      )}\n    >\n      <RiCornerUpRightFill className=\"size-ws-7\" />\n    </span>\n  );\n  return ShortcutTile;\n};\n\nconst SHORTCUT_ICON: Record<ShortcutColor, RemixiconComponentType> = {\n  purple: shortcutTile('purple'),\n  indigo: shortcutTile('indigo'),\n  blue: shortcutTile('blue'),\n  cyan: shortcutTile('cyan'),\n  teal: shortcutTile('teal'),\n  green: shortcutTile('green'),\n};\n\n/** The product sidebar: brand, the studio's pages and the shortcuts to recent experiences. */\nexport function ProcessSidebar() {\n  const [active, setActive] = useState('fit-restarts');\n\n  const links = (\n    <nav aria-label=\"Studio\" className=\"gap-ws-11 flex flex-col\">\n      <div className=\"flex flex-col\">\n        {navigation.map((item) => (\n          <Sidebar.Item\n            key={item.id}\n            href={`#${item.id}`}\n            icon={item.icon}\n            label={item.label}\n            active={active === item.id}\n            onClick={() => setActive(item.id)}\n          />\n        ))}\n      </div>\n      <div role=\"group\" aria-labelledby=\"sidebar-shortcuts\" className=\"gap-ws-2 flex flex-col\">\n        <Sidebar.SectionHeader id=\"sidebar-shortcuts\">Shortcuts</Sidebar.SectionHeader>\n        {shortcuts.map((shortcut) => (\n          <Sidebar.Item\n            key={shortcut.id}\n            href={`#${shortcut.id}`}\n            icon={SHORTCUT_ICON[shortcut.color]}\n            label={shortcut.label}\n            active={active === shortcut.id}\n            onClick={() => setActive(shortcut.id)}\n          />\n        ))}\n      </div>\n    </nav>\n  );\n\n  return (\n    <Sidebar>\n      <Sidebar.Header>\n        <Sidebar.Expanded>\n          <div className=\"gap-ws-7 py-ws-3 pl-ws-5 flex items-center\">\n            <BrandMark />\n            <span className=\"typography-label-strong-sm text-ws-dynamic-secondary-default min-w-0 flex-1 truncate\">\n              Wideset\n            </span>\n            <Sidebar.Trigger />\n          </div>\n        </Sidebar.Expanded>\n        <Sidebar.Collapsed>\n          <div className=\"py-ws-3 flex items-center\">\n            <Sidebar.Trigger />\n          </div>\n        </Sidebar.Collapsed>\n      </Sidebar.Header>\n\n      <Sidebar.Section scrollable>{links}</Sidebar.Section>\n    </Sidebar>\n  );\n}\n"
    },
    {
      "path": "src/blocks/process/workspace-rail.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/process/workspace-rail.tsx",
      "content": "'use client';\n\nimport { RiAddLine } from '@remixicon/react';\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { useState } from 'react';\n\nimport { BrandMark } from './brand-mark';\nimport { account, workspaces } from './data';\n\n/**\n * The workspace rail left of the sidebar: switch between workspaces, add one, reach the account.\n * Figma's `Workspaces` frame: Static/Fill/Background with Elevation/Low, which also draws its edge.\n * `z-ws-base` lifts it so that edge paints over the sidebar beside it.\n */\nexport function WorkspaceRail() {\n  const [current, setCurrent] = useState('wideset');\n\n  return (\n    <nav\n      aria-label=\"Workspaces\"\n      className=\"bg-ws-static-background shadow-ws-low z-ws-base py-ws-9 relative flex w-[4.1875rem] shrink-0 flex-col items-center justify-between\"\n    >\n      <div className=\"gap-ws-7 flex flex-col items-center\">\n        {workspaces.map((workspace) => (\n          <button\n            key={workspace.id}\n            type=\"button\"\n            aria-label={workspace.name}\n            aria-current={current === workspace.id ? 'true' : undefined}\n            onClick={() => setCurrent(workspace.id)}\n            className=\"rounded-ws-control-lg focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex\"\n          >\n            {workspace.id === 'wideset' ? (\n              // The product's own workspace shows its mark; the ring is Avatar's selection ring.\n              <span className=\"relative flex\">\n                <BrandMark />\n                {current === workspace.id && (\n                  <span\n                    aria-hidden=\"true\"\n                    className=\"outline-ws-dynamic-primary-strong-default rounded-ws-control-lg pointer-events-none absolute inset-0 outline-2 outline-offset-2 outline-solid\"\n                  />\n                )}\n              </span>\n            ) : (\n              <Avatar\n                shape=\"square\"\n                initials={workspace.initials}\n                color={workspace.color}\n                selected={current === workspace.id}\n              />\n            )}\n          </button>\n        ))}\n        <button\n          type=\"button\"\n          aria-label=\"Add workspace\"\n          className=\"group size-ws-14 rounded-ws-control-full focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex items-center justify-center\"\n        >\n          <span className=\"bg-ws-dynamic-secondary-default group-hover:bg-ws-dynamic-secondary-hover size-ws-11 rounded-ws-control-full text-ws-static-strong flex items-center justify-center\">\n            <RiAddLine aria-hidden=\"true\" className=\"size-ws-7\" />\n          </span>\n        </button>\n      </div>\n      <Avatar initials={account.initials} status=\"online\" title={account.name} />\n    </nav>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
