Update common components

This commit is contained in:
Bill 2022-02-08 22:25:01 -05:00
parent 52810938df
commit 0b5291b1a0
11 changed files with 34 additions and 16 deletions

View File

@ -1,7 +1,5 @@
import { CSSProperties, DetailedHTMLProps, FC, HTMLAttributes, LegacyRef, useMemo } from 'react';
import { ColorVariantType } from './types/ColorVariantType';
import { OverflowType } from './types/OverflowType';
import { PositionType } from './types/PositionType';
import { ColorVariantType, OverflowType, PositionType } from './types';
export interface BaseProps<T = HTMLElement> extends DetailedHTMLProps<HTMLAttributes<T>, T>
{

View File

@ -1,7 +1,6 @@
import { FC, useMemo } from 'react';
import { Flex, FlexProps } from './Flex';
import { ButtonSizeType } from './types/ButtonSizeType';
import { ColorVariantType } from './types/ColorVariantType';
import { ButtonSizeType, ColorVariantType } from './types';
export interface ButtonProps extends FlexProps
{

View File

@ -1,7 +1,7 @@
import { FC, useMemo } from 'react';
import { useGridContext } from './context/GridContext';
import { Flex, FlexProps } from './Flex';
import { ColumnSizesType } from './types/ColumnSizesType';
import { useGridContext } from './GridContext';
import { ColumnSizesType } from './types';
export interface ColumnProps extends FlexProps
{

View File

@ -1,9 +1,6 @@
import { FC, useMemo } from 'react';
import { Base, BaseProps } from './Base';
import { AlignItemType } from './types/AlignItemType';
import { AlignSelfType } from './types/AlignSelfType';
import { JustifyContentType } from './types/JustifyContentType';
import { SpacingType } from './types/SpacingType';
import { AlignItemType, AlignSelfType, JustifyContentType, SpacingType } from './types';
export interface FlexProps extends BaseProps<HTMLDivElement>
{

View File

@ -1,7 +1,7 @@
import { CSSProperties, FC, useMemo } from 'react';
import { Base, BaseProps } from './Base';
import { GridContextProvider } from './context/GridContext';
import { SpacingType } from './types/SpacingType';
import { GridContextProvider } from './GridContext';
import { SpacingType } from './types';
export interface GridProps extends BaseProps<HTMLDivElement>
{

View File

@ -1,8 +1,6 @@
import { FC, useMemo } from 'react';
import { Base, BaseProps } from './Base';
import { ColorVariantType } from './types/ColorVariantType';
import { FontSizeType } from './types/FontSizeType';
import { FontWeightType } from './types/FontWeightType';
import { ColorVariantType, FontSizeType, FontWeightType } from './types';
export interface TextProps extends BaseProps<HTMLDivElement>
{

12
src/common/index.ts Normal file
View File

@ -0,0 +1,12 @@
export * from './Base';
export * from './Button';
export * from './ButtonGroup';
export * from './Column';
export * from './Flex';
export * from './FormGroup';
export * from './Grid';
export * from './GridContext';
export * from './layout';
export * from './Text';
export * from './types';
export * from './utils';

View File

@ -0,0 +1,2 @@
export * from './LayoutGridItem';
export * from './LayoutImage';

11
src/common/types/index.ts Normal file
View File

@ -0,0 +1,11 @@
export * from './AlignItemType';
export * from './AlignSelfType';
export * from './ButtonSizeType';
export * from './ColorVariantType';
export * from './ColumnSizesType';
export * from './FontSizeType';
export * from './FontWeightType';
export * from './JustifyContentType';
export * from './OverflowType';
export * from './PositionType';
export * from './SpacingType';

View File

@ -0,0 +1 @@
export * from './CreateTransitionToIcon';