@cloudscape-design/chart-components 1.0.43 → 1.0.45
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.
- package/core/chart-core.js +21 -3
- package/core/chart-core.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/generated/styles/tokens.d.ts +0 -2
- package/internal/generated/styles/tokens.js +2 -4
- package/internal/generated/theming/index.cjs +2 -64
- package/internal/generated/theming/index.js +2 -64
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
package/core/chart-core.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
import { useRef } from "react";
|
|
4
|
+
import { useEffect, useRef } from "react";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import HighchartsReact from "highcharts-react-official";
|
|
7
|
-
import { getIsRtl, useMergeRefs, useUniqueId } from "@cloudscape-design/component-toolkit/internal";
|
|
8
|
-
import { isDevelopment } from "@cloudscape-design/component-toolkit/internal";
|
|
7
|
+
import { getIsRtl, isDevelopment, KeyCode, useMergeRefs, useUniqueId, } from "@cloudscape-design/component-toolkit/internal";
|
|
9
8
|
import Spinner from "@cloudscape-design/components/spinner";
|
|
10
9
|
import { getDataAttributes } from "../internal/base-component/get-data-attributes";
|
|
11
10
|
import * as Styles from "../internal/chart-styles";
|
|
@@ -64,6 +63,25 @@ export function InternalCoreChart({ options, ariaLabel, ariaDescription, fitHeig
|
|
|
64
63
|
verticalAxisTitlePlacement,
|
|
65
64
|
legendBottomMaxHeight: legendOptions === null || legendOptions === void 0 ? void 0 : legendOptions.bottomMaxHeight,
|
|
66
65
|
};
|
|
66
|
+
// AWSUI-61678
|
|
67
|
+
// Add global Escape key listener to dismiss hover tooltips for WCAG Content on Hover/Focus compliance
|
|
68
|
+
// Only enabled when keyboard navigation is disabled; when enabled, navigation handles Escape
|
|
69
|
+
useEffect(() => {
|
|
70
|
+
if (!context.keyboardNavigationEnabled) {
|
|
71
|
+
const handleKeyDown = (event) => {
|
|
72
|
+
if (event.keyCode === KeyCode.escape && context.tooltipEnabled) {
|
|
73
|
+
const tooltipState = api.tooltipStore.get();
|
|
74
|
+
if (tooltipState.visible && !tooltipState.pinned) {
|
|
75
|
+
api.hideTooltip();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
80
|
+
return () => {
|
|
81
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}, [api, context.tooltipEnabled, context.keyboardNavigationEnabled]);
|
|
67
85
|
// Render fallback using the same root and container props as for the chart to ensure consistent
|
|
68
86
|
// size, test classes, and data-attributes assignment.
|
|
69
87
|
if (!highcharts) {
|
package/core/chart-core.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-core.js","sourceRoot":"","sources":["../../../src/core/chart-core.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,eAAe,MAAM,2BAA2B,CAAC;AAExD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AACpG,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC9E,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAEnF,OAAO,KAAK,MAAM,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC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C;QAC/G,CAAC,CAAC,eAAe,CAAC;AACtB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useRef } from \"react\";\nimport clsx from \"clsx\";\nimport type Highcharts from \"highcharts\";\nimport HighchartsReact from \"highcharts-react-official\";\n\nimport { getIsRtl, useMergeRefs, useUniqueId } from \"@cloudscape-design/component-toolkit/internal\";\nimport { isDevelopment } from \"@cloudscape-design/component-toolkit/internal\";\nimport Spinner from \"@cloudscape-design/components/spinner\";\n\nimport { getDataAttributes } from \"../internal/base-component/get-data-attributes\";\nimport { InternalBaseComponentProps } from \"../internal/base-component/use-base-component\";\nimport * as Styles from \"../internal/chart-styles\";\nimport { castArray } from \"../internal/utils/utils\";\nimport { useChartAPI } from \"./chart-api\";\nimport { ChartExtraContext } from \"./chart-api/chart-extra-context\";\nimport { ChartContainer } from \"./chart-container\";\nimport { ChartApplication } from \"./components/core-application\";\nimport { ChartFilters } from \"./components/core-filters\";\nimport { ChartLegend } from \"./components/core-legend\";\nimport { ChartNoData } from \"./components/core-no-data\";\nimport { ChartFooter, ChartHeader } from \"./components/core-slots\";\nimport { ChartTooltip } from \"./components/core-tooltip\";\nimport { VerticalAxisTitle } from \"./components/core-vertical-axis-title\";\nimport { getFormatter } from \"./formatters\";\nimport { useChartI18n } from \"./i18n-utils\";\nimport { CoreChartProps } from \"./interfaces\";\nimport { getLegendsProps, getPointAccessibleDescription } from \"./utils\";\n\nimport styles from \"./styles.css.js\";\nimport testClasses from \"./test-classes/styles.css.js\";\n\n/**\n * CoreChart is the core internal abstraction that accepts the entire set of Highcharts options along\n * with Cloudscape props to define custom tooltip, no-data, formatters, items visibility, and more.\n */\nexport function InternalCoreChart({\n options,\n ariaLabel,\n ariaDescription,\n fitHeight,\n chartHeight,\n chartMinHeight,\n chartMinWidth,\n tooltip: tooltipOptions,\n noData: noDataOptions,\n navigator,\n legend: legendOptions,\n fallback = <Spinner />,\n callback,\n emphasizeBaseline = true,\n verticalAxisTitlePlacement = \"side\",\n i18nStrings,\n className,\n header,\n footer,\n filter,\n keyboardNavigation = true,\n onHighlight,\n onLegendItemHighlight,\n onClearHighlight,\n onVisibleItemsChange,\n visibleItems,\n __internalRootRef,\n getItemOptions,\n ...rest\n}: CoreChartProps & InternalBaseComponentProps) {\n const highcharts = rest.highcharts as null | typeof Highcharts;\n const labels = useChartI18n({ ariaLabel, ariaDescription, i18nStrings });\n const context: ChartExtraContext[\"settings\"] = {\n chartId: useUniqueId(),\n noDataEnabled: !!noDataOptions,\n legendEnabled: legendOptions?.enabled !== false,\n tooltipEnabled: tooltipOptions?.enabled !== false,\n keyboardNavigationEnabled: keyboardNavigation,\n labels,\n getItemOptions: getItemOptions ?? (() => ({})),\n };\n const handlers = { onHighlight, onClearHighlight, onVisibleItemsChange };\n const state = { visibleItems };\n const api = useChartAPI(context, handlers, state);\n\n const rootClassName = clsx(testClasses.root, styles.root, fitHeight && styles[\"root-fit-height\"], className);\n const rootRef = useRef<HTMLDivElement>(null);\n const mergedRootRef = useMergeRefs(rootRef, __internalRootRef);\n const rootProps = { ref: mergedRootRef, className: rootClassName, ...getDataAttributes(rest) };\n const legendPosition = legendOptions?.position ?? \"bottom\";\n const commonLegendProps = {\n api: api,\n i18nStrings,\n onItemHighlight: onLegendItemHighlight,\n getLegendTooltipContent: rest.getLegendTooltipContent,\n };\n const containerProps = {\n fitHeight,\n chartHeight,\n chartMinHeight,\n chartMinWidth,\n legendPosition,\n verticalAxisTitlePlacement,\n legendBottomMaxHeight: legendOptions?.bottomMaxHeight,\n };\n\n // Render fallback using the same root and container props as for the chart to ensure consistent\n // size, test classes, and data-attributes assignment.\n if (!highcharts) {\n return (\n <div {...rootProps}>\n <ChartContainer\n {...containerProps}\n chart={(minHeight) => (\n <div className={testClasses.fallback} style={{ minHeight }}>\n {fallback}\n </div>\n )}\n />\n </div>\n );\n }\n\n const apiOptions = api.getOptions();\n const inverted = !!options.chart?.inverted;\n const isRtl = getIsRtl(rootRef?.current);\n\n // The Highcharts options takes all provided Highcharts options and custom properties and merges them together, so that\n // the Cloudscape features and custom Highcharts extensions co-exist.\n // For certain options we provide Cloudscape styling, but in all cases this can be explicitly overridden.\n options = {\n ...options,\n // Hide credits by default.\n credits: options.credits ?? { enabled: false },\n // Hide chart title by default.\n title: options.title ?? { text: \"\" },\n // Use Cloudscape color palette by default.\n // This cannot be reset to Highcharts' default from the outside, but it is possible to provide custom palette.\n colors: options.colors ?? Styles.colors,\n chart: {\n // Animations are disabled by default.\n // This is done for UX and a11y reasons as Highcharts animations do not match our animation timings, and do\n // not respect disabled motion settings. These issues can likely be resolved or we can provide custom animations\n // instead, but this is not a priority.\n animation: false,\n ...Styles.chart,\n ...options.chart,\n className: clsx(testClasses[\"chart-plot\"], options.chart?.className),\n // The debug errors are enabled by default in development mode, but this only works\n // if the Highcharts debugger module is loaded.\n displayErrors: options.chart?.displayErrors ?? isDevelopment,\n style: { ...Styles.chartPlotCss, ...options.chart?.style },\n },\n series: options.series,\n // Highcharts legend is disabled by default in favour of the custom Cloudscape legend.\n legend: options.legend ?? { enabled: false },\n lang: {\n ...options.lang,\n accessibility: {\n // The default chart title is disabled by default to prevent the default \"Chart\" in the screen-reader detail.\n defaultChartTitle: \"\",\n chartContainerLabel: labels.chartLabel,\n svgContainerLabel: labels.chartContainerLabel,\n // We used {names[0]} to inject the axis title, see: https://api.highcharts.com/highcharts/lang.accessibility.axis.xAxisDescriptionSingular.\n axis: {\n xAxisDescriptionSingular: labels.chartXAxisLabel ? `${labels.chartXAxisLabel}, {names[0]}` : undefined,\n yAxisDescriptionSingular: labels.chartYAxisLabel ? `${labels.chartYAxisLabel}, {names[0]}` : undefined,\n },\n ...options.lang?.accessibility,\n },\n },\n accessibility: {\n description: labels.chartDescription,\n screenReaderSection: {\n // We use custom before-message to remove detail that are currently not supported with our i18n.\n // See: https://api.highcharts.com/highcharts/accessibility.screenReaderSection.beforeChartFormat.\n beforeChartFormat: \"<div>{xAxisDescription}</div><div>{yAxisDescription}</div>\",\n // We hide after message as it is currently not supported with our i18n.\n afterChartFormat: \"\",\n },\n ...options.accessibility,\n // Highcharts keyboard navigation is disabled by default in favour of the custom Cloudscape navigation.\n keyboardNavigation: options.accessibility?.keyboardNavigation ?? { enabled: !keyboardNavigation },\n point: {\n // Point description formatter is overridden to respect custom axes value formatters.\n descriptionFormatter: (point) => getPointAccessibleDescription(point, labels),\n ...options.accessibility?.point,\n },\n },\n // We use the rtl adjusted axes (instead of the original options.xAxis/yAxis) to ensure the chart renders\n // with the correct axis orientation for RTL layouts, matching what was used for legend positioning above.\n xAxis: castArray(options.xAxis)?.map((xAxisOptions) => ({\n ...Styles.xAxisOptions,\n ...xAxisOptions,\n // Depending on the chart.inverted the x-axis can be rendered as vertical, and needs to respect page direction.\n reversed: !inverted && isRtl ? !xAxisOptions.reversed : xAxisOptions.reversed,\n opposite: inverted && isRtl ? !xAxisOptions.opposite : xAxisOptions.opposite,\n className: xAxisClassName(inverted, xAxisOptions.className),\n title: axisTitle(xAxisOptions.title ?? {}, !inverted || verticalAxisTitlePlacement === \"side\"),\n labels: axisLabels(xAxisOptions.labels ?? {}),\n })),\n yAxis: castArray(options.yAxis)?.map((yAxisOptions) => ({\n ...Styles.yAxisOptions,\n ...yAxisOptions,\n // Depending on the chart.inverted the y-axis can be rendered as vertical, and needs to respect page direction.\n reversed: inverted && isRtl ? !yAxisOptions.reversed : yAxisOptions.reversed,\n opposite: !inverted && isRtl ? !yAxisOptions.opposite : yAxisOptions.opposite,\n className: yAxisClassName(inverted, yAxisOptions.className),\n title: axisTitle(yAxisOptions.title ?? {}, inverted || verticalAxisTitlePlacement === \"side\"),\n labels: axisLabels(yAxisOptions.labels ?? {}),\n plotLines: yAxisPlotLines(yAxisOptions.plotLines, emphasizeBaseline),\n // We use reversed stack by default so that the order of points in the tooltip and series in the legend\n // correspond the order of stacks.\n reversedStacks: yAxisOptions.reversedStacks ?? true,\n })),\n plotOptions: {\n ...options.plotOptions,\n series: {\n // Animations are disabled by default, same as in the options.chart.\n animation: false,\n // Sticky tracking is disabled by default due to sub-optimal UX in dense charts.\n stickyTracking: false,\n borderColor: Styles.seriesBorderColor,\n ...options.plotOptions?.series,\n dataLabels: { style: Styles.seriesDataLabelsCss, ...options.plotOptions?.series?.dataLabels },\n states: {\n ...options.plotOptions?.series?.states,\n inactive: { opacity: Styles.seriesOpacityInactive, ...options.plotOptions?.series?.states?.inactive },\n },\n },\n area: { ...Styles.areaSeries, ...options.plotOptions?.area },\n areaspline: { ...Styles.areaSeries, ...options.plotOptions?.areaspline },\n arearange: { ...Styles.areaSeries, ...options.plotOptions?.arearange },\n areasplinerange: { ...Styles.areaSeries, ...options.plotOptions?.areasplinerange },\n line: { ...Styles.lineSeries, ...options.plotOptions?.line },\n spline: { ...Styles.lineSeries, ...options.plotOptions?.spline },\n column: { ...Styles.columnSeries, ...options.plotOptions?.column },\n errorbar: { ...Styles.errorbarSeries, ...options.plotOptions?.errorbar },\n // Pie chart is shown in legend by default, that is required for standalone pie charts.\n pie: {\n showInLegend: true,\n ...Styles.pieSeries,\n ...options.plotOptions?.pie,\n dataLabels: { ...Styles.pieSeriesDataLabels, ...options.plotOptions?.pie?.dataLabels },\n },\n },\n // We don't use Highcharts tooltip, but certain tooltip options such as tooltip.snap or tooltip.shared\n // affect the hovering behavior of Highcharts. That is only the case when the tooltip is not disabled,\n // so we render it, but hide with styles.\n tooltip: options.tooltip ?? { enabled: true, snap: Styles.tooltipSnap, style: { opacity: 0 } },\n };\n\n const legendProps = getLegendsProps(options, legendOptions);\n\n return (\n <div {...rootProps}>\n <ChartContainer\n {...containerProps}\n chart={(height) => {\n // We declare event handlers here to ensure that no event fires until the chart is initialized.\n const highchartsOptions: Highcharts.Options = {\n ...options,\n chart: {\n ...options.chart,\n // Use height computed from chartHeight, chartMinHeight, and fitHeight settings by default.\n // It is possible to override it by explicitly providing chart.height, but this will not be\n // compatible with any of the above settings.\n height: options.chart?.height ?? height,\n // We override certain chart events to inject additional behaviors, but it is still possible to define\n // custom callbacks. The Cloudscape behaviors can be disabled or altered via components API. For instance,\n // if no-data props are not provided - the related on-render computations will be skipped.\n events: {\n ...options.chart?.events,\n load(event) {\n apiOptions.onChartLoad.call(this, event);\n return options.chart?.events?.load?.call(this, event);\n },\n render(event) {\n apiOptions.onChartRender.call(this, event);\n return options.chart?.events?.render?.call(this, event);\n },\n click(event) {\n apiOptions.onChartClick.call(this, event);\n return options.chart?.events?.click?.call(this, event);\n },\n },\n },\n plotOptions: {\n ...options.plotOptions,\n series: {\n ...options.plotOptions?.series,\n // We override certain point events to inject additional behaviors, but it is still possible to define\n // custom callbacks. The Cloudscape behaviors can be disabled or altered via components API.\n point: {\n ...options.plotOptions?.series?.point,\n events: {\n ...options.plotOptions?.series?.point?.events,\n mouseOver(event) {\n apiOptions.onSeriesPointMouseOver.call(this, event);\n return options.plotOptions?.series?.point?.events?.mouseOver?.call(this, event);\n },\n mouseOut(event) {\n apiOptions.onSeriesPointMouseOut.call(this, event);\n return options.plotOptions?.series?.point?.events?.mouseOut?.call(this, event);\n },\n click(event) {\n apiOptions.onSeriesPointClick.call(this, event);\n return options.plotOptions?.series?.point?.events?.click?.call(this, event);\n },\n },\n },\n },\n },\n };\n return (\n <>\n <ChartApplication api={api} keyboardNavigation={keyboardNavigation} ariaLabel={ariaLabel} />\n <HighchartsReact\n highcharts={highcharts}\n options={highchartsOptions}\n callback={(chart: Highcharts.Chart) =>\n callback?.({ chart, highcharts: highcharts as typeof Highcharts, ...api.publicApi })\n }\n />\n </>\n );\n }}\n navigator={navigator}\n primaryLegend={\n context.legendEnabled && legendProps.primary ? (\n <ChartLegend {...commonLegendProps} {...legendProps.primary} className={testClasses[\"legend-primary\"]} />\n ) : null\n }\n secondaryLegend={\n context.legendEnabled && legendProps.secondary ? (\n <ChartLegend\n {...commonLegendProps}\n {...legendProps.secondary}\n className={testClasses[\"legend-secondary\"]}\n />\n ) : null\n }\n verticalAxisTitle={\n verticalAxisTitlePlacement === \"top\" ? <VerticalAxisTitle api={api} inverted={!!inverted} /> : null\n }\n header={header?.content ? <ChartHeader>{header.content}</ChartHeader> : null}\n footer={footer?.content ? <ChartFooter>{footer.content}</ChartFooter> : null}\n filter={\n filter?.seriesFilter || filter?.additionalFilters ? (\n <ChartFilters\n api={api}\n seriesFilter={filter?.seriesFilter}\n additionalFilters={filter?.additionalFilters}\n i18nStrings={i18nStrings}\n />\n ) : null\n }\n noData={context.noDataEnabled && <ChartNoData {...noDataOptions} i18nStrings={i18nStrings} api={api} />}\n />\n\n {context.tooltipEnabled && (\n <ChartTooltip\n {...tooltipOptions}\n i18nStrings={i18nStrings}\n getTooltipContent={rest.getTooltipContent}\n api={api}\n />\n )}\n </div>\n );\n}\n\nfunction xAxisClassName(inverted: boolean, customClassName?: string) {\n return clsx(\n testClasses[\"axis-x\"],\n inverted ? testClasses[\"axis-vertical\"] : testClasses[\"axis-horizontal\"],\n customClassName,\n );\n}\n\nfunction yAxisClassName(inverted: boolean, customClassName?: string) {\n return clsx(\n testClasses[\"axis-y\"],\n inverted ? testClasses[\"axis-horizontal\"] : testClasses[\"axis-vertical\"],\n customClassName,\n );\n}\n\n// When placing vertical axis title in the chart's top, the actual axis title rendered by Highcharts\n// needs to be visually hidden (it is still accessible by screen-readers). We then set title's\n// opacity to 0, and use reserveSpace=false, so that Highcharts stretches the plot area to all available\n// container width.\nfunction axisTitle<O extends Highcharts.XAxisTitleOptions | Highcharts.YAxisTitleOptions>(\n options: O,\n visible: boolean,\n): O {\n return {\n style: { ...Styles.axisTitleCss, opacity: visible ? undefined : 0 },\n reserveSpace: visible ? undefined : false,\n ...options,\n };\n}\n\n// We use custom formatters instead of Highcharts defaults to ensure consistent formatting\n// between axis ticks and tooltip contents.\nfunction axisLabels<O extends Highcharts.XAxisLabelsOptions | Highcharts.YAxisLabelsOptions>(options: O): O {\n return {\n style: Styles.axisLabelsCss,\n formatter: function () {\n const formattedValue = getFormatter(this.axis)(this.value);\n return formattedValue.replace(/\\n/g, \"<br />\");\n },\n ...options,\n };\n}\n\nfunction yAxisPlotLines(\n plotLineOptions: Highcharts.YAxisPlotLinesOptions[] = [],\n emphasizeBaseline: boolean,\n): Highcharts.YAxisPlotLinesOptions[] {\n return emphasizeBaseline\n ? [{ value: 0, ...Styles.chatPlotBaseline, className: testClasses[\"emphasized-baseline\"] }, ...plotLineOptions]\n : plotLineOptions;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"chart-core.js","sourceRoot":"","sources":["../../../src/core/chart-core.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,eAAe,MAAM,2BAA2B,CAAC;AAExD,OAAO,EACL,QAAQ,EACR,aAAa,EACb,OAAO,EACP,YAAY,EACZ,WAAW,GACZ,MAAM,+CAA+C,CAAC;AACvD,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAEnF,OAAO,KAAK,MAAM,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,iB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AC,CAAC;QACjD,CAAC;QACD,GAAG,OAAO;KACX,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CACrB,kBAAsD,EAAE,EACxD,iBAA0B;IAE1B,OAAO,iBAAiB;QACtB,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC,gBAAgB,EAAE,SAAS,EAAE,WAAW,CAAC,qBAAqB,CAAC,EAAE,EAAE,GAAG,eAAe,CAAC;QAC/G,CAAC,CAAC,eAAe,CAAC;AACtB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useEffect, useRef } from \"react\";\nimport clsx from \"clsx\";\nimport type Highcharts from \"highcharts\";\nimport HighchartsReact from \"highcharts-react-official\";\n\nimport {\n getIsRtl,\n isDevelopment,\n KeyCode,\n useMergeRefs,\n useUniqueId,\n} from \"@cloudscape-design/component-toolkit/internal\";\nimport Spinner from \"@cloudscape-design/components/spinner\";\n\nimport { getDataAttributes } from \"../internal/base-component/get-data-attributes\";\nimport { InternalBaseComponentProps } from \"../internal/base-component/use-base-component\";\nimport * as Styles from \"../internal/chart-styles\";\nimport { castArray } from \"../internal/utils/utils\";\nimport { useChartAPI } from \"./chart-api\";\nimport { ChartExtraContext } from \"./chart-api/chart-extra-context\";\nimport { ChartContainer } from \"./chart-container\";\nimport { ChartApplication } from \"./components/core-application\";\nimport { ChartFilters } from \"./components/core-filters\";\nimport { ChartLegend } from \"./components/core-legend\";\nimport { ChartNoData } from \"./components/core-no-data\";\nimport { ChartFooter, ChartHeader } from \"./components/core-slots\";\nimport { ChartTooltip } from \"./components/core-tooltip\";\nimport { VerticalAxisTitle } from \"./components/core-vertical-axis-title\";\nimport { getFormatter } from \"./formatters\";\nimport { useChartI18n } from \"./i18n-utils\";\nimport { CoreChartProps } from \"./interfaces\";\nimport { getLegendsProps, getPointAccessibleDescription } from \"./utils\";\n\nimport styles from \"./styles.css.js\";\nimport testClasses from \"./test-classes/styles.css.js\";\n\n/**\n * CoreChart is the core internal abstraction that accepts the entire set of Highcharts options along\n * with Cloudscape props to define custom tooltip, no-data, formatters, items visibility, and more.\n */\nexport function InternalCoreChart({\n options,\n ariaLabel,\n ariaDescription,\n fitHeight,\n chartHeight,\n chartMinHeight,\n chartMinWidth,\n tooltip: tooltipOptions,\n noData: noDataOptions,\n navigator,\n legend: legendOptions,\n fallback = <Spinner />,\n callback,\n emphasizeBaseline = true,\n verticalAxisTitlePlacement = \"side\",\n i18nStrings,\n className,\n header,\n footer,\n filter,\n keyboardNavigation = true,\n onHighlight,\n onLegendItemHighlight,\n onClearHighlight,\n onVisibleItemsChange,\n visibleItems,\n __internalRootRef,\n getItemOptions,\n ...rest\n}: CoreChartProps & InternalBaseComponentProps) {\n const highcharts = rest.highcharts as null | typeof Highcharts;\n const labels = useChartI18n({ ariaLabel, ariaDescription, i18nStrings });\n const context: ChartExtraContext[\"settings\"] = {\n chartId: useUniqueId(),\n noDataEnabled: !!noDataOptions,\n legendEnabled: legendOptions?.enabled !== false,\n tooltipEnabled: tooltipOptions?.enabled !== false,\n keyboardNavigationEnabled: keyboardNavigation,\n labels,\n getItemOptions: getItemOptions ?? (() => ({})),\n };\n const handlers = { onHighlight, onClearHighlight, onVisibleItemsChange };\n const state = { visibleItems };\n const api = useChartAPI(context, handlers, state);\n\n const rootClassName = clsx(testClasses.root, styles.root, fitHeight && styles[\"root-fit-height\"], className);\n const rootRef = useRef<HTMLDivElement>(null);\n const mergedRootRef = useMergeRefs(rootRef, __internalRootRef);\n const rootProps = { ref: mergedRootRef, className: rootClassName, ...getDataAttributes(rest) };\n const legendPosition = legendOptions?.position ?? \"bottom\";\n const commonLegendProps = {\n api: api,\n i18nStrings,\n onItemHighlight: onLegendItemHighlight,\n getLegendTooltipContent: rest.getLegendTooltipContent,\n };\n const containerProps = {\n fitHeight,\n chartHeight,\n chartMinHeight,\n chartMinWidth,\n legendPosition,\n verticalAxisTitlePlacement,\n legendBottomMaxHeight: legendOptions?.bottomMaxHeight,\n };\n\n // AWSUI-61678\n // Add global Escape key listener to dismiss hover tooltips for WCAG Content on Hover/Focus compliance\n // Only enabled when keyboard navigation is disabled; when enabled, navigation handles Escape\n useEffect(() => {\n if (!context.keyboardNavigationEnabled) {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.keyCode === KeyCode.escape && context.tooltipEnabled) {\n const tooltipState = api.tooltipStore.get();\n if (tooltipState.visible && !tooltipState.pinned) {\n api.hideTooltip();\n }\n }\n };\n\n document.addEventListener(\"keydown\", handleKeyDown);\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n };\n }\n }, [api, context.tooltipEnabled, context.keyboardNavigationEnabled]);\n\n // Render fallback using the same root and container props as for the chart to ensure consistent\n // size, test classes, and data-attributes assignment.\n if (!highcharts) {\n return (\n <div {...rootProps}>\n <ChartContainer\n {...containerProps}\n chart={(minHeight) => (\n <div className={testClasses.fallback} style={{ minHeight }}>\n {fallback}\n </div>\n )}\n />\n </div>\n );\n }\n\n const apiOptions = api.getOptions();\n const inverted = !!options.chart?.inverted;\n const isRtl = getIsRtl(rootRef?.current);\n\n // The Highcharts options takes all provided Highcharts options and custom properties and merges them together, so that\n // the Cloudscape features and custom Highcharts extensions co-exist.\n // For certain options we provide Cloudscape styling, but in all cases this can be explicitly overridden.\n options = {\n ...options,\n // Hide credits by default.\n credits: options.credits ?? { enabled: false },\n // Hide chart title by default.\n title: options.title ?? { text: \"\" },\n // Use Cloudscape color palette by default.\n // This cannot be reset to Highcharts' default from the outside, but it is possible to provide custom palette.\n colors: options.colors ?? Styles.colors,\n chart: {\n // Animations are disabled by default.\n // This is done for UX and a11y reasons as Highcharts animations do not match our animation timings, and do\n // not respect disabled motion settings. These issues can likely be resolved or we can provide custom animations\n // instead, but this is not a priority.\n animation: false,\n ...Styles.chart,\n ...options.chart,\n className: clsx(testClasses[\"chart-plot\"], options.chart?.className),\n // The debug errors are enabled by default in development mode, but this only works\n // if the Highcharts debugger module is loaded.\n displayErrors: options.chart?.displayErrors ?? isDevelopment,\n style: { ...Styles.chartPlotCss, ...options.chart?.style },\n },\n series: options.series,\n // Highcharts legend is disabled by default in favour of the custom Cloudscape legend.\n legend: options.legend ?? { enabled: false },\n lang: {\n ...options.lang,\n accessibility: {\n // The default chart title is disabled by default to prevent the default \"Chart\" in the screen-reader detail.\n defaultChartTitle: \"\",\n chartContainerLabel: labels.chartLabel,\n svgContainerLabel: labels.chartContainerLabel,\n // We used {names[0]} to inject the axis title, see: https://api.highcharts.com/highcharts/lang.accessibility.axis.xAxisDescriptionSingular.\n axis: {\n xAxisDescriptionSingular: labels.chartXAxisLabel ? `${labels.chartXAxisLabel}, {names[0]}` : undefined,\n yAxisDescriptionSingular: labels.chartYAxisLabel ? `${labels.chartYAxisLabel}, {names[0]}` : undefined,\n },\n ...options.lang?.accessibility,\n },\n },\n accessibility: {\n description: labels.chartDescription,\n screenReaderSection: {\n // We use custom before-message to remove detail that are currently not supported with our i18n.\n // See: https://api.highcharts.com/highcharts/accessibility.screenReaderSection.beforeChartFormat.\n beforeChartFormat: \"<div>{xAxisDescription}</div><div>{yAxisDescription}</div>\",\n // We hide after message as it is currently not supported with our i18n.\n afterChartFormat: \"\",\n },\n ...options.accessibility,\n // Highcharts keyboard navigation is disabled by default in favour of the custom Cloudscape navigation.\n keyboardNavigation: options.accessibility?.keyboardNavigation ?? { enabled: !keyboardNavigation },\n point: {\n // Point description formatter is overridden to respect custom axes value formatters.\n descriptionFormatter: (point) => getPointAccessibleDescription(point, labels),\n ...options.accessibility?.point,\n },\n },\n // We use the rtl adjusted axes (instead of the original options.xAxis/yAxis) to ensure the chart renders\n // with the correct axis orientation for RTL layouts, matching what was used for legend positioning above.\n xAxis: castArray(options.xAxis)?.map((xAxisOptions) => ({\n ...Styles.xAxisOptions,\n ...xAxisOptions,\n // Depending on the chart.inverted the x-axis can be rendered as vertical, and needs to respect page direction.\n reversed: !inverted && isRtl ? !xAxisOptions.reversed : xAxisOptions.reversed,\n opposite: inverted && isRtl ? !xAxisOptions.opposite : xAxisOptions.opposite,\n className: xAxisClassName(inverted, xAxisOptions.className),\n title: axisTitle(xAxisOptions.title ?? {}, !inverted || verticalAxisTitlePlacement === \"side\"),\n labels: axisLabels(xAxisOptions.labels ?? {}),\n })),\n yAxis: castArray(options.yAxis)?.map((yAxisOptions) => ({\n ...Styles.yAxisOptions,\n ...yAxisOptions,\n // Depending on the chart.inverted the y-axis can be rendered as vertical, and needs to respect page direction.\n reversed: inverted && isRtl ? !yAxisOptions.reversed : yAxisOptions.reversed,\n opposite: !inverted && isRtl ? !yAxisOptions.opposite : yAxisOptions.opposite,\n className: yAxisClassName(inverted, yAxisOptions.className),\n title: axisTitle(yAxisOptions.title ?? {}, inverted || verticalAxisTitlePlacement === \"side\"),\n labels: axisLabels(yAxisOptions.labels ?? {}),\n plotLines: yAxisPlotLines(yAxisOptions.plotLines, emphasizeBaseline),\n // We use reversed stack by default so that the order of points in the tooltip and series in the legend\n // correspond the order of stacks.\n reversedStacks: yAxisOptions.reversedStacks ?? true,\n })),\n plotOptions: {\n ...options.plotOptions,\n series: {\n // Animations are disabled by default, same as in the options.chart.\n animation: false,\n // Sticky tracking is disabled by default due to sub-optimal UX in dense charts.\n stickyTracking: false,\n borderColor: Styles.seriesBorderColor,\n ...options.plotOptions?.series,\n dataLabels: { style: Styles.seriesDataLabelsCss, ...options.plotOptions?.series?.dataLabels },\n states: {\n ...options.plotOptions?.series?.states,\n inactive: { opacity: Styles.seriesOpacityInactive, ...options.plotOptions?.series?.states?.inactive },\n },\n },\n area: { ...Styles.areaSeries, ...options.plotOptions?.area },\n areaspline: { ...Styles.areaSeries, ...options.plotOptions?.areaspline },\n arearange: { ...Styles.areaSeries, ...options.plotOptions?.arearange },\n areasplinerange: { ...Styles.areaSeries, ...options.plotOptions?.areasplinerange },\n line: { ...Styles.lineSeries, ...options.plotOptions?.line },\n spline: { ...Styles.lineSeries, ...options.plotOptions?.spline },\n column: { ...Styles.columnSeries, ...options.plotOptions?.column },\n errorbar: { ...Styles.errorbarSeries, ...options.plotOptions?.errorbar },\n // Pie chart is shown in legend by default, that is required for standalone pie charts.\n pie: {\n showInLegend: true,\n ...Styles.pieSeries,\n ...options.plotOptions?.pie,\n dataLabels: { ...Styles.pieSeriesDataLabels, ...options.plotOptions?.pie?.dataLabels },\n },\n },\n // We don't use Highcharts tooltip, but certain tooltip options such as tooltip.snap or tooltip.shared\n // affect the hovering behavior of Highcharts. That is only the case when the tooltip is not disabled,\n // so we render it, but hide with styles.\n tooltip: options.tooltip ?? { enabled: true, snap: Styles.tooltipSnap, style: { opacity: 0 } },\n };\n\n const legendProps = getLegendsProps(options, legendOptions);\n\n return (\n <div {...rootProps}>\n <ChartContainer\n {...containerProps}\n chart={(height) => {\n // We declare event handlers here to ensure that no event fires until the chart is initialized.\n const highchartsOptions: Highcharts.Options = {\n ...options,\n chart: {\n ...options.chart,\n // Use height computed from chartHeight, chartMinHeight, and fitHeight settings by default.\n // It is possible to override it by explicitly providing chart.height, but this will not be\n // compatible with any of the above settings.\n height: options.chart?.height ?? height,\n // We override certain chart events to inject additional behaviors, but it is still possible to define\n // custom callbacks. The Cloudscape behaviors can be disabled or altered via components API. For instance,\n // if no-data props are not provided - the related on-render computations will be skipped.\n events: {\n ...options.chart?.events,\n load(event) {\n apiOptions.onChartLoad.call(this, event);\n return options.chart?.events?.load?.call(this, event);\n },\n render(event) {\n apiOptions.onChartRender.call(this, event);\n return options.chart?.events?.render?.call(this, event);\n },\n click(event) {\n apiOptions.onChartClick.call(this, event);\n return options.chart?.events?.click?.call(this, event);\n },\n },\n },\n plotOptions: {\n ...options.plotOptions,\n series: {\n ...options.plotOptions?.series,\n // We override certain point events to inject additional behaviors, but it is still possible to define\n // custom callbacks. The Cloudscape behaviors can be disabled or altered via components API.\n point: {\n ...options.plotOptions?.series?.point,\n events: {\n ...options.plotOptions?.series?.point?.events,\n mouseOver(event) {\n apiOptions.onSeriesPointMouseOver.call(this, event);\n return options.plotOptions?.series?.point?.events?.mouseOver?.call(this, event);\n },\n mouseOut(event) {\n apiOptions.onSeriesPointMouseOut.call(this, event);\n return options.plotOptions?.series?.point?.events?.mouseOut?.call(this, event);\n },\n click(event) {\n apiOptions.onSeriesPointClick.call(this, event);\n return options.plotOptions?.series?.point?.events?.click?.call(this, event);\n },\n },\n },\n },\n },\n };\n return (\n <>\n <ChartApplication api={api} keyboardNavigation={keyboardNavigation} ariaLabel={ariaLabel} />\n <HighchartsReact\n highcharts={highcharts}\n options={highchartsOptions}\n callback={(chart: Highcharts.Chart) =>\n callback?.({ chart, highcharts: highcharts as typeof Highcharts, ...api.publicApi })\n }\n />\n </>\n );\n }}\n navigator={navigator}\n primaryLegend={\n context.legendEnabled && legendProps.primary ? (\n <ChartLegend {...commonLegendProps} {...legendProps.primary} className={testClasses[\"legend-primary\"]} />\n ) : null\n }\n secondaryLegend={\n context.legendEnabled && legendProps.secondary ? (\n <ChartLegend\n {...commonLegendProps}\n {...legendProps.secondary}\n className={testClasses[\"legend-secondary\"]}\n />\n ) : null\n }\n verticalAxisTitle={\n verticalAxisTitlePlacement === \"top\" ? <VerticalAxisTitle api={api} inverted={!!inverted} /> : null\n }\n header={header?.content ? <ChartHeader>{header.content}</ChartHeader> : null}\n footer={footer?.content ? <ChartFooter>{footer.content}</ChartFooter> : null}\n filter={\n filter?.seriesFilter || filter?.additionalFilters ? (\n <ChartFilters\n api={api}\n seriesFilter={filter?.seriesFilter}\n additionalFilters={filter?.additionalFilters}\n i18nStrings={i18nStrings}\n />\n ) : null\n }\n noData={context.noDataEnabled && <ChartNoData {...noDataOptions} i18nStrings={i18nStrings} api={api} />}\n />\n\n {context.tooltipEnabled && (\n <ChartTooltip\n {...tooltipOptions}\n i18nStrings={i18nStrings}\n getTooltipContent={rest.getTooltipContent}\n api={api}\n />\n )}\n </div>\n );\n}\n\nfunction xAxisClassName(inverted: boolean, customClassName?: string) {\n return clsx(\n testClasses[\"axis-x\"],\n inverted ? testClasses[\"axis-vertical\"] : testClasses[\"axis-horizontal\"],\n customClassName,\n );\n}\n\nfunction yAxisClassName(inverted: boolean, customClassName?: string) {\n return clsx(\n testClasses[\"axis-y\"],\n inverted ? testClasses[\"axis-horizontal\"] : testClasses[\"axis-vertical\"],\n customClassName,\n );\n}\n\n// When placing vertical axis title in the chart's top, the actual axis title rendered by Highcharts\n// needs to be visually hidden (it is still accessible by screen-readers). We then set title's\n// opacity to 0, and use reserveSpace=false, so that Highcharts stretches the plot area to all available\n// container width.\nfunction axisTitle<O extends Highcharts.XAxisTitleOptions | Highcharts.YAxisTitleOptions>(\n options: O,\n visible: boolean,\n): O {\n return {\n style: { ...Styles.axisTitleCss, opacity: visible ? undefined : 0 },\n reserveSpace: visible ? undefined : false,\n ...options,\n };\n}\n\n// We use custom formatters instead of Highcharts defaults to ensure consistent formatting\n// between axis ticks and tooltip contents.\nfunction axisLabels<O extends Highcharts.XAxisLabelsOptions | Highcharts.YAxisLabelsOptions>(options: O): O {\n return {\n style: Styles.axisLabelsCss,\n formatter: function () {\n const formattedValue = getFormatter(this.axis)(this.value);\n return formattedValue.replace(/\\n/g, \"<br />\");\n },\n ...options,\n };\n}\n\nfunction yAxisPlotLines(\n plotLineOptions: Highcharts.YAxisPlotLinesOptions[] = [],\n emphasizeBaseline: boolean,\n): Highcharts.YAxisPlotLinesOptions[] {\n return emphasizeBaseline\n ? [{ value: 0, ...Styles.chatPlotBaseline, className: testClasses[\"emphasized-baseline\"] }, ...plotLineOptions]\n : plotLineOptions;\n}\n"]}
|
package/internal/environment.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export var PACKAGE_SOURCE = "chart-components";
|
|
2
|
-
export var PACKAGE_VERSION = "1.0.0 (
|
|
2
|
+
export var PACKAGE_VERSION = "1.0.0 (1885ee4f)";
|
|
3
3
|
export var THEME = "open-source-visual-refresh";
|
|
4
4
|
export var ALWAYS_VISUAL_REFRESH = true;
|
|
5
5
|
export var SYSTEM = "core";
|
|
@@ -341,9 +341,7 @@ export const colorBackgroundNotificationStackBarActive: string;
|
|
|
341
341
|
export const colorBackgroundNotificationStackBarHover: string;
|
|
342
342
|
export const colorBackgroundPopover: string;
|
|
343
343
|
export const colorBackgroundProgressBarValueDefault: string;
|
|
344
|
-
export const colorBackgroundProgressBarValueInFlash: string;
|
|
345
344
|
export const colorBackgroundProgressBarDefault: string;
|
|
346
|
-
export const colorBackgroundProgressBarInFlash: string;
|
|
347
345
|
export const colorBackgroundSegmentActive: string;
|
|
348
346
|
export const colorBackgroundSegmentDefault: string;
|
|
349
347
|
export const colorBackgroundSegmentDisabled: string;
|
|
@@ -340,10 +340,8 @@ export var colorBackgroundNotificationStackBar = "var(--color-background-notific
|
|
|
340
340
|
export var colorBackgroundNotificationStackBarActive = "var(--color-background-notification-stack-bar-active-a4h9r8, #232b37)";
|
|
341
341
|
export var colorBackgroundNotificationStackBarHover = "var(--color-background-notification-stack-bar-hover-jh82oo, #424650)";
|
|
342
342
|
export var colorBackgroundPopover = "var(--color-background-popover-e20fy8, #ffffff)";
|
|
343
|
-
export var colorBackgroundProgressBarValueDefault = "var(--color-background-progress-bar-value-default-
|
|
344
|
-
export var
|
|
345
|
-
export var colorBackgroundProgressBarDefault = "var(--color-background-progress-bar-default-4755ec, #ebebf0)";
|
|
346
|
-
export var colorBackgroundProgressBarInFlash = "var(--color-background-progress-bar-in-flash-f4k60b, rgba(255, 255, 255, 0.25))";
|
|
343
|
+
export var colorBackgroundProgressBarValueDefault = "var(--color-background-progress-bar-value-default-69ydqg, #006ce0)";
|
|
344
|
+
export var colorBackgroundProgressBarDefault = "var(--color-background-progress-bar-default-j8kyxd, #ebebf0)";
|
|
347
345
|
export var colorBackgroundSegmentActive = "var(--color-background-segment-active-1u2ldl, #006ce0)";
|
|
348
346
|
export var colorBackgroundSegmentDefault = "var(--color-background-segment-default-b0r494, #ffffff)";
|
|
349
347
|
export var colorBackgroundSegmentDisabled = "var(--color-background-segment-disabled-m2a5t7, #ffffff)";
|
|
@@ -1411,18 +1411,10 @@ module.exports.preset = {
|
|
|
1411
1411
|
"light": "{colorPrimary600}",
|
|
1412
1412
|
"dark": "{colorPrimary400}"
|
|
1413
1413
|
},
|
|
1414
|
-
"colorBackgroundProgressBarValueInFlash": {
|
|
1415
|
-
"light": "{colorWhite}",
|
|
1416
|
-
"dark": "{colorWhite}"
|
|
1417
|
-
},
|
|
1418
1414
|
"colorBackgroundProgressBarDefault": {
|
|
1419
1415
|
"light": "{colorNeutral250}",
|
|
1420
1416
|
"dark": "{colorNeutral700}"
|
|
1421
1417
|
},
|
|
1422
|
-
"colorBackgroundProgressBarInFlash": {
|
|
1423
|
-
"light": "{colorGreyOpaque25}",
|
|
1424
|
-
"dark": "{colorGreyOpaque25}"
|
|
1425
|
-
},
|
|
1426
1418
|
"colorBackgroundSegmentActive": {
|
|
1427
1419
|
"light": "{colorPrimary600}",
|
|
1428
1420
|
"dark": "{colorPrimary400}"
|
|
@@ -3728,18 +3720,10 @@ module.exports.preset = {
|
|
|
3728
3720
|
"light": "{colorPrimary400}",
|
|
3729
3721
|
"dark": "{colorPrimary400}"
|
|
3730
3722
|
},
|
|
3731
|
-
"colorBackgroundProgressBarValueInFlash": {
|
|
3732
|
-
"light": "{colorWhite}",
|
|
3733
|
-
"dark": "{colorWhite}"
|
|
3734
|
-
},
|
|
3735
3723
|
"colorBackgroundProgressBarDefault": {
|
|
3736
3724
|
"light": "{colorNeutral700}",
|
|
3737
3725
|
"dark": "{colorNeutral700}"
|
|
3738
3726
|
},
|
|
3739
|
-
"colorBackgroundProgressBarInFlash": {
|
|
3740
|
-
"light": "{colorGreyOpaque25}",
|
|
3741
|
-
"dark": "{colorGreyOpaque25}"
|
|
3742
|
-
},
|
|
3743
3727
|
"colorBackgroundSegmentActive": {
|
|
3744
3728
|
"light": "{colorPrimary400}",
|
|
3745
3729
|
"dark": "{colorPrimary400}"
|
|
@@ -5053,18 +5037,10 @@ module.exports.preset = {
|
|
|
5053
5037
|
"light": "{colorPrimary400}",
|
|
5054
5038
|
"dark": "{colorPrimary400}"
|
|
5055
5039
|
},
|
|
5056
|
-
"colorBackgroundProgressBarValueInFlash": {
|
|
5057
|
-
"light": "{colorWhite}",
|
|
5058
|
-
"dark": "{colorWhite}"
|
|
5059
|
-
},
|
|
5060
5040
|
"colorBackgroundProgressBarDefault": {
|
|
5061
5041
|
"light": "{colorNeutral700}",
|
|
5062
5042
|
"dark": "{colorNeutral700}"
|
|
5063
5043
|
},
|
|
5064
|
-
"colorBackgroundProgressBarInFlash": {
|
|
5065
|
-
"light": "{colorGreyOpaque25}",
|
|
5066
|
-
"dark": "{colorGreyOpaque25}"
|
|
5067
|
-
},
|
|
5068
5044
|
"colorBackgroundSegmentActive": {
|
|
5069
5045
|
"light": "{colorPrimary400}",
|
|
5070
5046
|
"dark": "{colorPrimary400}"
|
|
@@ -6311,18 +6287,10 @@ module.exports.preset = {
|
|
|
6311
6287
|
"dark": "{colorNeutral800}"
|
|
6312
6288
|
},
|
|
6313
6289
|
"colorBackgroundProgressBarValueDefault": {
|
|
6314
|
-
"light": "{colorPrimary600}",
|
|
6315
|
-
"dark": "{colorPrimary400}"
|
|
6316
|
-
},
|
|
6317
|
-
"colorBackgroundProgressBarValueInFlash": {
|
|
6318
6290
|
"light": "{colorWhite}",
|
|
6319
6291
|
"dark": "{colorWhite}"
|
|
6320
6292
|
},
|
|
6321
6293
|
"colorBackgroundProgressBarDefault": {
|
|
6322
|
-
"light": "{colorNeutral250}",
|
|
6323
|
-
"dark": "{colorNeutral700}"
|
|
6324
|
-
},
|
|
6325
|
-
"colorBackgroundProgressBarInFlash": {
|
|
6326
6294
|
"light": "{colorGreyOpaque25}",
|
|
6327
6295
|
"dark": "{colorGreyOpaque25}"
|
|
6328
6296
|
},
|
|
@@ -7457,18 +7425,10 @@ module.exports.preset = {
|
|
|
7457
7425
|
"dark": "{colorNeutral800}"
|
|
7458
7426
|
},
|
|
7459
7427
|
"colorBackgroundProgressBarValueDefault": {
|
|
7460
|
-
"light": "{colorPrimary600}",
|
|
7461
|
-
"dark": "{colorPrimary400}"
|
|
7462
|
-
},
|
|
7463
|
-
"colorBackgroundProgressBarValueInFlash": {
|
|
7464
7428
|
"light": "{colorNeutral950}",
|
|
7465
7429
|
"dark": "{colorNeutral950}"
|
|
7466
7430
|
},
|
|
7467
7431
|
"colorBackgroundProgressBarDefault": {
|
|
7468
|
-
"light": "{colorNeutral250}",
|
|
7469
|
-
"dark": "{colorNeutral700}"
|
|
7470
|
-
},
|
|
7471
|
-
"colorBackgroundProgressBarInFlash": {
|
|
7472
7432
|
"light": "{colorGreyOpaque10}",
|
|
7473
7433
|
"dark": "{colorGreyOpaque10}"
|
|
7474
7434
|
},
|
|
@@ -8606,18 +8566,10 @@ module.exports.preset = {
|
|
|
8606
8566
|
"light": "{colorPrimary600}",
|
|
8607
8567
|
"dark": "{colorPrimary400}"
|
|
8608
8568
|
},
|
|
8609
|
-
"colorBackgroundProgressBarValueInFlash": {
|
|
8610
|
-
"light": "{colorWhite}",
|
|
8611
|
-
"dark": "{colorWhite}"
|
|
8612
|
-
},
|
|
8613
8569
|
"colorBackgroundProgressBarDefault": {
|
|
8614
8570
|
"light": "{colorNeutral250}",
|
|
8615
8571
|
"dark": "{colorNeutral700}"
|
|
8616
8572
|
},
|
|
8617
|
-
"colorBackgroundProgressBarInFlash": {
|
|
8618
|
-
"light": "{colorGreyOpaque25}",
|
|
8619
|
-
"dark": "{colorGreyOpaque25}"
|
|
8620
|
-
},
|
|
8621
8573
|
"colorBackgroundSegmentActive": {
|
|
8622
8574
|
"light": "{colorPrimary600}",
|
|
8623
8575
|
"dark": "{colorPrimary400}"
|
|
@@ -9754,18 +9706,10 @@ module.exports.preset = {
|
|
|
9754
9706
|
"light": "{colorPrimary400}",
|
|
9755
9707
|
"dark": "{colorPrimary400}"
|
|
9756
9708
|
},
|
|
9757
|
-
"colorBackgroundProgressBarValueInFlash": {
|
|
9758
|
-
"light": "{colorWhite}",
|
|
9759
|
-
"dark": "{colorWhite}"
|
|
9760
|
-
},
|
|
9761
9709
|
"colorBackgroundProgressBarDefault": {
|
|
9762
9710
|
"light": "{colorNeutral700}",
|
|
9763
9711
|
"dark": "{colorNeutral700}"
|
|
9764
9712
|
},
|
|
9765
|
-
"colorBackgroundProgressBarInFlash": {
|
|
9766
|
-
"light": "{colorGreyOpaque25}",
|
|
9767
|
-
"dark": "{colorGreyOpaque25}"
|
|
9768
|
-
},
|
|
9769
9713
|
"colorBackgroundSegmentActive": {
|
|
9770
9714
|
"light": "{colorPrimary400}",
|
|
9771
9715
|
"dark": "{colorPrimary400}"
|
|
@@ -10963,9 +10907,7 @@ module.exports.preset = {
|
|
|
10963
10907
|
"colorBackgroundNotificationStackBarHover": "color",
|
|
10964
10908
|
"colorBackgroundPopover": "color",
|
|
10965
10909
|
"colorBackgroundProgressBarValueDefault": "color",
|
|
10966
|
-
"colorBackgroundProgressBarValueInFlash": "color",
|
|
10967
10910
|
"colorBackgroundProgressBarDefault": "color",
|
|
10968
|
-
"colorBackgroundProgressBarInFlash": "color",
|
|
10969
10911
|
"colorBackgroundSegmentActive": "color",
|
|
10970
10912
|
"colorBackgroundSegmentDefault": "color",
|
|
10971
10913
|
"colorBackgroundSegmentDisabled": "color",
|
|
@@ -12599,9 +12541,7 @@ module.exports.preset = {
|
|
|
12599
12541
|
"colorBackgroundNotificationStackBarHover": "color-background-notification-stack-bar-hover",
|
|
12600
12542
|
"colorBackgroundPopover": "color-background-popover",
|
|
12601
12543
|
"colorBackgroundProgressBarValueDefault": "color-background-progress-bar-value-default",
|
|
12602
|
-
"colorBackgroundProgressBarValueInFlash": "color-background-progress-bar-value-in-flash",
|
|
12603
12544
|
"colorBackgroundProgressBarDefault": "color-background-progress-bar-default",
|
|
12604
|
-
"colorBackgroundProgressBarInFlash": "color-background-progress-bar-in-flash",
|
|
12605
12545
|
"colorBackgroundSegmentActive": "color-background-segment-active",
|
|
12606
12546
|
"colorBackgroundSegmentDefault": "color-background-segment-default",
|
|
12607
12547
|
"colorBackgroundSegmentDisabled": "color-background-segment-disabled",
|
|
@@ -13419,10 +13359,8 @@ module.exports.preset = {
|
|
|
13419
13359
|
"colorBackgroundNotificationStackBarActive": "--color-background-notification-stack-bar-active-a4h9r8",
|
|
13420
13360
|
"colorBackgroundNotificationStackBarHover": "--color-background-notification-stack-bar-hover-jh82oo",
|
|
13421
13361
|
"colorBackgroundPopover": "--color-background-popover-e20fy8",
|
|
13422
|
-
"colorBackgroundProgressBarValueDefault": "--color-background-progress-bar-value-default-
|
|
13423
|
-
"
|
|
13424
|
-
"colorBackgroundProgressBarDefault": "--color-background-progress-bar-default-4755ec",
|
|
13425
|
-
"colorBackgroundProgressBarInFlash": "--color-background-progress-bar-in-flash-f4k60b",
|
|
13362
|
+
"colorBackgroundProgressBarValueDefault": "--color-background-progress-bar-value-default-69ydqg",
|
|
13363
|
+
"colorBackgroundProgressBarDefault": "--color-background-progress-bar-default-j8kyxd",
|
|
13426
13364
|
"colorBackgroundSegmentActive": "--color-background-segment-active-1u2ldl",
|
|
13427
13365
|
"colorBackgroundSegmentDefault": "--color-background-segment-default-b0r494",
|
|
13428
13366
|
"colorBackgroundSegmentDisabled": "--color-background-segment-disabled-m2a5t7",
|
|
@@ -1411,18 +1411,10 @@ export var preset = {
|
|
|
1411
1411
|
"light": "{colorPrimary600}",
|
|
1412
1412
|
"dark": "{colorPrimary400}"
|
|
1413
1413
|
},
|
|
1414
|
-
"colorBackgroundProgressBarValueInFlash": {
|
|
1415
|
-
"light": "{colorWhite}",
|
|
1416
|
-
"dark": "{colorWhite}"
|
|
1417
|
-
},
|
|
1418
1414
|
"colorBackgroundProgressBarDefault": {
|
|
1419
1415
|
"light": "{colorNeutral250}",
|
|
1420
1416
|
"dark": "{colorNeutral700}"
|
|
1421
1417
|
},
|
|
1422
|
-
"colorBackgroundProgressBarInFlash": {
|
|
1423
|
-
"light": "{colorGreyOpaque25}",
|
|
1424
|
-
"dark": "{colorGreyOpaque25}"
|
|
1425
|
-
},
|
|
1426
1418
|
"colorBackgroundSegmentActive": {
|
|
1427
1419
|
"light": "{colorPrimary600}",
|
|
1428
1420
|
"dark": "{colorPrimary400}"
|
|
@@ -3728,18 +3720,10 @@ export var preset = {
|
|
|
3728
3720
|
"light": "{colorPrimary400}",
|
|
3729
3721
|
"dark": "{colorPrimary400}"
|
|
3730
3722
|
},
|
|
3731
|
-
"colorBackgroundProgressBarValueInFlash": {
|
|
3732
|
-
"light": "{colorWhite}",
|
|
3733
|
-
"dark": "{colorWhite}"
|
|
3734
|
-
},
|
|
3735
3723
|
"colorBackgroundProgressBarDefault": {
|
|
3736
3724
|
"light": "{colorNeutral700}",
|
|
3737
3725
|
"dark": "{colorNeutral700}"
|
|
3738
3726
|
},
|
|
3739
|
-
"colorBackgroundProgressBarInFlash": {
|
|
3740
|
-
"light": "{colorGreyOpaque25}",
|
|
3741
|
-
"dark": "{colorGreyOpaque25}"
|
|
3742
|
-
},
|
|
3743
3727
|
"colorBackgroundSegmentActive": {
|
|
3744
3728
|
"light": "{colorPrimary400}",
|
|
3745
3729
|
"dark": "{colorPrimary400}"
|
|
@@ -5053,18 +5037,10 @@ export var preset = {
|
|
|
5053
5037
|
"light": "{colorPrimary400}",
|
|
5054
5038
|
"dark": "{colorPrimary400}"
|
|
5055
5039
|
},
|
|
5056
|
-
"colorBackgroundProgressBarValueInFlash": {
|
|
5057
|
-
"light": "{colorWhite}",
|
|
5058
|
-
"dark": "{colorWhite}"
|
|
5059
|
-
},
|
|
5060
5040
|
"colorBackgroundProgressBarDefault": {
|
|
5061
5041
|
"light": "{colorNeutral700}",
|
|
5062
5042
|
"dark": "{colorNeutral700}"
|
|
5063
5043
|
},
|
|
5064
|
-
"colorBackgroundProgressBarInFlash": {
|
|
5065
|
-
"light": "{colorGreyOpaque25}",
|
|
5066
|
-
"dark": "{colorGreyOpaque25}"
|
|
5067
|
-
},
|
|
5068
5044
|
"colorBackgroundSegmentActive": {
|
|
5069
5045
|
"light": "{colorPrimary400}",
|
|
5070
5046
|
"dark": "{colorPrimary400}"
|
|
@@ -6311,18 +6287,10 @@ export var preset = {
|
|
|
6311
6287
|
"dark": "{colorNeutral800}"
|
|
6312
6288
|
},
|
|
6313
6289
|
"colorBackgroundProgressBarValueDefault": {
|
|
6314
|
-
"light": "{colorPrimary600}",
|
|
6315
|
-
"dark": "{colorPrimary400}"
|
|
6316
|
-
},
|
|
6317
|
-
"colorBackgroundProgressBarValueInFlash": {
|
|
6318
6290
|
"light": "{colorWhite}",
|
|
6319
6291
|
"dark": "{colorWhite}"
|
|
6320
6292
|
},
|
|
6321
6293
|
"colorBackgroundProgressBarDefault": {
|
|
6322
|
-
"light": "{colorNeutral250}",
|
|
6323
|
-
"dark": "{colorNeutral700}"
|
|
6324
|
-
},
|
|
6325
|
-
"colorBackgroundProgressBarInFlash": {
|
|
6326
6294
|
"light": "{colorGreyOpaque25}",
|
|
6327
6295
|
"dark": "{colorGreyOpaque25}"
|
|
6328
6296
|
},
|
|
@@ -7457,18 +7425,10 @@ export var preset = {
|
|
|
7457
7425
|
"dark": "{colorNeutral800}"
|
|
7458
7426
|
},
|
|
7459
7427
|
"colorBackgroundProgressBarValueDefault": {
|
|
7460
|
-
"light": "{colorPrimary600}",
|
|
7461
|
-
"dark": "{colorPrimary400}"
|
|
7462
|
-
},
|
|
7463
|
-
"colorBackgroundProgressBarValueInFlash": {
|
|
7464
7428
|
"light": "{colorNeutral950}",
|
|
7465
7429
|
"dark": "{colorNeutral950}"
|
|
7466
7430
|
},
|
|
7467
7431
|
"colorBackgroundProgressBarDefault": {
|
|
7468
|
-
"light": "{colorNeutral250}",
|
|
7469
|
-
"dark": "{colorNeutral700}"
|
|
7470
|
-
},
|
|
7471
|
-
"colorBackgroundProgressBarInFlash": {
|
|
7472
7432
|
"light": "{colorGreyOpaque10}",
|
|
7473
7433
|
"dark": "{colorGreyOpaque10}"
|
|
7474
7434
|
},
|
|
@@ -8606,18 +8566,10 @@ export var preset = {
|
|
|
8606
8566
|
"light": "{colorPrimary600}",
|
|
8607
8567
|
"dark": "{colorPrimary400}"
|
|
8608
8568
|
},
|
|
8609
|
-
"colorBackgroundProgressBarValueInFlash": {
|
|
8610
|
-
"light": "{colorWhite}",
|
|
8611
|
-
"dark": "{colorWhite}"
|
|
8612
|
-
},
|
|
8613
8569
|
"colorBackgroundProgressBarDefault": {
|
|
8614
8570
|
"light": "{colorNeutral250}",
|
|
8615
8571
|
"dark": "{colorNeutral700}"
|
|
8616
8572
|
},
|
|
8617
|
-
"colorBackgroundProgressBarInFlash": {
|
|
8618
|
-
"light": "{colorGreyOpaque25}",
|
|
8619
|
-
"dark": "{colorGreyOpaque25}"
|
|
8620
|
-
},
|
|
8621
8573
|
"colorBackgroundSegmentActive": {
|
|
8622
8574
|
"light": "{colorPrimary600}",
|
|
8623
8575
|
"dark": "{colorPrimary400}"
|
|
@@ -9754,18 +9706,10 @@ export var preset = {
|
|
|
9754
9706
|
"light": "{colorPrimary400}",
|
|
9755
9707
|
"dark": "{colorPrimary400}"
|
|
9756
9708
|
},
|
|
9757
|
-
"colorBackgroundProgressBarValueInFlash": {
|
|
9758
|
-
"light": "{colorWhite}",
|
|
9759
|
-
"dark": "{colorWhite}"
|
|
9760
|
-
},
|
|
9761
9709
|
"colorBackgroundProgressBarDefault": {
|
|
9762
9710
|
"light": "{colorNeutral700}",
|
|
9763
9711
|
"dark": "{colorNeutral700}"
|
|
9764
9712
|
},
|
|
9765
|
-
"colorBackgroundProgressBarInFlash": {
|
|
9766
|
-
"light": "{colorGreyOpaque25}",
|
|
9767
|
-
"dark": "{colorGreyOpaque25}"
|
|
9768
|
-
},
|
|
9769
9713
|
"colorBackgroundSegmentActive": {
|
|
9770
9714
|
"light": "{colorPrimary400}",
|
|
9771
9715
|
"dark": "{colorPrimary400}"
|
|
@@ -10963,9 +10907,7 @@ export var preset = {
|
|
|
10963
10907
|
"colorBackgroundNotificationStackBarHover": "color",
|
|
10964
10908
|
"colorBackgroundPopover": "color",
|
|
10965
10909
|
"colorBackgroundProgressBarValueDefault": "color",
|
|
10966
|
-
"colorBackgroundProgressBarValueInFlash": "color",
|
|
10967
10910
|
"colorBackgroundProgressBarDefault": "color",
|
|
10968
|
-
"colorBackgroundProgressBarInFlash": "color",
|
|
10969
10911
|
"colorBackgroundSegmentActive": "color",
|
|
10970
10912
|
"colorBackgroundSegmentDefault": "color",
|
|
10971
10913
|
"colorBackgroundSegmentDisabled": "color",
|
|
@@ -12599,9 +12541,7 @@ export var preset = {
|
|
|
12599
12541
|
"colorBackgroundNotificationStackBarHover": "color-background-notification-stack-bar-hover",
|
|
12600
12542
|
"colorBackgroundPopover": "color-background-popover",
|
|
12601
12543
|
"colorBackgroundProgressBarValueDefault": "color-background-progress-bar-value-default",
|
|
12602
|
-
"colorBackgroundProgressBarValueInFlash": "color-background-progress-bar-value-in-flash",
|
|
12603
12544
|
"colorBackgroundProgressBarDefault": "color-background-progress-bar-default",
|
|
12604
|
-
"colorBackgroundProgressBarInFlash": "color-background-progress-bar-in-flash",
|
|
12605
12545
|
"colorBackgroundSegmentActive": "color-background-segment-active",
|
|
12606
12546
|
"colorBackgroundSegmentDefault": "color-background-segment-default",
|
|
12607
12547
|
"colorBackgroundSegmentDisabled": "color-background-segment-disabled",
|
|
@@ -13419,10 +13359,8 @@ export var preset = {
|
|
|
13419
13359
|
"colorBackgroundNotificationStackBarActive": "--color-background-notification-stack-bar-active-a4h9r8",
|
|
13420
13360
|
"colorBackgroundNotificationStackBarHover": "--color-background-notification-stack-bar-hover-jh82oo",
|
|
13421
13361
|
"colorBackgroundPopover": "--color-background-popover-e20fy8",
|
|
13422
|
-
"colorBackgroundProgressBarValueDefault": "--color-background-progress-bar-value-default-
|
|
13423
|
-
"
|
|
13424
|
-
"colorBackgroundProgressBarDefault": "--color-background-progress-bar-default-4755ec",
|
|
13425
|
-
"colorBackgroundProgressBarInFlash": "--color-background-progress-bar-in-flash-f4k60b",
|
|
13362
|
+
"colorBackgroundProgressBarValueDefault": "--color-background-progress-bar-value-default-69ydqg",
|
|
13363
|
+
"colorBackgroundProgressBarDefault": "--color-background-progress-bar-default-j8kyxd",
|
|
13426
13364
|
"colorBackgroundSegmentActive": "--color-background-segment-active-1u2ldl",
|
|
13427
13365
|
"colorBackgroundSegmentDefault": "--color-background-segment-default-b0r494",
|
|
13428
13366
|
"colorBackgroundSegmentDisabled": "--color-background-segment-disabled-m2a5t7",
|
package/internal/manifest.json
CHANGED