File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1- import React , { forwardRef , HTMLAttributes } from 'react'
1+ import React , { forwardRef , TableHTMLAttributes } from 'react'
22import PropTypes from 'prop-types'
33import classNames from 'classnames'
44
55import { Colors , colorPropType } from '../Types'
66
7- export interface CTableProps extends HTMLAttributes < HTMLTableElement > {
7+ export interface CTableProps extends TableHTMLAttributes < HTMLTableElement > {
88 /**
99 * Set the vertical aligment. [docs]
1010 */
Original file line number Diff line number Diff line change 1- import React , { forwardRef , HTMLAttributes } from 'react'
1+ import React , { forwardRef , TdHTMLAttributes } from 'react'
22import PropTypes from 'prop-types'
33import classNames from 'classnames'
44
55import { Colors , colorPropType } from '../Types'
66
7- export interface CTableDataCellProps extends HTMLAttributes < HTMLTableDataCellElement > {
7+ export interface CTableDataCellProps
8+ extends Omit < TdHTMLAttributes < HTMLTableDataCellElement > , 'align' > {
89 /**
910 * Highlight a table row or cell. [docs]
1011 */
Original file line number Diff line number Diff line change 1- import React , { forwardRef , HTMLAttributes } from 'react'
1+ import React , { forwardRef , ThHTMLAttributes } from 'react'
22import PropTypes from 'prop-types'
33import classNames from 'classnames'
44
55import { Colors , colorPropType } from '../Types'
66
7- export interface CTableHeaderCellProps extends HTMLAttributes < HTMLTableHeaderCellElement > {
7+ export interface CTableHeaderCellProps extends ThHTMLAttributes < HTMLTableHeaderCellElement > {
88 /**
99 * A string of all className you want applied to the component. [docs]
1010 */
You can’t perform that action at this time.
0 commit comments