@cloudscape-design/components 3.0.747 → 3.0.749

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/alert/actions-wrapper/index.d.ts +1 -1
  2. package/alert/actions-wrapper/index.d.ts.map +1 -1
  3. package/alert/actions-wrapper/index.js +2 -2
  4. package/alert/actions-wrapper/index.js.map +1 -1
  5. package/alert/internal.d.ts.map +1 -1
  6. package/alert/internal.js +15 -5
  7. package/alert/internal.js.map +1 -1
  8. package/alert/styles.css.js +27 -25
  9. package/alert/styles.scoped.css +45 -39
  10. package/alert/styles.selectors.js +27 -25
  11. package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +12 -12
  12. package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +15 -15
  13. package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +12 -12
  14. package/breadcrumb-group/implementation.d.ts.map +1 -1
  15. package/breadcrumb-group/implementation.js +1 -1
  16. package/breadcrumb-group/implementation.js.map +1 -1
  17. package/breadcrumb-group/interfaces.d.ts +1 -1
  18. package/breadcrumb-group/interfaces.js.map +1 -1
  19. package/button-dropdown/interfaces.d.ts +7 -0
  20. package/button-dropdown/interfaces.d.ts.map +1 -1
  21. package/button-dropdown/interfaces.js.map +1 -1
  22. package/button-dropdown/internal.d.ts.map +1 -1
  23. package/button-dropdown/internal.js +2 -2
  24. package/button-dropdown/internal.js.map +1 -1
  25. package/button-dropdown/item-element/index.d.ts +1 -1
  26. package/button-dropdown/item-element/index.d.ts.map +1 -1
  27. package/button-dropdown/item-element/index.js +4 -4
  28. package/button-dropdown/item-element/index.js.map +1 -1
  29. package/button-dropdown/item-element/styles.css.js +13 -12
  30. package/button-dropdown/item-element/styles.scoped.css +52 -14
  31. package/button-dropdown/item-element/styles.selectors.js +13 -12
  32. package/button-dropdown/items-list.d.ts +1 -1
  33. package/button-dropdown/items-list.d.ts.map +1 -1
  34. package/button-dropdown/items-list.js +2 -2
  35. package/button-dropdown/items-list.js.map +1 -1
  36. package/flashbar/analytics-metadata/interfaces.d.ts +36 -0
  37. package/flashbar/analytics-metadata/interfaces.d.ts.map +1 -0
  38. package/flashbar/analytics-metadata/interfaces.js +4 -0
  39. package/flashbar/analytics-metadata/interfaces.js.map +1 -0
  40. package/flashbar/analytics-metadata/styles.css.js +6 -0
  41. package/flashbar/analytics-metadata/styles.scoped.css +7 -0
  42. package/flashbar/analytics-metadata/styles.selectors.js +7 -0
  43. package/flashbar/analytics-metadata/utils.d.ts +7 -0
  44. package/flashbar/analytics-metadata/utils.d.ts.map +1 -0
  45. package/flashbar/analytics-metadata/utils.js +33 -0
  46. package/flashbar/analytics-metadata/utils.js.map +1 -0
  47. package/flashbar/collapsible-flashbar.d.ts.map +1 -1
  48. package/flashbar/collapsible-flashbar.js +13 -5
  49. package/flashbar/collapsible-flashbar.js.map +1 -1
  50. package/flashbar/flash.d.ts.map +1 -1
  51. package/flashbar/flash.js +19 -7
  52. package/flashbar/flash.js.map +1 -1
  53. package/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
  54. package/flashbar/non-collapsible-flashbar.js +4 -2
  55. package/flashbar/non-collapsible-flashbar.js.map +1 -1
  56. package/flashbar/styles.css.js +50 -47
  57. package/flashbar/styles.scoped.css +152 -146
  58. package/flashbar/styles.selectors.js +50 -47
  59. package/internal/components/tooltip/index.d.ts +3 -1
  60. package/internal/components/tooltip/index.d.ts.map +1 -1
  61. package/internal/components/tooltip/index.js +2 -2
  62. package/internal/components/tooltip/index.js.map +1 -1
  63. package/internal/components/tooltip/registry.d.ts +4 -0
  64. package/internal/components/tooltip/registry.d.ts.map +1 -0
  65. package/internal/components/tooltip/registry.js +28 -0
  66. package/internal/components/tooltip/registry.js.map +1 -0
  67. package/internal/environment.js +1 -1
  68. package/internal/environment.json +1 -1
  69. package/internal/manifest.json +1 -1
  70. package/internal/plugins/api.d.ts +9 -0
  71. package/internal/plugins/api.d.ts.map +1 -1
  72. package/internal/plugins/api.js +7 -0
  73. package/internal/plugins/api.js.map +1 -1
  74. package/internal/plugins/controllers/alert-flash-content.d.ts +46 -0
  75. package/internal/plugins/controllers/alert-flash-content.d.ts.map +1 -0
  76. package/internal/plugins/controllers/alert-flash-content.js +59 -0
  77. package/internal/plugins/controllers/alert-flash-content.js.map +1 -0
  78. package/internal/plugins/helpers/index.d.ts +1 -0
  79. package/internal/plugins/helpers/index.d.ts.map +1 -1
  80. package/internal/plugins/helpers/index.js +1 -0
  81. package/internal/plugins/helpers/index.js.map +1 -1
  82. package/internal/plugins/helpers/use-discovered-action.d.ts +2 -2
  83. package/internal/plugins/helpers/use-discovered-action.d.ts.map +1 -1
  84. package/internal/plugins/helpers/use-discovered-action.js.map +1 -1
  85. package/internal/plugins/helpers/use-discovered-content.d.ts +15 -0
  86. package/internal/plugins/helpers/use-discovered-content.d.ts.map +1 -0
  87. package/internal/plugins/helpers/use-discovered-content.js +82 -0
  88. package/internal/plugins/helpers/use-discovered-content.js.map +1 -0
  89. package/link/internal.js +1 -1
  90. package/link/internal.js.map +1 -1
  91. package/package.json +1 -1
  92. package/property-filter/styles.css.js +38 -38
  93. package/property-filter/styles.scoped.css +40 -44
  94. package/property-filter/styles.selectors.js +38 -38
  95. package/side-navigation/implementation.d.ts +1 -1
  96. package/side-navigation/implementation.d.ts.map +1 -1
  97. package/side-navigation/implementation.js +2 -1
  98. package/side-navigation/implementation.js.map +1 -1
  99. package/side-navigation/interfaces.d.ts +4 -0
  100. package/side-navigation/interfaces.d.ts.map +1 -1
  101. package/side-navigation/interfaces.js.map +1 -1
  102. package/side-navigation/styles.css.js +30 -29
  103. package/side-navigation/styles.scoped.css +46 -41
  104. package/side-navigation/styles.selectors.js +30 -29
  105. package/table/expandable-rows/expand-toggle-button.d.ts.map +1 -1
  106. package/table/expandable-rows/expand-toggle-button.js +1 -1
  107. package/table/expandable-rows/expand-toggle-button.js.map +1 -1
  108. package/test-utils/dom/side-navigation/index.d.ts +1 -0
  109. package/test-utils/dom/side-navigation/index.js +3 -0
  110. package/test-utils/dom/side-navigation/index.js.map +1 -1
  111. package/test-utils/selectors/side-navigation/index.d.ts +1 -0
  112. package/test-utils/selectors/side-navigation/index.js +3 -0
  113. package/test-utils/selectors/side-navigation/index.js.map +1 -1
  114. package/test-utils/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,82 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { useEffect, useRef, useState } from 'react';
4
+ export function createUseDiscoveredContent(componentName, onContentRegistered) {
5
+ return function useDiscoveredContent({ type, header, children, }) {
6
+ const headerRef = useRef(null);
7
+ const contentRef = useRef(null);
8
+ const replacementHeaderRef = useRef(null);
9
+ const replacementContentRef = useRef(null);
10
+ const [headerReplacementType, setFoundHeaderReplacement] = useState('original');
11
+ const [contentReplacementType, setFoundContentReplacement] = useState('original');
12
+ const mountedProvider = useRef();
13
+ useEffect(() => {
14
+ const context = { type, headerRef, contentRef };
15
+ return onContentRegistered(provider => {
16
+ let mounted = true;
17
+ function checkMounted(methodName) {
18
+ if (!mounted) {
19
+ console.warn(`[AwsUi] [Runtime ${componentName} content] \`${methodName}\` called after component unmounted`);
20
+ return false;
21
+ }
22
+ return true;
23
+ }
24
+ mountedProvider.current = provider.runReplacer(context, {
25
+ hideHeader() {
26
+ if (checkMounted('hideHeader')) {
27
+ setFoundHeaderReplacement('remove');
28
+ }
29
+ },
30
+ restoreHeader() {
31
+ if (checkMounted('restoreHeader')) {
32
+ setFoundHeaderReplacement('original');
33
+ }
34
+ },
35
+ replaceHeader(replacer) {
36
+ if (checkMounted('replaceHeader')) {
37
+ replacer(replacementHeaderRef.current);
38
+ setFoundHeaderReplacement('replaced');
39
+ }
40
+ },
41
+ hideContent() {
42
+ if (checkMounted('hideContent')) {
43
+ setFoundContentReplacement('remove');
44
+ }
45
+ },
46
+ restoreContent() {
47
+ if (checkMounted('restoreContent')) {
48
+ setFoundContentReplacement('original');
49
+ }
50
+ },
51
+ replaceContent(replacer) {
52
+ if (checkMounted('replaceContent')) {
53
+ replacer(replacementContentRef.current);
54
+ setFoundContentReplacement('replaced');
55
+ }
56
+ },
57
+ });
58
+ return () => {
59
+ var _a;
60
+ (_a = mountedProvider.current) === null || _a === void 0 ? void 0 : _a.unmount({
61
+ replacementHeaderContainer: replacementHeaderRef.current,
62
+ replacementContentContainer: replacementContentRef.current,
63
+ });
64
+ mounted = false;
65
+ };
66
+ });
67
+ }, [type]);
68
+ useEffect(() => {
69
+ var _a;
70
+ (_a = mountedProvider.current) === null || _a === void 0 ? void 0 : _a.update();
71
+ }, [type, header, children]);
72
+ return {
73
+ headerReplacementType,
74
+ contentReplacementType,
75
+ headerRef: headerRef,
76
+ replacementHeaderRef: replacementHeaderRef,
77
+ contentRef: contentRef,
78
+ replacementContentRef: replacementContentRef,
79
+ };
80
+ };
81
+ }
82
+ //# sourceMappingURL=use-discovered-content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-discovered-content.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/helpers/use-discovered-content.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAa,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAQ/D,MAAM,UAAU,0BAA0B,CACxC,aAAqB,EACrB,mBAAuE;IAEvE,OAAO,SAAS,oBAAoB,CAAC,EACnC,IAAI,EACJ,MAAM,EACN,QAAQ,GAKT;QACC,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;QAC/C,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;QAChD,MAAM,oBAAoB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;QAC1D,MAAM,qBAAqB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;QAC3D,MAAM,CAAC,qBAAqB,EAAE,yBAAyB,CAAC,GAAG,QAAQ,CA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CAAC;yBACxC;oBACH,CAAC;oBACD,cAAc,CAAC,QAA0C;wBACvD,IAAI,YAAY,CAAC,gBAAgB,CAAC,EAAE;4BAClC,QAAQ,CAAC,qBAAqB,CAAC,OAAQ,CAAC,CAAC;4BACzC,0BAA0B,CAAC,UAAU,CAAC,CAAC;yBACxC;oBACH,CAAC;iBACF,CAAC,CAAC;gBAEH,OAAO,GAAG,EAAE;;oBACV,MAAA,eAAe,CAAC,OAAO,0CAAE,OAAO,CAAC;wBAC/B,0BAA0B,EAAE,oBAAoB,CAAC,OAAQ;wBACzD,2BAA2B,EAAE,qBAAqB,CAAC,OAAQ;qBAC5D,CAAC,CAAC;oBACH,OAAO,GAAG,KAAK,CAAC;gBAClB,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QAEX,SAAS,CAAC,GAAG,EAAE;;YACb,MAAA,eAAe,CAAC,OAAO,0CAAE,MAAM,EAAE,CAAC;QACpC,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;QAE7B,OAAO;YACL,qBAAqB;YACrB,sBAAsB;YACtB,SAAS,EAAE,SAAsC;YACjD,oBAAoB,EAAE,oBAAiD;YACvE,UAAU,EAAE,UAAuC;YACnD,qBAAqB,EAAE,qBAAkD;SAC1E,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ReactNode, useEffect, useRef, useState } from 'react';\n\nimport {\n AlertFlashContentController,\n AlertFlashContentResult,\n ReplacementType,\n} from '../controllers/alert-flash-content';\n\nexport function createUseDiscoveredContent(\n componentName: string,\n onContentRegistered: AlertFlashContentController['onContentRegistered']\n) {\n return function useDiscoveredContent({\n type,\n header,\n children,\n }: {\n type: string;\n header: ReactNode;\n children: ReactNode;\n }) {\n const headerRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n const replacementHeaderRef = useRef<HTMLDivElement>(null);\n const replacementContentRef = useRef<HTMLDivElement>(null);\n const [headerReplacementType, setFoundHeaderReplacement] = useState<ReplacementType>('original');\n const [contentReplacementType, setFoundContentReplacement] = useState<ReplacementType>('original');\n const mountedProvider = useRef<AlertFlashContentResult | undefined>();\n\n useEffect(() => {\n const context = { type, headerRef, contentRef };\n\n return onContentRegistered(provider => {\n let mounted = true;\n\n function checkMounted(methodName: string) {\n if (!mounted) {\n console.warn(\n `[AwsUi] [Runtime ${componentName} content] \\`${methodName}\\` called after component unmounted`\n );\n return false;\n }\n return true;\n }\n\n mountedProvider.current = provider.runReplacer(context, {\n hideHeader() {\n if (checkMounted('hideHeader')) {\n setFoundHeaderReplacement('remove');\n }\n },\n restoreHeader() {\n if (checkMounted('restoreHeader')) {\n setFoundHeaderReplacement('original');\n }\n },\n replaceHeader(replacer: (container: HTMLElement) => void) {\n if (checkMounted('replaceHeader')) {\n replacer(replacementHeaderRef.current!);\n setFoundHeaderReplacement('replaced');\n }\n },\n hideContent() {\n if (checkMounted('hideContent')) {\n setFoundContentReplacement('remove');\n }\n },\n restoreContent() {\n if (checkMounted('restoreContent')) {\n setFoundContentReplacement('original');\n }\n },\n replaceContent(replacer: (container: HTMLElement) => void) {\n if (checkMounted('replaceContent')) {\n replacer(replacementContentRef.current!);\n setFoundContentReplacement('replaced');\n }\n },\n });\n\n return () => {\n mountedProvider.current?.unmount({\n replacementHeaderContainer: replacementHeaderRef.current!,\n replacementContentContainer: replacementContentRef.current!,\n });\n mounted = false;\n };\n });\n }, [type]);\n\n useEffect(() => {\n mountedProvider.current?.update();\n }, [type, header, children]);\n\n return {\n headerReplacementType,\n contentReplacementType,\n headerRef: headerRef as React.Ref<HTMLDivElement>,\n replacementHeaderRef: replacementHeaderRef as React.Ref<HTMLDivElement>,\n contentRef: contentRef as React.Ref<HTMLDivElement>,\n replacementContentRef: replacementContentRef as React.Ref<HTMLDivElement>,\n };\n };\n}\n"]}
package/link/internal.js CHANGED
@@ -114,7 +114,7 @@ const InternalLink = React.forwardRef((_a, ref) => {
114
114
  const applyButtonStyles = isButton && isVisualRefresh && !hasSpecialStyle;
115
115
  const sharedProps = Object.assign(Object.assign({ id: linkId }, baseProps), {
116
116
  // https://github.com/microsoft/TypeScript/issues/36659
117
- ref: useMergeRefs(linkRef, __internalRootRef), className: clsx(styles.link, baseProps.className, applyButtonStyles ? styles.button : null, styles[getVariantStyle(variant)], styles[getFontSizeStyle(variant, fontSize)], styles[getColorStyle(variant, color)]), 'aria-label': ariaLabel, 'aria-labelledby': '', [DATA_ATTR_FUNNEL_VALUE]: uniqueId });
117
+ ref: useMergeRefs(linkRef, __internalRootRef), className: clsx(styles.link, baseProps.className, applyButtonStyles ? styles.button : null, styles[getVariantStyle(variant)], styles[getFontSizeStyle(variant, fontSize)], styles[getColorStyle(variant, color)]), 'aria-label': ariaLabel, 'aria-labelledby': undefined, [DATA_ATTR_FUNNEL_VALUE]: uniqueId });
118
118
  if (variant === 'info' && infoLinkLabelFromContext && !ariaLabel) {
119
119
  sharedProps['aria-labelledby'] = `${sharedProps.id} ${infoId} ${infoLinkLabelFromContext}`;
120
120
  }
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/link/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AACpG,OAAO,EACL,sBAAsB,EACtB,sBA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WAAW,IACf,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,mBAAmB,EAC9B,OAAO,EAAE,iBAAiB,KAEzB,OAAO,CACN,CACL,CAAC;KACH;IAED,OAAO;IACL,kDAAkD;IAClD,qDAAqD;IACrD,2CACM,WAAW,IACf,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,YAAY,EACpB,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,eAAe,KAEvB,OAAO,CACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,eAAe,CAAC,OAAyD;IAChF,OAAO,WAAW,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAC;AACrD,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAqC,EAAE,QAAuC;IACtG,QAAQ,OAAO,EAAE;QACf,KAAK,MAAM;YACT,OAAO,kBAAkB,CAAC;QAC5B,KAAK,mBAAmB;YACtB,OAAO,qBAAqB,CAAC;QAC/B;YACE,OAAO,aAAa,QAAQ,EAAE,CAAC;KAClC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,OAAqC,EAAE,KAAiC;IAC7F,OAAO,SAAS,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;AAC1D,CAAC;AAED,eAAe,YAAY,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useContext, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useInternalI18n } from '../i18n/context';\nimport InternalIcon from '../icon/internal';\nimport { FunnelMetrics } from '../internal/analytics';\nimport { useFunnel, useFunnelStep, useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport {\n DATA_ATTR_FUNNEL_VALUE,\n getFunnelValueSelector,\n getNameFromSelector,\n getSubStepAllSelector,\n} from '../internal/analytics/selectors';\nimport { getBaseProps } from '../internal/base-component';\nimport { InfoLinkLabelContext } from '../internal/context/info-link-label-context';\nimport { LinkDefaultVariantContext } from '../internal/context/link-default-variant-context';\nimport { useSingleTabStopNavigation } from '../internal/context/single-tab-stop-navigation-context';\nimport { fireCancelableEvent, fireNonCancelableEvent, isPlainLeftClick } from '../internal/events';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { KeyCode } from '../internal/keycode';\nimport { checkSafeUrl } from '../internal/utils/check-safe-url';\nimport { LinkProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ntype InternalLinkProps = InternalBaseComponentProps<HTMLAnchorElement> &\n Omit<LinkProps, 'variant'> & {\n variant?: LinkProps['variant'] | 'top-navigation' | 'link' | 'recovery';\n };\n\nconst InternalLink = React.forwardRef(\n (\n {\n variant: providedVariant,\n fontSize = 'body-m',\n color = 'normal',\n external = false,\n target,\n href,\n rel,\n ariaLabel,\n externalIconAriaLabel,\n onFollow,\n onClick,\n children,\n __internalRootRef = null,\n ...props\n }: InternalLinkProps,\n ref: React.Ref<LinkProps.Ref>\n ) => {\n checkSafeUrl('Link', href);\n const isButton = !href;\n const { defaultVariant } = useContext(LinkDefaultVariantContext);\n const variant = providedVariant || defaultVariant;\n const specialStyles = ['top-navigation', 'link', 'recovery'];\n const hasSpecialStyle = specialStyles.indexOf(variant) > -1;\n\n const i18n = useInternalI18n('link');\n const baseProps = getBaseProps(props);\n const anchorTarget = target ?? (external ? '_blank' : undefined);\n const anchorRel = rel ?? (anchorTarget === '_blank' ? 'noopener noreferrer' : undefined);\n const uniqueId = useUniqueId('link');\n const linkId = useUniqueId('link-self');\n const infoId = useUniqueId('link-info');\n\n const infoLinkLabelFromContext = useContext(InfoLinkLabelContext);\n\n const { funnelIdentifier, funnelInteractionId } = useFunnel();\n const { stepIdentifier, stepNumber, stepNameSelector } = useFunnelStep();\n const { subStepIdentifier, subStepSelector, subStepNameSelector } = useFunnelSubStep();\n\n const fireFunnelEvent = (funnelInteractionId: string) => {\n if (variant === 'info') {\n const stepName = getNameFromSelector(stepNameSelector);\n const subStepName = getNameFromSelector(subStepNameSelector);\n\n FunnelMetrics.helpPanelInteracted({\n funnelIdentifier,\n funnelInteractionId,\n stepIdentifier,\n stepNumber,\n stepName,\n subStepIdentifier,\n stepNameSelector,\n subStepSelector,\n subStepName,\n subStepNameSelector,\n elementSelector: getFunnelValueSelector(uniqueId),\n subStepAllSelector: getSubStepAllSelector(),\n });\n } else if (external) {\n const stepName = getNameFromSelector(stepNameSelector);\n const subStepName = getNameFromSelector(subStepNameSelector);\n\n FunnelMetrics.externalLinkInteracted({\n funnelIdentifier,\n funnelInteractionId,\n stepIdentifier,\n stepNumber,\n stepName,\n stepNameSelector,\n subStepIdentifier,\n subStepSelector,\n subStepName,\n subStepNameSelector,\n elementSelector: getFunnelValueSelector(uniqueId),\n subStepAllSelector: getSubStepAllSelector(),\n });\n }\n };\n\n const fireFollowEvent = (event: React.SyntheticEvent) => {\n if (funnelInteractionId) {\n fireFunnelEvent(funnelInteractionId);\n }\n\n fireCancelableEvent(onFollow, { href, external, target: anchorTarget }, event);\n };\n\n const fireClickEvent = (event: React.MouseEvent | React.KeyboardEvent) => {\n const { altKey, ctrlKey, metaKey, shiftKey } = event;\n const button = 'button' in event ? event.button : 0;\n // make onClick non-cancelable to prevent it from being used to block full page reload\n // for navigation use `onFollow` event instead\n fireNonCancelableEvent(onClick, { altKey, button, ctrlKey, metaKey, shiftKey });\n };\n\n const handleLinkClick = (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n fireFollowEvent(event);\n }\n fireClickEvent(event);\n };\n\n const handleButtonClick = (event: React.MouseEvent) => {\n fireFollowEvent(event);\n fireClickEvent(event);\n };\n\n const handleButtonKeyDown = (event: React.KeyboardEvent) => {\n if (event.keyCode === KeyCode.space || event.keyCode === KeyCode.enter) {\n event.preventDefault();\n fireFollowEvent(event);\n fireClickEvent(event);\n }\n };\n\n const linkRef = useRef<HTMLElement>(null);\n const isVisualRefresh = useVisualRefresh();\n useForwardFocus(ref, linkRef);\n\n // Visual refresh should only add styles to buttons that don't already have unique styles (e.g. primary/secondary variants)\n const applyButtonStyles = isButton && isVisualRefresh && !hasSpecialStyle;\n\n const sharedProps = {\n id: linkId,\n ...baseProps,\n // https://github.com/microsoft/TypeScript/issues/36659\n ref: useMergeRefs(linkRef, __internalRootRef),\n className: clsx(\n styles.link,\n baseProps.className,\n applyButtonStyles ? styles.button : null,\n styles[getVariantStyle(variant)],\n styles[getFontSizeStyle(variant, fontSize)],\n styles[getColorStyle(variant, color)]\n ),\n 'aria-label': ariaLabel,\n 'aria-labelledby': '',\n [DATA_ATTR_FUNNEL_VALUE]: uniqueId,\n };\n\n if (variant === 'info' && infoLinkLabelFromContext && !ariaLabel) {\n sharedProps['aria-labelledby'] = `${sharedProps.id} ${infoId} ${infoLinkLabelFromContext}`;\n }\n\n const renderedExternalIconAriaLabel = i18n('externalIconAriaLabel', externalIconAriaLabel);\n const content = (\n <>\n {children}\n {external && (\n <span className={styles['icon-wrapper']}>\n &nbsp;\n <span\n className={styles.icon}\n aria-label={renderedExternalIconAriaLabel}\n role={renderedExternalIconAriaLabel ? 'img' : undefined}\n >\n <InternalIcon name=\"external\" size=\"inherit\" />\n </span>\n </span>\n )}\n {variant === 'info' && (\n <span hidden={true} id={infoId}>\n :\n </span>\n )}\n </>\n );\n\n const { tabIndex } = useSingleTabStopNavigation(linkRef, { tabIndex: isButton ? 0 : undefined });\n\n if (isButton) {\n return (\n <a\n {...sharedProps}\n role=\"button\"\n tabIndex={tabIndex}\n onKeyDown={handleButtonKeyDown}\n onClick={handleButtonClick}\n >\n {content}\n </a>\n );\n }\n\n return (\n // we dynamically set proper rel in the code above\n // eslint-disable-next-line react/jsx-no-target-blank\n <a\n {...sharedProps}\n tabIndex={tabIndex}\n target={anchorTarget}\n rel={anchorRel}\n href={href}\n onClick={handleLinkClick}\n >\n {content}\n </a>\n );\n }\n);\n\nfunction getVariantStyle(variant: Exclude<InternalLinkProps['variant'], undefined>) {\n return `variant-${variant.replace(/^awsui-/, '')}`;\n}\n\nfunction getFontSizeStyle(variant: InternalLinkProps['variant'], fontSize: InternalLinkProps['fontSize']) {\n switch (variant) {\n case 'info':\n return 'font-size-body-s';\n case 'awsui-value-large':\n return 'font-size-display-l';\n default:\n return `font-size-${fontSize}`;\n }\n}\n\nfunction getColorStyle(variant: InternalLinkProps['variant'], color: InternalLinkProps['color']) {\n return `color-${variant === 'info' ? 'normal' : color}`;\n}\n\nexport default InternalLink;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/link/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AACpG,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AACpG,OAAO,E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EAAE,IAAI,EACV,OAAO,EAAE,eAAe,KAEvB,OAAO,CACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,eAAe,CAAC,OAAyD;IAChF,OAAO,WAAW,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAC;AACrD,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAqC,EAAE,QAAuC;IACtG,QAAQ,OAAO,EAAE;QACf,KAAK,MAAM;YACT,OAAO,kBAAkB,CAAC;QAC5B,KAAK,mBAAmB;YACtB,OAAO,qBAAqB,CAAC;QAC/B;YACE,OAAO,aAAa,QAAQ,EAAE,CAAC;KAClC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,OAAqC,EAAE,KAAiC;IAC7F,OAAO,SAAS,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;AAC1D,CAAC;AAED,eAAe,YAAY,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useContext, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useInternalI18n } from '../i18n/context';\nimport InternalIcon from '../icon/internal';\nimport { FunnelMetrics } from '../internal/analytics';\nimport { useFunnel, useFunnelStep, useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport {\n DATA_ATTR_FUNNEL_VALUE,\n getFunnelValueSelector,\n getNameFromSelector,\n getSubStepAllSelector,\n} from '../internal/analytics/selectors';\nimport { getBaseProps } from '../internal/base-component';\nimport { InfoLinkLabelContext } from '../internal/context/info-link-label-context';\nimport { LinkDefaultVariantContext } from '../internal/context/link-default-variant-context';\nimport { useSingleTabStopNavigation } from '../internal/context/single-tab-stop-navigation-context';\nimport { fireCancelableEvent, fireNonCancelableEvent, isPlainLeftClick } from '../internal/events';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { KeyCode } from '../internal/keycode';\nimport { checkSafeUrl } from '../internal/utils/check-safe-url';\nimport { LinkProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ntype InternalLinkProps = InternalBaseComponentProps<HTMLAnchorElement> &\n Omit<LinkProps, 'variant'> & {\n variant?: LinkProps['variant'] | 'top-navigation' | 'link' | 'recovery';\n };\n\nconst InternalLink = React.forwardRef(\n (\n {\n variant: providedVariant,\n fontSize = 'body-m',\n color = 'normal',\n external = false,\n target,\n href,\n rel,\n ariaLabel,\n externalIconAriaLabel,\n onFollow,\n onClick,\n children,\n __internalRootRef = null,\n ...props\n }: InternalLinkProps,\n ref: React.Ref<LinkProps.Ref>\n ) => {\n checkSafeUrl('Link', href);\n const isButton = !href;\n const { defaultVariant } = useContext(LinkDefaultVariantContext);\n const variant = providedVariant || defaultVariant;\n const specialStyles = ['top-navigation', 'link', 'recovery'];\n const hasSpecialStyle = specialStyles.indexOf(variant) > -1;\n\n const i18n = useInternalI18n('link');\n const baseProps = getBaseProps(props);\n const anchorTarget = target ?? (external ? '_blank' : undefined);\n const anchorRel = rel ?? (anchorTarget === '_blank' ? 'noopener noreferrer' : undefined);\n const uniqueId = useUniqueId('link');\n const linkId = useUniqueId('link-self');\n const infoId = useUniqueId('link-info');\n\n const infoLinkLabelFromContext = useContext(InfoLinkLabelContext);\n\n const { funnelIdentifier, funnelInteractionId } = useFunnel();\n const { stepIdentifier, stepNumber, stepNameSelector } = useFunnelStep();\n const { subStepIdentifier, subStepSelector, subStepNameSelector } = useFunnelSubStep();\n\n const fireFunnelEvent = (funnelInteractionId: string) => {\n if (variant === 'info') {\n const stepName = getNameFromSelector(stepNameSelector);\n const subStepName = getNameFromSelector(subStepNameSelector);\n\n FunnelMetrics.helpPanelInteracted({\n funnelIdentifier,\n funnelInteractionId,\n stepIdentifier,\n stepNumber,\n stepName,\n subStepIdentifier,\n stepNameSelector,\n subStepSelector,\n subStepName,\n subStepNameSelector,\n elementSelector: getFunnelValueSelector(uniqueId),\n subStepAllSelector: getSubStepAllSelector(),\n });\n } else if (external) {\n const stepName = getNameFromSelector(stepNameSelector);\n const subStepName = getNameFromSelector(subStepNameSelector);\n\n FunnelMetrics.externalLinkInteracted({\n funnelIdentifier,\n funnelInteractionId,\n stepIdentifier,\n stepNumber,\n stepName,\n stepNameSelector,\n subStepIdentifier,\n subStepSelector,\n subStepName,\n subStepNameSelector,\n elementSelector: getFunnelValueSelector(uniqueId),\n subStepAllSelector: getSubStepAllSelector(),\n });\n }\n };\n\n const fireFollowEvent = (event: React.SyntheticEvent) => {\n if (funnelInteractionId) {\n fireFunnelEvent(funnelInteractionId);\n }\n\n fireCancelableEvent(onFollow, { href, external, target: anchorTarget }, event);\n };\n\n const fireClickEvent = (event: React.MouseEvent | React.KeyboardEvent) => {\n const { altKey, ctrlKey, metaKey, shiftKey } = event;\n const button = 'button' in event ? event.button : 0;\n // make onClick non-cancelable to prevent it from being used to block full page reload\n // for navigation use `onFollow` event instead\n fireNonCancelableEvent(onClick, { altKey, button, ctrlKey, metaKey, shiftKey });\n };\n\n const handleLinkClick = (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n fireFollowEvent(event);\n }\n fireClickEvent(event);\n };\n\n const handleButtonClick = (event: React.MouseEvent) => {\n fireFollowEvent(event);\n fireClickEvent(event);\n };\n\n const handleButtonKeyDown = (event: React.KeyboardEvent) => {\n if (event.keyCode === KeyCode.space || event.keyCode === KeyCode.enter) {\n event.preventDefault();\n fireFollowEvent(event);\n fireClickEvent(event);\n }\n };\n\n const linkRef = useRef<HTMLElement>(null);\n const isVisualRefresh = useVisualRefresh();\n useForwardFocus(ref, linkRef);\n\n // Visual refresh should only add styles to buttons that don't already have unique styles (e.g. primary/secondary variants)\n const applyButtonStyles = isButton && isVisualRefresh && !hasSpecialStyle;\n\n const sharedProps = {\n id: linkId,\n ...baseProps,\n // https://github.com/microsoft/TypeScript/issues/36659\n ref: useMergeRefs(linkRef, __internalRootRef),\n className: clsx(\n styles.link,\n baseProps.className,\n applyButtonStyles ? styles.button : null,\n styles[getVariantStyle(variant)],\n styles[getFontSizeStyle(variant, fontSize)],\n styles[getColorStyle(variant, color)]\n ),\n 'aria-label': ariaLabel,\n 'aria-labelledby': undefined as string | undefined,\n [DATA_ATTR_FUNNEL_VALUE]: uniqueId,\n };\n\n if (variant === 'info' && infoLinkLabelFromContext && !ariaLabel) {\n sharedProps['aria-labelledby'] = `${sharedProps.id} ${infoId} ${infoLinkLabelFromContext}`;\n }\n\n const renderedExternalIconAriaLabel = i18n('externalIconAriaLabel', externalIconAriaLabel);\n const content = (\n <>\n {children}\n {external && (\n <span className={styles['icon-wrapper']}>\n &nbsp;\n <span\n className={styles.icon}\n aria-label={renderedExternalIconAriaLabel}\n role={renderedExternalIconAriaLabel ? 'img' : undefined}\n >\n <InternalIcon name=\"external\" size=\"inherit\" />\n </span>\n </span>\n )}\n {variant === 'info' && (\n <span hidden={true} id={infoId}>\n :\n </span>\n )}\n </>\n );\n\n const { tabIndex } = useSingleTabStopNavigation(linkRef, { tabIndex: isButton ? 0 : undefined });\n\n if (isButton) {\n return (\n <a\n {...sharedProps}\n role=\"button\"\n tabIndex={tabIndex}\n onKeyDown={handleButtonKeyDown}\n onClick={handleButtonClick}\n >\n {content}\n </a>\n );\n }\n\n return (\n // we dynamically set proper rel in the code above\n // eslint-disable-next-line react/jsx-no-target-blank\n <a\n {...sharedProps}\n tabIndex={tabIndex}\n target={anchorTarget}\n rel={anchorRel}\n href={href}\n onClick={handleLinkClick}\n >\n {content}\n </a>\n );\n }\n);\n\nfunction getVariantStyle(variant: Exclude<InternalLinkProps['variant'], undefined>) {\n return `variant-${variant.replace(/^awsui-/, '')}`;\n}\n\nfunction getFontSizeStyle(variant: InternalLinkProps['variant'], fontSize: InternalLinkProps['fontSize']) {\n switch (variant) {\n case 'info':\n return 'font-size-body-s';\n case 'awsui-value-large':\n return 'font-size-display-l';\n default:\n return `font-size-${fontSize}`;\n }\n}\n\nfunction getColorStyle(variant: InternalLinkProps['variant'], color: InternalLinkProps['color']) {\n return `color-${variant === 'info' ? 'normal' : color}`;\n}\n\nexport default InternalLink;\n"]}
package/package.json CHANGED
@@ -126,7 +126,7 @@
126
126
  "./internal/base-component/index.js",
127
127
  "./internal/base-component/styles.css.js"
128
128
  ],
129
- "version": "3.0.747",
129
+ "version": "3.0.749",
130
130
  "repository": {
131
131
  "type": "git",
132
132
  "url": "https://github.com/cloudscape-design/components.git"
@@ -1,43 +1,43 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_1wzqe_13ua9_141",
5
- "search-field": "awsui_search-field_1wzqe_13ua9_176",
6
- "input-wrapper": "awsui_input-wrapper_1wzqe_13ua9_182",
7
- "add-token": "awsui_add-token_1wzqe_13ua9_186",
8
- "tokens": "awsui_tokens_1wzqe_13ua9_193",
9
- "token-operator": "awsui_token-operator_1wzqe_13ua9_198",
10
- "property-editor": "awsui_property-editor_1wzqe_13ua9_202",
11
- "property-editor-form": "awsui_property-editor-form_1wzqe_13ua9_210",
12
- "property-editor-field-property": "awsui_property-editor-field-property_1wzqe_13ua9_213",
13
- "property-editor-field-operator": "awsui_property-editor-field-operator_1wzqe_13ua9_216",
14
- "property-editor-field-value": "awsui_property-editor-field-value_1wzqe_13ua9_219",
15
- "property-editor-cancel": "awsui_property-editor-cancel_1wzqe_13ua9_222",
16
- "property-editor-submit": "awsui_property-editor-submit_1wzqe_13ua9_225",
17
- "property-editor-actions": "awsui_property-editor-actions_1wzqe_13ua9_228",
18
- "token-editor": "awsui_token-editor_1wzqe_13ua9_235",
19
- "token-editor-form": "awsui_token-editor-form_1wzqe_13ua9_243",
20
- "token-editor-field-property": "awsui_token-editor-field-property_1wzqe_13ua9_246",
21
- "token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_13ua9_249",
22
- "token-editor-field-value": "awsui_token-editor-field-value_1wzqe_13ua9_252",
23
- "token-editor-cancel": "awsui_token-editor-cancel_1wzqe_13ua9_255",
24
- "token-editor-submit": "awsui_token-editor-submit_1wzqe_13ua9_258",
25
- "token-editor-actions": "awsui_token-editor-actions_1wzqe_13ua9_261",
26
- "token-editor-grid": "awsui_token-editor-grid_1wzqe_13ua9_270",
27
- "token-editor-grid-group": "awsui_token-editor-grid-group_1wzqe_13ua9_307",
28
- "token-editor-narrow": "awsui_token-editor-narrow_1wzqe_13ua9_310",
29
- "token-editor-supports-groups": "awsui_token-editor-supports-groups_1wzqe_13ua9_319",
30
- "token-editor-grid-header": "awsui_token-editor-grid-header_1wzqe_13ua9_323",
31
- "token-editor-grid-cell": "awsui_token-editor-grid-cell_1wzqe_13ua9_329",
32
- "token-editor-add-token": "awsui_token-editor-add-token_1wzqe_13ua9_338",
33
- "custom-content-wrapper": "awsui_custom-content-wrapper_1wzqe_13ua9_342",
34
- "custom-control": "awsui_custom-control_1wzqe_13ua9_346",
35
- "input": "awsui_input_1wzqe_13ua9_182",
36
- "results": "awsui_results_1wzqe_13ua9_354",
37
- "token-trigger": "awsui_token-trigger_1wzqe_13ua9_359",
38
- "remove-all": "awsui_remove-all_1wzqe_13ua9_364",
39
- "join-operation": "awsui_join-operation_1wzqe_13ua9_365",
40
- "custom-filter-actions": "awsui_custom-filter-actions_1wzqe_13ua9_366",
41
- "constraint": "awsui_constraint_1wzqe_13ua9_370"
4
+ "root": "awsui_root_1wzqe_184ob_141",
5
+ "search-field": "awsui_search-field_1wzqe_184ob_176",
6
+ "input-wrapper": "awsui_input-wrapper_1wzqe_184ob_182",
7
+ "add-token": "awsui_add-token_1wzqe_184ob_186",
8
+ "tokens": "awsui_tokens_1wzqe_184ob_193",
9
+ "token-operator": "awsui_token-operator_1wzqe_184ob_198",
10
+ "property-editor": "awsui_property-editor_1wzqe_184ob_202",
11
+ "property-editor-form": "awsui_property-editor-form_1wzqe_184ob_209",
12
+ "property-editor-field-property": "awsui_property-editor-field-property_1wzqe_184ob_212",
13
+ "property-editor-field-operator": "awsui_property-editor-field-operator_1wzqe_184ob_215",
14
+ "property-editor-field-value": "awsui_property-editor-field-value_1wzqe_184ob_218",
15
+ "property-editor-cancel": "awsui_property-editor-cancel_1wzqe_184ob_221",
16
+ "property-editor-submit": "awsui_property-editor-submit_1wzqe_184ob_224",
17
+ "property-editor-actions": "awsui_property-editor-actions_1wzqe_184ob_227",
18
+ "token-editor": "awsui_token-editor_1wzqe_184ob_234",
19
+ "token-editor-form": "awsui_token-editor-form_1wzqe_184ob_241",
20
+ "token-editor-field-property": "awsui_token-editor-field-property_1wzqe_184ob_244",
21
+ "token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_184ob_247",
22
+ "token-editor-field-value": "awsui_token-editor-field-value_1wzqe_184ob_250",
23
+ "token-editor-cancel": "awsui_token-editor-cancel_1wzqe_184ob_253",
24
+ "token-editor-submit": "awsui_token-editor-submit_1wzqe_184ob_256",
25
+ "token-editor-actions": "awsui_token-editor-actions_1wzqe_184ob_259",
26
+ "token-editor-grid": "awsui_token-editor-grid_1wzqe_184ob_268",
27
+ "token-editor-grid-group": "awsui_token-editor-grid-group_1wzqe_184ob_305",
28
+ "token-editor-narrow": "awsui_token-editor-narrow_1wzqe_184ob_308",
29
+ "token-editor-supports-groups": "awsui_token-editor-supports-groups_1wzqe_184ob_317",
30
+ "token-editor-grid-header": "awsui_token-editor-grid-header_1wzqe_184ob_321",
31
+ "token-editor-grid-cell": "awsui_token-editor-grid-cell_1wzqe_184ob_327",
32
+ "token-editor-add-token": "awsui_token-editor-add-token_1wzqe_184ob_336",
33
+ "custom-content-wrapper": "awsui_custom-content-wrapper_1wzqe_184ob_340",
34
+ "custom-control": "awsui_custom-control_1wzqe_184ob_344",
35
+ "input": "awsui_input_1wzqe_184ob_182",
36
+ "results": "awsui_results_1wzqe_184ob_352",
37
+ "token-trigger": "awsui_token-trigger_1wzqe_184ob_357",
38
+ "remove-all": "awsui_remove-all_1wzqe_184ob_362",
39
+ "join-operation": "awsui_join-operation_1wzqe_184ob_363",
40
+ "custom-filter-actions": "awsui_custom-filter-actions_1wzqe_184ob_364",
41
+ "constraint": "awsui_constraint_1wzqe_184ob_368"
42
42
  };
43
43
 
@@ -138,7 +138,7 @@
138
138
  */
139
139
  /* Style used for links in slots/components that are text heavy, to help links stand out among
140
140
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
141
- .awsui_root_1wzqe_13ua9_141:not(#\9) {
141
+ .awsui_root_1wzqe_184ob_141:not(#\9) {
142
142
  border-collapse: separate;
143
143
  border-spacing: 0;
144
144
  box-sizing: border-box;
@@ -174,94 +174,90 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
174
174
  -moz-osx-font-smoothing: auto;
175
175
  }
176
176
 
177
- .awsui_search-field_1wzqe_13ua9_176:not(#\9) {
177
+ .awsui_search-field_1wzqe_184ob_176:not(#\9) {
178
178
  display: flex;
179
179
  align-items: flex-end;
180
180
  max-inline-size: calc(688px - 2 * var(--space-l-t419sm, 20px));
181
181
  }
182
182
 
183
- .awsui_input-wrapper_1wzqe_13ua9_182:not(#\9) {
183
+ .awsui_input-wrapper_1wzqe_184ob_182:not(#\9) {
184
184
  flex-grow: 1;
185
185
  }
186
186
 
187
- .awsui_add-token_1wzqe_13ua9_186:not(#\9) {
187
+ .awsui_add-token_1wzqe_184ob_186:not(#\9) {
188
188
  border-inline-start: 1px solid var(--color-border-divider-default-j74lyz, #b6bec9);
189
189
  box-sizing: border-box;
190
190
  margin-inline-start: var(--space-m-udix3p, 16px);
191
191
  padding-inline-start: var(--space-m-udix3p, 16px);
192
192
  }
193
193
 
194
- .awsui_tokens_1wzqe_13ua9_193:not(#\9) {
194
+ .awsui_tokens_1wzqe_184ob_193:not(#\9) {
195
195
  margin-block: var(--space-xs-zb16t3, 8px);
196
196
  margin-inline: 0;
197
197
  }
198
198
 
199
- .awsui_token-operator_1wzqe_13ua9_198:not(#\9) {
199
+ .awsui_token-operator_1wzqe_184ob_198:not(#\9) {
200
200
  font-weight: bold;
201
201
  }
202
202
 
203
- .awsui_property-editor_1wzqe_13ua9_202:not(#\9) {
204
- -webkit-user-select: text;
205
- user-select: text;
203
+ .awsui_property-editor_1wzqe_184ob_202:not(#\9) {
206
204
  margin-block: var(--space-xxs-p8yyaw, 4px);
207
205
  margin-inline: var(--space-xxs-p8yyaw, 4px);
208
206
  padding-block: var(--space-m-udix3p, 16px);
209
207
  padding-inline: var(--space-m-udix3p, 16px);
210
208
  overflow-y: auto;
211
209
  }
212
- .awsui_property-editor-form_1wzqe_13ua9_210:not(#\9) {
210
+ .awsui_property-editor-form_1wzqe_184ob_209:not(#\9) {
213
211
  margin-block-end: var(--space-scaled-l-0hpmd7, 20px);
214
212
  }
215
- .awsui_property-editor-field-property_1wzqe_13ua9_213:not(#\9) {
213
+ .awsui_property-editor-field-property_1wzqe_184ob_212:not(#\9) {
216
214
  /* used in test-utils */
217
215
  }
218
- .awsui_property-editor-field-operator_1wzqe_13ua9_216:not(#\9) {
216
+ .awsui_property-editor-field-operator_1wzqe_184ob_215:not(#\9) {
219
217
  margin-block-start: var(--space-scaled-l-0hpmd7, 20px);
220
218
  }
221
- .awsui_property-editor-field-value_1wzqe_13ua9_219:not(#\9) {
219
+ .awsui_property-editor-field-value_1wzqe_184ob_218:not(#\9) {
222
220
  margin-block-start: var(--space-scaled-l-0hpmd7, 20px);
223
221
  }
224
- .awsui_property-editor-cancel_1wzqe_13ua9_222:not(#\9) {
222
+ .awsui_property-editor-cancel_1wzqe_184ob_221:not(#\9) {
225
223
  margin-inline-end: var(--space-xs-zb16t3, 8px);
226
224
  }
227
- .awsui_property-editor-submit_1wzqe_13ua9_225:not(#\9) {
225
+ .awsui_property-editor-submit_1wzqe_184ob_224:not(#\9) {
228
226
  /* used in test-utils */
229
227
  }
230
- .awsui_property-editor-actions_1wzqe_13ua9_228:not(#\9) {
228
+ .awsui_property-editor-actions_1wzqe_184ob_227:not(#\9) {
231
229
  display: flex;
232
230
  justify-content: flex-end;
233
231
  padding-block-start: var(--space-s-34lx8l, 12px);
234
232
  border-block-start: 1px solid var(--color-border-dropdown-item-default-k36ra7, #b6bec9);
235
233
  }
236
234
 
237
- .awsui_token-editor_1wzqe_13ua9_235:not(#\9) {
235
+ .awsui_token-editor_1wzqe_184ob_234:not(#\9) {
238
236
  display: flex;
239
237
  flex-direction: column;
240
238
  gap: var(--space-s-34lx8l, 12px);
241
- -webkit-user-select: text;
242
- user-select: text;
243
239
  margin-block: var(--space-xxs-p8yyaw, 4px);
244
240
  margin-inline: var(--space-xxs-p8yyaw, 4px);
245
241
  }
246
- .awsui_token-editor-form_1wzqe_13ua9_243:not(#\9) {
242
+ .awsui_token-editor-form_1wzqe_184ob_241:not(#\9) {
247
243
  /* used in test-utils */
248
244
  }
249
- .awsui_token-editor-field-property_1wzqe_13ua9_246:not(#\9) {
245
+ .awsui_token-editor-field-property_1wzqe_184ob_244:not(#\9) {
250
246
  flex-grow: 2;
251
247
  }
252
- .awsui_token-editor-field-operator_1wzqe_13ua9_249:not(#\9) {
248
+ .awsui_token-editor-field-operator_1wzqe_184ob_247:not(#\9) {
253
249
  flex-grow: 1;
254
250
  }
255
- .awsui_token-editor-field-value_1wzqe_13ua9_252:not(#\9) {
251
+ .awsui_token-editor-field-value_1wzqe_184ob_250:not(#\9) {
256
252
  flex-grow: 2;
257
253
  }
258
- .awsui_token-editor-cancel_1wzqe_13ua9_255:not(#\9) {
254
+ .awsui_token-editor-cancel_1wzqe_184ob_253:not(#\9) {
259
255
  margin-inline-end: var(--space-xs-zb16t3, 8px);
260
256
  }
261
- .awsui_token-editor-submit_1wzqe_13ua9_258:not(#\9) {
257
+ .awsui_token-editor-submit_1wzqe_184ob_256:not(#\9) {
262
258
  /* used in test-utils */
263
259
  }
264
- .awsui_token-editor-actions_1wzqe_13ua9_261:not(#\9) {
260
+ .awsui_token-editor-actions_1wzqe_184ob_259:not(#\9) {
265
261
  display: flex;
266
262
  justify-content: flex-end;
267
263
  padding-block-start: var(--space-s-34lx8l, 12px);
@@ -270,7 +266,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
270
266
  margin-inline: calc(-1 * var(--space-m-udix3p, 16px) + -1 * var(--space-xxs-p8yyaw, 4px));
271
267
  margin-block-start: var(--space-s-34lx8l, 12px);
272
268
  }
273
- .awsui_token-editor-grid_1wzqe_13ua9_270:not(#\9) {
269
+ .awsui_token-editor-grid_1wzqe_184ob_268:not(#\9) {
274
270
  border-collapse: separate;
275
271
  border-spacing: 0;
276
272
  box-sizing: border-box;
@@ -308,70 +304,70 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
308
304
  gap: var(--space-s-34lx8l, 12px);
309
305
  grid-template-columns: minmax(min-content, 2fr) minmax(min-content, 120px) minmax(min-content, 3fr) min-content;
310
306
  }
311
- .awsui_token-editor-grid-group_1wzqe_13ua9_307:not(#\9) {
307
+ .awsui_token-editor-grid-group_1wzqe_184ob_305:not(#\9) {
312
308
  display: contents;
313
309
  }
314
- .awsui_token-editor-grid_1wzqe_13ua9_270.awsui_token-editor-narrow_1wzqe_13ua9_310:not(#\9) {
310
+ .awsui_token-editor-grid_1wzqe_184ob_268.awsui_token-editor-narrow_1wzqe_184ob_308:not(#\9) {
315
311
  grid-template-columns: minmax(100px, 1fr);
316
312
  gap: var(--space-m-udix3p, 16px);
317
313
  }
318
- .awsui_token-editor-grid_1wzqe_13ua9_270.awsui_token-editor-narrow_1wzqe_13ua9_310 > .awsui_token-editor-grid-group_1wzqe_13ua9_307:not(#\9) {
314
+ .awsui_token-editor-grid_1wzqe_184ob_268.awsui_token-editor-narrow_1wzqe_184ob_308 > .awsui_token-editor-grid-group_1wzqe_184ob_305:not(#\9) {
319
315
  display: flex;
320
316
  flex-direction: column;
321
317
  gap: var(--space-s-34lx8l, 12px);
322
318
  }
323
- .awsui_token-editor-grid_1wzqe_13ua9_270.awsui_token-editor-narrow_1wzqe_13ua9_310 > .awsui_token-editor-grid-group_1wzqe_13ua9_307.awsui_token-editor-supports-groups_1wzqe_13ua9_319:not(#\9) {
319
+ .awsui_token-editor-grid_1wzqe_184ob_268.awsui_token-editor-narrow_1wzqe_184ob_308 > .awsui_token-editor-grid-group_1wzqe_184ob_305.awsui_token-editor-supports-groups_1wzqe_184ob_317:not(#\9) {
324
320
  padding-block-end: var(--space-m-udix3p, 16px);
325
321
  border-block-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
326
322
  }
327
- .awsui_token-editor-grid-header_1wzqe_13ua9_323:not(#\9) {
323
+ .awsui_token-editor-grid-header_1wzqe_184ob_321:not(#\9) {
328
324
  color: var(--color-text-column-header-czuvwg, #414d5c);
329
325
  font-weight: var(--font-weight-heading-s-cwn6wc, 700);
330
326
  padding-block: var(--space-scaled-xxs-7597g1, 4px);
331
327
  text-align: start;
332
328
  }
333
- .awsui_token-editor-grid-cell_1wzqe_13ua9_329:not(#\9):not(.awsui_token-editor-narrow_1wzqe_13ua9_310) {
329
+ .awsui_token-editor-grid-cell_1wzqe_184ob_327:not(#\9):not(.awsui_token-editor-narrow_1wzqe_184ob_308) {
334
330
  display: flex;
335
331
  align-items: flex-end;
336
332
  justify-content: flex-end;
337
333
  }
338
- .awsui_token-editor-grid-cell_1wzqe_13ua9_329.awsui_token-editor-narrow_1wzqe_13ua9_310:not(#\9):nth-child(4) {
334
+ .awsui_token-editor-grid-cell_1wzqe_184ob_327.awsui_token-editor-narrow_1wzqe_184ob_308:not(#\9):nth-child(4) {
339
335
  display: flex;
340
336
  justify-content: flex-end;
341
337
  }
342
- .awsui_token-editor-add-token_1wzqe_13ua9_338:not(#\9) {
338
+ .awsui_token-editor-add-token_1wzqe_184ob_336:not(#\9) {
343
339
  margin-block-start: var(--space-s-34lx8l, 12px);
344
340
  }
345
341
 
346
- .awsui_custom-content-wrapper_1wzqe_13ua9_342:not(#\9) {
342
+ .awsui_custom-content-wrapper_1wzqe_184ob_340:not(#\9) {
347
343
  display: contents;
348
344
  }
349
345
 
350
- .awsui_custom-control_1wzqe_13ua9_346:not(#\9) {
346
+ .awsui_custom-control_1wzqe_184ob_344:not(#\9) {
351
347
  margin-inline-end: var(--space-s-34lx8l, 12px);
352
348
  }
353
349
 
354
- .awsui_input_1wzqe_13ua9_182:not(#\9) {
350
+ .awsui_input_1wzqe_184ob_182:not(#\9) {
355
351
  flex: 1;
356
352
  }
357
353
 
358
- .awsui_results_1wzqe_13ua9_354:not(#\9) {
354
+ .awsui_results_1wzqe_184ob_352:not(#\9) {
359
355
  padding-block: calc(var(--space-scaled-xxs-7597g1, 4px) + var(--border-field-width-09w7vk, 2px));
360
356
  padding-inline: 0;
361
357
  }
362
358
 
363
- .awsui_token-trigger_1wzqe_13ua9_359:not(#\9) {
359
+ .awsui_token-trigger_1wzqe_184ob_357:not(#\9) {
364
360
  min-inline-size: 0;
365
361
  word-break: break-word;
366
362
  }
367
363
 
368
- .awsui_remove-all_1wzqe_13ua9_364:not(#\9),
369
- .awsui_join-operation_1wzqe_13ua9_365:not(#\9),
370
- .awsui_custom-filter-actions_1wzqe_13ua9_366:not(#\9) {
364
+ .awsui_remove-all_1wzqe_184ob_362:not(#\9),
365
+ .awsui_join-operation_1wzqe_184ob_363:not(#\9),
366
+ .awsui_custom-filter-actions_1wzqe_184ob_364:not(#\9) {
371
367
  /* used in test-utils */
372
368
  }
373
369
 
374
- .awsui_constraint_1wzqe_13ua9_370:not(#\9) {
370
+ .awsui_constraint_1wzqe_184ob_368:not(#\9) {
375
371
  padding-block-start: var(--space-xxs-p8yyaw, 4px);
376
372
  color: var(--color-text-form-secondary-dxc248, #5f6b7a);
377
373
  font-size: var(--font-size-body-s-asqx2i, 12px);
@@ -2,43 +2,43 @@
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_1wzqe_13ua9_141",
6
- "search-field": "awsui_search-field_1wzqe_13ua9_176",
7
- "input-wrapper": "awsui_input-wrapper_1wzqe_13ua9_182",
8
- "add-token": "awsui_add-token_1wzqe_13ua9_186",
9
- "tokens": "awsui_tokens_1wzqe_13ua9_193",
10
- "token-operator": "awsui_token-operator_1wzqe_13ua9_198",
11
- "property-editor": "awsui_property-editor_1wzqe_13ua9_202",
12
- "property-editor-form": "awsui_property-editor-form_1wzqe_13ua9_210",
13
- "property-editor-field-property": "awsui_property-editor-field-property_1wzqe_13ua9_213",
14
- "property-editor-field-operator": "awsui_property-editor-field-operator_1wzqe_13ua9_216",
15
- "property-editor-field-value": "awsui_property-editor-field-value_1wzqe_13ua9_219",
16
- "property-editor-cancel": "awsui_property-editor-cancel_1wzqe_13ua9_222",
17
- "property-editor-submit": "awsui_property-editor-submit_1wzqe_13ua9_225",
18
- "property-editor-actions": "awsui_property-editor-actions_1wzqe_13ua9_228",
19
- "token-editor": "awsui_token-editor_1wzqe_13ua9_235",
20
- "token-editor-form": "awsui_token-editor-form_1wzqe_13ua9_243",
21
- "token-editor-field-property": "awsui_token-editor-field-property_1wzqe_13ua9_246",
22
- "token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_13ua9_249",
23
- "token-editor-field-value": "awsui_token-editor-field-value_1wzqe_13ua9_252",
24
- "token-editor-cancel": "awsui_token-editor-cancel_1wzqe_13ua9_255",
25
- "token-editor-submit": "awsui_token-editor-submit_1wzqe_13ua9_258",
26
- "token-editor-actions": "awsui_token-editor-actions_1wzqe_13ua9_261",
27
- "token-editor-grid": "awsui_token-editor-grid_1wzqe_13ua9_270",
28
- "token-editor-grid-group": "awsui_token-editor-grid-group_1wzqe_13ua9_307",
29
- "token-editor-narrow": "awsui_token-editor-narrow_1wzqe_13ua9_310",
30
- "token-editor-supports-groups": "awsui_token-editor-supports-groups_1wzqe_13ua9_319",
31
- "token-editor-grid-header": "awsui_token-editor-grid-header_1wzqe_13ua9_323",
32
- "token-editor-grid-cell": "awsui_token-editor-grid-cell_1wzqe_13ua9_329",
33
- "token-editor-add-token": "awsui_token-editor-add-token_1wzqe_13ua9_338",
34
- "custom-content-wrapper": "awsui_custom-content-wrapper_1wzqe_13ua9_342",
35
- "custom-control": "awsui_custom-control_1wzqe_13ua9_346",
36
- "input": "awsui_input_1wzqe_13ua9_182",
37
- "results": "awsui_results_1wzqe_13ua9_354",
38
- "token-trigger": "awsui_token-trigger_1wzqe_13ua9_359",
39
- "remove-all": "awsui_remove-all_1wzqe_13ua9_364",
40
- "join-operation": "awsui_join-operation_1wzqe_13ua9_365",
41
- "custom-filter-actions": "awsui_custom-filter-actions_1wzqe_13ua9_366",
42
- "constraint": "awsui_constraint_1wzqe_13ua9_370"
5
+ "root": "awsui_root_1wzqe_184ob_141",
6
+ "search-field": "awsui_search-field_1wzqe_184ob_176",
7
+ "input-wrapper": "awsui_input-wrapper_1wzqe_184ob_182",
8
+ "add-token": "awsui_add-token_1wzqe_184ob_186",
9
+ "tokens": "awsui_tokens_1wzqe_184ob_193",
10
+ "token-operator": "awsui_token-operator_1wzqe_184ob_198",
11
+ "property-editor": "awsui_property-editor_1wzqe_184ob_202",
12
+ "property-editor-form": "awsui_property-editor-form_1wzqe_184ob_209",
13
+ "property-editor-field-property": "awsui_property-editor-field-property_1wzqe_184ob_212",
14
+ "property-editor-field-operator": "awsui_property-editor-field-operator_1wzqe_184ob_215",
15
+ "property-editor-field-value": "awsui_property-editor-field-value_1wzqe_184ob_218",
16
+ "property-editor-cancel": "awsui_property-editor-cancel_1wzqe_184ob_221",
17
+ "property-editor-submit": "awsui_property-editor-submit_1wzqe_184ob_224",
18
+ "property-editor-actions": "awsui_property-editor-actions_1wzqe_184ob_227",
19
+ "token-editor": "awsui_token-editor_1wzqe_184ob_234",
20
+ "token-editor-form": "awsui_token-editor-form_1wzqe_184ob_241",
21
+ "token-editor-field-property": "awsui_token-editor-field-property_1wzqe_184ob_244",
22
+ "token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_184ob_247",
23
+ "token-editor-field-value": "awsui_token-editor-field-value_1wzqe_184ob_250",
24
+ "token-editor-cancel": "awsui_token-editor-cancel_1wzqe_184ob_253",
25
+ "token-editor-submit": "awsui_token-editor-submit_1wzqe_184ob_256",
26
+ "token-editor-actions": "awsui_token-editor-actions_1wzqe_184ob_259",
27
+ "token-editor-grid": "awsui_token-editor-grid_1wzqe_184ob_268",
28
+ "token-editor-grid-group": "awsui_token-editor-grid-group_1wzqe_184ob_305",
29
+ "token-editor-narrow": "awsui_token-editor-narrow_1wzqe_184ob_308",
30
+ "token-editor-supports-groups": "awsui_token-editor-supports-groups_1wzqe_184ob_317",
31
+ "token-editor-grid-header": "awsui_token-editor-grid-header_1wzqe_184ob_321",
32
+ "token-editor-grid-cell": "awsui_token-editor-grid-cell_1wzqe_184ob_327",
33
+ "token-editor-add-token": "awsui_token-editor-add-token_1wzqe_184ob_336",
34
+ "custom-content-wrapper": "awsui_custom-content-wrapper_1wzqe_184ob_340",
35
+ "custom-control": "awsui_custom-control_1wzqe_184ob_344",
36
+ "input": "awsui_input_1wzqe_184ob_182",
37
+ "results": "awsui_results_1wzqe_184ob_352",
38
+ "token-trigger": "awsui_token-trigger_1wzqe_184ob_357",
39
+ "remove-all": "awsui_remove-all_1wzqe_184ob_362",
40
+ "join-operation": "awsui_join-operation_1wzqe_184ob_363",
41
+ "custom-filter-actions": "awsui_custom-filter-actions_1wzqe_184ob_364",
42
+ "constraint": "awsui_constraint_1wzqe_184ob_368"
43
43
  };
44
44
 
@@ -2,6 +2,6 @@
2
2
  import { InternalBaseComponentProps } from '../internal/hooks/use-base-component';
3
3
  import { SideNavigationProps } from './interfaces';
4
4
  export type SideNavigationInternalProps = SideNavigationProps & InternalBaseComponentProps;
5
- export declare function SideNavigationImplementation({ header, activeHref, items, onFollow, onChange, __internalRootRef, ...props }: SideNavigationInternalProps): JSX.Element;
5
+ export declare function SideNavigationImplementation({ header, itemsControl, activeHref, items, onFollow, onChange, __internalRootRef, ...props }: SideNavigationInternalProps): JSX.Element;
6
6
  export declare const createWidgetizedSideNavigation: (Loader?: typeof SideNavigationImplementation | undefined) => typeof SideNavigationImplementation;
7
7
  //# sourceMappingURL=implementation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"implementation.d.ts","sourceRoot":"","sources":["../../../src/side-navigation/implementation.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAMnD,MAAM,MAAM,2BAA2B,GAAG,mBAAmB,GAAG,0BAA0B,CAAC;AAE3F,wBAAgB,4BAA4B,CAAC,EAC3C,MAAM,EACN,UAAU,EACV,KAAU,EACV,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,GAAG,KAAK,EACT,EAAE,2BAA2B,eAwD7B;AAED,eAAO,MAAM,8BAA8B,mGAA0D,CAAC"}
1
+ {"version":3,"file":"implementation.d.ts","sourceRoot":"","sources":["../../../src/side-navigation/implementation.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAMnD,MAAM,MAAM,2BAA2B,GAAG,mBAAmB,GAAG,0BAA0B,CAAC;AAE3F,wBAAgB,4BAA4B,CAAC,EAC3C,MAAM,EACN,YAAY,EACZ,UAAU,EACV,KAAU,EACV,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,GAAG,KAAK,EACT,EAAE,2BAA2B,eAyD7B;AAED,eAAO,MAAM,8BAA8B,mGAA0D,CAAC"}
@@ -12,7 +12,7 @@ import { Header, NavigationItemsList } from './parts';
12
12
  import { checkDuplicateHrefs, generateExpandableItemsMapping } from './util';
13
13
  import styles from './styles.css.js';
14
14
  export function SideNavigationImplementation(_a) {
15
- var { header, activeHref, items = [], onFollow, onChange, __internalRootRef } = _a, props = __rest(_a, ["header", "activeHref", "items", "onFollow", "onChange", "__internalRootRef"]);
15
+ var { header, itemsControl, activeHref, items = [], onFollow, onChange, __internalRootRef } = _a, props = __rest(_a, ["header", "itemsControl", "activeHref", "items", "onFollow", "onChange", "__internalRootRef"]);
16
16
  const baseProps = getBaseProps(props);
17
17
  const isToolbar = useAppLayoutToolbarEnabled();
18
18
  const parentMap = useMemo(() => generateExpandableItemsMapping(items), [items]);
@@ -31,6 +31,7 @@ export function SideNavigationImplementation(_a) {
31
31
  }, [onFollow]);
32
32
  return (React.createElement("div", Object.assign({}, baseProps, { className: clsx(styles.root, baseProps.className, isToolbar && styles['with-toolbar']), ref: __internalRootRef }),
33
33
  header && (React.createElement(Header, { definition: header, activeHref: activeHref, fireChange: onChangeHandler, fireFollow: onFollowHandler })),
34
+ itemsControl && React.createElement("div", { className: styles['items-control'] }, itemsControl),
34
35
  items && (React.createElement("div", { className: styles['list-container'] },
35
36
  React.createElement(NavigationItemsList, { variant: "root", items: items, fireFollow: onFollowHandler, fireChange: onChangeHandler, activeHref: activeHref })))));
36
37
  }