{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "separator",
  "title": "Separator",
  "description": "A rule with tick marks, plain, labelled or vertical.",
  "dependencies": [
    "@ui-sdk/react@0.1.0-beta.5"
  ],
  "registryDependencies": [
    "https://www.cyberspec.dev/r/cyber.json"
  ],
  "files": [
    {
      "path": "registry/cyber/ui/separator.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Separator as SdkSeparator } from \"@ui-sdk/react/separator\"\nimport \"@/registry/cyber/ui/cyber/separator.css\"\n\n// A rule between two groups of content: a faint line with a tick standing\n// at each end, the way a measured span is drawn.\n//\n// - `label`: sets a word into the rule (\"Uplinks\"), which also names the\n//   separator for a screen reader. `align` puts it near the start of the\n//   rule (the default) or in the middle.\n// - `orientation=\"vertical\"` stands between items in a row and takes the\n//   row's height. A vertical rule has no room for a word, so there a\n//   `label` only names it.\n// - `decorative`: the line says nothing the content around it doesn't. It's\n//   hidden from assistive technology; a label set into it is then read as\n//   plain text, like the \"or\" between two ways to sign in.\nfunction Separator({\n  label,\n  align = \"start\",\n  orientation = \"horizontal\",\n  decorative,\n  ...props\n}: Omit<React.ComponentProps<typeof SdkSeparator>, \"children\"> & {\n  label?: string\n  align?: \"start\" | \"center\"\n}) {\n  const drawn = label != null && orientation !== \"vertical\"\n  return (\n    <SdkSeparator\n      data-kit=\"separator\"\n      data-labelled={drawn ? \"\" : undefined}\n      data-align={drawn ? align : undefined}\n      orientation={orientation}\n      decorative={decorative}\n      aria-label={decorative ? undefined : label}\n      {...props}\n    >\n      {/* A separator's name comes from aria-label, so the printed word is\n          hidden from assistive technology unless the line itself is. */}\n      {drawn && (\n        <span data-kit=\"separator-label\" aria-hidden={decorative ? undefined : true}>\n          {label}\n        </span>\n      )}\n    </SdkSeparator>\n  )\n}\n\nexport { Separator }\n",
      "type": "registry:ui",
      "target": "@ui/separator.tsx"
    },
    {
      "path": "registry/cyber/ui/cyber/separator.css",
      "content": "@layer ui-sdk, cyber.tokens, cyber.base, cyber.ui, cyber.blocks, cyber.fx, cyber.a11y;\n\n@layer cyber.ui {\n  /* The rule is drawn by two halves, one before the label and one after\n     it. Each is a hairline on the decorative line color with a tick, a\n     step brighter, standing at its outer end. With no label the halves\n     meet and read as one rule. The ticks are borders, so they follow the\n     writing direction and survive forced colors. */\n  [data-skin=\"cyber\"] [data-kit=\"separator\"] {\n    --separator-tick: 9px;\n    --separator-rule: var(--cy-line-deco);\n    --separator-mark: var(--cy-line-ctl);\n\n    flex: none;\n    display: flex;\n    align-items: center;\n    width: 100%;\n    min-width: 0;\n\n    &::before,\n    &::after {\n      content: \"\";\n      flex: 1 1 0;\n      min-width: 0;\n      height: var(--separator-tick);\n      background: linear-gradient(var(--separator-rule), var(--separator-rule)) center / 100% 1px no-repeat;\n    }\n    &::before {\n      border-inline-start: 1px solid var(--separator-mark);\n    }\n    &::after {\n      border-inline-end: 1px solid var(--separator-mark);\n    }\n\n    /* A word set into the rule. At the start, the leading half is a short\n       stub; in the middle, the halves are equal. */\n    &[data-labelled] {\n      gap: 8px;\n    }\n    &[data-labelled][data-align=\"start\"]::before {\n      flex: 0 0 14px;\n    }\n\n    /* Between items in a row: the halves stack, and the ticks cap the top\n       and the bottom. It stretches to the row's height. */\n    &[data-orientation=\"vertical\"] {\n      flex-direction: column;\n      align-self: stretch;\n      width: var(--separator-tick);\n      min-height: 20px;\n\n      &::before,\n      &::after {\n        width: var(--separator-tick);\n        height: auto;\n        border-inline: 0;\n        background: linear-gradient(var(--separator-rule), var(--separator-rule)) center / 1px 100% no-repeat;\n      }\n      &::before {\n        border-block-start: 1px solid var(--separator-mark);\n      }\n      &::after {\n        border-block-end: 1px solid var(--separator-mark);\n      }\n    }\n  }\n\n  [data-skin=\"cyber\"] [data-kit=\"separator-label\"] {\n    flex: 0 1 auto;\n    min-width: 0;\n    font-size: var(--cy-text-sm);\n    font-weight: 600;\n    line-height: 1.2;\n    letter-spacing: var(--cy-track);\n    text-transform: uppercase;\n    overflow-wrap: anywhere;\n    color: var(--cy-ink);\n  }\n}\n",
      "type": "registry:file",
      "target": "@ui/cyber/separator.css"
    }
  ],
  "type": "registry:ui"
}
