@cloudscape-design/components 3.0.226 → 3.0.228

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 (47) hide show
  1. package/app-layout/{drawer.d.ts → drawer/index.d.ts} +12 -12
  2. package/app-layout/drawer/index.d.ts.map +1 -0
  3. package/app-layout/{drawer.js → drawer/index.js} +6 -7
  4. package/app-layout/drawer/index.js.map +1 -0
  5. package/app-layout/drawer/styles.css.js +10 -0
  6. package/app-layout/drawer/styles.scoped.css +139 -0
  7. package/app-layout/drawer/styles.selectors.js +11 -0
  8. package/app-layout/index.d.ts.map +1 -1
  9. package/app-layout/index.js +6 -23
  10. package/app-layout/index.js.map +1 -1
  11. package/app-layout/split-panel-drawer/index.d.ts +11 -0
  12. package/app-layout/split-panel-drawer/index.d.ts.map +1 -0
  13. package/app-layout/split-panel-drawer/index.js +10 -0
  14. package/app-layout/split-panel-drawer/index.js.map +1 -0
  15. package/app-layout/split-panel-drawer/styles.css.js +7 -0
  16. package/app-layout/split-panel-drawer/styles.scoped.css +103 -0
  17. package/app-layout/split-panel-drawer/styles.selectors.js +8 -0
  18. package/app-layout/styles.css.js +13 -26
  19. package/app-layout/styles.scoped.css +13 -100
  20. package/app-layout/styles.selectors.js +13 -26
  21. package/app-layout/toggles/index.d.ts +0 -2
  22. package/app-layout/toggles/index.d.ts.map +1 -1
  23. package/app-layout/toggles/index.js +2 -2
  24. package/app-layout/toggles/index.js.map +1 -1
  25. package/app-layout/utils/use-content-height.d.ts +0 -3
  26. package/app-layout/utils/use-content-height.d.ts.map +1 -1
  27. package/app-layout/utils/use-content-height.js +0 -3
  28. package/app-layout/utils/use-content-height.js.map +1 -1
  29. package/internal/environment.js +1 -1
  30. package/internal/events/index.d.ts +2 -1
  31. package/internal/events/index.d.ts.map +1 -1
  32. package/internal/events/index.js +4 -6
  33. package/internal/events/index.js.map +1 -1
  34. package/internal/manifest.json +1 -1
  35. package/package.json +1 -1
  36. package/tabs/tab-header-bar.js +2 -2
  37. package/tabs/tab-header-bar.js.map +1 -1
  38. package/app-layout/drawer.d.ts.map +0 -1
  39. package/app-layout/drawer.js.map +0 -1
  40. package/app-layout/navigation-panel.d.ts +0 -21
  41. package/app-layout/navigation-panel.d.ts.map +0 -1
  42. package/app-layout/navigation-panel.js +0 -16
  43. package/app-layout/navigation-panel.js.map +0 -1
  44. package/app-layout/tools-and-split-panel.d.ts +0 -23
  45. package/app-layout/tools-and-split-panel.d.ts.map +0 -1
  46. package/app-layout/tools-and-split-panel.js +0 -20
  47. package/app-layout/tools-and-split-panel.js.map +0 -1
@@ -0,0 +1,103 @@
1
+ /*
2
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ /*
6
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
7
+ SPDX-License-Identifier: Apache-2.0
8
+ */
9
+ /*
10
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
11
+ SPDX-License-Identifier: Apache-2.0
12
+ */
13
+ /*
14
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
15
+ SPDX-License-Identifier: Apache-2.0
16
+ */
17
+ /*
18
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
19
+ SPDX-License-Identifier: Apache-2.0
20
+ */
21
+ /*
22
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
23
+ SPDX-License-Identifier: Apache-2.0
24
+ */
25
+ /*
26
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
27
+ SPDX-License-Identifier: Apache-2.0
28
+ */
29
+ /*
30
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
31
+ SPDX-License-Identifier: Apache-2.0
32
+ */
33
+ /*
34
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
35
+ SPDX-License-Identifier: Apache-2.0
36
+ */
37
+ /*
38
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
39
+ SPDX-License-Identifier: Apache-2.0
40
+ */
41
+ /*
42
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
43
+ SPDX-License-Identifier: Apache-2.0
44
+ */
45
+ /*
46
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
47
+ SPDX-License-Identifier: Apache-2.0
48
+ */
49
+ /*
50
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
51
+ SPDX-License-Identifier: Apache-2.0
52
+ */
53
+ /*
54
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
55
+ SPDX-License-Identifier: Apache-2.0
56
+ */
57
+ /*
58
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
59
+ SPDX-License-Identifier: Apache-2.0
60
+ */
61
+ /*
62
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
63
+ SPDX-License-Identifier: Apache-2.0
64
+ */
65
+ /* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
66
+ /* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
67
+ /*
68
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
69
+ SPDX-License-Identifier: Apache-2.0
70
+ */
71
+ /*
72
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
73
+ SPDX-License-Identifier: Apache-2.0
74
+ */
75
+ /*
76
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
77
+ SPDX-License-Identifier: Apache-2.0
78
+ */
79
+ /*
80
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
81
+ SPDX-License-Identifier: Apache-2.0
82
+ */
83
+ /* Style used for links in slots/components that are text heavy, to help links stand out among
84
+ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
85
+ /*
86
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
87
+ SPDX-License-Identifier: Apache-2.0
88
+ */
89
+ /*
90
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
+ SPDX-License-Identifier: Apache-2.0
92
+ */
93
+ /*
94
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
95
+ SPDX-License-Identifier: Apache-2.0
96
+ */
97
+ .awsui_drawer-displayed_glvdu_475ep_97:not(#\9) {
98
+ min-width: 40px;
99
+ }
100
+
101
+ .awsui_drawer-content_glvdu_475ep_101:not(#\9) {
102
+ position: fixed;
103
+ }
@@ -0,0 +1,8 @@
1
+
2
+ // es-module interop with Babel and Typescript
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ module.exports.default = {
5
+ "drawer-displayed": "awsui_drawer-displayed_glvdu_475ep_97",
6
+ "drawer-content": "awsui_drawer-content_glvdu_475ep_101"
7
+ };
8
+
@@ -1,31 +1,18 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_lm6vo_1c4iu_97",
5
- "layout-wrapper": "awsui_layout-wrapper_lm6vo_1c4iu_98",
6
- "root-no-scroll": "awsui_root-no-scroll_lm6vo_1c4iu_105",
7
- "layout": "awsui_layout_lm6vo_1c4iu_98",
8
- "layout-no-scroll": "awsui_layout-no-scroll_lm6vo_1c4iu_116",
9
- "layout-main": "awsui_layout-main_lm6vo_1c4iu_120",
10
- "layout-main-scrollable": "awsui_layout-main-scrollable_lm6vo_1c4iu_126",
11
- "unfocusable": "awsui_unfocusable_lm6vo_1c4iu_131",
12
- "navigation-panel": "awsui_navigation-panel_lm6vo_1c4iu_135",
13
- "drawer": "awsui_drawer_lm6vo_1c4iu_139",
14
- "drawer-mobile": "awsui_drawer-mobile_lm6vo_1c4iu_145",
15
- "drawer-closed": "awsui_drawer-closed_lm6vo_1c4iu_148",
16
- "drawer-content": "awsui_drawer-content_lm6vo_1c4iu_156",
17
- "toggle": "awsui_toggle_lm6vo_1c4iu_178",
18
- "visual-refresh-toggle": "awsui_visual-refresh-toggle_lm6vo_1c4iu_183",
19
- "visual-refresh-toggle-type-tools": "awsui_visual-refresh-toggle-type-tools_lm6vo_1c4iu_187",
20
- "visual-refresh-toggle-type-navigation": "awsui_visual-refresh-toggle-type-navigation_lm6vo_1c4iu_190",
21
- "breadcrumbs-desktop": "awsui_breadcrumbs-desktop_lm6vo_1c4iu_200",
22
- "content-header-wrapper": "awsui_content-header-wrapper_lm6vo_1c4iu_205",
23
- "content-wrapper": "awsui_content-wrapper_lm6vo_1c4iu_209",
24
- "content-overlapped": "awsui_content-overlapped_lm6vo_1c4iu_213",
25
- "content-extra-top-padding": "awsui_content-extra-top-padding_lm6vo_1c4iu_217",
26
- "panel-wrapper-outer": "awsui_panel-wrapper-outer_lm6vo_1c4iu_221",
27
- "mobile": "awsui_mobile_lm6vo_1c4iu_227",
28
- "open": "awsui_open_lm6vo_1c4iu_233",
29
- "panel-wrapper-inner": "awsui_panel-wrapper-inner_lm6vo_1c4iu_239"
4
+ "root": "awsui_root_lm6vo_1rqvf_97",
5
+ "layout-wrapper": "awsui_layout-wrapper_lm6vo_1rqvf_98",
6
+ "root-no-scroll": "awsui_root-no-scroll_lm6vo_1rqvf_105",
7
+ "layout": "awsui_layout_lm6vo_1rqvf_98",
8
+ "layout-no-scroll": "awsui_layout-no-scroll_lm6vo_1rqvf_116",
9
+ "layout-main": "awsui_layout-main_lm6vo_1rqvf_120",
10
+ "layout-main-scrollable": "awsui_layout-main-scrollable_lm6vo_1rqvf_126",
11
+ "unfocusable": "awsui_unfocusable_lm6vo_1rqvf_131",
12
+ "breadcrumbs-desktop": "awsui_breadcrumbs-desktop_lm6vo_1rqvf_135",
13
+ "content-header-wrapper": "awsui_content-header-wrapper_lm6vo_1rqvf_140",
14
+ "content-wrapper": "awsui_content-wrapper_lm6vo_1rqvf_144",
15
+ "content-overlapped": "awsui_content-overlapped_lm6vo_1rqvf_148",
16
+ "content-extra-top-padding": "awsui_content-extra-top-padding_lm6vo_1rqvf_152"
30
17
  };
31
18
 
@@ -94,148 +94,61 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
94
94
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
95
95
  SPDX-License-Identifier: Apache-2.0
96
96
  */
97
- .awsui_root_lm6vo_1c4iu_97:not(#\9),
98
- .awsui_layout-wrapper_lm6vo_1c4iu_98:not(#\9) {
97
+ .awsui_root_lm6vo_1rqvf_97:not(#\9),
98
+ .awsui_layout-wrapper_lm6vo_1rqvf_98:not(#\9) {
99
99
  display: flex;
100
100
  flex-direction: column;
101
101
  position: relative;
102
102
  color: var(--color-text-body-default-ajf1h5, #000716);
103
103
  }
104
104
 
105
- .awsui_root-no-scroll_lm6vo_1c4iu_105:not(#\9) {
105
+ .awsui_root-no-scroll_lm6vo_1rqvf_105:not(#\9) {
106
106
  position: relative;
107
107
  z-index: 1;
108
108
  }
109
109
 
110
- .awsui_layout_lm6vo_1c4iu_98:not(#\9) {
110
+ .awsui_layout_lm6vo_1rqvf_98:not(#\9) {
111
111
  flex: 1 1 auto;
112
112
  display: flex;
113
113
  align-items: stretch;
114
114
  background-color: var(--color-background-layout-main-sfhm4y, #ffffff);
115
115
  }
116
- .awsui_layout-no-scroll_lm6vo_1c4iu_116:not(#\9) {
116
+ .awsui_layout-no-scroll_lm6vo_1rqvf_116:not(#\9) {
117
117
  overflow: hidden;
118
118
  }
119
119
 
120
- .awsui_layout-main_lm6vo_1c4iu_120:not(#\9) {
120
+ .awsui_layout-main_lm6vo_1rqvf_120:not(#\9) {
121
121
  flex: 1;
122
122
  min-width: 0;
123
123
  background-color: var(--color-background-layout-main-sfhm4y, #ffffff);
124
124
  position: relative;
125
125
  }
126
- .awsui_layout-main-scrollable_lm6vo_1c4iu_126:not(#\9) {
126
+ .awsui_layout-main-scrollable_lm6vo_1rqvf_126:not(#\9) {
127
127
  overflow: auto;
128
128
  }
129
129
 
130
130
  /* stylelint-disable-next-line selector-combinator-disallowed-list, selector-max-universal */
131
- .awsui_unfocusable_lm6vo_1c4iu_131 *:not(#\9) {
131
+ .awsui_unfocusable_lm6vo_1rqvf_131 *:not(#\9) {
132
132
  visibility: hidden;
133
133
  }
134
134
 
135
- .awsui_navigation-panel_lm6vo_1c4iu_135:not(#\9) {
136
- overflow-anchor: none;
137
- }
138
-
139
- .awsui_drawer_lm6vo_1c4iu_139:not(#\9) {
140
- flex-shrink: 0;
141
- position: relative;
142
- word-wrap: break-word;
143
- box-shadow: var(--shadow-panel-gp3bf2, 0px 1px 1px 1px #e9ebed, 0px 6px 36px rgba(0, 7, 22, 0.1));
144
- }
145
- .awsui_drawer_lm6vo_1c4iu_139:not(#\9):not(.awsui_drawer-mobile_lm6vo_1c4iu_145) {
146
- z-index: 830;
147
- }
148
- .awsui_drawer-closed_lm6vo_1c4iu_148:not(#\9) {
149
- min-width: 40px;
150
- cursor: pointer;
151
- }
152
- .awsui_drawer-closed_lm6vo_1c4iu_148.awsui_drawer-mobile_lm6vo_1c4iu_145:not(#\9) {
153
- display: none;
154
- }
155
-
156
- .awsui_drawer-content_lm6vo_1c4iu_156:not(#\9) {
157
- position: fixed;
158
- overflow: auto;
159
- background-color: var(--color-background-layout-panel-content-808qum, #ffffff);
160
- }
161
- .awsui_drawer-mobile_lm6vo_1c4iu_145 > .awsui_drawer-content_lm6vo_1c4iu_156:not(#\9) {
162
- z-index: 1001;
163
- top: 0;
164
- bottom: 0;
165
- left: 0;
166
- right: 0;
167
- }
168
- .awsui_drawer-closed_lm6vo_1c4iu_148 > .awsui_drawer-content_lm6vo_1c4iu_156:not(#\9) {
169
- width: 40px;
170
- }
171
- .awsui_drawer-closed_lm6vo_1c4iu_148 > .awsui_drawer-content_lm6vo_1c4iu_156:not(#\9):hover {
172
- background: var(--color-background-layout-panel-hover-0bg3gq, #e9ebed);
173
- }
174
- .awsui_drawer-content_lm6vo_1c4iu_156 > [aria-hidden=true]:not(#\9) {
175
- display: none;
176
- }
177
-
178
- .awsui_toggle_lm6vo_1c4iu_178:not(#\9) {
179
- box-sizing: border-box;
180
- padding: var(--space-xxs-ynfts5, 4px) 7px;
181
- }
182
-
183
- .awsui_visual-refresh-toggle_lm6vo_1c4iu_183:not(#\9) {
184
- position: fixed;
185
- padding: var(--space-scaled-s-cu1hzn, 12px) var(--space-layout-toggle-padding-axl9jr, 20px);
186
- }
187
- .awsui_visual-refresh-toggle-type-tools_lm6vo_1c4iu_187:not(#\9) {
188
- right: 0;
189
- }
190
- .awsui_visual-refresh-toggle-type-navigation_lm6vo_1c4iu_190:not(#\9) {
191
- left: 0;
192
- }
193
- .awsui_visual-refresh-toggle_lm6vo_1c4iu_183[aria-hidden=true]:not(#\9) {
194
- visibility: hidden;
195
- }
196
- .awsui_visual-refresh-toggle_lm6vo_1c4iu_183[aria-hidden=false]:not(#\9) {
197
- visibility: visible;
198
- }
199
-
200
- .awsui_breadcrumbs-desktop_lm6vo_1c4iu_200:not(#\9) {
135
+ .awsui_breadcrumbs-desktop_lm6vo_1rqvf_135:not(#\9) {
201
136
  padding-top: var(--space-scaled-m-pv0fmt, 16px);
202
137
  padding-bottom: var(--space-scaled-s-cu1hzn, 12px);
203
138
  }
204
139
 
205
- .awsui_content-header-wrapper_lm6vo_1c4iu_205:not(#\9) {
140
+ .awsui_content-header-wrapper_lm6vo_1rqvf_140:not(#\9) {
206
141
  padding-bottom: var(--space-content-header-padding-bottom-nvqytg, 24px);
207
142
  }
208
143
 
209
- .awsui_content-wrapper_lm6vo_1c4iu_209:not(#\9) {
144
+ .awsui_content-wrapper_lm6vo_1rqvf_144:not(#\9) {
210
145
  padding-bottom: var(--space-layout-content-bottom-kg9l42, 40px);
211
146
  }
212
147
 
213
- .awsui_content-overlapped_lm6vo_1c4iu_213:not(#\9) {
148
+ .awsui_content-overlapped_lm6vo_1rqvf_148:not(#\9) {
214
149
  margin-top: calc(-1 * var(--space-dark-header-overlap-distance-hfejul, 36px));
215
150
  }
216
151
 
217
- .awsui_content-extra-top-padding_lm6vo_1c4iu_217:not(#\9) {
152
+ .awsui_content-extra-top-padding_lm6vo_1rqvf_152:not(#\9) {
218
153
  padding-top: var(--space-scaled-m-pv0fmt, 16px);
219
- }
220
-
221
- .awsui_panel-wrapper-outer_lm6vo_1c4iu_221:not(#\9) {
222
- position: fixed;
223
- height: 100%;
224
- z-index: 830;
225
- display: flex;
226
- }
227
- .awsui_panel-wrapper-outer_lm6vo_1c4iu_221.awsui_mobile_lm6vo_1c4iu_227:not(#\9) {
228
- left: 0;
229
- right: 0;
230
- z-index: -1;
231
- pointer-events: none;
232
- }
233
- .awsui_panel-wrapper-outer_lm6vo_1c4iu_221.awsui_mobile_lm6vo_1c4iu_227.awsui_open_lm6vo_1c4iu_233:not(#\9) {
234
- z-index: 1001;
235
- width: 100vw;
236
- pointer-events: auto;
237
- }
238
-
239
- .awsui_panel-wrapper-inner_lm6vo_1c4iu_239:not(#\9) {
240
- background: var(--color-background-layout-panel-content-808qum, #ffffff);
241
154
  }
@@ -2,31 +2,18 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_lm6vo_1c4iu_97",
6
- "layout-wrapper": "awsui_layout-wrapper_lm6vo_1c4iu_98",
7
- "root-no-scroll": "awsui_root-no-scroll_lm6vo_1c4iu_105",
8
- "layout": "awsui_layout_lm6vo_1c4iu_98",
9
- "layout-no-scroll": "awsui_layout-no-scroll_lm6vo_1c4iu_116",
10
- "layout-main": "awsui_layout-main_lm6vo_1c4iu_120",
11
- "layout-main-scrollable": "awsui_layout-main-scrollable_lm6vo_1c4iu_126",
12
- "unfocusable": "awsui_unfocusable_lm6vo_1c4iu_131",
13
- "navigation-panel": "awsui_navigation-panel_lm6vo_1c4iu_135",
14
- "drawer": "awsui_drawer_lm6vo_1c4iu_139",
15
- "drawer-mobile": "awsui_drawer-mobile_lm6vo_1c4iu_145",
16
- "drawer-closed": "awsui_drawer-closed_lm6vo_1c4iu_148",
17
- "drawer-content": "awsui_drawer-content_lm6vo_1c4iu_156",
18
- "toggle": "awsui_toggle_lm6vo_1c4iu_178",
19
- "visual-refresh-toggle": "awsui_visual-refresh-toggle_lm6vo_1c4iu_183",
20
- "visual-refresh-toggle-type-tools": "awsui_visual-refresh-toggle-type-tools_lm6vo_1c4iu_187",
21
- "visual-refresh-toggle-type-navigation": "awsui_visual-refresh-toggle-type-navigation_lm6vo_1c4iu_190",
22
- "breadcrumbs-desktop": "awsui_breadcrumbs-desktop_lm6vo_1c4iu_200",
23
- "content-header-wrapper": "awsui_content-header-wrapper_lm6vo_1c4iu_205",
24
- "content-wrapper": "awsui_content-wrapper_lm6vo_1c4iu_209",
25
- "content-overlapped": "awsui_content-overlapped_lm6vo_1c4iu_213",
26
- "content-extra-top-padding": "awsui_content-extra-top-padding_lm6vo_1c4iu_217",
27
- "panel-wrapper-outer": "awsui_panel-wrapper-outer_lm6vo_1c4iu_221",
28
- "mobile": "awsui_mobile_lm6vo_1c4iu_227",
29
- "open": "awsui_open_lm6vo_1c4iu_233",
30
- "panel-wrapper-inner": "awsui_panel-wrapper-inner_lm6vo_1c4iu_239"
5
+ "root": "awsui_root_lm6vo_1rqvf_97",
6
+ "layout-wrapper": "awsui_layout-wrapper_lm6vo_1rqvf_98",
7
+ "root-no-scroll": "awsui_root-no-scroll_lm6vo_1rqvf_105",
8
+ "layout": "awsui_layout_lm6vo_1rqvf_98",
9
+ "layout-no-scroll": "awsui_layout-no-scroll_lm6vo_1rqvf_116",
10
+ "layout-main": "awsui_layout-main_lm6vo_1rqvf_120",
11
+ "layout-main-scrollable": "awsui_layout-main-scrollable_lm6vo_1rqvf_126",
12
+ "unfocusable": "awsui_unfocusable_lm6vo_1rqvf_131",
13
+ "breadcrumbs-desktop": "awsui_breadcrumbs-desktop_lm6vo_1rqvf_135",
14
+ "content-header-wrapper": "awsui_content-header-wrapper_lm6vo_1rqvf_140",
15
+ "content-wrapper": "awsui_content-wrapper_lm6vo_1rqvf_144",
16
+ "content-overlapped": "awsui_content-overlapped_lm6vo_1rqvf_148",
17
+ "content-extra-top-padding": "awsui_content-extra-top-padding_lm6vo_1rqvf_152"
31
18
  };
32
19
 
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ButtonProps } from '../../button/interfaces';
3
- import { IconProps } from '../../icon/interfaces';
4
3
  import { AppLayoutProps } from '../interfaces';
5
4
  import { AppLayoutButtonProps } from './interfaces';
6
5
  export declare const togglesConfig: {
@@ -28,7 +27,6 @@ interface CloseButtonProps {
28
27
  className?: string;
29
28
  ariaLabel: string | undefined;
30
29
  onClick: () => void;
31
- iconName: IconProps.Name;
32
30
  }
33
31
  export declare const CloseButton: React.ForwardRefExoticComponent<CloseButtonProps & React.RefAttributes<ButtonProps.Ref>>;
34
32
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/toggles/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAGpD,eAAO,MAAM,aAAa;;;;sCAIF,eAAe,MAAM;;;;;;;;;sCASrB,eAAe,MAAM;;;;;;CAMnC,CAAC;AAEX,eAAO,MAAM,eAAe,8FAoB3B,CAAC;AAEF,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,0FAevB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/toggles/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAGpD,eAAO,MAAM,aAAa;;;;sCAIF,eAAe,MAAM;;;;;;;;;sCASrB,eAAe,MAAM;;;;;;CAMnC,CAAC;AAEX,eAAO,MAAM,eAAe,8FAoB3B,CAAC;AAEF,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,WAAW,0FAevB,CAAC"}
@@ -26,8 +26,8 @@ export const togglesConfig = {
26
26
  export const AppLayoutButton = React.forwardRef(({ className, ariaLabel, ariaExpanded, iconName, disabled, onClick }, ref) => {
27
27
  return (React.createElement(InternalButton, { ref: ref, className: className, ariaLabel: ariaLabel, variant: "icon", formAction: "none", onClick: onClick, iconName: iconName, disabled: disabled, ariaExpanded: ariaExpanded ? undefined : false, __nativeAttributes: { 'aria-haspopup': ariaExpanded ? undefined : true } }));
28
28
  });
29
- export const CloseButton = React.forwardRef(({ className, ariaLabel, onClick, iconName }, ref) => {
29
+ export const CloseButton = React.forwardRef(({ className, ariaLabel, onClick }, ref) => {
30
30
  return (React.createElement("span", { className: styles['close-button'] },
31
- React.createElement(AppLayoutButton, { ref: ref, className: className, ariaExpanded: true, ariaLabel: ariaLabel, iconName: iconName, onClick: onClick })));
31
+ React.createElement(AppLayoutButton, { ref: ref, className: className, ariaExpanded: true, ariaLabel: ariaLabel, iconName: "close", onClick: onClick })));
32
32
  });
33
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../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kB,EAAE,EAAE,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,GACxE,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AASF,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CACzC,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAoB,EAAE,GAA+B,EAAE,EAAE;IACjG,OAAO,CACL,8BAAM,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC;QACrC,oBAAC,eAAe,IACd,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,IAAI,EAClB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GAChB,CACG,CACR,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { ButtonProps } from '../../button/interfaces';\nimport { IconProps } from '../../icon/interfaces';\nimport { InternalButton } from '../../button/internal';\nimport { AppLayoutProps } from '../interfaces';\nimport { AppLayoutButtonProps } from './interfaces';\nimport styles from './styles.css.js';\n\nexport const togglesConfig = {\n navigation: {\n TagName: 'nav',\n iconName: 'menu',\n getLabels: (labels: AppLayoutProps.Labels = {}) => ({\n mainLabel: labels.navigation,\n openLabel: labels.navigationToggle,\n closeLabel: labels.navigationClose,\n }),\n },\n tools: {\n TagName: 'aside',\n iconName: 'status-info',\n getLabels: (labels: AppLayoutProps.Labels = {}) => ({\n mainLabel: labels.tools,\n openLabel: labels.toolsToggle,\n closeLabel: labels.toolsClose,\n }),\n },\n} as const;\n\nexport const AppLayoutButton = React.forwardRef(\n (\n { className, ariaLabel, ariaExpanded, iconName, disabled, onClick }: AppLayoutButtonProps,\n ref: React.Ref<ButtonProps.Ref>\n ) => {\n return (\n <InternalButton\n ref={ref}\n className={className}\n ariaLabel={ariaLabel}\n variant=\"icon\"\n formAction=\"none\"\n onClick={onClick}\n iconName={iconName}\n disabled={disabled}\n ariaExpanded={ariaExpanded ? undefined : false}\n __nativeAttributes={{ 'aria-haspopup': ariaExpanded ? undefined : true }}\n />\n );\n }\n);\n\ninterface CloseButtonProps {\n className?: string;\n ariaLabel: string | undefined;\n onClick: () => void;\n iconName: IconProps.Name;\n}\n\nexport const CloseButton = React.forwardRef(\n ({ className, ariaLabel, onClick, iconName }: CloseButtonProps, ref: React.Ref<ButtonProps.Ref>) => {\n return (\n <span className={styles['close-button']}>\n <AppLayoutButton\n ref={ref}\n className={className}\n ariaExpanded={true}\n ariaLabel={ariaLabel}\n iconName={iconName}\n onClick={onClick}\n />\n </span>\n );\n }\n);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app-layout/toggles/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,UAAU,EAAE;QACV,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,CAAC,SAAgC,EAAE,EAAE,EAAE,CAAC,CAAC;YAClD,SAAS,EAAE,MAAM,CAAC,UAAU;YAC5B,SAAS,EAAE,MAAM,CAAC,gBAAgB;YAClC,UAAU,EAAE,MAAM,CAAC,eAAe;SACnC,CAAC;KACH;IACD,KAAK,EAAE;QACL,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,aAAa;QACvB,SAAS,EAAE,CAAC,SAAgC,EAAE,EAAE,EAAE,CAAC,CAAC;YAClD,SAAS,EAAE,MAAM,CAAC,KAAK;YACvB,SAAS,EAAE,MAAM,CAAC,WAAW;YAC7B,UAAU,EAAE,MAAM,CAAC,UAAU;SAC9B,CAAC;KACH;CACO,CAAC;AAEX,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAC7C,CACE,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAwB,EACzF,GAA+B,EAC/B,EAAE;IACF,OAAO,CACL,oBAAC,cAAc,IACb,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAC,MAAM,EACd,UAAU,EAAC,MAAM,EACjB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,EAC9C,kBAAkB,EAAE,EAAE,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,GACxE,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAQF,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CACzC,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAoB,EAAE,GAA+B,EAAE,EAAE;IACvF,OAAO,CACL,8BAAM,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC;QACrC,oBAAC,eAAe,IACd,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,IAAI,EAClB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAC,OAAO,EAChB,OAAO,EAAE,OAAO,GAChB,CACG,CACR,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { ButtonProps } from '../../button/interfaces';\nimport { InternalButton } from '../../button/internal';\nimport { AppLayoutProps } from '../interfaces';\nimport { AppLayoutButtonProps } from './interfaces';\nimport styles from './styles.css.js';\n\nexport const togglesConfig = {\n navigation: {\n TagName: 'nav',\n iconName: 'menu',\n getLabels: (labels: AppLayoutProps.Labels = {}) => ({\n mainLabel: labels.navigation,\n openLabel: labels.navigationToggle,\n closeLabel: labels.navigationClose,\n }),\n },\n tools: {\n TagName: 'aside',\n iconName: 'status-info',\n getLabels: (labels: AppLayoutProps.Labels = {}) => ({\n mainLabel: labels.tools,\n openLabel: labels.toolsToggle,\n closeLabel: labels.toolsClose,\n }),\n },\n} as const;\n\nexport const AppLayoutButton = React.forwardRef(\n (\n { className, ariaLabel, ariaExpanded, iconName, disabled, onClick }: AppLayoutButtonProps,\n ref: React.Ref<ButtonProps.Ref>\n ) => {\n return (\n <InternalButton\n ref={ref}\n className={className}\n ariaLabel={ariaLabel}\n variant=\"icon\"\n formAction=\"none\"\n onClick={onClick}\n iconName={iconName}\n disabled={disabled}\n ariaExpanded={ariaExpanded ? undefined : false}\n __nativeAttributes={{ 'aria-haspopup': ariaExpanded ? undefined : true }}\n />\n );\n }\n);\n\ninterface CloseButtonProps {\n className?: string;\n ariaLabel: string | undefined;\n onClick: () => void;\n}\n\nexport const CloseButton = React.forwardRef(\n ({ className, ariaLabel, onClick }: CloseButtonProps, ref: React.Ref<ButtonProps.Ref>) => {\n return (\n <span className={styles['close-button']}>\n <AppLayoutButton\n ref={ref}\n className={className}\n ariaExpanded={true}\n ariaLabel={ariaLabel}\n iconName=\"close\"\n onClick={onClick}\n />\n </span>\n );\n }\n);\n"]}
@@ -4,8 +4,5 @@ export default function useContentHeight(headerSelector: string, footerSelector:
4
4
  contentHeightStyle: {
5
5
  [x: string]: string;
6
6
  };
7
- panelHeightStyle: {
8
- height: string;
9
- };
10
7
  };
11
8
  //# sourceMappingURL=use-content-height.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-content-height.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/utils/use-content-height.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,OAAO;;;;;;;;;EAyBnH"}
1
+ {"version":3,"file":"use-content-height.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/utils/use-content-height.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,OAAO;;;;;;EAsBnH"}
@@ -20,9 +20,6 @@ export default function useContentHeight(headerSelector, footerSelector, disable
20
20
  contentHeightStyle: {
21
21
  [disableBodyScroll ? 'height' : 'minHeight']: heightStyleValue,
22
22
  },
23
- panelHeightStyle: {
24
- height: heightStyleValue,
25
- },
26
23
  };
27
24
  }
28
25
  //# sourceMappingURL=use-content-height.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-content-height.js","sourceRoot":"","sources":["../../../../src/app-layout/utils/use-content-height.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,cAAsB,EAAE,cAAsB,EAAE,iBAA2B;IAClH,MAAM,YAAY,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC;IACxD,MAAM,YAAY,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC;IACxD,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEhE,yFAAyF;IACzF,+FAA+F;IAC/F,yEAAyE;IACzE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,EAAE,GAAG,qBAAqB,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,YAAY,GAAG,YAAY,CAAC,CAAC,CAAC;QAC3F,OAAO,GAAG,EAAE,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACxC,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC;IAEjC,MAAM,gBAAgB,GAAG,gBAAgB,kBAAkB,KAAK,CAAC;IAEjE,OAAO;QACL,YAAY;QACZ,YAAY;QACZ,kBAAkB,EAAE;YAClB,CAAC,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,gBAAgB;SAC/D;QACD,gBAAgB,EAAE;YAChB,MAAM,EAAE,gBAAgB;SACzB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useEffect, useState } from 'react';\nimport { useObservedElement } from './use-observed-element';\n\nexport default function useContentHeight(headerSelector: string, footerSelector: string, disableBodyScroll?: boolean) {\n const headerHeight = useObservedElement(headerSelector);\n const footerHeight = useObservedElement(footerSelector);\n const [headerFooterHeight, setHeaderFooterHeight] = useState(0);\n\n // Delay applying changes in header/footer height, as applying them immediately can cause\n // ResizeOberver warnings due to the algorithm thinking that the change might have side-effects\n // further up the tree, therefore blocking notifications to prevent loops\n useEffect(() => {\n const id = requestAnimationFrame(() => setHeaderFooterHeight(headerHeight + footerHeight));\n return () => cancelAnimationFrame(id);\n }, [headerHeight, footerHeight]);\n\n const heightStyleValue = `calc(100vh - ${headerFooterHeight}px)`;\n\n return {\n headerHeight,\n footerHeight,\n contentHeightStyle: {\n [disableBodyScroll ? 'height' : 'minHeight']: heightStyleValue,\n },\n panelHeightStyle: {\n height: heightStyleValue,\n },\n };\n}\n"]}
1
+ {"version":3,"file":"use-content-height.js","sourceRoot":"","sources":["../../../../src/app-layout/utils/use-content-height.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,cAAsB,EAAE,cAAsB,EAAE,iBAA2B;IAClH,MAAM,YAAY,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC;IACxD,MAAM,YAAY,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC;IACxD,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEhE,yFAAyF;IACzF,+FAA+F;IAC/F,yEAAyE;IACzE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,EAAE,GAAG,qBAAqB,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,YAAY,GAAG,YAAY,CAAC,CAAC,CAAC;QAC3F,OAAO,GAAG,EAAE,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACxC,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC;IAEjC,MAAM,gBAAgB,GAAG,gBAAgB,kBAAkB,KAAK,CAAC;IAEjE,OAAO;QACL,YAAY;QACZ,YAAY;QACZ,kBAAkB,EAAE;YAClB,CAAC,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,gBAAgB;SAC/D;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useEffect, useState } from 'react';\nimport { useObservedElement } from './use-observed-element';\n\nexport default function useContentHeight(headerSelector: string, footerSelector: string, disableBodyScroll?: boolean) {\n const headerHeight = useObservedElement(headerSelector);\n const footerHeight = useObservedElement(footerSelector);\n const [headerFooterHeight, setHeaderFooterHeight] = useState(0);\n\n // Delay applying changes in header/footer height, as applying them immediately can cause\n // ResizeOberver warnings due to the algorithm thinking that the change might have side-effects\n // further up the tree, therefore blocking notifications to prevent loops\n useEffect(() => {\n const id = requestAnimationFrame(() => setHeaderFooterHeight(headerHeight + footerHeight));\n return () => cancelAnimationFrame(id);\n }, [headerHeight, footerHeight]);\n\n const heightStyleValue = `calc(100vh - ${headerFooterHeight}px)`;\n\n return {\n headerHeight,\n footerHeight,\n contentHeightStyle: {\n [disableBodyScroll ? 'height' : 'minHeight']: heightStyleValue,\n },\n };\n}\n"]}
@@ -1,6 +1,6 @@
1
1
 
2
2
  export var PACKAGE_SOURCE = 'components';
3
- export var PACKAGE_VERSION = '3.0.0 (6de927f)';
3
+ export var PACKAGE_VERSION = '3.0.0 (425aff2)';
4
4
  export var THEME = 'open-source-visual-refresh';
5
5
  export var ALWAYS_VISUAL_REFRESH = true;
6
6
 
@@ -26,5 +26,6 @@ export declare function createCustomEvent<T>({ cancelable, detail }: CustomEvent
26
26
  export declare function fireNonCancelableEvent<T = null>(handler: NonCancelableEventHandler<T> | undefined, detail?: T): void;
27
27
  export declare function fireCancelableEvent<T>(handler: CancelableEventHandler<T> | undefined, detail: T, sourceEvent?: React.SyntheticEvent | Event): boolean;
28
28
  export declare function fireKeyboardEvent(handler: CancelableEventHandler<BaseKeyDetail>, reactEvent: React.KeyboardEvent): boolean;
29
- export declare function isPlainLeftClick(event?: React.MouseEvent | React.KeyboardEvent): boolean | undefined;
29
+ export declare function hasModifierKeys(event: React.MouseEvent | React.KeyboardEvent): boolean;
30
+ export declare function isPlainLeftClick(event: React.MouseEvent | React.KeyboardEvent): boolean;
30
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/internal/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,yBAAyB,CAAC,MAAM,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,wBAAwB,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;AAEvG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AAE,UAAU,EAAE,MAAM,EAAE,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAE/F;AAED,wBAAgB,sBAAsB,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,MAAM,CAAC,EAAE,CAAC,QAM7G;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,SAAS,EAC9C,MAAM,EAAE,CAAC,EACT,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,KAAK,WAc3C;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,sBAAsB,CAAC,aAAa,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,aAAa,WAahH;AAMD,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,WAE5E;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,WAE7E"}
@@ -49,12 +49,10 @@ export function fireKeyboardEvent(handler, reactEvent) {
49
49
  const isMouseEvent = (e) => {
50
50
  return e.button !== undefined;
51
51
  };
52
+ export function hasModifierKeys(event) {
53
+ return event.ctrlKey || event.altKey || event.shiftKey || event.metaKey;
54
+ }
52
55
  export function isPlainLeftClick(event) {
53
- return (event &&
54
- (!isMouseEvent(event) || event.button === 0) &&
55
- !event.ctrlKey &&
56
- !event.altKey &&
57
- !event.shiftKey &&
58
- !event.metaKey);
56
+ return event && (!isMouseEvent(event) || event.button === 0) && !hasModifierKeys(event);
59
57
  }
60
58
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/internal/events/index.ts"],"names":[],"mappings":"AAYA,MAAM,eAAe;IAGnB,YAAmB,aAAsB,KAAK,EAAS,SAAmB,I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AO,EACP;QACE,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,GAAG,EAAE,UAAU,CAAC,GAAG;QACnB,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,OAAO,EAAE,UAAU,CAAC,OAAO;KAC5B,EACD,UAAU,CACX,CAAC;AACJ,CAAC;AAED,MAAM,YAAY,GAAG,CAAC,CAAyC,EAAyB,EAAE;IACxF,OAAQ,CAAsB,CAAC,MAAM,KAAK,SAAS,CAAC;AACtD,CAAC,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAAC,KAA8C;IAC7E,OAAO,CACL,KAAK;QACL,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;QAC5C,CAAC,KAAK,CAAC,OAAO;QACd,CAAC,KAAK,CAAC,MAAM;QACb,CAAC,KAAK,CAAC,QAAQ;QACf,CAAC,KAAK,CAAC,OAAO,CACf,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\n// This is a part of our public types API. We cannot change this in the current major version\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport type NonCancelableEventHandler<Detail = {}> = (event: NonCancelableCustomEvent<Detail>) => void;\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport type CancelableEventHandler<Detail = {}> = (event: CustomEvent<Detail>) => void;\n\nexport type NonCancelableCustomEvent<DetailType> = Omit<CustomEvent<DetailType>, 'preventDefault'>;\n\nclass CustomEventStub<T> {\n defaultPrevented = false;\n cancelBubble = false;\n constructor(public cancelable: boolean = false, public detail: T | null = null) {}\n\n preventDefault() {\n this.defaultPrevented = true;\n }\n\n stopPropagation() {\n this.cancelBubble = true;\n }\n}\n\nexport interface BaseKeyDetail {\n keyCode: number;\n key: string;\n ctrlKey: boolean;\n shiftKey: boolean;\n altKey: boolean;\n metaKey: boolean;\n}\n\nexport interface ClickDetail {\n button: number;\n ctrlKey: boolean;\n shiftKey: boolean;\n altKey: boolean;\n metaKey: boolean;\n}\n\nexport interface BaseNavigationDetail {\n href: string | undefined;\n external?: boolean;\n target?: string;\n}\n\nexport function createCustomEvent<T>({ cancelable, detail }: CustomEventInit<T>): CustomEvent<T> {\n return new CustomEventStub(cancelable, detail) as CustomEvent;\n}\n\nexport function fireNonCancelableEvent<T = null>(handler: NonCancelableEventHandler<T> | undefined, detail?: T) {\n if (!handler) {\n return;\n }\n const event = createCustomEvent({ cancelable: false, detail });\n handler(event);\n}\n\nexport function fireCancelableEvent<T>(\n handler: CancelableEventHandler<T> | undefined,\n detail: T,\n sourceEvent?: React.SyntheticEvent | Event\n) {\n if (!handler) {\n return false;\n }\n const event = createCustomEvent({ cancelable: true, detail });\n handler(event);\n if (event.defaultPrevented && sourceEvent) {\n sourceEvent.preventDefault();\n }\n if (event.cancelBubble && sourceEvent) {\n sourceEvent.stopPropagation();\n }\n return event.defaultPrevented;\n}\n\nexport function fireKeyboardEvent(handler: CancelableEventHandler<BaseKeyDetail>, reactEvent: React.KeyboardEvent) {\n return fireCancelableEvent(\n handler,\n {\n keyCode: reactEvent.keyCode,\n key: reactEvent.key,\n ctrlKey: reactEvent.ctrlKey,\n shiftKey: reactEvent.shiftKey,\n altKey: reactEvent.altKey,\n metaKey: reactEvent.metaKey,\n },\n reactEvent\n );\n}\n\nconst isMouseEvent = (e: React.MouseEvent | React.KeyboardEvent): e is React.MouseEvent => {\n return (e as React.MouseEvent).button !== undefined;\n};\n\nexport function isPlainLeftClick(event?: React.MouseEvent | React.KeyboardEvent) {\n return (\n event &&\n (!isMouseEvent(event) || event.button === 0) &&\n !event.ctrlKey &&\n !event.altKey &&\n !event.shiftKey &&\n !event.metaKey\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/internal/events/index.ts"],"names":[],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U,iBAAiB,CAAC,OAA8C,EAAE,UAA+B;IAC/G,OAAO,mBAAmB,CACxB,OAAO,EACP;QACE,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,GAAG,EAAE,UAAU,CAAC,GAAG;QACnB,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,OAAO,EAAE,UAAU,CAAC,OAAO;KAC5B,EACD,UAAU,CACX,CAAC;AACJ,CAAC;AAED,MAAM,YAAY,GAAG,CAAC,CAAyC,EAAyB,EAAE;IACxF,OAAQ,CAAsB,CAAC,MAAM,KAAK,SAAS,CAAC;AACtD,CAAC,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,KAA6C;IAC3E,OAAO,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAA6C;IAC5E,OAAO,KAAK,IAAI,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AAC1F,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\n// This is a part of our public types API. We cannot change this in the current major version\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport type NonCancelableEventHandler<Detail = {}> = (event: NonCancelableCustomEvent<Detail>) => void;\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport type CancelableEventHandler<Detail = {}> = (event: CustomEvent<Detail>) => void;\n\nexport type NonCancelableCustomEvent<DetailType> = Omit<CustomEvent<DetailType>, 'preventDefault'>;\n\nclass CustomEventStub<T> {\n defaultPrevented = false;\n cancelBubble = false;\n constructor(public cancelable: boolean = false, public detail: T | null = null) {}\n\n preventDefault() {\n this.defaultPrevented = true;\n }\n\n stopPropagation() {\n this.cancelBubble = true;\n }\n}\n\nexport interface BaseKeyDetail {\n keyCode: number;\n key: string;\n ctrlKey: boolean;\n shiftKey: boolean;\n altKey: boolean;\n metaKey: boolean;\n}\n\nexport interface ClickDetail {\n button: number;\n ctrlKey: boolean;\n shiftKey: boolean;\n altKey: boolean;\n metaKey: boolean;\n}\n\nexport interface BaseNavigationDetail {\n href: string | undefined;\n external?: boolean;\n target?: string;\n}\n\nexport function createCustomEvent<T>({ cancelable, detail }: CustomEventInit<T>): CustomEvent<T> {\n return new CustomEventStub(cancelable, detail) as CustomEvent;\n}\n\nexport function fireNonCancelableEvent<T = null>(handler: NonCancelableEventHandler<T> | undefined, detail?: T) {\n if (!handler) {\n return;\n }\n const event = createCustomEvent({ cancelable: false, detail });\n handler(event);\n}\n\nexport function fireCancelableEvent<T>(\n handler: CancelableEventHandler<T> | undefined,\n detail: T,\n sourceEvent?: React.SyntheticEvent | Event\n) {\n if (!handler) {\n return false;\n }\n const event = createCustomEvent({ cancelable: true, detail });\n handler(event);\n if (event.defaultPrevented && sourceEvent) {\n sourceEvent.preventDefault();\n }\n if (event.cancelBubble && sourceEvent) {\n sourceEvent.stopPropagation();\n }\n return event.defaultPrevented;\n}\n\nexport function fireKeyboardEvent(handler: CancelableEventHandler<BaseKeyDetail>, reactEvent: React.KeyboardEvent) {\n return fireCancelableEvent(\n handler,\n {\n keyCode: reactEvent.keyCode,\n key: reactEvent.key,\n ctrlKey: reactEvent.ctrlKey,\n shiftKey: reactEvent.shiftKey,\n altKey: reactEvent.altKey,\n metaKey: reactEvent.metaKey,\n },\n reactEvent\n );\n}\n\nconst isMouseEvent = (e: React.MouseEvent | React.KeyboardEvent): e is React.MouseEvent => {\n return (e as React.MouseEvent).button !== undefined;\n};\n\nexport function hasModifierKeys(event: React.MouseEvent | React.KeyboardEvent) {\n return event.ctrlKey || event.altKey || event.shiftKey || event.metaKey;\n}\n\nexport function isPlainLeftClick(event: React.MouseEvent | React.KeyboardEvent) {\n return event && (!isMouseEvent(event) || event.button === 0) && !hasModifierKeys(event);\n}\n"]}
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "6de927f78e524459e39ff9d62867d35d0182a6dc"
2
+ "commit": "425aff2e638ede57b85aff3606d7840961b9f3af"
3
3
  }
package/package.json CHANGED
@@ -81,7 +81,7 @@
81
81
  "./internal/base-component/index.js",
82
82
  "./internal/base-component/styles.css.js"
83
83
  ],
84
- "version": "3.0.226",
84
+ "version": "3.0.228",
85
85
  "repository": {
86
86
  "type": "git",
87
87
  "url": "https://github.com/cloudscape-design/components.git"
@@ -8,7 +8,7 @@ import useFocusVisible from '../internal/hooks/focus-visible';
8
8
  import { useContainerQuery } from '../internal/hooks/container-queries';
9
9
  import { KeyCode } from '../internal/keycode';
10
10
  import { onPaginationClick, hasHorizontalOverflow, hasLeftOverflow, hasRightOverflow, scrollIntoView, } from './scroll-utils';
11
- import { isPlainLeftClick } from '../internal/events';
11
+ import { hasModifierKeys, isPlainLeftClick } from '../internal/events';
12
12
  import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
13
13
  export function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace, ariaLabel, ariaLabelledby, i18nStrings, }) {
14
14
  const focusVisible = useFocusVisible();
@@ -104,7 +104,7 @@ export function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace
104
104
  const handleKeyDown = function (event) {
105
105
  const { keyCode } = event;
106
106
  const specialKeys = [KeyCode.right, KeyCode.left, KeyCode.end, KeyCode.home, KeyCode.pageUp, KeyCode.pageDown];
107
- if (specialKeys.indexOf(keyCode) === -1) {
107
+ if (hasModifierKeys(event) || specialKeys.indexOf(keyCode) === -1) {
108
108
  return;
109
109
  }
110
110
  event.preventDefault();