@atb-as/theme 11.0.0-alpha.6 → 11.0.0-alpha.8
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/lib/theme.d.ts +165 -1589
- package/lib/theme.js +21 -2
- package/lib/theme.js.map +1 -1
- package/lib/themes/atb-theme/dark.d.ts +356 -699
- package/lib/themes/atb-theme/dark.js +353 -696
- package/lib/themes/atb-theme/dark.js.map +1 -1
- package/lib/themes/atb-theme/light.d.ts +356 -699
- package/lib/themes/atb-theme/light.js +353 -696
- package/lib/themes/atb-theme/light.js.map +1 -1
- package/lib/themes/atb-theme/theme.css +760 -0
- package/lib/themes/atb-theme/theme.d.ts +712 -1398
- package/lib/themes/atb-theme/theme.module.css +760 -0
- package/lib/themes-fs/atb-theme/dark.d.ts +722 -0
- package/lib/themes-fs/atb-theme/dark.js +722 -0
- package/lib/themes-fs/atb-theme/dark.js.map +1 -0
- package/lib/themes-fs/atb-theme/light.d.ts +722 -0
- package/lib/themes-fs/atb-theme/light.js +722 -0
- package/lib/themes-fs/atb-theme/light.js.map +1 -0
- package/lib/themes-fs/atb-theme/theme.d.ts +1442 -0
- package/lib/themes-fs/atb-theme/theme.js +11 -0
- package/lib/themes-fs/atb-theme/theme.js.map +1 -0
- package/lib/themes-fs/index.d.ts +1 -0
- package/lib/themes-fs/index.js +6 -0
- package/lib/themes-fs/index.js.map +1 -0
- package/lib/typography.css +260 -0
- package/lib/typography.module.css +260 -0
- package/package.json +4 -4
- package/lib/sizes.d.ts +0 -23
- package/lib/sizes.js +0 -23
- package/lib/sizes.js.map +0 -1
package/lib/theme.js
CHANGED
|
@@ -6,6 +6,12 @@ import { AtBThemes,
|
|
|
6
6
|
// TromsThemes,
|
|
7
7
|
// InnlandetThemes,
|
|
8
8
|
} from './themes';
|
|
9
|
+
import { AtBThemesFs,
|
|
10
|
+
// NfkThemes,
|
|
11
|
+
// FRAMThemes,
|
|
12
|
+
// TromsThemes,
|
|
13
|
+
// InnlandetThemes,
|
|
14
|
+
} from './themes-fs';
|
|
9
15
|
// The colors can be changed, but should follow standard practice as commented:
|
|
10
16
|
export var GeofencingZoneCodes;
|
|
11
17
|
(function (GeofencingZoneCodes) {
|
|
@@ -23,10 +29,23 @@ export var ThemeVariant;
|
|
|
23
29
|
ThemeVariant[ThemeVariant["Troms"] = 3] = "Troms";
|
|
24
30
|
ThemeVariant[ThemeVariant["Innlandet"] = 4] = "Innlandet";
|
|
25
31
|
})(ThemeVariant || (ThemeVariant = {}));
|
|
26
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Get a theme object for a specific organization in the desired format.
|
|
34
|
+
*
|
|
35
|
+
* @param themeVariant Organization
|
|
36
|
+
* @param themeOptions Set if the new Figma structure should be used
|
|
37
|
+
* @returns Theme object
|
|
38
|
+
*/
|
|
39
|
+
export function createThemesFor(themeVariant, themeOptions = { useFigmaStructure: false }) {
|
|
27
40
|
switch (themeVariant) {
|
|
28
41
|
case ThemeVariant.AtB:
|
|
29
|
-
|
|
42
|
+
if (themeOptions?.useFigmaStructure) {
|
|
43
|
+
return AtBThemesFs;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return AtBThemes;
|
|
47
|
+
;
|
|
48
|
+
}
|
|
30
49
|
// case ThemeVariant.Nfk:
|
|
31
50
|
// return NfkThemes;
|
|
32
51
|
// case ThemeVariant.FRAM:
|
package/lib/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AACjC,OAAO,
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AACjC,OAAO,EAAwB,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EACL,SAAS;AACT,aAAa;AACb,cAAc;AACd,eA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