style: restrict type import (#1589)

This commit is contained in:
Himself65
2023-03-15 11:58:43 -05:00
committed by GitHub
parent 6ab2f83e13
commit efcf1fcaa0
154 changed files with 332 additions and 307 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { Children, HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
import type { HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
import { Children } from 'react';
import { StyledTable } from './styles';
const childrenHasEllipsis = (children: ReactNode | ReactNode[]): boolean => {
@@ -1,4 +1,4 @@
import { HTMLAttributes, PropsWithChildren } from 'react';
import type { HTMLAttributes, PropsWithChildren } from 'react';
import { StyledTableBody } from './styles';
export const TableBody = ({
@@ -1,4 +1,4 @@
import { TableCellProps } from './interface';
import type { TableCellProps } from './interface';
import { StyledTableCell } from './styles';
export const TableCell = ({ children, ...props }: TableCellProps) => {
return <StyledTableCell {...props}>{children}</StyledTableCell>;
@@ -1,4 +1,4 @@
import { HTMLAttributes, PropsWithChildren } from 'react';
import type { HTMLAttributes, PropsWithChildren } from 'react';
import { StyledTableHead } from './styles';
+1 -1
View File
@@ -1,4 +1,4 @@
import { HTMLAttributes, PropsWithChildren } from 'react';
import type { HTMLAttributes, PropsWithChildren } from 'react';
import { StyledTableRow } from './styles';
export const TableRow = ({
+1 -1
View File
@@ -1,4 +1,4 @@
import { CSSProperties, HTMLAttributes, PropsWithChildren } from 'react';
import type { CSSProperties, HTMLAttributes, PropsWithChildren } from 'react';
export type TableCellProps = {
align?: 'left' | 'right' | 'center';
+1 -1
View File
@@ -1,5 +1,5 @@
import { styled, textEllipsis } from '../../styles';
import { TableCellProps } from './interface';
import type { TableCellProps } from './interface';
export const StyledTable = styled('table')<{ tableLayout: 'auto' | 'fixed' }>(
({ theme, tableLayout }) => {