@cloudscape-design/components 3.0.961 → 3.0.963

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 (145) hide show
  1. package/annotation-context/annotation/styles.css.js +24 -24
  2. package/annotation-context/annotation/styles.scoped.css +32 -32
  3. package/annotation-context/annotation/styles.selectors.js +24 -24
  4. package/app-layout/classic.d.ts.map +1 -1
  5. package/app-layout/classic.js +3 -2
  6. package/app-layout/classic.js.map +1 -1
  7. package/app-layout/drawer/interfaces.d.ts +1 -0
  8. package/app-layout/drawer/interfaces.d.ts.map +1 -1
  9. package/app-layout/drawer/interfaces.js.map +1 -1
  10. package/app-layout/drawer/resizable-drawer.d.ts.map +1 -1
  11. package/app-layout/drawer/resizable-drawer.js +6 -6
  12. package/app-layout/drawer/resizable-drawer.js.map +1 -1
  13. package/app-layout/interfaces.d.ts +1 -0
  14. package/app-layout/interfaces.d.ts.map +1 -1
  15. package/app-layout/interfaces.js.map +1 -1
  16. package/app-layout/notifications/styles.css.js +3 -3
  17. package/app-layout/notifications/styles.scoped.css +7 -7
  18. package/app-layout/notifications/styles.selectors.js +3 -3
  19. package/app-layout/utils/use-keyboard-events.d.ts +5 -1
  20. package/app-layout/utils/use-keyboard-events.d.ts.map +1 -1
  21. package/app-layout/utils/use-keyboard-events.js +65 -42
  22. package/app-layout/utils/use-keyboard-events.js.map +1 -1
  23. package/app-layout/utils/use-resize.d.ts.map +1 -1
  24. package/app-layout/utils/use-resize.js +3 -3
  25. package/app-layout/utils/use-resize.js.map +1 -1
  26. package/app-layout/visual-refresh/styles.css.js +86 -86
  27. package/app-layout/visual-refresh/styles.scoped.css +258 -258
  28. package/app-layout/visual-refresh/styles.selectors.js +86 -86
  29. package/app-layout/visual-refresh-toolbar/drawer/global-drawer.d.ts.map +1 -1
  30. package/app-layout/visual-refresh-toolbar/drawer/global-drawer.js +2 -2
  31. package/app-layout/visual-refresh-toolbar/drawer/global-drawer.js.map +1 -1
  32. package/app-layout/visual-refresh-toolbar/drawer/local-drawer.d.ts.map +1 -1
  33. package/app-layout/visual-refresh-toolbar/drawer/local-drawer.js +2 -2
  34. package/app-layout/visual-refresh-toolbar/drawer/local-drawer.js.map +1 -1
  35. package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +10 -10
  36. package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +12 -12
  37. package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +10 -10
  38. package/app-layout/visual-refresh-toolbar/drawer/use-resize.d.ts +1 -0
  39. package/app-layout/visual-refresh-toolbar/drawer/use-resize.d.ts.map +1 -1
  40. package/app-layout/visual-refresh-toolbar/drawer/use-resize.js +2 -2
  41. package/app-layout/visual-refresh-toolbar/drawer/use-resize.js.map +1 -1
  42. package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
  43. package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +7 -7
  44. package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
  45. package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +19 -19
  46. package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +43 -43
  47. package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +19 -19
  48. package/content-layout/styles.css.js +14 -14
  49. package/content-layout/styles.scoped.css +27 -27
  50. package/content-layout/styles.selectors.js +14 -14
  51. package/flashbar/styles.css.js +50 -50
  52. package/flashbar/styles.scoped.css +166 -166
  53. package/flashbar/styles.selectors.js +50 -50
  54. package/i18n/messages/all.all.js +1 -1
  55. package/i18n/messages/all.all.json +1 -1
  56. package/i18n/messages/all.ar.js +1 -1
  57. package/i18n/messages/all.ar.json +1 -1
  58. package/i18n/messages/all.de.js +1 -1
  59. package/i18n/messages/all.de.json +1 -1
  60. package/i18n/messages/all.en-GB.js +1 -1
  61. package/i18n/messages/all.en-GB.json +1 -1
  62. package/i18n/messages/all.en.js +1 -1
  63. package/i18n/messages/all.en.json +1 -1
  64. package/i18n/messages/all.es.js +1 -1
  65. package/i18n/messages/all.es.json +1 -1
  66. package/i18n/messages/all.fr.js +1 -1
  67. package/i18n/messages/all.fr.json +1 -1
  68. package/i18n/messages/all.id.js +1 -1
  69. package/i18n/messages/all.id.json +1 -1
  70. package/i18n/messages/all.it.js +1 -1
  71. package/i18n/messages/all.it.json +1 -1
  72. package/i18n/messages/all.ja.js +1 -1
  73. package/i18n/messages/all.ja.json +1 -1
  74. package/i18n/messages/all.ko.js +1 -1
  75. package/i18n/messages/all.ko.json +1 -1
  76. package/i18n/messages/all.pt-BR.js +1 -1
  77. package/i18n/messages/all.pt-BR.json +1 -1
  78. package/i18n/messages/all.tr.js +1 -1
  79. package/i18n/messages/all.tr.json +1 -1
  80. package/i18n/messages/all.zh-CN.js +1 -1
  81. package/i18n/messages/all.zh-CN.json +1 -1
  82. package/i18n/messages/all.zh-TW.js +1 -1
  83. package/i18n/messages/all.zh-TW.json +1 -1
  84. package/i18n/messages-types.d.ts +1 -0
  85. package/i18n/messages-types.d.ts.map +1 -1
  86. package/i18n/messages-types.js.map +1 -1
  87. package/internal/components/drag-handle/button.d.ts +1 -1
  88. package/internal/components/drag-handle/button.d.ts.map +1 -1
  89. package/internal/components/drag-handle/button.js +2 -3
  90. package/internal/components/drag-handle/button.js.map +1 -1
  91. package/internal/components/drag-handle/index.d.ts +1 -1
  92. package/internal/components/drag-handle/index.d.ts.map +1 -1
  93. package/internal/components/drag-handle/index.js.map +1 -1
  94. package/internal/components/drag-handle/interfaces.d.ts +0 -3
  95. package/internal/components/drag-handle/interfaces.d.ts.map +1 -1
  96. package/internal/components/drag-handle/interfaces.js.map +1 -1
  97. package/internal/components/drag-handle-wrapper/index.d.ts.map +1 -1
  98. package/internal/components/drag-handle-wrapper/index.js +8 -6
  99. package/internal/components/drag-handle-wrapper/index.js.map +1 -1
  100. package/internal/components/drag-handle-wrapper/styles.css.js +21 -27
  101. package/internal/components/drag-handle-wrapper/styles.scoped.css +58 -235
  102. package/internal/components/drag-handle-wrapper/styles.selectors.js +21 -27
  103. package/internal/components/dropdown/styles.css.js +20 -20
  104. package/internal/components/dropdown/styles.scoped.css +38 -38
  105. package/internal/components/dropdown/styles.selectors.js +20 -20
  106. package/internal/components/panel-resize-handle/index.d.ts +3 -0
  107. package/internal/components/panel-resize-handle/index.d.ts.map +1 -1
  108. package/internal/components/panel-resize-handle/index.js +11 -4
  109. package/internal/components/panel-resize-handle/index.js.map +1 -1
  110. package/internal/components/panel-resize-handle/styles.css.js +2 -5
  111. package/internal/components/panel-resize-handle/styles.scoped.css +9 -26
  112. package/internal/components/panel-resize-handle/styles.selectors.js +2 -5
  113. package/internal/environment.js +1 -1
  114. package/internal/environment.json +1 -1
  115. package/internal/generated/custom-css-properties/index.d.ts +2 -0
  116. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  117. package/internal/generated/custom-css-properties/index.js +59 -57
  118. package/internal/generated/custom-css-properties/index.js.map +1 -1
  119. package/internal/manifest.json +1 -1
  120. package/internal/plugins/controllers/drawers.d.ts +1 -0
  121. package/internal/plugins/controllers/drawers.d.ts.map +1 -1
  122. package/internal/plugins/controllers/drawers.js.map +1 -1
  123. package/package.json +1 -1
  124. package/slider/styles.css.js +26 -26
  125. package/slider/styles.scoped.css +86 -86
  126. package/slider/styles.selectors.js +26 -26
  127. package/spinner/styles.css.js +13 -13
  128. package/spinner/styles.scoped.css +39 -39
  129. package/spinner/styles.selectors.js +13 -13
  130. package/split-panel/implementation.d.ts.map +1 -1
  131. package/split-panel/implementation.js +3 -3
  132. package/split-panel/implementation.js.map +1 -1
  133. package/split-panel/index.d.ts.map +1 -1
  134. package/split-panel/index.js +1 -1
  135. package/split-panel/index.js.map +1 -1
  136. package/split-panel/interfaces.d.ts +1 -0
  137. package/split-panel/interfaces.d.ts.map +1 -1
  138. package/split-panel/interfaces.js.map +1 -1
  139. package/tabs/tab-header-bar.d.ts.map +1 -1
  140. package/tabs/tab-header-bar.js +1 -0
  141. package/tabs/tab-header-bar.js.map +1 -1
  142. package/internal/components/panel-resize-handle/icon.d.ts +0 -5
  143. package/internal/components/panel-resize-handle/icon.d.ts.map +0 -1
  144. package/internal/components/panel-resize-handle/icon.js +0 -9
  145. package/internal/components/panel-resize-handle/icon.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"resizable-drawer.js","sourceRoot":"","sources":["../../../../src/app-layout/drawer/resizable-drawer.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,iBAAiB,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAGjC,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAQT,EAAE,EAAE;;QARK,EAC9B,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,YAAY,OAES,EADlB,KAAK,cAPsB,4EAQ/B,CADS;IAER,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEpD,MAAM,YAAY,GAAG,eAAe,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAChE,MAAM,YAAY,GAAG,CAAC,CAAC,YAAY,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC,GAAG,GAAG,CAA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,EACpB,aAAa,EAAE,mBAAmB,GAClC,CACH,EAEH,UAAU,EAAE;YACV,SAAS,EAAE,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,0CAAE,aAAa;YAClD,SAAS,EAAE,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,0CAAE,UAAU;YAC/C,UAAU,EAAE,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,0CAAE,WAAW;SAClD;QAEA,YAAY,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,EAAE,MAAK,eAAe,IAAI,MAAM,CAAC,IAAI,CAAC,IAAG,YAAY,CAAO;QAC/G,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,EAAE,MAAK,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAChD,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport PanelResizeHandle from '../../internal/components/panel-resize-handle';\nimport { getLimitedValue } from '../../split-panel/utils/size-utils';\nimport { SizeControlProps } from '../utils/interfaces';\nimport { TOOLS_DRAWER_ID } from '../utils/use-drawers';\nimport { useKeyboardEvents } from '../utils/use-keyboard-events';\nimport { usePointerEvents } from '../utils/use-pointer-events';\nimport { Drawer } from './index';\nimport { ResizableDrawerProps } from './interfaces';\n\nimport testutilStyles from '../test-classes/styles.css.js';\nimport styles from './styles.css.js';\n\nexport const ResizableDrawer = ({\n onResize,\n maxWidth,\n minWidth,\n refs,\n activeDrawer,\n toolsContent,\n ...props\n}: ResizableDrawerProps) => {\n const { isOpen, children, width, isMobile } = props;\n\n const clampedWidth = getLimitedValue(minWidth, width, maxWidth);\n const relativeSize = ((clampedWidth - minWidth) / (maxWidth - minWidth)) * 100;\n\n const setSidePanelWidth = (newWidth: number) => {\n const size = getLimitedValue(minWidth, newWidth, maxWidth);\n const id = activeDrawer?.id;\n\n if (isOpen && id && maxWidth >= minWidth) {\n onResize({ size, id });\n }\n };\n\n const drawerRefObject = useRef<HTMLDivElement>(null);\n\n const sizeControlProps: SizeControlProps = {\n position: 'side',\n panelRef: drawerRefObject,\n handleRef: refs.slider,\n onResize: setSidePanelWidth,\n };\n\n const onSliderPointerDown = usePointerEvents(sizeControlProps);\n const onKeyDown = useKeyboardEvents(sizeControlProps);\n\n return (\n <Drawer\n {...props}\n id={activeDrawer?.id}\n width={clampedWidth}\n ref={drawerRefObject}\n isHidden={!activeDrawer}\n resizeHandle={\n !isMobile &&\n activeDrawer?.resizable && (\n <PanelResizeHandle\n ref={refs.slider}\n position=\"side\"\n className={testutilStyles['drawers-slider']}\n ariaLabel={activeDrawer?.ariaLabels?.resizeHandle}\n ariaValuenow={relativeSize}\n onKeyDown={onKeyDown}\n onPointerDown={onSliderPointerDown}\n />\n )\n }\n ariaLabels={{\n openLabel: activeDrawer?.ariaLabels?.triggerButton,\n mainLabel: activeDrawer?.ariaLabels?.drawerName,\n closeLabel: activeDrawer?.ariaLabels?.closeButton,\n }}\n >\n {toolsContent && <div className={clsx(activeDrawer?.id !== TOOLS_DRAWER_ID && styles.hide)}>{toolsContent}</div>}\n {activeDrawer?.id !== TOOLS_DRAWER_ID ? children : null}\n </Drawer>\n );\n};\n"]}
1
+ {"version":3,"file":"resizable-drawer.js","sourceRoot":"","sources":["../../../../src/app-layout/drawer/resizable-drawer.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,iBAAiB,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC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SAAS,EAAE,IAAI,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,EAAE,MAAK,eAAe,IAAI,MAAM,CAAC,IAAI,CAAC,IAAG,YAAY,CAAO;QAC/G,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,EAAE,MAAK,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAChD,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport PanelResizeHandle from '../../internal/components/panel-resize-handle';\nimport { getLimitedValue } from '../../split-panel/utils/size-utils';\nimport { SizeControlProps } from '../utils/interfaces';\nimport { TOOLS_DRAWER_ID } from '../utils/use-drawers';\nimport { useKeyboardEvents } from '../utils/use-keyboard-events';\nimport { usePointerEvents } from '../utils/use-pointer-events';\nimport { Drawer } from './index';\nimport { ResizableDrawerProps } from './interfaces';\n\nimport testutilStyles from '../test-classes/styles.css.js';\nimport styles from './styles.css.js';\n\nexport const ResizableDrawer = ({\n onResize,\n maxWidth,\n minWidth,\n refs,\n activeDrawer,\n toolsContent,\n ...props\n}: ResizableDrawerProps) => {\n const { isOpen, children, width, isMobile } = props;\n\n const clampedWidth = getLimitedValue(minWidth, width, maxWidth);\n const relativeSize = ((clampedWidth - minWidth) / (maxWidth - minWidth)) * 100;\n\n const setSidePanelWidth = (newWidth: number) => {\n const size = getLimitedValue(minWidth, newWidth, maxWidth);\n const id = activeDrawer?.id;\n\n if (isOpen && id && maxWidth >= minWidth) {\n onResize({ size, id });\n }\n };\n\n const drawerRefObject = useRef<HTMLDivElement>(null);\n\n const sizeControlProps: SizeControlProps = {\n position: 'side',\n panelRef: drawerRefObject,\n handleRef: refs.slider,\n onResize: setSidePanelWidth,\n };\n\n const onSliderPointerDown = usePointerEvents(sizeControlProps);\n const { onKeyDown, onDirectionClick } = useKeyboardEvents(sizeControlProps);\n\n return (\n <Drawer\n {...props}\n id={activeDrawer?.id}\n width={clampedWidth}\n ref={drawerRefObject}\n isHidden={!activeDrawer}\n resizeHandle={\n !isMobile &&\n activeDrawer?.resizable && (\n <PanelResizeHandle\n ref={refs.slider}\n position=\"side\"\n className={testutilStyles['drawers-slider']}\n ariaLabel={activeDrawer?.ariaLabels?.resizeHandle}\n tooltipText={activeDrawer?.ariaLabels?.resizeHandleTooltipText}\n ariaValuenow={relativeSize}\n onKeyDown={onKeyDown}\n onDirectionClick={onDirectionClick}\n onPointerDown={onSliderPointerDown}\n />\n )\n }\n ariaLabels={{\n openLabel: activeDrawer?.ariaLabels?.triggerButton,\n mainLabel: activeDrawer?.ariaLabels?.drawerName,\n closeLabel: activeDrawer?.ariaLabels?.closeButton,\n }}\n >\n {toolsContent && <div className={clsx(activeDrawer?.id !== TOOLS_DRAWER_ID && styles.hide)}>{toolsContent}</div>}\n {activeDrawer?.id !== TOOLS_DRAWER_ID ? children : null}\n </Drawer>\n );\n};\n"]}
@@ -275,6 +275,7 @@ export declare namespace AppLayoutProps {
275
275
  closeButton?: string;
276
276
  triggerButton?: string;
277
277
  resizeHandle?: string;
278
+ resizeHandleTooltipText?: string;
278
279
  }
279
280
  interface Labels {
280
281
  notifications?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/app-layout/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,WAAW,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1B,eAAe,CAAC,EAAE,MAAM,CAAC;QAEzB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;KACnC;IAED,UAAiB,YAAY;QAC3B,IAAI,EAAE,OAAO,CAAC;KACf;IAED,UAAiB,sBAAsB;QACrC,IAAI,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,qBAAqB;QACpC,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAC;KAC7B;IAGD,KAAY,kBAAkB,GAAG,MAAM,GAAG,QAAQ,CAAC;IAEnD,UAAiB,kBAAkB;QACjC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;KAC/B;CACF;AAED,MAAM,MAAM,0BAA0B,GAAG,YAAY,CACnD,IAAI,CAAC,cAAc,EAAE,gBAAgB,GAAG,gBAAgB,CAAC,EACzD,aAAa,GAAG,iBAAiB,GAAG,YAAY,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,oBAAoB,CAC/G,GAAG;IACF,SAAS,EAAE;QACT,eAAe,EAAE,MAAM,CAAC;QACxB,aAAa,EAAE,MAAM,CAAC;QACtB,gBAAgB,EAAE,MAAM,CAAC;QACzB,cAAc,EAAE,MAAM,CAAC;QACvB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/app-layout/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\nimport { IconProps } from '../icon/interfaces';\nimport { FlowType } from '../internal/analytics/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { SomeRequired } from '../internal/types';\n\nexport interface BaseLayoutProps extends BaseComponentProps {\n /**\n * Specifies additional analytics-related metadata.\n * * `instanceIdentifier` - A unique string that identifies this component instance in your application.\n * * `flowType` - Identifies the type of flow represented by the component.\n * **Note:** This API is currently experimental.\n * @analytics\n */\n analyticsMetadata?: AppLayoutProps.AnalyticsMetadata;\n\n /**\n * Determines the default behavior of the component based on some predefined page layouts.\n * Individual properties will always take precedence over the default coming from the content type.\n */\n contentType?: AppLayoutProps.ContentType;\n\n /**\n * Drawers property. If you set both `drawers` and `tools`, `drawers` will take precedence.\n\n * Each Drawer is an item in the drawers wrapper with the following properties:\n * * id (string) - the id of the drawer.\n * * content (React.ReactNode) - the content in the drawer.\n * * trigger (DrawerTrigger) - the button that opens and closes the active drawer.\n * * ariaLabels (DrawerAriaLabels) - the labels for the interactive elements of the drawer.\n * * badge (boolean) - Adds a badge to the corner of the icon to indicate a state change. For example: Unread notifications.\n * * resizable (boolean) - if the drawer is resizable or not.\n * * defaultSize (number) - starting size of the drawer. if not set, defaults to 290.\n * * onResize (({ size: number }) => void) - Fired when the active drawer is resized.\n *\n * #### DrawerTrigger\n * - `iconName` (IconProps.Name) - (Optional) Specifies the icon to be displayed.\n * - `iconSvg` (React.ReactNode) - (Optional) Specifies the SVG of a custom icon. For more information, see [SVG icon guidelines](/components/icon/?tabId=api#slots)\n *\n * #### DrawerAriaLabels\n * - `drawerName` (string) - Label for the drawer itself, and for the drawer trigger button tooltip text.\n * - `closeButton` (string) - (Optional) Label for the close button.\n * - `triggerButton` (string) - (Optional) Label for the trigger button.\n * - `resizeHandle` (string) - (Optional) Label for the resize handle.\n */\n drawers?: Array<AppLayoutProps.Drawer>;\n\n /**\n * The active drawer id. If you want to clear the active drawer, use `null`.\n */\n activeDrawerId?: string | null;\n\n /**\n * Fired when the active drawer is toggled.\n */\n onDrawerChange?: NonCancelableEventHandler<AppLayoutProps.DrawerChangeDetail>;\n\n /**\n * If `true`, disables outer paddings for the content slot.\n */\n disableContentPaddings?: boolean;\n\n /**\n * State of the navigation drawer.\n */\n navigationOpen?: boolean;\n\n /**\n * Navigation drawer width in pixels.\n */\n navigationWidth?: number;\n\n /**\n * If `true`, the navigation drawer is not displayed at all.\n */\n navigationHide?: boolean;\n\n /**\n * State of the tools drawer.\n */\n toolsOpen?: boolean;\n\n /**\n * If `true`, the tools drawer is not displayed at all.\n */\n toolsHide?: boolean;\n\n /**\n * Tools drawer width in pixels.\n */\n toolsWidth?: number;\n\n /**\n * Maximum main content panel width in pixels.\n *\n * If set to `Number.MAX_VALUE`, the main content panel will occupy the full available width.\n */\n maxContentWidth?: number;\n\n /**\n * Minimum main content panel width in pixels.\n */\n minContentWidth?: number;\n\n /**\n * If true, the notification slot is rendered above the scrollable\n * content area so it is always visible.\n */\n stickyNotifications?: boolean;\n\n /**\n * CSS selector for the application header.\n */\n headerSelector?: string;\n\n /**\n * CSS selector for the application footer.\n */\n footerSelector?: string;\n\n /**\n * Aria labels for the drawer operating buttons. Use this property to ensure accessibility.\n *\n * * `navigation` (string) - Label for the landmark that wraps the navigation drawer.\n * * `navigationClose` (string) - Label for the button that closes the navigation drawer.\n * * `navigationToggle` (string) - Label for the button that opens the navigation drawer.\n * * `notification` (string) - Label for the region that contains notification messages.\n * * `tools` (string) - Label for the landmark that wraps the tools drawer.\n * * `toolsClose` (string) - Label for the button that closes the tools drawer.\n * * `toolsToggle` (string) - Label for the button that opens the tools drawer.\n * * `drawers` (string) - Label for the landmark that wraps the active drawer.\n * * `drawersOverflow` (string) - Label for the ellipsis button with any overflow drawers.\n * * `drawersOverflowWithBadge` (string) - Label for the ellipsis button with any overflow drawers, with a badge.\n *\n * Example:\n * ```\n * {\n * navigation: \"Navigation drawer\",\n * navigationClose: \"Close navigation drawer\",\n * navigationToggle: \"Open navigation drawer\",\n * notifications: \"Notifications\",\n * tools: \"Help panel\",\n * toolsClose: \"Close help panel\",\n * toolsToggle: \"Open help panel\",\n * drawers: \"Drawers\",\n * drawersOverflow: \"Overflow drawers\",\n * drawersOverflowWithBadge: \"Overflow drawers (Unread notifications)\"\n * }\n * ```\n * @i18n\n */\n ariaLabels?: AppLayoutProps.Labels;\n\n /**\n * Navigation drawer.\n */\n navigation?: React.ReactNode;\n\n /**\n * Top area of the page content.\n * @deprecated Replaced by the `header` slot of the [content layout](/components/content-layout/) component.\n * @visualrefresh\n */\n contentHeader?: React.ReactNode;\n\n /**\n * Disables overlap between `contentHeader` and `content` slots.\n * @deprecated Replaced by the `disableOverlap` property of the [content layout](/components/content-layout/) component.\n * @visualrefresh\n */\n disableContentHeaderOverlap?: boolean;\n\n /**\n * Determines the visual treatment for the breadcrumbs and notifications slots. Specifically:\n * * `default` - Does not apply any visual treatment.\n * * `high-contrast` - Applies high-contrast to both slots. Use in conjunction with `headerVariant=\"high-contrast\"` in ContentLayout.\n * @visualrefresh\n */\n headerVariant?: 'default' | 'high-contrast';\n\n /**\n * Main content.\n */\n content?: React.ReactNode;\n\n /**\n * Tools drawer.\n */\n tools?: React.ReactNode;\n\n /**\n * Displayed on top of the main content in the scrollable area.\n *\n * Conceived to contain notifications (flash messages).\n */\n notifications?: React.ReactNode;\n\n /**\n * Use this slot to add the [breadcrumb group component](/components/breadcrumb-group/) to the app layout.\n */\n breadcrumbs?: React.ReactNode;\n\n /**\n * Fired when the navigation drawer is toggled.\n */\n onNavigationChange?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n\n /**\n * Fired when the tools drawer is toggled.\n */\n onToolsChange?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n\n /**\n * Use this slot to add the [split panel component](/components/split-panel/) to the app layout.\n *\n * Note: If provided, this property should be set to `null` or `undefined` if a split panel should not be rendered.\n */\n splitPanel?: React.ReactNode;\n\n /**\n * The size of the split panel in pixels.\n */\n splitPanelSize?: number;\n\n /**\n * State of the split panel.\n */\n splitPanelOpen?: boolean;\n /**\n * Controls the split panel preferences.\n *\n * By default, the preference is `{ position: 'bottom' }`\n */\n splitPanelPreferences?: AppLayoutProps.SplitPanelPreferences;\n /**\n * Fired when the split panel is resized.\n */\n onSplitPanelResize?: NonCancelableEventHandler<AppLayoutProps.SplitPanelResizeDetail>;\n /**\n * Fired when the split panel is toggled.\n */\n onSplitPanelToggle?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n /**\n * Fired when the split panel preferences change.\n */\n onSplitPanelPreferencesChange?: NonCancelableEventHandler<AppLayoutProps.SplitPanelPreferences>;\n}\n\nexport interface AppLayoutProps extends BaseLayoutProps {\n /**\n * Activates a backwards-compatibility mode for applications with non-fixed headers and footers.\n * @deprecated This layout is being phased out and may miss some features.\n */\n disableBodyScroll?: boolean;\n}\n\nexport namespace AppLayoutProps {\n export interface AnalyticsMetadata {\n instanceIdentifier?: string;\n flowType?: FlowType;\n }\n\n export type ContentType = 'default' | 'form' | 'table' | 'cards' | 'wizard' | 'dashboard';\n\n export interface Ref {\n /**\n * Manually closes the navigation drawer if it is necessary for the current\n * viewport size.\n */\n closeNavigationIfNecessary(): void;\n\n /**\n * Opens the tools panel if it is not already open. Note that it is preferable\n * to control the state by listening to `toolsChange` and providing `toolsOpen`.\n */\n openTools(): void;\n\n /**\n * Focuses the tools panel if it is open. Use this to focus the tools panel\n * after changing the content, for example when clicking on an 'info' link while\n * the panel is already open.\n */\n focusToolsClose(): void;\n\n /**\n * Focuses the active drawer. Use this to focus the active drawer after opening it programmatically.\n */\n focusActiveDrawer(): void;\n\n /**\n * Focuses the split panel if it is open.\n */\n focusSplitPanel(): void;\n }\n\n export interface Drawer {\n id: string;\n content: React.ReactNode;\n trigger?: {\n iconName?: IconProps.Name;\n iconSvg?: React.ReactNode;\n };\n ariaLabels: DrawerAriaLabels;\n badge?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number }>;\n preserveInactiveContent?: boolean;\n }\n\n export interface DrawerAriaLabels {\n drawerName: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n }\n\n export interface Labels {\n notifications?: string;\n\n navigation?: string;\n navigationToggle?: string;\n navigationClose?: string;\n\n tools?: string;\n toolsToggle?: string;\n toolsClose?: string;\n\n drawers?: string;\n drawersOverflow?: string;\n drawersOverflowWithBadge?: string;\n }\n\n export interface ChangeDetail {\n open: boolean;\n }\n\n export interface SplitPanelResizeDetail {\n size: number;\n }\n\n export interface SplitPanelPreferences {\n position: 'side' | 'bottom';\n }\n // Duplicated the positions because using this definition in SplitPanelPreferences would display\n // 'AppLayoutProps.SplitPanelPosition' on the API docs instead of the string values.\n export type SplitPanelPosition = 'side' | 'bottom';\n\n export interface DrawerChangeDetail {\n activeDrawerId: string | null;\n }\n}\n\nexport type AppLayoutPropsWithDefaults = SomeRequired<\n Omit<AppLayoutProps, 'headerSelector' | 'footerSelector'>,\n 'contentType' | 'navigationWidth' | 'toolsWidth' | 'minContentWidth' | 'navigationOpen' | 'onNavigationChange'\n> & {\n placement: {\n insetBlockStart: number;\n insetBlockEnd: number;\n insetInlineStart: number;\n insetInlineEnd: number;\n inlineSize: number;\n };\n};\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/app-layout/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\nimport { IconProps } from '../icon/interfaces';\nimport { FlowType } from '../internal/analytics/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { SomeRequired } from '../internal/types';\n\nexport interface BaseLayoutProps extends BaseComponentProps {\n /**\n * Specifies additional analytics-related metadata.\n * * `instanceIdentifier` - A unique string that identifies this component instance in your application.\n * * `flowType` - Identifies the type of flow represented by the component.\n * **Note:** This API is currently experimental.\n * @analytics\n */\n analyticsMetadata?: AppLayoutProps.AnalyticsMetadata;\n\n /**\n * Determines the default behavior of the component based on some predefined page layouts.\n * Individual properties will always take precedence over the default coming from the content type.\n */\n contentType?: AppLayoutProps.ContentType;\n\n /**\n * Drawers property. If you set both `drawers` and `tools`, `drawers` will take precedence.\n\n * Each Drawer is an item in the drawers wrapper with the following properties:\n * * id (string) - the id of the drawer.\n * * content (React.ReactNode) - the content in the drawer.\n * * trigger (DrawerTrigger) - the button that opens and closes the active drawer.\n * * ariaLabels (DrawerAriaLabels) - the labels for the interactive elements of the drawer.\n * * badge (boolean) - Adds a badge to the corner of the icon to indicate a state change. For example: Unread notifications.\n * * resizable (boolean) - if the drawer is resizable or not.\n * * defaultSize (number) - starting size of the drawer. if not set, defaults to 290.\n * * onResize (({ size: number }) => void) - Fired when the active drawer is resized.\n *\n * #### DrawerTrigger\n * - `iconName` (IconProps.Name) - (Optional) Specifies the icon to be displayed.\n * - `iconSvg` (React.ReactNode) - (Optional) Specifies the SVG of a custom icon. For more information, see [SVG icon guidelines](/components/icon/?tabId=api#slots)\n *\n * #### DrawerAriaLabels\n * - `drawerName` (string) - Label for the drawer itself, and for the drawer trigger button tooltip text.\n * - `closeButton` (string) - (Optional) Label for the close button.\n * - `triggerButton` (string) - (Optional) Label for the trigger button.\n * - `resizeHandle` (string) - (Optional) Label for the resize handle.\n */\n drawers?: Array<AppLayoutProps.Drawer>;\n\n /**\n * The active drawer id. If you want to clear the active drawer, use `null`.\n */\n activeDrawerId?: string | null;\n\n /**\n * Fired when the active drawer is toggled.\n */\n onDrawerChange?: NonCancelableEventHandler<AppLayoutProps.DrawerChangeDetail>;\n\n /**\n * If `true`, disables outer paddings for the content slot.\n */\n disableContentPaddings?: boolean;\n\n /**\n * State of the navigation drawer.\n */\n navigationOpen?: boolean;\n\n /**\n * Navigation drawer width in pixels.\n */\n navigationWidth?: number;\n\n /**\n * If `true`, the navigation drawer is not displayed at all.\n */\n navigationHide?: boolean;\n\n /**\n * State of the tools drawer.\n */\n toolsOpen?: boolean;\n\n /**\n * If `true`, the tools drawer is not displayed at all.\n */\n toolsHide?: boolean;\n\n /**\n * Tools drawer width in pixels.\n */\n toolsWidth?: number;\n\n /**\n * Maximum main content panel width in pixels.\n *\n * If set to `Number.MAX_VALUE`, the main content panel will occupy the full available width.\n */\n maxContentWidth?: number;\n\n /**\n * Minimum main content panel width in pixels.\n */\n minContentWidth?: number;\n\n /**\n * If true, the notification slot is rendered above the scrollable\n * content area so it is always visible.\n */\n stickyNotifications?: boolean;\n\n /**\n * CSS selector for the application header.\n */\n headerSelector?: string;\n\n /**\n * CSS selector for the application footer.\n */\n footerSelector?: string;\n\n /**\n * Aria labels for the drawer operating buttons. Use this property to ensure accessibility.\n *\n * * `navigation` (string) - Label for the landmark that wraps the navigation drawer.\n * * `navigationClose` (string) - Label for the button that closes the navigation drawer.\n * * `navigationToggle` (string) - Label for the button that opens the navigation drawer.\n * * `notification` (string) - Label for the region that contains notification messages.\n * * `tools` (string) - Label for the landmark that wraps the tools drawer.\n * * `toolsClose` (string) - Label for the button that closes the tools drawer.\n * * `toolsToggle` (string) - Label for the button that opens the tools drawer.\n * * `drawers` (string) - Label for the landmark that wraps the active drawer.\n * * `drawersOverflow` (string) - Label for the ellipsis button with any overflow drawers.\n * * `drawersOverflowWithBadge` (string) - Label for the ellipsis button with any overflow drawers, with a badge.\n *\n * Example:\n * ```\n * {\n * navigation: \"Navigation drawer\",\n * navigationClose: \"Close navigation drawer\",\n * navigationToggle: \"Open navigation drawer\",\n * notifications: \"Notifications\",\n * tools: \"Help panel\",\n * toolsClose: \"Close help panel\",\n * toolsToggle: \"Open help panel\",\n * drawers: \"Drawers\",\n * drawersOverflow: \"Overflow drawers\",\n * drawersOverflowWithBadge: \"Overflow drawers (Unread notifications)\"\n * }\n * ```\n * @i18n\n */\n ariaLabels?: AppLayoutProps.Labels;\n\n /**\n * Navigation drawer.\n */\n navigation?: React.ReactNode;\n\n /**\n * Top area of the page content.\n * @deprecated Replaced by the `header` slot of the [content layout](/components/content-layout/) component.\n * @visualrefresh\n */\n contentHeader?: React.ReactNode;\n\n /**\n * Disables overlap between `contentHeader` and `content` slots.\n * @deprecated Replaced by the `disableOverlap` property of the [content layout](/components/content-layout/) component.\n * @visualrefresh\n */\n disableContentHeaderOverlap?: boolean;\n\n /**\n * Determines the visual treatment for the breadcrumbs and notifications slots. Specifically:\n * * `default` - Does not apply any visual treatment.\n * * `high-contrast` - Applies high-contrast to both slots. Use in conjunction with `headerVariant=\"high-contrast\"` in ContentLayout.\n * @visualrefresh\n */\n headerVariant?: 'default' | 'high-contrast';\n\n /**\n * Main content.\n */\n content?: React.ReactNode;\n\n /**\n * Tools drawer.\n */\n tools?: React.ReactNode;\n\n /**\n * Displayed on top of the main content in the scrollable area.\n *\n * Conceived to contain notifications (flash messages).\n */\n notifications?: React.ReactNode;\n\n /**\n * Use this slot to add the [breadcrumb group component](/components/breadcrumb-group/) to the app layout.\n */\n breadcrumbs?: React.ReactNode;\n\n /**\n * Fired when the navigation drawer is toggled.\n */\n onNavigationChange?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n\n /**\n * Fired when the tools drawer is toggled.\n */\n onToolsChange?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n\n /**\n * Use this slot to add the [split panel component](/components/split-panel/) to the app layout.\n *\n * Note: If provided, this property should be set to `null` or `undefined` if a split panel should not be rendered.\n */\n splitPanel?: React.ReactNode;\n\n /**\n * The size of the split panel in pixels.\n */\n splitPanelSize?: number;\n\n /**\n * State of the split panel.\n */\n splitPanelOpen?: boolean;\n /**\n * Controls the split panel preferences.\n *\n * By default, the preference is `{ position: 'bottom' }`\n */\n splitPanelPreferences?: AppLayoutProps.SplitPanelPreferences;\n /**\n * Fired when the split panel is resized.\n */\n onSplitPanelResize?: NonCancelableEventHandler<AppLayoutProps.SplitPanelResizeDetail>;\n /**\n * Fired when the split panel is toggled.\n */\n onSplitPanelToggle?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n /**\n * Fired when the split panel preferences change.\n */\n onSplitPanelPreferencesChange?: NonCancelableEventHandler<AppLayoutProps.SplitPanelPreferences>;\n}\n\nexport interface AppLayoutProps extends BaseLayoutProps {\n /**\n * Activates a backwards-compatibility mode for applications with non-fixed headers and footers.\n * @deprecated This layout is being phased out and may miss some features.\n */\n disableBodyScroll?: boolean;\n}\n\nexport namespace AppLayoutProps {\n export interface AnalyticsMetadata {\n instanceIdentifier?: string;\n flowType?: FlowType;\n }\n\n export type ContentType = 'default' | 'form' | 'table' | 'cards' | 'wizard' | 'dashboard';\n\n export interface Ref {\n /**\n * Manually closes the navigation drawer if it is necessary for the current\n * viewport size.\n */\n closeNavigationIfNecessary(): void;\n\n /**\n * Opens the tools panel if it is not already open. Note that it is preferable\n * to control the state by listening to `toolsChange` and providing `toolsOpen`.\n */\n openTools(): void;\n\n /**\n * Focuses the tools panel if it is open. Use this to focus the tools panel\n * after changing the content, for example when clicking on an 'info' link while\n * the panel is already open.\n */\n focusToolsClose(): void;\n\n /**\n * Focuses the active drawer. Use this to focus the active drawer after opening it programmatically.\n */\n focusActiveDrawer(): void;\n\n /**\n * Focuses the split panel if it is open.\n */\n focusSplitPanel(): void;\n }\n\n export interface Drawer {\n id: string;\n content: React.ReactNode;\n trigger?: {\n iconName?: IconProps.Name;\n iconSvg?: React.ReactNode;\n };\n ariaLabels: DrawerAriaLabels;\n badge?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number }>;\n preserveInactiveContent?: boolean;\n }\n\n export interface DrawerAriaLabels {\n drawerName: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n }\n\n export interface Labels {\n notifications?: string;\n\n navigation?: string;\n navigationToggle?: string;\n navigationClose?: string;\n\n tools?: string;\n toolsToggle?: string;\n toolsClose?: string;\n\n drawers?: string;\n drawersOverflow?: string;\n drawersOverflowWithBadge?: string;\n }\n\n export interface ChangeDetail {\n open: boolean;\n }\n\n export interface SplitPanelResizeDetail {\n size: number;\n }\n\n export interface SplitPanelPreferences {\n position: 'side' | 'bottom';\n }\n // Duplicated the positions because using this definition in SplitPanelPreferences would display\n // 'AppLayoutProps.SplitPanelPosition' on the API docs instead of the string values.\n export type SplitPanelPosition = 'side' | 'bottom';\n\n export interface DrawerChangeDetail {\n activeDrawerId: string | null;\n }\n}\n\nexport type AppLayoutPropsWithDefaults = SomeRequired<\n Omit<AppLayoutProps, 'headerSelector' | 'footerSelector'>,\n 'contentType' | 'navigationWidth' | 'toolsWidth' | 'minContentWidth' | 'navigationOpen' | 'onNavigationChange'\n> & {\n placement: {\n insetBlockStart: number;\n insetBlockEnd: number;\n insetInlineStart: number;\n insetInlineEnd: number;\n inlineSize: number;\n };\n};\n"]}
@@ -1,8 +1,8 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "notifications": "awsui_notifications_1hmm4_1okmk_9",
5
- "notifications-sticky": "awsui_notifications-sticky_1hmm4_1okmk_10",
6
- "no-content-paddings": "awsui_no-content-paddings_1hmm4_1okmk_25"
4
+ "notifications": "awsui_notifications_1hmm4_1d3vc_9",
5
+ "notifications-sticky": "awsui_notifications-sticky_1hmm4_1d3vc_10",
6
+ "no-content-paddings": "awsui_no-content-paddings_1hmm4_1d3vc_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_1okmk_9:not(#\9),
10
- .awsui_notifications-sticky_1hmm4_1okmk_10:not(#\9) {
9
+ .awsui_notifications_1hmm4_1d3vc_9:not(#\9),
10
+ .awsui_notifications-sticky_1hmm4_1d3vc_10:not(#\9) {
11
11
  z-index: 850;
12
12
  }
13
13
 
14
- .awsui_notifications_1hmm4_1okmk_9:not(#\9) {
14
+ .awsui_notifications_1hmm4_1d3vc_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_1okmk_10:not(#\9) {
19
+ .awsui_notifications-sticky_1hmm4_1d3vc_10:not(#\9) {
20
20
  inset-block-start: 0;
21
21
  position: sticky;
22
- --awsui-flashbar-sticky-bottom-margin-g964ok: var(--space-xxl-32srm4, 32px);
22
+ --awsui-flashbar-sticky-bottom-margin-xgujsu: var(--space-xxl-32srm4, 32px);
23
23
  }
24
24
 
25
- .awsui_no-content-paddings_1hmm4_1okmk_25:not(#\9) {
25
+ .awsui_no-content-paddings_1hmm4_1d3vc_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-g964ok: var(--space-scaled-l-sej05l, 20px);
30
+ --awsui-stacked-notifications-bottom-margin-xgujsu: var(--space-scaled-l-sej05l, 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_1okmk_9",
6
- "notifications-sticky": "awsui_notifications-sticky_1hmm4_1okmk_10",
7
- "no-content-paddings": "awsui_no-content-paddings_1hmm4_1okmk_25"
5
+ "notifications": "awsui_notifications_1hmm4_1d3vc_9",
6
+ "notifications-sticky": "awsui_notifications-sticky_1hmm4_1d3vc_10",
7
+ "no-content-paddings": "awsui_no-content-paddings_1hmm4_1d3vc_25"
8
8
  };
9
9
 
@@ -1,4 +1,8 @@
1
1
  import React from 'react';
2
+ import { Direction } from '../../internal/components/drag-handle-wrapper/interfaces';
2
3
  import { SizeControlProps } from './interfaces';
3
- export declare const useKeyboardEvents: ({ position, onResize, panelRef }: SizeControlProps) => (event: React.KeyboardEvent<HTMLElement>) => void;
4
+ export declare const useKeyboardEvents: ({ position, onResize, panelRef }: SizeControlProps) => {
5
+ onDirectionClick: (direction: Direction) => void;
6
+ onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
7
+ };
4
8
  //# sourceMappingURL=use-keyboard-events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-keyboard-events.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/utils/use-keyboard-events.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAmBhD,eAAO,MAAM,iBAAiB,qCAAsC,gBAAgB,aACnE,mBAAmB,CAAC,WAAW,CAAC,SAgDhD,CAAC"}
1
+ {"version":3,"file":"use-keyboard-events.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/utils/use-keyboard-events.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,0DAA0D,CAAC;AAErF,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAmBhD,eAAO,MAAM,iBAAiB,qCAAsC,gBAAgB;kCAElD,SAAS;uBA0BpB,mBAAmB,CAAC,WAAW,CAAC;CAgDtD,CAAC"}
@@ -14,48 +14,71 @@ const getCurrentSize = (panelRef) => {
14
14
  };
15
15
  };
16
16
  export const useKeyboardEvents = ({ position, onResize, panelRef }) => {
17
- return (event) => {
18
- let currentSize;
19
- let maxSize;
20
- const { panelHeight, panelWidth } = getCurrentSize(panelRef);
21
- if (position === 'side') {
22
- currentSize = panelWidth;
23
- // don't need the exact max size as it's constrained in the set size function
24
- maxSize = window.innerWidth;
25
- }
26
- else {
27
- currentSize = panelHeight;
28
- // don't need the exact max size as it's constrained in the set size function
29
- maxSize = window.innerHeight;
30
- }
31
- let isEventHandled = true;
32
- const singleStepUp = () => onResize(currentSize + KEYBOARD_SINGLE_STEP_SIZE);
33
- const singleStepDown = () => onResize(currentSize - KEYBOARD_SINGLE_STEP_SIZE);
34
- const multipleStepUp = () => onResize(currentSize + KEYBOARD_MULTIPLE_STEPS_SIZE);
35
- const multipleStepDown = () => onResize(currentSize - KEYBOARD_MULTIPLE_STEPS_SIZE);
36
- handleKey(event, {
37
- onBlockStart: () => {
38
- position === 'bottom' ? singleStepUp() : singleStepDown();
39
- },
40
- onBlockEnd: () => {
41
- position === 'bottom' ? singleStepDown() : singleStepUp();
42
- },
43
- onInlineEnd: () => {
44
- position === 'bottom' ? singleStepUp() : singleStepDown();
45
- },
46
- onInlineStart: () => {
47
- position === 'bottom' ? singleStepDown() : singleStepUp();
48
- },
49
- onPageDown: () => multipleStepDown(),
50
- onPageUp: () => multipleStepUp(),
51
- onHome: () => onResize(maxSize),
52
- onEnd: () => onResize(0),
53
- onDefault: () => (isEventHandled = false),
54
- });
55
- if (isEventHandled) {
56
- event.preventDefault();
57
- event.stopPropagation();
58
- }
17
+ return {
18
+ onDirectionClick: (direction) => {
19
+ let currentSize;
20
+ const { panelHeight, panelWidth } = getCurrentSize(panelRef);
21
+ if (position === 'side') {
22
+ currentSize = panelWidth;
23
+ }
24
+ else {
25
+ currentSize = panelHeight;
26
+ }
27
+ const singleStepUp = () => onResize(currentSize + KEYBOARD_SINGLE_STEP_SIZE);
28
+ const singleStepDown = () => onResize(currentSize - KEYBOARD_SINGLE_STEP_SIZE);
29
+ switch (direction) {
30
+ case 'block-start':
31
+ case 'inline-start':
32
+ singleStepUp();
33
+ break;
34
+ case 'block-end':
35
+ case 'inline-end':
36
+ singleStepDown();
37
+ break;
38
+ }
39
+ },
40
+ onKeyDown: (event) => {
41
+ let currentSize;
42
+ let maxSize;
43
+ const { panelHeight, panelWidth } = getCurrentSize(panelRef);
44
+ if (position === 'side') {
45
+ currentSize = panelWidth;
46
+ // don't need the exact max size as it's constrained in the set size function
47
+ maxSize = window.innerWidth;
48
+ }
49
+ else {
50
+ currentSize = panelHeight;
51
+ // don't need the exact max size as it's constrained in the set size function
52
+ maxSize = window.innerHeight;
53
+ }
54
+ let isEventHandled = true;
55
+ const singleStepUp = () => onResize(currentSize + KEYBOARD_SINGLE_STEP_SIZE);
56
+ const singleStepDown = () => onResize(currentSize - KEYBOARD_SINGLE_STEP_SIZE);
57
+ const multipleStepUp = () => onResize(currentSize + KEYBOARD_MULTIPLE_STEPS_SIZE);
58
+ const multipleStepDown = () => onResize(currentSize - KEYBOARD_MULTIPLE_STEPS_SIZE);
59
+ handleKey(event, {
60
+ onBlockStart: () => {
61
+ position === 'bottom' ? singleStepUp() : singleStepDown();
62
+ },
63
+ onBlockEnd: () => {
64
+ position === 'bottom' ? singleStepDown() : singleStepUp();
65
+ },
66
+ onInlineEnd: () => {
67
+ position === 'bottom' ? singleStepUp() : singleStepDown();
68
+ },
69
+ onInlineStart: () => {
70
+ position === 'bottom' ? singleStepDown() : singleStepUp();
71
+ },
72
+ onPageDown: () => multipleStepDown(),
73
+ onPageUp: () => multipleStepUp(),
74
+ onHome: () => onResize(maxSize),
75
+ onEnd: () => onResize(0),
76
+ onDefault: () => (isEventHandled = false),
77
+ });
78
+ if (isEventHandled) {
79
+ event.preventDefault();
80
+ }
81
+ },
59
82
  };
60
83
  };
61
84
  //# sourceMappingURL=use-keyboard-events.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-keyboard-events.js","sourceRoot":"","sources":["../../../../src/app-layout/utils/use-keyboard-events.ts"],"names":[],"mappings":"AAIA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AAGxD,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAExC,MAAM,cAAc,GAAG,CAAC,QAA0C,EAAE,EAAE;IACpE,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE;QAClC,OAAO;YACL,WAAW,EAAE,CAAC;YACd,UAAU,EAAE,CAAC;SACd,CAAC;KACH;IAED,OAAO;QACL,WAAW,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY;QAC1C,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,WAAW;KACzC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,i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AAC,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC;YAC5D,CAAC;YACD,aAAa,EAAE,GAAG,EAAE;gBAClB,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;YAC5D,CAAC;YACD,UAAU,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE;YACpC,QAAQ,EAAE,GAAG,EAAE,CAAC,cAAc,EAAE;YAChC,MAAM,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;YAC/B,KAAK,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;YACxB,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,cAAc,GAAG,KAAK,CAAC;SAC1C,CAAC,CAAC;QAEH,IAAI,cAAc,EAAE;YAClB,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,eAAe,EAAE,CAAC;SACzB;IACH,CAAC,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport handleKey from '../../internal/utils/handle-key';\nimport { SizeControlProps } from './interfaces';\n\nconst KEYBOARD_SINGLE_STEP_SIZE = 10;\nconst KEYBOARD_MULTIPLE_STEPS_SIZE = 60;\n\nconst getCurrentSize = (panelRef?: React.RefObject<HTMLDivElement>) => {\n if (!panelRef || !panelRef.current) {\n return {\n panelHeight: 0,\n panelWidth: 0,\n };\n }\n\n return {\n panelHeight: panelRef.current.clientHeight,\n panelWidth: panelRef.current.clientWidth,\n };\n};\n\nexport const useKeyboardEvents = ({ position, onResize, panelRef }: SizeControlProps) => {\n return (event: React.KeyboardEvent<HTMLElement>) => {\n let currentSize: number;\n let maxSize: number;\n\n const { panelHeight, panelWidth } = getCurrentSize(panelRef);\n\n if (position === 'side') {\n currentSize = panelWidth;\n // don't need the exact max size as it's constrained in the set size function\n maxSize = window.innerWidth;\n } else {\n currentSize = panelHeight;\n // don't need the exact max size as it's constrained in the set size function\n maxSize = window.innerHeight;\n }\n\n let isEventHandled = true;\n\n const singleStepUp = () => onResize(currentSize + KEYBOARD_SINGLE_STEP_SIZE);\n const singleStepDown = () => onResize(currentSize - KEYBOARD_SINGLE_STEP_SIZE);\n const multipleStepUp = () => onResize(currentSize + KEYBOARD_MULTIPLE_STEPS_SIZE);\n const multipleStepDown = () => onResize(currentSize - KEYBOARD_MULTIPLE_STEPS_SIZE);\n\n handleKey(event, {\n onBlockStart: () => {\n position === 'bottom' ? singleStepUp() : singleStepDown();\n },\n onBlockEnd: () => {\n position === 'bottom' ? singleStepDown() : singleStepUp();\n },\n onInlineEnd: () => {\n position === 'bottom' ? singleStepUp() : singleStepDown();\n },\n onInlineStart: () => {\n position === 'bottom' ? singleStepDown() : singleStepUp();\n },\n onPageDown: () => multipleStepDown(),\n onPageUp: () => multipleStepUp(),\n onHome: () => onResize(maxSize),\n onEnd: () => onResize(0),\n onDefault: () => (isEventHandled = false),\n });\n\n if (isEventHandled) {\n event.preventDefault();\n event.stopPropagation();\n }\n };\n};\n"]}
1
+ {"version":3,"file":"use-keyboard-events.js","sourceRoot":"","sources":["../../../../src/app-layout/utils/use-keyboard-events.ts"],"names":[],"mappings":"AAKA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AAGxD,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAExC,MAAM,cAAc,GAAG,CAAC,QAA0C,EAAE,EAAE;IACpE,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE;QAClC,OAAO;YACL,WAAW,EAAE,CAAC;YACd,UAAU,EAAE,CAAC;SACd,CAAC;KACH;IAED,OAAO;QACL,WAAW,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY;QAC1C,UAAU,EAAE,QAAQ,CAAC,OAAO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,CAAC,cAAc,GAAG,KAAK,CAAC;aAC1C,CAAC,CAAC;YAEH,IAAI,cAAc,EAAE;gBAClB,KAAK,CAAC,cAAc,EAAE,CAAC;aACxB;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { Direction } from '../../internal/components/drag-handle-wrapper/interfaces';\nimport handleKey from '../../internal/utils/handle-key';\nimport { SizeControlProps } from './interfaces';\n\nconst KEYBOARD_SINGLE_STEP_SIZE = 10;\nconst KEYBOARD_MULTIPLE_STEPS_SIZE = 60;\n\nconst getCurrentSize = (panelRef?: React.RefObject<HTMLDivElement>) => {\n if (!panelRef || !panelRef.current) {\n return {\n panelHeight: 0,\n panelWidth: 0,\n };\n }\n\n return {\n panelHeight: panelRef.current.clientHeight,\n panelWidth: panelRef.current.clientWidth,\n };\n};\n\nexport const useKeyboardEvents = ({ position, onResize, panelRef }: SizeControlProps) => {\n return {\n onDirectionClick: (direction: Direction) => {\n let currentSize: number;\n\n const { panelHeight, panelWidth } = getCurrentSize(panelRef);\n\n if (position === 'side') {\n currentSize = panelWidth;\n } else {\n currentSize = panelHeight;\n }\n\n const singleStepUp = () => onResize(currentSize + KEYBOARD_SINGLE_STEP_SIZE);\n const singleStepDown = () => onResize(currentSize - KEYBOARD_SINGLE_STEP_SIZE);\n\n switch (direction) {\n case 'block-start':\n case 'inline-start':\n singleStepUp();\n break;\n case 'block-end':\n case 'inline-end':\n singleStepDown();\n break;\n }\n },\n\n onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => {\n let currentSize: number;\n let maxSize: number;\n\n const { panelHeight, panelWidth } = getCurrentSize(panelRef);\n\n if (position === 'side') {\n currentSize = panelWidth;\n // don't need the exact max size as it's constrained in the set size function\n maxSize = window.innerWidth;\n } else {\n currentSize = panelHeight;\n // don't need the exact max size as it's constrained in the set size function\n maxSize = window.innerHeight;\n }\n\n let isEventHandled = true;\n\n const singleStepUp = () => onResize(currentSize + KEYBOARD_SINGLE_STEP_SIZE);\n const singleStepDown = () => onResize(currentSize - KEYBOARD_SINGLE_STEP_SIZE);\n const multipleStepUp = () => onResize(currentSize + KEYBOARD_MULTIPLE_STEPS_SIZE);\n const multipleStepDown = () => onResize(currentSize - KEYBOARD_MULTIPLE_STEPS_SIZE);\n\n handleKey(event, {\n onBlockStart: () => {\n position === 'bottom' ? singleStepUp() : singleStepDown();\n },\n onBlockEnd: () => {\n position === 'bottom' ? singleStepDown() : singleStepUp();\n },\n onInlineEnd: () => {\n position === 'bottom' ? singleStepUp() : singleStepDown();\n },\n onInlineStart: () => {\n position === 'bottom' ? singleStepDown() : singleStepUp();\n },\n onPageDown: () => multipleStepDown(),\n onPageUp: () => multipleStepUp(),\n onHome: () => onResize(maxSize),\n onEnd: () => onResize(0),\n onDefault: () => (isEventHandled = false),\n });\n\n if (isEventHandled) {\n event.preventDefault();\n }\n },\n };\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"use-resize.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/utils/use-resize.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAMvD,UAAU,iBAAiB;IACzB,YAAY,EAAE,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC;IAChD,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,CAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACrE,WAAW,EAAE,gBAAgB,CAAC;IAC9B,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,iBAAS,SAAS,CAChB,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAChD,EACE,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,eAAe,EACf,eAAe,GAChB,EAAE,iBAAiB;;;EAiDrB;AAED,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"use-resize.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/utils/use-resize.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAMvD,UAAU,iBAAiB;IACzB,YAAY,EAAE,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC;IAChD,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,CAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACrE,WAAW,EAAE,gBAAgB,CAAC;IAC9B,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,iBAAS,SAAS,CAChB,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAChD,EACE,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,eAAe,EACf,eAAe,GAChB,EAAE,iBAAiB;;;EAmDrB;AAED,eAAe,SAAS,CAAC"}
@@ -7,7 +7,7 @@ import { useKeyboardEvents } from './use-keyboard-events';
7
7
  import { usePointerEvents } from './use-pointer-events';
8
8
  import testutilStyles from '../test-classes/styles.css.js';
9
9
  function useResize(drawerRefObject, { activeDrawer, activeDrawerSize, onActiveDrawerResize, drawersRefs, isToolsOpen, drawersMinWidth, drawersMaxWidth, }) {
10
- var _a;
10
+ var _a, _b;
11
11
  const [relativeSize, setRelativeSize] = useState(0);
12
12
  const drawerSize = !activeDrawer && !isToolsOpen ? 0 : activeDrawerSize;
13
13
  useEffect(() => {
@@ -34,8 +34,8 @@ function useResize(drawerRefObject, { activeDrawer, activeDrawerSize, onActiveDr
34
34
  onResize: setSidePanelWidth,
35
35
  };
36
36
  const onSliderPointerDown = usePointerEvents(sizeControlProps);
37
- const onKeyDown = useKeyboardEvents(sizeControlProps);
38
- const resizeHandle = (React.createElement(PanelResizeHandle, { ref: drawersRefs.slider, position: "side", ariaLabel: (_a = activeDrawer === null || activeDrawer === void 0 ? void 0 : activeDrawer.ariaLabels) === null || _a === void 0 ? void 0 : _a.resizeHandle, ariaValuenow: relativeSize, className: testutilStyles['drawers-slider'], onKeyDown: onKeyDown, onPointerDown: onSliderPointerDown }));
37
+ const { onKeyDown, onDirectionClick } = useKeyboardEvents(sizeControlProps);
38
+ const resizeHandle = (React.createElement(PanelResizeHandle, { ref: drawersRefs.slider, position: "side", ariaLabel: (_a = activeDrawer === null || activeDrawer === void 0 ? void 0 : activeDrawer.ariaLabels) === null || _a === void 0 ? void 0 : _a.resizeHandle, tooltipText: (_b = activeDrawer === null || activeDrawer === void 0 ? void 0 : activeDrawer.ariaLabels) === null || _b === void 0 ? void 0 : _b.resizeHandleTooltipText, ariaValuenow: relativeSize, className: testutilStyles['drawers-slider'], onKeyDown: onKeyDown, onDirectionClick: onDirectionClick, onPointerDown: onSliderPointerDown }));
39
39
  return { resizeHandle, drawerSize };
40
40
  }
41
41
  export default useResize;
@@ -1 +1 @@
1
- {"version":3,"file":"use-resize.js","sourceRoot":"","sources":["../../../../src/app-layout/utils/use-resize.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,iBAAiB,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAE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AoB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;SACpC;IACH,CAAC,CAAC;IAEF,MAAM,gBAAgB,GAAqB;QACzC,QAAQ,EAAE,MAAM;QAChB,QAAQ,EAAE,eAAe;QACzB,SAAS,EAAE,WAAW,CAAC,MAAM;QAC7B,QAAQ,EAAE,iBAAiB;KAC5B,CAAC;IAEF,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC/D,MAAM,SAAS,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAEtD,MAAM,YAAY,GAAG,CACnB,oBAAC,iBAAiB,IAChB,GAAG,EAAE,WAAW,CAAC,MAAM,EACvB,QAAQ,EAAC,MAAM,EACf,SAAS,EAAE,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,0CAAE,YAAY,EACjD,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,cAAc,CAAC,gBAAgB,CAAC,EAC3C,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,mBAAmB,GAClC,CACH,CAAC;IAEF,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AACtC,CAAC;AAED,eAAe,SAAS,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useState } from 'react';\n\nimport PanelResizeHandle from '../../internal/components/panel-resize-handle';\nimport { getLimitedValue } from '../../split-panel/utils/size-utils';\nimport { AppLayoutProps } from '../interfaces';\nimport { SizeControlProps } from './interfaces';\nimport { FocusControlRefs } from './use-focus-control';\nimport { useKeyboardEvents } from './use-keyboard-events';\nimport { usePointerEvents } from './use-pointer-events';\n\nimport testutilStyles from '../test-classes/styles.css.js';\n\ninterface DrawerResizeProps {\n activeDrawer: AppLayoutProps.Drawer | undefined;\n activeDrawerSize: number;\n onActiveDrawerResize: (detail: { id: string; size: number }) => void;\n drawersRefs: FocusControlRefs;\n isToolsOpen: boolean;\n drawersMaxWidth: number;\n drawersMinWidth: number;\n}\n\nfunction useResize(\n drawerRefObject: React.RefObject<HTMLDivElement>,\n {\n activeDrawer,\n activeDrawerSize,\n onActiveDrawerResize,\n drawersRefs,\n isToolsOpen,\n drawersMinWidth,\n drawersMaxWidth,\n }: DrawerResizeProps\n) {\n const [relativeSize, setRelativeSize] = useState(0);\n\n const drawerSize = !activeDrawer && !isToolsOpen ? 0 : activeDrawerSize;\n\n useEffect(() => {\n // effects are called inside out in the components tree\n // wait one frame to allow app-layout to complete its calculations\n const handle = requestAnimationFrame(() => {\n const maxSize = drawersMaxWidth;\n setRelativeSize(((drawerSize - drawersMinWidth) / (maxSize - drawersMinWidth)) * 100);\n });\n return () => cancelAnimationFrame(handle);\n }, [drawerSize, drawersMaxWidth, drawersMinWidth]);\n\n const setSidePanelWidth = (width: number) => {\n const maxWidth = drawersMaxWidth;\n const size = getLimitedValue(drawersMinWidth, width, maxWidth);\n const id = activeDrawer?.id;\n\n if (id && maxWidth >= drawersMinWidth) {\n onActiveDrawerResize({ size, id });\n }\n };\n\n const sizeControlProps: SizeControlProps = {\n position: 'side',\n panelRef: drawerRefObject,\n handleRef: drawersRefs.slider,\n onResize: setSidePanelWidth,\n };\n\n const onSliderPointerDown = usePointerEvents(sizeControlProps);\n const onKeyDown = useKeyboardEvents(sizeControlProps);\n\n const resizeHandle = (\n <PanelResizeHandle\n ref={drawersRefs.slider}\n position=\"side\"\n ariaLabel={activeDrawer?.ariaLabels?.resizeHandle}\n ariaValuenow={relativeSize}\n className={testutilStyles['drawers-slider']}\n onKeyDown={onKeyDown}\n onPointerDown={onSliderPointerDown}\n />\n );\n\n return { resizeHandle, drawerSize };\n}\n\nexport default useResize;\n"]}
1
+ {"version":3,"file":"use-resize.js","sourceRoot":"","sources":["../../../../src/app-layout/utils/use-resize.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAA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,YAAY,uBAAZ,YAAY,CAAE,EAAE,CAAC;QAE5B,IAAI,EAAE,IAAI,QAAQ,IAAI,eAAe,EAAE;YACrC,oBAAoB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;SACpC;IACH,CAAC,CAAC;IAEF,MAAM,gBAAgB,GAAqB;QACzC,QAAQ,EAAE,MAAM;QAChB,QAAQ,EAAE,eAAe;QACzB,SAAS,EAAE,WAAW,CAAC,MAAM;QAC7B,QAAQ,EAAE,iBAAiB;KAC5B,CAAC;IAEF,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC/D,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAE5E,MAAM,YAAY,GAAG,CACnB,oBAAC,iBAAiB,IAChB,GAAG,EAAE,WAAW,CAAC,MAAM,EACvB,QAAQ,EAAC,MAAM,EACf,SAAS,EAAE,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,0CAAE,YAAY,EACjD,WAAW,EAAE,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,0CAAE,uBAAuB,EAC9D,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,cAAc,CAAC,gBAAgB,CAAC,EAC3C,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,gBAAgB,EAClC,aAAa,EAAE,mBAAmB,GAClC,CACH,CAAC;IAEF,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AACtC,CAAC;AAED,eAAe,SAAS,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useState } from 'react';\n\nimport PanelResizeHandle from '../../internal/components/panel-resize-handle';\nimport { getLimitedValue } from '../../split-panel/utils/size-utils';\nimport { AppLayoutProps } from '../interfaces';\nimport { SizeControlProps } from './interfaces';\nimport { FocusControlRefs } from './use-focus-control';\nimport { useKeyboardEvents } from './use-keyboard-events';\nimport { usePointerEvents } from './use-pointer-events';\n\nimport testutilStyles from '../test-classes/styles.css.js';\n\ninterface DrawerResizeProps {\n activeDrawer: AppLayoutProps.Drawer | undefined;\n activeDrawerSize: number;\n onActiveDrawerResize: (detail: { id: string; size: number }) => void;\n drawersRefs: FocusControlRefs;\n isToolsOpen: boolean;\n drawersMaxWidth: number;\n drawersMinWidth: number;\n}\n\nfunction useResize(\n drawerRefObject: React.RefObject<HTMLDivElement>,\n {\n activeDrawer,\n activeDrawerSize,\n onActiveDrawerResize,\n drawersRefs,\n isToolsOpen,\n drawersMinWidth,\n drawersMaxWidth,\n }: DrawerResizeProps\n) {\n const [relativeSize, setRelativeSize] = useState(0);\n\n const drawerSize = !activeDrawer && !isToolsOpen ? 0 : activeDrawerSize;\n\n useEffect(() => {\n // effects are called inside out in the components tree\n // wait one frame to allow app-layout to complete its calculations\n const handle = requestAnimationFrame(() => {\n const maxSize = drawersMaxWidth;\n setRelativeSize(((drawerSize - drawersMinWidth) / (maxSize - drawersMinWidth)) * 100);\n });\n return () => cancelAnimationFrame(handle);\n }, [drawerSize, drawersMaxWidth, drawersMinWidth]);\n\n const setSidePanelWidth = (width: number) => {\n const maxWidth = drawersMaxWidth;\n const size = getLimitedValue(drawersMinWidth, width, maxWidth);\n const id = activeDrawer?.id;\n\n if (id && maxWidth >= drawersMinWidth) {\n onActiveDrawerResize({ size, id });\n }\n };\n\n const sizeControlProps: SizeControlProps = {\n position: 'side',\n panelRef: drawerRefObject,\n handleRef: drawersRefs.slider,\n onResize: setSidePanelWidth,\n };\n\n const onSliderPointerDown = usePointerEvents(sizeControlProps);\n const { onKeyDown, onDirectionClick } = useKeyboardEvents(sizeControlProps);\n\n const resizeHandle = (\n <PanelResizeHandle\n ref={drawersRefs.slider}\n position=\"side\"\n ariaLabel={activeDrawer?.ariaLabels?.resizeHandle}\n tooltipText={activeDrawer?.ariaLabels?.resizeHandleTooltipText}\n ariaValuenow={relativeSize}\n className={testutilStyles['drawers-slider']}\n onKeyDown={onKeyDown}\n onDirectionClick={onDirectionClick}\n onPointerDown={onSliderPointerDown}\n />\n );\n\n return { resizeHandle, drawerSize };\n}\n\nexport default useResize;\n"]}
@@ -1,91 +1,91 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "background": "awsui_background_hyvsj_1u3br_149",
5
- "scrolling-background": "awsui_scrolling-background_hyvsj_1u3br_152",
6
- "breadcrumbs": "awsui_breadcrumbs_hyvsj_1u3br_163",
7
- "drawers-container": "awsui_drawers-container_hyvsj_1u3br_176",
8
- "has-open-drawer": "awsui_has-open-drawer_hyvsj_1u3br_187",
9
- "disable-body-scroll": "awsui_disable-body-scroll_hyvsj_1u3br_208",
10
- "drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_1u3br_213",
11
- "has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_1u3br_251",
12
- "drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_1u3br_261",
13
- "drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_1u3br_266",
14
- "drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_1u3br_280",
15
- "drawers-trigger": "awsui_drawers-trigger_hyvsj_1u3br_266",
16
- "drawer": "awsui_drawer_hyvsj_1u3br_176",
17
- "drawer-content-container": "awsui_drawer-content-container_hyvsj_1u3br_311",
18
- "drawer-close-button": "awsui_drawer-close-button_hyvsj_1u3br_320",
19
- "drawer-content": "awsui_drawer-content_hyvsj_1u3br_311",
20
- "drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_1u3br_329",
21
- "drawer-slider": "awsui_drawer-slider_hyvsj_1u3br_332",
22
- "is-drawer-open": "awsui_is-drawer-open_hyvsj_1u3br_339",
23
- "content": "awsui_content_hyvsj_1u3br_365",
24
- "layout": "awsui_layout_hyvsj_1u3br_390",
25
- "has-max-content-width": "awsui_has-max-content-width_hyvsj_1u3br_462",
26
- "content-type-dashboard": "awsui_content-type-dashboard_hyvsj_1u3br_477",
27
- "content-type-table": "awsui_content-type-table_hyvsj_1u3br_491",
28
- "content-type-cards": "awsui_content-type-cards_hyvsj_1u3br_491",
29
- "is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_1u3br_497",
30
- "is-hide-mobile-toolbar": "awsui_is-hide-mobile-toolbar_hyvsj_1u3br_500",
31
- "has-content-gap-left": "awsui_has-content-gap-left_hyvsj_1u3br_514",
32
- "has-content-gap-right": "awsui_has-content-gap-right_hyvsj_1u3br_517",
33
- "has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_1u3br_527",
34
- "content-first-child-header": "awsui_content-first-child-header_hyvsj_1u3br_530",
35
- "content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_1u3br_530",
36
- "has-header": "awsui_has-header_hyvsj_1u3br_530",
37
- "content-first-child-main": "awsui_content-first-child-main_hyvsj_1u3br_545",
38
- "disable-content-paddings": "awsui_disable-content-paddings_hyvsj_1u3br_545",
39
- "has-left-toggles-gutter": "awsui_has-left-toggles-gutter_hyvsj_1u3br_565",
40
- "has-right-toggles-gutter": "awsui_has-right-toggles-gutter_hyvsj_1u3br_568",
41
- "has-split-panel": "awsui_has-split-panel_hyvsj_1u3br_588",
42
- "split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_1u3br_588",
43
- "block-body-scroll": "awsui_block-body-scroll_hyvsj_1u3br_596",
44
- "unfocusable": "awsui_unfocusable_hyvsj_1u3br_601",
45
- "container": "awsui_container_hyvsj_1u3br_611",
46
- "is-navigation-open": "awsui_is-navigation-open_hyvsj_1u3br_637",
47
- "is-tools-open": "awsui_is-tools-open_hyvsj_1u3br_640",
48
- "is-split-panel-open": "awsui_is-split-panel-open_hyvsj_1u3br_640",
49
- "split-panel-position-side": "awsui_split-panel-position-side_hyvsj_1u3br_640",
50
- "has-active-drawer": "awsui_has-active-drawer_hyvsj_1u3br_640",
51
- "mobile-toolbar": "awsui_mobile-toolbar_hyvsj_1u3br_653",
52
- "remove-high-contrast-header": "awsui_remove-high-contrast-header_hyvsj_1u3br_670",
53
- "mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_1u3br_674",
54
- "mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_1u3br_678",
55
- "mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_1u3br_682",
56
- "navigation-container": "awsui_navigation-container_hyvsj_1u3br_691",
57
- "show-navigation": "awsui_show-navigation_hyvsj_1u3br_729",
58
- "animating": "awsui_animating_hyvsj_1u3br_752",
59
- "showButtons": "awsui_showButtons_hyvsj_1u3br_1",
60
- "navigation": "awsui_navigation_hyvsj_1u3br_691",
61
- "openNavigation": "awsui_openNavigation_hyvsj_1u3br_1",
62
- "animated-content": "awsui_animated-content_hyvsj_1u3br_816",
63
- "content-container": "awsui_content-container_hyvsj_1u3br_819",
64
- "hide-navigation": "awsui_hide-navigation_hyvsj_1u3br_828",
65
- "notifications": "awsui_notifications_hyvsj_1u3br_838",
66
- "has-notification-content": "awsui_has-notification-content_hyvsj_1u3br_843",
67
- "sticky-notifications": "awsui_sticky-notifications_hyvsj_1u3br_847",
68
- "high-contrast": "awsui_high-contrast_hyvsj_1u3br_852",
69
- "split-panel-bottom": "awsui_split-panel-bottom_hyvsj_1u3br_870",
70
- "position-bottom": "awsui_position-bottom_hyvsj_1u3br_917",
71
- "openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_1u3br_1",
72
- "split-panel-side": "awsui_split-panel-side_hyvsj_1u3br_946",
73
- "position-side": "awsui_position-side_hyvsj_1u3br_959",
74
- "tools-container": "awsui_tools-container_hyvsj_1u3br_981",
75
- "tools": "awsui_tools_hyvsj_1u3br_981",
76
- "openTools": "awsui_openTools_hyvsj_1u3br_1",
77
- "has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_1u3br_1070",
78
- "hide-tools": "awsui_hide-tools_hyvsj_1u3br_1080",
79
- "show-tools": "awsui_show-tools_hyvsj_1u3br_1092",
80
- "has-tools-form": "awsui_has-tools-form_hyvsj_1u3br_1070",
81
- "trigger-button-styles": "awsui_trigger-button-styles_hyvsj_1u3br_1172",
82
- "trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_1u3br_1188",
83
- "trigger": "awsui_trigger_hyvsj_1u3br_1172",
84
- "selected": "awsui_selected_hyvsj_1u3br_1240",
85
- "badge": "awsui_badge_hyvsj_1u3br_1260",
86
- "trigger-wrapper": "awsui_trigger-wrapper_hyvsj_1u3br_1264",
87
- "trigger-wrapper-tooltip-visible": "awsui_trigger-wrapper-tooltip-visible_hyvsj_1u3br_1275",
88
- "dot": "awsui_dot_hyvsj_1u3br_1279",
89
- "trigger-tooltip": "awsui_trigger-tooltip_hyvsj_1u3br_1292"
4
+ "background": "awsui_background_hyvsj_tjj1z_149",
5
+ "scrolling-background": "awsui_scrolling-background_hyvsj_tjj1z_152",
6
+ "breadcrumbs": "awsui_breadcrumbs_hyvsj_tjj1z_163",
7
+ "drawers-container": "awsui_drawers-container_hyvsj_tjj1z_176",
8
+ "has-open-drawer": "awsui_has-open-drawer_hyvsj_tjj1z_187",
9
+ "disable-body-scroll": "awsui_disable-body-scroll_hyvsj_tjj1z_208",
10
+ "drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_tjj1z_213",
11
+ "has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_tjj1z_251",
12
+ "drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_tjj1z_261",
13
+ "drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_tjj1z_266",
14
+ "drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_tjj1z_280",
15
+ "drawers-trigger": "awsui_drawers-trigger_hyvsj_tjj1z_266",
16
+ "drawer": "awsui_drawer_hyvsj_tjj1z_176",
17
+ "drawer-content-container": "awsui_drawer-content-container_hyvsj_tjj1z_311",
18
+ "drawer-close-button": "awsui_drawer-close-button_hyvsj_tjj1z_320",
19
+ "drawer-content": "awsui_drawer-content_hyvsj_tjj1z_311",
20
+ "drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_tjj1z_329",
21
+ "drawer-slider": "awsui_drawer-slider_hyvsj_tjj1z_332",
22
+ "is-drawer-open": "awsui_is-drawer-open_hyvsj_tjj1z_339",
23
+ "content": "awsui_content_hyvsj_tjj1z_365",
24
+ "layout": "awsui_layout_hyvsj_tjj1z_390",
25
+ "has-max-content-width": "awsui_has-max-content-width_hyvsj_tjj1z_462",
26
+ "content-type-dashboard": "awsui_content-type-dashboard_hyvsj_tjj1z_477",
27
+ "content-type-table": "awsui_content-type-table_hyvsj_tjj1z_491",
28
+ "content-type-cards": "awsui_content-type-cards_hyvsj_tjj1z_491",
29
+ "is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_tjj1z_497",
30
+ "is-hide-mobile-toolbar": "awsui_is-hide-mobile-toolbar_hyvsj_tjj1z_500",
31
+ "has-content-gap-left": "awsui_has-content-gap-left_hyvsj_tjj1z_514",
32
+ "has-content-gap-right": "awsui_has-content-gap-right_hyvsj_tjj1z_517",
33
+ "has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_tjj1z_527",
34
+ "content-first-child-header": "awsui_content-first-child-header_hyvsj_tjj1z_530",
35
+ "content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_tjj1z_530",
36
+ "has-header": "awsui_has-header_hyvsj_tjj1z_530",
37
+ "content-first-child-main": "awsui_content-first-child-main_hyvsj_tjj1z_545",
38
+ "disable-content-paddings": "awsui_disable-content-paddings_hyvsj_tjj1z_545",
39
+ "has-left-toggles-gutter": "awsui_has-left-toggles-gutter_hyvsj_tjj1z_565",
40
+ "has-right-toggles-gutter": "awsui_has-right-toggles-gutter_hyvsj_tjj1z_568",
41
+ "has-split-panel": "awsui_has-split-panel_hyvsj_tjj1z_588",
42
+ "split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_tjj1z_588",
43
+ "block-body-scroll": "awsui_block-body-scroll_hyvsj_tjj1z_596",
44
+ "unfocusable": "awsui_unfocusable_hyvsj_tjj1z_601",
45
+ "container": "awsui_container_hyvsj_tjj1z_611",
46
+ "is-navigation-open": "awsui_is-navigation-open_hyvsj_tjj1z_637",
47
+ "is-tools-open": "awsui_is-tools-open_hyvsj_tjj1z_640",
48
+ "is-split-panel-open": "awsui_is-split-panel-open_hyvsj_tjj1z_640",
49
+ "split-panel-position-side": "awsui_split-panel-position-side_hyvsj_tjj1z_640",
50
+ "has-active-drawer": "awsui_has-active-drawer_hyvsj_tjj1z_640",
51
+ "mobile-toolbar": "awsui_mobile-toolbar_hyvsj_tjj1z_653",
52
+ "remove-high-contrast-header": "awsui_remove-high-contrast-header_hyvsj_tjj1z_670",
53
+ "mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_tjj1z_674",
54
+ "mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_tjj1z_678",
55
+ "mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_tjj1z_682",
56
+ "navigation-container": "awsui_navigation-container_hyvsj_tjj1z_691",
57
+ "show-navigation": "awsui_show-navigation_hyvsj_tjj1z_729",
58
+ "animating": "awsui_animating_hyvsj_tjj1z_752",
59
+ "showButtons": "awsui_showButtons_hyvsj_tjj1z_1",
60
+ "navigation": "awsui_navigation_hyvsj_tjj1z_691",
61
+ "openNavigation": "awsui_openNavigation_hyvsj_tjj1z_1",
62
+ "animated-content": "awsui_animated-content_hyvsj_tjj1z_816",
63
+ "content-container": "awsui_content-container_hyvsj_tjj1z_819",
64
+ "hide-navigation": "awsui_hide-navigation_hyvsj_tjj1z_828",
65
+ "notifications": "awsui_notifications_hyvsj_tjj1z_838",
66
+ "has-notification-content": "awsui_has-notification-content_hyvsj_tjj1z_843",
67
+ "sticky-notifications": "awsui_sticky-notifications_hyvsj_tjj1z_847",
68
+ "high-contrast": "awsui_high-contrast_hyvsj_tjj1z_852",
69
+ "split-panel-bottom": "awsui_split-panel-bottom_hyvsj_tjj1z_870",
70
+ "position-bottom": "awsui_position-bottom_hyvsj_tjj1z_917",
71
+ "openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_tjj1z_1",
72
+ "split-panel-side": "awsui_split-panel-side_hyvsj_tjj1z_946",
73
+ "position-side": "awsui_position-side_hyvsj_tjj1z_959",
74
+ "tools-container": "awsui_tools-container_hyvsj_tjj1z_981",
75
+ "tools": "awsui_tools_hyvsj_tjj1z_981",
76
+ "openTools": "awsui_openTools_hyvsj_tjj1z_1",
77
+ "has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_tjj1z_1070",
78
+ "hide-tools": "awsui_hide-tools_hyvsj_tjj1z_1080",
79
+ "show-tools": "awsui_show-tools_hyvsj_tjj1z_1092",
80
+ "has-tools-form": "awsui_has-tools-form_hyvsj_tjj1z_1070",
81
+ "trigger-button-styles": "awsui_trigger-button-styles_hyvsj_tjj1z_1172",
82
+ "trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_tjj1z_1188",
83
+ "trigger": "awsui_trigger_hyvsj_tjj1z_1172",
84
+ "selected": "awsui_selected_hyvsj_tjj1z_1240",
85
+ "badge": "awsui_badge_hyvsj_tjj1z_1260",
86
+ "trigger-wrapper": "awsui_trigger-wrapper_hyvsj_tjj1z_1264",
87
+ "trigger-wrapper-tooltip-visible": "awsui_trigger-wrapper-tooltip-visible_hyvsj_tjj1z_1275",
88
+ "dot": "awsui_dot_hyvsj_tjj1z_1279",
89
+ "trigger-tooltip": "awsui_trigger-tooltip_hyvsj_tjj1z_1292"
90
90
  };
91
91