@cloudscape-design/components 3.0.1379 → 3.0.1381
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/box/index.js +13 -18
- package/box/interfaces.d.ts +0 -23
- package/box/interfaces.d.ts.map +1 -1
- package/box/interfaces.js.map +1 -1
- package/box/internal-do-not-use-core.js +23 -0
- package/button/interfaces.d.ts +0 -1
- package/button/interfaces.d.ts.map +1 -1
- package/button/interfaces.js.map +1 -1
- package/button/internal.d.ts.map +1 -1
- package/button/internal.js +8 -1
- package/button/internal.js.map +1 -1
- package/button-dropdown/category-elements/styles.css.js +18 -18
- package/button-dropdown/category-elements/styles.scoped.css +32 -32
- package/button-dropdown/category-elements/styles.selectors.js +18 -18
- package/button-dropdown/item-element/styles.css.js +21 -21
- package/button-dropdown/item-element/styles.scoped.css +38 -38
- package/button-dropdown/item-element/styles.selectors.js +21 -21
- package/copy-to-clipboard/interfaces.d.ts +0 -1
- package/copy-to-clipboard/interfaces.d.ts.map +1 -1
- package/copy-to-clipboard/interfaces.js.map +1 -1
- package/dropdown/index.d.ts.map +1 -1
- package/dropdown/index.js +1 -1
- package/dropdown/index.js.map +1 -1
- package/dropdown/internal.d.ts +5 -0
- package/dropdown/internal.d.ts.map +1 -1
- package/dropdown/internal.js +4 -4
- package/dropdown/internal.js.map +1 -1
- package/dropdown/styles.css.js +20 -20
- package/dropdown/styles.scoped.css +69 -48
- package/dropdown/styles.selectors.js +20 -20
- package/i18n/dynamic.js +2 -2
- package/i18n/messages/all.all.d.ts +1 -1
- package/i18n/messages/all.ar.d.ts +1 -1
- package/i18n/messages/all.de.d.ts +1 -1
- package/i18n/messages/all.en-GB.d.ts +1 -1
- package/i18n/messages/all.en.d.ts +1 -1
- package/i18n/messages/all.es.d.ts +1 -1
- package/i18n/messages/all.fr.d.ts +1 -1
- package/i18n/messages/all.id.d.ts +1 -1
- package/i18n/messages/all.it.d.ts +1 -1
- package/i18n/messages/all.ja.d.ts +1 -1
- package/i18n/messages/all.ko.d.ts +1 -1
- package/i18n/messages/all.pt-BR.d.ts +1 -1
- package/i18n/messages/all.th.d.ts +1 -1
- package/i18n/messages/all.tr.d.ts +1 -1
- package/i18n/messages/all.zh-CN.d.ts +1 -1
- package/i18n/messages/all.zh-TW.d.ts +1 -1
- package/index.d.ts +96 -96
- package/index.d.ts.map +1 -1
- package/index.js +96 -96
- package/index.js.map +1 -1
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/components/selectable-item/styles.css.js +22 -22
- package/internal/components/selectable-item/styles.scoped.css +53 -49
- package/internal/components/selectable-item/styles.selectors.js +22 -22
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/manifest.json +1 -1
- package/link/index.d.ts.map +1 -1
- package/link/index.js +1 -1
- package/link/index.js.map +1 -1
- package/link/internal.d.ts +4 -0
- package/link/internal.d.ts.map +1 -1
- package/link/internal.js +2 -2
- package/link/internal.js.map +1 -1
- package/link/styles.css.js +21 -21
- package/link/styles.scoped.css +121 -104
- package/link/styles.selectors.js +21 -21
- package/manifest.json +2 -2
- package/package.json +1 -1
- package/status-indicator/internal.d.ts +5 -0
- package/status-indicator/internal.d.ts.map +1 -1
- package/status-indicator/internal.js +2 -2
- package/status-indicator/internal.js.map +1 -1
- package/status-indicator/styles.css.js +26 -25
- package/status-indicator/styles.scoped.css +47 -47
- package/status-indicator/styles.selectors.js +26 -25
- package/steps/internal.js +1 -1
- package/steps/internal.js.map +1 -1
- package/theming/index.d.ts +6 -2
- package/theming/index.d.ts.map +1 -1
- package/theming/index.js +7 -4
- package/theming/index.js.map +1 -1
- /package/box/{index.js.map → internal-do-not-use-core.js.map} +0 -0
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"header": "
|
|
6
|
-
"disabled": "
|
|
7
|
-
"no-content-styling": "awsui_no-content-
|
|
8
|
-
"expandable-header": "awsui_expandable-
|
|
9
|
-
"rolled-down": "awsui_rolled-
|
|
10
|
-
"highlighted": "
|
|
11
|
-
"is-focused": "awsui_is-
|
|
12
|
-
"visual-refresh": "awsui_visual-
|
|
13
|
-
"category": "
|
|
14
|
-
"expandable": "
|
|
15
|
-
"variant-navigation": "awsui_variant-
|
|
16
|
-
"expand-icon": "awsui_expand-
|
|
17
|
-
"expand-icon-up": "awsui_expand-icon-
|
|
18
|
-
"expand-icon-right": "awsui_expand-icon-
|
|
19
|
-
"items-list-container": "awsui_items-list-
|
|
20
|
-
"in-dropdown": "awsui_in-
|
|
21
|
-
"icon-wrapper": "awsui_icon-
|
|
22
|
-
"header-content": "awsui_header-
|
|
5
|
+
"header": "awsui_header_16mm3_1e2ra_9",
|
|
6
|
+
"disabled": "awsui_disabled_16mm3_1e2ra_25",
|
|
7
|
+
"no-content-styling": "awsui_no-content-styling_16mm3_1e2ra_29",
|
|
8
|
+
"expandable-header": "awsui_expandable-header_16mm3_1e2ra_35",
|
|
9
|
+
"rolled-down": "awsui_rolled-down_16mm3_1e2ra_46",
|
|
10
|
+
"highlighted": "awsui_highlighted_16mm3_1e2ra_49",
|
|
11
|
+
"is-focused": "awsui_is-focused_16mm3_1e2ra_72",
|
|
12
|
+
"visual-refresh": "awsui_visual-refresh_16mm3_1e2ra_75",
|
|
13
|
+
"category": "awsui_category_16mm3_1e2ra_79",
|
|
14
|
+
"expandable": "awsui_expandable_16mm3_1e2ra_35",
|
|
15
|
+
"variant-navigation": "awsui_variant-navigation_16mm3_1e2ra_94",
|
|
16
|
+
"expand-icon": "awsui_expand-icon_16mm3_1e2ra_101",
|
|
17
|
+
"expand-icon-up": "awsui_expand-icon-up_16mm3_1e2ra_119",
|
|
18
|
+
"expand-icon-right": "awsui_expand-icon-right_16mm3_1e2ra_122",
|
|
19
|
+
"items-list-container": "awsui_items-list-container_16mm3_1e2ra_130",
|
|
20
|
+
"in-dropdown": "awsui_in-dropdown_16mm3_1e2ra_139",
|
|
21
|
+
"icon-wrapper": "awsui_icon-wrapper_16mm3_1e2ra_143",
|
|
22
|
+
"header-content": "awsui_header-content_16mm3_1e2ra_147"
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"item-element": "awsui_item-
|
|
5
|
-
"no-content-styling": "awsui_no-content-
|
|
6
|
-
"disabled": "
|
|
7
|
-
"show-divider": "awsui_show-
|
|
8
|
-
"highlighted": "
|
|
9
|
-
"is-focused": "awsui_is-
|
|
10
|
-
"visual-refresh": "awsui_visual-
|
|
11
|
-
"menu-item": "awsui_menu-
|
|
12
|
-
"link-style": "awsui_link-
|
|
13
|
-
"current-breadcrumb": "awsui_current-
|
|
14
|
-
"link-style-highlighted": "awsui_link-style-
|
|
15
|
-
"has-category-header": "awsui_has-category-
|
|
16
|
-
"item-tooltip-wrapper": "awsui_item-tooltip-
|
|
17
|
-
"has-checkmark": "awsui_has-
|
|
18
|
-
"icon": "
|
|
19
|
-
"checkmark": "
|
|
20
|
-
"external-icon": "awsui_external-
|
|
21
|
-
"content-wrapper": "awsui_content-
|
|
22
|
-
"main-row": "awsui_main-
|
|
23
|
-
"label-tag": "awsui_label-
|
|
24
|
-
"secondary-text": "awsui_secondary-
|
|
4
|
+
"item-element": "awsui_item-element_93a1u_60fpm_9",
|
|
5
|
+
"no-content-styling": "awsui_no-content-styling_93a1u_60fpm_21",
|
|
6
|
+
"disabled": "awsui_disabled_93a1u_60fpm_26",
|
|
7
|
+
"show-divider": "awsui_show-divider_93a1u_60fpm_33",
|
|
8
|
+
"highlighted": "awsui_highlighted_93a1u_60fpm_36",
|
|
9
|
+
"is-focused": "awsui_is-focused_93a1u_60fpm_51",
|
|
10
|
+
"visual-refresh": "awsui_visual-refresh_93a1u_60fpm_54",
|
|
11
|
+
"menu-item": "awsui_menu-item_93a1u_60fpm_58",
|
|
12
|
+
"link-style": "awsui_link-style_93a1u_60fpm_75",
|
|
13
|
+
"current-breadcrumb": "awsui_current-breadcrumb_93a1u_60fpm_112",
|
|
14
|
+
"link-style-highlighted": "awsui_link-style-highlighted_93a1u_60fpm_120",
|
|
15
|
+
"has-category-header": "awsui_has-category-header_93a1u_60fpm_126",
|
|
16
|
+
"item-tooltip-wrapper": "awsui_item-tooltip-wrapper_93a1u_60fpm_126",
|
|
17
|
+
"has-checkmark": "awsui_has-checkmark_93a1u_60fpm_126",
|
|
18
|
+
"icon": "awsui_icon_93a1u_60fpm_133",
|
|
19
|
+
"checkmark": "awsui_checkmark_93a1u_60fpm_137",
|
|
20
|
+
"external-icon": "awsui_external-icon_93a1u_60fpm_144",
|
|
21
|
+
"content-wrapper": "awsui_content-wrapper_93a1u_60fpm_148",
|
|
22
|
+
"main-row": "awsui_main-row_93a1u_60fpm_154",
|
|
23
|
+
"label-tag": "awsui_label-tag_93a1u_60fpm_161",
|
|
24
|
+
"secondary-text": "awsui_secondary-text_93a1u_60fpm_168"
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
7
7
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
8
8
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
9
|
-
.awsui_item-
|
|
9
|
+
.awsui_item-element_93a1u_60fpm_9:not(#\9) {
|
|
10
10
|
position: relative;
|
|
11
11
|
z-index: 1;
|
|
12
12
|
border-block: var(--border-item-width-pyfg4s, 2px) solid transparent;
|
|
@@ -18,44 +18,44 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
18
18
|
margin-block-start: calc(-1 * var(--border-width-dropdown-4gpjx5, 2px));
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
}
|
|
21
|
-
.awsui_item-
|
|
21
|
+
.awsui_item-element_93a1u_60fpm_9.awsui_no-content-styling_93a1u_60fpm_21:not(#\9) {
|
|
22
22
|
padding-block: 0;
|
|
23
23
|
padding-inline: 0;
|
|
24
24
|
color: var(--color-text-dropdown-item-default-u2mfqy, #0f141a);
|
|
25
25
|
}
|
|
26
|
-
.awsui_item-
|
|
26
|
+
.awsui_item-element_93a1u_60fpm_9.awsui_disabled_93a1u_60fpm_26:not(#\9) {
|
|
27
27
|
cursor: default;
|
|
28
28
|
color: var(--color-text-dropdown-item-disabled-2udtn0, #b4b4bb);
|
|
29
29
|
}
|
|
30
|
-
.awsui_item-
|
|
30
|
+
.awsui_item-element_93a1u_60fpm_9:not(#\9):first-child {
|
|
31
31
|
margin-block-start: 0;
|
|
32
32
|
}
|
|
33
|
-
.awsui_item-
|
|
33
|
+
.awsui_item-element_93a1u_60fpm_9.awsui_show-divider_93a1u_60fpm_33:not(#\9) {
|
|
34
34
|
border-block-end: var(--border-item-width-pyfg4s, 2px) solid var(--color-border-dropdown-group-y5droz, #c6c6cd);
|
|
35
35
|
}
|
|
36
|
-
.awsui_item-
|
|
36
|
+
.awsui_item-element_93a1u_60fpm_9.awsui_highlighted_93a1u_60fpm_36:not(#\9) {
|
|
37
37
|
color: var(--color-text-dropdown-item-highlighted-dikwgu, #0f141a);
|
|
38
38
|
z-index: 2;
|
|
39
39
|
background-color: var(--color-background-dropdown-item-hover-pvfsrg, #f3f3f7);
|
|
40
40
|
border-color: var(--color-border-dropdown-item-hover-y2b7z1, #8c8c94);
|
|
41
|
-
border-start-start-radius: var(--border-radius-
|
|
42
|
-
border-start-end-radius: var(--border-radius-
|
|
43
|
-
border-end-start-radius: var(--border-radius-
|
|
44
|
-
border-end-end-radius: var(--border-radius-
|
|
41
|
+
border-start-start-radius: var(--border-radius-dropdown-azs8zp, 8px);
|
|
42
|
+
border-start-end-radius: var(--border-radius-dropdown-azs8zp, 8px);
|
|
43
|
+
border-end-start-radius: var(--border-radius-dropdown-azs8zp, 8px);
|
|
44
|
+
border-end-end-radius: var(--border-radius-dropdown-azs8zp, 8px);
|
|
45
45
|
}
|
|
46
|
-
.awsui_item-
|
|
46
|
+
.awsui_item-element_93a1u_60fpm_9.awsui_highlighted_93a1u_60fpm_36.awsui_disabled_93a1u_60fpm_26:not(#\9) {
|
|
47
47
|
color: var(--color-text-dropdown-item-dimmed-asp9ue, #b4b4bb);
|
|
48
48
|
border-color: var(--color-border-dropdown-item-dimmed-hover-54pdcr, #8c8c94);
|
|
49
49
|
background-color: var(--color-background-dropdown-item-dimmed-vz24i5, transparent);
|
|
50
50
|
}
|
|
51
|
-
.awsui_item-
|
|
51
|
+
.awsui_item-element_93a1u_60fpm_9.awsui_highlighted_93a1u_60fpm_36.awsui_is-focused_93a1u_60fpm_51:not(#\9) {
|
|
52
52
|
border-color: var(--color-border-dropdown-item-focused-y1x3ts, #424650);
|
|
53
53
|
}
|
|
54
|
-
.awsui_item-
|
|
54
|
+
.awsui_item-element_93a1u_60fpm_9.awsui_highlighted_93a1u_60fpm_36.awsui_is-focused_93a1u_60fpm_51:not(#\9):not(.awsui_visual-refresh_93a1u_60fpm_54) {
|
|
55
55
|
box-shadow: inset 0 0 0 var(--border-control-focus-ring-shadow-spread-iijyo6, 1px) var(--color-border-item-focused-sewkzn, #006ce0);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.awsui_menu-
|
|
58
|
+
.awsui_menu-item_93a1u_60fpm_58:not(#\9) {
|
|
59
59
|
min-inline-size: 0;
|
|
60
60
|
word-break: break-word;
|
|
61
61
|
display: flex;
|
|
@@ -67,12 +67,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
67
67
|
/* stylelint-disable selector-max-type */
|
|
68
68
|
/* stylelint-enable selector-max-type */
|
|
69
69
|
}
|
|
70
|
-
.awsui_menu-
|
|
70
|
+
.awsui_menu-item_93a1u_60fpm_58.awsui_no-content-styling_93a1u_60fpm_21:not(#\9) {
|
|
71
71
|
padding-block: 0;
|
|
72
72
|
padding-inline: 0;
|
|
73
73
|
color: var(--color-text-dropdown-item-default-u2mfqy, #0f141a);
|
|
74
74
|
}
|
|
75
|
-
.awsui_menu-
|
|
75
|
+
.awsui_menu-item_93a1u_60fpm_58.awsui_link-style_93a1u_60fpm_75:not(#\9) {
|
|
76
76
|
padding-block-end: calc(var(--space-option-padding-vertical-hggcse, 4px) + var(--space-xxxs-3ulqs3, 2px));
|
|
77
77
|
text-underline-offset: 0.25em;
|
|
78
78
|
text-decoration-thickness: var(--font-decoration-thickness-link-n3u7wl, 1px);
|
|
@@ -88,30 +88,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
88
88
|
transition-duration: var(--motion-duration-refresh-only-medium-s8g1xv, 165ms);
|
|
89
89
|
}
|
|
90
90
|
@media (prefers-reduced-motion: reduce) {
|
|
91
|
-
.awsui_menu-
|
|
91
|
+
.awsui_menu-item_93a1u_60fpm_58.awsui_link-style_93a1u_60fpm_75:not(#\9) {
|
|
92
92
|
animation: none;
|
|
93
93
|
transition: none;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
.awsui-motion-disabled .awsui_menu-
|
|
96
|
+
.awsui-motion-disabled .awsui_menu-item_93a1u_60fpm_58.awsui_link-style_93a1u_60fpm_75:not(#\9), .awsui-mode-entering .awsui_menu-item_93a1u_60fpm_58.awsui_link-style_93a1u_60fpm_75:not(#\9) {
|
|
97
97
|
animation: none;
|
|
98
98
|
transition: none;
|
|
99
99
|
}
|
|
100
|
-
.awsui_menu-
|
|
100
|
+
.awsui_menu-item_93a1u_60fpm_58.awsui_link-style_93a1u_60fpm_75:not(#\9):hover {
|
|
101
101
|
cursor: pointer;
|
|
102
102
|
color: var(--awsui-style-color-hover-66120l, var(--color-text-link-hover-n1r6g0, #002b66));
|
|
103
103
|
}
|
|
104
|
-
.awsui_menu-
|
|
104
|
+
.awsui_menu-item_93a1u_60fpm_58.awsui_link-style_93a1u_60fpm_75:not(#\9):focus {
|
|
105
105
|
outline: none;
|
|
106
106
|
}
|
|
107
|
-
.awsui_menu-
|
|
107
|
+
.awsui_menu-item_93a1u_60fpm_58.awsui_link-style_93a1u_60fpm_75:not(#\9):active {
|
|
108
108
|
color: var(--awsui-style-color-active-66120l, var(--color-text-link-hover-n1r6g0, #002b66));
|
|
109
109
|
}
|
|
110
|
-
.awsui_menu-
|
|
110
|
+
.awsui_menu-item_93a1u_60fpm_58.awsui_link-style_93a1u_60fpm_75:not(#\9):active, .awsui_menu-item_93a1u_60fpm_58.awsui_link-style_93a1u_60fpm_75:not(#\9):focus, .awsui_menu-item_93a1u_60fpm_58.awsui_link-style_93a1u_60fpm_75:not(#\9):hover {
|
|
111
111
|
text-decoration-line: underline;
|
|
112
112
|
text-decoration-color: var(--color-text-link-decoration-hover-opkmr8, currentColor);
|
|
113
113
|
}
|
|
114
|
-
.awsui_menu-
|
|
114
|
+
.awsui_menu-item_93a1u_60fpm_58.awsui_link-style_93a1u_60fpm_75.awsui_current-breadcrumb_93a1u_60fpm_112:not(#\9) {
|
|
115
115
|
font-weight: var(--font-weight-button-2p3grf, 700);
|
|
116
116
|
-webkit-font-smoothing: var(--font-smoothing-webkit-dpz0hr, antialiased);
|
|
117
117
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-kjlydy, grayscale);
|
|
@@ -119,63 +119,63 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
119
119
|
font-weight: var(--font-weight-bold-xpar9m, 700);
|
|
120
120
|
text-decoration: none;
|
|
121
121
|
}
|
|
122
|
-
.awsui_menu-
|
|
122
|
+
.awsui_menu-item_93a1u_60fpm_58.awsui_link-style_93a1u_60fpm_75.awsui_link-style-highlighted_93a1u_60fpm_120:not(#\9) {
|
|
123
123
|
color: var(--color-text-link-hover-n1r6g0, #002b66);
|
|
124
124
|
}
|
|
125
|
-
.awsui_menu-
|
|
125
|
+
.awsui_menu-item_93a1u_60fpm_58:not(#\9):focus {
|
|
126
126
|
outline: none;
|
|
127
127
|
}
|
|
128
|
-
.awsui_has-category-
|
|
128
|
+
.awsui_has-category-header_93a1u_60fpm_126 > .awsui_menu-item_93a1u_60fpm_58:not(#\9), .awsui_has-category-header_93a1u_60fpm_126 > .awsui_item-tooltip-wrapper_93a1u_60fpm_126 > .awsui_menu-item_93a1u_60fpm_58:not(#\9), .awsui_has-category-header_93a1u_60fpm_126:not(#\9):not(.awsui_has-checkmark_93a1u_60fpm_126) > span > .awsui_menu-item_93a1u_60fpm_58 {
|
|
129
129
|
padding-inline-start: calc(var(--space-xs-m9b7jf, 8px) + var(--space-option-padding-horizontal-5om7we, 20px));
|
|
130
130
|
}
|
|
131
|
-
.awsui_has-category-
|
|
131
|
+
.awsui_has-category-header_93a1u_60fpm_126 > .awsui_menu-item_93a1u_60fpm_58.awsui_no-content-styling_93a1u_60fpm_21:not(#\9), .awsui_has-category-header_93a1u_60fpm_126 > .awsui_item-tooltip-wrapper_93a1u_60fpm_126 > .awsui_menu-item_93a1u_60fpm_58.awsui_no-content-styling_93a1u_60fpm_21:not(#\9), .awsui_has-category-header_93a1u_60fpm_126:not(#\9):not(.awsui_has-checkmark_93a1u_60fpm_126) > span > .awsui_menu-item_93a1u_60fpm_58.awsui_no-content-styling_93a1u_60fpm_21 {
|
|
132
132
|
padding-inline-start: 0;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.
|
|
135
|
+
.awsui_icon_93a1u_60fpm_133:not(#\9) {
|
|
136
136
|
padding-inline-end: var(--space-xxs-3o1yoq, 4px);
|
|
137
137
|
flex-shrink: 0;
|
|
138
138
|
}
|
|
139
|
-
.
|
|
139
|
+
.awsui_icon_93a1u_60fpm_133.awsui_checkmark_93a1u_60fpm_137:not(#\9) {
|
|
140
140
|
color: var(--color-item-selected-2irl78, #006ce0);
|
|
141
141
|
}
|
|
142
|
-
.
|
|
142
|
+
.awsui_icon_93a1u_60fpm_133.awsui_disabled_93a1u_60fpm_26:not(#\9) {
|
|
143
143
|
color: var(--color-text-interactive-disabled-tuxgxq, #b4b4bb);
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
.awsui_external-
|
|
146
|
+
.awsui_external-icon_93a1u_60fpm_144:not(#\9) {
|
|
147
147
|
margin-inline-start: var(--space-xxs-3o1yoq, 4px);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
.awsui_content-
|
|
150
|
+
.awsui_content-wrapper_93a1u_60fpm_148:not(#\9) {
|
|
151
151
|
flex: 1;
|
|
152
152
|
display: flex;
|
|
153
153
|
flex-direction: column;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
.awsui_main-
|
|
156
|
+
.awsui_main-row_93a1u_60fpm_154:not(#\9) {
|
|
157
157
|
display: flex;
|
|
158
158
|
justify-content: space-between;
|
|
159
159
|
align-items: center;
|
|
160
160
|
gap: var(--space-s-kll7oj, 12px);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
.awsui_label-
|
|
163
|
+
.awsui_label-tag_93a1u_60fpm_161:not(#\9) {
|
|
164
164
|
color: var(--color-text-body-default-b2us04, #0f141a);
|
|
165
165
|
}
|
|
166
|
-
.awsui_label-
|
|
166
|
+
.awsui_label-tag_93a1u_60fpm_161.awsui_disabled_93a1u_60fpm_26:not(#\9) {
|
|
167
167
|
color: var(--color-text-interactive-disabled-tuxgxq, #b4b4bb);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
.awsui_secondary-
|
|
170
|
+
.awsui_secondary-text_93a1u_60fpm_168:not(#\9) {
|
|
171
171
|
font-size: var(--font-size-body-s-89y7qg, 12px);
|
|
172
172
|
line-height: var(--line-height-body-s-gako33, 16px);
|
|
173
173
|
letter-spacing: var(--letter-spacing-body-s-dzcybc, 0.005em);
|
|
174
174
|
color: var(--color-text-dropdown-item-secondary-1qkuo5, #656871);
|
|
175
175
|
}
|
|
176
|
-
.awsui_secondary-
|
|
176
|
+
.awsui_secondary-text_93a1u_60fpm_168.awsui_highlighted_93a1u_60fpm_36:not(#\9) {
|
|
177
177
|
color: var(--color-text-dropdown-item-highlighted-dikwgu, #0f141a);
|
|
178
178
|
}
|
|
179
|
-
.awsui_secondary-
|
|
179
|
+
.awsui_secondary-text_93a1u_60fpm_168.awsui_disabled_93a1u_60fpm_26:not(#\9) {
|
|
180
180
|
color: var(--color-text-interactive-disabled-tuxgxq, #b4b4bb);
|
|
181
181
|
}
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"item-element": "awsui_item-
|
|
6
|
-
"no-content-styling": "awsui_no-content-
|
|
7
|
-
"disabled": "
|
|
8
|
-
"show-divider": "awsui_show-
|
|
9
|
-
"highlighted": "
|
|
10
|
-
"is-focused": "awsui_is-
|
|
11
|
-
"visual-refresh": "awsui_visual-
|
|
12
|
-
"menu-item": "awsui_menu-
|
|
13
|
-
"link-style": "awsui_link-
|
|
14
|
-
"current-breadcrumb": "awsui_current-
|
|
15
|
-
"link-style-highlighted": "awsui_link-style-
|
|
16
|
-
"has-category-header": "awsui_has-category-
|
|
17
|
-
"item-tooltip-wrapper": "awsui_item-tooltip-
|
|
18
|
-
"has-checkmark": "awsui_has-
|
|
19
|
-
"icon": "
|
|
20
|
-
"checkmark": "
|
|
21
|
-
"external-icon": "awsui_external-
|
|
22
|
-
"content-wrapper": "awsui_content-
|
|
23
|
-
"main-row": "awsui_main-
|
|
24
|
-
"label-tag": "awsui_label-
|
|
25
|
-
"secondary-text": "awsui_secondary-
|
|
5
|
+
"item-element": "awsui_item-element_93a1u_60fpm_9",
|
|
6
|
+
"no-content-styling": "awsui_no-content-styling_93a1u_60fpm_21",
|
|
7
|
+
"disabled": "awsui_disabled_93a1u_60fpm_26",
|
|
8
|
+
"show-divider": "awsui_show-divider_93a1u_60fpm_33",
|
|
9
|
+
"highlighted": "awsui_highlighted_93a1u_60fpm_36",
|
|
10
|
+
"is-focused": "awsui_is-focused_93a1u_60fpm_51",
|
|
11
|
+
"visual-refresh": "awsui_visual-refresh_93a1u_60fpm_54",
|
|
12
|
+
"menu-item": "awsui_menu-item_93a1u_60fpm_58",
|
|
13
|
+
"link-style": "awsui_link-style_93a1u_60fpm_75",
|
|
14
|
+
"current-breadcrumb": "awsui_current-breadcrumb_93a1u_60fpm_112",
|
|
15
|
+
"link-style-highlighted": "awsui_link-style-highlighted_93a1u_60fpm_120",
|
|
16
|
+
"has-category-header": "awsui_has-category-header_93a1u_60fpm_126",
|
|
17
|
+
"item-tooltip-wrapper": "awsui_item-tooltip-wrapper_93a1u_60fpm_126",
|
|
18
|
+
"has-checkmark": "awsui_has-checkmark_93a1u_60fpm_126",
|
|
19
|
+
"icon": "awsui_icon_93a1u_60fpm_133",
|
|
20
|
+
"checkmark": "awsui_checkmark_93a1u_60fpm_137",
|
|
21
|
+
"external-icon": "awsui_external-icon_93a1u_60fpm_144",
|
|
22
|
+
"content-wrapper": "awsui_content-wrapper_93a1u_60fpm_148",
|
|
23
|
+
"main-row": "awsui_main-row_93a1u_60fpm_154",
|
|
24
|
+
"label-tag": "awsui_label-tag_93a1u_60fpm_161",
|
|
25
|
+
"secondary-text": "awsui_secondary-text_93a1u_60fpm_168"
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -55,7 +55,6 @@ export interface CopyToClipboardProps extends BaseComponentProps {
|
|
|
55
55
|
/**
|
|
56
56
|
* Provides a reason why the copy to clipboard button is disabled (only when `disabled` is `true`).
|
|
57
57
|
* If provided, the copy to clipboard button becomes focusable.
|
|
58
|
-
* Applicable for all variants except inline.
|
|
59
58
|
*/
|
|
60
59
|
disabledReason?: string;
|
|
61
60
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/copy-to-clipboard/interfaces.ts"],"names":[],"mappings":"AAGA,O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O,CAAC;IAEnB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,aAAa,CAAC,EAAE,yBAAyB,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAElF;;;OAGG;IACH,aAAa,CAAC,EAAE,yBAAyB,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;CACnF;AAED,yBAAiB,oBAAoB,CAAC;IACpC,KAAY,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;IAEnD,UAAiB,iBAAiB;QAChC,gDAAgD;QAChD,IAAI,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,iBAAiB;QAChC,oDAAoD;QACpD,IAAI,EAAE,MAAM,CAAC;KACd;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/copy-to-clipboard/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseComponentProps } from '../types/base-component';\nimport { NonCancelableEventHandler } from '../types/events';\n\nexport interface CopyToClipboardProps extends BaseComponentProps {\n /** Determines the general styling of the copy button as follows:\n *\n * * `button` to display a standalone secondary button with an icon, and `copyButtonText` as text.\n * * `icon` to display a standalone icon-only (no text) button.\n * * `inline` to display an icon-only (no text) button within a text context.\n *\n * Defaults to `button`.\n */\n variant?: CopyToClipboardProps.Variant;\n\n /**\n * The text of the copy button (for variant=\"button\").\n */\n copyButtonText?: string;\n\n /**\n * Adds `aria-label` to the copy button. Use this to provide an accessible name for buttons that don't have visible text,\n * and to distinguish between multiple buttons with identical visible text. The text will also be added to the `title` attribute of the button.\n */\n copyButtonAriaLabel?: string;\n\n /**\n * The text content to be copied. It is displayed next to the copy button when `variant=\"inline\"` unless when `content` is specified, and is not shown otherwise.\n */\n textToCopy: string;\n\n /**\n * The content to display next to the copy button when `variant=\"inline\"`. If not provided, `textToCopy` will be displayed instead.\n */\n textToDisplay?: React.ReactNode;\n\n /**\n * Specifies if the `textToDisplay` content should wrap. If you set it to false, it prevents the text\n * from wrapping and truncates it with an ellipsis. Only applies to `variant=\"inline\"`.\n */\n wrapText?: boolean;\n\n /**\n * The message shown when the text is copied successfully.\n */\n copySuccessText: string;\n\n /**\n * The message shown when the text is not copied due to an error, see [https://w3c.github.io/clipboard-apis/#dom-clipboard-writetext](https://w3c.github.io/clipboard-apis/#dom-clipboard-writetext).\n */\n copyErrorText: string;\n\n /**\n * By default, the popover is constrained to fit inside its parent\n * [stacking context](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context).\n * Enabling this property will allow the popover to be rendered in the root stack context using\n * [React Portals](https://reactjs.org/docs/portals.html).\n * Enable this setting if you need the popover to ignore its parent stacking context.\n */\n popoverRenderWithPortal?: boolean;\n\n /**\n * Renders the copy to clipboard button as disabled and prevents clicks.\n */\n disabled?: boolean;\n\n /**\n * Provides a reason why the copy to clipboard button is disabled (only when `disabled` is `true`).\n * If provided, the copy to clipboard button becomes focusable.\n
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/copy-to-clipboard/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseComponentProps } from '../types/base-component';\nimport { NonCancelableEventHandler } from '../types/events';\n\nexport interface CopyToClipboardProps extends BaseComponentProps {\n /** Determines the general styling of the copy button as follows:\n *\n * * `button` to display a standalone secondary button with an icon, and `copyButtonText` as text.\n * * `icon` to display a standalone icon-only (no text) button.\n * * `inline` to display an icon-only (no text) button within a text context.\n *\n * Defaults to `button`.\n */\n variant?: CopyToClipboardProps.Variant;\n\n /**\n * The text of the copy button (for variant=\"button\").\n */\n copyButtonText?: string;\n\n /**\n * Adds `aria-label` to the copy button. Use this to provide an accessible name for buttons that don't have visible text,\n * and to distinguish between multiple buttons with identical visible text. The text will also be added to the `title` attribute of the button.\n */\n copyButtonAriaLabel?: string;\n\n /**\n * The text content to be copied. It is displayed next to the copy button when `variant=\"inline\"` unless when `content` is specified, and is not shown otherwise.\n */\n textToCopy: string;\n\n /**\n * The content to display next to the copy button when `variant=\"inline\"`. If not provided, `textToCopy` will be displayed instead.\n */\n textToDisplay?: React.ReactNode;\n\n /**\n * Specifies if the `textToDisplay` content should wrap. If you set it to false, it prevents the text\n * from wrapping and truncates it with an ellipsis. Only applies to `variant=\"inline\"`.\n */\n wrapText?: boolean;\n\n /**\n * The message shown when the text is copied successfully.\n */\n copySuccessText: string;\n\n /**\n * The message shown when the text is not copied due to an error, see [https://w3c.github.io/clipboard-apis/#dom-clipboard-writetext](https://w3c.github.io/clipboard-apis/#dom-clipboard-writetext).\n */\n copyErrorText: string;\n\n /**\n * By default, the popover is constrained to fit inside its parent\n * [stacking context](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context).\n * Enabling this property will allow the popover to be rendered in the root stack context using\n * [React Portals](https://reactjs.org/docs/portals.html).\n * Enable this setting if you need the popover to ignore its parent stacking context.\n */\n popoverRenderWithPortal?: boolean;\n\n /**\n * Renders the copy to clipboard button as disabled and prevents clicks.\n */\n disabled?: boolean;\n\n /**\n * Provides a reason why the copy to clipboard button is disabled (only when `disabled` is `true`).\n * If provided, the copy to clipboard button becomes focusable.\n */\n disabledReason?: string;\n\n /**\n * Called when the text is successfully copied to the clipboard.\n * The event `detail` contains the text that was copied.\n */\n onCopySuccess?: NonCancelableEventHandler<CopyToClipboardProps.CopySuccessDetail>;\n\n /**\n * Called when the copy operation fails.\n * The event `detail` contains the text that failed to copy.\n */\n onCopyFailure?: NonCancelableEventHandler<CopyToClipboardProps.CopyFailureDetail>;\n}\n\nexport namespace CopyToClipboardProps {\n export type Variant = 'button' | 'icon' | 'inline';\n\n export interface CopySuccessDetail {\n /** The text that was copied to the clipboard */\n text: string;\n }\n\n export interface CopyFailureDetail {\n /** The text that failed to copy to the clipboard */\n text: string;\n }\n}\n"]}
|
package/dropdown/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dropdown/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dropdown/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,eAUlE"}
|
package/dropdown/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
|
7
7
|
import InternalDropdown from './internal';
|
|
8
8
|
export default function Dropdown({ style, ...props }) {
|
|
9
9
|
const baseComponentProps = useBaseComponent('Dropdown');
|
|
10
|
-
return React.createElement(InternalDropdown, { ...props, style: style, ...baseComponentProps });
|
|
10
|
+
return (React.createElement(InternalDropdown, { ...props, style: style, styleClassNames: props.styleClassNames, ...baseComponentProps }));
|
|
11
11
|
}
|
|
12
12
|
applyDisplayName(Dropdown, 'Dropdown');
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
package/dropdown/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dropdown/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dropdown/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,gBAAqC,MAAM,YAAY,CAAC;AAI/D,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAiB;IACjE,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACxD,OAAO,CACL,oBAAC,gBAAgB,OACX,KAAK,EACT,KAAK,EAAE,KAAK,EACZ,eAAe,EAAG,KAA+C,CAAC,eAAe,KAC7E,kBAAkB,GACtB,CACH,CAAC;AACJ,CAAC;AACD,gBAAgB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { DropdownProps } from './interfaces';\nimport InternalDropdown, { StyleClassNames } from './internal';\n\nexport { DropdownProps };\n\nexport default function Dropdown({ style, ...props }: DropdownProps) {\n const baseComponentProps = useBaseComponent('Dropdown');\n return (\n <InternalDropdown\n {...props}\n style={style}\n styleClassNames={(props as { styleClassNames?: StyleClassNames }).styleClassNames}\n {...baseComponentProps}\n />\n );\n}\napplyDisplayName(Dropdown, 'Dropdown');\n"]}
|
package/dropdown/internal.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export interface InternalDropdownProps extends Omit<DropdownProps, 'minWidth' |
|
|
|
21
21
|
onBlur?: NonCancelableEventHandler<Pick<React.FocusEvent, 'target' | 'relatedTarget'>>;
|
|
22
22
|
triggerRef?: React.RefObject<HTMLElement>;
|
|
23
23
|
triggerId?: string;
|
|
24
|
+
styleClassNames?: StyleClassNames;
|
|
25
|
+
}
|
|
26
|
+
export interface StyleClassNames {
|
|
27
|
+
dropdown?: string;
|
|
24
28
|
}
|
|
25
29
|
declare const InternalDropdown: ({
|
|
26
30
|
content,
|
|
@@ -56,6 +60,7 @@ declare const InternalDropdown: ({
|
|
|
56
60
|
ariaLabelledby,
|
|
57
61
|
ariaDescribedby,
|
|
58
62
|
style,
|
|
63
|
+
styleClassNames,
|
|
59
64
|
__internalRootRef,
|
|
60
65
|
...restProps
|
|
61
66
|
}: InternalDropdownProps) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/dropdown/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAa5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAMlF,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAS5D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAGzF,MAAM,WAAW,qBACf,SAAQ,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,CAAC,EA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currentDocument = (_b = (_a = triggerRef.current) === null || _a === void 0 ? void 0 : _a.ownerDocument) !== null && _b !== void 0 ? _b : document;
|
|
34
34
|
return createPortal(React.createElement("div", { id: id, "data-awsui-referrer-id": referrerId }, children), currentDocument.body);
|
|
35
35
|
};
|
|
36
|
-
const TransitionContent = ({ state, transitionRef, dropdownClasses, matchTriggerWidth, hideBlockBorder, interior, isRefresh, dropdownRef, verticalContainerRef, expandToViewport, minWidth, maxWidth, header, content, footer, position, open, onMouseDown, onFocusEnter, onFocusLeave, id, ariaRole, ariaLabel, ariaLabelledby, ariaDescribedby, dropdownStyle, }) => {
|
|
36
|
+
const TransitionContent = ({ state, transitionRef, dropdownClasses, matchTriggerWidth, hideBlockBorder, interior, isRefresh, dropdownRef, verticalContainerRef, expandToViewport, minWidth, maxWidth, header, content, footer, position, open, onMouseDown, onFocusEnter, onFocusLeave, id, ariaRole, ariaLabel, ariaLabelledby, ariaDescribedby, dropdownStyle, styleClassNames, }) => {
|
|
37
37
|
const contentRef = useMergeRefs(dropdownRef, transitionRef);
|
|
38
38
|
const dropdownStyles = {};
|
|
39
39
|
if (minWidth) {
|
|
@@ -51,14 +51,14 @@ const TransitionContent = ({ state, transitionRef, dropdownClasses, matchTrigger
|
|
|
51
51
|
[styles['use-portal']]: expandToViewport && !interior,
|
|
52
52
|
[styles['use-flexible-width']]: !matchTriggerWidth && !interior,
|
|
53
53
|
}), ref: contentRef, id: id, role: ariaRole, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "data-open": open, "data-animating": state !== 'exited', "aria-hidden": !open, style: dropdownStyles, onMouseDown: onMouseDown, onFocus: onFocusEnter, onBlur: onFocusLeave },
|
|
54
|
-
React.createElement("div", { className: clsx(styles['dropdown-content-wrapper'], !header && !content && styles['is-empty'], isRefresh && styles.refresh), style: dropdownStyle },
|
|
54
|
+
React.createElement("div", { className: clsx(styleClassNames === null || styleClassNames === void 0 ? void 0 : styleClassNames.dropdown, styles['dropdown-content-wrapper'], !header && !content && styles['is-empty'], isRefresh && styles.refresh), style: dropdownStyle },
|
|
55
55
|
React.createElement("div", { ref: verticalContainerRef, className: styles['dropdown-content'] },
|
|
56
56
|
React.createElement(DropdownContextProvider, { position: position },
|
|
57
57
|
header && React.createElement("div", { className: testUtilStyles.header }, header),
|
|
58
58
|
content,
|
|
59
59
|
footer && React.createElement("div", { className: testUtilStyles.footer }, footer))))));
|
|
60
60
|
};
|
|
61
|
-
const InternalDropdown = ({ content, trigger, triggerRef: externalTriggerRef, triggerId: externalTriggerId, open, onOutsideClick, onMouseDown, header, footer, dropdownId, stretchTriggerHeight = false, stretchHeight = false, minWidth, maxWidth, maxHeight, hideBlockBorder = true, expandToViewport = false, preferredAlignment = 'start', interior = false, scrollable = true, loopFocus = expandToViewport, onFocus, onBlur, onFocusEnter, onFocusLeave, onEscape, contentKey, dropdownContentId, ariaRole, ariaLabel, ariaLabelledby, ariaDescribedby, style, __internalRootRef, ...restProps }) => {
|
|
61
|
+
const InternalDropdown = ({ content, trigger, triggerRef: externalTriggerRef, triggerId: externalTriggerId, open, onOutsideClick, onMouseDown, header, footer, dropdownId, stretchTriggerHeight = false, stretchHeight = false, minWidth, maxWidth, maxHeight, hideBlockBorder = true, expandToViewport = false, preferredAlignment = 'start', interior = false, scrollable = true, loopFocus = expandToViewport, onFocus, onBlur, onFocusEnter, onFocusLeave, onEscape, contentKey, dropdownContentId, ariaRole, ariaLabel, ariaLabelledby, ariaDescribedby, style, styleClassNames, __internalRootRef, ...restProps }) => {
|
|
62
62
|
const baseProps = getBaseProps(restProps);
|
|
63
63
|
const wrapperRef = useRef(null);
|
|
64
64
|
const mergedRef = useMergeRefs(wrapperRef, __internalRootRef);
|
|
@@ -316,7 +316,7 @@ const InternalDropdown = ({ content, trigger, triggerRef: externalTriggerRef, tr
|
|
|
316
316
|
React.createElement(DropdownContainer, { triggerRef: triggerRef, renderWithPortal: expandToViewport && !interior, id: dropdownId, referrerId: referrerId, open: open },
|
|
317
317
|
React.createElement(Transition, { in: open !== null && open !== void 0 ? open : false, exit: false }, (state, ref) => (React.createElement("div", { ref: dropdownContainerRef },
|
|
318
318
|
React.createElement(TabTrap, { focusNextCallback: () => { var _a; return triggerRef.current && ((_a = getLastFocusable(triggerRef.current)) === null || _a === void 0 ? void 0 : _a.focus()); }, disabled: !open || !loopFocus }),
|
|
319
|
-
React.createElement(TransitionContent, { state: state, transitionRef: ref, dropdownClasses: dropdownClasses, open: open, matchTriggerWidth: matchTriggerWidth, hideBlockBorder: hideBlockBorder, interior: interior, header: header, content: content, expandToViewport: expandToViewport, minWidth: getMinWidthCssValue(), maxWidth: getMaxWidthCssValue(), footer: footer, onMouseDown: onMouseDown, onFocusEnter: focusEnterHandler, onFocusLeave: focusLeaveHandler, isRefresh: isRefresh, dropdownRef: dropdownRef, verticalContainerRef: verticalContainerRef, position: position, id: dropdownContentId, ariaRole: ariaRole, ariaLabel: ariaLabel, ariaLabelledby: ariaLabelledby, ariaDescribedby: ariaDescribedby, dropdownStyle: getDropdownStyles(style) }),
|
|
319
|
+
React.createElement(TransitionContent, { state: state, transitionRef: ref, dropdownClasses: dropdownClasses, open: open, matchTriggerWidth: matchTriggerWidth, hideBlockBorder: hideBlockBorder, interior: interior, header: header, content: content, expandToViewport: expandToViewport, minWidth: getMinWidthCssValue(), maxWidth: getMaxWidthCssValue(), footer: footer, onMouseDown: onMouseDown, onFocusEnter: focusEnterHandler, onFocusLeave: focusLeaveHandler, isRefresh: isRefresh, dropdownRef: dropdownRef, verticalContainerRef: verticalContainerRef, position: position, id: dropdownContentId, ariaRole: ariaRole, ariaLabel: ariaLabel, ariaLabelledby: ariaLabelledby, ariaDescribedby: ariaDescribedby, dropdownStyle: getDropdownStyles(style), styleClassNames: styleClassNames }),
|
|
320
320
|
React.createElement(TabTrap, { focusNextCallback: () => { var _a; return triggerRef.current && ((_a = getFirstFocusable(triggerRef.current)) === null || _a === void 0 ? void 0 : _a.focus()); }, disabled: !open || !loopFocus })))))));
|
|
321
321
|
};
|
|
322
322
|
const isInteriorPosition = (position) => position.insetBlockEnd !== undefined;
|