atriusmaps-node-sdk 3.3.1067 → 3.3.1068

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "3.3.1067";
5
+ var version = "3.3.1068";
6
6
  var pkg = {
7
7
  version: version};
8
8
 
@@ -1 +1 @@
1
- var a="3.3.1067",e={version:a};export{e as default,a as version};
1
+ var a="3.3.1068",e={version:a};export{e as default,a as version};
@@ -11,6 +11,22 @@ type ThemeManagerState = {
11
11
  theme: ResolvedTheme;
12
12
  contentURL: string | null;
13
13
  };
14
+ /**
15
+ * Generate CSS custom properties from theme colors
16
+ * Flattens nested keyboard colors and creates alpha variants on-demand
17
+ *
18
+ * Alpha variants are defined explicitly based on actual usage in the codebase.
19
+ * This approach:
20
+ * - Makes CSS output more efficient (only generates what we use)
21
+ * - Documents which alpha variants are actually needed
22
+ * - Makes it easy to spot opportunities for consolidation
23
+ *
24
+ * To add a new alpha variant:
25
+ * 1. Add it to the alphaVariants array below
26
+ * 2. Use it in code as: var(--color-{colorName}-{alphaValue})
27
+ */
28
+ declare const generateCSSVariables: (theme: ResolvedTheme) => string;
29
+ declare const GlobalStyle: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
14
30
  declare const initThemeManager: (app: ThemeManagerApp) => {
15
31
  buildTheme: (themeDef: ThemeDef, defaultTheme?: string) => {
16
32
  getTheme: () => ResolvedTheme;
@@ -26,4 +42,4 @@ declare const initThemeManager: (app: ThemeManagerApp) => {
26
42
  getThemeState: () => StateObjMultiple<ThemeManagerState>;
27
43
  };
28
44
  };
29
- export { initThemeManager };
45
+ export { initThemeManager, GlobalStyle, generateCSSVariables };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atriusmaps-node-sdk",
3
- "version": "3.3.1067",
3
+ "version": "3.3.1068",
4
4
  "description": "This project provides an API to Atrius Personal Wayfinder maps within a Node environment. See the README.md for more information",
5
5
  "keywords": [
6
6
  "acuitybrands",