@ttoss/fsl-theme 1.1.16 → 1.1.18

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 (38) hide show
  1. package/dist/{baseBundle-DxvXyhGa.mjs → baseBundle-BLvD8XVS.mjs} +2 -2
  2. package/dist/{baseBundle-iEFf5nqT.cjs → baseBundle-BXvPJYzj.cjs} +2 -2
  3. package/dist/{createTheme-BLNYztZU.mjs → createTheme-DzLnsknT.mjs} +6 -6
  4. package/dist/{createTheme-Cv6RP9D6.cjs → createTheme-JOu16Shb.cjs} +6 -6
  5. package/dist/css.cjs +3 -3
  6. package/dist/css.mjs +3 -3
  7. package/dist/dataviz/index.cjs +3 -3
  8. package/dist/dataviz/index.mjs +2 -2
  9. package/dist/dtcg.cjs +8 -8
  10. package/dist/dtcg.mjs +8 -8
  11. package/dist/{helpers-4p4-QVt_.cjs → helpers-C29fy-Ad.cjs} +11 -11
  12. package/dist/{helpers-CaswNJMy.mjs → helpers-CA4Qkxct.mjs} +11 -11
  13. package/dist/index.cjs +1 -1
  14. package/dist/index.mjs +1 -1
  15. package/dist/{react-EUwpdvY7.cjs → react-CoWIQYx_.cjs} +16 -16
  16. package/dist/react.cjs +1 -1
  17. package/dist/react.mjs +16 -16
  18. package/dist/runtime-entry.cjs +1 -1
  19. package/dist/runtime-entry.mjs +1 -1
  20. package/dist/{ssrScript-D3kGPQpi.mjs → ssrScript-CoRE6jjq.mjs} +9 -9
  21. package/dist/{ssrScript-CRfrN8Pm.cjs → ssrScript-DOpLExaG.cjs} +9 -9
  22. package/dist/themes/bruttal.cjs +5 -5
  23. package/dist/themes/bruttal.mjs +5 -5
  24. package/dist/themes/corporate.cjs +4 -4
  25. package/dist/themes/corporate.mjs +4 -4
  26. package/dist/themes/oca.cjs +4 -4
  27. package/dist/themes/oca.mjs +4 -4
  28. package/dist/themes/ventures.cjs +4 -4
  29. package/dist/themes/ventures.mjs +4 -4
  30. package/dist/{toCssVars-CYZCe-on.mjs → toCssVars-BHRiSykR.mjs} +18 -18
  31. package/dist/{toCssVars-DudHKvt2.cjs → toCssVars-CUiqx2kh.cjs} +18 -18
  32. package/dist/{tokenRegistry-OhaJ9sPJ.cjs → tokenRegistry-B9zMRjpL.cjs} +3 -3
  33. package/dist/{tokenRegistry-DjgSN3oU.mjs → tokenRegistry-DolhB5Vf.mjs} +3 -3
  34. package/dist/vars.cjs +5 -5
  35. package/dist/vars.mjs +5 -5
  36. package/dist/{withDataviz-B4pVsOwV.cjs → withDataviz-BlJcYhcw.cjs} +4 -4
  37. package/dist/{withDataviz-DY5s7R51.mjs → withDataviz-DYV1S_xr.mjs} +4 -4
  38. package/package.json +5 -5
package/dist/react.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { r as deepMerge, s as toFlatTokens } from "./helpers-CaswNJMy.mjs";
2
+ import { r as deepMerge, s as toFlatTokens } from "./helpers-CA4Qkxct.mjs";
3
3
  import { getThemeStylesContent } from "./css.mjs";
4
- import { i as createThemeRuntime, t as getThemeScriptContent } from "./ssrScript-D3kGPQpi.mjs";
4
+ import { i as createThemeRuntime, t as getThemeScriptContent } from "./ssrScript-CoRE6jjq.mjs";
5
5
  import * as React from "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
 
8
8
  //#region src/react.tsx
9
- const COARSE_QUERY = "(any-pointer: coarse)";
9
+ var COARSE_QUERY = "(any-pointer: coarse)";
10
10
  /**
11
11
  * Subscribe to coarse-pointer media query changes.
12
12
  * Returns `true` when the device has at least one coarse pointer (touch).
13
13
  * Returns `false` on SSR or when `matchMedia` is unavailable (React Native).
14
14
  */
15
- const useCoarsePointer = () => {
15
+ var useCoarsePointer = () => {
16
16
  const [isCoarse, setIsCoarse] = React.useState(() => {
17
17
  return typeof window !== "undefined" && typeof window.matchMedia === "function" ? window.matchMedia(COARSE_QUERY).matches : false;
18
18
  });
@@ -38,7 +38,7 @@ const useCoarsePointer = () => {
38
38
  * consumers — ensuring non-CSS consumers (React Native, canvas) get
39
39
  * touch-appropriate hit targets.
40
40
  */
41
- const applyCoarseHitOverrides = (tokens, theme, isCoarse) => {
41
+ var applyCoarseHitOverrides = (tokens, theme, isCoarse) => {
42
42
  if (!isCoarse) return tokens;
43
43
  const overrides = {
44
44
  ...tokens
@@ -46,16 +46,16 @@ const applyCoarseHitOverrides = (tokens, theme, isCoarse) => {
46
46
  for (const [key, value] of Object.entries(theme.core.sizing.hit.coarse)) if (typeof value === "string") overrides[`semantic.sizing.hit.${key}`] = value;
47
47
  return overrides;
48
48
  };
49
- const SemanticTokensCtx = React.createContext(null);
49
+ var SemanticTokensCtx = React.createContext(null);
50
50
  /**
51
51
  * Resolves semantic tokens for the given bundle + mode combination.
52
52
  */
53
- const resolveSemanticTokens = (bundle, resolvedMode) => {
53
+ var resolveSemanticTokens = (bundle, resolvedMode) => {
54
54
  if (resolvedMode === bundle.baseMode || !bundle.alternate?.semantic) return bundle.base.semantic;
55
55
  return deepMerge(bundle.base.semantic, bundle.alternate.semantic);
56
56
  };
57
- const ResolvedTokensCtx = React.createContext(null);
58
- const ModeCtx = React.createContext(null);
57
+ var ResolvedTokensCtx = React.createContext(null);
58
+ var ModeCtx = React.createContext(null);
59
59
  /**
60
60
  * React provider that manages theme switching via `createThemeRuntime`.
61
61
  *
@@ -78,7 +78,7 @@ const ModeCtx = React.createContext(null);
78
78
  * );
79
79
  * ```
80
80
  */
81
- const ThemeProvider = ({
81
+ var ThemeProvider = ({
82
82
  defaultMode,
83
83
  storageKey,
84
84
  theme,
@@ -172,7 +172,7 @@ const ThemeProvider = ({
172
172
  });
173
173
  return coreNode;
174
174
  };
175
- const useColorMode = () => {
175
+ var useColorMode = () => {
176
176
  const context = React.useContext(ModeCtx);
177
177
  if (!context) throw new Error("useColorMode must be used within a <ThemeProvider>");
178
178
  return context;
@@ -215,7 +215,7 @@ const useColorMode = () => {
215
215
  * };
216
216
  * ```
217
217
  */
218
- const useTokens = () => {
218
+ var useTokens = () => {
219
219
  const tokens = React.useContext(SemanticTokensCtx);
220
220
  if (!React.useContext(ModeCtx)) throw new Error("useTokens must be used within a <ThemeProvider>");
221
221
  if (tokens === null) throw new Error("useTokens requires a <ThemeProvider theme={...}>. Pass your theme bundle: <ThemeProvider theme={myTheme} />");
@@ -259,7 +259,7 @@ const useTokens = () => {
259
259
  * };
260
260
  * ```
261
261
  */
262
- const useResolvedTokens = () => {
262
+ var useResolvedTokens = () => {
263
263
  const resolved = React.useContext(ResolvedTokensCtx);
264
264
  if (!React.useContext(ModeCtx)) throw new Error("useResolvedTokens must be used within a <ThemeProvider>");
265
265
  if (resolved === null) throw new Error("useResolvedTokens requires a <ThemeProvider theme={...}>. Pass your theme bundle: <ThemeProvider theme={myTheme} />");
@@ -287,7 +287,7 @@ const useResolvedTokens = () => {
287
287
  * }
288
288
  * ```
289
289
  */
290
- const ThemeScript = ({
290
+ var ThemeScript = ({
291
291
  defaultTheme,
292
292
  defaultMode,
293
293
  storageKey,
@@ -346,7 +346,7 @@ const ThemeScript = ({
346
346
  * <ThemeStyles theme={brandB} themeId="brand-b" />
347
347
  * ```
348
348
  */
349
- const ThemeStyles = ({
349
+ var ThemeStyles = ({
350
350
  theme,
351
351
  themeId,
352
352
  nonce
@@ -387,7 +387,7 @@ const ThemeStyles = ({
387
387
  * }
388
388
  * ```
389
389
  */
390
- const ThemeHead = ({
390
+ var ThemeHead = ({
391
391
  theme,
392
392
  themeId,
393
393
  nonce,
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, {
3
3
  value: 'Module'
4
4
  });
5
- const require_ssrScript = require('./ssrScript-CRfrN8Pm.cjs');
5
+ const require_ssrScript = require('./ssrScript-DOpLExaG.cjs');
6
6
  exports.DATA_MODE_ATTR = require_ssrScript.DATA_MODE_ATTR;
7
7
  exports.DATA_THEME_ATTR = require_ssrScript.DATA_THEME_ATTR;
8
8
  exports.createThemeRuntime = require_ssrScript.createThemeRuntime;
@@ -1,3 +1,3 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { i as createThemeRuntime, n as DATA_MODE_ATTR, r as DATA_THEME_ATTR, t as getThemeScriptContent } from "./ssrScript-D3kGPQpi.mjs";
2
+ import { i as createThemeRuntime, n as DATA_MODE_ATTR, r as DATA_THEME_ATTR, t as getThemeScriptContent } from "./ssrScript-CoRE6jjq.mjs";
3
3
  export { DATA_MODE_ATTR, DATA_THEME_ATTR, createThemeRuntime, getThemeScriptContent };
@@ -1,5 +1,5 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { n as SAFE_ID_RE } from "./helpers-CaswNJMy.mjs";
2
+ import { n as SAFE_ID_RE } from "./helpers-CA4Qkxct.mjs";
3
3
 
4
4
  //#region src/themeBootstrap.ts
5
5
  /**
@@ -9,7 +9,7 @@ import { n as SAFE_ID_RE } from "./helpers-CaswNJMy.mjs";
9
9
  * Does **not** touch the DOM — DOM writes are performed by `apply()` inside
10
10
  * `createThemeRuntime`, which is the single owner of all attribute mutations.
11
11
  */
12
- const resolveTheme = cfg => {
12
+ var resolveTheme = cfg => {
13
13
  let stored = null;
14
14
  try {
15
15
  const raw = localStorage.getItem(cfg.storageKey);
@@ -24,12 +24,12 @@ const resolveTheme = cfg => {
24
24
 
25
25
  //#endregion
26
26
  //#region src/runtime.ts
27
- const DATA_THEME_ATTR = "data-tt-theme";
28
- const DATA_MODE_ATTR = "data-tt-mode";
29
- const DEFAULT_STORAGE_KEY = "tt-theme";
27
+ var DATA_THEME_ATTR = "data-tt-theme";
28
+ var DATA_MODE_ATTR = "data-tt-mode";
29
+ var DEFAULT_STORAGE_KEY = "tt-theme";
30
30
  /** Valid values for the `mode` field. Used to sanitize localStorage input. */
31
- const VALID_MODES = ["light", "dark", "system"];
32
- const writeStorage = (key, data) => {
31
+ var VALID_MODES = ["light", "dark", "system"];
32
+ var writeStorage = (key, data) => {
33
33
  try {
34
34
  localStorage.setItem(key, JSON.stringify(data));
35
35
  } catch {}
@@ -51,7 +51,7 @@ const writeStorage = (key, data) => {
51
51
  * runtime.destroy();
52
52
  * ```
53
53
  */
54
- const createThemeRuntime = (config = {}) => {
54
+ var createThemeRuntime = (config = {}) => {
55
55
  const {
56
56
  defaultTheme,
57
57
  defaultMode = "system",
@@ -160,7 +160,7 @@ const createThemeRuntime = (config = {}) => {
160
160
  * }
161
161
  * ```
162
162
  */
163
- const getThemeScriptContent = (config = {}) => {
163
+ var getThemeScriptContent = (config = {}) => {
164
164
  const {
165
165
  defaultTheme,
166
166
  defaultMode = "system",
@@ -1,5 +1,5 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- const require_helpers = require('./helpers-4p4-QVt_.cjs');
2
+ const require_helpers = require('./helpers-C29fy-Ad.cjs');
3
3
 
4
4
  //#region src/themeBootstrap.ts
5
5
  /**
@@ -9,7 +9,7 @@ const require_helpers = require('./helpers-4p4-QVt_.cjs');
9
9
  * Does **not** touch the DOM — DOM writes are performed by `apply()` inside
10
10
  * `createThemeRuntime`, which is the single owner of all attribute mutations.
11
11
  */
12
- const resolveTheme = cfg => {
12
+ var resolveTheme = cfg => {
13
13
  let stored = null;
14
14
  try {
15
15
  const raw = localStorage.getItem(cfg.storageKey);
@@ -24,12 +24,12 @@ const resolveTheme = cfg => {
24
24
 
25
25
  //#endregion
26
26
  //#region src/runtime.ts
27
- const DATA_THEME_ATTR = "data-tt-theme";
28
- const DATA_MODE_ATTR = "data-tt-mode";
29
- const DEFAULT_STORAGE_KEY = "tt-theme";
27
+ var DATA_THEME_ATTR = "data-tt-theme";
28
+ var DATA_MODE_ATTR = "data-tt-mode";
29
+ var DEFAULT_STORAGE_KEY = "tt-theme";
30
30
  /** Valid values for the `mode` field. Used to sanitize localStorage input. */
31
- const VALID_MODES = ["light", "dark", "system"];
32
- const writeStorage = (key, data) => {
31
+ var VALID_MODES = ["light", "dark", "system"];
32
+ var writeStorage = (key, data) => {
33
33
  try {
34
34
  localStorage.setItem(key, JSON.stringify(data));
35
35
  } catch {}
@@ -51,7 +51,7 @@ const writeStorage = (key, data) => {
51
51
  * runtime.destroy();
52
52
  * ```
53
53
  */
54
- const createThemeRuntime = (config = {}) => {
54
+ var createThemeRuntime = (config = {}) => {
55
55
  const {
56
56
  defaultTheme,
57
57
  defaultMode = "system",
@@ -160,7 +160,7 @@ const createThemeRuntime = (config = {}) => {
160
160
  * }
161
161
  * ```
162
162
  */
163
- const getThemeScriptContent = (config = {}) => {
163
+ var getThemeScriptContent = (config = {}) => {
164
164
  const {
165
165
  defaultTheme,
166
166
  defaultMode = "system",
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, {
3
3
  value: 'Module'
4
4
  });
5
- const require_createTheme = require('../createTheme-Cv6RP9D6.cjs');
6
- const require_helpers = require('../helpers-4p4-QVt_.cjs');
7
- const require_withDataviz = require('../withDataviz-B4pVsOwV.cjs');
5
+ const require_createTheme = require('../createTheme-JOu16Shb.cjs');
6
+ const require_helpers = require('../helpers-C29fy-Ad.cjs');
7
+ const require_withDataviz = require('../withDataviz-BlJcYhcw.cjs');
8
8
 
9
9
  //#region src/themes/bruttal.ts
10
10
  /**
@@ -23,7 +23,7 @@ const require_withDataviz = require('../withDataviz-B4pVsOwV.cjs');
23
23
  * The dark alternate inherits `darkAlternate`'s colour remaps and only overrides
24
24
  * `elevation.surface.*` to preserve the flat brutalist identity under dark mode.
25
25
  */
26
- const bundle = require_createTheme.createTheme({
26
+ var bundle = require_createTheme.createTheme({
27
27
  overrides: {
28
28
  core: {
29
29
  colors: {
@@ -69,7 +69,7 @@ const bundle = require_createTheme.createTheme({
69
69
  }
70
70
  })
71
71
  });
72
- const bruttal = require_withDataviz.withDataviz(bundle);
72
+ var bruttal = require_withDataviz.withDataviz(bundle);
73
73
 
74
74
  //#endregion
75
75
  exports.bruttal = bruttal;
@@ -1,7 +1,7 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { i as darkAlternate, n as createTheme } from "../createTheme-BLNYztZU.mjs";
3
- import { r as deepMerge } from "../helpers-CaswNJMy.mjs";
4
- import { t as withDataviz } from "../withDataviz-DY5s7R51.mjs";
2
+ import { i as darkAlternate, n as createTheme } from "../createTheme-DzLnsknT.mjs";
3
+ import { r as deepMerge } from "../helpers-CA4Qkxct.mjs";
4
+ import { t as withDataviz } from "../withDataviz-DYV1S_xr.mjs";
5
5
 
6
6
  //#region src/themes/bruttal.ts
7
7
  /**
@@ -20,7 +20,7 @@ import { t as withDataviz } from "../withDataviz-DY5s7R51.mjs";
20
20
  * The dark alternate inherits `darkAlternate`'s colour remaps and only overrides
21
21
  * `elevation.surface.*` to preserve the flat brutalist identity under dark mode.
22
22
  */
23
- const bundle = createTheme({
23
+ var bundle = createTheme({
24
24
  overrides: {
25
25
  core: {
26
26
  colors: {
@@ -66,7 +66,7 @@ const bundle = createTheme({
66
66
  }
67
67
  })
68
68
  });
69
- const bruttal = withDataviz(bundle);
69
+ var bruttal = withDataviz(bundle);
70
70
 
71
71
  //#endregion
72
72
  export { bruttal };
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, {
3
3
  value: 'Module'
4
4
  });
5
- const require_createTheme = require('../createTheme-Cv6RP9D6.cjs');
6
- const require_withDataviz = require('../withDataviz-B4pVsOwV.cjs');
5
+ const require_createTheme = require('../createTheme-JOu16Shb.cjs');
6
+ const require_withDataviz = require('../withDataviz-BlJcYhcw.cjs');
7
7
 
8
8
  //#region src/themes/corporate.ts
9
- const bundle = require_createTheme.createTheme({
9
+ var bundle = require_createTheme.createTheme({
10
10
  overrides: {
11
11
  core: {
12
12
  colors: {
@@ -28,7 +28,7 @@ const bundle = require_createTheme.createTheme({
28
28
  },
29
29
  alternate: void 0
30
30
  });
31
- const corporate = require_withDataviz.withDataviz(bundle);
31
+ var corporate = require_withDataviz.withDataviz(bundle);
32
32
 
33
33
  //#endregion
34
34
  exports.corporate = corporate;
@@ -1,9 +1,9 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { n as createTheme } from "../createTheme-BLNYztZU.mjs";
3
- import { t as withDataviz } from "../withDataviz-DY5s7R51.mjs";
2
+ import { n as createTheme } from "../createTheme-DzLnsknT.mjs";
3
+ import { t as withDataviz } from "../withDataviz-DYV1S_xr.mjs";
4
4
 
5
5
  //#region src/themes/corporate.ts
6
- const bundle = createTheme({
6
+ var bundle = createTheme({
7
7
  overrides: {
8
8
  core: {
9
9
  colors: {
@@ -25,7 +25,7 @@ const bundle = createTheme({
25
25
  },
26
26
  alternate: void 0
27
27
  });
28
- const corporate = withDataviz(bundle);
28
+ var corporate = withDataviz(bundle);
29
29
 
30
30
  //#endregion
31
31
  export { corporate };
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, {
3
3
  value: 'Module'
4
4
  });
5
- const require_createTheme = require('../createTheme-Cv6RP9D6.cjs');
6
- const require_withDataviz = require('../withDataviz-B4pVsOwV.cjs');
5
+ const require_createTheme = require('../createTheme-JOu16Shb.cjs');
6
+ const require_withDataviz = require('../withDataviz-BlJcYhcw.cjs');
7
7
 
8
8
  //#region src/themes/oca.ts
9
- const bundle = require_createTheme.createTheme({
9
+ var bundle = require_createTheme.createTheme({
10
10
  overrides: {
11
11
  core: {
12
12
  colors: {
@@ -28,7 +28,7 @@ const bundle = require_createTheme.createTheme({
28
28
  },
29
29
  alternate: void 0
30
30
  });
31
- const oca = require_withDataviz.withDataviz(bundle);
31
+ var oca = require_withDataviz.withDataviz(bundle);
32
32
 
33
33
  //#endregion
34
34
  exports.oca = oca;
@@ -1,9 +1,9 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { n as createTheme } from "../createTheme-BLNYztZU.mjs";
3
- import { t as withDataviz } from "../withDataviz-DY5s7R51.mjs";
2
+ import { n as createTheme } from "../createTheme-DzLnsknT.mjs";
3
+ import { t as withDataviz } from "../withDataviz-DYV1S_xr.mjs";
4
4
 
5
5
  //#region src/themes/oca.ts
6
- const bundle = createTheme({
6
+ var bundle = createTheme({
7
7
  overrides: {
8
8
  core: {
9
9
  colors: {
@@ -25,7 +25,7 @@ const bundle = createTheme({
25
25
  },
26
26
  alternate: void 0
27
27
  });
28
- const oca = withDataviz(bundle);
28
+ var oca = withDataviz(bundle);
29
29
 
30
30
  //#endregion
31
31
  export { oca };
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, {
3
3
  value: 'Module'
4
4
  });
5
- const require_createTheme = require('../createTheme-Cv6RP9D6.cjs');
6
- const require_withDataviz = require('../withDataviz-B4pVsOwV.cjs');
5
+ const require_createTheme = require('../createTheme-JOu16Shb.cjs');
6
+ const require_withDataviz = require('../withDataviz-BlJcYhcw.cjs');
7
7
 
8
8
  //#region src/themes/ventures.ts
9
- const bundle = require_createTheme.createTheme({
9
+ var bundle = require_createTheme.createTheme({
10
10
  overrides: {
11
11
  core: {
12
12
  colors: {
@@ -28,7 +28,7 @@ const bundle = require_createTheme.createTheme({
28
28
  },
29
29
  alternate: void 0
30
30
  });
31
- const ventures = require_withDataviz.withDataviz(bundle);
31
+ var ventures = require_withDataviz.withDataviz(bundle);
32
32
 
33
33
  //#endregion
34
34
  exports.ventures = ventures;
@@ -1,9 +1,9 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { n as createTheme } from "../createTheme-BLNYztZU.mjs";
3
- import { t as withDataviz } from "../withDataviz-DY5s7R51.mjs";
2
+ import { n as createTheme } from "../createTheme-DzLnsknT.mjs";
3
+ import { t as withDataviz } from "../withDataviz-DYV1S_xr.mjs";
4
4
 
5
5
  //#region src/themes/ventures.ts
6
- const bundle = createTheme({
6
+ var bundle = createTheme({
7
7
  overrides: {
8
8
  core: {
9
9
  colors: {
@@ -25,7 +25,7 @@ const bundle = createTheme({
25
25
  },
26
26
  alternate: void 0
27
27
  });
28
- const ventures = withDataviz(bundle);
28
+ var ventures = withDataviz(bundle);
29
29
 
30
30
  //#endregion
31
31
  export { ventures };
@@ -1,6 +1,6 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { a as flattenTheme, i as flattenObject, n as SAFE_ID_RE, r as deepMerge, t as COMPOUND_REF_RE } from "./helpers-CaswNJMy.mjs";
3
- import { t as CSS_PATH_PREFIXES } from "./tokenRegistry-DjgSN3oU.mjs";
2
+ import { a as flattenTheme, i as flattenObject, n as SAFE_ID_RE, r as deepMerge, t as COMPOUND_REF_RE } from "./helpers-CA4Qkxct.mjs";
3
+ import { t as CSS_PATH_PREFIXES } from "./tokenRegistry-DolhB5Vf.mjs";
4
4
 
5
5
  //#region src/roots/toCssVars.ts
6
6
  /**
@@ -9,7 +9,7 @@ import { t as CSS_PATH_PREFIXES } from "./tokenRegistry-DjgSN3oU.mjs";
9
9
  * `core.colors.brand.500` → `--tt-core-colors-brand-500`
10
10
  * `semantic.colors.action.primary.background.default` → `--tt-colors-action-primary-background-default`
11
11
  */
12
- const toCssVarName = tokenPath => {
12
+ var toCssVarName = tokenPath => {
13
13
  for (const [prefix, cssPrefix] of CSS_PATH_PREFIXES) if (tokenPath.startsWith(prefix)) return `${cssPrefix}${tokenPath.slice(prefix.length).replace(/\./g, "-")}`;
14
14
  return `--tt-${tokenPath.replace(/\./g, "-")}`;
15
15
  };
@@ -20,7 +20,7 @@ const toCssVarName = tokenPath => {
20
20
  * `clamp({core.spacing.4}, {core.spacing.6}, {core.spacing.12})`
21
21
  * → `clamp(var(--tt-core-spacing-4), var(--tt-core-spacing-6), var(--tt-core-spacing-12))`
22
22
  */
23
- const inlineRefsToVars = value => {
23
+ var inlineRefsToVars = value => {
24
24
  return value.replace(COMPOUND_REF_RE, (_match, path) => {
25
25
  return `var(${toCssVarName(path)})`;
26
26
  });
@@ -31,7 +31,7 @@ const inlineRefsToVars = value => {
31
31
  * Core tokens get raw values. Semantic tokens get `var()` references
32
32
  * to preserve the cascade relationship at runtime.
33
33
  */
34
- const buildCssVars = theme => {
34
+ var buildCssVars = theme => {
35
35
  const vars = {};
36
36
  const {
37
37
  core: coreFlat,
@@ -44,11 +44,11 @@ const buildCssVars = theme => {
44
44
  }
45
45
  return vars;
46
46
  };
47
- const sanitizeId = value => {
47
+ var sanitizeId = value => {
48
48
  if (!SAFE_ID_RE.test(value)) throw new Error(`Invalid themeId "${value}". Only alphanumeric characters, hyphens, and underscores are allowed.`);
49
49
  return value;
50
50
  };
51
- const buildSelector = ({
51
+ var buildSelector = ({
52
52
  themeId,
53
53
  mode,
54
54
  selector
@@ -60,9 +60,9 @@ const buildSelector = ({
60
60
  return s;
61
61
  };
62
62
  /** Matches container query length units: cqi, cqb, cqw, cqh, cqmin, cqmax */
63
- const CQ_UNIT_RE = /cq(?:i|b|w|h|min|max)(?![a-z])/i;
63
+ var CQ_UNIT_RE = /cq(?:i|b|w|h|min|max)(?![a-z])/i;
64
64
  /** Check if a CSS value contains container query units. */
65
- const hasCqUnits = value => {
65
+ var hasCqUnits = value => {
66
66
  return typeof value === "string" && CQ_UNIT_RE.test(value);
67
67
  };
68
68
  /**
@@ -70,13 +70,13 @@ const hasCqUnits = value => {
70
70
  *
71
71
  * cqi → vw, cqb → vh, cqw → vw, cqh → vh, cqmin → vmin, cqmax → vmax
72
72
  */
73
- const toViewportFallback = value => {
73
+ var toViewportFallback = value => {
74
74
  return value.replace(/cqmin(?![a-z])/gi, "vmin").replace(/cqmax(?![a-z])/gi, "vmax").replace(/cqi(?![a-z])/gi, "vw").replace(/cqb(?![a-z])/gi, "vh").replace(/cqw(?![a-z])/gi, "vw").replace(/cqh(?![a-z])/gi, "vh");
75
75
  };
76
76
  /**
77
77
  * Extract entries from a CSS vars record whose values contain CQ units.
78
78
  */
79
- const extractContainerQueryVars = vars => {
79
+ var extractContainerQueryVars = vars => {
80
80
  const cqVars = {};
81
81
  for (const [name, value] of Object.entries(vars)) if (hasCqUnits(value)) cqVars[name] = value;
82
82
  return cqVars;
@@ -91,7 +91,7 @@ const extractContainerQueryVars = vars => {
91
91
  * Sets all semantic motion duration vars to `var(--tt-core-motion-duration-none)` (0ms).
92
92
  * Emitted inside `@media (prefers-reduced-motion: reduce)`.
93
93
  */
94
- const buildReducedMotionVars = theme => {
94
+ var buildReducedMotionVars = theme => {
95
95
  const noneVar = `var(${toCssVarName("core.motion.duration.none")})`;
96
96
  const flat = flattenObject(theme.semantic.motion, "semantic.motion");
97
97
  const vars = {};
@@ -108,7 +108,7 @@ const buildReducedMotionVars = theme => {
108
108
  * Derives every `*.coarse.*` path from `core.sizing.hit.coarse` dynamically,
109
109
  * so adding a new step to `CoreSizeHitScale` never silently omits it here.
110
110
  */
111
- const buildCoarseHitVars = theme => {
111
+ var buildCoarseHitVars = theme => {
112
112
  const vars = {};
113
113
  for (const [key, value] of Object.entries(theme.core.sizing.hit.coarse)) if (typeof value === "string") vars[toCssVarName(`semantic.sizing.hit.${key}`)] = value;
114
114
  return vars;
@@ -120,7 +120,7 @@ const buildCoarseHitVars = theme => {
120
120
  * coarse-pointer `@media` block, and reduced-motion `@media` block.
121
121
  * This is the single implementation shared by `toCssVars` and `bundleToCssVars`.
122
122
  */
123
- const buildCssBlock = ({
123
+ var buildCssBlock = ({
124
124
  selector,
125
125
  vars,
126
126
  containerQueryVars,
@@ -153,7 +153,7 @@ const buildCssBlock = ({
153
153
  * Internal: convert a single `ThemeTokens` into CSS custom properties.
154
154
  * Use the public overloaded `toCssVars()` instead.
155
155
  */
156
- const toCssVarsBase = (theme, options = {}) => {
156
+ var toCssVarsBase = (theme, options = {}) => {
157
157
  const cssVars = buildCssVars(theme);
158
158
  const coarseHitVars = buildCoarseHitVars(theme);
159
159
  const reducedMotionVars = buildReducedMotionVars(theme);
@@ -183,13 +183,13 @@ const toCssVarsBase = (theme, options = {}) => {
183
183
  };
184
184
  };
185
185
  /** Type guard: checks if the input is a ThemeBundle. */
186
- const isThemeBundle = input => {
186
+ var isThemeBundle = input => {
187
187
  return "baseMode" in input && "base" in input;
188
188
  };
189
189
  /**
190
190
  * Compute a diff record: only entries in `full` whose values differ from `base`.
191
191
  */
192
- const diffCssVars = ({
192
+ var diffCssVars = ({
193
193
  base,
194
194
  full
195
195
  }) => {
@@ -211,7 +211,7 @@ const diffCssVars = ({
211
211
  * // → base block (all vars) + dark block (only changed vars) + coarse block
212
212
  * ```
213
213
  */
214
- const bundleToCssVars = (bundle, options) => {
214
+ var bundleToCssVars = (bundle, options) => {
215
215
  const {
216
216
  themeId
217
217
  } = options;