@scrabble-solver/scrabble-solver 2.15.25 → 2.16.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +5 -5
- package/.next/cache/.previewinfo +1 -1
- package/.next/cache/.rscinfo +1 -1
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack.old +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack.old +0 -0
- package/.next/prerender-manifest.json +4 -4
- package/.next/required-server-files.js +2 -1
- package/.next/required-server-files.json +2 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/712.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/_error.js.nft.json +1 -1
- package/.next/server/pages/api/dictionary/[locale]/[word].js.nft.json +1 -1
- package/.next/server/pages/api/dictionary/[locale].js.nft.json +1 -1
- package/.next/server/pages/api/solve.js +1 -1
- package/.next/server/pages/api/solve.js.nft.json +1 -1
- package/.next/server/pages/api/verify.js.nft.json +1 -1
- package/.next/server/pages/api/visit.js.nft.json +1 -1
- package/.next/server/pages/index.html +1 -1
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/index.json +1 -1
- package/.next/server/pages/not-found.html +1 -1
- package/.next/server/webpack-api-runtime.js +1 -1
- package/.next/static/{FDUqldlsD7FXe6iWhIJmu → HFiEUpdZIGYd_XKb5mCLZ}/_buildManifest.js +1 -1
- package/.next/static/chunks/pages/{_app-c0932b8ca24945cb.js → _app-9c9aaea7b6881765.js} +4 -4
- package/.next/static/chunks/pages/{index-08b3b0a754095919.js → index-e9ea63e97865edcf.js} +1 -1
- package/.next/static/css/{500cdc9a24075d91.css → 78726ae7cf7a5497.css} +1 -1
- package/.next/trace +21 -21
- package/.next/trace-build +1 -1
- package/README.md +3 -3
- package/next.config.js +1 -0
- package/package.json +10 -9
- package/src/@types/scss.d.ts +5 -0
- package/src/components/Board/Board.module.scss +2 -2
- package/src/components/Board/components/Actions/Actions.module.scss +1 -1
- package/src/components/Board/components/Cell/Cell.module.scss +26 -6
- package/src/components/Board/components/InputPrompt/InputPrompt.module.scss +1 -1
- package/src/components/Button/Button.module.scss +1 -1
- package/src/components/Dictionary/Dictionary.module.scss +1 -1
- package/src/components/DictionaryInput/DictionaryInput.module.scss +1 -1
- package/src/components/IconButton/IconButton.module.scss +1 -1
- package/src/components/Loading/Loading.module.scss +1 -1
- package/src/components/Modal/Modal.module.scss +1 -1
- package/src/components/NotFound/NotFound.module.scss +1 -1
- package/src/components/PlainTiles/PlainTiles.module.scss +1 -1
- package/src/components/Rack/Rack.module.scss +11 -6
- package/src/components/Rack/components/InputPrompt/InputPrompt.module.scss +1 -1
- package/src/components/Rack/components/RackTile/RackTile.module.scss +1 -1
- package/src/components/Radio/Radio.module.scss +1 -1
- package/src/components/Results/Results.module.scss +1 -1
- package/src/components/ResultsInput/ResultsInput.module.scss +1 -1
- package/src/components/Solver/Solver.module.scss +1 -1
- package/src/components/Solver/components/InsertButton/InsertButton.module.scss +1 -1
- package/src/components/Solver/components/ResultCandidatePicker/ResultCandidatePicker.module.scss +1 -1
- package/src/components/Spinner/Spinner.module.scss +1 -1
- package/src/components/Tile/Tile.module.scss +1 -1
- package/src/hooks/useLocalStorage.ts +4 -52
- package/src/lib/isMac.ts +1 -1
- package/src/modals/MenuModal/MenuModal.module.scss +1 -1
- package/src/modals/RemainingTilesModal/components/Character/Character.module.scss +1 -1
- package/src/modals/ResultsModal/ResultsModal.module.scss +1 -1
- package/src/modals/SettingsModal/components/LocaleSetting/LocaleSetting.module.scss +1 -1
- package/src/parameters/index.ts +45 -44
- package/src/state/localStorage.ts +42 -52
- package/src/state/settings/initialState.ts +7 -7
- package/src/styles/_tokens.scss +59 -0
- package/src/styles/global.scss +3 -3
- package/src/styles/mixins.scss +13 -12
- package/src/styles/variables.module.scss +53 -0
- package/src/styles/variables.scss +44 -41
- package/tsconfig.tsbuildinfo +1 -1
- /package/.next/static/{FDUqldlsD7FXe6iWhIJmu → HFiEUpdZIGYd_XKb5mCLZ}/_ssgManifest.js +0 -0
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-typescript","duration":
|
|
1
|
+
[{"name":"run-typescript","duration":1832072,"timestamp":29046060526,"id":13,"parentId":1,"tags":{},"startTime":1777330632146,"traceId":"5a0863a77c30228d"},{"name":"run-webpack","duration":6043991,"timestamp":29047895951,"id":15,"parentId":1,"tags":{},"startTime":1777330633981,"traceId":"5a0863a77c30228d"},{"name":"static-check","duration":194630,"timestamp":29054008471,"id":2025,"parentId":1,"tags":{},"startTime":1777330640094,"traceId":"5a0863a77c30228d"},{"name":"static-generation","duration":826329,"timestamp":29054211309,"id":2043,"parentId":1,"tags":{},"startTime":1777330640296,"traceId":"5a0863a77c30228d"},{"name":"collect-build-traces","duration":3614152,"timestamp":29054203599,"id":2040,"parentId":1,"tags":{},"startTime":1777330640289,"traceId":"5a0863a77c30228d"},{"name":"telemetry-flush","duration":23,"timestamp":29057818939,"id":2055,"parentId":1,"tags":{},"startTime":1777330643904,"traceId":"5a0863a77c30228d"},{"name":"next-build","duration":11985326,"timestamp":29045833640,"id":1,"tags":{"buildMode":"default","version":"16.2.4","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1777330631919,"traceId":"5a0863a77c30228d"}]
|
package/README.md
CHANGED
|
@@ -6,14 +6,14 @@ Available at: https://scrabble-solver.org/
|
|
|
6
6
|
|
|
7
7
|
## Scripts
|
|
8
8
|
|
|
9
|
-
### `
|
|
9
|
+
### `bun run build`
|
|
10
10
|
|
|
11
11
|
Run production build and place the output in `./next/`.
|
|
12
12
|
|
|
13
|
-
### `
|
|
13
|
+
### `bun run dev`
|
|
14
14
|
|
|
15
15
|
Run development server with hot-reload.
|
|
16
16
|
|
|
17
|
-
### `
|
|
17
|
+
### `bun start`
|
|
18
18
|
|
|
19
19
|
Run production server.
|
package/next.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/scrabble-solver",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0-alpha.0",
|
|
4
4
|
"description": "Scrabble Solver 2 - App",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,19 +22,20 @@
|
|
|
22
22
|
"debug": "NODE_OPTIONS='--inspect' next dev --webpack",
|
|
23
23
|
"dev": "env-cmd next dev --webpack",
|
|
24
24
|
"start": "env-cmd next start -p 3333",
|
|
25
|
+
"test": "bun test --timeout 180000 src",
|
|
25
26
|
"type-check": "tsgo --noEmit"
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
29
|
"@floating-ui/react": "^0.27.19",
|
|
29
30
|
"@kamilmielnik/trie": "^4.0.0",
|
|
30
31
|
"@reduxjs/toolkit": "^2.11.2",
|
|
31
|
-
"@scrabble-solver/configs": "^2.
|
|
32
|
-
"@scrabble-solver/constants": "^2.
|
|
33
|
-
"@scrabble-solver/dictionaries": "^2.
|
|
34
|
-
"@scrabble-solver/logger": "^2.
|
|
35
|
-
"@scrabble-solver/solver": "^2.
|
|
36
|
-
"@scrabble-solver/types": "^2.
|
|
37
|
-
"@scrabble-solver/word-definitions": "^2.
|
|
32
|
+
"@scrabble-solver/configs": "^2.16.0-alpha.0",
|
|
33
|
+
"@scrabble-solver/constants": "^2.16.0-alpha.0",
|
|
34
|
+
"@scrabble-solver/dictionaries": "^2.16.0-alpha.0",
|
|
35
|
+
"@scrabble-solver/logger": "^2.16.0-alpha.0",
|
|
36
|
+
"@scrabble-solver/solver": "^2.16.0-alpha.0",
|
|
37
|
+
"@scrabble-solver/types": "^2.16.0-alpha.0",
|
|
38
|
+
"@scrabble-solver/word-definitions": "^2.16.0-alpha.0",
|
|
38
39
|
"classnames": "^2.5.1",
|
|
39
40
|
"env-cmd": "^11.0.0",
|
|
40
41
|
"include-media": "^2.0.0",
|
|
@@ -69,5 +70,5 @@
|
|
|
69
70
|
"@types/redux": "^3.6.31",
|
|
70
71
|
"sass": "^1.99.0"
|
|
71
72
|
},
|
|
72
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "c9d35d0e7f7c187fbd2b0eaf04d621595e520bd9"
|
|
73
74
|
}
|
package/src/@types/scss.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use 'styles/mixins' as *;
|
|
2
2
|
|
|
3
3
|
@mixin lighthouse-input-size-hack {
|
|
4
4
|
// Hack for this Lighthouse warning:
|
|
@@ -10,21 +10,31 @@
|
|
|
10
10
|
inset: -100%;
|
|
11
11
|
width: 300%;
|
|
12
12
|
height: 300%;
|
|
13
|
-
clip-path: inset((100% / 3));
|
|
13
|
+
clip-path: inset(calc(100% / 3));
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
[dir='ltr'] & {
|
|
17
17
|
&.first3 {
|
|
18
18
|
input {
|
|
19
19
|
left: 0;
|
|
20
|
-
clip-path: polygon(
|
|
20
|
+
clip-path: polygon(
|
|
21
|
+
0 calc(100% / 3),
|
|
22
|
+
calc(100% / 3) calc(100% / 3),
|
|
23
|
+
calc(100% / 3) calc(200% / 3),
|
|
24
|
+
0 calc(200% / 3)
|
|
25
|
+
);
|
|
21
26
|
}
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
&.last3 {
|
|
25
30
|
input {
|
|
26
31
|
left: -200%;
|
|
27
|
-
clip-path: polygon(
|
|
32
|
+
clip-path: polygon(
|
|
33
|
+
calc(200% / 3) calc(100% / 3),
|
|
34
|
+
100% calc(100% / 3),
|
|
35
|
+
100% calc(200% / 3),
|
|
36
|
+
calc(200% / 3) calc(200% / 3)
|
|
37
|
+
);
|
|
28
38
|
}
|
|
29
39
|
}
|
|
30
40
|
}
|
|
@@ -34,7 +44,12 @@
|
|
|
34
44
|
input {
|
|
35
45
|
left: -200%;
|
|
36
46
|
right: 0;
|
|
37
|
-
clip-path: polygon(
|
|
47
|
+
clip-path: polygon(
|
|
48
|
+
calc(200% / 3) calc(100% / 3),
|
|
49
|
+
100% calc(100% / 3),
|
|
50
|
+
100% calc(200% / 3),
|
|
51
|
+
calc(200% / 3) calc(200% / 3)
|
|
52
|
+
);
|
|
38
53
|
}
|
|
39
54
|
}
|
|
40
55
|
|
|
@@ -42,7 +57,12 @@
|
|
|
42
57
|
input {
|
|
43
58
|
left: 0;
|
|
44
59
|
right: -200%;
|
|
45
|
-
clip-path: polygon(
|
|
60
|
+
clip-path: polygon(
|
|
61
|
+
0 calc(100% / 3),
|
|
62
|
+
calc(100% / 3) calc(100% / 3),
|
|
63
|
+
calc(100% / 3) calc(200% / 3),
|
|
64
|
+
0 calc(200% / 3)
|
|
65
|
+
);
|
|
46
66
|
}
|
|
47
67
|
}
|
|
48
68
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use 'styles/mixins' as *;
|
|
2
2
|
|
|
3
3
|
@mixin lighthouse-input-size-hack {
|
|
4
4
|
// Hack for this Lighthouse warning:
|
|
@@ -13,7 +13,12 @@
|
|
|
13
13
|
bottom: 0;
|
|
14
14
|
width: 300%;
|
|
15
15
|
height: 300%;
|
|
16
|
-
clip-path: polygon(
|
|
16
|
+
clip-path: polygon(
|
|
17
|
+
calc(100% / 3) calc(200% / 3),
|
|
18
|
+
calc(200% / 3) calc(200% / 3),
|
|
19
|
+
calc(200% / 3) 100%,
|
|
20
|
+
calc(100% / 3) 100%
|
|
21
|
+
);
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
[dir='ltr'] & {
|
|
@@ -22,7 +27,7 @@
|
|
|
22
27
|
&:nth-child(3) {
|
|
23
28
|
input {
|
|
24
29
|
left: 0;
|
|
25
|
-
clip-path: polygon(0 (200% / 3), (100% / 3) (200% / 3), (100% / 3) 100%, 0 100%);
|
|
30
|
+
clip-path: polygon(0 calc(200% / 3), calc(100% / 3) calc(200% / 3), calc(100% / 3) 100%, 0 100%);
|
|
26
31
|
}
|
|
27
32
|
}
|
|
28
33
|
|
|
@@ -31,7 +36,7 @@
|
|
|
31
36
|
&:nth-last-child(3) {
|
|
32
37
|
input {
|
|
33
38
|
left: -200%;
|
|
34
|
-
clip-path: polygon((200% / 3) (200% / 3), 100% (200% / 3), 100% 100%, (200% / 3) 100%);
|
|
39
|
+
clip-path: polygon(calc(200% / 3) calc(200% / 3), 100% calc(200% / 3), 100% 100%, calc(200% / 3) 100%);
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
}
|
|
@@ -43,7 +48,7 @@
|
|
|
43
48
|
input {
|
|
44
49
|
left: -200%;
|
|
45
50
|
right: 0;
|
|
46
|
-
clip-path: polygon((200% / 3) (200% / 3), 100% (200% / 3), 100% 100%, (200% / 3) 100%);
|
|
51
|
+
clip-path: polygon(calc(200% / 3) calc(200% / 3), 100% calc(200% / 3), 100% 100%, calc(200% / 3) 100%);
|
|
47
52
|
}
|
|
48
53
|
}
|
|
49
54
|
|
|
@@ -53,7 +58,7 @@
|
|
|
53
58
|
input {
|
|
54
59
|
left: 0;
|
|
55
60
|
right: -200%;
|
|
56
|
-
clip-path: polygon(0 (200% / 3), (100% / 3) (200% / 3), (100% / 3) 100%, 0 100%);
|
|
61
|
+
clip-path: polygon(0 calc(200% / 3), calc(100% / 3) calc(200% / 3), calc(100% / 3) 100%, 0 100%);
|
|
57
62
|
}
|
|
58
63
|
}
|
|
59
64
|
}
|
|
@@ -1,33 +1,11 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
localStorage,
|
|
5
|
-
selectAutoGroupTiles,
|
|
6
|
-
selectBoard,
|
|
7
|
-
selectGame,
|
|
8
|
-
selectInputMode,
|
|
9
|
-
selectLocale,
|
|
10
|
-
selectRack,
|
|
11
|
-
selectShowCoordinates,
|
|
12
|
-
selectRemoveCellFilters,
|
|
13
|
-
useTypedSelector,
|
|
14
|
-
} from '@/state';
|
|
3
|
+
import { localStorage, selectBoard, selectRack, selectSettings, useTypedSelector } from '@/state';
|
|
15
4
|
|
|
16
5
|
export const useLocalStorage = () => {
|
|
17
|
-
const autoGroupTiles = useTypedSelector(selectAutoGroupTiles);
|
|
18
6
|
const board = useTypedSelector(selectBoard);
|
|
19
|
-
const game = useTypedSelector(selectGame);
|
|
20
|
-
const inputMode = useTypedSelector(selectInputMode);
|
|
21
|
-
const locale = useTypedSelector(selectLocale);
|
|
22
7
|
const rack = useTypedSelector(selectRack);
|
|
23
|
-
const
|
|
24
|
-
const removeCellFilters = useTypedSelector(selectRemoveCellFilters);
|
|
25
|
-
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
if (autoGroupTiles) {
|
|
28
|
-
localStorage.setAutoGroupTiles(autoGroupTiles);
|
|
29
|
-
}
|
|
30
|
-
}, [autoGroupTiles]);
|
|
8
|
+
const settings = useTypedSelector(selectSettings);
|
|
31
9
|
|
|
32
10
|
useEffect(() => {
|
|
33
11
|
if (board) {
|
|
@@ -35,24 +13,6 @@ export const useLocalStorage = () => {
|
|
|
35
13
|
}
|
|
36
14
|
}, [board]);
|
|
37
15
|
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
if (game) {
|
|
40
|
-
localStorage.setGame(game);
|
|
41
|
-
}
|
|
42
|
-
}, [game]);
|
|
43
|
-
|
|
44
|
-
useEffect(() => {
|
|
45
|
-
if (inputMode) {
|
|
46
|
-
localStorage.setInputMode(inputMode);
|
|
47
|
-
}
|
|
48
|
-
}, [inputMode]);
|
|
49
|
-
|
|
50
|
-
useEffect(() => {
|
|
51
|
-
if (locale) {
|
|
52
|
-
localStorage.setLocale(locale);
|
|
53
|
-
}
|
|
54
|
-
}, [locale]);
|
|
55
|
-
|
|
56
16
|
useEffect(() => {
|
|
57
17
|
if (rack) {
|
|
58
18
|
localStorage.setRack(rack);
|
|
@@ -60,14 +20,6 @@ export const useLocalStorage = () => {
|
|
|
60
20
|
}, [rack]);
|
|
61
21
|
|
|
62
22
|
useEffect(() => {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
}, [showCoordinates]);
|
|
67
|
-
|
|
68
|
-
useEffect(() => {
|
|
69
|
-
if (removeCellFilters) {
|
|
70
|
-
localStorage.setRemoveCellFilters(removeCellFilters);
|
|
71
|
-
}
|
|
72
|
-
}, [removeCellFilters]);
|
|
23
|
+
localStorage.setSettings(settings);
|
|
24
|
+
}, [settings]);
|
|
73
25
|
};
|
package/src/lib/isMac.ts
CHANGED
|
@@ -3,5 +3,5 @@ export const isMac = (): boolean => {
|
|
|
3
3
|
return false;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
return globalThis.navigator.platform.startsWith('Mac') || globalThis.navigator.platform
|
|
6
|
+
return globalThis.navigator.platform.startsWith('Mac') || globalThis.navigator.platform.startsWith('iPhone');
|
|
7
7
|
};
|
package/src/parameters/index.ts
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
|
+
import variables from '@/styles/variables.module.scss';
|
|
1
2
|
import { ResultColumnId } from '@/types';
|
|
2
3
|
|
|
3
4
|
export const BREAKPOINTS = {
|
|
4
|
-
xs:
|
|
5
|
-
s:
|
|
6
|
-
m:
|
|
7
|
-
l:
|
|
8
|
-
xl:
|
|
5
|
+
xs: Number(variables.breakpointXs),
|
|
6
|
+
s: Number(variables.breakpointS),
|
|
7
|
+
m: Number(variables.breakpointM),
|
|
8
|
+
l: Number(variables.breakpointL),
|
|
9
|
+
xl: Number(variables.breakpointXl),
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
export const TRANSITION = 'var(--transition)';
|
|
12
13
|
|
|
13
14
|
export const GITHUB_PROJECT_URL = 'https://github.com/kamilmielnik/scrabble-solver';
|
|
14
15
|
|
|
15
|
-
export const TRANSITION_DURATION =
|
|
16
|
-
export const TRANSITION_DURATION_LONG =
|
|
17
|
-
|
|
18
|
-
export const COLOR_BLUE =
|
|
19
|
-
export const COLOR_GREEN =
|
|
20
|
-
export const COLOR_RED =
|
|
21
|
-
export const COLOR_YELLOW =
|
|
22
|
-
|
|
23
|
-
export const COLOR_BONUS_CHARACTER_1 =
|
|
24
|
-
export const COLOR_BONUS_CHARACTER_2 =
|
|
25
|
-
export const COLOR_BONUS_CHARACTER_3 =
|
|
26
|
-
export const COLOR_BONUS_CHARACTER_5 =
|
|
27
|
-
export const COLOR_BONUS_CHARACTER_MULTIPLIER_2 =
|
|
28
|
-
export const COLOR_BONUS_CHARACTER_MULTIPLIER_3 =
|
|
29
|
-
export const COLOR_BONUS_CHARACTER_MULTIPLIER_4 =
|
|
30
|
-
export const COLOR_BONUS_START =
|
|
31
|
-
export const COLOR_BONUS_WORD_MULTIPLIER_2 =
|
|
32
|
-
export const COLOR_BONUS_WORD_MULTIPLIER_3 =
|
|
33
|
-
export const COLOR_BONUS_WORD_MULTIPLIER_4 =
|
|
34
|
-
export const COLOR_FILTERED =
|
|
35
|
-
export const COLOR_BACKGROUND =
|
|
16
|
+
export const TRANSITION_DURATION = Number(variables.transitionDuration);
|
|
17
|
+
export const TRANSITION_DURATION_LONG = Number(variables.transitionDurationLong);
|
|
18
|
+
|
|
19
|
+
export const COLOR_BLUE = variables.colorBlue;
|
|
20
|
+
export const COLOR_GREEN = variables.colorGreen;
|
|
21
|
+
export const COLOR_RED = variables.colorRed;
|
|
22
|
+
export const COLOR_YELLOW = variables.colorYellow;
|
|
23
|
+
|
|
24
|
+
export const COLOR_BONUS_CHARACTER_1 = variables.colorYellowLight;
|
|
25
|
+
export const COLOR_BONUS_CHARACTER_2 = variables.colorGreenLight;
|
|
26
|
+
export const COLOR_BONUS_CHARACTER_3 = variables.colorBlueLight;
|
|
27
|
+
export const COLOR_BONUS_CHARACTER_5 = variables.colorRedLight;
|
|
28
|
+
export const COLOR_BONUS_CHARACTER_MULTIPLIER_2 = variables.colorBonusCharacterMultiplier2;
|
|
29
|
+
export const COLOR_BONUS_CHARACTER_MULTIPLIER_3 = variables.colorBonusCharacterMultiplier3;
|
|
30
|
+
export const COLOR_BONUS_CHARACTER_MULTIPLIER_4 = variables.colorBonusCharacterMultiplier4;
|
|
31
|
+
export const COLOR_BONUS_START = variables.colorVioletLight;
|
|
32
|
+
export const COLOR_BONUS_WORD_MULTIPLIER_2 = variables.colorBonusWordMultiplier2;
|
|
33
|
+
export const COLOR_BONUS_WORD_MULTIPLIER_3 = variables.colorBonusWordMultiplier3;
|
|
34
|
+
export const COLOR_BONUS_WORD_MULTIPLIER_4 = variables.colorBonusWordMultiplier4;
|
|
35
|
+
export const COLOR_FILTERED = variables.colorForegroundSecondary;
|
|
36
|
+
export const COLOR_BACKGROUND = variables.colorBackground;
|
|
36
37
|
|
|
37
38
|
export const COLOR_BONUS_CHARACTER: Record<number, string> = {
|
|
38
39
|
1: COLOR_BONUS_CHARACTER_1,
|
|
@@ -53,11 +54,11 @@ export const COLOR_BONUS_WORD: Record<number, string> = {
|
|
|
53
54
|
4: COLOR_BONUS_WORD_MULTIPLIER_4,
|
|
54
55
|
};
|
|
55
56
|
|
|
56
|
-
export const SPACING_XS =
|
|
57
|
-
export const SPACING_S =
|
|
58
|
-
export const SPACING_M =
|
|
59
|
-
export const SPACING_L =
|
|
60
|
-
export const SPACING_XL =
|
|
57
|
+
export const SPACING_XS = Number(variables.spacingXs);
|
|
58
|
+
export const SPACING_S = Number(variables.spacingS);
|
|
59
|
+
export const SPACING_M = Number(variables.spacingM);
|
|
60
|
+
export const SPACING_L = Number(variables.spacingL);
|
|
61
|
+
export const SPACING_XL = Number(variables.spacingXl);
|
|
61
62
|
|
|
62
63
|
export const COMPONENTS_SPACING = SPACING_XL;
|
|
63
64
|
export const COMPONENTS_SPACING_SMALL = SPACING_L;
|
|
@@ -70,24 +71,24 @@ export const BOARD_TILE_FONT_SIZE_MIN = 14;
|
|
|
70
71
|
export const BOARD_TILE_FONT_SIZE_POINTS_MIN = 10;
|
|
71
72
|
export const BOARD_TILE_SIZE_MAX = RACK_TILE_SIZE_MAX;
|
|
72
73
|
|
|
73
|
-
export const BORDER_COLOR =
|
|
74
|
-
export const BORDER_COLOR_LIGHT =
|
|
75
|
-
export const BORDER_RADIUS =
|
|
76
|
-
export const BORDER_WIDTH =
|
|
74
|
+
export const BORDER_COLOR = variables.borderColor;
|
|
75
|
+
export const BORDER_COLOR_LIGHT = variables.borderColorLight;
|
|
76
|
+
export const BORDER_RADIUS = Number(variables.borderRadius);
|
|
77
|
+
export const BORDER_WIDTH = Number(variables.borderWidth);
|
|
77
78
|
|
|
78
|
-
export const BUTTON_ICON_SIZE =
|
|
79
|
+
export const BUTTON_ICON_SIZE = Number(variables.buttonIconSize);
|
|
79
80
|
export const BUTTON_PADDING_VERTICAL = SPACING_M;
|
|
80
81
|
export const BUTTON_HEIGHT = BUTTON_ICON_SIZE + 2 * BUTTON_PADDING_VERTICAL + 2 * BORDER_WIDTH;
|
|
81
82
|
|
|
82
|
-
export const DICTIONARY_HEIGHT =
|
|
83
|
-
export const DICTIONARY_HEIGHT_MOBILE =
|
|
83
|
+
export const DICTIONARY_HEIGHT = Number(variables.dictionaryHeight);
|
|
84
|
+
export const DICTIONARY_HEIGHT_MOBILE = Number(variables.dictionaryHeightMobile);
|
|
84
85
|
|
|
85
86
|
export const LOGO_ASPECT_RATIO = 682 / 166;
|
|
86
|
-
export const LOGO_HEIGHT =
|
|
87
|
-
export const LOGO_HEIGHT_SMALL =
|
|
87
|
+
export const LOGO_HEIGHT = Number(variables.logoHeight);
|
|
88
|
+
export const LOGO_HEIGHT_SMALL = Number(variables.logoHeightSmall);
|
|
88
89
|
export const LOGO_SRC = '/logo.svg';
|
|
89
90
|
|
|
90
|
-
export const MODAL_WIDTH =
|
|
91
|
+
export const MODAL_WIDTH = Number(variables.modalWidth);
|
|
91
92
|
export const MODAL_HEADER_HEIGHT = 45;
|
|
92
93
|
|
|
93
94
|
export const NAV_PADDING = SPACING_L;
|
|
@@ -133,10 +134,10 @@ export const RESULTS_COLUMN_WIDTH: Record<ResultColumnId, number | undefined> =
|
|
|
133
134
|
[ResultColumnId.Word]: undefined,
|
|
134
135
|
[ResultColumnId.WordsCount]: 55,
|
|
135
136
|
};
|
|
136
|
-
export const RESULTS_ITEM_HEIGHT =
|
|
137
|
+
export const RESULTS_ITEM_HEIGHT = Number(variables.resultsItemHeight);
|
|
137
138
|
|
|
138
139
|
export const RESULTS_HEADER_HEIGHT = RESULTS_ITEM_HEIGHT;
|
|
139
140
|
|
|
140
|
-
export const SOLVER_COLUMN_WIDTH =
|
|
141
|
+
export const SOLVER_COLUMN_WIDTH = Number(variables.solverColumnWidth);
|
|
141
142
|
|
|
142
|
-
export const TEXT_INPUT_HEIGHT =
|
|
143
|
+
export const TEXT_INPUT_HEIGHT = Number(variables.textInputHeight);
|