{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "day-separator-solid",
  "title": "Day Separator (Solid)",
  "description": "A heading between days that reads Today or Yesterday.",
  "dependencies": [
    "@kind-ui/agent-ui@0.9.0",
    "@ui-sdk/core@0.1.0-beta.17",
    "@ui-sdk/solid@0.1.0-beta.17"
  ],
  "registryDependencies": [
    "@kind-ui/agent-ui-setup"
  ],
  "files": [
    {
      "path": "packages/agent-ui/src/solid/day-separator.tsx",
      "content": "import { daySeparatorPrimitive } from \"@kind-ui/agent-ui/core\";\nimport type { ComponentProps } from \"@solidjs/web\";\nimport { createParts } from \"@ui-sdk/solid/primitive\";\nimport { omit } from \"solid-js\";\n\nconst parts = createParts(daySeparatorPrimitive, { root: \"div\", label: \"time\" });\n\nexport type DaySeparatorProps = ComponentProps<typeof parts.Root>;\n\n/** A heading between days: the date on the server, and \"Today\", \"Yesterday\" or a weekday once in the browser. */\nexport function DaySeparator(props: DaySeparatorProps) {\n  return <parts.Root {...omit(props, \"children\")}>{props.children ?? <DaySeparatorLabel />}</parts.Root>;\n}\n\nexport type DaySeparatorLabelProps = ComponentProps<typeof parts.Label>;\n\n/** The day as a `<time datetime>`: its words, unless you pass children. */\nexport function DaySeparatorLabel(props: DaySeparatorLabelProps) {\n  return (\n    <parts.Label {...omit(props, \"children\")}>\n      {props.children ?? ((state: { label: string }) => state.label)}\n    </parts.Label>\n  );\n}\n",
      "type": "registry:ui",
      "target": "@ui/solid/day-separator.tsx"
    }
  ],
  "meta": {
    "layer": "solid"
  },
  "type": "registry:ui"
}
