{"version":3,"file":"cell.cjs","sources":["../../../components/menu/cell.tsx"],"sourcesContent":["import { cx } from 'class-variance-authority';\nimport { ComponentProps, ReactNode } from 'react';\nimport styles from './cell.module.css';\n\nexport type CellBaseProps = {\n  leadingIcon?: ReactNode;\n  trailingIcon?: ReactNode;\n};\nexport type CellProps = ComponentProps<'div'> &\n  CellBaseProps & {\n    type?: 'select' | 'item';\n  };\n\nexport function Cell({\n  className,\n  children,\n  leadingIcon,\n  trailingIcon,\n  type = 'item',\n  ...props\n}: CellProps) {\n  return (\n    <div {...props} className={cx(styles.cell, className)}>\n      {leadingIcon && (\n        <span data-slot='menu-cell-leading-icon' className={styles.leadingIcon}>\n          {leadingIcon}\n        </span>\n      )}\n      {children}\n      {trailingIcon && (\n        <span\n          data-slot='menu-cell-trailing-icon'\n          className={styles.trailingIcon}\n        >\n          {trailingIcon}\n        </span>\n      )}\n    </div>\n  );\n}\nCell.displayName = 'Menu.Cell';\n"],"names":["_jsxs","cx","styles","_jsx"],"mappings":";;;;;;SAagB,IAAI,CAAC,EACnB,SAAS,EACT,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,IAAI,GAAG,MAAM,EACb,GAAG,KAAK,EACE,EAAA;IACV,QACEA,4BAAS,KAAK,EAAE,SAAS,EAAEC,yBAAE,CAACC,mBAAM,CAAC,IAAI,EAAE,SAAS,CAAC,EAClD,QAAA,EAAA,CAAA,WAAW,KACVC,sCAAgB,wBAAwB,EAAC,SAAS,EAAED,mBAAM,CAAC,WAAW,EACnE,QAAA,EAAA,WAAW,GACP,CACR,EACA,QAAQ,EACR,YAAY,KACXC,cACY,CAAA,MAAA,EAAA,EAAA,WAAA,EAAA,yBAAyB,EACnC,SAAS,EAAED,mBAAM,CAAC,YAAY,EAAA,QAAA,EAE7B,YAAY,EACR,CAAA,CACR,CACG,EAAA,CAAA,EACN;AACJ,CAAC;AACD,IAAI,CAAC,WAAW,GAAG,WAAW;;;;"}