@bbl-digital/snorre 3.1.38 → 3.1.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/dist/bundle.js +44 -75
  2. package/esm/app-shell/theme.js +2 -60
  3. package/esm/core/Autocomplete/index.d.js +1 -0
  4. package/esm/core/DatepickerRange/YearMonthForm.js +56 -0
  5. package/esm/layout/Menu/AppPicker/index.js +5 -5
  6. package/esm/layout/Menu/AppPicker/styles.js +31 -3
  7. package/esm/layout/Menu/MenuItem/index.js +1 -1
  8. package/esm/layout/Menu/MenuItem/styles.js +2 -2
  9. package/esm/layout/Menu/SecondaryMenuItem/index.js +1 -1
  10. package/esm/layout/Menu/index.js +1 -2
  11. package/esm/layout/Menu/styles.js +1 -1
  12. package/lib/app-shell/theme.d.ts +33 -64
  13. package/lib/app-shell/theme.d.ts.map +1 -1
  14. package/lib/app-shell/theme.js +2 -60
  15. package/lib/core/Autocomplete/index.d.js +1 -0
  16. package/lib/core/DatepickerRange/YearMonthForm.d.ts +10 -0
  17. package/lib/core/DatepickerRange/YearMonthForm.d.ts.map +1 -0
  18. package/lib/core/DatepickerRange/YearMonthForm.js +56 -0
  19. package/lib/layout/Menu/AppPicker/index.d.ts.map +1 -1
  20. package/lib/layout/Menu/AppPicker/index.js +5 -5
  21. package/lib/layout/Menu/AppPicker/styles.d.ts.map +1 -1
  22. package/lib/layout/Menu/AppPicker/styles.js +31 -3
  23. package/lib/layout/Menu/MenuItem/index.d.ts.map +1 -1
  24. package/lib/layout/Menu/MenuItem/index.js +1 -1
  25. package/lib/layout/Menu/MenuItem/styles.d.ts.map +1 -1
  26. package/lib/layout/Menu/MenuItem/styles.js +2 -2
  27. package/lib/layout/Menu/SecondaryMenuItem/index.d.ts.map +1 -1
  28. package/lib/layout/Menu/SecondaryMenuItem/index.js +1 -1
  29. package/lib/layout/Menu/index.d.ts.map +1 -1
  30. package/lib/layout/Menu/index.js +1 -2
  31. package/lib/layout/Menu/styles.d.ts +11 -1
  32. package/lib/layout/Menu/styles.d.ts.map +1 -1
  33. package/lib/layout/Menu/styles.js +1 -1
  34. package/package.json +1 -1
  35. package/theme-bbls.js +425 -0
  36. package/theme-generator.js +307 -494
  37. package/theme-helpers.js +62 -0
  38. package/esm/enums/ModifierKey.js +0 -13
  39. package/lib/enums/ModifierKey.d.ts +0 -12
  40. package/lib/enums/ModifierKey.d.ts.map +0 -1
  41. package/lib/enums/ModifierKey.js +0 -13
@@ -1,20 +1,62 @@
1
1
  const fs = require('fs')
2
+ const bbls = require('./theme-bbls.js')
3
+ const {
4
+ shadeColor,
5
+ hexToRGBA,
6
+ getContrastYIQ,
7
+ hexifyWithWhiteBackground,
8
+ } = require('./theme-helpers.js')
2
9
 
3
10
  const initTheme = (
4
11
  primary,
5
12
  secondary,
6
13
  bgalpha,
7
- secondaryFooter = false,
8
- sidemenuColor,
9
- sidemenuItemColor,
14
+ customBgColor,
15
+ customPortalFooterColor,
16
+ customFooter,
17
+ defaultMenuBackground,
18
+ defaultMenuTextColor,
19
+ defaultMenuItemBackground,
20
+ defaultMenuItemActiveTextColor,
21
+ defaultMenuItemActiveBackground,
22
+ defaultMenuItemIconColor,
23
+ defaultMenuExternalLinkColor,
24
+ lightMenuBackground,
25
+ lightMenuTextColor,
26
+ lightMenuItemTextColor,
27
+ lightMenuItemBackground,
28
+ lightMenuItemActiveTextColor,
29
+ lightMenuItemActiveBackground,
30
+ lightMenuItemIconColor,
31
+ lightMenuExternalLinkColor,
10
32
  submenuColor,
11
33
  submenuItemColor,
12
34
  submenuTextColor,
13
35
  submenuTextColorActive,
14
- customBgColor,
15
- customPortalFooterColor,
16
- customFooter
36
+ defaultAppPickerBackground,
37
+ defaultAppPickerIconColor,
38
+ defaultAppPickerIconBackgroundColor,
39
+ defaultAppPickerActiveTextColor,
40
+ defaultAppPickerActiveBackground,
41
+ defaultAppPickerActiveIconColor,
42
+ defaultAppPickerActiveIconBackgroundColor,
43
+ lightAppPickerBackground,
44
+ lightAppPickerIconColor,
45
+ lightAppPickerIconBackground,
46
+ lightAppPickerActiveTextColor,
47
+ lightAppPickerActiveBackground,
48
+ lightAppPickerActiveIconColor,
49
+ lightAppPickerActiveIconBackground,
50
+ mypageBoxBorderRadius,
51
+ preemptionCardBorderRadius,
52
+ secondaryFooter = false
17
53
  ) => {
54
+ const getFooterColor = () => {
55
+ if (customFooter) return customFooter
56
+ if (secondaryFooter) return shadeColor(secondary, -50)
57
+ return shadeColor(primary, -50)
58
+ }
59
+
18
60
  const styles = {
19
61
  primary: primary,
20
62
  secondary: secondary,
@@ -27,14 +69,16 @@ const initTheme = (
27
69
  defaultText: '#000',
28
70
  subtleText: hexToRGBA('#000000', 0.7),
29
71
  secondaryDarkText: shadeColor(secondary, -80),
72
+ /**
73
+ * Backgrounds
74
+ */
30
75
  bgDark: '#10105A',
31
76
  bgMedium: '#CFD9EA',
32
77
  bgLight: '#EEF4FB',
33
- bgFooter: customFooter
34
- ? customFooter
35
- : secondaryFooter
36
- ? shadeColor(secondary, -50)
37
- : shadeColor(primary, -50),
78
+ bgFooter: getFooterColor(),
79
+ /**
80
+ * Buttons
81
+ */
38
82
  btnDefault: secondary,
39
83
  btnDefaultFontColor: getContrastYIQ(secondary),
40
84
  btnDefaultDarker: shadeColor(secondary, -15),
@@ -47,6 +91,9 @@ const initTheme = (
47
91
  btnDangerLighter: '#FF2740',
48
92
  btnDisabled: '#D7D7D7',
49
93
  btnHoverTextColor: getContrastYIQ(shadeColor(secondary, -15)),
94
+ /**
95
+ * Colors
96
+ */
50
97
  alert: '#EB011A',
51
98
  alertLight: '#FCD6DA',
52
99
  alertBorder: 'rgba(235,1,26,0.25)',
@@ -62,20 +109,114 @@ const initTheme = (
62
109
  gray10: '#BDBDBD',
63
110
  gray20: '#efefef',
64
111
  disabled: '#D7D7D7',
112
+ /**
113
+ * Shadows
114
+ */
65
115
  shadowSmall: '0px 2px 4px 0px rgba(0, 0, 0, 0.1)',
66
116
  shadowBig: '0px 10px 15px 0px rgba(0, 0, 0, 0.1)',
117
+ /**
118
+ * Illustrations
119
+ */
67
120
  illustrationGray: '#C3D0D8',
68
121
  illustrationPrimary50: hexifyWithWhiteBackground(hexToRGBA(primary, 0.5)),
69
122
  illustrationPrimary40: hexifyWithWhiteBackground(hexToRGBA(primary, 0.4)),
70
123
  illustrationPrimary20: hexifyWithWhiteBackground(hexToRGBA(primary, 0.2)),
71
124
  illustrationPrimary10: hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
72
125
  illustrationPrimary5: hexifyWithWhiteBackground(hexToRGBA(primary, 0.08)),
73
- sidemenuColor: sidemenuColor
74
- ? sidemenuColor
126
+
127
+ /**
128
+ * App picker - Default
129
+ */
130
+ defaultAppPickerBackground: defaultAppPickerBackground
131
+ ? defaultAppPickerBackground
132
+ : hexToRGBA('#ffffff', 0.3),
133
+ defaultAppPickerIconColor: defaultAppPickerIconColor
134
+ ? defaultAppPickerIconColor
135
+ : hexifyWithWhiteBackground(hexToRGBA(primary, 0.5)),
136
+ defaultAppPickerIconBackgroundColor: defaultAppPickerIconBackgroundColor
137
+ ? defaultAppPickerIconBackgroundColor
138
+ : hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
139
+ defaultAppPickerActiveTextColor: defaultAppPickerActiveTextColor
140
+ ? defaultAppPickerActiveTextColor
141
+ : '#ffffff',
142
+ defaultAppPickerActiveBackground: defaultAppPickerActiveBackground
143
+ ? defaultAppPickerActiveBackground
144
+ : '#ffffff',
145
+ defaultAppPickerActiveIconColor: defaultAppPickerActiveIconColor
146
+ ? defaultAppPickerActiveIconColor
147
+ : '#000000',
148
+ defaultAppPickerActiveIconBackgroundColor:
149
+ defaultAppPickerActiveIconBackgroundColor
150
+ ? defaultAppPickerActiveIconBackgroundColor
151
+ : '#ffffff',
152
+
153
+ /**
154
+ * App picker - Light
155
+ */
156
+ lightAppPickerBackground: lightAppPickerBackground
157
+ ? lightAppPickerBackground
158
+ : hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
159
+ lightAppPickerIconColor: lightAppPickerIconColor
160
+ ? lightAppPickerIconColor
161
+ : hexifyWithWhiteBackground(hexToRGBA(primary, 0.5)),
162
+ lightAppPickerIconBackground: lightAppPickerIconBackground
163
+ ? lightAppPickerIconBackground
164
+ : hexifyWithWhiteBackground('rgba(255, 255, 255, 0.7)'),
165
+ lightAppPickerActiveTextColor: lightAppPickerActiveTextColor
166
+ ? lightAppPickerActiveTextColor
167
+ : 'black',
168
+ lightAppPickerActiveBackground: lightAppPickerActiveBackground
169
+ ? lightAppPickerActiveBackground
170
+ : hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
171
+ lightAppPickerActiveIconColor: lightAppPickerActiveIconColor
172
+ ? lightAppPickerActiveIconColor
173
+ : '#000000',
174
+ lightAppPickerActiveIconBackground: lightAppPickerActiveIconBackground
175
+ ? lightAppPickerActiveIconBackground
176
+ : '#ffffff',
177
+
178
+ /**
179
+ * Sidemenu - Default
180
+ */
181
+ defaultMenuBackground: defaultMenuBackground
182
+ ? defaultMenuBackground
75
183
  : `linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), linear-gradient(${primary}, ${primary})`,
76
- sidemenuItemColor: sidemenuItemColor
77
- ? sidemenuItemColor
184
+ defaultMenuTextColor: defaultMenuTextColor || '#ffffff',
185
+ defaultMenuItemBackground: defaultMenuItemBackground || '#ffffff',
186
+ defaultMenuItemActiveTextColor: defaultMenuItemActiveTextColor || '#ffffff',
187
+ defaultMenuItemActiveBackground: defaultMenuItemActiveBackground
188
+ ? defaultMenuItemActiveBackground
78
189
  : `linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(${primary}, ${primary})`,
190
+ defaultMenuItemIconColor: defaultMenuItemIconColor || '#ffffff',
191
+ defaultMenuExternalLinkColor: defaultMenuExternalLinkColor || '#ffffff',
192
+
193
+ /**
194
+ * Sidemenu - Light
195
+ */
196
+ lightMenuBackground: lightMenuBackground ? lightMenuBackground : 'white',
197
+ lightMenuTextColor: lightMenuTextColor ? lightMenuTextColor : 'black',
198
+ lightMenuItemTextColor: lightMenuItemTextColor
199
+ ? lightMenuItemTextColor
200
+ : 'black',
201
+ lightMenuItemBackground: lightMenuItemBackground
202
+ ? lightMenuItemBackground
203
+ : 'black',
204
+ lightMenuItemActiveTextColor: lightMenuItemActiveTextColor
205
+ ? lightMenuItemActiveTextColor
206
+ : 'black',
207
+ lightMenuItemActiveBackground: lightMenuItemActiveBackground
208
+ ? lightMenuItemActiveBackground
209
+ : hexifyWithWhiteBackground(hexToRGBA(primary, 0.1)),
210
+ lightMenuItemIconColor: lightMenuItemIconColor
211
+ ? lightMenuItemIconColor
212
+ : primary,
213
+ lightMenuExternalLinkColor: lightMenuExternalLinkColor
214
+ ? lightMenuExternalLinkColor
215
+ : primary,
216
+
217
+ /**
218
+ * Submenu
219
+ */
79
220
  submenuColor: submenuColor
80
221
  ? submenuColor
81
222
  : `linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(${primary}, ${primary})`,
@@ -89,85 +230,68 @@ const initTheme = (
89
230
  ? submenuTextColorActive
90
231
  : `#ffffff`,
91
232
  customPortalFooterColor: customPortalFooterColor,
233
+
234
+ /**
235
+ * Boxes
236
+ */
237
+ mypageBoxBorderRadius: mypageBoxBorderRadius
238
+ ? mypageBoxBorderRadius
239
+ : '16px',
240
+ preemptionCardBorderRadius: preemptionCardBorderRadius
241
+ ? preemptionCardBorderRadius
242
+ : '30px',
92
243
  }
93
244
  return styles
94
245
  }
95
246
 
96
- // Helpers
97
- const hexToRGBA = (hex, alpha) => {
98
- var r = parseInt(hex.slice(1, 3), 16),
99
- g = parseInt(hex.slice(3, 5), 16),
100
- b = parseInt(hex.slice(5, 7), 16)
101
-
102
- return 'rgba(' + r + ', ' + g + ', ' + b + ', ' + alpha + ')'
103
- }
104
-
105
- function hexifyWithWhiteBackground(color) {
106
- var values = color
107
- .replace(/rgba?\(/, '')
108
- .replace(/\)/, '')
109
- .replace(/[\s+]/g, '')
110
- .split(',')
111
- var a = parseFloat(values[3] || 1),
112
- r = Math.floor(a * parseInt(values[0]) + (1 - a) * 255),
113
- g = Math.floor(a * parseInt(values[1]) + (1 - a) * 255),
114
- b = Math.floor(a * parseInt(values[2]) + (1 - a) * 255)
115
- return (
116
- '#' +
117
- ('0' + r.toString(16)).slice(-2) +
118
- ('0' + g.toString(16)).slice(-2) +
119
- ('0' + b.toString(16)).slice(-2)
120
- )
121
- }
122
-
123
- const shadeColor = (color, percent) => {
124
- var R = parseInt(color.substring(1, 3), 16)
125
- var G = parseInt(color.substring(3, 5), 16)
126
- var B = parseInt(color.substring(5, 7), 16)
127
-
128
- R = parseInt('' + (R * (100 + percent)) / 100)
129
- G = parseInt('' + (G * (100 + percent)) / 100)
130
- B = parseInt('' + (B * (100 + percent)) / 100)
131
-
132
- R = R < 255 ? R : 255
133
- G = G < 255 ? G : 255
134
- B = B < 255 ? B : 255
135
-
136
- var RR = R.toString(16).length === 1 ? '0' + R.toString(16) : R.toString(16)
137
- var GG = G.toString(16).length === 1 ? '0' + G.toString(16) : G.toString(16)
138
- var BB = B.toString(16).length === 1 ? '0' + B.toString(16) : B.toString(16)
139
-
140
- return '#' + RR + GG + BB
141
- }
142
-
143
- const getContrastYIQ = (hexcolor) => {
144
- hexcolor = hexcolor.replace('#', '')
145
- var r = parseInt(hexcolor.substr(0, 2), 16)
146
- var g = parseInt(hexcolor.substr(2, 2), 16)
147
- var b = parseInt(hexcolor.substr(4, 2), 16)
148
- var yiq = (r * 299 + g * 587 + b * 114) / 1000
149
- return yiq >= 128 ? 'black' : 'white'
150
- }
151
-
152
247
  const updateTheme = (bbl) => {
153
248
  if (bbl) {
154
249
  const b = bbls.find((x) => x.bbl === bbl)
155
- console.log(b)
250
+
156
251
  updateBbl(
157
252
  b.bbl,
158
253
  b.theme.primary,
159
254
  b.theme.secondary,
160
255
  b.theme.alpha,
161
- b.theme.secondaryFooter,
162
- b.theme.sidemenuColor,
163
- b.theme.sidemenuItemColor,
256
+ b.theme.customBgColor,
257
+ b.theme.customPortalFooterColor,
258
+ b.theme.customFooter,
259
+ b.theme.defaultMenuBackground,
260
+ b.theme.defaultMenuTextColor,
261
+ b.theme.defaultMenuItemBackground,
262
+ b.theme.defaultMenuItemActiveTextColor,
263
+ b.theme.defaultMenuItemActiveBackground,
264
+ b.theme.defaultMenuItemIconColor,
265
+ b.theme.defaultMenuExternalLinkColor,
266
+ b.theme.lightMenuBackground,
267
+ b.theme.lightMenuTextColor,
268
+ b.theme.lightMenuItemTextColor,
269
+ b.theme.lightMenuItemBackground,
270
+ b.theme.lightMenuItemActiveTextColor,
271
+ b.theme.lightMenuItemActiveBackground,
272
+ b.theme.lightMenuItemIconColor,
273
+ b.theme.lightMenuExternalLinkColor,
164
274
  b.theme.submenuColor,
165
275
  b.theme.submenuItemColor,
166
276
  b.theme.submenuTextColor,
167
277
  b.theme.submenuTextColorActive,
168
- b.theme.customBgColor,
169
- b.theme.customPortalFooterColor,
170
- b.theme.customFooter
278
+ b.theme.defaultAppPickerBackground,
279
+ b.theme.defaultAppPickerIconColor,
280
+ b.theme.defaultAppPickerIconBackgroundColor,
281
+ b.theme.defaultAppPickerActiveTextColor,
282
+ b.theme.defaultAppPickerActiveBackground,
283
+ b.theme.defaultAppPickerActiveIconColor,
284
+ b.theme.defaultAppPickerActiveIconBackgroundColor,
285
+ b.theme.lightAppPickerBackground,
286
+ b.theme.lightAppPickerIconColor,
287
+ b.theme.lightAppPickerIconBackground,
288
+ b.theme.lightAppPickerActiveTextColor,
289
+ b.theme.lightAppPickerActiveBackground,
290
+ b.theme.lightAppPickerActiveIconColor,
291
+ b.theme.lightAppPickerActiveIconBackground,
292
+ b.theme.mypageBoxBorderRadius,
293
+ b.theme.preemptionCardBorderRadius,
294
+ b.theme.secondaryFooter
171
295
  )
172
296
  } else {
173
297
  for (const b of bbls) {
@@ -176,16 +300,45 @@ const updateTheme = (bbl) => {
176
300
  b.theme.primary,
177
301
  b.theme.secondary,
178
302
  b.theme.alpha,
179
- b.theme.secondaryFooter,
180
- b.theme.sidemenuColor,
181
- b.theme.sidemenuItemColor,
303
+ b.theme.customBgColor,
304
+ b.theme.customPortalFooterColor,
305
+ b.theme.customFooter,
306
+ b.theme.defaultMenuBackground,
307
+ b.theme.defaultMenuTextColor,
308
+ b.theme.defaultMenuItemBackground,
309
+ b.theme.defaultMenuItemActiveTextColor,
310
+ b.theme.defaultMenuItemActiveBackground,
311
+ b.theme.defaultMenuItemIconColor,
312
+ b.theme.defaultMenuExternalLinkColor,
313
+ b.theme.lightMenuBackground,
314
+ b.theme.lightMenuTextColor,
315
+ b.theme.lightMenuItemTextColor,
316
+ b.theme.lightMenuItemBackground,
317
+ b.theme.lightMenuItemActiveTextColor,
318
+ b.theme.lightMenuItemActiveBackground,
319
+ b.theme.lightMenuItemIconColor,
320
+ b.theme.lightMenuExternalLinkColor,
182
321
  b.theme.submenuColor,
183
322
  b.theme.submenuItemColor,
184
323
  b.theme.submenuTextColor,
185
324
  b.theme.submenuTextColorActive,
186
- b.theme.customBgColor,
187
- b.theme.customPortalFooterColor,
188
- b.theme.customFooter
325
+ b.theme.defaultAppPickerBackground,
326
+ b.theme.defaultAppPickerIconColor,
327
+ b.theme.defaultAppPickerIconBackgroundColor,
328
+ b.theme.defaultAppPickerActiveTextColor,
329
+ b.theme.defaultAppPickerActiveBackground,
330
+ b.theme.defaultAppPickerActiveIconColor,
331
+ b.theme.defaultAppPickerActiveIconBackgroundColor,
332
+ b.theme.lightAppPickerBackground,
333
+ b.theme.lightAppPickerIconColor,
334
+ b.theme.lightAppPickerIconBackground,
335
+ b.theme.lightAppPickerActiveTextColor,
336
+ b.theme.lightAppPickerActiveBackground,
337
+ b.theme.lightAppPickerActiveIconColor,
338
+ b.theme.lightAppPickerActiveIconBackground,
339
+ b.theme.mypageBoxBorderRadius,
340
+ b.theme.preemptionCardBorderRadius,
341
+ b.theme.secondaryFooter
189
342
  )
190
343
  }
191
344
  }
@@ -196,32 +349,90 @@ const updateBbl = (
196
349
  primary,
197
350
  secondary,
198
351
  bgalpha,
199
- secondaryFooter = false,
200
- sidemenuColor,
201
- sidemenuItemColor,
352
+ customBgColor,
353
+ customPortalFooterColor,
354
+ customFooter,
355
+ defaultMenuBackground,
356
+ defaultMenuTextColor,
357
+ defaultMenuItemBackground,
358
+ defaultMenuItemActiveTextColor,
359
+ defaultMenuItemActiveBackground,
360
+ defaultMenuItemIconColor,
361
+ defaultMenuExternalLinkColor,
362
+ lightMenuBackground,
363
+ lightMenuTextColor,
364
+ lightMenuItemTextColor,
365
+ lightMenuItemBackground,
366
+ lightMenuItemActiveTextColor,
367
+ lightMenuItemActiveBackground,
368
+ lightMenuItemIconColor,
369
+ lightMenuExternalLinkColor,
202
370
  submenuColor,
203
371
  submenuItemColor,
204
372
  submenuTextColor,
205
373
  submenuTextColorActive,
206
- customBgColor,
207
- customPortalFooterColor,
208
- customFooter
374
+ defaultAppPickerBackground,
375
+ defaultAppPickerIconColor,
376
+ defaultAppPickerIconBackgroundColor,
377
+ defaultAppPickerActiveTextColor,
378
+ defaultAppPickerActiveBackground,
379
+ defaultAppPickerActiveIconColor,
380
+ defaultAppPickerActiveIconBackgroundColor,
381
+ lightAppPickerBackground,
382
+ lightAppPickerIconColor,
383
+ lightAppPickerIconBackground,
384
+ lightAppPickerActiveTextColor,
385
+ lightAppPickerActiveBackground,
386
+ lightAppPickerActiveIconColor,
387
+ lightAppPickerActiveIconBackground,
388
+ mypageBoxBorderRadius,
389
+ preemptionCardBorderRadius,
390
+ secondaryFooter = false
209
391
  ) => {
210
392
  let data = JSON.stringify(
211
393
  initTheme(
212
394
  primary,
213
395
  secondary,
214
396
  bgalpha,
215
- secondaryFooter,
216
- sidemenuColor,
217
- sidemenuItemColor,
397
+ customBgColor,
398
+ customPortalFooterColor,
399
+ customFooter,
400
+ defaultMenuBackground,
401
+ defaultMenuTextColor,
402
+ defaultMenuItemBackground,
403
+ defaultMenuItemActiveTextColor,
404
+ defaultMenuItemActiveBackground,
405
+ defaultMenuItemIconColor,
406
+ defaultMenuExternalLinkColor,
407
+ lightMenuBackground,
408
+ lightMenuTextColor,
409
+ lightMenuItemTextColor,
410
+ lightMenuItemBackground,
411
+ lightMenuItemActiveTextColor,
412
+ lightMenuItemActiveBackground,
413
+ lightMenuItemIconColor,
414
+ lightMenuExternalLinkColor,
218
415
  submenuColor,
219
416
  submenuItemColor,
220
417
  submenuTextColor,
221
418
  submenuTextColorActive,
222
- customBgColor,
223
- customPortalFooterColor,
224
- customFooter
419
+ defaultAppPickerBackground,
420
+ defaultAppPickerIconColor,
421
+ defaultAppPickerIconBackgroundColor,
422
+ defaultAppPickerActiveTextColor,
423
+ defaultAppPickerActiveBackground,
424
+ defaultAppPickerActiveIconColor,
425
+ defaultAppPickerActiveIconBackgroundColor,
426
+ lightAppPickerBackground,
427
+ lightAppPickerIconColor,
428
+ lightAppPickerIconBackground,
429
+ lightAppPickerActiveTextColor,
430
+ lightAppPickerActiveBackground,
431
+ lightAppPickerActiveIconColor,
432
+ lightAppPickerActiveIconBackground,
433
+ mypageBoxBorderRadius,
434
+ preemptionCardBorderRadius,
435
+ secondaryFooter
225
436
  ),
226
437
  null,
227
438
  2
@@ -230,404 +441,6 @@ const updateBbl = (
230
441
  fs.writeFileSync('themes/' + bbl + '/styles.json', data)
231
442
  }
232
443
 
233
- const bbls = [
234
- {
235
- bbl: 'arendal',
236
- theme: {
237
- primary: '#ED088A',
238
- secondary: '#22475F',
239
- alpha: '0.02',
240
- secondaryFooter: true,
241
- },
242
- },
243
- {
244
- bbl: 'kongsberg',
245
- theme: {
246
- primary: '#ED088A',
247
- secondary: '#22475F',
248
- alpha: '0.02',
249
- secondaryFooter: true,
250
- sidemenuColor: '#760445',
251
- submenuColor: '#A50660',
252
- submenuTextColor: 'rgba(255, 255, 255, 0.8)',
253
- },
254
- },
255
- {
256
- bbl: 'labo',
257
- theme: {
258
- primary: '#ED088A',
259
- secondary: '#22475F',
260
- alpha: '0.02',
261
- secondaryFooter: true,
262
- },
263
- },
264
- {
265
- bbl: 'mobo',
266
- theme: {
267
- primary: '#ED088A',
268
- secondary: '#22475F',
269
- alpha: '0.02',
270
- secondaryFooter: true,
271
- },
272
- },
273
- {
274
- bbl: 'moborana',
275
- theme: {
276
- primary: '#ED088A',
277
- secondary: '#22475F',
278
- alpha: '0.02',
279
- secondaryFooter: true,
280
- },
281
- },
282
- {
283
- bbl: 'mosjoen',
284
- theme: {
285
- primary: '#ED088A',
286
- secondary: '#22475F',
287
- alpha: '0.02',
288
- secondaryFooter: true,
289
- },
290
- },
291
- {
292
- bbl: 'notodden',
293
- theme: {
294
- primary: '#ED088A',
295
- secondary: '#22475F',
296
- alpha: '0.02',
297
- secondaryFooter: true,
298
- },
299
- },
300
- {
301
- bbl: 'polarlys',
302
- theme: {
303
- primary: '#ED088A',
304
- secondary: '#22475F',
305
- alpha: '0.02',
306
- secondaryFooter: true,
307
- },
308
- },
309
- {
310
- bbl: 'sunnbo',
311
- theme: {
312
- primary: '#0075B2',
313
- secondary: '#00527C',
314
- alpha: '0.02',
315
- },
316
- },
317
- {
318
- bbl: 'vansjobbl',
319
- theme: {
320
- primary: '#ED088A',
321
- secondary: '#22475F',
322
- alpha: '0.02',
323
- secondaryFooter: true,
324
- sidemenuColor: '#760445',
325
- submenuColor: '#A50660',
326
- submenuTextColor: 'rgba(255, 255, 255, 0.8)',
327
- },
328
- },
329
- {
330
- bbl: 'bori',
331
- theme: {
332
- primary: '#006930',
333
- secondary: '#7AB800',
334
- alpha: '0.02',
335
- },
336
- },
337
- {
338
- bbl: 'bbld',
339
- theme: {
340
- primary: '#1657E2',
341
- secondary: '#10105A',
342
- alpha: '0.02',
343
- },
344
- },
345
- {
346
- bbl: 'sobbl',
347
- theme: {
348
- primary: '#227F48',
349
- secondary: '#213228',
350
- alpha: '0.02',
351
- },
352
- },
353
- {
354
- bbl: 'kobbl',
355
- theme: {
356
- primary: '#A71930',
357
- secondary: '#B7C9D3',
358
- alpha: '0.02',
359
- secondaryFooter: true,
360
- },
361
- },
362
- {
363
- bbl: 'ringbo',
364
- theme: {
365
- primary: '#6585AF',
366
- secondary: '#E64596',
367
- alpha: '0.02',
368
- },
369
- },
370
- {
371
- bbl: 'abbl',
372
- theme: {
373
- primary: '#de6364',
374
- secondary: '#75b474',
375
- alpha: '0.02',
376
-
377
- secondaryFooter: true,
378
- sidemenuColor: '#004933',
379
- sidemenuItemColor: '#007f59',
380
- submenuColor: '#F5F2EB',
381
- submenuItemColor: '#75b474',
382
- submenuTextColor: 'rgba(0, 0, 0, 0.7)',
383
- submenuTextColorActive: 'black',
384
- customBgColor: '#FCFBF8',
385
- },
386
- },
387
- {
388
- bbl: 'bob',
389
- theme: {
390
- primary: '#582484',
391
- secondary: '#C5E6EF',
392
- alpha: '0.02',
393
- },
394
- },
395
- {
396
- bbl: 'tobb',
397
- theme: {
398
- primary: '#477A7B',
399
- secondary: '#003865',
400
- alpha: '0.04',
401
- },
402
- },
403
- {
404
- bbl: 'bomidt',
405
- theme: {
406
- primary: '#1897B7',
407
- secondary: '#4F67AB',
408
- alpha: '0.04',
409
- },
410
- },
411
- {
412
- bbl: 'bori',
413
- theme: {
414
- primary: '#006930',
415
- secondary: '#7AB800',
416
- alpha: '0.02',
417
- },
418
- },
419
- {
420
- bbl: 'gobb',
421
- theme: {
422
- primary: '#661B39',
423
- secondary: '#273D45',
424
- alpha: '0.04',
425
- },
426
- },
427
- {
428
- bbl: 'sorbbl',
429
- theme: {
430
- primary: '#006ED2',
431
- secondary: '#001A41',
432
- alpha: '0.04',
433
- },
434
- },
435
- {
436
- bbl: 'sbbl',
437
- theme: {
438
- primary: '#006ED2',
439
- secondary: '#001A41',
440
- alpha: '0.04',
441
- },
442
- },
443
- {
444
- bbl: 'sobo',
445
- theme: {
446
- primary: '#006ED2',
447
- secondary: '#001A41',
448
- alpha: '0.04',
449
- },
450
- },
451
- {
452
- bbl: 'bate',
453
- theme: {
454
- primary: '#D31F2C',
455
- secondary: '#1D1D1B',
456
- alpha: '0.02',
457
- secondaryFooter: true,
458
- },
459
- },
460
- {
461
- bbl: 'nbbo',
462
- theme: {
463
- primary: '#009199',
464
- secondary: '#812979',
465
- alpha: '0.02',
466
- secondaryFooter: true,
467
- },
468
- },
469
- {
470
- bbl: 'haubo',
471
- theme: {
472
- primary: '#D12725',
473
- secondary: '#1C1C1C',
474
- alpha: '0.04',
475
- secondaryFooter: true,
476
- },
477
- },
478
- {
479
- bbl: 'obf',
480
- theme: {
481
- primary: '#297154',
482
- secondary: '#F9F1DF',
483
- customBgColor: '#F8F8F8',
484
- alpha: '0.04',
485
- sidemenuColor: '#14382A',
486
- sidemenuItemColor: '#184432',
487
- submenuColor: '#194432',
488
- customPortalFooterColor: 'rgb(20, 56, 42)',
489
- customFooter: '#297154',
490
- },
491
- },
492
- {
493
- bbl: 'rtbbl',
494
- theme: {
495
- primary: '#AA96ED',
496
- secondary: '#22475F',
497
- alpha: '0.02',
498
- secondaryFooter: true,
499
- },
500
- },
501
- {
502
- bbl: 'rjukantinn',
503
- theme: {
504
- primary: '#AA96ED',
505
- secondary: '#22475F',
506
- alpha: '0.02',
507
- secondaryFooter: true,
508
- },
509
- },
510
- {
511
- bbl: 'pbbl',
512
- theme: {
513
- primary: '#0088B8',
514
- secondary: '#ED088A',
515
- alpha: '0.02',
516
- },
517
- },
518
- {
519
- bbl: 'usbl',
520
- theme: {
521
- primary: '#FA8268',
522
- secondary: '#D24448',
523
- alpha: '0.04',
524
- secondaryFooter: true,
525
- sidemenuColor: '#D04547',
526
- sidemenuItemColor: '#A73A37',
527
- submenuColor: '#F5F2EB',
528
- submenuItemColor: 'white',
529
- submenuTextColor: 'rgba(0, 0, 0, 0.7)',
530
- submenuTextColorActive: 'black',
531
- customBgColor: '#FCFBF8',
532
- customPortalFooterColor: '#343E40',
533
- },
534
- },
535
- {
536
- bbl: 'bodo',
537
- theme: {
538
- primary: '#DD2C2A',
539
- secondary: '#240216',
540
- alpha: '0.02',
541
- secondaryFooter: true,
542
- },
543
- },
544
- {
545
- bbl: 'nobl',
546
- theme: {
547
- primary: '#DD2C2A',
548
- secondary: '#240216',
549
- alpha: '0.02',
550
- secondaryFooter: true,
551
- },
552
- },
553
- {
554
- bbl: 'omt',
555
- theme: {
556
- primary: '#04A2D7',
557
- secondary: '#32395A',
558
- alpha: '0.02',
559
- secondaryFooter: true,
560
- },
561
- },
562
- {
563
- bbl: 'kbbl',
564
- theme: {
565
- primary: '#7FAB93',
566
- secondary: '#BCB3A2',
567
- alpha: '0.02',
568
- secondaryFooter: true,
569
- },
570
- },
571
- {
572
- bbl: 'bonord',
573
- theme: {
574
- primary: '#3D8471',
575
- secondary: '#E5AF7C',
576
- alpha: '0.04',
577
- },
578
- },
579
- {
580
- bbl: 'vestbo',
581
- theme: {
582
- primary: '#6BC0DC',
583
- secondary: '#466091',
584
- alpha: '0.04',
585
- secondaryFooter: true,
586
- },
587
- },
588
- {
589
- bbl: 'nbbl',
590
- theme: {
591
- primary: '#ED088A',
592
- secondary: '#22475F',
593
- alpha: '0.02',
594
- secondaryFooter: true,
595
- },
596
- },
597
- {
598
- bbl: 'kragero',
599
- theme: {
600
- primary: '#6585AF',
601
- secondary: '#E64596',
602
- alpha: '0.02',
603
- },
604
- },
605
- {
606
- bbl: 'habo',
607
- theme: {
608
- primary: '#345681',
609
- secondary: '#ED088A',
610
- alpha: '0.02',
611
- },
612
- },
613
- {
614
- bbl: 'aardal',
615
- theme: {
616
- primary: '#710718',
617
- secondary: '#22475F',
618
- alpha: '0.02',
619
- },
620
- },
621
- {
622
- bbl: 'skien',
623
- theme: {
624
- primary: '#ED088A',
625
- secondary: '#ED088A',
626
- alpha: '0.02',
627
- },
628
- },
629
- ]
630
-
631
444
  // export bbls with es5
632
445
  module.exports = bbls
633
446