@cloudscape-design/chart-components 1.0.93 → 1.0.95

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.
@@ -36,7 +36,7 @@ export function updateChartContext(context, chart) {
36
36
  function computeDerivedState(chart) {
37
37
  var _a;
38
38
  const allXSet = new Set();
39
- const allXInSeries = new WeakMap();
39
+ const allPointsInSeries = new WeakMap();
40
40
  const pointsByX = new Map();
41
41
  const getXPoints = (x) => { var _a; return (_a = pointsByX.get(x)) !== null && _a !== void 0 ? _a : []; };
42
42
  const addPoint = (point) => {
@@ -46,7 +46,7 @@ function computeDerivedState(chart) {
46
46
  };
47
47
  const compareX = (a, b) => a - b;
48
48
  for (const s of getChartSeries(chart)) {
49
- const seriesX = new Set();
49
+ const seriesPoints = new Array();
50
50
  if (s.visible) {
51
51
  for (const d of getSeriesData(s)) {
52
52
  // Points with y=null represent the absence of value, there is no need to include them and those
@@ -54,13 +54,13 @@ function computeDerivedState(chart) {
54
54
  // Although "d" can't be undefined according to Highcharts API, it does become undefined for chart containing more datapoints
55
55
  // than the cropThreshold for that series (specific cases of re-rendering the chart with updated options listening to setExteme updates)
56
56
  if (d.visible && d.y !== null) {
57
- seriesX.add(d.x);
57
+ seriesPoints.push(d);
58
58
  allXSet.add(d.x);
59
59
  addPoint(d);
60
60
  }
61
61
  }
62
62
  }
63
- allXInSeries.set(s, Array.from(seriesX));
63
+ allPointsInSeries.set(s, seriesPoints);
64
64
  }
65
65
  for (const [, points] of pointsByX) {
66
66
  sortPoints(points);
@@ -76,15 +76,15 @@ function computeDerivedState(chart) {
76
76
  }
77
77
  const master = (_a = s.linkedParent) !== null && _a !== void 0 ? _a : s;
78
78
  const family = [master, ...master.linkedSeries];
79
- const familyXSet = new Set(family.flatMap((m) => { var _a; return (_a = allXInSeries.get(m)) !== null && _a !== void 0 ? _a : []; }));
80
- const familyPoints = [];
81
- for (const x of Array.from(familyXSet).sort(compareX)) {
82
- for (const member of family) {
83
- const point = getSeriesData(member).find((d) => d.x === x && d.y !== null);
84
- if (point && familyXSet.has(x)) {
85
- familyPoints.push(point);
86
- familyXSet.delete(x); // We ignore points that share X coordinate.
87
- }
79
+ const allFamilyPoints = family
80
+ .flatMap((m) => { var _a; return (_a = allPointsInSeries.get(m)) !== null && _a !== void 0 ? _a : []; })
81
+ .sort(({ x: x1 }, { x: x2 }) => compareX(x1, x2));
82
+ const usedXSet = new Set();
83
+ const familyPoints = new Array();
84
+ for (const point of allFamilyPoints) {
85
+ if (!usedXSet.has(point.x)) {
86
+ familyPoints.push(point);
87
+ usedXSet.add(point.x); // We ignore points that share X coordinate.
88
88
  }
89
89
  }
90
90
  for (const member of family) {
@@ -1 +1 @@
1
- {"version":3,"file":"chart-extra-context.js","sourceRoot":"","sources":["../../../../src/core/chart-api/chart-extra-context.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAKtC,OAAO,EAAE,cAAc,EAAE,aAAa,EAAyB,MAAM,iCAAiC,CAAC;AAGvG,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AA6CzD,kFAAkF;AAClF,gGAAgG;AAChG,MAAM,UAAU,kBAAkB;IAChC,OAAO;QACL,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE;YACX,aAAa,EAAE,KAAK;YACpB,aAAa,EAAE,KAAK;YACpB,cAAc,EAAE,KAAK;YACrB,yBAAyB,EAAE,KAAK;YAChC,MAAM,EAAE,EAAE;SACX;QACD,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,GAAG,EAAE;YACV,yGAAyG;YACzG,2GAA2G;YAC3G,oEAAoE;YACpE,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;QACjF,CAAC;QACD,WAAW,EAAE,IAAI;QACjB,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,eAAe,EAAE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CAAC;KACJ,CAAC;AACJ,CAAC;AAED,+FAA+F;AAC/F,iGAAiG;AACjG,oCAAoC;AACpC,SAAS,UAAU,CAAC,KAAyB;;IAC3C,MAAM,QAAQ,GAAG,CAAC,CAAC,CAAA,MAAA,MAAA,KAAK,CAAC,CAAC,CAAC,0CAAE,MAAM,CAAC,KAAK,0CAAE,QAAQ,CAAA,CAAC;IACpD,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAClB,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAC7G,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAC7G,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type Highcharts from \"highcharts\";\n\nimport { NonCancelableEventHandler } from \"../../internal/events\";\nimport { getChartSeries, getSeriesData, SafeChart, SafeSeries } from \"../../internal/utils/highcharts\";\nimport { ChartLabels } from \"../i18n-utils\";\nimport { CoreChartProps, Rect } from \"../interfaces\";\nimport { getGroupRect, isSeriesStacked } from \"../utils\";\n\n// Chart API context is used for dependency injection for chart utilities.\n// It is initialized on chart render, and includes the chart instance, consumer\n// settings and state, and derived state, which is computed from the chart instance\n// on each render, and reused across utilities to avoid duplicate work.\n\nexport interface ChartExtraContext {\n settings: ChartExtraContext.Settings;\n handlers: ChartExtraContext.Handlers;\n state: ChartExtraContext.State;\n derived: ChartExtraContext.DerivedState;\n chartOrNull: null | SafeChart;\n chart: () => SafeChart;\n}\n\nexport namespace ChartExtraContext {\n export interface Settings {\n chartId: string;\n noDataEnabled: boolean;\n legendEnabled: boolean;\n tooltipEnabled: boolean;\n keyboardNavigationEnabled: boolean;\n labels: ChartLabels;\n getItemOptions?: CoreChartProps.GetItemOptions;\n }\n\n export interface Handlers {\n onHighlight?: NonCancelableEventHandler<CoreChartProps.HighlightChangeDetail>;\n onClearHighlight?: NonCancelableEventHandler<CoreChartProps.HighlightClearDetail>;\n onVisibleItemsChange?: NonCancelableEventHandler<CoreChartProps.VisibleItemsChangeDetail>;\n }\n\n export interface State {\n visibleItems?: readonly string[];\n }\n\n export interface DerivedState {\n allX: number[];\n getPointsByX: (x: number) => Highcharts.Point[];\n getSeriesPoints: (series: SafeSeries) => Highcharts.Point[];\n groupRects: { group: Highcharts.Point[]; rect: Rect }[];\n }\n}\n\n// The context is created when the chart component is rendered for the first time.\n// On every subsequent render the settings and state are updated directly in the context object.\nexport function createChartContext(): ChartExtraContext {\n return {\n settings: {\n chartId: \"\",\n noDataEnabled: false,\n legendEnabled: false,\n tooltipEnabled: false,\n keyboardNavigationEnabled: false,\n labels: {},\n },\n handlers: {},\n state: {},\n chart: () => {\n // Before the first chart render there is no chart instance, which is required for most of the utilities.\n // Instead of doing null checks in each utility, an attempt to access the chart instance before it is ready\n // will cause an exception, indicating an logical error in the code.\n throw new Error(\"Invariant violation: using chart API before initialization.\");\n },\n chartOrNull: null,\n derived: { allX: [], getPointsByX: () => [], getSeriesPoints: () => [], groupRects: [] },\n };\n}\n\n// The update method is called on every chart render, before any other initialization code.\n// This ensures the context state is up to date and can be used for subsequent computations.\nexport function updateChartContext(context: ChartExtraContext, chart: SafeChart) {\n context.chart = () => chart;\n context.chartOrNull = chart;\n context.derived = computeDerivedState(chart);\n}\n\nfunction computeDerivedState(chart: SafeChart): ChartExtraContext.DerivedState {\n const allXSet = new Set<number>();\n const allXInSeries = new WeakMap<SafeSeries, number[]>();\n const pointsByX = new Map<number, Highcharts.Point[]>();\n const getXPoints = (x: number) => pointsByX.get(x) ?? [];\n const addPoint = (point: Highcharts.Point) => {\n const xPoints = getXPoints(point.x);\n xPoints.push(point);\n pointsByX.set(point.x, xPoints);\n };\n const compareX = (a: number, b: number) => a - b;\n\n for (const s of getChartSeries(chart)) {\n const seriesX = new Set<number>();\n if (s.visible) {\n for (const d of getSeriesData(s)) {\n // Points with y=null represent the absence of value, there is no need to include them and those\n // should have no impact on computed rects or navigation.\n\n // Although \"d\" can't be undefined according to Highcharts API, it does become undefined for chart containing more datapoints\n // than the cropThreshold for that series (specific cases of re-rendering the chart with updated options listening to setExteme updates)\n if (d.visible && d.y !== null) {\n seriesX.add(d.x);\n allXSet.add(d.x);\n addPoint(d);\n }\n }\n }\n allXInSeries.set(s, Array.from(seriesX));\n }\n for (const [, points] of pointsByX) {\n sortPoints(points);\n }\n const allX = Array.from(allXSet).sort(compareX);\n\n // For each series, compute the ordered list of points to navigate through. For a linked family\n // (primary + its linked children), all members share the same flat list: points sorted by X,\n // with family members interleaved in series order within the same X value.\n const seriesPointsMap = new WeakMap<SafeSeries, Highcharts.Point[]>();\n for (const s of getChartSeries(chart)) {\n if (seriesPointsMap.has(s)) {\n continue; // Already computed as part of a family.\n }\n const master = s.linkedParent ?? s;\n const family = [master, ...master.linkedSeries];\n const familyXSet = new Set(family.flatMap((m) => allXInSeries.get(m) ?? []));\n const familyPoints: Highcharts.Point[] = [];\n for (const x of Array.from(familyXSet).sort(compareX)) {\n for (const member of family) {\n const point = getSeriesData(member).find((d) => d.x === x && d.y !== null);\n if (point && familyXSet.has(x)) {\n familyPoints.push(point);\n familyXSet.delete(x); // We ignore points that share X coordinate.\n }\n }\n }\n for (const member of family) {\n seriesPointsMap.set(member, familyPoints);\n }\n }\n return {\n allX,\n getPointsByX: (x) => pointsByX.get(x) ?? [],\n getSeriesPoints: (s) => seriesPointsMap.get(s) ?? [],\n // Group rects are computed for every available x coordinate, each including at least one point with matching x value.\n // They enclose all matching points of the group and are used to match hover position and place the tooltip or focus outline.\n groupRects: allX.map((x) => ({\n group: getXPoints(x),\n rect: getGroupRect(getXPoints(x)),\n })),\n };\n}\n\n// The points are sorted to ensure consistent navigation, including inverted chart orientation.\n// The order of series in grouped column charts is kept, while stacked series are sorted by their\n// respective positions in the plot.\nfunction sortPoints(group: Highcharts.Point[]) {\n const reversed = !!group[0]?.series.yAxis?.reversed;\n group.sort((a, b) => {\n const ay = a.plotY === undefined || (a.series.type === \"column\" && !isSeriesStacked(a.series)) ? 0 : a.plotY;\n const by = b.plotY === undefined || (b.series.type === \"column\" && !isSeriesStacked(b.series)) ? 0 : b.plotY;\n return !reversed ? ay - by : by - ay;\n });\n}\n"]}
1
+ {"version":3,"file":"chart-extra-context.js","sourceRoot":"","sources":["../../../../src/core/chart-api/chart-extra-context.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAKtC,OAAO,EAAE,cAAc,EAAE,aAAa,EAAyB,MAAM,iCAAiC,CAAC;AAGvG,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AA6CzD,kFAAkF;AAClF,gGAAgG;AAChG,MAAM,UAAU,kBAAkB;IAChC,OAAO;QACL,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE;YACX,aAAa,EAAE,KAAK;YACpB,aAAa,EAAE,KAAK;YACpB,cAAc,EAAE,KAAK;YACrB,yBAAyB,EAAE,KAAK;YAChC,MAAM,EAAE,EAAE;SACX;QACD,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,GAAG,EAAE;YACV,yGAAyG;YACzG,2GAA2G;YAC3G,oEA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AAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;SAClC,CAAC,CAAC;KACJ,CAAC;AACJ,CAAC;AAED,+FAA+F;AAC/F,iGAAiG;AACjG,oCAAoC;AACpC,SAAS,UAAU,CAAC,KAAyB;;IAC3C,MAAM,QAAQ,GAAG,CAAC,CAAC,CAAA,MAAA,MAAA,KAAK,CAAC,CAAC,CAAC,0CAAE,MAAM,CAAC,KAAK,0CAAE,QAAQ,CAAA,CAAC;IACpD,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAClB,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAC7G,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAC7G,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type Highcharts from \"highcharts\";\n\nimport { NonCancelableEventHandler } from \"../../internal/events\";\nimport { getChartSeries, getSeriesData, SafeChart, SafeSeries } from \"../../internal/utils/highcharts\";\nimport { ChartLabels } from \"../i18n-utils\";\nimport { CoreChartProps, Rect } from \"../interfaces\";\nimport { getGroupRect, isSeriesStacked } from \"../utils\";\n\n// Chart API context is used for dependency injection for chart utilities.\n// It is initialized on chart render, and includes the chart instance, consumer\n// settings and state, and derived state, which is computed from the chart instance\n// on each render, and reused across utilities to avoid duplicate work.\n\nexport interface ChartExtraContext {\n settings: ChartExtraContext.Settings;\n handlers: ChartExtraContext.Handlers;\n state: ChartExtraContext.State;\n derived: ChartExtraContext.DerivedState;\n chartOrNull: null | SafeChart;\n chart: () => SafeChart;\n}\n\nexport namespace ChartExtraContext {\n export interface Settings {\n chartId: string;\n noDataEnabled: boolean;\n legendEnabled: boolean;\n tooltipEnabled: boolean;\n keyboardNavigationEnabled: boolean;\n labels: ChartLabels;\n getItemOptions?: CoreChartProps.GetItemOptions;\n }\n\n export interface Handlers {\n onHighlight?: NonCancelableEventHandler<CoreChartProps.HighlightChangeDetail>;\n onClearHighlight?: NonCancelableEventHandler<CoreChartProps.HighlightClearDetail>;\n onVisibleItemsChange?: NonCancelableEventHandler<CoreChartProps.VisibleItemsChangeDetail>;\n }\n\n export interface State {\n visibleItems?: readonly string[];\n }\n\n export interface DerivedState {\n allX: number[];\n getPointsByX: (x: number) => Highcharts.Point[];\n getSeriesPoints: (series: SafeSeries) => Highcharts.Point[];\n groupRects: { group: Highcharts.Point[]; rect: Rect }[];\n }\n}\n\n// The context is created when the chart component is rendered for the first time.\n// On every subsequent render the settings and state are updated directly in the context object.\nexport function createChartContext(): ChartExtraContext {\n return {\n settings: {\n chartId: \"\",\n noDataEnabled: false,\n legendEnabled: false,\n tooltipEnabled: false,\n keyboardNavigationEnabled: false,\n labels: {},\n },\n handlers: {},\n state: {},\n chart: () => {\n // Before the first chart render there is no chart instance, which is required for most of the utilities.\n // Instead of doing null checks in each utility, an attempt to access the chart instance before it is ready\n // will cause an exception, indicating an logical error in the code.\n throw new Error(\"Invariant violation: using chart API before initialization.\");\n },\n chartOrNull: null,\n derived: { allX: [], getPointsByX: () => [], getSeriesPoints: () => [], groupRects: [] },\n };\n}\n\n// The update method is called on every chart render, before any other initialization code.\n// This ensures the context state is up to date and can be used for subsequent computations.\nexport function updateChartContext(context: ChartExtraContext, chart: SafeChart) {\n context.chart = () => chart;\n context.chartOrNull = chart;\n context.derived = computeDerivedState(chart);\n}\n\nfunction computeDerivedState(chart: SafeChart): ChartExtraContext.DerivedState {\n const allXSet = new Set<number>();\n const allPointsInSeries = new WeakMap<SafeSeries, Highcharts.Point[]>();\n const pointsByX = new Map<number, Highcharts.Point[]>();\n const getXPoints = (x: number) => pointsByX.get(x) ?? [];\n const addPoint = (point: Highcharts.Point) => {\n const xPoints = getXPoints(point.x);\n xPoints.push(point);\n pointsByX.set(point.x, xPoints);\n };\n const compareX = (a: number, b: number) => a - b;\n\n for (const s of getChartSeries(chart)) {\n const seriesPoints = new Array<Highcharts.Point>();\n if (s.visible) {\n for (const d of getSeriesData(s)) {\n // Points with y=null represent the absence of value, there is no need to include them and those\n // should have no impact on computed rects or navigation.\n\n // Although \"d\" can't be undefined according to Highcharts API, it does become undefined for chart containing more datapoints\n // than the cropThreshold for that series (specific cases of re-rendering the chart with updated options listening to setExteme updates)\n if (d.visible && d.y !== null) {\n seriesPoints.push(d);\n allXSet.add(d.x);\n addPoint(d);\n }\n }\n }\n allPointsInSeries.set(s, seriesPoints);\n }\n for (const [, points] of pointsByX) {\n sortPoints(points);\n }\n const allX = Array.from(allXSet).sort(compareX);\n\n // For each series, compute the ordered list of points to navigate through. For a linked family\n // (primary + its linked children), all members share the same flat list: points sorted by X,\n // with family members interleaved in series order within the same X value.\n const seriesPointsMap = new WeakMap<SafeSeries, Highcharts.Point[]>();\n for (const s of getChartSeries(chart)) {\n if (seriesPointsMap.has(s)) {\n continue; // Already computed as part of a family.\n }\n const master = s.linkedParent ?? s;\n const family = [master, ...master.linkedSeries];\n const allFamilyPoints = family\n .flatMap((m) => allPointsInSeries.get(m) ?? [])\n .sort(({ x: x1 }, { x: x2 }) => compareX(x1, x2));\n const usedXSet = new Set<number>();\n const familyPoints = new Array<Highcharts.Point>();\n for (const point of allFamilyPoints) {\n if (!usedXSet.has(point.x)) {\n familyPoints.push(point);\n usedXSet.add(point.x); // We ignore points that share X coordinate.\n }\n }\n for (const member of family) {\n seriesPointsMap.set(member, familyPoints);\n }\n }\n return {\n allX,\n getPointsByX: (x) => pointsByX.get(x) ?? [],\n getSeriesPoints: (s) => seriesPointsMap.get(s) ?? [],\n // Group rects are computed for every available x coordinate, each including at least one point with matching x value.\n // They enclose all matching points of the group and are used to match hover position and place the tooltip or focus outline.\n groupRects: allX.map((x) => ({\n group: getXPoints(x),\n rect: getGroupRect(getXPoints(x)),\n })),\n };\n}\n\n// The points are sorted to ensure consistent navigation, including inverted chart orientation.\n// The order of series in grouped column charts is kept, while stacked series are sorted by their\n// respective positions in the plot.\nfunction sortPoints(group: Highcharts.Point[]) {\n const reversed = !!group[0]?.series.yAxis?.reversed;\n group.sort((a, b) => {\n const ay = a.plotY === undefined || (a.series.type === \"column\" && !isSeriesStacked(a.series)) ? 0 : a.plotY;\n const by = b.plotY === undefined || (b.series.type === \"column\" && !isSeriesStacked(b.series)) ? 0 : b.plotY;\n return !reversed ? ay - by : by - ay;\n });\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  export var PACKAGE_SOURCE = "chart-components";
2
- export var PACKAGE_VERSION = "1.0.0 (40086fb4)";
2
+ export var PACKAGE_VERSION = "1.0.0 (6ab9c268)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
5
5
  export var SYSTEM = "core";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "chart-components",
3
- "PACKAGE_VERSION": "1.0.0 (40086fb4)",
3
+ "PACKAGE_VERSION": "1.0.0 (6ab9c268)",
4
4
  "THEME": "open-source-visual-refresh",
5
5
  "ALWAYS_VISUAL_REFRESH": true,
6
6
  "SYSTEM": "core"
@@ -588,6 +588,8 @@ export const colorIconActionCardDefault: string;
588
588
  export const colorIconActionCardHover: string;
589
589
  export const colorIconActionCardActive: string;
590
590
  export const colorIconActionCardDisabled: string;
591
+ export const colorBackgroundSkeleton: string;
592
+ export const colorBackgroundSkeletonWave: string;
591
593
  export const fontBoxValueLargeWeight: string;
592
594
  export const fontButtonLetterSpacing: string;
593
595
  export const fontChartDetailSize: string;
@@ -714,6 +716,7 @@ export const borderWidthActionCardDefault: string;
714
716
  export const borderWidthActionCardHover: string;
715
717
  export const borderWidthActionCardActive: string;
716
718
  export const borderWidthActionCardDisabled: string;
719
+ export const borderRadiusSkeleton: string;
717
720
  export const motionDurationExtraFast: string;
718
721
  export const motionDurationExtraSlow: string;
719
722
  export const motionDurationFast: string;
@@ -588,6 +588,8 @@ export var colorIconActionCardDefault = "var(--color-icon-action-card-default-an
588
588
  export var colorIconActionCardHover = "var(--color-icon-action-card-hover-qxq4pp, #002b66)";
589
589
  export var colorIconActionCardActive = "var(--color-icon-action-card-active-rhp94s, #002b66)";
590
590
  export var colorIconActionCardDisabled = "var(--color-icon-action-card-disabled-wm3kyf, #b4b4bb)";
591
+ export var colorBackgroundSkeleton = "var(--color-background-skeleton-sjxg4n, #ebebf0)";
592
+ export var colorBackgroundSkeletonWave = "var(--color-background-skeleton-wave-1dy97d, #f6f6f9)";
591
593
  export var fontBoxValueLargeWeight = "var(--font-box-value-large-weight-wr00sw, 700)";
592
594
  export var fontButtonLetterSpacing = "var(--font-button-letter-spacing-ufowe3, 0.005em)";
593
595
  export var fontChartDetailSize = "var(--font-chart-detail-size-9qr25q, 12px)";
@@ -714,6 +716,7 @@ export var borderWidthActionCardDefault = "var(--border-width-action-card-defaul
714
716
  export var borderWidthActionCardHover = "var(--border-width-action-card-hover-02l6fg, 1px)";
715
717
  export var borderWidthActionCardActive = "var(--border-width-action-card-active-pwtgzu, 1px)";
716
718
  export var borderWidthActionCardDisabled = "var(--border-width-action-card-disabled-rdvlbc, 1px)";
719
+ export var borderRadiusSkeleton = "var(--border-radius-skeleton-9lkvfi, 8px)";
717
720
  export var motionDurationExtraFast = "var(--motion-duration-extra-fast-l4w48j, 45ms)";
718
721
  export var motionDurationExtraSlow = "var(--motion-duration-extra-slow-29bqym, 270ms)";
719
722
  export var motionDurationFast = "var(--motion-duration-fast-unntf6, 90ms)";
@@ -2399,6 +2399,14 @@ module.exports.preset = {
2399
2399
  "light": "{colorNeutral400}",
2400
2400
  "dark": "{colorNeutral600}"
2401
2401
  },
2402
+ "colorBackgroundSkeleton": {
2403
+ "light": "{colorNeutral250}",
2404
+ "dark": "{colorNeutral750}"
2405
+ },
2406
+ "colorBackgroundSkeletonWave": {
2407
+ "light": "{colorNeutral150}",
2408
+ "dark": "{colorNeutral700}"
2409
+ },
2402
2410
  "fontBoxValueLargeWeight": "700",
2403
2411
  "fontButtonLetterSpacing": "0.005em",
2404
2412
  "fontChartDetailSize": "{fontSizeBodyS}",
@@ -2525,6 +2533,7 @@ module.exports.preset = {
2525
2533
  "borderWidthActionCardHover": "{borderWidthCard}",
2526
2534
  "borderWidthActionCardActive": "{borderWidthCard}",
2527
2535
  "borderWidthActionCardDisabled": "{borderWidthCard}",
2536
+ "borderRadiusSkeleton": "8px",
2528
2537
  "motionDurationExtraFast": {
2529
2538
  "default": "45ms",
2530
2539
  "disabled": "0ms"
@@ -5033,6 +5042,14 @@ module.exports.preset = {
5033
5042
  "light": "{colorNeutral600}",
5034
5043
  "dark": "{colorNeutral600}"
5035
5044
  },
5045
+ "colorBackgroundSkeleton": {
5046
+ "light": "{colorNeutral750}",
5047
+ "dark": "{colorNeutral750}"
5048
+ },
5049
+ "colorBackgroundSkeletonWave": {
5050
+ "light": "{colorNeutral700}",
5051
+ "dark": "{colorNeutral700}"
5052
+ },
5036
5053
  "colorPrimary50": "#f0fbff",
5037
5054
  "colorPrimary100": "#d1f1ff",
5038
5055
  "colorPrimary200": "#b8e7ff",
@@ -6502,6 +6519,14 @@ module.exports.preset = {
6502
6519
  "light": "{colorNeutral600}",
6503
6520
  "dark": "{colorNeutral600}"
6504
6521
  },
6522
+ "colorBackgroundSkeleton": {
6523
+ "light": "{colorNeutral750}",
6524
+ "dark": "{colorNeutral750}"
6525
+ },
6526
+ "colorBackgroundSkeletonWave": {
6527
+ "light": "{colorNeutral700}",
6528
+ "dark": "{colorNeutral700}"
6529
+ },
6505
6530
  "colorPrimary50": "#f0fbff",
6506
6531
  "colorPrimary100": "#d1f1ff",
6507
6532
  "colorPrimary200": "#b8e7ff",
@@ -7898,6 +7923,14 @@ module.exports.preset = {
7898
7923
  "colorIconActionCardDisabled": {
7899
7924
  "light": "{colorNeutral400}",
7900
7925
  "dark": "{colorNeutral600}"
7926
+ },
7927
+ "colorBackgroundSkeleton": {
7928
+ "light": "{colorNeutral250}",
7929
+ "dark": "{colorNeutral750}"
7930
+ },
7931
+ "colorBackgroundSkeletonWave": {
7932
+ "light": "{colorNeutral150}",
7933
+ "dark": "{colorNeutral700}"
7901
7934
  }
7902
7935
  }
7903
7936
  },
@@ -9180,6 +9213,14 @@ module.exports.preset = {
9180
9213
  "colorIconActionCardDisabled": {
9181
9214
  "light": "{colorNeutral400}",
9182
9215
  "dark": "{colorNeutral600}"
9216
+ },
9217
+ "colorBackgroundSkeleton": {
9218
+ "light": "{colorNeutral250}",
9219
+ "dark": "{colorNeutral750}"
9220
+ },
9221
+ "colorBackgroundSkeletonWave": {
9222
+ "light": "{colorNeutral150}",
9223
+ "dark": "{colorNeutral700}"
9183
9224
  }
9184
9225
  }
9185
9226
  },
@@ -10463,6 +10504,14 @@ module.exports.preset = {
10463
10504
  "light": "{colorNeutral400}",
10464
10505
  "dark": "{colorNeutral600}"
10465
10506
  },
10507
+ "colorBackgroundSkeleton": {
10508
+ "light": "{colorNeutral250}",
10509
+ "dark": "{colorNeutral750}"
10510
+ },
10511
+ "colorBackgroundSkeletonWave": {
10512
+ "light": "{colorNeutral150}",
10513
+ "dark": "{colorNeutral700}"
10514
+ },
10466
10515
  "fontExpandableHeadingSize": "14px",
10467
10516
  "borderDividerSectionWidth": "1px"
10468
10517
  }
@@ -11746,6 +11795,14 @@ module.exports.preset = {
11746
11795
  "colorIconActionCardDisabled": {
11747
11796
  "light": "{colorNeutral600}",
11748
11797
  "dark": "{colorNeutral600}"
11798
+ },
11799
+ "colorBackgroundSkeleton": {
11800
+ "light": "{colorNeutral750}",
11801
+ "dark": "{colorNeutral750}"
11802
+ },
11803
+ "colorBackgroundSkeletonWave": {
11804
+ "light": "{colorNeutral700}",
11805
+ "dark": "{colorNeutral700}"
11749
11806
  }
11750
11807
  }
11751
11808
  },
@@ -12351,6 +12408,8 @@ module.exports.preset = {
12351
12408
  "colorIconActionCardHover": "color",
12352
12409
  "colorIconActionCardActive": "color",
12353
12410
  "colorIconActionCardDisabled": "color",
12411
+ "colorBackgroundSkeleton": "color",
12412
+ "colorBackgroundSkeletonWave": "color",
12354
12413
  "motionDurationExtraFast": "motion",
12355
12414
  "motionDurationExtraSlow": "motion",
12356
12415
  "motionDurationFast": "motion",
@@ -13006,6 +13065,15 @@ module.exports.preset = {
13006
13065
  "colorDropzoneBorderDefault",
13007
13066
  "colorDropzoneBorderHover",
13008
13067
  "colorTreeViewConnectorLine",
13068
+ "colorBackgroundActionCardDefault",
13069
+ "colorBackgroundActionCardHover",
13070
+ "colorBackgroundActionCardActive",
13071
+ "colorBorderActionCardDefault",
13072
+ "colorBorderActionCardHover",
13073
+ "colorBorderActionCardActive",
13074
+ "colorBorderActionCardDisabled",
13075
+ "colorBackgroundActionCardDisabled",
13076
+ "colorTextActionCardDisabled",
13009
13077
  "fontFamilyBase",
13010
13078
  "fontFamilyDisplay",
13011
13079
  "fontFamilyHeading",
@@ -13088,6 +13156,10 @@ module.exports.preset = {
13088
13156
  "borderWidthIconLarge",
13089
13157
  "borderRadiusActionCardDefault",
13090
13158
  "borderRadiusActionCardEmbedded",
13159
+ "borderWidthActionCardDefault",
13160
+ "borderWidthActionCardHover",
13161
+ "borderWidthActionCardActive",
13162
+ "borderWidthActionCardDisabled",
13091
13163
  "sizeVerticalInput",
13092
13164
  "spaceAlertVertical",
13093
13165
  "spaceButtonHorizontal",
@@ -13099,6 +13171,10 @@ module.exports.preset = {
13099
13171
  "spaceCardVerticalDefault",
13100
13172
  "spaceCardVerticalEmbedded",
13101
13173
  "spaceTabsVertical",
13174
+ "spaceActionCardHorizontalDefault",
13175
+ "spaceActionCardHorizontalEmbedded",
13176
+ "spaceActionCardVerticalDefault",
13177
+ "spaceActionCardVerticalEmbedded",
13102
13178
  "shadowCard"
13103
13179
  ],
13104
13180
  "exposed": [
@@ -13450,6 +13526,15 @@ module.exports.preset = {
13450
13526
  "colorDropzoneBorderDefault",
13451
13527
  "colorDropzoneBorderHover",
13452
13528
  "colorTreeViewConnectorLine",
13529
+ "colorBackgroundActionCardDefault",
13530
+ "colorBackgroundActionCardHover",
13531
+ "colorBackgroundActionCardActive",
13532
+ "colorBorderActionCardDefault",
13533
+ "colorBorderActionCardHover",
13534
+ "colorBorderActionCardActive",
13535
+ "colorBorderActionCardDisabled",
13536
+ "colorBackgroundActionCardDisabled",
13537
+ "colorTextActionCardDisabled",
13453
13538
  "fontFamilyBase",
13454
13539
  "fontFamilyDisplay",
13455
13540
  "fontFamilyHeading",
@@ -13533,6 +13618,10 @@ module.exports.preset = {
13533
13618
  "borderWidthIconLarge",
13534
13619
  "borderRadiusActionCardDefault",
13535
13620
  "borderRadiusActionCardEmbedded",
13621
+ "borderWidthActionCardDefault",
13622
+ "borderWidthActionCardHover",
13623
+ "borderWidthActionCardActive",
13624
+ "borderWidthActionCardDisabled",
13536
13625
  "motionDurationAvatarGenAiGradient",
13537
13626
  "motionDurationAvatarLoadingDots",
13538
13627
  "motionEasingAvatarGenAiGradient",
@@ -13560,6 +13649,10 @@ module.exports.preset = {
13560
13649
  "spaceFieldHorizontal",
13561
13650
  "spaceTabsVertical",
13562
13651
  "spaceTreeViewIndentation",
13652
+ "spaceActionCardHorizontalDefault",
13653
+ "spaceActionCardHorizontalEmbedded",
13654
+ "spaceActionCardVerticalDefault",
13655
+ "spaceActionCardVerticalEmbedded",
13563
13656
  "spaceOptionPaddingVertical",
13564
13657
  "spaceOptionPaddingHorizontal",
13565
13658
  "spaceScaledXxxs",
@@ -14174,6 +14267,8 @@ module.exports.preset = {
14174
14267
  "colorIconActionCardHover": "color-icon-action-card-hover",
14175
14268
  "colorIconActionCardActive": "color-icon-action-card-active",
14176
14269
  "colorIconActionCardDisabled": "color-icon-action-card-disabled",
14270
+ "colorBackgroundSkeleton": "color-background-skeleton",
14271
+ "colorBackgroundSkeletonWave": "color-background-skeleton-wave",
14177
14272
  "fontBoxValueLargeWeight": "font-box-value-large-weight",
14178
14273
  "fontButtonLetterSpacing": "font-button-letter-spacing",
14179
14274
  "fontChartDetailSize": "font-chart-detail-size",
@@ -14300,6 +14395,7 @@ module.exports.preset = {
14300
14395
  "borderWidthActionCardHover": "border-width-action-card-hover",
14301
14396
  "borderWidthActionCardActive": "border-width-action-card-active",
14302
14397
  "borderWidthActionCardDisabled": "border-width-action-card-disabled",
14398
+ "borderRadiusSkeleton": "border-radius-skeleton",
14303
14399
  "motionDurationExtraFast": "motion-duration-extra-fast",
14304
14400
  "motionDurationExtraSlow": "motion-duration-extra-slow",
14305
14401
  "motionDurationFast": "motion-duration-fast",
@@ -15078,6 +15174,8 @@ module.exports.preset = {
15078
15174
  "colorIconActionCardHover": "--color-icon-action-card-hover-qxq4pp",
15079
15175
  "colorIconActionCardActive": "--color-icon-action-card-active-rhp94s",
15080
15176
  "colorIconActionCardDisabled": "--color-icon-action-card-disabled-wm3kyf",
15177
+ "colorBackgroundSkeleton": "--color-background-skeleton-sjxg4n",
15178
+ "colorBackgroundSkeletonWave": "--color-background-skeleton-wave-1dy97d",
15081
15179
  "fontBoxValueLargeWeight": "--font-box-value-large-weight-wr00sw",
15082
15180
  "fontButtonLetterSpacing": "--font-button-letter-spacing-ufowe3",
15083
15181
  "fontChartDetailSize": "--font-chart-detail-size-9qr25q",
@@ -15204,6 +15302,7 @@ module.exports.preset = {
15204
15302
  "borderWidthActionCardHover": "--border-width-action-card-hover-02l6fg",
15205
15303
  "borderWidthActionCardActive": "--border-width-action-card-active-pwtgzu",
15206
15304
  "borderWidthActionCardDisabled": "--border-width-action-card-disabled-rdvlbc",
15305
+ "borderRadiusSkeleton": "--border-radius-skeleton-9lkvfi",
15207
15306
  "motionDurationExtraFast": "--motion-duration-extra-fast-l4w48j",
15208
15307
  "motionDurationExtraSlow": "--motion-duration-extra-slow-29bqym",
15209
15308
  "motionDurationFast": "--motion-duration-fast-unntf6",