Skip to content

Commit 7bd254b

Browse files
committed
Feat: v1_complate
1 parent fe65bb7 commit 7bd254b

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

src/basic-ui/miniBox.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export const MiniBox = ({
3838
...props
3939
}: MiniBoxProps) => {
4040
const animation: Variants = mergeVariants(uiMotion, uiHover);
41-
const baseStyle = `${uiSizeStyle[uiSize]} ${uiStyle[ui]}`;
4241

4342
return (
4443
<fk.div
@@ -47,10 +46,10 @@ export const MiniBox = ({
4746
whileHover={animation ? "whileHover" : undefined}
4847
whileInView={animation ? "visible" : undefined}
4948
viewport={viewport}
50-
className={`${baseStyle} ${className}`}
49+
className={`${uiSizeStyle[uiSize]} ${uiStyle[ui]} ${className}`}
5150
{...props}
5251
>
5352
{children}
5453
</fk.div>
5554
);
56-
}
55+
};

src/basic-ui/miniButton.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export const MiniButton = ({
4040
...props
4141
}: ButtonProps) => {
4242
const animation: Variants = mergeVariants(uiMotion, uiHover);
43-
const baseStyle = `${uiSizeStyle[uiSize]} ${uiStyle[ui]} font-semibold`;
4443

4544
return (
4645
<fk.button
@@ -49,7 +48,7 @@ export const MiniButton = ({
4948
whileHover={animation ? "whileHover" : undefined}
5049
whileInView={animation ? "visible" : undefined}
5150
viewport={viewport}
52-
className={`${baseStyle} ${className}`}
51+
className={`${uiSizeStyle[uiSize]} ${uiStyle[ui]} ${className}`}
5352
{...props}
5453
>
5554
{children}

src/basic-ui/miniInput.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export const MiniInput = ({
3838
...props
3939
}: InputProps) => {
4040
const animation: Variants = mergeVariants(motion, hover);
41-
const baseStyle = "";
4241

4342
return (
4443
<div>
@@ -53,7 +52,7 @@ export const MiniInput = ({
5352
whileHover={animation ? "whileHover" : undefined}
5453
whileInView={animation ? "visible" : undefined}
5554
viewport={viewport}
56-
className={`${baseStyle} ${uiStyle[ui]} ${uiSizeStyle[uiSize]} ${className}`}
55+
className={`${uiStyle[ui]} ${uiSizeStyle[uiSize]} ${className}`}
5756
{...props}
5857
/>
5958
</div>

src/basic-ui/miniTextarea.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export const MiniTextarea = ({
3838
...props
3939
}: InputProps) => {
4040
const animation: Variants = mergeVariants(motion, hover);
41-
const baseStyle = "";
4241

4342
return (
4443
<div>
@@ -53,7 +52,7 @@ export const MiniTextarea = ({
5352
whileHover={animation ? "whileHover" : undefined}
5453
whileInView={animation ? "visible" : undefined}
5554
viewport={viewport}
56-
className={`${baseStyle} ${uiStyle[ui]} ${uiSizeStyle[uiSize]} ${className}`}
55+
className={`${uiStyle[ui]} ${uiSizeStyle[uiSize]} ${className}`}
5756
{...props}
5857
/>
5958
</div>

0 commit comments

Comments
 (0)