@cloudscape-design/components 3.0.1048 → 3.0.1050

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 (84) hide show
  1. package/alert/interfaces.d.ts +8 -8
  2. package/alert/interfaces.js.map +1 -1
  3. package/attribute-editor/styles.css.js +15 -15
  4. package/attribute-editor/styles.scoped.css +28 -28
  5. package/attribute-editor/styles.selectors.js +15 -15
  6. package/breadcrumb-group/item/styles.css.js +7 -7
  7. package/breadcrumb-group/item/styles.scoped.css +28 -28
  8. package/breadcrumb-group/item/styles.selectors.js +7 -7
  9. package/button-dropdown/category-elements/category-element.d.ts.map +1 -1
  10. package/button-dropdown/category-elements/category-element.js +6 -1
  11. package/button-dropdown/category-elements/category-element.js.map +1 -1
  12. package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
  13. package/button-dropdown/category-elements/expandable-category-element.js +2 -0
  14. package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  15. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
  16. package/button-dropdown/category-elements/mobile-expandable-category-element.js +2 -0
  17. package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
  18. package/button-dropdown/category-elements/styles.css.js +17 -15
  19. package/button-dropdown/category-elements/styles.scoped.css +36 -25
  20. package/button-dropdown/category-elements/styles.selectors.js +17 -15
  21. package/button-dropdown/item-element/styles.css.js +16 -16
  22. package/button-dropdown/item-element/styles.scoped.css +27 -27
  23. package/button-dropdown/item-element/styles.selectors.js +16 -16
  24. package/date-input/index.d.ts +1 -1
  25. package/date-input/index.d.ts.map +1 -1
  26. package/date-input/index.js.map +1 -1
  27. package/date-input/interfaces.d.ts +29 -0
  28. package/date-input/interfaces.d.ts.map +1 -1
  29. package/date-input/interfaces.js.map +1 -1
  30. package/date-input/internal.d.ts +1 -4
  31. package/date-input/internal.d.ts.map +1 -1
  32. package/date-input/internal.js +39 -4
  33. package/date-input/internal.js.map +1 -1
  34. package/date-input/utils.d.ts +9 -1
  35. package/date-input/utils.d.ts.map +1 -1
  36. package/date-input/utils.js +32 -7
  37. package/date-input/utils.js.map +1 -1
  38. package/help-panel/styles.css.js +6 -6
  39. package/help-panel/styles.scoped.css +73 -73
  40. package/help-panel/styles.selectors.js +6 -6
  41. package/internal/base-component/styles.scoped.css +1 -1
  42. package/internal/components/masked-input/index.d.ts.map +1 -1
  43. package/internal/components/masked-input/index.js +2 -2
  44. package/internal/components/masked-input/index.js.map +1 -1
  45. package/internal/components/masked-input/interfaces.d.ts +6 -1
  46. package/internal/components/masked-input/interfaces.d.ts.map +1 -1
  47. package/internal/components/masked-input/interfaces.js.map +1 -1
  48. package/internal/components/token-list/styles.css.js +10 -10
  49. package/internal/components/token-list/styles.scoped.css +25 -25
  50. package/internal/components/token-list/styles.selectors.js +10 -10
  51. package/internal/environment.js +2 -2
  52. package/internal/environment.json +2 -2
  53. package/internal/manifest.json +1 -1
  54. package/internal/utils/date-time/format-date-iso.d.ts.map +1 -1
  55. package/internal/utils/date-time/format-date-iso.js.map +1 -1
  56. package/internal/utils/date-time/interfaces.d.ts +16 -0
  57. package/internal/utils/date-time/interfaces.d.ts.map +1 -0
  58. package/internal/utils/date-time/interfaces.js +4 -0
  59. package/internal/utils/date-time/interfaces.js.map +1 -0
  60. package/link/index.d.ts.map +1 -1
  61. package/link/index.js +11 -27
  62. package/link/interfaces.d.ts +23 -0
  63. package/link/interfaces.d.ts.map +1 -1
  64. package/link/interfaces.js.map +1 -1
  65. package/link/internal-do-not-use-core.js +34 -0
  66. package/link/internal-do-not-use-core.js.map +1 -0
  67. package/link/internal.d.ts.map +1 -1
  68. package/link/internal.js +3 -2
  69. package/link/internal.js.map +1 -1
  70. package/link/style.d.ts +2 -0
  71. package/link/style.d.ts.map +1 -0
  72. package/link/style.js +21 -0
  73. package/link/style.js.map +1 -0
  74. package/link/styles.css.js +20 -20
  75. package/link/styles.scoped.css +103 -102
  76. package/link/styles.selectors.js +20 -20
  77. package/package.json +1 -1
  78. package/tag-editor/styles.css.js +3 -3
  79. package/tag-editor/styles.scoped.css +13 -13
  80. package/tag-editor/styles.selectors.js +3 -3
  81. package/text-content/styles.css.js +1 -1
  82. package/text-content/styles.scoped.css +66 -66
  83. package/text-content/styles.selectors.js +1 -1
  84. package/link/index.js.map +0 -1
@@ -121,18 +121,18 @@ export interface AlertProps extends BaseComponentProps {
121
121
  /**
122
122
  * Specifies an object of selectors and properties that are used to apply custom styles.
123
123
  *
124
- * - `root.background` - (string) (Optional) Background for alert.
125
- * - `root.borderColor` - (string) (Optional) Border color for alert.
124
+ * - `root.background` (string) - (Optional) Background for alert.
125
+ * - `root.borderColor` (string) - (Optional) Border color for alert.
126
126
  * - `root.borderRadius` (string) - (Optional) Alert border radius.
127
127
  * - `root.borderWidth` (string) - (Optional) Alert border width.
128
- * - `root.color` - (string) (Optional) Text color for alert.
129
- * - `root.focusRing.borderColor` - (string) (Optional) Alert focus ring border color.
128
+ * - `root.color` (string) - (Optional) Text color for alert.
129
+ * - `root.focusRing.borderColor` (string) - (Optional) Alert focus ring border color.
130
130
  * - `root.focusRing.borderRadius` (string) - (Optional) Alert button focus ring border radius.
131
131
  * - `root.focusRing.borderWidth` (string) - (Optional) Alert button focus ring border width.
132
- * - `dismissButton.color.active` - (string) (Optional) Color for dismiss button active state.
133
- * - `dismissButton.color.default` - (string) (Optional) Color for dismiss button default state.
134
- * - `dismissButton.color.hover` - (string) (Optional) Color for dismiss button hover state.
135
- * - `dismissButton.focusRing.borderColor` - (string) (Optional) Dismiss button focus ring border color.
132
+ * - `dismissButton.color.active` (string) - (Optional) Color for dismiss button active state.
133
+ * - `dismissButton.color.default` (string) - (Optional) Color for dismiss button default state.
134
+ * - `dismissButton.color.hover` (string) - (Optional) Color for dismiss button hover state.
135
+ * - `dismissButton.focusRing.borderColor` (string) - (Optional) Dismiss button focus ring border color.
136
136
  * - `dismissButton.focusRing.borderRadius` (string) - (Optional) Dismiss button focus ring border radius.
137
137
  * - `dismissButton.focusRing.borderWidth` (string) - (Optional) Dismiss button focus ring border width.
138
138
  * @awsuiSystem core
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/alert/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 { ErrorContext } from '../internal/analytics/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport namespace AlertProps {\n export type Type = 'success' | 'error' | 'warning' | 'info';\n\n export interface Ref {\n /**\n * Sets focus on the alert content.\n */\n focus(): void;\n }\n\n export interface I18nStrings {\n /*\n * Specifies the ARIA label for the alert icon for type `success`.\n * @property {string} [successIconAriaLabel] - optional\n */\n successIconAriaLabel?: string;\n /*\n * Specifies the ARIA label for the alert icon for type `error`.\n * @property {string} [errorIconAriaLabel] - optional\n */\n errorIconAriaLabel?: string;\n /*\n * Specifies the ARIA label for the alert icon for type `warning`.\n * @property {string} [warningIconAriaLabel] - optional\n */\n warningIconAriaLabel?: string;\n /*\n * Specifies the ARIA label for the alert icon for type `info`.\n * @property {string} [infoIconAriaLabel] - optional\n */\n infoIconAriaLabel?: string;\n /*\n * Specifies the ARIA label for the dismiss button.\n * @property {string} [dismissAriaLabel] - optional\n */\n dismissAriaLabel?: string;\n }\n\n export interface AnalyticsMetadata {\n errorContext?: ErrorContext;\n }\n\n export interface Style {\n root?: {\n background?: string;\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n color?: string;\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n dismissButton?: {\n color?: {\n active?: string;\n default?: string;\n hover?: string;\n };\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n }\n}\n\nexport interface AlertProps extends BaseComponentProps {\n /**\n * Specifies the type of message you want to display.\n */\n type?: AlertProps.Type;\n\n /**\n * Provides a text alternative for the icon.\n *\n * @deprecated Use the label properties inside `i18nStrings` instead.\n * If the label is assigned via the `i18nStrings` property, this label will be ignored.\n */\n statusIconAriaLabel?: string;\n\n /**\n * Determines whether the alert is displayed.\n * @deprecated Use conditional rendering in your code instead of this prop.\n */\n visible?: boolean;\n /**\n * Adds a close button to the alert when set to `true`.\n * An `onDismiss` event is fired when a user clicks the button.\n */\n dismissible?: boolean;\n /**\n * Adds an aria-label to the dismiss button.\n * @i18n\n *\n * @deprecated Use `i18nStrings.dismissAriaLabel` instead.\n * If the label is assigned via the `i18nStrings` property, this label will be ignored.\n */\n dismissAriaLabel?: string;\n /**\n * Primary text displayed in the element.\n */\n children?: React.ReactNode;\n /**\n * Heading text.\n */\n header?: React.ReactNode;\n /**\n * Displays an action button next to the message area when set.\n * An `onButtonClick` event is fired when the user clicks it.\n * @deprecated Replaced by `action`.\n */\n buttonText?: React.ReactNode;\n /**\n * Specifies an action for the alert message.\n * Although it is technically possible to insert any content, our UX guidelines only allow you to add a button.\n */\n action?: React.ReactNode;\n /**\n * Fired when the user clicks the close icon that is displayed\n * when the `dismissible` property is set to `true`.\n */\n onDismiss?: NonCancelableEventHandler;\n /**\n * Fired when the user clicks the action button.\n * **Deprecated** Replaced by `action`.\n */\n onButtonClick?: NonCancelableEventHandler;\n /**\n * An object containing all the necessary localized strings required by the component.\n * @property {AlertProps.I18nStrings} [i18nStrings] - optional\n * @i18n\n */\n i18nStrings?: AlertProps.I18nStrings;\n /**\n * Specifies additional analytics-related metadata.\n * * `errorContext` - Identifies the error category and sub-category.\n * @analytics\n */\n analyticsMetadata?: AlertProps.AnalyticsMetadata;\n /**\n * Specifies an object of selectors and properties that are used to apply custom styles.\n *\n * - `root.background` - (string) (Optional) Background for alert.\n * - `root.borderColor` - (string) (Optional) Border color for alert.\n * - `root.borderRadius` (string) - (Optional) Alert border radius.\n * - `root.borderWidth` (string) - (Optional) Alert border width.\n * - `root.color` - (string) (Optional) Text color for alert.\n * - `root.focusRing.borderColor` - (string) (Optional) Alert focus ring border color.\n * - `root.focusRing.borderRadius` (string) - (Optional) Alert button focus ring border radius.\n * - `root.focusRing.borderWidth` (string) - (Optional) Alert button focus ring border width.\n * - `dismissButton.color.active` - (string) (Optional) Color for dismiss button active state.\n * - `dismissButton.color.default` - (string) (Optional) Color for dismiss button default state.\n * - `dismissButton.color.hover` - (string) (Optional) Color for dismiss button hover state.\n * - `dismissButton.focusRing.borderColor` - (string) (Optional) Dismiss button focus ring border color.\n * - `dismissButton.focusRing.borderRadius` (string) - (Optional) Dismiss button focus ring border radius.\n * - `dismissButton.focusRing.borderWidth` (string) - (Optional) Dismiss button focus ring border width.\n * @awsuiSystem core\n */\n style?: AlertProps.Style;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/alert/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 { ErrorContext } from '../internal/analytics/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport namespace AlertProps {\n export type Type = 'success' | 'error' | 'warning' | 'info';\n\n export interface Ref {\n /**\n * Sets focus on the alert content.\n */\n focus(): void;\n }\n\n export interface I18nStrings {\n /*\n * Specifies the ARIA label for the alert icon for type `success`.\n * @property {string} [successIconAriaLabel] - optional\n */\n successIconAriaLabel?: string;\n /*\n * Specifies the ARIA label for the alert icon for type `error`.\n * @property {string} [errorIconAriaLabel] - optional\n */\n errorIconAriaLabel?: string;\n /*\n * Specifies the ARIA label for the alert icon for type `warning`.\n * @property {string} [warningIconAriaLabel] - optional\n */\n warningIconAriaLabel?: string;\n /*\n * Specifies the ARIA label for the alert icon for type `info`.\n * @property {string} [infoIconAriaLabel] - optional\n */\n infoIconAriaLabel?: string;\n /*\n * Specifies the ARIA label for the dismiss button.\n * @property {string} [dismissAriaLabel] - optional\n */\n dismissAriaLabel?: string;\n }\n\n export interface AnalyticsMetadata {\n errorContext?: ErrorContext;\n }\n\n export interface Style {\n root?: {\n background?: string;\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n color?: string;\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n dismissButton?: {\n color?: {\n active?: string;\n default?: string;\n hover?: string;\n };\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n }\n}\n\nexport interface AlertProps extends BaseComponentProps {\n /**\n * Specifies the type of message you want to display.\n */\n type?: AlertProps.Type;\n\n /**\n * Provides a text alternative for the icon.\n *\n * @deprecated Use the label properties inside `i18nStrings` instead.\n * If the label is assigned via the `i18nStrings` property, this label will be ignored.\n */\n statusIconAriaLabel?: string;\n\n /**\n * Determines whether the alert is displayed.\n * @deprecated Use conditional rendering in your code instead of this prop.\n */\n visible?: boolean;\n /**\n * Adds a close button to the alert when set to `true`.\n * An `onDismiss` event is fired when a user clicks the button.\n */\n dismissible?: boolean;\n /**\n * Adds an aria-label to the dismiss button.\n * @i18n\n *\n * @deprecated Use `i18nStrings.dismissAriaLabel` instead.\n * If the label is assigned via the `i18nStrings` property, this label will be ignored.\n */\n dismissAriaLabel?: string;\n /**\n * Primary text displayed in the element.\n */\n children?: React.ReactNode;\n /**\n * Heading text.\n */\n header?: React.ReactNode;\n /**\n * Displays an action button next to the message area when set.\n * An `onButtonClick` event is fired when the user clicks it.\n * @deprecated Replaced by `action`.\n */\n buttonText?: React.ReactNode;\n /**\n * Specifies an action for the alert message.\n * Although it is technically possible to insert any content, our UX guidelines only allow you to add a button.\n */\n action?: React.ReactNode;\n /**\n * Fired when the user clicks the close icon that is displayed\n * when the `dismissible` property is set to `true`.\n */\n onDismiss?: NonCancelableEventHandler;\n /**\n * Fired when the user clicks the action button.\n * **Deprecated** Replaced by `action`.\n */\n onButtonClick?: NonCancelableEventHandler;\n /**\n * An object containing all the necessary localized strings required by the component.\n * @property {AlertProps.I18nStrings} [i18nStrings] - optional\n * @i18n\n */\n i18nStrings?: AlertProps.I18nStrings;\n /**\n * Specifies additional analytics-related metadata.\n * * `errorContext` - Identifies the error category and sub-category.\n * @analytics\n */\n analyticsMetadata?: AlertProps.AnalyticsMetadata;\n /**\n * Specifies an object of selectors and properties that are used to apply custom styles.\n *\n * - `root.background` (string) - (Optional) Background for alert.\n * - `root.borderColor` (string) - (Optional) Border color for alert.\n * - `root.borderRadius` (string) - (Optional) Alert border radius.\n * - `root.borderWidth` (string) - (Optional) Alert border width.\n * - `root.color` (string) - (Optional) Text color for alert.\n * - `root.focusRing.borderColor` (string) - (Optional) Alert focus ring border color.\n * - `root.focusRing.borderRadius` (string) - (Optional) Alert button focus ring border radius.\n * - `root.focusRing.borderWidth` (string) - (Optional) Alert button focus ring border width.\n * - `dismissButton.color.active` (string) - (Optional) Color for dismiss button active state.\n * - `dismissButton.color.default` (string) - (Optional) Color for dismiss button default state.\n * - `dismissButton.color.hover` (string) - (Optional) Color for dismiss button hover state.\n * - `dismissButton.focusRing.borderColor` (string) - (Optional) Dismiss button focus ring border color.\n * - `dismissButton.focusRing.borderRadius` (string) - (Optional) Dismiss button focus ring border radius.\n * - `dismissButton.focusRing.borderWidth` (string) - (Optional) Dismiss button focus ring border width.\n * @awsuiSystem core\n */\n style?: AlertProps.Style;\n}\n"]}
@@ -1,20 +1,20 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "empty-appear": "awsui_empty-appear_n4qlp_iv7e8_153",
5
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_n4qlp_iv7e8_1",
6
- "root": "awsui_root_n4qlp_iv7e8_175",
7
- "empty": "awsui_empty_n4qlp_iv7e8_153",
8
- "row": "awsui_row_n4qlp_iv7e8_218",
9
- "divider": "awsui_divider_n4qlp_iv7e8_222",
10
- "row-control": "awsui_row-control_n4qlp_iv7e8_227",
11
- "field": "awsui_field_n4qlp_iv7e8_231",
12
- "additional-info": "awsui_additional-info_n4qlp_iv7e8_235",
13
- "add-row": "awsui_add-row_n4qlp_iv7e8_281",
14
- "add-button": "awsui_add-button_n4qlp_iv7e8_285",
15
- "remove-button-container": "awsui_remove-button-container_n4qlp_iv7e8_289",
16
- "remove-button-field-padding": "awsui_remove-button-field-padding_n4qlp_iv7e8_293",
17
- "remove-button-own-row": "awsui_remove-button-own-row_n4qlp_iv7e8_297",
18
- "remove-button": "awsui_remove-button_n4qlp_iv7e8_289"
4
+ "empty-appear": "awsui_empty-appear_n4qlp_1sk08_153",
5
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_n4qlp_1sk08_1",
6
+ "root": "awsui_root_n4qlp_1sk08_175",
7
+ "empty": "awsui_empty_n4qlp_1sk08_153",
8
+ "row": "awsui_row_n4qlp_1sk08_218",
9
+ "divider": "awsui_divider_n4qlp_1sk08_222",
10
+ "row-control": "awsui_row-control_n4qlp_1sk08_227",
11
+ "field": "awsui_field_n4qlp_1sk08_231",
12
+ "additional-info": "awsui_additional-info_n4qlp_1sk08_235",
13
+ "add-row": "awsui_add-row_n4qlp_1sk08_281",
14
+ "add-button": "awsui_add-button_n4qlp_1sk08_285",
15
+ "remove-button-container": "awsui_remove-button-container_n4qlp_1sk08_289",
16
+ "remove-button-field-padding": "awsui_remove-button-field-padding_n4qlp_1sk08_293",
17
+ "remove-button-own-row": "awsui_remove-button-own-row_n4qlp_1sk08_297",
18
+ "remove-button": "awsui_remove-button_n4qlp_1sk08_289"
19
19
  };
20
20
 
@@ -150,10 +150,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
150
150
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
151
151
  SPDX-License-Identifier: Apache-2.0
152
152
  */
153
- .awsui_empty-appear_n4qlp_iv7e8_153:not(#\9) {
154
- animation: awsui_awsui-motion-fade-in_n4qlp_iv7e8_1 var(--motion-duration-transition-show-paced-t8d1os, 180ms) var(--motion-easing-transition-show-paced-x2k7uh, ease-out);
153
+ .awsui_empty-appear_n4qlp_1sk08_153:not(#\9) {
154
+ animation: awsui_awsui-motion-fade-in_n4qlp_1sk08_1 var(--motion-duration-transition-show-paced-t8d1os, 180ms) var(--motion-easing-transition-show-paced-x2k7uh, ease-out);
155
155
  }
156
- @keyframes awsui_awsui-motion-fade-in_n4qlp_iv7e8_1 {
156
+ @keyframes awsui_awsui-motion-fade-in_n4qlp_1sk08_1 {
157
157
  from {
158
158
  opacity: 0.2;
159
159
  }
@@ -162,17 +162,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
162
162
  }
163
163
  }
164
164
  @media (prefers-reduced-motion: reduce) {
165
- .awsui_empty-appear_n4qlp_iv7e8_153:not(#\9) {
165
+ .awsui_empty-appear_n4qlp_1sk08_153:not(#\9) {
166
166
  animation: none;
167
167
  transition: none;
168
168
  }
169
169
  }
170
- .awsui-motion-disabled .awsui_empty-appear_n4qlp_iv7e8_153:not(#\9), .awsui-mode-entering .awsui_empty-appear_n4qlp_iv7e8_153:not(#\9) {
170
+ .awsui-motion-disabled .awsui_empty-appear_n4qlp_1sk08_153:not(#\9), .awsui-mode-entering .awsui_empty-appear_n4qlp_1sk08_153:not(#\9) {
171
171
  animation: none;
172
172
  transition: none;
173
173
  }
174
174
 
175
- .awsui_root_n4qlp_iv7e8_175:not(#\9) {
175
+ .awsui_root_n4qlp_1sk08_175:not(#\9) {
176
176
  border-collapse: separate;
177
177
  border-spacing: 0;
178
178
  box-sizing: border-box;
@@ -208,31 +208,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
208
208
  align-items: start;
209
209
  }
210
210
 
211
- .awsui_empty_n4qlp_iv7e8_153:not(#\9) {
211
+ .awsui_empty_n4qlp_1sk08_153:not(#\9) {
212
212
  font-size: var(--font-size-body-m-a7nh2n, 14px);
213
213
  line-height: var(--line-height-body-m-2mh3ke, 20px);
214
214
  color: var(--color-text-empty-tlohug, #656871);
215
215
  grid-column: 1/-1;
216
216
  }
217
217
 
218
- .awsui_row_n4qlp_iv7e8_218:not(#\9) {
218
+ .awsui_row_n4qlp_1sk08_218:not(#\9) {
219
219
  display: contents;
220
220
  }
221
221
 
222
- .awsui_divider_n4qlp_iv7e8_222:not(#\9) {
222
+ .awsui_divider_n4qlp_1sk08_222:not(#\9) {
223
223
  grid-column: 1/-1;
224
224
  border-block-start: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-divider-default-nr68jt, #c6c6cd);
225
225
  }
226
226
 
227
- .awsui_row-control_n4qlp_iv7e8_227:not(#\9) {
227
+ .awsui_row-control_n4qlp_1sk08_227:not(#\9) {
228
228
  /* used in test-utils */
229
229
  }
230
230
 
231
- .awsui_field_n4qlp_iv7e8_231:not(#\9) {
231
+ .awsui_field_n4qlp_1sk08_231:not(#\9) {
232
232
  /* used in test-utils */
233
233
  }
234
234
 
235
- .awsui_additional-info_n4qlp_iv7e8_235:not(#\9) {
235
+ .awsui_additional-info_n4qlp_1sk08_235:not(#\9) {
236
236
  color: var(--color-text-form-secondary-1nm780, #656871);
237
237
  font-size: var(--font-size-body-s-smc8cv, 12px);
238
238
  line-height: var(--line-height-body-s-nu5hx1, 16px);
@@ -242,10 +242,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
242
242
  margin-block-start: var(--space-xxs-hwfkai, 4px);
243
243
  /* stylelint-disable-next-line selector-max-type */
244
244
  }
245
- .awsui_additional-info_n4qlp_iv7e8_235 > a:not(#\9) {
245
+ .awsui_additional-info_n4qlp_1sk08_235 > a:not(#\9) {
246
246
  text-underline-offset: 0.3em;
247
247
  text-decoration-thickness: 1px;
248
- color: var(--color-text-link-default-1dmm7z, #006ce0);
248
+ color: var(--awsui-style-color-default-kcc2gu, var(--color-text-link-default-1dmm7z, #006ce0));
249
249
  font-weight: inherit;
250
250
  letter-spacing: normal;
251
251
  text-decoration-line: underline;
@@ -256,50 +256,50 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
256
256
  transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
257
257
  }
258
258
  @media (prefers-reduced-motion: reduce) {
259
- .awsui_additional-info_n4qlp_iv7e8_235 > a:not(#\9) {
259
+ .awsui_additional-info_n4qlp_1sk08_235 > a:not(#\9) {
260
260
  animation: none;
261
261
  transition: none;
262
262
  }
263
263
  }
264
- .awsui-motion-disabled .awsui_additional-info_n4qlp_iv7e8_235 > a:not(#\9), .awsui-mode-entering .awsui_additional-info_n4qlp_iv7e8_235 > a:not(#\9) {
264
+ .awsui-motion-disabled .awsui_additional-info_n4qlp_1sk08_235 > a:not(#\9), .awsui-mode-entering .awsui_additional-info_n4qlp_1sk08_235 > a:not(#\9) {
265
265
  animation: none;
266
266
  transition: none;
267
267
  }
268
- .awsui_additional-info_n4qlp_iv7e8_235 > a:not(#\9):hover {
268
+ .awsui_additional-info_n4qlp_1sk08_235 > a:not(#\9):hover {
269
269
  cursor: pointer;
270
- color: var(--color-text-link-hover-sq1gxg, #002b66);
270
+ color: var(--awsui-style-color-hover-kcc2gu, var(--color-text-link-hover-sq1gxg, #002b66));
271
271
  }
272
- .awsui_additional-info_n4qlp_iv7e8_235 > a:not(#\9):focus {
272
+ .awsui_additional-info_n4qlp_1sk08_235 > a:not(#\9):focus {
273
273
  outline: none;
274
274
  }
275
- .awsui_additional-info_n4qlp_iv7e8_235 > a:not(#\9):active {
276
- color: var(--color-text-link-hover-sq1gxg, #002b66);
275
+ .awsui_additional-info_n4qlp_1sk08_235 > a:not(#\9):active {
276
+ color: var(--awsui-style-color-active-kcc2gu, var(--color-text-link-hover-sq1gxg, #002b66));
277
277
  }
278
- .awsui_additional-info_n4qlp_iv7e8_235 > a:not(#\9):active, .awsui_additional-info_n4qlp_iv7e8_235 > a:not(#\9):focus, .awsui_additional-info_n4qlp_iv7e8_235 > a:not(#\9):hover {
278
+ .awsui_additional-info_n4qlp_1sk08_235 > a:not(#\9):active, .awsui_additional-info_n4qlp_1sk08_235 > a:not(#\9):focus, .awsui_additional-info_n4qlp_1sk08_235 > a:not(#\9):hover {
279
279
  text-decoration-line: underline;
280
280
  text-decoration-color: currentColor;
281
281
  }
282
282
 
283
- .awsui_add-row_n4qlp_iv7e8_281:not(#\9) {
283
+ .awsui_add-row_n4qlp_1sk08_281:not(#\9) {
284
284
  grid-column: 1/-1;
285
285
  }
286
286
 
287
- .awsui_add-button_n4qlp_iv7e8_285:not(#\9) {
287
+ .awsui_add-button_n4qlp_1sk08_285:not(#\9) {
288
288
  /* used in test-utils */
289
289
  }
290
290
 
291
- .awsui_remove-button-container_n4qlp_iv7e8_289:not(#\9) {
291
+ .awsui_remove-button-container_n4qlp_1sk08_289:not(#\9) {
292
292
  display: inline-block;
293
293
  }
294
294
 
295
- .awsui_remove-button-field-padding_n4qlp_iv7e8_293:not(#\9) {
295
+ .awsui_remove-button-field-padding_n4qlp_1sk08_293:not(#\9) {
296
296
  padding-block-start: calc(var(--space-xxs-hwfkai, 4px) + var(--line-height-body-m-2mh3ke, 20px));
297
297
  }
298
298
 
299
- .awsui_remove-button-own-row_n4qlp_iv7e8_297:not(#\9) {
299
+ .awsui_remove-button-own-row_n4qlp_1sk08_297:not(#\9) {
300
300
  justify-self: end;
301
301
  }
302
302
 
303
- .awsui_remove-button_n4qlp_iv7e8_289:not(#\9) {
303
+ .awsui_remove-button_n4qlp_1sk08_289:not(#\9) {
304
304
  /* used in test-utils */
305
305
  }
@@ -2,20 +2,20 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "empty-appear": "awsui_empty-appear_n4qlp_iv7e8_153",
6
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_n4qlp_iv7e8_1",
7
- "root": "awsui_root_n4qlp_iv7e8_175",
8
- "empty": "awsui_empty_n4qlp_iv7e8_153",
9
- "row": "awsui_row_n4qlp_iv7e8_218",
10
- "divider": "awsui_divider_n4qlp_iv7e8_222",
11
- "row-control": "awsui_row-control_n4qlp_iv7e8_227",
12
- "field": "awsui_field_n4qlp_iv7e8_231",
13
- "additional-info": "awsui_additional-info_n4qlp_iv7e8_235",
14
- "add-row": "awsui_add-row_n4qlp_iv7e8_281",
15
- "add-button": "awsui_add-button_n4qlp_iv7e8_285",
16
- "remove-button-container": "awsui_remove-button-container_n4qlp_iv7e8_289",
17
- "remove-button-field-padding": "awsui_remove-button-field-padding_n4qlp_iv7e8_293",
18
- "remove-button-own-row": "awsui_remove-button-own-row_n4qlp_iv7e8_297",
19
- "remove-button": "awsui_remove-button_n4qlp_iv7e8_289"
5
+ "empty-appear": "awsui_empty-appear_n4qlp_1sk08_153",
6
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_n4qlp_1sk08_1",
7
+ "root": "awsui_root_n4qlp_1sk08_175",
8
+ "empty": "awsui_empty_n4qlp_1sk08_153",
9
+ "row": "awsui_row_n4qlp_1sk08_218",
10
+ "divider": "awsui_divider_n4qlp_1sk08_222",
11
+ "row-control": "awsui_row-control_n4qlp_1sk08_227",
12
+ "field": "awsui_field_n4qlp_1sk08_231",
13
+ "additional-info": "awsui_additional-info_n4qlp_1sk08_235",
14
+ "add-row": "awsui_add-row_n4qlp_1sk08_281",
15
+ "add-button": "awsui_add-button_n4qlp_1sk08_285",
16
+ "remove-button-container": "awsui_remove-button-container_n4qlp_1sk08_289",
17
+ "remove-button-field-padding": "awsui_remove-button-field-padding_n4qlp_1sk08_293",
18
+ "remove-button-own-row": "awsui_remove-button-own-row_n4qlp_1sk08_297",
19
+ "remove-button": "awsui_remove-button_n4qlp_1sk08_289"
20
20
  };
21
21
 
@@ -1,12 +1,12 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "link": "awsui_link_1kosq_k3g2h_145",
5
- "breadcrumb": "awsui_breadcrumb_1kosq_k3g2h_149",
6
- "ghost-breadcrumb": "awsui_ghost-breadcrumb_1kosq_k3g2h_150",
7
- "icon": "awsui_icon_1kosq_k3g2h_153",
8
- "anchor": "awsui_anchor_1kosq_k3g2h_159",
9
- "text": "awsui_text_1kosq_k3g2h_206",
10
- "last": "awsui_last_1kosq_k3g2h_225"
4
+ "link": "awsui_link_1kosq_2grhb_145",
5
+ "breadcrumb": "awsui_breadcrumb_1kosq_2grhb_149",
6
+ "ghost-breadcrumb": "awsui_ghost-breadcrumb_1kosq_2grhb_150",
7
+ "icon": "awsui_icon_1kosq_2grhb_153",
8
+ "anchor": "awsui_anchor_1kosq_2grhb_159",
9
+ "text": "awsui_text_1kosq_2grhb_206",
10
+ "last": "awsui_last_1kosq_2grhb_225"
11
11
  };
12
12
 
@@ -142,27 +142,27 @@
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_link_1kosq_k3g2h_145:not(#\9):after {
145
+ .awsui_link_1kosq_2grhb_145:not(#\9):after {
146
146
  display: none;
147
147
  }
148
148
 
149
- .awsui_breadcrumb_1kosq_k3g2h_149:not(#\9),
150
- .awsui_ghost-breadcrumb_1kosq_k3g2h_150:not(#\9) {
149
+ .awsui_breadcrumb_1kosq_2grhb_149:not(#\9),
150
+ .awsui_ghost-breadcrumb_1kosq_2grhb_150:not(#\9) {
151
151
  display: flex;
152
152
  }
153
- .awsui_breadcrumb_1kosq_k3g2h_149 > .awsui_icon_1kosq_k3g2h_153:not(#\9),
154
- .awsui_ghost-breadcrumb_1kosq_k3g2h_150 > .awsui_icon_1kosq_k3g2h_153:not(#\9) {
153
+ .awsui_breadcrumb_1kosq_2grhb_149 > .awsui_icon_1kosq_2grhb_153:not(#\9),
154
+ .awsui_ghost-breadcrumb_1kosq_2grhb_150 > .awsui_icon_1kosq_2grhb_153:not(#\9) {
155
155
  margin-block: 0;
156
156
  margin-inline: var(--space-xs-ymlm0b, 8px);
157
157
  color: var(--color-text-breadcrumb-icon-9j48ot, #8c8c94);
158
158
  }
159
- .awsui_breadcrumb_1kosq_k3g2h_149 > .awsui_anchor_1kosq_k3g2h_159:not(#\9),
160
- .awsui_ghost-breadcrumb_1kosq_k3g2h_150 > .awsui_anchor_1kosq_k3g2h_159:not(#\9) {
159
+ .awsui_breadcrumb_1kosq_2grhb_149 > .awsui_anchor_1kosq_2grhb_159:not(#\9),
160
+ .awsui_ghost-breadcrumb_1kosq_2grhb_150 > .awsui_anchor_1kosq_2grhb_159:not(#\9) {
161
161
  min-inline-size: 0;
162
162
  overflow: hidden;
163
163
  text-underline-offset: 0.25em;
164
164
  text-decoration-thickness: 1px;
165
- color: var(--color-text-link-default-1dmm7z, #006ce0);
165
+ color: var(--awsui-style-color-default-kcc2gu, var(--color-text-link-default-1dmm7z, #006ce0));
166
166
  font-weight: inherit;
167
167
  letter-spacing: normal;
168
168
  text-decoration-line: underline;
@@ -173,42 +173,42 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
173
173
  transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
174
174
  }
175
175
  @media (prefers-reduced-motion: reduce) {
176
- .awsui_breadcrumb_1kosq_k3g2h_149 > .awsui_anchor_1kosq_k3g2h_159:not(#\9),
177
- .awsui_ghost-breadcrumb_1kosq_k3g2h_150 > .awsui_anchor_1kosq_k3g2h_159:not(#\9) {
176
+ .awsui_breadcrumb_1kosq_2grhb_149 > .awsui_anchor_1kosq_2grhb_159:not(#\9),
177
+ .awsui_ghost-breadcrumb_1kosq_2grhb_150 > .awsui_anchor_1kosq_2grhb_159:not(#\9) {
178
178
  animation: none;
179
179
  transition: none;
180
180
  }
181
181
  }
182
- .awsui-motion-disabled .awsui_breadcrumb_1kosq_k3g2h_149 > .awsui_anchor_1kosq_k3g2h_159:not(#\9), .awsui-mode-entering .awsui_breadcrumb_1kosq_k3g2h_149 > .awsui_anchor_1kosq_k3g2h_159:not(#\9), .awsui-motion-disabled .awsui_ghost-breadcrumb_1kosq_k3g2h_150 > .awsui_anchor_1kosq_k3g2h_159:not(#\9), .awsui-mode-entering .awsui_ghost-breadcrumb_1kosq_k3g2h_150 > .awsui_anchor_1kosq_k3g2h_159:not(#\9) {
182
+ .awsui-motion-disabled .awsui_breadcrumb_1kosq_2grhb_149 > .awsui_anchor_1kosq_2grhb_159:not(#\9), .awsui-mode-entering .awsui_breadcrumb_1kosq_2grhb_149 > .awsui_anchor_1kosq_2grhb_159:not(#\9), .awsui-motion-disabled .awsui_ghost-breadcrumb_1kosq_2grhb_150 > .awsui_anchor_1kosq_2grhb_159:not(#\9), .awsui-mode-entering .awsui_ghost-breadcrumb_1kosq_2grhb_150 > .awsui_anchor_1kosq_2grhb_159:not(#\9) {
183
183
  animation: none;
184
184
  transition: none;
185
185
  }
186
- .awsui_breadcrumb_1kosq_k3g2h_149 > .awsui_anchor_1kosq_k3g2h_159:not(#\9):hover,
187
- .awsui_ghost-breadcrumb_1kosq_k3g2h_150 > .awsui_anchor_1kosq_k3g2h_159:not(#\9):hover {
186
+ .awsui_breadcrumb_1kosq_2grhb_149 > .awsui_anchor_1kosq_2grhb_159:not(#\9):hover,
187
+ .awsui_ghost-breadcrumb_1kosq_2grhb_150 > .awsui_anchor_1kosq_2grhb_159:not(#\9):hover {
188
188
  cursor: pointer;
189
- color: var(--color-text-link-hover-sq1gxg, #002b66);
189
+ color: var(--awsui-style-color-hover-kcc2gu, var(--color-text-link-hover-sq1gxg, #002b66));
190
190
  }
191
- .awsui_breadcrumb_1kosq_k3g2h_149 > .awsui_anchor_1kosq_k3g2h_159:not(#\9):focus,
192
- .awsui_ghost-breadcrumb_1kosq_k3g2h_150 > .awsui_anchor_1kosq_k3g2h_159:not(#\9):focus {
191
+ .awsui_breadcrumb_1kosq_2grhb_149 > .awsui_anchor_1kosq_2grhb_159:not(#\9):focus,
192
+ .awsui_ghost-breadcrumb_1kosq_2grhb_150 > .awsui_anchor_1kosq_2grhb_159:not(#\9):focus {
193
193
  outline: none;
194
194
  }
195
- .awsui_breadcrumb_1kosq_k3g2h_149 > .awsui_anchor_1kosq_k3g2h_159:not(#\9):active,
196
- .awsui_ghost-breadcrumb_1kosq_k3g2h_150 > .awsui_anchor_1kosq_k3g2h_159:not(#\9):active {
197
- color: var(--color-text-link-hover-sq1gxg, #002b66);
195
+ .awsui_breadcrumb_1kosq_2grhb_149 > .awsui_anchor_1kosq_2grhb_159:not(#\9):active,
196
+ .awsui_ghost-breadcrumb_1kosq_2grhb_150 > .awsui_anchor_1kosq_2grhb_159:not(#\9):active {
197
+ color: var(--awsui-style-color-active-kcc2gu, var(--color-text-link-hover-sq1gxg, #002b66));
198
198
  }
199
- .awsui_breadcrumb_1kosq_k3g2h_149 > .awsui_anchor_1kosq_k3g2h_159:not(#\9):active, .awsui_breadcrumb_1kosq_k3g2h_149 > .awsui_anchor_1kosq_k3g2h_159:not(#\9):focus, .awsui_breadcrumb_1kosq_k3g2h_149 > .awsui_anchor_1kosq_k3g2h_159:not(#\9):hover, .awsui_ghost-breadcrumb_1kosq_k3g2h_150 > .awsui_anchor_1kosq_k3g2h_159:not(#\9):active, .awsui_ghost-breadcrumb_1kosq_k3g2h_150 > .awsui_anchor_1kosq_k3g2h_159:not(#\9):focus, .awsui_ghost-breadcrumb_1kosq_k3g2h_150 > .awsui_anchor_1kosq_k3g2h_159:not(#\9):hover {
199
+ .awsui_breadcrumb_1kosq_2grhb_149 > .awsui_anchor_1kosq_2grhb_159:not(#\9):active, .awsui_breadcrumb_1kosq_2grhb_149 > .awsui_anchor_1kosq_2grhb_159:not(#\9):focus, .awsui_breadcrumb_1kosq_2grhb_149 > .awsui_anchor_1kosq_2grhb_159:not(#\9):hover, .awsui_ghost-breadcrumb_1kosq_2grhb_150 > .awsui_anchor_1kosq_2grhb_159:not(#\9):active, .awsui_ghost-breadcrumb_1kosq_2grhb_150 > .awsui_anchor_1kosq_2grhb_159:not(#\9):focus, .awsui_ghost-breadcrumb_1kosq_2grhb_150 > .awsui_anchor_1kosq_2grhb_159:not(#\9):hover {
200
200
  text-decoration-line: underline;
201
201
  text-decoration-color: currentColor;
202
202
  }
203
- .awsui_breadcrumb_1kosq_k3g2h_149 > .awsui_anchor_1kosq_k3g2h_159 > .awsui_text_1kosq_k3g2h_206:not(#\9),
204
- .awsui_ghost-breadcrumb_1kosq_k3g2h_150 > .awsui_anchor_1kosq_k3g2h_159 > .awsui_text_1kosq_k3g2h_206:not(#\9) {
203
+ .awsui_breadcrumb_1kosq_2grhb_149 > .awsui_anchor_1kosq_2grhb_159 > .awsui_text_1kosq_2grhb_206:not(#\9),
204
+ .awsui_ghost-breadcrumb_1kosq_2grhb_150 > .awsui_anchor_1kosq_2grhb_159 > .awsui_text_1kosq_2grhb_206:not(#\9) {
205
205
  overflow: hidden;
206
206
  text-overflow: ellipsis;
207
207
  white-space: nowrap;
208
208
  display: block;
209
209
  }
210
- body[data-awsui-focus-visible=true] .awsui_breadcrumb_1kosq_k3g2h_149 > .awsui_anchor_1kosq_k3g2h_159:not(#\9):focus,
211
- body[data-awsui-focus-visible=true] .awsui_ghost-breadcrumb_1kosq_k3g2h_150 > .awsui_anchor_1kosq_k3g2h_159:not(#\9):focus {
210
+ body[data-awsui-focus-visible=true] .awsui_breadcrumb_1kosq_2grhb_149 > .awsui_anchor_1kosq_2grhb_159:not(#\9):focus,
211
+ body[data-awsui-focus-visible=true] .awsui_ghost-breadcrumb_1kosq_2grhb_150 > .awsui_anchor_1kosq_2grhb_159:not(#\9):focus {
212
212
  outline: thin dotted;
213
213
  outline: var(--border-link-focus-ring-outline-1p0hnu, 0);
214
214
  outline-offset: 2px;
@@ -219,12 +219,12 @@ body[data-awsui-focus-visible=true] .awsui_ghost-breadcrumb_1kosq_k3g2h_150 > .a
219
219
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
220
220
  box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-39uvxr, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
221
221
  }
222
- .awsui_breadcrumb_1kosq_k3g2h_149.awsui_last_1kosq_k3g2h_225 > .awsui_icon_1kosq_k3g2h_153:not(#\9),
223
- .awsui_ghost-breadcrumb_1kosq_k3g2h_150.awsui_last_1kosq_k3g2h_225 > .awsui_icon_1kosq_k3g2h_153:not(#\9) {
222
+ .awsui_breadcrumb_1kosq_2grhb_149.awsui_last_1kosq_2grhb_225 > .awsui_icon_1kosq_2grhb_153:not(#\9),
223
+ .awsui_ghost-breadcrumb_1kosq_2grhb_150.awsui_last_1kosq_2grhb_225 > .awsui_icon_1kosq_2grhb_153:not(#\9) {
224
224
  display: none;
225
225
  }
226
- .awsui_breadcrumb_1kosq_k3g2h_149.awsui_last_1kosq_k3g2h_225 > .awsui_anchor_1kosq_k3g2h_159:not(#\9),
227
- .awsui_ghost-breadcrumb_1kosq_k3g2h_150.awsui_last_1kosq_k3g2h_225 > .awsui_anchor_1kosq_k3g2h_159:not(#\9) {
226
+ .awsui_breadcrumb_1kosq_2grhb_149.awsui_last_1kosq_2grhb_225 > .awsui_anchor_1kosq_2grhb_159:not(#\9),
227
+ .awsui_ghost-breadcrumb_1kosq_2grhb_150.awsui_last_1kosq_2grhb_225 > .awsui_anchor_1kosq_2grhb_159:not(#\9) {
228
228
  color: var(--color-text-breadcrumb-current-2mqnkk, #656871);
229
229
  font-weight: 700;
230
230
  text-decoration: none;
@@ -2,12 +2,12 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "link": "awsui_link_1kosq_k3g2h_145",
6
- "breadcrumb": "awsui_breadcrumb_1kosq_k3g2h_149",
7
- "ghost-breadcrumb": "awsui_ghost-breadcrumb_1kosq_k3g2h_150",
8
- "icon": "awsui_icon_1kosq_k3g2h_153",
9
- "anchor": "awsui_anchor_1kosq_k3g2h_159",
10
- "text": "awsui_text_1kosq_k3g2h_206",
11
- "last": "awsui_last_1kosq_k3g2h_225"
5
+ "link": "awsui_link_1kosq_2grhb_145",
6
+ "breadcrumb": "awsui_breadcrumb_1kosq_2grhb_149",
7
+ "ghost-breadcrumb": "awsui_ghost-breadcrumb_1kosq_2grhb_150",
8
+ "icon": "awsui_icon_1kosq_2grhb_153",
9
+ "anchor": "awsui_anchor_1kosq_2grhb_159",
10
+ "text": "awsui_text_1kosq_2grhb_206",
11
+ "last": "awsui_last_1kosq_2grhb_225"
12
12
  };
13
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"category-element.d.ts","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/category-element.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAK9C,QAAA,MAAM,eAAe,qKAalB,aAAa,gBAkCf,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"category-element.d.ts","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/category-element.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAK9C,QAAA,MAAM,eAAe,qKAalB,aAAa,gBAyCf,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -2,13 +2,18 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import React from 'react';
4
4
  import clsx from 'clsx';
5
+ import InternalIcon from '../../icon/internal';
5
6
  import ItemsList from '../items-list';
6
7
  import styles from './styles.css.js';
7
8
  const CategoryElement = ({ item, onItemActivate, onGroupToggle, targetItem, isHighlighted, isKeyboardHighlight, isExpanded, lastInDropdown, highlightItem, disabled, variant, position, }) => {
8
9
  // Hide the category title element from screen readers because it will be
9
10
  // provided as an ARIA label.
10
11
  return (React.createElement("li", { className: clsx(styles.category, styles[`variant-${variant}`], disabled && styles.disabled), role: "presentation" },
11
- item.text && (React.createElement("p", { className: clsx(styles.header, { [styles.disabled]: disabled }), "aria-hidden": "true" }, item.text)),
12
+ item.text && (React.createElement("p", { className: clsx(styles.header, { [styles.disabled]: disabled }), "aria-hidden": "true" },
13
+ React.createElement("span", { className: styles['header-content'] },
14
+ (item.iconName || item.iconUrl || item.iconSvg) && (React.createElement("span", { className: styles['icon-wrapper'] },
15
+ React.createElement(InternalIcon, { name: item.iconName, url: item.iconUrl, svg: item.iconSvg, alt: item.iconAlt }))),
16
+ item.text))),
12
17
  React.createElement("ul", { className: styles['items-list-container'], role: "group", "aria-label": item.text, "aria-disabled": disabled }, item.items && (React.createElement(ItemsList, { items: item.items, onItemActivate: onItemActivate, onGroupToggle: onGroupToggle, targetItem: targetItem, isHighlighted: isHighlighted, isKeyboardHighlight: isKeyboardHighlight, isExpanded: isExpanded, lastInDropdown: lastInDropdown, highlightItem: highlightItem, categoryDisabled: disabled, hasCategoryHeader: !!item.text, variant: variant, position: position })))));
13
18
  };
14
19
  export default CategoryElement;
@@ -1 +1 @@
1
- {"version":3,"file":"category-element.js","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/category-element.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,SAAS,MAAM,eAAe,CAAC;AAEtC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,eAAe,GAAG,CAAC,EACvB,IAAI,EACJ,cAAc,EACd,aAAa,EACb,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,aAAa,EACb,QAAQ,EACR,OAAO,EACP,QAAQ,GACM,EAAE,EAAE;IAClB,yEAAyE;IACzE,6BAA6B;IAC7B,OAAO,CACL,4BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,WAAW,OAAO,EAAE,CAAC,EAAE,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,EAC3F,IAAI,EAAC,cAAc;QAElB,IAAI,CAAC,IAAI,IAAI,CACZ,2BAAG,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,iBAAc,MAAM,IACnF,IAAI,CAAC,IAAI,CACR,CACL;QACD,4BAAI,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC,EAAE,IAAI,EAAC,OAAO,gBAAa,IAAI,CAAC,IAAI,mBAAiB,QAAQ,IACvG,IAAI,CAAC,KAAK,IAAI,CACb,oBAAC,SAAS,IACR,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,mBAAmB,EACxC,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,QAAQ,EAC1B,iBAAiB,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,EAC9B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,GAClB,CACH,CACE,CACF,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { CategoryProps } from '../interfaces';\nimport ItemsList from '../items-list';\n\nimport styles from './styles.css.js';\n\nconst CategoryElement = ({\n item,\n onItemActivate,\n onGroupToggle,\n targetItem,\n isHighlighted,\n isKeyboardHighlight,\n isExpanded,\n lastInDropdown,\n highlightItem,\n disabled,\n variant,\n position,\n}: CategoryProps) => {\n // Hide the category title element from screen readers because it will be\n // provided as an ARIA label.\n return (\n <li\n className={clsx(styles.category, styles[`variant-${variant}`], disabled && styles.disabled)}\n role=\"presentation\"\n >\n {item.text && (\n <p className={clsx(styles.header, { [styles.disabled]: disabled })} aria-hidden=\"true\">\n {item.text}\n </p>\n )}\n <ul className={styles['items-list-container']} role=\"group\" aria-label={item.text} aria-disabled={disabled}>\n {item.items && (\n <ItemsList\n items={item.items}\n onItemActivate={onItemActivate}\n onGroupToggle={onGroupToggle}\n targetItem={targetItem}\n isHighlighted={isHighlighted}\n isKeyboardHighlight={isKeyboardHighlight}\n isExpanded={isExpanded}\n lastInDropdown={lastInDropdown}\n highlightItem={highlightItem}\n categoryDisabled={disabled}\n hasCategoryHeader={!!item.text}\n variant={variant}\n position={position}\n />\n )}\n </ul>\n </li>\n );\n};\n\nexport default CategoryElement;\n"]}
1
+ {"version":3,"file":"category-element.js","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/category-element.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAE/C,OAAO,SAAS,MAAM,eAAe,CAAC;AAEtC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,eAAe,GAAG,CAAC,EACvB,IAAI,EACJ,cAAc,EACd,aAAa,EACb,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,aAAa,EACb,QAAQ,EACR,OAAO,EACP,QAAQ,GACM,EAAE,EAAE;IAClB,yEAAyE;IACzE,6BAA6B;IAC7B,OAAO,CACL,4BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,WAAW,OAAO,EAAE,CAAC,EAAE,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,EAC3F,IAAI,EAAC,cAAc;QAElB,IAAI,CAAC,IAAI,IAAI,CACZ,2BAAG,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,iBAAc,MAAM;YACpF,8BAAM,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC;gBACtC,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAClD,8BAAM,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC;oBACrC,oBAAC,YAAY,IAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,OAAO,GAAI,CACzF,CACR;gBACA,IAAI,CAAC,IAAI,CACL,CACL,CACL;QACD,4BAAI,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC,EAAE,IAAI,EAAC,OAAO,gBAAa,IAAI,CAAC,IAAI,mBAAiB,QAAQ,IACvG,IAAI,CAAC,KAAK,IAAI,CACb,oBAAC,SAAS,IACR,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,mBAAmB,EACxC,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,QAAQ,EAC1B,iBAAiB,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,EAC9B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,GAClB,CACH,CACE,CACF,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport InternalIcon from '../../icon/internal';\nimport { CategoryProps } from '../interfaces';\nimport ItemsList from '../items-list';\n\nimport styles from './styles.css.js';\n\nconst CategoryElement = ({\n item,\n onItemActivate,\n onGroupToggle,\n targetItem,\n isHighlighted,\n isKeyboardHighlight,\n isExpanded,\n lastInDropdown,\n highlightItem,\n disabled,\n variant,\n position,\n}: CategoryProps) => {\n // Hide the category title element from screen readers because it will be\n // provided as an ARIA label.\n return (\n <li\n className={clsx(styles.category, styles[`variant-${variant}`], disabled && styles.disabled)}\n role=\"presentation\"\n >\n {item.text && (\n <p className={clsx(styles.header, { [styles.disabled]: disabled })} aria-hidden=\"true\">\n <span className={styles['header-content']}>\n {(item.iconName || item.iconUrl || item.iconSvg) && (\n <span className={styles['icon-wrapper']}>\n <InternalIcon name={item.iconName} url={item.iconUrl} svg={item.iconSvg} alt={item.iconAlt} />\n </span>\n )}\n {item.text}\n </span>\n </p>\n )}\n <ul className={styles['items-list-container']} role=\"group\" aria-label={item.text} aria-disabled={disabled}>\n {item.items && (\n <ItemsList\n items={item.items}\n onItemActivate={onItemActivate}\n onGroupToggle={onGroupToggle}\n targetItem={targetItem}\n isHighlighted={isHighlighted}\n isKeyboardHighlight={isKeyboardHighlight}\n isExpanded={isExpanded}\n lastInDropdown={lastInDropdown}\n highlightItem={highlightItem}\n categoryDisabled={disabled}\n hasCategoryHeader={!!item.text}\n variant={variant}\n position={position}\n />\n )}\n </ul>\n </li>\n );\n};\n\nexport default CategoryElement;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"expandable-category-element.d.ts","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/expandable-category-element.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAO9C,QAAA,MAAM,yBAAyB,uLAc5B,aAAa,gBA+Hf,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"expandable-category-element.d.ts","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/expandable-category-element.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAO9C,QAAA,MAAM,yBAAyB,uLAc5B,aAAa,gBAoIf,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -55,6 +55,8 @@ const ExpandableCategoryElement = ({ item, onItemActivate, onGroupToggle, target
55
55
  id: item.id || '',
56
56
  },
57
57
  })),
58
+ (item.iconName || item.iconUrl || item.iconSvg) && (React.createElement("span", { className: styles['icon-wrapper'] },
59
+ React.createElement(InternalIcon, { name: item.iconName, url: item.iconUrl, svg: item.iconSvg, alt: item.iconAlt }))),
58
60
  item.text,
59
61
  React.createElement("span", { className: clsx(styles['expand-icon'], styles['expand-icon-right']) },
60
62
  React.createElement(InternalIcon, { name: "caret-down-filled" }))));
@@ -1 +1 @@
1
- {"version":3,"file":"expandable-category-element.js","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/expandable-category-element.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,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,QAAQ,MAAM,oCAAoC,CAAC;AAC1D,OAAO,oBAAoB,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAMxE,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,yBAAyB,GAAG,CAAC,EACjC,IAAI,EACJ,cAAc,EACd,aAAa,EACb,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,OAAO,EACP,QAAQ,GACM,E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AAY,EAAE,OAAO,IAEpB,OAAO,CACL,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,yBAAyB,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 { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalIcon from '../../icon/internal';\nimport Dropdown from '../../internal/components/dropdown';\nimport useHiddenDescription from '../../internal/hooks/use-hidden-description';\nimport { useVisualRefresh } from '../../internal/hooks/use-visual-mode';\nimport {\n GeneratedAnalyticsMetadataButtonDropdownCollapse,\n GeneratedAnalyticsMetadataButtonDropdownExpand,\n} from '../analytics-metadata/interfaces.js';\nimport { CategoryProps } from '../interfaces';\nimport ItemsList from '../items-list';\nimport Tooltip from '../tooltip.js';\nimport { getMenuItemProps } from '../utils/menu-item';\n\nimport styles from './styles.css.js';\n\nconst ExpandableCategoryElement = ({\n item,\n onItemActivate,\n onGroupToggle,\n targetItem,\n isHighlighted,\n isKeyboardHighlight,\n isExpanded,\n lastInDropdown,\n highlightItem,\n disabled,\n expandToViewport,\n variant,\n position,\n}: CategoryProps) => {\n const highlighted = isHighlighted(item);\n const expanded = isExpanded(item);\n const isKeyboardHighlighted = isKeyboardHighlight(item);\n const triggerRef = React.useRef<HTMLSpanElement>(null);\n const ref = useRef<HTMLLIElement>(null);\n\n useEffect(() => {\n if (triggerRef.current && highlighted && !expanded) {\n triggerRef.current.focus();\n }\n }, [expanded, highlighted]);\n\n const onClick: React.MouseEventHandler = event => {\n if (!disabled) {\n event.preventDefault();\n onGroupToggle(item, event);\n triggerRef.current?.focus();\n }\n };\n\n const onHover = () => {\n highlightItem(item);\n };\n\n const isVisualRefresh = useVisualRefresh();\n\n const isDisabledWithReason = !!item.disabledReason && item.disabled;\n const { targetProps, descriptionEl } = useHiddenDescription(item.disabledReason);\n const trigger = item.text && (\n <span\n className={clsx(styles.header, styles['expandable-header'], styles[`variant-${variant}`], {\n [styles.disabled]: disabled,\n [styles.highlighted]: highlighted,\n [styles['is-focused']]: isKeyboardHighlighted,\n [styles['visual-refresh']]: isVisualRefresh,\n })}\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 ref={triggerRef}\n {...getMenuItemProps({ parent: true, expanded, disabled })}\n {...(isDisabledWithReason ? targetProps : {})}\n {...getAnalyticsMetadataAttribute(\n disabled\n ? {}\n : ({\n action: !expanded ? 'expand' : 'collapse',\n detail: {\n position: position || '0',\n label: { root: 'self' },\n id: item.id || '',\n },\n } as GeneratedAnalyticsMetadataButtonDropdownExpand | GeneratedAnalyticsMetadataButtonDropdownCollapse)\n )}\n >\n {item.text}\n <span className={clsx(styles['expand-icon'], styles['expand-icon-right'])}>\n <InternalIcon name=\"caret-down-filled\" />\n </span>\n </span>\n );\n\n let content: React.ReactNode;\n // If the category element is disabled, we do not render a dropdown.\n // Screenreaders are confused by additional sections\n if (isDisabledWithReason) {\n content = (\n <Tooltip content={item.disabledReason}>\n {trigger}\n {descriptionEl}\n </Tooltip>\n );\n } else if (disabled) {\n content = trigger;\n } else {\n content = (\n <Dropdown\n open={expanded}\n stretchWidth={false}\n interior={true}\n expandToViewport={expandToViewport}\n trigger={trigger}\n >\n {item.items && expanded && (\n <ul\n role=\"menu\"\n aria-label={item.text}\n className={clsx(styles['items-list-container'], styles['in-dropdown'])}\n >\n <ItemsList\n items={item.items}\n onItemActivate={onItemActivate}\n onGroupToggle={onGroupToggle}\n targetItem={targetItem}\n isHighlighted={isHighlighted}\n isKeyboardHighlight={isKeyboardHighlight}\n isExpanded={isExpanded}\n lastInDropdown={lastInDropdown}\n highlightItem={highlightItem}\n variant={variant}\n position={position}\n />\n </ul>\n )}\n </Dropdown>\n );\n }\n\n return (\n <li\n className={clsx(styles.category, styles[`variant-${variant}`], styles.expandable, {\n [styles.expanded]: expanded,\n [styles.disabled]: disabled,\n [styles.highlighted]: highlighted,\n })}\n role=\"presentation\"\n data-testid={item.id}\n ref={ref}\n onClick={onClick}\n onMouseEnter={onHover}\n onTouchStart={onHover}\n >\n {content}\n </li>\n );\n};\n\nexport default ExpandableCategoryElement;\n"]}
1
+ {"version":3,"file":"expandable-category-element.js","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/expandable-category-element.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,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,QAAQ,MAAM,oCAAoC,CAAC;AAC1D,OAAO,oBAAoB,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAMxE,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,yBAAyB,GAAG,CAAC,EACjC,IAAI,EACJ,cAAc,EACd,aAAa,EACb,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,OAAO,EACP,QAAQ,GACM,EAAE,EAAE;IAClB,MAAM,WAAW,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IACxC,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,qBAAqB,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC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W;SAClC,CAAC,EACF,IAAI,EAAC,cAAc,iBACN,IAAI,CAAC,EAAE,EACpB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,OAAO,EACrB,YAAY,EAAE,OAAO,IAEpB,OAAO,CACL,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,yBAAyB,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 { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalIcon from '../../icon/internal';\nimport Dropdown from '../../internal/components/dropdown';\nimport useHiddenDescription from '../../internal/hooks/use-hidden-description';\nimport { useVisualRefresh } from '../../internal/hooks/use-visual-mode';\nimport {\n GeneratedAnalyticsMetadataButtonDropdownCollapse,\n GeneratedAnalyticsMetadataButtonDropdownExpand,\n} from '../analytics-metadata/interfaces.js';\nimport { CategoryProps } from '../interfaces';\nimport ItemsList from '../items-list';\nimport Tooltip from '../tooltip.js';\nimport { getMenuItemProps } from '../utils/menu-item';\n\nimport styles from './styles.css.js';\n\nconst ExpandableCategoryElement = ({\n item,\n onItemActivate,\n onGroupToggle,\n targetItem,\n isHighlighted,\n isKeyboardHighlight,\n isExpanded,\n lastInDropdown,\n highlightItem,\n disabled,\n expandToViewport,\n variant,\n position,\n}: CategoryProps) => {\n const highlighted = isHighlighted(item);\n const expanded = isExpanded(item);\n const isKeyboardHighlighted = isKeyboardHighlight(item);\n const triggerRef = React.useRef<HTMLSpanElement>(null);\n const ref = useRef<HTMLLIElement>(null);\n\n useEffect(() => {\n if (triggerRef.current && highlighted && !expanded) {\n triggerRef.current.focus();\n }\n }, [expanded, highlighted]);\n\n const onClick: React.MouseEventHandler = event => {\n if (!disabled) {\n event.preventDefault();\n onGroupToggle(item, event);\n triggerRef.current?.focus();\n }\n };\n\n const onHover = () => {\n highlightItem(item);\n };\n\n const isVisualRefresh = useVisualRefresh();\n\n const isDisabledWithReason = !!item.disabledReason && item.disabled;\n const { targetProps, descriptionEl } = useHiddenDescription(item.disabledReason);\n const trigger = item.text && (\n <span\n className={clsx(styles.header, styles['expandable-header'], styles[`variant-${variant}`], {\n [styles.disabled]: disabled,\n [styles.highlighted]: highlighted,\n [styles['is-focused']]: isKeyboardHighlighted,\n [styles['visual-refresh']]: isVisualRefresh,\n })}\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 ref={triggerRef}\n {...getMenuItemProps({ parent: true, expanded, disabled })}\n {...(isDisabledWithReason ? targetProps : {})}\n {...getAnalyticsMetadataAttribute(\n disabled\n ? {}\n : ({\n action: !expanded ? 'expand' : 'collapse',\n detail: {\n position: position || '0',\n label: { root: 'self' },\n id: item.id || '',\n },\n } as GeneratedAnalyticsMetadataButtonDropdownExpand | GeneratedAnalyticsMetadataButtonDropdownCollapse)\n )}\n >\n {(item.iconName || item.iconUrl || item.iconSvg) && (\n <span className={styles['icon-wrapper']}>\n <InternalIcon name={item.iconName} url={item.iconUrl} svg={item.iconSvg} alt={item.iconAlt} />\n </span>\n )}\n {item.text}\n <span className={clsx(styles['expand-icon'], styles['expand-icon-right'])}>\n <InternalIcon name=\"caret-down-filled\" />\n </span>\n </span>\n );\n\n let content: React.ReactNode;\n // If the category element is disabled, we do not render a dropdown.\n // Screenreaders are confused by additional sections\n if (isDisabledWithReason) {\n content = (\n <Tooltip content={item.disabledReason}>\n {trigger}\n {descriptionEl}\n </Tooltip>\n );\n } else if (disabled) {\n content = trigger;\n } else {\n content = (\n <Dropdown\n open={expanded}\n stretchWidth={false}\n interior={true}\n expandToViewport={expandToViewport}\n trigger={trigger}\n >\n {item.items && expanded && (\n <ul\n role=\"menu\"\n aria-label={item.text}\n className={clsx(styles['items-list-container'], styles['in-dropdown'])}\n >\n <ItemsList\n items={item.items}\n onItemActivate={onItemActivate}\n onGroupToggle={onGroupToggle}\n targetItem={targetItem}\n isHighlighted={isHighlighted}\n isKeyboardHighlight={isKeyboardHighlight}\n isExpanded={isExpanded}\n lastInDropdown={lastInDropdown}\n highlightItem={highlightItem}\n variant={variant}\n position={position}\n />\n </ul>\n )}\n </Dropdown>\n );\n }\n\n return (\n <li\n className={clsx(styles.category, styles[`variant-${variant}`], styles.expandable, {\n [styles.expanded]: expanded,\n [styles.disabled]: disabled,\n [styles.highlighted]: highlighted,\n })}\n role=\"presentation\"\n data-testid={item.id}\n ref={ref}\n onClick={onClick}\n onMouseEnter={onHover}\n onTouchStart={onHover}\n >\n {content}\n </li>\n );\n};\n\nexport default ExpandableCategoryElement;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"mobile-expandable-category-element.d.ts","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/mobile-expandable-category-element.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAQ9C,QAAA,MAAM,+BAA+B,qKAalC,aAAa,gBAsHf,CAAC;AAEF,eAAe,+BAA+B,CAAC"}
1
+ {"version":3,"file":"mobile-expandable-category-element.d.ts","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/mobile-expandable-category-element.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAQ9C,QAAA,MAAM,+BAA+B,qKAalC,aAAa,gBA2Hf,CAAC;AAEF,eAAe,+BAA+B,CAAC"}
@@ -51,6 +51,8 @@ const MobileExpandableCategoryElement = ({ item, onItemActivate, onGroupToggle,
51
51
  expanded: `${!expanded}`,
52
52
  },
53
53
  })),
54
+ (item.iconName || item.iconUrl || item.iconSvg) && (React.createElement("span", { className: styles['icon-wrapper'] },
55
+ React.createElement(InternalIcon, { name: item.iconName, url: item.iconUrl, svg: item.iconSvg, alt: item.iconAlt }))),
54
56
  item.text,
55
57
  React.createElement("span", { className: clsx(styles['expand-icon'], {
56
58
  [styles['expand-icon-up']]: expanded,