@cloudscape-design/components-themeable 3.0.340 → 3.0.341
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/app-layout/visual-refresh/background.scss +1 -1
- package/lib/internal/scss/area-chart/styles.scss +1 -43
- package/lib/internal/scss/container/shared.scss +3 -1
- package/lib/internal/scss/expandable-section/styles.scss +49 -23
- package/lib/internal/scss/internal/components/cartesian-chart/styles.scss +14 -2
- package/lib/internal/scss/internal/components/chart-wrapper/styles.scss +38 -0
- package/lib/internal/scss/mixed-line-bar-chart/styles.scss +0 -44
- package/lib/internal/scss/pie-chart/styles.scss +0 -24
- package/lib/internal/scss/table/body-cell/styles.scss +6 -0
- package/lib/internal/template/app-layout/runtime-api.d.ts.map +1 -1
- package/lib/internal/template/app-layout/runtime-api.js +5 -4
- package/lib/internal/template/app-layout/runtime-api.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +69 -69
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +167 -167
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +69 -69
- package/lib/internal/template/area-chart/chart-container.d.ts.map +1 -1
- package/lib/internal/template/area-chart/chart-container.js +8 -15
- package/lib/internal/template/area-chart/chart-container.js.map +1 -1
- package/lib/internal/template/area-chart/internal.d.ts.map +1 -1
- package/lib/internal/template/area-chart/internal.js +2 -16
- package/lib/internal/template/area-chart/internal.js.map +1 -1
- package/lib/internal/template/area-chart/styles.css.js +6 -13
- package/lib/internal/template/area-chart/styles.scoped.css +10 -82
- package/lib/internal/template/area-chart/styles.selectors.js +6 -13
- package/lib/internal/template/expandable-section/styles.css.js +28 -31
- package/lib/internal/template/expandable-section/styles.scoped.css +85 -66
- package/lib/internal/template/expandable-section/styles.selectors.js +28 -31
- package/lib/internal/template/internal/components/cartesian-chart/chart-container.d.ts +11 -0
- package/lib/internal/template/internal/components/cartesian-chart/chart-container.d.ts.map +1 -0
- package/lib/internal/template/internal/components/cartesian-chart/chart-container.js +15 -0
- package/lib/internal/template/internal/components/cartesian-chart/chart-container.js.map +1 -0
- package/lib/internal/template/internal/components/cartesian-chart/styles.css.js +23 -21
- package/lib/internal/template/internal/components/cartesian-chart/styles.scoped.css +37 -25
- package/lib/internal/template/internal/components/cartesian-chart/styles.selectors.js +23 -21
- package/lib/internal/template/internal/components/chart-wrapper/index.d.ts +17 -0
- package/lib/internal/template/internal/components/chart-wrapper/index.d.ts.map +1 -0
- package/lib/internal/template/internal/components/chart-wrapper/index.js +26 -0
- package/lib/internal/template/internal/components/chart-wrapper/index.js.map +1 -0
- package/lib/internal/template/internal/components/chart-wrapper/styles.css.js +11 -0
- package/lib/internal/template/internal/components/chart-wrapper/styles.scoped.css +155 -0
- package/lib/internal/template/internal/components/chart-wrapper/styles.selectors.js +12 -0
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/plugins/drawers-controller.d.ts +2 -4
- package/lib/internal/template/internal/plugins/drawers-controller.d.ts.map +1 -1
- package/lib/internal/template/internal/plugins/drawers-controller.js.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/chart-container.js +12 -19
- package/lib/internal/template/mixed-line-bar-chart/chart-container.js.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/internal.d.ts.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/internal.js +10 -15
- package/lib/internal/template/mixed-line-bar-chart/internal.js.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/styles.css.js +11 -19
- package/lib/internal/template/mixed-line-bar-chart/styles.scoped.css +18 -94
- package/lib/internal/template/mixed-line-bar-chart/styles.selectors.js +11 -19
- package/lib/internal/template/pie-chart/index.d.ts.map +1 -1
- package/lib/internal/template/pie-chart/index.js +26 -14
- package/lib/internal/template/pie-chart/index.js.map +1 -1
- package/lib/internal/template/pie-chart/pie-chart.d.ts +5 -3
- package/lib/internal/template/pie-chart/pie-chart.d.ts.map +1 -1
- package/lib/internal/template/pie-chart/pie-chart.js +14 -40
- package/lib/internal/template/pie-chart/pie-chart.js.map +1 -1
- package/lib/internal/template/pie-chart/styles.css.js +23 -27
- package/lib/internal/template/pie-chart/styles.scoped.css +38 -94
- package/lib/internal/template/pie-chart/styles.selectors.js +23 -27
- package/lib/internal/template/table/body-cell/styles.css.js +28 -28
- package/lib/internal/template/table/body-cell/styles.scoped.css +75 -69
- package/lib/internal/template/table/body-cell/styles.selectors.js +28 -28
- package/lib/internal/template/test-utils/dom/mixed-line-bar-chart/index.js +2 -1
- package/lib/internal/template/test-utils/dom/mixed-line-bar-chart/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/pie-chart/index.js +2 -1
- package/lib/internal/template/test-utils/dom/pie-chart/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/mixed-line-bar-chart/index.js +2 -1
- package/lib/internal/template/test-utils/selectors/mixed-line-bar-chart/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/pie-chart/index.js +2 -1
- package/lib/internal/template/test-utils/selectors/pie-chart/index.js.map +1 -1
- package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/lib/internal/template/mixed-line-bar-chart/chart-filters.d.ts +0 -13
- package/lib/internal/template/mixed-line-bar-chart/chart-filters.d.ts.map +0 -1
- package/lib/internal/template/mixed-line-bar-chart/chart-filters.js +0 -22
- package/lib/internal/template/mixed-line-bar-chart/chart-filters.js.map +0 -1
|
@@ -30,7 +30,7 @@ div.background {
|
|
|
30
30
|
|
|
31
31
|
&.has-sticky-notifications {
|
|
32
32
|
height: calc(
|
|
33
|
-
var(#{custom-props.$notificationsGap}) + var(#{custom-props.$notificationsHeight}) + #{awsui.$space-s} + var(#{custom-props.$overlapHeight})
|
|
33
|
+
var(#{custom-props.$notificationsGap}) + var(#{custom-props.$notificationsHeight}) + #{awsui.$space-scaled-s} + var(#{custom-props.$overlapHeight})
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -3,53 +3,11 @@
|
|
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
@use '../internal/styles' as styles;
|
|
7
6
|
@use '../internal/styles/tokens' as awsui;
|
|
8
|
-
@use '../internal/hooks/focus-visible' as focus-visible;
|
|
9
7
|
@use './motion';
|
|
10
8
|
|
|
11
9
|
.root {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
position: relative;
|
|
15
|
-
display: block;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.has-default-filter {
|
|
19
|
-
& > :first-child {
|
|
20
|
-
flex: 280px 0 1;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.chart-container {
|
|
25
|
-
display: flex;
|
|
26
|
-
width: 100%;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.chart-container__vertical {
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
width: 100%;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.chart-container__horizontal {
|
|
37
|
-
display: flex;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.content {
|
|
41
|
-
display: flex;
|
|
42
|
-
position: relative;
|
|
43
|
-
justify-content: center;
|
|
44
|
-
align-items: center;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.content--reserve-filter {
|
|
48
|
-
margin-top: calc(2 * #{awsui.$font-body-m-line-height});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.content--reserve-legend {
|
|
52
|
-
margin-bottom: calc(2 * #{awsui.$font-body-m-line-height});
|
|
10
|
+
/* used in test-utils */
|
|
53
11
|
}
|
|
54
12
|
|
|
55
13
|
.series {
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
@use '../internal/styles' as styles;
|
|
7
7
|
@use '../internal/styles/tokens' as awsui;
|
|
8
8
|
|
|
9
|
-
$header-padding: awsui.$space-container-
|
|
9
|
+
$header-padding-horizontal: awsui.$space-container-horizontal;
|
|
10
|
+
$header-padding-vertical: awsui.$space-container-header-vertical;
|
|
11
|
+
$header-padding: $header-padding-vertical $header-padding-horizontal;
|
|
10
12
|
$footer-padding: awsui.$space-scaled-s awsui.$space-container-horizontal;
|
|
11
13
|
|
|
12
14
|
// HACK: Remediate focus border for expandable section
|
|
@@ -15,6 +15,11 @@ $icon-margin-left: '(#{awsui.$font-body-m-line-height} - #{$icon-width-normal})
|
|
|
15
15
|
$icon-margin-right-normal: '#{awsui.$space-xxs} + #{awsui.$border-divider-list-width}';
|
|
16
16
|
$icon-margin-right-medium: awsui.$space-xs;
|
|
17
17
|
|
|
18
|
+
// Total space occupied by the expand icon on the left and its margins.
|
|
19
|
+
// Useful to keep elements correctly aligned.
|
|
20
|
+
$icon-total-space-normal: calc(#{$icon-width-normal} + #{$icon-margin-left} + #{$icon-margin-right-normal});
|
|
21
|
+
$icon-total-space-medium: calc(#{$icon-width-medium} + #{$icon-margin-left} + #{$icon-margin-right-medium});
|
|
22
|
+
|
|
18
23
|
.root {
|
|
19
24
|
@include styles.styles-reset;
|
|
20
25
|
@include styles.text-wrapping;
|
|
@@ -50,15 +55,6 @@ $icon-margin-right-medium: awsui.$space-xs;
|
|
|
50
55
|
line-height: awsui.$font-body-m-line-height;
|
|
51
56
|
text-align: left;
|
|
52
57
|
|
|
53
|
-
&-default {
|
|
54
|
-
padding: awsui.$space-scaled-xxs awsui.$space-xxs;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&-footer {
|
|
58
|
-
// We remove left and right padding here to better align the carat icon
|
|
59
|
-
padding: awsui.$space-scaled-xxs 0;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
58
|
&-default,
|
|
63
59
|
&-footer {
|
|
64
60
|
border: awsui.$border-divider-section-width solid transparent;
|
|
@@ -83,8 +79,42 @@ $icon-margin-right-medium: awsui.$space-xs;
|
|
|
83
79
|
letter-spacing: awsui.$font-heading-s-letter-spacing;
|
|
84
80
|
}
|
|
85
81
|
|
|
82
|
+
&-default {
|
|
83
|
+
padding-top: awsui.$space-scaled-xxs;
|
|
84
|
+
padding-bottom: awsui.$space-scaled-xxs;
|
|
85
|
+
padding-right: awsui.$space-xxs;
|
|
86
|
+
&.header-deprecated {
|
|
87
|
+
padding-left: awsui.$space-xxs;
|
|
88
|
+
}
|
|
89
|
+
&:not(.header-deprecated) {
|
|
90
|
+
padding-left: calc(#{awsui.$space-xxs} + #{$icon-total-space-normal});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&-footer {
|
|
95
|
+
// We remove left and right padding here to better align the carat icon
|
|
96
|
+
padding-top: awsui.$space-scaled-xxs;
|
|
97
|
+
padding-bottom: awsui.$space-scaled-xxs;
|
|
98
|
+
padding-right: 0;
|
|
99
|
+
&.header-deprecated {
|
|
100
|
+
padding-left: 0;
|
|
101
|
+
}
|
|
102
|
+
&:not(.header-deprecated) {
|
|
103
|
+
padding-left: $icon-total-space-normal;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
86
107
|
&-container {
|
|
87
|
-
padding: container.$header-padding;
|
|
108
|
+
padding-top: container.$header-padding-vertical;
|
|
109
|
+
padding-bottom: container.$header-padding-vertical;
|
|
110
|
+
padding-right: container.$header-padding-horizontal;
|
|
111
|
+
|
|
112
|
+
&.header-deprecated {
|
|
113
|
+
padding-left: container.$header-padding-horizontal;
|
|
114
|
+
}
|
|
115
|
+
&:not(.header-deprecated) {
|
|
116
|
+
padding-left: calc(#{container.$header-padding-horizontal} + #{$icon-total-space-medium});
|
|
117
|
+
}
|
|
88
118
|
|
|
89
119
|
@include focus-visible.when-visible {
|
|
90
120
|
// HACK: Remediate focus border
|
|
@@ -113,16 +143,21 @@ $icon-margin-right-medium: awsui.$space-xs;
|
|
|
113
143
|
padding: 0;
|
|
114
144
|
}
|
|
115
145
|
|
|
146
|
+
&-button,
|
|
147
|
+
&-container-button {
|
|
148
|
+
@include focus-visible.when-visible {
|
|
149
|
+
@include styles.focus-highlight(0px);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
116
153
|
&-button {
|
|
117
154
|
box-sizing: border-box;
|
|
118
155
|
display: flex;
|
|
156
|
+
margin-left: calc(-1 * #{$icon-total-space-normal});
|
|
119
157
|
}
|
|
120
158
|
|
|
121
|
-
&-button,
|
|
122
159
|
&-container-button {
|
|
123
|
-
|
|
124
|
-
@include styles.focus-highlight(0px);
|
|
125
|
-
}
|
|
160
|
+
margin-left: calc(-1 * #{$icon-total-space-medium});
|
|
126
161
|
}
|
|
127
162
|
|
|
128
163
|
&-container {
|
|
@@ -189,12 +224,3 @@ $icon-margin-right-medium: awsui.$space-xs;
|
|
|
189
224
|
color: awsui.$color-text-expandable-section-hover;
|
|
190
225
|
}
|
|
191
226
|
}
|
|
192
|
-
|
|
193
|
-
// Indent the description by exactly the same amount as the header, which is pushed to the right by the icon.
|
|
194
|
-
.description-default,
|
|
195
|
-
.description-footer {
|
|
196
|
-
padding-left: calc(#{$icon-width-normal} + #{$icon-margin-left} + #{$icon-margin-right-normal});
|
|
197
|
-
}
|
|
198
|
-
.description-container {
|
|
199
|
-
padding-left: calc(#{$icon-width-medium} + #{$icon-margin-left} + #{$icon-margin-right-medium});
|
|
200
|
-
}
|
|
@@ -110,6 +110,18 @@
|
|
|
110
110
|
stroke-width: 2px;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
.
|
|
114
|
-
|
|
113
|
+
.chart-container {
|
|
114
|
+
display: flex;
|
|
115
|
+
width: 100%;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.chart-container__vertical {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
width: 100%;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.chart-container__horizontal {
|
|
126
|
+
display: flex;
|
|
115
127
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@use '../../styles/tokens' as awsui;
|
|
7
|
+
@use '../../styles' as styles;
|
|
8
|
+
|
|
9
|
+
.wrapper {
|
|
10
|
+
@include styles.styles-reset;
|
|
11
|
+
position: relative;
|
|
12
|
+
display: block;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.has-default-filter {
|
|
16
|
+
& > :first-child {
|
|
17
|
+
flex: 280px 0 1;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.content {
|
|
22
|
+
display: flex;
|
|
23
|
+
position: relative;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
align-items: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.content--reserve-filter {
|
|
29
|
+
margin-top: calc(2 * #{awsui.$font-body-m-line-height});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.content--reserve-legend {
|
|
33
|
+
margin-bottom: calc(2 * #{awsui.$font-body-m-line-height});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.filter-container {
|
|
37
|
+
/* used in test-utils */
|
|
38
|
+
}
|
|
@@ -8,53 +8,9 @@
|
|
|
8
8
|
@use './motion';
|
|
9
9
|
|
|
10
10
|
.root {
|
|
11
|
-
@include styles.styles-reset;
|
|
12
|
-
|
|
13
|
-
position: relative;
|
|
14
|
-
display: block;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.filter-container {
|
|
18
11
|
/* used in test-utils */
|
|
19
12
|
}
|
|
20
13
|
|
|
21
|
-
.has-default-filter {
|
|
22
|
-
& > :first-child {
|
|
23
|
-
flex: 280px 0 1;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.chart-container {
|
|
28
|
-
display: flex;
|
|
29
|
-
width: 100%;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.chart-container__vertical {
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
width: 100%;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.chart-container__horizontal {
|
|
40
|
-
display: flex;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.content {
|
|
44
|
-
display: flex;
|
|
45
|
-
position: relative;
|
|
46
|
-
justify-content: center;
|
|
47
|
-
align-items: center;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.content--reserve-filter {
|
|
51
|
-
margin-top: calc(2 * #{awsui.$font-body-m-line-height});
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.content--reserve-legend {
|
|
55
|
-
margin-bottom: calc(2 * #{awsui.$font-body-m-line-height});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
14
|
.series {
|
|
59
15
|
display: block;
|
|
60
16
|
stroke-width: awsui.$border-line-chart-width;
|
|
@@ -10,26 +10,10 @@
|
|
|
10
10
|
@use './motion';
|
|
11
11
|
|
|
12
12
|
.root {
|
|
13
|
-
@include styles.styles-reset;
|
|
14
|
-
display: block;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.filter-container {
|
|
18
13
|
/* used in test-utils */
|
|
19
14
|
}
|
|
20
15
|
|
|
21
|
-
.has-default-filter {
|
|
22
|
-
& > :first-child {
|
|
23
|
-
flex: 280px 0 1;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
16
|
.content {
|
|
28
|
-
display: flex;
|
|
29
|
-
position: relative;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
align-items: center;
|
|
32
|
-
|
|
33
17
|
@each $size in map.keys(constants.$pie-chart-sizes) {
|
|
34
18
|
&.content--#{$size} {
|
|
35
19
|
$sizes: map.get(constants.$pie-chart-sizes, $size);
|
|
@@ -41,14 +25,6 @@
|
|
|
41
25
|
}
|
|
42
26
|
}
|
|
43
27
|
}
|
|
44
|
-
|
|
45
|
-
&.content--reserve-filter {
|
|
46
|
-
margin-top: calc(2 * #{awsui.$font-body-m-line-height});
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&.content--reserve-legend {
|
|
50
|
-
margin-bottom: calc(2 * #{awsui.$font-body-m-line-height});
|
|
51
|
-
}
|
|
52
28
|
}
|
|
53
29
|
|
|
54
30
|
.status-container {
|
|
@@ -277,6 +277,9 @@ $border-placeholder: awsui.$border-item-width solid transparent;
|
|
|
277
277
|
'horizontal': calc(-1 * #{awsui.$space-scaled-xxs}),
|
|
278
278
|
)
|
|
279
279
|
);
|
|
280
|
+
&.sticky-cell {
|
|
281
|
+
position: sticky;
|
|
282
|
+
}
|
|
280
283
|
}
|
|
281
284
|
&:hover {
|
|
282
285
|
position: relative;
|
|
@@ -304,6 +307,9 @@ $border-placeholder: awsui.$border-item-width solid transparent;
|
|
|
304
307
|
padding-top: calc(#{$cell-vertical-padding} - calc(#{awsui.$border-divider-list-width}));
|
|
305
308
|
padding-bottom: calc(#{$cell-vertical-padding} - calc(#{awsui.$border-divider-list-width}));
|
|
306
309
|
}
|
|
310
|
+
&.sticky-cell {
|
|
311
|
+
position: sticky;
|
|
312
|
+
}
|
|
307
313
|
}
|
|
308
314
|
}
|
|
309
315
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-api.d.ts","sourceRoot":"lib/default/","sources":["app-layout/runtime-api.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAoBjD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC1B;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,KAAK,CAAC,mBAAmB,CAAC,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"runtime-api.d.ts","sourceRoot":"lib/default/","sources":["app-layout/runtime-api.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAoBjD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC1B;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,KAAK,CAAC,mBAAmB,CAAC,GAAG,aAAa,CAuBxF"}
|
|
@@ -15,10 +15,11 @@ function RuntimeContentWrapper({ mountContent, unmountContent }) {
|
|
|
15
15
|
export function convertRuntimeDrawers(drawers) {
|
|
16
16
|
const converted = drawers.map((_a) => {
|
|
17
17
|
var { mountContent, unmountContent, trigger } = _a, runtimeDrawer = __rest(_a, ["mountContent", "unmountContent", "trigger"]);
|
|
18
|
-
return (Object.assign(Object.assign({}, runtimeDrawer), { trigger:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
return (Object.assign(Object.assign({}, runtimeDrawer), { trigger: {
|
|
19
|
+
iconSvg: (
|
|
20
|
+
// eslint-disable-next-line react/no-danger
|
|
21
|
+
React.createElement("span", { dangerouslySetInnerHTML: { __html: trigger.iconSvg } })),
|
|
22
|
+
}, content: (React.createElement(RuntimeContentWrapper, { key: runtimeDrawer.id, mountContent: mountContent, unmountContent: unmountContent })) }));
|
|
22
23
|
});
|
|
23
24
|
converted.sort((a, b) => {
|
|
24
25
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-api.js","sourceRoot":"lib/default/","sources":["app-layout/runtime-api.tsx"],"names":[],"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/D,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,WAAC,OAAA,CAAC,MAAA,IAAI,CAAC,aAAa,mCAAI,CAAC,CAAC,IAAI,CAAC,CAAA,EAAA,CAAC;KAChE,CAAC;AACJ,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 { DrawerConfig as RuntimeDrawerConfig } from '../internal/plugins/drawers-controller';\nimport { DrawerItem } from './drawer/interfaces';\n\ninterface RuntimeContentWrapperProps {\n mountContent: RuntimeDrawerConfig['mountContent'];\n unmountContent: RuntimeDrawerConfig['unmountContent'];\n}\n\nfunction RuntimeContentWrapper({ mountContent, unmountContent }: RuntimeContentWrapperProps) {\n const ref = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const container = ref.current!;\n mountContent(container);\n return () => unmountContent(container);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return <div ref={ref}></div>;\n}\n\nexport interface DrawersLayout {\n before: Array<DrawerItem>;\n after: Array<DrawerItem>;\n}\n\nexport function convertRuntimeDrawers(drawers: Array<RuntimeDrawerConfig>): DrawersLayout {\n const converted = drawers.map(({ mountContent, unmountContent, trigger, ...runtimeDrawer }) => ({\n ...runtimeDrawer,\n trigger: {\n iconSvg: (\n // eslint-disable-next-line react/no-danger\n <span dangerouslySetInnerHTML={{ __html: trigger.iconSvg }} />\n ),\n },\n content: (\n <RuntimeContentWrapper key={runtimeDrawer.id} mountContent={mountContent} unmountContent={unmountContent} />\n ),\n }));\n converted.sort((a, b) => {\n if (b.orderPriority !== a.orderPriority) {\n return Math.sign((b.orderPriority ?? 0) - (a.orderPriority ?? 0));\n }\n return b.id < a.id ? 1 : -1;\n });\n return {\n before: converted.filter(item => (item.orderPriority ?? 0) > 0),\n after: converted.filter(item => (item.orderPriority ?? 0) <= 0),\n };\n}\n"]}
|
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"background": "
|
|
5
|
-
"scrolling-background": "awsui_scrolling-
|
|
6
|
-
"sticky-background": "awsui_sticky-
|
|
7
|
-
"has-sticky-notifications": "awsui_has-sticky-
|
|
8
|
-
"breadcrumbs": "
|
|
9
|
-
"has-sticky-background": "awsui_has-sticky-
|
|
10
|
-
"drawers-container": "awsui_drawers-
|
|
11
|
-
"has-open-drawer": "awsui_has-open-
|
|
12
|
-
"disable-body-scroll": "awsui_disable-body-
|
|
13
|
-
"drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-
|
|
14
|
-
"has-multiple-triggers": "awsui_has-multiple-
|
|
15
|
-
"drawers-trigger-content": "awsui_drawers-trigger-
|
|
16
|
-
"drawers-trigger": "awsui_drawers-
|
|
17
|
-
"drawer": "
|
|
18
|
-
"drawer-close-button": "awsui_drawer-close-
|
|
19
|
-
"drawer-content": "awsui_drawer-
|
|
20
|
-
"drawer-slider": "awsui_drawer-
|
|
21
|
-
"is-drawer-open": "awsui_is-drawer-
|
|
22
|
-
"content": "
|
|
23
|
-
"layout": "
|
|
24
|
-
"has-max-content-width": "awsui_has-max-content-
|
|
25
|
-
"content-type-dashboard": "awsui_content-type-
|
|
26
|
-
"is-overlap-disabled": "awsui_is-overlap-
|
|
27
|
-
"has-content-gap-left": "awsui_has-content-gap-
|
|
28
|
-
"has-content-gap-right": "awsui_has-content-gap-
|
|
29
|
-
"content-first-child-notifications": "awsui_content-first-child-
|
|
30
|
-
"has-breadcrumbs": "awsui_has-
|
|
31
|
-
"content-first-child-header": "awsui_content-first-child-
|
|
32
|
-
"has-header": "awsui_has-
|
|
33
|
-
"content-first-child-main": "awsui_content-first-child-
|
|
34
|
-
"disable-content-paddings": "awsui_disable-content-
|
|
35
|
-
"has-split-panel": "awsui_has-split-
|
|
36
|
-
"split-panel-position-bottom": "awsui_split-panel-position-
|
|
37
|
-
"block-body-scroll": "awsui_block-body-
|
|
38
|
-
"unfocusable": "
|
|
39
|
-
"container": "
|
|
40
|
-
"is-navigation-open": "awsui_is-navigation-
|
|
41
|
-
"is-tools-open": "awsui_is-tools-
|
|
42
|
-
"is-split-panel-open": "awsui_is-split-panel-
|
|
43
|
-
"split-panel-position-side": "awsui_split-panel-position-
|
|
44
|
-
"mobile-toolbar": "awsui_mobile-
|
|
45
|
-
"mobile-toolbar-nav": "awsui_mobile-toolbar-
|
|
46
|
-
"mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-
|
|
47
|
-
"mobile-toolbar-tools": "awsui_mobile-toolbar-
|
|
48
|
-
"navigation-container": "awsui_navigation-
|
|
49
|
-
"show-navigation": "awsui_show-
|
|
50
|
-
"animating": "
|
|
51
|
-
"showButtons": "
|
|
52
|
-
"navigation": "
|
|
53
|
-
"openNavigation": "
|
|
54
|
-
"animated-content": "awsui_animated-
|
|
55
|
-
"hide-navigation": "awsui_hide-
|
|
56
|
-
"notifications": "
|
|
57
|
-
"sticky-notifications": "awsui_sticky-
|
|
58
|
-
"split-panel-bottom": "awsui_split-panel-
|
|
59
|
-
"position-bottom": "awsui_position-
|
|
60
|
-
"openSplitPanelBottom": "
|
|
61
|
-
"split-panel-side": "awsui_split-panel-
|
|
62
|
-
"position-side": "awsui_position-
|
|
63
|
-
"openSplitPanelSide": "
|
|
64
|
-
"tools-container": "awsui_tools-
|
|
65
|
-
"tools": "
|
|
66
|
-
"openTools": "
|
|
67
|
-
"has-tools-form-persistence": "awsui_has-tools-form-
|
|
68
|
-
"hide-tools": "awsui_hide-
|
|
69
|
-
"show-tools": "awsui_show-
|
|
70
|
-
"has-tools-form": "awsui_has-tools-
|
|
71
|
-
"trigger": "
|
|
72
|
-
"selected": "
|
|
4
|
+
"background": "awsui_background_hyvsj_18m22_93",
|
|
5
|
+
"scrolling-background": "awsui_scrolling-background_hyvsj_18m22_96",
|
|
6
|
+
"sticky-background": "awsui_sticky-background_hyvsj_18m22_102",
|
|
7
|
+
"has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_18m22_110",
|
|
8
|
+
"breadcrumbs": "awsui_breadcrumbs_hyvsj_18m22_123",
|
|
9
|
+
"has-sticky-background": "awsui_has-sticky-background_hyvsj_18m22_133",
|
|
10
|
+
"drawers-container": "awsui_drawers-container_hyvsj_18m22_145",
|
|
11
|
+
"has-open-drawer": "awsui_has-open-drawer_hyvsj_18m22_157",
|
|
12
|
+
"disable-body-scroll": "awsui_disable-body-scroll_hyvsj_18m22_191",
|
|
13
|
+
"drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_18m22_196",
|
|
14
|
+
"has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_18m22_214",
|
|
15
|
+
"drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_18m22_246",
|
|
16
|
+
"drawers-trigger": "awsui_drawers-trigger_hyvsj_18m22_246",
|
|
17
|
+
"drawer": "awsui_drawer_hyvsj_18m22_145",
|
|
18
|
+
"drawer-close-button": "awsui_drawer-close-button_hyvsj_18m22_295",
|
|
19
|
+
"drawer-content": "awsui_drawer-content_hyvsj_18m22_300",
|
|
20
|
+
"drawer-slider": "awsui_drawer-slider_hyvsj_18m22_305",
|
|
21
|
+
"is-drawer-open": "awsui_is-drawer-open_hyvsj_18m22_312",
|
|
22
|
+
"content": "awsui_content_hyvsj_18m22_337",
|
|
23
|
+
"layout": "awsui_layout_hyvsj_18m22_358",
|
|
24
|
+
"has-max-content-width": "awsui_has-max-content-width_hyvsj_18m22_441",
|
|
25
|
+
"content-type-dashboard": "awsui_content-type-dashboard_hyvsj_18m22_456",
|
|
26
|
+
"is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_18m22_473",
|
|
27
|
+
"has-content-gap-left": "awsui_has-content-gap-left_hyvsj_18m22_505",
|
|
28
|
+
"has-content-gap-right": "awsui_has-content-gap-right_hyvsj_18m22_508",
|
|
29
|
+
"content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_18m22_518",
|
|
30
|
+
"has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_18m22_521",
|
|
31
|
+
"content-first-child-header": "awsui_content-first-child-header_hyvsj_18m22_524",
|
|
32
|
+
"has-header": "awsui_has-header_hyvsj_18m22_524",
|
|
33
|
+
"content-first-child-main": "awsui_content-first-child-main_hyvsj_18m22_545",
|
|
34
|
+
"disable-content-paddings": "awsui_disable-content-paddings_hyvsj_18m22_545",
|
|
35
|
+
"has-split-panel": "awsui_has-split-panel_hyvsj_18m22_588",
|
|
36
|
+
"split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_18m22_588",
|
|
37
|
+
"block-body-scroll": "awsui_block-body-scroll_hyvsj_18m22_604",
|
|
38
|
+
"unfocusable": "awsui_unfocusable_hyvsj_18m22_609",
|
|
39
|
+
"container": "awsui_container_hyvsj_18m22_619",
|
|
40
|
+
"is-navigation-open": "awsui_is-navigation-open_hyvsj_18m22_644",
|
|
41
|
+
"is-tools-open": "awsui_is-tools-open_hyvsj_18m22_647",
|
|
42
|
+
"is-split-panel-open": "awsui_is-split-panel-open_hyvsj_18m22_647",
|
|
43
|
+
"split-panel-position-side": "awsui_split-panel-position-side_hyvsj_18m22_647",
|
|
44
|
+
"mobile-toolbar": "awsui_mobile-toolbar_hyvsj_18m22_656",
|
|
45
|
+
"mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_18m22_672",
|
|
46
|
+
"mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_18m22_676",
|
|
47
|
+
"mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_18m22_680",
|
|
48
|
+
"navigation-container": "awsui_navigation-container_hyvsj_18m22_689",
|
|
49
|
+
"show-navigation": "awsui_show-navigation_hyvsj_18m22_733",
|
|
50
|
+
"animating": "awsui_animating_hyvsj_18m22_755",
|
|
51
|
+
"showButtons": "awsui_showButtons_hyvsj_18m22_1",
|
|
52
|
+
"navigation": "awsui_navigation_hyvsj_18m22_689",
|
|
53
|
+
"openNavigation": "awsui_openNavigation_hyvsj_18m22_1",
|
|
54
|
+
"animated-content": "awsui_animated-content_hyvsj_18m22_816",
|
|
55
|
+
"hide-navigation": "awsui_hide-navigation_hyvsj_18m22_825",
|
|
56
|
+
"notifications": "awsui_notifications_hyvsj_18m22_835",
|
|
57
|
+
"sticky-notifications": "awsui_sticky-notifications_hyvsj_18m22_841",
|
|
58
|
+
"split-panel-bottom": "awsui_split-panel-bottom_hyvsj_18m22_858",
|
|
59
|
+
"position-bottom": "awsui_position-bottom_hyvsj_18m22_904",
|
|
60
|
+
"openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_18m22_1",
|
|
61
|
+
"split-panel-side": "awsui_split-panel-side_hyvsj_18m22_933",
|
|
62
|
+
"position-side": "awsui_position-side_hyvsj_18m22_961",
|
|
63
|
+
"openSplitPanelSide": "awsui_openSplitPanelSide_hyvsj_18m22_1",
|
|
64
|
+
"tools-container": "awsui_tools-container_hyvsj_18m22_998",
|
|
65
|
+
"tools": "awsui_tools_hyvsj_18m22_998",
|
|
66
|
+
"openTools": "awsui_openTools_hyvsj_18m22_1",
|
|
67
|
+
"has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_18m22_1092",
|
|
68
|
+
"hide-tools": "awsui_hide-tools_hyvsj_18m22_1102",
|
|
69
|
+
"show-tools": "awsui_show-tools_hyvsj_18m22_1114",
|
|
70
|
+
"has-tools-form": "awsui_has-tools-form_hyvsj_18m22_1092",
|
|
71
|
+
"trigger": "awsui_trigger_hyvsj_18m22_1181",
|
|
72
|
+
"selected": "awsui_selected_hyvsj_18m22_1220"
|
|
73
73
|
};
|
|
74
74
|
|