@cloudscape-design/components 3.0.783 → 3.0.785
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.
- package/app-layout/visual-refresh-toolbar/notifications/index.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/notifications/index.js +6 -4
- package/app-layout/visual-refresh-toolbar/notifications/index.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/notifications/styles.css.js +3 -2
- package/app-layout/visual-refresh-toolbar/notifications/styles.scoped.css +6 -2
- package/app-layout/visual-refresh-toolbar/notifications/styles.selectors.js +3 -2
- package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +19 -19
- package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +37 -40
- package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +19 -19
- package/collection-preferences/content-display/content-display-option.d.ts +2 -2
- package/collection-preferences/content-display/content-display-option.d.ts.map +1 -1
- package/collection-preferences/content-display/content-display-option.js.map +1 -1
- package/internal/components/drag-handle/index.d.ts +1 -2
- package/internal/components/drag-handle/index.d.ts.map +1 -1
- package/internal/components/drag-handle/index.js.map +1 -1
- package/internal/components/dropdown/index.js +1 -1
- package/internal/components/dropdown/index.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/multiselect/styles.css.js +3 -3
- package/multiselect/styles.scoped.css +4 -6
- package/multiselect/styles.selectors.js +3 -3
- package/package.json +1 -1
- package/property-filter/property-editor.d.ts.map +1 -1
- package/property-filter/property-editor.js +4 -2
- package/property-filter/property-editor.js.map +1 -1
- package/property-filter/styles.css.js +35 -36
- package/property-filter/styles.scoped.css +37 -40
- package/property-filter/styles.selectors.js +35 -36
- package/property-filter/test-classes/styles.css.js +18 -16
- package/property-filter/test-classes/styles.scoped.css +24 -16
- package/property-filter/test-classes/styles.selectors.js +18 -16
- package/property-filter/token-editor-inputs.js +1 -1
- package/property-filter/token-editor-inputs.js.map +1 -1
- package/test-utils/dom/property-filter/index.d.ts +18 -0
- package/test-utils/dom/property-filter/index.js +18 -0
- package/test-utils/dom/property-filter/index.js.map +1 -1
- package/test-utils/selectors/property-filter/index.d.ts +18 -0
- package/test-utils/selectors/property-filter/index.js +22 -0
- package/test-utils/selectors/property-filter/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app-layout/visual-refresh-toolbar/notifications/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app-layout/visual-refresh-toolbar/notifications/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAQjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAMnD,UAAU,yCAAyC;IACjD,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,oCAAoC,CAAC,EACnD,kBAAkB,EAClB,QAAQ,GACT,EAAE,yCAAyC,eAmC3C;AAED,eAAO,MAAM,sCAAsC,mHAAkE,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import React, { useEffect, useRef } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
+
import { useContainerQuery } from '@cloudscape-design/component-toolkit';
|
|
5
6
|
import { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';
|
|
6
7
|
import { highContrastHeaderClassName } from '../../../internal/utils/content-header-utils';
|
|
7
8
|
import { createWidgetizedComponent } from '../../../internal/widgets';
|
|
@@ -10,8 +11,9 @@ import testutilStyles from '../../test-classes/styles.css.js';
|
|
|
10
11
|
import styles from './styles.css.js';
|
|
11
12
|
export function AppLayoutNotificationsImplementation({ appLayoutInternals, children, }) {
|
|
12
13
|
const { ariaLabels, stickyNotifications, setNotificationsHeight, verticalOffsets } = appLayoutInternals;
|
|
13
|
-
const
|
|
14
|
-
|
|
14
|
+
const [hasNotificationsContent, contentRef] = useContainerQuery(rect => rect.borderBoxHeight > 0);
|
|
15
|
+
const rootRef = useRef(null);
|
|
16
|
+
useResizeObserver(rootRef, entry => setNotificationsHeight(entry.borderBoxHeight));
|
|
15
17
|
useEffect(() => {
|
|
16
18
|
return () => {
|
|
17
19
|
setNotificationsHeight(0);
|
|
@@ -19,10 +21,10 @@ export function AppLayoutNotificationsImplementation({ appLayoutInternals, child
|
|
|
19
21
|
// unmount effect only
|
|
20
22
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
21
23
|
}, []);
|
|
22
|
-
return (React.createElement(NotificationsSlot, { ref:
|
|
24
|
+
return (React.createElement(NotificationsSlot, { ref: rootRef, className: clsx(appLayoutInternals.headerVariant === 'high-contrast' && highContrastHeaderClassName, stickyNotifications && styles['sticky-notifications'], hasNotificationsContent && styles['has-notifications-content'], appLayoutInternals.headerVariant !== 'high-contrast' && styles['sticky-notifications-with-background']), style: {
|
|
23
25
|
insetBlockStart: stickyNotifications ? verticalOffsets.notifications : undefined,
|
|
24
26
|
} },
|
|
25
|
-
React.createElement("div", { className: testutilStyles.notifications, role: "region", "aria-label": ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.notifications }, children)));
|
|
27
|
+
React.createElement("div", { ref: contentRef, className: testutilStyles.notifications, role: "region", "aria-label": ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.notifications }, children)));
|
|
26
28
|
}
|
|
27
29
|
export const createWidgetizedAppLayoutNotifications = createWidgetizedComponent(AppLayoutNotificationsImplementation);
|
|
28
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/app-layout/visual-refresh-toolbar/notifications/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAC9D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAOrC,MAAM,UAAU,oCAAoC,CAAC,EACnD,kBAAkB,EAClB,QAAQ,GACkC;IAC1C,MAAM,EAAE,UAAU,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,eAAe,EAAE,GAAG,kBAAkB,CAAC;IACxG,MAAM,GAAG,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/app-layout/visual-refresh-toolbar/notifications/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAC9D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAOrC,MAAM,UAAU,oCAAoC,CAAC,EACnD,kBAAkB,EAClB,QAAQ,GACkC;IAC1C,MAAM,EAAE,UAAU,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,eAAe,EAAE,GAAG,kBAAkB,CAAC;IACxG,MAAM,CAAC,uBAAuB,EAAE,UAAU,CAAC,GAAG,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAClG,MAAM,OAAO,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC7C,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;IACnF,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,GAAG,EAAE;YACV,sBAAsB,CAAC,CAAC,CAAC,CAAC;QAC5B,CAAC,CAAC;QACF,sBAAsB;QACtB,uDAAuD;IACzD,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,CACL,oBAAC,iBAAiB,IAChB,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,IAAI,CACb,kBAAkB,CAAC,aAAa,KAAK,eAAe,IAAI,2BAA2B,EACnF,mBAAmB,IAAI,MAAM,CAAC,sBAAsB,CAAC,EACrD,uBAAuB,IAAI,MAAM,CAAC,2BAA2B,CAAC,EAC9D,kBAAkB,CAAC,aAAa,KAAK,eAAe,IAAI,MAAM,CAAC,sCAAsC,CAAC,CACvG,EACD,KAAK,EAAE;YACL,eAAe,EAAE,mBAAmB,CAAC,CAAC,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS;SACjF;QAED,6BACE,GAAG,EAAE,UAAU,EACf,SAAS,EAAE,cAAc,CAAC,aAAa,EACvC,IAAI,EAAC,QAAQ,gBACD,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,aAAa,IAEpC,QAAQ,CACL,CACY,CACrB,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,sCAAsC,GAAG,yBAAyB,CAAC,oCAAoC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\nimport { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';\n\nimport { highContrastHeaderClassName } from '../../../internal/utils/content-header-utils';\nimport { createWidgetizedComponent } from '../../../internal/widgets';\nimport { AppLayoutInternals } from '../interfaces';\nimport { NotificationsSlot } from '../skeleton/slot-wrappers';\n\nimport testutilStyles from '../../test-classes/styles.css.js';\nimport styles from './styles.css.js';\n\ninterface AppLayoutNotificationsImplementationProps {\n appLayoutInternals: AppLayoutInternals;\n children: React.ReactNode;\n}\n\nexport function AppLayoutNotificationsImplementation({\n appLayoutInternals,\n children,\n}: AppLayoutNotificationsImplementationProps) {\n const { ariaLabels, stickyNotifications, setNotificationsHeight, verticalOffsets } = appLayoutInternals;\n const [hasNotificationsContent, contentRef] = useContainerQuery(rect => rect.borderBoxHeight > 0);\n const rootRef = useRef<HTMLDivElement>(null);\n useResizeObserver(rootRef, entry => setNotificationsHeight(entry.borderBoxHeight));\n useEffect(() => {\n return () => {\n setNotificationsHeight(0);\n };\n // unmount effect only\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n return (\n <NotificationsSlot\n ref={rootRef}\n className={clsx(\n appLayoutInternals.headerVariant === 'high-contrast' && highContrastHeaderClassName,\n stickyNotifications && styles['sticky-notifications'],\n hasNotificationsContent && styles['has-notifications-content'],\n appLayoutInternals.headerVariant !== 'high-contrast' && styles['sticky-notifications-with-background']\n )}\n style={{\n insetBlockStart: stickyNotifications ? verticalOffsets.notifications : undefined,\n }}\n >\n <div\n ref={contentRef}\n className={testutilStyles.notifications}\n role=\"region\"\n aria-label={ariaLabels?.notifications}\n >\n {children}\n </div>\n </NotificationsSlot>\n );\n}\n\nexport const createWidgetizedAppLayoutNotifications = createWidgetizedComponent(AppLayoutNotificationsImplementation);\n"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"sticky-notifications": "awsui_sticky-
|
|
5
|
-
"sticky-notifications-with-background": "awsui_sticky-notifications-with-
|
|
4
|
+
"sticky-notifications": "awsui_sticky-notifications_154bi_4ef3v_9",
|
|
5
|
+
"sticky-notifications-with-background": "awsui_sticky-notifications-with-background_154bi_4ef3v_13",
|
|
6
|
+
"has-notifications-content": "awsui_has-notifications-content_154bi_4ef3v_17"
|
|
6
7
|
};
|
|
7
8
|
|
|
@@ -6,10 +6,14 @@
|
|
|
6
6
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
7
7
|
SPDX-License-Identifier: Apache-2.0
|
|
8
8
|
*/
|
|
9
|
-
.awsui_sticky-
|
|
9
|
+
.awsui_sticky-notifications_154bi_4ef3v_9:not(#\9) {
|
|
10
10
|
position: sticky;
|
|
11
11
|
z-index: 850;
|
|
12
12
|
}
|
|
13
|
-
.awsui_sticky-notifications-with-
|
|
13
|
+
.awsui_sticky-notifications-with-background_154bi_4ef3v_13:not(#\9) {
|
|
14
14
|
background-color: var(--color-background-layout-main-nqw91u, #ffffff);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.awsui_has-notifications-content_154bi_4ef3v_17:not(#\9) {
|
|
18
|
+
padding-block-start: var(--space-scaled-xs-26e2du, 8px);
|
|
15
19
|
}
|
|
@@ -2,7 +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
|
-
"sticky-notifications": "awsui_sticky-
|
|
6
|
-
"sticky-notifications-with-background": "awsui_sticky-notifications-with-
|
|
5
|
+
"sticky-notifications": "awsui_sticky-notifications_154bi_4ef3v_9",
|
|
6
|
+
"sticky-notifications-with-background": "awsui_sticky-notifications-with-background_154bi_4ef3v_13",
|
|
7
|
+
"has-notifications-content": "awsui_has-notifications-content_154bi_4ef3v_17"
|
|
7
8
|
};
|
|
8
9
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"has-adaptive-widths-default": "awsui_has-adaptive-widths-
|
|
6
|
-
"has-adaptive-widths-dashboard": "awsui_has-adaptive-widths-
|
|
7
|
-
"navigation": "
|
|
8
|
-
"tools": "
|
|
9
|
-
"global-tools": "awsui_global-
|
|
10
|
-
"tools-open": "awsui_tools-
|
|
11
|
-
"split-panel-side": "awsui_split-panel-
|
|
12
|
-
"split-panel-bottom": "awsui_split-panel-
|
|
13
|
-
"panel-hidden": "awsui_panel-
|
|
14
|
-
"toolbar-container": "awsui_toolbar-
|
|
15
|
-
"notifications-container": "awsui_notifications-
|
|
16
|
-
"notifications-background": "awsui_notifications-
|
|
17
|
-
"main-landmark": "awsui_main-
|
|
18
|
-
"main": "
|
|
19
|
-
"main-disable-paddings": "awsui_main-disable-
|
|
20
|
-
"content-header": "awsui_content-
|
|
21
|
-
"content": "
|
|
22
|
-
"unfocusable-mobile": "awsui_unfocusable-
|
|
4
|
+
"root": "awsui_root_7nfqu_5fcq5_149",
|
|
5
|
+
"has-adaptive-widths-default": "awsui_has-adaptive-widths-default_7nfqu_5fcq5_198",
|
|
6
|
+
"has-adaptive-widths-dashboard": "awsui_has-adaptive-widths-dashboard_7nfqu_5fcq5_213",
|
|
7
|
+
"navigation": "awsui_navigation_7nfqu_5fcq5_228",
|
|
8
|
+
"tools": "awsui_tools_7nfqu_5fcq5_229",
|
|
9
|
+
"global-tools": "awsui_global-tools_7nfqu_5fcq5_230",
|
|
10
|
+
"tools-open": "awsui_tools-open_7nfqu_5fcq5_268",
|
|
11
|
+
"split-panel-side": "awsui_split-panel-side_7nfqu_5fcq5_281",
|
|
12
|
+
"split-panel-bottom": "awsui_split-panel-bottom_7nfqu_5fcq5_288",
|
|
13
|
+
"panel-hidden": "awsui_panel-hidden_7nfqu_5fcq5_301",
|
|
14
|
+
"toolbar-container": "awsui_toolbar-container_7nfqu_5fcq5_311",
|
|
15
|
+
"notifications-container": "awsui_notifications-container_7nfqu_5fcq5_317",
|
|
16
|
+
"notifications-background": "awsui_notifications-background_7nfqu_5fcq5_321",
|
|
17
|
+
"main-landmark": "awsui_main-landmark_7nfqu_5fcq5_332",
|
|
18
|
+
"main": "awsui_main_7nfqu_5fcq5_332",
|
|
19
|
+
"main-disable-paddings": "awsui_main-disable-paddings_7nfqu_5fcq5_341",
|
|
20
|
+
"content-header": "awsui_content-header_7nfqu_5fcq5_351",
|
|
21
|
+
"content": "awsui_content_7nfqu_5fcq5_351",
|
|
22
|
+
"unfocusable-mobile": "awsui_unfocusable-mobile_7nfqu_5fcq5_361"
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -146,7 +146,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
146
146
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
147
147
|
SPDX-License-Identifier: Apache-2.0
|
|
148
148
|
*/
|
|
149
|
-
.
|
|
149
|
+
.awsui_root_7nfqu_5fcq5_149:not(#\9) {
|
|
150
150
|
border-collapse: separate;
|
|
151
151
|
border-spacing: 0;
|
|
152
152
|
box-sizing: border-box;
|
|
@@ -189,104 +189,104 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
189
189
|
grid-template-rows: min-content min-content 1fr;
|
|
190
190
|
}
|
|
191
191
|
@media (min-width: 689px) {
|
|
192
|
-
.
|
|
192
|
+
.awsui_root_7nfqu_5fcq5_149:not(#\9) {
|
|
193
193
|
grid-template-areas: "toolbar toolbar toolbar toolbar toolbar toolbar toolbar" "navigation . notifications . sideSplitPanel tools global-tools" "navigation . main . sideSplitPanel tools global-tools";
|
|
194
194
|
grid-template-columns: min-content minmax(var(--space-layout-content-horizontal-7l52k3, 24px), 1fr) minmax(0, var(--awsui-max-content-width-g964ok)) minmax(var(--space-layout-content-horizontal-7l52k3, 24px), 1fr) min-content min-content;
|
|
195
195
|
grid-template-rows: min-content min-content 1fr min-content;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
@media (min-width: 689px) and (min-width: 1401px) {
|
|
199
|
-
.
|
|
199
|
+
.awsui_root_7nfqu_5fcq5_149.awsui_has-adaptive-widths-default_7nfqu_5fcq5_198:not(#\9) {
|
|
200
200
|
--awsui-max-content-width-g964ok: 1280px;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
@media (min-width: 689px) and (min-width: 1921px) {
|
|
204
|
-
.
|
|
204
|
+
.awsui_root_7nfqu_5fcq5_149.awsui_has-adaptive-widths-default_7nfqu_5fcq5_198:not(#\9) {
|
|
205
205
|
--awsui-max-content-width-g964ok: 1440px;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
@media (min-width: 689px) and (min-width: 2541px) {
|
|
209
|
-
.
|
|
209
|
+
.awsui_root_7nfqu_5fcq5_149.awsui_has-adaptive-widths-default_7nfqu_5fcq5_198:not(#\9) {
|
|
210
210
|
--awsui-max-content-width-g964ok: 1620px;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
@media (min-width: 689px) and (min-width: 1401px) {
|
|
214
|
-
.
|
|
214
|
+
.awsui_root_7nfqu_5fcq5_149.awsui_has-adaptive-widths-dashboard_7nfqu_5fcq5_213:not(#\9) {
|
|
215
215
|
--awsui-max-content-width-g964ok: 1280px;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
@media (min-width: 689px) and (min-width: 1921px) {
|
|
219
|
-
.
|
|
219
|
+
.awsui_root_7nfqu_5fcq5_149.awsui_has-adaptive-widths-dashboard_7nfqu_5fcq5_213:not(#\9) {
|
|
220
220
|
--awsui-max-content-width-g964ok: 1620px;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
@media (min-width: 689px) and (min-width: 2541px) {
|
|
224
|
-
.
|
|
224
|
+
.awsui_root_7nfqu_5fcq5_149.awsui_has-adaptive-widths-dashboard_7nfqu_5fcq5_213:not(#\9) {
|
|
225
225
|
--awsui-max-content-width-g964ok: 2160px;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
.
|
|
230
|
-
.
|
|
231
|
-
.awsui_global-
|
|
229
|
+
.awsui_navigation_7nfqu_5fcq5_228:not(#\9),
|
|
230
|
+
.awsui_tools_7nfqu_5fcq5_229:not(#\9),
|
|
231
|
+
.awsui_global-tools_7nfqu_5fcq5_230:not(#\9) {
|
|
232
232
|
grid-row: 1/-1;
|
|
233
233
|
grid-column: 1/-1;
|
|
234
234
|
background: var(--color-background-container-content-z79u4u, #ffffff);
|
|
235
235
|
opacity: 1;
|
|
236
236
|
}
|
|
237
237
|
@media (max-width: 688px) {
|
|
238
|
-
.
|
|
239
|
-
.
|
|
240
|
-
.awsui_global-
|
|
238
|
+
.awsui_navigation_7nfqu_5fcq5_228:not(#\9),
|
|
239
|
+
.awsui_tools_7nfqu_5fcq5_229:not(#\9),
|
|
240
|
+
.awsui_global-tools_7nfqu_5fcq5_230:not(#\9) {
|
|
241
241
|
inline-size: 100%;
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
.
|
|
245
|
+
.awsui_navigation_7nfqu_5fcq5_228:not(#\9) {
|
|
246
246
|
z-index: 830;
|
|
247
247
|
}
|
|
248
248
|
@media (min-width: 689px) {
|
|
249
|
-
.
|
|
249
|
+
.awsui_navigation_7nfqu_5fcq5_228:not(#\9) {
|
|
250
250
|
grid-area: navigation;
|
|
251
251
|
inline-size: var(--awsui-navigation-width-g964ok);
|
|
252
252
|
border-inline-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-layout-hrw5xj, #b4b4bb);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
@media (max-width: 688px) {
|
|
256
|
-
.
|
|
256
|
+
.awsui_navigation_7nfqu_5fcq5_228:not(#\9) {
|
|
257
257
|
z-index: 1001;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
@media (min-width: 689px) {
|
|
262
|
-
.
|
|
262
|
+
.awsui_tools_7nfqu_5fcq5_229:not(#\9) {
|
|
263
263
|
grid-area: tools;
|
|
264
264
|
/* stylelint-disable plugin/no-unsupported-browser-features */
|
|
265
265
|
}
|
|
266
|
-
.
|
|
266
|
+
.awsui_tools_7nfqu_5fcq5_229:not(#\9):not(:has(> [data-testid])) {
|
|
267
267
|
inline-size: var(--awsui-tools-width-g964ok);
|
|
268
268
|
}
|
|
269
|
-
.
|
|
269
|
+
.awsui_tools_7nfqu_5fcq5_229:not(#\9):not(:has(> [data-testid])).awsui_tools-open_7nfqu_5fcq5_268 {
|
|
270
270
|
border-inline-start: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-layout-hrw5xj, #b4b4bb);
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
@media (min-width: 689px) {
|
|
275
|
-
.awsui_global-
|
|
275
|
+
.awsui_global-tools_7nfqu_5fcq5_230:not(#\9) {
|
|
276
276
|
display: flex;
|
|
277
277
|
grid-area: global-tools;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
@media (min-width: 689px) {
|
|
282
|
-
.awsui_split-panel-
|
|
282
|
+
.awsui_split-panel-side_7nfqu_5fcq5_281:not(#\9) {
|
|
283
283
|
grid-area: sideSplitPanel;
|
|
284
284
|
border-inline-start: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-layout-hrw5xj, #b4b4bb);
|
|
285
285
|
opacity: 1;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
.awsui_split-panel-
|
|
289
|
+
.awsui_split-panel-bottom_7nfqu_5fcq5_288:not(#\9) {
|
|
290
290
|
position: sticky;
|
|
291
291
|
z-index: 840;
|
|
292
292
|
align-self: end;
|
|
@@ -294,75 +294,72 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
294
294
|
grid-column: 1/-1;
|
|
295
295
|
}
|
|
296
296
|
@media (min-width: 689px) {
|
|
297
|
-
.awsui_split-panel-
|
|
297
|
+
.awsui_split-panel-bottom_7nfqu_5fcq5_288:not(#\9) {
|
|
298
298
|
grid-column: 2/span 4;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
.awsui_panel-
|
|
302
|
+
.awsui_panel-hidden_7nfqu_5fcq5_301:not(#\9) {
|
|
303
303
|
border-block: none;
|
|
304
304
|
border-inline: none;
|
|
305
305
|
opacity: 0;
|
|
306
306
|
z-index: 0;
|
|
307
307
|
}
|
|
308
|
-
.awsui_panel-
|
|
308
|
+
.awsui_panel-hidden_7nfqu_5fcq5_301.awsui_navigation_7nfqu_5fcq5_228:not(#\9), .awsui_panel-hidden_7nfqu_5fcq5_301.awsui_tools_7nfqu_5fcq5_229:not(#\9), .awsui_panel-hidden_7nfqu_5fcq5_301.awsui_global-tools_7nfqu_5fcq5_230:not(#\9) {
|
|
309
309
|
inline-size: 0px;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
.awsui_toolbar-
|
|
312
|
+
.awsui_toolbar-container_7nfqu_5fcq5_311:not(#\9) {
|
|
313
313
|
grid-area: toolbar;
|
|
314
314
|
block-size: 42px;
|
|
315
315
|
border-block-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-layout-hrw5xj, #b4b4bb);
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
.awsui_notifications-
|
|
318
|
+
.awsui_notifications-container_7nfqu_5fcq5_317:not(#\9) {
|
|
319
319
|
grid-area: notifications;
|
|
320
320
|
}
|
|
321
|
-
.awsui_notifications-container_7nfqu_1qdqo_317:not(#\9):not(:empty) {
|
|
322
|
-
padding-block-start: var(--space-scaled-xs-26e2du, 8px);
|
|
323
|
-
}
|
|
324
321
|
|
|
325
|
-
.awsui_notifications-
|
|
322
|
+
.awsui_notifications-background_7nfqu_5fcq5_321:not(#\9) {
|
|
326
323
|
background: var(--color-background-layout-main-nqw91u, #ffffff);
|
|
327
324
|
grid-area: notifications;
|
|
328
325
|
grid-column: 1/-1;
|
|
329
326
|
}
|
|
330
327
|
@media (min-width: 689px) {
|
|
331
|
-
.awsui_notifications-
|
|
328
|
+
.awsui_notifications-background_7nfqu_5fcq5_321:not(#\9) {
|
|
332
329
|
grid-column: 2/span 4;
|
|
333
330
|
}
|
|
334
331
|
}
|
|
335
332
|
|
|
336
|
-
.awsui_main-
|
|
333
|
+
.awsui_main-landmark_7nfqu_5fcq5_332:not(#\9) {
|
|
337
334
|
display: contents;
|
|
338
335
|
}
|
|
339
336
|
|
|
340
|
-
.
|
|
337
|
+
.awsui_main_7nfqu_5fcq5_332:not(#\9) {
|
|
341
338
|
grid-area: main;
|
|
342
339
|
margin-block-start: var(--space-scaled-s-aqzyko, 12px);
|
|
343
340
|
margin-block-end: var(--space-layout-content-bottom-noqzmw, 40px);
|
|
344
341
|
}
|
|
345
|
-
.awsui_main-disable-
|
|
342
|
+
.awsui_main-disable-paddings_7nfqu_5fcq5_341:not(#\9) {
|
|
346
343
|
margin-block: 0;
|
|
347
344
|
grid-column: 1/-1;
|
|
348
345
|
}
|
|
349
346
|
@media (min-width: 689px) {
|
|
350
|
-
.awsui_main-disable-
|
|
347
|
+
.awsui_main-disable-paddings_7nfqu_5fcq5_341:not(#\9) {
|
|
351
348
|
grid-column: 2/span 4;
|
|
352
349
|
}
|
|
353
350
|
}
|
|
354
351
|
|
|
355
|
-
.awsui_content-
|
|
352
|
+
.awsui_content-header_7nfqu_5fcq5_351:not(#\9) {
|
|
356
353
|
margin-block-end: var(--space-content-header-padding-bottom-y2enua, 16px);
|
|
357
354
|
}
|
|
358
355
|
|
|
359
|
-
.
|
|
356
|
+
.awsui_content_7nfqu_5fcq5_351:not(#\9) {
|
|
360
357
|
display: contents;
|
|
361
358
|
}
|
|
362
359
|
|
|
363
360
|
/* stylelint-disable-next-line selector-combinator-disallowed-list, selector-max-universal */
|
|
364
361
|
@media (max-width: 688px) {
|
|
365
|
-
.awsui_unfocusable-
|
|
362
|
+
.awsui_unfocusable-mobile_7nfqu_5fcq5_361 *:not(#\9) {
|
|
366
363
|
visibility: hidden;
|
|
367
364
|
}
|
|
368
365
|
}
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"has-adaptive-widths-default": "awsui_has-adaptive-widths-
|
|
7
|
-
"has-adaptive-widths-dashboard": "awsui_has-adaptive-widths-
|
|
8
|
-
"navigation": "
|
|
9
|
-
"tools": "
|
|
10
|
-
"global-tools": "awsui_global-
|
|
11
|
-
"tools-open": "awsui_tools-
|
|
12
|
-
"split-panel-side": "awsui_split-panel-
|
|
13
|
-
"split-panel-bottom": "awsui_split-panel-
|
|
14
|
-
"panel-hidden": "awsui_panel-
|
|
15
|
-
"toolbar-container": "awsui_toolbar-
|
|
16
|
-
"notifications-container": "awsui_notifications-
|
|
17
|
-
"notifications-background": "awsui_notifications-
|
|
18
|
-
"main-landmark": "awsui_main-
|
|
19
|
-
"main": "
|
|
20
|
-
"main-disable-paddings": "awsui_main-disable-
|
|
21
|
-
"content-header": "awsui_content-
|
|
22
|
-
"content": "
|
|
23
|
-
"unfocusable-mobile": "awsui_unfocusable-
|
|
5
|
+
"root": "awsui_root_7nfqu_5fcq5_149",
|
|
6
|
+
"has-adaptive-widths-default": "awsui_has-adaptive-widths-default_7nfqu_5fcq5_198",
|
|
7
|
+
"has-adaptive-widths-dashboard": "awsui_has-adaptive-widths-dashboard_7nfqu_5fcq5_213",
|
|
8
|
+
"navigation": "awsui_navigation_7nfqu_5fcq5_228",
|
|
9
|
+
"tools": "awsui_tools_7nfqu_5fcq5_229",
|
|
10
|
+
"global-tools": "awsui_global-tools_7nfqu_5fcq5_230",
|
|
11
|
+
"tools-open": "awsui_tools-open_7nfqu_5fcq5_268",
|
|
12
|
+
"split-panel-side": "awsui_split-panel-side_7nfqu_5fcq5_281",
|
|
13
|
+
"split-panel-bottom": "awsui_split-panel-bottom_7nfqu_5fcq5_288",
|
|
14
|
+
"panel-hidden": "awsui_panel-hidden_7nfqu_5fcq5_301",
|
|
15
|
+
"toolbar-container": "awsui_toolbar-container_7nfqu_5fcq5_311",
|
|
16
|
+
"notifications-container": "awsui_notifications-container_7nfqu_5fcq5_317",
|
|
17
|
+
"notifications-background": "awsui_notifications-background_7nfqu_5fcq5_321",
|
|
18
|
+
"main-landmark": "awsui_main-landmark_7nfqu_5fcq5_332",
|
|
19
|
+
"main": "awsui_main_7nfqu_5fcq5_332",
|
|
20
|
+
"main-disable-paddings": "awsui_main-disable-paddings_7nfqu_5fcq5_341",
|
|
21
|
+
"content-header": "awsui_content-header_7nfqu_5fcq5_351",
|
|
22
|
+
"content": "awsui_content_7nfqu_5fcq5_351",
|
|
23
|
+
"unfocusable-mobile": "awsui_unfocusable-mobile_7nfqu_5fcq5_361"
|
|
24
24
|
};
|
|
25
25
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DragHandleProps } from '../../internal/components/drag-handle';
|
|
3
3
|
import { OptionWithVisibility } from './utils';
|
|
4
4
|
export declare const getClassName: (suffix?: string) => string;
|
|
5
5
|
export interface ContentDisplayOptionProps {
|
|
6
6
|
dragHandleAriaLabel?: string;
|
|
7
|
-
listeners?:
|
|
7
|
+
listeners?: DragHandleProps['listeners'];
|
|
8
8
|
onToggle?: (option: OptionWithVisibility) => void;
|
|
9
9
|
option: OptionWithVisibility;
|
|
10
10
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-display-option.d.ts","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/content-display-option.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"content-display-option.d.ts","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/content-display-option.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmC,MAAM,OAAO,CAAC;AAExD,OAAmB,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAGpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAK/C,eAAO,MAAM,YAAY,YAAa,MAAM,WAAgE,CAAC;AAE7G,MAAM,WAAW,yBAAyB;IACxC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACzC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAClD,MAAM,EAAE,oBAAoB,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,oBAAoB,kGA8BzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-display-option.js","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/content-display-option.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAgB,UAAU,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"content-display-option.js","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/content-display-option.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAgB,UAAU,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,UAA+B,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,cAAc,MAAM,uBAAuB,CAAC;AAGnD,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC,MAAM,eAAe,GAAG,wBAAwB,CAAC;AACjD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAe,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAU7G,MAAM,oBAAoB,GAAG,UAAU,CACrC,CACE,EAAE,mBAAmB,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAA6B,EACzF,GAAiC,EACjC,EAAE;IACF,MAAM,QAAQ,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC;IAC9C,MAAM,SAAS,GAAG,GAAG,QAAQ,YAAY,MAAM,CAAC,EAAE,EAAE,CAAC;IAErD,MAAM,oBAAoB,GAAG;QAC3B,CAAC,YAAY,CAAC,EAAE,CAAC,mBAAmB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;KAC/D,CAAC;IAEF,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC;QAC/C,oBAAC,UAAU,IAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,GAAI;QAE1F,+BAAO,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,SAAS,IACxD,MAAM,CAAC,KAAK,CACP;QACR,6BAAK,SAAS,EAAE,YAAY,CAAC,QAAQ,CAAC;YACpC,oBAAC,cAAc,IACb,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,EACzB,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,CAAC,EAC5C,QAAQ,EAAE,MAAM,CAAC,aAAa,KAAK,IAAI,EACvC,SAAS,EAAE,SAAS,GACpB,CACE,CACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,oBAAoB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ForwardedRef, forwardRef } from 'react';\n\nimport DragHandle, { DragHandleProps } from '../../internal/components/drag-handle';\nimport { useUniqueId } from '../../internal/hooks/use-unique-id';\nimport InternalToggle from '../../toggle/internal';\nimport { OptionWithVisibility } from './utils';\n\nimport styles from '../styles.css.js';\n\nconst componentPrefix = 'content-display-option';\nexport const getClassName = (suffix?: string) => styles[[componentPrefix, suffix].filter(Boolean).join('-')];\n\nexport interface ContentDisplayOptionProps {\n dragHandleAriaLabel?: string;\n listeners?: DragHandleProps['listeners'];\n onToggle?: (option: OptionWithVisibility) => void;\n option: OptionWithVisibility;\n disabled?: boolean;\n}\n\nconst ContentDisplayOption = forwardRef(\n (\n { dragHandleAriaLabel, listeners, onToggle, option, disabled }: ContentDisplayOptionProps,\n ref: ForwardedRef<HTMLDivElement>\n ) => {\n const idPrefix = useUniqueId(componentPrefix);\n const controlId = `${idPrefix}-control-${option.id}`;\n\n const dragHandleAttributes = {\n ['aria-label']: [dragHandleAriaLabel, option.label].join(', '),\n };\n\n return (\n <div ref={ref} className={getClassName('content')}>\n <DragHandle disabled={disabled} attributes={dragHandleAttributes} listeners={listeners} />\n\n <label className={getClassName('label')} htmlFor={controlId}>\n {option.label}\n </label>\n <div className={getClassName('toggle')}>\n <InternalToggle\n checked={!!option.visible}\n onChange={() => onToggle && onToggle(option)}\n disabled={option.alwaysVisible === true}\n controlId={controlId}\n />\n </div>\n </div>\n );\n }\n);\n\nexport default ContentDisplayOption;\n"]}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
-
import { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities';
|
|
3
2
|
export interface DragHandleProps {
|
|
4
3
|
attributes: ButtonHTMLAttributes<HTMLDivElement>;
|
|
5
4
|
hideFocus?: boolean;
|
|
6
|
-
listeners
|
|
5
|
+
listeners: Record<string, Function> | undefined;
|
|
7
6
|
disabled?: boolean;
|
|
8
7
|
}
|
|
9
8
|
export default function DragHandle({ attributes, hideFocus, listeners, disabled }: DragHandleProps): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/drag-handle/index.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/drag-handle/index.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AASpD,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACjD,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,eAAe,eAWjG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/drag-handle/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/drag-handle/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,OAAO,YAAY,MAAM,yBAAyB,CAAC;AACnD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAWrC,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAmB;IAChG,OAAO,CACL,oBAAC,MAAM,mCACU,QAAQ,EACvB,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,IAAI,YAAY,CAAC,YAAY,CAAC,EAAE,QAAQ,IAAI,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAC1G,UAAU,EACV,SAAS;QAEb,oBAAC,YAAY,IAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EAAE,IAAI,EAAC,gBAAgB,GAAG,CAC3E,CACV,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ButtonHTMLAttributes } from 'react';\nimport clsx from 'clsx';\n\nimport InternalIcon from '../../../icon/internal';\nimport Handle from '../handle';\n\nimport handleStyles from '../handle/styles.css.js';\nimport styles from './styles.css.js';\n\nexport interface DragHandleProps {\n attributes: ButtonHTMLAttributes<HTMLDivElement>;\n hideFocus?: boolean;\n // @dnd-kit uses this type\n // eslint-disable-next-line @typescript-eslint/ban-types\n listeners: Record<string, Function> | undefined;\n disabled?: boolean;\n}\n\nexport default function DragHandle({ attributes, hideFocus, listeners, disabled }: DragHandleProps) {\n return (\n <Handle\n aria-disabled={disabled}\n className={clsx(styles.handle, hideFocus && handleStyles['hide-focus'], disabled && styles['handle-disabled'])}\n {...attributes}\n {...listeners}\n >\n <InternalIcon variant={disabled ? 'disabled' : undefined} name=\"drag-indicator\" />\n </Handle>\n );\n}\n"]}
|
|
@@ -208,7 +208,7 @@ const Dropdown = ({ children, trigger, open, onDropdownClose, onMouseDown, heade
|
|
|
208
208
|
const clickListener = (event) => {
|
|
209
209
|
// Since the listener is registered on the window, `event.target` will incorrectly point at the
|
|
210
210
|
// shadow root if the component is rendered inside shadow DOM.
|
|
211
|
-
const target = event.composedPath()[0];
|
|
211
|
+
const target = event.composedPath ? event.composedPath()[0] : event.target;
|
|
212
212
|
if (!nodeBelongs(dropdownRef.current, target) && !nodeBelongs(triggerRef.current, target)) {
|
|
213
213
|
fireNonCancelableEvent(onDropdownClose);
|
|
214
214
|
}
|