{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-workspace-identity-appearance-1",
  "type": "registry:block",
  "title": "Appearance",
  "description": "Workspace card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "workspace"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/workspace-identity-appearance-1.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/workspace-identity-appearance-1.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/workspace-tools.tsx:519.\nimport { useState } from \"react\";\nimport {\n  IconBriefcase,\n  IconFileText,\n  IconFolder,\n  IconLayoutGrid,\n  IconMail,\n  IconPalette,\n  IconSettings,\n  IconUsers,\n} from \"@tabler/icons-react\";\nimport { SettingsSection } from \"./runtime/registry/overtrue/settings-section\";\nimport {\n  SceneCard,\n  Action,\n  FilterTabs,\n} from \"./runtime/components/overtrue/scenes/shared\";\nconst workspaceIcons = [\n  { name: \"Projects\", icon: IconBriefcase },\n  { name: \"Files\", icon: IconFolder },\n  { name: \"Documents\", icon: IconFileText },\n  { name: \"Inbox\", icon: IconMail },\n  { name: \"Team\", icon: IconUsers },\n  { name: \"Design\", icon: IconPalette },\n  { name: \"Workspace\", icon: IconLayoutGrid },\n  { name: \"Settings\", icon: IconSettings },\n];\nfunction CardExample({ id = \"icons\" }: { id?: string } = {}) {\n  const [icon, setIcon] = useState(\"Projects\");\n  const [color, setColor] = useState(\"#4263eb\");\n  const [pattern, setPattern] = useState(\"Plain\");\n  const [name, setName] = useState(\"Visitor experience\");\n  const [saved, setSaved] = useState(false);\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page={id}>\n        <SceneCard title=\"Appearance\">\n          <form\n            className=\"scene-form\"\n            onSubmit={(e) => {\n              e.preventDefault();\n              setSaved(true);\n            }}\n            onChange={() => setSaved(false)}\n          >\n            <SettingsSection\n              title=\"Project name\"\n              description=\"Shown in navigation, notifications, and shared links.\"\n            >\n              <label className=\"scene-field\">\n                Name\n                <input\n                  value={name}\n                  onChange={(e) => setName(e.target.value)}\n                  required\n                  maxLength={60}\n                />\n              </label>\n            </SettingsSection>\n            <SettingsSection\n              title=\"Project icon\"\n              description=\"Choose a symbol the team can recognize at small sizes.\"\n            >\n              <div className=\"scene-icon-options\">\n                {workspaceIcons.map((item) => (\n                  <button\n                    type=\"button\"\n                    key={item.name}\n                    aria-label={item.name}\n                    aria-pressed={icon === item.name}\n                    onClick={() => {\n                      setIcon(item.name);\n                      setSaved(false);\n                    }}\n                  >\n                    <item.icon size={23} />\n                    <span>{item.name}</span>\n                  </button>\n                ))}\n              </div>\n            </SettingsSection>\n            <SettingsSection\n              title=\"Accent color\"\n              description=\"Used for the project icon and cover edge.\"\n            >\n              <div className=\"scene-swatch-options\">\n                {[\n                  \"#4263eb\",\n                  \"#14836b\",\n                  \"#9b4d20\",\n                  \"#7953ab\",\n                  \"#b53c65\",\n                  \"#5c6c80\",\n                ].map((value) => (\n                  <button\n                    type=\"button\"\n                    key={value}\n                    aria-label={`Use ${value}`}\n                    aria-pressed={color === value}\n                    style={{ background: value }}\n                    onClick={() => {\n                      setColor(value);\n                      setSaved(false);\n                    }}\n                  />\n                ))}\n              </div>\n            </SettingsSection>\n            {id === \"patterns\" && (\n              <SettingsSection\n                title=\"Cover texture\"\n                description=\"A subtle texture for this project's cover.\"\n              >\n                <FilterTabs\n                  items={[\"Plain\", \"Dots\", \"Grid\"]}\n                  value={pattern}\n                  onChange={(value) => {\n                    setPattern(value);\n                    setSaved(false);\n                  }}\n                />\n              </SettingsSection>\n            )}\n            <div className=\"scene-actions\">\n              <Action type=\"submit\" primary>\n                Save appearance\n              </Action>\n              <span role=\"status\">\n                {saved ? \"Appearance saved in this preview.\" : \"\"}\n              </span>\n            </div>\n          </form>\n        </SceneCard>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/workspace-identity-appearance-1. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
