@cloudscape-design/components 3.0.426 → 3.0.427

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 (52) hide show
  1. package/app-layout/index.d.ts.map +1 -1
  2. package/app-layout/index.js +3 -1
  3. package/app-layout/index.js.map +1 -1
  4. package/app-layout/visual-refresh/context.d.ts +1 -0
  5. package/app-layout/visual-refresh/context.d.ts.map +1 -1
  6. package/app-layout/visual-refresh/context.js +4 -1
  7. package/app-layout/visual-refresh/context.js.map +1 -1
  8. package/app-layout/visual-refresh/layout.d.ts.map +1 -1
  9. package/app-layout/visual-refresh/layout.js +2 -1
  10. package/app-layout/visual-refresh/layout.js.map +1 -1
  11. package/app-layout/visual-refresh/mobile-toolbar.d.ts.map +1 -1
  12. package/app-layout/visual-refresh/mobile-toolbar.js +4 -2
  13. package/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
  14. package/app-layout/visual-refresh/styles.css.js +78 -77
  15. package/app-layout/visual-refresh/styles.scoped.css +168 -165
  16. package/app-layout/visual-refresh/styles.selectors.js +78 -77
  17. package/{internal/components/drawer → drawer}/index.d.ts +1 -0
  18. package/drawer/index.d.ts.map +1 -0
  19. package/{internal/components/drawer → drawer}/index.js +10 -6
  20. package/drawer/index.js.map +1 -0
  21. package/{internal/components/drawer → drawer}/interfaces.d.ts +1 -1
  22. package/drawer/interfaces.d.ts.map +1 -0
  23. package/drawer/interfaces.js.map +1 -0
  24. package/{internal/components/drawer → drawer}/styles.css.js +3 -3
  25. package/{internal/components/drawer → drawer}/styles.scoped.css +8 -8
  26. package/{internal/components/drawer → drawer}/styles.selectors.js +3 -3
  27. package/index.d.ts +1 -0
  28. package/index.d.ts.map +1 -1
  29. package/index.js +1 -0
  30. package/index.js.map +1 -1
  31. package/internal/environment.js +1 -1
  32. package/internal/environment.json +1 -1
  33. package/internal/manifest.json +1 -1
  34. package/package.json +2 -1
  35. package/test-utils/dom/drawer/index.d.ts +6 -0
  36. package/test-utils/dom/drawer/index.js +17 -0
  37. package/test-utils/dom/drawer/index.js.map +1 -0
  38. package/test-utils/dom/index.d.ts +3 -0
  39. package/test-utils/dom/index.js +10 -2
  40. package/test-utils/dom/index.js.map +1 -1
  41. package/test-utils/selectors/drawer/index.d.ts +6 -0
  42. package/test-utils/selectors/drawer/index.js +17 -0
  43. package/test-utils/selectors/drawer/index.js.map +1 -0
  44. package/test-utils/selectors/index.d.ts +3 -0
  45. package/test-utils/selectors/index.js +10 -2
  46. package/test-utils/selectors/index.js.map +1 -1
  47. package/test-utils/tsconfig.tsbuildinfo +1 -1
  48. package/internal/components/drawer/index.d.ts.map +0 -1
  49. package/internal/components/drawer/index.js.map +0 -1
  50. package/internal/components/drawer/interfaces.d.ts.map +0 -1
  51. package/internal/components/drawer/interfaces.js.map +0 -1
  52. /package/{internal/components/drawer → drawer}/interfaces.js +0 -0
@@ -2,82 +2,83 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "background": "awsui_background_hyvsj_1dh3h_93",
6
- "scrolling-background": "awsui_scrolling-background_hyvsj_1dh3h_96",
7
- "sticky-background": "awsui_sticky-background_hyvsj_1dh3h_102",
8
- "has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_1dh3h_110",
9
- "breadcrumbs": "awsui_breadcrumbs_hyvsj_1dh3h_123",
10
- "has-sticky-background": "awsui_has-sticky-background_hyvsj_1dh3h_133",
11
- "drawers-container": "awsui_drawers-container_hyvsj_1dh3h_145",
12
- "has-open-drawer": "awsui_has-open-drawer_hyvsj_1dh3h_156",
13
- "disable-body-scroll": "awsui_disable-body-scroll_hyvsj_1dh3h_180",
14
- "drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_1dh3h_185",
15
- "has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_1dh3h_204",
16
- "drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_1dh3h_214",
17
- "drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_1dh3h_218",
18
- "drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_1dh3h_232",
19
- "drawers-trigger": "awsui_drawers-trigger_hyvsj_1dh3h_218",
20
- "drawer": "awsui_drawer_hyvsj_1dh3h_145",
21
- "drawer-content-container": "awsui_drawer-content-container_hyvsj_1dh3h_262",
22
- "drawer-close-button": "awsui_drawer-close-button_hyvsj_1dh3h_271",
23
- "drawer-content": "awsui_drawer-content_hyvsj_1dh3h_262",
24
- "drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_1dh3h_279",
25
- "drawer-slider": "awsui_drawer-slider_hyvsj_1dh3h_282",
26
- "is-drawer-open": "awsui_is-drawer-open_hyvsj_1dh3h_289",
27
- "content": "awsui_content_hyvsj_1dh3h_314",
28
- "layout": "awsui_layout_hyvsj_1dh3h_335",
29
- "has-max-content-width": "awsui_has-max-content-width_hyvsj_1dh3h_418",
30
- "content-type-dashboard": "awsui_content-type-dashboard_hyvsj_1dh3h_433",
31
- "is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_1dh3h_450",
32
- "has-content-gap-left": "awsui_has-content-gap-left_hyvsj_1dh3h_482",
33
- "has-content-gap-right": "awsui_has-content-gap-right_hyvsj_1dh3h_485",
34
- "content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_1dh3h_495",
35
- "has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_1dh3h_498",
36
- "content-first-child-header": "awsui_content-first-child-header_hyvsj_1dh3h_501",
37
- "has-header": "awsui_has-header_hyvsj_1dh3h_501",
38
- "content-first-child-main": "awsui_content-first-child-main_hyvsj_1dh3h_522",
39
- "disable-content-paddings": "awsui_disable-content-paddings_hyvsj_1dh3h_522",
40
- "has-split-panel": "awsui_has-split-panel_hyvsj_1dh3h_565",
41
- "split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_1dh3h_565",
42
- "block-body-scroll": "awsui_block-body-scroll_hyvsj_1dh3h_581",
43
- "unfocusable": "awsui_unfocusable_hyvsj_1dh3h_586",
44
- "container": "awsui_container_hyvsj_1dh3h_596",
45
- "is-navigation-open": "awsui_is-navigation-open_hyvsj_1dh3h_621",
46
- "is-tools-open": "awsui_is-tools-open_hyvsj_1dh3h_624",
47
- "is-split-panel-open": "awsui_is-split-panel-open_hyvsj_1dh3h_624",
48
- "split-panel-position-side": "awsui_split-panel-position-side_hyvsj_1dh3h_624",
49
- "has-active-drawer": "awsui_has-active-drawer_hyvsj_1dh3h_624",
50
- "mobile-toolbar": "awsui_mobile-toolbar_hyvsj_1dh3h_633",
51
- "mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_1dh3h_649",
52
- "mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_1dh3h_653",
53
- "mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_1dh3h_657",
54
- "navigation-container": "awsui_navigation-container_hyvsj_1dh3h_666",
55
- "show-navigation": "awsui_show-navigation_hyvsj_1dh3h_710",
56
- "animating": "awsui_animating_hyvsj_1dh3h_732",
57
- "showButtons": "awsui_showButtons_hyvsj_1dh3h_1",
58
- "navigation": "awsui_navigation_hyvsj_1dh3h_666",
59
- "openNavigation": "awsui_openNavigation_hyvsj_1dh3h_1",
60
- "animated-content": "awsui_animated-content_hyvsj_1dh3h_794",
61
- "hide-navigation": "awsui_hide-navigation_hyvsj_1dh3h_803",
62
- "notifications": "awsui_notifications_hyvsj_1dh3h_813",
63
- "sticky-notifications": "awsui_sticky-notifications_hyvsj_1dh3h_819",
64
- "split-panel-bottom": "awsui_split-panel-bottom_hyvsj_1dh3h_836",
65
- "position-bottom": "awsui_position-bottom_hyvsj_1dh3h_883",
66
- "openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_1dh3h_1",
67
- "split-panel-side": "awsui_split-panel-side_hyvsj_1dh3h_912",
68
- "position-side": "awsui_position-side_hyvsj_1dh3h_925",
69
- "tools-container": "awsui_tools-container_hyvsj_1dh3h_944",
70
- "tools": "awsui_tools_hyvsj_1dh3h_944",
71
- "openTools": "awsui_openTools_hyvsj_1dh3h_1",
72
- "has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_1dh3h_1039",
73
- "hide-tools": "awsui_hide-tools_hyvsj_1dh3h_1049",
74
- "show-tools": "awsui_show-tools_hyvsj_1dh3h_1061",
75
- "has-tools-form": "awsui_has-tools-form_hyvsj_1dh3h_1039",
76
- "trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_1dh3h_1121",
77
- "trigger": "awsui_trigger_hyvsj_1dh3h_1121",
78
- "selected": "awsui_selected_hyvsj_1dh3h_1185",
79
- "badge": "awsui_badge_hyvsj_1dh3h_1205",
80
- "trigger-wrapper": "awsui_trigger-wrapper_hyvsj_1dh3h_1209",
81
- "dot": "awsui_dot_hyvsj_1dh3h_1215"
5
+ "background": "awsui_background_hyvsj_ae7i0_93",
6
+ "scrolling-background": "awsui_scrolling-background_hyvsj_ae7i0_96",
7
+ "sticky-background": "awsui_sticky-background_hyvsj_ae7i0_102",
8
+ "has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_ae7i0_110",
9
+ "breadcrumbs": "awsui_breadcrumbs_hyvsj_ae7i0_123",
10
+ "has-sticky-background": "awsui_has-sticky-background_hyvsj_ae7i0_133",
11
+ "drawers-container": "awsui_drawers-container_hyvsj_ae7i0_145",
12
+ "has-open-drawer": "awsui_has-open-drawer_hyvsj_ae7i0_156",
13
+ "disable-body-scroll": "awsui_disable-body-scroll_hyvsj_ae7i0_180",
14
+ "drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_ae7i0_185",
15
+ "has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_ae7i0_204",
16
+ "drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_ae7i0_214",
17
+ "drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_ae7i0_218",
18
+ "drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_ae7i0_232",
19
+ "drawers-trigger": "awsui_drawers-trigger_hyvsj_ae7i0_218",
20
+ "drawer": "awsui_drawer_hyvsj_ae7i0_145",
21
+ "drawer-content-container": "awsui_drawer-content-container_hyvsj_ae7i0_262",
22
+ "drawer-close-button": "awsui_drawer-close-button_hyvsj_ae7i0_271",
23
+ "drawer-content": "awsui_drawer-content_hyvsj_ae7i0_262",
24
+ "drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_ae7i0_279",
25
+ "drawer-slider": "awsui_drawer-slider_hyvsj_ae7i0_282",
26
+ "is-drawer-open": "awsui_is-drawer-open_hyvsj_ae7i0_289",
27
+ "content": "awsui_content_hyvsj_ae7i0_314",
28
+ "layout": "awsui_layout_hyvsj_ae7i0_335",
29
+ "has-max-content-width": "awsui_has-max-content-width_hyvsj_ae7i0_418",
30
+ "content-type-dashboard": "awsui_content-type-dashboard_hyvsj_ae7i0_433",
31
+ "is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_ae7i0_450",
32
+ "is-hide-mobile-toolbar": "awsui_is-hide-mobile-toolbar_hyvsj_ae7i0_453",
33
+ "has-content-gap-left": "awsui_has-content-gap-left_hyvsj_ae7i0_485",
34
+ "has-content-gap-right": "awsui_has-content-gap-right_hyvsj_ae7i0_488",
35
+ "content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_ae7i0_498",
36
+ "has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_ae7i0_501",
37
+ "content-first-child-header": "awsui_content-first-child-header_hyvsj_ae7i0_504",
38
+ "has-header": "awsui_has-header_hyvsj_ae7i0_504",
39
+ "content-first-child-main": "awsui_content-first-child-main_hyvsj_ae7i0_525",
40
+ "disable-content-paddings": "awsui_disable-content-paddings_hyvsj_ae7i0_525",
41
+ "has-split-panel": "awsui_has-split-panel_hyvsj_ae7i0_568",
42
+ "split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_ae7i0_568",
43
+ "block-body-scroll": "awsui_block-body-scroll_hyvsj_ae7i0_584",
44
+ "unfocusable": "awsui_unfocusable_hyvsj_ae7i0_589",
45
+ "container": "awsui_container_hyvsj_ae7i0_599",
46
+ "is-navigation-open": "awsui_is-navigation-open_hyvsj_ae7i0_624",
47
+ "is-tools-open": "awsui_is-tools-open_hyvsj_ae7i0_627",
48
+ "is-split-panel-open": "awsui_is-split-panel-open_hyvsj_ae7i0_627",
49
+ "split-panel-position-side": "awsui_split-panel-position-side_hyvsj_ae7i0_627",
50
+ "has-active-drawer": "awsui_has-active-drawer_hyvsj_ae7i0_627",
51
+ "mobile-toolbar": "awsui_mobile-toolbar_hyvsj_ae7i0_636",
52
+ "mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_ae7i0_652",
53
+ "mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_ae7i0_656",
54
+ "mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_ae7i0_660",
55
+ "navigation-container": "awsui_navigation-container_hyvsj_ae7i0_669",
56
+ "show-navigation": "awsui_show-navigation_hyvsj_ae7i0_713",
57
+ "animating": "awsui_animating_hyvsj_ae7i0_735",
58
+ "showButtons": "awsui_showButtons_hyvsj_ae7i0_1",
59
+ "navigation": "awsui_navigation_hyvsj_ae7i0_669",
60
+ "openNavigation": "awsui_openNavigation_hyvsj_ae7i0_1",
61
+ "animated-content": "awsui_animated-content_hyvsj_ae7i0_797",
62
+ "hide-navigation": "awsui_hide-navigation_hyvsj_ae7i0_806",
63
+ "notifications": "awsui_notifications_hyvsj_ae7i0_816",
64
+ "sticky-notifications": "awsui_sticky-notifications_hyvsj_ae7i0_822",
65
+ "split-panel-bottom": "awsui_split-panel-bottom_hyvsj_ae7i0_839",
66
+ "position-bottom": "awsui_position-bottom_hyvsj_ae7i0_886",
67
+ "openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_ae7i0_1",
68
+ "split-panel-side": "awsui_split-panel-side_hyvsj_ae7i0_915",
69
+ "position-side": "awsui_position-side_hyvsj_ae7i0_928",
70
+ "tools-container": "awsui_tools-container_hyvsj_ae7i0_947",
71
+ "tools": "awsui_tools_hyvsj_ae7i0_947",
72
+ "openTools": "awsui_openTools_hyvsj_ae7i0_1",
73
+ "has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_ae7i0_1042",
74
+ "hide-tools": "awsui_hide-tools_hyvsj_ae7i0_1052",
75
+ "show-tools": "awsui_show-tools_hyvsj_ae7i0_1064",
76
+ "has-tools-form": "awsui_has-tools-form_hyvsj_ae7i0_1042",
77
+ "trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_ae7i0_1124",
78
+ "trigger": "awsui_trigger_hyvsj_ae7i0_1124",
79
+ "selected": "awsui_selected_hyvsj_ae7i0_1188",
80
+ "badge": "awsui_badge_hyvsj_ae7i0_1208",
81
+ "trigger-wrapper": "awsui_trigger-wrapper_hyvsj_ae7i0_1212",
82
+ "dot": "awsui_dot_hyvsj_ae7i0_1218"
82
83
  };
83
84
 
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { DrawerProps } from './interfaces';
3
+ export { DrawerProps };
3
4
  export default function Drawer({ header, children, loading, i18nStrings, ...restProps }: DrawerProps): JSX.Element;
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["drawer/index.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,SAAS,EAAE,EAAE,WAAW,eAoBnG"}
@@ -3,20 +3,24 @@ import { __rest } from "tslib";
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  import clsx from 'clsx';
5
5
  import React from 'react';
6
- import { getBaseProps } from '../../base-component';
7
- import InternalStatusIndicator from '../../../status-indicator/internal';
6
+ import { getBaseProps } from '../internal/base-component';
7
+ import InternalStatusIndicator from '../status-indicator/internal';
8
8
  import styles from './styles.css.js';
9
- import LiveRegion from '../../components/live-region';
10
- import { useInternalI18n } from '../../../i18n/context';
9
+ import { applyDisplayName } from '../internal/utils/apply-display-name';
10
+ import useBaseComponent from '../internal/hooks/use-base-component';
11
+ import LiveRegion from '../internal/components/live-region';
12
+ import { useInternalI18n } from '../i18n/context';
11
13
  export default function Drawer(_a) {
12
14
  var { header, children, loading, i18nStrings } = _a, restProps = __rest(_a, ["header", "children", "loading", "i18nStrings"]);
15
+ const { __internalRootRef } = useBaseComponent('Drawer');
13
16
  const baseProps = getBaseProps(restProps);
14
17
  const i18n = useInternalI18n('drawer');
15
18
  const containerProps = Object.assign(Object.assign({}, baseProps), { className: clsx(baseProps.className, styles.drawer) });
16
- return loading ? (React.createElement("div", Object.assign({}, containerProps),
19
+ return loading ? (React.createElement("div", Object.assign({}, containerProps, { ref: __internalRootRef }),
17
20
  React.createElement(InternalStatusIndicator, { type: "loading" },
18
- React.createElement(LiveRegion, { visible: true }, i18n('i18nStrings.loadingText', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.loadingText))))) : (React.createElement("div", Object.assign({}, containerProps),
21
+ React.createElement(LiveRegion, { visible: true }, i18n('i18nStrings.loadingText', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.loadingText))))) : (React.createElement("div", Object.assign({}, containerProps, { ref: __internalRootRef }),
19
22
  header && React.createElement("div", { className: clsx(styles.header) }, header),
20
23
  React.createElement("div", { className: clsx(styles['test-utils-drawer-content']) }, children)));
21
24
  }
25
+ applyDisplayName(Drawer, 'Drawer');
22
26
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["drawer/index.tsx"],"names":[],"mappings":";AAAA,qEAAq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E,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAG,MAAM,CAAO;QAC9D,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC,IAAG,QAAQ,CAAO,CACvE,CACP,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport InternalStatusIndicator from '../status-indicator/internal';\nimport styles from './styles.css.js';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { DrawerProps } from './interfaces';\nimport LiveRegion from '../internal/components/live-region';\nimport { useInternalI18n } from '../i18n/context';\n\nexport { DrawerProps };\n\nexport default function Drawer({ header, children, loading, i18nStrings, ...restProps }: DrawerProps) {\n const { __internalRootRef } = useBaseComponent('Drawer');\n const baseProps = getBaseProps(restProps);\n const i18n = useInternalI18n('drawer');\n const containerProps = {\n ...baseProps,\n className: clsx(baseProps.className, styles.drawer),\n };\n return loading ? (\n <div {...containerProps} ref={__internalRootRef}>\n <InternalStatusIndicator type=\"loading\">\n <LiveRegion visible={true}>{i18n('i18nStrings.loadingText', i18nStrings?.loadingText)}</LiveRegion>\n </InternalStatusIndicator>\n </div>\n ) : (\n <div {...containerProps} ref={__internalRootRef}>\n {header && <div className={clsx(styles.header)}>{header}</div>}\n <div className={clsx(styles['test-utils-drawer-content'])}>{children}</div>\n </div>\n );\n}\n\napplyDisplayName(Drawer, 'Drawer');\n"]}
@@ -1,4 +1,4 @@
1
- import { BaseComponentProps } from '../../base-component';
1
+ import { BaseComponentProps } from '../internal/base-component';
2
2
  import React from 'react';
3
3
  export interface DrawerProps extends BaseComponentProps {
4
4
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["drawer/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["drawer/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport React from 'react';\n\nexport interface DrawerProps extends BaseComponentProps {\n /**\n * Header of the drawer.\n *\n * It should contain the only `h2` used in the drawer.\n */\n header?: React.ReactNode;\n\n /**\n * Main content of the drawer.\n *\n */\n children?: React.ReactNode;\n\n /**\n * Renders the drawer in a loading state. We recommend that you also set a `loadingText`.\n */\n loading?: boolean;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: I18nStrings;\n}\n\nexport interface I18nStrings {\n /**\n Specifies the text that's displayed when the panel is in a loading state.\n */\n loadingText?: string;\n}\n"]}
@@ -1,8 +1,8 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "drawer": "awsui_drawer_10gbb_7yjjg_94",
5
- "header": "awsui_header_10gbb_7yjjg_109",
6
- "test-utils-drawer-content": "awsui_test-utils-drawer-content_10gbb_7yjjg_138"
4
+ "drawer": "awsui_drawer_1sxt8_7yjjg_94",
5
+ "header": "awsui_header_1sxt8_7yjjg_109",
6
+ "test-utils-drawer-content": "awsui_test-utils-drawer-content_1sxt8_7yjjg_138"
7
7
  };
8
8
 
@@ -91,7 +91,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
93
  /* stylelint-disable @cloudscape-design/no-implicit-descendant, selector-max-type */
94
- .awsui_drawer_10gbb_7yjjg_94:not(#\9) {
94
+ .awsui_drawer_1sxt8_7yjjg_94:not(#\9) {
95
95
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
96
96
  border-collapse: separate;
97
97
  border-spacing: 0;
@@ -132,7 +132,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
132
132
  padding: var(--space-scaled-l-0hpmd7, 20px) var(--space-panel-side-right-xofg51, 24px) var(--space-scaled-xxxl-fdg8ai, 40px) var(--space-panel-side-left-5t0who, 28px);
133
133
  }
134
134
 
135
- .awsui_header_10gbb_7yjjg_109:not(#\9) {
135
+ .awsui_header_1sxt8_7yjjg_109:not(#\9) {
136
136
  font-size: var(--font-panel-header-size-edjz3l, 18px);
137
137
  line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
138
138
  font-weight: var(--font-weight-heading-l-f8711v, 700);
@@ -145,11 +145,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
145
145
  border-bottom: var(--border-divider-section-width-8a5uu9, 2px) solid var(--color-border-divider-default-et9j7s, #e9ebed);
146
146
  margin: 0 calc(-1 * var(--space-panel-side-right-xofg51, 24px)) var(--space-scaled-l-0hpmd7, 20px) calc(-1 * var(--space-panel-side-left-5t0who, 28px));
147
147
  }
148
- .awsui_header_10gbb_7yjjg_109 h2:not(#\9),
149
- .awsui_header_10gbb_7yjjg_109 h3:not(#\9),
150
- .awsui_header_10gbb_7yjjg_109 h4:not(#\9),
151
- .awsui_header_10gbb_7yjjg_109 h5:not(#\9),
152
- .awsui_header_10gbb_7yjjg_109 h6:not(#\9) {
148
+ .awsui_header_1sxt8_7yjjg_109 h2:not(#\9),
149
+ .awsui_header_1sxt8_7yjjg_109 h3:not(#\9),
150
+ .awsui_header_1sxt8_7yjjg_109 h4:not(#\9),
151
+ .awsui_header_1sxt8_7yjjg_109 h5:not(#\9),
152
+ .awsui_header_1sxt8_7yjjg_109 h6:not(#\9) {
153
153
  font-size: var(--font-panel-header-size-edjz3l, 18px);
154
154
  line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
155
155
  font-weight: var(--font-weight-heading-l-f8711v, 700);
@@ -161,6 +161,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
161
161
  margin-bottom: 0;
162
162
  }
163
163
 
164
- .awsui_test-utils-drawer-content_10gbb_7yjjg_138:not(#\9) {
164
+ .awsui_test-utils-drawer-content_1sxt8_7yjjg_138:not(#\9) {
165
165
  /* used in test-utils */
166
166
  }
@@ -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
- "drawer": "awsui_drawer_10gbb_7yjjg_94",
6
- "header": "awsui_header_10gbb_7yjjg_109",
7
- "test-utils-drawer-content": "awsui_test-utils-drawer-content_10gbb_7yjjg_138"
5
+ "drawer": "awsui_drawer_1sxt8_7yjjg_94",
6
+ "header": "awsui_header_1sxt8_7yjjg_109",
7
+ "test-utils-drawer-content": "awsui_test-utils-drawer-content_1sxt8_7yjjg_138"
8
8
  };
9
9
 
package/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export { default as ContentLayout, ContentLayoutProps } from './content-layout';
22
22
  export { default as DateInput, DateInputProps } from './date-input';
23
23
  export { default as DatePicker, DatePickerProps } from './date-picker';
24
24
  export { default as DateRangePicker, DateRangePickerProps } from './date-range-picker';
25
+ export { default as Drawer, DrawerProps } from './drawer';
25
26
  export { default as ExpandableSection, ExpandableSectionProps } from './expandable-section';
26
27
  export { default as FileUpload, FileUploadProps } from './file-upload';
27
28
  export { default as Flashbar, FlashbarProps } from './flashbar';
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,OAAO,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AAY,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1D,cAAc,cAAc,CAAC"}
package/index.js CHANGED
@@ -22,6 +22,7 @@ export { default as ContentLayout } from './content-layout';
22
22
  export { default as DateInput } from './date-input';
23
23
  export { default as DatePicker } from './date-picker';
24
24
  export { default as DateRangePicker } from './date-range-picker';
25
+ export { default as Drawer } from './drawer';
25
26
  export { default as ExpandableSection } from './expandable-section';
26
27
  export { default as FileUpload } from './file-upload';
27
28
  export { default as Flashbar } from './flashbar';
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAc,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAyB,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAA0B,MAAM,sBAAsB,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,SAAS,EAAkB,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAkB,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE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aAAa,EAAsB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAsB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAe,MAAM,UAAU,CAAC;AAC1D,cAAc,cAAc,CAAC","sourcesContent":["export { default as Alert, AlertProps } from './alert';\nexport { default as AnchorNavigation, AnchorNavigationProps } from './anchor-navigation';\nexport { default as AnnotationContext, AnnotationContextProps } from './annotation-context';\nexport { default as AppLayout, AppLayoutProps } from './app-layout';\nexport { default as AreaChart, AreaChartProps } from './area-chart';\nexport { default as AttributeEditor, AttributeEditorProps } from './attribute-editor';\nexport { default as Autosuggest, AutosuggestProps } from './autosuggest';\nexport { default as Badge, BadgeProps } from './badge';\nexport { default as BarChart, BarChartProps } from './bar-chart';\nexport { default as Box, BoxProps } from './box';\nexport { default as BreadcrumbGroup, BreadcrumbGroupProps } from './breadcrumb-group';\nexport { default as Button, ButtonProps } from './button';\nexport { default as ButtonDropdown, ButtonDropdownProps } from './button-dropdown';\nexport { default as Calendar, CalendarProps } from './calendar';\nexport { default as Cards, CardsProps } from './cards';\nexport { default as Checkbox, CheckboxProps } from './checkbox';\nexport { default as CodeEditor, CodeEditorProps } from './code-editor';\nexport { default as CollectionPreferences, CollectionPreferencesProps } from './collection-preferences';\nexport { default as ColumnLayout, ColumnLayoutProps } from './column-layout';\nexport { default as Container, ContainerProps } from './container';\nexport { default as ContentLayout, ContentLayoutProps } from './content-layout';\nexport { default as DateInput, DateInputProps } from './date-input';\nexport { default as DatePicker, DatePickerProps } from './date-picker';\nexport { default as DateRangePicker, DateRangePickerProps } from './date-range-picker';\nexport { default as ExpandableSection, ExpandableSectionProps } from './expandable-section';\nexport { default as FileUpload, FileUploadProps } from './file-upload';\nexport { default as Flashbar, FlashbarProps } from './flashbar';\nexport { default as Form, FormProps } from './form';\nexport { default as FormField, FormFieldProps } from './form-field';\nexport { default as Grid, GridProps } from './grid';\nexport { default as Header, HeaderProps } from './header';\nexport { default as HelpPanel, HelpPanelProps } from './help-panel';\nexport { default as Hotspot, HotspotProps } from './hotspot';\nexport { default as Icon, IconProps } from './icon';\nexport { default as Input, InputProps } from './input';\nexport { default as LineChart, LineChartProps } from './line-chart';\nexport { default as Link, LinkProps } from './link';\nexport { default as MixedLineBarChart, MixedLineBarChartProps } from './mixed-line-bar-chart';\nexport { default as Modal, ModalProps } from './modal';\nexport { default as Multiselect, MultiselectProps } from './multiselect';\nexport { default as Pagination, PaginationProps } from './pagination';\nexport { default as PieChart, PieChartProps } from './pie-chart';\nexport { default as Popover, PopoverProps } from './popover';\nexport { default as ProgressBar, ProgressBarProps } from './progress-bar';\nexport { default as PropertyFilter, PropertyFilterProps } from './property-filter';\nexport { default as RadioGroup, RadioGroupProps } from './radio-group';\nexport { default as S3ResourceSelector, S3ResourceSelectorProps } from './s3-resource-selector';\nexport { default as SegmentedControl, SegmentedControlProps } from './segmented-control';\nexport { default as Select, SelectProps } from './select';\nexport { default as SideNavigation, SideNavigationProps } from './side-navigation';\nexport { default as SpaceBetween, SpaceBetweenProps } from './space-between';\nexport { default as Spinner, SpinnerProps } from './spinner';\nexport { default as SplitPanel, SplitPanelProps } from './split-panel';\nexport { default as StatusIndicator, StatusIndicatorProps } from './status-indicator';\nexport { default as Table, TableProps } from './table';\nexport { default as Tabs, TabsProps } from './tabs';\nexport { default as TagEditor, TagEditorProps } from './tag-editor';\nexport { default as TextContent, TextContentProps } from './text-content';\nexport { default as TextFilter, TextFilterProps } from './text-filter';\nexport { default as Textarea, TextareaProps } from './textarea';\nexport { default as Tiles, TilesProps } from './tiles';\nexport { default as TimeInput, TimeInputProps } from './time-input';\nexport { default as Toggle, ToggleProps } from './toggle';\nexport { default as TokenGroup, TokenGroupProps } from './token-group';\nexport { default as TopNavigation, TopNavigationProps } from './top-navigation';\nexport { default as TutorialPanel, TutorialPanelProps } from './tutorial-panel';\nexport { default as Wizard, WizardProps } from './wizard';\nexport * from './interfaces';\n"]}
1
+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O,EAAE,OAAO,IAAI,WAAW,EAAoB,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAmB,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAiB,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAc,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAkB,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAe,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAmB,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAsB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAsB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAe,MAAM,UAAU,CAAC;AAC1D,cAAc,cAAc,CAAC","sourcesContent":["export { default as Alert, AlertProps } from './alert';\nexport { default as AnchorNavigation, AnchorNavigationProps } from './anchor-navigation';\nexport { default as AnnotationContext, AnnotationContextProps } from './annotation-context';\nexport { default as AppLayout, AppLayoutProps } from './app-layout';\nexport { default as AreaChart, AreaChartProps } from './area-chart';\nexport { default as AttributeEditor, AttributeEditorProps } from './attribute-editor';\nexport { default as Autosuggest, AutosuggestProps } from './autosuggest';\nexport { default as Badge, BadgeProps } from './badge';\nexport { default as BarChart, BarChartProps } from './bar-chart';\nexport { default as Box, BoxProps } from './box';\nexport { default as BreadcrumbGroup, BreadcrumbGroupProps } from './breadcrumb-group';\nexport { default as Button, ButtonProps } from './button';\nexport { default as ButtonDropdown, ButtonDropdownProps } from './button-dropdown';\nexport { default as Calendar, CalendarProps } from './calendar';\nexport { default as Cards, CardsProps } from './cards';\nexport { default as Checkbox, CheckboxProps } from './checkbox';\nexport { default as CodeEditor, CodeEditorProps } from './code-editor';\nexport { default as CollectionPreferences, CollectionPreferencesProps } from './collection-preferences';\nexport { default as ColumnLayout, ColumnLayoutProps } from './column-layout';\nexport { default as Container, ContainerProps } from './container';\nexport { default as ContentLayout, ContentLayoutProps } from './content-layout';\nexport { default as DateInput, DateInputProps } from './date-input';\nexport { default as DatePicker, DatePickerProps } from './date-picker';\nexport { default as DateRangePicker, DateRangePickerProps } from './date-range-picker';\nexport { default as Drawer, DrawerProps } from './drawer';\nexport { default as ExpandableSection, ExpandableSectionProps } from './expandable-section';\nexport { default as FileUpload, FileUploadProps } from './file-upload';\nexport { default as Flashbar, FlashbarProps } from './flashbar';\nexport { default as Form, FormProps } from './form';\nexport { default as FormField, FormFieldProps } from './form-field';\nexport { default as Grid, GridProps } from './grid';\nexport { default as Header, HeaderProps } from './header';\nexport { default as HelpPanel, HelpPanelProps } from './help-panel';\nexport { default as Hotspot, HotspotProps } from './hotspot';\nexport { default as Icon, IconProps } from './icon';\nexport { default as Input, InputProps } from './input';\nexport { default as LineChart, LineChartProps } from './line-chart';\nexport { default as Link, LinkProps } from './link';\nexport { default as MixedLineBarChart, MixedLineBarChartProps } from './mixed-line-bar-chart';\nexport { default as Modal, ModalProps } from './modal';\nexport { default as Multiselect, MultiselectProps } from './multiselect';\nexport { default as Pagination, PaginationProps } from './pagination';\nexport { default as PieChart, PieChartProps } from './pie-chart';\nexport { default as Popover, PopoverProps } from './popover';\nexport { default as ProgressBar, ProgressBarProps } from './progress-bar';\nexport { default as PropertyFilter, PropertyFilterProps } from './property-filter';\nexport { default as RadioGroup, RadioGroupProps } from './radio-group';\nexport { default as S3ResourceSelector, S3ResourceSelectorProps } from './s3-resource-selector';\nexport { default as SegmentedControl, SegmentedControlProps } from './segmented-control';\nexport { default as Select, SelectProps } from './select';\nexport { default as SideNavigation, SideNavigationProps } from './side-navigation';\nexport { default as SpaceBetween, SpaceBetweenProps } from './space-between';\nexport { default as Spinner, SpinnerProps } from './spinner';\nexport { default as SplitPanel, SplitPanelProps } from './split-panel';\nexport { default as StatusIndicator, StatusIndicatorProps } from './status-indicator';\nexport { default as Table, TableProps } from './table';\nexport { default as Tabs, TabsProps } from './tabs';\nexport { default as TagEditor, TagEditorProps } from './tag-editor';\nexport { default as TextContent, TextContentProps } from './text-content';\nexport { default as TextFilter, TextFilterProps } from './text-filter';\nexport { default as Textarea, TextareaProps } from './textarea';\nexport { default as Tiles, TilesProps } from './tiles';\nexport { default as TimeInput, TimeInputProps } from './time-input';\nexport { default as Toggle, ToggleProps } from './toggle';\nexport { default as TokenGroup, TokenGroupProps } from './token-group';\nexport { default as TopNavigation, TopNavigationProps } from './top-navigation';\nexport { default as TutorialPanel, TutorialPanelProps } from './tutorial-panel';\nexport { default as Wizard, WizardProps } from './wizard';\nexport * from './interfaces';\n"]}
@@ -1,4 +1,4 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (697743e8)";
2
+ export var PACKAGE_VERSION = "3.0.0 (d8db7fce)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (697743e8)",
3
+ "PACKAGE_VERSION": "3.0.0 (d8db7fce)",
4
4
  "THEME": "default",
5
5
  "ALWAYS_VISUAL_REFRESH": false
6
6
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "697743e851a78e3a7a6ffba50b806d8774d8833c"
2
+ "commit": "d8db7fce029a893b023a11e4b1e5caf78afb1d9f"
3
3
  }
package/package.json CHANGED
@@ -33,6 +33,7 @@
33
33
  "./date-input": "./date-input/index.js",
34
34
  "./date-picker": "./date-picker/index.js",
35
35
  "./date-range-picker": "./date-range-picker/index.js",
36
+ "./drawer": "./drawer/index.js",
36
37
  "./expandable-section": "./expandable-section/index.js",
37
38
  "./file-upload": "./file-upload/index.js",
38
39
  "./flashbar": "./flashbar/index.js",
@@ -112,7 +113,7 @@
112
113
  "./internal/base-component/index.js",
113
114
  "./internal/base-component/styles.css.js"
114
115
  ],
115
- "version": "3.0.426",
116
+ "version": "3.0.427",
116
117
  "repository": {
117
118
  "type": "git",
118
119
  "url": "https://github.com/cloudscape-design/components.git"
@@ -0,0 +1,6 @@
1
+ import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom';
2
+ export default class DrawerWrapper extends ComponentWrapper {
3
+ static rootSelector: string;
4
+ findHeader(): ElementWrapper | null;
5
+ findContent(): ElementWrapper | null;
6
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ const dom_1 = require("@cloudscape-design/test-utils-core/dom");
6
+ const styles_selectors_js_1 = require("../../../drawer/styles.selectors.js");
7
+ class DrawerWrapper extends dom_1.ComponentWrapper {
8
+ findHeader() {
9
+ return this.findByClassName(styles_selectors_js_1.default.header);
10
+ }
11
+ findContent() {
12
+ return this.findByClassName(styles_selectors_js_1.default['test-utils-drawer-content']);
13
+ }
14
+ }
15
+ exports.default = DrawerWrapper;
16
+ DrawerWrapper.rootSelector = styles_selectors_js_1.default.drawer;
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/drawer/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,6EAAyD;AAEzD,MAAqB,aAAc,SAAQ,sBAAgB;IAGzD,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,2BAA2B,CAAC,CAAC,CAAC;IACnE,CAAC;;AATH,gCAUC;AATQ,0BAAY,GAAW,6BAAM,CAAC,MAAM,CAAC"}
@@ -48,6 +48,8 @@ import DatePickerWrapper from './date-picker';
48
48
  export { DatePickerWrapper };
49
49
  import DateRangePickerWrapper from './date-range-picker';
50
50
  export { DateRangePickerWrapper };
51
+ import DrawerWrapper from './drawer';
52
+ export { DrawerWrapper };
51
53
  import ExpandableSectionWrapper from './expandable-section';
52
54
  export { ExpandableSectionWrapper };
53
55
  import FileUploadWrapper from './file-upload';
@@ -160,6 +162,7 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
160
162
  findDateInput(selector?: string): DateInputWrapper | null;
161
163
  findDatePicker(selector?: string): DatePickerWrapper | null;
162
164
  findDateRangePicker(selector?: string): DateRangePickerWrapper | null;
165
+ findDrawer(selector?: string): DrawerWrapper | null;
163
166
  findExpandableSection(selector?: string): ExpandableSectionWrapper | null;
164
167
  findFileUpload(selector?: string): FileUploadWrapper | null;
165
168
  findFlashbar(selector?: string): FlashbarWrapper | null;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SelectWrapper = exports.SegmentedControlWrapper = exports.S3ResourceSelectorWrapper = exports.RadioGroupWrapper = exports.PropertyFilterWrapper = exports.ProgressBarWrapper = exports.PopoverWrapper = exports.PieChartWrapper = exports.PaginationWrapper = exports.MultiselectWrapper = exports.ModalWrapper = exports.MixedLineBarChartWrapper = exports.LinkWrapper = exports.LineChartWrapper = exports.InputWrapper = exports.IconWrapper = exports.HotspotWrapper = exports.HelpPanelWrapper = exports.HeaderWrapper = exports.GridWrapper = exports.FormFieldWrapper = exports.FormWrapper = exports.FlashbarWrapper = exports.FileUploadWrapper = exports.ExpandableSectionWrapper = exports.DateRangePickerWrapper = exports.DatePickerWrapper = exports.DateInputWrapper = exports.ContentLayoutWrapper = exports.ContainerWrapper = exports.ColumnLayoutWrapper = exports.CollectionPreferencesWrapper = exports.CodeEditorWrapper = exports.CheckboxWrapper = exports.CardsWrapper = exports.CalendarWrapper = exports.ButtonDropdownWrapper = exports.ButtonWrapper = exports.BreadcrumbGroupWrapper = exports.BoxWrapper = exports.BarChartWrapper = exports.BadgeWrapper = exports.AutosuggestWrapper = exports.AttributeEditorWrapper = exports.AreaChartWrapper = exports.AppLayoutWrapper = exports.AnnotationWrapper = exports.AnchorNavigationWrapper = exports.AlertWrapper = exports.ElementWrapper = void 0;
4
- exports.WizardWrapper = exports.TutorialPanelWrapper = exports.TopNavigationWrapper = exports.TokenGroupWrapper = exports.ToggleWrapper = exports.TimeInputWrapper = exports.TilesWrapper = exports.TextareaWrapper = exports.TextFilterWrapper = exports.TextContentWrapper = exports.TagEditorWrapper = exports.TabsWrapper = exports.TableWrapper = exports.StatusIndicatorWrapper = exports.SplitPanelWrapper = exports.SpinnerWrapper = exports.SpaceBetweenWrapper = exports.SideNavigationWrapper = void 0;
3
+ exports.SegmentedControlWrapper = exports.S3ResourceSelectorWrapper = exports.RadioGroupWrapper = exports.PropertyFilterWrapper = exports.ProgressBarWrapper = exports.PopoverWrapper = exports.PieChartWrapper = exports.PaginationWrapper = exports.MultiselectWrapper = exports.ModalWrapper = exports.MixedLineBarChartWrapper = exports.LinkWrapper = exports.LineChartWrapper = exports.InputWrapper = exports.IconWrapper = exports.HotspotWrapper = exports.HelpPanelWrapper = exports.HeaderWrapper = exports.GridWrapper = exports.FormFieldWrapper = exports.FormWrapper = exports.FlashbarWrapper = exports.FileUploadWrapper = exports.ExpandableSectionWrapper = exports.DrawerWrapper = exports.DateRangePickerWrapper = exports.DatePickerWrapper = exports.DateInputWrapper = exports.ContentLayoutWrapper = exports.ContainerWrapper = exports.ColumnLayoutWrapper = exports.CollectionPreferencesWrapper = exports.CodeEditorWrapper = exports.CheckboxWrapper = exports.CardsWrapper = exports.CalendarWrapper = exports.ButtonDropdownWrapper = exports.ButtonWrapper = exports.BreadcrumbGroupWrapper = exports.BoxWrapper = exports.BarChartWrapper = exports.BadgeWrapper = exports.AutosuggestWrapper = exports.AttributeEditorWrapper = exports.AreaChartWrapper = exports.AppLayoutWrapper = exports.AnnotationWrapper = exports.AnchorNavigationWrapper = exports.AlertWrapper = exports.ElementWrapper = void 0;
4
+ exports.WizardWrapper = exports.TutorialPanelWrapper = exports.TopNavigationWrapper = exports.TokenGroupWrapper = exports.ToggleWrapper = exports.TimeInputWrapper = exports.TilesWrapper = exports.TextareaWrapper = exports.TextFilterWrapper = exports.TextContentWrapper = exports.TagEditorWrapper = exports.TabsWrapper = exports.TableWrapper = exports.StatusIndicatorWrapper = exports.SplitPanelWrapper = exports.SpinnerWrapper = exports.SpaceBetweenWrapper = exports.SideNavigationWrapper = exports.SelectWrapper = void 0;
5
5
  const dom_1 = require("@cloudscape-design/test-utils-core/dom");
6
6
  Object.defineProperty(exports, "ElementWrapper", { enumerable: true, get: function () { return dom_1.ElementWrapper; } });
7
7
  const utils_1 = require("@cloudscape-design/test-utils-core/utils");
@@ -53,6 +53,8 @@ const date_picker_1 = require("./date-picker");
53
53
  exports.DatePickerWrapper = date_picker_1.default;
54
54
  const date_range_picker_1 = require("./date-range-picker");
55
55
  exports.DateRangePickerWrapper = date_range_picker_1.default;
56
+ const drawer_1 = require("./drawer");
57
+ exports.DrawerWrapper = drawer_1.default;
56
58
  const expandable_section_1 = require("./expandable-section");
57
59
  exports.ExpandableSectionWrapper = expandable_section_1.default;
58
60
  const file_upload_1 = require("./file-upload");
@@ -283,6 +285,12 @@ dom_1.ElementWrapper.prototype.findDateRangePicker = function (selector) {
283
285
  // https://github.com/microsoft/TypeScript/issues/29132
284
286
  return this.findComponent(selector ? (0, utils_1.appendSelector)(selector, rootSelector) : rootSelector, date_range_picker_1.default);
285
287
  };
288
+ dom_1.ElementWrapper.prototype.findDrawer = function (selector) {
289
+ const rootSelector = `.${drawer_1.default.rootSelector}`;
290
+ // casting to 'any' is needed to avoid this issue with generics
291
+ // https://github.com/microsoft/TypeScript/issues/29132
292
+ return this.findComponent(selector ? (0, utils_1.appendSelector)(selector, rootSelector) : rootSelector, drawer_1.default);
293
+ };
286
294
  dom_1.ElementWrapper.prototype.findExpandableSection = function (selector) {
287
295
  const rootSelector = `.${expandable_section_1.default.rootSelector}`;
288
296
  // casting to 'any' is needed to avoid this issue with generics