@cloudscape-design/components-themeable 3.0.195 → 3.0.197

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 (94) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/app-layout/styles.scss +1 -85
  3. package/lib/internal/scss/flashbar/collapsible.scss +13 -5
  4. package/lib/internal/template/app-layout/drawer.d.ts +1 -4
  5. package/lib/internal/template/app-layout/drawer.d.ts.map +1 -1
  6. package/lib/internal/template/app-layout/drawer.js +4 -13
  7. package/lib/internal/template/app-layout/drawer.js.map +1 -1
  8. package/lib/internal/template/app-layout/index.d.ts.map +1 -1
  9. package/lib/internal/template/app-layout/index.js +4 -15
  10. package/lib/internal/template/app-layout/index.js.map +1 -1
  11. package/lib/internal/template/app-layout/mobile-toolbar/index.js +3 -3
  12. package/lib/internal/template/app-layout/mobile-toolbar/index.js.map +1 -1
  13. package/lib/internal/template/app-layout/navigation-panel.d.ts +1 -3
  14. package/lib/internal/template/app-layout/navigation-panel.d.ts.map +1 -1
  15. package/lib/internal/template/app-layout/navigation-panel.js +2 -2
  16. package/lib/internal/template/app-layout/navigation-panel.js.map +1 -1
  17. package/lib/internal/template/app-layout/notifications/index.d.ts +0 -4
  18. package/lib/internal/template/app-layout/notifications/index.d.ts.map +1 -1
  19. package/lib/internal/template/app-layout/notifications/index.js +1 -2
  20. package/lib/internal/template/app-layout/notifications/index.js.map +1 -1
  21. package/lib/internal/template/app-layout/styles.css.js +26 -38
  22. package/lib/internal/template/app-layout/styles.scoped.css +34 -109
  23. package/lib/internal/template/app-layout/styles.selectors.js +26 -38
  24. package/lib/internal/template/app-layout/tools-and-split-panel.d.ts +1 -8
  25. package/lib/internal/template/app-layout/tools-and-split-panel.d.ts.map +1 -1
  26. package/lib/internal/template/app-layout/tools-and-split-panel.js +2 -3
  27. package/lib/internal/template/app-layout/tools-and-split-panel.js.map +1 -1
  28. package/lib/internal/template/flashbar/collapsible-flashbar.d.ts.map +1 -1
  29. package/lib/internal/template/flashbar/collapsible-flashbar.js +5 -7
  30. package/lib/internal/template/flashbar/collapsible-flashbar.js.map +1 -1
  31. package/lib/internal/template/flashbar/internal/analytics.d.ts.map +1 -1
  32. package/lib/internal/template/flashbar/internal/analytics.js +5 -3
  33. package/lib/internal/template/flashbar/internal/analytics.js.map +1 -1
  34. package/lib/internal/template/flashbar/styles.css.js +43 -43
  35. package/lib/internal/template/flashbar/styles.scoped.css +146 -139
  36. package/lib/internal/template/flashbar/styles.selectors.js +43 -43
  37. package/lib/internal/template/internal/base-component/index.d.ts.map +1 -1
  38. package/lib/internal/template/internal/base-component/index.js +3 -11
  39. package/lib/internal/template/internal/base-component/index.js.map +1 -1
  40. package/lib/internal/template/internal/base-component/init-awsui-versions.d.ts +2 -0
  41. package/lib/internal/template/internal/base-component/init-awsui-versions.d.ts.map +1 -0
  42. package/lib/internal/template/internal/base-component/init-awsui-versions.js +15 -0
  43. package/lib/internal/template/internal/base-component/init-awsui-versions.js.map +1 -0
  44. package/lib/internal/template/internal/environment.d.ts +1 -0
  45. package/lib/internal/template/internal/environment.js +2 -1
  46. package/lib/internal/template/internal/hooks/use-base-component/component-metadata.d.ts +3 -0
  47. package/lib/internal/template/internal/hooks/use-base-component/component-metadata.d.ts.map +1 -0
  48. package/lib/internal/template/internal/hooks/use-base-component/component-metadata.js +21 -0
  49. package/lib/internal/template/internal/hooks/use-base-component/component-metadata.js.map +1 -0
  50. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts +0 -1
  51. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts.map +1 -1
  52. package/lib/internal/template/internal/hooks/use-base-component/index.js +3 -28
  53. package/lib/internal/template/internal/hooks/use-base-component/index.js.map +1 -1
  54. package/lib/internal/template/internal/hooks/use-telemetry/index.d.ts.map +1 -1
  55. package/lib/internal/template/internal/hooks/use-telemetry/index.js +4 -15
  56. package/lib/internal/template/internal/hooks/use-telemetry/index.js.map +1 -1
  57. package/lib/internal/template/internal/hooks/use-telemetry/telemetry.d.ts +8 -0
  58. package/lib/internal/template/internal/hooks/use-telemetry/telemetry.d.ts.map +1 -0
  59. package/lib/internal/template/internal/hooks/use-telemetry/telemetry.js +20 -0
  60. package/lib/internal/template/internal/hooks/use-telemetry/telemetry.js.map +1 -0
  61. package/lib/internal/template/internal/metrics/index.d.ts +3 -0
  62. package/lib/internal/template/internal/metrics/index.d.ts.map +1 -0
  63. package/lib/internal/template/internal/metrics/index.js +5 -0
  64. package/lib/internal/template/internal/metrics/index.js.map +1 -0
  65. package/lib/internal/template/internal/metrics/log-clients.d.ts +39 -0
  66. package/lib/internal/template/internal/metrics/log-clients.d.ts.map +1 -0
  67. package/lib/internal/template/internal/metrics/log-clients.js +90 -0
  68. package/lib/internal/template/internal/metrics/log-clients.js.map +1 -0
  69. package/lib/internal/template/internal/metrics/metrics-formatters.d.ts +7 -0
  70. package/lib/internal/template/internal/metrics/metrics-formatters.d.ts.map +1 -0
  71. package/lib/internal/template/internal/metrics/metrics-formatters.js +36 -0
  72. package/lib/internal/template/internal/metrics/metrics-formatters.js.map +1 -0
  73. package/lib/internal/template/internal/{metrics.d.ts → metrics/metrics.d.ts} +11 -18
  74. package/lib/internal/template/internal/metrics/metrics.d.ts.map +1 -0
  75. package/lib/internal/template/internal/metrics/metrics.js +95 -0
  76. package/lib/internal/template/internal/metrics/metrics.js.map +1 -0
  77. package/lib/internal/template/property-filter/index.d.ts.map +1 -1
  78. package/lib/internal/template/property-filter/index.js +1 -1
  79. package/lib/internal/template/property-filter/index.js.map +1 -1
  80. package/lib/internal/template/wizard/internal/analytics.d.ts.map +1 -1
  81. package/lib/internal/template/wizard/internal/analytics.js +5 -3
  82. package/lib/internal/template/wizard/internal/analytics.js.map +1 -1
  83. package/package.json +1 -1
  84. package/lib/internal/template/app-layout/toggle-buttons.d.ts +0 -12
  85. package/lib/internal/template/app-layout/toggle-buttons.d.ts.map +0 -1
  86. package/lib/internal/template/app-layout/toggle-buttons.js +0 -13
  87. package/lib/internal/template/app-layout/toggle-buttons.js.map +0 -1
  88. package/lib/internal/template/internal/hooks/use-previous-frame/index.d.ts +0 -8
  89. package/lib/internal/template/internal/hooks/use-previous-frame/index.d.ts.map +0 -1
  90. package/lib/internal/template/internal/hooks/use-previous-frame/index.js +0 -20
  91. package/lib/internal/template/internal/hooks/use-previous-frame/index.js.map +0 -1
  92. package/lib/internal/template/internal/metrics.d.ts.map +0 -1
  93. package/lib/internal/template/internal/metrics.js +0 -177
  94. package/lib/internal/template/internal/metrics.js.map +0 -1
@@ -4,7 +4,6 @@ import { DesktopDrawerProps } from './drawer';
4
4
  import useContentHeight from './utils/use-content-height';
5
5
  interface NavigationPanelProps {
6
6
  navigationOpen: boolean;
7
- isHidden: DesktopDrawerProps['isHidden'];
8
7
  navigationDrawerWidth: number;
9
8
  navigationWidth: number;
10
9
  headerHeight: DesktopDrawerProps['topOffset'];
@@ -13,11 +12,10 @@ interface NavigationPanelProps {
13
12
  navigation: React.ReactNode;
14
13
  ariaLabels: AppLayoutProps['ariaLabels'];
15
14
  isMobile: boolean;
16
- isMotionEnabled: boolean;
17
15
  onNavigationToggle: DesktopDrawerProps['onToggle'];
18
16
  onClick: DesktopDrawerProps['onClick'];
19
17
  toggleRefs: DesktopDrawerProps['toggleRefs'];
20
18
  }
21
- export declare function NavigationPanel({ ariaLabels, footerHeight, headerHeight, isHidden, isMobile, navigation, navigationDrawerWidth, navigationWidth, navigationOpen, onClick, onNavigationToggle, panelHeightStyle, toggleRefs, }: NavigationPanelProps): JSX.Element;
19
+ export declare function NavigationPanel({ ariaLabels, footerHeight, headerHeight, isMobile, navigation, navigationDrawerWidth, navigationWidth, navigationOpen, onClick, onNavigationToggle, panelHeightStyle, toggleRefs, }: NavigationPanelProps): JSX.Element;
22
20
  export {};
23
21
  //# sourceMappingURL=navigation-panel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-panel.d.ts","sourceRoot":"","sources":["../../../src/app-layout/navigation-panel.tsx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,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAU,MAAM,UAAU,CAAC;AAGtD,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAE1D,UAAU,oBAAoB;IAC5B,cAAc,EAAE,OAAO,CAAC;IAExB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC9C,YAAY,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;IACjD,gBAAgB,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,kBAAkB,CAAC,CAAC;IAE1E,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B,UAAU,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAEzC,QAAQ,EAAE,OAAO,CAAC;IAElB,kBAAkB,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACnD,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAEvC,UAAU,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;CAC9C;AAED,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,OAAO,EACP,kBAAkB,EAClB,gBAAgB,EAChB,UAAU,GACX,EAAE,oBAAoB,eAgCtB"}
@@ -8,12 +8,12 @@ import styles from './styles.css.js';
8
8
  import testutilStyles from './test-classes/styles.css.js';
9
9
  export function NavigationPanel(_a) {
10
10
  var _b;
11
- var ariaLabels = _a.ariaLabels, footerHeight = _a.footerHeight, headerHeight = _a.headerHeight, isHidden = _a.isHidden, isMobile = _a.isMobile, navigation = _a.navigation, navigationDrawerWidth = _a.navigationDrawerWidth, navigationWidth = _a.navigationWidth, navigationOpen = _a.navigationOpen, onClick = _a.onClick, onNavigationToggle = _a.onNavigationToggle, panelHeightStyle = _a.panelHeightStyle, toggleRefs = _a.toggleRefs;
11
+ var ariaLabels = _a.ariaLabels, footerHeight = _a.footerHeight, headerHeight = _a.headerHeight, isMobile = _a.isMobile, navigation = _a.navigation, navigationDrawerWidth = _a.navigationDrawerWidth, navigationWidth = _a.navigationWidth, navigationOpen = _a.navigationOpen, onClick = _a.onClick, onNavigationToggle = _a.onNavigationToggle, panelHeightStyle = _a.panelHeightStyle, toggleRefs = _a.toggleRefs;
12
12
  return (React.createElement("div", { className: styles['navigation-panel'], style: { width: navigationDrawerWidth } },
13
13
  React.createElement("div", { className: clsx(styles['panel-wrapper-outer'], (_b = {},
14
14
  _b[styles.mobile] = isMobile,
15
15
  _b[styles.open] = navigationOpen,
16
16
  _b)), style: __assign({}, (isMobile ? { top: headerHeight, bottom: footerHeight } : panelHeightStyle)) },
17
- React.createElement(Drawer, { type: "navigation", isMobile: isMobile, width: navigationWidth, isOpen: navigationOpen, isHidden: isHidden, onToggle: onNavigationToggle, toggleRefs: toggleRefs, onClick: onClick, contentClassName: clsx(styles.navigation, testutilStyles.navigation), closeClassName: clsx(styles['navigation-close'], testutilStyles['navigation-close']), toggleClassName: clsx(styles['navigation-toggle'], testutilStyles['navigation-toggle']), topOffset: headerHeight, bottomOffset: footerHeight, ariaLabels: ariaLabels }, navigation))));
17
+ React.createElement(Drawer, { type: "navigation", isMobile: isMobile, width: navigationWidth, isOpen: navigationOpen, onToggle: onNavigationToggle, toggleRefs: toggleRefs, onClick: onClick, contentClassName: testutilStyles.navigation, closeClassName: testutilStyles['navigation-close'], toggleClassName: testutilStyles['navigation-toggle'], topOffset: headerHeight, bottomOffset: footerHeight, ariaLabels: ariaLabels }, navigation))));
18
18
  }
19
19
  //# sourceMappingURL=navigation-panel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-panel.js","sourceRoot":"","sources":["../../../src/app-layout/navigation-panel.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MA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,cAAc,CAAC,kBAAkB,CAAC,CAAC,EACpF,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAC,EACvF,SAAS,EAAE,YAAY,EACvB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,IAErB,UAAU,CACJ,CACL,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport { AppLayoutProps } from './interfaces';\nimport { DesktopDrawerProps, Drawer } from './drawer';\nimport styles from './styles.css.js';\nimport testutilStyles from './test-classes/styles.css.js';\nimport useContentHeight from './utils/use-content-height';\n\ninterface NavigationPanelProps {\n navigationOpen: boolean;\n isHidden: DesktopDrawerProps['isHidden'];\n\n navigationDrawerWidth: number;\n navigationWidth: number;\n headerHeight: DesktopDrawerProps['topOffset'];\n footerHeight: DesktopDrawerProps['bottomOffset'];\n panelHeightStyle: ReturnType<typeof useContentHeight>['panelHeightStyle'];\n\n navigation: React.ReactNode;\n\n ariaLabels: AppLayoutProps['ariaLabels'];\n\n isMobile: boolean;\n isMotionEnabled: boolean;\n\n onNavigationToggle: DesktopDrawerProps['onToggle'];\n onClick: DesktopDrawerProps['onClick'];\n\n toggleRefs: DesktopDrawerProps['toggleRefs'];\n}\n\nexport function NavigationPanel({\n ariaLabels,\n footerHeight,\n headerHeight,\n isHidden,\n isMobile,\n navigation,\n navigationDrawerWidth,\n navigationWidth,\n navigationOpen,\n onClick,\n onNavigationToggle,\n panelHeightStyle,\n toggleRefs,\n}: NavigationPanelProps) {\n return (\n <div className={styles['navigation-panel']} style={{ width: navigationDrawerWidth }}>\n <div\n className={clsx(styles['panel-wrapper-outer'], {\n [styles.mobile]: isMobile,\n [styles.open]: navigationOpen,\n })}\n style={{\n ...(isMobile ? { top: headerHeight, bottom: footerHeight } : panelHeightStyle),\n }}\n >\n <Drawer\n type=\"navigation\"\n isMobile={isMobile}\n width={navigationWidth}\n isOpen={navigationOpen}\n isHidden={isHidden}\n onToggle={onNavigationToggle}\n toggleRefs={toggleRefs}\n onClick={onClick}\n contentClassName={clsx(styles.navigation, testutilStyles.navigation)}\n closeClassName={clsx(styles['navigation-close'], testutilStyles['navigation-close'])}\n toggleClassName={clsx(styles['navigation-toggle'], testutilStyles['navigation-toggle'])}\n topOffset={headerHeight}\n bottomOffset={footerHeight}\n ariaLabels={ariaLabels}\n >\n {navigation}\n </Drawer>\n </div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"navigation-panel.js","sourceRoot":"","sources":["../../../src/app-layout/navigation-panel.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAsB,MAAM,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAwB1D,MAAM,UAAU,eAAe,CAAC,EAaT;;QAZrB,UAAU,gBAAA,EACV,YAAY,kBAAA,EACZ,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACR,UAAU,gBAAA,EACV,qBAAqB,2BAAA,EACrB,eAAe,qBAAA,EACf,cAAc,oBAAA,EACd,OAAO,aAAA,EACP,kBAAkB,wBAAA,EAClB,gBAAgB,sBAAA,EAChB,UAAU,gBAAA;IAEV,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE;QACjF,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC;gBAC3C,GAAC,MAAM,CAAC,MAAM,IAAG,QAAQ;gBACzB,GAAC,MAAM,CAAC,IAAI,IAAG,cAAc;oBAC7B,EACF,KAAK,eACA,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC;YAGhF,oBAAC,MAAM,IACL,IAAI,EAAC,YAAY,EACjB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,eAAe,EACtB,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,kBAAkB,EAC5B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,cAAc,CAAC,UAAU,EAC3C,cAAc,EAAE,cAAc,CAAC,kBAAkB,CAAC,EAClD,eAAe,EAAE,cAAc,CAAC,mBAAmB,CAAC,EACpD,SAAS,EAAE,YAAY,EACvB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,IAErB,UAAU,CACJ,CACL,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport { AppLayoutProps } from './interfaces';\nimport { DesktopDrawerProps, Drawer } from './drawer';\nimport styles from './styles.css.js';\nimport testutilStyles from './test-classes/styles.css.js';\nimport useContentHeight from './utils/use-content-height';\n\ninterface NavigationPanelProps {\n navigationOpen: boolean;\n\n navigationDrawerWidth: number;\n navigationWidth: number;\n headerHeight: DesktopDrawerProps['topOffset'];\n footerHeight: DesktopDrawerProps['bottomOffset'];\n panelHeightStyle: ReturnType<typeof useContentHeight>['panelHeightStyle'];\n\n navigation: React.ReactNode;\n\n ariaLabels: AppLayoutProps['ariaLabels'];\n\n isMobile: boolean;\n\n onNavigationToggle: DesktopDrawerProps['onToggle'];\n onClick: DesktopDrawerProps['onClick'];\n\n toggleRefs: DesktopDrawerProps['toggleRefs'];\n}\n\nexport function NavigationPanel({\n ariaLabels,\n footerHeight,\n headerHeight,\n isMobile,\n navigation,\n navigationDrawerWidth,\n navigationWidth,\n navigationOpen,\n onClick,\n onNavigationToggle,\n panelHeightStyle,\n toggleRefs,\n}: NavigationPanelProps) {\n return (\n <div className={styles['navigation-panel']} style={{ width: navigationDrawerWidth }}>\n <div\n className={clsx(styles['panel-wrapper-outer'], {\n [styles.mobile]: isMobile,\n [styles.open]: navigationOpen,\n })}\n style={{\n ...(isMobile ? { top: headerHeight, bottom: footerHeight } : panelHeightStyle),\n }}\n >\n <Drawer\n type=\"navigation\"\n isMobile={isMobile}\n width={navigationWidth}\n isOpen={navigationOpen}\n onToggle={onNavigationToggle}\n toggleRefs={toggleRefs}\n onClick={onClick}\n contentClassName={testutilStyles.navigation}\n closeClassName={testutilStyles['navigation-close']}\n toggleClassName={testutilStyles['navigation-toggle']}\n topOffset={headerHeight}\n bottomOffset={footerHeight}\n ariaLabels={ariaLabels}\n >\n {navigation}\n </Drawer>\n </div>\n </div>\n );\n}\n"]}
@@ -5,13 +5,9 @@ interface NotificationsProps {
5
5
  children?: React.ReactNode;
6
6
  labels: AppLayoutProps.Labels | undefined;
7
7
  topOffset: number | undefined;
8
- isMobile: boolean;
9
8
  }
10
9
  interface NotificationWrapperProps extends NotificationsProps {
11
10
  sticky: boolean | undefined;
12
- navigationPadding: boolean;
13
- toolsPadding: boolean;
14
- contentWidthStyles?: React.CSSProperties;
15
11
  }
16
12
  export declare const Notifications: React.ForwardRefExoticComponent<NotificationWrapperProps & React.RefAttributes<HTMLDivElement>>;
17
13
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/notifications/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,UAAU,kBAAkB;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,EAAE,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC;IAC1C,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;CACnB;AACD,UAAU,wBAAyB,SAAQ,kBAAkB;IAC3D,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC1C;AAED,eAAO,MAAM,aAAa,iGAczB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/notifications/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,UAAU,kBAAkB;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,EAAE,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC;IAC1C,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AACD,UAAU,wBAAyB,SAAQ,kBAAkB;IAC3D,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7B;AAED,eAAO,MAAM,aAAa,iGAczB,CAAC"}
@@ -2,12 +2,11 @@ import { __rest } from "tslib";
2
2
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  import React from 'react';
5
- import clsx from 'clsx';
6
5
  import styles from './styles.css.js';
7
6
  export var Notifications = React.forwardRef(function (_a, ref) {
8
7
  var _b, _c;
9
8
  var sticky = _a.sticky, props = __rest(_a, ["sticky"]);
10
9
  return sticky ? (React.createElement("div", { ref: ref, className: styles['notifications-sticky'], style: { top: props.topOffset } },
11
- React.createElement("div", { role: "region", className: clsx(props.testUtilsClassName), "aria-label": (_b = props.labels) === null || _b === void 0 ? void 0 : _b.notifications }, props.children))) : (React.createElement("div", { role: "region", ref: ref, className: clsx(props.testUtilsClassName), "aria-label": (_c = props.labels) === null || _c === void 0 ? void 0 : _c.notifications }, props.children));
10
+ React.createElement("div", { role: "region", className: props.testUtilsClassName, "aria-label": (_b = props.labels) === null || _b === void 0 ? void 0 : _b.notifications }, props.children))) : (React.createElement("div", { role: "region", ref: ref, className: props.testUtilsClassName, "aria-label": (_c = props.labels) === null || _c === void 0 ? void 0 : _c.notifications }, props.children));
12
11
  });
13
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app-layout/notifications/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAiBrC,MAAM,CAAC,IAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAC3C,UAAC,EAA8C,EAAE,GAA8B;;IAA5E,IAAA,MAAM,YAAA,EAAK,KAAK,cAAlB,UAAoB,CAAF;IACjB,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,6BAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,SAAS,EAAE;QACvF,6BAAK,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,gBAAc,MAAA,KAAK,CAAC,MAAM,0CAAE,aAAa,IAClG,KAAK,CAAC,QAAQ,CACX,CACF,CACP,CAAC,CAAC,CAAC,CACF,6BAAK,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,gBAAc,MAAA,KAAK,CAAC,MAAM,0CAAE,aAAa,IAC5G,KAAK,CAAC,QAAQ,CACX,CACP,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\nimport styles from './styles.css.js';\nimport { AppLayoutProps } from '../interfaces';\n\ninterface NotificationsProps {\n testUtilsClassName: string;\n children?: React.ReactNode;\n labels: AppLayoutProps.Labels | undefined;\n topOffset: number | undefined;\n isMobile: boolean;\n}\ninterface NotificationWrapperProps extends NotificationsProps {\n sticky: boolean | undefined;\n navigationPadding: boolean;\n toolsPadding: boolean;\n contentWidthStyles?: React.CSSProperties;\n}\n\nexport const Notifications = React.forwardRef(\n ({ sticky, ...props }: NotificationWrapperProps, ref: React.Ref<HTMLDivElement>) => {\n return sticky ? (\n <div ref={ref} className={styles['notifications-sticky']} style={{ top: props.topOffset }}>\n <div role=\"region\" className={clsx(props.testUtilsClassName)} aria-label={props.labels?.notifications}>\n {props.children}\n </div>\n </div>\n ) : (\n <div role=\"region\" ref={ref} className={clsx(props.testUtilsClassName)} aria-label={props.labels?.notifications}>\n {props.children}\n </div>\n );\n }\n);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app-layout/notifications/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAarC,MAAM,CAAC,IAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAC3C,UAAC,EAA8C,EAAE,GAA8B;;IAA5E,IAAA,MAAM,YAAA,EAAK,KAAK,cAAlB,UAAoB,CAAF;IACjB,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,6BAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,SAAS,EAAE;QACvF,6BAAK,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAE,KAAK,CAAC,kBAAkB,gBAAc,MAAA,KAAK,CAAC,MAAM,0CAAE,aAAa,IAC5F,KAAK,CAAC,QAAQ,CACX,CACF,CACP,CAAC,CAAC,CAAC,CACF,6BAAK,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,kBAAkB,gBAAc,MAAA,KAAK,CAAC,MAAM,0CAAE,aAAa,IACtG,KAAK,CAAC,QAAQ,CACX,CACP,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport styles from './styles.css.js';\nimport { AppLayoutProps } from '../interfaces';\n\ninterface NotificationsProps {\n testUtilsClassName: string;\n children?: React.ReactNode;\n labels: AppLayoutProps.Labels | undefined;\n topOffset: number | undefined;\n}\ninterface NotificationWrapperProps extends NotificationsProps {\n sticky: boolean | undefined;\n}\n\nexport const Notifications = React.forwardRef(\n ({ sticky, ...props }: NotificationWrapperProps, ref: React.Ref<HTMLDivElement>) => {\n return sticky ? (\n <div ref={ref} className={styles['notifications-sticky']} style={{ top: props.topOffset }}>\n <div role=\"region\" className={props.testUtilsClassName} aria-label={props.labels?.notifications}>\n {props.children}\n </div>\n </div>\n ) : (\n <div role=\"region\" ref={ref} className={props.testUtilsClassName} aria-label={props.labels?.notifications}>\n {props.children}\n </div>\n );\n }\n);\n"]}
@@ -1,43 +1,31 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_lm6vo_xtmft_97",
5
- "layout-wrapper": "awsui_layout-wrapper_lm6vo_xtmft_98",
6
- "root-no-scroll": "awsui_root-no-scroll_lm6vo_xtmft_104",
7
- "layout": "awsui_layout_lm6vo_xtmft_98",
8
- "layout-no-scroll": "awsui_layout-no-scroll_lm6vo_xtmft_115",
9
- "layout-main": "awsui_layout-main_lm6vo_xtmft_119",
10
- "layout-main-scrollable": "awsui_layout-main-scrollable_lm6vo_xtmft_125",
11
- "unfocusable": "awsui_unfocusable_lm6vo_xtmft_130",
12
- "navigation-panel": "awsui_navigation-panel_lm6vo_xtmft_134",
13
- "drawer": "awsui_drawer_lm6vo_xtmft_138",
14
- "drawer-mobile": "awsui_drawer-mobile_lm6vo_xtmft_144",
15
- "drawer-closed": "awsui_drawer-closed_lm6vo_xtmft_147",
16
- "opaque-background": "awsui_opaque-background_lm6vo_xtmft_154",
17
- "drawer-content": "awsui_drawer-content_lm6vo_xtmft_158",
18
- "toggle": "awsui_toggle_lm6vo_xtmft_183",
19
- "visual-refresh-toggle": "awsui_visual-refresh-toggle_lm6vo_xtmft_188",
20
- "visual-refresh-toggle-type-tools": "awsui_visual-refresh-toggle-type-tools_lm6vo_xtmft_192",
21
- "visual-refresh-toggle-type-navigation": "awsui_visual-refresh-toggle-type-navigation_lm6vo_xtmft_195",
22
- "button-toggles-container": "awsui_button-toggles-container_lm6vo_xtmft_205",
23
- "button-toggles-container-is-hidden": "awsui_button-toggles-container-is-hidden_lm6vo_xtmft_210",
24
- "breadcrumbs-desktop": "awsui_breadcrumbs-desktop_lm6vo_xtmft_224",
25
- "content-header-wrapper": "awsui_content-header-wrapper_lm6vo_xtmft_229",
26
- "content-wrapper": "awsui_content-wrapper_lm6vo_xtmft_233",
27
- "content-overlapped": "awsui_content-overlapped_lm6vo_xtmft_237",
28
- "content-extra-top-padding": "awsui_content-extra-top-padding_lm6vo_xtmft_241",
29
- "navigation-toggle": "awsui_navigation-toggle_lm6vo_xtmft_246",
30
- "tools-toggle": "awsui_tools-toggle_lm6vo_xtmft_251",
31
- "navigation": "awsui_navigation_lm6vo_xtmft_134",
32
- "navigation-close": "awsui_navigation-close_lm6vo_xtmft_263",
33
- "tools": "awsui_tools_lm6vo_xtmft_251",
34
- "tools-close": "awsui_tools-close_lm6vo_xtmft_275",
35
- "notifications": "awsui_notifications_lm6vo_xtmft_279",
36
- "breadcrumbs": "awsui_breadcrumbs_lm6vo_xtmft_224",
37
- "content": "awsui_content_lm6vo_xtmft_229",
38
- "panel-wrapper-outer": "awsui_panel-wrapper-outer_lm6vo_xtmft_291",
39
- "panel-wrapper-inner": "awsui_panel-wrapper-inner_lm6vo_xtmft_292",
40
- "mobile": "awsui_mobile_lm6vo_xtmft_301",
41
- "open": "awsui_open_lm6vo_xtmft_307"
4
+ "root": "awsui_root_lm6vo_1slev_97",
5
+ "layout-wrapper": "awsui_layout-wrapper_lm6vo_1slev_98",
6
+ "root-no-scroll": "awsui_root-no-scroll_lm6vo_1slev_104",
7
+ "layout": "awsui_layout_lm6vo_1slev_98",
8
+ "layout-no-scroll": "awsui_layout-no-scroll_lm6vo_1slev_115",
9
+ "layout-main": "awsui_layout-main_lm6vo_1slev_119",
10
+ "layout-main-scrollable": "awsui_layout-main-scrollable_lm6vo_1slev_125",
11
+ "unfocusable": "awsui_unfocusable_lm6vo_1slev_130",
12
+ "navigation-panel": "awsui_navigation-panel_lm6vo_1slev_134",
13
+ "drawer": "awsui_drawer_lm6vo_1slev_138",
14
+ "drawer-mobile": "awsui_drawer-mobile_lm6vo_1slev_144",
15
+ "drawer-closed": "awsui_drawer-closed_lm6vo_1slev_147",
16
+ "drawer-content": "awsui_drawer-content_lm6vo_1slev_155",
17
+ "toggle": "awsui_toggle_lm6vo_1slev_177",
18
+ "visual-refresh-toggle": "awsui_visual-refresh-toggle_lm6vo_1slev_182",
19
+ "visual-refresh-toggle-type-tools": "awsui_visual-refresh-toggle-type-tools_lm6vo_1slev_186",
20
+ "visual-refresh-toggle-type-navigation": "awsui_visual-refresh-toggle-type-navigation_lm6vo_1slev_189",
21
+ "breadcrumbs-desktop": "awsui_breadcrumbs-desktop_lm6vo_1slev_199",
22
+ "content-header-wrapper": "awsui_content-header-wrapper_lm6vo_1slev_204",
23
+ "content-wrapper": "awsui_content-wrapper_lm6vo_1slev_208",
24
+ "content-overlapped": "awsui_content-overlapped_lm6vo_1slev_212",
25
+ "content-extra-top-padding": "awsui_content-extra-top-padding_lm6vo_1slev_216",
26
+ "panel-wrapper-outer": "awsui_panel-wrapper-outer_lm6vo_1slev_220",
27
+ "mobile": "awsui_mobile_lm6vo_1slev_226",
28
+ "open": "awsui_open_lm6vo_1slev_232",
29
+ "panel-wrapper-inner": "awsui_panel-wrapper-inner_lm6vo_1slev_238"
42
30
  };
43
31
 
@@ -94,222 +94,147 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
94
94
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
95
95
  SPDX-License-Identifier: Apache-2.0
96
96
  */
97
- .awsui_root_lm6vo_xtmft_97:not(#\9),
98
- .awsui_layout-wrapper_lm6vo_xtmft_98:not(#\9) {
97
+ .awsui_root_lm6vo_1slev_97:not(#\9),
98
+ .awsui_layout-wrapper_lm6vo_1slev_98:not(#\9) {
99
99
  display: flex;
100
100
  flex-direction: column;
101
101
  position: relative;
102
102
  }
103
103
 
104
- .awsui_root-no-scroll_lm6vo_xtmft_104:not(#\9) {
104
+ .awsui_root-no-scroll_lm6vo_1slev_104:not(#\9) {
105
105
  position: relative;
106
106
  z-index: 1;
107
107
  }
108
108
 
109
- .awsui_layout_lm6vo_xtmft_98:not(#\9) {
109
+ .awsui_layout_lm6vo_1slev_98:not(#\9) {
110
110
  flex: 1 1 auto;
111
111
  display: flex;
112
112
  align-items: stretch;
113
113
  background-color: var(--color-background-layout-main-q0tbxx, #f2f3f3);
114
114
  }
115
- .awsui_layout-no-scroll_lm6vo_xtmft_115:not(#\9) {
115
+ .awsui_layout-no-scroll_lm6vo_1slev_115:not(#\9) {
116
116
  overflow: hidden;
117
117
  }
118
118
 
119
- .awsui_layout-main_lm6vo_xtmft_119:not(#\9) {
119
+ .awsui_layout-main_lm6vo_1slev_119:not(#\9) {
120
120
  flex: 1;
121
121
  min-width: 0;
122
122
  background-color: var(--color-background-layout-main-q0tbxx, #f2f3f3);
123
123
  position: relative;
124
124
  }
125
- .awsui_layout-main-scrollable_lm6vo_xtmft_125:not(#\9) {
125
+ .awsui_layout-main-scrollable_lm6vo_1slev_125:not(#\9) {
126
126
  overflow: auto;
127
127
  }
128
128
 
129
129
  /* stylelint-disable-next-line selector-combinator-disallowed-list, selector-max-universal */
130
- .awsui_unfocusable_lm6vo_xtmft_130 *:not(#\9) {
130
+ .awsui_unfocusable_lm6vo_1slev_130 *:not(#\9) {
131
131
  visibility: hidden;
132
132
  }
133
133
 
134
- .awsui_navigation-panel_lm6vo_xtmft_134:not(#\9) {
134
+ .awsui_navigation-panel_lm6vo_1slev_134:not(#\9) {
135
135
  overflow-anchor: none;
136
136
  }
137
137
 
138
- .awsui_drawer_lm6vo_xtmft_138:not(#\9) {
138
+ .awsui_drawer_lm6vo_1slev_138:not(#\9) {
139
139
  flex-shrink: 0;
140
140
  position: relative;
141
141
  word-wrap: break-word;
142
142
  box-shadow: var(--shadow-panel-v9vx7i, 0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15));
143
143
  }
144
- .awsui_drawer_lm6vo_xtmft_138:not(#\9):not(.awsui_drawer-mobile_lm6vo_xtmft_144) {
144
+ .awsui_drawer_lm6vo_1slev_138:not(#\9):not(.awsui_drawer-mobile_lm6vo_1slev_144) {
145
145
  z-index: 850;
146
146
  }
147
- .awsui_drawer-closed_lm6vo_xtmft_147:not(#\9) {
147
+ .awsui_drawer-closed_lm6vo_1slev_147:not(#\9) {
148
148
  min-width: 40px;
149
149
  cursor: pointer;
150
150
  }
151
- .awsui_drawer-closed_lm6vo_xtmft_147.awsui_drawer-mobile_lm6vo_xtmft_144:not(#\9) {
151
+ .awsui_drawer-closed_lm6vo_1slev_147.awsui_drawer-mobile_lm6vo_1slev_144:not(#\9) {
152
152
  display: none;
153
153
  }
154
- .awsui_drawer_lm6vo_xtmft_138.awsui_opaque-background_lm6vo_xtmft_154:not(#\9) {
155
- background: var(--color-background-layout-panel-content-r9pdjh, #ffffff);
156
- }
157
154
 
158
- .awsui_drawer-content_lm6vo_xtmft_158:not(#\9) {
155
+ .awsui_drawer-content_lm6vo_1slev_155:not(#\9) {
159
156
  position: fixed;
160
157
  overflow: auto;
161
158
  background-color: var(--color-background-layout-panel-content-r9pdjh, #ffffff);
162
159
  }
163
- .awsui_opaque-background_lm6vo_xtmft_154 > .awsui_drawer-content_lm6vo_xtmft_158:not(#\9) {
164
- border-right: var(--border-divider-section-width-5a4cv1, 1px) solid var(--color-border-divider-panel-side-hxw8vd, transparent);
165
- }
166
- .awsui_drawer-mobile_lm6vo_xtmft_144 > .awsui_drawer-content_lm6vo_xtmft_158:not(#\9) {
160
+ .awsui_drawer-mobile_lm6vo_1slev_144 > .awsui_drawer-content_lm6vo_1slev_155:not(#\9) {
167
161
  z-index: 1001;
168
162
  top: 0;
169
163
  bottom: 0;
170
164
  left: 0;
171
165
  right: 0;
172
166
  }
173
- .awsui_drawer-closed_lm6vo_xtmft_147 > .awsui_drawer-content_lm6vo_xtmft_158:not(#\9) {
167
+ .awsui_drawer-closed_lm6vo_1slev_147 > .awsui_drawer-content_lm6vo_1slev_155:not(#\9) {
174
168
  width: 40px;
175
169
  }
176
- .awsui_drawer-closed_lm6vo_xtmft_147 > .awsui_drawer-content_lm6vo_xtmft_158:not(#\9):hover {
170
+ .awsui_drawer-closed_lm6vo_1slev_147 > .awsui_drawer-content_lm6vo_1slev_155:not(#\9):hover {
177
171
  background: var(--color-background-layout-panel-hover-thdv3z, #eaeded);
178
172
  }
179
- .awsui_drawer-content_lm6vo_xtmft_158 > [aria-hidden=true]:not(#\9) {
173
+ .awsui_drawer-content_lm6vo_1slev_155 > [aria-hidden=true]:not(#\9) {
180
174
  display: none;
181
175
  }
182
176
 
183
- .awsui_toggle_lm6vo_xtmft_183:not(#\9) {
177
+ .awsui_toggle_lm6vo_1slev_177:not(#\9) {
184
178
  box-sizing: border-box;
185
179
  padding: var(--space-xxs-ynfts5, 4px) 7px;
186
180
  }
187
181
 
188
- .awsui_visual-refresh-toggle_lm6vo_xtmft_188:not(#\9) {
182
+ .awsui_visual-refresh-toggle_lm6vo_1slev_182:not(#\9) {
189
183
  position: fixed;
190
184
  padding: var(--space-scaled-s-cu1hzn, 12px) var(--space-layout-toggle-padding-axl9jr, 20px);
191
185
  }
192
- .awsui_visual-refresh-toggle-type-tools_lm6vo_xtmft_192:not(#\9) {
186
+ .awsui_visual-refresh-toggle-type-tools_lm6vo_1slev_186:not(#\9) {
193
187
  right: 0;
194
188
  }
195
- .awsui_visual-refresh-toggle-type-navigation_lm6vo_xtmft_195:not(#\9) {
189
+ .awsui_visual-refresh-toggle-type-navigation_lm6vo_1slev_189:not(#\9) {
196
190
  left: 0;
197
191
  }
198
- .awsui_visual-refresh-toggle_lm6vo_xtmft_188[aria-hidden=true]:not(#\9) {
192
+ .awsui_visual-refresh-toggle_lm6vo_1slev_182[aria-hidden=true]:not(#\9) {
199
193
  visibility: hidden;
200
194
  }
201
- .awsui_visual-refresh-toggle_lm6vo_xtmft_188[aria-hidden=false]:not(#\9) {
195
+ .awsui_visual-refresh-toggle_lm6vo_1slev_182[aria-hidden=false]:not(#\9) {
202
196
  visibility: visible;
203
197
  }
204
198
 
205
- .awsui_button-toggles-container_lm6vo_xtmft_205:not(#\9) {
206
- min-width: calc(var(--space-layout-toggle-diameter-hzvqtj, 40px) + 2 * var(--space-layout-toggle-padding-axl9jr, 20px));
207
- position: relative;
208
- z-index: 851;
209
- }
210
- .awsui_button-toggles-container-is-hidden_lm6vo_xtmft_210:not(#\9) {
211
- min-width: 0;
212
- }
213
- .awsui_button-toggles-container_lm6vo_xtmft_205.awsui_opaque-background_lm6vo_xtmft_154:not(#\9)::before {
214
- content: "";
215
- position: absolute;
216
- top: 0;
217
- bottom: 0;
218
- right: 0;
219
- width: calc(var(--space-layout-toggle-diameter-hzvqtj, 40px) + 2 * var(--space-layout-toggle-padding-axl9jr, 20px));
220
- background: var(--color-background-layout-panel-content-r9pdjh, #ffffff);
221
- border-left: var(--border-divider-section-width-5a4cv1, 1px) solid var(--color-border-divider-panel-side-hxw8vd, transparent);
222
- }
223
-
224
- .awsui_breadcrumbs-desktop_lm6vo_xtmft_224:not(#\9) {
199
+ .awsui_breadcrumbs-desktop_lm6vo_1slev_199:not(#\9) {
225
200
  padding-top: var(--space-scaled-m-pv0fmt, 16px);
226
201
  padding-bottom: var(--space-scaled-s-cu1hzn, 12px);
227
202
  }
228
203
 
229
- .awsui_content-header-wrapper_lm6vo_xtmft_229:not(#\9) {
204
+ .awsui_content-header-wrapper_lm6vo_1slev_204:not(#\9) {
230
205
  padding-bottom: var(--space-content-header-padding-bottom-m7tdoi, 16px);
231
206
  }
232
207
 
233
- .awsui_content-wrapper_lm6vo_xtmft_233:not(#\9) {
208
+ .awsui_content-wrapper_lm6vo_1slev_208:not(#\9) {
234
209
  padding-bottom: var(--space-layout-content-bottom-ebez2l, 20px);
235
210
  }
236
211
 
237
- .awsui_content-overlapped_lm6vo_xtmft_237:not(#\9) {
212
+ .awsui_content-overlapped_lm6vo_1slev_212:not(#\9) {
238
213
  margin-top: calc(-1 * var(--space-dark-header-overlap-distance-ync2s3, 0px));
239
214
  }
240
215
 
241
- .awsui_content-extra-top-padding_lm6vo_xtmft_241:not(#\9) {
216
+ .awsui_content-extra-top-padding_lm6vo_1slev_216:not(#\9) {
242
217
  padding-top: var(--space-scaled-m-pv0fmt, 16px);
243
218
  }
244
219
 
245
- /* stylelint-disable-next-line selector-max-universal */
246
- .awsui_navigation-toggle_lm6vo_xtmft_246 > *:not(#\9) {
247
- pointer-events: none;
248
- }
249
-
250
- /* stylelint-disable-next-line selector-max-universal */
251
- .awsui_tools-toggle_lm6vo_xtmft_251 > *:not(#\9) {
252
- pointer-events: none;
253
- }
254
-
255
- .awsui_navigation_lm6vo_xtmft_134:not(#\9) {
256
- /* used in test-utils */
257
- }
258
-
259
- .awsui_navigation-toggle_lm6vo_xtmft_246:not(#\9) {
260
- /* used in test-utils */
261
- }
262
-
263
- .awsui_navigation-close_lm6vo_xtmft_263:not(#\9) {
264
- /* used in test-utils */
265
- }
266
-
267
- .awsui_tools_lm6vo_xtmft_251:not(#\9) {
268
- /* used in test-utils */
269
- }
270
-
271
- .awsui_tools-toggle_lm6vo_xtmft_251:not(#\9) {
272
- /* used in test-utils */
273
- }
274
-
275
- .awsui_tools-close_lm6vo_xtmft_275:not(#\9) {
276
- /* used in test-utils */
277
- }
278
-
279
- .awsui_notifications_lm6vo_xtmft_279:not(#\9) {
280
- /* used in test-utils */
281
- }
282
-
283
- .awsui_breadcrumbs_lm6vo_xtmft_224:not(#\9) {
284
- /* used in test-utils */
285
- }
286
-
287
- .awsui_content_lm6vo_xtmft_229:not(#\9) {
288
- /* used in test-utils */
289
- }
290
-
291
- .awsui_panel-wrapper-outer_lm6vo_xtmft_291:not(#\9),
292
- .awsui_panel-wrapper-inner_lm6vo_xtmft_292:not(#\9) {
293
- z-index: 850;
294
- }
295
-
296
- .awsui_panel-wrapper-outer_lm6vo_xtmft_291:not(#\9) {
220
+ .awsui_panel-wrapper-outer_lm6vo_1slev_220:not(#\9) {
297
221
  position: fixed;
298
222
  height: 100%;
223
+ z-index: 850;
299
224
  display: flex;
300
225
  }
301
- .awsui_panel-wrapper-outer_lm6vo_xtmft_291.awsui_mobile_lm6vo_xtmft_301:not(#\9) {
226
+ .awsui_panel-wrapper-outer_lm6vo_1slev_220.awsui_mobile_lm6vo_1slev_226:not(#\9) {
302
227
  left: 0;
303
228
  right: 0;
304
229
  z-index: -1;
305
230
  pointer-events: none;
306
231
  }
307
- .awsui_panel-wrapper-outer_lm6vo_xtmft_291.awsui_mobile_lm6vo_xtmft_301.awsui_open_lm6vo_xtmft_307:not(#\9) {
232
+ .awsui_panel-wrapper-outer_lm6vo_1slev_220.awsui_mobile_lm6vo_1slev_226.awsui_open_lm6vo_1slev_232:not(#\9) {
308
233
  z-index: 1001;
309
234
  width: 100vw;
310
235
  pointer-events: auto;
311
236
  }
312
237
 
313
- .awsui_panel-wrapper-inner_lm6vo_xtmft_292:not(#\9) {
238
+ .awsui_panel-wrapper-inner_lm6vo_1slev_238:not(#\9) {
314
239
  background: var(--color-background-layout-panel-content-r9pdjh, #ffffff);
315
240
  }
@@ -2,43 +2,31 @@
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_lm6vo_xtmft_97",
6
- "layout-wrapper": "awsui_layout-wrapper_lm6vo_xtmft_98",
7
- "root-no-scroll": "awsui_root-no-scroll_lm6vo_xtmft_104",
8
- "layout": "awsui_layout_lm6vo_xtmft_98",
9
- "layout-no-scroll": "awsui_layout-no-scroll_lm6vo_xtmft_115",
10
- "layout-main": "awsui_layout-main_lm6vo_xtmft_119",
11
- "layout-main-scrollable": "awsui_layout-main-scrollable_lm6vo_xtmft_125",
12
- "unfocusable": "awsui_unfocusable_lm6vo_xtmft_130",
13
- "navigation-panel": "awsui_navigation-panel_lm6vo_xtmft_134",
14
- "drawer": "awsui_drawer_lm6vo_xtmft_138",
15
- "drawer-mobile": "awsui_drawer-mobile_lm6vo_xtmft_144",
16
- "drawer-closed": "awsui_drawer-closed_lm6vo_xtmft_147",
17
- "opaque-background": "awsui_opaque-background_lm6vo_xtmft_154",
18
- "drawer-content": "awsui_drawer-content_lm6vo_xtmft_158",
19
- "toggle": "awsui_toggle_lm6vo_xtmft_183",
20
- "visual-refresh-toggle": "awsui_visual-refresh-toggle_lm6vo_xtmft_188",
21
- "visual-refresh-toggle-type-tools": "awsui_visual-refresh-toggle-type-tools_lm6vo_xtmft_192",
22
- "visual-refresh-toggle-type-navigation": "awsui_visual-refresh-toggle-type-navigation_lm6vo_xtmft_195",
23
- "button-toggles-container": "awsui_button-toggles-container_lm6vo_xtmft_205",
24
- "button-toggles-container-is-hidden": "awsui_button-toggles-container-is-hidden_lm6vo_xtmft_210",
25
- "breadcrumbs-desktop": "awsui_breadcrumbs-desktop_lm6vo_xtmft_224",
26
- "content-header-wrapper": "awsui_content-header-wrapper_lm6vo_xtmft_229",
27
- "content-wrapper": "awsui_content-wrapper_lm6vo_xtmft_233",
28
- "content-overlapped": "awsui_content-overlapped_lm6vo_xtmft_237",
29
- "content-extra-top-padding": "awsui_content-extra-top-padding_lm6vo_xtmft_241",
30
- "navigation-toggle": "awsui_navigation-toggle_lm6vo_xtmft_246",
31
- "tools-toggle": "awsui_tools-toggle_lm6vo_xtmft_251",
32
- "navigation": "awsui_navigation_lm6vo_xtmft_134",
33
- "navigation-close": "awsui_navigation-close_lm6vo_xtmft_263",
34
- "tools": "awsui_tools_lm6vo_xtmft_251",
35
- "tools-close": "awsui_tools-close_lm6vo_xtmft_275",
36
- "notifications": "awsui_notifications_lm6vo_xtmft_279",
37
- "breadcrumbs": "awsui_breadcrumbs_lm6vo_xtmft_224",
38
- "content": "awsui_content_lm6vo_xtmft_229",
39
- "panel-wrapper-outer": "awsui_panel-wrapper-outer_lm6vo_xtmft_291",
40
- "panel-wrapper-inner": "awsui_panel-wrapper-inner_lm6vo_xtmft_292",
41
- "mobile": "awsui_mobile_lm6vo_xtmft_301",
42
- "open": "awsui_open_lm6vo_xtmft_307"
5
+ "root": "awsui_root_lm6vo_1slev_97",
6
+ "layout-wrapper": "awsui_layout-wrapper_lm6vo_1slev_98",
7
+ "root-no-scroll": "awsui_root-no-scroll_lm6vo_1slev_104",
8
+ "layout": "awsui_layout_lm6vo_1slev_98",
9
+ "layout-no-scroll": "awsui_layout-no-scroll_lm6vo_1slev_115",
10
+ "layout-main": "awsui_layout-main_lm6vo_1slev_119",
11
+ "layout-main-scrollable": "awsui_layout-main-scrollable_lm6vo_1slev_125",
12
+ "unfocusable": "awsui_unfocusable_lm6vo_1slev_130",
13
+ "navigation-panel": "awsui_navigation-panel_lm6vo_1slev_134",
14
+ "drawer": "awsui_drawer_lm6vo_1slev_138",
15
+ "drawer-mobile": "awsui_drawer-mobile_lm6vo_1slev_144",
16
+ "drawer-closed": "awsui_drawer-closed_lm6vo_1slev_147",
17
+ "drawer-content": "awsui_drawer-content_lm6vo_1slev_155",
18
+ "toggle": "awsui_toggle_lm6vo_1slev_177",
19
+ "visual-refresh-toggle": "awsui_visual-refresh-toggle_lm6vo_1slev_182",
20
+ "visual-refresh-toggle-type-tools": "awsui_visual-refresh-toggle-type-tools_lm6vo_1slev_186",
21
+ "visual-refresh-toggle-type-navigation": "awsui_visual-refresh-toggle-type-navigation_lm6vo_1slev_189",
22
+ "breadcrumbs-desktop": "awsui_breadcrumbs-desktop_lm6vo_1slev_199",
23
+ "content-header-wrapper": "awsui_content-header-wrapper_lm6vo_1slev_204",
24
+ "content-wrapper": "awsui_content-wrapper_lm6vo_1slev_208",
25
+ "content-overlapped": "awsui_content-overlapped_lm6vo_1slev_212",
26
+ "content-extra-top-padding": "awsui_content-extra-top-padding_lm6vo_1slev_216",
27
+ "panel-wrapper-outer": "awsui_panel-wrapper-outer_lm6vo_1slev_220",
28
+ "mobile": "awsui_mobile_lm6vo_1slev_226",
29
+ "open": "awsui_open_lm6vo_1slev_232",
30
+ "panel-wrapper-inner": "awsui_panel-wrapper-inner_lm6vo_1slev_238"
43
31
  };
44
32
 
@@ -5,26 +5,19 @@ import useContentHeight from './utils/use-content-height';
5
5
  interface ToolsAndSplitPanelProps {
6
6
  toolsHide: boolean;
7
7
  toolsOpen: boolean;
8
- isHidden: DesktopDrawerProps['isHidden'];
9
- splitPanelOpen: boolean;
10
8
  drawerWidth: number;
11
9
  toolsWidth: number;
12
- splitPanelReportedSize: number;
13
- closedDrawerWidth: number;
14
10
  headerHeight: DesktopDrawerProps['topOffset'];
15
11
  footerHeight: DesktopDrawerProps['bottomOffset'];
16
12
  panelHeightStyle: ReturnType<typeof useContentHeight>['panelHeightStyle'];
17
- contentHeightStyle: ReturnType<typeof useContentHeight>['contentHeightStyle'];
18
13
  tools: React.ReactNode;
19
14
  splitPanel: React.ReactNode;
20
15
  ariaLabels: AppLayoutProps['ariaLabels'];
21
- disableContentPaddings: AppLayoutProps['disableContentPaddings'];
22
16
  isMobile: boolean;
23
- isMotionEnabled: boolean;
24
17
  onToolsToggle: DesktopDrawerProps['onToggle'];
25
18
  toggleRefs: DesktopDrawerProps['toggleRefs'];
26
19
  onLoseToolsFocus: (event: React.FocusEvent) => void;
27
20
  }
28
- export declare function ToolsAndSplitPanel({ ariaLabels, drawerWidth, footerHeight, headerHeight, isHidden, isMobile, onToolsToggle, panelHeightStyle, splitPanel, toggleRefs, onLoseToolsFocus, tools, toolsHide, toolsOpen, toolsWidth, splitPanelOpen, }: ToolsAndSplitPanelProps): JSX.Element;
21
+ export declare function ToolsAndSplitPanel({ ariaLabels, drawerWidth, footerHeight, headerHeight, isMobile, onToolsToggle, panelHeightStyle, splitPanel, toggleRefs, onLoseToolsFocus, tools, toolsHide, toolsOpen, toolsWidth, }: ToolsAndSplitPanelProps): JSX.Element;
29
22
  export {};
30
23
  //# sourceMappingURL=tools-and-split-panel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tools-and-split-panel.d.ts","sourceRoot":"","sources":["../../../src/app-layout/tools-and-split-panel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAU,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAI1D,UAAU,uBAAuB;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAEzC,cAAc,EAAE,OAAO,CAAC;IAExB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,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U,uBAAuB;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC9C,YAAY,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;IACjD,gBAAgB,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,kBAAkB,CAAC,CAAC;IAC1E,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,UAAU,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IACzC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC9C,UAAU,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC7C,gBAAgB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;CACrD;AAED,wBAAgB,kBAAkB,CAAC,EACjC,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,KAAK,EACL,SAAS,EACT,SAAS,EACT,UAAU,GACX,EAAE,uBAAuB,eAyCzB"}
@@ -8,8 +8,7 @@ import styles from './styles.css.js';
8
8
  import testutilStyles from './test-classes/styles.css.js';
9
9
  export function ToolsAndSplitPanel(_a) {
10
10
  var _b;
11
- var ariaLabels = _a.ariaLabels, drawerWidth = _a.drawerWidth, footerHeight = _a.footerHeight, headerHeight = _a.headerHeight, isHidden = _a.isHidden, isMobile = _a.isMobile, onToolsToggle = _a.onToolsToggle, panelHeightStyle = _a.panelHeightStyle, splitPanel = _a.splitPanel, toggleRefs = _a.toggleRefs, onLoseToolsFocus = _a.onLoseToolsFocus, tools = _a.tools, toolsHide = _a.toolsHide, toolsOpen = _a.toolsOpen, toolsWidth = _a.toolsWidth, splitPanelOpen = _a.splitPanelOpen;
12
- var splitPanelVisible = splitPanelOpen && Boolean(splitPanel);
11
+ var ariaLabels = _a.ariaLabels, drawerWidth = _a.drawerWidth, footerHeight = _a.footerHeight, headerHeight = _a.headerHeight, isMobile = _a.isMobile, onToolsToggle = _a.onToolsToggle, panelHeightStyle = _a.panelHeightStyle, splitPanel = _a.splitPanel, toggleRefs = _a.toggleRefs, onLoseToolsFocus = _a.onLoseToolsFocus, tools = _a.tools, toolsHide = _a.toolsHide, toolsOpen = _a.toolsOpen, toolsWidth = _a.toolsWidth;
13
12
  return (React.createElement(React.Fragment, null,
14
13
  React.createElement("div", { style: {
15
14
  width: drawerWidth
@@ -19,6 +18,6 @@ export function ToolsAndSplitPanel(_a) {
19
18
  _b[styles.open] = toolsOpen,
20
19
  _b)), style: __assign({}, (isMobile ? { top: headerHeight, bottom: footerHeight } : panelHeightStyle)) },
21
20
  splitPanel,
22
- !toolsHide && (React.createElement(Drawer, { type: "tools", isMobile: isMobile, width: toolsWidth, isOpen: toolsOpen, onToggle: onToolsToggle, toggleRefs: toggleRefs, onLoseFocus: onLoseToolsFocus, isHidden: isHidden, contentClassName: clsx(styles.tools, testutilStyles.tools), closeClassName: clsx(styles['tools-close'], testutilStyles['tools-close']), toggleClassName: clsx(styles['tools-toggle'], testutilStyles['tools-toggle']), topOffset: headerHeight, bottomOffset: footerHeight, ariaLabels: ariaLabels, extendRight: 0, hasDividerWithSplitPanel: splitPanelVisible }, tools))))));
21
+ !toolsHide && (React.createElement(Drawer, { type: "tools", isMobile: isMobile, width: toolsWidth, isOpen: toolsOpen, onToggle: onToolsToggle, toggleRefs: toggleRefs, onLoseFocus: onLoseToolsFocus, contentClassName: testutilStyles.tools, closeClassName: testutilStyles['tools-close'], toggleClassName: testutilStyles['tools-toggle'], topOffset: headerHeight, bottomOffset: footerHeight, ariaLabels: ariaLabels }, tools))))));
23
22
  }
24
23
  //# sourceMappingURL=tools-and-split-panel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tools-and-split-panel.js","sourceRoot":"","sources":["../../../src/app-layout/tools-and-split-panel.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAsB,MAAM,EAAE,MAAM,UAAU,CAAC;AAGtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAmC1D,MAAM,UAAU,kBAAkB,CAAC,EAiBT;;QAhBxB,UAAU,gBAAA,EACV,WAAW,iBAAA,EACX,YAAY,kBAAA,EACZ,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,aAAa,mBAAA,EACb,gBAAgB,sBAAA,EAChB,UAAU,gBAAA,EACV,UAAU,gBAAA,EACV,gBAAgB,sBAAA,EAChB,KAAK,WAAA,EACL,SAAS,eAAA,EACT,SAAS,eAAA,EACT,UAAU,gBAAA,EACV,cAAc,oBAAA;IAEd,IAAM,iBAAiB,GAAG,cAAc,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAEhE,OAAO,CACL;QACE,6BACE,KAAK,EAAE;gBACL,KAAK,EAAE,WAAW;aACnB;YAED,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC;oBAC3C,GAAC,MAAM,CAAC,MAAM,IAAG,QAAQ;oBACzB,GAAC,MAAM,CAAC,IAAI,IAAG,SAAS;wBACxB,EACF,KAAK,eACA,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC;gBAG/E,UAAU;gBACV,CAAC,SAAS,IAAI,CACb,oBAAC,MAAM,IACL,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,aAAa,EACvB,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,gBAAgB,EAC7B,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,EAC1D,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC,EAC1E,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,EAC7E,SAAS,EAAE,YAAY,EACvB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,CAAC,EACd,wBAAwB,EAAE,iBAAiB,IAE1C,KAAK,CACC,CACV,CACG,CACF,CACL,CACJ,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport { DesktopDrawerProps, Drawer } from './drawer';\nimport { AppLayoutProps } from './interfaces';\nimport useContentHeight from './utils/use-content-height';\nimport styles from './styles.css.js';\nimport testutilStyles from './test-classes/styles.css.js';\n\ninterface ToolsAndSplitPanelProps {\n toolsHide: boolean;\n toolsOpen: boolean;\n isHidden: DesktopDrawerProps['isHidden'];\n\n splitPanelOpen: boolean;\n\n drawerWidth: number;\n toolsWidth: number;\n splitPanelReportedSize: number;\n closedDrawerWidth: number;\n\n headerHeight: DesktopDrawerProps['topOffset'];\n footerHeight: DesktopDrawerProps['bottomOffset'];\n panelHeightStyle: ReturnType<typeof useContentHeight>['panelHeightStyle'];\n contentHeightStyle: ReturnType<typeof useContentHeight>['contentHeightStyle'];\n\n tools: React.ReactNode;\n splitPanel: React.ReactNode;\n\n ariaLabels: AppLayoutProps['ariaLabels'];\n\n disableContentPaddings: AppLayoutProps['disableContentPaddings'];\n isMobile: boolean;\n isMotionEnabled: boolean;\n\n onToolsToggle: DesktopDrawerProps['onToggle'];\n\n toggleRefs: DesktopDrawerProps['toggleRefs'];\n\n onLoseToolsFocus: (event: React.FocusEvent) => void;\n}\n\nexport function ToolsAndSplitPanel({\n ariaLabels,\n drawerWidth,\n footerHeight,\n headerHeight,\n isHidden,\n isMobile,\n onToolsToggle,\n panelHeightStyle,\n splitPanel,\n toggleRefs,\n onLoseToolsFocus,\n tools,\n toolsHide,\n toolsOpen,\n toolsWidth,\n splitPanelOpen,\n}: ToolsAndSplitPanelProps) {\n const splitPanelVisible = splitPanelOpen && Boolean(splitPanel);\n\n return (\n <>\n <div\n style={{\n width: drawerWidth,\n }}\n >\n <div\n className={clsx(styles['panel-wrapper-outer'], {\n [styles.mobile]: isMobile,\n [styles.open]: toolsOpen,\n })}\n style={{\n ...(isMobile ? { top: headerHeight, bottom: footerHeight } : panelHeightStyle),\n }}\n >\n {splitPanel}\n {!toolsHide && (\n <Drawer\n type=\"tools\"\n isMobile={isMobile}\n width={toolsWidth}\n isOpen={toolsOpen}\n onToggle={onToolsToggle}\n toggleRefs={toggleRefs}\n onLoseFocus={onLoseToolsFocus}\n isHidden={isHidden}\n contentClassName={clsx(styles.tools, testutilStyles.tools)}\n closeClassName={clsx(styles['tools-close'], testutilStyles['tools-close'])}\n toggleClassName={clsx(styles['tools-toggle'], testutilStyles['tools-toggle'])}\n topOffset={headerHeight}\n bottomOffset={footerHeight}\n ariaLabels={ariaLabels}\n extendRight={0}\n hasDividerWithSplitPanel={splitPanelVisible}\n >\n {tools}\n </Drawer>\n )}\n </div>\n </div>\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"tools-and-split-panel.js","sourceRoot":"","sources":["../../../src/app-layout/tools-and-split-panel.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MA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AAE,YAAY,EAC1B,UAAU,EAAE,UAAU,IAErB,KAAK,CACC,CACV,CACG,CACF,CACL,CACJ,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport { DesktopDrawerProps, Drawer } from './drawer';\nimport { AppLayoutProps } from './interfaces';\nimport useContentHeight from './utils/use-content-height';\nimport styles from './styles.css.js';\nimport testutilStyles from './test-classes/styles.css.js';\n\ninterface ToolsAndSplitPanelProps {\n toolsHide: boolean;\n toolsOpen: boolean;\n drawerWidth: number;\n toolsWidth: number;\n headerHeight: DesktopDrawerProps['topOffset'];\n footerHeight: DesktopDrawerProps['bottomOffset'];\n panelHeightStyle: ReturnType<typeof useContentHeight>['panelHeightStyle'];\n tools: React.ReactNode;\n splitPanel: React.ReactNode;\n ariaLabels: AppLayoutProps['ariaLabels'];\n isMobile: boolean;\n onToolsToggle: DesktopDrawerProps['onToggle'];\n toggleRefs: DesktopDrawerProps['toggleRefs'];\n onLoseToolsFocus: (event: React.FocusEvent) => void;\n}\n\nexport function ToolsAndSplitPanel({\n ariaLabels,\n drawerWidth,\n footerHeight,\n headerHeight,\n isMobile,\n onToolsToggle,\n panelHeightStyle,\n splitPanel,\n toggleRefs,\n onLoseToolsFocus,\n tools,\n toolsHide,\n toolsOpen,\n toolsWidth,\n}: ToolsAndSplitPanelProps) {\n return (\n <>\n <div\n style={{\n width: drawerWidth,\n }}\n >\n <div\n className={clsx(styles['panel-wrapper-outer'], {\n [styles.mobile]: isMobile,\n [styles.open]: toolsOpen,\n })}\n style={{\n ...(isMobile ? { top: headerHeight, bottom: footerHeight } : panelHeightStyle),\n }}\n >\n {splitPanel}\n {!toolsHide && (\n <Drawer\n type=\"tools\"\n isMobile={isMobile}\n width={toolsWidth}\n isOpen={toolsOpen}\n onToggle={onToolsToggle}\n toggleRefs={toggleRefs}\n onLoseFocus={onLoseToolsFocus}\n contentClassName={testutilStyles.tools}\n closeClassName={testutilStyles['tools-close']}\n toggleClassName={testutilStyles['tools-toggle']}\n topOffset={headerHeight}\n bottomOffset={footerHeight}\n ariaLabels={ariaLabels}\n >\n {tools}\n </Drawer>\n )}\n </div>\n </div>\n </>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible-flashbar.d.ts","sourceRoot":"","sources":["../../../src/flashbar/collapsible-flashbar.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAgBvE,OAAO,EAAE,aAAa,EAAE,CAAC;AAQzB,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,EAAE,aAAa,GAAG,wBAAwB,eA0S5G"}
1
+ {"version":3,"file":"collapsible-flashbar.d.ts","sourceRoot":"","sources":["../../../src/flashbar/collapsible-flashbar.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAgBvE,OAAO,EAAE,aAAa,EAAE,CAAC;AAQzB,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,EAAE,aAAa,GAAG,wBAAwB,eAuS5G"}