@graphysdk/react-renderer 1.8.1-beta.1787150640613 → 2.0.0-beta.1786389736654

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,5 +1,5 @@
1
- import { NAMED_WEIGHTS as l } from "@graphysdk/viz-engine";
2
- import './dev.css';var u = [
1
+ import { NAMED_WEIGHTS as d } from "@graphysdk/viz-engine";
2
+ import './font-values.css';var H = [
3
3
  "canvasDefault",
4
4
  "canvasBlue",
5
5
  "canvasCyan",
@@ -11,7 +11,7 @@ import './dev.css';var u = [
11
11
  "canvasPurple",
12
12
  "canvasGray",
13
13
  "canvasInverse"
14
- ], e = {
14
+ ], t = {
15
15
  white: "var(--graphy-white)",
16
16
  black: "var(--graphy-black)",
17
17
  transparent: "var(--graphy-transparent)",
@@ -70,13 +70,22 @@ import './dev.css';var u = [
70
70
  trendPositiveColor: "var(--graphy-trend-positive-color)",
71
71
  trendNeutralColor: "var(--graphy-trend-neutral-color)",
72
72
  defaultAnnotationArrowStroke: "var(--graphy-default-annotation-arrow-stroke)",
73
+ defaultAnnotationShapeStroke: "var(--graphy-default-annotation-shape-stroke)",
73
74
  defaultAnnotationShapeFill: "var(--graphy-default-annotation-shape-fill)",
74
75
  arrowAnnotationStickerOutlineColor: "var(--graphy-arrow-annotation-sticker-outline-color)",
75
76
  arrowAnnotationStickerOutlineColorInverse: "var(--graphy-arrow-annotation-sticker-outline-color-inverse)",
76
77
  annotationFrameBorderColor: "var(--graphy-annotation-frame-border-color)",
77
78
  editMenuTriggerIconColor: "var(--graphy-edit-menu-trigger-icon-color)",
78
79
  heatmapEmptyTileBackground: "var(--graphy-heatmap-empty-tile-background)",
80
+ dataLabelOutsideBackground: "var(--graphy-data-label-outside-background)",
81
+ dataLabelTextColor: "var(--graphy-data-label-text-color)",
82
+ dataLabelInsideTextColor: "var(--graphy-data-label-inside-text-color)",
83
+ stackTotalTextColor: "var(--graphy-stack-total-text-color)",
84
+ stackTotalBackground: "var(--graphy-stack-total-background)",
85
+ stackTotalStroke: "var(--graphy-stack-total-stroke)",
79
86
  gridLineWidth: "var(--graphy-grid-line-width)",
87
+ gridLineDash: "var(--graphy-grid-line-dash)",
88
+ gridLineDotted: "var(--graphy-grid-line-dotted)",
80
89
  tooltipBorderRadius: "var(--graphy-tooltip-border-radius)",
81
90
  tooltipBorderWidth: "var(--graphy-tooltip-border-width)",
82
91
  tooltipPaddingBlock: "var(--graphy-tooltip-padding-block)",
@@ -84,6 +93,7 @@ import './dev.css';var u = [
84
93
  tooltipRowGap: "var(--graphy-tooltip-row-gap)",
85
94
  tooltipShadow: "var(--graphy-tooltip-shadow)",
86
95
  editorControlHeight: "var(--graphy-editor-control-height)",
96
+ tickLabelOffset: "var(--graphy-tick-label-offset)",
87
97
  legendItemGap: "var(--graphy-legend-item-gap)",
88
98
  legendSwatchGap: "var(--graphy-legend-swatch-gap)",
89
99
  legendSwatchWidth: "var(--graphy-legend-swatch-width)",
@@ -164,6 +174,11 @@ import './dev.css';var u = [
164
174
  fontLineHeightHeadingSm: "var(--graphy-font-line-height-heading-sm)",
165
175
  fontLineHeightHeadingMd: "var(--graphy-font-line-height-heading-md)",
166
176
  fontLineHeightHeadingLg: "var(--graphy-font-line-height-heading-lg)",
177
+ fontTickLabel: "var(--graphy-font-tick-label)",
178
+ fontAxisLabel: "var(--graphy-font-axis-label)",
179
+ fontDataLabel: "var(--graphy-font-data-label)",
180
+ fontStackTotal: "var(--graphy-font-stack-total)",
181
+ fontCategoryLabel: "var(--graphy-font-category-label)",
167
182
  fontLegendLabel: "var(--graphy-font-legend-label)",
168
183
  fontSeriesLabel: "var(--graphy-font-series-label)",
169
184
  fontTooltipLabel: "var(--graphy-font-tooltip-label)",
@@ -177,6 +192,7 @@ import './dev.css';var u = [
177
192
  fontTooltipCaptionSmall: "var(--graphy-font-tooltip-caption-small)",
178
193
  fontTrendTag: "var(--graphy-font-trend-tag)",
179
194
  fontTrendTagSmall: "var(--graphy-font-trend-tag-small)",
195
+ fontGoalLineLabel: "var(--graphy-font-goal-line-label)",
180
196
  fontPieLabel: "var(--graphy-font-pie-label)",
181
197
  fontPieChartTotal: "var(--graphy-font-pie-chart-total)",
182
198
  fontDifferenceArrowSmall: "var(--graphy-font-difference-arrow-small)",
@@ -212,15 +228,15 @@ import './dev.css';var u = [
212
228
  fontEditorControlValue: "var(--graphy-font-editor-control-value)",
213
229
  fontEditorSectionTitle: "var(--graphy-font-editor-section-title)",
214
230
  fontEditorCaption: "var(--graphy-font-editor-caption)"
215
- }, m = `var(--typography-chart-font-family, ${e.fontFamilyDefault})`, y = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu',
216
- 'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`, s = y, h = {
217
- regular: l.regular,
218
- medium: l.medium,
219
- semibold: l.semiBold,
220
- bold: l.bold,
221
- extraBold: l.extraBold,
222
- black: l.black
223
- }, a = {
231
+ }, v = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu',
232
+ 'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`, S = v, p = {
233
+ regular: d.regular,
234
+ medium: d.medium,
235
+ semibold: d.semiBold,
236
+ bold: d.bold,
237
+ extraBold: d.extraBold,
238
+ black: d.black
239
+ }, n = {
224
240
  xxs: 1,
225
241
  xs: 1.1,
226
242
  sm: 1.2,
@@ -231,7 +247,7 @@ import './dev.css';var u = [
231
247
  headingSm: 1.8,
232
248
  headingMd: 2.2,
233
249
  headingLg: 2.8
234
- }, r = {
250
+ }, i = {
235
251
  xxs: 1,
236
252
  xs: 1,
237
253
  sm: 1.3,
@@ -242,107 +258,169 @@ import './dev.css';var u = [
242
258
  headingSm: 1.25,
243
259
  headingMd: 1.41,
244
260
  headingLg: 1.29
245
- }, p = { fontLegendLabel: {
246
- weight: "fontWeightMedium",
247
- size: "fontSizeSm",
248
- lineHeight: "fontLineHeightSm"
249
- } }, v = m, f = `var(--typography-chart-heading-font-family, ${e.fontFamilyHeading})`, b = (i) => i in p, L = (i, o) => {
250
- const g = p[i], d = t(o.weight?.toString() ?? e[g.weight], o.size === void 0 ? e[g.size] : `${o.size.value}${o.size.unit}`, o.lineHeight?.toString() ?? e[g.lineHeight], o.family ?? v);
251
- return o.style === void 0 || o.style === "normal" ? d : `${o.style} ${d}`;
252
- }, n = (i) => `${i}em`, H = {
261
+ }, l = {
262
+ fontTickLabel: {
263
+ weight: "fontWeightMedium",
264
+ size: "fontSizeSm",
265
+ lineHeight: "fontLineHeightSm"
266
+ },
267
+ fontAxisLabel: {
268
+ weight: "fontWeightMedium",
269
+ size: "fontSizeSm",
270
+ lineHeight: "fontLineHeightSm"
271
+ },
272
+ fontDataLabel: {
273
+ weight: "fontWeightMedium",
274
+ size: "fontSizeXs",
275
+ lineHeight: "fontLineHeightXs"
276
+ },
277
+ fontStackTotal: {
278
+ weight: "fontWeightSemibold",
279
+ size: "fontSizeXs",
280
+ lineHeight: "fontLineHeightXs"
281
+ },
282
+ fontCategoryLabel: {
283
+ weight: "fontWeightMedium",
284
+ size: "fontSizeXs",
285
+ lineHeight: "fontLineHeightXs"
286
+ },
287
+ fontLegendLabel: {
288
+ weight: "fontWeightMedium",
289
+ size: "fontSizeSm",
290
+ lineHeight: "fontLineHeightSm"
291
+ },
292
+ fontGoalLineLabel: {
293
+ weight: "fontWeightMedium",
294
+ size: "fontSizeXs",
295
+ lineHeight: "fontLineHeightXs"
296
+ }
297
+ }, s = `var(--typography-chart-font-family, ${t.fontFamilyDefault})`, y = `var(--typography-chart-heading-font-family, ${t.fontFamilyHeading})`, M = (a) => a in l, T = (a, o) => {
298
+ const r = l[a], h = e(o.weight?.toString() ?? t[r.weight], o.size === void 0 ? t[r.size] : `${o.size.value}${o.size.unit}`, o.lineHeight?.toString() ?? t[r.lineHeight], o.family ?? s);
299
+ return o.style === void 0 || o.style === "normal" ? h : `${o.style} ${h}`;
300
+ }, g = (a) => `${a}em`, x = {
253
301
  textScale: "1",
254
- fontFamilyDefault: y,
255
- fontFamilyHeading: s,
256
- fontWeightRegular: h.regular.toString(),
257
- fontWeightMedium: h.medium.toString(),
258
- fontWeightSemibold: h.semibold.toString(),
259
- fontWeightBold: h.bold.toString(),
260
- fontWeightExtraBold: h.extraBold.toString(),
261
- fontWeightBlack: h.black.toString(),
262
- fontSizeXxs: n(a.xxs),
263
- fontSizeXs: n(a.xs),
264
- fontSizeSm: n(a.sm),
265
- fontSizeMd: n(a.md),
266
- fontSizeLg: n(a.lg),
267
- fontSizeXl: n(a.xl),
268
- fontLineHeightXxs: r.xxs.toString(),
269
- fontLineHeightXs: r.xs.toString(),
270
- fontLineHeightSm: r.sm.toString(),
271
- fontLineHeightMd: r.md.toString(),
272
- fontLineHeightLg: r.lg.toString(),
273
- fontLineHeightXl: r.xl.toString()
274
- }, M = {
275
- fontSizeEditorBody: n(a.editorBody),
276
- fontSizeHeadingSm: n(a.headingSm),
277
- fontSizeHeadingMd: n(a.headingMd),
278
- fontSizeHeadingLg: n(a.headingLg),
279
- fontLineHeightEditorBody: r.editorBody.toString(),
280
- fontLineHeightHeadingSm: r.headingSm.toString(),
281
- fontLineHeightHeadingMd: r.headingMd.toString(),
282
- fontLineHeightHeadingLg: r.headingLg.toString()
283
- }, t = (i, o, g, d = v) => `${i} ${o}/${g} ${d}`, S = ({ weight: i, size: o, lineHeight: g }) => t(e[i], e[o], e[g]), x = {
284
- fontLegendLabel: S(p.fontLegendLabel),
285
- fontSeriesLabel: t(e.fontWeightSemibold, e.fontSizeSm, e.fontLineHeightSm),
286
- fontTooltipLabel: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
287
- fontTooltipHeading: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
288
- fontTooltipFooter: t(e.fontWeightRegular, e.fontSizeSm, e.fontLineHeightSm),
289
- fontJumboTooltipLabel: t(e.fontWeightRegular, e.fontSizeSm, e.fontLineHeightSm),
290
- fontJumboTooltip: t(e.fontWeightMedium, e.fontSizeHeadingMd, e.fontLineHeightHeadingMd),
291
- fontMiniTooltipLabel: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
292
- fontMiniTooltipFooter: t(e.fontWeightRegular, e.fontSizeSm, e.fontLineHeightSm),
293
- fontTooltipCaption: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
294
- fontTooltipCaptionSmall: t(e.fontWeightMedium, e.fontSizeXxs, e.fontLineHeightXxs),
295
- fontUITooltip: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
296
- fontUITooltipSecondary: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
297
- fontTrendTag: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
298
- fontTrendTagSmall: t(e.fontWeightMedium, e.fontSizeXs, e.fontLineHeightXs),
299
- fontPieLabel: t(e.fontWeightMedium, e.fontSizeXs, e.fontLineHeightXs),
300
- fontPieChartTotal: t(e.fontWeightBold, e.fontSizeHeadingLg, e.fontLineHeightHeadingLg),
301
- fontDifferenceArrowSmall: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
302
- fontDifferenceArrowMedium: t(e.fontWeightMedium, e.fontSizeLg, e.fontLineHeightLg),
303
- fontDifferenceArrowLarge: t(e.fontWeightSemibold, e.fontSizeXl, e.fontLineHeightXl),
304
- fontButton: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
305
- fontInput: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
306
- fontInputLabel: t(e.fontWeightMedium, e.fontSizeXxs, e.fontLineHeightXxs),
307
- fontSelectLabel: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
308
- fontSelectDescription: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
309
- fontColorSelectLabel: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
310
- fontMenuTitle: t(e.fontWeightSemibold, e.fontSizeMd, e.fontLineHeightMd),
311
- fontMenuGroupTitle: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
312
- fontMenuItemLabel: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
313
- fontMenuItemLabelSecondary: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
314
- fontErrorBoundaryTitle: t(e.fontWeightSemibold, e.fontSizeHeadingSm, e.fontLineHeightHeadingSm),
315
- fontErrorBoundaryMessage: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
316
- fontTableCell: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
317
- fontTableHeaderCell: t(e.fontWeightSemibold, e.fontSizeSm, e.fontLineHeightSm),
318
- fontSourceLabel: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
319
- fontSourceLink: t(e.fontWeightRegular, e.fontSizeSm, e.fontLineHeightSm),
320
- fontTextEditorH1: t(e.fontWeightBold, e.fontSizeHeadingLg, e.fontLineHeightHeadingLg, f),
321
- fontTextEditorH2: t(e.fontWeightBold, e.fontSizeHeadingMd, e.fontLineHeightHeadingMd, f),
322
- fontTextEditorH3: t(e.fontWeightSemibold, e.fontSizeHeadingSm, e.fontLineHeightHeadingSm, f),
323
- fontTextEditorH6: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
324
- fontTextEditorBody: t(e.fontWeightMedium, e.fontSizeEditorBody, e.fontLineHeightEditorBody),
325
- fontTextEditorLink: t(e.fontWeightRegular, e.fontSizeMd, e.fontLineHeightMd),
326
- fontHighlightModeTitle: t(e.fontWeightBold, e.fontSizeMd, e.fontLineHeightMd),
327
- fontHighlightModeSubtitle: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
328
- fontEditorControlLabel: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
329
- fontEditorControlValue: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
330
- fontEditorSectionTitle: t(e.fontWeightSemibold, e.fontSizeSm, e.fontLineHeightSm),
331
- fontEditorCaption: t(e.fontWeightMedium, e.fontSizeXxs, e.fontLineHeightXxs)
332
- }, z = process.env.NODE_ENV !== "production";
302
+ fontFamilyDefault: v,
303
+ fontFamilyHeading: S,
304
+ fontWeightRegular: p.regular.toString(),
305
+ fontWeightMedium: p.medium.toString(),
306
+ fontWeightSemibold: p.semibold.toString(),
307
+ fontWeightBold: p.bold.toString(),
308
+ fontWeightExtraBold: p.extraBold.toString(),
309
+ fontWeightBlack: p.black.toString(),
310
+ fontSizeXxs: g(n.xxs),
311
+ fontSizeXs: g(n.xs),
312
+ fontSizeSm: g(n.sm),
313
+ fontSizeMd: g(n.md),
314
+ fontSizeLg: g(n.lg),
315
+ fontSizeXl: g(n.xl),
316
+ fontLineHeightXxs: i.xxs.toString(),
317
+ fontLineHeightXs: i.xs.toString(),
318
+ fontLineHeightSm: i.sm.toString(),
319
+ fontLineHeightMd: i.md.toString(),
320
+ fontLineHeightLg: i.lg.toString(),
321
+ fontLineHeightXl: i.xl.toString()
322
+ }, z = {
323
+ fontSizeEditorBody: g(n.editorBody),
324
+ fontSizeHeadingSm: g(n.headingSm),
325
+ fontSizeHeadingMd: g(n.headingMd),
326
+ fontSizeHeadingLg: g(n.headingLg),
327
+ fontLineHeightEditorBody: i.editorBody.toString(),
328
+ fontLineHeightHeadingSm: i.headingSm.toString(),
329
+ fontLineHeightHeadingMd: i.headingMd.toString(),
330
+ fontLineHeightHeadingLg: i.headingLg.toString()
331
+ }, e = (a, o, r, h = s) => `${a} ${o}/${r} ${h}`, f = ({ weight: a, size: o, lineHeight: r }) => e(t[a], t[o], t[r]), k = {
332
+ fontTickLabel: f(l.fontTickLabel),
333
+ fontAxisLabel: f(l.fontAxisLabel),
334
+ fontDataLabel: f(l.fontDataLabel),
335
+ fontStackTotal: f(l.fontStackTotal),
336
+ fontCategoryLabel: f(l.fontCategoryLabel),
337
+ fontLegendLabel: f(l.fontLegendLabel),
338
+ fontSeriesLabel: e(t.fontWeightSemibold, t.fontSizeSm, t.fontLineHeightSm),
339
+ fontTooltipLabel: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
340
+ fontTooltipHeading: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
341
+ fontTooltipFooter: e(t.fontWeightRegular, t.fontSizeSm, t.fontLineHeightSm),
342
+ fontJumboTooltipLabel: e(t.fontWeightRegular, t.fontSizeSm, t.fontLineHeightSm),
343
+ fontJumboTooltip: e(t.fontWeightMedium, t.fontSizeHeadingMd, t.fontLineHeightHeadingMd),
344
+ fontMiniTooltipLabel: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
345
+ fontMiniTooltipFooter: e(t.fontWeightRegular, t.fontSizeSm, t.fontLineHeightSm),
346
+ fontTooltipCaption: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
347
+ fontTooltipCaptionSmall: e(t.fontWeightMedium, t.fontSizeXxs, t.fontLineHeightXxs),
348
+ fontUITooltip: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
349
+ fontUITooltipSecondary: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
350
+ fontTrendTag: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
351
+ fontTrendTagSmall: e(t.fontWeightMedium, t.fontSizeXs, t.fontLineHeightXs),
352
+ fontGoalLineLabel: f(l.fontGoalLineLabel),
353
+ fontPieLabel: e(t.fontWeightMedium, t.fontSizeXs, t.fontLineHeightXs),
354
+ fontPieChartTotal: e(t.fontWeightBold, t.fontSizeHeadingLg, t.fontLineHeightHeadingLg),
355
+ fontDifferenceArrowSmall: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
356
+ fontDifferenceArrowMedium: e(t.fontWeightMedium, t.fontSizeLg, t.fontLineHeightLg),
357
+ fontDifferenceArrowLarge: e(t.fontWeightSemibold, t.fontSizeXl, t.fontLineHeightXl),
358
+ fontButton: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
359
+ fontInput: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
360
+ fontInputLabel: e(t.fontWeightMedium, t.fontSizeXxs, t.fontLineHeightXxs),
361
+ fontSelectLabel: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
362
+ fontSelectDescription: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
363
+ fontColorSelectLabel: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
364
+ fontMenuTitle: e(t.fontWeightSemibold, t.fontSizeMd, t.fontLineHeightMd),
365
+ fontMenuGroupTitle: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
366
+ fontMenuItemLabel: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
367
+ fontMenuItemLabelSecondary: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
368
+ fontErrorBoundaryTitle: e(t.fontWeightSemibold, t.fontSizeHeadingSm, t.fontLineHeightHeadingSm),
369
+ fontErrorBoundaryMessage: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
370
+ fontTableCell: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
371
+ fontTableHeaderCell: e(t.fontWeightSemibold, t.fontSizeSm, t.fontLineHeightSm),
372
+ fontSourceLabel: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
373
+ fontSourceLink: e(t.fontWeightRegular, t.fontSizeSm, t.fontLineHeightSm),
374
+ fontTextEditorH1: e(t.fontWeightBold, t.fontSizeHeadingLg, t.fontLineHeightHeadingLg, y),
375
+ fontTextEditorH2: e(t.fontWeightBold, t.fontSizeHeadingMd, t.fontLineHeightHeadingMd, y),
376
+ fontTextEditorH3: e(t.fontWeightSemibold, t.fontSizeHeadingSm, t.fontLineHeightHeadingSm, y),
377
+ fontTextEditorH6: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
378
+ fontTextEditorBody: e(t.fontWeightMedium, t.fontSizeEditorBody, t.fontLineHeightEditorBody),
379
+ fontTextEditorLink: e(t.fontWeightRegular, t.fontSizeMd, t.fontLineHeightMd),
380
+ fontHighlightModeTitle: e(t.fontWeightBold, t.fontSizeMd, t.fontLineHeightMd),
381
+ fontHighlightModeSubtitle: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
382
+ fontEditorControlLabel: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
383
+ fontEditorControlValue: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
384
+ fontEditorSectionTitle: e(t.fontWeightSemibold, t.fontSizeSm, t.fontLineHeightSm),
385
+ fontEditorCaption: e(t.fontWeightMedium, t.fontSizeXxs, t.fontLineHeightXxs)
386
+ }, c = [
387
+ "normal",
388
+ "italic",
389
+ "oblique"
390
+ ], u = /^(\d*\.?\d+)(px|em)$/, m = /^\d*\.?\d+$/, b = {
391
+ normal: d.normal,
392
+ bold: d.bold
393
+ }, W = (a) => c.includes(a), B = (a) => {
394
+ const o = u.exec(a.trim());
395
+ return o === null || o[1] === void 0 || o[2] === void 0 ? null : {
396
+ value: Number.parseFloat(o[1]),
397
+ unit: o[2] === "px" ? "px" : "em"
398
+ };
399
+ }, C = (a) => {
400
+ const o = a.trim(), r = b[o];
401
+ if (r !== void 0) return r;
402
+ if (!m.test(o)) return null;
403
+ const h = Number.parseFloat(o);
404
+ return h >= 1 && h <= 1e3 ? h : null;
405
+ }, E = (a) => {
406
+ const o = a.trim();
407
+ return m.test(o) ? Number.parseFloat(o) : null;
408
+ };
333
409
  export {
334
- h as a,
335
- L as c,
336
- M as d,
337
- m as f,
338
- a as i,
339
- x as l,
340
- e as m,
341
- y as n,
342
- p as o,
343
- u as p,
344
- r,
345
- H as s,
346
- z as t,
347
- b as u
410
+ v as a,
411
+ p as c,
412
+ T as d,
413
+ k as f,
414
+ t as g,
415
+ H as h,
416
+ E as i,
417
+ l,
418
+ z as m,
419
+ B as n,
420
+ i as o,
421
+ M as p,
422
+ C as r,
423
+ n as s,
424
+ W as t,
425
+ x as u
348
426
  };
@@ -0,0 +1,2 @@
1
+ require('./font-values.css');let d=require("@graphysdk/viz-engine");var m=["canvasDefault","canvasBlue","canvasCyan","canvasGreen","canvasYellow","canvasOrange","canvasRed","canvasPink","canvasPurple","canvasGray","canvasInverse"],e={white:"var(--graphy-white)",black:"var(--graphy-black)",transparent:"var(--graphy-transparent)",grey100:"var(--graphy-grey-100)",grey95:"var(--graphy-grey-95)",grey90:"var(--graphy-grey-90)",grey85:"var(--graphy-grey-85)",grey80:"var(--graphy-grey-80)",grey75:"var(--graphy-grey-75)",grey70:"var(--graphy-grey-70)",grey60:"var(--graphy-grey-60)",grey50:"var(--graphy-grey-50)",grey0:"var(--graphy-grey-0)",greyGradient80:"var(--graphy-grey-gradient-80)",green60:"var(--graphy-green-60)",green50:"var(--graphy-green-50)",red60:"var(--graphy-red-60)",red50:"var(--graphy-red-50)",amber70:"var(--graphy-amber-70)",amber50:"var(--graphy-amber-50)",amber40:"var(--graphy-amber-40)",amber30:"var(--graphy-amber-30)",blue80:"var(--graphy-blue-80)",blue60:"var(--graphy-blue-60)",purple50:"var(--graphy-purple-50)",purple30:"var(--graphy-purple-30)",brand:"var(--graphy-brand)",success:"var(--graphy-success)",warning:"var(--graphy-warning)",alert:"var(--graphy-alert)",textPrimary:"var(--graphy-text-primary)",textSecondary:"var(--graphy-text-secondary)",textDisabled:"var(--graphy-text-disabled)",iconPrimary:"var(--graphy-icon-primary)",iconSecondary:"var(--graphy-icon-secondary)",iconStickerBackground:"var(--graphy-icon-sticker-background)",border100:"var(--graphy-border-100)",border50:"var(--graphy-border-50)",border10:"var(--graphy-border-10)",sunkenBackground:"var(--graphy-sunken-background)",defaultBackground:"var(--graphy-default-background)",raisedBackground:"var(--graphy-raised-background)",overlayBackground:"var(--graphy-overlay-background)",overlayBorderGradient:"var(--graphy-overlay-border-gradient)",graphBackground:"var(--graphy-graph-background)",gridLineColor:"var(--graphy-grid-line-color)",axisTickColor:"var(--graphy-axis-tick-color)",originLineColor:"var(--graphy-origin-line-color)",legendBackground:"var(--graphy-legend-background)",legendBorderColor:"var(--graphy-legend-border-color)",legendFocusOutlineColor:"var(--graphy-legend-focus-outline-color)",legendTextColor:"var(--graphy-legend-text-color)",dimmedSeriesLabelTextColor:"var(--graphy-dimmed-series-label-text-color)",dimmedSeriesLabelLineColor:"var(--graphy-dimmed-series-label-line-color)",trendNegativeColor:"var(--graphy-trend-negative-color)",trendPositiveColor:"var(--graphy-trend-positive-color)",trendNeutralColor:"var(--graphy-trend-neutral-color)",defaultAnnotationArrowStroke:"var(--graphy-default-annotation-arrow-stroke)",defaultAnnotationShapeStroke:"var(--graphy-default-annotation-shape-stroke)",defaultAnnotationShapeFill:"var(--graphy-default-annotation-shape-fill)",arrowAnnotationStickerOutlineColor:"var(--graphy-arrow-annotation-sticker-outline-color)",arrowAnnotationStickerOutlineColorInverse:"var(--graphy-arrow-annotation-sticker-outline-color-inverse)",annotationFrameBorderColor:"var(--graphy-annotation-frame-border-color)",editMenuTriggerIconColor:"var(--graphy-edit-menu-trigger-icon-color)",heatmapEmptyTileBackground:"var(--graphy-heatmap-empty-tile-background)",dataLabelOutsideBackground:"var(--graphy-data-label-outside-background)",dataLabelTextColor:"var(--graphy-data-label-text-color)",dataLabelInsideTextColor:"var(--graphy-data-label-inside-text-color)",stackTotalTextColor:"var(--graphy-stack-total-text-color)",stackTotalBackground:"var(--graphy-stack-total-background)",stackTotalStroke:"var(--graphy-stack-total-stroke)",gridLineWidth:"var(--graphy-grid-line-width)",gridLineDash:"var(--graphy-grid-line-dash)",gridLineDotted:"var(--graphy-grid-line-dotted)",tooltipBorderRadius:"var(--graphy-tooltip-border-radius)",tooltipBorderWidth:"var(--graphy-tooltip-border-width)",tooltipPaddingBlock:"var(--graphy-tooltip-padding-block)",tooltipPaddingInline:"var(--graphy-tooltip-padding-inline)",tooltipRowGap:"var(--graphy-tooltip-row-gap)",tooltipShadow:"var(--graphy-tooltip-shadow)",editorControlHeight:"var(--graphy-editor-control-height)",tickLabelOffset:"var(--graphy-tick-label-offset)",legendItemGap:"var(--graphy-legend-item-gap)",legendSwatchGap:"var(--graphy-legend-swatch-gap)",legendSwatchWidth:"var(--graphy-legend-swatch-width)",legendSwatchHeight:"var(--graphy-legend-swatch-height)",legendPillPaddingInline:"var(--graphy-legend-pill-padding-inline)",legendPillPaddingBlock:"var(--graphy-legend-pill-padding-block)",legendPillBorderWidth:"var(--graphy-legend-pill-border-width)",headlineRowGap:"var(--graphy-headline-row-gap)",headlineItemGap:"var(--graphy-headline-item-gap)",canvasDefault:"var(--graphy-canvas-default)",canvasBlue:"var(--graphy-canvas-blue)",canvasCyan:"var(--graphy-canvas-cyan)",canvasGreen:"var(--graphy-canvas-green)",canvasYellow:"var(--graphy-canvas-yellow)",canvasOrange:"var(--graphy-canvas-orange)",canvasRed:"var(--graphy-canvas-red)",canvasPink:"var(--graphy-canvas-pink)",canvasPurple:"var(--graphy-canvas-purple)",canvasGray:"var(--graphy-canvas-gray)",canvasInverse:"var(--graphy-canvas-inverse)",elevationXs:"var(--graphy-elevation-xs)",elevationSm:"var(--graphy-elevation-sm)",elevationMd:"var(--graphy-elevation-md)",elevationLg:"var(--graphy-elevation-lg)",radiiXs:"var(--graphy-radii-xs)",radiiSm:"var(--graphy-radii-sm)",radiiMd:"var(--graphy-radii-md)",radiiLg:"var(--graphy-radii-lg)",spaceXxs:"var(--graphy-space-xxs)",spaceXs:"var(--graphy-space-xs)",spaceSm:"var(--graphy-space-sm)",spaceMd:"var(--graphy-space-md)",spaceLg:"var(--graphy-space-lg)",spaceXl:"var(--graphy-space-xl)",zIndexToolbar:"var(--graphy-z-index-toolbar)",zIndexToolbarTooltip:"var(--graphy-z-index-toolbar-tooltip)",zIndexToolbarPopover:"var(--graphy-z-index-toolbar-popover)",zIndexEditorPopover:"var(--graphy-z-index-editor-popover)",toolbarBackgroundColor:"var(--graphy-toolbar-background-color)",toolbarButtonBackgroundColor:"var(--graphy-toolbar-button-background-color)",toolbarButtonBackgroundColorHovered:"var(--graphy-toolbar-button-background-color-hovered)",toolbarButtonBackgroundColorSelected:"var(--graphy-toolbar-button-background-color-selected)",toolbarSeparatorColor:"var(--graphy-toolbar-separator-color)",tooltipBackground:"var(--graphy-tooltip-background)",tooltipBorderColor:"var(--graphy-tooltip-border-color)",tooltipHeadingTextColor:"var(--graphy-tooltip-heading-text-color)",tooltipLabelTextColor:"var(--graphy-tooltip-label-text-color)",tooltipValueTextColor:"var(--graphy-tooltip-value-text-color)",tooltipPrimaryRowColor:"var(--graphy-tooltip-primary-row-color)",hoverGuideLineColor:"var(--graphy-hover-guide-line-color)",hoverGuideFillColor:"var(--graphy-hover-guide-fill-color)",fontFamilyDefault:"var(--graphy-font-family-default)",fontFamilyHeading:"var(--graphy-font-family-heading)",fontWeightRegular:"var(--graphy-font-weight-regular)",fontWeightMedium:"var(--graphy-font-weight-medium)",fontWeightSemibold:"var(--graphy-font-weight-semibold)",fontWeightBold:"var(--graphy-font-weight-bold)",fontWeightExtraBold:"var(--graphy-font-weight-extra-bold)",fontWeightBlack:"var(--graphy-font-weight-black)",textScale:"var(--graphy-text-scale)",fontSizeXxs:"var(--graphy-font-size-xxs)",fontSizeXs:"var(--graphy-font-size-xs)",fontSizeSm:"var(--graphy-font-size-sm)",fontSizeMd:"var(--graphy-font-size-md)",fontSizeLg:"var(--graphy-font-size-lg)",fontSizeXl:"var(--graphy-font-size-xl)",fontLineHeightXxs:"var(--graphy-font-line-height-xxs)",fontLineHeightXs:"var(--graphy-font-line-height-xs)",fontLineHeightSm:"var(--graphy-font-line-height-sm)",fontLineHeightMd:"var(--graphy-font-line-height-md)",fontLineHeightLg:"var(--graphy-font-line-height-lg)",fontLineHeightXl:"var(--graphy-font-line-height-xl)",fontSizeEditorBody:"var(--graphy-font-size-editor-body)",fontSizeHeadingSm:"var(--graphy-font-size-heading-sm)",fontSizeHeadingMd:"var(--graphy-font-size-heading-md)",fontSizeHeadingLg:"var(--graphy-font-size-heading-lg)",fontLineHeightEditorBody:"var(--graphy-font-line-height-editor-body)",fontLineHeightHeadingSm:"var(--graphy-font-line-height-heading-sm)",fontLineHeightHeadingMd:"var(--graphy-font-line-height-heading-md)",fontLineHeightHeadingLg:"var(--graphy-font-line-height-heading-lg)",fontTickLabel:"var(--graphy-font-tick-label)",fontAxisLabel:"var(--graphy-font-axis-label)",fontDataLabel:"var(--graphy-font-data-label)",fontStackTotal:"var(--graphy-font-stack-total)",fontCategoryLabel:"var(--graphy-font-category-label)",fontLegendLabel:"var(--graphy-font-legend-label)",fontSeriesLabel:"var(--graphy-font-series-label)",fontTooltipLabel:"var(--graphy-font-tooltip-label)",fontTooltipHeading:"var(--graphy-font-tooltip-heading)",fontTooltipFooter:"var(--graphy-font-tooltip-footer)",fontJumboTooltipLabel:"var(--graphy-font-jumbo-tooltip-label)",fontJumboTooltip:"var(--graphy-font-jumbo-tooltip)",fontMiniTooltipLabel:"var(--graphy-font-mini-tooltip-label)",fontMiniTooltipFooter:"var(--graphy-font-mini-tooltip-footer)",fontTooltipCaption:"var(--graphy-font-tooltip-caption)",fontTooltipCaptionSmall:"var(--graphy-font-tooltip-caption-small)",fontTrendTag:"var(--graphy-font-trend-tag)",fontTrendTagSmall:"var(--graphy-font-trend-tag-small)",fontGoalLineLabel:"var(--graphy-font-goal-line-label)",fontPieLabel:"var(--graphy-font-pie-label)",fontPieChartTotal:"var(--graphy-font-pie-chart-total)",fontDifferenceArrowSmall:"var(--graphy-font-difference-arrow-small)",fontDifferenceArrowMedium:"var(--graphy-font-difference-arrow-medium)",fontDifferenceArrowLarge:"var(--graphy-font-difference-arrow-large)",fontButton:"var(--graphy-font-button)",fontInput:"var(--graphy-font-input)",fontInputLabel:"var(--graphy-font-input-label)",fontSelectLabel:"var(--graphy-font-select-label)",fontSelectDescription:"var(--graphy-font-select-description)",fontColorSelectLabel:"var(--graphy-font-color-select-label)",fontMenuTitle:"var(--graphy-font-menu-title)",fontMenuGroupTitle:"var(--graphy-font-menu-group-title)",fontMenuItemLabel:"var(--graphy-font-menu-item-label)",fontMenuItemLabelSecondary:"var(--graphy-font-menu-item-label-secondary)",fontUITooltip:"var(--graphy-font-uitooltip)",fontUITooltipSecondary:"var(--graphy-font-uitooltip-secondary)",fontErrorBoundaryTitle:"var(--graphy-font-error-boundary-title)",fontErrorBoundaryMessage:"var(--graphy-font-error-boundary-message)",fontTableCell:"var(--graphy-font-table-cell)",fontTableHeaderCell:"var(--graphy-font-table-header-cell)",fontSourceLabel:"var(--graphy-font-source-label)",fontSourceLink:"var(--graphy-font-source-link)",fontTextEditorH1:"var(--graphy-font-text-editor-h1)",fontTextEditorH2:"var(--graphy-font-text-editor-h2)",fontTextEditorH3:"var(--graphy-font-text-editor-h3)",fontTextEditorH6:"var(--graphy-font-text-editor-h6)",fontTextEditorBody:"var(--graphy-font-text-editor-body)",fontTextEditorLink:"var(--graphy-font-text-editor-link)",fontHighlightModeTitle:"var(--graphy-font-highlight-mode-title)",fontHighlightModeSubtitle:"var(--graphy-font-highlight-mode-subtitle)",fontEditorControlLabel:"var(--graphy-font-editor-control-label)",fontEditorControlValue:"var(--graphy-font-editor-control-value)",fontEditorSectionTitle:"var(--graphy-font-editor-section-title)",fontEditorCaption:"var(--graphy-font-editor-caption)"},v=`'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu',
2
+ 'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`,c=v,p={regular:d.NAMED_WEIGHTS.regular,medium:d.NAMED_WEIGHTS.medium,semibold:d.NAMED_WEIGHTS.semiBold,bold:d.NAMED_WEIGHTS.bold,extraBold:d.NAMED_WEIGHTS.extraBold,black:d.NAMED_WEIGHTS.black},a={xxs:1,xs:1.1,sm:1.2,md:1.4,lg:1.6,xl:2,editorBody:1.5,headingSm:1.8,headingMd:2.2,headingLg:2.8},n={xxs:1,xs:1,sm:1.3,md:1.43,lg:1,xl:1,editorBody:1.47,headingSm:1.25,headingMd:1.41,headingLg:1.29},g={fontTickLabel:{weight:"fontWeightMedium",size:"fontSizeSm",lineHeight:"fontLineHeightSm"},fontAxisLabel:{weight:"fontWeightMedium",size:"fontSizeSm",lineHeight:"fontLineHeightSm"},fontDataLabel:{weight:"fontWeightMedium",size:"fontSizeXs",lineHeight:"fontLineHeightXs"},fontStackTotal:{weight:"fontWeightSemibold",size:"fontSizeXs",lineHeight:"fontLineHeightXs"},fontCategoryLabel:{weight:"fontWeightMedium",size:"fontSizeXs",lineHeight:"fontLineHeightXs"},fontLegendLabel:{weight:"fontWeightMedium",size:"fontSizeSm",lineHeight:"fontLineHeightSm"},fontGoalLineLabel:{weight:"fontWeightMedium",size:"fontSizeXs",lineHeight:"fontLineHeightXs"}},u=`var(--typography-chart-font-family, ${e.fontFamilyDefault})`,y=`var(--typography-chart-heading-font-family, ${e.fontFamilyHeading})`,S=r=>r in g,b=(r,o)=>{const i=g[r],f=t(o.weight?.toString()??e[i.weight],o.size===void 0?e[i.size]:`${o.size.value}${o.size.unit}`,o.lineHeight?.toString()??e[i.lineHeight],o.family??u);return o.style===void 0||o.style==="normal"?f:`${o.style} ${f}`},l=r=>`${r}em`,L={textScale:"1",fontFamilyDefault:v,fontFamilyHeading:c,fontWeightRegular:p.regular.toString(),fontWeightMedium:p.medium.toString(),fontWeightSemibold:p.semibold.toString(),fontWeightBold:p.bold.toString(),fontWeightExtraBold:p.extraBold.toString(),fontWeightBlack:p.black.toString(),fontSizeXxs:l(a.xxs),fontSizeXs:l(a.xs),fontSizeSm:l(a.sm),fontSizeMd:l(a.md),fontSizeLg:l(a.lg),fontSizeXl:l(a.xl),fontLineHeightXxs:n.xxs.toString(),fontLineHeightXs:n.xs.toString(),fontLineHeightSm:n.sm.toString(),fontLineHeightMd:n.md.toString(),fontLineHeightLg:n.lg.toString(),fontLineHeightXl:n.xl.toString()},H={fontSizeEditorBody:l(a.editorBody),fontSizeHeadingSm:l(a.headingSm),fontSizeHeadingMd:l(a.headingMd),fontSizeHeadingLg:l(a.headingLg),fontLineHeightEditorBody:n.editorBody.toString(),fontLineHeightHeadingSm:n.headingSm.toString(),fontLineHeightHeadingMd:n.headingMd.toString(),fontLineHeightHeadingLg:n.headingLg.toString()},t=(r,o,i,f=u)=>`${r} ${o}/${i} ${f}`,h=({weight:r,size:o,lineHeight:i})=>t(e[r],e[o],e[i]),T={fontTickLabel:h(g.fontTickLabel),fontAxisLabel:h(g.fontAxisLabel),fontDataLabel:h(g.fontDataLabel),fontStackTotal:h(g.fontStackTotal),fontCategoryLabel:h(g.fontCategoryLabel),fontLegendLabel:h(g.fontLegendLabel),fontSeriesLabel:t(e.fontWeightSemibold,e.fontSizeSm,e.fontLineHeightSm),fontTooltipLabel:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontTooltipHeading:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontTooltipFooter:t(e.fontWeightRegular,e.fontSizeSm,e.fontLineHeightSm),fontJumboTooltipLabel:t(e.fontWeightRegular,e.fontSizeSm,e.fontLineHeightSm),fontJumboTooltip:t(e.fontWeightMedium,e.fontSizeHeadingMd,e.fontLineHeightHeadingMd),fontMiniTooltipLabel:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontMiniTooltipFooter:t(e.fontWeightRegular,e.fontSizeSm,e.fontLineHeightSm),fontTooltipCaption:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontTooltipCaptionSmall:t(e.fontWeightMedium,e.fontSizeXxs,e.fontLineHeightXxs),fontUITooltip:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontUITooltipSecondary:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontTrendTag:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontTrendTagSmall:t(e.fontWeightMedium,e.fontSizeXs,e.fontLineHeightXs),fontGoalLineLabel:h(g.fontGoalLineLabel),fontPieLabel:t(e.fontWeightMedium,e.fontSizeXs,e.fontLineHeightXs),fontPieChartTotal:t(e.fontWeightBold,e.fontSizeHeadingLg,e.fontLineHeightHeadingLg),fontDifferenceArrowSmall:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontDifferenceArrowMedium:t(e.fontWeightMedium,e.fontSizeLg,e.fontLineHeightLg),fontDifferenceArrowLarge:t(e.fontWeightSemibold,e.fontSizeXl,e.fontLineHeightXl),fontButton:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontInput:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontInputLabel:t(e.fontWeightMedium,e.fontSizeXxs,e.fontLineHeightXxs),fontSelectLabel:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontSelectDescription:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontColorSelectLabel:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontMenuTitle:t(e.fontWeightSemibold,e.fontSizeMd,e.fontLineHeightMd),fontMenuGroupTitle:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontMenuItemLabel:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontMenuItemLabelSecondary:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontErrorBoundaryTitle:t(e.fontWeightSemibold,e.fontSizeHeadingSm,e.fontLineHeightHeadingSm),fontErrorBoundaryMessage:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontTableCell:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontTableHeaderCell:t(e.fontWeightSemibold,e.fontSizeSm,e.fontLineHeightSm),fontSourceLabel:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontSourceLink:t(e.fontWeightRegular,e.fontSizeSm,e.fontLineHeightSm),fontTextEditorH1:t(e.fontWeightBold,e.fontSizeHeadingLg,e.fontLineHeightHeadingLg,y),fontTextEditorH2:t(e.fontWeightBold,e.fontSizeHeadingMd,e.fontLineHeightHeadingMd,y),fontTextEditorH3:t(e.fontWeightSemibold,e.fontSizeHeadingSm,e.fontLineHeightHeadingSm,y),fontTextEditorH6:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontTextEditorBody:t(e.fontWeightMedium,e.fontSizeEditorBody,e.fontLineHeightEditorBody),fontTextEditorLink:t(e.fontWeightRegular,e.fontSizeMd,e.fontLineHeightMd),fontHighlightModeTitle:t(e.fontWeightBold,e.fontSizeMd,e.fontLineHeightMd),fontHighlightModeSubtitle:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontEditorControlLabel:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontEditorControlValue:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontEditorSectionTitle:t(e.fontWeightSemibold,e.fontSizeSm,e.fontLineHeightSm),fontEditorCaption:t(e.fontWeightMedium,e.fontSizeXxs,e.fontLineHeightXxs)},M=["normal","italic","oblique"],x=/^(\d*\.?\d+)(px|em)$/,s=/^\d*\.?\d+$/,z={normal:d.NAMED_WEIGHTS.normal,bold:d.NAMED_WEIGHTS.bold},k=r=>M.includes(r),E=r=>{const o=x.exec(r.trim());return o===null||o[1]===void 0||o[2]===void 0?null:{value:Number.parseFloat(o[1]),unit:o[2]==="px"?"px":"em"}},W=r=>{const o=r.trim(),i=z[o];if(i!==void 0)return i;if(!s.test(o))return null;const f=Number.parseFloat(o);return f>=1&&f<=1e3?f:null},B=r=>{const o=r.trim();return s.test(o)?Number.parseFloat(o):null};Object.defineProperty(exports,"CANVAS_COLOR_KEYS",{enumerable:!0,get:function(){return m}});Object.defineProperty(exports,"DEFAULT_FONT_FAMILY",{enumerable:!0,get:function(){return v}});Object.defineProperty(exports,"FONT_LINE_HEIGHT",{enumerable:!0,get:function(){return n}});Object.defineProperty(exports,"FONT_SIZE_EM",{enumerable:!0,get:function(){return a}});Object.defineProperty(exports,"FONT_WEIGHT",{enumerable:!0,get:function(){return p}});Object.defineProperty(exports,"MEASURED_ELEMENT_FONT_DEFINITIONS",{enumerable:!0,get:function(){return g}});Object.defineProperty(exports,"baseTypographyTokens",{enumerable:!0,get:function(){return L}});Object.defineProperty(exports,"buildFontShorthand",{enumerable:!0,get:function(){return b}});Object.defineProperty(exports,"elementTypographyTokens",{enumerable:!0,get:function(){return T}});Object.defineProperty(exports,"isFontStyle",{enumerable:!0,get:function(){return k}});Object.defineProperty(exports,"isMeasuredFontTokenKey",{enumerable:!0,get:function(){return S}});Object.defineProperty(exports,"parseFontLength",{enumerable:!0,get:function(){return E}});Object.defineProperty(exports,"parseFontWeight",{enumerable:!0,get:function(){return W}});Object.defineProperty(exports,"parseUnitlessLineHeight",{enumerable:!0,get:function(){return B}});Object.defineProperty(exports,"semanticTypographyTokens",{enumerable:!0,get:function(){return H}});Object.defineProperty(exports,"vars",{enumerable:!0,get:function(){return e}});
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./dev.utils-C5lJv1aB.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;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./font-values-CStAZ2d1.cjs");var h=(r,e)=>{const n=r.appearance?.textStyle;return{...m(r.themeOverrides),...e&&n?g(n,e):void 0}},p=r=>{const e=r.trim().replace(/\s*\/\s*/g,"/").split(/\s+/);let n="normal",o=400,t=0;for(;t<e.length;){const l=e[t];if(l===void 0)return null;if(l==="normal")t++;else if(s.isFontStyle(l))n=l,t++;else{const v=s.parseFontWeight(l);if(v===null)break;o=v,t++}}const i=e[t];if(i===void 0)return null;const[a="",d]=i.split("/"),u=s.parseFontLength(a);if(u===null)return null;const c=d===void 0?null:s.parseUnitlessLineHeight(d),f=e.slice(t+1).join(" ").trim();return f===""?null:{style:n,weight:o,size:u,family:f,...c!==null?{lineHeight:c}:{}}},g=(r,e)=>{const n=i=>i===void 0?void 0:e.find(a=>a.id===i)?.fontFamily,o=n(r.body?.fontId),t=n(r.heading?.fontId);return{...o?{fontFamilyDefault:o}:void 0,...t?{fontFamilyHeading:t}:void 0}},m=r=>{if(r===void 0)return;const e={};for(const[n,o]of Object.entries(r))if(s.isMeasuredFontTokenKey(n)&&typeof o=="string"){const t=p(o);if(t===null){y(n,o);continue}e[n]=t}else e[n]=o;return e},y=(r,e)=>{process.env.NODE_ENV!=="production"&&console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${r}": "${e}" is not a measurable font shorthand (needs a px/em size and a family).`)};exports.convertGraphConfigTheme=h;
@@ -1,5 +1,3 @@
1
- import { FontLength } from '@graphysdk/viz-engine/graph-config';
2
- import { FontStyle } from '@graphysdk/viz-engine/graph-config';
3
1
  import { GraphConfig } from '@graphysdk/viz-engine/graph-config';
4
2
 
5
3
  /**
@@ -12,12 +10,26 @@ import { GraphConfig } from '@graphysdk/viz-engine/graph-config';
12
10
  */
13
11
  export declare const convertGraphConfigTheme: (config: GraphConfig, fontList?: FontListInput) => ThemeOverrides;
14
12
 
13
+ declare const FONT_STYLES: readonly ["normal", "italic", "oblique"];
14
+
15
+ /**
16
+ * A CSS length keeping its unit so measurement can treat it like CSS paint does: em scales with
17
+ * `textScale` (see `emToPx`), px stays absolute.
18
+ */
19
+ declare interface FontLength {
20
+ value: number;
21
+ unit: 'px' | 'em';
22
+ }
23
+
15
24
  /** Host font catalog mapping each font id a `GraphConfig` may reference to a CSS `font-family` string. */
16
25
  export declare type FontListInput = Array<{
17
26
  id: string;
18
27
  fontFamily: string;
19
28
  }>;
20
29
 
30
+ /** A CSS `font-style` keyword accepted by a measured font token override. */
31
+ declare type FontStyle = (typeof FONT_STYLES)[number];
32
+
21
33
  /**
22
34
  * A structured override of a measured font token. Omitted fields keep the token's default (which
23
35
  * still cascades from the leaf tokens, e.g. `fontSizeXs`), so `{ weight: 600 }` changes only the
@@ -37,7 +49,7 @@ declare interface FontTokenOverride {
37
49
  * ({@link FontTokenOverride}); the CSS variable's shorthand is serialized from the same object
38
50
  * measurement reads, so paint and layout move together.
39
51
  */
40
- declare type MeasuredFontTokenKey = 'fontLegendLabel';
52
+ declare type MeasuredFontTokenKey = 'fontDataLabel' | 'fontStackTotal' | 'fontCategoryLabel' | 'fontTickLabel' | 'fontAxisLabel' | 'fontLegendLabel' | 'fontGoalLineLabel';
41
53
 
42
54
  /**
43
55
  * A partial set of token values layered over a base theme — the shape of the `themeOverrides`
@@ -111,13 +123,22 @@ declare const vars: {
111
123
  trendPositiveColor: `var(--${string})`;
112
124
  trendNeutralColor: `var(--${string})`;
113
125
  defaultAnnotationArrowStroke: `var(--${string})`;
126
+ defaultAnnotationShapeStroke: `var(--${string})`;
114
127
  defaultAnnotationShapeFill: `var(--${string})`;
115
128
  arrowAnnotationStickerOutlineColor: `var(--${string})`;
116
129
  arrowAnnotationStickerOutlineColorInverse: `var(--${string})`;
117
130
  annotationFrameBorderColor: `var(--${string})`;
118
131
  editMenuTriggerIconColor: `var(--${string})`;
119
132
  heatmapEmptyTileBackground: `var(--${string})`;
133
+ dataLabelOutsideBackground: `var(--${string})`;
134
+ dataLabelTextColor: `var(--${string})`;
135
+ dataLabelInsideTextColor: `var(--${string})`;
136
+ stackTotalTextColor: `var(--${string})`;
137
+ stackTotalBackground: `var(--${string})`;
138
+ stackTotalStroke: `var(--${string})`;
120
139
  gridLineWidth: `var(--${string})`;
140
+ gridLineDash: `var(--${string})`;
141
+ gridLineDotted: `var(--${string})`;
121
142
  tooltipBorderRadius: `var(--${string})`;
122
143
  tooltipBorderWidth: `var(--${string})`;
123
144
  tooltipPaddingBlock: `var(--${string})`;
@@ -125,6 +146,7 @@ declare const vars: {
125
146
  tooltipRowGap: `var(--${string})`;
126
147
  tooltipShadow: `var(--${string})`;
127
148
  editorControlHeight: `var(--${string})`;
149
+ tickLabelOffset: `var(--${string})`;
128
150
  legendItemGap: `var(--${string})`;
129
151
  legendSwatchGap: `var(--${string})`;
130
152
  legendSwatchWidth: `var(--${string})`;
@@ -205,6 +227,11 @@ declare const vars: {
205
227
  fontLineHeightHeadingSm: `var(--${string})`;
206
228
  fontLineHeightHeadingMd: `var(--${string})`;
207
229
  fontLineHeightHeadingLg: `var(--${string})`;
230
+ fontTickLabel: `var(--${string})`;
231
+ fontAxisLabel: `var(--${string})`;
232
+ fontDataLabel: `var(--${string})`;
233
+ fontStackTotal: `var(--${string})`;
234
+ fontCategoryLabel: `var(--${string})`;
208
235
  fontLegendLabel: `var(--${string})`;
209
236
  fontSeriesLabel: `var(--${string})`;
210
237
  fontTooltipLabel: `var(--${string})`;
@@ -218,6 +245,7 @@ declare const vars: {
218
245
  fontTooltipCaptionSmall: `var(--${string})`;
219
246
  fontTrendTag: `var(--${string})`;
220
247
  fontTrendTagSmall: `var(--${string})`;
248
+ fontGoalLineLabel: `var(--${string})`;
221
249
  fontPieLabel: `var(--${string})`;
222
250
  fontPieChartTotal: `var(--${string})`;
223
251
  fontDifferenceArrowSmall: `var(--${string})`;
@@ -1,32 +1,58 @@
1
- import { t as d, u as s } from "./dev.utils-CrfRPKW8.js";
2
- import { parseFontShorthand as v } from "@graphysdk/viz-engine/graph-config";
3
- var y = (e, n) => {
4
- const r = e.appearance?.textStyle;
1
+ import { i as v, n as h, p, r as m, t as g } from "./font-values-CPxYeqns.js";
2
+ var w = (r, e) => {
3
+ const n = r.appearance?.textStyle;
5
4
  return {
6
- ...l(e.themeOverrides),
7
- ...n && r ? f(r, n) : void 0
5
+ ...b(r.themeOverrides),
6
+ ...e && n ? F(n, e) : void 0
8
7
  };
9
- }, f = (e, n) => {
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);
8
+ }, y = (r) => {
9
+ const e = r.trim().replace(/\s*\/\s*/g, "/").split(/\s+/);
10
+ let n = "normal", i = 400, t = 0;
11
+ for (; t < e.length; ) {
12
+ const s = e[t];
13
+ if (s === void 0) return null;
14
+ if (s === "normal") t++;
15
+ else if (g(s))
16
+ n = s, t++;
17
+ else {
18
+ const u = m(s);
19
+ if (u === null) break;
20
+ i = u, t++;
21
+ }
22
+ }
23
+ const o = e[t];
24
+ if (o === void 0) return null;
25
+ const [a = "", l] = o.split("/"), d = h(a);
26
+ if (d === null) return null;
27
+ const c = l === void 0 ? null : v(l), f = e.slice(t + 1).join(" ").trim();
28
+ return f === "" ? null : {
29
+ style: n,
30
+ weight: i,
31
+ size: d,
32
+ family: f,
33
+ ...c !== null ? { lineHeight: c } : {}
34
+ };
35
+ }, F = (r, e) => {
36
+ const n = (o) => o === void 0 ? void 0 : e.find((a) => a.id === o)?.fontFamily, i = n(r.body?.fontId), t = n(r.heading?.fontId);
11
37
  return {
12
- ...o ? { fontFamilyDefault: o } : void 0,
38
+ ...i ? { fontFamilyDefault: i } : void 0,
13
39
  ...t ? { fontFamilyHeading: t } : void 0
14
40
  };
15
- }, l = (e) => {
16
- if (e === void 0) return;
17
- const n = {};
18
- for (const [r, o] of Object.entries(e)) if (s(r) && typeof o == "string") {
19
- const t = v(o);
41
+ }, b = (r) => {
42
+ if (r === void 0) return;
43
+ const e = {};
44
+ for (const [n, i] of Object.entries(r)) if (p(n) && typeof i == "string") {
45
+ const t = y(i);
20
46
  if (t === null) {
21
- m(r, o);
47
+ k(n, i);
22
48
  continue;
23
49
  }
24
- n[r] = t;
25
- } else n[r] = o;
26
- return n;
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).`);
50
+ e[n] = t;
51
+ } else e[n] = i;
52
+ return e;
53
+ }, k = (r, e) => {
54
+ process.env.NODE_ENV !== "production" && console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${r}": "${e}" is not a measurable font shorthand (needs a px/em size and a family).`);
29
55
  };
30
56
  export {
31
- y as convertGraphConfigTheme
57
+ w as convertGraphConfigTheme
32
58
  };