@cloudscape-design/components 3.0.457 → 3.0.459

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/alert/styles.css.js +25 -25
  2. package/alert/styles.scoped.css +53 -59
  3. package/alert/styles.selectors.js +25 -25
  4. package/anchor-navigation/styles.css.js +8 -8
  5. package/anchor-navigation/styles.scoped.css +30 -39
  6. package/anchor-navigation/styles.selectors.js +8 -8
  7. package/annotation-context/annotation/styles.css.js +24 -24
  8. package/annotation-context/annotation/styles.scoped.css +48 -55
  9. package/annotation-context/annotation/styles.selectors.js +24 -24
  10. package/app-layout/content-wrapper/styles.css.js +3 -3
  11. package/app-layout/content-wrapper/styles.scoped.css +15 -15
  12. package/app-layout/content-wrapper/styles.selectors.js +3 -3
  13. package/app-layout/drawer/styles.css.js +12 -12
  14. package/app-layout/drawer/styles.scoped.css +30 -29
  15. package/app-layout/drawer/styles.selectors.js +12 -12
  16. package/app-layout/interfaces.d.ts +4 -3
  17. package/app-layout/interfaces.d.ts.map +1 -1
  18. package/app-layout/interfaces.js.map +1 -1
  19. package/app-layout/mobile-toolbar/styles.css.js +8 -8
  20. package/app-layout/mobile-toolbar/styles.scoped.css +17 -18
  21. package/app-layout/mobile-toolbar/styles.selectors.js +8 -8
  22. package/app-layout/notifications/styles.css.js +3 -3
  23. package/app-layout/notifications/styles.scoped.css +6 -6
  24. package/app-layout/notifications/styles.selectors.js +3 -3
  25. package/app-layout/split-panel/styles.css.js +2 -2
  26. package/app-layout/split-panel/styles.scoped.css +3 -3
  27. package/app-layout/split-panel/styles.selectors.js +2 -2
  28. package/app-layout/styles.css.js +16 -16
  29. package/app-layout/styles.scoped.css +26 -26
  30. package/app-layout/styles.selectors.js +16 -16
  31. package/app-layout/toggles/styles.css.js +2 -2
  32. package/app-layout/toggles/styles.scoped.css +9 -10
  33. package/app-layout/toggles/styles.selectors.js +2 -2
  34. package/app-layout/utils/use-drawers.js.map +1 -1
  35. package/app-layout/visual-refresh/context.js +1 -1
  36. package/app-layout/visual-refresh/context.js.map +1 -1
  37. package/app-layout/visual-refresh/styles.css.js +80 -80
  38. package/app-layout/visual-refresh/styles.scoped.css +251 -268
  39. package/app-layout/visual-refresh/styles.selectors.js +80 -80
  40. package/area-chart/styles.css.js +6 -6
  41. package/area-chart/styles.scoped.css +11 -12
  42. package/area-chart/styles.selectors.js +6 -6
  43. package/attribute-editor/styles.css.js +14 -14
  44. package/attribute-editor/styles.scoped.css +29 -30
  45. package/attribute-editor/styles.selectors.js +14 -14
  46. package/autosuggest/styles.css.js +3 -3
  47. package/autosuggest/styles.scoped.css +5 -5
  48. package/autosuggest/styles.selectors.js +3 -3
  49. package/badge/styles.css.js +5 -5
  50. package/badge/styles.scoped.css +7 -11
  51. package/badge/styles.selectors.js +5 -5
  52. package/bar-chart/index.d.ts +1 -1
  53. package/bar-chart/index.d.ts.map +1 -1
  54. package/bar-chart/index.js +2 -2
  55. package/bar-chart/index.js.map +1 -1
  56. package/bar-chart/interfaces.d.ts +3 -8
  57. package/bar-chart/interfaces.d.ts.map +1 -1
  58. package/bar-chart/interfaces.js.map +1 -1
  59. package/box/styles.css.js +190 -190
  60. package/box/styles.scoped.css +240 -244
  61. package/box/styles.selectors.js +190 -190
  62. package/breadcrumb-group/item/styles.css.js +9 -9
  63. package/breadcrumb-group/item/styles.scoped.css +19 -20
  64. package/breadcrumb-group/item/styles.selectors.js +9 -9
  65. package/breadcrumb-group/styles.css.js +7 -7
  66. package/breadcrumb-group/styles.scoped.css +21 -28
  67. package/breadcrumb-group/styles.selectors.js +7 -7
  68. package/button/styles.css.js +20 -20
  69. package/button/styles.scoped.css +153 -155
  70. package/button/styles.selectors.js +20 -20
  71. package/button-dropdown/category-elements/styles.css.js +13 -13
  72. package/button-dropdown/category-elements/styles.scoped.css +50 -60
  73. package/button-dropdown/category-elements/styles.selectors.js +13 -13
  74. package/button-dropdown/item-element/styles.css.js +15 -15
  75. package/button-dropdown/item-element/styles.scoped.css +33 -38
  76. package/button-dropdown/item-element/styles.selectors.js +15 -15
  77. package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
  78. package/button-dropdown/mobile-expandable-group/styles.scoped.css +8 -8
  79. package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
  80. package/button-dropdown/styles.css.js +15 -15
  81. package/button-dropdown/styles.scoped.css +36 -39
  82. package/button-dropdown/styles.selectors.js +15 -15
  83. package/calendar/styles.css.js +18 -18
  84. package/calendar/styles.scoped.css +59 -75
  85. package/calendar/styles.selectors.js +18 -18
  86. package/cards/styles.css.js +38 -38
  87. package/cards/styles.scoped.css +94 -110
  88. package/cards/styles.selectors.js +38 -38
  89. package/code-editor/resizable-box/styles.css.js +3 -3
  90. package/code-editor/resizable-box/styles.scoped.css +10 -10
  91. package/code-editor/resizable-box/styles.selectors.js +3 -3
  92. package/code-editor/styles.css.js +32 -32
  93. package/code-editor/styles.scoped.css +198 -210
  94. package/code-editor/styles.selectors.js +32 -32
  95. package/collection-preferences/content-display/styles.css.js +11 -11
  96. package/collection-preferences/content-display/styles.scoped.css +30 -40
  97. package/collection-preferences/content-display/styles.selectors.js +11 -11
  98. package/collection-preferences/styles.css.js +37 -37
  99. package/collection-preferences/styles.scoped.css +66 -79
  100. package/collection-preferences/styles.selectors.js +37 -37
  101. package/column-layout/flexible-column-layout/styles.css.js +5 -5
  102. package/column-layout/flexible-column-layout/styles.scoped.css +9 -8
  103. package/column-layout/flexible-column-layout/styles.selectors.js +5 -5
  104. package/column-layout/styles.css.js +13 -13
  105. package/column-layout/styles.scoped.css +64 -70
  106. package/column-layout/styles.selectors.js +13 -13
  107. package/container/styles.css.js +28 -28
  108. package/container/styles.scoped.css +98 -106
  109. package/container/styles.selectors.js +28 -28
  110. package/content-layout/styles.css.js +7 -7
  111. package/content-layout/styles.scoped.css +15 -15
  112. package/content-layout/styles.selectors.js +7 -7
  113. package/date-picker/styles.css.js +7 -7
  114. package/date-picker/styles.scoped.css +12 -12
  115. package/date-picker/styles.selectors.js +7 -7
  116. package/date-range-picker/calendar/grids/styles.css.js +25 -25
  117. package/date-range-picker/calendar/grids/styles.scoped.css +60 -71
  118. package/date-range-picker/calendar/grids/styles.selectors.js +25 -25
  119. package/date-range-picker/relative-range/styles.css.js +9 -9
  120. package/date-range-picker/relative-range/styles.scoped.css +21 -21
  121. package/date-range-picker/relative-range/styles.selectors.js +9 -9
  122. package/date-range-picker/styles.css.js +38 -38
  123. package/date-range-picker/styles.scoped.css +68 -73
  124. package/date-range-picker/styles.selectors.js +38 -38
  125. package/drawer/styles.css.js +3 -3
  126. package/drawer/styles.scoped.css +18 -21
  127. package/drawer/styles.selectors.js +3 -3
  128. package/expandable-section/expandable-section-container.d.ts +2 -2
  129. package/expandable-section/expandable-section-container.d.ts.map +1 -1
  130. package/expandable-section/expandable-section-container.js.map +1 -1
  131. package/expandable-section/expandable-section-header.d.ts +2 -3
  132. package/expandable-section/expandable-section-header.d.ts.map +1 -1
  133. package/expandable-section/expandable-section-header.js +11 -7
  134. package/expandable-section/expandable-section-header.js.map +1 -1
  135. package/expandable-section/interfaces.d.ts +1 -0
  136. package/expandable-section/interfaces.d.ts.map +1 -1
  137. package/expandable-section/interfaces.js.map +1 -1
  138. package/expandable-section/internal.d.ts +4 -2
  139. package/expandable-section/internal.d.ts.map +1 -1
  140. package/expandable-section/internal.js.map +1 -1
  141. package/expandable-section/styles.css.js +32 -29
  142. package/expandable-section/styles.scoped.css +106 -99
  143. package/expandable-section/styles.selectors.js +32 -29
  144. package/expandable-section/utils.d.ts +3 -2
  145. package/expandable-section/utils.d.ts.map +1 -1
  146. package/expandable-section/utils.js +4 -1
  147. package/expandable-section/utils.js.map +1 -1
  148. package/file-upload/dropzone/styles.css.js +2 -2
  149. package/file-upload/dropzone/styles.scoped.css +4 -8
  150. package/file-upload/dropzone/styles.selectors.js +2 -2
  151. package/file-upload/file-option/styles.css.js +7 -7
  152. package/file-upload/file-option/styles.scoped.css +15 -15
  153. package/file-upload/file-option/styles.selectors.js +7 -7
  154. package/file-upload/styles.css.js +2 -2
  155. package/file-upload/styles.scoped.css +4 -4
  156. package/file-upload/styles.selectors.js +2 -2
  157. package/flashbar/styles.css.js +47 -47
  158. package/flashbar/styles.scoped.css +215 -220
  159. package/flashbar/styles.selectors.js +47 -47
  160. package/form/styles.css.js +9 -9
  161. package/form/styles.scoped.css +18 -18
  162. package/form/styles.selectors.js +9 -9
  163. package/form-field/styles.css.js +19 -19
  164. package/form-field/styles.scoped.css +34 -34
  165. package/form-field/styles.selectors.js +19 -19
  166. package/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
  167. package/internal/components/cartesian-chart/interfaces.js.map +1 -1
  168. package/internal/components/chart-plot/index.d.ts +1 -1
  169. package/internal/components/chart-plot/index.d.ts.map +1 -1
  170. package/internal/components/chart-plot/index.js.map +1 -1
  171. package/internal/components/chart-series-details/index.d.ts +12 -4
  172. package/internal/components/chart-series-details/index.d.ts.map +1 -1
  173. package/internal/components/chart-series-details/index.js +46 -10
  174. package/internal/components/chart-series-details/index.js.map +1 -1
  175. package/internal/components/chart-series-details/series-details-text.d.ts +2 -0
  176. package/internal/components/chart-series-details/series-details-text.d.ts.map +1 -0
  177. package/internal/components/chart-series-details/series-details-text.js +17 -0
  178. package/internal/components/chart-series-details/series-details-text.js.map +1 -0
  179. package/internal/components/chart-series-details/styles.css.js +19 -5
  180. package/internal/components/chart-series-details/styles.scoped.css +141 -15
  181. package/internal/components/chart-series-details/styles.selectors.js +19 -5
  182. package/internal/environment.js +1 -1
  183. package/internal/environment.json +1 -1
  184. package/internal/manifest.json +1 -1
  185. package/line-chart/interfaces.d.ts +2 -8
  186. package/line-chart/interfaces.d.ts.map +1 -1
  187. package/line-chart/interfaces.js.map +1 -1
  188. package/mixed-line-bar-chart/chart-container.d.ts +2 -1
  189. package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  190. package/mixed-line-bar-chart/chart-container.js +17 -8
  191. package/mixed-line-bar-chart/chart-container.js.map +1 -1
  192. package/mixed-line-bar-chart/chart-popover.d.ts +1 -0
  193. package/mixed-line-bar-chart/chart-popover.d.ts.map +1 -1
  194. package/mixed-line-bar-chart/chart-popover.js +13 -3
  195. package/mixed-line-bar-chart/chart-popover.js.map +1 -1
  196. package/mixed-line-bar-chart/format-highlighted.d.ts +7 -2
  197. package/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
  198. package/mixed-line-bar-chart/format-highlighted.js +25 -5
  199. package/mixed-line-bar-chart/format-highlighted.js.map +1 -1
  200. package/mixed-line-bar-chart/interfaces.d.ts +38 -6
  201. package/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  202. package/mixed-line-bar-chart/interfaces.js.map +1 -1
  203. package/mixed-line-bar-chart/internal.d.ts +1 -1
  204. package/mixed-line-bar-chart/internal.d.ts.map +1 -1
  205. package/mixed-line-bar-chart/internal.js +2 -2
  206. package/mixed-line-bar-chart/internal.js.map +1 -1
  207. package/modal/styles.css.js +23 -23
  208. package/modal/styles.scoped.css +39 -39
  209. package/modal/styles.selectors.js +23 -23
  210. package/package.json +1 -1
  211. package/pie-chart/interfaces.d.ts +5 -5
  212. package/pie-chart/interfaces.d.ts.map +1 -1
  213. package/pie-chart/interfaces.js.map +1 -1
  214. package/pie-chart/pie-chart.d.ts +1 -1
  215. package/pie-chart/pie-chart.d.ts.map +1 -1
  216. package/pie-chart/pie-chart.js +21 -18
  217. package/pie-chart/pie-chart.js.map +1 -1
  218. package/table/column-widths-utils.d.ts +1 -0
  219. package/table/column-widths-utils.d.ts.map +1 -1
  220. package/table/column-widths-utils.js +18 -0
  221. package/table/column-widths-utils.js.map +1 -1
  222. package/table/internal.d.ts.map +1 -1
  223. package/table/internal.js +7 -6
  224. package/table/internal.js.map +1 -1
  225. package/table/no-data-cell.d.ts +13 -0
  226. package/table/no-data-cell.d.ts.map +1 -0
  227. package/table/no-data-cell.js +24 -0
  228. package/table/no-data-cell.js.map +1 -0
  229. package/table/sticky-columns/use-sticky-columns.js +1 -1
  230. package/table/sticky-columns/use-sticky-columns.js.map +1 -1
  231. package/table/thead.d.ts +0 -1
  232. package/table/thead.d.ts.map +1 -1
  233. package/table/thead.js +3 -18
  234. package/table/thead.js.map +1 -1
  235. package/table/use-column-widths.d.ts +5 -3
  236. package/table/use-column-widths.d.ts.map +1 -1
  237. package/table/use-column-widths.js +61 -11
  238. package/table/use-column-widths.js.map +1 -1
  239. package/table/use-sticky-header.d.ts.map +1 -1
  240. package/table/use-sticky-header.js +0 -13
  241. package/table/use-sticky-header.js.map +1 -1
  242. package/test-utils/dom/internal/chart-popover.d.ts +8 -0
  243. package/test-utils/dom/internal/chart-popover.js +23 -0
  244. package/test-utils/dom/internal/chart-popover.js.map +1 -1
  245. package/test-utils/selectors/internal/chart-popover.d.ts +8 -0
  246. package/test-utils/selectors/internal/chart-popover.js +22 -0
  247. package/test-utils/selectors/internal/chart-popover.js.map +1 -1
  248. package/test-utils/tsconfig.tsbuildinfo +1 -1
  249. package/tiles/styles.css.js +29 -29
  250. package/tiles/styles.scoped.css +91 -97
  251. package/tiles/styles.selectors.js +29 -29
  252. package/table/node-data-cell.d.ts +0 -15
  253. package/table/node-data-cell.d.ts.map +0 -1
  254. package/table/node-data-cell.js +0 -25
  255. package/table/node-data-cell.js.map +0 -1
@@ -20,7 +20,7 @@ import { nodeBelongs } from '../internal/utils/node-belongs';
20
20
  import Filter from '../internal/components/chart-filter';
21
21
  import { ChartWrapper } from '../internal/components/chart-wrapper';
22
22
  export default function InternalMixedLineBarChart(_a) {
23
- var { fitHeight, height, xScaleType, yScaleType, xDomain, yDomain, xTickFormatter, yTickFormatter, highlightedSeries: controlledHighlightedSeries, visibleSeries: controlledVisibleSeries, series: externalSeries, onFilterChange, onHighlightChange: controlledOnHighlightChange, i18nStrings, ariaLabel, ariaLabelledby, ariaDescription, xTitle, yTitle, stackedBars, horizontalBars, hideFilter, additionalFilters, hideLegend, legendTitle, statusType, detailPopoverSize, detailPopoverFooter, emphasizeBaselineAxis, empty, noMatch, errorText, loadingText, recoveryText, onRecoveryClick, __internalRootRef = null } = _a, props = __rest(_a, ["fitHeight", "height", "xScaleType", "yScaleType", "xDomain", "yDomain", "xTickFormatter", "yTickFormatter", "highlightedSeries", "visibleSeries", "series", "onFilterChange", "onHighlightChange", "i18nStrings", "ariaLabel", "ariaLabelledby", "ariaDescription", "xTitle", "yTitle", "stackedBars", "horizontalBars", "hideFilter", "additionalFilters", "hideLegend", "legendTitle", "statusType", "detailPopoverSize", "detailPopoverFooter", "emphasizeBaselineAxis", "empty", "noMatch", "errorText", "loadingText", "recoveryText", "onRecoveryClick", "__internalRootRef"]);
23
+ var { fitHeight, height, xScaleType, yScaleType, xDomain, yDomain, xTickFormatter, yTickFormatter, highlightedSeries: controlledHighlightedSeries, visibleSeries: controlledVisibleSeries, series: externalSeries, onFilterChange, onHighlightChange: controlledOnHighlightChange, i18nStrings, ariaLabel, ariaLabelledby, ariaDescription, xTitle, yTitle, stackedBars, horizontalBars, hideFilter, additionalFilters, hideLegend, legendTitle, statusType, detailPopoverSize, detailPopoverFooter, detailPopoverSeriesContent, emphasizeBaselineAxis, empty, noMatch, errorText, loadingText, recoveryText, onRecoveryClick, __internalRootRef = null } = _a, props = __rest(_a, ["fitHeight", "height", "xScaleType", "yScaleType", "xDomain", "yDomain", "xTickFormatter", "yTickFormatter", "highlightedSeries", "visibleSeries", "series", "onFilterChange", "onHighlightChange", "i18nStrings", "ariaLabel", "ariaLabelledby", "ariaDescription", "xTitle", "yTitle", "stackedBars", "horizontalBars", "hideFilter", "additionalFilters", "hideLegend", "legendTitle", "statusType", "detailPopoverSize", "detailPopoverFooter", "detailPopoverSeriesContent", "emphasizeBaselineAxis", "empty", "noMatch", "errorText", "loadingText", "recoveryText", "onRecoveryClick", "__internalRootRef"]);
24
24
  const baseProps = getBaseProps(props);
25
25
  const containerRef = useRef(null);
26
26
  useEffect(() => {
@@ -112,6 +112,6 @@ export default function InternalMixedLineBarChart(_a) {
112
112
  color,
113
113
  datum: series,
114
114
  }));
115
- return (React.createElement(ChartWrapper, Object.assign({ ref: mergedRef }, baseProps, { className: clsx(baseProps.className, styles.root), fitHeight: !!fitHeight, contentMinHeight: height, defaultFilter: showFilters && !hideFilter ? (React.createElement(Filter, { series: filterItems, onChange: filterChange, selectedSeries: externalVisibleSeries || [], i18nStrings: i18nStrings })) : null, additionalFilters: showFilters ? additionalFilters : null, reserveFilterSpace: !!reserveFilterSpace, reserveLegendSpace: !!reserveLegendSpace, chartStatus: React.createElement(ChartStatusContainer, { isEmpty: isEmpty, isNoMatch: isNoMatch, showChart: showChart, statusType: statusType, empty: empty, noMatch: noMatch, loadingText: loadingText, errorText: errorText, recoveryText: recoveryText, onRecoveryClick: onRecoveryClick }), chart: showChart ? (React.createElement(ChartContainer, { fitHeight: fitHeight, height: height, xScaleType: xScaleType, yScaleType: yScaleType, xDomain: xDomain, yDomain: yDomain, xTickFormatter: xTickFormatter !== null && xTickFormatter !== void 0 ? xTickFormatter : i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.xTickFormatter, yTickFormatter: yTickFormatter !== null && yTickFormatter !== void 0 ? yTickFormatter : i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.yTickFormatter, emphasizeBaselineAxis: emphasizeBaselineAxis, stackedBars: stackedBars, horizontalBars: horizontalBars, series: series, visibleSeries: visibleSeries, highlightedSeries: highlightedSeries, onHighlightChange: onHighlightChange, highlightedPoint: highlightedPoint, setHighlightedPoint: setHighlightedPoint, highlightedGroupIndex: highlightedGroupIndex, setHighlightedGroupIndex: setHighlightedGroupIndex, detailPopoverSize: detailPopoverSize, detailPopoverFooter: detailPopoverFooter, xTitle: xTitle, yTitle: yTitle, ariaLabel: ariaLabel, ariaLabelledby: ariaLabelledby, ariaDescription: ariaDescription, i18nStrings: i18nStrings, plotContainerRef: containerRef })) : null, legend: showLegend ? (React.createElement(InternalChartLegend, { series: series, visibleSeries: externalVisibleSeries || [], highlightedSeries: legendSeries, onHighlightChange: onHighlightChange, legendTitle: legendTitle, ariaLabel: i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.legendAriaLabel, plotContainerRef: containerRef })) : null, onBlur: onBlur })));
115
+ return (React.createElement(ChartWrapper, Object.assign({ ref: mergedRef }, baseProps, { className: clsx(baseProps.className, styles.root), fitHeight: !!fitHeight, contentMinHeight: height, defaultFilter: showFilters && !hideFilter ? (React.createElement(Filter, { series: filterItems, onChange: filterChange, selectedSeries: externalVisibleSeries || [], i18nStrings: i18nStrings })) : null, additionalFilters: showFilters ? additionalFilters : null, reserveFilterSpace: !!reserveFilterSpace, reserveLegendSpace: !!reserveLegendSpace, chartStatus: React.createElement(ChartStatusContainer, { isEmpty: isEmpty, isNoMatch: isNoMatch, showChart: showChart, statusType: statusType, empty: empty, noMatch: noMatch, loadingText: loadingText, errorText: errorText, recoveryText: recoveryText, onRecoveryClick: onRecoveryClick }), chart: showChart ? (React.createElement(ChartContainer, { fitHeight: fitHeight, height: height, xScaleType: xScaleType, yScaleType: yScaleType, xDomain: xDomain, yDomain: yDomain, xTickFormatter: xTickFormatter !== null && xTickFormatter !== void 0 ? xTickFormatter : i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.xTickFormatter, yTickFormatter: yTickFormatter !== null && yTickFormatter !== void 0 ? yTickFormatter : i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.yTickFormatter, emphasizeBaselineAxis: emphasizeBaselineAxis, stackedBars: stackedBars, horizontalBars: horizontalBars, series: series, visibleSeries: visibleSeries, highlightedSeries: highlightedSeries, onHighlightChange: onHighlightChange, highlightedPoint: highlightedPoint, setHighlightedPoint: setHighlightedPoint, highlightedGroupIndex: highlightedGroupIndex, setHighlightedGroupIndex: setHighlightedGroupIndex, detailPopoverSize: detailPopoverSize, detailPopoverFooter: detailPopoverFooter, detailPopoverSeriesContent: detailPopoverSeriesContent, xTitle: xTitle, yTitle: yTitle, ariaLabel: ariaLabel, ariaLabelledby: ariaLabelledby, ariaDescription: ariaDescription, i18nStrings: i18nStrings, plotContainerRef: containerRef })) : null, legend: showLegend ? (React.createElement(InternalChartLegend, { series: series, visibleSeries: externalVisibleSeries || [], highlightedSeries: legendSeries, onHighlightChange: onHighlightChange, legendTitle: legendTitle, ariaLabel: i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.legendAriaLabel, plotContainerRef: containerRef })) : null, onBlur: onBlur })));
116
116
  }
117
117
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["mixed-line-bar-chart/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,oBAAoB,EAAE,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AACrG,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAGzE,OAAO,mBAAmB,MAAM,gBAAgB,CAAC;AACjD,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,wBAAwB,MAAM,+CAA+C,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE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AAiB,EAAE,YAAY,EAC/B,iBAAiB,EAAE,iBAAiB,EACpC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,eAAe,EACvC,gBAAgB,EAAE,YAAY,GAC9B,CACH,CAAC,CAAC,CAAC,IAAI,EAEV,MAAM,EAAE,MAAM,IACd,CACH,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport ChartStatusContainer, { getChartStatus } from '../internal/components/chart-status-container';\nimport { useControllable } from '../internal/hooks/use-controllable';\nimport { usePrevious } from '../internal/hooks/use-previous';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { ChartDataTypes, MixedLineBarChartProps } from './interfaces';\nimport InternalChartLegend from './chart-legend';\nimport ChartContainer from './chart-container';\nimport styles from './styles.css.js';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { isDevelopment } from '../internal/is-development';\nimport createCategoryColorScale from '../internal/utils/create-category-color-scale';\nimport { ScaledPoint } from './make-scaled-series';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { SomeRequired } from '../internal/types';\nimport { chartLegendMap, isXThreshold, isYThreshold } from './utils';\nimport { nodeBelongs } from '../internal/utils/node-belongs';\nimport Filter from '../internal/components/chart-filter';\nimport { ChartWrapper } from '../internal/components/chart-wrapper';\n\ntype InternalMixedLineBarChartProps<T extends ChartDataTypes> = SomeRequired<\n MixedLineBarChartProps<T>,\n | 'series'\n | 'height'\n | 'xScaleType'\n | 'yScaleType'\n | 'stackedBars'\n | 'horizontalBars'\n | 'statusType'\n | 'detailPopoverSize'\n | 'emphasizeBaselineAxis'\n> &\n InternalBaseComponentProps;\n\nexport default function InternalMixedLineBarChart<T extends number | string | Date>({\n fitHeight,\n height,\n xScaleType,\n yScaleType,\n xDomain,\n yDomain,\n xTickFormatter,\n yTickFormatter,\n highlightedSeries: controlledHighlightedSeries,\n visibleSeries: controlledVisibleSeries,\n series: externalSeries,\n onFilterChange,\n onHighlightChange: controlledOnHighlightChange,\n i18nStrings,\n ariaLabel,\n ariaLabelledby,\n ariaDescription,\n xTitle,\n yTitle,\n stackedBars,\n horizontalBars,\n hideFilter,\n additionalFilters,\n hideLegend,\n legendTitle,\n statusType,\n detailPopoverSize,\n detailPopoverFooter,\n emphasizeBaselineAxis,\n empty,\n noMatch,\n errorText,\n loadingText,\n recoveryText,\n onRecoveryClick,\n __internalRootRef = null,\n ...props\n}: InternalMixedLineBarChartProps<T>) {\n const baseProps = getBaseProps(props);\n const containerRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const gotBarSeries = externalSeries.some(s => s.type === 'bar');\n const gotLineSeries = externalSeries.some(s => s.type === 'line');\n\n if (xScaleType !== 'categorical' && gotBarSeries) {\n warnOnce(\n 'MixedLineBarChart',\n `Bar series cannot be used with a ${xScaleType} scale. Use a categorical x axis instead.`\n );\n }\n\n if (horizontalBars && gotLineSeries) {\n warnOnce(\n 'MixedLineBarChart',\n `Property horizontalBars can only be used with charts that contain only bar or threshold series.`\n );\n }\n\n for (const s of externalSeries) {\n if (s.type === 'threshold' && s.x !== undefined && s.y !== undefined) {\n warnOnce('MixedLineBarChart', `Series of type \"threshold\" must contain either x or y property.`);\n }\n if (s.type === 'threshold' && s.x === undefined && s.y === undefined) {\n warnOnce('MixedLineBarChart', `Series of type \"threshold\" must contain either x or y property.`);\n }\n }\n }, [xScaleType, horizontalBars, externalSeries]);\n\n const series = useMemo(() => {\n // Generate series colors if not explicitly provided.\n // The thresholds use a dedicated colour scale.\n const colors = createCategoryColorScale(\n externalSeries,\n it => isYThreshold(it) || isXThreshold(it),\n it => it.color || null\n );\n\n return externalSeries.map((s, i) => ({ index: i, color: colors[i], series: s }));\n }, [externalSeries]);\n\n const [highlightedPoint, setHighlightedPoint] = useState<ScaledPoint<T> | null>(null);\n const [highlightedGroupIndex, setHighlightedGroupIndex] = useState<number | null>(null);\n const [highlightedSeries = null, setHighlightedSeries] = useControllable(\n controlledHighlightedSeries,\n controlledOnHighlightChange,\n null,\n {\n componentName: 'MixedLineBarChart',\n controlledProp: 'highlightedSeries',\n changeHandler: 'onHighlightChange',\n }\n );\n const [legendSeries, setLegendSeries] = useState<MixedLineBarChartProps.ChartSeries<T> | null>(highlightedSeries);\n useEffect(() => {\n setLegendSeries(controlledHighlightedSeries || null);\n }, [controlledHighlightedSeries]);\n\n const [externalVisibleSeries, setExternalVisibleSeries] = useControllable(\n controlledVisibleSeries,\n onFilterChange,\n externalSeries,\n {\n componentName: 'MixedLineBarChart',\n controlledProp: 'visibleSeries',\n changeHandler: 'onFilterChange',\n }\n );\n\n if (isDevelopment) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const previousSeries = usePrevious(externalSeries);\n\n const hasPrevious = !!(previousSeries && previousSeries.length);\n const hasCurrent = !!externalSeries.length;\n\n if (hasPrevious && hasCurrent && externalSeries !== previousSeries && !controlledVisibleSeries && !hideFilter) {\n warnOnce(\n 'MixedLineBarChart',\n 'The `series` value passed into the component changed. ' +\n 'This may cause problems with filtering - we recommend that you make the `series` value constant, ' +\n 'or provide a `visibleSeries` value that derives from the current `series` value.'\n );\n }\n }\n\n const visibleSeries = useMemo(\n () => series.filter(s => externalVisibleSeries?.indexOf(s.series) !== -1),\n [series, externalVisibleSeries]\n );\n\n const filterChange = (selectedSeries: ReadonlyArray<MixedLineBarChartProps.ChartSeries<T>>) => {\n setExternalVisibleSeries(selectedSeries);\n fireNonCancelableEvent(onFilterChange, {\n visibleSeries: selectedSeries,\n });\n };\n\n const onHighlightChange = (series: MixedLineBarChartProps.ChartSeries<T> | null) => {\n setHighlightedSeries(series);\n fireNonCancelableEvent(controlledOnHighlightChange, {\n highlightedSeries: series,\n });\n setLegendSeries(series);\n };\n\n const onBlur = (event: React.FocusEvent) => {\n if (event.relatedTarget && !nodeBelongs(containerRef.current, event.relatedTarget)) {\n highlightedSeries && onHighlightChange(highlightedSeries);\n setHighlightedPoint(null);\n setHighlightedGroupIndex(null);\n setLegendSeries(null);\n }\n };\n\n const { isEmpty, isNoMatch, showChart } = getChartStatus({\n externalData: externalSeries,\n visibleData: visibleSeries || [],\n statusType,\n });\n const showFilters = statusType === 'finished' && (!isEmpty || isNoMatch) && (additionalFilters || !hideFilter);\n const showLegend = !hideLegend && !isEmpty && statusType === 'finished';\n const reserveLegendSpace = !showChart && !hideLegend;\n const reserveFilterSpace = !showChart && !isNoMatch && (!hideFilter || additionalFilters);\n const mergedRef = useMergeRefs(containerRef, __internalRootRef);\n\n const filterItems = series.map(({ series, color }) => ({\n label: series.title,\n type: chartLegendMap[series.type],\n color,\n datum: series,\n }));\n\n return (\n <ChartWrapper\n ref={mergedRef}\n {...baseProps}\n className={clsx(baseProps.className, styles.root)}\n fitHeight={!!fitHeight}\n contentMinHeight={height}\n defaultFilter={\n showFilters && !hideFilter ? (\n <Filter\n series={filterItems}\n onChange={filterChange}\n selectedSeries={externalVisibleSeries || []}\n i18nStrings={i18nStrings}\n />\n ) : null\n }\n additionalFilters={showFilters ? additionalFilters : null}\n reserveFilterSpace={!!reserveFilterSpace}\n reserveLegendSpace={!!reserveLegendSpace}\n chartStatus={\n <ChartStatusContainer\n isEmpty={isEmpty}\n isNoMatch={isNoMatch}\n showChart={showChart}\n statusType={statusType}\n empty={empty}\n noMatch={noMatch}\n loadingText={loadingText}\n errorText={errorText}\n recoveryText={recoveryText}\n onRecoveryClick={onRecoveryClick}\n />\n }\n chart={\n showChart ? (\n <ChartContainer\n fitHeight={fitHeight}\n height={height}\n xScaleType={xScaleType}\n yScaleType={yScaleType}\n xDomain={xDomain}\n yDomain={yDomain}\n xTickFormatter={xTickFormatter ?? i18nStrings?.xTickFormatter}\n yTickFormatter={yTickFormatter ?? i18nStrings?.yTickFormatter}\n emphasizeBaselineAxis={emphasizeBaselineAxis}\n stackedBars={stackedBars}\n horizontalBars={horizontalBars}\n series={series}\n visibleSeries={visibleSeries}\n highlightedSeries={highlightedSeries}\n onHighlightChange={onHighlightChange}\n highlightedPoint={highlightedPoint}\n setHighlightedPoint={setHighlightedPoint}\n highlightedGroupIndex={highlightedGroupIndex}\n setHighlightedGroupIndex={setHighlightedGroupIndex}\n detailPopoverSize={detailPopoverSize}\n detailPopoverFooter={detailPopoverFooter}\n xTitle={xTitle}\n yTitle={yTitle}\n ariaLabel={ariaLabel}\n ariaLabelledby={ariaLabelledby}\n ariaDescription={ariaDescription}\n i18nStrings={i18nStrings}\n plotContainerRef={containerRef}\n />\n ) : null\n }\n legend={\n showLegend ? (\n <InternalChartLegend\n series={series}\n visibleSeries={externalVisibleSeries || []}\n highlightedSeries={legendSeries}\n onHighlightChange={onHighlightChange}\n legendTitle={legendTitle}\n ariaLabel={i18nStrings?.legendAriaLabel}\n plotContainerRef={containerRef}\n />\n ) : null\n }\n onBlur={onBlur}\n />\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["mixed-line-bar-chart/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,oBAAoB,EAAE,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AACrG,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,+CA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D,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,mBAAmB,EACxC,0BAA0B,EAAE,0BAA0B,EACtD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,YAAY,GAC9B,CACH,CAAC,CAAC,CAAC,IAAI,EAEV,MAAM,EACJ,UAAU,CAAC,CAAC,CAAC,CACX,oBAAC,mBAAmB,IAClB,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,qBAAqB,IAAI,EAAE,EAC1C,iBAAiB,EAAE,YAAY,EAC/B,iBAAiB,EAAE,iBAAiB,EACpC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,eAAe,EACvC,gBAAgB,EAAE,YAAY,GAC9B,CACH,CAAC,CAAC,CAAC,IAAI,EAEV,MAAM,EAAE,MAAM,IACd,CACH,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport ChartStatusContainer, { getChartStatus } from '../internal/components/chart-status-container';\nimport { useControllable } from '../internal/hooks/use-controllable';\nimport { usePrevious } from '../internal/hooks/use-previous';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { ChartDataTypes, MixedLineBarChartProps } from './interfaces';\nimport InternalChartLegend from './chart-legend';\nimport ChartContainer from './chart-container';\nimport styles from './styles.css.js';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { isDevelopment } from '../internal/is-development';\nimport createCategoryColorScale from '../internal/utils/create-category-color-scale';\nimport { ScaledPoint } from './make-scaled-series';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { SomeRequired } from '../internal/types';\nimport { chartLegendMap, isXThreshold, isYThreshold } from './utils';\nimport { nodeBelongs } from '../internal/utils/node-belongs';\nimport Filter from '../internal/components/chart-filter';\nimport { ChartWrapper } from '../internal/components/chart-wrapper';\n\ntype InternalMixedLineBarChartProps<T extends ChartDataTypes> = SomeRequired<\n MixedLineBarChartProps<T>,\n | 'series'\n | 'height'\n | 'xScaleType'\n | 'yScaleType'\n | 'stackedBars'\n | 'horizontalBars'\n | 'statusType'\n | 'detailPopoverSize'\n | 'emphasizeBaselineAxis'\n> &\n InternalBaseComponentProps;\n\nexport default function InternalMixedLineBarChart<T extends number | string | Date>({\n fitHeight,\n height,\n xScaleType,\n yScaleType,\n xDomain,\n yDomain,\n xTickFormatter,\n yTickFormatter,\n highlightedSeries: controlledHighlightedSeries,\n visibleSeries: controlledVisibleSeries,\n series: externalSeries,\n onFilterChange,\n onHighlightChange: controlledOnHighlightChange,\n i18nStrings,\n ariaLabel,\n ariaLabelledby,\n ariaDescription,\n xTitle,\n yTitle,\n stackedBars,\n horizontalBars,\n hideFilter,\n additionalFilters,\n hideLegend,\n legendTitle,\n statusType,\n detailPopoverSize,\n detailPopoverFooter,\n detailPopoverSeriesContent,\n emphasizeBaselineAxis,\n empty,\n noMatch,\n errorText,\n loadingText,\n recoveryText,\n onRecoveryClick,\n __internalRootRef = null,\n ...props\n}: InternalMixedLineBarChartProps<T>) {\n const baseProps = getBaseProps(props);\n const containerRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const gotBarSeries = externalSeries.some(s => s.type === 'bar');\n const gotLineSeries = externalSeries.some(s => s.type === 'line');\n\n if (xScaleType !== 'categorical' && gotBarSeries) {\n warnOnce(\n 'MixedLineBarChart',\n `Bar series cannot be used with a ${xScaleType} scale. Use a categorical x axis instead.`\n );\n }\n\n if (horizontalBars && gotLineSeries) {\n warnOnce(\n 'MixedLineBarChart',\n `Property horizontalBars can only be used with charts that contain only bar or threshold series.`\n );\n }\n\n for (const s of externalSeries) {\n if (s.type === 'threshold' && s.x !== undefined && s.y !== undefined) {\n warnOnce('MixedLineBarChart', `Series of type \"threshold\" must contain either x or y property.`);\n }\n if (s.type === 'threshold' && s.x === undefined && s.y === undefined) {\n warnOnce('MixedLineBarChart', `Series of type \"threshold\" must contain either x or y property.`);\n }\n }\n }, [xScaleType, horizontalBars, externalSeries]);\n\n const series = useMemo(() => {\n // Generate series colors if not explicitly provided.\n // The thresholds use a dedicated colour scale.\n const colors = createCategoryColorScale(\n externalSeries,\n it => isYThreshold(it) || isXThreshold(it),\n it => it.color || null\n );\n\n return externalSeries.map((s, i) => ({ index: i, color: colors[i], series: s }));\n }, [externalSeries]);\n\n const [highlightedPoint, setHighlightedPoint] = useState<ScaledPoint<T> | null>(null);\n const [highlightedGroupIndex, setHighlightedGroupIndex] = useState<number | null>(null);\n const [highlightedSeries = null, setHighlightedSeries] = useControllable(\n controlledHighlightedSeries,\n controlledOnHighlightChange,\n null,\n {\n componentName: 'MixedLineBarChart',\n controlledProp: 'highlightedSeries',\n changeHandler: 'onHighlightChange',\n }\n );\n const [legendSeries, setLegendSeries] = useState<MixedLineBarChartProps.ChartSeries<T> | null>(highlightedSeries);\n useEffect(() => {\n setLegendSeries(controlledHighlightedSeries || null);\n }, [controlledHighlightedSeries]);\n\n const [externalVisibleSeries, setExternalVisibleSeries] = useControllable(\n controlledVisibleSeries,\n onFilterChange,\n externalSeries,\n {\n componentName: 'MixedLineBarChart',\n controlledProp: 'visibleSeries',\n changeHandler: 'onFilterChange',\n }\n );\n\n if (isDevelopment) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const previousSeries = usePrevious(externalSeries);\n\n const hasPrevious = !!(previousSeries && previousSeries.length);\n const hasCurrent = !!externalSeries.length;\n\n if (hasPrevious && hasCurrent && externalSeries !== previousSeries && !controlledVisibleSeries && !hideFilter) {\n warnOnce(\n 'MixedLineBarChart',\n 'The `series` value passed into the component changed. ' +\n 'This may cause problems with filtering - we recommend that you make the `series` value constant, ' +\n 'or provide a `visibleSeries` value that derives from the current `series` value.'\n );\n }\n }\n\n const visibleSeries = useMemo(\n () => series.filter(s => externalVisibleSeries?.indexOf(s.series) !== -1),\n [series, externalVisibleSeries]\n );\n\n const filterChange = (selectedSeries: ReadonlyArray<MixedLineBarChartProps.ChartSeries<T>>) => {\n setExternalVisibleSeries(selectedSeries);\n fireNonCancelableEvent(onFilterChange, {\n visibleSeries: selectedSeries,\n });\n };\n\n const onHighlightChange = (series: MixedLineBarChartProps.ChartSeries<T> | null) => {\n setHighlightedSeries(series);\n fireNonCancelableEvent(controlledOnHighlightChange, {\n highlightedSeries: series,\n });\n setLegendSeries(series);\n };\n\n const onBlur = (event: React.FocusEvent) => {\n if (event.relatedTarget && !nodeBelongs(containerRef.current, event.relatedTarget)) {\n highlightedSeries && onHighlightChange(highlightedSeries);\n setHighlightedPoint(null);\n setHighlightedGroupIndex(null);\n setLegendSeries(null);\n }\n };\n\n const { isEmpty, isNoMatch, showChart } = getChartStatus({\n externalData: externalSeries,\n visibleData: visibleSeries || [],\n statusType,\n });\n const showFilters = statusType === 'finished' && (!isEmpty || isNoMatch) && (additionalFilters || !hideFilter);\n const showLegend = !hideLegend && !isEmpty && statusType === 'finished';\n const reserveLegendSpace = !showChart && !hideLegend;\n const reserveFilterSpace = !showChart && !isNoMatch && (!hideFilter || additionalFilters);\n const mergedRef = useMergeRefs(containerRef, __internalRootRef);\n\n const filterItems = series.map(({ series, color }) => ({\n label: series.title,\n type: chartLegendMap[series.type],\n color,\n datum: series,\n }));\n\n return (\n <ChartWrapper\n ref={mergedRef}\n {...baseProps}\n className={clsx(baseProps.className, styles.root)}\n fitHeight={!!fitHeight}\n contentMinHeight={height}\n defaultFilter={\n showFilters && !hideFilter ? (\n <Filter\n series={filterItems}\n onChange={filterChange}\n selectedSeries={externalVisibleSeries || []}\n i18nStrings={i18nStrings}\n />\n ) : null\n }\n additionalFilters={showFilters ? additionalFilters : null}\n reserveFilterSpace={!!reserveFilterSpace}\n reserveLegendSpace={!!reserveLegendSpace}\n chartStatus={\n <ChartStatusContainer\n isEmpty={isEmpty}\n isNoMatch={isNoMatch}\n showChart={showChart}\n statusType={statusType}\n empty={empty}\n noMatch={noMatch}\n loadingText={loadingText}\n errorText={errorText}\n recoveryText={recoveryText}\n onRecoveryClick={onRecoveryClick}\n />\n }\n chart={\n showChart ? (\n <ChartContainer\n fitHeight={fitHeight}\n height={height}\n xScaleType={xScaleType}\n yScaleType={yScaleType}\n xDomain={xDomain}\n yDomain={yDomain}\n xTickFormatter={xTickFormatter ?? i18nStrings?.xTickFormatter}\n yTickFormatter={yTickFormatter ?? i18nStrings?.yTickFormatter}\n emphasizeBaselineAxis={emphasizeBaselineAxis}\n stackedBars={stackedBars}\n horizontalBars={horizontalBars}\n series={series}\n visibleSeries={visibleSeries}\n highlightedSeries={highlightedSeries}\n onHighlightChange={onHighlightChange}\n highlightedPoint={highlightedPoint}\n setHighlightedPoint={setHighlightedPoint}\n highlightedGroupIndex={highlightedGroupIndex}\n setHighlightedGroupIndex={setHighlightedGroupIndex}\n detailPopoverSize={detailPopoverSize}\n detailPopoverFooter={detailPopoverFooter}\n detailPopoverSeriesContent={detailPopoverSeriesContent}\n xTitle={xTitle}\n yTitle={yTitle}\n ariaLabel={ariaLabel}\n ariaLabelledby={ariaLabelledby}\n ariaDescription={ariaDescription}\n i18nStrings={i18nStrings}\n plotContainerRef={containerRef}\n />\n ) : null\n }\n legend={\n showLegend ? (\n <InternalChartLegend\n series={series}\n visibleSeries={externalVisibleSeries || []}\n highlightedSeries={legendSeries}\n onHighlightChange={onHighlightChange}\n legendTitle={legendTitle}\n ariaLabel={i18nStrings?.legendAriaLabel}\n plotContainerRef={containerRef}\n />\n ) : null\n }\n onBlur={onBlur}\n />\n );\n}\n"]}
@@ -1,28 +1,28 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "dialog": "awsui_dialog_1d2i7_be01w_105",
5
- "modal-slide-up": "awsui_modal-slide-up_1d2i7_be01w_1",
6
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_be01w_1",
7
- "refresh": "awsui_refresh_1d2i7_be01w_128",
8
- "awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_be01w_1",
9
- "root": "awsui_root_1d2i7_be01w_161",
10
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_be01w_1",
11
- "hidden": "awsui_hidden_1d2i7_be01w_226",
12
- "focus-lock": "awsui_focus-lock_1d2i7_be01w_230",
13
- "small": "awsui_small_1d2i7_be01w_248",
14
- "medium": "awsui_medium_1d2i7_be01w_251",
15
- "large": "awsui_large_1d2i7_be01w_254",
16
- "max": "awsui_max_1d2i7_be01w_257",
17
- "breakpoint-xs": "awsui_breakpoint-xs_1d2i7_be01w_257",
18
- "container": "awsui_container_1d2i7_be01w_262",
19
- "content": "awsui_content_1d2i7_be01w_281",
20
- "no-paddings": "awsui_no-paddings_1d2i7_be01w_284",
21
- "header": "awsui_header_1d2i7_be01w_288",
22
- "header--text": "awsui_header--text_1d2i7_be01w_295",
23
- "footer": "awsui_footer_1d2i7_be01w_299",
24
- "footer--stuck": "awsui_footer--stuck_1d2i7_be01w_307",
25
- "dismiss-control": "awsui_dismiss-control_1d2i7_be01w_316",
26
- "modal-open": "awsui_modal-open_1d2i7_be01w_320"
4
+ "dialog": "awsui_dialog_1d2i7_1dsyc_105",
5
+ "modal-slide-up": "awsui_modal-slide-up_1d2i7_1dsyc_1",
6
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_1dsyc_1",
7
+ "refresh": "awsui_refresh_1d2i7_1dsyc_128",
8
+ "awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_1dsyc_1",
9
+ "root": "awsui_root_1d2i7_1dsyc_161",
10
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_1dsyc_1",
11
+ "hidden": "awsui_hidden_1d2i7_1dsyc_226",
12
+ "focus-lock": "awsui_focus-lock_1d2i7_1dsyc_230",
13
+ "small": "awsui_small_1d2i7_1dsyc_248",
14
+ "medium": "awsui_medium_1d2i7_1dsyc_251",
15
+ "large": "awsui_large_1d2i7_1dsyc_254",
16
+ "max": "awsui_max_1d2i7_1dsyc_257",
17
+ "breakpoint-xs": "awsui_breakpoint-xs_1d2i7_1dsyc_257",
18
+ "container": "awsui_container_1d2i7_1dsyc_262",
19
+ "content": "awsui_content_1d2i7_1dsyc_281",
20
+ "no-paddings": "awsui_no-paddings_1d2i7_1dsyc_284",
21
+ "header": "awsui_header_1d2i7_1dsyc_288",
22
+ "header--text": "awsui_header--text_1d2i7_1dsyc_295",
23
+ "footer": "awsui_footer_1d2i7_1dsyc_299",
24
+ "footer--stuck": "awsui_footer--stuck_1d2i7_1dsyc_307",
25
+ "dismiss-control": "awsui_dismiss-control_1d2i7_1dsyc_316",
26
+ "modal-open": "awsui_modal-open_1d2i7_1dsyc_320"
27
27
  };
28
28
 
@@ -94,7 +94,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
94
94
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
95
95
  SPDX-License-Identifier: Apache-2.0
96
96
  */
97
- @keyframes awsui_modal-slide-up_1d2i7_be01w_1 {
97
+ @keyframes awsui_modal-slide-up_1d2i7_1dsyc_1 {
98
98
  0% {
99
99
  transform: translate(0, 10px);
100
100
  }
@@ -102,12 +102,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
102
102
  transform: translate(0, 0);
103
103
  }
104
104
  }
105
- .awsui_dialog_1d2i7_be01w_105:not(#\9) {
106
- animation: awsui_modal-slide-up_1d2i7_be01w_1 var(--motion-duration-slow-z2kaah, 180ms) ease-out, awsui_awsui-motion-fade-in-0_1d2i7_be01w_1 var(--motion-duration-slow-z2kaah, 180ms) ease-out;
105
+ .awsui_dialog_1d2i7_1dsyc_105:not(#\9) {
106
+ animation: awsui_modal-slide-up_1d2i7_1dsyc_1 var(--motion-duration-slow-z2kaah, 180ms) ease-out, awsui_awsui-motion-fade-in-0_1d2i7_1dsyc_1 var(--motion-duration-slow-z2kaah, 180ms) ease-out;
107
107
  animation-delay: var(--motion-duration-fast-sbm3r7, 90ms);
108
108
  animation-fill-mode: both;
109
109
  }
110
- @keyframes awsui_awsui-motion-fade-in-0_1d2i7_be01w_1 {
110
+ @keyframes awsui_awsui-motion-fade-in-0_1d2i7_1dsyc_1 {
111
111
  from {
112
112
  opacity: 0;
113
113
  }
@@ -116,22 +116,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
116
116
  }
117
117
  }
118
118
  @media (prefers-reduced-motion: reduce) {
119
- .awsui_dialog_1d2i7_be01w_105:not(#\9) {
119
+ .awsui_dialog_1d2i7_1dsyc_105:not(#\9) {
120
120
  animation: none;
121
121
  transition: none;
122
122
  }
123
123
  }
124
- .awsui-motion-disabled .awsui_dialog_1d2i7_be01w_105:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_be01w_105:not(#\9) {
124
+ .awsui-motion-disabled .awsui_dialog_1d2i7_1dsyc_105:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_1dsyc_105:not(#\9) {
125
125
  animation: none;
126
126
  transition: none;
127
127
  }
128
- .awsui_dialog_1d2i7_be01w_105.awsui_refresh_1d2i7_be01w_128:not(#\9) {
129
- animation: awsui_awsui-motion-scale-popup_1d2i7_be01w_1, awsui_awsui-motion-fade-in-0_1d2i7_be01w_1;
128
+ .awsui_dialog_1d2i7_1dsyc_105.awsui_refresh_1d2i7_1dsyc_128:not(#\9) {
129
+ animation: awsui_awsui-motion-scale-popup_1d2i7_1dsyc_1, awsui_awsui-motion-fade-in-0_1d2i7_1dsyc_1;
130
130
  animation-duration: var(--motion-duration-refresh-only-fast-4jn2d7, 115ms);
131
131
  animation-timing-function: var(--motion-easing-refresh-only-a-8flf9q, cubic-bezier(0, 0, 0, 1));
132
132
  animation-fill-mode: both;
133
133
  }
134
- @keyframes awsui_awsui-motion-fade-in-0_1d2i7_be01w_1 {
134
+ @keyframes awsui_awsui-motion-fade-in-0_1d2i7_1dsyc_1 {
135
135
  from {
136
136
  opacity: 0;
137
137
  }
@@ -139,7 +139,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
139
139
  opacity: 1;
140
140
  }
141
141
  }
142
- @keyframes awsui_awsui-motion-scale-popup_1d2i7_be01w_1 {
142
+ @keyframes awsui_awsui-motion-scale-popup_1d2i7_1dsyc_1 {
143
143
  0% {
144
144
  transform: scale(0.95);
145
145
  }
@@ -148,21 +148,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
148
148
  }
149
149
  }
150
150
  @media (prefers-reduced-motion: reduce) {
151
- .awsui_dialog_1d2i7_be01w_105.awsui_refresh_1d2i7_be01w_128:not(#\9) {
151
+ .awsui_dialog_1d2i7_1dsyc_105.awsui_refresh_1d2i7_1dsyc_128:not(#\9) {
152
152
  animation: none;
153
153
  transition: none;
154
154
  }
155
155
  }
156
- .awsui-motion-disabled .awsui_dialog_1d2i7_be01w_105.awsui_refresh_1d2i7_be01w_128:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_be01w_105.awsui_refresh_1d2i7_be01w_128:not(#\9) {
156
+ .awsui-motion-disabled .awsui_dialog_1d2i7_1dsyc_105.awsui_refresh_1d2i7_1dsyc_128:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_1dsyc_105.awsui_refresh_1d2i7_1dsyc_128:not(#\9) {
157
157
  animation: none;
158
158
  transition: none;
159
159
  }
160
160
 
161
- .awsui_root_1d2i7_be01w_161:not(#\9) {
162
- animation: awsui_awsui-motion-fade-in_1d2i7_be01w_1 var(--motion-duration-extra-slow-ngjb9g, 270ms) ease-out;
161
+ .awsui_root_1d2i7_1dsyc_161:not(#\9) {
162
+ animation: awsui_awsui-motion-fade-in_1d2i7_1dsyc_1 var(--motion-duration-extra-slow-ngjb9g, 270ms) ease-out;
163
163
  animation-fill-mode: both;
164
164
  }
165
- @keyframes awsui_awsui-motion-fade-in_1d2i7_be01w_1 {
165
+ @keyframes awsui_awsui-motion-fade-in_1d2i7_1dsyc_1 {
166
166
  from {
167
167
  opacity: 0.2;
168
168
  }
@@ -171,25 +171,25 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
171
171
  }
172
172
  }
173
173
  @media (prefers-reduced-motion: reduce) {
174
- .awsui_root_1d2i7_be01w_161:not(#\9) {
174
+ .awsui_root_1d2i7_1dsyc_161:not(#\9) {
175
175
  animation: none;
176
176
  transition: none;
177
177
  }
178
178
  }
179
- .awsui-motion-disabled .awsui_root_1d2i7_be01w_161:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_be01w_161:not(#\9) {
179
+ .awsui-motion-disabled .awsui_root_1d2i7_1dsyc_161:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_1dsyc_161:not(#\9) {
180
180
  animation: none;
181
181
  transition: none;
182
182
  }
183
- .awsui_root_1d2i7_be01w_161.awsui_refresh_1d2i7_be01w_128:not(#\9) {
183
+ .awsui_root_1d2i7_1dsyc_161.awsui_refresh_1d2i7_1dsyc_128:not(#\9) {
184
184
  animation-duration: var(--motion-duration-refresh-only-fast-4jn2d7, 115ms);
185
185
  }
186
186
  @media (prefers-reduced-motion: reduce) {
187
- .awsui_root_1d2i7_be01w_161.awsui_refresh_1d2i7_be01w_128:not(#\9) {
187
+ .awsui_root_1d2i7_1dsyc_161.awsui_refresh_1d2i7_1dsyc_128:not(#\9) {
188
188
  animation: none;
189
189
  transition: none;
190
190
  }
191
191
  }
192
- .awsui-motion-disabled .awsui_root_1d2i7_be01w_161.awsui_refresh_1d2i7_be01w_128:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_be01w_161.awsui_refresh_1d2i7_be01w_128:not(#\9) {
192
+ .awsui-motion-disabled .awsui_root_1d2i7_1dsyc_161.awsui_refresh_1d2i7_1dsyc_128:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_1dsyc_161.awsui_refresh_1d2i7_1dsyc_128:not(#\9) {
193
193
  animation: none;
194
194
  transition: none;
195
195
  }
@@ -198,7 +198,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
198
198
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
199
199
  SPDX-License-Identifier: Apache-2.0
200
200
  */
201
- .awsui_root_1d2i7_be01w_161:not(#\9) {
201
+ .awsui_root_1d2i7_1dsyc_161:not(#\9) {
202
202
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
203
203
  border-collapse: separate;
204
204
  border-spacing: 0;
@@ -249,11 +249,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
249
249
  overflow: auto;
250
250
  cursor: pointer;
251
251
  }
252
- .awsui_root_1d2i7_be01w_161.awsui_hidden_1d2i7_be01w_226:not(#\9) {
252
+ .awsui_root_1d2i7_1dsyc_161.awsui_hidden_1d2i7_1dsyc_226:not(#\9) {
253
253
  display: none;
254
254
  }
255
255
 
256
- .awsui_focus-lock_1d2i7_be01w_230:not(#\9) {
256
+ .awsui_focus-lock_1d2i7_1dsyc_230:not(#\9) {
257
257
  align-self: flex-start;
258
258
  margin: auto;
259
259
  padding: var(--space-s-34lx8l, 12px) 0;
@@ -261,7 +261,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
261
261
  pointer-events: none;
262
262
  }
263
263
 
264
- .awsui_dialog_1d2i7_be01w_105:not(#\9) {
264
+ .awsui_dialog_1d2i7_1dsyc_105:not(#\9) {
265
265
  position: static;
266
266
  top: 0;
267
267
  transform: translate(0, 0);
@@ -271,21 +271,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
271
271
  z-index: 5000;
272
272
  pointer-events: all;
273
273
  }
274
- .awsui_dialog_1d2i7_be01w_105.awsui_small_1d2i7_be01w_248:not(#\9) {
274
+ .awsui_dialog_1d2i7_1dsyc_105.awsui_small_1d2i7_1dsyc_248:not(#\9) {
275
275
  max-width: 320px;
276
276
  }
277
- .awsui_dialog_1d2i7_be01w_105.awsui_medium_1d2i7_be01w_251:not(#\9) {
277
+ .awsui_dialog_1d2i7_1dsyc_105.awsui_medium_1d2i7_1dsyc_251:not(#\9) {
278
278
  max-width: 600px;
279
279
  }
280
- .awsui_dialog_1d2i7_be01w_105.awsui_large_1d2i7_be01w_254:not(#\9) {
280
+ .awsui_dialog_1d2i7_1dsyc_105.awsui_large_1d2i7_1dsyc_254:not(#\9) {
281
281
  max-width: 820px;
282
282
  }
283
- .awsui_dialog_1d2i7_be01w_105.awsui_max_1d2i7_be01w_257.awsui_breakpoint-xs_1d2i7_be01w_257:not(#\9) {
283
+ .awsui_dialog_1d2i7_1dsyc_105.awsui_max_1d2i7_1dsyc_257.awsui_breakpoint-xs_1d2i7_1dsyc_257:not(#\9) {
284
284
  max-width: calc(100vw - (2 * 4 * 10px + var(--space-xxxl-4x2gki, 40px)));
285
285
  margin: auto;
286
286
  }
287
287
 
288
- .awsui_container_1d2i7_be01w_262:not(#\9) {
288
+ .awsui_container_1d2i7_1dsyc_262:not(#\9) {
289
289
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
290
290
  border-collapse: separate;
291
291
  border-spacing: 0;
@@ -330,46 +330,46 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
330
330
  box-shadow: var(--shadow-modal-espdsd, 0px 4px 20px 1px rgba(0, 7, 22, 0.1));
331
331
  }
332
332
 
333
- .awsui_content_1d2i7_be01w_281:not(#\9) {
333
+ .awsui_content_1d2i7_1dsyc_281:not(#\9) {
334
334
  padding: var(--space-container-content-top-1ae0r3, 4px) var(--space-modal-horizontal-f89syl, 20px) var(--space-modal-content-bottom-hqahub, 16px);
335
335
  }
336
- .awsui_content_1d2i7_be01w_281.awsui_no-paddings_1d2i7_be01w_284:not(#\9) {
336
+ .awsui_content_1d2i7_1dsyc_281.awsui_no-paddings_1d2i7_1dsyc_284:not(#\9) {
337
337
  padding: 0;
338
338
  }
339
339
 
340
- .awsui_header_1d2i7_be01w_288:not(#\9) {
340
+ .awsui_header_1d2i7_1dsyc_288:not(#\9) {
341
341
  padding: var(--space-container-header-top-5qav00, 12px) var(--space-modal-horizontal-f89syl, 20px) var(--space-container-header-bottom-vj01hn, 8px);
342
342
  background-color: var(--color-background-container-header-8b9fgi, #ffffff);
343
343
  border-bottom: 1px solid var(--color-border-container-divider-p2uygo, transparent);
344
344
  border-radius: var(--border-radius-container-wqv1zi, 16px) var(--border-radius-container-wqv1zi, 16px) 0 0;
345
345
  }
346
346
 
347
- .awsui_header--text_1d2i7_be01w_295:not(#\9) {
347
+ .awsui_header--text_1d2i7_1dsyc_295:not(#\9) {
348
348
  /* used in test-utils */
349
349
  }
350
350
 
351
- .awsui_footer_1d2i7_be01w_299:not(#\9) {
352
- border-block-start: var(--border-divider-section-width-8a5uu9, 2px) solid var(--color-border-divider-default-et9j7s, #e9ebed);
351
+ .awsui_footer_1d2i7_1dsyc_299:not(#\9) {
352
+ border-top: var(--border-divider-section-width-8a5uu9, 2px) solid var(--color-border-divider-default-et9j7s, #e9ebed);
353
353
  padding: var(--space-scaled-s-aqzyko, 12px) var(--space-container-horizontal-wfukh3, 20px);
354
354
  background-color: var(--color-background-container-content-4un1ap, #ffffff);
355
355
  position: sticky;
356
356
  bottom: 0;
357
357
  z-index: 800;
358
358
  }
359
- .awsui_footer--stuck_1d2i7_be01w_307:not(#\9) {
359
+ .awsui_footer--stuck_1d2i7_1dsyc_307:not(#\9) {
360
360
  border-radius: 0 0 var(--border-radius-container-wqv1zi, 16px) var(--border-radius-container-wqv1zi, 16px);
361
361
  }
362
- .awsui_footer_1d2i7_be01w_299:not(#\9):after {
362
+ .awsui_footer_1d2i7_1dsyc_299:not(#\9):after {
363
363
  content: "";
364
364
  display: table;
365
365
  clear: both;
366
366
  }
367
367
 
368
- .awsui_dismiss-control_1d2i7_be01w_316:not(#\9) {
368
+ .awsui_dismiss-control_1d2i7_1dsyc_316:not(#\9) {
369
369
  /* used in test-utils */
370
370
  }
371
371
 
372
- .awsui_modal-open_1d2i7_be01w_320:not(#\9) {
372
+ .awsui_modal-open_1d2i7_1dsyc_320:not(#\9) {
373
373
  overflow: hidden;
374
374
  /*
375
375
  * When padding-right is added to account for scrollbar being turned
@@ -2,28 +2,28 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "dialog": "awsui_dialog_1d2i7_be01w_105",
6
- "modal-slide-up": "awsui_modal-slide-up_1d2i7_be01w_1",
7
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_be01w_1",
8
- "refresh": "awsui_refresh_1d2i7_be01w_128",
9
- "awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_be01w_1",
10
- "root": "awsui_root_1d2i7_be01w_161",
11
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_be01w_1",
12
- "hidden": "awsui_hidden_1d2i7_be01w_226",
13
- "focus-lock": "awsui_focus-lock_1d2i7_be01w_230",
14
- "small": "awsui_small_1d2i7_be01w_248",
15
- "medium": "awsui_medium_1d2i7_be01w_251",
16
- "large": "awsui_large_1d2i7_be01w_254",
17
- "max": "awsui_max_1d2i7_be01w_257",
18
- "breakpoint-xs": "awsui_breakpoint-xs_1d2i7_be01w_257",
19
- "container": "awsui_container_1d2i7_be01w_262",
20
- "content": "awsui_content_1d2i7_be01w_281",
21
- "no-paddings": "awsui_no-paddings_1d2i7_be01w_284",
22
- "header": "awsui_header_1d2i7_be01w_288",
23
- "header--text": "awsui_header--text_1d2i7_be01w_295",
24
- "footer": "awsui_footer_1d2i7_be01w_299",
25
- "footer--stuck": "awsui_footer--stuck_1d2i7_be01w_307",
26
- "dismiss-control": "awsui_dismiss-control_1d2i7_be01w_316",
27
- "modal-open": "awsui_modal-open_1d2i7_be01w_320"
5
+ "dialog": "awsui_dialog_1d2i7_1dsyc_105",
6
+ "modal-slide-up": "awsui_modal-slide-up_1d2i7_1dsyc_1",
7
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_1dsyc_1",
8
+ "refresh": "awsui_refresh_1d2i7_1dsyc_128",
9
+ "awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_1dsyc_1",
10
+ "root": "awsui_root_1d2i7_1dsyc_161",
11
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_1dsyc_1",
12
+ "hidden": "awsui_hidden_1d2i7_1dsyc_226",
13
+ "focus-lock": "awsui_focus-lock_1d2i7_1dsyc_230",
14
+ "small": "awsui_small_1d2i7_1dsyc_248",
15
+ "medium": "awsui_medium_1d2i7_1dsyc_251",
16
+ "large": "awsui_large_1d2i7_1dsyc_254",
17
+ "max": "awsui_max_1d2i7_1dsyc_257",
18
+ "breakpoint-xs": "awsui_breakpoint-xs_1d2i7_1dsyc_257",
19
+ "container": "awsui_container_1d2i7_1dsyc_262",
20
+ "content": "awsui_content_1d2i7_1dsyc_281",
21
+ "no-paddings": "awsui_no-paddings_1d2i7_1dsyc_284",
22
+ "header": "awsui_header_1d2i7_1dsyc_288",
23
+ "header--text": "awsui_header--text_1d2i7_1dsyc_295",
24
+ "footer": "awsui_footer_1d2i7_1dsyc_299",
25
+ "footer--stuck": "awsui_footer--stuck_1d2i7_1dsyc_307",
26
+ "dismiss-control": "awsui_dismiss-control_1d2i7_1dsyc_316",
27
+ "modal-open": "awsui_modal-open_1d2i7_1dsyc_320"
28
28
  };
29
29
 
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@cloudscape-design/components","main":"./index.js","exports":{".":"./index.js","./package.json":"./package.json","./theming":"./theming/index.js","./test-utils/dom":"./test-utils/dom/index.js","./test-utils/selectors":"./test-utils/selectors/index.js","./interfaces":"./interfaces.js","./contexts/form-field":"./contexts/form-field.js","./alert":"./alert/index.js","./anchor-navigation":"./anchor-navigation/index.js","./annotation-context":"./annotation-context/index.js","./app-layout":"./app-layout/index.js","./area-chart":"./area-chart/index.js","./attribute-editor":"./attribute-editor/index.js","./autosuggest":"./autosuggest/index.js","./badge":"./badge/index.js","./bar-chart":"./bar-chart/index.js","./box":"./box/index.js","./breadcrumb-group":"./breadcrumb-group/index.js","./button":"./button/index.js","./button-dropdown":"./button-dropdown/index.js","./calendar":"./calendar/index.js","./cards":"./cards/index.js","./checkbox":"./checkbox/index.js","./code-editor":"./code-editor/index.js","./collection-preferences":"./collection-preferences/index.js","./column-layout":"./column-layout/index.js","./container":"./container/index.js","./content-layout":"./content-layout/index.js","./date-input":"./date-input/index.js","./date-picker":"./date-picker/index.js","./date-range-picker":"./date-range-picker/index.js","./drawer":"./drawer/index.js","./expandable-section":"./expandable-section/index.js","./file-upload":"./file-upload/index.js","./flashbar":"./flashbar/index.js","./form":"./form/index.js","./form-field":"./form-field/index.js","./grid":"./grid/index.js","./header":"./header/index.js","./help-panel":"./help-panel/index.js","./hotspot":"./hotspot/index.js","./icon":"./icon/index.js","./input":"./input/index.js","./line-chart":"./line-chart/index.js","./link":"./link/index.js","./mixed-line-bar-chart":"./mixed-line-bar-chart/index.js","./modal":"./modal/index.js","./multiselect":"./multiselect/index.js","./pagination":"./pagination/index.js","./pie-chart":"./pie-chart/index.js","./popover":"./popover/index.js","./progress-bar":"./progress-bar/index.js","./property-filter":"./property-filter/index.js","./radio-group":"./radio-group/index.js","./s3-resource-selector":"./s3-resource-selector/index.js","./segmented-control":"./segmented-control/index.js","./select":"./select/index.js","./side-navigation":"./side-navigation/index.js","./space-between":"./space-between/index.js","./spinner":"./spinner/index.js","./split-panel":"./split-panel/index.js","./status-indicator":"./status-indicator/index.js","./table":"./table/index.js","./tabs":"./tabs/index.js","./tag-editor":"./tag-editor/index.js","./text-content":"./text-content/index.js","./text-filter":"./text-filter/index.js","./textarea":"./textarea/index.js","./tiles":"./tiles/index.js","./time-input":"./time-input/index.js","./toggle":"./toggle/index.js","./token-group":"./token-group/index.js","./top-navigation":"./top-navigation/index.js","./tutorial-panel":"./tutorial-panel/index.js","./wizard":"./wizard/index.js","./top-navigation/1.0-beta":"./top-navigation/1.0-beta/index.js","./i18n":"./i18n/index.js","./i18n/messages/all.all":"./i18n/messages/all.all.js","./i18n/messages/all.all.json":"./i18n/messages/all.all.json","./i18n/messages/all.de":"./i18n/messages/all.de.js","./i18n/messages/all.de.json":"./i18n/messages/all.de.json","./i18n/messages/all.en-GB":"./i18n/messages/all.en-GB.js","./i18n/messages/all.en-GB.json":"./i18n/messages/all.en-GB.json","./i18n/messages/all.en":"./i18n/messages/all.en.js","./i18n/messages/all.en.json":"./i18n/messages/all.en.json","./i18n/messages/all.es":"./i18n/messages/all.es.js","./i18n/messages/all.es.json":"./i18n/messages/all.es.json","./i18n/messages/all.fr":"./i18n/messages/all.fr.js","./i18n/messages/all.fr.json":"./i18n/messages/all.fr.json","./i18n/messages/all.id":"./i18n/messages/all.id.js","./i18n/messages/all.id.json":"./i18n/messages/all.id.json","./i18n/messages/all.it":"./i18n/messages/all.it.js","./i18n/messages/all.it.json":"./i18n/messages/all.it.json","./i18n/messages/all.ja":"./i18n/messages/all.ja.js","./i18n/messages/all.ja.json":"./i18n/messages/all.ja.json","./i18n/messages/all.ko":"./i18n/messages/all.ko.js","./i18n/messages/all.ko.json":"./i18n/messages/all.ko.json","./i18n/messages/all.pt-BR":"./i18n/messages/all.pt-BR.js","./i18n/messages/all.pt-BR.json":"./i18n/messages/all.pt-BR.json","./i18n/messages/all.tr":"./i18n/messages/all.tr.js","./i18n/messages/all.tr.json":"./i18n/messages/all.tr.json","./i18n/messages/all.zh-CN":"./i18n/messages/all.zh-CN.js","./i18n/messages/all.zh-CN.json":"./i18n/messages/all.zh-CN.json","./i18n/messages/all.zh-TW":"./i18n/messages/all.zh-TW.js","./i18n/messages/all.zh-TW.json":"./i18n/messages/all.zh-TW.json"},"sideEffects":["*.css","./internal/base-component/index.js","./internal/base-component/styles.css.js"],"version":"3.0.457","repository":{"type":"git","url":"https://github.com/cloudscape-design/components.git"},"homepage":"https://cloudscape.design","dependencies":{"@cloudscape-design/collection-hooks":"^1.0.0","@cloudscape-design/component-toolkit":"^1.0.0-beta","@cloudscape-design/test-utils-core":"^1.0.0","@cloudscape-design/theming-runtime":"^1.0.0","@dnd-kit/core":"^6.0.8","@dnd-kit/sortable":"^7.0.2","@dnd-kit/utilities":"^3.2.1","@juggle/resize-observer":"^3.3.1","ace-builds":"^1.23.0","balanced-match":"^1.0.2","clsx":"^1.1.0","d3-shape":"^1.3.7","date-fns":"^2.25.0","intl-messageformat":"^10.3.1","mnth":"^2.0.0","react-keyed-flatten-children":"^1.3.0","react-transition-group":"^4.4.2","react-virtual":"^2.8.2","tslib":"^2.4.0","weekstart":"^1.1.0"},"peerDependencies":{"react":"^16.8 || ^17 || ^18","react-dom":"^16.8 || ^17 || ^18"},"license":"Apache-2.0"}
1
+ {"name":"@cloudscape-design/components","main":"./index.js","exports":{".":"./index.js","./package.json":"./package.json","./theming":"./theming/index.js","./test-utils/dom":"./test-utils/dom/index.js","./test-utils/selectors":"./test-utils/selectors/index.js","./interfaces":"./interfaces.js","./contexts/form-field":"./contexts/form-field.js","./alert":"./alert/index.js","./anchor-navigation":"./anchor-navigation/index.js","./annotation-context":"./annotation-context/index.js","./app-layout":"./app-layout/index.js","./area-chart":"./area-chart/index.js","./attribute-editor":"./attribute-editor/index.js","./autosuggest":"./autosuggest/index.js","./badge":"./badge/index.js","./bar-chart":"./bar-chart/index.js","./box":"./box/index.js","./breadcrumb-group":"./breadcrumb-group/index.js","./button":"./button/index.js","./button-dropdown":"./button-dropdown/index.js","./calendar":"./calendar/index.js","./cards":"./cards/index.js","./checkbox":"./checkbox/index.js","./code-editor":"./code-editor/index.js","./collection-preferences":"./collection-preferences/index.js","./column-layout":"./column-layout/index.js","./container":"./container/index.js","./content-layout":"./content-layout/index.js","./date-input":"./date-input/index.js","./date-picker":"./date-picker/index.js","./date-range-picker":"./date-range-picker/index.js","./drawer":"./drawer/index.js","./expandable-section":"./expandable-section/index.js","./file-upload":"./file-upload/index.js","./flashbar":"./flashbar/index.js","./form":"./form/index.js","./form-field":"./form-field/index.js","./grid":"./grid/index.js","./header":"./header/index.js","./help-panel":"./help-panel/index.js","./hotspot":"./hotspot/index.js","./icon":"./icon/index.js","./input":"./input/index.js","./line-chart":"./line-chart/index.js","./link":"./link/index.js","./mixed-line-bar-chart":"./mixed-line-bar-chart/index.js","./modal":"./modal/index.js","./multiselect":"./multiselect/index.js","./pagination":"./pagination/index.js","./pie-chart":"./pie-chart/index.js","./popover":"./popover/index.js","./progress-bar":"./progress-bar/index.js","./property-filter":"./property-filter/index.js","./radio-group":"./radio-group/index.js","./s3-resource-selector":"./s3-resource-selector/index.js","./segmented-control":"./segmented-control/index.js","./select":"./select/index.js","./side-navigation":"./side-navigation/index.js","./space-between":"./space-between/index.js","./spinner":"./spinner/index.js","./split-panel":"./split-panel/index.js","./status-indicator":"./status-indicator/index.js","./table":"./table/index.js","./tabs":"./tabs/index.js","./tag-editor":"./tag-editor/index.js","./text-content":"./text-content/index.js","./text-filter":"./text-filter/index.js","./textarea":"./textarea/index.js","./tiles":"./tiles/index.js","./time-input":"./time-input/index.js","./toggle":"./toggle/index.js","./token-group":"./token-group/index.js","./top-navigation":"./top-navigation/index.js","./tutorial-panel":"./tutorial-panel/index.js","./wizard":"./wizard/index.js","./top-navigation/1.0-beta":"./top-navigation/1.0-beta/index.js","./i18n":"./i18n/index.js","./i18n/messages/all.all":"./i18n/messages/all.all.js","./i18n/messages/all.all.json":"./i18n/messages/all.all.json","./i18n/messages/all.de":"./i18n/messages/all.de.js","./i18n/messages/all.de.json":"./i18n/messages/all.de.json","./i18n/messages/all.en-GB":"./i18n/messages/all.en-GB.js","./i18n/messages/all.en-GB.json":"./i18n/messages/all.en-GB.json","./i18n/messages/all.en":"./i18n/messages/all.en.js","./i18n/messages/all.en.json":"./i18n/messages/all.en.json","./i18n/messages/all.es":"./i18n/messages/all.es.js","./i18n/messages/all.es.json":"./i18n/messages/all.es.json","./i18n/messages/all.fr":"./i18n/messages/all.fr.js","./i18n/messages/all.fr.json":"./i18n/messages/all.fr.json","./i18n/messages/all.id":"./i18n/messages/all.id.js","./i18n/messages/all.id.json":"./i18n/messages/all.id.json","./i18n/messages/all.it":"./i18n/messages/all.it.js","./i18n/messages/all.it.json":"./i18n/messages/all.it.json","./i18n/messages/all.ja":"./i18n/messages/all.ja.js","./i18n/messages/all.ja.json":"./i18n/messages/all.ja.json","./i18n/messages/all.ko":"./i18n/messages/all.ko.js","./i18n/messages/all.ko.json":"./i18n/messages/all.ko.json","./i18n/messages/all.pt-BR":"./i18n/messages/all.pt-BR.js","./i18n/messages/all.pt-BR.json":"./i18n/messages/all.pt-BR.json","./i18n/messages/all.tr":"./i18n/messages/all.tr.js","./i18n/messages/all.tr.json":"./i18n/messages/all.tr.json","./i18n/messages/all.zh-CN":"./i18n/messages/all.zh-CN.js","./i18n/messages/all.zh-CN.json":"./i18n/messages/all.zh-CN.json","./i18n/messages/all.zh-TW":"./i18n/messages/all.zh-TW.js","./i18n/messages/all.zh-TW.json":"./i18n/messages/all.zh-TW.json"},"sideEffects":["*.css","./internal/base-component/index.js","./internal/base-component/styles.css.js"],"version":"3.0.459","repository":{"type":"git","url":"https://github.com/cloudscape-design/components.git"},"homepage":"https://cloudscape.design","dependencies":{"@cloudscape-design/collection-hooks":"^1.0.0","@cloudscape-design/component-toolkit":"^1.0.0-beta","@cloudscape-design/test-utils-core":"^1.0.0","@cloudscape-design/theming-runtime":"^1.0.0","@dnd-kit/core":"^6.0.8","@dnd-kit/sortable":"^7.0.2","@dnd-kit/utilities":"^3.2.1","@juggle/resize-observer":"^3.3.1","ace-builds":"^1.23.0","balanced-match":"^1.0.2","clsx":"^1.1.0","d3-shape":"^1.3.7","date-fns":"^2.25.0","intl-messageformat":"^10.3.1","mnth":"^2.0.0","react-keyed-flatten-children":"^1.3.0","react-transition-group":"^4.4.2","react-virtual":"^2.8.2","tslib":"^2.4.0","weekstart":"^1.1.0"},"peerDependencies":{"react":"^16.8 || ^17 || ^18","react-dom":"^16.8 || ^17 || ^18"},"license":"Apache-2.0"}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { ReactNode } from 'react';
2
2
  import { BaseComponentProps } from '../internal/base-component';
3
3
  import { NonCancelableEventHandler } from '../internal/events';
4
4
  import { PopoverProps } from '../popover/interfaces';
@@ -9,8 +9,8 @@ export interface SeriesInfo {
9
9
  markerType: 'line' | 'rectangle';
10
10
  }
11
11
  export interface ChartDetailPair {
12
- key: string;
13
- value: string | number;
12
+ key: ReactNode;
13
+ value: ReactNode;
14
14
  }
15
15
  export interface PieChartProps<T extends PieChartProps.Datum = PieChartProps.Datum> extends BaseComponentProps {
16
16
  /**
@@ -45,8 +45,8 @@ export interface PieChartProps<T extends PieChartProps.Datum = PieChartProps.Dat
45
45
  * By default, each segment displays two detail pairs: count and percentage.
46
46
  *
47
47
  * Each pair has the following properties:
48
- * * `key` (string) - Name of the detail or metric.
49
- * * `value` (string | number) - The value of this detail for the target segment.
48
+ * * `key` (ReactNode) - Name of the detail or metric.
49
+ * * `value` (ReactNode) - The value of this detail for the target segment.
50
50
  */
51
51
  detailPopoverContent?: PieChartProps.DetailPopoverContentFunction<T>;
52
52
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["pie-chart/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAA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F"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["pie-chart/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { PopoverProps } from '../popover/interfaces';\n\nexport interface SeriesInfo {\n label: string;\n color: string;\n index: number;\n markerType: 'line' | 'rectangle';\n}\n\nexport interface ChartDetailPair {\n key: string;\n value: string | number;\n}\n\nexport interface PieChartProps<T extends PieChartProps.Datum = PieChartProps.Datum> extends BaseComponentProps {\n /**\n * An array that represents the source of data for the displayed segments.\n * Each element can have the following properties:\n *\n * * `title` (string) - A human-readable title for this data point.\n * * `value` (number) - Numeric value that determines the segment size.\n * A segment with a value of zero (0) or lower (negative number) won't have a segment.\n * * `color`: (string) - (Optional) Color value for this segment that takes priority over the automatically assigned color.\n * Can be any valid CSS color identifier.\n *\n * As long as your data object implements the properties above, you can also define additional properties\n * that are relevant to your data visualization.\n * The full data object will be passed down to events and properties like `detailPopoverContent`.\n */\n data: ReadonlyArray<T>;\n\n /**\n * Specifies the size of the pie or donut chart.\n * When used with `fitHeight`, this property defines the minimum size of the chart area.\n */\n size?: 'small' | 'medium' | 'large';\n\n /**\n * Visual variant of the pie chart. Currently supports the default `pie` variant and the `donut` variant.\n * The donut variant provides a slot in the center of the chart that can contain additional information.\n * For more information, see `innerContent`.\n */\n variant?: 'pie' | 'donut';\n\n /**\n * A function that determines the details that are displayed in the popover when hovering over a segment.\n * The function is called with the data of the target segment and is expected to return an array of detail pairs.\n * By default, each segment displays two detail pairs: count and percentage.\n *\n * Each pair has the following properties:\n * * `key` (string) - Name of the detail or metric.\n * * `value` (string | number) - The value of this detail for the target segment.\n */\n detailPopoverContent?: PieChartProps.DetailPopoverContentFunction<T>;\n\n /**\n * Additional content that is displayed at the bottom of the detail popover.\n */\n detailPopoverFooter?: PieChartProps.DetailPopoverFooter<T>;\n\n /**\n * A function that determines the description of a segment that is displayed on the chart, unless `hideDescriptions` is set to `true`.\n * This is an optional description that explains the segment and is displayed underneath the label.\n * The function is called with the data object of each segment and is expected to return the description as a string.\n */\n segmentDescription?: PieChartProps.SegmentDescriptionFunction<T>;\n\n /**\n * Determines the maximum width of the popover.\n */\n detailPopoverSize?: PopoverProps.Size;\n\n /**\n * Hides legend beneath the chart when set to `true`.\n * We highly recommend that you leave this unspecified or set to `false`.\n */\n hideLegend?: boolean;\n\n /**\n * Hides label titles next to the chart segments when set to `true`.\n * We highly recommend that you leave this unspecified or set to `false`.\n */\n hideTitles?: boolean;\n\n /**\n * Hides the label descriptions next to the chart segments when set to `true`.\n */\n hideDescriptions?: boolean;\n\n /**\n * Hides the default filtering dropdown when set to `true`.\n * You can still display additional filters with the `additionalFilters` slot.\n */\n hideFilter?: boolean;\n\n /**\n * Additional metric number that's displayed in the center of the chart if `variant` is set to `donut`.\n */\n innerMetricValue?: string;\n\n /**\n * Additional description that's displayed in the center of the chart below `innerMetricValue` if `variant` is set to `donut`.\n * This is usually the unit of the `innerMetricValue`.\n */\n innerMetricDescription?: string;\n\n /**\n * Title for the legend.\n */\n legendTitle?: string;\n\n /**\n * Additional filters that you can add above the chart component.\n * Make sure you update the `data` property when any of your custom filters change the data that's displayed.\n */\n additionalFilters?: React.ReactNode;\n\n /**\n * Specifies the currently highlighted data segment. Highlighting is typically the result of\n * a user hovering over or selecting a segment in the chart or the legend.\n * A value of `null` means no segment is being highlighted.\n *\n * - If you don't set this property, segments are highlighted automatically when a user hovers over or selects one of the triggers (that is, uncontrolled behavior).\n * - If you explicitly set this property, you must set an `onHighlightChange` listener to update this property when a segment should be highlighted (that is, controlled behavior).\n */\n highlightedSegment?: T | null;\n\n /**\n * An array of data segment objects that determines which data segments are currently visible (that is, not filtered out).\n *\n * - If you don't set this property, segments are filtered automatically when using the default filtering of the component (that is, uncontrolled behavior).\n * - If you explicitly set this property, you must set an `onFilterChange` listener to update this property when the list of filtered segments changes (that is, controlled behavior).\n */\n visibleSegments?: ReadonlyArray<T>;\n\n /**\n * Specifies the current status of loading data.\n * * `loading` - Indicates that data fetching is in progress.\n * * `finished` - Indicates that data has loaded successfully.\n * * `error` - Indicates that an error occurred during fetch. You should provide an option to enable the user to recover.\n **/\n statusType?: 'loading' | 'finished' | 'error';\n\n /**\n * Content that's displayed when the data passed to the component is empty.\n */\n empty?: React.ReactNode;\n\n /**\n * Content that's displayed when there is no data to display because it doesn't match the specified filter.\n */\n noMatch?: React.ReactNode;\n\n /**\n * Text that's displayed when the chart is loading (that is, when `statusType` is set to `loading`).\n * @i18n\n */\n loadingText?: string;\n\n /**\n * Text that's displayed when the chart is in error state (that is, when `statusType` is set to `error`).\n * @i18n\n */\n errorText?: string;\n\n /**\n * Text for the recovery button that's displayed next to the error text.\n * @i18n\n **/\n recoveryText?: string;\n\n /**\n * Called when the user clicks the recovery button that appears when there is an error state.\n * Use this to enable the user to retry a failed request or provide another option for the user\n * to recover from the error.\n */\n onRecoveryClick?: NonCancelableEventHandler;\n\n /**\n * Called when the highlighted segmented changes because of a user interaction.\n */\n onHighlightChange?: NonCancelableEventHandler<PieChartProps.HighlightChangeDetail<T>>;\n\n /**\n * Called when the values of the internal filter component changes.\n * This isn't called for any custom filter components you've defined in `additionalFilters`.\n */\n onFilterChange?: NonCancelableEventHandler<PieChartProps.FilterChangeDetail<T>>;\n\n /**\n * ARIA label that's assigned to the chart. It should match the visible label on the page\n * (for example, in the container header). Use either `ariaLabel` or `ariaLabelledby` (you can't use both).\n */\n ariaLabel?: string;\n\n /**\n * Sets `aria-labelledby` on the chart. If there is a visible label for the chart on the page\n * (for example, in the container header), set this property to the ID of that header element.\n * Use either `ariaLabel` or `ariaLabelledby` (you can't use both).\n */\n ariaLabelledby?: string;\n\n /**\n * A description of the chart that assistive technologies can use (through `aria-describedby` and `<title>`).\n * Provide a concise summary of the data visualized in the chart.\n */\n ariaDescription?: string;\n\n /**\n * An object that contains all of the localized strings required by the component.\n * @i18n\n */\n i18nStrings?: PieChartProps.I18nStrings;\n\n /**\n * Enable this property to make the chart fit into the available height of the parent container.\n */\n fitHeight?: boolean;\n}\n\nexport namespace PieChartProps {\n export interface Datum {\n title: string;\n value: number;\n color?: string;\n }\n\n export type PieChartData = ReadonlyArray<Datum>;\n\n export interface DetailPopoverContentFunction<T = Datum> {\n (segment: T, visibleDataSum: number): ReadonlyArray<ChartDetailPair>;\n }\n\n export interface DetailPopoverFooter<T> {\n (segment: T): React.ReactNode;\n }\n\n export interface SegmentDescriptionFunction<T = Datum> {\n (segment: T, visibleDataSum: number): string;\n }\n\n export interface HighlightChangeDetail<T> {\n highlightedSegment: T | null;\n }\n\n export interface FilterChangeDetail<T> {\n visibleSegments: ReadonlyArray<T>;\n }\n\n export interface I18nStrings {\n /** Name of the \"Value\" key that is displayed in the details popover by default */\n detailsValue?: string;\n\n /** Name of the \"Percentage\" key that is displayed in the details popover by default */\n detailsPercentage?: string;\n\n /** Visible label of the default filter */\n filterLabel?: string;\n\n /** Placeholder text of the default filter */\n filterPlaceholder?: string;\n\n /** ARIA label for the default filter which is appended to any option that is selected */\n filterSelectedAriaLabel?: string;\n\n /** ARIA label that is associated with the legend in case there is no visible `legendTitle` defined */\n legendAriaLabel?: string;\n\n /** ARIA label for details popover dismiss button */\n detailPopoverDismissAriaLabel?: string;\n\n /** Name of the ARIA role description of the chart, e.g. \"pie chart\" */\n chartAriaRoleDescription?: string;\n\n /** Name of the ARIA role description of each segment, e.g. \"segment\" */\n segmentAriaRoleDescription?: string;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["pie-chart/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ReactNode } from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { PopoverProps } from '../popover/interfaces';\n\nexport interface SeriesInfo {\n label: string;\n color: string;\n index: number;\n markerType: 'line' | 'rectangle';\n}\n\nexport interface ChartDetailPair {\n key: ReactNode;\n value: ReactNode;\n}\n\nexport interface PieChartProps<T extends PieChartProps.Datum = PieChartProps.Datum> extends BaseComponentProps {\n /**\n * An array that represents the source of data for the displayed segments.\n * Each element can have the following properties:\n *\n * * `title` (string) - A human-readable title for this data point.\n * * `value` (number) - Numeric value that determines the segment size.\n * A segment with a value of zero (0) or lower (negative number) won't have a segment.\n * * `color`: (string) - (Optional) Color value for this segment that takes priority over the automatically assigned color.\n * Can be any valid CSS color identifier.\n *\n * As long as your data object implements the properties above, you can also define additional properties\n * that are relevant to your data visualization.\n * The full data object will be passed down to events and properties like `detailPopoverContent`.\n */\n data: ReadonlyArray<T>;\n\n /**\n * Specifies the size of the pie or donut chart.\n * When used with `fitHeight`, this property defines the minimum size of the chart area.\n */\n size?: 'small' | 'medium' | 'large';\n\n /**\n * Visual variant of the pie chart. Currently supports the default `pie` variant and the `donut` variant.\n * The donut variant provides a slot in the center of the chart that can contain additional information.\n * For more information, see `innerContent`.\n */\n variant?: 'pie' | 'donut';\n\n /**\n * A function that determines the details that are displayed in the popover when hovering over a segment.\n * The function is called with the data of the target segment and is expected to return an array of detail pairs.\n * By default, each segment displays two detail pairs: count and percentage.\n *\n * Each pair has the following properties:\n * * `key` (ReactNode) - Name of the detail or metric.\n * * `value` (ReactNode) - The value of this detail for the target segment.\n */\n detailPopoverContent?: PieChartProps.DetailPopoverContentFunction<T>;\n\n /**\n * Additional content that is displayed at the bottom of the detail popover.\n */\n detailPopoverFooter?: PieChartProps.DetailPopoverFooter<T>;\n\n /**\n * A function that determines the description of a segment that is displayed on the chart, unless `hideDescriptions` is set to `true`.\n * This is an optional description that explains the segment and is displayed underneath the label.\n * The function is called with the data object of each segment and is expected to return the description as a string.\n */\n segmentDescription?: PieChartProps.SegmentDescriptionFunction<T>;\n\n /**\n * Determines the maximum width of the popover.\n */\n detailPopoverSize?: PopoverProps.Size;\n\n /**\n * Hides legend beneath the chart when set to `true`.\n * We highly recommend that you leave this unspecified or set to `false`.\n */\n hideLegend?: boolean;\n\n /**\n * Hides label titles next to the chart segments when set to `true`.\n * We highly recommend that you leave this unspecified or set to `false`.\n */\n hideTitles?: boolean;\n\n /**\n * Hides the label descriptions next to the chart segments when set to `true`.\n */\n hideDescriptions?: boolean;\n\n /**\n * Hides the default filtering dropdown when set to `true`.\n * You can still display additional filters with the `additionalFilters` slot.\n */\n hideFilter?: boolean;\n\n /**\n * Additional metric number that's displayed in the center of the chart if `variant` is set to `donut`.\n */\n innerMetricValue?: string;\n\n /**\n * Additional description that's displayed in the center of the chart below `innerMetricValue` if `variant` is set to `donut`.\n * This is usually the unit of the `innerMetricValue`.\n */\n innerMetricDescription?: string;\n\n /**\n * Title for the legend.\n */\n legendTitle?: string;\n\n /**\n * Additional filters that you can add above the chart component.\n * Make sure you update the `data` property when any of your custom filters change the data that's displayed.\n */\n additionalFilters?: React.ReactNode;\n\n /**\n * Specifies the currently highlighted data segment. Highlighting is typically the result of\n * a user hovering over or selecting a segment in the chart or the legend.\n * A value of `null` means no segment is being highlighted.\n *\n * - If you don't set this property, segments are highlighted automatically when a user hovers over or selects one of the triggers (that is, uncontrolled behavior).\n * - If you explicitly set this property, you must set an `onHighlightChange` listener to update this property when a segment should be highlighted (that is, controlled behavior).\n */\n highlightedSegment?: T | null;\n\n /**\n * An array of data segment objects that determines which data segments are currently visible (that is, not filtered out).\n *\n * - If you don't set this property, segments are filtered automatically when using the default filtering of the component (that is, uncontrolled behavior).\n * - If you explicitly set this property, you must set an `onFilterChange` listener to update this property when the list of filtered segments changes (that is, controlled behavior).\n */\n visibleSegments?: ReadonlyArray<T>;\n\n /**\n * Specifies the current status of loading data.\n * * `loading` - Indicates that data fetching is in progress.\n * * `finished` - Indicates that data has loaded successfully.\n * * `error` - Indicates that an error occurred during fetch. You should provide an option to enable the user to recover.\n **/\n statusType?: 'loading' | 'finished' | 'error';\n\n /**\n * Content that's displayed when the data passed to the component is empty.\n */\n empty?: React.ReactNode;\n\n /**\n * Content that's displayed when there is no data to display because it doesn't match the specified filter.\n */\n noMatch?: React.ReactNode;\n\n /**\n * Text that's displayed when the chart is loading (that is, when `statusType` is set to `loading`).\n * @i18n\n */\n loadingText?: string;\n\n /**\n * Text that's displayed when the chart is in error state (that is, when `statusType` is set to `error`).\n * @i18n\n */\n errorText?: string;\n\n /**\n * Text for the recovery button that's displayed next to the error text.\n * @i18n\n **/\n recoveryText?: string;\n\n /**\n * Called when the user clicks the recovery button that appears when there is an error state.\n * Use this to enable the user to retry a failed request or provide another option for the user\n * to recover from the error.\n */\n onRecoveryClick?: NonCancelableEventHandler;\n\n /**\n * Called when the highlighted segmented changes because of a user interaction.\n */\n onHighlightChange?: NonCancelableEventHandler<PieChartProps.HighlightChangeDetail<T>>;\n\n /**\n * Called when the values of the internal filter component changes.\n * This isn't called for any custom filter components you've defined in `additionalFilters`.\n */\n onFilterChange?: NonCancelableEventHandler<PieChartProps.FilterChangeDetail<T>>;\n\n /**\n * ARIA label that's assigned to the chart. It should match the visible label on the page\n * (for example, in the container header). Use either `ariaLabel` or `ariaLabelledby` (you can't use both).\n */\n ariaLabel?: string;\n\n /**\n * Sets `aria-labelledby` on the chart. If there is a visible label for the chart on the page\n * (for example, in the container header), set this property to the ID of that header element.\n * Use either `ariaLabel` or `ariaLabelledby` (you can't use both).\n */\n ariaLabelledby?: string;\n\n /**\n * A description of the chart that assistive technologies can use (through `aria-describedby` and `<title>`).\n * Provide a concise summary of the data visualized in the chart.\n */\n ariaDescription?: string;\n\n /**\n * An object that contains all of the localized strings required by the component.\n * @i18n\n */\n i18nStrings?: PieChartProps.I18nStrings;\n\n /**\n * Enable this property to make the chart fit into the available height of the parent container.\n */\n fitHeight?: boolean;\n}\n\nexport namespace PieChartProps {\n export interface Datum {\n title: string;\n value: number;\n color?: string;\n }\n\n export type PieChartData = ReadonlyArray<Datum>;\n\n export interface DetailPopoverContentFunction<T = Datum> {\n (segment: T, visibleDataSum: number): ReadonlyArray<ChartDetailPair>;\n }\n\n export interface DetailPopoverFooter<T> {\n (segment: T): React.ReactNode;\n }\n\n export interface SegmentDescriptionFunction<T = Datum> {\n (segment: T, visibleDataSum: number): string;\n }\n\n export interface HighlightChangeDetail<T> {\n highlightedSegment: T | null;\n }\n\n export interface FilterChangeDetail<T> {\n visibleSegments: ReadonlyArray<T>;\n }\n\n export interface I18nStrings {\n /** Name of the \"Value\" key that is displayed in the details popover by default */\n detailsValue?: string;\n\n /** Name of the \"Percentage\" key that is displayed in the details popover by default */\n detailsPercentage?: string;\n\n /** Visible label of the default filter */\n filterLabel?: string;\n\n /** Placeholder text of the default filter */\n filterPlaceholder?: string;\n\n /** ARIA label for the default filter which is appended to any option that is selected */\n filterSelectedAriaLabel?: string;\n\n /** ARIA label that is associated with the legend in case there is no visible `legendTitle` defined */\n legendAriaLabel?: string;\n\n /** ARIA label for details popover dismiss button */\n detailPopoverDismissAriaLabel?: string;\n\n /** Name of the ARIA role description of the chart, e.g. \"pie chart\" */\n chartAriaRoleDescription?: string;\n\n /** Name of the ARIA role description of each segment, e.g. \"segment\" */\n segmentAriaRoleDescription?: string;\n }\n}\n"]}