@cloudscape-design/components-themeable 3.0.882 → 3.0.884

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 (164) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/container/styles.scss +5 -0
  3. package/lib/internal/scss/internal/components/drag-handle/styles.scss +9 -1
  4. package/lib/internal/scss/internal/components/panel-resize-handle/styles.scss +42 -3
  5. package/lib/internal/scss/table/header-cell/styles.scss +4 -0
  6. package/lib/internal/template/app-layout/drawer/resizable-drawer.d.ts.map +1 -1
  7. package/lib/internal/template/app-layout/drawer/resizable-drawer.js +2 -3
  8. package/lib/internal/template/app-layout/drawer/resizable-drawer.js.map +1 -1
  9. package/lib/internal/template/app-layout/utils/use-focus-control.d.ts +1 -2
  10. package/lib/internal/template/app-layout/utils/use-focus-control.d.ts.map +1 -1
  11. package/lib/internal/template/app-layout/utils/use-focus-control.js +0 -2
  12. package/lib/internal/template/app-layout/utils/use-focus-control.js.map +1 -1
  13. package/lib/internal/template/app-layout/utils/use-resize.d.ts.map +1 -1
  14. package/lib/internal/template/app-layout/utils/use-resize.js +2 -3
  15. package/lib/internal/template/app-layout/utils/use-resize.js.map +1 -1
  16. package/lib/internal/template/app-layout/utils/use-split-panel-focus-control.d.ts +1 -2
  17. package/lib/internal/template/app-layout/utils/use-split-panel-focus-control.d.ts.map +1 -1
  18. package/lib/internal/template/app-layout/utils/use-split-panel-focus-control.js +0 -1
  19. package/lib/internal/template/app-layout/utils/use-split-panel-focus-control.js.map +1 -1
  20. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-drawer.d.ts.map +1 -1
  21. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-drawer.js +2 -3
  22. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-drawer.js.map +1 -1
  23. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/local-drawer.d.ts.map +1 -1
  24. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/local-drawer.js +2 -3
  25. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/local-drawer.js.map +1 -1
  26. package/lib/internal/template/button-group/index.d.ts.map +1 -1
  27. package/lib/internal/template/button-group/index.js +22 -1
  28. package/lib/internal/template/button-group/index.js.map +1 -1
  29. package/lib/internal/template/button-group/interfaces.d.ts +2 -1
  30. package/lib/internal/template/button-group/interfaces.d.ts.map +1 -1
  31. package/lib/internal/template/button-group/interfaces.js.map +1 -1
  32. package/lib/internal/template/collection-preferences/content-display/index.d.ts.map +1 -1
  33. package/lib/internal/template/collection-preferences/content-display/index.js +8 -5
  34. package/lib/internal/template/collection-preferences/content-display/index.js.map +1 -1
  35. package/lib/internal/template/container/styles.css.js +32 -31
  36. package/lib/internal/template/container/styles.scoped.css +57 -54
  37. package/lib/internal/template/container/styles.selectors.js +32 -31
  38. package/lib/internal/template/flashbar/internal/analytics.d.ts.map +1 -1
  39. package/lib/internal/template/flashbar/internal/analytics.js +1 -3
  40. package/lib/internal/template/flashbar/internal/analytics.js.map +1 -1
  41. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
  42. package/lib/internal/template/internal/components/autosuggest-input/index.js +6 -0
  43. package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
  44. package/lib/internal/template/internal/components/drag-handle/index.d.ts +2 -2
  45. package/lib/internal/template/internal/components/drag-handle/index.d.ts.map +1 -1
  46. package/lib/internal/template/internal/components/drag-handle/index.js +7 -3
  47. package/lib/internal/template/internal/components/drag-handle/index.js.map +1 -1
  48. package/lib/internal/template/internal/components/drag-handle/interfaces.d.ts +1 -1
  49. package/lib/internal/template/internal/components/drag-handle/interfaces.d.ts.map +1 -1
  50. package/lib/internal/template/internal/components/drag-handle/interfaces.js.map +1 -1
  51. package/lib/internal/template/internal/components/panel-resize-handle/icon.d.ts +5 -0
  52. package/lib/internal/template/internal/components/panel-resize-handle/icon.d.ts.map +1 -0
  53. package/lib/internal/template/internal/components/panel-resize-handle/icon.js +9 -0
  54. package/lib/internal/template/internal/components/panel-resize-handle/icon.js.map +1 -0
  55. package/lib/internal/template/internal/components/panel-resize-handle/index.d.ts +2 -4
  56. package/lib/internal/template/internal/components/panel-resize-handle/index.d.ts.map +1 -1
  57. package/lib/internal/template/internal/components/panel-resize-handle/index.js +5 -8
  58. package/lib/internal/template/internal/components/panel-resize-handle/index.js.map +1 -1
  59. package/lib/internal/template/internal/components/panel-resize-handle/styles.css.js +5 -2
  60. package/lib/internal/template/internal/components/panel-resize-handle/styles.scoped.css +191 -3
  61. package/lib/internal/template/internal/components/panel-resize-handle/styles.selectors.js +5 -2
  62. package/lib/internal/template/internal/components/sortable-area/index.d.ts +6 -0
  63. package/lib/internal/template/internal/components/sortable-area/index.d.ts.map +1 -0
  64. package/lib/internal/template/internal/components/{dnd-area → sortable-area}/index.js +34 -25
  65. package/lib/internal/template/internal/components/sortable-area/index.js.map +1 -0
  66. package/lib/internal/template/internal/components/sortable-area/interfaces.d.ts +42 -0
  67. package/lib/internal/template/internal/components/sortable-area/interfaces.d.ts.map +1 -0
  68. package/lib/internal/template/internal/components/sortable-area/interfaces.js.map +1 -0
  69. package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/defaults.d.ts.map +1 -0
  70. package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/defaults.js.map +1 -0
  71. package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/index.d.ts.map +1 -0
  72. package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/index.js.map +1 -0
  73. package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/utilities/events.d.ts.map +1 -0
  74. package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/utilities/events.js.map +1 -0
  75. package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/utilities/listeners.d.ts.map +1 -0
  76. package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/utilities/listeners.js.map +1 -0
  77. package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/utilities/scroll.d.ts.map +1 -0
  78. package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/utilities/scroll.js.map +1 -0
  79. package/lib/internal/template/internal/components/sortable-area/styles.css.js +13 -0
  80. package/lib/internal/template/internal/components/{dnd-area → sortable-area}/styles.scoped.css +17 -17
  81. package/lib/internal/template/internal/components/sortable-area/styles.selectors.js +14 -0
  82. package/lib/internal/template/internal/components/{dnd-area → sortable-area}/use-drag-and-drop-reorder.d.ts +4 -3
  83. package/lib/internal/template/internal/components/sortable-area/use-drag-and-drop-reorder.d.ts.map +1 -0
  84. package/lib/internal/template/internal/components/{dnd-area → sortable-area}/use-drag-and-drop-reorder.js +4 -4
  85. package/lib/internal/template/internal/components/sortable-area/use-drag-and-drop-reorder.js.map +1 -0
  86. package/lib/internal/template/internal/components/sortable-area/use-live-announcements.d.ts +13 -0
  87. package/lib/internal/template/internal/components/sortable-area/use-live-announcements.d.ts.map +1 -0
  88. package/lib/internal/template/internal/components/{dnd-area → sortable-area}/use-live-announcements.js +6 -6
  89. package/lib/internal/template/internal/components/sortable-area/use-live-announcements.js.map +1 -0
  90. package/lib/internal/template/internal/environment.js +1 -1
  91. package/lib/internal/template/internal/environment.json +1 -1
  92. package/lib/internal/template/internal/metrics.d.ts +3 -0
  93. package/lib/internal/template/internal/metrics.d.ts.map +1 -0
  94. package/lib/internal/template/internal/metrics.js +6 -0
  95. package/lib/internal/template/internal/metrics.js.map +1 -0
  96. package/lib/internal/template/internal/plugins/api.d.ts.map +1 -1
  97. package/lib/internal/template/internal/plugins/api.js +4 -0
  98. package/lib/internal/template/internal/plugins/api.js.map +1 -1
  99. package/lib/internal/template/internal/plugins/controllers/alert-flash-content.d.ts.map +1 -1
  100. package/lib/internal/template/internal/plugins/controllers/alert-flash-content.js +2 -1
  101. package/lib/internal/template/internal/plugins/controllers/alert-flash-content.js.map +1 -1
  102. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts.map +1 -1
  103. package/lib/internal/template/internal/plugins/controllers/drawers.js +7 -3
  104. package/lib/internal/template/internal/plugins/controllers/drawers.js.map +1 -1
  105. package/lib/internal/template/internal/plugins/helpers/metrics.d.ts +3 -0
  106. package/lib/internal/template/internal/plugins/helpers/metrics.d.ts.map +1 -0
  107. package/lib/internal/template/internal/plugins/helpers/metrics.js +15 -0
  108. package/lib/internal/template/internal/plugins/helpers/metrics.js.map +1 -0
  109. package/lib/internal/template/internal/plugins/helpers/use-discovered-content.d.ts.map +1 -1
  110. package/lib/internal/template/internal/plugins/helpers/use-discovered-content.js +2 -1
  111. package/lib/internal/template/internal/plugins/helpers/use-discovered-content.js.map +1 -1
  112. package/lib/internal/template/internal/utils/dom.d.ts +1 -0
  113. package/lib/internal/template/internal/utils/dom.d.ts.map +1 -1
  114. package/lib/internal/template/internal/utils/dom.js +8 -0
  115. package/lib/internal/template/internal/utils/dom.js.map +1 -1
  116. package/lib/internal/template/split-panel/implementation.d.ts.map +1 -1
  117. package/lib/internal/template/split-panel/implementation.js +6 -7
  118. package/lib/internal/template/split-panel/implementation.js.map +1 -1
  119. package/lib/internal/template/table/header-cell/styles.css.js +28 -26
  120. package/lib/internal/template/table/header-cell/styles.scoped.css +68 -65
  121. package/lib/internal/template/table/header-cell/styles.selectors.js +28 -26
  122. package/lib/internal/template/table/table-role/utils.d.ts.map +1 -1
  123. package/lib/internal/template/table/table-role/utils.js +4 -5
  124. package/lib/internal/template/table/table-role/utils.js.map +1 -1
  125. package/package.json +1 -1
  126. package/lib/internal/template/app-layout/visual-refresh-toolbar/exports.d.ts +0 -6
  127. package/lib/internal/template/app-layout/visual-refresh-toolbar/exports.d.ts.map +0 -1
  128. package/lib/internal/template/app-layout/visual-refresh-toolbar/exports.js +0 -8
  129. package/lib/internal/template/app-layout/visual-refresh-toolbar/exports.js.map +0 -1
  130. package/lib/internal/template/internal/components/dnd-area/index.d.ts +0 -4
  131. package/lib/internal/template/internal/components/dnd-area/index.d.ts.map +0 -1
  132. package/lib/internal/template/internal/components/dnd-area/index.js.map +0 -1
  133. package/lib/internal/template/internal/components/dnd-area/interfaces.d.ts +0 -39
  134. package/lib/internal/template/internal/components/dnd-area/interfaces.d.ts.map +0 -1
  135. package/lib/internal/template/internal/components/dnd-area/interfaces.js.map +0 -1
  136. package/lib/internal/template/internal/components/dnd-area/keyboard-sensor/defaults.d.ts.map +0 -1
  137. package/lib/internal/template/internal/components/dnd-area/keyboard-sensor/defaults.js.map +0 -1
  138. package/lib/internal/template/internal/components/dnd-area/keyboard-sensor/index.d.ts.map +0 -1
  139. package/lib/internal/template/internal/components/dnd-area/keyboard-sensor/index.js.map +0 -1
  140. package/lib/internal/template/internal/components/dnd-area/keyboard-sensor/utilities/events.d.ts.map +0 -1
  141. package/lib/internal/template/internal/components/dnd-area/keyboard-sensor/utilities/events.js.map +0 -1
  142. package/lib/internal/template/internal/components/dnd-area/keyboard-sensor/utilities/listeners.d.ts.map +0 -1
  143. package/lib/internal/template/internal/components/dnd-area/keyboard-sensor/utilities/listeners.js.map +0 -1
  144. package/lib/internal/template/internal/components/dnd-area/keyboard-sensor/utilities/scroll.d.ts.map +0 -1
  145. package/lib/internal/template/internal/components/dnd-area/keyboard-sensor/utilities/scroll.js.map +0 -1
  146. package/lib/internal/template/internal/components/dnd-area/styles.css.js +0 -13
  147. package/lib/internal/template/internal/components/dnd-area/styles.selectors.js +0 -14
  148. package/lib/internal/template/internal/components/dnd-area/use-drag-and-drop-reorder.d.ts.map +0 -1
  149. package/lib/internal/template/internal/components/dnd-area/use-drag-and-drop-reorder.js.map +0 -1
  150. package/lib/internal/template/internal/components/dnd-area/use-live-announcements.d.ts +0 -12
  151. package/lib/internal/template/internal/components/dnd-area/use-live-announcements.d.ts.map +0 -1
  152. package/lib/internal/template/internal/components/dnd-area/use-live-announcements.js.map +0 -1
  153. /package/lib/internal/scss/internal/components/{dnd-area → sortable-area}/styles.scss +0 -0
  154. /package/lib/internal/template/internal/components/{dnd-area → sortable-area}/interfaces.js +0 -0
  155. /package/lib/internal/template/internal/components/{dnd-area → sortable-area}/keyboard-sensor/defaults.d.ts +0 -0
  156. /package/lib/internal/template/internal/components/{dnd-area → sortable-area}/keyboard-sensor/defaults.js +0 -0
  157. /package/lib/internal/template/internal/components/{dnd-area → sortable-area}/keyboard-sensor/index.d.ts +0 -0
  158. /package/lib/internal/template/internal/components/{dnd-area → sortable-area}/keyboard-sensor/index.js +0 -0
  159. /package/lib/internal/template/internal/components/{dnd-area → sortable-area}/keyboard-sensor/utilities/events.d.ts +0 -0
  160. /package/lib/internal/template/internal/components/{dnd-area → sortable-area}/keyboard-sensor/utilities/events.js +0 -0
  161. /package/lib/internal/template/internal/components/{dnd-area → sortable-area}/keyboard-sensor/utilities/listeners.d.ts +0 -0
  162. /package/lib/internal/template/internal/components/{dnd-area → sortable-area}/keyboard-sensor/utilities/listeners.js +0 -0
  163. /package/lib/internal/template/internal/components/{dnd-area → sortable-area}/keyboard-sensor/utilities/scroll.d.ts +0 -0
  164. /package/lib/internal/template/internal/components/{dnd-area → sortable-area}/keyboard-sensor/utilities/scroll.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/button-group/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,mBAAmB,MAAM,YAAY,CAAC;AAI7C,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAClC,CAAC,EAAgE,EAAE,GAAoC,EAAE,EAAE;QAA1G,EAAE,OAAO,EAAE,wBAAwB,OAA6B,EAAxB,IAAI,cAA5C,uCAA8C,CAAF;IAC3C,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,aAAa,EAAE;QACzD,KAAK,EAAE;YACL,OAAO;YACP,wBAAwB;SACzB;KACF,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC7C,OAAO,CACL,oBAAC,mBAAmB,oBACd,SAAS,EACT,kBAAkB,EAClB,aAAa,IACjB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,wBAAwB,EAAE,wBAAwB,IAClD,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;AAC7C,eAAe,WAAW,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { getBaseProps } from '../internal/base-component';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { getExternalProps } from '../internal/utils/external-props';\nimport { ButtonGroupProps } from './interfaces';\nimport InternalButtonGroup from './internal';\n\nexport { ButtonGroupProps };\n\nconst ButtonGroup = React.forwardRef(\n ({ variant, dropdownExpandToViewport, ...rest }: ButtonGroupProps, ref: React.Ref<ButtonGroupProps.Ref>) => {\n const baseProps = getBaseProps(rest);\n const baseComponentProps = useBaseComponent('ButtonGroup', {\n props: {\n variant,\n dropdownExpandToViewport,\n },\n });\n\n const externalProps = getExternalProps(rest);\n return (\n <InternalButtonGroup\n {...baseProps}\n {...baseComponentProps}\n {...externalProps}\n ref={ref}\n variant={variant}\n dropdownExpandToViewport={dropdownExpandToViewport}\n />\n );\n }\n);\n\napplyDisplayName(ButtonGroup, 'ButtonGroup');\nexport default ButtonGroup;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/button-group/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCA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,QAAQ,GAAG,EAAE,aAAa,EAAE,CAAC,EAAE,oBAAoB,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAEnH,SAAS,KAAK,CAAC,KAA8C;QAC3D,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;YACxB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAEzB,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;gBACzB,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACnB;SACF;IACH,CAAC;IACD,KAAK,CAAC,QAAQ,CAAC,CAAC;IAEhB,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,gBAAgB,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;AAC7C,eAAe,WAAW,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { getBaseProps } from '../internal/base-component';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { getExternalProps } from '../internal/utils/external-props';\nimport { ButtonGroupProps } from './interfaces';\nimport InternalButtonGroup from './internal';\n\nexport { ButtonGroupProps };\n\nconst ButtonGroup = React.forwardRef(\n ({ variant, dropdownExpandToViewport = false, ...rest }: ButtonGroupProps, ref: React.Ref<ButtonGroupProps.Ref>) => {\n const baseProps = getBaseProps(rest);\n const itemCounts = getItemCounts(rest.items);\n const baseComponentProps = useBaseComponent('ButtonGroup', {\n props: {\n variant,\n dropdownExpandToViewport,\n },\n metadata: {\n iconButtonsCount: itemCounts['icon-button'],\n iconToggleButtonsCount: itemCounts['icon-toggle-button'],\n iconFileInputsCount: itemCounts['icon-file-input'],\n menuDropdownsCount: itemCounts['menu-dropdown'],\n groupsCount: itemCounts.group,\n },\n });\n\n const externalProps = getExternalProps(rest);\n return (\n <InternalButtonGroup\n {...baseProps}\n {...baseComponentProps}\n {...externalProps}\n ref={ref}\n variant={variant}\n dropdownExpandToViewport={dropdownExpandToViewport}\n />\n );\n }\n);\n\nfunction getItemCounts(allItems: readonly ButtonGroupProps.ItemOrGroup[] = []) {\n const counters = { 'icon-button': 0, 'icon-toggle-button': 0, 'icon-file-input': 0, 'menu-dropdown': 0, group: 0 };\n\n function count(items: readonly ButtonGroupProps.ItemOrGroup[]) {\n for (const item of items) {\n counters[item.type] += 1;\n\n if (item.type === 'group') {\n count(item.items);\n }\n }\n }\n count(allItems);\n\n return counters;\n}\n\napplyDisplayName(ButtonGroup, 'ButtonGroup');\nexport default ButtonGroup;\n"]}
@@ -4,6 +4,7 @@ import { IconProps } from '../icon/interfaces';
4
4
  import { BaseComponentProps } from '../internal/base-component';
5
5
  import { NonCancelableEventHandler } from '../internal/events';
6
6
  import { InternalBaseComponentProps } from '../internal/hooks/use-base-component';
7
+ import { SomeRequired } from '../internal/types';
7
8
  export interface ButtonGroupProps extends BaseComponentProps {
8
9
  /**
9
10
  * Adds `aria-label` to the button group toolbar element.
@@ -93,7 +94,7 @@ export interface ButtonGroupProps extends BaseComponentProps {
93
94
  */
94
95
  onFilesChange?: NonCancelableEventHandler<ButtonGroupProps.FilesChangeDetails>;
95
96
  }
96
- export interface InternalButtonGroupProps extends ButtonGroupProps, InternalBaseComponentProps {
97
+ export interface InternalButtonGroupProps extends SomeRequired<ButtonGroupProps, 'dropdownExpandToViewport'>, InternalBaseComponentProps {
97
98
  }
98
99
  export declare namespace ButtonGroupProps {
99
100
  type Variant = 'icon';
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/button-group/interfaces.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,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"file":"interfaces.js","sourceRoot":"","sources":["../../../src/button-group/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\nimport { ButtonDropdownProps } from '../button-dropdown/interfaces';\nimport { IconProps } from '../icon/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\nexport interface ButtonGroupProps extends BaseComponentProps {\n /**\n * Adds `aria-label` to the button group toolbar element.\n * Use this to provide a unique accessible name for each button group on the page.\n */\n ariaLabel?: string;\n /**\n * Determines the general styling of the button dropdown.\n * * `icon` for icon buttons.\n */\n variant: ButtonGroupProps.Variant;\n /**\n * Use this property to determine dropdown placement strategy for all menu dropdown items.\n *\n * By default, the dropdown height is constrained to fit inside the height of its next scrollable container element.\n * Enabling this property will allow the dropdown to extend beyond that container by using fixed positioning and\n * [React Portals](https://reactjs.org/docs/portals.html).\n *\n * Set this property if the dropdown would otherwise be constrained by a scrollable container,\n * for example inside table and split view layouts.\n *\n * We recommend you use discretion, and don't enable this property unless necessary\n * because fixed positioning results in a slight, visible lag when scrolling complex pages.\n */\n dropdownExpandToViewport?: boolean;\n /**\n * Array of objects with a number of supported types.\n *\n * ### icon-button\n *\n * * `id` (string) - The unique identifier of the button, used as detail in `onItemClick` handler and to focus the button using `ref.focus(id)`.\n * * `text` (string) - The name shown as a tooltip for this button.\n * * `disabled` (optional, boolean) - The disabled state indication for this button.\n * * `loading` (optional, boolean) - The loading state indication for this button.\n * * `loadingText` (optional, string) - The loading text announced to screen readers.\n * * `iconName` (optional, string) - Specifies the name of the icon, used with the [icon component](/components/icon/).\n * * `iconAlt` (optional, string) - Specifies alternate text for the icon when using `iconUrl`.\n * * `iconUrl` (optional, string) - Specifies the URL of a custom icon.\n * * `iconSvg` (optional, ReactNode) - Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * * `popoverFeedback` (optional, ReactNode) - Text that appears when the user clicks the button. Use to provide feedback to the user.\n *\n * ### icon-toggle-button\n *\n * * `id` (string) - The unique identifier of the button, used as detail in `onItemClick` handler and to focus the button using `ref.focus(id)`.\n * * `pressed` (boolean) - The toggle button pressed state.\n * * `text` (string) - The name shown as a tooltip for this button.\n * * `disabled` (optional, boolean) - The disabled state indication for this button.\n * * `loading` (optional, boolean) - The loading state indication for this button.\n * * `loadingText` (optional, string) - The loading text announced to screen readers.\n * * `iconName` (optional, string) - Specifies the name of the icon, used with the [icon component](/components/icon/).\n * * `iconUrl` (optional, string) - Specifies the URL of a custom icon.\n * * `iconSvg` (optional, ReactNode) - Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * * `pressedIconName` (optional, string) - Specifies the name of the icon in pressed state, used with the [icon component](/components/icon/).\n * * `pressedIconUrl` (optional, string) - Specifies the URL of a custom icon in pressed state.\n * * `pressedIconSvg` (optional, ReactNode) - Custom SVG icon in pressed state. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * * `popoverFeedback` (optional, ReactNode) - Text that appears when the user clicks the button. Use to provide feedback to the user.\n * * `pressedPopoverFeedback` (optional, ReactNode) - Text that appears when the user clicks the button in pressed state. Defaults to `popoverFeedback`.\n *\n * * ### file-input\n *\n * * `id` (string) - The unique identifier of the button, used as detail in `onFilesChange`.\n * * `text` (string) - The name of the menu button shown as a tooltip.\n * * `accept` (optional, string) - Specifies the native file input `accept` attribute to describe the allow-list of file types.\n * * `multiple` (optional, string) - Specifies the native file input `multiple` attribute to allow users entering more than one file.\n *\n * ### menu-dropdown\n *\n * * `id` (string) - The unique identifier of the button, used as detail in `onItemClick`.\n * * `text` (string) - The name of the menu button shown as a tooltip.\n * * `disabled` (optional, boolean) - The disabled state indication for the menu button.\n * * `loading` (optional, boolean) - The loading state indication for the menu button.\n * * `loadingText` (optional, string) - The loading text announced to screen readers.\n * * `items` (ButtonDropdownProps.ItemOrGroup[]) - The array of dropdown items that belong to this menu.\n *\n * ### group\n *\n * * `text` (string) - The name of the group rendered as ARIA label for this group.\n * * `items` ((ButtonGroupProps.IconButton | ButtonGroupProps.MenuDropdown)[]) - The array of items that belong to this group.\n */\n items: ReadonlyArray<ButtonGroupProps.ItemOrGroup>;\n /**\n * Called when the user clicks on an item, and the item is not disabled. The event detail object contains the id of the clicked item.\n */\n onItemClick?: NonCancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n /**\n * Called when the user uploads files. The event detail object contains the id and files from the file input item.\n */\n onFilesChange?: NonCancelableEventHandler<ButtonGroupProps.FilesChangeDetails>;\n}\n\nexport interface InternalButtonGroupProps extends ButtonGroupProps, InternalBaseComponentProps {}\n\nexport namespace ButtonGroupProps {\n export type Variant = 'icon';\n\n export type ItemOrGroup = Item | Group;\n export type Item = IconButton | IconToggleButton | IconFileInput | MenuDropdown;\n\n export interface IconButton {\n type: 'icon-button';\n id: string;\n text: string;\n disabled?: boolean;\n loading?: boolean;\n loadingText?: string;\n iconName?: IconProps.Name;\n iconAlt?: string;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n popoverFeedback?: React.ReactNode;\n }\n\n export interface IconToggleButton {\n type: 'icon-toggle-button';\n id: string;\n text: string;\n pressed: boolean;\n disabled?: boolean;\n loading?: boolean;\n loadingText?: string;\n iconName?: IconProps.Name;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n pressedIconName?: IconProps.Name;\n pressedIconUrl?: string;\n pressedIconSvg?: React.ReactNode;\n popoverFeedback?: React.ReactNode;\n pressedPopoverFeedback?: React.ReactNode;\n }\n\n export interface IconFileInput {\n type: 'icon-file-input';\n id: string;\n text: string;\n accept?: string;\n multiple?: boolean;\n }\n\n export interface MenuDropdown {\n type: 'menu-dropdown';\n id: string;\n text: string;\n disabled?: boolean;\n loading?: boolean;\n loadingText?: string;\n items: ReadonlyArray<ButtonDropdownProps.ItemOrGroup>;\n }\n\n export interface Group {\n type: 'group';\n text: string;\n items: ReadonlyArray<ButtonGroupProps.Item>;\n }\n\n export interface ItemClickDetails {\n id: string;\n pressed?: boolean;\n checked?: boolean;\n }\n\n export interface FilesChangeDetails {\n id: string;\n files: File[];\n }\n\n export interface Ref {\n /**\n * Focuses button group item by id.\n */\n focus(itemId: string): void;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/button-group/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\nimport { ButtonDropdownProps } from '../button-dropdown/interfaces';\nimport { IconProps } from '../icon/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\n\nexport interface ButtonGroupProps extends BaseComponentProps {\n /**\n * Adds `aria-label` to the button group toolbar element.\n * Use this to provide a unique accessible name for each button group on the page.\n */\n ariaLabel?: string;\n /**\n * Determines the general styling of the button dropdown.\n * * `icon` for icon buttons.\n */\n variant: ButtonGroupProps.Variant;\n /**\n * Use this property to determine dropdown placement strategy for all menu dropdown items.\n *\n * By default, the dropdown height is constrained to fit inside the height of its next scrollable container element.\n * Enabling this property will allow the dropdown to extend beyond that container by using fixed positioning and\n * [React Portals](https://reactjs.org/docs/portals.html).\n *\n * Set this property if the dropdown would otherwise be constrained by a scrollable container,\n * for example inside table and split view layouts.\n *\n * We recommend you use discretion, and don't enable this property unless necessary\n * because fixed positioning results in a slight, visible lag when scrolling complex pages.\n */\n dropdownExpandToViewport?: boolean;\n /**\n * Array of objects with a number of supported types.\n *\n * ### icon-button\n *\n * * `id` (string) - The unique identifier of the button, used as detail in `onItemClick` handler and to focus the button using `ref.focus(id)`.\n * * `text` (string) - The name shown as a tooltip for this button.\n * * `disabled` (optional, boolean) - The disabled state indication for this button.\n * * `loading` (optional, boolean) - The loading state indication for this button.\n * * `loadingText` (optional, string) - The loading text announced to screen readers.\n * * `iconName` (optional, string) - Specifies the name of the icon, used with the [icon component](/components/icon/).\n * * `iconAlt` (optional, string) - Specifies alternate text for the icon when using `iconUrl`.\n * * `iconUrl` (optional, string) - Specifies the URL of a custom icon.\n * * `iconSvg` (optional, ReactNode) - Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * * `popoverFeedback` (optional, ReactNode) - Text that appears when the user clicks the button. Use to provide feedback to the user.\n *\n * ### icon-toggle-button\n *\n * * `id` (string) - The unique identifier of the button, used as detail in `onItemClick` handler and to focus the button using `ref.focus(id)`.\n * * `pressed` (boolean) - The toggle button pressed state.\n * * `text` (string) - The name shown as a tooltip for this button.\n * * `disabled` (optional, boolean) - The disabled state indication for this button.\n * * `loading` (optional, boolean) - The loading state indication for this button.\n * * `loadingText` (optional, string) - The loading text announced to screen readers.\n * * `iconName` (optional, string) - Specifies the name of the icon, used with the [icon component](/components/icon/).\n * * `iconUrl` (optional, string) - Specifies the URL of a custom icon.\n * * `iconSvg` (optional, ReactNode) - Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * * `pressedIconName` (optional, string) - Specifies the name of the icon in pressed state, used with the [icon component](/components/icon/).\n * * `pressedIconUrl` (optional, string) - Specifies the URL of a custom icon in pressed state.\n * * `pressedIconSvg` (optional, ReactNode) - Custom SVG icon in pressed state. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * * `popoverFeedback` (optional, ReactNode) - Text that appears when the user clicks the button. Use to provide feedback to the user.\n * * `pressedPopoverFeedback` (optional, ReactNode) - Text that appears when the user clicks the button in pressed state. Defaults to `popoverFeedback`.\n *\n * * ### file-input\n *\n * * `id` (string) - The unique identifier of the button, used as detail in `onFilesChange`.\n * * `text` (string) - The name of the menu button shown as a tooltip.\n * * `accept` (optional, string) - Specifies the native file input `accept` attribute to describe the allow-list of file types.\n * * `multiple` (optional, string) - Specifies the native file input `multiple` attribute to allow users entering more than one file.\n *\n * ### menu-dropdown\n *\n * * `id` (string) - The unique identifier of the button, used as detail in `onItemClick`.\n * * `text` (string) - The name of the menu button shown as a tooltip.\n * * `disabled` (optional, boolean) - The disabled state indication for the menu button.\n * * `loading` (optional, boolean) - The loading state indication for the menu button.\n * * `loadingText` (optional, string) - The loading text announced to screen readers.\n * * `items` (ButtonDropdownProps.ItemOrGroup[]) - The array of dropdown items that belong to this menu.\n *\n * ### group\n *\n * * `text` (string) - The name of the group rendered as ARIA label for this group.\n * * `items` ((ButtonGroupProps.IconButton | ButtonGroupProps.MenuDropdown)[]) - The array of items that belong to this group.\n */\n items: ReadonlyArray<ButtonGroupProps.ItemOrGroup>;\n /**\n * Called when the user clicks on an item, and the item is not disabled. The event detail object contains the id of the clicked item.\n */\n onItemClick?: NonCancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n /**\n * Called when the user uploads files. The event detail object contains the id and files from the file input item.\n */\n onFilesChange?: NonCancelableEventHandler<ButtonGroupProps.FilesChangeDetails>;\n}\n\nexport interface InternalButtonGroupProps\n extends SomeRequired<ButtonGroupProps, 'dropdownExpandToViewport'>,\n InternalBaseComponentProps {}\n\nexport namespace ButtonGroupProps {\n export type Variant = 'icon';\n\n export type ItemOrGroup = Item | Group;\n export type Item = IconButton | IconToggleButton | IconFileInput | MenuDropdown;\n\n export interface IconButton {\n type: 'icon-button';\n id: string;\n text: string;\n disabled?: boolean;\n loading?: boolean;\n loadingText?: string;\n iconName?: IconProps.Name;\n iconAlt?: string;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n popoverFeedback?: React.ReactNode;\n }\n\n export interface IconToggleButton {\n type: 'icon-toggle-button';\n id: string;\n text: string;\n pressed: boolean;\n disabled?: boolean;\n loading?: boolean;\n loadingText?: string;\n iconName?: IconProps.Name;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n pressedIconName?: IconProps.Name;\n pressedIconUrl?: string;\n pressedIconSvg?: React.ReactNode;\n popoverFeedback?: React.ReactNode;\n pressedPopoverFeedback?: React.ReactNode;\n }\n\n export interface IconFileInput {\n type: 'icon-file-input';\n id: string;\n text: string;\n accept?: string;\n multiple?: boolean;\n }\n\n export interface MenuDropdown {\n type: 'menu-dropdown';\n id: string;\n text: string;\n disabled?: boolean;\n loading?: boolean;\n loadingText?: string;\n items: ReadonlyArray<ButtonDropdownProps.ItemOrGroup>;\n }\n\n export interface Group {\n type: 'group';\n text: string;\n items: ReadonlyArray<ButtonGroupProps.Item>;\n }\n\n export interface ItemClickDetails {\n id: string;\n pressed?: boolean;\n checked?: boolean;\n }\n\n export interface FilesChangeDetails {\n id: string;\n files: File[];\n }\n\n export interface Ref {\n /**\n * Focuses button group item by id.\n */\n focus(itemId: string): void;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/index.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAU3D,UAAU,6BAA8B,SAAQ,0BAA0B,CAAC,wBAAwB;IACjG,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACxF,KAAK,CAAC,EAAE,aAAa,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;CACtE;AAED,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,KAAK,EACL,WAAW,EACX,OAAO,EACP,KAGG,EACH,QAAQ,EACR,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,4BAA4B,EAC5B,yBAAyB,EACzB,mBAAmB,EACnB,qBAA6B,EAC7B,WAAW,GACZ,EAAE,6BAA6B,eAiJ/B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/index.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAU3D,UAAU,6BAA8B,SAAQ,0BAA0B,CAAC,wBAAwB;IACjG,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACxF,KAAK,CAAC,EAAE,aAAa,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;CACtE;AAED,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,KAAK,EACL,WAAW,EACX,OAAO,EACP,KAGG,EACH,QAAQ,EACR,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,4BAA4B,EAC5B,yBAAyB,EACzB,mBAAmB,EACnB,qBAA6B,EAC7B,WAAW,GACZ,EAAE,6BAA6B,eA8I/B"}
@@ -5,7 +5,7 @@ import clsx from 'clsx';
5
5
  import InternalBox from '../../box/internal';
6
6
  import InternalButton from '../../button/internal';
7
7
  import { useInternalI18n } from '../../i18n/context';
8
- import { DndArea } from '../../internal/components/dnd-area';
8
+ import SortableArea from '../../internal/components/sortable-area';
9
9
  import { useUniqueId } from '../../internal/hooks/use-unique-id';
10
10
  import InternalSpaceBetween from '../../space-between/internal';
11
11
  import InternalTextFilter from '../../text-filter/internal';
@@ -46,10 +46,13 @@ export default function ContentDisplayPreference({ title, description, options,
46
46
  React.createElement(InternalBox, { margin: { top: 'm' } }, i18n('contentDisplayPreference.i18nStrings.columnFilteringNoMatchText', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.columnFilteringNoMatchText)),
47
47
  React.createElement(InternalButton, { onClick: () => setColumnFilteringText('') }, i18n('contentDisplayPreference.i18nStrings.columnFilteringClearFilterText', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.columnFilteringClearFilterText))))),
48
48
  React.createElement("ul", { className: getClassName('option-list'), "aria-describedby": descriptionId, "aria-labelledby": titleId, role: "list" },
49
- React.createElement(DndArea, { items: sortedAndFilteredOptions.map(data => ({ id: data.id, label: data.label, data })), onItemsChange: items => onChange(items.map(({ id, data }) => ({ id, visible: data.visible }))), disableReorder: columnFilteringText.trim().length > 0, renderItem: ({ ref, item, isSorting, isActive, style, className, dragHandleProps }) => {
50
- className = clsx(className, getOptionClassName(), isSorting && styles.sorting);
51
- const content = (React.createElement(ContentDisplayOption, { ref: ref, option: item.data, onToggle: onToggle, dragHandleProps: dragHandleProps }));
52
- return isActive ? (content) : (React.createElement("li", { className: className, style: style }, content));
49
+ React.createElement(SortableArea, { items: sortedAndFilteredOptions, itemDefinition: { id: item => item.id, label: item => item.label }, onItemsChange: ({ detail }) => onChange(detail.items), disableReorder: columnFilteringText.trim().length > 0, renderItem: ({ ref, item, style, className, dragHandleProps, isDragGhost }) => {
50
+ className = clsx(className, getOptionClassName());
51
+ const content = (React.createElement(ContentDisplayOption, { ref: ref, option: item, onToggle: onToggle, dragHandleProps: dragHandleProps }));
52
+ if (isDragGhost) {
53
+ return content;
54
+ }
55
+ return (React.createElement("li", { className: className, style: style }, content));
53
56
  }, i18nStrings: {
54
57
  liveAnnouncementDndStarted: i18n('contentDisplayPreference.liveAnnouncementDndStarted', liveAnnouncementDndStarted, format => (position, total) => format({ position, total })),
55
58
  liveAnnouncementDndItemReordered: i18n('contentDisplayPreference.liveAnnouncementDndItemReordered', liveAnnouncementDndItemReordered, format => (initialPosition, currentPosition, total) => format({ currentPosition, total, isInitialPosition: `${initialPosition === currentPosition}` })),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,cAAc,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAo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AC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAC3D;oBACD,gCAAgC,EAAE,IAAI,CACpC,2DAA2D,EAC3D,gCAAgC,EAChC,MAAM,CAAC,EAAE,CAAC,CAAC,eAAe,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,CACpD,MAAM,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG,eAAe,KAAK,eAAe,EAAE,EAAE,CAAC,CAClG;oBACD,gCAAgC,EAAE,IAAI,CACpC,2DAA2D,EAC3D,gCAAgC,EAChC,MAAM,CAAC,EAAE,CAAC,CAAC,eAAe,EAAE,aAAa,EAAE,KAAK,EAAE,EAAE,CAClD,MAAM,CAAC;wBACL,eAAe;wBACf,aAAa;wBACb,KAAK;wBACL,iBAAiB,EAAE,GAAG,eAAe,KAAK,aAAa,EAAE;qBAC1D,CAAC,CACL;oBACD,4BAA4B,EAAE,IAAI,CAChC,uDAAuD,EACvD,4BAA4B,CAC7B;oBACD,mBAAmB,EAAE,IAAI,CAAC,8CAA8C,EAAE,mBAAmB,CAAC;oBAC9F,yBAAyB,EAAE,IAAI,CAC7B,oDAAoD,EACpD,yBAAyB,CAC1B;iBACF,GACD,CACC,CACD,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, useState } from 'react';\nimport clsx from 'clsx';\n\nimport InternalBox from '../../box/internal';\nimport InternalButton from '../../button/internal';\nimport { useInternalI18n } from '../../i18n/context';\nimport { DndArea } from '../../internal/components/dnd-area';\nimport { useUniqueId } from '../../internal/hooks/use-unique-id';\nimport InternalSpaceBetween from '../../space-between/internal';\nimport InternalTextFilter from '../../text-filter/internal';\nimport { getAnalyticsInnerContextAttribute } from '../analytics-metadata/utils';\nimport { CollectionPreferencesProps } from '../interfaces';\nimport ContentDisplayOption, { getClassName as getOptionClassName } from './content-display-option';\nimport { getFilteredOptions, getSortedOptions, OptionWithVisibility } from './utils';\n\nimport styles from '../styles.css.js';\n\nconst componentPrefix = 'content-display';\n\nconst getClassName = (suffix: string) => styles[`${componentPrefix}-${suffix}`];\n\ninterface ContentDisplayPreferenceProps extends CollectionPreferencesProps.ContentDisplayPreference {\n onChange: (value: ReadonlyArray<CollectionPreferencesProps.ContentDisplayItem>) => void;\n value?: ReadonlyArray<CollectionPreferencesProps.ContentDisplayItem>;\n}\n\nexport default function ContentDisplayPreference({\n title,\n description,\n options,\n value = options.map(({ id }) => ({\n id,\n visible: true,\n })),\n onChange,\n liveAnnouncementDndStarted,\n liveAnnouncementDndItemReordered,\n liveAnnouncementDndItemCommitted,\n liveAnnouncementDndDiscarded,\n dragHandleAriaDescription,\n dragHandleAriaLabel,\n enableColumnFiltering = false,\n i18nStrings,\n}: ContentDisplayPreferenceProps) {\n const idPrefix = useUniqueId(componentPrefix);\n const i18n = useInternalI18n('collection-preferences');\n const [columnFilteringText, setColumnFilteringText] = useState('');\n\n const titleId = `${idPrefix}-title`;\n const descriptionId = `${idPrefix}-description`;\n\n const [sortedOptions, sortedAndFilteredOptions] = useMemo(() => {\n const sorted = getSortedOptions({ options, contentDisplay: value });\n const filtered = getFilteredOptions(sorted, columnFilteringText);\n return [sorted, filtered];\n }, [columnFilteringText, options, value]);\n\n const onToggle = (option: OptionWithVisibility) => {\n // We use sortedOptions as base and not value because there might be options that\n // are not in the value yet, so they're added as non-visible after the known ones.\n onChange(sortedOptions.map(({ id, visible }) => ({ id, visible: id === option.id ? !option.visible : visible })));\n };\n\n return (\n <div className={styles[componentPrefix]} {...getAnalyticsInnerContextAttribute('contentDisplay')}>\n <h3 className={getClassName('title')} id={titleId}>\n {i18n('contentDisplayPreference.title', title)}\n </h3>\n <p className={getClassName('description')} id={descriptionId}>\n {i18n('contentDisplayPreference.description', description)}\n </p>\n\n {/* Filter input */}\n {enableColumnFiltering && (\n <div className={getClassName('text-filter')}>\n <InternalTextFilter\n filteringText={columnFilteringText}\n filteringPlaceholder={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringPlaceholder',\n i18nStrings?.columnFilteringPlaceholder\n )}\n filteringAriaLabel={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringAriaLabel',\n i18nStrings?.columnFilteringAriaLabel\n )}\n filteringClearAriaLabel={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringClearFilterText',\n i18nStrings?.columnFilteringClearFilterText\n )}\n onChange={({ detail }) => setColumnFilteringText(detail.filteringText)}\n countText={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringCountText',\n i18nStrings?.columnFilteringCountText\n ? i18nStrings?.columnFilteringCountText(sortedAndFilteredOptions.length)\n : undefined,\n format => format({ count: sortedAndFilteredOptions.length })\n )}\n />\n </div>\n )}\n\n {/* No match */}\n {sortedAndFilteredOptions.length === 0 && (\n <div className={getClassName('no-match')}>\n <InternalSpaceBetween size=\"s\" alignItems=\"center\">\n <InternalBox margin={{ top: 'm' }}>\n {i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringNoMatchText',\n i18nStrings?.columnFilteringNoMatchText\n )}\n </InternalBox>\n <InternalButton onClick={() => setColumnFilteringText('')}>\n {i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringClearFilterText',\n i18nStrings?.columnFilteringClearFilterText\n )}\n </InternalButton>\n </InternalSpaceBetween>\n </div>\n )}\n\n {/* Use explicit list role to work around Safari not announcing lists as such when list-style is set to none.\n See https://bugs.webkit.org/show_bug.cgi?id=170179 */}\n <ul\n className={getClassName('option-list')}\n aria-describedby={descriptionId}\n aria-labelledby={titleId}\n role=\"list\"\n >\n <DndArea\n items={sortedAndFilteredOptions.map(data => ({ id: data.id, label: data.label, data }))}\n onItemsChange={items => onChange(items.map(({ id, data }) => ({ id, visible: data.visible })))}\n disableReorder={columnFilteringText.trim().length > 0}\n renderItem={({ ref, item, isSorting, isActive, style, className, dragHandleProps }) => {\n className = clsx(className, getOptionClassName(), isSorting && styles.sorting);\n const content = (\n <ContentDisplayOption\n ref={ref}\n option={item.data}\n onToggle={onToggle}\n dragHandleProps={dragHandleProps}\n />\n );\n return isActive ? (\n content\n ) : (\n <li className={className} style={style}>\n {content}\n </li>\n );\n }}\n i18nStrings={{\n liveAnnouncementDndStarted: i18n(\n 'contentDisplayPreference.liveAnnouncementDndStarted',\n liveAnnouncementDndStarted,\n format => (position, total) => format({ position, total })\n ),\n liveAnnouncementDndItemReordered: i18n(\n 'contentDisplayPreference.liveAnnouncementDndItemReordered',\n liveAnnouncementDndItemReordered,\n format => (initialPosition, currentPosition, total) =>\n format({ currentPosition, total, isInitialPosition: `${initialPosition === currentPosition}` })\n ),\n liveAnnouncementDndItemCommitted: i18n(\n 'contentDisplayPreference.liveAnnouncementDndItemCommitted',\n liveAnnouncementDndItemCommitted,\n format => (initialPosition, finalPosition, total) =>\n format({\n initialPosition,\n finalPosition,\n total,\n isInitialPosition: `${initialPosition === finalPosition}`,\n })\n ),\n liveAnnouncementDndDiscarded: i18n(\n 'contentDisplayPreference.liveAnnouncementDndDiscarded',\n liveAnnouncementDndDiscarded\n ),\n dragHandleAriaLabel: i18n('contentDisplayPreference.dragHandleAriaLabel', dragHandleAriaLabel),\n dragHandleAriaDescription: i18n(\n 'contentDisplayPreference.dragHandleAriaDescription',\n dragHandleAriaDescription\n ),\n }}\n />\n </ul>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,cAAc,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,o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Ae,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,CACpD,MAAM,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG,eAAe,KAAK,eAAe,EAAE,EAAE,CAAC,CAClG;oBACD,gCAAgC,EAAE,IAAI,CACpC,2DAA2D,EAC3D,gCAAgC,EAChC,MAAM,CAAC,EAAE,CAAC,CAAC,eAAe,EAAE,aAAa,EAAE,KAAK,EAAE,EAAE,CAClD,MAAM,CAAC;wBACL,eAAe;wBACf,aAAa;wBACb,KAAK;wBACL,iBAAiB,EAAE,GAAG,eAAe,KAAK,aAAa,EAAE;qBAC1D,CAAC,CACL;oBACD,4BAA4B,EAAE,IAAI,CAChC,uDAAuD,EACvD,4BAA4B,CAC7B;oBACD,mBAAmB,EAAE,IAAI,CAAC,8CAA8C,EAAE,mBAAmB,CAAC;oBAC9F,yBAAyB,EAAE,IAAI,CAC7B,oDAAoD,EACpD,yBAAyB,CAC1B;iBACF,GACD,CACC,CACD,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, useState } from 'react';\nimport clsx from 'clsx';\n\nimport InternalBox from '../../box/internal';\nimport InternalButton from '../../button/internal';\nimport { useInternalI18n } from '../../i18n/context';\nimport SortableArea from '../../internal/components/sortable-area';\nimport { useUniqueId } from '../../internal/hooks/use-unique-id';\nimport InternalSpaceBetween from '../../space-between/internal';\nimport InternalTextFilter from '../../text-filter/internal';\nimport { getAnalyticsInnerContextAttribute } from '../analytics-metadata/utils';\nimport { CollectionPreferencesProps } from '../interfaces';\nimport ContentDisplayOption, { getClassName as getOptionClassName } from './content-display-option';\nimport { getFilteredOptions, getSortedOptions, OptionWithVisibility } from './utils';\n\nimport styles from '../styles.css.js';\n\nconst componentPrefix = 'content-display';\n\nconst getClassName = (suffix: string) => styles[`${componentPrefix}-${suffix}`];\n\ninterface ContentDisplayPreferenceProps extends CollectionPreferencesProps.ContentDisplayPreference {\n onChange: (value: ReadonlyArray<CollectionPreferencesProps.ContentDisplayItem>) => void;\n value?: ReadonlyArray<CollectionPreferencesProps.ContentDisplayItem>;\n}\n\nexport default function ContentDisplayPreference({\n title,\n description,\n options,\n value = options.map(({ id }) => ({\n id,\n visible: true,\n })),\n onChange,\n liveAnnouncementDndStarted,\n liveAnnouncementDndItemReordered,\n liveAnnouncementDndItemCommitted,\n liveAnnouncementDndDiscarded,\n dragHandleAriaDescription,\n dragHandleAriaLabel,\n enableColumnFiltering = false,\n i18nStrings,\n}: ContentDisplayPreferenceProps) {\n const idPrefix = useUniqueId(componentPrefix);\n const i18n = useInternalI18n('collection-preferences');\n const [columnFilteringText, setColumnFilteringText] = useState('');\n\n const titleId = `${idPrefix}-title`;\n const descriptionId = `${idPrefix}-description`;\n\n const [sortedOptions, sortedAndFilteredOptions] = useMemo(() => {\n const sorted = getSortedOptions({ options, contentDisplay: value });\n const filtered = getFilteredOptions(sorted, columnFilteringText);\n return [sorted, filtered];\n }, [columnFilteringText, options, value]);\n\n const onToggle = (option: OptionWithVisibility) => {\n // We use sortedOptions as base and not value because there might be options that\n // are not in the value yet, so they're added as non-visible after the known ones.\n onChange(sortedOptions.map(({ id, visible }) => ({ id, visible: id === option.id ? !option.visible : visible })));\n };\n\n return (\n <div className={styles[componentPrefix]} {...getAnalyticsInnerContextAttribute('contentDisplay')}>\n <h3 className={getClassName('title')} id={titleId}>\n {i18n('contentDisplayPreference.title', title)}\n </h3>\n <p className={getClassName('description')} id={descriptionId}>\n {i18n('contentDisplayPreference.description', description)}\n </p>\n\n {/* Filter input */}\n {enableColumnFiltering && (\n <div className={getClassName('text-filter')}>\n <InternalTextFilter\n filteringText={columnFilteringText}\n filteringPlaceholder={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringPlaceholder',\n i18nStrings?.columnFilteringPlaceholder\n )}\n filteringAriaLabel={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringAriaLabel',\n i18nStrings?.columnFilteringAriaLabel\n )}\n filteringClearAriaLabel={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringClearFilterText',\n i18nStrings?.columnFilteringClearFilterText\n )}\n onChange={({ detail }) => setColumnFilteringText(detail.filteringText)}\n countText={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringCountText',\n i18nStrings?.columnFilteringCountText\n ? i18nStrings?.columnFilteringCountText(sortedAndFilteredOptions.length)\n : undefined,\n format => format({ count: sortedAndFilteredOptions.length })\n )}\n />\n </div>\n )}\n\n {/* No match */}\n {sortedAndFilteredOptions.length === 0 && (\n <div className={getClassName('no-match')}>\n <InternalSpaceBetween size=\"s\" alignItems=\"center\">\n <InternalBox margin={{ top: 'm' }}>\n {i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringNoMatchText',\n i18nStrings?.columnFilteringNoMatchText\n )}\n </InternalBox>\n <InternalButton onClick={() => setColumnFilteringText('')}>\n {i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringClearFilterText',\n i18nStrings?.columnFilteringClearFilterText\n )}\n </InternalButton>\n </InternalSpaceBetween>\n </div>\n )}\n\n {/* Use explicit list role to work around Safari not announcing lists as such when list-style is set to none.\n See https://bugs.webkit.org/show_bug.cgi?id=170179 */}\n <ul\n className={getClassName('option-list')}\n aria-describedby={descriptionId}\n aria-labelledby={titleId}\n role=\"list\"\n >\n <SortableArea\n items={sortedAndFilteredOptions}\n itemDefinition={{ id: item => item.id, label: item => item.label }}\n onItemsChange={({ detail }) => onChange(detail.items)}\n disableReorder={columnFilteringText.trim().length > 0}\n renderItem={({ ref, item, style, className, dragHandleProps, isDragGhost }) => {\n className = clsx(className, getOptionClassName());\n const content = (\n <ContentDisplayOption ref={ref} option={item} onToggle={onToggle} dragHandleProps={dragHandleProps} />\n );\n if (isDragGhost) {\n return content;\n }\n return (\n <li className={className} style={style}>\n {content}\n </li>\n );\n }}\n i18nStrings={{\n liveAnnouncementDndStarted: i18n(\n 'contentDisplayPreference.liveAnnouncementDndStarted',\n liveAnnouncementDndStarted,\n format => (position, total) => format({ position, total })\n ),\n liveAnnouncementDndItemReordered: i18n(\n 'contentDisplayPreference.liveAnnouncementDndItemReordered',\n liveAnnouncementDndItemReordered,\n format => (initialPosition, currentPosition, total) =>\n format({ currentPosition, total, isInitialPosition: `${initialPosition === currentPosition}` })\n ),\n liveAnnouncementDndItemCommitted: i18n(\n 'contentDisplayPreference.liveAnnouncementDndItemCommitted',\n liveAnnouncementDndItemCommitted,\n format => (initialPosition, finalPosition, total) =>\n format({\n initialPosition,\n finalPosition,\n total,\n isInitialPosition: `${initialPosition === finalPosition}`,\n })\n ),\n liveAnnouncementDndDiscarded: i18n(\n 'contentDisplayPreference.liveAnnouncementDndDiscarded',\n liveAnnouncementDndDiscarded\n ),\n dragHandleAriaLabel: i18n('contentDisplayPreference.dragHandleAriaLabel', dragHandleAriaLabel),\n dragHandleAriaDescription: i18n(\n 'contentDisplayPreference.dragHandleAriaDescription',\n dragHandleAriaDescription\n ),\n }}\n />\n </ul>\n </div>\n );\n}\n"]}
@@ -1,36 +1,37 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_14iqq_15851_189",
5
- "fit-height": "awsui_fit-height_14iqq_15851_222",
6
- "with-side-media": "awsui_with-side-media_14iqq_15851_227",
7
- "variant-default": "awsui_variant-default_14iqq_15851_230",
8
- "variant-stacked": "awsui_variant-stacked_14iqq_15851_230",
9
- "refresh": "awsui_refresh_14iqq_15851_238",
10
- "sticky-enabled": "awsui_sticky-enabled_14iqq_15851_288",
11
- "with-top-media": "awsui_with-top-media_14iqq_15851_300",
12
- "content-wrapper": "awsui_content-wrapper_14iqq_15851_305",
13
- "content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_15851_310",
14
- "media": "awsui_media_14iqq_15851_317",
15
- "media-top": "awsui_media-top_14iqq_15851_335",
16
- "media-side": "awsui_media-side_14iqq_15851_340",
17
- "header": "awsui_header_14iqq_15851_346",
18
- "header-full-page": "awsui_header-full-page_14iqq_15851_351",
19
- "header-with-media": "awsui_header-with-media_14iqq_15851_354",
20
- "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_15851_360",
21
- "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_15851_364",
22
- "header-stuck": "awsui_header-stuck_14iqq_15851_370",
23
- "header-variant-cards": "awsui_header-variant-cards_14iqq_15851_380",
24
- "header-dynamic-height": "awsui_header-dynamic-height_14iqq_15851_383",
25
- "with-paddings": "awsui_with-paddings_14iqq_15851_389",
26
- "with-hidden-content": "awsui_with-hidden-content_14iqq_15851_398",
27
- "header-variant-full-page": "awsui_header-variant-full-page_14iqq_15851_456",
28
- "header-cover": "awsui_header-cover_14iqq_15851_459",
29
- "content": "awsui_content_14iqq_15851_305",
30
- "content-fit-height": "awsui_content-fit-height_14iqq_15851_487",
31
- "content-inner": "awsui_content-inner_14iqq_15851_493",
32
- "with-header": "awsui_with-header_14iqq_15851_500",
33
- "footer": "awsui_footer_14iqq_15851_504",
34
- "with-divider": "awsui_with-divider_14iqq_15851_508"
4
+ "root": "awsui_root_14iqq_1yot8_189",
5
+ "fit-height": "awsui_fit-height_14iqq_1yot8_222",
6
+ "with-side-media": "awsui_with-side-media_14iqq_1yot8_227",
7
+ "variant-default": "awsui_variant-default_14iqq_1yot8_230",
8
+ "variant-stacked": "awsui_variant-stacked_14iqq_1yot8_230",
9
+ "refresh": "awsui_refresh_14iqq_1yot8_238",
10
+ "sticky-enabled": "awsui_sticky-enabled_14iqq_1yot8_288",
11
+ "with-top-media": "awsui_with-top-media_14iqq_1yot8_300",
12
+ "content-wrapper": "awsui_content-wrapper_14iqq_1yot8_305",
13
+ "content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_1yot8_310",
14
+ "media": "awsui_media_14iqq_1yot8_317",
15
+ "media-top": "awsui_media-top_14iqq_1yot8_335",
16
+ "media-side": "awsui_media-side_14iqq_1yot8_340",
17
+ "header": "awsui_header_14iqq_1yot8_346",
18
+ "header-full-page": "awsui_header-full-page_14iqq_1yot8_351",
19
+ "header-variant-embedded": "awsui_header-variant-embedded_14iqq_1yot8_354",
20
+ "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_1yot8_354",
21
+ "header-with-media": "awsui_header-with-media_14iqq_1yot8_357",
22
+ "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_1yot8_363",
23
+ "header-stuck": "awsui_header-stuck_14iqq_1yot8_373",
24
+ "header-variant-cards": "awsui_header-variant-cards_14iqq_1yot8_383",
25
+ "header-dynamic-height": "awsui_header-dynamic-height_14iqq_1yot8_386",
26
+ "with-paddings": "awsui_with-paddings_14iqq_1yot8_392",
27
+ "with-hidden-content": "awsui_with-hidden-content_14iqq_1yot8_401",
28
+ "header-variant-full-page": "awsui_header-variant-full-page_14iqq_1yot8_459",
29
+ "header-cover": "awsui_header-cover_14iqq_1yot8_462",
30
+ "content": "awsui_content_14iqq_1yot8_305",
31
+ "content-fit-height": "awsui_content-fit-height_14iqq_1yot8_490",
32
+ "content-inner": "awsui_content-inner_14iqq_1yot8_496",
33
+ "with-header": "awsui_with-header_14iqq_1yot8_503",
34
+ "footer": "awsui_footer_14iqq_1yot8_507",
35
+ "with-divider": "awsui_with-divider_14iqq_1yot8_511"
35
36
  };
36
37
 
@@ -186,7 +186,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
186
186
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
187
187
  SPDX-License-Identifier: Apache-2.0
188
188
  */
189
- .awsui_root_14iqq_15851_189:not(#\9) {
189
+ .awsui_root_14iqq_1yot8_189:not(#\9) {
190
190
  border-collapse: separate;
191
191
  border-spacing: 0;
192
192
  box-sizing: border-box;
@@ -220,15 +220,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
220
220
  word-wrap: break-word;
221
221
  position: relative;
222
222
  }
223
- .awsui_root_14iqq_15851_189.awsui_fit-height_14iqq_15851_222:not(#\9) {
223
+ .awsui_root_14iqq_1yot8_189.awsui_fit-height_14iqq_1yot8_222:not(#\9) {
224
224
  display: flex;
225
225
  flex-direction: column;
226
226
  block-size: 100%;
227
227
  }
228
- .awsui_root_14iqq_15851_189.awsui_fit-height_14iqq_15851_222.awsui_with-side-media_14iqq_15851_227:not(#\9) {
228
+ .awsui_root_14iqq_1yot8_189.awsui_fit-height_14iqq_1yot8_222.awsui_with-side-media_14iqq_1yot8_227:not(#\9) {
229
229
  flex-direction: row;
230
230
  }
231
- .awsui_root_14iqq_15851_189.awsui_variant-default_14iqq_15851_230:not(#\9), .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230:not(#\9) {
231
+ .awsui_root_14iqq_1yot8_189.awsui_variant-default_14iqq_1yot8_230:not(#\9), .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230:not(#\9) {
232
232
  background-color: var(--color-background-container-content-myy7cn, #ffffff);
233
233
  border-start-start-radius: var(--border-radius-container-3o3ats, 0px);
234
234
  border-start-end-radius: var(--border-radius-container-3o3ats, 0px);
@@ -236,11 +236,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
236
236
  border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
237
237
  box-sizing: border-box;
238
238
  }
239
- .awsui_root_14iqq_15851_189.awsui_variant-default_14iqq_15851_230.awsui_refresh_14iqq_15851_238:not(#\9), .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230.awsui_refresh_14iqq_15851_238:not(#\9) {
239
+ .awsui_root_14iqq_1yot8_189.awsui_variant-default_14iqq_1yot8_230.awsui_refresh_14iqq_1yot8_238:not(#\9), .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230.awsui_refresh_14iqq_1yot8_238:not(#\9) {
240
240
  border-block: solid var(--border-divider-section-width-iueskx, 1px) var(--color-border-divider-default-u5ytia, #eaeded);
241
241
  border-inline: solid var(--border-divider-section-width-iueskx, 1px) var(--color-border-divider-default-u5ytia, #eaeded);
242
242
  }
243
- .awsui_root_14iqq_15851_189.awsui_variant-default_14iqq_15851_230:not(#\9):not(.awsui_refresh_14iqq_15851_238)::before, .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230:not(#\9):not(.awsui_refresh_14iqq_15851_238)::before {
243
+ .awsui_root_14iqq_1yot8_189.awsui_variant-default_14iqq_1yot8_230:not(#\9):not(.awsui_refresh_14iqq_1yot8_238)::before, .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230:not(#\9):not(.awsui_refresh_14iqq_1yot8_238)::before {
244
244
  content: "";
245
245
  position: absolute;
246
246
  inset-inline-start: 0px;
@@ -258,7 +258,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
258
258
  border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
259
259
  z-index: 1;
260
260
  }
261
- .awsui_root_14iqq_15851_189.awsui_variant-default_14iqq_15851_230:not(#\9):not(.awsui_refresh_14iqq_15851_238)::after, .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230:not(#\9):not(.awsui_refresh_14iqq_15851_238)::after {
261
+ .awsui_root_14iqq_1yot8_189.awsui_variant-default_14iqq_1yot8_230:not(#\9):not(.awsui_refresh_14iqq_1yot8_238)::after, .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230:not(#\9):not(.awsui_refresh_14iqq_1yot8_238)::after {
262
262
  content: "";
263
263
  position: absolute;
264
264
  inset-inline-start: 0px;
@@ -274,144 +274,147 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
274
274
  border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
275
275
  box-shadow: var(--shadow-container-8g76zh, 0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15));
276
276
  }
277
- .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230:not(#\9):not(:last-child), .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230:not(#\9):not(:last-child)::before, .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230:not(#\9):not(:last-child)::after {
277
+ .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230:not(#\9):not(:last-child), .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230:not(#\9):not(:last-child)::before, .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230:not(#\9):not(:last-child)::after {
278
278
  border-end-end-radius: 0;
279
279
  border-end-start-radius: 0;
280
280
  border-block-end-width: 0;
281
281
  }
282
- .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230 + .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230:not(#\9), .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230 + .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230:not(#\9)::before, .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230 + .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230:not(#\9)::after {
282
+ .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230 + .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230:not(#\9), .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230 + .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230:not(#\9)::before, .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230 + .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230:not(#\9)::after {
283
283
  border-start-start-radius: 0;
284
284
  border-start-end-radius: 0;
285
285
  }
286
- .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230 + .awsui_root_14iqq_15851_189.awsui_variant-stacked_14iqq_15851_230:not(#\9):not(.awsui_refresh_14iqq_15851_238)::before {
286
+ .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230 + .awsui_root_14iqq_1yot8_189.awsui_variant-stacked_14iqq_1yot8_230:not(#\9):not(.awsui_refresh_14iqq_1yot8_238)::before {
287
287
  border-block-start: var(--border-divider-section-width-iueskx, 1px) solid var(--color-border-divider-default-u5ytia, #eaeded);
288
288
  }
289
- .awsui_root_14iqq_15851_189.awsui_sticky-enabled_14iqq_15851_288:not(#\9):not(.awsui_refresh_14iqq_15851_238)::before {
289
+ .awsui_root_14iqq_1yot8_189.awsui_sticky-enabled_14iqq_1yot8_288:not(#\9):not(.awsui_refresh_14iqq_1yot8_238)::before {
290
290
  inset-block-start: calc(-1 * var(--border-container-top-width-197qfn, 1px));
291
291
  }
292
- .awsui_root_14iqq_15851_189.awsui_sticky-enabled_14iqq_15851_288:not(#\9):not(.awsui_refresh_14iqq_15851_238).awsui_variant-stacked_14iqq_15851_230::before {
292
+ .awsui_root_14iqq_1yot8_189.awsui_sticky-enabled_14iqq_1yot8_288:not(#\9):not(.awsui_refresh_14iqq_1yot8_238).awsui_variant-stacked_14iqq_1yot8_230::before {
293
293
  inset-block-start: calc(-1 * var(--border-divider-section-width-iueskx, 1px));
294
294
  }
295
295
 
296
- .awsui_with-side-media_14iqq_15851_227:not(#\9) {
296
+ .awsui_with-side-media_14iqq_1yot8_227:not(#\9) {
297
297
  display: flex;
298
298
  flex-direction: row;
299
299
  }
300
300
 
301
- .awsui_with-top-media_14iqq_15851_300:not(#\9) {
301
+ .awsui_with-top-media_14iqq_1yot8_300:not(#\9) {
302
302
  display: flex;
303
303
  flex-direction: column;
304
304
  }
305
305
 
306
- .awsui_content-wrapper_14iqq_15851_305:not(#\9) {
306
+ .awsui_content-wrapper_14iqq_1yot8_305:not(#\9) {
307
307
  display: flex;
308
308
  flex-direction: column;
309
309
  inline-size: 100%;
310
310
  }
311
- .awsui_content-wrapper-fit-height_14iqq_15851_310:not(#\9) {
311
+ .awsui_content-wrapper-fit-height_14iqq_1yot8_310:not(#\9) {
312
312
  block-size: 100%;
313
313
  overflow: hidden;
314
314
  border-end-start-radius: var(--border-radius-container-3o3ats, 0px);
315
315
  border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
316
316
  }
317
317
 
318
- .awsui_media_14iqq_15851_317:not(#\9) {
318
+ .awsui_media_14iqq_1yot8_317:not(#\9) {
319
319
  overflow: hidden;
320
320
  flex-shrink: 0;
321
321
  }
322
- .awsui_media_14iqq_15851_317 img:not(#\9),
323
- .awsui_media_14iqq_15851_317 video:not(#\9),
324
- .awsui_media_14iqq_15851_317 picture:not(#\9) {
322
+ .awsui_media_14iqq_1yot8_317 img:not(#\9),
323
+ .awsui_media_14iqq_1yot8_317 video:not(#\9),
324
+ .awsui_media_14iqq_1yot8_317 picture:not(#\9) {
325
325
  inline-size: 100%;
326
326
  block-size: 100%;
327
327
  object-fit: cover;
328
328
  object-position: center;
329
329
  }
330
- .awsui_media_14iqq_15851_317 iframe:not(#\9) {
330
+ .awsui_media_14iqq_1yot8_317 iframe:not(#\9) {
331
331
  inline-size: 100%;
332
332
  block-size: 100%;
333
333
  border-block: 0;
334
334
  border-inline: 0;
335
335
  }
336
- .awsui_media-top_14iqq_15851_335:not(#\9) {
336
+ .awsui_media-top_14iqq_1yot8_335:not(#\9) {
337
337
  max-block-size: 66%;
338
338
  border-start-start-radius: calc(var(--border-radius-container-3o3ats, 0px) - 1px);
339
339
  border-start-end-radius: calc(var(--border-radius-container-3o3ats, 0px) - 1px);
340
340
  }
341
- .awsui_media-side_14iqq_15851_340:not(#\9) {
341
+ .awsui_media-side_14iqq_1yot8_340:not(#\9) {
342
342
  max-inline-size: 66%;
343
343
  border-start-start-radius: calc(var(--border-radius-container-3o3ats, 0px) - 1px);
344
344
  border-end-start-radius: calc(var(--border-radius-container-3o3ats, 0px) - 1px);
345
345
  }
346
346
 
347
- .awsui_header_14iqq_15851_346:not(#\9) {
347
+ .awsui_header_14iqq_1yot8_346:not(#\9) {
348
348
  background-color: var(--color-background-container-header-9jxtzb, #fafafa);
349
349
  border-start-start-radius: var(--border-radius-container-3o3ats, 0px);
350
350
  border-start-end-radius: var(--border-radius-container-3o3ats, 0px);
351
351
  }
352
- .awsui_header_14iqq_15851_346.awsui_header-full-page_14iqq_15851_351:not(#\9) {
352
+ .awsui_header_14iqq_1yot8_346.awsui_header-full-page_14iqq_1yot8_351:not(#\9) {
353
353
  background-color: var(--color-background-layout-main-f96353, #f2f3f3);
354
354
  }
355
- .awsui_header_14iqq_15851_346.awsui_header-with-media_14iqq_15851_354:not(#\9) {
355
+ .awsui_header-variant-embedded_14iqq_1yot8_354.awsui_refresh_14iqq_1yot8_238:not(#\9):not(.awsui_header-sticky-enabled_14iqq_1yot8_354) {
356
+ background-color: transparent;
357
+ }
358
+ .awsui_header_14iqq_1yot8_346.awsui_header-with-media_14iqq_1yot8_357:not(#\9) {
356
359
  background: none;
357
360
  }
358
- .awsui_header_14iqq_15851_346.awsui_header-with-media_14iqq_15851_354:not(#\9):not(:empty) {
361
+ .awsui_header_14iqq_1yot8_346.awsui_header-with-media_14iqq_1yot8_357:not(#\9):not(:empty) {
359
362
  border-block-end: none;
360
363
  }
361
- .awsui_header-sticky-disabled_14iqq_15851_360:not(#\9) {
364
+ .awsui_header-sticky-disabled_14iqq_1yot8_363:not(#\9) {
362
365
  position: relative;
363
366
  z-index: 1;
364
367
  }
365
- .awsui_header-sticky-enabled_14iqq_15851_364:not(#\9) {
368
+ .awsui_header-sticky-enabled_14iqq_1yot8_354:not(#\9) {
366
369
  inset-block-start: 0;
367
370
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
368
371
  position: sticky;
369
372
  z-index: 800;
370
373
  }
371
- .awsui_header-stuck_14iqq_15851_370:not(#\9) {
374
+ .awsui_header-stuck_14iqq_1yot8_373:not(#\9) {
372
375
  border-start-start-radius: 0;
373
376
  border-start-end-radius: 0;
374
377
  border-end-start-radius: 0;
375
378
  border-end-end-radius: 0;
376
379
  }
377
- .awsui_header-stuck_14iqq_15851_370:not(#\9)::before {
380
+ .awsui_header-stuck_14iqq_1yot8_373:not(#\9)::before {
378
381
  border-block: 0;
379
382
  border-inline: 0;
380
383
  }
381
- .awsui_header-stuck_14iqq_15851_370:not(#\9):not(.awsui_header-variant-cards_14iqq_15851_380) {
384
+ .awsui_header-stuck_14iqq_1yot8_373:not(#\9):not(.awsui_header-variant-cards_14iqq_1yot8_383) {
382
385
  box-shadow: var(--shadow-sticky-embedded-bxmsxm, 0px 1px 4px -2px rgba(0, 28, 36, 0.5));
383
386
  }
384
- .awsui_header-dynamic-height_14iqq_15851_383.awsui_header-stuck_14iqq_15851_370:not(#\9) {
387
+ .awsui_header-dynamic-height_14iqq_1yot8_386.awsui_header-stuck_14iqq_1yot8_373:not(#\9) {
385
388
  margin-block-end: calc(var(--line-height-heading-xl-66u22x, 36px) - var(--line-height-heading-l-643aq3, 22px));
386
389
  }
387
- .awsui_header_14iqq_15851_346:not(#\9):not(:empty) {
390
+ .awsui_header_14iqq_1yot8_346:not(#\9):not(:empty) {
388
391
  border-block-end: var(--border-container-sticky-width-lhedby, 1px) solid var(--color-border-container-divider-xr1vlc, #eaeded);
389
392
  }
390
- .awsui_header_14iqq_15851_346.awsui_with-paddings_14iqq_15851_389:not(#\9) {
393
+ .awsui_header_14iqq_1yot8_346.awsui_with-paddings_14iqq_1yot8_392:not(#\9) {
391
394
  padding-block-start: var(--space-container-header-top-2yfg3x, 12px);
392
395
  padding-block-end: var(--space-container-header-bottom-p6av5y, 12px);
393
396
  padding-inline: var(--space-container-horizontal-v3575u, 20px);
394
397
  }
395
- .awsui_header_14iqq_15851_346.awsui_with-paddings_14iqq_15851_389.awsui_header-variant-cards_14iqq_15851_380:not(#\9) {
398
+ .awsui_header_14iqq_1yot8_346.awsui_with-paddings_14iqq_1yot8_392.awsui_header-variant-cards_14iqq_1yot8_383:not(#\9) {
396
399
  padding-block: var(--space-container-header-top-2yfg3x, 12px);
397
400
  padding-inline: var(--space-container-horizontal-v3575u, 20px);
398
401
  }
399
- .awsui_header_14iqq_15851_346.awsui_with-hidden-content_14iqq_15851_398:not(#\9) {
402
+ .awsui_header_14iqq_1yot8_346.awsui_with-hidden-content_14iqq_1yot8_401:not(#\9) {
400
403
  border-end-start-radius: var(--border-radius-container-3o3ats, 0px);
401
404
  border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
402
405
  }
403
- .awsui_header-variant-cards_14iqq_15851_380:not(#\9) {
406
+ .awsui_header-variant-cards_14iqq_1yot8_383:not(#\9) {
404
407
  border-start-start-radius: var(--border-radius-container-3o3ats, 0px);
405
408
  border-start-end-radius: var(--border-radius-container-3o3ats, 0px);
406
409
  border-end-start-radius: var(--border-radius-container-3o3ats, 0px);
407
410
  border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
408
411
  box-sizing: border-box;
409
412
  }
410
- .awsui_header-variant-cards_14iqq_15851_380.awsui_refresh_14iqq_15851_238:not(#\9) {
413
+ .awsui_header-variant-cards_14iqq_1yot8_383.awsui_refresh_14iqq_1yot8_238:not(#\9) {
411
414
  border-block: solid var(--border-divider-section-width-iueskx, 1px) var(--color-border-divider-default-u5ytia, #eaeded);
412
415
  border-inline: solid var(--border-divider-section-width-iueskx, 1px) var(--color-border-divider-default-u5ytia, #eaeded);
413
416
  }
414
- .awsui_header-variant-cards_14iqq_15851_380:not(#\9):not(.awsui_refresh_14iqq_15851_238)::before {
417
+ .awsui_header-variant-cards_14iqq_1yot8_383:not(#\9):not(.awsui_refresh_14iqq_1yot8_238)::before {
415
418
  content: "";
416
419
  position: absolute;
417
420
  inset-inline-start: 0px;
@@ -429,7 +432,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
429
432
  border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
430
433
  z-index: 1;
431
434
  }
432
- .awsui_header-variant-cards_14iqq_15851_380:not(#\9):not(.awsui_refresh_14iqq_15851_238)::after {
435
+ .awsui_header-variant-cards_14iqq_1yot8_383:not(#\9):not(.awsui_refresh_14iqq_1yot8_238)::after {
433
436
  content: "";
434
437
  position: absolute;
435
438
  inset-inline-start: 0px;
@@ -445,26 +448,26 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
445
448
  border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
446
449
  box-shadow: var(--shadow-container-8g76zh, 0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15));
447
450
  }
448
- .awsui_header-variant-cards_14iqq_15851_380:not(#\9):not(.awsui_header-sticky-enabled_14iqq_15851_364) {
451
+ .awsui_header-variant-cards_14iqq_1yot8_383:not(#\9):not(.awsui_header-sticky-enabled_14iqq_1yot8_354) {
449
452
  position: relative;
450
453
  }
451
- .awsui_header-variant-cards_14iqq_15851_380.awsui_header-stuck_14iqq_15851_370:not(#\9)::after, .awsui_header-variant-cards_14iqq_15851_380.awsui_header-stuck_14iqq_15851_370:not(#\9)::before {
454
+ .awsui_header-variant-cards_14iqq_1yot8_383.awsui_header-stuck_14iqq_1yot8_373:not(#\9)::after, .awsui_header-variant-cards_14iqq_1yot8_383.awsui_header-stuck_14iqq_1yot8_373:not(#\9)::before {
452
455
  border-block: 0;
453
456
  border-inline: 0;
454
457
  border-start-start-radius: 0;
455
458
  border-start-end-radius: 0;
456
459
  }
457
- .awsui_header-variant-full-page_14iqq_15851_456.awsui_header-stuck_14iqq_15851_370:not(#\9) {
460
+ .awsui_header-variant-full-page_14iqq_1yot8_459.awsui_header-stuck_14iqq_1yot8_373:not(#\9) {
458
461
  box-shadow: none;
459
462
  }
460
- .awsui_header-variant-full-page_14iqq_15851_456.awsui_header-stuck_14iqq_15851_370 > .awsui_header-cover_14iqq_15851_459:not(#\9) {
463
+ .awsui_header-variant-full-page_14iqq_1yot8_459.awsui_header-stuck_14iqq_1yot8_373 > .awsui_header-cover_14iqq_1yot8_462:not(#\9) {
461
464
  background-color: var(--color-background-layout-main-f96353, #f2f3f3);
462
465
  inline-size: 100%;
463
466
  position: absolute;
464
467
  block-size: var(--space-scaled-s-8j7izy, 12px);
465
468
  inset-block-start: calc(-1 * var(--space-scaled-s-8j7izy, 12px));
466
469
  }
467
- .awsui_header-variant-full-page_14iqq_15851_456.awsui_header-stuck_14iqq_15851_370:not(#\9)::before {
470
+ .awsui_header-variant-full-page_14iqq_1yot8_459.awsui_header-stuck_14iqq_1yot8_373:not(#\9)::before {
468
471
  content: "";
469
472
  position: absolute;
470
473
  pointer-events: none;
@@ -474,7 +477,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
474
477
  inset-block-start: 0;
475
478
  border-block-end: solid var(--border-divider-section-width-iueskx, 1px) var(--color-border-divider-default-u5ytia, #eaeded);
476
479
  }
477
- .awsui_header-variant-full-page_14iqq_15851_456.awsui_header-stuck_14iqq_15851_370:not(#\9)::after {
480
+ .awsui_header-variant-full-page_14iqq_1yot8_459.awsui_header-stuck_14iqq_1yot8_373:not(#\9)::after {
478
481
  content: "";
479
482
  position: absolute;
480
483
  inset: 0;
@@ -482,30 +485,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
482
485
  clip-path: polygon(-999% 100%, 999% 100%, 999% 999%, -999% 999%);
483
486
  }
484
487
 
485
- .awsui_content_14iqq_15851_305:not(#\9) {
488
+ .awsui_content_14iqq_1yot8_305:not(#\9) {
486
489
  flex: 1;
487
490
  }
488
- .awsui_content-fit-height_14iqq_15851_487:not(#\9) {
491
+ .awsui_content-fit-height_14iqq_1yot8_490:not(#\9) {
489
492
  overflow: auto;
490
493
  display: flex;
491
494
  flex-direction: column;
492
495
  }
493
496
 
494
- .awsui_content-inner_14iqq_15851_493:not(#\9) {
497
+ .awsui_content-inner_14iqq_1yot8_496:not(#\9) {
495
498
  flex: 1;
496
499
  }
497
- .awsui_content-inner_14iqq_15851_493.awsui_with-paddings_14iqq_15851_389:not(#\9) {
500
+ .awsui_content-inner_14iqq_1yot8_496.awsui_with-paddings_14iqq_1yot8_392:not(#\9) {
498
501
  padding-block: var(--space-scaled-l-7e51pg, 20px);
499
502
  padding-inline: var(--space-container-horizontal-v3575u, 20px);
500
503
  }
501
- .awsui_content-inner_14iqq_15851_493.awsui_with-paddings_14iqq_15851_389.awsui_with-header_14iqq_15851_500:not(#\9) {
504
+ .awsui_content-inner_14iqq_1yot8_496.awsui_with-paddings_14iqq_1yot8_392.awsui_with-header_14iqq_1yot8_503:not(#\9) {
502
505
  padding-block-start: var(--space-container-content-top-pvv221, 16px);
503
506
  }
504
507
 
505
- .awsui_footer_14iqq_15851_504.awsui_with-paddings_14iqq_15851_389:not(#\9) {
508
+ .awsui_footer_14iqq_1yot8_507.awsui_with-paddings_14iqq_1yot8_392:not(#\9) {
506
509
  padding-block: var(--space-scaled-s-8j7izy, 12px);
507
510
  padding-inline: var(--space-container-horizontal-v3575u, 20px);
508
511
  }
509
- .awsui_footer_14iqq_15851_504.awsui_with-divider_14iqq_15851_508:not(#\9) {
512
+ .awsui_footer_14iqq_1yot8_507.awsui_with-divider_14iqq_1yot8_511:not(#\9) {
510
513
  border-block-start: var(--border-divider-section-width-iueskx, 1px) solid var(--color-border-divider-default-u5ytia, #eaeded);
511
514
  }