{
  "name": "separator",
  "type": "ui:component",
  "title": "Separator",
  "description": "Horizontal or vertical 1px hairline divider with optional centered text label.",
  "dependencies": [],
  "registryDependencies": [
    "theme"
  ],
  "files": [
    {
      "path": "src/ui/separator.tsx",
      "target": "src/ui/separator.tsx",
      "sha256": "64ff3e87272ed14d51a9131a12a8a197c5ccc6d0cadd71579f3861f566ef4b4b",
      "content": "import './theme.css';\nimport { scope } from '@fierst/aster';\n\nconst sepScope = scope`\n  :scope {\n    flex-shrink: 0;\n    background: var(--aster-border);\n  }\n  :scope.dir-horizontal {\n    height: 1px;\n    width: 100%;\n  }\n  :scope.dir-vertical {\n    width: 1px;\n    align-self: stretch;\n    min-height: 1rem;\n  }\n  :scope.has-label {\n    background: transparent;\n    display: flex;\n    align-items: center;\n    gap: 0.75rem;\n    font-family: var(--aster-font-sans);\n    font-size: 0.75rem;\n    font-weight: 500;\n    color: var(--aster-on-surface-subtle);\n  }\n  :scope.has-label::before,\n  :scope.has-label::after {\n    content: '';\n    flex: 1;\n    height: 1px;\n    background: var(--aster-border);\n  }\n`;\n\nexport function Separator({\n  orientation = 'horizontal',\n  label,\n  decorative = true,\n  class: extraClass,\n}: {\n  orientation?: 'horizontal' | 'vertical';\n  label?: string;\n  decorative?: boolean;\n  class?: string;\n}) {\n  if (label && orientation === 'horizontal') {\n    return (\n      <div\n        role={decorative ? 'none' : 'separator'}\n        aria-orientation={decorative ? undefined : 'horizontal'}\n        class={[sepScope, 'dir-horizontal', 'has-label', extraClass].filter(Boolean).join(' ')}\n      >\n        <span>{label}</span>\n      </div>\n    );\n  }\n  return (\n    <div\n      role={decorative ? 'none' : 'separator'}\n      aria-orientation={decorative ? undefined : orientation}\n      class={[sepScope, `dir-${orientation}`, extraClass].filter(Boolean).join(' ')}\n    />\n  );\n}\n"
    }
  ]
}
