@cloudscape-design/components 3.0.328 → 3.0.330

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 (92) hide show
  1. package/app-layout/runtime-api.d.ts.map +1 -1
  2. package/app-layout/runtime-api.js +5 -4
  3. package/app-layout/runtime-api.js.map +1 -1
  4. package/app-layout/visual-refresh/styles.css.js +69 -69
  5. package/app-layout/visual-refresh/styles.scoped.css +167 -167
  6. package/app-layout/visual-refresh/styles.selectors.js +69 -69
  7. package/area-chart/chart-container.d.ts.map +1 -1
  8. package/area-chart/chart-container.js +8 -15
  9. package/area-chart/chart-container.js.map +1 -1
  10. package/area-chart/internal.d.ts.map +1 -1
  11. package/area-chart/internal.js +2 -16
  12. package/area-chart/internal.js.map +1 -1
  13. package/area-chart/styles.css.js +6 -13
  14. package/area-chart/styles.scoped.css +10 -82
  15. package/area-chart/styles.selectors.js +6 -13
  16. package/expandable-section/styles.css.js +28 -31
  17. package/expandable-section/styles.scoped.css +85 -66
  18. package/expandable-section/styles.selectors.js +28 -31
  19. package/form-field/internal.d.ts.map +1 -1
  20. package/form-field/internal.js +5 -1
  21. package/form-field/internal.js.map +1 -1
  22. package/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
  23. package/internal/analytics/components/analytics-funnel.js +4 -1
  24. package/internal/analytics/components/analytics-funnel.js.map +1 -1
  25. package/internal/analytics/interfaces.d.ts +2 -0
  26. package/internal/analytics/interfaces.d.ts.map +1 -1
  27. package/internal/analytics/interfaces.js.map +1 -1
  28. package/internal/analytics/selectors.d.ts +1 -0
  29. package/internal/analytics/selectors.d.ts.map +1 -1
  30. package/internal/analytics/selectors.js +1 -0
  31. package/internal/analytics/selectors.js.map +1 -1
  32. package/internal/components/cartesian-chart/chart-container.d.ts +11 -0
  33. package/internal/components/cartesian-chart/chart-container.d.ts.map +1 -0
  34. package/internal/components/cartesian-chart/chart-container.js +15 -0
  35. package/internal/components/cartesian-chart/chart-container.js.map +1 -0
  36. package/internal/components/cartesian-chart/styles.css.js +23 -21
  37. package/internal/components/cartesian-chart/styles.scoped.css +37 -25
  38. package/internal/components/cartesian-chart/styles.selectors.js +23 -21
  39. package/internal/components/chart-wrapper/index.d.ts +17 -0
  40. package/internal/components/chart-wrapper/index.d.ts.map +1 -0
  41. package/internal/components/chart-wrapper/index.js +26 -0
  42. package/internal/components/chart-wrapper/index.js.map +1 -0
  43. package/internal/components/chart-wrapper/styles.css.js +11 -0
  44. package/internal/components/chart-wrapper/styles.scoped.css +155 -0
  45. package/internal/components/chart-wrapper/styles.selectors.js +12 -0
  46. package/internal/environment.js +1 -1
  47. package/internal/manifest.json +1 -1
  48. package/internal/plugins/drawers-controller.d.ts +2 -4
  49. package/internal/plugins/drawers-controller.d.ts.map +1 -1
  50. package/internal/plugins/drawers-controller.js.map +1 -1
  51. package/link/internal.d.ts.map +1 -1
  52. package/link/internal.js +9 -1
  53. package/link/internal.js.map +1 -1
  54. package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  55. package/mixed-line-bar-chart/chart-container.js +12 -19
  56. package/mixed-line-bar-chart/chart-container.js.map +1 -1
  57. package/mixed-line-bar-chart/internal.d.ts.map +1 -1
  58. package/mixed-line-bar-chart/internal.js +10 -15
  59. package/mixed-line-bar-chart/internal.js.map +1 -1
  60. package/mixed-line-bar-chart/styles.css.js +11 -19
  61. package/mixed-line-bar-chart/styles.scoped.css +18 -94
  62. package/mixed-line-bar-chart/styles.selectors.js +11 -19
  63. package/package.json +1 -1
  64. package/pie-chart/index.d.ts.map +1 -1
  65. package/pie-chart/index.js +26 -14
  66. package/pie-chart/index.js.map +1 -1
  67. package/pie-chart/pie-chart.d.ts +5 -3
  68. package/pie-chart/pie-chart.d.ts.map +1 -1
  69. package/pie-chart/pie-chart.js +14 -40
  70. package/pie-chart/pie-chart.js.map +1 -1
  71. package/pie-chart/styles.css.js +23 -27
  72. package/pie-chart/styles.scoped.css +38 -94
  73. package/pie-chart/styles.selectors.js +23 -27
  74. package/table/body-cell/styles.css.js +28 -28
  75. package/table/body-cell/styles.scoped.css +75 -69
  76. package/table/body-cell/styles.selectors.js +28 -28
  77. package/test-utils/dom/mixed-line-bar-chart/index.js +2 -1
  78. package/test-utils/dom/mixed-line-bar-chart/index.js.map +1 -1
  79. package/test-utils/dom/pie-chart/index.js +2 -1
  80. package/test-utils/dom/pie-chart/index.js.map +1 -1
  81. package/test-utils/selectors/mixed-line-bar-chart/index.js +2 -1
  82. package/test-utils/selectors/mixed-line-bar-chart/index.js.map +1 -1
  83. package/test-utils/selectors/pie-chart/index.js +2 -1
  84. package/test-utils/selectors/pie-chart/index.js.map +1 -1
  85. package/test-utils/tsconfig.tsbuildinfo +1 -1
  86. package/wizard/internal.d.ts.map +1 -1
  87. package/wizard/internal.js +5 -2
  88. package/wizard/internal.js.map +1 -1
  89. package/mixed-line-bar-chart/chart-filters.d.ts +0 -13
  90. package/mixed-line-bar-chart/chart-filters.d.ts.map +0 -1
  91. package/mixed-line-bar-chart/chart-filters.js +0 -22
  92. package/mixed-line-bar-chart/chart-filters.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"pie-chart.js","sourceRoot":"lib/default/","sources":["pie-chart/pie-chart.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjF,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,YAAY,MAAM,sCAAsC,CAAC;AAChE,OAAO,aAAa,MAAM,6CAA6C,CAAC;AACxE,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,oBAAoB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B,YAAY,EAAE,cAAc;gBAE3B,cAAc;gBACd,0BAA0B,IAAI,CAC7B,oBAAC,WAAW,IAAC,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,IAAG,0BAA0B,CAAe,CAC9E,CACY,CAChB,CACG,CACP,CACG,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport clsx from 'clsx';\nimport { pie } from 'd3-shape';\n\nimport { KeyCode } from '../internal/keycode';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport ChartPopover from '../internal/components/chart-popover';\nimport SeriesDetails from '../internal/components/chart-series-details';\nimport SeriesMarker from '../internal/components/chart-series-marker';\nimport ChartStatusContainer, { getChartStatus } from '../internal/components/chart-status-container';\nimport InternalBox from '../box/internal';\n\nimport Labels from './labels';\nimport { PieChartProps, SeriesInfo } from './interfaces';\nimport styles from './styles.css.js';\nimport { defaultDetails, dimensionsBySize, refreshDimensionsBySize } from './utils';\nimport Segments from './segments';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport ChartPlot, { ChartPlotRef } from '../internal/components/chart-plot';\nimport { SomeRequired } from '../internal/types';\nimport { useInternalI18n } from '../internal/i18n/context';\nimport { nodeBelongs } from '../internal/utils/node-belongs';\n\nexport interface InternalChartDatum<T> {\n index: number;\n color: string;\n datum: Readonly<T>;\n}\n\ninterface InternalPieChartProps<T extends PieChartProps.Datum>\n extends SomeRequired<\n Omit<PieChartProps<T>, 'onHighlightChange'>,\n 'variant' | 'size' | 'i18nStrings' | 'hideTitles' | 'hideDescriptions' | 'statusType'\n > {\n visibleData: Array<InternalChartDatum<T>>;\n width: number;\n\n highlightedSegment: T | null;\n onHighlightChange: (segment: null | T) => void;\n\n legendSegment: T | null;\n\n pinnedSegment: T | null;\n setPinnedSegment: React.Dispatch<React.SetStateAction<T | null>>;\n}\n\nexport interface TooltipData<T> {\n datum: T;\n trackRef: React.RefObject<SVGElement>;\n series: SeriesInfo;\n}\n\nexport default <T extends PieChartProps.Datum>({\n variant,\n size,\n i18nStrings,\n ariaLabel,\n ariaLabelledby,\n data,\n visibleData,\n ariaDescription,\n innerMetricValue,\n innerMetricDescription,\n hideTitles,\n hideDescriptions,\n detailPopoverContent,\n detailPopoverSize,\n detailPopoverFooter,\n width,\n additionalFilters,\n hideFilter,\n hideLegend,\n statusType,\n empty,\n noMatch,\n errorText,\n recoveryText,\n loadingText,\n onRecoveryClick,\n segmentDescription,\n highlightedSegment,\n onHighlightChange,\n legendSegment,\n pinnedSegment,\n setPinnedSegment,\n}: InternalPieChartProps<T>) => {\n const plotRef = useRef<ChartPlotRef>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const focusedSegmentRef = useRef<SVGGElement>(null);\n const popoverTrackRef = useRef<SVGCircleElement>(null);\n const popoverRef = useRef<HTMLElement | null>(null);\n const isRefresh = useVisualRefresh();\n\n const dimensions = isRefresh ? refreshDimensionsBySize[size] : dimensionsBySize[size];\n const radius = dimensions.outerRadius;\n\n const hasLabels = !(hideTitles && hideDescriptions);\n const height = 2 * (radius + dimensions.padding + (hasLabels ? dimensions.paddingLabels : 0));\n\n // Inner content is only available for donut charts and the inner description is not displayed for small charts\n const hasInnerContent = variant === 'donut' && (innerMetricValue || (innerMetricDescription && size !== 'small'));\n\n const innerMetricId = useUniqueId('awsui-pie-chart__inner');\n\n const [isTooltipOpen, setTooltipOpen] = useState<boolean>(false);\n const [tooltipData, setTooltipData] = useState<TooltipData<T>>();\n\n const { pieData, dataSum } = useMemo(() => {\n const dataSum = visibleData.reduce((sum, d) => sum + d.datum.value, 0);\n\n const pieFactory = pie<InternalChartDatum<T>>()\n // Minimum 1% segment size\n .value(d => (d.datum.value < dataSum / 100 ? dataSum / 100 : d.datum.value))\n .sort(null);\n\n // Filter out segments with value of zero or below\n const pieData = pieFactory(visibleData.filter(d => d.datum.value > 0));\n\n return { pieData, dataSum };\n }, [visibleData]);\n\n const highlightedSegmentIndex = useMemo(() => {\n for (let index = 0; index < pieData.length; index++) {\n if (pieData[index].data.datum === highlightedSegment) {\n return index;\n }\n }\n return null;\n }, [pieData, highlightedSegment]);\n\n const detailPopoverFooterContent = useMemo(\n () => (detailPopoverFooter && highlightedSegment ? detailPopoverFooter(highlightedSegment) : null),\n [detailPopoverFooter, highlightedSegment]\n );\n\n const i18n = useInternalI18n('pie-chart');\n const detailFunction = detailPopoverContent || defaultDetails(i18n, i18nStrings);\n const details = tooltipData ? detailFunction(tooltipData.datum, dataSum) : [];\n const tooltipContent = tooltipData && <SeriesDetails details={details} />;\n\n const { isEmpty, showChart } = getChartStatus({ externalData: data, visibleData: pieData, statusType });\n\n // Pie charts have a special condition for empty/noMatch due to how zero-value segments are handled.\n const isNoMatch = isEmpty && visibleData.length !== data.length;\n\n const reserveLegendSpace = !showChart && !hideLegend;\n const reserveFilterSpace = statusType !== 'finished' && !isNoMatch && (!hideFilter || additionalFilters);\n\n const popoverDismissedRecently = useRef(false);\n const escapePressed = useRef(false);\n\n const highlightSegment = useCallback(\n (internalDatum: InternalChartDatum<T>) => {\n const segment = internalDatum.datum;\n if (segment !== highlightedSegment) {\n onHighlightChange(segment);\n }\n\n if (popoverTrackRef.current) {\n setTooltipData({\n datum: internalDatum.datum,\n series: {\n color: internalDatum.color,\n index: internalDatum.index,\n label: internalDatum.datum.title,\n markerType: 'rectangle',\n },\n trackRef: popoverTrackRef,\n });\n setTooltipOpen(true);\n }\n },\n [highlightedSegment, setTooltipOpen, onHighlightChange]\n );\n\n const clearHighlightedSegment = useCallback(() => {\n setTooltipOpen(false);\n onHighlightChange(null);\n }, [onHighlightChange, setTooltipOpen]);\n\n useEffect(() => {\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n clearHighlightedSegment();\n escapePressed.current = true;\n }\n };\n document.addEventListener('keydown', onKeyDown);\n return () => document.removeEventListener('keydown', onKeyDown);\n }, [clearHighlightedSegment]);\n\n const onMouseDown = useCallback(\n (internalDatum: InternalChartDatum<T>) => {\n if (pinnedSegment === internalDatum.datum) {\n setPinnedSegment(null);\n clearHighlightedSegment();\n } else {\n setPinnedSegment(internalDatum.datum);\n highlightSegment(internalDatum);\n }\n },\n [pinnedSegment, clearHighlightedSegment, setPinnedSegment, highlightSegment]\n );\n const onMouseOver = useCallback(\n (internalDatum: InternalChartDatum<T>) => {\n if (escapePressed.current) {\n escapePressed.current = false;\n return;\n }\n if (pinnedSegment !== null) {\n return;\n }\n highlightSegment(internalDatum);\n },\n [pinnedSegment, highlightSegment]\n );\n const onMouseOut = useCallback(\n (event: React.MouseEvent<SVGElement, MouseEvent>) => {\n if (pinnedSegment !== null || popoverRef.current?.contains(event.relatedTarget as Node)) {\n return;\n }\n\n clearHighlightedSegment();\n },\n [pinnedSegment, clearHighlightedSegment]\n );\n const onKeyDown = useCallback(\n (event: React.KeyboardEvent) => {\n const keyCode = event.keyCode;\n if (\n keyCode !== KeyCode.right &&\n keyCode !== KeyCode.left &&\n keyCode !== KeyCode.enter &&\n keyCode !== KeyCode.space\n ) {\n return;\n }\n\n event.preventDefault();\n\n let nextIndex = highlightedSegmentIndex || 0;\n const MAX = pieData.length - 1;\n if (keyCode === KeyCode.right) {\n nextIndex++;\n if (nextIndex > MAX) {\n nextIndex = 0;\n }\n } else if (keyCode === KeyCode.left) {\n nextIndex--;\n if (nextIndex < 0) {\n nextIndex = MAX;\n }\n }\n if (keyCode === KeyCode.enter || keyCode === KeyCode.space) {\n setPinnedSegment(pieData[nextIndex].data.datum);\n }\n highlightSegment(pieData[nextIndex].data);\n },\n [setPinnedSegment, highlightSegment, pieData, highlightedSegmentIndex]\n );\n const onFocus = useCallback(\n (_event: any, target: 'keyboard' | 'mouse') => {\n // We need to make sure that we do not re-show the popover when we focus the segment after the popover is dismissed.\n // Normally we would check `event.relatedTarget` for the previously focused element,\n // but this is not supported for SVG elements in IE11. The workaround is this `popoverDismissedRecently` ref.\n if (pinnedSegment !== null || popoverDismissedRecently.current || target === 'mouse') {\n return;\n }\n\n const segment = highlightedSegment || legendSegment || pieData[0].data.datum;\n const matched = pieData.filter(d => d.data.datum === segment);\n highlightSegment(matched[0].data);\n },\n [pinnedSegment, pieData, highlightSegment, highlightedSegment, legendSegment]\n );\n\n const onBlur = useCallback(\n (event: React.FocusEvent) => {\n const blurTarget = event.relatedTarget || event.target;\n if (blurTarget === null || !(blurTarget instanceof Element) || !nodeBelongs(containerRef.current, blurTarget)) {\n // We only need to close the tooltip and remove the pinned segment so that we keep track of the current\n // highlighted legendSeries. using clearHighlightedSegment() would set the legendSeries to null, in that case\n // using Keyboard Tab will always highlight the first legend item in the legend component.\n setTooltipOpen(false);\n setPinnedSegment(null);\n }\n },\n [setPinnedSegment]\n );\n const onPopoverDismiss = (outsideClick?: boolean) => {\n setTooltipOpen(false);\n setPinnedSegment(null);\n\n if (!outsideClick) {\n // The delay is needed to bypass focus events caused by click or keypress needed to unpin the popover.\n setTimeout(() => {\n popoverDismissedRecently.current = true;\n plotRef.current!.focusApplication();\n popoverDismissedRecently.current = false;\n }, 0);\n } else {\n onHighlightChange(null);\n }\n };\n\n const onPopoverLeave = (event: React.MouseEvent) => {\n if (pinnedSegment !== null || focusedSegmentRef.current!.contains(event.relatedTarget as Node)) {\n return;\n }\n clearHighlightedSegment();\n };\n\n return (\n <div\n className={clsx(styles.content, styles[`content--${size}`], {\n [styles['content--without-labels']]: !hasLabels,\n [styles['content--reserve-filter']]: reserveFilterSpace,\n [styles['content--reserve-legend']]: reserveLegendSpace,\n })}\n >\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 {showChart && (\n <div className={styles['chart-container']} ref={containerRef}>\n <ChartPlot\n ref={plotRef}\n width={width}\n height={height}\n transform={`translate(${width / 2} ${height / 2})`}\n isPrecise={true}\n isClickable={!isTooltipOpen}\n ariaLabel={ariaLabel}\n ariaLabelledby={ariaLabelledby}\n ariaDescription={ariaDescription}\n ariaDescribedby={hasInnerContent ? innerMetricId : undefined}\n ariaRoleDescription={i18nStrings?.chartAriaRoleDescription}\n ariaLiveRegion={tooltipContent}\n activeElementRef={focusedSegmentRef}\n activeElementKey={highlightedSegmentIndex?.toString()}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyDown={onKeyDown}\n onMouseOut={onMouseOut}\n >\n <Segments\n pieData={pieData}\n size={size}\n variant={variant}\n focusedSegmentRef={focusedSegmentRef}\n popoverTrackRef={popoverTrackRef}\n highlightedSegment={highlightedSegment}\n segmentAriaRoleDescription={i18nStrings?.segmentAriaRoleDescription}\n onMouseDown={onMouseDown}\n onMouseOver={onMouseOver}\n onMouseOut={onMouseOut}\n />\n {hasLabels && (\n <Labels\n pieData={pieData}\n size={size}\n segmentDescription={segmentDescription}\n visibleDataSum={dataSum}\n hideTitles={hideTitles}\n hideDescriptions={hideDescriptions}\n highlightedSegment={highlightedSegment}\n containerRef={containerRef}\n />\n )}\n </ChartPlot>\n {hasInnerContent && (\n <div className={styles['inner-content']} id={innerMetricId}>\n {innerMetricValue && (\n <InternalBox variant={size === 'small' ? 'h3' : 'h1'} tagOverride=\"div\" color=\"inherit\" padding=\"n\">\n {innerMetricValue}\n </InternalBox>\n )}\n {innerMetricDescription && size !== 'small' && (\n <InternalBox variant=\"h3\" color=\"text-body-secondary\" tagOverride=\"div\" padding=\"n\">\n {innerMetricDescription}\n </InternalBox>\n )}\n </div>\n )}\n {isTooltipOpen && tooltipData && (\n <ChartPopover\n ref={popoverRef}\n title={\n tooltipData.series && (\n <InternalBox className={styles['popover-header']} variant=\"strong\">\n <SeriesMarker color={tooltipData.series.color} type={tooltipData.series.markerType} />{' '}\n {tooltipData.series.label}\n </InternalBox>\n )\n }\n trackRef={tooltipData.trackRef}\n trackKey={tooltipData.series.index}\n dismissButton={pinnedSegment !== null}\n dismissAriaLabel={i18nStrings.detailPopoverDismissAriaLabel}\n onDismiss={onPopoverDismiss}\n container={plotRef.current?.svg || null}\n size={detailPopoverSize}\n onMouseLeave={onPopoverLeave}\n >\n {tooltipContent}\n {detailPopoverFooterContent && (\n <InternalBox margin={{ top: 's' }}>{detailPopoverFooterContent}</InternalBox>\n )}\n </ChartPopover>\n )}\n </div>\n )}\n </div>\n );\n};\n"]}
1
+ {"version":3,"file":"pie-chart.js","sourceRoot":"lib/default/","sources":["pie-chart/pie-chart.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,YAAY,MAAM,sCAAsC,CAAC;AAChE,OAAO,aAAa,MAAM,6CAA6C,CAAC;AACxE,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AACpF,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,SAA2B,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAiC7D,eAAe,CAAgC,EAC7C,OAAO,EACP,IAAI,EACJ,WAAW,EACX,SAAS,EACT,cAAc,EACd,eAAe,EACf,gBAA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vB,YAAY,EAAE,cAAc;YAE3B,cAAc;YACd,0BAA0B,IAAI,oBAAC,WAAW,IAAC,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,IAAG,0BAA0B,CAAe,CAC/F,CAChB,CACG,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { PieArcDatum } from 'd3-shape';\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\n\nimport { KeyCode } from '../internal/keycode';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport ChartPopover from '../internal/components/chart-popover';\nimport SeriesDetails from '../internal/components/chart-series-details';\nimport SeriesMarker from '../internal/components/chart-series-marker';\nimport InternalBox from '../box/internal';\n\nimport Labels from './labels';\nimport { PieChartProps, SeriesInfo } from './interfaces';\nimport styles from './styles.css.js';\nimport { defaultDetails, dimensionsBySize, refreshDimensionsBySize } from './utils';\nimport Segments from './segments';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport ChartPlot, { ChartPlotRef } from '../internal/components/chart-plot';\nimport { SomeRequired } from '../internal/types';\nimport { useInternalI18n } from '../internal/i18n/context';\nimport { nodeBelongs } from '../internal/utils/node-belongs';\n\nexport interface InternalChartDatum<T> {\n index: number;\n color: string;\n datum: Readonly<T>;\n}\n\ninterface InternalPieChartProps<T extends PieChartProps.Datum>\n extends SomeRequired<\n Omit<PieChartProps<T>, 'onHighlightChange' | 'statusType'>,\n 'variant' | 'size' | 'i18nStrings' | 'hideTitles' | 'hideDescriptions'\n > {\n width: number;\n\n highlightedSegment: T | null;\n onHighlightChange: (segment: null | T) => void;\n\n legendSegment: T | null;\n\n pinnedSegment: T | null;\n setPinnedSegment: React.Dispatch<React.SetStateAction<T | null>>;\n\n pieData: PieArcDatum<InternalChartDatum<T>>[];\n dataSum: number;\n}\n\nexport interface TooltipData<T> {\n datum: T;\n trackRef: React.RefObject<SVGElement>;\n series: SeriesInfo;\n}\n\nexport default <T extends PieChartProps.Datum>({\n variant,\n size,\n i18nStrings,\n ariaLabel,\n ariaLabelledby,\n ariaDescription,\n innerMetricValue,\n innerMetricDescription,\n hideTitles,\n hideDescriptions,\n detailPopoverContent,\n detailPopoverSize,\n detailPopoverFooter,\n width,\n segmentDescription,\n highlightedSegment,\n onHighlightChange,\n legendSegment,\n pinnedSegment,\n setPinnedSegment,\n pieData,\n dataSum,\n}: InternalPieChartProps<T>) => {\n const plotRef = useRef<ChartPlotRef>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const focusedSegmentRef = useRef<SVGGElement>(null);\n const popoverTrackRef = useRef<SVGCircleElement>(null);\n const popoverRef = useRef<HTMLElement | null>(null);\n const isRefresh = useVisualRefresh();\n\n const dimensions = isRefresh ? refreshDimensionsBySize[size] : dimensionsBySize[size];\n const radius = dimensions.outerRadius;\n\n const hasLabels = !(hideTitles && hideDescriptions);\n const height = 2 * (radius + dimensions.padding + (hasLabels ? dimensions.paddingLabels : 0));\n\n // Inner content is only available for donut charts and the inner description is not displayed for small charts\n const hasInnerContent = variant === 'donut' && (innerMetricValue || (innerMetricDescription && size !== 'small'));\n\n const innerMetricId = useUniqueId('awsui-pie-chart__inner');\n\n const [isTooltipOpen, setTooltipOpen] = useState<boolean>(false);\n const [tooltipData, setTooltipData] = useState<TooltipData<T>>();\n\n const highlightedSegmentIndex = useMemo(() => {\n for (let index = 0; index < pieData.length; index++) {\n if (pieData[index].data.datum === highlightedSegment) {\n return index;\n }\n }\n return null;\n }, [pieData, highlightedSegment]);\n\n const detailPopoverFooterContent = useMemo(\n () => (detailPopoverFooter && highlightedSegment ? detailPopoverFooter(highlightedSegment) : null),\n [detailPopoverFooter, highlightedSegment]\n );\n\n const i18n = useInternalI18n('pie-chart');\n const detailFunction = detailPopoverContent || defaultDetails(i18n, i18nStrings);\n const details = tooltipData ? detailFunction(tooltipData.datum, dataSum) : [];\n const tooltipContent = tooltipData && <SeriesDetails details={details} />;\n\n const popoverDismissedRecently = useRef(false);\n const escapePressed = useRef(false);\n\n const highlightSegment = useCallback(\n (internalDatum: InternalChartDatum<T>) => {\n const segment = internalDatum.datum;\n if (segment !== highlightedSegment) {\n onHighlightChange(segment);\n }\n\n if (popoverTrackRef.current) {\n setTooltipData({\n datum: internalDatum.datum,\n series: {\n color: internalDatum.color,\n index: internalDatum.index,\n label: internalDatum.datum.title,\n markerType: 'rectangle',\n },\n trackRef: popoverTrackRef,\n });\n setTooltipOpen(true);\n }\n },\n [highlightedSegment, setTooltipOpen, onHighlightChange]\n );\n\n const clearHighlightedSegment = useCallback(() => {\n setTooltipOpen(false);\n onHighlightChange(null);\n }, [onHighlightChange, setTooltipOpen]);\n\n useEffect(() => {\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n clearHighlightedSegment();\n escapePressed.current = true;\n }\n };\n document.addEventListener('keydown', onKeyDown);\n return () => document.removeEventListener('keydown', onKeyDown);\n }, [clearHighlightedSegment]);\n\n const onMouseDown = useCallback(\n (internalDatum: InternalChartDatum<T>) => {\n if (pinnedSegment === internalDatum.datum) {\n setPinnedSegment(null);\n clearHighlightedSegment();\n } else {\n setPinnedSegment(internalDatum.datum);\n highlightSegment(internalDatum);\n }\n },\n [pinnedSegment, clearHighlightedSegment, setPinnedSegment, highlightSegment]\n );\n const onMouseOver = useCallback(\n (internalDatum: InternalChartDatum<T>) => {\n if (escapePressed.current) {\n escapePressed.current = false;\n return;\n }\n if (pinnedSegment !== null) {\n return;\n }\n highlightSegment(internalDatum);\n },\n [pinnedSegment, highlightSegment]\n );\n const onMouseOut = useCallback(\n (event: React.MouseEvent<SVGElement, MouseEvent>) => {\n if (pinnedSegment !== null || popoverRef.current?.contains(event.relatedTarget as Node)) {\n return;\n }\n\n clearHighlightedSegment();\n },\n [pinnedSegment, clearHighlightedSegment]\n );\n const onKeyDown = useCallback(\n (event: React.KeyboardEvent) => {\n const keyCode = event.keyCode;\n if (\n keyCode !== KeyCode.right &&\n keyCode !== KeyCode.left &&\n keyCode !== KeyCode.enter &&\n keyCode !== KeyCode.space\n ) {\n return;\n }\n\n event.preventDefault();\n\n let nextIndex = highlightedSegmentIndex || 0;\n const MAX = pieData.length - 1;\n if (keyCode === KeyCode.right) {\n nextIndex++;\n if (nextIndex > MAX) {\n nextIndex = 0;\n }\n } else if (keyCode === KeyCode.left) {\n nextIndex--;\n if (nextIndex < 0) {\n nextIndex = MAX;\n }\n }\n if (keyCode === KeyCode.enter || keyCode === KeyCode.space) {\n setPinnedSegment(pieData[nextIndex].data.datum);\n }\n highlightSegment(pieData[nextIndex].data);\n },\n [setPinnedSegment, highlightSegment, pieData, highlightedSegmentIndex]\n );\n const onFocus = useCallback(\n (_event: any, target: 'keyboard' | 'mouse') => {\n // We need to make sure that we do not re-show the popover when we focus the segment after the popover is dismissed.\n // Normally we would check `event.relatedTarget` for the previously focused element,\n // but this is not supported for SVG elements in IE11. The workaround is this `popoverDismissedRecently` ref.\n if (pinnedSegment !== null || popoverDismissedRecently.current || target === 'mouse') {\n return;\n }\n\n const segment = highlightedSegment || legendSegment || pieData[0].data.datum;\n const matched = pieData.filter(d => d.data.datum === segment);\n highlightSegment(matched[0].data);\n },\n [pinnedSegment, pieData, highlightSegment, highlightedSegment, legendSegment]\n );\n\n const onBlur = useCallback(\n (event: React.FocusEvent) => {\n const blurTarget = event.relatedTarget || event.target;\n if (blurTarget === null || !(blurTarget instanceof Element) || !nodeBelongs(containerRef.current, blurTarget)) {\n // We only need to close the tooltip and remove the pinned segment so that we keep track of the current\n // highlighted legendSeries. using clearHighlightedSegment() would set the legendSeries to null, in that case\n // using Keyboard Tab will always highlight the first legend item in the legend component.\n setTooltipOpen(false);\n setPinnedSegment(null);\n }\n },\n [setPinnedSegment]\n );\n const onPopoverDismiss = (outsideClick?: boolean) => {\n setTooltipOpen(false);\n setPinnedSegment(null);\n\n if (!outsideClick) {\n // The delay is needed to bypass focus events caused by click or keypress needed to unpin the popover.\n setTimeout(() => {\n popoverDismissedRecently.current = true;\n plotRef.current!.focusApplication();\n popoverDismissedRecently.current = false;\n }, 0);\n } else {\n onHighlightChange(null);\n }\n };\n\n const onPopoverLeave = (event: React.MouseEvent) => {\n if (pinnedSegment !== null || focusedSegmentRef.current!.contains(event.relatedTarget as Node)) {\n return;\n }\n clearHighlightedSegment();\n };\n\n return (\n <div className={styles['chart-container']} ref={containerRef}>\n <ChartPlot\n ref={plotRef}\n width={width}\n height={height}\n transform={`translate(${width / 2} ${height / 2})`}\n isPrecise={true}\n isClickable={!isTooltipOpen}\n ariaLabel={ariaLabel}\n ariaLabelledby={ariaLabelledby}\n ariaDescription={ariaDescription}\n ariaDescribedby={hasInnerContent ? innerMetricId : undefined}\n ariaRoleDescription={i18nStrings?.chartAriaRoleDescription}\n ariaLiveRegion={tooltipContent}\n activeElementRef={focusedSegmentRef}\n activeElementKey={highlightedSegmentIndex?.toString()}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyDown={onKeyDown}\n onMouseOut={onMouseOut}\n >\n <Segments\n pieData={pieData}\n size={size}\n variant={variant}\n focusedSegmentRef={focusedSegmentRef}\n popoverTrackRef={popoverTrackRef}\n highlightedSegment={highlightedSegment}\n segmentAriaRoleDescription={i18nStrings?.segmentAriaRoleDescription}\n onMouseDown={onMouseDown}\n onMouseOver={onMouseOver}\n onMouseOut={onMouseOut}\n />\n {hasLabels && (\n <Labels\n pieData={pieData}\n size={size}\n segmentDescription={segmentDescription}\n visibleDataSum={dataSum}\n hideTitles={hideTitles}\n hideDescriptions={hideDescriptions}\n highlightedSegment={highlightedSegment}\n containerRef={containerRef}\n />\n )}\n </ChartPlot>\n {hasInnerContent && (\n <div className={styles['inner-content']} id={innerMetricId}>\n {innerMetricValue && (\n <InternalBox variant={size === 'small' ? 'h3' : 'h1'} tagOverride=\"div\" color=\"inherit\" padding=\"n\">\n {innerMetricValue}\n </InternalBox>\n )}\n {innerMetricDescription && size !== 'small' && (\n <InternalBox variant=\"h3\" color=\"text-body-secondary\" tagOverride=\"div\" padding=\"n\">\n {innerMetricDescription}\n </InternalBox>\n )}\n </div>\n )}\n {isTooltipOpen && tooltipData && (\n <ChartPopover\n ref={popoverRef}\n title={\n tooltipData.series && (\n <InternalBox className={styles['popover-header']} variant=\"strong\">\n <SeriesMarker color={tooltipData.series.color} type={tooltipData.series.markerType} />{' '}\n {tooltipData.series.label}\n </InternalBox>\n )\n }\n trackRef={tooltipData.trackRef}\n trackKey={tooltipData.series.index}\n dismissButton={pinnedSegment !== null}\n dismissAriaLabel={i18nStrings.detailPopoverDismissAriaLabel}\n onDismiss={onPopoverDismiss}\n container={plotRef.current?.svg || null}\n size={detailPopoverSize}\n onMouseLeave={onPopoverLeave}\n >\n {tooltipContent}\n {detailPopoverFooterContent && <InternalBox margin={{ top: 's' }}>{detailPopoverFooterContent}</InternalBox>}\n </ChartPopover>\n )}\n </div>\n );\n};\n"]}
@@ -1,32 +1,28 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "segment__path": "awsui_segment__path_1edmh_1ujwb_97",
5
- "segment": "awsui_segment_1edmh_1ujwb_97",
6
- "segment__hover": "awsui_segment__hover_1edmh_1ujwb_124",
7
- "label": "awsui_label_1edmh_1ujwb_138",
8
- "root": "awsui_root_1edmh_1ujwb_156",
9
- "filter-container": "awsui_filter-container_1edmh_1ujwb_170",
10
- "has-default-filter": "awsui_has-default-filter_1edmh_1ujwb_174",
11
- "content": "awsui_content_1edmh_1ujwb_178",
12
- "content--small": "awsui_content--small_1edmh_1ujwb_184",
13
- "content--without-labels": "awsui_content--without-labels_1edmh_1ujwb_187",
14
- "content--medium": "awsui_content--medium_1edmh_1ujwb_190",
15
- "content--large": "awsui_content--large_1edmh_1ujwb_196",
16
- "content--reserve-filter": "awsui_content--reserve-filter_1edmh_1ujwb_202",
17
- "content--reserve-legend": "awsui_content--reserve-legend_1edmh_1ujwb_205",
18
- "status-container": "awsui_status-container_1edmh_1ujwb_209",
19
- "chart-container": "awsui_chart-container_1edmh_1ujwb_213",
20
- "inner-content": "awsui_inner-content_1edmh_1ujwb_218",
21
- "segment__highlight": "awsui_segment__highlight_1edmh_1ujwb_232",
22
- "segment--dimmed": "awsui_segment--dimmed_1edmh_1ujwb_247",
23
- "segment--highlighted": "awsui_segment--highlighted_1edmh_1ujwb_250",
24
- "label--dimmed": "awsui_label--dimmed_1edmh_1ujwb_267",
25
- "label--align-right": "awsui_label--align-right_1edmh_1ujwb_270",
26
- "label-text": "awsui_label-text_1edmh_1ujwb_278",
27
- "label__description": "awsui_label__description_1edmh_1ujwb_286",
28
- "label-line": "awsui_label-line_1edmh_1ujwb_293",
29
- "label--highlighted": "awsui_label--highlighted_1edmh_1ujwb_297",
30
- "popover-header": "awsui_popover-header_1edmh_1ujwb_301"
4
+ "segment__path": "awsui_segment__path_1edmh_u8hsy_97",
5
+ "segment": "awsui_segment_1edmh_u8hsy_97",
6
+ "segment__hover": "awsui_segment__hover_1edmh_u8hsy_124",
7
+ "label": "awsui_label_1edmh_u8hsy_138",
8
+ "root": "awsui_root_1edmh_u8hsy_156",
9
+ "content": "awsui_content_1edmh_u8hsy_160",
10
+ "content--small": "awsui_content--small_1edmh_u8hsy_160",
11
+ "content--without-labels": "awsui_content--without-labels_1edmh_u8hsy_163",
12
+ "content--medium": "awsui_content--medium_1edmh_u8hsy_166",
13
+ "content--large": "awsui_content--large_1edmh_u8hsy_172",
14
+ "status-container": "awsui_status-container_1edmh_u8hsy_179",
15
+ "chart-container": "awsui_chart-container_1edmh_u8hsy_183",
16
+ "inner-content": "awsui_inner-content_1edmh_u8hsy_188",
17
+ "segment__highlight": "awsui_segment__highlight_1edmh_u8hsy_202",
18
+ "segment--dimmed": "awsui_segment--dimmed_1edmh_u8hsy_217",
19
+ "segment--highlighted": "awsui_segment--highlighted_1edmh_u8hsy_220",
20
+ "label--dimmed": "awsui_label--dimmed_1edmh_u8hsy_237",
21
+ "label--align-right": "awsui_label--align-right_1edmh_u8hsy_240",
22
+ "label-text": "awsui_label-text_1edmh_u8hsy_248",
23
+ "label__description": "awsui_label__description_1edmh_u8hsy_256",
24
+ "label-line": "awsui_label-line_1edmh_u8hsy_263",
25
+ "label--highlighted": "awsui_label--highlighted_1edmh_u8hsy_267",
26
+ "popover-header": "awsui_popover-header_1edmh_u8hsy_271"
31
27
  };
32
28
 
@@ -94,57 +94,57 @@ 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
- .awsui_segment__path_1edmh_1ujwb_97:not(#\9) {
97
+ .awsui_segment__path_1edmh_u8hsy_97:not(#\9) {
98
98
  transition: opacity var(--motion-duration-transition-quick-0viajb, 90ms) var(--motion-easing-transition-quick-191occ, linear);
99
99
  }
100
100
  @media (prefers-reduced-motion: reduce) {
101
- .awsui_segment__path_1edmh_1ujwb_97:not(#\9) {
101
+ .awsui_segment__path_1edmh_u8hsy_97:not(#\9) {
102
102
  animation: none;
103
103
  transition: none;
104
104
  }
105
105
  }
106
- .awsui-motion-disabled .awsui_segment__path_1edmh_1ujwb_97:not(#\9), .awsui-mode-entering .awsui_segment__path_1edmh_1ujwb_97:not(#\9) {
106
+ .awsui-motion-disabled .awsui_segment__path_1edmh_u8hsy_97:not(#\9), .awsui-mode-entering .awsui_segment__path_1edmh_u8hsy_97:not(#\9) {
107
107
  animation: none;
108
108
  transition: none;
109
109
  }
110
110
 
111
- .awsui_segment_1edmh_1ujwb_97:not(#\9) {
111
+ .awsui_segment_1edmh_u8hsy_97:not(#\9) {
112
112
  transition: opacity var(--motion-duration-transition-quick-0viajb, 90ms) var(--motion-easing-transition-quick-191occ, linear);
113
113
  }
114
114
  @media (prefers-reduced-motion: reduce) {
115
- .awsui_segment_1edmh_1ujwb_97:not(#\9) {
115
+ .awsui_segment_1edmh_u8hsy_97:not(#\9) {
116
116
  animation: none;
117
117
  transition: none;
118
118
  }
119
119
  }
120
- .awsui-motion-disabled .awsui_segment_1edmh_1ujwb_97:not(#\9), .awsui-mode-entering .awsui_segment_1edmh_1ujwb_97:not(#\9) {
120
+ .awsui-motion-disabled .awsui_segment_1edmh_u8hsy_97:not(#\9), .awsui-mode-entering .awsui_segment_1edmh_u8hsy_97:not(#\9) {
121
121
  animation: none;
122
122
  transition: none;
123
123
  }
124
- .awsui_segment_1edmh_1ujwb_97 > .awsui_segment__hover_1edmh_1ujwb_124:not(#\9) {
124
+ .awsui_segment_1edmh_u8hsy_97 > .awsui_segment__hover_1edmh_u8hsy_124:not(#\9) {
125
125
  transition: opacity var(--motion-duration-transition-quick-0viajb, 90ms) var(--motion-easing-transition-quick-191occ, linear);
126
126
  }
127
127
  @media (prefers-reduced-motion: reduce) {
128
- .awsui_segment_1edmh_1ujwb_97 > .awsui_segment__hover_1edmh_1ujwb_124:not(#\9) {
128
+ .awsui_segment_1edmh_u8hsy_97 > .awsui_segment__hover_1edmh_u8hsy_124:not(#\9) {
129
129
  animation: none;
130
130
  transition: none;
131
131
  }
132
132
  }
133
- .awsui-motion-disabled .awsui_segment_1edmh_1ujwb_97 > .awsui_segment__hover_1edmh_1ujwb_124:not(#\9), .awsui-mode-entering .awsui_segment_1edmh_1ujwb_97 > .awsui_segment__hover_1edmh_1ujwb_124:not(#\9) {
133
+ .awsui-motion-disabled .awsui_segment_1edmh_u8hsy_97 > .awsui_segment__hover_1edmh_u8hsy_124:not(#\9), .awsui-mode-entering .awsui_segment_1edmh_u8hsy_97 > .awsui_segment__hover_1edmh_u8hsy_124:not(#\9) {
134
134
  animation: none;
135
135
  transition: none;
136
136
  }
137
137
 
138
- .awsui_label_1edmh_1ujwb_138:not(#\9) {
138
+ .awsui_label_1edmh_u8hsy_138:not(#\9) {
139
139
  transition: opacity var(--motion-duration-transition-quick-0viajb, 90ms) var(--motion-easing-transition-quick-191occ, linear);
140
140
  }
141
141
  @media (prefers-reduced-motion: reduce) {
142
- .awsui_label_1edmh_1ujwb_138:not(#\9) {
142
+ .awsui_label_1edmh_u8hsy_138:not(#\9) {
143
143
  animation: none;
144
144
  transition: none;
145
145
  }
146
146
  }
147
- .awsui-motion-disabled .awsui_label_1edmh_1ujwb_138:not(#\9), .awsui-mode-entering .awsui_label_1edmh_1ujwb_138:not(#\9) {
147
+ .awsui-motion-disabled .awsui_label_1edmh_u8hsy_138:not(#\9), .awsui-mode-entering .awsui_label_1edmh_u8hsy_138:not(#\9) {
148
148
  animation: none;
149
149
  transition: none;
150
150
  }
@@ -153,95 +153,39 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
153
153
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
154
154
  SPDX-License-Identifier: Apache-2.0
155
155
  */
156
- .awsui_root_1edmh_1ujwb_156:not(#\9) {
157
- /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
158
- border-collapse: separate;
159
- border-spacing: 0;
160
- caption-side: top;
161
- cursor: auto;
162
- direction: ltr;
163
- empty-cells: show;
164
- font-family: serif;
165
- font-size: medium;
166
- font-style: normal;
167
- font-variant: normal;
168
- font-weight: normal;
169
- font-stretch: normal;
170
- line-height: normal;
171
- -webkit-hyphens: none;
172
- hyphens: none;
173
- letter-spacing: normal;
174
- list-style: disc outside none;
175
- tab-size: 8;
176
- text-align: left;
177
- text-align-last: auto;
178
- text-indent: 0;
179
- text-shadow: none;
180
- text-transform: none;
181
- visibility: visible;
182
- white-space: normal;
183
- widows: 2;
184
- word-spacing: normal;
185
- box-sizing: border-box;
186
- font-size: var(--font-body-m-size-7dign1, 14px);
187
- line-height: var(--font-body-m-line-height-rfgrp9, 22px);
188
- color: var(--color-text-body-default-su7kuo, #000716);
189
- font-weight: 400;
190
- font-family: var(--font-family-base-wn913o, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
191
- -webkit-font-smoothing: auto;
192
- -moz-osx-font-smoothing: auto;
193
- display: block;
194
- }
195
-
196
- .awsui_filter-container_1edmh_1ujwb_170:not(#\9) {
156
+ .awsui_root_1edmh_u8hsy_156:not(#\9) {
197
157
  /* used in test-utils */
198
158
  }
199
159
 
200
- .awsui_has-default-filter_1edmh_1ujwb_174 > :not(#\9):first-child {
201
- flex: 280px 0 1;
202
- }
203
-
204
- .awsui_content_1edmh_1ujwb_178:not(#\9) {
205
- display: flex;
206
- position: relative;
207
- justify-content: center;
208
- align-items: center;
209
- }
210
- .awsui_content_1edmh_1ujwb_178.awsui_content--small_1edmh_1ujwb_184:not(#\9) {
160
+ .awsui_content_1edmh_u8hsy_160.awsui_content--small_1edmh_u8hsy_160:not(#\9) {
211
161
  min-height: calc(2 * (50px + var(--space-xs-edba2s, 8px) + calc(2 * var(--font-body-m-line-height-rfgrp9, 22px))));
212
162
  }
213
- .awsui_content_1edmh_1ujwb_178.awsui_content--small_1edmh_1ujwb_184.awsui_content--without-labels_1edmh_1ujwb_187:not(#\9) {
163
+ .awsui_content_1edmh_u8hsy_160.awsui_content--small_1edmh_u8hsy_160.awsui_content--without-labels_1edmh_u8hsy_163:not(#\9) {
214
164
  min-height: calc(2 * (50px + var(--space-xs-edba2s, 8px)));
215
165
  }
216
- .awsui_content_1edmh_1ujwb_178.awsui_content--medium_1edmh_1ujwb_190:not(#\9) {
166
+ .awsui_content_1edmh_u8hsy_160.awsui_content--medium_1edmh_u8hsy_166:not(#\9) {
217
167
  min-height: calc(2 * (100px + var(--space-s-hdd878, 12px) + calc(2 * var(--font-body-m-line-height-rfgrp9, 22px))));
218
168
  }
219
- .awsui_content_1edmh_1ujwb_178.awsui_content--medium_1edmh_1ujwb_190.awsui_content--without-labels_1edmh_1ujwb_187:not(#\9) {
169
+ .awsui_content_1edmh_u8hsy_160.awsui_content--medium_1edmh_u8hsy_166.awsui_content--without-labels_1edmh_u8hsy_163:not(#\9) {
220
170
  min-height: calc(2 * (100px + var(--space-s-hdd878, 12px)));
221
171
  }
222
- .awsui_content_1edmh_1ujwb_178.awsui_content--large_1edmh_1ujwb_196:not(#\9) {
172
+ .awsui_content_1edmh_u8hsy_160.awsui_content--large_1edmh_u8hsy_172:not(#\9) {
223
173
  min-height: calc(2 * (140px + var(--space-s-hdd878, 12px) + calc(2 * var(--font-body-m-line-height-rfgrp9, 22px))));
224
174
  }
225
- .awsui_content_1edmh_1ujwb_178.awsui_content--large_1edmh_1ujwb_196.awsui_content--without-labels_1edmh_1ujwb_187:not(#\9) {
175
+ .awsui_content_1edmh_u8hsy_160.awsui_content--large_1edmh_u8hsy_172.awsui_content--without-labels_1edmh_u8hsy_163:not(#\9) {
226
176
  min-height: calc(2 * (140px + var(--space-s-hdd878, 12px)));
227
177
  }
228
- .awsui_content_1edmh_1ujwb_178.awsui_content--reserve-filter_1edmh_1ujwb_202:not(#\9) {
229
- margin-top: calc(2 * var(--font-body-m-line-height-rfgrp9, 22px));
230
- }
231
- .awsui_content_1edmh_1ujwb_178.awsui_content--reserve-legend_1edmh_1ujwb_205:not(#\9) {
232
- margin-bottom: calc(2 * var(--font-body-m-line-height-rfgrp9, 22px));
233
- }
234
178
 
235
- .awsui_status-container_1edmh_1ujwb_209:not(#\9) {
179
+ .awsui_status-container_1edmh_u8hsy_179:not(#\9) {
236
180
  /* used in test utils */
237
181
  }
238
182
 
239
- .awsui_chart-container_1edmh_1ujwb_213:not(#\9) {
183
+ .awsui_chart-container_1edmh_u8hsy_183:not(#\9) {
240
184
  display: flex;
241
185
  flex: 1;
242
186
  }
243
187
 
244
- .awsui_inner-content_1edmh_1ujwb_218:not(#\9) {
188
+ .awsui_inner-content_1edmh_u8hsy_188:not(#\9) {
245
189
  display: flex;
246
190
  position: absolute;
247
191
  flex-direction: column;
@@ -255,53 +199,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
255
199
  pointer-events: none;
256
200
  }
257
201
 
258
- .awsui_segment__highlight_1edmh_1ujwb_232:not(#\9) {
202
+ .awsui_segment__highlight_1edmh_u8hsy_202:not(#\9) {
259
203
  stroke: none;
260
204
  opacity: 0;
261
205
  }
262
206
 
263
- .awsui_segment_1edmh_1ujwb_97:not(#\9) {
207
+ .awsui_segment_1edmh_u8hsy_97:not(#\9) {
264
208
  stroke: var(--color-background-container-content-og3y0v, #ffffff);
265
209
  stroke-width: 2px;
266
210
  stroke-linejoin: round;
267
211
  opacity: 1;
268
212
  cursor: pointer;
269
213
  }
270
- .awsui_segment_1edmh_1ujwb_97:not(#\9):focus {
214
+ .awsui_segment_1edmh_u8hsy_97:not(#\9):focus {
271
215
  outline: none;
272
216
  }
273
- .awsui_segment_1edmh_1ujwb_97.awsui_segment--dimmed_1edmh_1ujwb_247:not(#\9) {
217
+ .awsui_segment_1edmh_u8hsy_97.awsui_segment--dimmed_1edmh_u8hsy_217:not(#\9) {
274
218
  opacity: 0.35;
275
219
  }
276
- .awsui_segment_1edmh_1ujwb_97.awsui_segment--highlighted_1edmh_1ujwb_250 > .awsui_segment__highlight_1edmh_1ujwb_232:not(#\9), .awsui_segment_1edmh_1ujwb_97:not(#\9):hover:not(.awsui_segment--dimmed_1edmh_1ujwb_247) > .awsui_segment__highlight_1edmh_1ujwb_232 {
220
+ .awsui_segment_1edmh_u8hsy_97.awsui_segment--highlighted_1edmh_u8hsy_220 > .awsui_segment__highlight_1edmh_u8hsy_202:not(#\9), .awsui_segment_1edmh_u8hsy_97:not(#\9):hover:not(.awsui_segment--dimmed_1edmh_u8hsy_217) > .awsui_segment__highlight_1edmh_u8hsy_202 {
277
221
  opacity: 1;
278
222
  }
279
223
 
280
- .awsui_label_1edmh_1ujwb_138:not(#\9) {
224
+ .awsui_label_1edmh_u8hsy_138:not(#\9) {
281
225
  color: var(--color-text-heading-default-18iw0k, #000716);
282
226
  opacity: 1;
283
227
  /* stylelint-disable-next-line selector-max-type */
284
228
  /* stylelint-disable-next-line selector-max-type */
285
229
  }
286
- .awsui_label_1edmh_1ujwb_138 > line:not(#\9) {
230
+ .awsui_label_1edmh_u8hsy_138 > line:not(#\9) {
287
231
  stroke: var(--color-stroke-chart-line-7sdstd, #7d8998);
288
232
  stroke-width: var(--border-divider-section-width-orq175, 2px);
289
233
  }
290
- .awsui_label_1edmh_1ujwb_138 > div:not(#\9) {
234
+ .awsui_label_1edmh_u8hsy_138 > div:not(#\9) {
291
235
  margin-top: -0.75em;
292
236
  }
293
- .awsui_label_1edmh_1ujwb_138.awsui_label--dimmed_1edmh_1ujwb_267:not(#\9) {
237
+ .awsui_label_1edmh_u8hsy_138.awsui_label--dimmed_1edmh_u8hsy_237:not(#\9) {
294
238
  opacity: 0.35;
295
239
  }
296
- .awsui_label_1edmh_1ujwb_138.awsui_label--align-right_1edmh_1ujwb_270:not(#\9) {
240
+ .awsui_label_1edmh_u8hsy_138.awsui_label--align-right_1edmh_u8hsy_240:not(#\9) {
297
241
  /* stylelint-disable-next-line selector-max-type */
298
242
  }
299
- .awsui_label_1edmh_1ujwb_138.awsui_label--align-right_1edmh_1ujwb_270 > div:not(#\9) {
243
+ .awsui_label_1edmh_u8hsy_138.awsui_label--align-right_1edmh_u8hsy_240 > div:not(#\9) {
300
244
  text-align: right;
301
245
  }
302
246
 
303
247
  /* stylelint-disable-next-line selector-max-type */
304
- .awsui_label-text_1edmh_1ujwb_278 > text:not(#\9) {
248
+ .awsui_label-text_1edmh_u8hsy_248 > text:not(#\9) {
305
249
  font-size: var(--font-body-m-size-7dign1, 14px);
306
250
  line-height: var(--font-body-m-line-height-rfgrp9, 22px);
307
251
  font-weight: var(--font-display-label-weight-io22e5, 700);
@@ -309,22 +253,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
309
253
  dominant-baseline: middle;
310
254
  }
311
255
 
312
- text.awsui_label__description_1edmh_1ujwb_286:not(#\9) {
256
+ text.awsui_label__description_1edmh_u8hsy_256:not(#\9) {
313
257
  font-size: var(--font-chart-detail-size-gtiv3j, 12px);
314
258
  font-weight: 400;
315
259
  color: var(--color-text-group-label-qtmgp9, #414d5c);
316
260
  fill: var(--color-text-group-label-qtmgp9, #414d5c);
317
261
  }
318
262
 
319
- .awsui_label-line_1edmh_1ujwb_293:not(#\9) {
263
+ .awsui_label-line_1edmh_u8hsy_263:not(#\9) {
320
264
  /* used in component code */
321
265
  }
322
266
 
323
- .awsui_label--highlighted_1edmh_1ujwb_297:not(#\9) {
267
+ .awsui_label--highlighted_1edmh_u8hsy_267:not(#\9) {
324
268
  /* used in test-utils */
325
269
  }
326
270
 
327
- .awsui_popover-header_1edmh_1ujwb_301:not(#\9) {
271
+ .awsui_popover-header_1edmh_u8hsy_271:not(#\9) {
328
272
  display: inline-flex;
329
273
  align-items: flex-start;
330
274
  }
@@ -2,32 +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
- "segment__path": "awsui_segment__path_1edmh_1ujwb_97",
6
- "segment": "awsui_segment_1edmh_1ujwb_97",
7
- "segment__hover": "awsui_segment__hover_1edmh_1ujwb_124",
8
- "label": "awsui_label_1edmh_1ujwb_138",
9
- "root": "awsui_root_1edmh_1ujwb_156",
10
- "filter-container": "awsui_filter-container_1edmh_1ujwb_170",
11
- "has-default-filter": "awsui_has-default-filter_1edmh_1ujwb_174",
12
- "content": "awsui_content_1edmh_1ujwb_178",
13
- "content--small": "awsui_content--small_1edmh_1ujwb_184",
14
- "content--without-labels": "awsui_content--without-labels_1edmh_1ujwb_187",
15
- "content--medium": "awsui_content--medium_1edmh_1ujwb_190",
16
- "content--large": "awsui_content--large_1edmh_1ujwb_196",
17
- "content--reserve-filter": "awsui_content--reserve-filter_1edmh_1ujwb_202",
18
- "content--reserve-legend": "awsui_content--reserve-legend_1edmh_1ujwb_205",
19
- "status-container": "awsui_status-container_1edmh_1ujwb_209",
20
- "chart-container": "awsui_chart-container_1edmh_1ujwb_213",
21
- "inner-content": "awsui_inner-content_1edmh_1ujwb_218",
22
- "segment__highlight": "awsui_segment__highlight_1edmh_1ujwb_232",
23
- "segment--dimmed": "awsui_segment--dimmed_1edmh_1ujwb_247",
24
- "segment--highlighted": "awsui_segment--highlighted_1edmh_1ujwb_250",
25
- "label--dimmed": "awsui_label--dimmed_1edmh_1ujwb_267",
26
- "label--align-right": "awsui_label--align-right_1edmh_1ujwb_270",
27
- "label-text": "awsui_label-text_1edmh_1ujwb_278",
28
- "label__description": "awsui_label__description_1edmh_1ujwb_286",
29
- "label-line": "awsui_label-line_1edmh_1ujwb_293",
30
- "label--highlighted": "awsui_label--highlighted_1edmh_1ujwb_297",
31
- "popover-header": "awsui_popover-header_1edmh_1ujwb_301"
5
+ "segment__path": "awsui_segment__path_1edmh_u8hsy_97",
6
+ "segment": "awsui_segment_1edmh_u8hsy_97",
7
+ "segment__hover": "awsui_segment__hover_1edmh_u8hsy_124",
8
+ "label": "awsui_label_1edmh_u8hsy_138",
9
+ "root": "awsui_root_1edmh_u8hsy_156",
10
+ "content": "awsui_content_1edmh_u8hsy_160",
11
+ "content--small": "awsui_content--small_1edmh_u8hsy_160",
12
+ "content--without-labels": "awsui_content--without-labels_1edmh_u8hsy_163",
13
+ "content--medium": "awsui_content--medium_1edmh_u8hsy_166",
14
+ "content--large": "awsui_content--large_1edmh_u8hsy_172",
15
+ "status-container": "awsui_status-container_1edmh_u8hsy_179",
16
+ "chart-container": "awsui_chart-container_1edmh_u8hsy_183",
17
+ "inner-content": "awsui_inner-content_1edmh_u8hsy_188",
18
+ "segment__highlight": "awsui_segment__highlight_1edmh_u8hsy_202",
19
+ "segment--dimmed": "awsui_segment--dimmed_1edmh_u8hsy_217",
20
+ "segment--highlighted": "awsui_segment--highlighted_1edmh_u8hsy_220",
21
+ "label--dimmed": "awsui_label--dimmed_1edmh_u8hsy_237",
22
+ "label--align-right": "awsui_label--align-right_1edmh_u8hsy_240",
23
+ "label-text": "awsui_label-text_1edmh_u8hsy_248",
24
+ "label__description": "awsui_label__description_1edmh_u8hsy_256",
25
+ "label-line": "awsui_label-line_1edmh_u8hsy_263",
26
+ "label--highlighted": "awsui_label--highlighted_1edmh_u8hsy_267",
27
+ "popover-header": "awsui_popover-header_1edmh_u8hsy_271"
32
28
  };
33
29
 
@@ -1,33 +1,33 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "body-cell": "awsui_body-cell_c6tup_11rnr_93",
5
- "body-cell-wrap": "awsui_body-cell-wrap_c6tup_11rnr_103",
6
- "is-visual-refresh": "awsui_is-visual-refresh_c6tup_11rnr_115",
7
- "has-striped-rows": "awsui_has-striped-rows_c6tup_11rnr_127",
8
- "body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_11rnr_130",
9
- "body-cell-editable": "awsui_body-cell-editable_c6tup_11rnr_130",
10
- "has-striped-rows-sticky-cell-pad-left": "awsui_has-striped-rows-sticky-cell-pad-left_c6tup_11rnr_136",
11
- "has-selection": "awsui_has-selection_c6tup_11rnr_139",
12
- "body-cell-first-row": "awsui_body-cell-first-row_c6tup_11rnr_145",
13
- "body-cell-last-row": "awsui_body-cell-last-row_c6tup_11rnr_148",
14
- "body-cell-selected": "awsui_body-cell-selected_c6tup_11rnr_148",
15
- "has-footer": "awsui_has-footer_c6tup_11rnr_148",
16
- "body-cell-shaded": "awsui_body-cell-shaded_c6tup_11rnr_158",
17
- "sticky-cell": "awsui_sticky-cell_c6tup_11rnr_175",
18
- "sticky-cell-pad-left": "awsui_sticky-cell-pad-left_c6tup_11rnr_183",
19
- "sticky-cell-last-right": "awsui_sticky-cell-last-right_c6tup_11rnr_200",
20
- "sticky-cell-last-left": "awsui_sticky-cell-last-left_c6tup_11rnr_204",
21
- "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_11rnr_227",
22
- "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_11rnr_231",
23
- "body-cell-success": "awsui_body-cell-success_c6tup_11rnr_255",
24
- "body-cell-editor": "awsui_body-cell-editor_c6tup_11rnr_255",
25
- "body-cell-success-form": "awsui_body-cell-success-form_c6tup_11rnr_277",
26
- "body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_11rnr_277",
27
- "body-cell-success-row": "awsui_body-cell-success-row_c6tup_11rnr_286",
28
- "body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_11rnr_286",
29
- "body-cell-success-controls": "awsui_body-cell-success-controls_c6tup_11rnr_296",
30
- "body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_11rnr_296",
31
- "body-cell-has-success": "awsui_body-cell-has-success_c6tup_11rnr_315"
4
+ "body-cell": "awsui_body-cell_c6tup_djrxv_93",
5
+ "body-cell-wrap": "awsui_body-cell-wrap_c6tup_djrxv_103",
6
+ "is-visual-refresh": "awsui_is-visual-refresh_c6tup_djrxv_115",
7
+ "has-striped-rows": "awsui_has-striped-rows_c6tup_djrxv_127",
8
+ "body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_djrxv_130",
9
+ "body-cell-editable": "awsui_body-cell-editable_c6tup_djrxv_130",
10
+ "has-striped-rows-sticky-cell-pad-left": "awsui_has-striped-rows-sticky-cell-pad-left_c6tup_djrxv_136",
11
+ "has-selection": "awsui_has-selection_c6tup_djrxv_139",
12
+ "body-cell-first-row": "awsui_body-cell-first-row_c6tup_djrxv_145",
13
+ "body-cell-last-row": "awsui_body-cell-last-row_c6tup_djrxv_148",
14
+ "body-cell-selected": "awsui_body-cell-selected_c6tup_djrxv_148",
15
+ "has-footer": "awsui_has-footer_c6tup_djrxv_148",
16
+ "body-cell-shaded": "awsui_body-cell-shaded_c6tup_djrxv_158",
17
+ "sticky-cell": "awsui_sticky-cell_c6tup_djrxv_175",
18
+ "sticky-cell-pad-left": "awsui_sticky-cell-pad-left_c6tup_djrxv_183",
19
+ "sticky-cell-last-right": "awsui_sticky-cell-last-right_c6tup_djrxv_200",
20
+ "sticky-cell-last-left": "awsui_sticky-cell-last-left_c6tup_djrxv_204",
21
+ "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_djrxv_227",
22
+ "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_djrxv_231",
23
+ "body-cell-success": "awsui_body-cell-success_c6tup_djrxv_255",
24
+ "body-cell-editor": "awsui_body-cell-editor_c6tup_djrxv_255",
25
+ "body-cell-success-form": "awsui_body-cell-success-form_c6tup_djrxv_277",
26
+ "body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_djrxv_277",
27
+ "body-cell-success-row": "awsui_body-cell-success-row_c6tup_djrxv_286",
28
+ "body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_djrxv_286",
29
+ "body-cell-success-controls": "awsui_body-cell-success-controls_c6tup_djrxv_296",
30
+ "body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_djrxv_296",
31
+ "body-cell-has-success": "awsui_body-cell-has-success_c6tup_djrxv_315"
32
32
  };
33
33