@cloudscape-design/components 3.0.793 → 3.0.794

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 (105) hide show
  1. package/alert/internal.d.ts.map +1 -1
  2. package/alert/internal.js +3 -3
  3. package/alert/internal.js.map +1 -1
  4. package/alert/styles.css.js +28 -27
  5. package/alert/styles.scoped.css +47 -42
  6. package/alert/styles.selectors.js +28 -27
  7. package/app-layout/visual-refresh-toolbar/compute-layout.d.ts +1 -0
  8. package/app-layout/visual-refresh-toolbar/compute-layout.d.ts.map +1 -1
  9. package/app-layout/visual-refresh-toolbar/compute-layout.js +2 -2
  10. package/app-layout/visual-refresh-toolbar/compute-layout.js.map +1 -1
  11. package/app-layout/visual-refresh-toolbar/contexts.d.ts +7 -0
  12. package/app-layout/visual-refresh-toolbar/contexts.d.ts.map +1 -0
  13. package/app-layout/visual-refresh-toolbar/contexts.js +6 -0
  14. package/app-layout/visual-refresh-toolbar/contexts.js.map +1 -0
  15. package/app-layout/visual-refresh-toolbar/index.d.ts.map +1 -1
  16. package/app-layout/visual-refresh-toolbar/index.js +56 -20
  17. package/app-layout/visual-refresh-toolbar/index.js.map +1 -1
  18. package/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
  19. package/app-layout/visual-refresh-toolbar/toolbar/index.js +3 -2
  20. package/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
  21. package/button-dropdown/internal.js +3 -3
  22. package/button-dropdown/internal.js.map +1 -1
  23. package/flashbar/flash.d.ts.map +1 -1
  24. package/flashbar/flash.js +3 -3
  25. package/flashbar/flash.js.map +1 -1
  26. package/flashbar/styles.css.js +50 -50
  27. package/flashbar/styles.scoped.css +151 -164
  28. package/flashbar/styles.selectors.js +50 -50
  29. package/internal/environment.js +1 -1
  30. package/internal/environment.json +1 -1
  31. package/internal/manifest.json +1 -1
  32. package/internal/plugins/api.d.ts +3 -0
  33. package/internal/plugins/api.d.ts.map +1 -1
  34. package/internal/plugins/api.js +3 -0
  35. package/internal/plugins/api.js.map +1 -1
  36. package/internal/plugins/controllers/alert-flash-content.d.ts +9 -0
  37. package/internal/plugins/controllers/alert-flash-content.d.ts.map +1 -1
  38. package/internal/plugins/controllers/alert-flash-content.js +9 -1
  39. package/internal/plugins/controllers/alert-flash-content.js.map +1 -1
  40. package/internal/plugins/controllers/shared-react-contexts.d.ts +10 -0
  41. package/internal/plugins/controllers/shared-react-contexts.d.ts.map +1 -0
  42. package/internal/plugins/controllers/shared-react-contexts.js +27 -0
  43. package/internal/plugins/controllers/shared-react-contexts.js.map +1 -0
  44. package/internal/plugins/helpers/use-discovered-content.d.ts +3 -2
  45. package/internal/plugins/helpers/use-discovered-content.d.ts.map +1 -1
  46. package/internal/plugins/helpers/use-discovered-content.js +9 -2
  47. package/internal/plugins/helpers/use-discovered-content.js.map +1 -1
  48. package/internal/plugins/helpers/use-global-breadcrumbs.d.ts.map +1 -1
  49. package/internal/plugins/helpers/use-global-breadcrumbs.js +11 -3
  50. package/internal/plugins/helpers/use-global-breadcrumbs.js.map +1 -1
  51. package/multiselect/embedded.d.ts.map +1 -1
  52. package/multiselect/embedded.js +2 -7
  53. package/multiselect/embedded.js.map +1 -1
  54. package/multiselect/use-multiselect.d.ts +1 -1
  55. package/multiselect/use-multiselect.d.ts.map +1 -1
  56. package/multiselect/use-multiselect.js.map +1 -1
  57. package/package.json +1 -1
  58. package/property-filter/i18n-utils.d.ts.map +1 -1
  59. package/property-filter/i18n-utils.js +6 -3
  60. package/property-filter/i18n-utils.js.map +1 -1
  61. package/property-filter/index.d.ts.map +1 -1
  62. package/property-filter/index.js +20 -2
  63. package/property-filter/index.js.map +1 -1
  64. package/property-filter/interfaces.d.ts +4 -2
  65. package/property-filter/interfaces.d.ts.map +1 -1
  66. package/property-filter/interfaces.js.map +1 -1
  67. package/property-filter/internal.d.ts.map +1 -1
  68. package/property-filter/internal.js +5 -3
  69. package/property-filter/internal.js.map +1 -1
  70. package/property-filter/property-editor.d.ts +13 -2
  71. package/property-filter/property-editor.d.ts.map +1 -1
  72. package/property-filter/property-editor.js +19 -1
  73. package/property-filter/property-editor.js.map +1 -1
  74. package/property-filter/styles.css.js +39 -35
  75. package/property-filter/styles.scoped.css +66 -37
  76. package/property-filter/styles.selectors.js +39 -35
  77. package/property-filter/token-editor-inputs.d.ts +3 -3
  78. package/property-filter/token-editor-inputs.d.ts.map +1 -1
  79. package/property-filter/token-editor-inputs.js +29 -4
  80. package/property-filter/token-editor-inputs.js.map +1 -1
  81. package/property-filter/token-editor.d.ts.map +1 -1
  82. package/property-filter/token-editor.js +9 -1
  83. package/property-filter/token-editor.js.map +1 -1
  84. package/property-filter/utils.d.ts.map +1 -1
  85. package/property-filter/utils.js +10 -3
  86. package/property-filter/utils.js.map +1 -1
  87. package/select/utils/use-select.d.ts.map +1 -1
  88. package/select/utils/use-select.js +14 -7
  89. package/select/utils/use-select.js.map +1 -1
  90. package/table/use-column-widths.d.ts.map +1 -1
  91. package/table/use-column-widths.js +7 -1
  92. package/table/use-column-widths.js.map +1 -1
  93. package/test-utils/tsconfig.tsbuildinfo +1 -1
  94. package/text-filter/index.d.ts.map +1 -1
  95. package/text-filter/index.js +3 -1
  96. package/text-filter/index.js.map +1 -1
  97. package/text-filter/interfaces.d.ts +2 -1
  98. package/text-filter/interfaces.d.ts.map +1 -1
  99. package/text-filter/interfaces.js.map +1 -1
  100. package/text-filter/internal.d.ts.map +1 -1
  101. package/text-filter/internal.js +2 -2
  102. package/text-filter/internal.js.map +1 -1
  103. package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
  104. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +22 -21
  105. package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/alert/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAgBtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAQlF,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAiB1C,QAAA,MAAM,aAAa;;qFAgJlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/alert/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAgBtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAQlF,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAiB1C,QAAA,MAAM,aAAa;;qFAqJlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
package/alert/internal.js CHANGED
@@ -28,7 +28,7 @@ const typeToIcon = {
28
28
  info: 'status-info',
29
29
  };
30
30
  const useDiscoveredAction = createUseDiscoveredAction(awsuiPluginsInternal.alert.onActionRegistered);
31
- const useDiscoveredContent = createUseDiscoveredContent('alert', awsuiPluginsInternal.alertContent.onContentRegistered);
31
+ const useDiscoveredContent = createUseDiscoveredContent('alert', awsuiPluginsInternal.alertContent);
32
32
  const InternalAlert = React.forwardRef((_a, ref) => {
33
33
  var { type, statusIconAriaLabel, visible = true, dismissible, dismissAriaLabel, children, header, buttonText, action, onDismiss, onButtonClick, __internalRootRef = null } = _a, rest = __rest(_a, ["type", "statusIconAriaLabel", "visible", "dismissible", "dismissAriaLabel", "children", "header", "buttonText", "action", "onDismiss", "onButtonClick", "__internalRootRef"]);
34
34
  const baseProps = getBaseProps(rest);
@@ -38,7 +38,7 @@ const InternalAlert = React.forwardRef((_a, ref) => {
38
38
  const [breakpoint, breakpointRef] = useContainerBreakpoints(['xs']);
39
39
  const mergedRef = useMergeRefs(breakpointRef, __internalRootRef);
40
40
  const { discoveredActions, headerRef: headerRefAction, contentRef: contentRefAction } = useDiscoveredAction(type);
41
- const { headerReplacementType, contentReplacementType, headerRef: headerRefContent, contentRef: contentRefContent, replacementHeaderRef, replacementContentRef, } = useDiscoveredContent({ type, header, children });
41
+ const { initialHidden, headerReplacementType, contentReplacementType, headerRef: headerRefContent, contentRef: contentRefContent, replacementHeaderRef, replacementContentRef, } = useDiscoveredContent({ type, header, children });
42
42
  const headerRef = useMergeRefs(headerRefAction, headerRefContent);
43
43
  const contentRef = useMergeRefs(contentRefAction, contentRefContent);
44
44
  const isRefresh = useVisualRefresh();
@@ -51,7 +51,7 @@ const InternalAlert = React.forwardRef((_a, ref) => {
51
51
  const analyticsAttributes = {
52
52
  [DATA_ATTR_ANALYTICS_ALERT]: type,
53
53
  };
54
- return (React.createElement("div", Object.assign({}, baseProps, analyticsAttributes, { "aria-hidden": !visible, className: clsx(styles.root, { [styles.hidden]: !visible }, baseProps.className), ref: mergedRef }),
54
+ return (React.createElement("div", Object.assign({}, baseProps, analyticsAttributes, { "aria-hidden": !visible, className: clsx(styles.root, { [styles.hidden]: !visible, [styles['initial-hidden']]: initialHidden }, baseProps.className), ref: mergedRef }),
55
55
  React.createElement(LinkDefaultVariantContext.Provider, { value: { defaultVariant: 'primary' } },
56
56
  React.createElement(VisualContext, { contextName: "alert" },
57
57
  React.createElement("div", { className: clsx(styles.alert, styles[`type-${type}`], styles[`icon-size-${size}`], hasAction && styles['with-action'], dismissible && styles['with-dismiss'], styles[`breakpoint-${breakpoint}`]) },
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/alert/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,YAAY,MAAM,kBAAkB,CAAC;A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,MAAM,EACjB,SAAS,EAAE,IAAI,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,EACrD,OAAO,EAAE,GAAG,EAAE,CAAC,sBAAsB,CAAC,SAAS,CAAC,GAChD,CACE,CACP,CACG,CACQ,CACmB,CACjC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { InternalButton } from '../button/internal';\nimport { useInternalI18n } from '../i18n/context';\nimport { IconProps } from '../icon/interfaces';\nimport InternalIcon from '../icon/internal';\nimport { DATA_ATTR_ANALYTICS_ALERT } from '../internal/analytics/selectors';\nimport { getBaseProps } from '../internal/base-component';\nimport VisualContext from '../internal/components/visual-context';\nimport { LinkDefaultVariantContext } from '../internal/context/link-default-variant-context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { awsuiPluginsInternal } from '../internal/plugins/api';\nimport { createUseDiscoveredAction, createUseDiscoveredContent } from '../internal/plugins/helpers';\nimport { SomeRequired } from '../internal/types';\nimport { ActionsWrapper } from './actions-wrapper';\nimport { GeneratedAnalyticsMetadataAlertDismiss } from './analytics-metadata/interfaces';\nimport { AlertProps } from './interfaces';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\nconst typeToIcon: Record<AlertProps.Type, IconProps['name']> = {\n error: 'status-negative',\n warning: 'status-warning',\n success: 'status-positive',\n info: 'status-info',\n};\n\ntype InternalAlertProps = SomeRequired<AlertProps, 'type'> & InternalBaseComponentProps<HTMLDivElement>;\n\nconst useDiscoveredAction = createUseDiscoveredAction(awsuiPluginsInternal.alert.onActionRegistered);\nconst useDiscoveredContent = createUseDiscoveredContent('alert', awsuiPluginsInternal.alertContent.onContentRegistered);\n\nconst InternalAlert = React.forwardRef(\n (\n {\n type,\n statusIconAriaLabel,\n visible = true,\n dismissible,\n dismissAriaLabel,\n children,\n header,\n buttonText,\n action,\n onDismiss,\n onButtonClick,\n __internalRootRef = null,\n ...rest\n }: InternalAlertProps,\n ref: React.Ref<AlertProps.Ref>\n ) => {\n const baseProps = getBaseProps(rest);\n const i18n = useInternalI18n('alert');\n\n const focusRef = useRef<HTMLDivElement>(null);\n useForwardFocus(ref, focusRef);\n\n const [breakpoint, breakpointRef] = useContainerBreakpoints(['xs']);\n const mergedRef = useMergeRefs(breakpointRef, __internalRootRef);\n\n const { discoveredActions, headerRef: headerRefAction, contentRef: contentRefAction } = useDiscoveredAction(type);\n const {\n headerReplacementType,\n contentReplacementType,\n headerRef: headerRefContent,\n contentRef: contentRefContent,\n replacementHeaderRef,\n replacementContentRef,\n } = useDiscoveredContent({ type, header, children });\n\n const headerRef = useMergeRefs(headerRefAction, headerRefContent);\n const contentRef = useMergeRefs(contentRefAction, contentRefContent);\n\n const isRefresh = useVisualRefresh();\n const size = isRefresh\n ? 'normal'\n : headerReplacementType !== 'remove' && header && contentReplacementType !== 'remove' && children\n ? 'big'\n : 'normal';\n\n const hasAction = Boolean(action || buttonText || discoveredActions.length);\n\n const analyticsAttributes = {\n [DATA_ATTR_ANALYTICS_ALERT]: type,\n };\n\n return (\n <div\n {...baseProps}\n {...analyticsAttributes}\n aria-hidden={!visible}\n className={clsx(styles.root, { [styles.hidden]: !visible }, baseProps.className)}\n ref={mergedRef}\n >\n <LinkDefaultVariantContext.Provider value={{ defaultVariant: 'primary' }}>\n <VisualContext contextName=\"alert\">\n <div\n className={clsx(\n styles.alert,\n styles[`type-${type}`],\n styles[`icon-size-${size}`],\n hasAction && styles['with-action'],\n dismissible && styles['with-dismiss'],\n styles[`breakpoint-${breakpoint}`]\n )}\n >\n <div className={styles['alert-focus-wrapper']} tabIndex={-1} ref={focusRef}>\n <div className={clsx(styles.icon, styles.text)} role=\"img\" aria-label={statusIconAriaLabel}>\n <InternalIcon name={typeToIcon[type]} size={size} />\n </div>\n <div className={clsx(styles.message, styles.text)}>\n <div\n className={clsx(\n header && styles.header,\n headerReplacementType !== 'original' ? styles.hidden : analyticsSelectors.header\n )}\n ref={headerRef}\n >\n {header}\n </div>\n <div\n className={clsx(\n styles['header-replacement'],\n headerReplacementType !== 'replaced' ? styles.hidden : analyticsSelectors.header\n )}\n ref={replacementHeaderRef}\n ></div>\n <div\n className={clsx(styles.content, contentReplacementType !== 'original' && styles.hidden)}\n ref={contentRef}\n >\n {children}\n </div>\n <div\n className={clsx(\n styles['content-replacement'],\n contentReplacementType !== 'replaced' && styles.hidden\n )}\n ref={replacementContentRef}\n ></div>\n </div>\n </div>\n <ActionsWrapper\n className={styles.action}\n testUtilClasses={{\n actionSlot: styles['action-slot'],\n actionButton: styles['action-button'],\n }}\n action={action}\n discoveredActions={discoveredActions}\n buttonText={buttonText}\n onButtonClick={() => fireNonCancelableEvent(onButtonClick)}\n />\n {dismissible && (\n <div\n className={styles.dismiss}\n {...getAnalyticsMetadataAttribute({\n action: 'dismiss',\n } as Partial<GeneratedAnalyticsMetadataAlertDismiss>)}\n >\n <InternalButton\n className={styles['dismiss-button']}\n variant=\"icon\"\n iconName=\"close\"\n formAction=\"none\"\n ariaLabel={i18n('dismissAriaLabel', dismissAriaLabel)}\n onClick={() => fireNonCancelableEvent(onDismiss)}\n />\n </div>\n )}\n </div>\n </VisualContext>\n </LinkDefaultVariantContext.Provider>\n </div>\n );\n }\n);\n\nexport default InternalAlert;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/alert/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AAC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AAE,iBAAiB,EACpC,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,GAAG,EAAE,CAAC,sBAAsB,CAAC,aAAa,CAAC,GAC1D;oBACD,WAAW,IAAI,CACd,2CACE,SAAS,EAAE,MAAM,CAAC,OAAO,IACrB,6BAA6B,CAAC;wBAChC,MAAM,EAAE,SAAS;qBACiC,CAAC;wBAErD,oBAAC,cAAc,IACb,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC,EACnC,OAAO,EAAC,MAAM,EACd,QAAQ,EAAC,OAAO,EAChB,UAAU,EAAC,MAAM,EACjB,SAAS,EAAE,IAAI,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,EACrD,OAAO,EAAE,GAAG,EAAE,CAAC,sBAAsB,CAAC,SAAS,CAAC,GAChD,CACE,CACP,CACG,CACQ,CACmB,CACjC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { InternalButton } from '../button/internal';\nimport { useInternalI18n } from '../i18n/context';\nimport { IconProps } from '../icon/interfaces';\nimport InternalIcon from '../icon/internal';\nimport { DATA_ATTR_ANALYTICS_ALERT } from '../internal/analytics/selectors';\nimport { getBaseProps } from '../internal/base-component';\nimport VisualContext from '../internal/components/visual-context';\nimport { LinkDefaultVariantContext } from '../internal/context/link-default-variant-context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { awsuiPluginsInternal } from '../internal/plugins/api';\nimport { createUseDiscoveredAction, createUseDiscoveredContent } from '../internal/plugins/helpers';\nimport { SomeRequired } from '../internal/types';\nimport { ActionsWrapper } from './actions-wrapper';\nimport { GeneratedAnalyticsMetadataAlertDismiss } from './analytics-metadata/interfaces';\nimport { AlertProps } from './interfaces';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\nconst typeToIcon: Record<AlertProps.Type, IconProps['name']> = {\n error: 'status-negative',\n warning: 'status-warning',\n success: 'status-positive',\n info: 'status-info',\n};\n\ntype InternalAlertProps = SomeRequired<AlertProps, 'type'> & InternalBaseComponentProps<HTMLDivElement>;\n\nconst useDiscoveredAction = createUseDiscoveredAction(awsuiPluginsInternal.alert.onActionRegistered);\nconst useDiscoveredContent = createUseDiscoveredContent('alert', awsuiPluginsInternal.alertContent);\n\nconst InternalAlert = React.forwardRef(\n (\n {\n type,\n statusIconAriaLabel,\n visible = true,\n dismissible,\n dismissAriaLabel,\n children,\n header,\n buttonText,\n action,\n onDismiss,\n onButtonClick,\n __internalRootRef = null,\n ...rest\n }: InternalAlertProps,\n ref: React.Ref<AlertProps.Ref>\n ) => {\n const baseProps = getBaseProps(rest);\n const i18n = useInternalI18n('alert');\n\n const focusRef = useRef<HTMLDivElement>(null);\n useForwardFocus(ref, focusRef);\n\n const [breakpoint, breakpointRef] = useContainerBreakpoints(['xs']);\n const mergedRef = useMergeRefs(breakpointRef, __internalRootRef);\n\n const { discoveredActions, headerRef: headerRefAction, contentRef: contentRefAction } = useDiscoveredAction(type);\n const {\n initialHidden,\n headerReplacementType,\n contentReplacementType,\n headerRef: headerRefContent,\n contentRef: contentRefContent,\n replacementHeaderRef,\n replacementContentRef,\n } = useDiscoveredContent({ type, header, children });\n\n const headerRef = useMergeRefs(headerRefAction, headerRefContent);\n const contentRef = useMergeRefs(contentRefAction, contentRefContent);\n\n const isRefresh = useVisualRefresh();\n const size = isRefresh\n ? 'normal'\n : headerReplacementType !== 'remove' && header && contentReplacementType !== 'remove' && children\n ? 'big'\n : 'normal';\n\n const hasAction = Boolean(action || buttonText || discoveredActions.length);\n\n const analyticsAttributes = {\n [DATA_ATTR_ANALYTICS_ALERT]: type,\n };\n\n return (\n <div\n {...baseProps}\n {...analyticsAttributes}\n aria-hidden={!visible}\n className={clsx(\n styles.root,\n { [styles.hidden]: !visible, [styles['initial-hidden']]: initialHidden },\n baseProps.className\n )}\n ref={mergedRef}\n >\n <LinkDefaultVariantContext.Provider value={{ defaultVariant: 'primary' }}>\n <VisualContext contextName=\"alert\">\n <div\n className={clsx(\n styles.alert,\n styles[`type-${type}`],\n styles[`icon-size-${size}`],\n hasAction && styles['with-action'],\n dismissible && styles['with-dismiss'],\n styles[`breakpoint-${breakpoint}`]\n )}\n >\n <div className={styles['alert-focus-wrapper']} tabIndex={-1} ref={focusRef}>\n <div className={clsx(styles.icon, styles.text)} role=\"img\" aria-label={statusIconAriaLabel}>\n <InternalIcon name={typeToIcon[type]} size={size} />\n </div>\n <div className={clsx(styles.message, styles.text)}>\n <div\n className={clsx(\n header && styles.header,\n headerReplacementType !== 'original' ? styles.hidden : analyticsSelectors.header\n )}\n ref={headerRef}\n >\n {header}\n </div>\n <div\n className={clsx(\n styles['header-replacement'],\n headerReplacementType !== 'replaced' ? styles.hidden : analyticsSelectors.header\n )}\n ref={replacementHeaderRef}\n ></div>\n <div\n className={clsx(styles.content, contentReplacementType !== 'original' && styles.hidden)}\n ref={contentRef}\n >\n {children}\n </div>\n <div\n className={clsx(\n styles['content-replacement'],\n contentReplacementType !== 'replaced' && styles.hidden\n )}\n ref={replacementContentRef}\n ></div>\n </div>\n </div>\n <ActionsWrapper\n className={styles.action}\n testUtilClasses={{\n actionSlot: styles['action-slot'],\n actionButton: styles['action-button'],\n }}\n action={action}\n discoveredActions={discoveredActions}\n buttonText={buttonText}\n onButtonClick={() => fireNonCancelableEvent(onButtonClick)}\n />\n {dismissible && (\n <div\n className={styles.dismiss}\n {...getAnalyticsMetadataAttribute({\n action: 'dismiss',\n } as Partial<GeneratedAnalyticsMetadataAlertDismiss>)}\n >\n <InternalButton\n className={styles['dismiss-button']}\n variant=\"icon\"\n iconName=\"close\"\n formAction=\"none\"\n ariaLabel={i18n('dismissAriaLabel', dismissAriaLabel)}\n onClick={() => fireNonCancelableEvent(onDismiss)}\n />\n </div>\n )}\n </div>\n </VisualContext>\n </LinkDefaultVariantContext.Provider>\n </div>\n );\n }\n);\n\nexport default InternalAlert;\n"]}
@@ -1,32 +1,33 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "alert": "awsui_alert_mx3cw_1axb3_189",
5
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_mx3cw_1axb3_1",
6
- "root": "awsui_root_mx3cw_1axb3_211",
7
- "hidden": "awsui_hidden_mx3cw_1axb3_249",
8
- "with-dismiss": "awsui_with-dismiss_mx3cw_1axb3_299",
9
- "with-action": "awsui_with-action_mx3cw_1axb3_299",
10
- "breakpoint-default": "awsui_breakpoint-default_mx3cw_1axb3_305",
11
- "header": "awsui_header_mx3cw_1axb3_316",
12
- "header-replacement": "awsui_header-replacement_mx3cw_1axb3_317",
13
- "action": "awsui_action_mx3cw_1axb3_321",
14
- "action-slot": "awsui_action-slot_mx3cw_1axb3_326",
15
- "action-button": "awsui_action-button_mx3cw_1axb3_327",
16
- "alert-focus-wrapper": "awsui_alert-focus-wrapper_mx3cw_1axb3_331",
17
- "text": "awsui_text_mx3cw_1axb3_360",
18
- "icon": "awsui_icon_mx3cw_1axb3_367",
19
- "message": "awsui_message_mx3cw_1axb3_370",
20
- "icon-size-medium": "awsui_icon-size-medium_mx3cw_1axb3_378",
21
- "icon-size-big": "awsui_icon-size-big_mx3cw_1axb3_381",
22
- "icon-size-normal": "awsui_icon-size-normal_mx3cw_1axb3_384",
23
- "content": "awsui_content_mx3cw_1axb3_388",
24
- "content-replacement": "awsui_content-replacement_mx3cw_1axb3_389",
25
- "dismiss": "awsui_dismiss_mx3cw_1axb3_393",
26
- "dismiss-button": "awsui_dismiss-button_mx3cw_1axb3_398",
27
- "type-error": "awsui_type-error_mx3cw_1axb3_402",
28
- "type-warning": "awsui_type-warning_mx3cw_1axb3_410",
29
- "type-success": "awsui_type-success_mx3cw_1axb3_418",
30
- "type-info": "awsui_type-info_mx3cw_1axb3_426"
4
+ "alert": "awsui_alert_mx3cw_1le22_189",
5
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_mx3cw_1le22_1",
6
+ "root": "awsui_root_mx3cw_1le22_211",
7
+ "hidden": "awsui_hidden_mx3cw_1le22_249",
8
+ "with-dismiss": "awsui_with-dismiss_mx3cw_1le22_299",
9
+ "with-action": "awsui_with-action_mx3cw_1le22_299",
10
+ "breakpoint-default": "awsui_breakpoint-default_mx3cw_1le22_305",
11
+ "initial-hidden": "awsui_initial-hidden_mx3cw_1le22_316",
12
+ "header": "awsui_header_mx3cw_1le22_321",
13
+ "header-replacement": "awsui_header-replacement_mx3cw_1le22_322",
14
+ "action": "awsui_action_mx3cw_1le22_326",
15
+ "action-slot": "awsui_action-slot_mx3cw_1le22_331",
16
+ "action-button": "awsui_action-button_mx3cw_1le22_332",
17
+ "alert-focus-wrapper": "awsui_alert-focus-wrapper_mx3cw_1le22_336",
18
+ "text": "awsui_text_mx3cw_1le22_365",
19
+ "icon": "awsui_icon_mx3cw_1le22_372",
20
+ "message": "awsui_message_mx3cw_1le22_375",
21
+ "icon-size-medium": "awsui_icon-size-medium_mx3cw_1le22_383",
22
+ "icon-size-big": "awsui_icon-size-big_mx3cw_1le22_386",
23
+ "icon-size-normal": "awsui_icon-size-normal_mx3cw_1le22_389",
24
+ "content": "awsui_content_mx3cw_1le22_393",
25
+ "content-replacement": "awsui_content-replacement_mx3cw_1le22_394",
26
+ "dismiss": "awsui_dismiss_mx3cw_1le22_398",
27
+ "dismiss-button": "awsui_dismiss-button_mx3cw_1le22_403",
28
+ "type-error": "awsui_type-error_mx3cw_1le22_407",
29
+ "type-warning": "awsui_type-warning_mx3cw_1le22_415",
30
+ "type-success": "awsui_type-success_mx3cw_1le22_423",
31
+ "type-info": "awsui_type-info_mx3cw_1le22_431"
31
32
  };
32
33
 
@@ -186,10 +186,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
186
186
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
187
187
  SPDX-License-Identifier: Apache-2.0
188
188
  */
189
- .awsui_alert_mx3cw_1axb3_189:not(#\9) {
190
- animation: awsui_awsui-motion-fade-in_mx3cw_1axb3_1 var(--motion-duration-show-paced-q2lo2h, 180ms) var(--motion-easing-show-paced-ne2o0s, ease-out);
189
+ .awsui_alert_mx3cw_1le22_189:not(#\9) {
190
+ animation: awsui_awsui-motion-fade-in_mx3cw_1le22_1 var(--motion-duration-show-paced-q2lo2h, 180ms) var(--motion-easing-show-paced-ne2o0s, ease-out);
191
191
  }
192
- @keyframes awsui_awsui-motion-fade-in_mx3cw_1axb3_1 {
192
+ @keyframes awsui_awsui-motion-fade-in_mx3cw_1le22_1 {
193
193
  from {
194
194
  opacity: 0.2;
195
195
  }
@@ -198,17 +198,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
198
198
  }
199
199
  }
200
200
  @media (prefers-reduced-motion: reduce) {
201
- .awsui_alert_mx3cw_1axb3_189:not(#\9) {
201
+ .awsui_alert_mx3cw_1le22_189:not(#\9) {
202
202
  animation: none;
203
203
  transition: none;
204
204
  }
205
205
  }
206
- .awsui-motion-disabled .awsui_alert_mx3cw_1axb3_189:not(#\9), .awsui-mode-entering .awsui_alert_mx3cw_1axb3_189:not(#\9) {
206
+ .awsui-motion-disabled .awsui_alert_mx3cw_1le22_189:not(#\9), .awsui-mode-entering .awsui_alert_mx3cw_1le22_189:not(#\9) {
207
207
  animation: none;
208
208
  transition: none;
209
209
  }
210
210
 
211
- .awsui_root_mx3cw_1axb3_211:not(#\9) {
211
+ .awsui_root_mx3cw_1le22_211:not(#\9) {
212
212
  border-collapse: separate;
213
213
  border-spacing: 0;
214
214
  box-sizing: border-box;
@@ -247,11 +247,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
247
247
  overflow: hidden;
248
248
  display: block;
249
249
  }
250
- .awsui_root_mx3cw_1axb3_211.awsui_hidden_mx3cw_1axb3_249:not(#\9) {
250
+ .awsui_root_mx3cw_1le22_211.awsui_hidden_mx3cw_1le22_249:not(#\9) {
251
251
  display: none;
252
252
  }
253
253
 
254
- .awsui_alert_mx3cw_1axb3_189:not(#\9) {
254
+ .awsui_alert_mx3cw_1le22_189:not(#\9) {
255
255
  border-collapse: separate;
256
256
  border-spacing: 0;
257
257
  box-sizing: border-box;
@@ -298,53 +298,58 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
298
298
  padding-inline: var(--space-alert-horizontal-eyt1xx, 16px);
299
299
  background-color: var(--color-background-container-content-z79u4u, #ffffff);
300
300
  }
301
- .awsui_alert_mx3cw_1axb3_189.awsui_with-dismiss_mx3cw_1axb3_299:not(#\9), .awsui_alert_mx3cw_1axb3_189.awsui_with-action_mx3cw_1axb3_299:not(#\9) {
301
+ .awsui_alert_mx3cw_1le22_189.awsui_with-dismiss_mx3cw_1le22_299:not(#\9), .awsui_alert_mx3cw_1le22_189.awsui_with-action_mx3cw_1le22_299:not(#\9) {
302
302
  grid-template-columns: 1fr auto;
303
303
  }
304
- .awsui_alert_mx3cw_1axb3_189.awsui_with-action_mx3cw_1axb3_299.awsui_with-dismiss_mx3cw_1axb3_299:not(#\9) {
304
+ .awsui_alert_mx3cw_1le22_189.awsui_with-action_mx3cw_1le22_299.awsui_with-dismiss_mx3cw_1le22_299:not(#\9) {
305
305
  grid-template-columns: 1fr auto auto;
306
306
  }
307
- .awsui_alert_mx3cw_1axb3_189.awsui_breakpoint-default_mx3cw_1axb3_305.awsui_with-action_mx3cw_1axb3_299:not(#\9) {
307
+ .awsui_alert_mx3cw_1le22_189.awsui_breakpoint-default_mx3cw_1le22_305.awsui_with-action_mx3cw_1le22_299:not(#\9) {
308
308
  grid-template-columns: 1fr auto;
309
309
  }
310
- .awsui_alert_mx3cw_1axb3_189.awsui_breakpoint-default_mx3cw_1axb3_305:not(#\9):not(.awsui_with-dismiss_mx3cw_1axb3_299) {
310
+ .awsui_alert_mx3cw_1le22_189.awsui_breakpoint-default_mx3cw_1le22_305:not(#\9):not(.awsui_with-dismiss_mx3cw_1le22_299) {
311
311
  grid-template-columns: 1fr;
312
312
  }
313
313
 
314
- .awsui_hidden_mx3cw_1axb3_249:not(#\9) {
314
+ .awsui_hidden_mx3cw_1le22_249:not(#\9) {
315
315
  display: none;
316
316
  }
317
317
 
318
- .awsui_header_mx3cw_1axb3_316:not(#\9),
319
- .awsui_header-replacement_mx3cw_1axb3_317:not(#\9) {
318
+ .awsui_initial-hidden_mx3cw_1le22_316:not(#\9) {
319
+ overflow: hidden;
320
+ block-size: 0;
321
+ }
322
+
323
+ .awsui_header_mx3cw_1le22_321:not(#\9),
324
+ .awsui_header-replacement_mx3cw_1le22_322:not(#\9) {
320
325
  font-weight: 700;
321
326
  }
322
327
 
323
- .awsui_action_mx3cw_1axb3_321:not(#\9) {
328
+ .awsui_action_mx3cw_1le22_326:not(#\9) {
324
329
  white-space: nowrap;
325
330
  margin-inline-start: var(--space-alert-action-left-ea9czk, 12px);
326
331
  }
327
332
 
328
- .awsui_action-slot_mx3cw_1axb3_326:not(#\9),
329
- .awsui_action-button_mx3cw_1axb3_327:not(#\9) {
333
+ .awsui_action-slot_mx3cw_1le22_331:not(#\9),
334
+ .awsui_action-button_mx3cw_1le22_332:not(#\9) {
330
335
  /* used in test-utils */
331
336
  }
332
337
 
333
- .awsui_alert-focus-wrapper_mx3cw_1axb3_331:not(#\9) {
338
+ .awsui_alert-focus-wrapper_mx3cw_1le22_336:not(#\9) {
334
339
  display: grid;
335
340
  grid-template-columns: min-content auto;
336
341
  }
337
- .awsui_alert-focus-wrapper_mx3cw_1axb3_331:not(#\9):focus {
342
+ .awsui_alert-focus-wrapper_mx3cw_1le22_336:not(#\9):focus {
338
343
  outline: none;
339
344
  }
340
- body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_1axb3_331:not(#\9):focus {
345
+ body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_1le22_336:not(#\9):focus {
341
346
  position: relative;
342
347
  }
343
- body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_1axb3_331:not(#\9):focus {
348
+ body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_1le22_336:not(#\9):focus {
344
349
  outline: 2px dotted transparent;
345
350
  outline-offset: calc(var(--space-button-focus-outline-gutter-cqfd0c, 4px) - 1px);
346
351
  }
347
- body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_1axb3_331:not(#\9):focus::before {
352
+ body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_1le22_336:not(#\9):focus::before {
348
353
  content: " ";
349
354
  display: block;
350
355
  position: absolute;
@@ -359,76 +364,76 @@ body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_1axb3_331:n
359
364
  box-shadow: 0 0 0 2px var(--color-border-item-focused-nv6mhz, #006ce0);
360
365
  }
361
366
 
362
- .awsui_text_mx3cw_1axb3_360:not(#\9) {
367
+ .awsui_text_mx3cw_1le22_365:not(#\9) {
363
368
  min-inline-size: 0;
364
369
  padding-block: var(--border-field-width-09w7vk, 2px);
365
370
  padding-inline: 0;
366
371
  margin-block: var(--space-scaled-xxs-7597g1, 4px);
367
372
  margin-inline: var(--space-xxs-p8yyaw, 4px);
368
373
  }
369
- .awsui_text_mx3cw_1axb3_360.awsui_icon_mx3cw_1axb3_367:not(#\9) {
374
+ .awsui_text_mx3cw_1le22_365.awsui_icon_mx3cw_1le22_372:not(#\9) {
370
375
  margin-inline-start: 0;
371
376
  }
372
- .awsui_text_mx3cw_1axb3_360.awsui_message_mx3cw_1axb3_370:not(#\9) {
377
+ .awsui_text_mx3cw_1le22_365.awsui_message_mx3cw_1le22_375:not(#\9) {
373
378
  margin-inline-end: var(--space-alert-message-right-knlb6u, 4px);
374
379
  }
375
380
 
376
- .awsui_breakpoint-default_mx3cw_1axb3_305 > .awsui_action_mx3cw_1axb3_321:not(#\9) {
381
+ .awsui_breakpoint-default_mx3cw_1le22_305 > .awsui_action_mx3cw_1le22_326:not(#\9) {
377
382
  grid-row: 2;
378
383
  margin-block-end: var(--space-xxs-p8yyaw, 4px);
379
384
  }
380
- .awsui_breakpoint-default_mx3cw_1axb3_305.awsui_icon-size-medium_mx3cw_1axb3_378 > .awsui_action_mx3cw_1axb3_321:not(#\9) {
385
+ .awsui_breakpoint-default_mx3cw_1le22_305.awsui_icon-size-medium_mx3cw_1le22_383 > .awsui_action_mx3cw_1le22_326:not(#\9) {
381
386
  margin-inline-start: calc(var(--size-icon-medium-y9xuoq, 20px) + var(--space-xs-zb16t3, 8px));
382
387
  }
383
- .awsui_breakpoint-default_mx3cw_1axb3_305.awsui_icon-size-big_mx3cw_1axb3_381 > .awsui_action_mx3cw_1axb3_321:not(#\9) {
388
+ .awsui_breakpoint-default_mx3cw_1le22_305.awsui_icon-size-big_mx3cw_1le22_386 > .awsui_action_mx3cw_1le22_326:not(#\9) {
384
389
  margin-inline-start: calc(var(--size-icon-big-zkdryd, 32px) + var(--space-xs-zb16t3, 8px));
385
390
  }
386
- .awsui_breakpoint-default_mx3cw_1axb3_305.awsui_icon-size-normal_mx3cw_1axb3_384 > .awsui_action_mx3cw_1axb3_321:not(#\9) {
391
+ .awsui_breakpoint-default_mx3cw_1le22_305.awsui_icon-size-normal_mx3cw_1le22_389 > .awsui_action_mx3cw_1le22_326:not(#\9) {
387
392
  margin-inline-start: calc(var(--size-icon-normal-0m1722, 16px) + var(--space-xs-zb16t3, 8px));
388
393
  }
389
394
 
390
- .awsui_content_mx3cw_1axb3_388:not(#\9),
391
- .awsui_content-replacement_mx3cw_1axb3_389:not(#\9) {
395
+ .awsui_content_mx3cw_1le22_393:not(#\9),
396
+ .awsui_content-replacement_mx3cw_1le22_394:not(#\9) {
392
397
  /* used in test-utils */
393
398
  }
394
399
 
395
- .awsui_dismiss_mx3cw_1axb3_393:not(#\9) {
400
+ .awsui_dismiss_mx3cw_1le22_398:not(#\9) {
396
401
  margin-inline-end: calc(-1 * var(--space-xxs-p8yyaw, 4px));
397
402
  margin-inline-start: var(--space-s-34lx8l, 12px);
398
403
  }
399
404
 
400
- .awsui_dismiss-button_mx3cw_1axb3_398:not(#\9) {
405
+ .awsui_dismiss-button_mx3cw_1le22_403:not(#\9) {
401
406
  /* used in test-utils */
402
407
  }
403
408
 
404
- .awsui_type-error_mx3cw_1axb3_402:not(#\9) {
409
+ .awsui_type-error_mx3cw_1le22_407:not(#\9) {
405
410
  border-color: var(--color-border-status-error-adxa56, #db0000);
406
411
  background-color: var(--color-background-status-error-5fz45j, #fff5f5);
407
412
  }
408
- .awsui_type-error_mx3cw_1axb3_402 > .awsui_alert-focus-wrapper_mx3cw_1axb3_331 > .awsui_icon_mx3cw_1axb3_367:not(#\9) {
413
+ .awsui_type-error_mx3cw_1le22_407 > .awsui_alert-focus-wrapper_mx3cw_1le22_336 > .awsui_icon_mx3cw_1le22_372:not(#\9) {
409
414
  color: var(--color-text-status-error-5676bj, #db0000);
410
415
  }
411
416
 
412
- .awsui_type-warning_mx3cw_1axb3_410:not(#\9) {
417
+ .awsui_type-warning_mx3cw_1le22_415:not(#\9) {
413
418
  border-color: var(--color-border-status-warning-3feumr, #855900);
414
419
  background-color: var(--color-background-status-warning-03nxlw, #fffef0);
415
420
  }
416
- .awsui_type-warning_mx3cw_1axb3_410 > .awsui_alert-focus-wrapper_mx3cw_1axb3_331 > .awsui_icon_mx3cw_1axb3_367:not(#\9) {
421
+ .awsui_type-warning_mx3cw_1le22_415 > .awsui_alert-focus-wrapper_mx3cw_1le22_336 > .awsui_icon_mx3cw_1le22_372:not(#\9) {
417
422
  color: var(--color-text-status-warning-csaw41, #855900);
418
423
  }
419
424
 
420
- .awsui_type-success_mx3cw_1axb3_418:not(#\9) {
425
+ .awsui_type-success_mx3cw_1le22_423:not(#\9) {
421
426
  border-color: var(--color-border-status-success-4x6srk, #00802f);
422
427
  background-color: var(--color-background-status-success-ua29ej, #effff1);
423
428
  }
424
- .awsui_type-success_mx3cw_1axb3_418 > .awsui_alert-focus-wrapper_mx3cw_1axb3_331 > .awsui_icon_mx3cw_1axb3_367:not(#\9) {
429
+ .awsui_type-success_mx3cw_1le22_423 > .awsui_alert-focus-wrapper_mx3cw_1le22_336 > .awsui_icon_mx3cw_1le22_372:not(#\9) {
425
430
  color: var(--color-text-status-success-gqp5xk, #00802f);
426
431
  }
427
432
 
428
- .awsui_type-info_mx3cw_1axb3_426:not(#\9) {
433
+ .awsui_type-info_mx3cw_1le22_431:not(#\9) {
429
434
  border-color: var(--color-border-status-info-z6pwqy, #006ce0);
430
435
  background-color: var(--color-background-status-info-gflgo4, #f0fbff);
431
436
  }
432
- .awsui_type-info_mx3cw_1axb3_426 > .awsui_alert-focus-wrapper_mx3cw_1axb3_331 > .awsui_icon_mx3cw_1axb3_367:not(#\9) {
437
+ .awsui_type-info_mx3cw_1le22_431 > .awsui_alert-focus-wrapper_mx3cw_1le22_336 > .awsui_icon_mx3cw_1le22_372:not(#\9) {
433
438
  color: var(--color-text-status-info-7rlubr, #006ce0);
434
439
  }
@@ -2,32 +2,33 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "alert": "awsui_alert_mx3cw_1axb3_189",
6
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_mx3cw_1axb3_1",
7
- "root": "awsui_root_mx3cw_1axb3_211",
8
- "hidden": "awsui_hidden_mx3cw_1axb3_249",
9
- "with-dismiss": "awsui_with-dismiss_mx3cw_1axb3_299",
10
- "with-action": "awsui_with-action_mx3cw_1axb3_299",
11
- "breakpoint-default": "awsui_breakpoint-default_mx3cw_1axb3_305",
12
- "header": "awsui_header_mx3cw_1axb3_316",
13
- "header-replacement": "awsui_header-replacement_mx3cw_1axb3_317",
14
- "action": "awsui_action_mx3cw_1axb3_321",
15
- "action-slot": "awsui_action-slot_mx3cw_1axb3_326",
16
- "action-button": "awsui_action-button_mx3cw_1axb3_327",
17
- "alert-focus-wrapper": "awsui_alert-focus-wrapper_mx3cw_1axb3_331",
18
- "text": "awsui_text_mx3cw_1axb3_360",
19
- "icon": "awsui_icon_mx3cw_1axb3_367",
20
- "message": "awsui_message_mx3cw_1axb3_370",
21
- "icon-size-medium": "awsui_icon-size-medium_mx3cw_1axb3_378",
22
- "icon-size-big": "awsui_icon-size-big_mx3cw_1axb3_381",
23
- "icon-size-normal": "awsui_icon-size-normal_mx3cw_1axb3_384",
24
- "content": "awsui_content_mx3cw_1axb3_388",
25
- "content-replacement": "awsui_content-replacement_mx3cw_1axb3_389",
26
- "dismiss": "awsui_dismiss_mx3cw_1axb3_393",
27
- "dismiss-button": "awsui_dismiss-button_mx3cw_1axb3_398",
28
- "type-error": "awsui_type-error_mx3cw_1axb3_402",
29
- "type-warning": "awsui_type-warning_mx3cw_1axb3_410",
30
- "type-success": "awsui_type-success_mx3cw_1axb3_418",
31
- "type-info": "awsui_type-info_mx3cw_1axb3_426"
5
+ "alert": "awsui_alert_mx3cw_1le22_189",
6
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_mx3cw_1le22_1",
7
+ "root": "awsui_root_mx3cw_1le22_211",
8
+ "hidden": "awsui_hidden_mx3cw_1le22_249",
9
+ "with-dismiss": "awsui_with-dismiss_mx3cw_1le22_299",
10
+ "with-action": "awsui_with-action_mx3cw_1le22_299",
11
+ "breakpoint-default": "awsui_breakpoint-default_mx3cw_1le22_305",
12
+ "initial-hidden": "awsui_initial-hidden_mx3cw_1le22_316",
13
+ "header": "awsui_header_mx3cw_1le22_321",
14
+ "header-replacement": "awsui_header-replacement_mx3cw_1le22_322",
15
+ "action": "awsui_action_mx3cw_1le22_326",
16
+ "action-slot": "awsui_action-slot_mx3cw_1le22_331",
17
+ "action-button": "awsui_action-button_mx3cw_1le22_332",
18
+ "alert-focus-wrapper": "awsui_alert-focus-wrapper_mx3cw_1le22_336",
19
+ "text": "awsui_text_mx3cw_1le22_365",
20
+ "icon": "awsui_icon_mx3cw_1le22_372",
21
+ "message": "awsui_message_mx3cw_1le22_375",
22
+ "icon-size-medium": "awsui_icon-size-medium_mx3cw_1le22_383",
23
+ "icon-size-big": "awsui_icon-size-big_mx3cw_1le22_386",
24
+ "icon-size-normal": "awsui_icon-size-normal_mx3cw_1le22_389",
25
+ "content": "awsui_content_mx3cw_1le22_393",
26
+ "content-replacement": "awsui_content-replacement_mx3cw_1le22_394",
27
+ "dismiss": "awsui_dismiss_mx3cw_1le22_398",
28
+ "dismiss-button": "awsui_dismiss-button_mx3cw_1le22_403",
29
+ "type-error": "awsui_type-error_mx3cw_1le22_407",
30
+ "type-warning": "awsui_type-warning_mx3cw_1le22_415",
31
+ "type-success": "awsui_type-success_mx3cw_1le22_423",
32
+ "type-info": "awsui_type-info_mx3cw_1le22_431"
32
33
  };
33
34
 
@@ -11,6 +11,7 @@ interface HorizontalLayoutInput {
11
11
  isMobile: boolean;
12
12
  activeGlobalDrawersSizes: Record<string, number>;
13
13
  }
14
+ export declare const CONTENT_PADDING: number;
14
15
  export declare function computeHorizontalLayout({ navigationOpen, navigationWidth, placement, minContentWidth, activeDrawerSize, splitPanelOpen, splitPanelPosition, splitPanelSize, isMobile, activeGlobalDrawersSizes, }: HorizontalLayoutInput): {
15
16
  splitPanelPosition: "bottom" | "side";
16
17
  splitPanelForcedPosition: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"compute-layout.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh-toolbar/compute-layout.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAG3D,UAAU,qBAAqB;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C,eAAe,EAAE,oBAAoB,EACrC,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,0BAA0B,CAAC,WAAW,CAAC,UAGnD"}
@@ -1,10 +1,10 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { checkSplitPanelForcedPosition } from '../split-panel/split-panel-utils';
4
+ export const CONTENT_PADDING = 2 * 24; // space-xl
4
5
  export function computeHorizontalLayout({ navigationOpen, navigationWidth, placement, minContentWidth, activeDrawerSize, splitPanelOpen, splitPanelPosition, splitPanelSize, isMobile, activeGlobalDrawersSizes, }) {
5
- const contentPadding = 2 * 24; // space-xl
6
6
  const activeNavigationWidth = navigationOpen ? navigationWidth : 0;
7
- let resizableSpaceAvailable = Math.max(0, placement.inlineSize - minContentWidth - contentPadding - activeNavigationWidth);
7
+ let resizableSpaceAvailable = Math.max(0, placement.inlineSize - minContentWidth - CONTENT_PADDING - activeNavigationWidth);
8
8
  const totalActiveGlobalDrawersSize = Object.values(activeGlobalDrawersSizes).reduce((acc, size) => acc + size, 0);
9
9
  const splitPanelMaxWidth = resizableSpaceAvailable - activeDrawerSize;
10
10
  const splitPanelForcedPosition = checkSplitPanelForcedPosition({ isMobile, splitPanelMaxWidth });
@@ -1 +1 @@
1
- {"version":3,"file":"compute-layout.js","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh-toolbar/compute-layout.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAGtC,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAejF,MAAM,UAAU,uBAAuB,CAAC,EACtC,cAAc,EACd,eAAe,EACf,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,QAAQ,EACR,wBAAwB,GACF;IACtB,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,WAAW;IAC1C,MAAM,qBAAqB,GAA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AC,IACpC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO;QACL,kBAAkB,EAAE,0BAA0B;QAC9C,wBAAwB;QACxB,kBAAkB;QAClB,iBAAiB;QACjB,aAAa;QACb,qBAAqB;QACrB,4BAA4B;QAC5B,uBAAuB;KACxB,CAAC;AACJ,CAAC;AAiBD,MAAM,UAAU,qBAAqB,CAAC,EACpC,SAAS,EACT,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,GACC;IACpB,MAAM,OAAO,GAAG,SAAS,CAAC;IAC1B,IAAI,aAAa,GAAG,SAAS,CAAC;IAC9B,IAAI,OAAO,GAAG,SAAS,CAAC;IAExB,IAAI,iBAAiB,EAAE;QACrB,aAAa,IAAI,aAAa,CAAC;QAC/B,OAAO,IAAI,aAAa,CAAC;KAC1B;IACD,IAAI,MAAM,GAAG,aAAa,CAAC;IAC3B,IAAI,mBAAmB,EAAE;QACvB,MAAM,IAAI,mBAAmB,CAAC;KAC/B;IAED,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,eAAqC,EACrC,QAAiB,EACjB,SAAkD;;IAElD,OAAO,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,MAAA,eAAe,CAAC,OAAO,mCAAI,SAAS,CAAC,eAAe,CAAC;AACnG,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { AppLayoutPropsWithDefaults } from '../interfaces';\nimport { checkSplitPanelForcedPosition } from '../split-panel/split-panel-utils';\n\ninterface HorizontalLayoutInput {\n navigationOpen: boolean;\n navigationWidth: number;\n placement: AppLayoutPropsWithDefaults['placement'];\n minContentWidth: number;\n activeDrawerSize: number;\n splitPanelOpen: boolean;\n splitPanelPosition: 'side' | 'bottom' | undefined;\n splitPanelSize: number;\n isMobile: boolean;\n activeGlobalDrawersSizes: Record<string, number>;\n}\n\nexport function computeHorizontalLayout({\n navigationOpen,\n navigationWidth,\n placement,\n minContentWidth,\n activeDrawerSize,\n splitPanelOpen,\n splitPanelPosition,\n splitPanelSize,\n isMobile,\n activeGlobalDrawersSizes,\n}: HorizontalLayoutInput) {\n const contentPadding = 2 * 24; // space-xl\n const activeNavigationWidth = navigationOpen ? navigationWidth : 0;\n\n let resizableSpaceAvailable = Math.max(\n 0,\n placement.inlineSize - minContentWidth - contentPadding - activeNavigationWidth\n );\n const totalActiveGlobalDrawersSize = Object.values(activeGlobalDrawersSizes).reduce((acc, size) => acc + size, 0);\n\n const splitPanelMaxWidth = resizableSpaceAvailable - activeDrawerSize;\n const splitPanelForcedPosition = checkSplitPanelForcedPosition({ isMobile, splitPanelMaxWidth });\n const resolvedSplitPanelPosition = splitPanelForcedPosition ? 'bottom' : splitPanelPosition ?? 'bottom';\n const sideSplitPanelSize = resolvedSplitPanelPosition === 'side' && splitPanelOpen ? splitPanelSize ?? 0 : 0;\n const maxSplitPanelSize = Math.max(resizableSpaceAvailable - totalActiveGlobalDrawersSize - activeDrawerSize, 0);\n resizableSpaceAvailable -= sideSplitPanelSize;\n const maxDrawerSize = resizableSpaceAvailable - totalActiveGlobalDrawersSize;\n const maxGlobalDrawersSizes: Record<string, number> = Object.keys(activeGlobalDrawersSizes).reduce(\n (acc, drawerId) => {\n return {\n ...acc,\n [drawerId]:\n resizableSpaceAvailable -\n activeDrawerSize -\n totalActiveGlobalDrawersSize +\n activeGlobalDrawersSizes[drawerId],\n };\n },\n {}\n );\n\n return {\n splitPanelPosition: resolvedSplitPanelPosition,\n splitPanelForcedPosition,\n sideSplitPanelSize,\n maxSplitPanelSize,\n maxDrawerSize,\n maxGlobalDrawersSizes,\n totalActiveGlobalDrawersSize,\n resizableSpaceAvailable,\n };\n}\n\ninterface VerticalLayoutInput {\n topOffset: number;\n hasVisibleToolbar: boolean;\n toolbarHeight: number;\n stickyNotifications: boolean;\n notificationsHeight: number;\n}\n\nexport interface VerticalLayoutOutput {\n toolbar: number;\n notifications: number;\n header: number;\n drawers: number;\n}\n\nexport function computeVerticalLayout({\n topOffset,\n hasVisibleToolbar,\n toolbarHeight,\n stickyNotifications,\n notificationsHeight,\n}: VerticalLayoutInput): VerticalLayoutOutput {\n const toolbar = topOffset;\n let notifications = topOffset;\n let drawers = topOffset;\n\n if (hasVisibleToolbar) {\n notifications += toolbarHeight;\n drawers += toolbarHeight;\n }\n let header = notifications;\n if (stickyNotifications) {\n header += notificationsHeight;\n }\n\n return { toolbar, notifications, header, drawers };\n}\n\nexport function getDrawerTopOffset(\n verticalOffsets: VerticalLayoutOutput,\n isMobile: boolean,\n placement: AppLayoutPropsWithDefaults['placement']\n) {\n return isMobile ? verticalOffsets.toolbar : verticalOffsets.drawers ?? placement.insetBlockStart;\n}\n"]}
1
+ {"version":3,"file":"compute-layout.js","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh-toolbar/compute-layout.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAGtC,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAejF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,WAAW;AAElD,MAAM,UAAU,uBAAuB,CAAC,EACtC,cAAc,EACd,eAAe,EACf,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,QAAQ,EACR,wBAAwB,GACF;IACtB,MAAM,qBAAqB,GAAG,cAAc,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnE,IAAI,uBAAuB,GAAG,IAAI,CAAC,GAAG,CACpC,CAAC,EACD,SAAS,CAAC,UAAU,GAAG,eAAe,GAAG,eAAe,GAAG,qBAAqB,CACjF,CAAC;IACF,MAAM,4BAA4B,GAAG,MAAM,CAAC,MAAM,CAAC,wBAA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AAS,EACT,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,GACC;IACpB,MAAM,OAAO,GAAG,SAAS,CAAC;IAC1B,IAAI,aAAa,GAAG,SAAS,CAAC;IAC9B,IAAI,OAAO,GAAG,SAAS,CAAC;IAExB,IAAI,iBAAiB,EAAE;QACrB,aAAa,IAAI,aAAa,CAAC;QAC/B,OAAO,IAAI,aAAa,CAAC;KAC1B;IACD,IAAI,MAAM,GAAG,aAAa,CAAC;IAC3B,IAAI,mBAAmB,EAAE;QACvB,MAAM,IAAI,mBAAmB,CAAC;KAC/B;IAED,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,eAAqC,EACrC,QAAiB,EACjB,SAAkD;;IAElD,OAAO,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,MAAA,eAAe,CAAC,OAAO,mCAAI,SAAS,CAAC,eAAe,CAAC;AACnG,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { AppLayoutPropsWithDefaults } from '../interfaces';\nimport { checkSplitPanelForcedPosition } from '../split-panel/split-panel-utils';\n\ninterface HorizontalLayoutInput {\n navigationOpen: boolean;\n navigationWidth: number;\n placement: AppLayoutPropsWithDefaults['placement'];\n minContentWidth: number;\n activeDrawerSize: number;\n splitPanelOpen: boolean;\n splitPanelPosition: 'side' | 'bottom' | undefined;\n splitPanelSize: number;\n isMobile: boolean;\n activeGlobalDrawersSizes: Record<string, number>;\n}\n\nexport const CONTENT_PADDING = 2 * 24; // space-xl\n\nexport function computeHorizontalLayout({\n navigationOpen,\n navigationWidth,\n placement,\n minContentWidth,\n activeDrawerSize,\n splitPanelOpen,\n splitPanelPosition,\n splitPanelSize,\n isMobile,\n activeGlobalDrawersSizes,\n}: HorizontalLayoutInput) {\n const activeNavigationWidth = navigationOpen ? navigationWidth : 0;\n\n let resizableSpaceAvailable = Math.max(\n 0,\n placement.inlineSize - minContentWidth - CONTENT_PADDING - activeNavigationWidth\n );\n const totalActiveGlobalDrawersSize = Object.values(activeGlobalDrawersSizes).reduce((acc, size) => acc + size, 0);\n\n const splitPanelMaxWidth = resizableSpaceAvailable - activeDrawerSize;\n const splitPanelForcedPosition = checkSplitPanelForcedPosition({ isMobile, splitPanelMaxWidth });\n const resolvedSplitPanelPosition = splitPanelForcedPosition ? 'bottom' : splitPanelPosition ?? 'bottom';\n const sideSplitPanelSize = resolvedSplitPanelPosition === 'side' && splitPanelOpen ? splitPanelSize ?? 0 : 0;\n const maxSplitPanelSize = Math.max(resizableSpaceAvailable - totalActiveGlobalDrawersSize - activeDrawerSize, 0);\n resizableSpaceAvailable -= sideSplitPanelSize;\n const maxDrawerSize = resizableSpaceAvailable - totalActiveGlobalDrawersSize;\n const maxGlobalDrawersSizes: Record<string, number> = Object.keys(activeGlobalDrawersSizes).reduce(\n (acc, drawerId) => {\n return {\n ...acc,\n [drawerId]:\n resizableSpaceAvailable -\n activeDrawerSize -\n totalActiveGlobalDrawersSize +\n activeGlobalDrawersSizes[drawerId],\n };\n },\n {}\n );\n\n return {\n splitPanelPosition: resolvedSplitPanelPosition,\n splitPanelForcedPosition,\n sideSplitPanelSize,\n maxSplitPanelSize,\n maxDrawerSize,\n maxGlobalDrawersSizes,\n totalActiveGlobalDrawersSize,\n resizableSpaceAvailable,\n };\n}\n\ninterface VerticalLayoutInput {\n topOffset: number;\n hasVisibleToolbar: boolean;\n toolbarHeight: number;\n stickyNotifications: boolean;\n notificationsHeight: number;\n}\n\nexport interface VerticalLayoutOutput {\n toolbar: number;\n notifications: number;\n header: number;\n drawers: number;\n}\n\nexport function computeVerticalLayout({\n topOffset,\n hasVisibleToolbar,\n toolbarHeight,\n stickyNotifications,\n notificationsHeight,\n}: VerticalLayoutInput): VerticalLayoutOutput {\n const toolbar = topOffset;\n let notifications = topOffset;\n let drawers = topOffset;\n\n if (hasVisibleToolbar) {\n notifications += toolbarHeight;\n drawers += toolbarHeight;\n }\n let header = notifications;\n if (stickyNotifications) {\n header += notificationsHeight;\n }\n\n return { toolbar, notifications, header, drawers };\n}\n\nexport function getDrawerTopOffset(\n verticalOffsets: VerticalLayoutOutput,\n isMobile: boolean,\n placement: AppLayoutPropsWithDefaults['placement']\n) {\n return isMobile ? verticalOffsets.toolbar : verticalOffsets.drawers ?? placement.insetBlockStart;\n}\n"]}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface BreadcrumbsSlotContextType {
3
+ isInToolbar: boolean;
4
+ }
5
+ export declare const BreadcrumbsSlotContext: React.Context<BreadcrumbsSlotContextType | undefined>;
6
+ export {};
7
+ //# sourceMappingURL=contexts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh-toolbar/contexts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,0BAA0B;IAClC,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,sBAAsB,uDACkF,CAAC"}
@@ -0,0 +1,6 @@
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 { awsuiPluginsInternal } from '../../internal/plugins/api';
5
+ export const BreadcrumbsSlotContext = awsuiPluginsInternal.sharedReactContexts.createContext(React, 'BreadcrumbsSlotContext');
6
+ //# sourceMappingURL=contexts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contexts.js","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh-toolbar/contexts.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAMlE,MAAM,CAAC,MAAM,sBAAsB,GACjC,oBAAoB,CAAC,mBAAmB,CAAC,aAAa,CAA6B,KAAK,EAAE,wBAAwB,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { awsuiPluginsInternal } from '../../internal/plugins/api';\n\ninterface BreadcrumbsSlotContextType {\n isInToolbar: boolean;\n}\n\nexport const BreadcrumbsSlotContext =\n awsuiPluginsInternal.sharedReactContexts.createContext<BreadcrumbsSlotContextType>(React, 'BreadcrumbsSlotContext');\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh-toolbar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAWxE,OAAO,EAAE,cAAc,EAA8B,MAAM,eAAe,CAAC;AAoB3E,QAAA,MAAM,6BAA6B;;;;;;;;;;;;;;;4CAkZlC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh-toolbar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAaxE,OAAO,EAAE,cAAc,EAA8B,MAAM,eAAe,CAAC;AAoB3E,QAAA,MAAM,6BAA6B;;;;;;;;;;;;;;;4CA0blC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}