@syntrologie/adapt-faq 2.17.0 → 2.18.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/dist/runtime.js CHANGED
@@ -1,3 +1,9 @@
1
+ import {
2
+ purple,
3
+ slateGrey
4
+ } from "./chunk-S6WIENQP.js";
5
+ import "./chunk-5WRI5ZAA.js";
6
+
1
7
  // src/executors.ts
2
8
  function resolveItem(store, itemId, itemQuestion) {
3
9
  if (itemId) {
@@ -97,410 +103,6 @@ var executorDefinitions = [
97
103
  { kind: "faq:update", executor: executeUpdateFaq }
98
104
  ];
99
105
 
100
- // ../../design-system/dist/tokens/colors.js
101
- var base = {
102
- white: "#ffffff",
103
- black: "#000000"
104
- };
105
- var brand = {
106
- 0: "#2c0b0a",
107
- 1: "#5b1715",
108
- 2: "#89221f",
109
- 3: "#b72e2a",
110
- 4: "#d44844",
111
- 5: "#dd6d69",
112
- 6: "#e5918f",
113
- 7: "#eeb6b4",
114
- 8: "#f6dada",
115
- 9: "#faebea"
116
- };
117
- var slateGrey = {
118
- 0: "#07080a",
119
- 1: "#0f1318",
120
- 2: "#0e1114",
121
- 3: "#1c222a",
122
- 4: "#2b333f",
123
- 5: "#394454",
124
- 6: "#475569",
125
- 7: "#677384",
126
- 8: "#87919f",
127
- 9: "#a8afba",
128
- 10: "#cbd0d7",
129
- 11: "#e8eaee",
130
- 12: "#f6f7f9"
131
- };
132
- var green = {
133
- 0: "#07230a",
134
- 1: "#0e4514",
135
- 2: "#16681e",
136
- 3: "#1d8a28",
137
- 4: "#24ad32",
138
- 5: "#4fbd5a",
139
- 6: "#7acd82",
140
- 7: "#a5deab",
141
- 8: "#d0eed3",
142
- 9: "#e5f6e7"
143
- };
144
- var yellow = {
145
- 0: "#301f09",
146
- 1: "#5f3e12",
147
- 2: "#8f5e1b",
148
- 3: "#be7d24",
149
- 4: "#ee9c2d",
150
- 5: "#f1b057",
151
- 6: "#f5c481",
152
- 7: "#f8d7ab",
153
- 8: "#fcebd5",
154
- 9: "#fdf5ea"
155
- };
156
- var red = {
157
- 0: "#330707",
158
- 1: "#660f0e",
159
- 2: "#991616",
160
- 3: "#cc1e1d",
161
- 4: "#ff2524",
162
- 5: "#ff5150",
163
- 6: "#ff7c7c",
164
- 7: "#ffa8a7",
165
- 8: "#ffd3d3",
166
- 9: "#ffe9e9"
167
- };
168
- var blue = {
169
- 0: "#051533",
170
- 1: "#0a2a66",
171
- 2: "#0f3f98",
172
- 3: "#1454cb",
173
- 4: "#1969fe",
174
- 5: "#4787fe",
175
- 6: "#75a5fe",
176
- 7: "#a3c3ff",
177
- 8: "#d1e1ff",
178
- 9: "#e8f0ff"
179
- };
180
- var orange = {
181
- 0: "#662500",
182
- 1: "#993d00",
183
- 2: "#cc5800",
184
- 3: "#ff7700",
185
- 4: "#fea85d",
186
- 5: "#fec58f",
187
- 6: "#ffd6ae",
188
- 7: "#fee6cd",
189
- 8: "#fff1e1",
190
- 9: "#fff8f0"
191
- };
192
- var purple = {
193
- 0: "#151229",
194
- 1: "#2a2452",
195
- 2: "#40357c",
196
- 3: "#5547a5",
197
- 4: "#6a59ce",
198
- 5: "#887ad8",
199
- 6: "#a69be2",
200
- 7: "#c3bdeb",
201
- 8: "#e1def5",
202
- 9: "#f0eefa"
203
- };
204
- var pink = {
205
- 0: "#37091f",
206
- 1: "#69123c",
207
- 2: "#9b1c58",
208
- 3: "#cd2575",
209
- 4: "#ff2e92",
210
- 5: "#ff58a8",
211
- 6: "#ff82be",
212
- 7: "#ffabd3",
213
- 8: "#ffd5e9",
214
- 9: "#ffeaf4"
215
- };
216
- var text = {
217
- primary: slateGrey[10],
218
- secondary: slateGrey[9],
219
- tertiary: slateGrey[8]
220
- };
221
- var background = {
222
- primary: slateGrey[2],
223
- secondary: slateGrey[0]
224
- };
225
- var border = {
226
- primary: slateGrey[4],
227
- secondary: slateGrey[3]
228
- };
229
- var button = {
230
- primary: {
231
- text: base.white,
232
- icon: base.white,
233
- border: brand[3],
234
- backgroundDefault: brand[3],
235
- backgroundHover: brand[2]
236
- },
237
- neutral: {
238
- text: slateGrey[10],
239
- textHover: base.white,
240
- icon: slateGrey[10],
241
- iconHover: base.white,
242
- border: slateGrey[4],
243
- background: slateGrey[2]
244
- },
245
- link: {
246
- text: base.white,
247
- icon: base.white,
248
- hover: brand[5]
249
- },
250
- error: {
251
- text: red[5],
252
- hover: red[6]
253
- },
254
- success: {
255
- text: green[5],
256
- hover: green[6]
257
- }
258
- };
259
- var badge = {
260
- slateGrey: {
261
- content: slateGrey[10],
262
- pillOutline: slateGrey[10],
263
- borderPrimary: slateGrey[5],
264
- borderSecondary: slateGrey[5],
265
- background: slateGrey[3]
266
- },
267
- brand: {
268
- content: brand[9],
269
- pillOutline: brand[9],
270
- borderPrimary: brand[6],
271
- borderSecondary: brand[6],
272
- background: brand[0]
273
- },
274
- red: {
275
- content: red[8],
276
- pillOutline: red[4],
277
- borderPrimary: red[2],
278
- borderSecondary: red[2],
279
- background: red[0]
280
- },
281
- yellow: {
282
- content: yellow[8],
283
- pillOutline: yellow[4],
284
- borderPrimary: yellow[2],
285
- borderSecondary: yellow[2],
286
- background: yellow[0]
287
- },
288
- green: {
289
- content: green[8],
290
- pillOutline: green[4],
291
- borderPrimary: green[2],
292
- borderSecondary: green[2],
293
- background: green[0]
294
- },
295
- purple: {
296
- content: purple[8],
297
- pillOutline: purple[4],
298
- borderPrimary: purple[2],
299
- borderSecondary: purple[2],
300
- background: purple[0]
301
- },
302
- blue: {
303
- content: blue[8],
304
- pillOutline: blue[4],
305
- borderPrimary: blue[2],
306
- borderSecondary: blue[2],
307
- background: blue[0]
308
- },
309
- orange: {
310
- content: orange[8],
311
- pillOutline: orange[4],
312
- borderPrimary: orange[2],
313
- borderSecondary: orange[2],
314
- background: orange[0]
315
- },
316
- pink: {
317
- content: pink[8],
318
- pillOutline: pink[4],
319
- borderPrimary: pink[2],
320
- borderSecondary: pink[2],
321
- background: pink[0]
322
- }
323
- };
324
- var badgeBanner = {
325
- green: {
326
- content: green[8],
327
- border: green[2],
328
- background: green[0]
329
- },
330
- yellow: {
331
- content: yellow[8],
332
- border: yellow[2],
333
- background: yellow[0]
334
- },
335
- red: {
336
- content: red[8],
337
- border: red[2],
338
- background: red[0]
339
- }
340
- };
341
- var alert = {
342
- green: {
343
- content: green[1],
344
- background: green[9]
345
- },
346
- yellow: {
347
- content: yellow[1],
348
- background: yellow[9]
349
- },
350
- red: {
351
- content: red[1],
352
- background: red[9]
353
- }
354
- };
355
- var tag = {
356
- content: slateGrey[10],
357
- border: slateGrey[4],
358
- background: slateGrey[3]
359
- };
360
- var menu = {
361
- backgroundDefault: slateGrey[2],
362
- backgroundHover: slateGrey[1],
363
- selected: slateGrey[3]
364
- };
365
- var inputDropdown = {
366
- background: slateGrey[2],
367
- icon: slateGrey[10],
368
- borderDefault: slateGrey[4],
369
- borderSelected: brand[3],
370
- textLabel: slateGrey[9],
371
- textPlaceholder: slateGrey[8],
372
- textHint: slateGrey[8]
373
- };
374
- var inputField = {
375
- backgroundDefault: slateGrey[2],
376
- backgroundDisabled: slateGrey[0],
377
- textLabel: slateGrey[9],
378
- textPlaceholder: slateGrey[8],
379
- textHint: slateGrey[8],
380
- textError: red[5],
381
- iconDefault: slateGrey[9],
382
- iconPlaceholder: slateGrey[10],
383
- iconError: red[5],
384
- borderDefault: slateGrey[4],
385
- borderSelected: brand[3],
386
- borderError: red[5]
387
- };
388
- var toggle = {
389
- handleDefault: base.white,
390
- handleDisabled: slateGrey[10],
391
- off: {
392
- backgroundDefault: slateGrey[4],
393
- backgroundHover: slateGrey[5],
394
- backgroundDisabled: slateGrey[4]
395
- },
396
- on: {
397
- backgroundDefault: green[3],
398
- backgroundHover: green[2],
399
- backgroundDisabled: slateGrey[4]
400
- }
401
- };
402
- var checkbox = {
403
- off: {
404
- backgroundDefault: "#00000000",
405
- backgroundHover: slateGrey[5],
406
- backgroundDisabled: slateGrey[2],
407
- border: slateGrey[6]
408
- },
409
- on: {
410
- backgroundDefault: green[0],
411
- backgroundHover: green[1],
412
- backgroundDisabled: slateGrey[2],
413
- border: green[3]
414
- }
415
- };
416
- var avatar = {
417
- content: slateGrey[10],
418
- background: slateGrey[4]
419
- };
420
- var progressBarSlider = {
421
- background: slateGrey[4],
422
- active: green[3]
423
- };
424
- var card = {
425
- background: slateGrey[1],
426
- content: slateGrey[9],
427
- border: slateGrey[4]
428
- };
429
- var sidebar = {
430
- backgroundDefault: slateGrey[1],
431
- backgroundHover: slateGrey[3],
432
- backgroundActive: slateGrey[4],
433
- border: slateGrey[4],
434
- contentPrimary: slateGrey[10],
435
- contentSecondary: slateGrey[9],
436
- contentTertiary: slateGrey[8]
437
- };
438
- var modal = {
439
- background: slateGrey[1],
440
- content: slateGrey[9],
441
- border: slateGrey[4]
442
- };
443
- var tab = {
444
- activeBackground: slateGrey[3],
445
- activeContent: brand[5],
446
- inactiveContent: slateGrey[9],
447
- border: slateGrey[4]
448
- };
449
- var table = {
450
- header: {
451
- textDefault: slateGrey[9],
452
- textHover: slateGrey[8],
453
- backgroundDefault: slateGrey[1]
454
- },
455
- border: slateGrey[4],
456
- cell: {
457
- textPrimary: slateGrey[10],
458
- textSecondary: slateGrey[9],
459
- backgroundDefault: slateGrey[2],
460
- backgroundHover: slateGrey[1]
461
- }
462
- };
463
- var breadcrumbs = {
464
- textPrimaryDefault: slateGrey[10],
465
- textPrimaryHover: slateGrey[10],
466
- textSecondaryDefault: slateGrey[8],
467
- textSecondaryHover: slateGrey[9],
468
- iconPrimary: slateGrey[10],
469
- iconSecondary: slateGrey[8]
470
- };
471
- var loadingIndicator = {
472
- background: green[1],
473
- active: green[5]
474
- };
475
- var datePicker = {
476
- textDefault: slateGrey[10],
477
- textSelected: base.white,
478
- textDisabled: slateGrey[7],
479
- backgroundDefault: slateGrey[2],
480
- backgroundMiddle: slateGrey[3],
481
- backgroundSelected: brand[3],
482
- border: slateGrey[4]
483
- };
484
- var scroll = slateGrey[9];
485
-
486
- // ../../design-system/dist/tokens/panel-shell.js
487
- var fab = {
488
- /** Diameter in pixels. */
489
- size: 56,
490
- /** Inset from the panel's top-left corner in pixels. */
491
- inset: 12,
492
- /** Background color (always the brand black). */
493
- background: base.black,
494
- /** Icon / logo color. */
495
- color: base.white,
496
- /** Border — 2px brand red ring. */
497
- border: `2px solid ${brand[3]}`,
498
- /** Shadow when the panel is open (inner ring for "active" state). */
499
- shadowOpen: "0 4px 24px rgba(0,0,0,0.6), 0 0 0 2px rgba(255,255,255,0.08)",
500
- /** Shadow when the panel is closed. */
501
- shadowClosed: "0 4px 24px rgba(0,0,0,0.6)"
502
- };
503
-
504
106
  // src/FAQWidgetLit.ts
505
107
  import { html, LitElement, nothing } from "lit";
506
108
  import { styleMap } from "lit/directives/style-map.js";