@cloudscape-design/components 3.0.317 → 3.0.319

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 (203) hide show
  1. package/annotation-context/annotation/styles.css.js +24 -24
  2. package/annotation-context/annotation/styles.scoped.css +30 -30
  3. package/annotation-context/annotation/styles.selectors.js +24 -24
  4. package/app-layout/drawer/interfaces.d.ts +0 -7
  5. package/app-layout/drawer/interfaces.d.ts.map +1 -1
  6. package/app-layout/drawer/interfaces.js.map +1 -1
  7. package/app-layout/drawer/resizable-drawer.d.ts.map +1 -1
  8. package/app-layout/drawer/resizable-drawer.js +3 -3
  9. package/app-layout/drawer/resizable-drawer.js.map +1 -1
  10. package/app-layout/index.d.ts.map +1 -1
  11. package/app-layout/index.js +19 -2
  12. package/app-layout/index.js.map +1 -1
  13. package/app-layout/notifications/styles.css.js +3 -3
  14. package/app-layout/notifications/styles.scoped.css +7 -7
  15. package/app-layout/notifications/styles.selectors.js +3 -3
  16. package/app-layout/runtime-api.d.ts +8 -0
  17. package/app-layout/runtime-api.d.ts.map +1 -0
  18. package/app-layout/runtime-api.js +35 -0
  19. package/app-layout/runtime-api.js.map +1 -0
  20. package/app-layout/styles.css.js +17 -13
  21. package/app-layout/styles.scoped.css +44 -13
  22. package/app-layout/styles.selectors.js +17 -13
  23. package/app-layout/utils/interfaces.d.ts +10 -0
  24. package/app-layout/utils/interfaces.d.ts.map +1 -0
  25. package/app-layout/utils/interfaces.js +2 -0
  26. package/app-layout/utils/interfaces.js.map +1 -0
  27. package/app-layout/utils/use-drawer-focus-control.d.ts.map +1 -1
  28. package/app-layout/utils/use-drawer-focus-control.js +8 -3
  29. package/app-layout/utils/use-drawer-focus-control.js.map +1 -1
  30. package/app-layout/utils/use-keyboard-events.d.ts +4 -0
  31. package/app-layout/utils/use-keyboard-events.d.ts.map +1 -0
  32. package/{split-panel → app-layout}/utils/use-keyboard-events.js +10 -11
  33. package/app-layout/utils/use-keyboard-events.js.map +1 -0
  34. package/app-layout/utils/use-pointer-events.d.ts +3 -0
  35. package/app-layout/utils/use-pointer-events.d.ts.map +1 -0
  36. package/{split-panel → app-layout}/utils/use-pointer-events.js +15 -8
  37. package/app-layout/utils/use-pointer-events.js.map +1 -0
  38. package/app-layout/utils/use-resize.d.ts +16 -0
  39. package/app-layout/utils/use-resize.d.ts.map +1 -0
  40. package/app-layout/utils/use-resize.js +84 -0
  41. package/app-layout/utils/use-resize.js.map +1 -0
  42. package/app-layout/visual-refresh/context.d.ts +11 -6
  43. package/app-layout/visual-refresh/context.d.ts.map +1 -1
  44. package/app-layout/visual-refresh/context.js +26 -7
  45. package/app-layout/visual-refresh/context.js.map +1 -1
  46. package/app-layout/visual-refresh/drawers.d.ts +1 -33
  47. package/app-layout/visual-refresh/drawers.d.ts.map +1 -1
  48. package/app-layout/visual-refresh/drawers.js +14 -7
  49. package/app-layout/visual-refresh/drawers.js.map +1 -1
  50. package/app-layout/visual-refresh/styles.css.js +69 -68
  51. package/app-layout/visual-refresh/styles.scoped.css +294 -298
  52. package/app-layout/visual-refresh/styles.selectors.js +69 -68
  53. package/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
  54. package/app-layout/visual-refresh/trigger-button.js +1 -2
  55. package/app-layout/visual-refresh/trigger-button.js.map +1 -1
  56. package/area-chart/{model/async-store.d.ts → async-store/index.d.ts} +1 -1
  57. package/area-chart/async-store/index.d.ts.map +1 -0
  58. package/area-chart/{model/async-store.js → async-store/index.js} +1 -1
  59. package/area-chart/async-store/index.js.map +1 -0
  60. package/area-chart/elements/area-chart-legend.d.ts.map +1 -1
  61. package/area-chart/elements/area-chart-legend.js +1 -1
  62. package/area-chart/elements/area-chart-legend.js.map +1 -1
  63. package/area-chart/elements/data-series.js +1 -1
  64. package/area-chart/elements/data-series.js.map +1 -1
  65. package/area-chart/elements/highlighted-point.js +1 -1
  66. package/area-chart/elements/highlighted-point.js.map +1 -1
  67. package/area-chart/elements/use-highlight-details.d.ts.map +1 -1
  68. package/area-chart/elements/use-highlight-details.js +3 -1
  69. package/area-chart/elements/use-highlight-details.js.map +1 -1
  70. package/area-chart/elements/vertical-marker.js +1 -1
  71. package/area-chart/elements/vertical-marker.js.map +1 -1
  72. package/area-chart/model/index.d.ts +1 -1
  73. package/area-chart/model/index.d.ts.map +1 -1
  74. package/area-chart/model/index.js.map +1 -1
  75. package/area-chart/model/interactions-store.d.ts +1 -1
  76. package/area-chart/model/interactions-store.d.ts.map +1 -1
  77. package/area-chart/model/interactions-store.js +1 -1
  78. package/area-chart/model/interactions-store.js.map +1 -1
  79. package/area-chart/model/use-chart-model.d.ts.map +1 -1
  80. package/area-chart/model/use-chart-model.js +1 -1
  81. package/area-chart/model/use-chart-model.js.map +1 -1
  82. package/attribute-editor/interfaces.d.ts +1 -1
  83. package/attribute-editor/interfaces.d.ts.map +1 -1
  84. package/attribute-editor/interfaces.js.map +1 -1
  85. package/content-layout/styles.css.js +7 -7
  86. package/content-layout/styles.scoped.css +13 -13
  87. package/content-layout/styles.selectors.js +7 -7
  88. package/expandable-section/expandable-section-header.d.ts.map +1 -1
  89. package/expandable-section/expandable-section-header.js +10 -10
  90. package/expandable-section/expandable-section-header.js.map +1 -1
  91. package/expandable-section/interfaces.d.ts +1 -1
  92. package/expandable-section/interfaces.js.map +1 -1
  93. package/expandable-section/styles.css.js +31 -29
  94. package/expandable-section/styles.scoped.css +56 -51
  95. package/expandable-section/styles.selectors.js +31 -29
  96. package/expandable-section/utils.js +1 -1
  97. package/expandable-section/utils.js.map +1 -1
  98. package/flashbar/styles.css.js +45 -45
  99. package/flashbar/styles.scoped.css +169 -169
  100. package/flashbar/styles.selectors.js +45 -45
  101. package/internal/environment.js +1 -1
  102. package/internal/generated/custom-css-properties/index.js +39 -39
  103. package/internal/generated/custom-css-properties/index.js.map +1 -1
  104. package/internal/manifest.json +1 -1
  105. package/internal/plugins/api.d.ts +15 -0
  106. package/internal/plugins/api.d.ts.map +1 -0
  107. package/internal/plugins/api.js +50 -0
  108. package/internal/plugins/api.js.map +1 -0
  109. package/internal/plugins/drawers-controller.d.ts +22 -0
  110. package/internal/plugins/drawers-controller.d.ts.map +1 -0
  111. package/internal/plugins/drawers-controller.js +34 -0
  112. package/internal/plugins/drawers-controller.js.map +1 -0
  113. package/internal/plugins/index.d.ts +2 -0
  114. package/internal/plugins/index.d.ts.map +1 -0
  115. package/internal/plugins/index.js +4 -0
  116. package/internal/plugins/index.js.map +1 -0
  117. package/mixed-line-bar-chart/data-series.d.ts.map +1 -1
  118. package/mixed-line-bar-chart/data-series.js +8 -2
  119. package/mixed-line-bar-chart/data-series.js.map +1 -1
  120. package/package.json +1 -1
  121. package/split-panel/index.d.ts.map +1 -1
  122. package/split-panel/index.js +3 -3
  123. package/split-panel/index.js.map +1 -1
  124. package/split-panel/interfaces.d.ts +0 -7
  125. package/split-panel/interfaces.d.ts.map +1 -1
  126. package/split-panel/interfaces.js.map +1 -1
  127. package/split-panel/styles.css.js +56 -59
  128. package/split-panel/styles.scoped.css +77 -93
  129. package/split-panel/styles.selectors.js +56 -59
  130. package/table/body-cell/td-element.d.ts +2 -2
  131. package/table/body-cell/td-element.d.ts.map +1 -1
  132. package/table/body-cell/td-element.js +2 -2
  133. package/table/body-cell/td-element.js.map +1 -1
  134. package/table/column-widths-utils.d.ts +3 -0
  135. package/table/column-widths-utils.d.ts.map +1 -0
  136. package/table/column-widths-utils.js +16 -0
  137. package/table/column-widths-utils.js.map +1 -0
  138. package/table/header-cell/index.d.ts +3 -3
  139. package/table/header-cell/index.d.ts.map +1 -1
  140. package/table/header-cell/index.js +2 -2
  141. package/table/header-cell/index.js.map +1 -1
  142. package/table/internal.d.ts.map +1 -1
  143. package/table/internal.js +15 -10
  144. package/table/internal.js.map +1 -1
  145. package/table/resizer/index.d.ts.map +1 -1
  146. package/table/resizer/index.js +2 -2
  147. package/table/resizer/index.js.map +1 -1
  148. package/table/sticky-columns/index.d.ts +2 -0
  149. package/table/sticky-columns/index.d.ts.map +1 -0
  150. package/table/sticky-columns/index.js +4 -0
  151. package/table/sticky-columns/index.js.map +1 -0
  152. package/table/{use-sticky-columns.d.ts → sticky-columns/use-sticky-columns.d.ts} +7 -9
  153. package/table/sticky-columns/use-sticky-columns.d.ts.map +1 -0
  154. package/table/{use-sticky-columns.js → sticky-columns/use-sticky-columns.js} +3 -4
  155. package/table/sticky-columns/use-sticky-columns.js.map +1 -0
  156. package/table/sticky-scrollbar/index.d.ts +2 -0
  157. package/table/sticky-scrollbar/index.d.ts.map +1 -0
  158. package/table/sticky-scrollbar/index.js +4 -0
  159. package/table/sticky-scrollbar/index.js.map +1 -0
  160. package/table/sticky-scrollbar/sticky-scrollbar.d.ts.map +1 -0
  161. package/table/{sticky-scrollbar.js → sticky-scrollbar/sticky-scrollbar.js} +2 -2
  162. package/table/sticky-scrollbar/sticky-scrollbar.js.map +1 -0
  163. package/table/sticky-scrollbar/styles.css.js +9 -0
  164. package/table/sticky-scrollbar/styles.scoped.css +22 -0
  165. package/table/sticky-scrollbar/styles.selectors.js +10 -0
  166. package/table/sticky-scrollbar/use-sticky-scrollbar.d.ts.map +1 -0
  167. package/table/{use-sticky-scrollbar.js → sticky-scrollbar/use-sticky-scrollbar.js} +3 -3
  168. package/table/sticky-scrollbar/use-sticky-scrollbar.js.map +1 -0
  169. package/table/styles.css.js +32 -36
  170. package/table/styles.scoped.css +40 -59
  171. package/table/styles.selectors.js +32 -36
  172. package/table/thead.d.ts +2 -1
  173. package/table/thead.d.ts.map +1 -1
  174. package/table/thead.js +4 -4
  175. package/table/thead.js.map +1 -1
  176. package/table/use-column-widths.d.ts +10 -8
  177. package/table/use-column-widths.d.ts.map +1 -1
  178. package/table/use-column-widths.js +30 -47
  179. package/table/use-column-widths.js.map +1 -1
  180. package/table/utils.d.ts +1 -1
  181. package/table/utils.d.ts.map +1 -1
  182. package/table/utils.js.map +1 -1
  183. package/test-utils/dom/app-layout/index.d.ts +1 -1
  184. package/test-utils/tsconfig.tsbuildinfo +1 -1
  185. package/wizard/styles.css.js +31 -31
  186. package/wizard/styles.scoped.css +63 -63
  187. package/wizard/styles.selectors.js +31 -31
  188. package/area-chart/model/async-store.d.ts.map +0 -1
  189. package/area-chart/model/async-store.js.map +0 -1
  190. package/split-panel/utils/use-keyboard-events.d.ts +0 -4
  191. package/split-panel/utils/use-keyboard-events.d.ts.map +0 -1
  192. package/split-panel/utils/use-keyboard-events.js.map +0 -1
  193. package/split-panel/utils/use-pointer-events.d.ts +0 -3
  194. package/split-panel/utils/use-pointer-events.d.ts.map +0 -1
  195. package/split-panel/utils/use-pointer-events.js.map +0 -1
  196. package/table/sticky-scrollbar.d.ts.map +0 -1
  197. package/table/sticky-scrollbar.js.map +0 -1
  198. package/table/use-sticky-columns.d.ts.map +0 -1
  199. package/table/use-sticky-columns.js.map +0 -1
  200. package/table/use-sticky-scrollbar.d.ts.map +0 -1
  201. package/table/use-sticky-scrollbar.js.map +0 -1
  202. /package/table/{sticky-scrollbar.d.ts → sticky-scrollbar/sticky-scrollbar.d.ts} +0 -0
  203. /package/table/{use-sticky-scrollbar.d.ts → sticky-scrollbar/use-sticky-scrollbar.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["app-layout/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtG,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;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,aAAa,CAAC,YAAY,CAAC,cAAc,KAAK,OAAO,CAAC,CAAC;gCACvD,mBAAmB,EAAE,CAAC;gCACtB,iBAAiB,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;gCAC/C,wBAAwB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;gCAC3C,sBAAsB,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;6BACvE;wBACH,CAAC;wBACD,SAAS,EAAE,OAAO,CAAC,SAAS;qBAC7B,GACD,CACH,CACG,CACF,CACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AACzC,eAAe,SAAS,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, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport { useControllable } from '../internal/hooks/use-controllable';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { applyDefaults } from './defaults';\nimport { AppLayoutProps } from './interfaces';\nimport { Notifications } from './notifications';\nimport { MobileToolbar } from './mobile-toolbar';\nimport { useFocusControl } from './utils/use-focus-control';\nimport useWindowWidth from './utils/use-window-width';\nimport useContentHeight from './utils/use-content-height';\nimport styles from './styles.css.js';\nimport testutilStyles from './test-classes/styles.css.js';\nimport { findUpUntil } from '../internal/utils/dom';\nimport { AppLayoutContext } from '../internal/context/app-layout-context';\nimport { useContainerQuery } from '../internal/hooks/container-queries';\nimport { useStableEventHandler } from '../internal/hooks/use-stable-event-handler';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport {\n SplitPanelContextProvider,\n SplitPanelContextProps,\n SplitPanelSideToggleProps,\n} from '../internal/context/split-panel-context';\nimport {\n CONSTRAINED_MAIN_PANEL_MIN_HEIGHT,\n CONSTRAINED_PAGE_HEIGHT,\n getSplitPanelDefaultSize,\n MAIN_PANEL_MIN_HEIGHT,\n} from '../split-panel/utils/size-utils';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport ContentWrapper, { ContentWrapperProps } from './content-wrapper';\nimport { Drawer, DrawerTriggersBar } from './drawer';\nimport { ResizableDrawer } from './drawer/resizable-drawer';\nimport { DrawerItem, InternalDrawerProps } from './drawer/interfaces';\nimport { togglesConfig } from './toggles';\nimport { SideSplitPanelDrawer } from './split-panel-drawer';\nimport useAppLayoutOffsets from './utils/use-content-width';\nimport { isDevelopment } from '../internal/is-development';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport RefreshedAppLayout from './visual-refresh';\nimport { useInternalI18n } from '../internal/i18n/context';\nimport { useSplitPanelFocusControl } from './utils/use-split-panel-focus-control';\nimport { useDrawerFocusControl } from './utils/use-drawer-focus-control';\n\nexport { AppLayoutProps };\n\nconst AppLayout = React.forwardRef(\n (\n { contentType = 'default', headerSelector = '#b #h', footerSelector = '#b #f', ...rest }: AppLayoutProps,\n ref: React.Ref<AppLayoutProps.Ref>\n ) => {\n const { __internalRootRef } = useBaseComponent<HTMLDivElement>('AppLayout');\n const isRefresh = useVisualRefresh();\n\n const i18n = useInternalI18n('app-layout');\n const ariaLabels = {\n navigation: i18n('ariaLabels.navigation', rest.ariaLabels?.navigation),\n navigationClose: i18n('ariaLabels.navigationClose', rest.ariaLabels?.navigationClose),\n navigationToggle: i18n('ariaLabels.navigationToggle', rest.ariaLabels?.navigationToggle),\n notifications: i18n('ariaLabels.notifications', rest.ariaLabels?.notifications),\n tools: i18n('ariaLabels.tools', rest.ariaLabels?.tools),\n toolsClose: i18n('ariaLabels.toolsClose', rest.ariaLabels?.toolsClose),\n toolsToggle: i18n('ariaLabels.toolsToggle', rest.ariaLabels?.toolsToggle),\n };\n\n // This re-builds the props including the default values\n const props = { contentType, headerSelector, footerSelector, ...rest, ariaLabels };\n\n const baseProps = getBaseProps(rest);\n\n return (\n <div ref={__internalRootRef} {...baseProps}>\n {isRefresh ? <RefreshedAppLayout {...props} ref={ref} /> : <OldAppLayout {...props} ref={ref} />}\n </div>\n );\n }\n);\n\nconst OldAppLayout = React.forwardRef(\n (\n {\n navigation,\n navigationWidth = 280,\n navigationHide,\n navigationOpen: controlledNavigationOpen,\n tools,\n toolsWidth = 290,\n toolsHide,\n toolsOpen: controlledToolsOpen,\n breadcrumbs,\n notifications,\n stickyNotifications,\n contentHeader,\n disableContentHeaderOverlap,\n content,\n contentType = 'default',\n disableContentPaddings,\n disableBodyScroll,\n maxContentWidth,\n minContentWidth,\n headerSelector = '#b #h',\n footerSelector = '#b #f',\n ariaLabels,\n splitPanel,\n splitPanelSize: controlledSplitPanelSize,\n splitPanelOpen: controlledSplitPanelOpen,\n splitPanelPreferences: controlledSplitPanelPreferences,\n onSplitPanelPreferencesChange,\n onSplitPanelResize,\n onSplitPanelToggle,\n onNavigationChange,\n onToolsChange,\n ...props\n }: AppLayoutProps,\n ref: React.Ref<AppLayoutProps.Ref>\n ) => {\n if (isDevelopment) {\n if (controlledToolsOpen && toolsHide) {\n warnOnce(\n 'AppLayout',\n `You have enabled both the \\`toolsOpen\\` prop and the \\`toolsHide\\` prop. This is not supported. Set \\`toolsOpen\\` to \\`false\\` when you set \\`toolsHide\\` to \\`true\\`.`\n );\n }\n }\n\n const drawers = (props as InternalDrawerProps).drawers;\n const hasDrawers = drawers && drawers.items.length > 0;\n\n const rootRef = useRef<HTMLDivElement>(null);\n const isMobile = useMobile();\n\n const defaults = applyDefaults(contentType, { maxContentWidth, minContentWidth }, false);\n const [navigationOpen = false, setNavigationOpen] = useControllable(\n controlledNavigationOpen,\n onNavigationChange,\n isMobile ? false : defaults.navigationOpen,\n { componentName: 'AppLayout', controlledProp: 'navigationOpen', changeHandler: 'onNavigationChange' }\n );\n\n const [toolsOpen = false, setToolsOpen] = useControllable(\n controlledToolsOpen,\n onToolsChange,\n isMobile ? false : defaults.toolsOpen,\n { componentName: 'AppLayout', controlledProp: 'toolsOpen', changeHandler: 'onToolsChange' }\n );\n\n const [activeDrawerId, setActiveDrawerId] = useControllable(\n drawers?.activeDrawerId,\n drawers?.onChange,\n isMobile ? false : tools ? defaults.toolsOpen : '',\n {\n componentName: 'AppLayout',\n controlledProp: 'activeDrawerId',\n changeHandler: 'onChange',\n }\n );\n\n const { iconName, getLabels } = togglesConfig.tools;\n const { mainLabel, closeLabel, openLabel } = getLabels(ariaLabels);\n\n const toolsItem = {\n id: 'tools',\n content: tools,\n resizable: false,\n ariaLabels: {\n triggerButton: openLabel,\n closeButton: closeLabel,\n content: mainLabel,\n },\n trigger: {\n iconName: iconName,\n },\n };\n\n const getAllDrawerItems = () => {\n if (!hasDrawers) {\n return;\n }\n return tools ? [toolsItem, ...drawers.items] : drawers.items;\n };\n\n const selectedDrawer =\n tools && toolsOpen\n ? toolsItem\n : hasDrawers\n ? getAllDrawerItems()?.filter((drawerItem: DrawerItem) => drawerItem.id === activeDrawerId)[0]\n : undefined;\n\n const { refs: navigationRefs, setFocus: focusNavButtons } = useFocusControl(navigationOpen);\n const {\n refs: toolsRefs,\n setFocus: focusToolsButtons,\n loseFocus: loseToolsFocus,\n } = useFocusControl(toolsOpen || selectedDrawer !== undefined, true);\n const {\n refs: drawerRefs,\n setFocus: focusDrawersButtons,\n loseFocus: loseDrawersFocus,\n setLastInteraction: setDrawerLastInteraction,\n } = useDrawerFocusControl([selectedDrawer?.resizable], toolsOpen || selectedDrawer !== undefined, true);\n\n const onNavigationToggle = useCallback(\n (open: boolean) => {\n setNavigationOpen(open);\n focusNavButtons();\n fireNonCancelableEvent(onNavigationChange, { open });\n },\n [setNavigationOpen, onNavigationChange, focusNavButtons]\n );\n const onToolsToggle = useCallback(\n (open: boolean) => {\n setToolsOpen(open);\n focusToolsButtons();\n fireNonCancelableEvent(onToolsChange, { open });\n },\n [setToolsOpen, onToolsChange, focusToolsButtons]\n );\n\n const onNavigationClick = (event: React.MouseEvent) => {\n const hasLink = findUpUntil(\n event.target as HTMLElement,\n node => node.tagName === 'A' && !!(node as HTMLAnchorElement).href\n );\n if (hasLink) {\n onNavigationToggle(false);\n }\n };\n\n const navigationVisible = !navigationHide && navigationOpen;\n const toolsVisible = !toolsHide && toolsOpen;\n\n const { contentHeightStyle, headerHeight, footerHeight } = useContentHeight(\n headerSelector,\n footerSelector,\n disableBodyScroll\n );\n const [isSplitpanelForcedPosition, setIsSplitpanelForcedPosition] = useState(false);\n const [isResizeInvalid, setIsResizeInvalid] = useState(false);\n\n const [notificationsHeight, notificationsRef] = useContainerQuery(rect => rect.height);\n const anyPanelOpen = navigationVisible || toolsVisible;\n const hasRenderedNotifications = notificationsHeight ? notificationsHeight > 0 : false;\n const stickyNotificationsHeight = stickyNotifications ? notificationsHeight : null;\n\n const [splitPanelPreferences, setSplitPanelPreferences] = useControllable(\n controlledSplitPanelPreferences,\n onSplitPanelPreferencesChange,\n undefined,\n {\n componentName: 'AppLayout',\n controlledProp: 'splitPanelPreferences',\n changeHandler: 'onSplitPanelPreferencesChange',\n }\n );\n const [splitPanelOpen = false, setSplitPanelOpen] = useControllable(\n controlledSplitPanelOpen,\n onSplitPanelToggle,\n false,\n {\n componentName: 'AppLayout',\n controlledProp: 'splitPanelOpen',\n changeHandler: 'onSplitPanelToggle',\n }\n );\n\n const drawerItems = useMemo(() => drawers?.items || [], [drawers?.items]);\n\n const getDrawerItemSizes = useCallback(() => {\n const sizes: { [id: string]: number } = {};\n if (!drawerItems) {\n return {};\n }\n\n for (const item of drawerItems) {\n if (item.defaultSize) {\n sizes[item.id] = item.defaultSize || toolsWidth;\n }\n }\n return sizes;\n }, [drawerItems, toolsWidth]);\n\n const [drawerSizes, setDrawerSizes] = useState(() => getDrawerItemSizes());\n\n useEffect(() => {\n // Ensure we only set new drawer items by performing a shallow merge\n // of the latest drawer item sizes, and previous drawer item sizes.\n setDrawerSizes(prev => ({ ...getDrawerItemSizes(), ...prev }));\n }, [getDrawerItemSizes]);\n\n const drawerSize =\n selectedDrawer?.id && drawerSizes[selectedDrawer?.id] ? drawerSizes[selectedDrawer?.id] : toolsWidth;\n\n const splitPanelPosition = splitPanelPreferences?.position || 'bottom';\n const [splitPanelReportedToggle, setSplitPanelReportedToggle] = useState<SplitPanelSideToggleProps>({\n displayed: false,\n ariaLabel: undefined,\n });\n const splitPanelDisplayed = !!(splitPanel && (splitPanelReportedToggle.displayed || splitPanelOpen));\n\n const closedDrawerWidth = 40;\n const effectiveNavigationWidth = navigationHide ? 0 : navigationOpen ? navigationWidth : closedDrawerWidth;\n\n const getEffectiveToolsWidth = () => {\n if (toolsHide && (!splitPanelDisplayed || splitPanelPreferences?.position !== 'side') && !drawers) {\n return 0;\n }\n\n if (selectedDrawer?.resizable) {\n return drawerSize;\n }\n\n if (toolsOpen || activeDrawerId) {\n return toolsWidth;\n }\n\n return closedDrawerWidth;\n };\n\n const effectiveToolsWidth = getEffectiveToolsWidth();\n\n const defaultSplitPanelSize = getSplitPanelDefaultSize(splitPanelPosition);\n const [splitPanelSize = defaultSplitPanelSize, setSplitPanelSize] = useControllable(\n controlledSplitPanelSize,\n onSplitPanelResize,\n defaultSplitPanelSize,\n {\n componentName: 'AppLayout',\n controlledProp: 'splitPanelSize',\n changeHandler: 'onSplitPanelResize',\n }\n );\n\n const mainContentRef = useRef<HTMLDivElement>(null);\n const legacyScrollRootRef = useRef<HTMLElement>(null);\n\n const { refs: splitPanelRefs, setLastInteraction: setSplitPanelLastInteraction } = useSplitPanelFocusControl([\n splitPanelPreferences,\n splitPanelOpen,\n ]);\n\n const onSplitPanelPreferencesSet = useCallback(\n (detail: { position: 'side' | 'bottom' }) => {\n setSplitPanelPreferences(detail);\n setSplitPanelLastInteraction({ type: 'position' });\n fireNonCancelableEvent(onSplitPanelPreferencesChange, detail);\n },\n [setSplitPanelPreferences, onSplitPanelPreferencesChange, setSplitPanelLastInteraction]\n );\n const onSplitPanelSizeSet = useCallback(\n (detail: { size: number }) => {\n setSplitPanelSize(detail.size);\n fireNonCancelableEvent(onSplitPanelResize, detail);\n },\n [setSplitPanelSize, onSplitPanelResize]\n );\n\n const onSplitPanelToggleHandler = useCallback(() => {\n setSplitPanelOpen(!splitPanelOpen);\n setSplitPanelLastInteraction({ type: splitPanelOpen ? 'close' : 'open' });\n fireNonCancelableEvent(onSplitPanelToggle, { open: !splitPanelOpen });\n }, [setSplitPanelOpen, splitPanelOpen, onSplitPanelToggle, setSplitPanelLastInteraction]);\n\n const getSplitPanelMaxWidth = useStableEventHandler(() => {\n if (!mainContentRef.current || !defaults.minContentWidth) {\n return NaN;\n }\n\n const width = parseInt(getComputedStyle(mainContentRef.current).width);\n // when disableContentPaddings is true there is less available space,\n // so we subtract space-scaled-2x-xxxl * 2 for left and right padding\n const contentPadding = disableContentPaddings ? 80 : 0;\n const spaceAvailable = width - defaults.minContentWidth - contentPadding;\n\n const spaceTaken = finalSplitPanePosition === 'side' ? splitPanelSize : 0;\n return Math.max(0, spaceTaken + spaceAvailable);\n });\n\n const getDrawerMaxWidth = useStableEventHandler(() => {\n if (!mainContentRef.current || !defaults.minContentWidth) {\n return NaN;\n }\n\n // Either use the computed width of the drawer or the drawerSize as defined.\n const width = parseInt(getComputedStyle(mainContentRef.current).width || `${drawerSize}`);\n\n // when disableContentPaddings is true there is less available space,\n // so we subtract space-scaled-2x-xxxl * 2 for left and right padding\n const contentPadding = disableContentPaddings ? 80 : 0;\n const spaceAvailable = width - defaults.minContentWidth - contentPadding;\n const spaceTaken = drawerSize;\n\n return Math.max(0, spaceTaken + spaceAvailable);\n });\n\n const getSplitPanelMaxHeight = useStableEventHandler(() => {\n if (typeof document === 'undefined') {\n return 0; // render the split panel in its minimum possible size\n } else if (disableBodyScroll && legacyScrollRootRef.current) {\n const availableHeight = legacyScrollRootRef.current.clientHeight;\n return availableHeight < CONSTRAINED_PAGE_HEIGHT ? availableHeight : availableHeight - MAIN_PANEL_MIN_HEIGHT;\n } else {\n const availableHeight = document.documentElement.clientHeight - headerHeight - footerHeight;\n return availableHeight < CONSTRAINED_PAGE_HEIGHT\n ? availableHeight - CONSTRAINED_MAIN_PANEL_MIN_HEIGHT\n : availableHeight - MAIN_PANEL_MIN_HEIGHT;\n }\n });\n\n const finalSplitPanePosition = isSplitpanelForcedPosition ? 'bottom' : splitPanelPosition;\n\n const splitPaneAvailableOnTheSide = splitPanelDisplayed && finalSplitPanePosition === 'side';\n const splitPanelOpenOnTheSide = splitPaneAvailableOnTheSide && splitPanelOpen;\n\n const toggleButtonsBarWidth = 0;\n\n const windowWidth = useWindowWidth();\n const { left: leftOffset, right: rightOffset } = useAppLayoutOffsets(rootRef.current);\n const contentWidthWithSplitPanel =\n windowWidth -\n leftOffset -\n rightOffset -\n effectiveToolsWidth -\n effectiveNavigationWidth -\n (disableContentPaddings ? 0 : toggleButtonsBarWidth);\n\n useEffect(() => {\n const contentWidth = contentWidthWithSplitPanel - splitPanelSize;\n\n setIsSplitpanelForcedPosition(isMobile || (defaults.minContentWidth || 0) > contentWidth);\n setIsResizeInvalid(isMobile || (defaults.minContentWidth || 0) > contentWidthWithSplitPanel);\n // This is a workaround to avoid a forced position due to splitPanelSize, which is\n // user controlled variable.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [contentWidthWithSplitPanel, drawerSize, defaults.minContentWidth, isMobile]);\n\n const navigationClosedWidth = navigationHide || isMobile ? 0 : closedDrawerWidth;\n const toolsClosedWidth = toolsHide || isMobile || (!hasDrawers && toolsHide) ? 0 : closedDrawerWidth;\n\n const contentMaxWidthStyle = !isMobile ? { maxWidth: defaults.maxContentWidth } : undefined;\n\n const [splitPanelReportedSize, setSplitPanelReportedSize] = useState(0);\n const [splitPanelReportedHeaderHeight, setSplitPanelReportedHeaderHeight] = useState(0);\n\n const getSplitPanelRightOffset = () => {\n if (isMobile) {\n return 0;\n }\n\n if (hasDrawers) {\n if (activeDrawerId) {\n if (!isResizeInvalid && drawerSize) {\n return drawerSize + closedDrawerWidth;\n }\n\n return toolsWidth + closedDrawerWidth;\n }\n return closedDrawerWidth;\n }\n\n if (!toolsHide && toolsOpen) {\n return toolsWidth;\n }\n return toolsClosedWidth;\n };\n\n const splitPanelContext: SplitPanelContextProps = {\n topOffset: headerHeight + (finalSplitPanePosition === 'bottom' ? stickyNotificationsHeight || 0 : 0),\n bottomOffset: footerHeight,\n leftOffset:\n leftOffset + (isMobile ? 0 : !navigationHide && navigationOpen ? navigationWidth : navigationClosedWidth),\n rightOffset: rightOffset + getSplitPanelRightOffset(),\n position: finalSplitPanePosition,\n size: splitPanelSize,\n getMaxWidth: getSplitPanelMaxWidth,\n getMaxHeight: getSplitPanelMaxHeight,\n disableContentPaddings,\n contentWidthStyles: contentMaxWidthStyle,\n isOpen: splitPanelOpen,\n isMobile,\n isForcedPosition: isSplitpanelForcedPosition,\n onResize: onSplitPanelSizeSet,\n onToggle: onSplitPanelToggleHandler,\n onPreferencesChange: onSplitPanelPreferencesSet,\n setSplitPanelToggle: setSplitPanelReportedToggle,\n reportSize: setSplitPanelReportedSize,\n reportHeaderHeight: setSplitPanelReportedHeaderHeight,\n refs: splitPanelRefs,\n };\n const splitPanelWrapped = splitPanel && (\n <SplitPanelContextProvider value={splitPanelContext}>{splitPanel}</SplitPanelContextProvider>\n );\n\n const contentWrapperProps: ContentWrapperProps = {\n contentType,\n navigationPadding: navigationHide || !!navigationOpen,\n contentWidthStyles: !isMobile\n ? { minWidth: defaults.minContentWidth, maxWidth: defaults.maxContentWidth }\n : undefined,\n toolsPadding:\n // tools padding is displayed in one of the three cases\n // 1. Nothing on the that screen edge (no tools panel and no split panel)\n toolsHide ||\n (hasDrawers && !activeDrawerId && (!splitPanelDisplayed || finalSplitPanePosition !== 'side')) ||\n // 2. Tools panel is present and open\n toolsVisible ||\n // 3. Split panel is open in side position\n splitPanelOpenOnTheSide,\n isMobile,\n };\n\n useImperativeHandle(\n ref,\n () => ({\n openTools: () => onToolsToggle(true),\n closeNavigationIfNecessary: () => {\n if (isMobile) {\n onNavigationToggle(false);\n }\n },\n focusToolsClose: () => focusToolsButtons(true),\n }),\n [isMobile, onNavigationToggle, onToolsToggle, focusToolsButtons]\n );\n\n const splitPanelBottomOffset =\n (!splitPanelDisplayed || finalSplitPanePosition !== 'bottom'\n ? undefined\n : splitPanelOpen\n ? splitPanelReportedSize\n : splitPanelReportedHeaderHeight) ?? undefined;\n\n const [mobileBarHeight, mobileBarRef] = useContainerQuery(rect => rect.height);\n\n return (\n <div\n className={clsx(styles.root, testutilStyles.root, disableBodyScroll && styles['root-no-scroll'])}\n ref={rootRef}\n >\n <div className={styles['layout-wrapper']} style={contentHeightStyle}>\n {isMobile && (!toolsHide || !navigationHide || breadcrumbs) && (\n <MobileToolbar\n anyPanelOpen={anyPanelOpen}\n toggleRefs={{ navigation: navigationRefs.toggle, tools: toolsRefs.toggle }}\n topOffset={headerHeight}\n ariaLabels={ariaLabels}\n navigationHide={navigationHide}\n toolsHide={toolsHide}\n onNavigationOpen={() => onNavigationToggle(true)}\n onToolsOpen={() => onToolsToggle(true)}\n unfocusable={anyPanelOpen}\n mobileBarRef={mobileBarRef}\n drawers={\n drawers\n ? {\n items: tools && !toolsHide ? [toolsItem, ...drawers.items] : drawers.items,\n activeDrawerId: selectedDrawer?.id,\n onChange: changeDetail => {\n if (selectedDrawer?.id !== changeDetail.activeDrawerId) {\n onToolsToggle(changeDetail.activeDrawerId === 'tools');\n focusDrawersButtons();\n setActiveDrawerId(changeDetail.activeDrawerId);\n setDrawerLastInteraction({ type: 'open' });\n fireNonCancelableEvent(drawers.onChange, changeDetail.activeDrawerId);\n }\n },\n ariaLabel: drawers.ariaLabel,\n }\n : undefined\n }\n >\n {breadcrumbs}\n </MobileToolbar>\n )}\n <div className={clsx(styles.layout, disableBodyScroll && styles['layout-no-scroll'])}>\n {!navigationHide && (\n <Drawer\n contentClassName={testutilStyles.navigation}\n toggleClassName={testutilStyles['navigation-toggle']}\n closeClassName={testutilStyles['navigation-close']}\n ariaLabels={ariaLabels}\n bottomOffset={footerHeight}\n topOffset={headerHeight}\n isMobile={isMobile}\n isOpen={navigationOpen}\n onClick={isMobile ? onNavigationClick : undefined}\n onToggle={onNavigationToggle}\n toggleRefs={navigationRefs}\n type=\"navigation\"\n width={navigationWidth}\n >\n {navigation}\n </Drawer>\n )}\n <main\n ref={legacyScrollRootRef}\n className={clsx(styles['layout-main'], {\n [styles['layout-main-scrollable']]: disableBodyScroll,\n [testutilStyles['disable-body-scroll-root']]: disableBodyScroll,\n [styles.unfocusable]: isMobile && anyPanelOpen,\n })}\n >\n <div\n style={{\n marginBottom: splitPanelBottomOffset,\n }}\n >\n {notifications && (\n <Notifications\n disableContentPaddings={disableContentPaddings}\n testUtilsClassName={testutilStyles.notifications}\n labels={ariaLabels}\n topOffset={disableBodyScroll ? 0 : headerHeight}\n sticky={!isMobile && stickyNotifications}\n ref={notificationsRef}\n >\n {notifications}\n </Notifications>\n )}\n {((!isMobile && breadcrumbs) || contentHeader) && (\n <ContentWrapper {...contentWrapperProps}>\n {!isMobile && breadcrumbs && (\n <div className={clsx(testutilStyles.breadcrumbs, styles['breadcrumbs-desktop'])}>\n {breadcrumbs}\n </div>\n )}\n {contentHeader && (\n <div\n className={clsx(\n styles['content-header-wrapper'],\n !hasRenderedNotifications &&\n (isMobile || !breadcrumbs) &&\n styles['content-extra-top-padding'],\n !hasRenderedNotifications && !breadcrumbs && styles['content-header-wrapper-first-child'],\n !disableContentHeaderOverlap && styles['content-header-wrapper-overlapped']\n )}\n >\n {contentHeader}\n </div>\n )}\n </ContentWrapper>\n )}\n <ContentWrapper\n {...contentWrapperProps}\n ref={mainContentRef}\n disablePaddings={disableContentPaddings}\n // eslint-disable-next-line react/forbid-component-props\n className={clsx(\n !disableContentPaddings && styles['content-wrapper'],\n !disableContentPaddings &&\n (isMobile || !breadcrumbs) &&\n !contentHeader &&\n styles['content-extra-top-padding'],\n testutilStyles.content,\n !disableContentHeaderOverlap && contentHeader && styles['content-overlapped'],\n !hasRenderedNotifications &&\n !breadcrumbs &&\n !isMobile &&\n !contentHeader &&\n styles['content-wrapper-first-child']\n )}\n >\n <AppLayoutContext.Provider\n value={{\n stickyOffsetTop:\n // We don't support the table header being sticky in case the deprecated disableBodyScroll is enabled,\n // therefore we ensure the table header scrolls out of view by offseting a large enough value (9999px)\n (disableBodyScroll ? (isMobile ? -9999 : 0) : headerHeight) +\n (isMobile ? 0 : stickyNotificationsHeight !== null ? stickyNotificationsHeight : 0),\n stickyOffsetBottom: footerHeight + (splitPanelBottomOffset || 0),\n mobileBarHeight: mobileBarHeight ?? 0,\n }}\n >\n {content}\n </AppLayoutContext.Provider>\n </ContentWrapper>\n </div>\n {finalSplitPanePosition === 'bottom' && splitPanelWrapped}\n </main>\n\n {finalSplitPanePosition === 'side' && (\n <SideSplitPanelDrawer\n topOffset={headerHeight}\n bottomOffset={footerHeight}\n displayed={splitPanelDisplayed}\n width={splitPanelOpen && splitPanel ? splitPanelSize : undefined}\n >\n {splitPanelWrapped}\n </SideSplitPanelDrawer>\n )}\n\n {((hasDrawers && selectedDrawer?.id) || (!hasDrawers && !toolsHide)) &&\n (hasDrawers ? (\n <ResizableDrawer\n contentClassName={\n selectedDrawer?.id === 'tools' ? testutilStyles.tools : testutilStyles['active-drawer']\n }\n toggleClassName={testutilStyles['tools-toggle']}\n closeClassName={\n selectedDrawer?.id === 'tools'\n ? testutilStyles['tools-close']\n : testutilStyles['active-drawer-close-button']\n }\n ariaLabels={ariaLabels}\n drawersAriaLabels={selectedDrawer?.ariaLabels}\n width={!isResizeInvalid ? drawerSize : toolsWidth}\n bottomOffset={footerHeight}\n topOffset={headerHeight}\n isMobile={isMobile}\n onToggle={onToolsToggle}\n isOpen={toolsOpen || activeDrawerId !== undefined}\n toggleRefs={toolsRefs}\n type=\"tools\"\n onLoseFocus={hasDrawers ? loseDrawersFocus : loseToolsFocus}\n activeDrawer={selectedDrawer}\n drawers={{\n items: tools && !toolsHide ? [toolsItem, ...drawers.items] : drawers.items,\n activeDrawerId: selectedDrawer?.id,\n onChange: changeDetail => {\n onToolsToggle(false);\n setDrawerLastInteraction({ type: 'close' });\n setActiveDrawerId(changeDetail.activeDrawerId);\n fireNonCancelableEvent(drawers.onChange, changeDetail.activeDrawerId);\n },\n }}\n size={!isResizeInvalid ? drawerSize : toolsWidth}\n onResize={changeDetail => {\n fireNonCancelableEvent(drawers.onResize, changeDetail);\n const drawerItem = drawerItems.find(({ id }) => id === changeDetail.id);\n if (drawerItem?.onResize) {\n fireNonCancelableEvent(drawerItem.onResize, changeDetail);\n }\n setDrawerSizes({ ...drawerSizes, [changeDetail.id]: changeDetail.size });\n }}\n refs={drawerRefs}\n getMaxWidth={getDrawerMaxWidth}\n >\n {selectedDrawer?.content}\n </ResizableDrawer>\n ) : (\n <Drawer\n contentClassName={testutilStyles.tools}\n toggleClassName={testutilStyles['tools-toggle']}\n closeClassName={testutilStyles['tools-close']}\n ariaLabels={ariaLabels}\n width={effectiveToolsWidth}\n bottomOffset={footerHeight}\n topOffset={headerHeight}\n isMobile={isMobile}\n onToggle={onToolsToggle}\n isOpen={toolsOpen}\n toggleRefs={toolsRefs}\n type=\"tools\"\n onLoseFocus={loseToolsFocus}\n >\n {tools}\n </Drawer>\n ))}\n {hasDrawers && (\n <DrawerTriggersBar\n contentClassName={testutilStyles['drawers-desktop-triggers-container']}\n toggleClassName={testutilStyles['drawers-trigger']}\n bottomOffset={footerHeight}\n topOffset={headerHeight}\n isMobile={isMobile}\n drawers={{\n items: tools && !toolsHide ? [toolsItem, ...drawers.items] : drawers.items,\n activeDrawerId: selectedDrawer?.id,\n onChange: changeDetail => {\n if (selectedDrawer?.id !== changeDetail.activeDrawerId) {\n onToolsToggle(changeDetail.activeDrawerId === 'tools');\n focusDrawersButtons();\n setActiveDrawerId(changeDetail.activeDrawerId);\n setDrawerLastInteraction({ type: 'open' });\n fireNonCancelableEvent(drawers.onChange, changeDetail.activeDrawerId);\n }\n },\n ariaLabel: drawers.ariaLabel,\n }}\n />\n )}\n </div>\n </div>\n </div>\n );\n }\n);\n\napplyDisplayName(AppLayout, 'AppLayout');\nexport default AppLayout;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["app-layout/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtG,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,cAAc,MAAM,0BAA0B,CAAC;AACtD,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAC1D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EACL,yBAAyB,GAG1B,MAAM,yCA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AAI,CACb,oBAAC,iBAAiB,IAChB,gBAAgB,EAAE,cAAc,CAAC,oCAAoC,CAAC,EACtE,eAAe,EAAE,cAAc,CAAC,iBAAiB,CAAC,EAClD,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,YAAY,EACvB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE;wBACP,KAAK,EAAE,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK;wBAC1E,cAAc,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,EAAE;wBAClC,QAAQ,EAAE,YAAY,CAAC,EAAE;4BACvB,IAAI,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,EAAE,MAAK,YAAY,CAAC,cAAc,EAAE;gCACtD,aAAa,CAAC,YAAY,CAAC,cAAc,KAAK,OAAO,CAAC,CAAC;gCACvD,mBAAmB,EAAE,CAAC;gCACtB,iBAAiB,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;gCAC/C,wBAAwB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;gCAC3C,sBAAsB,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;6BACvE;wBACH,CAAC;wBACD,SAAS,EAAE,OAAO,CAAC,SAAS;qBAC7B,GACD,CACH,CACG,CACF,CACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AACzC,eAAe,SAAS,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, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport { useControllable } from '../internal/hooks/use-controllable';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { applyDefaults } from './defaults';\nimport { AppLayoutProps } from './interfaces';\nimport { Notifications } from './notifications';\nimport { MobileToolbar } from './mobile-toolbar';\nimport { useFocusControl } from './utils/use-focus-control';\nimport useWindowWidth from './utils/use-window-width';\nimport useContentHeight from './utils/use-content-height';\nimport styles from './styles.css.js';\nimport testutilStyles from './test-classes/styles.css.js';\nimport { findUpUntil } from '../internal/utils/dom';\nimport { AppLayoutContext } from '../internal/context/app-layout-context';\nimport { useContainerQuery } from '../internal/hooks/container-queries';\nimport { useStableEventHandler } from '../internal/hooks/use-stable-event-handler';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport {\n SplitPanelContextProvider,\n SplitPanelContextProps,\n SplitPanelSideToggleProps,\n} from '../internal/context/split-panel-context';\nimport {\n CONSTRAINED_MAIN_PANEL_MIN_HEIGHT,\n CONSTRAINED_PAGE_HEIGHT,\n getSplitPanelDefaultSize,\n MAIN_PANEL_MIN_HEIGHT,\n} from '../split-panel/utils/size-utils';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport ContentWrapper, { ContentWrapperProps } from './content-wrapper';\nimport { Drawer, DrawerTriggersBar } from './drawer';\nimport { ResizableDrawer } from './drawer/resizable-drawer';\nimport { DrawerItem, InternalDrawerProps } from './drawer/interfaces';\nimport { togglesConfig } from './toggles';\nimport { SideSplitPanelDrawer } from './split-panel-drawer';\nimport useAppLayoutOffsets from './utils/use-content-width';\nimport { isDevelopment } from '../internal/is-development';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport RefreshedAppLayout from './visual-refresh';\nimport { useInternalI18n } from '../internal/i18n/context';\nimport { useSplitPanelFocusControl } from './utils/use-split-panel-focus-control';\nimport { useDrawerFocusControl } from './utils/use-drawer-focus-control';\nimport { awsuiPluginsInternal } from '../internal/plugins/api';\nimport { DrawersLayout, convertRuntimeDrawers } from './runtime-api';\n\nexport { AppLayoutProps };\n\nconst AppLayout = React.forwardRef(\n (\n { contentType = 'default', headerSelector = '#b #h', footerSelector = '#b #f', ...rest }: AppLayoutProps,\n ref: React.Ref<AppLayoutProps.Ref>\n ) => {\n const { __internalRootRef } = useBaseComponent<HTMLDivElement>('AppLayout');\n const [runtimeDrawers, setRuntimeDrawers] = useState<DrawersLayout>({ before: [], after: [] });\n const isRefresh = useVisualRefresh();\n\n const i18n = useInternalI18n('app-layout');\n const ariaLabels = {\n navigation: i18n('ariaLabels.navigation', rest.ariaLabels?.navigation),\n navigationClose: i18n('ariaLabels.navigationClose', rest.ariaLabels?.navigationClose),\n navigationToggle: i18n('ariaLabels.navigationToggle', rest.ariaLabels?.navigationToggle),\n notifications: i18n('ariaLabels.notifications', rest.ariaLabels?.notifications),\n tools: i18n('ariaLabels.tools', rest.ariaLabels?.tools),\n toolsClose: i18n('ariaLabels.toolsClose', rest.ariaLabels?.toolsClose),\n toolsToggle: i18n('ariaLabels.toolsToggle', rest.ariaLabels?.toolsToggle),\n };\n\n // This re-builds the props including the default values\n const props = { contentType, headerSelector, footerSelector, ...rest, ariaLabels };\n\n const baseProps = getBaseProps(rest);\n const ownDrawers = (props as any).drawers;\n const disableRuntimeDrawers = (props as any).__disableRuntimeDrawers;\n const combinedDrawers = [...runtimeDrawers.before, ...(ownDrawers?.items ?? []), ...runtimeDrawers.after];\n const finalDrawers = combinedDrawers.length > 0 ? { ...ownDrawers, items: combinedDrawers } : ownDrawers;\n\n useEffect(() => {\n if (disableRuntimeDrawers) {\n return;\n }\n const unsubscribe = awsuiPluginsInternal.appLayout.onDrawersRegistered(drawers =>\n setRuntimeDrawers(convertRuntimeDrawers(drawers))\n );\n return () => {\n unsubscribe();\n setRuntimeDrawers({ before: [], after: [] });\n };\n }, [disableRuntimeDrawers]);\n\n return (\n <div ref={__internalRootRef} {...baseProps}>\n {isRefresh ? (\n <RefreshedAppLayout {...props} {...{ drawers: finalDrawers }} ref={ref} />\n ) : (\n <OldAppLayout {...props} {...{ drawers: finalDrawers }} ref={ref} />\n )}\n </div>\n );\n }\n);\n\nconst OldAppLayout = React.forwardRef(\n (\n {\n navigation,\n navigationWidth = 280,\n navigationHide,\n navigationOpen: controlledNavigationOpen,\n tools,\n toolsWidth = 290,\n toolsHide,\n toolsOpen: controlledToolsOpen,\n breadcrumbs,\n notifications,\n stickyNotifications,\n contentHeader,\n disableContentHeaderOverlap,\n content,\n contentType = 'default',\n disableContentPaddings,\n disableBodyScroll,\n maxContentWidth,\n minContentWidth,\n headerSelector = '#b #h',\n footerSelector = '#b #f',\n ariaLabels,\n splitPanel,\n splitPanelSize: controlledSplitPanelSize,\n splitPanelOpen: controlledSplitPanelOpen,\n splitPanelPreferences: controlledSplitPanelPreferences,\n onSplitPanelPreferencesChange,\n onSplitPanelResize,\n onSplitPanelToggle,\n onNavigationChange,\n onToolsChange,\n ...props\n }: AppLayoutProps,\n ref: React.Ref<AppLayoutProps.Ref>\n ) => {\n if (isDevelopment) {\n if (controlledToolsOpen && toolsHide) {\n warnOnce(\n 'AppLayout',\n `You have enabled both the \\`toolsOpen\\` prop and the \\`toolsHide\\` prop. This is not supported. Set \\`toolsOpen\\` to \\`false\\` when you set \\`toolsHide\\` to \\`true\\`.`\n );\n }\n }\n\n const drawers = (props as InternalDrawerProps).drawers;\n const hasDrawers = drawers && drawers.items.length > 0;\n\n const rootRef = useRef<HTMLDivElement>(null);\n const isMobile = useMobile();\n\n const defaults = applyDefaults(contentType, { maxContentWidth, minContentWidth }, false);\n const [navigationOpen = false, setNavigationOpen] = useControllable(\n controlledNavigationOpen,\n onNavigationChange,\n isMobile ? false : defaults.navigationOpen,\n { componentName: 'AppLayout', controlledProp: 'navigationOpen', changeHandler: 'onNavigationChange' }\n );\n\n const [toolsOpen = false, setToolsOpen] = useControllable(\n controlledToolsOpen,\n onToolsChange,\n isMobile ? false : defaults.toolsOpen,\n { componentName: 'AppLayout', controlledProp: 'toolsOpen', changeHandler: 'onToolsChange' }\n );\n\n const [activeDrawerId, setActiveDrawerId] = useControllable(\n drawers?.activeDrawerId,\n drawers?.onChange,\n isMobile ? false : tools ? defaults.toolsOpen : '',\n {\n componentName: 'AppLayout',\n controlledProp: 'activeDrawerId',\n changeHandler: 'onChange',\n }\n );\n\n const { iconName, getLabels } = togglesConfig.tools;\n const { mainLabel, closeLabel, openLabel } = getLabels(ariaLabels);\n\n const toolsItem = {\n id: 'tools',\n content: tools,\n resizable: false,\n ariaLabels: {\n triggerButton: openLabel,\n closeButton: closeLabel,\n content: mainLabel,\n },\n trigger: {\n iconName: iconName,\n },\n };\n\n const getAllDrawerItems = () => {\n if (!hasDrawers) {\n return;\n }\n return tools ? [toolsItem, ...drawers.items] : drawers.items;\n };\n\n const selectedDrawer =\n tools && toolsOpen\n ? toolsItem\n : hasDrawers\n ? getAllDrawerItems()?.filter((drawerItem: DrawerItem) => drawerItem.id === activeDrawerId)[0]\n : undefined;\n\n const { refs: navigationRefs, setFocus: focusNavButtons } = useFocusControl(navigationOpen);\n const {\n refs: toolsRefs,\n setFocus: focusToolsButtons,\n loseFocus: loseToolsFocus,\n } = useFocusControl(toolsOpen || selectedDrawer !== undefined, true);\n const {\n refs: drawerRefs,\n setFocus: focusDrawersButtons,\n loseFocus: loseDrawersFocus,\n setLastInteraction: setDrawerLastInteraction,\n } = useDrawerFocusControl([selectedDrawer?.resizable], toolsOpen || selectedDrawer !== undefined, true);\n\n const onNavigationToggle = useCallback(\n (open: boolean) => {\n setNavigationOpen(open);\n focusNavButtons();\n fireNonCancelableEvent(onNavigationChange, { open });\n },\n [setNavigationOpen, onNavigationChange, focusNavButtons]\n );\n const onToolsToggle = useCallback(\n (open: boolean) => {\n setToolsOpen(open);\n focusToolsButtons();\n fireNonCancelableEvent(onToolsChange, { open });\n },\n [setToolsOpen, onToolsChange, focusToolsButtons]\n );\n\n const onNavigationClick = (event: React.MouseEvent) => {\n const hasLink = findUpUntil(\n event.target as HTMLElement,\n node => node.tagName === 'A' && !!(node as HTMLAnchorElement).href\n );\n if (hasLink) {\n onNavigationToggle(false);\n }\n };\n\n const navigationVisible = !navigationHide && navigationOpen;\n const toolsVisible = !toolsHide && toolsOpen;\n\n const { contentHeightStyle, headerHeight, footerHeight } = useContentHeight(\n headerSelector,\n footerSelector,\n disableBodyScroll\n );\n const [isSplitpanelForcedPosition, setIsSplitpanelForcedPosition] = useState(false);\n const [isResizeInvalid, setIsResizeInvalid] = useState(false);\n\n const [notificationsHeight, notificationsRef] = useContainerQuery(rect => rect.height);\n const anyPanelOpen = navigationVisible || toolsVisible;\n const hasRenderedNotifications = notificationsHeight ? notificationsHeight > 0 : false;\n const stickyNotificationsHeight = stickyNotifications ? notificationsHeight : null;\n\n const [splitPanelPreferences, setSplitPanelPreferences] = useControllable(\n controlledSplitPanelPreferences,\n onSplitPanelPreferencesChange,\n undefined,\n {\n componentName: 'AppLayout',\n controlledProp: 'splitPanelPreferences',\n changeHandler: 'onSplitPanelPreferencesChange',\n }\n );\n const [splitPanelOpen = false, setSplitPanelOpen] = useControllable(\n controlledSplitPanelOpen,\n onSplitPanelToggle,\n false,\n {\n componentName: 'AppLayout',\n controlledProp: 'splitPanelOpen',\n changeHandler: 'onSplitPanelToggle',\n }\n );\n\n const drawerItems = useMemo(() => drawers?.items || [], [drawers?.items]);\n\n const getDrawerItemSizes = useCallback(() => {\n const sizes: { [id: string]: number } = {};\n if (!drawerItems) {\n return {};\n }\n\n for (const item of drawerItems) {\n if (item.defaultSize) {\n sizes[item.id] = item.defaultSize || toolsWidth;\n }\n }\n return sizes;\n }, [drawerItems, toolsWidth]);\n\n const [drawerSizes, setDrawerSizes] = useState(() => getDrawerItemSizes());\n\n useEffect(() => {\n // Ensure we only set new drawer items by performing a shallow merge\n // of the latest drawer item sizes, and previous drawer item sizes.\n setDrawerSizes(prev => ({ ...getDrawerItemSizes(), ...prev }));\n }, [getDrawerItemSizes]);\n\n const drawerSize =\n selectedDrawer?.id && drawerSizes[selectedDrawer?.id] ? drawerSizes[selectedDrawer?.id] : toolsWidth;\n\n const splitPanelPosition = splitPanelPreferences?.position || 'bottom';\n const [splitPanelReportedToggle, setSplitPanelReportedToggle] = useState<SplitPanelSideToggleProps>({\n displayed: false,\n ariaLabel: undefined,\n });\n const splitPanelDisplayed = !!(splitPanel && (splitPanelReportedToggle.displayed || splitPanelOpen));\n\n const closedDrawerWidth = 40;\n const effectiveNavigationWidth = navigationHide ? 0 : navigationOpen ? navigationWidth : closedDrawerWidth;\n\n const getEffectiveToolsWidth = () => {\n if (toolsHide && (!splitPanelDisplayed || splitPanelPreferences?.position !== 'side') && !drawers) {\n return 0;\n }\n\n if (selectedDrawer?.resizable) {\n return drawerSize;\n }\n\n if (toolsOpen || activeDrawerId) {\n return toolsWidth;\n }\n\n return closedDrawerWidth;\n };\n\n const effectiveToolsWidth = getEffectiveToolsWidth();\n\n const defaultSplitPanelSize = getSplitPanelDefaultSize(splitPanelPosition);\n const [splitPanelSize = defaultSplitPanelSize, setSplitPanelSize] = useControllable(\n controlledSplitPanelSize,\n onSplitPanelResize,\n defaultSplitPanelSize,\n {\n componentName: 'AppLayout',\n controlledProp: 'splitPanelSize',\n changeHandler: 'onSplitPanelResize',\n }\n );\n\n const mainContentRef = useRef<HTMLDivElement>(null);\n const legacyScrollRootRef = useRef<HTMLElement>(null);\n\n const { refs: splitPanelRefs, setLastInteraction: setSplitPanelLastInteraction } = useSplitPanelFocusControl([\n splitPanelPreferences,\n splitPanelOpen,\n ]);\n\n const onSplitPanelPreferencesSet = useCallback(\n (detail: { position: 'side' | 'bottom' }) => {\n setSplitPanelPreferences(detail);\n setSplitPanelLastInteraction({ type: 'position' });\n fireNonCancelableEvent(onSplitPanelPreferencesChange, detail);\n },\n [setSplitPanelPreferences, onSplitPanelPreferencesChange, setSplitPanelLastInteraction]\n );\n const onSplitPanelSizeSet = useCallback(\n (detail: { size: number }) => {\n setSplitPanelSize(detail.size);\n fireNonCancelableEvent(onSplitPanelResize, detail);\n },\n [setSplitPanelSize, onSplitPanelResize]\n );\n\n const onSplitPanelToggleHandler = useCallback(() => {\n setSplitPanelOpen(!splitPanelOpen);\n setSplitPanelLastInteraction({ type: splitPanelOpen ? 'close' : 'open' });\n fireNonCancelableEvent(onSplitPanelToggle, { open: !splitPanelOpen });\n }, [setSplitPanelOpen, splitPanelOpen, onSplitPanelToggle, setSplitPanelLastInteraction]);\n\n const getSplitPanelMaxWidth = useStableEventHandler(() => {\n if (!mainContentRef.current || !defaults.minContentWidth) {\n return NaN;\n }\n\n const width = parseInt(getComputedStyle(mainContentRef.current).width);\n // when disableContentPaddings is true there is less available space,\n // so we subtract space-scaled-2x-xxxl * 2 for left and right padding\n const contentPadding = disableContentPaddings ? 80 : 0;\n const spaceAvailable = width - defaults.minContentWidth - contentPadding;\n\n const spaceTaken = finalSplitPanePosition === 'side' ? splitPanelSize : 0;\n return Math.max(0, spaceTaken + spaceAvailable);\n });\n\n const getDrawerMaxWidth = useStableEventHandler(() => {\n if (!mainContentRef.current || !defaults.minContentWidth) {\n return NaN;\n }\n\n // Either use the computed width of the drawer or the drawerSize as defined.\n const width = parseInt(getComputedStyle(mainContentRef.current).width || `${drawerSize}`);\n\n // when disableContentPaddings is true there is less available space,\n // so we subtract space-scaled-2x-xxxl * 2 for left and right padding\n const contentPadding = disableContentPaddings ? 80 : 0;\n const spaceAvailable = width - defaults.minContentWidth - contentPadding;\n const spaceTaken = drawerSize;\n\n return Math.max(0, spaceTaken + spaceAvailable);\n });\n\n const getSplitPanelMaxHeight = useStableEventHandler(() => {\n if (typeof document === 'undefined') {\n return 0; // render the split panel in its minimum possible size\n } else if (disableBodyScroll && legacyScrollRootRef.current) {\n const availableHeight = legacyScrollRootRef.current.clientHeight;\n return availableHeight < CONSTRAINED_PAGE_HEIGHT ? availableHeight : availableHeight - MAIN_PANEL_MIN_HEIGHT;\n } else {\n const availableHeight = document.documentElement.clientHeight - headerHeight - footerHeight;\n return availableHeight < CONSTRAINED_PAGE_HEIGHT\n ? availableHeight - CONSTRAINED_MAIN_PANEL_MIN_HEIGHT\n : availableHeight - MAIN_PANEL_MIN_HEIGHT;\n }\n });\n\n const finalSplitPanePosition = isSplitpanelForcedPosition ? 'bottom' : splitPanelPosition;\n\n const splitPaneAvailableOnTheSide = splitPanelDisplayed && finalSplitPanePosition === 'side';\n const splitPanelOpenOnTheSide = splitPaneAvailableOnTheSide && splitPanelOpen;\n\n const toggleButtonsBarWidth = 0;\n\n const windowWidth = useWindowWidth();\n const { left: leftOffset, right: rightOffset } = useAppLayoutOffsets(rootRef.current);\n const contentWidthWithSplitPanel =\n windowWidth -\n leftOffset -\n rightOffset -\n effectiveToolsWidth -\n effectiveNavigationWidth -\n (disableContentPaddings ? 0 : toggleButtonsBarWidth);\n\n useEffect(() => {\n const contentWidth = contentWidthWithSplitPanel - splitPanelSize;\n\n setIsSplitpanelForcedPosition(isMobile || (defaults.minContentWidth || 0) > contentWidth);\n setIsResizeInvalid(isMobile || (defaults.minContentWidth || 0) > contentWidthWithSplitPanel);\n // This is a workaround to avoid a forced position due to splitPanelSize, which is\n // user controlled variable.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [contentWidthWithSplitPanel, drawerSize, defaults.minContentWidth, isMobile]);\n\n const navigationClosedWidth = navigationHide || isMobile ? 0 : closedDrawerWidth;\n const toolsClosedWidth = toolsHide || isMobile || (!hasDrawers && toolsHide) ? 0 : closedDrawerWidth;\n\n const contentMaxWidthStyle = !isMobile ? { maxWidth: defaults.maxContentWidth } : undefined;\n\n const [splitPanelReportedSize, setSplitPanelReportedSize] = useState(0);\n const [splitPanelReportedHeaderHeight, setSplitPanelReportedHeaderHeight] = useState(0);\n\n const getSplitPanelRightOffset = () => {\n if (isMobile) {\n return 0;\n }\n\n if (hasDrawers) {\n if (activeDrawerId) {\n if (!isResizeInvalid && drawerSize) {\n return drawerSize + closedDrawerWidth;\n }\n\n return toolsWidth + closedDrawerWidth;\n }\n return closedDrawerWidth;\n }\n\n if (!toolsHide && toolsOpen) {\n return toolsWidth;\n }\n return toolsClosedWidth;\n };\n\n const splitPanelContext: SplitPanelContextProps = {\n topOffset: headerHeight + (finalSplitPanePosition === 'bottom' ? stickyNotificationsHeight || 0 : 0),\n bottomOffset: footerHeight,\n leftOffset:\n leftOffset + (isMobile ? 0 : !navigationHide && navigationOpen ? navigationWidth : navigationClosedWidth),\n rightOffset: rightOffset + getSplitPanelRightOffset(),\n position: finalSplitPanePosition,\n size: splitPanelSize,\n getMaxWidth: getSplitPanelMaxWidth,\n getMaxHeight: getSplitPanelMaxHeight,\n disableContentPaddings,\n contentWidthStyles: contentMaxWidthStyle,\n isOpen: splitPanelOpen,\n isMobile,\n isForcedPosition: isSplitpanelForcedPosition,\n onResize: onSplitPanelSizeSet,\n onToggle: onSplitPanelToggleHandler,\n onPreferencesChange: onSplitPanelPreferencesSet,\n setSplitPanelToggle: setSplitPanelReportedToggle,\n reportSize: setSplitPanelReportedSize,\n reportHeaderHeight: setSplitPanelReportedHeaderHeight,\n refs: splitPanelRefs,\n };\n const splitPanelWrapped = splitPanel && (\n <SplitPanelContextProvider value={splitPanelContext}>{splitPanel}</SplitPanelContextProvider>\n );\n\n const contentWrapperProps: ContentWrapperProps = {\n contentType,\n navigationPadding: navigationHide || !!navigationOpen,\n contentWidthStyles: !isMobile\n ? { minWidth: defaults.minContentWidth, maxWidth: defaults.maxContentWidth }\n : undefined,\n toolsPadding:\n // tools padding is displayed in one of the three cases\n // 1. Nothing on the that screen edge (no tools panel and no split panel)\n toolsHide ||\n (hasDrawers && !activeDrawerId && (!splitPanelDisplayed || finalSplitPanePosition !== 'side')) ||\n // 2. Tools panel is present and open\n toolsVisible ||\n // 3. Split panel is open in side position\n splitPanelOpenOnTheSide,\n isMobile,\n };\n\n useImperativeHandle(\n ref,\n () => ({\n openTools: () => onToolsToggle(true),\n closeNavigationIfNecessary: () => {\n if (isMobile) {\n onNavigationToggle(false);\n }\n },\n focusToolsClose: () => focusToolsButtons(true),\n }),\n [isMobile, onNavigationToggle, onToolsToggle, focusToolsButtons]\n );\n\n const splitPanelBottomOffset =\n (!splitPanelDisplayed || finalSplitPanePosition !== 'bottom'\n ? undefined\n : splitPanelOpen\n ? splitPanelReportedSize\n : splitPanelReportedHeaderHeight) ?? undefined;\n\n const [mobileBarHeight, mobileBarRef] = useContainerQuery(rect => rect.height);\n\n return (\n <div\n className={clsx(styles.root, testutilStyles.root, disableBodyScroll && styles['root-no-scroll'])}\n ref={rootRef}\n >\n <div className={styles['layout-wrapper']} style={contentHeightStyle}>\n {isMobile && (!toolsHide || !navigationHide || breadcrumbs) && (\n <MobileToolbar\n anyPanelOpen={anyPanelOpen}\n toggleRefs={{ navigation: navigationRefs.toggle, tools: toolsRefs.toggle }}\n topOffset={headerHeight}\n ariaLabels={ariaLabels}\n navigationHide={navigationHide}\n toolsHide={toolsHide}\n onNavigationOpen={() => onNavigationToggle(true)}\n onToolsOpen={() => onToolsToggle(true)}\n unfocusable={anyPanelOpen}\n mobileBarRef={mobileBarRef}\n drawers={\n drawers\n ? {\n items: tools && !toolsHide ? [toolsItem, ...drawers.items] : drawers.items,\n activeDrawerId: selectedDrawer?.id,\n onChange: changeDetail => {\n if (selectedDrawer?.id !== changeDetail.activeDrawerId) {\n onToolsToggle(changeDetail.activeDrawerId === 'tools');\n focusDrawersButtons();\n setActiveDrawerId(changeDetail.activeDrawerId);\n setDrawerLastInteraction({ type: 'open' });\n fireNonCancelableEvent(drawers.onChange, changeDetail.activeDrawerId);\n }\n },\n ariaLabel: drawers.ariaLabel,\n }\n : undefined\n }\n >\n {breadcrumbs}\n </MobileToolbar>\n )}\n <div className={clsx(styles.layout, disableBodyScroll && styles['layout-no-scroll'])}>\n {!navigationHide && (\n <Drawer\n contentClassName={testutilStyles.navigation}\n toggleClassName={testutilStyles['navigation-toggle']}\n closeClassName={testutilStyles['navigation-close']}\n ariaLabels={ariaLabels}\n bottomOffset={footerHeight}\n topOffset={headerHeight}\n isMobile={isMobile}\n isOpen={navigationOpen}\n onClick={isMobile ? onNavigationClick : undefined}\n onToggle={onNavigationToggle}\n toggleRefs={navigationRefs}\n type=\"navigation\"\n width={navigationWidth}\n >\n {navigation}\n </Drawer>\n )}\n <main\n ref={legacyScrollRootRef}\n className={clsx(styles['layout-main'], {\n [styles['layout-main-scrollable']]: disableBodyScroll,\n [testutilStyles['disable-body-scroll-root']]: disableBodyScroll,\n [styles.unfocusable]: isMobile && anyPanelOpen,\n })}\n >\n <div\n style={{\n marginBottom: splitPanelBottomOffset,\n }}\n >\n {notifications && (\n <Notifications\n disableContentPaddings={disableContentPaddings}\n testUtilsClassName={testutilStyles.notifications}\n labels={ariaLabels}\n topOffset={disableBodyScroll ? 0 : headerHeight}\n sticky={!isMobile && stickyNotifications}\n ref={notificationsRef}\n >\n {notifications}\n </Notifications>\n )}\n {((!isMobile && breadcrumbs) || contentHeader) && (\n <ContentWrapper {...contentWrapperProps}>\n {!isMobile && breadcrumbs && (\n <div className={clsx(testutilStyles.breadcrumbs, styles['breadcrumbs-desktop'])}>\n {breadcrumbs}\n </div>\n )}\n {contentHeader && (\n <div\n className={clsx(\n styles['content-header-wrapper'],\n !hasRenderedNotifications &&\n (isMobile || !breadcrumbs) &&\n styles['content-extra-top-padding'],\n !hasRenderedNotifications && !breadcrumbs && styles['content-header-wrapper-first-child'],\n !disableContentHeaderOverlap && styles['content-header-wrapper-overlapped']\n )}\n >\n {contentHeader}\n </div>\n )}\n </ContentWrapper>\n )}\n <ContentWrapper\n {...contentWrapperProps}\n ref={mainContentRef}\n disablePaddings={disableContentPaddings}\n // eslint-disable-next-line react/forbid-component-props\n className={clsx(\n !disableContentPaddings && styles['content-wrapper'],\n !disableContentPaddings &&\n (isMobile || !breadcrumbs) &&\n !contentHeader &&\n styles['content-extra-top-padding'],\n testutilStyles.content,\n !disableContentHeaderOverlap && contentHeader && styles['content-overlapped'],\n !hasRenderedNotifications &&\n !breadcrumbs &&\n !isMobile &&\n !contentHeader &&\n styles['content-wrapper-first-child']\n )}\n >\n <AppLayoutContext.Provider\n value={{\n stickyOffsetTop:\n // We don't support the table header being sticky in case the deprecated disableBodyScroll is enabled,\n // therefore we ensure the table header scrolls out of view by offseting a large enough value (9999px)\n (disableBodyScroll ? (isMobile ? -9999 : 0) : headerHeight) +\n (isMobile ? 0 : stickyNotificationsHeight !== null ? stickyNotificationsHeight : 0),\n stickyOffsetBottom: footerHeight + (splitPanelBottomOffset || 0),\n mobileBarHeight: mobileBarHeight ?? 0,\n }}\n >\n {content}\n </AppLayoutContext.Provider>\n </ContentWrapper>\n </div>\n {finalSplitPanePosition === 'bottom' && splitPanelWrapped}\n </main>\n\n {finalSplitPanePosition === 'side' && (\n <SideSplitPanelDrawer\n topOffset={headerHeight}\n bottomOffset={footerHeight}\n displayed={splitPanelDisplayed}\n width={splitPanelOpen && splitPanel ? splitPanelSize : undefined}\n >\n {splitPanelWrapped}\n </SideSplitPanelDrawer>\n )}\n\n {((hasDrawers && selectedDrawer?.id) || (!hasDrawers && !toolsHide)) &&\n (hasDrawers ? (\n <ResizableDrawer\n contentClassName={\n selectedDrawer?.id === 'tools' ? testutilStyles.tools : testutilStyles['active-drawer']\n }\n toggleClassName={testutilStyles['tools-toggle']}\n closeClassName={\n selectedDrawer?.id === 'tools'\n ? testutilStyles['tools-close']\n : testutilStyles['active-drawer-close-button']\n }\n ariaLabels={ariaLabels}\n drawersAriaLabels={selectedDrawer?.ariaLabels}\n width={!isResizeInvalid ? drawerSize : toolsWidth}\n bottomOffset={footerHeight}\n topOffset={headerHeight}\n isMobile={isMobile}\n onToggle={onToolsToggle}\n isOpen={toolsOpen || activeDrawerId !== undefined}\n toggleRefs={toolsRefs}\n type=\"tools\"\n onLoseFocus={hasDrawers ? loseDrawersFocus : loseToolsFocus}\n activeDrawer={selectedDrawer}\n drawers={{\n items: tools && !toolsHide ? [toolsItem, ...drawers.items] : drawers.items,\n activeDrawerId: selectedDrawer?.id,\n onChange: changeDetail => {\n onToolsToggle(false);\n setDrawerLastInteraction({ type: 'close' });\n setActiveDrawerId(changeDetail.activeDrawerId);\n fireNonCancelableEvent(drawers.onChange, changeDetail.activeDrawerId);\n },\n }}\n size={!isResizeInvalid ? drawerSize : toolsWidth}\n onResize={changeDetail => {\n fireNonCancelableEvent(drawers.onResize, changeDetail);\n const drawerItem = drawerItems.find(({ id }) => id === changeDetail.id);\n if (drawerItem?.onResize) {\n fireNonCancelableEvent(drawerItem.onResize, changeDetail);\n }\n setDrawerSizes({ ...drawerSizes, [changeDetail.id]: changeDetail.size });\n }}\n refs={drawerRefs}\n getMaxWidth={getDrawerMaxWidth}\n >\n {selectedDrawer?.content}\n </ResizableDrawer>\n ) : (\n <Drawer\n contentClassName={testutilStyles.tools}\n toggleClassName={testutilStyles['tools-toggle']}\n closeClassName={testutilStyles['tools-close']}\n ariaLabels={ariaLabels}\n width={effectiveToolsWidth}\n bottomOffset={footerHeight}\n topOffset={headerHeight}\n isMobile={isMobile}\n onToggle={onToolsToggle}\n isOpen={toolsOpen}\n toggleRefs={toolsRefs}\n type=\"tools\"\n onLoseFocus={loseToolsFocus}\n >\n {tools}\n </Drawer>\n ))}\n {hasDrawers && (\n <DrawerTriggersBar\n contentClassName={testutilStyles['drawers-desktop-triggers-container']}\n toggleClassName={testutilStyles['drawers-trigger']}\n bottomOffset={footerHeight}\n topOffset={headerHeight}\n isMobile={isMobile}\n drawers={{\n items: tools && !toolsHide ? [toolsItem, ...drawers.items] : drawers.items,\n activeDrawerId: selectedDrawer?.id,\n onChange: changeDetail => {\n if (selectedDrawer?.id !== changeDetail.activeDrawerId) {\n onToolsToggle(changeDetail.activeDrawerId === 'tools');\n focusDrawersButtons();\n setActiveDrawerId(changeDetail.activeDrawerId);\n setDrawerLastInteraction({ type: 'open' });\n fireNonCancelableEvent(drawers.onChange, changeDetail.activeDrawerId);\n }\n },\n ariaLabel: drawers.ariaLabel,\n }}\n />\n )}\n </div>\n </div>\n </div>\n );\n }\n);\n\napplyDisplayName(AppLayout, 'AppLayout');\nexport default AppLayout;\n"]}
@@ -1,8 +1,8 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "notifications": "awsui_notifications_1hmm4_1cly4_9",
5
- "notifications-sticky": "awsui_notifications-sticky_1hmm4_1cly4_10",
6
- "no-content-paddings": "awsui_no-content-paddings_1hmm4_1cly4_25"
4
+ "notifications": "awsui_notifications_1hmm4_17p9e_9",
5
+ "notifications-sticky": "awsui_notifications-sticky_1hmm4_17p9e_10",
6
+ "no-content-paddings": "awsui_no-content-paddings_1hmm4_17p9e_25"
7
7
  };
8
8
 
@@ -6,26 +6,26 @@
6
6
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
7
7
  SPDX-License-Identifier: Apache-2.0
8
8
  */
9
- .awsui_notifications_1hmm4_1cly4_9:not(#\9),
10
- .awsui_notifications-sticky_1hmm4_1cly4_10:not(#\9) {
9
+ .awsui_notifications_1hmm4_17p9e_9:not(#\9),
10
+ .awsui_notifications-sticky_1hmm4_17p9e_10:not(#\9) {
11
11
  z-index: 850;
12
12
  }
13
13
 
14
- .awsui_notifications_1hmm4_1cly4_9:not(#\9) {
14
+ .awsui_notifications_1hmm4_17p9e_9:not(#\9) {
15
15
  /* This is necessary for the z-index to have effect */
16
16
  position: relative;
17
17
  }
18
18
 
19
- .awsui_notifications-sticky_1hmm4_1cly4_10:not(#\9) {
19
+ .awsui_notifications-sticky_1hmm4_17p9e_10:not(#\9) {
20
20
  top: 0;
21
21
  position: sticky;
22
- --awsui-flashbar-sticky-bottom-margin-8nglyc: var(--space-xxl-sgg5p8, 32px);
22
+ --awsui-flashbar-sticky-bottom-margin-zw2xxa: var(--space-xxl-sgg5p8, 32px);
23
23
  }
24
24
 
25
- .awsui_no-content-paddings_1hmm4_1cly4_25:not(#\9) {
25
+ .awsui_no-content-paddings_1hmm4_17p9e_25:not(#\9) {
26
26
  /*
27
27
  When using the disableContentPaddings option, the Flashbar will use this custom property to add additional space
28
28
  when the notification bar is rendered, to prevent it from overlapping the content.
29
29
  */
30
- --awsui-stacked-notifications-bottom-margin-8nglyc: var(--space-scaled-l-2rs0gk, 20px);
30
+ --awsui-stacked-notifications-bottom-margin-zw2xxa: var(--space-scaled-l-2rs0gk, 20px);
31
31
  }
@@ -2,8 +2,8 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "notifications": "awsui_notifications_1hmm4_1cly4_9",
6
- "notifications-sticky": "awsui_notifications-sticky_1hmm4_1cly4_10",
7
- "no-content-paddings": "awsui_no-content-paddings_1hmm4_1cly4_25"
5
+ "notifications": "awsui_notifications_1hmm4_17p9e_9",
6
+ "notifications-sticky": "awsui_notifications-sticky_1hmm4_17p9e_10",
7
+ "no-content-paddings": "awsui_no-content-paddings_1hmm4_17p9e_25"
8
8
  };
9
9
 
@@ -0,0 +1,8 @@
1
+ import { DrawerConfig as RuntimeDrawerConfig } from '../internal/plugins/drawers-controller';
2
+ import { DrawerItem } from './drawer/interfaces';
3
+ export interface DrawersLayout {
4
+ before: Array<DrawerItem>;
5
+ after: Array<DrawerItem>;
6
+ }
7
+ export declare function convertRuntimeDrawers(drawers: Array<RuntimeDrawerConfig>): DrawersLayout;
8
+ //# sourceMappingURL=runtime-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-api.d.ts","sourceRoot":"lib/default/","sources":["app-layout/runtime-api.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAoBjD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC1B;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,KAAK,CAAC,mBAAmB,CAAC,GAAG,aAAa,CA0BxF"}
@@ -0,0 +1,35 @@
1
+ import { __rest } from "tslib";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ import React, { useEffect, useRef } from 'react';
5
+ function RuntimeContentWrapper({ mountContent, unmountContent }) {
6
+ const ref = useRef(null);
7
+ useEffect(() => {
8
+ const container = ref.current;
9
+ mountContent(container);
10
+ return () => unmountContent(container);
11
+ // eslint-disable-next-line react-hooks/exhaustive-deps
12
+ }, []);
13
+ return React.createElement("div", { ref: ref });
14
+ }
15
+ export function convertRuntimeDrawers(drawers) {
16
+ const converted = drawers.map((_a) => {
17
+ var { mountContent, unmountContent, trigger } = _a, runtimeDrawer = __rest(_a, ["mountContent", "unmountContent", "trigger"]);
18
+ return (Object.assign(Object.assign({}, runtimeDrawer), { trigger: trigger.iconSvg
19
+ ? Object.assign(Object.assign({}, trigger), { iconSvg: (
20
+ // eslint-disable-next-line react/no-danger
21
+ React.createElement("span", { dangerouslySetInnerHTML: { __html: trigger.iconSvg } })) }) : trigger, content: (React.createElement(RuntimeContentWrapper, { key: runtimeDrawer.id, mountContent: mountContent, unmountContent: unmountContent })) }));
22
+ });
23
+ converted.sort((a, b) => {
24
+ var _a, _b;
25
+ if (b.orderPriority !== a.orderPriority) {
26
+ return Math.sign(((_a = b.orderPriority) !== null && _a !== void 0 ? _a : 0) - ((_b = a.orderPriority) !== null && _b !== void 0 ? _b : 0));
27
+ }
28
+ return b.id < a.id ? 1 : -1;
29
+ });
30
+ return {
31
+ before: converted.filter(item => { var _a; return ((_a = item.orderPriority) !== null && _a !== void 0 ? _a : 0) > 0; }),
32
+ after: converted.filter(item => { var _a; return ((_a = item.orderPriority) !== null && _a !== void 0 ? _a : 0) <= 0; }),
33
+ };
34
+ }
35
+ //# sourceMappingURL=runtime-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-api.js","sourceRoot":"lib/default/","sources":["app-layout/runtime-api.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sC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AC,CAAC,MAAA,CAAC,CAAC,aAAa,mCAAI,CAAC,CAAC,GAAG,CAAC,MAAA,CAAC,CAAC,aAAa,mCAAI,CAAC,CAAC,CAAC,CAAC;SACnE;QACD,OAAO,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;IACH,OAAO;QACL,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,WAAC,OAAA,CAAC,MAAA,IAAI,CAAC,aAAa,mCAAI,CAAC,CAAC,GAAG,CAAC,CAAA,EAAA,CAAC;QAC/D,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,WAAC,OAAA,CAAC,MAAA,IAAI,CAAC,aAAa,mCAAI,CAAC,CAAC,IAAI,CAAC,CAAA,EAAA,CAAC;KAChE,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport { DrawerConfig as RuntimeDrawerConfig } from '../internal/plugins/drawers-controller';\nimport { DrawerItem } from './drawer/interfaces';\n\ninterface RuntimeContentWrapperProps {\n mountContent: RuntimeDrawerConfig['mountContent'];\n unmountContent: RuntimeDrawerConfig['unmountContent'];\n}\n\nfunction RuntimeContentWrapper({ mountContent, unmountContent }: RuntimeContentWrapperProps) {\n const ref = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const container = ref.current!;\n mountContent(container);\n return () => unmountContent(container);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return <div ref={ref}></div>;\n}\n\nexport interface DrawersLayout {\n before: Array<DrawerItem>;\n after: Array<DrawerItem>;\n}\n\nexport function convertRuntimeDrawers(drawers: Array<RuntimeDrawerConfig>): DrawersLayout {\n const converted = drawers.map(({ mountContent, unmountContent, trigger, ...runtimeDrawer }) => ({\n ...runtimeDrawer,\n trigger: trigger.iconSvg\n ? {\n ...trigger,\n iconSvg: (\n // eslint-disable-next-line react/no-danger\n <span dangerouslySetInnerHTML={{ __html: trigger.iconSvg }} />\n ),\n }\n : trigger,\n content: (\n <RuntimeContentWrapper key={runtimeDrawer.id} mountContent={mountContent} unmountContent={unmountContent} />\n ),\n }));\n converted.sort((a, b) => {\n if (b.orderPriority !== a.orderPriority) {\n return Math.sign((b.orderPriority ?? 0) - (a.orderPriority ?? 0));\n }\n return b.id < a.id ? 1 : -1;\n });\n return {\n before: converted.filter(item => (item.orderPriority ?? 0) > 0),\n after: converted.filter(item => (item.orderPriority ?? 0) <= 0),\n };\n}\n"]}
@@ -1,18 +1,22 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_lm6vo_j1rmw_97",
5
- "layout-wrapper": "awsui_layout-wrapper_lm6vo_j1rmw_98",
6
- "root-no-scroll": "awsui_root-no-scroll_lm6vo_j1rmw_105",
7
- "layout": "awsui_layout_lm6vo_j1rmw_98",
8
- "layout-no-scroll": "awsui_layout-no-scroll_lm6vo_j1rmw_116",
9
- "layout-main": "awsui_layout-main_lm6vo_j1rmw_120",
10
- "layout-main-scrollable": "awsui_layout-main-scrollable_lm6vo_j1rmw_126",
11
- "unfocusable": "awsui_unfocusable_lm6vo_j1rmw_131",
12
- "breadcrumbs-desktop": "awsui_breadcrumbs-desktop_lm6vo_j1rmw_135",
13
- "content-header-wrapper": "awsui_content-header-wrapper_lm6vo_j1rmw_140",
14
- "content-wrapper": "awsui_content-wrapper_lm6vo_j1rmw_144",
15
- "content-overlapped": "awsui_content-overlapped_lm6vo_j1rmw_148",
16
- "content-extra-top-padding": "awsui_content-extra-top-padding_lm6vo_j1rmw_152"
4
+ "resize-active": "awsui_resize-active_lm6vo_1hwq2_98",
5
+ "resize-side": "awsui_resize-side_lm6vo_1hwq2_104",
6
+ "resize-bottom": "awsui_resize-bottom_lm6vo_1hwq2_107",
7
+ "with-motion": "awsui_with-motion_lm6vo_1hwq2_112",
8
+ "root": "awsui_root_lm6vo_1hwq2_127",
9
+ "layout-wrapper": "awsui_layout-wrapper_lm6vo_1hwq2_128",
10
+ "root-no-scroll": "awsui_root-no-scroll_lm6vo_1hwq2_135",
11
+ "layout": "awsui_layout_lm6vo_1hwq2_128",
12
+ "layout-no-scroll": "awsui_layout-no-scroll_lm6vo_1hwq2_146",
13
+ "layout-main": "awsui_layout-main_lm6vo_1hwq2_150",
14
+ "layout-main-scrollable": "awsui_layout-main-scrollable_lm6vo_1hwq2_156",
15
+ "unfocusable": "awsui_unfocusable_lm6vo_1hwq2_161",
16
+ "breadcrumbs-desktop": "awsui_breadcrumbs-desktop_lm6vo_1hwq2_165",
17
+ "content-header-wrapper": "awsui_content-header-wrapper_lm6vo_1hwq2_170",
18
+ "content-wrapper": "awsui_content-wrapper_lm6vo_1hwq2_174",
19
+ "content-overlapped": "awsui_content-overlapped_lm6vo_1hwq2_178",
20
+ "content-extra-top-padding": "awsui_content-extra-top-padding_lm6vo_1hwq2_182"
17
21
  };
18
22
 
@@ -94,61 +94,92 @@ 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_j1rmw_97:not(#\9),
98
- .awsui_layout-wrapper_lm6vo_j1rmw_98:not(#\9) {
97
+ /* stylelint-disable selector-combinator-disallowed-list, selector-max-type, selector-max-universal */
98
+ .awsui_resize-active_lm6vo_1hwq2_98 *:not(#\9) {
99
+ -webkit-user-select: none;
100
+ user-select: none;
101
+ }
102
+ .awsui_resize-active_lm6vo_1hwq2_98 iframe:not(#\9) {
103
+ pointer-events: none;
104
+ }
105
+ .awsui_resize-side_lm6vo_1hwq2_104 *:not(#\9) {
106
+ cursor: ew-resize;
107
+ }
108
+ .awsui_resize-bottom_lm6vo_1hwq2_107 *:not(#\9) {
109
+ cursor: ns-resize;
110
+ }
111
+
112
+ /* stylelint-enable selector-combinator-disallowed-list, selector-max-type, selector-max-universal */
113
+ .awsui_with-motion_lm6vo_1hwq2_112:not(#\9) {
114
+ transition: var(--motion-duration-refresh-only-fast-q2mprk, 115ms);
115
+ transition-property: border-color, opacity, width;
116
+ }
117
+ @media (prefers-reduced-motion: reduce) {
118
+ .awsui_with-motion_lm6vo_1hwq2_112:not(#\9) {
119
+ animation: none;
120
+ transition: none;
121
+ }
122
+ }
123
+ .awsui-motion-disabled .awsui_with-motion_lm6vo_1hwq2_112:not(#\9), .awsui-mode-entering .awsui_with-motion_lm6vo_1hwq2_112:not(#\9) {
124
+ animation: none;
125
+ transition: none;
126
+ }
127
+
128
+ .awsui_root_lm6vo_1hwq2_127:not(#\9),
129
+ .awsui_layout-wrapper_lm6vo_1hwq2_128:not(#\9) {
99
130
  display: flex;
100
131
  flex-direction: column;
101
132
  position: relative;
102
133
  color: var(--color-text-body-default-mmvcvg, #000716);
103
134
  }
104
135
 
105
- .awsui_root-no-scroll_lm6vo_j1rmw_105:not(#\9) {
136
+ .awsui_root-no-scroll_lm6vo_1hwq2_135:not(#\9) {
106
137
  position: relative;
107
138
  z-index: 1;
108
139
  }
109
140
 
110
- .awsui_layout_lm6vo_j1rmw_98:not(#\9) {
141
+ .awsui_layout_lm6vo_1hwq2_128:not(#\9) {
111
142
  flex: 1 1 auto;
112
143
  display: flex;
113
144
  align-items: stretch;
114
145
  background-color: var(--color-background-layout-main-m49752, #ffffff);
115
146
  }
116
- .awsui_layout-no-scroll_lm6vo_j1rmw_116:not(#\9) {
147
+ .awsui_layout-no-scroll_lm6vo_1hwq2_146:not(#\9) {
117
148
  overflow: hidden;
118
149
  }
119
150
 
120
- .awsui_layout-main_lm6vo_j1rmw_120:not(#\9) {
151
+ .awsui_layout-main_lm6vo_1hwq2_150:not(#\9) {
121
152
  flex: 1;
122
153
  min-width: 0;
123
154
  background-color: var(--color-background-layout-main-m49752, #ffffff);
124
155
  position: relative;
125
156
  }
126
- .awsui_layout-main-scrollable_lm6vo_j1rmw_126:not(#\9) {
157
+ .awsui_layout-main-scrollable_lm6vo_1hwq2_156:not(#\9) {
127
158
  overflow: auto;
128
159
  }
129
160
 
130
161
  /* stylelint-disable-next-line selector-combinator-disallowed-list, selector-max-universal */
131
- .awsui_unfocusable_lm6vo_j1rmw_131 *:not(#\9) {
162
+ .awsui_unfocusable_lm6vo_1hwq2_161 *:not(#\9) {
132
163
  visibility: hidden;
133
164
  }
134
165
 
135
- .awsui_breadcrumbs-desktop_lm6vo_j1rmw_135:not(#\9) {
166
+ .awsui_breadcrumbs-desktop_lm6vo_1hwq2_165:not(#\9) {
136
167
  padding-top: var(--space-scaled-m-gxhdpl, 16px);
137
168
  padding-bottom: var(--space-scaled-s-913kwi, 12px);
138
169
  }
139
170
 
140
- .awsui_content-header-wrapper_lm6vo_j1rmw_140:not(#\9) {
171
+ .awsui_content-header-wrapper_lm6vo_1hwq2_170:not(#\9) {
141
172
  padding-bottom: var(--space-content-header-padding-bottom-2cx87f, 24px);
142
173
  }
143
174
 
144
- .awsui_content-wrapper_lm6vo_j1rmw_144:not(#\9) {
175
+ .awsui_content-wrapper_lm6vo_1hwq2_174:not(#\9) {
145
176
  padding-bottom: var(--space-layout-content-bottom-zwsyun, 40px);
146
177
  }
147
178
 
148
- .awsui_content-overlapped_lm6vo_j1rmw_148:not(#\9) {
179
+ .awsui_content-overlapped_lm6vo_1hwq2_178:not(#\9) {
149
180
  margin-top: calc(-1 * var(--space-dark-header-overlap-distance-l9lxfl, 36px));
150
181
  }
151
182
 
152
- .awsui_content-extra-top-padding_lm6vo_j1rmw_152:not(#\9) {
183
+ .awsui_content-extra-top-padding_lm6vo_1hwq2_182:not(#\9) {
153
184
  padding-top: var(--space-scaled-m-gxhdpl, 16px);
154
185
  }
@@ -2,18 +2,22 @@
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_j1rmw_97",
6
- "layout-wrapper": "awsui_layout-wrapper_lm6vo_j1rmw_98",
7
- "root-no-scroll": "awsui_root-no-scroll_lm6vo_j1rmw_105",
8
- "layout": "awsui_layout_lm6vo_j1rmw_98",
9
- "layout-no-scroll": "awsui_layout-no-scroll_lm6vo_j1rmw_116",
10
- "layout-main": "awsui_layout-main_lm6vo_j1rmw_120",
11
- "layout-main-scrollable": "awsui_layout-main-scrollable_lm6vo_j1rmw_126",
12
- "unfocusable": "awsui_unfocusable_lm6vo_j1rmw_131",
13
- "breadcrumbs-desktop": "awsui_breadcrumbs-desktop_lm6vo_j1rmw_135",
14
- "content-header-wrapper": "awsui_content-header-wrapper_lm6vo_j1rmw_140",
15
- "content-wrapper": "awsui_content-wrapper_lm6vo_j1rmw_144",
16
- "content-overlapped": "awsui_content-overlapped_lm6vo_j1rmw_148",
17
- "content-extra-top-padding": "awsui_content-extra-top-padding_lm6vo_j1rmw_152"
5
+ "resize-active": "awsui_resize-active_lm6vo_1hwq2_98",
6
+ "resize-side": "awsui_resize-side_lm6vo_1hwq2_104",
7
+ "resize-bottom": "awsui_resize-bottom_lm6vo_1hwq2_107",
8
+ "with-motion": "awsui_with-motion_lm6vo_1hwq2_112",
9
+ "root": "awsui_root_lm6vo_1hwq2_127",
10
+ "layout-wrapper": "awsui_layout-wrapper_lm6vo_1hwq2_128",
11
+ "root-no-scroll": "awsui_root-no-scroll_lm6vo_1hwq2_135",
12
+ "layout": "awsui_layout_lm6vo_1hwq2_128",
13
+ "layout-no-scroll": "awsui_layout-no-scroll_lm6vo_1hwq2_146",
14
+ "layout-main": "awsui_layout-main_lm6vo_1hwq2_150",
15
+ "layout-main-scrollable": "awsui_layout-main-scrollable_lm6vo_1hwq2_156",
16
+ "unfocusable": "awsui_unfocusable_lm6vo_1hwq2_161",
17
+ "breadcrumbs-desktop": "awsui_breadcrumbs-desktop_lm6vo_1hwq2_165",
18
+ "content-header-wrapper": "awsui_content-header-wrapper_lm6vo_1hwq2_170",
19
+ "content-wrapper": "awsui_content-wrapper_lm6vo_1hwq2_174",
20
+ "content-overlapped": "awsui_content-overlapped_lm6vo_1hwq2_178",
21
+ "content-extra-top-padding": "awsui_content-extra-top-padding_lm6vo_1hwq2_182"
18
22
  };
19
23
 
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface SizeControlProps {
3
+ position: 'side' | 'bottom';
4
+ panelRef?: React.RefObject<HTMLDivElement>;
5
+ handleRef?: React.RefObject<HTMLDivElement>;
6
+ setSidePanelWidth: (width: number) => void;
7
+ setBottomPanelHeight: (height: number) => void;
8
+ hasTransitions?: boolean;
9
+ }
10
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["app-layout/utils/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC5C,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,oBAAoB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["app-layout/utils/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nexport interface SizeControlProps {\n position: 'side' | 'bottom';\n panelRef?: React.RefObject<HTMLDivElement>;\n handleRef?: React.RefObject<HTMLDivElement>;\n setSidePanelWidth: (width: number) => void;\n setBottomPanelHeight: (height: number) => void;\n hasTransitions?: boolean;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"use-drawer-focus-control.d.ts","sourceRoot":"lib/default/","sources":["app-layout/utils/use-drawer-focus-control.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAkC,MAAM,OAAO,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,MAAM,qBAAqB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzE,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACnC,KAAK,EAAE,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAClC,MAAM,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;CACnC;AAED,UAAU,iBAAiB;IACzB,IAAI,EAAE,sBAAsB,CAAC;IAC7B,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,kBAAkB,EAAE,CAAC,WAAW,EAAE,qBAAqB,KAAK,IAAI,CAAC;CAClE;AAED,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,cAAc,EAC5B,MAAM,EAAE,OAAO,EACf,YAAY,UAAQ,GACnB,iBAAiB,CA6DnB"}
1
+ {"version":3,"file":"use-drawer-focus-control.d.ts","sourceRoot":"lib/default/","sources":["app-layout/utils/use-drawer-focus-control.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAkC,MAAM,OAAO,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,MAAM,qBAAqB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzE,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACnC,KAAK,EAAE,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAClC,MAAM,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;CACnC;AAED,UAAU,iBAAiB;IACzB,IAAI,EAAE,sBAAsB,CAAC;IAC7B,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,kBAAkB,EAAE,CAAC,WAAW,EAAE,qBAAqB,KAAK,IAAI,CAAC;CAClE;AAED,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,cAAc,EAC5B,MAAM,EAAE,OAAO,EACf,YAAY,UAAQ,GACnB,iBAAiB,CAiEnB"}