diff --git a/package.json b/package.json index 9ec6148..b25e9e7 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "dependencies": { "@fontsource-variable/jetbrains-mono": "^5.1.1", "@monaco-editor/react": "^4.6.0", + "clsx": "^2.1.1", "framer-motion": "^11.11.10", "normalize.css": "^8.0.1", "react": "^18.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f67c85f..88a04db 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@monaco-editor/react': specifier: ^4.6.0 version: 4.6.0(monaco-editor@0.52.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + clsx: + specifier: ^2.1.1 + version: 2.1.1 framer-motion: specifier: ^11.11.10 version: 11.11.10(@emotion/is-prop-valid@1.2.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -702,6 +705,10 @@ packages: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -1859,6 +1866,8 @@ snapshots: ansi-styles: 4.3.0 supports-color: 7.2.0 + clsx@2.1.1: {} + color-convert@2.0.1: dependencies: color-name: 1.1.4 diff --git a/src/Components/Button.tsx b/src/Components/Button.tsx index 09efb0f..e3c4834 100644 --- a/src/Components/Button.tsx +++ b/src/Components/Button.tsx @@ -8,11 +8,14 @@ export const Button = styled.button` background-color: #ff1696; color: white; + transition: background-color 0.25s ease-out; + &:hover { background-color: #da1c9b; } - &:placeholder { - color: gray; + &:disabled { + background-color: gray; + cursor: inherit; } ` diff --git a/src/TransformGrid/index.tsx b/src/TransformGrid/index.tsx index d82ae65..b4c413b 100644 --- a/src/TransformGrid/index.tsx +++ b/src/TransformGrid/index.tsx @@ -3,11 +3,11 @@ import { motion } from "framer-motion"; import style from './style.module.scss' import { TransformGridItem } from "../TransformGridItem"; -import { transforms } from "../Transforms/Transform"; +import { transforms, wrapTransform } from "../Transforms/Transform"; export const TransformGrid: FC = () =>