@cloudscape-design/components-themeable 3.0.130 → 3.0.131
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/main.scss +23 -12
- package/lib/internal/scss/app-layout/visual-refresh/split-panel.scss +15 -6
- package/lib/internal/scss/attribute-editor/styles.scss +5 -1
- package/lib/internal/scss/breadcrumb-group/item/styles.scss +7 -1
- package/lib/internal/scss/date-range-picker/styles.scss +0 -4
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +27 -26
- package/lib/internal/scss/table/styles.scss +4 -2
- package/lib/internal/scss/tabs/styles.scss +15 -11
- package/lib/internal/scss/tabs/tab-header-bar.scss +1 -0
- package/lib/internal/template/annotation-context/annotation/annotation-popover.d.ts.map +1 -1
- package/lib/internal/template/annotation-context/annotation/annotation-popover.js +8 -2
- package/lib/internal/template/annotation-context/annotation/annotation-popover.js.map +1 -1
- package/lib/internal/template/annotation-context/annotation/annotation-trigger.d.ts +2 -0
- package/lib/internal/template/annotation-context/annotation/annotation-trigger.d.ts.map +1 -1
- package/lib/internal/template/annotation-context/annotation/annotation-trigger.js +2 -2
- package/lib/internal/template/annotation-context/annotation/annotation-trigger.js.map +1 -1
- package/lib/internal/template/annotation-context/annotation/closed-annotation.d.ts +3 -1
- package/lib/internal/template/annotation-context/annotation/closed-annotation.d.ts.map +1 -1
- package/lib/internal/template/annotation-context/annotation/closed-annotation.js +2 -2
- package/lib/internal/template/annotation-context/annotation/closed-annotation.js.map +1 -1
- package/lib/internal/template/annotation-context/annotation/open-annotation.d.ts.map +1 -1
- package/lib/internal/template/annotation-context/annotation/open-annotation.js +1 -1
- package/lib/internal/template/annotation-context/annotation/open-annotation.js.map +1 -1
- package/lib/internal/template/annotation-context/annotation/styles.css.js +24 -24
- package/lib/internal/template/annotation-context/annotation/styles.scoped.css +30 -30
- package/lib/internal/template/annotation-context/annotation/styles.selectors.js +24 -24
- package/lib/internal/template/annotation-context/index.d.ts.map +1 -1
- package/lib/internal/template/annotation-context/index.js +3 -1
- package/lib/internal/template/annotation-context/index.js.map +1 -1
- package/lib/internal/template/annotation-context/interfaces.d.ts +1 -1
- package/lib/internal/template/annotation-context/interfaces.d.ts.map +1 -1
- package/lib/internal/template/annotation-context/interfaces.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/main.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/main.js +8 -3
- package/lib/internal/template/app-layout/visual-refresh/main.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +60 -60
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +255 -237
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +60 -60
- package/lib/internal/template/area-chart/internal.d.ts.map +1 -1
- package/lib/internal/template/area-chart/internal.js +5 -0
- package/lib/internal/template/area-chart/internal.js.map +1 -1
- package/lib/internal/template/area-chart/model/index.d.ts +1 -0
- package/lib/internal/template/area-chart/model/index.d.ts.map +1 -1
- package/lib/internal/template/area-chart/model/index.js.map +1 -1
- package/lib/internal/template/area-chart/model/use-chart-model.d.ts.map +1 -1
- package/lib/internal/template/area-chart/model/use-chart-model.js +8 -1
- package/lib/internal/template/area-chart/model/use-chart-model.js.map +1 -1
- package/lib/internal/template/attribute-editor/row.d.ts.map +1 -1
- package/lib/internal/template/attribute-editor/row.js +4 -3
- package/lib/internal/template/attribute-editor/row.js.map +1 -1
- package/lib/internal/template/attribute-editor/styles.css.js +13 -12
- package/lib/internal/template/attribute-editor/styles.scoped.css +27 -23
- package/lib/internal/template/attribute-editor/styles.selectors.js +13 -12
- package/lib/internal/template/breadcrumb-group/interfaces.d.ts +1 -0
- package/lib/internal/template/breadcrumb-group/interfaces.d.ts.map +1 -1
- package/lib/internal/template/breadcrumb-group/interfaces.js.map +1 -1
- package/lib/internal/template/breadcrumb-group/internal.d.ts.map +1 -1
- package/lib/internal/template/breadcrumb-group/internal.js +1 -1
- package/lib/internal/template/breadcrumb-group/internal.js.map +1 -1
- package/lib/internal/template/breadcrumb-group/item/item.d.ts +1 -1
- package/lib/internal/template/breadcrumb-group/item/item.d.ts.map +1 -1
- package/lib/internal/template/breadcrumb-group/item/item.js +68 -8
- package/lib/internal/template/breadcrumb-group/item/item.js.map +1 -1
- package/lib/internal/template/breadcrumb-group/item/styles.css.js +9 -7
- package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +26 -16
- package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +9 -7
- package/lib/internal/template/code-editor/index.d.ts.map +1 -1
- package/lib/internal/template/code-editor/index.js +11 -16
- package/lib/internal/template/code-editor/index.js.map +1 -1
- package/lib/internal/template/code-editor/interfaces.d.ts +12 -1
- package/lib/internal/template/code-editor/interfaces.d.ts.map +1 -1
- package/lib/internal/template/code-editor/interfaces.js.map +1 -1
- package/lib/internal/template/code-editor/status-bar.d.ts.map +1 -1
- package/lib/internal/template/code-editor/status-bar.js +7 -1
- package/lib/internal/template/code-editor/status-bar.js.map +1 -1
- package/lib/internal/template/code-editor/util.js +1 -1
- package/lib/internal/template/code-editor/util.js.map +1 -1
- package/lib/internal/template/container/internal.d.ts.map +1 -1
- package/lib/internal/template/container/internal.js +7 -4
- package/lib/internal/template/container/internal.js.map +1 -1
- package/lib/internal/template/date-range-picker/calendar/grids/index.d.ts +0 -1
- package/lib/internal/template/date-range-picker/calendar/grids/index.d.ts.map +1 -1
- package/lib/internal/template/date-range-picker/calendar/grids/index.js +2 -14
- package/lib/internal/template/date-range-picker/calendar/grids/index.js.map +1 -1
- package/lib/internal/template/date-range-picker/calendar/index.d.ts +6 -4
- package/lib/internal/template/date-range-picker/calendar/index.d.ts.map +1 -1
- package/lib/internal/template/date-range-picker/calendar/index.js +111 -123
- package/lib/internal/template/date-range-picker/calendar/index.js.map +1 -1
- package/lib/internal/template/date-range-picker/calendar/utils.d.ts +4 -0
- package/lib/internal/template/date-range-picker/calendar/utils.d.ts.map +1 -0
- package/lib/internal/template/date-range-picker/calendar/utils.js +31 -0
- package/lib/internal/template/date-range-picker/calendar/utils.js.map +1 -0
- package/lib/internal/template/date-range-picker/dropdown.d.ts +2 -1
- package/lib/internal/template/date-range-picker/dropdown.d.ts.map +1 -1
- package/lib/internal/template/date-range-picker/dropdown.js +8 -6
- package/lib/internal/template/date-range-picker/dropdown.js.map +1 -1
- package/lib/internal/template/date-range-picker/index.d.ts.map +1 -1
- package/lib/internal/template/date-range-picker/index.js +2 -2
- package/lib/internal/template/date-range-picker/index.js.map +1 -1
- package/lib/internal/template/date-range-picker/interfaces.d.ts +14 -4
- package/lib/internal/template/date-range-picker/interfaces.d.ts.map +1 -1
- package/lib/internal/template/date-range-picker/interfaces.js.map +1 -1
- package/lib/internal/template/date-range-picker/styles.css.js +38 -38
- package/lib/internal/template/date-range-picker/styles.scoped.css +45 -50
- package/lib/internal/template/date-range-picker/styles.selectors.js +38 -38
- package/lib/internal/template/date-range-picker/utils.d.ts +2 -8
- package/lib/internal/template/date-range-picker/utils.d.ts.map +1 -1
- package/lib/internal/template/date-range-picker/utils.js +17 -12
- package/lib/internal/template/date-range-picker/utils.js.map +1 -1
- package/lib/internal/template/flashbar/styles.css.js +33 -33
- package/lib/internal/template/flashbar/styles.scoped.css +121 -121
- package/lib/internal/template/flashbar/styles.selectors.js +33 -33
- package/lib/internal/template/internal/base-component/styles.scoped.css +4 -3
- package/lib/internal/template/internal/components/dropdown/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/dropdown/index.js +2 -9
- package/lib/internal/template/internal/components/dropdown/index.js.map +1 -1
- package/lib/internal/template/internal/components/dropdown-status/index.d.ts +1 -4
- package/lib/internal/template/internal/components/dropdown-status/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/dropdown-status/index.js +3 -5
- package/lib/internal/template/internal/components/dropdown-status/index.js.map +1 -1
- package/lib/internal/template/internal/components/filtering-token/index.d.ts +2 -1
- package/lib/internal/template/internal/components/filtering-token/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/filtering-token/index.js +2 -2
- package/lib/internal/template/internal/components/filtering-token/index.js.map +1 -1
- package/lib/internal/template/internal/components/option/index.js +4 -4
- package/lib/internal/template/internal/components/option/index.js.map +1 -1
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/lib/internal/template/internal/generated/custom-css-properties/index.js +27 -26
- package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
- package/lib/internal/template/internal/hooks/use-analytics/index.d.ts +2 -0
- package/lib/internal/template/internal/hooks/use-analytics/index.d.ts.map +1 -0
- package/lib/internal/template/internal/hooks/use-analytics/index.js +16 -0
- package/lib/internal/template/internal/hooks/use-analytics/index.js.map +1 -0
- package/lib/internal/template/internal/utils/date-time/format-date-time.d.ts +2 -0
- package/lib/internal/template/internal/utils/date-time/format-date-time.d.ts.map +1 -0
- package/lib/internal/template/internal/utils/date-time/format-date-time.js +8 -0
- package/lib/internal/template/internal/utils/date-time/format-date-time.js.map +1 -0
- package/lib/internal/template/internal/utils/date-time/index.d.ts +2 -1
- package/lib/internal/template/internal/utils/date-time/index.d.ts.map +1 -1
- package/lib/internal/template/internal/utils/date-time/index.js +2 -1
- package/lib/internal/template/internal/utils/date-time/index.js.map +1 -1
- package/lib/internal/template/internal/utils/date-time/join-date-time.d.ts +4 -0
- package/lib/internal/template/internal/utils/date-time/join-date-time.d.ts.map +1 -1
- package/lib/internal/template/internal/utils/date-time/join-date-time.js +4 -0
- package/lib/internal/template/internal/utils/date-time/join-date-time.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 +14 -5
- package/lib/internal/template/mixed-line-bar-chart/chart-container.js.map +1 -1
- package/lib/internal/template/pie-chart/pie-chart.d.ts.map +1 -1
- package/lib/internal/template/pie-chart/pie-chart.js +10 -1
- package/lib/internal/template/pie-chart/pie-chart.js.map +1 -1
- package/lib/internal/template/popover/body.d.ts +2 -1
- package/lib/internal/template/popover/body.d.ts.map +1 -1
- package/lib/internal/template/popover/body.js +2 -2
- package/lib/internal/template/popover/body.js.map +1 -1
- package/lib/internal/template/property-filter/interfaces.d.ts +1 -0
- package/lib/internal/template/property-filter/interfaces.d.ts.map +1 -1
- package/lib/internal/template/property-filter/interfaces.js.map +1 -1
- package/lib/internal/template/property-filter/token.d.ts.map +1 -1
- package/lib/internal/template/property-filter/token.js +1 -1
- package/lib/internal/template/property-filter/token.js.map +1 -1
- package/lib/internal/template/select/parts/filter.d.ts +1 -1
- package/lib/internal/template/select/utils/use-select.d.ts +1 -7
- package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
- package/lib/internal/template/select/utils/use-select.js +1 -1
- package/lib/internal/template/select/utils/use-select.js.map +1 -1
- package/lib/internal/template/table/styles.css.js +34 -34
- package/lib/internal/template/table/styles.scoped.css +42 -40
- package/lib/internal/template/table/styles.selectors.js +34 -34
- package/lib/internal/template/tabs/index.d.ts.map +1 -1
- package/lib/internal/template/tabs/index.js +9 -11
- package/lib/internal/template/tabs/index.js.map +1 -1
- package/lib/internal/template/tabs/styles.css.js +21 -21
- package/lib/internal/template/tabs/styles.scoped.css +48 -41
- package/lib/internal/template/tabs/styles.selectors.js +21 -21
- package/lib/internal/template/tabs/tab-header-bar.d.ts +4 -0
- package/lib/internal/template/tabs/tab-header-bar.d.ts.map +1 -1
- package/lib/internal/template/tabs/tab-header-bar.js +5 -1
- package/lib/internal/template/tabs/tab-header-bar.js.map +1 -1
- package/lib/internal/template/tag-editor/internal.d.ts.map +1 -1
- package/lib/internal/template/tag-editor/internal.js +6 -7
- package/lib/internal/template/tag-editor/internal.js.map +1 -1
- package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
- package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/index.d.ts.map +1 -1
- package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/index.js +3 -1
- package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/index.js.map +1 -1
- package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/task.d.ts.map +1 -1
- package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/task.js +2 -1
- package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/task.js.map +1 -1
- package/lib/internal/template/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
- package/lib/internal/template/tutorial-panel/components/tutorial-list/index.js +2 -2
- package/lib/internal/template/tutorial-panel/components/tutorial-list/index.js.map +1 -1
- package/lib/internal/template/tutorial-panel/interfaces.d.ts +2 -0
- package/lib/internal/template/tutorial-panel/interfaces.d.ts.map +1 -1
- package/lib/internal/template/tutorial-panel/interfaces.js.map +1 -1
- package/lib/internal/template/wizard/index.d.ts.map +1 -1
- package/lib/internal/template/wizard/index.js +9 -5
- package/lib/internal/template/wizard/index.js.map +1 -1
- package/lib/internal/template/wizard/wizard-form.d.ts.map +1 -1
- package/lib/internal/template/wizard/wizard-form.js +7 -2
- package/lib/internal/template/wizard/wizard-form.js.map +1 -1
- package/package.json +1 -1
- package/lib/internal/template/date-range-picker/calendar/use-date-time.d.ts +0 -9
- package/lib/internal/template/date-range-picker/calendar/use-date-time.d.ts.map +0 -1
- package/lib/internal/template/date-range-picker/calendar/use-date-time.js +0 -16
- package/lib/internal/template/date-range-picker/calendar/use-date-time.js.map +0 -1
|
@@ -90,11 +90,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.
|
|
93
|
+
.awsui_arrow_1hpp3_1s9s9_93:not(#\9) {
|
|
94
94
|
width: 20px;
|
|
95
95
|
height: 10px;
|
|
96
96
|
}
|
|
97
|
-
.awsui_arrow-
|
|
97
|
+
.awsui_arrow-outer_1hpp3_1s9s9_97:not(#\9), .awsui_arrow-inner_1hpp3_1s9s9_97:not(#\9) {
|
|
98
98
|
position: absolute;
|
|
99
99
|
overflow: hidden;
|
|
100
100
|
width: 20px;
|
|
@@ -102,7 +102,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
102
102
|
top: 0;
|
|
103
103
|
left: 0;
|
|
104
104
|
}
|
|
105
|
-
.awsui_arrow-
|
|
105
|
+
.awsui_arrow-outer_1hpp3_1s9s9_97:not(#\9)::after, .awsui_arrow-inner_1hpp3_1s9s9_97:not(#\9)::after {
|
|
106
106
|
content: "";
|
|
107
107
|
box-sizing: border-box;
|
|
108
108
|
display: inline-block;
|
|
@@ -115,26 +115,26 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
115
115
|
transform: rotate(45deg);
|
|
116
116
|
transform-origin: 0 100%;
|
|
117
117
|
}
|
|
118
|
-
.awsui_arrow-
|
|
118
|
+
.awsui_arrow-outer_1hpp3_1s9s9_97:not(#\9)::after {
|
|
119
119
|
background-color: var(--color-border-status-info-0iedcr, #0073bb);
|
|
120
120
|
}
|
|
121
|
-
.awsui_arrow-
|
|
121
|
+
.awsui_arrow-inner_1hpp3_1s9s9_97:not(#\9) {
|
|
122
122
|
top: 2px;
|
|
123
123
|
}
|
|
124
|
-
.awsui_arrow-
|
|
124
|
+
.awsui_arrow-inner_1hpp3_1s9s9_97:not(#\9)::after {
|
|
125
125
|
border-radius: 1px 0 0 0;
|
|
126
126
|
background-color: var(--color-background-status-info-yq3r41, #f1faff);
|
|
127
127
|
}
|
|
128
|
-
.awsui_arrow-position-right-
|
|
128
|
+
.awsui_arrow-position-right-top_1hpp3_1s9s9_128 > .awsui_arrow-outer_1hpp3_1s9s9_97:not(#\9)::after, .awsui_arrow-position-right-bottom_1hpp3_1s9s9_128 > .awsui_arrow-outer_1hpp3_1s9s9_97:not(#\9)::after {
|
|
129
129
|
box-shadow: -0.71px 0.71px 4px -2px var(--color-shadow-default-94w2kz, rgba(0, 28, 36, 0.5));
|
|
130
130
|
}
|
|
131
|
-
.awsui_arrow-position-left-
|
|
131
|
+
.awsui_arrow-position-left-top_1hpp3_1s9s9_131 > .awsui_arrow-outer_1hpp3_1s9s9_97:not(#\9)::after, .awsui_arrow-position-left-bottom_1hpp3_1s9s9_131 > .awsui_arrow-outer_1hpp3_1s9s9_97:not(#\9)::after {
|
|
132
132
|
box-shadow: 0.71px -0.71px 4px -2px var(--color-shadow-default-94w2kz, rgba(0, 28, 36, 0.5));
|
|
133
133
|
}
|
|
134
|
-
.awsui_arrow-position-top-
|
|
134
|
+
.awsui_arrow-position-top-center_1hpp3_1s9s9_134 > .awsui_arrow-outer_1hpp3_1s9s9_97:not(#\9)::after, .awsui_arrow-position-top-responsive_1hpp3_1s9s9_134 > .awsui_arrow-outer_1hpp3_1s9s9_97:not(#\9)::after {
|
|
135
135
|
box-shadow: -0.71px -0.71px 4px -2px var(--color-shadow-default-94w2kz, rgba(0, 28, 36, 0.5));
|
|
136
136
|
}
|
|
137
|
-
.awsui_arrow-position-bottom-
|
|
137
|
+
.awsui_arrow-position-bottom-center_1hpp3_1s9s9_137 > .awsui_arrow-outer_1hpp3_1s9s9_97:not(#\9)::after, .awsui_arrow-position-bottom-responsive_1hpp3_1s9s9_137 > .awsui_arrow-outer_1hpp3_1s9s9_97:not(#\9)::after {
|
|
138
138
|
box-shadow: 0.71px 0.71px 4px -2px var(--color-shadow-default-94w2kz, rgba(0, 28, 36, 0.5));
|
|
139
139
|
}
|
|
140
140
|
|
|
@@ -142,37 +142,37 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
142
142
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
143
143
|
SPDX-License-Identifier: Apache-2.0
|
|
144
144
|
*/
|
|
145
|
-
.
|
|
146
|
-
.awsui_next-
|
|
147
|
-
.awsui_previous-
|
|
148
|
-
.awsui_finish-
|
|
149
|
-
.
|
|
150
|
-
.awsui_step-counter-
|
|
151
|
-
.
|
|
145
|
+
.awsui_annotation_1hpp3_1s9s9_145:not(#\9),
|
|
146
|
+
.awsui_next-button_1hpp3_1s9s9_146:not(#\9),
|
|
147
|
+
.awsui_previous-button_1hpp3_1s9s9_147:not(#\9),
|
|
148
|
+
.awsui_finish-button_1hpp3_1s9s9_148:not(#\9),
|
|
149
|
+
.awsui_header_1hpp3_1s9s9_149:not(#\9),
|
|
150
|
+
.awsui_step-counter-content_1hpp3_1s9s9_150:not(#\9),
|
|
151
|
+
.awsui_content_1hpp3_1s9s9_151:not(#\9) {
|
|
152
152
|
/* used in test-utils */
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
.
|
|
155
|
+
.awsui_description_1hpp3_1s9s9_155:not(#\9) {
|
|
156
156
|
overflow: hidden;
|
|
157
157
|
margin-top: var(--space-xxs-ynfts5, 4px);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
.
|
|
160
|
+
.awsui_actionBar_1hpp3_1s9s9_160:not(#\9) {
|
|
161
161
|
display: flex;
|
|
162
162
|
justify-content: space-between;
|
|
163
163
|
align-items: center;
|
|
164
164
|
position: relative;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
.
|
|
167
|
+
.awsui_stepCounter_1hpp3_1s9s9_167:not(#\9) {
|
|
168
168
|
margin-right: 20px;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
.
|
|
171
|
+
.awsui_divider_1hpp3_1s9s9_171:not(#\9) {
|
|
172
172
|
border-bottom: var(--border-divider-section-width-5a4cv1, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
.
|
|
175
|
+
.awsui_hotspot_1hpp3_1s9s9_175:not(#\9) {
|
|
176
176
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
177
177
|
border-collapse: separate;
|
|
178
178
|
border-spacing: 0;
|
|
@@ -211,21 +211,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
211
211
|
border: none;
|
|
212
212
|
padding: 0;
|
|
213
213
|
cursor: pointer;
|
|
214
|
-
scroll-margin: var(--awsui-content-scroll-margin-
|
|
214
|
+
scroll-margin: var(--awsui-content-scroll-margin-5mks97, 40px 0 0 0);
|
|
215
215
|
width: 16px;
|
|
216
216
|
height: 16px;
|
|
217
217
|
}
|
|
218
|
-
.
|
|
218
|
+
.awsui_hotspot_1hpp3_1s9s9_175:not(#\9):focus {
|
|
219
219
|
outline: none;
|
|
220
220
|
}
|
|
221
|
-
.
|
|
221
|
+
.awsui_hotspot_1hpp3_1s9s9_175[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
222
222
|
position: relative;
|
|
223
223
|
}
|
|
224
|
-
.
|
|
224
|
+
.awsui_hotspot_1hpp3_1s9s9_175[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
225
225
|
outline: 2px dotted transparent;
|
|
226
226
|
outline-offset: calc(2px - 1px);
|
|
227
227
|
}
|
|
228
|
-
.
|
|
228
|
+
.awsui_hotspot_1hpp3_1s9s9_175[data-awsui-focus-visible=true]:not(#\9):focus::before {
|
|
229
229
|
content: " ";
|
|
230
230
|
display: block;
|
|
231
231
|
position: absolute;
|
|
@@ -236,13 +236,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
236
236
|
border-radius: var(--border-radius-control-circular-focus-ring-l88ib6, 50%);
|
|
237
237
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-n5kd8g, #0073bb);
|
|
238
238
|
}
|
|
239
|
-
.
|
|
239
|
+
.awsui_hotspot_1hpp3_1s9s9_175 > .awsui_icon_1hpp3_1s9s9_213:not(#\9) {
|
|
240
240
|
position: relative;
|
|
241
241
|
stroke: var(--color-text-link-default-753y4e, #0073bb);
|
|
242
242
|
}
|
|
243
|
-
.
|
|
243
|
+
.awsui_hotspot_1hpp3_1s9s9_175:not(#\9):hover > .awsui_icon_1hpp3_1s9s9_213 {
|
|
244
244
|
stroke: var(--color-text-link-hover-ok01xk, #0073bb);
|
|
245
245
|
}
|
|
246
|
-
.
|
|
246
|
+
.awsui_hotspot_1hpp3_1s9s9_175:not(#\9):active > .awsui_icon_1hpp3_1s9s9_213 {
|
|
247
247
|
stroke: var(--color-text-link-default-753y4e, #0073bb);
|
|
248
248
|
}
|
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"arrow": "
|
|
6
|
-
"arrow-outer": "awsui_arrow-
|
|
7
|
-
"arrow-inner": "awsui_arrow-
|
|
8
|
-
"arrow-position-right-top": "awsui_arrow-position-right-
|
|
9
|
-
"arrow-position-right-bottom": "awsui_arrow-position-right-
|
|
10
|
-
"arrow-position-left-top": "awsui_arrow-position-left-
|
|
11
|
-
"arrow-position-left-bottom": "awsui_arrow-position-left-
|
|
12
|
-
"arrow-position-top-center": "awsui_arrow-position-top-
|
|
13
|
-
"arrow-position-top-responsive": "awsui_arrow-position-top-
|
|
14
|
-
"arrow-position-bottom-center": "awsui_arrow-position-bottom-
|
|
15
|
-
"arrow-position-bottom-responsive": "awsui_arrow-position-bottom-
|
|
16
|
-
"annotation": "
|
|
17
|
-
"next-button": "awsui_next-
|
|
18
|
-
"previous-button": "awsui_previous-
|
|
19
|
-
"finish-button": "awsui_finish-
|
|
20
|
-
"header": "
|
|
21
|
-
"step-counter-content": "awsui_step-counter-
|
|
22
|
-
"content": "
|
|
23
|
-
"description": "
|
|
24
|
-
"actionBar": "
|
|
25
|
-
"stepCounter": "
|
|
26
|
-
"divider": "
|
|
27
|
-
"hotspot": "
|
|
28
|
-
"icon": "
|
|
5
|
+
"arrow": "awsui_arrow_1hpp3_1s9s9_93",
|
|
6
|
+
"arrow-outer": "awsui_arrow-outer_1hpp3_1s9s9_97",
|
|
7
|
+
"arrow-inner": "awsui_arrow-inner_1hpp3_1s9s9_97",
|
|
8
|
+
"arrow-position-right-top": "awsui_arrow-position-right-top_1hpp3_1s9s9_128",
|
|
9
|
+
"arrow-position-right-bottom": "awsui_arrow-position-right-bottom_1hpp3_1s9s9_128",
|
|
10
|
+
"arrow-position-left-top": "awsui_arrow-position-left-top_1hpp3_1s9s9_131",
|
|
11
|
+
"arrow-position-left-bottom": "awsui_arrow-position-left-bottom_1hpp3_1s9s9_131",
|
|
12
|
+
"arrow-position-top-center": "awsui_arrow-position-top-center_1hpp3_1s9s9_134",
|
|
13
|
+
"arrow-position-top-responsive": "awsui_arrow-position-top-responsive_1hpp3_1s9s9_134",
|
|
14
|
+
"arrow-position-bottom-center": "awsui_arrow-position-bottom-center_1hpp3_1s9s9_137",
|
|
15
|
+
"arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_1hpp3_1s9s9_137",
|
|
16
|
+
"annotation": "awsui_annotation_1hpp3_1s9s9_145",
|
|
17
|
+
"next-button": "awsui_next-button_1hpp3_1s9s9_146",
|
|
18
|
+
"previous-button": "awsui_previous-button_1hpp3_1s9s9_147",
|
|
19
|
+
"finish-button": "awsui_finish-button_1hpp3_1s9s9_148",
|
|
20
|
+
"header": "awsui_header_1hpp3_1s9s9_149",
|
|
21
|
+
"step-counter-content": "awsui_step-counter-content_1hpp3_1s9s9_150",
|
|
22
|
+
"content": "awsui_content_1hpp3_1s9s9_151",
|
|
23
|
+
"description": "awsui_description_1hpp3_1s9s9_155",
|
|
24
|
+
"actionBar": "awsui_actionBar_1hpp3_1s9s9_160",
|
|
25
|
+
"stepCounter": "awsui_stepCounter_1hpp3_1s9s9_167",
|
|
26
|
+
"divider": "awsui_divider_1hpp3_1s9s9_171",
|
|
27
|
+
"hotspot": "awsui_hotspot_1hpp3_1s9s9_175",
|
|
28
|
+
"icon": "awsui_icon_1hpp3_1s9s9_213"
|
|
29
29
|
};
|
|
30
30
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/annotation-context/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAOtD,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAElC,wBAAgB,WAAW,CAAC,WAAW,EAAE,SAAS,sBAAsB,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM;;;;;;;;;;EAa7F;AAKD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,QAAQ,EAAE,eAAe,EACzB,eAAe,EACf,cAAc,EACd,WAAW,GACZ,EAAE,sBAAsB,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/annotation-context/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAOtD,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAElC,wBAAgB,WAAW,CAAC,WAAW,EAAE,SAAS,sBAAsB,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM;;;;;;;;;;EAa7F;AAKD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,QAAQ,EAAE,eAAe,EACzB,eAAe,EACf,cAAc,EACd,WAAW,GACZ,EAAE,sBAAsB,GAAG,GAAG,CAAC,OAAO,CA0OtC"}
|
|
@@ -124,7 +124,8 @@ export default function AnnotationContext(_a) {
|
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
126
126
|
if (!task || !step || !open || id !== currentId) {
|
|
127
|
-
|
|
127
|
+
var _a = getStepInfo(annotations, globalStepIndex), currentTask = _a.task, currentStepIndex_1 = _a.localIndex;
|
|
128
|
+
return (React.createElement(ClosedAnnotation, { globalStepIndex: globalStepIndex, i18nStrings: i18nStrings, onOpen: onOpen, focusOnRender: id === currentId, totalLocalSteps: currentTask ? currentTask.steps.length : 0, taskLocalStepIndex: currentStepIndex_1 }));
|
|
128
129
|
}
|
|
129
130
|
return (React.createElement(OpenAnnotation, { i18nStrings: i18nStrings, direction: direction, title: i18nStrings.taskTitle(taskIndex, task.title), content: step.content, alert: step.warningAlert, showPreviousButton: currentStepIndex !== 0, showFinishButton: currentStepIndex + 1 === totalStepCount, taskLocalStepIndex: localIndex, totalLocalSteps: task.steps.length, nextButtonEnabled: nextHotspotIsAvailable, onNextButtonClick: openNextStep, onFinish: onFinish, previousButtonEnabled: previousHotspotIsAvailable, onPreviousButtonClick: openPreviousStep, onDismiss: onDismiss }));
|
|
130
131
|
}, [
|
|
@@ -146,6 +147,7 @@ export default function AnnotationContext(_a) {
|
|
|
146
147
|
openPreviousStep,
|
|
147
148
|
onDismiss,
|
|
148
149
|
onOpen,
|
|
150
|
+
annotations,
|
|
149
151
|
]);
|
|
150
152
|
var registerHotspot = useCallback(function (id) {
|
|
151
153
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/annotation-context/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,OAAO,EAAkB,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAIxE,MAAM,UAAU,WAAW,CAAC,WAAmD,EAAE,KAAa;IA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QAED;;;;UAIE;QACF,oBAAoB,CAAC,OAAO,GAAG,SAAS,CAAC,EAAE,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;QAE3E,oBAAoB,CAAC,UAAA,iBAAiB;YACpC,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC,EAAE;gBAC1B,OAAO,iBAAiB,CAAC;aAC1B;YAED,OAAO,SAAS,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAM,OAAO,GAAmB;QAC9B,eAAe,iBAAA;QACf,eAAe,iBAAA;QACf,iBAAiB,mBAAA;QACjB,eAAe,iBAAA;QACf,cAAc,gBAAA;QACd,gBAAgB,kBAAA;QAChB,eAAe,iBAAA;KAChB,CAAC;IAEF,OAAO,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,IAAG,QAAQ,CAA2B,CAAC;AACvF,CAAC;AAED,gBAAgB,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC;AAEzD,SAAS,SAAS,CAAgC,GAAY,EAAE,MAAS;IACvE,6DAA6D;IAC7D,IAAyC,KAAA,MAAM,EAAvC,KAAC,GAAI,EAAE,CAAC,SAAA,EAAK,eAAe,cAA9B,uCAAgC,CAAS,CAAC;IAChD,OAAO,eAAe,CAAC;AACzB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\n\nimport { OpenAnnotation } from './annotation/open-annotation';\nimport { ClosedAnnotation } from './annotation/closed-annotation';\nimport { AnnotationContextProps } from './interfaces';\nimport { HotspotContext, hotspotContext } from './context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { HotspotProps } from '../hotspot/interfaces';\nimport { useTelemetry } from '../internal/hooks/use-telemetry';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\n\nexport { AnnotationContextProps };\n\nexport function getStepInfo(annotations: readonly AnnotationContextProps.Task[], index: number) {\n if (index >= 0) {\n let taskIndex = 0;\n for (const task of annotations) {\n if (task.steps.length <= index) {\n index -= task.steps.length;\n taskIndex++;\n continue;\n }\n return { task, step: task.steps[index], localIndex: index, taskIndex };\n }\n }\n return { task: undefined, step: undefined, localIndex: 0, taskIndex: 0 };\n}\n\n// constant empty array to keep hook dependency stable\nconst emptyTasks: ReadonlyArray<AnnotationContextProps.Task> = [];\n\nexport default function AnnotationContext({\n currentTutorial,\n children,\n onStepChange,\n onFinish: onFinishHandler,\n onStartTutorial,\n onExitTutorial,\n i18nStrings,\n}: AnnotationContextProps): JSX.Element {\n useTelemetry('AnnotationContext');\n\n const [open, setOpen] = useState(true);\n\n const [currentStepIndex, setCurrentStepIndex] = useState(0);\n useEffect(() => {\n // When a tutorial is started, we reset the progress to the first step.\n setCurrentStepIndex(0);\n setOpen(true);\n }, [currentTutorial, setOpen]);\n\n const [availableHotspots, setAvailableHotspots] = useState<Record<string, true | undefined>>({});\n // availableHotspots is mirrored in this ref to prevent endless loops\n // in between registerHotspot and unregisterHotspot callbacks.\n const availableHotspotsRef = useRef<Record<string, true | undefined>>(availableHotspots);\n\n const annotations = currentTutorial ? currentTutorial.tasks : emptyTasks;\n const { task, step, localIndex, taskIndex } = getStepInfo(annotations, currentStepIndex);\n const currentId = step?.hotspotId;\n const totalStepCount = annotations.map(a => a.steps.length).reduce((a, b) => a + b, 0);\n\n const id2index = useMemo(() => {\n const mapping: Record<string, number> = {};\n\n let counter = 0;\n for (const annotation of annotations) {\n for (const step of annotation.steps) {\n if (mapping[step.hotspotId] === undefined) {\n mapping[step.hotspotId] = counter;\n }\n counter++;\n }\n }\n\n return mapping;\n }, [annotations]);\n\n const openNextStep = useCallback(() => {\n const newStepIndex = Math.min(currentStepIndex + 1, totalStepCount);\n setCurrentStepIndex(newStepIndex);\n fireNonCancelableEvent(onStepChange, { step: newStepIndex, reason: 'next' });\n }, [currentStepIndex, onStepChange, totalStepCount]);\n\n const openPreviousStep = useCallback(() => {\n const newStepIndex = Math.max(currentStepIndex - 1, 0);\n setCurrentStepIndex(newStepIndex);\n fireNonCancelableEvent(onStepChange, { step: newStepIndex, reason: 'previous' });\n }, [onStepChange, currentStepIndex]);\n\n const onFinish = useCallback(() => fireNonCancelableEvent(onFinishHandler), [onFinishHandler]);\n\n /**\n * If the currently open hotspot disappears from the page (e.g. because of a react-router navigation),\n * this Effect detects the nearest available hotspot and changes to it. This allows us to e.g. automatically\n * advance to the first step on the new page (or the last step on the previous page, in case the user\n * navigates back).\n */\n const isCurrentHotspotAvailable = currentId ? availableHotspots[currentId] : null;\n useEffect(() => {\n if (!currentId || availableHotspotsRef.current[currentId]) {\n return;\n }\n\n const findNearestHotspot = () => {\n let nearestHotspot: string | undefined = undefined;\n let nearestDistance = Infinity;\n for (const hotspotId of Object.keys(availableHotspotsRef.current)) {\n const distanceFromCurrentHotspot = Math.abs(id2index[hotspotId] - currentStepIndex);\n if (distanceFromCurrentHotspot < nearestDistance) {\n nearestDistance = distanceFromCurrentHotspot;\n nearestHotspot = hotspotId;\n }\n }\n return nearestHotspot;\n };\n\n const nearestHotspot = findNearestHotspot();\n if (nearestHotspot) {\n const newStepIndex = id2index[nearestHotspot];\n setCurrentStepIndex(newStepIndex);\n setOpen(true);\n fireNonCancelableEvent(onStepChange, { step: newStepIndex, reason: 'auto-fallback' });\n }\n }, [annotations, isCurrentHotspotAvailable, currentId, currentStepIndex, id2index, onStepChange]);\n\n const onDismiss = useCallback(() => {\n setOpen(false);\n }, [setOpen]);\n\n const onOpen = useCallback(\n (stepIndex: number) => {\n setCurrentStepIndex(stepIndex);\n fireNonCancelableEvent(onStepChange, { step: stepIndex, reason: 'open' });\n setOpen(true);\n },\n [onStepChange, setOpen]\n );\n\n const idOfPreviousHotspot = getStepInfo(annotations, currentStepIndex - 1).step?.hotspotId;\n const idOfNextHotspot = getStepInfo(annotations, currentStepIndex + 1).step?.hotspotId;\n const previousHotspotIsAvailable =\n (idOfPreviousHotspot !== undefined && availableHotspots[idOfPreviousHotspot]) ?? false;\n const nextHotspotIsAvailable = (idOfNextHotspot !== undefined && availableHotspots[idOfNextHotspot]) ?? false;\n\n const getContentForId = useCallback(\n (id: string, direction: HotspotProps['direction']) => {\n if (currentTutorial?.completed) {\n return null;\n }\n\n const globalStepIndex = id2index[id];\n if (globalStepIndex === undefined) {\n // This hotspot is not used in the current tutorial.\n return null;\n }\n\n if (!task || !step || !open || id !== currentId) {\n return (\n <ClosedAnnotation\n globalStepIndex={globalStepIndex}\n i18nStrings={i18nStrings}\n onOpen={onOpen}\n focusOnRender={id === currentId}\n />\n );\n }\n\n return (\n <OpenAnnotation\n i18nStrings={i18nStrings}\n direction={direction}\n title={i18nStrings.taskTitle(taskIndex, task.title)}\n content={step.content}\n alert={step.warningAlert}\n showPreviousButton={currentStepIndex !== 0}\n showFinishButton={currentStepIndex + 1 === totalStepCount}\n taskLocalStepIndex={localIndex}\n totalLocalSteps={task.steps.length}\n nextButtonEnabled={nextHotspotIsAvailable}\n onNextButtonClick={openNextStep}\n onFinish={onFinish}\n previousButtonEnabled={previousHotspotIsAvailable}\n onPreviousButtonClick={openPreviousStep}\n onDismiss={onDismiss}\n />\n );\n },\n [\n id2index,\n currentTutorial,\n task,\n step,\n open,\n currentId,\n currentStepIndex,\n i18nStrings,\n taskIndex,\n localIndex,\n totalStepCount,\n nextHotspotIsAvailable,\n openNextStep,\n onFinish,\n previousHotspotIsAvailable,\n openPreviousStep,\n onDismiss,\n onOpen,\n ]\n );\n\n const registerHotspot = useCallback(\n (id: string) => {\n if (!id2index || id2index[id] === undefined) {\n // This hotspot is not used in the current tutorial.\n return;\n }\n\n /*\n To ensure that all hotspots are immediately known to all triggered useEffects, we\n need to update the availableHotspotsRef BEFORE the setAvailableHotspots calls, since\n they will be batched and delayed until after the useEffects are run.\n */\n availableHotspotsRef.current = { ...availableHotspotsRef.current, [id]: true } as const;\n\n setAvailableHotspots(availableHotspots => {\n if (availableHotspots[id]) {\n return availableHotspots;\n }\n\n return { ...availableHotspots, [id]: true } as const;\n });\n },\n // We need to react on id2index changes for registering new hotspots when the map changes.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [id2index]\n );\n\n const unregisterHotspot = useCallback((id: string) => {\n if (!availableHotspotsRef.current[id]) {\n // Prevents unnecessary re-renders.\n return;\n }\n\n /*\n To ensure that all hotspots are immediately known to all triggered useEffects, we\n need to update the availableHotspotsRef BEFORE the setAvailableHotspots calls, since\n they will be batched and delayed until after the useEffects are run.\n */\n availableHotspotsRef.current = removeKey(id, availableHotspotsRef.current);\n\n setAvailableHotspots(availableHotspots => {\n if (!availableHotspots[id]) {\n return availableHotspots;\n }\n\n return removeKey(id, availableHotspots);\n });\n }, []);\n\n const context: HotspotContext = {\n getContentForId,\n registerHotspot,\n unregisterHotspot,\n onStartTutorial,\n onExitTutorial,\n currentStepIndex,\n currentTutorial,\n };\n\n return <hotspotContext.Provider value={context}>{children}</hotspotContext.Provider>;\n}\n\napplyDisplayName(AnnotationContext, 'AnnotationContext');\n\nfunction removeKey<T extends Record<string, any>>(key: keyof T, object: T) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { [key]: _, ...remainingObject } = object;\n return remainingObject;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/annotation-context/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,OAAO,EAAkB,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAA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;IAChD,OAAO,eAAe,CAAC;AACzB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\n\nimport { OpenAnnotation } from './annotation/open-annotation';\nimport { ClosedAnnotation } from './annotation/closed-annotation';\nimport { AnnotationContextProps } from './interfaces';\nimport { HotspotContext, hotspotContext } from './context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { HotspotProps } from '../hotspot/interfaces';\nimport { useTelemetry } from '../internal/hooks/use-telemetry';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\n\nexport { AnnotationContextProps };\n\nexport function getStepInfo(annotations: readonly AnnotationContextProps.Task[], index: number) {\n if (index >= 0) {\n let taskIndex = 0;\n for (const task of annotations) {\n if (task.steps.length <= index) {\n index -= task.steps.length;\n taskIndex++;\n continue;\n }\n return { task, step: task.steps[index], localIndex: index, taskIndex };\n }\n }\n return { task: undefined, step: undefined, localIndex: 0, taskIndex: 0 };\n}\n\n// constant empty array to keep hook dependency stable\nconst emptyTasks: ReadonlyArray<AnnotationContextProps.Task> = [];\n\nexport default function AnnotationContext({\n currentTutorial,\n children,\n onStepChange,\n onFinish: onFinishHandler,\n onStartTutorial,\n onExitTutorial,\n i18nStrings,\n}: AnnotationContextProps): JSX.Element {\n useTelemetry('AnnotationContext');\n\n const [open, setOpen] = useState(true);\n\n const [currentStepIndex, setCurrentStepIndex] = useState(0);\n useEffect(() => {\n // When a tutorial is started, we reset the progress to the first step.\n setCurrentStepIndex(0);\n setOpen(true);\n }, [currentTutorial, setOpen]);\n\n const [availableHotspots, setAvailableHotspots] = useState<Record<string, true | undefined>>({});\n // availableHotspots is mirrored in this ref to prevent endless loops\n // in between registerHotspot and unregisterHotspot callbacks.\n const availableHotspotsRef = useRef<Record<string, true | undefined>>(availableHotspots);\n\n const annotations = currentTutorial ? currentTutorial.tasks : emptyTasks;\n const { task, step, localIndex, taskIndex } = getStepInfo(annotations, currentStepIndex);\n const currentId = step?.hotspotId;\n const totalStepCount = annotations.map(a => a.steps.length).reduce((a, b) => a + b, 0);\n\n const id2index = useMemo(() => {\n const mapping: Record<string, number> = {};\n\n let counter = 0;\n for (const annotation of annotations) {\n for (const step of annotation.steps) {\n if (mapping[step.hotspotId] === undefined) {\n mapping[step.hotspotId] = counter;\n }\n counter++;\n }\n }\n\n return mapping;\n }, [annotations]);\n\n const openNextStep = useCallback(() => {\n const newStepIndex = Math.min(currentStepIndex + 1, totalStepCount);\n setCurrentStepIndex(newStepIndex);\n fireNonCancelableEvent(onStepChange, { step: newStepIndex, reason: 'next' });\n }, [currentStepIndex, onStepChange, totalStepCount]);\n\n const openPreviousStep = useCallback(() => {\n const newStepIndex = Math.max(currentStepIndex - 1, 0);\n setCurrentStepIndex(newStepIndex);\n fireNonCancelableEvent(onStepChange, { step: newStepIndex, reason: 'previous' });\n }, [onStepChange, currentStepIndex]);\n\n const onFinish = useCallback(() => fireNonCancelableEvent(onFinishHandler), [onFinishHandler]);\n\n /**\n * If the currently open hotspot disappears from the page (e.g. because of a react-router navigation),\n * this Effect detects the nearest available hotspot and changes to it. This allows us to e.g. automatically\n * advance to the first step on the new page (or the last step on the previous page, in case the user\n * navigates back).\n */\n const isCurrentHotspotAvailable = currentId ? availableHotspots[currentId] : null;\n useEffect(() => {\n if (!currentId || availableHotspotsRef.current[currentId]) {\n return;\n }\n\n const findNearestHotspot = () => {\n let nearestHotspot: string | undefined = undefined;\n let nearestDistance = Infinity;\n for (const hotspotId of Object.keys(availableHotspotsRef.current)) {\n const distanceFromCurrentHotspot = Math.abs(id2index[hotspotId] - currentStepIndex);\n if (distanceFromCurrentHotspot < nearestDistance) {\n nearestDistance = distanceFromCurrentHotspot;\n nearestHotspot = hotspotId;\n }\n }\n return nearestHotspot;\n };\n\n const nearestHotspot = findNearestHotspot();\n if (nearestHotspot) {\n const newStepIndex = id2index[nearestHotspot];\n setCurrentStepIndex(newStepIndex);\n setOpen(true);\n fireNonCancelableEvent(onStepChange, { step: newStepIndex, reason: 'auto-fallback' });\n }\n }, [annotations, isCurrentHotspotAvailable, currentId, currentStepIndex, id2index, onStepChange]);\n\n const onDismiss = useCallback(() => {\n setOpen(false);\n }, [setOpen]);\n\n const onOpen = useCallback(\n (stepIndex: number) => {\n setCurrentStepIndex(stepIndex);\n fireNonCancelableEvent(onStepChange, { step: stepIndex, reason: 'open' });\n setOpen(true);\n },\n [onStepChange, setOpen]\n );\n\n const idOfPreviousHotspot = getStepInfo(annotations, currentStepIndex - 1).step?.hotspotId;\n const idOfNextHotspot = getStepInfo(annotations, currentStepIndex + 1).step?.hotspotId;\n const previousHotspotIsAvailable =\n (idOfPreviousHotspot !== undefined && availableHotspots[idOfPreviousHotspot]) ?? false;\n const nextHotspotIsAvailable = (idOfNextHotspot !== undefined && availableHotspots[idOfNextHotspot]) ?? false;\n\n const getContentForId = useCallback(\n (id: string, direction: HotspotProps['direction']) => {\n if (currentTutorial?.completed) {\n return null;\n }\n\n const globalStepIndex = id2index[id];\n if (globalStepIndex === undefined) {\n // This hotspot is not used in the current tutorial.\n return null;\n }\n\n if (!task || !step || !open || id !== currentId) {\n const { task: currentTask, localIndex: currentStepIndex } = getStepInfo(annotations, globalStepIndex);\n return (\n <ClosedAnnotation\n globalStepIndex={globalStepIndex}\n i18nStrings={i18nStrings}\n onOpen={onOpen}\n focusOnRender={id === currentId}\n totalLocalSteps={currentTask ? currentTask.steps.length : 0}\n taskLocalStepIndex={currentStepIndex}\n />\n );\n }\n\n return (\n <OpenAnnotation\n i18nStrings={i18nStrings}\n direction={direction}\n title={i18nStrings.taskTitle(taskIndex, task.title)}\n content={step.content}\n alert={step.warningAlert}\n showPreviousButton={currentStepIndex !== 0}\n showFinishButton={currentStepIndex + 1 === totalStepCount}\n taskLocalStepIndex={localIndex}\n totalLocalSteps={task.steps.length}\n nextButtonEnabled={nextHotspotIsAvailable}\n onNextButtonClick={openNextStep}\n onFinish={onFinish}\n previousButtonEnabled={previousHotspotIsAvailable}\n onPreviousButtonClick={openPreviousStep}\n onDismiss={onDismiss}\n />\n );\n },\n [\n id2index,\n currentTutorial,\n task,\n step,\n open,\n currentId,\n currentStepIndex,\n i18nStrings,\n taskIndex,\n localIndex,\n totalStepCount,\n nextHotspotIsAvailable,\n openNextStep,\n onFinish,\n previousHotspotIsAvailable,\n openPreviousStep,\n onDismiss,\n onOpen,\n annotations,\n ]\n );\n\n const registerHotspot = useCallback(\n (id: string) => {\n if (!id2index || id2index[id] === undefined) {\n // This hotspot is not used in the current tutorial.\n return;\n }\n\n /*\n To ensure that all hotspots are immediately known to all triggered useEffects, we\n need to update the availableHotspotsRef BEFORE the setAvailableHotspots calls, since\n they will be batched and delayed until after the useEffects are run.\n */\n availableHotspotsRef.current = { ...availableHotspotsRef.current, [id]: true } as const;\n\n setAvailableHotspots(availableHotspots => {\n if (availableHotspots[id]) {\n return availableHotspots;\n }\n\n return { ...availableHotspots, [id]: true } as const;\n });\n },\n // We need to react on id2index changes for registering new hotspots when the map changes.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [id2index]\n );\n\n const unregisterHotspot = useCallback((id: string) => {\n if (!availableHotspotsRef.current[id]) {\n // Prevents unnecessary re-renders.\n return;\n }\n\n /*\n To ensure that all hotspots are immediately known to all triggered useEffects, we\n need to update the availableHotspotsRef BEFORE the setAvailableHotspots calls, since\n they will be batched and delayed until after the useEffects are run.\n */\n availableHotspotsRef.current = removeKey(id, availableHotspotsRef.current);\n\n setAvailableHotspots(availableHotspots => {\n if (!availableHotspots[id]) {\n return availableHotspots;\n }\n\n return removeKey(id, availableHotspots);\n });\n }, []);\n\n const context: HotspotContext = {\n getContentForId,\n registerHotspot,\n unregisterHotspot,\n onStartTutorial,\n onExitTutorial,\n currentStepIndex,\n currentTutorial,\n };\n\n return <hotspotContext.Provider value={context}>{children}</hotspotContext.Provider>;\n}\n\napplyDisplayName(AnnotationContext, 'AnnotationContext');\n\nfunction removeKey<T extends Record<string, any>>(key: keyof T, object: T) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { [key]: _, ...remainingObject } = object;\n return remainingObject;\n}\n"]}
|
|
@@ -58,7 +58,7 @@ export declare namespace AnnotationContextProps {
|
|
|
58
58
|
previousButtonText: string;
|
|
59
59
|
finishButtonText: string;
|
|
60
60
|
labelDismissAnnotation: string;
|
|
61
|
-
labelHotspot: (openState: boolean) => string;
|
|
61
|
+
labelHotspot: (openState: boolean, stepIndex: number, totalStepCount: number) => string;
|
|
62
62
|
stepCounterText: (stepIndex: number, totalStepCount: number) => string;
|
|
63
63
|
taskTitle: (taskIndex: number, taskTitle: string) => string;
|
|
64
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/annotation-context/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,eAAe,EAAE,sBAAsB,CAAC,QAAQ,GAAG,IAAI,CAAC;IAExD;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,yBAAyB,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;IAElF;;OAEG;IACH,eAAe,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;IAE9E;;OAEG;IACH,cAAc,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;IAE7E;;;OAGG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAE3C;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;OAGG;IACH,WAAW,EAAE,sBAAsB,CAAC,WAAW,CAAC;CACjD;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,gBAAgB;QAC/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AsB,CAAC,WAAW,CAAC;CACjD;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,gBAAgB;QAC/B,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,eAAe,CAAC;KACxD;IAED,UAAiB,gBAAgB;QAC/B,IAAI,EAAE,OAAO,CAAC;KACf;IAED,KAAY,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAC3C,KAAY,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAC3C,KAAY,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,CAAC;IAEnD,UAAiB,WAAW;QAC1B,cAAc,EAAE,MAAM,CAAC;QACvB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,gBAAgB,EAAE,MAAM,CAAC;QAEzB,sBAAsB,EAAE,MAAM,CAAC;QAC/B,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;QAExF,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;QACvE,SAAS,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;KAC7D;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/annotation-context/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { TutorialPanelProps } from '../tutorial-panel/interfaces';\n\nexport interface AnnotationContextProps {\n /**\n * The currently launched tutorial. This should be the object received\n * in the `detail` property of the `onStartTutorial` event.\n */\n currentTutorial: AnnotationContextProps.Tutorial | null;\n\n /**\n * This event is fired when a user clicks the \"Next\" or \"Previous\"\n * button on a popover, when the user clicks on a closed hotspot icon,\n * or when the AnnotationOverlay determines that the current hotspot\n * has disappeared from the page and a different one should be\n * selected (e.g. when navigating between pages).\n *\n * Use the `reason` property of the event detail to determine why\n * this event was fired.\n */\n onStepChange?: NonCancelableEventHandler<AnnotationContextProps.StepChangeDetail>;\n\n /**\n * Fired when the user selects a tutorial from the list.\n */\n onStartTutorial: NonCancelableEventHandler<TutorialPanelProps.TutorialDetail>;\n\n /**\n * Fired when the user exits the current tutorial.\n */\n onExitTutorial: NonCancelableEventHandler<TutorialPanelProps.TutorialDetail>;\n\n /**\n * Fired when the user clicks the \"Finish\" button on the last step of\n * the tutorial.\n */\n onFinish?: NonCancelableEventHandler<void>;\n\n /**\n * Put all page content inside this component's children. This component\n * will provide a context which is used by the Hotspot elements throughout\n * the page.\n */\n children: React.ReactNode;\n\n /**\n * An object containing all the necessary localized strings required by\n * the component.\n */\n i18nStrings: AnnotationContextProps.I18nStrings;\n}\n\nexport namespace AnnotationContextProps {\n export interface StepChangeDetail {\n step: number;\n reason: 'next' | 'previous' | 'open' | 'auto-fallback';\n }\n\n export interface OpenChangeDetail {\n open: boolean;\n }\n\n export type Task = TutorialPanelProps.Task;\n export type Step = TutorialPanelProps.Step;\n export type Tutorial = TutorialPanelProps.Tutorial;\n\n export interface I18nStrings {\n nextButtonText: string;\n previousButtonText: string;\n finishButtonText: string;\n\n labelDismissAnnotation: string;\n labelHotspot: (openState: boolean) => string;\n\n stepCounterText: (stepIndex: number, totalStepCount: number) => string;\n taskTitle: (taskIndex: number, taskTitle: string) => string;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/annotation-context/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { TutorialPanelProps } from '../tutorial-panel/interfaces';\n\nexport interface AnnotationContextProps {\n /**\n * The currently launched tutorial. This should be the object received\n * in the `detail` property of the `onStartTutorial` event.\n */\n currentTutorial: AnnotationContextProps.Tutorial | null;\n\n /**\n * This event is fired when a user clicks the \"Next\" or \"Previous\"\n * button on a popover, when the user clicks on a closed hotspot icon,\n * or when the AnnotationOverlay determines that the current hotspot\n * has disappeared from the page and a different one should be\n * selected (e.g. when navigating between pages).\n *\n * Use the `reason` property of the event detail to determine why\n * this event was fired.\n */\n onStepChange?: NonCancelableEventHandler<AnnotationContextProps.StepChangeDetail>;\n\n /**\n * Fired when the user selects a tutorial from the list.\n */\n onStartTutorial: NonCancelableEventHandler<TutorialPanelProps.TutorialDetail>;\n\n /**\n * Fired when the user exits the current tutorial.\n */\n onExitTutorial: NonCancelableEventHandler<TutorialPanelProps.TutorialDetail>;\n\n /**\n * Fired when the user clicks the \"Finish\" button on the last step of\n * the tutorial.\n */\n onFinish?: NonCancelableEventHandler<void>;\n\n /**\n * Put all page content inside this component's children. This component\n * will provide a context which is used by the Hotspot elements throughout\n * the page.\n */\n children: React.ReactNode;\n\n /**\n * An object containing all the necessary localized strings required by\n * the component.\n */\n i18nStrings: AnnotationContextProps.I18nStrings;\n}\n\nexport namespace AnnotationContextProps {\n export interface StepChangeDetail {\n step: number;\n reason: 'next' | 'previous' | 'open' | 'auto-fallback';\n }\n\n export interface OpenChangeDetail {\n open: boolean;\n }\n\n export type Task = TutorialPanelProps.Task;\n export type Step = TutorialPanelProps.Step;\n export type Tutorial = TutorialPanelProps.Tutorial;\n\n export interface I18nStrings {\n nextButtonText: string;\n previousButtonText: string;\n finishButtonText: string;\n\n labelDismissAnnotation: string;\n labelHotspot: (openState: boolean, stepIndex: number, totalStepCount: number) => string;\n\n stepCounterText: (stepIndex: number, totalStepCount: number) => string;\n taskTitle: (taskIndex: number, taskTitle: string) => string;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/main.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/main.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,IAAI,gBAqD3B"}
|
|
@@ -3,24 +3,29 @@
|
|
|
3
3
|
import React, { useContext } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { AppLayoutContext } from './context';
|
|
6
|
+
import customCssProps from '../../internal/generated/custom-css-properties';
|
|
6
7
|
import { SplitPanelContext } from '../../internal/context/split-panel-context';
|
|
7
8
|
import styles from './styles.css.js';
|
|
8
9
|
import testutilStyles from '../test-classes/styles.css.js';
|
|
9
10
|
export default function Main() {
|
|
10
|
-
var _a;
|
|
11
|
-
var
|
|
11
|
+
var _a, _b;
|
|
12
|
+
var _c = useContext(AppLayoutContext), breadcrumbs = _c.breadcrumbs, content = _c.content, contentHeader = _c.contentHeader, contentType = _c.contentType, disableContentPaddings = _c.disableContentPaddings, dynamicOverlapHeight = _c.dynamicOverlapHeight, hasNotificationsContent = _c.hasNotificationsContent, isNavigationOpen = _c.isNavigationOpen, isSplitPanelOpen = _c.isSplitPanelOpen, isToolsOpen = _c.isToolsOpen, isMobile = _c.isMobile, isAnyPanelOpen = _c.isAnyPanelOpen, mainElement = _c.mainElement, splitPanel = _c.splitPanel, offsetBottom = _c.offsetBottom, footerHeight = _c.footerHeight;
|
|
12
13
|
var splitPanelPosition = useContext(SplitPanelContext).position;
|
|
13
14
|
var isUnfocusable = isMobile && isAnyPanelOpen;
|
|
15
|
+
var splitPanelHeight = offsetBottom - footerHeight;
|
|
14
16
|
return (React.createElement("div", { className: clsx(styles.container, styles["content-type-".concat(contentType)], styles["split-panel-position-".concat(splitPanelPosition !== null && splitPanelPosition !== void 0 ? splitPanelPosition : 'bottom')], (_a = {},
|
|
15
17
|
_a[styles['disable-content-paddings']] = disableContentPaddings,
|
|
16
18
|
_a[styles['has-breadcrumbs']] = breadcrumbs,
|
|
17
19
|
_a[styles['has-dynamic-overlap-height']] = dynamicOverlapHeight > 0,
|
|
18
20
|
_a[styles['has-header']] = contentHeader,
|
|
19
21
|
_a[styles['has-notifications-content']] = hasNotificationsContent,
|
|
22
|
+
_a[styles['has-split-panel']] = splitPanel,
|
|
20
23
|
_a[styles['is-navigation-open']] = isNavigationOpen,
|
|
21
24
|
_a[styles['is-tools-open']] = isToolsOpen,
|
|
22
25
|
_a[styles['is-split-panel-open']] = isSplitPanelOpen,
|
|
23
26
|
_a[styles.unfocusable] = isUnfocusable,
|
|
24
|
-
_a), testutilStyles.content), ref: mainElement },
|
|
27
|
+
_a), testutilStyles.content), ref: mainElement, style: (_b = {},
|
|
28
|
+
_b[customCssProps.splitPanelHeight] = "".concat(splitPanelHeight, "px"),
|
|
29
|
+
_b) }, content));
|
|
25
30
|
}
|
|
26
31
|
//# sourceMappingURL=main.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/main.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAE3D,MAAM,CAAC,OAAO,UAAU,IAAI;;IACpB,IAAA,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/main.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,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Aa;YACrC,GAAC,MAAM,CAAC,2BAA2B,CAAC,IAAG,uBAAuB;YAC9D,GAAC,MAAM,CAAC,iBAAiB,CAAC,IAAG,UAAU;YACvC,GAAC,MAAM,CAAC,oBAAoB,CAAC,IAAG,gBAAgB;YAChD,GAAC,MAAM,CAAC,eAAe,CAAC,IAAG,WAAW;YACtC,GAAC,MAAM,CAAC,qBAAqB,CAAC,IAAG,gBAAgB;YACjD,GAAC,MAAM,CAAC,WAAW,IAAG,aAAa;iBAErC,cAAc,CAAC,OAAO,CACvB,EACD,GAAG,EAAE,WAAW,EAChB,KAAK;YACH,GAAC,cAAc,CAAC,gBAAgB,IAAG,UAAG,gBAAgB,OAAI;mBAG3D,OAAO,CACJ,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useContext } from 'react';\nimport clsx from 'clsx';\nimport { AppLayoutContext } from './context';\nimport customCssProps from '../../internal/generated/custom-css-properties';\nimport { SplitPanelContext } from '../../internal/context/split-panel-context';\nimport styles from './styles.css.js';\nimport testutilStyles from '../test-classes/styles.css.js';\n\nexport default function Main() {\n const {\n breadcrumbs,\n content,\n contentHeader,\n contentType,\n disableContentPaddings,\n dynamicOverlapHeight,\n hasNotificationsContent,\n isNavigationOpen,\n isSplitPanelOpen,\n isToolsOpen,\n isMobile,\n isAnyPanelOpen,\n mainElement,\n splitPanel,\n offsetBottom,\n footerHeight,\n } = useContext(AppLayoutContext);\n\n const { position: splitPanelPosition } = useContext(SplitPanelContext);\n\n const isUnfocusable = isMobile && isAnyPanelOpen;\n const splitPanelHeight = offsetBottom - footerHeight;\n\n return (\n <div\n className={clsx(\n styles.container,\n styles[`content-type-${contentType}`],\n styles[`split-panel-position-${splitPanelPosition ?? 'bottom'}`],\n {\n [styles['disable-content-paddings']]: disableContentPaddings,\n [styles['has-breadcrumbs']]: breadcrumbs,\n [styles['has-dynamic-overlap-height']]: dynamicOverlapHeight > 0,\n [styles['has-header']]: contentHeader,\n [styles['has-notifications-content']]: hasNotificationsContent,\n [styles['has-split-panel']]: splitPanel,\n [styles['is-navigation-open']]: isNavigationOpen,\n [styles['is-tools-open']]: isToolsOpen,\n [styles['is-split-panel-open']]: isSplitPanelOpen,\n [styles.unfocusable]: isUnfocusable,\n },\n testutilStyles.content\n )}\n ref={mainElement}\n style={{\n [customCssProps.splitPanelHeight]: `${splitPanelHeight}px`,\n }}\n >\n {content}\n </div>\n );\n}\n"]}
|
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"appbar": "
|
|
5
|
-
"appbar-nav": "awsui_appbar-
|
|
6
|
-
"breadcrumbs": "
|
|
7
|
-
"appbar-tools": "awsui_appbar-
|
|
8
|
-
"has-breadcrumbs": "awsui_has-
|
|
9
|
-
"has-notifications-content": "awsui_has-notifications-
|
|
10
|
-
"has-header": "awsui_has-
|
|
11
|
-
"has-dynamic-overlap-height": "awsui_has-dynamic-overlap-
|
|
12
|
-
"content-type-wizard": "awsui_content-type-
|
|
13
|
-
"content-type-cards": "awsui_content-type-
|
|
14
|
-
"content-type-table": "awsui_content-type-
|
|
15
|
-
"has-sticky-background": "awsui_has-sticky-
|
|
16
|
-
"background": "
|
|
17
|
-
"notifications-appbar-header": "awsui_notifications-appbar-
|
|
18
|
-
"sticky-notifications": "awsui_sticky-
|
|
19
|
-
"overlap": "
|
|
20
|
-
"content": "
|
|
21
|
-
"layout": "
|
|
22
|
-
"has-max-content-width": "awsui_has-max-content-
|
|
23
|
-
"is-overlap-disabled": "awsui_is-overlap-
|
|
24
|
-
"disable-body-scroll": "awsui_disable-body-
|
|
25
|
-
"has-sticky-notifications": "awsui_has-sticky-
|
|
26
|
-
"has-split-panel": "awsui_has-split-
|
|
27
|
-
"split-panel-position-bottom": "awsui_split-panel-position-
|
|
28
|
-
"has-content-gap-left": "awsui_has-content-gap-
|
|
29
|
-
"has-content-gap-right": "awsui_has-content-gap-
|
|
30
|
-
"block-body-scroll": "awsui_block-body-
|
|
31
|
-
"container": "
|
|
32
|
-
"disable-content-paddings": "awsui_disable-content-
|
|
33
|
-
"is-navigation-open": "awsui_is-navigation-
|
|
34
|
-
"is-tools-open": "awsui_is-tools-
|
|
35
|
-
"is-split-panel-open": "awsui_is-split-panel-
|
|
36
|
-
"split-panel-position-side": "awsui_split-panel-position-
|
|
37
|
-
"content-type-default": "awsui_content-type-
|
|
38
|
-
"content-type-form": "awsui_content-type-
|
|
39
|
-
"unfocusable": "
|
|
40
|
-
"navigation-container": "awsui_navigation-
|
|
41
|
-
"show-navigation": "awsui_show-
|
|
42
|
-
"animating": "
|
|
43
|
-
"showButtons": "
|
|
44
|
-
"navigation": "
|
|
45
|
-
"openNavigation": "
|
|
46
|
-
"animated-content": "awsui_animated-
|
|
47
|
-
"hide-navigation": "awsui_hide-
|
|
48
|
-
"notifications": "
|
|
49
|
-
"split-panel-bottom": "awsui_split-panel-
|
|
50
|
-
"position-bottom": "awsui_position-
|
|
51
|
-
"openSplitPanelBottom": "
|
|
52
|
-
"split-panel-side": "awsui_split-panel-
|
|
53
|
-
"position-side": "awsui_position-
|
|
54
|
-
"openSplitPanelSide": "
|
|
55
|
-
"tools-container": "awsui_tools-
|
|
56
|
-
"tools": "
|
|
57
|
-
"openTools": "
|
|
58
|
-
"has-tools-form-persistence": "awsui_has-tools-form-
|
|
59
|
-
"hide-tools": "awsui_hide-
|
|
60
|
-
"show-tools": "awsui_show-
|
|
61
|
-
"has-tools-form": "awsui_has-tools-
|
|
62
|
-
"trigger": "
|
|
63
|
-
"selected": "
|
|
4
|
+
"appbar": "awsui_appbar_hyvsj_c58du_93",
|
|
5
|
+
"appbar-nav": "awsui_appbar-nav_hyvsj_c58du_117",
|
|
6
|
+
"breadcrumbs": "awsui_breadcrumbs_hyvsj_c58du_121",
|
|
7
|
+
"appbar-tools": "awsui_appbar-tools_hyvsj_c58du_125",
|
|
8
|
+
"has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_c58du_166",
|
|
9
|
+
"has-notifications-content": "awsui_has-notifications-content_hyvsj_c58du_173",
|
|
10
|
+
"has-header": "awsui_has-header_hyvsj_c58du_179",
|
|
11
|
+
"has-dynamic-overlap-height": "awsui_has-dynamic-overlap-height_hyvsj_c58du_179",
|
|
12
|
+
"content-type-wizard": "awsui_content-type-wizard_hyvsj_c58du_180",
|
|
13
|
+
"content-type-cards": "awsui_content-type-cards_hyvsj_c58du_183",
|
|
14
|
+
"content-type-table": "awsui_content-type-table_hyvsj_c58du_184",
|
|
15
|
+
"has-sticky-background": "awsui_has-sticky-background_hyvsj_c58du_187",
|
|
16
|
+
"background": "awsui_background_hyvsj_c58du_221",
|
|
17
|
+
"notifications-appbar-header": "awsui_notifications-appbar-header_hyvsj_c58du_224",
|
|
18
|
+
"sticky-notifications": "awsui_sticky-notifications_hyvsj_c58du_236",
|
|
19
|
+
"overlap": "awsui_overlap_hyvsj_c58du_242",
|
|
20
|
+
"content": "awsui_content_hyvsj_c58du_180",
|
|
21
|
+
"layout": "awsui_layout_hyvsj_c58du_329",
|
|
22
|
+
"has-max-content-width": "awsui_has-max-content-width_hyvsj_c58du_411",
|
|
23
|
+
"is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_c58du_438",
|
|
24
|
+
"disable-body-scroll": "awsui_disable-body-scroll_hyvsj_c58du_441",
|
|
25
|
+
"has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_c58du_445",
|
|
26
|
+
"has-split-panel": "awsui_has-split-panel_hyvsj_c58du_459",
|
|
27
|
+
"split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_c58du_459",
|
|
28
|
+
"has-content-gap-left": "awsui_has-content-gap-left_hyvsj_c58du_471",
|
|
29
|
+
"has-content-gap-right": "awsui_has-content-gap-right_hyvsj_c58du_474",
|
|
30
|
+
"block-body-scroll": "awsui_block-body-scroll_hyvsj_c58du_489",
|
|
31
|
+
"container": "awsui_container_hyvsj_c58du_497",
|
|
32
|
+
"disable-content-paddings": "awsui_disable-content-paddings_hyvsj_c58du_523",
|
|
33
|
+
"is-navigation-open": "awsui_is-navigation-open_hyvsj_c58du_528",
|
|
34
|
+
"is-tools-open": "awsui_is-tools-open_hyvsj_c58du_531",
|
|
35
|
+
"is-split-panel-open": "awsui_is-split-panel-open_hyvsj_c58du_531",
|
|
36
|
+
"split-panel-position-side": "awsui_split-panel-position-side_hyvsj_c58du_531",
|
|
37
|
+
"content-type-default": "awsui_content-type-default_hyvsj_c58du_551",
|
|
38
|
+
"content-type-form": "awsui_content-type-form_hyvsj_c58du_551",
|
|
39
|
+
"unfocusable": "awsui_unfocusable_hyvsj_c58du_592",
|
|
40
|
+
"navigation-container": "awsui_navigation-container_hyvsj_c58du_600",
|
|
41
|
+
"show-navigation": "awsui_show-navigation_hyvsj_c58du_635",
|
|
42
|
+
"animating": "awsui_animating_hyvsj_c58du_657",
|
|
43
|
+
"showButtons": "awsui_showButtons_hyvsj_c58du_1",
|
|
44
|
+
"navigation": "awsui_navigation_hyvsj_c58du_600",
|
|
45
|
+
"openNavigation": "awsui_openNavigation_hyvsj_c58du_1",
|
|
46
|
+
"animated-content": "awsui_animated-content_hyvsj_c58du_718",
|
|
47
|
+
"hide-navigation": "awsui_hide-navigation_hyvsj_c58du_727",
|
|
48
|
+
"notifications": "awsui_notifications_hyvsj_c58du_224",
|
|
49
|
+
"split-panel-bottom": "awsui_split-panel-bottom_hyvsj_c58du_792",
|
|
50
|
+
"position-bottom": "awsui_position-bottom_hyvsj_c58du_838",
|
|
51
|
+
"openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_c58du_1",
|
|
52
|
+
"split-panel-side": "awsui_split-panel-side_hyvsj_c58du_867",
|
|
53
|
+
"position-side": "awsui_position-side_hyvsj_c58du_895",
|
|
54
|
+
"openSplitPanelSide": "awsui_openSplitPanelSide_hyvsj_c58du_1",
|
|
55
|
+
"tools-container": "awsui_tools-container_hyvsj_c58du_932",
|
|
56
|
+
"tools": "awsui_tools_hyvsj_c58du_932",
|
|
57
|
+
"openTools": "awsui_openTools_hyvsj_c58du_1",
|
|
58
|
+
"has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_c58du_1017",
|
|
59
|
+
"hide-tools": "awsui_hide-tools_hyvsj_c58du_1027",
|
|
60
|
+
"show-tools": "awsui_show-tools_hyvsj_c58du_1039",
|
|
61
|
+
"has-tools-form": "awsui_has-tools-form_hyvsj_c58du_1017",
|
|
62
|
+
"trigger": "awsui_trigger_hyvsj_c58du_1096",
|
|
63
|
+
"selected": "awsui_selected_hyvsj_c58du_1135"
|
|
64
64
|
};
|
|
65
65
|
|