@pie-element/shared-theming 0.1.0 → 0.1.1-next.1
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/dist/constants.d.ts +28 -29
- package/dist/css-variables.d.ts +2 -3
- package/dist/index.d.ts +4 -8
- package/dist/index.js +473 -851
- package/dist/pie-themes.d.ts +2 -3
- package/dist/types.d.ts +0 -36
- package/package.json +15 -13
- package/dist/constants.d.ts.map +0 -1
- package/dist/css-variables.d.ts.map +0 -1
- package/dist/hooks.d.ts +0 -109
- package/dist/hooks.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/mui-integration.d.ts +0 -39
- package/dist/mui-integration.d.ts.map +0 -1
- package/dist/pie-themes.d.ts.map +0 -1
- package/dist/provider.d.ts +0 -30
- package/dist/provider.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,859 +1,481 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
//#region src/constants.ts
|
|
2
|
+
var e = {
|
|
3
|
+
TEXT: "black",
|
|
4
|
+
DISABLED: "grey",
|
|
5
|
+
DISABLED_SECONDARY: "#ABABAB",
|
|
6
|
+
CORRECT: "#4CAF50",
|
|
7
|
+
CORRECT_SECONDARY: "#E8F5E9",
|
|
8
|
+
CORRECT_TERTIARY: "#0EA449",
|
|
9
|
+
CORRECT_WITH_ICON: "#087D38",
|
|
10
|
+
INCORRECT: "#FF9800",
|
|
11
|
+
INCORRECT_SECONDARY: "#FFEBEE",
|
|
12
|
+
INCORRECT_WITH_ICON: "#BF0D00",
|
|
13
|
+
MISSING: "#D32F2F",
|
|
14
|
+
MISSING_WITH_ICON: "#6A78A1",
|
|
15
|
+
PRIMARY: "#3F51B5",
|
|
16
|
+
PRIMARY_LIGHT: "#9FA8DA",
|
|
17
|
+
PRIMARY_DARK: "#283593",
|
|
18
|
+
SECONDARY: "#F50057",
|
|
19
|
+
SECONDARY_LIGHT: "#F48FB1",
|
|
20
|
+
SECONDARY_DARK: "#880E4F",
|
|
21
|
+
TERTIARY: "#146EB3",
|
|
22
|
+
TERTIARY_LIGHT: "#D0E2F0",
|
|
23
|
+
BACKGROUND: "rgba(255,255,255,0)",
|
|
24
|
+
BACKGROUND_DARK: "#ECEDF1",
|
|
25
|
+
DROPDOWN_BACKGROUND: "#E0E1E6",
|
|
26
|
+
SECONDARY_BACKGROUND: "rgba(241,241,241,1)",
|
|
27
|
+
BORDER: "#9A9A9A",
|
|
28
|
+
BORDER_LIGHT: "#D1D1D1",
|
|
29
|
+
BORDER_DARK: "#646464",
|
|
30
|
+
BORDER_GRAY: "#7E8494",
|
|
31
|
+
BLACK: "#000000",
|
|
32
|
+
WHITE: "#ffffff",
|
|
33
|
+
TRANSPARENT: "transparent",
|
|
34
|
+
FOCUS_CHECKED: "#BBDEFB",
|
|
35
|
+
FOCUS_CHECKED_BORDER: "#1565C0",
|
|
36
|
+
FOCUS_UNCHECKED: "#E0E0E0",
|
|
37
|
+
FOCUS_UNCHECKED_BORDER: "#757575",
|
|
38
|
+
BLUE_GREY100: "#F3F5F7",
|
|
39
|
+
BLUE_GREY300: "#C0C3CF",
|
|
40
|
+
BLUE_GREY600: "#7E8494",
|
|
41
|
+
BLUE_GREY900: "#152452",
|
|
42
|
+
FADED_PRIMARY: "#DCDAFB",
|
|
43
|
+
CHOICE_INPUT_COLOR: "black",
|
|
44
|
+
CHOICE_INPUT_SELECTED_COLOR: "#3F51B5",
|
|
45
|
+
CHOICE_INPUT_DISABLED_COLOR: "grey",
|
|
46
|
+
FEEDBACK_CORRECT_BG: "#4CAF50",
|
|
47
|
+
FEEDBACK_INCORRECT_BG: "#FF9800",
|
|
48
|
+
ANNOTATION_POINTER_RIGHT: "100%",
|
|
49
|
+
ANNOTATION_POINTER_TOP: "5px",
|
|
50
|
+
ANNOTATION_POINTER_BORDER_WIDTH: "7px",
|
|
51
|
+
ANNOTATION_POINTER_BORDER_COLOR: "rgb(153, 255, 153)",
|
|
52
|
+
ARROW_COLOR: "#FF9800",
|
|
53
|
+
TICK_COLOR: "#ffffff",
|
|
54
|
+
LINE_STROKE: "#ffffff",
|
|
55
|
+
POINT_FILL: "#000000",
|
|
56
|
+
POINT_STROKE: "#ffffff",
|
|
57
|
+
CORRECT_ANSWER_TOGGLE_LABEL_COLOR: "#ffffff",
|
|
58
|
+
PRIMARY_TEXT: "black"
|
|
59
|
+
}, t = [
|
|
60
|
+
{
|
|
61
|
+
variableName: "--pie-text",
|
|
62
|
+
themeKey: "base-content",
|
|
63
|
+
fallback: e.TEXT
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
variableName: "--pie-background",
|
|
67
|
+
themeKey: "base-100",
|
|
68
|
+
fallback: e.BACKGROUND
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
variableName: "--pie-background-dark",
|
|
72
|
+
themeKey: "background-dark",
|
|
73
|
+
fallback: e.BACKGROUND_DARK
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
variableName: "--pie-secondary-background",
|
|
77
|
+
themeKey: "secondary-background",
|
|
78
|
+
fallback: e.SECONDARY_BACKGROUND
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
variableName: "--pie-dropdown-background",
|
|
82
|
+
themeKey: "dropdown-background",
|
|
83
|
+
fallback: e.DROPDOWN_BACKGROUND
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
variableName: "--pie-primary",
|
|
87
|
+
themeKey: "primary",
|
|
88
|
+
fallback: e.PRIMARY
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
variableName: "--pie-primary-light",
|
|
92
|
+
themeKey: "primary-light",
|
|
93
|
+
fallback: e.PRIMARY_LIGHT
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
variableName: "--pie-primary-dark",
|
|
97
|
+
themeKey: "primary-dark",
|
|
98
|
+
fallback: e.PRIMARY_DARK
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
variableName: "--pie-faded-primary",
|
|
102
|
+
themeKey: "faded-primary",
|
|
103
|
+
fallback: e.FADED_PRIMARY
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
variableName: "--pie-secondary",
|
|
107
|
+
themeKey: "secondary",
|
|
108
|
+
fallback: e.SECONDARY
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
variableName: "--pie-secondary-light",
|
|
112
|
+
themeKey: "secondary-light",
|
|
113
|
+
fallback: e.SECONDARY_LIGHT
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
variableName: "--pie-secondary-dark",
|
|
117
|
+
themeKey: "secondary-dark",
|
|
118
|
+
fallback: e.SECONDARY_DARK
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
variableName: "--pie-tertiary",
|
|
122
|
+
themeKey: "tertiary",
|
|
123
|
+
fallback: e.TERTIARY
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
variableName: "--pie-tertiary-light",
|
|
127
|
+
themeKey: "tertiary-light",
|
|
128
|
+
fallback: e.TERTIARY_LIGHT
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
variableName: "--pie-correct",
|
|
132
|
+
themeKey: "success",
|
|
133
|
+
fallback: e.CORRECT
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
variableName: "--pie-correct-secondary",
|
|
137
|
+
themeKey: "correct-secondary",
|
|
138
|
+
fallback: e.CORRECT_SECONDARY
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
variableName: "--pie-correct-tertiary",
|
|
142
|
+
themeKey: "correct-tertiary",
|
|
143
|
+
fallback: e.CORRECT_TERTIARY
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
variableName: "--pie-correct-icon",
|
|
147
|
+
themeKey: "correct-icon",
|
|
148
|
+
fallback: e.CORRECT_WITH_ICON
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
variableName: "--pie-incorrect",
|
|
152
|
+
themeKey: "error",
|
|
153
|
+
fallback: e.INCORRECT
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
variableName: "--pie-incorrect-secondary",
|
|
157
|
+
themeKey: "incorrect-secondary",
|
|
158
|
+
fallback: e.INCORRECT_SECONDARY
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
variableName: "--pie-incorrect-icon",
|
|
162
|
+
themeKey: "incorrect-icon",
|
|
163
|
+
fallback: e.INCORRECT_WITH_ICON
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
variableName: "--pie-missing",
|
|
167
|
+
themeKey: "warning",
|
|
168
|
+
fallback: e.MISSING
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
variableName: "--pie-missing-icon",
|
|
172
|
+
themeKey: "missing-icon",
|
|
173
|
+
fallback: e.MISSING_WITH_ICON
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
variableName: "--pie-disabled",
|
|
177
|
+
themeKey: "disabled",
|
|
178
|
+
fallback: e.DISABLED
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
variableName: "--pie-disabled-secondary",
|
|
182
|
+
themeKey: "disabled-secondary",
|
|
183
|
+
fallback: e.DISABLED_SECONDARY
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
variableName: "--pie-border",
|
|
187
|
+
themeKey: "border",
|
|
188
|
+
fallback: e.BORDER
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
variableName: "--pie-border-light",
|
|
192
|
+
themeKey: "border-light",
|
|
193
|
+
fallback: e.BORDER_LIGHT
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
variableName: "--pie-border-dark",
|
|
197
|
+
themeKey: "border-dark",
|
|
198
|
+
fallback: e.BORDER_DARK
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
variableName: "--pie-border-gray",
|
|
202
|
+
themeKey: "border-gray",
|
|
203
|
+
fallback: e.BORDER_GRAY
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
variableName: "--pie-focus-checked",
|
|
207
|
+
themeKey: "focus-checked",
|
|
208
|
+
fallback: e.FOCUS_CHECKED
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
variableName: "--pie-focus-checked-border",
|
|
212
|
+
themeKey: "focus-checked-border",
|
|
213
|
+
fallback: e.FOCUS_CHECKED_BORDER
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
variableName: "--pie-focus-unchecked",
|
|
217
|
+
themeKey: "focus-unchecked",
|
|
218
|
+
fallback: e.FOCUS_UNCHECKED
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
variableName: "--pie-focus-unchecked-border",
|
|
222
|
+
themeKey: "focus-unchecked-border",
|
|
223
|
+
fallback: e.FOCUS_UNCHECKED_BORDER
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
variableName: "--pie-blue-grey-100",
|
|
227
|
+
themeKey: "blue-grey-100",
|
|
228
|
+
fallback: e.BLUE_GREY100
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
variableName: "--pie-blue-grey-300",
|
|
232
|
+
themeKey: "blue-grey-300",
|
|
233
|
+
fallback: e.BLUE_GREY300
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
variableName: "--pie-blue-grey-600",
|
|
237
|
+
themeKey: "blue-grey-600",
|
|
238
|
+
fallback: e.BLUE_GREY600
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
variableName: "--pie-blue-grey-900",
|
|
242
|
+
themeKey: "blue-grey-900",
|
|
243
|
+
fallback: e.BLUE_GREY900
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
variableName: "--pie-black",
|
|
247
|
+
themeKey: "black",
|
|
248
|
+
fallback: e.BLACK
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
variableName: "--pie-white",
|
|
252
|
+
themeKey: "white",
|
|
253
|
+
fallback: e.WHITE
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
variableName: "--choice-input-color",
|
|
257
|
+
themeKey: "choice-input-color",
|
|
258
|
+
fallback: e.CHOICE_INPUT_COLOR
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
variableName: "--choice-input-selected-color",
|
|
262
|
+
themeKey: "choice-input-selected-color",
|
|
263
|
+
fallback: e.CHOICE_INPUT_SELECTED_COLOR
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
variableName: "--choice-input-disabled-color",
|
|
267
|
+
themeKey: "choice-input-disabled-color",
|
|
268
|
+
fallback: e.CHOICE_INPUT_DISABLED_COLOR
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
variableName: "--feedback-correct-bg-color",
|
|
272
|
+
themeKey: "feedback-correct-bg",
|
|
273
|
+
fallback: e.FEEDBACK_CORRECT_BG
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
variableName: "--feedback-incorrect-bg-color",
|
|
277
|
+
themeKey: "feedback-incorrect-bg",
|
|
278
|
+
fallback: e.FEEDBACK_INCORRECT_BG
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
variableName: "--before-right",
|
|
282
|
+
themeKey: "annotation-pointer-right",
|
|
283
|
+
fallback: e.ANNOTATION_POINTER_RIGHT
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
variableName: "--before-top",
|
|
287
|
+
themeKey: "annotation-pointer-top",
|
|
288
|
+
fallback: e.ANNOTATION_POINTER_TOP
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
variableName: "--before-border-width",
|
|
292
|
+
themeKey: "annotation-pointer-border-width",
|
|
293
|
+
fallback: e.ANNOTATION_POINTER_BORDER_WIDTH
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
variableName: "--before-border-color",
|
|
297
|
+
themeKey: "annotation-pointer-border-color",
|
|
298
|
+
fallback: e.ANNOTATION_POINTER_BORDER_COLOR
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
variableName: "--arrow-color",
|
|
302
|
+
themeKey: "arrow-color",
|
|
303
|
+
fallback: e.ARROW_COLOR
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
variableName: "--tick-color",
|
|
307
|
+
themeKey: "tick-color",
|
|
308
|
+
fallback: e.TICK_COLOR
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
variableName: "--line-stroke",
|
|
312
|
+
themeKey: "line-stroke",
|
|
313
|
+
fallback: e.LINE_STROKE
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
variableName: "--point-fill",
|
|
317
|
+
themeKey: "point-fill",
|
|
318
|
+
fallback: e.POINT_FILL
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
variableName: "--point-stroke",
|
|
322
|
+
themeKey: "point-stroke",
|
|
323
|
+
fallback: e.POINT_STROKE
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
variableName: "--correct-answer-toggle-label-color",
|
|
327
|
+
themeKey: "correct-answer-toggle-label-color",
|
|
328
|
+
fallback: e.CORRECT_ANSWER_TOGGLE_LABEL_COLOR
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
variableName: "--pie-primary-text",
|
|
332
|
+
themeKey: "primary-text",
|
|
333
|
+
fallback: e.PRIMARY_TEXT
|
|
334
|
+
}
|
|
335
|
+
], n = "#FF6F00", r = {
|
|
336
|
+
"base-content": "#1a202c",
|
|
337
|
+
"base-100": "#ffffff",
|
|
338
|
+
"base-200": "#f7fafc",
|
|
339
|
+
"base-300": "#e2e8f0",
|
|
340
|
+
primary: n,
|
|
341
|
+
"primary-light": "#FFA726",
|
|
342
|
+
"primary-dark": "#E65100",
|
|
343
|
+
"faded-primary": "#FFF3E0",
|
|
344
|
+
secondary: "#1E88E5",
|
|
345
|
+
"secondary-light": "#64B5F6",
|
|
346
|
+
"secondary-dark": "#1565C0",
|
|
347
|
+
tertiary: "#3949AB",
|
|
348
|
+
"tertiary-light": "#9FA8DA",
|
|
349
|
+
success: "#43A047",
|
|
350
|
+
"correct-secondary": "#E8F5E9",
|
|
351
|
+
"correct-tertiary": "#388E3C",
|
|
352
|
+
"correct-icon": "#2E7D32",
|
|
353
|
+
error: "#E53935",
|
|
354
|
+
"incorrect-secondary": "#FFEBEE",
|
|
355
|
+
"incorrect-icon": "#C62828",
|
|
356
|
+
warning: "#F57C00",
|
|
357
|
+
"missing-icon": "#757575",
|
|
358
|
+
disabled: "#9E9E9E",
|
|
359
|
+
"disabled-secondary": "#E0E0E0",
|
|
360
|
+
"background-dark": "#F5F5F5",
|
|
361
|
+
"secondary-background": "#FAFAFA",
|
|
362
|
+
"dropdown-background": "#ffffff",
|
|
363
|
+
border: "#BDBDBD",
|
|
364
|
+
"border-light": "#E0E0E0",
|
|
365
|
+
"border-dark": "#757575",
|
|
366
|
+
"border-gray": "#9E9E9E",
|
|
367
|
+
"focus-checked": "#BBDEFB",
|
|
368
|
+
"focus-checked-border": "#1976D2",
|
|
369
|
+
"focus-unchecked": "#E0E0E0",
|
|
370
|
+
"focus-unchecked-border": "#757575",
|
|
371
|
+
"blue-grey-100": "#F3F5F7",
|
|
372
|
+
"blue-grey-300": "#C0C3CF",
|
|
373
|
+
"blue-grey-600": "#7E8494",
|
|
374
|
+
"blue-grey-900": "#152452",
|
|
375
|
+
black: "#000000",
|
|
376
|
+
white: "#ffffff",
|
|
377
|
+
"choice-input-color": "#1a202c",
|
|
378
|
+
"choice-input-selected-color": n,
|
|
379
|
+
"choice-input-disabled-color": "#9E9E9E",
|
|
380
|
+
"feedback-correct-bg": "#E8F5E9",
|
|
381
|
+
"feedback-incorrect-bg": "#FFEBEE",
|
|
382
|
+
"annotation-pointer-border-color": "#81C784",
|
|
383
|
+
"arrow-color": "#FB8C00",
|
|
384
|
+
"tick-color": "#616161",
|
|
385
|
+
"line-stroke": "#BDBDBD",
|
|
386
|
+
"point-fill": n,
|
|
387
|
+
"point-stroke": "#ffffff",
|
|
388
|
+
"correct-answer-toggle-label-color": "#1a202c",
|
|
389
|
+
"primary-text": "#1a202c"
|
|
32
390
|
}, i = {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
// #F48FB1
|
|
88
|
-
SECONDARY_DARK: E[900],
|
|
89
|
-
// #880E4F
|
|
90
|
-
TERTIARY: "#146EB3",
|
|
91
|
-
TERTIARY_LIGHT: "#D0E2F0",
|
|
92
|
-
BACKGROUND: "rgba(255,255,255,0)",
|
|
93
|
-
BACKGROUND_DARK: "#ECEDF1",
|
|
94
|
-
DROPDOWN_BACKGROUND: "#E0E1E6",
|
|
95
|
-
SECONDARY_BACKGROUND: "rgba(241,241,241,1)",
|
|
96
|
-
BORDER: "#9A9A9A",
|
|
97
|
-
BORDER_LIGHT: "#D1D1D1",
|
|
98
|
-
BORDER_DARK: "#646464",
|
|
99
|
-
BORDER_GRAY: "#7E8494",
|
|
100
|
-
BLACK: "#000000",
|
|
101
|
-
WHITE: "#ffffff",
|
|
102
|
-
TRANSPARENT: "transparent",
|
|
103
|
-
FOCUS_CHECKED: "#BBDEFB",
|
|
104
|
-
FOCUS_CHECKED_BORDER: "#1565C0",
|
|
105
|
-
FOCUS_UNCHECKED: "#E0E0E0",
|
|
106
|
-
FOCUS_UNCHECKED_BORDER: "#757575",
|
|
107
|
-
BLUE_GREY100: "#F3F5F7",
|
|
108
|
-
BLUE_GREY300: "#C0C3CF",
|
|
109
|
-
BLUE_GREY600: "#7E8494",
|
|
110
|
-
BLUE_GREY900: "#152452",
|
|
111
|
-
FADED_PRIMARY: "#DCDAFB",
|
|
112
|
-
// Component-specific colors (formerly ad-hoc, now formalized)
|
|
113
|
-
// Choice inputs
|
|
114
|
-
CHOICE_INPUT_COLOR: "black",
|
|
115
|
-
// References TEXT
|
|
116
|
-
CHOICE_INPUT_SELECTED_COLOR: s[500],
|
|
117
|
-
// References PRIMARY
|
|
118
|
-
CHOICE_INPUT_DISABLED_COLOR: "grey",
|
|
119
|
-
// References DISABLED
|
|
120
|
-
// Feedback
|
|
121
|
-
FEEDBACK_CORRECT_BG: i[500],
|
|
122
|
-
// References CORRECT
|
|
123
|
-
FEEDBACK_INCORRECT_BG: c[500],
|
|
124
|
-
// References INCORRECT
|
|
125
|
-
// Annotations (extended-text-entry)
|
|
126
|
-
ANNOTATION_POINTER_RIGHT: "100%",
|
|
127
|
-
ANNOTATION_POINTER_TOP: "5px",
|
|
128
|
-
ANNOTATION_POINTER_BORDER_WIDTH: "7px",
|
|
129
|
-
ANNOTATION_POINTER_BORDER_COLOR: "rgb(153, 255, 153)",
|
|
130
|
-
// Number line / graphing
|
|
131
|
-
ARROW_COLOR: c[500],
|
|
132
|
-
// Dynamic, using INCORRECT as default
|
|
133
|
-
TICK_COLOR: "#ffffff",
|
|
134
|
-
LINE_STROKE: "#ffffff",
|
|
135
|
-
POINT_FILL: "#000000",
|
|
136
|
-
POINT_STROKE: "#ffffff",
|
|
137
|
-
CORRECT_ANSWER_TOGGLE_LABEL_COLOR: "#ffffff",
|
|
138
|
-
// Utility
|
|
139
|
-
PRIMARY_TEXT: "black"
|
|
140
|
-
// References TEXT
|
|
141
|
-
}, B = [
|
|
142
|
-
// Core text and background
|
|
143
|
-
{
|
|
144
|
-
variableName: "--pie-text",
|
|
145
|
-
themeKey: "base-content",
|
|
146
|
-
fallback: a.TEXT
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
variableName: "--pie-background",
|
|
150
|
-
themeKey: "base-100",
|
|
151
|
-
fallback: a.BACKGROUND
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
variableName: "--pie-background-dark",
|
|
155
|
-
themeKey: "background-dark",
|
|
156
|
-
fallback: a.BACKGROUND_DARK
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
variableName: "--pie-secondary-background",
|
|
160
|
-
themeKey: "secondary-background",
|
|
161
|
-
fallback: a.SECONDARY_BACKGROUND
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
variableName: "--pie-dropdown-background",
|
|
165
|
-
themeKey: "dropdown-background",
|
|
166
|
-
fallback: a.DROPDOWN_BACKGROUND
|
|
167
|
-
},
|
|
168
|
-
// Primary colors
|
|
169
|
-
{
|
|
170
|
-
variableName: "--pie-primary",
|
|
171
|
-
themeKey: "primary",
|
|
172
|
-
fallback: a.PRIMARY
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
variableName: "--pie-primary-light",
|
|
176
|
-
themeKey: "primary-light",
|
|
177
|
-
fallback: a.PRIMARY_LIGHT
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
variableName: "--pie-primary-dark",
|
|
181
|
-
themeKey: "primary-dark",
|
|
182
|
-
fallback: a.PRIMARY_DARK
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
variableName: "--pie-faded-primary",
|
|
186
|
-
themeKey: "faded-primary",
|
|
187
|
-
fallback: a.FADED_PRIMARY
|
|
188
|
-
},
|
|
189
|
-
// Secondary colors
|
|
190
|
-
{
|
|
191
|
-
variableName: "--pie-secondary",
|
|
192
|
-
themeKey: "secondary",
|
|
193
|
-
fallback: a.SECONDARY
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
variableName: "--pie-secondary-light",
|
|
197
|
-
themeKey: "secondary-light",
|
|
198
|
-
fallback: a.SECONDARY_LIGHT
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
variableName: "--pie-secondary-dark",
|
|
202
|
-
themeKey: "secondary-dark",
|
|
203
|
-
fallback: a.SECONDARY_DARK
|
|
204
|
-
},
|
|
205
|
-
// Tertiary colors
|
|
206
|
-
{
|
|
207
|
-
variableName: "--pie-tertiary",
|
|
208
|
-
themeKey: "tertiary",
|
|
209
|
-
fallback: a.TERTIARY
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
variableName: "--pie-tertiary-light",
|
|
213
|
-
themeKey: "tertiary-light",
|
|
214
|
-
fallback: a.TERTIARY_LIGHT
|
|
215
|
-
},
|
|
216
|
-
// Correct (success) colors
|
|
217
|
-
{
|
|
218
|
-
variableName: "--pie-correct",
|
|
219
|
-
themeKey: "success",
|
|
220
|
-
fallback: a.CORRECT
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
variableName: "--pie-correct-secondary",
|
|
224
|
-
themeKey: "correct-secondary",
|
|
225
|
-
fallback: a.CORRECT_SECONDARY
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
variableName: "--pie-correct-tertiary",
|
|
229
|
-
themeKey: "correct-tertiary",
|
|
230
|
-
fallback: a.CORRECT_TERTIARY
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
variableName: "--pie-correct-icon",
|
|
234
|
-
themeKey: "correct-icon",
|
|
235
|
-
fallback: a.CORRECT_WITH_ICON
|
|
236
|
-
},
|
|
237
|
-
// Incorrect (error) colors
|
|
238
|
-
{
|
|
239
|
-
variableName: "--pie-incorrect",
|
|
240
|
-
themeKey: "error",
|
|
241
|
-
fallback: a.INCORRECT
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
variableName: "--pie-incorrect-secondary",
|
|
245
|
-
themeKey: "incorrect-secondary",
|
|
246
|
-
fallback: a.INCORRECT_SECONDARY
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
variableName: "--pie-incorrect-icon",
|
|
250
|
-
themeKey: "incorrect-icon",
|
|
251
|
-
fallback: a.INCORRECT_WITH_ICON
|
|
252
|
-
},
|
|
253
|
-
// Missing (warning) colors
|
|
254
|
-
{
|
|
255
|
-
variableName: "--pie-missing",
|
|
256
|
-
themeKey: "warning",
|
|
257
|
-
fallback: a.MISSING
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
variableName: "--pie-missing-icon",
|
|
261
|
-
themeKey: "missing-icon",
|
|
262
|
-
fallback: a.MISSING_WITH_ICON
|
|
263
|
-
},
|
|
264
|
-
// Disabled colors
|
|
265
|
-
{
|
|
266
|
-
variableName: "--pie-disabled",
|
|
267
|
-
themeKey: "disabled",
|
|
268
|
-
fallback: a.DISABLED
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
variableName: "--pie-disabled-secondary",
|
|
272
|
-
themeKey: "disabled-secondary",
|
|
273
|
-
fallback: a.DISABLED_SECONDARY
|
|
274
|
-
},
|
|
275
|
-
// Border colors
|
|
276
|
-
{
|
|
277
|
-
variableName: "--pie-border",
|
|
278
|
-
themeKey: "border",
|
|
279
|
-
fallback: a.BORDER
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
variableName: "--pie-border-light",
|
|
283
|
-
themeKey: "border-light",
|
|
284
|
-
fallback: a.BORDER_LIGHT
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
variableName: "--pie-border-dark",
|
|
288
|
-
themeKey: "border-dark",
|
|
289
|
-
fallback: a.BORDER_DARK
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
variableName: "--pie-border-gray",
|
|
293
|
-
themeKey: "border-gray",
|
|
294
|
-
fallback: a.BORDER_GRAY
|
|
295
|
-
},
|
|
296
|
-
// Focus states
|
|
297
|
-
{
|
|
298
|
-
variableName: "--pie-focus-checked",
|
|
299
|
-
themeKey: "focus-checked",
|
|
300
|
-
fallback: a.FOCUS_CHECKED
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
variableName: "--pie-focus-checked-border",
|
|
304
|
-
themeKey: "focus-checked-border",
|
|
305
|
-
fallback: a.FOCUS_CHECKED_BORDER
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
variableName: "--pie-focus-unchecked",
|
|
309
|
-
themeKey: "focus-unchecked",
|
|
310
|
-
fallback: a.FOCUS_UNCHECKED
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
variableName: "--pie-focus-unchecked-border",
|
|
314
|
-
themeKey: "focus-unchecked-border",
|
|
315
|
-
fallback: a.FOCUS_UNCHECKED_BORDER
|
|
316
|
-
},
|
|
317
|
-
// Blue-grey palette
|
|
318
|
-
{
|
|
319
|
-
variableName: "--pie-blue-grey-100",
|
|
320
|
-
themeKey: "blue-grey-100",
|
|
321
|
-
fallback: a.BLUE_GREY100
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
variableName: "--pie-blue-grey-300",
|
|
325
|
-
themeKey: "blue-grey-300",
|
|
326
|
-
fallback: a.BLUE_GREY300
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
variableName: "--pie-blue-grey-600",
|
|
330
|
-
themeKey: "blue-grey-600",
|
|
331
|
-
fallback: a.BLUE_GREY600
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
variableName: "--pie-blue-grey-900",
|
|
335
|
-
themeKey: "blue-grey-900",
|
|
336
|
-
fallback: a.BLUE_GREY900
|
|
337
|
-
},
|
|
338
|
-
// Base colors
|
|
339
|
-
{ variableName: "--pie-black", themeKey: "black", fallback: a.BLACK },
|
|
340
|
-
{ variableName: "--pie-white", themeKey: "white", fallback: a.WHITE },
|
|
341
|
-
// Component-specific variables (formerly ad-hoc, now formalized for comprehensive theming)
|
|
342
|
-
// Choice inputs (multiple-choice, likert, matrix)
|
|
343
|
-
{
|
|
344
|
-
variableName: "--choice-input-color",
|
|
345
|
-
themeKey: "choice-input-color",
|
|
346
|
-
fallback: a.CHOICE_INPUT_COLOR
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
variableName: "--choice-input-selected-color",
|
|
350
|
-
themeKey: "choice-input-selected-color",
|
|
351
|
-
fallback: a.CHOICE_INPUT_SELECTED_COLOR
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
variableName: "--choice-input-disabled-color",
|
|
355
|
-
themeKey: "choice-input-disabled-color",
|
|
356
|
-
fallback: a.CHOICE_INPUT_DISABLED_COLOR
|
|
357
|
-
},
|
|
358
|
-
// Feedback (multiple-choice, match-list)
|
|
359
|
-
{
|
|
360
|
-
variableName: "--feedback-correct-bg-color",
|
|
361
|
-
themeKey: "feedback-correct-bg",
|
|
362
|
-
fallback: a.FEEDBACK_CORRECT_BG
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
variableName: "--feedback-incorrect-bg-color",
|
|
366
|
-
themeKey: "feedback-incorrect-bg",
|
|
367
|
-
fallback: a.FEEDBACK_INCORRECT_BG
|
|
368
|
-
},
|
|
369
|
-
// Annotations (extended-text-entry)
|
|
370
|
-
{
|
|
371
|
-
variableName: "--before-right",
|
|
372
|
-
themeKey: "annotation-pointer-right",
|
|
373
|
-
fallback: a.ANNOTATION_POINTER_RIGHT
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
variableName: "--before-top",
|
|
377
|
-
themeKey: "annotation-pointer-top",
|
|
378
|
-
fallback: a.ANNOTATION_POINTER_TOP
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
variableName: "--before-border-width",
|
|
382
|
-
themeKey: "annotation-pointer-border-width",
|
|
383
|
-
fallback: a.ANNOTATION_POINTER_BORDER_WIDTH
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
variableName: "--before-border-color",
|
|
387
|
-
themeKey: "annotation-pointer-border-color",
|
|
388
|
-
fallback: a.ANNOTATION_POINTER_BORDER_COLOR
|
|
389
|
-
},
|
|
390
|
-
// Number line / graphing (number-line)
|
|
391
|
-
{
|
|
392
|
-
variableName: "--arrow-color",
|
|
393
|
-
themeKey: "arrow-color",
|
|
394
|
-
fallback: a.ARROW_COLOR
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
variableName: "--tick-color",
|
|
398
|
-
themeKey: "tick-color",
|
|
399
|
-
fallback: a.TICK_COLOR
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
variableName: "--line-stroke",
|
|
403
|
-
themeKey: "line-stroke",
|
|
404
|
-
fallback: a.LINE_STROKE
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
variableName: "--point-fill",
|
|
408
|
-
themeKey: "point-fill",
|
|
409
|
-
fallback: a.POINT_FILL
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
variableName: "--point-stroke",
|
|
413
|
-
themeKey: "point-stroke",
|
|
414
|
-
fallback: a.POINT_STROKE
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
variableName: "--correct-answer-toggle-label-color",
|
|
418
|
-
themeKey: "correct-answer-toggle-label-color",
|
|
419
|
-
fallback: a.CORRECT_ANSWER_TOGGLE_LABEL_COLOR
|
|
420
|
-
},
|
|
421
|
-
// Utility
|
|
422
|
-
{
|
|
423
|
-
variableName: "--pie-primary-text",
|
|
424
|
-
themeKey: "primary-text",
|
|
425
|
-
fallback: a.PRIMARY_TEXT
|
|
426
|
-
}
|
|
427
|
-
], p = c[800], P = {
|
|
428
|
-
// Core text and backgrounds
|
|
429
|
-
"base-content": "#1a202c",
|
|
430
|
-
// Dark grey for text
|
|
431
|
-
"base-100": "#ffffff",
|
|
432
|
-
// White background
|
|
433
|
-
"base-200": "#f7fafc",
|
|
434
|
-
// Very light grey
|
|
435
|
-
"base-300": "#e2e8f0",
|
|
436
|
-
// Light grey for borders
|
|
437
|
-
// PIE Brand colors (orange primary)
|
|
438
|
-
primary: p,
|
|
439
|
-
// #FF6F00
|
|
440
|
-
"primary-light": c[400],
|
|
441
|
-
// #FFA726
|
|
442
|
-
"primary-dark": c[900],
|
|
443
|
-
// #E65100
|
|
444
|
-
"faded-primary": c[50],
|
|
445
|
-
// #FFF3E0
|
|
446
|
-
// Secondary colors (blue)
|
|
447
|
-
secondary: n[600],
|
|
448
|
-
// #1E88E5
|
|
449
|
-
"secondary-light": n[300],
|
|
450
|
-
// #64B5F6
|
|
451
|
-
"secondary-dark": n[800],
|
|
452
|
-
// #1565C0
|
|
453
|
-
// Tertiary colors (indigo)
|
|
454
|
-
tertiary: s[600],
|
|
455
|
-
// #3949AB
|
|
456
|
-
"tertiary-light": s[200],
|
|
457
|
-
// #9FA8DA
|
|
458
|
-
// Status colors - Correct (green)
|
|
459
|
-
success: i[600],
|
|
460
|
-
// #43A047
|
|
461
|
-
"correct-secondary": i[50],
|
|
462
|
-
// #E8F5E9
|
|
463
|
-
"correct-tertiary": i[700],
|
|
464
|
-
// #388E3C
|
|
465
|
-
"correct-icon": i[800],
|
|
466
|
-
// #2E7D32
|
|
467
|
-
// Status colors - Incorrect (red)
|
|
468
|
-
error: b[600],
|
|
469
|
-
// #E53935
|
|
470
|
-
"incorrect-secondary": b[50],
|
|
471
|
-
// #FFEBEE
|
|
472
|
-
"incorrect-icon": b[800],
|
|
473
|
-
// #C62828
|
|
474
|
-
// Status colors - Missing/Warning (amber)
|
|
475
|
-
warning: c[700],
|
|
476
|
-
// #F57C00
|
|
477
|
-
"missing-icon": t[600],
|
|
478
|
-
// #757575
|
|
479
|
-
// Disabled states
|
|
480
|
-
disabled: t[500],
|
|
481
|
-
// #9E9E9E
|
|
482
|
-
"disabled-secondary": t[300],
|
|
483
|
-
// #E0E0E0
|
|
484
|
-
// Backgrounds
|
|
485
|
-
"background-dark": t[100],
|
|
486
|
-
// #F5F5F5
|
|
487
|
-
"secondary-background": t[50],
|
|
488
|
-
// #FAFAFA
|
|
489
|
-
"dropdown-background": "#ffffff",
|
|
490
|
-
// Borders
|
|
491
|
-
border: t[400],
|
|
492
|
-
// #BDBDBD
|
|
493
|
-
"border-light": t[300],
|
|
494
|
-
// #E0E0E0
|
|
495
|
-
"border-dark": t[600],
|
|
496
|
-
// #757575
|
|
497
|
-
"border-gray": t[500],
|
|
498
|
-
// #9E9E9E
|
|
499
|
-
// Focus states
|
|
500
|
-
"focus-checked": n[100],
|
|
501
|
-
// #BBDEFB
|
|
502
|
-
"focus-checked-border": n[700],
|
|
503
|
-
// #1976D2
|
|
504
|
-
"focus-unchecked": t[300],
|
|
505
|
-
// #E0E0E0
|
|
506
|
-
"focus-unchecked-border": t[600],
|
|
507
|
-
// #757575
|
|
508
|
-
// Blue-grey palette
|
|
509
|
-
"blue-grey-100": "#F3F5F7",
|
|
510
|
-
"blue-grey-300": "#C0C3CF",
|
|
511
|
-
"blue-grey-600": "#7E8494",
|
|
512
|
-
"blue-grey-900": "#152452",
|
|
513
|
-
// Absolute colors
|
|
514
|
-
black: "#000000",
|
|
515
|
-
white: "#ffffff",
|
|
516
|
-
// Component-specific
|
|
517
|
-
"choice-input-color": "#1a202c",
|
|
518
|
-
"choice-input-selected-color": p,
|
|
519
|
-
"choice-input-disabled-color": t[500],
|
|
520
|
-
"feedback-correct-bg": i[50],
|
|
521
|
-
"feedback-incorrect-bg": b[50],
|
|
522
|
-
"annotation-pointer-border-color": i[300],
|
|
523
|
-
"arrow-color": c[600],
|
|
524
|
-
"tick-color": t[700],
|
|
525
|
-
"line-stroke": t[400],
|
|
526
|
-
"point-fill": p,
|
|
527
|
-
"point-stroke": "#ffffff",
|
|
528
|
-
"correct-answer-toggle-label-color": "#1a202c",
|
|
529
|
-
"primary-text": "#1a202c"
|
|
530
|
-
}, S = {
|
|
531
|
-
// Core text and backgrounds
|
|
532
|
-
"base-content": "#e2e8f0",
|
|
533
|
-
// Light grey for text
|
|
534
|
-
"base-100": "#1a202c",
|
|
535
|
-
// Dark blue-grey background
|
|
536
|
-
"base-200": "#2d3748",
|
|
537
|
-
// Medium dark grey
|
|
538
|
-
"base-300": "#4a5568",
|
|
539
|
-
// Medium grey for borders
|
|
540
|
-
// PIE Brand colors (orange primary - brighter for dark mode)
|
|
541
|
-
primary: c[500],
|
|
542
|
-
// #FF9800 (brighter than light theme)
|
|
543
|
-
"primary-light": c[300],
|
|
544
|
-
// #FFB74D
|
|
545
|
-
"primary-dark": c[700],
|
|
546
|
-
// #F57C00
|
|
547
|
-
"faded-primary": c[900] + "40",
|
|
548
|
-
// #E65100 with opacity
|
|
549
|
-
// Secondary colors (cyan)
|
|
550
|
-
secondary: n[400],
|
|
551
|
-
// #42A5F5
|
|
552
|
-
"secondary-light": n[200],
|
|
553
|
-
// #90CAF9
|
|
554
|
-
"secondary-dark": n[600],
|
|
555
|
-
// #1E88E5
|
|
556
|
-
// Tertiary colors (indigo)
|
|
557
|
-
tertiary: s[400],
|
|
558
|
-
// #5C6BC0
|
|
559
|
-
"tertiary-light": s[300],
|
|
560
|
-
// #7986CB
|
|
561
|
-
// Status colors - Correct (green)
|
|
562
|
-
success: i[500],
|
|
563
|
-
// #4CAF50
|
|
564
|
-
"correct-secondary": i[900] + "40",
|
|
565
|
-
// #1B5E20 with opacity
|
|
566
|
-
"correct-tertiary": i[600],
|
|
567
|
-
// #43A047
|
|
568
|
-
"correct-icon": i[400],
|
|
569
|
-
// #66BB6A
|
|
570
|
-
// Status colors - Incorrect (red)
|
|
571
|
-
error: b[500],
|
|
572
|
-
// #F44336
|
|
573
|
-
"incorrect-secondary": b[900] + "40",
|
|
574
|
-
// #B71C1C with opacity
|
|
575
|
-
"incorrect-icon": b[400],
|
|
576
|
-
// #EF5350
|
|
577
|
-
// Status colors - Missing/Warning
|
|
578
|
-
warning: c[600],
|
|
579
|
-
// #FB8C00
|
|
580
|
-
"missing-icon": t[500],
|
|
581
|
-
// #9E9E9E
|
|
582
|
-
// Disabled states
|
|
583
|
-
disabled: t[600],
|
|
584
|
-
// #757575
|
|
585
|
-
"disabled-secondary": t[800],
|
|
586
|
-
// #424242
|
|
587
|
-
// Backgrounds
|
|
588
|
-
"background-dark": "#0f1419",
|
|
589
|
-
// Very dark background
|
|
590
|
-
"secondary-background": "#2d3748",
|
|
591
|
-
// Medium dark background
|
|
592
|
-
"dropdown-background": "#2d3748",
|
|
593
|
-
// Borders
|
|
594
|
-
border: t[700],
|
|
595
|
-
// #616161
|
|
596
|
-
"border-light": t[800],
|
|
597
|
-
// #424242
|
|
598
|
-
"border-dark": t[500],
|
|
599
|
-
// #9E9E9E
|
|
600
|
-
"border-gray": t[600],
|
|
601
|
-
// #757575
|
|
602
|
-
// Focus states
|
|
603
|
-
"focus-checked": n[900],
|
|
604
|
-
// #0D47A1
|
|
605
|
-
"focus-checked-border": n[500],
|
|
606
|
-
// #2196F3
|
|
607
|
-
"focus-unchecked": t[800],
|
|
608
|
-
// #424242
|
|
609
|
-
"focus-unchecked-border": t[500],
|
|
610
|
-
// #9E9E9E
|
|
611
|
-
// Blue-grey palette
|
|
612
|
-
"blue-grey-100": "#37474F",
|
|
613
|
-
"blue-grey-300": "#546E7A",
|
|
614
|
-
"blue-grey-600": "#78909C",
|
|
615
|
-
"blue-grey-900": "#ECEFF1",
|
|
616
|
-
// Absolute colors
|
|
617
|
-
black: "#000000",
|
|
618
|
-
white: "#ffffff",
|
|
619
|
-
// Component-specific
|
|
620
|
-
"choice-input-color": "#e2e8f0",
|
|
621
|
-
"choice-input-selected-color": c[500],
|
|
622
|
-
"choice-input-disabled-color": t[600],
|
|
623
|
-
"feedback-correct-bg": i[900] + "80",
|
|
624
|
-
// With higher opacity for visibility
|
|
625
|
-
"feedback-incorrect-bg": b[900] + "80",
|
|
626
|
-
"annotation-pointer-border-color": i[600],
|
|
627
|
-
"arrow-color": c[500],
|
|
628
|
-
"tick-color": t[300],
|
|
629
|
-
"line-stroke": t[600],
|
|
630
|
-
"point-fill": c[500],
|
|
631
|
-
"point-stroke": t[900],
|
|
632
|
-
"correct-answer-toggle-label-color": "#e2e8f0",
|
|
633
|
-
"primary-text": "#e2e8f0"
|
|
391
|
+
"base-content": "#e2e8f0",
|
|
392
|
+
"base-100": "#1a202c",
|
|
393
|
+
"base-200": "#2d3748",
|
|
394
|
+
"base-300": "#4a5568",
|
|
395
|
+
primary: "#FF9800",
|
|
396
|
+
"primary-light": "#FFB74D",
|
|
397
|
+
"primary-dark": "#F57C00",
|
|
398
|
+
"faded-primary": "#E6510040",
|
|
399
|
+
secondary: "#42A5F5",
|
|
400
|
+
"secondary-light": "#90CAF9",
|
|
401
|
+
"secondary-dark": "#1E88E5",
|
|
402
|
+
tertiary: "#5C6BC0",
|
|
403
|
+
"tertiary-light": "#7986CB",
|
|
404
|
+
success: "#4CAF50",
|
|
405
|
+
"correct-secondary": "#1B5E2040",
|
|
406
|
+
"correct-tertiary": "#43A047",
|
|
407
|
+
"correct-icon": "#66BB6A",
|
|
408
|
+
error: "#F44336",
|
|
409
|
+
"incorrect-secondary": "#B71C1C40",
|
|
410
|
+
"incorrect-icon": "#EF5350",
|
|
411
|
+
warning: "#FB8C00",
|
|
412
|
+
"missing-icon": "#9E9E9E",
|
|
413
|
+
disabled: "#757575",
|
|
414
|
+
"disabled-secondary": "#424242",
|
|
415
|
+
"background-dark": "#0f1419",
|
|
416
|
+
"secondary-background": "#2d3748",
|
|
417
|
+
"dropdown-background": "#2d3748",
|
|
418
|
+
border: "#616161",
|
|
419
|
+
"border-light": "#424242",
|
|
420
|
+
"border-dark": "#9E9E9E",
|
|
421
|
+
"border-gray": "#757575",
|
|
422
|
+
"focus-checked": "#0D47A1",
|
|
423
|
+
"focus-checked-border": "#2196F3",
|
|
424
|
+
"focus-unchecked": "#424242",
|
|
425
|
+
"focus-unchecked-border": "#9E9E9E",
|
|
426
|
+
"blue-grey-100": "#37474F",
|
|
427
|
+
"blue-grey-300": "#546E7A",
|
|
428
|
+
"blue-grey-600": "#78909C",
|
|
429
|
+
"blue-grey-900": "#ECEFF1",
|
|
430
|
+
black: "#000000",
|
|
431
|
+
white: "#ffffff",
|
|
432
|
+
"choice-input-color": "#e2e8f0",
|
|
433
|
+
"choice-input-selected-color": "#FF9800",
|
|
434
|
+
"choice-input-disabled-color": "#757575",
|
|
435
|
+
"feedback-correct-bg": "#1B5E2080",
|
|
436
|
+
"feedback-incorrect-bg": "#B71C1C80",
|
|
437
|
+
"annotation-pointer-border-color": "#43A047",
|
|
438
|
+
"arrow-color": "#FF9800",
|
|
439
|
+
"tick-color": "#E0E0E0",
|
|
440
|
+
"line-stroke": "#757575",
|
|
441
|
+
"point-fill": "#FF9800",
|
|
442
|
+
"point-stroke": "#212121",
|
|
443
|
+
"correct-answer-toggle-label-color": "#e2e8f0",
|
|
444
|
+
"primary-text": "#e2e8f0"
|
|
634
445
|
};
|
|
635
|
-
function
|
|
636
|
-
|
|
446
|
+
function a(e) {
|
|
447
|
+
return e === "dark" ? i : r;
|
|
637
448
|
}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
449
|
+
var o = ["light", "dark"];
|
|
450
|
+
//#endregion
|
|
451
|
+
//#region src/css-variables.ts
|
|
452
|
+
function s(e, n) {
|
|
453
|
+
let r = {}, i = n?.mappings || t;
|
|
454
|
+
for (let t of i) {
|
|
455
|
+
let n = e[t.themeKey];
|
|
456
|
+
r[t.variableName] = n || t.fallback;
|
|
457
|
+
}
|
|
458
|
+
return r;
|
|
646
459
|
}
|
|
647
|
-
function
|
|
648
|
-
|
|
460
|
+
function c(e) {
|
|
461
|
+
return Object.entries(e).map(([e, t]) => `${e}: ${t}`).join("; ");
|
|
649
462
|
}
|
|
650
|
-
function
|
|
651
|
-
|
|
463
|
+
function l(e) {
|
|
464
|
+
return e;
|
|
652
465
|
}
|
|
653
|
-
function
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
r.style.setProperty(o, d);
|
|
662
|
-
});
|
|
466
|
+
function u(e, t = typeof document < "u" ? document.documentElement : null) {
|
|
467
|
+
if (!t) {
|
|
468
|
+
console.warn("injectCssVariables: No target element available (running in non-browser environment)");
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
471
|
+
Object.entries(e).forEach(([e, n]) => {
|
|
472
|
+
t.style.setProperty(e, n);
|
|
473
|
+
});
|
|
663
474
|
}
|
|
664
|
-
function
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
475
|
+
function d(e, t = typeof document < "u" ? document.documentElement : null) {
|
|
476
|
+
t && Object.keys(e).forEach((e) => {
|
|
477
|
+
t.style.removeProperty(e);
|
|
478
|
+
});
|
|
668
479
|
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
useThemePalette: o = !1,
|
|
672
|
-
injectCssVariables: d = !0,
|
|
673
|
-
preserveMuiDefaults: l = !0
|
|
674
|
-
} = r, f = {
|
|
675
|
-
typography: {
|
|
676
|
-
fontFamily: "inherit"
|
|
677
|
-
},
|
|
678
|
-
palette: l ? {
|
|
679
|
-
action: {
|
|
680
|
-
disabled: "rgba(0, 0, 0, 0.54)"
|
|
681
|
-
}
|
|
682
|
-
} : {}
|
|
683
|
-
};
|
|
684
|
-
return o && (f.palette = {
|
|
685
|
-
...f.palette,
|
|
686
|
-
primary: {
|
|
687
|
-
main: e.primary || "#3F51B5",
|
|
688
|
-
light: e["primary-light"],
|
|
689
|
-
dark: e["primary-dark"]
|
|
690
|
-
},
|
|
691
|
-
secondary: {
|
|
692
|
-
main: e.secondary || "#F50057",
|
|
693
|
-
light: e["secondary-light"],
|
|
694
|
-
dark: e["secondary-dark"]
|
|
695
|
-
},
|
|
696
|
-
success: {
|
|
697
|
-
main: e.success || "#4CAF50"
|
|
698
|
-
},
|
|
699
|
-
error: {
|
|
700
|
-
main: e.error || "#FF9800"
|
|
701
|
-
},
|
|
702
|
-
warning: {
|
|
703
|
-
main: e.warning || "#FFC107"
|
|
704
|
-
},
|
|
705
|
-
info: {
|
|
706
|
-
main: e.info || "#2196F3"
|
|
707
|
-
},
|
|
708
|
-
text: {
|
|
709
|
-
primary: e["base-content"] || "rgba(0, 0, 0, 0.87)"
|
|
710
|
-
},
|
|
711
|
-
background: {
|
|
712
|
-
default: e["base-100"] || "#fff",
|
|
713
|
-
paper: e["base-200"] || "#fff"
|
|
714
|
-
}
|
|
715
|
-
}), d && (f.components = {
|
|
716
|
-
MuiTypography: {
|
|
717
|
-
styleOverrides: {
|
|
718
|
-
root: {
|
|
719
|
-
fontFamily: "inherit",
|
|
720
|
-
color: l ? "inherit" : "var(--pie-text, inherit)"
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
},
|
|
724
|
-
MuiButton: {
|
|
725
|
-
styleOverrides: {
|
|
726
|
-
contained: l ? {
|
|
727
|
-
backgroundColor: "#e0e0e0",
|
|
728
|
-
color: "#000000",
|
|
729
|
-
"&:hover": {
|
|
730
|
-
backgroundColor: "#bdbdbd"
|
|
731
|
-
}
|
|
732
|
-
} : {
|
|
733
|
-
backgroundColor: "var(--pie-primary)",
|
|
734
|
-
color: "var(--pie-text)",
|
|
735
|
-
"&:hover": {
|
|
736
|
-
backgroundColor: "var(--pie-primary-dark)"
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
},
|
|
741
|
-
MuiTextField: {
|
|
742
|
-
styleOverrides: {
|
|
743
|
-
root: {
|
|
744
|
-
"& .MuiInputBase-root": {
|
|
745
|
-
color: d && !l ? "var(--pie-text)" : void 0
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
},
|
|
750
|
-
MuiSelect: {
|
|
751
|
-
styleOverrides: {
|
|
752
|
-
root: {
|
|
753
|
-
color: d && !l ? "var(--pie-text)" : void 0
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
}), k(f);
|
|
758
|
-
}
|
|
759
|
-
function V(e, r) {
|
|
760
|
-
return k({
|
|
761
|
-
...e,
|
|
762
|
-
palette: {
|
|
763
|
-
...e.palette,
|
|
764
|
-
primary: {
|
|
765
|
-
...e.palette.primary,
|
|
766
|
-
main: r.primary || e.palette.primary.main,
|
|
767
|
-
light: r["primary-light"] || e.palette.primary.light,
|
|
768
|
-
dark: r["primary-dark"] || e.palette.primary.dark
|
|
769
|
-
},
|
|
770
|
-
secondary: {
|
|
771
|
-
...e.palette.secondary,
|
|
772
|
-
main: r.secondary || e.palette.secondary.main,
|
|
773
|
-
light: r["secondary-light"] || e.palette.secondary.light,
|
|
774
|
-
dark: r["secondary-dark"] || e.palette.secondary.dark
|
|
775
|
-
},
|
|
776
|
-
text: {
|
|
777
|
-
...e.palette.text,
|
|
778
|
-
primary: r["base-content"] || e.palette.text.primary
|
|
779
|
-
},
|
|
780
|
-
background: {
|
|
781
|
-
...e.palette.background,
|
|
782
|
-
default: r["base-100"] || e.palette.background.default,
|
|
783
|
-
paper: r["base-200"] || e.palette.background.paper
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
const _ = D(void 0);
|
|
789
|
-
function x({ children: e, config: r }) {
|
|
790
|
-
const [o, d] = R(r.theme), [l, f] = R(
|
|
791
|
-
() => C(r.theme, { prefix: r.prefix, mappings: r.mappings })
|
|
792
|
-
), [u, h] = R(
|
|
793
|
-
() => N(r.theme, r.muiOptions)
|
|
794
|
-
);
|
|
795
|
-
g(() => {
|
|
796
|
-
const O = C(o, {
|
|
797
|
-
prefix: r.prefix,
|
|
798
|
-
mappings: r.mappings
|
|
799
|
-
});
|
|
800
|
-
f(O), h(N(o, r.muiOptions)), r.injectGlobally && L(O);
|
|
801
|
-
}, [o, r.prefix, r.mappings, r.muiOptions, r.injectGlobally]);
|
|
802
|
-
const I = {
|
|
803
|
-
theme: o,
|
|
804
|
-
cssVariables: l,
|
|
805
|
-
muiTheme: u,
|
|
806
|
-
setTheme: d
|
|
807
|
-
};
|
|
808
|
-
return /* @__PURE__ */ y.createElement(_.Provider, { value: I }, /* @__PURE__ */ y.createElement(A, { injectFirst: !0 }, /* @__PURE__ */ y.createElement(T, { theme: u }, e)));
|
|
809
|
-
}
|
|
810
|
-
function m() {
|
|
811
|
-
const e = K(_);
|
|
812
|
-
if (!e)
|
|
813
|
-
throw new Error("usePieTheme must be used within a PieThemeProvider");
|
|
814
|
-
return e;
|
|
815
|
-
}
|
|
816
|
-
function F() {
|
|
817
|
-
const { cssVariables: e } = m();
|
|
818
|
-
return e;
|
|
819
|
-
}
|
|
820
|
-
function j() {
|
|
821
|
-
const e = F();
|
|
822
|
-
return v(() => e, [e]);
|
|
823
|
-
}
|
|
824
|
-
function X() {
|
|
825
|
-
const { theme: e } = m();
|
|
826
|
-
return e;
|
|
827
|
-
}
|
|
828
|
-
function $() {
|
|
829
|
-
const { muiTheme: e } = m();
|
|
830
|
-
return e;
|
|
831
|
-
}
|
|
832
|
-
function q() {
|
|
833
|
-
const { setTheme: e } = m();
|
|
834
|
-
return e;
|
|
835
|
-
}
|
|
836
|
-
export {
|
|
837
|
-
B as DEFAULT_CSS_MAPPINGS,
|
|
838
|
-
a as PIE_COLOR_DEFAULTS,
|
|
839
|
-
S as PIE_DARK_THEME,
|
|
840
|
-
P as PIE_LIGHT_THEME,
|
|
841
|
-
p as PIE_ORANGE,
|
|
842
|
-
U as PIE_THEME_NAMES,
|
|
843
|
-
_ as PieThemeContext,
|
|
844
|
-
x as PieThemeProvider,
|
|
845
|
-
N as createPieMuiTheme,
|
|
846
|
-
w as cssVariablesToReactStyle,
|
|
847
|
-
M as cssVariablesToStyleString,
|
|
848
|
-
C as generateCssVariables,
|
|
849
|
-
H as getPieTheme,
|
|
850
|
-
L as injectCssVariables,
|
|
851
|
-
W as removeCssVariables,
|
|
852
|
-
V as updateMuiThemeFromPie,
|
|
853
|
-
$ as usePieMuiTheme,
|
|
854
|
-
m as usePieTheme,
|
|
855
|
-
X as usePieThemeColors,
|
|
856
|
-
j as usePieThemeStyle,
|
|
857
|
-
F as usePieThemeVariables,
|
|
858
|
-
q as useSetPieTheme
|
|
859
|
-
};
|
|
480
|
+
//#endregion
|
|
481
|
+
export { t as DEFAULT_CSS_MAPPINGS, e as PIE_COLOR_DEFAULTS, i as PIE_DARK_THEME, r as PIE_LIGHT_THEME, n as PIE_ORANGE, o as PIE_THEME_NAMES, l as cssVariablesToReactStyle, c as cssVariablesToStyleString, s as generateCssVariables, a as getPieTheme, u as injectCssVariables, d as removeCssVariables };
|