{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "z-action-row",
  "title": "Z Action Row",
  "dependencies": [],
  "devDependencies": [],
  "registryDependencies": [
    "https://ui.orchid.ai/r/orchid-foundation.json",
    "https://ui.orchid.ai/r/orchid-theme.json"
  ],
  "files": [
    {
      "path": "registry/ui/orchid/spectrum/molecules/z-action-row/z-action-row.tsx",
      "content": "\"use client\";\nimport type { HeroIcon } from \"../../../lib/types\";\nimport { cn } from \"../../../lib/ui-utils\";\nimport type { CSSProperties, ElementType, ReactNode } from 'react';\nconst ACTION_ROW_TEXT_LINE_CLASSES = {\n    1: 'line-clamp-1',\n    2: 'line-clamp-2',\n} as const;\nconst ACTION_ROW_TEXT_DESKTOP_LINE_CLASSES = {\n    1: 'sm:line-clamp-1',\n    2: 'sm:line-clamp-2',\n} as const;\nexport type ActionRowProps = {\n    left?: ReactNode;\n    right?: ReactNode;\n    icon?: HeroIcon;\n    iconClassName?: string;\n    iconTitle?: string;\n    className?: string;\n    style?: CSSProperties;\n    hasPadding?: boolean;\n};\nexport type ActionRowTextProps = {\n    as?: ElementType;\n    children: ReactNode;\n    className?: string;\n    lines?: 1 | 2;\n    mobileLines?: 1 | 2;\n};\nexport default function ZActionRow({ left, right, icon: Icon, iconClassName, iconTitle, className, style, hasPadding = false, }: ActionRowProps) {\n    return (<div className={cn('flex items-center gap-3 px-1 py-1', className)} style={style}>\n      <div className={cn('relative flex min-w-0 flex-1 items-center gap-1.5 select-none', hasPadding ? 'px-1.5' : '')}>\n        {Icon && <Icon className={cn('text-neutral size-4 min-w-4 shrink-0', iconClassName)} title={iconTitle}/>}\n        {left && <div className=\"flex min-w-0 flex-1 flex-row items-center gap-1\">{left}</div>}\n      </div>\n      {right && <div className=\"flex shrink-0 items-center gap-1\">{right}</div>}\n    </div>);\n}\nexport function ZActionRowText({ as: Component = 'span', children, className, lines = 1, mobileLines, }: ActionRowTextProps) {\n    return (<Component className={cn('min-w-0 break-words', mobileLines ? ACTION_ROW_TEXT_LINE_CLASSES[mobileLines] : ACTION_ROW_TEXT_LINE_CLASSES[lines], mobileLines ? ACTION_ROW_TEXT_DESKTOP_LINE_CLASSES[lines] : '', className)}>\n      {children}\n    </Component>);\n}\n",
      "type": "registry:ui",
      "target": "@ui/orchid/spectrum/molecules/z-action-row/z-action-row.tsx"
    }
  ],
  "type": "registry:ui"
}