@cloudscape-design/components 3.0.1060 → 3.0.1062

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 (130) hide show
  1. package/app-layout/utils/use-focus-control.d.ts +2 -1
  2. package/app-layout/utils/use-focus-control.d.ts.map +1 -1
  3. package/app-layout/utils/use-focus-control.js +66 -6
  4. package/app-layout/utils/use-focus-control.js.map +1 -1
  5. package/app-layout/utils/use-split-panel-focus-control.d.ts.map +1 -1
  6. package/app-layout/utils/use-split-panel-focus-control.js +15 -13
  7. package/app-layout/utils/use-split-panel-focus-control.js.map +1 -1
  8. package/app-layout/visual-refresh-toolbar/index.d.ts.map +1 -1
  9. package/app-layout/visual-refresh-toolbar/index.js +37 -350
  10. package/app-layout/visual-refresh-toolbar/index.js.map +1 -1
  11. package/app-layout/visual-refresh-toolbar/interfaces.d.ts +21 -1
  12. package/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
  13. package/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
  14. package/app-layout/visual-refresh-toolbar/internal.d.ts +24 -1
  15. package/app-layout/visual-refresh-toolbar/internal.d.ts.map +1 -1
  16. package/app-layout/visual-refresh-toolbar/internal.js +13 -0
  17. package/app-layout/visual-refresh-toolbar/internal.js.map +1 -1
  18. package/app-layout/visual-refresh-toolbar/navigation/index.js +1 -1
  19. package/app-layout/visual-refresh-toolbar/navigation/index.js.map +1 -1
  20. package/app-layout/visual-refresh-toolbar/notifications/index.js +2 -2
  21. package/app-layout/visual-refresh-toolbar/notifications/index.js.map +1 -1
  22. package/app-layout/visual-refresh-toolbar/skeleton/index.d.ts +17 -16
  23. package/app-layout/visual-refresh-toolbar/skeleton/index.d.ts.map +1 -1
  24. package/app-layout/visual-refresh-toolbar/skeleton/index.js +21 -30
  25. package/app-layout/visual-refresh-toolbar/skeleton/index.js.map +1 -1
  26. package/app-layout/visual-refresh-toolbar/skeleton/interfaces.d.ts +20 -0
  27. package/app-layout/visual-refresh-toolbar/skeleton/interfaces.d.ts.map +1 -0
  28. package/app-layout/visual-refresh-toolbar/skeleton/interfaces.js +2 -0
  29. package/app-layout/visual-refresh-toolbar/skeleton/interfaces.js.map +1 -0
  30. package/app-layout/visual-refresh-toolbar/skeleton/multi-layout.d.ts +7 -0
  31. package/app-layout/visual-refresh-toolbar/skeleton/multi-layout.d.ts.map +1 -0
  32. package/app-layout/visual-refresh-toolbar/skeleton/multi-layout.js +41 -0
  33. package/app-layout/visual-refresh-toolbar/skeleton/multi-layout.js.map +1 -0
  34. package/app-layout/visual-refresh-toolbar/skeleton/{slot-skeletons.d.ts → skeleton-parts.d.ts} +8 -0
  35. package/app-layout/visual-refresh-toolbar/skeleton/skeleton-parts.d.ts.map +1 -0
  36. package/app-layout/visual-refresh-toolbar/skeleton/skeleton-parts.js +21 -0
  37. package/app-layout/visual-refresh-toolbar/skeleton/skeleton-parts.js.map +1 -0
  38. package/app-layout/visual-refresh-toolbar/skeleton/{slot-wrappers.d.ts → slots.d.ts} +9 -0
  39. package/app-layout/visual-refresh-toolbar/skeleton/slots.d.ts.map +1 -0
  40. package/app-layout/visual-refresh-toolbar/skeleton/{breadcrumbs/index.js → slots.js} +6 -3
  41. package/app-layout/visual-refresh-toolbar/skeleton/slots.js.map +1 -0
  42. package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +23 -21
  43. package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +42 -37
  44. package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +23 -21
  45. package/app-layout/visual-refresh-toolbar/state/index.d.ts +29 -0
  46. package/app-layout/visual-refresh-toolbar/state/index.d.ts.map +1 -0
  47. package/app-layout/visual-refresh-toolbar/state/index.js +27 -0
  48. package/app-layout/visual-refresh-toolbar/state/index.js.map +1 -0
  49. package/app-layout/visual-refresh-toolbar/{multi-layout.d.ts → state/interfaces.d.ts} +11 -16
  50. package/app-layout/visual-refresh-toolbar/state/interfaces.d.ts.map +1 -0
  51. package/app-layout/visual-refresh-toolbar/state/interfaces.js +2 -0
  52. package/app-layout/visual-refresh-toolbar/state/interfaces.js.map +1 -0
  53. package/app-layout/visual-refresh-toolbar/state/invariants.d.ts +2 -0
  54. package/app-layout/visual-refresh-toolbar/state/invariants.d.ts.map +1 -0
  55. package/app-layout/visual-refresh-toolbar/state/invariants.js +4 -0
  56. package/app-layout/visual-refresh-toolbar/state/invariants.js.map +1 -0
  57. package/app-layout/visual-refresh-toolbar/state/props-merger.d.ts +4 -0
  58. package/app-layout/visual-refresh-toolbar/state/props-merger.d.ts.map +1 -0
  59. package/app-layout/visual-refresh-toolbar/{multi-layout.js → state/props-merger.js} +28 -40
  60. package/app-layout/visual-refresh-toolbar/state/props-merger.js.map +1 -0
  61. package/app-layout/visual-refresh-toolbar/state/use-app-layout.d.ts +31 -0
  62. package/app-layout/visual-refresh-toolbar/state/use-app-layout.d.ts.map +1 -0
  63. package/app-layout/visual-refresh-toolbar/state/use-app-layout.js +322 -0
  64. package/app-layout/visual-refresh-toolbar/state/use-app-layout.js.map +1 -0
  65. package/app-layout/visual-refresh-toolbar/state/use-skeleton-slots-attributes.d.ts +3 -0
  66. package/app-layout/visual-refresh-toolbar/state/use-skeleton-slots-attributes.d.ts.map +1 -0
  67. package/app-layout/visual-refresh-toolbar/state/use-skeleton-slots-attributes.js +59 -0
  68. package/app-layout/visual-refresh-toolbar/state/use-skeleton-slots-attributes.js.map +1 -0
  69. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts +2 -2
  70. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts.map +1 -1
  71. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js.map +1 -1
  72. package/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
  73. package/app-layout/visual-refresh-toolbar/toolbar/index.js +2 -3
  74. package/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
  75. package/app-layout/visual-refresh-toolbar/widget-areas/after-main-slot.d.ts +13 -0
  76. package/app-layout/visual-refresh-toolbar/widget-areas/after-main-slot.d.ts.map +1 -0
  77. package/app-layout/visual-refresh-toolbar/widget-areas/after-main-slot.js +29 -0
  78. package/app-layout/visual-refresh-toolbar/widget-areas/after-main-slot.js.map +1 -0
  79. package/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.d.ts +16 -0
  80. package/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.d.ts.map +1 -0
  81. package/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js +28 -0
  82. package/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js.map +1 -0
  83. package/app-layout/visual-refresh-toolbar/widget-areas/bottom-content-slot.d.ts +13 -0
  84. package/app-layout/visual-refresh-toolbar/widget-areas/bottom-content-slot.d.ts.map +1 -0
  85. package/app-layout/visual-refresh-toolbar/widget-areas/bottom-content-slot.js +17 -0
  86. package/app-layout/visual-refresh-toolbar/widget-areas/bottom-content-slot.js.map +1 -0
  87. package/app-layout/visual-refresh-toolbar/widget-areas/top-content-slot.d.ts +13 -0
  88. package/app-layout/visual-refresh-toolbar/widget-areas/top-content-slot.d.ts.map +1 -0
  89. package/app-layout/visual-refresh-toolbar/widget-areas/top-content-slot.js +19 -0
  90. package/app-layout/visual-refresh-toolbar/widget-areas/top-content-slot.js.map +1 -0
  91. package/breadcrumb-group/internal.d.ts +2 -1
  92. package/breadcrumb-group/internal.d.ts.map +1 -1
  93. package/breadcrumb-group/internal.js +3 -2
  94. package/breadcrumb-group/internal.js.map +1 -1
  95. package/internal/base-component/styles.scoped.css +1 -1
  96. package/internal/environment.js +2 -2
  97. package/internal/environment.json +2 -2
  98. package/internal/manifest.json +1 -1
  99. package/internal/types.d.ts +9 -0
  100. package/internal/types.d.ts.map +1 -1
  101. package/internal/types.js.map +1 -1
  102. package/internal/widget-exports.d.ts +5 -0
  103. package/internal/widget-exports.d.ts.map +1 -1
  104. package/internal/widget-exports.js +7 -0
  105. package/internal/widget-exports.js.map +1 -1
  106. package/internal/widgets/index.d.ts +3 -4
  107. package/internal/widgets/index.d.ts.map +1 -1
  108. package/internal/widgets/index.js.map +1 -1
  109. package/internal/widgets/loader-mock.d.ts +2 -0
  110. package/internal/widgets/loader-mock.d.ts.map +1 -0
  111. package/internal/widgets/loader-mock.js +43 -0
  112. package/internal/widgets/loader-mock.js.map +1 -0
  113. package/package.json +1 -1
  114. package/split-panel/styles.css.js +27 -27
  115. package/split-panel/styles.scoped.css +46 -44
  116. package/split-panel/styles.selectors.js +27 -27
  117. package/app-layout/visual-refresh-toolbar/multi-layout.d.ts.map +0 -1
  118. package/app-layout/visual-refresh-toolbar/multi-layout.js.map +0 -1
  119. package/app-layout/visual-refresh-toolbar/skeleton/breadcrumbs/index.d.ts +0 -11
  120. package/app-layout/visual-refresh-toolbar/skeleton/breadcrumbs/index.d.ts.map +0 -1
  121. package/app-layout/visual-refresh-toolbar/skeleton/breadcrumbs/index.js.map +0 -1
  122. package/app-layout/visual-refresh-toolbar/skeleton/breadcrumbs/styles.css.js +0 -7
  123. package/app-layout/visual-refresh-toolbar/skeleton/breadcrumbs/styles.scoped.css +0 -7
  124. package/app-layout/visual-refresh-toolbar/skeleton/breadcrumbs/styles.selectors.js +0 -8
  125. package/app-layout/visual-refresh-toolbar/skeleton/slot-skeletons.d.ts.map +0 -1
  126. package/app-layout/visual-refresh-toolbar/skeleton/slot-skeletons.js +0 -9
  127. package/app-layout/visual-refresh-toolbar/skeleton/slot-skeletons.js.map +0 -1
  128. package/app-layout/visual-refresh-toolbar/skeleton/slot-wrappers.d.ts.map +0 -1
  129. package/app-layout/visual-refresh-toolbar/skeleton/slot-wrappers.js +0 -8
  130. package/app-layout/visual-refresh-toolbar/skeleton/slot-wrappers.js.map +0 -1
@@ -1,11 +1,18 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export { PACKAGE_VERSION } from './environment';
4
+ // Legacy widgetized parts
4
5
  export { AppLayoutDrawerImplementation as AppLayoutDrawer, AppLayoutGlobalDrawersImplementation as AppLayoutGlobalDrawers, } from '../app-layout/visual-refresh-toolbar/drawer';
5
6
  export { AppLayoutNavigationImplementation as AppLayoutNavigation } from '../app-layout/visual-refresh-toolbar/navigation';
6
7
  export { AppLayoutNotificationsImplementation as AppLayoutNotifications } from '../app-layout/visual-refresh-toolbar/notifications';
7
8
  export { AppLayoutSplitPanelDrawerBottomImplementation as AppLayoutSplitPanelBottom, AppLayoutSplitPanelDrawerSideImplementation as AppLayoutSplitPanelSide, } from '../app-layout/visual-refresh-toolbar/split-panel';
8
9
  export { AppLayoutToolbarImplementation as AppLayoutToolbar } from '../app-layout/visual-refresh-toolbar/toolbar';
10
+ // Refactored widgetized parts
11
+ export { BeforeMainSlotImplementation as AppLayoutBeforeMainSlot } from '../app-layout/visual-refresh-toolbar/widget-areas/before-main-slot';
12
+ export { AfterMainSlotImplementation as AppLayoutAfterMainSlot } from '../app-layout/visual-refresh-toolbar/widget-areas/after-main-slot';
13
+ export { TopContentSlotImplementation as AppLayoutTopContentSlot } from '../app-layout/visual-refresh-toolbar/widget-areas/top-content-slot';
14
+ export { BottomContentSlotImplementation as AppLayoutBottomContentSlot } from '../app-layout/visual-refresh-toolbar/widget-areas/bottom-content-slot';
15
+ export { AppLayoutStateProvider as AppLayoutWidgetizedState } from '../app-layout/visual-refresh-toolbar/state';
9
16
  export { SplitPanelImplementation as SplitPanel } from '../split-panel/implementation';
10
17
  export { BreadcrumbGroupImplementation as BreadcrumbGroup } from '../breadcrumb-group/implementation';
11
18
  export { DrawerImplementation as Drawer } from '../drawer/implementation';
@@ -1 +1 @@
1
- {"version":3,"file":"widget-exports.js","sourceRoot":"","sources":["../../../src/internal/widget-exports.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EACL,6BAA6B,IAAI,eAAe,EAChD,oCAAoC,IAAI,sBAAsB,GAC/D,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,iCAAiC,IAAI,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3H,OAAO,EAAE,oCAAoC,IAAI,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AACpI,OAAO,EACL,6CAA6C,IAAI,yBAAyB,EAC1E,2CAA2C,IAAI,uBAAuB,GACvE,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,8BAA8B,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAClH,OAAO,EAAE,wBAAwB,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,6BAA6B,IAAI,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACtG,OAAO,EAAE,oBAAoB,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,4BAA4B,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnG,OAAO,EAAE,uBAAuB,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport { PACKAGE_VERSION } from './environment';\nexport {\n AppLayoutDrawerImplementation as AppLayoutDrawer,\n AppLayoutGlobalDrawersImplementation as AppLayoutGlobalDrawers,\n} from '../app-layout/visual-refresh-toolbar/drawer';\nexport { AppLayoutNavigationImplementation as AppLayoutNavigation } from '../app-layout/visual-refresh-toolbar/navigation';\nexport { AppLayoutNotificationsImplementation as AppLayoutNotifications } from '../app-layout/visual-refresh-toolbar/notifications';\nexport {\n AppLayoutSplitPanelDrawerBottomImplementation as AppLayoutSplitPanelBottom,\n AppLayoutSplitPanelDrawerSideImplementation as AppLayoutSplitPanelSide,\n} from '../app-layout/visual-refresh-toolbar/split-panel';\nexport { AppLayoutToolbarImplementation as AppLayoutToolbar } from '../app-layout/visual-refresh-toolbar/toolbar';\nexport { SplitPanelImplementation as SplitPanel } from '../split-panel/implementation';\nexport { BreadcrumbGroupImplementation as BreadcrumbGroup } from '../breadcrumb-group/implementation';\nexport { DrawerImplementation as Drawer } from '../drawer/implementation';\nexport { SideNavigationImplementation as SideNavigation } from '../side-navigation/implementation';\nexport { HelpPanelImplementation as HelpPanel } from '../help-panel/implementation';\n"]}
1
+ {"version":3,"file":"widget-exports.js","sourceRoot":"","sources":["../../../src/internal/widget-exports.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,0BAA0B;AAC1B,OAAO,EACL,6BAA6B,IAAI,eAAe,EAChD,oCAAoC,IAAI,sBAAsB,GAC/D,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,iCAAiC,IAAI,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3H,OAAO,EAAE,oCAAoC,IAAI,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AACpI,OAAO,EACL,6CAA6C,IAAI,yBAAyB,EAC1E,2CAA2C,IAAI,uBAAuB,GACvE,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,8BAA8B,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAElH,8BAA8B;AAC9B,OAAO,EAAE,4BAA4B,IAAI,uBAAuB,EAAE,MAAM,oEAAoE,CAAC;AAC7I,OAAO,EAAE,2BAA2B,IAAI,sBAAsB,EAAE,MAAM,mEAAmE,CAAC;AAC1I,OAAO,EAAE,4BAA4B,IAAI,uBAAuB,EAAE,MAAM,oEAAoE,CAAC;AAC7I,OAAO,EAAE,+BAA+B,IAAI,0BAA0B,EAAE,MAAM,uEAAuE,CAAC;AACtJ,OAAO,EAAE,sBAAsB,IAAI,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAEhH,OAAO,EAAE,wBAAwB,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,6BAA6B,IAAI,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACtG,OAAO,EAAE,oBAAoB,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,4BAA4B,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnG,OAAO,EAAE,uBAAuB,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport { PACKAGE_VERSION } from './environment';\n\n// Legacy widgetized parts\nexport {\n AppLayoutDrawerImplementation as AppLayoutDrawer,\n AppLayoutGlobalDrawersImplementation as AppLayoutGlobalDrawers,\n} from '../app-layout/visual-refresh-toolbar/drawer';\nexport { AppLayoutNavigationImplementation as AppLayoutNavigation } from '../app-layout/visual-refresh-toolbar/navigation';\nexport { AppLayoutNotificationsImplementation as AppLayoutNotifications } from '../app-layout/visual-refresh-toolbar/notifications';\nexport {\n AppLayoutSplitPanelDrawerBottomImplementation as AppLayoutSplitPanelBottom,\n AppLayoutSplitPanelDrawerSideImplementation as AppLayoutSplitPanelSide,\n} from '../app-layout/visual-refresh-toolbar/split-panel';\nexport { AppLayoutToolbarImplementation as AppLayoutToolbar } from '../app-layout/visual-refresh-toolbar/toolbar';\n\n// Refactored widgetized parts\nexport { BeforeMainSlotImplementation as AppLayoutBeforeMainSlot } from '../app-layout/visual-refresh-toolbar/widget-areas/before-main-slot';\nexport { AfterMainSlotImplementation as AppLayoutAfterMainSlot } from '../app-layout/visual-refresh-toolbar/widget-areas/after-main-slot';\nexport { TopContentSlotImplementation as AppLayoutTopContentSlot } from '../app-layout/visual-refresh-toolbar/widget-areas/top-content-slot';\nexport { BottomContentSlotImplementation as AppLayoutBottomContentSlot } from '../app-layout/visual-refresh-toolbar/widget-areas/bottom-content-slot';\nexport { AppLayoutStateProvider as AppLayoutWidgetizedState } from '../app-layout/visual-refresh-toolbar/state';\n\nexport { SplitPanelImplementation as SplitPanel } from '../split-panel/implementation';\nexport { BreadcrumbGroupImplementation as BreadcrumbGroup } from '../breadcrumb-group/implementation';\nexport { DrawerImplementation as Drawer } from '../drawer/implementation';\nexport { SideNavigationImplementation as SideNavigation } from '../side-navigation/implementation';\nexport { HelpPanelImplementation as HelpPanel } from '../help-panel/implementation';\n"]}
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- export type FunctionComponent<Props> = (props: Props) => JSX.Element;
3
- type PropsType<Component extends FunctionComponent<any>> = Component extends FunctionComponent<infer Props> ? Props : never;
4
- export declare function createWidgetizedComponent<Component extends FunctionComponent<any>>(Implementation: Component, Skeleton?: React.ForwardRefExoticComponent<PropsType<Component> & React.RefAttributes<HTMLElement>>): (Loader?: Component) => Component;
5
- export {};
2
+ export type FunctionComponent<Props extends object> = (props: Props) => JSX.Element | null;
3
+ export type PropsType<Component extends FunctionComponent<any>> = Component extends FunctionComponent<infer Props> ? Props : never;
4
+ export declare function createWidgetizedComponent<Component extends FunctionComponent<any>>(Implementation: Component, Skeleton?: React.ForwardRefExoticComponent<PropsType<Component> & React.RefAttributes<HTMLElement>>): (Loader?: Component) => Component;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/internal/widgets/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,MAAM,iBAAiB,CAAC,KAAK,IAAI,CAAC,KAAK,EAAE,KAAK,KAAK,GAAG,CAAC,OAAO,CAAC;AACrE,KAAK,SAAS,CAAC,SAAS,SAAS,iBAAiB,CAAC,GAAG,CAAC,IACrD,SAAS,SAAS,iBAAiB,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC;AAEnE,wBAAgB,yBAAyB,CAAC,SAAS,SAAS,iBAAiB,CAAC,GAAG,CAAC,EAChF,cAAc,EAAE,SAAS,EACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,aAElF,SAAS,KAAG,SAAS,CAUvC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/internal/widgets/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,MAAM,iBAAiB,CAAC,KAAK,SAAS,MAAM,IAAI,CAAC,KAAK,EAAE,KAAK,KAAK,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;AAC3F,MAAM,MAAM,SAAS,CAAC,SAAS,SAAS,iBAAiB,CAAC,GAAG,CAAC,IAC5D,SAAS,SAAS,iBAAiB,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC;AAEnE,wBAAgB,yBAAyB,CAAC,SAAS,SAAS,iBAAiB,CAAC,GAAG,CAAC,EAChF,cAAc,EAAE,SAAS,EACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,aAElF,SAAS,KAAG,SAAS,CAUvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/internal/widgets/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAO5D,MAAM,UAAU,yBAAyB,CACvC,cAAyB,EACzB,QAAmG;IAEnG,OAAO,CAAC,MAAkB,EAAa,EAAE;QACvC,OAAO,CAAC,KAAK,CAAC,EAAE;YACd,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;YACrC,IAAI,SAAS,IAAI,aAAa,CAAC,iBAAiB,CAAC,IAAI,MAAM,EAAE;gBAC3D,OAAO,oBAAC,MAAM,kBAAC,QAAQ,EAAE,QAAQ,IAAO,KAAa,EAAI,CAAC;aAC3D;YAED,OAAO,oBAAC,cAAc,oBAAM,KAAa,EAAI,CAAC;QAChD,CAAC,CAAc,CAAC;IAClB,CAAC,CAAC;AACJ,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 { getGlobalFlag } from '@cloudscape-design/component-toolkit/internal';\n\nimport { useVisualRefresh } from '../hooks/use-visual-mode';\n\n// Built-in React.FunctionComponent has always present `children` property which is not desired\nexport type FunctionComponent<Props> = (props: Props) => JSX.Element;\ntype PropsType<Component extends FunctionComponent<any>> =\n Component extends FunctionComponent<infer Props> ? Props : never;\n\nexport function createWidgetizedComponent<Component extends FunctionComponent<any>>(\n Implementation: Component,\n Skeleton?: React.ForwardRefExoticComponent<PropsType<Component> & React.RefAttributes<HTMLElement>>\n) {\n return (Loader?: Component): Component => {\n return (props => {\n const isRefresh = useVisualRefresh();\n if (isRefresh && getGlobalFlag('appLayoutWidget') && Loader) {\n return <Loader Skeleton={Skeleton} {...(props as any)} />;\n }\n\n return <Implementation {...(props as any)} />;\n }) as Component;\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/internal/widgets/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAO5D,MAAM,UAAU,yBAAyB,CACvC,cAAyB,EACzB,QAAmG;IAEnG,OAAO,CAAC,MAAkB,EAAa,EAAE;QACvC,OAAO,CAAC,KAAK,CAAC,EAAE;YACd,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;YACrC,IAAI,SAAS,IAAI,aAAa,CAAC,iBAAiB,CAAC,IAAI,MAAM,EAAE;gBAC3D,OAAO,oBAAC,MAAM,kBAAC,QAAQ,EAAE,QAAQ,IAAO,KAAa,EAAI,CAAC;aAC3D;YAED,OAAO,oBAAC,cAAc,oBAAM,KAAa,EAAI,CAAC;QAChD,CAAC,CAAc,CAAC;IAClB,CAAC,CAAC;AACJ,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 { getGlobalFlag } from '@cloudscape-design/component-toolkit/internal';\n\nimport { useVisualRefresh } from '../hooks/use-visual-mode';\n\n// Built-in React.FunctionComponent has always present `children` property which is not desired\nexport type FunctionComponent<Props extends object> = (props: Props) => JSX.Element | null;\nexport type PropsType<Component extends FunctionComponent<any>> =\n Component extends FunctionComponent<infer Props> ? Props : never;\n\nexport function createWidgetizedComponent<Component extends FunctionComponent<any>>(\n Implementation: Component,\n Skeleton?: React.ForwardRefExoticComponent<PropsType<Component> & React.RefAttributes<HTMLElement>>\n) {\n return (Loader?: Component): Component => {\n return (props => {\n const isRefresh = useVisualRefresh();\n if (isRefresh && getGlobalFlag('appLayoutWidget') && Loader) {\n return <Loader Skeleton={Skeleton} {...(props as any)} />;\n }\n\n return <Implementation {...(props as any)} />;\n }) as Component;\n };\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import { FunctionComponent } from './index';
2
+ export declare function createLoadableComponent<ComponentType extends FunctionComponent<any>>(Component: ComponentType): ComponentType | undefined;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader-mock.d.ts","sourceRoot":"","sources":["../../../../src/internal/widgets/loader-mock.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAa,MAAM,SAAS,CAAC;AAgBvD,wBAAgB,uBAAuB,CAAC,aAAa,SAAS,iBAAiB,CAAC,GAAG,CAAC,EAClF,SAAS,EAAE,aAAa,GACvB,aAAa,GAAG,SAAS,CA8B3B"}
@@ -0,0 +1,43 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import React, { useEffect, useState } from 'react';
4
+ const getCustomFlag = (flagName) => {
5
+ var _a;
6
+ const flagHolder = typeof window !== 'undefined' ? window : globalThis;
7
+ const awsuiCustomFlagsSymbol = Symbol.for('awsui-custom-flags');
8
+ return (_a = flagHolder === null || flagHolder === void 0 ? void 0 : flagHolder[awsuiCustomFlagsSymbol]) === null || _a === void 0 ? void 0 : _a[flagName];
9
+ };
10
+ const isAppLayoutDelayedWidget = () => {
11
+ return !!getCustomFlag('appLayoutDelayedWidget');
12
+ };
13
+ const enableDelayedComponents = isAppLayoutDelayedWidget();
14
+ let loadPromise;
15
+ export function createLoadableComponent(Component) {
16
+ if (!enableDelayedComponents) {
17
+ return;
18
+ }
19
+ return ((props) => {
20
+ const [mounted, setMounted] = useState(false);
21
+ useEffect(() => {
22
+ if (!loadPromise) {
23
+ loadPromise = new Promise(resolve => setTimeout(() => resolve(), 1000));
24
+ }
25
+ let mounted = true;
26
+ loadPromise.then(() => {
27
+ if (mounted) {
28
+ setMounted(true);
29
+ }
30
+ });
31
+ return () => {
32
+ mounted = false;
33
+ };
34
+ }, []);
35
+ if (mounted) {
36
+ return React.createElement(Component, Object.assign({}, props));
37
+ }
38
+ // this prop is injected in `createWidgetizedComponent` and is not a part of the component signature
39
+ const { Skeleton } = props;
40
+ return Skeleton ? React.createElement(Skeleton, Object.assign({}, props)) : React.createElement("div", null);
41
+ });
42
+ }
43
+ //# sourceMappingURL=loader-mock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader-mock.js","sourceRoot":"","sources":["../../../../src/internal/widgets/loader-mock.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAInD,MAAM,aAAa,G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BAAC,SAAS,oBAAK,KAAK,EAAI,CAAC;SACjC;QACD,oGAAoG;QACpG,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAY,CAAC;QAElC,OAAO,QAAQ,CAAC,CAAC,CAAC,oBAAC,QAAQ,oBAAK,KAAK,EAAI,CAAC,CAAC,CAAC,gCAAO,CAAC;IACtD,CAAC,CAAkB,CAAC;AACtB,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 { FunctionComponent, PropsType } from './index';\n\nconst getCustomFlag = (flagName: string) => {\n const flagHolder: any = typeof window !== 'undefined' ? window : globalThis;\n const awsuiCustomFlagsSymbol = Symbol.for('awsui-custom-flags');\n return flagHolder?.[awsuiCustomFlagsSymbol as any]?.[flagName as any];\n};\n\nconst isAppLayoutDelayedWidget = () => {\n return !!getCustomFlag('appLayoutDelayedWidget');\n};\n\nconst enableDelayedComponents = isAppLayoutDelayedWidget();\n\nlet loadPromise: Promise<void>;\n\nexport function createLoadableComponent<ComponentType extends FunctionComponent<any>>(\n Component: ComponentType\n): ComponentType | undefined {\n if (!enableDelayedComponents) {\n return;\n }\n return ((props: PropsType<ComponentType>) => {\n const [mounted, setMounted] = useState(false);\n\n useEffect(() => {\n if (!loadPromise) {\n loadPromise = new Promise(resolve => setTimeout(() => resolve(), 1000));\n }\n let mounted = true;\n loadPromise.then(() => {\n if (mounted) {\n setMounted(true);\n }\n });\n return () => {\n mounted = false;\n };\n }, []);\n\n if (mounted) {\n return <Component {...props} />;\n }\n // this prop is injected in `createWidgetizedComponent` and is not a part of the component signature\n const { Skeleton } = props as any;\n\n return Skeleton ? <Skeleton {...props} /> : <div />;\n }) as ComponentType;\n}\n"]}
package/package.json CHANGED
@@ -150,7 +150,7 @@
150
150
  "./internal/base-component/index.js",
151
151
  "./internal/base-component/styles.css.js"
152
152
  ],
153
- "version": "3.0.1060",
153
+ "version": "3.0.1062",
154
154
  "repository": {
155
155
  "type": "git",
156
156
  "url": "https://github.com/cloudscape-design/components.git"
@@ -1,32 +1,32 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "drawer": "awsui_drawer_1r9lg_mwd6c_153",
5
- "drawer-closed": "awsui_drawer-closed_1r9lg_mwd6c_190",
6
- "refresh": "awsui_refresh_1r9lg_mwd6c_190",
7
- "drawer-content-side": "awsui_drawer-content-side_1r9lg_mwd6c_195",
8
- "drawer-content-bottom": "awsui_drawer-content-bottom_1r9lg_mwd6c_211",
9
- "position-bottom": "awsui_position-bottom_1r9lg_mwd6c_218",
10
- "hidden": "awsui_hidden_1r9lg_mwd6c_226",
11
- "position-side": "awsui_position-side_1r9lg_mwd6c_247",
12
- "with-toolbar": "awsui_with-toolbar_1r9lg_mwd6c_252",
13
- "slider-wrapper-bottom": "awsui_slider-wrapper-bottom_1r9lg_mwd6c_256",
14
- "slider-wrapper-side": "awsui_slider-wrapper-side_1r9lg_mwd6c_267",
15
- "open-button-side": "awsui_open-button-side_1r9lg_mwd6c_281",
16
- "pane-header-wrapper-bottom": "awsui_pane-header-wrapper-bottom_1r9lg_mwd6c_290",
17
- "drawer-mobile": "awsui_drawer-mobile_1r9lg_mwd6c_300",
18
- "drawer-disable-content-paddings": "awsui_drawer-disable-content-paddings_1r9lg_mwd6c_304",
19
- "content-bottom": "awsui_content-bottom_1r9lg_mwd6c_316",
20
- "pane-bottom-center-align": "awsui_pane-bottom-center-align_1r9lg_mwd6c_335",
21
- "pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-padding_1r9lg_mwd6c_340",
22
- "pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-padding_1r9lg_mwd6c_344",
23
- "content-bottom-max-width": "awsui_content-bottom-max-width_1r9lg_mwd6c_348",
24
- "content-side": "awsui_content-side_1r9lg_mwd6c_353",
25
- "pane-header-wrapper-side": "awsui_pane-header-wrapper-side_1r9lg_mwd6c_365",
26
- "pane-content-wrapper-side": "awsui_pane-content-wrapper-side_1r9lg_mwd6c_374",
27
- "header": "awsui_header_1r9lg_mwd6c_385",
28
- "header-text": "awsui_header-text_1r9lg_mwd6c_398",
29
- "header-actions": "awsui_header-actions_1r9lg_mwd6c_412",
30
- "divider": "awsui_divider_1r9lg_mwd6c_420"
4
+ "drawer": "awsui_drawer_1r9lg_1hxnd_153",
5
+ "drawer-closed": "awsui_drawer-closed_1r9lg_1hxnd_190",
6
+ "refresh": "awsui_refresh_1r9lg_1hxnd_193",
7
+ "drawer-content-side": "awsui_drawer-content-side_1r9lg_1hxnd_197",
8
+ "drawer-content-bottom": "awsui_drawer-content-bottom_1r9lg_1hxnd_213",
9
+ "position-bottom": "awsui_position-bottom_1r9lg_1hxnd_220",
10
+ "hidden": "awsui_hidden_1r9lg_1hxnd_228",
11
+ "position-side": "awsui_position-side_1r9lg_1hxnd_249",
12
+ "with-toolbar": "awsui_with-toolbar_1r9lg_1hxnd_254",
13
+ "slider-wrapper-bottom": "awsui_slider-wrapper-bottom_1r9lg_1hxnd_258",
14
+ "slider-wrapper-side": "awsui_slider-wrapper-side_1r9lg_1hxnd_269",
15
+ "open-button-side": "awsui_open-button-side_1r9lg_1hxnd_283",
16
+ "pane-header-wrapper-bottom": "awsui_pane-header-wrapper-bottom_1r9lg_1hxnd_292",
17
+ "drawer-mobile": "awsui_drawer-mobile_1r9lg_1hxnd_302",
18
+ "drawer-disable-content-paddings": "awsui_drawer-disable-content-paddings_1r9lg_1hxnd_306",
19
+ "content-bottom": "awsui_content-bottom_1r9lg_1hxnd_318",
20
+ "pane-bottom-center-align": "awsui_pane-bottom-center-align_1r9lg_1hxnd_337",
21
+ "pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-padding_1r9lg_1hxnd_342",
22
+ "pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-padding_1r9lg_1hxnd_346",
23
+ "content-bottom-max-width": "awsui_content-bottom-max-width_1r9lg_1hxnd_350",
24
+ "content-side": "awsui_content-side_1r9lg_1hxnd_355",
25
+ "pane-header-wrapper-side": "awsui_pane-header-wrapper-side_1r9lg_1hxnd_367",
26
+ "pane-content-wrapper-side": "awsui_pane-content-wrapper-side_1r9lg_1hxnd_376",
27
+ "header": "awsui_header_1r9lg_1hxnd_387",
28
+ "header-text": "awsui_header-text_1r9lg_1hxnd_400",
29
+ "header-actions": "awsui_header-actions_1r9lg_1hxnd_414",
30
+ "divider": "awsui_divider_1r9lg_1hxnd_422"
31
31
  };
32
32
 
@@ -150,7 +150,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
150
150
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
151
151
  SPDX-License-Identifier: Apache-2.0
152
152
  */
153
- .awsui_drawer_1r9lg_mwd6c_153:not(#\9) {
153
+ .awsui_drawer_1r9lg_1hxnd_153:not(#\9) {
154
154
  border-collapse: separate;
155
155
  border-spacing: 0;
156
156
  box-sizing: border-box;
@@ -187,35 +187,37 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
187
187
  background-color: var(--color-background-layout-panel-content-xto15e, #ffffff);
188
188
  z-index: 840;
189
189
  }
190
- .awsui_drawer-closed_1r9lg_mwd6c_190:not(#\9):not(.awsui_refresh_1r9lg_mwd6c_190) {
190
+ .awsui_drawer-closed_1r9lg_1hxnd_190:not(#\9) {
191
191
  cursor: pointer;
192
+ }
193
+ .awsui_drawer-closed_1r9lg_1hxnd_190:not(#\9):not(.awsui_refresh_1r9lg_1hxnd_193) {
192
194
  min-inline-size: 40px;
193
195
  }
194
196
 
195
- .awsui_drawer-content-side_1r9lg_mwd6c_195:not(#\9) {
197
+ .awsui_drawer-content-side_1r9lg_1hxnd_197:not(#\9) {
196
198
  display: flex;
197
199
  align-items: center;
198
200
  block-size: 100%;
199
201
  overflow: auto;
200
202
  }
201
- .awsui_drawer-content-side_1r9lg_mwd6c_195 > [aria-hidden=true]:not(#\9), .awsui_drawer-closed_1r9lg_mwd6c_190.awsui_refresh_1r9lg_mwd6c_190 > .awsui_drawer-content-side_1r9lg_mwd6c_195:not(#\9) {
203
+ .awsui_drawer-content-side_1r9lg_1hxnd_197 > [aria-hidden=true]:not(#\9), .awsui_drawer-closed_1r9lg_1hxnd_190.awsui_refresh_1r9lg_1hxnd_193 > .awsui_drawer-content-side_1r9lg_1hxnd_197:not(#\9) {
202
204
  display: none;
203
205
  }
204
- .awsui_drawer-closed_1r9lg_mwd6c_190:not(#\9):not(.awsui_refresh_1r9lg_mwd6c_190) > .awsui_drawer-content-side_1r9lg_mwd6c_195 {
206
+ .awsui_drawer-closed_1r9lg_1hxnd_190:not(#\9):not(.awsui_refresh_1r9lg_1hxnd_193) > .awsui_drawer-content-side_1r9lg_1hxnd_197 {
205
207
  inline-size: 40px;
206
208
  }
207
- .awsui_drawer-closed_1r9lg_mwd6c_190:not(#\9):not(.awsui_refresh_1r9lg_mwd6c_190) > .awsui_drawer-content-side_1r9lg_mwd6c_195:hover {
209
+ .awsui_drawer-closed_1r9lg_1hxnd_190:not(#\9):not(.awsui_refresh_1r9lg_1hxnd_193) > .awsui_drawer-content-side_1r9lg_1hxnd_197:hover {
208
210
  background: var(--color-background-layout-panel-hover-tguulw, #ebebf0);
209
211
  }
210
212
 
211
- :not(#\9):not(.awsui_drawer-closed_1r9lg_mwd6c_190) > .awsui_drawer-content-bottom_1r9lg_mwd6c_211 {
213
+ :not(#\9):not(.awsui_drawer-closed_1r9lg_1hxnd_190) > .awsui_drawer-content-bottom_1r9lg_1hxnd_213 {
212
214
  overflow-y: auto;
213
215
  position: absolute;
214
216
  inset: 0;
215
217
  clip-path: border-box;
216
218
  }
217
219
 
218
- .awsui_position-bottom_1r9lg_mwd6c_218:not(#\9) {
220
+ .awsui_position-bottom_1r9lg_1hxnd_220:not(#\9) {
219
221
  position: fixed;
220
222
  overflow-y: auto;
221
223
  /*
@@ -223,37 +225,37 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
223
225
  SplitPanel is no longer in fixed position in the DOM.
224
226
  */
225
227
  }
226
- .awsui_position-bottom_1r9lg_mwd6c_218:not(#\9):not(.awsui_hidden_1r9lg_mwd6c_226) {
228
+ .awsui_position-bottom_1r9lg_1hxnd_220:not(#\9):not(.awsui_hidden_1r9lg_1hxnd_228) {
227
229
  border-block-start: var(--border-panel-top-width-10990j, 1px) solid var(--color-border-divider-panel-bottom-bruvuz, #c6c6cd);
228
230
  }
229
- .awsui_position-bottom_1r9lg_mwd6c_218:not(#\9):not(.awsui_refresh_1r9lg_mwd6c_190) {
231
+ .awsui_position-bottom_1r9lg_1hxnd_220:not(#\9):not(.awsui_refresh_1r9lg_1hxnd_193) {
230
232
  box-shadow: var(--shadow-split-bottom-vlyulf, 0px -36px 36px -36px rgba(0, 7, 22, 0.1));
231
233
  border-inline-start: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-divider-panel-bottom-bruvuz, #c6c6cd);
232
234
  border-inline-end: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-divider-panel-bottom-bruvuz, #c6c6cd);
233
235
  }
234
- .awsui_position-bottom_1r9lg_mwd6c_218.awsui_drawer-closed_1r9lg_mwd6c_190:not(#\9) {
236
+ .awsui_position-bottom_1r9lg_1hxnd_220.awsui_drawer-closed_1r9lg_1hxnd_190:not(#\9) {
235
237
  overflow: hidden;
236
238
  }
237
- .awsui_position-bottom_1r9lg_mwd6c_218.awsui_drawer-closed_1r9lg_mwd6c_190:not(#\9):hover {
239
+ .awsui_position-bottom_1r9lg_1hxnd_220.awsui_drawer-closed_1r9lg_1hxnd_190:not(#\9):hover {
238
240
  background: var(--color-background-layout-panel-hover-tguulw, #ebebf0);
239
241
  }
240
- .awsui_position-bottom_1r9lg_mwd6c_218 > .awsui_drawer-content-bottom_1r9lg_mwd6c_211 > [aria-hidden=true]:not(#\9) {
242
+ .awsui_position-bottom_1r9lg_1hxnd_220 > .awsui_drawer-content-bottom_1r9lg_1hxnd_213 > [aria-hidden=true]:not(#\9) {
241
243
  display: none;
242
244
  }
243
- .awsui_position-bottom_1r9lg_mwd6c_218.awsui_refresh_1r9lg_mwd6c_190:not(#\9) {
245
+ .awsui_position-bottom_1r9lg_1hxnd_220.awsui_refresh_1r9lg_1hxnd_193:not(#\9) {
244
246
  position: relative;
245
247
  }
246
248
 
247
- .awsui_position-side_1r9lg_mwd6c_247:not(#\9) {
249
+ .awsui_position-side_1r9lg_1hxnd_249:not(#\9) {
248
250
  border-block-start: none;
249
251
  box-shadow: var(--shadow-split-side-nyajix, -1px 0px 1px 0px #e9ebed, -36px 6px 36px -36px rgba(0, 7, 22, 0.1));
250
252
  block-size: 100%;
251
253
  }
252
- .awsui_position-side_1r9lg_mwd6c_247.awsui_with-toolbar_1r9lg_mwd6c_252:not(#\9) {
254
+ .awsui_position-side_1r9lg_1hxnd_249.awsui_with-toolbar_1r9lg_1hxnd_254:not(#\9) {
253
255
  box-shadow: none;
254
256
  }
255
257
 
256
- .awsui_slider-wrapper-bottom_1r9lg_mwd6c_256:not(#\9) {
258
+ .awsui_slider-wrapper-bottom_1r9lg_1hxnd_258:not(#\9) {
257
259
  position: absolute;
258
260
  inset-block-start: 0;
259
261
  inset-inline-start: 0;
@@ -264,7 +266,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
264
266
  z-index: 2;
265
267
  }
266
268
 
267
- .awsui_slider-wrapper-side_1r9lg_mwd6c_267:not(#\9) {
269
+ .awsui_slider-wrapper-side_1r9lg_1hxnd_269:not(#\9) {
268
270
  position: absolute;
269
271
  inset-inline-start: 0;
270
272
  inset-block-start: 0;
@@ -274,11 +276,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
274
276
  align-items: center;
275
277
  z-index: 1;
276
278
  }
277
- .awsui_slider-wrapper-side_1r9lg_mwd6c_267.awsui_with-toolbar_1r9lg_mwd6c_252:not(#\9) {
279
+ .awsui_slider-wrapper-side_1r9lg_1hxnd_269.awsui_with-toolbar_1r9lg_1hxnd_254:not(#\9) {
278
280
  position: unset;
279
281
  }
280
282
 
281
- .awsui_open-button-side_1r9lg_mwd6c_281:not(#\9) {
283
+ .awsui_open-button-side_1r9lg_1hxnd_283:not(#\9) {
282
284
  flex: 0 0 auto;
283
285
  align-self: flex-start;
284
286
  box-sizing: border-box;
@@ -287,7 +289,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
287
289
  margin-inline: auto;
288
290
  }
289
291
 
290
- .awsui_pane-header-wrapper-bottom_1r9lg_mwd6c_290:not(#\9) {
292
+ .awsui_pane-header-wrapper-bottom_1r9lg_1hxnd_292:not(#\9) {
291
293
  position: sticky;
292
294
  inset-block-start: 0;
293
295
  display: flex;
@@ -297,60 +299,60 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
297
299
  padding-block: 0;
298
300
  padding-inline: var(--space-layout-content-horizontal-buc0zz, 24px);
299
301
  }
300
- .awsui_drawer-mobile_1r9lg_mwd6c_300 > .awsui_drawer-content-bottom_1r9lg_mwd6c_211 > .awsui_pane-header-wrapper-bottom_1r9lg_mwd6c_290:not(#\9) {
302
+ .awsui_drawer-mobile_1r9lg_1hxnd_302 > .awsui_drawer-content-bottom_1r9lg_1hxnd_213 > .awsui_pane-header-wrapper-bottom_1r9lg_1hxnd_292:not(#\9) {
301
303
  padding-block: 0;
302
304
  padding-inline: var(--space-l-2ud1p3, 20px);
303
305
  }
304
- .awsui_drawer-disable-content-paddings_1r9lg_mwd6c_304 > .awsui_drawer-content-bottom_1r9lg_mwd6c_211 > .awsui_pane-header-wrapper-bottom_1r9lg_mwd6c_290:not(#\9) {
306
+ .awsui_drawer-disable-content-paddings_1r9lg_1hxnd_306 > .awsui_drawer-content-bottom_1r9lg_1hxnd_213 > .awsui_pane-header-wrapper-bottom_1r9lg_1hxnd_292:not(#\9) {
305
307
  padding-block: 0;
306
308
  padding-inline: var(--space-l-2ud1p3, 20px);
307
309
  }
308
- :not(#\9):not(.awsui_drawer-closed_1r9lg_mwd6c_190) > .awsui_drawer-content-bottom_1r9lg_mwd6c_211 > .awsui_pane-header-wrapper-bottom_1r9lg_mwd6c_290 {
310
+ :not(#\9):not(.awsui_drawer-closed_1r9lg_1hxnd_190) > .awsui_drawer-content-bottom_1r9lg_1hxnd_213 > .awsui_pane-header-wrapper-bottom_1r9lg_1hxnd_292 {
309
311
  background-color: var(--color-background-layout-panel-content-xto15e, #ffffff);
310
312
  border-block-end: var(--border-panel-header-width-t1iq1m, 1px) solid var(--color-border-panel-header-ygztvl, #c6c6cd);
311
313
  }
312
- .awsui_with-toolbar_1r9lg_mwd6c_252:not(#\9):not(.awsui_drawer-closed_1r9lg_mwd6c_190) > .awsui_drawer-content-bottom_1r9lg_mwd6c_211 > .awsui_pane-header-wrapper-bottom_1r9lg_mwd6c_290 {
314
+ .awsui_with-toolbar_1r9lg_1hxnd_254:not(#\9):not(.awsui_drawer-closed_1r9lg_1hxnd_190) > .awsui_drawer-content-bottom_1r9lg_1hxnd_213 > .awsui_pane-header-wrapper-bottom_1r9lg_1hxnd_292 {
313
315
  border-color: transparent;
314
316
  }
315
317
 
316
- .awsui_content-bottom_1r9lg_mwd6c_316:not(#\9) {
318
+ .awsui_content-bottom_1r9lg_1hxnd_318:not(#\9) {
317
319
  padding-block: 0;
318
320
  padding-inline: var(--space-layout-content-horizontal-buc0zz, 24px);
319
321
  margin-block-start: var(--space-panel-split-top-3u4vky, 20px);
320
322
  position: relative;
321
323
  z-index: 0;
322
324
  }
323
- .awsui_with-toolbar_1r9lg_mwd6c_252 > .awsui_drawer-content-bottom_1r9lg_mwd6c_211 > .awsui_content-bottom_1r9lg_mwd6c_316:not(#\9) {
325
+ .awsui_with-toolbar_1r9lg_1hxnd_254 > .awsui_drawer-content-bottom_1r9lg_1hxnd_213 > .awsui_content-bottom_1r9lg_1hxnd_318:not(#\9) {
324
326
  margin-block-start: 0px;
325
327
  }
326
- .awsui_drawer-mobile_1r9lg_mwd6c_300 > .awsui_drawer-content-bottom_1r9lg_mwd6c_211 > .awsui_content-bottom_1r9lg_mwd6c_316:not(#\9) {
328
+ .awsui_drawer-mobile_1r9lg_1hxnd_302 > .awsui_drawer-content-bottom_1r9lg_1hxnd_213 > .awsui_content-bottom_1r9lg_1hxnd_318:not(#\9) {
327
329
  padding-block: 0;
328
330
  padding-inline: var(--space-l-2ud1p3, 20px);
329
331
  }
330
- .awsui_drawer-disable-content-paddings_1r9lg_mwd6c_304 > .awsui_drawer-content-bottom_1r9lg_mwd6c_211 > .awsui_content-bottom_1r9lg_mwd6c_316:not(#\9) {
332
+ .awsui_drawer-disable-content-paddings_1r9lg_1hxnd_306 > .awsui_drawer-content-bottom_1r9lg_1hxnd_213 > .awsui_content-bottom_1r9lg_1hxnd_318:not(#\9) {
331
333
  padding-block: 0;
332
334
  padding-inline: 0;
333
335
  }
334
336
 
335
- .awsui_pane-bottom-center-align_1r9lg_mwd6c_335:not(#\9) {
337
+ .awsui_pane-bottom-center-align_1r9lg_1hxnd_337:not(#\9) {
336
338
  display: flex;
337
339
  justify-content: center;
338
340
  }
339
341
 
340
- .awsui_pane-bottom-content-nav-padding_1r9lg_mwd6c_340:not(#\9) {
342
+ .awsui_pane-bottom-content-nav-padding_1r9lg_1hxnd_342:not(#\9) {
341
343
  padding-inline-start: calc(var(--space-layout-toggle-diameter-j2qffw, 36px) + 2 * var(--space-layout-toggle-padding-chwlhz, 12px));
342
344
  }
343
345
 
344
- .awsui_pane-bottom-content-tools-padding_1r9lg_mwd6c_344:not(#\9) {
346
+ .awsui_pane-bottom-content-tools-padding_1r9lg_1hxnd_346:not(#\9) {
345
347
  padding-inline-end: calc(var(--space-layout-toggle-diameter-j2qffw, 36px) + 2 * var(--space-layout-toggle-padding-chwlhz, 12px));
346
348
  }
347
349
 
348
- .awsui_content-bottom-max-width_1r9lg_mwd6c_348:not(#\9) {
350
+ .awsui_content-bottom-max-width_1r9lg_1hxnd_350:not(#\9) {
349
351
  flex-grow: 1;
350
352
  max-inline-size: 100%;
351
353
  }
352
354
 
353
- .awsui_content-side_1r9lg_mwd6c_353:not(#\9) {
355
+ .awsui_content-side_1r9lg_1hxnd_355:not(#\9) {
354
356
  flex: auto;
355
357
  align-self: flex-start;
356
358
  box-sizing: border-box;
@@ -359,30 +361,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
359
361
  inset-inline: 0;
360
362
  block-size: 100%;
361
363
  }
362
- .awsui_content-side_1r9lg_mwd6c_353.awsui_with-toolbar_1r9lg_mwd6c_252:not(#\9) {
364
+ .awsui_content-side_1r9lg_1hxnd_355.awsui_with-toolbar_1r9lg_1hxnd_254:not(#\9) {
363
365
  position: absolute;
364
366
  }
365
- .awsui_content-side_1r9lg_mwd6c_353 > .awsui_pane-header-wrapper-side_1r9lg_mwd6c_365:not(#\9) {
367
+ .awsui_content-side_1r9lg_1hxnd_355 > .awsui_pane-header-wrapper-side_1r9lg_1hxnd_367:not(#\9) {
366
368
  padding-block: 0;
367
369
  padding-inline-end: var(--space-m-dsumyt, 16px);
368
370
  padding-inline-start: var(--space-panel-side-left-u1m3s9, 28px);
369
371
  border-block-end: var(--border-panel-header-width-t1iq1m, 1px) solid var(--color-border-panel-header-ygztvl, #c6c6cd);
370
372
  }
371
- .awsui_content-side_1r9lg_mwd6c_353.awsui_with-toolbar_1r9lg_mwd6c_252 > .awsui_pane-header-wrapper-side_1r9lg_mwd6c_365:not(#\9) {
373
+ .awsui_content-side_1r9lg_1hxnd_355.awsui_with-toolbar_1r9lg_1hxnd_254 > .awsui_pane-header-wrapper-side_1r9lg_1hxnd_367:not(#\9) {
372
374
  border-color: transparent;
373
375
  }
374
- .awsui_content-side_1r9lg_mwd6c_353 > .awsui_pane-content-wrapper-side_1r9lg_mwd6c_374:not(#\9) {
376
+ .awsui_content-side_1r9lg_1hxnd_355 > .awsui_pane-content-wrapper-side_1r9lg_1hxnd_376:not(#\9) {
375
377
  padding-block: 0;
376
378
  padding-inline-start: var(--space-panel-side-left-u1m3s9, 28px);
377
379
  padding-inline-end: var(--space-panel-side-right-8wwirc, 24px);
378
380
  margin-block-start: var(--space-panel-split-top-3u4vky, 20px);
379
381
  margin-block-end: var(--space-panel-split-bottom-ir16d7, 20px);
380
382
  }
381
- .awsui_content-side_1r9lg_mwd6c_353.awsui_with-toolbar_1r9lg_mwd6c_252 > .awsui_pane-content-wrapper-side_1r9lg_mwd6c_374:not(#\9) {
383
+ .awsui_content-side_1r9lg_1hxnd_355.awsui_with-toolbar_1r9lg_1hxnd_254 > .awsui_pane-content-wrapper-side_1r9lg_1hxnd_376:not(#\9) {
382
384
  margin-block-start: 0px;
383
385
  }
384
386
 
385
- .awsui_header_1r9lg_mwd6c_385:not(#\9) {
387
+ .awsui_header_1r9lg_1hxnd_387:not(#\9) {
386
388
  display: flex;
387
389
  flex: auto;
388
390
  flex-direction: row;
@@ -392,10 +394,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
392
394
  margin-block: var(--size-vertical-panel-icon-offset-z959cw, 15px);
393
395
  margin-inline: 0;
394
396
  }
395
- .awsui_header_1r9lg_mwd6c_385.awsui_with-toolbar_1r9lg_mwd6c_252:not(#\9) {
397
+ .awsui_header_1r9lg_1hxnd_387.awsui_with-toolbar_1r9lg_1hxnd_254:not(#\9) {
396
398
  margin-block: 14px;
397
399
  }
398
- .awsui_header-text_1r9lg_mwd6c_398:not(#\9) {
400
+ .awsui_header-text_1r9lg_1hxnd_400:not(#\9) {
399
401
  font-size: var(--font-panel-header-size-33h9j8, 18px);
400
402
  letter-spacing: var(--letter-spacing-heading-m-29ewnk, -0.01em);
401
403
  line-height: var(--font-panel-header-line-height-8xb2qj, 22px);
@@ -409,7 +411,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
409
411
  margin-block-start: calc(var(--space-scaled-xxs-pfm1nx, 4px) + 1px);
410
412
  }
411
413
 
412
- .awsui_header-actions_1r9lg_mwd6c_412:not(#\9) {
414
+ .awsui_header-actions_1r9lg_1hxnd_414:not(#\9) {
413
415
  display: flex;
414
416
  flex-direction: row;
415
417
  justify-content: space-between;
@@ -417,7 +419,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
417
419
  margin-inline-start: var(--space-xs-ymlm0b, 8px);
418
420
  }
419
421
 
420
- .awsui_divider_1r9lg_mwd6c_420:not(#\9) {
422
+ .awsui_divider_1r9lg_1hxnd_422:not(#\9) {
421
423
  border-inline-end: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-divider-default-nr68jt, #c6c6cd);
422
424
  margin-block: var(--space-scaled-xxs-pfm1nx, 4px);
423
425
  margin-inline: var(--space-scaled-xs-xwoogq, 8px);
@@ -2,32 +2,32 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "drawer": "awsui_drawer_1r9lg_mwd6c_153",
6
- "drawer-closed": "awsui_drawer-closed_1r9lg_mwd6c_190",
7
- "refresh": "awsui_refresh_1r9lg_mwd6c_190",
8
- "drawer-content-side": "awsui_drawer-content-side_1r9lg_mwd6c_195",
9
- "drawer-content-bottom": "awsui_drawer-content-bottom_1r9lg_mwd6c_211",
10
- "position-bottom": "awsui_position-bottom_1r9lg_mwd6c_218",
11
- "hidden": "awsui_hidden_1r9lg_mwd6c_226",
12
- "position-side": "awsui_position-side_1r9lg_mwd6c_247",
13
- "with-toolbar": "awsui_with-toolbar_1r9lg_mwd6c_252",
14
- "slider-wrapper-bottom": "awsui_slider-wrapper-bottom_1r9lg_mwd6c_256",
15
- "slider-wrapper-side": "awsui_slider-wrapper-side_1r9lg_mwd6c_267",
16
- "open-button-side": "awsui_open-button-side_1r9lg_mwd6c_281",
17
- "pane-header-wrapper-bottom": "awsui_pane-header-wrapper-bottom_1r9lg_mwd6c_290",
18
- "drawer-mobile": "awsui_drawer-mobile_1r9lg_mwd6c_300",
19
- "drawer-disable-content-paddings": "awsui_drawer-disable-content-paddings_1r9lg_mwd6c_304",
20
- "content-bottom": "awsui_content-bottom_1r9lg_mwd6c_316",
21
- "pane-bottom-center-align": "awsui_pane-bottom-center-align_1r9lg_mwd6c_335",
22
- "pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-padding_1r9lg_mwd6c_340",
23
- "pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-padding_1r9lg_mwd6c_344",
24
- "content-bottom-max-width": "awsui_content-bottom-max-width_1r9lg_mwd6c_348",
25
- "content-side": "awsui_content-side_1r9lg_mwd6c_353",
26
- "pane-header-wrapper-side": "awsui_pane-header-wrapper-side_1r9lg_mwd6c_365",
27
- "pane-content-wrapper-side": "awsui_pane-content-wrapper-side_1r9lg_mwd6c_374",
28
- "header": "awsui_header_1r9lg_mwd6c_385",
29
- "header-text": "awsui_header-text_1r9lg_mwd6c_398",
30
- "header-actions": "awsui_header-actions_1r9lg_mwd6c_412",
31
- "divider": "awsui_divider_1r9lg_mwd6c_420"
5
+ "drawer": "awsui_drawer_1r9lg_1hxnd_153",
6
+ "drawer-closed": "awsui_drawer-closed_1r9lg_1hxnd_190",
7
+ "refresh": "awsui_refresh_1r9lg_1hxnd_193",
8
+ "drawer-content-side": "awsui_drawer-content-side_1r9lg_1hxnd_197",
9
+ "drawer-content-bottom": "awsui_drawer-content-bottom_1r9lg_1hxnd_213",
10
+ "position-bottom": "awsui_position-bottom_1r9lg_1hxnd_220",
11
+ "hidden": "awsui_hidden_1r9lg_1hxnd_228",
12
+ "position-side": "awsui_position-side_1r9lg_1hxnd_249",
13
+ "with-toolbar": "awsui_with-toolbar_1r9lg_1hxnd_254",
14
+ "slider-wrapper-bottom": "awsui_slider-wrapper-bottom_1r9lg_1hxnd_258",
15
+ "slider-wrapper-side": "awsui_slider-wrapper-side_1r9lg_1hxnd_269",
16
+ "open-button-side": "awsui_open-button-side_1r9lg_1hxnd_283",
17
+ "pane-header-wrapper-bottom": "awsui_pane-header-wrapper-bottom_1r9lg_1hxnd_292",
18
+ "drawer-mobile": "awsui_drawer-mobile_1r9lg_1hxnd_302",
19
+ "drawer-disable-content-paddings": "awsui_drawer-disable-content-paddings_1r9lg_1hxnd_306",
20
+ "content-bottom": "awsui_content-bottom_1r9lg_1hxnd_318",
21
+ "pane-bottom-center-align": "awsui_pane-bottom-center-align_1r9lg_1hxnd_337",
22
+ "pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-padding_1r9lg_1hxnd_342",
23
+ "pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-padding_1r9lg_1hxnd_346",
24
+ "content-bottom-max-width": "awsui_content-bottom-max-width_1r9lg_1hxnd_350",
25
+ "content-side": "awsui_content-side_1r9lg_1hxnd_355",
26
+ "pane-header-wrapper-side": "awsui_pane-header-wrapper-side_1r9lg_1hxnd_367",
27
+ "pane-content-wrapper-side": "awsui_pane-content-wrapper-side_1r9lg_1hxnd_376",
28
+ "header": "awsui_header_1r9lg_1hxnd_387",
29
+ "header-text": "awsui_header-text_1r9lg_1hxnd_400",
30
+ "header-actions": "awsui_header-actions_1r9lg_1hxnd_414",
31
+ "divider": "awsui_divider_1r9lg_1hxnd_422"
32
32
  };
33
33
 
@@ -1 +0,0 @@
1
- {"version":3,"file":"multi-layout.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh-toolbar/multi-layout.ts"],"names":[],"mappings":"AAEA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAMzD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEhE,MAAM,WAAW,WAAW;IAC1B,sBAAsB,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,WAA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AO;SACR;QACD,IAAI,sBAAsB,KAAK,KAAK,EAAE;YACpC,eAAe,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC;YAC1D,OAAO;SACR;QACD,MAAM,UAAU,GAAG,oBAAoB,CAAC,eAAe,CAAC,QAAQ,CAAC,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAC/F,eAAe,CAAC,KAAuC,CAAC,CACzD,CAAC;QACF,OAAO,GAAG,EAAE;YACV,UAAU,EAAE,CAAC;YACb,eAAe,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;QACzC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,sBAAsB,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;IAEnD,eAAe,CAAC,GAAG,EAAE;QACnB,IAAI,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,MAAK,WAAW,EAAE;YACtC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SAC5B;IACH,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,SAAS,EAAE;QACd,OAAO;YACL,UAAU,EAAE,IAAI;YAChB,2FAA2F;YAC3F,+DAA+D;YAC/D,YAAY,EAAE,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC;SACpC,CAAC;KACH;IAED,OAAO;QACL,UAAU,EAAE,CAAC,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,CAAA;QAChC,YAAY,EAAE,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,MAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI;KACxG,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useLayoutEffect, useState } from 'react';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { awsuiPluginsInternal } from '../../internal/plugins/api';\nimport { RegistrationState } from '../../internal/plugins/controllers/app-layout-widget';\nimport { AppLayoutProps } from '../interfaces';\nimport { useAppLayoutFlagEnabled } from '../utils/feature-flags';\nimport { OnChangeParams } from '../utils/use-drawers';\nimport { Focusable, FocusControlMultipleStates } from '../utils/use-focus-control';\nimport { SplitPanelToggleProps, ToolbarProps } from './toolbar';\n\nexport interface SharedProps {\n forceDeduplicationType?: 'primary' | 'secondary' | 'suspended' | 'off';\n ariaLabels: AppLayoutProps.Labels | undefined;\n navigation: React.ReactNode;\n navigationOpen: boolean;\n onNavigationToggle: (open: boolean) => void;\n navigationFocusRef: React.Ref<Focusable> | undefined;\n breadcrumbs: React.ReactNode;\n activeDrawerId: string | null;\n drawers: ReadonlyArray<AppLayoutProps.Drawer> | undefined;\n onActiveDrawerChange: ((drawerId: string | null, params: OnChangeParams) => void) | undefined;\n drawersFocusRef: React.Ref<Focusable> | undefined;\n globalDrawersFocusControl?: FocusControlMultipleStates | undefined;\n globalDrawers?: ReadonlyArray<AppLayoutProps.Drawer> | undefined;\n activeGlobalDrawersIds?: Array<string> | undefined;\n onActiveGlobalDrawersChange?: ((newDrawerId: string, params: OnChangeParams) => void) | undefined;\n splitPanel: React.ReactNode;\n splitPanelToggleProps: SplitPanelToggleProps | undefined;\n splitPanelFocusRef: React.Ref<Focusable> | undefined;\n onSplitPanelToggle: () => void;\n expandedDrawerId?: string | null;\n setExpandedDrawerId: (value: string | null) => void;\n}\n\nfunction checkAlreadyExists(value: boolean, propName: string) {\n if (value) {\n warnOnce(\n 'AppLayout',\n `Another app layout instance on this page already defines ${propName} property. This instance will be ignored.`\n );\n return true;\n }\n return false;\n}\n\nexport function mergeProps(\n ownProps: SharedProps,\n additionalProps: ReadonlyArray<Partial<SharedProps>>\n): ToolbarProps | null {\n const toolbar: ToolbarProps = {};\n for (const props of [ownProps, ...additionalProps]) {\n toolbar.ariaLabels = Object.assign(toolbar.ariaLabels ?? {}, props.ariaLabels);\n if (\n props.drawers &&\n props.drawers.some(drawer => drawer.trigger) &&\n !checkAlreadyExists(!!toolbar.drawers, 'tools or drawers')\n ) {\n toolbar.drawers = props.drawers;\n toolbar.activeDrawerId = props.activeDrawerId;\n toolbar.drawersFocusRef = props.drawersFocusRef;\n toolbar.onActiveDrawerChange = props.onActiveDrawerChange;\n }\n if (props.globalDrawers && !checkAlreadyExists(!!toolbar.globalDrawers, 'globalDrawers')) {\n toolbar.globalDrawersFocusControl = props.globalDrawersFocusControl;\n toolbar.globalDrawers = props.globalDrawers;\n toolbar.activeGlobalDrawersIds = props.activeGlobalDrawersIds;\n toolbar.onActiveGlobalDrawersChange = props.onActiveGlobalDrawersChange;\n }\n if (props.navigation && !checkAlreadyExists(!!toolbar.hasNavigation, 'navigation')) {\n toolbar.hasNavigation = true;\n toolbar.navigationOpen = props.navigationOpen;\n toolbar.navigationFocusRef = props.navigationFocusRef;\n toolbar.onNavigationToggle = props.onNavigationToggle;\n }\n if (\n props.splitPanel &&\n props.splitPanelToggleProps?.displayed &&\n !checkAlreadyExists(!!toolbar.hasSplitPanel, 'splitPanel')\n ) {\n toolbar.hasSplitPanel = true;\n toolbar.splitPanelFocusRef = props.splitPanelFocusRef;\n toolbar.splitPanelToggleProps = props.splitPanelToggleProps;\n toolbar.onSplitPanelToggle = props.onSplitPanelToggle;\n }\n if (props.breadcrumbs && !checkAlreadyExists(!!toolbar.hasBreadcrumbsPortal, 'hasBreadcrumbsPortal')) {\n toolbar.hasBreadcrumbsPortal = true;\n }\n if (props.expandedDrawerId && !checkAlreadyExists(!!toolbar.expandedDrawerId, 'expandedDrawerId')) {\n toolbar.expandedDrawerId = props.expandedDrawerId;\n toolbar.setExpandedDrawerId = props.setExpandedDrawerId;\n }\n }\n // do not render toolbar if no fields are defined, except ariaLabels, which are always there\n return Object.keys(toolbar).filter(key => key !== 'ariaLabels').length > 0 ? toolbar : null;\n}\n\nexport function useMultiAppLayout(\n props: SharedProps,\n isEnabled: boolean\n): { registered: boolean; toolbarProps: ToolbarProps | null } {\n const [registration, setRegistration] = useState<RegistrationState<SharedProps> | null>(null);\n const { forceDeduplicationType } = props;\n const isToolbar = useAppLayoutFlagEnabled();\n\n useLayoutEffect(() => {\n if (!isEnabled || forceDeduplicationType === 'suspended' || !isToolbar) {\n return;\n }\n if (forceDeduplicationType === 'off') {\n setRegistration({ type: 'primary', discoveredProps: [] });\n return;\n }\n const unregister = awsuiPluginsInternal.appLayoutWidget.register(forceDeduplicationType, props =>\n setRegistration(props as RegistrationState<SharedProps>)\n );\n return () => {\n unregister();\n setRegistration({ type: 'suspended' });\n };\n }, [forceDeduplicationType, isEnabled, isToolbar]);\n\n useLayoutEffect(() => {\n if (registration?.type === 'secondary') {\n registration.update(props);\n }\n });\n\n if (!isToolbar) {\n return {\n registered: true,\n // mergeProps is needed here because the toolbar's behavior depends on reconciliation logic\n // in this function. For example, navigation trigger visibility\n toolbarProps: mergeProps(props, []),\n };\n }\n\n return {\n registered: !!registration?.type,\n toolbarProps: registration?.type === 'primary' ? mergeProps(props, registration.discoveredProps) : null,\n };\n}\n"]}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { BreadcrumbGroupProps } from '../../../../breadcrumb-group/interfaces';
3
- interface BreadcrumbsSlotProps {
4
- ownBreadcrumbs: React.ReactNode;
5
- discoveredBreadcrumbs: BreadcrumbGroupProps | null;
6
- }
7
- export declare function BreadcrumbsSlot({
8
- ownBreadcrumbs,
9
- discoveredBreadcrumbs
10
- }: BreadcrumbsSlotProps): JSX.Element;
11
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/app-layout/visual-refresh-toolbar/skeleton/breadcrumbs/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAK/E,UAAU,oBAAoB;IAC5B,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,qBAAqB,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACpD;AAED,wBAAgB,eAAe,CAAC,EAAE,cAAc,EAAE,qBAAqB,EAAE,EAAE,oBAAoB,eAe9F"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/app-layout/visual-refresh-toolbar/skeleton/breadcrumbs/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAE5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAOrC,MAAM,UAAU,eAAe,CAAC,EAAE,cAAc,EAAE,qBAAqB,EAAwB;IAC7F,OAAO,CACL,oBAAC,sBAAsB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;QAC3D,6BAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,IAAG,cAAc,CAAO;QAChE,qBAAqB,IAAI,CACxB,6BAAK,SAAS,EAAE,MAAM,CAAC,wBAAwB,CAAC;YAC9C,oBAAC,6BAA6B,oBACxB,qBAAqB,yCACU,IAAI,EACvC,kCAAkC,EAAE,IAAI,IACxC,CACE,CACP,CAC+B,CACnC,CAAC;AACJ,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 { BreadcrumbGroupImplementation } from '../../../../breadcrumb-group/implementation';\nimport { BreadcrumbGroupProps } from '../../../../breadcrumb-group/interfaces';\nimport { BreadcrumbsSlotContext } from '../../contexts';\n\nimport styles from './styles.css.js';\n\ninterface BreadcrumbsSlotProps {\n ownBreadcrumbs: React.ReactNode;\n discoveredBreadcrumbs: BreadcrumbGroupProps | null;\n}\n\nexport function BreadcrumbsSlot({ ownBreadcrumbs, discoveredBreadcrumbs }: BreadcrumbsSlotProps) {\n return (\n <BreadcrumbsSlotContext.Provider value={{ isInToolbar: true }}>\n <div className={styles['breadcrumbs-own']}>{ownBreadcrumbs}</div>\n {discoveredBreadcrumbs && (\n <div className={styles['breadcrumbs-discovered']}>\n <BreadcrumbGroupImplementation\n {...discoveredBreadcrumbs}\n data-awsui-discovered-breadcrumbs={true}\n __injectAnalyticsComponentMetadata={true}\n />\n </div>\n )}\n </BreadcrumbsSlotContext.Provider>\n );\n}\n"]}
@@ -1,7 +0,0 @@
1
-
2
- import './styles.scoped.css';
3
- export default {
4
- "breadcrumbs-own": "awsui_breadcrumbs-own_ete58_yonx9_5",
5
- "breadcrumbs-discovered": "awsui_breadcrumbs-discovered_ete58_yonx9_5"
6
- };
7
-
@@ -1,7 +0,0 @@
1
- /*
2
- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- SPDX-License-Identifier: Apache-2.0
4
- */
5
- .awsui_breadcrumbs-own_ete58_yonx9_5:not(#\9):not(:empty) + .awsui_breadcrumbs-discovered_ete58_yonx9_5 {
6
- display: none;
7
- }