{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "record-list",
  "type": "registry:ui",
  "title": "Record List",
  "description": "Rows of records to read and triage, with values, badges, and row actions.",
  "categories": [
    "data-display"
  ],
  "dependencies": [
    "@hugeicons/core-free-icons@4.4.0",
    "@hugeicons/react@1.1.10"
  ],
  "registryDependencies": [
    "https://sprout.tulipfarm.ai/r/sprout-base.json",
    "https://sprout.tulipfarm.ai/r/button.json",
    "https://sprout.tulipfarm.ai/r/skeleton.json",
    "https://sprout.tulipfarm.ai/r/spinner.json"
  ],
  "files": [
    {
      "path": "registry/sprout/components/ui/record-list.tsx",
      "type": "registry:ui",
      "target": "components/ui/record-list.tsx",
      "content": "'use client';\n\nimport {\n  useCallback,\n  useId,\n  useImperativeHandle,\n  useLayoutEffect,\n  useRef,\n  useState,\n  type KeyboardEvent,\n  type MouseEvent,\n  type ReactNode,\n  type Ref,\n} from 'react';\nimport { cn } from '@/lib/sprout/classes';\nimport { Button } from '@/components/ui/button';\nimport { Skeleton, SkeletonGroup } from '@/components/ui/skeleton';\nimport { StatePanel } from '@/lib/sprout/state-panel-core';\n\nexport const recordListStatusNames = ['ready', 'loading', 'error'] as const;\nexport const recordListDensityNames = ['md', 'sm'] as const;\n\nexport type RecordListStatus = (typeof recordListStatusNames)[number];\nexport type RecordListDensity = (typeof recordListDensityNames)[number];\n\nexport const recordListMaxValues = 4;\n\nexport interface RecordListItem {\n  id: string;\n  title: string;\n}\n\nexport interface RecordListValue {\n  label: string;\n  value: ReactNode;\n  text?: string | undefined;\n}\n\nexport interface RecordListHandle {\n  focusFirst: () => void;\n}\n\nexport interface RecordListProps<T extends RecordListItem> {\n  items: T[];\n  label: string;\n  renderTitle?: ((item: T) => ReactNode) | undefined;\n  values?: ((item: T) => RecordListValue[]) | undefined;\n  badges?: ((item: T) => ReactNode) | undefined;\n  renderActions?: ((item: T) => ReactNode) | undefined;\n  onItemOpen?: ((item: T) => void) | undefined;\n  status?: RecordListStatus | undefined;\n  error?: ReactNode;\n  onRetry?: (() => void) | undefined;\n  empty?: ReactNode;\n  footer?: ReactNode;\n  density?: RecordListDensity | undefined;\n  ref?: Ref<RecordListHandle> | undefined;\n  className?: string | undefined;\n}\n\nconst SKELETON_ROWS = 5;\nconst ROW = 'data-record-list-row';\nconst SAVED_TAB = 'data-record-list-tabindex';\nconst FOCUSABLE =\n  'a[href], area[href], button, input, select, textarea, iframe, summary, [contenteditable=\"\"], [contenteditable=\"true\"], [tabindex]';\n\nconst rowsName = (label: string, count: number) => `${label}, ${count} ${count === 1 ? 'row' : 'rows'}`;\nconst hint = (entry: RecordListValue) =>\n  entry.text ?? (typeof entry.value === 'string' || typeof entry.value === 'number' ? String(entry.value) : undefined);\n\nfunction syncTabStops(list: HTMLElement) {\n  for (const row of list.querySelectorAll<HTMLElement>(`[${ROW}]`)) {\n    const active = row.tabIndex === 0;\n    for (const control of row.querySelectorAll<HTMLElement>(FOCUSABLE)) {\n      if (active) {\n        const saved = control.getAttribute(SAVED_TAB);\n        if (saved === null) continue;\n        if (saved === '') control.removeAttribute('tabindex');\n        else control.setAttribute('tabindex', saved);\n        control.removeAttribute(SAVED_TAB);\n      } else if (!control.hasAttribute(SAVED_TAB) && control.tabIndex >= 0) {\n        control.setAttribute(SAVED_TAB, control.getAttribute('tabindex') ?? '');\n        control.setAttribute('tabindex', '-1');\n      }\n    }\n  }\n}\n\nfunction SkeletonRows() {\n  return (\n    <SkeletonGroup\n      label=\"Loading rows\"\n      gap=\"sm\"\n      className=\"sprout-record-list-skeleton\"\n      data-slot=\"record-list-skeleton\"\n    >\n      {Array.from({ length: SKELETON_ROWS }, (_, index) => (\n        <div key={index} className=\"sprout-record-list-skeleton-row\">\n          <div className=\"sprout-record-list-skeleton-main\">\n            <Skeleton className=\"sprout-record-list-skeleton-title\" />\n            <Skeleton className=\"sprout-record-list-skeleton-values\" />\n          </div>\n          <Skeleton shape=\"action\" />\n        </div>\n      ))}\n    </SkeletonGroup>\n  );\n}\n\nexport function RecordList<T extends RecordListItem>({\n  items,\n  label,\n  renderTitle,\n  values,\n  badges,\n  renderActions,\n  onItemOpen,\n  status = 'ready',\n  error,\n  onRetry,\n  empty,\n  footer,\n  density = 'md',\n  ref,\n  className,\n}: RecordListProps<T>) {\n  const id = useId();\n  const listRef = useRef<HTMLUListElement>(null);\n  const stateRef = useRef<HTMLDivElement>(null);\n  const pendingFocus = useRef(false);\n  const [activeId, setActiveId] = useState<string | null>(null);\n  const loading = status === 'loading';\n  const showRows = status !== 'error' && items.length > 0;\n  const current = items.some(item => item.id === activeId) ? activeId : (items[0]?.id ?? null);\n\n  const rowOf = useCallback(\n    (itemId: string) =>\n      [...(listRef.current?.querySelectorAll<HTMLElement>(`[${ROW}]`) ?? [])].find(\n        row => row.dataset.recordListRow === itemId,\n      ),\n    [],\n  );\n\n  const flushFocus = useCallback(() => {\n    if (!pendingFocus.current || loading) return;\n    pendingFocus.current = false;\n    if (showRows && items[0]) {\n      setActiveId(items[0].id);\n      rowOf(items[0].id)?.focus();\n    } else stateRef.current?.focus();\n  }, [items, loading, rowOf, showRows]);\n\n  const latestFlush = useRef(flushFocus);\n  useLayoutEffect(() => {\n    latestFlush.current = flushFocus;\n    flushFocus();\n  });\n\n  useImperativeHandle(\n    ref,\n    () => ({\n      focusFirst() {\n        pendingFocus.current = true;\n        setTimeout(() => latestFlush.current());\n      },\n    }),\n    [],\n  );\n\n  useLayoutEffect(() => {\n    const list = listRef.current;\n    if (!list) return;\n    syncTabStops(list);\n    const observer = new MutationObserver(() => syncTabStops(list));\n    observer.observe(list, { childList: true, subtree: true });\n    return () => observer.disconnect();\n  });\n\n  const move = (event: KeyboardEvent<HTMLUListElement>) => {\n    const row = event.target as HTMLElement;\n    if (!row.hasAttribute(ROW) || event.altKey || event.ctrlKey || event.metaKey) return;\n    const index = items.findIndex(item => item.id === row.dataset.recordListRow);\n    const item = items[index];\n    if (!item) return;\n    if (event.key === 'Enter') {\n      if (!onItemOpen || event.repeat) return;\n      event.preventDefault();\n      onItemOpen(item);\n      return;\n    }\n    const target =\n      event.key === 'ArrowDown'\n        ? items[Math.min(index + 1, items.length - 1)]\n        : event.key === 'ArrowUp'\n          ? items[Math.max(index - 1, 0)]\n          : event.key === 'Home'\n            ? items[0]\n            : event.key === 'End'\n              ? items.at(-1)\n              : undefined;\n    if (!target || event.shiftKey) return;\n    event.preventDefault();\n    setActiveId(target.id);\n    rowOf(target.id)?.focus();\n  };\n\n  const open = (event: MouseEvent<HTMLElement>, item: T) => {\n    const target = event.target as HTMLElement;\n    const row = event.currentTarget;\n    if (!onItemOpen || !row.contains(target)) return;\n    const control = target.closest(FOCUSABLE);\n    if (control && control !== row && row.contains(control)) return;\n    if (target.closest('[data-slot=\"record-list-actions\"]')) return;\n    if (window.getSelection()?.toString()) return;\n    onItemOpen(item);\n  };\n\n  const emptyContent =\n    empty === undefined ? (\n      <StatePanel\n        kind=\"empty\"\n        heading=\"h3\"\n        title=\"No rows to show\"\n        description=\"Rows show here when they are added or match the search and filters.\"\n      />\n    ) : typeof empty === 'string' ? (\n      <p className=\"sprout-record-list-empty-text\">{empty}</p>\n    ) : (\n      empty\n    );\n\n  return (\n    <div\n      data-slot=\"record-list\"\n      data-density={density}\n      data-status={status}\n      className={cn('sprout-record-list', className)}\n    >\n      {status === 'error' ? (\n        <div ref={stateRef} tabIndex={-1} data-slot=\"record-list-state\" className=\"sprout-record-list-state\">\n          <StatePanel\n            kind=\"error\"\n            heading=\"h3\"\n            title=\"Rows did not load\"\n            description={error ?? 'Something went wrong while loading the rows.'}\n          >\n            {onRetry ? (\n              <Button variant=\"outline\" onClick={onRetry}>\n                Try again\n              </Button>\n            ) : null}\n          </StatePanel>\n        </div>\n      ) : showRows ? (\n        <>\n          <ul\n            ref={listRef}\n            aria-label={rowsName(label, items.length)}\n            aria-busy={loading || undefined}\n            data-slot=\"record-list-items\"\n            className=\"sprout-record-list-items\"\n            onKeyDown={move}\n          >\n            {items.map((item, index) => {\n              const shown = values?.(item).slice(0, recordListMaxValues) ?? [];\n              const badgeContent = badges?.(item);\n              const hasBadges = badgeContent != null && badgeContent !== false;\n              const actions = renderActions?.(item);\n              const valuesId = `${id}-${index}-values`;\n              const badgesId = `${id}-${index}-badges`;\n              const described = [shown.length > 0 && valuesId, hasBadges && badgesId].filter(Boolean).join(' ');\n              return (\n                <li\n                  key={item.id}\n                  data-record-list-row={item.id}\n                  tabIndex={item.id === current ? 0 : -1}\n                  aria-label={item.title}\n                  aria-describedby={described || undefined}\n                  data-slot=\"record-list-item\"\n                  data-openable={onItemOpen ? '' : undefined}\n                  className=\"sprout-record-list-item\"\n                  onFocus={event => {\n                    if (event.currentTarget.contains(event.target)) setActiveId(item.id);\n                  }}\n                  onClick={event => open(event, item)}\n                >\n                  <div data-slot=\"record-list-title\" className=\"sprout-record-list-title\" title={item.title}>\n                    {renderTitle ? renderTitle(item) : item.title}\n                  </div>\n                  {shown.length > 0 && (\n                    <dl id={valuesId} data-slot=\"record-list-values\" className=\"sprout-record-list-values\">\n                      {shown.map((entry, position) => (\n                        <div key={`${entry.label}-${position}`} className=\"sprout-record-list-value\">\n                          <dt>{entry.label}</dt>\n                          <dd title={hint(entry)}>{entry.value}</dd>\n                        </div>\n                      ))}\n                    </dl>\n                  )}\n                  {hasBadges && (\n                    <div id={badgesId} data-slot=\"record-list-badges\" className=\"sprout-record-list-badges\">\n                      {badgeContent}\n                    </div>\n                  )}\n                  {actions != null && actions !== false && (\n                    <div data-slot=\"record-list-actions\" className=\"sprout-record-list-actions\">\n                      {actions}\n                    </div>\n                  )}\n                </li>\n              );\n            })}\n          </ul>\n          <span role=\"status\" className=\"sprout-record-list-sr-only\">\n            {loading ? 'Loading rows…' : ''}\n          </span>\n        </>\n      ) : (\n        <div ref={stateRef} tabIndex={-1} data-slot=\"record-list-state\" className=\"sprout-record-list-state\">\n          {loading ? <SkeletonRows /> : emptyContent}\n        </div>\n      )}\n      {footer != null && footer !== false && (\n        <div data-slot=\"record-list-footer\" className=\"sprout-record-list-footer\">\n          {footer}\n        </div>\n      )}\n    </div>\n  );\n}\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/check-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/check-icon.tsx",
      "content": "import { Tick02Icon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const CheckIcon = /* @__PURE__ */ createIcon(glyph, 'CheckIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/create-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/create-icon.tsx",
      "content": "import { HugeiconsIcon, type IconSvgElement } from '@hugeicons/react';\nimport type { ReactElement, Ref, SVGProps } from 'react';\n\nexport const iconSizes = {\n  xs: 12,\n  sm: 14,\n  md: 16,\n  lg: 18,\n  xl: 20,\n  '2xl': 24,\n} as const;\n\nexport type IconSize = keyof typeof iconSizes;\n\nexport const iconStrokeWidth = 1.5;\n\nexport type IconProps = Omit<SVGProps<SVGSVGElement>, 'ref'> & {\n  size?: IconSize | number;\n  ref?: Ref<SVGSVGElement>;\n};\n\nexport type IconComponent = (props: IconProps) => ReactElement;\n\nexport function createIcon(glyph: IconSvgElement, name: string): IconComponent {\n  const Icon = ({ size = '2xl', strokeWidth = iconStrokeWidth, ...props }: IconProps) => (\n    <HugeiconsIcon\n      icon={glyph}\n      size={typeof size === 'number' ? size : iconSizes[size]}\n      strokeWidth={Number(strokeWidth)}\n      {...props}\n    />\n  );\n  Icon.displayName = name;\n  return Icon;\n}\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/inbox-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/inbox-icon.tsx",
      "content": "import { InboxIcon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const InboxIcon = /* @__PURE__ */ createIcon(glyph, 'InboxIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/warning-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/warning-icon.tsx",
      "content": "import { Alert02Icon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const WarningIcon = /* @__PURE__ */ createIcon(glyph, 'WarningIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/state-panel-core.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/state-panel-core.tsx",
      "content": "import type { ComponentType, HTMLAttributes, ReactNode } from 'react';\nimport { CheckIcon } from '@/lib/sprout/icons/check-icon';\nimport { InboxIcon } from '@/lib/sprout/icons/inbox-icon';\nimport { WarningIcon } from '@/lib/sprout/icons/warning-icon';\nimport { cn } from '@/lib/sprout/classes';\nimport { Spinner } from '@/components/ui/spinner';\n\nexport const statePanelKindNames = ['empty', 'loading', 'success', 'unavailable', 'error'] as const;\n\nexport type StatePanelKind = (typeof statePanelKindNames)[number];\nexport type StatePanelHeading = 'h1' | 'h2' | 'h3' | 'h4';\nexport type StatePanelIcon = ComponentType<{ size?: number }>;\n\ninterface StatePanelBaseProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'children' | 'role'> {\n  title: ReactNode;\n  description: ReactNode;\n  heading?: StatePanelHeading | undefined;\n  icon?: StatePanelIcon | null | undefined;\n  children?: ReactNode;\n}\n\nexport type StatePanelProps = StatePanelBaseProps &\n  (\n    | {\n        kind: 'empty';\n        sample?: ReactNode;\n      }\n    | {\n        kind: 'loading' | 'success' | 'unavailable';\n        sample?: never;\n      }\n    | {\n        kind: 'error';\n        children: ReactNode;\n        sample?: never;\n      }\n  );\n\nconst roles: Partial<Record<StatePanelKind, 'alert' | 'status'>> = {\n  error: 'alert',\n  loading: 'status',\n  success: 'status',\n};\n\nfunction Media({ kind, Icon }: { kind: StatePanelKind; Icon: StatePanelIcon }) {\n  return (\n    <div data-slot=\"state-panel-media\" className=\"sprout-state-panel-media\" aria-hidden=\"true\">\n      {kind === 'loading' ? (\n        <Spinner aria-hidden=\"true\" />\n      ) : kind === 'success' ? (\n        <CheckIcon size=\"xl\" />\n      ) : kind === 'error' ? (\n        <WarningIcon size=\"xl\" className=\"sprout-state-panel-danger\" />\n      ) : (\n        <Icon size={20} />\n      )}\n    </div>\n  );\n}\n\nexport function StatePanel({\n  kind,\n  title,\n  description,\n  heading: Heading = 'h2',\n  icon = InboxIcon,\n  children,\n  sample,\n  className,\n  ...props\n}: StatePanelProps) {\n  const media =\n    icon === null && (kind === 'empty' || kind === 'unavailable') ? null : (\n      <Media kind={kind} Icon={icon ?? InboxIcon} />\n    );\n  const hasActions = children !== undefined && children !== null && children !== false;\n\n  if (sample)\n    return (\n      <section\n        data-slot=\"state-panel\"\n        data-kind={kind}\n        data-layout=\"sample\"\n        {...props}\n        className={cn('sprout-state-panel', className)}\n      >\n        <div className=\"sprout-state-panel-card\">\n          <div className=\"sprout-state-panel-copy\">\n            {media}\n            <div className=\"sprout-state-panel-text\">\n              <Heading className=\"sprout-state-panel-title\">{title}</Heading>\n              <p className=\"sprout-state-panel-description\">{description}</p>\n            </div>\n            {hasActions && (\n              <div data-slot=\"state-panel-actions\" className=\"sprout-state-panel-actions\">\n                {children}\n              </div>\n            )}\n          </div>\n          <div data-slot=\"state-panel-sample\" className=\"sprout-state-panel-sample\" aria-hidden=\"true\" inert>\n            <div className=\"sprout-state-panel-sample-window\">{sample}</div>\n          </div>\n        </div>\n      </section>\n    );\n\n  return (\n    <div\n      data-slot=\"state-panel\"\n      data-kind={kind}\n      data-layout=\"centered\"\n      {...props}\n      className={cn('sprout-state-panel', className)}\n    >\n      {media}\n      <div role={roles[kind]} aria-atomic=\"true\" className=\"sprout-state-panel-text\">\n        <Heading className=\"sprout-state-panel-title\">{title}</Heading>\n        <p className=\"sprout-state-panel-description\">{description}</p>\n      </div>\n      {hasActions && (\n        <div data-slot=\"state-panel-actions\" className=\"sprout-state-panel-actions\">\n          {children}\n        </div>\n      )}\n    </div>\n  );\n}\n"
    }
  ],
  "css": {
    "@layer components": {
      ".sprout-record-list": {
        "--sprout-record-list-pad-y": ".75rem",
        "--sprout-record-list-pad-x": "1rem",
        "box-sizing": "border-box",
        "border": "1px solid var(--sprout-line)",
        "border-radius": "var(--sprout-radius-panel)",
        "background": "var(--sprout-surface)",
        "min-width": "0",
        "color": "var(--sprout-text)",
        "font-family": "var(--sprout-font)",
        "font-size": "var(--sprout-text-sm)",
        "flex-direction": "column",
        "line-height": "1.25rem",
        "display": "flex",
        "overflow": "hidden",
        "container-type": "inline-size"
      },
      ".sprout-record-list[data-density=\"sm\"]": {
        "--sprout-record-list-pad-y": ".5rem",
        "--sprout-record-list-pad-x": ".75rem"
      },
      ".sprout-record-list-items": {
        "margin": "0",
        "padding": "0",
        "list-style": "none"
      },
      ".sprout-record-list-items[aria-busy=\"true\"]": {
        "opacity": ".55"
      },
      ".sprout-record-list-item": {
        "min-height": "2.75rem",
        "padding": "var(--sprout-record-list-pad-y) var(--sprout-record-list-pad-x)",
        "border-bottom": "1px solid var(--sprout-line)",
        "outline": "none",
        "grid-template-columns": "minmax(0, 1fr) auto auto",
        "grid-template-areas": "\"title badges actions\"\n                         \"values badges actions\"",
        "align-items": "center",
        "column-gap": ".75rem",
        "display": "grid"
      },
      ".sprout-record-list-item:last-child": {
        "border-bottom": "0"
      },
      ".sprout-record-list-item[data-openable]": {
        "cursor": "pointer"
      },
      "@media (hover: hover)": {
        ".sprout-record-list-item:hover": {
          "background-color": "var(--sprout-hover)"
        }
      },
      ".sprout-record-list-item:has([aria-expanded=\"true\"]), .sprout-record-list-item:has(:focus-visible)": {
        "background-color": "var(--sprout-hover)"
      },
      ".sprout-record-list-item:focus-visible": {
        "background-color": "var(--sprout-hover)",
        "outline": "var(--sprout-focus-width) solid var(--sprout-focus-ring)",
        "outline-offset": "calc(var(--sprout-focus-width) * -1)",
        "border-radius": "2px"
      },
      ".sprout-record-list-title": {
        "text-overflow": "ellipsis",
        "white-space": "nowrap",
        "grid-area": "title",
        "min-width": "0",
        "font-weight": "500",
        "overflow": "hidden"
      },
      ".sprout-record-list-values": {
        "min-width": "0",
        "font-size": "var(--sprout-text-xs)",
        "font-variant-numeric": "tabular-nums",
        "flex-wrap": "wrap",
        "grid-area": "values",
        "gap": ".25rem 1rem",
        "margin": ".25rem 0 0",
        "line-height": "1rem",
        "display": "flex"
      },
      ".sprout-record-list-value": {
        "align-items": "baseline",
        "gap": ".375rem",
        "min-width": "0",
        "max-width": "16rem",
        "display": "flex"
      },
      ".sprout-record-list-value > dt": {
        "color": "var(--sprout-muted)",
        "flex-shrink": "0"
      },
      ".sprout-record-list-value > dd": {
        "min-width": "0",
        "color": "var(--sprout-text)",
        "text-overflow": "ellipsis",
        "white-space": "nowrap",
        "margin": "0",
        "font-weight": "500",
        "overflow": "hidden"
      },
      ".sprout-record-list-badges": {
        "flex-wrap": "wrap",
        "grid-area": "badges",
        "justify-content": "flex-end",
        "align-items": "center",
        "gap": ".25rem",
        "min-width": "0",
        "max-width": "18rem",
        "display": "flex"
      },
      ".sprout-record-list-actions": {
        "grid-area": "actions",
        "align-items": "center",
        "gap": ".25rem",
        "margin-inline-end": "-.25rem",
        "display": "flex"
      },
      "@container (width <= 40rem)": {
        ".sprout-record-list-item": {
          "grid-template-columns": "minmax(0, 1fr) auto",
          "grid-template-areas": "\"title actions\"\n                           \"values values\"\n                           \"badges badges\"",
          "align-items": "start"
        },
        ".sprout-record-list-title": {
          "-webkit-line-clamp": "2",
          "white-space": "normal",
          "overflow-wrap": "anywhere",
          "-webkit-box-orient": "vertical",
          "align-self": "center",
          "display": "-webkit-box"
        },
        ".sprout-record-list-badges": {
          "justify-content": "flex-start",
          "max-width": "none",
          "margin-top": ".5rem"
        },
        ".sprout-record-list-value": {
          "max-width": "100%"
        }
      },
      ".sprout-record-list-state": {
        "outline": "none",
        "min-width": "0"
      },
      ".sprout-record-list-empty-text": {
        "padding": "1.5rem var(--sprout-record-list-pad-x)",
        "color": "var(--sprout-muted)",
        "text-align": "center",
        "margin": "0"
      },
      ".sprout-record-list-skeleton": {
        "gap": "0"
      },
      ".sprout-record-list-skeleton-row": {
        "padding": "var(--sprout-record-list-pad-y) var(--sprout-record-list-pad-x)",
        "border-bottom": "1px solid var(--sprout-line)",
        "align-items": "center",
        "gap": ".75rem",
        "display": "flex"
      },
      ".sprout-record-list-skeleton-row:last-of-type": {
        "border-bottom": "0"
      },
      ".sprout-record-list-skeleton-main": {
        "flex": "1",
        "gap": ".5rem",
        "min-width": "0",
        "display": "grid"
      },
      ".sprout-record-list .sprout-record-list-skeleton-title": {
        "width": "min(40%, 16rem)",
        "height": "14px"
      },
      ".sprout-record-list .sprout-record-list-skeleton-values": {
        "width": "min(70%, 28rem)",
        "height": "10px"
      },
      ".sprout-record-list-footer": {
        "min-width": "0",
        "padding": ".5rem var(--sprout-record-list-pad-x)",
        "border-top": "1px solid var(--sprout-line)",
        "justify-content": "center",
        "display": "flex"
      },
      ".sprout-record-list-footer > *": {
        "margin-inline": "0"
      },
      ".sprout-record-list-sr-only": {
        "clip-path": "inset(50%)",
        "white-space": "nowrap",
        "width": "1px",
        "height": "1px",
        "position": "absolute",
        "overflow": "hidden"
      },
      "@media (prefers-reduced-motion: no-preference)": {
        ".sprout-record-list-item": {
          "transition": "background-color var(--sprout-motion-fast) var(--sprout-motion-ease)"
        },
        ".sprout-record-list-items": {
          "transition": "opacity var(--sprout-motion-normal) var(--sprout-motion-ease)"
        },
        ".sprout-record-list-state, .sprout-record-list-item": {
          "animation": "sprout-record-list-in var(--sprout-motion-normal) var(--sprout-motion-ease)"
        }
      },
      "@keyframes sprout-record-list-in": {
        "from": {
          "opacity": ".4"
        }
      },
      "@media (forced-colors: active)": {
        ".sprout-record-list, .sprout-record-list-item, .sprout-record-list-footer": {
          "border-color": "canvastext"
        },
        ".sprout-record-list-item:focus-visible": {
          "outline-color": "highlight"
        }
      },
      ".sprout-state-panel": {
        "font-family": "var(--sprout-font)",
        "color": "var(--sprout-text)",
        "overflow-wrap": "anywhere",
        "animation": "sprout-state-panel-in var(--sprout-motion-normal, .18s) var(--sprout-motion-ease, ease) both"
      },
      ".sprout-state-panel[data-layout=\"centered\"]": {
        "text-align": "center",
        "flex-direction": "column",
        "align-items": "center",
        "gap": "1.5rem",
        "width": "100%",
        "max-width": "28rem",
        "margin-inline": "auto",
        "padding": "3rem 1.5rem",
        "display": "flex"
      },
      ".sprout-state-panel-media": {
        "border": "1px solid var(--sprout-line)",
        "background": "var(--sprout-surface)",
        "width": "2.5rem",
        "height": "2.5rem",
        "color": "var(--sprout-text)",
        "box-shadow": "var(--sprout-shadow-control)",
        "border-radius": ".5rem",
        "flex-shrink": "0",
        "justify-content": "center",
        "align-items": "center",
        "display": "flex"
      },
      ".sprout-state-panel-media > svg": {
        "flex-shrink": "0"
      },
      ".sprout-state-panel-danger": {
        "color": "var(--sprout-danger)"
      },
      ".sprout-state-panel-text": {
        "gap": ".5rem",
        "width": "100%",
        "display": "grid"
      },
      ".sprout-state-panel-title": {
        "font-size": "var(--sprout-text-base)",
        "letter-spacing": "normal",
        "color": "var(--sprout-text)",
        "margin": "0",
        "font-weight": "500",
        "line-height": "1.5"
      },
      ".sprout-state-panel-description": {
        "font-size": "var(--sprout-text-sm)",
        "color": "var(--sprout-muted)",
        "margin": "0",
        "line-height": "1.5"
      },
      ".sprout-state-panel-actions": {
        "width": "100%",
        "font-size": "var(--sprout-text-sm)",
        "color": "var(--sprout-muted)",
        "flex-direction": "column",
        "align-items": "center",
        "gap": ".75rem",
        "display": "flex"
      },
      ".sprout-state-panel-actions:empty": {
        "display": "none"
      },
      ".sprout-state-panel[data-layout=\"sample\"]": {
        "width": "100%",
        "container-type": "inline-size"
      },
      ".sprout-state-panel-card": {
        "border": "1px solid var(--sprout-line)",
        "border-radius": "var(--sprout-radius-panel)",
        "background": "var(--sprout-surface)",
        "box-shadow": "var(--sprout-shadow-control)",
        "display": "grid",
        "overflow": "hidden"
      },
      ".sprout-state-panel-copy": {
        "flex-direction": "column",
        "justify-content": "center",
        "align-items": "flex-start",
        "gap": "1.5rem",
        "min-width": "0",
        "padding": "1.5rem",
        "display": "flex"
      },
      "[data-layout=\"sample\"] .sprout-state-panel-text": {
        "max-width": "28rem"
      },
      "[data-layout=\"sample\"] .sprout-state-panel-title": {
        "font-size": "1.25rem",
        "line-height": "1.4"
      },
      "[data-layout=\"sample\"] .sprout-state-panel-description": {
        "font-size": "var(--sprout-text-base)"
      },
      "[data-layout=\"sample\"] .sprout-state-panel-actions": {
        "align-items": "stretch",
        "gap": ".5rem"
      },
      ".sprout-state-panel-sample": {
        "border-top": "1px solid var(--sprout-line)",
        "background": "var(--sprout-canvas)",
        "min-height": "15rem",
        "display": "none",
        "position": "relative",
        "overflow": "hidden"
      },
      ".sprout-state-panel-sample-window": {
        "border-top": "1px solid var(--sprout-line)",
        "border-left": "1px solid var(--sprout-line)",
        "border-top-left-radius": "var(--sprout-radius-panel)",
        "background": "var(--sprout-surface)",
        "box-shadow": "var(--sprout-shadow-panel)",
        "position": "absolute",
        "inset": "1.5rem 0 0 1.5rem",
        "overflow": "hidden",
        "mask-image": "linear-gradient(oklch(0% 0 0) 60%, #0000 100%)"
      },
      "@container (width >= 24rem)": {
        "[data-layout=\"sample\"] .sprout-state-panel-actions": {
          "flex-flow": "wrap",
          "align-items": "center",
          "width": "auto"
        }
      },
      "@container (width >= 28rem)": {
        ".sprout-state-panel-sample": {
          "display": "block"
        }
      },
      "@container (width >= 32rem)": {
        ".sprout-state-panel-copy": {
          "padding": "2.5rem"
        }
      },
      "@container (width >= 48rem)": {
        ".sprout-state-panel-card": {
          "grid-template-columns": "minmax(0, 5fr) minmax(0, 6fr)"
        },
        ".sprout-state-panel-copy": {
          "padding-block": "3.5rem"
        },
        ".sprout-state-panel-sample": {
          "border-top": "0",
          "border-left": "1px solid var(--sprout-line)",
          "min-height": "22rem"
        }
      },
      "@media (prefers-reduced-motion: reduce)": {
        ".sprout-state-panel": {
          "animation-name": "sprout-state-panel-fade"
        }
      },
      "@keyframes sprout-state-panel-fade": {
        "from": {
          "opacity": "0"
        }
      },
      "@keyframes sprout-state-panel-in": {
        "from": {
          "opacity": "0",
          "transform": "translateY(4px)"
        }
      }
    }
  },
  "docs": "Docs and examples: https://sprout.tulipfarm.ai/components/record-list/",
  "meta": {
    "source": "packages/sprout/src/components/record-list.tsx"
  }
}
