@cloudscape-design/components-themeable 3.0.1126 → 3.0.1127

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 (199) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/app-layout/resize/styles.scss +1 -1
  3. package/lib/internal/scss/app-layout/visual-refresh-toolbar/drawer/styles.scss +40 -0
  4. package/lib/internal/scss/app-layout/visual-refresh-toolbar/skeleton/styles.scss +20 -3
  5. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +87 -86
  6. package/lib/internal/template/alert/styles.css.js +27 -27
  7. package/lib/internal/template/alert/styles.scoped.css +50 -50
  8. package/lib/internal/template/alert/styles.selectors.js +27 -27
  9. package/lib/internal/template/annotation-context/annotation/styles.css.js +24 -24
  10. package/lib/internal/template/annotation-context/annotation/styles.scoped.css +32 -32
  11. package/lib/internal/template/annotation-context/annotation/styles.selectors.js +24 -24
  12. package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
  13. package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
  14. package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
  15. package/lib/internal/template/app-layout/resize/styles.css.js +5 -5
  16. package/lib/internal/template/app-layout/resize/styles.scoped.css +13 -13
  17. package/lib/internal/template/app-layout/resize/styles.selectors.js +5 -5
  18. package/lib/internal/template/app-layout/runtime-drawer/index.d.ts +1 -0
  19. package/lib/internal/template/app-layout/runtime-drawer/index.d.ts.map +1 -1
  20. package/lib/internal/template/app-layout/runtime-drawer/index.js.map +1 -1
  21. package/lib/internal/template/app-layout/utils/use-drawers.d.ts +1 -1
  22. package/lib/internal/template/app-layout/utils/use-drawers.d.ts.map +1 -1
  23. package/lib/internal/template/app-layout/utils/use-drawers.js +4 -2
  24. package/lib/internal/template/app-layout/utils/use-drawers.js.map +1 -1
  25. package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
  26. package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +258 -258
  27. package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
  28. package/lib/internal/template/app-layout/visual-refresh-toolbar/compute-layout.d.ts +1 -1
  29. package/lib/internal/template/app-layout/visual-refresh-toolbar/compute-layout.d.ts.map +1 -1
  30. package/lib/internal/template/app-layout/visual-refresh-toolbar/compute-layout.js +2 -2
  31. package/lib/internal/template/app-layout/visual-refresh-toolbar/compute-layout.js.map +1 -1
  32. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-bottom-drawer.d.ts +13 -0
  33. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-bottom-drawer.d.ts.map +1 -0
  34. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-bottom-drawer.js +183 -0
  35. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-bottom-drawer.js.map +1 -0
  36. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-drawers.js +1 -1
  37. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-drawers.js.map +1 -1
  38. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/local-drawer.d.ts +2 -1
  39. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/local-drawer.d.ts.map +1 -1
  40. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/local-drawer.js +2 -2
  41. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/local-drawer.js.map +1 -1
  42. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +27 -26
  43. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +110 -76
  44. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +27 -26
  45. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/use-resize.d.ts +1 -1
  46. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/use-resize.d.ts.map +1 -1
  47. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/use-resize.js.map +1 -1
  48. package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts +15 -2
  49. package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
  50. package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
  51. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/index.d.ts +2 -1
  52. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/index.d.ts.map +1 -1
  53. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/index.js +2 -2
  54. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/index.js.map +1 -1
  55. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
  56. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +7 -7
  57. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
  58. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +27 -25
  59. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +68 -52
  60. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +27 -25
  61. package/lib/internal/template/app-layout/visual-refresh-toolbar/split-panel/index.d.ts +2 -1
  62. package/lib/internal/template/app-layout/visual-refresh-toolbar/split-panel/index.d.ts.map +1 -1
  63. package/lib/internal/template/app-layout/visual-refresh-toolbar/split-panel/index.js +2 -2
  64. package/lib/internal/template/app-layout/visual-refresh-toolbar/split-panel/index.js.map +1 -1
  65. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/interfaces.d.ts +4 -0
  66. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/interfaces.d.ts.map +1 -1
  67. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/interfaces.js.map +1 -1
  68. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/props-merger.d.ts.map +1 -1
  69. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/props-merger.js +12 -0
  70. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/props-merger.js.map +1 -1
  71. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-ai-drawer.d.ts.map +1 -1
  72. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-ai-drawer.js +0 -17
  73. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-ai-drawer.js.map +1 -1
  74. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.d.ts.map +1 -1
  75. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.js +108 -12
  76. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.js.map +1 -1
  77. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-bottom-drawers.d.ts +33 -0
  78. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-bottom-drawers.d.ts.map +1 -0
  79. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-bottom-drawers.js +85 -0
  80. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-bottom-drawers.js.map +1 -0
  81. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-skeleton-slots-attributes.d.ts.map +1 -1
  82. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-skeleton-slots-attributes.js +3 -1
  83. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-skeleton-slots-attributes.js.map +1 -1
  84. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts +8 -3
  85. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts.map +1 -1
  86. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js +34 -7
  87. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js.map +1 -1
  88. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts +4 -0
  89. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
  90. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js +7 -3
  91. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
  92. package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/after-main-slot.d.ts.map +1 -1
  93. package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/after-main-slot.js +7 -3
  94. package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/after-main-slot.js.map +1 -1
  95. package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.d.ts.map +1 -1
  96. package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js +2 -2
  97. package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js.map +1 -1
  98. package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/bottom-content-slot.d.ts.map +1 -1
  99. package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/bottom-content-slot.js +6 -2
  100. package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/bottom-content-slot.js.map +1 -1
  101. package/lib/internal/template/attribute-editor/interfaces.d.ts +2 -0
  102. package/lib/internal/template/attribute-editor/interfaces.d.ts.map +1 -1
  103. package/lib/internal/template/attribute-editor/interfaces.js.map +1 -1
  104. package/lib/internal/template/attribute-editor/row.d.ts.map +1 -1
  105. package/lib/internal/template/attribute-editor/row.js +2 -2
  106. package/lib/internal/template/attribute-editor/row.js.map +1 -1
  107. package/lib/internal/template/attribute-editor/styles.css.js +15 -15
  108. package/lib/internal/template/attribute-editor/styles.scoped.css +28 -28
  109. package/lib/internal/template/attribute-editor/styles.selectors.js +15 -15
  110. package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
  111. package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +28 -28
  112. package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
  113. package/lib/internal/template/button/styles.css.js +22 -22
  114. package/lib/internal/template/button/styles.scoped.css +256 -256
  115. package/lib/internal/template/button/styles.selectors.js +22 -22
  116. package/lib/internal/template/button-dropdown/interfaces.d.ts +3 -1
  117. package/lib/internal/template/button-dropdown/interfaces.d.ts.map +1 -1
  118. package/lib/internal/template/button-dropdown/interfaces.js.map +1 -1
  119. package/lib/internal/template/button-dropdown/item-element/index.d.ts.map +1 -1
  120. package/lib/internal/template/button-dropdown/item-element/index.js +1 -1
  121. package/lib/internal/template/button-dropdown/item-element/index.js.map +1 -1
  122. package/lib/internal/template/button-dropdown/item-element/styles.css.js +16 -16
  123. package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +27 -27
  124. package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +16 -16
  125. package/lib/internal/template/checkbox/styles.css.js +3 -3
  126. package/lib/internal/template/checkbox/styles.scoped.css +11 -11
  127. package/lib/internal/template/checkbox/styles.selectors.js +3 -3
  128. package/lib/internal/template/content-layout/styles.css.js +14 -14
  129. package/lib/internal/template/content-layout/styles.scoped.css +27 -27
  130. package/lib/internal/template/content-layout/styles.selectors.js +14 -14
  131. package/lib/internal/template/flashbar/styles.css.js +50 -50
  132. package/lib/internal/template/flashbar/styles.scoped.css +187 -187
  133. package/lib/internal/template/flashbar/styles.selectors.js +50 -50
  134. package/lib/internal/template/help-panel/styles.css.js +6 -6
  135. package/lib/internal/template/help-panel/styles.scoped.css +73 -73
  136. package/lib/internal/template/help-panel/styles.selectors.js +6 -6
  137. package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
  138. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
  139. package/lib/internal/template/internal/components/autosuggest-input/index.js +30 -7
  140. package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
  141. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.css.js +20 -20
  142. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.scoped.css +48 -48
  143. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.selectors.js +20 -20
  144. package/lib/internal/template/internal/components/dropdown/styles.css.js +20 -20
  145. package/lib/internal/template/internal/components/dropdown/styles.scoped.css +38 -38
  146. package/lib/internal/template/internal/components/dropdown/styles.selectors.js +20 -20
  147. package/lib/internal/template/internal/components/token-list/styles.css.js +10 -10
  148. package/lib/internal/template/internal/components/token-list/styles.scoped.css +25 -25
  149. package/lib/internal/template/internal/components/token-list/styles.selectors.js +10 -10
  150. package/lib/internal/template/internal/environment.js +2 -2
  151. package/lib/internal/template/internal/environment.json +2 -2
  152. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts +1 -0
  153. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  154. package/lib/internal/template/internal/generated/custom-css-properties/index.js +86 -85
  155. package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
  156. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts +1 -1
  157. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts.map +1 -1
  158. package/lib/internal/template/internal/plugins/controllers/drawers.js.map +1 -1
  159. package/lib/internal/template/internal/plugins/widget/index.d.ts +6 -1
  160. package/lib/internal/template/internal/plugins/widget/index.d.ts.map +1 -1
  161. package/lib/internal/template/internal/plugins/widget/index.js +11 -1
  162. package/lib/internal/template/internal/plugins/widget/index.js.map +1 -1
  163. package/lib/internal/template/internal/plugins/widget/interfaces.d.ts +2 -1
  164. package/lib/internal/template/internal/plugins/widget/interfaces.d.ts.map +1 -1
  165. package/lib/internal/template/internal/plugins/widget/interfaces.js.map +1 -1
  166. package/lib/internal/template/internal/plugins/widget.d.ts +1 -1
  167. package/lib/internal/template/internal/plugins/widget.d.ts.map +1 -1
  168. package/lib/internal/template/internal/plugins/widget.js +1 -1
  169. package/lib/internal/template/internal/plugins/widget.js.map +1 -1
  170. package/lib/internal/template/link/styles.css.js +20 -20
  171. package/lib/internal/template/link/styles.scoped.css +103 -103
  172. package/lib/internal/template/link/styles.selectors.js +20 -20
  173. package/lib/internal/template/radio-group/styles.css.js +10 -10
  174. package/lib/internal/template/radio-group/styles.scoped.css +22 -22
  175. package/lib/internal/template/radio-group/styles.selectors.js +10 -10
  176. package/lib/internal/template/slider/styles.css.js +26 -26
  177. package/lib/internal/template/slider/styles.scoped.css +86 -86
  178. package/lib/internal/template/slider/styles.selectors.js +26 -26
  179. package/lib/internal/template/spinner/styles.css.js +13 -13
  180. package/lib/internal/template/spinner/styles.scoped.css +39 -39
  181. package/lib/internal/template/spinner/styles.selectors.js +13 -13
  182. package/lib/internal/template/tag-editor/styles.css.js +3 -3
  183. package/lib/internal/template/tag-editor/styles.scoped.css +13 -13
  184. package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
  185. package/lib/internal/template/text-content/styles.css.js +1 -1
  186. package/lib/internal/template/text-content/styles.scoped.css +66 -66
  187. package/lib/internal/template/text-content/styles.selectors.js +1 -1
  188. package/lib/internal/template/toggle/styles.css.js +10 -10
  189. package/lib/internal/template/toggle/styles.scoped.css +23 -23
  190. package/lib/internal/template/toggle/styles.selectors.js +10 -10
  191. package/lib/internal/template/top-navigation/interfaces.d.ts +1 -1
  192. package/lib/internal/template/top-navigation/interfaces.js.map +1 -1
  193. package/lib/internal/template/top-navigation/internal.d.ts.map +1 -1
  194. package/lib/internal/template/top-navigation/internal.js +0 -9
  195. package/lib/internal/template/top-navigation/internal.js.map +1 -1
  196. package/lib/internal/template/top-navigation/parts/utility.d.ts.map +1 -1
  197. package/lib/internal/template/top-navigation/parts/utility.js +1 -15
  198. package/lib/internal/template/top-navigation/parts/utility.js.map +1 -1
  199. package/package.json +1 -1
@@ -2,27 +2,27 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "content": "awsui_content_vjswe_tcmur_153",
6
- "button": "awsui_button_vjswe_tcmur_157",
7
- "variant-normal": "awsui_variant-normal_vjswe_tcmur_206",
8
- "disabled": "awsui_disabled_vjswe_tcmur_227",
9
- "variant-primary": "awsui_variant-primary_vjswe_tcmur_235",
10
- "variant-link": "awsui_variant-link_vjswe_tcmur_264",
11
- "variant-icon": "awsui_variant-icon_vjswe_tcmur_293",
12
- "variant-inline-icon": "awsui_variant-inline-icon_vjswe_tcmur_322",
13
- "variant-inline-icon-pointer-target": "awsui_variant-inline-icon-pointer-target_vjswe_tcmur_351",
14
- "variant-inline-link": "awsui_variant-inline-link_vjswe_tcmur_380",
15
- "variant-modal-dismiss": "awsui_variant-modal-dismiss_vjswe_tcmur_413",
16
- "variant-flashbar-icon": "awsui_variant-flashbar-icon_vjswe_tcmur_442",
17
- "variant-breadcrumb-group": "awsui_variant-breadcrumb-group_vjswe_tcmur_471",
18
- "variant-menu-trigger": "awsui_variant-menu-trigger_vjswe_tcmur_505",
19
- "button-no-text": "awsui_button-no-text_vjswe_tcmur_601",
20
- "button-no-wrap": "awsui_button-no-wrap_vjswe_tcmur_605",
21
- "full-width": "awsui_full-width_vjswe_tcmur_608",
22
- "icon-left": "awsui_icon-left_vjswe_tcmur_630",
23
- "icon-right": "awsui_icon-right_vjswe_tcmur_635",
24
- "icon": "awsui_icon_vjswe_tcmur_630",
25
- "link": "awsui_link_vjswe_tcmur_654",
26
- "disabled-with-reason": "awsui_disabled-with-reason_vjswe_tcmur_654"
5
+ "content": "awsui_content_vjswe_15jcb_153",
6
+ "button": "awsui_button_vjswe_15jcb_157",
7
+ "variant-normal": "awsui_variant-normal_vjswe_15jcb_206",
8
+ "disabled": "awsui_disabled_vjswe_15jcb_227",
9
+ "variant-primary": "awsui_variant-primary_vjswe_15jcb_235",
10
+ "variant-link": "awsui_variant-link_vjswe_15jcb_264",
11
+ "variant-icon": "awsui_variant-icon_vjswe_15jcb_293",
12
+ "variant-inline-icon": "awsui_variant-inline-icon_vjswe_15jcb_322",
13
+ "variant-inline-icon-pointer-target": "awsui_variant-inline-icon-pointer-target_vjswe_15jcb_351",
14
+ "variant-inline-link": "awsui_variant-inline-link_vjswe_15jcb_380",
15
+ "variant-modal-dismiss": "awsui_variant-modal-dismiss_vjswe_15jcb_413",
16
+ "variant-flashbar-icon": "awsui_variant-flashbar-icon_vjswe_15jcb_442",
17
+ "variant-breadcrumb-group": "awsui_variant-breadcrumb-group_vjswe_15jcb_471",
18
+ "variant-menu-trigger": "awsui_variant-menu-trigger_vjswe_15jcb_505",
19
+ "button-no-text": "awsui_button-no-text_vjswe_15jcb_601",
20
+ "button-no-wrap": "awsui_button-no-wrap_vjswe_15jcb_605",
21
+ "full-width": "awsui_full-width_vjswe_15jcb_608",
22
+ "icon-left": "awsui_icon-left_vjswe_15jcb_630",
23
+ "icon-right": "awsui_icon-right_vjswe_15jcb_635",
24
+ "icon": "awsui_icon_vjswe_15jcb_630",
25
+ "link": "awsui_link_vjswe_15jcb_654",
26
+ "disabled-with-reason": "awsui_disabled-with-reason_vjswe_15jcb_654"
27
27
  };
28
28
 
@@ -28,6 +28,7 @@ export interface ButtonDropdownProps extends BaseComponentProps, ExpandToViewpor
28
28
  * ### action
29
29
  *
30
30
  * - `href` (string) - (Optional) Defines the target URL of the menu item, turning it into a link.
31
+ * - `download` (boolean | string) - (Optional) Indicates that the link should be downloaded when clicked. Only works when `href` is also provided. If set to `true`, the browser will use the filename from the URL. If set to a string, that string will be used as the suggested filename.
31
32
  * - `external` (boolean) - Marks a menu item as external by adding an icon after the menu item text. The link will open in a new tab when clicked. Note that this only works when `href` is also provided.
32
33
  * - `externalIconAriaLabel` (string) - Adds an `aria-label` to the external icon.
33
34
  * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).
@@ -179,6 +180,7 @@ export declare namespace ButtonDropdownProps {
179
180
  disabledReason?: string;
180
181
  description?: string;
181
182
  href?: string;
183
+ download?: boolean | string;
182
184
  external?: boolean;
183
185
  externalIconAriaLabel?: string;
184
186
  iconAlt?: string;
@@ -186,7 +188,7 @@ export declare namespace ButtonDropdownProps {
186
188
  iconUrl?: string;
187
189
  iconSvg?: React.ReactNode;
188
190
  }
189
- interface CheckboxItem extends Omit<ButtonDropdownProps.Item, 'href' | 'external' | 'externalIconAriaLabel' | 'itemType'> {
191
+ interface CheckboxItem extends Omit<ButtonDropdownProps.Item, 'href' | 'download' | 'external' | 'externalIconAriaLabel' | 'itemType'> {
190
192
  itemType: 'checkbox';
191
193
  checked: boolean;
192
194
  }
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/button-dropdown/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kCAAkC,EAAE,MAAM,kEAAkE,CAAC;AAEtH,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAE5E,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,EAAE,gBAAgB;IAC/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,KAAK,EAAE,aAAa,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;IACtD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC;IACtC;;OAEG;IACH,gBAAg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AAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;CACvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/button-dropdown/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { GeneratedAnalyticsMetadataFragment } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { ButtonProps } from '../button/interfaces';\nimport { IconProps } from '../icon/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { ExpandToViewport } from '../internal/components/dropdown/interfaces';\nimport { BaseNavigationDetail, CancelableEventHandler } from '../internal/events';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../internal/utils/with-native-attributes';\n\nexport interface ButtonDropdownProps extends BaseComponentProps, ExpandToViewport {\n /**\n * Array of objects with a number of supported types.\n *\n * The following properties are supported across all types:\n *\n * - `type` (string) - The type of the item. Can be `action`, `group`, `checkbox`. Defaults to `action` if `items` undefined and `group` otherwise.\n * - `id` (string) - allows to identify the item that the user clicked on. Mandatory for individual items, optional for categories.\n * - `text` (string) - description shown in the menu for this item. Mandatory for individual items, optional for categories.\n * - `lang` (string) - (Optional) The language of the item, provided as a BCP 47 language tag.\n * - `disabled` (boolean) - whether the item is disabled. Disabled items are not clickable, but they can be highlighted with the keyboard to make them accessible.\n * - `disabledReason` (string) - (Optional) Displays text near the `text` property when item is disabled. Use to provide additional context.\n * - `description` (string) - additional data that will be passed to a `data-description` attribute.\n * - `ariaLabel` (string) - (Optional) - ARIA label of the item element.\n *\n * ### action\n *\n * - `href` (string) - (Optional) Defines the target URL of the menu item, turning it into a link.\n * - `external` (boolean) - Marks a menu item as external by adding an icon after the menu item text. The link will open in a new tab when clicked. Note that this only works when `href` is also provided.\n * - `externalIconAriaLabel` (string) - Adds an `aria-label` to the external icon.\n * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).\n * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`.\n * - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n *\n * ### checkbox\n *\n * When `type` is set to \"checkbox\", the values set to `href`, `external` and `externalIconAriaLabel` will be ignored.\n *\n * - `checked` (boolean) - Controls the state of the checkbox item.\n * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).\n * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`.\n * - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n *\n * ### group\n *\n * - `items` (ReadonlyArray<Item>) - an array of item objects. Items will be rendered as nested menu items but only for the first nesting level, multi-nesting is not supported.\n * An item which belongs to nested group has the following properties: `id`, `text`, `disabled`, and `description`.\n *\n */\n items: ReadonlyArray<ButtonDropdownProps.ItemOrGroup>;\n /**\n * Determines whether the button dropdown is disabled. Users cannot interact with the control if it's disabled.\n */\n disabled?: boolean;\n /**\n * Provides a reason why the button dropdown is disabled (only when `disabled` is `true`).\n * If provided, the disabled button becomes focusable.\n */\n disabledReason?: string;\n /**\n * Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.\n * It prevents clicks.\n */\n loading?: boolean;\n /**\n * Specifies the text that screen reader announces when the button dropdown is in a loading state.\n */\n loadingText?: string;\n /** Determines the general styling of the button dropdown.\n * * `primary` for primary buttons\n * * `normal` for secondary buttons\n * * `icon` for icon buttons\n * * `inline-icon` for icon buttons with no outer padding\n */\n variant?: ButtonDropdownProps.Variant;\n /**\n * Controls expandability of the item groups.\n */\n expandableGroups?: boolean;\n /**\n * Adds `aria-label` to the button dropdown trigger.\n * Use this to provide an accessible name for buttons that don't have visible text.\n */\n ariaLabel?: string;\n /**\n * Text displayed in the button dropdown trigger.\n * @displayname text\n */\n children?: React.ReactNode;\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?: CancelableEventHandler<ButtonDropdownProps.ItemClickDetails>;\n /**\n * Called when the user clicks on an item with the left mouse button without pressing\n * modifier keys (that is, CTRL, ALT, SHIFT, META), and the item has an `href` set.\n */\n onItemFollow?: CancelableEventHandler<ButtonDropdownProps.ItemClickDetails>;\n /**\n * A standalone action that is shown prior to the dropdown trigger.\n * Use it with \"primary\" and \"normal\" variant only.\n *\n * Main action properties:\n * * `text` (string) - Specifies the text shown in the main action.\n * * `external` (boolean) - Marks the main action as external by adding an icon after the text. The link will open in a new tab when clicked. Note that this only works when `href` is also provided.\n * * `externalIconAriaLabel` (string) - Adds an ARIA label to the external icon.\n *\n * The main action also supports the following properties of the [button](/components/button/?tabId=api) component:\n * `ariaLabel`, `disabled`, `loading`, `loadingText`, `href`, `target`, `rel`, `download`, `iconAlt`, `iconName`, `iconUrl`, `iconSvg`, `onClick`, `onFollow`.\n */\n mainAction?: ButtonDropdownProps.MainAction;\n\n /**\n * Sets the button width to be 100% of the parent container width. Button content is centered.\n */\n fullWidth?: boolean;\n\n /**\n * Attributes to add to the native `button` element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeTriggerAttributes?: NativeAttributes<React.ButtonHTMLAttributes<HTMLButtonElement>>;\n\n /**\n * Attributes to add to the native element of the `mainAction`.\n *\n * Specify either `button` for a standard main action, or `anchor` if `html` is set.\n *\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeMainActionAttributes?: {\n button?: NativeAttributes<React.ButtonHTMLAttributes<HTMLButtonElement>>;\n anchor?: NativeAttributes<React.AnchorHTMLAttributes<HTMLAnchorElement>>;\n };\n}\n\nexport namespace ButtonDropdownProps {\n export type Variant = 'normal' | 'primary' | 'icon' | 'inline-icon';\n export type ItemType = 'action' | 'group';\n\n export interface MainAction {\n text?: string;\n ariaLabel?: string;\n onClick?: CancelableEventHandler<ButtonProps.ClickDetail>;\n onFollow?: CancelableEventHandler<ButtonProps.FollowDetail>;\n disabled?: boolean;\n disabledReason?: string;\n loading?: boolean;\n loadingText?: string;\n href?: string;\n target?: string;\n rel?: string;\n download?: boolean | string;\n external?: boolean;\n externalIconAriaLabel?: string;\n iconAlt?: string;\n iconName?: IconProps.Name;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n }\n\n export interface Item {\n itemType?: ItemType;\n id: string;\n text: string;\n ariaLabel?: string;\n lang?: string;\n disabled?: boolean;\n disabledReason?: string;\n description?: string;\n href?: string;\n external?: boolean;\n externalIconAriaLabel?: string;\n iconAlt?: string;\n iconName?: IconProps.Name;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n }\n\n export interface CheckboxItem\n extends Omit<ButtonDropdownProps.Item, 'href' | 'external' | 'externalIconAriaLabel' | 'itemType'> {\n itemType: 'checkbox';\n checked: boolean;\n }\n\n export interface ItemGroup extends Omit<Item, 'id' | 'text' | 'itemType'> {\n itemType?: 'group';\n id?: string;\n text?: string;\n items: Items;\n }\n\n export type ItemOrGroup = Item | CheckboxItem | ItemGroup;\n\n export type Items = ReadonlyArray<ItemOrGroup>;\n\n export interface ItemClickDetails extends BaseNavigationDetail {\n id: string;\n checked?: boolean;\n }\n\n export interface Ref {\n /**\n * Focuses the underlying native button. If a main action is defined this will focus that button.\n */\n focus(options?: FocusOptions): void;\n /**\n * Focuses the underlying native button for the dropdown.\n */\n focusDropdownTrigger(options?: FocusOptions): void;\n }\n}\n\nexport interface ButtonDropdownSettings {\n // this means whether action is required to make group expand\n hasExpandableGroups: boolean;\n // on smaller screens expandable groups are integrated into parent dropdown\n // this changes keyboard navigation, highlight and activation behavior for parent dropdown\n isInRestrictedView?: boolean;\n}\n\nexport interface HighlightProps {\n targetItem: ButtonDropdownProps.ItemOrGroup | null;\n isHighlighted: (item: ButtonDropdownProps.ItemOrGroup) => boolean;\n isKeyboardHighlight: (item: ButtonDropdownProps.ItemOrGroup) => boolean;\n isExpanded: (group: ButtonDropdownProps.ItemGroup) => boolean;\n highlightItem: (item: ButtonDropdownProps.ItemOrGroup) => void;\n}\n\nexport type GroupToggle = (item: ButtonDropdownProps.ItemGroup, event: React.SyntheticEvent) => void;\nexport type ItemActivate = (\n item: ButtonDropdownProps.Item | ButtonDropdownProps.CheckboxItem,\n event: React.MouseEvent | React.KeyboardEvent\n) => void;\n\nexport interface CategoryProps extends HighlightProps {\n item: ButtonDropdownProps.ItemGroup;\n onGroupToggle: GroupToggle;\n onItemActivate: ItemActivate;\n disabled: boolean;\n lastInDropdown: boolean;\n expandToViewport?: boolean;\n variant?: ItemListProps['variant'];\n position?: string;\n}\n\nexport interface ItemListProps extends HighlightProps {\n items: ButtonDropdownProps.Items;\n onGroupToggle: GroupToggle;\n onItemActivate: ItemActivate;\n categoryDisabled?: boolean;\n hasExpandableGroups?: boolean;\n hasCategoryHeader?: boolean;\n lastInDropdown: boolean;\n expandToViewport?: boolean;\n variant?: InternalButtonDropdownProps['variant'];\n position?: string;\n analyticsMetadataTransformer?: InternalButtonDropdownProps['analyticsMetadataTransformer'];\n linkStyle?: boolean;\n}\n\nexport interface LinkItem extends ButtonDropdownProps.Item {\n href: string;\n}\n\nexport interface ItemProps {\n item: ButtonDropdownProps.Item | ButtonDropdownProps.CheckboxItem | LinkItem;\n disabled: boolean;\n highlighted: boolean;\n onItemActivate: ItemActivate;\n highlightItem: (item: ButtonDropdownProps.ItemOrGroup) => void;\n showDivider: boolean;\n hasCategoryHeader: boolean;\n isKeyboardHighlighted?: boolean;\n variant?: ItemListProps['variant'];\n position?: string;\n analyticsMetadataTransformer?: InternalButtonDropdownProps['analyticsMetadataTransformer'];\n linkStyle?: boolean;\n}\n\nexport interface InternalItem extends ButtonDropdownProps.Item {\n badge?: boolean;\n /**\n * Used in breadcrumb-group: indicates that this breadcrumb item is the current page\n */\n isCurrentBreadcrumb?: boolean;\n}\n\nexport interface InternalCheckboxItem extends ButtonDropdownProps.CheckboxItem {\n badge?: boolean;\n}\n\ninterface InternalItemGroup extends Omit<ButtonDropdownProps.ItemGroup, 'items'> {\n items: InternalItems;\n}\n\ntype InternalItems = ReadonlyArray<InternalItemOrGroup>;\n\nexport type InternalItemOrGroup = InternalItem | InternalCheckboxItem | InternalItemGroup;\n\nexport interface InternalButtonDropdownProps\n extends Omit<ButtonDropdownProps, 'variant' | 'items'>,\n InternalBaseComponentProps {\n customTriggerBuilder?: (props: CustomTriggerProps) => React.ReactNode;\n variant?: ButtonDropdownProps['variant'] | 'navigation';\n items: ReadonlyArray<InternalItemOrGroup>;\n\n /**\n * Optional text that is displayed as the title at the top of the dropdown.\n */\n title?: string;\n\n /**\n * Optional text that is displayed underneath the title at the top of the dropdown.\n */\n description?: string;\n\n /**\n * Only show main action button as a regular, non-split button.\n * That is needed so that button dropdown test utils wrapper can still be used.\n */\n showMainActionOnly?: boolean;\n\n /**\n * Determines that the dropdown should preferably be aligned to the center of the trigger\n * instead of dropping left or right.\n */\n preferCenter?: boolean;\n\n /**\n * Determines whether simple items should be displayed with the link styles.\n * Used in Breadcrumb group component for collapsed breadcrumbs\n */\n linkStyle?: boolean;\n\n /**\n * Determines whether the dropdown should take up the full available width.\n * Used in Breadcrumb group component for collapsed breadcrumbs\n */\n fullWidth?: boolean;\n\n analyticsMetadataTransformer?: (input: GeneratedAnalyticsMetadataFragment) => GeneratedAnalyticsMetadataFragment;\n\n /**\n * Position of the button dropdown inside a list of elements, for example a button group\n */\n position?: string;\n}\n\nexport interface CustomTriggerProps {\n triggerRef: React.Ref<HTMLElement>;\n testUtilsClass: string;\n ariaLabel: string | undefined;\n disabled: boolean;\n disabledReason?: string;\n isOpen: boolean;\n onClick: () => void;\n ariaExpanded: boolean;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/button-dropdown/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { GeneratedAnalyticsMetadataFragment } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { ButtonProps } from '../button/interfaces';\nimport { IconProps } from '../icon/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { ExpandToViewport } from '../internal/components/dropdown/interfaces';\nimport { BaseNavigationDetail, CancelableEventHandler } from '../internal/events';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../internal/utils/with-native-attributes';\n\nexport interface ButtonDropdownProps extends BaseComponentProps, ExpandToViewport {\n /**\n * Array of objects with a number of supported types.\n *\n * The following properties are supported across all types:\n *\n * - `type` (string) - The type of the item. Can be `action`, `group`, `checkbox`. Defaults to `action` if `items` undefined and `group` otherwise.\n * - `id` (string) - allows to identify the item that the user clicked on. Mandatory for individual items, optional for categories.\n * - `text` (string) - description shown in the menu for this item. Mandatory for individual items, optional for categories.\n * - `lang` (string) - (Optional) The language of the item, provided as a BCP 47 language tag.\n * - `disabled` (boolean) - whether the item is disabled. Disabled items are not clickable, but they can be highlighted with the keyboard to make them accessible.\n * - `disabledReason` (string) - (Optional) Displays text near the `text` property when item is disabled. Use to provide additional context.\n * - `description` (string) - additional data that will be passed to a `data-description` attribute.\n * - `ariaLabel` (string) - (Optional) - ARIA label of the item element.\n *\n * ### action\n *\n * - `href` (string) - (Optional) Defines the target URL of the menu item, turning it into a link.\n * - `download` (boolean | string) - (Optional) Indicates that the link should be downloaded when clicked. Only works when `href` is also provided. If set to `true`, the browser will use the filename from the URL. If set to a string, that string will be used as the suggested filename.\n * - `external` (boolean) - Marks a menu item as external by adding an icon after the menu item text. The link will open in a new tab when clicked. Note that this only works when `href` is also provided.\n * - `externalIconAriaLabel` (string) - Adds an `aria-label` to the external icon.\n * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).\n * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`.\n * - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n *\n * ### checkbox\n *\n * When `type` is set to \"checkbox\", the values set to `href`, `external` and `externalIconAriaLabel` will be ignored.\n *\n * - `checked` (boolean) - Controls the state of the checkbox item.\n * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).\n * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`.\n * - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n *\n * ### group\n *\n * - `items` (ReadonlyArray<Item>) - an array of item objects. Items will be rendered as nested menu items but only for the first nesting level, multi-nesting is not supported.\n * An item which belongs to nested group has the following properties: `id`, `text`, `disabled`, and `description`.\n *\n */\n items: ReadonlyArray<ButtonDropdownProps.ItemOrGroup>;\n /**\n * Determines whether the button dropdown is disabled. Users cannot interact with the control if it's disabled.\n */\n disabled?: boolean;\n /**\n * Provides a reason why the button dropdown is disabled (only when `disabled` is `true`).\n * If provided, the disabled button becomes focusable.\n */\n disabledReason?: string;\n /**\n * Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.\n * It prevents clicks.\n */\n loading?: boolean;\n /**\n * Specifies the text that screen reader announces when the button dropdown is in a loading state.\n */\n loadingText?: string;\n /** Determines the general styling of the button dropdown.\n * * `primary` for primary buttons\n * * `normal` for secondary buttons\n * * `icon` for icon buttons\n * * `inline-icon` for icon buttons with no outer padding\n */\n variant?: ButtonDropdownProps.Variant;\n /**\n * Controls expandability of the item groups.\n */\n expandableGroups?: boolean;\n /**\n * Adds `aria-label` to the button dropdown trigger.\n * Use this to provide an accessible name for buttons that don't have visible text.\n */\n ariaLabel?: string;\n /**\n * Text displayed in the button dropdown trigger.\n * @displayname text\n */\n children?: React.ReactNode;\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?: CancelableEventHandler<ButtonDropdownProps.ItemClickDetails>;\n /**\n * Called when the user clicks on an item with the left mouse button without pressing\n * modifier keys (that is, CTRL, ALT, SHIFT, META), and the item has an `href` set.\n */\n onItemFollow?: CancelableEventHandler<ButtonDropdownProps.ItemClickDetails>;\n /**\n * A standalone action that is shown prior to the dropdown trigger.\n * Use it with \"primary\" and \"normal\" variant only.\n *\n * Main action properties:\n * * `text` (string) - Specifies the text shown in the main action.\n * * `external` (boolean) - Marks the main action as external by adding an icon after the text. The link will open in a new tab when clicked. Note that this only works when `href` is also provided.\n * * `externalIconAriaLabel` (string) - Adds an ARIA label to the external icon.\n *\n * The main action also supports the following properties of the [button](/components/button/?tabId=api) component:\n * `ariaLabel`, `disabled`, `loading`, `loadingText`, `href`, `target`, `rel`, `download`, `iconAlt`, `iconName`, `iconUrl`, `iconSvg`, `onClick`, `onFollow`.\n */\n mainAction?: ButtonDropdownProps.MainAction;\n\n /**\n * Sets the button width to be 100% of the parent container width. Button content is centered.\n */\n fullWidth?: boolean;\n\n /**\n * Attributes to add to the native `button` element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeTriggerAttributes?: NativeAttributes<React.ButtonHTMLAttributes<HTMLButtonElement>>;\n\n /**\n * Attributes to add to the native element of the `mainAction`.\n *\n * Specify either `button` for a standard main action, or `anchor` if `html` is set.\n *\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeMainActionAttributes?: {\n button?: NativeAttributes<React.ButtonHTMLAttributes<HTMLButtonElement>>;\n anchor?: NativeAttributes<React.AnchorHTMLAttributes<HTMLAnchorElement>>;\n };\n}\n\nexport namespace ButtonDropdownProps {\n export type Variant = 'normal' | 'primary' | 'icon' | 'inline-icon';\n export type ItemType = 'action' | 'group';\n\n export interface MainAction {\n text?: string;\n ariaLabel?: string;\n onClick?: CancelableEventHandler<ButtonProps.ClickDetail>;\n onFollow?: CancelableEventHandler<ButtonProps.FollowDetail>;\n disabled?: boolean;\n disabledReason?: string;\n loading?: boolean;\n loadingText?: string;\n href?: string;\n target?: string;\n rel?: string;\n download?: boolean | string;\n external?: boolean;\n externalIconAriaLabel?: string;\n iconAlt?: string;\n iconName?: IconProps.Name;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n }\n\n export interface Item {\n itemType?: ItemType;\n id: string;\n text: string;\n ariaLabel?: string;\n lang?: string;\n disabled?: boolean;\n disabledReason?: string;\n description?: string;\n href?: string;\n download?: boolean | string;\n external?: boolean;\n externalIconAriaLabel?: string;\n iconAlt?: string;\n iconName?: IconProps.Name;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n }\n\n export interface CheckboxItem\n extends Omit<ButtonDropdownProps.Item, 'href' | 'download' | 'external' | 'externalIconAriaLabel' | 'itemType'> {\n itemType: 'checkbox';\n checked: boolean;\n }\n\n export interface ItemGroup extends Omit<Item, 'id' | 'text' | 'itemType'> {\n itemType?: 'group';\n id?: string;\n text?: string;\n items: Items;\n }\n\n export type ItemOrGroup = Item | CheckboxItem | ItemGroup;\n\n export type Items = ReadonlyArray<ItemOrGroup>;\n\n export interface ItemClickDetails extends BaseNavigationDetail {\n id: string;\n checked?: boolean;\n }\n\n export interface Ref {\n /**\n * Focuses the underlying native button. If a main action is defined this will focus that button.\n */\n focus(options?: FocusOptions): void;\n /**\n * Focuses the underlying native button for the dropdown.\n */\n focusDropdownTrigger(options?: FocusOptions): void;\n }\n}\n\nexport interface ButtonDropdownSettings {\n // this means whether action is required to make group expand\n hasExpandableGroups: boolean;\n // on smaller screens expandable groups are integrated into parent dropdown\n // this changes keyboard navigation, highlight and activation behavior for parent dropdown\n isInRestrictedView?: boolean;\n}\n\nexport interface HighlightProps {\n targetItem: ButtonDropdownProps.ItemOrGroup | null;\n isHighlighted: (item: ButtonDropdownProps.ItemOrGroup) => boolean;\n isKeyboardHighlight: (item: ButtonDropdownProps.ItemOrGroup) => boolean;\n isExpanded: (group: ButtonDropdownProps.ItemGroup) => boolean;\n highlightItem: (item: ButtonDropdownProps.ItemOrGroup) => void;\n}\n\nexport type GroupToggle = (item: ButtonDropdownProps.ItemGroup, event: React.SyntheticEvent) => void;\nexport type ItemActivate = (\n item: ButtonDropdownProps.Item | ButtonDropdownProps.CheckboxItem,\n event: React.MouseEvent | React.KeyboardEvent\n) => void;\n\nexport interface CategoryProps extends HighlightProps {\n item: ButtonDropdownProps.ItemGroup;\n onGroupToggle: GroupToggle;\n onItemActivate: ItemActivate;\n disabled: boolean;\n lastInDropdown: boolean;\n expandToViewport?: boolean;\n variant?: ItemListProps['variant'];\n position?: string;\n}\n\nexport interface ItemListProps extends HighlightProps {\n items: ButtonDropdownProps.Items;\n onGroupToggle: GroupToggle;\n onItemActivate: ItemActivate;\n categoryDisabled?: boolean;\n hasExpandableGroups?: boolean;\n hasCategoryHeader?: boolean;\n lastInDropdown: boolean;\n expandToViewport?: boolean;\n variant?: InternalButtonDropdownProps['variant'];\n position?: string;\n analyticsMetadataTransformer?: InternalButtonDropdownProps['analyticsMetadataTransformer'];\n linkStyle?: boolean;\n}\n\nexport interface LinkItem extends ButtonDropdownProps.Item {\n href: string;\n}\n\nexport interface ItemProps {\n item: ButtonDropdownProps.Item | ButtonDropdownProps.CheckboxItem | LinkItem;\n disabled: boolean;\n highlighted: boolean;\n onItemActivate: ItemActivate;\n highlightItem: (item: ButtonDropdownProps.ItemOrGroup) => void;\n showDivider: boolean;\n hasCategoryHeader: boolean;\n isKeyboardHighlighted?: boolean;\n variant?: ItemListProps['variant'];\n position?: string;\n analyticsMetadataTransformer?: InternalButtonDropdownProps['analyticsMetadataTransformer'];\n linkStyle?: boolean;\n}\n\nexport interface InternalItem extends ButtonDropdownProps.Item {\n badge?: boolean;\n /**\n * Used in breadcrumb-group: indicates that this breadcrumb item is the current page\n */\n isCurrentBreadcrumb?: boolean;\n}\n\nexport interface InternalCheckboxItem extends ButtonDropdownProps.CheckboxItem {\n badge?: boolean;\n}\n\ninterface InternalItemGroup extends Omit<ButtonDropdownProps.ItemGroup, 'items'> {\n items: InternalItems;\n}\n\ntype InternalItems = ReadonlyArray<InternalItemOrGroup>;\n\nexport type InternalItemOrGroup = InternalItem | InternalCheckboxItem | InternalItemGroup;\n\nexport interface InternalButtonDropdownProps\n extends Omit<ButtonDropdownProps, 'variant' | 'items'>,\n InternalBaseComponentProps {\n customTriggerBuilder?: (props: CustomTriggerProps) => React.ReactNode;\n variant?: ButtonDropdownProps['variant'] | 'navigation';\n items: ReadonlyArray<InternalItemOrGroup>;\n\n /**\n * Optional text that is displayed as the title at the top of the dropdown.\n */\n title?: string;\n\n /**\n * Optional text that is displayed underneath the title at the top of the dropdown.\n */\n description?: string;\n\n /**\n * Only show main action button as a regular, non-split button.\n * That is needed so that button dropdown test utils wrapper can still be used.\n */\n showMainActionOnly?: boolean;\n\n /**\n * Determines that the dropdown should preferably be aligned to the center of the trigger\n * instead of dropping left or right.\n */\n preferCenter?: boolean;\n\n /**\n * Determines whether simple items should be displayed with the link styles.\n * Used in Breadcrumb group component for collapsed breadcrumbs\n */\n linkStyle?: boolean;\n\n /**\n * Determines whether the dropdown should take up the full available width.\n * Used in Breadcrumb group component for collapsed breadcrumbs\n */\n fullWidth?: boolean;\n\n analyticsMetadataTransformer?: (input: GeneratedAnalyticsMetadataFragment) => GeneratedAnalyticsMetadataFragment;\n\n /**\n * Position of the button dropdown inside a list of elements, for example a button group\n */\n position?: string;\n}\n\nexport interface CustomTriggerProps {\n triggerRef: React.Ref<HTMLElement>;\n testUtilsClass: string;\n ariaLabel: string | undefined;\n disabled: boolean;\n disabledReason?: string;\n isOpen: boolean;\n onClick: () => void;\n ariaExpanded: boolean;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/button-dropdown/item-element/index.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAsC,SAAS,EAAY,MAAM,eAAe,CAAC;AASxF,QAAA,MAAM,WAAW,uLAad,SAAS,gBAuDX,CAAC;AA0HF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/button-dropdown/item-element/index.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAsC,SAAS,EAAY,MAAM,eAAe,CAAC;AASxF,QAAA,MAAM,WAAW,uLAad,SAAS,gBAuDX,CAAC;AA2HF,eAAe,WAAW,CAAC"}
@@ -68,7 +68,7 @@ function MenuItem({ item, disabled, highlighted, linkStyle }) {
68
68
  // The current element will always have tabindex=0 which means that it can be tabbed to,
69
69
  // while all other items have tabindex=-1 so we can focus them when necessary.
70
70
  tabIndex: highlighted ? 0 : -1 }, (isCheckbox ? getMenuItemCheckboxProps({ disabled, checked: item.checked }) : getMenuItemProps({ disabled }))), (isDisabledWithReason ? targetProps : {}));
71
- const menuItem = isLinkItem(item) ? (React.createElement("a", Object.assign({}, menuItemProps, { href: !disabled ? item.href : undefined, target: getItemTarget(item), rel: item.external ? 'noopener noreferrer' : undefined }),
71
+ const menuItem = isLinkItem(item) ? (React.createElement("a", Object.assign({}, menuItemProps, { href: !disabled ? item.href : undefined, download: !disabled && item.download ? item.download : undefined, target: getItemTarget(item), rel: item.external ? 'noopener noreferrer' : undefined }),
72
72
  React.createElement(MenuItemContent, { item: item, disabled: disabled }))) : (React.createElement("span", Object.assign({}, menuItemProps),
73
73
  React.createElement(MenuItemContent, { item: item, disabled: disabled })));
74
74
  const { position } = useDropdownContext();
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/button-dropdown/item-element/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,kEAAkE,CAAC;AAE1E,OAAO,YAAmC,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,oBAAoB,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,WAAW,GAAG,CAAC,EACnB,QAAQ,GAAG,GAAG,EACd,IAAI,EACJ,QAAQ,EACR,cAAc,EACd,WA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eAAe,WAAW,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport {\n GeneratedAnalyticsMetadataFragment,\n getAnalyticsMetadataAttribute,\n} from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalIcon, { InternalIconProps } from '../../icon/internal';\nimport { useDropdownContext } from '../../internal/components/dropdown/context';\nimport useHiddenDescription from '../../internal/hooks/use-hidden-description';\nimport { useVisualRefresh } from '../../internal/hooks/use-visual-mode';\nimport { GeneratedAnalyticsMetadataButtonDropdownClick } from '../analytics-metadata/interfaces';\nimport { InternalCheckboxItem, InternalItem, ItemProps, LinkItem } from '../interfaces';\nimport Tooltip from '../tooltip';\nimport { getMenuItemCheckboxProps, getMenuItemProps } from '../utils/menu-item';\nimport { isCheckboxItem, isLinkItem } from '../utils/utils';\nimport { getItemTarget } from '../utils/utils';\n\nimport analyticsLabels from '../analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\nconst ItemElement = ({\n position = '1',\n item,\n disabled,\n onItemActivate,\n highlighted,\n highlightItem,\n showDivider,\n hasCategoryHeader,\n isKeyboardHighlighted = false,\n analyticsMetadataTransformer = (metadata: GeneratedAnalyticsMetadataFragment) => metadata,\n variant = 'normal',\n linkStyle,\n}: ItemProps) => {\n const isLink = isLinkItem(item);\n const isCheckbox = isCheckboxItem(item);\n const onClick = (event: React.MouseEvent) => {\n // Stop propagation to parent node and handle event exclusively in here. This ensures\n // that no group will interfere with the default behavior of links\n event.stopPropagation();\n if (!isLink) {\n event.preventDefault();\n }\n if (!disabled) {\n onItemActivate(item, event);\n }\n };\n\n const onHover = () => {\n highlightItem(item);\n };\n\n const isVisualRefresh = useVisualRefresh();\n\n return (\n <li\n className={clsx(styles['item-element'], styles[`variant-${variant}`], {\n [styles.highlighted]: highlighted,\n [styles.disabled]: disabled,\n [styles['has-category-header']]: hasCategoryHeader,\n [styles['has-checkmark']]: isCheckbox,\n [styles['show-divider']]: showDivider,\n [styles['is-focused']]: isKeyboardHighlighted,\n [styles['visual-refresh']]: isVisualRefresh,\n })}\n role=\"presentation\"\n data-testid={item.id}\n data-description={item.description}\n onClick={onClick}\n onMouseEnter={onHover}\n onTouchStart={onHover}\n {...getAnalyticsMetadataAttribute(\n disabled\n ? {}\n : (analyticsMetadataTransformer!({\n action: 'click',\n detail: {\n position,\n id: item.id,\n label: `.${analyticsLabels['menu-item']}`,\n href: (item as LinkItem).href || '',\n },\n }) as GeneratedAnalyticsMetadataButtonDropdownClick)\n )}\n >\n <MenuItem item={item} disabled={disabled} highlighted={highlighted} linkStyle={linkStyle} />\n </li>\n );\n};\n\ninterface MenuItemProps {\n item: InternalItem | InternalCheckboxItem;\n disabled: boolean;\n highlighted: boolean;\n linkStyle?: boolean;\n}\n\nfunction MenuItem({ item, disabled, highlighted, linkStyle }: MenuItemProps) {\n const menuItemRef = useRef<(HTMLSpanElement & HTMLAnchorElement) | null>(null);\n const isCheckbox = isCheckboxItem(item);\n const isCurrentBreadcrumb = !isCheckbox && item.isCurrentBreadcrumb;\n\n useEffect(() => {\n if (highlighted && menuItemRef.current) {\n menuItemRef.current.focus();\n }\n }, [highlighted]);\n\n const isDisabledWithReason = disabled && item.disabledReason;\n const { targetProps, descriptionEl } = useHiddenDescription(item.disabledReason);\n const menuItemProps: React.HTMLAttributes<HTMLSpanElement & HTMLAnchorElement> = {\n 'aria-label': item.ariaLabel,\n className: clsx(\n styles['menu-item'],\n analyticsLabels['menu-item'],\n linkStyle && styles['link-style'],\n linkStyle && highlighted && styles['link-style-highlighted'],\n isCurrentBreadcrumb && styles['current-breadcrumb']\n ),\n 'aria-current': isCurrentBreadcrumb,\n lang: item.lang,\n ref: menuItemRef,\n // We are using the roving tabindex technique to manage the focus state of the dropdown.\n // The current element will always have tabindex=0 which means that it can be tabbed to,\n // while all other items have tabindex=-1 so we can focus them when necessary.\n tabIndex: highlighted ? 0 : -1,\n ...(isCheckbox ? getMenuItemCheckboxProps({ disabled, checked: item.checked }) : getMenuItemProps({ disabled })),\n ...(isDisabledWithReason ? targetProps : {}),\n };\n\n const menuItem = isLinkItem(item) ? (\n <a\n {...menuItemProps}\n href={!disabled ? item.href : undefined}\n target={getItemTarget(item)}\n rel={item.external ? 'noopener noreferrer' : undefined}\n >\n <MenuItemContent item={item} disabled={disabled} />\n </a>\n ) : (\n <span {...menuItemProps}>\n <MenuItemContent item={item} disabled={disabled} />\n </span>\n );\n\n const { position } = useDropdownContext();\n const tooltipPosition = position === 'bottom-left' || position === 'top-left' ? 'left' : 'right';\n return isDisabledWithReason ? (\n <Tooltip content={item.disabledReason} position={tooltipPosition} className={styles['item-tooltip-wrapper']}>\n {menuItem}\n {descriptionEl}\n </Tooltip>\n ) : (\n menuItem\n );\n}\n\nconst MenuItemContent = ({ item, disabled }: { item: InternalItem | InternalCheckboxItem; disabled: boolean }) => {\n const hasIcon = !!(item.iconName || item.iconUrl || item.iconSvg);\n const hasExternal = isLinkItem(item) && item.external;\n const isCheckbox = isCheckboxItem(item);\n return (\n <>\n {isCheckbox && <MenuItemCheckmark checked={item.checked} disabled={disabled} />}\n {hasIcon && (\n <MenuItemIcon\n name={item.iconName}\n url={item.iconUrl}\n svg={item.iconSvg}\n alt={item.iconAlt}\n badge={item.badge}\n />\n )}\n {item.text}\n {hasExternal && <ExternalIcon disabled={disabled} ariaLabel={item.externalIconAriaLabel} />}\n </>\n );\n};\n\nconst MenuItemIcon = (props: InternalIconProps) => (\n <span className={styles.icon}>\n <InternalIcon {...props} />\n </span>\n);\n\n// Toggle has aria-hidden set because it's just used as a graphical element,\n// a11y attributes for the checkmark are communicated through the role and aria-checked state\n// of the menu element item.\nconst MenuItemCheckmark = ({ disabled, checked }: { disabled: boolean; checked: boolean }) => {\n const checkmark = <InternalIcon variant={disabled ? 'disabled' : 'normal'} name=\"check\" />;\n return (\n <span\n className={clsx(styles.icon, styles.checkmark, { [styles.disabled]: disabled })}\n aria-hidden=\"true\"\n style={{ visibility: checked ? 'visible' : 'hidden' }}\n >\n {checkmark}\n </span>\n );\n};\n\nconst ExternalIcon = ({ disabled, ariaLabel }: { disabled: boolean; ariaLabel?: string }) => {\n const icon = <InternalIcon variant={disabled ? 'disabled' : 'normal'} name=\"external\" />;\n return (\n <span className={styles['external-icon']} role={ariaLabel ? 'img' : undefined} aria-label={ariaLabel}>\n {icon}\n </span>\n );\n};\n\nexport default ItemElement;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/button-dropdown/item-element/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,kEAAkE,CAAC;AAE1E,OAAO,YAAmC,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,oBAAoB,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,WAAW,GAAG,CAAC,EACnB,QAAQ,GAAG,GAAG,EACd,IAAI,EACJ,QAAQ,EACR,cAAc,EACd,WAAW,EACX,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,qBAAqB,GAAG,KAAK,EAC7B,4B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AAI,CACA,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport {\n GeneratedAnalyticsMetadataFragment,\n getAnalyticsMetadataAttribute,\n} from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalIcon, { InternalIconProps } from '../../icon/internal';\nimport { useDropdownContext } from '../../internal/components/dropdown/context';\nimport useHiddenDescription from '../../internal/hooks/use-hidden-description';\nimport { useVisualRefresh } from '../../internal/hooks/use-visual-mode';\nimport { GeneratedAnalyticsMetadataButtonDropdownClick } from '../analytics-metadata/interfaces';\nimport { InternalCheckboxItem, InternalItem, ItemProps, LinkItem } from '../interfaces';\nimport Tooltip from '../tooltip';\nimport { getMenuItemCheckboxProps, getMenuItemProps } from '../utils/menu-item';\nimport { isCheckboxItem, isLinkItem } from '../utils/utils';\nimport { getItemTarget } from '../utils/utils';\n\nimport analyticsLabels from '../analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\nconst ItemElement = ({\n position = '1',\n item,\n disabled,\n onItemActivate,\n highlighted,\n highlightItem,\n showDivider,\n hasCategoryHeader,\n isKeyboardHighlighted = false,\n analyticsMetadataTransformer = (metadata: GeneratedAnalyticsMetadataFragment) => metadata,\n variant = 'normal',\n linkStyle,\n}: ItemProps) => {\n const isLink = isLinkItem(item);\n const isCheckbox = isCheckboxItem(item);\n const onClick = (event: React.MouseEvent) => {\n // Stop propagation to parent node and handle event exclusively in here. This ensures\n // that no group will interfere with the default behavior of links\n event.stopPropagation();\n if (!isLink) {\n event.preventDefault();\n }\n if (!disabled) {\n onItemActivate(item, event);\n }\n };\n\n const onHover = () => {\n highlightItem(item);\n };\n\n const isVisualRefresh = useVisualRefresh();\n\n return (\n <li\n className={clsx(styles['item-element'], styles[`variant-${variant}`], {\n [styles.highlighted]: highlighted,\n [styles.disabled]: disabled,\n [styles['has-category-header']]: hasCategoryHeader,\n [styles['has-checkmark']]: isCheckbox,\n [styles['show-divider']]: showDivider,\n [styles['is-focused']]: isKeyboardHighlighted,\n [styles['visual-refresh']]: isVisualRefresh,\n })}\n role=\"presentation\"\n data-testid={item.id}\n data-description={item.description}\n onClick={onClick}\n onMouseEnter={onHover}\n onTouchStart={onHover}\n {...getAnalyticsMetadataAttribute(\n disabled\n ? {}\n : (analyticsMetadataTransformer!({\n action: 'click',\n detail: {\n position,\n id: item.id,\n label: `.${analyticsLabels['menu-item']}`,\n href: (item as LinkItem).href || '',\n },\n }) as GeneratedAnalyticsMetadataButtonDropdownClick)\n )}\n >\n <MenuItem item={item} disabled={disabled} highlighted={highlighted} linkStyle={linkStyle} />\n </li>\n );\n};\n\ninterface MenuItemProps {\n item: InternalItem | InternalCheckboxItem;\n disabled: boolean;\n highlighted: boolean;\n linkStyle?: boolean;\n}\n\nfunction MenuItem({ item, disabled, highlighted, linkStyle }: MenuItemProps) {\n const menuItemRef = useRef<(HTMLSpanElement & HTMLAnchorElement) | null>(null);\n const isCheckbox = isCheckboxItem(item);\n const isCurrentBreadcrumb = !isCheckbox && item.isCurrentBreadcrumb;\n\n useEffect(() => {\n if (highlighted && menuItemRef.current) {\n menuItemRef.current.focus();\n }\n }, [highlighted]);\n\n const isDisabledWithReason = disabled && item.disabledReason;\n const { targetProps, descriptionEl } = useHiddenDescription(item.disabledReason);\n const menuItemProps: React.HTMLAttributes<HTMLSpanElement & HTMLAnchorElement> = {\n 'aria-label': item.ariaLabel,\n className: clsx(\n styles['menu-item'],\n analyticsLabels['menu-item'],\n linkStyle && styles['link-style'],\n linkStyle && highlighted && styles['link-style-highlighted'],\n isCurrentBreadcrumb && styles['current-breadcrumb']\n ),\n 'aria-current': isCurrentBreadcrumb,\n lang: item.lang,\n ref: menuItemRef,\n // We are using the roving tabindex technique to manage the focus state of the dropdown.\n // The current element will always have tabindex=0 which means that it can be tabbed to,\n // while all other items have tabindex=-1 so we can focus them when necessary.\n tabIndex: highlighted ? 0 : -1,\n ...(isCheckbox ? getMenuItemCheckboxProps({ disabled, checked: item.checked }) : getMenuItemProps({ disabled })),\n ...(isDisabledWithReason ? targetProps : {}),\n };\n\n const menuItem = isLinkItem(item) ? (\n <a\n {...menuItemProps}\n href={!disabled ? item.href : undefined}\n download={!disabled && item.download ? item.download : undefined}\n target={getItemTarget(item)}\n rel={item.external ? 'noopener noreferrer' : undefined}\n >\n <MenuItemContent item={item} disabled={disabled} />\n </a>\n ) : (\n <span {...menuItemProps}>\n <MenuItemContent item={item} disabled={disabled} />\n </span>\n );\n\n const { position } = useDropdownContext();\n const tooltipPosition = position === 'bottom-left' || position === 'top-left' ? 'left' : 'right';\n return isDisabledWithReason ? (\n <Tooltip content={item.disabledReason} position={tooltipPosition} className={styles['item-tooltip-wrapper']}>\n {menuItem}\n {descriptionEl}\n </Tooltip>\n ) : (\n menuItem\n );\n}\n\nconst MenuItemContent = ({ item, disabled }: { item: InternalItem | InternalCheckboxItem; disabled: boolean }) => {\n const hasIcon = !!(item.iconName || item.iconUrl || item.iconSvg);\n const hasExternal = isLinkItem(item) && item.external;\n const isCheckbox = isCheckboxItem(item);\n return (\n <>\n {isCheckbox && <MenuItemCheckmark checked={item.checked} disabled={disabled} />}\n {hasIcon && (\n <MenuItemIcon\n name={item.iconName}\n url={item.iconUrl}\n svg={item.iconSvg}\n alt={item.iconAlt}\n badge={item.badge}\n />\n )}\n {item.text}\n {hasExternal && <ExternalIcon disabled={disabled} ariaLabel={item.externalIconAriaLabel} />}\n </>\n );\n};\n\nconst MenuItemIcon = (props: InternalIconProps) => (\n <span className={styles.icon}>\n <InternalIcon {...props} />\n </span>\n);\n\n// Toggle has aria-hidden set because it's just used as a graphical element,\n// a11y attributes for the checkmark are communicated through the role and aria-checked state\n// of the menu element item.\nconst MenuItemCheckmark = ({ disabled, checked }: { disabled: boolean; checked: boolean }) => {\n const checkmark = <InternalIcon variant={disabled ? 'disabled' : 'normal'} name=\"check\" />;\n return (\n <span\n className={clsx(styles.icon, styles.checkmark, { [styles.disabled]: disabled })}\n aria-hidden=\"true\"\n style={{ visibility: checked ? 'visible' : 'hidden' }}\n >\n {checkmark}\n </span>\n );\n};\n\nconst ExternalIcon = ({ disabled, ariaLabel }: { disabled: boolean; ariaLabel?: string }) => {\n const icon = <InternalIcon variant={disabled ? 'disabled' : 'normal'} name=\"external\" />;\n return (\n <span className={styles['external-icon']} role={ariaLabel ? 'img' : undefined} aria-label={ariaLabel}>\n {icon}\n </span>\n );\n};\n\nexport default ItemElement;\n"]}
@@ -1,21 +1,21 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "item-element": "awsui_item-element_93a1u_1sc8s_145",
5
- "disabled": "awsui_disabled_93a1u_1sc8s_157",
6
- "show-divider": "awsui_show-divider_93a1u_1sc8s_164",
7
- "highlighted": "awsui_highlighted_93a1u_1sc8s_167",
8
- "is-focused": "awsui_is-focused_93a1u_1sc8s_182",
9
- "visual-refresh": "awsui_visual-refresh_93a1u_1sc8s_185",
10
- "menu-item": "awsui_menu-item_93a1u_1sc8s_189",
11
- "link-style": "awsui_link-style_93a1u_1sc8s_201",
12
- "current-breadcrumb": "awsui_current-breadcrumb_93a1u_1sc8s_237",
13
- "link-style-highlighted": "awsui_link-style-highlighted_93a1u_1sc8s_245",
14
- "has-category-header": "awsui_has-category-header_93a1u_1sc8s_251",
15
- "item-tooltip-wrapper": "awsui_item-tooltip-wrapper_93a1u_1sc8s_251",
16
- "has-checkmark": "awsui_has-checkmark_93a1u_1sc8s_251",
17
- "icon": "awsui_icon_93a1u_1sc8s_255",
18
- "checkmark": "awsui_checkmark_93a1u_1sc8s_259",
19
- "external-icon": "awsui_external-icon_93a1u_1sc8s_266"
4
+ "item-element": "awsui_item-element_93a1u_1sjow_145",
5
+ "disabled": "awsui_disabled_93a1u_1sjow_157",
6
+ "show-divider": "awsui_show-divider_93a1u_1sjow_164",
7
+ "highlighted": "awsui_highlighted_93a1u_1sjow_167",
8
+ "is-focused": "awsui_is-focused_93a1u_1sjow_182",
9
+ "visual-refresh": "awsui_visual-refresh_93a1u_1sjow_185",
10
+ "menu-item": "awsui_menu-item_93a1u_1sjow_189",
11
+ "link-style": "awsui_link-style_93a1u_1sjow_201",
12
+ "current-breadcrumb": "awsui_current-breadcrumb_93a1u_1sjow_237",
13
+ "link-style-highlighted": "awsui_link-style-highlighted_93a1u_1sjow_245",
14
+ "has-category-header": "awsui_has-category-header_93a1u_1sjow_251",
15
+ "item-tooltip-wrapper": "awsui_item-tooltip-wrapper_93a1u_1sjow_251",
16
+ "has-checkmark": "awsui_has-checkmark_93a1u_1sjow_251",
17
+ "icon": "awsui_icon_93a1u_1sjow_255",
18
+ "checkmark": "awsui_checkmark_93a1u_1sjow_259",
19
+ "external-icon": "awsui_external-icon_93a1u_1sjow_266"
20
20
  };
21
21
 
@@ -142,7 +142,7 @@
142
142
  */
143
143
  /* Style used for links in slots/components that are text heavy, to help links stand out among
144
144
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
145
- .awsui_item-element_93a1u_1sc8s_145:not(#\9) {
145
+ .awsui_item-element_93a1u_1sjow_145:not(#\9) {
146
146
  position: relative;
147
147
  z-index: 1;
148
148
  border-block: var(--border-item-width-acvlhx, 1px) solid transparent;
@@ -154,17 +154,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
154
154
  margin-block-start: calc(-1 * var(--border-width-dropdown-qic2p4, 1px));
155
155
  cursor: pointer;
156
156
  }
157
- .awsui_item-element_93a1u_1sc8s_145.awsui_disabled_93a1u_1sc8s_157:not(#\9) {
157
+ .awsui_item-element_93a1u_1sjow_145.awsui_disabled_93a1u_1sjow_157:not(#\9) {
158
158
  cursor: default;
159
159
  color: var(--color-text-dropdown-item-disabled-oysy8n, #aab7b8);
160
160
  }
161
- .awsui_item-element_93a1u_1sc8s_145:not(#\9):first-child {
161
+ .awsui_item-element_93a1u_1sjow_145:not(#\9):first-child {
162
162
  margin-block-start: 0;
163
163
  }
164
- .awsui_item-element_93a1u_1sc8s_145.awsui_show-divider_93a1u_1sc8s_164:not(#\9) {
164
+ .awsui_item-element_93a1u_1sjow_145.awsui_show-divider_93a1u_1sjow_164:not(#\9) {
165
165
  border-block-end: var(--border-item-width-acvlhx, 1px) solid var(--color-border-dropdown-group-dg9zg5, #eaeded);
166
166
  }
167
- .awsui_item-element_93a1u_1sc8s_145.awsui_highlighted_93a1u_1sc8s_167:not(#\9) {
167
+ .awsui_item-element_93a1u_1sjow_145.awsui_highlighted_93a1u_1sjow_167:not(#\9) {
168
168
  color: var(--color-text-dropdown-item-highlighted-bchk26, #16191f);
169
169
  z-index: 2;
170
170
  background-color: var(--color-background-dropdown-item-hover-353r6f, #f2f3f3);
@@ -174,19 +174,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
174
174
  border-end-start-radius: var(--border-radius-item-xggxkd, 0px);
175
175
  border-end-end-radius: var(--border-radius-item-xggxkd, 0px);
176
176
  }
177
- .awsui_item-element_93a1u_1sc8s_145.awsui_highlighted_93a1u_1sc8s_167.awsui_disabled_93a1u_1sc8s_157:not(#\9) {
177
+ .awsui_item-element_93a1u_1sjow_145.awsui_highlighted_93a1u_1sjow_167.awsui_disabled_93a1u_1sjow_157:not(#\9) {
178
178
  color: var(--color-text-dropdown-item-dimmed-0xf8v3, #aab7b8);
179
179
  border-color: var(--color-border-dropdown-item-dimmed-hover-twsd8z, #879596);
180
180
  background-color: var(--color-background-dropdown-item-dimmed-2hwvu9, transparent);
181
181
  }
182
- .awsui_item-element_93a1u_1sc8s_145.awsui_highlighted_93a1u_1sc8s_167.awsui_is-focused_93a1u_1sc8s_182:not(#\9) {
182
+ .awsui_item-element_93a1u_1sjow_145.awsui_highlighted_93a1u_1sjow_167.awsui_is-focused_93a1u_1sjow_182:not(#\9) {
183
183
  border-color: var(--color-border-dropdown-item-focused-xty1zx, #0073bb);
184
184
  }
185
- .awsui_item-element_93a1u_1sc8s_145.awsui_highlighted_93a1u_1sc8s_167.awsui_is-focused_93a1u_1sc8s_182:not(#\9):not(.awsui_visual-refresh_93a1u_1sc8s_185) {
185
+ .awsui_item-element_93a1u_1sjow_145.awsui_highlighted_93a1u_1sjow_167.awsui_is-focused_93a1u_1sjow_182:not(#\9):not(.awsui_visual-refresh_93a1u_1sjow_185) {
186
186
  box-shadow: inset 0 0 0 var(--border-control-focus-ring-shadow-spread-ql2vj7, 1px) var(--color-border-item-focused-r5f6xl, #0073bb);
187
187
  }
188
188
 
189
- .awsui_menu-item_93a1u_1sc8s_189:not(#\9) {
189
+ .awsui_menu-item_93a1u_1sjow_189:not(#\9) {
190
190
  min-inline-size: 0;
191
191
  word-break: break-word;
192
192
  display: flex;
@@ -198,11 +198,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
198
198
  /* stylelint-disable selector-max-type */
199
199
  /* stylelint-enable selector-max-type */
200
200
  }
201
- .awsui_menu-item_93a1u_1sc8s_189.awsui_link-style_93a1u_1sc8s_201:not(#\9) {
201
+ .awsui_menu-item_93a1u_1sjow_189.awsui_link-style_93a1u_1sjow_201:not(#\9) {
202
202
  padding-block-end: calc(var(--space-xxs-jnczic, 4px) + var(--space-xxxs-3w1kr2, 2px));
203
203
  text-underline-offset: 0.25em;
204
204
  text-decoration-thickness: 1px;
205
- color: var(--awsui-style-color-default-vl73au, var(--color-text-link-default-x6cnv5, #0073bb));
205
+ color: var(--awsui-style-color-default-lqnbqg, var(--color-text-link-default-x6cnv5, #0073bb));
206
206
  font-weight: inherit;
207
207
  letter-spacing: normal;
208
208
  text-decoration-line: underline;
@@ -213,30 +213,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
213
213
  transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
214
214
  }
215
215
  @media (prefers-reduced-motion: reduce) {
216
- .awsui_menu-item_93a1u_1sc8s_189.awsui_link-style_93a1u_1sc8s_201:not(#\9) {
216
+ .awsui_menu-item_93a1u_1sjow_189.awsui_link-style_93a1u_1sjow_201:not(#\9) {
217
217
  animation: none;
218
218
  transition: none;
219
219
  }
220
220
  }
221
- .awsui-motion-disabled .awsui_menu-item_93a1u_1sc8s_189.awsui_link-style_93a1u_1sc8s_201:not(#\9), .awsui-mode-entering .awsui_menu-item_93a1u_1sc8s_189.awsui_link-style_93a1u_1sc8s_201:not(#\9) {
221
+ .awsui-motion-disabled .awsui_menu-item_93a1u_1sjow_189.awsui_link-style_93a1u_1sjow_201:not(#\9), .awsui-mode-entering .awsui_menu-item_93a1u_1sjow_189.awsui_link-style_93a1u_1sjow_201:not(#\9) {
222
222
  animation: none;
223
223
  transition: none;
224
224
  }
225
- .awsui_menu-item_93a1u_1sc8s_189.awsui_link-style_93a1u_1sc8s_201:not(#\9):hover {
225
+ .awsui_menu-item_93a1u_1sjow_189.awsui_link-style_93a1u_1sjow_201:not(#\9):hover {
226
226
  cursor: pointer;
227
- color: var(--awsui-style-color-hover-vl73au, var(--color-text-link-hover-tk5gkv, #0a4a74));
227
+ color: var(--awsui-style-color-hover-lqnbqg, var(--color-text-link-hover-tk5gkv, #0a4a74));
228
228
  }
229
- .awsui_menu-item_93a1u_1sc8s_189.awsui_link-style_93a1u_1sc8s_201:not(#\9):focus {
229
+ .awsui_menu-item_93a1u_1sjow_189.awsui_link-style_93a1u_1sjow_201:not(#\9):focus {
230
230
  outline: none;
231
231
  }
232
- .awsui_menu-item_93a1u_1sc8s_189.awsui_link-style_93a1u_1sc8s_201:not(#\9):active {
233
- color: var(--awsui-style-color-active-vl73au, var(--color-text-link-hover-tk5gkv, #0a4a74));
232
+ .awsui_menu-item_93a1u_1sjow_189.awsui_link-style_93a1u_1sjow_201:not(#\9):active {
233
+ color: var(--awsui-style-color-active-lqnbqg, var(--color-text-link-hover-tk5gkv, #0a4a74));
234
234
  }
235
- .awsui_menu-item_93a1u_1sc8s_189.awsui_link-style_93a1u_1sc8s_201:not(#\9):active, .awsui_menu-item_93a1u_1sc8s_189.awsui_link-style_93a1u_1sc8s_201:not(#\9):focus, .awsui_menu-item_93a1u_1sc8s_189.awsui_link-style_93a1u_1sc8s_201:not(#\9):hover {
235
+ .awsui_menu-item_93a1u_1sjow_189.awsui_link-style_93a1u_1sjow_201:not(#\9):active, .awsui_menu-item_93a1u_1sjow_189.awsui_link-style_93a1u_1sjow_201:not(#\9):focus, .awsui_menu-item_93a1u_1sjow_189.awsui_link-style_93a1u_1sjow_201:not(#\9):hover {
236
236
  text-decoration-line: underline;
237
237
  text-decoration-color: currentColor;
238
238
  }
239
- .awsui_menu-item_93a1u_1sc8s_189.awsui_link-style_93a1u_1sc8s_201.awsui_current-breadcrumb_93a1u_1sc8s_237:not(#\9) {
239
+ .awsui_menu-item_93a1u_1sjow_189.awsui_link-style_93a1u_1sjow_201.awsui_current-breadcrumb_93a1u_1sjow_237:not(#\9) {
240
240
  font-weight: var(--font-weight-button-hh0ago, 700);
241
241
  -webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
242
242
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
@@ -244,27 +244,27 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
244
244
  font-weight: 700;
245
245
  text-decoration: none;
246
246
  }
247
- .awsui_menu-item_93a1u_1sc8s_189.awsui_link-style_93a1u_1sc8s_201.awsui_link-style-highlighted_93a1u_1sc8s_245:not(#\9) {
247
+ .awsui_menu-item_93a1u_1sjow_189.awsui_link-style_93a1u_1sjow_201.awsui_link-style-highlighted_93a1u_1sjow_245:not(#\9) {
248
248
  color: var(--color-text-link-hover-tk5gkv, #0a4a74);
249
249
  }
250
- .awsui_menu-item_93a1u_1sc8s_189:not(#\9):focus {
250
+ .awsui_menu-item_93a1u_1sjow_189:not(#\9):focus {
251
251
  outline: none;
252
252
  }
253
- .awsui_has-category-header_93a1u_1sc8s_251 > .awsui_menu-item_93a1u_1sc8s_189:not(#\9), .awsui_has-category-header_93a1u_1sc8s_251 > .awsui_item-tooltip-wrapper_93a1u_1sc8s_251 > .awsui_menu-item_93a1u_1sc8s_189:not(#\9), .awsui_has-category-header_93a1u_1sc8s_251:not(#\9):not(.awsui_has-checkmark_93a1u_1sc8s_251) > span > .awsui_menu-item_93a1u_1sc8s_189 {
253
+ .awsui_has-category-header_93a1u_1sjow_251 > .awsui_menu-item_93a1u_1sjow_189:not(#\9), .awsui_has-category-header_93a1u_1sjow_251 > .awsui_item-tooltip-wrapper_93a1u_1sjow_251 > .awsui_menu-item_93a1u_1sjow_189:not(#\9), .awsui_has-category-header_93a1u_1sjow_251:not(#\9):not(.awsui_has-checkmark_93a1u_1sjow_251) > span > .awsui_menu-item_93a1u_1sjow_189 {
254
254
  padding-inline-start: calc(var(--space-xs-kw7k3v, 8px) + var(--space-l-3cws6j, 20px));
255
255
  }
256
256
 
257
- .awsui_icon_93a1u_1sc8s_255:not(#\9) {
257
+ .awsui_icon_93a1u_1sjow_255:not(#\9) {
258
258
  padding-inline-end: var(--space-xxs-jnczic, 4px);
259
259
  flex-shrink: 0;
260
260
  }
261
- .awsui_icon_93a1u_1sc8s_255.awsui_checkmark_93a1u_1sc8s_259:not(#\9) {
261
+ .awsui_icon_93a1u_1sjow_255.awsui_checkmark_93a1u_1sjow_259:not(#\9) {
262
262
  color: var(--color-item-selected-2dv7ug, #0073bb);
263
263
  }
264
- .awsui_icon_93a1u_1sc8s_255.awsui_disabled_93a1u_1sc8s_157:not(#\9) {
264
+ .awsui_icon_93a1u_1sjow_255.awsui_disabled_93a1u_1sjow_157:not(#\9) {
265
265
  color: var(--color-text-interactive-disabled-xwt2jl, #aab7b8);
266
266
  }
267
267
 
268
- .awsui_external-icon_93a1u_1sc8s_266:not(#\9) {
268
+ .awsui_external-icon_93a1u_1sjow_266:not(#\9) {
269
269
  margin-inline-start: var(--space-xxs-jnczic, 4px);
270
270
  }
@@ -2,21 +2,21 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "item-element": "awsui_item-element_93a1u_1sc8s_145",
6
- "disabled": "awsui_disabled_93a1u_1sc8s_157",
7
- "show-divider": "awsui_show-divider_93a1u_1sc8s_164",
8
- "highlighted": "awsui_highlighted_93a1u_1sc8s_167",
9
- "is-focused": "awsui_is-focused_93a1u_1sc8s_182",
10
- "visual-refresh": "awsui_visual-refresh_93a1u_1sc8s_185",
11
- "menu-item": "awsui_menu-item_93a1u_1sc8s_189",
12
- "link-style": "awsui_link-style_93a1u_1sc8s_201",
13
- "current-breadcrumb": "awsui_current-breadcrumb_93a1u_1sc8s_237",
14
- "link-style-highlighted": "awsui_link-style-highlighted_93a1u_1sc8s_245",
15
- "has-category-header": "awsui_has-category-header_93a1u_1sc8s_251",
16
- "item-tooltip-wrapper": "awsui_item-tooltip-wrapper_93a1u_1sc8s_251",
17
- "has-checkmark": "awsui_has-checkmark_93a1u_1sc8s_251",
18
- "icon": "awsui_icon_93a1u_1sc8s_255",
19
- "checkmark": "awsui_checkmark_93a1u_1sc8s_259",
20
- "external-icon": "awsui_external-icon_93a1u_1sc8s_266"
5
+ "item-element": "awsui_item-element_93a1u_1sjow_145",
6
+ "disabled": "awsui_disabled_93a1u_1sjow_157",
7
+ "show-divider": "awsui_show-divider_93a1u_1sjow_164",
8
+ "highlighted": "awsui_highlighted_93a1u_1sjow_167",
9
+ "is-focused": "awsui_is-focused_93a1u_1sjow_182",
10
+ "visual-refresh": "awsui_visual-refresh_93a1u_1sjow_185",
11
+ "menu-item": "awsui_menu-item_93a1u_1sjow_189",
12
+ "link-style": "awsui_link-style_93a1u_1sjow_201",
13
+ "current-breadcrumb": "awsui_current-breadcrumb_93a1u_1sjow_237",
14
+ "link-style-highlighted": "awsui_link-style-highlighted_93a1u_1sjow_245",
15
+ "has-category-header": "awsui_has-category-header_93a1u_1sjow_251",
16
+ "item-tooltip-wrapper": "awsui_item-tooltip-wrapper_93a1u_1sjow_251",
17
+ "has-checkmark": "awsui_has-checkmark_93a1u_1sjow_251",
18
+ "icon": "awsui_icon_93a1u_1sjow_255",
19
+ "checkmark": "awsui_checkmark_93a1u_1sjow_259",
20
+ "external-icon": "awsui_external-icon_93a1u_1sjow_266"
21
21
  };
22
22
 
@@ -1,8 +1,8 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_k2y2q_v9f84_145",
5
- "checkbox-control": "awsui_checkbox-control_k2y2q_v9f84_178",
6
- "outline": "awsui_outline_k2y2q_v9f84_186"
4
+ "root": "awsui_root_k2y2q_59tbl_145",
5
+ "checkbox-control": "awsui_checkbox-control_k2y2q_59tbl_178",
6
+ "outline": "awsui_outline_k2y2q_59tbl_186"
7
7
  };
8
8
 
@@ -142,7 +142,7 @@
142
142
  */
143
143
  /* Style used for links in slots/components that are text heavy, to help links stand out among
144
144
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
145
- .awsui_root_k2y2q_v9f84_145.awsui_root_k2y2q_v9f84_145:not(#\9) {
145
+ .awsui_root_k2y2q_59tbl_145.awsui_root_k2y2q_59tbl_145:not(#\9) {
146
146
  border-collapse: separate;
147
147
  border-spacing: 0;
148
148
  box-sizing: border-box;
@@ -175,7 +175,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
175
175
  display: flex;
176
176
  }
177
177
 
178
- .awsui_checkbox-control_k2y2q_v9f84_178:not(#\9) {
178
+ .awsui_checkbox-control_k2y2q_59tbl_178:not(#\9) {
179
179
  margin-block-start: calc((var(--line-height-body-m-bedeoh, 22px) - var(--size-control-lkpwjy, 14px)) / 2);
180
180
  min-block-size: var(--size-control-lkpwjy, 14px);
181
181
  min-inline-size: var(--size-control-lkpwjy, 14px);
@@ -183,15 +183,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
183
183
  inline-size: var(--size-control-lkpwjy, 14px);
184
184
  }
185
185
 
186
- .awsui_outline_k2y2q_v9f84_186:not(#\9) {
187
- --awsui-style-focus-ring-box-shadow-vl73au: 0 0 0 var(--awsui-style-focus-ring-border-width-vl73au, 2px) var(--awsui-style-focus-ring-border-color-vl73au, var(--color-border-item-focused-r5f6xl, #0073bb));
186
+ .awsui_outline_k2y2q_59tbl_186:not(#\9) {
187
+ --awsui-style-focus-ring-box-shadow-lqnbqg: 0 0 0 var(--awsui-style-focus-ring-border-width-lqnbqg, 2px) var(--awsui-style-focus-ring-border-color-lqnbqg, var(--color-border-item-focused-r5f6xl, #0073bb));
188
188
  position: relative;
189
189
  }
190
- .awsui_outline_k2y2q_v9f84_186:not(#\9) {
190
+ .awsui_outline_k2y2q_59tbl_186:not(#\9) {
191
191
  outline: 2px dotted transparent;
192
192
  outline-offset: calc(2px - 1px);
193
193
  }
194
- .awsui_outline_k2y2q_v9f84_186:not(#\9)::before {
194
+ .awsui_outline_k2y2q_59tbl_186:not(#\9)::before {
195
195
  content: " ";
196
196
  display: block;
197
197
  position: absolute;
@@ -199,9 +199,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
199
199
  inset-block-start: calc(-1 * 2px);
200
200
  inline-size: calc(100% + 2px + 2px);
201
201
  block-size: calc(100% + 2px + 2px);
202
- border-start-start-radius: var(--awsui-style-focus-ring-border-radius-vl73au, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
203
- border-start-end-radius: var(--awsui-style-focus-ring-border-radius-vl73au, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
204
- border-end-start-radius: var(--awsui-style-focus-ring-border-radius-vl73au, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
205
- border-end-end-radius: var(--awsui-style-focus-ring-border-radius-vl73au, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
206
- box-shadow: var(--awsui-style-focus-ring-box-shadow-vl73au);
202
+ border-start-start-radius: var(--awsui-style-focus-ring-border-radius-lqnbqg, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
203
+ border-start-end-radius: var(--awsui-style-focus-ring-border-radius-lqnbqg, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
204
+ border-end-start-radius: var(--awsui-style-focus-ring-border-radius-lqnbqg, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
205
+ border-end-end-radius: var(--awsui-style-focus-ring-border-radius-lqnbqg, var(--border-radius-control-default-focus-ring-9xsko1, 2px));
206
+ box-shadow: var(--awsui-style-focus-ring-box-shadow-lqnbqg);
207
207
  }
@@ -2,8 +2,8 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_k2y2q_v9f84_145",
6
- "checkbox-control": "awsui_checkbox-control_k2y2q_v9f84_178",
7
- "outline": "awsui_outline_k2y2q_v9f84_186"
5
+ "root": "awsui_root_k2y2q_59tbl_145",
6
+ "checkbox-control": "awsui_checkbox-control_k2y2q_59tbl_178",
7
+ "outline": "awsui_outline_k2y2q_59tbl_186"
8
8
  };
9
9