@cloudscape-design/components 3.0.788 → 3.0.790

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/utils/use-drawers.d.ts.map +1 -1
  2. package/app-layout/utils/use-drawers.js +14 -7
  3. package/app-layout/utils/use-drawers.js.map +1 -1
  4. package/app-layout/visual-refresh/drawers.d.ts.map +1 -1
  5. package/app-layout/visual-refresh/drawers.js +1 -1
  6. package/app-layout/visual-refresh/drawers.js.map +1 -1
  7. package/app-layout/visual-refresh/styles.css.js +85 -85
  8. package/app-layout/visual-refresh/styles.scoped.css +166 -162
  9. package/app-layout/visual-refresh/styles.selectors.js +85 -85
  10. package/app-layout/visual-refresh-toolbar/index.d.ts.map +1 -1
  11. package/app-layout/visual-refresh-toolbar/index.js +1 -5
  12. package/app-layout/visual-refresh-toolbar/index.js.map +1 -1
  13. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts.map +1 -1
  14. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js +1 -1
  15. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js.map +1 -1
  16. package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +13 -13
  17. package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +24 -16
  18. package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +13 -13
  19. package/area-chart/chart-container.d.ts +2 -1
  20. package/area-chart/chart-container.d.ts.map +1 -1
  21. package/area-chart/chart-container.js +2 -2
  22. package/area-chart/chart-container.js.map +1 -1
  23. package/area-chart/internal.d.ts.map +1 -1
  24. package/area-chart/internal.js +1 -1
  25. package/area-chart/internal.js.map +1 -1
  26. package/button/internal.d.ts.map +1 -1
  27. package/button/internal.js +0 -2
  28. package/button/internal.js.map +1 -1
  29. package/collection-preferences/content-display/index.d.ts.map +1 -1
  30. package/collection-preferences/content-display/index.js +2 -2
  31. package/collection-preferences/content-display/index.js.map +1 -1
  32. package/collection-preferences/content-display/utils.d.ts +1 -0
  33. package/collection-preferences/content-display/utils.d.ts.map +1 -1
  34. package/collection-preferences/content-display/utils.js +7 -0
  35. package/collection-preferences/content-display/utils.js.map +1 -1
  36. package/file-upload/internal.js +1 -1
  37. package/file-upload/internal.js.map +1 -1
  38. package/flashbar/styles.css.js +50 -50
  39. package/flashbar/styles.scoped.css +149 -156
  40. package/flashbar/styles.selectors.js +50 -50
  41. package/internal/analytics/index.d.ts.map +1 -1
  42. package/internal/analytics/index.js +0 -1
  43. package/internal/analytics/index.js.map +1 -1
  44. package/internal/analytics/interfaces.d.ts +0 -8
  45. package/internal/analytics/interfaces.d.ts.map +1 -1
  46. package/internal/analytics/interfaces.js.map +1 -1
  47. package/internal/components/cartesian-chart/chart-container.d.ts +1 -0
  48. package/internal/components/cartesian-chart/chart-container.d.ts.map +1 -1
  49. package/internal/components/cartesian-chart/chart-container.js +2 -2
  50. package/internal/components/cartesian-chart/chart-container.js.map +1 -1
  51. package/internal/components/cartesian-chart/styles.css.js +28 -27
  52. package/internal/components/cartesian-chart/styles.scoped.css +34 -31
  53. package/internal/components/cartesian-chart/styles.selectors.js +28 -27
  54. package/internal/context/modal-context.d.ts +6 -7
  55. package/internal/context/modal-context.d.ts.map +1 -1
  56. package/internal/context/modal-context.js +1 -5
  57. package/internal/context/modal-context.js.map +1 -1
  58. package/internal/environment.js +1 -1
  59. package/internal/environment.json +1 -1
  60. package/internal/hooks/use-performance-marks/index.d.ts.map +1 -1
  61. package/internal/hooks/use-performance-marks/index.js.map +1 -1
  62. package/internal/manifest.json +1 -1
  63. package/internal/widgets/index.d.ts +1 -2
  64. package/internal/widgets/index.d.ts.map +1 -1
  65. package/internal/widgets/index.js +0 -11
  66. package/internal/widgets/index.js.map +1 -1
  67. package/mixed-line-bar-chart/chart-container.d.ts +2 -1
  68. package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  69. package/mixed-line-bar-chart/chart-container.js +2 -2
  70. package/mixed-line-bar-chart/chart-container.js.map +1 -1
  71. package/mixed-line-bar-chart/internal.d.ts.map +1 -1
  72. package/mixed-line-bar-chart/internal.js +1 -1
  73. package/mixed-line-bar-chart/internal.js.map +1 -1
  74. package/modal/internal.d.ts.map +1 -1
  75. package/modal/internal.js +2 -40
  76. package/modal/internal.js.map +1 -1
  77. package/package.json +1 -1
  78. package/spinner/internal.d.ts.map +1 -1
  79. package/spinner/internal.js +0 -2
  80. package/spinner/internal.js.map +1 -1
  81. package/split-panel/implementation.d.ts +6 -4
  82. package/split-panel/implementation.d.ts.map +1 -1
  83. package/split-panel/implementation.js +13 -17
  84. package/split-panel/implementation.js.map +1 -1
  85. package/split-panel/index.js +1 -1
  86. package/split-panel/index.js.map +1 -1
  87. package/split-panel/internal.d.ts +1 -2
  88. package/split-panel/internal.d.ts.map +1 -1
  89. package/internal/hooks/use-modal-component-analytics/index.d.ts +0 -3
  90. package/internal/hooks/use-modal-component-analytics/index.d.ts.map +0 -1
  91. package/internal/hooks/use-modal-component-analytics/index.js +0 -35
  92. package/internal/hooks/use-modal-component-analytics/index.js.map +0 -1
@@ -2,55 +2,55 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "flash-with-motion": "awsui_flash-with-motion_1q84n_1dot1_153",
6
- "enter": "awsui_enter_1q84n_1dot1_153",
7
- "flash-body": "awsui_flash-body_1q84n_1dot1_167",
8
- "flash-message": "awsui_flash-message_1q84n_1dot1_167",
9
- "flash-header": "awsui_flash-header_1q84n_1dot1_167",
10
- "flash-content": "awsui_flash-content_1q84n_1dot1_168",
11
- "action-button-wrapper": "awsui_action-button-wrapper_1q84n_1dot1_169",
12
- "dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_1dot1_170",
13
- "flash-icon": "awsui_flash-icon_1q84n_1dot1_193",
14
- "entering": "awsui_entering_1q84n_1dot1_206",
15
- "entered": "awsui_entered_1q84n_1dot1_227",
16
- "exiting": "awsui_exiting_1q84n_1dot1_332",
17
- "stack": "awsui_stack_1q84n_1dot1_366",
18
- "animation-running": "awsui_animation-running_1q84n_1dot1_366",
19
- "item": "awsui_item_1q84n_1dot1_366",
20
- "flash-list-item": "awsui_flash-list-item_1q84n_1dot1_367",
21
- "notification-bar": "awsui_notification-bar_1q84n_1dot1_368",
22
- "collapsed": "awsui_collapsed_1q84n_1dot1_388",
23
- "animation-ready": "awsui_animation-ready_1q84n_1dot1_388",
24
- "expanded-only": "awsui_expanded-only_1q84n_1dot1_388",
25
- "expanded": "awsui_expanded_1q84n_1dot1_388",
26
- "flash": "awsui_flash_1q84n_1dot1_153",
27
- "collapsible": "awsui_collapsible_1q84n_1dot1_444",
28
- "short-list": "awsui_short-list_1q84n_1dot1_450",
29
- "visual-refresh": "awsui_visual-refresh_1q84n_1dot1_450",
30
- "status": "awsui_status_1q84n_1dot1_597",
31
- "header": "awsui_header_1q84n_1dot1_597",
32
- "item-count": "awsui_item-count_1q84n_1dot1_598",
33
- "button": "awsui_button_1q84n_1dot1_599",
34
- "type-count": "awsui_type-count_1q84n_1dot1_632",
35
- "count-number": "awsui_count-number_1q84n_1dot1_632",
36
- "icon": "awsui_icon_1q84n_1dot1_666",
37
- "floating": "awsui_floating_1q84n_1dot1_707",
38
- "flashbar": "awsui_flashbar_1q84n_1dot1_711",
39
- "flash-refresh": "awsui_flash-refresh_1q84n_1dot1_786",
40
- "flash-list": "awsui_flash-list_1q84n_1dot1_367",
41
- "flash-focus-container": "awsui_flash-focus-container_1q84n_1dot1_814",
42
- "flash-text": "awsui_flash-text_1q84n_1dot1_844",
43
- "hidden": "awsui_hidden_1q84n_1dot1_863",
44
- "header-replacement": "awsui_header-replacement_1q84n_1dot1_868",
45
- "content-replacement": "awsui_content-replacement_1q84n_1dot1_873",
46
- "dismiss-button": "awsui_dismiss-button_1q84n_1dot1_170",
47
- "breakpoint-default": "awsui_breakpoint-default_1q84n_1dot1_892",
48
- "action-button": "awsui_action-button_1q84n_1dot1_169",
49
- "action-slot": "awsui_action-slot_1q84n_1dot1_902",
50
- "flash-type-success": "awsui_flash-type-success_1q84n_1dot1_906",
51
- "flash-type-error": "awsui_flash-type-error_1q84n_1dot1_910",
52
- "flash-type-info": "awsui_flash-type-info_1q84n_1dot1_914",
53
- "flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_1dot1_915",
54
- "flash-type-warning": "awsui_flash-type-warning_1q84n_1dot1_919"
5
+ "flash-with-motion": "awsui_flash-with-motion_1q84n_lsqkq_153",
6
+ "enter": "awsui_enter_1q84n_lsqkq_153",
7
+ "flash-body": "awsui_flash-body_1q84n_lsqkq_167",
8
+ "flash-message": "awsui_flash-message_1q84n_lsqkq_167",
9
+ "flash-header": "awsui_flash-header_1q84n_lsqkq_167",
10
+ "flash-content": "awsui_flash-content_1q84n_lsqkq_168",
11
+ "action-button-wrapper": "awsui_action-button-wrapper_1q84n_lsqkq_169",
12
+ "dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_lsqkq_170",
13
+ "flash-icon": "awsui_flash-icon_1q84n_lsqkq_193",
14
+ "entering": "awsui_entering_1q84n_lsqkq_206",
15
+ "entered": "awsui_entered_1q84n_lsqkq_227",
16
+ "exiting": "awsui_exiting_1q84n_lsqkq_332",
17
+ "stack": "awsui_stack_1q84n_lsqkq_366",
18
+ "animation-running": "awsui_animation-running_1q84n_lsqkq_366",
19
+ "item": "awsui_item_1q84n_lsqkq_366",
20
+ "flash-list-item": "awsui_flash-list-item_1q84n_lsqkq_367",
21
+ "notification-bar": "awsui_notification-bar_1q84n_lsqkq_368",
22
+ "collapsed": "awsui_collapsed_1q84n_lsqkq_388",
23
+ "animation-ready": "awsui_animation-ready_1q84n_lsqkq_388",
24
+ "expanded-only": "awsui_expanded-only_1q84n_lsqkq_388",
25
+ "expanded": "awsui_expanded_1q84n_lsqkq_388",
26
+ "flash": "awsui_flash_1q84n_lsqkq_153",
27
+ "collapsible": "awsui_collapsible_1q84n_lsqkq_444",
28
+ "short-list": "awsui_short-list_1q84n_lsqkq_450",
29
+ "visual-refresh": "awsui_visual-refresh_1q84n_lsqkq_450",
30
+ "status": "awsui_status_1q84n_lsqkq_597",
31
+ "header": "awsui_header_1q84n_lsqkq_597",
32
+ "item-count": "awsui_item-count_1q84n_lsqkq_598",
33
+ "button": "awsui_button_1q84n_lsqkq_599",
34
+ "type-count": "awsui_type-count_1q84n_lsqkq_632",
35
+ "count-number": "awsui_count-number_1q84n_lsqkq_632",
36
+ "icon": "awsui_icon_1q84n_lsqkq_666",
37
+ "floating": "awsui_floating_1q84n_lsqkq_707",
38
+ "flashbar": "awsui_flashbar_1q84n_lsqkq_711",
39
+ "flash-refresh": "awsui_flash-refresh_1q84n_lsqkq_786",
40
+ "flash-list": "awsui_flash-list_1q84n_lsqkq_367",
41
+ "flash-focus-container": "awsui_flash-focus-container_1q84n_lsqkq_807",
42
+ "flash-text": "awsui_flash-text_1q84n_lsqkq_837",
43
+ "hidden": "awsui_hidden_1q84n_lsqkq_856",
44
+ "header-replacement": "awsui_header-replacement_1q84n_lsqkq_861",
45
+ "content-replacement": "awsui_content-replacement_1q84n_lsqkq_866",
46
+ "dismiss-button": "awsui_dismiss-button_1q84n_lsqkq_170",
47
+ "breakpoint-default": "awsui_breakpoint-default_1q84n_lsqkq_885",
48
+ "action-button": "awsui_action-button_1q84n_lsqkq_169",
49
+ "action-slot": "awsui_action-slot_1q84n_lsqkq_895",
50
+ "flash-type-success": "awsui_flash-type-success_1q84n_lsqkq_899",
51
+ "flash-type-error": "awsui_flash-type-error_1q84n_lsqkq_903",
52
+ "flash-type-info": "awsui_flash-type-info_1q84n_lsqkq_907",
53
+ "flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_lsqkq_908",
54
+ "flash-type-warning": "awsui_flash-type-warning_1q84n_lsqkq_912"
55
55
  };
56
56
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/internal/analytics/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEtF,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,cAAc,QAE7D;AACD,wBAAgB,qBAAqB,CAAC,kBAAkB,EAAE,mBAAmB,QAE5E;AACD,wBAAgB,mBAAmB,CAAC,gBAAgB,EAAE,iBAAiB,QAEtE;AAED;;;GAGG;AACH,eAAO,IAAI,aAAa,EAAE,cAoBzB,CAAC;AAEF;;;GAGG;AACH,eAAO,IAAI,kBAAkB,EAAE,mBAI9B,CAAC;AAEF,eAAO,IAAI,gBAAgB,EAAE,iBAI5B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/internal/analytics/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEtF,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,cAAc,QAE7D;AACD,wBAAgB,qBAAqB,CAAC,kBAAkB,EAAE,mBAAmB,QAE5E;AACD,wBAAgB,mBAAmB,CAAC,gBAAgB,EAAE,iBAAiB,QAEtE;AAED;;;GAGG;AACH,eAAO,IAAI,aAAa,EAAE,cAoBzB,CAAC;AAEF;;;GAGG;AACH,eAAO,IAAI,kBAAkB,EAAE,mBAG9B,CAAC;AAEF,eAAO,IAAI,gBAAgB,EAAE,iBAI5B,CAAC"}
@@ -41,7 +41,6 @@ export let FunnelMetrics = {
41
41
  export let PerformanceMetrics = {
42
42
  tableInteraction() { },
43
43
  taskCompletionData() { },
44
- modalPerformanceData() { },
45
44
  };
46
45
  export let ComponentMetrics = {
47
46
  componentMounted() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/internal/analytics/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0BAA0B;AAI1B,MAAM,UAAU,gBAAgB,CAAC,aAA6B;IAC5D,aAAa,GAAG,aAAa,CAAC;AAChC,CAAC;AACD,MAAM,UAAU,qBAAqB,CAAC,kBAAuC;IAC3E,kBAAkB,GAAG,kBAAkB,CAAC;AAC1C,CAAC;AACD,MAAM,UAAU,mBAAmB,CAAC,gBAAmC;IACrE,gBAAgB,GAAG,gBAAgB,CAAC;AACtC,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,IAAI,aAAa,GAAmB;IACzC,WAAW;QACT,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,WAAW,KAAU,CAAC;IACtB,cAAc,KAAU,CAAC;IACzB,gBAAgB,KAAU,CAAC;IAC3B,eAAe,KAAU,CAAC;IAC1B,YAAY,KAAU,CAAC;IACvB,eAAe,KAAU,CAAC;IAC1B,kBAAkB,KAAU,CAAC;IAC7B,oBAAoB,KAAU,CAAC;IAC/B,eAAe,KAAU,CAAC;IAC1B,gBAAgB,KAAU,CAAC;IAC3B,kBAAkB,KAAU,CAAC;IAC7B,qBAAqB,KAAU,CAAC;IAChC,kBAAkB,KAAU,CAAC;IAC7B,mBAAmB,KAAU,CAAC;IAC9B,sBAAsB,KAAU,CAAC;CAClC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,IAAI,kBAAkB,GAAwB;IACnD,gBAAgB,KAAU,CAAC;IAC3B,kBAAkB,KAAU,CAAC;IAC7B,oBAAoB,KAAU,CAAC;CAChC,CAAC;AAEF,MAAM,CAAC,IAAI,gBAAgB,GAAsB;IAC/C,gBAAgB;QACd,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/* istanbul ignore file */\n\nimport { IComponentMetrics, IFunnelMetrics, IPerformanceMetrics } from './interfaces';\n\nexport function setFunnelMetrics(funnelMetrics: IFunnelMetrics) {\n FunnelMetrics = funnelMetrics;\n}\nexport function setPerformanceMetrics(performanceMetrics: IPerformanceMetrics) {\n PerformanceMetrics = performanceMetrics;\n}\nexport function setComponentMetrics(componentMetrics: IComponentMetrics) {\n ComponentMetrics = componentMetrics;\n}\n\n/**\n * This is a stub implementation of the FunnelMetrics interface and will be replaced during\n * build time with the actual implementation.\n */\nexport let FunnelMetrics: IFunnelMetrics = {\n funnelStart(): string {\n return '';\n },\n\n funnelError(): void {},\n funnelComplete(): void {},\n funnelSuccessful(): void {},\n funnelCancelled(): void {},\n funnelChange(): void {},\n funnelStepStart(): void {},\n funnelStepComplete(): void {},\n funnelStepNavigation(): void {},\n funnelStepError(): void {},\n funnelStepChange(): void {},\n funnelSubStepStart(): void {},\n funnelSubStepComplete(): void {},\n funnelSubStepError(): void {},\n helpPanelInteracted(): void {},\n externalLinkInteracted(): void {},\n};\n\n/**\n * This is a stub implementation of the PerformanceMetrics interface and will be replaced during\n * build time with the actual implementation.\n */\nexport let PerformanceMetrics: IPerformanceMetrics = {\n tableInteraction(): void {},\n taskCompletionData(): void {},\n modalPerformanceData(): void {},\n};\n\nexport let ComponentMetrics: IComponentMetrics = {\n componentMounted(): string {\n return '';\n },\n};\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/internal/analytics/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0BAA0B;AAI1B,MAAM,UAAU,gBAAgB,CAAC,aAA6B;IAC5D,aAAa,GAAG,aAAa,CAAC;AAChC,CAAC;AACD,MAAM,UAAU,qBAAqB,CAAC,kBAAuC;IAC3E,kBAAkB,GAAG,kBAAkB,CAAC;AAC1C,CAAC;AACD,MAAM,UAAU,mBAAmB,CAAC,gBAAmC;IACrE,gBAAgB,GAAG,gBAAgB,CAAC;AACtC,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,IAAI,aAAa,GAAmB;IACzC,WAAW;QACT,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,WAAW,KAAU,CAAC;IACtB,cAAc,KAAU,CAAC;IACzB,gBAAgB,KAAU,CAAC;IAC3B,eAAe,KAAU,CAAC;IAC1B,YAAY,KAAU,CAAC;IACvB,eAAe,KAAU,CAAC;IAC1B,kBAAkB,KAAU,CAAC;IAC7B,oBAAoB,KAAU,CAAC;IAC/B,eAAe,KAAU,CAAC;IAC1B,gBAAgB,KAAU,CAAC;IAC3B,kBAAkB,KAAU,CAAC;IAC7B,qBAAqB,KAAU,CAAC;IAChC,kBAAkB,KAAU,CAAC;IAC7B,mBAAmB,KAAU,CAAC;IAC9B,sBAAsB,KAAU,CAAC;CAClC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,IAAI,kBAAkB,GAAwB;IACnD,gBAAgB,KAAU,CAAC;IAC3B,kBAAkB,KAAU,CAAC;CAC9B,CAAC;AAEF,MAAM,CAAC,IAAI,gBAAgB,GAAsB;IAC/C,gBAAgB;QACd,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/* istanbul ignore file */\n\nimport { IComponentMetrics, IFunnelMetrics, IPerformanceMetrics } from './interfaces';\n\nexport function setFunnelMetrics(funnelMetrics: IFunnelMetrics) {\n FunnelMetrics = funnelMetrics;\n}\nexport function setPerformanceMetrics(performanceMetrics: IPerformanceMetrics) {\n PerformanceMetrics = performanceMetrics;\n}\nexport function setComponentMetrics(componentMetrics: IComponentMetrics) {\n ComponentMetrics = componentMetrics;\n}\n\n/**\n * This is a stub implementation of the FunnelMetrics interface and will be replaced during\n * build time with the actual implementation.\n */\nexport let FunnelMetrics: IFunnelMetrics = {\n funnelStart(): string {\n return '';\n },\n\n funnelError(): void {},\n funnelComplete(): void {},\n funnelSuccessful(): void {},\n funnelCancelled(): void {},\n funnelChange(): void {},\n funnelStepStart(): void {},\n funnelStepComplete(): void {},\n funnelStepNavigation(): void {},\n funnelStepError(): void {},\n funnelStepChange(): void {},\n funnelSubStepStart(): void {},\n funnelSubStepComplete(): void {},\n funnelSubStepError(): void {},\n helpPanelInteracted(): void {},\n externalLinkInteracted(): void {},\n};\n\n/**\n * This is a stub implementation of the PerformanceMetrics interface and will be replaced during\n * build time with the actual implementation.\n */\nexport let PerformanceMetrics: IPerformanceMetrics = {\n tableInteraction(): void {},\n taskCompletionData(): void {},\n};\n\nexport let ComponentMetrics: IComponentMetrics = {\n componentMounted(): string {\n return '';\n },\n};\n"]}
@@ -124,7 +124,6 @@ export type TaskCompletionDataMethod = (props: TaskCompletionDataProps) => void;
124
124
  export interface IPerformanceMetrics {
125
125
  tableInteraction: TableInteractionMethod;
126
126
  taskCompletionData: TaskCompletionDataMethod;
127
- modalPerformanceData: ModalPerformanceDataMethod;
128
127
  }
129
128
  export interface ComponentMountedProps {
130
129
  componentName: string;
@@ -135,11 +134,4 @@ export type ComponentMountedMethod = (props: ComponentMountedProps) => string;
135
134
  export interface IComponentMetrics {
136
135
  componentMounted: ComponentMountedMethod;
137
136
  }
138
- export interface ModalPerformanceDataProps {
139
- timeToContentReadyInModal: number;
140
- instanceIdentifier?: string;
141
- componentIdentifier?: string;
142
- modalMetadata?: string;
143
- }
144
- export type ModalPerformanceDataMethod = (props: ModalPerformanceDataProps) => void;
145
137
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/internal/analytics/interfaces.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG,YAAY,CAAC;AACtD,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,CAAC;AAClF,MAAM,WAAW,iBAAiB;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,WAAW,eAAe;IAC9B,gBAAgB,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":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nexport type FunnelType = 'single-page' | 'multi-page';\nexport type FlowType = 'create' | 'edit' | 'home' | 'dashboard' | 'view-resource';\nexport interface AnalyticsMetadata {\n instanceIdentifier?: string;\n flowType?: FlowType;\n errorContext?: string;\n resourceType?: string;\n}\n\n// Common properties for all funnels\nexport interface BaseFunnelProps {\n funnelIdentifier?: string;\n funnelInteractionId: string;\n currentDocument?: Document;\n}\n\nexport interface FunnelErrorProps extends BaseFunnelProps {\n funnelErrorContext?: string;\n}\n\nexport interface FunnelStartProps extends Omit<BaseFunnelProps, 'funnelInteractionId'> {\n flowType?: FlowType;\n resourceType?: string;\n funnelNameSelector: string;\n totalFunnelSteps: number;\n optionalStepNumbers: number[];\n stepConfiguration?: StepConfiguration[];\n funnelType: FunnelType;\n funnelVersion: string;\n componentVersion: string;\n componentTheme: string;\n funnelInteractionId?: string;\n}\n\n// A function type for a generic funnel method\nexport type FunnelMethod<T extends BaseFunnelProps> = (props: T) => void;\n\n// Interface for table interaction method props\nexport interface TableInteractionProps {\n // Time to render table in either no data state or with data after user actions like filtering, pagination.\n // in milliseconds\n interactionTime: number;\n // User action like sorting, filtering, pagination which triggered new data load in table.\n userAction: string;\n // Unique instance identifier for the component.\n // Default: ''\n instanceIdentifier?: string;\n // Component identifier like table header which can be used to identify the table\n // Default: ''\n componentIdentifier?: string;\n // Number of resources in table after user action\n // Default: 0\n noOfResourcesInTable?: number;\n // Additional metadata related to user interaction\n interactionMetadata?: string;\n}\n\nexport type TableInteractionMethod = (props: TableInteractionProps) => void;\n\n// A function type specifically for funnelStart\nexport type FunnelStartMethod = (props: FunnelStartProps) => string;\n\n// Define individual method props by extending the base\nexport interface FunnelStepProps extends BaseFunnelProps {\n stepIdentifier?: string;\n stepNumber: number;\n stepName?: string | undefined;\n stepNameSelector?: string;\n subStepAllSelector: string;\n totalSubSteps?: number;\n subStepConfiguration?: SubStepConfiguration[];\n}\n\nexport interface FunnelStepNavigationProps extends FunnelStepProps {\n destinationStepNumber: number;\n navigationType: string;\n totalSubSteps?: number;\n}\n\nexport interface FunnelStepErrorProps extends FunnelStepProps {\n stepErrorContext?: string;\n stepErrorSelector: string;\n}\n\nexport interface FunnelSubStepProps extends FunnelStepProps {\n subStepIdentifier?: string;\n subStepSelector: string;\n subStepName?: string | undefined;\n subStepNameSelector: string;\n subStepNumber?: number;\n}\n\nexport interface FunnelSubStepErrorProps extends FunnelSubStepProps {\n subStepErrorContext?: string;\n fieldIdentifier?: string;\n fieldErrorContext?: string;\n fieldLabelSelector: string;\n fieldErrorSelector: string;\n}\n\nexport interface OptionalFunnelSubStepErrorProps extends FunnelSubStepProps {\n subStepErrorContext?: string;\n fieldIdentifier?: string;\n fieldErrorContext?: string;\n fieldLabelSelector?: string;\n fieldErrorSelector?: string;\n}\n\nexport interface FunnelLinkInteractionProps extends FunnelSubStepProps {\n elementSelector: string;\n}\n\nexport interface FunnelChangeProps extends BaseFunnelProps {\n stepConfiguration: StepConfiguration[];\n}\n\nexport interface StepConfiguration {\n number: number;\n name: string;\n isOptional: boolean;\n stepIdentifier?: string;\n}\n\nexport interface SubStepConfiguration {\n number: number;\n name: string;\n subStepIdentifier?: string;\n}\n\n// Define the interface using the method type\nexport interface IFunnelMetrics {\n funnelStart: FunnelStartMethod;\n funnelError: FunnelMethod<FunnelErrorProps>;\n funnelComplete: FunnelMethod<BaseFunnelProps>;\n funnelSuccessful: FunnelMethod<BaseFunnelProps>;\n funnelCancelled: FunnelMethod<BaseFunnelProps>;\n funnelChange: FunnelMethod<FunnelChangeProps>;\n\n funnelStepStart: FunnelMethod<FunnelStepProps>;\n funnelStepComplete: FunnelMethod<FunnelStepProps>;\n funnelStepNavigation: FunnelMethod<FunnelStepNavigationProps>;\n funnelStepError: FunnelMethod<FunnelStepErrorProps>;\n funnelStepChange: FunnelMethod<FunnelStepProps>;\n\n funnelSubStepStart: FunnelMethod<FunnelSubStepProps>;\n funnelSubStepComplete: FunnelMethod<FunnelSubStepProps>;\n funnelSubStepError: FunnelMethod<OptionalFunnelSubStepErrorProps>;\n\n helpPanelInteracted: FunnelMethod<FunnelLinkInteractionProps>;\n externalLinkInteracted: FunnelMethod<FunnelLinkInteractionProps>;\n}\n\n// Interface for task completion method props\nexport interface TaskCompletionDataProps {\n // Time taken to respond to customers after customers submit the form\n // in milliseconds\n timeToRespondAfterFormSubmit: number;\n // Unique identifier for the task aka funnelInteractionId.\n // Default: ''\n taskInteractionId: string;\n // Task name identifier to identify the task aka funnelName\n // Default: ''\n taskIdentifier?: string;\n // To identify create or edit flow\n // Default: ''\n taskFlowType?: string;\n //\"single-page\" | \"multi-page\"\n // Default: ''\n taskType?: FunnelType;\n // Additional metadata related to completion such as success or error\n completionMetadata?: string;\n}\n\nexport type TaskCompletionDataMethod = (props: TaskCompletionDataProps) => void;\n\nexport interface IPerformanceMetrics {\n tableInteraction: TableInteractionMethod;\n taskCompletionData: TaskCompletionDataMethod;\n modalPerformanceData: ModalPerformanceDataMethod;\n}\n\nexport interface ComponentMountedProps {\n componentName: string;\n taskInteractionId?: string;\n details: Record<string, string | boolean | number | undefined>;\n}\nexport type ComponentMountedMethod = (props: ComponentMountedProps) => string;\nexport interface IComponentMetrics {\n componentMounted: ComponentMountedMethod;\n}\n\n// Interface for modal metrics\nexport interface ModalPerformanceDataProps {\n // Time span from when the modal begins loading to when the primary button or modal has finished loading.\n // in milliseconds\n timeToContentReadyInModal: number;\n // Unique instance identifier for the component.\n // Default: ''\n instanceIdentifier?: string;\n // Component identifier like modal header which can be used to identify the modal\n // Default: ''\n componentIdentifier?: string;\n // Additional metadata related to modal\n modalMetadata?: string;\n}\n\nexport type ModalPerformanceDataMethod = (props: ModalPerformanceDataProps) => void;\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/internal/analytics/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nexport type FunnelType = 'single-page' | 'multi-page';\nexport type FlowType = 'create' | 'edit' | 'home' | 'dashboard' | 'view-resource';\nexport interface AnalyticsMetadata {\n instanceIdentifier?: string;\n flowType?: FlowType;\n errorContext?: string;\n resourceType?: string;\n}\n\n// Common properties for all funnels\nexport interface BaseFunnelProps {\n funnelIdentifier?: string;\n funnelInteractionId: string;\n currentDocument?: Document;\n}\n\nexport interface FunnelErrorProps extends BaseFunnelProps {\n funnelErrorContext?: string;\n}\n\nexport interface FunnelStartProps extends Omit<BaseFunnelProps, 'funnelInteractionId'> {\n flowType?: FlowType;\n resourceType?: string;\n funnelNameSelector: string;\n totalFunnelSteps: number;\n optionalStepNumbers: number[];\n stepConfiguration?: StepConfiguration[];\n funnelType: FunnelType;\n funnelVersion: string;\n componentVersion: string;\n componentTheme: string;\n funnelInteractionId?: string;\n}\n\n// A function type for a generic funnel method\nexport type FunnelMethod<T extends BaseFunnelProps> = (props: T) => void;\n\n// Interface for table interaction method props\nexport interface TableInteractionProps {\n // Time to render table in either no data state or with data after user actions like filtering, pagination.\n // in milliseconds\n interactionTime: number;\n // User action like sorting, filtering, pagination which triggered new data load in table.\n userAction: string;\n // Unique instance identifier for the component.\n // Default: ''\n instanceIdentifier?: string;\n // Component identifier like table header which can be used to identify the table\n // Default: ''\n componentIdentifier?: string;\n // Number of resources in table after user action\n // Default: 0\n noOfResourcesInTable?: number;\n // Additional metadata related to user interaction\n interactionMetadata?: string;\n}\n\nexport type TableInteractionMethod = (props: TableInteractionProps) => void;\n\n// A function type specifically for funnelStart\nexport type FunnelStartMethod = (props: FunnelStartProps) => string;\n\n// Define individual method props by extending the base\nexport interface FunnelStepProps extends BaseFunnelProps {\n stepIdentifier?: string;\n stepNumber: number;\n stepName?: string | undefined;\n stepNameSelector?: string;\n subStepAllSelector: string;\n totalSubSteps?: number;\n subStepConfiguration?: SubStepConfiguration[];\n}\n\nexport interface FunnelStepNavigationProps extends FunnelStepProps {\n destinationStepNumber: number;\n navigationType: string;\n totalSubSteps?: number;\n}\n\nexport interface FunnelStepErrorProps extends FunnelStepProps {\n stepErrorContext?: string;\n stepErrorSelector: string;\n}\n\nexport interface FunnelSubStepProps extends FunnelStepProps {\n subStepIdentifier?: string;\n subStepSelector: string;\n subStepName?: string | undefined;\n subStepNameSelector: string;\n subStepNumber?: number;\n}\n\nexport interface FunnelSubStepErrorProps extends FunnelSubStepProps {\n subStepErrorContext?: string;\n fieldIdentifier?: string;\n fieldErrorContext?: string;\n fieldLabelSelector: string;\n fieldErrorSelector: string;\n}\n\nexport interface OptionalFunnelSubStepErrorProps extends FunnelSubStepProps {\n subStepErrorContext?: string;\n fieldIdentifier?: string;\n fieldErrorContext?: string;\n fieldLabelSelector?: string;\n fieldErrorSelector?: string;\n}\n\nexport interface FunnelLinkInteractionProps extends FunnelSubStepProps {\n elementSelector: string;\n}\n\nexport interface FunnelChangeProps extends BaseFunnelProps {\n stepConfiguration: StepConfiguration[];\n}\n\nexport interface StepConfiguration {\n number: number;\n name: string;\n isOptional: boolean;\n stepIdentifier?: string;\n}\n\nexport interface SubStepConfiguration {\n number: number;\n name: string;\n subStepIdentifier?: string;\n}\n\n// Define the interface using the method type\nexport interface IFunnelMetrics {\n funnelStart: FunnelStartMethod;\n funnelError: FunnelMethod<FunnelErrorProps>;\n funnelComplete: FunnelMethod<BaseFunnelProps>;\n funnelSuccessful: FunnelMethod<BaseFunnelProps>;\n funnelCancelled: FunnelMethod<BaseFunnelProps>;\n funnelChange: FunnelMethod<FunnelChangeProps>;\n\n funnelStepStart: FunnelMethod<FunnelStepProps>;\n funnelStepComplete: FunnelMethod<FunnelStepProps>;\n funnelStepNavigation: FunnelMethod<FunnelStepNavigationProps>;\n funnelStepError: FunnelMethod<FunnelStepErrorProps>;\n funnelStepChange: FunnelMethod<FunnelStepProps>;\n\n funnelSubStepStart: FunnelMethod<FunnelSubStepProps>;\n funnelSubStepComplete: FunnelMethod<FunnelSubStepProps>;\n funnelSubStepError: FunnelMethod<OptionalFunnelSubStepErrorProps>;\n\n helpPanelInteracted: FunnelMethod<FunnelLinkInteractionProps>;\n externalLinkInteracted: FunnelMethod<FunnelLinkInteractionProps>;\n}\n\n// Interface for task completion method props\nexport interface TaskCompletionDataProps {\n // Time taken to respond to customers after customers submit the form\n // in milliseconds\n timeToRespondAfterFormSubmit: number;\n // Unique identifier for the task aka funnelInteractionId.\n // Default: ''\n taskInteractionId: string;\n // Task name identifier to identify the task aka funnelName\n // Default: ''\n taskIdentifier?: string;\n // To identify create or edit flow\n // Default: ''\n taskFlowType?: string;\n //\"single-page\" | \"multi-page\"\n // Default: ''\n taskType?: FunnelType;\n // Additional metadata related to completion such as success or error\n completionMetadata?: string;\n}\n\nexport type TaskCompletionDataMethod = (props: TaskCompletionDataProps) => void;\n\nexport interface IPerformanceMetrics {\n tableInteraction: TableInteractionMethod;\n taskCompletionData: TaskCompletionDataMethod;\n}\n\nexport interface ComponentMountedProps {\n componentName: string;\n taskInteractionId?: string;\n details: Record<string, string | boolean | number | undefined>;\n}\nexport type ComponentMountedMethod = (props: ComponentMountedProps) => string;\nexport interface IComponentMetrics {\n componentMounted: ComponentMountedMethod;\n}\n"]}
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  interface CartesianChartContainerProps {
3
3
  minHeight: number;
4
4
  fitHeight: boolean;
5
+ hasFilters: boolean;
5
6
  leftAxisLabel: React.ReactNode;
6
7
  leftAxisLabelMeasure: React.ReactNode;
7
8
  bottomAxisLabel: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"chart-container.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/chart-container.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C,UAAU,4BAA4B;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,oBAAoB,EAAE,KAAK,CAAC,SAAS,CAAC;IACtC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAID,eAAO,MAAM,uBAAuB,qGAyDnC,CAAC"}
1
+ {"version":3,"file":"chart-container.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/chart-container.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C,UAAU,4BAA4B;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,oBAAoB,EAAE,KAAK,CAAC,SAAS,CAAC;IACtC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAID,eAAO,MAAM,uBAAuB,qGA4DnC,CAAC"}
@@ -4,11 +4,11 @@ import React, { forwardRef } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import styles from './styles.css.js';
6
6
  const CONTENT_MIN_HEIGHT_BOUNDARY = 40;
7
- export const CartesianChartContainer = forwardRef(({ minHeight, fitHeight, leftAxisLabel, leftAxisLabelMeasure, bottomAxisLabel, chartPlot, popover, }, ref) => {
7
+ export const CartesianChartContainer = forwardRef(({ minHeight, fitHeight, leftAxisLabel, leftAxisLabelMeasure, bottomAxisLabel, chartPlot, popover, hasFilters, }, ref) => {
8
8
  if (fitHeight) {
9
9
  return (React.createElement("div", { className: clsx(styles['chart-container'], styles['fit-height']), ref: ref },
10
10
  leftAxisLabel,
11
- React.createElement("div", { className: clsx(styles['chart-container-outer'], styles['fit-height']) },
11
+ React.createElement("div", { className: clsx(styles['chart-container-outer'], styles['fit-height'], hasFilters && styles['has-filters']) },
12
12
  leftAxisLabelMeasure,
13
13
  React.createElement("div", { className: styles['chart-container-inner'] },
14
14
  React.createElement("div", { className: clsx(styles['chart-container-plot-wrapper'], styles['fit-height']), style: { minHeight: Math.max(minHeight, CONTENT_MIN_HEIGHT_BOUNDARY) } },
@@ -1 +1 @@
1
- {"version":3,"file":"chart-container.js","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/chart-container.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAYrC,MAAM,2BAA2B,GAAG,EAAE,CAAC;AAEvC,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAC/C,CACE,EACE,SAAS,EACT,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,OAAO,GACsB,EAC/B,GAA8B,EAC9B,EAAE;IACF,IAAI,SAAS,EAAE;QACb,OAAO,CACL,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG;YAC5E,aAAa;YAEd,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;gBACxE,oBAAoB;gBAErB,6BAAK,SAAS,EAAE,MAAM,CAAC,uBAAuB,CAAC;oBAC7C,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,8BAA8B,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,EAC7E,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,2BAA2B,CAAC,EAAE;wBAEtE,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,IAAG,SAAS,CAAO,CACzF;oBAEN,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,+BAA+B,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,IAChF,eAAe,CACZ,CACF;gBAEL,OAAO,CACJ,CACF,CACP,CAAC;KACH;IAED,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,GAAG;QAChD,aAAa;QAEd,6BAAK,SAAS,EAAE,MAAM,CAAC,uBAAuB,CAAC;YAC5C,oBAAoB;YAErB,6BAAK,SAAS,EAAE,MAAM,CAAC,uBAAuB,CAAC;gBAC5C,SAAS;gBACT,eAAe,CACZ;YAEL,OAAO,CACJ,CACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { forwardRef } from 'react';\nimport clsx from 'clsx';\n\nimport styles from './styles.css.js';\n\ninterface CartesianChartContainerProps {\n minHeight: number;\n fitHeight: boolean;\n leftAxisLabel: React.ReactNode;\n leftAxisLabelMeasure: React.ReactNode;\n bottomAxisLabel: React.ReactNode;\n chartPlot: React.ReactNode;\n popover: React.ReactNode;\n}\n\nconst CONTENT_MIN_HEIGHT_BOUNDARY = 40;\n\nexport const CartesianChartContainer = forwardRef(\n (\n {\n minHeight,\n fitHeight,\n leftAxisLabel,\n leftAxisLabelMeasure,\n bottomAxisLabel,\n chartPlot,\n popover,\n }: CartesianChartContainerProps,\n ref: React.Ref<HTMLDivElement>\n ) => {\n if (fitHeight) {\n return (\n <div className={clsx(styles['chart-container'], styles['fit-height'])} ref={ref}>\n {leftAxisLabel}\n\n <div className={clsx(styles['chart-container-outer'], styles['fit-height'])}>\n {leftAxisLabelMeasure}\n\n <div className={styles['chart-container-inner']}>\n <div\n className={clsx(styles['chart-container-plot-wrapper'], styles['fit-height'])}\n style={{ minHeight: Math.max(minHeight, CONTENT_MIN_HEIGHT_BOUNDARY) }}\n >\n <div className={clsx(styles['chart-container-plot'], styles['fit-height'])}>{chartPlot}</div>\n </div>\n\n <div className={clsx(styles['chart-container-bottom-labels'], styles['fit-height'])}>\n {bottomAxisLabel}\n </div>\n </div>\n\n {popover}\n </div>\n </div>\n );\n }\n\n return (\n <div className={styles['chart-container']} ref={ref}>\n {leftAxisLabel}\n\n <div className={styles['chart-container-outer']}>\n {leftAxisLabelMeasure}\n\n <div className={styles['chart-container-inner']}>\n {chartPlot}\n {bottomAxisLabel}\n </div>\n\n {popover}\n </div>\n </div>\n );\n }\n);\n"]}
1
+ {"version":3,"file":"chart-container.js","sourceRoot":"","sources":["../../../../../src/internal/components/cartesian-chart/chart-container.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAarC,MAAM,2BAA2B,GAAG,EAAE,CAAC;AAEvC,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAC/C,CACE,EACE,SAAS,EACT,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,OAAO,EACP,UAAU,GACmB,EAC/B,GAA8B,EAC9B,EAAE;IACF,IAAI,SAAS,EAAE;QACb,OAAO,CACL,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG;YAC5E,aAAa;YAEd,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,EAAE,UAAU,IAAI,MAAM,CAAC,aAAa,CAAC,CAAC;gBAE1G,oBAAoB;gBAErB,6BAAK,SAAS,EAAE,MAAM,CAAC,uBAAuB,CAAC;oBAC7C,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,8BAA8B,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,EAC7E,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,2BAA2B,CAAC,EAAE;wBAEtE,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,IAAG,SAAS,CAAO,CACzF;oBAEN,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,+BAA+B,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,IAChF,eAAe,CACZ,CACF;gBAEL,OAAO,CACJ,CACF,CACP,CAAC;KACH;IAED,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,GAAG;QAChD,aAAa;QAEd,6BAAK,SAAS,EAAE,MAAM,CAAC,uBAAuB,CAAC;YAC5C,oBAAoB;YAErB,6BAAK,SAAS,EAAE,MAAM,CAAC,uBAAuB,CAAC;gBAC5C,SAAS;gBACT,eAAe,CACZ;YAEL,OAAO,CACJ,CACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { forwardRef } from 'react';\nimport clsx from 'clsx';\n\nimport styles from './styles.css.js';\n\ninterface CartesianChartContainerProps {\n minHeight: number;\n fitHeight: boolean;\n hasFilters: boolean;\n leftAxisLabel: React.ReactNode;\n leftAxisLabelMeasure: React.ReactNode;\n bottomAxisLabel: React.ReactNode;\n chartPlot: React.ReactNode;\n popover: React.ReactNode;\n}\n\nconst CONTENT_MIN_HEIGHT_BOUNDARY = 40;\n\nexport const CartesianChartContainer = forwardRef(\n (\n {\n minHeight,\n fitHeight,\n leftAxisLabel,\n leftAxisLabelMeasure,\n bottomAxisLabel,\n chartPlot,\n popover,\n hasFilters,\n }: CartesianChartContainerProps,\n ref: React.Ref<HTMLDivElement>\n ) => {\n if (fitHeight) {\n return (\n <div className={clsx(styles['chart-container'], styles['fit-height'])} ref={ref}>\n {leftAxisLabel}\n\n <div\n className={clsx(styles['chart-container-outer'], styles['fit-height'], hasFilters && styles['has-filters'])}\n >\n {leftAxisLabelMeasure}\n\n <div className={styles['chart-container-inner']}>\n <div\n className={clsx(styles['chart-container-plot-wrapper'], styles['fit-height'])}\n style={{ minHeight: Math.max(minHeight, CONTENT_MIN_HEIGHT_BOUNDARY) }}\n >\n <div className={clsx(styles['chart-container-plot'], styles['fit-height'])}>{chartPlot}</div>\n </div>\n\n <div className={clsx(styles['chart-container-bottom-labels'], styles['fit-height'])}>\n {bottomAxisLabel}\n </div>\n </div>\n\n {popover}\n </div>\n </div>\n );\n }\n\n return (\n <div className={styles['chart-container']} ref={ref}>\n {leftAxisLabel}\n\n <div className={styles['chart-container-outer']}>\n {leftAxisLabelMeasure}\n\n <div className={styles['chart-container-inner']}>\n {chartPlot}\n {bottomAxisLabel}\n </div>\n\n {popover}\n </div>\n </div>\n );\n }\n);\n"]}
@@ -1,32 +1,33 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "axis": "awsui_axis_f0fot_74jht_9",
5
- "vertical-marker": "awsui_vertical-marker_f0fot_74jht_10",
6
- "axis--emphasized": "awsui_axis--emphasized_f0fot_74jht_15",
7
- "axis-label": "awsui_axis-label_f0fot_74jht_19",
8
- "axis-label--x": "awsui_axis-label--x_f0fot_74jht_24",
9
- "axis-label--y": "awsui_axis-label--y_f0fot_74jht_25",
10
- "grid": "awsui_grid_f0fot_74jht_29",
11
- "ticks__line": "awsui_ticks__line_f0fot_74jht_34",
12
- "ticks__text": "awsui_ticks__text_f0fot_74jht_39",
13
- "ticks--y": "awsui_ticks--y_f0fot_74jht_44",
14
- "ticks--x": "awsui_ticks--x_f0fot_74jht_45",
15
- "ticks--bottom": "awsui_ticks--bottom_f0fot_74jht_49",
16
- "labels-inline-start": "awsui_labels-inline-start_f0fot_74jht_54",
17
- "ticks": "awsui_ticks_f0fot_74jht_34",
18
- "labels-inline-start__label": "awsui_labels-inline-start__label_f0fot_74jht_69",
19
- "labels-inline-start--hidden": "awsui_labels-inline-start--hidden_f0fot_74jht_73",
20
- "labels-block-end": "awsui_labels-block-end_f0fot_74jht_81",
21
- "vertical-marker-circle": "awsui_vertical-marker-circle_f0fot_74jht_92",
22
- "vertical-marker-circle-active": "awsui_vertical-marker-circle-active_f0fot_74jht_98",
23
- "focus-outline": "awsui_focus-outline_f0fot_74jht_103",
24
- "chart-container": "awsui_chart-container_f0fot_74jht_111",
25
- "fit-height": "awsui_fit-height_f0fot_74jht_116",
26
- "chart-container-outer": "awsui_chart-container-outer_f0fot_74jht_121",
27
- "chart-container-inner": "awsui_chart-container-inner_f0fot_74jht_128",
28
- "chart-container-plot-wrapper": "awsui_chart-container-plot-wrapper_f0fot_74jht_135",
29
- "chart-container-plot": "awsui_chart-container-plot_f0fot_74jht_135",
30
- "chart-container-bottom-labels": "awsui_chart-container-bottom-labels_f0fot_74jht_147"
4
+ "axis": "awsui_axis_f0fot_l44um_9",
5
+ "vertical-marker": "awsui_vertical-marker_f0fot_l44um_10",
6
+ "axis--emphasized": "awsui_axis--emphasized_f0fot_l44um_15",
7
+ "axis-label": "awsui_axis-label_f0fot_l44um_19",
8
+ "axis-label--x": "awsui_axis-label--x_f0fot_l44um_24",
9
+ "axis-label--y": "awsui_axis-label--y_f0fot_l44um_25",
10
+ "grid": "awsui_grid_f0fot_l44um_29",
11
+ "ticks__line": "awsui_ticks__line_f0fot_l44um_34",
12
+ "ticks__text": "awsui_ticks__text_f0fot_l44um_39",
13
+ "ticks--y": "awsui_ticks--y_f0fot_l44um_44",
14
+ "ticks--x": "awsui_ticks--x_f0fot_l44um_45",
15
+ "ticks--bottom": "awsui_ticks--bottom_f0fot_l44um_49",
16
+ "labels-inline-start": "awsui_labels-inline-start_f0fot_l44um_54",
17
+ "ticks": "awsui_ticks_f0fot_l44um_34",
18
+ "labels-inline-start__label": "awsui_labels-inline-start__label_f0fot_l44um_69",
19
+ "labels-inline-start--hidden": "awsui_labels-inline-start--hidden_f0fot_l44um_73",
20
+ "labels-block-end": "awsui_labels-block-end_f0fot_l44um_81",
21
+ "vertical-marker-circle": "awsui_vertical-marker-circle_f0fot_l44um_92",
22
+ "vertical-marker-circle-active": "awsui_vertical-marker-circle-active_f0fot_l44um_98",
23
+ "focus-outline": "awsui_focus-outline_f0fot_l44um_103",
24
+ "chart-container": "awsui_chart-container_f0fot_l44um_111",
25
+ "fit-height": "awsui_fit-height_f0fot_l44um_116",
26
+ "chart-container-outer": "awsui_chart-container-outer_f0fot_l44um_121",
27
+ "has-filters": "awsui_has-filters_f0fot_l44um_127",
28
+ "chart-container-inner": "awsui_chart-container-inner_f0fot_l44um_131",
29
+ "chart-container-plot-wrapper": "awsui_chart-container-plot-wrapper_f0fot_l44um_138",
30
+ "chart-container-plot": "awsui_chart-container-plot_f0fot_l44um_138",
31
+ "chart-container-bottom-labels": "awsui_chart-container-bottom-labels_f0fot_l44um_150"
31
32
  };
32
33
 
@@ -6,101 +6,101 @@
6
6
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
7
7
  SPDX-License-Identifier: Apache-2.0
8
8
  */
9
- .awsui_axis_f0fot_74jht_9:not(#\9),
10
- .awsui_vertical-marker_f0fot_74jht_10:not(#\9) {
9
+ .awsui_axis_f0fot_l44um_9:not(#\9),
10
+ .awsui_vertical-marker_f0fot_l44um_10:not(#\9) {
11
11
  stroke: var(--color-charts-line-axis-d4bcyf, #dedee3);
12
12
  stroke-width: 1px;
13
13
  }
14
14
 
15
- .awsui_axis--emphasized_f0fot_74jht_15:not(#\9) {
15
+ .awsui_axis--emphasized_f0fot_l44um_15:not(#\9) {
16
16
  stroke-width: 2px;
17
17
  }
18
18
 
19
- .awsui_axis-label_f0fot_74jht_19:not(#\9) {
19
+ .awsui_axis-label_f0fot_l44um_19:not(#\9) {
20
20
  font-weight: bold;
21
21
  fill: var(--color-text-body-default-7v1jfn, #0f141a);
22
22
  }
23
23
 
24
- .awsui_axis-label--x_f0fot_74jht_24:not(#\9),
25
- .awsui_axis-label--y_f0fot_74jht_25:not(#\9) {
24
+ .awsui_axis-label--x_f0fot_l44um_24:not(#\9),
25
+ .awsui_axis-label--y_f0fot_l44um_25:not(#\9) {
26
26
  /* used in test-utils */
27
27
  }
28
28
 
29
- .awsui_grid_f0fot_74jht_29:not(#\9) {
29
+ .awsui_grid_f0fot_l44um_29:not(#\9) {
30
30
  stroke: var(--color-charts-line-grid-vaxun1, #dedee3);
31
31
  stroke-width: 1px;
32
32
  }
33
33
 
34
- .awsui_ticks__line_f0fot_74jht_34:not(#\9) {
34
+ .awsui_ticks__line_f0fot_l44um_34:not(#\9) {
35
35
  stroke: var(--color-charts-line-tick-6i81s1, #dedee3);
36
36
  stroke-width: 1px;
37
37
  }
38
38
 
39
- .awsui_ticks__text_f0fot_74jht_39:not(#\9) {
39
+ .awsui_ticks__text_f0fot_l44um_39:not(#\9) {
40
40
  font-size: var(--font-chart-detail-size-1n389u, 12px);
41
41
  fill: var(--color-text-body-secondary-cwla8d, #424650);
42
42
  }
43
43
 
44
- .awsui_ticks--y_f0fot_74jht_44:not(#\9),
45
- .awsui_ticks--x_f0fot_74jht_45:not(#\9) {
44
+ .awsui_ticks--y_f0fot_l44um_44:not(#\9),
45
+ .awsui_ticks--x_f0fot_l44um_45:not(#\9) {
46
46
  /* used in test-utils */
47
47
  }
48
48
 
49
- .awsui_ticks--bottom_f0fot_74jht_49 > .awsui_ticks__text_f0fot_74jht_39:not(#\9) {
49
+ .awsui_ticks--bottom_f0fot_l44um_49 > .awsui_ticks__text_f0fot_l44um_39:not(#\9) {
50
50
  text-anchor: middle;
51
51
  dominant-baseline: hanging;
52
52
  }
53
53
 
54
- .awsui_labels-inline-start_f0fot_74jht_54 > .awsui_ticks_f0fot_74jht_34 > .awsui_ticks__text_f0fot_74jht_39:not(#\9) {
54
+ .awsui_labels-inline-start_f0fot_l44um_54 > .awsui_ticks_f0fot_l44um_34 > .awsui_ticks__text_f0fot_l44um_39:not(#\9) {
55
55
  text-anchor: end;
56
56
  dominant-baseline: central;
57
57
  }
58
58
 
59
- .awsui_labels-inline-start_f0fot_74jht_54:not(#\9) {
59
+ .awsui_labels-inline-start_f0fot_l44um_54:not(#\9) {
60
60
  position: relative;
61
61
  margin-inline-end: 12px;
62
62
  }
63
- .awsui_labels-inline-start_f0fot_74jht_54 > .awsui_axis-label_f0fot_74jht_19:not(#\9) {
63
+ .awsui_labels-inline-start_f0fot_l44um_54 > .awsui_axis-label_f0fot_l44um_19:not(#\9) {
64
64
  position: absolute;
65
65
  visibility: visible;
66
66
  white-space: nowrap;
67
67
  }
68
68
 
69
- .awsui_labels-inline-start__label_f0fot_74jht_69:not(#\9) {
69
+ .awsui_labels-inline-start__label_f0fot_l44um_69:not(#\9) {
70
70
  position: absolute;
71
71
  }
72
72
 
73
- .awsui_labels-inline-start--hidden_f0fot_74jht_73:not(#\9) {
73
+ .awsui_labels-inline-start--hidden_f0fot_l44um_73:not(#\9) {
74
74
  visibility: hidden;
75
75
  }
76
- .awsui_labels-inline-start--hidden_f0fot_74jht_73 > .awsui_labels-inline-start__label_f0fot_74jht_69:not(#\9) {
76
+ .awsui_labels-inline-start--hidden_f0fot_l44um_73 > .awsui_labels-inline-start__label_f0fot_l44um_69:not(#\9) {
77
77
  position: relative;
78
78
  white-space: nowrap;
79
79
  }
80
80
 
81
- .awsui_labels-block-end_f0fot_74jht_81:not(#\9) {
81
+ .awsui_labels-block-end_f0fot_l44um_81:not(#\9) {
82
82
  position: relative;
83
83
  display: block;
84
84
  inline-size: 100%;
85
85
  overflow: visible;
86
86
  }
87
87
 
88
- .awsui_vertical-marker_f0fot_74jht_10:not(#\9) {
88
+ .awsui_vertical-marker_f0fot_l44um_10:not(#\9) {
89
89
  pointer-events: none;
90
90
  }
91
91
 
92
- .awsui_vertical-marker-circle_f0fot_74jht_92:not(#\9) {
92
+ .awsui_vertical-marker-circle_f0fot_l44um_92:not(#\9) {
93
93
  fill: var(--color-background-container-content-z79u4u, #ffffff);
94
94
  pointer-events: none;
95
95
  stroke-width: var(--border-line-chart-width-9mzos2, 2px);
96
96
  }
97
97
 
98
- .awsui_vertical-marker-circle-active_f0fot_74jht_98:not(#\9) {
98
+ .awsui_vertical-marker-circle-active_f0fot_l44um_98:not(#\9) {
99
99
  cursor: pointer;
100
100
  stroke-width: var(--border-line-chart-width-9mzos2, 2px);
101
101
  }
102
102
 
103
- .awsui_focus-outline_f0fot_74jht_103:not(#\9) {
103
+ .awsui_focus-outline_f0fot_l44um_103:not(#\9) {
104
104
  outline: none;
105
105
  pointer-events: none;
106
106
  fill: none;
@@ -108,42 +108,45 @@
108
108
  stroke-width: 2px;
109
109
  }
110
110
 
111
- .awsui_chart-container_f0fot_74jht_111:not(#\9) {
111
+ .awsui_chart-container_f0fot_l44um_111:not(#\9) {
112
112
  display: flex;
113
113
  inline-size: 100%;
114
114
  flex-direction: column;
115
115
  }
116
- .awsui_chart-container_f0fot_74jht_111.awsui_fit-height_f0fot_74jht_116:not(#\9) {
116
+ .awsui_chart-container_f0fot_l44um_111.awsui_fit-height_f0fot_l44um_116:not(#\9) {
117
117
  block-size: 100%;
118
118
  min-block-size: inherit;
119
119
  }
120
120
 
121
- .awsui_chart-container-outer_f0fot_74jht_121:not(#\9) {
121
+ .awsui_chart-container-outer_f0fot_l44um_121:not(#\9) {
122
122
  display: flex;
123
123
  }
124
- .awsui_chart-container-outer_f0fot_74jht_121.awsui_fit-height_f0fot_74jht_116:not(#\9) {
124
+ .awsui_chart-container-outer_f0fot_l44um_121.awsui_fit-height_f0fot_l44um_116:not(#\9) {
125
125
  flex: 1;
126
126
  }
127
+ .awsui_chart-container-outer_f0fot_l44um_121.awsui_fit-height_f0fot_l44um_116:not(#\9):not(.awsui_axis-label_f0fot_l44um_19 + .awsui_chart-container-outer_f0fot_l44um_121.awsui_fit-height_f0fot_l44um_116, .awsui_chart-container-outer_f0fot_l44um_121.awsui_fit-height_f0fot_l44um_116.awsui_has-filters_f0fot_l44um_127) {
128
+ margin-block-start: calc(0.5 * var(--font-chart-detail-size-1n389u, 12px));
129
+ }
127
130
 
128
- .awsui_chart-container-inner_f0fot_74jht_128:not(#\9) {
131
+ .awsui_chart-container-inner_f0fot_l44um_131:not(#\9) {
129
132
  position: relative;
130
133
  display: flex;
131
134
  flex-direction: column;
132
135
  inline-size: 100%;
133
136
  }
134
137
 
135
- .awsui_chart-container-plot-wrapper_f0fot_74jht_135.awsui_fit-height_f0fot_74jht_116:not(#\9) {
138
+ .awsui_chart-container-plot-wrapper_f0fot_l44um_138.awsui_fit-height_f0fot_l44um_116:not(#\9) {
136
139
  display: block;
137
140
  position: relative;
138
141
  flex: 1;
139
142
  }
140
143
 
141
- .awsui_chart-container-plot_f0fot_74jht_135.awsui_fit-height_f0fot_74jht_116:not(#\9) {
144
+ .awsui_chart-container-plot_f0fot_l44um_138.awsui_fit-height_f0fot_l44um_116:not(#\9) {
142
145
  display: block;
143
146
  position: absolute;
144
147
  inset: 0;
145
148
  }
146
149
 
147
- .awsui_chart-container-bottom-labels_f0fot_74jht_147.awsui_fit-height_f0fot_74jht_116:not(#\9) {
150
+ .awsui_chart-container-bottom-labels_f0fot_l44um_150.awsui_fit-height_f0fot_l44um_116:not(#\9) {
148
151
  display: block;
149
152
  }
@@ -2,32 +2,33 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "axis": "awsui_axis_f0fot_74jht_9",
6
- "vertical-marker": "awsui_vertical-marker_f0fot_74jht_10",
7
- "axis--emphasized": "awsui_axis--emphasized_f0fot_74jht_15",
8
- "axis-label": "awsui_axis-label_f0fot_74jht_19",
9
- "axis-label--x": "awsui_axis-label--x_f0fot_74jht_24",
10
- "axis-label--y": "awsui_axis-label--y_f0fot_74jht_25",
11
- "grid": "awsui_grid_f0fot_74jht_29",
12
- "ticks__line": "awsui_ticks__line_f0fot_74jht_34",
13
- "ticks__text": "awsui_ticks__text_f0fot_74jht_39",
14
- "ticks--y": "awsui_ticks--y_f0fot_74jht_44",
15
- "ticks--x": "awsui_ticks--x_f0fot_74jht_45",
16
- "ticks--bottom": "awsui_ticks--bottom_f0fot_74jht_49",
17
- "labels-inline-start": "awsui_labels-inline-start_f0fot_74jht_54",
18
- "ticks": "awsui_ticks_f0fot_74jht_34",
19
- "labels-inline-start__label": "awsui_labels-inline-start__label_f0fot_74jht_69",
20
- "labels-inline-start--hidden": "awsui_labels-inline-start--hidden_f0fot_74jht_73",
21
- "labels-block-end": "awsui_labels-block-end_f0fot_74jht_81",
22
- "vertical-marker-circle": "awsui_vertical-marker-circle_f0fot_74jht_92",
23
- "vertical-marker-circle-active": "awsui_vertical-marker-circle-active_f0fot_74jht_98",
24
- "focus-outline": "awsui_focus-outline_f0fot_74jht_103",
25
- "chart-container": "awsui_chart-container_f0fot_74jht_111",
26
- "fit-height": "awsui_fit-height_f0fot_74jht_116",
27
- "chart-container-outer": "awsui_chart-container-outer_f0fot_74jht_121",
28
- "chart-container-inner": "awsui_chart-container-inner_f0fot_74jht_128",
29
- "chart-container-plot-wrapper": "awsui_chart-container-plot-wrapper_f0fot_74jht_135",
30
- "chart-container-plot": "awsui_chart-container-plot_f0fot_74jht_135",
31
- "chart-container-bottom-labels": "awsui_chart-container-bottom-labels_f0fot_74jht_147"
5
+ "axis": "awsui_axis_f0fot_l44um_9",
6
+ "vertical-marker": "awsui_vertical-marker_f0fot_l44um_10",
7
+ "axis--emphasized": "awsui_axis--emphasized_f0fot_l44um_15",
8
+ "axis-label": "awsui_axis-label_f0fot_l44um_19",
9
+ "axis-label--x": "awsui_axis-label--x_f0fot_l44um_24",
10
+ "axis-label--y": "awsui_axis-label--y_f0fot_l44um_25",
11
+ "grid": "awsui_grid_f0fot_l44um_29",
12
+ "ticks__line": "awsui_ticks__line_f0fot_l44um_34",
13
+ "ticks__text": "awsui_ticks__text_f0fot_l44um_39",
14
+ "ticks--y": "awsui_ticks--y_f0fot_l44um_44",
15
+ "ticks--x": "awsui_ticks--x_f0fot_l44um_45",
16
+ "ticks--bottom": "awsui_ticks--bottom_f0fot_l44um_49",
17
+ "labels-inline-start": "awsui_labels-inline-start_f0fot_l44um_54",
18
+ "ticks": "awsui_ticks_f0fot_l44um_34",
19
+ "labels-inline-start__label": "awsui_labels-inline-start__label_f0fot_l44um_69",
20
+ "labels-inline-start--hidden": "awsui_labels-inline-start--hidden_f0fot_l44um_73",
21
+ "labels-block-end": "awsui_labels-block-end_f0fot_l44um_81",
22
+ "vertical-marker-circle": "awsui_vertical-marker-circle_f0fot_l44um_92",
23
+ "vertical-marker-circle-active": "awsui_vertical-marker-circle-active_f0fot_l44um_98",
24
+ "focus-outline": "awsui_focus-outline_f0fot_l44um_103",
25
+ "chart-container": "awsui_chart-container_f0fot_l44um_111",
26
+ "fit-height": "awsui_fit-height_f0fot_l44um_116",
27
+ "chart-container-outer": "awsui_chart-container-outer_f0fot_l44um_121",
28
+ "has-filters": "awsui_has-filters_f0fot_l44um_127",
29
+ "chart-container-inner": "awsui_chart-container-inner_f0fot_l44um_131",
30
+ "chart-container-plot-wrapper": "awsui_chart-container-plot-wrapper_f0fot_l44um_138",
31
+ "chart-container-plot": "awsui_chart-container-plot_f0fot_l44um_138",
32
+ "chart-container-bottom-labels": "awsui_chart-container-bottom-labels_f0fot_l44um_150"
32
33
  };
33
34
 
@@ -1,9 +1,8 @@
1
- import { MutableRefObject } from 'react';
2
- export interface ModalContextProps {
1
+ /// <reference types="react" />
2
+ export declare const ModalContext: import("react").Context<{
3
3
  isInModal: boolean;
4
- componentLoadingCount: MutableRefObject<number>;
5
- emitTimeToContentReadyInModal: (loadCompleteTime: number) => void;
6
- }
7
- export declare const ModalContext: import("react").Context<ModalContextProps>;
8
- export declare const useModalContext: () => ModalContextProps;
4
+ }>;
5
+ export declare const useModalContext: () => {
6
+ isInModal: boolean;
7
+ };
9
8
  //# sourceMappingURL=modal-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"modal-context.d.ts","sourceRoot":"","sources":["../../../../src/internal/context/modal-context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,gBAAgB,EAAc,MAAM,OAAO,CAAC;AAEpE,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAChD,6BAA6B,EAAE,CAAC,gBAAgB,EAAE,MAAM,KAAK,IAAI,CAAC;CACnE;AAED,eAAO,MAAM,YAAY,4CAIvB,CAAC;AAEH,eAAO,MAAM,eAAe,yBAG3B,CAAC"}
1
+ {"version":3,"file":"modal-context.d.ts","sourceRoot":"","sources":["../../../../src/internal/context/modal-context.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,YAAY;eAA8B,OAAO;EAAyB,CAAC;AAExF,eAAO,MAAM,eAAe;eAF2B,OAAO;CAK7D,CAAC"}
@@ -1,11 +1,7 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { createContext, useContext } from 'react';
4
- export const ModalContext = createContext({
5
- isInModal: false,
6
- componentLoadingCount: { current: 0 },
7
- emitTimeToContentReadyInModal: () => { },
8
- });
4
+ export const ModalContext = createContext({ isInModal: false });
9
5
  export const useModalContext = () => {
10
6
  const modalContext = useContext(ModalContext);
11
7
  return modalContext;