-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from fosslife/master
- Loading branch information
Showing
64 changed files
with
3,305 additions
and
1,013 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ yarn-error.log | |
|
||
assets/vips/ | ||
|
||
.yarn | ||
.yarn | ||
.eslintcache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
yarn lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"*.{js,ts,tsx,jsx}": [ | ||
"prettier --loglevel warn --write \"./**/*.{js,jsx,ts,tsx,css,md,json}\"", | ||
"eslint --cache ./src --ext .jsx,.js,.ts,.tsx --fix" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Output } from "@/hooks/useColorState"; | ||
import { OutputBox } from "@/Components/OutputBox"; | ||
import { Group } from "@mantine/core"; | ||
import classes from "./colorgenerator.module.css"; | ||
|
||
export const EditableColorOutput = ({ | ||
conversions, | ||
onCopy, | ||
}: { | ||
conversions: Output[]; | ||
onCopy?: () => void; | ||
}) => { | ||
return ( | ||
<Group | ||
gap={20} | ||
grow | ||
className={classes.outputGroup} | ||
style={{ marginBottom: 14 }} | ||
> | ||
{conversions.map((conv) => ( | ||
<OutputBox | ||
key={conv.type} | ||
value={conv.editableValue} | ||
copyValue={conv.renderValue} | ||
style={{ | ||
["--hover-background" as string]: conv.renderValue, | ||
}} | ||
onCopy={onCopy} | ||
onChange={conv?.onChange} | ||
btnLabel={`Copy ${conv.type.toUpperCase()}`} | ||
/> | ||
))} | ||
</Group> | ||
); | ||
}; |
Oops, something went wrong.