Skip to content

Commit

Permalink
refactor: fixed tokens and input component
Browse files Browse the repository at this point in the history
  • Loading branch information
Raalzz committed Oct 18, 2023
1 parent 479aa41 commit 6a25728
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 81 deletions.
6 changes: 3 additions & 3 deletions packages/react/src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import {
inputWrapperClass,
iconWrapper,
leftIconWrapper,
rightIconWrapper
rightIconWrapper,
lightColors
} from "@hover-design/core";
import { Flex } from "../Flex";
import { assignInlineVars } from "@vanilla-extract/dynamic";
import { lightColors } from "../../styles/tokens";

const Input: ForwardRefRenderFunction<HTMLInputElement, InputProps> = (
{
Expand Down Expand Up @@ -50,7 +50,7 @@ const Input: ForwardRefRenderFunction<HTMLInputElement, InputProps> = (
}),
...style
}}
className={`${inputClass} ${inputThemeClass} ${className || ""}`}
className={`${inputClass} ${inputThemeClass} ${className ?? ""}`}
{...props}
/>
{Icon && iconPosition === "right" && (
Expand Down
12 changes: 0 additions & 12 deletions packages/react/src/components/Input/input.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,3 @@ export interface InputProps
iconPosition?: "left" | "right";
Icon?: React.ReactNode;
}
export type IInputTheme = [
string,
{
borderColor: string;
padding: {
top: string;
right: string;
bottom: string;
left: string;
};
}
];
4 changes: 0 additions & 4 deletions packages/react/src/styles/tokens/breakpoints.ts

This file was deleted.

36 changes: 0 additions & 36 deletions packages/react/src/styles/tokens/colors.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/react/src/styles/tokens/index.ts

This file was deleted.

22 changes: 0 additions & 22 deletions packages/react/src/styles/tokens/typography.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"noEmit": false,
"jsx": "react-jsx"
},
"include": ["./src"]
"include": ["./src", "../core/src/styles/tokens"]
}
2 changes: 2 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a25728

Please sign in to comment.