@micromag/screen-quiz 0.3.832 → 0.4.4
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/assets/css/styles.css +5 -5
- package/es/index.d.ts +503 -0
- package/es/index.js +516 -604
- package/es/styles.css +5 -0
- package/package.json +27 -27
package/assets/css/styles.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
3
|
-
.
|
|
4
|
-
.
|
|
5
|
-
.
|
|
1
|
+
.container,.items{position:relative}.emptyAnswer{border:2px dashed var(--mm-gray-800);color:var(--mm-gray-800);font-size:.75em;height:40px;margin:0 auto;width:100%}.item{margin:0;padding:0;position:relative;-webkit-transition:opacity .6s ease-out;transition:opacity .6s ease-out}.isPlaceholder .item{padding:1px 0}.item.userAnswer{opacity:1!important}.item.otherAnswer{opacity:.6!important}.item.withoutOpacity{opacity:1!important}.button:focus-visible{outline:3px solid var(--mm-purple);outline-offset:4px}.button{color:var(--mm-white);padding:10px;position:relative;width:100%}.button:disabled{opacity:1}.withIcon .button{padding-left:42px;padding-right:42px}.withSquareItems .button{aspect-ratio:1}.resultIcon{display:-ms-flexbox;display:flex;height:34px;left:5px;position:absolute;top:50%;width:34px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;background-color:var(--mm-red);border:2px solid var(--mm-black);border-radius:50%;justify-content:center;margin-top:-18px;opacity:0;padding:5px;-webkit-transition:opacity .15s ease;transition:opacity .15s ease}.answered .resultIcon{opacity:1}.rightAnswer .resultIcon{background-color:var(--mm-green)}.resultIcon .faIcon{display:block;height:24px}.itemContent{padding:5px 0}
|
|
2
|
+
.container .question{margin-bottom:10px}.container .index{display:block;margin-bottom:1em;text-align:center;width:100%}.container .resultContent{padding:20px 0}.container .result{opacity:0;pointer-events:none;position:absolute;-webkit-transition:opacity .5s ease;transition:opacity .5s ease;-webkit-transition-delay:.3s;transition-delay:.3s}.container .emptyQuestion,.container .emptyResult{border:2px dashed var(--mm-gray-800);color:var(--mm-gray-800);margin:0 auto;width:100%}.container .emptyQuestion{height:60px;margin-bottom:10px}.container .emptyResult{height:100px}.container.resultVisible .result{opacity:1;pointer-events:all;position:relative}.container.resultHidden .result{opacity:0;pointer-events:none;position:absolute}.container.resultHidden .result .resultContent{padding:0}.container.isPlaceholder{padding:10px}.container.isPlaceholder .index{color:hsla(0,0%,100%,.6);font-size:8px;mix-blend-mode:difference}
|
|
3
|
+
.container{height:100%;overflow:hidden;position:relative;width:100%}.container .background{height:100%;left:0;position:absolute;top:0;width:100%;z-index:0}.container .content{z-index:2}.container.disabled{pointer-events:none}.reset{background-color:transparent;border:0;padding:10px;position:absolute;right:0;top:0;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transition:opacity .15s ease-out,-webkit-transform .15s ease-out;transition:opacity .15s ease-out,-webkit-transform .15s ease-out;transition:opacity .15s ease-out,transform .15s ease-out;transition:opacity .15s ease-out,transform .15s ease-out,-webkit-transform .15s ease-out;z-index:1000}.reset:hover{border:0;opacity:.8}.reset:hover:active{-webkit-transform:rotate(30deg);-ms-transform:rotate(30deg);transform:rotate(30deg)}.points{color:var(--mm-white);padding:10px;z-index:1000}.layout,.points{left:0;position:absolute;top:0}.layout{bottom:0;right:0}.header{left:0;position:absolute;top:0;-webkit-transition:opacity .2s ease-out;transition:opacity .2s ease-out;width:100%}.header.disabled{opacity:0;pointer-events:none}.footer{bottom:0;left:0;position:absolute;-webkit-transition:opacity .2s ease-out;transition:opacity .2s ease-out;width:100%}.footer a{padding:0}.footer.disabled{opacity:0;pointer-events:none}.transition{bottom:0;left:0;position:absolute;right:0;top:0}.intro,.nextButton,.question,.results{overflow:hidden}.nextButton:focus-visible{outline:3px solid var(--mm-purple);outline-offset:4px}.nextButton{color:var(--mm-white);padding:10px;position:relative;width:100%}.nextButton:disabled{opacity:1;pointer-events:none}.withIcon .nextButton{padding-left:42px;padding-right:42px}
|
|
4
|
+
.container .title{margin-bottom:10px}.container .emptyDescription,.container .emptyTitle{border:2px dashed var(--mm-gray-800);color:var(--mm-gray-800);margin:0 auto;width:100%}.container .emptyTitle{height:60px}.container .emptyDescription{height:100px}.container.isPlaceholder{padding:10px}
|
|
5
|
+
.container .description,.container .title{margin-bottom:10px}.container .emptyDescription,.container .emptyTitle{border:2px dashed var(--mm-gray-800);color:var(--mm-gray-800);margin:0 auto 10px;width:100%}.container .emptyTitle{height:60px}.container .emptyDescription{height:100px}.container.isPlaceholder{padding:10px}
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { TextElement, QuizAnswer, ImageElement, VisualElement, ButtonLayout, BoxStyle, TextStyle, Color, BackgroundElement, Header, Footer, Transitions } from '@micromag/core';
|
|
3
|
+
|
|
4
|
+
interface QuizScreenProps {
|
|
5
|
+
id?: string | null;
|
|
6
|
+
layout?: 'top' | 'middle' | 'bottom' | 'split';
|
|
7
|
+
keypadLayout?: Record<string, unknown> | null;
|
|
8
|
+
question?: TextElement | null;
|
|
9
|
+
answers?: QuizAnswer[] | null;
|
|
10
|
+
result?: {
|
|
11
|
+
image?: ImageElement;
|
|
12
|
+
text?: TextElement;
|
|
13
|
+
} | null;
|
|
14
|
+
resultImage?: VisualElement | null;
|
|
15
|
+
buttonsLayout?: ButtonLayout | null;
|
|
16
|
+
buttonsStyle?: BoxStyle | null;
|
|
17
|
+
inactiveButtonsStyle?: BoxStyle | null;
|
|
18
|
+
buttonsTextStyle?: TextStyle | null;
|
|
19
|
+
inactiveButtonsTextStyle?: TextStyle | null;
|
|
20
|
+
feedbackTextStyle?: TextStyle | null;
|
|
21
|
+
numbersTextStyle?: TextStyle | null;
|
|
22
|
+
goodAnswerColor?: Color | null;
|
|
23
|
+
badAnswerColor?: Color | null;
|
|
24
|
+
withoutTrueFalse?: boolean;
|
|
25
|
+
spacing?: number;
|
|
26
|
+
background?: BackgroundElement | null;
|
|
27
|
+
header?: Header | null;
|
|
28
|
+
footer?: Footer | null;
|
|
29
|
+
current?: boolean;
|
|
30
|
+
preload?: boolean;
|
|
31
|
+
ready?: boolean;
|
|
32
|
+
transitions?: Transitions | null;
|
|
33
|
+
transitionStagger?: number;
|
|
34
|
+
type?: string | null;
|
|
35
|
+
className?: string | null;
|
|
36
|
+
}
|
|
37
|
+
declare function QuizScreen({ id, layout, keypadLayout, question, answers, result, resultImage, buttonsLayout, buttonsStyle, inactiveButtonsStyle, buttonsTextStyle, inactiveButtonsTextStyle, feedbackTextStyle, numbersTextStyle, goodAnswerColor, badAnswerColor, withoutTrueFalse, spacing, header, footer, background, current, preload, ready, transitions, transitionStagger, type, className, }: QuizScreenProps): react_jsx_runtime.JSX.Element;
|
|
38
|
+
|
|
39
|
+
interface QuizMultipleScreenProps {
|
|
40
|
+
id?: string | null;
|
|
41
|
+
layout?: 'top' | 'middle' | 'bottom' | 'split';
|
|
42
|
+
introLayout?: 'top' | 'middle' | 'bottom' | 'split' | null;
|
|
43
|
+
title?: TextElement | null;
|
|
44
|
+
description?: TextElement | null;
|
|
45
|
+
questions?: {
|
|
46
|
+
text?: TextElement;
|
|
47
|
+
answers?: QuizAnswer[];
|
|
48
|
+
}[] | null;
|
|
49
|
+
results?: {
|
|
50
|
+
title?: TextElement;
|
|
51
|
+
description?: TextElement;
|
|
52
|
+
}[] | null;
|
|
53
|
+
buttonsStyle?: BoxStyle | null;
|
|
54
|
+
inactiveButtonsStyle?: BoxStyle | null;
|
|
55
|
+
buttonsTextStyle?: TextStyle | null;
|
|
56
|
+
inactiveButtonsTextStyle?: TextStyle | null;
|
|
57
|
+
questionsHeadingStyle?: TextStyle | null;
|
|
58
|
+
resultsHeadingStyle?: TextStyle | null;
|
|
59
|
+
resultsTextStyle?: TextStyle | null;
|
|
60
|
+
feedbackTextStyle?: TextStyle | null;
|
|
61
|
+
numbersTextStyle?: TextStyle | null;
|
|
62
|
+
goodAnswerColor?: Color | null;
|
|
63
|
+
badAnswerColor?: Color | null;
|
|
64
|
+
spacing?: number;
|
|
65
|
+
background?: BackgroundElement | null;
|
|
66
|
+
introButton?: TextElement | null;
|
|
67
|
+
introBackground?: BackgroundElement | null;
|
|
68
|
+
nextButton?: TextElement | null;
|
|
69
|
+
header?: Header | null;
|
|
70
|
+
footer?: Footer | null;
|
|
71
|
+
current?: boolean;
|
|
72
|
+
active?: boolean;
|
|
73
|
+
transitions?: Transitions | null;
|
|
74
|
+
transitionStagger?: number;
|
|
75
|
+
type?: string | null;
|
|
76
|
+
className?: string | null;
|
|
77
|
+
}
|
|
78
|
+
declare function QuizMultipleScreen({ id, layout, introLayout, title, description, questions, results, buttonsStyle, inactiveButtonsStyle, buttonsTextStyle, inactiveButtonsTextStyle, questionsHeadingStyle, resultsHeadingStyle, resultsTextStyle, feedbackTextStyle, numbersTextStyle, goodAnswerColor, badAnswerColor, spacing, background, introBackground, introButton, nextButton, header, footer, current, active, transitions, transitionStagger, type, className, }: QuizMultipleScreenProps): react_jsx_runtime.JSX.Element;
|
|
79
|
+
|
|
80
|
+
declare const _default: ({
|
|
81
|
+
id: string;
|
|
82
|
+
type: string;
|
|
83
|
+
group: {
|
|
84
|
+
label: {
|
|
85
|
+
defaultMessage: string;
|
|
86
|
+
description: string;
|
|
87
|
+
};
|
|
88
|
+
order: number;
|
|
89
|
+
};
|
|
90
|
+
title: {
|
|
91
|
+
defaultMessage: string;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
component: typeof QuizScreen;
|
|
95
|
+
layouts: string[];
|
|
96
|
+
fields: ({
|
|
97
|
+
name: string;
|
|
98
|
+
type: string;
|
|
99
|
+
theme: {
|
|
100
|
+
textStyle: string;
|
|
101
|
+
label?: undefined;
|
|
102
|
+
badge?: undefined;
|
|
103
|
+
callToAction?: undefined;
|
|
104
|
+
};
|
|
105
|
+
label: {
|
|
106
|
+
defaultMessage: string;
|
|
107
|
+
description: string;
|
|
108
|
+
};
|
|
109
|
+
isList?: undefined;
|
|
110
|
+
defaultValue?: undefined;
|
|
111
|
+
fields?: undefined;
|
|
112
|
+
} | {
|
|
113
|
+
name: string;
|
|
114
|
+
type: string;
|
|
115
|
+
theme: {
|
|
116
|
+
label: {
|
|
117
|
+
textStyle: string;
|
|
118
|
+
};
|
|
119
|
+
textStyle?: undefined;
|
|
120
|
+
badge?: undefined;
|
|
121
|
+
callToAction?: undefined;
|
|
122
|
+
};
|
|
123
|
+
label: {
|
|
124
|
+
defaultMessage: string;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
127
|
+
isList?: undefined;
|
|
128
|
+
defaultValue?: undefined;
|
|
129
|
+
fields?: undefined;
|
|
130
|
+
} | {
|
|
131
|
+
name: string;
|
|
132
|
+
type: string;
|
|
133
|
+
isList: boolean;
|
|
134
|
+
defaultValue: {
|
|
135
|
+
columnAlign: string;
|
|
136
|
+
columns: number;
|
|
137
|
+
spacing: number;
|
|
138
|
+
withSquareItems: boolean;
|
|
139
|
+
};
|
|
140
|
+
label: {
|
|
141
|
+
defaultMessage: string;
|
|
142
|
+
description: string;
|
|
143
|
+
};
|
|
144
|
+
theme?: undefined;
|
|
145
|
+
fields?: undefined;
|
|
146
|
+
} | {
|
|
147
|
+
name: string;
|
|
148
|
+
type: string;
|
|
149
|
+
label: {
|
|
150
|
+
defaultMessage: string;
|
|
151
|
+
description: string;
|
|
152
|
+
};
|
|
153
|
+
theme?: undefined;
|
|
154
|
+
isList?: undefined;
|
|
155
|
+
defaultValue?: undefined;
|
|
156
|
+
fields?: undefined;
|
|
157
|
+
} | {
|
|
158
|
+
type: string;
|
|
159
|
+
isList: boolean;
|
|
160
|
+
label: {
|
|
161
|
+
defaultMessage: string;
|
|
162
|
+
description: string;
|
|
163
|
+
};
|
|
164
|
+
fields: {
|
|
165
|
+
name: string;
|
|
166
|
+
type: string;
|
|
167
|
+
label: {
|
|
168
|
+
defaultMessage: string;
|
|
169
|
+
description: string;
|
|
170
|
+
};
|
|
171
|
+
}[];
|
|
172
|
+
name?: undefined;
|
|
173
|
+
theme?: undefined;
|
|
174
|
+
defaultValue?: undefined;
|
|
175
|
+
} | {
|
|
176
|
+
name: string;
|
|
177
|
+
type: string;
|
|
178
|
+
label: {
|
|
179
|
+
defaultMessage: string;
|
|
180
|
+
description: string;
|
|
181
|
+
};
|
|
182
|
+
theme: {
|
|
183
|
+
badge: {
|
|
184
|
+
label: {
|
|
185
|
+
textStyle: string;
|
|
186
|
+
};
|
|
187
|
+
boxStyle: string;
|
|
188
|
+
};
|
|
189
|
+
textStyle?: undefined;
|
|
190
|
+
label?: undefined;
|
|
191
|
+
callToAction?: undefined;
|
|
192
|
+
};
|
|
193
|
+
isList?: undefined;
|
|
194
|
+
defaultValue?: undefined;
|
|
195
|
+
fields?: undefined;
|
|
196
|
+
} | {
|
|
197
|
+
name: string;
|
|
198
|
+
type: string;
|
|
199
|
+
label: {
|
|
200
|
+
defaultMessage: string;
|
|
201
|
+
description: string;
|
|
202
|
+
};
|
|
203
|
+
theme: {
|
|
204
|
+
callToAction: {
|
|
205
|
+
label: {
|
|
206
|
+
textStyle: string;
|
|
207
|
+
};
|
|
208
|
+
boxStyle: string;
|
|
209
|
+
};
|
|
210
|
+
textStyle?: undefined;
|
|
211
|
+
label?: undefined;
|
|
212
|
+
badge?: undefined;
|
|
213
|
+
};
|
|
214
|
+
isList?: undefined;
|
|
215
|
+
defaultValue?: undefined;
|
|
216
|
+
fields?: undefined;
|
|
217
|
+
})[];
|
|
218
|
+
states?: undefined;
|
|
219
|
+
} | {
|
|
220
|
+
id: string;
|
|
221
|
+
type: string;
|
|
222
|
+
group: {
|
|
223
|
+
label: {
|
|
224
|
+
defaultMessage: string;
|
|
225
|
+
description: string;
|
|
226
|
+
};
|
|
227
|
+
order: number;
|
|
228
|
+
};
|
|
229
|
+
title: {
|
|
230
|
+
defaultMessage: string;
|
|
231
|
+
description: string;
|
|
232
|
+
};
|
|
233
|
+
component: typeof QuizMultipleScreen;
|
|
234
|
+
layouts: string[];
|
|
235
|
+
states: ({
|
|
236
|
+
id: string;
|
|
237
|
+
label: {
|
|
238
|
+
defaultMessage: string;
|
|
239
|
+
description: string;
|
|
240
|
+
};
|
|
241
|
+
fields: ({
|
|
242
|
+
name: string;
|
|
243
|
+
type: string;
|
|
244
|
+
defaultValue: string;
|
|
245
|
+
screenState: string;
|
|
246
|
+
label: {
|
|
247
|
+
defaultMessage: string;
|
|
248
|
+
description: string;
|
|
249
|
+
};
|
|
250
|
+
theme?: undefined;
|
|
251
|
+
} | {
|
|
252
|
+
name: string;
|
|
253
|
+
type: string;
|
|
254
|
+
theme: {
|
|
255
|
+
textStyle: string;
|
|
256
|
+
};
|
|
257
|
+
label: {
|
|
258
|
+
defaultMessage: string;
|
|
259
|
+
description: string;
|
|
260
|
+
};
|
|
261
|
+
defaultValue?: undefined;
|
|
262
|
+
screenState?: undefined;
|
|
263
|
+
} | {
|
|
264
|
+
name: string;
|
|
265
|
+
type: string;
|
|
266
|
+
label: {
|
|
267
|
+
defaultMessage: string;
|
|
268
|
+
description: string;
|
|
269
|
+
};
|
|
270
|
+
defaultValue?: undefined;
|
|
271
|
+
screenState?: undefined;
|
|
272
|
+
theme?: undefined;
|
|
273
|
+
})[];
|
|
274
|
+
repeatable?: undefined;
|
|
275
|
+
fieldName?: undefined;
|
|
276
|
+
} | {
|
|
277
|
+
id: string;
|
|
278
|
+
label: {
|
|
279
|
+
defaultMessage: string;
|
|
280
|
+
description: string;
|
|
281
|
+
};
|
|
282
|
+
repeatable: boolean;
|
|
283
|
+
fieldName: string;
|
|
284
|
+
fields: ({
|
|
285
|
+
name: string;
|
|
286
|
+
type: string;
|
|
287
|
+
theme: {
|
|
288
|
+
textStyle: string;
|
|
289
|
+
label?: undefined;
|
|
290
|
+
};
|
|
291
|
+
label: {
|
|
292
|
+
defaultMessage: string;
|
|
293
|
+
description: string;
|
|
294
|
+
};
|
|
295
|
+
isList?: undefined;
|
|
296
|
+
withoutLabel?: undefined;
|
|
297
|
+
defaultValue?: undefined;
|
|
298
|
+
} | {
|
|
299
|
+
name: string;
|
|
300
|
+
type: string;
|
|
301
|
+
theme: {
|
|
302
|
+
label: {
|
|
303
|
+
textStyle: string;
|
|
304
|
+
};
|
|
305
|
+
textStyle?: undefined;
|
|
306
|
+
};
|
|
307
|
+
label: {
|
|
308
|
+
defaultMessage: string;
|
|
309
|
+
description: string;
|
|
310
|
+
};
|
|
311
|
+
isList?: undefined;
|
|
312
|
+
withoutLabel?: undefined;
|
|
313
|
+
defaultValue?: undefined;
|
|
314
|
+
} | {
|
|
315
|
+
name: string;
|
|
316
|
+
type: string;
|
|
317
|
+
isList: boolean;
|
|
318
|
+
withoutLabel: boolean;
|
|
319
|
+
defaultValue: {
|
|
320
|
+
columnAlign: string;
|
|
321
|
+
columns: number;
|
|
322
|
+
spacing: number;
|
|
323
|
+
withSquareItems: boolean;
|
|
324
|
+
};
|
|
325
|
+
label: {
|
|
326
|
+
defaultMessage: string;
|
|
327
|
+
description: string;
|
|
328
|
+
};
|
|
329
|
+
theme?: undefined;
|
|
330
|
+
} | {
|
|
331
|
+
name: string;
|
|
332
|
+
type: string;
|
|
333
|
+
label: {
|
|
334
|
+
defaultMessage: string;
|
|
335
|
+
description: string;
|
|
336
|
+
};
|
|
337
|
+
theme?: undefined;
|
|
338
|
+
isList?: undefined;
|
|
339
|
+
withoutLabel?: undefined;
|
|
340
|
+
defaultValue?: undefined;
|
|
341
|
+
})[];
|
|
342
|
+
} | {
|
|
343
|
+
id: string;
|
|
344
|
+
label: {
|
|
345
|
+
defaultMessage: string;
|
|
346
|
+
description: string;
|
|
347
|
+
};
|
|
348
|
+
repeatable: boolean;
|
|
349
|
+
fields: ({
|
|
350
|
+
name: string;
|
|
351
|
+
type: string;
|
|
352
|
+
defaultValue: string;
|
|
353
|
+
screenState: string;
|
|
354
|
+
label: {
|
|
355
|
+
defaultMessage: string;
|
|
356
|
+
description: string;
|
|
357
|
+
};
|
|
358
|
+
theme?: undefined;
|
|
359
|
+
isHorizontal?: undefined;
|
|
360
|
+
help?: undefined;
|
|
361
|
+
} | {
|
|
362
|
+
name: string;
|
|
363
|
+
type: string;
|
|
364
|
+
theme: {
|
|
365
|
+
textStyle: string;
|
|
366
|
+
};
|
|
367
|
+
label: {
|
|
368
|
+
defaultMessage: string;
|
|
369
|
+
description: string;
|
|
370
|
+
};
|
|
371
|
+
defaultValue?: undefined;
|
|
372
|
+
screenState?: undefined;
|
|
373
|
+
isHorizontal?: undefined;
|
|
374
|
+
help?: undefined;
|
|
375
|
+
} | {
|
|
376
|
+
name: string;
|
|
377
|
+
type: string;
|
|
378
|
+
isHorizontal: boolean;
|
|
379
|
+
label: {
|
|
380
|
+
defaultMessage: string;
|
|
381
|
+
description: string;
|
|
382
|
+
};
|
|
383
|
+
help: {
|
|
384
|
+
defaultMessage: string;
|
|
385
|
+
description: string;
|
|
386
|
+
};
|
|
387
|
+
defaultValue?: undefined;
|
|
388
|
+
screenState?: undefined;
|
|
389
|
+
theme?: undefined;
|
|
390
|
+
} | {
|
|
391
|
+
name: string;
|
|
392
|
+
type: string;
|
|
393
|
+
label: {
|
|
394
|
+
defaultMessage: string;
|
|
395
|
+
description: string;
|
|
396
|
+
};
|
|
397
|
+
defaultValue?: undefined;
|
|
398
|
+
screenState?: undefined;
|
|
399
|
+
theme?: undefined;
|
|
400
|
+
isHorizontal?: undefined;
|
|
401
|
+
help?: undefined;
|
|
402
|
+
})[];
|
|
403
|
+
fieldName?: undefined;
|
|
404
|
+
})[];
|
|
405
|
+
fields: ({
|
|
406
|
+
name: string;
|
|
407
|
+
type: string;
|
|
408
|
+
defaultValue: string;
|
|
409
|
+
label: {
|
|
410
|
+
defaultMessage: string;
|
|
411
|
+
description: string;
|
|
412
|
+
};
|
|
413
|
+
isList?: undefined;
|
|
414
|
+
fields?: undefined;
|
|
415
|
+
theme?: undefined;
|
|
416
|
+
} | {
|
|
417
|
+
type: string;
|
|
418
|
+
label: {
|
|
419
|
+
defaultMessage: string;
|
|
420
|
+
description: string;
|
|
421
|
+
};
|
|
422
|
+
isList: boolean;
|
|
423
|
+
fields: {
|
|
424
|
+
name: string;
|
|
425
|
+
type: string;
|
|
426
|
+
label: {
|
|
427
|
+
defaultMessage: string;
|
|
428
|
+
description: string;
|
|
429
|
+
};
|
|
430
|
+
}[];
|
|
431
|
+
name?: undefined;
|
|
432
|
+
defaultValue?: undefined;
|
|
433
|
+
theme?: undefined;
|
|
434
|
+
} | {
|
|
435
|
+
name: string;
|
|
436
|
+
type: string;
|
|
437
|
+
theme: {
|
|
438
|
+
textStyle: string;
|
|
439
|
+
badge?: undefined;
|
|
440
|
+
callToAction?: undefined;
|
|
441
|
+
};
|
|
442
|
+
label: {
|
|
443
|
+
defaultMessage: string;
|
|
444
|
+
description: string;
|
|
445
|
+
};
|
|
446
|
+
defaultValue?: undefined;
|
|
447
|
+
isList?: undefined;
|
|
448
|
+
fields?: undefined;
|
|
449
|
+
} | {
|
|
450
|
+
name: string;
|
|
451
|
+
type: string;
|
|
452
|
+
label: {
|
|
453
|
+
defaultMessage: string;
|
|
454
|
+
description: string;
|
|
455
|
+
};
|
|
456
|
+
defaultValue?: undefined;
|
|
457
|
+
isList?: undefined;
|
|
458
|
+
fields?: undefined;
|
|
459
|
+
theme?: undefined;
|
|
460
|
+
} | {
|
|
461
|
+
name: string;
|
|
462
|
+
type: string;
|
|
463
|
+
label: {
|
|
464
|
+
defaultMessage: string;
|
|
465
|
+
description: string;
|
|
466
|
+
};
|
|
467
|
+
theme: {
|
|
468
|
+
badge: {
|
|
469
|
+
label: {
|
|
470
|
+
textStyle: string;
|
|
471
|
+
};
|
|
472
|
+
boxStyle: string;
|
|
473
|
+
};
|
|
474
|
+
textStyle?: undefined;
|
|
475
|
+
callToAction?: undefined;
|
|
476
|
+
};
|
|
477
|
+
defaultValue?: undefined;
|
|
478
|
+
isList?: undefined;
|
|
479
|
+
fields?: undefined;
|
|
480
|
+
} | {
|
|
481
|
+
name: string;
|
|
482
|
+
type: string;
|
|
483
|
+
label: {
|
|
484
|
+
defaultMessage: string;
|
|
485
|
+
description: string;
|
|
486
|
+
};
|
|
487
|
+
theme: {
|
|
488
|
+
callToAction: {
|
|
489
|
+
label: {
|
|
490
|
+
textStyle: string;
|
|
491
|
+
};
|
|
492
|
+
boxStyle: string;
|
|
493
|
+
};
|
|
494
|
+
textStyle?: undefined;
|
|
495
|
+
badge?: undefined;
|
|
496
|
+
};
|
|
497
|
+
defaultValue?: undefined;
|
|
498
|
+
isList?: undefined;
|
|
499
|
+
fields?: undefined;
|
|
500
|
+
})[];
|
|
501
|
+
})[];
|
|
502
|
+
|
|
503
|
+
export { QuizMultipleScreen, QuizScreen, _default as default };
|