40 |
41 |
42 |
43 | setInnerCode(evn.target.value)}
49 | padding={15}
50 | style={{
51 | maxWidth: 1000,
52 | width: 'calc(100% - 60px)',
53 | maxHeight: '100vh',
54 | overflow: 'visible',
55 | fontSize: 12,
56 | backgroundColor: '#1c1c1c',
57 | fontFamily:
58 | 'ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo,monospace',
59 | }}
60 | />
61 |
62 |
63 |
64 | );
65 | };
66 |
67 | export default Editorfield;
68 |
--------------------------------------------------------------------------------
/demo-todo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "chromogen-todo",
3 | "version": "1.0.0",
4 | "description": "demo todo app for Chromogen using React + Recoil",
5 | "main": "index.js",
6 | "scripts": {
7 | "start": "webpack-dev-server --open",
8 | "test": "NODE_OPTIONS=--experimental-vm-modules npx jest --verbose"
9 | },
10 | "keywords": [
11 | "react",
12 | "recoil",
13 | "chromogen",
14 | "demo",
15 | "example",
16 | "todo"
17 | ],
18 | "repository": {
19 | "type": "git",
20 | "url": "https://github.com/open-source-labs/Chromogen.git"
21 | },
22 | "contributors": [
23 | {
24 | "name": "Michelle Holland",
25 | "url": "https://github.com/michellebholland/"
26 | },
27 | {
28 | "name": "Jim Chen",
29 | "url": "https://github.com/chenchingk"
30 | },
31 | {
32 | "name": "Andy Wang",
33 | "url": "https://github.com/andywang23"
34 | },
35 | {
36 | "name": "Connor Rose Delisle",
37 | "url": "https://github.com/connorrose"
38 | }
39 | ],
40 | "license": "MIT",
41 | "devDependencies": {
42 | "@babel/core": "^7.11.1",
43 | "@babel/plugin-transform-runtime": "^7.11.0",
44 | "@babel/preset-env": "^7.19.1",
45 | "@babel/preset-react": "^7.10.4",
46 | "@testing-library/react": "^13.1.1",
47 | "babel-loader": "^8.1.0",
48 | "chromogen": "^4.0.4",
49 | "css-loader": "^4.2.1",
50 | "identity-obj-proxy": "^3.0.0",
51 | "jest": "^26.4.2",
52 | "style-loader": "^1.2.1",
53 | "webpack": "^5.74.0",
54 | "webpack-cli": "^3.3.12",
55 | "webpack-dev-server": "^4.11.1"
56 | },
57 | "peerDependencies": {
58 | "typescript": "^4.0.3"
59 | },
60 | "dependencies": {
61 | "@babel/runtime": "^7.11.2",
62 | "@emotion/react": "^11.10.4",
63 | "@emotion/styled": "^11.10.4",
64 | "@mui/icons-material": "^5.10.6",
65 | "@mui/material": "^5.10.6",
66 | "babel-jest": "^26.3.0",
67 | "react": "^18.0.0",
68 | "react-dom": "^18.0.0",
69 | "react-recoil-hooks-testing-library": "^0.1.0",
70 | "react-test-renderer": "^18.1.0",
71 | "recoil": "0.7.2",
72 | "typescript": "^4.0.3"
73 | },
74 | "jest": {
75 | "moduleNameMapper": {
76 | "\\.(css|less)$": "identity-obj-proxy"
77 | }
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/package/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "ES6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
4 | "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
5 | "jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
6 | "declaration": true /* Generates corresponding '.d.ts' file. */,
7 | "outDir": "./build" /* Redirect output structure to the directory. */,
8 | "rootDir": "." /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
9 | "removeComments": true /* Do not emit comments to output. */,
10 | "strict": true /* Enable all strict type-checking options. */,
11 | "noImplicitAny": false /* Raise error on expressions and declarations with an implied 'any' type. */,
12 | "strictNullChecks": true /* Enable strict null checks. */,
13 | "strictFunctionTypes": true /* Enable strict checking of function types. */,
14 | "strictBindCallApply": true /* Enable strict 'bind', 'call', and 'apply' methods on functions. */,
15 | "strictPropertyInitialization": true /* Enable strict checking of property initialization in classes. */,
16 | "noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */,
17 | "noUnusedLocals": true /* Report errors on unused locals. */,
18 | "noUnusedParameters": true /* Report errors on unused parameters. */,
19 | "noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
20 | "noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
21 | "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
22 | "baseUrl": "./" /* Base directory to resolve non-absolute module names. */,
23 | "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
24 | "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
25 | },
26 | // "include": ["package/**/*"]
27 | }
--------------------------------------------------------------------------------
/package/zustand_generator/src/component/Buttons/RecordingVariations/Start.tsx:
--------------------------------------------------------------------------------
1 | import React, { useState } from 'react';
2 |
3 | const Start = (props): JSX.Element => {
4 | //hover
5 | const [isHover, setIsHover] = useState(false);
6 | const handleMouseEnter = () => {
7 | setIsHover(true);
8 | };
9 | const handleMouseLeave = () => {
10 | setIsHover(false);
11 | };
12 |
13 | const startButtonShape: React.CSSProperties = {
14 | display: 'flex',
15 | width: '252px',
16 | flexDirection: 'row',
17 | alignItems: 'center',
18 | position: 'absolute',
19 | justifyContent: 'center',
20 | height: '48px',
21 | // left: '1482px',
22 | // top: '1081px',
23 | borderRadius: '42px',
24 | padding: '14px 24px',
25 | columnGap: '16px',
26 | background: '#212121',
27 | border: '1px solid rgba(243, 246, 248, 0.1)',
28 | cursor: 'pointer',
29 | bottom: '20px',
30 | };
31 |
32 | const startButtonHover: React.CSSProperties = {
33 | display: 'flex',
34 | flexDirection: 'row',
35 | alignItems: 'center',
36 | position: 'absolute',
37 | width: '252px',
38 | height: '48px',
39 | borderRadius: '42px',
40 | padding: '14px 24px',
41 | columnGap: '16px',
42 | justifyContent: 'center',
43 | background: '#1C1C1C',
44 | border: '1px solid rgba(243, 246, 248, 0.1)',
45 | cursor: 'pointer',
46 | bottom: '20px',
47 | };
48 |
49 | const startIcon: React.CSSProperties = {
50 | width: '0',
51 | height: '0',
52 | borderTop: '8px solid transparent',
53 | borderBottom: '8px solid transparent',
54 | borderLeft: '16px solid rgba(243, 246, 248, 0.8)',
55 | flex: 'none',
56 | order: '0',
57 | flexGrow: '0',
58 | borderRadius: '2px',
59 | };
60 |
61 | const startText: React.CSSProperties = {
62 | fontSize: '14px',
63 | lineHeight: '16px',
64 | color: '#F3F6F8',
65 | opacity: '0.8',
66 | flex: 'none',
67 | order: '1',
68 | flexGrow: '0',
69 | };
70 |
71 | return (
72 |