{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "settings-list",
  "type": "registry:ui",
  "title": "Settings List",
  "description": "Titled groups of settings with controls beside them.",
  "categories": [
    "layout"
  ],
  "dependencies": [],
  "registryDependencies": [
    "https://sprout.tulipfarm.ai/r/sprout-base.json"
  ],
  "files": [
    {
      "path": "registry/sprout/components/ui/settings-list.tsx",
      "type": "registry:ui",
      "target": "components/ui/settings-list.tsx",
      "content": "import type { ComponentProps, ReactNode } from 'react';\nimport { cn } from '@/lib/sprout/classes';\n\nexport const settingsGroupHeadingNames = ['h2', 'h3', 'h4'] as const;\nexport type SettingsGroupHeading = (typeof settingsGroupHeadingNames)[number];\n\nexport interface SettingsGroupProps extends Omit<ComponentProps<'section'>, 'title'> {\n  title: ReactNode;\n  titleId?: string;\n  heading?: SettingsGroupHeading;\n}\n\nexport function SettingsGroup({\n  title,\n  titleId,\n  heading: Heading = 'h2',\n  className,\n  children,\n  ...props\n}: SettingsGroupProps) {\n  return (\n    <section\n      data-slot=\"settings-group\"\n      aria-labelledby={titleId}\n      className={cn('sprout-settings-group', className)}\n      {...props}\n    >\n      <Heading id={titleId} className=\"sprout-settings-group-title\">\n        {title}\n      </Heading>\n      <div data-slot=\"settings-group-content\" className=\"sprout-settings-group-content\">\n        {children}\n      </div>\n    </section>\n  );\n}\n\nexport interface SettingsRowProps extends Omit<ComponentProps<'div'>, 'children'> {\n  label: ReactNode;\n  description?: ReactNode;\n  htmlFor?: string;\n  children?: ReactNode;\n}\n\nexport function SettingsRow({ label, description, htmlFor, className, children, ...props }: SettingsRowProps) {\n  return (\n    <div data-slot=\"settings-row\" className={cn('sprout-settings-row', className)} {...props}>\n      <div className=\"sprout-settings-row-text\">\n        {htmlFor ? (\n          <label htmlFor={htmlFor} className=\"sprout-settings-row-label\">\n            {label}\n          </label>\n        ) : (\n          <p className=\"sprout-settings-row-label\">{label}</p>\n        )}\n        {description != null && description !== false && description !== '' && (\n          <div className=\"sprout-settings-row-description\">{description}</div>\n        )}\n      </div>\n      {children != null && children !== false && (\n        <div data-slot=\"settings-row-control\" className=\"sprout-settings-row-control\">\n          {children}\n        </div>\n      )}\n    </div>\n  );\n}\n"
    }
  ],
  "css": {
    "@layer components": {
      ".sprout-settings-group": {
        "--sprout-settings-row-inline": "1rem",
        "--sprout-settings-row-block": ".75rem",
        "min-width": "0",
        "color": "var(--sprout-text)",
        "font-family": "var(--sprout-font)",
        "gap": ".5rem",
        "display": "grid"
      },
      ".sprout-settings-group-title": {
        "color": "var(--sprout-text)",
        "font-size": "var(--sprout-text-sm)",
        "letter-spacing": "normal",
        "margin": "0",
        "font-weight": "500",
        "line-height": "1.25rem"
      },
      ".sprout-settings-group-content": {
        "border": "1px solid var(--sprout-line)",
        "border-radius": "var(--sprout-radius-panel)",
        "background": "var(--sprout-surface)",
        "min-width": "0",
        "container": "sprout-settings / inline-size"
      },
      ":where(.sprout-settings-group-content > :not([hidden]) ~ :not([hidden]))": {
        "border-top": "1px solid var(--sprout-line)"
      },
      ".sprout-settings-row": {
        "min-width": "0",
        "padding": "var(--sprout-settings-row-block, .75rem) var(--sprout-settings-row-inline, 1rem)",
        "flex-direction": "column",
        "gap": ".75rem",
        "display": "flex"
      },
      ".sprout-settings-row-text": {
        "overflow-wrap": "anywhere",
        "gap": ".125rem",
        "min-width": "0",
        "display": "grid"
      },
      ".sprout-settings-row-label": {
        "color": "var(--sprout-text)",
        "font-size": "var(--sprout-text-sm)",
        "margin": "0",
        "font-weight": "500",
        "line-height": "1.25rem",
        "display": "block"
      },
      ".sprout-settings-row-description": {
        "color": "var(--sprout-muted)",
        "font-size": "var(--sprout-text-xs)",
        "line-height": "1rem"
      },
      ".sprout-settings-row-control": {
        "min-width": "0",
        "color": "var(--sprout-text)",
        "font-size": "var(--sprout-text-sm)",
        "flex-wrap": "wrap",
        "flex-shrink": "0",
        "align-items": "center",
        "gap": ".5rem",
        "line-height": "1.25rem",
        "display": "flex"
      },
      "@container sprout-settings (width >= 36rem)": {
        ".sprout-settings-row": {
          "flex-direction": "row",
          "justify-content": "space-between",
          "align-items": "center"
        },
        ".sprout-settings-row-control": {
          "justify-content": "flex-end",
          "max-width": "60%"
        }
      }
    }
  },
  "docs": "Docs and examples: https://sprout.tulipfarm.ai/components/settings-list/",
  "meta": {
    "source": "packages/sprout/src/components/settings-list.tsx"
  }
}
