{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "day-separator-vue",
  "title": "Day Separator (Vue)",
  "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/vue@0.1.0-beta.17"
  ],
  "registryDependencies": [
    "@kind-ui/agent-ui-setup"
  ],
  "files": [
    {
      "path": "packages/agent-ui/src/vue/day-separator.ts",
      "content": "import { daySeparatorPrimitive } from \"@kind-ui/agent-ui/core\";\nimport { createParts } from \"@ui-sdk/vue/primitive\";\nimport { defineComponent, h } from \"vue\";\n\nconst parts = createParts(daySeparatorPrimitive, { root: \"div\", label: \"time\" });\n\n/** The day as a `<time datetime>`: its words, unless you fill the default slot. */\nexport const DaySeparatorLabel = defineComponent({\n  name: \"DaySeparatorLabel\",\n  inheritAttrs: false,\n  setup(_, { attrs, slots }) {\n    return () =>\n      h(parts.Label, attrs, {\n        ...slots,\n        default: slots.default ?? (({ state }: { state: { label: string } }) => state.label),\n      });\n  },\n}) as unknown as typeof parts.Label;\n\n/** A heading between days: the date on the server, and \"Today\", \"Yesterday\" or a weekday once in the browser. */\nexport const DaySeparator = defineComponent({\n  name: \"DaySeparator\",\n  inheritAttrs: false,\n  setup(_, { attrs, slots }) {\n    return () => h(parts.Root, attrs, { ...slots, default: slots.default ?? (() => h(DaySeparatorLabel)) });\n  },\n}) as unknown as typeof parts.Root;\n",
      "type": "registry:ui",
      "target": "@ui/vue/day-separator.ts"
    }
  ],
  "meta": {
    "layer": "vue"
  },
  "type": "registry:ui"
}
