@graphysdk/react-renderer 2.0.0-beta.1787130761469 → 2.0.0-beta.1787255264612

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.
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./typography-CsG_IWDd.cjs");let s=require("@graphysdk/viz-engine/graph-config");var v=(e,n)=>{const r=e.appearance?.textStyle;return{...c(e.themeOverrides),...n&&r?l(r,n):void 0}},l=(e,n)=>{const r=a=>a===void 0?void 0:n.find(i=>i.id===a)?.fontFamily,o=r(e.body?.fontId),t=r(e.heading?.fontId);return{...o?{fontFamilyDefault:o}:void 0,...t?{fontFamilyHeading:t}:void 0}},c=e=>{if(e===void 0)return;const n={};for(const[r,o]of Object.entries(e))if(d.isMeasuredFontTokenKey(r)&&typeof o=="string"){const t=(0,s.parseFontShorthand)(o);if(t===null){f(r,o);continue}n[r]=t}else n[r]=o;return n},f=(e,n)=>{process.env.NODE_ENV!=="production"&&console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${e}": "${n}" is not a measurable font shorthand (needs a px/em size and a family).`)};exports.convertGraphConfigTheme=v;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./dev.utils-DiNE92pC.cjs");let s=require("@graphysdk/viz-engine/graph-config");var v=(e,n)=>{const r=e.appearance?.textStyle;return{...f(e.themeOverrides),...n&&r?l(r,n):void 0}},l=(e,n)=>{const r=i=>i===void 0?void 0:n.find(d=>d.id===i)?.fontFamily,o=r(e.body?.fontId),t=r(e.heading?.fontId);return{...o?{fontFamilyDefault:o}:void 0,...t?{fontFamilyHeading:t}:void 0}},f=e=>{if(e===void 0)return;const n={};for(const[r,o]of Object.entries(e))if(a.isMeasuredFontTokenKey(r)&&typeof o=="string"){const t=(0,s.parseFontShorthand)(o);if(t===null){c(r,o);continue}n[r]=t}else n[r]=o;return n},c=(e,n)=>{a.IS_DEV&&console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${e}": "${n}" is not a measurable font shorthand (needs a px/em size and a family).`)};exports.convertGraphConfigTheme=v;
@@ -119,7 +119,6 @@ declare const vars: {
119
119
  heatmapEmptyTileBackground: `var(--${string})`;
120
120
  gridLineWidth: `var(--${string})`;
121
121
  tooltipBorderRadius: `var(--${string})`;
122
- tooltipBorderWidth: `var(--${string})`;
123
122
  tooltipPaddingBlock: `var(--${string})`;
124
123
  tooltipPaddingInline: `var(--${string})`;
125
124
  tooltipRowGap: `var(--${string})`;
@@ -170,10 +169,7 @@ declare const vars: {
170
169
  toolbarSeparatorColor: `var(--${string})`;
171
170
  tooltipBackground: `var(--${string})`;
172
171
  tooltipBorderColor: `var(--${string})`;
173
- tooltipHeadingTextColor: `var(--${string})`;
174
- tooltipLabelTextColor: `var(--${string})`;
175
172
  tooltipValueTextColor: `var(--${string})`;
176
- tooltipPrimaryRowColor: `var(--${string})`;
177
173
  hoverGuideLineColor: `var(--${string})`;
178
174
  hoverGuideFillColor: `var(--${string})`;
179
175
  fontFamilyDefault: `var(--${string})`;
@@ -207,8 +203,6 @@ declare const vars: {
207
203
  fontLineHeightHeadingLg: `var(--${string})`;
208
204
  fontLegendLabel: `var(--${string})`;
209
205
  fontSeriesLabel: `var(--${string})`;
210
- fontTooltipLabel: `var(--${string})`;
211
- fontTooltipHeading: `var(--${string})`;
212
206
  fontTooltipFooter: `var(--${string})`;
213
207
  fontJumboTooltipLabel: `var(--${string})`;
214
208
  fontJumboTooltip: `var(--${string})`;
@@ -1,32 +1,32 @@
1
- import { l as d } from "./typography-DUFp65Tx.js";
2
- import { parseFontShorthand as s } from "@graphysdk/viz-engine/graph-config";
3
- var p = (e, n) => {
1
+ import { t as d, u as s } from "./dev.utils-Bvss_b2-.js";
2
+ import { parseFontShorthand as v } from "@graphysdk/viz-engine/graph-config";
3
+ var y = (e, n) => {
4
4
  const r = e.appearance?.textStyle;
5
5
  return {
6
- ...f(e.themeOverrides),
7
- ...n && r ? v(r, n) : void 0
6
+ ...l(e.themeOverrides),
7
+ ...n && r ? f(r, n) : void 0
8
8
  };
9
- }, v = (e, n) => {
9
+ }, f = (e, n) => {
10
10
  const r = (a) => a === void 0 ? void 0 : n.find((i) => i.id === a)?.fontFamily, o = r(e.body?.fontId), t = r(e.heading?.fontId);
11
11
  return {
12
12
  ...o ? { fontFamilyDefault: o } : void 0,
13
13
  ...t ? { fontFamilyHeading: t } : void 0
14
14
  };
15
- }, f = (e) => {
15
+ }, l = (e) => {
16
16
  if (e === void 0) return;
17
17
  const n = {};
18
- for (const [r, o] of Object.entries(e)) if (d(r) && typeof o == "string") {
19
- const t = s(o);
18
+ for (const [r, o] of Object.entries(e)) if (s(r) && typeof o == "string") {
19
+ const t = v(o);
20
20
  if (t === null) {
21
- l(r, o);
21
+ m(r, o);
22
22
  continue;
23
23
  }
24
24
  n[r] = t;
25
25
  } else n[r] = o;
26
26
  return n;
27
- }, l = (e, n) => {
28
- process.env.NODE_ENV !== "production" && console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${e}": "${n}" is not a measurable font shorthand (needs a px/em size and a family).`);
27
+ }, m = (e, n) => {
28
+ d && console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${e}": "${n}" is not a measurable font shorthand (needs a px/em size and a family).`);
29
29
  };
30
30
  export {
31
- p as convertGraphConfigTheme
31
+ y as convertGraphConfigTheme
32
32
  };