@bbl-digital/snorre 2.2.0-beta.4 → 2.2.0-beta.5
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/bundle.js +2 -1
- package/esm/app-shell/theme.js +2 -1
- package/lib/app-shell/theme.d.ts +2 -0
- package/lib/app-shell/theme.d.ts.map +1 -1
- package/lib/app-shell/theme.js +2 -1
- package/package.json +1 -1
- package/theme-generator.js +12 -6
package/dist/bundle.js
CHANGED
@@ -70,7 +70,8 @@
|
|
70
70
|
submenuColor: values.submenuColor ? values.submenuColor : 'linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(#1657E2, #1657E2)',
|
71
71
|
submenuItemColor: values.submenuItemColor ? values.submenuItemColor : '#0b2b71',
|
72
72
|
submenuTextColor: values.submenuTextColor ? values.submenuTextColor : 'rgba(255, 255, 255, 0.7)',
|
73
|
-
submenuTextColorActive: values.submenuTextColorActive ? values.submenuTextColorActive : '#ffffff'
|
73
|
+
submenuTextColorActive: values.submenuTextColorActive ? values.submenuTextColorActive : '#ffffff',
|
74
|
+
customPortalFooterColor: values.customPortalFooterColor
|
74
75
|
};
|
75
76
|
return styles;
|
76
77
|
};
|
package/esm/app-shell/theme.js
CHANGED
@@ -57,7 +57,8 @@ export const initTheme = (values, defaultTextColor) => {
|
|
57
57
|
submenuColor: values.submenuColor ? values.submenuColor : 'linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(#1657E2, #1657E2)',
|
58
58
|
submenuItemColor: values.submenuItemColor ? values.submenuItemColor : '#0b2b71',
|
59
59
|
submenuTextColor: values.submenuTextColor ? values.submenuTextColor : 'rgba(255, 255, 255, 0.7)',
|
60
|
-
submenuTextColorActive: values.submenuTextColorActive ? values.submenuTextColorActive : '#ffffff'
|
60
|
+
submenuTextColorActive: values.submenuTextColorActive ? values.submenuTextColorActive : '#ffffff',
|
61
|
+
customPortalFooterColor: values.customPortalFooterColor
|
61
62
|
};
|
62
63
|
return styles;
|
63
64
|
};
|
package/lib/app-shell/theme.d.ts
CHANGED
@@ -57,6 +57,7 @@ export interface IAppTheme {
|
|
57
57
|
submenuItemColor: string;
|
58
58
|
submenuTextColor: string;
|
59
59
|
submenuTextColorActive: string;
|
60
|
+
customPortalFooterColor: string | null;
|
60
61
|
}
|
61
62
|
export declare const initTheme: (values: any, defaultTextColor?: string | undefined) => {
|
62
63
|
primary: any;
|
@@ -117,5 +118,6 @@ export declare const initTheme: (values: any, defaultTextColor?: string | undefi
|
|
117
118
|
submenuItemColor: any;
|
118
119
|
submenuTextColor: any;
|
119
120
|
submenuTextColorActive: any;
|
121
|
+
customPortalFooterColor: any;
|
120
122
|
};
|
121
123
|
//# sourceMappingURL=theme.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/packages/app-shell/theme.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IAExB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE,MAAM,CAAA;IAGxB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,EAAE,MAAM,CAAA;IAGzB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAGhB,UAAU,EAAE,MAAM,CAAA;IAClB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,MAA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AA;IACpB,aAAa,EAAE,MAAM,CAAA;IAGrB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAGhB,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IAGjB,gBAAgB,EAAE,MAAM,CAAA;IACxB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,oBAAoB,EAAE,MAAM,CAAA;IAG5B,aAAa,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,MAAM,CAAA;IACzB,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,EAAE,MAAM,CAAA;IACxB,gBAAgB,EAAE,MAAM,CAAA;IACxB,sBAAsB,EAAE,MAAM,CAAA;IAG9B,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAA;CACvC;AAED,eAAO,MAAM,SAAS,WAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiIpC,CAAA"}
|
package/lib/app-shell/theme.js
CHANGED
@@ -57,7 +57,8 @@ export const initTheme = (values, defaultTextColor) => {
|
|
57
57
|
submenuColor: values.submenuColor ? values.submenuColor : 'linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), linear-gradient(#1657E2, #1657E2)',
|
58
58
|
submenuItemColor: values.submenuItemColor ? values.submenuItemColor : '#0b2b71',
|
59
59
|
submenuTextColor: values.submenuTextColor ? values.submenuTextColor : 'rgba(255, 255, 255, 0.7)',
|
60
|
-
submenuTextColorActive: values.submenuTextColorActive ? values.submenuTextColorActive : '#ffffff'
|
60
|
+
submenuTextColorActive: values.submenuTextColorActive ? values.submenuTextColorActive : '#ffffff',
|
61
|
+
customPortalFooterColor: values.customPortalFooterColor
|
61
62
|
};
|
62
63
|
return styles;
|
63
64
|
};
|
package/package.json
CHANGED
package/theme-generator.js
CHANGED
@@ -11,7 +11,8 @@ const initTheme = (
|
|
11
11
|
submenuItemColor,
|
12
12
|
submenuTextColor,
|
13
13
|
submenuTextColorActive,
|
14
|
-
customBgColor
|
14
|
+
customBgColor,
|
15
|
+
customPortalFooterColor
|
15
16
|
) => {
|
16
17
|
const styles = {
|
17
18
|
primary: primary,
|
@@ -84,6 +85,7 @@ const initTheme = (
|
|
84
85
|
submenuTextColorActive: submenuTextColorActive
|
85
86
|
? submenuTextColorActive
|
86
87
|
: `#ffffff`,
|
88
|
+
customPortalFooterColor: customPortalFooterColor,
|
87
89
|
}
|
88
90
|
return styles
|
89
91
|
}
|
@@ -160,7 +162,8 @@ const updateTheme = (bbl) => {
|
|
160
162
|
b.theme.submenuItemColor,
|
161
163
|
b.theme.submenuTextColor,
|
162
164
|
b.theme.submenuTextColorActive,
|
163
|
-
b.theme.customBgColor
|
165
|
+
b.theme.customBgColor,
|
166
|
+
b.theme.customPortalFooterColor
|
164
167
|
)
|
165
168
|
} else {
|
166
169
|
for (const b of bbls) {
|
@@ -176,7 +179,8 @@ const updateTheme = (bbl) => {
|
|
176
179
|
b.theme.submenuItemColor,
|
177
180
|
b.theme.submenuTextColor,
|
178
181
|
b.theme.submenuTextColorActive,
|
179
|
-
b.theme.customBgColor
|
182
|
+
b.theme.customBgColor,
|
183
|
+
b.theme.customPortalFooterColor
|
180
184
|
)
|
181
185
|
}
|
182
186
|
}
|
@@ -194,7 +198,8 @@ const updateBbl = (
|
|
194
198
|
submenuItemColor,
|
195
199
|
submenuTextColor,
|
196
200
|
submenuTextColorActive,
|
197
|
-
customBgColor
|
201
|
+
customBgColor,
|
202
|
+
customPortalFooterColor
|
198
203
|
) => {
|
199
204
|
let data = JSON.stringify(
|
200
205
|
initTheme(
|
@@ -208,7 +213,8 @@ const updateBbl = (
|
|
208
213
|
submenuItemColor,
|
209
214
|
submenuTextColor,
|
210
215
|
submenuTextColorActive,
|
211
|
-
customBgColor
|
216
|
+
customBgColor,
|
217
|
+
customPortalFooterColor
|
212
218
|
)
|
213
219
|
)
|
214
220
|
console.log(data)
|
@@ -485,7 +491,7 @@ const bbls = [
|
|
485
491
|
submenuTextColor: 'rgba(0, 0, 0, 0.7)',
|
486
492
|
submenuTextColorActive: 'black',
|
487
493
|
customBgColor: '#FCFBF8',
|
488
|
-
|
494
|
+
customPortalFooterColor: '#343E40',
|
489
495
|
},
|
490
496
|
},
|
491
497
|
{
|