@cloudscape-design/components-themeable 3.0.753 → 3.0.755

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 (114) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/expandable-section/styles.scss +12 -5
  3. package/lib/internal/scss/internal/components/option/analytics-metadata/styles.scss +8 -0
  4. package/lib/internal/scss/internal/components/selectable-item/analytics-metadata/styles.scss +9 -0
  5. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
  6. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js +1 -1
  7. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
  8. package/lib/internal/template/autosuggest/autosuggest-option.d.ts.map +1 -1
  9. package/lib/internal/template/autosuggest/autosuggest-option.js +1 -1
  10. package/lib/internal/template/autosuggest/autosuggest-option.js.map +1 -1
  11. package/lib/internal/template/button-dropdown/interfaces.d.ts +5 -0
  12. package/lib/internal/template/button-dropdown/interfaces.d.ts.map +1 -1
  13. package/lib/internal/template/button-dropdown/interfaces.js.map +1 -1
  14. package/lib/internal/template/button-dropdown/internal.d.ts.map +1 -1
  15. package/lib/internal/template/button-dropdown/internal.js +4 -4
  16. package/lib/internal/template/button-dropdown/internal.js.map +1 -1
  17. package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
  18. package/lib/internal/template/expandable-section/expandable-section-header.js +6 -3
  19. package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
  20. package/lib/internal/template/expandable-section/interfaces.d.ts +2 -1
  21. package/lib/internal/template/expandable-section/interfaces.d.ts.map +1 -1
  22. package/lib/internal/template/expandable-section/interfaces.js.map +1 -1
  23. package/lib/internal/template/expandable-section/styles.css.js +34 -32
  24. package/lib/internal/template/expandable-section/styles.scoped.css +68 -67
  25. package/lib/internal/template/expandable-section/styles.selectors.js +34 -32
  26. package/lib/internal/template/expandable-section/utils.d.ts +1 -0
  27. package/lib/internal/template/expandable-section/utils.d.ts.map +1 -1
  28. package/lib/internal/template/expandable-section/utils.js +7 -3
  29. package/lib/internal/template/expandable-section/utils.js.map +1 -1
  30. package/lib/internal/template/i18n/messages/all.all.js +1 -1
  31. package/lib/internal/template/i18n/messages/all.all.json +1 -1
  32. package/lib/internal/template/i18n/messages/all.ar.js +1 -1
  33. package/lib/internal/template/i18n/messages/all.ar.json +1 -1
  34. package/lib/internal/template/i18n/messages/all.de.js +1 -1
  35. package/lib/internal/template/i18n/messages/all.de.json +1 -1
  36. package/lib/internal/template/i18n/messages/all.en-GB.js +1 -1
  37. package/lib/internal/template/i18n/messages/all.en-GB.json +1 -1
  38. package/lib/internal/template/i18n/messages/all.es.js +1 -1
  39. package/lib/internal/template/i18n/messages/all.es.json +1 -1
  40. package/lib/internal/template/i18n/messages/all.fr.js +1 -1
  41. package/lib/internal/template/i18n/messages/all.fr.json +1 -1
  42. package/lib/internal/template/i18n/messages/all.id.js +1 -1
  43. package/lib/internal/template/i18n/messages/all.id.json +1 -1
  44. package/lib/internal/template/i18n/messages/all.it.js +1 -1
  45. package/lib/internal/template/i18n/messages/all.it.json +1 -1
  46. package/lib/internal/template/i18n/messages/all.ja.js +1 -1
  47. package/lib/internal/template/i18n/messages/all.ja.json +1 -1
  48. package/lib/internal/template/i18n/messages/all.ko.js +1 -1
  49. package/lib/internal/template/i18n/messages/all.ko.json +1 -1
  50. package/lib/internal/template/i18n/messages/all.pt-BR.js +1 -1
  51. package/lib/internal/template/i18n/messages/all.pt-BR.json +1 -1
  52. package/lib/internal/template/i18n/messages/all.tr.js +1 -1
  53. package/lib/internal/template/i18n/messages/all.tr.json +1 -1
  54. package/lib/internal/template/i18n/messages/all.zh-CN.js +1 -1
  55. package/lib/internal/template/i18n/messages/all.zh-CN.json +1 -1
  56. package/lib/internal/template/i18n/messages/all.zh-TW.js +1 -1
  57. package/lib/internal/template/i18n/messages/all.zh-TW.json +1 -1
  58. package/lib/internal/template/internal/components/option/analytics-metadata/styles.css.js +6 -0
  59. package/lib/internal/template/internal/components/option/analytics-metadata/styles.scoped.css +7 -0
  60. package/lib/internal/template/internal/components/option/analytics-metadata/styles.selectors.js +7 -0
  61. package/lib/internal/template/internal/components/option/option-parts.d.ts.map +1 -1
  62. package/lib/internal/template/internal/components/option/option-parts.js +2 -1
  63. package/lib/internal/template/internal/components/option/option-parts.js.map +1 -1
  64. package/lib/internal/template/internal/components/selectable-item/analytics-metadata/interfaces.d.ts +11 -0
  65. package/lib/internal/template/internal/components/selectable-item/analytics-metadata/interfaces.d.ts.map +1 -0
  66. package/lib/internal/template/internal/components/selectable-item/analytics-metadata/interfaces.js +2 -0
  67. package/lib/internal/template/internal/components/selectable-item/analytics-metadata/interfaces.js.map +1 -0
  68. package/lib/internal/template/internal/components/selectable-item/analytics-metadata/styles.css.js +7 -0
  69. package/lib/internal/template/internal/components/selectable-item/analytics-metadata/styles.scoped.css +8 -0
  70. package/lib/internal/template/internal/components/selectable-item/analytics-metadata/styles.selectors.js +8 -0
  71. package/lib/internal/template/internal/components/selectable-item/analytics-metadata/utils.d.ts +4 -0
  72. package/lib/internal/template/internal/components/selectable-item/analytics-metadata/utils.d.ts.map +1 -0
  73. package/lib/internal/template/internal/components/selectable-item/analytics-metadata/utils.js +39 -0
  74. package/lib/internal/template/internal/components/selectable-item/analytics-metadata/utils.js.map +1 -0
  75. package/lib/internal/template/internal/components/selectable-item/index.d.ts +2 -26
  76. package/lib/internal/template/internal/components/selectable-item/index.d.ts.map +1 -1
  77. package/lib/internal/template/internal/components/selectable-item/index.js +9 -3
  78. package/lib/internal/template/internal/components/selectable-item/index.js.map +1 -1
  79. package/lib/internal/template/internal/components/selectable-item/interfaces.d.ts +35 -0
  80. package/lib/internal/template/internal/components/selectable-item/interfaces.d.ts.map +1 -0
  81. package/lib/internal/template/internal/components/selectable-item/interfaces.js +4 -0
  82. package/lib/internal/template/internal/components/selectable-item/interfaces.js.map +1 -0
  83. package/lib/internal/template/internal/components/token-list/analytics-metadata/interfaces.d.ts +9 -0
  84. package/lib/internal/template/internal/components/token-list/analytics-metadata/interfaces.d.ts.map +1 -0
  85. package/lib/internal/template/internal/components/token-list/analytics-metadata/interfaces.js +2 -0
  86. package/lib/internal/template/internal/components/token-list/analytics-metadata/interfaces.js.map +1 -0
  87. package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
  88. package/lib/internal/template/internal/components/token-list/token-limit-toggle.js +9 -1
  89. package/lib/internal/template/internal/components/token-list/token-limit-toggle.js.map +1 -1
  90. package/lib/internal/template/internal/environment.js +1 -1
  91. package/lib/internal/template/internal/environment.json +1 -1
  92. package/lib/internal/template/property-filter/token-editor.d.ts.map +1 -1
  93. package/lib/internal/template/property-filter/token-editor.js +1 -1
  94. package/lib/internal/template/property-filter/token-editor.js.map +1 -1
  95. package/lib/internal/template/select/parts/item.d.ts.map +1 -1
  96. package/lib/internal/template/select/parts/item.js +1 -1
  97. package/lib/internal/template/select/parts/item.js.map +1 -1
  98. package/lib/internal/template/select/parts/multiselect-item.d.ts.map +1 -1
  99. package/lib/internal/template/select/parts/multiselect-item.js +1 -1
  100. package/lib/internal/template/select/parts/multiselect-item.js.map +1 -1
  101. package/lib/internal/template/token-group/analytics-metadata/interfaces.d.ts +18 -0
  102. package/lib/internal/template/token-group/analytics-metadata/interfaces.d.ts.map +1 -0
  103. package/lib/internal/template/token-group/analytics-metadata/interfaces.js +2 -0
  104. package/lib/internal/template/token-group/analytics-metadata/interfaces.js.map +1 -0
  105. package/lib/internal/template/token-group/dismiss-button.d.ts.map +1 -1
  106. package/lib/internal/template/token-group/dismiss-button.js +9 -2
  107. package/lib/internal/template/token-group/dismiss-button.js.map +1 -1
  108. package/lib/internal/template/token-group/index.d.ts.map +1 -1
  109. package/lib/internal/template/token-group/index.js +9 -1
  110. package/lib/internal/template/token-group/index.js.map +1 -1
  111. package/lib/internal/template/token-group/internal.d.ts.map +1 -1
  112. package/lib/internal/template/token-group/internal.js +5 -2
  113. package/lib/internal/template/token-group/internal.js.map +1 -1
  114. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"expandable-section-header.js","sourceRoot":"","sources":["../../../src/expandable-section/expandable-section-header.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAA6D,MAAM,OAAO,CAAC;AAClF,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,cAAc,EAAE,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEtG,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAwCjD,MAAM,yCAAyC,GAAG,CAAC,QAAiB,EAAE,EAAE;IACtE,MAAM,QAAQ,GAAsD;QAClE,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;YAC5B,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE;SACzB;KACF,CAAC;IACF,OAAO,6BAA6B,CAAC,QAAQ,CAAC,CAAC;AACjD,CAAC,CAAC;AACF,MAAM,0BAA0B,GAAG,CAAC,EAClC,EAAE,EACF,SAAS,EACT,OAAO,EACP,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,SAAS,EACT,OAAO,GACsB,EAAE,EAAE;IACjC,OAAO,C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B,SAAS,EAAE,SAAS,IAChB,kBAAkB,GAErB,UAAU,CACiB,CAC/B,CAAC;KACH;IAED,IAAI,OAAO,KAAK,WAAW,IAAI,MAAM,IAAI,aAAa,EAAE;QACtD,QAAQ,CAAC,aAAa,EAAE,yFAAyF,CAAC,CAAC;KACpH;IAED,OAAO,CACL,oBAAC,0BAA0B,kBACzB,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,EAC3F,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,IAChB,kBAAkB,GAErB,MAAM,CACoB,CAC9B,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { KeyboardEventHandler, MouseEventHandler, ReactNode } from 'react';\nimport clsx from 'clsx';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalHeader, { Description as HeaderDescription } from '../header/internal';\nimport InternalIcon from '../icon/internal';\nimport { isDevelopment } from '../internal/is-development';\nimport { GeneratedAnalyticsMetadataExpandableSectionExpand } from './analytics-metadata/interfaces';\nimport { ExpandableSectionProps, InternalVariant } from './interfaces';\nimport { variantSupportsActions, variantSupportsDescription, variantSupportsInfoLink } from './utils';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\nexport const componentName = 'ExpandableSection';\n\ninterface ExpandableDefaultHeaderProps {\n id: string;\n descriptionId?: string;\n className?: string;\n children?: ReactNode;\n expanded: boolean;\n ariaControls: string;\n ariaLabel?: string;\n onKeyUp: KeyboardEventHandler;\n onKeyDown: KeyboardEventHandler;\n onClick: MouseEventHandler;\n icon: JSX.Element;\n variant: InternalVariant;\n}\n\ninterface ExpandableNavigationHeaderProps extends Omit<ExpandableDefaultHeaderProps, 'onKeyUp' | 'onKeyDown'> {\n ariaLabelledBy?: string;\n}\n\ninterface ExpandableHeaderTextWrapperProps extends ExpandableDefaultHeaderProps {\n headerDescription?: ReactNode;\n headerCounter?: string;\n headerInfo?: ReactNode;\n headerActions?: ReactNode;\n headingTagOverride?: ExpandableSectionProps.HeadingTag;\n}\n\ninterface ExpandableSectionHeaderProps extends Omit<ExpandableDefaultHeaderProps, 'children' | 'icon'> {\n header?: ReactNode;\n headerText?: ReactNode;\n headerDescription?: ReactNode;\n headerCounter?: string;\n headerInfo?: ReactNode;\n headerActions?: ReactNode;\n headingTagOverride?: ExpandableSectionProps.HeadingTag;\n ariaLabelledBy?: string;\n}\n\nconst getExpandActionAnalyticsMetadataAttribute = (expanded: boolean) => {\n const metadata: GeneratedAnalyticsMetadataExpandableSectionExpand = {\n action: 'expand',\n detail: {\n label: { root: 'component' },\n expanded: `${!expanded}`,\n },\n };\n return getAnalyticsMetadataAttribute(metadata);\n};\nconst ExpandableDeprecatedHeader = ({\n id,\n className,\n onClick,\n ariaLabel,\n ariaControls,\n expanded,\n children,\n icon,\n onKeyUp,\n onKeyDown,\n variant,\n}: ExpandableDefaultHeaderProps) => {\n return (\n <div\n id={id}\n role=\"button\"\n className={clsx(\n className,\n styles['expand-button'],\n styles['click-target'],\n styles['header-deprecated'],\n analyticsSelectors['header-label']\n )}\n tabIndex={0}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onClick={onClick}\n aria-label={ariaLabel}\n aria-controls={ariaControls}\n aria-expanded={expanded}\n {...getExpandActionAnalyticsMetadataAttribute(expanded)}\n >\n <div className={clsx(styles['icon-container'], styles[`icon-container-${variant}`])}>{icon}</div>\n {children}\n </div>\n );\n};\n\nconst ExpandableNavigationHeader = ({\n id,\n className,\n onClick,\n ariaLabelledBy,\n ariaLabel,\n ariaControls,\n expanded,\n children,\n icon,\n}: ExpandableNavigationHeaderProps) => {\n return (\n <div id={id} className={clsx(className, styles['click-target'], analyticsSelectors['header-label'])}>\n <button\n className={clsx(styles['icon-container'], styles['expand-button'])}\n aria-labelledby={ariaLabelledBy}\n aria-label={ariaLabel}\n aria-controls={ariaControls}\n aria-expanded={expanded}\n type=\"button\"\n onClick={onClick}\n {...getExpandActionAnalyticsMetadataAttribute(expanded)}\n >\n {icon}\n </button>\n {children}\n </div>\n );\n};\n\nconst ExpandableHeaderTextWrapper = ({\n id,\n descriptionId,\n className,\n onClick,\n ariaLabel,\n ariaControls,\n expanded,\n children,\n icon,\n headerDescription,\n headerCounter,\n headerInfo,\n headerActions,\n variant,\n headingTagOverride,\n onKeyUp,\n onKeyDown,\n}: ExpandableHeaderTextWrapperProps) => {\n const isContainer = variant === 'container';\n const HeadingTag = headingTagOverride || 'div';\n const supportsInteractiveElements = variantSupportsActions(variant);\n const restrictClickableArea = supportsInteractiveElements && (headerInfo || headerActions);\n const actions = supportsInteractiveElements && headerActions;\n const description = variantSupportsDescription(variant) && headerDescription && (\n <span id={descriptionId} className={styles[`description-${variant}`]}>\n {headerDescription}\n </span>\n );\n const listeners = { onClick, onKeyDown, onKeyUp };\n\n // If interactive elements are present, constrain the clickable area to only the icon and the header text\n // to prevent nesting interactive elements.\n const headerButtonListeners = restrictClickableArea ? listeners : undefined;\n // For the default and footer variants with description,\n // include also the immediate wrapper around it to include the entire row for backwards compatibility,\n // but exclude the description.\n const headingTagListeners = !headerButtonListeners && !isContainer && description ? listeners : undefined;\n // For all other cases, make the entire header clickable for backwards compatibility.\n const wrapperListeners = !headerButtonListeners && !headingTagListeners ? listeners : undefined;\n const headerButton = (\n <span\n className={clsx(\n styles['expand-button'],\n isContainer ? styles['header-container-button'] : styles['header-button'],\n headerButtonListeners && styles['click-target']\n )}\n role=\"button\"\n tabIndex={0}\n aria-label={ariaLabel}\n aria-labelledby={!ariaLabel && description ? id : undefined}\n aria-describedby={description ? descriptionId : undefined}\n aria-controls={ariaControls}\n aria-expanded={expanded}\n {...headerButtonListeners}\n {...(headerButtonListeners ? getExpandActionAnalyticsMetadataAttribute(expanded) : {})}\n >\n <span className={clsx(styles['icon-container'], styles[`icon-container-${variant}`])}>{icon}</span>\n <span id={id} className={clsx(styles['header-text'], analyticsSelectors['header-label'])}>\n {children}\n </span>\n </span>\n );\n\n return (\n <div\n className={clsx(className, wrapperListeners && styles['click-target'])}\n {...wrapperListeners}\n {...(wrapperListeners ? getExpandActionAnalyticsMetadataAttribute(expanded) : {})}\n >\n {isContainer ? (\n <InternalHeader\n variant=\"h2\"\n description={description}\n counter={headerCounter}\n info={headerInfo}\n actions={actions}\n headingTagOverride={headingTagOverride}\n >\n {headerButton}\n </InternalHeader>\n ) : (\n <>\n <div className={clsx(actions && styles['header-actions-wrapper'])}>\n <HeadingTag\n className={clsx(styles['header-wrapper'], headingTagListeners && styles['click-target'])}\n {...headingTagListeners}\n {...(headingTagListeners ? getExpandActionAnalyticsMetadataAttribute(expanded) : {})}\n >\n {headerButton}\n </HeadingTag>\n {actions}\n </div>\n {description && <HeaderDescription variantOverride=\"h3\">{description}</HeaderDescription>}\n </>\n )}\n </div>\n );\n};\n\nexport const ExpandableSectionHeader = ({\n id,\n descriptionId,\n className,\n variant,\n header,\n headerText,\n headerDescription,\n headerCounter,\n headerInfo,\n headerActions,\n headingTagOverride,\n expanded,\n ariaControls,\n ariaLabel,\n ariaLabelledBy,\n onKeyUp,\n onKeyDown,\n onClick,\n}: ExpandableSectionHeaderProps) => {\n const alwaysShowDivider = variant === 'default' && headerActions;\n const icon = (\n <InternalIcon\n size={variant === 'container' ? 'medium' : 'normal'}\n className={clsx(styles.icon, expanded && styles.expanded)}\n name=\"caret-down-filled\"\n />\n );\n const defaultHeaderProps = {\n id: id,\n icon: icon,\n expanded: expanded,\n ariaControls: ariaControls,\n ariaLabel: ariaLabel,\n onClick: onClick,\n variant,\n };\n\n if ((headerCounter || headerInfo) && !variantSupportsInfoLink(variant) && isDevelopment) {\n warnOnce(\n componentName,\n 'The `headerCounter` and `headerInfo` props are only supported for the \"container\" variant.'\n );\n }\n\n if (headerActions && !variantSupportsActions(variant) && isDevelopment) {\n warnOnce(componentName, `The \\`headerActions\\` prop is only supported for the \"container\" and \"default\" variants.`);\n }\n\n if (headerDescription && !variantSupportsDescription(variant) && isDevelopment) {\n warnOnce(componentName, `The \\`headerDescription\\` prop is not supported for the ${variant} variant.`);\n }\n\n const wrapperClassName = clsx(\n styles.wrapper,\n styles[`wrapper-${variant}`],\n (expanded || alwaysShowDivider) && styles['wrapper-expanded']\n );\n if (variant === 'navigation') {\n return (\n <ExpandableNavigationHeader\n className={clsx(className, wrapperClassName)}\n ariaLabelledBy={ariaLabelledBy}\n {...defaultHeaderProps}\n >\n {headerText ?? header}\n </ExpandableNavigationHeader>\n );\n }\n\n if (headerText) {\n return (\n <ExpandableHeaderTextWrapper\n className={clsx(className, wrapperClassName, expanded && styles.expanded)}\n descriptionId={descriptionId}\n headerDescription={headerDescription}\n headerCounter={headerCounter}\n headerInfo={headerInfo}\n headerActions={headerActions}\n headingTagOverride={headingTagOverride}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n {...defaultHeaderProps}\n >\n {headerText}\n </ExpandableHeaderTextWrapper>\n );\n }\n\n if (variant === 'container' && header && isDevelopment) {\n warnOnce(componentName, 'Use `headerText` instead of `header` to provide the button within the heading for a11y.');\n }\n\n return (\n <ExpandableDeprecatedHeader\n className={clsx(className, wrapperClassName, styles.focusable, expanded && styles.expanded)}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n {...defaultHeaderProps}\n >\n {header}\n </ExpandableDeprecatedHeader>\n );\n};\n"]}
1
+ {"version":3,"file":"expandable-section-header.js","sourceRoot":"","sources":["../../../src/expandable-section/expandable-section-header.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAA6D,MAAM,OAAO,CAAC;AAClF,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;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,CAAC,aAAa,EAAE,yFAAyF,CAAC,CAAC;KACpH;IAED,OAAO,CACL,oBAAC,0BAA0B,kBACzB,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,EAC3F,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,IAChB,kBAAkB,GAErB,MAAM,CACoB,CAC9B,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { KeyboardEventHandler, MouseEventHandler, ReactNode } from 'react';\nimport clsx from 'clsx';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalHeader, { Description as HeaderDescription } from '../header/internal';\nimport InternalIcon from '../icon/internal';\nimport { isDevelopment } from '../internal/is-development';\nimport { GeneratedAnalyticsMetadataExpandableSectionExpand } from './analytics-metadata/interfaces';\nimport { ExpandableSectionProps, InternalVariant } from './interfaces';\nimport {\n variantRequiresActionsDivider,\n variantSupportsActions,\n variantSupportsDescription,\n variantSupportsInfoLink,\n} from './utils';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\nexport const componentName = 'ExpandableSection';\n\ninterface ExpandableDefaultHeaderProps {\n id: string;\n descriptionId?: string;\n className?: string;\n children?: ReactNode;\n expanded: boolean;\n ariaControls: string;\n ariaLabel?: string;\n onKeyUp: KeyboardEventHandler;\n onKeyDown: KeyboardEventHandler;\n onClick: MouseEventHandler;\n icon: JSX.Element;\n variant: InternalVariant;\n}\n\ninterface ExpandableNavigationHeaderProps extends Omit<ExpandableDefaultHeaderProps, 'onKeyUp' | 'onKeyDown'> {\n ariaLabelledBy?: string;\n}\n\ninterface ExpandableHeaderTextWrapperProps extends ExpandableDefaultHeaderProps {\n headerDescription?: ReactNode;\n headerCounter?: string;\n headerInfo?: ReactNode;\n headerActions?: ReactNode;\n headingTagOverride?: ExpandableSectionProps.HeadingTag;\n}\n\ninterface ExpandableSectionHeaderProps extends Omit<ExpandableDefaultHeaderProps, 'children' | 'icon'> {\n header?: ReactNode;\n headerText?: ReactNode;\n headerDescription?: ReactNode;\n headerCounter?: string;\n headerInfo?: ReactNode;\n headerActions?: ReactNode;\n headingTagOverride?: ExpandableSectionProps.HeadingTag;\n ariaLabelledBy?: string;\n}\n\nconst getExpandActionAnalyticsMetadataAttribute = (expanded: boolean) => {\n const metadata: GeneratedAnalyticsMetadataExpandableSectionExpand = {\n action: 'expand',\n detail: {\n label: { root: 'component' },\n expanded: `${!expanded}`,\n },\n };\n return getAnalyticsMetadataAttribute(metadata);\n};\nconst ExpandableDeprecatedHeader = ({\n id,\n className,\n onClick,\n ariaLabel,\n ariaControls,\n expanded,\n children,\n icon,\n onKeyUp,\n onKeyDown,\n variant,\n}: ExpandableDefaultHeaderProps) => {\n return (\n <div\n id={id}\n role=\"button\"\n className={clsx(\n className,\n styles['expand-button'],\n styles['click-target'],\n styles['header-deprecated'],\n analyticsSelectors['header-label']\n )}\n tabIndex={0}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onClick={onClick}\n aria-label={ariaLabel}\n aria-controls={ariaControls}\n aria-expanded={expanded}\n {...getExpandActionAnalyticsMetadataAttribute(expanded)}\n >\n <div className={clsx(styles['icon-container'], styles[`icon-container-${variant}`])}>{icon}</div>\n {children}\n </div>\n );\n};\n\nconst ExpandableNavigationHeader = ({\n id,\n className,\n onClick,\n ariaLabelledBy,\n ariaLabel,\n ariaControls,\n expanded,\n children,\n icon,\n}: ExpandableNavigationHeaderProps) => {\n return (\n <div id={id} className={clsx(className, styles['click-target'], analyticsSelectors['header-label'])}>\n <button\n className={clsx(styles['icon-container'], styles['expand-button'])}\n aria-labelledby={ariaLabelledBy}\n aria-label={ariaLabel}\n aria-controls={ariaControls}\n aria-expanded={expanded}\n type=\"button\"\n onClick={onClick}\n {...getExpandActionAnalyticsMetadataAttribute(expanded)}\n >\n {icon}\n </button>\n {children}\n </div>\n );\n};\n\nconst ExpandableHeaderTextWrapper = ({\n id,\n descriptionId,\n className,\n onClick,\n ariaLabel,\n ariaControls,\n expanded,\n children,\n icon,\n headerDescription,\n headerCounter,\n headerInfo,\n headerActions,\n variant,\n headingTagOverride,\n onKeyUp,\n onKeyDown,\n}: ExpandableHeaderTextWrapperProps) => {\n const isContainer = variant === 'container';\n const HeadingTag = headingTagOverride || 'div';\n const supportsInteractiveElements = variantSupportsActions(variant);\n const restrictClickableArea = supportsInteractiveElements && (headerInfo || headerActions);\n const actions = supportsInteractiveElements && headerActions;\n const description = variantSupportsDescription(variant) && headerDescription && (\n <span id={descriptionId} className={styles[`description-${variant}`]}>\n {headerDescription}\n </span>\n );\n const listeners = { onClick, onKeyDown, onKeyUp };\n\n // If interactive elements are present, constrain the clickable area to only the icon and the header text\n // to prevent nesting interactive elements.\n const headerButtonListeners = restrictClickableArea ? listeners : undefined;\n // For the default and footer variants with description,\n // include also the immediate wrapper around it to include the entire row for backwards compatibility,\n // but exclude the description.\n const headingTagListeners = !headerButtonListeners && !isContainer && description ? listeners : undefined;\n // For all other cases, make the entire header clickable for backwards compatibility.\n const wrapperListeners = !headerButtonListeners && !headingTagListeners ? listeners : undefined;\n const headerButton = (\n <span\n className={clsx(\n styles['expand-button'],\n isContainer ? styles['header-container-button'] : styles['header-button'],\n headerButtonListeners && styles['click-target']\n )}\n role=\"button\"\n tabIndex={0}\n aria-label={ariaLabel}\n aria-labelledby={!ariaLabel && description ? id : undefined}\n aria-describedby={description ? descriptionId : undefined}\n aria-controls={ariaControls}\n aria-expanded={expanded}\n {...headerButtonListeners}\n {...(headerButtonListeners ? getExpandActionAnalyticsMetadataAttribute(expanded) : {})}\n >\n <span className={clsx(styles['icon-container'], styles[`icon-container-${variant}`])}>{icon}</span>\n <span id={id} className={clsx(styles['header-text'], analyticsSelectors['header-label'])}>\n {children}\n </span>\n </span>\n );\n\n return (\n <div\n className={clsx(className, wrapperListeners && styles['click-target'])}\n {...wrapperListeners}\n {...(wrapperListeners ? getExpandActionAnalyticsMetadataAttribute(expanded) : {})}\n >\n {isContainer ? (\n <InternalHeader\n variant=\"h2\"\n description={description}\n counter={headerCounter}\n info={headerInfo}\n actions={actions}\n headingTagOverride={headingTagOverride}\n >\n {headerButton}\n </InternalHeader>\n ) : (\n <>\n <div className={clsx(actions && styles['header-actions-wrapper'])}>\n <HeadingTag\n className={clsx(styles['header-wrapper'], headingTagListeners && styles['click-target'])}\n {...headingTagListeners}\n {...(headingTagListeners ? getExpandActionAnalyticsMetadataAttribute(expanded) : {})}\n >\n {headerButton}\n </HeadingTag>\n {actions}\n </div>\n {description && <HeaderDescription variantOverride=\"h3\">{description}</HeaderDescription>}\n </>\n )}\n </div>\n );\n};\n\nexport const ExpandableSectionHeader = ({\n id,\n descriptionId,\n className,\n variant,\n header,\n headerText,\n headerDescription,\n headerCounter,\n headerInfo,\n headerActions,\n headingTagOverride,\n expanded,\n ariaControls,\n ariaLabel,\n ariaLabelledBy,\n onKeyUp,\n onKeyDown,\n onClick,\n}: ExpandableSectionHeaderProps) => {\n const alwaysShowDivider = variantRequiresActionsDivider(variant) && headerActions;\n const icon = (\n <InternalIcon\n size={variant === 'container' ? 'medium' : 'normal'}\n className={clsx(styles.icon, expanded && styles.expanded)}\n name=\"caret-down-filled\"\n />\n );\n const defaultHeaderProps = {\n id: id,\n icon: icon,\n expanded: expanded,\n ariaControls: ariaControls,\n ariaLabel: ariaLabel,\n onClick: onClick,\n variant,\n };\n\n if ((headerCounter || headerInfo) && !variantSupportsInfoLink(variant) && isDevelopment) {\n warnOnce(\n componentName,\n 'The `headerCounter` and `headerInfo` props are only supported for the \"container\" variant.'\n );\n }\n\n if (headerActions && !variantSupportsActions(variant) && isDevelopment) {\n warnOnce(componentName, `The \\`headerActions\\` prop is only supported for the \"container\" and \"default\" variants.`);\n }\n\n if (headerDescription && !variantSupportsDescription(variant) && isDevelopment) {\n warnOnce(componentName, `The \\`headerDescription\\` prop is not supported for the ${variant} variant.`);\n }\n\n const wrapperClassName = clsx(\n styles.wrapper,\n styles[`wrapper-${variant}`],\n (expanded || alwaysShowDivider) && styles['wrapper-expanded']\n );\n if (variant === 'navigation') {\n return (\n <ExpandableNavigationHeader\n className={clsx(className, wrapperClassName)}\n ariaLabelledBy={ariaLabelledBy}\n {...defaultHeaderProps}\n >\n {headerText ?? header}\n </ExpandableNavigationHeader>\n );\n }\n\n if (headerText || variant === 'inline') {\n if (!headerText && header && variant === 'inline') {\n warnOnce(componentName, 'Only `headerText` instead of `header` is supported for `inline` variant.');\n }\n return (\n <ExpandableHeaderTextWrapper\n className={clsx(className, wrapperClassName, expanded && styles.expanded)}\n descriptionId={descriptionId}\n headerDescription={headerDescription}\n headerCounter={headerCounter}\n headerInfo={headerInfo}\n headerActions={headerActions}\n headingTagOverride={headingTagOverride}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n {...defaultHeaderProps}\n >\n {headerText}\n </ExpandableHeaderTextWrapper>\n );\n }\n\n if (variant === 'container' && header && isDevelopment) {\n warnOnce(componentName, 'Use `headerText` instead of `header` to provide the button within the heading for a11y.');\n }\n\n return (\n <ExpandableDeprecatedHeader\n className={clsx(className, wrapperClassName, styles.focusable, expanded && styles.expanded)}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n {...defaultHeaderProps}\n >\n {header}\n </ExpandableDeprecatedHeader>\n );\n};\n"]}
@@ -5,7 +5,7 @@ export declare namespace ExpandableSectionProps {
5
5
  interface AnalyticsMetadata {
6
6
  instanceIdentifier?: string;
7
7
  }
8
- type Variant = 'default' | 'footer' | 'container' | 'navigation' | 'stacked';
8
+ type Variant = 'default' | 'footer' | 'container' | 'navigation' | 'stacked' | 'inline';
9
9
  interface ChangeDetail {
10
10
  expanded: boolean;
11
11
  }
@@ -37,6 +37,7 @@ export interface ExpandableSectionProps extends BaseComponentProps {
37
37
  * * `navigation` - Use this variant in the navigation panel with anchors and custom styled content.
38
38
  * It doesn't have any default styles.
39
39
  * * `stacked` - Use this variant directly adjacent to other stacked containers (such as a container, table).
40
+ * * `inline` - Use this variant in any context where you need reduced padding around the header.
40
41
  * @visualrefresh `stacked` variant
41
42
  * */
42
43
  variant?: ExpandableSectionProps.Variant;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/expandable-section/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,iBAAiB;QAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B;IAED,KAAY,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,YAAY,GAAG,SAAS,CAAC;IACpF,UAAiB,YAAY;QAC3B,QAAQ,EAAE,OAAO,CAAC;KACnB;IACD,KAAY,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3D;AAED,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC,OAAO,GAAG,SAAS,CAAC;AAEzE,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;IAChE;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,sBAAsB,CAAC,iBAAiB,CAAC;IAE7D;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;;SASK;IACL,OAAO,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC;IAEzC;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;OA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,GAAG,SAAS,CAAC;AAEzE,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;IAChE;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,sBAAsB,CAAC,iBAAiB,CAAC;IAE7D;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;;;SAUK;IACL,OAAO,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC;IAEzC;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,sBAAsB,CAAC,UAAU,CAAC;IAEvD;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAAC;IAE1E;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE7B;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/expandable-section/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 { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport namespace ExpandableSectionProps {\n export interface AnalyticsMetadata {\n instanceIdentifier?: string;\n }\n\n export type Variant = 'default' | 'footer' | 'container' | 'navigation' | 'stacked';\n export interface ChangeDetail {\n expanded: boolean;\n }\n export type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5';\n}\n\nexport type InternalVariant = ExpandableSectionProps.Variant | 'compact';\n\nexport interface ExpandableSectionProps extends BaseComponentProps {\n /**\n * Specifies additional analytics-related metadata.\n * * `instanceIdentifier` - A unique string that identifies this component instance in your application.\n * @analytics\n */\n analyticsMetadata?: ExpandableSectionProps.AnalyticsMetadata;\n\n /**\n * Determines whether the component initially displays in expanded state (that is, with content visible). The component operates in an uncontrolled\n * manner even if you provide a value for this property.\n */\n defaultExpanded?: boolean;\n\n /**\n * Determines whether the component is in the expanded state (that is, with content visible). The component operates in a controlled\n * manner if you provide a value for this property.\n */\n expanded?: boolean;\n\n /**\n * The possible variants of an expandable section are as follows:\n * * `default` - Use this variant in any context.\n * * `footer` - Use this variant in container footers.\n * * `container` - Use this variant in a detail page alongside other containers.\n * * `navigation` - Use this variant in the navigation panel with anchors and custom styled content.\n * It doesn't have any default styles.\n * * `stacked` - Use this variant directly adjacent to other stacked containers (such as a container, table).\n * @visualrefresh `stacked` variant\n * */\n variant?: ExpandableSectionProps.Variant;\n\n /**\n * Determines whether the content section's default padding is removed. This default padding is only present for the `container` variant.\n */\n disableContentPaddings?: boolean;\n\n /**\n * Primary content displayed in the expandable section element.\n */\n children?: React.ReactNode;\n\n /**\n * @deprecated Use `headerText` instead.\n */\n header?: React.ReactNode;\n\n /**\n * The heading text. Use plain text. When using the container variant, you can use additional header props like `headerDescription` and `headerCounter` to display other elements in the header.\n */\n headerText?: React.ReactNode;\n\n /**\n * Supplementary text below the heading. Use with the container, default or footer variants.\n */\n headerDescription?: string;\n\n /**\n * Specifies secondary text that's displayed to the right of the heading title. Use with the container variant.\n * Behaves similar to the Header component counter.\n */\n headerCounter?: string;\n\n /**\n * Overrides the default [HTML heading tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements).\n * Use with the container variant (which defaults to H2) or default/footer variants (which default to DIV). Using this\n * property does not change the visual appearance of the component. Note that this only works with the `headerText`\n * slot (not with the deprecated `header`), and not with the navigation variant.\n */\n headingTagOverride?: ExpandableSectionProps.HeadingTag;\n\n /**\n * Adds `aria-label` to the header element.\n * Use to assign unique labels when there are multiple expandable sections with the same header text on one page.\n */\n headerAriaLabel?: string;\n\n /**\n * Called when the state changes (that is, when the user expands or collapses the component).\n * The event `detail` contains the current value of the `expanded` property.\n */\n onChange?: NonCancelableEventHandler<ExpandableSectionProps.ChangeDetail>;\n\n /**\n * The area next to the heading, used to display an Info link. Use with the container variant.\n */\n headerInfo?: React.ReactNode;\n\n /**\n * Actions for the header. Use with the default or container variant.\n */\n headerActions?: React.ReactNode;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/expandable-section/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 { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport namespace ExpandableSectionProps {\n export interface AnalyticsMetadata {\n instanceIdentifier?: string;\n }\n\n export type Variant = 'default' | 'footer' | 'container' | 'navigation' | 'stacked' | 'inline';\n export interface ChangeDetail {\n expanded: boolean;\n }\n export type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5';\n}\n\nexport type InternalVariant = ExpandableSectionProps.Variant | 'compact';\n\nexport interface ExpandableSectionProps extends BaseComponentProps {\n /**\n * Specifies additional analytics-related metadata.\n * * `instanceIdentifier` - A unique string that identifies this component instance in your application.\n * @analytics\n */\n analyticsMetadata?: ExpandableSectionProps.AnalyticsMetadata;\n\n /**\n * Determines whether the component initially displays in expanded state (that is, with content visible). The component operates in an uncontrolled\n * manner even if you provide a value for this property.\n */\n defaultExpanded?: boolean;\n\n /**\n * Determines whether the component is in the expanded state (that is, with content visible). The component operates in a controlled\n * manner if you provide a value for this property.\n */\n expanded?: boolean;\n\n /**\n * The possible variants of an expandable section are as follows:\n * * `default` - Use this variant in any context.\n * * `footer` - Use this variant in container footers.\n * * `container` - Use this variant in a detail page alongside other containers.\n * * `navigation` - Use this variant in the navigation panel with anchors and custom styled content.\n * It doesn't have any default styles.\n * * `stacked` - Use this variant directly adjacent to other stacked containers (such as a container, table).\n * * `inline` - Use this variant in any context where you need reduced padding around the header.\n * @visualrefresh `stacked` variant\n * */\n variant?: ExpandableSectionProps.Variant;\n\n /**\n * Determines whether the content section's default padding is removed. This default padding is only present for the `container` variant.\n */\n disableContentPaddings?: boolean;\n\n /**\n * Primary content displayed in the expandable section element.\n */\n children?: React.ReactNode;\n\n /**\n * @deprecated Use `headerText` instead.\n */\n header?: React.ReactNode;\n\n /**\n * The heading text. Use plain text. When using the container variant, you can use additional header props like `headerDescription` and `headerCounter` to display other elements in the header.\n */\n headerText?: React.ReactNode;\n\n /**\n * Supplementary text below the heading. Use with the container, default or footer variants.\n */\n headerDescription?: string;\n\n /**\n * Specifies secondary text that's displayed to the right of the heading title. Use with the container variant.\n * Behaves similar to the Header component counter.\n */\n headerCounter?: string;\n\n /**\n * Overrides the default [HTML heading tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements).\n * Use with the container variant (which defaults to H2) or default/footer variants (which default to DIV). Using this\n * property does not change the visual appearance of the component. Note that this only works with the `headerText`\n * slot (not with the deprecated `header`), and not with the navigation variant.\n */\n headingTagOverride?: ExpandableSectionProps.HeadingTag;\n\n /**\n * Adds `aria-label` to the header element.\n * Use to assign unique labels when there are multiple expandable sections with the same header text on one page.\n */\n headerAriaLabel?: string;\n\n /**\n * Called when the state changes (that is, when the user expands or collapses the component).\n * The event `detail` contains the current value of the `expanded` property.\n */\n onChange?: NonCancelableEventHandler<ExpandableSectionProps.ChangeDetail>;\n\n /**\n * The area next to the heading, used to display an Info link. Use with the container variant.\n */\n headerInfo?: React.ReactNode;\n\n /**\n * Actions for the header. Use with the default or container variant.\n */\n headerActions?: React.ReactNode;\n}\n"]}
@@ -1,37 +1,39 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "content-enter": "awsui_content-enter_gwq0h_1f5fu_157",
5
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_gwq0h_1f5fu_1",
6
- "trigger-expanded": "awsui_trigger-expanded_gwq0h_1f5fu_179",
7
- "icon": "awsui_icon_gwq0h_1f5fu_193",
8
- "root": "awsui_root_gwq0h_1f5fu_207",
9
- "expand-button": "awsui_expand-button_gwq0h_1f5fu_245",
10
- "expanded": "awsui_expanded_gwq0h_1f5fu_253",
11
- "icon-container": "awsui_icon-container_gwq0h_1f5fu_263",
12
- "icon-container-container": "awsui_icon-container-container_gwq0h_1f5fu_267",
13
- "wrapper": "awsui_wrapper_gwq0h_1f5fu_271",
14
- "wrapper-default": "awsui_wrapper-default_gwq0h_1f5fu_279",
15
- "wrapper-footer": "awsui_wrapper-footer_gwq0h_1f5fu_279",
16
- "wrapper-navigation": "awsui_wrapper-navigation_gwq0h_1f5fu_283",
17
- "wrapper-container": "awsui_wrapper-container_gwq0h_1f5fu_286",
18
- "wrapper-compact": "awsui_wrapper-compact_gwq0h_1f5fu_290",
19
- "header-deprecated": "awsui_header-deprecated_gwq0h_1f5fu_303",
20
- "wrapper-expanded": "awsui_wrapper-expanded_gwq0h_1f5fu_325",
21
- "header": "awsui_header_gwq0h_1f5fu_303",
22
- "header-wrapper": "awsui_header-wrapper_gwq0h_1f5fu_345",
23
- "header-actions-wrapper": "awsui_header-actions-wrapper_gwq0h_1f5fu_357",
24
- "header-button": "awsui_header-button_gwq0h_1f5fu_363",
25
- "header-container-button": "awsui_header-container-button_gwq0h_1f5fu_363",
26
- "header-container": "awsui_header-container_gwq0h_1f5fu_363",
27
- "header-navigation": "awsui_header-navigation_gwq0h_1f5fu_398",
28
- "header-text": "awsui_header-text_gwq0h_1f5fu_435",
29
- "content": "awsui_content_gwq0h_1f5fu_157",
30
- "content-default": "awsui_content-default_gwq0h_1f5fu_448",
31
- "content-footer": "awsui_content-footer_gwq0h_1f5fu_452",
32
- "content-expanded": "awsui_content-expanded_gwq0h_1f5fu_456",
33
- "content-compact": "awsui_content-compact_gwq0h_1f5fu_459",
34
- "focusable": "awsui_focusable_gwq0h_1f5fu_463",
35
- "click-target": "awsui_click-target_gwq0h_1f5fu_478"
4
+ "content-enter": "awsui_content-enter_gwq0h_9nra9_157",
5
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_gwq0h_9nra9_1",
6
+ "trigger-expanded": "awsui_trigger-expanded_gwq0h_9nra9_179",
7
+ "icon": "awsui_icon_gwq0h_9nra9_193",
8
+ "root": "awsui_root_gwq0h_9nra9_207",
9
+ "expand-button": "awsui_expand-button_gwq0h_9nra9_245",
10
+ "expanded": "awsui_expanded_gwq0h_9nra9_253",
11
+ "icon-container": "awsui_icon-container_gwq0h_9nra9_263",
12
+ "icon-container-container": "awsui_icon-container-container_gwq0h_9nra9_267",
13
+ "wrapper": "awsui_wrapper_gwq0h_9nra9_271",
14
+ "wrapper-default": "awsui_wrapper-default_gwq0h_9nra9_279",
15
+ "wrapper-inline": "awsui_wrapper-inline_gwq0h_9nra9_279",
16
+ "wrapper-footer": "awsui_wrapper-footer_gwq0h_9nra9_279",
17
+ "wrapper-navigation": "awsui_wrapper-navigation_gwq0h_9nra9_283",
18
+ "wrapper-container": "awsui_wrapper-container_gwq0h_9nra9_286",
19
+ "wrapper-compact": "awsui_wrapper-compact_gwq0h_9nra9_290",
20
+ "header-deprecated": "awsui_header-deprecated_gwq0h_9nra9_303",
21
+ "wrapper-expanded": "awsui_wrapper-expanded_gwq0h_9nra9_309",
22
+ "header": "awsui_header_gwq0h_9nra9_303",
23
+ "header-wrapper": "awsui_header-wrapper_gwq0h_9nra9_346",
24
+ "header-actions-wrapper": "awsui_header-actions-wrapper_gwq0h_9nra9_358",
25
+ "header-button": "awsui_header-button_gwq0h_9nra9_364",
26
+ "header-container-button": "awsui_header-container-button_gwq0h_9nra9_364",
27
+ "header-container": "awsui_header-container_gwq0h_9nra9_364",
28
+ "header-navigation": "awsui_header-navigation_gwq0h_9nra9_399",
29
+ "header-text": "awsui_header-text_gwq0h_9nra9_436",
30
+ "content": "awsui_content_gwq0h_9nra9_157",
31
+ "content-default": "awsui_content-default_gwq0h_9nra9_449",
32
+ "content-inline": "awsui_content-inline_gwq0h_9nra9_449",
33
+ "content-footer": "awsui_content-footer_gwq0h_9nra9_453",
34
+ "content-expanded": "awsui_content-expanded_gwq0h_9nra9_457",
35
+ "content-compact": "awsui_content-compact_gwq0h_9nra9_460",
36
+ "focusable": "awsui_focusable_gwq0h_9nra9_464",
37
+ "click-target": "awsui_click-target_gwq0h_9nra9_479"
36
38
  };
37
39
 
@@ -154,10 +154,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
154
154
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
155
155
  SPDX-License-Identifier: Apache-2.0
156
156
  */
157
- .awsui_content-enter_gwq0h_1f5fu_157:not(#\9) {
158
- animation: awsui_awsui-motion-fade-in_gwq0h_1f5fu_1 var(--motion-duration-show-paced-wu1v6q, 180ms) var(--motion-easing-show-paced-72rrqw, ease-out);
157
+ .awsui_content-enter_gwq0h_9nra9_157:not(#\9) {
158
+ animation: awsui_awsui-motion-fade-in_gwq0h_9nra9_1 var(--motion-duration-show-paced-wu1v6q, 180ms) var(--motion-easing-show-paced-72rrqw, ease-out);
159
159
  }
160
- @keyframes awsui_awsui-motion-fade-in_gwq0h_1f5fu_1 {
160
+ @keyframes awsui_awsui-motion-fade-in_gwq0h_9nra9_1 {
161
161
  from {
162
162
  opacity: 0.2;
163
163
  }
@@ -166,45 +166,45 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
166
166
  }
167
167
  }
168
168
  @media (prefers-reduced-motion: reduce) {
169
- .awsui_content-enter_gwq0h_1f5fu_157:not(#\9) {
169
+ .awsui_content-enter_gwq0h_9nra9_157:not(#\9) {
170
170
  animation: none;
171
171
  transition: none;
172
172
  }
173
173
  }
174
- .awsui-motion-disabled .awsui_content-enter_gwq0h_1f5fu_157:not(#\9), .awsui-mode-entering .awsui_content-enter_gwq0h_1f5fu_157:not(#\9) {
174
+ .awsui-motion-disabled .awsui_content-enter_gwq0h_9nra9_157:not(#\9), .awsui-mode-entering .awsui_content-enter_gwq0h_9nra9_157:not(#\9) {
175
175
  animation: none;
176
176
  transition: none;
177
177
  }
178
178
 
179
- .awsui_trigger-expanded_gwq0h_1f5fu_179:not(#\9) {
179
+ .awsui_trigger-expanded_gwq0h_9nra9_179:not(#\9) {
180
180
  transition: border-bottom-color var(--motion-duration-show-paced-wu1v6q, 180ms) var(--motion-easing-show-paced-72rrqw, ease-out);
181
181
  }
182
182
  @media (prefers-reduced-motion: reduce) {
183
- .awsui_trigger-expanded_gwq0h_1f5fu_179:not(#\9) {
183
+ .awsui_trigger-expanded_gwq0h_9nra9_179:not(#\9) {
184
184
  animation: none;
185
185
  transition: none;
186
186
  }
187
187
  }
188
- .awsui-motion-disabled .awsui_trigger-expanded_gwq0h_1f5fu_179:not(#\9), .awsui-mode-entering .awsui_trigger-expanded_gwq0h_1f5fu_179:not(#\9) {
188
+ .awsui-motion-disabled .awsui_trigger-expanded_gwq0h_9nra9_179:not(#\9), .awsui-mode-entering .awsui_trigger-expanded_gwq0h_9nra9_179:not(#\9) {
189
189
  animation: none;
190
190
  transition: none;
191
191
  }
192
192
 
193
- .awsui_icon_gwq0h_1f5fu_193:not(#\9) {
193
+ .awsui_icon_gwq0h_9nra9_193:not(#\9) {
194
194
  transition: transform var(--motion-duration-rotate-90-f4h6jw, 135ms) var(--motion-easing-rotate-90-ncjpnu, cubic-bezier(0.165, 0.84, 0.44, 1));
195
195
  }
196
196
  @media (prefers-reduced-motion: reduce) {
197
- .awsui_icon_gwq0h_1f5fu_193:not(#\9) {
197
+ .awsui_icon_gwq0h_9nra9_193:not(#\9) {
198
198
  animation: none;
199
199
  transition: none;
200
200
  }
201
201
  }
202
- .awsui-motion-disabled .awsui_icon_gwq0h_1f5fu_193:not(#\9), .awsui-mode-entering .awsui_icon_gwq0h_1f5fu_193:not(#\9) {
202
+ .awsui-motion-disabled .awsui_icon_gwq0h_9nra9_193:not(#\9), .awsui-mode-entering .awsui_icon_gwq0h_9nra9_193:not(#\9) {
203
203
  animation: none;
204
204
  transition: none;
205
205
  }
206
206
 
207
- .awsui_root_gwq0h_1f5fu_207:not(#\9) {
207
+ .awsui_root_gwq0h_9nra9_207:not(#\9) {
208
208
  border-collapse: separate;
209
209
  border-spacing: 0;
210
210
  box-sizing: border-box;
@@ -243,33 +243,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
243
243
  display: block;
244
244
  }
245
245
 
246
- .awsui_expand-button_gwq0h_1f5fu_245:not(#\9) {
246
+ .awsui_expand-button_gwq0h_9nra9_245:not(#\9) {
247
247
  outline: none;
248
248
  }
249
249
 
250
- .awsui_icon_gwq0h_1f5fu_193:not(#\9) {
250
+ .awsui_icon_gwq0h_9nra9_193:not(#\9) {
251
251
  transform: rotate(-90deg);
252
252
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
253
253
  }
254
- .awsui_icon_gwq0h_1f5fu_193.awsui_expanded_gwq0h_1f5fu_253:not(#\9) {
254
+ .awsui_icon_gwq0h_9nra9_193.awsui_expanded_gwq0h_9nra9_253:not(#\9) {
255
255
  transform: rotate(0deg);
256
256
  }
257
- .awsui_icon_gwq0h_1f5fu_193:not(#\9):dir(rtl) {
257
+ .awsui_icon_gwq0h_9nra9_193:not(#\9):dir(rtl) {
258
258
  transform: rotate(90deg);
259
259
  }
260
- .awsui_icon_gwq0h_1f5fu_193:not(#\9):dir(rtl).awsui_expanded_gwq0h_1f5fu_253 {
260
+ .awsui_icon_gwq0h_9nra9_193:not(#\9):dir(rtl).awsui_expanded_gwq0h_9nra9_253 {
261
261
  transform: rotate(0deg);
262
262
  }
263
263
 
264
- .awsui_icon-container_gwq0h_1f5fu_263:not(#\9) {
264
+ .awsui_icon-container_gwq0h_9nra9_263:not(#\9) {
265
265
  position: relative;
266
266
  margin-inline: calc((var(--line-height-body-m-2zx78l, 22px) - var(--size-icon-normal-wflv4k, 16px)) / -2) calc(var(--space-xxs-9rrxti, 4px) + var(--border-divider-list-width-471u6a, 1px));
267
267
  }
268
- .awsui_icon-container-container_gwq0h_1f5fu_267:not(#\9) {
268
+ .awsui_icon-container-container_gwq0h_9nra9_267:not(#\9) {
269
269
  margin-inline-end: var(--space-xs-xf5ch3, 8px);
270
270
  }
271
271
 
272
- .awsui_wrapper_gwq0h_1f5fu_271:not(#\9) {
272
+ .awsui_wrapper_gwq0h_9nra9_271:not(#\9) {
273
273
  box-sizing: border-box;
274
274
  border-block: none;
275
275
  border-inline: none;
@@ -277,77 +277,78 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
277
277
  line-height: var(--line-height-body-m-2zx78l, 22px);
278
278
  text-align: start;
279
279
  }
280
- .awsui_wrapper-default_gwq0h_1f5fu_279:not(#\9), .awsui_wrapper-footer_gwq0h_1f5fu_279:not(#\9) {
280
+ .awsui_wrapper-default_gwq0h_9nra9_279:not(#\9), .awsui_wrapper-inline_gwq0h_9nra9_279:not(#\9), .awsui_wrapper-footer_gwq0h_9nra9_279:not(#\9) {
281
281
  border-block: var(--border-divider-section-width-wl9k66, 1px) solid transparent;
282
282
  border-inline: var(--border-divider-section-width-wl9k66, 1px) solid transparent;
283
283
  }
284
- .awsui_wrapper-navigation_gwq0h_1f5fu_283:not(#\9) {
284
+ .awsui_wrapper-navigation_gwq0h_9nra9_283:not(#\9) {
285
285
  border-inline-start: var(--border-divider-section-width-wl9k66, 1px) solid transparent;
286
286
  }
287
- .awsui_wrapper-navigation_gwq0h_1f5fu_283:not(#\9), .awsui_wrapper-container_gwq0h_1f5fu_286:not(#\9) {
287
+ .awsui_wrapper-navigation_gwq0h_9nra9_283:not(#\9), .awsui_wrapper-container_gwq0h_9nra9_286:not(#\9) {
288
288
  display: flex;
289
289
  font-weight: var(--font-weight-heading-s-mkhu7c, 700);
290
290
  }
291
- .awsui_wrapper-default_gwq0h_1f5fu_279:not(#\9), .awsui_wrapper-navigation_gwq0h_1f5fu_283:not(#\9), .awsui_wrapper-footer_gwq0h_1f5fu_279:not(#\9), .awsui_wrapper-compact_gwq0h_1f5fu_290:not(#\9) {
291
+ .awsui_wrapper-default_gwq0h_9nra9_279:not(#\9), .awsui_wrapper-inline_gwq0h_9nra9_279:not(#\9), .awsui_wrapper-navigation_gwq0h_9nra9_283:not(#\9), .awsui_wrapper-footer_gwq0h_9nra9_279:not(#\9), .awsui_wrapper-compact_gwq0h_9nra9_290:not(#\9) {
292
292
  color: var(--color-text-expandable-section-default-6s8xf7, #545b64);
293
293
  -webkit-font-smoothing: var(--font-smoothing-webkit-8fiijr, auto);
294
294
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-fw8n0n, auto);
295
295
  }
296
- .awsui_wrapper-default_gwq0h_1f5fu_279:not(#\9), .awsui_wrapper-navigation_gwq0h_1f5fu_283:not(#\9), .awsui_wrapper-footer_gwq0h_1f5fu_279:not(#\9) {
296
+ .awsui_wrapper-default_gwq0h_9nra9_279:not(#\9), .awsui_wrapper-inline_gwq0h_9nra9_279:not(#\9), .awsui_wrapper-navigation_gwq0h_9nra9_283:not(#\9), .awsui_wrapper-footer_gwq0h_9nra9_279:not(#\9) {
297
297
  font-size: var(--font-expandable-heading-size-oezd0p, 14px);
298
298
  letter-spacing: var(--letter-spacing-heading-s-badvkb, normal);
299
299
  }
300
- .awsui_wrapper-default_gwq0h_1f5fu_279:not(#\9) {
300
+ .awsui_wrapper-default_gwq0h_9nra9_279:not(#\9) {
301
301
  padding-block: var(--space-scaled-xxs-t7ij38, 4px);
302
302
  padding-inline-end: var(--space-xxs-9rrxti, 4px);
303
303
  }
304
- .awsui_wrapper-default_gwq0h_1f5fu_279.awsui_header-deprecated_gwq0h_1f5fu_303:not(#\9) {
304
+ .awsui_wrapper-default_gwq0h_9nra9_279.awsui_header-deprecated_gwq0h_9nra9_303:not(#\9) {
305
305
  padding-inline-start: var(--space-xxs-9rrxti, 4px);
306
306
  }
307
- .awsui_wrapper-default_gwq0h_1f5fu_279:not(#\9):not(.awsui_header-deprecated_gwq0h_1f5fu_303) {
307
+ .awsui_wrapper-default_gwq0h_9nra9_279:not(#\9):not(.awsui_header-deprecated_gwq0h_9nra9_303), .awsui_wrapper-inline_gwq0h_9nra9_279:not(#\9):not(.awsui_header-deprecated_gwq0h_9nra9_303) {
308
308
  padding-inline-start: calc(var(--size-icon-normal-wflv4k, 16px) + (var(--line-height-body-m-2zx78l, 22px) - var(--size-icon-normal-wflv4k, 16px)) / -2 + var(--space-xxs-9rrxti, 4px) + var(--border-divider-list-width-471u6a, 1px));
309
309
  }
310
- .awsui_wrapper-footer_gwq0h_1f5fu_279:not(#\9) {
310
+ .awsui_wrapper-default_gwq0h_9nra9_279.awsui_wrapper-expanded_gwq0h_9nra9_309:not(#\9), .awsui_wrapper-inline_gwq0h_9nra9_279.awsui_wrapper-expanded_gwq0h_9nra9_309:not(#\9) {
311
+ padding-block-end: var(--space-scaled-xxs-t7ij38, 4px);
312
+ border-block-end-color: var(--color-border-divider-default-in8dkg, #eaeded);
313
+ }
314
+ .awsui_wrapper-footer_gwq0h_9nra9_279:not(#\9) {
311
315
  padding-block: var(--space-scaled-xxs-t7ij38, 4px);
312
316
  }
313
- .awsui_wrapper-footer_gwq0h_1f5fu_279:not(#\9), .awsui_wrapper-compact_gwq0h_1f5fu_290:not(#\9) {
317
+ .awsui_wrapper-footer_gwq0h_9nra9_279:not(#\9), .awsui_wrapper-compact_gwq0h_9nra9_290:not(#\9) {
314
318
  padding-inline-end: 0;
315
319
  }
316
- .awsui_wrapper-footer_gwq0h_1f5fu_279.awsui_header-deprecated_gwq0h_1f5fu_303:not(#\9), .awsui_wrapper-compact_gwq0h_1f5fu_290.awsui_header-deprecated_gwq0h_1f5fu_303:not(#\9) {
320
+ .awsui_wrapper-footer_gwq0h_9nra9_279.awsui_header-deprecated_gwq0h_9nra9_303:not(#\9), .awsui_wrapper-compact_gwq0h_9nra9_290.awsui_header-deprecated_gwq0h_9nra9_303:not(#\9) {
317
321
  padding-inline-start: 0;
318
322
  }
319
- .awsui_wrapper-footer_gwq0h_1f5fu_279:not(#\9):not(.awsui_header-deprecated_gwq0h_1f5fu_303), .awsui_wrapper-compact_gwq0h_1f5fu_290:not(#\9):not(.awsui_header-deprecated_gwq0h_1f5fu_303) {
323
+ .awsui_wrapper-footer_gwq0h_9nra9_279:not(#\9):not(.awsui_header-deprecated_gwq0h_9nra9_303), .awsui_wrapper-compact_gwq0h_9nra9_290:not(#\9):not(.awsui_header-deprecated_gwq0h_9nra9_303) {
320
324
  padding-inline-start: calc(var(--size-icon-normal-wflv4k, 16px) + (var(--line-height-body-m-2zx78l, 22px) - var(--size-icon-normal-wflv4k, 16px)) / -2 + var(--space-xxs-9rrxti, 4px) + var(--border-divider-list-width-471u6a, 1px));
321
325
  }
322
- .awsui_wrapper-container_gwq0h_1f5fu_286:not(#\9) {
326
+ .awsui_wrapper-container_gwq0h_9nra9_286:not(#\9) {
323
327
  padding-block: var(--space-container-header-top-bomjbu, 12px) var(--space-container-header-bottom-qqnwwz, 12px);
324
328
  padding-inline-end: var(--space-container-horizontal-oebwqe, 20px);
325
329
  }
326
- .awsui_wrapper-container_gwq0h_1f5fu_286:not(#\9):not(.awsui_wrapper-expanded_gwq0h_1f5fu_325) {
330
+ .awsui_wrapper-container_gwq0h_9nra9_286:not(#\9):not(.awsui_wrapper-expanded_gwq0h_9nra9_309) {
327
331
  padding-block-end: var(--space-container-header-top-bomjbu, 12px);
328
332
  }
329
- .awsui_wrapper-container_gwq0h_1f5fu_286.awsui_header-deprecated_gwq0h_1f5fu_303:not(#\9) {
333
+ .awsui_wrapper-container_gwq0h_9nra9_286.awsui_header-deprecated_gwq0h_9nra9_303:not(#\9) {
330
334
  padding-inline-start: var(--space-container-horizontal-oebwqe, 20px);
331
335
  }
332
- .awsui_wrapper-container_gwq0h_1f5fu_286:not(#\9):not(.awsui_header-deprecated_gwq0h_1f5fu_303) {
336
+ .awsui_wrapper-container_gwq0h_9nra9_286:not(#\9):not(.awsui_header-deprecated_gwq0h_9nra9_303) {
333
337
  padding-inline-start: calc(var(--space-container-horizontal-oebwqe, 20px) + calc(var(--size-icon-medium-6sroof, 16px) + (var(--line-height-body-m-2zx78l, 22px) - var(--size-icon-normal-wflv4k, 16px)) / -2 + var(--space-xs-xf5ch3, 8px)));
334
338
  }
335
- body[data-awsui-focus-visible=true] .awsui_wrapper-container_gwq0h_1f5fu_286:not(#\9):focus {
339
+ body[data-awsui-focus-visible=true] .awsui_wrapper-container_gwq0h_9nra9_286:not(#\9):focus {
336
340
  padding-block: calc(var(--space-scaled-s-9q8n2q, 12px) - var(--border-divider-section-width-wl9k66, 1px));
337
341
  padding-inline: calc(var(--space-l-xu1x80, 20px) - var(--border-divider-section-width-wl9k66, 1px));
338
342
  }
339
- .awsui_wrapper-default_gwq0h_1f5fu_279.awsui_wrapper-expanded_gwq0h_1f5fu_325:not(#\9) {
340
- border-block-end-color: var(--color-border-divider-default-in8dkg, #eaeded);
341
- }
342
343
 
343
- .awsui_header_gwq0h_1f5fu_303:not(#\9) {
344
+ .awsui_header_gwq0h_9nra9_303:not(#\9) {
344
345
  /* used in test-utils */
345
346
  }
346
- .awsui_header-wrapper_gwq0h_1f5fu_345:not(#\9), .awsui_header-deprecated_gwq0h_1f5fu_303:not(#\9) {
347
+ .awsui_header-wrapper_gwq0h_9nra9_346:not(#\9), .awsui_header-deprecated_gwq0h_9nra9_303:not(#\9) {
347
348
  display: flex;
348
349
  font-weight: var(--font-weight-heading-s-mkhu7c, 700);
349
350
  }
350
- .awsui_header-wrapper_gwq0h_1f5fu_345:not(#\9) {
351
+ .awsui_header-wrapper_gwq0h_9nra9_346:not(#\9) {
351
352
  font-size: inherit;
352
353
  letter-spacing: inherit;
353
354
  margin-block: 0;
@@ -355,20 +356,20 @@ body[data-awsui-focus-visible=true] .awsui_wrapper-container_gwq0h_1f5fu_286:not
355
356
  padding-block: 0;
356
357
  padding-inline: 0;
357
358
  }
358
- .awsui_header-actions-wrapper_gwq0h_1f5fu_357:not(#\9) {
359
+ .awsui_header-actions-wrapper_gwq0h_9nra9_358:not(#\9) {
359
360
  display: flex;
360
361
  flex-direction: row;
361
362
  justify-content: space-between;
362
363
  align-items: center;
363
364
  }
364
- body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_1f5fu_363:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_1f5fu_363:not(#\9):focus {
365
+ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_9nra9_364:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_9nra9_364:not(#\9):focus {
365
366
  position: relative;
366
367
  }
367
- body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_1f5fu_363:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_1f5fu_363:not(#\9):focus {
368
+ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_9nra9_364:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_9nra9_364:not(#\9):focus {
368
369
  outline: 2px dotted transparent;
369
370
  outline-offset: calc(0px - 1px);
370
371
  }
371
- body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_1f5fu_363:not(#\9):focus::before, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_1f5fu_363:not(#\9):focus::before {
372
+ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_9nra9_364:not(#\9):focus::before, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_9nra9_364:not(#\9):focus::before {
372
373
  content: " ";
373
374
  display: block;
374
375
  position: absolute;
@@ -382,21 +383,21 @@ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_1f5fu_363:not(#\9
382
383
  border-end-end-radius: var(--border-radius-control-default-focus-ring-a78bgq, 2px);
383
384
  box-shadow: 0 0 0 2px var(--color-border-item-focused-v8nq2m, #0073bb);
384
385
  }
385
- .awsui_header-button_gwq0h_1f5fu_363:not(#\9) {
386
+ .awsui_header-button_gwq0h_9nra9_364:not(#\9) {
386
387
  box-sizing: border-box;
387
388
  display: flex;
388
389
  margin-inline-start: calc(-1 * calc(var(--size-icon-normal-wflv4k, 16px) + (var(--line-height-body-m-2zx78l, 22px) - var(--size-icon-normal-wflv4k, 16px)) / -2 + var(--space-xxs-9rrxti, 4px) + var(--border-divider-list-width-471u6a, 1px)));
389
390
  }
390
- .awsui_header-container-button_gwq0h_1f5fu_363:not(#\9) {
391
+ .awsui_header-container-button_gwq0h_9nra9_364:not(#\9) {
391
392
  margin-inline-start: calc(-1 * calc(var(--size-icon-medium-6sroof, 16px) + (var(--line-height-body-m-2zx78l, 22px) - var(--size-icon-normal-wflv4k, 16px)) / -2 + var(--space-xs-xf5ch3, 8px)));
392
393
  }
393
- .awsui_header-container_gwq0h_1f5fu_363:not(#\9) {
394
+ .awsui_header-container_gwq0h_9nra9_364:not(#\9) {
394
395
  inline-size: 100%;
395
396
  }
396
- .awsui_header-container_gwq0h_1f5fu_363 > .awsui_icon-container_gwq0h_1f5fu_263:not(#\9) {
397
+ .awsui_header-container_gwq0h_9nra9_364 > .awsui_icon-container_gwq0h_9nra9_263:not(#\9) {
397
398
  margin-block-start: var(--space-expandable-section-icon-offset-top-5sppg0, 8px);
398
399
  }
399
- .awsui_header-navigation_gwq0h_1f5fu_398 > .awsui_icon-container_gwq0h_1f5fu_263:not(#\9) {
400
+ .awsui_header-navigation_gwq0h_9nra9_399 > .awsui_icon-container_gwq0h_9nra9_263:not(#\9) {
400
401
  display: inline-flex;
401
402
  cursor: pointer;
402
403
  color: var(--color-text-expandable-section-navigation-icon-default-p5s2p2, #879596);
@@ -409,17 +410,17 @@ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_1f5fu_363:not(#\9
409
410
  text-decoration: none;
410
411
  flex-direction: column;
411
412
  }
412
- .awsui_header-navigation_gwq0h_1f5fu_398 > .awsui_icon-container_gwq0h_1f5fu_263:not(#\9):hover {
413
+ .awsui_header-navigation_gwq0h_9nra9_399 > .awsui_icon-container_gwq0h_9nra9_263:not(#\9):hover {
413
414
  color: var(--color-text-expandable-section-hover-6msis6, #16191f);
414
415
  }
415
- body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_1f5fu_398 > .awsui_icon-container_gwq0h_1f5fu_263:not(#\9):focus {
416
+ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_9nra9_399 > .awsui_icon-container_gwq0h_9nra9_263:not(#\9):focus {
416
417
  position: relative;
417
418
  }
418
- body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_1f5fu_398 > .awsui_icon-container_gwq0h_1f5fu_263:not(#\9):focus {
419
+ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_9nra9_399 > .awsui_icon-container_gwq0h_9nra9_263:not(#\9):focus {
419
420
  outline: 2px dotted transparent;
420
421
  outline-offset: calc(2px - 1px);
421
422
  }
422
- body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_1f5fu_398 > .awsui_icon-container_gwq0h_1f5fu_263:not(#\9):focus::before {
423
+ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_9nra9_399 > .awsui_icon-container_gwq0h_9nra9_263:not(#\9):focus::before {
423
424
  content: " ";
424
425
  display: block;
425
426
  position: absolute;
@@ -433,39 +434,39 @@ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_1f5fu_398 > .
433
434
  border-end-end-radius: var(--border-radius-control-default-focus-ring-a78bgq, 2px);
434
435
  box-shadow: 0 0 0 2px var(--color-border-item-focused-v8nq2m, #0073bb);
435
436
  }
436
- .awsui_header-text_gwq0h_1f5fu_435:not(#\9) {
437
+ .awsui_header-text_gwq0h_9nra9_436:not(#\9) {
437
438
  /* used in test-utils */
438
439
  }
439
440
 
440
- :not(#\9):not(.awsui_wrapper-compact_gwq0h_1f5fu_290) > .awsui_header-actions-wrapper_gwq0h_1f5fu_357 {
441
+ :not(#\9):not(.awsui_wrapper-compact_gwq0h_9nra9_290) > .awsui_header-actions-wrapper_gwq0h_9nra9_358 {
441
442
  flex-wrap: wrap;
442
443
  column-gap: var(--space-xs-xf5ch3, 8px);
443
444
  row-gap: var(--space-scaled-xxxs-f7yq15, 2px);
444
445
  }
445
446
 
446
- .awsui_content_gwq0h_1f5fu_157:not(#\9) {
447
+ .awsui_content_gwq0h_9nra9_157:not(#\9) {
447
448
  display: none;
448
449
  }
449
- .awsui_content-default_gwq0h_1f5fu_448:not(#\9) {
450
+ .awsui_content-default_gwq0h_9nra9_449:not(#\9), .awsui_content-inline_gwq0h_9nra9_449:not(#\9) {
450
451
  padding-block: var(--space-scaled-xs-x91h81, 8px);
451
452
  padding-inline: 0;
452
453
  }
453
- .awsui_content-footer_gwq0h_1f5fu_452:not(#\9) {
454
+ .awsui_content-footer_gwq0h_9nra9_453:not(#\9) {
454
455
  padding-block: var(--space-xs-xf5ch3, 8px);
455
456
  padding-inline: 0;
456
457
  }
457
- .awsui_content-expanded_gwq0h_1f5fu_456:not(#\9) {
458
+ .awsui_content-expanded_gwq0h_9nra9_457:not(#\9) {
458
459
  display: block;
459
460
  }
460
- .awsui_content-compact_gwq0h_1f5fu_459:not(#\9) {
461
+ .awsui_content-compact_gwq0h_9nra9_460:not(#\9) {
461
462
  padding-inline-start: calc(var(--size-icon-normal-wflv4k, 16px) + (var(--line-height-body-m-2zx78l, 22px) - var(--size-icon-normal-wflv4k, 16px)) / -2 + var(--space-xxs-9rrxti, 4px) + var(--border-divider-list-width-471u6a, 1px));
462
463
  }
463
464
 
464
- .awsui_focusable_gwq0h_1f5fu_463:not(#\9):focus {
465
+ .awsui_focusable_gwq0h_9nra9_464:not(#\9):focus {
465
466
  outline: none;
466
467
  text-decoration: none;
467
468
  }
468
- body[data-awsui-focus-visible=true] .awsui_focusable_gwq0h_1f5fu_463:not(#\9):focus {
469
+ body[data-awsui-focus-visible=true] .awsui_focusable_gwq0h_9nra9_464:not(#\9):focus {
469
470
  outline: 2px dotted transparent;
470
471
  border-block: var(--border-field-width-yoy972, 1px) solid var(--color-border-item-focused-v8nq2m, #0073bb);
471
472
  border-inline: var(--border-field-width-yoy972, 1px) solid var(--color-border-item-focused-v8nq2m, #0073bb);
@@ -476,9 +477,9 @@ body[data-awsui-focus-visible=true] .awsui_focusable_gwq0h_1f5fu_463:not(#\9):fo
476
477
  box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-0k725q, 1px) var(--color-border-item-focused-v8nq2m, #0073bb);
477
478
  }
478
479
 
479
- .awsui_click-target_gwq0h_1f5fu_478:not(#\9) {
480
+ .awsui_click-target_gwq0h_9nra9_479:not(#\9) {
480
481
  cursor: pointer;
481
482
  }
482
- .awsui_click-target_gwq0h_1f5fu_478:not(#\9):not(.awsui_wrapper-container_gwq0h_1f5fu_286):not(.awsui_header-container-button_gwq0h_1f5fu_363):hover {
483
+ .awsui_click-target_gwq0h_9nra9_479:not(#\9):not(.awsui_wrapper-container_gwq0h_9nra9_286):not(.awsui_header-container-button_gwq0h_9nra9_364):hover {
483
484
  color: var(--color-text-expandable-section-hover-6msis6, #16191f);
484
485
  }