{"version":3,"file":"BulkActionRow.cjs","sources":["../../../src/components/Table/BulkActionRow.tsx"],"sourcesContent":["'use client'\n\nimport { type ComponentPropsWithRef, type FC, type PropsWithChildren, useMemo } from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { useTableHeadCellCount } from './useTableHeadCellCount'\n\nconst classNameGenerator = tv({\n  slots: {\n    wrapper: 'smarthr-ui-BulkActionRow',\n    cell: [\n      'shr-bg-action-background shr-p-1 shr-text-base',\n      'forced-colors:shr-border-t-shorthand',\n    ],\n  },\n})\n\nexport const BulkActionRow: FC<PropsWithChildren<ComponentPropsWithRef<'tr'>>> = ({\n  children,\n  className,\n  ...rest\n}) => {\n  const { countHeadCellRef, count } = useTableHeadCellCount<HTMLTableRowElement>()\n\n  const classNames = useMemo(() => {\n    const { wrapper, cell } = classNameGenerator()\n\n    return {\n      wrapper: wrapper({ className }),\n      cell: cell(),\n    }\n  }, [className])\n\n  return (\n    <tr {...rest} ref={countHeadCellRef} className={classNames.wrapper}>\n      <td colSpan={count} className={classNames.cell}>\n        {children}\n      </td>\n    </tr>\n  )\n}\n"],"names":[],"mappings":";;;;;;;;AAOA;AACE;AACE;AACA;;;AAGC;AACF;AACF;AAEM;;AAOL;;;AAII;;;AAGJ;AAEA;AAOF;;"}