@cloudscape-design/components-themeable 3.0.813 → 3.0.815

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 (166) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/{internal/components/live-region → live-region}/styles.scss +1 -1
  3. package/lib/internal/scss/live-region/test-classes/styles.scss +12 -0
  4. package/lib/internal/template/attribute-editor/additional-info.js +1 -1
  5. package/lib/internal/template/attribute-editor/additional-info.js.map +1 -1
  6. package/lib/internal/template/attribute-editor/internal.js +1 -1
  7. package/lib/internal/template/attribute-editor/internal.js.map +1 -1
  8. package/lib/internal/template/button/internal.d.ts.map +1 -1
  9. package/lib/internal/template/button/internal.js +1 -1
  10. package/lib/internal/template/button/internal.js.map +1 -1
  11. package/lib/internal/template/button-group/icon-button-item.d.ts.map +1 -1
  12. package/lib/internal/template/button-group/icon-button-item.js +1 -1
  13. package/lib/internal/template/button-group/icon-button-item.js.map +1 -1
  14. package/lib/internal/template/cards/index.js +1 -1
  15. package/lib/internal/template/cards/index.js.map +1 -1
  16. package/lib/internal/template/code-editor/index.js +1 -1
  17. package/lib/internal/template/code-editor/index.js.map +1 -1
  18. package/lib/internal/template/code-editor/status-bar.js +1 -1
  19. package/lib/internal/template/code-editor/status-bar.js.map +1 -1
  20. package/lib/internal/template/date-picker/index.js +1 -1
  21. package/lib/internal/template/date-picker/index.js.map +1 -1
  22. package/lib/internal/template/date-range-picker/calendar/header/index.d.ts.map +1 -1
  23. package/lib/internal/template/date-range-picker/calendar/header/index.js +2 -2
  24. package/lib/internal/template/date-range-picker/calendar/header/index.js.map +1 -1
  25. package/lib/internal/template/date-range-picker/calendar/index.js +1 -1
  26. package/lib/internal/template/date-range-picker/calendar/index.js.map +1 -1
  27. package/lib/internal/template/date-range-picker/dropdown.js +1 -1
  28. package/lib/internal/template/date-range-picker/dropdown.js.map +1 -1
  29. package/lib/internal/template/drawer/implementation.d.ts.map +1 -1
  30. package/lib/internal/template/drawer/implementation.js +1 -1
  31. package/lib/internal/template/drawer/implementation.js.map +1 -1
  32. package/lib/internal/template/flashbar/flash.js +1 -1
  33. package/lib/internal/template/flashbar/flash.js.map +1 -1
  34. package/lib/internal/template/form/internal.d.ts.map +1 -1
  35. package/lib/internal/template/form/internal.js +1 -1
  36. package/lib/internal/template/form/internal.js.map +1 -1
  37. package/lib/internal/template/form-field/internal.js +1 -1
  38. package/lib/internal/template/form-field/internal.js.map +1 -1
  39. package/lib/internal/template/help-panel/implementation.d.ts.map +1 -1
  40. package/lib/internal/template/help-panel/implementation.js +1 -1
  41. package/lib/internal/template/help-panel/implementation.js.map +1 -1
  42. package/lib/internal/template/index.d.ts +1 -0
  43. package/lib/internal/template/index.d.ts.map +1 -1
  44. package/lib/internal/template/index.js +1 -0
  45. package/lib/internal/template/index.js.map +1 -1
  46. package/lib/internal/template/internal/analytics/index.d.ts.map +1 -1
  47. package/lib/internal/template/internal/analytics/index.js +1 -0
  48. package/lib/internal/template/internal/analytics/index.js.map +1 -1
  49. package/lib/internal/template/internal/analytics/interfaces.d.ts +12 -1
  50. package/lib/internal/template/internal/analytics/interfaces.d.ts.map +1 -1
  51. package/lib/internal/template/internal/analytics/interfaces.js.map +1 -1
  52. package/lib/internal/template/internal/base-component/styles.scoped.css +23 -37
  53. package/lib/internal/template/internal/components/chart-plot/index.d.ts.map +1 -1
  54. package/lib/internal/template/internal/components/chart-plot/index.js +1 -1
  55. package/lib/internal/template/internal/components/chart-plot/index.js.map +1 -1
  56. package/lib/internal/template/internal/components/chart-status-container/index.d.ts.map +1 -1
  57. package/lib/internal/template/internal/components/chart-status-container/index.js +1 -1
  58. package/lib/internal/template/internal/components/chart-status-container/index.js.map +1 -1
  59. package/lib/internal/template/internal/components/dropdown-footer/index.js +1 -1
  60. package/lib/internal/template/internal/components/dropdown-footer/index.js.map +1 -1
  61. package/lib/internal/template/internal/environment.js +1 -1
  62. package/lib/internal/template/internal/environment.json +1 -1
  63. package/lib/internal/template/internal/generated/styles/tokens.js +3 -3
  64. package/lib/internal/template/internal/generated/theming/index.cjs +34 -32
  65. package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +16 -0
  66. package/lib/internal/template/internal/generated/theming/index.d.ts +16 -0
  67. package/lib/internal/template/internal/generated/theming/index.js +34 -32
  68. package/lib/internal/template/internal/hooks/use-dom-attribute/index.d.ts +5 -0
  69. package/lib/internal/template/internal/hooks/use-dom-attribute/index.d.ts.map +1 -0
  70. package/lib/internal/template/internal/hooks/use-dom-attribute/index.js +19 -0
  71. package/lib/internal/template/internal/hooks/use-dom-attribute/index.js.map +1 -0
  72. package/lib/internal/template/internal/hooks/use-performance-marks/index.d.ts +1 -1
  73. package/lib/internal/template/internal/hooks/use-performance-marks/index.d.ts.map +1 -1
  74. package/lib/internal/template/internal/hooks/use-performance-marks/index.js +3 -18
  75. package/lib/internal/template/internal/hooks/use-performance-marks/index.js.map +1 -1
  76. package/lib/internal/template/internal/hooks/use-table-interaction-metrics/index.d.ts +8 -1
  77. package/lib/internal/template/internal/hooks/use-table-interaction-metrics/index.d.ts.map +1 -1
  78. package/lib/internal/template/internal/hooks/use-table-interaction-metrics/index.js +24 -6
  79. package/lib/internal/template/internal/hooks/use-table-interaction-metrics/index.js.map +1 -1
  80. package/lib/internal/template/live-region/controller.d.ts.map +1 -0
  81. package/lib/internal/template/{internal/components/live-region → live-region}/controller.js +2 -2
  82. package/lib/internal/template/live-region/controller.js.map +1 -0
  83. package/lib/internal/template/live-region/index.d.ts.map +1 -0
  84. package/lib/internal/template/{internal/components/live-region → live-region}/index.js +3 -5
  85. package/lib/internal/template/live-region/index.js.map +1 -0
  86. package/lib/internal/template/{internal/components/live-region → live-region}/interfaces.d.ts +5 -11
  87. package/lib/internal/template/live-region/interfaces.d.ts.map +1 -0
  88. package/lib/internal/template/live-region/interfaces.js.map +1 -0
  89. package/lib/internal/template/{internal/components/live-region → live-region}/internal.d.ts +1 -1
  90. package/lib/internal/template/live-region/internal.d.ts.map +1 -0
  91. package/lib/internal/template/{internal/components/live-region → live-region}/internal.js +11 -11
  92. package/lib/internal/template/live-region/internal.js.map +1 -0
  93. package/lib/internal/template/live-region/styles.css.js +7 -0
  94. package/lib/internal/template/{internal/components/live-region → live-region}/styles.scoped.css +3 -3
  95. package/lib/internal/template/{internal/components/live-region → live-region}/styles.selectors.js +2 -2
  96. package/lib/internal/template/live-region/test-classes/styles.css.js +7 -0
  97. package/lib/internal/template/live-region/test-classes/styles.scoped.css +11 -0
  98. package/lib/internal/template/live-region/test-classes/styles.selectors.js +8 -0
  99. package/lib/internal/template/package.json +1 -0
  100. package/lib/internal/template/pie-chart/pie-chart.d.ts.map +1 -1
  101. package/lib/internal/template/pie-chart/pie-chart.js +1 -1
  102. package/lib/internal/template/pie-chart/pie-chart.js.map +1 -1
  103. package/lib/internal/template/progress-bar/index.js +1 -1
  104. package/lib/internal/template/progress-bar/index.js.map +1 -1
  105. package/lib/internal/template/property-filter/token-editor.d.ts.map +1 -1
  106. package/lib/internal/template/property-filter/token-editor.js +5 -1
  107. package/lib/internal/template/property-filter/token-editor.js.map +1 -1
  108. package/lib/internal/template/s3-resource-selector/s3-in-context/index.js +2 -2
  109. package/lib/internal/template/s3-resource-selector/s3-in-context/index.js.map +1 -1
  110. package/lib/internal/template/s3-resource-selector/s3-modal/basic-table.d.ts.map +1 -1
  111. package/lib/internal/template/s3-resource-selector/s3-modal/basic-table.js +1 -1
  112. package/lib/internal/template/s3-resource-selector/s3-modal/basic-table.js.map +1 -1
  113. package/lib/internal/template/select/parts/filter.d.ts +1 -1
  114. package/lib/internal/template/table/body-cell/disabled-inline-editor.js +1 -1
  115. package/lib/internal/template/table/body-cell/disabled-inline-editor.js.map +1 -1
  116. package/lib/internal/template/table/body-cell/index.d.ts.map +1 -1
  117. package/lib/internal/template/table/body-cell/index.js +2 -2
  118. package/lib/internal/template/table/body-cell/index.js.map +1 -1
  119. package/lib/internal/template/table/body-cell/inline-editor.d.ts.map +1 -1
  120. package/lib/internal/template/table/body-cell/inline-editor.js +4 -4
  121. package/lib/internal/template/table/body-cell/inline-editor.js.map +1 -1
  122. package/lib/internal/template/table/internal.d.ts.map +1 -1
  123. package/lib/internal/template/table/internal.js +26 -14
  124. package/lib/internal/template/table/internal.js.map +1 -1
  125. package/lib/internal/template/table/no-data-cell.js +1 -1
  126. package/lib/internal/template/table/no-data-cell.js.map +1 -1
  127. package/lib/internal/template/table/progressive-loading/items-loader.js +1 -1
  128. package/lib/internal/template/table/progressive-loading/items-loader.js.map +1 -1
  129. package/lib/internal/template/tag-editor/index.js +1 -1
  130. package/lib/internal/template/tag-editor/index.js.map +1 -1
  131. package/lib/internal/template/test-utils/dom/index.d.ts +3 -0
  132. package/lib/internal/template/test-utils/dom/index.js +10 -2
  133. package/lib/internal/template/test-utils/dom/index.js.map +1 -1
  134. package/lib/internal/template/test-utils/dom/{internal/live-region.js → live-region/index.js} +2 -2
  135. package/lib/internal/template/test-utils/dom/live-region/index.js.map +1 -0
  136. package/lib/internal/template/test-utils/selectors/index.d.ts +3 -0
  137. package/lib/internal/template/test-utils/selectors/index.js +10 -2
  138. package/lib/internal/template/test-utils/selectors/index.js.map +1 -1
  139. package/lib/internal/template/test-utils/selectors/{internal/live-region.js → live-region/index.js} +2 -2
  140. package/lib/internal/template/test-utils/selectors/live-region/index.js.map +1 -0
  141. package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
  142. package/lib/internal/template/text-filter/search-results.js +1 -1
  143. package/lib/internal/template/text-filter/search-results.js.map +1 -1
  144. package/lib/internal/template/tutorial-panel/components/tutorial-list/index.js +1 -1
  145. package/lib/internal/template/tutorial-panel/components/tutorial-list/index.js.map +1 -1
  146. package/package.json +1 -1
  147. package/lib/internal/template/internal/components/live-region/controller.d.ts.map +0 -1
  148. package/lib/internal/template/internal/components/live-region/controller.js.map +0 -1
  149. package/lib/internal/template/internal/components/live-region/index.d.ts.map +0 -1
  150. package/lib/internal/template/internal/components/live-region/index.js.map +0 -1
  151. package/lib/internal/template/internal/components/live-region/interfaces.d.ts.map +0 -1
  152. package/lib/internal/template/internal/components/live-region/interfaces.js.map +0 -1
  153. package/lib/internal/template/internal/components/live-region/internal.d.ts.map +0 -1
  154. package/lib/internal/template/internal/components/live-region/internal.js.map +0 -1
  155. package/lib/internal/template/internal/components/live-region/styles.css.js +0 -7
  156. package/lib/internal/template/internal/hooks/use-component-analytics/index.d.ts +0 -8
  157. package/lib/internal/template/internal/hooks/use-component-analytics/index.d.ts.map +0 -1
  158. package/lib/internal/template/internal/hooks/use-component-analytics/index.js +0 -28
  159. package/lib/internal/template/internal/hooks/use-component-analytics/index.js.map +0 -1
  160. package/lib/internal/template/test-utils/dom/internal/live-region.js.map +0 -1
  161. package/lib/internal/template/test-utils/selectors/internal/live-region.js.map +0 -1
  162. /package/lib/internal/template/{internal/components/live-region → live-region}/controller.d.ts +0 -0
  163. /package/lib/internal/template/{internal/components/live-region → live-region}/index.d.ts +0 -0
  164. /package/lib/internal/template/{internal/components/live-region → live-region}/interfaces.js +0 -0
  165. /package/lib/internal/template/test-utils/dom/{internal/live-region.d.ts → live-region/index.d.ts} +0 -0
  166. /package/lib/internal/template/test-utils/selectors/{internal/live-region.d.ts → live-region/index.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/chart-plot/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjF,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AACzD,OAAO,qBAA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: Apache-2.0\nimport React, { forwardRef, useImperativeHandle, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useInternalI18n } from '../../../i18n/context';\nimport { useUniqueId } from '../../hooks/use-unique-id';\nimport { KeyCode } from '../../keycode';\nimport { Offset } from '../interfaces';\nimport InternalLiveRegion from '../live-region/internal';\nimport ApplicationController, { ApplicationRef } from './application-controller';\nimport FocusOutline from './focus-outline';\n\nimport styles from './styles.css.js';\n\nconst DEFAULT_PLOT_FOCUS_OFFSET = 3;\nconst DEFAULT_ELEMENT_FOCUS_OFFSET = 3;\n\nexport interface ChartPlotRef {\n svg: SVGSVGElement;\n focusPlot(): void;\n focusApplication(): void;\n}\n\nexport interface ChartPlotProps {\n width: number | string;\n height: number | string;\n transform?: string;\n offsetTop?: number;\n offsetBottom?: number;\n offsetLeft?: number;\n offsetRight?: number;\n focusOffset?: number;\n ariaLabel?: string;\n ariaLabelledby?: string;\n ariaDescription?: string;\n ariaDescribedby?: string;\n ariaRoleDescription?: string;\n activeElementKey?: null | string | number | boolean;\n activeElementRef?: React.RefObject<SVGGElement>;\n activeElementFocusOffset?: Offset;\n ariaLiveRegion?: string;\n isClickable?: boolean;\n isPrecise?: boolean;\n onClick?: (event: React.MouseEvent<SVGSVGElement>) => void;\n onMouseMove?: (event: React.MouseEvent<SVGSVGElement>) => void;\n onMouseOut?: (event: React.MouseEvent<SVGSVGElement>) => void;\n onApplicationFocus?: (event: React.FocusEvent<SVGGElement>, trigger: 'mouse' | 'keyboard') => void;\n onApplicationBlur?: (event: React.FocusEvent<SVGGElement>) => void;\n onKeyDown?: (event: React.KeyboardEvent<SVGGElement>) => void;\n children: React.ReactNode;\n}\n\n/**\n An extension for the SVG to be used for charts. It includes a controller element to\n handle the focus and keyboard interactions in a way that is supported by screen readers.\n\n The application mimics the aria-activedescendant behavior which is unsupported by Safari. The\n activeElementRef is the pointer to the secondary-focus element and activeElementKey denotes when\n the focus transition was made.\n\n Alternatively, ariaLiveRegion can be used to make announcements.\n*/\nexport default forwardRef(ChartPlot);\n\nfunction ChartPlot(\n {\n width,\n height,\n transform,\n offsetTop,\n offsetBottom,\n offsetLeft,\n offsetRight,\n ariaLabel,\n ariaLabelledby,\n ariaRoleDescription,\n ariaDescription,\n ariaDescribedby,\n activeElementKey,\n activeElementRef,\n ariaLiveRegion,\n isClickable,\n isPrecise,\n children,\n onClick,\n onKeyDown,\n focusOffset = DEFAULT_PLOT_FOCUS_OFFSET,\n activeElementFocusOffset = DEFAULT_ELEMENT_FOCUS_OFFSET,\n onMouseMove,\n onMouseOut,\n onApplicationBlur,\n onApplicationFocus,\n }: ChartPlotProps,\n ref: React.Ref<ChartPlotRef>\n) {\n const i18n = useInternalI18n('[charts]');\n const svgRef = useRef<SVGSVGElement>(null);\n const applicationRef = useRef<ApplicationRef>(null);\n const plotClickedRef = useRef(false);\n const [isPlotFocused, setPlotFocused] = useState(false);\n const [isApplicationFocused, setApplicationFocused] = useState(false);\n\n const internalDescriptionId = useUniqueId('awsui-chart-plot__description');\n const ariaDescriptionId = [ariaDescription && internalDescriptionId, ariaDescribedby].filter(Boolean).join(' ');\n\n useImperativeHandle(ref, () => ({\n svg: svgRef.current!,\n focusPlot: () => svgRef.current!.focus(),\n focusApplication: () => applicationRef.current!.focus(),\n }));\n\n const onPlotMouseDown = () => {\n // Record the click was made for the application focus handler.\n plotClickedRef.current = true;\n };\n const onPlotFocus = (event: React.FocusEvent<SVGSVGElement>) => {\n // If focused via click or an element was highlighted,\n // focus the internal application, which will manage and show focus accordingly on its internal elements.\n if (plotClickedRef.current || !!activeElementKey) {\n applicationRef.current!.focus();\n } else if (event.target === svgRef.current) {\n // Otherwise, focus the entire plot if it was focused with the keyboard.\n setPlotFocused(true);\n }\n };\n const onPlotClick = (event: React.MouseEvent<SVGSVGElement, MouseEvent>) => {\n onClick && onClick(event);\n };\n const onPlotBlur = (event: React.FocusEvent<SVGSVGElement>) => {\n if (event.target === svgRef.current) {\n setPlotFocused(false);\n }\n };\n // Once one of the expected keys is pressed the focus is delegated to the application controller.\n const onPlotKeyDown = (event: React.KeyboardEvent) => {\n if (isPlotFocused) {\n // Delegate the focus to the application if one of the expected keys was pressed.\n const codes = [KeyCode.space, KeyCode.enter, KeyCode.up, KeyCode.left, KeyCode.right, KeyCode.down];\n if (codes.indexOf(event.keyCode) !== -1) {\n applicationRef.current!.focus();\n }\n }\n };\n\n const onPlotApplicationFocus = (event: React.FocusEvent<SVGGElement>) => {\n onApplicationFocus && onApplicationFocus(event, plotClickedRef.current ? 'mouse' : 'keyboard');\n // \"Release\" the click reference to not affect the next call of this handler.\n plotClickedRef.current = false;\n setApplicationFocused(true);\n };\n const onPlotApplicationBlur = (event: React.FocusEvent<SVGGElement>) => {\n onApplicationBlur && onApplicationBlur(event);\n setApplicationFocused(false);\n };\n const onApplicationKeyDown = onKeyDown;\n\n const plotFocusable = !isApplicationFocused;\n const plotTabIndex = plotFocusable ? 0 : -1;\n const plotAria = !isApplicationFocused\n ? {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescriptionId,\n 'aria-roledescription': i18n('i18nStrings.chartAriaRoleDescription', ariaRoleDescription),\n }\n : {};\n\n return (\n <>\n <svg\n onMouseMove={onMouseMove}\n onMouseOut={onMouseOut}\n focusable={plotFocusable}\n tabIndex={plotTabIndex}\n role=\"application\"\n aria-hidden=\"false\"\n {...plotAria}\n ref={svgRef}\n style={{\n width,\n height,\n marginTop: offsetTop,\n marginBottom: offsetBottom,\n marginLeft: offsetLeft,\n marginRight: offsetRight,\n }}\n className={clsx(styles.root, {\n [styles.clickable]: isClickable,\n [styles.precise]: isPrecise,\n })}\n onMouseDown={onPlotMouseDown}\n onClick={onPlotClick}\n onFocus={onPlotFocus}\n onBlur={onPlotBlur}\n onKeyDown={onPlotKeyDown}\n >\n <FocusOutline elementRef={svgRef} elementKey={isPlotFocused} offset={focusOffset} />\n\n <g transform={transform}>\n <ApplicationController\n activeElementKey={(isApplicationFocused && activeElementKey) || null}\n activeElementRef={activeElementRef}\n ref={applicationRef}\n onFocus={onPlotApplicationFocus}\n onBlur={onPlotApplicationBlur}\n onKeyDown={onApplicationKeyDown}\n />\n\n {/* Only show description when plot is focusable to avoid repetition in Safari and Firefox */}\n {ariaDescription && plotFocusable && (\n <desc aria-hidden=\"true\" id={internalDescriptionId}>\n {ariaDescription}\n </desc>\n )}\n\n {children}\n\n <FocusOutline\n elementRef={activeElementRef}\n elementKey={isApplicationFocused && activeElementKey}\n offset={activeElementFocusOffset}\n />\n </g>\n </svg>\n\n <InternalLiveRegion hidden={true} tagName=\"span\">\n {ariaLiveRegion}\n </InternalLiveRegion>\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/chart-plot/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjF,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,kBAAkB,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,qBAAyC,MAAM,0BAA0B,CAAC;AACjF,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,yBAAyB,GAAG,CAAC,CAAC;AACpC,MAAM,4BAA4B,GAAG,CAAC,CAAC;AAqCvC;;;;;;;;;EASE;AACF,eAAe,UAAU,CAAC,SAAS,CAAC,CAAC;AAErC,SAAS,SAAS,CAChB,EACE,KAAK,EACL,MAAM,EACN,SAAS,EACT,SAAS,EACT,YAAY,EACZ,UAAU,EACV,WAAW,EACX,SAAS,E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O,EAAE,WAAW,EACpB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,aAAa;YAExB,oBAAC,YAAY,IAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,GAAI;YAEpF,2BAAG,SAAS,EAAE,SAAS;gBACrB,oBAAC,qBAAqB,IACpB,gBAAgB,EAAE,CAAC,oBAAoB,IAAI,gBAAgB,CAAC,IAAI,IAAI,EACpE,gBAAgB,EAAE,gBAAgB,EAClC,GAAG,EAAE,cAAc,EACnB,OAAO,EAAE,sBAAsB,EAC/B,MAAM,EAAE,qBAAqB,EAC7B,SAAS,EAAE,oBAAoB,GAC/B;gBAGD,eAAe,IAAI,aAAa,IAAI,CACnC,6CAAkB,MAAM,EAAC,EAAE,EAAE,qBAAqB,IAC/C,eAAe,CACX,CACR;gBAEA,QAAQ;gBAET,oBAAC,YAAY,IACX,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,oBAAoB,IAAI,gBAAgB,EACpD,MAAM,EAAE,wBAAwB,GAChC,CACA,CACA;QAEN,oBAAC,kBAAkB,IAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,MAAM,IAC7C,cAAc,CACI,CACpB,CACJ,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { forwardRef, useImperativeHandle, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useInternalI18n } from '../../../i18n/context';\nimport InternalLiveRegion from '../../../live-region/internal';\nimport { useUniqueId } from '../../hooks/use-unique-id';\nimport { KeyCode } from '../../keycode';\nimport { Offset } from '../interfaces';\nimport ApplicationController, { ApplicationRef } from './application-controller';\nimport FocusOutline from './focus-outline';\n\nimport styles from './styles.css.js';\n\nconst DEFAULT_PLOT_FOCUS_OFFSET = 3;\nconst DEFAULT_ELEMENT_FOCUS_OFFSET = 3;\n\nexport interface ChartPlotRef {\n svg: SVGSVGElement;\n focusPlot(): void;\n focusApplication(): void;\n}\n\nexport interface ChartPlotProps {\n width: number | string;\n height: number | string;\n transform?: string;\n offsetTop?: number;\n offsetBottom?: number;\n offsetLeft?: number;\n offsetRight?: number;\n focusOffset?: number;\n ariaLabel?: string;\n ariaLabelledby?: string;\n ariaDescription?: string;\n ariaDescribedby?: string;\n ariaRoleDescription?: string;\n activeElementKey?: null | string | number | boolean;\n activeElementRef?: React.RefObject<SVGGElement>;\n activeElementFocusOffset?: Offset;\n ariaLiveRegion?: string;\n isClickable?: boolean;\n isPrecise?: boolean;\n onClick?: (event: React.MouseEvent<SVGSVGElement>) => void;\n onMouseMove?: (event: React.MouseEvent<SVGSVGElement>) => void;\n onMouseOut?: (event: React.MouseEvent<SVGSVGElement>) => void;\n onApplicationFocus?: (event: React.FocusEvent<SVGGElement>, trigger: 'mouse' | 'keyboard') => void;\n onApplicationBlur?: (event: React.FocusEvent<SVGGElement>) => void;\n onKeyDown?: (event: React.KeyboardEvent<SVGGElement>) => void;\n children: React.ReactNode;\n}\n\n/**\n An extension for the SVG to be used for charts. It includes a controller element to\n handle the focus and keyboard interactions in a way that is supported by screen readers.\n\n The application mimics the aria-activedescendant behavior which is unsupported by Safari. The\n activeElementRef is the pointer to the secondary-focus element and activeElementKey denotes when\n the focus transition was made.\n\n Alternatively, ariaLiveRegion can be used to make announcements.\n*/\nexport default forwardRef(ChartPlot);\n\nfunction ChartPlot(\n {\n width,\n height,\n transform,\n offsetTop,\n offsetBottom,\n offsetLeft,\n offsetRight,\n ariaLabel,\n ariaLabelledby,\n ariaRoleDescription,\n ariaDescription,\n ariaDescribedby,\n activeElementKey,\n activeElementRef,\n ariaLiveRegion,\n isClickable,\n isPrecise,\n children,\n onClick,\n onKeyDown,\n focusOffset = DEFAULT_PLOT_FOCUS_OFFSET,\n activeElementFocusOffset = DEFAULT_ELEMENT_FOCUS_OFFSET,\n onMouseMove,\n onMouseOut,\n onApplicationBlur,\n onApplicationFocus,\n }: ChartPlotProps,\n ref: React.Ref<ChartPlotRef>\n) {\n const i18n = useInternalI18n('[charts]');\n const svgRef = useRef<SVGSVGElement>(null);\n const applicationRef = useRef<ApplicationRef>(null);\n const plotClickedRef = useRef(false);\n const [isPlotFocused, setPlotFocused] = useState(false);\n const [isApplicationFocused, setApplicationFocused] = useState(false);\n\n const internalDescriptionId = useUniqueId('awsui-chart-plot__description');\n const ariaDescriptionId = [ariaDescription && internalDescriptionId, ariaDescribedby].filter(Boolean).join(' ');\n\n useImperativeHandle(ref, () => ({\n svg: svgRef.current!,\n focusPlot: () => svgRef.current!.focus(),\n focusApplication: () => applicationRef.current!.focus(),\n }));\n\n const onPlotMouseDown = () => {\n // Record the click was made for the application focus handler.\n plotClickedRef.current = true;\n };\n const onPlotFocus = (event: React.FocusEvent<SVGSVGElement>) => {\n // If focused via click or an element was highlighted,\n // focus the internal application, which will manage and show focus accordingly on its internal elements.\n if (plotClickedRef.current || !!activeElementKey) {\n applicationRef.current!.focus();\n } else if (event.target === svgRef.current) {\n // Otherwise, focus the entire plot if it was focused with the keyboard.\n setPlotFocused(true);\n }\n };\n const onPlotClick = (event: React.MouseEvent<SVGSVGElement, MouseEvent>) => {\n onClick && onClick(event);\n };\n const onPlotBlur = (event: React.FocusEvent<SVGSVGElement>) => {\n if (event.target === svgRef.current) {\n setPlotFocused(false);\n }\n };\n // Once one of the expected keys is pressed the focus is delegated to the application controller.\n const onPlotKeyDown = (event: React.KeyboardEvent) => {\n if (isPlotFocused) {\n // Delegate the focus to the application if one of the expected keys was pressed.\n const codes = [KeyCode.space, KeyCode.enter, KeyCode.up, KeyCode.left, KeyCode.right, KeyCode.down];\n if (codes.indexOf(event.keyCode) !== -1) {\n applicationRef.current!.focus();\n }\n }\n };\n\n const onPlotApplicationFocus = (event: React.FocusEvent<SVGGElement>) => {\n onApplicationFocus && onApplicationFocus(event, plotClickedRef.current ? 'mouse' : 'keyboard');\n // \"Release\" the click reference to not affect the next call of this handler.\n plotClickedRef.current = false;\n setApplicationFocused(true);\n };\n const onPlotApplicationBlur = (event: React.FocusEvent<SVGGElement>) => {\n onApplicationBlur && onApplicationBlur(event);\n setApplicationFocused(false);\n };\n const onApplicationKeyDown = onKeyDown;\n\n const plotFocusable = !isApplicationFocused;\n const plotTabIndex = plotFocusable ? 0 : -1;\n const plotAria = !isApplicationFocused\n ? {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescriptionId,\n 'aria-roledescription': i18n('i18nStrings.chartAriaRoleDescription', ariaRoleDescription),\n }\n : {};\n\n return (\n <>\n <svg\n onMouseMove={onMouseMove}\n onMouseOut={onMouseOut}\n focusable={plotFocusable}\n tabIndex={plotTabIndex}\n role=\"application\"\n aria-hidden=\"false\"\n {...plotAria}\n ref={svgRef}\n style={{\n width,\n height,\n marginTop: offsetTop,\n marginBottom: offsetBottom,\n marginLeft: offsetLeft,\n marginRight: offsetRight,\n }}\n className={clsx(styles.root, {\n [styles.clickable]: isClickable,\n [styles.precise]: isPrecise,\n })}\n onMouseDown={onPlotMouseDown}\n onClick={onPlotClick}\n onFocus={onPlotFocus}\n onBlur={onPlotBlur}\n onKeyDown={onPlotKeyDown}\n >\n <FocusOutline elementRef={svgRef} elementKey={isPlotFocused} offset={focusOffset} />\n\n <g transform={transform}>\n <ApplicationController\n activeElementKey={(isApplicationFocused && activeElementKey) || null}\n activeElementRef={activeElementRef}\n ref={applicationRef}\n onFocus={onPlotApplicationFocus}\n onBlur={onPlotApplicationBlur}\n onKeyDown={onApplicationKeyDown}\n />\n\n {/* Only show description when plot is focusable to avoid repetition in Safari and Firefox */}\n {ariaDescription && plotFocusable && (\n <desc aria-hidden=\"true\" id={internalDescriptionId}>\n {ariaDescription}\n </desc>\n )}\n\n {children}\n\n <FocusOutline\n elementRef={activeElementRef}\n elementKey={isApplicationFocused && activeElementKey}\n offset={activeElementFocusOffset}\n />\n </g>\n </svg>\n\n <InternalLiveRegion hidden={true} tagName=\"span\">\n {ariaLiveRegion}\n </InternalLiveRegion>\n </>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/chart-status-container/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAA0B,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAKjF,UAAU,yBAA0B,SAAQ,kBAAkB;IAC5D,UAAU,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAE7C,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,eAAe,CAAC,EAAE,yBAAyB,CAAC;IAG5C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,EACnC,YAAY,EACZ,WAAW,EACX,UAAU,GACX,EAAE;IACD,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAC/B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAC9B,UAAU,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;CAC9C;;;;EAKA;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,UAAU,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,OAAO,EACP,SAAS,GACV,EAAE,yBAAyB,eAwC3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/chart-status-container/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAA0B,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAIjF,UAAU,yBAA0B,SAAQ,kBAAkB;IAC5D,UAAU,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAE7C,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,eAAe,CAAC,EAAE,yBAAyB,CAAC;IAG5C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,EACnC,YAAY,EACZ,WAAW,EACX,UAAU,GACX,EAAE;IACD,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAC/B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAC9B,UAAU,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;CAC9C;;;;EAKA;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,UAAU,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,OAAO,EACP,SAAS,GACV,EAAE,yBAAyB,eAwC3B"}
@@ -3,9 +3,9 @@
3
3
  import React, { useMemo } from 'react';
4
4
  import { useInternalI18n } from '../../../i18n/context';
5
5
  import InternalLink from '../../../link/internal';
6
+ import InternalLiveRegion from '../../../live-region/internal';
6
7
  import InternalStatusIndicator from '../../../status-indicator/internal';
7
8
  import { fireNonCancelableEvent } from '../../events';
8
- import InternalLiveRegion from '../live-region/internal';
9
9
  import styles from './styles.css.js';
10
10
  export function getChartStatus({ externalData, visibleData, statusType, }) {
11
11
  const isEmpty = !visibleData || visibleData.length === 0;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/chart-status-container/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,uBAAuB,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,sBAAsB,EAA6B,MAAM,cAAc,CAAC;AACjF,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AAEzD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAoBrC,MAAM,UAAU,cAAc,CAAO,EACnC,YAAY,EACZ,WAAW,EACX,UAAU,GAKX;IACC,MAAM,OAAO,GAAG,CAAC,WAAW,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC;IACzD,MAAM,SAAS,GAAG,OAAO,IAAI,WAAW,CAAC,MAAM,KAAK,YAAY,CAAC,MAAM,CAAC;IACxE,MAAM,SAAS,GAAG,UAAU,KAAK,UAAU,IAAI,CAAC,OAAO,CAAC;IACxD,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AAC3C,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,UAAU,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,OAAO,EACP,SAAS,GACiB;IAC1B,MAAM,IAAI,GAAG,eAAe,CAAC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e,CAAsB,CACpE,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useMemo } from 'react';\n\nimport { useInternalI18n } from '../../../i18n/context';\nimport InternalLink from '../../../link/internal';\nimport InternalStatusIndicator from '../../../status-indicator/internal';\nimport { BaseComponentProps } from '../../base-component';\nimport { fireNonCancelableEvent, NonCancelableEventHandler } from '../../events';\nimport InternalLiveRegion from '../live-region/internal';\n\nimport styles from './styles.css.js';\n\ninterface ChartStatusContainerProps extends BaseComponentProps {\n statusType: 'loading' | 'finished' | 'error';\n\n empty?: React.ReactNode;\n noMatch?: React.ReactNode;\n\n loadingText?: string;\n errorText?: string;\n recoveryText?: string;\n\n onRecoveryClick?: NonCancelableEventHandler;\n\n // From `getChartStatus`\n isEmpty?: boolean;\n isNoMatch?: boolean;\n showChart?: boolean;\n}\n\nexport function getChartStatus<T, U>({\n externalData,\n visibleData,\n statusType,\n}: {\n externalData: ReadonlyArray<T>;\n visibleData: ReadonlyArray<U>;\n statusType: 'loading' | 'finished' | 'error';\n}) {\n const isEmpty = !visibleData || visibleData.length === 0;\n const isNoMatch = isEmpty && visibleData.length !== externalData.length;\n const showChart = statusType === 'finished' && !isEmpty;\n return { isEmpty, isNoMatch, showChart };\n}\n\nexport default function ChartStatusContainer({\n statusType,\n errorText,\n loadingText,\n recoveryText,\n noMatch,\n empty,\n onRecoveryClick,\n isNoMatch,\n isEmpty,\n showChart,\n}: ChartStatusContainerProps) {\n const i18n = useInternalI18n('[charts]');\n\n const statusContainer = useMemo(() => {\n const handleRecoveryClick = (event: CustomEvent) => {\n event.preventDefault();\n fireNonCancelableEvent(onRecoveryClick);\n };\n if (statusType === 'error') {\n const renderedRecoveryText = i18n('recoveryText', recoveryText);\n return (\n <span>\n <InternalStatusIndicator type=\"error\">{i18n('errorText', errorText)}</InternalStatusIndicator>{' '}\n {!!renderedRecoveryText && !!onRecoveryClick && (\n <InternalLink onFollow={handleRecoveryClick} variant=\"recovery\">\n {renderedRecoveryText}\n </InternalLink>\n )}\n </span>\n );\n }\n\n if (statusType === 'loading') {\n return <InternalStatusIndicator type=\"loading\">{i18n('loadingText', loadingText)}</InternalStatusIndicator>;\n }\n\n if (isNoMatch) {\n return <div className={styles.empty}>{noMatch}</div>;\n }\n\n if (isEmpty) {\n return <div className={styles.empty}>{empty}</div>;\n }\n }, [i18n, statusType, onRecoveryClick, isEmpty, isNoMatch, recoveryText, loadingText, errorText, empty, noMatch]);\n\n return (\n <div className={styles.root}>\n <InternalLiveRegion>{!showChart && statusContainer}</InternalLiveRegion>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/chart-status-container/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,kBAAkB,MAAM,+BAA+B,CAAC;AAC/D,OAAO,uBAAuB,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,sBAAsB,EAA6B,MAAM,cAAc,CAAC;AAEjF,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAoBrC,MAAM,UAAU,cAAc,CAAO,EACnC,YAAY,EACZ,WAAW,EACX,UAAU,GAKX;IACC,MAAM,OAAO,GAAG,CAAC,WAAW,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC;IACzD,MAAM,SAAS,GAAG,OAAO,IAAI,WAAW,CAAC,MAAM,KAAK,YAAY,CAAC,MAAM,CAAC;IACxE,MAAM,SAAS,GAAG,UAAU,KAAK,UAAU,IAAI,CAAC,OAAO,CAAC;IACxD,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AAC3C,CAAC;AA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,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;IAElH,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,IAAI;QACzB,oBAAC,kBAAkB,QAAE,CAAC,SAAS,IAAI,eAAe,CAAsB,CACpE,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useMemo } from 'react';\n\nimport { useInternalI18n } from '../../../i18n/context';\nimport InternalLink from '../../../link/internal';\nimport InternalLiveRegion from '../../../live-region/internal';\nimport InternalStatusIndicator from '../../../status-indicator/internal';\nimport { BaseComponentProps } from '../../base-component';\nimport { fireNonCancelableEvent, NonCancelableEventHandler } from '../../events';\n\nimport styles from './styles.css.js';\n\ninterface ChartStatusContainerProps extends BaseComponentProps {\n statusType: 'loading' | 'finished' | 'error';\n\n empty?: React.ReactNode;\n noMatch?: React.ReactNode;\n\n loadingText?: string;\n errorText?: string;\n recoveryText?: string;\n\n onRecoveryClick?: NonCancelableEventHandler;\n\n // From `getChartStatus`\n isEmpty?: boolean;\n isNoMatch?: boolean;\n showChart?: boolean;\n}\n\nexport function getChartStatus<T, U>({\n externalData,\n visibleData,\n statusType,\n}: {\n externalData: ReadonlyArray<T>;\n visibleData: ReadonlyArray<U>;\n statusType: 'loading' | 'finished' | 'error';\n}) {\n const isEmpty = !visibleData || visibleData.length === 0;\n const isNoMatch = isEmpty && visibleData.length !== externalData.length;\n const showChart = statusType === 'finished' && !isEmpty;\n return { isEmpty, isNoMatch, showChart };\n}\n\nexport default function ChartStatusContainer({\n statusType,\n errorText,\n loadingText,\n recoveryText,\n noMatch,\n empty,\n onRecoveryClick,\n isNoMatch,\n isEmpty,\n showChart,\n}: ChartStatusContainerProps) {\n const i18n = useInternalI18n('[charts]');\n\n const statusContainer = useMemo(() => {\n const handleRecoveryClick = (event: CustomEvent) => {\n event.preventDefault();\n fireNonCancelableEvent(onRecoveryClick);\n };\n if (statusType === 'error') {\n const renderedRecoveryText = i18n('recoveryText', recoveryText);\n return (\n <span>\n <InternalStatusIndicator type=\"error\">{i18n('errorText', errorText)}</InternalStatusIndicator>{' '}\n {!!renderedRecoveryText && !!onRecoveryClick && (\n <InternalLink onFollow={handleRecoveryClick} variant=\"recovery\">\n {renderedRecoveryText}\n </InternalLink>\n )}\n </span>\n );\n }\n\n if (statusType === 'loading') {\n return <InternalStatusIndicator type=\"loading\">{i18n('loadingText', loadingText)}</InternalStatusIndicator>;\n }\n\n if (isNoMatch) {\n return <div className={styles.empty}>{noMatch}</div>;\n }\n\n if (isEmpty) {\n return <div className={styles.empty}>{empty}</div>;\n }\n }, [i18n, statusType, onRecoveryClick, isEmpty, isNoMatch, recoveryText, loadingText, errorText, empty, noMatch]);\n\n return (\n <div className={styles.root}>\n <InternalLiveRegion>{!showChart && statusContainer}</InternalLiveRegion>\n </div>\n );\n}\n"]}
@@ -2,8 +2,8 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import React from 'react';
4
4
  import clsx from 'clsx';
5
+ import InternalLiveRegion from '../../../live-region/internal.js';
5
6
  import DropdownStatus from '../dropdown-status/index.js';
6
- import InternalLiveRegion from '../live-region/internal';
7
7
  import styles from './styles.css.js';
8
8
  const DropdownFooter = ({ content, id, hasItems = true }) => (React.createElement("div", { className: clsx(styles.root, { [styles.hidden]: content === null, [styles['no-items']]: !hasItems }) },
9
9
  React.createElement(InternalLiveRegion, { id: id }, content && React.createElement(DropdownStatus, null, content))));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/dropdown-footer/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,cAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AAEzD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAQrC,MAAM,cAAc,GAA6B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAkB,EAAE,EAAE,CAAC,CACrG,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;IACvG,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,IAAG,OAAO,IAAI,oBAAC,cAAc,QAAE,OAAO,CAAkB,CAAsB,CACpG,CACP,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport DropdownStatus from '../dropdown-status/index.js';\nimport InternalLiveRegion from '../live-region/internal';\n\nimport styles from './styles.css.js';\n\ninterface DropdownFooter {\n content?: React.ReactNode | null;\n hasItems?: boolean;\n id?: string;\n}\n\nconst DropdownFooter: React.FC<DropdownFooter> = ({ content, id, hasItems = true }: DropdownFooter) => (\n <div className={clsx(styles.root, { [styles.hidden]: content === null, [styles['no-items']]: !hasItems })}>\n <InternalLiveRegion id={id}>{content && <DropdownStatus>{content}</DropdownStatus>}</InternalLiveRegion>\n </div>\n);\n\nexport default DropdownFooter;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/dropdown-footer/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,kBAAkB,MAAM,kCAAkC,CAAC;AAClE,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAEzD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAQrC,MAAM,cAAc,GAA6B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAkB,EAAE,EAAE,CAAC,CACrG,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;IACvG,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,IAAG,OAAO,IAAI,oBAAC,cAAc,QAAE,OAAO,CAAkB,CAAsB,CACpG,CACP,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport InternalLiveRegion from '../../../live-region/internal.js';\nimport DropdownStatus from '../dropdown-status/index.js';\n\nimport styles from './styles.css.js';\n\ninterface DropdownFooter {\n content?: React.ReactNode | null;\n hasItems?: boolean;\n id?: string;\n}\n\nconst DropdownFooter: React.FC<DropdownFooter> = ({ content, id, hasItems = true }: DropdownFooter) => (\n <div className={clsx(styles.root, { [styles.hidden]: content === null, [styles['no-items']]: !hasItems })}>\n <InternalLiveRegion id={id}>{content && <DropdownStatus>{content}</DropdownStatus>}</InternalLiveRegion>\n </div>\n);\n\nexport default DropdownFooter;\n"]}
@@ -1,4 +1,4 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (fd869236)";
2
+ export var PACKAGE_VERSION = "3.0.0 (063937a8)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (fd869236)",
3
+ "PACKAGE_VERSION": "3.0.0 (063937a8)",
4
4
  "THEME": "default",
5
5
  "ALWAYS_VISUAL_REFRESH": false
6
6
  }
@@ -298,8 +298,8 @@ export var colorTextAvatar = "var(--color-text-avatar-jddpvm, #ffffff)";
298
298
  export var colorBackgroundLoadingBarGenAi = "var(--color-background-loading-bar-gen-ai-7qfi9s, linear-gradient(90deg, #99f7ff 0%, #0096fa 10%, #bf80ff 24%, #7300e5 50%, #bf80ff 76%, #0096fa 90%, #99f7ff 100%))";
299
299
  export var colorBackgroundChatBubbleOutgoing = "var(--color-background-chat-bubble-outgoing-pfqan2, transparent)";
300
300
  export var colorBackgroundChatBubbleIncoming = "var(--color-background-chat-bubble-incoming-brq006, #f3f3f7)";
301
- export var colorTextChatBubbleOutgoing = "var(--color-text-chat-bubble-outgoing-bvbr0v, #0f141a)";
302
- export var colorTextChatBubbleIncoming = "var(--color-text-chat-bubble-incoming-x2kig8, #0f141a)";
301
+ export var colorTextChatBubbleOutgoing = "var(--color-text-chat-bubble-outgoing-25z5e0, #424650)";
302
+ export var colorTextChatBubbleIncoming = "var(--color-text-chat-bubble-incoming-t2slde, #424650)";
303
303
  export var colorBorderButtonNormalActive = "var(--color-border-button-normal-active-mn0ayd, #002b66)";
304
304
  export var colorBorderButtonNormalDefault = "var(--color-border-button-normal-default-uzqi0v, #006ce0)";
305
305
  export var colorBorderToggleButtonNormalPressed = "var(--color-border-toggle-button-normal-pressed-lylxt2, #006ce0)";
@@ -558,7 +558,7 @@ export var borderRadiusPopover = "var(--border-radius-popover-clv1ya, 8px)";
558
558
  export var borderRadiusTabsFocusRing = "var(--border-radius-tabs-focus-ring-1q0rjo, 20px)";
559
559
  export var borderRadiusTiles = "var(--border-radius-tiles-60y8e6, 8px)";
560
560
  export var borderRadiusToken = "var(--border-radius-token-923jqq, 8px)";
561
- export var borderRadiusChatBubble = "var(--border-radius-chat-bubble-ur269r, 2px)";
561
+ export var borderRadiusChatBubble = "var(--border-radius-chat-bubble-qvkt36, 8px)";
562
562
  export var borderRadiusTutorialPanelItem = "var(--border-radius-tutorial-panel-item-b44p0a, 8px)";
563
563
  export var borderTableStickyWidth = "var(--border-table-sticky-width-87kf12, 1px)";
564
564
  export var borderLinkFocusRingOutline = "var(--border-link-focus-ring-outline-kkfop6, 0)";
@@ -1078,12 +1078,12 @@ module.exports.preset = {
1078
1078
  "dark": "{colorGrey850}"
1079
1079
  },
1080
1080
  "colorTextChatBubbleOutgoing": {
1081
- "light": "{colorTextBodyDefault}",
1082
- "dark": "{colorTextBodyDefault}"
1081
+ "light": "{colorTextBodySecondary}",
1082
+ "dark": "{colorTextBodySecondary}"
1083
1083
  },
1084
1084
  "colorTextChatBubbleIncoming": {
1085
- "light": "{colorTextBodyDefault}",
1086
- "dark": "{colorTextBodyDefault}"
1085
+ "light": "{colorTextBodySecondary}",
1086
+ "dark": "{colorTextBodySecondary}"
1087
1087
  },
1088
1088
  "colorBorderButtonNormalActive": {
1089
1089
  "light": "{colorBlue800}",
@@ -1871,7 +1871,7 @@ module.exports.preset = {
1871
1871
  "borderRadiusTabsFocusRing": "20px",
1872
1872
  "borderRadiusTiles": "{borderRadiusInput}",
1873
1873
  "borderRadiusToken": "{borderRadiusInput}",
1874
- "borderRadiusChatBubble": "2px",
1874
+ "borderRadiusChatBubble": "8px",
1875
1875
  "borderRadiusTutorialPanelItem": "{borderRadiusInput}",
1876
1876
  "borderTableStickyWidth": "1px",
1877
1877
  "borderLinkFocusRingOutline": "0",
@@ -3313,12 +3313,12 @@ module.exports.preset = {
3313
3313
  "dark": "{colorGrey850}"
3314
3314
  },
3315
3315
  "colorTextChatBubbleOutgoing": {
3316
- "light": "{colorTextBodyDefault}",
3317
- "dark": "{colorTextBodyDefault}"
3316
+ "light": "{colorTextBodySecondary}",
3317
+ "dark": "{colorTextBodySecondary}"
3318
3318
  },
3319
3319
  "colorTextChatBubbleIncoming": {
3320
- "light": "{colorTextBodyDefault}",
3321
- "dark": "{colorTextBodyDefault}"
3320
+ "light": "{colorTextBodySecondary}",
3321
+ "dark": "{colorTextBodySecondary}"
3322
3322
  },
3323
3323
  "colorBorderButtonNormalActive": {
3324
3324
  "light": "{colorBlue400}",
@@ -4467,12 +4467,12 @@ module.exports.preset = {
4467
4467
  "dark": "{colorGrey850}"
4468
4468
  },
4469
4469
  "colorTextChatBubbleOutgoing": {
4470
- "light": "{colorTextBodyDefault}",
4471
- "dark": "{colorTextBodyDefault}"
4470
+ "light": "{colorTextBodySecondary}",
4471
+ "dark": "{colorTextBodySecondary}"
4472
4472
  },
4473
4473
  "colorTextChatBubbleIncoming": {
4474
- "light": "{colorTextBodyDefault}",
4475
- "dark": "{colorTextBodyDefault}"
4474
+ "light": "{colorTextBodySecondary}",
4475
+ "dark": "{colorTextBodySecondary}"
4476
4476
  },
4477
4477
  "colorBorderButtonNormalActive": {
4478
4478
  "light": "{colorBlue400}",
@@ -5553,12 +5553,12 @@ module.exports.preset = {
5553
5553
  "dark": "{colorGrey850}"
5554
5554
  },
5555
5555
  "colorTextChatBubbleOutgoing": {
5556
- "light": "{colorTextBodyDefault}",
5557
- "dark": "{colorTextBodyDefault}"
5556
+ "light": "{colorTextBodySecondary}",
5557
+ "dark": "{colorTextBodySecondary}"
5558
5558
  },
5559
5559
  "colorTextChatBubbleIncoming": {
5560
- "light": "{colorTextBodyDefault}",
5561
- "dark": "{colorTextBodyDefault}"
5560
+ "light": "{colorTextBodySecondary}",
5561
+ "dark": "{colorTextBodySecondary}"
5562
5562
  },
5563
5563
  "colorBorderButtonNormalActive": {
5564
5564
  "light": "{colorWhite}",
@@ -6639,12 +6639,12 @@ module.exports.preset = {
6639
6639
  "dark": "{colorGrey850}"
6640
6640
  },
6641
6641
  "colorTextChatBubbleOutgoing": {
6642
- "light": "{colorTextBodyDefault}",
6643
- "dark": "{colorTextBodyDefault}"
6642
+ "light": "{colorTextBodySecondary}",
6643
+ "dark": "{colorTextBodySecondary}"
6644
6644
  },
6645
6645
  "colorTextChatBubbleIncoming": {
6646
- "light": "{colorTextBodyDefault}",
6647
- "dark": "{colorTextBodyDefault}"
6646
+ "light": "{colorTextBodySecondary}",
6647
+ "dark": "{colorTextBodySecondary}"
6648
6648
  },
6649
6649
  "colorBorderButtonNormalActive": {
6650
6650
  "light": "{colorTextButtonNormalHover}",
@@ -7725,12 +7725,12 @@ module.exports.preset = {
7725
7725
  "dark": "{colorGrey850}"
7726
7726
  },
7727
7727
  "colorTextChatBubbleOutgoing": {
7728
- "light": "{colorTextBodyDefault}",
7729
- "dark": "{colorTextBodyDefault}"
7728
+ "light": "{colorTextBodySecondary}",
7729
+ "dark": "{colorTextBodySecondary}"
7730
7730
  },
7731
7731
  "colorTextChatBubbleIncoming": {
7732
- "light": "{colorTextBodyDefault}",
7733
- "dark": "{colorTextBodyDefault}"
7732
+ "light": "{colorTextBodySecondary}",
7733
+ "dark": "{colorTextBodySecondary}"
7734
7734
  },
7735
7735
  "colorBorderButtonNormalActive": {
7736
7736
  "light": "{colorTextButtonNormalHover}",
@@ -8813,12 +8813,12 @@ module.exports.preset = {
8813
8813
  "dark": "{colorGrey850}"
8814
8814
  },
8815
8815
  "colorTextChatBubbleOutgoing": {
8816
- "light": "{colorTextBodyDefault}",
8817
- "dark": "{colorTextBodyDefault}"
8816
+ "light": "{colorTextBodySecondary}",
8817
+ "dark": "{colorTextBodySecondary}"
8818
8818
  },
8819
8819
  "colorTextChatBubbleIncoming": {
8820
- "light": "{colorTextBodyDefault}",
8821
- "dark": "{colorTextBodyDefault}"
8820
+ "light": "{colorTextBodySecondary}",
8821
+ "dark": "{colorTextBodySecondary}"
8822
8822
  },
8823
8823
  "colorBorderButtonNormalActive": {
8824
8824
  "light": "{colorTextButtonNormalHover}",
@@ -10226,6 +10226,8 @@ module.exports.preset = {
10226
10226
  "colorBackgroundStatusSuccess",
10227
10227
  "colorBackgroundStatusWarning",
10228
10228
  "colorBackgroundToggleCheckedDisabled",
10229
+ "colorBackgroundChatBubbleOutgoing",
10230
+ "colorBackgroundChatBubbleIncoming",
10229
10231
  "colorTextChatBubbleOutgoing",
10230
10232
  "colorTextChatBubbleIncoming",
10231
10233
  "colorBorderButtonNormalActive",
@@ -11751,8 +11753,8 @@ module.exports.preset = {
11751
11753
  "colorBackgroundLoadingBarGenAi": "--color-background-loading-bar-gen-ai-7qfi9s",
11752
11754
  "colorBackgroundChatBubbleOutgoing": "--color-background-chat-bubble-outgoing-pfqan2",
11753
11755
  "colorBackgroundChatBubbleIncoming": "--color-background-chat-bubble-incoming-brq006",
11754
- "colorTextChatBubbleOutgoing": "--color-text-chat-bubble-outgoing-bvbr0v",
11755
- "colorTextChatBubbleIncoming": "--color-text-chat-bubble-incoming-x2kig8",
11756
+ "colorTextChatBubbleOutgoing": "--color-text-chat-bubble-outgoing-25z5e0",
11757
+ "colorTextChatBubbleIncoming": "--color-text-chat-bubble-incoming-t2slde",
11756
11758
  "colorBorderButtonNormalActive": "--color-border-button-normal-active-mn0ayd",
11757
11759
  "colorBorderButtonNormalDefault": "--color-border-button-normal-default-uzqi0v",
11758
11760
  "colorBorderToggleButtonNormalPressed": "--color-border-toggle-button-normal-pressed-lylxt2",
@@ -12011,7 +12013,7 @@ module.exports.preset = {
12011
12013
  "borderRadiusTabsFocusRing": "--border-radius-tabs-focus-ring-1q0rjo",
12012
12014
  "borderRadiusTiles": "--border-radius-tiles-60y8e6",
12013
12015
  "borderRadiusToken": "--border-radius-token-923jqq",
12014
- "borderRadiusChatBubble": "--border-radius-chat-bubble-ur269r",
12016
+ "borderRadiusChatBubble": "--border-radius-chat-bubble-qvkt36",
12015
12017
  "borderRadiusTutorialPanelItem": "--border-radius-tutorial-panel-item-b44p0a",
12016
12018
  "borderTableStickyWidth": "--border-table-sticky-width-87kf12",
12017
12019
  "borderLinkFocusRingOutline": "--border-link-focus-ring-outline-kkfop6",
@@ -107,6 +107,8 @@ export declare interface TypedOverride {
107
107
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
108
108
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
109
109
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
110
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
111
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
110
112
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
111
113
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
112
114
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -340,6 +342,8 @@ export declare interface TypedOverride {
340
342
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
341
343
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
342
344
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
345
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
346
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
343
347
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
344
348
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
345
349
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -573,6 +577,8 @@ export declare interface TypedOverride {
573
577
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
574
578
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
575
579
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
580
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
581
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
576
582
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
577
583
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
578
584
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -806,6 +812,8 @@ export declare interface TypedOverride {
806
812
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
807
813
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
808
814
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
815
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
816
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
809
817
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
810
818
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
811
819
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1039,6 +1047,8 @@ export declare interface TypedOverride {
1039
1047
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1040
1048
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1041
1049
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1050
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1051
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1042
1052
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1043
1053
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1044
1054
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1272,6 +1282,8 @@ export declare interface TypedOverride {
1272
1282
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1273
1283
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1274
1284
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1285
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1286
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1275
1287
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1276
1288
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1277
1289
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1505,6 +1517,8 @@ export declare interface TypedOverride {
1505
1517
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1506
1518
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1507
1519
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1520
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1521
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1508
1522
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1509
1523
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1510
1524
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1738,6 +1752,8 @@ export declare interface TypedOverride {
1738
1752
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1739
1753
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1740
1754
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1755
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1756
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1741
1757
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1742
1758
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1743
1759
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -107,6 +107,8 @@ export declare interface TypedOverride {
107
107
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
108
108
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
109
109
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
110
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
111
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
110
112
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
111
113
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
112
114
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -340,6 +342,8 @@ export declare interface TypedOverride {
340
342
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
341
343
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
342
344
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
345
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
346
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
343
347
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
344
348
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
345
349
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -573,6 +577,8 @@ export declare interface TypedOverride {
573
577
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
574
578
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
575
579
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
580
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
581
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
576
582
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
577
583
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
578
584
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -806,6 +812,8 @@ export declare interface TypedOverride {
806
812
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
807
813
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
808
814
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
815
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
816
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
809
817
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
810
818
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
811
819
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1039,6 +1047,8 @@ export declare interface TypedOverride {
1039
1047
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1040
1048
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1041
1049
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1050
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1051
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1042
1052
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1043
1053
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1044
1054
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1272,6 +1282,8 @@ export declare interface TypedOverride {
1272
1282
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1273
1283
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1274
1284
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1285
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1286
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1275
1287
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1276
1288
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1277
1289
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1505,6 +1517,8 @@ export declare interface TypedOverride {
1505
1517
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1506
1518
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1507
1519
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1520
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1521
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1508
1522
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1509
1523
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1510
1524
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1738,6 +1752,8 @@ export declare interface TypedOverride {
1738
1752
  colorBackgroundStatusSuccess?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1739
1753
  colorBackgroundStatusWarning?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1740
1754
  colorBackgroundToggleCheckedDisabled?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1755
+ colorBackgroundChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1756
+ colorBackgroundChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1741
1757
  colorTextChatBubbleOutgoing?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1742
1758
  colorTextChatBubbleIncoming?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1743
1759
  colorBorderButtonNormalActive?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;