@atb-as/theme 11.0.0-alpha.12 → 11.0.0-alpha.13

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.
Files changed (44) hide show
  1. package/lib/theme.js +22 -8
  2. package/lib/theme.js.map +1 -1
  3. package/lib/themes/fram-theme/theme.css +763 -0
  4. package/lib/themes/fram-theme/theme.d.ts +215 -0
  5. package/lib/themes/fram-theme/theme.js +622 -0
  6. package/lib/themes/fram-theme/theme.js.map +1 -0
  7. package/lib/themes/fram-theme/theme.module.css +763 -0
  8. package/lib/themes/index.d.ts +4 -0
  9. package/lib/themes/index.js +9 -5
  10. package/lib/themes/index.js.map +1 -1
  11. package/lib/themes/innlandet-theme/theme.css +763 -0
  12. package/lib/themes/innlandet-theme/theme.d.ts +113 -0
  13. package/lib/themes/innlandet-theme/theme.js +502 -0
  14. package/lib/themes/innlandet-theme/theme.js.map +1 -0
  15. package/lib/themes/innlandet-theme/theme.module.css +763 -0
  16. package/lib/themes/nfk-theme/theme.css +763 -0
  17. package/lib/themes/nfk-theme/theme.d.ts +185 -0
  18. package/lib/themes/nfk-theme/theme.js +595 -0
  19. package/lib/themes/nfk-theme/theme.js.map +1 -0
  20. package/lib/themes/nfk-theme/theme.module.css +763 -0
  21. package/lib/themes/troms-theme/dark.d.ts +418 -0
  22. package/lib/themes/troms-theme/dark.js +420 -0
  23. package/lib/themes/troms-theme/dark.js.map +1 -0
  24. package/lib/themes/troms-theme/light.d.ts +427 -0
  25. package/lib/themes/troms-theme/light.js +429 -0
  26. package/lib/themes/troms-theme/light.js.map +1 -0
  27. package/lib/themes/troms-theme/theme.css +786 -0
  28. package/lib/themes/troms-theme/theme.d.ts +843 -0
  29. package/lib/themes/troms-theme/theme.js +16 -0
  30. package/lib/themes/troms-theme/theme.js.map +1 -0
  31. package/lib/themes/troms-theme/theme.module.css +786 -0
  32. package/lib/themes-fs/index.d.ts +1 -0
  33. package/lib/themes-fs/index.js +3 -2
  34. package/lib/themes-fs/index.js.map +1 -1
  35. package/lib/themes-fs/troms-theme/dark.d.ts +708 -0
  36. package/lib/themes-fs/troms-theme/dark.js +710 -0
  37. package/lib/themes-fs/troms-theme/dark.js.map +1 -0
  38. package/lib/themes-fs/troms-theme/light.d.ts +750 -0
  39. package/lib/themes-fs/troms-theme/light.js +752 -0
  40. package/lib/themes-fs/troms-theme/light.js.map +1 -0
  41. package/lib/themes-fs/troms-theme/theme.d.ts +1456 -0
  42. package/lib/themes-fs/troms-theme/theme.js +16 -0
  43. package/lib/themes-fs/troms-theme/theme.js.map +1 -0
  44. package/package.json +2 -2
package/lib/theme.js CHANGED
@@ -46,14 +46,28 @@ function createThemesFor(themeVariant, themeOptions) {
46
46
  return themes_1.AtBThemes;
47
47
  ;
48
48
  }
49
- // case ThemeVariant.Nfk:
50
- // return NfkThemes;
51
- // case ThemeVariant.FRAM:
52
- // return FRAMThemes;
53
- // case ThemeVariant.Troms:
54
- // return TromsThemes;
55
- // case ThemeVariant.Innlandet:
56
- // return InnlandetThemes;
49
+ case ThemeVariant.Troms:
50
+ if (themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.useFigmaStructure) {
51
+ return themes_fs_1.TromsThemesFs;
52
+ }
53
+ else {
54
+ return themes_1.TromsThemes;
55
+ }
56
+ case ThemeVariant.Nfk:
57
+ if (themeOptions.useFigmaStructure) {
58
+ console.log("Note that Nfk does not support the Figma structure yet. Return old structure.");
59
+ }
60
+ return themes_1.NfkThemes;
61
+ case ThemeVariant.FRAM:
62
+ if (themeOptions.useFigmaStructure) {
63
+ console.log("Note that FRAM does not support the Figma structure yet. Return old structure.");
64
+ }
65
+ return themes_1.FRAMThemes;
66
+ case ThemeVariant.Innlandet:
67
+ if (themeOptions.useFigmaStructure) {
68
+ console.log("Note that Innlandet does not support the Figma structure yet. Return old structure.");
69
+ }
70
+ return themes_1.InnlandetThemes;
57
71
  default:
58
72
  throw Error('A valid ThemeVariant must be provided');
59
73
  }
package/lib/theme.js.map CHAN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