Skip to content

Commit

Permalink
type: export all base props type
Browse files Browse the repository at this point in the history
  • Loading branch information
shervinchen committed Nov 10, 2024
1 parent bdb8566 commit 256a53f
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion packages/Button/ButtonGroup.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Merge } from '../utils';

export type ButtonGroupVariant = 'default' | 'outline' | 'ghost';

interface BaseButtonGroupProps {
export interface BaseButtonGroupProps {
className?: string;
size?: ButtonSizes;
type?: ButtonTypes;
Expand Down
2 changes: 1 addition & 1 deletion packages/Checkbox/CheckboxGroup.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Merge } from '../utils';

export type CheckboxGroupValue = (CheckboxValue | undefined)[];

interface BaseCheckboxGroupProps {
export interface BaseCheckboxGroupProps {
defaultValue?: CheckboxGroupValue;
value?: CheckboxGroupValue;
disabled?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions packages/Grid/Grid.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ export enum Justifies {
export type Align = keyof typeof Aligns;
export type Justify = keyof typeof Justifies;

interface BaseGridProps {
export interface BaseGridProps {
gutter?: Gutter;
align?: ResponsiveValue<Align>;
justify?: ResponsiveValue<Justify>;
className?: string;
}

interface BaseGridColProps {
export interface BaseGridColProps {
offset?: ResponsiveValue<number>;
order?: ResponsiveValue<number>;
span?: ResponsiveValue<number>;
Expand Down
6 changes: 3 additions & 3 deletions packages/Input/Input.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type InputTypes = 'default' | 'primary' | 'warning' | 'error';

export type InputSizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';

interface BaseInputProps {
export interface BaseInputProps {
value?: string;
defaultValue?: string;
placeholder?: string;
Expand All @@ -22,11 +22,11 @@ interface BaseInputProps {
autoComplete?: string;
}

interface BaseInputAddonProps {
export interface BaseInputAddonProps {
className?: string;
}

interface BaseInputElementProps {
export interface BaseInputElementProps {
className?: string;
clickable?: boolean;
placement?: 'left' | 'right';
Expand Down
2 changes: 1 addition & 1 deletion packages/Input/InputGroup.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ComponentPropsWithoutRef } from 'react';
import { InputSizes, InputTypes } from './Input.types';
import { Merge } from '../utils';

interface BaseInputGroupProps {
export interface BaseInputGroupProps {
className?: string;
size?: InputSizes;
type?: InputTypes;
Expand Down
10 changes: 5 additions & 5 deletions packages/Layout/Layout.types.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import { ComponentPropsWithoutRef } from 'react';
import { Merge } from '../utils';

interface BaseLayoutProps {
export interface BaseLayoutProps {
className?: string;
}

interface BaseHeaderProps {
export interface BaseHeaderProps {
className?: string;
}

interface BaseContentProps {
export interface BaseContentProps {
className?: string;
}

interface BaseFooterProps {
export interface BaseFooterProps {
className?: string;
}

interface BaseSidebarProps {
export interface BaseSidebarProps {
className?: string;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/Modal/Modal.types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentPropsWithoutRef } from 'react';
import { Merge } from '../utils';

interface BaseModalProps {
export interface BaseModalProps {
visible?: boolean;
width?: string;
closeOnOverlayClick?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/Overlay/Overlay.types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentPropsWithoutRef, MouseEvent } from 'react';
import { Merge } from '../utils';

interface BaseOverlayProps {
export interface BaseOverlayProps {
visible?: boolean;
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/Pagination/Pagination.types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentPropsWithoutRef } from 'react';
import { Merge } from '../utils';

interface BasePaginationProps {
export interface BasePaginationProps {
page?: number;
defaultPage?: number;
count?: number;
Expand Down
2 changes: 1 addition & 1 deletion packages/Popover/Popover.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Merge } from '../utils';

export type PopoverPlacement = PopupPlacement;

interface BasePopoverProps {
export interface BasePopoverProps {
content: ReactNode;
value?: boolean;
defaultValue?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/Radio/RadioGroup.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ComponentPropsWithoutRef } from 'react';
import { RadioValue } from './Radio.types';
import { Merge } from '../utils';

interface BaseRadioGroupProps {
export interface BaseRadioGroupProps {
defaultValue?: RadioValue;
value?: RadioValue;
disabled?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/Select/SelectOption.types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentPropsWithoutRef } from 'react';
import { Merge } from '../utils';

interface BaseSelectOptionProps {
export interface BaseSelectOptionProps {
value?: string | number;
disabled?: boolean;
className?: string;
Expand Down
4 changes: 2 additions & 2 deletions packages/Tabs/Tabs.types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentPropsWithoutRef, ReactNode } from 'react';
import { Merge } from '../utils';

interface BaseTabsProps {
export interface BaseTabsProps {
value?: string;
defaultValue?: string;
className?: string;
Expand All @@ -10,7 +10,7 @@ interface BaseTabsProps {
onChange?: (value: string) => void;
}

interface BaseTabsItemProps {
export interface BaseTabsItemProps {
label: ReactNode;
value: string;
disabled?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/Tooltip/Tooltip.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Merge } from '../utils';

export type TooltipPlacement = PopupPlacement;

interface BaseTooltipProps {
export interface BaseTooltipProps {
content: ReactNode;
placement?: PopupPlacement;
hideArrow?: boolean;
Expand Down

0 comments on commit 256a53f

Please sign in to comment.