Skip to content

Commit f571f77

Browse files
committed
feat: unify the type files into "types"
1 parent 5961642 commit f571f77

File tree

18 files changed

+14
-14
lines changed

18 files changed

+14
-14
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export { default as AspectRatio } from './source/AspectRatio';
2-
export type { AspectRatioProps } from './type';
2+
export type { AspectRatioProps } from './types';

packages/ui/src/components/aspect-ratio/source/AspectRatio.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Root } from '@radix-ui/react-aspect-ratio';
22
import { cn } from '@soybean-react-ui/variants';
33
import { forwardRef } from 'react';
44

5-
import type { AspectRatioProps } from '../type';
5+
import type { AspectRatioProps } from '../types';
66

77
const AspectRatio = forwardRef<React.ElementRef<typeof Root>, AspectRatioProps>((props, ref) => {
88
const { className, ...rest } = props;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export * from './source/Button';
22
export * from './source/ButtonGroup';
33

4-
export * from './type';
4+
export * from './types';

packages/ui/src/components/button/source/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { buttonVariants, cn } from '@soybean-react-ui/variants';
33
import { Loader2 } from 'lucide-react';
44
import { forwardRef } from 'react';
55

6-
import type { ButtonProps } from '../type';
6+
import type { ButtonProps } from '../types';
77

88
export const Button = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {
99
const {

packages/ui/src/components/button/source/ButtonGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { buttonGroupVariants, cn } from '@soybean-react-ui/variants';
22
import { forwardRef } from 'react';
33

4-
import type { ButtonGroupProps } from '../type';
4+
import type { ButtonGroupProps } from '../types';
55

66
export const ButtonGroup = forwardRef<HTMLDivElement, ButtonGroupProps>((props, ref) => {
77
const { children, className, orientation, ...rest } = props;

packages/ui/src/components/card/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ export * from './source/CardRoot';
66
export * from './source/CardTitle';
77
export * from './source/CardTitleRoot';
88

9-
export * from './type';
9+
export * from './types';

packages/ui/src/components/card/source/Card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { cardVariants, cn } from '@soybean-react-ui/variants';
22
import React, { isValidElement } from 'react';
33

44
import { If } from '../../if';
5-
import type { CardProps } from '../type';
5+
import type { CardProps } from '../types';
66

77
import { CardContent } from './CardContent';
88
import { CardFooter } from './CardFooter';

packages/ui/src/components/card/source/CardContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { cardVariants, cn } from '@soybean-react-ui/variants';
22
import React from 'react';
33

4-
import type { CardContentProps } from '../type';
4+
import type { CardContentProps } from '../types';
55

66
export const CardContent = React.forwardRef<HTMLDivElement, CardContentProps>((props, ref) => {
77
const { className, flexHeight, size, ...rest } = props;

0 commit comments

Comments
 (0)