@cloudscape-design/components-themeable 3.0.934 → 3.0.935

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 (25) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/wizard/styles.scss +0 -1
  3. package/lib/internal/template/anchor-navigation/anchor-item/index.d.ts +12 -0
  4. package/lib/internal/template/anchor-navigation/anchor-item/index.d.ts.map +1 -0
  5. package/lib/internal/template/anchor-navigation/anchor-item/index.js +23 -0
  6. package/lib/internal/template/anchor-navigation/anchor-item/index.js.map +1 -0
  7. package/lib/internal/template/anchor-navigation/internal.d.ts.map +1 -1
  8. package/lib/internal/template/anchor-navigation/internal.js +5 -17
  9. package/lib/internal/template/anchor-navigation/internal.js.map +1 -1
  10. package/lib/internal/template/anchor-navigation/utils.d.ts +9 -0
  11. package/lib/internal/template/anchor-navigation/utils.d.ts.map +1 -0
  12. package/lib/internal/template/anchor-navigation/utils.js +50 -0
  13. package/lib/internal/template/anchor-navigation/utils.js.map +1 -0
  14. package/lib/internal/template/breadcrumb-group/item/item.d.ts.map +1 -1
  15. package/lib/internal/template/breadcrumb-group/item/item.js +11 -3
  16. package/lib/internal/template/breadcrumb-group/item/item.js.map +1 -1
  17. package/lib/internal/template/button-dropdown/category-elements/category-element.d.ts.map +1 -1
  18. package/lib/internal/template/button-dropdown/category-elements/category-element.js +2 -2
  19. package/lib/internal/template/button-dropdown/category-elements/category-element.js.map +1 -1
  20. package/lib/internal/template/internal/environment.js +1 -1
  21. package/lib/internal/template/internal/environment.json +1 -1
  22. package/lib/internal/template/wizard/styles.css.js +30 -30
  23. package/lib/internal/template/wizard/styles.scoped.css +58 -59
  24. package/lib/internal/template/wizard/styles.selectors.js +30 -30
  25. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "4ab26f091cfb8a55a52c00632e50c7c12830d097"
2
+ "commit": "18032775117d4285ca249636916a372513d82810"
3
3
  }
@@ -226,7 +226,6 @@
226
226
  display: contents;
227
227
 
228
228
  > .form-header {
229
- background-color: awsui.$color-background-layout-main;
230
229
  grid-column: 2;
231
230
  grid-row: 1;
232
231
  color: awsui.$color-text-body-default;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { AnchorNavigationProps } from '../interfaces';
3
+ interface AnchorItemProps {
4
+ anchor: AnchorNavigationProps.Anchor;
5
+ onFollow: (anchor: AnchorNavigationProps.Anchor, event: React.SyntheticEvent | Event) => void;
6
+ isActive: boolean;
7
+ index: number;
8
+ children: React.ReactNode;
9
+ }
10
+ export declare const AnchorItem: ({ anchor, onFollow, isActive, index, children }: AnchorItemProps) => JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/anchor-navigation/anchor-item/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAK3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAKtD,UAAU,eAAe;IACvB,MAAM,EAAE,qBAAqB,CAAC,MAAM,CAAC;IACrC,QAAQ,EAAE,CAAC,MAAM,EAAE,qBAAqB,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;IAC9F,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,UAAU,oDAAqD,eAAe,gBAuC1F,CAAC"}
@@ -0,0 +1,23 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import React, { useCallback } from 'react';
4
+ import clsx from 'clsx';
5
+ import { isPlainLeftClick } from '../../internal/events';
6
+ import { checkSafeUrl } from '../../internal/utils/check-safe-url';
7
+ import styles from '../styles.css.js';
8
+ import testUtilsStyles from '../test-classes/styles.css.js';
9
+ export const AnchorItem = ({ anchor, onFollow, isActive, index, children }) => {
10
+ checkSafeUrl('AnchorNavigation', anchor.href);
11
+ const onClick = useCallback((event) => {
12
+ if (isPlainLeftClick(event)) {
13
+ onFollow(anchor, event);
14
+ }
15
+ }, [onFollow, anchor]);
16
+ const activeItemClasses = clsx(styles['anchor-item--active'], testUtilsStyles['anchor-item--active']);
17
+ return (React.createElement("li", { "data-itemid": `anchor-item-${index + 1}`, className: clsx(styles['anchor-item'], isActive && activeItemClasses) },
18
+ React.createElement("a", Object.assign({ onClick: onClick, className: clsx(styles['anchor-link'], testUtilsStyles['anchor-link'], isActive && styles['anchor-link--active']) }, (isActive ? { 'aria-current': true } : {}), { href: anchor.href }),
19
+ React.createElement("span", { className: clsx(styles['anchor-link-text'], testUtilsStyles['anchor-link-text']), style: { paddingInlineStart: `${anchor.level * 16 + 2}px` } }, anchor.text),
20
+ anchor.info && (React.createElement("span", { className: clsx(styles['anchor-link-info'], testUtilsStyles['anchor-link-info']) }, anchor.info))),
21
+ children));
22
+ };
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/anchor-navigation/anchor-item/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAGnE,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAU5D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EA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CAAC,IAAI,CAAQ,CAC7G,CACC;QACH,QAAQ,CACN,CACN,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback } from 'react';\nimport clsx from 'clsx';\n\nimport { isPlainLeftClick } from '../../internal/events';\nimport { checkSafeUrl } from '../../internal/utils/check-safe-url';\nimport { AnchorNavigationProps } from '../interfaces';\n\nimport styles from '../styles.css.js';\nimport testUtilsStyles from '../test-classes/styles.css.js';\n\ninterface AnchorItemProps {\n anchor: AnchorNavigationProps.Anchor;\n onFollow: (anchor: AnchorNavigationProps.Anchor, event: React.SyntheticEvent | Event) => void;\n isActive: boolean;\n index: number;\n children: React.ReactNode;\n}\n\nexport const AnchorItem = ({ anchor, onFollow, isActive, index, children }: AnchorItemProps) => {\n checkSafeUrl('AnchorNavigation', anchor.href);\n\n const onClick = useCallback(\n (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n onFollow(anchor, event);\n }\n },\n [onFollow, anchor]\n );\n\n const activeItemClasses = clsx(styles['anchor-item--active'], testUtilsStyles['anchor-item--active']);\n\n return (\n <li data-itemid={`anchor-item-${index + 1}`} className={clsx(styles['anchor-item'], isActive && activeItemClasses)}>\n <a\n onClick={onClick}\n className={clsx(\n styles['anchor-link'],\n testUtilsStyles['anchor-link'],\n isActive && styles['anchor-link--active']\n )}\n {...(isActive ? { 'aria-current': true } : {})}\n href={anchor.href}\n >\n <span\n className={clsx(styles['anchor-link-text'], testUtilsStyles['anchor-link-text'])}\n style={{ paddingInlineStart: `${anchor.level * 16 + 2}px` }}\n >\n {anchor.text}\n </span>\n {anchor.info && (\n <span className={clsx(styles['anchor-link-info'], testUtilsStyles['anchor-link-info'])}>{anchor.info}</span>\n )}\n </a>\n {children}\n </li>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/anchor-navigation/internal.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAE3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAMrD,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,OAAO,EACP,cAAc,EACd,QAAQ,EACR,kBAAkB,EAClB,UAAe,EACf,iBAAwB,EACxB,eAAmB,EACnB,GAAG,KAAK,EACT,EAAE,qBAAqB,GAAG,0BAA0B,eA+CpD"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/anchor-navigation/internal.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAOrD,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,OAAO,EACP,cAAc,EACd,QAAQ,EACR,kBAAkB,EAClB,UAAe,EACf,iBAAwB,EACxB,eAAmB,EACnB,GAAG,KAAK,EACT,EAAE,qBAAqB,GAAG,0BAA0B,eAwCpD"}
@@ -4,9 +4,9 @@ import { __rest } from "tslib";
4
4
  import React, { useCallback, useEffect, useMemo } from 'react';
5
5
  import clsx from 'clsx';
6
6
  import { getBaseProps } from '../internal/base-component/index.js';
7
- import { fireCancelableEvent, fireNonCancelableEvent, isPlainLeftClick } from '../internal/events/index';
8
- import { checkSafeUrl } from '../internal/utils/check-safe-url';
7
+ import { fireCancelableEvent, fireNonCancelableEvent } from '../internal/events/index';
9
8
  import useScrollSpy from './use-scroll-spy.js';
9
+ import { renderNestedAnchors } from './utils';
10
10
  import styles from './styles.css.js';
11
11
  import testUtilsStyles from './test-classes/styles.css.js';
12
12
  export default function InternalAnchorNavigation(_a) {
@@ -28,21 +28,9 @@ export default function InternalAnchorNavigation(_a) {
28
28
  }
29
29
  }, [onActiveHrefChange, anchors, currentActiveHref]);
30
30
  return (React.createElement("nav", Object.assign({}, baseProps, { ref: __internalRootRef, "aria-labelledby": ariaLabelledby, className: clsx(baseProps.className, styles.root, testUtilsStyles.root) }),
31
- React.createElement("ol", { className: clsx(styles['anchor-list'], testUtilsStyles['anchor-list']) }, anchors.map((anchor, index) => {
32
- return (React.createElement(Anchor, { onFollow: onFollowHandler, isActive: anchor.href === currentActiveHref, key: index, index: index, anchor: anchor }));
31
+ React.createElement("ol", { className: clsx(styles['anchor-list'], testUtilsStyles['anchor-list']) }, renderNestedAnchors(anchors, {
32
+ onFollowHandler,
33
+ currentActiveHref,
33
34
  }))));
34
35
  }
35
- const Anchor = ({ anchor, onFollow, isActive, index }) => {
36
- checkSafeUrl('AnchorNavigation', anchor.href);
37
- const onClick = useCallback((event) => {
38
- if (isPlainLeftClick(event)) {
39
- onFollow(anchor, event);
40
- }
41
- }, [onFollow, anchor]);
42
- const activeItemClasses = clsx(styles['anchor-item--active'], testUtilsStyles['anchor-item--active']);
43
- return (React.createElement("li", { "data-itemid": `anchor-item-${index + 1}`, className: clsx(styles['anchor-item'], isActive && activeItemClasses) },
44
- React.createElement("a", Object.assign({ onClick: onClick, className: clsx(styles['anchor-link'], testUtilsStyles['anchor-link'], isActive && styles['anchor-link--active']) }, (isActive ? { 'aria-current': true } : {}), { href: anchor.href }),
45
- React.createElement("span", { className: clsx(styles['anchor-link-text'], testUtilsStyles['anchor-link-text']), style: { paddingInlineStart: `${anchor.level * 16 + 2}px` } }, anchor.text),
46
- anchor.info && (React.createElement("span", { className: clsx(styles['anchor-link-info'], testUtilsStyles['anchor-link-info']) }, anchor.info)))));
47
- };
48
36
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/anchor-navigation/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,IAAI,MAAM,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E,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,QAAQ,IAAI,iBAAiB,CAAC;QAChH,yCACE,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,aAAa,CAAC,EACrB,eAAe,CAAC,aAAa,CAAC,EAC9B,QAAQ,IAAI,MAAM,CAAC,qBAAqB,CAAC,CAC1C,IACG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,IAC9C,IAAI,EAAE,MAAM,CAAC,IAAI;YAEjB,8BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC,EAChF,KAAK,EAAE,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC,KAAK,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE,IAE1D,MAAM,CAAC,IAAI,CACP;YACN,MAAM,CAAC,IAAI,IAAI,CACd,8BAAM,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC,IAAG,MAAM,CAAC,IAAI,CAAQ,CAC7G,CACC,CACD,CACN,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useMemo } from 'react';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component/index.js';\nimport { fireCancelableEvent, fireNonCancelableEvent, isPlainLeftClick } from '../internal/events/index';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component/index.js';\nimport { checkSafeUrl } from '../internal/utils/check-safe-url';\nimport { AnchorNavigationProps } from './interfaces';\nimport useScrollSpy from './use-scroll-spy.js';\n\nimport styles from './styles.css.js';\nimport testUtilsStyles from './test-classes/styles.css.js';\n\nexport default function InternalAnchorNavigation({\n anchors,\n ariaLabelledby,\n onFollow,\n onActiveHrefChange,\n activeHref = '',\n __internalRootRef = null,\n scrollSpyOffset = 0,\n ...props\n}: AnchorNavigationProps & InternalBaseComponentProps) {\n const baseProps = getBaseProps(props);\n\n const hrefs = useMemo(() => anchors.map(anchor => anchor.href), [anchors]);\n\n const onFollowHandler = useCallback(\n (anchor: AnchorNavigationProps.Anchor, sourceEvent: React.SyntheticEvent | Event) => {\n fireCancelableEvent(onFollow, anchor, sourceEvent);\n },\n [onFollow]\n );\n\n const currentActiveHref = useScrollSpy({\n hrefs,\n scrollSpyOffset,\n activeHref,\n });\n\n useEffect(() => {\n if (currentActiveHref) {\n const newActiveAnchor = anchors.find(anchor => anchor.href === currentActiveHref);\n fireNonCancelableEvent(onActiveHrefChange, newActiveAnchor);\n }\n }, [onActiveHrefChange, anchors, currentActiveHref]);\n\n return (\n <nav\n {...baseProps}\n ref={__internalRootRef}\n aria-labelledby={ariaLabelledby}\n className={clsx(baseProps.className, styles.root, testUtilsStyles.root)}\n >\n <ol className={clsx(styles['anchor-list'], testUtilsStyles['anchor-list'])}>\n {anchors.map((anchor, index) => {\n return (\n <Anchor\n onFollow={onFollowHandler}\n isActive={anchor.href === currentActiveHref}\n key={index}\n index={index}\n anchor={anchor}\n />\n );\n })}\n </ol>\n </nav>\n );\n}\n\ninterface AnchorProps {\n anchor: AnchorNavigationProps.Anchor;\n onFollow: (anchor: AnchorNavigationProps.Anchor, event: React.SyntheticEvent | Event) => void;\n isActive: boolean;\n index: number;\n}\n\nconst Anchor = ({ anchor, onFollow, isActive, index }: AnchorProps) => {\n checkSafeUrl('AnchorNavigation', anchor.href);\n\n const onClick = useCallback(\n (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n onFollow(anchor, event);\n }\n },\n [onFollow, anchor]\n );\n\n const activeItemClasses = clsx(styles['anchor-item--active'], testUtilsStyles['anchor-item--active']);\n\n return (\n <li data-itemid={`anchor-item-${index + 1}`} className={clsx(styles['anchor-item'], isActive && activeItemClasses)}>\n <a\n onClick={onClick}\n className={clsx(\n styles['anchor-link'],\n testUtilsStyles['anchor-link'],\n isActive && styles['anchor-link--active']\n )}\n {...(isActive ? { 'aria-current': true } : {})}\n href={anchor.href}\n >\n <span\n className={clsx(styles['anchor-link-text'], testUtilsStyles['anchor-link-text'])}\n style={{ paddingInlineStart: `${anchor.level * 16 + 2}px` }}\n >\n {anchor.text}\n </span>\n {anchor.info && (\n <span className={clsx(styles['anchor-link-info'], testUtilsStyles['anchor-link-info'])}>{anchor.info}</span>\n )}\n </a>\n </li>\n );\n};\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/anchor-navigation/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGvF,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAE3D,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EASI;QATJ,EAC/C,OAAO,EACP,cAAc,EACd,QAAQ,EACR,kBAAkB,EAClB,UAAU,GAAG,EAAE,EACf,iBAAiB,GAAG,IAAI,EACxB,eAAe,GAAG,CAAC,OAEgC,EADhD,KAAK,cARuC,qHAShD,CADS;IAER,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IAEtC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAE3E,MAAM,eAAe,GAAG,WAAW,CACjC,CAAC,MAAoC,EAAE,WAAyC,EAAE,EAAE;QAClF,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;IACrD,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,iBAAiB,GAAG,YAAY,CAAC;QACrC,KAAK;QACL,eAAe;QACf,UAAU;KACX,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,iBAAiB,EAAE;YACrB,MAAM,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,iBAAiB,CAAC,CAAC;YAClF,sBAAsB,CAAC,kBAAkB,EAAE,eAAe,CAAC,CAAC;SAC7D;IACH,CAAC,EAAE,CAAC,kBAAkB,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAErD,OAAO,CACL,6CACM,SAAS,IACb,GAAG,EAAE,iBAAiB,qBACL,cAAc,EAC/B,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC;QAEvE,4BAAI,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,eAAe,CAAC,aAAa,CAAC,CAAC,IACvE,mBAAmB,CAAC,OAAO,EAAE;YAC5B,eAAe;YACf,iBAAiB;SAClB,CAAC,CACC,CACD,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useMemo } from 'react';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component/index.js';\nimport { fireCancelableEvent, fireNonCancelableEvent } from '../internal/events/index';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component/index.js';\nimport { AnchorNavigationProps } from './interfaces';\nimport useScrollSpy from './use-scroll-spy.js';\nimport { renderNestedAnchors } from './utils';\n\nimport styles from './styles.css.js';\nimport testUtilsStyles from './test-classes/styles.css.js';\n\nexport default function InternalAnchorNavigation({\n anchors,\n ariaLabelledby,\n onFollow,\n onActiveHrefChange,\n activeHref = '',\n __internalRootRef = null,\n scrollSpyOffset = 0,\n ...props\n}: AnchorNavigationProps & InternalBaseComponentProps) {\n const baseProps = getBaseProps(props);\n\n const hrefs = useMemo(() => anchors.map(anchor => anchor.href), [anchors]);\n\n const onFollowHandler = useCallback(\n (anchor: AnchorNavigationProps.Anchor, sourceEvent: React.SyntheticEvent | Event) => {\n fireCancelableEvent(onFollow, anchor, sourceEvent);\n },\n [onFollow]\n );\n\n const currentActiveHref = useScrollSpy({\n hrefs,\n scrollSpyOffset,\n activeHref,\n });\n\n useEffect(() => {\n if (currentActiveHref) {\n const newActiveAnchor = anchors.find(anchor => anchor.href === currentActiveHref);\n fireNonCancelableEvent(onActiveHrefChange, newActiveAnchor);\n }\n }, [onActiveHrefChange, anchors, currentActiveHref]);\n\n return (\n <nav\n {...baseProps}\n ref={__internalRootRef}\n aria-labelledby={ariaLabelledby}\n className={clsx(baseProps.className, styles.root, testUtilsStyles.root)}\n >\n <ol className={clsx(styles['anchor-list'], testUtilsStyles['anchor-list'])}>\n {renderNestedAnchors(anchors, {\n onFollowHandler,\n currentActiveHref,\n })}\n </ol>\n </nav>\n );\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { AnchorNavigationProps } from './interfaces';
3
+ interface RenderContext {
4
+ onFollowHandler: (anchor: AnchorNavigationProps.Anchor, sourceEvent: React.SyntheticEvent | Event) => void;
5
+ currentActiveHref: string | undefined;
6
+ }
7
+ export declare const renderNestedAnchors: (items: AnchorNavigationProps.Anchor[], context: RenderContext) => React.ReactNode;
8
+ export {};
9
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/anchor-navigation/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AA2BrD,UAAU,aAAa;IACrB,eAAe,EAAE,CAAC,MAAM,EAAE,qBAAqB,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,CAAC,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;IAC3G,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC;AAoDD,eAAO,MAAM,mBAAmB,UAAW,sBAAsB,MAAM,EAAE,WAAW,aAAa,KAAG,MAAM,SAYzG,CAAC"}
@@ -0,0 +1,50 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import React from 'react';
4
+ import clsx from 'clsx';
5
+ import { AnchorItem } from './anchor-item';
6
+ import styles from './styles.css.js';
7
+ import testUtilsStyles from './test-classes/styles.css.js';
8
+ const collectChildItems = (items, currentIndex, currentLevel) => {
9
+ const childItems = [];
10
+ let nextIndex = currentIndex + 1;
11
+ while (nextIndex < items.length && items[nextIndex].level > currentLevel) {
12
+ childItems.push(items[nextIndex]);
13
+ nextIndex++;
14
+ }
15
+ return childItems;
16
+ };
17
+ const createAnchorItem = (currentItem, index, childItems, renderQueue, context) => {
18
+ const childList = [];
19
+ const hasChildren = childItems.length > 0;
20
+ const olClassNAme = clsx(styles['anchor-list'], testUtilsStyles['anchor-list']);
21
+ if (hasChildren) {
22
+ renderQueue.push({
23
+ items: childItems,
24
+ parentList: childList,
25
+ startIndex: index + 1,
26
+ });
27
+ }
28
+ return (React.createElement(AnchorItem, { onFollow: context.onFollowHandler, isActive: currentItem.href === context.currentActiveHref, key: index, index: index, anchor: currentItem }, hasChildren && React.createElement("ol", { className: olClassNAme }, childList)));
29
+ };
30
+ const processQueueItem = (items, startIndex, parentList, renderQueue, context) => {
31
+ let currentIndex = 0;
32
+ while (currentIndex < items.length) {
33
+ const currentItem = items[currentIndex];
34
+ const childItems = collectChildItems(items, currentIndex, currentItem.level);
35
+ parentList.push(createAnchorItem(currentItem, startIndex + currentIndex, childItems, renderQueue, context));
36
+ currentIndex += childItems.length + 1;
37
+ }
38
+ };
39
+ // Perform a queue-based breadth-first traversal that groups child items under their parents based on level hierarchy.
40
+ export const renderNestedAnchors = (items, context) => {
41
+ const rootList = [];
42
+ const renderQueue = [];
43
+ renderQueue.push({ items, parentList: rootList, startIndex: 0 });
44
+ while (renderQueue.length > 0) {
45
+ const currentItem = renderQueue.shift();
46
+ processQueueItem(currentItem.items, currentItem.startIndex, currentItem.parentList, renderQueue, context);
47
+ }
48
+ return rootList;
49
+ };
50
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/anchor-navigation/utils.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAQ3D,MAAM,iBAAiB,GAAG,CACxB,KAAqC,EACrC,YAAoB,EACpB,YAAoB,EACY,EAAE;IAClC,MAAM,UAAU,GAAmC,EAAE,CAAC;IACtD,IAAI,SAAS,GAAG,YAAY,GAAG,CAAC,CAAC;IAEjC,OAAO,SAAS,GAAG,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,GAAG,YAAY,EAAE;QACxE,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CA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,GAAG,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;QAC5G,YAAY,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC;KACvC;AACH,CAAC,CAAC;AAEF,sHAAsH;AACtH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAAqC,EAAE,OAAsB,EAAmB,EAAE;IACpH,MAAM,QAAQ,GAAsB,EAAE,CAAC;IACvC,MAAM,WAAW,GAA4B,EAAE,CAAC;IAEhD,WAAW,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC;IAEjE,OAAO,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7B,MAAM,WAAW,GAAG,WAAW,CAAC,KAAK,EAAG,CAAC;QACzC,gBAAgB,CAAC,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;KAC3G;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,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 { AnchorItem } from './anchor-item';\nimport { AnchorNavigationProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testUtilsStyles from './test-classes/styles.css.js';\n\ninterface AnchorRenderQueueItem {\n items: AnchorNavigationProps.Anchor[];\n parentList: React.ReactNode[];\n startIndex: number;\n}\n\nconst collectChildItems = (\n items: AnchorNavigationProps.Anchor[],\n currentIndex: number,\n currentLevel: number\n): AnchorNavigationProps.Anchor[] => {\n const childItems: AnchorNavigationProps.Anchor[] = [];\n let nextIndex = currentIndex + 1;\n\n while (nextIndex < items.length && items[nextIndex].level > currentLevel) {\n childItems.push(items[nextIndex]);\n nextIndex++;\n }\n\n return childItems;\n};\n\ninterface RenderContext {\n onFollowHandler: (anchor: AnchorNavigationProps.Anchor, sourceEvent: React.SyntheticEvent | Event) => void;\n currentActiveHref: string | undefined;\n}\n\nconst createAnchorItem = (\n currentItem: AnchorNavigationProps.Anchor,\n index: number,\n childItems: AnchorNavigationProps.Anchor[],\n renderQueue: AnchorRenderQueueItem[],\n context: RenderContext\n) => {\n const childList: React.ReactNode[] = [];\n const hasChildren = childItems.length > 0;\n const olClassNAme = clsx(styles['anchor-list'], testUtilsStyles['anchor-list']);\n\n if (hasChildren) {\n renderQueue.push({\n items: childItems,\n parentList: childList,\n startIndex: index + 1,\n });\n }\n\n return (\n <AnchorItem\n onFollow={context.onFollowHandler}\n isActive={currentItem.href === context.currentActiveHref}\n key={index}\n index={index}\n anchor={currentItem}\n >\n {hasChildren && <ol className={olClassNAme}>{childList}</ol>}\n </AnchorItem>\n );\n};\n\nconst processQueueItem = (\n items: AnchorNavigationProps.Anchor[],\n startIndex: number,\n parentList: React.ReactNode[],\n renderQueue: AnchorRenderQueueItem[],\n context: RenderContext\n) => {\n let currentIndex = 0;\n while (currentIndex < items.length) {\n const currentItem = items[currentIndex];\n const childItems = collectChildItems(items, currentIndex, currentItem.level);\n\n parentList.push(createAnchorItem(currentItem, startIndex + currentIndex, childItems, renderQueue, context));\n currentIndex += childItems.length + 1;\n }\n};\n\n// Perform a queue-based breadth-first traversal that groups child items under their parents based on level hierarchy.\nexport const renderNestedAnchors = (items: AnchorNavigationProps.Anchor[], context: RenderContext): React.ReactNode => {\n const rootList: React.ReactNode[] = [];\n const renderQueue: AnchorRenderQueueItem[] = [];\n\n renderQueue.push({ items, parentList: rootList, startIndex: 0 });\n\n while (renderQueue.length > 0) {\n const currentItem = renderQueue.shift()!;\n processQueueItem(currentItem.items, currentItem.startIndex, currentItem.parentList, renderQueue, context);\n }\n\n return rootList;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../../src/breadcrumb-group/item/item.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAyE1E,wBAAgB,cAAc,CAAC,CAAC,SAAS,oBAAoB,CAAC,IAAI,EAAE,EAClE,IAAI,EACJ,SAAS,EACT,UAAU,EACV,OAAO,EACP,QAAQ,EACR,OAAe,EACf,WAAmB,GACpB,EAAE,mBAAmB,CAAC,CAAC,CAAC,eA8CxB"}
1
+ {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../../src/breadcrumb-group/item/item.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AA4E1E,wBAAgB,cAAc,CAAC,CAAC,SAAS,oBAAoB,CAAC,IAAI,EAAE,EAClE,IAAI,EACJ,SAAS,EACT,UAAU,EACV,OAAO,EACP,QAAQ,EACR,OAAe,EACf,WAAmB,GACpB,EAAE,mBAAmB,CAAC,CAAC,CAAC,eA6DxB"}
@@ -10,7 +10,7 @@ import { fireCancelableEvent, isPlainLeftClick } from '../../internal/events';
10
10
  import { getEventDetail } from '../utils';
11
11
  import { FunnelBreadcrumbItem } from './funnel';
12
12
  import styles from './styles.css.js';
13
- const BreadcrumbItemWithPopover = ({ item, isLast, anchorAttributes, children, }) => {
13
+ const BreadcrumbItemWithPopover = ({ item, isLast, anchorAttributes, itemAttributes, children, }) => {
14
14
  const [showPopover, setShowPopover] = useState(false);
15
15
  const textRef = useRef(null);
16
16
  const popoverContent = (React.createElement(Tooltip, { trackRef: textRef, value: item.text, size: "medium", onDismiss: () => setShowPopover(false) }));
@@ -26,7 +26,7 @@ const BreadcrumbItemWithPopover = ({ item, isLast, anchorAttributes, children, }
26
26
  setShowPopover(true);
27
27
  }, onBlur: () => setShowPopover(false), onMouseEnter: () => {
28
28
  setShowPopover(true);
29
- }, onMouseLeave: () => setShowPopover(false), anchorAttributes: anchorAttributes }, (isLast ? { tabIndex: 0 } : {})), children),
29
+ }, onMouseLeave: () => setShowPopover(false), anchorAttributes: anchorAttributes }, itemAttributes), children),
30
30
  showPopover && popoverContent));
31
31
  };
32
32
  const Item = React.forwardRef((_a, ref) => {
@@ -45,13 +45,21 @@ export function BreadcrumbItem({ item, itemIndex, totalCount, onClick, onFollow,
45
45
  const anchorAttributes = {
46
46
  href: item.href || '#',
47
47
  onClick: isLast ? preventDefault : onClickHandler,
48
+ tabIndex: 0,
48
49
  };
50
+ const itemAttributes = {};
49
51
  if (isGhost) {
50
52
  anchorAttributes.tabIndex = -1;
51
53
  }
54
+ if (isLast && !isGhost) {
55
+ itemAttributes['aria-current'] = 'page';
56
+ itemAttributes['aria-disabled'] = true;
57
+ itemAttributes.tabIndex = 0;
58
+ itemAttributes.role = 'link';
59
+ }
52
60
  const breadcrumbItem = (React.createElement(FunnelBreadcrumbItem, { className: styles.text, itemIndex: itemIndex, totalCount: totalCount, text: item.text, disableAnalytics: isGhost }));
53
61
  return (React.createElement("div", { className: clsx(!isGhost && styles.breadcrumb, isGhost && styles['ghost-breadcrumb'], isLast && styles.last) },
54
- isTruncated && !isGhost ? (React.createElement(BreadcrumbItemWithPopover, { item: item, isLast: isLast, anchorAttributes: anchorAttributes }, breadcrumbItem)) : (React.createElement(Item, { isLast: isLast, anchorAttributes: anchorAttributes }, breadcrumbItem)),
62
+ isTruncated && !isGhost ? (React.createElement(BreadcrumbItemWithPopover, { item: item, isLast: isLast, anchorAttributes: anchorAttributes, itemAttributes: itemAttributes }, breadcrumbItem)) : (React.createElement(Item, Object.assign({ isLast: isLast, anchorAttributes: anchorAttributes }, itemAttributes), breadcrumbItem)),
55
63
  !isLast ? (React.createElement("span", { className: styles.icon },
56
64
  React.createElement(InternalIcon, { name: "angle-right" }))) : null));
57
65
  }
@@ -1 +1 @@
1
- {"version":3,"file":"item.js","sourceRoot":"","sources":["../../../../src/breadcrumb-group/item/item.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE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AAI,EAAC,aAAa,GAAG,CAC9B,CACR,CAAC,CAAC,CAAC,IAAI,CACJ,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport InternalIcon from '../../icon/internal';\nimport Tooltip from '../../internal/components/tooltip';\nimport { registerTooltip } from '../../internal/components/tooltip/registry';\nimport { fireCancelableEvent, isPlainLeftClick } from '../../internal/events';\nimport { BreadcrumbGroupProps, BreadcrumbItemProps } from '../interfaces';\nimport { getEventDetail } from '../utils';\nimport { FunnelBreadcrumbItem } from './funnel';\n\nimport styles from './styles.css.js';\n\ninterface BreadcrumbItemWithPopoverProps<T extends BreadcrumbGroupProps.Item> {\n item: T;\n isLast: boolean;\n anchorAttributes: React.AnchorHTMLAttributes<HTMLAnchorElement>;\n children: React.ReactNode;\n}\n\nconst BreadcrumbItemWithPopover = <T extends BreadcrumbGroupProps.Item>({\n item,\n isLast,\n anchorAttributes,\n children,\n}: BreadcrumbItemWithPopoverProps<T>) => {\n const [showPopover, setShowPopover] = useState(false);\n const textRef = useRef<HTMLElement>(null);\n const popoverContent = (\n <Tooltip trackRef={textRef} value={item.text} size=\"medium\" onDismiss={() => setShowPopover(false)} />\n );\n\n useEffect(() => {\n if (showPopover) {\n return registerTooltip(() => {\n setShowPopover(false);\n });\n }\n }, [showPopover]);\n\n return (\n <>\n <Item\n ref={textRef}\n isLast={isLast}\n onFocus={() => {\n setShowPopover(true);\n }}\n onBlur={() => setShowPopover(false)}\n onMouseEnter={() => {\n setShowPopover(true);\n }}\n onMouseLeave={() => setShowPopover(false)}\n anchorAttributes={anchorAttributes}\n {...(isLast ? { tabIndex: 0 } : {})}\n >\n {children}\n </Item>\n {showPopover && popoverContent}\n </>\n );\n};\n\ntype ItemProps = React.HTMLAttributes<HTMLElement> & {\n anchorAttributes: React.AnchorHTMLAttributes<HTMLAnchorElement>;\n isLast: boolean;\n};\nconst Item = React.forwardRef<HTMLElement, ItemProps>(\n ({ anchorAttributes, children, isLast, ...itemAttributes }, ref) =>\n isLast ? (\n <span ref={ref} className={styles.anchor} {...itemAttributes}>\n {children}\n </span>\n ) : (\n <a ref={ref as React.Ref<HTMLAnchorElement>} className={styles.anchor} {...itemAttributes} {...anchorAttributes}>\n {children}\n </a>\n )\n);\n\nexport function BreadcrumbItem<T extends BreadcrumbGroupProps.Item>({\n item,\n itemIndex,\n totalCount,\n onClick,\n onFollow,\n isGhost = false,\n isTruncated = false,\n}: BreadcrumbItemProps<T>) {\n const isLast = itemIndex === totalCount - 1;\n const preventDefault = (event: React.MouseEvent) => event.preventDefault();\n const onClickHandler = (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n fireCancelableEvent(onFollow, getEventDetail(item), event);\n }\n fireCancelableEvent(onClick, getEventDetail(item), event);\n };\n\n const anchorAttributes: React.AnchorHTMLAttributes<HTMLAnchorElement> = {\n href: item.href || '#',\n onClick: isLast ? preventDefault : onClickHandler,\n };\n if (isGhost) {\n anchorAttributes.tabIndex = -1;\n }\n\n const breadcrumbItem = (\n <FunnelBreadcrumbItem\n className={styles.text}\n itemIndex={itemIndex}\n totalCount={totalCount}\n text={item.text}\n disableAnalytics={isGhost}\n />\n );\n\n return (\n <div className={clsx(!isGhost && styles.breadcrumb, isGhost && styles['ghost-breadcrumb'], isLast && styles.last)}>\n {isTruncated && !isGhost ? (\n <BreadcrumbItemWithPopover item={item} isLast={isLast} anchorAttributes={anchorAttributes}>\n {breadcrumbItem}\n </BreadcrumbItemWithPopover>\n ) : (\n <Item isLast={isLast} anchorAttributes={anchorAttributes}>\n {breadcrumbItem}\n </Item>\n )}\n {!isLast ? (\n <span className={styles.icon}>\n <InternalIcon name=\"angle-right\" />\n </span>\n ) : null}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"item.js","sourceRoot":"","sources":["../../../../src/breadcrumb-group/item/item.tsx"],"names":[],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EACV,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc,IAE7B,cAAc,CACW,CAC7B,CAAC,CAAC,CAAC,CACF,oBAAC,IAAI,kBAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,IAAM,cAAc,GACzE,cAAc,CACV,CACR;QACA,CAAC,MAAM,CAAC,CAAC,CAAC,CACT,8BAAM,SAAS,EAAE,MAAM,CAAC,IAAI;YAC1B,oBAAC,YAAY,IAAC,IAAI,EAAC,aAAa,GAAG,CAC9B,CACR,CAAC,CAAC,CAAC,IAAI,CACJ,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport InternalIcon from '../../icon/internal';\nimport Tooltip from '../../internal/components/tooltip';\nimport { registerTooltip } from '../../internal/components/tooltip/registry';\nimport { fireCancelableEvent, isPlainLeftClick } from '../../internal/events';\nimport { BreadcrumbGroupProps, BreadcrumbItemProps } from '../interfaces';\nimport { getEventDetail } from '../utils';\nimport { FunnelBreadcrumbItem } from './funnel';\n\nimport styles from './styles.css.js';\n\ninterface BreadcrumbItemWithPopoverProps<T extends BreadcrumbGroupProps.Item> {\n item: T;\n isLast: boolean;\n anchorAttributes: React.AnchorHTMLAttributes<HTMLAnchorElement>;\n children: React.ReactNode;\n itemAttributes: React.HTMLAttributes<HTMLElement>;\n}\n\nconst BreadcrumbItemWithPopover = <T extends BreadcrumbGroupProps.Item>({\n item,\n isLast,\n anchorAttributes,\n itemAttributes,\n children,\n}: BreadcrumbItemWithPopoverProps<T>) => {\n const [showPopover, setShowPopover] = useState(false);\n const textRef = useRef<HTMLElement>(null);\n const popoverContent = (\n <Tooltip trackRef={textRef} value={item.text} size=\"medium\" onDismiss={() => setShowPopover(false)} />\n );\n\n useEffect(() => {\n if (showPopover) {\n return registerTooltip(() => {\n setShowPopover(false);\n });\n }\n }, [showPopover]);\n\n return (\n <>\n <Item\n ref={textRef}\n isLast={isLast}\n onFocus={() => {\n setShowPopover(true);\n }}\n onBlur={() => setShowPopover(false)}\n onMouseEnter={() => {\n setShowPopover(true);\n }}\n onMouseLeave={() => setShowPopover(false)}\n anchorAttributes={anchorAttributes}\n {...itemAttributes}\n >\n {children}\n </Item>\n {showPopover && popoverContent}\n </>\n );\n};\n\ntype ItemProps = React.HTMLAttributes<HTMLElement> & {\n anchorAttributes: React.AnchorHTMLAttributes<HTMLAnchorElement>;\n isLast: boolean;\n};\nconst Item = React.forwardRef<HTMLElement, ItemProps>(\n ({ anchorAttributes, children, isLast, ...itemAttributes }, ref) => {\n return isLast ? (\n <span ref={ref} className={styles.anchor} {...itemAttributes}>\n {children}\n </span>\n ) : (\n <a ref={ref as React.Ref<HTMLAnchorElement>} className={styles.anchor} {...itemAttributes} {...anchorAttributes}>\n {children}\n </a>\n );\n }\n);\n\nexport function BreadcrumbItem<T extends BreadcrumbGroupProps.Item>({\n item,\n itemIndex,\n totalCount,\n onClick,\n onFollow,\n isGhost = false,\n isTruncated = false,\n}: BreadcrumbItemProps<T>) {\n const isLast = itemIndex === totalCount - 1;\n const preventDefault = (event: React.MouseEvent) => event.preventDefault();\n const onClickHandler = (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n fireCancelableEvent(onFollow, getEventDetail(item), event);\n }\n fireCancelableEvent(onClick, getEventDetail(item), event);\n };\n\n const anchorAttributes: React.AnchorHTMLAttributes<HTMLAnchorElement> = {\n href: item.href || '#',\n onClick: isLast ? preventDefault : onClickHandler,\n tabIndex: 0,\n };\n\n const itemAttributes: React.AnchorHTMLAttributes<HTMLAnchorElement> = {};\n if (isGhost) {\n anchorAttributes.tabIndex = -1;\n }\n\n if (isLast && !isGhost) {\n itemAttributes['aria-current'] = 'page';\n itemAttributes['aria-disabled'] = true;\n itemAttributes.tabIndex = 0;\n itemAttributes.role = 'link';\n }\n\n const breadcrumbItem = (\n <FunnelBreadcrumbItem\n className={styles.text}\n itemIndex={itemIndex}\n totalCount={totalCount}\n text={item.text}\n disableAnalytics={isGhost}\n />\n );\n\n return (\n <div className={clsx(!isGhost && styles.breadcrumb, isGhost && styles['ghost-breadcrumb'], isLast && styles.last)}>\n {isTruncated && !isGhost ? (\n <BreadcrumbItemWithPopover\n item={item}\n isLast={isLast}\n anchorAttributes={anchorAttributes}\n itemAttributes={itemAttributes}\n >\n {breadcrumbItem}\n </BreadcrumbItemWithPopover>\n ) : (\n <Item isLast={isLast} anchorAttributes={anchorAttributes} {...itemAttributes}>\n {breadcrumbItem}\n </Item>\n )}\n {!isLast ? (\n <span className={styles.icon}>\n <InternalIcon name=\"angle-right\" />\n </span>\n ) : null}\n </div>\n );\n}\n"]}
@@ -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,gBAmCf,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":";AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAK9C,QAAA,MAAM,eAAe,qKAalB,aAAa,gBAkCf,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -7,9 +7,9 @@ import styles from './styles.css.js';
7
7
  const CategoryElement = ({ item, onItemActivate, onGroupToggle, targetItem, isHighlighted, isKeyboardHighlight, isExpanded, lastInDropdown, highlightItem, disabled, variant, position, }) => {
8
8
  // Hide the category title element from screen readers because it will be
9
9
  // provided as an ARIA label.
10
- return (React.createElement("li", { className: clsx(styles.category, styles[`variant-${variant}`], disabled && styles.disabled), role: "presentation", "aria-disabled": disabled ? 'true' : undefined },
10
+ return (React.createElement("li", { className: clsx(styles.category, styles[`variant-${variant}`], disabled && styles.disabled), role: "presentation" },
11
11
  item.text && (React.createElement("p", { className: clsx(styles.header, { [styles.disabled]: disabled }), "aria-hidden": "true" }, item.text)),
12
- React.createElement("ul", { className: styles['items-list-container'], role: "group", "aria-label": item.text }, 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 })))));
12
+ 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
13
  };
14
14
  export default CategoryElement;
15
15
  //# sourceMappingURL=category-element.js.map
@@ -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,mBACJ,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;QAE3C,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,IAC9E,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 aria-disabled={disabled ? 'true' : undefined}\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}>\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;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,4 +1,4 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (4ab26f09)";
2
+ export var PACKAGE_VERSION = "3.0.0 (18032775)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (4ab26f09)",
3
+ "PACKAGE_VERSION": "3.0.0 (18032775)",
4
4
  "THEME": "default",
5
5
  "ALWAYS_VISUAL_REFRESH": false
6
6
  }
@@ -1,35 +1,35 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_1xupv_5faah_145",
5
- "wizard": "awsui_wizard_1xupv_5faah_177",
6
- "refresh": "awsui_refresh_1xupv_5faah_177",
7
- "small-container": "awsui_small-container_1xupv_5faah_184",
8
- "navigation": "awsui_navigation_1xupv_5faah_193",
9
- "number": "awsui_number_1xupv_5faah_226",
10
- "circle": "awsui_circle_1xupv_5faah_242",
11
- "title": "awsui_title_1xupv_5faah_253",
12
- "active": "awsui_active_1xupv_5faah_284",
13
- "disabled": "awsui_disabled_1xupv_5faah_295",
14
- "enabled": "awsui_enabled_1xupv_5faah_305",
15
- "form": "awsui_form_1xupv_5faah_349",
16
- "form-header": "awsui_form-header_1xupv_5faah_354",
17
- "form-header-content": "awsui_form-header-content_1xupv_5faah_370",
18
- "form-component": "awsui_form-component_1xupv_5faah_374",
19
- "hidden": "awsui_hidden_1xupv_5faah_388",
20
- "collapsed-steps": "awsui_collapsed-steps_1xupv_5faah_392",
21
- "collapsed-steps-hidden": "awsui_collapsed-steps-hidden_1xupv_5faah_397",
22
- "form-header-component-wrapper": "awsui_form-header-component-wrapper_1xupv_5faah_401",
23
- "form-header-component": "awsui_form-header-component_1xupv_5faah_401",
24
- "navigation-link": "awsui_navigation-link_1xupv_5faah_417",
25
- "navigation-link-item": "awsui_navigation-link-item_1xupv_5faah_418",
26
- "navigation-link-label": "awsui_navigation-link-label_1xupv_5faah_419",
27
- "navigation-link-active": "awsui_navigation-link-active_1xupv_5faah_423",
28
- "navigation-link-disabled": "awsui_navigation-link-disabled_1xupv_5faah_428",
29
- "cancel-button": "awsui_cancel-button_1xupv_5faah_432",
30
- "previous-button": "awsui_previous-button_1xupv_5faah_433",
31
- "primary-button": "awsui_primary-button_1xupv_5faah_434",
32
- "skip-to-button": "awsui_skip-to-button_1xupv_5faah_435",
33
- "action-buttons": "awsui_action-buttons_1xupv_5faah_439"
4
+ "root": "awsui_root_1xupv_pig7l_145",
5
+ "wizard": "awsui_wizard_1xupv_pig7l_177",
6
+ "refresh": "awsui_refresh_1xupv_pig7l_177",
7
+ "small-container": "awsui_small-container_1xupv_pig7l_184",
8
+ "navigation": "awsui_navigation_1xupv_pig7l_193",
9
+ "number": "awsui_number_1xupv_pig7l_226",
10
+ "circle": "awsui_circle_1xupv_pig7l_242",
11
+ "title": "awsui_title_1xupv_pig7l_253",
12
+ "active": "awsui_active_1xupv_pig7l_284",
13
+ "disabled": "awsui_disabled_1xupv_pig7l_295",
14
+ "enabled": "awsui_enabled_1xupv_pig7l_305",
15
+ "form": "awsui_form_1xupv_pig7l_349",
16
+ "form-header": "awsui_form-header_1xupv_pig7l_354",
17
+ "form-header-content": "awsui_form-header-content_1xupv_pig7l_369",
18
+ "form-component": "awsui_form-component_1xupv_pig7l_373",
19
+ "hidden": "awsui_hidden_1xupv_pig7l_387",
20
+ "collapsed-steps": "awsui_collapsed-steps_1xupv_pig7l_391",
21
+ "collapsed-steps-hidden": "awsui_collapsed-steps-hidden_1xupv_pig7l_396",
22
+ "form-header-component-wrapper": "awsui_form-header-component-wrapper_1xupv_pig7l_400",
23
+ "form-header-component": "awsui_form-header-component_1xupv_pig7l_400",
24
+ "navigation-link": "awsui_navigation-link_1xupv_pig7l_416",
25
+ "navigation-link-item": "awsui_navigation-link-item_1xupv_pig7l_417",
26
+ "navigation-link-label": "awsui_navigation-link-label_1xupv_pig7l_418",
27
+ "navigation-link-active": "awsui_navigation-link-active_1xupv_pig7l_422",
28
+ "navigation-link-disabled": "awsui_navigation-link-disabled_1xupv_pig7l_427",
29
+ "cancel-button": "awsui_cancel-button_1xupv_pig7l_431",
30
+ "previous-button": "awsui_previous-button_1xupv_pig7l_432",
31
+ "primary-button": "awsui_primary-button_1xupv_pig7l_433",
32
+ "skip-to-button": "awsui_skip-to-button_1xupv_pig7l_434",
33
+ "action-buttons": "awsui_action-buttons_1xupv_pig7l_438"
34
34
  };
35
35
 
@@ -142,7 +142,7 @@
142
142
  */
143
143
  /* Style used for links in slots/components that are text heavy, to help links stand out among
144
144
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
145
- .awsui_root_1xupv_5faah_145:not(#\9) {
145
+ .awsui_root_1xupv_pig7l_145:not(#\9) {
146
146
  border-collapse: separate;
147
147
  border-spacing: 0;
148
148
  box-sizing: border-box;
@@ -175,30 +175,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
175
175
  -moz-osx-font-smoothing: auto;
176
176
  }
177
177
 
178
- .awsui_wizard_1xupv_5faah_177.awsui_refresh_1xupv_5faah_177:not(#\9) {
178
+ .awsui_wizard_1xupv_pig7l_177.awsui_refresh_1xupv_pig7l_177:not(#\9) {
179
179
  column-gap: var(--space-xl-vss8pc, 24px);
180
180
  display: grid;
181
181
  grid-template-columns: auto minmax(0, 1fr);
182
182
  grid-template-rows: auto 1fr;
183
183
  row-gap: var(--space-scaled-xxs-krq5fq, 4px);
184
184
  }
185
- .awsui_wizard_1xupv_5faah_177.awsui_refresh_1xupv_5faah_177.awsui_small-container_1xupv_5faah_184:not(#\9) {
185
+ .awsui_wizard_1xupv_pig7l_177.awsui_refresh_1xupv_pig7l_177.awsui_small-container_1xupv_pig7l_184:not(#\9) {
186
186
  grid-template-columns: minmax(0, 1fr) 0;
187
187
  row-gap: var(--space-scaled-l-7e51pg, 20px);
188
188
  }
189
189
 
190
- .awsui_wizard_1xupv_5faah_177:not(#\9):not(.awsui_refresh_1xupv_5faah_177) {
190
+ .awsui_wizard_1xupv_pig7l_177:not(#\9):not(.awsui_refresh_1xupv_pig7l_177) {
191
191
  display: flex;
192
192
  }
193
193
 
194
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177:not(#\9) {
194
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177:not(#\9) {
195
195
  grid-column: 1;
196
196
  grid-row: 1/span 2;
197
197
  padding-block-start: calc(var(--space-xs-6dgkww, 8px) + var(--space-scaled-xxs-krq5fq, 4px));
198
198
  /* stylelint-disable selector-max-type */
199
199
  /* stylelint-enable selector-max-type */
200
200
  }
201
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177:not(#\9) {
201
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177:not(#\9) {
202
202
  position: relative;
203
203
  margin-block: 0;
204
204
  margin-inline: 0;
@@ -208,7 +208,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
208
208
  inline-size: 260px;
209
209
  box-sizing: border-box;
210
210
  }
211
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li:not(#\9) {
211
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li:not(#\9) {
212
212
  display: grid;
213
213
  column-gap: var(--space-xs-6dgkww, 8px);
214
214
  grid-template-columns: var(--space-l-eenfqd, 20px) 1fr;
@@ -216,7 +216,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
216
216
  padding-block: 0;
217
217
  padding-inline: 0;
218
218
  }
219
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li > hr:not(#\9) {
219
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li > hr:not(#\9) {
220
220
  background-color: var(--color-border-divider-default-u5ytia, #eaeded);
221
221
  border-block: 0;
222
222
  border-inline: 0;
@@ -224,13 +224,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
224
224
  block-size: 100%;
225
225
  inline-size: var(--space-xxxs-gn3248, 2px);
226
226
  }
227
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li > .awsui_number_1xupv_5faah_226:not(#\9) {
227
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li > .awsui_number_1xupv_pig7l_226:not(#\9) {
228
228
  color: var(--color-text-small-m48dvk, #687078);
229
229
  font-size: var(--font-size-body-s-4dzx5q, 12px);
230
230
  grid-column: 2;
231
231
  grid-row: 1;
232
232
  }
233
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li > a:not(#\9) {
233
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li > a:not(#\9) {
234
234
  align-items: start;
235
235
  column-gap: var(--space-xs-6dgkww, 8px);
236
236
  cursor: pointer;
@@ -240,7 +240,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
240
240
  grid-row: 2;
241
241
  grid-template-columns: var(--space-l-eenfqd, 20px) 1fr;
242
242
  }
243
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li > a > .awsui_circle_1xupv_5faah_242:not(#\9) {
243
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li > a > .awsui_circle_1xupv_pig7l_242:not(#\9) {
244
244
  border-start-start-radius: 100%;
245
245
  border-start-end-radius: 100%;
246
246
  border-end-start-radius: 100%;
@@ -251,12 +251,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
251
251
  margin-block-start: 6px;
252
252
  inline-size: 10px;
253
253
  }
254
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li > a > .awsui_title_1xupv_5faah_253:not(#\9) {
254
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li > a > .awsui_title_1xupv_pig7l_253:not(#\9) {
255
255
  min-inline-size: 0;
256
256
  word-break: break-word;
257
257
  grid-column: 2;
258
258
  }
259
- body[data-awsui-focus-visible=true] .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li > a:not(#\9):focus {
259
+ body[data-awsui-focus-visible=true] .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li > a:not(#\9):focus {
260
260
  outline: thin dotted;
261
261
  outline: var(--border-link-focus-ring-outline-bptw2p, 5px auto Highlight);
262
262
  outline-offset: 2px;
@@ -267,58 +267,58 @@ body[data-awsui-focus-visible=true] .awsui_navigation_1xupv_5faah_193.awsui_refr
267
267
  border-end-end-radius: var(--border-radius-control-default-focus-ring-vy2hlh, 2px);
268
268
  box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-yrkso1, 0px) var(--color-border-item-focused-q68bgg, #0073bb);
269
269
  }
270
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li:not(#\9):first-child > hr {
270
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li:not(#\9):first-child > hr {
271
271
  grid-row: 2/span 2;
272
272
  }
273
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li:not(#\9):not(:first-child) > .awsui_number_1xupv_5faah_226 {
273
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li:not(#\9):not(:first-child) > .awsui_number_1xupv_pig7l_226 {
274
274
  margin-block-start: var(--space-m-u91ipm, 16px);
275
275
  }
276
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li:not(#\9):last-child > hr {
276
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li:not(#\9):last-child > hr {
277
277
  grid-row: 1;
278
278
  }
279
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li:not(#\9):only-of-type > hr {
279
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li:not(#\9):only-of-type > hr {
280
280
  display: none;
281
281
  }
282
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li:not(#\9):not(:first-child):not(:last-child) > hr {
282
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li:not(#\9):not(:first-child):not(:last-child) > hr {
283
283
  grid-row: 1/span 3;
284
284
  }
285
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li.awsui_active_1xupv_5faah_284 > a:not(#\9) {
285
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li.awsui_active_1xupv_pig7l_284 > a:not(#\9) {
286
286
  cursor: text;
287
287
  }
288
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li.awsui_active_1xupv_5faah_284 > a > .awsui_circle_1xupv_5faah_242:not(#\9) {
288
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li.awsui_active_1xupv_pig7l_284 > a > .awsui_circle_1xupv_pig7l_242:not(#\9) {
289
289
  background-color: var(--color-background-control-checked-aeun6h, #0073bb);
290
290
  box-shadow: 0 0 0 3px var(--color-background-container-content-myy7cn, #ffffff), 0 0 0 5px var(--color-background-control-checked-aeun6h, #0073bb), 0 0 0 7px var(--color-background-container-content-myy7cn, #ffffff);
291
291
  }
292
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li.awsui_active_1xupv_5faah_284 > a > .awsui_title_1xupv_5faah_253:not(#\9) {
292
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li.awsui_active_1xupv_pig7l_284 > a > .awsui_title_1xupv_pig7l_253:not(#\9) {
293
293
  color: var(--color-background-control-checked-aeun6h, #0073bb);
294
294
  font-weight: 700;
295
295
  }
296
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li.awsui_disabled_1xupv_5faah_295 > a:not(#\9) {
296
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li.awsui_disabled_1xupv_pig7l_295 > a:not(#\9) {
297
297
  cursor: text;
298
298
  }
299
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li.awsui_disabled_1xupv_5faah_295 > a > .awsui_circle_1xupv_5faah_242:not(#\9) {
299
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li.awsui_disabled_1xupv_pig7l_295 > a > .awsui_circle_1xupv_pig7l_242:not(#\9) {
300
300
  background-color: var(--color-background-container-content-myy7cn, #ffffff);
301
301
  box-shadow: 0 0 0 2px var(--color-text-interactive-disabled-xqzdg5, #aab7b8), 0 0 0 4px var(--color-background-container-content-myy7cn, #ffffff);
302
302
  }
303
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li.awsui_disabled_1xupv_5faah_295 > a > .awsui_title_1xupv_5faah_253:not(#\9) {
303
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li.awsui_disabled_1xupv_pig7l_295 > a > .awsui_title_1xupv_pig7l_253:not(#\9) {
304
304
  color: var(--color-text-status-inactive-hdm5cz, #687078);
305
305
  }
306
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li.awsui_enabled_1xupv_5faah_305 > a > .awsui_circle_1xupv_5faah_242:not(#\9) {
306
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li.awsui_enabled_1xupv_pig7l_305 > a > .awsui_circle_1xupv_pig7l_242:not(#\9) {
307
307
  background-color: var(--color-text-interactive-default-t1snbz, #545b64);
308
308
  box-shadow: 0 0 0 2px var(--color-text-interactive-default-t1snbz, #545b64), 0 0 0 4px var(--color-background-container-content-myy7cn, #ffffff);
309
309
  }
310
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li.awsui_enabled_1xupv_5faah_305 > a > .awsui_title_1xupv_5faah_253:not(#\9) {
310
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li.awsui_enabled_1xupv_pig7l_305 > a > .awsui_title_1xupv_pig7l_253:not(#\9) {
311
311
  color: var(--color-text-interactive-default-t1snbz, #545b64);
312
312
  }
313
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li.awsui_enabled_1xupv_5faah_305 > a:not(#\9):hover > .awsui_circle_1xupv_5faah_242 {
313
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li.awsui_enabled_1xupv_pig7l_305 > a:not(#\9):hover > .awsui_circle_1xupv_pig7l_242 {
314
314
  background-color: var(--color-background-control-checked-aeun6h, #0073bb);
315
315
  box-shadow: 0 0 0 2px var(--color-background-control-checked-aeun6h, #0073bb), 0 0 0 4px var(--color-background-container-content-myy7cn, #ffffff);
316
316
  }
317
- .awsui_navigation_1xupv_5faah_193.awsui_refresh_1xupv_5faah_177 > ul.awsui_refresh_1xupv_5faah_177 > li.awsui_enabled_1xupv_5faah_305 > a:not(#\9):hover > .awsui_title_1xupv_5faah_253 {
317
+ .awsui_navigation_1xupv_pig7l_193.awsui_refresh_1xupv_pig7l_177 > ul.awsui_refresh_1xupv_pig7l_177 > li.awsui_enabled_1xupv_pig7l_305 > a:not(#\9):hover > .awsui_title_1xupv_pig7l_253 {
318
318
  color: var(--color-background-control-checked-aeun6h, #0073bb);
319
319
  }
320
320
 
321
- .awsui_navigation_1xupv_5faah_193:not(#\9):not(.awsui_refresh_1xupv_5faah_177) {
321
+ .awsui_navigation_1xupv_pig7l_193:not(#\9):not(.awsui_refresh_1xupv_pig7l_177) {
322
322
  color: var(--color-text-disabled-hv8bna, #aab7b8);
323
323
  display: inline-block;
324
324
  margin-inline-end: calc(2 * var(--space-xxxl-vkrt7p, 40px));
@@ -328,81 +328,80 @@ body[data-awsui-focus-visible=true] .awsui_navigation_1xupv_5faah_193.awsui_refr
328
328
  /* stylelint-disable selector-max-type */
329
329
  /* stylelint-enable selector-max-type */
330
330
  }
331
- .awsui_navigation_1xupv_5faah_193:not(#\9):not(.awsui_refresh_1xupv_5faah_177) > ul:not(.awsui_refresh_1xupv_5faah_177) {
331
+ .awsui_navigation_1xupv_pig7l_193:not(#\9):not(.awsui_refresh_1xupv_pig7l_177) > ul:not(.awsui_refresh_1xupv_pig7l_177) {
332
332
  list-style: none;
333
333
  padding-block: 0;
334
334
  padding-inline: 0;
335
335
  margin-block: 0;
336
336
  margin-inline: 0;
337
337
  }
338
- .awsui_navigation_1xupv_5faah_193:not(#\9):not(.awsui_refresh_1xupv_5faah_177) > ul:not(.awsui_refresh_1xupv_5faah_177) > li {
338
+ .awsui_navigation_1xupv_pig7l_193:not(#\9):not(.awsui_refresh_1xupv_pig7l_177) > ul:not(.awsui_refresh_1xupv_pig7l_177) > li {
339
339
  min-inline-size: 0;
340
340
  word-break: break-word;
341
341
  padding-block: 0 var(--space-scaled-m-3uxq9h, 16px);
342
342
  }
343
- .awsui_navigation_1xupv_5faah_193:not(#\9):not(.awsui_refresh_1xupv_5faah_177) > ul:not(.awsui_refresh_1xupv_5faah_177) > li:not(:first-child) {
343
+ .awsui_navigation_1xupv_pig7l_193:not(#\9):not(.awsui_refresh_1xupv_pig7l_177) > ul:not(.awsui_refresh_1xupv_pig7l_177) > li:not(:first-child) {
344
344
  margin-block-start: var(--space-scaled-m-3uxq9h, 16px);
345
345
  }
346
- .awsui_navigation_1xupv_5faah_193:not(#\9):not(.awsui_refresh_1xupv_5faah_177) > ul:not(.awsui_refresh_1xupv_5faah_177) > li:not(:last-child) {
346
+ .awsui_navigation_1xupv_pig7l_193:not(#\9):not(.awsui_refresh_1xupv_pig7l_177) > ul:not(.awsui_refresh_1xupv_pig7l_177) > li:not(:last-child) {
347
347
  border-block-end: var(--border-divider-list-width-x6rz7e, 1px) solid var(--color-border-layout-5gml03, #d5dbdb);
348
348
  }
349
349
 
350
- .awsui_form_1xupv_5faah_349:not(#\9):not(.awsui_refresh_1xupv_5faah_177) {
350
+ .awsui_form_1xupv_pig7l_349:not(#\9):not(.awsui_refresh_1xupv_pig7l_177) {
351
351
  min-inline-size: 0;
352
352
  word-break: break-word;
353
353
  inline-size: 100%;
354
354
  }
355
- .awsui_form_1xupv_5faah_349:not(#\9):not(.awsui_refresh_1xupv_5faah_177) > .awsui_form-header_1xupv_5faah_354 {
355
+ .awsui_form_1xupv_pig7l_349:not(#\9):not(.awsui_refresh_1xupv_pig7l_177) > .awsui_form-header_1xupv_pig7l_354 {
356
356
  position: relative;
357
357
  margin-block-end: var(--space-scaled-m-3uxq9h, 16px);
358
358
  }
359
359
 
360
- .awsui_form_1xupv_5faah_349.awsui_refresh_1xupv_5faah_177:not(#\9) {
360
+ .awsui_form_1xupv_pig7l_349.awsui_refresh_1xupv_pig7l_177:not(#\9) {
361
361
  min-inline-size: 0;
362
362
  word-break: break-word;
363
363
  display: contents;
364
364
  }
365
- .awsui_form_1xupv_5faah_349.awsui_refresh_1xupv_5faah_177 > .awsui_form-header_1xupv_5faah_354:not(#\9) {
366
- background-color: var(--color-background-layout-main-f96353, #f2f3f3);
365
+ .awsui_form_1xupv_pig7l_349.awsui_refresh_1xupv_pig7l_177 > .awsui_form-header_1xupv_pig7l_354:not(#\9) {
367
366
  grid-column: 2;
368
367
  grid-row: 1;
369
368
  color: var(--color-text-body-default-agk00h, #16191f);
370
369
  }
371
- .awsui_form_1xupv_5faah_349.awsui_refresh_1xupv_5faah_177 > .awsui_form-header_1xupv_5faah_354 > .awsui_form-header-content_1xupv_5faah_370:not(#\9) {
370
+ .awsui_form_1xupv_pig7l_349.awsui_refresh_1xupv_pig7l_177 > .awsui_form-header_1xupv_pig7l_354 > .awsui_form-header-content_1xupv_pig7l_369:not(#\9) {
372
371
  padding-block-start: calc(var(--space-xl-vss8pc, 24px) + var(--space-scaled-xxxs-6vyqo7, 2px));
373
372
  padding-block-end: var(--space-scaled-s-8j7izy, 12px);
374
373
  }
375
- .awsui_form_1xupv_5faah_349.awsui_refresh_1xupv_5faah_177 > .awsui_form-component_1xupv_5faah_374:not(#\9) {
374
+ .awsui_form_1xupv_pig7l_349.awsui_refresh_1xupv_pig7l_177 > .awsui_form-component_1xupv_pig7l_373:not(#\9) {
376
375
  grid-column: 2;
377
376
  grid-row: 2;
378
377
  }
379
- .awsui_form_1xupv_5faah_349.awsui_refresh_1xupv_5faah_177.awsui_small-container_1xupv_5faah_184 > .awsui_form-header_1xupv_5faah_354:not(#\9) {
378
+ .awsui_form_1xupv_pig7l_349.awsui_refresh_1xupv_pig7l_177.awsui_small-container_1xupv_pig7l_184 > .awsui_form-header_1xupv_pig7l_354:not(#\9) {
380
379
  grid-column: 1/span 2;
381
380
  }
382
- .awsui_form_1xupv_5faah_349.awsui_refresh_1xupv_5faah_177.awsui_small-container_1xupv_5faah_184 > .awsui_form-header_1xupv_5faah_354 > .awsui_form-header-content_1xupv_5faah_370:not(#\9) {
381
+ .awsui_form_1xupv_pig7l_349.awsui_refresh_1xupv_pig7l_177.awsui_small-container_1xupv_pig7l_184 > .awsui_form-header_1xupv_pig7l_354 > .awsui_form-header-content_1xupv_pig7l_369:not(#\9) {
383
382
  padding-block-start: 0;
384
383
  }
385
- .awsui_form_1xupv_5faah_349.awsui_refresh_1xupv_5faah_177.awsui_small-container_1xupv_5faah_184 > .awsui_form-component_1xupv_5faah_374:not(#\9) {
384
+ .awsui_form_1xupv_pig7l_349.awsui_refresh_1xupv_pig7l_177.awsui_small-container_1xupv_pig7l_184 > .awsui_form-component_1xupv_pig7l_373:not(#\9) {
386
385
  grid-column: 1/span 2;
387
386
  }
388
387
 
389
- .awsui_navigation_1xupv_5faah_193.awsui_hidden_1xupv_5faah_388:not(#\9) {
388
+ .awsui_navigation_1xupv_pig7l_193.awsui_hidden_1xupv_pig7l_387:not(#\9) {
390
389
  display: none;
391
390
  }
392
391
 
393
- .awsui_collapsed-steps_1xupv_5faah_392:not(#\9) {
392
+ .awsui_collapsed-steps_1xupv_pig7l_391:not(#\9) {
394
393
  color: var(--color-text-heading-secondary-4zbyer, #545b64);
395
394
  font-weight: 700;
396
395
  padding-block-start: var(--space-scaled-xxs-krq5fq, 4px);
397
396
  }
398
- .awsui_collapsed-steps-hidden_1xupv_5faah_397:not(#\9) {
397
+ .awsui_collapsed-steps-hidden_1xupv_pig7l_396:not(#\9) {
399
398
  display: none;
400
399
  }
401
400
 
402
- .awsui_form-header-component-wrapper_1xupv_5faah_401:not(#\9) {
401
+ .awsui_form-header-component-wrapper_1xupv_pig7l_400:not(#\9) {
403
402
  outline: none;
404
403
  }
405
- body[data-awsui-focus-visible=true] .awsui_form-header-component-wrapper_1xupv_5faah_401:not(#\9):focus {
404
+ body[data-awsui-focus-visible=true] .awsui_form-header-component-wrapper_1xupv_pig7l_400:not(#\9):focus {
406
405
  outline: thin dotted;
407
406
  outline: var(--border-link-focus-ring-outline-bptw2p, 5px auto Highlight);
408
407
  outline-offset: 2px;
@@ -414,30 +413,30 @@ body[data-awsui-focus-visible=true] .awsui_form-header-component-wrapper_1xupv_5
414
413
  box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-yrkso1, 0px) var(--color-border-item-focused-q68bgg, #0073bb);
415
414
  }
416
415
 
417
- .awsui_form-header-component_1xupv_5faah_401:not(#\9),
418
- .awsui_navigation-link_1xupv_5faah_417:not(#\9),
419
- .awsui_navigation-link-item_1xupv_5faah_418:not(#\9),
420
- .awsui_navigation-link-label_1xupv_5faah_419:not(#\9) {
416
+ .awsui_form-header-component_1xupv_pig7l_400:not(#\9),
417
+ .awsui_navigation-link_1xupv_pig7l_416:not(#\9),
418
+ .awsui_navigation-link-item_1xupv_pig7l_417:not(#\9),
419
+ .awsui_navigation-link-label_1xupv_pig7l_418:not(#\9) {
421
420
  /* used in test-utils */
422
421
  }
423
422
 
424
- .awsui_navigation-link-active_1xupv_5faah_423:not(#\9) {
423
+ .awsui_navigation-link-active_1xupv_pig7l_422:not(#\9) {
425
424
  font-weight: 700;
426
425
  color: var(--color-text-body-default-agk00h, #16191f);
427
426
  }
428
427
 
429
- .awsui_navigation-link-disabled_1xupv_5faah_428:not(#\9) {
428
+ .awsui_navigation-link-disabled_1xupv_pig7l_427:not(#\9) {
430
429
  color: var(--color-text-status-inactive-hdm5cz, #687078);
431
430
  }
432
431
 
433
- .awsui_cancel-button_1xupv_5faah_432:not(#\9),
434
- .awsui_previous-button_1xupv_5faah_433:not(#\9),
435
- .awsui_primary-button_1xupv_5faah_434:not(#\9),
436
- .awsui_skip-to-button_1xupv_5faah_435:not(#\9) {
432
+ .awsui_cancel-button_1xupv_pig7l_431:not(#\9),
433
+ .awsui_previous-button_1xupv_pig7l_432:not(#\9),
434
+ .awsui_primary-button_1xupv_pig7l_433:not(#\9),
435
+ .awsui_skip-to-button_1xupv_pig7l_434:not(#\9) {
437
436
  /* used in test-utils */
438
437
  }
439
438
 
440
- .awsui_action-buttons_1xupv_5faah_439:not(#\9) {
439
+ .awsui_action-buttons_1xupv_pig7l_438:not(#\9) {
441
440
  display: flex;
442
441
  justify-content: flex-end;
443
442
  }
@@ -2,35 +2,35 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_1xupv_5faah_145",
6
- "wizard": "awsui_wizard_1xupv_5faah_177",
7
- "refresh": "awsui_refresh_1xupv_5faah_177",
8
- "small-container": "awsui_small-container_1xupv_5faah_184",
9
- "navigation": "awsui_navigation_1xupv_5faah_193",
10
- "number": "awsui_number_1xupv_5faah_226",
11
- "circle": "awsui_circle_1xupv_5faah_242",
12
- "title": "awsui_title_1xupv_5faah_253",
13
- "active": "awsui_active_1xupv_5faah_284",
14
- "disabled": "awsui_disabled_1xupv_5faah_295",
15
- "enabled": "awsui_enabled_1xupv_5faah_305",
16
- "form": "awsui_form_1xupv_5faah_349",
17
- "form-header": "awsui_form-header_1xupv_5faah_354",
18
- "form-header-content": "awsui_form-header-content_1xupv_5faah_370",
19
- "form-component": "awsui_form-component_1xupv_5faah_374",
20
- "hidden": "awsui_hidden_1xupv_5faah_388",
21
- "collapsed-steps": "awsui_collapsed-steps_1xupv_5faah_392",
22
- "collapsed-steps-hidden": "awsui_collapsed-steps-hidden_1xupv_5faah_397",
23
- "form-header-component-wrapper": "awsui_form-header-component-wrapper_1xupv_5faah_401",
24
- "form-header-component": "awsui_form-header-component_1xupv_5faah_401",
25
- "navigation-link": "awsui_navigation-link_1xupv_5faah_417",
26
- "navigation-link-item": "awsui_navigation-link-item_1xupv_5faah_418",
27
- "navigation-link-label": "awsui_navigation-link-label_1xupv_5faah_419",
28
- "navigation-link-active": "awsui_navigation-link-active_1xupv_5faah_423",
29
- "navigation-link-disabled": "awsui_navigation-link-disabled_1xupv_5faah_428",
30
- "cancel-button": "awsui_cancel-button_1xupv_5faah_432",
31
- "previous-button": "awsui_previous-button_1xupv_5faah_433",
32
- "primary-button": "awsui_primary-button_1xupv_5faah_434",
33
- "skip-to-button": "awsui_skip-to-button_1xupv_5faah_435",
34
- "action-buttons": "awsui_action-buttons_1xupv_5faah_439"
5
+ "root": "awsui_root_1xupv_pig7l_145",
6
+ "wizard": "awsui_wizard_1xupv_pig7l_177",
7
+ "refresh": "awsui_refresh_1xupv_pig7l_177",
8
+ "small-container": "awsui_small-container_1xupv_pig7l_184",
9
+ "navigation": "awsui_navigation_1xupv_pig7l_193",
10
+ "number": "awsui_number_1xupv_pig7l_226",
11
+ "circle": "awsui_circle_1xupv_pig7l_242",
12
+ "title": "awsui_title_1xupv_pig7l_253",
13
+ "active": "awsui_active_1xupv_pig7l_284",
14
+ "disabled": "awsui_disabled_1xupv_pig7l_295",
15
+ "enabled": "awsui_enabled_1xupv_pig7l_305",
16
+ "form": "awsui_form_1xupv_pig7l_349",
17
+ "form-header": "awsui_form-header_1xupv_pig7l_354",
18
+ "form-header-content": "awsui_form-header-content_1xupv_pig7l_369",
19
+ "form-component": "awsui_form-component_1xupv_pig7l_373",
20
+ "hidden": "awsui_hidden_1xupv_pig7l_387",
21
+ "collapsed-steps": "awsui_collapsed-steps_1xupv_pig7l_391",
22
+ "collapsed-steps-hidden": "awsui_collapsed-steps-hidden_1xupv_pig7l_396",
23
+ "form-header-component-wrapper": "awsui_form-header-component-wrapper_1xupv_pig7l_400",
24
+ "form-header-component": "awsui_form-header-component_1xupv_pig7l_400",
25
+ "navigation-link": "awsui_navigation-link_1xupv_pig7l_416",
26
+ "navigation-link-item": "awsui_navigation-link-item_1xupv_pig7l_417",
27
+ "navigation-link-label": "awsui_navigation-link-label_1xupv_pig7l_418",
28
+ "navigation-link-active": "awsui_navigation-link-active_1xupv_pig7l_422",
29
+ "navigation-link-disabled": "awsui_navigation-link-disabled_1xupv_pig7l_427",
30
+ "cancel-button": "awsui_cancel-button_1xupv_pig7l_431",
31
+ "previous-button": "awsui_previous-button_1xupv_pig7l_432",
32
+ "primary-button": "awsui_primary-button_1xupv_pig7l_433",
33
+ "skip-to-button": "awsui_skip-to-button_1xupv_pig7l_434",
34
+ "action-buttons": "awsui_action-buttons_1xupv_pig7l_438"
35
35
  };
36
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudscape-design/components-themeable",
3
- "version": "3.0.934",
3
+ "version": "3.0.935",
4
4
  "files": [
5
5
  "lib"
6
6
  ],