{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "notice",
  "title": "Notice",
  "description": "A calm callout for info, success, a warning or an error, with optional actions and Dismiss.",
  "dependencies": [
    "@kind-ui/agent-ui@0.9.0",
    "@ui-sdk/core@0.1.0-beta.17",
    "@ui-sdk/react@0.1.0-beta.17"
  ],
  "registryDependencies": [
    "@kind-ui/agent-ui-setup"
  ],
  "files": [
    {
      "path": "packages/agent-ui/src/react/notice.tsx",
      "content": "\"use client\";\n\nimport { noticePrimitive } from \"@kind-ui/agent-ui/core\";\nimport { createParts } from \"@ui-sdk/react/primitive\";\nimport type { ComponentProps, ReactNode } from \"react\";\n\nconst parts = createParts(noticePrimitive, {\n  root: \"div\",\n  icon: \"span\",\n  title: \"p\",\n  description: \"div\",\n  reset: \"p\",\n  actions: \"div\",\n  dismiss: \"button\",\n});\n\nexport type NoticeProps = Omit<ComponentProps<typeof parts.Root>, \"children\"> & {\n  /** The notice's text. */\n  children?: ReactNode;\n  /** Buttons that act on the notice, like \"Retry\". */\n  actions?: ReactNode;\n};\n\n/**\n * A calm callout: its mark, its `label` as the title, the reset line with `resetsAt`, `children` as its text, then\n * `actions` and Dismiss while `onDismiss` is set and it's `dismissible`. To arrange the parts yourself, use\n * `NoticeRoot`.\n */\nexport function Notice({ children, actions, ...props }: NoticeProps) {\n  return (\n    <parts.Root {...props}>\n      <NoticeIcon />\n      <NoticeTitle />\n      <NoticeReset />\n      <NoticeDescription>{children}</NoticeDescription>\n      <NoticeActions>{actions}</NoticeActions>\n      <NoticeDismiss />\n    </parts.Root>\n  );\n}\n\n/** The bare root, for arranging the parts yourself. */\nexport const NoticeRoot = parts.Root;\nexport const NoticeIcon = parts.Icon;\nexport const NoticeDescription = parts.Description;\nexport const NoticeActions = parts.Actions;\nexport const NoticeDismiss = parts.Dismiss;\n\nexport type NoticeTitleProps = ComponentProps<typeof parts.Title>;\n\n/** The `label`, unless you pass children. Rendered only with a `label`. */\nexport function NoticeTitle({ children = ({ label }) => label, ...props }: NoticeTitleProps) {\n  return <parts.Title {...props}>{children}</parts.Title>;\n}\n\nexport type NoticeResetProps = ComponentProps<typeof parts.Reset>;\n\n/** When the limit resets, like \"Resets Tuesday at 9:00 AM.\", unless you pass children. Rendered only with `resetsAt`. */\nexport function NoticeReset({ children = ({ text }) => text, ...props }: NoticeResetProps) {\n  return <parts.Reset {...props}>{children}</parts.Reset>;\n}\n",
      "type": "registry:ui",
      "target": "@ui/notice.tsx"
    }
  ],
  "meta": {
    "layer": "react"
  },
  "type": "registry:ui"
}
