@scrabble-solver/scrabble-solver 2.15.24 → 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 +9 -9
- 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/diagnostics/framework.json +1 -1
- 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/30.js +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/{f_g0t0jBAscXxDrNYOuV0 → HFiEUpdZIGYd_XKb5mCLZ}/_buildManifest.js +1 -1
- package/.next/static/chunks/{main-ca07941c8a544c9a.js → main-65a5015b46ca9827.js} +1 -1
- package/.next/static/chunks/pages/{_app-369e5cb907606ad4.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 +12 -11
- 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/Modal/Modal.tsx +0 -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/hooks/useMedia.ts +0 -1
- 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/pages/_app.tsx +0 -1
- package/src/parameters/index.ts +48 -47
- package/src/sdk/fetchJson.ts +3 -7
- package/src/service-worker/index.ts +0 -1
- package/src/service-worker/routeSolveRequests.ts +18 -12
- package/src/state/board/slice.ts +6 -4
- package/src/state/localStorage.ts +42 -52
- package/src/state/sagas.ts +1 -2
- 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.json +0 -1
- package/tsconfig.tsbuildinfo +1 -1
- /package/.next/static/{f_g0t0jBAscXxDrNYOuV0 → HFiEUpdZIGYd_XKb5mCLZ}/_ssgManifest.js +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use 'styles/mixins' as *;
|
|
2
|
+
@use 'styles/tokens' as *;
|
|
2
3
|
|
|
3
4
|
$easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
|
|
4
5
|
|
|
5
6
|
:root {
|
|
6
7
|
--border: var(--border--width) solid var(--border--color);
|
|
7
|
-
--border--color: #
|
|
8
|
-
--border--color--light: #
|
|
9
|
-
--border--radius:
|
|
10
|
-
--border--width:
|
|
8
|
+
--border--color: #{$border-color};
|
|
9
|
+
--border--color--light: #{$border-color-light};
|
|
10
|
+
--border--radius: #{$border-radius};
|
|
11
|
+
--border--width: #{$border-width};
|
|
11
12
|
|
|
12
13
|
--box-shadow: 0 0 var(--box-shadow--blur) var(--box-shadow--spread) var(--box-shadow--color);
|
|
13
14
|
--box-shadow--blur: 8px;
|
|
@@ -21,24 +22,24 @@ $easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
|
|
|
21
22
|
--box-shadow--raised--subtle: inset -1px -1px 1px 0 var(--box-shadow--color--raised);
|
|
22
23
|
|
|
23
24
|
--color--white: #ffffff;
|
|
24
|
-
--color--blue: #
|
|
25
|
-
--color--blue--light: #
|
|
26
|
-
--color--green: #
|
|
27
|
-
--color--green--light: #
|
|
28
|
-
--color--red: #
|
|
29
|
-
--color--red--light: #
|
|
30
|
-
--color--violet: #
|
|
31
|
-
--color--violet--light: #
|
|
32
|
-
--color--yellow: #
|
|
33
|
-
--color--yellow--light: #
|
|
25
|
+
--color--blue: #{$color-blue};
|
|
26
|
+
--color--blue--light: #{$color-blue-light};
|
|
27
|
+
--color--green: #{$color-green};
|
|
28
|
+
--color--green--light: #{$color-green-light};
|
|
29
|
+
--color--red: #{$color-red};
|
|
30
|
+
--color--red--light: #{$color-red-light};
|
|
31
|
+
--color--violet: #{$color-violet};
|
|
32
|
+
--color--violet--light: #{$color-violet-light};
|
|
33
|
+
--color--yellow: #{$color-yellow};
|
|
34
|
+
--color--yellow--light: #{$color-yellow-light};
|
|
34
35
|
|
|
35
36
|
--color--focus: #{rgba(#268fff, 0.5)};
|
|
36
|
-
--color--inactive: #
|
|
37
|
-
--color--background: #
|
|
37
|
+
--color--inactive: #{$color-inactive};
|
|
38
|
+
--color--background: #{$color-background};
|
|
38
39
|
--color--background--element: var(--color--white);
|
|
39
40
|
--color--background--overlay: rgba(255, 255, 255, 0.65);
|
|
40
|
-
--color--foreground: #
|
|
41
|
-
--color--foreground--secondary: #
|
|
41
|
+
--color--foreground: #{$color-foreground};
|
|
42
|
+
--color--foreground--secondary: #{$color-foreground-secondary};
|
|
42
43
|
--color--mark: #ffff00;
|
|
43
44
|
--color--error: hsl(0, 92%, 62%);
|
|
44
45
|
--color--error--opposite: var(--color--white);
|
|
@@ -53,12 +54,14 @@ $easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
|
|
|
53
54
|
--color--bonus--character--2: var(--color--green--light);
|
|
54
55
|
--color--bonus--character--3: var(--color--blue--light);
|
|
55
56
|
--color--bonus--character--5: var(--color--red--light);
|
|
56
|
-
--color--bonus--character-multiplier--2: #
|
|
57
|
-
--color--bonus--character-multiplier--3: #
|
|
57
|
+
--color--bonus--character-multiplier--2: #{$color-bonus-character-multiplier-2};
|
|
58
|
+
--color--bonus--character-multiplier--3: #{$color-bonus-character-multiplier-3};
|
|
59
|
+
--color--bonus--character-multiplier--4: #{$color-bonus-character-multiplier-4};
|
|
58
60
|
--color--bonus--start: var(--color--violet--light);
|
|
59
|
-
--color--bonus--word-multiplier--2: #
|
|
60
|
-
--color--bonus--word-multiplier--3: #
|
|
61
|
-
--color--
|
|
61
|
+
--color--bonus--word-multiplier--2: #{$color-bonus-word-multiplier-2};
|
|
62
|
+
--color--bonus--word-multiplier--3: #{$color-bonus-word-multiplier-3};
|
|
63
|
+
--color--bonus--word-multiplier--4: #{$color-bonus-word-multiplier-4};
|
|
64
|
+
--color--tooltip--background: #{$color-foreground-secondary};
|
|
62
65
|
--color--tooltip--foreground: var(--color--white);
|
|
63
66
|
|
|
64
67
|
--font--family: system-ui, sans-serif;
|
|
@@ -73,12 +76,12 @@ $easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
|
|
|
73
76
|
|
|
74
77
|
--opacity--disabled: 0.3;
|
|
75
78
|
|
|
76
|
-
--spacing--xs:
|
|
77
|
-
--spacing--s:
|
|
78
|
-
--spacing--m:
|
|
79
|
-
--spacing--l:
|
|
80
|
-
--spacing--xl:
|
|
81
|
-
--spacing--xxl:
|
|
79
|
+
--spacing--xs: #{$spacing-xs};
|
|
80
|
+
--spacing--s: #{$spacing-s};
|
|
81
|
+
--spacing--m: #{$spacing-m};
|
|
82
|
+
--spacing--l: #{$spacing-l};
|
|
83
|
+
--spacing--xl: #{$spacing-xl};
|
|
84
|
+
--spacing--xxl: #{$spacing-xxl};
|
|
82
85
|
|
|
83
86
|
--scrollbar--size: 5px;
|
|
84
87
|
--scrollbar--thumb--color: var(--border--color);
|
|
@@ -87,8 +90,8 @@ $easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
|
|
|
87
90
|
|
|
88
91
|
--transition: all var(--transition--duration) var(--transition--easing);
|
|
89
92
|
--transition--long: all var(--transition--duration--long) var(--transition--easing);
|
|
90
|
-
--transition--duration:
|
|
91
|
-
--transition--duration--long:
|
|
93
|
+
--transition--duration: #{$transition-duration};
|
|
94
|
+
--transition--duration--long: #{$transition-duration-long};
|
|
92
95
|
--transition--easing: #{$easeOutSine};
|
|
93
96
|
|
|
94
97
|
--z-index--focus-effect: 1;
|
|
@@ -97,25 +100,25 @@ $easeOutSine: cubic-bezier(0.61, 1, 0.88, 1);
|
|
|
97
100
|
--z-index--close-button: 101;
|
|
98
101
|
--z-index--tooltip: 102;
|
|
99
102
|
|
|
100
|
-
--button--icon--size:
|
|
101
|
-
--dictionary--height:
|
|
102
|
-
--dictionary--height--mobile:
|
|
103
|
+
--button--icon--size: #{$button-icon-size};
|
|
104
|
+
--dictionary--height: #{$dictionary-height};
|
|
105
|
+
--dictionary--height--mobile: #{$dictionary-height-mobile};
|
|
103
106
|
--key--height: 36px;
|
|
104
107
|
--key--icon--size: 16px;
|
|
105
|
-
--logo--height:
|
|
106
|
-
--modal--width:
|
|
108
|
+
--logo--height: #{$logo-height};
|
|
109
|
+
--modal--width: #{$modal-width};
|
|
107
110
|
--nav--height: calc(var(--logo--height) + var(--nav--padding));
|
|
108
111
|
--nav--padding: var(--spacing--l);
|
|
109
112
|
--results--icon--size: 18px;
|
|
110
|
-
--results--item--height:
|
|
111
|
-
--solver-column--width:
|
|
113
|
+
--results--item--height: #{$results-item-height};
|
|
114
|
+
--solver-column--width: #{$solver-column-width};
|
|
112
115
|
--square-button--size: 32px;
|
|
113
|
-
--text-input--height:
|
|
116
|
+
--text-input--height: #{$text-input-height};
|
|
114
117
|
--tooltip--max-width: 500px;
|
|
115
118
|
|
|
116
119
|
@include media('<l') {
|
|
117
120
|
--dictionary--height: var(--dictionary--height--mobile);
|
|
118
|
-
--logo--height:
|
|
121
|
+
--logo--height: #{$logo-height-small};
|
|
119
122
|
}
|
|
120
123
|
|
|
121
124
|
@include media('<s') {
|