@awc-ui/theme 1.0.0-beta.3 → 1.0.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.
@@ -3,6 +3,15 @@ import { type RoleMap, type ThemeComputeResult } from './types';
3
3
  export declare function applyThemeRoles(element: HTMLElement, roles: RoleMap): void;
4
4
  /** Remove inline MD3 color role overrides so stylesheet / data-theme tokens can apply. */
5
5
  export declare function clearThemeRoles(element: HTMLElement): void;
6
- /** Inject or update a stylesheet with light (:root) and dark ([data-theme="dark"]) role tokens. */
6
+ /**
7
+ * Inject or update a stylesheet with light (:root) and dark ([data-theme="dark"]) role tokens.
8
+ *
9
+ * Charts pick this up automatically: they watch `document.head` for the
10
+ * `<style>` this appends and for later rewrites of its content, so a seed or
11
+ * accent swap repaints every canvas on the page. The one path no browser API
12
+ * can observe is a sheet applied through `document.adoptedStyleSheets` or
13
+ * edited via CSSOM `insertRule` — if you theme that way with charts on
14
+ * screen, call each chart's `refreshTheme()` afterwards.
15
+ */
7
16
  export declare function applyThemeStylesheet(theme: ThemeComputeResult, styleId?: string): void;
8
17
  //# sourceMappingURL=apply-theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apply-theme.d.ts","sourceRoot":"","sources":["../src/apply-theme.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE3E,2FAA2F;AAC3F,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAI1E;AAED,0FAA0F;AAC1F,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAI1D;AAED,mGAAmG;AACnG,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,kBAAkB,EACzB,OAAO,SAAyB,GAC/B,IAAI,CAQN"}
1
+ {"version":3,"file":"apply-theme.d.ts","sourceRoot":"","sources":["../src/apply-theme.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE3E,2FAA2F;AAC3F,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAI1E;AAED,0FAA0F;AAC1F,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAI1D;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,kBAAkB,EACzB,OAAO,SAAyB,GAC/B,IAAI,CAQN"}